{"_id":"playwright","_rev":"4253-602748019d0b3c03aa3e3104a1fcc27a","name":"playwright","time":{"modified":"2024-03-09T00:25:13.113Z","created":"2015-01-23T20:49:28.632Z","0.0.0":"2015-01-23T20:49:28.632Z","0.0.1":"2017-12-27T20:30:53.117Z","0.9.1":"2019-12-05T21:25:19.971Z","0.9.2":"2019-12-14T19:45:29.785Z","0.9.3":"2019-12-14T19:56:53.611Z","0.9.4":"2019-12-14T20:14:36.235Z","0.9.5":"2019-12-14T20:16:54.605Z","0.9.6":"2019-12-20T00:05:49.714Z","0.9.7":"2019-12-20T05:31:42.546Z","0.9.8":"2019-12-20T23:33:32.564Z","0.9.9-post":"2020-01-02T23:14:06.213Z","0.9.9":"2020-01-02T23:16:27.564Z","0.9.10":"2020-01-08T00:17:09.822Z","0.9.11":"2020-01-08T19:01:59.792Z","0.9.12":"2020-01-11T00:49:27.825Z","0.9.13":"2020-01-17T15:26:12.688Z","0.9.14":"2020-01-18T02:56:13.924Z","0.9.15":"2020-01-18T03:01:28.556Z","0.9.16":"2020-01-18T03:43:02.403Z","0.9.17":"2020-01-19T00:51:49.114Z","0.9.18":"2020-01-22T01:32:20.517Z","0.9.19":"2020-01-22T02:37:42.817Z","0.9.21":"2020-01-23T04:33:50.365Z","0.9.22":"2020-01-27T21:29:28.401Z","0.9.23":"2020-01-27T21:47:44.873Z","0.9.24":"2020-01-28T01:24:49.877Z","0.10.0":"2020-02-01T02:44:38.263Z","0.11.0":"2020-02-14T03:05:57.555Z","0.11.1":"2020-02-15T03:19:00.933Z","0.11.1-next.1582931970136":"2020-02-28T23:19:42.279Z","0.11.1-next.1582935649965":"2020-02-29T00:21:53.849Z","0.11.1-next.1582936853652":"2020-02-29T00:42:02.911Z","0.11.1-next.1582941129123":"2020-02-29T01:53:15.263Z","0.11.1-next.1583092093921":"2020-03-01T19:49:19.831Z","0.11.1-next.1583177628607":"2020-03-02T19:35:03.055Z","0.11.1-next.1583179440445":"2020-03-02T20:05:06.991Z","0.11.1-post":"2020-03-02T22:01:29.091Z","0.11.1-next.1583187564534":"2020-03-02T22:20:29.999Z","0.11.1-next.1583191619944":"2020-03-02T23:28:06.778Z","0.11.1-next.1583193743037":"2020-03-03T00:03:33.176Z","0.11.1-next.1583204591163":"2020-03-03T03:03:54.423Z","0.11.1-next.1583204833160":"2020-03-03T03:07:56.453Z","0.11.1-next.1583205797192":"2020-03-03T03:24:00.110Z","0.11.1-next.1583216591380":"2020-03-03T06:23:57.354Z","0.11.1-next.1583260687337":"2020-03-03T18:39:04.156Z","0.11.1-next.1583267736573":"2020-03-03T20:36:25.459Z","0.11.1-next.1583306456276":"2020-03-04T07:21:41.840Z","0.11.1-next.1583349510791":"2020-03-04T19:19:16.251Z","0.11.1-next.1583353624004":"2020-03-04T20:27:51.740Z","0.11.1-next.1583356813015":"2020-03-04T21:21:01.578Z","0.11.1-next.1583361034295":"2020-03-04T22:31:19.768Z","0.11.1-next.1583362118057":"2020-03-04T22:49:26.084Z","0.11.1-next.1583367207652":"2020-03-05T00:14:20.630Z","0.11.1-next.1583444645828":"2020-03-05T21:44:58.753Z","0.11.1-next.1583449329858":"2020-03-05T23:02:57.064Z","0.11.1-next.1583451168969":"2020-03-05T23:33:47.554Z","0.11.1-next.1583455961750":"2020-03-06T00:53:29.898Z","0.11.1-next.1583512728058":"2020-03-06T16:39:32.716Z","0.11.1-next.1583521768218":"2020-03-06T19:10:15.501Z","0.11.1-next.1583531345180":"2020-03-06T21:49:51.608Z","0.11.1-next.1583532343996":"2020-03-06T22:06:29.751Z","0.11.1-next.1583534849963":"2020-03-06T22:48:26.755Z","0.11.1-next.1583537977230":"2020-03-06T23:40:24.028Z","0.11.1-next.1583539827656":"2020-03-07T00:11:21.734Z","0.11.1-next.1583541572382":"2020-03-07T00:40:24.281Z","0.11.1-next.1583543158962":"2020-03-07T01:06:42.688Z","0.11.1-next.1583548749959":"2020-03-07T02:39:54.436Z","0.11.1-next.1583598839207":"2020-03-07T16:34:45.086Z","0.11.1-next.1583600211322":"2020-03-07T16:57:35.785Z","0.11.1-next.1583630648758":"2020-03-08T01:24:56.984Z","0.11.1-next.1583631839291":"2020-03-08T01:44:44.043Z","0.11.1-next.1583780310409":"2020-03-09T18:59:28.652Z","0.11.1-next.1583792051156":"2020-03-09T22:14:59.367Z","0.11.1-next.1583796504588":"2020-03-09T23:29:12.113Z","0.11.1-next.1583805691762":"2020-03-10T02:02:23.946Z","0.11.1-next.1583813990795":"2020-03-10T04:20:34.469Z","0.11.1-next.1583858111401":"2020-03-10T16:36:12.990Z","0.11.1-next.1583863091474":"2020-03-10T17:58:58.658Z","0.11.1-next.1583871165271":"2020-03-10T20:13:36.270Z","0.11.1-next.1583872341343":"2020-03-10T20:33:13.668Z","0.11.1-next.1583876346768":"2020-03-10T21:39:52.132Z","0.11.1-next.1583879747559":"2020-03-10T22:36:34.308Z","0.11.1-next.1583881898738":"2020-03-10T23:12:22.739Z","0.11.1-next.1583883243818":"2020-03-10T23:34:52.054Z","0.11.1-next.1583896891498":"2020-03-11T03:22:16.856Z","0.11.1-next.1583909126688":"2020-03-11T06:46:12.430Z","0.11.1-next.1583942151398":"2020-03-11T15:57:02.701Z","0.11.1-next.1583944812007":"2020-03-11T16:41:09.341Z","0.11.1-next.1583950347810":"2020-03-11T18:13:18.802Z","0.11.1-next.1583952883597":"2020-03-11T18:55:38.399Z","0.11.1-next.1583954337696":"2020-03-11T19:19:45.183Z","0.11.1-next.1583959927090":"2020-03-11T20:52:53.337Z","0.11.1-next.1583961839176":"2020-03-11T21:24:50.235Z","0.11.1-next.1583964052502":"2020-03-11T22:01:49.487Z","0.11.1-next.1583975195910":"2020-03-12T01:07:22.465Z","0.11.1-next.1583976325223":"2020-03-12T01:26:12.917Z","0.11.1-next.1583977527510":"2020-03-12T01:46:13.968Z","0.11.1-next.1583979469062":"2020-03-12T02:18:34.604Z","0.11.1-next.1583987681271":"2020-03-12T04:35:29.514Z","0.11.1-next.1583993157193":"2020-03-12T06:06:43.145Z","0.11.1-next.1584409672845":"2020-03-17T01:48:56.305Z","0.11.1-next.1584412062364":"2020-03-17T02:28:29.450Z","0.11.1-next.1584418340596":"2020-03-17T04:13:22.674Z","0.11.1-next.1584461989753":"2020-03-17T16:21:59.046Z","0.11.1-next.1584485273162":"2020-03-17T22:48:41.913Z","0.11.1-next.1584487135181":"2020-03-17T23:19:40.364Z","0.11.1-next.1584550591910":"2020-03-18T16:57:18.935Z","0.11.1-next.1584554311717":"2020-03-18T17:59:17.664Z","0.11.1-next.1584571745710":"2020-03-18T22:49:51.444Z","0.11.1-next.1584574737431":"2020-03-18T23:39:44.556Z","0.11.1-next.1584577781703":"2020-03-19T00:30:31.935Z","0.11.1-next.1584644386005":"2020-03-19T19:00:47.791Z","0.11.1-next.1584649363634":"2020-03-19T20:23:39.232Z","0.11.1-next.1584655833455":"2020-03-19T22:11:19.708Z","0.11.1-next.1584693909176":"2020-03-20T08:46:00.823Z","0.11.1-next.1584726951996":"2020-03-20T17:56:44.630Z","0.11.1-next.1584729009885":"2020-03-20T18:31:00.726Z","0.11.1-next.1584743044056":"2020-03-20T22:25:00.842Z","0.11.1-next.1584746930259":"2020-03-20T23:29:40.003Z","0.11.1-next.1584748635698":"2020-03-20T23:58:18.904Z","0.11.1-next.1584749942244":"2020-03-21T00:20:08.821Z","0.11.1-next.1584759824996":"2020-03-21T03:04:33.959Z","0.11.1-next.1584765614520":"2020-03-21T04:41:05.817Z","0.11.1-next.1584839583683":"2020-03-22T01:13:54.036Z","0.11.1-next.1584846744795":"2020-03-22T03:13:16.966Z","0.11.1-next.1584852659308":"2020-03-22T04:51:53.850Z","0.11.1-next.1584853682027":"2020-03-22T05:08:51.341Z","0.11.1-next.1584893448585":"2020-03-22T16:11:36.820Z","0.11.1-next.1584911205457":"2020-03-22T21:07:37.659Z","0.11.1-next.1584917324589":"2020-03-22T22:49:34.585Z","0.11.1-next.1584943264894":"2020-03-23T06:02:00.746Z","0.11.1-next.1584947279674":"2020-03-23T07:08:49.394Z","0.11.1-next.1584986171530":"2020-03-23T17:57:03.458Z","0.11.1-next.1584993937423":"2020-03-23T20:06:32.157Z","0.11.1-next.1584997668668":"2020-03-23T21:08:44.235Z","0.12.0":"2020-03-24T17:41:49.648Z","0.12.1":"2020-03-24T18:41:01.316Z","0.12.1-next.1585077902584":"2020-03-24T19:26:15.840Z","0.12.1-next.1585082282546":"2020-03-24T20:38:57.695Z","0.12.1-next.1585087065435":"2020-03-24T21:58:39.788Z","0.12.1-next.1585106784904":"2020-03-25T03:27:17.267Z","0.12.1-next.1585109149515":"2020-03-25T04:06:41.558Z","0.12.1-next.1585110797842":"2020-03-25T04:34:17.027Z","0.12.1-next.1585151127903":"2020-03-25T15:47:02.188Z","0.12.1-next.1585156318857":"2020-03-25T17:12:53.942Z","0.12.1-next.1585163289465":"2020-03-25T19:09:05.626Z","0.12.1-post":"2020-03-25T20:32:41.596Z","0.12.1-post-next.1586389266327":"2020-04-08T23:41:47.733Z","0.13.0":"2020-04-09T00:10:41.511Z","0.13.0-post-next.1586393147597":"2020-04-09T00:46:32.116Z","0.13.0-post-next.1586400584821":"2020-04-09T02:50:26.141Z","0.13.0-post-next.1586477576257":"2020-04-10T00:13:37.132Z","0.13.0-post-next.1586485167474":"2020-04-10T02:20:08.996Z","0.13.0-post-next.1586540469585":"2020-04-10T17:41:53.973Z","0.13.0-post-next.1586548226274":"2020-04-10T19:51:06.264Z","0.13.0-post-next.1586554384812":"2020-04-10T21:33:45.633Z","0.13.0-post-next.1586556346969":"2020-04-10T22:06:26.368Z","0.13.0-post-next.1586564515207":"2020-04-11T00:22:38.212Z","0.13.0-post-next.1586577152716":"2020-04-11T03:53:13.688Z","0.13.0-post-next.1586578942237":"2020-04-11T04:23:02.656Z","0.13.0-post-next.1586614875589":"2020-04-11T14:21:54.474Z","0.13.0-post-next.1586731814931":"2020-04-12T22:50:55.119Z","0.13.0-post-next.1586743666093":"2020-04-13T02:08:34.423Z","0.13.0-post-next.1586756451055":"2020-04-13T05:41:33.394Z","0.13.0-post-next.1586801783987":"2020-04-13T18:17:04.635Z","0.13.0-post-next.1586803908165":"2020-04-13T18:52:33.260Z","0.13.0-post-next.1586809535154":"2020-04-13T20:26:15.574Z","0.13.0-post-next.1586814643968":"2020-04-13T21:51:24.195Z","0.13.0-post-next.1586816241360":"2020-04-13T22:18:03.166Z","0.13.0-post-next.1586823495889":"2020-04-14T00:18:56.594Z","0.13.0-post-next.1586829000963":"2020-04-14T01:50:44.359Z","0.13.0-post-next.1586830659323":"2020-04-14T02:18:19.640Z","0.13.0-post-next.1586840565070":"2020-04-14T05:03:26.790Z","0.13.0-post-next.1586880012212":"2020-04-14T16:00:56.153Z","0.13.0-post-next.1586896285276":"2020-04-14T20:32:09.054Z","0.13.0-post-next.1586902982682":"2020-04-14T22:23:45.542Z","0.13.0-post-next.1586904967300":"2020-04-14T22:56:48.807Z","0.13.0-post-next.1586908318137":"2020-04-14T23:52:41.806Z","0.13.0-post-next.1586910574100":"2020-04-15T00:30:16.176Z","0.13.0-post-next.1586915082604":"2020-04-15T01:45:23.584Z","0.13.0-post-next.1586917297752":"2020-04-15T02:22:19.407Z","0.13.0-post-next.1586930452689":"2020-04-15T06:01:34.427Z","0.13.0-post-next.1586932567111":"2020-04-15T06:36:48.226Z","0.13.0-post-next.1586935519554":"2020-04-15T07:26:00.975Z","0.13.0-post-next.1586972345259":"2020-04-15T17:39:49.163Z","0.13.0-post-next.1586978568199":"2020-04-15T19:23:29.659Z","0.13.0-post-next.1586983542835":"2020-04-15T20:46:33.051Z","0.13.0-post-next.1586985952692":"2020-04-15T21:26:39.082Z","0.13.0-post-next.1586988177637":"2020-04-15T22:03:39.249Z","0.13.0-post-next.1586990610484":"2020-04-15T22:44:15.790Z","0.13.0-post-next.1586998356131":"2020-04-16T00:53:16.236Z","0.13.0-post-next.1587002771852":"2020-04-16T02:06:57.430Z","0.13.0-post-next.1587006981701":"2020-04-16T03:17:03.381Z","0.13.0-post-next.1587019216122":"2020-04-16T06:40:59.194Z","0.13.0-post-next.1587056456668":"2020-04-16T17:01:41.217Z","0.13.0-post-next.1587059273403":"2020-04-16T17:48:39.002Z","0.13.0-post-next.1587062067958":"2020-04-16T18:35:13.597Z","0.13.0-next.1587487666308":"2020-04-21T16:48:29.278Z","0.13.0-next.1587490812330":"2020-04-21T17:40:56.253Z","0.13.0-next.1587493784299":"2020-04-21T18:30:32.491Z","0.13.0-next.1587507074181":"2020-04-21T22:11:47.196Z","0.13.0-next.1587509060871":"2020-04-21T22:45:08.740Z","0.13.0-next.1587512419202":"2020-04-21T23:40:59.568Z","0.13.0-next.1587512949570":"2020-04-21T23:49:50.874Z","0.13.0-next.1587514508659":"2020-04-22T00:15:52.529Z","0.13.0-next.1587514744383":"2020-04-22T00:19:42.110Z","0.13.0-next.1587514837380":"2020-04-22T00:21:14.816Z","0.13.0-next.1587517305438":"2020-04-22T01:02:27.678Z","0.13.0-next.1587522109589":"2020-04-22T02:22:30.992Z","0.13.0-next.1587528173605":"2020-04-22T04:03:33.243Z","0.13.0-next.1587532226085":"2020-04-22T05:11:03.873Z","0.13.0-next.1587539433491":"2020-04-22T07:11:19.872Z","0.13.0-next.1587540852938":"2020-04-22T07:34:49.615Z","0.14.0-next.1587574083988":"2020-04-22T16:48:48.872Z","0.14.0-next.1587574335768":"2020-04-22T16:52:54.941Z","0.14.0-next.1587575798800":"2020-04-22T17:17:36.860Z","0.14.0-next.1587578032444":"2020-04-22T17:54:33.336Z","0.14.0-next.1587582768475":"2020-04-22T19:13:30.221Z","0.14.0-next.1587584608092":"2020-04-22T19:44:08.833Z","0.14.0-next.1587592344725":"2020-04-22T21:53:02.983Z","0.14.0-next.1587593422728":"2020-04-22T22:11:00.139Z","0.14.0-next.1587600270893":"2020-04-23T00:05:13.155Z","0.14.0-next.1587602689264":"2020-04-23T00:45:30.587Z","0.14.0-next.1587602970868":"2020-04-23T00:50:12.260Z","0.14.0-next.1587603747164":"2020-04-23T01:03:05.641Z","0.14.0-next.1587604056429":"2020-04-23T01:08:17.494Z","0.14.0-next.1587604286253":"2020-04-23T01:12:08.629Z","0.14.0":"2020-04-23T02:23:51.093Z","0.14.0-next.1587617723111":"2020-04-23T04:56:01.736Z","0.14.0-next.1587621265904":"2020-04-23T05:55:04.465Z","0.14.0-next.1587633014950":"2020-04-23T09:11:04.180Z","0.14.0-next.1587663364964":"2020-04-23T17:36:46.938Z","0.14.0-next.1587663620223":"2020-04-23T17:41:00.345Z","0.14.0-next.1587669737044":"2020-04-23T19:23:00.883Z","0.14.0-next.1587672279159":"2020-04-23T20:05:18.930Z","0.14.0-next.1587674527141":"2020-04-23T20:42:47.809Z","0.14.0-next.1587675128627":"2020-04-23T20:52:44.677Z","0.14.0-next.1587676940074":"2020-04-23T21:22:58.030Z","0.14.0-next.1587677290294":"2020-04-23T21:28:54.033Z","0.14.0-next.1587677408147":"2020-04-23T21:30:50.626Z","0.14.0-next.1587678100542":"2020-04-23T21:42:21.106Z","0.14.0-next.1587678340966":"2020-04-23T21:46:20.075Z","0.14.0-next.1587678443859":"2020-04-23T21:48:01.593Z","0.14.0-next.1587679204541":"2020-04-23T22:00:46.905Z","0.14.0-next.1587684343442":"2020-04-23T23:26:21.685Z","0.14.0-next.1587685313798":"2020-04-23T23:42:32.994Z","0.14.0-next.1587693020555":"2020-04-24T01:50:56.658Z","0.14.0-next.1587696852204":"2020-04-24T02:55:40.046Z","0.14.0-next.1587697598498":"2020-04-24T03:07:20.614Z","0.14.0-next.1587698625709":"2020-04-24T03:24:29.601Z","0.15.0-next.1587698868002":"2020-04-24T03:28:27.178Z","0.15.0-next.1587698969645":"2020-04-24T03:30:05.155Z","0.15.0":"2020-04-24T06:14:27.296Z","0.15.0-next.1587743396846":"2020-04-24T15:50:38.553Z","0.15.0-next.1587743815781":"2020-04-24T15:57:48.130Z","0.15.0-next.1587756125983":"2020-04-24T19:23:06.216Z","1.0.0-next.1587765868476":"2020-04-24T22:05:07.859Z","1.0.0-next.1587769946744":"2020-04-24T23:13:03.714Z","1.0.0-next.1587772501558":"2020-04-24T23:55:42.535Z","1.0.0-next.1587776231281":"2020-04-25T00:58:25.009Z","1.0.0-next.1587780960253":"2020-04-25T02:16:46.351Z","1.0.0-next.1587786688902":"2020-04-25T03:52:11.310Z","1.0.0-next.1587829720374":"2020-04-25T15:49:17.541Z","1.0.0-next.1587832636942":"2020-04-25T16:37:54.590Z","1.0.0-next.1588004996037":"2020-04-27T16:30:35.957Z","0.15.0-next.1588007560546":"2020-04-27T17:13:22.260Z","0.15.0-next.1588007792706":"2020-04-27T17:17:14.818Z","0.15.0-next.1588014709576":"2020-04-27T19:12:33.027Z","0.15.0-next.1588020522290":"2020-04-27T20:49:18.680Z","0.15.0-next.1588022270323":"2020-04-27T21:18:27.910Z","0.15.0-next.1588027332426":"2020-04-27T22:42:50.344Z","0.15.0-next.1588033111052":"2020-04-28T00:19:13.687Z","0.15.0-next.1588042306471":"2020-04-28T02:52:26.421Z","0.15.0-next.1588044304621":"2020-04-28T03:25:44.251Z","0.15.0-next.1588053884289":"2020-04-28T06:05:27.519Z","0.15.0-next.1588092658047":"2020-04-28T16:51:37.136Z","0.15.0-next.1588094335186":"2020-04-28T17:19:37.131Z","0.15.0-next.1588095543898":"2020-04-28T17:39:47.268Z","0.15.0-next.1588099416855":"2020-04-28T18:44:18.270Z","0.15.0-next.1588100395363":"2020-04-28T19:00:36.758Z","0.15.0-next.1588108923954":"2020-04-28T21:22:38.884Z","0.15.0-next.1588118874017":"2020-04-29T00:08:32.647Z","0.15.0-next.1588175148093":"2020-04-29T15:46:32.821Z","0.15.0-next.1588183659514":"2020-04-29T18:08:17.994Z","0.15.0-next.1588187766280":"2020-04-29T19:16:49.817Z","0.15.0-next.1588195174892":"2020-04-29T21:20:16.941Z","0.15.0-next.1588197267809":"2020-04-29T21:55:07.493Z","0.15.0-next.1588198145026":"2020-04-29T22:09:45.471Z","0.15.0-next.1588198923052":"2020-04-29T22:22:42.714Z","0.15.0-next.1588199194384":"2020-04-29T22:27:14.023Z","0.15.0-next.1588202691033":"2020-04-29T23:25:28.290Z","0.15.0-next.1588205345010":"2020-04-30T00:09:46.668Z","0.15.0-next.1588205542528":"2020-04-30T00:13:02.847Z","0.15.0-next.1588206086205":"2020-04-30T00:22:08.089Z","0.15.0-next.1588210960446":"2020-04-30T01:43:22.626Z","0.15.0-next.1588212060639":"2020-04-30T02:01:39.787Z","0.15.0-next.1588218538469":"2020-04-30T03:49:35.596Z","0.15.0-next.1588221354843":"2020-04-30T04:36:36.382Z","0.15.0-next.1588224163125":"2020-04-30T05:23:24.432Z","0.15.0-next.1588271177939":"2020-04-30T18:26:58.751Z","0.15.0-next.1588275046306":"2020-04-30T19:31:44.225Z","0.15.0-next.1588281338619":"2020-04-30T21:16:18.681Z","0.16.0-next.1588293895356":"2020-05-01T00:45:33.074Z","0.16.0-next.1588293964640":"2020-05-01T00:46:44.933Z","0.16.0-next.1588294765344":"2020-05-01T01:00:09.905Z","0.16.0":"2020-05-01T01:08:17.075Z","0.16.0-next.1588307158165":"2020-05-01T04:26:37.809Z","0.16.0-next.1588317172644":"2020-05-01T07:13:36.984Z","0.16.0-next.1588353094336":"2020-05-01T17:12:15.926Z","0.16.0-next.1588360285464":"2020-05-01T19:12:12.925Z","0.16.0-next.1588360404399":"2020-05-01T19:14:00.693Z","0.16.0-next.1588363272804":"2020-05-01T20:01:52.996Z","0.16.0-next.1588367092352":"2020-05-01T21:05:33.415Z","0.16.0-next.1588431178269":"2020-05-02T14:53:36.217Z","0.16.0-next.1588442369192":"2020-05-02T18:00:08.419Z","0.16.0-next.1588465659458":"2020-05-03T00:28:14.674Z","0.16.0-next.1588518094503":"2020-05-03T15:02:13.115Z","0.16.0-next.1588529955378":"2020-05-03T18:19:49.609Z","0.16.0-next.1588530305132":"2020-05-03T18:25:45.854Z","0.16.0-next.1588541047971":"2020-05-03T21:24:46.730Z","0.16.0-next.1588558599146":"2020-05-04T02:17:18.244Z","0.16.0-next.1588608981605":"2020-05-04T16:17:02.200Z","0.16.0-next.1588610198535":"2020-05-04T16:37:23.552Z","0.16.0-next.1588615552166":"2020-05-04T18:06:38.075Z","0.16.0-next.1588619410599":"2020-05-04T19:10:52.308Z","0.17.0-next.1588619814609":"2020-05-04T19:17:35.031Z","0.17.0-next.1588621116301":"2020-05-04T19:39:18.339Z","0.17.0-next.1588622870868":"2020-05-04T20:08:32.849Z","0.17.0-next.1588625124973":"2020-05-04T20:46:16.922Z","0.17.0-next.1588627615536":"2020-05-04T21:27:46.247Z","0.17.0-next.1588627828629":"2020-05-04T21:31:12.784Z","0.17.0-next.1588630087726":"2020-05-04T22:08:49.432Z","0.17.0-next.1588630656015":"2020-05-04T22:18:23.367Z","0.17.0-next.1588633911831":"2020-05-04T23:12:36.707Z","0.17.0-next.1588635118582":"2020-05-04T23:32:58.055Z","0.17.0-next.1588647648263":"2020-05-05T03:01:33.858Z","0.17.0-next.1588653974228":"2020-05-05T04:46:56.604Z","0.17.0-next.1588654314746":"2020-05-05T04:52:37.237Z","0.17.0-next.1588656385161":"2020-05-05T05:27:07.134Z","0.17.0-next.1588656585642":"2020-05-05T05:30:34.102Z","0.17.0-next.1588656608785":"2020-05-05T05:30:44.756Z","0.17.0":"2020-05-05T05:52:21.453Z","0.17.0-next.1588699931450":"2020-05-05T17:32:54.892Z","0.17.0-next.1588700851658":"2020-05-05T17:48:13.299Z","0.17.0-next.1588706918148":"2020-05-05T19:29:25.227Z","0.17.0-next.1588716393648":"2020-05-05T22:07:08.517Z","0.18.0-next.1588716565892":"2020-05-05T22:10:05.076Z","0.18.0-next.1588716914459":"2020-05-05T22:15:59.906Z","0.18.0-next.1588722880483":"2020-05-05T23:55:24.243Z","0.18.0-next.1588723077925":"2020-05-05T23:58:47.601Z","0.18.0-next.1588723290714":"2020-05-06T00:02:13.739Z","0.18.0":"2020-05-06T00:04:52.602Z","0.18.0-next.1588724149190":"2020-05-06T00:16:27.049Z","1.0.0-next.1588740145301":"2020-05-06T04:43:15.390Z","1.0.0":"2020-05-06T13:28:18.735Z","0.18.0-next.1588785724385":"2020-05-06T17:22:51.016Z","0.18.0-next.1588787041098":"2020-05-06T17:44:44.414Z","1.0.1-next.1588787237906":"2020-05-06T17:47:58.340Z","1.0.0-next.1588792560553":"2020-05-06T19:16:46.153Z","1.0.1":"2020-05-07T00:24:22.362Z","1.0.0-next.1588874799371":"2020-05-07T18:07:23.743Z","1.0.0-next.1588879906950":"2020-05-07T19:32:34.106Z","1.0.0-next.1588880010687":"2020-05-07T19:34:06.999Z","1.0.0-next.1588880112772":"2020-05-07T19:35:54.023Z","1.0.0-next.1588883905711":"2020-05-07T20:39:13.875Z","1.0.0-next.1588890945082":"2020-05-07T22:36:30.147Z","1.0.0-next.1588893119144":"2020-05-07T23:12:37.371Z","1.0.0-next.1588901951641":"2020-05-08T01:39:54.165Z","1.0.0-next.1588906384259":"2020-05-08T02:54:02.833Z","1.0.0-next.1588907961253":"2020-05-08T03:20:01.785Z","1.0.0-next.1588916882747":"2020-05-08T05:48:41.897Z","1.0.0-next.1588917092012":"2020-05-08T05:52:12.205Z","1.0.0-next.1588936922244":"2020-05-08T11:22:42.977Z","1.0.0-next.1588938801256":"2020-05-08T11:54:01.719Z","1.0.0-next.1588938965291":"2020-05-08T11:56:46.412Z","1.0.1-next.1588956202246":"2020-05-08T16:44:09.028Z","1.0.0-next.1588957470515":"2020-05-08T17:05:16.269Z","1.0.0-next.1588959260810":"2020-05-08T17:35:08.404Z","1.0.0-next.1588959574908":"2020-05-08T17:40:16.221Z","1.0.1-next.1588959707405":"2020-05-08T17:42:29.365Z","1.0.0-next.1588988428004":"2020-05-09T01:41:07.193Z","1.0.0-next.1589071497281":"2020-05-10T00:45:37.916Z","1.0.0-next.1589149532734":"2020-05-10T22:26:15.218Z","1.0.0-next.1589209359368":"2020-05-11T15:03:24.291Z","1.0.0-next.1589210668924":"2020-05-11T15:25:15.621Z","1.0.0-next.1589215188460":"2020-05-11T16:40:31.187Z","1.0.0-next.1589216156036":"2020-05-11T16:56:42.728Z","1.0.0-next.1589219288774":"2020-05-11T17:48:59.432Z","1.0.0-next.1589224668423":"2020-05-11T19:19:06.599Z","1.0.0-next.1589228022849":"2020-05-11T20:14:31.110Z","1.0.0-next.1589230291071":"2020-05-11T20:52:13.607Z","1.0.0-next.1589233430873":"2020-05-11T21:44:34.013Z","1.0.0-next.1589234507297":"2020-05-11T22:02:28.829Z","1.0.0-next.1589245340205":"2020-05-12T01:03:01.320Z","1.0.0-next.1589248715648":"2020-05-12T01:59:21.621Z","1.0.0-next.1589262842235":"2020-05-12T05:54:44.972Z","1.0.0-next.1589294229150":"2020-05-12T14:37:54.271Z","1.0.0-next.1589298368558":"2020-05-12T15:46:48.484Z","1.0.0-next.1589301282652":"2020-05-12T16:35:24.969Z","1.0.0-next.1589318957334":"2020-05-12T21:30:20.022Z","1.0.1-next.1589321722866":"2020-05-12T22:16:03.138Z","1.0.0-next.1589322325192":"2020-05-12T22:26:08.769Z","1.0.0-next.1589322624858":"2020-05-12T22:31:11.124Z","1.0.0-next.1589322926923":"2020-05-12T22:36:06.392Z","1.0.0-next.1589323670494":"2020-05-12T22:48:31.612Z","1.0.0-next.1589324382688":"2020-05-12T23:00:23.657Z","1.0.0-next.1589325437369":"2020-05-12T23:17:59.165Z","1.0.0-next.1589327101142":"2020-05-12T23:45:39.422Z","1.0.0-next.1589327460951":"2020-05-12T23:51:40.319Z","1.0.0-next.1589333663886":"2020-05-13T01:35:07.671Z","1.0.0-next.1589336712518":"2020-05-13T02:25:53.393Z","1.0.0-next.1589408227837":"2020-05-13T22:17:46.060Z","1.0.0-next.1589409444964":"2020-05-13T22:38:11.122Z","1.0.0-next.1589410770854":"2020-05-13T23:00:24.574Z","1.0.0-next.1589413685729":"2020-05-13T23:48:46.997Z","1.0.0-next.1589415746748":"2020-05-14T00:23:11.042Z","1.0.0-next.1589419559332":"2020-05-14T01:26:42.123Z","1.0.0-next.1589420080464":"2020-05-14T01:35:19.961Z","1.0.0-next.1589423438101":"2020-05-14T02:31:18.521Z","1.0.0-next.1589428491886":"2020-05-14T03:55:37.722Z","1.0.0-next.1589435776107":"2020-05-14T05:56:58.350Z","1.0.0-next.1589468349566":"2020-05-14T14:59:53.495Z","1.0.0-next.1589478373421":"2020-05-14T17:46:55.172Z","1.0.0-next.1589487857818":"2020-05-14T20:24:58.048Z","1.0.2-next.1589490370151":"2020-05-14T21:06:53.118Z","1.0.2-next.1589490722564":"2020-05-14T21:12:40.838Z","1.0.2":"2020-05-14T21:27:43.025Z","1.0.0-next.1589496297035":"2020-05-14T22:45:41.978Z","1.0.0-next.1589496648136":"2020-05-14T22:51:33.492Z","1.0.0-next.1589498142384":"2020-05-14T23:16:29.799Z","1.0.0-next.1589499031364":"2020-05-14T23:31:12.830Z","1.0.0-next.1589500124581":"2020-05-14T23:49:22.729Z","1.0.0-next.1589502284974":"2020-05-15T00:25:26.048Z","1.0.0-next.1589506306471":"2020-05-15T01:32:32.252Z","1.0.0-next.1589523306729":"2020-05-15T06:15:47.923Z","1.0.0-next.1589568245634":"2020-05-15T18:44:48.063Z","1.0.0-next.1589581462117":"2020-05-15T22:25:00.393Z","1.0.0-next.1589589512711":"2020-05-16T00:39:11.332Z","1.0.0-next.1589731216477":"2020-05-17T16:00:56.097Z","1.0.0-next.1589773485120":"2020-05-18T03:45:24.518Z","1.0.0-next.1589820556663":"2020-05-18T16:49:56.408Z","1.0.0-next.1589837374434":"2020-05-18T21:30:13.440Z","1.0.0-next.1589847345065":"2020-05-19T00:16:29.676Z","1.0.0-next.1589849995282":"2020-05-19T01:00:38.490Z","1.0.0-next.1589851514972":"2020-05-19T01:25:55.325Z","1.0.0-next.1589853767049":"2020-05-19T02:03:29.161Z","1.0.0-next.1589866327074":"2020-05-19T05:32:44.557Z","1.0.0-next.1589870449688":"2020-05-19T06:41:31.886Z","1.0.0-next.1589902938502":"2020-05-19T15:43:06.496Z","1.0.0-next.1589909538484":"2020-05-19T17:32:59.680Z","1.0.0-next.1589909900071":"2020-05-19T17:39:03.951Z","1.0.2-next.1589911128199":"2020-05-19T17:59:32.152Z","1.0.0-next.1589925438409":"2020-05-19T21:58:09.092Z","1.0.0-next.1589925838278":"2020-05-19T22:04:41.847Z","1.0.0-next.1589926936881":"2020-05-19T22:22:59.569Z","1.0.0-next.1589930960528":"2020-05-19T23:30:10.186Z","1.0.0-next.1589935755905":"2020-05-20T00:49:56.476Z","1.0.0-next.1589958373554":"2020-05-20T07:07:01.987Z","1.0.0-next.1589958749516":"2020-05-20T07:13:13.072Z","1.0.0-next.1589985372174":"2020-05-20T14:37:13.969Z","1.0.0-next.1590011781742":"2020-05-20T21:57:05.820Z","1.0.0-next.1590011999788":"2020-05-20T22:00:45.561Z","1.0.0-next.1590015058131":"2020-05-20T22:51:42.015Z","1.0.0-next.1590015443077":"2020-05-20T22:58:04.914Z","1.0.0-next.1590017499520":"2020-05-20T23:32:25.519Z","1.0.0-next.1590024423746":"2020-05-21T01:27:44.262Z","1.0.0-next.1590071705002":"2020-05-21T14:35:44.313Z","1.0.0-next.1590071938486":"2020-05-21T14:39:41.389Z","1.0.0-next.1590075988166":"2020-05-21T15:47:10.188Z","1.0.0-next.1590079500232":"2020-05-21T16:45:52.771Z","1.0.0-next.1590105515617":"2020-05-21T23:58:44.142Z","1.0.0-next.1590113861271":"2020-05-22T02:17:48.920Z","1.0.0-next.1590156359574":"2020-05-22T14:06:08.977Z","1.0.0-next.1590171462919":"2020-05-22T18:17:52.420Z","1.0.0-next.1590188927093":"2020-05-22T23:08:53.412Z","1.0.0-next.1590193346945":"2020-05-23T00:22:38.312Z","1.0.0-next.1590217523735":"2020-05-23T07:05:31.203Z","1.0.0-next.1590513872265":"2020-05-26T17:24:39.732Z","1.0.0-next.1590514056724":"2020-05-26T17:27:44.854Z","1.0.0-next.1590527411064":"2020-05-26T21:10:18.591Z","1.0.0-next.1590529807362":"2020-05-26T21:50:15.423Z","1.0.0-next.1590538859422":"2020-05-27T00:21:07.348Z","1.0.0-next.1590611377215":"2020-05-27T20:29:48.467Z","1.0.0-next.1590614898028":"2020-05-27T21:28:26.817Z","1.0.0-next.1590625266561":"2020-05-28T00:21:15.541Z","1.0.0-next.1590630328805":"2020-05-28T01:45:36.312Z","1.0.0-next.1590635001206":"2020-05-28T03:03:31.527Z","1.0.0-next.1590642310742":"2020-05-28T05:05:20.489Z","1.0.0-next.1590643285176":"2020-05-28T05:21:33.555Z","1.0.0-next.1590645245502":"2020-05-28T05:54:13.073Z","1.0.0-next.1590683088918":"2020-05-28T16:24:57.507Z","1.0.0-next.1590687930898":"2020-05-28T17:45:45.331Z","1.0.0-next.1590697532773":"2020-05-28T20:25:40.219Z","1.0.0-next.1590702018792":"2020-05-28T21:40:26.157Z","1.0.0-next.1590702669597":"2020-05-28T21:51:16.527Z","1.0.0-next.1590705745876":"2020-05-28T22:42:35.027Z","1.0.0-next.1590709023889":"2020-05-28T23:37:11.696Z","1.0.0-next.1590715841027":"2020-05-29T01:30:49.361Z","1.0.0-next.1590717111161":"2020-05-29T01:52:00.522Z","1.0.0-next.1590730693707":"2020-05-29T05:38:21.515Z","1.0.0-next.1590767669554":"2020-05-29T15:54:39.369Z","1.0.0-next.1590777107944":"2020-05-29T18:31:54.816Z","1.0.0-next.1590780908384":"2020-05-29T19:35:17.733Z","1.0.0-next.1590785338181":"2020-05-29T20:49:06.942Z","1.0.0-next.1590788459423":"2020-05-29T21:41:08.636Z","1.0.0-next.1590790328586":"2020-05-29T22:12:16.851Z","1.0.0-next.1590790441428":"2020-05-29T22:14:09.360Z","1.0.0-next.1590791397229":"2020-05-29T22:30:05.201Z","1.0.0-next.1590794232717":"2020-05-29T23:17:20.465Z","1.0.0-next.1590816450938":"2020-05-30T05:27:39.650Z","1.0.0-next.1590870737913":"2020-05-30T20:32:26.296Z","1.0.0-next.1590876158333":"2020-05-30T22:02:45.926Z","1.0.0-next.1590937729010":"2020-05-31T15:08:55.881Z","1.0.0-next.1590942640056":"2020-05-31T16:30:48.845Z","1.0.0-next.1590993840787":"2020-06-01T06:44:08.300Z","1.0.0-next.1591027031031":"2020-06-01T15:57:18.605Z","1.0.0-next.1591031716099":"2020-06-01T17:15:23.773Z","1.0.0-next.1591035349301":"2020-06-01T18:15:56.628Z","1.0.0-next.1591044509416":"2020-06-01T20:48:35.936Z","1.0.0-next.1591049996694":"2020-06-01T22:20:08.382Z","1.0.0-next.1591051851902":"2020-06-01T22:51:03.705Z","1.0.0-next.1591063099143":"2020-06-02T01:58:26.498Z","1.0.0-next.1591136500591":"2020-06-02T22:21:48.062Z","1.0.0-next.1591141973551":"2020-06-02T23:53:01.782Z","1.0.0-next.1591148526984":"2020-06-03T01:42:15.839Z","1.0.0-next.1591150532754":"2020-06-03T02:15:41.005Z","1.0.0-next.1591199038735":"2020-06-03T15:44:06.625Z","1.0.0-next.1591200985069":"2020-06-03T16:16:33.594Z","1.0.0-next.1591208728798":"2020-06-03T18:25:36.641Z","1.0.0-next.1591211508942":"2020-06-03T19:11:57.408Z","1.0.0-next.1591212193389":"2020-06-03T19:23:22.133Z","1.0.0-next.1591213767479":"2020-06-03T19:49:35.565Z","1.0.0-next.1591215807137":"2020-06-03T20:23:36.159Z","1.0.0-next.1591222400292":"2020-06-03T22:13:28.610Z","1.0.0-next.1591227436868":"2020-06-03T23:37:24.672Z","1.0.0-next.1591231917297":"2020-06-04T00:52:06.324Z","1.0.0-next.1591286075575":"2020-06-04T15:54:43.310Z","1.0.0-next.1591288113525":"2020-06-04T16:28:42.296Z","1.0.0-next.1591299078278":"2020-06-04T19:31:26.222Z","1.0.0-next.1591304315669":"2020-06-04T20:58:43.672Z","1.0.0-next.1591306116485":"2020-06-04T21:28:44.338Z","1.0.0-next.1591306307544":"2020-06-04T21:31:55.777Z","1.0.0-next.1591311607411":"2020-06-04T23:00:16.695Z","1.0.0-next.1591312154068":"2020-06-04T23:09:23.326Z","1.0.0-next.1591314099561":"2020-06-04T23:41:47.987Z","1.0.0-next.1591314319684":"2020-06-04T23:45:28.290Z","1.0.0-next.1591329787340":"2020-06-05T04:03:15.712Z","1.0.0-next.1591368060998":"2020-06-05T14:41:09.301Z","1.0.0-next.1591368723136":"2020-06-05T14:52:10.456Z","1.0.0-next.1591376911711":"2020-06-05T17:08:39.972Z","1.0.0-next.1591379077027":"2020-06-05T17:44:45.336Z","1.0.0-next.1591390307789":"2020-06-05T20:51:55.354Z","1.0.0-next.1591391827480":"2020-06-05T21:17:17.336Z","1.0.0-next.1591397750645":"2020-06-05T22:56:00.122Z","1.0.0-next.1591399515371":"2020-06-05T23:25:24.260Z","1.0.0-next.1591399688609":"2020-06-05T23:28:16.161Z","1.0.0-next.1591404067978":"2020-06-06T00:41:16.651Z","1.0.0-next.1591405086437":"2020-06-06T00:58:14.165Z","1.1.0-next.1591406445303":"2020-06-06T01:20:53.019Z","1.1.0-next.1591502446737":"2020-06-07T04:00:55.683Z","1.1.0-next.1591638888652":"2020-06-08T17:54:57.073Z","1.1.0-next.1591641764210":"2020-06-08T18:42:54.571Z","1.1.0-next.1591643570230":"2020-06-08T19:12:58.173Z","1.1.0-next.1591645910726":"2020-06-08T19:51:58.840Z","1.1.0-next.1591649470141":"2020-06-08T20:51:17.349Z","1.1.0-next.1591656990499":"2020-06-08T22:56:38.572Z","1.1.0-next.1591659113271":"2020-06-08T23:32:02.429Z","1.1.0-next.1591661200626":"2020-06-09T00:06:48.320Z","1.1.0-next.1591678053179":"2020-06-09T04:47:40.198Z","1.1.0-next.1591732966035":"2020-06-09T20:02:54.807Z","1.1.0-next.1591737094184":"2020-06-09T21:11:41.138Z","1.1.0-next.1591738312726":"2020-06-09T21:32:00.017Z","1.1.0":"2020-06-09T21:57:02.744Z","1.1.0-next.1591744414976":"2020-06-09T23:13:46.902Z","1.1.0-next.1591753563116":"2020-06-10T01:46:10.866Z","1.1.0-next.1591754323782":"2020-06-10T01:58:52.224Z","1.1.0-next.1591768192722":"2020-06-10T05:50:00.720Z","1.1.0-next.1591771686680":"2020-06-10T06:48:14.200Z","1.1.0-next.1591801482432":"2020-06-10T15:04:49.900Z","1.1.0-next.1591807154874":"2020-06-10T16:39:24.091Z","1.1.0-next.1591818741355":"2020-06-10T19:52:30.409Z","1.1.0-next.1591821505243":"2020-06-10T20:38:32.882Z","1.1.0-next.1591827271206":"2020-06-10T22:14:39.459Z","1.1.0-next.1591832166833":"2020-06-10T23:36:18.541Z","1.1.0-next.1591840040604":"2020-06-11T01:47:29.385Z","1.1.0-next.1591840242645":"2020-06-11T01:50:51.005Z","1.1.0-next.1591840980301":"2020-06-11T02:03:07.874Z","1.1.1-next.1591841006216":"2020-06-11T02:03:34.087Z","1.1.1":"2020-06-11T02:29:59.373Z","1.1.0-next.1591847436879":"2020-06-11T03:51:09.356Z","1.1.0-next.1591850160480":"2020-06-11T04:36:08.093Z","1.1.0-next.1591896109757":"2020-06-11T17:21:57.881Z","1.1.0-next.1591898993879":"2020-06-11T18:10:01.553Z","1.1.0-next.1591901121851":"2020-06-11T18:45:30.051Z","1.1.0-next.1591906234050":"2020-06-11T20:10:41.418Z","1.1.0-next.1591914067826":"2020-06-11T22:21:15.502Z","1.1.0-next.1591919058253":"2020-06-11T23:44:27.003Z","1.1.0-next.1591924870952":"2020-06-12T01:21:18.754Z","1.1.0-next.1591929052608":"2020-06-12T02:31:01.793Z","1.1.0-next.1591945218941":"2020-06-12T07:00:26.918Z","1.1.0-next.1591948610000":"2020-06-12T07:56:59.526Z","1.1.0-next.1591980631857":"2020-06-12T16:50:39.781Z","1.1.0-next.1591983675747":"2020-06-12T17:41:23.936Z","1.1.0-next.1591985582896":"2020-06-12T18:13:12.882Z","1.1.0-next.1591989294186":"2020-06-12T19:15:04.179Z","1.1.0-next.1591999331404":"2020-06-12T22:02:20.268Z","1.1.0-next.1591999507058":"2020-06-12T22:05:15.445Z","1.1.0-next.1592079305969":"2020-06-13T20:15:16.895Z","1.1.0-next.1592115159273":"2020-06-14T06:12:47.424Z","1.1.0-next.1592180811419":"2020-06-15T00:27:00.627Z","1.1.0-next.1592253829544":"2020-06-15T20:43:57.291Z","1.1.0-next.1592260126387":"2020-06-15T22:28:54.597Z","1.1.0-next.1592271391798":"2020-06-16T01:36:38.987Z","1.1.0-next.1592313332244":"2020-06-16T13:15:39.364Z","1.1.0-next.1592327813767":"2020-06-16T17:17:01.290Z","1.1.0-next.1592345201228":"2020-06-16T22:06:50.122Z","1.1.0-next.1592347363926":"2020-06-16T22:42:51.623Z","1.1.0-next.1592349729393":"2020-06-16T23:22:17.915Z","1.1.0-next.1592352812649":"2020-06-17T00:13:46.940Z","1.1.0-next.1592353240602":"2020-06-17T00:20:47.747Z","1.1.0-next.1592354579441":"2020-06-17T00:43:06.647Z","1.1.0-next.1592368670057":"2020-06-17T04:37:58.673Z","1.1.0-next.1592368820530":"2020-06-17T04:40:28.434Z","1.1.0-next.1592371953331":"2020-06-17T05:32:41.338Z","1.1.0-next.1592408184330":"2020-06-17T15:36:32.590Z","1.1.0-next.1592409991306":"2020-06-17T16:06:40.306Z","1.1.0-next.1592416187333":"2020-06-17T17:49:55.012Z","1.1.0-next.1592428538312":"2020-06-17T21:15:47.013Z","1.1.0-next.1592428715631":"2020-06-17T21:18:44.052Z","1.1.0-next.1592431152076":"2020-06-17T21:59:19.204Z","1.1.0-next.1592461313096":"2020-06-18T06:22:02.187Z","1.1.0-next.1592461595212":"2020-06-18T06:26:43.095Z","1.1.0-next.1592502149981":"2020-06-18T17:42:38.167Z","1.1.0-next.1592502826118":"2020-06-18T17:53:55.343Z","1.1.0-next.1592504541589":"2020-06-18T18:22:29.530Z","1.1.0-next.1592508599308":"2020-06-18T19:30:07.262Z","1.1.0-next.1592509038913":"2020-06-18T19:37:26.411Z","1.1.0-next.1592509562677":"2020-06-18T19:46:11.738Z","1.1.0-next.1592515660377":"2020-06-18T21:27:47.630Z","1.1.0-next.1592517988859":"2020-06-18T22:06:37.122Z","1.1.0-next.1592520571134":"2020-06-18T22:49:39.528Z","1.1.0-next.1592525598609":"2020-06-19T00:13:27.231Z","1.1.0-next.1592525870853":"2020-06-19T00:18:00.055Z","1.1.0-next.1592528914165":"2020-06-19T01:08:40.182Z","1.1.0-next.1592529229564":"2020-06-19T01:13:57.170Z","1.1.0-next.1592530230294":"2020-06-19T01:30:38.266Z","1.1.0-next.1592587572419":"2020-06-19T17:26:20.501Z","1.1.0-next.1592588169182":"2020-06-19T17:36:17.422Z","1.1.0-next.1592603145359":"2020-06-19T21:45:53.388Z","1.1.0-next.1592609807802":"2020-06-19T23:36:55.770Z","1.1.0-next.1592612194353":"2020-06-20T00:16:41.887Z","1.1.0-next.1592711274618":"2020-06-21T03:48:04.972Z","1.1.0-next.1592855469132":"2020-06-22T19:51:17.056Z","1.1.0-next.1592858871110":"2020-06-22T20:47:58.016Z","1.1.0-next.1592859982878":"2020-06-22T21:06:30.448Z","1.1.0-next.1592862145864":"2020-06-22T21:42:32.559Z","1.1.0-next.1592866569028":"2020-06-22T22:56:15.746Z","1.1.0-next.1592866721115":"2020-06-22T22:58:48.181Z","1.1.0-next.1592867221427":"2020-06-22T23:07:08.788Z","1.1.0-next.1592870135883":"2020-06-22T23:55:42.703Z","1.1.0-next.1592886017740":"2020-06-23T04:20:26.191Z","1.1.0-next.1592934980929":"2020-06-23T17:56:28.479Z","1.1.0-next.1592942665273":"2020-06-23T20:04:32.859Z","1.1.0-next.1592949187853":"2020-06-23T21:53:15.546Z","1.1.0-next.1592955993441":"2020-06-23T23:46:41.247Z","1.1.0-next.1592958091241":"2020-06-24T00:21:38.901Z","1.1.0-next.1592961570639":"2020-06-24T01:19:38.767Z","1.1.0-next.1592966189653":"2020-06-24T02:36:37.669Z","1.1.0-next.1593018356954":"2020-06-24T17:06:04.116Z","1.1.0-next.1593019124888":"2020-06-24T17:18:52.166Z","1.1.0-next.1593032161984":"2020-06-24T20:56:10.639Z","1.1.0-next.1593036825936":"2020-06-24T22:13:52.349Z","1.1.0-next.1593043509319":"2020-06-25T00:05:16.721Z","1.1.0-next.1593061846204":"2020-06-25T05:10:54.393Z","1.1.0-next.1593099185265":"2020-06-25T15:33:14.540Z","1.1.0-next.1593104159537":"2020-06-25T16:56:06.736Z","1.1.0-next.1593116089757":"2020-06-25T20:14:57.061Z","1.1.0-next.1593126441221":"2020-06-25T23:07:29.396Z","1.1.0-next.1593129563529":"2020-06-25T23:59:31.658Z","1.1.0-next.1593133389004":"2020-06-26T01:03:16.994Z","1.1.0-next.1593190367463":"2020-06-26T16:52:55.532Z","1.1.0-next.1593197615293":"2020-06-26T18:53:43.286Z","1.1.0-next.1593199815258":"2020-06-26T19:30:23.717Z","1.1.0-next.1593214450466":"2020-06-26T23:34:16.908Z","1.1.0-next.1593217594450":"2020-06-27T00:26:42.026Z","1.1.0-next.1593219062845":"2020-06-27T00:51:11.529Z","1.1.0-next.1593231825065":"2020-06-27T04:23:53.140Z","1.1.0-next.1593236421047":"2020-06-27T05:40:28.651Z","1.1.0-next.1593281509435":"2020-06-27T18:11:59.213Z","1.1.0-next.1593282874175":"2020-06-27T18:34:43.509Z","1.1.0-next.1593452449071":"2020-06-29T17:41:00.236Z","1.1.0-next.1593455070108":"2020-06-29T18:24:38.396Z","1.1.0-next.1593469561990":"2020-06-29T22:26:10.814Z","1.1.0-next.1593470959491":"2020-06-29T22:49:27.728Z","1.1.0-next.1593472011047":"2020-06-29T23:06:58.970Z","1.1.0-next.1593473285159":"2020-06-29T23:28:11.865Z","1.1.0-next.1593473945815":"2020-06-29T23:39:12.691Z","1.1.0-next.1593482383682":"2020-06-30T01:59:55.161Z","1.1.0-next.1593539826239":"2020-06-30T17:57:14.002Z","1.1.0-next.1593540251356":"2020-06-30T18:04:20.456Z","1.1.0-next.1593560937644":"2020-06-30T23:49:05.797Z","1.1.0-next.1593561171314":"2020-06-30T23:53:00.294Z","1.1.0-next.1593561417109":"2020-06-30T23:57:06.125Z","1.1.0-next.1593561732325":"2020-07-01T00:02:21.950Z","1.1.0-next.1593561933113":"2020-07-01T00:05:41.295Z","1.1.0-next.1593568399948":"2020-07-01T01:53:28.158Z","1.1.0-next.1593577976433":"2020-07-01T04:33:07.961Z","1.1.0-next.1593580986008":"2020-07-01T05:23:14.836Z","1.1.0-next.1593585380461":"2020-07-01T06:36:28.756Z","1.1.0-next.1593611509645":"2020-07-01T13:51:57.737Z","1.1.0-next.1593613758921":"2020-07-01T14:29:27.521Z","1.1.0-next.1593621892707":"2020-07-01T16:45:00.445Z","1.1.0-next.1593626306211":"2020-07-01T17:58:34.021Z","1.1.0-next.1593635404714":"2020-07-01T20:30:13.618Z","1.1.0-next.1593637033257":"2020-07-01T20:57:21.007Z","1.1.0-next.1593640258739":"2020-07-01T21:51:07.085Z","1.1.0-next.1593642267696":"2020-07-01T22:24:34.926Z","1.1.0-next.1593644872101":"2020-07-01T23:08:02.919Z","1.1.0-next.1593645155730":"2020-07-01T23:12:43.207Z","1.1.0-next.1593651250737":"2020-07-02T00:54:19.352Z","1.1.0-next.1593652449865":"2020-07-02T01:14:20.927Z","1.1.0-next.1593653566130":"2020-07-02T01:32:53.596Z","1.1.0-next.1593653902864":"2020-07-02T01:38:31.173Z","1.1.0-next.1593656364914":"2020-07-02T02:19:34.998Z","1.1.0-next.1593666215765":"2020-07-02T05:03:43.468Z","1.1.0-next.1593666589006":"2020-07-02T05:09:58.210Z","1.1.0-next.1593666756455":"2020-07-02T05:12:46.053Z","1.1.0-next.1593668559701":"2020-07-02T05:42:57.636Z","1.1.0-next.1593675802795":"2020-07-02T07:43:32.970Z","1.1.0-next.1593676020901":"2020-07-02T07:47:10.280Z","1.1.0-next.1593680366184":"2020-07-02T08:59:35.754Z","1.1.0-next.1593702266587":"2020-07-02T15:04:37.372Z","1.1.0-next.1593708720316":"2020-07-02T16:52:07.671Z","1.1.0-next.1593709577553":"2020-07-02T17:06:29.236Z","1.1.0-next.1593711890820":"2020-07-02T17:45:01.679Z","1.1.0-next.1593713257379":"2020-07-02T18:07:46.672Z","1.1.0-next.1593714158849":"2020-07-02T18:22:47.061Z","1.1.0-next.1593717093627":"2020-07-02T19:11:43.789Z","1.1.0-next.1593726591515":"2020-07-02T21:50:03.006Z","1.1.0-next.1593728656381":"2020-07-02T22:24:25.557Z","1.1.0-next.1593741191701":"2020-07-03T01:53:19.574Z","1.1.0-next.1593824801387":"2020-07-04T01:06:49.324Z","1.1.0-next.1593881768372":"2020-07-04T16:56:18.522Z","1.1.0-next.1594053967018":"2020-07-06T16:46:15.969Z","1.1.0-next.1594055168489":"2020-07-06T17:06:16.523Z","1.1.0-next.1594059260170":"2020-07-06T18:14:26.800Z","1.1.0-next.1594060313441":"2020-07-06T18:32:03.958Z","1.1.0-next.1594069245095":"2020-07-06T21:00:52.221Z","1.2.0-next.1594073755699":"2020-07-06T22:16:06.478Z","1.2.0-next.1594073798241":"2020-07-06T22:16:47.409Z","1.2.0-next.1594076413467":"2020-07-06T23:00:21.346Z","1.2.0-next.1594081054043":"2020-07-07T00:17:43.222Z","1.2.0-next.1594082323189":"2020-07-07T00:38:52.296Z","1.2.0":"2020-07-07T02:53:13.050Z","1.2.0-next.1594139580460":"2020-07-07T16:33:10.351Z","1.2.0-next.1594140114615":"2020-07-07T16:42:02.486Z","1.2.0-next.1594144083163":"2020-07-07T17:48:11.909Z","1.2.0-next.1594145731682":"2020-07-07T18:15:43.042Z","1.2.0-next.1594152349618":"2020-07-07T20:05:58.884Z","1.2.0-next.1594155967730":"2020-07-07T21:06:17.516Z","1.2.0-next.1594156421576":"2020-07-07T21:13:49.502Z","1.2.0-next.1594160630234":"2020-07-07T22:24:03.161Z","1.2.0-next.1594172944265":"2020-07-08T01:49:15.122Z","1.2.0-next.1594185355273":"2020-07-08T05:16:06.899Z","1.2.0-next.1594186857425":"2020-07-08T05:41:07.198Z","1.2.0-next.1594192945322":"2020-07-08T07:22:35.932Z","1.2.0-next.1594224106936":"2020-07-08T16:01:55.061Z","1.2.0-next.1594232129839":"2020-07-08T18:15:38.506Z","1.2.0-next.1594244091142":"2020-07-08T21:35:02.493Z","1.2.0-next.1594250271060":"2020-07-08T23:18:00.390Z","1.2.0-next.1594253605356":"2020-07-09T00:13:33.939Z","1.2.0-next.1594255679802":"2020-07-09T00:48:10.399Z","1.2.0-next.1594259090997":"2020-07-09T01:45:02.305Z","1.2.0-next.1594269498419":"2020-07-09T04:38:27.638Z","1.2.0-next.1594309023882":"2020-07-09T15:37:13.104Z","1.2.0-next.1594319986621":"2020-07-09T18:39:55.813Z","1.2.0-next.1594327663260":"2020-07-09T20:47:51.126Z","1.2.0-next.1594334132397":"2020-07-09T22:35:40.325Z","1.2.0-next.1594334339828":"2020-07-09T22:39:08.003Z","1.2.0-next.1594412304701":"2020-07-10T20:18:42.527Z","1.2.0-next.1594416554466":"2020-07-10T21:29:23.592Z","1.2.0-next.1594419260763":"2020-07-10T22:14:30.315Z","1.2.0-next.1594420901371":"2020-07-10T22:41:50.305Z","1.2.0-next.1594421955808":"2020-07-10T22:59:25.750Z","1.2.0-next.1594422224983":"2020-07-10T23:03:53.080Z","1.2.0-next.1594422481929":"2020-07-10T23:08:11.082Z","1.2.0-next.1594423062250":"2020-07-10T23:17:51.295Z","1.2.0-next.1594423640354":"2020-07-10T23:27:29.559Z","1.2.0-next.1594424401016":"2020-07-10T23:40:07.992Z","1.2.0-next.1594429360979":"2020-07-11T01:02:50.669Z","1.2.0-next.1594654432181":"2020-07-13T15:34:02.729Z","1.2.1-next.1594664645818":"2020-07-13T18:24:13.470Z","1.2.0-next.1594677119762":"2020-07-13T21:52:13.608Z","1.2.0-next.1594677757383":"2020-07-13T22:02:44.404Z","1.2.0-next.1594679384923":"2020-07-13T22:29:53.747Z","1.2.0-next.1594680578848":"2020-07-13T22:49:49.521Z","1.2.0-next.1594681722828":"2020-07-13T23:08:55.279Z","1.2.0-next.1594682507271":"2020-07-13T23:21:57.619Z","1.2.0-next.1594685933762":"2020-07-14T00:19:02.790Z","1.2.0-next.1594686432548":"2020-07-14T00:27:22.933Z","1.2.1":"2020-07-14T00:44:39.140Z","1.2.0-next.1594687764088":"2020-07-14T00:49:31.398Z","1.2.0-next.1594702171674":"2020-07-14T04:49:39.772Z","1.2.0-next.1594749241934":"2020-07-14T17:54:10.684Z","1.2.0-next.1594751079181":"2020-07-14T18:24:52.850Z","1.2.0-next.1594754962122":"2020-07-14T19:29:30.466Z","1.2.0-next.1594756286695":"2020-07-14T19:51:33.993Z","1.2.0-next.1594759038968":"2020-07-14T20:37:30.393Z","1.2.0-next.1594770801334":"2020-07-14T23:53:32.050Z","1.2.0-next.1594776559650":"2020-07-15T01:29:28.294Z","1.2.0-next.1594786961271":"2020-07-15T04:22:53.942Z","1.2.0-next.1594832515553":"2020-07-15T17:02:06.305Z","1.2.0-next.1594836473982":"2020-07-15T18:08:03.682Z","1.2.0-next.1594844643636":"2020-07-15T20:24:13.051Z","1.2.0-next.1594847225176":"2020-07-15T21:07:14.782Z","1.2.0-next.1594852020048":"2020-07-15T22:27:10.457Z","1.2.0-next.1594857341676":"2020-07-15T23:55:49.848Z","1.2.0-next.1594857692828":"2020-07-16T00:01:43.201Z","1.2.0-next.1594858707879":"2020-07-16T00:18:36.739Z","1.2.0-next.1594859008723":"2020-07-16T00:23:37.661Z","1.2.0-next.1594864351248":"2020-07-16T01:52:41.311Z","1.2.0-next.1594868853578":"2020-07-16T03:07:43.888Z","1.2.0-next.1594912712336":"2020-07-16T15:18:42.073Z","1.2.0-next.1594920351891":"2020-07-16T17:26:01.781Z","1.2.0-next.1594923647118":"2020-07-16T18:20:56.387Z","1.2.0-next.1594927417161":"2020-07-16T19:23:45.789Z","1.2.0-next.1594930566136":"2020-07-16T20:16:13.203Z","1.2.0-next.1594930858901":"2020-07-16T20:21:08.481Z","1.2.0-next.1594931905692":"2020-07-16T20:38:33.520Z","1.2.0-next.1594935253199":"2020-07-16T21:34:21.673Z","1.2.0-next.1594939009276":"2020-07-16T22:36:58.472Z","1.2.0-next.1594939458752":"2020-07-16T22:44:28.682Z","1.2.0-next.1594944111361":"2020-07-17T00:02:01.028Z","1.2.0-next.1594956947736":"2020-07-17T03:35:57.915Z","1.2.0-next.1594964454914":"2020-07-17T05:41:04.322Z","1.2.0-next.1594999489236":"2020-07-17T15:24:58.680Z","1.2.0-next.1595003673144":"2020-07-17T16:34:41.836Z","1.2.0-next.1595004660198":"2020-07-17T16:51:08.232Z","1.2.0-next.1595004899857":"2020-07-17T16:55:07.265Z","1.2.0-next.1595008251840":"2020-07-17T17:51:00.831Z","1.2.0-next.1595008923460":"2020-07-17T18:02:12.986Z","1.2.0-next.1595009460286":"2020-07-17T18:11:07.791Z","1.2.0-next.1595016293206":"2020-07-17T20:05:02.412Z","1.2.0-next.1595019313595":"2020-07-17T20:55:21.105Z","1.2.0-next.1595027584041":"2020-07-17T23:13:13.625Z","1.2.0-next.1595027819540":"2020-07-17T23:17:08.115Z","1.2.0-next.1595028985002":"2020-07-17T23:36:32.518Z","1.2.0-next.1595029304887":"2020-07-17T23:41:52.851Z","1.2.0-next.1595030038372":"2020-07-17T23:54:08.635Z","1.2.0-next.1595031569132":"2020-07-18T00:19:37.062Z","1.2.0-next.1595032578852":"2020-07-18T00:36:27.116Z","1.2.0-next.1595040996323":"2020-07-18T02:56:44.595Z","1.2.0-next.1595094993390":"2020-07-18T17:56:41.449Z","1.2.0-next.1595213306782":"2020-07-20T02:48:35.949Z","1.2.0-next.1595263293876":"2020-07-20T16:41:44.257Z","1.2.0-next.1595266676391":"2020-07-20T17:38:05.597Z","1.2.0-next.1595267162711":"2020-07-20T17:46:10.491Z","1.2.0-next.1595277274592":"2020-07-20T20:34:45.070Z","1.2.0-next.1595280440253":"2020-07-20T21:27:30.269Z","1.2.0-next.1595282630187":"2020-07-20T22:03:58.628Z","1.2.0-next.1595288965914":"2020-07-20T23:49:34.168Z","1.2.0-next.1595292010376":"2020-07-21T00:40:19.227Z","1.2.0-next.1595345333479":"2020-07-21T15:29:05.273Z","1.2.0-next.1595348953964":"2020-07-21T16:29:23.124Z","1.2.0-next.1595349331903":"2020-07-21T16:35:41.486Z","1.2.0-next.1595349529800":"2020-07-21T16:38:58.407Z","1.2.0-next.1595353342339":"2020-07-21T17:42:30.985Z","1.2.0-next.1595359708220":"2020-07-21T19:28:36.047Z","1.2.0-next.1595360810787":"2020-07-21T19:47:02.620Z","1.2.0-next.1595362893187":"2020-07-21T20:21:43.023Z","1.2.0-next.1595363049842":"2020-07-21T20:24:17.960Z","1.2.0-next.1595364665021":"2020-07-21T20:51:12.904Z","1.2.0-next.1595367825306":"2020-07-21T21:43:55.027Z","1.2.0-next.1595370441220":"2020-07-21T22:27:32.968Z","1.2.0-next.1595372395675":"2020-07-21T23:00:04.126Z","1.2.0-next.1595373956262":"2020-07-21T23:26:06.261Z","1.2.0-next.1595374615999":"2020-07-21T23:37:04.235Z","1.2.0-next.1595378838753":"2020-07-22T00:47:28.727Z","1.2.0-next.1595382700626":"2020-07-22T01:51:48.881Z","1.2.0-next.1595383119322":"2020-07-22T01:58:48.534Z","1.2.0-next.1595400618882":"2020-07-22T06:50:26.701Z","1.2.0-next.1595433596821":"2020-07-22T16:00:06.283Z","1.2.0-next.1595434326568":"2020-07-22T16:12:15.431Z","1.2.0-next.1595435009893":"2020-07-22T16:23:39.110Z","1.2.0-next.1595439555433":"2020-07-22T17:39:23.297Z","1.2.0-next.1595440847699":"2020-07-22T18:00:56.972Z","1.2.0-next.1595441141563":"2020-07-22T18:05:51.387Z","1.2.0-next.1595455039483":"2020-07-22T21:57:27.713Z","1.2.0-next.1595455363280":"2020-07-22T22:02:53.302Z","1.2.0-next.1595458910171":"2020-07-22T23:02:00.043Z","1.2.0-next.1595463697569":"2020-07-23T00:21:44.679Z","1.2.0-next.1595464182508":"2020-07-23T00:29:52.095Z","1.2.0-next.1595466440335":"2020-07-23T01:07:29.143Z","1.2.0-next.1595472023537":"2020-07-23T02:40:32.621Z","1.2.0-next.1595476070651":"2020-07-23T03:47:58.670Z","1.2.0-next.1595485784475":"2020-07-23T06:29:54.358Z","1.2.0-next.1595486220762":"2020-07-23T06:37:13.830Z","1.2.0-next.1595486491367":"2020-07-23T06:41:41.539Z","1.2.0-next.1595521163788":"2020-07-23T16:19:31.856Z","1.2.0-next.1595522096507":"2020-07-23T16:35:05.981Z","1.2.0-next.1595525569040":"2020-07-23T17:32:57.932Z","1.2.0-next.1595527483253":"2020-07-23T18:04:52.404Z","1.2.0-next.1595530948019":"2020-07-23T19:02:35.055Z","1.2.0-next.1595533530287":"2020-07-23T19:45:38.131Z","1.2.0-next.1595539317284":"2020-07-23T21:22:06.841Z","1.2.0-next.1595540642965":"2020-07-23T21:44:10.084Z","1.2.0-next.1595540811611":"2020-07-23T21:47:02.435Z","1.2.0-next.1595542591352":"2020-07-23T22:16:41.065Z","1.2.0-next.1595545189333":"2020-07-23T22:59:58.130Z","1.2.0-next.1595546467464":"2020-07-23T23:21:16.254Z","1.2.0-next.1595548172757":"2020-07-23T23:49:40.388Z","1.2.0-next.1595548925238":"2020-07-24T00:02:16.120Z","1.2.0-next.1595551000912":"2020-07-24T00:36:49.596Z","1.2.0-next.1595551325322":"2020-07-24T00:42:15.403Z","1.2.0-next.1595552890947":"2020-07-24T01:08:19.119Z","1.2.0-next.1595576087217":"2020-07-24T07:34:56.291Z","1.2.0-next.1595608375739":"2020-07-24T16:33:03.804Z","1.2.0-next.1595611194103":"2020-07-24T17:20:03.337Z","1.2.0-next.1595618348108":"2020-07-24T19:19:17.110Z","1.2.0-next.1595625150049":"2020-07-24T21:12:38.548Z","1.2.0-next.1595625808301":"2020-07-24T21:23:37.520Z","1.2.0-next.1595627387087":"2020-07-24T21:49:56.703Z","1.2.0-next.1595629110288":"2020-07-24T22:18:38.782Z","1.2.0-next.1595631829935":"2020-07-24T23:03:58.607Z","1.2.0-next.1595632655516":"2020-07-24T23:17:44.104Z","1.2.0-next.1595632870902":"2020-07-24T23:21:19.618Z","1.2.0-next.1595633074291":"2020-07-24T23:24:41.925Z","1.2.0-next.1595633878550":"2020-07-24T23:38:07.959Z","1.2.0-next.1595648531481":"2020-07-25T03:42:19.639Z","1.2.0-next.1595746824307":"2020-07-26T07:00:32.796Z","1.2.0-next.1595824155918":"2020-07-27T04:29:24.685Z","1.2.0-next.1595869623354":"2020-07-27T17:07:11.070Z","1.2.0-next.1595870628916":"2020-07-27T17:23:56.195Z","1.2.0-next.1595871060843":"2020-07-27T17:31:10.652Z","1.2.0-next.1595872484577":"2020-07-27T17:54:55.114Z","1.2.0-next.1595880265637":"2020-07-27T20:04:33.919Z","1.2.0-next.1595882689972":"2020-07-27T20:44:58.347Z","1.2.0-next.1595883567063":"2020-07-27T20:59:35.710Z","1.2.0-next.1595891378810":"2020-07-27T23:09:49.577Z","1.2.0-next.1595892292210":"2020-07-27T23:25:01.022Z","1.2.0-next.1595900551825":"2020-07-28T01:42:40.398Z","1.2.0-next.1595961288758":"2020-07-28T18:34:58.600Z","1.2.0-next.1595968353423":"2020-07-28T20:32:42.633Z","1.2.0-next.1595969325901":"2020-07-28T20:48:54.643Z","1.2.0-next.1595975979773":"2020-07-28T22:39:48.236Z","1.2.0-next.1595976852789":"2020-07-28T22:54:24.332Z","1.2.0-next.1595987352934":"2020-07-29T01:49:20.907Z","1.2.0-next.1596042034353":"2020-07-29T17:00:43.015Z","1.2.0-next.1596044389827":"2020-07-29T17:39:58.606Z","1.2.0-next.1596044576149":"2020-07-29T17:43:04.358Z","1.2.0-next.1596047914765":"2020-07-29T18:38:43.064Z","1.2.0-next.1596048431372":"2020-07-29T18:47:20.413Z","1.2.0-next.1596055239997":"2020-07-29T20:40:48.153Z","1.2.0-next.1596059059055":"2020-07-29T21:44:27.685Z","1.2.0-next.1596060196726":"2020-07-29T22:03:27.300Z","1.2.0-next.1596065880259":"2020-07-29T23:38:09.320Z","1.2.0-next.1596066661269":"2020-07-29T23:51:10.739Z","1.2.0-next.1596068941284":"2020-07-30T00:29:08.654Z","1.2.0-next.1596080705875":"2020-07-30T03:45:15.131Z","1.2.0-next.1596089766698":"2020-07-30T06:16:14.721Z","1.2.0-next.1596089901389":"2020-07-30T06:18:30.055Z","1.2.0-next.1596128502212":"2020-07-30T17:01:51.817Z","1.2.0-next.1596129864986":"2020-07-30T17:24:34.138Z","1.2.0-next.1596131599188":"2020-07-30T17:53:28.394Z","1.2.0-next.1596133086789":"2020-07-30T18:18:14.928Z","1.2.0-next.1596133386193":"2020-07-30T18:23:15.535Z","1.2.0-next.1596134876756":"2020-07-30T18:48:06.087Z","1.2.0-next.1596135243693":"2020-07-30T18:54:14.057Z","1.2.0-next.1596147019700":"2020-07-30T22:10:29.314Z","1.2.0-next.1596148876542":"2020-07-30T22:41:25.752Z","1.2.0-next.1596151449209":"2020-07-30T23:24:18.091Z","1.2.0-next.1596153105097":"2020-07-30T23:51:53.393Z","1.2.0-next.1596154675016":"2020-07-31T00:18:03.575Z","1.2.0-next.1596156879825":"2020-07-31T00:54:48.928Z","1.2.0-next.1596176579393":"2020-07-31T06:23:09.618Z","1.2.0-next.1596213246875":"2020-07-31T16:34:17.049Z","1.2.0-next.1596214133146":"2020-07-31T16:49:02.534Z","1.2.0-next.1596215642450":"2020-07-31T17:14:11.341Z","1.2.0-next.1596218656959":"2020-07-31T18:04:26.280Z","1.2.0-next.1596222043415":"2020-07-31T19:00:54.583Z","1.2.0-next.1596223167711":"2020-07-31T19:19:35.832Z","1.2.0-next.1596230001114":"2020-07-31T21:13:30.524Z","1.2.0-next.1596235656781":"2020-07-31T22:47:46.480Z","1.2.0-next.1596238710055":"2020-07-31T23:38:39.767Z","1.2.0-next.1596240168286":"2020-08-01T00:02:58.109Z","1.2.0-next.1596481477206":"2020-08-03T19:04:46.188Z","1.2.0-next.1596486654464":"2020-08-03T20:31:03.869Z","1.2.0-next.1596487461147":"2020-08-03T20:44:30.570Z","1.2.0-next.1596491070265":"2020-08-03T21:44:38.895Z","1.2.0-next.1596493555782":"2020-08-03T22:26:05.501Z","1.2.0-next.1596493712997":"2020-08-03T22:28:42.171Z","1.2.0-next.1596496132595":"2020-08-03T23:09:02.698Z","1.2.0-next.1596497551903":"2020-08-03T23:32:40.553Z","1.2.0-next.1596511059378":"2020-08-04T03:17:48.956Z","1.2.0-next.1596524656594":"2020-08-04T07:04:26.473Z","1.2.0-next.1596573340874":"2020-08-04T20:35:50.543Z","1.2.0-next.1596577650994":"2020-08-04T21:47:41.022Z","1.2.0-next.1596579088345":"2020-08-04T22:11:37.522Z","1.2.0-next.1596581438258":"2020-08-04T22:50:47.735Z","1.2.0-next.1596581963620":"2020-08-04T22:59:35.737Z","1.2.0-next.1596584043868":"2020-08-04T23:34:12.873Z","1.2.0-next.1596584544106":"2020-08-04T23:42:32.160Z","1.2.0-next.1596587300399":"2020-08-05T00:28:27.753Z","1.2.0-next.1596588055128":"2020-08-05T00:41:03.147Z","1.2.0-next.1596589266682":"2020-08-05T01:01:16.764Z","1.2.0-next.1596646626148":"2020-08-05T16:57:16.093Z","1.2.0-next.1596653191842":"2020-08-05T18:46:41.081Z","1.3.0-next.1596656102521":"2020-08-05T19:35:11.662Z","1.3.0-next.1596659749397":"2020-08-05T20:35:58.615Z","1.3.0-next.1596660336128":"2020-08-05T20:45:45.218Z","1.3.0-next.1596662345203":"2020-08-05T21:19:13.932Z","1.3.0-next.1596663157396":"2020-08-05T21:32:47.195Z","1.3.0-next.1596667815850":"2020-08-05T22:50:25.757Z","1.3.0-next.1596670455232":"2020-08-05T23:34:27.674Z","1.3.0-next.1596671279969":"2020-08-05T23:48:09.425Z","1.3.0-next.1596674025869":"2020-08-06T00:33:54.400Z","1.3.0-next.1596687633727":"2020-08-06T04:20:42.753Z","1.3.0-next.1596691707402":"2020-08-06T05:28:56.541Z","1.3.0-next.1596724409154":"2020-08-06T14:33:44.553Z","1.3.0-next.1596727772094":"2020-08-06T15:29:41.882Z","1.3.0-next.1596735296114":"2020-08-06T17:35:05.284Z","1.3.0":"2020-08-06T20:29:34.991Z","1.3.0-next.1596748465086":"2020-08-06T21:14:38.831Z","1.3.0-next.1596754008156":"2020-08-06T22:46:56.156Z","1.3.0-next.1596756919839":"2020-08-06T23:35:27.490Z","1.3.0-next.1596759529982":"2020-08-07T00:19:00.157Z","1.3.0-next.1596774329078":"2020-08-07T04:25:38.818Z","1.3.0-next.1596814279791":"2020-08-07T15:31:29.625Z","1.3.0-next.1596819335970":"2020-08-07T16:55:46.117Z","1.3.0-next.1596824470757":"2020-08-07T18:21:19.977Z","1.3.0-next.1596834301290":"2020-08-07T21:05:12.059Z","1.3.0-next.1596835763182":"2020-08-07T21:29:31.673Z","1.3.0-next.1596839372253":"2020-08-07T22:29:40.488Z","1.3.0-next.1596839989770":"2020-08-07T22:39:57.863Z","1.3.0-next.1596840206819":"2020-08-07T22:43:36.158Z","1.3.0-next.1596842639914":"2020-08-07T23:24:10.835Z","1.3.0-next.1596843106133":"2020-08-07T23:31:55.170Z","1.3.0-next.1596859037816":"2020-08-08T03:57:29.128Z","1.3.0-next.1596941087026":"2020-08-09T02:44:55.355Z","1.3.0-next.1597073497045":"2020-08-10T15:31:46.986Z","1.3.0-next.1597080280373":"2020-08-10T17:24:49.603Z","1.3.0-next.1597083749625":"2020-08-10T18:22:40.115Z","1.3.0-next.1597084940660":"2020-08-10T18:42:29.904Z","1.3.0-next.1597094454045":"2020-08-10T21:21:02.868Z","1.3.0-next.1597096964634":"2020-08-10T22:02:54.130Z","1.3.0-next.1597097560274":"2020-08-10T22:12:48.300Z","1.3.0-next.1597101025186":"2020-08-10T23:10:36.452Z","1.3.0-next.1597103435921":"2020-08-10T23:50:46.090Z","1.3.0-next.1597104801107":"2020-08-11T00:13:29.648Z","1.3.0-next.1597109436262":"2020-08-11T01:30:45.423Z","1.3.0-next.1597115560336":"2020-08-11T03:12:48.339Z","1.3.0-next.1597117906386":"2020-08-11T03:51:57.406Z","1.3.0-next.1597119883188":"2020-08-11T04:24:51.905Z","1.3.0-next.1597126015063":"2020-08-11T06:07:06.085Z","1.3.0-next.1597160741758":"2020-08-11T15:45:53.635Z","1.3.0-next.1597161656469":"2020-08-11T16:01:06.086Z","1.3.0-next.1597168774233":"2020-08-11T17:59:42.585Z","1.3.0-next.1597171130273":"2020-08-11T18:39:01.842Z","1.3.0-next.1597179672240":"2020-08-11T21:01:20.588Z","1.3.0-next.1597181600381":"2020-08-11T21:33:29.620Z","1.3.0-next.1597186102430":"2020-08-11T22:48:30.888Z","1.3.0-next.1597186360208":"2020-08-11T22:52:48.894Z","1.3.0-next.1597187254356":"2020-08-11T23:07:45.179Z","1.3.0-next.1597200383537":"2020-08-12T02:46:33.170Z","1.3.0-next.1597247436303":"2020-08-12T15:50:47.184Z","1.3.0-next.1597252288192":"2020-08-12T17:11:40.073Z","1.3.0-next.1597253013630":"2020-08-12T17:23:42.268Z","1.3.0-next.1597253608765":"2020-08-12T17:33:36.657Z","1.3.0-next.1597258221612":"2020-08-12T18:50:31.412Z","1.3.0-next.1597265380208":"2020-08-12T20:49:50.224Z","1.3.0-next.1597266267815":"2020-08-12T21:04:37.337Z","1.3.0-next.1597268214820":"2020-08-12T21:37:04.452Z","1.3.0-next.1597268866638":"2020-08-12T21:47:58.235Z","1.3.0-next.1597269879734":"2020-08-12T22:04:51.062Z","1.3.0-next.1597271056915":"2020-08-12T22:24:25.605Z","1.3.0-next.1597273460676":"2020-08-12T23:04:31.784Z","1.3.0-next.1597273739203":"2020-08-12T23:09:08.006Z","1.3.0-next.1597276304551":"2020-08-12T23:51:53.904Z","1.3.0-next.1597279976575":"2020-08-13T00:53:05.826Z","1.3.0-next.1597282275454":"2020-08-13T01:31:23.321Z","1.3.0-next.1597288103172":"2020-08-13T03:08:34.563Z","1.3.0-next.1597289709940":"2020-08-13T03:35:18.971Z","1.3.0-next.1597294992115":"2020-08-13T05:03:20.409Z","1.3.0-next.1597297417562":"2020-08-13T05:43:48.000Z","1.3.0-next.1597335254968":"2020-08-13T16:14:26.205Z","1.3.0-next.1597336537257":"2020-08-13T16:35:49.095Z","1.3.0-next.1597340491141":"2020-08-13T17:41:39.240Z","1.3.0-next.1597341067505":"2020-08-13T17:51:20.743Z","1.3.0-next.1597341778179":"2020-08-13T18:03:07.436Z","1.3.0-next.1597344378285":"2020-08-13T18:46:27.124Z","1.3.0-next.1597344682981":"2020-08-13T18:51:33.568Z","1.3.0-next.1597346271657":"2020-08-13T19:18:00.775Z","1.3.0-next.1597350401980":"2020-08-13T20:26:51.332Z","1.3.0-next.1597350852423":"2020-08-13T20:34:23.570Z","1.3.0-next.1597352363519":"2020-08-13T20:59:35.264Z","1.3.0-next.1597354616825":"2020-08-13T21:37:08.839Z","1.3.0-next.1597359729750":"2020-08-13T23:02:18.812Z","1.3.0-next.1597362725462":"2020-08-13T23:52:13.701Z","1.3.0-next.1597365285842":"2020-08-14T00:34:56.901Z","1.3.0-next.1597366968997":"2020-08-14T01:02:57.294Z","1.3.0-next.1597376235955":"2020-08-14T03:37:25.147Z","1.3.0-next.1597383304884":"2020-08-14T05:35:16.106Z","1.3.0-next.1597383464827":"2020-08-14T05:37:54.124Z","1.3.0-next.1597385788203":"2020-08-14T06:16:37.172Z","1.3.0-next.1597385990000":"2020-08-14T06:20:00.041Z","1.3.0-next.1597388401501":"2020-08-14T07:00:13.027Z","1.3.0-next.1597415102952":"2020-08-14T14:25:14.930Z","1.3.0-next.1597415431708":"2020-08-14T14:30:43.193Z","1.3.0-next.1597436476908":"2020-08-14T20:21:29.248Z","1.3.0-next.1597437873160":"2020-08-14T20:44:44.572Z","1.3.0-next.1597438127501":"2020-08-14T20:48:59.981Z","1.3.0-next.1597441825957":"2020-08-14T21:50:34.453Z","1.3.0-next.1597449083429":"2020-08-14T23:51:31.505Z","1.3.0-next.1597454841529":"2020-08-15T01:27:30.300Z","1.3.0-next.1597458795090":"2020-08-15T02:33:24.607Z","1.3.0-next.1597458984787":"2020-08-15T02:36:32.933Z","1.3.0-next.1597469285301":"2020-08-15T05:28:17.295Z","1.3.0-next.1597476072960":"2020-08-15T07:21:24.451Z","1.3.0-next.1597524141296":"2020-08-15T20:42:31.636Z","1.3.0-next.1597537050288":"2020-08-16T00:17:38.796Z","1.3.0-next.1597614197670":"2020-08-16T21:43:27.555Z","1.3.0-next.1597621351920":"2020-08-16T23:42:40.403Z","1.3.0-next.1597630926292":"2020-08-17T02:22:15.761Z","1.3.0-next.1597685747374":"2020-08-17T17:35:58.080Z","1.3.0-next.1597686546244":"2020-08-17T17:49:15.278Z","1.3.0-next.1597688870058":"2020-08-17T18:27:58.696Z","1.3.0-next.1597693686052":"2020-08-17T19:48:16.150Z","1.3.0-next.1597698860927":"2020-08-17T21:14:33.318Z","1.3.0-next.1597700317200":"2020-08-17T21:38:46.321Z","1.3.1-next.1597700800153":"2020-08-17T21:46:53.321Z","1.3.0-next.1597705827215":"2020-08-17T23:10:35.372Z","1.3.0-next.1597706455637":"2020-08-17T23:21:03.682Z","1.3.0-next.1597706662454":"2020-08-17T23:24:32.175Z","1.3.0-next.1597708496552":"2020-08-17T23:55:05.176Z","1.3.0-next.1597723481102":"2020-08-18T04:04:50.211Z","1.3.0-next.1597768771103":"2020-08-18T16:39:44.085Z","1.3.0-next.1597769979075":"2020-08-18T16:59:46.869Z","1.3.0-next.1597776060158":"2020-08-18T18:41:08.983Z","1.3.0-next.1597780234590":"2020-08-18T19:50:45.727Z","1.3.0-next.1597785252362":"2020-08-18T21:14:21.147Z","1.3.0-next.1597790405448":"2020-08-18T22:40:13.549Z","1.3.0-next.1597794391723":"2020-08-18T23:46:41.818Z","1.3.0-next.1597797380594":"2020-08-19T00:36:33.399Z","1.3.0-next.1597801908419":"2020-08-19T01:51:57.604Z","1.3.0-next.1597802279156":"2020-08-19T01:58:08.345Z","1.3.0-next.1597803314508":"2020-08-19T02:15:22.255Z","1.3.0-next.1597807700198":"2020-08-19T03:28:29.174Z","1.3.0-next.1597816984759":"2020-08-19T06:03:13.366Z","1.3.0-next.1597853612529":"2020-08-19T16:13:42.959Z","1.3.0-next.1597858435779":"2020-08-19T17:34:05.889Z","1.3.0-next.1597866464715":"2020-08-19T19:47:56.246Z","1.3.0-next.1597867084996":"2020-08-19T19:58:15.570Z","1.3.0-next.1597868989232":"2020-08-19T20:29:58.282Z","1.3.0-next.1597869167427":"2020-08-19T20:32:58.269Z","1.3.0-next.1597869535406":"2020-08-19T20:39:03.885Z","1.3.0-next.1597874806449":"2020-08-19T22:06:55.495Z","1.3.0-next.1597876883789":"2020-08-19T22:41:32.126Z","1.3.0-next.1597878404842":"2020-08-19T23:06:54.250Z","1.3.0-next.1597882926371":"2020-08-20T00:22:15.851Z","1.3.0-next.1597884578277":"2020-08-20T00:49:47.597Z","1.3.0-next.1597898044660":"2020-08-20T04:34:14.099Z","1.3.0-next.1597940944477":"2020-08-20T16:29:13.679Z","1.3.0-next.1597946811201":"2020-08-20T18:06:59.222Z","1.3.0-next.1597947171031":"2020-08-20T18:12:59.712Z","1.3.0-next.1597948086012":"2020-08-20T18:28:18.207Z","1.3.0-next.1597953165922":"2020-08-20T19:52:54.267Z","1.3.0-next.1597955294473":"2020-08-20T20:28:23.927Z","1.3.0-next.1597957495308":"2020-08-20T21:05:04.505Z","1.3.0-next.1597958490200":"2020-08-20T21:21:39.562Z","1.3.0-next.1597964771292":"2020-08-20T23:06:20.062Z","1.3.0-next.1597967474717":"2020-08-20T23:51:23.907Z","1.3.0-next.1597967582897":"2020-08-20T23:53:12.033Z","1.3.0-next.1597970807086":"2020-08-21T00:46:54.864Z","1.3.0-next.1597978283154":"2020-08-21T02:51:33.090Z","1.3.0-next.1598028906634":"2020-08-21T16:55:15.970Z","1.3.0-next.1598029084526":"2020-08-21T16:58:13.242Z","1.3.0-next.1598041486822":"2020-08-21T20:24:56.479Z","1.3.0-next.1598052520246":"2020-08-21T23:28:49.267Z","1.3.0-next.1598055360952":"2020-08-22T00:16:08.875Z","1.3.0-next.1598060874848":"2020-08-22T01:48:05.034Z","1.3.0-next.1598065304830":"2020-08-22T03:01:53.771Z","1.3.0-next.1598080036870":"2020-08-22T07:07:25.418Z","1.3.0-next.1598111309672":"2020-08-22T15:48:37.939Z","1.3.0-next.1598117182790":"2020-08-22T17:26:30.995Z","1.3.0-next.1598134554137":"2020-08-22T22:16:04.409Z","1.3.0-next.1598136536127":"2020-08-22T22:49:05.082Z","1.3.0-next.1598140010159":"2020-08-22T23:46:59.069Z","1.3.0-next.1598156350193":"2020-08-23T04:19:19.536Z","1.3.0-next.1598196240995":"2020-08-23T15:24:09.858Z","1.3.0-next.1598208400601":"2020-08-23T18:46:50.681Z","1.3.0-next.1598215743923":"2020-08-23T20:49:13.222Z","1.3.0-next.1598222493765":"2020-08-23T22:41:43.510Z","1.3.0-next.1598227694738":"2020-08-24T00:08:23.421Z","1.3.0-next.1598239506721":"2020-08-24T03:25:18.137Z","1.3.0-next.1598239671503":"2020-08-24T03:27:59.883Z","1.3.0-next.1598243169784":"2020-08-24T04:26:18.371Z","1.3.0-next.1598277233872":"2020-08-24T13:54:03.783Z","1.3.0-next.1598281882574":"2020-08-24T15:11:32.151Z","1.3.0-next.1598284711748":"2020-08-24T15:58:40.578Z","1.3.0-next.1598289995418":"2020-08-24T17:26:45.363Z","1.3.0-next.1598290843040":"2020-08-24T17:40:52.692Z","1.3.0-next.1598303554624":"2020-08-24T21:12:44.783Z","1.3.0-next.1598305802727":"2020-08-24T21:50:13.143Z","1.3.0-next.1598306258028":"2020-08-24T21:57:46.463Z","1.3.0-next.1598308372537":"2020-08-24T22:33:03.680Z","1.3.0-next.1598314092109":"2020-08-25T00:08:21.988Z","1.3.0-next.1598315168489":"2020-08-25T00:26:16.384Z","1.3.0-next.1598315687909":"2020-08-25T00:34:58.528Z","1.3.0-next.1598320841785":"2020-08-25T02:00:53.478Z","1.3.0-next.1598321899269":"2020-08-25T02:18:29.524Z","1.3.0-next.1598324536915":"2020-08-25T03:02:26.571Z","1.3.0-next.1598326091014":"2020-08-25T03:28:20.394Z","1.3.0-next.1598367400543":"2020-08-25T14:56:50.186Z","1.3.0-next.1598368707723":"2020-08-25T15:18:37.828Z","1.3.0-next.1598377190940":"2020-08-25T17:40:01.282Z","1.3.0-next.1598377693593":"2020-08-25T17:48:21.897Z","1.3.0-next.1598378535565":"2020-08-25T18:02:27.537Z","1.3.0-next.1598386183636":"2020-08-25T20:09:53.217Z","1.3.0-next.1598386609368":"2020-08-25T20:16:59.458Z","1.3.0-next.1598392343608":"2020-08-25T21:52:34.362Z","1.3.0-next.1598395719293":"2020-08-25T22:48:47.940Z","1.3.0-next.1598397927154":"2020-08-25T23:25:35.105Z","1.3.0-next.1598398510763":"2020-08-25T23:35:19.384Z","1.3.0-next.1598401047604":"2020-08-26T00:17:36.975Z","1.3.0-next.1598401216005":"2020-08-26T00:20:25.210Z","1.3.0-next.1598407887224":"2020-08-26T02:11:37.006Z","1.3.0-next.1598414918102":"2020-08-26T04:08:47.297Z","1.3.0-next.1598435719412":"2020-08-26T09:55:28.433Z","1.3.0-next.1598457542588":"2020-08-26T15:59:11.689Z","1.3.0-next.1598457666050":"2020-08-26T16:01:15.514Z","1.3.0-next.1598460020465":"2020-08-26T16:40:29.962Z","1.3.0-next.1598471344335":"2020-08-26T19:49:13.651Z","1.3.0-next.1598474140361":"2020-08-26T20:35:50.315Z","1.3.0-next.1598476578409":"2020-08-26T21:16:26.717Z","1.3.0-next.1598476714110":"2020-08-26T21:18:43.655Z","1.3.0-next.1598480448608":"2020-08-26T22:20:57.425Z","1.3.0-next.1598483051544":"2020-08-26T23:04:20.958Z","1.3.0-next.1598484882998":"2020-08-26T23:34:51.640Z","1.3.0-next.1598498449373":"2020-08-27T03:20:58.801Z","1.3.0-next.1598506302971":"2020-08-27T05:31:51.203Z","1.3.0-next.1598548586697":"2020-08-27T17:16:35.585Z","1.3.0-next.1598553835123":"2020-08-27T18:44:04.154Z","1.3.0-next.1598571400771":"2020-08-27T23:36:50.596Z","1.3.0-next.1598575740543":"2020-08-28T00:49:11.350Z","1.3.0-next.1598587846573":"2020-08-28T04:10:55.554Z","1.3.0-next.1598600132123":"2020-08-28T07:35:40.973Z","1.3.0-next.1598613754458":"2020-08-28T11:22:43.605Z","1.3.0-next.1598632813444":"2020-08-28T16:40:22.267Z","1.3.0-next.1598634345152":"2020-08-28T17:05:53.751Z","1.3.0-next.1598635497283":"2020-08-28T17:25:06.236Z","1.3.0-next.1598636413536":"2020-08-28T17:40:23.128Z","1.3.0-next.1598637465498":"2020-08-28T17:57:57.152Z","1.3.0-next.1598639970753":"2020-08-28T18:39:40.455Z","1.3.0-next.1598641659183":"2020-08-28T19:07:47.326Z","1.3.0-next.1598647557380":"2020-08-28T20:46:06.759Z","1.3.0-next.1598649294894":"2020-08-28T21:15:05.321Z","1.3.0-next.1598649619211":"2020-08-28T21:20:29.261Z","1.3.0-next.1598650514434":"2020-08-28T21:35:23.436Z","1.3.0-next.1598654824904":"2020-08-28T22:47:13.748Z","1.3.0-next.1598657205000":"2020-08-28T23:26:53.933Z","1.3.0-next.1598658542214":"2020-08-28T23:49:11.502Z","1.3.0-next.1598662636045":"2020-08-29T00:57:26.261Z","1.3.0-next.1598664415420":"2020-08-29T01:27:03.563Z","1.3.0-next.1598668196737":"2020-08-29T02:30:06.244Z","1.3.0-next.1598714977010":"2020-08-29T15:29:45.807Z","1.3.0-next.1598888724864":"2020-08-31T15:45:35.914Z","1.3.0-next.1598892864552":"2020-08-31T16:54:32.590Z","1.3.0-next.1598896035671":"2020-08-31T17:47:25.577Z","1.3.0-next.1598905231974":"2020-08-31T20:20:43.284Z","1.3.0-next.1598912584128":"2020-08-31T22:23:16.710Z","1.3.0-next.1598918523432":"2020-09-01T00:02:15.854Z","1.3.0-next.1598921133538":"2020-09-01T00:45:45.139Z","1.3.0-next.1598985323541":"2020-09-01T18:35:34.975Z","1.3.0-next.1598987234371":"2020-09-01T19:07:25.298Z","1.3.0-next.1598995622199":"2020-09-01T21:27:10.560Z","1.3.0-next.1598995817925":"2020-09-01T21:30:25.786Z","1.3.0-next.1599003121743":"2020-09-01T23:32:12.947Z","1.3.0-next.1599003932864":"2020-09-01T23:45:43.617Z","1.3.0-next.1599004411039":"2020-09-01T23:53:41.726Z","1.3.0-next.1599004570693":"2020-09-01T23:56:21.561Z","1.3.0-next.1599005088626":"2020-09-02T00:04:57.702Z","1.3.0-next.1599005764409":"2020-09-02T00:16:15.065Z","1.3.0-next.1599007533360":"2020-09-02T00:45:46.318Z","1.3.0-next.1599016545188":"2020-09-02T03:15:58.102Z","1.3.0-next.1599061793983":"2020-09-02T15:50:02.278Z","1.3.0-next.1599067371432":"2020-09-02T17:23:03.261Z","1.3.0-next.1599068161515":"2020-09-02T17:36:12.404Z","1.3.0-next.1599068572884":"2020-09-02T17:43:03.445Z","1.3.0-next.1599071704161":"2020-09-02T18:35:14.514Z","1.3.0-next.1599072514419":"2020-09-02T18:48:46.575Z","1.3.0-next.1599076737027":"2020-09-02T19:59:09.347Z","1.3.0-next.1599082198991":"2020-09-02T21:30:12.982Z","1.3.0-next.1599083028713":"2020-09-02T21:43:56.576Z","1.3.0-next.1599085535285":"2020-09-02T22:25:43.014Z","1.3.0-next.1599087752803":"2020-09-02T23:02:44.042Z","1.3.0-next.1599088659100":"2020-09-02T23:17:46.472Z","1.3.0-next.1599093010527":"2020-09-03T00:30:22.512Z","1.3.0-next.1599093174376":"2020-09-03T00:33:06.237Z","1.3.0-next.1599095054939":"2020-09-03T01:04:26.091Z","1.3.0-next.1599095704890":"2020-09-03T01:15:14.987Z","1.3.0-next.1599107487304":"2020-09-03T04:31:38.500Z","1.3.0-next.1599108335592":"2020-09-03T04:45:47.045Z","1.3.0-next.1599114295616":"2020-09-03T06:25:08.529Z","1.3.0-next.1599114915095":"2020-09-03T06:35:26.125Z","1.3.0-next.1599115661893":"2020-09-03T06:47:54.293Z","1.3.0-next.1599151509690":"2020-09-03T16:45:18.807Z","1.3.0-next.1599152298508":"2020-09-03T16:58:26.613Z","1.3.0-next.1599153074213":"2020-09-03T17:11:24.935Z","1.3.0-next.1599159712407":"2020-09-03T19:02:04.371Z","1.3.0-next.1599164086004":"2020-09-03T20:14:57.664Z","1.3.0-next.1599177541247":"2020-09-03T23:59:09.715Z","1.3.0-next.1599196315303":"2020-09-04T05:12:06.485Z","1.3.0-next.1599201365599":"2020-09-04T06:36:16.600Z","1.3.0-next.1599205521241":"2020-09-04T07:45:33.648Z","1.3.0-next.1599211243156":"2020-09-04T09:20:53.752Z","1.3.0-next.1599214585203":"2020-09-04T10:16:37.347Z","1.3.0-next.1599214778118":"2020-09-04T10:19:48.675Z","1.3.0-next.1599218389195":"2020-09-04T11:19:58.603Z","1.3.0-next.1599218722159":"2020-09-04T11:25:33.549Z","1.3.0-next.1599240263382":"2020-09-04T17:24:35.419Z","1.3.0-next.1599251789361":"2020-09-04T20:36:39.354Z","1.3.0-next.1599262434183":"2020-09-04T23:34:03.628Z","1.3.0-next.1599265233162":"2020-09-05T00:20:44.574Z","1.3.0-next.1599284371649":"2020-09-05T05:39:40.683Z","1.3.0-next.1599370823388":"2020-09-06T05:40:33.320Z","1.3.0-next.1599429518127":"2020-09-06T21:58:47.640Z","1.3.0-next.1599441702196":"2020-09-07T01:21:51.815Z","1.3.0-next.1599453530390":"2020-09-07T04:39:00.840Z","1.3.0-next.1599519120622":"2020-09-07T22:52:09.016Z","1.3.0-next.1599585741808":"2020-09-08T17:22:31.154Z","1.3.0-next.1599600327082":"2020-09-08T21:25:36.303Z","1.3.0-next.1599603173494":"2020-09-08T22:13:03.839Z","1.3.0-next.1599604882492":"2020-09-08T22:41:32.789Z","1.3.0-next.1599606174214":"2020-09-08T23:03:04.114Z","1.3.0-next.1599609772758":"2020-09-09T00:03:02.269Z","1.3.0-next.1599610063618":"2020-09-09T00:07:53.302Z","1.3.0-next.1599610882935":"2020-09-09T00:21:34.437Z","1.3.0-next.1599611408173":"2020-09-09T00:30:20.887Z","1.3.0-next.1599612840481":"2020-09-09T00:54:16.679Z","1.3.0-next.1599620767628":"2020-09-09T03:06:22.997Z","1.3.0-next.1599638423128":"2020-09-09T08:00:38.238Z","1.3.0-next.1599646141993":"2020-09-09T10:09:19.666Z","1.3.0-next.1599668281572":"2020-09-09T16:18:16.417Z","1.3.0-next.1599669520261":"2020-09-09T16:38:55.472Z","1.3.0-next.1599670414941":"2020-09-09T16:53:47.901Z","1.3.0-next.1599677101200":"2020-09-09T18:45:12.611Z","1.3.0-next.1599685315512":"2020-09-09T21:02:08.916Z","1.3.0-next.1599696423951":"2020-09-10T00:07:16.935Z","1.3.0-next.1599696988013":"2020-09-10T00:16:39.685Z","1.3.0-next.1599697751758":"2020-09-10T00:29:24.835Z","1.3.0-next.1599698102406":"2020-09-10T00:35:14.680Z","1.3.0-next.1599702342316":"2020-09-10T01:45:56.157Z","1.3.0-next.1599710774764":"2020-09-10T04:06:26.416Z","1.3.0-next.1599723783956":"2020-09-10T07:43:17.461Z","1.3.0-next.1599756747260":"2020-09-10T16:52:42.342Z","1.4.0-next.1599772810762":"2020-09-10T21:20:23.411Z","1.4.0-next.1599773265948":"2020-09-10T21:28:00.362Z","1.4.0-next.1599774041633":"2020-09-10T21:40:52.566Z","1.4.0-next.1599776156213":"2020-09-10T22:16:08.244Z","1.4.0-next.1599776227719":"2020-09-10T22:17:20.085Z","1.4.0":"2020-09-10T22:26:55.357Z","1.4.0-next.1599777364575":"2020-09-10T22:36:16.555Z","1.4.0-next.1599780126393":"2020-09-10T23:22:18.026Z","1.4.0-next.1599780877737":"2020-09-10T23:34:49.360Z","1.4.0-next.1599781084572":"2020-09-10T23:38:18.185Z","1.4.0-next.1599786666672":"2020-09-11T01:11:18.888Z","1.4.0-next.1599791255263":"2020-09-11T02:27:49.200Z","1.4.0-next.1599798822847":"2020-09-11T04:34:06.561Z","1.4.0-next.1599799450238":"2020-09-11T04:44:22.900Z","1.4.0-next.1599843842893":"2020-09-11T17:04:17.438Z","1.4.0-next.1599849401727":"2020-09-11T18:36:55.982Z","1.4.0-next.1599852649642":"2020-09-11T19:31:02.101Z","1.4.0-next.1599856220627":"2020-09-11T20:30:33.164Z","1.4.0-next.1599857445411":"2020-09-11T20:50:58.551Z","1.4.0-next.1599860560983":"2020-09-11T21:42:53.501Z","1.4.0-next.1599862577306":"2020-09-11T22:16:30.759Z","1.4.0-next.1599876035713":"2020-09-12T02:00:48.197Z","1.4.0-next.1599892520007":"2020-09-12T06:35:32.248Z","1.4.0-next.1600095486146":"2020-09-14T14:58:19.627Z","1.4.0-next.1600104525074":"2020-09-14T17:28:59.715Z","1.4.0-next.1600105212685":"2020-09-14T17:40:26.034Z","1.4.0-next.1600119940532":"2020-09-14T21:46:12.143Z","1.4.0-next.1600120671246":"2020-09-14T21:58:04.754Z","1.4.0-next.1600121217122":"2020-09-14T22:07:32.649Z","1.4.0-next.1600121343963":"2020-09-14T22:09:18.086Z","1.4.0-next.1600121707833":"2020-09-14T22:15:20.500Z","1.4.0-next.1600127102931":"2020-09-14T23:45:36.445Z","1.4.0-next.1600130893663":"2020-09-15T00:48:27.500Z","1.4.0-next.1600134178419":"2020-09-15T01:43:09.043Z","1.4.0-next.1600134279157":"2020-09-15T01:44:52.788Z","1.4.0-next.1600136759862":"2020-09-15T02:26:16.165Z","1.4.0-next.1600143826842":"2020-09-15T04:24:00.735Z","1.4.0-next.1600188518640":"2020-09-15T16:48:55.042Z","1.4.0-next.1600208608557":"2020-09-15T22:23:41.069Z","1.4.0-next.1600210914459":"2020-09-15T23:02:05.910Z","1.4.0-next.1600275993117":"2020-09-16T17:06:46.921Z","1.4.0-next.1600276269962":"2020-09-16T17:11:25.358Z","1.4.0-next.1600286575792":"2020-09-16T20:03:10.094Z","1.4.0-next.1600290571416":"2020-09-16T21:09:47.188Z","1.4.0-next.1600295361732":"2020-09-16T22:29:35.438Z","1.4.0-next.1600297784077":"2020-09-16T23:09:57.309Z","1.4.0-next.1600318113138":"2020-09-17T04:48:45.193Z","1.4.0-next.1600320641422":"2020-09-17T05:30:55.980Z","1.4.0-next.1600326580921":"2020-09-17T07:09:53.717Z","1.4.0-next.1600360489029":"2020-09-17T16:35:02.323Z","1.4.0-next.1600367007440":"2020-09-17T18:23:42.412Z","1.4.0-next.1600447536777":"2020-09-18T16:45:50.457Z","1.4.0-next.1600450158675":"2020-09-18T17:29:33.111Z","1.4.0-next.1600450385577":"2020-09-18T17:33:17.991Z","1.4.1-next.1600455119036":"2020-09-18T18:52:16.590Z","1.4.0-next.1600455371298":"2020-09-18T18:56:25.472Z","1.4.1":"2020-09-18T19:15:58.423Z","1.4.0-next.1600465995112":"2020-09-18T21:53:29.810Z","1.4.0-next.1600469641985":"2020-09-18T22:54:15.631Z","1.4.0-next.1600475934986":"2020-09-19T00:39:08.655Z","1.4.0-next.1600649126686":"2020-09-21T00:45:41.538Z","1.4.0-next.1600701724535":"2020-09-21T15:22:19.044Z","1.4.0-next.1600703380158":"2020-09-21T15:49:53.393Z","1.4.0-next.1600703706404":"2020-09-21T15:55:21.888Z","1.4.0-next.1600724544289":"2020-09-21T21:42:38.360Z","1.4.0-next.1600725374236":"2020-09-21T21:56:28.044Z","1.4.0-next.1600728592140":"2020-09-21T22:50:06.224Z","1.4.0-next.1600728831111":"2020-09-21T22:54:06.095Z","1.4.0-next.1600729591098":"2020-09-21T23:06:44.642Z","1.4.0-next.1600729883812":"2020-09-21T23:11:37.828Z","1.4.0-next.1600736465379":"2020-09-22T01:01:19.624Z","1.4.0-next.1600740327934":"2020-09-22T02:05:40.073Z","1.4.0-next.1600804342722":"2020-09-22T19:52:34.913Z","1.4.0-next.1600804474198":"2020-09-22T19:54:48.953Z","1.4.0-next.1600807667294":"2020-09-22T20:48:01.704Z","1.4.0-next.1600817999917":"2020-09-22T23:40:14.469Z","1.4.0-next.1600898059397":"2020-09-23T21:54:35.512Z","1.4.0-next.1600899188316":"2020-09-23T22:13:23.134Z","1.4.1-next.1600903717669":"2020-09-23T23:28:51.393Z","1.4.2-next.1600904063807":"2020-09-23T23:34:38.704Z","1.4.0-next.1600924904009":"2020-09-24T05:21:58.549Z","1.4.0-next.1600929113469":"2020-09-24T06:32:08.414Z","1.4.0-next.1600947628860":"2020-09-24T11:40:44.171Z","1.4.0-next.1600962572946":"2020-09-24T15:49:47.304Z","1.4.0-next.1600969657354":"2020-09-24T17:47:50.080Z","1.4.0-next.1600972351156":"2020-09-24T18:32:44.824Z","1.4.0-next.1600975115296":"2020-09-24T19:18:47.496Z","1.4.0-next.1600977963917":"2020-09-24T20:06:17.600Z","1.4.2":"2020-09-24T22:47:20.146Z","1.4.0-next.1601063652513":"2020-09-25T19:54:26.726Z","1.4.0-next.1601072875676":"2020-09-25T22:28:09.219Z","1.4.0-next.1601081821882":"2020-09-26T00:57:16.553Z","1.4.0-next.1601087353553":"2020-09-26T02:29:28.220Z","1.4.0-next.1601095558784":"2020-09-26T04:46:26.203Z","1.4.0-next.1601101957744":"2020-09-26T06:32:50.337Z","1.4.0-next.1601143302536":"2020-09-26T18:01:58.130Z","1.4.0-next.1601155092514":"2020-09-26T21:18:25.212Z","1.4.0-next.1601161680085":"2020-09-26T23:08:15.770Z","1.4.0-next.1601400749790":"2020-09-29T17:32:44.123Z","1.4.0-next.1601403890556":"2020-09-29T18:25:04.970Z","1.4.0-next.1601405607548":"2020-09-29T18:53:41.740Z","1.4.0-next.1601413195500":"2020-09-29T21:00:10.377Z","1.4.0-next.1601427776394":"2020-09-30T01:03:09.044Z","1.4.0-next.1601430876747":"2020-09-30T01:54:52.154Z","1.4.0-next.1601438955515":"2020-09-30T04:09:29.334Z","1.4.0-next.1601451522748":"2020-09-30T07:38:57.721Z","1.4.0-next.1601457206825":"2020-09-30T09:13:41.619Z","1.4.0-next.1601464586909":"2020-09-30T11:16:42.497Z","1.4.0-next.1601466240128":"2020-09-30T11:44:14.626Z","1.4.0-next.1601478285219":"2020-09-30T15:05:00.035Z","1.4.0-next.1601510088293":"2020-09-30T23:55:04.674Z","1.4.0-next.1601511906871":"2020-10-01T00:25:21.348Z","1.4.0-next.1601525967080":"2020-10-01T04:19:40.802Z","1.4.0-next.1601535129550":"2020-10-01T06:52:23.559Z","1.4.0-next.1601555567250":"2020-10-01T12:33:01.438Z","1.4.0-next.1601575702546":"2020-10-01T18:08:37.880Z","1.4.0-next.1601581992734":"2020-10-01T19:53:27.225Z","1.4.0-next.1601584488728":"2020-10-01T20:35:04.330Z","1.4.0-next.1601607485488":"2020-10-02T02:58:19.146Z","1.4.0-next.1601617766723":"2020-10-02T05:49:40.667Z","1.4.0-next.1601637372722":"2020-10-02T11:16:27.210Z","1.4.0-next.1601656184292":"2020-10-02T16:29:59.905Z","1.4.0-next.1601661818401":"2020-10-02T18:03:50.901Z","1.4.0-next.1601684336413":"2020-10-03T00:19:10.617Z","1.4.0-next.1601684995262":"2020-10-03T00:30:09.723Z","1.4.0-next.1601691667843":"2020-10-03T02:21:21.077Z","1.4.0-next.1601860812493":"2020-10-05T01:20:27.317Z","1.4.0-next.1601897169302":"2020-10-05T11:26:24.352Z","1.4.0-next.1601920848357":"2020-10-05T18:01:03.082Z","1.4.0-next.1601936611526":"2020-10-05T22:23:48.973Z","1.4.0-next.1601942712379":"2020-10-06T00:05:27.045Z","1.4.0-next.1601959642881":"2020-10-06T04:47:37.305Z","1.4.0-next.1601968645268":"2020-10-06T07:17:39.553Z","1.4.0-next.1601974526442":"2020-10-06T08:55:40.596Z","1.4.0-next.1601978748998":"2020-10-06T10:06:02.220Z","1.4.0-next.1602011346425":"2020-10-06T19:09:22.179Z","1.4.0-next.1602020572233":"2020-10-06T21:43:07.024Z","1.4.0-next.1602024798932":"2020-10-06T22:53:33.230Z","1.4.0-next.1602044310083":"2020-10-07T04:18:44.542Z","1.4.0-next.1602086815543":"2020-10-07T16:07:09.435Z","1.4.0-next.1602087910223":"2020-10-07T16:25:24.500Z","1.4.0-next.1602091572112":"2020-10-07T17:26:26.533Z","1.4.0-next.1602094252123":"2020-10-07T18:11:05.978Z","1.4.0-next.1602102429613":"2020-10-07T20:27:22.985Z","1.4.0-next.1602102583828":"2020-10-07T20:30:00.815Z","1.4.0-next.1602105256536":"2020-10-07T21:14:31.202Z","1.4.0-next.1602106614945":"2020-10-07T21:37:10.105Z","1.4.0-next.1602118085591":"2020-10-08T00:48:18.223Z","1.4.0-next.1602175670002":"2020-10-08T16:48:05.134Z","1.4.0-next.1602182727430":"2020-10-08T18:45:43.080Z","1.4.0-next.1602183299041":"2020-10-08T18:55:14.133Z","1.4.0-next.1602205676622":"2020-10-09T01:08:10.331Z","1.4.0-next.1602219946954":"2020-10-09T05:06:01.508Z","1.4.0-next.1602221421021":"2020-10-09T05:30:34.675Z","1.4.0-next.1602261306397":"2020-10-09T16:35:21.350Z","1.4.0-next.1602267320780":"2020-10-09T18:15:33.056Z","1.4.0-next.1602268229295":"2020-10-09T18:30:44.520Z","1.4.0-next.1602269246657":"2020-10-09T18:47:38.146Z","1.4.0-next.1602274092905":"2020-10-09T20:08:28.178Z","1.4.0-next.1602284292050":"2020-10-09T22:58:27.132Z","1.4.0-next.1602285232813":"2020-10-09T23:14:06.888Z","1.4.0-next.1602392011053":"2020-10-11T04:53:45.011Z","1.4.0-next.1602519496667":"2020-10-12T16:18:31.387Z","1.4.0-next.1602535879673":"2020-10-12T20:51:35.276Z","1.4.0-next.1602538162833":"2020-10-12T21:29:37.803Z","1.4.0-next.1602542830200":"2020-10-12T22:47:22.619Z","1.5.0-next.1602552164093":"2020-10-13T01:22:57.798Z","1.5.0-next.1602552387242":"2020-10-13T01:26:40.993Z","1.5.0-next.1602564829195":"2020-10-13T04:54:04.135Z","1.5.0-next.1602567394434":"2020-10-13T05:36:48.002Z","1.5.0-next.1602604894123":"2020-10-13T16:01:48.369Z","1.5.0-next.1602606939387":"2020-10-13T16:35:55.450Z","1.5.0-next.1602614121721":"2020-10-13T18:35:36.465Z","1.5.0-next.1602614758875":"2020-10-13T18:46:14.575Z","1.5.0-next.1602616819317":"2020-10-13T19:20:36.180Z","1.5.0-next.1602617198311":"2020-10-13T19:26:53.262Z","1.5.0":"2020-10-13T19:56:15.069Z","1.5.0-next.1602620459835":"2020-10-13T20:21:14.981Z","1.5.0-next.1602652687944":"2020-10-14T05:18:21.860Z","1.5.0-next.1602654218274":"2020-10-14T05:43:54.132Z","1.5.0-next.1602680104325":"2020-10-14T12:55:18.238Z","1.5.0-next.1602693509937":"2020-10-14T16:38:44.362Z","1.5.0-next.1602697077618":"2020-10-14T17:38:14.166Z","1.5.0-next.1602697602857":"2020-10-14T17:46:57.084Z","1.5.1-next.1602697676140":"2020-10-14T17:48:10.177Z","1.5.0-next.1602709974612":"2020-10-14T21:13:08.941Z","1.5.0-next.1602713090854":"2020-10-14T22:05:06.471Z","1.5.0-next.1602713485778":"2020-10-14T22:11:39.501Z","1.5.1-next.1602714870734":"2020-10-14T22:34:45.711Z","1.5.0-next.1602717398967":"2020-10-14T23:16:52.812Z","1.5.1":"2020-10-14T23:32:18.510Z","1.5.0-next.1602739732047":"2020-10-15T05:29:05.969Z","1.5.0-next.1602757854270":"2020-10-15T10:31:08.955Z","1.5.0-next.1602777285416":"2020-10-15T15:55:00.897Z","1.5.0-next.1602780837095":"2020-10-15T16:54:11.203Z","1.5.0-next.1602783231957":"2020-10-15T17:34:06.298Z","1.5.0-next.1602795082205":"2020-10-15T20:51:36.556Z","1.5.0-next.1602797475811":"2020-10-15T21:31:31.793Z","1.5.0-next.1602837014187":"2020-10-16T08:30:29.338Z","1.5.0-next.1602861464393":"2020-10-16T15:17:58.500Z","1.5.0-next.1602867974353":"2020-10-16T17:06:27.432Z","1.5.0-next.1603087355662":"2020-10-19T06:02:50.287Z","1.5.0-next.1603087547110":"2020-10-19T06:06:02.001Z","1.5.0-next.1603099576798":"2020-10-19T09:26:30.923Z","1.5.0-next.1603100221271":"2020-10-19T09:37:18.716Z","1.5.0-next.1603101947028":"2020-10-19T10:06:00.914Z","1.5.0-next.1603124368906":"2020-10-19T16:19:42.790Z","1.5.0-next.1603127076088":"2020-10-19T17:04:50.377Z","1.5.0-next.1603127413838":"2020-10-19T17:10:27.258Z","1.5.0-next.1603143443866":"2020-10-19T21:37:39.657Z","1.5.0-next.1603154545705":"2020-10-20T00:42:40.037Z","1.5.0-next.1603157853122":"2020-10-20T01:37:47.398Z","1.5.0-next.1603165335028":"2020-10-20T03:42:30.182Z","1.5.0-next.1603166879458":"2020-10-20T04:08:13.231Z","1.5.0-next.1603208947551":"2020-10-20T15:49:22.431Z","1.5.0-next.1603209439598":"2020-10-20T15:57:37.555Z","1.5.0-next.1603224760452":"2020-10-20T20:12:54.633Z","1.5.0-next.1603226545717":"2020-10-20T20:42:39.142Z","1.5.0-next.1603227740465":"2020-10-20T21:02:34.303Z","1.5.0-next.1603237857495":"2020-10-20T23:51:11.127Z","1.5.0-next.1603237992817":"2020-10-20T23:53:27.101Z","1.5.0-next.1603313846795":"2020-10-21T20:57:40.959Z","1.5.0-next.1603325657660":"2020-10-22T00:14:32.499Z","1.5.0-next.1603348082627":"2020-10-22T06:28:16.545Z","1.5.0-next.1603381870345":"2020-10-22T15:51:24.784Z","1.5.0-next.1603466248928":"2020-10-23T15:17:45.910Z","1.5.0-next.1603472813146":"2020-10-23T17:07:07.874Z","1.5.0-next.1603474558538":"2020-10-23T17:36:12.515Z","1.5.0-next.1603474851053":"2020-10-23T17:41:06.072Z","1.5.1-next.1603475519841":"2020-10-23T17:52:13.731Z","1.5.0-next.1603479265915":"2020-10-23T18:54:40.310Z","1.5.0-next.1603482118136":"2020-10-23T19:42:13.140Z","1.5.0-next.1603482373121":"2020-10-23T19:46:27.411Z","1.5.0-next.1603494535996":"2020-10-23T23:09:12.872Z","1.5.0-next.1603737616646":"2020-10-26T18:40:32.175Z","1.5.0-next.1603742560901":"2020-10-26T20:02:53.491Z","1.5.0-next.1603746452058":"2020-10-26T21:07:45.914Z","1.5.0-next.1603748047624":"2020-10-26T21:34:21.799Z","1.5.0-next.1603755982970":"2020-10-26T23:46:37.094Z","1.5.0-next.1603756835277":"2020-10-27T00:00:49.104Z","1.5.0-next.1603759343720":"2020-10-27T00:42:38.741Z","1.5.0-next.1603759738351":"2020-10-27T00:49:12.350Z","1.5.0-next.1603763663850":"2020-10-27T01:54:37.513Z","1.5.1-next.1603774056456":"2020-10-27T04:47:49.839Z","1.5.0-next.1603774548681":"2020-10-27T04:56:01.675Z","1.5.0-next.1603775254750":"2020-10-27T05:07:49.099Z","1.5.0-next.1603776153245":"2020-10-27T05:22:46.727Z","1.5.0-next.1603779020552":"2020-10-27T06:10:34.169Z","1.5.0-next.1603782149454":"2020-10-27T07:02:43.497Z","1.5.0-next.1603782271135":"2020-10-27T07:04:44.949Z","1.5.0-next.1603782403681":"2020-10-27T07:06:57.649Z","1.5.0-next.1603822295710":"2020-10-27T18:11:50.640Z","1.5.0-next.1603823053331":"2020-10-27T18:24:28.975Z","1.5.0-next.1603829806145":"2020-10-27T20:17:02.152Z","1.5.1-next.1603830636096":"2020-10-27T20:30:51.315Z","1.5.2-next.1603833673751":"2020-10-27T21:21:28.141Z","1.5.2":"2020-10-27T22:29:14.689Z","1.5.0-next.1603842319218":"2020-10-27T23:45:33.395Z","1.5.0-next.1603907834797":"2020-10-28T17:57:30.258Z","1.5.0-next.1603918082127":"2020-10-28T20:48:16.478Z","1.5.0-next.1603921760661":"2020-10-28T21:49:36.488Z","1.5.0-next.1603925710895":"2020-10-28T22:55:24.692Z","1.5.0-next.1603926030124":"2020-10-28T23:00:43.983Z","1.5.0-next.1603926163258":"2020-10-28T23:02:57.381Z","1.5.0-next.1603998405942":"2020-10-29T19:07:01.625Z","1.5.0-next.1604013309987":"2020-10-29T23:15:24.791Z","1.5.0-next.1604014572633":"2020-10-29T23:36:28.261Z","1.6.0-next.1604018890865":"2020-10-30T00:48:25.650Z","1.6.0-next.1604079389424":"2020-10-30T17:36:45.721Z","1.6.0-next.1604087072812":"2020-10-30T19:44:47.061Z","1.6.0-next.1604087279768":"2020-10-30T19:48:13.522Z","1.6.0-next.1604090471094":"2020-10-30T20:41:25.783Z","1.6.0-next.1604094577517":"2020-10-30T21:49:56.809Z","1.6.0-next.1604099897983":"2020-10-30T23:18:34.325Z","1.6.0-next.1604345898278":"2020-11-02T19:38:32.254Z","1.6.0-next.1604350213419":"2020-11-02T20:50:28.771Z","1.6.0-next.1604350952367":"2020-11-02T21:02:47.032Z","1.6.0-next.1604351328220":"2020-11-02T21:09:01.741Z","1.6.0-next.1604353250286":"2020-11-02T21:41:05.868Z","1.6.0-next.1604355180033":"2020-11-02T22:13:15.397Z","1.6.0-next.1604356576502":"2020-11-02T22:36:30.017Z","1.6.0-next.1604363004235":"2020-11-03T00:23:36.812Z","1.6.0-next.1604367121136":"2020-11-03T01:32:16.024Z","1.6.0-next.1604370589377":"2020-11-03T02:30:03.031Z","1.6.0-next.1604370816246":"2020-11-03T02:33:52.658Z","1.6.0-next.1604375030788":"2020-11-03T03:44:03.482Z","1.6.0-next.1604379778790":"2020-11-03T05:03:12.833Z","1.6.0-next.1604407132436":"2020-11-03T12:39:05.374Z","1.6.0-next.1604431974611":"2020-11-03T19:33:08.957Z","1.6.0-next.1604438335710":"2020-11-03T21:19:09.888Z","1.6.0-next.1604442905543":"2020-11-03T22:35:20.134Z","1.6.0-next.1604444008055":"2020-11-03T22:53:41.822Z","1.6.0-next.1604444190264":"2020-11-03T22:56:43.343Z","1.6.0-next.1604449454516":"2020-11-04T00:24:29.661Z","1.6.0-next.1604458657431":"2020-11-04T02:57:49.854Z","1.6.0-next.1604458863005":"2020-11-04T03:01:17.651Z","1.6.0-next.1604504226151":"2020-11-04T15:37:21.671Z","1.6.0-next.1604504458977":"2020-11-04T15:41:13.614Z","1.6.0-next.1604511976624":"2020-11-04T17:46:32.015Z","1.6.0-next.1604514370393":"2020-11-04T18:26:24.986Z","1.6.0-next.1604516539153":"2020-11-04T19:02:33.712Z","1.6.0-next.1604517936339":"2020-11-04T19:25:51.208Z","1.6.0-next.1604525207093":"2020-11-04T21:27:00.702Z","1.6.0-next.1604558680157":"2020-11-05T06:44:53.419Z","1.6.0-next.1604566252790":"2020-11-05T08:51:07.301Z","1.6.0-next.1604567020618":"2020-11-05T09:04:00.171Z","1.6.0-next.1604570753207":"2020-11-05T10:06:08.093Z","1.6.0-next.1604573461636":"2020-11-05T10:51:16.569Z","1.6.0-next.1604574942387":"2020-11-05T11:15:57.228Z","1.6.0-next.1604582698696":"2020-11-05T13:25:14.220Z","1.6.0-next.1604597249602":"2020-11-05T17:27:42.967Z","1.6.0-next.1604613519926":"2020-11-05T21:58:54.994Z","1.6.0-next.1604614707459":"2020-11-05T22:18:42.351Z","1.6.0-next.1604624014221":"2020-11-06T00:53:49.199Z","1.6.0-next.1604627072033":"2020-11-06T01:44:44.765Z","1.6.0-next.1604627875630":"2020-11-06T01:58:08.987Z","1.6.0-next.1604647172433":"2020-11-06T07:19:48.570Z","1.6.0-next.1604690007234":"2020-11-06T19:13:43.014Z","1.6.0-next.1604691766673":"2020-11-06T19:43:00.721Z","1.6.0-next.1604694738089":"2020-11-06T20:32:33.341Z","1.6.0-next.1604698752941":"2020-11-06T21:39:27.037Z","1.6.0-next.1604704189053":"2020-11-06T23:10:00.963Z","1.6.0-next.1604709207505":"2020-11-07T00:33:41.554Z","1.6.0-next.1604802196731":"2020-11-08T02:23:30.180Z","1.6.0-next.1604943090584":"2020-11-09T17:31:44.818Z","1.6.0-next.1604950360086":"2020-11-09T19:32:55.157Z","1.6.0-next.1604967485608":"2020-11-10T00:18:19.222Z","1.6.0-next.1604969360811":"2020-11-10T00:49:38.548Z","1.6.0-next.1604982598660":"2020-11-10T04:30:13.052Z","1.6.0-next.1604989930114":"2020-11-10T06:32:23.940Z","1.6.0-next.1605029612275":"2020-11-10T17:33:50.101Z","1.6.0-next.1605048563081":"2020-11-10T22:49:37.389Z","1.6.0-next.1605123661119":"2020-11-11T19:41:16.163Z","1.6.0-next.1605127617349":"2020-11-11T20:47:12.072Z","1.7.0-next.1605134378929":"2020-11-11T22:39:52.007Z","1.7.0-next.1605136447807":"2020-11-11T23:14:21.386Z","1.7.0-next.1605137718393":"2020-11-11T23:35:33.892Z","1.7.0-next.1605177306727":"2020-11-12T10:35:20.999Z","1.7.0-next.1605202549103":"2020-11-12T17:36:02.916Z","1.7.0-next.1605203593743":"2020-11-12T17:53:29.630Z","1.7.0-next.1605206628995":"2020-11-12T18:44:03.754Z","1.7.0-next.1605208353387":"2020-11-12T19:12:49.096Z","1.7.0-next.1605212413854":"2020-11-12T20:20:29.646Z","1.7.0-next.1605213795196":"2020-11-12T20:43:29.859Z","1.6.0-next.1605215489244":"2020-11-12T21:11:44.508Z","1.7.0-next.1605217583334":"2020-11-12T21:46:36.810Z","1.6.0":"2020-11-12T22:56:42.463Z","1.7.0-next.1605226555954":"2020-11-13T00:16:29.639Z","1.6.0-next.1605227311592":"2020-11-13T00:28:48.190Z","1.6.1-next.1605234638027":"2020-11-13T02:30:54.180Z","1.6.1":"2020-11-13T02:55:16.443Z","1.7.0-next.1605290682762":"2020-11-13T18:04:56.942Z","1.7.0-next.1605296981516":"2020-11-13T19:49:54.902Z","1.7.0-next.1605305111464":"2020-11-13T22:05:26.572Z","1.7.0-next.1605305543987":"2020-11-13T22:12:37.563Z","1.7.0-next.1605306417215":"2020-11-13T22:27:12.089Z","1.7.0-next.1605307823154":"2020-11-13T22:50:37.339Z","1.7.0-next.1605307997928":"2020-11-13T22:53:29.751Z","1.7.0-next.1605308289770":"2020-11-13T22:58:31.525Z","1.7.0-next.1605309807310":"2020-11-13T23:23:42.500Z","1.6.2-next.1605310155974":"2020-11-13T23:29:31.572Z","1.7.0-next.1605313873086":"2020-11-14T00:31:28.992Z","1.6.2-next.1605317768784":"2020-11-14T01:36:22.462Z","1.7.0-next.1605537457775":"2020-11-16T14:37:53.415Z","1.7.0-next.1605549666732":"2020-11-16T18:01:21.838Z","1.7.0-next.1605550680087":"2020-11-16T18:18:14.131Z","1.7.0-next.1605551352624":"2020-11-16T18:29:27.632Z","1.7.0-next.1605553750231":"2020-11-16T19:09:25.075Z","1.7.0-next.1605559582349":"2020-11-16T20:46:36.875Z","1.7.0-next.1605560696101":"2020-11-16T21:05:10.036Z","1.7.0-next.1605561513300":"2020-11-16T21:18:49.854Z","1.7.0-next.1605564839236":"2020-11-16T22:14:14.091Z","1.7.0-next.1605565691858":"2020-11-16T22:28:26.927Z","1.7.0-next.1605566029936":"2020-11-16T22:34:05.249Z","1.7.0-next.1605572442758":"2020-11-17T00:20:56.976Z","1.7.0-next.1605573954344":"2020-11-17T00:46:07.639Z","1.6.2-next.1605574338111":"2020-11-17T00:52:32.513Z","1.7.0-next.1605578746309":"2020-11-17T02:06:01.976Z","1.7.0-next.1605581873574":"2020-11-17T02:58:07.773Z","1.6.2-next.1605581963923":"2020-11-17T02:59:38.979Z","1.7.0-next.1605629483910":"2020-11-17T16:11:38.087Z","1.7.0-next.1605636075056":"2020-11-17T18:01:27.614Z","1.7.0-next.1605637580878":"2020-11-17T18:26:36.896Z","1.6.2":"2020-11-17T21:04:29.220Z","1.7.0-next.1605658305138":"2020-11-18T00:11:58.919Z","1.7.0-next.1605661079361":"2020-11-18T00:58:13.716Z","1.7.0-next.1605670954215":"2020-11-18T03:42:47.426Z","1.7.0-next.1605672207334":"2020-11-18T04:03:41.152Z","1.7.0-next.1605674895141":"2020-11-18T04:48:30.897Z","1.7.0-next.1605675968379":"2020-11-18T05:06:23.235Z","1.7.0-next.1605716504082":"2020-11-18T16:21:59.451Z","1.7.0-next.1605717385119":"2020-11-18T16:36:39.578Z","1.7.0-next.1605726276901":"2020-11-18T19:04:50.307Z","1.7.0-next.1605733552772":"2020-11-18T21:06:08.380Z","1.7.0-next.1605755493362":"2020-11-19T03:11:48.276Z","1.7.0-next.1605756970645":"2020-11-19T03:36:22.692Z","1.7.0-next.1605803181890":"2020-11-19T16:26:36.871Z","1.7.0-next.1605815953912":"2020-11-19T19:59:26.903Z","1.7.0-next.1605816755076":"2020-11-19T20:12:48.669Z","1.7.0-next.1605818753333":"2020-11-19T20:46:06.591Z","1.7.0-next.1605822364912":"2020-11-19T21:46:18.997Z","1.7.0-next.1605823051704":"2020-11-19T21:57:45.641Z","1.7.0-next.1605842578394":"2020-11-20T03:23:13.525Z","1.7.0-next.1605842915901":"2020-11-20T03:28:48.612Z","1.7.0-next.1605888741738":"2020-11-20T16:12:35.723Z","1.7.0-next.1605898192832":"2020-11-20T18:50:09.076Z","1.7.0-next.1605914491942":"2020-11-20T23:21:46.537Z","1.6.2-next.1606021590899":"2020-11-22T05:06:43.609Z","1.7.0-next.1606172731960":"2020-11-23T23:05:48.154Z","1.6.3-next.1606173146445":"2020-11-23T23:12:40.675Z","1.7.0-next.1606173927761":"2020-11-23T23:25:41.890Z","1.7.0-next.1606177840091":"2020-11-24T00:30:54.407Z","1.7.0-next.1606229563961":"2020-11-24T14:52:58.821Z","1.7.0-next.1606240470911":"2020-11-24T17:54:46.387Z","1.7.0-next.1606244758747":"2020-11-24T19:06:15.279Z","1.7.0-next.1606270612048":"2020-11-25T02:17:06.798Z","1.7.0-next.1606303868493":"2020-11-25T11:31:22.445Z","1.7.0-next.1606304976258":"2020-11-25T11:49:50.998Z","1.7.0-next.1606321631660":"2020-11-25T16:27:25.346Z","1.7.0-next.1606322433383":"2020-11-25T16:40:48.926Z","1.7.0-next.1606332867472":"2020-11-25T19:34:40.987Z","1.7.0-next.1606345016646":"2020-11-25T22:57:10.996Z","1.7.0-next.1606404906853":"2020-11-26T15:35:20.611Z","1.7.0-next.1606759582405":"2020-11-30T18:06:36.803Z","1.7.0-next.1606761431827":"2020-11-30T18:37:27.803Z","1.7.0-next.1606762418912":"2020-11-30T18:53:52.874Z","1.7.0-next.1606777154994":"2020-11-30T22:59:28.217Z","1.7.0-next.1606778815179":"2020-11-30T23:27:09.454Z","1.7.0-next.1606782855121":"2020-12-01T00:34:30.187Z","1.7.0-next.1606795798646":"2020-12-01T04:10:12.506Z","1.7.0-next.1606829330233":"2020-12-01T13:29:03.056Z","1.7.0-next.1606862542748":"2020-12-01T22:42:37.877Z","1.7.0-next.1606925905854":"2020-12-02T16:18:41.450Z","1.7.0-next.1606936522560":"2020-12-02T19:15:39.159Z","1.7.0-next.1606945565891":"2020-12-02T21:46:20.598Z","1.7.0-next.1606945973781":"2020-12-02T21:53:05.936Z","1.7.0-next.1606949135693":"2020-12-02T22:45:48.951Z","1.7.0-next.1606949298827":"2020-12-02T22:48:32.274Z","1.7.0-next.1607011851659":"2020-12-03T16:11:07.125Z","1.7.0-next.1607015662972":"2020-12-03T17:14:39.151Z","1.7.0-next.1607016226459":"2020-12-03T17:24:00.820Z","1.7.0-next.1607021138716":"2020-12-03T18:45:52.597Z","1.7.0-next.1607022026758":"2020-12-03T19:00:42.822Z","1.7.0-next.1607033561101":"2020-12-03T22:12:56.202Z","1.7.0-next.1607040272341":"2020-12-04T00:04:47.603Z","1.7.0-next.1607047655367":"2020-12-04T02:07:50.383Z","1.7.0-next.1607063453599":"2020-12-04T06:31:09.140Z","1.7.0-next.1607093595283":"2020-12-04T14:53:30.502Z","1.7.0-next.1607102024120":"2020-12-04T17:13:58.497Z","1.7.0-next.1607105766956":"2020-12-04T18:16:24.237Z","1.7.0-next.1607109079067":"2020-12-04T19:11:33.207Z","1.7.0-next.1607111460129":"2020-12-04T19:51:15.546Z","1.7.0-next.1607113069133":"2020-12-04T20:18:04.418Z","1.7.0-next.1607113552431":"2020-12-04T20:26:06.883Z","1.7.0-next.1607122229430":"2020-12-04T22:50:45.857Z","1.7.0-next.1607127296447":"2020-12-05T00:15:42.843Z","1.7.0-next.1607132845577":"2020-12-05T01:47:40.494Z","1.7.0-next.1607134074367":"2020-12-05T02:08:10.321Z","1.7.0-next.1607136556254":"2020-12-05T02:49:31.046Z","1.7.0-next.1607144192248":"2020-12-05T04:56:47.710Z","1.7.0-next.1607211100261":"2020-12-05T23:31:54.303Z","1.7.0-next.1607232089155":"2020-12-06T05:21:42.819Z","1.7.0-next.1607295981958":"2020-12-06T23:06:37.918Z","1.7.0-next.1607307985581":"2020-12-07T02:26:39.371Z","1.7.0-next.1607359464524":"2020-12-07T16:44:48.744Z","1.7.0-next.1607361837668":"2020-12-07T17:24:12.121Z","1.7.0-next.1607364764450":"2020-12-07T18:12:57.887Z","1.7.0-next.1607365809266":"2020-12-07T18:30:25.384Z","1.7.0-next.1607367613009":"2020-12-07T19:00:29.356Z","1.7.0-next.1607370264409":"2020-12-07T19:44:40.153Z","1.7.0-next.1607380339854":"2020-12-07T22:32:36.249Z","1.7.0-next.1607385217481":"2020-12-07T23:53:50.203Z","1.7.0-next.1607385441915":"2020-12-07T23:57:35.049Z","1.7.0-next.1607386176842":"2020-12-08T00:09:50.466Z","1.7.0-next.1607445658705":"2020-12-08T16:41:13.332Z","1.7.0-next.1607448795868":"2020-12-08T17:33:33.008Z","1.7.0-next.1607449048582":"2020-12-08T17:37:44.554Z","1.7.0-next.1607449257128":"2020-12-08T17:41:12.032Z","1.7.0-next.1607450524882":"2020-12-08T18:02:18.951Z","1.7.0-next.1607452139371":"2020-12-08T18:29:13.225Z","1.7.0-next.1607452899273":"2020-12-08T18:41:54.363Z","1.7.0-next.1607454334180":"2020-12-08T19:05:50.592Z","1.7.0-next.1607474103140":"2020-12-09T00:35:17.128Z","1.7.0-next.1607476687683":"2020-12-09T01:18:24.330Z","1.7.0-next.1607481242744":"2020-12-09T02:34:17.509Z","1.7.0-next.1607482080186":"2020-12-09T02:48:15.690Z","1.7.0-next.1607487467282":"2020-12-09T04:18:02.845Z","1.7.0-next.1607493211324":"2020-12-09T05:53:46.082Z","1.7.0-next.1607533624800":"2020-12-09T17:07:20.823Z","1.7.0-next.1607536287465":"2020-12-09T17:51:40.458Z","1.7.0-next.1607536603703":"2020-12-09T17:56:59.166Z","1.7.0-next.1607548223939":"2020-12-09T21:10:37.041Z","1.7.0-next.1607555323249":"2020-12-09T23:08:57.611Z","1.7.0-next.1607559064024":"2020-12-10T00:11:22.221Z","1.7.0-next.1607563051542":"2020-12-10T01:17:47.806Z","1.7.0-next.1607611049855":"2020-12-10T14:37:44.944Z","1.7.0-next.1607618764856":"2020-12-10T16:46:18.815Z","1.7.0-next.1607622568996":"2020-12-10T17:49:44.362Z","1.7.0-next.1607623793189":"2020-12-10T18:10:08.595Z","1.7.0-next.1607637332000":"2020-12-10T21:55:49.097Z","1.7.0-next.1607641487085":"2020-12-10T23:05:00.037Z","1.7.0-next.1607641636196":"2020-12-10T23:07:29.230Z","1.7.0-next.1607647153752":"2020-12-11T00:39:27.937Z","1.7.0-next.1607663475518":"2020-12-11T05:11:32.023Z","1.7.0-next.1607757477917":"2020-12-12T07:18:13.993Z","1.7.0-next.1607758693964":"2020-12-12T07:38:32.358Z","1.7.0-next.1607764823024":"2020-12-12T09:20:34.994Z","1.7.0-next.1607794710811":"2020-12-12T17:38:43.915Z","1.7.0-next.1607876180561":"2020-12-13T16:16:33.490Z","1.7.0-next.1607877346171":"2020-12-13T16:36:03.616Z","1.7.0-next.1607881089551":"2020-12-13T17:38:23.310Z","1.7.0-next.1607897766438":"2020-12-13T22:16:21.726Z","1.7.0-next.1607899248988":"2020-12-13T22:41:01.913Z","1.7.0-next.1607925771638":"2020-12-14T06:03:07.953Z","1.7.0-next.1607927691625":"2020-12-14T06:35:05.831Z","1.7.0-next.1607930553532":"2020-12-14T07:22:48.900Z","1.7.0-next.1607962374360":"2020-12-14T16:13:07.518Z","1.7.0-next.1607962731553":"2020-12-14T16:19:07.771Z","1.7.0-next.1607967103675":"2020-12-14T17:31:58.288Z","1.8.0-next.1607970656898":"2020-12-14T18:31:13.360Z","1.8.0-next.1607970762273":"2020-12-14T18:32:55.383Z","1.8.0-next.1607981803965":"2020-12-14T21:36:57.891Z","1.8.0-next.1607988827826":"2020-12-14T23:34:03.392Z","1.8.0-next.1607990741526":"2020-12-15T00:05:54.962Z","1.7.0-next.1607992610201":"2020-12-15T00:37:03.134Z","1.8.0-next.1607992962397":"2020-12-15T00:42:54.618Z","1.7.0-next.1607993309811":"2020-12-15T00:48:44.266Z","1.7.0-next.1607994464309":"2020-12-15T01:07:57.206Z","1.8.0-next.1608000060809":"2020-12-15T02:41:13.523Z","1.8.0-next.1608058261773":"2020-12-15T18:51:14.774Z","1.7.0-next.1608058598043":"2020-12-15T18:56:52.698Z","1.8.0-next.1608066170624":"2020-12-15T21:03:06.640Z","1.7.0":"2020-12-15T23:09:47.825Z","1.8.0-next.1608074162414":"2020-12-15T23:16:18.498Z","1.8.0-next.1608078590761":"2020-12-16T00:30:08.415Z","1.8.0-next.1608092230541":"2020-12-16T04:17:25.929Z","1.8.0-next.1608102583276":"2020-12-16T07:09:58.654Z","1.8.0-next.1608132638894":"2020-12-16T15:30:53.469Z","1.8.0-next.1608139364081":"2020-12-16T17:22:58.554Z","1.8.0-next.1608152128607":"2020-12-16T20:55:43.400Z","1.8.0-next.1608157445015":"2020-12-16T22:24:19.572Z","1.8.0-next.1608158219690":"2020-12-16T22:37:15.609Z","1.8.0-next.1608161486387":"2020-12-16T23:31:38.996Z","1.8.0-next.1608214898071":"2020-12-17T14:21:52.761Z","1.8.0-next.1608253427383":"2020-12-18T01:04:04.636Z","1.8.0-next.1608257447936":"2020-12-18T02:11:02.867Z","1.8.0-next.1608257610928":"2020-12-18T02:13:46.017Z","1.8.0-next.1608258717962":"2020-12-18T02:32:14.750Z","1.8.0-next.1608267826725":"2020-12-18T05:04:00.061Z","1.8.0-next.1608323403293":"2020-12-18T20:30:16.983Z","1.8.0-next.1608331692456":"2020-12-18T22:48:28.608Z","1.8.0-next.1608334408046":"2020-12-18T23:33:40.086Z","1.8.0-next.1608409424791":"2020-12-19T20:23:59.426Z","1.8.0-next.1608573651594":"2020-12-21T18:01:08.116Z","1.8.0-next.1608580147695":"2020-12-21T19:49:24.229Z","1.8.0-next.1608582809707":"2020-12-21T20:33:44.486Z","1.7.0-next.1608588608521":"2020-12-21T22:10:22.786Z","1.8.0-next.1608590463551":"2020-12-21T22:41:17.541Z","1.7.0-next.1608590916323":"2020-12-21T22:48:49.250Z","1.8.0-next.1608594972517":"2020-12-21T23:56:28.237Z","1.7.1-next.1608595600968":"2020-12-22T00:06:56.574Z","1.8.0-next.1608596314330":"2020-12-22T00:18:46.718Z","1.8.0-next.1608597588593":"2020-12-22T00:40:01.098Z","1.7.1-next.1608602762905":"2020-12-22T02:06:17.458Z","1.8.0-next.1608603118992":"2020-12-22T02:12:13.449Z","1.7.1":"2020-12-22T18:41:20.654Z","1.8.0-next.1608663788448":"2020-12-22T19:03:20.918Z","1.8.0-next.1608677772089":"2020-12-22T22:56:26.604Z","1.8.0-next.1608688515907":"2020-12-23T01:55:29.768Z","1.8.0-next.1608739639762":"2020-12-23T16:07:34.358Z","1.8.0-next.1608746109749":"2020-12-23T17:55:22.218Z","1.8.0-next.1608756387315":"2020-12-23T20:46:39.983Z","1.8.0-next.1608761843589":"2020-12-23T22:17:39.879Z","1.8.0-next.1608781065195":"2020-12-24T03:38:01.466Z","1.8.0-next.1609019614138":"2020-12-26T21:53:46.470Z","1.8.0-next.1609022054118":"2020-12-26T22:34:30.274Z","1.8.0-next.1609025707958":"2020-12-26T23:35:20.552Z","1.8.0-next.1609031286354":"2020-12-27T01:08:22.865Z","1.8.0-next.1609043265083":"2020-12-27T04:28:00.881Z","1.8.0-next.1609087451261":"2020-12-27T16:44:26.646Z","1.8.0-next.1609167924364":"2020-12-28T15:05:38.714Z","1.8.0-next.1609181801072":"2020-12-28T18:56:53.965Z","1.8.0-next.1609183020182":"2020-12-28T19:17:15.000Z","1.8.0-next.1609195932746":"2020-12-28T22:52:28.309Z","1.8.0-next.1609199174887":"2020-12-28T23:46:29.217Z","1.8.0-next.1609201266539":"2020-12-29T00:21:21.758Z","1.8.0-next.1609206070220":"2020-12-29T01:41:25.477Z","1.8.0-next.1609227871098":"2020-12-29T07:44:50.231Z","1.8.0-next.1609261191458":"2020-12-29T17:00:10.810Z","1.8.0-next.1609264893753":"2020-12-29T18:01:56.085Z","1.8.0-next.1609272885864":"2020-12-29T20:15:00.493Z","1.8.0-next.1609278700638":"2020-12-29T21:51:55.706Z","1.8.0-next.1609292210255":"2020-12-30T01:37:04.545Z","1.8.0-next.1609349889666":"2020-12-30T17:38:24.591Z","1.8.0-next.1609380399073":"2020-12-31T02:06:53.102Z","1.8.0-next.1609543169656":"2021-01-01T23:19:44.820Z","1.8.0-next.1609692561730":"2021-01-03T16:49:36.227Z","1.8.0-next.1609786292297":"2021-01-04T18:51:45.026Z","1.8.0-next.1609787026234":"2021-01-04T19:03:58.994Z","1.8.0-next.1609787562000":"2021-01-04T19:15:11.303Z","1.8.0-next.1609797295000":"2021-01-04T21:57:09.533Z","1.8.0-next.1609803151000":"2021-01-04T23:34:52.592Z","1.8.0-next.1609811963000":"2021-01-05T02:01:50.701Z","1.8.0-next.1609857758000":"2021-01-05T14:45:05.361Z","1.8.0-next.1609866793000":"2021-01-05T17:15:30.381Z","1.8.0-next.1609868569000":"2021-01-05T17:45:21.564Z","1.8.0-next.1609872770000":"2021-01-05T18:55:05.535Z","1.8.0-next.1609872962000":"2021-01-05T18:58:25.823Z","1.8.0-next.1609880932000":"2021-01-05T21:10:47.734Z","1.8.0-next.1609881862000":"2021-01-05T21:26:17.247Z","1.8.0-next.1609882842000":"2021-01-05T21:42:53.067Z","1.8.0-next-1609884287000":"2021-01-05T22:07:24.887Z","1.8.0-next-1609889125000":"2021-01-05T23:27:38.378Z","1.8.0-next-1609890568000":"2021-01-05T23:52:06.869Z","1.8.0-next-1609891521000":"2021-01-06T00:07:15.131Z","1.8.0-next-1609895143000":"2021-01-06T01:07:48.857Z","1.8.0-next-1609907510000":"2021-01-06T04:33:48.374Z","1.8.0-next-1609931581000":"2021-01-06T11:15:17.522Z","1.8.0-next-1609954302000":"2021-01-06T17:34:08.240Z","1.8.0-next-1609955195000":"2021-01-06T17:48:52.960Z","1.8.0-next-1609963169000":"2021-01-06T20:02:11.015Z","1.8.0-next-1609965677000":"2021-01-06T20:43:49.737Z","1.8.0-next-1609969454000":"2021-01-06T21:46:48.399Z","1.8.0-next-1609974508000":"2021-01-06T23:10:27.040Z","1.8.0-next-1609992171000":"2021-01-07T04:05:00.369Z","1.8.0-next-1610046700000":"2021-01-07T19:13:55.036Z","1.8.0-next-1610048765000":"2021-01-07T19:48:20.986Z","1.8.0-next-1610054794000":"2021-01-07T21:28:31.287Z","1.8.0-next-1610057579000":"2021-01-07T22:15:20.339Z","1.8.0-next-1610060049000":"2021-01-07T22:56:31.434Z","1.8.0-next-1610060404000":"2021-01-07T23:18:00.438Z","1.8.0-next-1610064745000":"2021-01-08T00:14:12.757Z","1.8.0-next-1610064934000":"2021-01-08T00:19:19.851Z","1.8.0-next-1610091473000":"2021-01-08T07:40:40.909Z","1.8.0-next-1610114679000":"2021-01-08T14:06:56.439Z","1.8.0-next-1610123973000":"2021-01-08T16:41:55.531Z","1.8.0-next-1610125974000":"2021-01-08T17:15:34.958Z","1.8.0-next-1610132364000":"2021-01-08T19:02:15.746Z","1.8.0-next-1610137450000":"2021-01-08T20:27:00.173Z","1.8.0-next-1610137674000":"2021-01-08T20:31:00.298Z","1.8.0-next-1610146303000":"2021-01-08T22:54:23.012Z","1.8.0-next-1610146814000":"2021-01-08T23:05:36.853Z","1.8.0-next-1610149328000":"2021-01-08T23:44:25.571Z","1.8.0-next-1610151305000":"2021-01-09T00:17:19.223Z","1.8.0-next-1610151474000":"2021-01-09T00:21:11.129Z","1.8.0-next-1610152612000":"2021-01-09T00:39:43.215Z","1.8.0-next-1610156177000":"2021-01-09T01:38:54.864Z","1.8.0-next-1610226238000":"2021-01-09T21:06:53.308Z","1.8.0-next-1610331515000":"2021-01-11T02:21:02.697Z","1.8.0-next-1610341252000":"2021-01-11T05:03:27.152Z","1.8.0-next-1610386489000":"2021-01-11T17:37:17.628Z","1.8.0-next-1610388225000":"2021-01-11T18:06:19.773Z","1.8.0-next-1610391607000":"2021-01-11T19:02:49.292Z","1.8.0-next-1610393454000":"2021-01-11T19:37:37.119Z","1.8.0-next-1610400995000":"2021-01-11T21:38:58.942Z","1.8.0-next-1610404206000":"2021-01-11T22:38:41.839Z","1.8.0-next-1610406089000":"2021-01-11T23:06:09.026Z","1.8.0-next-1610409021000":"2021-01-11T23:52:57.627Z","1.8.0-next-1610409225000":"2021-01-11T23:56:27.614Z","1.8.0-next-1610413079000":"2021-01-12T01:00:41.954Z","1.8.0-next-1610413464000":"2021-01-12T01:06:57.552Z","1.8.0-next-1610418341000":"2021-01-12T02:27:59.105Z","1.8.0-next-1610480237000":"2021-01-12T19:39:44.580Z","1.8.0-next-1610482467000":"2021-01-12T20:17:07.629Z","1.8.0-next-1610495789000":"2021-01-13T00:04:36.135Z","1.8.0-next-1610501508000":"2021-01-13T01:34:00.581Z","1.8.0-next-1610536538000":"2021-01-13T11:32:13.617Z","1.8.0-next-1610557017000":"2021-01-13T16:59:19.172Z","1.8.0-next-1610568494000":"2021-01-13T20:10:35.219Z","1.8.0-next-1610571123000":"2021-01-13T20:54:23.971Z","1.8.0-next-1610574969000":"2021-01-13T21:58:39.126Z","1.8.0-next-1610576742000":"2021-01-13T22:28:46.224Z","1.8.0-next-1610586173000":"2021-01-14T01:05:37.014Z","1.8.0-next-1610594490000":"2021-01-14T03:24:09.873Z","1.8.0-next-1610600615000":"2021-01-14T05:05:53.527Z","1.8.0-next-1610639336000":"2021-01-14T15:51:42.720Z","1.8.0-next-1610649822000":"2021-01-14T18:46:22.848Z","1.8.0-next-1610651384000":"2021-01-14T19:19:41.579Z","1.8.0-next-1610653509000":"2021-01-14T19:48:10.972Z","1.8.0-next-1610664019000":"2021-01-14T22:42:42.741Z","1.8.0-next-1610664917000":"2021-01-14T22:58:10.898Z","1.8.0-next-1610665299000":"2021-01-14T23:03:54.215Z","1.8.0-next-1610670074000":"2021-01-15T00:24:04.760Z","1.8.0-next-1610677142000":"2021-01-15T02:21:22.245Z","1.8.0-next-1610684162000":"2021-01-15T04:18:44.124Z","1.8.0-next-1610730767000":"2021-01-15T17:16:04.253Z","1.8.0-next-1610742610000":"2021-01-15T20:32:45.265Z","1.8.0-next-1610743985000":"2021-01-15T20:55:27.926Z","1.8.0-next-1610750628000":"2021-01-15T22:46:01.291Z","1.8.0-next-1610755301000":"2021-01-16T00:04:30.438Z","1.8.0-next-1610762359000":"2021-01-16T02:01:54.509Z","1.8.0-next-1610764255000":"2021-01-16T02:33:05.685Z","1.8.0-next-1610765784000":"2021-01-16T02:58:53.084Z","1.8.0-next-1610808160000":"2021-01-16T14:44:48.830Z","1.8.0-next-1610836633000":"2021-01-16T22:39:27.077Z","1.8.0-next-1610914160000":"2021-01-17T20:11:42.657Z","1.8.0-next-1610915139000":"2021-01-17T20:28:10.137Z","1.8.0-next-1610946580000":"2021-01-18T05:11:57.447Z","1.8.0-next-1611031213000":"2021-01-19T04:42:48.084Z","1.8.0-next-1611032356000":"2021-01-19T05:01:53.100Z","1.8.0-next-1611077434000":"2021-01-19T17:32:55.322Z","1.8.0-next-1611082098000":"2021-01-19T18:51:01.477Z","1.8.0-next-1611084425000":"2021-01-19T19:29:40.475Z","1.8.0-next-1611093761000":"2021-01-19T22:05:12.820Z","1.9.0-next-1611095396000":"2021-01-19T22:32:16.512Z","1.8.0-1611096027000":"2021-01-19T22:43:46.979Z","1.9.0-next-1611096326000":"2021-01-19T22:47:41.320Z","1.9.0-next-1611127085000":"2021-01-20T07:20:50.636Z","1.9.0-next-1611159159000":"2021-01-20T16:15:33.670Z","1.8.0-1611168053000":"2021-01-20T18:43:23.744Z","1.9.0-next-1611178683000":"2021-01-20T21:40:16.848Z","1.8.0-1611180882000":"2021-01-20T22:27:33.947Z","1.8.0":"2021-01-20T22:53:20.291Z","1.9.0-next-1611185742000":"2021-01-20T23:41:19.780Z","1.9.0-next-1611186200000":"2021-01-20T23:46:01.400Z","1.9.0-next-1611186359000":"2021-01-20T23:48:58.668Z","1.9.0-next-1611187586000":"2021-01-21T00:08:41.245Z","1.9.0-next-1611188341000":"2021-01-21T00:21:20.580Z","1.9.0-next-1611198983000":"2021-01-21T03:18:30.091Z","1.9.0-next-1611205589000":"2021-01-21T05:08:53.741Z","1.9.0-next-1611233697000":"2021-01-21T12:57:09.802Z","1.9.0-next-1611234741000":"2021-01-21T13:15:01.631Z","1.9.0-next-1611246541000":"2021-01-21T16:31:49.072Z","1.9.0-next-1611268520000":"2021-01-21T22:38:19.712Z","1.9.0-next-1611276102000":"2021-01-22T00:44:25.094Z","1.9.0-next-1611278599000":"2021-01-22T01:26:22.532Z","1.9.0-next-1611284432000":"2021-01-22T03:03:32.068Z","1.9.0-next-1611304060000":"2021-01-22T08:30:00.542Z","1.9.0-next-1611304286000":"2021-01-22T08:35:57.831Z","1.9.0-next-1611306392000":"2021-01-22T09:09:20.158Z","1.9.0-next-1611307591000":"2021-01-22T09:29:29.186Z","1.9.0-next-1611308472000":"2021-01-22T09:44:00.349Z","1.9.0-next-1611319644000":"2021-01-22T12:49:47.242Z","1.9.0-next-1611327119000":"2021-01-22T14:56:09.875Z","1.9.0-next-1611338311000":"2021-01-22T18:01:14.703Z","1.9.0-next-1611342560000":"2021-01-22T19:12:24.161Z","1.9.0-next-1611355284000":"2021-01-22T22:44:08.449Z","1.9.0-next-1611357839000":"2021-01-22T23:26:25.920Z","1.9.0-next-1611359933000":"2021-01-23T00:01:42.711Z","1.9.0-next-1611360601000":"2021-01-23T00:12:45.654Z","1.9.0-next-1611364177000":"2021-01-23T01:13:44.688Z","1.9.0-next-1611365280000":"2021-01-23T01:30:47.479Z","1.9.0-next-1611370022000":"2021-01-23T02:49:28.096Z","1.9.0-next-1611506651000":"2021-01-24T16:47:14.156Z","1.9.0-next-1611544879000":"2021-01-25T03:24:10.683Z","1.9.0-next-1611589521000":"2021-01-25T15:47:52.010Z","1.9.0-next-1611602828000":"2021-01-25T19:30:15.881Z","1.9.0-next-1611610819000":"2021-01-25T21:42:46.181Z","1.9.0-next-1611612136000":"2021-01-25T22:05:05.833Z","1.9.0-next-1611613147000":"2021-01-25T22:21:34.208Z","1.9.0-next-1611614991000":"2021-01-25T22:52:41.041Z","1.9.0-next-1611621453000":"2021-01-26T00:45:58.923Z","1.9.0-next-1611622427000":"2021-01-26T01:01:32.122Z","1.9.0-next-1611629086000":"2021-01-26T02:47:12.729Z","1.9.0-next-1611682926000":"2021-01-26T17:44:53.303Z","1.9.0-next-1611687965000":"2021-01-26T19:08:44.277Z","1.9.0-next-1611702557000":"2021-01-26T23:11:39.144Z","1.9.0-next-1611765755000":"2021-01-27T16:45:00.698Z","1.9.0-next-1611766311000":"2021-01-27T16:56:29.773Z","1.9.0-next-1611767131000":"2021-01-27T17:09:20.410Z","1.9.0-next-1611770206000":"2021-01-27T17:59:47.316Z","1.9.0-next-1611774665000":"2021-01-27T19:14:11.197Z","1.9.0-next-1611775894000":"2021-01-27T19:36:05.098Z","1.9.0-next-1611782376000":"2021-01-27T21:23:45.262Z","1.9.0-next-1611785977000":"2021-01-27T22:22:34.148Z","1.9.0-next-1611791848000":"2021-01-27T23:59:56.493Z","1.9.0-next-1611793287000":"2021-01-28T00:24:26.610Z","1.9.0-next-1611795729000":"2021-01-28T01:05:07.973Z","1.9.0-next-1611798327000":"2021-01-28T01:48:48.279Z","1.9.0-next-1611805371000":"2021-01-28T03:45:53.922Z","1.9.0-next-1611815545000":"2021-01-28T06:49:55.236Z","1.8.0-1611821725000":"2021-01-28T08:17:53.815Z","1.9.0-next-1611822019000":"2021-01-28T08:23:02.628Z","1.9.0-next-1611823116000":"2021-01-28T08:40:57.788Z","1.9.0-next-1611825540000":"2021-01-28T09:21:59.833Z","1.9.0-next-1611827034000":"2021-01-28T09:47:11.155Z","1.9.0-next-1611827805000":"2021-01-28T10:00:14.236Z","1.9.0-next-1611828923000":"2021-01-28T10:19:22.031Z","1.9.0-next-1611855200000":"2021-01-28T17:36:01.899Z","1.9.0-next-1611859857000":"2021-01-28T19:00:57.808Z","1.9.0-next-1611872710000":"2021-01-28T22:28:36.212Z","1.9.0-next-1611875360000":"2021-01-28T23:12:35.129Z","1.9.0-next-1611875729000":"2021-01-28T23:18:48.157Z","1.9.0-next-1611885101000":"2021-01-29T01:54:39.557Z","1.9.0-next-1611932277000":"2021-01-29T15:00:48.670Z","1.9.0-next-1611947302000":"2021-01-29T19:11:28.934Z","1.9.0-next-1611962678000":"2021-01-29T23:27:31.788Z","1.9.0-next-1611964937000":"2021-01-30T00:06:02.845Z","1.9.0-next-1611976525000":"2021-01-30T03:18:00.943Z","1.9.0-next-1612073756000":"2021-01-31T06:20:29.275Z","1.9.0-next-1612139833000":"2021-02-01T00:40:18.606Z","1.9.0-next-1612149620000":"2021-02-01T03:24:29.859Z","1.9.0-next-1612179031000":"2021-02-01T11:33:54.534Z","1.9.0-next-1612200622000":"2021-02-01T17:34:02.816Z","1.9.0-next-1612206793000":"2021-02-01T19:16:06.269Z","1.9.0-next-1612208823000":"2021-02-01T20:01:53.818Z","1.9.0-next-1612209901000":"2021-02-01T20:09:12.698Z","1.9.0-next-1612221837000":"2021-02-01T23:26:31.052Z","1.9.0-next-1612223411000":"2021-02-01T23:53:26.015Z","1.9.0-next-1612249013000":"2021-02-02T07:03:25.719Z","1.9.0-next-1612290102000":"2021-02-02T18:24:25.619Z","1.9.0-next-1612291596000":"2021-02-02T18:54:35.706Z","1.9.0-next-1612292242000":"2021-02-02T19:03:35.661Z","1.9.0-next-1612297085000":"2021-02-02T20:20:59.711Z","1.9.0-next-1612301321000":"2021-02-02T21:37:04.437Z","1.9.0-next-1612304751000":"2021-02-02T22:28:57.842Z","1.9.0-next-1612308035000":"2021-02-02T23:23:20.925Z","1.9.0-next-1612314879000":"2021-02-03T01:17:20.264Z","1.9.0-next-1612316912000":"2021-02-03T01:51:29.465Z","1.9.0-next-1612330512000":"2021-02-03T05:38:10.069Z","1.9.0-next-1612331603000":"2021-02-03T05:58:08.982Z","1.9.0-next-1612332234000":"2021-02-03T06:06:57.061Z","1.9.0-next-1612335573000":"2021-02-03T07:02:49.248Z","1.9.0-next-1612362929000":"2021-02-03T14:41:22.471Z","1.9.0-next-1612370872000":"2021-02-03T16:51:06.085Z","1.9.0-next-1612372751000":"2021-02-03T17:22:22.197Z","1.9.0-next-1612374635000":"2021-02-03T17:53:19.666Z","1.9.0-next-1612377285000":"2021-02-03T18:37:25.002Z","1.9.0-next-1612383565000":"2021-02-03T20:22:51.651Z","1.9.0-next-1612383782000":"2021-02-03T20:30:26.456Z","1.9.0-next-1612388026000":"2021-02-03T21:39:02.322Z","1.9.0-next-1612389189000":"2021-02-03T22:28:09.863Z","1.9.0-next-1612392977000":"2021-02-03T23:02:18.968Z","1.9.0-next-1612393342000":"2021-02-03T23:05:43.368Z","1.9.0-next-1612396494000":"2021-02-03T23:58:20.449Z","1.9.0-next-1612396911000":"2021-02-04T00:04:25.725Z","1.9.0-next-1612400196000":"2021-02-04T01:02:54.245Z","1.9.0-next-1612404655000":"2021-02-04T02:14:07.344Z","1.9.0-next-1612405506000":"2021-02-04T02:28:09.744Z","1.9.0-next-1612409770000":"2021-02-04T03:39:34.672Z","1.9.0-next-1612414787000":"2021-02-04T05:02:21.433Z","1.9.0-next-1612415709000":"2021-02-04T05:18:07.180Z","1.9.0-next-1612445519000":"2021-02-04T13:35:26.854Z","1.9.0-next-1612448693000":"2021-02-04T14:28:15.636Z","1.9.0-next-1612457159000":"2021-02-04T16:49:16.990Z","1.9.0-next-1612457580000":"2021-02-04T16:56:14.020Z","1.9.0-next-1612462778000":"2021-02-04T18:24:37.455Z","1.9.0-next-1612463649000":"2021-02-04T18:38:41.071Z","1.9.0-next-1612469524000":"2021-02-04T20:14:40.597Z","1.9.0-next-1612478513000":"2021-02-04T22:44:23.473Z","1.9.0-next-1612489495000":"2021-02-05T01:48:05.995Z","1.9.0-next-1612502114000":"2021-02-05T05:17:50.032Z","1.9.0-next-1612546743000":"2021-02-05T17:42:19.016Z","1.9.0-next-1612553444000":"2021-02-05T19:33:53.741Z","1.9.0-next-1612558605000":"2021-02-05T21:00:00.052Z","1.9.0-next-1612563867000":"2021-02-05T22:27:09.339Z","1.9.0-next-1612567728000":"2021-02-05T23:31:46.391Z","1.9.0-next-1612570428000":"2021-02-06T00:17:04.993Z","1.9.0-next-1612570749000":"2021-02-06T00:28:14.777Z","1.9.0-next-1612571533000":"2021-02-06T00:47:13.257Z","1.9.0-next-1612631145000":"2021-02-06T17:08:34.982Z","1.9.0-next-1612652221000":"2021-02-06T23:00:09.193Z","1.9.0-next-1612674755000":"2021-02-07T05:15:50.999Z","1.9.0-next-1612770850000":"2021-02-08T07:57:30.876Z","1.9.0-next-1612775010000":"2021-02-08T09:06:28.351Z","1.9.0-next-1612801374000":"2021-02-08T16:25:58.181Z","1.9.0-next-1612810805000":"2021-02-08T19:03:07.000Z","1.9.0-next-1612814305000":"2021-02-08T20:01:20.681Z","1.9.0-next-1612814865000":"2021-02-08T20:18:23.742Z","1.9.0-next-1612816037000":"2021-02-08T20:29:49.434Z","1.9.0-next-1612823945000":"2021-02-08T22:41:35.175Z","1.9.0-next-1612829055000":"2021-02-09T00:18:02.482Z","1.9.0-next-1612829977000":"2021-02-09T00:42:26.231Z","1.9.0-next-1612834381000":"2021-02-09T01:36:07.967Z","1.9.0-next-1612836447000":"2021-02-09T02:11:14.064Z","1.9.0-next-1612842671000":"2021-02-09T03:56:38.862Z","1.9.0-next-1612849997000":"2021-02-09T05:55:50.049Z","1.9.0-next-1612888436000":"2021-02-09T16:47:41.901Z","1.9.0-next-1612893653000":"2021-02-09T18:57:34.474Z","1.9.0-next-1612901508000":"2021-02-09T20:26:01.803Z","1.8.0-1612983896000":"2021-02-10T19:07:43.478Z","1.8.1-1612984833000":"2021-02-10T19:26:33.518Z","1.8.1":"2021-02-10T20:46:05.411Z","1.9.0-next-alpha-feb-13-2021":"2021-02-13T01:00:43.568Z","1.9.0-next-alpha-feb-14-2021":"2021-02-14T01:04:09.236Z","1.9.0-next-alpha-feb-15-2021":"2021-02-15T01:02:03.268Z","1.9.0-next-alpha-feb-16-2021":"2021-02-16T01:02:05.889Z","1.9.0-next-alpha-feb-17-2021":"2021-02-17T01:01:33.493Z","1.8.1-1613528542000":"2021-02-17T02:24:36.823Z","1.9.0-next-alpha-feb-18-2021":"2021-02-18T01:02:07.372Z","1.9.0-next-alpha-feb-19-2021":"2021-02-19T01:14:40.963Z","1.9.0-next-alpha-feb-20-2021":"2021-02-20T01:01:52.807Z","1.9.0-next-alpha-feb-21-2021":"2021-02-21T01:05:11.815Z","1.9.0-next-alpha-feb-22-2021":"2021-02-22T01:03:34.075Z","1.9.0-1614037901000":"2021-02-23T00:49:35.320Z","1.10.0-next-alpha-feb-23-2021":"2021-02-23T01:31:34.191Z","1.9.0":"2021-02-24T01:31:15.140Z","1.9.1-1614187757000":"2021-02-24T17:32:53.835Z","1.9.1-1614201887000":"2021-02-24T21:31:27.736Z","1.10.0-next-alpha-feb-25-2021":"2021-02-25T01:30:48.843Z","1.9.1-1614225150000":"2021-02-25T03:56:09.850Z","1.9.1":"2021-02-25T15:41:14.345Z","1.10.0-next-alpha-feb-26-2021":"2021-02-26T01:03:52.287Z","1.10.0-next-alpha-feb-27-2021":"2021-02-27T01:03:52.420Z","1.10.0-next-alpha-feb-28-2021":"2021-02-28T01:07:10.914Z","1.10.0-next-alpha-mar-1-2021":"2021-03-01T01:07:19.551Z","1.9.1-1614628267000":"2021-03-01T19:53:47.633Z","1.9.1-1614629120000":"2021-03-01T20:27:37.469Z","1.9.1-1614633211000":"2021-03-01T21:17:11.780Z","1.9.1-1614634508000":"2021-03-01T21:59:48.471Z","1.9.1-1614640598000":"2021-03-02T00:00:16.544Z","1.9.1-1614654987000":"2021-03-02T03:42:36.438Z","1.10.0-next-alpha-mar-3-2021":"2021-03-03T01:06:01.732Z","1.9.1-1614734424000":"2021-03-03T01:35:45.807Z","1.9.1-1614808864000":"2021-03-03T22:14:53.517Z","1.9.1-1614810608000":"2021-03-03T22:34:34.333Z","1.9.1-1614817648000":"2021-03-04T00:30:57.560Z","1.10.0-next-alpha-mar-4-2021":"2021-03-04T01:04:27.751Z","1.9.1-1614885198000":"2021-03-04T19:16:27.088Z","1.9.1-1614893264000":"2021-03-04T21:32:19.205Z","1.10.0-next-alpha-mar-5-2021":"2021-03-05T01:05:50.088Z","1.9.1-1614982623000":"2021-03-05T22:20:09.781Z","1.9.1-1614983396000":"2021-03-05T22:50:49.871Z","1.10.0-next-alpha-mar-6-2021":"2021-03-06T01:05:04.402Z","1.10.0-next-alpha-mar-7-2021":"2021-03-07T01:09:19.091Z","1.10.0-next-alpha-mar-8-2021":"2021-03-08T01:06:49.778Z","1.10.0-next-alpha-mar-9-2021":"2021-03-09T01:06:02.167Z","1.9.1-1615324434000":"2021-03-09T21:17:24.902Z","1.9.2-1615328067000":"2021-03-09T22:27:22.623Z","1.9.2-1615332311000":"2021-03-09T23:28:25.490Z","1.9.2":"2021-03-10T00:40:45.106Z","1.10.0-next-alpha-mar-10-2021":"2021-03-10T01:06:30.432Z","1.10.0-next-alpha-mar-11-2021":"2021-03-11T01:06:17.158Z","1.10.0-next-alpha-mar-12-2021":"2021-03-12T01:07:39.356Z","1.10.0-next-alpha-mar-13-2021":"2021-03-13T01:06:19.729Z","1.10.0-next-alpha-mar-14-2021":"2021-03-14T01:10:31.035Z","1.10.0-next-alpha-mar-15-2021":"2021-03-15T01:07:49.342Z","1.10.0-next-alpha-mar-16-2021":"2021-03-16T01:07:26.300Z","1.10.0-next-alpha-mar-17-2021":"2021-03-17T01:07:39.008Z","1.10.0-next-alpha-mar-18-2021":"2021-03-18T01:08:45.124Z","1.10.0-next-alpha-mar-21-2021":"2021-03-21T01:12:12.422Z","1.10.0-next-alpha-mar-22-2021":"2021-03-22T01:09:46.475Z","1.10.0-1616532968000":"2021-03-23T22:01:12.271Z","1.11.0-next-alpha-mar-24-2021":"2021-03-24T01:10:33.592Z","1.10.0-1616563674000":"2021-03-24T05:31:52.381Z","1.10.0":"2021-03-24T21:29:42.469Z","1.11.0-next-alpha-mar-25-2021":"2021-03-25T00:27:56.751Z","1.11.0-next-alpha-mar-26-2021":"2021-03-26T00:25:14.906Z","1.11.0-next-alpha-mar-27-2021":"2021-03-27T00:25:07.813Z","1.11.0-next-alpha-mar-28-2021":"2021-03-28T00:26:47.986Z","1.11.0-next-alpha-mar-29-2021":"2021-03-29T00:26:20.814Z","1.11.0-next-alpha-mar-30-2021":"2021-03-30T00:24:57.264Z","1.11.0-next-alpha-mar-31-2021":"2021-03-31T00:21:39.532Z","1.11.0-next-alpha-apr-1-2021":"2021-04-01T00:26:26.553Z","1.11.0-next-alpha-apr-2-2021":"2021-04-02T00:46:47.822Z","1.11.0-next-alpha-apr-3-2021":"2021-04-03T00:25:43.058Z","1.11.0-next-alpha-apr-4-2021":"2021-04-04T00:27:15.009Z","1.11.0-next-alpha-apr-6-2021":"2021-04-06T00:26:22.494Z","1.11.0-next-alpha-apr-9-2021":"2021-04-09T00:25:42.838Z","1.11.0-next-alpha-apr-10-2021":"2021-04-10T00:26:50.731Z","1.11.0-next-alpha-apr-11-2021":"2021-04-11T00:29:18.076Z","1.11.0-next-alpha-apr-12-2021":"2021-04-12T00:27:37.437Z","1.11.0-next-alpha-apr-13-2021":"2021-04-13T00:28:27.829Z","1.11.0-next-alpha-apr-14-2021":"2021-04-14T00:24:28.397Z","1.11.0-next-alpha-apr-15-2021":"2021-04-15T00:26:26.221Z","1.11.0-next-alpha-apr-16-2021":"2021-04-16T00:25:05.158Z","1.11.0-next-alpha-apr-17-2021":"2021-04-17T00:25:57.796Z","1.11.0-next-alpha-apr-18-2021":"2021-04-18T00:26:33.390Z","1.11.0-next-alpha-apr-19-2021":"2021-04-19T00:26:29.793Z","1.11.0-next-alpha-apr-20-2021":"2021-04-20T00:30:43.401Z","1.11.0-next-alpha-apr-22-2021":"2021-04-22T00:26:35.560Z","1.11.0-next-alpha-apr-23-2021":"2021-04-23T00:26:12.941Z","1.11.0-next-alpha-apr-24-2021":"2021-04-24T00:27:24.060Z","1.11.0-next-alpha-apr-25-2021":"2021-04-25T00:27:17.850Z","1.11.0-next-alpha-apr-26-2021":"2021-04-26T00:28:00.344Z","1.11.0-next-alpha-apr-27-2021":"2021-04-27T00:26:34.134Z","1.11.0-next-alpha-apr-28-2021":"2021-04-28T00:26:09.622Z","1.11.0-next-alpha-apr-29-2021":"2021-04-29T00:25:48.061Z","1.11.0-next-alpha-apr-30-2021":"2021-04-30T00:17:35.221Z","1.11.0-next-alpha-may-1-2021":"2021-05-01T00:18:07.348Z","1.11.0-next-alpha-may-2-2021":"2021-05-02T00:18:46.475Z","1.11.0-next-alpha-may-3-2021":"2021-05-03T00:18:09.580Z","1.11.0-next-alpha-may-4-2021":"2021-05-04T00:17:39.892Z","1.11.0-next-alpha-may-5-2021":"2021-05-05T00:18:33.410Z","1.12.0-next-alpha-may-6-2021":"2021-05-06T00:17:37.236Z","1.11.0-next-1620254110000":"2021-05-06T00:23:05.734Z","1.11.0-1620262237000":"2021-05-06T00:54:05.672Z","1.11.0-1620331022000":"2021-05-06T21:47:19.367Z","1.12.0-next-alpha-may-7-2021":"2021-05-07T01:01:48.226Z","1.12.0-next-alpha-may-8-2021":"2021-05-08T00:17:56.005Z","1.12.0-next-alpha-may-9-2021":"2021-05-09T00:17:41.752Z","1.12.0-next-alpha-may-10-2021":"2021-05-10T00:18:30.552Z","1.11.0":"2021-05-10T23:25:04.814Z","1.12.0-next-alpha-may-11-2021":"2021-05-11T00:17:53.344Z","1.12.0-next-alpha-may-13-2021":"2021-05-13T00:18:40.770Z","1.12.0-next-alpha-may-14-2021":"2021-05-14T01:20:51.391Z","1.12.0-next-alpha-may-15-2021":"2021-05-15T00:18:15.079Z","1.12.0-next-alpha-may-16-2021":"2021-05-16T00:18:15.922Z","1.12.0-next-alpha-may-17-2021":"2021-05-17T00:17:55.543Z","1.11.0-1621290396000":"2021-05-17T22:28:59.968Z","1.12.0-next-alpha-may-18-2021":"2021-05-18T00:18:04.045Z","1.11.0-1621329286000":"2021-05-18T13:41:29.247Z","1.11.0-1621402998000":"2021-05-19T05:46:21.693Z","1.11.0-1621489435000":"2021-05-20T05:46:46.961Z","1.11.1-1621490832000":"2021-05-20T06:10:01.532Z","1.11.1":"2021-05-20T21:04:41.054Z","1.12.0-next-alpha-may-21-2021":"2021-05-21T00:17:14.346Z","1.12.0-next-alpha-may-22-2021":"2021-05-22T00:18:20.375Z","1.12.0-next-alpha-may-23-2021":"2021-05-23T00:17:20.738Z","1.12.0-next-alpha-may-24-2021":"2021-05-24T00:17:57.440Z","1.12.0-next-alpha-may-25-2021":"2021-05-25T00:18:17.940Z","1.12.0-next-alpha-may-26-2021":"2021-05-26T00:20:28.300Z","1.11.1-1622073148000":"2021-05-26T23:57:20.813Z","1.12.0-next-alpha-may-27-2021":"2021-05-27T00:21:30.713Z","1.12.0-next-alpha-may-28-2021":"2021-05-28T00:23:16.381Z","1.12.0-next-alpha-may-29-2021":"2021-05-29T00:26:16.983Z","1.12.0-next-alpha-may-30-2021":"2021-05-30T00:27:42.572Z","1.12.0-next-alpha-may-31-2021":"2021-05-31T00:31:18.837Z","1.12.0-next-alpha-jun-1-2021":"2021-06-01T00:33:45.595Z","1.12.0-next-alpha-jun-2-2021":"2021-06-02T00:32:54.774Z","1.12.0-next-alpha-jun-3-2021":"2021-06-03T00:32:04.973Z","1.12.0-next-1622757040000":"2021-06-03T21:57:02.408Z","1.12.0-next-alpha-jun-4-2021":"2021-06-04T00:34:47.789Z","1.12.0-next-alpha-jun-5-2021":"2021-06-05T00:28:41.396Z","1.12.0-next-1622928816000":"2021-06-05T22:54:47.705Z","1.12.0-next-alpha-jun-6-2021":"2021-06-06T00:23:05.566Z","1.12.0-next-alpha-jun-7-2021":"2021-06-07T00:22:23.381Z","1.12.0-next-1623086854000":"2021-06-07T18:04:50.327Z","1.12.0-next-alpha-jun-8-2021":"2021-06-08T00:26:10.128Z","1.12.0-next-1623176527000":"2021-06-08T18:28:43.611Z","1.12.0-next-1623181472000":"2021-06-08T19:46:56.151Z","1.12.0-1623185968000":"2021-06-08T21:02:16.704Z","1.13.0-next-alpha-jun-9-2021":"2021-06-09T00:18:15.157Z","1.12.0":"2021-06-09T01:03:21.916Z","1.13.0-next-1623265195000":"2021-06-09T19:04:17.143Z","1.12.0-1623267207000":"2021-06-09T19:36:24.832Z","1.12.0-1623269188000":"2021-06-09T20:09:43.805Z","1.12.1-1623273606000":"2021-06-09T21:24:14.411Z","1.12.1":"2021-06-09T22:04:11.581Z","1.13.0-next-alpha-jun-10-2021":"2021-06-10T00:18:11.279Z","1.13.0-next-alpha-jun-11-2021":"2021-06-11T00:17:51.581Z","1.12.1-1623433278000":"2021-06-11T17:43:45.845Z","1.12.1-1623434427000":"2021-06-11T18:03:45.617Z","1.12.1-1623435049000":"2021-06-11T18:15:05.431Z","1.12.2-1623435892000":"2021-06-11T18:42:35.202Z","1.12.2":"2021-06-11T22:59:41.240Z","1.13.0-next-alpha-jun-12-2021":"2021-06-12T00:17:34.920Z","1.13.0-next-alpha-jun-13-2021":"2021-06-13T00:18:15.075Z","1.13.0-next-alpha-jun-14-2021":"2021-06-14T00:18:12.625Z","1.13.0-next-alpha-jun-15-2021":"2021-06-15T00:17:54.027Z","1.13.0-next-alpha-jun-16-2021":"2021-06-16T00:18:07.522Z","1.13.0-next-alpha-jun-17-2021":"2021-06-17T00:17:51.895Z","1.13.0-next-alpha-jun-18-2021":"2021-06-18T00:17:39.875Z","1.13.0-next-alpha-jun-19-2021":"2021-06-19T00:18:32.843Z","1.13.0-next-alpha-jun-20-2021":"2021-06-20T00:17:58.183Z","1.13.0-next-alpha-jun-21-2021":"2021-06-21T00:17:53.267Z","1.13.0-next-alpha-jun-22-2021":"2021-06-22T00:17:33.965Z","1.13.0-next-alpha-jun-23-2021":"2021-06-23T00:18:20.023Z","1.13.0-next-alpha-jun-24-2021":"2021-06-24T00:17:14.987Z","1.13.0-next-1624521754000":"2021-06-24T08:34:46.132Z","1.13.0-next-1624575246000":"2021-06-24T23:20:00.739Z","1.12.2-1624579911000":"2021-06-25T00:14:34.269Z","1.13.0-next-alpha-jun-25-2021":"2021-06-25T00:16:30.746Z","1.12.2-1624580296000":"2021-06-25T00:21:26.981Z","1.12.2-1624580978000":"2021-06-25T00:32:35.659Z","1.12.2-1624582752000":"2021-06-25T01:01:33.194Z","1.12.2-1624582975000":"2021-06-25T01:05:54.128Z","1.12.2-1624583496000":"2021-06-25T01:14:42.528Z","1.12.2-1624583755000":"2021-06-25T01:18:28.345Z","1.12.2-1624583947000":"2021-06-25T01:23:29.157Z","1.13.0-next-1624602481000":"2021-06-25T12:11:50.574Z","1.13.0-next-1624634859000":"2021-06-25T15:29:52.474Z","1.12.2-1624645637000":"2021-06-25T18:30:08.213Z","1.13.0-next-1624652839000":"2021-06-25T20:29:38.273Z","1.12.3-1624660499000":"2021-06-25T22:37:51.516Z","1.13.0-next-alpha-jun-26-2021":"2021-06-26T00:16:33.098Z","1.12.3-1624687819000":"2021-06-26T06:13:08.478Z","1.12.3":"2021-06-26T08:06:40.946Z","1.13.0-next-alpha-jun-27-2021":"2021-06-27T00:17:42.558Z","1.13.0-next-alpha-jun-28-2021":"2021-06-28T00:16:59.802Z","1.13.0-next-alpha-jun-29-2021":"2021-06-29T00:17:05.882Z","1.13.0-next-alpha-jun-30-2021":"2021-06-30T00:16:31.714Z","1.13.0-next-alpha-jul-1-2021":"2021-07-01T00:16:26.370Z","1.13.0-next-1625160362000":"2021-07-01T18:10:10.300Z","1.13.0-next-alpha-jul-2-2021":"2021-07-02T00:27:06.166Z","1.13.0-next-alpha-jul-3-2021":"2021-07-03T00:16:31.346Z","1.13.0-next-1625269509000":"2021-07-03T20:58:23.333Z","1.13.0-next-alpha-jul-4-2021":"2021-07-04T00:16:55.278Z","1.13.0-next-alpha-jul-5-2021":"2021-07-05T00:16:47.271Z","1.13.0-next-alpha-jul-6-2021":"2021-07-06T00:17:09.902Z","1.13.0-next-alpha-jul-7-2021":"2021-07-07T00:16:43.030Z","1.13.0-next-alpha-jul-8-2021":"2021-07-08T00:16:36.532Z","1.13.0-next-1625762188000":"2021-07-08T17:03:25.921Z","1.13.0-next-1625774143000":"2021-07-08T19:57:45.245Z","1.13.0-next-alpha-jul-9-2021":"2021-07-09T00:16:35.149Z","1.13.0-next-alpha-jul-10-2021":"2021-07-10T00:17:18.276Z","1.13.0-next-alpha-jul-11-2021":"2021-07-11T00:16:54.462Z","1.13.0-next-alpha-jul-12-2021":"2021-07-12T00:16:42.112Z","1.13.0-next-alpha-jul-13-2021":"2021-07-13T00:16:15.480Z","1.13.0-next-1626194864000":"2021-07-13T16:50:15.953Z","1.13.0-next-alpha-jul-14-2021":"2021-07-14T00:16:10.504Z","1.13.0-next-alpha-jul-15-2021":"2021-07-15T00:16:07.030Z","1.13.0-next-1626331329000":"2021-07-15T12:20:51.725Z","1.13.0-next-alpha-jul-16-2021":"2021-07-16T00:16:37.843Z","1.13.0-next-1626468517000":"2021-07-16T21:39:00.780Z","1.13.0-next-1626474230000":"2021-07-16T22:55:20.337Z","1.13.0-next-alpha-jul-17-2021":"2021-07-17T00:16:52.083Z","1.13.0-next-1626500095000":"2021-07-17T05:37:18.798Z","1.13.0-next-alpha-jul-18-2021":"2021-07-18T00:17:15.393Z","1.13.0-next-alpha-jul-19-2021":"2021-07-19T00:16:30.495Z","1.13.0-next-1626706866000":"2021-07-19T15:15:22.198Z","1.13.0-next-1626731788000":"2021-07-19T22:12:48.833Z","1.13.0-1626733671000":"2021-07-19T22:30:05.028Z","1.14.0-next-alpha-jul-20-2021":"2021-07-20T00:16:36.946Z","1.14.0-next-1626812020000":"2021-07-20T20:25:35.556Z","1.14.0-next-alpha-jul-21-2021":"2021-07-21T00:16:36.993Z","1.13.0-1626828370000":"2021-07-21T00:48:10.751Z","1.13.0-1626874597000":"2021-07-21T13:38:21.476Z","1.13.0-1626881997000":"2021-07-21T15:41:59.421Z","1.13.0":"2021-07-21T17:38:09.652Z","1.14.0-next-alpha-jul-22-2021":"2021-07-22T00:16:31.365Z","1.14.0-next-1626986111000":"2021-07-22T21:00:41.754Z","1.14.0-next-alpha-jul-23-2021":"2021-07-23T00:16:42.570Z","1.14.0-next-alpha-jul-24-2021":"2021-07-24T00:17:06.378Z","1.14.0-next-alpha-jul-25-2021":"2021-07-25T00:17:04.392Z","1.14.0-next-alpha-jul-26-2021":"2021-07-26T00:17:04.166Z","1.14.0-next-alpha-jul-27-2021":"2021-07-27T00:16:36.110Z","1.14.0-next-alpha-jul-28-2021":"2021-07-28T00:16:40.272Z","1.14.0-next-1627512284000":"2021-07-28T22:47:40.214Z","1.13.0-1627513904000":"2021-07-28T23:13:28.632Z","1.13.0-1627514352000":"2021-07-28T23:21:37.076Z","1.13.0-1627515384000":"2021-07-28T23:38:20.116Z","1.13.0-1627515855000":"2021-07-28T23:45:56.140Z","1.14.0-next-alpha-jul-29-2021":"2021-07-29T00:16:31.422Z","1.13.1-1627519339000":"2021-07-29T00:44:10.590Z","1.14.0-next-1627569199000":"2021-07-29T15:05:33.461Z","1.13.1":"2021-07-29T17:47:55.665Z","1.14.0-next-alpha-jul-30-2021":"2021-07-30T00:16:37.180Z","1.14.0-next-alpha-jul-31-2021":"2021-07-31T00:16:51.922Z","1.14.0-next-alpha-aug-1-2021":"2021-08-01T00:16:40.618Z","1.14.0-next-alpha-aug-2-2021":"2021-08-02T00:17:14.580Z","1.14.0-next-alpha-aug-3-2021":"2021-08-03T00:16:46.674Z","1.14.0-next-1628029791000":"2021-08-03T22:50:34.448Z","1.14.0-next-alpha-aug-4-2021":"2021-08-04T00:27:05.841Z","1.14.0-next-alpha-aug-5-2021":"2021-08-05T00:18:24.226Z","1.14.0-next-alpha-aug-6-2021":"2021-08-06T00:17:00.575Z","1.14.0-next-alpha-aug-7-2021":"2021-08-07T00:17:07.214Z","1.14.0-next-1628307477000":"2021-08-07T03:40:12.486Z","1.14.0-next-alpha-aug-8-2021":"2021-08-08T00:16:56.817Z","1.14.0-next-alpha-aug-9-2021":"2021-08-09T00:16:55.858Z","1.14.0-next-alpha-aug-10-2021":"2021-08-10T00:21:56.651Z","1.14.0-next-1628705690000":"2021-08-11T19:19:35.678Z","1.15.0-next-1628725459000":"2021-08-11T23:54:24.871Z","1.15.0-next-alpha-aug-12-2021":"2021-08-12T00:16:47.343Z","1.14.0-1628754809000":"2021-08-12T07:55:58.295Z","1.14.0-1628761546000":"2021-08-12T09:48:06.878Z","1.14.0-1628783206000":"2021-08-12T15:48:53.536Z","1.15.0-next-1628784536000":"2021-08-12T16:15:33.131Z","1.14.0-1628788909000":"2021-08-12T17:23:56.574Z","1.14.0-1628789465000":"2021-08-12T17:32:56.051Z","1.15.0-next-alpha-aug-13-2021":"2021-08-13T00:17:26.643Z","1.14.0-1628878084000":"2021-08-13T18:10:23.608Z","1.14.0":"2021-08-13T23:42:32.746Z","1.15.0-next-alpha-aug-14-2021":"2021-08-14T00:16:54.984Z","1.15.0-next-alpha-aug-15-2021":"2021-08-15T00:17:07.780Z","1.15.0-next-alpha-aug-16-2021":"2021-08-16T00:16:54.351Z","1.15.0-next-alpha-aug-17-2021":"2021-08-17T00:33:38.623Z","1.14.0-1629244407000":"2021-08-17T23:56:07.663Z","1.15.0-next-alpha-aug-18-2021":"2021-08-18T00:16:48.982Z","1.14.0-1629293819000":"2021-08-18T13:38:53.269Z","1.14.0-1629316514000":"2021-08-18T19:57:36.767Z","1.15.0-next-alpha-aug-19-2021":"2021-08-19T00:17:09.338Z","1.14.0-1629398408000":"2021-08-19T18:42:57.636Z","1.14.0-1629408981000":"2021-08-19T21:38:41.175Z","1.15.0-next-1629411406000":"2021-08-19T23:39:45.498Z","1.15.0-next-alpha-aug-20-2021":"2021-08-20T00:28:21.876Z","1.15.0-next-1629421735000":"2021-08-20T01:13:09.450Z","1.14.0-1629470760000":"2021-08-20T14:49:22.314Z","1.14.0-1629492141000":"2021-08-20T20:44:41.883Z","1.15.0-next-1629492027000":"2021-08-20T21:18:05.549Z","1.15.0-next-alpha-aug-21-2021":"2021-08-21T00:17:03.455Z","1.15.0-next-alpha-aug-22-2021":"2021-08-22T00:17:13.868Z","1.15.0-next-alpha-aug-23-2021":"2021-08-23T00:16:59.964Z","1.15.0-next-1629648287000":"2021-08-23T08:48:59.796Z","1.14.0-1629718845000":"2021-08-23T11:42:59.879Z","1.15.0-next-alpha-aug-24-2021":"2021-08-24T00:21:09.176Z","1.14.1-1629823926000":"2021-08-24T16:56:43.729Z","1.14.1":"2021-08-24T18:08:08.877Z","1.15.0-next-alpha-aug-25-2021":"2021-08-25T00:17:04.697Z","1.14.1-1629891535000":"2021-08-25T11:41:14.961Z","1.15.0-next-alpha-aug-26-2021":"2021-08-26T00:16:52.080Z","1.15.0-next-1629972453000":"2021-08-26T10:10:15.363Z","1.15.0-next-alpha-aug-27-2021":"2021-08-27T00:19:05.619Z","1.14.1-1630074514000":"2021-08-27T14:30:29.531Z","1.15.0-next-alpha-aug-28-2021":"2021-08-28T00:16:39.029Z","1.15.0-next-alpha-aug-29-2021":"2021-08-29T00:16:39.817Z","1.15.0-next-alpha-aug-30-2021":"2021-08-30T00:17:20.131Z","1.14.1-1630325154000":"2021-08-30T12:08:38.341Z","1.15.0-next-alpha-aug-31-2021":"2021-08-31T00:18:27.720Z","1.15.0-next-1630432230000":"2021-08-31T17:52:56.216Z","1.15.0-next-alpha-sep-1-2021":"2021-09-01T00:32:39.612Z","1.15.0-next-alpha-sep-2-2021":"2021-09-02T00:22:06.329Z","1.15.0-next-alpha-sep-3-2021":"2021-09-03T00:17:57.495Z","1.15.0-next-alpha-sep-4-2021":"2021-09-04T00:17:16.710Z","1.15.0-next-alpha-sep-5-2021":"2021-09-05T00:17:36.660Z","1.15.0-next-alpha-sep-6-2021":"2021-09-06T00:17:37.369Z","1.15.0-next-alpha-sep-7-2021":"2021-09-07T00:17:13.570Z","1.15.0-next-alpha-sep-8-2021":"2021-09-08T00:17:41.066Z","1.15.0-next-alpha-sep-9-2021":"2021-09-09T00:16:49.495Z","1.15.0-next-alpha-sep-10-2021":"2021-09-10T00:17:58.087Z","1.15.0-next-alpha-sep-11-2021":"2021-09-11T00:17:29.934Z","1.15.0-next-alpha-sep-12-2021":"2021-09-12T00:17:45.420Z","1.15.0-next-alpha-sep-13-2021":"2021-09-13T00:17:22.453Z","1.15.0-next-alpha-sep-14-2021":"2021-09-14T00:17:26.598Z","1.15.0-next-alpha-sep-15-2021":"2021-09-15T00:17:37.857Z","1.15.0-next-alpha-sep-16-2021":"2021-09-16T00:18:06.547Z","1.15.0-next-1631780436000":"2021-09-16T08:45:23.994Z","1.15.0-next-1631782939000":"2021-09-16T12:59:54.739Z","1.15.0-1631797286000":"2021-09-16T13:04:16.123Z","1.15.0-1631817028000":"2021-09-16T18:32:58.600Z","1.16.0-next-alpha-sep-17-2021":"2021-09-17T00:17:49.043Z","1.16.0-next-alpha-sep-18-2021":"2021-09-18T00:18:05.178Z","1.16.0-next-alpha-sep-19-2021":"2021-09-19T00:17:46.321Z","1.16.0-next-alpha-sep-20-2021":"2021-09-20T00:17:51.490Z","1.15.0":"2021-09-21T13:33:57.541Z","1.15.0-1632253285000":"2021-09-21T19:44:23.716Z","1.15.0-1632254231000":"2021-09-21T19:59:40.857Z","1.16.0-next-alpha-sep-22-2021":"2021-09-22T00:19:33.433Z","1.15.0-1632321891000":"2021-09-22T14:48:38.084Z","1.15.0-1632328434000":"2021-09-22T16:57:50.103Z","1.15.0-1632336523000":"2021-09-22T20:25:14.003Z","1.16.0-next-1632372554000":"2021-09-23T09:34:59.309Z","1.15.0-1632420841000":"2021-09-23T18:16:50.827Z","1.15.0-1632430084000":"2021-09-23T20:50:39.352Z","1.16.0-next-alpha-sep-24-2021":"2021-09-24T00:17:27.392Z","1.15.0-1632494029000":"2021-09-24T14:36:08.896Z","1.16.0-next-alpha-sep-25-2021":"2021-09-25T00:17:36.553Z","1.16.0-next-1632541869000":"2021-09-25T11:55:10.766Z","1.16.0-next-alpha-sep-26-2021":"2021-09-26T00:17:42.526Z","1.16.0-next-alpha-sep-27-2021":"2021-09-27T00:17:06.832Z","1.16.0-next-alpha-sep-28-2021":"2021-09-28T00:17:52.489Z","1.16.0-next-alpha-sep-29-2021":"2021-09-29T00:18:23.931Z","1.16.0-next-alpha-sep-30-2021":"2021-09-30T00:18:56.808Z","1.15.0-1633020276000":"2021-09-30T16:47:45.567Z","1.15.1-1633032976000":"2021-09-30T20:19:08.807Z","1.15.1":"2021-09-30T21:48:09.631Z","1.16.0-next-alpha-oct-1-2021":"2021-10-01T00:17:55.824Z","1.16.0-next-alpha-oct-2-2021":"2021-10-02T00:17:19.588Z","1.16.0-next-alpha-oct-3-2021":"2021-10-03T00:17:49.442Z","1.16.0-next-alpha-oct-4-2021":"2021-10-04T00:17:50.793Z","1.15.1-1633391047000":"2021-10-04T23:53:28.455Z","1.16.0-next-1633411110000":"2021-10-05T08:09:19.244Z","1.15.1-1633440750000":"2021-10-05T13:35:45.110Z","1.15.2-1633455481000":"2021-10-05T17:40:36.108Z","1.15.2":"2021-10-05T20:43:10.951Z","1.16.0-next-alpha-oct-6-2021":"2021-10-06T00:17:31.602Z","1.16.0-next-1633547251000":"2021-10-06T22:40:24.970Z","1.16.0-next-alpha-oct-7-2021":"2021-10-07T00:17:56.087Z","1.16.0-next-1633635746000":"2021-10-07T19:45:09.505Z","1.16.0-next-alpha-oct-8-2021":"2021-10-08T00:17:14.612Z","1.16.0-next-1633705291000":"2021-10-08T15:04:38.007Z","1.16.0-next-alpha-oct-9-2021":"2021-10-09T00:17:35.297Z","1.16.0-next-alpha-oct-10-2021":"2021-10-10T00:17:30.442Z","1.16.0-next-alpha-oct-11-2021":"2021-10-11T00:17:23.006Z","1.16.0-next-1633965845000":"2021-10-11T15:28:09.691Z","1.16.0-next-alpha-oct-12-2021":"2021-10-12T00:17:24.039Z","1.16.0-next-alpha-oct-13-2021":"2021-10-13T00:18:03.511Z","1.16.0-next-alpha-oct-14-2021":"2021-10-14T00:26:26.086Z","1.16.0-next-alpha-oct-15-2021":"2021-10-15T00:17:58.336Z","1.16.0-next-alpha-oct-17-2021":"2021-10-17T00:18:05.358Z","1.16.0-next-alpha-oct-18-2021":"2021-10-18T00:18:32.323Z","1.16.0-next-1634591576000":"2021-10-19T00:13:32.924Z","1.16.0-next-alpha-oct-19-2021":"2021-10-19T00:23:06.684Z","1.16.0-next-1634682977000":"2021-10-19T22:42:22.361Z","1.16.0-next-alpha-oct-20-2021":"2021-10-20T00:18:43.316Z","1.16.0-next-1634703014000":"2021-10-20T04:16:33.583Z","1.16.0-next-1634756762000":"2021-10-20T19:49:51.695Z","1.16.0-next-1634760607000":"2021-10-20T20:29:50.979Z","1.17.0-next-alpha-oct-21-2021":"2021-10-21T00:17:48.541Z","1.16.0-next-1634776202000":"2021-10-21T00:34:48.467Z","1.16.0-next-1634779886000":"2021-10-21T01:35:01.805Z","1.16.0-1634781227000":"2021-10-21T01:56:44.447Z","1.16.0":"2021-10-21T19:13:35.173Z","1.16.0-1634852871000":"2021-10-21T21:54:03.586Z","1.16.0-1634861253000":"2021-10-22T00:12:10.303Z","1.17.0-next-alpha-oct-22-2021":"2021-10-22T00:18:03.216Z","1.17.0-next-1634890429000":"2021-10-22T08:20:28.020Z","1.16.0-1634915778000":"2021-10-22T15:21:16.481Z","1.16.1-1634926303000":"2021-10-22T18:14:54.438Z","1.16.1-1634934341000":"2021-10-22T20:28:50.812Z","1.16.1-1634940933000":"2021-10-22T22:22:35.632Z","1.16.1":"2021-10-22T23:10:36.521Z","1.16.1-1634946815000":"2021-10-22T23:57:33.323Z","1.17.0-next-alpha-oct-23-2021":"2021-10-23T00:32:51.806Z","1.17.0-next-alpha-oct-24-2021":"2021-10-24T00:18:06.633Z","1.17.0-next-alpha-oct-25-2021":"2021-10-25T00:17:48.507Z","1.16.1-1635184173000":"2021-10-25T17:54:27.114Z","1.16.1-1635200406000":"2021-10-25T22:23:26.375Z","1.17.0-next-alpha-oct-26-2021":"2021-10-26T00:18:16.959Z","1.16.1-1635279837000":"2021-10-26T20:46:26.489Z","1.16.1-1635287620000":"2021-10-26T23:58:55.225Z","1.17.0-next-alpha-oct-27-2021":"2021-10-27T01:47:14.311Z","1.16.1-1635296896000":"2021-10-27T02:08:16.930Z","1.16.1-1635315681000":"2021-10-27T07:18:18.041Z","1.16.2-1635322350000":"2021-10-27T08:15:38.442Z","1.16.2":"2021-10-27T18:32:52.820Z","1.16.2-1635467086000":"2021-10-29T02:02:40.373Z","1.17.0-next-1635521587000":"2021-10-29T15:38:13.487Z","1.17.0-next-alpha-oct-30-2021":"2021-10-30T00:18:20.580Z","1.16.2-1635624469000":"2021-10-30T20:11:14.190Z","1.17.0-next-alpha-oct-31-2021":"2021-10-31T00:18:27.915Z","1.17.0-next-alpha-nov-1-2021":"2021-11-01T00:18:12.216Z","1.16.2-1635727112000":"2021-11-01T00:42:47.881Z","1.17.0-next-1635761637000":"2021-11-01T10:33:34.677Z","1.16.3-1635814179000":"2021-11-02T01:59:16.205Z","1.16.3":"2021-11-02T07:22:27.842Z","1.17.0-next-alpha-nov-2-2021":"2021-11-02T10:33:12.864Z","1.17.0-next-1635851494000":"2021-11-02T11:26:24.084Z","1.17.0-next-1635886706000":"2021-11-02T22:21:28.382Z","1.17.0-next-alpha-nov-3-2021":"2021-11-03T00:21:49.904Z","1.17.0-next-alpha-nov-4-2021":"2021-11-04T00:27:34.307Z","1.17.0-next-1636024023000":"2021-11-04T15:34:01.911Z","1.17.0-next-alpha-nov-5-2021":"2021-11-05T00:21:48.487Z","1.16.3-1636114012000":"2021-11-05T12:09:31.322Z","1.17.0-next-alpha-nov-6-2021":"2021-11-06T00:22:03.686Z","1.17.0-next-1636225929000":"2021-11-06T19:16:02.025Z","1.17.0-next-alpha-nov-7-2021":"2021-11-07T00:21:33.289Z","1.17.0-next-alpha-nov-8-2021":"2021-11-08T00:22:20.517Z","1.17.0-next-1636414979000":"2021-11-08T23:53:00.654Z","1.17.0-next-alpha-nov-9-2021":"2021-11-09T00:42:18.091Z","1.17.0-next-1636423390000":"2021-11-09T02:12:14.103Z","1.17.0-next-1636430928000":"2021-11-09T11:07:25.207Z","1.17.0-next-1636502298000":"2021-11-10T00:11:08.931Z","1.17.0-next-alpha-nov-10-2021":"2021-11-10T00:21:38.504Z","1.17.0-next-1636507311000":"2021-11-10T02:06:40.426Z","1.17.0-1636510039000":"2021-11-10T02:32:01.706Z","1.17.0-1636525868000":"2021-11-10T06:34:47.682Z","1.17.0-1636572712000":"2021-11-10T19:39:10.045Z","1.18.0-next-alpha-nov-11-2021":"2021-11-11T00:21:47.157Z","1.17.0-1636659526000":"2021-11-11T19:41:57.947Z","1.17.0-1636674774000":"2021-11-12T00:22:13.593Z","1.18.0-next-alpha-nov-12-2021":"2021-11-12T00:23:41.450Z","1.17.0-1636678343000":"2021-11-12T01:05:46.884Z","1.17.0-1636680007000":"2021-11-12T01:29:24.622Z","1.17.0-1636741922000":"2021-11-12T18:35:36.604Z","1.18.0-next-alpha-nov-13-2021":"2021-11-13T00:21:19.690Z","1.18.0-next-alpha-nov-14-2021":"2021-11-14T00:21:29.126Z","1.18.0-next-alpha-nov-15-2021":"2021-11-15T00:21:47.322Z","1.17.0-1637005716000":"2021-11-15T19:52:06.228Z","1.18.0-next-alpha-nov-16-2021":"2021-11-16T00:22:51.113Z","1.17.0-1637023000000":"2021-11-16T00:40:18.042Z","1.17.0-1637048540000":"2021-11-16T07:46:21.520Z","1.17.0-1637101966000":"2021-11-16T22:52:40.116Z","1.18.0-alpha-1637105894000":"2021-11-16T23:44:02.230Z","1.17.0-1637106358000":"2021-11-16T23:48:40.683Z","1.17.0-beta-1637106527000":"2021-11-16T23:53:18.735Z","1.18.0-alpha-nov-17-2021":"2021-11-17T00:21:32.261Z","1.17.0-beta-1637167411000":"2021-11-17T16:46:49.948Z","1.17.0-beta-1637174719000":"2021-11-17T18:48:23.399Z","1.17.0-rc1":"2021-11-17T19:33:06.531Z","1.18.0-alpha-1637178126000":"2021-11-17T19:51:00.254Z","1.17.0-beta-1637185435000":"2021-11-17T21:47:21.295Z","1.18.0-alpha-nov-18-2021":"2021-11-18T00:22:15.407Z","1.18.0-alpha-1637257604000":"2021-11-18T22:03:41.355Z","1.18.0-alpha-nov-19-2021":"2021-11-19T00:21:53.849Z","1.17.0-beta-1637287804000":"2021-11-19T02:14:38.940Z","1.18.0-alpha-nov-20-2021":"2021-11-20T00:21:58.453Z","1.17.0-beta-1637368446000":"2021-11-20T00:38:05.913Z","1.18.0-alpha-1637368835000":"2021-11-20T00:44:46.693Z","1.18.0-alpha-nov-21-2021":"2021-11-21T00:21:35.465Z","1.18.0-alpha-nov-22-2021":"2021-11-22T00:21:29.143Z","1.18.0-alpha-1637602750000":"2021-11-22T17:44:09.860Z","1.18.0-alpha-1637606482000":"2021-11-22T18:54:11.840Z","1.17.0-beta-1637607601000":"2021-11-22T19:03:45.677Z","1.18.0-alpha-nov-23-2021":"2021-11-23T00:22:17.601Z","1.17.0-beta-1637696328000":"2021-11-23T19:42:39.540Z","1.17.0-beta-1637696371000":"2021-11-23T19:43:28.904Z","1.17.0-beta-1637697877000":"2021-11-23T20:07:28.713Z","1.18.0-alpha-nov-24-2021":"2021-11-24T00:22:21.374Z","1.18.0-alpha-nov-25-2021":"2021-11-25T00:21:19.882Z","1.18.0-alpha-nov-26-2021":"2021-11-26T00:21:04.893Z","1.18.0-alpha-nov-27-2021":"2021-11-27T00:21:31.655Z","1.18.0-alpha-nov-28-2021":"2021-11-28T00:22:01.316Z","1.18.0-alpha-nov-29-2021":"2021-11-29T00:22:00.674Z","1.17.0-beta-1638222602000":"2021-11-29T21:53:30.722Z","1.17.0-beta-1638285466000":"2021-11-30T15:21:21.602Z","1.17.0":"2021-11-30T15:22:55.736Z","1.17.0-beta-1638356200000":"2021-12-01T10:59:46.371Z","1.18.0-alpha-1638379596000":"2021-12-01T17:45:18.276Z","1.17.0-beta-1638387664000":"2021-12-01T19:44:44.200Z","1.17.0-beta-1638396143000":"2021-12-01T22:05:45.160Z","1.17.0-beta-1638401430000":"2021-12-01T23:33:16.477Z","1.18.0-alpha-dec-2-2021":"2021-12-02T00:21:20.067Z","1.17.1-beta-1638408300000":"2021-12-02T01:27:41.206Z","1.17.1-beta-1638411397000":"2021-12-02T02:19:48.961Z","1.17.1":"2021-12-02T05:11:30.441Z","1.17.1-beta-1638480891000":"2021-12-02T21:38:58.266Z","1.17.1-beta-1638481933000":"2021-12-02T21:55:08.186Z","1.18.0-alpha-dec-3-2021":"2021-12-03T00:22:41.738Z","1.17.1-beta-1638555823000":"2021-12-03T18:27:35.220Z","1.18.0-alpha-dec-4-2021":"2021-12-04T00:21:26.144Z","1.18.0-alpha-dec-5-2021":"2021-12-05T00:22:03.160Z","1.18.0-alpha-dec-6-2021":"2021-12-06T00:21:50.714Z","1.18.0-alpha-dec-7-2021":"2021-12-07T00:22:11.711Z","1.18.0-alpha-1638917105000":"2021-12-07T22:47:53.783Z","1.18.0-alpha-1638919727000":"2021-12-07T23:32:00.585Z","1.18.0-alpha-1638922650000":"2021-12-08T00:21:02.964Z","1.18.0-alpha-dec-8-2021":"2021-12-08T00:21:57.070Z","1.18.0-alpha-dec-9-2021":"2021-12-09T00:21:50.211Z","1.17.1-beta-1639090670000":"2021-12-09T23:01:59.276Z","1.18.0-alpha-dec-10-2021":"2021-12-10T00:22:04.436Z","1.18.0-alpha-dec-11-2021":"2021-12-11T00:21:57.607Z","1.18.0-alpha-dec-12-2021":"2021-12-12T00:22:05.089Z","1.18.0-alpha-dec-13-2021":"2021-12-13T00:21:48.258Z","1.18.0-alpha-1639421763000":"2021-12-13T19:48:02.502Z","1.18.0-alpha-dec-14-2021":"2021-12-14T00:21:24.378Z","1.18.0-alpha-dec-15-2021":"2021-12-15T00:21:38.905Z","1.18.0-alpha-dec-16-2021":"2021-12-16T00:21:17.610Z","1.18.0-alpha-dec-17-2021":"2021-12-17T00:25:42.396Z","1.18.0-alpha-1639767047000":"2021-12-17T18:56:26.239Z","1.18.0-alpha-1639770748000":"2021-12-17T20:06:10.625Z","1.18.0-alpha-dec-18-2021":"2021-12-18T00:21:30.191Z","1.18.0-alpha-dec-19-2021":"2021-12-19T00:21:42.100Z","1.18.0-alpha-dec-20-2021":"2021-12-20T00:22:06.870Z","1.18.0-alpha-dec-21-2021":"2021-12-21T00:21:52.027Z","1.18.0-alpha-dec-22-2021":"2021-12-22T00:21:44.372Z","1.18.0-alpha-dec-23-2021":"2021-12-23T00:21:32.799Z","1.18.0-alpha-dec-24-2021":"2021-12-24T00:21:44.962Z","1.18.0-alpha-dec-25-2021":"2021-12-25T00:21:55.640Z","1.18.0-alpha-dec-26-2021":"2021-12-26T00:21:57.207Z","1.18.0-alpha-dec-27-2021":"2021-12-27T00:28:18.065Z","1.18.0-alpha-dec-28-2021":"2021-12-28T00:21:28.961Z","1.18.0-alpha-dec-29-2021":"2021-12-29T00:21:55.682Z","1.18.0-alpha-dec-30-2021":"2021-12-30T00:21:39.376Z","1.18.0-alpha-dec-31-2021":"2021-12-31T00:21:59.961Z","1.18.0-alpha-jan-1-2022":"2022-01-01T00:21:33.306Z","1.18.0-alpha-jan-2-2022":"2022-01-02T00:21:53.020Z","1.18.0-alpha-jan-3-2022":"2022-01-03T00:21:27.418Z","1.18.0-alpha-jan-4-2022":"2022-01-04T00:23:06.615Z","1.18.0-alpha-jan-5-2022":"2022-01-05T00:21:26.192Z","1.18.0-alpha-jan-6-2022":"2022-01-06T00:22:02.277Z","1.18.0-alpha-1641508844000":"2022-01-06T22:43:51.662Z","1.18.0-alpha-jan-7-2022":"2022-01-07T00:21:57.070Z","1.18.0-alpha-1641584275000":"2022-01-07T19:46:27.294Z","1.17.1-beta-1641589459000":"2022-01-07T21:07:08.101Z","1.18.0-alpha-jan-8-2022":"2022-01-08T00:21:34.436Z","1.18.0-alpha-jan-9-2022":"2022-01-09T00:21:52.972Z","1.18.0-alpha-jan-10-2022":"2022-01-10T00:22:26.305Z","1.17.1-beta-1641774506000":"2022-01-10T00:31:50.991Z","1.17.1-beta-1641775620000":"2022-01-10T00:50:22.965Z","1.17.2-beta-1641778150000":"2022-01-10T01:32:45.061Z","1.17.2-beta-1641778794000":"2022-01-10T01:43:18.369Z","1.17.2":"2022-01-10T02:01:32.254Z","1.17.2-beta-1641849733000":"2022-01-10T21:25:04.550Z","1.17.2-beta-1641852700000":"2022-01-10T22:14:39.470Z","1.18.0-alpha-jan-11-2022":"2022-01-11T00:22:04.009Z","1.18.0-alpha-jan-12-2022":"2022-01-12T00:22:35.175Z","1.18.0-beta-1642016269000":"2022-01-12T19:55:17.396Z","1.18.0-beta-1642018269000":"2022-01-12T20:13:48.183Z","1.19.0-alpha-jan-13-2022":"2022-01-13T00:22:00.306Z","1.18.0-beta-1642110503000":"2022-01-13T21:51:41.461Z","1.18.0-beta-1642115083000":"2022-01-13T23:07:43.184Z","1.19.0-alpha-jan-14-2022":"2022-01-14T00:21:17.507Z","1.18.0-beta-1642158149000":"2022-01-14T11:05:07.572Z","1.18.0-beta-1642161715000":"2022-01-14T12:04:45.546Z","1.18.0-rc1":"2022-01-14T13:55:45.855Z","1.18.0-beta-1642169289000":"2022-01-14T14:10:48.144Z","1.19.0-alpha-jan-15-2022":"2022-01-15T00:21:11.817Z","1.18.0-beta-1642211440000":"2022-01-15T01:54:05.425Z","1.18.0-beta-1642212803000":"2022-01-15T02:16:20.151Z","1.19.0-alpha-jan-16-2022":"2022-01-16T00:21:55.478Z","1.19.0-alpha-jan-17-2022":"2022-01-17T00:21:36.069Z","1.19.0-alpha-jan-18-2022":"2022-01-18T00:22:07.137Z","1.19.0-alpha-1642473215000":"2022-01-18T02:36:48.089Z","1.18.0-beta-1642494929000":"2022-01-18T08:38:08.429Z","1.18.0-beta-1642508722000":"2022-01-18T12:28:15.358Z","1.19.0-alpha-1642541472000":"2022-01-18T23:53:58.680Z","1.19.0-alpha-jan-19-2022":"2022-01-19T00:21:31.254Z","1.18.0-beta-1642618102000":"2022-01-19T18:51:35.066Z","1.18.0-beta-1642620593000":"2022-01-19T19:32:51.630Z","1.18.0-beta-1642620635000":"2022-01-19T19:33:36.749Z","1.18.0-beta-1642620709000":"2022-01-19T19:39:26.326Z","1.19.0-alpha-jan-20-2022":"2022-01-20T00:21:46.001Z","1.18.0":"2022-01-20T12:02:59.796Z","1.18.0-beta-1642681422000":"2022-01-20T12:26:46.045Z","1.18.0-beta-1642714831000":"2022-01-20T21:43:26.286Z","1.19.0-alpha-jan-21-2022":"2022-01-21T00:21:56.095Z","1.18.0-beta-1642731165000":"2022-01-21T02:16:31.358Z","1.19.0-alpha-jan-22-2022":"2022-01-22T00:21:01.727Z","1.19.0-alpha-jan-23-2022":"2022-01-23T00:21:25.672Z","1.19.0-alpha-1642899766000":"2022-01-23T03:44:59.422Z","1.19.0-alpha-jan-24-2022":"2022-01-24T00:21:59.243Z","1.18.0-beta-1642992245000":"2022-01-24T02:46:52.408Z","1.18.0-beta-1643042424000":"2022-01-24T16:43:57.275Z","1.18.0-beta-1643055229000":"2022-01-24T20:17:02.221Z","1.19.0-alpha-jan-25-2022":"2022-01-25T00:22:25.636Z","1.19.0-alpha-1643133229000":"2022-01-25T18:03:54.773Z","1.19.0-alpha-jan-26-2022":"2022-01-26T00:21:25.981Z","1.19.0-alpha-jan-27-2022":"2022-01-27T00:21:38.308Z","1.18.0-beta-1643313779000":"2022-01-27T20:06:40.555Z","1.18.1-beta-1643321308000":"2022-01-27T22:11:11.695Z","1.18.1":"2022-01-27T23:01:03.873Z","1.19.0-alpha-1643327018000":"2022-01-27T23:47:29.399Z","1.19.0-alpha-jan-28-2022":"2022-01-28T00:22:01.827Z","1.19.0-alpha-jan-29-2022":"2022-01-29T00:20:52.715Z","1.19.0-alpha-jan-30-2022":"2022-01-30T00:21:22.835Z","1.19.0-alpha-jan-31-2022":"2022-01-31T00:21:36.320Z","1.19.0-alpha-feb-1-2022":"2022-02-01T00:21:59.386Z","1.18.1-beta-1643727981000":"2022-02-01T15:10:09.464Z","1.18.1-beta-1643748433000":"2022-02-01T20:54:32.731Z","1.19.0-alpha-1643749494000":"2022-02-01T21:22:47.414Z","1.18.1-beta-1643751305000":"2022-02-01T21:38:02.693Z","1.19.0-alpha-feb-2-2022":"2022-02-02T00:21:06.342Z","1.19.0-alpha-feb-3-2022":"2022-02-03T00:21:50.093Z","1.19.0-alpha-1643866005000":"2022-02-03T05:30:00.065Z","1.19.0-alpha-feb-4-2022":"2022-02-04T00:22:30.556Z","1.19.0-alpha-feb-5-2022":"2022-02-05T00:21:33.049Z","1.19.0-alpha-feb-6-2022":"2022-02-06T00:23:11.415Z","1.19.0-alpha-feb-7-2022":"2022-02-07T00:22:10.291Z","1.19.0-alpha-feb-8-2022":"2022-02-08T00:21:09.406Z","1.19.0-alpha-1644345300000":"2022-02-08T19:21:37.313Z","1.19.0-beta-1644364656000":"2022-02-09T00:04:32.274Z","1.20.0-alpha-feb-9-2022":"2022-02-09T00:25:30.939Z","1.19.0-beta-1644430980000":"2022-02-09T18:26:02.387Z","1.19.0-beta-1644435070000":"2022-02-09T19:33:53.785Z","1.19.0-beta-1644435641000":"2022-02-09T19:43:48.955Z","1.19.0-beta-1644435650000":"2022-02-09T19:44:28.446Z","1.19.0-beta-1644449736000":"2022-02-09T23:38:26.967Z","1.19.0-beta-1644449910000":"2022-02-09T23:46:20.840Z","1.20.0-alpha-feb-10-2022":"2022-02-10T00:21:08.441Z","1.19.0-beta-1644512156000":"2022-02-10T16:58:42.577Z","1.19.0-beta-1644526026000":"2022-02-10T20:49:45.410Z","1.20.0-alpha-feb-11-2022":"2022-02-11T00:21:16.894Z","1.19.0-beta-1644557062000":"2022-02-11T05:28:09.539Z","1.19.0-beta-1644589657000":"2022-02-11T14:30:33.407Z","1.19.0-beta-1644595974000":"2022-02-11T16:15:35.558Z","1.19.0-beta-1644598693000":"2022-02-11T17:00:41.436Z","1.19.0-beta-1644599140000":"2022-02-11T17:08:35.609Z","1.19.0-beta-1644599706000":"2022-02-11T17:18:16.755Z","1.19.0-beta-1644601190000":"2022-02-11T17:42:16.958Z","1.19.0-beta-1644601374000":"2022-02-11T17:45:14.460Z","1.19.0-beta-1644607162000":"2022-02-11T19:21:50.006Z","1.19.0-beta-1644607547000":"2022-02-11T19:28:26.054Z","1.19.0-beta-1644607744000":"2022-02-11T19:38:23.692Z","1.19.0-beta-1644614300000":"2022-02-11T21:20:47.755Z","1.19.0":"2022-02-11T22:29:14.859Z","1.20.0-alpha-feb-12-2022":"2022-02-12T00:21:24.573Z","1.20.0-alpha-feb-13-2022":"2022-02-13T00:21:47.053Z","1.20.0-alpha-feb-14-2022":"2022-02-14T00:21:30.224Z","1.20.0-alpha-feb-15-2022":"2022-02-15T00:21:14.164Z","1.19.0-beta-1644953055000":"2022-02-15T19:27:20.224Z","1.19.0-beta-1644958173000":"2022-02-15T20:51:43.138Z","1.19.0-beta-1644960314000":"2022-02-15T21:27:37.994Z","1.19.1-beta-1644960332000":"2022-02-15T21:43:54.615Z","1.20.0-alpha-feb-16-2022":"2022-02-16T00:22:15.051Z","1.19.1":"2022-02-16T01:01:00.247Z","1.19.1-beta-1645034173000":"2022-02-16T17:59:23.808Z","1.20.0-alpha-feb-17-2022":"2022-02-17T00:21:01.125Z","1.20.0-alpha-1645141443000":"2022-02-17T23:47:48.311Z","1.20.0-alpha-feb-18-2022":"2022-02-18T00:21:24.974Z","1.20.0-alpha-feb-19-2022":"2022-02-19T00:23:06.943Z","1.20.0-alpha-feb-20-2022":"2022-02-20T00:24:40.651Z","1.19.1-beta-1645326041000":"2022-02-20T03:03:11.713Z","1.20.0-alpha-feb-21-2022":"2022-02-21T00:21:52.110Z","1.20.0-alpha-feb-22-2022":"2022-02-22T00:21:13.100Z","1.19.1-beta-1645565996000":"2022-02-22T21:43:32.827Z","1.20.0-alpha-feb-23-2022":"2022-02-23T00:24:08.337Z","1.19.1-beta-1645650935000":"2022-02-23T21:19:09.208Z","1.19.1-beta-1645654227000":"2022-02-23T22:13:29.504Z","1.19.1-beta-1645656827000":"2022-02-23T22:56:44.184Z","1.19.2-beta-1645657231000":"2022-02-23T23:02:59.322Z","1.20.0-alpha-feb-24-2022":"2022-02-24T00:21:23.430Z","1.20.0-alpha-1645682252000":"2022-02-24T08:08:47.605Z","1.19.2":"2022-02-24T16:56:45.876Z","1.20.0-alpha-feb-25-2022":"2022-02-25T00:21:44.140Z","1.20.0-alpha-feb-26-2022":"2022-02-26T00:21:15.150Z","1.20.0-alpha-feb-27-2022":"2022-02-27T00:23:25.440Z","1.20.0-alpha-feb-28-2022":"2022-02-28T00:24:22.329Z","1.20.0-alpha-mar-1-2022":"2022-03-01T00:24:35.061Z","1.20.0-alpha-mar-2-2022":"2022-03-02T00:27:05.654Z","1.20.0-alpha-1646242424000":"2022-03-02T20:09:07.320Z","1.20.0-alpha-mar-3-2022":"2022-03-03T00:24:14.770Z","1.20.0-alpha-1646324243000":"2022-03-03T16:20:21.239Z","1.20.0-alpha-mar-4-2022":"2022-03-04T00:25:56.371Z","1.20.0-alpha-mar-5-2022":"2022-03-05T00:22:40.483Z","1.20.0-alpha-mar-6-2022":"2022-03-06T00:22:02.492Z","1.20.0-alpha-mar-7-2022":"2022-03-07T00:22:40.067Z","1.20.0-beta-1646678256000":"2022-03-07T19:24:17.733Z","1.20.0-alpha-mar-8-2022":"2022-03-08T00:23:19.442Z","1.20.0-beta-1646771980000":"2022-03-08T22:07:28.984Z","1.21.0-alpha-1646784151000":"2022-03-09T00:27:21.782Z","1.20.0-beta-1646786516000":"2022-03-09T00:44:50.625Z","1.21.0-alpha-mar-9-2022":"2022-03-09T00:52:23.033Z","1.20.0-beta-1646791472000":"2022-03-09T02:39:34.255Z","1.20.0-beta-1646855573000":"2022-03-09T19:55:04.310Z","1.21.0-alpha-mar-10-2022":"2022-03-10T00:22:49.488Z","1.20.0-beta-1646938304000":"2022-03-10T18:57:38.728Z","1.21.0-alpha-mar-11-2022":"2022-03-11T05:40:49.335Z","1.21.0-alpha-mar-12-2022":"2022-03-12T00:21:28.225Z","1.20.0-beta-1647046302000":"2022-03-12T00:54:23.401Z","1.20.0-beta-1647046964000":"2022-03-12T01:05:38.399Z","1.20.0-beta-1647057403000":"2022-03-12T03:58:59.657Z","1.21.0-alpha-mar-13-2022":"2022-03-13T00:22:12.010Z","1.21.0-alpha-mar-14-2022":"2022-03-14T00:27:38.171Z","1.20.0-beta-1647281535000":"2022-03-14T18:14:45.869Z","1.20.0-beta-1647281549000":"2022-03-14T18:15:02.576Z","1.20.0-beta-1647289765000":"2022-03-14T20:31:46.175Z","1.20.0":"2022-03-14T23:01:36.167Z","1.21.0-alpha-mar-15-2022":"2022-03-15T00:30:00.225Z","1.20.0-beta-1647369548000":"2022-03-15T18:41:35.792Z","1.21.0-alpha-mar-16-2022":"2022-03-16T00:22:37.582Z","1.20.0-beta-1647390690000":"2022-03-16T00:36:46.659Z","1.20.0-beta-1647393989000":"2022-03-16T01:29:39.215Z","1.20.0-beta-1647474961000":"2022-03-16T23:58:52.314Z","1.21.0-alpha-mar-17-2022":"2022-03-17T00:23:27.297Z","1.20.0-beta-1647549466000":"2022-03-17T20:40:31.641Z","1.21.0-alpha-mar-18-2022":"2022-03-18T00:23:08.460Z","1.20.0-beta-1647621387000":"2022-03-18T16:39:15.982Z","1.21.0-alpha-mar-19-2022":"2022-03-19T00:22:37.123Z","1.20.0-beta-1647728478000":"2022-03-19T22:25:02.924Z","1.21.0-alpha-mar-20-2022":"2022-03-20T00:23:44.682Z","1.21.0-alpha-mar-21-2022":"2022-03-21T00:24:03.540Z","1.20.0-beta-1647885836000":"2022-03-21T18:06:28.901Z","1.20.0-beta-1647899774000":"2022-03-21T21:59:13.514Z","1.21.0-alpha-mar-22-2022":"2022-03-22T00:28:18.320Z","1.20.0-beta-1647910480000":"2022-03-22T00:56:58.356Z","1.20.1-beta-1647910498000":"2022-03-22T00:57:32.252Z","1.20.1-beta-1647974804000":"2022-03-22T18:49:50.166Z","1.21.0-alpha-mar-23-2022":"2022-03-23T00:28:05.894Z","1.20.1-beta-1648061377000":"2022-03-23T18:52:13.713Z","1.20.1":"2022-03-23T20:42:02.285Z","1.21.0-alpha-mar-24-2022":"2022-03-24T00:24:05.987Z","1.21.0-alpha-mar-25-2022":"2022-03-25T00:23:26.482Z","1.21.0-alpha-mar-26-2022":"2022-03-26T00:22:18.346Z","1.21.0-alpha-mar-27-2022":"2022-03-27T00:27:12.387Z","1.21.0-alpha-mar-28-2022":"2022-03-28T00:24:18.853Z","1.21.0-alpha-mar-29-2022":"2022-03-29T00:27:51.184Z","1.20.1-beta-1648587090000":"2022-03-29T20:54:38.174Z","1.20.1-beta-1648590385000":"2022-03-29T21:49:23.232Z","1.21.0-alpha-mar-30-2022":"2022-03-30T00:23:05.031Z","1.21.0-alpha-mar-31-2022":"2022-03-31T00:23:14.566Z","1.20.1-beta-1648766739000":"2022-03-31T22:48:18.341Z","1.20.2-beta-1648766766000":"2022-03-31T22:49:03.087Z","1.21.0-alpha-apr-1-2022":"2022-04-01T00:25:36.798Z","1.20.2":"2022-04-01T20:27:53.882Z","1.21.0-alpha-apr-2-2022":"2022-04-02T00:23:30.241Z","1.21.0-alpha-apr-3-2022":"2022-04-03T00:24:37.352Z","1.21.0-alpha-apr-4-2022":"2022-04-04T00:23:30.593Z","1.21.0-alpha-apr-5-2022":"2022-04-05T00:24:23.111Z","1.21.0-alpha-1649130964000":"2022-04-05T04:00:31.667Z","1.21.0-alpha-1649134399000":"2022-04-05T04:55:19.887Z","1.21.0-alpha-apr-6-2022":"2022-04-06T00:23:59.043Z","1.21.0-alpha-apr-7-2022":"2022-04-07T00:26:55.898Z","1.21.0-alpha-1649352945000":"2022-04-07T19:06:13.411Z","1.21.0-alpha-1649377372000":"2022-04-08T00:34:49.088Z","1.21.0-alpha-apr-8-2022":"2022-04-08T00:35:34.705Z","1.21.0-beta-1649377372000":"2022-04-08T01:18:53.790Z","1.21.0-beta-1649392175000":"2022-04-08T04:31:43.378Z","1.21.0-beta-1649396150000":"2022-04-08T05:37:56.185Z","1.21.0-beta-1649435523000":"2022-04-08T16:34:02.501Z","1.21.0-beta-1649443880000":"2022-04-08T18:55:33.978Z","1.22.0-alpha-1649452538000":"2022-04-08T21:17:43.811Z","1.21.0-beta-1649448530000":"2022-04-08T21:34:27.237Z","1.22.0-alpha-1649455063000":"2022-04-08T22:00:06.270Z","1.22.0-alpha-apr-9-2022":"2022-04-09T00:24:12.686Z","1.22.0-alpha-apr-10-2022":"2022-04-10T00:23:52.769Z","1.22.0-alpha-apr-11-2022":"2022-04-11T00:23:57.905Z","1.21.0-beta-1649696279000":"2022-04-11T17:00:21.130Z","1.21.0-beta-1649696337000":"2022-04-11T17:00:49.722Z","1.21.0-beta-1649696820000":"2022-04-11T17:17:44.000Z","1.21.0-beta-1649712128000":"2022-04-11T21:24:25.284Z","1.21.0-beta-1649721721000":"2022-04-12T00:04:01.728Z","1.21.0-beta-1649721872000":"2022-04-12T00:06:19.572Z","1.22.0-alpha-apr-12-2022":"2022-04-12T00:23:25.135Z","1.21.0":"2022-04-12T14:29:12.767Z","1.22.0-alpha-1649795948000":"2022-04-12T20:42:19.117Z","1.22.0-alpha-apr-13-2022":"2022-04-13T00:25:32.605Z","1.22.0-alpha-1649827248000":"2022-04-13T05:24:24.960Z","1.22.0-alpha-1649876160000":"2022-04-13T18:58:17.838Z","1.22.0-alpha-1649877215000":"2022-04-13T19:16:40.905Z","1.22.0-alpha-apr-14-2022":"2022-04-14T00:28:12.135Z","1.22.0-alpha-apr-15-2022":"2022-04-15T00:22:19.170Z","1.22.0-alpha-apr-16-2022":"2022-04-16T00:24:33.940Z","1.22.0-alpha-apr-17-2022":"2022-04-17T00:25:35.923Z","1.22.0-alpha-apr-18-2022":"2022-04-18T00:29:59.899Z","1.21.0-beta-1650290738000":"2022-04-18T14:07:42.378Z","1.21.0-beta-1650304062000":"2022-04-18T17:49:33.895Z","1.21.1-beta-1650314981000":"2022-04-18T20:51:42.324Z","1.21.1":"2022-04-18T20:54:04.935Z","1.21.1-beta-1650321640000":"2022-04-18T22:43:04.927Z","1.22.0-alpha-apr-19-2022":"2022-04-19T00:22:38.398Z","1.22.0-alpha-1650379536000":"2022-04-19T15:13:19.924Z","1.22.0-alpha-1650382291000":"2022-04-19T15:46:13.689Z","1.22.0-alpha-apr-20-2022":"2022-04-20T00:25:41.782Z","1.22.0-alpha-apr-21-2022":"2022-04-21T00:27:52.758Z","1.21.1-beta-1650580895000":"2022-04-21T22:43:59.573Z","1.22.0-alpha-apr-22-2022":"2022-04-22T00:28:28.133Z","1.22.0-alpha-apr-23-2022":"2022-04-23T00:24:09.308Z","1.22.0-alpha-apr-24-2022":"2022-04-24T00:24:50.745Z","1.22.0-alpha-apr-25-2022":"2022-04-25T00:23:19.359Z","1.22.0-alpha-apr-26-2022":"2022-04-26T00:27:18.962Z","1.22.0-alpha-apr-27-2022":"2022-04-27T00:30:43.141Z","1.22.0-alpha-apr-28-2022":"2022-04-28T00:34:40.916Z","1.22.0-alpha-apr-29-2022":"2022-04-29T00:27:34.978Z","1.22.0-alpha-apr-30-2022":"2022-04-30T00:30:10.740Z","1.22.0-alpha-may-1-2022":"2022-05-01T00:33:01.172Z","1.22.0-alpha-may-2-2022":"2022-05-02T00:26:37.945Z","1.22.0-alpha-may-3-2022":"2022-05-03T00:28:04.372Z","1.22.0-alpha-1651594460000":"2022-05-03T18:13:49.129Z","1.22.0-alpha-may-4-2022":"2022-05-04T00:26:42.185Z","1.22.0-alpha-may-5-2022":"2022-05-05T00:26:27.655Z","1.22.0-alpha-1651794985000":"2022-05-06T00:21:47.328Z","1.22.0-alpha-may-6-2022":"2022-05-06T00:26:29.388Z","1.22.0-alpha-1651874018000":"2022-05-07T00:14:33.439Z","1.22.0-alpha-may-7-2022":"2022-05-07T00:24:47.875Z","1.22.0-alpha-may-8-2022":"2022-05-08T00:25:47.616Z","1.22.0-alpha-1652004421000":"2022-05-08T17:50:35.211Z","1.22.0-alpha-may-9-2022":"2022-05-09T00:25:51.515Z","1.22.0-alpha-1652115973000":"2022-05-09T17:33:22.446Z","1.22.0-alpha-may-10-2022":"2022-05-10T00:28:35.853Z","1.22.0-alpha-1652194905000":"2022-05-10T15:11:16.990Z","1.22.0-alpha-may-11-2022":"2022-05-11T00:27:34.294Z","1.22.0-alpha-may-12-2022":"2022-05-12T00:26:49.847Z","1.22.0-beta-1652378875000":"2022-05-12T18:31:19.188Z","1.22.0-beta-1652379237000":"2022-05-12T18:49:32.992Z","1.22.0":"2022-05-12T23:24:21.583Z","1.23.0-alpha-may-13-2022":"2022-05-13T00:31:49.783Z","1.23.0-alpha-may-14-2022":"2022-05-14T00:32:21.764Z","1.23.0-alpha-may-15-2022":"2022-05-15T00:35:14.697Z","1.23.0-alpha-may-16-2022":"2022-05-16T00:28:55.295Z","1.22.0-beta-1652715158000":"2022-05-16T15:48:19.735Z","1.23.0-alpha-may-17-2022":"2022-05-17T00:26:38.036Z","1.22.0-beta-1652762540000":"2022-05-17T04:44:54.181Z","1.22.1-beta-1652781626000":"2022-05-17T10:03:24.370Z","1.22.1":"2022-05-17T10:37:26.841Z","1.23.0-alpha-may-18-2022":"2022-05-18T00:24:51.252Z","1.22.1-beta-1652845163000":"2022-05-18T03:42:48.547Z","1.23.0-alpha-1652893025000":"2022-05-18T17:04:54.123Z","1.23.0-alpha-may-19-2022":"2022-05-19T00:30:31.445Z","1.22.1-beta-1652965837000":"2022-05-19T13:12:58.532Z","1.22.1-beta-1652969072000":"2022-05-19T14:07:08.517Z","1.22.1-beta-1652998779000":"2022-05-19T22:21:53.018Z","1.23.0-alpha-may-20-2022":"2022-05-20T00:25:07.325Z","1.23.0-alpha-may-21-2022":"2022-05-21T00:26:05.331Z","1.22.2-beta-1653099966000":"2022-05-21T02:28:34.791Z","1.22.2":"2022-05-21T02:32:02.488Z","1.23.0-alpha-may-22-2022":"2022-05-22T00:26:52.770Z","1.23.0-alpha-may-23-2022":"2022-05-23T00:29:30.861Z","1.22.2-beta-1653342002000":"2022-05-23T21:43:20.821Z","1.23.0-alpha-may-24-2022":"2022-05-24T00:30:30.955Z","1.22.2-beta-1653417363000":"2022-05-24T18:38:32.704Z","1.23.0-alpha-may-25-2022":"2022-05-25T00:29:51.649Z","1.23.0-alpha-1653446608000":"2022-05-25T03:27:21.780Z","1.23.0-alpha-may-26-2022":"2022-05-26T00:27:57.787Z","1.22.2-beta-1653605538000":"2022-05-26T22:55:26.589Z","1.23.0-alpha-may-27-2022":"2022-05-27T01:01:52.153Z","1.23.0-alpha-may-28-2022":"2022-05-28T00:29:01.137Z","1.23.0-alpha-may-29-2022":"2022-05-29T00:27:12.785Z","1.23.0-alpha-may-30-2022":"2022-05-30T00:32:48.914Z","1.23.0-alpha-may-31-2022":"2022-05-31T00:27:40.422Z","1.23.0-alpha-jun-1-2022":"2022-06-01T00:30:01.833Z","1.23.0-alpha-jun-2-2022":"2022-06-02T00:33:18.146Z","1.23.0-alpha-jun-3-2022":"2022-06-03T00:22:56.960Z","1.23.0-alpha-jun-4-2022":"2022-06-04T00:28:26.682Z","1.23.0-alpha-jun-5-2022":"2022-06-05T00:32:08.287Z","1.23.0-alpha-jun-6-2022":"2022-06-06T00:26:02.749Z","1.23.0-alpha-jun-7-2022":"2022-06-07T00:27:34.021Z","1.23.0-alpha-jun-8-2022":"2022-06-08T00:26:10.464Z","1.23.0-alpha-jun-9-2022":"2022-06-09T00:28:59.003Z","1.23.0-alpha-1654784525000":"2022-06-09T14:50:14.946Z","1.23.0-alpha-jun-10-2022":"2022-06-10T00:30:56.179Z","1.23.0-alpha-1654905181000":"2022-06-10T23:55:15.887Z","1.23.0-alpha-jun-11-2022":"2022-06-11T00:28:33.658Z","1.23.0-alpha-jun-12-2022":"2022-06-12T00:28:48.373Z","1.23.0-alpha-jun-13-2022":"2022-06-13T00:31:17.336Z","1.23.0-alpha-jun-14-2022":"2022-06-14T00:58:30.880Z","1.23.0-beta-1655171903000":"2022-06-14T08:17:08.565Z","1.23.0-alpha-1655198429000":"2022-06-14T09:25:47.261Z","1.23.0-beta-1655198429000":"2022-06-14T09:48:28.821Z","1.23.0-alpha-1655244442000":"2022-06-15T00:14:10.164Z","1.23.0-alpha-jun-15-2022":"2022-06-15T00:30:41.829Z","1.23.0-alpha-jun-16-2022":"2022-06-16T00:28:54.187Z","1.23.0-beta-1655397914000":"2022-06-16T16:48:13.932Z","1.23.0-alpha-jun-17-2022":"2022-06-17T00:24:01.011Z","1.23.0-alpha-jun-18-2022":"2022-06-18T00:29:14.735Z","1.23.0-alpha-jun-19-2022":"2022-06-19T00:28:00.997Z","1.23.0-alpha-jun-20-2022":"2022-06-20T00:27:39.872Z","1.23.0-alpha-jun-21-2022":"2022-06-21T00:27:55.338Z","1.23.0-alpha-1655778679000":"2022-06-21T02:42:13.542Z","1.23.0-beta-1655830418000":"2022-06-21T17:20:48.148Z","1.24.0-alpha-jun-22-2022":"2022-06-22T00:31:25.259Z","1.24.0-alpha-1655882451000":"2022-06-22T09:56:15.285Z","1.23.0-beta-1655918129000":"2022-06-22T17:19:24.704Z","1.23.0-beta-1655922172000":"2022-06-22T18:25:15.250Z","1.23.0-beta-1655926399000":"2022-06-22T19:36:09.153Z","1.23.0-beta-1655933914000":"2022-06-22T21:40:54.148Z","1.23.0-beta-1655935081000":"2022-06-22T22:01:38.511Z","1.24.0-alpha-jun-23-2022":"2022-06-23T00:23:35.452Z","1.24.0-alpha-1656026114000":"2022-06-23T23:18:08.593Z","1.23.0-beta-1656026282000":"2022-06-23T23:20:35.293Z","1.23.0-beta-1656026477000":"2022-06-23T23:23:27.399Z","1.23.0-beta-1656026605000":"2022-06-23T23:29:09.648Z","1.24.0-alpha-jun-24-2022":"2022-06-24T00:27:28.837Z","1.23.0-beta-1656035897000":"2022-06-24T02:00:20.210Z","1.23.0-beta-1656093125000":"2022-06-24T17:56:11.266Z","1.24.0-alpha-jun-25-2022":"2022-06-25T00:28:03.959Z","1.24.0-alpha-jun-26-2022":"2022-06-26T00:33:12.469Z","1.24.0-alpha-jun-27-2022":"2022-06-27T00:30:52.249Z","1.23.0-beta-1656330747000":"2022-06-27T11:54:39.201Z","1.23.0-beta-1656351500000":"2022-06-27T17:40:42.280Z","1.23.0":"2022-06-27T20:45:36.577Z","1.23.0-beta-1656369277000":"2022-06-27T22:36:41.610Z","1.24.0-alpha-jun-28-2022":"2022-06-28T00:29:56.960Z","1.23.0-beta-1656387337000":"2022-06-28T03:39:04.348Z","1.23.0-beta-1656449394000":"2022-06-28T20:52:40.062Z","1.23.0-beta-1656457055000":"2022-06-28T23:02:25.131Z","1.24.0-alpha-jun-29-2022":"2022-06-29T00:33:52.575Z","1.23.0-beta-1656506688000":"2022-06-29T12:47:04.986Z","1.23.0-beta-1656530993000":"2022-06-29T19:32:38.986Z","1.24.0-alpha-jun-30-2022":"2022-06-30T00:26:36.995Z","1.23.1-beta-1656608002000":"2022-06-30T16:57:08.836Z","1.23.1":"2022-06-30T18:01:32.700Z","1.23.1-beta-1656632677000":"2022-06-30T23:48:10.965Z","1.24.0-alpha-jul-1-2022":"2022-07-01T00:32:56.576Z","1.23.1-beta-1656679839000":"2022-07-01T12:52:59.608Z","1.23.1-beta-1656680611000":"2022-07-01T13:05:33.900Z","1.23.1-beta-1656692892000":"2022-07-01T16:30:30.346Z","1.23.1-beta-1656696173000":"2022-07-01T17:26:57.640Z","1.24.0-alpha-jul-2-2022":"2022-07-02T00:30:26.583Z","1.24.0-alpha-jul-3-2022":"2022-07-03T00:29:53.518Z","1.24.0-alpha-jul-4-2022":"2022-07-04T00:33:28.823Z","1.24.0-alpha-jul-5-2022":"2022-07-05T00:26:53.017Z","1.24.0-alpha-jul-6-2022":"2022-07-06T00:56:54.349Z","1.23.1-beta-1657141329000":"2022-07-06T21:27:05.229Z","1.23.1-beta-1657145110000":"2022-07-06T22:07:54.107Z","1.24.0-alpha-jul-7-2022":"2022-07-07T00:33:26.198Z","1.23.2-beta-1657218473000":"2022-07-07T18:40:49.214Z","1.23.2":"2022-07-07T18:51:23.342Z","1.24.0-alpha-jul-8-2022":"2022-07-08T00:32:16.918Z","1.24.0-alpha-jul-9-2022":"2022-07-09T00:23:31.081Z","1.24.0-alpha-jul-10-2022":"2022-07-10T00:31:54.248Z","1.24.0-alpha-jul-11-2022":"2022-07-11T00:28:13.029Z","1.24.0-alpha-jul-12-2022":"2022-07-12T00:29:16.978Z","1.23.2-beta-1657656327000":"2022-07-12T20:11:41.838Z","1.23.3-beta-1657712993000":"2022-07-13T11:52:09.010Z","1.23.3":"2022-07-13T13:02:27.626Z","1.24.0-alpha-1657710564000":"2022-07-13T14:21:11.330Z","1.24.0-alpha-jul-14-2022":"2022-07-14T00:32:50.410Z","1.24.0-beta-1657816946000":"2022-07-14T18:11:28.847Z","1.24.0-beta-1657829686000":"2022-07-14T21:41:34.532Z","1.24.0-beta-1657829746000":"2022-07-14T21:59:01.061Z","1.24.0-beta-1657832487000":"2022-07-14T23:00:59.902Z","1.25.0-alpha-jul-15-2022":"2022-07-15T00:34:18.576Z","1.24.0-beta-1657859090000":"2022-07-15T04:27:37.361Z","1.24.0-beta-1657865532000":"2022-07-15T06:14:22.356Z","1.24.0-beta-1657900992000":"2022-07-15T16:05:19.945Z","1.24.0-beta-1657908604000":"2022-07-15T18:25:24.846Z","1.24.0-beta-1657918044000":"2022-07-15T20:50:38.768Z","1.23.3-beta-1657928342000":"2022-07-15T23:41:14.377Z","1.23.4-beta-1657931017000":"2022-07-16T00:25:45.307Z","1.23.4":"2022-07-16T00:29:11.468Z","1.25.0-alpha-jul-16-2022":"2022-07-16T00:30:48.744Z","1.25.0-alpha-jul-17-2022":"2022-07-17T00:30:43.375Z","1.25.0-alpha-jul-18-2022":"2022-07-18T00:29:42.443Z","1.24.0-beta-1657919681000":"2022-07-18T14:42:12.003Z","1.25.0-alpha-jul-19-2022":"2022-07-19T00:34:43.782Z","1.25.0-alpha-jul-20-2022":"2022-07-20T00:26:23.023Z","1.24.0-beta-1658348931000":"2022-07-20T20:32:32.019Z","1.25.0-alpha-jul-21-2022":"2022-07-21T00:31:10.077Z","1.24.0-beta-1658439162000":"2022-07-21T21:37:12.133Z","1.24.0-beta-1658440934000":"2022-07-21T22:25:53.051Z","1.24.0-beta-1658441541000":"2022-07-21T22:44:56.957Z","1.24.0":"2022-07-21T23:08:33.259Z","1.24.0-beta-1658445570000":"2022-07-21T23:43:04.010Z","1.25.0-alpha-jul-22-2022":"2022-07-22T00:33:52.179Z","1.24.0-beta-1658513677000":"2022-07-22T18:17:09.594Z","1.24.0-beta-1658513698000":"2022-07-22T18:20:25.224Z","1.25.0-alpha-jul-23-2022":"2022-07-23T00:29:15.111Z","1.25.0-alpha-jul-24-2022":"2022-07-24T00:32:34.851Z","1.25.0-alpha-jul-25-2022":"2022-07-25T00:29:56.303Z","1.24.0-beta-1658740819000":"2022-07-25T09:22:46.758Z","1.24.0-beta-1658782064000":"2022-07-25T20:51:58.800Z","1.25.0-alpha-jul-26-2022":"2022-07-26T00:31:43.242Z","1.24.0-beta-1658795899000":"2022-07-26T00:41:57.823Z","1.24.1-beta-1658834175000":"2022-07-26T11:18:15.040Z","1.24.1":"2022-07-26T11:25:24.367Z","1.25.0-alpha-jul-27-2022":"2022-07-27T00:35:00.497Z","1.24.1-beta-1658946462000":"2022-07-27T18:31:18.472Z","1.25.0-alpha-jul-28-2022":"2022-07-28T00:29:56.933Z","1.25.0-alpha-jul-29-2022":"2022-07-29T00:29:58.120Z","1.24.2-beta-1659096416000":"2022-07-29T12:09:27.465Z","1.24.2":"2022-07-29T17:06:41.016Z","1.25.0-alpha-jul-30-2022":"2022-07-30T00:25:35.882Z","1.25.0-alpha-jul-31-2022":"2022-07-31T00:29:48.128Z","1.25.0-alpha-aug-1-2022":"2022-08-01T00:34:49.244Z","1.25.0-alpha-aug-2-2022":"2022-08-02T00:32:16.667Z","1.25.0-alpha-1659484206000":"2022-08-03T00:21:38.539Z","1.25.0-alpha-aug-3-2022":"2022-08-03T00:51:07.449Z","1.25.0-alpha-1659555281000":"2022-08-03T20:55:47.586Z","1.25.0-alpha-aug-4-2022":"2022-08-04T00:32:44.409Z","1.25.0-alpha-1659629898000":"2022-08-04T16:31:44.007Z","1.24.2-beta-1659636872000":"2022-08-04T18:20:36.870Z","1.25.0-alpha-1659639526000":"2022-08-04T19:06:28.564Z","1.25.0-alpha-aug-5-2022":"2022-08-05T00:35:59.092Z","1.25.0-alpha-aug-6-2022":"2022-08-06T00:28:59.593Z","1.25.0-alpha-aug-7-2022":"2022-08-07T00:34:48.811Z","1.25.0-alpha-aug-8-2022":"2022-08-08T00:27:01.911Z","1.25.0-alpha-1659998098000":"2022-08-08T22:55:58.108Z","1.25.0-alpha-aug-9-2022":"2022-08-09T00:34:52.209Z","1.25.0-alpha-1660067092000":"2022-08-09T17:56:10.182Z","1.26.0-alpha-aug-10-2022":"2022-08-10T01:05:09.778Z","1.25.0-beta-1660134229000":"2022-08-10T12:27:33.848Z","1.25.0-beta-1660134302000":"2022-08-10T12:32:37.432Z","1.25.0-beta-1660136025000":"2022-08-10T12:55:56.412Z","1.25.0-beta-1660135972000":"2022-08-10T12:56:28.079Z","1.25.0-beta-1660142208000":"2022-08-10T14:39:30.687Z","1.25.0-beta-1660149140000":"2022-08-10T16:35:06.695Z","1.25.0-beta-1660156046000":"2022-08-10T18:30:45.086Z","1.25.0-beta-1660160263000":"2022-08-10T19:40:03.510Z","1.26.0-alpha-1660165421000":"2022-08-10T21:07:07.118Z","1.25.0-beta-1660166356000":"2022-08-10T21:21:54.371Z","1.25.0-beta-1660171265000":"2022-08-10T22:53:48.676Z","1.25.0":"2022-08-11T00:05:09.042Z","1.26.0-alpha-aug-11-2022":"2022-08-11T00:31:48.801Z","1.25.0-beta-1660213765000":"2022-08-11T10:31:43.366Z","1.26.0-alpha-aug-12-2022":"2022-08-12T00:28:16.414Z","1.26.0-alpha-aug-13-2022":"2022-08-13T00:28:08.322Z","1.26.0-alpha-aug-14-2022":"2022-08-14T00:31:03.684Z","1.26.0-alpha-aug-15-2022":"2022-08-15T00:30:51.659Z","1.25.0-beta-1660549413000":"2022-08-15T07:46:25.627Z","1.26.0-alpha-1660580855000":"2022-08-15T16:30:20.315Z","1.25.0-beta-1660586581000":"2022-08-15T18:06:42.672Z","1.25.0-beta-1660587344000":"2022-08-15T18:17:59.381Z","1.26.0-alpha-1660591492000":"2022-08-15T19:47:43.607Z","1.25.0-beta-1660603535000":"2022-08-15T22:48:07.298Z","1.26.0-alpha-aug-16-2022":"2022-08-16T00:35:06.344Z","1.26.0-alpha-aug-17-2022":"2022-08-17T00:32:17.514Z","1.26.0-alpha-aug-18-2022":"2022-08-18T00:31:22.864Z","1.26.0-alpha-aug-19-2022":"2022-08-19T00:30:40.420Z","1.25.0-beta-1660912234000":"2022-08-19T12:32:58.904Z","1.25.0-beta-1660952656000":"2022-08-19T23:47:19.460Z","1.26.0-alpha-aug-20-2022":"2022-08-20T00:35:59.902Z","1.25.0-beta-1660977861000":"2022-08-20T06:46:24.899Z","1.26.0-alpha-aug-21-2022":"2022-08-21T00:28:44.198Z","1.26.0-alpha-aug-22-2022":"2022-08-22T00:32:12.097Z","1.26.0-alpha-aug-23-2022":"2022-08-23T00:37:51.832Z","1.25.0-beta-1661275579000":"2022-08-23T17:33:55.558Z","1.25.1-beta-1661279778000":"2022-08-23T18:39:46.840Z","1.25.1":"2022-08-23T19:02:49.801Z","1.26.0-alpha-aug-24-2022":"2022-08-24T00:33:09.043Z","1.26.0-alpha-aug-25-2022":"2022-08-25T00:45:02.168Z","1.26.0-alpha-aug-26-2022":"2022-08-26T00:31:43.399Z","1.26.0-alpha-aug-27-2022":"2022-08-27T00:28:41.913Z","1.26.0-alpha-aug-28-2022":"2022-08-28T00:33:22.210Z","1.26.0-alpha-aug-29-2022":"2022-08-29T00:32:59.133Z","1.26.0-alpha-aug-30-2022":"2022-08-30T00:37:37.431Z","1.26.0-alpha-aug-31-2022":"2022-08-31T00:41:44.861Z","1.26.0-alpha-1661907180000":"2022-08-31T00:55:37.544Z","1.25.1-beta-1661977117000":"2022-08-31T20:22:08.276Z","1.25.1-beta-1661979417000":"2022-08-31T21:03:25.593Z","1.26.0-alpha-sep-1-2022":"2022-09-01T00:29:42.241Z","1.26.0-alpha-sep-2-2022":"2022-09-02T00:30:28.017Z","1.25.1-beta-1662161757000":"2022-09-02T23:38:33.976Z","1.26.0-alpha-sep-3-2022":"2022-09-03T00:28:23.785Z","1.26.0-alpha-sep-4-2022":"2022-09-04T00:33:14.162Z","1.26.0-alpha-sep-5-2022":"2022-09-05T00:37:12.908Z","1.26.0-alpha-1662365984000":"2022-09-05T08:30:44.260Z","1.26.0-alpha-sep-6-2022":"2022-09-06T00:32:57.533Z","1.25.1-beta-1662493798000":"2022-09-06T20:06:59.394Z","1.25.1-beta-1662499185000":"2022-09-06T21:25:20.839Z","1.25.2-beta-1662502001000":"2022-09-06T22:10:47.425Z","1.26.0-alpha-sep-7-2022":"2022-09-07T00:33:28.550Z","1.25.2":"2022-09-07T11:32:05.178Z","1.26.0-alpha-sep-8-2022":"2022-09-08T00:36:43.017Z","1.26.0-alpha-sep-9-2022":"2022-09-09T00:33:00.782Z","1.26.0-beta-1662762342000":"2022-09-09T22:30:27.727Z","1.26.0-alpha-sep-10-2022":"2022-09-10T00:33:40.289Z","1.26.0-alpha-sep-11-2022":"2022-09-11T00:31:38.025Z","1.26.0-alpha-sep-12-2022":"2022-09-12T00:30:45.991Z","1.27.0-alpha-1663008124000":"2022-09-12T19:10:05.524Z","1.27.0-alpha-sep-13-2022":"2022-09-13T00:32:32.112Z","1.26.0-beta-1663000204000":"2022-09-13T16:13:20.786Z","1.26.0-beta-1663087977000":"2022-09-13T17:15:33.831Z","1.26.0-beta-1663087990000":"2022-09-13T17:22:25.006Z","1.26.0-beta-1663100527000":"2022-09-13T20:25:19.548Z","1.27.0-alpha-sep-14-2022":"2022-09-14T01:00:24.541Z","1.27.0-alpha-1663172201000":"2022-09-14T16:56:48.035Z","1.26.0-beta-1663194964000":"2022-09-14T22:42:03.835Z","1.26.0-beta-1663195316000":"2022-09-14T22:44:28.885Z","1.27.0-alpha-sep-15-2022":"2022-09-15T00:36:14.287Z","1.26.0-beta-1663260835000":"2022-09-15T16:57:24.252Z","1.26.0-beta-1663275008000":"2022-09-15T20:54:05.041Z","1.26.0-beta-1663280809000":"2022-09-15T22:46:43.159Z","1.26.0-beta-1663286556000":"2022-09-16T00:08:53.497Z","1.27.0-alpha-sep-16-2022":"2022-09-16T00:49:27.033Z","1.27.0-alpha-sep-17-2022":"2022-09-17T00:30:30.917Z","1.27.0-alpha-sep-18-2022":"2022-09-18T00:36:02.151Z","1.27.0-alpha-sep-19-2022":"2022-09-19T00:32:47.835Z","1.26.0-beta-1663610133000":"2022-09-19T18:04:53.550Z","1.26.0-beta-1663611269000":"2022-09-19T18:17:16.656Z","1.26.0-beta-1663611569000":"2022-09-19T18:31:26.985Z","1.26.0-beta-1663620933000":"2022-09-19T20:57:43.871Z","1.27.0-alpha-sep-20-2022":"2022-09-20T00:34:32.027Z","1.26.0":"2022-09-20T16:38:23.563Z","1.26.0-beta-1663707906000":"2022-09-20T21:37:57.011Z","1.26.0-beta-1663712360000":"2022-09-20T22:29:08.266Z","1.26.0-beta-1663715449000":"2022-09-20T23:55:26.631Z","1.27.0-alpha-sep-21-2022":"2022-09-21T00:43:53.202Z","1.27.0-alpha-1663789543000":"2022-09-21T21:03:21.486Z","1.27.0-alpha-sep-22-2022":"2022-09-22T00:31:33.408Z","1.27.0-alpha-sep-23-2022":"2022-09-23T00:37:51.326Z","1.27.0-alpha-sep-24-2022":"2022-09-24T00:36:22.846Z","1.27.0-alpha-sep-25-2022":"2022-09-25T00:33:05.258Z","1.27.0-alpha-sep-26-2022":"2022-09-26T00:35:24.950Z","1.26.0-beta-1664217615000":"2022-09-26T19:01:17.894Z","1.27.0-alpha-sep-27-2022":"2022-09-27T00:39:18.389Z","1.26.0-beta-1664248417000":"2022-09-27T03:18:22.984Z","1.26.1-beta-1664257337000":"2022-09-27T05:44:40.917Z","1.26.1":"2022-09-27T17:02:39.423Z","1.27.0-alpha-sep-28-2022":"2022-09-28T00:40:54.156Z","1.27.0-alpha-sep-29-2022":"2022-09-29T00:51:44.377Z","1.27.0-alpha-sep-30-2022":"2022-09-30T00:48:12.344Z","1.27.0-alpha-oct-1-2022":"2022-10-01T00:47:05.631Z","1.27.0-alpha-oct-2-2022":"2022-10-02T00:41:20.876Z","1.27.0-alpha-oct-3-2022":"2022-10-03T00:35:09.403Z","1.27.0-alpha-oct-4-2022":"2022-10-04T00:46:13.782Z","1.27.0-alpha-1664914898000":"2022-10-04T22:04:31.066Z","1.27.0-alpha-oct-5-2022":"2022-10-05T00:41:43.748Z","1.27.0-beta-1665005064000":"2022-10-05T22:35:57.725Z","1.27.0-beta-1665014412000":"2022-10-06T00:02:45.185Z","1.28.0-alpha-oct-6-2022":"2022-10-06T00:36:03.608Z","1.27.0-beta-1665068904000":"2022-10-06T15:12:12.495Z","1.27.0-beta-1665072068000":"2022-10-06T16:03:59.642Z","1.27.0-beta-1665076342000":"2022-10-06T17:41:54.644Z","1.27.0-beta-1665079367000":"2022-10-06T18:27:43.207Z","1.27.0-beta-1665081309000":"2022-10-06T18:53:27.583Z","1.27.0-beta-1665086016000":"2022-10-06T19:56:42.978Z","1.27.0-beta-1665092193000":"2022-10-06T21:39:53.608Z","1.28.0-alpha-oct-7-2022":"2022-10-07T00:45:24.527Z","1.27.0-beta-1665104474000":"2022-10-07T01:03:38.946Z","1.27.0-beta-1665162701000":"2022-10-07T17:13:54.637Z","1.27.0-beta-1665163211000":"2022-10-07T17:26:57.954Z","1.27.0":"2022-10-07T20:42:53.341Z","1.28.0-alpha-oct-8-2022":"2022-10-08T00:33:43.096Z","1.27.0-beta-1665208998000":"2022-10-08T06:06:02.855Z","1.28.0-alpha-oct-9-2022":"2022-10-09T00:36:08.385Z","1.28.0-alpha-oct-10-2022":"2022-10-10T00:40:30.931Z","1.27.0-beta-1665429488000":"2022-10-10T19:22:09.664Z","1.27.0-beta-1665430012000":"2022-10-10T19:54:45.297Z","1.27.0-beta-1665430573000":"2022-10-10T20:15:01.981Z","1.27.0-beta-1665430618000":"2022-10-10T20:40:04.052Z","1.28.0-alpha-oct-11-2022":"2022-10-11T00:35:52.773Z","1.27.0-beta-1665507512000":"2022-10-11T17:01:37.903Z","1.27.0-beta-1665513213000":"2022-10-11T18:36:36.389Z","1.28.0-alpha-oct-12-2022":"2022-10-12T00:45:50.864Z","1.27.0-beta-1665535956000":"2022-10-12T00:55:46.221Z","1.27.1-beta-1665552007000":"2022-10-12T05:23:40.587Z","1.27.1":"2022-10-12T06:04:09.889Z","1.28.0-alpha-oct-13-2022":"2022-10-13T00:39:39.406Z","1.27.1-beta-1665679529000":"2022-10-13T16:48:23.284Z","1.28.0-alpha-oct-14-2022":"2022-10-14T00:43:53.287Z","1.28.0-alpha-oct-15-2022":"2022-10-15T00:40:01.935Z","1.28.0-alpha-oct-16-2022":"2022-10-16T00:41:44.011Z","1.28.0-alpha-oct-17-2022":"2022-10-17T00:43:25.390Z","1.27.1-beta-1666021552000":"2022-10-17T15:49:28.508Z","1.28.0-alpha-oct-18-2022":"2022-10-18T00:40:36.236Z","1.28.0-alpha-oct-19-2022":"2022-10-19T00:48:04.019Z","1.28.0-alpha-oct-20-2022":"2022-10-20T00:36:59.861Z","1.28.0-alpha-oct-21-2022":"2022-10-21T00:35:05.771Z","1.28.0-alpha-oct-22-2022":"2022-10-22T00:41:12.108Z","1.28.0-alpha-oct-23-2022":"2022-10-23T00:40:44.549Z","1.28.0-alpha-oct-24-2022":"2022-10-24T00:46:03.685Z","1.28.0-alpha-oct-25-2022":"2022-10-25T00:43:42.437Z","1.28.0-alpha-1666716920000":"2022-10-25T17:16:54.938Z","1.28.0-alpha-oct-26-2022":"2022-10-26T00:34:12.453Z","1.28.0-alpha-1666810142000":"2022-10-26T21:36:37.321Z","1.28.0-alpha-oct-27-2022":"2022-10-27T00:36:57.264Z","1.28.0-alpha-oct-28-2022":"2022-10-28T00:36:18.369Z","1.28.0-alpha-oct-29-2022":"2022-10-29T00:29:11.064Z","1.28.0-alpha-oct-30-2022":"2022-10-30T00:37:53.226Z","1.28.0-alpha-oct-31-2022":"2022-10-31T00:37:43.918Z","1.28.0-alpha-nov-1-2022":"2022-11-01T00:39:22.731Z","1.28.0-alpha-nov-2-2022":"2022-11-02T00:35:29.847Z","1.27.1-beta-1667430954000":"2022-11-02T23:18:41.027Z","1.28.0-alpha-nov-3-2022":"2022-11-03T00:53:30.777Z","1.28.0-alpha-1667504282000":"2022-11-03T19:47:00.266Z","1.28.0-alpha-nov-4-2022":"2022-11-04T00:34:21.407Z","1.28.0-alpha-nov-5-2022":"2022-11-05T00:33:20.625Z","1.28.0-alpha-nov-6-2022":"2022-11-06T00:31:08.665Z","1.28.0-alpha-nov-7-2022":"2022-11-07T00:29:48.189Z","1.28.0-alpha-nov-8-2022":"2022-11-08T00:58:14.714Z","1.28.0-alpha-nov-9-2022":"2022-11-09T00:31:41.946Z","1.28.0-alpha-nov-10-2022":"2022-11-10T00:32:43.639Z","1.28.0-alpha-nov-11-2022":"2022-11-11T01:17:11.363Z","1.28.0-beta-1668203080000":"2022-11-11T23:33:55.090Z","1.29.0-alpha-nov-12-2022":"2022-11-12T00:32:56.810Z","1.29.0-alpha-nov-13-2022":"2022-11-13T00:28:49.164Z","1.29.0-alpha-nov-14-2022":"2022-11-14T00:28:59.027Z","1.28.0-beta-1668449009000":"2022-11-14T18:06:49.743Z","1.28.0-beta-1668449150000":"2022-11-14T18:10:00.609Z","1.29.0-alpha-1668454236000":"2022-11-14T19:33:46.170Z","1.28.0-beta-1668463093000":"2022-11-14T22:01:09.836Z","1.28.0-beta-1668469027000":"2022-11-14T23:40:07.996Z","1.29.0-alpha-nov-15-2022":"2022-11-15T00:38:28.008Z","1.28.0-beta-1668473403000":"2022-11-15T01:33:33.031Z","1.28.0-beta-1668481322000":"2022-11-15T03:04:28.868Z","1.28.0-beta-1668535043000":"2022-11-15T18:07:27.542Z","1.28.0-beta-1668538195000":"2022-11-15T19:01:06.600Z","1.28.0-beta-1668538774000":"2022-11-15T19:19:36.059Z","1.28.0-beta-1668541928000":"2022-11-15T19:55:14.213Z","1.28.0-beta-1668541955000":"2022-11-15T19:55:56.493Z","1.28.0-beta-1668546662000":"2022-11-15T21:13:26.123Z","1.28.0-beta-1668546899000":"2022-11-15T21:17:35.764Z","1.28.0-beta-1668558062000":"2022-11-16T00:39:37.346Z","1.28.0-beta-1668558158000":"2022-11-16T00:42:33.724Z","1.28.0":"2022-11-16T17:07:50.530Z","1.28.0-beta-1668635971000":"2022-11-16T22:09:19.650Z","1.29.0-alpha-nov-17-2022":"2022-11-17T00:29:43.015Z","1.29.0-alpha-nov-18-2022":"2022-11-18T00:35:17.127Z","1.28.0-beta-1668756027000":"2022-11-18T07:22:43.220Z","1.29.0-alpha-nov-19-2022":"2022-11-19T00:30:40.989Z","1.29.0-alpha-nov-20-2022":"2022-11-20T00:32:42.592Z","1.29.0-alpha-nov-21-2022":"2022-11-21T00:31:14.606Z","1.28.0-beta-1669072579000":"2022-11-21T23:20:19.297Z","1.28.0-beta-1669073057000":"2022-11-21T23:27:01.596Z","1.28.0-beta-1669074896000":"2022-11-21T23:57:29.948Z","1.28.1-beta-1669075766000":"2022-11-22T00:11:39.983Z","1.29.0-alpha-nov-22-2022":"2022-11-22T00:31:38.882Z","1.28.1-beta-1669146784000":"2022-11-22T19:56:36.478Z","1.28.1-beta-1669161670000":"2022-11-23T00:04:05.909Z","1.29.0-alpha-nov-23-2022":"2022-11-23T00:57:24.451Z","1.28.1":"2022-11-23T18:00:35.581Z","1.29.0-alpha-nov-24-2022":"2022-11-24T00:31:25.852Z","1.29.0-alpha-nov-25-2022":"2022-11-25T00:28:15.888Z","1.29.0-alpha-nov-26-2022":"2022-11-26T00:25:22.582Z","1.29.0-alpha-nov-27-2022":"2022-11-27T00:29:18.688Z","1.29.0-alpha-nov-28-2022":"2022-11-28T00:26:50.694Z","1.29.0-alpha-nov-29-2022":"2022-11-29T00:29:36.040Z","1.29.0-alpha-nov-30-2022":"2022-11-30T00:53:55.266Z","1.29.0-alpha-dec-1-2022":"2022-12-01T01:19:27.529Z","1.29.0-alpha-dec-2-2022":"2022-12-02T00:30:16.082Z","1.29.0-alpha-dec-3-2022":"2022-12-03T00:25:52.424Z","1.29.0-alpha-dec-4-2022":"2022-12-04T00:26:07.600Z","1.29.0-alpha-dec-5-2022":"2022-12-05T00:26:57.894Z","1.29.0-alpha-dec-6-2022":"2022-12-06T00:25:39.189Z","1.29.0-alpha-dec-7-2022":"2022-12-07T00:27:10.039Z","1.29.0-alpha-dec-8-2022":"2022-12-08T00:25:48.341Z","1.29.0-alpha-dec-9-2022":"2022-12-09T00:59:14.756Z","1.29.0-alpha-dec-10-2022":"2022-12-10T00:24:45.145Z","1.29.0-alpha-dec-11-2022":"2022-12-11T00:30:06.777Z","1.29.0-alpha-dec-12-2022":"2022-12-12T00:28:58.529Z","1.29.0-alpha-dec-13-2022":"2022-12-13T00:29:13.072Z","1.29.0-alpha-dec-14-2022":"2022-12-14T00:43:42.269Z","1.29.0-alpha-dec-15-2022":"2022-12-15T00:43:51.767Z","1.29.0-alpha-1671074593000":"2022-12-15T03:29:37.857Z","1.29.0-beta-1671131879000":"2022-12-15T20:01:21.393Z","1.30.0-alpha-dec-16-2022":"2022-12-16T00:26:48.805Z","1.29.0-beta-1671211175000":"2022-12-16T17:23:09.440Z","1.29.0-beta-1671211191000":"2022-12-16T17:29:33.963Z","1.29.0-beta-1671212933000":"2022-12-16T18:16:36.480Z","1.29.0-beta-1671212996000":"2022-12-16T18:27:26.117Z","1.29.0-beta-1671214600000":"2022-12-16T18:48:20.612Z","1.29.0-beta-1671218511000":"2022-12-16T19:43:38.121Z","1.29.0":"2022-12-16T22:53:18.745Z","1.30.0-alpha-dec-17-2022":"2022-12-17T00:47:47.056Z","1.30.0-alpha-dec-18-2022":"2022-12-18T00:25:37.879Z","1.30.0-alpha-dec-19-2022":"2022-12-19T00:23:47.247Z","1.29.0-beta-1671488624000":"2022-12-19T22:26:51.335Z","1.30.0-alpha-dec-20-2022":"2022-12-20T00:53:55.194Z","1.29.0-beta-1671554636000":"2022-12-20T16:47:01.794Z","1.29.0-beta-1671562759000":"2022-12-20T19:02:36.076Z","1.29.0-beta-1671569558000":"2022-12-20T20:55:18.423Z","1.29.0-beta-1671569601000":"2022-12-20T20:56:06.432Z","1.29.0-beta-1671569610000":"2022-12-20T21:03:22.446Z","1.29.0-beta-1671570437000":"2022-12-20T21:16:36.374Z","1.30.0-alpha-dec-21-2022":"2022-12-21T00:25:06.064Z","1.29.0-beta-1671647126000":"2022-12-21T18:27:59.738Z","1.29.0-beta-1671647145000":"2022-12-21T18:34:30.930Z","1.29.0-beta-1671650070000":"2022-12-21T19:17:36.581Z","1.29.1-beta-1671657572000":"2022-12-21T21:22:02.280Z","1.29.1":"2022-12-21T22:25:20.204Z","1.30.0-alpha-dec-22-2022":"2022-12-22T00:26:49.286Z","1.30.0-alpha-dec-23-2022":"2022-12-23T00:25:50.122Z","1.30.0-alpha-dec-24-2022":"2022-12-24T00:22:38.252Z","1.30.0-alpha-dec-25-2022":"2022-12-25T00:28:32.916Z","1.30.0-alpha-dec-26-2022":"2022-12-26T00:26:59.632Z","1.30.0-alpha-dec-27-2022":"2022-12-27T00:26:59.277Z","1.29.1-beta-1672169891000":"2022-12-27T19:40:47.283Z","1.30.0-alpha-dec-28-2022":"2022-12-28T00:26:55.695Z","1.30.0-alpha-dec-29-2022":"2022-12-29T00:27:06.348Z","1.30.0-alpha-dec-30-2022":"2022-12-30T00:27:27.931Z","1.30.0-alpha-dec-31-2022":"2022-12-31T00:26:38.432Z","1.30.0-alpha-jan-1-2023":"2023-01-01T00:30:11.780Z","1.30.0-alpha-jan-2-2023":"2023-01-02T00:26:45.494Z","1.29.1-beta-1672665461000":"2023-01-02T13:19:58.561Z","1.29.1-beta-1672665986000":"2023-01-02T13:29:07.045Z","1.30.0-alpha-jan-3-2023":"2023-01-03T00:26:15.905Z","1.29.1-beta-1672783485000":"2023-01-03T22:12:22.959Z","1.30.0-alpha-jan-4-2023":"2023-01-04T00:27:00.891Z","1.30.0-alpha-jan-5-2023":"2023-01-05T00:27:35.544Z","1.29.1-beta-1672962462000":"2023-01-05T23:52:39.793Z","1.30.0-alpha-jan-6-2023":"2023-01-06T00:28:01.015Z","1.29.2-beta-1672991382000":"2023-01-06T07:52:00.793Z","1.29.2":"2023-01-06T18:07:08.800Z","1.30.0-alpha-jan-7-2023":"2023-01-07T00:26:03.878Z","1.30.0-alpha-jan-8-2023":"2023-01-08T00:28:57.842Z","1.30.0-alpha-jan-9-2023":"2023-01-09T00:26:41.829Z","1.30.0-alpha-jan-10-2023":"2023-01-10T00:48:09.480Z","1.30.0-alpha-jan-11-2023":"2023-01-11T00:28:32.293Z","1.30.0-alpha-jan-12-2023":"2023-01-12T00:28:49.358Z","1.30.0-alpha-jan-14-2023":"2023-01-14T00:26:55.045Z","1.30.0-alpha-jan-15-2023":"2023-01-15T00:29:53.042Z","1.30.0-alpha-jan-16-2023":"2023-01-16T00:27:33.542Z","1.30.0-alpha-jan-17-2023":"2023-01-17T00:27:39.019Z","1.30.0-alpha-jan-18-2023":"2023-01-18T00:29:34.599Z","1.30.0-alpha-jan-19-2023":"2023-01-19T00:28:26.970Z","1.30.0-alpha-jan-20-2023":"2023-01-20T00:28:05.205Z","1.30.0-alpha-jan-21-2023":"2023-01-21T00:28:12.008Z","1.30.0-beta-1674267855000":"2023-01-21T03:32:19.266Z","1.30.0-beta-1674276599000":"2023-01-21T04:53:07.205Z","1.31.0-alpha-jan-22-2023":"2023-01-22T00:30:03.438Z","1.31.0-alpha-jan-23-2023":"2023-01-23T00:26:17.290Z","1.31.0-alpha-jan-24-2023":"2023-01-24T00:28:55.427Z","1.30.0-beta-1674594361000":"2023-01-24T21:58:49.462Z","1.31.0-alpha-jan-25-2023":"2023-01-25T00:27:11.323Z","1.30.0":"2023-01-25T01:41:07.656Z","1.31.0-alpha-jan-26-2023":"2023-01-26T00:27:43.127Z","1.31.0-alpha-1674768085000":"2023-01-26T22:07:36.206Z","1.31.0-alpha-jan-27-2023":"2023-01-27T00:30:32.220Z","1.31.0-alpha-jan-28-2023":"2023-01-28T01:40:05.269Z","1.31.0-alpha-jan-29-2023":"2023-01-29T00:30:50.223Z","1.31.0-alpha-jan-30-2023":"2023-01-30T00:24:13.341Z","1.31.0-alpha-jan-31-2023":"2023-01-31T00:29:38.103Z","1.31.0-alpha-feb-1-2023":"2023-02-01T00:32:26.364Z","1.31.0-alpha-feb-2-2023":"2023-02-02T00:29:12.882Z","1.31.0-alpha-feb-3-2023":"2023-02-03T00:29:59.968Z","1.31.0-alpha-feb-4-2023":"2023-02-04T00:26:27.576Z","1.31.0-alpha-feb-5-2023":"2023-02-05T00:30:22.044Z","1.31.0-alpha-feb-6-2023":"2023-02-06T00:26:21.674Z","1.31.0-alpha-feb-7-2023":"2023-02-07T00:28:50.200Z","1.31.0-alpha-feb-8-2023":"2023-02-08T00:49:32.110Z","1.31.0-alpha-feb-9-2023":"2023-02-09T00:27:46.142Z","1.31.0-alpha-feb-10-2023":"2023-02-10T00:29:44.355Z","1.31.0-alpha-feb-11-2023":"2023-02-11T00:24:14.086Z","1.31.0-alpha-feb-12-2023":"2023-02-12T00:31:08.121Z","1.31.0-alpha-feb-13-2023":"2023-02-13T00:30:01.544Z","1.31.0-alpha-feb-14-2023":"2023-02-14T00:35:58.255Z","1.31.0-alpha-feb-15-2023":"2023-02-15T00:31:00.770Z","1.31.0-beta-1676493483000":"2023-02-16T00:19:35.852Z","1.32.0-alpha-feb-16-2023":"2023-02-16T00:35:46.860Z","1.31.0-beta-1676510409000":"2023-02-16T01:22:57.822Z","1.31.0-beta-1676564309000":"2023-02-16T16:22:32.785Z","1.31.0-beta-1676574175000":"2023-02-16T19:08:13.936Z","1.31.0-beta-1676584193000":"2023-02-16T21:52:54.278Z","1.31.0-beta-1676591072000":"2023-02-16T23:52:08.965Z","1.32.0-alpha-feb-17-2023":"2023-02-17T00:30:54.459Z","1.31.0-beta-1676596096000":"2023-02-17T01:11:34.854Z","1.31.0-beta-1676599897000":"2023-02-17T02:14:37.858Z","1.31.0-beta-1676605905000":"2023-02-17T03:54:33.737Z","1.31.0-beta-1676665251000":"2023-02-17T20:24:05.185Z","1.32.0-alpha-feb-18-2023":"2023-02-18T00:30:02.490Z","1.31.0-beta-1676685153000":"2023-02-18T01:55:38.335Z","1.32.0-alpha-feb-19-2023":"2023-02-19T00:28:13.691Z","1.32.0-alpha-feb-20-2023":"2023-02-20T00:30:50.370Z","1.31.0-beta-1676906983000":"2023-02-20T15:32:02.649Z","1.32.0-alpha-feb-21-2023":"2023-02-21T00:31:02.260Z","1.31.0-beta-1677002140000":"2023-02-21T17:59:35.634Z","1.31.0-beta-1677004566000":"2023-02-21T18:41:21.939Z","1.31.0":"2023-02-21T19:19:30.397Z","1.32.0-alpha-feb-22-2023":"2023-02-22T00:30:31.889Z","1.31.0-beta-1677106959000":"2023-02-22T23:08:05.274Z","1.31.0-beta-1677110728000":"2023-02-23T00:08:35.812Z","1.32.0-alpha-feb-23-2023":"2023-02-23T00:27:25.240Z","1.31.1-beta-1677121302000":"2023-02-23T03:04:27.401Z","1.31.1":"2023-02-23T05:38:48.178Z","1.31.1-beta-1677192045000":"2023-02-23T22:43:44.468Z","1.32.0-alpha-feb-24-2023":"2023-02-24T00:27:58.885Z","1.32.0-alpha-feb-25-2023":"2023-02-25T00:28:59.507Z","1.32.0-alpha-feb-26-2023":"2023-02-26T00:32:54.234Z","1.32.0-alpha-feb-27-2023":"2023-02-27T00:30:07.594Z","1.32.0-alpha-feb-28-2023":"2023-02-28T00:29:19.272Z","1.31.1-beta-1677552113000":"2023-02-28T02:44:16.166Z","1.32.0-alpha-mar-1-2023":"2023-03-01T00:32:29.133Z","1.32.0-alpha-1677632926000":"2023-03-01T02:44:00.941Z","1.32.0-alpha-1677690983000":"2023-03-01T17:19:21.762Z","1.31.1-beta-1677701932000":"2023-03-01T20:21:40.804Z","1.31.1-beta-1677704149000":"2023-03-01T20:58:34.979Z","1.31.1-beta-1677707236000":"2023-03-01T21:49:32.290Z","1.32.0-alpha-mar-2-2023":"2023-03-02T00:33:25.057Z","1.31.1-beta-1677717762000":"2023-03-02T00:45:51.158Z","1.31.1-beta-1677726071000":"2023-03-02T03:07:07.750Z","1.31.2-beta-1677779003000":"2023-03-02T17:57:40.875Z","1.31.2":"2023-03-02T20:03:11.511Z","1.32.0-alpha-mar-3-2023":"2023-03-03T02:10:51.178Z","1.32.0-alpha-mar-4-2023":"2023-03-04T00:28:20.641Z","1.32.0-alpha-mar-5-2023":"2023-03-05T00:32:07.258Z","1.32.0-alpha-mar-6-2023":"2023-03-06T00:29:23.053Z","1.32.0-alpha-mar-7-2023":"2023-03-07T00:30:35.084Z","1.31.2-beta-1678209524000":"2023-03-07T17:27:05.513Z","1.32.0-alpha-mar-8-2023":"2023-03-08T00:30:10.624Z","1.32.0-alpha-mar-9-2023":"2023-03-09T00:29:23.734Z","1.32.0-alpha-1678387519000":"2023-03-09T19:05:56.805Z","1.32.0-alpha-mar-10-2023":"2023-03-10T00:29:14.091Z","1.32.0-alpha-mar-11-2023":"2023-03-11T00:25:03.391Z","1.32.0-alpha-mar-12-2023":"2023-03-12T00:29:09.615Z","1.32.0-alpha-mar-13-2023":"2023-03-13T00:28:30.974Z","1.32.0-alpha-mar-14-2023":"2023-03-14T00:26:56.148Z","1.32.0-alpha-mar-15-2023":"2023-03-15T00:29:41.646Z","1.32.0-alpha-mar-16-2023":"2023-03-16T00:30:10.109Z","1.32.0-alpha-mar-17-2023":"2023-03-17T00:28:10.249Z","1.32.0-alpha-1679083379000":"2023-03-17T20:05:45.981Z","1.32.0-alpha-mar-18-2023":"2023-03-18T00:27:28.020Z","1.32.0-beta-1679101708000":"2023-03-18T02:40:27.363Z","1.32.0-beta-1679111215000":"2023-03-18T03:50:08.785Z","1.32.0-beta-1679114315000":"2023-03-18T04:41:58.352Z","1.33.0-alpha-mar-19-2023":"2023-03-19T00:30:22.133Z","1.32.0-beta-1679253051000":"2023-03-19T19:14:35.402Z","1.32.0-beta-1679262655000":"2023-03-19T21:53:24.058Z","1.33.0-alpha-mar-20-2023":"2023-03-20T00:30:00.535Z","1.32.0-beta-1679286098000":"2023-03-20T04:24:19.650Z","1.32.0-beta-1679291620000":"2023-03-20T05:56:17.055Z","1.32.0-beta-1679336162000":"2023-03-20T18:19:18.280Z","1.32.0-beta-1679336170000":"2023-03-20T18:20:05.754Z","1.32.0-beta-1679348958000":"2023-03-20T21:54:28.911Z","1.32.0-beta-1679357626000":"2023-03-21T00:44:57.661Z","1.33.0-alpha-mar-21-2023":"2023-03-21T00:46:31.446Z","1.32.0-beta-1679372723000":"2023-03-21T04:28:22.396Z","1.32.0-beta-1679372796000":"2023-03-21T04:29:49.442Z","1.32.0-beta-1679414990000":"2023-03-21T16:13:06.388Z","1.32.0-beta-1679418399000":"2023-03-21T17:10:56.006Z","1.32.0-beta-1679425453000":"2023-03-21T19:07:01.697Z","1.32.0-beta-1679426066000":"2023-03-21T19:17:56.783Z","1.32.0-beta-1679431787000":"2023-03-21T20:53:04.324Z","1.32.0-beta-1679432989000":"2023-03-21T21:13:02.424Z","1.33.0-alpha-mar-22-2023":"2023-03-22T00:27:07.268Z","1.32.0-beta-1679448099000":"2023-03-22T01:24:36.657Z","1.32.0-beta-1679515780000":"2023-03-22T20:12:36.468Z","1.32.0-beta-1679515837000":"2023-03-22T20:13:00.760Z","1.32.0-beta-1679517005000":"2023-03-22T20:32:39.557Z","1.32.0":"2023-03-22T22:01:25.500Z","1.33.0-alpha-mar-23-2023":"2023-03-23T00:28:10.852Z","1.32.0-beta-1679596316000":"2023-03-23T18:34:26.760Z","1.32.0-beta-1679601059000":"2023-03-23T19:54:07.304Z","1.32.0-beta-1679604230000":"2023-03-23T20:47:28.227Z","1.33.0-alpha-1679605230000":"2023-03-23T21:28:17.878Z","1.32.0-beta-1679611698000":"2023-03-23T22:51:11.482Z","1.33.0-alpha-mar-24-2023":"2023-03-24T00:27:14.406Z","1.32.0-beta-1679686655000":"2023-03-24T19:41:00.695Z","1.32.1-beta-1679703607000":"2023-03-25T00:23:09.339Z","1.33.0-alpha-mar-25-2023":"2023-03-25T00:26:03.640Z","1.32.1-beta-1679716636000":"2023-03-25T04:00:05.952Z","1.32.1":"2023-03-25T05:42:08.852Z","1.33.0-alpha-mar-26-2023":"2023-03-26T00:29:02.754Z","1.33.0-alpha-mar-27-2023":"2023-03-27T00:26:40.930Z","1.33.0-alpha-mar-28-2023":"2023-03-28T00:27:13.727Z","1.32.1-beta-1680043855000":"2023-03-28T22:53:19.865Z","1.33.0-alpha-mar-29-2023":"2023-03-29T00:30:21.060Z","1.33.0-alpha-mar-30-2023":"2023-03-30T00:27:29.056Z","1.33.0-alpha-mar-31-2023":"2023-03-31T00:28:04.023Z","1.32.1-beta-1680295120000":"2023-03-31T20:42:02.304Z","1.33.0-alpha-apr-1-2023":"2023-04-01T00:27:50.680Z","1.32.1-beta-1680310452000":"2023-04-01T00:57:14.302Z","1.33.0-alpha-apr-2-2023":"2023-04-02T00:28:50.144Z","1.33.0-alpha-apr-3-2023":"2023-04-03T00:26:44.029Z","1.32.2-beta-1680553379000":"2023-04-03T20:25:41.243Z","1.32.2":"2023-04-03T22:17:24.702Z","1.33.0-alpha-apr-4-2023":"2023-04-04T00:27:08.622Z","1.32.2-beta-1680637207000":"2023-04-04T19:43:03.209Z","1.33.0-alpha-apr-5-2023":"2023-04-05T00:23:48.111Z","1.32.2-beta-1680712603000":"2023-04-05T16:39:44.456Z","1.33.0-alpha-apr-6-2023":"2023-04-06T00:25:46.211Z","1.33.0-alpha-1680774768000":"2023-04-06T12:52:45.129Z","1.33.0-alpha-apr-7-2023":"2023-04-07T00:25:16.936Z","1.33.0-alpha-apr-8-2023":"2023-04-08T00:24:21.667Z","1.33.0-alpha-apr-9-2023":"2023-04-09T00:27:53.089Z","1.33.0-alpha-apr-10-2023":"2023-04-10T00:25:25.411Z","1.33.0-alpha-apr-11-2023":"2023-04-11T00:26:36.476Z","1.32.2-beta-1681174224000":"2023-04-11T00:53:02.184Z","1.32.3-beta-1681174265000":"2023-04-11T00:55:00.469Z","1.32.3":"2023-04-11T03:40:20.320Z","1.33.0-alpha-apr-12-2023":"2023-04-12T00:25:34.907Z","1.33.0-alpha-apr-13-2023":"2023-04-13T00:24:40.071Z","1.33.0-alpha-apr-14-2023":"2023-04-14T00:25:18.166Z","1.33.0-alpha-apr-15-2023":"2023-04-15T00:27:38.057Z","1.33.0-alpha-apr-16-2023":"2023-04-16T00:27:24.375Z","1.33.0-alpha-apr-17-2023":"2023-04-17T00:26:29.177Z","1.33.0-alpha-apr-18-2023":"2023-04-18T00:25:43.746Z","1.33.0-alpha-apr-20-2023":"2023-04-20T00:24:50.768Z","1.33.0-alpha-1681999635000":"2023-04-20T14:18:57.837Z","1.33.0-alpha-apr-21-2023":"2023-04-21T00:26:00.113Z","1.33.0-alpha-apr-22-2023":"2023-04-22T00:25:38.711Z","1.33.0-alpha-apr-23-2023":"2023-04-23T00:27:58.705Z","1.33.0-alpha-apr-24-2023":"2023-04-24T00:27:04.196Z","1.33.0-beta-1682341974000":"2023-04-24T19:55:03.554Z","1.33.0-beta-1682374575000":"2023-04-24T22:19:04.697Z","1.34.0-alpha-apr-25-2023":"2023-04-25T00:26:44.347Z","1.33.0-beta-1682447195000":"2023-04-25T18:31:00.767Z","1.34.0-alpha-apr-26-2023":"2023-04-26T00:26:49.687Z","1.33.0-beta-1682539376000":"2023-04-26T20:06:23.187Z","1.33.0-beta-1682539628000":"2023-04-26T20:10:55.043Z","1.33.0-beta-1682548529000":"2023-04-26T22:38:23.257Z","1.34.0-alpha-apr-27-2023":"2023-04-27T00:27:42.247Z","1.33.0-beta-1682558779000":"2023-04-27T01:28:41.781Z","1.33.0":"2023-04-27T01:38:26.827Z","1.34.0-alpha-apr-28-2023":"2023-04-28T00:26:59.409Z","1.34.0-alpha-apr-29-2023":"2023-04-29T00:25:23.551Z","1.34.0-alpha-apr-30-2023":"2023-04-30T00:27:52.318Z","1.34.0-alpha-may-1-2023":"2023-05-01T00:28:06.853Z","1.34.0-alpha-may-2-2023":"2023-05-02T00:26:16.913Z","1.33.0-beta-1683051601000":"2023-05-02T18:22:38.124Z","1.33.0-beta-1683060826000":"2023-05-02T20:55:50.395Z","1.34.0-alpha-may-3-2023":"2023-05-03T00:25:49.394Z","1.33.0-beta-1683119120000":"2023-05-03T13:08:02.758Z","1.34.0-alpha-may-4-2023":"2023-05-04T00:26:54.434Z","1.34.0-alpha-may-5-2023":"2023-05-05T00:26:02.156Z","1.33.0-beta-1683324077000":"2023-05-05T22:03:27.756Z","1.34.0-alpha-may-6-2023":"2023-05-06T00:24:44.411Z","1.34.0-alpha-may-7-2023":"2023-05-07T00:27:28.260Z","1.34.0-alpha-may-8-2023":"2023-05-08T00:26:00.317Z","1.34.0-alpha-may-9-2023":"2023-05-09T00:26:48.999Z","1.34.0-alpha-may-10-2023":"2023-05-10T00:25:18.116Z","1.34.0-alpha-may-11-2023":"2023-05-11T00:25:16.878Z","1.34.0-alpha-may-12-2023":"2023-05-12T00:24:44.687Z","1.34.0-alpha-1683908764000":"2023-05-12T16:28:43.989Z","1.34.0-alpha-may-13-2023":"2023-05-13T00:24:15.824Z","1.34.0-alpha-may-14-2023":"2023-05-14T00:28:04.704Z","1.34.0-alpha-may-15-2023":"2023-05-15T00:27:05.580Z","1.34.0-alpha-1684179977000":"2023-05-15T19:49:03.339Z","1.34.0-alpha-may-16-2023":"2023-05-16T00:26:25.209Z","1.34.0-alpha-may-17-2023":"2023-05-17T00:28:43.467Z","1.34.0-alpha-may-18-2023":"2023-05-18T00:26:21.258Z","1.34.0-beta-1684375055000":"2023-05-18T02:09:10.302Z","1.34.0-beta-1684420091000":"2023-05-18T14:30:53.651Z","1.34.0-beta-1684434956000":"2023-05-18T18:39:12.704Z","1.34.0-beta-1684435798000":"2023-05-18T18:52:38.445Z","1.34.0-beta-1684447150000":"2023-05-18T22:01:05.018Z","1.34.0-beta-1684447479000":"2023-05-18T22:06:54.921Z","1.34.0-beta-1684450440000":"2023-05-18T22:56:58.586Z","1.35.0-alpha-may-19-2023":"2023-05-19T00:26:15.089Z","1.34.0-beta-1684518179000":"2023-05-19T17:46:16.055Z","1.34.0-beta-1684519693000":"2023-05-19T18:12:55.987Z","1.34.0-beta-1684534842000":"2023-05-19T22:22:40.657Z","1.35.0-alpha-may-20-2023":"2023-05-20T00:24:32.933Z","1.34.0-beta-1684542490000":"2023-05-20T00:30:26.435Z","1.34.0":"2023-05-20T02:28:23.764Z","1.35.0-alpha-may-21-2023":"2023-05-21T00:28:52.482Z","1.35.0-alpha-may-22-2023":"2023-05-22T00:27:27.976Z","1.34.0-beta-1684784303000":"2023-05-22T19:40:36.647Z","1.34.0-beta-1684795219000":"2023-05-22T22:42:34.184Z","1.34.0-beta-1684799046000":"2023-05-22T23:46:19.858Z","1.35.0-alpha-may-23-2023":"2023-05-23T00:30:10.044Z","1.34.1-beta-1684812068000":"2023-05-23T03:23:10.449Z","1.34.1":"2023-05-23T03:25:24.084Z","1.34.1-beta-1684870423000":"2023-05-23T19:35:58.168Z","1.34.2-beta-1684875341000":"2023-05-23T20:57:39.051Z","1.34.2":"2023-05-23T22:53:27.620Z","1.35.0-alpha-may-24-2023":"2023-05-24T00:25:59.573Z","1.34.2-beta-1684956029000":"2023-05-24T19:23:35.340Z","1.34.2-beta-1684966845000":"2023-05-24T22:24:14.871Z","1.34.3-beta-1684969624000":"2023-05-24T23:09:10.418Z","1.34.3":"2023-05-25T00:10:26.953Z","1.35.0-alpha-may-25-2023":"2023-05-25T00:25:24.279Z","1.35.0-alpha-1685046878000":"2023-05-25T20:57:51.950Z","1.35.0-alpha-may-26-2023":"2023-05-26T00:26:13.393Z","1.35.0-alpha-1685109821000":"2023-05-26T14:46:52.072Z","1.34.3-beta-1685124745000":"2023-05-26T18:14:56.579Z","1.35.0-alpha-may-27-2023":"2023-05-27T00:28:05.894Z","1.35.0-alpha-may-28-2023":"2023-05-28T00:28:14.364Z","1.35.0-alpha-may-29-2023":"2023-05-29T00:26:31.894Z","1.35.0-alpha-may-30-2023":"2023-05-30T00:28:45.740Z","1.35.0-alpha-may-31-2023":"2023-05-31T00:28:48.320Z","1.35.0-alpha-jun-1-2023":"2023-06-01T00:38:46.955Z","1.35.0-alpha-jun-2-2023":"2023-06-02T00:29:18.358Z","1.35.0-alpha-jun-3-2023":"2023-06-03T00:28:55.176Z","1.35.0-alpha-jun-4-2023":"2023-06-04T00:33:57.589Z","1.35.0-alpha-1685749070000":"2023-06-04T10:25:44.670Z","1.35.0-alpha-jun-5-2023":"2023-06-05T00:29:11.977Z","1.35.0-alpha-jun-6-2023":"2023-06-06T00:30:22.903Z","1.35.0-alpha-jun-7-2023":"2023-06-07T00:30:45.687Z","1.35.0-beta-1686166896000":"2023-06-07T19:45:49.551Z","1.36.0-alpha-jun-8-2023":"2023-06-08T00:30:25.534Z","1.35.0-beta-1686201102000":"2023-06-08T05:14:25.099Z","1.35.0-beta-1686247644000":"2023-06-08T18:10:19.791Z","1.35.0-beta-1686262403000":"2023-06-08T22:16:04.633Z","1.35.0-beta-1686262846000":"2023-06-08T22:22:58.882Z","1.35.0":"2023-06-08T22:52:57.381Z","1.36.0-alpha-jun-9-2023":"2023-06-09T00:31:34.281Z","1.35.0-beta-1686326938000":"2023-06-09T16:11:50.862Z","1.36.0-alpha-jun-10-2023":"2023-06-10T00:28:31.218Z","1.36.0-alpha-jun-11-2023":"2023-06-11T00:33:10.302Z","1.36.0-alpha-jun-12-2023":"2023-06-12T00:31:51.674Z","1.35.0-beta-1686593312000":"2023-06-12T18:11:16.320Z","1.35.0-beta-1686615969000":"2023-06-13T00:28:27.615Z","1.36.0-alpha-jun-13-2023":"2023-06-13T00:29:15.992Z","1.36.0-alpha-jun-14-2023":"2023-06-14T00:28:05.905Z","1.35.0-beta-1686729081000":"2023-06-14T07:54:20.964Z","1.36.0-alpha-1686749586000":"2023-06-14T14:34:58.454Z","1.35.0-beta-1686760675000":"2023-06-14T16:41:43.213Z","1.35.0-beta-1686781587000":"2023-06-14T22:29:10.434Z","1.35.1-beta-1686781654000":"2023-06-14T22:29:46.622Z","1.36.0-alpha-1686787839000":"2023-06-15T00:13:03.801Z","1.36.0-alpha-jun-15-2023":"2023-06-15T00:29:32.859Z","1.35.1":"2023-06-15T15:01:21.201Z","1.36.0-alpha-jun-16-2023":"2023-06-16T00:30:22.169Z","1.36.0-alpha-1686940815000":"2023-06-16T18:42:53.693Z","1.36.0-alpha-jun-17-2023":"2023-06-17T00:28:04.320Z","1.36.0-alpha-jun-18-2023":"2023-06-18T00:31:59.622Z","1.36.0-alpha-jun-19-2023":"2023-06-19T00:30:09.317Z","1.36.0-alpha-jun-20-2023":"2023-06-20T00:28:53.911Z","1.36.0-alpha-jun-21-2023":"2023-06-21T00:29:40.175Z","1.36.0-alpha-jun-22-2023":"2023-06-22T00:30:13.490Z","1.36.0-alpha-jun-23-2023":"2023-06-23T00:32:17.717Z","1.36.0-alpha-jun-24-2023":"2023-06-24T00:33:42.559Z","1.36.0-alpha-jun-25-2023":"2023-06-25T00:35:20.951Z","1.36.0-alpha-jun-26-2023":"2023-06-26T00:33:33.539Z","1.36.0-alpha-jun-27-2023":"2023-06-27T00:32:22.982Z","1.36.0-alpha-jun-28-2023":"2023-06-28T00:31:58.968Z","1.36.0-alpha-jun-30-2023":"2023-06-30T00:31:39.785Z","1.36.0-alpha-jul-1-2023":"2023-07-01T00:35:32.148Z","1.36.0-alpha-jul-2-2023":"2023-07-02T00:36:08.551Z","1.36.0-alpha-jul-3-2023":"2023-07-03T00:34:02.219Z","1.36.0-alpha-jul-4-2023":"2023-07-04T00:33:44.293Z","1.36.0-alpha-jul-5-2023":"2023-07-05T00:32:46.103Z","1.36.0-alpha-jul-6-2023":"2023-07-06T00:34:23.953Z","1.36.0-alpha-jul-7-2023":"2023-07-07T00:32:09.830Z","1.36.0-beta-1688741463000":"2023-07-07T20:05:13.502Z","1.37.0-alpha-jul-8-2023":"2023-07-08T00:31:43.175Z","1.37.0-alpha-jul-9-2023":"2023-07-09T00:38:23.064Z","1.37.0-alpha-jul-10-2023":"2023-07-10T00:33:22.809Z","1.36.0-beta-1689001890000":"2023-07-10T15:15:25.692Z","1.36.0-beta-1689009916000":"2023-07-10T17:28:11.013Z","1.36.0-beta-1689010164000":"2023-07-10T17:32:02.246Z","1.36.0-beta-1689015563000":"2023-07-10T19:02:44.356Z","1.36.0-beta-1689015697000":"2023-07-10T19:03:53.543Z","1.37.0-alpha-jul-11-2023":"2023-07-11T00:28:51.654Z","1.36.0-beta-1689052257000":"2023-07-11T05:13:46.198Z","1.36.0":"2023-07-11T16:46:32.741Z","1.37.0-alpha-jul-12-2023":"2023-07-12T00:35:01.175Z","1.37.0-alpha-jul-13-2023":"2023-07-13T00:33:27.256Z","1.37.0-alpha-jul-14-2023":"2023-07-14T00:33:42.152Z","1.36.0-beta-1689341628000":"2023-07-14T13:35:51.675Z","1.36.1-beta-1689345582000":"2023-07-14T14:43:12.890Z","1.36.1":"2023-07-14T20:14:29.204Z","1.37.0-alpha-jul-15-2023":"2023-07-15T00:32:22.324Z","1.37.0-alpha-jul-16-2023":"2023-07-16T00:36:30.892Z","1.37.0-alpha-jul-17-2023":"2023-07-17T00:34:51.074Z","1.37.0-alpha-jul-18-2023":"2023-07-18T00:51:17.275Z","1.37.0-alpha-jul-19-2023":"2023-07-19T00:48:24.030Z","1.37.0-alpha-1689796912000":"2023-07-20T00:12:42.496Z","1.37.0-alpha-jul-20-2023":"2023-07-20T00:29:54.116Z","1.37.0-alpha-jul-21-2023":"2023-07-21T00:29:12.223Z","1.37.0-alpha-jul-22-2023":"2023-07-22T00:31:27.798Z","1.37.0-alpha-jul-23-2023":"2023-07-23T00:30:47.856Z","1.37.0-alpha-jul-24-2023":"2023-07-24T00:29:52.183Z","1.36.1-beta-1690219922000":"2023-07-24T17:34:59.967Z","1.36.2-beta-1690220597000":"2023-07-24T17:46:05.941Z","1.37.0-alpha-jul-25-2023":"2023-07-25T00:30:20.031Z","1.36.2":"2023-07-25T08:53:38.061Z","1.37.0-alpha-jul-26-2023":"2023-07-26T00:29:03.689Z","1.37.0-alpha-jul-27-2023":"2023-07-27T00:26:42.100Z","1.37.0-alpha-jul-28-2023":"2023-07-28T00:28:06.439Z","1.37.0-alpha-jul-29-2023":"2023-07-29T00:26:35.960Z","1.37.0-alpha-jul-30-2023":"2023-07-30T00:30:42.475Z","1.37.0-alpha-jul-31-2023":"2023-07-31T00:28:34.535Z","1.37.0-alpha-aug-1-2023":"2023-08-01T00:37:19.380Z","1.37.0-alpha-aug-2-2023":"2023-08-02T00:29:19.405Z","1.37.0-alpha-aug-3-2023":"2023-08-03T00:27:52.043Z","1.37.0-alpha-aug-4-2023":"2023-08-04T00:28:34.107Z","1.37.0-alpha-aug-5-2023":"2023-08-05T00:27:59.458Z","1.37.0-alpha-1691266659000":"2023-08-05T20:20:01.834Z","1.37.0-alpha-aug-6-2023":"2023-08-06T00:34:15.729Z","1.37.0-alpha-aug-7-2023":"2023-08-07T00:34:03.350Z","1.37.0-alpha-1691443998000":"2023-08-07T21:58:01.002Z","1.37.0-alpha-aug-8-2023":"2023-08-08T00:27:59.491Z","1.37.0-alpha-aug-9-2023":"2023-08-09T00:28:19.929Z","1.37.0-beta-1691560236000":"2023-08-09T08:53:00.771Z","1.37.0-beta-1691608677000":"2023-08-09T19:20:00.122Z","1.37.0-beta-1691620268000":"2023-08-09T22:33:16.059Z","1.37.0-beta-1691627113000":"2023-08-10T00:27:43.572Z","1.38.0-alpha-aug-10-2023":"2023-08-10T00:29:01.752Z","1.37.0-beta-1691677119000":"2023-08-10T14:21:25.816Z","1.37.0-beta-1691701681000":"2023-08-10T21:10:00.768Z","1.37.0-beta-1691704175000":"2023-08-10T21:52:47.411Z","1.37.0-beta-1691706925000":"2023-08-10T22:37:21.574Z","1.37.0":"2023-08-10T22:53:07.167Z","1.38.0-alpha-aug-11-2023":"2023-08-11T00:24:45.518Z","1.38.0-beta-1691778350000":"2023-08-11T18:28:16.112Z","1.37.0-beta-1691779052000":"2023-08-11T18:39:57.190Z","1.38.0-alpha-aug-12-2023":"2023-08-12T00:22:58.776Z","1.38.0-alpha-aug-13-2023":"2023-08-13T00:25:08.872Z","1.38.0-alpha-aug-14-2023":"2023-08-14T00:24:21.608Z","1.37.0-beta-1692005673000":"2023-08-14T09:37:54.748Z","1.37.0-beta-1692021641000":"2023-08-14T14:03:32.071Z","1.37.0-beta-1692022316000":"2023-08-14T14:15:07.170Z","1.37.0-beta-1692053004000":"2023-08-14T22:45:34.551Z","1.37.0-beta-1692055177000":"2023-08-14T23:22:35.326Z","1.38.0-alpha-aug-15-2023":"2023-08-15T00:24:15.301Z","1.38.0-alpha-aug-16-2023":"2023-08-16T00:28:08.763Z","1.37.0-beta-1692218405000":"2023-08-16T20:43:04.695Z","1.38.0-alpha-aug-17-2023":"2023-08-17T00:24:00.823Z","1.38.0-alpha-1692262648000":"2023-08-17T09:00:22.762Z","1.38.0-alpha-1692290219000":"2023-08-17T17:08:55.438Z","1.38.0-alpha-1692292098000":"2023-08-17T17:10:57.331Z","1.37.1-beta-1692303459000":"2023-08-17T20:20:02.696Z","1.37.1":"2023-08-17T20:33:10.288Z","1.38.0-alpha-aug-18-2023":"2023-08-18T00:23:24.205Z","1.38.0-alpha-1692320133000":"2023-08-18T00:57:56.124Z","1.37.1-beta-1692381606000":"2023-08-18T18:02:41.734Z","1.38.0-alpha-aug-19-2023":"2023-08-19T00:22:53.739Z","1.38.0-alpha-aug-20-2023":"2023-08-20T00:24:55.524Z","1.38.0-alpha-aug-21-2023":"2023-08-21T00:26:03.070Z","1.38.0-alpha-1692636622000":"2023-08-21T17:32:06.622Z","1.38.0-alpha-aug-22-2023":"2023-08-22T00:24:17.886Z","1.38.0-alpha-1692720102000":"2023-08-22T19:35:54.060Z","1.38.0-alpha-aug-23-2023":"2023-08-23T00:23:55.953Z","1.38.0-alpha-1692826278000":"2023-08-23T21:33:27.847Z","1.38.0-alpha-aug-24-2023":"2023-08-24T00:25:08.874Z","1.38.0-alpha-aug-25-2023":"2023-08-25T00:26:31.866Z","1.38.0-alpha-aug-26-2023":"2023-08-26T00:23:11.659Z","1.38.0-alpha-aug-27-2023":"2023-08-27T00:25:54.804Z","1.38.0-alpha-aug-28-2023":"2023-08-28T00:25:48.224Z","1.38.0-alpha-1693251770000":"2023-08-28T20:19:45.633Z","1.38.0-alpha-aug-29-2023":"2023-08-29T00:26:41.965Z","1.38.0-alpha-aug-30-2023":"2023-08-30T00:27:18.128Z","1.38.0-alpha-aug-31-2023":"2023-08-31T00:24:13.301Z","1.38.0-alpha-sep-1-2023":"2023-09-01T00:25:48.690Z","1.38.0-alpha-sep-2-2023":"2023-09-02T00:23:32.352Z","1.38.0-alpha-sep-3-2023":"2023-09-03T00:25:57.751Z","1.38.0-alpha-sep-4-2023":"2023-09-04T00:25:00.698Z","1.38.0-alpha-sep-5-2023":"2023-09-05T00:23:39.397Z","1.38.0-alpha-sep-6-2023":"2023-09-06T00:24:48.593Z","1.38.0-alpha-sep-7-2023":"2023-09-07T00:24:29.269Z","1.38.0-alpha-sep-8-2023":"2023-09-08T00:24:43.922Z","1.38.0-alpha-sep-9-2023":"2023-09-09T00:23:48.652Z","1.38.0-alpha-sep-10-2023":"2023-09-10T00:26:05.158Z","1.38.0-alpha-sep-11-2023":"2023-09-11T00:24:41.636Z","1.38.0-alpha-sep-12-2023":"2023-09-12T00:22:39.193Z","1.38.0-beta-1694481362000":"2023-09-12T01:20:44.004Z","1.38.0-beta-1694481542000":"2023-09-12T01:21:58.682Z","1.38.0-beta-1694484181000":"2023-09-12T02:05:31.320Z","1.39.0-alpha-sep-13-2023":"2023-09-13T00:24:54.235Z","1.38.0-beta-1694609184000":"2023-09-13T12:48:34.638Z","1.38.0-beta-1694622530000":"2023-09-13T16:31:06.569Z","1.38.0-beta-1694630302000":"2023-09-13T18:40:58.751Z","1.38.0-beta-1694630350000":"2023-09-13T18:41:33.992Z","1.38.0-beta-1694645757000":"2023-09-13T22:58:25.060Z","1.38.0":"2023-09-13T23:14:12.569Z","1.39.0-alpha-sep-14-2023":"2023-09-14T00:24:09.186Z","1.38.0-beta-1694724379000":"2023-09-14T20:48:56.171Z","1.38.0-beta-1694737022000":"2023-09-15T00:19:29.226Z","1.39.0-alpha-sep-15-2023":"2023-09-15T00:24:09.343Z","1.38.0-beta-1694752409000":"2023-09-15T04:35:34.635Z","1.39.0-alpha-1694746830000":"2023-09-15T09:45:30.327Z","1.38.0-beta-1694795199000":"2023-09-15T16:28:38.952Z","1.38.0-beta-1694799093000":"2023-09-15T17:34:07.101Z","1.38.0-beta-1694800048000":"2023-09-15T17:49:42.295Z","1.39.0-alpha-sep-16-2023":"2023-09-16T00:23:59.824Z","1.39.0-alpha-sep-17-2023":"2023-09-17T00:26:05.105Z","1.39.0-alpha-sep-18-2023":"2023-09-18T00:25:14.681Z","1.39.0-alpha-sep-19-2023":"2023-09-19T00:25:20.724Z","1.38.0-beta-1695084020000":"2023-09-19T00:42:22.558Z","1.38.0-beta-1695162431000":"2023-09-19T22:29:55.604Z","1.39.0-alpha-sep-20-2023":"2023-09-20T00:24:39.941Z","1.38.0-beta-1695182347000":"2023-09-20T04:01:15.681Z","1.39.0-alpha-sep-21-2023":"2023-09-21T00:24:19.402Z","1.38.0-beta-1695261931000":"2023-09-21T02:07:46.833Z","1.38.1-beta-1695325114000":"2023-09-21T19:40:41.401Z","1.38.1":"2023-09-21T21:55:32.553Z","1.39.0-alpha-sep-22-2023":"2023-09-22T00:25:19.296Z","1.39.0-alpha-sep-23-2023":"2023-09-23T00:23:40.532Z","1.39.0-alpha-sep-24-2023":"2023-09-24T00:25:57.222Z","1.39.0-alpha-sep-25-2023":"2023-09-25T00:25:31.123Z","1.39.0-alpha-sep-26-2023":"2023-09-26T00:24:53.431Z","1.39.0-alpha-sep-27-2023":"2023-09-27T00:24:49.257Z","1.39.0-alpha-sep-28-2023":"2023-09-28T00:24:30.526Z","1.39.0-alpha-sep-29-2023":"2023-09-29T00:24:56.802Z","1.39.0-alpha-sep-30-2023":"2023-09-30T00:23:33.891Z","1.39.0-alpha-oct-1-2023":"2023-10-01T00:28:10.813Z","1.39.0-alpha-oct-2-2023":"2023-10-02T00:25:53.908Z","1.39.0-alpha-oct-3-2023":"2023-10-03T00:25:15.276Z","1.39.0-alpha-oct-4-2023":"2023-10-04T00:25:32.471Z","1.39.0-alpha-oct-5-2023":"2023-10-05T00:25:15.622Z","1.39.0-alpha-1696536018000":"2023-10-05T20:03:32.085Z","1.39.0-alpha-1696547902000":"2023-10-05T23:21:05.502Z","1.39.0-alpha-oct-6-2023":"2023-10-06T00:24:41.854Z","1.39.0-alpha-oct-7-2023":"2023-10-07T00:24:37.822Z","1.39.0-alpha-oct-8-2023":"2023-10-08T00:28:16.028Z","1.39.0-alpha-oct-9-2023":"2023-10-09T00:25:33.052Z","1.39.0-alpha-oct-10-2023":"2023-10-10T00:25:28.132Z","1.39.0-beta-1696976263000":"2023-10-10T23:14:03.613Z","1.40.0-alpha-oct-11-2023":"2023-10-11T00:25:25.915Z","1.39.0-beta-1697047150000":"2023-10-11T18:02:35.643Z","1.39.0-beta-1697048429000":"2023-10-11T18:23:53.081Z","1.39.0-beta-1697057899000":"2023-10-11T21:00:47.627Z","1.39.0":"2023-10-11T22:14:15.110Z","1.40.0-alpha-oct-12-2023":"2023-10-12T00:23:24.456Z","1.39.0-beta-1697093675000":"2023-10-12T06:56:56.053Z","1.40.0-alpha-oct-13-2023":"2023-10-13T00:25:40.426Z","1.40.0-alpha-oct-14-2023":"2023-10-14T00:23:58.433Z","1.40.0-alpha-oct-15-2023":"2023-10-15T00:26:40.378Z","1.40.0-alpha-oct-16-2023":"2023-10-16T00:26:10.623Z","1.40.0-alpha-oct-17-2023":"2023-10-17T00:25:07.783Z","1.39.0-beta-1697575425000":"2023-10-17T20:46:26.227Z","1.40.0-alpha-oct-18-2023":"2023-10-18T00:25:19.841Z","1.39.0-beta-1697610523000":"2023-10-18T06:31:44.508Z","1.40.0-alpha-oct-19-2023":"2023-10-19T00:24:51.484Z","1.40.0-alpha-oct-20-2023":"2023-10-20T00:25:08.126Z","1.40.0-alpha-oct-21-2023":"2023-10-21T00:25:10.408Z","1.40.0-alpha-oct-22-2023":"2023-10-22T00:27:22.601Z","1.40.0-alpha-oct-23-2023":"2023-10-23T00:25:37.717Z","1.40.0-alpha-oct-24-2023":"2023-10-24T00:25:08.024Z","1.40.0-alpha-oct-25-2023":"2023-10-25T00:24:44.477Z","1.40.0-alpha-oct-26-2023":"2023-10-26T00:24:34.870Z","1.40.0-alpha-oct-27-2023":"2023-10-27T00:24:27.366Z","1.40.0-alpha-oct-28-2023":"2023-10-28T00:24:39.114Z","1.40.0-alpha-oct-29-2023":"2023-10-29T00:26:42.728Z","1.40.0-alpha-oct-30-2023":"2023-10-30T00:25:18.594Z","1.40.0-alpha-1698689075000":"2023-10-30T19:19:43.737Z","1.40.0-alpha-1698699804000":"2023-10-30T21:59:52.062Z","1.40.0-alpha-oct-31-2023":"2023-10-31T00:25:22.755Z","1.40.0-alpha-nov-1-2023":"2023-11-01T00:26:59.752Z","1.40.0-alpha-nov-2-2023":"2023-11-02T00:25:25.959Z","1.40.0-alpha-nov-3-2023":"2023-11-03T00:24:35.727Z","1.40.0-alpha-nov-4-2023":"2023-11-04T00:25:04.576Z","1.40.0-alpha-nov-5-2023":"2023-11-05T00:27:24.446Z","1.40.0-alpha-nov-6-2023":"2023-11-06T00:25:28.892Z","1.40.0-alpha-nov-7-2023":"2023-11-07T00:25:24.076Z","1.40.0-alpha-nov-8-2023":"2023-11-08T00:24:29.209Z","1.40.0-alpha-nov-9-2023":"2023-11-09T00:24:31.496Z","1.40.0-alpha-nov-10-2023":"2023-11-10T00:24:32.947Z","1.40.0-alpha-nov-11-2023":"2023-11-11T00:24:14.192Z","1.40.0-alpha-nov-12-2023":"2023-11-12T00:27:39.206Z","1.40.0-alpha-nov-13-2023":"2023-11-13T00:26:58.708Z","1.40.0-alpha-nov-14-2023":"2023-11-14T00:25:13.634Z","1.40.0-alpha-1699985898000":"2023-11-14T18:26:23.758Z","1.40.0-alpha-nov-15-2023":"2023-11-15T00:25:22.282Z","1.40.0-alpha-nov-16-2023":"2023-11-16T00:25:37.803Z","1.40.0-beta-1700102862000":"2023-11-16T04:08:00.494Z","1.40.0-beta-1700166666000":"2023-11-16T20:32:51.371Z","1.40.0-beta-1700170201000":"2023-11-16T21:31:37.234Z","1.40.0":"2023-11-16T22:54:52.508Z","1.41.0-alpha-nov-17-2023":"2023-11-17T00:25:28.568Z","1.41.0-alpha-nov-18-2023":"2023-11-18T00:25:04.134Z","1.41.0-alpha-nov-19-2023":"2023-11-19T00:27:38.681Z","1.41.0-alpha-nov-20-2023":"2023-11-20T00:26:24.758Z","1.40.0-beta-1700513314000":"2023-11-20T20:50:09.211Z","1.41.0-alpha-nov-21-2023":"2023-11-21T00:26:03.548Z","1.40.0-beta-1700587201000":"2023-11-21T17:21:57.896Z","1.40.0-beta-1700587209000":"2023-11-21T17:22:16.530Z","1.41.0-alpha-nov-22-2023":"2023-11-22T00:26:41.673Z","1.40.0-beta-1700679359000":"2023-11-22T18:57:36.205Z","1.41.0-alpha-nov-23-2023":"2023-11-23T00:28:15.329Z","1.40.0-beta-1700745654000":"2023-11-23T13:22:37.928Z","1.41.0-alpha-nov-24-2023":"2023-11-24T00:24:57.115Z","1.41.0-alpha-nov-25-2023":"2023-11-25T00:24:23.900Z","1.41.0-alpha-nov-26-2023":"2023-11-26T00:27:42.509Z","1.41.0-alpha-nov-27-2023":"2023-11-27T00:27:00.616Z","1.41.0-alpha-nov-28-2023":"2023-11-28T00:26:16.163Z","1.40.0-beta-1701132322000":"2023-11-28T00:47:29.450Z","1.40.0-beta-1701140508000":"2023-11-28T03:03:27.965Z","1.40.0-beta-1701194655000":"2023-11-28T18:06:36.737Z","1.40.1-beta-1701197304000":"2023-11-28T18:50:07.614Z","1.40.1":"2023-11-28T20:40:24.091Z","1.41.0-alpha-nov-29-2023":"2023-11-29T00:26:14.782Z","1.41.0-alpha-1701898456000":"2023-12-06T21:52:32.779Z","1.40.1-beta-1701899580000":"2023-12-06T21:54:48.537Z","1.41.0-alpha-dec-7-2023":"2023-12-07T00:26:05.025Z","1.41.0-alpha-dec-8-2023":"2023-12-08T00:26:24.138Z","1.41.0-alpha-dec-9-2023":"2023-12-09T00:25:34.995Z","1.41.0-alpha-dec-10-2023":"2023-12-10T00:28:24.799Z","1.41.0-alpha-dec-11-2023":"2023-12-11T00:26:56.436Z","1.41.0-alpha-dec-12-2023":"2023-12-12T00:26:38.183Z","1.41.0-alpha-dec-13-2023":"2023-12-13T00:25:45.089Z","1.41.0-alpha-dec-14-2023":"2023-12-14T00:25:55.182Z","1.41.0-alpha-dec-15-2023":"2023-12-15T00:26:47.334Z","1.41.0-alpha-1702665650000":"2023-12-15T18:58:27.732Z","1.41.0-alpha-1702670966000":"2023-12-15T20:11:12.329Z","1.41.0-alpha-dec-16-2023":"2023-12-16T00:25:41.841Z","1.41.0-alpha-dec-17-2023":"2023-12-17T00:28:17.700Z","1.41.0-alpha-dec-18-2023":"2023-12-18T00:27:36.845Z","1.41.0-alpha-dec-19-2023":"2023-12-19T00:26:34.875Z","1.41.0-alpha-dec-20-2023":"2023-12-20T00:22:27.348Z","1.41.0-alpha-dec-21-2023":"2023-12-21T00:26:11.491Z","1.41.0-alpha-dec-22-2023":"2023-12-22T00:26:43.798Z","1.41.0-alpha-dec-23-2023":"2023-12-23T00:25:09.302Z","1.41.0-alpha-dec-24-2023":"2023-12-24T00:28:02.784Z","1.41.0-alpha-dec-25-2023":"2023-12-25T00:26:58.853Z","1.41.0-alpha-dec-26-2023":"2023-12-26T00:25:22.144Z","1.41.0-alpha-dec-27-2023":"2023-12-27T00:25:23.573Z","1.41.0-alpha-dec-28-2023":"2023-12-28T00:25:44.317Z","1.41.0-alpha-dec-29-2023":"2023-12-29T00:21:55.771Z","1.41.0-alpha-dec-30-2023":"2023-12-30T00:24:57.388Z","1.41.0-alpha-dec-31-2023":"2023-12-31T00:28:58.353Z","1.41.0-alpha-jan-1-2024":"2024-01-01T00:29:06.096Z","1.41.0-alpha-jan-2-2024":"2024-01-02T00:25:49.468Z","1.41.0-alpha-jan-3-2024":"2024-01-03T00:25:50.314Z","1.41.0-alpha-jan-4-2024":"2024-01-04T00:26:35.927Z","1.41.0-alpha-jan-5-2024":"2024-01-05T00:26:21.592Z","1.41.0-alpha-jan-6-2024":"2024-01-06T00:26:04.152Z","1.41.0-alpha-jan-7-2024":"2024-01-07T00:29:22.140Z","1.41.0-alpha-jan-8-2024":"2024-01-08T00:27:18.074Z","1.41.0-alpha-jan-9-2024":"2024-01-09T00:27:00.441Z","1.41.0-alpha-jan-10-2024":"2024-01-10T00:27:47.046Z","1.41.0-alpha-jan-11-2024":"2024-01-11T00:26:42.214Z","1.41.0-alpha-1704968142000":"2024-01-11T12:09:44.692Z","1.41.0-alpha-jan-12-2024":"2024-01-12T00:26:30.001Z","1.41.0-beta-1705092460000":"2024-01-12T21:45:13.163Z","1.41.0-beta-1705101589000":"2024-01-12T23:23:09.682Z","1.42.0-alpha-jan-13-2024":"2024-01-13T00:26:30.614Z","1.42.0-alpha-jan-14-2024":"2024-01-14T00:29:03.096Z","1.42.0-alpha-jan-15-2024":"2024-01-15T00:27:57.584Z","1.42.0-alpha-jan-16-2024":"2024-01-16T00:26:39.342Z","1.41.0-beta-1705429643000":"2024-01-16T18:29:25.441Z","1.41.0":"2024-01-16T18:30:42.219Z","1.42.0-alpha-jan-17-2024":"2024-01-17T00:26:35.609Z","1.41.0-beta-1705516904000":"2024-01-17T18:44:46.360Z","1.42.0-alpha-jan-18-2024":"2024-01-18T00:26:46.093Z","1.41.0-beta-1705568792000":"2024-01-18T09:08:27.491Z","1.41.0-beta-1705607048000":"2024-01-18T19:49:19.880Z","1.41.0-beta-1705691527000":"2024-01-19T19:14:20.166Z","1.41.0-beta-1705698523000":"2024-01-19T21:10:30.949Z","1.41.1-beta-1705705504000":"2024-01-19T23:07:09.946Z","1.41.1":"2024-01-19T23:07:44.845Z","1.41.1-beta-1706549589000":"2024-01-29T17:35:08.595Z","1.42.0-alpha-1706562895000":"2024-01-29T22:24:15.595Z","1.42.0-alpha-2024-01-30":"2024-01-30T00:25:13.155Z","1.42.0-alpha-2024-01-31":"2024-01-31T00:25:48.453Z","1.42.0-alpha-2024-02-01":"2024-02-01T00:27:17.812Z","1.41.1-beta-1706807510000":"2024-02-01T17:13:24.530Z","1.41.2-beta-1706815456000":"2024-02-01T19:25:59.281Z","1.41.2":"2024-02-01T20:03:42.306Z","1.42.0-alpha-2024-02-02":"2024-02-02T00:25:57.804Z","1.42.0-alpha-2024-02-03":"2024-02-03T00:25:50.843Z","1.42.0-alpha-2024-02-04":"2024-02-04T00:28:01.702Z","1.42.0-alpha-2024-02-05":"2024-02-05T00:26:33.864Z","1.42.0-alpha-2024-02-06":"2024-02-06T00:25:36.069Z","1.42.0-alpha-2024-02-07":"2024-02-07T00:24:22.710Z","1.42.0-alpha-2024-02-08":"2024-02-08T00:25:23.681Z","1.42.0-alpha-2024-02-09":"2024-02-09T00:25:07.884Z","1.42.0-alpha-2024-02-10":"2024-02-10T00:24:29.365Z","1.42.0-alpha-2024-02-11":"2024-02-11T00:28:19.386Z","1.42.0-alpha-2024-02-12":"2024-02-12T00:26:20.760Z","1.42.0-alpha-2024-02-13":"2024-02-13T00:25:58.696Z","1.42.0-alpha-1707816346000":"2024-02-13T10:37:32.795Z","1.42.0-alpha-2024-02-14":"2024-02-14T00:25:16.890Z","1.42.0-alpha-2024-02-15":"2024-02-15T00:25:12.557Z","1.42.0-alpha-1707967288000":"2024-02-15T03:23:49.230Z","1.42.0-alpha-2024-02-16":"2024-02-16T00:25:07.058Z","1.42.0-alpha-2024-02-17":"2024-02-17T00:25:24.644Z","1.42.0-alpha-1708140911000":"2024-02-17T03:37:15.689Z","1.42.0-alpha-2024-02-18":"2024-02-18T00:27:31.249Z","1.42.0-alpha-2024-02-19":"2024-02-19T00:26:27.416Z","1.42.0-alpha-2024-02-20":"2024-02-20T00:25:19.076Z","1.42.0-alpha-2024-02-21":"2024-02-21T00:25:28.060Z","1.42.0-beta-1708467899000":"2024-02-21T01:33:42.186Z","1.42.0-alpha-2024-02-22":"2024-02-22T00:25:28.471Z","1.42.0-alpha-2024-02-23":"2024-02-23T00:25:11.903Z","1.42.0-alpha-2024-02-24":"2024-02-24T00:24:17.549Z","1.42.0-alpha-2024-02-25":"2024-02-25T00:27:16.741Z","1.42.0-alpha-2024-02-26":"2024-02-26T00:26:31.962Z","1.42.0-alpha-2024-02-27":"2024-02-27T00:25:33.657Z","1.42.0-beta-1708994059000":"2024-02-27T00:51:30.519Z","1.42.0-beta-1708998003000":"2024-02-27T01:42:04.185Z","1.42.0-beta-1708998235000":"2024-02-27T01:46:02.073Z","1.42.0-beta-1709049149000":"2024-02-27T15:54:26.603Z","1.42.0-beta-1709060724000":"2024-02-27T19:08:02.073Z","1.42.0":"2024-02-27T19:08:31.731Z","1.43.0-alpha-2024-02-28":"2024-02-28T00:25:47.039Z","1.42.0-beta-1709158069000":"2024-02-28T22:10:30.781Z","1.43.0-alpha-2024-02-29":"2024-02-29T00:25:39.944Z","1.42.0-beta-1709198925000":"2024-02-29T09:30:56.786Z","1.42.0-beta-1709226226000":"2024-02-29T17:05:52.868Z","1.42.0-beta-1709239763000":"2024-02-29T20:51:27.093Z","1.43.0-alpha-2024-03-01":"2024-03-01T00:29:11.860Z","1.42.0-beta-1709254258000":"2024-03-01T00:53:13.228Z","1.42.0-beta-1709262915000":"2024-03-01T03:18:00.792Z","1.42.0-beta-1709314651000":"2024-03-01T17:39:52.558Z","1.42.0-beta-1709314844000":"2024-03-01T17:43:19.811Z","1.42.0-beta-1709320822000":"2024-03-01T19:23:09.374Z","1.42.1-beta-1709332975000":"2024-03-01T22:44:53.582Z","1.42.1":"2024-03-02T00:21:18.998Z","1.43.0-alpha-2024-03-02":"2024-03-02T00:24:20.122Z","1.43.0-alpha-2024-03-03":"2024-03-03T00:27:26.607Z","1.43.0-alpha-2024-03-04":"2024-03-04T00:26:30.367Z","1.43.0-alpha-2024-03-05":"2024-03-05T00:25:17.507Z","1.42.1-beta-1709665345000":"2024-03-05T19:04:45.056Z","1.43.0-beta-1709675102000":"2024-03-05T21:47:21.739Z","1.43.0-alpha-2024-03-06":"2024-03-06T00:26:32.976Z","1.42.1-beta-1709718680000":"2024-03-06T09:53:13.396Z","1.43.0-alpha-2024-03-07":"2024-03-07T00:21:31.754Z","1.43.0-alpha-1709823751000":"2024-03-07T16:14:39.016Z","1.43.0-alpha-1709847741000":"2024-03-07T21:48:30.918Z","1.43.0-alpha-2024-03-08":"2024-03-08T00:26:00.700Z","1.43.0-alpha-2024-03-09":"2024-03-09T00:25:12.383Z"},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"dist-tags":{"latest":"1.42.1","next":"1.43.0-alpha-2024-03-09","beta":"1.42.1-beta-1709718680000","rc":"1.18.0-rc1"},"description":"A high-level API to automate web browsers","readme":"","versions":{"0.0.1":{"name":"playwright","version":"0.0.1","description":"Erlang-like microprocess actor scheduler","main":"index.js","files":["*.js"],"scripts":{"prerelease":"npm t","postrelease":"npm publish && git push --follow-tags","pretest":"standard","release":"standard-version -s","test":"tap -J --coverage test/*.js","update-coc":"weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'","update-contrib":"weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"},"repository":{"type":"git","url":"git+https://github.com/zkat/playwright.git"},"keywords":["actors","concurrency","processes","threads","erlang","akka","workers","webworkers"],"author":{"name":"Kat Marchán","email":"kzm@sykosomatic.org"},"license":"ISC","dependencies":{"uuid":"^3.1.0"},"devDependencies":{"nyc":"^10.3.2","require-inject":"^1.4.2","standard":"^10.0.3","standard-version":"^4.1.0","tap":"^10.3.3","weallbehave":"^1.2.0","weallcontribute":"^1.0.8"},"config":{"nyc":{"exclude":["node_modules/**","test/**"]}},"gitHead":"98ab3a4ad252411d0fe9d328e63e76b8a585fda1","bugs":{"url":"https://github.com/zkat/playwright/issues"},"homepage":"https://github.com/zkat/playwright#readme","_id":"playwright@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"zkat","email":"kzm@sykosomatic.org"},"dist":{"integrity":"sha512-/GrOwWFfZ8eSJxMAlIsPihTZLokMWFhKsKQqGSwPZMIF3yvdxaJICLU3DbiEXpZ0O8V9zL3Xiz9CnTmkDYLvdQ==","shasum":"021c3bab79abfce49dbc7f1b0f0a4d85a74002af","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGu0COkuV9NvjQIABYEPbfESIWAapFb0vBiGbaMLkEhAAiEA84V5miuwDC8FaHxm0wGmor+6IBXd9KFvori99/rER/k="}]},"maintainers":[{"name":"zkat","email":"kzm@sykosomatic.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright-0.0.1.tgz_1514406653026_0.03439644002355635"},"directories":{}},"0.9.1":{"name":"playwright","version":"0.9.1","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"719491","firefox_revision":"1004","webkit_revision":"1011"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && npm run test-types && node utils/testrunner/test/test.js","prepare":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","test-types":"node utils/doclint/generate_types && npx -p typescript@2.1 tsc -p utils/doclint/generate_types/test/","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","mime":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","jpeg-js":"^0.3.4","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","pngjs":"^3.3.3","progress":"^2.0.1","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"79d3b5dffd0188005fb55ef798e6e688c59640bf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-9XV3K/XyfY3Y9MElb+7ML3E2mZHOnJbB3LCktcspmoYkjncH2TaBuw3IZRd1+nB4U/Yp2uSKg1OzeTez8/fmsg==","shasum":"10980dcdc1c7f777f4ed9a82043b2c064146ce92","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.1.tgz","fileCount":106,"unpackedSize":627665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6XXACRA9TVsSAnZWagAAVv0P/RBqbZjhUhhFbsntTfjU\niQidVt5Vhlr3PonT6kb2L5fFKntNzJqoh32x09lfZZVWIOm2rDIw9wS2PTNR\nu/vrEsvKVUfPaPpidsc5jnN1s3yZqOirvw1nY+zOAFxpWdnKvORMzoR9wFAX\nojCKfCPAVwWnJYQZWn3K7OjQui2VW4lTVNkKFirovrMB4FLpiUMrCDsDZvVU\nXQLlzKMDf/DTk/TYl1KEIwh7/FDmZYEEcfiswWDv7U8iz7YOLftNTxrlp9bu\noAazQ1THTBovqORWuQ0A3Y3Ry9esqumQVDuVQPNeYAzA6Z9lC/Xz3KSrEXFd\nk4SpIlxmG6zKigjMFg7XbjipIfdDOxJJUd7hY65hf5f4+wsie4huByqq//G4\nJiOX6xx7LcQjcUANlpe+fJZxxvbB2Xyv+SodlEvdPXer/d/bDzrt/mHhrHAP\nsCVqCCFpDdmG9H6kmXangq35/0g/USFlFbAOu+T3F+bdafwx0siZAVnTY3Qn\nh5wNCzlTDpqXEbmkyzNmckBzR847dFZfKi77RnrKWEuj2hpeUjQRYfOLLhlQ\nqAS9wkDm70TPoPmh2SUWCS7x23InAQID0OCks6V59GP2u2KyVBiHy0MrxnD8\nmvARxycfKXFgqbagEoKGwVHxAuDsLgwfD9iHaJ5XCEJZqZaogPaHAr+g3QNj\n31XH\r\n=TDMc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBRHdKXwvZltQmfiOaVcvAt0BBXtuJsY0p43p9GUGwbAiBGwsYl3DQY6r6ioV3UZsLQtjBqxTrJFKGxXr/qxRuOwA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.1_1575581119855_0.4710011856214318"},"_hasShrinkwrap":false},"0.9.2":{"name":"playwright","version":"0.9.2","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1005","webkit_revision":"1036"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","prepare":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","progress":"^2.0.1","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"d78613e57d50af678a8f897dc9f766090bc116f5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.2","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-aOFeraFrYiN8WFs3eqB0cPSNrjo1DD9OurNzgZnpYC944zheb2J71DIlCaX95VXZ7iKgHZo7vF2ac2yyfGVTdA==","shasum":"fd8900aa5fd876715eafc42b31efc8b2ad5fcabf","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.2.tgz","fileCount":316,"unpackedSize":2551680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9TvaCRA9TVsSAnZWagAA89sP/2YxFFue3H7Hf6slI9GK\nqah5DewB6vOo02xFsLJtpr/LENy2hMI70llCOEVf89KRsS9bDA33yVQ+6faR\nmb3536CNJ3bbwnnzpiNb4SItZW5palv8wLKr0m5FlnWnp4qIapLQmizhbNK8\n3lURH9Iex9F2c/SwQtXn3bCqIugAaodJp7QgH+YBkPcohR65BtJv3BVUANTt\nTKldwoMZaROwR3mTPXZ8j7piRzat03vGoJFHQzPXi/9k+J9x3gypQAhWmhjq\no0E2BmC6z9+huIhoR9RvvWFPYYqNGElVfuzmZHDKyVeYR3fypaV8zii1lNWS\n1Qk1sqEm6rKx1VWFS9Yo8sRz/xTfcYy1V0ISmI/KVGZySFrbywY9KFP3HIeR\nIAArQyDn4FI2HY1Zm8J1nixl9I63xVQVZUfKkaCg1LftRAxjpJyT2dwJU2ai\nlYE0Iyk/I7r3j32DAZBApdWiVnioRNpfjI9a/ZIx1rMo3rST324AeYme+/xI\nzRgJFHsHbT3n3b8eBwG65DJmBwgVZPkrJrdABRokBxXhIPPw+SKKbuh4GYTr\ni767CIZqPnRAnkXqIkRiDIQ7GWHtn9Ihie5wyFDoHQOqcYGTiBp+dmcy+3cs\npkl1R2a7jIXgzWKFU0eltQVKU4svDlGCxsqcq6BooctGqi6uRIcDyluRvve2\nzjoL\r\n=ZQoH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOCpmU+slQ/wGnZU/f9s0o4rY4jYTN+OG7HwDzKKVk3AiAw7dbglHUDOFBy9+CqWdBeWyM7dqkkczk2WwPda+PBxw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.2_1576352729588_0.054050592241188244"},"_hasShrinkwrap":false},"0.9.3":{"name":"playwright","version":"0.9.3","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1005","webkit_revision":"1036"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","prepare":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","progress":"^2.0.1","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"9dee16597610de824caeb7a8e0b74f91e1e49657","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.3","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-Xv7JWH8/eXykVMuhsYkwiejfAYraeSrDmBmLrGMel+qvQllGqVoaSdQgA5AXXCBnpxl6EyBqGYNCb9mNPsmnoA==","shasum":"f41d5bebd6781bbfc33f292c60d14000edda9345","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.3.tgz","fileCount":317,"unpackedSize":2563478,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9T6FCRA9TVsSAnZWagAAbFYP/Rn6Xl4lGXD4HNrGHr4E\nF+whO4SesiTGuqBROIDVt0ZTEWL5iqjfLfFJ/SbS/7+baf39+PzpXwhCinrT\n3M+DrZXE7k66UOZ4A+tXkxrcC76j8H1Eu1BxDAzH7BErfGHnkQAmg33WOt2u\nR5lqClvOSK8dSTCzB/QcrREo3UwpmTxeoVUBJrFIpE0hsHZa0EUdfm/hqQmD\ngNxHAKSLneqi7A+QTnrZeElIQNYkL+IGX04K7sFB4CdUoGiihKLPybNXFSAE\nQF7/ho526IY8UdYvWLAOjxRZBQzKqMTwAIQHIuRNDT8gM7bcsas5nvxK/zS3\ntCeUEJyb7uL1CCbVf+8KKps4tPEpefBTmAVYJDOHGkQHlYYKqWaC/23ztQ0b\n0qhgqHgF4a2Mo0ZwfMQSvJNbrsrr5ZiReZZwIrFo+bRDDgRXZpu4s5aqT+8z\nsbovJ1fH3W6ocvv2lq4JckC7cPzPgdSVZZcsc71IR7h0/MMTYgm25Q1x1N4R\nFXG+14hd305ve2E6gLIRzxSIrua8x24IrE8wdgGkwQeIHYxOCl+EBzihvckz\nbhdSkO4Dx/mYa/9WBYgQRsd3gAiADf3K9WTVjBqxrFWXxL6zRca0bd+UdHWh\nMjNu8XUh76IbmxHHbs0CWph8E0OPwIA3TVLsLjX1JsaTy/8bQA1/+r+EJw2/\n3bOe\r\n=UmQM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuVCAKTV/yU99NQ0S2SKqH8koTJA2nbv2f/2rh5wXONQIhAJJpJI74FwgFpNgnjs6ZFHnV7EYNxPW8lp8JVTIyvxgA"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.3_1576353413411_0.22847938616917607"},"_hasShrinkwrap":false},"0.9.4":{"name":"playwright","version":"0.9.4","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1005","webkit_revision":"1036"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","prepare":"node install.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","progress":"^2.0.1","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"9144a1ce93de826984ddfd657319356891614909","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.4","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-/XumzavPc2xCjP9X7HBb4u48Ybat7KS+KzHy+/d5mYz0DJLrLw///yV93x0qCTReEjHK3WAyw1tIs5O3AbSG3Q==","shasum":"4919b622cc12100928d96c89b9e02e255a6d0f2d","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.4.tgz","fileCount":317,"unpackedSize":2563646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9UKsCRA9TVsSAnZWagAAc+AP/1Ro7XTgNe7Y/BA5hAg7\nEB8of9S5dTTgR1HsHJlYcm6+HwxMGjEokqmrqiUV54/lKAQuYES7tmyDPNNi\nZNAs4EnqQVNyLftyFgIBR5ZV7FqClwGQtW4KLImoTAFwNAWqOnjsKdOzXq0g\nQqY+An6CLVUOq4I7iTq10b9mWOcb/HiOLp++9QuXYNCVLnbNiB61c8Lu4Ppp\nki8SJHUyKihuxXvpSFlA05RSS/wt+IJTB/HzjNjZq59tLGznfu2b09ICZlSe\nJpYYQ0duC724O/QSAGqkcJOQ8A5o4LWBaFoKQSgWn1INrK68EF4rFeFT2fbq\nlrD1o0SAR+Ybn066h9QUchkP8H5bbl+LftaW4A8g9uNdArYf+5KSzLeIHCeE\nUSqvldVkaK46l3Lud4MNwieraP7dPPwJpeUiyQOz16h+RnZr6cXZGTVys9yv\n7eInmXh/PG/KGl+SBRY9JS/o/9/qLBXDNtf7RWCb5Ang+n388OOT+943Zo4a\n5CTddQYhxUM02mFKJPpS5DZWQO2/x5ThiD6PPEkwMixQVfw6wGXhQWzgJWqY\n/bNwEOkmc/IOaCeZFBaosFxSD3Wf3JQKgqkSLEqwB1wWTNuHhvRrj9szSkf1\ntFpL7ZcR6XLF3y0P7OGCEyvdEhz8yYh+a12hsMI0aQIVFwXzvX2U3YqOthJP\n8ghW\r\n=npIA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ/mEPDmK7j4DRv/4/kb7zx6DGczBWX+hadAXQIH5V8gIgXJ13CLvLV+Vn8RUlFI+r3p6DcDnHtgkXeBj0uH0Cdu4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.4_1576354476058_0.6928610961767983"},"_hasShrinkwrap":false},"0.9.5":{"name":"playwright","version":"0.9.5","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1005","webkit_revision":"1036"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","prepare":"node install.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"58fa2c7a10209a15c488ba57cabefe3c9107dc79","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.5","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-sLKU9V+ClCWxJGuO6wz9rqtWmoFeXdHY5RmRaMudt15aLwVktQBLSaluDBhsRvskX25Q4/DMwqtibND4RN1Hrg==","shasum":"f3d78d5c816a27f893c8df15a8e3f7319438d583","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.5.tgz","fileCount":317,"unpackedSize":2563646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9UM2CRA9TVsSAnZWagAAu8sQAKOg9XcIXKqkSFRi83wG\nD1E0BS3Bzi6ncatj5CpR0KsuZPuM12CvZaWErITHN373uwUeYQK0Y2V/FmpA\nGUAWnFtOHDKYv3x6oMR7mEylooTVj+Z/VSzg2yyld+6z0O17cJQ1xFHisbr0\npYpSMvOWVcQHghwQt1PgRJqG6Ekt2zt8n1t0FKjQd+ZwU89cxmQm+JZrS3Df\nXhBMKtuKBwq4K8tmpZnmrDgdh4C61DR4McnxeGvwuBNaffw2Lc5svV71IsRG\nbRjbsa8/QXgb5rs7trcqKivegBxHCOSFnVYtLOASUeVmUEfWmbkNvM5AOlD/\n3CAgbGNNOKPUQGJphFCp5Rj1AK8W4PqLrCJcqFC8qhwslvZyAzPnLS4SAoL7\n2Yflzk4YybxzQmuqBVBnhmWm2kjapJv/8q3dZwRpSHp8OEp9lSDsIUx7G39y\nE0oMKzfPx2Dz+Xl6mfFXkok4L/asJp927sMqta0BBatGf5p10A/KctHpOye6\nCV5ynbGTvLjaoWLaABTUM5xwo+vfGfEzu58AfLfut9+EL56JRMAaSa0cYJW/\nSFdkxqSGU1B2JbMbZodNyADupHuSaAia9PNG+GlEdNYvl6U+5GIYk+u2zXod\nfUzFidF1EmEmEXvBKE65I6Kb4pFZHujaOF3csB0L2ccaHP5TWQWvIYG/4we1\nqnjj\r\n=/8aL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/046KJ39cz4EjysRbwbKdGMzgTmzxr4Ke78iReB71RQIhAJKrrmYqPVjkUpmI0ZtTzmivTPyAzGdtMCRR7lv2qdRH"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.5_1576354614433_0.8699067812078951"},"_hasShrinkwrap":false},"0.9.6":{"name":"playwright","version":"0.9.6","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1008","webkit_revision":"1046"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","prepare":"node install.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"60ff0e50eb42590a01e9e0fd4e04c63015f2ff64","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.6","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-8beKzp6pS7k+T1etmwOyL+/LmxZXqoKWiby26KgFmBvTQNAIk2Zqjw9cG31MZj21aetWaeAN+Z4x2xlsvw6yWw==","shasum":"e76fdc63c7cf58eb609c46029eb731428f682a71","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.6.tgz","fileCount":320,"unpackedSize":2595322,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/BBeCRA9TVsSAnZWagAAxHsP/iLrB5HZvil1PQR2N0Ca\nmHBOeXR75gM+GcDkACUanAbk7JK9ipjep0A5M+UBH/Xo/k1w1oFBeA/wMZ86\n0iKTol3MM6uDq0+R/DyVJP8okRggZGIqkX/MIU55pYjIXSt0nL2moAf0s+54\nYRMb/rUR/gXmGge25vrgdm5mXrflGmud9mhfFi+Jfjxem2xm+3t8vHSPU2ZP\nymJa21JM0v1LkuQOX8EVPjcXb3dRstKF/kBtFmGLEeYUG3dLQcgloE5Yi20X\ncQp/N4GFZOD3U3GxdYiAR5q3u/8gT6WsDxjBmuLq06kt0l4GmUyWWDcFBJx5\na1PirlhaD+bRG6NzDkWVfxlua7QlYtI5083d2lqE+Ozg3J24lf3h35VT6JPO\nnGCa4NapyeLPm4qA7ZjjhLQIoMiQX+f4XN3or8XWkso6srhXu33J83Ej0lW1\nJHLYezriFcINAHGEHvzNmkockhLtOMrqs+12moFItGNe7nXHryN2V5QiYHLU\nbYZXH6OUPxneHYGMMn28OD+vG7FBRkRrFo9KeKVlPukUrUg3HnDqmwOIDb/w\nNm1CjBtWZfHfTnL0+ghHyf23CrvmyUMFNuDHHcs0yQHx2mJ+8BlTvKc5e0ig\nv/nJHsuwQRO8JIHNVBPfqv9mi/tc2eNvp7a2te/TI1/40QGtI9+JaRW6d/sS\nXVQG\r\n=Nz0k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBdW9QqipIbLAbVkpKIAs+NrR0DOWA3eeoRnuFRLdX3hAiAD6mhQ1I6o7+WWRRjHR+nCXRYmhi+o25EtduBmwjJgpw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.6_1576800349499_0.43256923430513994"},"_hasShrinkwrap":false},"0.9.7":{"name":"playwright","version":"0.9.7","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1008","webkit_revision":"1046"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"536c50db78b7e9f149fdb2c5b7479cd6a422388c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.7","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-iq7Qdd+EYvE1nv1IWI1aysNgxsvkb9qDwds7hWcdNnaKURIx8+RWbq0jBcYBvcbzu/0kJAjKtX6yCUicIkQUzQ==","shasum":"3c4197b9e26c4f7daedc6896da44604da3923229","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.7.tgz","fileCount":168,"unpackedSize":1687498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/Fy+CRA9TVsSAnZWagAARcgP/Au823PC/ZN15DDvp8Pb\nJrcNKW5o0bvjd19zPWHb26mhvmQRbSdCu/YpM6kW8JFasI23yJn8/Naq3oFr\nNMw+JyKx3gCjEe+YaPYOHv7vCdrK+qXarJAQUQOovV5agoV5i5RVWXBSP5X4\nxUpupiy1EFcxZ/KdBYJDvARzLbdq/utEuMcvYeT547OMNrGWH9+oJmiQ/7dE\nqmo8mMlIS4zZFqgtzUYseRKzEFiEd/OTjBvz7lau6+HYJpaqE2RmUdOBVdrz\nwj8NiHEp0odwvD8+tocBzX97ZXrbXv2fjHTwh+J8vpAGW1N8yGTvoeUz99GY\nh3PN+COZLS2YEngpg+uKeDgrAmnAtoqaryKaYX5J/ZSU9n/CC+Gxq8LshJ6i\nRN6kYMB4D765o7EupeW1iLb3eJqWPRPhs0RQopQ/1UFbZL3N0VtRuNMtV2h4\nKRJ/X92jgtrPQ+YS+JxEtEIb+rybGWOoH+aUbwkMAU1Ts29XozUToz32+IfZ\n6yuq7ubdcka+dxc+bFaqRsZiiDoPEpiYVha48+HrEg2WCO7Vrg9eyW2TEyjv\n+gZlGJEVPvJ3sByuIM9slJpo/yuxB81zBWBstz3+rsUjaiE050s19ZiYD0b7\nn5TW6S0MxDitt42kMov7n+i7+QelfzsBTd+PnLO0aDhSl7JyompNu8P08kaG\nUpWe\r\n=KQ3T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5h6/5z3M71FHtaCCtgqRP9qdJ1CBeSibdJjbKHRZHRwIhANYqDKxRxfk39pjVOPkasBbDDU9aLqjk0k4ItvYbhBHN"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.7_1576819902358_0.6130455370626453"},"_hasShrinkwrap":false},"0.9.8":{"name":"playwright","version":"0.9.8","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1008","webkit_revision":"1046"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"735d3eeed7e9f1338b69e8537660e43e5eb2de04","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.8","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-A3q+dG07+UqtyvgD/6qksFPAXU85ieBFQa//fUHkVZP9oSY6O3y1j+BexWYjGksB3oFJ6auGCiztWujgQBja2Q==","shasum":"0e29abecd22f931d16711aaee05216ccfb75c2a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.8.tgz","fileCount":168,"unpackedSize":1686843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/VpMCRA9TVsSAnZWagAAeooP/2kORLl89v+esbfiXcKM\nKCvv7u7/5MeNWxvSiWu0n3a7Ch1i8kHehxZaz3gLqEfltu+9p43dFWEeXhBK\n5qA1vLH2/Hv5mMxWA/d4ZIWkatCSAc97+068KqOSTxCJAmMGLj9Nx4TMJ2cQ\nI6wSBCaV6N3OF0kvQ9kbKI62zA6csDUDuU713LWJ8gC0B7ddXJfLWk7AuqIa\nRHjvCdSxC68Up6lLL0yLsjezboWqxxGMelAR2Yx+UETG9vfq/KoAQT2gdHOv\nEQwsb5aSiYanODXnHEOxjl4xwI43ifVd02U0bktRrOvCyEqL2i7x5Rh0V3EH\nJ5UIgQk80HsdRgyhqBS7V1I08+0X4RbxOtPNmv+3yUaMSWz5i1BJ6gN3GplO\nKpWOUyfBeVg1CymHPz1rCYPtSVLWpBmU2LsA7aAcCvCrU5domo/ujIq13Bn3\nDCVcQNWzvfNbgPa/iWKOBSgQmqkaAyRsPBAb8I8zH5thh4wxbDuIEmmquLP4\nSRMcKAxsoAqKC2hokKRPO5N9lkqPwWMsVr/9Zo9alpT0zEeAJ7/L8tE0L6Ar\nu9EDAQQ+HxqVcfIR92+7YfO6/YYwnOuu4yWAdiUTODrsBAK7T7q6rSDyg8UL\nj56X24q+JdJgZKkb8gu+ku+4n53vspbPFy0axm8+ekz3z+aJkC0Gqzzc798P\nhojy\r\n=Y1L2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTMxH7lSb6t72v/xGaQsBiGIuw/LG9k2XBEFao+Lb8JAiA9F1Oshz1c9oV7wwu4gT3kHqzt0rCwah2x8hvXGReWpg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.8_1576884812387_0.02083697194663614"},"_hasShrinkwrap":false},"0.9.9-post":{"name":"playwright","version":"0.9.9-post","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1009","webkit_revision":"1055"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"27c018da656a281ac1efb1f779d1efde7e3c9c62","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.9-post","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-XK1n1DbW0QKuyISJMheF36lBjfsoEzINOimr0Rqp3n8SzNaHBi44p0LGKqcHSrs0PZP9TFiml5tU354ooF/QXA==","shasum":"acbc141adc34e536ab7045e8d7eb862b403e46a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.9-post.tgz","fileCount":270,"unpackedSize":2117128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDnk+CRA9TVsSAnZWagAAjj4P/0KcCIlolZjo1n5Akwxy\nfRRfczE0yYQEa4oWSms5jPps3D/Jrhql2S24RrefRaQDkE/+Hi0/gxppTnr6\nUx7s26K8N1iETJgvEIfs48sfcgQAAOBdUGBkz8iiWrgbMe2Re9RjKSvZ7BLx\n2tGPUt8xpIahkt3X7rUO93LG/InE1rZDg7s16CQPdVA6m3QhfhZkMPs6PS8m\naOIfFPoBpUagNODzzRI/TmJgZ3i4PfiW5pHpjf6+fYv7q2A3qbI6JjIrlVQ8\n5NTtx7Zb5+TA85VB1C7Vy3HA3xXwOQAofXq4Yzk7PTSkOZ2sEHP3QNqLUCCF\nIbsd0R/rqx/2sCRAKujvv8Yvj/pnoMePt4TCaJNHAlKBg6MkJrSSBAmKETrl\nBakPtHTpFjxNILIyO6arkI4RxK4ukod1Qe028vFd3vm4qbTxO7M0Loi4OUHR\nUVP01NW3tl31D322/lhjb58WE/euyjtIpAofABQVc5iFhnomGcwFEg0jgY1i\nrQp/x5NN9nzZknq4/o9ARYstoiU6fX7S19jHQn5bRlnirs82hiuHCndi5RBV\niuhUUCg91NL12VWc6gXBj/+1ly+J4/JeleDmjGrOS1aog9sH2lg1TkGF70kg\nmB7gClbAt+sV82775sQH6ZLyETQjzZlguyX2s9MT0ddASiJmvQ72/8OvcKyP\nJ/DU\r\n=myhg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCF7eqohi1Tb76IuZs2tDXb044orCL2SfCnUvfVGY0wGwIgBCQQgHQVKQwPN5GRtsgy88HSByoa6Jjh9DXKH2eTq1w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"arjun27","email":"arjunattam@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.9-post_1578006845930_0.9720571823654991"},"_hasShrinkwrap":false},"0.9.9":{"name":"playwright","version":"0.9.9","description":"A high-level API to control web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1009","webkit_revision":"1055"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"MIT","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"27c018da656a281ac1efb1f779d1efde7e3c9c62","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.9","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-5tKmsMmqy9ZokberD+X7/5bAgr/S1D9E4QMZQsF95wyDH7TgDlLJuamaFNiXGwlAkEFwxQ1w/kLEhsT5ONUIQw==","shasum":"3246a2b45741b8af3d0830a973c6ed7fc2e94786","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.9.tgz","fileCount":270,"unpackedSize":2117123,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDnnLCRA9TVsSAnZWagAAUqEQAJU+s1//GbZDUa4s2w5x\nTT+6Xdur85fFX0vMr4zmpd2qQc4tdHQ7FcwwX/LoG7qg1GgNU43Le0v6Mefl\nPFUd5Mng0znSzwOxTLkALvIZU8HGANU6jmnyOWAI0yi6dHb1lgvJ7xLuOZOu\ndev74yKnWpSGGz3OKxmuGQ+RuBCGQQ4uxHF/7RDyoA2ForEF3pg4E985Zqft\nmiBOigeqJcVwyoH0olSnONrOHMm4ldJHmjUXZ+7XZ8FWd9/6JHYCQjNwESF/\nngiNWVoOzW0kXZzy+NhVBzawg0Vom7f6CiedMsOVlFpKCJXC20MzyHFg3bry\npRvx3LQDdQelTqe4ru921aD0XGfi0HW2p62qFPF0xgYH8+nmzF0m8QwULkOP\n+zxcaAtRaKwltdHFXAzHkjNPs0CHP4mHuFJyL42mJv33pPBXv/iz42n1LChS\nP440CCu9mtGlfWmXWwedhse0L6wtvKo3gcsc+U7TBvgUAefzA8tgDDnE5Pjk\nySqcSXjm3B2YhHlJjd+WogS2wb8lMlhoGJOxO+hJGDapO04niyHY46uHZ8pk\nJtCvm2OupinMyJRSdt2vZZdy9YONCqe3dl51N2pp4LizCsO2kWzFOCtPSoeh\nPH2/JJdAg6/ZvmAD+yJkXtw0BWY2IzpXKWNnN/mRjqWvYeVZ0OAp5VEIPY+a\nPqi9\r\n=UXPg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIALICRFZ9xRCszbo1nsaIwnxcYgzg+Zewa2J6U8IOPdQAiEAmBiurDEfY9X//bXnRNz/eifgUczajmR4ZGPqimMwdEE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"arjun27","email":"arjunattam@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.9_1578006987413_0.05058296695765252"},"_hasShrinkwrap":false},"0.9.10":{"name":"playwright","version":"0.9.10","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1009","webkit_revision":"1068"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"eab51087198a7a1f5a941ba7cc87d8787f3532f3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.10","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-3ziBMVqCENZxbf4/WvKvtqrOGfxgV8wuOX8h92uwy/RZOd1f6+MtXaXchbEW9tSTEgCQslMIo2yqBbTuCfaYxQ==","shasum":"067a6d3b52f38d796a75448b7207253f6a691ad8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.10.tgz","fileCount":270,"unpackedSize":2130094,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFR+GCRA9TVsSAnZWagAAtMkP/1Iu+GmgzKN2mJNvJxLS\nt8w2gMQZQwVNHYcICMsi9Bhcz3ztIDz8mz2eh1Pz0WcSIyuSpuf6Dxf+ptE3\nJJpQ0Sivw/bI87FzkHYyag8VeNPbJdStew7/VbF3p4yCqGEUhW9XU8owXM9H\n5gjWZNawU3Sd9Y0Y1hdu1XF2mYaFwppoh2c40T0l8JNabVPaRNgXMD9spp/v\nEJgZHaS/exh2tM26fkVn1xx+3PWfl8SNt9n3CVh7BKejoB1UluKU50flnYPA\nNTybRZxiw/05QSmxpP2D4wRPFOgCqsrKxl2fn6kZNYE1N7HNTbOLRn1HIx8c\nvWoQT7CAQvqlouik4wToeyCPGfLUo48tzwtLh1p6mlG6ci/f8SyoqwvapZLM\nYLaUAjNwb4bNmp+hMSmd3cNXWI8XjvpiaBiCCC43WLqPQ+qNQ11uXcqb+0/d\nzh0BHx5Q+csnve34CHoOhPHgsSjVsX+MkmOeVVooMV5tMYFRZbjmdWlO6upx\nnkcm2mNCB17FwedCeU97x/py4mGoPdasgQdpaocbb4PuraC1ahXnxupc+uxq\nFvAFN9nHa7RANExEoBPuX1bGiqExyHmugf0EQ2h1zjnN9m67HwGDbRL7myVh\n0Q+wGSPGAA9Ek8ab8QPApRvFL9QhWyHDZjbIwyHbutAly+qJfqqerj5PRnMr\nJ5Xu\r\n=aPt/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnh66W+ZhlwwtIlwxNWT9dll5rROhMYHoyCyB/lLeyPwIgE3NRrolYUzw/TMQLFnBHlnieHsxAZGjTMOXgkJVM1CM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"arjun27","email":"arjunattam@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.10_1578442629591_0.09332034262085309"},"_hasShrinkwrap":false},"0.9.11":{"name":"playwright","version":"0.9.11","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1009","webkit_revision":"1070"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js","bundle":"npx browserify -r ./index.js:playwright -o utils/browser/playwright-web.js","unit-bundle":"node utils/browser/test.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"85b6e2a0f7f120d1bf47c77c3ae2687fe297ffe3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.11","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-SrujbPvpUEJgatmXt1APrchnktX3zylypcxt9ArWZgqsPKNJ70QA9YsH3QCM5hXFsEwaITu42//Qof4eN+WEpw==","shasum":"ea1a4b1c5d930f37bb92a713e38f5fb3e658cebd","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.11.tgz","fileCount":302,"unpackedSize":2302462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFicoCRA9TVsSAnZWagAAOTwP/2n2NarqrzDS6mJhsWOR\n6fYIoop41Tok0FXquWR96Jqpfd7wre5y88vMYJ/DZFYXUHDIMA+GnF4mxmpn\n/Vrfp4flniMfrmTWO7a2Ab8nte22di0bQbsaHiV49Xlk3GK5Sc3+kitQoECq\nVJS8IniKomnher9sdWyusaFTHzNeqGRMy5n2XVyh5zQTfnVmEufMuZOZyghB\n3m4FA3ZcZ8osqdDf+QME8e1wDom+rYrerPEynb/K/2vhkxnrX0FUmshTxMHs\njIrbmS77MWVb7bb7EN0Grofht+bP+ke9DzN3qIk8hZ3fg5bDirlgolT8VMT7\ne4E13pQfOOzNA/81VmE4NzAYuOHbUp9U76nDqtLzFxcVkax5N8IrIrvIER+I\nSKUMMjrUwLrEbenW9zJh2MVigVxTr6nkOCVQE8R6aaUtafVKnvRJ7PPM49SL\nDGE5Ibzv5/mbey3f0B8Y3cnrLDD003om69qhPWVq8beqw54CeFLZsYZyOAGv\n47c1aYc6WsAx7a2xqVdEO/7yTSEaqIkztQG3pc6sdsUmipPvg30q0MzLmg3p\nXRLETlLi61ZpLxpJ3D+eZLuyypH7N0TYFhB5t07rWPRJmm4CZOzcZpyKJ1aI\nwPVYNSNOpztPhMYsb4ZtOKld93Cxn+X1CyshHKrLsjl5cfIpz+7Z1HUw0bbz\nHBsW\r\n=CJDr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsPpb8srUq5KPptr2G+t8MZN/Vpb5Vb5rtsCB+9bbauwIhANGMLqfUgfZQMUoIhsStP+PB0JnGTCcHMVUkmgZPUJtB"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"arjun27","email":"arjunattam@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.11_1578510119608_0.2850876270351588"},"_hasShrinkwrap":false},"0.9.12":{"name":"playwright","version":"0.9.12","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1009","webkit_revision":"1082"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"a8c6bd66cd2e4c89a5d875e7ce160c5d134904ff","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.12","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-hwchD8LoRmW8HMR6KZw+YbqUZEasmteENqq6+A7dG6T2wTJ4FMAtiIjDdcOZ5d9T+QXpp9RoLErorf5od6Svxg==","shasum":"a43d5dd8b6a2b60bbb5e539fa2fb2a7e3f9a8ef1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.12.tgz","fileCount":214,"unpackedSize":2423838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGRuYCRA9TVsSAnZWagAAw/0QAKGNuxhFmtfIehDGfOqB\nvaVs8brSpK5Jt6WXaxKIfqsbsB2DSeFD+FScEJg+VnQALaSjW77SQm7PT5Xy\nN4URfO95VWXdQSTkn0oNKa1wgJiOUMTxCxkPMOQUbmtUT2A+tlVBELOvrwjf\nYtleqnZbPpJ9S30i7S9yJHouiMkR0BU3fO2pEY2Ffwv3B9P9DJBV7Fv+MY1f\nrTkAeUJnLDGPqITp0Y00bR9pm1Cby3Oh+wlUPJt4pMhsoHiMB6LVkudGZvRG\nG+6CGdfM7IDOe8b3XW9Jga5xyMZha8QTrh9z9Fl+AfElUspMoMYQy+W0c2yL\nNrHIflpqEiYxjCvCpAuhy78/o/ijEB/wJ6C2WxpVKO/cydvM7DyYo76JhE4N\notbbnTX40BbaJ8ompYvbcb87n9y+f6F5CAP6qQAvvvziHc1SuDSP33ewLzZu\niRNcgvXT4Tov3VDVBEW0Gb+RLD4K+upRbze0NKB8vtnqgcRaEUBxkbytEmOP\nxWFyZIWPsVcgoZ7kH9gjIz44ISUjppsZ753Fs0U+4TFDNGM9NDJ1AOkT68NF\n699uS3aRr++iVRKfZDxf0J2GT1j92btmFD3n6CABE6sgiylqlVI1YVzj1Zvt\np27JvVYVRlcX6TinHWY4qdwcLsoJv9WY0jzkUQ+8DAQvl8igTb9wqtxhJCiB\n9g/t\r\n=p6Vy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEjOtugUMW5BMWOZgK21cBPBsdKit0ER7MIKhYhLvPGAIhAMZBD2QSHbo6mlUQowWrkJSnb1ukMQy3E72PgkI6kJiL"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.12_1578703767691_0.8588242462896378"},"_hasShrinkwrap":false},"0.9.13":{"name":"playwright","version":"0.9.13","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1014","webkit_revision":"1097"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","fcoverage":"cross-env COVERAGE=true BROWSER=firefox npm run unit","wcoverage":"cross-env COVERAGE=true BROWSER=webkit npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/proxy-from-env":"^1.0.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"2a619db582bb327fce2d0dd27f451a29ba1d3192","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.13","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-NFRP3730Wn15sAXmd3wYodh2qlP0n8sfNJoQrmQGgu0a2kb3LyQiEw92eYRqxU8X/3dVCkuw8a2XUD5qwh93CA==","shasum":"fd0bfc9eccfdc5173cdca500d941ea4e3470cfa3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.13.tgz","fileCount":210,"unpackedSize":2476397,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIdIVCRA9TVsSAnZWagAAgeoP/3Xd8+F4pT6pR5TvR4+E\nu48/S4UTxWtifpLEE5srnXMdwR3zulmz6rnmqPrEzySIClphSUAEUQ8H1QxE\nRtaqkOnCysidf42Z93++ud1P5QZzFxJaHZEEUDbd/+lXsE5ypG0arG2woaRX\n4hVm1akF+STB980Ugi0sGRSgwDbA2vUjV3E58QnW9ZpcN881y0RZC+Mk/Wo5\nfRtz4y7RPVDnnrpEzmM2t0/nsgZmjBTDRS80Uvu8D3OowrCXMsc2pUXRl2yg\nuy+eATBIdgsKfHaCLx0FmTj3pmnPfMlKeqjRBaOR+v8CJKVNqdrgWuDLw4HX\nbfAMaabOAkvxRsXoGIj/EwBFtV+BiTiR0oojBDx7frPQ1arFuJcsB7tBv8Ph\n9clAWKyze+Vo9v8V9fXu7RWv12gcTiYjdcpg8RTDAfoZY8VTSD0dDMqWYhiV\no/Kr2XZgGTBN+DItxatpK7+rwTpYUeouvY2+iC9C1fKaPMUIfId8umh5SQBd\nnCRkEXNRgiD0Mb5gxfzRSR3os7/DTiEPLj4y6xG3CR9kahUzZymyUZzvLvKm\nNN60ROmjESYUBqxJ6S78sWZWGBwpdE6BR3qMvlpkZt6+b3fXT4/DzoQ33qkK\ntCEEDlBd3ZSRUnS3IBj/c8i7v4B+8/HYZLyHTsEYZ2kJsHx4BgMrVCas1gDx\n+wqv\r\n=wc0P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6yQOE0Bjp8aL8NSIIsuYgPHVZtZEJwSncTR7jbTmhawIgQmrA/czM0NVvGrde483/9n9WnwHFomHhIWFZWS0QqkE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.13_1579274772487_0.43601355888440474"},"_hasShrinkwrap":false},"0.9.14":{"name":"playwright","version":"0.9.14","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1016","webkit_revision":"1100"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","fcoverage":"cross-env COVERAGE=true BROWSER=firefox npm run unit","wcoverage":"cross-env COVERAGE=true BROWSER=webkit npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/proxy-from-env":"^1.0.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"040531062f8c4674c8fe00b912e15312a8024764","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.14","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-/8QvJAwOg4khZBUEHRjto6qxEI06mMQ0x/aIqOaUBG46eVx4HAA8Q/ZkLuWMPwBzNm+3gucV66n2pfrGoaeFaw==","shasum":"301cc3a1b59ae2d1f18d1f2096e08005990086e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.14.tgz","fileCount":212,"unpackedSize":2491874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeInPOCRA9TVsSAnZWagAAPj0QAKSc/3DrNOUrt3lbUJmc\n5Sm6wSchPdFSgVQmCTB+3H5B4708YdEBDcvyCQ8idFqjsuVqQmtrHms7l0Nt\npkMPY+p5xNB9dkPCsQHo8tCmKvPWLuq5oPThRFPlu/PV3YAQ7ELO4r2pGhjC\nY0F9VAn7jLGyrMEesGEy233FfZSjfYn+AfqlCy7nf0ILugfP22dy95Hupkec\nxHbfRMPQxuGY49V3WFJ932Fqj9sBbgzmnjd+CnMv9KPgc2141Vxp3+ugahdd\n2d8/Csc4nosg9EvqqgR6ARZmCSWKC8T7en32oD1qjBdOZnRAkKMrhbRWEZ2Y\njgoJ6wixmHXMAEEJNFA9PYzFp36OXkfG9iTyYhUsiLSxEo7Nx/VMuTMnlKKo\nfwa7iZps6mB9+Z3gkExig1jGj42hJInj1K3ieBECy4seVpBljVzhCzwX+7+F\nSF8Ksme90p0K+vI0Bu/Yz/Nq3RM5sifBujiCXRHc8QlED+nVg8JizsaRsF7R\nKzLa5Xuzs2phpPimBJxe9b3KaIN6i6P6KMB5k5YsvLahzKAAERZRsEtbmWVm\npN0bgdWPJiQ753IFDhGx6RlXUCppHU4QX9Qg2OmMd1HvwQFsxdAYZdj8GVec\nGIgeHj3fmeCuIeWXgLQTEqJIDtfPfCHTz/14vJ/keAavI7z7tS3GHB6tIxXc\n3FC5\r\n=RiiK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIpVDQmOr0DQP9ZIGDZLFeRDjpyVmft8J/VczhUua4YAiEA5ztjwgbqXNRw09VGKezlQvMOMlXnB0QMnW1fw23lsJw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.14_1579316173708_0.49152724187012375"},"_hasShrinkwrap":false},"0.9.15":{"name":"playwright","version":"0.9.15","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1016","webkit_revision":"1100"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","fcoverage":"cross-env COVERAGE=true BROWSER=firefox npm run unit","wcoverage":"cross-env COVERAGE=true BROWSER=webkit npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/proxy-from-env":"^1.0.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"014385fa1bc0d1cb10f15651c489a17f282db47c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.15","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-eIaeelbl5eadRbKd58mxNfdQu+txJWl0pkt5+KI5UvRsJzDHmPXaESPzVCOJ37G3SIO6HiQ1Y3FcsnmvF3l5Vg==","shasum":"ee4265a54ea3066854ee5f611411ac3db6e08879","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.15.tgz","fileCount":212,"unpackedSize":2492375,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeInUICRA9TVsSAnZWagAA4T8P/jevIgMLDmNh/4dso+za\neoR1GMVgHVwQ2jphsQjt55BFeU2q0XD6tpW7JM7yM/Tp/54VDqHE+BG2cHfG\nrpSDCZ1pReuWcUwPNjz1MTOTqwuz0HjwcO28cQKfJaFzKPmFcR4cZT7vVxZ9\n37/azFamdJSvvvcpWZf2pilxt8syrZIoE+UpeHrVE3Kc0hvoBShbRQbSa8N+\ncrgfgpCGLigGfjG7KnZi3qDa2quMUlRUCaTwLekRNZF6kjjJ96w6XPn9Ce4R\nzM9/DogyqRAq2cK1/MBQELi8Q/RlLy6Qp96jUbLj26VKPHtZMzRgVcLOxGU0\ne4s7sdLyHwVjEhKKMFLy5zYZKhFKbLI1oQJfuXEYM724yFhduLzpC7UnUozW\n18WOfPWsFS4qAsfeuzG0/BA36K3UA1lcdscmc+ZQcWm9YhHKObu6s2tIwLDF\npHzK95Fx3Fs2EJse5K3ZUcZ5uiSdjo86P1vQYEwqAWonm/UzEiaoke8pHqAf\nPQR8UGoEqcaLDqy1+3mVdm5BBXKZcy/qyW2H6Z7ntkG9rpQgeNFfvhdsTrLr\ne0+/xvC/5wqOC6P/4hfZyyLZ987sN0fEE+05+86JoMRDxjgS/kjT2N+glIOv\no9gH52EQUKptTbEjEjkWhJYXTPyGXcC7scK0OR2uSrZloZoRR4J+U0v5f2ry\nH8Eo\r\n=PK6K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAoQ8bIMSnudBLVqBD1tXcckPJ7zuUq+bob+q+F89vp7AiEAsoGwlkDTaBug/QPb5bIB+HSXF/vNdiNvo57iU2xQ6T4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.15_1579316488385_0.4705287223815571"},"_hasShrinkwrap":false},"0.9.16":{"name":"playwright","version":"0.9.16","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"724623","firefox_revision":"1016","webkit_revision":"1100"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","fcoverage":"cross-env COVERAGE=true BROWSER=firefox npm run unit","wcoverage":"cross-env COVERAGE=true BROWSER=webkit npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/proxy-from-env":"^1.0.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"5d281969037d915ce859c1238bfe5b29817a941e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.16","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Go/K8dNAQqjicpHmh/wKtWG61cVcqA8Y/0h651HxPst0fOFx01yrOKBIa4kzK7arUubeYNra1hViTGFEUriGwA==","shasum":"78030a696e2ed2a97fd86a0c2006982714f81d15","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.16.tgz","fileCount":212,"unpackedSize":2492470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIn7GCRA9TVsSAnZWagAAYxgP/jtFOQA6Uzhg267Nj17V\nQ4B/kEDF05fTd8fA128MPtBlIhTRw5wtK7cGpYHPLwgo4lgYFlr8DEH8VpbW\nj94EWR2kgV95/wq74NYzoGEURUT7slT3ICQnUL/Aav98qVoLdNaM3pX+E6U5\n+EiElUy2vixE9U1S9vGMFpdL+K6eVqi90nPK/jcwL3UJdza9RNbe7VUTAkfi\nNODEmXjaQffu5/XdhjRCkAj/fjl2vGoTNtY1M4rYMfZvHMqeFh/wZK29zy4C\njDJVHkNeX7PH7MSFht1a0SKTtwxlrt7gtfnwasFyzyf6U2qZHOkgjGsIQKyV\n0cIMRE0ZOBaPJmlbrXuYqXcSyf2+HOmo3b17dQ3zLgJN4upcy310al7RNZDI\nlQCwxBemfijbIkyiEHDFmFYtd945Jm/2xO97gQ0smEg+J3eSzMMZEjbK5eHE\nncj89t66DNHbG0WJjbFfQfG9lN7+QjnQKI9j2e/mYKaO6qZM7S7SV+FGQb9h\niGG9ihbACyrLVik+E1MWHwm//qdGxgWW19aDNOY3Bd4/r2oiNji/oGfMA2nJ\nSU4uLgWPmBSGpabVxmYRCVlNMk/BzgmrBnfzf72bzszqvxBFfRJ2aHyPttu6\nGrWzyZDfZYhwmHGJFKcKqEI5wiiVUafr77oHDsnVb5WtzEnNyvABdiSSIJ5H\nI90s\r\n=ca3I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGX5UTCGqp6vUxG/qkXk6xL+tT8kEyY1kleRis4uflwFAiAvHVMoNMqAThmtmrPs7G/fGQ4nwVhT0r9YCsQkqOZL7w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.16_1579318982183_0.5149325047681306"},"_hasShrinkwrap":false},"0.9.17":{"name":"playwright","version":"0.9.17","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"main":"index.js","playwright":{"chromium_revision":"733125","firefox_revision":"1016","webkit_revision":"1102"},"scripts":{"unit":"node test/test.js","funit":"cross-env BROWSER=firefox node test/test.js","wunit":"cross-env BROWSER=webkit node test/test.js","debug-unit":"node --inspect-brk test/test.js","test-doclint":"node utils/doclint/check_public_api/test/test.js && node utils/doclint/preprocessor/test.js","test":"npm run lint --silent && npm run coverage && npm run test-doclint && node utils/testrunner/test/test.js","install":"node install.js","lint":"([ \"$CI\" = true ] && eslint --quiet -f codeframe --ext js,ts ./src || eslint --ext js,ts ./src) && npm run tsc && npm run doc","doc":"node utils/doclint/cli.js","coverage":"cross-env COVERAGE=true npm run unit","fcoverage":"cross-env COVERAGE=true BROWSER=firefox npm run unit","wcoverage":"cross-env COVERAGE=true BROWSER=webkit npm run unit","tsc":"tsc -p .","build":"node utils/runWebpack.js --mode='development' && tsc -p .","watch":"node utils/runWebpack.js --mode='development' --watch --silent | tsc -w -p .","apply-next-version":"node utils/apply_next_version.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.0","extract-zip":"^1.6.6","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.6","mime":"^2.0.3","pngjs":"^3.4.0","progress":"^2.0.3","proxy-from-env":"^1.0.0","rimraf":"^2.6.1","ws":"^6.1.0"},"devDependencies":{"@types/debug":"0.0.31","@types/extract-zip":"^1.6.2","@types/jpeg-js":"^0.3.7","@types/mime":"^2.0.0","@types/node":"^8.10.34","@types/pngjs":"^3.4.0","@types/proxy-from-env":"^1.0.0","@types/rimraf":"^2.0.2","@types/ws":"^6.0.1","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","commonmark":"^0.28.1","cross-env":"^5.0.5","eslint":"^6.6.0","esprima":"^4.0.0","minimist":"^1.2.0","ncp":"^2.0.0","node-stream-zip":"^1.8.2","pixelmatch":"^4.0.2","text-diff":"^1.0.1","ts-loader":"^6.1.2","typescript":"3.6.3","webpack":"^4.41.0","webpack-cli":"^3.3.9"},"browser":{"./lib/BrowserFetcher.js":false,"ws":"./utils/browser/WebSocket","fs":false,"child_process":false,"rimraf":false,"readline":false},"gitHead":"4053681ce6202246e04e5cdd942e675f74bde342","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.17","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-INfa5X/2xG8e1ELPXPGpsORO2J/BrO1fVZKXqXidXallTvFATPyWdCNa4/+KhX/OZP2HYmv5OOrPQnFm/CDi0g==","shasum":"7536c47627e36a7f238dd255f29d975101ef8812","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.17.tgz","fileCount":212,"unpackedSize":2497233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeI6glCRA9TVsSAnZWagAArYUP/AxpA5xCT+HPlgB5sTvt\n4/ynvvKm6ibe/Aiys8XwRG/NvZFlxNPW/5+AwD00apnHO2TJ3gbTd+Z4jZra\nTbg3tgpE1GSWZREG6CCbhB8JWjpuSqF33NmDmqygLM/+snlaHGW/MGWVMhMc\ntOwsP+IQmjnPXgM0q618TIp15IIoiqUlX8o91E2jb07QyVxwMdl7Uv3TCxNC\ncQhDwxoX+vX5Bu1J4zXpCGgCUYf+tXTTTrEV2C3De2OKEXkKsCtIOhXzSDzR\nHvPjLuFQgNbn9eKiqTOiNCELgrrCrxxD1cqBtBD2luXfFGnuJ5cIDH5YpGtS\nz1OI/hwZf44n445beMpvreGLdDIQM1J//JBSIpbu+eQIWMpm7LE1LMAxudst\nXLLBk89lCrJtkDNTec7axAYtLqFF1T4JswpngzLP/GwmcuKRJzT5G2OKZuTE\nv0SLn3uD7yqPxNlEA98CLXSXWlCwXGZF1JyrREmblI4RdhcLNNM74G8BJFD7\nRHMokO45fFbVnoGsf1nBIlNiQ5riC1pzZMG/VgRKZk+D9cdYrqVcNcVEDMPy\n71a/CmXh2wAYYoTTqozI9bn28xyBTK6X8f+4LAmJXSgkpVJB5ObzNJvh3vvv\nNUdH3LnCXsjTwJxHqWrz51/ef44l4s2pHkpU8Bge5/gfbePDjr2sXZUvCjXG\nGRpg\r\n=gM1b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxZPok/LYvkIQLKecieaVlnh6Elcx8LnH9KkQW1MyY+AiA7SCiL4zSl91boUVpjpbaSUudEwefFXT9XfFWho7VSIw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.17_1579395108954_0.6219278845295075"},"_hasShrinkwrap":false},"0.9.18":{"name":"playwright","version":"0.9.18","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.9.18"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.18","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-jmAtZ0r7CqX2YH/l1W6EfgyKOoVU1tdsIK+iB+QVyDCovRFwqjglqYUshc4RaeqcdSg/en/c8GlfPHX1+JFtmw==","shasum":"90b34db485817999520bfefaf98bf84f24650178","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.18.tgz","fileCount":4,"unpackedSize":12230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJ6YkCRA9TVsSAnZWagAAwlMP/1cHEZM2ec3GSOJHz7yr\nH49PpnwoufQ9Li7MQh4dGZD0mARoSrQom4Kr9q778HF3KcbcfQhBhJEuHok/\nnJLaj3mn49wuW43DCLss10Q46t6PGHhPkPTUA98l8qabrVsvcdaCiKDtkDeZ\nK5Sq93XaoijxqFDSKzXlx9MOXLNs/Cwh+uSmss8VQDeVzak+3KERBl1qn/Qf\niIV0hpQkgx/SVYNil98pX+Biaaf+Hp/+y8+2Ase+cHFn4LfjO9t48px4gcpV\nrj5D6vbevzGlAFzJRHfPTnmKswlF0h9UeP723HVYpluyhQqSScNHNrIB0hKx\nQoRwDtMOr69yFGBFtpYeZg1Snb2J/xAVpiMcPOn2F73hBqqGN+r9u3gzXMFh\nZk7N6EwDYIro5TfXWeDccrAbB53q3yDOMUyWo6g7fngEaln+xIb1GV0Bxk7z\nG6C65uNo6Z0YMqCuu8llMovvJMZ2vhTcKli03rFQ0bZ1p0Y70Pc/QvUp4dhN\njoSdfQkr2xl8S0KTK8D/aNbRNhXSADUlFNcxvuuALBELCAvd5Q4YGOadfR7c\nbnnJ/IiJRPhBiLt9yqDcLL+2r3ajj3c0TEVOCWH4XKUIz8dAbfeZiBZymfWl\nfI8fvVUlTrKedE6bApHJHH0Ve1ELdygSBuQa6rPnMxafjYck6j9HjUHMNqT7\nlRk7\r\n=XPq4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGPRE2Dp9OU1h1H5KNIADZrR7w0kxtAfU0hNxgi+mGiuAiA8O1+Ix5/a/tueQUmA4zfBETj5phng2JlnKdySqQwHTA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.18_1579656740345_0.7584171302596996"},"_hasShrinkwrap":false},"0.9.19":{"name":"playwright","version":"0.9.19","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.9.19"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.19","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Re3hB+/Gf8XnyX2DweRhiOuSkwVXfX/77CM+dI5qxUzgZXgvOD51AU+rDPoA4ZBOZBat1LU7JprSgo9OjgNdxA==","shasum":"4945e4b3c4f71984f7bd01851af02a27245ffb4b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.19.tgz","fileCount":4,"unpackedSize":11760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJ7V3CRA9TVsSAnZWagAA6A0P/2gO/GxRnvrv8u4Paqki\nbbXkkDADRoRSkshkqDrU69/agsq0vlMyGRNBYeBctbhTga4a1fcPjL8t9a7d\n9exaYk6eJJIlWL3EdWQPuWw7CVXBXWt7x8Qk9dpAp9FOPUz2UuDFzc2ArNYN\n2ESDJGp/AZOTWEr3qNIR5BrvOVS/ZcSFNtVerGki5z/xvPq/7k9tplfhWqeB\ngzZHuawlWhHlsfDYlwOmDn+c8gimpT6nyyeoD2c1pwZcutQld8h74i7m2DVD\nLZ1f/bh1qXNBNXMjDPyEoaj6MlL3tKcGhuSbXwBDA76yWbuwejFZPEdsB+sF\nlDANQ0gFpOlIT0JToyJ8bRk4eyVrBvfnWU+GNgJ0OQ3XaQ9wgC0dLFOTL1Y/\nFnPYoDpJaROz1nYjS2e1sY4NND5UlD3RUGGpSUF42yze1PiDDWtsq3Icb7Do\n7TdQr495n0fOLcL8g5wfRjA5E5QiGgbTENgAtlxbTJEQmd8xC0+H8QRNB6g0\npnL2bP6yELnVLnnFV1B2zIlU465J9zIMG2zmEsxCd7ZevimM3x06tzSkVPOr\nN6nEOMg8U1jqjv854okiklNvL07sr8auESwgBuGb/qBxUU2MXo7FuEpjXhGR\nUox7aNS1EOp7E/guGiJHl9CSBxcybYCrafcQEdews4jBWkzNR/t2BFuForBQ\nVBxy\r\n=vPom\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuLpS+rd+1zokTWs1iTfwFALdXrcq+JCXqiOLnCWfJQgIhAK0Y2shznKkvs5fTPWTFicPVwJ8g65ZkjyGvDKP3acBd"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.19_1579660662601_0.3927551143793988"},"_hasShrinkwrap":false},"0.9.21":{"name":"playwright","version":"0.9.21","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.9.21"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.21","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},"dist":{"integrity":"sha512-iS7A6OyFpzdzEYMdUl2TSLtYUD0hxQVskHcnRsiK7EUTxjFZvFGW23LFmM9A0dQGBtF3Fqqb907vnmaVPg+s/g==","shasum":"34c744c56558d9976eabd168216fd9b4c32f54d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.21.tgz","fileCount":4,"unpackedSize":12059,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKSIuCRA9TVsSAnZWagAAM5sP/izV6RvViDUQnj1HwfOl\nMHTjn/7ZHtgtFn98YyRcjr+IZV44tSfStBc7BA9NJQncKGhJCe7pVav7hZSX\nXx1N8ZtLxSrs8wk3FsDrxhdx4BF2WLzqnIXeicWWDz9Q72yZ+FDT75+KQuUi\ndCjvodi/Z2rlJMK12QcMQdq7+Hwo1g5WZ9CNE72O7CRf7AllSBSwRBhBECGQ\nyXNjWR5zuprPmmWW2FFOffj3PQR9BIdk7pi+aWXDOozaNz9DkAjd639Z0b7S\noIzhcY7SRf0qvxoUlNlQvsDT+05n/Vp2taqPsiMwb/7bGOB9zZPJl4MF59y9\nfiSIBbf5dk4L5Vy+mri9PBhcTTKiGCiCLafwenFxfgHLfo0CxOv6w9l6cxJp\neOXsMhbcmoKBVV0lqlYng2feyFzzIlvT5ssJJBA1NWaeU80voVv11NOu3hNQ\nls6EDd/L4mPIAWpd/h8taqjCCidMkcHNSMI33tDY/OD2NjpFQFmXMTHLOJYa\nZrP7DD7tWe8v5f2tK3Ag9HlWqJ1KHq6pQh8ZYGo6erKW1hbPomYDLSlfeZpZ\nBrCuJ0IaM5pZArf2bD4YpY9yf0lkXex5MB3a9vUFb/e/4awPiMcTB0XcBsGA\nHE30N+fPXTJ6b5xJl1sYcY7wAIq00uD6D1AkdsWz9jEVMShsnEIVOoymsxH1\nmQHQ\r\n=RoZA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnng2bE7EcqkLjHqD2CS0sGzXDWhMElNHl63kin2/D2AiEAiYwIJ9JTVQM0NV5mTBIEd5gcQJlxbietQFQc9H+K/2M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.21_1579754030230_0.3041664341151342"},"_hasShrinkwrap":false},"0.9.22":{"name":"playwright","version":"0.9.22","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.9.22"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.22","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-oLis6OLzvaJJKZxA7EOWvyFbI3DhmHlYyslm8WVjIn4HOPlEObghu6RelVGw3Nj1YvCANwgVuX2tLoiBEvfC+A==","shasum":"f874736143527c2bdeb9f61a8a717173bc035391","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.22.tgz","fileCount":5,"unpackedSize":12947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeL1Y4CRA9TVsSAnZWagAA6DcQAJOshOWxfAbHU65IRAiw\nf0yqVJ4KefK1n+gkDdIKr19LjPeOXzVFiy+UdvXkhuuFuDeVtPuio/xgPZCn\nqVscibz3tKx5QzdOoqidjyU8vsUzELBGxcQ0+rDUopDro3ZGow3heYpyIFMA\nvSYaeOEW8mk2/tr4xa69Tk0En1mhfnU+OtdqI1iomVPdBK9o562qwEdZRRIZ\nY0r4nye3Tyjje4Wa2RXQpdsRnkxO9Thl+H01LXajp/ycn03xsj7wBDWFdtwd\nbs2N7jnt1ggmwtP2ziBDpupZbLlA6UYvYTzbs+UtHIpp3FF3JZdpjS08ujwS\ne53tEPgvtdwu9pj4lA4nO5DUgLy8K6n0wKnoKPgehXPNd6zjJvT2bIu19OmA\nlJfqcFAKeqQj0w1LJbk83luRu2dCGdgse1BtPi/pfgJ57DU9JHRbb25fYVId\noFJ9IQJaVymH32XHq4ZQ2iQeDBx/eHV5EVcp4Ci0Nc1wHy9obD2eFJiW3753\nrmvRk2sc9UWB/CcS/UIda/3a7NB0kH9XON+t8On5Z6QnjWxoiOCw2usjbHjM\nzVi01hGk+MjUA6LhH0MIJv2u/SnGSuJrSJSMCWHjQXM8RTEpl7d+hzVTBtIf\n3VP235denp3yZZq4IFtgO8Hzz/oSxakOqoTcPPCC7Y89Bdzbx6VF1B6srMzz\nADVM\r\n=ibOk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8XefMvTlMlq/zNlNwITY2dS6XZE8Wgl7sF4GVIXc+aAiBU1yqZHMMBsN17oVBsMZrtGTgHmBW92grPvMqtuAUVdw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.22_1580160568277_0.6798177653165958"},"_hasShrinkwrap":false},"0.9.23":{"name":"playwright","version":"0.9.23","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.9.23"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.23","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-IhMEybs8QWXHbGF6Kkik47lQJpXWUKTSATP9NeAB87A5UfArTXzIw/bxFLfokXgaYwU4+FQlUYR7aHc8LGfukw==","shasum":"c8609881fa7e00713b7ad02d51139a1a3ae664f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.23.tgz","fileCount":5,"unpackedSize":12947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeL1qBCRA9TVsSAnZWagAAsyYP+QEO5OlsZGqqesTEl+l9\nxjmfSFMZYL5WS3MqBqrSCRxVm4VBwhwxcE3CXFa5IZObA4Y1i9S2cZHMBXIs\nhQkSODER9OjEG4TjIl0p7yQuIJ9CdY/yK/3qY/efVTLdGKOo4JUkpEBDhJxp\n/k//CRL5n7iq5oOTKBsKdQ30YdrYkb403hSNBVFrMuTMKntFW4XK6CJyGMFv\nhP02RIx5uGl+89sqX2vx0tHAEFFMHCG1iu70FtsKfI/oZQ64KcvAR68/Fbbv\nTlECuv/MwmgP1BEEnJmSVZ1eFp3Qx8baf/JWeS+5xkWbhA6jrqhHWvIQ+6Cx\no02UP9lFbALLkaHkuObuQ9Kx56mDAkHuSTjnIAPuuoTWnHA7vtM/Bb9ypyIt\nCM6fav9GI0E2Rce9LiCCoAJswFrpoGSEdT3B+O6bbSyvN5/X74SwesBFg8eA\n6A1vRVZTF2IpKqnz5D4Gyc923t6E29MxiDGa4EtQOCdusspmPDQNFYisiN1O\nX7ib/fk/QcuwXsx1YZQSV0sheKMOyjp+8KbDqz6RMwTi2Iw/A6oVtLvpvC8B\nThb9bQSweJd633G0EDfYHeuSPMut2/KK7iJzRfWTrYlL4X/JU3M5EGa2uPdZ\nwnsglIYhSH1jGyCOeGkVUtnqiKG6fhj9lq0PJiStWtvHzTZ4qP9Aq2omKIb5\nC/yD\r\n=9g2a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEvoEnQ1GhE1t6GntmYltEQ788tRBvqhX0nKXAH6oiiHAiEAvh8nInHEkipz1rRRvF1BLOsJmb4rEQ9QgWiPM7rPC0g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.23_1580161664679_0.38627536419452513"},"_hasShrinkwrap":false},"0.9.24":{"name":"playwright","version":"0.9.24","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.9.24"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.9.24","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-CdSY4rcrzkNkLIBhbu2qlhMrQdVXZzdL/Ybufh+SB+OLutNBnfFiZsnOJ6vow2W0ik1MWM1fabqXNnyoQsVItg==","shasum":"6a29d7ab82e513c6386cde023af684ed4d1eca7d","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.9.24.tgz","fileCount":5,"unpackedSize":12947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeL41iCRA9TVsSAnZWagAAEEgP/070S0KeoEqP4WJfMfLS\nWC5M3hQbqPsJNtyO8difbS39VQXr/pfc7sSofUOhEUCa1MUsTf9BTNV+c1vF\njbOjwVNJ1oxKmryl7GUonPKdJOORonQq82gK6rkJsBLKSLVtxcSU7tHq6+d+\n8vRNcfbxyGzUa5aOFvpmizsE0RXfNuq6E/YE1fhQvUI7/kZac7YNzpWZBR5w\n4x532Rt+TzSTLPXfnPHAqRHrcOD4KoF9VuIxI7KQ1vfBTQESyTuuXlJ5Mmzi\n5QYQftdn3PO53lwh5Az5WSA6j7pVIVF6B6Td7+D/g1hG3AQRb+/V6x62UU2W\na8Nl8Hb9dmKNSm1qbv5CUWa0Bdf2DEf/0OjKfYU/SvGEq293xzwUKuMHM5Sv\nkhfOfd80zh/tvly2TQWJPo8wNFs8RXEKM41dOCZ8/FG8mUc+dGY8j5CQOFKO\n0PM6prmOvul1sWKniQnR9tmdumYzk2U218A6njs6Q2wQhKC2wDw11ax2dXdh\n6PpJIiSksI91Nj3E1D0RRrD5+EHuszCyYmbxFgukPGzK3QyaOGgnOjU83ZKQ\ngCEo+Qw3E4AQpqwWd9qq2rKdgnswUKzfVNgHxDyY+fmI9qgs287QAUymdaIy\naMZw3Lcz3QZZz1NcpSl/3fCSM+J6WXfby5cF8ct+pYyeQSu2qgvHbWtIsm33\nag2L\r\n=EWY1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICEMXaFPma6D7h28w3axGKc1vAsUdVi8fPAssHiWbVw1AiBn1zhwWxAz8heCjulclpgvZo+YmDPebWKQeS7qpUyMoQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.9.24_1580174689699_0.12836985576166082"},"_hasShrinkwrap":false},"0.10.0":{"name":"playwright","version":"0.10.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.10.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.10.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-f3VRME/PIO5NbcWnlCDfXwPC0DAZJ7ETkcAdE+sensLCOkfDtLh97E71ZuxNCaPYsUA6FIPi5syD8pHJW/4hQQ==","shasum":"d37f7e42e0e868dcc4ec35cb0a8dbc6248457642","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.10.0.tgz","fileCount":5,"unpackedSize":13016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeNOYWCRA9TVsSAnZWagAAcxIP/ipSkqZ22xeibOBwgOKE\nVnpjLQBoRGO6fPLI76L/G47fsF4sa38/kVahsXd1r/p02UihB9ANaBvyemIb\nNUy2//iRgyWWpTQ6IOV1B59DKx29EAHM7UgtyzHm3H9RlmfcQH50k5mvKKP/\nF2CryNySey4wLBMPjqYNspdUMMD6bEKm2DBr7UchU+EBB4+7CeYOY0i9SFBr\n6nMRykrx2eEFUCDCpslvzwAQP3qfEeTDGaQX5nxPiW/wqcUXqxqJcCbxFVWw\n7Om0uisUt1gWONqOILYIGuq8ktMx9oURFUpFJbU5J367GQqwGqXFBEyy1VZx\nhM8jWtxhY8qhD3GSfOHi6YJpzeXVaS3blOmB+4dGk+RrhbU58fb134tPlBB7\nhux8fvwahMY8BSN6tk+lN3TOut3wRhdAWcKCe5Yl6/3BAXaKYfGYJ0DtD1C6\n0iWoJ+e6LwTHEOu5+jy206piSBVzN6lq4oR7Ra9MIodzdRHFw99a89UvjgM0\nGU57APwQRgU6hh4usp3hEI6yMx/AVNZL9A46GGrLLY/o4ZOQiKcSZfkPoykx\nSoIHps/fEIrqrubO4V7/hqnHXYM/LPF8ZXFsQL3EfvNFERaVNMSFWXC1REGc\nhcwkaerAYVFPhRm/Zz9PGwRVbJVN/hYr4yqgpfk+QMGNlZJQlQmaV7NpK1B5\nkstd\r\n=4M7+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFR/q+can0EazajhAzbWkZp9v2MNapL3OdQL35Iau+zKAiAJtjuf2hpstHn/pXPXGtgq58kJM6Q4oYK9PCbYCZN6tw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.10.0_1580525078128_0.6958776640843647"},"_hasShrinkwrap":false},"0.11.0":{"name":"playwright","version":"0.11.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-cTJZ06OhwseMC9+D6KX1NmZXyEoaJl0o6GLkDhwmou3IFTrUFVOw7KYMBpcbJz0Rhb/de5ZPFlDTffLfEy/9lg==","shasum":"2abec99ea278b220bcd3902d7520ec22abc2d97e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.0.tgz","fileCount":5,"unpackedSize":13016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRg6VCRA9TVsSAnZWagAArywP/j3ANERqf081wYPgjZGu\nn7w2wsZprWN8Ikyk+Oj/MY2hhaiW1TZjl1KUGFVDWfidjfNd0n1c+mgMhXYq\n9j3/fAFxdXJuKa98fUZ9O/8lsVaIQkcDpcz9tm7qDVbgX9J/aBKY9YtcAzH8\n2RUaRJljSP45DENQAOhZYnRIaMbRVtkFsv+LT2HsN1zEtSJ8WlhmAL9frVGu\njuwTBdkOBiUMnTRspI4ZEiytzVE30myb1MhA5LHsBwKhYoEYYSxyoWUllYiD\neaWWiWIyE9YQOfXV32v0hq0GWg8vrJShB4qNmCr7eGshQite8HqlCAldI48z\nMr5RK1rOvUM66H3LOctjrWzdjdiyLzSGYJqxkOpsShkV9vZtN0S7FybEomwa\njMsFOUVoyNPs3qsBXTSDPrlk2VdVTABU/wIZUHgBTeRpdjlryPAPkgiWrETY\n+NSUchSkmpOvJVs6yAoaxbHjTscE/WI4nY7PsN4eF6IF0R17t2kr5eUg60JB\nJcI3gy2YglQehbSHXOD5j5eRZuA8J+ByN/V/EwjssVjY4wosKr26e/OdljhT\nK98yZ0F9+vG4NESGb7J4LCNOCQFbhNiHGMnR2S6Gcqw/28OEpuJM7s4OOmak\nbSCNhiFC2xaoVtb1MepFzYMokKOQOkhfkZn4phx9u3f5mll7fEp5x2CPI2fZ\nBRig\r\n=I3pp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6rwQI/PVAWnsYsGKQQ+K8pLiiPkzwk5GZp2fRZ2GIlAIgcTgCMba8uZEhde2pWgtedZUiV6+mqwzSx/7EOQzSR9E="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.0_1581649557345_0.9201213022583483"},"_hasShrinkwrap":false},"0.11.1":{"name":"playwright","version":"0.11.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},"dist":{"integrity":"sha512-Sx/WCb88u6Q73klQKGjGY2PJSbUl7JAHIie3mFGTpXPPo79cmMzVJl2e07v/qO3VGFd13bF4z8vMt2UVPc/ygQ==","shasum":"e35a2a67d87fdc497a3f706596ea40822f373e82","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1.tgz","fileCount":5,"unpackedSize":13911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeR2MlCRA9TVsSAnZWagAAWZMP/1Kw7R1u/MlaIYx5f7ZT\n+eNWSPOlzUlscezgY92FYrQO9lF/X8ebeiJ3hPcBdkwFc8FI5fHhIfTQG8SF\npPdJInBe0k6XJphes3Kk6A9hSdJBFBLUWyfS+Ncb4fAIdyn0KKxgqveso2Ff\nyGM9zhpd/D4Q689hQtNYfTkVaBER2uRBb48dar5DHlv7RzfH9IZkW2nNmBvq\nJWdrLA1y1mB9P9b/P9ib7KmBeIaZaNKHw3vZiZ11zoIr4Ix496Ac2byUmTBb\nerFT6is29Kt2PbvzpJAJ5J6X/58MVEb2TpuSyukVEGisb5IUfMfd7coB5+Ro\n/78Lq9i3NAUXCo8yDbyb6Ugxe4lM43qD3ZZgBsajbLuVAspjnqjMiCZxsPrA\nsWGnYi09vNGaxZyq1Udfi5/+JnOnk5msjQw4BxnfXdYjEmWYTBzVIDWmiPo5\nXyms4nhi91Yc3HFXr5ognAWNTRtTf34nwk0h/tmD/2hIiyyGR+tFecSJG1TR\nPPErFqcXuDEh6N85WJqTrFpymNYNBONm+RHTBSETN65zXGWalTC8CSmHvFSf\nOWZlt778RW4phyyslpq2NCFTZoK+bjObh5WOJb+mYwuGw12Nh9k7jeA5GDOA\ni8mDSe1+unGWKMb32QO0r7336zODQoqMqAfNlNobLV6h5VjD9UJiaqpjGf/Z\nFG92\r\n=FhOR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwA822PkKoRrfX9HzG4bFw7sVQDsXX1L0HO0e0gRZa/wIgAIMMPE+2hmj4y7UZC7ufMQrsz7VdSyqSSwlW2E6S9iI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1_1581736740681_0.8567653001737932"},"_hasShrinkwrap":false},"0.11.1-next.1582931970136":{"name":"playwright","version":"0.11.1-next.1582931970136","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1582931970136"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1582931970136","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-w3oyX8S674C858SFL35K2ZG3IV5LI/GLG8h1qC6mjARfEk6m/Mg8Y1XA05zasmJ5czkdYRcmB50yyUXIeVI/Eg==","shasum":"a8b8f198a0a9cf015b99c151bbf3fb110a0e487c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1582931970136.tgz","fileCount":5,"unpackedSize":14156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWaAOCRA9TVsSAnZWagAAgnEP/3twlscORFK266GOW39o\nJXfGwo07c6y12+r4DF1Jh5Gtl22QCFiKYQOvKzpABhALhj3gf0gliVfYVjN6\npG0DmphHot6PmXdfDFyJ19HAmx58zv0+MeipNWQ6NmNh92e6tduh2gbX5P2Z\nOIVdkiZ7A5sg3VbDblDztRmZ6vqfhUwFDbJDS5e2iXyhbSnbqwTM9EGEYin5\nj+oS7spaiGTM37D5jWyL809RzbJfBeipl8YYqrqbxPytsMN4Mx05bCY0XeNg\n4KZjni81IX8a0AwCxu/AVFmYGlcWTL6MNGxmcM/BveF6YhYKiuOK6rzvy6Ft\nUhrxSIx76f79dXO4YDP1sah/4Rmkn5R8gHlsgUh582hlu/2+7a1cNNwl4EWP\nC7EBzcu9M1EIKGlDkdIUQhVbaSQJ5md+Xr/EvNgLyfGQQjIZvqCpSuRGqVmI\noz6/VYZQb/6zLxoBepE9jgK9OoNwQIBvGydUmQ/59iG4Q7mqwrYAJ7x0ETyU\nnecPHjF6MKxvZRQycyHGUTScI1kUIaw91fbMB5mW2pTkI3/51DWuCViQkPb1\nMHpbcLURgFuDyF9OVAb/g30QJhrIOfgzswUjR0NGDlzE8mlsu+kspQ343ruA\nYVOzmEZGTIJw/NYeRZXcDbRsCMV9rttOkr0lOVLlRSdk1krelwcfdSc4nyjf\ncfNA\r\n=4cMb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHFk48eNocfCgvsjp/9HBQTnuaKSWHAu4nUFkLzwBIRwIhAOJoSfh21oDpoTNRF34VzJahbjhrQapWxY2Uj9EkvLux"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1582931970136_1582931982136_0.5823290459693691"},"_hasShrinkwrap":false},"0.11.1-next.1582935649965":{"name":"playwright","version":"0.11.1-next.1582935649965","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1582935649965"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1582935649965","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-DYT7jMJWKMrmFdPtG7nuS1+WFg6GALHKbEOJxyGN+KRjtFsekvzpKA0D0ehP9CkP+RDbbN8HD9g6aHxjbRw4kw==","shasum":"5f9b78f2843eb490fe32306acbdda8a9236f11e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1582935649965.tgz","fileCount":5,"unpackedSize":14156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWa6iCRA9TVsSAnZWagAAnkEQAJnDblj68U7eQO7SQzKe\nTe6O5+t3s9XFEtk9+I6B3PhypvwNfeQQH2h3gJOcBHp42YM20nr5KwDDjtxu\n+7cjnEsbqy9s5/nrgOFTKhP0SY2Q/rAxnoPFzWNFCfn2PZcjrUID9D7UzhmL\nIHtNa7J0o8XSPxn+3bmkp0kNrVgwQ0yeBX5EET3IJ4LRMa96xiKqfxjBu/XL\n+fRxOEM7tNAtX0o18HxURHnspLfqRxLmEbYc1WqAXMp7LRl6a83jj634+J4z\n+LYR+u3AIieFT3Pa2KyvunOjjhzPumvAaCYfHI0yqAeU1TO3fbxrQFPB4UT3\nJlswf3+V3FSI2mcf38ZdxcieG/Tzh4WhWew5LGHkeIUUGO0/ZeiDDSWFXxXo\nG+gK5Gzmxb3y+fyrpgiodUxalcc2lGEEIBzOpTlM58+aAj9zV9wQS/aAM4rN\n48R54jpJAlays2FIvGnRw1ugREsAOvQiPfWtN6pQDwIuDBpW9sPnyMunBW+U\nuhO3Xeet1eOZv5WMQI5aq93dx7kqYadBdhM4eJYw/6XlrtNcxwYii6Sa5yhY\nBH6GRYea6oVKrOdL22xWxSZZ6qoLlf8XEazi/LXMPeyjY7Tcar5H1SAvfJpA\nyeSPfkE1QsSobFrklJiCeXB/jVbvHOACUZEhepjN/DnbEkcpNIK1mp8ISPC/\nlViI\r\n=l8Uw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQFAJDJJDSH09n1918GGwf6uvDn+R3ocXZKhqcjhgSJAIhAP9H+MK+j3Jpu2FjqqNkydGtkYMkHj/Lbaff9mkmyNk9"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1582935649965_1582935713744_0.42320465157369513"},"_hasShrinkwrap":false},"0.11.1-next.1582936853652":{"name":"playwright","version":"0.11.1-next.1582936853652","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1582936853652"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1582936853652","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-HzWe0VvmKOY/O5ILlA0+seEdcP7276cvCqe5Z0UQjLKkTOsWpIiDU5qDM1K2Vy8YL2G8UPmXlbHXpMaukJBoww==","shasum":"02fc9fbf97857616f2cb1e565eb38a0c8834e0d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1582936853652.tgz","fileCount":5,"unpackedSize":14156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWbNbCRA9TVsSAnZWagAAs0gP/R+oJM8GtiMjck3syEHw\nCZq9OUmYYLvAtVESOV2Y2f4b5qiNbm70R53Euu5ugvxCV19kyhzhPVLsJURA\n7rtjujdzUqVzbIhVHKbgz8nHTurAl2wwXSlXbVhY1hyuU75MVOwzQFlp6sie\n7CJPSYI2kKtwLmuf+Bmlk0fEl+ayof/FXWW7smU9Etkhi6vjUWZ9reb2KZel\nR7jeNrIqJkeazqovkQMbWJWwpyjJHo1hk8F8DC93zVA7cB65iVwJqYbyX65q\n7qizmoCCg9YuCkVbDIJ6juBv5gSG5Mi9XILJKNtSUFYGJxxJmQV496BCCDf6\nEItgcQ7UrIbDph1B3Og7is0MnvBrJqIb51+LAtEGz5gyGk9EbvAmmLCo2T+1\nR4rwzU3VjDm0WdYe8FplTi6muKQmHQlfNuyDGrNYb8/OH/aZtw+QeNuEhvxQ\nhMB1dtXwNIU0eJw/kFKHthlbyM0mHtJ4eZSp9vQjyhcIyMvpvN+/JdGMXo/2\nmHJ32Q6mKch+d8hH83tNF5XC+uuJ/76sTHEz9ZrwIaQ7i6N6sgN34gFtcDVd\nC+luCdWGSSGQvTZfAuJwkyaVrg91cXM+EJI3bXrusFhF74R5GRzZP5ryWXN7\nsN3eFbsOsyBXmlamvKa6NUOfSy2CjHztAMYKngXFBnVaYYQX6ZEFh7NZUmVg\nTQ72\r\n=9OEq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/vkWm2hQ9mN+9Va/Pn9zmaI1Y302+oBq8TKl5p5582AiEA1FMJMC8/2vYoLs7RarAx9zeGXs0VPjzsR+4ttymbEM0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1582936853652_1582936922756_0.5622046395144511"},"_hasShrinkwrap":false},"0.11.1-next.1582941129123":{"name":"playwright","version":"0.11.1-next.1582941129123","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1582941129123"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1582941129123","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-879cRwr3shU1A6sPBb4HRCsFwlsCDiSGPXILXiYGsJUX5NimX6oNTAEgdGPeKLSDPEKlvAKhSsftK5oArVc1Lg==","shasum":"9124673eaa96df713944767cc097832c224fa639","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1582941129123.tgz","fileCount":5,"unpackedSize":14156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWcQLCRA9TVsSAnZWagAAeLAQAJo0eWC6W/QQd7Bd3sLn\nakH+o6Q6HWjDpz2hapIr3+q4ppsH4+Mh0ozFz2XTL8z7+Pu5jpM6j87lDk9s\n42L2XLnHVjSxTH2q4umCMXFlA12s6c3BSSwROJMeEVijEHgSH7jVi1O8bRAU\nARUF9TOzV6C0gYqgUJFnTdxOVXXVRpngTDNqgH6tIs2DaBXFFr2u7WZdbVlh\ngyJCRRYTXeBUWnZWbRAW5KGiJ+x2QqvF3/DUmo/CrypjuE8j+G64JkKU2bYl\naumYsBm2m/972FicpcEVAwzh7oZAGqgfA90v/8iRI4uYy/TQutkJTqFhxThm\n9LM18Ys0/GJG5eTPaJLA19YxKPKCu1u1wA2S0btRTh7QQEQximUCr/IGoaRR\nElwX51uBkvV535JwQdiDmErclOqDKH7j4JQgJdvM7uGgzD3IQwLM0vOU6Hg7\nw6bfLP0fMUOl8rqate9SbK6l/ZZl6eQvp1c5dZirUcYq/Nx5QgUgNeloPXGt\nLicOKABdEUR+kdXfaLgrKNn/BfsXEQFzpPPpsRJUD3wzuzjqH0u+cFZzZ+VD\nyGEz/oJJ7bm4Jpqv3WFxc33pHkBySIHtditwiXNaCDrHRECpoQ4YW6AJZqIw\nUBdglL92/Rj0v7xomXT5+FEWCVKf6MrO1NnJV+w4NDisNeLFXlt29J+braqR\nT3p9\r\n=IRAj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3Nk8Y5qCFs70JUyRavecnLtIfAM8D+QEBPmOOkcP+ngIhAOHraTBF2g4zGHHWeIDCJX7GoosFv2VpZ359wU3lGjoN"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1582941129123_1582941195138_0.9248888815527074"},"_hasShrinkwrap":false},"0.11.1-next.1583092093921":{"name":"playwright","version":"0.11.1-next.1583092093921","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583092093921"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583092093921","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-6DQoCck6A5rBlVdAwKXZYHYeVwtVJoSOCS2GgO7AELjqpMEkZKOEA2KTiPY2MJCCN6RticksK19GoCqER9vrnA==","shasum":"924bf6a8679d4b0038a58206171b89f4aa6016a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583092093921.tgz","fileCount":5,"unpackedSize":14156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXBHACRA9TVsSAnZWagAAqC0P/0NatgVHfpuOsG7X05n4\nNGIWj/SAsExqJqcBH3zKnEoeTWKNbkwSrS8B3rZaObuhDMPsJLfhG5mTq646\nd97qMC6+9mBHq87evquU8A+O/KLsPePOqJpQUQdgLPf9gS0XwJ4aIeRFQAO2\nVYhZ/C32dfZA6dfS6SRjzwzU2uuIZZsmw2ILa62GVg93oSk7IQV0YDJHsgtV\nGEAL8MxWZ+38fWtO8FFPPj6zLn1RcyXkkI6wZ1q52lNzVWyXsWMwEcq1ztGM\nC41vp1nf94KrwW4aRb7btnKrvhkH5xN0QsFw7W6XRGeuue3ul2las8JfiWwg\nNKnKlJ14mishDstkOxZC1kwmjyrMR2P0tbWmQZmi2frTLp5HOlV1VoJ00Uiv\nSVN/iC4nPl4qFYEvFHrTE2W0bIjPFiR5Cph7Tb8NfQ112bXcRNAWJllPzLBi\n2JO50DkDsLjjNZOHSRDsBNbFeJy77/1703a9JuTsyXuRU+hYehJ0HbWOK11U\nRlnqxSHaPFNP5kR/8uNiP2IDOmOf/vNRR2amyoReeJgOS8loCf8rwy2e3HWQ\n3v7NVxhlkExjdM93Vlgib1WhydX0O+1RiDN/ZaLRWAwXjOydq4y50dusPxPi\nZc0jd8+dQWMTrxA8XeOkJvf4PrBWd9nANgzwBg2GhxKMvPJsdzUaLc2Q1FCS\nzxkl\r\n=zIYu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDQ59v3Zpp7XNmCkT3gNFqqWHOYQq8ssIM8KJwsdtCMHAiEAoN2qcF1Nl3HHXOgYiCnxz68Cgb2ofQ4rRE3tx0kzEho="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583092093921_1583092159703_0.3599385643273567"},"_hasShrinkwrap":false},"0.11.1-next.1583177628607":{"name":"playwright","version":"0.11.1-next.1583177628607","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583177628607"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583177628607","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-M6QB/jNdTNOjvWMaz9rTShovxE7QOH7ToVJU0mAknsvdVq20t3bk2zElsqu87YFTY9ghXOK172na1l/+mECu+Q==","shasum":"f2481e8185c4e9efbcb7de2bb9ec3de0f0fa262b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583177628607.tgz","fileCount":5,"unpackedSize":14156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXV/nCRA9TVsSAnZWagAA9psP/i87MxtPOjpWrIeQASu4\nMWif6AQplVlDCeWPHwgu73EDcsrc8uOrdE5PND9VQH74fRheTRFNA/uLZ4x/\nzACCqfPgL4OYzTMPtYlYjUpOkKe/YYAeSuPmGDQykzetDHkZ+pwQ0fwVDjdX\n5leRI9ghf6VjwVto6hzTO93aF8PEZYWP8rO1NF8gpm91j95VA8LvEBjUkSzW\nF64MGXgr3SDN17uqOclTG8vDt0oFewbflK5tsJ18yAidwKIOlQPtAFZ6nJB/\nfUuwth5OnAJk4WaTmL+cYBp53Im1wfLjXLBxgVNYFyxQVy6GUzdFvcuutkGg\ngm2vP6mZr199L6L6zh6Z64xvRA3VVLMM7V6PqsNLEp822Bt/XFvILLL21Idm\nJPFJCTyfpxB0qDB1PWdHpcTnD/Qig/dyMXFJ9DW9esrshjXzc2wWIgvicHZ4\ngXrDUkn4KlFwKCT7rKiOqiNP7MuIwnSsB5u2k5kx7V1Qn3bCkfN5AJ+fbe1J\nHg58rexgvDk1NMIFonH3mvSJAAmkU1Bb85P62Y6C+H2/DK68P5wIXfWL6w6z\nX1SG7NXeAZ4+UKb16dSqCQjh9lW/g8R53QO307kkqAANOxZ/swaQ7M7HRGt4\n06USJJ1QynpI7U0/1oO/MqB9NmxpFCxAl/Bsm6SEpf/F2rv/msjk2Awo7VKD\nKomD\r\n=uIc+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGiUwT710DDdMaIKeFQMGiqEIz3qNi3rtkQfy8I5jyMkAiEAnAjVOn1hjiRqruaEV1EiX4Mv54LOEVhqNtlXISdO0QQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583177628607_1583177702858_0.1283787488897532"},"_hasShrinkwrap":false},"0.11.1-next.1583179440445":{"name":"playwright","version":"0.11.1-next.1583179440445","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583179440445"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583179440445","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Kxj8VCiOILxnaJodUno7z8gF6ZQycpIaXkCxFtB3NKHuMn5sF16B8P80LhA4t6cr2WZ9v0n9+n3Eyk4mnkBT9g==","shasum":"30cedf70a1185cc05ac7af6af432c1cab68bab16","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583179440445.tgz","fileCount":5,"unpackedSize":14216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXWbzCRA9TVsSAnZWagAAqSsQAJJWUei//mWW7F7I7rO+\nmwx9hnyT8CIFU73M/5BbOGP6Yx4nTZsmgA1oo1sreHe8sCYTDcrxOfUX5Wq6\nelzgDqZBdZWrbyrr4XJRyVTPGd2K9x3XYyZ/U7jVe1Iq/DdUMvljt/7v210E\nyrBgAivYN+GtZm9KujU4ZISfSR5P4wpXsXYtlRAu4nozvbTNQNwp1gGauC1M\naUXKTD0qTnKuTpX43N/I2hpGJTNkGYqMdw1UlYYwsTUaKrBMyJ46hUKbjwzW\nMF9l3Sw/BWzXTDGntUb6Hx/wSpSbqKyKrau3I2rSGgoit1KkPu67XmSJRKzq\ngl67ZNUM1YgJxZe4Rq9WaIQjyvvg7oDKkKcOqkwupgQn13geoPQxtVJA2XHA\nWVtGdFiWyO5o0+IsNSYDWDUQ4RecsHDmuaQYOuwxsbQFaQYD15wTXBOibnyJ\np88m20V8rXdtN6YVaScMADIhlZ4abL7vyRBE++pyoc8xMFgKUiq2l+86Lb6G\nKIs8hnPixTULASaU6GbiYO0sjHsbQ0pT6VPaaR7ChNuxzLG9LVT8fanMwGma\nhvgi1jSdeBeU+7TVaZ9TWLZFM5+XYTYciiUOuBBfAC0RYxloZ6nVwaR5zXxi\nFdRIbA9Rhj/Y0yF1zy6se1nKQvz5kE0LmztWjC+WSpzWe3FBejKtT3UmKeZ1\nAPuK\r\n=rJR7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA1vOXLro/6AUMa41r8QRUk9cn1Vq1EIOnonrDt2AZ5AAiA3ByKhiLn3TOX7amQJ3r4oEnOVFHsAN4diQwAz7ul6kw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583179440445_1583179506848_0.2715685555141971"},"_hasShrinkwrap":false},"0.11.1-post":{"name":"playwright","version":"0.11.1-post","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-post"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-post","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-N5Th0M/FEstH6ovv/7Z3/GUb1CjAIF0DZ++deMNgBb+O4O52JsPbC7Lo8MvFE4+Un1HnpMg6SiJh9vQDSNnjdQ==","shasum":"71dad1f7453e0cc533493db8164ff8877d631a33","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-post.tgz","fileCount":5,"unpackedSize":14225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXYI5CRA9TVsSAnZWagAAofYP+wdfh2KWSdArM2CKawTQ\n6OJo5PSTZOXAjBmDDioBJcQFpvHuysQD5m6V52mYctZRryNFdaaN3KpCyXgr\nOOX2g20tcuqKmofXWwadTlpHqgQzv/iMQ6UjwdmRbsTLFnFGJ441vufle86Z\nYOQZxvmHaubmU/qltCMn7UsqXYTnUyOg5mIInYETlo09U/4LYDgjRQri6kVY\nmWjVZD/q3sG3WuwK7pKYcyWOmy8GVfmB96EvkI0ZX6HhXsaa49wF6z3JxoUO\nNvOOAwpNaGA8Rr7uUy6ImJwrQiH09rue77rInhGHjPFXBEHCcM1eG3n50jKS\nv0ZeWVGQcr055r5DQghD+qOCBxO1Y9AceMFA9hrz+mqaQ+WnXZcbZ+J7JqnG\nEkf+VkKTOWR38YB2KCnQMxyHDpQfrdfKUl2X6fWZ4rdaRjf7DJZ6JSS0Upy2\nXmzwlkcUhAR0DvP+ScEmnvejW11o64pwmc54Rii68hIcVypb96PhYhba7U2R\na639sNnCTWEfoNJqgqVR0gucn7hm3wx9NuqY9t1y3zZ9KEfavzZ31e7I8Dhc\nkxmOVE2XTAi2myHUwq+8bww0x3Kta1Av5TGzAAJcbU+K4sxBbBXjw2V4ISMM\nRm1uFXGAh4aceSCu9/cm1RDXxeVUlcT7RY+wzL2SZWKk5lLQAUOr9e0psQvC\nzWcM\r\n=3Vkq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu9O94Exh3boNuxKJrAWZQBYWqSFViWzant0PdTmujzwIhAInn26bvsi6mdb8owY8xXKektiDTpj2vgSENW3isnmoP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-post_1583186488950_0.8015139940465386"},"_hasShrinkwrap":false},"0.11.1-next.1583187564534":{"name":"playwright","version":"0.11.1-next.1583187564534","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583187564534"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583187564534","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-gbtW4Dxy5nxXRaY9yQZWMP8AH40EntaXHPyIoBUDFe+y7celVC+3WcevhP841GsHMphIdnW1+YgpAf4IqHMxjg==","shasum":"747ffa85ca5c5fe8e7bc2f00a36afedb874dc148","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583187564534.tgz","fileCount":5,"unpackedSize":14253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXYauCRA9TVsSAnZWagAAnTgP/2EOBD4wN/Tkzk8CAIX5\n8/CjSYygpHAfu8xx39fBpkMHNIfMntvKXbhlZdAK1zexU8NqKtlylLyazniJ\ngB1R9Hv1hSovPThJfmB6mhds64vFBHwn20pIISJ3D9L95neDZJUSrpSgNkfP\njNDB82I1sZyJBcKuHt7JG/7cAEQA6MTQhi6L50DQvu4L/MBFO3ZQ+BiGdxVB\nouhPPEIMXEnPG7L+sb8tt/A+hjuVj3fDTqMhMQBMk8QwlkoGe8qlDG//rsY0\nhTXLhZM4L6WjILA1BdbJqOScNqvAdTvEmkZ9yg7gnZgAccQKGqwt0cP3jjoG\n8bNDHf14JEQRSqWca/mYZeV0O0VEVC0q3CCAW8bPv7KfodNg+j75VOKHXd2S\nTqPaSMXtWdXrrwkGcSOXxJITQNobkf65/qdepRmyxXtMj0+82EBcEH/igrGz\nwPcaQN42bHIfcF3zH+K/pa5iokZh+l/puxbzJB0ykLrJz6ePfA8B2nlzB7Qb\nr+kDVsMoswYtXiKbXAbCO7mu8koTRDbaxB+chpDdflhIRYUymQwdN3R1uvYy\n8EDKPegKTuc2UwMrpvDJGY7wXtvbXfXig3kcbs/eO+QNx6jsTHsNHKkXiNBG\n1Oz5Hy3O+NU44eJo7ef5HdetQX7Xd/qIyXP3JjFudn+yJj2kEQf5MWVJu89n\nyNcQ\r\n=TR7q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrm35mWut2lXklMZPmpZ7azIaWl2gxVHy0WggfCBXXQQIgLg1DVEFnnZZDMKYA699d6xsQ+5hIwFHY7+GhTZHDJoA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583187564534_1583187629904_0.3570707022145012"},"_hasShrinkwrap":false},"0.11.1-next.1583191619944":{"name":"playwright","version":"0.11.1-next.1583191619944","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583191619944"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583191619944","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-fNy0F3RXGIAZqPPr9s6YBT4eKlpFbAYchkg07a1tI63AS+ow7A4VDgr9U2UzmWFYknClLc+pcvIh/5vmvbHz0g==","shasum":"025267908baca39a9c01d4f7b1563112f087b47b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583191619944.tgz","fileCount":5,"unpackedSize":14253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXZaHCRA9TVsSAnZWagAAhtgP/ReJ4qI3G7I/yauYhIa6\nRaanGtvpePfK3pRd+1lO52gFgJsD6r+WW2qSVRbBF2spBqFKC3wGBg6W8g/6\nVBzXK07gYylAsFVrh0qhxecmmk8BgzNtksV0wNslKCy4f3EB+EafHB2HTntU\nAhNfyWZpDQdgCn/13MYni8/Ns19obayrk3wODuYadtYKGl61bq+Z3X84Tqk6\nzm7d2mUCd7uwSmnj6pO6T3G0ebm1hmdzrjByTR8yM04yg0Wd3l9L44aA90CE\neqeCZvl8WiFQCslRgNGjfVqmOKNXBSNT/yUPv10ZWoRWRISE3I23MQ3uvE2L\nuWgY/Wk6FXAeEwblF1xDykhs8U6MxiLhSivKeFe9dwRWfSu9cT+UpfLk7i/x\n8JgjkZu6sRXSURz3mIZaJx7JAKP2HIDMDs32d1CHRggWcCdWFmWgTveHhFQ5\n/1ckir2ogl1tX3Aq8hzBkkD1ST7fdsOwd9LOinrdsPpoyiuMIAETXSPuK4Fv\n8ANWCDUzx5ZvMqfkMN6DVkTisw8KTRskaVskFzWboxL6chaEcJnoLXtceO2j\ndyldNf0YOEGppq/lJkAOyPmTOoK2U3oE/RNbsAyyl6KipRghIq3L8xNMDa32\n8FqbwfgTZP016VpvyIMc4CQBT+29iA4rbDWLtgjUaykooqmziOinUG5owPh/\nKXs3\r\n=lUmB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJDxZD9Ll/x7Oh6lprOZ3Dxw5AjtdY02aCLMOgZIj61gIgVCiw7g7+D59abAL3sKMrI1VibJa7oONHUKkyhu4bCeA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583191619944_1583191686695_0.005191817571490898"},"_hasShrinkwrap":false},"0.11.1-next.1583193743037":{"name":"playwright","version":"0.11.1-next.1583193743037","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583193743037"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583193743037","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-IzBKZOFgj9k6A2oCV5U1sfFJP+kqUiDih24CZEHM7cQlH8QuoFzkF5BX6KNGPKjesi9HJTY59TrK2DIEeidVyg==","shasum":"964dee9bd41acbc9d822b09640db20f79ed903d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583193743037.tgz","fileCount":5,"unpackedSize":14253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXZ7VCRA9TVsSAnZWagAAgJYQAIwbDPiMd82plWBw7XqY\nm7pYh5BM9ZwF2edfoZ1hvKBFgKzpz4uKv4vkMsmcsM4pPeXRy6MjCnLwKwcD\nhTTXZwCI3SYRHI85UZZ5ukgYqtEuVjlid9DO0k5adevQK1BzPlbaFf2EobY/\nwNolUxu20GY+kdXv44x4zbE40MYp0WbTDsQGu2JwWXj2i24koY3e6+oaccdq\nykfiCMBsFZk5/L6y68/OtCqaiOYNG7Qacav40j3o461g4WEXdHvrUlVtzLW4\nvc1mJpxiZztEK4qT0cJXHb3PXTZSCHyHvhoBNMFMhAMII5T1nVaQabULDLbN\nbOwh84dGkcvtfEbqO5XZ2QuIFxI8uy0fxWVsAFw4jLrEAq+tjAI+iGdnY2Tq\nFxYCLHRI02YqSLZZqBxsmrFUeh71wIc2P4qMe5ds864X6Hpx5nIVmB47eX/v\nJ5sb4fwrs3lYdcL2AbBPlo6lJzI1TJ0QtlUDfJi2zYDTvu6YNx24VkOoOWOW\n20oVOo3JbCypjN7pyEmWTMzy1N+EQip3nq5+6C7xNOTP+xfgEk5rRlwC2uXz\n+BfbLjar+QjJEiHoA++4QLheTLm/CD4+GK9atzv0XC71uAn1SquhlBSB8Mlm\nRSObu3V8Gji4JhA/gorLlPekNmvrPFLJuyeFUYtCUEQsMPu5OQ54OPA6yMe8\nF60i\r\n=xb09\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs0SW0/I/O1DDmgdNk0axlqq//NZpmJJpMT1xYx2l1FQIgG6n3f9l0udZBvOSHvCKNA/Jb4tDHNNk0cjedOnsriR4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583193743037_1583193813042_0.5693208457544461"},"_hasShrinkwrap":false},"0.11.1-next.1583204591163":{"name":"playwright","version":"0.11.1-next.1583204591163","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583204591163"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583204591163","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-svI9zuMJ+ZZltUzrrB+Sd6AX9PaEM+2dD0i4fA2auuAtVLUnR6VJbWbyNwm+V/Ikv0iHBYnf+CNq5n0w1dqmWg==","shasum":"8994fd0bb88476f8dc8e6e600ca5974792efaee9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583204591163.tgz","fileCount":5,"unpackedSize":14253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXckaCRA9TVsSAnZWagAAdGgP/0GuGwaWpaqKLp445HKe\nsdXTE9KzyGDNWYWB9TD4dfsw/rW/6FJwc40d/SElK4/rOybOrCXBY2oKCUPQ\n6vGLYjNMlK5t2xtrm/n9czGAsxczoCmaAj3BRHmVNsoUkoAoT2puv+AoqFso\n4P86Tr6N6MToqEJjY/2a99cBHrYiIMoDdYvxJ4MZnNhG6PmogDJ4Pl3xupA+\ndYqSnLhswtqm/ZGNaRTxLxIk0SecM0wmjpdPcL8g31Gje4EnRdzoK5Zj/oBk\nwPPThSonHhOTeHV+FUcS40vnGUf0mrTnlv8o3VQqCr2TI6ZZU43lw4A2hq+V\nI9xGBw1pQGxsD6hNJ8erW1067VAszuobdxBawYCEoLD29jbcI0CGDoIDbvau\nd5biqDMNTanE14CB9CieF6U0b1ZiVD1BLn+fUkuVkYdh1CPVmoXhTOwnoqHE\nCPg+H1uTMcAKPZmUZ1WcKUGri3470q8ejdueXVcuCWV05UhS/7icpVBACdKW\nrdMPT4BIY6XiJ+Q2tLQjbOyWFhJK9sZLlpQZUsPUQKr+2fDQ2+2rdvvKDPep\nkT7u9xB3OVg20IaYguR3xkTJ794h3uA5HugAef2Yqx7g6wqfgVe49gFoF8Hf\nmVu5MFAYiAvLySJ6nCjFnnf+kjteU8XdoEpFZIRS4FaWnGgyXH8soJQdKT9z\npLNr\r\n=unl6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWszwXVwWamojGv/CGl6fezaALg4LZRsHOr1V1U2y0mgIhAL/7j1w9sBNqqpUftfCuQprjFJVMojYnvBnqWYxks0Iz"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583204591163_1583204634244_0.7223309317974151"},"_hasShrinkwrap":false},"0.11.1-next.1583204833160":{"name":"playwright","version":"0.11.1-next.1583204833160","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583204833160"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583204833160","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-M+WE6hdqq77BHkmGXWjrlGlYJ6daVDIycbPF1ot9x5Pl3C1qTULCHQYj9EQJZJvVNfqHnP4vNZo3By/4hLNaZg==","shasum":"c302b01e7749dbd72d316486797e1ed8302a271f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583204833160.tgz","fileCount":5,"unpackedSize":14253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXcoMCRA9TVsSAnZWagAAPqkQAI9ZOMOe8aOJ1WDfksGX\nnM5jsXnqwVd4P1KfQCeGiN3DzQeHOmgcnET9/RJz4AmmplDNOYf11kJ3N7nA\n3MkwvVLMJZHjrh8yIJ64QZ4xvRnR5YP40gAbyNW+KOG94QSQKwnrvkmGBiM2\n88bvciqnvZHRqdXAJOMFTQVLFSotZ0NWe4n1i1cuRrLnsr7r+nmn3+r/Dp1F\ngqkCpIPKrfPvduQpvFOG2Vgw90rrC+89A/yCPS8voCaLnlT6FV/FfBcm6Agb\nzfStC7bUX5ZWbDHIoYFrwCg0YPOgrK93/JhcfHnsESaIXMVbl/jbtjRFR1f7\nMyj4Ug7xuW7eKgUxe/KvOyzxYT9FOSJ0oZlmj5DaTJ5/9Nf2VZolRPq/RVJO\n35ELDBwq+iIZwZzYgyT1P9hDlzMhI+WnKymRAryGlp95H8BMx862AF/cM7/F\nWFM3VGc/luIc/hyV8A49C0rJ8IiQNUfa31IGzT0Pw4ao3I2fgL2ORQE6tKUH\nJcbHUyFAUDBaioaZ21cKWAqweQYnE2QMtOTAoup27sLlQkofPiMf5wYbLb1Y\nKqXUHVa2ojGnzYoveik4w2hND3zaqXi/gL/tAxWYTbSuOKRLAhi/JIFZLyXm\nLzFZNnFbBCwyWqZLAt2SzPEdBfnI8NZnUa+owiWlA5S+vHbuo1B0/rBPysxn\nwSYS\r\n=rEVK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhJJcAcT2eMUym3ZhLHJOHCmns3mGJODMM7HmqOHISTAIgYUHMvMMdmshEgUv4NEPKDhQj5sTh+rlxvdALfuHTQJs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583204833160_1583204876280_0.7325195579271491"},"_hasShrinkwrap":false},"0.11.1-next.1583205797192":{"name":"playwright","version":"0.11.1-next.1583205797192","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583205797192"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583205797192","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-HQ5UDL6i9uczKcm+bi4RluIrtl2DTOrI8W0rHwWyRjiTqlSOfSRDPcgRiroyBeIiSECXxVjq457xlIvUVSwR+A==","shasum":"56f95efe9b57c107ca773d9978fcb5c1f9465b6d","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583205797192.tgz","fileCount":5,"unpackedSize":14253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXc3QCRA9TVsSAnZWagAADLYQAIg6Ai3ijQ0JGOeniU3q\n06McFNBAwIVhBKvhWmctGizRtHeEmB5sOCzS36sxktYT1cTsH/thOtarrEug\nvSfRl50O464noa8LLGX8rAQNa1dVOqm46TXo8Adv+Lfw9GajiOFQIn6aooN5\nNX4AaJKccfP/7c1BPBTS+A1zYkGtBitxM2SVZo6x9EiLf9IpSz/eF6YggOJ3\ngMVqhIJToEloj6oE+lS6dQibJtMFwQFzUEVEbXdhd8SsdSsCEZPZ3vb6Db+4\nv37NClzufGSQXPEi05pfBSaVnYJRN6QmgJndIuPxry5c8cQ85D4yzGi673pX\nvKOmW8oBGqLQaTqIxHfBdBNDxyxlhSFMdaD9uGYvnpPOOFVadpDQs1BQoPPP\n95M4oKk6pjCFq/sVsCKOY7N5lUSGm/OzJV6S342gBJzJaT1/NwgTdawZXUB5\n1phC7rP28XbDMX4MljwlW15izBiBmfeYcZoUwNPqegs6wrNirPFsnMcNa5BU\n58uawN+Zp6YLRupztcE1vDtF6vDvavItc77EDXFDIceqNUmXjR/sL8AV7Jns\nL8KVe9KRk0douXORE66WMhbBqmcFytzbx049G0IgHsOTi3thigqrKjbvRIdn\nwvkGG/cTrKGDj+oMx6ur1YFlYTkHSGV0yBrlTFMteK7VyyWhaxZV1k273jHV\neBKL\r\n=z6DE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICOCJJJKiOVvlB5RE0R73uP6tsFvXucnPU/S6UVau7a0AiEA5gvkohwiJd5C/ah9F5xH5GRHRasb4HssBNPuRwsuK9o="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583205797192_1583205839988_0.5555610984444548"},"_hasShrinkwrap":false},"0.11.1-next.1583216591380":{"name":"playwright","version":"0.11.1-next.1583216591380","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583216591380"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583216591380","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-0TLZyRqNaYY1mZDkx/B8lLvizRJZgyGJRQ5eEvr9ZeycgQC2P6CaAN1QAZye/BHCqsR0WNaR3Sid7iWmrtUqJQ==","shasum":"ae1d812d533fa7c23bb63c69ce58eec2cef19241","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583216591380.tgz","fileCount":5,"unpackedSize":14253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXff9CRA9TVsSAnZWagAAz0EP/1sfPYrNViyvFmqYFSHG\nqhxDW6Y8BoStrxcCdPsSl1DJcICLYbtrA7cgjGt+yvSigy6JHinl2nfBYi7g\n/ylD08Du3R5WbCFw5oc7k18UhKpIFZ5SK/Q4D6DFtx2WR7kiyGAZtBJWzWih\n2w2OlVuu8ZqpbI6GUWkWClAUc8iRllpjEh2D1RwB0BuyuaMwrsem93kmnRxh\nCn7aW2XVwoOCqCshe1O9cNQ/d0I9SPQggNVxz/5J3V0j+DeSDmzh6pIxMJKo\n0lp2cv7N0mFxvt11IC+j/XwcFdRKOsJAxluh4tUNAffXUG4Y3dTAnjdjPWHr\nLBFAuBCcZPk9iQB28CteRuV3Z564CRsvjrQvKJHQy1t/BRoWe+CZrka8u+0T\nzWmT78pvi0N9OgkR0IlcMdAzBrSQ20+rR3AanPky1GaSlpvlUqGk1J7YyKoK\nSnXydK/uqInztHPAq0/UMNFHfdXu5J+Uf9RBBk/+ttjournz16olz4C5GxrK\nV6rUbBVhorVRIsdYzAMOiYoOIfZmKt+kZp2lWNTgjd4gynBXVOvrUN3EaoEt\nRL3ha0l2sfVSroYKu0VoX0aTRWvHj+Ltv9UiK0UxgzH+N5Yi5PcxAwiu/kIN\nmcijjZJGuGq4KhqsCDltAWEtzK03BSdX7iRTj4H1CO5TOLu5z8LzWthlwQ1I\nh4uH\r\n=RJW4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHL0enA8igiofRKIhedz2eTnt99c9y+eH4iSTn9mjM0kAiAK5PzSkghvn0fTIpZ7c1qzbAyzTjT6D9tnCsjgQakPuA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583216591380_1583216637198_0.6687808049128556"},"_hasShrinkwrap":false},"0.11.1-next.1583260687337":{"name":"playwright","version":"0.11.1-next.1583260687337","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583260687337"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583260687337","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-AVJC6WdTGQ3KXQvCpxTmQw+xKoN1NfYVXSvKNoyLe9d1APY8cFvFpJUCEMQNqjqlokvsa14etfLCOMff2bHkaA==","shasum":"c3cbfdc2885d510bc1ade8a980bfe98692e2771d","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583260687337.tgz","fileCount":5,"unpackedSize":14253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXqRICRA9TVsSAnZWagAAylgQAJ8ZhCUws8Cc+A/U8Tp2\nwtOIhUIqVwZSKUjmroVsmV0SrzNkyHkrZ9rtq6WwlasAexDqw9V/tAIhP/qd\nwp/VvxK7JD129VvBLb24PpN9I4eBr1WhoOVfck1waMIRd5J93C0FzKyCNCkI\nMBMYEc+9tfW1+H/m3TqVW/UdJLPuLsXKkmSl7fFLZOiugtKWaim/yp/2q+2A\nfG9P825FyLinp5rCHaL+tY+Czp5EtcE04bqZVp3w3OJNmifXwbI14MilHwMa\nngqIKAIdH6TPTJbBnTqJeU+w/ZO7PEzAo813Ng5cIJp9Gm8qaU3FfNXetK8t\nUlpD3ijcq+y2KL8CoDviAEugCS7rPMiJNW22/YYnkWHiPn8jYQDT5z4IsawZ\nQABat1OrK09XyUSScCse53FqtLhf9wkVKvOByYDtGW8tSbzg2LeBjUeyL1Dk\nvSpkmdCRhauIpQei5QcgRTfbrIlIQNLFuPL4PFGbA6HvDw0AC95+vdTwDq25\nHVGcHWR11RxlkkHX10syKLWy2tKGq6Q8dSpPb37oyI5uoYlw9bD4mEvYjn6f\nJyrAd8qU2xtMEhmC45dv/5pHR6fSz6b5p4BVtaNEBfR7eH3L1hsYzcPv623I\n4P3ZEWRYoANVE6mQ6VsiGrQvq8uJZSB7X7kmUl/UmgLDOpUv3y5CvSJ4CW/r\nRqmu\r\n=OfL+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE1SCRr6G5m4ZpZRJV0Yan7wIWoxh6Z782Zkv9YchzzwIgTJ1WVBF2dxexkvQjMvewLJDvZvL0DKg4JF6cXWmaKdg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583260687337_1583260744019_0.5123053165989246"},"_hasShrinkwrap":false},"0.11.1-next.1583267736573":{"name":"playwright","version":"0.11.1-next.1583267736573","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583267736573"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583267736573","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-oLOlxrw9ia96DcXCOo8pn1FpWlLi2GPhxH4Z4NHjat70UA6RIWvu87VhG8HFGd3BawsPmWwo6XXDC4UJGWBgmg==","shasum":"0832c20909c45982b17b0590c070bfb138587339","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583267736573.tgz","fileCount":5,"unpackedSize":14292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXr/JCRA9TVsSAnZWagAAFbEP/00eW8H5HszconKkyvjd\ni6YaQFnZEytJZSLZUC4z6MhnQlEUP0Sgle9fUfU3pVWl65d1a1drAK886R/k\nNrmzsHu+WCVF6Q4Qbz4n67P6cAOyqZRXhbs1ZIOv44ZvL7008m9valNJ63I2\n5I+LT2dF/KueiG3rwV/BSx7tG6OQhITH3XoULTnm5JUaACcCL0QklrpdgCcr\noaW1N+oWVD9J8Me8r2qTafCtNI1+zmjrw3p1DZ3CQB+kcSWdgbqxPYt3grlW\nerdZJ27efweuMkB2ay81pJvU/JgZfv5MQAKwrKL98DQBE6J2OdoT4ed5BO80\nioHDCN69T08QfVICplwZ6nrhZQHvfc5IXq28s8ZbShc/s0Jw3n08Up0x7D30\nNWBN9JvnKI5hDZPewGnE2jYMR1uv8ZPKWke2pKOGO7+LdTfh+BMuCABPjQMN\nw7r1fPFt8JwjUUpTv/C6yGWnwhj/XYFw8ql3/hP+V89PwYp34LHXtMwgLFQk\n8RH20lu0hQiw1Eq5RcTA+ODIhki5WC2Ep+7Rub8vOHWcq7EuzCluHRlyeS/l\neQhm75r1hePU6Q65rs3N4+xKxN374FoiEUAzHKbISzi8bgBT3s3v29BKfiIV\nHgGLipt01mhsBzQ+3GG7l7U5AkjS7jK8z880aLySPYs5DJ6cw1q8yRu9bxpH\nQFJY\r\n=Y0LU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEBkxS7NYK0ZEEEPYGZJQ2tVCrdmzcWc0Cw91ra1xeDAiEAl5bmw4HxPZXVjGM46f7l2a4hqv0vHnx7M2Tqdo3KJGQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583267736573_1583267785328_0.7816274165015626"},"_hasShrinkwrap":false},"0.11.1-next.1583306456276":{"name":"playwright","version":"0.11.1-next.1583306456276","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583306456276"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\nAnd here is the same script for Chrome on Android.\r\n\r\n```js\r\nconst { chromium, devices } = require('playwright');\r\nconst pixel2 = devices['Pixel 2'];\r\n\r\n(async () => {\r\n  const browser = await chromium.launch();\r\n  const context = await browser.newContext({\r\n    viewport: pixel2.viewport,\r\n    userAgent: pixel2.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*pwa\\/net.js.*/);\r\n  await page.screenshot({ path: 'colosseum-android.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate script\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583306456276","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-5dLUKtgdmU9hNLkQZGZ52awCcFwC5d9MotidClzYE7odC6lfaAyvf+hC9JxnaN7Z3KO+o2vzrgk+TBojdy2jGw==","shasum":"ccf37a0c08ee87cb8fd16e648b7ea0ba2f6ccb88","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583306456276.tgz","fileCount":5,"unpackedSize":14292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeX1cGCRA9TVsSAnZWagAAt1IP/28a9wnsXVmX18VXSV0t\njxHOEK/gMglloEo5Z3Z5oJOHqSqLoYx9mQzD+g88yj0Bzv74oDRndR0gfHfD\nf20USd8UWHG/fCo7pRo0rpOk/AVudEBiXtzhGvTLz0mRfnOHzhEMVmvWPFUX\nYu8N/kRtu3ujiLY1FCGRvxQpbfa9s5KntuYRI+YIyLXOIk0Lm5uMix6r8kFo\nsVlnr3R5bqMBmWLxXBzAiyAQrc36Z41/t9e+h6qnBatzvonqdtx3ubQV7rsK\nsoLhHkEBxsQRiD8bzGI9rLRMpjfthzjLo0nvA84ELneoCm4Zy8afFffvhhV4\nRj4Y6/z8sgBqGjxv9z7EhIQckI9HW3faWFyoEbEFRkA9NnC8X39gEWjzDDEZ\nKOLibu05HMb0WsRl3ok1KAmhcGGoguioIeXL0XyK4pZqtIR7dR4Q83Q2ehHu\nIhF3D1lQaRk4RS/uHjrdeDljjPJng/wGfSokeFIRwC5or4dEF16FtK54sY65\nSNXR83o1KA1bYcrqLM6ouEPhd5R3kxqa+0AgtKvv9KOtjZ4MFmLdgNMHRD20\n8FNfOv6MrZ1Prd0fJfxCkhMsAiZTfV/xi2F/5kaZZcBYVFxGrKcRiWmxGdyk\naH1ZkrCCQySNuhN5oQ3Wuc+WK5vpxmfdkB22+MHTF5cKGqs4e+CCf+F9SR50\nv19E\r\n=dDrv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+2ZfEwh9ki7Bzj5lWBzKX53v995ARFpYoSvYGJwF3PwIhAPHmmVXK3FMW6EwQDWiF94SPw6KglkUuhab3LvhA50nh"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583306456276_1583306501685_0.1270388370845048"},"_hasShrinkwrap":false},"0.11.1-next.1583349510791":{"name":"playwright","version":"0.11.1-next.1583349510791","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583349510791"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583349510791","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-nc7JwIAzr8K//WSbyKLtnVG3vOeqFRFcIKwsR+saAsoEgFqmRR+euLCIfNyMw1rGkilvGMYoei/EkkP0PC6jVQ==","shasum":"a24135f2ca909f6d17932ce0003c607d5c5ae84b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583349510791.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeX/80CRA9TVsSAnZWagAAjc0P/iQSnu1PWp15vm/G2q3C\nSEwaw6COD6IR7V1perlTjCxJQ5c98CE4g+9VwvceGbwu949rLwGA+N5MYNzB\nCMaVZtrQEgrkXpA0Gv5RvAih30Kk5GpYX07O1aett7EP2wli+3hOnSmvT9Mv\nSGR6/MHKziNWYTbwkoMALz40ijOiof5jgGK0+srNKfZn0o+tvoGN5I0K0rAB\nfScyAv1fUTKp37JnuBkHAS+7FTdfwO2IwVkZtzHQdpyaQ3AR5gyuhWijPH+D\nheccjDofd2FLKYv45obKJk3tKlLxb/oIyjACwP6ms4FnMUdw2qgkaQZLIAmt\nFsk6pFEGcTnNIRK+AaUDWExYlC/MkZhFf8Ue1RMgUB2Z4SQhLx17wfjfXu5N\n8tpA/llUd4qrfSa/gCo49AE2NnC5KOhsOHlTgyh4ndwMFLkWn3KdqXxjHHcU\nIBzp78fXWQuAGop79SkxQ4OFGB9DvBV14jsoWOiyNBKjt0OeYwvAysYduRlN\nwx/onb0wxTNLEEVwd3e4kT+5pZp+VveBe+G+E0h43ywilJ8pvfX8RfLH+S7T\ncedSi6t/uTQyM9UHBpR5vBKYZz6Psd9VXa3FEmANXOQVX5yMueR5kitXlVqU\nUvtxcqNgT5BrS4BQe8BMftlaPDtlIUYGGddt1IoesG3Qy948TCsNqazIRQSQ\nQYxZ\r\n=qpFo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxeZjx/uFptqKjIui5I8s4F6WVvt5yFMN0mIleMJb37wIgN5nZD6Yjdt8OJZY9sdGFTfAnc9NrH/ZUC/40yE/ljXk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583349510791_1583349556126_0.525684645858123"},"_hasShrinkwrap":false},"0.11.1-next.1583353624004":{"name":"playwright","version":"0.11.1-next.1583353624004","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583353624004"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583353624004","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-DaQG/h6HCH0DtC70Kv7qc6uAfjWq/Up433OtdGJHtPdWXzI0j7Q7ynKijVmdyTIk1FhuIggZONf2SSf4n3ty6w==","shasum":"7e36a31a5c769e62fd2ad3d91da789ed774a0305","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583353624004.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYA9HCRA9TVsSAnZWagAAD4QP/1G50xyyHiVpbdS8DkFO\nowSSEwPRg7wWZ4v9Lj+k2LJgk4B6NhrNNqZa4pOyR47n/lzl3BF/U3fs77y7\n8JRdlUqt+7oS2zex46CD/FJ7LqajapOTjRxgigXK6fmCxRRYcBEtHE/Dji0d\nHoLvgz6CUTztxTrR5WKeN32DW2d3Y+6Gt03/oJNuYSWH1dhwJsLc1+JBN45l\n9P+MxT+S9OytY9PQP4LnarOmywCnwXt1BQbxB8WEe+hLuQErdHEaVLly/RzM\nXwBuKL0fEOlcxPCwImS5dRNZwsnZ2YZKZQoSlsT3TzdSvtC7DlEGKh+SCivN\nVMqEcNHEkeld5TYYD54cKaodPGNlLJg7uqQKrKwN9Vn1pWZCpTxizp+xKP/+\nBKGLl3lmgTlPWwF3YFYcCdN30H46udxBoHIj6PmMoESlqyoWwgrIMJBB4kzt\nm/WWmSSs/koHJmsogIxrCOjT2VUjc55sb8lCs3UfBOQpgYD+HY9dy69qVsyr\nWP78+ldJuZRA+Lnld8gMAo7PVYHZOc95SFEsW+F0HSMc2XR6aOjigHIhcev2\n3lJZU2RhBNDLNt0G5CCTVPHSoUbKxR0wkMyIuZBQpqOt+kIuc/AHwZdkxeEb\niOJHJW+OEKvUbFcHBOBjpVpPKKBxOOauKBQqn3/GR55MGpIQek5JBS/gfgbk\nMjUe\r\n=Ua9S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrmOSfPlzWKEAcbcY3Lr0rPDsKplRZH7Ri2k6MX6qJgwIgW7k4GejPSFoR66tjMv7Q96OgHsB4pFrbsEZPAXVWMCg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583353624004_1583353671531_0.2964343371585838"},"_hasShrinkwrap":false},"0.11.1-next.1583356813015":{"name":"playwright","version":"0.11.1-next.1583356813015","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583356813015"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583356813015","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-WtbVn+54d9cN57MBiF/LCMQvK1WTTuDF1rHXV5d9R19X1v7dby8m4v8rktpShI16YyX0Nbxx5If98Zr1J0SoJQ==","shasum":"fcda9938219a3c56e530988547eac7e9c9090acf","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583356813015.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYBu9CRA9TVsSAnZWagAA/kcP/j7IuEj+Dvk/25FE3lLM\n7QvnkuXhnA5b3A/SwAb/biwW9R/KNfD7/MIHJacn+vhEVcuBKpz98/yQvDWg\n3mdusOeZ+oyAq7ivzOsz9hJQCTnDiDDTBcozC4a8p7FqhV0uCRNu8x2VAeBF\nTfMb2y8bnRtceumVNoVQazInBI3Ot9hg2/gTgomndKSYhW5+h2JuaGBuTPfO\ndXutlrseiOsKxvrFlQL314ubCyVyT+Oz/YQ9yhYKB2e29hf/Fo/qJklCDWSU\n9BalxS9WPTB6LUuVCZiJDYW1rmEzGcRYLY8Zpr3n6dYZA94bUKqO3srZraqh\nThor9Z9B0sme8lNUQSorU8Add2xo1bVo+MaytgVaSm460gYTK8PQl/n8YLEn\nSSSXIP+SF+LUqrpGI/bVsUfpzBtY4f5zVpaTxfTrBsj42kDhnVkpXXP7H4qv\nKOkFVDl+7Smu5YKie1XOiBOXFsnlAn7da9AuIB8bs+2+4I5sCnF9rfT7vUfw\naliWlmivTIkfSYSo9Js6KvQUvwQC5QGCMtNqeuVAci0PewXaPh8wP9LPWd6t\nuHq30vkgcSpoDPVNvTYxjODK7pUhBaE5LbDXX03TRAX2sEujmOPjdUuGprtq\nwj1tFPXYatJImj5ursDurFG/xpMKObqofehyid15ncV7JtkRuLhBfvRzzv8g\n9NmQ\r\n=NsvW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAsPdWAcqyLxPv6msAVargufNbKI+3yVds1sm91+rzQwIgAPqj+sTox4ZXLu620nDGRsQWf0ZAIBKlySgsBbB1/04="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583356813015_1583356861442_0.5449986880541189"},"_hasShrinkwrap":false},"0.11.1-next.1583361034295":{"name":"playwright","version":"0.11.1-next.1583361034295","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583361034295"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583361034295","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-0hHBVfm8+1aVPi5VJar6Rllc2wbDhIzqkCvDdPrbIXzYgFiLRpD9D3IpeerSGSOpLc67FlbS11bMD4sxEzm4jA==","shasum":"b9dd0d08af626f7b857bd7b477af2c07a2409985","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583361034295.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYCw4CRA9TVsSAnZWagAAY+UP/0CLQUxmhKsLOkOzpGzl\nDEvunLDI1zosP7/MExzFpgOGTHfNDXW3yKCO1n4833ekIaL44TLlkwUFjpqZ\nKskXgz5Q22yQj9sQhl6742GLRGV03FGaMlyV/m2na/pstbHdfj5dhS079YT9\n4GNcxBSAwg+5PkkdIJoHAP/j1TQCES0hy5tcjdvZAfR/B9jjOQNhmutAtQDR\n1wK9SEXSqWowFr+SHYtPuE4Rn5bbKBxtWcdxP+G/jl8kEJW8RncoPIPKxW5n\nB5WvqzVXmnDm7WoXA8cvpEqn737oLVGXoQ6+E6mjIJFeQ9Ve9KvxJBJ628O+\n5/RCTBlkHSc6MLASbEE4mjArcbbaNvus67osHgv5nu6qP+G8v9YSIBJ2Zc4a\nnrUN0r2lO7wfV+RU+Of/DFMEEXHqGLAOxz+cAqi2jzv0K84+STA8mJ6kkwrw\nEaTGg7mghEQdr7Mf1idVRAvN/fUFtHPwVGV7yKM73s/kw0OWR1nSg2uEj5iF\nIxGaM9o+BoMvisclkLK8Sz6LbLuK6Kfv9czoLPQ3a2iE/GePgxNV7PL+jbXc\nCh12BADjn+1kphNmjSkBrnH4yoi6K398BKAKbXGAkaJPTXuhOi1y6TsTIHoT\n9t+y5+2at9aeW8n9c9RYsjGZuD2kS3JSKgBJaQDiN0gFVzbaBPQm+6bpUsdA\n+qEH\r\n=8ghY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxWD1S6II6sAAMrcLaw+IDsLVtl2Ly5CpOD7pWuqLI8gIhAKfqWXR5QHVeOqNAjpZ4l8Hch19qo0zvrXU8ZdVVGgXh"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583361034295_1583361079646_0.36746175370710077"},"_hasShrinkwrap":false},"0.11.1-next.1583362118057":{"name":"playwright","version":"0.11.1-next.1583362118057","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583362118057"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583362118057","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-22j1Erk1XZUCBcEI+7NkSo+vnGefS7JCNAQkSmI5XywS8esmrQL7usiBFj+nQoKhFtTDiahV0LoiIRbFAXysoA==","shasum":"53f371f390879452b0f556c5c278a70d6caa1855","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583362118057.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYDB2CRA9TVsSAnZWagAAzHEP/2K3TiQOfzfZQVGccK1T\nPesGIpaeodbQC0CAgn6ZLNSeWRNNen8YSZFFmO7AgX5kNQ1aJG5nZZ8rN6cx\nM6afp0ozbyAc6vrlxIzY1zGkmtWleG/Fz4w+/3DGA90O0crsqfwN+O0ftsWe\n9sDwgFodhrOPGl9gdFRNjZggbUKIvsvPzjPN3VbQrkbyV0WD2JBMeszhBgQ8\nXxt0CIQvwNr7Xn29y85gwMiiVLBYXltq6v3fKzEDte/Fd3krBuCmLqbhXhyM\nqhDxr8boYIhX6BE3g+cxnN5Y9uWGHPFFU7ev69aeSfUGL7dpqhtqu3jptOLb\n6ETJ8jGbb2zhgc3bSGanEeVQBc2GVV67pO5z+ycslPsjIqrzdBj6LojwB0l0\nkVxDR5LroB76Cm/LLR8sjFn37nZQrRx//kO3TsocYJIizHCE2oOvPCM3IY4t\n8gAloGqfHFrfZ1oL4R5uE9xkQQhWyP8j85mG1onOjzsnfM/XjjQW2x9djeRM\nIPUA2cHziqgKxYhJaPZEo/7IzcamA6g9uj5k+iYNv/4qdZQ2k7kEw+PrKHv0\nv71uxgL6qVRfXOB+UFUNLxK/xqZ1oNyn2LQ8HE7NHp5yRVLkpR9AXiHfP7LF\nRF/tXbmg6q/YdidaSElyDomu/7/Jz55Kv1Rl6o9bfeV0p9CeOyLzPGvMjdv+\npQ8J\r\n=kYQY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7S657VD5irwNOp6H0CUnMSh2ImNnAK8wXUrzp5xtvZwIgUTKS75V0gaRcPY7j8wLSsR/ND2X2ATnA8XdNlCubjks="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583362118057_1583362165955_0.7790839620257821"},"_hasShrinkwrap":false},"0.11.1-next.1583367207652":{"name":"playwright","version":"0.11.1-next.1583367207652","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583367207652"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583367207652","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-KeRqKFb10Xvy2Wtm+WndJLvBzoK6Owq5/833L/wC/OW044uCsR+jMLc7Iho/kJAxqncGfxj1/dtYfdS+f7cmmw==","shasum":"796548063041587b76ddf038f485e81eb1c96da1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583367207652.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYERcCRA9TVsSAnZWagAAPcQQAJuvm9Ot7NXdQUqoEtbZ\n9i+lY+ZtqwS6F+Ik3zcBK9kJkzHKsOhaUGBwWev5u4Uv8Wny0Bk8JJx7vLOG\nlBaAWrdux9sWe1/QF9xCeRu1QJjShphivMMGi+RABBRnjfgKSftse60cPNfY\nldOlun5XrGtn2jEo2uD6p4nsDoXNOl2sV1tyV6Oy76q5cuvelramR6q8F6SU\nNpK0pg1t8Nd+BEPYAimDIA6seIgRA8UXmAgYsIOX8tsSlxt5rEf4AgVBHgnT\n3JDPtZZF3aHUDe/HS7EiCff3GM65nBjjQHIHVNlRWXx9jVzv84SpuPtA/31b\nXzx3Isr7iJORrL2AFgncVWvUMj70K2JMkhW7/LF7NzN6EqIzMgNPWSGo0CqE\nIrbaL/bYQXtuGGQr8xMNinHPsqsALp1++2AxXdYp+FDxIACZXIWNg7QAvjUL\nZU7xCBdVIZ2ZbiY8GQg4ns4QuKcViBhKDzqkLDJ1i+uyVHBoSc5253vIn3pI\nVIW1XpQF3i6GO2IR8hbBcP2RPnOcmVRtL/XSiruAZxMSaY/RaW230YTmwI4U\n14qwnbvfMCvw4jy9MSEis2Akq6QchfQHHBbsRY/p/cA4bkr1dgtWhmudpTm5\nLuv47DtaH8iJ6knJkgES6QGGvQakJ793UBFXlAZcIi2mn7mePtPAWdutz1zw\nWAC0\r\n=BV9Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqoWLzavMiGSsHnhYUr4tjBz5j+JzI3N5/v9aatnSLugIhAKkh1yG5w3vWFzV1Sx6C7b8v53yzE1wwROrzjgSiIRks"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583367207652_1583367260528_0.5733246417218312"},"_hasShrinkwrap":false},"0.11.1-next.1583444645828":{"name":"playwright","version":"0.11.1-next.1583444645828","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583444645828"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583444645828","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-m51vOByqfWfoaujG7k0RhJUNlRLJtMvtTcvihkRCGSu3L7QHdqI1Mb/nPj3onxl+k9Uia64fcj9ycSs7AQWdSA==","shasum":"9242b549d63de805ed4369135ccbbad1659d9370","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583444645828.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYXLbCRA9TVsSAnZWagAAazIP/3ES6Gpw5KPqv9NuA3ex\nkD4GHazYWlTUFhmQB4zDsWSuRdaB4zCwrWoJkR2PV0oCZCk9nyRlaw2cG5BL\nNTlFTeABzE8w7J52JOqP7PpsDHINJW1vrUTCglpEC/lWIawUatH5PFGn4r1e\nHO1W//MyBSqpyi4hLrUgjoV10hk1pF0wduR132CEWgx3ZAH2Ru0U2T5Oql3u\nLpX9dBWfLm3YmJzNxdk4cMmAkP23CdDHK0PneWnc5bVAADYM9RVtDFgxapa9\nHiYNlTNakoSrxQNrkpewRepbFhjN5S4yQFRGSVJHOANsBAh9PWMrsz3LEoCB\nxhrOT3A1oXmBD9sBVjwxXZy7HAKkPb9w8tr25IIo+vlmmDeF8rxKNMdpcGw8\nmdtiXfiNx6ta+tUOBOm4Ych/0XsPydnjS36SOLqPBzSyoHoNcW0lUjPqnKgd\ntGTVRznDCCBqqHxs6GqrsgfFc2BOPqTnLzNxl3w3Y0fe0lBIfPukMcdYdBZZ\nC5ocKUGyxpirn4LJr/bc2KHwiuK/O2STJeBVkSwzns0TXsiWH+v2KsIzVJ1q\nJ8goON4l17/baUlr86ct2g/7dokjeNAP3rKz7Yu9qF8AX5JrjapIr2HSF4IJ\nvlutZ4Pz4i9KjZq3udADOvGDo8jlVI6mn0pYB/V2k/geUDBgfzLfct6AP4qJ\n5mq6\r\n=GkfP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuENMe0KGS368wFIvTBm98G2c5jMzSZvE5dy74ZgFqggIhANUFUVFIi3cVrGHw0tLKlK1Wm45DOARVO0W1Nx6as1+K"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583444645828_1583444698579_0.11434264212412115"},"_hasShrinkwrap":false},"0.11.1-next.1583449329858":{"name":"playwright","version":"0.11.1-next.1583449329858","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583449329858"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583449329858","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-RhdziaH6SrDtaPQR1OeT9P4O2tgH4GWORVRpbT2Yvs6KvCwKdzDccfu+NVHwWWpMXQDwrOqvHDbg/wAgJs83/Q==","shasum":"472e2c0e8568f28d31a5aa3fa0292fbb7c429e2c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583449329858.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYYUhCRA9TVsSAnZWagAAQO4QAIIWvY4p4/DUING5Yryp\ngGisJwjq9LwtXtLrq2/LH8hbmLcQtzGvT7wrMvnScCZhgNFWRmQB7aBlu44H\ng2S/n5KlQPN/Dwf4MdkcuZr9xW72VW4/kfzE4e2pSkv198QZZT4xyFRqUKfp\niZRfioJx83lgZMvTasDc/gM8UMkDzGcl3d7sBUAYn/OCcuX+p2bpy77jTDcJ\n8yJ64XG3hxH0Xtv3595HMX2MShfsUK74NT+PD0vQ1M/xpSr6FTOQtv0nWYr3\nX05KJ2s+mLUL8YuFkRNjcf3W/Qdtf6VFMAkzE8E3dSgz2a355ij6d8W42wRO\n5o4imFLdKquHw8EbfZeERlf/5p9V03QXstbT5E035GmCkuky+MDNdkUOY3Jb\n1YqGyrU10/a857rRfsz948BRkAGaX0HLqKtzN8jeMC7oEFXmXRli8xZYxsZh\nY6NdPFoLvT2eIWX6MwkywuiROVIrpvJR1hdPSQIKHrF38hPWXQmc/7j3VAH/\nZDidoxo3oFEOqXsXjy6vPzCjiVLBdsFqMS7B/EqbXKVae0tHrpNQi0IUtxvA\nxIRJ7IjI6h/H0BH6DcaOLNGjIrburRCg05h8xFWnMN4JoDVRMCtERXYhO689\no18gFeREsTUjT4MYmJVSeda2uY0BITOO8H9CYMWrIpUv+hEnuPMlsybcyMuT\nRs5P\r\n=tcSn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQvgiv/w7/cqCq81ocueV+a0FTLjQM6lH40OTQ0P6ERQIgDIqd98uZRAvkzMVNneTRR8EVXw94gfCncPp5wu+U9aQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583449329858_1583449376925_0.8174276706702674"},"_hasShrinkwrap":false},"0.11.1-next.1583451168969":{"name":"playwright","version":"0.11.1-next.1583451168969","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583451168969"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583451168969","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-uWqEPDWsias5VnkIQm9XLA0H+elBfcl2+riRCJPgkyaYkGu1fkeMf4JMxgv8mNBa0+wpV1+2hm9TT7lQ078EHQ==","shasum":"05f521a5cf9ab79d650c8efddbd7ca6d08d3a92a","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583451168969.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYYxbCRA9TVsSAnZWagAAdEgP/27KIIuuB3DOxMwbiGd1\n0vc6lrdtFvUus9uSjjtJCNqCpDITallAq2sZ2Cd6yX3llJCKInAy9dXgrdSp\nJPKt353KaSix5qFm613aJB6XMe0LuMnL02UNUgEsHUgp3m7P2YecCIslbJK5\nOCfUiZQXea43U8zWHTxUtockzd0YYNQWW2ecbjhaZjit84S9SrFee6TvETod\nCQCNKd72IuyNMW2fbsAzgxoL2sroe0b2SQzTorktARRkkNODskowEcVX6Wq8\na2ajqHobZ28+BeWVOTAiiBieOvg+mk+9WvXmJFe/VrkPZPqqo02TQwARYDa1\nrQvN3yI+GRBx4wrSPJNf7QDpI/9SXOP1VDxDTfIm/2TtQWOZ8KWXx39gQDKY\nxf24TjR5E2dmz2Ea24kyN2MrOe2XeaTg4Z8p7vYBphwHAMWqFs6+bB2MDQot\n2Y3tLcuznLeTinvDpgqmM8OlAfPPdbXtMkjEuV7KHHeisNxrIhsyIR1GQg23\nlCtKgkFviCxKabTLY4mPB1Uz0YQ01MhXPvRZ2jXgIu62a9YubDkYuIO94iUS\nqMzesikzwG48Cam7g9ggHv99k27aLFmJTfUWLqGIVy1Xbjx4PFXyA/4nJCVL\nAtytw5D2UEMNIF9VAXQ0pqZcBAlVOmPT0mDknttzutIEiVCU2VsYAeVMkKjr\n5qYW\r\n=d1xp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDF5zSEO4wjbUt2yygliNhkVk8fYdR03P+8j7cr9i4xRwIhALnXrCQ3a1qScVQDMzOc2NwOd07gGnaWylTIOr7kfjw8"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583451168969_1583451226897_0.17309434219548225"},"_hasShrinkwrap":false},"0.11.1-next.1583455961750":{"name":"playwright","version":"0.11.1-next.1583455961750","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583455961750"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583455961750","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Vjv6On5dIKxAncuVY42Kd4kDbJRFhGaHE6NlykIcvI0YD39/I0fw5nRICHyPR7HCAPZap8+NQezNr8RaZx9LsA==","shasum":"df496f3ea15a5fd24debd4e78bebde4b6b34d91e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583455961750.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYZ8KCRA9TVsSAnZWagAABWcQAIXU3PN5dOCvDGmX/KdC\nD68S6YHHm0IeThs5B2BbfstZYPY3y1yxkmr1ENd3ExGFCwhqVhMSzYtg3df/\n8hADQg5yHyFpO5i61GitVuqCVwQf0M0Zhww0fUL8tBM8GARtbpKflQns8sW/\nsdLMmy3XQ61aCNA8f3fEsxdgvvV02cTKt7dmqL/gQJjwsiBLG/xB5oWRbxGF\nWbh45XXGia6WgC0HFGco6Pk+yZG+c5/40FFFYw8+vGEw6gHgTwe1uZFFVP1R\nh3x/cFbIurInhF70qkqkLzalgsPKLtUVLF9gDqOfgHmkRgXSPoLd2I4YuV8f\natA6R04/ephyk79RcCMosU4JFfsZ80NijkcdwxuMUl3p5xk7w4ZbU7b5h3Wu\nU1TpsMPqUTMSQoIj7qPz5cepvT+2EmVmIs/xjAEMW2Fh/aOaNC3uzUK3ZWCm\nbSVOW81/EHta7o8/m6y+3X2Xc48Om+izlkkPjsKrKW5VgC339ku6zJfCIwpT\nTpQtqUypcdKYfGrLy+wVD6dZhjagPKmVZdKKmUNOOEwMBEssUkkp+1yY8SHd\nrutsXIDlQ8n1Bbw6lTBblfY934PAfHd0R5sxgZcu9fUUfcs/Yd+Gr0vwUvMi\nR8eCgzPzZZOpHj1bIFAdF0Dx+Yuq+j+IJo4vtitbJcSWl87AcpIrQ7lEBqG1\nJNez\r\n=Ku9b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbT69gOcwx9E+vq3CBUJjByShXoxvg9jhDyDC/t5mGoAiEA6+fWGKyarV+6vl3qPmGxfPtFkRK6f6ZumlQd8UAiesQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583455961750_1583456009728_0.9353771910852411"},"_hasShrinkwrap":false},"0.11.1-next.1583512728058":{"name":"playwright","version":"0.11.1-next.1583512728058","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583512728058"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583512728058","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-ASB1gAyF4bZ0bYgV+fx9VKB64hRUMHR+fbJ7wvpv8Uf/TS/k6i4EaWz1lqxjKiu13u8TWl0VdEt9ZTEsseXkEA==","shasum":"e1d538cc619b74d7d81c77de4b58a56b66075450","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583512728058.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYnzECRA9TVsSAnZWagAA7RYP/j2qhpk+shvzl2nStJVo\ntMCht6VzfcxiJNpA7yPFq5BFtxd18SZ+Ws5Cc9AqstKmnglp1ye7eUcnnnYm\nBharV4JuYHSE624kqmGls6iWXxxHcCVUXvzpa8cBzmLWkfgBgEVbJQtVlEhb\nKGGFs3SaM0PpvjhSGwc2TCyrFr3r7aisRNd1kpKnpRE+y93zPFuH0afpoDH8\nuaTOz4T84YaLoyZlmSMxTmJOaqqAexERIyWtix/yrBdJrzc5ioQdeB5u9U1E\nbsRyTBBMgzCCExxAhcIDuFs0X90Qm18J/veCZkIfi5PYWN8uLj1XZehKtJ/+\nsqr1lFLI1tOjbO1yz3+tld5WQipn9bbC8UVdBjQLJ2rvCCfaomrgZzcJxqBv\nSdQReLVVEdcOvtLPrAuvjNW4hAJExZseKI6khOAiQPykIX/U8NH6uj8hpWGd\nWsPsXjpX+N8mWScXeMV7iVXPZO+7Or0s/ECyS9/gO+pkO3asIcZVtZz2u6IY\nEVRAy54pXqLpq5umwtsmmMJZYSgQz+AW8OORlBOfna1mg3AP0EymSE4Vo/KS\nKrg/bcQWR55D/7NZNiJ5WGT5ixUq+sMPOy8Lx5+BzfvH/XPO52Qa4Wm7JNEj\njGwmu4rMCX8T+2yHMsRUXLFWNaFTPEczt40jO/d8XSTDTXSqT8X7/KMA6MtY\nC5is\r\n=a/ci\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4sAt8k/2P7Cj0WiXDrUgnNUpffwnOPYxmYuSKdWLEnAIgd5dzFXDCdcHSZx1CTAqLFEcAHaNR8gSUwohCXol3f7E="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583512728058_1583512772545_0.13907708047926892"},"_hasShrinkwrap":false},"0.11.1-next.1583521768218":{"name":"playwright","version":"0.11.1-next.1583521768218","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583521768218"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583521768218","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-VbBHnXzVjSvSVDRuymefO+61GGXfEYOX5dewtCbPYKwJAPH7pY3rcoeWTfT+dLmsn3AVllZ04ZzIcDwPuYxvjA==","shasum":"451f566483ce5e5b9ef347f7c2fd83257dd2137c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583521768218.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYqAXCRA9TVsSAnZWagAAl7UP/iG62lUkdcfVeuVx1SZP\nYRZFMe4q+CqfETU3rlz8c7jQWXP0/6Rf0VM0EtrcIoMKm1iR9H+nq0/4RW5s\no/s5vm8+Wz0vtIy4UiogglFBWJNM0fJ/oVKi4BXjxVhncYo6MkVXrsEsYeBF\nfGXjyll4LzckGf50WtJKut2LZc26s3NsB0TCqrZ4fLLeT2yFr/jgEJIYlefc\nBMedENwKG5TPAwxqguSB0VZXSLx7f0sGcrBiYOSnHB5wIrvNLshLE5XU3jxB\nCo4jw2epxcasH2XxakB/5LA5jCamNrR3Fz8FJj/hJ2UJeWvGEBb7AaBVEBI4\n9k0glg5XC732g5h2j8i88ypfLAP2TYyKYYv6q3ExBiTBOTpqir8n5kSRrhyu\npOfq5ge7Go1lif2ksvU5iB5mOe/viijhawdQ1f8d49s+PDRkRpuKRwZ2u/Zn\nJ+H7yx02tsc1j9qoFc+yMrL0ohkXT2SnYnrWkIFOHM6Zyudi8nuSFpvk2OQW\nFgxgrAAZG8KqkJHkPpnRqio+BCgEzvIxAyfzNgZrGkbbHdnAbAoQZLKRHkd3\noEgFOwb1qHPkl7Wm9BWJYg9GZXEKAw/y0JtLx4naxw/hi6i2sYNGD8hmdc4I\n1FlUdlyRFJTx8zJLy21uBxjOFHzk7SK+5Eyvb6yWG6qj3vCOr3N+RDK+Wkpe\nvfTB\r\n=dDku\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHZKcFUOSklpJE7DVWrD/OCQ47YX8I/LBRVPdhWco/hGAiAtQ/vb8HpJBZ7/32zlHq2fMHUTuwHQAhdOIUx+BlW0/A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583521768218_1583521815380_0.7160786670211605"},"_hasShrinkwrap":false},"0.11.1-next.1583531345180":{"name":"playwright","version":"0.11.1-next.1583531345180","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583531345180"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583531345180","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-r0izUmX2GK9qm1ByNDySZtLU9pl5K94YvaGyxv0YcNiZV3ptbKtLZUDCtwoGtJG/kMvejcDJ74o92ps6oVJksA==","shasum":"69b544513e89e23ebfcf8d3f617cb19cd1e55a24","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583531345180.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYsV/CRA9TVsSAnZWagAAmS8P/3diet3m5xBJPwP9qiv1\nqz/T+fW1ZvtSfCbt8OuqmG4ispZVvf0Br8YhavpD4iK4OoNSyh3y2f/o1Fzt\nxnHTFJyb9R3CqlOSQgRO35/VOOgAEFfL+w3cQ2M/iFEJe8t3a4wq4HXDCYAc\nhieoUm0V+IZB+qGEsIlMimBAlY6ahuWs6BsQTnZZwBuPTAbk8sgtXUQLJfPR\nyIMSZFuOd7MjpNDoEFpBMzKGit/LyLAd0lmmd5aVLY2lPWhxOiEHbNUu+sPl\nywk+JHDOYOkxkhUCz3HyJB56e6+BuTvHbB6FUb0PJ6/qqOfDZbe+mrNE3Aew\nerTJDTTAp+wP2rLyqH/5xto7qJB7OFaONQROCx+9tT7f8hDLe96IrvhuZOlo\nyNNJfDkz8w92J7+8GqbP6axfWuA0cq8nrIvkSLeCOwcg0HxBAFSwc8IUIQ/Z\nuShdJnzE4IJMi2tCDSkljV1gkIcHw+aup0QzLkAPvvmBW+a/qmj75w3EMHzt\n50z4J7HmWPU6f7cgPVvBvcku17OHuADzVWdDv5TTrCiXLoiKWsu9+dn7leBS\nelqCK9MsOz1Zz3rXpJFjjEQAq56FDXQMmDpid3edC0Olc/mCtArAsyX2FVNi\npKnt8BVhOAlGQPbuMFTBWa8T7/QVaBr0yFuyrcWvEPYehsBHLUSR6GfcYWQS\nJwR2\r\n=GyDf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGvW+6kQm3VzqIAQxbaRk2uGUnEI7wwsy9pP8BM1vEraAiAKb5lUX2/BWxmR9lX5mJLF4+qtlatGDLVjEM/318EDkg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583531345180_1583531391465_0.994282019727422"},"_hasShrinkwrap":false},"0.11.1-next.1583532343996":{"name":"playwright","version":"0.11.1-next.1583532343996","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583532343996"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583532343996","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-c51WONRJK9hUbee0FigCnLc2r/fAtGmJZorA4uoCuXC0rewh0vgGFVVI3WRcdd+/Fj9Pxv4WetfNGgS8Ty+89g==","shasum":"b75a5a4673343dc866723a9693154e46c7ce46ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583532343996.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYslmCRA9TVsSAnZWagAAoioP/Au6MvgZ+nV8iVgSNmKe\nMrPjbUSX225ttanIVZTCGFwryKRMrNr6bA17N70DHFmPl22eIOVrLshYmJgd\nA1HXWquLPiACmqdUg9SWo0YCZEz2exZ/aeQOUo7dVcfPzrnJpa0oKmDMZxBw\nz4gEu/RiZSbayO2Eaamvieb1j9w99YSTmYWAEqvSi6SA4vrOmzmAg8+E1C6y\nMEoopOXK/EMVbfyWoevy4Zz/QjBgDi8NmyvR609YsQ5Pc7fju10H2PDFAT6K\npzcxwsmbINP0m7feZkae1zsvPMBI1vUgCGeVihS5z0/GR/3c0Xy+DVlOf66C\nQMrqc6Ci/MNOI8iU+SYFrGLbFZg7aTAUU5tbviHxxElyFVciuiDdyNCV0M5l\ncSRF3+zkOw1pc3NxhGvSCuc6saZ3EaVRdkGerHcyTTHAFniUMvT0VG/GowWB\nSnXoCjN12/EJnUqYqC1owDJs336+frr33u+4i9wHmaHBVMWFNn3w5WTyYA9M\nB60hIDmFl3BJClm9S7uRSIf5Y2Bp8vPCgInSqF9BnqDhvDDQ+1zBKe+4MIef\nrXBdt12phI4eYzxGgceZK1B39zJI7czDE6D/Vh8uGGif9/RXIfiHWkZMaZuF\nvL8WgeWCMDT/wzFsL3xxUfysp5dXEvSG9tumLG3uheEPYVHWdyn8gxwlI2DX\nlJaN\r\n=UTJ2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBnL7H/5+mD3DipHqebNPnw0NPtcD6L95cRGZE96fqP4AiEAry+dKWajXIkfFM8WxiF4JBm4G746CeiAe8++ZgfqN/I="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583532343996_1583532389631_0.3138058053285204"},"_hasShrinkwrap":false},"0.11.1-next.1583534849963":{"name":"playwright","version":"0.11.1-next.1583534849963","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583534849963"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583534849963","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-mQ+p3lAuT7JoOp779gWXwqiZ5RlizvzW93g5yqqy9vTC6ZJslSeijtrp0C0VnGg1rvdh4AmrSqENKR1f42W/1g==","shasum":"8d3af88113697413d0e4aa5c19b33afaddd92fa3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583534849963.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYtM7CRA9TVsSAnZWagAA8SMP/jkGOtPVj98OhKl2oGBj\ndA3ZmkCkirj85oarJcM6e8FCMdWa+l8x00snU2dF9RXwftfiYfzDgWpLtzfc\ntcTJc6ynBM/QPK7QHvRlOMpXqLuqicFx1bPu/9vKfKuddl38FboHbEL0MQJ0\nWqpMS4VHNatnt7VLO975nu/Neew6nOptJiiaF0GweBwyjwm9liYiwf8yau5G\nDxq4XQ1LxcMoaiaFgmmcGJy2F60e9AomEgU5lmKKaYxSqSi/Kt9gImlS1FL9\n4mbXtX35KcyrOm05xpxqxijt/SH3S2wTPfv11J43wz+Voa5wunYHSaNYeSJ7\nLvZXUf+yiBhj35FsBpKePcTF/jfympjKtN9nVdiPWOdpWwu83ON6T/bdWu/1\nBzly5a0VFVZi80zc0LvJVbotVGnGLTlVaRlW8Aa5TkxyKwy6CYyUqPXmXJ9G\nX7vSxGwjMObJ6yTVDN93J8SNP9Qay3MjxrlGuZ++6DuFrwvj6GLJ/TVjIysT\n5RZoXcBN/zrIsegbYAWOGwSAqJoExdpkTlZ0lxNpwKBaMpWoWQ7NxI7SXTzt\nD5MSTtolR96P0GYOaHVMsvsYpbzrz2xNDb0xoAXCQcGjI0uUF7W7dpM2xDzn\nLRpqqjAvKjJGnThPaJs3tT+J5AIo5xxI7uTG32OWsfZSLIsAoABFzSqth20L\nySog\r\n=lcUZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzKhXH0qjbB4vZd50D4pPRI52oQpgF73FsDxlNT5a3kQIgXRRmpMv5LWxQMpwt1Eo8niJG9rzlyktQf7zmX8agyc0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583534849963_1583534906578_0.7553846275887748"},"_hasShrinkwrap":false},"0.11.1-next.1583537977230":{"name":"playwright","version":"0.11.1-next.1583537977230","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583537977230"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583537977230","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-+jY8FiifYVm+kdbN7KLhYbTtlOGsMH0/HeqGXtCEB8+J8xdVafT4u8w32bVSVVzuA2BQxZgnLybSOXdRql/RlQ==","shasum":"c960c7d545dc921903c1360c51cb44369902bd8d","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583537977230.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYt9oCRA9TVsSAnZWagAAVq0QAIkHJmFSDC9FKGzrLfYo\nRVI6hgWSOf4T5Y86MmS+jT7f8o0QJY/tNEWVZNmuSS55mIHDj1DTNgCoG0cc\ngSl79ZfclmkToTTbo6eNA0txBoXPR4r7ch9IQELTD8EnSFm0DY/fAnvIq1B4\nptaUZWfd2yQo2KmMdcRwxAhnCoS8EFm8pJ4kLb+tgMKRe9gnv77z+QVsrAXW\n36ddbUpPbxPd7R5+lNqFC5NclVKX7LFfddsVs61iwkCrV5jTXJ9Qe+Pdrkvl\nGSz5XjbT8jj43ZAl6Sbf7JPB8i6wur0X76EafVAZb0mPpUUfC8HgrcObZaxj\neyM3J06mX3iiJymd0/t+74sdzHpMYm/+x7Lu24/Lv2eghiX43WfDvp93Y/sa\nMeTg2bAPUmxJ7BMFp5w9JOuLsqStrBauUfqxWyr7n7XCOsk1qOJEZRn6qBI0\n5gFKhOoYl2tN0Gb//dpYe41PqscRLVqBFcJfYzh3HPS70RNRYc8eX+deMTup\ngS4x/5nw5XqJb8XaK/YqKkY0i2eqO5gmKmadTR2hdwQYMvco2ct3nRrM6wfY\nBexykZK/a9Kd87ieyH2WonYLbuKjbT+E/Hg65JxTGPMSGxIkWqKmIWHZdKXy\nbF2PXUFnb9hcuuPaga01SF8AxuTSjyiaIJqGZgNNcG95hF69wHLX2pM3IInh\ngNlu\r\n=Jx5Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpv2kqd6lQQsHvJqKRPeDzUYSpSlAT+Db7qfsUnE8pdAiBJ2QQcCcYgveLOMWabWYpoTYvwni1mRFQK2HVsrOWqlw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583537977230_1583538023907_0.7576159099033335"},"_hasShrinkwrap":false},"0.11.1-next.1583539827656":{"name":"playwright","version":"0.11.1-next.1583539827656","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583539827656"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583539827656","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-oGf+YUUdtFevRL7dNVAHUPRuO0RlRyvgGv9Oq2L5lZeTfopZ8jbqCdHYk23XgB1KpQfCaMV1bQHktkymSV7nhQ==","shasum":"7617ced8665b456de1ba0f338a8e915d9ca986f1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583539827656.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYuaqCRA9TVsSAnZWagAAA7sP/jV66MgkaZQV9WKxC0YD\nXneyHxFVWsUdBTuk9jAj56mqkc2BXOW16/IABhJ2YuaRNAJo/s69AWPNW27/\nYltbbdMv1itRBnA4G733kjAHetSdpCn+GkLb0KNkquAG9uG69NneKI1WMDim\nAQrpXMSZH3k4ww8/uaxfbfx3vsnoKLDmq72gdzTp6y22kt9budnW9bGL8jzr\ndlvcIGnnZjlxgUeekTTHTUCdnHqXYLOPYoQv0hf3jkdIV9EKGMoS2HpVDaRl\nnixlJksL7sWgv1M0md4aasT1SgtZ7OF08dyNccu38DQdGIcu1+pFtH1qCBGc\nuLngtUcnqggCDcJpJ6zdQod8pyoid5HMWgM5AwI7Tql2pGbwycz1pH5/mCnH\nBjM4jY3vsNV8wNEmqvemES0EaEZFx7Gi/f7dzZ9yNwbu+C/HmkPEs8XuCOEc\n5p2IiZGprzIdCJkj2pqQFl211cWrtusHnMrLL3NNPGj/xUnIO1dbVNF45RQJ\nyRgvtBNqRQSGl7eLXdCT1PJLc80JHJoem1pWn3JOocQ0eXkj+YsUKnH1MH4x\nljSt/Bk7qWbLoW1sBhEr7WBgVCQEpjq1Js1ufBmQZrsTRF43msSHmfIfOKXW\ndLp9yf6tIpntGMx6B6Xe2v2aMvxqmVstpllzkT1fuoCNneaotqIE5EC4wcwN\nlEX9\r\n=YbNx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBuMtnMNry2RXU7H73tG6VWRFjJghArM+ytC76yfFVlcAiEA3uQDy8AWCqcTFCVKZ9QHE1wi85jRFvh7fi74dp2hMh8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583539827656_1583539881589_0.7313644886672364"},"_hasShrinkwrap":false},"0.11.1-next.1583541572382":{"name":"playwright","version":"0.11.1-next.1583541572382","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583541572382"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583541572382","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-KjbLH/fckJizWwh1JoaDhYtCsrOvA5ZNWmupiAoOvtYhew3n5Prxpn6D3n1rd/20vWfaLmwJZx/nD5Ndu6YAYQ==","shasum":"91266239cc102e6dfd104627bfc7464211b7a5a7","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583541572382.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYu14CRA9TVsSAnZWagAAxQkP/ArHueqmExJhwfVjmA4y\nmuJ9EJbkX5KvZ0r5YEshrm6A0hxGci7RWFey5ruGzfunkjWidzAXuEWVLDG/\nfrhqPHt6eDdqagFCwAPhUqO/HNjpbreYJF4M7i9TEeyYascQ42bpL9rwJHKc\n9d4Tx03pGO/wc1civNj87or9N0blHlQu9H6Vtwby3WTXFkTiAVSARAmrPcOY\nwSH2H4pTKDsOGWnIGp2g7zW/gMhpiCt5Gway52OJ0zPkyabnQWns2V6PHN88\nzyFv8qYblepbItaDPQCCAXeun1ItaOzIgYOTeiIKvm8jXLTXVesTuaf0TY4p\nzujmJeOe6UO8/SmM0e8hcqiAEqvX6A4PxOl8AAhGcXZbEpTH/ui2wAfTkV4E\n0Z4MOPogDNnWggCt+FcZsHeWVtZXi0IL5a/S6p1DN75AKOCNXM7wf4T+Z5Ew\no9pZ7VgWuBjVY9/ugC0ypOkoBKPE/QSBow22dkMNpywMCA/p6d/pSl7PxzPH\nScwSk3RrOEcnbXBheCbjv0EYR4+xsYqoyrUpnvTx8tLtrXHASLpZi/gj+EmU\nSlyctHwEFUj7ukDWBUMRKm76Xr0GjBeIvcGJXB+2nzfVQz3lNb4YVvo+vniY\nXFHpSEUYiWeM4HsRj95yG70xJKYI8F+7yDshcGCasoJGyhcwyA56pgv7eAT8\nwccA\r\n=KOqO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWU1aGgEq1qLpsGKLU+7ONH3u40PAYUaJpKvlqdH5dhAIgI6DQysDtEceqxTYCY2ybFD29BW0/feFi9ycLqAmxQd4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583541572382_1583541624182_0.6353613308209065"},"_hasShrinkwrap":false},"0.11.1-next.1583543158962":{"name":"playwright","version":"0.11.1-next.1583543158962","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583543158962"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583543158962","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-YkncPPkmOhXTOEMTKsGX/fmEkhHRTRe0o/RbJLvZklah1wAHcCdPCCtPGD1MfzbjKYqZUGUuEsSxKkfVCIoBmw==","shasum":"279b2df87e6ff56a7838ae0a2249f2b48c8754f1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583543158962.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYvOiCRA9TVsSAnZWagAARHcP/i334M/sFAWZtV2CgoCR\nmGQlJaYcobdeQgg5IoLcX7fBU2XnqzRjkaZgYSEVte784A3p72PVN1Mfk+qb\nb48vuMJKgCA1+RqpPDzcikSi+OBkEq2pDzts8Aztbd2X9zslAMMY1opnxroV\nHyQqKdrAexcmv2+jmHcbZGgUGS7Pu2p8xPAGAtlPXbsbuTreNLVXcIx/523Q\nfKVhhsRHZd17SXmg1FNBJ0tBVV6t04OrSVAGXhQ8Hj1Jd7SUO1QJ3clmhhhN\nzMv2ahKBzig7Asycp31vgF/GnHttWcesjMzMjC6BbLDCvYkGlV72RHi/FSN0\n78YVf2xcaMvDojPvYNkoNSwhX6/HOR6WH+JjcEr4tKzmPmyyfLDWo6jgek3m\nwdzYwbMrrwIuiJOz7dVt+WKWiMcOU9bpQ16ybrOiPNe/P2OYz9Ex9Kc8iAJ9\nLZB0yuuuBm7aHsD6GZx67J/teJ7djsRGOYwgEf5/zb+f0DCRgWIw10nXbFf5\n1RSsYGa6pKVTUmZ5E1LjG8uPp4igYKCQRiBAwKhFIkeA9WzzXCcdvP3KSe9U\n7H7AHAj5aSk7+Rg6hiDwjDg2ldKX/wX4eXs3O6LHKOPlP6qb4cd45rSL4c8S\nY2/JbBrHNzEdBfRnh27ClGtTFzB3/gKhI0jK6B6dju4ln6CpDu/svJqDYYqG\nHqvw\r\n=PrIW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiZP2ZgNP0qtrPBWgNgTRcsjDXGzw5nyCupH7nTlR5egIgVNvPLwzjLljKvEVU6oyY+eO1afO1xwqWnD9CiRxw7YE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583543158962_1583543202590_0.6255783556909231"},"_hasShrinkwrap":false},"0.11.1-next.1583548749959":{"name":"playwright","version":"0.11.1-next.1583548749959","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583548749959"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583548749959","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-T/HwlRWGeKcMNUfXZZ9WlSX4N0CAqCUkmU3FrRRSbZK6KOg/bG/6u4Uq/OCK4NakisvKpzS7VWjVWIGkpwPAWA==","shasum":"ab15da12d2912f373db1aee6dde1848dbe7e608c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583548749959.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYwl7CRA9TVsSAnZWagAA2O8P/2LK6ZgZQzRTc8JkGWES\n6iCDLKkJdWlceNNaBoA6QXxRiUKgOqCUE6LU8sv0TVgNYRjFv5Q3WrP3agxz\nH1H+QlZWprW5N/+ZzWx0sPxqkKGe/adWnP/u63X+5mbcDSopMhK5tisLen67\n0Cf3xaXZuu739O0OEpuRbXxzLwMUukyUHjsq8K1iNrhdxYgSlJPad3E/bBIP\ngWL8Fkt48BIOqsxq9oamldL8c30QEqE8jlLITr13SNpiosHMn74Ob9BFJ6ND\n6ezGzWsK1Anoe+/XURK3RL+l+qpO3VQH8pu1oRwhVMmXFpqTqkfg9V9W6JrF\nL7Q7R9pde8CVp9IPhcAnaUIrWXFFcZhhMNnfhfvn6Jfnj6paFxcHFdoazWqA\nC6EHn6xkq1IZvkKT/q75/l9FtFAjVkhAWUXhXWqovqbX8B4g0Tt99z2XiPwq\n1IZm6ezwKzDByS+6F/Ls6AACGmMFQ2I+X2WQ/ykqhb1Y5/LZjiFgMiZjyobY\nsxSUphxsQh+H2s4ac+jcnw6C0RGoRBRhMR7fMPeT05hRfPV5AGnsbum8obK8\nGRD0m3ruEUQfOspZFlNdamQSm9W7NlldwPAIPBIIXL+i0A22hM+8dYpAhZjr\nvSsHG6sFdQP+i+DFnxqEwIY4x4SXPsXYFYSLImeQt8C/YVDTApnrKXLSTj3t\nqdMI\r\n=qJ9h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFC6nPtutwtjRoClXX2vqe2uqEbIRO9GqeZNxw/BEwWtAiATJI+ItMEIUGo1R16Cvn5FQJkbn74NHww0T0NmT0yHaw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583548749959_1583548794289_0.09692842194870721"},"_hasShrinkwrap":false},"0.11.1-next.1583598839207":{"name":"playwright","version":"0.11.1-next.1583598839207","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583598839207"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583598839207","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-9XGdxBRAxtEH8U+fhY0SAO8dXXHztQYZ0s5p6kvvIaLRdb2v97tLh9bu54wtV3kbli3p6jB0vPvBhgyqi9uvkA==","shasum":"959ad46a7b4aad1559fc8232a40cf73500dc6d88","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583598839207.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeY80lCRA9TVsSAnZWagAABwAP/jB6FEVgj1B75/38Wy0k\n7tc8kymP7RybkVmpN0cJeMxrO+ky//D2GYxayCrM34DSAopYwute/qMbP8ee\nVlXOmx2HSL7A6XjTBC/tYxPsI/NCQszLOooUDc9xC4a0wSIgoMD0sVO8LjMN\nVIka7qeCZXU/AmlS/z4rYwB0/xrHhzISIEq6wLv5xJbmb1VKQ2LHtwXU3XTs\ne+9QhbpEq/ul5nh5CXCI9Dt0mlJ1zz6Ss7HP4rOobS6GsgCHAvR0Qxewb6Xs\n+tMoPbmdgkqXeGxtOm7n4+phxkcuR488llXna8NJFKgkDMsJDfNsB3yT/u+z\n338Abxzb393Sb4XYH3f50WrXIdEx2+qRgQBE/vmAICLlvlnDDbus1CiHv8cl\nVKclydwwOPolxECWbUJgqEIFiPkh2ZCb7H/3rsJiiPLgGCL5o45pDhdtj9al\ndeqiXs8+xRmECCvxqjpqD1dTwC9gz0NU0u8cUN30j7OnyCprhMJy4VPZdYcf\nE3liu8n6JoZcW1TcaEfdDbtiEfwgQzxFnNMaUdTZd0JSZQ3wBfBzW70+jbOA\nL35bdtxC4OGoXHoKhWhbj7T8DWdMxjkXm47C/Hibgz1uqlR0DMzsMSijhhm8\nqC3hg7J6sQtHaXL3ALrlRnEd5JPnkRkGrCbQzbdWRf9fFdXbdAc70K1/5Bmt\nPIMw\r\n=UmK7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICijIOq/tb3Ko5V4MzkyFKUOpZ398wNW9beRDB9N0L8CAiBqMQ7uD7t4cvJ91JG93FnAHNPzPYwytFFU4HkYMR7THg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583598839207_1583598884976_0.6915001084292609"},"_hasShrinkwrap":false},"0.11.1-next.1583600211322":{"name":"playwright","version":"0.11.1-next.1583600211322","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583600211322"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583600211322","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-D4gquULh+bmhgG8UDjTG0acrWzmvLNwW1vHdrkDMJz0Q7R/RGKj60VN+iGp5OHgjVUuBk7we24ctQeAs5xCNZg==","shasum":"421095f746e770b463ef60f8b2ca15f653ae27ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583600211322.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeY9KACRA9TVsSAnZWagAAXDsP/R1P/pkKLAcMHibfK9A2\n8S7LYyZhwMlUDNO9Y4lHN3LIdo6oE1h2R0erZ6Gk3gQog+SANtw3G4MAg/yW\n2ZDGB3tjofKbfy2xx2TN/KtmvCIR0WFbYg0dIGH8FlMHy3NoJm9Se4/NM9VV\nvIE9NyWLPkXuYBwwn/KmxL2vh770YvWeEaBHtc62/HiSpIiZdkUOEmCDnLm0\nkExYsOD7MZaPhbrmQV48XvCH0JF1DZvkf+qVQ2xUaBeZDpHdSBaR+jKRU0tA\nKeyfSn+cWwmPzui5rCftK0zgEOioIValSkGVE+mae5ddpAW90zjgjQNaYbY7\ngnLQ1vKAyc7xSh3r5VixL1spdiRmAVvFyc8qUHvHSQroEVeCcNrHIwZPPG34\n32ph1/u0ZM2ShSfnJC1oIBP8EjmbYd89hr+PbSuHdeEpc8bzV2CF7UzOM13m\n7RiDFzWOUwhflNspoMZ0pnYrNoS6JG+KtVPum2ZHO/0zDbFLnoAYks3ZIdsf\n9WYJYqXsxbKe4St4MPayyTZJyj7UfIqMNq/y+JVKEvjwPzapADagJ0Yngnus\nM2EAgL25pKh1Nbg7P9v3u9ugZ9LXlb4OXnPq2P147+gIzcOCwNlUOUCJWnfY\nv1/1uh5BcBX/1d6/M22UZl/VQ2oTSUZr5XXA+dc3td5aLPJvA9CFnjpyuL15\n2qVx\r\n=Ix7G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHb70fz/e25ghuRZESBf3Xp10MaKJZrczywx2nc1G59BAiEAlyudmsD7o9JMxRbly3ep6RGTKUb5yx6gErtFZmUuGlE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583600211322_1583600255662_0.07554695392039301"},"_hasShrinkwrap":false},"0.11.1-next.1583630648758":{"name":"playwright","version":"0.11.1-next.1583630648758","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583630648758"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583630648758","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-tNGNZGt5INWwK2qEVXtDxMl9A0gAFGGIkxyPo+6B6k80++zJlEXlLtAwPb3Bxl2vZaUqsxlcz6NpsksUlKosMg==","shasum":"23c31d86d9f9bdb869da41a81f912ca8bb0ddadb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583630648758.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZElpCRA9TVsSAnZWagAAUKcQAIFxTtc0IN1AnG4V8SOS\nryKnQO3s+LzuqmL+9CUF+J+MWMJc4WoFtJA0fh6SCBzHRJ0rEIXtNYNW5xRf\n9HpWgrMEe0aCcMbLYDq4OeIJKUm9EBOANjrA1UbIALLhFqT+WbSjXJe30v5f\nkejl9T+MhrL8M1G0A6cGjqwQ9zRIMqBtCE+JntioTGbJfRHmxIXXWLu/Zh7r\nB5Lq9hT7HOKtMdFBTZBJ0OCW3x95ANpQJ/Dl02sS8SYAduyvPOxasAu+74IW\nKQn5NuuqhGSBIpBYKlRwJx4e5xWlsAzV1vGRNYFgfzMxkYRlLt994T80hufo\nPrbkw+/8xBOVPJ9HvwMlpBHS+EHzpk7Z+8zRziZ1PndF+LopeVAZ/5dvfQMS\nsfVnEfKJOA5ltjIj+972LDhXtYViYz29Zg8iC2SjP2cXi7kL5kJBfgaRaFQ0\nzST5SUwT8YJ2vXal2eFbhqmCpVY8ShuFg8JLlzkYW1AQJG1utCCz17laBmfv\nKLXoWMI4y7L4KO7nVaBEsUZ85lp2Lu/ft7mcEczXXmDvW/XzJ8R6zolIZ9Q4\n5bWBLQ+3sbAaxuRmQlFnzOsNe6ucc7ky3DY2wKHq+cQrK4NAqmuQyczb+Rlp\nQZULxz+Th5Ndt3913QB3FIIw3vnyOmZuNxkVWXglgQBtyQC0hNMttaysxwX3\nFf9g\r\n=sFo4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHlfVUW9Au5aMXFf+1XGCrcwOogUSiyrjiKPdRQ/VloxAiB34BVvImaryIEXg7Ajd4ouOKsKpvdA2Csfxjd2WZkW6w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583630648758_1583630696865_0.17040193592362374"},"_hasShrinkwrap":false},"0.11.1-next.1583631839291":{"name":"playwright","version":"0.11.1-next.1583631839291","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583631839291"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583631839291","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-SK2kOsgbFJJLqZ04w/MbEt/nF9iZO7wZW1/mYBbB/2m8R7qK/10Kiv3h0jX8fc3qUUXYDGpXycb7N2zeCbRBHg==","shasum":"4d17bfefd54ef89f94575803d365e9510cb3fae9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583631839291.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZE4MCRA9TVsSAnZWagAACyMP/0USSiwoLDsheLCa7Zkh\n4tz7nE5H9Nj2l2rAyddMWfM1d5WA+WIHTyRfoZnGa3s1Q6arcEwXh/RE8QXo\nCgG2Jevs3V0SsvJ0H83SiWT6DaNAc+h2ctW4I/vGZFEsJgVbGOb9iBe0M2OD\n9pklJQJh/dgox+Yu1ycl38JQU/LpMSEYGUaJSYpJYJITUHIN3oBX1O7BxzdY\nFrCm616IoXKwQH9SV50BIZi6MZ/TqiC0Jo7PK9qR+3QDpnL0e39mQaZx1FKb\ngZW7RlpYwgeksgXeM9nPdE22xNuiAdJwH4aaBFYkiCM0T6GFY3oWaGPPA9xx\nl4IzfjuSXhysMnhhde7gXN56E5+XqHQ6V7gie/dOb4Qz/TOL+m6oxEuQGtJE\n8Gawcs1UnB5lb7ZVXryKZd+WvEo52XyT0f78ZQnA0S0zcqoezpObJdAj8oW3\nWb6buL2QtnXJRYvGTTpKiCe5WqPksd8VdW4ugYNX8a4Z8CNXqTkYcVIDeqDM\ni2LgieOSI1Gqy64HtkqVTiHeHf6BPF3RgSirxv9dy7g8b4MSmgOYMjFIykxa\n/JvZNpocbQHNXdfTmr7ObhaZ1hQhLrJftMjgnjtsD5uKDqsKyz6ccPHN/2/u\nIBo3oR/GB1ejzURh8vYH3Q4n5v5NYMRpCijN8ToIClRv83tzx3kJzvnoD3CK\nXGEp\r\n=s5Uu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAxrbyi01W1PBDOobxjnAW+HfkznT0NUmFRw2ENIctQ3AiBFxQEVvt3EUo2FbwQF3zH15nZBiUExkGrE8VxtnNz2aw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583631839291_1583631883902_0.5664979880482064"},"_hasShrinkwrap":false},"0.11.1-next.1583780310409":{"name":"playwright","version":"0.11.1-next.1583780310409","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583780310409"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583780310409","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-GhNqVIjjvVDVvK5Fh18NzYvLUtLHQgsCiy5vvGBKibhNTWRRCHRDRUBzKpqOXsql8VIoEdNNhZ4Yh7cOZgB5Ww==","shasum":"9fb25ca7c48250014edc9a6d588ad9a7553d1c7e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583780310409.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZpIRCRA9TVsSAnZWagAAfxAP/2FjrX/LeqprioMCNeLK\nUQ7Dnb9l8Hv8ZAyT9fBY6gZum8odpRN86fuGF3ckkYV8n7RyShR7Wz1CTcYO\nsdVYU8e8bLySu3IanSq1dVd5HnWZ3tk6sQbOEroK64F/z9YGkSexYRyQBPhB\nk0WlAQf+sLTzhZopOKm6x4zDh4kGKZqL/uwaLMtRX76+/SMojMje6oDQfLnd\nvUjOD99B6EX6WuqRdBjclBvjQrqHBkYrOFWYCavu6/b+WzcscBEeB6AgEAGs\nMss62Gg4zcMUN+/7IW1L/zPImN3m/00H759VLlgR5dwvOT+nC+D4oqGuZlw5\nIE53Kxv8Xh0SXy+ZIhze6b15iKf1Bsual5AhinEEkGpovhcOMTC/G47RZ2Sf\n2ZxUbHUHQ5B4S8XJiO1hanWMJ/7PgSzT3LjS72vd0Gqhzpsc3gLYvwwyaESE\nv9qcQ6RPjTE8dlyfJjVoG+OVgbZjvcrNs0/JQ5hnqs7hyibHr6kce7CXREB5\nY6juuIodXnZFfkc3WfD9OabPfDoc4BcYJcnkLYOOQxezxlyNmQt23Np1qqp2\nURQ/0dsYJF85hfcLCKRAK9Y70fwnzbmBGsO7aPFPdQhZNmOqAiwBdHz3/XTO\noE+lS2FBcF7rlNCUK/lsonN5bzCONMXEZW95EbkLgoKRKFdMteuXAhaw44x0\niWi6\r\n=D4lN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTvks7GL1qdPOs/CmmnyQT5TETGWWHka7e+xb872P2sQIhALFl3wSEPullc7irYVcsl/Bo/5QdYqW0lmfFdjzqsaFz"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583780310409_1583780368500_0.801491064915403"},"_hasShrinkwrap":false},"0.11.1-next.1583792051156":{"name":"playwright","version":"0.11.1-next.1583792051156","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583792051156"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583792051156","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-1nJwms7qEDnIxyI1NrodSsiqBUEwb94Pc907zkQ64rytF9lT0xMoCdRV7DGEutaK0YJxekt69udlknR6BeZoLQ==","shasum":"811bddc1755fa0fa84b72a39990e5c722a89ca32","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583792051156.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZr/jCRA9TVsSAnZWagAAU38P/iNmdsQ19wrIkOasb5DE\nCSumEIUUyLKavUGmt9cIA4az1XHFH/4YFkRKfbD/AaodFDkaifM06sMEnKjV\nM+IdZK/BFDy8JZmFTZ4iPZAr7GDk+l6Kd+LzA80R18u2AdYqPuLKqPnwRGxQ\nKpItgk6+8sVGKpOL9OrEDajBHLJ5Ow8WAVmbMtfts8zrKQpYjhSfIdP5J6B/\nOuH2AMl9tdwsoIwCWzusWtHvWU3NkV5OsooUFTVJ/2bVFDgXeSvNPTUOIhFE\nJ4mGk0AU6w1QdyLLvL8uGHTnkjvMEO0+JTOWtg0XmtIkyLQO0Donp2+tQlgq\nIvAOBHtVtdqx1ystxKynJSEjJxm4hd2gKMOHHFwf7M6d6YbYMvcXw4J0jh70\ntoUYjPAJzgdf5hwuui42o5qz//4xF3dGgdbbz8oTmNGswABnpn+ypnC45wQA\nd52HlvMcC1V0jDcZJeiSQn8mn+kK41HIYpzucI9RbQfDtjxIM/ah+7xS00iI\nmNPzrmzZEA2RZvoMZwrv45BUaiHH4nfTtrKyHy1C3KrFsn3n3tztOfk+EeQI\nJGDpNURBvLQyB/h8vKEQkXXETqI8NbgTzDmA2OdNnLvUyr7Aih7myhq7SpdC\n7Gzgd/243AHf/P1XueonYh4t6/9qNhBkGefa92mkupCcbynt6t2To/XrKCW6\nHsr0\r\n=7/5Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBujIcEHdTkUVeb1NHB0zsoU1WHDgOvutpEARkO5KykjAiEAlLFOQpzycEQZs+JJWRf4b+0UMqkG1AJmWXfa44wu+Kw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583792051156_1583792099230_0.8917202879917581"},"_hasShrinkwrap":false},"0.11.1-next.1583796504588":{"name":"playwright","version":"0.11.1-next.1583796504588","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583796504588"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583796504588","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-RqF6kczuZfEuUjAKpRbymuk4h9AziWdSbYzSgE/1gSZz+LRPMXRr2fgmlwaVzEOARmnU8lvz7M/WJywg8nYT9w==","shasum":"edee25be223d814374ea44f01f8fda3fd6b82bcf","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583796504588.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZtFICRA9TVsSAnZWagAASrYP/A3jVmybDhWCEBuTvXSM\nY0FyZYueWcF4LT2FMTWUbQVrR64oDGjGUP6P8fhreHc887lXlbIX+AwSlObh\n1PIokvHAu8YqM/JT6vKDBUk97NipJRYpNEFfVifXV35XX6bQf3YlCvWRLUm4\nqQfF0II3ni4nr2KVjXnLtXyqYNiVO5A0uX+ySaMzZItgkp8u7Azy1nunJsLV\na238vP1HQY0dMs/1dL6H9jE5wreU69snyWDH2hCA8B1+P78pp82vUGIIT8/H\nM1SBE6K45VPXeR1h/UPOfZIl0dteOoiHOLabE5VBTTSjaJCzs1WlWVKG6Loz\n3MbfWzA8kwU8m9sdUhz/vdxRy/PJaiirweeAb2OgdOi9xt9mc0BI3nyrFKVf\nZKl1Mjn09/1/mQCs9MzQmMGJ0c2IUit2/5fLukldb6KDjb9msovaqQTK6E2n\nJhx95/ev1DFuPZF5XgS6p5bXSLh9FuUq7jYgsNk+wbXX24MT7mE+FnP3tkh8\n8SahegPm4ZbK1iAFH9lRQ+ABflAM/wJ1d+/p9zpvTaiAOTaWUMeEeEgXQqae\nmsk1MkJuvZM6B569gBGlGVDV1CIOtZelmDetH47d9vekkLXQRHr4ySEa6feg\nM28nC53YsaTIdn5sIffDRzSJQ5rmZLRhbHFmsw/pWjdn3Qz6+JSmRrT3lWQG\n2W4M\r\n=y2gs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjzm6wNa2rqB92J+aaXwk7MPsUlktZO1WworrgkcibwAiAPl0a+eg0X63ChpqTan2AWrWpwPn/7IY6zetlHLgxkqw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583796504588_1583796551987_0.15314733289733184"},"_hasShrinkwrap":false},"0.11.1-next.1583805691762":{"name":"playwright","version":"0.11.1-next.1583805691762","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583805691762"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583805691762","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-iTkkf6kDMNAzzUFoJC9v9KsZy4/z0DexqD0tzUqiwenYBL8dcORgzbjF+RBSgaOirLJFpItcVx58iVYaDn7sig==","shasum":"9a037579ce0c44d995890af3cd201bd308da99bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583805691762.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZvUwCRA9TVsSAnZWagAAIRgP+weukprSP3JRbbnDDLgi\nlP0MOsdiGEoeJP6JFP9lzfDxmrRmQ1iK+DV6DnVrYJTaBJa4HWzeHuOXd2v3\nDjboKMlDl2FFksolaEB2lMcPI1OuPYkCAlvrjp6fMtJ0xOvt20mJxj/APJNe\n8/86jZwHjHOdf5/oTFpWKktDkCZv7FZv4bA1mNJ2uRDVetIs2wLQjssQK94V\nLmanrkrze65J8IJyqU16i7Bw9LUqhHaWzIcoK/+rM4W9eSzazx6C9sWodnF7\n9l+e9Zb6hX4jESXRkOFX8Sk9v5lcsUXcd2gemoHdFwGzsNtfqRFjFrp5tAsH\nKPXSfSUnrfLogY/plkAa9umfsSFj9LPxj43TrejuqYSn/x2Hsm+3jv1/0P8z\nSf/EBRG0K1UUbxkZL/XS6oR632Xsl4Z3Nwx/MX/P/T00MXEp90AvwKdEVgsL\nWrlx2oHjSt70wLcJEncLBtjPyVvqyXiMlEs8JTbkTRpcTKKWtgcnuAPrCGvC\nj4L+EMclnck/DdXymusfF+j/Vt6HktPf6Jes1ZVeUTmC3j5dPEqg+mlvZo13\nKeEww+s6K4ubP6lVEfxIGvynIG7tPgU1fxPtOMyIN5KjSc9NIwIh+1e4UO7S\nG8yRKmXy9x43QdguBz68szVCa2lC1xJPGidpkyXV8mfy46k4lZsx6ULFfjLT\n3Y/i\r\n=U4qZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWjyaxTbyHCSTVslHujgPi1neOgDrOJFDmnAyoa6AglAiAB4QoUZWFAnO9HR1k1ywmMeNiSVxtRFzTjvtAdkiatIA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583805691762_1583805743797_0.9082300977281632"},"_hasShrinkwrap":false},"0.11.1-next.1583813990795":{"name":"playwright","version":"0.11.1-next.1583813990795","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583813990795"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583813990795","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-uOoU80GtOkTVN78JrnaNyZlRnJdmTrbVv+HHee0QqoqAllkNiIawPMlzR4Mtrg8unHNkuBhHeWHeeTkx6feSCQ==","shasum":"45bb6679a5f78ea6dece8447f44762a271d74eec","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583813990795.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZxWSCRA9TVsSAnZWagAAVCMP/0Hhqfq3WlG6l0QeUuNk\nmVlR5MldHr0j7beLspr+3b4uAnR3AxjrTUU+J6tfQSHJ9zzR4COJ3Php1ZBv\nLbwsD48Pof+2TbA+3hfjB2qkadlfSh8HTM1gotfbq05BXJh+ro2S0yR6Z19R\nwbgcOBpwgPCqqCkf1hI06+7+EBmHKbSAUwFhwz7c41mD4OrTL/E2RyAUF7IP\nWWCegtQ+LiFG62YoSJxc4iOqyk+C6yLLoK/0DmYNNtRTZejP6dW7BXIRZBq0\nTY8VU1KqPy9FnvmZ5Fs6+xhnD2DXS+aich4WA5iYAmyT6j6v91ko0D+iIaP9\nUShOfdcmzMY16p3BjGvPktTOg/2re9wTXUErAj71ChXk9iq5jv+1UlfMaLdW\ncqCIjts5r4IwCFqqPo3cBtTUKwDH2BjntdjD5Ck7intoOCeeOGby+izzseBQ\nX48XS77Dgg1tZtOQOM+wmeXAJLphenmikmUnPGV8+3xogW8kEa2Mzh4GTa2C\nvK5Xqu0XVvI1/UrnW0nifw6BnxYz4BNMdr6/Hu9CoCsPBcEnRCl942jFPDkX\nSrjyP0b92L8B8/k/BkLT14fQrVsHZubz28/xvSA/4oJL3X/ZOujsaKqQyVO6\noGeSg8+QSaTStzkz0EEFLBhL69PcmY8DIGPwwZbptGBTs6g9D5JJcW1gZr1c\ndHhc\r\n=bNl2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEOqlmIqZlBifY4Rivef2ADRP209AQCoQiW8aNcsculAiEA6xVfH8mMz6hWsXyTaEsxtkqqcIUMBi6Z1nfSvMfoJjU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583813990795_1583814034362_0.241049025346461"},"_hasShrinkwrap":false},"0.11.1-next.1583858111401":{"name":"playwright","version":"0.11.1-next.1583858111401","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583858111401"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583858111401","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-mAwiV5AK20KJ50i6IzBMB5/ShvvlohycGtTQgE41TYRdY1txkYMUqsJOiYbtIV+/PGwqd5qNLMMoriohbqURlQ==","shasum":"621758b78743ba65540ac93589272d413cdbed2e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583858111401.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ8H9CRA9TVsSAnZWagAATckP/3CjQJTnk2N0H9FGfpud\ntZkvsfca/HUIeeEOShztB1LwknPkkM3OTGTHipqCKcJnB3f1JI588Yc51CmF\n8ixd7g/ve3riuuUvc+Tn/5tr1WFJXdVatjKauRRQj3eJNjGhwJUy0d0W8T5R\nkI8jHup8s9rtGwPyw5K1d6IFlILTcr6n7HRRFcU66v13kwnyb1rRVrLmodFx\nqQ2epK0qZkAE70Jzqw3EmZnnEFj5VXDS9HDyAnFJCp07Q3dNyukTqWGXlZaM\n8t4HVn9J9kx5LZhin2iR0v+PtEMFjwHbMg7j3isvzIgP4FaiXx3Xu/zBhIlq\nwxlgJmynsxfvx475iEsU945rx80R77XHxORTRE60cKyN+vEeJ1dD6DGTmZu1\nS+tBgCrtxmzVB+QsmkST8hwrkjmjQX8vNioxTRfw2fz2PVnCW7snWm6udAME\nQG1aicAQE2l1dFHNRoztsHb9lo10mZ6dhyTgWnPsYRQUKsJXnYADPeHqoUqc\n9kwFNXXQu7++wpDCLXFgzTHHi4p8muuZ0epdpP55tFvjEqrfzwUtW29eujDY\n1p4+BfWq4yGRor4xTqc6d8pwMTzZBPWcrAN+UtgkQCaveQpDOmPKYfgx6ktb\njHnmS4cbFNh47djOwt3PxFm32GrEt1bdbNMh7BM0Vemcdxfd+Pk4okNhfEgp\n5ohn\r\n=BkH2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChRAFVjcHzaPEJhFUWPbhI/AjXjZIxkGIcfOBmQh5lpAIhAKJKHJcLWAXfyvPxU4BQ9dwzePUQZpYxyKhVBtZiIX6q"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583858111401_1583858172136_0.30061574820626236"},"_hasShrinkwrap":false},"0.11.1-next.1583863091474":{"name":"playwright","version":"0.11.1-next.1583863091474","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583863091474"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583863091474","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-SNsOqHLPlbAboQ/G58OubA6FbKfPPjPi3sdKP/StkmGWF6q2g4jiJKsKiLZC3FuK02VG296xuOuUtKHuPpVTng==","shasum":"b05967912ae9e690c40ab37eb48d5af1e56ef468","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583863091474.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ9ViCRA9TVsSAnZWagAAYowP/Rm2LS7fyrrEIsZOuAdy\nfa463eNu3Onje6/JE8p+3jGrwjU+Vt0ZXlHQ+ShQzQqzDKq9SLBV/yiV5Ax2\nY+0g89mtGqhsvnyHY63evTGySkIEpcjeUDd3RlJZ3vVcDNto2oE/J1X25Xmj\nPvMnJLysi5e+OlJsLB6fi0Akvd85Yj9J1y1DsiUbqLrhiU4BoGAnbvvT6xQh\n4dVJ/ta5RVnjPBOoHDNfvwNB9JBa0p0ro3/68FdS+9uAvsmfk/tZ8KWyMETj\nye3nEqDLtKRt4TFsS95xMT3snnWY8uTJhAYDgImgWwCdmzS/hLe2GQYeL9M+\nysL91Rqd+qRKU1nkXzYjqwavG8qNwnofPQGx1bLP/RNXaed3EmkRoPZqsuck\nyiRq1N9hp4RTCzzedsaC4QHgpUkKMVwHnrCt+cC0lZcg4mjf1bo3772OYEGK\n1NxR/xnrWFU1+84PTg9gL+kV7Y/DyATacmkdZpBRsRi9grKm5BXePDwGpRCA\neOXio+Ek/DbW8lE9268uT2g1/mCKnjZpYDFqxAiYIX7pc1853nnmAqMf74y/\njLrhHAv6msM05uRjPOaceWftXasg302k1PKFnpkcwFwYmPgUcjcuXpFZW+Q4\n972tV8LF2KdBAY1MpMl6HMFYDOfYUVmdB6OvtkV0rBaamrb3kZ84uE4WFy0f\nOpvv\r\n=BXjj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGWqERcDUR4As3cMP8goinzNLvyXk/xX81TKr7FSVw3fAiEA8GpMgkieHFj7uTtjrGVT51qgG8YlnV38DJbR+AFvmlk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583863091474_1583863138560_0.4739861170507611"},"_hasShrinkwrap":false},"0.11.1-next.1583871165271":{"name":"playwright","version":"0.11.1-next.1583871165271","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583871165271"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583871165271","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-nqoXmaeh1IX8X3hcCX3gA4oqqmQ8aqxY/FKE63wNZv8pjlta6KHzNZoID7socXrV74oSmkpW0l6Rz9GOXwP4BQ==","shasum":"791e055550da3f57794047bd02c640d9924d7f90","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583871165271.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ/TwCRA9TVsSAnZWagAAiUsQAIsVrcAIJBJGIoAU0udd\nRdGwMjoWy92mfXqN5AlpE3F1gS9vJtJS6RiRfYUPdLrxy8B5YnsKk4lmEx2U\no464R9Yvd+azQycCMYrwahMOseIQluRJq0MslV5ukdzDjnQowjKIvjUrRPun\nJU4GaJpJAjuAMi4mZq8tSKPBZon3r6yWiDql9ydYOg09pbRwSjokprWSUZvD\n3weW5lzok2K/BrToRuZs5QV5hATDZTxKjPRwTR/8IZrDEnAaLTqaHtWk/yd0\nupl932AxL8IvnGJw61ka4lWUSwIpqDl18/QjoTaEsS0+9cIJ+o/EeJ7d8m9I\nZYKt7Odwwrjh23DPVuKNBfQe31qD8X6J50gZT5TmGvDDRD1iqTHCXtJqVEjU\nwIsqQTJ4R+teL16pIiWOa1caDmEMndDD03wbgbcxcoVdHLoxGRayUv0+dJhB\nRCN7V7ZFK7QLGQX37peotWhzNzWlM/mliIX0hRe9kzaB0tG9g3CRNP4sSS1f\nBNpdAVvzMkEVpcOIXCVBufZbBIHw0MBs2iLnfr57KmdIOgczmXxeml1JCRx4\n81TN7vcp0gnfZTz3ZKKegC7F5Y3pufW8Cwl/tZxzkAb9i419/tBwIlP+HNUq\n0mQVcyKi7/4FCrtCkrdXvq7w4BL28WPnS5I33B+ut0PWBLSJD/D6+MjVzRl4\n19la\r\n=M/T0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZpU3AOFOPna5ReIKQDymrckvGDqO+KVEp3RfsOFnOSgIhAIIZTCkPyWsCR1+EMnbSCvTCV6C1yXQKlGg8ytj70xxv"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583871165271_1583871215962_0.39398565368263605"},"_hasShrinkwrap":false},"0.11.1-next.1583872341343":{"name":"playwright","version":"0.11.1-next.1583872341343","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583872341343"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583872341343","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-eULKyzS0afmd1ivKrsQxWztWp9EHzr2S46myD3P9qbKExFYvmgzCORCHziNYpLQw7Gs7bXKrU5TGt3indR588g==","shasum":"1e2e7c0e386bb7293ebe462006bab9f1746cbab5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583872341343.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ/mJCRA9TVsSAnZWagAAVpYQAKJEx3PWd8zEKbOupNAe\n6XWbd6v8HnogI2fNn8Fdc6uQ45uerN2ca339hee9y/YWVepZ0FfDGeVv3daY\nC5FoGsD7ptl8IjaMa+NNweGDjRrHd5ff36hRljgCpKcfF6O+F2P+dpjaa2jc\nDFJSoJn4HLgyVXVCWzeBzJw6IT78UIqJppQCKdb8+x+5Ut5M3WX1hw/DSWLK\nH7ns+9zQe/2WL4JZmBhw7ipfPxMp8K5pwJ5HgU9jog2ILYTl5Gu+Dh1So0fy\nUU3ypqsRESa1+lri92VPPHFtl2UGHyZ4KJ98FekS/lSXrRZkaClw6rQQT6iA\nzJa5l3N0ZKyG6Wz4EjbsZLFFGB6y6QGKt9n5XofBvoZbmJHZ+8ZgeU4iFc03\n/YTwsmSuS+pxSB8nzGg4/covCOhNSnIEOLrPS7azWw64IzDzJmtyF/4q8jFS\nE+LDREruHZqVkduhSpHsdTnV8fD12XWecafVbMZtZLQp3eubuXln0khzd8kt\nqZLSVO3IGmwEYxyvEriik9FlLWg/NgJZJfYRVS3tf+YxC91MNZgtAfUJfohV\nyzWSSVNKMPGeO0sSGjH34sP77lVzn3GcTLy4ObbwSx//xNCsPdtnnAFo651v\nZVHCmtL0/KJLJPojYgUUSGSW+vdcir4lFVVhJ+xzJOnDU2cYQ/3tbWilmC2V\n6LpD\r\n=k5qo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLe5QVOcOcvsZxGIk4uNSAmsOZjcd52S1oQfseQgbt0wIgSHnLp9FVQAcBw9pDbSbsFEQhdjguFTE7HoGkJjJhGYM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583872341343_1583872393463_0.01304606444837364"},"_hasShrinkwrap":false},"0.11.1-next.1583876346768":{"name":"playwright","version":"0.11.1-next.1583876346768","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583876346768"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583876346768","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-oKrpjCauGbMDliqxFofEslnq+5SFdPIkgzx3A9pF+P0XZCiwRXVhKI3ZW5iUwsu6x5IHQ30PnVsLpP5d7wW3nw==","shasum":"1d422c8176fee738f35ceeec6bb2fc47b6614a3e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583876346768.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaAkoCRA9TVsSAnZWagAA/2gQAI4GRvnEuTa9JCto35Ob\ngmneZOvpR4TeAZDDSZoNA1FxtDiozTT9OXg4DCUTrgBIuxwjUwvMGCdzZ3LU\nWBWn2ir8UVsWdKLqsDbeANqlSUA5uc/SrZZJDY9vzzhIaVxRkDtQLH7l+ilY\nLpyGv54NpGUmy09JnyNuLNmcEXYJmyRzQAChjEbAEWwSbXPALZhobEusXNo9\n+56M36hsCAHVwK0BmiCIQVlvVLOkUaaESLaF+C8ioPZzlSXfSesemmuEhMA9\nqR3yVg9raWKuQrb5d6sy4Bjyy8bXTIcg9nT77etCmLWjZs3JQyLbPSh5HZsr\njVFLVJo1PwFzmqQe2JIjKZMdkIBFsAw9MhfQm0rZWzDDDHtd22GSDmXPKwVV\nYQSItwVFv+60slT9G8t9frMgq/uwoPPnIPNYE5hTtVCLcoXpq1RScSxdbqxa\nMRfIpb0EYrzJON/aHpytktqrkvp7AKdgKkhQd3kDkWf8F8KTTlhKlhFujzJA\nGZdBQ0mjcgURvl7ZCNng3echCth300rl3iKVdbLXgFmNQLInJmm0MCMLTcOi\na89a2HybwyHJB+f7BOCLJp5G3/hYv7AXGZ/aNMieBtA4+g+jqSGOeq1nW/Fy\neP6MO+zreRpLtlK69rHMM8I5VmudfPI/03RZXUKJHlyNqqjEkybDHZroXcZ6\n8w8u\r\n=FjdT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFgzPpAi11hnJ5qRfxFD7gO+rdglRputIU6PbBcMNBzQIhAOuV7Ch+U+12Q1nc4saWwJnpXx1ncNi3JmWe7VzmTIMP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583876346768_1583876391947_0.32039246347662886"},"_hasShrinkwrap":false},"0.11.1-next.1583879747559":{"name":"playwright","version":"0.11.1-next.1583879747559","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583879747559"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583879747559","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-4LYK8rgkcrKYv4a1BnWBTo/UCic/rNlEOvrGUz53u1vipiQVqSeQfgcO7dp4eY+CHfEDOJjisYUB1OQAKpF0mg==","shasum":"d6c0770cb7435b93a084f3383d86e5c1a7760c9e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583879747559.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaBZyCRA9TVsSAnZWagAA894P/R3ujgCTnEzu4lfre0ru\nI1/oq9HnleBdmWGmkdSF3Ly6s4Xp2+xKgfvc6zTix2sqldsq3f0RaC/jbqiW\noiMDOqvb9IlK4Z8t4eDrMCfdrpU45Uaq5WF6UED8PwtFjlPPR1DTJQNNq9g4\nk3WdeJ4re4hctupy3b0zCqpY0t74QydNcaE2BKq2uygLEgNcmcS9PAk2dRmQ\nzSvC3cEgloWdO5/pGgC0MPqB90j/YfoKyb1i9ZjzTOAwO9SoXry/hgP8sQQ3\nNAcVFmjoeIjSC0rgihb6lYPAgK72tT9lHrwnUQQcvhqadU/LdB4yd6xoLlhQ\nYL1pTYaRuBhj0YcDNiiNuEKzds7IO8ApzKzbV04k3NoAYe5hmG+1B/x2rBRq\nCw8kZdf0+RgbgY0WuMZ/d1fMY1N6sgMa/3LTZ7V1MNjS9RTm5Fxy+pFeVb1i\n1uPGNmS+37Y/y6NPTnLcb99YY/XN2si5RIHfPvrfTEx6qRqaIrj9tV5f/d+5\n6r8iUoMbSLNmZUjCqVbOtwKLuIBgOUrMZnubf4ImxAKLb9hrBmTQDIYM5e/9\nXcSWs7B2jcCd1txXdTIzNyvye/TY4ujUYrpshSolusw1F+24QfJgdg+Ci78X\nxkB0oy2/T1MlMipQrFz2OxtvW03qoEUV+KnnMAXmuFVBuTtmNWyjEohC8jQ+\nlHsw\r\n=CyP3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkrHRvVe9yzaua1/3ngLToHNA01MzlvfQORcDNEjNfBAIhAPIVYWNQtORQFrsBKx56QRwRjV9lI1kWpf/1LRxOhcnI"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583879747559_1583879794128_0.9076938707042281"},"_hasShrinkwrap":false},"0.11.1-next.1583881898738":{"name":"playwright","version":"0.11.1-next.1583881898738","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583881898738"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583881898738","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-YIERX80Va50YScLV99op3p8Y9NSblBE+1GKTCxmkm/r//c3z4+NzjoEeu0By76eMMJ+ihfDLNjs+RirLkaw64g==","shasum":"a1390607af4a221d7da5263b8cc91490b33bb9a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583881898738.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaB7XCRA9TVsSAnZWagAA0X0P/jokBJIJEvMzGFt2QICS\nfymoqzLHe4OGjz1ezihhMgUXhRgvzIOzu1mPEm0FuQ6s5HfCbnnqBJ5G2qbl\nSPA9DldHjoj721CfVlzkMU3B4c421iYbwauD4w6PP3mUSI2do/p/nQSKh8v4\noczxXxRnSLEPpqQzd9wLK2OPZjqT5OoKgo/oPonabakSMH6XogMzlpNac0O2\n6PpH/CypRkK6I8eUBSJ+G6n2DzC0fpwVt3fUQ+jrd/PDBf431w1W98e1nYI3\nOqgyCx6zYrdZ1OLpSL9Zv4b0ivvhLgS3G207vbL+6fjJoXmw1blRuJscQAYZ\n50cLVc8XqdRzPTQMgJUGxxUmlSMt7b5DrgZ9g6k/X1OncXVTq65p3YFNQrev\nYS0tVKaf+94JnKDPx/qUdq9P2twTsdmZ7J0+aKr4W8+RHc8PjtYFWKNPKb9D\n33+6GtGg/ge4vkzftLIPrXFwCWJwu5YGr07M7fWfs677uGQpelK2ZlRHXPxP\n9n5ehCjeTNC1tEiPKw33oahJonsRepCVJOlMvFkhCqTVvFIzwqNUxpDesQp5\ntjmaQb8Rhp691b2RPQ+kTnzlgohyFAywvdsz4xnja8qlMhJtV+6YGG3ECY7K\n4IKTwUwunC6+yLpWnXDfdKYznbGpzeqj8wLV5xltQZVTRlmX2YlbHE+Guxot\n7Oi+\r\n=9oEM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF3hfVZzCAR8aKyXbAhJe74lyJCcYQjZ3EzCa4ntON2TAiAnPDUFyumjhmw17iw7tHpX1q1vhQ/j6v7Cl3jECadmXQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583881898738_1583881942624_0.08131560905849478"},"_hasShrinkwrap":false},"0.11.1-next.1583883243818":{"name":"playwright","version":"0.11.1-next.1583883243818","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583883243818"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583883243818","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-ZsdK2WT6VSFJCazqZePsI8OVuOMNGJo0rTGfVTEqVdrnQV/agtBruM9fncMXpbnDnOGEysx75aeln3dCUVS44Q==","shasum":"d6bfb14581337a63445299415cb5909316de59fa","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583883243818.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaCQcCRA9TVsSAnZWagAAwwQP/ipvLOglr5JHjim8z1vA\nVmlOgL5d3GTjxS6boIoEWdJVprDaUiuk3NgDy9klqjXP0BWMIdYUoE/LHvKW\njcMI8aWQpsSNsE4a2LVUuA2zATZFdZ4YnC9+2jOLrFgr82lfU4XCXUA0HlUN\nXPcChBgb2Mslj8Xv4ZP9UiyZ9INPOJlUF6w9JkEvz8aRLGSCZVZ9unjXk1YO\nFqAJisAVe+HivvFT5g6MtLSAs4inPTPFqncUVcsDzh1HKmVgSlslhl5c2COB\nAis9JiFSf906HqCUZ148XSUI0xgHIhx5cbyh9fpQiJZf/Xm19z0R7vcAH51r\nVYGuMnkqrtQtNy9WQQKeUvi8GPXMC7+i9VZX/rnFO0m9coAu5IEwIU9bqEIl\nljLbXPJD2x1T/8+1Quv9XW4uHX3kwpWSdq7QoEwT65HsblE47dUwFAJsVk3m\nOyK4N8+0pQuetV7nhXyjb94yr/niNe3aT5EftsoheH52d8r0ISjb1jSsL53w\n2H61rIRGqobjEGIo3HSXxQu7vWVrwvvywluPOw/iqIPwIb2uM+puquWk1vR+\n7JiOJmQSWtYxtHOqHYMdjdGGNayNci7UiLEhaGhLVaHsvj7wlMIanwtFdXYJ\nzVIdgp88zAILYRy9QrK3vMT4ptEy02T1k++0bKyepjVOhvvWr+C5JL8vugaI\n2mD4\r\n=Xncf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhfjJihwVRbcqfktD48GKRTAS3ZsIc8ThGh6vmQpjSTAiAilitEQnXQQZCSCVH3+Y9kJO8bqSgdPn/1rIHdKOcrIA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583883243818_1583883291869_0.10515561179865807"},"_hasShrinkwrap":false},"0.11.1-next.1583896891498":{"name":"playwright","version":"0.11.1-next.1583896891498","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583896891498"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583896891498","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-GyMSIDPwFUU4LEB8GsRdVd9z+BT9GzIleg7SriUi0AU95d1xknpK1bb11gAJD0tpO35cfnNBDr1FNFGGsfagog==","shasum":"8e14a28c274dcadb19f349f9b4432e37336e6a3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583896891498.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaFlpCRA9TVsSAnZWagAA8t4P/imlxP1s3ZNa795MGN9O\nMBPJiRCz0TNHQjVfA9a0DUcL4C1bCLu3GMq0jJX6IWIHx5y0bD/nW1jC83bg\n2njY7pIR5ACsemcZfHDS2Y3Cw0WC9TYXB9aOsVMro2SmLgwKTPpJTqkGJX3W\nze3Cl9mSUEzwYRG6o1YoZl56yFcaqlTI0NYaaAb0ksiym06s+TdTD+FTpoxP\nAWgnI+6Oe+/+zidraqj+5QvsJnvKqMu2XmhDEiwdD8VAeCLZc0L9ws/dHC+o\nrmAtj2jR+JAGWMQZbxYxwKfcfLE7RIaafnrvFRAjkCrGGOGjK5fH30DvfDn/\nQVllFUJ6wf3xRGGbPzdZ3VJ8SkOS5bpm131njeh9cOI/qmr885Ie0E2Oq6cQ\nm2hkET0MoYes1oJQr4oDgSY4fx0xrhInBNbik6ZfqokJUAszPAPNEj5nQJTz\nKXyeax/rCPsG4dFC7iwPY+xYWHihq5IfBKYewe7n53XFc0HLlDs4YscUn8Z9\nsiqCSxDc6XOQtIFbe8C+aCYLUthapIveercN/PFLW3yqkavEZ/n4qVl9zj26\nT+/8d1SaEC+PGkTL0ccXmfLMOoWMf0bFnN1r6FNgq6OldkkvBDgBNyyd3vRd\nxxYpjn/rEjER4gOTvS6Nt9uPPQaz7HEA9fJLdUEKf5jvyMXozk82JQUshUQV\nNyOn\r\n=zQDB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3H9zx4O/6BopF/nJKn3FAQwRPWIN5m+uZVgLsA6X2vgIgd7GQgbznyMCajmqYk5hxu36BADYXlFnS2V5bKNDwWxM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583896891498_1583896936732_0.947682355499111"},"_hasShrinkwrap":false},"0.11.1-next.1583909126688":{"name":"playwright","version":"0.11.1-next.1583909126688","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583909126688"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583909126688","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-6gYMe2ZcZ7HuQb6vnazkNWPPVwHiitAE+/A141TrpvqTTSzWU3BzMKEcBd7we5bsKYTNvLHFfcnPeAEJuzjriA==","shasum":"8adc7a32d0d0f067013b00f7ce6badf5b031aaa8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583909126688.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaIk0CRA9TVsSAnZWagAAaDAP/RRPQqVhco1K4qsDnOiN\nE4ZS/4fvq5609dD5TjENHbEy7VNotpV/W6Z8Nrgb3xyj+5aCfMttcp6M9ZR7\nWWfpyOWlOlUyPgAV2US146mB7yGM0TjVmw+5EThkcrRdLj3WCjXI3FfyX2ot\nQyBAAT1rw73LUauXJv0Rqm/NAL/W2qRcCeCUm5oc7nud0oEN+4ucCgSkBFDi\nC6wFQzD6WPbTfjzqXDOSRs6FMp1uf9tPTYWSnJyF7sMLjAY6+8AGd7dFYrbe\nv3/ACOTnCz5tQtUnplcNaY2USvnH4P9KwFHQ8CtC3fKZ1AuACBuKfrAozOG8\nJaexlj4Ul0NLIRLRfue+ZFCeWBaKpu5kWJZfyuufidndYc0Ju8qYiVETsOWk\nDCw/nE2UhXr3NsVm9Dthsjnii+e5qvk0GoUNWEGbtvbvBA5V5fusDSXoUo/6\n81Vzr685r6ujqFjQHI+D5eqqNR6RVneyh2J07VSdv32nLiK33+wW4gm95M5d\nKwPts7FnZlE26xFVFCEDkhRWlXYEmbOenP+Jh5IRAr/0/VITZWPTChFi5N3B\n3XflpoKaAmU/eUbo1wPoXKVi6Oml/feDcPs6h/SuNvHwndJvosvEK3LkAfEd\nMxTuDziPo5Sxj29RvJ3rbh2njb7zVYPcy0F74284dRyLWEHUHYwS4500qoEu\nOOyD\r\n=VEYO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxqMCn/0R0loBzkEPv+47Pi6ULpLOD+yJHULG4PKNxAgIgWPRzlBZzHNxYwPocayDtojDNghISk7xzI05RCLkGuFM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583909126688_1583909172306_0.15856964192234702"},"_hasShrinkwrap":false},"0.11.1-next.1583942151398":{"name":"playwright","version":"0.11.1-next.1583942151398","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583942151398"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583942151398","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-gG/sH61JsLvgYAX/Ob3mYQ7i4nrNCJ2GxMjTx5HV+tCNMgNvDH3LMfuJbsu3KIVjtTmTwe2E4hwrwThyCeoMug==","shasum":"513b019ffbad69d21b707e82042444b1a6b78e7d","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583942151398.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaQpPCRA9TVsSAnZWagAA9HQP/jjZ4hV6Shoohy+8Be30\n/cb+5bzgTsY565A7uiKGHIQOBsL92J49vN6r2ssh9VE35l0Ql0Ou412b6nb5\newRZUBpAkEuKDb5R/wIUr1KrxGCksHi1xAHRb7vMmloOeMNoPUkEqv49Y0TQ\nF1hSv9Qp53QkTyTklQoliZa7oHsd24xbqofBM+4Mvtk4jVl2V4B5FeThPd0s\n8Yw6iq9edoVDCfKFw9Ha0BCTzHp/4O1Yo9mQ95GtgqiwKryKjnaJ/nuJ9+4g\ndOCdXvbN848bu8s9NeuEdsm5+GyZNkeo170SLydE1/KAKHKfzEGXzpG+og/S\ne5gbfmgz0u4K5thx24raD9Wwl9+1/y/C30eVZL9w70vNF0QWPd/lDSsPCpiX\nzlvJeP8v53fQzE3rbjDHgn0/Geq8Ip+LRRm4u60ukd7s4d11ogIr4GwdoqYY\nberRVRnEb91DUmO/TFsyZ5fitRmz52AD41K3p+DhlGxRcl6p5t2xq3VAeWk9\n6fmtz5QpYrEy8Ob9V/J92Ql+7JxTlm4y0OS+i/uij8IxkLszeuj/sMc+c56G\nkdiJUuPTwBeXBoDpnUkott1wa1IEHAbapzIPMCJ9g0G9NmBgTzUBwZ3eDmYs\nhNjqikyABOZE6cPrfGkKZ9siokyXccGGUrDSLLbgGf4Nluv1PEdj/2VwBeLN\nhxoP\r\n=XKfT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOlyCLoqVIW1g9lhm4hhS9dxoQsLx2YWVcgJhU5+j+LgIgFshGiDjYqwO02uXJkHoVnZXiu2k3xaOwC6vIyzsD7jw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583942151398_1583942222596_0.23353563209148231"},"_hasShrinkwrap":false},"0.11.1-next.1583944812007":{"name":"playwright","version":"0.11.1-next.1583944812007","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583944812007"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583944812007","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-CFTtFnCcADvfUq+o3c+/qJEzS8GeT85ZRGYC+I+WgsMQgDKH4BmA1mKwJo6a2cJ3KDV0GCWwwhJ/GKJWwZNSBA==","shasum":"1db2d76e1ed77292de0a3dac19330cfed077d152","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583944812007.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaRSlCRA9TVsSAnZWagAARgEQAJIGzmeUtEnbO+L1Jy5S\nSo4pVVND/I2kDSCtNFneAtTyzO0JmUWv4R54BIJL80amNWiO0FEjfCsrQaEn\nDgnvZihMLIo3lXHhjh+1RcoOqd0ZzqDJ5AITjN1mA/H0cgNHlFp/DWbIjmgl\nhDRDidPHvE8eAU6c+Ywp1RCaoXmqfyhtrzeY6TdKzapOCbuTo9ZaTharVyIP\nuUG+H3BNgYrxlmmKgpeZCjnSCXXIQC67Uf8VkjIpSNwkaecQjznK0LiKYGYy\nsaefL1amj7qXMgiOrBkYvkHd92J8MoXfjxjmTRsSS2Ls8Xn5G9AqCY2i1cz6\nNhIMp/YuLgojgQLlWZdHi1ApuaJnq6wR/ioQIEk+mAiGDx0J7G7hqmgEtN5u\npdVKZShNbmJKIYPPsOqA2/wWE/F6bS45WGI1e4D19/xMku7yclbGe8kN8+z0\n27J03y8Pm/ab0sJU+LPbbfLfi8iKB/UpcPDIKeKHSiOHWTf7dmUgctkKGqno\njeK3TZq8ZfBM4HcAI3eozRJx4dEfd9zOfud3En637g6vc/M0jCceTuB7gckU\nkxW8+/ukxcjgNtkpUc0zaPE+1SxhjyYHpYsILupYv8pMfT5xuKDvyW26e76Y\nHBne/4wBUlQXuXUn0geGBKMBpBFrW5SoWPuLdOuVopRDDxVEW1OCTXC+Ms9u\nq+se\r\n=j4Pg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbUAZLYRBOiy8IK3MatgFU2Evmv2hUOYHOH9UfQDAodAiEA2vt2HAhC7QLJ84j3ajmKKmFKaNM5jqClzoqnJi6g/HY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583944812007_1583944869196_0.10433768839689539"},"_hasShrinkwrap":false},"0.11.1-next.1583950347810":{"name":"playwright","version":"0.11.1-next.1583950347810","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583950347810"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583950347810","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-A5oJGZUpqrQP862Xc5DVsCupFaSJO/lWh0hcWyGbsA/3oEvleC3I/5U03d8+uZS1Gve3uFtb90Gw2bc+h/bHog==","shasum":"2d4740fc63973bce122483d91bc8e28410ba6ca5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583950347810.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaSo/CRA9TVsSAnZWagAADkkQAKDXMQTsshwu0QlhW4kR\n2u3BEddFWUUMWI2jlrIBMoGgggA7YDaVQwtz/pt8ekLkZGbobfb8t8gwrmsf\nNDhZaz8NW66g0L1mkWVwdCK+BB9grvFg6gPmE/JKnWCO+ZwZwOtOT+8nLUvB\nwyjHSw87qWlO5+90j+e/rpGW1G21UGIlMwas620vyUfEtuZUz/8i6cJWw7sb\nIx7lQ1UaURBpYKmoOGk0Fqt9KdLfp35WPhfe8UAeq1uSvsOYKtjM8gMXw7HQ\nsYV1BQy2xICMWI8iOXxeS/+a4+5esq5lrRN5kcLb1xHNlPJp4qVm38j+B/8k\nszQOt8Sv6LlE0Pe3HDpW0gLX9wiw8ZnSHzJBuYX0cVLEnXkuulj3p2mbGgze\nnktlF0yzpDE1/vJpSgPpvomIXTuMAl9ODRmbr/JDLXtXAF6Hq4sJlf0SZisZ\nUS3Fc8oGe9nIUOjyxkWpy0zYXCKP1kjhu8x5ySxirkoFOldhvyGty9y/NkM7\ndz15llYQHedS9rhSmI+9iARAWWU1htNiPvkyJDgRO2J483G0nwhpN/68bfM/\nVUwaRJ/8dvXpITFaUfi+iBNJBmovoNLeadMtAIcqLSn+x7Vrybj3fsXtLhzZ\nQGzA1X1+PEb6vSnI9+e5BBxUWLDu29M3LRruMCVtelWGI7kuBzTFulgo/8wc\nv7YO\r\n=pui0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCacAq8FvFGSMSIB7kfyUU7sE0c3Y0erdFBBzZ4+ii9wAIgTAEwXvGHt3+cHcXYJAo7HwYvqCrhvy2JV3MtWi1pdco="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583950347810_1583950398630_0.03260422953390263"},"_hasShrinkwrap":false},"0.11.1-next.1583952883597":{"name":"playwright","version":"0.11.1-next.1583952883597","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583952883597"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583952883597","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-azH1M9JlrgTqInYqR9KrV8k0IkKvidpHWzuT+Redi+yu3g58NfRHG/RXDXofFjwxOwha8oJF5UV9eUVy5O55nQ==","shasum":"ffd979e6fb1f6b82db5501d28fa0cff9786edbf5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583952883597.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaTQqCRA9TVsSAnZWagAAthsQAJi9CakMfOAN+LgUDpVx\nmVKXEvuwri4id0m4wNrhYn9fxsqNOXYHe577TwmDUhfwEVrB1fF96VsLCPrz\ni7cqAwF6DKHYkA5PO7O3qBQkSsqaXQo9i8w3Qk0BEtXddarYCsA0qKvUjPNF\njl9y9DRmsShrPuRdfw2P/5oaXzSgKhB+DXYcsp+rELzUPL/N0irhnsK4hbQa\nZbsTE4951JjHDDVmxbVfDR+QIhIQo8v9MxFMVyjUjz1O3mFJhe+m/c8q2kTL\nzym9E7akgQR+htsRrYew/oDAAaGHlzQ6doYoi9c83kA90qKihaQ7v2zYn+N0\nmaXZPVYcRG61qrBZcpu4n1I2xLUQ2pPnY0tq5zkEuTNeFGSMTLxcWzBJVyzk\nzCESbJCDFMCWe3MMZtraRG9UVC+mdTZzAP8w+AVhf2JpbHhFWdwdKWo1zoOT\nCfxPWdEbxn3bU3oEPaaXAbfj4upUV8YrqqIrLZNFAyRWfrUIFIda5/SuvxAN\nKPH5tZ2BHO2ryxBx0+Spsw4vJuoD7YtxETxSBDGTlIO62V6P/BTMh93YfyLj\nea2lxVl2kmMOZEKOBeTtK+q/Ho07qlPw+1eKcaLWdlq1bEEvks3wxQsdN00s\nuvrT7BbfOmcouQnW1mcql3ABW6+xc0/ypj+g/afipLNomiciAVCtW836he28\nmmkq\r\n=lleb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvsr3ZSOWmyoxZtEitF5cm6bWvfS9S7k5V6pvDu1PqHQIgWDEOEkOwppIUKpLtNfHVgwB4qpXFC5tND6caUhP9dZY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583952883597_1583952938260_0.09295972180851297"},"_hasShrinkwrap":false},"0.11.1-next.1583954337696":{"name":"playwright","version":"0.11.1-next.1583954337696","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583954337696"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583954337696","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-lrd/OTS/OQY1XKQYYHMWW/rWS9Tz73bmtK+KcMZHrFyyGvn+X4Sv4UKowK3kmzqwY6XSJ3aEX6+fEqzLk0XAcA==","shasum":"4c5dea0c902c13f32ac479481552ac0d1318d8b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583954337696.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaTnRCRA9TVsSAnZWagAAyKoP/0NJUDjO/s+dcGKTrH9w\nqgf45sdid1sH8xl7EMSrqbRWLnJfRWt8r52T4WLkxvRyWAy7+jRYry296Z/H\nQb1gsDgpulRSlHuYFpgvZBsyZLshZyniLD5pu+adKQ+IXLHhcTIVYuiicwwi\nxkbQrK3N4TfPtxMe1YJMZEeyWGlzC2YXYRk5vUw4eBoppLNq12iQI3N9+m3v\n+5BMj3IfaB7y7b6T53u6xduA89hXizhyDzpo6cVDDl8bYNHp8MsGCJXCcaj1\nBQmMuKexdJIXyDR4Y1ZV2VNI4OPXAluAsIBA439It3R4pbnLgDnhyAWXrWvE\nL0mJV1oGfogNCkfrM2jKOVHJD7fwJvdTyyn3nMTGkuFPnRKaUh78vIpTExRA\nI8iL0YwPkSfOWx/hPJ+Kuzsf97YiCzD7JeXTM3143P466XokMrK7FU59WKCU\nbOhYHBm2A5TAaLnAQ7XWHGK+GRvKoigUqW8EhA5aEQfcGMIkZ6M5FeaWLYVy\nz1R1uiIzn+wXxk4LFFrBQOWcCwsOPz8DaJYdlBeRB/YYqSvWLDbhxpkLDJbU\n+bL5pRsvFYBYJYolj0ouQUUADFbB96hdBzegezoHhtFVvqCGYSYvXjS461fe\nS7rf1m3d6OTlE99LoaR2FPa9dBaUHl9ByNMXspCzCCWLcWxXLLCowB3XPUUw\nCVPJ\r\n=LOLZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUX92UsyjU0TaOAeNqqbMZWnpMpn40ivJxWKAKfOHoRAiA+crQimggDp1qZMNa+zLkW+GMj00CfbabDKw91fgng9w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583954337696_1583954385058_0.9784691065370223"},"_hasShrinkwrap":false},"0.11.1-next.1583959927090":{"name":"playwright","version":"0.11.1-next.1583959927090","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583959927090"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583959927090","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-1hnF5lhr31K7QAFrGnxUiHRZ1MEMgje6swzQwRQ9GBqGyp4e+iq7jd2sUpFBZyvLI7kExKKkuAqJ8N7l6bsbbw==","shasum":"5c1e45d3084223d3f049e1671248f6f3ad88edb1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583959927090.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaU+lCRA9TVsSAnZWagAAWuMP+wXmNdrqycbgxEvOZJcj\nCF2QV04daXZP0kEp+Gziwz5HDuAzKGcEnL5OrCX0AE8UzZK6P4PoIjFA+Kdn\n/K//Cx5f9v8cqRV6nqVgJ/2MPOpA8hJ4nJVAnRcHD/0Drtf2z9zrkEJoIKTM\neyzqI8PoAa/bISgwzmqniuPlqUTF9sB/P9f4D3DrBRBq6XQQ3DR66qr7sXLA\nKij58VrcqAYWHRHlEFViUPShEfwCPKHiLuZPtVj+v10M67e60vHwB88Uq3bD\nUamyEeF6+MllA0KVIWz1acojTFOz3/eO/V/A9QATeB78bZTkXIFjYc+mNRfH\nyoGlo3vQ5Q0o6qenWlSBj0B4k439HOZSMnPLlU8bTTDEedyMA8v1gGoGkGu7\n5ledtxbKAKE4CGevauPtPIdObrBNf1zg066lt8BlQQWy/W0bo4Aa5T4jFLdh\nOHgGs4mmMXLUu/vLE+ioXGMFsE0LkRF1HrHXpkGfDBaZlhuSIWeqs3kzIxdV\nS544XuSEkMRNYXU471u9m2Hey6xHhIeUnhBl83RGtg8AfmZgKja/ozD+Ozii\nIBh9dBbzJVJNYP3U7nAU0j2kAJHBThlqrSlQcsACCGJm2kvvBGAiz0UT5jGf\nk3juslDyWEdBOSPhP/nK+Rk3LDE3qagB3h+eaOWiIv+FZKz2yPCJN63KOz6z\nB7De\r\n=bA1e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAvMCHMFoDAc4RdSUUy4AsgTKkFOvqh+0zqsHkbctqTyAiAb7FZeABPBH4Cmz7pcP7QObusA61yspmfS6w3HOCzF5g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583959927090_1583959973210_0.425355574749424"},"_hasShrinkwrap":false},"0.11.1-next.1583961839176":{"name":"playwright","version":"0.11.1-next.1583961839176","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583961839176"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583961839176","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-shxqUIbUxgXDOZmBbV9bDwYFXJC4SbHTCWM94Bq3LMzaXHLT/4MZdq4a+Ln12NZjp3m8vpeE1LUbOUCw9KYnMg==","shasum":"7a7bc672aff13796f335d9f75083b000d3ec3481","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583961839176.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaVciCRA9TVsSAnZWagAA3EQP/07l38jh76k5tBnUtpBW\nYYIs7vcIVbczWB6YoaYDZieZ2WYuYqrekGVcpaMziiRgBYqyckH6I6Ul5Ubl\nPbHADm1RckXtCYMexxnocSBmCupSuKFiJl33RIrYN7YAb6DTRUDIxiRFkAqv\nW2cCt2TRXwU5C4idSpwCY2Icen3yLYXmBez6GSbGDiQ1BEba27jFRTUNaAN2\nFNVZ+7OpUs21yzSrboWZgmvnbIYT6zN1Ui763wzIYaCOk3uGkWhVJam+CbGo\niWyWu/xHnck4KOWv76v1QtUoJWCAG2ei/uPWnE9O6Gs9ek0Iqt9Otkm2RRVK\n92lxK3RiY7obU27japF82FkRA6DlEq9W9ZN0Qpq52HNQSWY+x2gbgwyrKc4N\nXDR9GOMoFaLH/utMnmqfUMIzI9YWOyFXFfHsbZFc2Glgy7XtI9UrsoRS+4PL\nJWR94ocTpDPdoI2zvCJF4lv5W1XExqnW+0pajMGkodRpZ8LfwkLnMcW7t7ES\n4vo8eLBQsYCv30E6/VG001U14Wwdr0SMgrH9pmLrDIFk6hIbjk/zEYQrVpru\nz2FTStbixIvK0TG5bNuSff8f0Rmn8gOxx6hrPq25RXkNKaza3UpjV+u/6VkA\nBkZHJT/oD5fEloo0NXCyEubkVfW6bgr68RCAUbnLC/gJdzPPjmY48nFDzjAe\nfpnk\r\n=cwzi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCFiCmCJyFvpt424zw4WdITgOkfzanmU2+8ED4nbKyYgIhAJ1jvs/zeU2ufPHAW1ixGyQ4wh/3fGYW51rsvXFxRRM1"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583961839176_1583961890140_0.2744446361308637"},"_hasShrinkwrap":false},"0.11.1-next.1583964052502":{"name":"playwright","version":"0.11.1-next.1583964052502","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583964052502"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583964052502","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-+6Jgs+xlge13SxKuTBLyceco7Kgwp+CfjIQKtxYt7nfsi0oVq3qiP+IBBSS0VyIz2xYNtsQvJJ8+1XL1h7mWeA==","shasum":"1bc481c660d52bb2b00882a72bc464c25646aaef","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583964052502.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaV/NCRA9TVsSAnZWagAA9ssQAKNn1IOdJCjL3AWZT3fG\ndlh+R72J9qc70BdbjqfwSIEzWo9ZwyK3dmpgYPbOs87siNxh8JvKXJzjesli\nzHb9mAl0eWC/YqL1jQ5IVB9vm2rZboLgtavARJtNsYDBm7+4HTrS0gaWDc4W\nmEitBLnheF6b4KmI6c7nLm8X6zV0BI6JQYiJRWs3ZoKXh3Xg3sUKMKzRPOeX\nYZtw/B0r1Pueud0fmM4SkqiHmGoCeYl1q5imLbVn8ZRgfcrLouExgbibhmym\nSJxdxu8mfskjVd47QzFluLUhfcPBc5TGhDOJeV+NvCPtRireKk3txSYmEG/D\n3YXve4r/A48xtzxtDaEsRMMmhcQfPCVV7P+/zZuMzOZ7B3lpD11/afUu9RHI\namlAab+sDAOdx4OvwIaXUeLvY9V3E3+d/5qMv0qrHRrSkFx1TYET+fV2IGWm\nb8B0zwTyWke3iqbyrQvjMq0Rj9Lff747buLNoRS5rWd6bwh4UKQuvKGz0xhX\nj4FY62xyjgbQ2mDgkhR933Zmvq6I5O/b/dVtcoVB34VOr0Qc5qhLakFbLdPf\nbFwVt/xxiolljAkHqP5AQj8EOr8l8qoJ405AVIv8xmzmW+MgdhnJHJurWpqO\ncKXVjNuLdQ35HYo/W4yMST+2xFKPPeZBIF18pyWCFrPgn6jPqhP1iRt7KSQZ\nYfcO\r\n=7W6w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD960k13KbG6Nc9IrYGMvaad1NPt635CdaTX8/srdD+TwIhAISIaNYrtdoxRhuQBaaoyDv6J59AAvev6KGQrNGhW89S"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583964052502_1583964109299_0.18514157773891982"},"_hasShrinkwrap":false},"0.11.1-next.1583975195910":{"name":"playwright","version":"0.11.1-next.1583975195910","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583975195910"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583975195910","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-dT09Oc0LtLtM7Y60zp2vGvSoQKpaCPifC91Vk8DoRTOVQ7V+8V58J+Myw0BKn1bzh8k90v+LU3As3lgvGtjZbw==","shasum":"416dee8c76957df6217ea5b0f36fbfbaa73f171e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583975195910.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaYtKCRA9TVsSAnZWagAAvpcP/0GoKEL0q5NQYrNEmEew\nt0z7DMhXg3k9JUnL3DxkuAU3BhjmYhQRF5/Pyna9nMSdCpggx1Ib9p1/lJYl\nx5MYgeyFlUitHgVpKMZjF4LlN8glrKI4dCXJhNJg5UAJCn/Kmv2u7v31vaKj\nTfUB5nEVIYfA/oJl5kxAlGxtZL5GuQfJvqSrUipP/6HNKanQPfH23hlm8r/M\nLgKZFKLwbqV67IV4H1Jaj3lSe6JeyMjlf/1ffg7BjmBzNAf6pgSbMC+EvnPx\nbZRsjqOvMgHseojrrl+lokAxxp60W2iEbM8ayvw8FK5smaDcWV5LD3/B28ak\nkSYV/wrPQZ1Up+VWlfBMVY9sThgfBtObPJo6bBGOJ5JFV9id6sFN6EYO6wcc\nSZFAUMxO8OZ0s2/NBmuzDZeZZ8ysN8zze9BsDlw7Z4mylYdorTs1cwLMij96\nS3KOMq3KNEKKDEZraziXzfpSOshy5byol3O86owbIQYTtPGSHraWni9esqvt\nXVnwTgIDogSemvAnakMQpeJS86RZyiScfx+GOzBSwR2xLH1k+ttYE6/Yz2ZP\nsLQd4TVaLHwnKInDzWkFvnRT+Knw2dLrqKsxzj2b3HPZvpkdrSURENK5EsYZ\ncgqhIosrDEE0bHC+2Tof/SH5C1Yk9Ndqt14TTzhyVa6aJsMFa/0gfmZ/M4xN\neNBR\r\n=glW+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpQKKumRESVrmKOEcujEJcT5Oj94+OosRk3SVFtDQ//AiBL+s6q8vSiCwekWH97zA8PyQMsOSB5Is3hWomlXLXzRw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583975195910_1583975242275_0.25965065757908445"},"_hasShrinkwrap":false},"0.11.1-next.1583976325223":{"name":"playwright","version":"0.11.1-next.1583976325223","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583976325223"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583976325223","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-4gP8KptW7Cnx3+yM37fr6drChy8HkSyIjzgmWfzGihCl2tvo4VchjudibeeHcfDk5H6BV84sU0ogLBkaoWd6xg==","shasum":"12dcfec7e6198b83da59902a06ffa067a7c04bf6","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583976325223.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaY+1CRA9TVsSAnZWagAAv2kP/2nTqXIF9EVE5QLbR4S5\nXdgao43jODEcUzKfV2bUeKWTe414xjvZ+Zd/tG4mKYTlkkCUApBMJbR+lPTC\na4K4lsYb951qD8pVxJrUB20EW/KPXyEYXGDM3+fx256JJW6FW4o6FCx3gsL+\nlUt7UxVROB7D2VRijg5nVot3qCdgF2t4Og8sh4qv3hGUlRT1KIuHvtuHW67T\nCX7LC9CCxu5TmiIcRg6V9ybBcdgr+g8BYQqKoc6d8GRCvDuszn+E5AwDCOQV\n0WVgrTri6Wj+98YlaC7IyaZUEov3GjJzm/Sh1oqxVpl5ClJf5wIjfCShg+s0\nWbtUG+Vui51DkLYEnUcBrI8PriLv17LwKQXix359TRof1cU0mW1LXlXFymDJ\nbhVzPCz6N09XIExgoigW/CwSTqY0Ht4Oo3q4NxFH/E4AnlUi70Fjk1RFzs3v\nXRvaIa3JNIm3oiAC1BPs8tVV/DHZl65TiTWYkn+h/DxLGAtMqBgS1UOk9cuE\n22K1xnL/c3x3H4zpxqqfuex8xs0QAY5fJjRDDaaec8iowrQNruvqGYEC9O8B\nWr5TCQAGoq+cUDCEYnlPFiSCcse8w33EuVkiPXZxY8G5tls4xnYGwDiI5EYZ\nRndcF8Ez48eX44pgzryXIAol5r1GBu2UXJgCf5dNs4T3cJB2o62DY+gerPfS\nBkb1\r\n=4xZL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFc2+oc8s9Daaae/DYbjTn+mwiD2Q5VTsfdvuxWYD/YaAiEAqYYcG6idDTS5SdAeo8iJe6Il//uMRAY4tWCGgX9XuBs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583976325223_1583976372790_0.3490643629957395"},"_hasShrinkwrap":false},"0.11.1-next.1583977527510":{"name":"playwright","version":"0.11.1-next.1583977527510","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583977527510"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583977527510","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-44fVezI1Mrbk7JCkMfPrHQ+vBEXtOj1Fxei+v+swJ8PcIRWRMhcPHKQ2BGAf+YlDDGBVp+hXXFv2qCFA4fUc+w==","shasum":"838e042c6128188c5b38e3abffff0153e38b1d1b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583977527510.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaZRmCRA9TVsSAnZWagAAU1UP/3M+7VYPaxEGTc/I4brH\nPOAww0FeIEpkNRC7TYTSE/0mgpurjfHaHsrRR33Tv0nIZT60wLXEcNlQJjA4\nMyXvdVM5wXF6F9CN8Y3weIlL/llLsIiD6lOJWlwCFVI60WeYGrg68opBByBZ\npEZ94wbZygJfgdzKDOZm5z5sVoFdBTW5PT4lo+/j5J+d9w6vjtcHNiy/QfNX\nlkEm12KI5tYFiNQU9tihgg3iw75RWKNZgphP8fhgMm7yesgpLxZlIyfF5lxv\nRTEhFWt6fAJijNXGUWo9tQwewlnMSBb/xLwMA7kF/kVegCvMWx/enBexMPgv\ns19eKWihWFUF6fonoPPh8YcGceBtN7JdiSTECmB0WN2uUOM4tbNLISwFBpEC\npq1h/CyMeibfYJt8SLp2Wf8FjP5jfj3E3GDr/kfa+ML/1Bjqx7XLi+rnm/uA\nTxmxX+ZmgPG/W/wq+7WlURk7hBJanpMpKndhzbQEdUBq47tVfbTd/MQ90luX\nLxbMDmg4xcufoMb8xVtOHFB6LfqI3u1FF/WKoA7PY82DPZFuIUZQSgUP6LKR\nShRy8QWUoVXTcxqY0XyywqpD9TWitQOCLQgu/DoSw6bv+QQJwdMNUZm7saxP\nQiXjGau53oDwGMIBmbPQ9CqrCkP819ocdsyfMDw2B10Ac2sZGffaaXcibnK3\nqVS/\r\n=0Kn3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa0jyZaFTxWrmlu+3al2PDLsxFSSVXXnrocBpptCuYvAIgPYyWqr7f6tJ/NOVcErrPoPLjm6PPIHd01o/5vQA0gTk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583977527510_1583977573768_0.40413259748484553"},"_hasShrinkwrap":false},"0.11.1-next.1583979469062":{"name":"playwright","version":"0.11.1-next.1583979469062","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583979469062"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583979469062","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-PcaIwLlb2HPD6KDtM68ek1gxiHd9LGCpaYwegMtPhWGvQvXjWv/26VD8maxlwq4VbmDXKoYiMF1doxT+zXGj4Q==","shasum":"b245bbf9f623b4dee32d2c640f1a4811ea34eb39","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583979469062.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaZv6CRA9TVsSAnZWagAAp4oP/A8Eh/vWF4efGdcoGP+k\ncocpdT/quCw5rRp1zESxKzC8m6Ud5QNh7FsIuB/A2L1LnLpH/RCAE3zIbvBi\njs9MMm1mSwWs584boU5KQkqZfExG0s2hL3AZ9BO2VfCqJTYOGF9LI3otImHH\n0UKSSsKtHAfXb7W2SZ4ZARZfljL+BVVw78ZhC/DVnb/sfpQzDvcM2i5dgITP\n5Z7riZTS9hEiahv+zrlSa82YsZ7nWvztQ1ytPUXxQgJtc8gdfw7DqWYhcc5J\ng03FHtADO4BNCwtexnJEozcIKpeFwnmdrciFnE5paP6W4WFPlP1v6P2sDSWF\nDs7dEPDZuBp8DQoe3y3Fuk82LYbPnr28jmN3CAYv1cBBlHrCwr7sscs83gZq\nhhxcdSKg/ERVOSzxIAT9xYGD9XmSSW+4FWPQ1eR7mIiOhbc7/S78IaVCJ+7X\nOxqVsEHQJFeDXAWqMrbHUS/FmqBoeSX3+H/p8IM4Ek4/kXOiWwwgV0pDK9vX\nMZw2Oz5FFM2iXnnJPni938Mv2Z3M7sqETj4PG0EWqYjP51Y131GRYBpWzp/r\nN0ID/pn6mVdeJjPFdeX9U3i1wzzUDRQN9TsEtJ66zHHbaA93p0yE0PsHt7E4\n3CjMXUj16b7VgtXiHSXm6LgbeQqNyodv1haKvL/3nVDnoHyksNKY/rxI8ZVL\n/aQe\r\n=wkt7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHr920E7DYclFoLNeUYoS1tqUWXPZqg9KZ+vElpQlXDAiEAmSEhRUDK1EL/aa8F3Pqc6Drha8Dt6OGb10sz1OMbCp8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583979469062_1583979514466_0.6882463668895726"},"_hasShrinkwrap":false},"0.11.1-next.1583987681271":{"name":"playwright","version":"0.11.1-next.1583987681271","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583987681271"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583987681271","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-XioQzh8eDWAQ9pneXZrgV5uZ98xBNeMwsuomCnOiv0SkDOSLKAUGTsI95w+nZ6uq8f85PELBYo4ujhRQhAUAUQ==","shasum":"92ec4ee409fd428470a482226daf9c1a6466c3de","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583987681271.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeabwRCRA9TVsSAnZWagAAQFwP/3FSdoevxoR1eyIedOW8\nxETSzzpXFT/W1qC7KujbDGelDhpOK9RMOBwSdsUnb9jjen82ORUu2yxyvzhT\nHFPG0304N9U/mQrfRmeMva/QsTeNSq59HgI1SAAzqkpb72Y4YetDpO+Gq7y5\nADYxvwxKGAXAq5fsmOqQqlOj68GmxTNMBtOcsPT1UyzdnPG74qIyJlAWHBeY\nYw0oDXupy7jiQxwBNECmWdL/sQvPsnZj62cqcpEffTa3e3Slo70B0xCVQQbU\nbpm0ue2l8taLJcEHsHq52V2pUo0qCLaSBKKUQub2QbW3AzLsDH+Y02sK1kIS\n1zzPjjUM1E5CXHzg3r61vrc3p1H6aetEqixCpWtjyFC2shYuntaEkch0aPy+\nAXhbjmThsW66XuC0C5ue3ItAYo5PU9O3wDAF0o7sdBWsfMqO/8so4X4Qgyit\nDvbJkXfd6tLmJ3xWDruYuVQVP76tMYxpl8egIb/yPIYRrhpbF6OH0CjB2Jtb\nQWjMp2H8FBimvHgzv8acINNdLaaWPmhyWaPF7xu/2sO7s5CKey0WzvSzBZky\nWznu9b0wuQkIQlSU1eUr0EyWPXQZBrT/Q+okboyyR7AlVe4ELVyxyskJFZNl\n84Cj/5aeowZk9Bp36Z4zTdi7cftPJR2h6bRP6h0NPj2OZE6cUOSOhrJRfa55\n7khv\r\n=0eAH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvHB3OLhglVJ5uscxCJ4aKnflU750Iv1q9t8l28p7lrAiBCksUnEXvv6yYQbKQF48PUoXXF/QpQGJ2cYofxoMsmNg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583987681271_1583987729324_0.4401076078017643"},"_hasShrinkwrap":false},"0.11.1-next.1583993157193":{"name":"playwright","version":"0.11.1-next.1583993157193","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1583993157193"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up network interception for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', request => {\r\n    console.log(request.url());\r\n    request.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1583993157193","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Z833HK2VHqh9U1xjur/vpYd0+CRCJ3zLfS6XzLwuAEmWRgc/kguivxkRYgkY4J93hS8RXuqfk+wzcOo18mF6Tg==","shasum":"28255688b164660f7164e5930d8788af3d219e51","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1583993157193.tgz","fileCount":5,"unpackedSize":14118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeadFzCRA9TVsSAnZWagAApMQQAKRdgkVyTTbgKDzFiXNr\njjwbC8aR69+6yZymYG0Ax+pDM+Oa9CAGygJTVz8W5VEzm8Ey0451tKBVcRg8\nSOU1XIOErxo2MouEllW5mnUtim9V8UjpbMJAET6qHA6j7C3dYtBGmTEWHic4\nmUadHLbOqeQgfdwQgd5rG5mg0sSxSygjsJ++RaT4e57+my4dleKmTc4r1e0t\n9bC+s2vuDhi9qn6HlbpeAYqEDtb+90otfc/tnOlGfLM2yzC3R5asxO/P7LRj\nUja5fJj+/7HVUH5V+x3jNbSGqVt9OwTN/Ed9uufnWIr/NPP3NBXpjiHdMTSI\nC0PEuua5X0PS65yerWRHfHGh3PFMXp6yB46EK+V3Ja8wfjIMIkbnoPnE1RXk\ni9dObLtLp/KQ1Ak580nRvBujEj7tBroXGE8Q9VLNNwy3VnNv93A616D0xev8\nCZRDLaVLGR953K6MH/SS3CRjfJUfH4sRsuXzxT3CuWRz9ocLqFQhzZ8WdvAO\nwcmZZfa83B2MYgs8eYZ4oWy6g+PsYqcVO6Ucq4WsF+CKSb6/sOzrRd65g1ey\nBdSOtlHN18F5yrPHylzIwW4nk9DbTA4O2J/k5C4c6fYUHZr0cvyAZCN0rFd/\nYEL+VC0UuTKfXNcxhusB+V/spefO/eeEKQVfy4NcDlxbVQKuKX0lRx9duRbd\nwc8E\r\n=PHOY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGmP+wwNoLdc0XO0Hkgf8WtCURRm9Ak8vt+tV7+nDjI3AiB4InVeMfCnl9ns5psGYIGHZRJrsePrIzndlTRsJcmjiA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1583993157193_1583993203037_0.8023268537167008"},"_hasShrinkwrap":false},"0.11.1-next.1584409672845":{"name":"playwright","version":"0.11.1-next.1584409672845","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584409672845"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584409672845","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-3+XSgsUmlDNAgKE26Iy1MN2KV5NIILthbOaldVTOY711U74UCyxRcZOh3UvYRocMY39S7ZDhDD6/4xnIl+bqqA==","shasum":"3fe630c9d39d95aff62136ede6e642cb33672f2c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584409672845.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecCyICRA9TVsSAnZWagAAAN8P/010a4acTI2BK4GjpYrS\nzQZuh6IsPwed4DW2al/skc2YgXQ24G3TiyaKxiZX6Hx4yDK5j9TomEsx8d/T\nqY9Ktm7pGku2T9uf8jPszaOJUHzAbJOnMIxK/L4iFt+3Oyte0YkAOflvqjBN\nEsH4N2CYMbRVE1Xv0fdSRBX2cQoyDpb9qObjelDtHGLdg9imQILpBHmmjQML\nBc9D1szRjg8/g49MFKeXVu06vQJTcA2KUCYRswXiBLHWF8mZQ7SYBPuFuEhq\noeMLL3jy1raJJRu6lXJ47u+eKDMLXPrD3sXKvr1tCv0+1J+N+j6YsG1rdTAe\nkVWBSZSj+Gatqduuw/zjhvqvxNMTX8bi/bGb48jF3exMQQ0zwo6wTrtl3C9V\n8MdHib9FlFWYg5wWblMAP8CSoAjbG3YtpE8zoEre6oY0rxonMPXnO7hfvFOo\nZQJupyGNr6xadSSIP2psgA7vytVJNCluZ3aAArH2nUXgQs6vHaPitA6/cL1w\nUQeGknBa4se/IwlnAcfxY1nWCmTxj/4qLtuovK046/jn4beBBUdsbUMcyaYm\nu3npaiT3r80RBSPkmmgthS0XUaCBxQsjgGzq7vHzO3OpbQCAFPesnkFmS9Ip\n9K9FxI5di6+kQRQiOPglW5cRvmTUUU+S6PJfFAfS04XVvZqFX8Jz++0+bpDS\nMM5u\r\n=8/Vp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyCl2LUlLOpnsMkWkVDrq0F3p2DXjGLFZxnAnFmbvAVAiEAmMB3GkmtKCLKhTaPy9LLYB6o73L1hU6Rsx8864yjID8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584409672845_1584409736197_0.11854206512810239"},"_hasShrinkwrap":false},"0.11.1-next.1584412062364":{"name":"playwright","version":"0.11.1-next.1584412062364","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584412062364"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584412062364","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-pazgOY2+Zacd5mvYU/D+MJecO8R8Wn4t1GuUxwmq8xYyd9WKSck4cCtU8gfwiAM8gw0bW8UVrPkGb1tgSD/QZQ==","shasum":"3ac080aa96d752443a45e5ea927952941d6f7f89","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584412062364.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecDXNCRA9TVsSAnZWagAAHuoP/3IJItZg7eVpeonUm6nu\nZJUp8pO2lm12oDeZk6FAKXKutsDlDDyHMZOoydPrQWnxCZuPfhu0NzfyV6nG\n4Yr/mc+M+qG3wjOsFJFwRt9A2akH6AZBjwbJIwb7phIj8OK2l4ETURd5g8fQ\n28/WUb6eOeOyaOmsWz+H72hibLSSMQ1DSwpqbIPq/7q7eaKPt/yxxiG/+hMo\npL70HCmofxmmlnSl1/FreQ+al1NYAzg3K3uGmDiZNU+Sx+jkTIBKitbRcKPl\nh/zARLcNU+pGvNTCog5XNt8SuqijLytPvnJqIbfujUw14PKlPRdl9r7UXnDq\noi5vb7mw2ha1w0KA3ucuHVEVYCuiJONyFL8/7qy1p2IVYpFiiPMPOT8oSMwf\nJKL+B6kroToT9rORrZRq8Es437WyjAWznRulXcz0MXALrZMyGaPDmBQUNF2M\nyBfaoa7D/qLS5UkDEzxfmZ8YslooNwIO/SGnvObTR/LkHGxM6QD1cdyRDF8Q\ne/n2no4yUeZYaKT3vBmUF6Rkqdjee7xHJ5SMfpAUFdjEskEupgR+oeOeNDL3\nOMTxMRdNUnR/Iy4+s3exKfb8yTbmvLLXweuEIzJhE/VdQXo/rZ3nl5zJxyxd\n7icIq+vj3G/2SzwFIE7AMBzFJqcC6YmYl7kZ49Fo4vjK5lO6PtOF/WvBZfoC\nR/ho\r\n=xn6X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRsKSoJRHBwnF+zFWCUz0k257VHw/MtyxLP7oVWCAesAIhAKswOc/bubP2Ub3dZwrCLFPksi6IU0NMY9PoeIaBIy8k"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584412062364_1584412109179_0.036241678547212164"},"_hasShrinkwrap":false},"0.11.1-next.1584418340596":{"name":"playwright","version":"0.11.1-next.1584418340596","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584418340596"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584418340596","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Y3vB1lO2jwHaS7iRtr7idrfjc/l48ZS9ct3T577AVZz9fr/vrwCY8WvdBh04O0TLkKBBUypmKTs6v5rbTRohRA==","shasum":"77070e029592e75c339913b0520f819ecf4946c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584418340596.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecE5iCRA9TVsSAnZWagAAfBwP/3H2puBb76bQz6nGSNVR\ngoa//eQZZx8BETqZpjKhyESyu6Ww1CSJAwdFkgANhzpxgZsojzDrDZkW3Q5g\nvN73Jz0OIrg/M9fYKQja5+KluPa0XccUr7YBAQghjLTgl5fRJsk7BQT78/NU\nULf23Rlxam47Bb+G9/GMhbpTj1Yispl79IhmlYls4f8QR+UQxecISIhoO+D+\npObJWoEaPeBoyWd6yl2Ggt9kFfG7Q88/XyhLxL2AMitgjOtyB1ygy8JM8Kxi\nDd9CfrQmhC3ws95gH47SUcDG/qbG5I0gYU1xB0sO0coAQtzgV2Bv5Zv/Ij2O\n5S/cV1G5+zxUO0QWmb3RH5RSBwdc1ileAfKWE07yKll0I2vpgBd5ppuSMBbT\n1wHC/4p8RUyG0HdrN3IG3vmceHnAzBn4zwKbXNPfFIOiSP9Dy7Tl0iPruv9x\nyHm7ywvfIF8aO4wlYEuQPmSDnxCuzeZxWrY6ZlwG6VUc3Jz151rSmK7S3Ds1\n3fS9+5yR57AgRufOVkf/oY9c2N3/KX0unPDcx81ISkzMd7UmgqCcUEefah/J\n0PWXiVBLePwzAOehM8QelWoZevRP69SKAlgZa0jCAGdgnLY0sMobUKmGGw1L\nG5UXR4A0iHTmoTY2xJBqO3mPPp6F5dI/xWhGZwGci69HRRiMIG7crGd0R4JF\nOdK2\r\n=Ov8B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmtu1XnT4Ms5g+aw5LpNzVDYUp+WsfDApP9T0hKFuY9AiEAoj6PiHPgBhYaoKV5e3EweH1USy/nlddBeqccRMRV/jY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584418340596_1584418402525_0.2848207158500924"},"_hasShrinkwrap":false},"0.11.1-next.1584461989753":{"name":"playwright","version":"0.11.1-next.1584461989753","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584461989753"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584461989753","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-zFrEpO58jHdYatsC7HqQfoKR5FQDJZ898DwAy3DKtR7Hz/I6BwQDw5+qypcMM2LMzA7GtpcCPN8ltMRHRlLc8A==","shasum":"f34144a9d00113a9df05054ec5922196a70654f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584461989753.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecPkoCRA9TVsSAnZWagAA7uMQAIu7+hWDFGzDLdIoaM+9\n+v/mSz50DL2VuiRBoCsZRscsl9m4l0+yMH118KpRkYKpkBn0Bb50/aeBg5hc\nSYFIJurJkbk1fY8A9mPTBgbKgVpylhNiOc2X/ubKUWbNQcQHYyBpqna8eLS2\nLk5nqPWi/yg6yNMa2UaWCfffs2zc4J6k7F48Ttt06M3HmHWRvczGICdPU5LD\nGxqvX/ni0wpqJMtwwpRJmCjdb77qKx3blZL/WdLoK7ot/PQMFCefVCoAkmV4\nUJfKqITJFFWGBa+umIjO0qLC22jXzx61Wz2nS1HLez9g+LqtSlBcoRcLXtAd\nBoxfgIefnjA73DW106kTFOF4noCQLRYMgQw72TRtACtyJWoomND6afAIuHJ7\n4nytl9XtcC5CmrFKibq1DXily2SWuZXV/edSneO2kdQeKDmVcB0QIEk9Yu3r\nMWbUYGMPwmBztvCHPWS8Qig++YJ58npCrTIg5SninbEAqr9ss4M/NUXIu3UC\nNLyhZmdbaqLwtFv9WglBvV7EUFZECB/fAUQ/czQf13DKJGZmJXUZLvGNzHo/\nEb6wVcxIyaSx3eDzkttGIhGuVdQ8m+JfOELfD7H+B6bIdkOlk01HrPpoa+U+\nnEgcQ3tXbn420jWx1sjamnB8EjxWyXI76v4ycWFG3ZwQY5R1Ya89IuNqpI6X\nmls1\r\n=1dkw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKtKhADKsjbHLxhN85EYbva4+fsu7DR+1hmiFDUNqvLAiAw4rO6FWgTPnIsGyjJekQ27t1uEmCp+OwgFcSGRYHLGA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584461989753_1584462118890_0.8872691327144206"},"_hasShrinkwrap":false},"0.11.1-next.1584485273162":{"name":"playwright","version":"0.11.1-next.1584485273162","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584485273162"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584485273162","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-9Kp944AEm2a/ty+XWX9UCdwNd09Qwoul12xfoQu2XUKUlDjPLVY/leC0sG3IKQ7KrNEQxP51OzOo218A9x/Q4w==","shasum":"8cca40edd4560d7809f56d7e609177b4aaf1cda2","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584485273162.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecVPKCRA9TVsSAnZWagAAAucP/0KaoDIXObA62+qLFwm8\ni3zmk0MAblAjB9mF1nRjo5POjoTLltvzmJvyZjifuhyeiwHVkgrUY8uDf7Zy\nQ1MCk2KGJSTjQWaVYItRIAQsp0XbKxxhL8rcxi8MvMSgJqhcmasC4rQg3JB6\nSJ8X414eUhonGIIDG/9mjAwpetIMx/UxUadiMkr9DlI8oZ0nx0cbW7Mr6Csv\nFqDhDWqJQeys+TKLG28EgbPspjpNxVfFgc2Jqf2VxgJWU1HfJTOb/JnUr8Es\neSrfNoto3dOlQ68i6Tw0usKqO6QUGDl8UVyb4Go0sOee2VlDJtaJWBZqJvd3\n7kNNgb+WsDCm3f1ZTre8u8T7ceCvLAR1T5VcRohQQxmSOdM5WG3FtedkkJXz\nWcYnX2h7EUDsPCS6VPPuAb+F6ykAXS1Uv4XjBZkbSUcVgpkV2F3y0cKRdu9V\nLHxZCo9HOh6P2r6+tgeNHCRrMBWGBbb5JhETPSV1Fo/naHMC2TeFD+Xmnr5N\nxUNX94UciU7MRwlDq/dlhO66Tm5ufilACzr0SuaE1Gf0wPJKBcOoDIoRvWIC\njl2HjCetzvgxGhpLDpkpdIOMVp9b6nSQ5j1IKKiIgQ1coPYMwbogdK0jYPqd\n68aQXH2ZmzlgkT4gcPrgbMAb9iLtXVelRXDSs+FdOR0U9DLrdg4rFxwndNLq\nGaLH\r\n=uHQI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6YqnsMv2V+ewlYiV+3DtFqubKu56tP40OIqZgmLKjoAiAOyG+yDgUEMAbIfBZB4thm0QbBHXMSZBF3q2GfjPgTqA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584485273162_1584485321771_0.39120445247483215"},"_hasShrinkwrap":false},"0.11.1-next.1584487135181":{"name":"playwright","version":"0.11.1-next.1584487135181","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584487135181"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584487135181","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-l4Hacjm7mwG4v54FHPDhmmM81Mr7nhm0AozlPOLK8XURE5YpIq312tfUImmA/mnouHor4ECP03iNBprYqfJ/Mg==","shasum":"0902cbb4be95f34c8d12aceb2cbddb1c568fb15f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584487135181.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecVsMCRA9TVsSAnZWagAA+e4P/0D8MY2W0Nrepn9gBTKU\nOJszZ0+V/iTDHTACBfFpw67qn/2ZQOOn8qOw/qkRaIuDQJISONA69mQw62kO\nGVeh4kxq1Ihtxa1mtzET50KDPXCEsNQ82KXT7tQoA9htQO6ECr9o03MQ2uu1\nU/b5FbQWy14N9ReFkVBLcbSyU7jo8+9dm43dr2U7xAdx9xUn+hyxb3E4Ffym\n5OlvzpA99KsDBYABpXw8ffYYRnwcvCFnJxBK3OZ4Dxe4UEcLi0Pwf85ssV8v\naOTWAQcCBkUvCG7hCtoUq1QW5rz6jkqtiCwS8eaM2dF3KfOd8eSsJxHHN9aM\n0aDq9WBacng3VHw5Sf3rhGiStGGcvUN1KyUjXGNVzXeT0IxOHzWTZOrYcSfK\n3DLYdaYqYAK9kJztcV0zbZe26zDx/Tml4lNWdkN9sOR/vXeNirlPHE8ghS0D\n9U4oo3h6RuJ4TJSQn7M4OY7N7Uw5ZU9uWNS3SXcW8kjYdrI4fTewJS5dM6ZY\n7y2YlgrX469UZKmbZGrQHwLyA+Y1AMjdF4r++iSio52cJbno+RXBImG1MrZY\nkbdCB/mHKDPQOYkD1oSVewaU/OwpK/JKu/5nXTsc8QKJBk+Zv0OYxXRiT4VK\nNjLcFLQ9pUmxHbk2iK8TKxnnPO9KEZwGrfzHiUXwTXEvYIzZKr6qxyd1rvXk\nG1iR\r\n=LO1s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEvyu4OlNOptYwd2Y9xqmIY6j4vi/a7NOFpL/BQmj/MSAiEAqDZtM2KumUXBZ1YzJwhBxeQAcxl9Ks7xF4hgJkJzAaM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584487135181_1584487180220_0.8462294280133"},"_hasShrinkwrap":false},"0.11.1-next.1584550591910":{"name":"playwright","version":"0.11.1-next.1584550591910","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584550591910"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584550591910","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-QU3GZjpW4lTLrsAE29AiTkz5Kxpm7dniYdGv25ue/h4kP0ZAyVFI2ytM6NrkOeJwLe2qTABUZyxNVfa3dJjl1Q==","shasum":"e212fe821bf91dc2f684c045b11f01f59c271634","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584550591910.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeclLvCRA9TVsSAnZWagAAJYcQAJKx0nFnMoDl/Ts/ny4P\nfcx5JYoET+9XmVMSPwfTabl9SisNiCiVVhJnul2DQUutof0JDF3bhpEWfvFJ\nQNogEKy5m14yzD+7D5PHcaQkFL8wCbCOtgEYCKk8qqXvoQZXC9/Mhe8lP/p2\nk7GEdV46BF25x/XHxKD0wi0gaGgs9kB7OExo68N2RHl7axZMnRdERFcbqfJ7\nTHDa+B4JQAjYvDsSYXGsj+2uat0Dp1B3DLl0pLyBKnyp93yt6ywX9v6ks+Eq\nh/AxX0iB4DsVgmC2OoN4YMmsyHz1ZxiXRHFMyY77Q+8Pmo5uPhex5aQi5DQv\nDEPZMCu9MYMVCubSWEV6Wsix2i2qp0+fdzJULFuxHBKcEnBDmDnFDdZ8ah8Y\nye7AiqDUnR4MxBqEepxnZXtuF1jpZSS6K17YNdVbFrKjfhWD7TB3NIplkVsB\n1eOeW+lx6MZri9AxqUvWfmkUdY6Chkdvy8wuct0wTdeG5Lh5RCbWmopQEpIY\nTNNlr/yBZ+DC/CwS6L5glxML4wGR7GO8oOLbPMHmKLuc5Iij7IqJyBPtH2+j\n4IPwD+NbmEHg1kjX1sNf2odjOkwodG80fAhqaHL+2YA6YFkw4zqdgmWmycdY\nWRefAw1IBl854hNHoubL8xRm6wO72h29TqFVfanxXM1ejxHFit7N+5EF5ZbX\nblzf\r\n=5sQD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4OElE88YD8XoWeZupHtXL9lMEIJRC0T/sKzNf1qnwrAiEAoGh1H2cMWGDUdTmxparDRlB6yzIREjqqKrxcykok29s="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584550591910_1584550638764_0.2714963113320603"},"_hasShrinkwrap":false},"0.11.1-next.1584554311717":{"name":"playwright","version":"0.11.1-next.1584554311717","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584554311717"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584554311717","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-nOzALcwR9+4GvkTjjH5vBGhK6EYuSglqhEa0SYsxOv54Shjbmoe2FcHjBdDWTr45uJQ7ORipT4Rb/Zzxhpj8yg==","shasum":"7f824cdc7dce534ad1c59c515c2c52874fea3716","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584554311717.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecmF1CRA9TVsSAnZWagAALtEQAImcMhjyfyxcaBt/P8zw\nfU5s2kFumTp6Nq8jIx3zX0NV9zB0h5Au6EVO4SN8IF7i5amGp8Zny8FWH7UF\nhX0BG+lcpJh5i7qf4BA6mxITDIwQ8VRE5NJs/H45A6LGR/TIMWK8CJ0T+LDU\nCceVcT+ZnLHBIrnXmE2YXpQ5vCoOuRgyJNh11vLgHcFeP4KT6EWx/IqeLH9Y\n1asGKKfodBWy3tTmq3GTnk3XRiwoiqoeuidmDoR8hyBcrE9dWpH40Ja70e65\nxvPDUgAMPxLkIBn5V+etF7ZL5wB6IIqLKwjnDTxhwcl55iWna5KNqP3jrQQ2\n6N/Gffzr8gT5PrKdBQpu6ljXSwLpjS1A+04bg/Bpv+9MICPhx5yqfLm044Rl\nUYJm1AtlzSWLLmSlk8AwwSraeZrSdOrF2oOW+B201QZpRChSHnz5o/OY9AkA\nLRTI5BvQl9yXSKzlv+PVXwoBAAPZvj8k+r6u0NE/bJRRzXj5ANlPfkMu2h+W\nCONrHeTmTCVI62e4AVA6Q3BuDFetATOavQMFZz8g+jFJUsQ++R2qRO+Mrdzu\nZsZYeYWZVtjsnRTLKRywrI9J62W67k8ro09gpnyhU+VorE6d4Vz4W06YZEuf\n1lJ/1K3yUGkujYiDw4CH/slr/x2kELXecJrv4LW5h1AT1qYp30AH9eM+mCy+\nPKN7\r\n=NOkF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ0j/6mOTjBDUQ1RBAH5OF95utFwcMEHgTcKfkft6/4gIgR4ujSsQpUvFtwiLEkVwrJR2eYde3OkF5T1L/5a2Fddk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584554311717_1584554357519_0.0068074883695927735"},"_hasShrinkwrap":false},"0.11.1-next.1584571745710":{"name":"playwright","version":"0.11.1-next.1584571745710","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584571745710"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584571745710","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Q/0Kq8zwe0WcgJlbxpPiriJrk4xQnVDWpsLgsoJ0wmcsKsXeHHsUUOyOdH34SKMfkt0ORE5FKf24WrV+yvTtCw==","shasum":"ce926796321fcb5a26e7de609148ab5eab39c5bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584571745710.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecqWPCRA9TVsSAnZWagAA/WIP/iQApIbQHoZj5rBXEzXi\nUhJJ5BIzvmzukZsNMLI8O5X5e3znhfgg/T3UPY1G2HoqywU55Y/uD5g87WKz\nQru44kjkc/E/5YaCuMSAxfULrH4V5QA8XS2xP7J6gooSXHOhOefRTxxFwTSZ\nQeVTnCJqdQLMZKEmK3sb08RYzJp7O+QxMz9BtADdauXMBIKYSzXeGkjgrnjn\nObLhEfEcLGwxd6mODKfZrn6UK4JoJ2/N1ARb57TdUJu1aPV9Q5UUMDvmBhVw\ns1sgSk04RCI+Fw98700UPPNcVBl2R1yFuxPghJ+jDXoTr0ppGJoxInRDgHzK\nkVv11Eg3/+CsLda84VOxmtNPaev4N3y5pYwyD/Plk0V9hSC8n9cB0D+G01oa\nK6c2gFZ64YPBCafN9Dhi135XxmCg5j41prQ0s0c0H3aHPeCRpJ2UQdREmCge\n3WyDhpmpBJjYSz/j4IBL/V2JPO6Kys+8hbD+VQk0IsbNCekU1rt+b26/cI6b\nxAG1eEaB1J3g9ipO5cDz9Qat8ehMC+YI5X9mPmrvdNyOox5MAXJPj1yZIkxT\nMB+abdKzRJDDZ4dqiF6BJn4pLkywNk/6WC5xQHDaOfMrn6jW7PFzYLm2VzuY\nsnEj9pbeBcNYMWIICIXS0BciP2oE1miEPE1TYjaO5ypocZw1qQAusIsYExC+\n0jwe\r\n=SCYK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/CO211xeKHjxFvjFrCfhtrVM/QY9HNL3rfiK/03NF3AIgR+s/XFj6/ypIZskeE3IBSpWvvRJB9MVfzkRsaop5mLU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584571745710_1584571791297_0.9937940468180719"},"_hasShrinkwrap":false},"0.11.1-next.1584574737431":{"name":"playwright","version":"0.11.1-next.1584574737431","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584574737431"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584574737431","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-GxKoPZvRwMAA7lOxmqE0o8jComOsMa2QCfA3E672E182yZ/79Gp8w0vRlTyl9AfqU3YI4mLM5tIZvirjat73ZQ==","shasum":"c0b073f803a96f95fabb6a4f2a0d5b228634cb04","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584574737431.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecrFACRA9TVsSAnZWagAAArEP/ArzcOi3q6Q81ttCfOjq\n11VakRJ90kTx/GrVyQ+We878k+f8cniIFxti/ClvWtF4uDaYkidbZE7/EtCq\nY9S6V5L++02UQgNz31c0/+X4wIPloNtmVEh3NnrXP9CWtkK04b8k3HeYgLN+\n70kKA8kjO+qU5ZcKV9z5lknylwy7+74Ud/6NO7Vuat+lbmrzGnyrT5Kciwpd\n4gbEFjOtIOvcjfEMY/+prSA4BYNAts2DvIqAMFOeTNXBCOXPJztSv+EqfL1N\nRJfthBcm9fvJarUz0QUmPLI+phjDndYB3rGK0yrWeDaH+lxpyzIoPBRQAOOw\n25HBgffOOxALx5Bgw9zDhp+NfNrZrK5jtc5TycC3g7WSMPDprOXOvnQDNEZr\n6FtnNKUC6gE7RT3vxFDvmaWgUOCv0nRi71jhmiFuGFwNxQzuc2k2UO4b10wl\nltxlwF/qTiK0Bx0lNf/ROOxBVcvMu7eE66s/5LMFs4ir7CWfvzlNMKIAyqBN\n0tvL5AzjqvKPWfesgjlFgr7bvBwY5gQdYYoBAackjGVzUy/O14XT3xK33+Xm\nFhrYOLxQXOXNlrSZlhcp6siv3iTZWxh4DaLOq0ggNBLxfiqPECteOKMMCRq1\n8kDJ6LR/p8RRhM7NnNiaXcr5yeW1JAFm2/4TPHXVpZVgL+zSc2ryns4uKloV\nqvlg\r\n=2RdD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAc8v24cNTrwuS31IpVPmoCyq/e5nILrKub//4JT1kFaAiEAzspmdVtrVDvJaHXTogAHahQNuDwbTiE/iMl/IBeH/1M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584574737431_1584574784389_0.9106272899072718"},"_hasShrinkwrap":false},"0.11.1-next.1584577781703":{"name":"playwright","version":"0.11.1-next.1584577781703","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584577781703"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584577781703","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-+brc0MOda9jKot6cdUQRIFP2Ek2e+TetW5ws2j+Ohd+OcJOZOSTnJp0aaLRRUxZEUhQe/USpGJWDZkFyTX17zQ==","shasum":"24dca2e2a6b28475df7886ea8c3f4ed0ca77fe61","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584577781703.tgz","fileCount":5,"unpackedSize":14117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecr0oCRA9TVsSAnZWagAAd84QAJr8l/KmxHzZt2p1AxQc\n1LWJR6k0cs66s2hwVDW9IFj6NKz/8JuEKUjGexP89UqYglcHG1hxdcPmqJcl\nIiWYiCuKxuQurmeJRzxyg6ucFEe6Fq+jmgJ7VRgafUyuBSftDTcEm/BtRffW\nRGUdVegeGzlJfwcPEHv0PwuhOXVztGfaBV5lOmTQhEg9+++JjJD4at+bgtq2\nx9Aj2akUTBn9KslPVsIxlmfFH8Z06NH95N8jjwWInu1jOn4wZBPEE2K0pmkZ\nzLltdnCbmKNgWm5TJsE2pKjFcgrj+P99d9Mqbxzn8iERUU6NA7V+XbMx6Lmn\nwgYVnwieuAa2KeGLicgWs5gM+T1cwGX0LAf45LcOkCSTfk6ue7joN+3IGG8Y\nDhJ+djDkKxRSitF1Xs6ngbNq/tlPk/VVMT5IOZ2BjxicMOjwiMix7rfXC1wW\n8fApvB/SEFxbfLrjaIM6GbWqVXkX/Sj2u0RPAdkEyo9rkKMSRr2KKyEPyGRt\nsVY9245sbOhZ5oIJTlDmi8A8S7qjU/5hmyauffFSr1uCucAVSt09Ga8yBqc9\nb61LpPVFUH6Ga6uyt0zGznXDJ5XZV+VfcxMxakpK48PkNEBCjY4zlKI+uC7u\n0Yp+JCRcIwaZplTuzvPj1hhgKnkXL+sI9ecdX4FqnVdgto/omjdYm2wDiHyz\n19up\r\n=hnVF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvlMa8FGYkxio99pAXXU8/0/jSU+8AaH/gYAylmBhk2AiEAm/BvpLsiVEbGdhGTQN8VWi6P/T3YSq6t3TI6OzMehyc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584577781703_1584577831757_0.4101686361876644"},"_hasShrinkwrap":false},"0.11.1-next.1584644386005":{"name":"playwright","version":"0.11.1-next.1584644386005","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584644386005"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584644386005","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-nOmIEe+oBKjGmjgZYm+Tj175iOx+7GcN5ztsW6tUqyclLppRn/zfyOqhFO0fg6grvhM1Auw3ge/85E4xuIr0Mg==","shasum":"67ae45bd76f225400987552bea625f55f39ce988","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584644386005.tgz","fileCount":5,"unpackedSize":14965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJec8FgCRA9TVsSAnZWagAAskQQAJWwWOalmH/+NWxiW/VM\n4uStcX2AcoKp6leVIt+RCbsK5HzTohwpC6D+d0qboFJh+AemO4HjPXeOAzCd\nb/PV+FTlFkueq1gH8llxEZuCOZpxjfOCPuquBziRc/ZTcNVxrR7emzVxplQv\nsYo2b4rBd8NOTWaEBSiRuhCLOmIzC0Y6wWyXlTLFxN4JBMY4+/61Mi69UzDG\n597P7DhJTTxMTM6pwqNpW/2lEh8dS+ryqVpxdvGOII2voxkeOV7sbFHOF3WM\nI64DTwh/eKlEDnk0YFTqnWjQZYcxOeUcpPx5+uFc2GLs3i/IqZzqsC5FKmmX\nIwg5xB02koxAU4G4JtSTjws5zJ4NaOJOh7wwnYHLcHGA0/uSKyhmLffP6f3e\nA3/11a/Y/bAbxyNkM0zLOSHVlxNFOrVJxJL3GlWQZKngYWBJnaaDgTAjafpM\ncG9kKQ1kmOQAsmBgNEc1Y3LJ0bjJYSyHXv1qpHkHSodsUD3VuvwXXXrr31Mc\nKkN0IinNC9KuTlg4n+GHwsUxYJwmhQfCjYOp9gmp4btXE0+3zFOG/+5BUrho\nW/1VHxsCR5p63G/xGxOJyc3aZEoYT/b46LqG18y8GEwIskOMlYp2Z/Gh05II\np65aeaAAnSt48CSlOnl5sh5twK2YyKrTK0/SfsbxiJvIqf4JOPSzR3cPiFbd\nuhp7\r\n=3v7u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDL6rBPrDpOKCO9FiRyqBt03DPhYA2lp+Ju3njoBFmmgIgbC1ZAZ+b7vgpsoNbJJWQ+2Q5qiuVy2Z7gxr5HvpA5TE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584644386005_1584644447612_0.7054137309134794"},"_hasShrinkwrap":false},"0.11.1-next.1584649363634":{"name":"playwright","version":"0.11.1-next.1584649363634","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584649363634"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584649363634","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-+Ku+YZ1Iz+53XHurLzkSMG5UNETw2YqoRxLmsu8WujUmZIewCN7OKripOKCwUraScMC/PBe55fxtjz7jYG56HA==","shasum":"e58f943b4b7c8baae4dd3943e3b6fcc8a9073069","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584649363634.tgz","fileCount":5,"unpackedSize":14965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJec9TLCRA9TVsSAnZWagAAlusP/2eTK23oQQYiDTTt7+tN\nRQMsBnfqMiPIs7AxDhX6ThRufkbn4lB+h39f3wum2aKIAcgLE4QLYnAeE9rh\nCGeDx7zH+l4pA8rM1mLk3jcsgro13MhMpMGKf7KJfB7uMzj1Cyr1DRRO6Bdv\nMjP4YOsnhtkZDLMgchvNlxok4iCsvww3fAkShPLHOOhfsq0nzoVx0/onQFCj\n3mnXxNlNeKzhLco/zJBR2NejlpwKAk3m4zd4BlG5Xq1T6PsVYch8YN+3uwmd\npsaSMp4WSKO4dLMIJiJu4n2MREupTLg2mxUN5Sf30xx/pq3KmYjscBlWCvgO\n7IlmOEyWi2ZWfJJ8KvAl/1lxH8y+wGB5wvrgx2d1Jnj8kfiigKQRr0sPyKvc\noNJpO0Yc3tUDSmcmnoxB6rN4ne1eHdLFUXNRv1iSu0aSkoVQqC8hNR3nv0kW\nBYkBxI4KF6gNkxq6Fl16wu9TEvsOGwycjG5i71OK9HGqpWlY3TQYZPWCtyAn\nmcBrIsUmeLt9L+6x06HKzT1WlW4qiEL7aq+/0dMfqORcIGjrJwIcJxsx3Nk7\nK3ML3+CyewMAIl76M6pDB7VPopYYDPPfYc3lp6PODK7qqWd+eR1pWDD2GY1O\n5fYXVsYIkdy2SStu8yjk0O0QGZ1lVLw66Q6UWokrTvvDOSw43LL/gmcy8LnO\n+Utj\r\n=fQTs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNwSqGSWqYUahZaOdQUQFDCDquQZKIidYp3vS+mUZdCQIhAKewNSrpTnPMhVDE53UzNGBeUNv+J2cL5NvZyrXYzWIG"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584649363634_1584649419049_0.8486849692012743"},"_hasShrinkwrap":false},"0.11.1-next.1584655833455":{"name":"playwright","version":"0.11.1-next.1584655833455","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584655833455"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584655833455","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-HnOgLw14z7PRQCC3xmeET3z3c3qf++EMcOKAxpLwFooMY3bIRmiIpBcymvsMmT77H9oaI/mmXb+OIlUUMF+ndw==","shasum":"6473bd9f0472929e5a6a1444a3eee9e303952e63","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584655833455.tgz","fileCount":5,"unpackedSize":14965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJec+4ICRA9TVsSAnZWagAAtgcP/A84r/GRWJdCs6pFsZRq\nCl9ms+GQBGnmFDJNSuIVGmjCwAnkzHuVNWxx2MCe7TZI+M5Cls++/UtNSava\npNpOnfaLN7C1EWfNCjaEoAqHylVftA0GMiECfsjHivDleefWw5ACkM3Xt3oJ\nALQOIC8rKyZ9F00PGczg8iynLJRZg42FAtF27yoPTb9F7V96r06YzX+lNkpa\nWJo/xjP9I/JqaT+0Pq9aQUmo4boR6MkE2Bq/wXd5Y9U2q7vf0gjl6cEi/vVC\nzxxIYkTt66Ld0SSis6LLHDRDZUpsJVxuFDkThV6vJK5X6HGLKqq/0ERYaKqy\nHCPVPyDKUO173Tz3lw8tSPEvjw5ho7I0LDucqkmBcETTpbzdOwA+gc5322ST\n0F75XIIFQYMeiMT7i9ddSXY69gQR9xREZusPbcBHDxlNmJHTtVf2xpF4f/BZ\nGvByo6+Xt1tzOLAuqBWOagZg+ipDrWk9uhwZO+rxor7WFEd8RN9ZwAFLHwEU\nx4jc8EJF2Sy5W93YKaIyUDaaSjiyiaxnBXOpBgEHkO6SY3wlDrodIpNRtqsC\nDAyRyPQSszWSjB5xGljYQ4ntd3Q3DLzByZPIkjU1MkyCCfWq1G4pu0rKnlso\nwxFCWX8SL7z9/viqX3CShAeOwy2h8873iM3pWj0QnCU+RdToh2cc8cwO5MmI\nvVbT\r\n=15a3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCg0LW0HybKMgdZwrXzuHESK3zuD9xxVqJMEceFpG5sHQIhAIis05+wWaQj8/MqubeidKW2YEIzeiOrICLO7iC/w9Hy"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584655833455_1584655879614_0.3621622861709324"},"_hasShrinkwrap":false},"0.11.1-next.1584693909176":{"name":"playwright","version":"0.11.1-next.1584693909176","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584693909176"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584693909176","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-5/dJYa1HCixMyZAZ7P8H0AyopxVkdsdFlwXJhzpZvLFy0PymIxrsbFXP9dQ2x9HybNIiqGojq8iwrcF0gDGvog==","shasum":"ac8cd777ea868fbcf324b85e91e7b00a5b553595","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584693909176.tgz","fileCount":5,"unpackedSize":15823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedILJCRA9TVsSAnZWagAAWPEP/3d97cPEqsuIKbvZxhNr\nprqSAY/NsiywVv6RzmDzyyYj76AOciKksDHwkzo4GPX1zBDpeucyxT+eXeu5\nVO3+epFka9idqeJlNtvCMKwd7oGe/QDJrvHc3sgYxsl46gtnV6mAg3zXe0t2\niyh/srToWvHEI9B+4VrFp9P5G2cWYu3BxDGrhSHT0YQ4qrXiVP5Du3qMTS//\nJU5yg4lZlO54SPaaGP4vvbD3IoCOvL7BUXoOh3VmMAOt6X78qzOCgbUItvEO\n7B2+4T3D62gxWeU3+cy/vb+jnOGW8bEYr3aadMFZJ/v8AJBIYeunT+nfe5Sh\nIJQAUmOl1X4yt+WBzWoKvpK+O3MYziJv5Yp7bw5aDsmQr6IIpTDCAeTVuGip\n1Et7snjECV6E9sIdQ+eFXf55NdmHGhOVboaCvUKF3ufokBNw45RCsj62p/ir\nB8X1BTyscHWRxWbfzOwT44+4pi1RCnNLO/Zy/pn3Ae90JNKbIwasaItaN0Cd\ni6rPyPAkM317MrJXrk0YktPPl1Y5haZzqlDoOEjEuv7iqw2tVhSNlG9DFPyh\nHzuCUK76Ij1ztsh3IVJtdDKQEYi9jA9s3G3VGLJwUGzKy4VJCEb/jcXSAicH\nZKR3PWIQDOgMAJtqlHbFNEpWwqYzq847bQCR+NExTgTaOeycdqEv32Gqq1gN\nsJFn\r\n=KDA4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8MggRXmq9yERdzEe+smUFX5RzIOwOxwJZ2eUEMqA+5QIgZxHdy3Eb5Rw0+ZbGowxAKdw+uPT74//4Qv7PSwrWWv8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584693909176_1584693960650_0.5395411277651212"},"_hasShrinkwrap":false},"0.11.1-next.1584726951996":{"name":"playwright","version":"0.11.1-next.1584726951996","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584726951996"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584726951996","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-V/dUbkeWIOWC8JN9ySwvEhs9UIIi71Rt0P3BowljNBlE9PBINEORZAfn9WBxn5O2ngCSb5lzMDFEFXw/HZOlSg==","shasum":"0e8d3b2cabec359f3934c2139246da3b86eaace0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584726951996.tgz","fileCount":5,"unpackedSize":15823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedQPcCRA9TVsSAnZWagAA1dkP/0QeIvq9jTtVVuAI6gjh\nIDrPMXoHHGRXnWzwDnp5DBxJewSgube/UetsHSIT52xrv5YX0rBxQ7xS+ifu\nfuwFqx6JAIVtZw+cIxRwYy4iCY7xINMrVm8MNU985mccwAahAwb/YUtuBgjo\nPa1jViU1LCiTUCTdpy8AEkd4wrEUJzrnyomEJ3+L0r3KUdnXdQGwIUJAH/EO\nGS4iKGp9+xWme6i1bL3yWgj2Y+Oic92ak73ogT8l7/tZPjVAqY0/TaRQtHlp\nV982BjU38032akz7wq3ImOHS63JI96GGzspyI7n9uC8/MyZZd+O+a5Z2x1kY\nTP9CDeVKeOza6l2kUUO9yCR5QJh3SNaJyFuR19ZUrH6CW+W6uuyK/r6GMy4W\nsaDN8bCOkkMIWi5nKpSRTF3onFZ1oiqIMA2T3paUzRy5XwjlfTI0ImE9p50X\ncNaKLLN+oddMmeBLWyh1qiJ9iWelKMmhYxRkx1eGB2tTN3tIj+0RWY2wCHpz\nItCxi8C4gbVDI1TVX5jLWg/rCG0v5kCADHWGgWjHKF++PeWyBk40XoWLtRGc\nJBjHvF0xOMIR6wwBjCzVIGIQB0wS92g1TqyuK6TPM5eBqS4+gDKylSpVkkaV\ndSDyNc+17K320jKdeDNjP5Fmb3VL8cskpAV4IVFAssMke2gkTvaLHOsMoAIn\n7aj7\r\n=qOTQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSi0280oIwb/fr5hJRNl7xsvBa2VxmPri+DAoXpAtxFAiBbDXZ22F+Nf9xnA9sj/Q/lz1YNG9ShJll9eTjyyjw9bg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584726951996_1584727004483_0.5320780463939223"},"_hasShrinkwrap":false},"0.11.1-next.1584729009885":{"name":"playwright","version":"0.11.1-next.1584729009885","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584729009885"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584729009885","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-3bQ8oiwCeE74TEbL4w5LpqqOpLnYuG/vThL0r6YRGxMUQ/UwbSBkwFbKCoiimzkQilYCgL0DoWKo9/zLVYwZ3A==","shasum":"3855d826bcbe88cb135ef8c2a5d8538dcc2372f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584729009885.tgz","fileCount":5,"unpackedSize":15823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedQvlCRA9TVsSAnZWagAAsH0P/1LPtZtJxu5evVezCu/G\nkJSfAYw1HnnOsQGOYr1mLcv+wD7hDGmYKQBCzATgvNyPndhkC9R8Rhjb1NoW\ncS383MEcMkim2PCPxvBhMF6bLwjcC1CvhbeszADIVd5UFXkxjLzZmYnxdras\nhAnAYPvVJCS4Q+8aqhumQROxZ8jbxIBSq4/hMJ3mp9k7yVbBzkQzbt9sz8gs\nu3yBlq3da8dcuZr0tcIMakkwJimZs4GXV3YJfyE74NY6Lz3upQsgxNkHQYhe\n1dJD9ecUf2SqZ0Gv2jDJzL48u32/bEIZbn8dawEJiLeUI3JfVPnkGksuccY0\ncJJBhd4Cu95sCl5yO2gI9N9hiYoOOSUicmg+xNYznmuNkZ42tAffKtye8OyM\n8pW9rulvAP9Zf6SfCdpsY8fXT4UmnpB/vOth/41+u2H1ygHLvmPEcYEj8YFb\nLlHjSCSxth89Xpy/MujRZqDTx27bs5PwcgVKt/c5aoWqCYVeXQzOCdlirMvh\nXvcqO/rged4tFXSVWBFi3oTCkdV+eST+4puSTJpjTU+RyXOU09Oi1IUSK3tz\n1O+xJRU1p9d9AlKe4Vp5Yj8Vr7FMTG34TT/d7HICsRWYu71jswKp9LGMsVQJ\nKTdXO9sAUR5SgsqYJa5ZmKuiV0VLEuuiE2Uv1s/iz7rUzMYb1GZd+Pr5fq2l\nUsY6\r\n=/Yvq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEco2kZntUGo0bXVSkmbsNco4yg1hSql/x+NUJ373arQIgFoUsdnarliMFXYnYDXrORLy18PzZStZQkohU8JolY18="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584729009885_1584729060539_0.6985701166854472"},"_hasShrinkwrap":false},"0.11.1-next.1584743044056":{"name":"playwright","version":"0.11.1-next.1584743044056","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584743044056"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584743044056","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-wI4uF2MedMu9oeie4Dc0xjUliZ6zVqZeXyzEULdMyY25hvRnKSrZ3wGZpD40H1DHBk7Z9A1KhoVWHJqfCUonDQ==","shasum":"80ff7eca798b7a919566c458666eb288411acf3b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584743044056.tgz","fileCount":5,"unpackedSize":15823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedUK9CRA9TVsSAnZWagAAjJIP/j2t9wM1CGB3VKHfUK4L\ntpFzM4nZPNsY2kr0K0jTZI0LUJuLiUitlwh2KtKgUmX2bvnCWX8iZX3mFtgv\n/Zpe4p6hsUXcTOMjmOqvJX+kzpbkbwtl5S+oWuc6rmIjP3dSRS9dcswxYc3R\nHQ/CFpNIYI5xzd9kJOwGdirrgW+4dBN2W9qb7Qv/n8wDTqOW0rHlQduLu7jI\nM8XienvR3egcGJoPkOaEmE+/X+3g6GVGgQlw+6uOgOzD3g6SK3gGU/inFewO\n9g5Q/VEtXEySkDc6wPBPiN7oHSCkMOT/rNl6hK3FyBypczLVyPyxO3FfSyrW\n4+RhK9WywLt5zU+ffViqSQRRaEfdr/TN/X/3ycJzvJ3RWCiKQnx3xoglORIY\nWpWpY7ZY5Y1u3/gU0MXvQOLuEM7JCjdwVlRGXJU/ndEA7u7Pu1vit9XS8Lhp\ng3NvVctPsNB5vX5N3pnP7S0au0J3FghU+EjooxUq5+Npe8y1zRkR3jQJS3pX\ndzvoXrRGmbjnHE62iWWFUX9yN6Ry2NUPeP88FpwpJ1I3FfxwkPGjYuAY0QkT\nPpIx87fp07atCetP7j0nMMCFv1DhMfTxg1xIS6176RzrSyaLeBHFiJ8xxyMp\n9de5lLgz0nCUgNlvgU67ysGJtOcUaTaGGNxXKhw8e8bGAGR3qXJkenny5o5Z\nDyA6\r\n=2vA+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYVVIsYfExcZhjRoo99Y34YpXMj8DKAHQNVtGJoXkXdAiEAnQCgJBWc8OaoOb0AxWPrbOo6XBHcNwHfM1V5RT/eZPQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584743044056_1584743100619_0.6166409986291392"},"_hasShrinkwrap":false},"0.11.1-next.1584746930259":{"name":"playwright","version":"0.11.1-next.1584746930259","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584746930259"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584746930259","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-waLHcVqFBxb0KcG6w4+QBonZOhcerkki8rRLJE3hC5tEKOhWCWRk2HqawdLv6OwCRHD/11ufB+x8cbS1245AUA==","shasum":"c227eeb6e4d2b80e1c24a6b0cbedb267401d52b6","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584746930259.tgz","fileCount":5,"unpackedSize":15823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedVHkCRA9TVsSAnZWagAA0zAP/1aWO+HeYk6a7soLCvgu\nbcqJcLLT7uX9VnMplzebPBc1ECBIXUjg1Loo7geBOJvSW5j0H+fpKA+aCyDf\ni+UR+KL9eJy8DpOCeoRX47vVaSZFD3omRM3h94tdwhXbhfj2NfDJazVVBSn/\n4diYPTMbXu3Akzz4HljBHEgleeg5u9hZ131GAdqfkTCR9UGU7sRZC4Jmx3+j\nJcC6rrWKIWx8622+nf2uTOa4uY9us5SnD5a6rvRbyLhV/OjBmcWHLF+Ij/EU\npwj5QWWCOL/n8/Vi7B+YSlKlFdXL1j6UrS1zBYOpYSvmar2OiDuktsLO9/oo\niezlPbaMH/tKFjh9fo62WUIkB3olMKQxqa/iMICUse7qFXoSYbSI0beAcbC0\nPcZZeqiX4foc23hbSxABYCNDm2M16o4/b53+lVjsjlDfcTvjkJ5iXPyEoF2C\nCLqSB3e6zJ1OiaH6ysKdhu+rr6K6p7Mazchdu/THIv7kaqepw5oOaPaWHYGr\nLJn091GpGg9Df7L0FULf6/lH7NiqCTCNDfEciqN8QcgxeSLJE5Efnk/S7538\nr21gDv7+18S7h+5UCUzq8P9PEJLCTNKDiWf7Sk57KtKFh2JpPxhCEtFKunyn\nNKbirgNDfBWc3UqL6LanClbmIZpzlBf6HGF31wl330dhmGlhnmpgB9xKpIf/\ncZ/k\r\n=7YvD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIxBXVJNq9GBqSEP9aPkj2Vi0uv8rrd90NDYyk0kZvZAIhAJzwizjIRWyobeQR0XGE5RULe7x4YqZIwfRIxIZp5Rod"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584746930259_1584746979850_0.2655095934177165"},"_hasShrinkwrap":false},"0.11.1-next.1584748635698":{"name":"playwright","version":"0.11.1-next.1584748635698","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584748635698"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584748635698","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-yGO4S0cESn2mnrqV7cwiV6zSs+eD3nk622BMGDCmTweTi8Fv5c2+WfS7y78xNrHkySfd3tAIz6izEPtps5/ccA==","shasum":"97e5e5f1a8a8afe476205f21fb034af539b8870c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584748635698.tgz","fileCount":5,"unpackedSize":15823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedVibCRA9TVsSAnZWagAAkX0QAIhRp0xi8H/g+vB3obY9\nlVcQhEzwUU56gxKo4/3bszxxScjVBzgw2TbHYydtxOklgLgmRAAkih1cyp+s\nATe05pqRw2xI/jyMy9la6fd/idMpc6ifeLfxZw5gbkFOvNT7Q6dT6T3XAWLn\nJcV5yZmN0dae8pFYHdMDMB8ElzOU99wRoE6KeFbQHCWNwBeDolHUhrzo5hRp\n6zBxMlWN4G9yytXci3vUpFMCtB/h6r29QVxQZjzZyJpeAnYNp5zxjdsnQ1OV\n+ZFlell+NJgMbSDgAbcxcW/aRBm6zGsRdRyCPGdJUngtvG5OaG9CjFdIbcGR\nSPohzTSqVrk6uSNjJHTWIN+0YP0Ug6ZfI3d2/6ebB6NIiH2LHICfw9FYjxwM\nouOG0NsncS4Lj5iUNr1ZwkAbeAkplYNdWZJ55taKcFmyVNHgHMWtga8ktz8C\nfp2Qe0FfVbZMdm0/Sok77SQ6oK3XEpVKACuC2CPv8TIDRmIPVHRsVzaIKLLg\nJrEVpqTEfqXJ+okva26tx2A56APq+IXPqsjI5UNWxDEqX/o0/PS0viUO1P4C\nTfsSVf2ozoXFa/xe5rVvYzfN9+GliAXMxJFyLvQJ4qNYUYGNjI/LZz2iv1/Z\nFTWJT3GX6NqY0LMBVo63HO3WWvKTPJhQ5AY/CS8yMNbfJ5Sli+bg3a7VJo8G\nvgI3\r\n=kxSo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCefqywGISzcytseRfgPYZ4Qy82MtIu04TPfTlB4ixYpgIhAMb7CpKZ4ksZa4ln0T7sZ8teiAoafH1aLtnch0XFORgJ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584748635698_1584748698735_0.21837098129374977"},"_hasShrinkwrap":false},"0.11.1-next.1584749942244":{"name":"playwright","version":"0.11.1-next.1584749942244","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584749942244"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584749942244","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-KUrZ5q6Ompdd96Ywj+ccOP/Nj2rI+NQ8dNv05cn6oh/YGfICxAV8g+JBSjECADWlDumJFDX+oEqvZP7rH8VWLg==","shasum":"cc894e585e8df373e58f41c6c48757c5d829c97f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584749942244.tgz","fileCount":5,"unpackedSize":15823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedV26CRA9TVsSAnZWagAAvAsP/1CTWBvqDyTHrB7GhrLB\nuEtyGZqeHlGbfyLbnN5VDilyh63NRI06sz1kFm/hAOIphf33FvU75pBm557D\n4EuDCQmnWfoQkrGD0aAuSoelplO9oQnXaQx6OW48SY7FioGWkK/XMDNrvlh1\nFeoye77aLK+8BYMQhmO7IdlZNfepuxrZyIwivTRCy2UXHpMFoClnfo86pUFS\nlNItdoDs2RsEtrgGFXDqKl8+GOq4zZhWxpcZ5dEx10mieJx47blwDDKL+/Ye\n2NWr1qOI7S/qnCCCL2usN5IBlV88bFFzXSkjKMNIrzGy+EoXg0YxJDN9p6y/\n5czIqcQIEgUVYiaYG8GggmzaPyA2Xq3kRVTxZqcCCMAsXrqF+06CaEQdOZdZ\nfxKoZbofc014Pf6CKSuVTMxszf6eo3G0/elr+bVN/CQGYZIW59EgH2yHEGYn\nlBN+/gQjvkJj94COR9KQ45kMZdn7wlGt6z0b3fI4YHGu01L2KrfTlisRVJBw\nDka+VZVYEsFd5rOCTkESwRvPLdKpDL+w9ZUHILEZaowcSQU5s7OmEmX8AiaV\nyl0aN8tXer88ogBTxMMKEnKv0PVGQCSuarVAjw2ntC4PiuZe0ahn3aZI2xQJ\nwd7bdvtH/44WAF9BhVvIS7uqQDYlmTaMoC4gjePnKAvdU14fskaGex66Zpph\nEEAD\r\n=ZMW9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRK/jtt/4V7PDsqAa8DliWKpyVJdQj0yusF3EFvx30KQIgT30KFDZ1PTW7uuFLAapBWShcKt6O1w0+49cNDn1Ykfs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584749942244_1584750008556_0.021213710817957088"},"_hasShrinkwrap":false},"0.11.1-next.1584759824996":{"name":"playwright","version":"0.11.1-next.1584759824996","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584759824996"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584759824996","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-cMGCj/+kdk2chSX3R3PR7ZEczLpQS0MNh+SSraiu7Z3CKIgprFuQ8bSyh/pUxcDUyWaVvhI3BxEnfCmJb38scg==","shasum":"62b02032d9f0124a0b6465e7d8853cef48dff86a","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584759824996.tgz","fileCount":5,"unpackedSize":15823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedYRCCRA9TVsSAnZWagAA3X8P/j4hxU8TK8/usEKK3kqo\nPjuI/lL5kIMPQ30OHdGgCAW1Ds54U/NJqbZR7UwGDhocZfx7gHamuaJRcadm\nk0gK2R7R3xBw+T9w/4ladeEnCGYwHpQFOt8dwTYKHIDIf/WNF+Jj5A+ytTi4\nsWQ5lEdTpKSK/MEf/SUohZ7FLOseOKmkwl78wra/fR73/rRh4+93XrjGnHgQ\nRBL8nFBvstI8tlKBSNxVujH/Vu+hDGkHLjTObAl0/1i8CAjKFJKAuL9UGUsw\nhtwMH0LANs1Y7nDCkXrKvApAs+G2WH8K1xnajPBOBrx7wjPMKNJJPBe4dymt\nvlTgXj4fxdyJLaB0sNs5M1TzUsIRrWEVnVh3rCjDI8h0f2esvO4wA5/Pl9Wu\nM7fo5j1RwXf3Sk/vZQKEaDkW8k+n0IYt5RONtOD0tDNA0xyrUV7cOPhm6VJN\nS62ZHQ2V3SP8JCiIX3cqVmhs4DP50+Mb04Es1N6QoKQCaiZOmTtdPxp5fWUC\nNtZkPFPFU5C3WN+HFx69L7uLhYyJNyj61awrEJATgzV9x5PfJKZdBwHJWKbK\nQnWF64lYTPjbve0rSHdshDjP7qz9ycVBftG7ycGqI/1cRLflBHjlJl/CQf39\nd6+JWgc+9R8Y0iIzezvgk6Th/KPMkwd/o8Tj0fY9q0vK+z3nHFKVFXquYlky\n5Uqd\r\n=iOxh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtumerUUVLu9Jz6AcyZ68whKV7mU8dqQvn83AINQEMHAIhANvByR1kTDHMXSdGGDY58Pwb5fV7qbqIYIaP78o64eFP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584759824996_1584759873761_0.44443488705672696"},"_hasShrinkwrap":false},"0.11.1-next.1584765614520":{"name":"playwright","version":"0.11.1-next.1584765614520","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584765614520"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584765614520","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-A+RDlimhgGIyKiZEPG0lzF1k//p98t1vim3b1nR8FXoP4h3Z/cWxZmhEAEpSkfgP7T4URcOtZ7QFkHJbAmQolA==","shasum":"7b422a281e4f784154d9d5fa0849741735e53f00","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584765614520.tgz","fileCount":5,"unpackedSize":15823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedZriCRA9TVsSAnZWagAArzQP/AwUL+Ytw/IU8deT9R5o\nCSZQh0qQ7s8TUkubH4DoVkpUChk/GufIQr+XaSzri1HozuOFyBVJoRNtAEQR\nYR3RzlqhRT1ObQW20ih6NdHlJB/Ue5kLbZiDL73CKjzC8MU1jDHoOeHLrD3G\nddcdJ6XSVbit7lQHUOY9Cp9HX2w4zEvFb934cxXTx3IzvXP1DCgrWlIk9rw/\nv65srTaHk5Pw4o2M9/3XZ1GNZ6rAZGhDiDH0o9HwiMeyFUxT/P0Hf2l5DF4u\nGibZWQocKq1CXIsoSR+N3P2G6ql/UyHCzK0Nb+8WLxTUZ9iot7VyjfnNgviF\nwJlhifgJM/1WDjRK15r51XyRS5q8wG8KG2s2hDo7c9AkZKuvfCkDxfGibKUF\n/Az7mFNVuOR6Lr1Y4tUU7Vm2uRuxFvYmMSkAm0przSw9SiowbTCmulqdtB08\ntivT7gwKXQnolaCgyhR5HsYrJLpyEdxXFoaKyUknE/N6u3PJzNVudZVgyS8Z\nGFKufZ3Mkomjd3FTKf1+1eoAfzfz9C80SZwRBjO/OlvGwGC7kBy+mE8pgngk\nDryIFDLgo1oAp9r88MTvLKC9U5QC5jGOAF573qXSmE/QulwczVmIgjutnkC2\nZLNxa1tVUi6PlY+f2EEYs1eSg5HXJD3mxktyLucvTZWox8q8L7Y5RURM1zk+\n2eQZ\r\n=GWK8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXkwV9ylIhKesgHuGVtZmgzcRY4V8lfOoT8RME85KnAQIhAJUOC6Xss+g6Q2f/yw6cgHL9xh9ltaki+qm7aV4NlDpG"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584765614520_1584765665659_0.8816967620652305"},"_hasShrinkwrap":false},"0.11.1-next.1584839583683":{"name":"playwright","version":"0.11.1-next.1584839583683","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584839583683"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584839583683","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-LRnxwb20jJ2cUN0BppOn3nKm3dRguRRXLXaTQckSpOuoDrXSauj/ZOUTK9jFkMiEE9gMCQroIjnFl8uJtohVtg==","shasum":"400d13fe6ca6e3ae3691fcb2accaec288c32daa7","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584839583683.tgz","fileCount":5,"unpackedSize":15879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedrvSCRA9TVsSAnZWagAACA4P/0t4aY57ezk0cSiI+dt1\nEq40QsrgDPTJ85i5jwWZZYqOx/11hHuzzvf/VtYm2Y49iFnAakrp2Y8S9gBW\nXHooP0AZ7A22hDxk8fjwOHUyJm68fNhAYYm/rzCWaIk/whqq0RgeVQ7+nmjg\nK8oE8VH5aYOt1qQMVfsi1R27WvVHMDaMa9CvRxAMJhdKOVZHnjYf0pvWaMK7\njwMObb9vr4V482VnvXI57nI/+KW0GarWi7VrupOPzVpiaxiEmqX+XkaCKALo\n/DpOrIqaBmgPs/+EPC0OCXPILPmrJ1RFCcY6cYBZ2tX9PX/NzswnM0Ng0ZAl\nhL1Pbik4JvMJOGd2Davaii6WchF0V7zMmXS3uq/+iePJNpFN438eisftvaUo\n91DnodmeJvQk4jR+amuaJ92uk7NK6Lki1+399hN4hzZKFxLibloU/FQXWu/6\ny0rHs0r7AY7eeO0LoW80Yczoez7/3NItOnAwOZI5mV5Ego6UfdM1YkkerkHf\nMNOkpZT4H3AIk3lj9RHxK4J1F5CTwCpW0B8kO0KEPJwHnDyglnyyxQ3+M9js\nLe9BCRcS1i+pjQXOKkSr4lgz4wUorQWMtYyRq7JP2U3BaymOnR0/Rk6EDR0h\ncxL5jouLeYxgBYrroTN9hWH/qEveKT3ph4ali9xTXmfg8WJQq1UAzyClgQAj\nDSy3\r\n=rcJp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQfU+WA9BgeRCdQGLY/WNp/Rp32KLr5WFHC8bhs+K5ggIgfgK0e77dfglSSnSA7tXUzf2NN3j6yGBMBJMTUPGXQAE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584839583683_1584839633888_0.15690662733408"},"_hasShrinkwrap":false},"0.11.1-next.1584846744795":{"name":"playwright","version":"0.11.1-next.1584846744795","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584846744795"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584846744795","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-E7nPmBy8+mMN/zZJcxTnzu5tNCU355qVIXDTTcDRw3hPBqzPWxpN4rwFQ5SKZqlEwiEPM/MRRLYfqBvpUbnZfw==","shasum":"ff896984e65f1d03769a40a68e74d63137dfab04","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584846744795.tgz","fileCount":5,"unpackedSize":15879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedtfNCRA9TVsSAnZWagAACGIP/i3DpzYNZ4C3aSEWYX5K\nCHSwFkjDTNwDRXVLRlotfXsEvZ8tiQltTvRUo+5ej+egWEAVPWVc6wFWVZAo\nKUK5scpdYZSuU4oLIJQ/m0GV0d9l+xbAW11DrNS+mfbdIkRbFT2H+NaUMLeb\nWm89d2rxbM9McmhL5G7yR6BmKJuTy+ofCSRX6L0WxStUtoJlYlP/wXmhMyPk\nG9zDbtavqUtAUdmVvup6Fxsi6Uz/EX8SL4EtiDHcDUgbN7sSyMYnzUIi0Unm\nxfUC0PzbOab06bngkVW6S0UheXGE58yM8dpN7G7n7IZSoxF2ovI0w4gMKKcn\nlnG1W763fITtDKcJ1/u6Oqa6QxIyV7CzNbRBOy9ZuSvkw9jmtG9J65c1aQpY\nENrAaNyEUrm18xJMLzAR6+UTd0vPeUHuZMW8sZhPPTuMAXK5Ai4y7NVeSmnd\nxBhd4s3Wy5QSypK492qxGhzJO/uPp6utdC/caJcJwmEXTiesPyA0TFBArk5C\np0D9sY3w5fl1GgjEjtHiQYIHw6XxHmHr9xAKkAkQMAnYVx8BPOalPoujVsyz\ntfzSPMEvByusc2JVbtuggtnfNdzGlhkh4spNq2BLPHr/L0q0uZYv62r06nxg\nk9kGdphfvDXx3lduZJTtPZjQZfQfSeo+avtCeERb2Hpf6BbalHbejUAEjQCE\nUW82\r\n=Fh5b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFxg5Fl0O8X/X8eBE4Pa/AWNzdhz/9RrGkpZ2zA/KgaAiEAinO2ZgEappePMk9LTtKNbrtK8gMJGWJMJ+8tgY5u0oU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584846744795_1584846796802_0.1878857278591104"},"_hasShrinkwrap":false},"0.11.1-next.1584852659308":{"name":"playwright","version":"0.11.1-next.1584852659308","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584852659308"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584852659308","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-j5SLFQGoek+1xV1DOh+yfrPBU0Wfp6963n0PmsQczHWwVNZBygsK+tdHjH0e49Eb41qhOiqSjmoDN8rK5ka98w==","shasum":"8b14b44fe1e5682e3b4bb3601b6c36cfbba2e5bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584852659308.tgz","fileCount":5,"unpackedSize":15879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedu7qCRA9TVsSAnZWagAAYZQP/1Lks7C5hmNowTlLaPve\nQn7nYpWB882kl/MuGSyx0mCg7nNFtLYCQEN2D6M21tjRVd2JBmYUfBI7PEUR\nzaJphcZXQLtDM1XSuswvqx/m+dbr6du25KBentTKyOAeJn6v6O1wXqCswk8P\nSHZU4/F/H4ldoU5WMl+Srgriy6+ZxJn09SdqZtNJukWGiu0a5So6/hQ5EXDU\nPXxcbaj0/ShcFOQlb/DJijo3kZuM2a1rX4Pby/UjgA0r75kltdq7MRPPvZO9\nb+i7EL9foPprW/npAJHrHhwLjZpwLHTCBGw8cFvEapkY3N70uSEXMKVzfuH2\n64T3MIirhkoDnSC4uRjXKaDRgeG0r5a0P4spnf9JeydjpcGPLcAGB126n523\nWa4Pv3Tj+IZHlIMHet9cY47aokQrnV5pgPPD3jq7CbGSB5LdFRhRTf7LSWtZ\nUpgmTQVKo8glbRbrioiLwMWauO6DPyqhPRedtKMuDSc00s6FGRUHsc780XGc\nQ3xkzKdQpyBkTQflfKxA7TmrEIXUp5/eBBhS00QrT7gkXMO6YiPGH5yeEhNp\ni5oy0jcH4lWWfZ5Ng1NNmRlAj9AWZnsJjGAOE2b+lZdc2s6kZs4k1NYw3XaG\najFxRncogt0ETTkRRU5j+rXUkZU1js5mlIJn3qUG7IfLZGNN7QGXy8JYa9Vi\ntEWN\r\n=KGHV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFiqMxqkUNdvabfuKD5iKvoDiGlwVEzkicdqSYM++TN3AiB7e8ZSt8JHH3hjSj03TD/38TEzdbusy4TC6F12ENMPVQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584852659308_1584852713605_0.8185012822374453"},"_hasShrinkwrap":false},"0.11.1-next.1584853682027":{"name":"playwright","version":"0.11.1-next.1584853682027","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584853682027"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584853682027","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-UK1NBXZB4VhunQsYDcqbbfyRTe+mF/pFy59fWQckvc9vELi9iAQmHNN4cQtZOZLKTAFsNYoghBC+Fkx+ZvTHkg==","shasum":"11f6035e2f24affcf8b2ad97a8446f6984c2e607","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584853682027.tgz","fileCount":5,"unpackedSize":15879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedvLjCRA9TVsSAnZWagAASNcP/j8OynQGOUc32yS7I7cf\nBfKvS8ATIE3F3Op20EuAVAd4Btk9dlwNfb7CuRA4hc2T8OViC/8j0c5IXeMw\n+UHJUBKchWVxLJ3L91yKEzeu4Cv9+Rfn5YSCLmYSSC3RoaE/UEJM04logoZz\n8gKBYV21zF9XCGViNbMY8ZQ2bM7rQY+VcOWKsuEH/okzowXXPkuHMUDQPetf\ncICQsJyz2ctJIgYK42/WJMvqCL5sL3ljndtweUUrSIXOG6BjoF5HC5P2eWV4\nInoJ9IfGIaRF35lWoratCz+2tOblo4BJchxn89TfV8+3RqXpCKiy0pxM7DGF\nQUguthVcKb6eRG4tQcxTGbQ+HhQqtd43iLUcU20RUx4Hyeq/VWI+mJiuguwY\nyQd8/h0iM68Fv3TZ+JGwXS6gac6lOdzdQr5XbdajaHZiAwgMFTvDucmPRQFI\nap/ghyO/Z4lhEGsSN5Z83WvcbZDRy17H4/hx/2CBidjeTuvM0JPc7j+5s8Zo\nnDmWvz4CVEsbLESuvPBUU+wltWTinq6K3ZGvyZSNjPUTCdp8iUohIB54autC\nBVZL94RQcUEXZbxpYuYX2ZaqGTbN6z2SKMk+tRFWvUJsf8wv7/H185G7jIS/\n0+/yq0e/rocU0DKC+JdUBT4frJFMPKqtA9yc6OXNv9MBwgtFrgQr4Y+dil0e\nER1x\r\n=uL+E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRtr7GdnrgpgL3kR0yUNlzvU3QCgcxYeCToiYPmKLhVAIgBcI7FfPqlIwJV8YRPbMj9AR1T1Y1j1e58usgQ2a+/WA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584853682027_1584853731171_0.5064063069857612"},"_hasShrinkwrap":false},"0.11.1-next.1584893448585":{"name":"playwright","version":"0.11.1-next.1584893448585","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584893448585"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584893448585","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-fgdi1hPlS1Kl6Y+ZVJTLttfZwM2Iy2p3cxhB4Ly6QVTBuonrwL52A6ia67Uy2/lxLwHeDYqGtuQf27Y5488HMA==","shasum":"53d94d9b9204c5bda528e400967bec4610b7c73b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584893448585.tgz","fileCount":5,"unpackedSize":15879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJed445CRA9TVsSAnZWagAAO4MP/1nPdPntTCwhQ2bjQDug\nLq5V1loOIVWPkItQVbTnaXeUB6xeHbT669niy1wx9+Z7UMrm8cCAtND02qcu\nhAPlGqAMcQCE3XkAqbf9c4kv4B4Vku4+4mLkkMzuofrO+ZdlS5xEw3tCqd16\nI8kOCyxdv5E30XYQIMwsVmXuOH51ypB4BR7svy0JJ8bbmT0/Z23anthvy9Zu\nyhuRDpNpouNktM8Zb32SuDYVZyHSpUGQTh2BlmPyGPRFLLe7/OrUeqzYYR1k\nhroxR7iD+KacmywyUfwrYW7f9vFh6nnATsyJTyuXuY8K9bONvCZ3I+mHAN14\ngUCQh0unUYwq7jJlXzJVIdiWbf0JbA1qJyayd+d2e97k0FpiT9UddaXm3AOZ\nwmfCfi2qMY7gOOod+W0X1O0bIlEmWYyT5xjSpw3an9cSyiZzuK1lRgSnGFjL\n0ofjCPfMQpTXS4XkMZf0SwwaibzwEXmP1aJUFvABiXksc6T7ZbwB4hqTfo/q\nnC4MzE0oX4MqydJ7um6LhZqyxUBKBY4/d2mthPTxMMBMUvShd7UdUiJcVJc0\n9S0a6phCLXBMw4WJz8veOgyk69jif5miT7rdhrl7AKBCGWmsKR1yNMSLKn7x\nP5dWQ+ex6dwDvuKulTBoadi3Iee6nKNR7yrcZGqwqvUIkpMn6pTvYfxc8r8B\nKw3d\r\n=AVjN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoPDcTOuEjPpSwbivUMi0U+w+tL6OvQfSQz1p4pr8sAAiAWIA85r1kgq+9AB5AEp9RkZ8tPSS59fRw5fsx2ptoX8w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584893448585_1584893496650_0.6205138979313876"},"_hasShrinkwrap":false},"0.11.1-next.1584911205457":{"name":"playwright","version":"0.11.1-next.1584911205457","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584911205457"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584911205457","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-F5baZEFmYE7e2d5FLSaKsmYo5iYeMycUkFXT2liVdkYlprqqW5lXcuPORgSMarM3gMTkNMO09wxQai5aAZXaHA==","shasum":"a29270157d0c66e475b22dbc9b0045cd79d5ad40","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584911205457.tgz","fileCount":5,"unpackedSize":15879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJed9OZCRA9TVsSAnZWagAAQugP/2h5erb/wSWbhO+yE+LZ\nq0+DYFuYdecMnwMj7xEQTZnDDXE4VOG3hgl/8HzpyJLTu/M0askRYaACbxFY\nUagstrZXFZPWwU6QTsweZ3oxyw/N0EVcRhqCTyE41rsB2lnZaP+OBT69QCEq\nWX8MSk52dAk2yGByMUvflk7IuAy5SpRXl/vOhPUsNp7wKMUIJy4F2p8OkvY1\nBuoYEN1+5jr29zU8Dbu7Hui0pgawjBbP4fkYfmRIy4sJhMJdQ6E6Fz86brwV\nNwqskp85geVgHyjrpRp13PcxBpmCCAXPZPixxCwTbf3w9rAGAhMP6xARl/SC\nLcHitXsL9R4rrF+3Y8z6b13mbByAoILw+plDiezHv/IQvXMobABfj3dVZhaE\n2qLqKR85WeaKPNCrU83nM/i8X603yyuy/O7oV8MAVko0DfSQujNb0/jdDbZA\nvBZYDrlGQ/OXPm+c5Tu8icKkYkaQ5hb6bV8UAOLW83y2Msf81doCtOrBMDIF\nsjYdTrZ5BseGYVms/Uxn7HJZrAfUVWf1LOVt35IJUnVGYMhDtn6sOycrjo14\nWgp4FOys3if5Xf/IIvKZ5+cHHH9Zk8DsjYUOhDpkoEMpBdPARFyB3nWZizQY\ngOCp9qKn5FRrLWMp2XoJwdYthXx2G9GOcbfa3I1toCMZHNgU8XK01F5A9c+b\njfed\r\n=hVf1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9rWxSqS41Ex4/TetDzB267tNMOdPt32sA/sRWLebQmAiEAngddzVtnRNw+r8VujW/Q80qn2AIaaLe0VfSHABNSyp8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584911205457_1584911257483_0.2809171147216931"},"_hasShrinkwrap":false},"0.11.1-next.1584917324589":{"name":"playwright","version":"0.11.1-next.1584917324589","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584917324589"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584917324589","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-j2VAC+fmGQ5pxg8hrPyNHFQyE8KipT8rQkxMugHFrKDchd+OHlBIXw3sCsOWW639DiCCs/MbYOMTUHaheEne3A==","shasum":"06edc892a0ac36d8d2f5a014e53bd081f5390cc6","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584917324589.tgz","fileCount":5,"unpackedSize":15879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJed+t+CRA9TVsSAnZWagAAnTsP/jPnVYQ101P3oKOgrquw\nALNDjjel5y9Iy60J5TkC5y0/m44GdjLWA1ohFfh9yF/i5U0TkgoW3oIyDSeh\nFC6v3pbfoMKkWLnpE85k99BmooPc6sAOyOnvV5N+XHirFIWlnp+kAEvBrp+H\n8bSbMkHLlqwM/BlfXY4mw+tMxewcX2mLqZ2pQT7dj6DhRPKVE/q0XlY7tyqQ\nYZ71oyj17h+zwAvF9m5UrHHUhoUkln8lAdCLW0Px2ed0ZENORcTTHph/XapV\n4TjqLcj8EQiK0AbBzOtV44Z/JbGs5j+D2VXjIUmtcr4kxsbulLf0ovJrx+4Y\nP+6e785PpQ9LB02IeXwXUB5wZLva68udXzfjJYw5RiB/3Sx+J5vF0uyniH6d\ng2VoV0vWTetntBvtRkBN7Xl9I0a4o3MMy9FK9OpMKW9lalbKDUeV3axsCgFU\na67bs++lj1CQcjH4aL4/TUu2wrEYBjvPO2A6KbMp4cr4sG6Jipb3rVdZN+kE\nMrnT4lgPL45ExxsShtg15Sb3yI57PL3DCBcW5iaRBRtQXxolFHF00T9mljDc\nXETgtiBKqSPBDsVay9VdbARGrrx5PJ8GpZJw2OgRzpdPhmS9pFyEAQA2lLJe\nUMeEBpIH8yvD7PMb5X486OnV2VaVKwF6amAfrsmxf5AaHto5fSvBFZrZ5Liv\n0NR5\r\n=1Naa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClwpt1mcs85wA5amnE/kp433HfdrwUBVqOhwo5Gx9nVAiEAol1O98Q6PSq5Izqv+SV1WHHDbkhlViqgh46jUBDTd5A="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584917324589_1584917374406_0.17881896981286105"},"_hasShrinkwrap":false},"0.11.1-next.1584943264894":{"name":"playwright","version":"0.11.1-next.1584943264894","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584943264894"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584943264894","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-vjEf7x6MFmgzaAWIULaJLcN9GNunFe9ZmZUqOOBPWrQ45brLXHmktzbVB2E+tbASIayleXnEbDXMQ0E11HxMxw==","shasum":"ba9caf83167fdd099d844095fa2c949e4f06a06b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584943264894.tgz","fileCount":5,"unpackedSize":15879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeeFDYCRA9TVsSAnZWagAAG60P/AspuwdE7GpXoexAXLmL\nVWIY5hSudjyVcxDK/zuJJp/kLABULV98SpGGFLTCDj5Ur3JNVBEX9lvo9Mim\nTEwP+zM15sYumYI1h2hD5xPY+3CybRXlyB3IcIPCu1QOv1R24jTxyyhrANCd\njsDCzvMqdbZsSUkOJO8zBSY8uMwQTx9WnvdMHajcE7G5NR4Bi94AEJeYVoXp\now9bvvx8yn0fxklOVxqTemmZR5ZBKRU0MQNN8+GRxe42brynaIyGlNPPJU6r\nxBEGh4UGgG4anREOeb3xzhhGypmjtal9G0oIE//4wOIM4+g0xC6RTqj9wf0/\ngnIHkJsINMzbHchzTzHcqERNrz/JcwzVNXbyaeAVmQa3r39zi2AVzVTfbBwq\nhEDZHaR3xYUorcAMlHxlabI2VnUr3yBlHfwZ+Tm3laXBZ7SQpMDxKnKMMZH6\n8tWhUFPgzwZFqjlfI3QH3NA+SHMMVrAgbxd5/4WFx7c0eU4rXq5odU+2fVRp\nLabKP0pNy+YIhE19JCrgqXF0lxMcGuVmYQGhXG8oYnaB7isfMX3f82sahISM\ninUVT3/I88jPMpGYZUw8Dy7I61vcBlTmEEBlOtimIN7PJsPRD9oG3paUGHIm\nh9OZGlGAZMuLh6pZwjqyGA0jjxZVeFqa3L8bb09M9mynAKdkdYqRD2ufb7mz\nV0B0\r\n=Euf4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDETPCFs99QF579ATg7utro30DZ0LF1zcngCI8SFW0d+QIgRwDlvVpf9eqVtws8lOLLUu/4cMl4MjzqynUcVhlx29g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584943264894_1584943320497_0.032922878249440624"},"_hasShrinkwrap":false},"0.11.1-next.1584947279674":{"name":"playwright","version":"0.11.1-next.1584947279674","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584947279674"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Installation\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\n### Usage\r\n\r\nPlaywright can be used to create a browser instance, open pages, and then manipulate them. See [API docs](https://github.com/microsoft/playwright/blob/master/docs/api.md) for a comprehensive list.\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584947279674","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-/o79LhnakFGEZ1LoETUXVmvnssjpMcO3782G2ofZzAyI94ZUPM6MINqLL0R8Wa9uStje/7lEJQH59S4ONWqeRw==","shasum":"c4b843bed14e41f2f8c6c3b47c0617a03ea4a8e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584947279674.tgz","fileCount":5,"unpackedSize":15879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeeGCBCRA9TVsSAnZWagAAqggQAJ6DIHw8YdocG/eQbdMX\nCorzALRY8HvNVZjq3wqdfX5sejRX25Z1SIAwUE0k1Q/utIkgG0P4NOBFGZlF\nPI+fdAAgkrEbf5Kib+Kf62YuP+/gl14miZTTRm0ROtP4kABaZ2FCfs6IdIFD\ns50ymEjlsCySGg/SYdQ0qXlgrbyMV25p6PYKEDx63T/RguRtvLfDD3QCTpmp\niQ8OcW/TT2+io30boq1HKhVLrFULmjUMLMVE/1bdRQYyofzB2h9rSlDEyAsm\n31RiQqBEXRBmHb0URbYggk6Y7j0dWtPN+0JUbQ38sc8FjGdkkYmwUAzhVqG/\ngxijzjwcr72VEishnOb3gpDVPkWZQqb7Bw4wYnoZFMlnp9hkWUHMUNXBYbkJ\nwbyu2CKBYmV6ni2elP2UmFglqKsNEMd4YkFZ6ZpH69/CXcRm6DJ1dPIKipb9\nX/Na6FEEuZTSrXg8C5w1szzGWFsDogn6TQaG37IJAdzAR4XkQdHt0FcqG6Xe\npFGF5gPpYVbmF3qVBKNM+e+gwwXL9sfVum5rA/uFSlAhhtwiCxr3VePJTud1\nv2D+y9KaK8LDLnq4nM6bLHqnO40DXUlKbuFr7PNqo/2+K8POUKtf7Qee0GI8\nN8YTVnltaeWTPPThdxXQ9ICYA9RbGPLgiRX9JUVIFcxL82rkFRzECTGpmhtg\nD5v4\r\n=+dTG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQD8kps92mhVDiYa3BgjxaI7KEYW5n9qjNHOPhQeDwnv4QIfURV0FwBLorGkIF+dd61GS9svqhoqOihFEfUgFndf9g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584947279674_1584947329252_0.16971148856441065"},"_hasShrinkwrap":false},"0.11.1-next.1584986171530":{"name":"playwright","version":"0.11.1-next.1584986171530","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584986171530"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584986171530","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-e5YNpfJMX8HML9eMltUtlqkRlQBSWfwr4Hc2IvAE64j2SZf1sITdP7cd6UwPWgartyf9IZ58YI7S8N2tCSNfqQ==","shasum":"af2ca98738389e72f38d2bf33bbc8694ce03c3b1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584986171530.tgz","fileCount":5,"unpackedSize":15864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeePhvCRA9TVsSAnZWagAA988QAKLKRKMShDa/4lpwwcCF\nnbqENFWDZ5EpMP7BiS6t7zXEH6WL5N72ZyirDonPdsqibjZZSXbh0f9ZN+qF\nedLqSSlVVIyPm7vynculKN3kqJFsIMFgYxMbZ5yloivH+pjqOz4EeNI0UEgW\n76/afuBZPH/WxuyNe2hHXuiaUEIb5ePsh+AAwITmy+fqFeiDTIzkA8Uq7Nut\n9nC/LqV6UW3o2pjPfzz/T2lwdutwjIgXiIyXadiBLC2yTELXOd/A3i2PHGL0\n/UCFa7C/alsAkmVzL//NOWgeJLjekbYDMFZsG1EQS2XEp9pYxGb+i7KawlwB\nYB93zm7zlkzCm9/HC4iaN8zjrwJUqqhT4NtrMZllBp2zvZabrpWxw70tlmF0\n6xbehfozlKyN0w2Z3CCr5gIvEQ3xCkJtt2O4h63mlzo+SudoxyNhmh4xjh1O\naxIjmA9rGA8B/XCMHz/duihglstPChA1DFAuXmvy3vYIHRZhx1R69Iwo1eNr\n28mFzcXU0hA53G+y3MhYkAg8UPRiVP3Re0S+9DMOeKLlzFH52Fl/FZeZamYC\nftTyCfBdSutI8PLEaqhTBINEz0XS4lRzEictT9NVA/a2K3f+/adCWz1KdyOW\nJjnHWTHpsVdu8zO9XZqJ5aFyxnmCkWesf9b9csf+xSrpnj57as90sY5+s3/O\neKt3\r\n=DGPC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCE52VHFFiituAiPWlXbsfv5HIbDn+fbwumkcnX2KzvwIhALBdp/Y60A3PUKqFRJIaY+oVFTpXdr2ak8McL2UdAW6X"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584986171530_1584986223324_0.9365883839471287"},"_hasShrinkwrap":false},"0.11.1-next.1584993937423":{"name":"playwright","version":"0.11.1-next.1584993937423","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584993937423"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584993937423","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-fXEMDRovyFsjDFLdLxUOqMOUqAerhadbxC1b5W4mul/Cq5kKKu9Mbs6A7IPztRYM3IZ8pKz1zLE4lTjRokWZ9g==","shasum":"446072c3181693d76be35854036913469fff842b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584993937423.tgz","fileCount":5,"unpackedSize":15963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeeRbICRA9TVsSAnZWagAA5W0P/R5/FjBfN6uzeyn1L+JO\njxS5qkfETD04sDuEe+fhVGohH3KezwJkDvVwEtGFRTGCwSJ/Dv8I9cusnSqS\nPVjhX0hCFfwpIRU83rtJrZPvsuvv+d2jgUxa/sFmyNm1gpCTCuYQheM37IPs\nVxrIS9/EwLcnuGDNArjitqz8P2f7Toa5qyEhz8434AtwBneLof6kZ3CjyVwY\n1EzBKA51FtvnY//ZNeyneOIQJ+PnRkkcCObZVkTisSdPNSvh+004zQqY1T82\nvsEKlJnmpMzJHcH+WEeJGzRDnOB4+Ujrlgbt/ZppPcaFpOenNM+PlU76JwfG\n/cJa28GQAdceJoOqhn+SkvfmXPzx1gQdHgtzwiBglSEjF33cCWIiEElpyoa4\nT3t1gVWIsIYk22OMKiUo4Xqo/6fq5chRBdUfdxa59tBLLPVd2GWLcyeSAmTT\n1d0ZS8U/0fvAKwx7o5EaWkrhCLMxZBI1ETpG/w6uKgMx9sUMxKRv5sAJsyQn\neWqcZek5Tzze0GRaEaxk3YF2r+q4umebxi/oM1BDuQMFG3hL8QVmc41TcxmI\nvw9p78FRtca1kiBqlO0JM+49j4cQZZv8EYSxCiQ8OpVFmIhp/aBOEc+GrJvx\nx0Fb3XoFr/qX9B3dE8GAq8gDNhL9OVitNotVU4g9+hDIHy31P1wZDjqZKVch\nLgvM\r\n=AfjB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9p9CraTwksQy2zDv+Q+vqkHZ01E0r4pJ401fu1tFQngIhAOy0QOVWKXdDD44KHXgV1qDhiiacvwel8bEALmFjdTue"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584993937423_1584993992000_0.38569459235971415"},"_hasShrinkwrap":false},"0.11.1-next.1584997668668":{"name":"playwright","version":"0.11.1-next.1584997668668","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.11.1-next.1584997668668"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-82.0.4057.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-73.0b13-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.11.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->82.0.4057.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->73.0b13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.11.1-next.1584997668668","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-F62KPmHgKclHr8CKKmTPUG6HUIyuNWBrJasYhFqNKYDY9F1p78VrwcFwqqPG3E1C5nu/EZlCCiodZTYRT14c5A==","shasum":"d19f79374f2efb64fdd78f21468e6ca8d2c1408c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.11.1-next.1584997668668.tgz","fileCount":5,"unpackedSize":15963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeeSVcCRA9TVsSAnZWagAAdeYQAIEUhYuitdhr0GdX8E/O\n6W+LY6elK35knpoxTOgg2qQ4E/0/+pkrdf+iqV98RlXYF37EfHXfUYSZHI3f\nG2JhHsNjz9DNOMrYvYShdY4W1eWXb3LUyRJtdCIvzfIewDZykeB/YgDHLZO4\nIv+4yXtZZFTEgjTCX+5UNkDe2aoEX4otJ6tPAKwcOyJ/mGRAbhbc2w50Vlm5\neSNvJsMj7xBTm4rhSYp0V+1WjZA30BgnW8263XarOvG2Zg89sHRlYoXK88s/\n8GezWWxRkJrJ+LsseDhlvv7WGu1kyQ7d9oyZ7HU77BJo2Ev0dtu6soRqCThC\nbm/p8ReLwZJHzxFC2VzQQaA0kRcMlL2jOQDZrmNQT0qOjt+uip3dFLunzAmo\npaoWtVaKXlO20ErtYrxooCIFUOeCMRPPdbtDKJ0HQBom0wBPDEo+tDVHbobD\nDWvR634RmBmY4TlazxwoQit8U26O40ezgxTOFrMfu8UbpOtKehLB9xSnzy1W\nMIiQdzY0PsKERSSamJrgcj2ZqmLrf0WphtI4zr/piYmAaBymaWetoFV51xT/\nhimTBoEL92k0ypU6maB4XeQeGFdAM2gUzUlxAMWRImReMlDwpDYQ/xMsGzma\nMxbzuYLyXLijboWtDQiXOV8JwuwtKLWAxPkx9RgF+tCw6brlL0XeE/HpMQuA\ngWXV\r\n=+iHQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFD+Xj/8ZnFmkzRBzwZQ2+vCpRyrNE1Mdz2dhPyqPtXyAiEAnJ0mjurC+6EKu2bErzca5750dsfULyQtgFG7IQkJ72Y="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.11.1-next.1584997668668_1584997724138_0.4546113442039126"},"_hasShrinkwrap":false},"0.12.0":{"name":"playwright","version":"0.12.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-8mgovpuFgHhTdLCl1w8XztkYBBj8ORiGS+cj5s7lT/CP0SAraex5ZXOf5n5/fz+1aCh/QeNlW+c7TOV/IKqZYg==","shasum":"eb3fe2f8c2bc2dcecbd105db4fe8fff10c094bf1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.0.tgz","fileCount":5,"unpackedSize":15539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeekZdCRA9TVsSAnZWagAA00IQAIVffotT9QWSymdUskcg\nkW9jQsOl0nAz6+dJksjHMosqq3453qRJ1zLmRiXoEsf415RiwKgFJsKXILtC\nMGgG2wJnF7x48b0PH5xtovqJm3NvY8iPV+JR9MAR6/kxxeogylOAyvSTf/Tt\nzhIG9DKUjflFRuFB65urHgWlrniA3co+X0N7sjWHS/0BlvbOot0o5J6n+hpu\n20X61QfLgr5oem9FBlAy+rbBkP4BU/xQLm0gyERzxEq7qOpkax1RTVS/yZQ/\n5nnDOmxZWxcYNykwglDhhi5pwm2U1bStosrQ5lgmkeBr2OW8h4nVujChOCBz\nrDF268VsBkHj+PS4KvFmJhawxQBUmDWervVfOCD1YoZ7bJ1tXfHJRhn2l8cg\nM1pVe1nOEdGee7dwr89rY/gTQbKGr5vex+jaojrFXxFZ7sl6T1yCJmQWlBt3\ncYkzg4XacgPj37a67TYqb9F/OfsrZ/GteEKWAs+TdQvGuyk0ySzVBKijtgP7\n/gw69XBVfsqhUoVnBpSohwQFJxX2M+GEUotzM3aXOE1j1qKy7zL213LH4giY\ncg9ct1ykUaNBkH5Mi0KaIXqYPsIsTJYiUiZFcIs39T1Rw2IGWvpooTOFT5nx\nv2BBwCYCEQqOj6O7CSseBs78p0HvICAGlPWz4yM1aHOwD0JQCqeN5JFz2yVl\nZc9W\r\n=v2GZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXBjjKgmMvpFREquoS5h8sT4oMb1XiOdmA8GyxKEuCvAIhAOIuq3SDWXKwdIt1T+e4P7I3mIzgQwfMKw4qvOKDGPnL"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.0_1585071709290_0.7957263594280486"},"_hasShrinkwrap":false},"0.12.1":{"name":"playwright","version":"0.12.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-icF4+I8y7A5HjhbTsa4Eqtl2fuGe3ECvW0Wrn6aRM5eL5/AqUIgIf2U/0e1S1bEsDfz1JVvClGl5Gqw4aI5H4w==","shasum":"59445ede1aecec120091db7bc95b4e626451e0b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1.tgz","fileCount":5,"unpackedSize":15539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeelQ9CRA9TVsSAnZWagAA8T4QAIzvTrhH7riFnvEPPF0f\nvb1aot8ZgtaeUUQvSIREyPyMAP7zBm4uvH6AjhOvvsOyyxcelWt5FenTxZmF\n4gz/VD7h1zdyiAJ1ncefzP/Mu0ogMrZbECau/lmykmk02DtNDnzfQil607TZ\nF5vuJg54EbJpyhDdmmJTjh+O4ZdYK3cqlUvFprVB04pxb0WmHzqYmfUG9oIR\nuiLa5KwdkVs0sorAsvdL42NEouCZBqB6pcNe8KghkcQFsP3zi2U9OCT+51Xc\nnl1ACksegOwTN/Tj2xuAlEFlPGcwOLJfm1RqmDYX+AvI72FlfhozWQNgk8Tv\nD7k1V5bvk3EQt2YExpHO/H5bQO5oT6YrWWz8ABAGA+pRzdIw+xEU/w4p6sv9\na+uUTGoum2d3fkJ4bi33AHtzLbz8j5dOkjez1nxXzSvAelyGfcTCIBTD9ZGE\nOcaf456Arlxo5m83B6lq5tGghSCR1qjohGrb0mruyYvJZb63a31Ifvj8fk4L\nRxTDuNcS1Zzoheo0tIgDVXo9vB6yYjpxVYjSW9DXxNTZQeB2g9Cp4U/NREKA\nQSo7v9yDX+2g++i+JNQFvtCBlrZ3hX64mjqBgd78WWumvBdLFoCJzKZAGWzH\nn8v6KxSUjqYl4+eUoUfIdgAo8X4QVEkH1b4+0B5wkUORhq5Kr9A4h3oNXWcP\n9zvD\r\n=IUSw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPevY2pPeyvXNTmJQoGGu4R/LNoFYr1z3/0FoBq/7LCgIgRPGBN72zueiYR3Ea1UKn+LGyqWypiq6fHWPmkSS1VXs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1_1585075261108_0.8339408129388561"},"_hasShrinkwrap":false},"0.12.1-next.1585077902584":{"name":"playwright","version":"0.12.1-next.1585077902584","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-next.1585077902584"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-next.1585077902584","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-+C8OuoGUrTUGVMQ8ukbZRVYteEPJkHm7b/tBaPk0zqEwiBqUs2wOkw2So9sHilXb5s60+kVgSKN+RYgUiIJ8hA==","shasum":"f6d7dc16f453b94b897e8cb10ff4164fb8d7b3c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-next.1585077902584.tgz","fileCount":5,"unpackedSize":15577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeel7YCRA9TVsSAnZWagAAsGwQAJ06dDyxh3LC12qkDQZI\nFPKpEnNFkrQ9C5y33EyHdEKtZvq7l6NXTa6LfrG0fKTPsf8AFO80TPjD1/xt\nZtfmVk1wUEFCO7pGgT5s5FTkVgf5sE2woqH0R/h7cLXNdPygL/WxMySdCME8\nmLU3eMPWDGM51Anz1xrDgqQtScJhmtCFWextWbmRH4KHZQm9qrPRjPZCx9H9\nFXzaE3ARAMUDpTVx48DFHPqd4HygeZR+yHXCTO+g7LatOuxELyOBK7PhjcTg\nB7mb1gxN6PgzfmjjMfj4MWFnI9B2mjtXOtO+PgG6cUE411IuizZOYNj+PBHm\nZZRJbLpMRcsJAvoezCiuQwouUeKiu6IwQOmplMkgTyvBje4weYc7Kt59WXAA\nCOOrxGjI7lZ/0xWe8o0/YQ3UBTGIdMcNKOYwYa/TX4akHatginPIxHN/IJ3c\nrZHLxu+/Q2FKT1RaFu9iNxJF6AHI3Bqo2QjOyn73Z9KAJ4uNC9rb1v86yZv5\ngLn/Yhh+W0WJKumgB6Y1UZv1pIfCSRx6Q4A4g3kFV9Z1dAXzgv1t69MfWjTp\n3R3kdscwRNxKguX+zdNpaXC/NcuY+eanCoVyu781Pa9lb9xGWX79MPzkkDBh\ns+0/f0xZbg4mVSd+WzvJRkeGcnmARCm3ja4raAr4lCqSz8WAJYsV4NPKq1vZ\nlH1w\r\n=Js+W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRndaUBsynHw7kWvxKc8mCLp+J4I4CRrafriJqlre0vAIhAKX88FVmiYsdvkPQCi8rf6LXQahu50ykGJQopF/jy1cp"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-next.1585077902584_1585077975571_0.6226143619298017"},"_hasShrinkwrap":false},"0.12.1-next.1585082282546":{"name":"playwright","version":"0.12.1-next.1585082282546","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-next.1585082282546"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-next.1585082282546","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-RgO+5hnG6U3gI91NV3fl9UIs4kvyzWDXhm1kLcsycVPFShLBCwR2kpSR2csAbT1gOHoobxZVourb2DFK8P9LAA==","shasum":"4a0d4369b12ce73a5d8892d96734f80025ad37cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-next.1585082282546.tgz","fileCount":5,"unpackedSize":15577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeem/hCRA9TVsSAnZWagAAoz0P/3r+OflHIEUTaYbINAJA\nI0716E4pQOz6XX6pllyjY47MmhMw1VgWAd2IG+2e130Pg8Mnk+YjOiIaSTm9\nmlzSmUPhTu+fIGehQ/cKdHcg3E3K4zTg4Pafz1RdNALXswCvTtAvK+ajbFYm\no56SXSmWHPQoj+DrG4209AwOiFs2iZAO6V/9wkRjbSWG/WDhLB18LGPf6odW\nR1uKsXC4EeQ9EHSfl5TBSJJ+et0wKtcQV4EoTFuEzhZ4PAYYBJQogobmGSU0\nitrM5Wv/a5fNRCjMMu4j4VVKTTIrXYa107ruKPGbyJ64xHYrT/lMwzg+BcN5\n8LhAMPy8JneXGQSJbBo/M4bLWGjL2ytiV2crC35bL+Ks7HuvVRKiCvBhOWbw\ntXKsHsK7JtUlKQ7TyaqauP8mYdh/WvAD9ULk9aIsKXq3ohcOR38oDuH7406F\nXF5SIdZilrwAgwnFa49wdBkMY/7XoO9JIr1lWeSh+tnu6hUO5oE0Q+++9Brp\nwqOJaTq3RC80WxLE3HtK68Y04SWoWDmnykZ8JN4gQcZXnAxu6o9wrWzs5Abo\nch79mwytYa7WxaGtd/FsNg9rwKhAWDKCybtNrVnYX5vuJhSKw6z7Z1ZiS7kn\nneV+fjaV/Nu4YAwEQAvpvdpU/wMLYzwDfyyaG3CTlOjlalMiF1rAIYOXzg9+\n29qt\r\n=zlVW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkNGBFGUvWom5JuZEPlevISEIFr/J3pL5FRtmaAM1j7AIgYLErUFeKO3DsOEp+JWTq8B5YnuN5euNEx0brWKKs+1k="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-next.1585082282546_1585082337403_0.41609964409285105"},"_hasShrinkwrap":false},"0.12.1-next.1585087065435":{"name":"playwright","version":"0.12.1-next.1585087065435","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-next.1585087065435"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-next.1585087065435","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-a4IBqd7PH+sAj8p+2hQA3+PmR1qP2U56I0znIAkCSZy6oksVoIBPjRN6a6ca9KvoGIeRm7ma6CW6D89S4jXKAQ==","shasum":"83ba739c2c1696b5124791a22af465fecfc7dd2c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-next.1585087065435.tgz","fileCount":5,"unpackedSize":15577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeeoKQCRA9TVsSAnZWagAA9NcP/0cFZfmF8NPTaxSuBx8t\nTZqVrk8tF165TiwZZ64LiUln/zU/owVpuRR/1lTTtUM5/8eaGmqdLiUrcsLR\nVNoIV6vwsUSDfC0jpQeJ+KvKhz8RPX7HVVKm9V9COYwiVD1ahRmDvPCWqrrT\naDdf3hfgb6hw79tkStmJP+jtiEkj1G3pEs2AJsJqF4pmrtp1qiOplsGbUvUn\nb96fR3H3Qcx1jkPnB/uzry6MoRAJWuV21yUMmr71Pv6FNB083J1yBmZ2gXYG\nBPvCMlJhc7nWW1yiS9KHss2rQpUBd1Cgvq+8KE/ki+Bg3d0dAbM/DIa2ERTD\nVcEBvlbaowacIwlN7UlMZ9NhDwacEkYC3jR5QqKd2fAOxyDeye/ad7QwCf8w\nQZF0bsH+Dqs4GMeso+RlXhdYj2QaxKZb1ef+9NqsXBdU4eZUyZRbtFIKHSgW\nOjPFIR1SclcgUXGNWd5IDUrzBOvRHsD4WrKQVIOBypAG6cn19txRWa4wlJfq\nYDnlJbj5SssRcMgzK3AMz7/Yl8GPAZpiESqe63OfESZuUY5+8oShOdYCtUG3\nymVrUw/JmRga5F7miJ6a+Y4jPkABq2Z/7yu0aMpizW+bOpc2yNX8F7v0L2pj\nucsH466JhG4yYwa7xmTUQa8PUE3z9WNqPQfM4MLLMF2tFOZa1C1umbmkM7Se\ndc4W\r\n=q4ST\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvlcYMmTm5LYiBiiPDsbB8hKNxD/qoieonSBdxth411AiANzY/jhp+cXkbOPwTf8XXFeA4u3gthovS3MdLm3AEMCw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-next.1585087065435_1585087119588_0.09862573076462833"},"_hasShrinkwrap":false},"0.12.1-next.1585106784904":{"name":"playwright","version":"0.12.1-next.1585106784904","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-next.1585106784904"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-next.1585106784904","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-xUWzgKA5rUDqGI+2Zy97pBg347LgJj9/ppmjUvSkmuDQMiKKfvIzrKkTyA7y6A/NTOFb5DsN9QjSyKQOs5qs5g==","shasum":"6f13ccd09f8231da9c5a19e998bbb36195df7c89","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-next.1585106784904.tgz","fileCount":5,"unpackedSize":15577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJees+VCRA9TVsSAnZWagAA48gP/2MS5c9tdMq9fs4Tvehc\nupjh1hN0O179U6+PjG3/MBIsndQvYUlwLBMeTXlPd2zSkAFFuzN4ZofELOFw\nzysA6B3uqHFWqsyZ0M8fYUw4zuooP6WadmpNaPjksyiFIKrXNf/HVNSAKBt0\nMnhUNc92dQrFOhI29dLaxF8vFXMRQEVhtgQVvgonoIHT4KNbegva2zv7pLwq\n+B6PhEJbVf3/Wd8vjvz0T4uO9uYw3EHSYxM1+olYYJJLkmOJvURroOhBPeRS\nLv39qDKUA+t9qSoxfkNzzI0JwtBWFrDVJLBea+FrhnIF5gVXmnBa2WjN22H9\nBtWE97hU0pgBBPNBCXqj0zHUlkmtlfv9yLjLblbzG4X3VMaHlTXJMA9YpKA/\nG2SsVPMi0tkZHckd0tvewqSJGDeVeCCWu++d0tYVjfnZRyS++m2f/Zyzzd+Y\nWsyQZaBPD3EvNp75T94jyv+AaeQZTd9IeCQP3c30HYo+MEJzzgX3/xofeepi\nn05uSGmwz0/u/ShZJk1RapFW09v4yI6qO3RvgPqT997RgUdXFnAT+MAxX7zB\nIGz0gFoxALa4YKVkDbX3vBe8TQFbU0/BmpBF8Oy/VwoYLLCSVqmLSZrDmuU2\nxmBOqCWk2nqFjXDXPJcBQJ6C6Uyn/FrDGXLNOHqIm9AY7OPdV+70ZdZ4WmqP\nUWbQ\r\n=sPb8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOOEkMlWllXSg/sAdrZR4D9TDCzelDA8S+fXkKXjN2nwIgMb0EuEBdNSMkicpg9bDldJsDa4/AndTHuEJ4XC/BoFs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-next.1585106784904_1585106837120_0.40248807192238933"},"_hasShrinkwrap":false},"0.12.1-next.1585109149515":{"name":"playwright","version":"0.12.1-next.1585109149515","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-next.1585109149515"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-next.1585109149515","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-zK305BaulCCq+8YGj+rwTY/CIucU/WL7/vYUbMzwGHhiaDyc7FnYNACml/P1Vm4fq6yRJtgeI2Xmrwxq12KT9w==","shasum":"5245030a86cb4a1d20853ea00dd2c4fca46e18f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-next.1585109149515.tgz","fileCount":5,"unpackedSize":15577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeetjRCRA9TVsSAnZWagAA1UYQAKTA1k0ePZc1i2d69f+1\nQ+fLFh+xx3unt0OsR82R06AcahploXrBihNvyoDg5mVwMRcbwxvegl02/L3F\nV05aiCI530t4c50Y0rFypebhPS7mhTH3VAsT6n77BF8bQFP929coSGNEhsFr\nwTN+oZg+HZKIwDg+ss+GqJOflRBuPkFYxEO4aSsBvo8Wnp/1VP5siCZzkIxx\nQQybAvLciIBGu1DU45pvoRWVpI8KNHKfT2jCokUOIzTHbKXNPIfSuMnCQOK/\nRpCHOWeUhy8gZ2/g0eICgMu2IpKsMO706cL9DdzVzMaijQzO7aPuqJ56USNJ\ntLlcT3eKQTeZ8HSwDyda0R83jyBD6p4sWV+xrLpTS0xCGEnaPEyqjDoBeKoF\nsSRU8vZ3GaJP3p8RDI+QPm+Y/XBZdF4hTNdyQ+hvkisJfH+6OtK2CdLA40kn\nbVU1tUEEv1XoB6vxnTS5Ded9exr0MzfBrVyT5spGrwsmbBVLt5kmBFw9TWkq\nhJHGuS9xb+FNSOpcvwdhirpgdvEYaAIfIjQOvJiO1lognMCLA9M20s2Zz7fv\nCzYnfn2WaZhh1PIC+8ZTh+h4601Rcyfv/NPkGGghiReFqO+SUhyIciUhR5CV\nCIrIAPrNqVWk3jL334djyZxQLG350rJidwAq8+0Y3zwOp9VNlyAf22owuMB5\ncxOM\r\n=Gpm+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsHlrhgskl9uqhFa/hK166LeE0312fWP5sjmHtYTdqbAIhALBTVBvvjWHSx5kL5LWSZLBsyA3dxu0C7lt1sJtVTUBO"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-next.1585109149515_1585109201319_0.6142017245091518"},"_hasShrinkwrap":false},"0.12.1-next.1585110797842":{"name":"playwright","version":"0.12.1-next.1585110797842","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-next.1585110797842"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-next.1585110797842","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-wgJ9YXR6e/1g8rQsuv+MPK9Atu1zHY+21JDFRmCOvN6KzmDUusRNwSpsVbngnLHnVUXAWnQyLOi+5TDpKXsHMQ==","shasum":"78ba75b807ef1bd07f5441bf2a11dc8106406f0f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-next.1585110797842.tgz","fileCount":5,"unpackedSize":15577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeet9JCRA9TVsSAnZWagAAaQwP/ArSkT5ufQDwV3V6aRH5\ne/zmsZtk5I3BA8oTWrqcs/CwXZmbiNkZs9E1DWUTHUtV2er0L8Y/20TZgMAN\nK53mn3/2XJdyIld8+heOns4yfLLQvlsqFyYIalgMJNiJ68C1BV4jY1SWwbaN\nEv48hnzmhzFib7SWAcmi/gUbXEOT6xEMevMKIXNhmz+2FCaZ9pY7AhjF8Acg\nFwDy6MS3HVM3FXmoAwotMdb8jx9HaTanM/dL7+gZucAeAZH8QR26/oJ8YHwU\nnwDuUZi1/3itXbX4h/wKwhHXRJs1NXobSy6GmlTTm02O0ffahy2l/45DP+5h\nkhVkfJ6R2Rg1WC2vBPwavy9bPhCcVdyJpdrzYoyMrj4bkc159XYsXV5Bw0Zs\nJue8+0t18VLMqMKRvHF9G541g0VWssM7VTO0o8S6JaArfkUeJR+a5gNmxXU5\nPJr2zN3KsDV9+M5/gM3keqlHuZvZvGKlXnO6LZAWqVvxaCg1DGvqL/6i3zFs\nY46iBfM97ZrEu+jhfC5ZtmF3s9PL64wI7yyUrh6Ym2CwmYzHXZxrJR7ScmYa\nONQZgh9/pxwE36l4YPLB23Y5WjzR0gIYnK1cBRSzomCeA2ZzJKFxglmg7uKf\ny2HsoeVldLm15oH/MSw/guunePz2NW5+8ZFWLeNtE0rPzA7KiZ38MQVZPc77\nH7xl\r\n=9cz9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXVSKiNr+oizN8GBhrmRtXhe9NffngVZ+/RrRtw9BoPAiEAzP/QKfiZUHgE4jqzGvnwL5D7yAbcOeN+P0Z/dnewlsU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-next.1585110797842_1585110856791_0.49974088107472125"},"_hasShrinkwrap":false},"0.12.1-next.1585151127903":{"name":"playwright","version":"0.12.1-next.1585151127903","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-next.1585151127903"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-next.1585151127903","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-hp8UGjahp46tHTj/wam9mYm7yD7MWv/eCtfoQ0+PyM+fnHHNmLjiUDe9ZgFyEeWWciZ0fOO9rFZ/dvs78kafzA==","shasum":"0389e8affc9254a3c3dead59107728b556a47d72","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-next.1585151127903.tgz","fileCount":5,"unpackedSize":15577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee3z2CRA9TVsSAnZWagAAPekP/1vmnVv03+hjIUOIMVOe\nSxSxte9qdReEJzAE4weSAnxMjinkztKD0sk+TfHeUVxQqr/j+qXS2wLHFcoT\nx5jdbpKB6cZoZRFjiJhD3YuproUcyUEisyaMozZTUo6naTxsfSMWnU8JemQ1\nQLSoq8xw077QHUA536z0tvjr0hbmL+tqRMtyK1NH7Dyz/1PE3rT5+CTpFImj\nLFFLt+Sk7R9On1bJgeLddRAj4QekiYlyTwBL7+s4If530UG3NhgCIV6XdLT6\nFe5R3LECXYObHWkiNiL3N6VI8Y0++hFqjdClBMk8+9KDexMWoM40M1h4ppSW\nXFPI5L0OVFQSBM/eQLHiTkOJDwdrcgnekDrB4adBdIhBCIFS178LmelGe1ot\nJ1yDw1N7KQVsFtueThxUZxCUewQJCkTV4DjNBHsR2D1PSen8droei8LgXhqX\neCOaiXT5f+4DI/na0QC/cYUIBoMwz0MOpPRXs7DUcMp4x7dfuEIFjMwhRENw\nJuDV3oxkYOxSsj/+Wo2eLPSWcb/thsiSZjseZQXxVEgOnMGJYzzY/Ry9/8Yd\nTftx7SvTsyyE7Bk2gsP8r8YZ/RJUCmvzy7mygqH+T4oFyLfx1JS8l6cjcVuP\ntpv2alnDF/pNXoN6SUS8eX46QmAsB4vQp9LItaOlPcbt/UPwPgKb+Yw7Tuzr\nnuEI\r\n=uzKn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVYGtNuGsfxjqPrkDwESVvvcYxL0KWTrj3h42MPhU9bQIhAOAFBt7tYWootCzwiMZdBaiIz2cQ2iPRtdd+2EVkme+3"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-next.1585151127903_1585151222040_0.23245943429614013"},"_hasShrinkwrap":false},"0.12.1-next.1585156318857":{"name":"playwright","version":"0.12.1-next.1585156318857","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-next.1585156318857"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-next.1585156318857","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-7lbDFHI/LuXy/mK2+X6CvVSgujEart2KW0cPzwG+NHtsuALDYghXf0l591awiWW+Dh0OBzXU1JXl3/fF2JrfvA==","shasum":"5f7e8a8c13dc89b99009804c2684634b12f3d76e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-next.1585156318857.tgz","fileCount":5,"unpackedSize":15577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee5EWCRA9TVsSAnZWagAAPI8P/iY3mW8xO9jaVMoDSV0J\nyjZZa4u+zo2Pn03noY/2CaI5WpwrJPRvMEj8jui8hJIrM7NO+MHHsP8qCPX2\nqhqGPNVtyPhFVozJnQCpP+F/8/vPAi4V4CgS4l1I0p9yBhQpm/7uF9BHYtcA\ngtOROgW2IGjZjLJ2LzdNNYytJbTQk3FtcJ7JX3sriqpjID1Ov0RLgAy8PaYk\nTnRPoKXjb52wS3G+qoOphZ+V5t/2jKcNEcS7Lyoa7SHPs/ykOHdrn89U80lg\nP/of0hIxcgsqCS7pUyEGJEPL8ySjkJkM3VaX5eWj26bH4pfqhKaUENO+WWdi\n9yEgTetutbPbfJtaAS/mSxsjQbwtC3kSDCz7Z5YZb/xpIoVg3vpUmRxfjBVU\nKM150yz3iQ4Be484wL6eK2Wi8MTBQjGRjPnntd0pwI6nDfJPePMaEF2YgYsw\n+aZ6a3oM3PIRKAn5zeLYqVUyrdioAnPsXU3oqEf/0mtkUS1v7jubwetfBkO5\n3nH0n/BSUjQbNiPYxPqxEFSG3b46Vv4vElBpH3vFIqbvGYXwqCN2i725SZm/\nPML73DdGlMfWGCP34RO1FLP0Pb49ecnCh7bYO2TKlDqndSpBjqA7WgQQOIXw\nyAQimPXiND/M3AZboK/OCZvCURrXOKRIZ7hFthPVNS7F8LHvc9JssrwEtr/J\nAXpy\r\n=eYlP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfxupoJddLpU8t59KOOcQX9NduorjUhmgUwqyFjGsKzAiEA8dlR1xjCSgL420Pd0DTInC72kbeyNBvCRdSfKVR88Cg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-next.1585156318857_1585156373795_0.6042035156899235"},"_hasShrinkwrap":false},"0.12.1-next.1585163289465":{"name":"playwright","version":"0.12.1-next.1585163289465","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-next.1585163289465"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-next.1585163289465","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-euJ2ajmtiHzJH/GtjYiRo9RvwWibWReWzhH7MIc1wYCm+CrmJN0WSuNqwJu4UelDq9EtoLXPBvF69t3Tk0L95w==","shasum":"3b69abbcc7a9f891297c1c92bb246d6e833fa4a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-next.1585163289465.tgz","fileCount":5,"unpackedSize":15577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee6xRCRA9TVsSAnZWagAA8/kP/2opFhJnMMjt0opmKuGV\n6VF8YWsM8H+EMMhWKk3otJ6dOx5XYinHynsr8LvfkFQWj+/TbL3AnHCY3Kml\n90ezbqXLg2gQuWb2EOhwy71UKk5sNa9ksWtapFJBKuNu0acFvX3PmHx8HZjS\ntKJpIrtz+DdEgihg/0M5JUCQT9qmHVLP5tI7S7zIxMKDKon31vb05fIE3ecN\nDnm7cmJwIh7DKDoSpxz3f/TyedRH3eOMZYCOcistqCJapIzgtIe3fQauMatk\nnaffN6s7N/HR4Y5B7y9s7VUvpByTLu6PqsSVIo1w2f+aNssWLq8jwz1uFLHo\nC4NB5NW5cVICrvLGyNsQWMls/YDN2TE+S02pX2N6Rdyl4dGlPSV239BR7PfT\nH/pyPkIJ/pQR2Gh1/gOwZoQpWFQ+II8TRbmb/jTclXROpp96KEl1yCRlu4no\nf5NxJCgmVk5JRNqAo9RdicEsoUgCIuPvMz2EyxzlBifh1LnqEhRHvdFV3MKe\nnKmMz5MbBkQ+s7W/Nw4V8wZaiYHgjt3oQuLGlwLGOIVF1FmvhCUasCJSn4hP\n0aQKvB4eIvFMLCi7bZRnudlVZJJ1EhShxjTcL2wZtRnvnm1+jamQMMVSI/rq\n3eDyhuXpGorAzlECd5KYgdjudAVysIXGhi8bvQvsDirjisrcw1foHtzkJU7Z\n0w5h\r\n=lQGc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFz+4GEGJO8QSK46y448+j9oT88qIB2LS9tBBxXiJMfAIgXzD5rW+m2jihI/Iw9FcT2jSBc2ZbDT9yVOjfYy/7AZk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-next.1585163289465_1585163345426_0.025101456176380488"},"_hasShrinkwrap":false},"0.12.1-post":{"name":"playwright","version":"0.12.1-post","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-post"},"readme":"# Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    viewport: iPhone11.viewport,\r\n    userAgent: iPhone11.userAgent,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: { 'https://www.google.com': ['geolocation'] }\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-post","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-kJTIE/B2EUavr3Q7vfzfyDPjH83Xo3XNRruZWMK9Wd7/fjAwM/xPic4rjAB7NLuQjIVLovW6oQeNz/HwyumHnQ==","shasum":"3d33d78dec56758d0454fba0bc4409fbad7e9585","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-post.tgz","fileCount":5,"unpackedSize":15549,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee7/pCRA9TVsSAnZWagAAH7MP/2j2kdQf8OV4aFDYHl3u\nxLXTHdROaGCrJquS9+Dio8eKCxDRUsIo8SElbu056XeFnZopXO/o4Isk6Zpz\nn3pMdhFKFLqV1Rxyne+w6Dx4yRaloKvQ+UR2Cuq4YuMIm7a2QHeVvZ+7P0l9\nTtE9eax2zXHPxOerP3SDp0fVPqkw2pdDDPMia2lNfqxBTEPRZEXhqHIIk8mo\n0H7ep7QAFzadO0HLx6gxlmPbmJ6VgdY4hnuhTpwhheODY/NPbJAriZYetyCu\nRkpPOxF508jwSm434j7InxweUvROP6/P/NRlVW+vmm9rq6mTn8t8Z192Sp0B\nR8PS63kSrrGy4tB+uUw5piqgwAB1hTA54TvPpJmJhWmIC/CZpW0sQXqo82Ns\nLQx3hkXDb/oZxpYQBwF+Tgzeq62ojDhcXfUTC/2RAE+SvSgUd49mOgECx8tG\nviQ8zLYBsk7AshfXxi6tuqrQlyPji+U2+WaExUxaxztWWuqHPUSXjy0Rd1jr\nJX/5P66v4MJ7OOv2S2fEK10ofTQysdBMp6SLV0DZhZ6mq7KvHEM37H9JiOA7\nDT+Nly8AN4SBfwBrNS9nNnjPu0KLtW+4vcPZJ9jqB8aDBrbwO5kO57VI6YWu\nbanwqOOSftS1OFLJmbED+sB8y1vcMGb9nu1OZ1nwapRKoDb5XuMr85Z4E1KD\nPpk0\r\n=r14f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOW5On+VxPXvAj6pvFeiTOz6lWpry9Q7HtXGdjJoJQSQIgOjWZzb5w2TsgXNgNR1qkQRuemaAPNxWjSyV2sT2A2qg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-post_1585168361438_0.24780619589458985"},"_hasShrinkwrap":false},"0.12.1-post-next.1586389266327":{"name":"playwright","version":"0.12.1-post-next.1586389266327","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.12.1-post-next.1586389266327"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4090.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-74.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.12.1/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4090.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->74.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.12.1-post-next.1586389266327","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Sc5NK0XoGA52ExK0T1R4KBJpL5q5TK0pzqhj51Q+zwS40fxd74rWFTPBQhd8ieYjojRLukJOLzGU0zLwqtIbUg==","shasum":"957c50e0e64a03d7bd8a62c237f88909a6a7b899","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.12.1-post-next.1586389266327.tgz","fileCount":5,"unpackedSize":15510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejmE8CRA9TVsSAnZWagAAQKIP/19e29XUIc0bVWQRFR8Q\nYP+zUWwPI9rY+EwfVwN6bmgsudHgrZpjfgI9gv6peB8ECCUyrKMz4/tUpntk\nUbFC914CBC7HL3FTaPktl78Z4oK7U9wkgZ8rXx75gAGPbvKWIkHGbqJjhU1Q\n0G0dfPILGsmwMUXADca73A0BBGNizDOK6hMWas4XckIS1eDMBVFsSHL799Pr\n7xstwa0lTTmsXXN5UJ13urXT/4Y5bupZTLgof30XeF3CSBl9hHUAW4x6tJiI\nzRqqEvF9OpS1cXZjBDOPqO/wP8R1bc/VVsQo2suYyBRiSjxCjucU9Zs+Ed7u\nm1VxCHeFhtVPSHtaUMTp7ZUCU3r5UAvnq4icgqevvnffnCiiXcu7r6UPBNMO\nkoxBCR6xes6Td7EW+k80gTL7xIxOuluAhA+l7yf2d33NheV3h6Q61tsJsYIG\n5GzJZUhwVj43ZMyZ5ZRQcuMYddQPiDzae4DL2XZ8H5UyJhYFYxdmL/UFORVz\nxDfHTX/TKkTQLGa053qgJni7rLEldY9E/bmvyYPi9xTwg0Y3JWgIE+I1F7UQ\nstdn12dDfOENIm+IyISQaaONhx5iSGDwJO1d12qOEkUUcSfIKCtlRL8SX7aR\nA1tk7wTEol4e9drqnqU389Kqy6Qv2SLJgqWtMrPt6bxbzyghF9WgZZHpTPYx\nG9kw\r\n=EKjB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVQjAjRUqiNOKOjnnhcxmyzBB7RI7FPPK1uQJyvop7WgIhAJilFcepEMPa3Wc19x4ahvjc3aYMJWd/Vnz8PxEZ8+Ud"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.12.1-post-next.1586389266327_1586389307560_0.9610015488946746"},"_hasShrinkwrap":false},"0.13.0":{"name":"playwright","version":"0.13.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jL/2vZ0YP2G+6y3O4lEkpoPqI8okKR2zVO9oSvkBF9rFXmB+1J2BbxhJr5P0szk+iY9PisTjh0d6d9l3q3W6Ew==","shasum":"6e739c8e097b9da4509a610e6273913ae669e0d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0.tgz","fileCount":4,"unpackedSize":3520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejmgBCRA9TVsSAnZWagAAR4sP/2tiJ1WnQ/dsg5hX1egm\nvKv1EivavSmvAOVFzrJoFwIqkZhL9ZgfRI74/CsGmDMeDnvlH8zj26IPQrhI\nYPZU2WTqUd9SDgbKbOx2bWZLFGsKyNGUs/3AIPHpueqlAADGAZAve/bKPu16\nBgz2obZHXWSGv7W9BSq6JEsgsqcBvwX/e8+CFUwcgtDbjkE5qvkipMpWVWxZ\nRtlYHz1hrJgc7bqDKyJ5Fdab7ZmfNXyKV8qNncsiP72QW31CEmAhULHWkbA0\ngrs+oKXcNyaevpIOxejzYWUQ6DInXN5YIBhwEEKE2WwB/Zt2A2XIPVG5oDJF\nORrkFv+T0yNB3xlsffku5lb7oiJKdSFe0i6FiF1rgEp8KdBU5oEQfKDGWKI6\nvlpTT75mc26Mq2x7LY+JA5VEv9Ysca2R13R6yVi8zLReVq0OAmEGkpuy5XhY\nVRlJErx4RHJup2to3MJ+1DNFwgmC3m5WhQUY53J1mg5EpmV+GiqVXCUq3IbX\nO2Gen4Q+QHLNhHEfVnv6111GL0lV924gpgWcxmE+telBbVvrXrUGn7gGNThM\nD0ZS6p6xZMvhfm3EkLuRtMxZK9LGdhpuU+4PFBE5/djOMAa6jEKr4JwHPX8L\nr42t1MxUGrNP/9iwLictbn3UU8o3ap2BYzcN61JJORF76Ymc3DihNyRL5KDT\nKwwW\r\n=syPj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGIpSZsfy25/yg3NMAlqfSzy6UUTKm6mVjvcfUXIV+j8AiAEHVNNXSA/WDSmTCVMdUU1CQMXCDe4Qy2px4je9byZjA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"arjun27","email":"arjunattam@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0_1586391041311_0.9942048202013429"},"_hasShrinkwrap":false},"0.13.0-post-next.1586393147597":{"name":"playwright","version":"0.13.0-post-next.1586393147597","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586393147597"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586393147597","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0vo4BR95E7Iu0fogCTWTY99ampcQEJjbivIaH/TDyZNeyid6yoNs7nyWt8fsO2lvy0kXm4EHZ7ExvyYglny4Xw==","shasum":"4da2fe79e25ec7f5b0e6cacfbf2e0ff5756c3850","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586393147597.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejnBoCRA9TVsSAnZWagAAXYsP/j9TRWTa2kyE5Kz24VQZ\nc67vM3l+rNWx7FNhdGzoHXstpfqSu5kFUbI8Dxmq9vpNC9eyBpiYxG3qPM1u\nGw5NEvUrHnS790S4+YmUN5EbXYQLbONZy8kAh0tHmrzRjPL5CYnIjh5GAbpF\n/eUQwEH2NuxcfG+UkBKGDPmpoJSxFaKLp4PGMGLoCTkTqAmJFfDjfWDQQwpR\nNH1gHxPXHlH46s2rHrZz5JfbCjADxydHtUQ9MkaNQAFgiffyjQjYgep5oxjC\nvOPW9zH9dQ0TiKdpp6b6rqVSFsjoPfTJasicZP8NMLN29vwBmx+AuGCYSxUC\nktnC7nsT+FRvoELqHreSyjC+IR/B4K4bXFxJIb5EGOtBKhU+TeYwVsbj7h9R\nta9CIdxmjsst3T5iiJYlbPrIeNsfffZy91ykWqhujcAUTyvWfWtFvfwENkq0\n/aZM6GQkqMzGUnaXtgDr/SLpR1zlOdMVkmUaXjspZlDEogNlSpiABCTgfwBf\ndyIG8BZiXnv8CszpKAdx6EreeCZL1iQusWqtwQsSLNZnQt9N+J3rHIENBfDa\nhnDOYQK/0UPFbTFfXV1OyUhHte6ws0QaYm1UeMXWkGid/ZYTzZSu4iv0Opiz\njvKg/M6etDYeMyLMiHS27DYtHdEcFL/T6tS3/8+xsLsa+nq0upqKsPwB1Zov\nMKA6\r\n=XPf3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnBsGaWITs+vkHDqMiORC2KofqgmuN7YYVN8M1x2MgxQIgWa3ghnyxnr7+ujOIsgx0L3dZhq+5NISsqRnwbpiKpfM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586393147597_1586393191110_0.5220410545210656"},"_hasShrinkwrap":false},"0.13.0-post-next.1586400584821":{"name":"playwright","version":"0.13.0-post-next.1586400584821","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586400584821"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586400584821","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4UUG84k6q5lJSiZTKpt/dxJWwQWPjLr7tfY6l8atzuwjMtgPhJAL18jIe3iyh/Cedz2cMAdAcdALJijsO3QOoA==","shasum":"210b04bb518b18b04976cdae8ea700d0163a24a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586400584821.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejo1yCRA9TVsSAnZWagAAxKoQAJ2oeRXM86PgXo+sLhbS\n6vGm2CRu8lSDayk955WeWqUjjoACVmRAzaA0wWcnu6+FWgra7OroI0GhKY4D\nC6HlJXTOFf+G+Fyni+043f4C4ZONxybZ/JmkQDzWrF2QUqbwENoYWLBKzcnY\nu5cS3tS2EWmaQUsD+K9xr0rBpCOOV+RMJZuhVxn0VpXKSE/5ukJGNpNtA6DP\nF2DVrgBVZTCSft9vQhKRMRT3QWdLaswSWKNMk3LUkkHoADBGjFaWPhOIDtp7\nbU4Rbq3N2Ad9Wig4MRZ7gs5dhBiOLs2U6mXhmWQz8srMcKEDj2OrHogZE/fX\nX0roYyJfytA/NpsOOSc9ft3+5wzLbPYMZCvlw+xS6fwFJiN/eAxjxX9dySp+\nESkxFcnIbcvM5gtdhJLQ4yvbDnrwMXmdAXc03kE9b9dOY0GOuOEqjQsbNKub\nAuZqUsdnXNm7eaORiNATbnIN2+BCD4i9uEqa/Z96De3zBSr1qSMRbG56zQkx\nfFHQr68q9Lab44Vh6JBofyjjvNMAG6ZvE3L2qGfNtd6fmwNLdjfUyPp2G1Y2\njcA0jw3oQgB9y0iA6D2w83cB922G39WOQYFgzN7wCaN6Lp8eo4SkI1m/gOH6\nHjA6DCaMu8kBVY/a7XdwVu6yS+65Lik3IJgT4wVEK1wOl+lTtKv4+HoD2fhF\n0VdU\r\n=zOd3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjKKqkfL7yBFAdjb5w0hefxJ/xneND9yw+yMeCLrYpbAiAtRMxCAtYnfTudlEsvh/7rXqGkmfkNXr2+HY05psCPiw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586400584821_1586400625922_0.6104033781452995"},"_hasShrinkwrap":false},"0.13.0-post-next.1586477576257":{"name":"playwright","version":"0.13.0-post-next.1586477576257","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586477576257"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586477576257","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6Rn7A5cKxFmH6jvx1ft2xwBLJYlE1fmEsZNBZL8gXHPx1nwgGVsHJFylC9icMU3TGCNfNWCfFITfgmwDYwM+FQ==","shasum":"dc41e144023cf1730b771ed595abc731a3263ec5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586477576257.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJej7oxCRA9TVsSAnZWagAAaxcP/1lMs8xjnVf6tlP7irxC\n6ACzZRcXRSj4sGA0jWJMzrFJ9wiRT2MjiihLfwLf0fV3fWC4Oh59ezHQgVqq\nP71FqBiKi/CbB8mDCyzIouzjWmY46RN7Wfr+Kv5cgPtyXgDMuizTNHkXIPRF\nvdIBTBm+DNVh34KsxjB2E71JBeCQjxkn6gAREEPzwurroUv/RzObMhdQF1PP\nsUp4lKGYBU5oxySx/l3M/MdjmV1y6euIzT1KymVQHn2A+GhEqIhRDjskIkjb\niIkpRh6F5YRb23fYNDx1yNhnRqa7YkkpOjNncNc3v4ZX+GzKy7IND3kcrJ0o\n+ETKG+hTk8hoA2GmrE0xZwDkalA1eo/KCyY4yBmFr/MnFZevhTuufXH3HFsx\nyIXPZni7P+nnUn5zh4/kAs9xUh/4RTNzNXKZT0vYowRoPNXNroAO63t5Vz3/\npCkgSeJ/GQs3U8lYzT6UvtqC+4iFX625RARn0DJb4mbIay+y1qf9fzEcUcrb\nTYov1REqqEOvKOil2odZlmkC6kS5/BjRUz81Hl1c6DJLxx9xcQqoKX/FHt3z\np2oALlJIuwsV2jV4iwqJbZTlWQ7d5saos5VvtstGTroh4FrsX9RtZxFhd/oO\nKKW5E2Xsy/0VDXRVfV03SJoJ3gqkmpwmLEgiiP0slhy1VuTj82/cJDLVxxvX\n9TN8\r\n=/Yed\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEkHxNrejL2E5jowUcDWlhQi3QAAgxkCos7Mj5nuAnU/AiEAml+KUmqGTZVp27Jy0iqnuAbPqJ2P8Pjm0kH+83TwC2U="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586477576257_1586477616885_0.48326860181095843"},"_hasShrinkwrap":false},"0.13.0-post-next.1586485167474":{"name":"playwright","version":"0.13.0-post-next.1586485167474","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586485167474"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586485167474","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vQBJkVALT90lrVUyR+Ky8fA9p2Wc44VK8E5D/ksjUQiVrFOWWNRTHCBPzcS+ueLb+3yEWc1PpkmeSbpPau/2Gg==","shasum":"311b2325c5ab760f8db2a7dff4e1a093a45e6d8a","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586485167474.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJej9fZCRA9TVsSAnZWagAAh18P+QEK/oZWNIvZnSRZ3WJB\nkM3yCDcThC3LVTrpnVI9xqoZYYLPbvCivoMHCQ58ybgEiFbEN1Vlx4Es9mZW\nRekkGV+NCQETJHj3hP7OJPkxytJSTFJ8VtwXel+o5p5fhsTdD1H7xlTKqWOL\nyNgU8W7nJUdpdmj/9ZAJAQqb0PMpbM/9oaZaJvIsncDxFJD0W/oDQt8rJWhR\nhXkTHfuofyABAGTlIa8N4FjISDfwvOAQeTB10saCHUfFQiNVCt2TbT/PtklN\nFiy30m6hVGZ1NUrGO+6lDkLZ/9doAkkogjBNi0ej6+bxQOq3SdqoXYY6fwsZ\n9byJN6F0ihdFrUlzZd2imSJwQMykSJrZBNCrcyH6QkxpByZaPoKUfF6CJJ5V\natIZh5+VYGG01VRqR7+DSg7PLof14a3UrXAKfk5mDll3w5Y/eVz+PdI7a91P\n/7YE/VK3enox3nJOI5xC1IBxovbA7atpOnVEUCBL0CrCS8YlsoPQDYQ0/Pue\npVSXXexFjbCi3yFpWIY+WfePaa3cjw6v7t2fVTjC7PCYO4USSEyaJFCFVE18\ndvXkqPczt5arqZHSQSr6T12MKeuzwHYzoRAkepUT2dLrUjU1nB51Y7aEjEyR\neEaXBtkCfGg5czKowr50+UCq/FcaLqR/PG82IITMWlUj5BY1x3q/5lenrSyB\nCK46\r\n=+hkC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTZ/ELXu730zcEy3zHqiEFAhaMpVy+UzcdbtrsgTMGBgIhAMCFZdCZ5uAbWyi3XFMwJZ2EwymjvA3sM7U4UDfb0zYC"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586485167474_1586485208784_0.41490046349228304"},"_hasShrinkwrap":false},"0.13.0-post-next.1586540469585":{"name":"playwright","version":"0.13.0-post-next.1586540469585","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586540469585"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586540469585","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MRklLCfimQc6VOfM2OXL00/jVj7n7EplqSnsQLX51jL8DoL4oCzcv1+RqCFJS4fdP5CwSCfPie7idxsXHlOsMg==","shasum":"4c086b4507ce005ccab081b40bbcb821ec7dd7a8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586540469585.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekK/iCRA9TVsSAnZWagAA+NkP/RxUTVXX3TStRvVNiWd4\nOU6Hvu3NO+cE8+ZuZtJqViCVYgrdiaEHQfy3obhBWk6pJhblpwemp/lpns5Z\nv+4FYt1Q9M5RTLpE/WZQ3Ngf/9d7w4w30wXz2vNW9xG6qeudj3y427BdOF8J\nU682vPrz08m9kIr5Y4MaED/XrUxj8FAd0LTCDEsp0NNBKAbqf9DTXLgnNQXD\nj4sE5AYWY6Gpgg4syGr3yfRSEIVb6jzvgCCXtFjy4MvRkUhqUUcnbvb5I7DA\nMtmO0wPP7Q48wIFropDnGW0PvlfVpFpbWf1+FIjWCTuZ+g0j21yEK6ExiRa0\nNoaPdAJ41mE8lvGUYCOP385JgRh5mTAPg5Wv5THtgDNvGgdR3gF4qHa1KEId\nvm2e+eav4sk2LsBwK5aO+OvhevQlN6/aBP6hKIEagFSgOkdBtOHg+7vxcmMH\nJM7m4B4D2903rXO5aeoo1sHxwaKOe9lUHUB1Pk4BidL+MOTqCXPoYYryQuw6\nQk4UdKSujh0xsUiNlf6Kl++BlgrAzU04AaKov0OL4wp8Aw+oZP35X7YZqgUB\n1mz6u1lpU4fM+IPWwcysWlso/CyjR8h+ixdtbW2GaULDXgeEm70XFiZI4YOl\nFS9Z4YDbxl4gTHI3BKSF7D4+KvxKsw2D3k41WkAnnagEST8wkiaFAQzoCHB4\njENo\r\n=yTIA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6/4YljXWlV8d5yGOgSWZIJBnFH+hNYuzdgugpM8a2HgIhAO1bF5sIfiqZ5YdC7YsOBvLbDSwvh5ZxLNJUTDf9P/cB"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586540469585_1586540513768_0.5476716958797017"},"_hasShrinkwrap":false},"0.13.0-post-next.1586548226274":{"name":"playwright","version":"0.13.0-post-next.1586548226274","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586548226274"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586548226274","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0p7uxyDcS2+T0hF6ohxdHhPmfSbw6Mq975ZgEMLxBs0LD1FLTNW2fziA9ZWxto2zvlPA6bvRapihQA64O5Whdw==","shasum":"cc5255368f8e090cf8c2a6bd5bfb5b94130c48ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586548226274.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekM4qCRA9TVsSAnZWagAAKiUP/28/SMpPLj1FJBkkGfGF\n26IfRtGZx9Jfta6ZE8UpHGto0yUd0yZwdLSzbf5exOCO0rUC7dCn1mGSHUcp\n5RFM8aywv9UYQxdZRu09N2rG+dhb8CO80yf7IuppzO+lRKOYhsOLrfxUFXJf\np/lTqVYYAYtKrHvV2m+i5i0xPK/ZQKm9lfiuWrasTUCIJGkSsdkOMwAEP6bX\ntlqAJoJDzc5OUZNUQ30GydSR9GBf5470rSSmIgjrqHhAWKcBq9iP+mTDfLHW\ncBvi5QrfWxBW7Hs/7W/A7tTuV3UBx8yrI76ND+RvUPoMWNt6hw2/cSVTKvEA\nhk5zIjZi92lUbu9hcGk+GPdeKIfKwzClWUwRB+wF0TVWr3jo2c3seLMTMUH9\nBbSILLNWa79YNv5j0mYw8sNFNnkDuNdsjgU3OmgSCR/tZZqogkQuXCwoZRzW\n+fS89wYjYgjq6i1OMWHlv/tIwcft1Oy1RBa8ejT4JSsfPp3dLsas7gMYUaWB\nW2B35NnqQqFU6U6r4waGH7+hAe/s543fPm6qKva8R0gz6Sh/5QwpGMdeNpjL\nu3ua6326GEXeVYCLq41wXYA/Ww3MVz00EaNq1dhK2yiFEnwu+WXEvjdeITa8\noBoHj8nn9KmvwZLlszBH/tikkiH0v2fjgYud/gOjXi67mz058Y5vefmBRguQ\n/w8Z\r\n=sPXo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDkf7qa+RppFIzSUWLr21XvQ7SCtk85sgpfNF/v8kBfwIhAIVqHR58qAAqQhrHAbasXgn2E7WLmLMJXMDP8UvZx1YW"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586548226274_1586548266083_0.728851465490503"},"_hasShrinkwrap":false},"0.13.0-post-next.1586554384812":{"name":"playwright","version":"0.13.0-post-next.1586554384812","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586554384812"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586554384812","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-yY5aQRltWll+PsOy7p+y2P4YfWWdhw1tsct0P9NBMfVmlkHsoYkSvJVrIjHqGuvpAn3+xW1lWkpxo+TLp7IGbw==","shasum":"643eb2be1b1249b90a953ef3c401f8ee756a6033","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586554384812.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekOY5CRA9TVsSAnZWagAAP+oQAIldUcmsC9kYo2qXQbVF\nHcQUdxJKGw+niE1ju8Www+3KryOW24H8dPBP82EH17ZAYxne1IMwvSmLwMsH\nGuMl8l0eQbHsaEMxnNFQOwW6qlE8PQFy0rYI5kYAUrImkbbvLlK6sSdV9Edf\nX/EQ13zHgHjOsgjv5/xWE8gzV8GbFcYwWrFZDj0g+PNDizca0d3KrjRQ1XNf\nU+d5kQMEUls5oD2YqjsgV/2eFp938rLA4QFbqrL0ouM5tsDEUln5db2lqfAJ\nPuIA7kSLTPukb0c0nXgNIEfs4MkCU0KsvBdujVWp8/0Z4vmvor9+1+WKygH+\nJeN1n657IBOpmph62+TJj1oNLJ8Mj8KuH/KK6p1aUb2ZWMxj3JchW0YFUwS+\nQCU3Wb8hudto0wUJAFiga4ZIgb0xmvzFpowsWWJv8Unz0bUueBnoH0oguCc7\ni+I2Lh2hBxBnMHrqg7Td+6wgfVaVvAQIE65qLrM2psqcU2kaHzGgyvVeLJw3\nOozZXyveYdwksCVLRiTQjL+OkrnvQro9gYFeNG/4L05JJob86eqa3aA/oaFd\neUhhdey9HdiBiVK5PG5bAnIoyDQtuOjnrV86iwFeALZ6YFRFwV3eeBE6nnl8\nEG3k4jJ9DfWlHTz10/vZT9PS/MQbqfEy2vxXE2XI6kKtBPcCvhjdTxxu9cCz\nJOR+\r\n=WII+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELV7dl0jWUWvX0bkZ+C3R7I6bJKfyHX1cnaXqmgDlRmAiEA68HLzWk6RJjOy5b/aYT4z2kOi6oAQ+pRulIRnQPWLWI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586554384812_1586554425439_0.4413632582152125"},"_hasShrinkwrap":false},"0.13.0-post-next.1586556346969":{"name":"playwright","version":"0.13.0-post-next.1586556346969","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586556346969"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586556346969","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4/sjiKoaFNVYYRY+XUc8ZI3SybqtufUzW5TgnaLCEKUIy9Jo3iU2LsC3sS3typhevWfvjlnRpLdh23A994Gnjg==","shasum":"829822f4b855aaf21e648782eaed46f7e05409c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586556346969.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekO3iCRA9TVsSAnZWagAArSwQAICp/oMKqgWjdwn8OcaT\naoUQWSl2sYucTKefgxtqOIKeQbzYHJ5oKHU5myd3VD4xgbVILx4FX4m1GmBb\neelEs2UybEIu55Y5b8bGyVXkoSbJ96Qa1P46k5QUG0Og3HjAYyR4F4xDVhaB\nlcRtsY5mqFzQp/3x4w/8VhF2fgo4Lz30LzOQKijednrm1aVt5prqr58+rRbs\nQg39VX3xjlV6b+711E3Q7tLEscdEe/wuEAUEusOLeA+SrF3kni3+PapX+X6v\nwF7f2sud3PRqIRmJIL9lmgK4YarSAyeQ0RNJKZ/wx+7tXzcP7By3JImtA5Or\nRoYlAUyhyycCr67GRMupTb4NuijIGSOYOrwK2Y3QRn+lmkycocYKw5Iud5vH\ntmkKhqcaI81nC693yM/CzGjuuvfUMKayxuOa2PuguOI0TtuuZcxgn004qpV4\nosGHGyLskq2rjR2nbvXdOSRox1KQoeLgi/cW6BMf4stEdWpMxMmZLmcl5e05\nZCviDZgtI+YsjhPU1BXuDhpCmktxvRlN7UhvZqarZCWnEkDQduBVhksEKm8P\nGvhV2EB2pQSOowHmE9thEPhSY+tLBEWgN7hYVjpgZHYkkPUdHtxFn6aywphF\nkZ/gYMXQ+xGCfvrRQva/jyh49BcicorZJlCGMkbkLv4QX1U2CCLwsuzgkTPG\nofDW\r\n=+ahg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwOMWb6jPwuQTj/ztdOpkzhFjhngYhW/egk2ud7oWXnAiArbRr8nsOkLH8SzcW13pTFeFO8CZwRJCPI6KxODa6UmA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586556346969_1586556386178_0.4187984361923527"},"_hasShrinkwrap":false},"0.13.0-post-next.1586564515207":{"name":"playwright","version":"0.13.0-post-next.1586564515207","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586564515207"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586564515207","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tIxxljZYk4AEQyjZPMtdapWjdtv0nis1QtCMMHDTfyWsWl9TTzQn8GYBrZZCdTcQp0hMf6yFu9HDlVa2Atj5Og==","shasum":"8e86e75577fd42914201d6a0adbe8a8ff9baacb5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586564515207.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekQ3OCRA9TVsSAnZWagAA+xMP/1BNCNmiS+X952axu2zY\nrRaOCZdDCo2iQglaZNdJ+p8fUS3kSprsKmBYPGlVvdOn66WojHgGV4ifbKCx\n1oY+67b+4wkdmmqvPUhjSI2mGX3X94OY3D+i9NcdKDDfZJpCPqRWI3f/4CdL\nDJlovhqZTYD8AmAGPSe/gJJKLSofXgntOTGlZ4M2JF1t8HGYsjrR5awHqnJB\nU7X3hX9CDspYcdURP9AelNrd5Cllz1BfjGTxAjm6WkSSo3//zzPe5SPCqfUT\nF7ueiICqbt6SOYOxjmkrytPeDvod4IHL9grYmEvsinUbiUOtLW91oTSIJUGt\n1CYYzpnIP2P8MY0DkiJLY755/0hAxrxWkttLtVXSa3iqTr4+VTGD7nz/pS97\n3wO9g1acua+8YH13O3Ky2GKhzIY/9jIy/h223dvqCVOwYBkzDgV3InVBc+Nq\nX+lt+1MaLOEbmkhgAxXUAmcy/cw+c6cCguPVa5asCpCBCkp1Wz5PNXzbtb8Z\n2N0wDtBI0N6BqbZe9TbjCcgUZ0xOdV/2ykJc5EC9kl52z7itruh9vn3oGaM7\nE4D0J3YlYAu7UcQ3SeQQBgIEB8c+mSiQZM8C34KiXpwHcZSYVkeW9GNs4qoG\n+i0ZIDhVmLF8T0DlQtMmYPhdH75w44V4UeSZiP0ta9tm+S+hqvVgyxsO4HLg\nJvjo\r\n=DiBW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCq8NNXdkWB+uvjxR0fEh2e2jgFWZcC8EE2r0VDD2b+RwIhAJHOCoehAZkK2RVxfqOJkSSKK2+u79hxWb8pmA8ozF5T"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586564515207_1586564558041_0.19107134858951436"},"_hasShrinkwrap":false},"0.13.0-post-next.1586577152716":{"name":"playwright","version":"0.13.0-post-next.1586577152716","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586577152716"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586577152716","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-X6Gz48zp1m2fyTa7uHzCwi2qD1OvjHqIb1aWY5a0Dj/SL9C/5AibI27xLcqy8/w/8twZJZ2ieoygjEz69nqewA==","shasum":"34f9a7c1ab1c2316650523650af79e017028694b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586577152716.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekT8qCRA9TVsSAnZWagAAA/UP+gPRnHHBQ7uNxNK6XPXx\nqAVjkev98z20Ds6BBCfX2yv1Fq1qzAcZGFf9KW5QfmR4PySm6rcSr+IxJn8c\nPWcved4Z82XA3uqfP0abRWzNWYtIhY7RxppFsPGo7wqbd5cWMXpD2+3PTVWc\nZnBQx43yeJgtCZ+jXOpB3wd5OFqOFwsoSnOn0/UDGzv1+JwSkoIgRk60LSxy\nEVix/92+AzN7dOBuwXomhn5cq70WvC502fXeXHsexFPw2WxRB9WCaV4ez/4T\ndbjYlRIb0CFICJgTZ/Hz6uqm8Zt4LNY+ky9MLsOjHE9lzQ95qtx2h90zqK/s\nvwoUnj8UJ91TCc7Xm2tUnjrJLoPzPFq9FpsRzKaRaFrODvJdCFfND9JPDBBm\n3BT1R5tJHPGLIhU39N0FbAJsqOeY1hUHGcLO436wMDim1hTmHFA1cK0BZfKr\nIfBnZiR/yAC6E3vnk8h8udPDE4r+YDtU3tylyG9qV6i+X4AnTDILmFcLrDiF\nHGbrnuiDqcfQTC35H0KqQVYWjHJQURjVMgzVuMvCQ0kGnPnY4gl7MWzYRqJ/\n7bGLCgbJ6ayW027I6SIVMiQF5Kk5NFW9vwwnZ2mPfTadCO4PYnMezcV9mJ4N\njYgcEJjk3e1FClniKIHnaHPfgcncFu8oGLBX+iCIflV3S1vPMqUg+cDjnX1L\nZJ9a\r\n=3eel\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcoJddZJQKUoIKS0PCVt5Mmn6mf09aevnuDwnOS6FE8wIgV8ZFHRp+hf5xjr6FdLCR7uVM+wU+Sw/Luckl1BW0PlQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586577152716_1586577193493_0.9779204618766966"},"_hasShrinkwrap":false},"0.13.0-post-next.1586578942237":{"name":"playwright","version":"0.13.0-post-next.1586578942237","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586578942237"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586578942237","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8wmJMVWMPblgZxhEmITlyA2UrqvK97qNWVr5zbOGhcTCQseADeNzDVaes5vyX5K9MZPelVy+umwpQB/Y5sfMXg==","shasum":"753ca458569439c9c740c823326bda90afcfd8ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586578942237.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekUYnCRA9TVsSAnZWagAA2hcP+gO6amUs66bcMA4UzWAU\n38pSSYmj29AhBd8ku49YCvsC45JInSYaLHgyy0WbJ9bMX+si2kAVL21qsyjP\nxtmSurMuR81htL8/YZEZ+b6bGcOJLI6YV3+rvCzhi/UDkYS9bk4DyZp1gvbW\njg9rj1VXSf+SSbNTGyxZE6NfNnGF6+8IQxVV0ed1nolHKPbzCnuQFYPyu77W\nHSuixWN/6WR1h0XOpPncbi6+P2o5CPUg/iKgpYHft99xIISqeg5/qRqFExMH\nQZQBhKuuwJ/pWLbmtzUtwqARvHaDDCDYLVDm5hKlfzjSI1CmaR2paT4DJfVU\n4KFwOgkuMloe1PwwecHPaZKGfLMEi1nhEuTAxOC+7xrbLy7fK0PXuFyWWAj7\nC66vEqSH3Axwsl2Sp0l6hjym6fcbTuAUUEHgi4AsnS6E6PtnWqvwNPgwmAIv\ntLQ2PyZBbIPRogSP3jPUkY0zkR4oW/28vz10sMooXZT49lTUGWWv0ux+EMnn\nzXxxEtWsFxxRg1f5OS6WpxsoF/Lusn69ci3B26UuQt/c2NIuuqZFdJbQRR5W\n87O4op5ZoK72iELVJXb6nOpq4D+RHfXu3fSP5V1gEmxvSyCNA9lNXo9EzbKN\n9oYUiuCtnmPdq0aEXGvPcnjOCQdJ3f26qZgHT+KzcKuB9vGBAhaqyInDtlRl\nmdIX\r\n=I4bx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGoIYJECrE0SPVuOZaDre+3OZ64RADbM9TVkEA7NobO7AiAVDcS6V+nPXzvX/d00ICkto6NQd7ZeBMqAF4zMjeTHuw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586578942237_1586578982458_0.7211202384901125"},"_hasShrinkwrap":false},"0.13.0-post-next.1586614875589":{"name":"playwright","version":"0.13.0-post-next.1586614875589","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586614875589"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586614875589","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-J7jjyxdOG2LXMfpF+RR5u6QR6sGHFw6tqMU1V7f1grJ7Dc7A2ZilNhlPeLBAA5WktmZIdm7vGB4U0wwIS4a4Cw==","shasum":"fd0653793beb5f3d57a78a42f33e31df6176f007","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586614875589.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekdKCCRA9TVsSAnZWagAA1RcP/1l5cqvOaMweETWpnr8S\n6xZwRV9josT6R/ax25dzarleXp9s9JgJIYBE4gJOKn4OQLVdt/MUrPyDBpaU\nUSc1O77fA9wlEEDYVKBar+e7N5eL6vk7wISIN/xJ1+civDZp3aSuLPvYsC34\nyG+AAUJcZ2N1Th5ZjzrK7nJusv+62yMcWGAMYRZvDie8fnlufDpjiS+7O3jn\nm5AIBW7t4Da1UrvcaXNFDnFQMlMTfSoL6yRnvO+7CoA50ESR+whPgsNbX/np\ni9BnxIBocAaa8Egnjaal7HV73bQKPZzWBeR5a0snjAdenr+ywn1InQC/zadG\nA0ON4E5YUmfnAUApVKRNjBKeQjiX/3KNO71qtCBIzChOQvz1ECDgI5DOtT+3\nBPnVSC9sxR6HvYccl8e2aNbse2KFPMUHE1FLFSdxl5Ih3wzebulRNKxEDXpo\nfHbpACjdbSIot9ceFjuPRVi7uG8I6yJkcfW6UyKTdkpqTwIUXh+ZmScckgEr\nogN+of43frMCx3teWyyQblodhlM6SGwHYrCq6bG31SK8kM3ZJnufl6COCXRl\nYQI/k4K3eTcYENYLTpzpXMxtzhQs9nnWJWYZbuR8ZrQn1VHe7gNpJr3zPLjx\nvfwj68mKuQRJIM7k8GLe8L8G46Bn6p15FEL1qn9246x6Mv8gB7QdrzYC/i/n\nquAp\r\n=G8jz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGOC8/LObgnHHeMP0B1Dxs7finvaSSQWMHznSbPoMdttAiAmybSsXxoaQLuwUYvJEHOeYw8VxNzCfpOwO4tHBneUqQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586614875589_1586614914336_0.49650372256690933"},"_hasShrinkwrap":false},"0.13.0-post-next.1586731814931":{"name":"playwright","version":"0.13.0-post-next.1586731814931","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586731814931"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586731814931","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Kpa4UMsOsD7s/koF5kkAAbjP9pChHLhBc3k5toD7UHoDL+YzLtsNalbd3YrE0OVGqCZnulHI/JjkSomlOCmAPQ==","shasum":"1701731760dcba837116439fa8312102419f5388","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586731814931.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJek5tPCRA9TVsSAnZWagAANHcQAJoSqXA6TecKihkbzfMR\n6a9xOpQ6caJHMJ0NrNCjPTIRP3+aWddfcmAeuCh2NgLWGMsmcPbOVLOoqmSh\nUsXgpwmeSAG4Vd50XdZ4co0/mDCWjWxzyJJfvNp0tHIXGWL/oNb3A7o10hgq\nVskScuwkENFH8nRXqGy7P/fps9XB3FDw7R9L7Tb8RxMVflUEb6K+WQkHzdZ8\neecKHykql7NuwwHjc1VBP/aFG0n3fzaymAjDkxR6D6RwY4GSTZOCc3+M//6z\nOOHDuKaOR0QtwmDtBG1Pi8U9Wbx3DggoBdmN6X1zyjgUuUsDa7qIHEDqfK+g\ntgU3LdPR4SmsRKQ1ZbZndVRjw1e6xfNXfnIlX5HLe7h6et2YRh8lYgGxo+4J\nkzc4F8zCJlE9WEex7/p8VzzuTR6I1waZdUdg7mXunKMu3Cs0kSBopLO1HcvL\nNvP6KkIosjuf/ZMlOf7RLMqq2uwBSpRhjbKbBnmbmd4tU40dZtzffr/tjmo2\nk4KGT9PZZ2GtTKmF0WVayV07advI+izRfXTe5ucT2E9xEROdeSu6kHzLF5CF\n4An5uJpvBc7kATf0IbkIfKmxRyrnA0BnJl3HPN+bMdyjv5d3Fcy+6dNjY1rK\nL9Q51I/p/gshSaGEREnMz7MC4LmGfRT6xRHpzk754SLCA/OdYnvmGLXKHDPC\nZMmR\r\n=stez\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxS0JKXHm8FQXOWT/2QfxTK3iu/VZoz8HQ8Y9UVxXzkAiBxzJ7YfME1WdEx48ZdFggNxsHDwbMJFEYeVd1GvWJ+cw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586731814931_1586731854968_0.9977430804930625"},"_hasShrinkwrap":false},"0.13.0-post-next.1586743666093":{"name":"playwright","version":"0.13.0-post-next.1586743666093","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586743666093"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586743666093","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1EV6ZTzvzxJPcKoR688zlymPN6BeeXH2mQXWTvadxGW1vFBRsnPOizvWSH8eqqv08A8FwhZLismPBLdmMrJ1qw==","shasum":"5fc75765b2e85a0f1f278610a1329d99cbb76f0d","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586743666093.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJek8miCRA9TVsSAnZWagAASNgQAJF8xyowV92K0pvLl6Re\neIZ8ywkvwzHBDd44/42WQ5iWy4uRE+BPtTXm/OOsTwEdKShQhhSv3W6uNwj9\nYvswonUTjZiJ8vBWYRzNrakGX46gkBkBiSxCW7hfzTOJ13vPAi+/UL/GMwEH\nlynBlpa7o5uWuvncbv+zlwltHGchiKxKkIpm5BBLKlhegHjO/bZD3XvWB/O2\nf4wl1lKALJo62WgtHbBwn3XV+OcE7ZLBr+MYgt2Eyqeg7dz2fEzdfN+4Os+y\nIC2YRQD+0OIwZBlwARCwUsw63VFG7yH/wI3S/Hx1tWwaSrbP+H1lp1OJ583I\nsTNU9u+VlbMk5c3IYQ9feP/loP1UZYCNmZ8DBhda7rC/nAbnN9/b01Ao8t1w\nSU/ytfKmoUPdAvbTduVC5H2tGjr4lk/II6ur8LVlkNCVYe9daD3Ci+rtcjor\n87BBW0hiUtm4Sg0rnO5Dck16hMlgwCkcn+0AwAUH/xfTDFPdb3j0tDZLX94O\n0UFCUm9/6yhyOjd8HP6A07kSG9Cx13AjbEpwYxsTRvOldhKdOyXGLMIPayhH\ng8PFMj1mIv0yyArjpGx1nUD2Zkbl2Mct4OkODs8j2EOiLbur5o6/uH0O/viW\ntMqyR8dgiNC7p8fOfmiwEFDxEMu9vrsU6SVouRpZz3ycFuw89kvjq1bias9e\n75br\r\n=dOtd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaOyjfGArN8RBlp5msmN4l5Bh0HBElpd1qTeW7HeLvaAiAiciIdbz2Wv/peNvGJiH5JPL0x5PeBATX0S4zTSRn6EA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586743666093_1586743714160_0.29592856917882693"},"_hasShrinkwrap":false},"0.13.0-post-next.1586756451055":{"name":"playwright","version":"0.13.0-post-next.1586756451055","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586756451055"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586756451055","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4lGWlBjKz27Wot9MaMalgqFgnkqmUAm3h0SmA8jveyb4Ya7CxUp2SIzQ1dgDypDllTRalr/Zwcouzqtw3NKhOw==","shasum":"963e084ee7f47f974a790f7137660f058c4e2e51","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586756451055.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJek/uNCRA9TVsSAnZWagAAemgP/0D3moWbWB3lcrh9qk5N\nO6i3vEwOUjalzNeTB8RJBIA8LBpgbn1ZoXqUaahcn4QtFSEYXENP/jOE7HHs\nOdi2a2c/kh1tffCYwHlDsAWP/1gBtE1KF6A4OEGdVJyHSVj3IuNUUmbKplIa\nvMqWSyiGMXLyFTpJM5BLvZCG6q4rC/SjBzvRgWzSFypAzQw5PRm4w8Q4qwm3\nJKdtmx0L/27cwdxtmwiUl2uLtGYcTc0cbqYkSVD2drdwvwDWRCUoRk11FP0h\nXZsDEXb3UlhRx8E1P/hCYdETBPr4WdqE0pb6IW+QZ6AyKtqCY3zA3yz1p7Vd\nTnjbJjKh2jF42eVyeWJ+4Xk5DiRfKnfQV2+VHuKgJTPo+lrpOr6egUah6nzM\nS25GkEzbY5hU/lzYHgsG4c2DK2Oyq5z9HacC5o+pN9Tk4eV+ztIO3Z5H7xRX\ntk0ptP9u2yQU8iqY5sTCcgn7CMy6tblCd96XPiFqR4RWLEXIPOpU7Ovi+4Dm\nJxjbKmDOT9vfah6Ha9OP6mU+ScI71hDhC05zKUh635uXWUOLvL5wtrQxK5kf\nZysXcJjSYCTpVnQKpXkoL6IH912XkAvAs0CoNz8J1qzOz9J+JnO/QLwM4a6E\nLDV7LUzlifnUmXNIJ5Yim2TneCJ5VGdTiSa49ZJzfjoszVd3r8VXr+7Q6uKJ\nblm2\r\n=8FWt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv7MfVYz8K5JJ9HZF0Pq62GXqh6mFYUHUJPtOPQym8cwIhAJ60Kw66NuASqhEuLbwWWq2t+psM9BoqpXMhOtsEVsQ+"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586756451055_1586756493192_0.9085157769414582"},"_hasShrinkwrap":false},"0.13.0-post-next.1586801783987":{"name":"playwright","version":"0.13.0-post-next.1586801783987","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586801783987"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586801783987","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-o1T+ik/cZFX1Jg4lweysS49HQwtcFpTN0ZXQSqJP+BZTshSnV0/tS4fKV/V7p/oaMI7hTMueM2Ek8kU7nStamg==","shasum":"d4420631bce7d63ccd5b525bd95fdbb78cb900e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586801783987.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelKygCRA9TVsSAnZWagAAFFsP/A4d/rzj8uLMFgrVFQ8e\nS0zn4mF9I/h1RyYAHS9atVXMQnufIHaxNzrrgDIx4C0IuPgVVDPXRpojGGsi\ni9xpvCecL5acyvmnGjcQd25Y0aJeOrtWXUd8cn2BhMQXJ91VT5cHXViANw4L\nvCRmw0Ax8/bzTdWpmd0Eu6Rzw0i5N4yDOKSUhLmo1h7FLK08lX+gs+ze6UqG\n8sAKXPmpBtFYLTxVKYHWRlXxZRljgJAmjSZEan9jJxckCF6gMTFW0wmbXhSz\nbVQmh5fBUT8A9/JuionzQLYTCuGxJdY+AP0ZDIUT2Isp2HM10o/72XpafD1i\nqEJmXvJe1MwVujLwnlrgds1tY2hptZP0SPgLoSugnQTCRzOhk2G4s6M9803M\nkLVJ44s97JkQzkhmh36qmdVqcngSYfWMvRPzz+BW+8NPURoBweGtGDay9uI4\nLupgOkGmrSOu5+G7ps6DFGKReskJmnEKRu+bZb9XL6Tfr+Pv/lu05IHoxQUm\nXAMc8WNiU6dwDHQpPm7Uq23If5oMukTV2yUTps1zJghdKlG2Aqt1O3znGB07\nyZEEsftbHfNOfO/PNawdEv+/l7wayXfeFZaiKhxJVZeU5KTyu8RYLipU583e\nNhvtKc5ofxG6EN/LsJOYdIkwS8zLnAhKKNxndWE2vLOBUMAV4N8FGjELYDQZ\nhd2k\r\n=fOS5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKrGiFotRyoZGjAi1nF84E7r4baqEhnkpw4o8qsfV2kgIgFm2uyIEfauFmovh6r9WsRZhwnJFoAhl2KG555XT8gY8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586801783987_1586801824408_0.47629378188828264"},"_hasShrinkwrap":false},"0.13.0-post-next.1586803908165":{"name":"playwright","version":"0.13.0-post-next.1586803908165","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586803908165"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586803908165","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Wv3OVJMmmp3BKrv2VUU3iKSjGCML4Ln1o/umgurn7vOrPPlB6mkEd/cpHb26jD9R6RhM6a92yl6JotY7N0uu8Q==","shasum":"c98525553a7e4ebb1531e71d1da64e6b7dd12092","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586803908165.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelLTxCRA9TVsSAnZWagAACwsQAIz2d2XAsjjrQFsW+8WL\nLXVXNOq9oXIXNwJm/lw0fQ0apm7mfjAoWC9B9u5ZnHQL3N+bbCDzWKENq/rb\ne6rDfcJqjfBTs0mXVsDvAu03JskmxgKupu8YcO6qpQcxuoJ5rbeHQj1MLpXC\ncUo4Biqnc5/M1dv+Z8syhexwfV7FhqBzhr1/62uRFJ22Albd7M8VQDaxOlRn\nqhCvg5VXfdeOXpt/Am+PLpVxeQ2Lw2JTJoNqP0LSYoPsAjgmFUSGJ/HxNKqP\nnHvvs1U86Logmwxrk4xMle2tSdg0habJtY31BiJ3Nlq2Pl2ErnjVedP4GXvg\nu90zP5CihtReQ3mL4dQvfGK4DyB6wL+S8mqEUL/YGufQaGi67VpKzBcJxnde\nyVZXQrHM6R5diyIQGCfgNdBBNnv+yYlHeq0sTQ4mdW3XS4f2+84WmySfDK2E\nkuWH2BGVEZ9J86HwKulK4b4qk05+BqD3viyMHSN1DBZsPv2sq5hAUzaFzJGF\n6t0x58zvJ0HqKmRlX4+4AJGPKEr4YDnEP/L0jj5Z65jTEWasJI9l/ZrCsRLs\nBbihUUsOOXb1k8JaHN6W7PAyZTAJk8wuUmP+bQBjvBG92xRTJgyrktxD0PRe\nrPNa6oRWcMnP1KMA72HHUkAW/IhpsQKdOWEvAOtAbrShK4cfupBqX1QrZoI0\n0Jml\r\n=pcfL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCp7jwp2hW9eIcsdnqqccrPMjc6kXc9oAIjXglwg0PvfwIgWAzxcXoV3bK2gwLij8HW+tKl2iufVFEu3UAA9QPNwUA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586803908165_1586803952993_0.4039894201988419"},"_hasShrinkwrap":false},"0.13.0-post-next.1586809535154":{"name":"playwright","version":"0.13.0-post-next.1586809535154","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586809535154"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586809535154","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5nQItObMKb0OMR422Q6OZVaJv/3qkdQ/HvydAbbntKkUiF7yxvIemGrCY0q8W4MqV0z0EU9z8Q7rsEtvEdWPaA==","shasum":"7e909665f1f606c40d6af38e3e4105f6d8685b75","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586809535154.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelMrnCRA9TVsSAnZWagAAaskP/0BubBA6mvRJWGCnPtVP\nSbygcwG/DnpXzP5IiDYoyl4YBBMxVfK1ZAbvbVzLOnn70ogm74Wqt97YbHGd\n/+BSjLLyEpG1vPTMACLRX1kdPw5CgPG0upwQr5zK5V2MktibDKJ141up9926\nYwxeVL9Al/w02nSYrMZDdrI3dpw+WCFSCXZTVUoKgU/WS9mU/sjOPD1I+4in\n+u+rAET/IgZM0G3oXxJDiYf8X6EmJ1UVjI2dI/JfWnKbzJ+VEwOQIcME4zCM\nlPHibvEFu0ICSySwSFIBJxmbrTFloNmPs6vA2bve9KaZOpdSwl6vD1aKlmHD\nqKfNmGZU3HPYI9OMl5s5rHRml5gbdI7T0TtY82Ye80uItXMOhgMR6novvNId\nABiTUBiuU+IsZIQLk5MtiBsnqZ/Q6ThNOIj9AMMHgJjeMBub/c33ujkE3FVr\nOxTjQPl49vmA79pT0BTYbNndt5ftLa7f5JZy1/hlSRjVhRKwFxRrIDv8S4bg\nwjeCRyPUAJmRKT35jAiS4k7l5GoJL/jld61JS62IeF4rg+ITdtxYfXhL23oX\nh4LydCyomTwm1etjGGlm1qbAL9MyCRbjVHrnkVAYSBG8Fw7IENstbUHCvSLV\n+RWZeptA8xolPg5srzEtKgUQxeDWMO1XsOnsjVFDe7BxzSZe5d9//BAsONeY\nvusC\r\n=gLIh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIATXBuxaSqo1in6ZAdEsFXoh6e5vlB7iwFb3EePi0jPeAiEAxqr+PT65cr1IdglgTwQfSiCn/bZk52FphOhaShIuKw4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586809535154_1586809575347_0.2261597564065374"},"_hasShrinkwrap":false},"0.13.0-post-next.1586814643968":{"name":"playwright","version":"0.13.0-post-next.1586814643968","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586814643968"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586814643968","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mhH6C7K6Gt/CtyWHuT5C+bEc3XtOpKcaCJa+J1bac5DmldO40JA18PBe3mUZ8uRpuCJemao462kt3p3oyHib5Q==","shasum":"3b7d36886fbaf39f2dd30a663d8b8300f865eaf9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586814643968.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelN7cCRA9TVsSAnZWagAApW8P/RuufuBxAlibDrJtFWly\nmkn7e30TfpdAahNIfDy3AoMYJudREt0yahfPWGTJfY8L/wMKFMslB70XAh3V\n2KWMHvoG7jf3xVysDi7z0v4cm1ZWvgFHL6ZhWoY9hxOcu+vGz9keXZsqmd5B\nSmud7vRMzXtjDqAoSvsWfs/KuNKhXvltZT5qZDDi5VheD6wnrR1He8rfkal6\nsxxvMXrTwugsDpK8SS7Ms0RNNpyrk+cCCAUIZzkdH03FwxgTztRaHxdRRWKJ\nuYlDjg0Q+4hOz3w9B/6IEIfRcijO3fpckc6m6oOrr3jlEdX4mWKxGCbiZlsU\nQruKRv21q1ItEcnfcWLl30xVxiQ9nUPPaDhEbriZ0QAhsVJDulQi3ZowH1+T\n2duhyem3JwB2rM7e5BHcu0jiS/7FSOFuxiYlxb146wTxlC4RUBsGDbDKtAAv\nKpZKvlJfIZOCg8Wtjv3g5IjGcIBsdHbekLpQPKX3fw++hQukcRMuJFoJHPvH\ncqkPcXqFzD1frwlv8Rr0P68qnOvAYb95QpyxRtOlsodkH9F6edxLKFWKub7R\nFO2kk8Qw/5XZQ3CNdmbX7orMAzU/DN93ZtvsVT9IhgBHStCgLByqebK1IPsS\ndszwuTaTFIWDUxh5f28Jm23NNJlMc0ab2K3NUgGynhIPBl6in+WTQ3UaZdy8\nhNqn\r\n=gWgD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+PJOWNprmw/jRap6s6APlaWC61WbqBr+3mgkB4dRD2QIgB6i8xr4dUgIdr//8yFAnwEAEkpZ17CFbXGcsczhbcpM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586814643968_1586814684023_0.32409499774461725"},"_hasShrinkwrap":false},"0.13.0-post-next.1586816241360":{"name":"playwright","version":"0.13.0-post-next.1586816241360","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586816241360"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586816241360","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0Q7kxzqpFrNAD6OjajSLk1878VWg1XBAMDpKPzyaeMFbS93de4xXvtzC9bpqxHwoT3Jaj/eHigFJJ8pH5mv1gg==","shasum":"51d1d0bd6cd10b7391a7b42106c309f566ec52f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586816241360.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelOUbCRA9TVsSAnZWagAA3FIP/0YyLkxrZd06q3XwW9qC\nYa3oWdGAbv1EBuK/hkWrP4tbF6fq7O8NNKP/hzOK8TZ2GhFuMjTrztDVFT3q\n3g19qj/C3J/88aV6O+baMed55BLAHmiYMpLRKH2J7EaAzPii8xqYeDL4Q0Ih\nZFUOMnC02+Kzl1xeftAvXFB9pjv2ksmih7H0YoqE6CUhsvJQmmzHj2EjzTBS\nit0Oum9vxKEq/Y1DDsT0Je+B8DYlMbsizUQWRv9gIUQPNHdj4EokL+F7Jr7H\nE3iY1h4/hGG8PmPkN+rnNIfcsHU7sjlGre9pPZqOy/ooIZcXU7jSk1kEKGCG\n42Y/H5j3kk9vYb8Rlxb7W8ut4KGiybLtI7E6Dz1ZWpEgmp2//f6FT3A/Dbzf\nef+yr1yreJAmyHPFV1qdyrJaGYrWBnvpjWhTPBnFHe64kmzBM6vGDHE9Mjs3\neDnmhduMPWheHsFkGesj8xTuJzH7D6j/utY8uvDJ5QF4y3BGjzzxthJEYKHg\nqxUxnnc6lR8kDRUToKZK6ieW011GnUD5rxKAyYr5+tlHKH2FwqniAZbR5Ue6\n9wKxhz0PnHcH0pvMBI7Djscpr728lxNE46uXKP8o7sbYwuqVfhKT2x68QHhr\nNcYw8Lhh9bXfzhsKrkLnwNik4/G+nN9kqOdwv9qbkSVbq5ntYYBBJm0RGbUM\nnhmP\r\n=Yi4z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXlHdlqBZjPhX45TZloYCDdSL5FlyPrsIeWFJcxWyHaQIgCWVCpp0NDLWQjvKKG7nDWhxxT128J4cAmU2yc44p+nw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586816241360_1586816283029_0.577322143503997"},"_hasShrinkwrap":false},"0.13.0-post-next.1586823495889":{"name":"playwright","version":"0.13.0-post-next.1586823495889","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586823495889"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586823495889","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-myBaiWHmQn6TZQsn2ANG928P8O+MBKpBY1DDN/xurgEmB50XSc0bEabNTV2yz5lnaoKsXMBn6I1Wn/jZEAUHyg==","shasum":"9ca4f68858b1904b37ef25a2218b59cba31da920","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586823495889.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelQFwCRA9TVsSAnZWagAA8TAQAJCfhZYqrs3fNLczUkTP\nm8f/THyOljCDMPrsDtabXUtZbRNZLLYT/9Jey4zUr/DBLRHok6iwPdZsEdsb\neQw2bjQIs39YnZPTPbMUlsQZUt4PK3lVk2GOdqsaZ/j6HnmmLUXLQf5oycgW\nQjIljpXCaggU/Yxb+Y2FNRWXgvEgc86ZQVXHc4IjieYrMByNykCaC5x0iWwd\nEov2rkk+AOTx0MJfoxPK1N3w68Kn70t23qC+2e0viHPjKQmTvLJC4rKd7Zo/\n5loyfU9YdYat4mlQqyZ1IUIcyUawbfbrncODBwNumgCuGEZAA/d6OSlYwqAM\nMuioV9gOuoanC+b/Q4PbuYxVL5fnHgtPupjbJ2098bajqTvhqnx4+DruzexD\nNAgBIpucyvNDOIdUIXDYbLINvdASh9bNaOkkSE/iiFodK6w4rc1FNaxcJ1+3\nF7DyjyKnu0iY9jij63G7sXynZBOH33GsTRu8YYj7BK16wUIKXlal3n1QWg0M\nL39eCMy50hSgJLmFKB0203D74iOLO9m03HtIw2rs+Q9eIh8TpieND0/FatAP\nOKdi8SQbrBiHjTYitqzsMNOiYBg/5pcZFYr/RRYIijX9zBwP84d1hC31CWfo\nJd6ZhsgWEDvB6aUu2evK/IM3VKf34EXJDvKu5AfSqk6QMGtPliAxDSNxvnV6\nk1jn\r\n=uSY9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoSqH1KOiRQKGuTqYfZpX+GUqbuczLHUsVQiFQkrGIRAiBCfgK/DhHu6cN5JMdRYjTzNjFtTxGFjNYwC895YJbQVQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586823495889_1586823536094_0.02686316666200783"},"_hasShrinkwrap":false},"0.13.0-post-next.1586829000963":{"name":"playwright","version":"0.13.0-post-next.1586829000963","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586829000963"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586829000963","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-v9ezuaNH4F5ojwcfZyqpsM4J11hAx4KQbXCwxEsmF+6M1xDeDFRUTtzdzNXW6QPU1/wmDXDR88cXZRyLq3znxA==","shasum":"e01eccafb2c40447b556d5de4d2b58eea02fd4fa","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586829000963.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelRb0CRA9TVsSAnZWagAAItcP/RmDVWI0cSrRiA8Nt8jj\n/jp5KEZddVlXUT2tJEFOXONUApT/bZHnPRYBuZQdJpKsfO3OywjcjNm1CMYj\nF2VJ1tsXgPYL0T9z3RI7mWTM4Zr86oBayFHqEkOzUf16fwVRrqlEeAcZNz76\nIriUTrH6t5sSqrIEEInjEz7Q+wHrht5Yhp4s1S6emArRXe4D1PCbhnFrHFAb\nC7PdUvAo0rxyS7+5BUX/TP0Th/IpDjYYxIJjBvsRwzEdzXhEk/37996jCLsa\nwg3w2YR71W+T81t9DmUdmQqdaxDNxvJ/Pb6stfKuTWEn9PnS+XmJyAC3Ox3u\ntF3fE9rY/H3N1+EbyR6zwt9lPktlcXYt2YVJmn7wjebUVKXomaeNO0f1OGbr\n0CL3aiVQaPurpSdL/897Hdrtu39lZPhVVGFw1j7IEn1VOoo2SbmxbTtSXQTw\nbBBWOuP8ShqYsf175jsH4JLIty7lKEMP91jkLWzKT19OlVhaziZ3cyWYSmBf\nBghv4GsQbjrXz/tWUrHlU8jlZf6PreZHGIpVFXUhWRkqQHg2nGqMYAW+6f9j\neClprOgiEzJ59FgSofiNlOczmJ9RKRPvFpqi/NT1dFkwiYdcfo9OYQFJ8Q4P\nStKUuIpB2gswuQ0PlsYC8jL2kGaHJMFEvRJb+58sxbTAXFH3avHDFVjiCwk/\nB7Ue\r\n=DQHh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFsZPGSzxn5PrF+szvqXnJOmvSeqIWffeRdV30b8sVuBAiA+eGWjLz+GhKLcEWje11nTBBkzmrg9d79khkitNUlf0Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586829000963_1586829043907_0.8441564513152175"},"_hasShrinkwrap":false},"0.13.0-post-next.1586830659323":{"name":"playwright","version":"0.13.0-post-next.1586830659323","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586830659323"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586830659323","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3gOe/nXzLgj28hMnoRb4EzsABBgGEVVMffqKLQPRIdx/aqBh4Fe5Vfh3dZdNBdyFbr1NzubK5Es3y5ap2V/PAw==","shasum":"8f74b05cd4ae68771d3d447e91cfa78f858e94e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586830659323.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelR1rCRA9TVsSAnZWagAA2jAQAIdDERdOtIEFgbPAHBWN\nqpcAEJEtIbBqY1VIbjZ7lQxFRj6TioxGJQNXqDCpMbx+/mwFPyEn1v9kuGVc\nlI7m5RinzE/6yhR3i6D26yzzv6L5whXZacHCwNbbovJAf7tgocWtZJ/D4VQs\noYx7jVls08U9UILrGZT3J1rGWJGSC61oPHQTe6WBc1PGbhkUqG6aCbYN9nxJ\nAORRhMtyGj2SmBa7kTUNHmRp4XnGXZ6rz96IWQWZQkvVj75jMyi1vOx0ggMs\nJshAgQqBVOwUoY9xVl0wldjwMMHDM6kHDTnfwbAZS6JpafshEp1NScoU1puh\nNyuKrDjYb2T+DplpeAag3ZQCN1o7ke1f1SNxvEJ5Vf8KrlqnEciR+ZU4y3De\nATTa/UOqyGYSQ7jXLuQqvgznu+aVgypItokXxq7oDvpL9hP5Lk+bAIcZvRqc\nyvnbLhdU3QWqq8kn65yn/M4ql3UYb+6gQHU6AoHE4mucg4+7kdpzOPfm8kcX\n4pNpRjf96lA7yqbJ6kNLKl+al48YL45kXwJDz0Pgs7XK8NpjMcyVWPVwfWvl\nTahQVIoWFE084dPaDauj6NkTOT50lhvr0tg9UFKJg865xHkiXwbtc89UqOtR\nJUuw/9pYnJCSOyY5GU+zmzQ2cRaRKzFhtJmeGODhL+o4D8Nc7uBQGccTwqyE\nBqMT\r\n=AT7f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUOzRak4x+2BbsLvw4MoOJ9XWwGxiryag0djEgbKNk6gIhAInJ6JzjlCj0Iq+IxFsJwHaDl3gkXzHhLAgwBzfFQgRC"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586830659323_1586830699489_0.06498263762935341"},"_hasShrinkwrap":false},"0.13.0-post-next.1586840565070":{"name":"playwright","version":"0.13.0-post-next.1586840565070","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586840565070"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586840565070","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Zhk1U7EOQUNlYjn/XCYRDRP54ZSCp3Utho7Q9NXD73OwzxNyVVackGIJbemDdLH7tmzcaOdDz/ZU5Ov75EkG0Q==","shasum":"f2f1f69a7f6f01aba6557ac99d4ca3dcbb25e4b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586840565070.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelUQfCRA9TVsSAnZWagAAx7wP/iSa+BinxiWe8tA7e56F\nHKcv4g95y87oiZcXg30tQgDacuMyyHhVYi41JOOgiAG+RhLbAt6DRd/DS2ZT\nDdJ2i9lhw2RR2/91fyrGHWfW0wspooZjOWoGeXsUJj5OioMuz0dSpfgq8Xwh\n1C8MtP2cy2/v8S3VcgulCICoG7btVOt68+bLxzjEi0kLKLzwXvJUj05G++I4\nZe7JfItSRm+0B3g2sM+Qqma7+zwthxY+/VPtIubHuEpNHp1sOjxTTq6VArZu\njcQalFbu6qxTtJI4JxOonpsDCikSiExNZ1+70sucDlT6oCXedNeZzA0KSxS9\n+jwRGYcfSVHBYYB3EQiLbm65fuC5FzNhZTyL0kstPUSHC1cszXgi2qDl4FRq\nqkrtBj6L3dpC/W1UWEz638ks/KqWJtX/jMPc7vIoVO+KqmEIHzBCoX9PNFHM\nmrHKjTvWNmt2iVOmRYYzNTdnWBmNYl1ue1+lDAO+pXEtpsD+u3VAUgXM5LAE\naX4fR7j9J1SfIrXVQnL5zowPWMgRBvI+0curIznmp36Ua+JgNJVRcw3l3dfB\nGja8Pqgo0kmIiNpscWZra116dWYtkmyTHnHvCYT3KYywQP3QVbuvLFVqCGKU\n9pN4uWt32IqY9063h4p/LlXcgma3eOeg1J+D6YNdOOHRV8F3x2iUHOaCquz9\nkgNN\r\n=81tC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFJ2FsvEtnl7Q+huNgdcff7uOzAbcUUTMED4hPnzv4npAiBr4LNn8hJ6HFsxw0WpvVxQfoJyr8KPa7ViGBTTiSOk3Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586840565070_1586840606574_0.7305208798838791"},"_hasShrinkwrap":false},"0.13.0-post-next.1586880012212":{"name":"playwright","version":"0.13.0-post-next.1586880012212","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586880012212"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586880012212","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dRfpTQtfIkgwLbaw8yVpa+SOKDP8qHXp9ge4CVr+R0DPJTzbi+47fB7Vnp1R0hSTl33+TxWiRqRcpbuePWtlZQ==","shasum":"6a9975ff74d124a41a3e9f06ac0829612b4b0258","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586880012212.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeld44CRA9TVsSAnZWagAAytkP/iqbhNSagkUGhMBg6DDo\nCcUIjDgGD0MFtYBURNgCz3hLffXrJX+Oa5MqswzcX3guOmyLSl7GRa64f/MX\nJfi9PponWkON0+3kJAuTyH/9S1xlV4Z3FHenFKZkrt4mMyupKWK81uMkpVhz\nS8MKTzDTShrV0R7sZNVK7dNsxHwjxWcNWHrr5lZwig8jASWex4LEpw8qoTe4\n1+Q7IT6riJmgA8oJpmRBUn0FTzJ2peo4Uueexz4V0tRQibe9STKbF+xP4tJ9\nGQ+mgAUJSTXM+3M16GGVVKGn8rOxHL2IHR164gGVv5A9b2LZt8p1YCrPSEnB\n1QYPeZfYteSRdcW/btRnvTFp2IUOv1IYQ+cGqJFZWGtlKCbbb4XVYGqxKtjA\npOu3aJc5LGeDrWhxus6R+JFnl1uEnXUzOVqP5qtGt0ffnGOrjNeyK/CQfanR\nnclXB7E0hQbSBNd1+HPox7vpLvUebDEUfOobBDP2iYNg+tYl1Mn5H5mxUjmc\nUq3c44BwSOLFzWLBGk/jyDJ1Ck1T7pHkUfbk1Nu8Omrggv3JQYzRUk6aYims\n3YF9kA92lFByekx2NS3pS+iSWDNenyQH5KOVUzZ+QUr42/+4n7Pn/uWBDOW/\nh2UNfyix+CBKSHI9uCnxeioqvdd4cSQty0dK3cJClXP1W1rcwIzJVLcs5uZp\nlxu6\r\n=nlYq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmrwQKQRtx+0/D2qne1XsAOAgVjWb0QCnXCXJVFxERMgIgLRXHPXJ4lGzMOmIoEshIWT7U5TBeuz6z5ldD8K6wLeA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586880012212_1586880055931_0.4478168827105655"},"_hasShrinkwrap":false},"0.13.0-post-next.1586896285276":{"name":"playwright","version":"0.13.0-post-next.1586896285276","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586896285276"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586896285276","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gMgiMS1QykhySTSh2S0b288whqoqAZ1JeAsHevBvrSAtHIR6qIumtXwLfW8r8aVU0HGdJ0NTVWLfmIlDguju4g==","shasum":"9152ef1e489d248a50f2d1d481376a9eeff09f13","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586896285276.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelh3JCRA9TVsSAnZWagAA8L0P/AhD2+YIFzov9JRSz7WQ\nHujOH7hJxWPaiwRUQgiZPaoB0BCtYC/QTZvno3DaO+TOmYm12dVjEriAcEiM\nW3CQbn8VgoPOXfB/BbwTS+c/AHIY6I6QvjfF0YComO2cE/9trec5e2NDKYdS\nEM82JL2z5Gixh2LkNWJaSjWlwjD7guiqqbPtWWXzrCM2kWQWxIQisF0sdjnj\nLVaS1eF0c3b/xZE5vnJLXzkCBGtL0AhI3H3JmW38vQEtrQsT9lGCuqMSbUaq\niY5Zi4WXbk35Rnk9VcR22g3GJAUfcNwQ0S7motl2av9urB//FHReMiZtdsGd\nzcxLjCeLAE+PLaDgUegyGE4ryp6bS1C21EVwezyWh/w4OVusV0EbKx1iuJM9\n8baxCzbRMkPk5dV4nDEGWVsLwtB77z93hRlCzaZGYkAT4P3NSYnEF5550H/d\nQf+IjsO5IXUTIAbTUbR2msTxPgv/1RCJU00uDez6YOHR2qZeABtavitR605g\ns9H/kGUvTPVyabvUaP+dZIshH1frXF/CX97KPl8u+GtP7VUGFFPWcAjir54f\ncH1gP/DE416i5dHH1qloloUKKLg3/+rauXofihoL8bdq8TeoMdXciQlH0mkE\nffIP4DY1YC+9C/eDRkhExrzeebd8YKtwbGYupwzxzkFWZwd1pArfz/g77frS\nEzK3\r\n=rF+u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHk+VCz572efa9SyQcXGKR98XgzuShmK/0tjFg4/EqB+AiEA5F/Nrdy4+U8tbVYnwHSf8mF4TgUSg1l4bTIb2rUP4D4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586896285276_1586896328884_0.1168615624856082"},"_hasShrinkwrap":false},"0.13.0-post-next.1586902982682":{"name":"playwright","version":"0.13.0-post-next.1586902982682","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586902982682"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586902982682","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-sUWB/riktAdhBdisifxo9rexjFquCVaApG48UxQyEuXv2nD5xxmSp3FQY5tNqXWEI+2R9FPmNueR7aEu6EQ3ng==","shasum":"99b8551f909716f175f3dfba2037629fee043178","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586902982682.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeljfxCRA9TVsSAnZWagAA5wQQAJUxmsDHt9Qk/DiZ4y21\nYf72jWvs65LUhkz/j7aDnFMGgiWMyyl26/YVx9fCJBXc2aPAEopvZKUYgNLu\nPb+GhbgumsUKrYxtXtR2n1KEWIcJ4K5U7h1b9CROOtPvTZXR9Au0vElni2ks\n7Ns7r005HyHmEjWrtrzOIlSzg0Hxiu9LL9/XJEq3+gIlZbnifvwokhT07f9G\nJ3NGNLvkMXaDa4zbG8LsHoh5la4zDbv7LLgWuF1xl9DyNmxxRbQolU74No3N\nHh7VXYGNbRXTJ4FKWviNbDhzDYkj1/UnGuBdIFECg7rxbgQi5TVG/AleQRzF\nxoAlwaIkNqr8/YJX1YUGJWOYgrUgEfrvG+eIxDOos01//fo59RJfGQ8BzoJ2\ng8vrsFoYzfyprzJlgYxn3vdaGELgL8/ouA10LGPmz0iNphQsKcuZqFuucdEX\nohEtahpGQEipM4YmIk31/k9hlRwbxKvmdwHKwj3v+8DHJe9dshO4sIByDRMn\n437NmlXgC9CoM/ewEVQta+hZGHWZ7i8DJubyIZ42jrrY+sapDKypsCzUJT3V\n1CW7vxEQp3UC5d81Iw5twoLF04R/aGnCkPzMkkZn1hlo9OE3Bei2+kdNiQo9\nU93lWavhBZ2zAKYwM0iyWbuzMcepR8+T/RAdPdgqS8lo7SYZTXrQ4zVLITUO\ne79J\r\n=n5Xm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGN8+L2Mcu7Fm6MU8Wr+Jp5VCtjqNmyBks2hrF9oiaNcAiAjJw9snEmezLsBm+5cuwn0P/d0UX4ry/nH0tIREk4q7Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586902982682_1586903025390_0.13003194397076467"},"_hasShrinkwrap":false},"0.13.0-post-next.1586904967300":{"name":"playwright","version":"0.13.0-post-next.1586904967300","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586904967300"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586904967300","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Qkkx8aOVKQ7bQtGzPKTEoTRNion1nzJMfh5ozM4R9hM/K983xx4lxUcZ0tkBgZKTnx39vaktCIcA+3OV22chOQ==","shasum":"23396474d78840ada1cc8adceb7a4b59c32118a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586904967300.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelj+xCRA9TVsSAnZWagAAXa4P/jlVnucM9W5QEYEugHsk\noZWUxNf+/nkBI6B0uMWZ0E05o1fJ9vlNFUotzBK0nvh9iU4lEVlmtPXwqg6s\n+SR3X7QYaPuFAVec7kjDnt6TcnaBUGoqpxd+CN4TYDzHRm6O/BW1RPA+zc9n\n56puYgbvY+vVhfwAqGFxFqQkE8pTkK0rLzySBIsViwfs2jHj0oI4I9kEZl0F\n4RiNxUqtr/L5q7NNCyNs9eT6A8Pi0zPu5FeA3kggYyTKwb9RFi5rXNvqwFxz\n4GPfUGkjoIh3r4QDcK5me3IptUhR2yss/nigv4VDx9ptPOsgYL5WIXvE1Rf0\nKgVEBpU3Q2FN+NWR8hDhcgGRUQ55OzQzvWkqw6b2Ei8lou/5C1OTXx9p/07r\nNjtXJfDTYu5Pl38n4NrG0bPWp3atQZDkOiqSz1BOmEtRjMjW4vVPuyYwb/Bb\ncyjC6x77XkBJpVh1bFCo3M0jyRJUXqomSFe6DkIaF9q5r7PGreYo9L5NnpW6\nZAPdD6Tmoy5P4r3MdxS8Ij6KAiiStuO2W3yJapGdfpO4RTxNOd/y/+tVAOEx\n1EuD1lWwTGU6kOyxgvZ6vcHVVK5Kh1NbyxPREaBU6J4R1/ruiL/5dO5a68tW\nH1lnEtODfWEAguPHU820eHdEGV7JglnvEAKXNBilkxgsrPPaq2rmaureiZfe\nzp8b\r\n=3c/i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr7LJGqgreidJlVohkIkFI0YW/hYz0Ku2sYD653vDqdAIhAOCnWT+R9HSjibGR8/1Xxbh+ar4UjMNkI95OGoKkmmJs"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586904967300_1586905008668_0.047184491575922305"},"_hasShrinkwrap":false},"0.13.0-post-next.1586908318137":{"name":"playwright","version":"0.13.0-post-next.1586908318137","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586908318137"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586908318137","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PI/IkLqlOZLKvmgk96S4KjRaeaAwVfu/IOPWTPWP/CNv3I5rhqxLRs+coEpAuJKF2HNavlnVPPvlXpRUiGcGCg==","shasum":"140c53928e2d52af4f064eee2f6c432c3bf3ce09","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586908318137.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelkzKCRA9TVsSAnZWagAAem0P/i3Ao0BEU8Pux1acjzrn\nADelwKo/hJXCfWyAZYkSubVUXUIDJOC/8M357uGtKtpKf3UO9e2YPu5uAH1G\noNuZ1qusRAz5odBFYjT0c+ls21tPDTQZ4bhJFoxcm7yRcmqztA5Fu5rF8mDI\nQ6P7A8MljVGCdenJBNofD9uJrgyuHSCzMhqYPqozF9RSKiIt1J5E0pSvly79\nRDnhv0A6QHadFDPo/rayCJy7pcYgfjDhLr+ZrCvjKzjETiUfRt/vEqSFMxx8\nsd4GiJIjLfAkpHJzsRLiL8I8sYEDccjs6Kj0oomVUMNh/J2TDWdA7W4nZq2i\n900bD7+j8LCgf2XKajz1x2tFKVH9szyZr1p3Hd3Xob6gipp55/j6jzDSVeRd\nghu09i91i3poCXiTvMYXRL1VtWtj8W/XjHu7T0y/2o16gmRi3blncBuPB+JE\nar98Haqhu2i4pF2kU/YQsw5IKooMjJqNLglVHg2ViJh98ea9DfjOs1VBzxop\nLZ8sWhY6VaWRdlyHYMWjk0jJ2RUu+EOk+FxaGg7EPFWKpBqJ0VTven6D+fTl\nNhglxTDD0WfyGYkG6/bHGfHYGJs/1/hg24MjWDq4A0yJTMyXDIc3G//m7Q9/\nu3cuRt3ozz5TevcrSW/JYUHEMv63ZED6SGhkRPltOjkBRGOOSmyJD/0mmvJe\n95xX\r\n=47Ye\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVZwOjqCqCkMSbzWG9AfaIsQyGDU+ErLwrUJCiMZhIKAiA1U5Sc922GYQCh41afBqjlhyrrBL2ht3pTBMAI10givQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586908318137_1586908361617_0.3966783158221965"},"_hasShrinkwrap":false},"0.13.0-post-next.1586910574100":{"name":"playwright","version":"0.13.0-post-next.1586910574100","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586910574100"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586910574100","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RP7+kF3NW5Va6m58M7vUwfEv+buvuEhZueAEqK4R7W3UsJYNeaD8fyctIxoyca8qaC+BJGrrq1KVi/xaUPhfaQ==","shasum":"937b41e0500b609a903f96ee9dc9510a1a9b9963","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586910574100.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJellWYCRA9TVsSAnZWagAA+PcQAIfsko2eTQEUQBBlHrhg\nn+gDVR2HREaWfwc9KOA3uolyI/VZ/MzsV1lrizpU8jyzVvg5dE7C2OD0/rU7\n0z5izN+QMywVSgr/rvh4gLvI0lJG6VigiRPY8iYcuWRAy1JcnLTHv8jbU0b3\nnPuDmuSMb6x0MnXxLcg5dDWTzEC2Bl8draK+CivZZFGe2xWZtu7dP5LUx8qu\n8wxmxpjOpTyJrl5M4QX0QfTUbUBFo/U1Pb4zVcSPNTWLzOIcCtG4/8H3Bev2\nJuVjljAR0F1GovP3ts3fQ6PXNNrntymYI1I3/zhtzA1PHucgFsw2xKdY/aqp\niVSYAHiBrLsTVFum949VhMhh2Mw+RAIn5SJwadeBOVgZwl5bfpnaR768zTA/\nKClnjWu0KbWJ9y+0qTfPlbev8lPhXeZEWmRAB/yrPv50DZzdGNPJO/XncNUI\nqEN/lSZjFmULq4Bxpj9PhZh6BE7HyTsmj0lBNpS74NccuFwdMCTy3OA3bHgl\nm/r2JVAlR8CMiEijCEODGmGBJKsiTtaSiaYfCOJTxLkehvI+VrxnH3ZYu/Ie\nlRZlmYLQW+/x6QKBMb8RYL1n2y7itrSSDT9sHPr6WBgZZ9D/oPo25Xv7jtut\nMOye+5hlnByZpDY6i88Rx16vbKZT0mztIDtZDuW3k19pqME5ZejkBZ4ld6Jj\nocYx\r\n=ysmz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFR/HKB+cbeWNvk+HrdeGs56LVvy3oIVsCQnmYkZQBh7AiEAhX+dZnrsa62ZU3nSSkaGkPxOhSp4HoGNzDneRpYvVkU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586910574100_1586910615957_0.23228441531767796"},"_hasShrinkwrap":false},"0.13.0-post-next.1586915082604":{"name":"playwright","version":"0.13.0-post-next.1586915082604","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586915082604"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586915082604","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0cEZ7lZ00ELAMmdfToTzZKXOjRMq8W6BNL6mmUvGGzWF1VfHoghS1ZHPX/Rt7cdknqpioUEwNwJyVLy8/YDV7A==","shasum":"465dd5211005731cca02fb61cfc318780c6e37fb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586915082604.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelmczCRA9TVsSAnZWagAAnCoP/1VuaFBrCKD/0hSSCQYR\nkHqGX/HPvMbbaFWjKmxJi50Ox9vo8ymgdhdiYx7Hudb/roh5fJy/u3cxOGIt\nCn2zYq8DKIK+6JKbQi5D8r/uPuX3IFd+0v/FNeKIIx9PLA7UwKnMQv/o5wUs\nbDNgMW1X/WFhA+ejwdfPqOTTJNHp9pYbs3BcbRPrLRAYPhsb4v5nSSk3HqYA\nbF4ddF6b7BSJVUW1XOqFFFhsKWCYoG1mdEsbYl41GpTzoBFTWkkpTcsU6Pd4\ngk9W0KTlleh+Mlu8pgJ7RWrxE0kdVWDvLjlV+PreTNdVykMOAukf1PneWs84\nbYJLN6RQyuJBNCRK5v51oE/uYwgV4s6KO27PHqIRgnjXIo0DOC57JNaV7BVl\nS3Au7wKoeHKhgAV+b3H7GmwWQvhSpOPr0CmddCMtAgRTsBxz4F60p2TS2gpj\n/d1J+M2DkWFm3lR/pi1yps54aEv64HGUaMe99LI5eVIlhGLngrVk8XcEuEJ9\nJEx/t+NnRBLJ0meKzlDdiqDWAJRtDWzvO7ndGFNWXa+F8ZvyW/7CZAK1V26U\nPGxM31aIMFIh7qCvkHMisxV6Ik+wcQ8fjtmi+pZtSkgoPqEI3zCWyN6uibeR\nuBJMyU8YHtzesQf3pKOUS+tMCIKHyy+lqMloZvv2a7UYqwpPsQkspot9+5qm\nZ4AY\r\n=VYvj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1PP3k6E41HTFNsUW3gNt9SKe0WaD2AkRQN8SdbtECzAiEAuwWzQ3i8+txVzkOWg1WbdMD/Bc6yN0bxhP89Jr95g/s="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586915082604_1586915123393_0.8118111707122388"},"_hasShrinkwrap":false},"0.13.0-post-next.1586917297752":{"name":"playwright","version":"0.13.0-post-next.1586917297752","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586917297752"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586917297752","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-iEcfUdjLEiFX4Rl9J2FQmvq+uKfv/N5n9A2ZHA6CzR+ClHBcnSohrDjUoLm2xCWwV5t5zcWVv32Hq6F0qsq2Xw==","shasum":"ed63f274963fc979f93e5f615223c2f185176ca8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586917297752.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelm/bCRA9TVsSAnZWagAAwBsP+gLytpa9/3jX0kidm1JR\noMd1W0qEfb8VVWk4KZ+38Y1vNkns42+MKx9Fe9eLZhKx8ld+HwIMC8El5zib\nYuRRR6h9jqIToZ2ukkyf0m6Wp5tcHO3Cb017/2preqWF92G7fj0bOuaVuvjw\nv0ZAvOKRR8nNhsip2RC/QLAlXaMIkfn410RyLos45EwXPaNw3FF8s3iwv3Ch\nzYvx5CnBST/OImcIui7d5DLVQzyrtlHad0Yvd33uxxJJJ69I/8rfEgSCrSWM\nYo/Ol81NQNezOkAji9r/RvXMoj0TmEkHwPX39hRgCxv+KWuJtD9UFjUg+eZq\nRoos+IfuzlIZfJ+O1v9uPp0ENwwU0zjAn4nqim8q3h+bybeKEJtc/3O7xSnu\nRMyKQnbo9xbMG17BMNDHKtJD/B7kLnMFCI2+JxHOPzf3lWZSbTubFlkkL4Z/\n9tgXT/moaxnJgIaMVoNR71u8rgxzp9K7fEXywbhqPwyoMFW+9+Vqg0PRSHP0\n9JhbRdNKNNGhBO0WJAu0xcGk99Ka5KryY+Q23JW4xmdzgjokjOA/sc4bTjTn\nUknn1pthuTS4dp8Z8e3U8sRywxt6mk3cCXQ523iPcuuDxlQaSfPoVksE/v1J\ncFHJC4YGFJeiOzwQ4n6w6aS/LdMa4PTFLvnUaiDOa/dzCFyTatB+Ew0NxJgC\nD9u6\r\n=1e8i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHAn/uNy3r+FYi3gBrlSYf3ClHLLkHquowZjM7UWF6f5AiAEPCGsAIDRVp1I1EcXq2JnQy8UbbZsBNi/YbCoKQm2oQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586917297752_1586917339212_0.18102628072744897"},"_hasShrinkwrap":false},"0.13.0-post-next.1586930452689":{"name":"playwright","version":"0.13.0-post-next.1586930452689","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586930452689"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586930452689","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HM7a7f7iI5ingDw5IzMg+cdb1pDbISWWrckZ0sLXSnAPtEdAZhsGJ7swHmSkCSh3t/zqgbUIeEEK01VQCYWWJg==","shasum":"9a2c5a4153c520b3e2f30b82e2bbef8382b11999","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586930452689.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelqM+CRA9TVsSAnZWagAA+DUP/ixY/WAS3LeLEl9QUXRj\ntjnNGemlyQWiDZU4nrU66XwoGiGhpq6F4lhuy4d6es9HAN17ub37zgtRSBPa\nDWvSuvfz/ltgz4ukdhH25chInDSM8N5d66y6QbRTSx0A9CBRw6AuPkquZLld\nSo6zp0I3xlO8/XGis2duj3st9hke2O7mTioNquT/jcIt8aNsqdXoD/aMM4dz\noxuzG1NoC9wMdCJPCXLgl2/Qt7pIxfH/+ZkgCoFsveBBPrF6jTbqmBj1lfVU\nu6c7BX4Pbagiru6ky4/MG5kdAkNyZuI/UmB/OpsNLbAvtcJgn2PdXfHaTIcD\nq8Er1KV7u/JOCK8qctPMP8LaZf+IM3gwB8OxpPFE8VnvIx19J/jnIGfzGMNd\nBO8iXmzGonxBLa4lKcOo3tVAOmqcouc2ZCYENtcK6QFc3Rnkg5BX0iyLTj11\nzVAEHAeNABNAdRYJY28bINKIXcewaiN3NjXWQoQJeWnAqrqNndfP79elb6cZ\nLGsGaivoa5iZxLJBLnvoOi5YVfby6YJ8ONe1OGnp7WuuLG6zNEa2e5z5cX6o\ndj+8Y1FwOlXj9R/YXV8VwvEs1qgGLEuBaNjVh7hevJfkkRIJ7rF4q/OnJ6gA\nOaPrbTTy3srKgRsz9bCtVuwWJgVlhlt3JMtqfI9pfv4oOz87J7MxDqG5Tyj2\nmr9T\r\n=+jVl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFiJCgaQwmhq3GVhfb5325OWa5dm3ChhEbnVqMHk82vYAiEAoph6UrZ/iHlS9FkxWqVMgzluP9kJ0xv6VOjijbzXLvA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586930452689_1586930494223_0.784686524124786"},"_hasShrinkwrap":false},"0.13.0-post-next.1586932567111":{"name":"playwright","version":"0.13.0-post-next.1586932567111","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586932567111"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586932567111","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Enkl68URlX55gmqzD5vHcAbxkkIIf5PvyVg/6DZzYBP0/xJrgoahYQk20MJ2/cbiV+SYetmaAvh5Z1dWgU8R2w==","shasum":"c8b4dbb37a902ad488bc15ac5a28fb4038ae1efe","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586932567111.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelquACRA9TVsSAnZWagAAg+cP/09qpT4MR8eC27OC5ann\nV6T34qNKJL/wmExCeV4SyE7ViJHfEvsRXpSNA8si9A/hJSwsUg6aeJGgfV4L\n286UJ98whATSH/j0mph3YVXQ7z2m/ZTlfnepoZsk3v7DgFUia/09YPnTDBEw\n5kW5+fcImxLtDsk3YipeBTFKXiM05JGnqs7/z/BLq9PA1bMlGKuPt+sgRDTm\nvPMCPEkT7AlhN3aTCZozgQ7aV06+F6Svsiqdrv1FFtuxLj4iSQV9+zW7JMyC\nu1XzQ8tdi3c+B2K1aD6oqLeIC7Pk7zqy4QnJ2XHj9afo67j7iLVZBs5cfydD\nJqA6pBUH4agoi31lsg+pO84T96SSW/Bfw5S0aw705WmzlB3Kf4tTyvniqz0e\nZ2VWWjJbZduo1qElZ7nlEjJaoJvPhWMbkTGitHMBXyGGOKf68EltgVckHYLn\nYH0Lwb8oUMCsquiVEkTgSF0tILYk+bbkx9YCLhUhclCe6fCLGVWrGuNLhIW/\nDWoN65qDqeDXJAydT5TizE7yTAOjN02rU0I3i4x3R42IMUeEIwAE0oegX/Ju\nRIDIKp98wR1tD8/y8F/1AjWGt81LFJZiTOxmQsno5SHyVqhFrFw+5KyeCBwG\nl7p9Mvjw0DSpLd70EtNqJkfToAkWQibYaucra3dnGqZy6FHLKmo07GB1i4k9\nZzD+\r\n=GTlQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDOMbZVQc3NVFvHcsvRBPSmahMe2+g97blPn9M+g/GFXAiEAyx89OD9AtmbYhUZ6lMBPeNLlOZJbEsJ4dUd22tIPGXw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586932567111_1586932608042_0.25377118761487405"},"_hasShrinkwrap":false},"0.13.0-post-next.1586935519554":{"name":"playwright","version":"0.13.0-post-next.1586935519554","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586935519554"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586935519554","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cAY/Sq8AQDB13ylFIHtR7GChGCBpEstLTlym5/oFJpHsM3BAVjHeDceo8P11Lpi7lJsBwI+IaLe6IuWUhPhnxA==","shasum":"343cf4c92c4d0d341bc89a11b84e30fb1ab86f53","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586935519554.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelrcJCRA9TVsSAnZWagAA4GkP/17hleaNLctQHg4rF6rn\nQ0ZOaRvjmbUkpzmucafL0VKWKi/q+SEAfDFc79rIweYIyrGKvaX1g4JBCNb8\nAuUTQc5RkpJnclDF6sU9fcqyYeTlEURxFs4enwieQlqp/4xb3tRQFzrAzlCH\n5ixOAPTCwwK85UyL/y+WdGt/55VtqZAkvkOC62oiMSgNpP8ZJSgxdjeVb8G+\nzvSUr5oasChHP+20EZuhkwc3o2YkwaRFn2kjH1N1iOGppGJvpkMpMbo1npW0\nL68GRaJOQKBngbYr9OZ0Qw/MdREySCk4K5iF/OUejhQ40NoEFIf0TdOPvuP8\nfWwUCGdgP4wbD+ibpNDCqUIjUDP0kicXXcwIzmkwLw/tH3Qz2LUkG+nohmdz\n52U7eGuu14rDjbFGefbQbreUFaHzBW86YL2Ek/B7I8ZueS7lXvrmC4tiyHX6\nMNFxvlVmRwlpLM9mfe86OqTXqdE/E/TieTClEhpU02KmlQ2QtQvOr9uatSV7\n+ov5YN5z6F6AvTktdQBB1oHuhj2uwrmy0+JFi54uSwBwL9C0QQKd26rSNehz\nJIUlMg8kq0L/WsPObZ5YTEdUnsUgVijxW6ieO/0cv5nIbSWCcfBOyP/6Sj60\nfs/fpGTvqmyOcxxVmiKhZ0qR9Adx8RNyTMFOhudqZnmn7u6ETUPaKAuzHMg7\n8txr\r\n=47rq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt/2HGbaT3BA38nVWVXotMRgzTneRs7CAIW3/GDCMiiwIhAJyCyDkJgcIN1Hx3DjqQtZjRHTEYLYCOKJYt0CLIopFo"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586935519554_1586935560749_0.9120509893187232"},"_hasShrinkwrap":false},"0.13.0-post-next.1586972345259":{"name":"playwright","version":"0.13.0-post-next.1586972345259","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586972345259"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586972345259","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gqJXxLoWd4IoM9LAbysLsd/ZfvjRRdt1kvD/kxkygmeUBFiipvK7A1u5QfDU2qWHgFQUGTpOkRfS7YoYX+tYpw==","shasum":"dc710fd8a12d5a3339699e52a80e8f2225627e18","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586972345259.tgz","fileCount":5,"unpackedSize":15508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel0blCRA9TVsSAnZWagAAH0MP+gN4ZucBM/t6QC3wGDZ1\nwydMd9G4xrPQy9srub9FUxzllfW4ns0JeIrf53fAMh0rCglIQlVIN7+dk2Qv\nlpHVdrQD/1jD65k8O45EDA5lppR9n8f97D1+K6IXamxQ/imfWKLe6DwmSi8c\nE00N+EsVjM15dpJ1uCj5oAGJfV7ktbIPVGRLchcgX5kccOoVym2CkM+EERgI\n9ol/Kkobfk8eeZuXrbaLi9krD1KgWkFP5CsdN3+rnpnMFGkNAzxh+VEYbeSv\naVGh7I89Y77F0TatY5YcVmzLyf228fiz0tW90XV5/nA6QG5QuTn5b8jWwhNG\npszfR1Jt7fj12e7zJEp1RxzCA9yrrQnhYzxegI92jeOYW4byfTqe0rfw3hzP\nS05VGwFHrvNQ6u1mlKjusl3sTCA6pbHBQ4Vuekkim3yupwrcyvMWFsyVcxZT\n34Ivqyxek4fV0JP5NU1UnM+TGXdBFwxkA1QNp0AAUNy9K7zcLXyvt42+hFZ2\nysYHkzo/p3OZZzdY34yYAD6b2zsf14jr0dpBAFZChXKZU4JFPHtlR2aW5gxW\napPopIC4N3bvt/g7qhkzcP6yDOnS4vnbGvB5/wWevueXUJsMif4+AbBTSZr3\nQecnAu5o6SG1+m2Sop0AS1DXAn0jAmBwdaQ/Vn4rUvOv9M2OAZ60MPuFfGv8\n/ZS8\r\n=PHnz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9edstnVvkWuQNydSRlMmX/A9i4tSBS3OeOxYzheQfaAIhALbXezvDpEMhPOkjlMCCX+7NZrdxvpa2PWBEjBstXRu5"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586972345259_1586972388777_0.30661994878782783"},"_hasShrinkwrap":false},"0.13.0-post-next.1586978568199":{"name":"playwright","version":"0.13.0-post-next.1586978568199","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586978568199"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586978568199","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-V5zDcU+kd7g/WIxDy4WaSMYqRKMFpbhaKDRvHUoseQNV1yNw3qqIxQR3nvmiHnTX1Git8NtMzyUTuH4qAF4kHQ==","shasum":"a3e7770beeee09c21b607a2c68149696e3949e59","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586978568199.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel18xCRA9TVsSAnZWagAAwFAP/iXinUvCDmrhCXju7fbS\nnQgf6QZVAaqjtw0VXHPqLJ5Y46F4VpakmqnhGKVLxmP0j1OmFW8KPNJaty7e\nZnXRkw/qKWyxiAGeMFilYpv6HsW0AJqLIbCHaQJCogCkJU0afokGE66byeHP\ngalc3pgu7Sal5xg+GDvxWD6MLB1FEQhNrZBsk24mHLy2tiUn0TzqFgcQ4OJ1\no36Gnu4IT0cKMtJeEtVvcjvn1XO5Eu+EAd4MppxalA6JnsiM+yHC9wIE36KQ\nGQjCGDubsZ7LrrfvgIT4LsxcN9HdHlM7r3N/B0UWbPdHeR9KTgyrGlfRYOrh\n5SmQHWgVZ/Ogyps71s+j/EKFaEXKXkOP1p7Dm5goFGM59DYHCXxVcuoi+y/v\nRrk+oIQXwTtxEjnB5g02clKL6RgOjHMHuIjOaFrUsiMtnLs2xXuWZrPMpYxA\nFwAJDBsPzojgWyOOCf1jjX+RSpGDr4G9mM3dwZ4H3pJ14DKyMC8QMd+7gIcP\n+FzOzSDPjKwsE27XSkTE2x8hvHzmmPyCSwaALgWZRHgyE6d5dhIjNXChMvA8\neeWYTvLQFbjUiEFArptaBALwfCYMy4TwaWY7Jphx1xLzHdiwNo1AcQOjKysZ\nr2SOYbG0rubid+K7ruOEowBXgnZj/VfsydVZOYB3qkXQPbJv7MFh4KOEhBJH\n8Ypa\r\n=T31e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDaQYg7jMNgEx+vYFesRNLoC4xh68Pz7cNhwmYrHQJq6AiEAr0OPa2afcv6u17aN7RWVA4roMIxIZqPoynapuTMek+8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586978568199_1586978609447_0.4560095450649073"},"_hasShrinkwrap":false},"0.13.0-post-next.1586983542835":{"name":"playwright","version":"0.13.0-post-next.1586983542835","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586983542835"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586983542835","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OR/4jTyPaQZGNgqSeFNix5Nj/j3W/g7+sO4KHr4UGnxzNt45SakocEaCKCO6UtJacVRg2oA2rWO80XmI5kWaDQ==","shasum":"aa2ec7dec1853d33592e34f59d9e50b365e4cd19","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586983542835.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel3KpCRA9TVsSAnZWagAAtYQP/1pS6iMla3vQnFTb6iqp\nAfSXI/gNZS9edGQVsL81fAWQ05cjULmBsNLXZ11/wobjckpDEaJzUk6zJ9hD\nFtwSMk2seU1EjxgBBqzPHNYctLHee1/WwS/nsXu3X3OvG2uI6SEMDrd1yeh/\nbIN07DffkdC/0HoCHqd29u417XxwRQE1fFT1k1sUSE47eePCw97jGetymu3D\nAf4fzp0XyvOfTB7Ea26dO6RnVLcbxYmwrpTx5vaYzct/YMNn6TUqGkmlPZ+E\nJz8JqIMIQMQtSoH8SjaC3P87ZjiKrfguT51JfKN/t+MAKMHKGC9jazTkFE5Y\n2J5BWRhbj3Y5igY+fAn56EhKqnKtP21CDKloQEqBL8pOSw20Nb8n+4OYmqah\nE4vaQNGIm1bubaMEYbLlOB2tDFI9c2jULlwxWkPdo53K5YMQXP3/5PCKVCXc\np09ImSqO4H4QhXrgBOY5tRWlSFfiyEp5OlAGQqOPlrenHGINz4ZP8DGClthp\nF0/bBzt0tX9Z4AwX6coX1HAc9z1fAxiXOTLRki8S8uKoKr7UsADohcn2X8BT\n9RAnHeDQiFjmP6KwBHjq22OAydKwI2IfzowFY4hli5WZHIcXj/laLgU9oOsU\nvapElBPnIdqHkz6G8nM34qpnXyoUolvln2nJPY0F+t2D9Sc8aYr/T53qLqPk\nb1eo\r\n=jrpM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvJ20/TQkf5XIiiFzI6Si+UHWVFvZsNc7ADKoHEwJP+AIgYvxMdED3czNRZtZUZiMbiAx8W6D+VEmVWaYNQJEoMYg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586983542835_1586983592869_0.6362657851366793"},"_hasShrinkwrap":false},"0.13.0-post-next.1586985952692":{"name":"playwright","version":"0.13.0-post-next.1586985952692","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586985952692"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586985952692","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-doNZfYHIAa6GFAt55l6I9RC1FvHydHxqu3Mbvq1m20IHF+1SCgi7YXXzvs4oEU8ZLiMf/bwMoc0R92mv4iw8KA==","shasum":"fb52a5ee89e250892fa098ea0193392f8dae54bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586985952692.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel3wPCRA9TVsSAnZWagAACSwP/jxuDac9NTFw2z9H2Nu1\neOuuX6rtP+/9b4VfgYcAd+FqBwb+TwNUFS/QnEggZkCOVYh9XcqPmicNnaNE\n1CVr10NoY2G8sUAtRq4Qht3N4pgRZ6Bk8v51iQ6hslB2H/1IKwpsQ8X9/u3B\nHcNGOsVCTqhAOuiMvzTlDLajnnx5p3+N74jvjZsSeh1E+UsrDA4dYY0vHdhe\nJ1bLgZWFvRaQve4cQ9wcVbHULjDeZ0gGxJhhsAbCEvnfU9aDbvJkoGKRHaTu\n4nMWgeIlMFD5npZLooTJdRwS8gsYbB0MXnIIfduusM7t1dY18c1D4rTujo0m\nR6px2hik2hE8XJ4LYOV8irRzJXdVptzyn29GDyvuIkBA0hcfIAB66lLIIEB5\nlijL8jhJFqPmAlca2tXU8oVrXhxIghA7mHPR1SlDyUM9Ab3Q0CqTIhRSiCTw\n9YdU2wq8W64blJNrkyIwb/c84X1cIetBx4J73STiQrBAJlM6sorzI4naZhvN\nY5WvZzgcAIzw516lrv+0h3d0Kr1NNLi2TjLrCMJR6aSziMhSkPcHlCvNJCnB\nshLbXuVEz74y0pnfE/HWSFjMYBnvzV1rfGJ/kpNpj9dxVkdSWs9x4dLkMKzD\nut+rlCdQ4h0yA3wBDITr10PleaCwINA0HOub/DeFCiwNczzt9taP5z+Xv4gh\nvhqz\r\n=pavi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICDYRthn+GYgz8viql3Cd2tWYPrsxHE9aA3jPtET5tq4AiAg2tRS5LcCQCtfPQKJ2DBrDaKMd0QU0iSNyzVjIuFuQw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586985952692_1586985998886_0.9340298189872052"},"_hasShrinkwrap":false},"0.13.0-post-next.1586988177637":{"name":"playwright","version":"0.13.0-post-next.1586988177637","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586988177637"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586988177637","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4P9VUNxrwK+t2UWOxxMonk6BbbdpSA5yKii6zioe4tWr7Tc1xiloAt7RcZDJ1aGCG8THcYBr33uk8GtngsPpfQ==","shasum":"e8536af40f4528b53d96e33f1cd7f72cd8820d2c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586988177637.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel4S7CRA9TVsSAnZWagAA2zkP/3ThC0wgao/iAORzNlfb\n3XaViCYgGTaJ0NEomsxYXNrA9yYa00gw3UCQ67d/uVFTwAy1lR4dvPovywtN\n+kBukwqpSkEJNPopB6MYzAGYZL2r/+ioF8YHD04AFOmHVAjccJ2mQa99aa7E\n2B7gX/RCh5B06E9fLlyLYtvz6R2ybeMUV3wipWMn+46mMdtvA83EDaNcY3HF\ngtp/2d7XXFxbS17xkrh6NwOEHyI39byV1uv8yb5gbQIrHpr5g2PONwxNFYrM\nN+iW/JSTM/EkE26hYkkeZB7Ml6uZfq8FWWHdrBPjcdCtgST6UXNwC1Z2fc6Z\nMd8POQ7VJfqnZWpvl8MjC/GoKI2DiV3FxvYCFv7XoaZThMeerRnkHzu2JK2J\njdsz14Aw4euFF32jHaeLgbGtzA92mciQnq3hOWYtdglVdmHwxQA85T9XigZh\nA/DO8HrSreKBaGpu1gkB+/UTlcfeny4qublySD53vKy1zrLiOBCzOEEK387b\nwOzfPjrh9Kez/tkBJo+lyRTp8qupy90/xqre7kB/FZugq4BFxvtrpxPPCL1k\n4GAysSzX4/FNxjqJ7xBDsRxPJoCCsh3lQ/INW6/JXxkHEu8D6l1WUMr95ONL\nqaYJjDB8b5MZ76slJkJO0Qs8+/Xn6wtYmFy8LdOVM8wKYL2Mt/Cv1OgphytC\nku3B\r\n=7DaK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE5xMPA98wTuij6/qcG7nrERRofWW6Lffi7+1DEB1VXfAiEA9O3i504ScZh9M561OfggUKLYpbuWvH7alfVCHxppX0U="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586988177637_1586988219082_0.34101294044517205"},"_hasShrinkwrap":false},"0.13.0-post-next.1586990610484":{"name":"playwright","version":"0.13.0-post-next.1586990610484","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586990610484"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586990610484","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Lq5D5IXP4isax6xyQM9pt2AXgWfxG1+n5xHExNb2kkkoju32h6uwyMFOT0RIzfsENkT20hW3MY43YvJzkp9vMA==","shasum":"a47e0d348a65b6d63332c7486bce9534de33a2bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586990610484.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel45ACRA9TVsSAnZWagAAmt0P/0x1RaNuhgFIl0LzgUR/\n89a6tHbYrxqf8xjkCc7cjvaQov3ca5KlGlVwd6GWWeO6Y94FnwiypxfzOeWP\nra//y6LeaIMIxdHMRcsMamWE4G96JdgnEnNyXI4XwvQisOgZEHWW6TIfSt6z\nlyPPwWX1puTLglSFUEW8Zqe1pSrnjTnNe/ZTkS4RvKpdj8lqWs3oQV8zSgqQ\nr9Vff8Bw+38XZ3XYR4EH0f+c851QXiWxSPfM1NmML7FIjQeMj7LQUSlDYY7V\n3mCP/c18m675Vp2yqH3e11aM7w+L7Ctx3aB1ot228KsfwLhtNga9URtwz3UM\n3r8SqoCXXL9xOexBWqPWYtEZZy3sY0sGGYSc4TScm0arSMt3yFeyfsCG/pFx\njSsptX8VAidr/jDBfHu8838NIA47tkaZfFaelcX01sVXwFzT+sJ+XtKpal+U\nRr90DJKiMINpDBL2NAZwxtF0y4S17UYCPb6F5FczWPTw+jfA3hmbNQDm41V3\nz2XmsHM79L07xaqFyEsaDxPs1Xj6E5M/rkp5mmvI+HHWNpR++R/FNo4qP5Rw\nYe1+kaLtEqOJ67iLajKBrScfXOoz17y9NLllnzdRXwNVAvokqLl2tE1NXvur\nu0L3zBgF2R0oA4VbipPkSAEMDcOQNXi6JkM6YfiGgY/seOEwguMdjUje+KOh\nOpzH\r\n=Vra9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcbLeRZSpJl1ju/gj6Ho16dog52hjLYMQKQw2UIr+FKQIga6rKjdkPPNx1iwYgjn9niuDRLcA3y6hiiNTIOd3tKZk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586990610484_1586990655555_0.39807589404640864"},"_hasShrinkwrap":false},"0.13.0-post-next.1586998356131":{"name":"playwright","version":"0.13.0-post-next.1586998356131","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1586998356131"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1586998356131","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2RL6X18EFjWbhUT8jdnE2ieWk+HEQQmqz+LAiGidSi96VAX5sZsnPw0VLTw1XVBbXn4gXCdGYB2WZD4VQIvz+w==","shasum":"2a72b3c89a8f62bb5ca1ab49496eb94e49dd4734","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1586998356131.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel6x8CRA9TVsSAnZWagAAB+4P/1Se/vr0+hoKxMbNPjeX\nIPFEyMeCWqd49w1nOVrzlXS7A1xWnrStwLQUlS5MxcOlTcJ+7bFma/0bbnmo\nldFTr3iMXjU41GtA+zUyhvKNXpv+KI/QNy9RQvYBrtvCvB57Qqk96LwmBmIL\n4GnOhVhEyjTTDYbBcZA15nQpaa1/EEKi7CpJNP35lLEYt1RR9pEV2NBqWOjb\nOrtE3G3RRPz5qmnX23MWjnIE1y+/2ltXJGzk1xRRhBpC8VmhWmMyFe6tPuNG\nB16Cs1emaAYwc+IXnNciA2EYnLTpt2UTr/ozlLM6buElCm+RS0bx4M1ckUNt\n3KdjmgOVswIftCYwfUij1vo6jvx+/0B5wkFcEYtB0l0JjfrlwcsDHandDz8b\nPQ4DsuaZ3U9//Xx3+51IbTc6dxbg48A9/FJMLbBIGKsdgWltHyigA0KBr+Mn\nyHobtr3GdBzZRqLMT1ZdSqUpiMtRXIeXP7asuvRihd2MMzRXzcn+gTDesGN1\nwH4jHzq1xLnQdI0ffjwE3ckabm4/39u0AS9Nwe8OCMDz9RhyoOP2GE8X+fmK\nIWIgm1Y88eo1YHLdNe2VuoiBWsbQDoeEjn5YEw0eQrbTBlMzKrsJOtGtkTmI\n3cq0V/iZ1VhtnsCas1zBXklySvYa5azF1mL2bNUHv/3a01dlNQdbW2nhBp79\nCjij\r\n=RIFS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE90o2dp8R9DF3h5ui4M+QCR4eZoGuyG4PP9Tbt4f7NBAiEA2bDEl5M+49X9TsOtzYmcw4Jkx9ZHKYwdCgOqUQbo0jM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1586998356131_1586998396039_0.811993210503392"},"_hasShrinkwrap":false},"0.13.0-post-next.1587002771852":{"name":"playwright","version":"0.13.0-post-next.1587002771852","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1587002771852"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1587002771852","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pcOIoFoP9rhqSsV4NVt1dcruuTBViWvd7n33+B4n7iskESAgiD5nCIqrhPfaEvhHLqVMJf4FIvjwNBxppCmEtA==","shasum":"4977ad122fdb04f7e642a4836a8f3b307ef8dab9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1587002771852.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel73BCRA9TVsSAnZWagAA0AwP/Rvggkg642j7H5iaeJjz\nDwRC25Q0D9OlmshZW7USOWX5Ba21CooL0cunSrXjpZXgTJEgVG9RYu+sKR3J\nGMvh/+WB6ivSej0yz3vtNjPuaD0R430N1iRK0Ci+DPAEOyTfwM836ppyVDFo\nplyMVTZIDUHJY9JO/X+sjmFmf2xOz9YWoXUwhAbZkDvE5HOJqz069dwZwOHd\nb4AYc4l2GXWzWs8UoOj/m6tYoV9o6RTtTeF3ofnCQcRnSRQpebmMIdnZ+cJc\n351v9XyMbwPhw5rrWZfzdz7MNzDIPtEU2JR5dSnAWCeAWLEOK0vE9yBCjWkb\nRJwQowywH03saxPyuDVIjcHOy6DZEPQUU6jj3xQPRgNHG/OONhzXctuwZWaW\nYuD5l87RlF2OxmBfzqEuPl1lFHXf4uhJtrA0bZ/Wsjnbq+3PGdJJux7DtGV3\nFgNz0C0Ri/r1G1gB3BEYebdhMsylQ62z0dN/jRk4hR4axaLsvQMrklweNe3z\nCdaccGNnnkagnTSaHsxFBzXN+Podr/zWjbeITb2a2O9/+f0MSgx9ae8OntSN\nOaGjYE5Vu3Vx5a8V2rTh7fviKIxj2mqaYPeKw3yo5hVRWBdg7qSr/lno2mOl\nP7UztlQ8g9RetumxdqVQg3HhuK5+Ym1fPHX+f6l14I0uMQTdPFdm6QqoUIPx\nwbFt\r\n=5pcv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBKybmSU6wXUWB680rSUN/tzGzF9jwUPq5k/HQsHj/hfAiBNCKstVou5ntyfCQOfh4VEgkG99C4WXwhwfBx2RkPLrA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1587002771852_1587002817247_0.03465112214042798"},"_hasShrinkwrap":false},"0.13.0-post-next.1587006981701":{"name":"playwright","version":"0.13.0-post-next.1587006981701","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1587006981701"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1587006981701","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vB/w7Hlq+WGFHsiJm7iuDzsghRRVL8swX+4/zc6Mq2fq44R3MLn+iRCSVUe+K7l7A3SSMuqUQ+xbMBw2SfVL/A==","shasum":"3264f2559d017d772dc20d89bd0e45d363bf66c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1587006981701.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel84vCRA9TVsSAnZWagAARQcP/RoD+sz76kQahc+ZTXer\nbNmHg/KbDn63YNjs8m5Bn2sRLG3kNdHryUd61v5cCY0KsyLEc2fXU22M4aE9\n8hLbpE0nLAkETJXGPLZeoqyylyyJIuV1ASjPav/VDPW1nAGNQGKTO/IB3Yrf\nVPCLrH6Ep5p6aVC0X5ArS92uLYhqzlT+gywyBKFnuUlXs+MjKd0ndxbsSdEL\nSU8d0xUrVHIF9220QPhizBbr3/oQI5FJSMQvck6XPjSVT+8mHj6PXtPSZzfc\nCfLa18Mq09IRH2NrWU9x2kptkrsAUuAbB8oX8BcR3IqFZrzAT9JR28nl+/21\nWFk02qwVDLFyFKsgtFPF6xHsJJciEIScYoSQ+NgCFIL5Ik+ffuhZE8D0LYiR\n61l0oPwvK2KT286heXzXO9qiPSXXlGO1OMF8XfLTam09BF92Rthp1C/jLONx\n4dXMWzUdK9rHA7DbIA7Jiph12WRcL3s5V79BnbwDNPIrYZQ6Y/p5CE26mDcE\nsoFn6hHY9tsaxVxukRBB4RBSmSFvivlMm6OVPEmlVBGQ5O0mW1JIgmLyIjPV\n51hajtt4pREv6e5JGUJC75opYalemB58Y26axq+YV8l2XpSwu+1rG/YAzRfL\nzpLpAgfFgQpZ7g6THEQDsNRM38OSc3dk+orphiTnLxYN8eS+3ShfCXLpAliG\nO6CU\r\n=e5EV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZv7SKBESseIdkYF4eZmJ1Yva4zc7PQQu1oFny058CwAiEA2In3B+KmZ47FkLvc7gX2F785IiZwuPjZaKYMv9O24cg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1587006981701_1587007023192_0.8022495287244293"},"_hasShrinkwrap":false},"0.13.0-post-next.1587019216122":{"name":"playwright","version":"0.13.0-post-next.1587019216122","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1587019216122"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1587019216122","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UoOpDFPsm5Q9560Ln9swXyy96GIfIbT05390ilBehU5kV7r3318WPj+4m2QNjzP48f3CKtPPFjXYFT8YU5UiOw==","shasum":"09ecf59a8bf71f741fec40c126d3fb426e093b6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1587019216122.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJel/37CRA9TVsSAnZWagAAY2YP/jG6LwhTgCC4TFmthFn+\nBbBF8OJHlC+f4XlxHjFTiBUQBrjlQmIlC5uMaWL2L+ItwZMPvE4ycUv/8qDo\nDrx7kkuK31R654KNNjmAhRD1WdFqYrBXQWiv7RudkY9y6LqwdjBkQgCSMQAK\nypgTrAVcD3+wPQVTGJXa0tIpIVYqECIlHNf0Ot9+hKYRndzgX7ykaQmeYWs1\nvLSffNLe6GtY+qCD+zergD5K3xxCIBKmhws6oIw64D5yQLnHM2BKYkMU+1FL\nvNybvwhQqIjkPbAgH+HC28PwoHbukv+MPpqZxM5pFmaNRgTHr3tAi+ZGhZRi\nNgMDgweEEWOmpc8OiqWHbzvC4iCadbE/yG70MAZfqh7rZW75htGs2a08TtmH\n7GUKDrz9Hz4R9Pqk61pt37xxEiFjZ85HkdKEPCw0LnaxyWQzV7iGa77EWgeH\n7mJUx2tQHN73jtWRpsneU7sZwgEIwW+Xc6mtGerzrNWntmele0ox57+BF1Sm\nhhicZ/7Xw5pmwJg3LNuJk1ASEHdbMgJzoqSv/2iRCT5C5fpCWISTCiagOl7l\nyBS5/lhe3y0rMsMVXdppxjkJgUKDvFwaYyKtmavhEjOwvoqFBcqUooYsJ/SA\nJYQc7pHpGMolNaIZcswMVegDn1dR0iv/k96RzwwoO3qzgGWjj6OvV5NdeQo1\ncJ/e\r\n=l7LZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyTvipYte+wcFtrtBMesbDs7Pv8BRtra1EKzyqPol4aAiEAmFwGiTXwDaH2UMW12jGa8o4AVZ/FrBZ/ZJaP2Zt6m70="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1587019216122_1587019259028_0.38407198340778415"},"_hasShrinkwrap":false},"0.13.0-post-next.1587056456668":{"name":"playwright","version":"0.13.0-post-next.1587056456668","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1587056456668"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1587056456668","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-L7Sh0sxLPI0zLnv7dWxVhjU6VgOpYAKWPn/zRFy7DEppWnOqOX2SEr+9/t+4Q8PJIu7an6Tfj27k5Lms6plvDQ==","shasum":"c64829d1291988221bed7562b9b8fde35c644a93","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1587056456668.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemI91CRA9TVsSAnZWagAAKlIP/igvAOg3M4PYa9K6DutA\nGUhgBpmLeFctDER5NPOYeccDXstVnfFOaVSdTXRH4qbZIHyB3nI/qx8HFk6H\nJrCAGJh7UVpBabbyg7HGBCusv2g4VugykmN8nm0JbH22nUBeBjGj4hLOALd2\nqx3oNzX9sXVR43d3DLMQG3ni7hKrQ1E0MkXYN/iBI902IZIGzwP3FjvuVO23\nsGelJcqKvT2jdMHm95vrrFBp8mTszCSk0mU5X4E3NRyUpyqhysmUEJEjULYE\nTwk15eyHJaKDGubAQ2DrfDjBB1OWuM74rmU7P+086Bhdk1bBzGmY9un/Mi7P\nLtc3zcknZ3oHJW6bQT/XX4ECrwdgZJpiUzqm9eUR0MtIRxsPeDx82S/8qdMP\n2MOfuEiQ7mLB52CPzpt35SHHplgk1HMaNhOeYe5T+LjngoLXcykGoEa1RQRh\n/DDw+B5gcnR7lre4xvJTckptprpAS2MybqJjaxWpkWGos2p2RKE2ur7rbqlv\ne3s73lCLi2vuiwi+KjltxWeKktPDi/2ozhZAcvKaxZmAgZ8yl9mJsrSq8mJe\nyY1m+OETJiXKbwqOysvXeJuyZDSmD5eqRHYHkvONsfqtcHtB96NaovinUJBd\n5y1Cz73jBQoRKmA8VN9AdgLt5ZYu2UgN9F/SQjd87IMShXEbVIoLjMyxSBqS\nAJ8u\r\n=ccVZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCf5jmFepoLhX+KsO+B0JTyIADxQ0IN+WlJgYBEBVvvnwIhAJqEzLuMtJppgRreuyFk6a3xrxEELaMZXDXWmbxtIhzy"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1587056456668_1587056501024_0.7774352023767532"},"_hasShrinkwrap":false},"0.13.0-post-next.1587059273403":{"name":"playwright","version":"0.13.0-post-next.1587059273403","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1587059273403"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1587059273403","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qjzB3avC4h095nXQZCXaGAHs+A9fLVxM3UEHoryYRCeRjtw7Fh0ph46wilbvpJo/r3amtH+0X8VzzlMG+U413A==","shasum":"3a4faaa89d249cc787c1a338c865bf0a5425f900","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1587059273403.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemJp3CRA9TVsSAnZWagAA8S4QAIDgMzmGnkBcZH/8/nhx\nZ9VUUnvGDV26NGJZ0zOdJ4haUGpWBb8W0opm7tRyqzOrnVS8RkKEy9s0UH3R\n3jpLA780gLMGIxVWfFOYXZSy6tb2UVgZqZV6KbTmXTlblc6rK5NbuEspOl+1\n/ru/6sEQDje4qDEWuerwcRJ5fQsE07AG+CShcwMjbw5csgOr8HT3qMzK2s6D\nWD1G2bbPagiUUSRpuba+4Pf7UWcRS6DoN6jmj1gdI9GUeyWeRnSC/RR9VkqO\nJtFj0OpDtfgi7xDduRIf2LxoO/NZ7wF076belSDzX1QKoVJQIvIbETOHEkEe\nKA3Unm9vkr4DDBgYdfZheAAEETw3tE0lqC59QeHL0QbqtaxTdUyYveLUX3Ov\nkhrS+hhd+15yB9XuQ0c1fveglMFdgPHd7vED4TyxPCjZdWisoiNXhrAaMcWx\n10TSNE3GQowexy68gCg1Pk3DSoJEDq9CtMJ6gsUUTjsyTfqaKk0pIZuy7/W/\nrr/jgiFj4wEGwZ1bGlpMNg3WlRv2NgckpqdB2lOq7eynv9U659fw4fe2yB8b\nCQyjV6m2YIFsKfablM6Y2wfMlWqboB7HifRzhEKJLVEBRTi11VHKmtVyLhFI\ncWt9Q78qZWgia5sbI4JcCDicTeTVipM3ejjXxVVthzBAptJfWYNczhCnCYNI\nzAAl\r\n=dEb+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFoOLj5exxCWuafCFiSKWf8wpeb/alqGZfLSlNhqNE8NAiEAmLn9vFy4cKp0IKwgRdxMusd9DA5UxyaKrFDl3LHflWk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1587059273403_1587059318869_0.8887320095652818"},"_hasShrinkwrap":false},"0.13.0-post-next.1587062067958":{"name":"playwright","version":"0.13.0-post-next.1587062067958","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-post-next.1587062067958"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-post-next.1587062067958","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OXgNoG0o13ktv709p8NmzszQ/gCcpZmJyChSv8GJiP2dF+JGdtfydzV0mojjYmRpM+By5KL6h/fPEe46KRYI7Q==","shasum":"e1a1102fc0ac6e2b8ca97df93a2da67ba400cb79","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-post-next.1587062067958.tgz","fileCount":5,"unpackedSize":15554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemKVhCRA9TVsSAnZWagAAKeAP/3mwTz+G0tel3R0SI4YB\nj8JszMNtSGzvK0riikn3VlD18erI8FFJJJNAxWzfjfoyxaVrEvtmviGNKzNY\ng6fflkH+jL6vL4KRFS9sOARMiAg5sEr4GfCwIAozLYPCXbhNjEAb8WChoUHG\nM7qKa9QA3GNHjfxCo5mqMNc7PEQRrC/sum9ecq/uWHGEgqLhDez1l449B7O/\nju601eIPpe/CSpqCzFEF2WYc2GXTEag/6xMKOUJZgtVDgHLEkQx6owIWUp7Q\n72DFd7CJT4D7kJ6AywLtZFUMoRojokXSk+JLzoBqOyNRW/ACsSyAA+iq8JXw\nu9S2FpzoLyIdLn2NCwvAv/IQa6RcIDOheXOnSbPsw+rQNIeRVUzeD5z+OJrv\n1IOS/UiXyXlBKCwm0SknoCNXwfhHQPqUZouGKsDVZu4H8dODA3lOzw1C4YC4\n9RWLoOfyLr1voVMLTyDEg+auqKBMPup2mYbolNeTl2yUbGwZ8qN5J2JzeEt1\nc4vdzl4mqt+0UdE2Ja9Xm9o6++85G3l8Yr/ovD6nbCiNRqoL8p8+x0BjbqO7\nJ/JiDfFAgCkimpA2rIPElLr4b9p03sF/uzx3Y0cK1MtwbNEQFE3Nky3p08fV\navk59E70kxPW43LKr+c2+qDt+hLEc4hhPeyRBz/necBS5xbixCeS2M3JQPgf\nLx8z\r\n=xyIm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkDhyXEdKlfpmdEtrTz3Pvfs9qeJxzzQqmX5rAlpdJZAIhAKoTHRbxZN/40iaOH3AthHLLsEPVJdiqEPvkYDgZlnFA"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"dgozman","email":"dgozman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-post-next.1587062067958_1587062113428_0.964110158765288"},"_hasShrinkwrap":false},"0.13.0-next.1587487666308":{"name":"playwright","version":"0.13.0-next.1587487666308","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587487666308"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587487666308","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tHAZD0z2hKfF0oUTJd62ZXSfCRNRqF5JZNe7oiQ5B73Hd/47X6KkA0ClGK30G2+dg8cC6WNH8gCAXyZuj3GkcQ==","shasum":"12b284714186327988f5d309db80e6b8ce5d2e5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587487666308.tgz","fileCount":5,"unpackedSize":15544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenyPdCRA9TVsSAnZWagAAxI0QAKCj5TiJ4JnCN0mFaV0Z\nfBGbmGTRXPSojwXzRfGis+oUsLYMS214S3k7Jq+qWJ54NMf6NffKbUe1WU0y\nrSNJHhJZ6lAcXfeQ6HvnAgTuz4E4srFGk2/nBitNEaI9vbzqHvNCdIeEjfjy\nJHtEe0c2KMsJnQQFmdBlux7GZfsM/tqK7Ua5bY29EzKWSo7JXOxbWVI8FJA8\nGn9uM/LPTNtt5X10ReHpOPUpV/QZ5byvthNlmmmZSovMaZPucpXyjB1o7soB\nS0ZrYEjGejpSFF2zCEa61qmqNWPU1sYg+68ow1snmvTOgdYZU+8HNl46D/cL\nf/GQGSo8pRR/Wfd4JTdznYL40QfPKfk6i0pKsNHFnbIGkdy8hQl+0+4kzDHE\nLOnvgBma8as8uVpdHbAe9irL1VgQLyvk2bizLwAIpa6k12pSNrzkmumMxWNZ\njQKsaxNuDrEh7YiDyFZJt7LML7wEpzu+XgE7KqoWWGEsgbq/Zhr/IFKBFykK\n0l4UC96FmBqfJOoSOF8QGEWbMtdF4aXkxEbBjiOXvS3pzKSe6yb5nw3qs+5l\nAadhJO1OXmtyap3KINEd0AgXXHcTyPjPuAB1mbdhZ4Fd9OlxrtVYIYEa/dji\n4VrZeVtaJHDX2CaXc7CoRtdxNNlXcmpLYMkf1RLKSLY44QFuooj4Id39RqF0\nr+sy\r\n=KPAG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRE68Hk71QQ6B9hKQJAV0IdI+Sgnyrr0VRYJAzbbVBkgIgcZ/g6eZMd/wIoj0m7CRGWDJzLbosr50mW4J3fImR3J4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587487666308_1587487709089_0.7983703578737604"},"_hasShrinkwrap":false},"0.13.0-next.1587490812330":{"name":"playwright","version":"0.13.0-next.1587490812330","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587490812330"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587490812330","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-KkdtO5toTEIxvRzJJK9LXLjXIJ3XHFc1n04woBkgDw3896iaP+F8YzD+FTr49sEg7p7lWY0pMxr9tiH3gwIV/A==","shasum":"704879ef32235a6df4970f7dc77a306bf96e1fb1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587490812330.tgz","fileCount":5,"unpackedSize":15544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenzAoCRA9TVsSAnZWagAAEDwP/153D5kau1hp7zcrfP1Y\nQKfRdeVcNIMGEh9yvOVbgyPcq8P+VLFLzRSLxDDQ6l/V0zK42R/798PFfdcs\nbsnN54b7vdzL3w3j1jP2tgP3DBqY4ukGCCQgmz6KHFkRwfW7aIcQrF03ZHwr\nViS4elGvM47zgd81/plbss75XZhnVOnGgEp2dR7FNxtwwThWDsIrvUzFVkId\nEmf9WXFGEpNFGf5sdLUsDqUM5QZWk3sR/1wqzgneByYClQzq2D/YPbRlnLpv\nPBb6TKhaQu8n6JDFuaCDd12kMJO++lLK2HTp+xBL57p+SrxlO+ZsxguYS4Rb\n1ZKSCfwsX69yu8qijyYY/yHLx5CvY/tbnLpKl+5tfWhUlfjv9zke+E9BkefV\nEKbAs3s+cPzjK6QY3HSyAMs86DJoZ8Y3+/W6G+iyDzeUQPhwxQ18i5m74QNh\ngAVP9/A8+wYC958aSbNp+5ZyXb4/ZEnHd8d9IVwQHjBc+uYCp4UjC4LaS7DU\n7JvxnZsMhDoQunLqmCkiye6nIEMhX7uuDqkS/UPPWxVUsenmAbPc5kslwpmL\ntSQx+j7GzSk9gGy8vgVzLlDYs8ZLGt5bPUrqY8gR1s+8VyFYTe2wydl0vsSQ\nqKUtkyLVH7n4n9PxXZF5Omg2/a1EWGYHBLnN6sNiR+0RODccWDkNK5Vv8Vfp\ntkW3\r\n=odH4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgv3gtwRRChyFpd4/qQAMb8ANF1mlC9knlkLclwN+VNwIhAJY3pBpzBdQ3Gr1yEAGiqanObXvLs8WJP54nvy59Ykvl"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587490812330_1587490856098_0.46414137339168393"},"_hasShrinkwrap":false},"0.13.0-next.1587493784299":{"name":"playwright","version":"0.13.0-next.1587493784299","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587493784299"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587493784299","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Gt4yehy1shuYIGomLLPWFQxxGyeuZ6gXiYH7PKUDCjDYmYZKVW1IPqx7+6ZrasWmGCJUiR6RN2hSGBBeOGeOMQ==","shasum":"9533e95eb076ba274a805fbaec384c142dd7ae99","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587493784299.tgz","fileCount":5,"unpackedSize":15544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenzvICRA9TVsSAnZWagAA2MkP/3D3kOGDS9/C9m3xYdy8\n9aT8v1UfaFLsWVfWw2EYxUb8l15onQ3Ma/UZ06/fhUqXgBpJE44pXdF5nnEL\nEVItbJzKK5HmrsUYXT6Xn7tROUVbOKXl/7Z/adi5e5ZqoxOjL519kPKNAFje\njDlUr1B5yETAN+6ENek6GfqTqLj9d51OYtefsFZiEgHQK43X8AS20cVUAO1t\nbHlGmzrIDg0+UGPx1wnHxAR7pQDyTMh/nBn6LcGkf15PgtlMmvvkc5yNePo5\nAe8qFu34/JeAZ4Ijn7wWjoDBskhXA+75hLIeB1C5rwAIUJoJuiCSZLhQgqEq\nj+/dkLa6FyHrP5rEtwJRRxc5Gh09ORI3kh/AvxnGE/pgbBhts4qaiqJB2quz\nQY1xKDIo388IJEojdra8iOzKP1fAJfWfTDF54VU1V2Y7F5LoPEHpqaZxKU9w\nKm/mWOS8/YzTpbk/enGb7mEh/B9hTvjNKqEYwx8SAqlcI1ZnONeQ3ujEeaTK\nG3H+TIygFnYze3012+BNRUaRQwIjQjNNgTr6IRNKdCVgdQ++hc+b7xzDOn9s\nb22jmLPwZSqojmLhLmGyxluJfSwETSgwR+s3oyL9q5UCX34RfXxfdi9ZLR/9\nXAfTV5zBfbgEBK/LM2t8uevLLKQMly1ECDPi1DCaXQXxQkuXLtU+am3Jg89o\niiHh\r\n=g3PG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV34kdklxOnyK9p1J3VtVhKPjtBWhVjS63EZMQXNTErwIhAKERlKdZmscu+9iAi/0t+ZxZ3FzJ0x9S7d+3BYJJWplV"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587493784299_1587493832031_0.48343687388024437"},"_hasShrinkwrap":false},"0.13.0-next.1587507074181":{"name":"playwright","version":"0.13.0-next.1587507074181","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587507074181"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Resources\r\n\r\n* [Get started with examples](docs/examples/README.md)\r\n* [API documentation](docs/api.md)\r\n* [Getting started on CI](docs/ci.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587507074181","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PTdzobdDkhOisgqAGcWKvmqNetLaAdQlZ/i6UVIcwtCRcGNbgnxjD6uYBzVdHUh10QQWd1JRUpI41Wd7zWdyaQ==","shasum":"459eea39c3d8110bae38c087704ee7cb91003387","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587507074181.tgz","fileCount":5,"unpackedSize":15544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen2+jCRA9TVsSAnZWagAAv2oP/2tpjobl3qGgokVyQ94r\nrPH/KNzB9V01j5d2giCIQLXf6oy+y9FgqPtA9mokHx+JFKZGQf6n+LXktwIJ\nqpdoxk5GpnOWIvGHfgGg0ZGq+6yhvM7b0yVQHVIWVfsYPUoMQJUHoEreJryB\nhvy7yAt+MFJeISVXgh3+CFoDqZdYu2XKwU3CMLBqFT1UrlcaVj3yKWe7UCP6\nNgHoOYpE0MgwXmgn0tVvzV3B7qEXGwDuYTg1Nstj28lwO6lEdpKbjxau+hdq\nc5H9NUaPA7szAb2Y8D2jtXCZ73Hxp8qdz9xJlesDnodoIVVW2k66AofL/byQ\nVP48590xCs+BVOaGdubA7bI2UuC5Z2/5VqUXjoFT4o9qlihLf6ZzSY+GROcw\nJrTm5oeSIbzwVpHd0N7nIbHg89HGFthSbyb308icwYq7N1reHzc2Kreq63aK\nQBQf10zwQu+Wf5JzOdj1C5t+xQ6EimKcFdfvDFoYuQD5wZPzL9bVLxt0CdSk\nELmOcdJXo2Zj8wiGKI3KtYJZzp6zfHFm51rhrsEQZX51t+9wwP04BA3ibUiu\n5N9qjsthnQu/fdMdbI9rVKDLjYVmrIzq8p341N3DDqcGzXIdJ95hnTSlu6LG\nDtR0VkClbV2HW8XGyA/AWITRcxmNmcmeh0VWWEXt24ZnILvhQIXSRhLazifd\nXSJO\r\n=LzwS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHyWZLao9kXacnW9KTBpltjz8m8swwZNodGcRyY/CubgAiA+R3TOQteFCdQRolEA1GHksUeSFAzfNFIXY3xwDYg9ww=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587507074181_1587507107000_0.17554880010938212"},"_hasShrinkwrap":false},"0.13.0-next.1587509060871":{"name":"playwright","version":"0.13.0-next.1587509060871","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587509060871"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587509060871","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-579H+wHg1UmhW8VwUVpj/M2Cn1/0vT4IjpiI5iMflfylz0OiOI9UXt9me/IHKK7LrF00S49wOsTl3b21dyXQaQ==","shasum":"c6c6efef512a82f3d3e92c25ef071744f4973e46","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587509060871.tgz","fileCount":5,"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen3d1CRA9TVsSAnZWagAAQMcQAJ6mJgmRalTP4j/vrdK5\n0e++cUwT82Q2t5n/k0pO4aRABitonX1sY6uEp0pTXV2iA3cOt4uTqAH8OFvz\nu1f/cTSZ01c/MR0gLb1t4G3wy2+kOAaCUR6Lp7PUe0ZQS10qBVAbEg0f5dsR\n1ggkwWwV4fhW2yE3tfZD8/4giyBVYikisDXr5yTIDUu67GPvF7ueZiC7XTXD\nRCGXo7o9TMg/5fxsAv7Yuzu6eOQdZsE0xA74Z8T/Un+Vey3am4foDbcvKslM\njdIdJAKovO8mxU17Fr+kDj3PRilA3VkdIBXPWnNXs+w/34QRy7LVeKk0tsKK\ng5zBSEqVNm69jvhczsrDwC9zfw9ZvdjuZgi+eaRVhjHLrL2/3PslS73piU38\njDkgl8EKcrH1kS+qdt21TOnaK5fcMhHNtrW5cI11PVMX6zUieGY9vPKoswuN\n7NffiDr7aVMalxlX6CcXfzTiYUuRjzNE68XylIHVIRE9Z23GWfx1l3BrD6zv\n3F9+myb6WYHAIBPbPCBUV6p9zjzILi/NBVhgJfvQiqPLO43hJkwXSc5EFBug\nZ73/mBxQRNIykT8kxRyYJtVRJrqSijyBaSYumXoWETSDPXQEIICt1NJXOvPN\nSRD2xrnFGBrNrgvJ5aOAfbPSb70EqoK8VoItpt9J2xTzZZo0XhQP1I7Ih3rb\nzrUm\r\n=Abuw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB7BtUD+x1zuX6UK92HYJLonv1Af0TBKIHd+BBsIS/zaAiAtMm9DshXm28Qd/pF/b2DEM/UXWGwiFF1C+NGLUHlqvg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587509060871_1587509108573_0.9673021043708752"},"_hasShrinkwrap":false},"0.13.0-next.1587512419202":{"name":"playwright","version":"0.13.0-next.1587512419202","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587512419202"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587512419202","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TFntJkZsxWbzA3NYgOwHAiQIrtm60/sMeOyMZLu678l3nPJr9Rt+KIc21NzkOIl1mvzdTNEoccjKGSu7dmF+vg==","shasum":"207b4f9ed6eb5204bb36cde2dde78c36ad45c6da","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587512419202.tgz","fileCount":5,"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen4SLCRA9TVsSAnZWagAAWxwP/2DWwTqcFu3qrEsYCVnD\nf6aO9asMTp0ZSSod+MgZ7/ujGU957AmTXSZvI+ImsACWso0+rpaKzGbIH5zA\n6aGAddCriwoeVxXCx+z1vfC6l6GSsuuGcJyZMne2PBIefWy5B76MiEEZas7m\nU+p4neYac6sVNLJw8Xult/zuS45WN99xRQOtd+5S3EBfXhZsn2ahUKDmR7+S\npWhaV185MREfeIqPpsxJEFv1H8L2nvljMYbMFVkoffPPlM6U5NzTD1K9hTIg\n6FDWLH+d5DDKp20ETg0ZTrI8Wm/0Qx1IFo1/ESPqSaLnczAcYZ87WU0YI1mM\ns/NEW9rbWmCIFwwmfboyoLLUDIQBfPfTMHYAZjJYMUFXAyP7naea91Yxgkbt\nb9v4a9jkdLizgbZas0V+8lxr2mAxZmPs/Z8RxbgQ2ubggHzpA1/u7aiFqNA9\nuDtw/yceOApy5qaauyfPy+uR5+SPepaShWO4ol+icV+kcwlF4KMoGQAnA25T\ny4K0QEgoTVCxUsJwpxgGhxqB3n/0xv9Xam5WNJVupCA6FCIL6WmiYtNebjM0\nqEiXEyNIXXPAyQZBgMSHuRrP1W852TIaFeVtEb9jVlK9ERSjfEyTt8gkge1t\n5Ka2UqaXUZuvwDDFLz7SurdQwzia/o8djt/h2AsgA1U5nCVRUFDT4E92tsLc\n9FZ/\r\n=7M/b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD21F91UPP0j8DoYxyWqr7xii6gZV2jCvFnPZnazUmKGgIgLaosZxW29xQoGFQVX6SSuY3U2q7MAIlHLIqZBLidAn4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587512419202_1587512459366_0.461554977089631"},"_hasShrinkwrap":false},"0.13.0-next.1587512949570":{"name":"playwright","version":"0.13.0-next.1587512949570","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587512949570"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587512949570","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UR+5dGpsGT4seTS8GKYSONU2AtAbqhBNAv7A5wwnaTweFvCxnE+8cFY4gOkw9v3dmh2r0IslWYP6ifPowUcb3g==","shasum":"76e3dbe519e2d38547792f3bf6d015cf9cc4da2b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587512949570.tgz","fileCount":5,"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen4afCRA9TVsSAnZWagAASeEP/3Ya10q+1/jb6j+WD1Xh\njBRfuFYoN8DD5JyGemA/WDEBz1EQw38fv2x/jfiDhtW6/fJyvuOjt1UV3vm9\nGHi0dc/6bDkTXbvSNwGd6aaZoEF3g9JtEg+EgBwsMdM8RujPrHTViZxClxLM\nPnU455ONxiETtwdIEq40/aQ+9Svhl6uSKIX9+2lP2w1zeUUOef566r58nTJc\nduuK2raxaUtDIQDOitHHyZPOx3WMiQtT4svIlKy+cIo3itbnZ93Xp7b59yee\nJYz6dpThH4cFsBurbMvs7jj9m7hhxR0P6L10X5WcBEn67UlINZ31ql0jS+rL\nOgQpq5i08UtHVdL49Qly2NdM06sqL0hY32gHsONH70KD/zHQ10cYGIWsnKK2\nX5Skn5jMh2l1ZqSVoPLQRp+0BSNeoZlhzuU+O8sTvjculGud/tzP4XjRWumq\nTQ2QdhWDg9LvDT4aFIFeImyHbt8YyAzSc6aIRy4z1888zFlQ76RSwC8HIy3n\nCcqUhvY9VFkHN88qSQyrmWNndYB+5vRIs+p2XRzmUBVxWbr5+/dyYq6sciEn\nGezW2r/7sZ9B0aFIC06QDuqJfGiajLQfgMQktz4jqk8DJPUJq1to7Py8eTj7\n+RKW4QEI5SEWgAKJ/lruemYxfOVnNSUru4PLhmfFaEOY/XUOi00Y45+n/ue3\njxKq\r\n=PECf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpvX78ETrFe3TPXDWjjlXL78/3OdHxhWPaFishi4vnfAIgcR99oG0ikUMUyCLdUHnZZTZ2PA053BCLCA0w+SSnNvI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587512949570_1587512990678_0.903879796449901"},"_hasShrinkwrap":false},"0.13.0-next.1587514508659":{"name":"playwright","version":"0.13.0-next.1587514508659","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587514508659"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587514508659","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gYNYncfi93LBskUqGXZCNJIdOlW8Iju35jnUeRUKkMo5GvrpHU3Le2sTYgkzlzn0XzcksEZCK2ui0Ectrt+odg==","shasum":"8fed2b4bef0669e10bce083df0ee5f99aa1d1138","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587514508659.tgz","fileCount":5,"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen4y4CRA9TVsSAnZWagAA+2EP/0TpcZd0ga1iwgqHyHHV\nm2DZywqGhbJvwEczKmUu05NscsRzoAnIdgd7XdnydJ9w3vTYMC2YRCt/rI5K\ntw/GAqjuVRJpnJdZ5q9VcW9OMVLQt8Pu9Wqtz/1TkFgVsiaomi2+zLrL3Y8A\nRczXC7maIjy6ZHW1ZQbLhzIh+PdxJnkoFJw69ym9JSOcXxL3lSSk3IrVBS7m\nStPzJGpZvMRFELxFgeHlEpvVaFgmFbH0RgPhrZfyJ1j0z7XRvAB3tKNEb/9+\n+n3wRKx9U6FCjKCZVH9VB06DgaOp41UCmiSial1ausFgRJ4V96kQ0UhGeZnQ\nJocU37KSMzIsfWGI/Lfn+gtjoGADn1P+e1eDq5nAOdaR2HAN5ML/ILGYB6g4\nQclIZK7A6GxYlmR7yusyubbC+Nsbe8wMwxqpK8nQUF/Gv7x7b8YObwLxCl33\n0duo3IL4+kCN6Zyk7TP+Nhf3oVFvV9XhcQK2ZoO9g04jFWelhjvAeLgdojO1\n4U0IslYn90j9STlUkhqQtV0PMUarwF9M9MSlbzXR/x6GdvPNkaYtbz+TuY96\nFQHa/bisZ/DNLrwgpEXxN+co8aDQs0StUeIpJGWbYOj8YrJZQjBiIZ4Ec5vB\nd9o0uHM0ZvTExbP9sGLEDg18LrE6x/tRN+Ap+QnZywpAAkXKBE16c6E+LyFF\nthDM\r\n=IUKm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCO20iXNR2jEJ0DvmQHilvzg2RdTqf16nNbeKyKO2FN5wIhAICui4vvJHWHBaw5XUh6jlqaXX9dzV0jE6Wcj65UcHPx"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587514508659_1587514552276_0.6285072383203822"},"_hasShrinkwrap":false},"0.13.0-next.1587514744383":{"name":"playwright","version":"0.13.0-next.1587514744383","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587514744383"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587514744383","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CZytoLmghb9WO2+zkMsVvEjyW1xmxY3zVsvB5LMHr6xwZkXUN2peyWFDW+GD7zsxwpMss2C4YRVbvlzzm3F7Dg==","shasum":"bd5a36f81dbf09038ce2275625a8e94bb5e9a6e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587514744383.tgz","fileCount":5,"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen42eCRA9TVsSAnZWagAAaxwP/0Dh2p8MIqprLoz24jka\nf1hDe2SnyEDO6ld47M2/KU1S8EMTdOd4jAwYRKeKAwyPqFoHVca4hC2fhiWm\nySF4GjKazA0ABk2BmMvXNkzewhVzC6zd8DYi2L2NY1doUUnq8qS4DNxvQKuf\nsYKAqrjHOtfx7TzVLohK1Gs+YxoTlrcfD6U8lznkoZESDHhBa9En55ZDa5Fp\nNNwPrAkVshX/UPewZ/0l8ucsVGjVtYqANcnZE3OmuyjTtZXnyrcQE6lBm3Wv\nJEK4Rc9x1+kowF1BQplfLQlDHgrkr2eOJVaFrPwvsj9QgM8zrnmS7+McAIbX\n4lUsgTB6FuSdv3G6/W8LfiP0ct91VUIHKObcaciTOjvChhoDwyM6ahu/iyJU\ntEfS5xcA+ZXQuPWoRRD8nuQr+vJZS0Xndw8SnlYdNmx4od4nkuKiy87soWBQ\nwXgR4bzsMKe1hlHNACj26FrNMCl3NKfG6Vp6KjZR+8grixxSkFWvaLHjVdtl\nRg0XmgAQHM0tCu26uqf/qqjWJhZsIHEQLoeW9UKMIDM7ta1Zs1Vg0hxdAc65\nIjoqgXA9bWn6+vty5cC+ummeLacsyg5PX+CWMdS/dFO26wd7BWoeZLZrDsG3\nuce5w0MvZBOjFTb1h9UfmbeIAR0hXjTYL1jkERRkKiqASU6oY2BH32g2MBXb\nT9ED\r\n=DJ2U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdEGjXB6ApLPh1qqhsAkQWOSXXk460XVegTWjnk7BYCQIgRWTGF6KtaFFi6+cck4ZhYe7wP2ZfLSQ+EWzuLOx4LKw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587514744383_1587514781964_0.633216085615925"},"_hasShrinkwrap":false},"0.13.0-next.1587514837380":{"name":"playwright","version":"0.13.0-next.1587514837380","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587514837380"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587514837380","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fuGnSUtcPwttbUEIf4c5IEL78tsN/IucXBTJoJXlTDrZLJMB2d3fqYVNmC8NRRcQ0in4/WXIG99wTTU1xN6TTg==","shasum":"d687dbcb59824e37dcf3894f30a838557dab4922","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587514837380.tgz","fileCount":5,"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen437CRA9TVsSAnZWagAA+LUQAI5T4P4kgej2wL1jU3Ei\n3Np4D5kSut+09N6uV38wcfpAZoUhFvkne9fpeLxWNbnUaws+BPQAPE8B4Xw4\nIAx4vu5knlxhldySyixfN8ii6j/F/UILgEoPzLN3mq9EZhLDR7qILOBO9Fbw\nFgf3HbMvFGVpMiBgO3r6ZY1ENguZRg4TgBxnU/y+E2RXLkI8kSKV2v2kp7Hz\n8SIKPnL417/Ys2SMAGIA9aB+dRWhvtE2xCb4bqGwQB9MDwGslK+hublxZbCn\nQ3sGhrSciuo04qwOs+MfWuf2D+KAzE8iIoSR5Wt6YkmvgoFcxGG31rsnhwBq\nCyvkoyfmnq8xL6IkfO0jc2ADvAhxSWfy/1WqZWBab5tnQbqeuCEMRUUxbx52\nFobAOhK40taOETWQOHQxJNr7EgRHrK1cy/28xTymf0x+XStGRqt4o2OVBuHb\nS+qG8xZ2VlJTyweLN/972HD8UBWeM7xW4IHEdYqPbiZIzU9oM0MjaHjuOrg4\nSxsT1b5Cl7JGABAeIzDt5BgsXosBze2GRLXHU7MHhIgrIaSy/QtaQaS8pduR\n+JrhFg2BvciputPjiw5qxoyMdSqENjZcXA+nx1HwS5QUxZvmPBa8hektgiEs\n7oz+M3k7VPQNJrA9c/Hm4u1WSOXoZ78Rl9yYBxXKMfIpzaMXo3Kj8X/unEyI\nSo6W\r\n=69M/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpLvsRIN2T17uqOQRhNhJHCtxjbNwePIUPf3eF7ahI4AiBWcZ0S7OkijDRjT/Q3fsZU0fs4kcdKC+THaKUyscbBZA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587514837380_1587514874663_0.0021209061656448647"},"_hasShrinkwrap":false},"0.13.0-next.1587517305438":{"name":"playwright","version":"0.13.0-next.1587517305438","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587517305438"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587517305438","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-sQcN5oxLeU/6AWAa9QTnhZsrs3qeDkAuz/y828+gJ4lmWu6ncrA6yY2iE2lLf+qrFXz4fOTi9a/bhnowVyJAOw==","shasum":"770dd1ba9dfb67385dce0a7fbaf7db1f510add3a","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587517305438.tgz","fileCount":5,"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen5ejCRA9TVsSAnZWagAAJooQAIFyKxZT04T9vE5pMzs8\nxH6eAIThCDjp06jhf/2ZJFG8DJfMf35u7ZkAm4fQsUdNbmFK4+1pGXou7XpY\nws4WU1YNKvUDKgKDSYp5v2rRLcNwBewqiOtWEdmxZbIH+YCds1CW4TOls8DH\nV/fJl4C84xlplWMqi5cxwozr5TglCrIDiodFsYA0vJTnjtciOcc0GlO2KWOI\nefYLIR30wL2zFRIfprn7Qho1eMGmkeU0iQ5PN6A+FzsZ3iQA/apoytf/V13I\nP4YmNyAvKQA8a34cCBmgfLK1+fEgOpi16GOunse/mVvmdYTomdQObqPNbgaE\navqoyfzG5QVuh/jvq9Pr43knm1Lp5+f4E53cZsgv1Yx3V1ISB+Pka0769QM8\nQrXTCex8jpHcg7pQCYBz46KMt5w5tJ55yhJTANupsns8RU4cdts7XBdLCclX\nvoGyJYNz/ofU9sL7ytf0qeplVpFsuONvclsK0WNLYqkHguuz6l00exSjdLPb\nQcj+IvVGM5jMI/+3urEZdinSHTp6/w84ykHE3O1tnaXLA/uh+mQ+EAgBdc3K\nNyBmTv2b+Ie+x+hX0Yk7jKRPjreagSHkpygzAPUZaqaYzFHFzBMlLwQw0jl6\naaJ08WJvOjZrPrhYGkdNp46u3gAM6g4t6vncYwtfqDylNpouv6wN41pbBgES\nEuqG\r\n=rPuY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2Sp6+J6SDrS/NwVQdLPcKm7WxV56siEWCQyG9bNsj3AiEAgrMBPwH5g4yfoCYzjo4eIHyuVvS6o7S2YsVgAKc4qTo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587517305438_1587517347486_0.7532994293173085"},"_hasShrinkwrap":false},"0.13.0-next.1587522109589":{"name":"playwright","version":"0.13.0-next.1587522109589","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587522109589"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587522109589","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WKH33vQ2yrobt6WpmOGPA6zkCDpcsn6+fdawaRd5mb1CPr9fwr402nv7miScdSADlDN1ijId4J+3u/CkBM7XcQ==","shasum":"e6f2bc2dc9297644edc55e48e42dd466e04b9a04","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587522109589.tgz","fileCount":5,"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen6pnCRA9TVsSAnZWagAAdcgP/j+XVlUKEq7lG9YhPmca\nlPg0Ylp/kGzXr+bjHdHwocL5M/NpB+Mzd1D/wg9qSVl1ti26s6ic8UpIIVT4\nQPnqYJNFXkWHsSbgkY3Dd2gm7jQi7Geb7aLgsILceNe2PKkE7JhlbnB/VtqD\nO0NHnkSuSqn7vQZiSEDMouEnNRJurGCOqKvgA4AWMBgOq8Rh8hcS7L8ZFaqp\n3cfCyxgRZAMKXpml0cfKtwijCAnowHeFI1W8OW2NJ6XH/0ZCkbmVC0fGYa2K\ngWz/1HEAqEFTewa1p5o7zUrB9tLpNutJreDEGPxvHg2z0krbUP41r8tVYLQw\ncN/vTlpK4BAobhaKCzihUTz8T+qEmIDIf53rjTlPwmB6ekb31kk02Qm59CcN\nQMLoCmZZ0GXicz5Ehb726Juyp6k2v9E1Bbldham9X3/53PO32q3Hjmj4Svi2\nAnJ/zieQZs97TFXd98ys2b4X64DOYfRl7YwSLvVNZ6ROMtwmvWAN48G5MlC0\n9/eVVDyJWCIZECRH3ASmu9ZvHmOkKPKM+msDJwrhdxgtkbIKoX/oSj6gZ9I4\n3IgCljaU+MBmbiGEdhn2EdXZzxBiWhz9cihVfsicDy7QnlDx5q8MWogOqUuw\nfKZGTJqioKff91wrksBjHjRia59ybhmnvmYl1qbMiAlsp7QMUhi5xauRBy5b\nown+\r\n=d0n7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmFhwCzYLodgcbUHYzUKvg3VkWGG/IkSu135lsHogA2AiAtEAqLLw3/5PniaC8w8G3+LDVvHNSZ/7MgjjlXduX6yQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587522109589_1587522150816_0.6512740551569902"},"_hasShrinkwrap":false},"0.13.0-next.1587528173605":{"name":"playwright","version":"0.13.0-next.1587528173605","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587528173605"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge-if-release -->[![Chromium version](https://img.shields.io/badge/chromium-83.0.4101.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge-if-release -->[![Firefox version](https://img.shields.io/badge/firefox-75.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/v0.13.0/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version-if-release-->83.0.4101.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version-if-release -->75.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587528173605","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xZyJBP4DCBH7/NF4r46LOrX5c4xH32ibvctcn/mPBJhmtdvsnZZAz+mz16zZwaJxqxeCmelj0bKn9xm1K4ZLUg==","shasum":"c16130fd69991fa4ff48ef014ecb380b516d84eb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587528173605.tgz","fileCount":5,"unpackedSize":15505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen8IVCRA9TVsSAnZWagAABqIQAItWO20Gp226Drymg3kV\nS4Ii1eUs8VRxKyuOfhoWdfE2DUjxEduyGOC/MgjJDCzkubvsTE49vJMwDJLu\nEzgoxFMdBHZx+BAY1k88AATRNWL/lICZlx28Vgqm3Hkob/njUMuQm6F9ou8B\nMn1DBfGqeMX0bYZn9cSe2gduTTaNHOavnZqiuP6l7yEWpUjhIhL6QxdvTHRb\nwAqeby+XJQsYFtgjceqN+9xFSMGDbqffPp9kPk+g9g2sKDz8V61O5y8Jenqf\np4Z6DpU04tcHse14xy1QWJDIKLLSmriJUq1hLRE2uDgxeU7ZuOuCWk7xcbcE\ni7EAW/kDHot3rfI+faU8ptUAJu3HjOIbDPE17OnsZU3UL5fL94P/hlozDz0/\ny7W3nDPJqA81p52tsBrQQj097QvUC1P3+nBJkf83+h1hunwTIaV4TcJr3KSw\nlysQvcrD5qlE2EqUZD6n7SXvEKvNLFpwm3dJCw5zv6SDL+NGt/uq0OqPJtGv\nPobDTNvT4C+7bnXdF1dvGBUH99ALg8P+79fx0YLUMpRIKyF1ChDUEIsPIIuo\n6xV+PmchmAm7yA93v+ZTwquIt+qLXGRbzmXFw5NKt+ONJlxXQfSApovkdjUJ\nDdNbPnrKvxOWueR1FlEvf49xC6UbXt1bc4oMbG4tw7D4La0Y4D2GjFSHZ+DL\n7Xte\r\n=UWFJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuIXGLs8SBPAdDapcvEl5J0c71l/k7awblGn3jYoCquQIgZ8OLVHVFUaQiuWbswil2GSmC1eu8TPL/djnbw/pNmU0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587528173605_1587528212996_0.7582702000163073"},"_hasShrinkwrap":false},"0.13.0-next.1587532226085":{"name":"playwright","version":"0.13.0-next.1587532226085","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587532226085"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587532226085","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Gb5v+WD28Kezvom5kfJJKefH+g2S3ikRgrqfduyiNj5D70fa8TSTzNuLFQyAaucZqZXj6l8xsjG/1SuOXDxFJQ==","shasum":"8289bf525f5734838e01da82d5fd24df4d8903ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587532226085.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen9HoCRA9TVsSAnZWagAAdf8P/2gvkiSrWZC9k1fLf8I6\nrTIJNOYBFeF/1CYyJ38o77XryZA7XVFe38VrE8hTP9eF6pHKK06zc27ZRFyx\nuxtFJ46KE43CWvBI1YmrGVeS3rKS1mdxb9Z93bnpsn/UK20RG73sl0Z6Liia\nORQKlZ5Q51J6gErhMKX7rSkAmZePwL1km6uqaXb/l9xw4aDYlkTjUxcJck6i\n9fpX8NSDSCQ8OVa3ikr1YhCpnrxzttHuTHKlTEex7aTTcxUUYupG0dMxQlG7\n5wgG8cWvjF9npnAyMb17RCIRUzLDzrVvf28oA132GppWwa67dK2lndS9RRgF\nadAKElEDgYHOe/+1BIPSa5U/2Lfn3Xr6RoxkHIxXk1H2B1MS05QywppSp4WC\nccnHBrKy3kmxb7+sWOi6/wjEB7eHsWmQ9NZruV0vrXEeHa545EhrID3ZzQLE\nue3bcqzftnN+6bTxf5rZZjmPqMbouGzoyuloUK23hRoZQtK4oL2GMH7lcf9w\nrrqnipHHjQbsERCmcGE1uXLsTKTu3IHQEDjfARv2OEraAvAelVvCVDgC9mMY\nQYoSy4rLtk7IZ2Y3QXDLfqZ9my8XhGi7lj0hJ+K/mrgFCeWBvaSBD7IubSnr\nQW8N4AyO+BROaNcTpnL1z+4keN9FHYo9PHzaITXVbBoKA+oBQ3jFP/V3X0Wz\nXoAg\r\n=g4Rm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwsWlK4pNA757TgcSXcdZ8X9MmrCp2ZDKRkuepvzriowIgCLTa11ewRcUgM371Tqdm73N0Z+XsRr/LONRU2UgZmfw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587532226085_1587532263651_0.42000503056828387"},"_hasShrinkwrap":false},"0.13.0-next.1587539433491":{"name":"playwright","version":"0.13.0-next.1587539433491","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587539433491"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587539433491","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UyigrrfnpBgHDj8WaQ6ikLjM+3hT5g4CK5mmWSw2EJUiyn2XTHVY9VY0ALKMjeTznkhgodPRQ7RAr+61/tXKKA==","shasum":"ffd76b71515c65b2079caf9583d0237fddeea0ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587539433491.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen+4YCRA9TVsSAnZWagAAjBwQAJFbFRBMELbsBtSn1hVp\nKvZ3pKEN76UkVDyItDfE0N86ICojsbFdsI+G5scY1aXcn7x86pOZQyO17XB0\nV3jiJFp36I9W5kUOQW69V/jln5PoylEld3croRMjFU2wvhaQDfre0uMzSnKM\nzIoH33GnwZEYXaBGns24S8Lzkr4rsCA9btXy2qsqaudpf0JUqQxD73AD28gq\nlJiM3MRZ7d2ZXW7uWO9OxRthY0L76igjVzKQfiXFLeoXZ1k4QkOY6B6xnPzy\nOLJIHT9bKVWJ+pp82eYl0oPEHAasKkl7EJHgFuoUjnGSWxQ+x4sT9B78lT6o\nhYBqIdcCRtiGR+Br1DhvqH4DpN/4i0E18Wqc8qH2cK2HohpKkn3KmjqaNqzC\naqEF6Tsi55fH39rnzz/WHuScOEe7d/vUbakS+RpLLqJs+M4ax7qOd4BCgsBV\nZ+sYcQCPEQXGcJpqcNq3b4ngKU1L/cJ/rWAaB7v0JwDwqaEuUavzJQRYSw2E\nL1sRtg0jDG1F25n/C6ZzQYnkNkpiK+YsGHJXlSJzR6gYltp2zN+dmNmoHf7E\n57+r/P5qZDKoAXnvBYds3f0QbSJJo+rhDw+RbihzFyzHndUzrhTcxEuCVKZy\nuWn7Ls9JWqEuEor9PNdJX0kE8agGEZwpYuYO3BbK/kdfqgyrhsPisfhKcATQ\n0y4Z\r\n=AN9F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4zJlZcxKTvy0kNuNK+g5sEFnMPq9HlKMasld1WBrEhAIgNSQN1nV04fHadPIReb6sT7uU12Sf8/zp0KsXjWKCqsA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587539433491_1587539479708_0.45775905799340055"},"_hasShrinkwrap":false},"0.13.0-next.1587540852938":{"name":"playwright","version":"0.13.0-next.1587540852938","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.13.0-next.1587540852938"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.13.0-next.1587540852938","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gQNEUlFLepfGKSb9Sw2e576h6ZjV93ido0uzQb3/gb/u55HQWaUEg2rgfOHBtG7dP3ja8cKajaNXl8+Yi6ycPw==","shasum":"281866fdc84a87de889372564a6a000baabff539","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.13.0-next.1587540852938.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJen/OZCRA9TVsSAnZWagAAZRMP/Ruotun/PkieG2yK4mZn\nBY1mmRKZCV/lVpnOIm3R3kOPF/oQ+D2h38X/48SjeSUSRauyQea8Gwx9yeV8\naZNVLZyhF2HhOCCTfOGgJ4r+BSgYJ7cXzjyiBTH/VyX78eYVt/JE9xKAP0cF\nCTkdt69xOpyFc8uCBorW/BC+NbBCKLfe4c9Hq+XYiMu+sdzt3VH7nrKGcuzJ\nmoPXIWngUiJJxg9RyjQfMTsParl8ia4O4abfmerPTSwxq1aU1GNxlnwwikwL\n4VJLiLV4A9TwqIp+2PuNQzhLfcARcpIYVXCpdsjaePxJhZxoj5ILX9TUghd5\nHW0ZPXnYjk7gEhIbbHvygEB6x5Tu4Bz6Wi9KeF3p7JpZCxQXRPn7qKQ1mfNw\n14qO11s1Bi7XYGsNIKs8S7KEtIaQmlYOVDzqzENvqRVcyhzCeHNevv844MKi\neH2StD5hdnkqOPpRX11Mx4nczwlSCxIy1fHA0ciHqjiXnfvusH3TBE6tJcpE\nytUy8ps1ZqpJfiApFPUH4xmvE2ll1skLcfKfa8VZ6xdPzB0e3mNkgR81yEZi\n26wnIk0tP14IZfNR/FXpYqGbG1tn9DZU1tKr9Euxl3aYZZRRgzYrOGsU4pn7\n7Ga3gIjT/tFupa/C2Ql1xDI8wMPXvyq7vxQVLllLJuTAmqyDvYJRJKsEqGFT\nlWmw\r\n=C7mv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3xDFKtzchov81UtP6vQbYTmF2iSQIC7BCKYrkc9as5wIhAPUNhFh/DeG+QxKXlWt4xIf9STubZSiB/pmwE5ckPUvk"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.13.0-next.1587540852938_1587540889379_0.2286253058014973"},"_hasShrinkwrap":false},"0.14.0-next.1587574083988":{"name":"playwright","version":"0.14.0-next.1587574083988","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587574083988"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587574083988","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-QfncJbO1I7s5HfwPWSAAlt0kOVcwFJMU6K3PFrQNCzwDjni3scYMSMTRdlNdKtlA7DOPAw8K2X5IsyrG5mTp6Q==","shasum":"cdf7ac3a73dbe6cdedfb2d749293d300493a3859","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587574083988.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoHVxCRA9TVsSAnZWagAAEr8P/3OAdlYU0oZsNnsfaOej\nW8JMmqcP0y4ag3oZXRC1+uh6Gv/M9qFu2VMHwHOHaQkoM7eZW7Mh/d1GszNJ\nwRfm7VX6f6uLtcOIHyXCsn9ng3JmAdJG21CsQfkfn7kqYiqnUjhKkI4k41uv\nrTQHG1LRngzFRealifSP5rNw1tziLYyg4prkSm5ZIgF67XX13XiFac/wvQeP\n0Ffgd53Sx+KkU2sevd92GtH7mnmYdwspke9XcUJ3g0H9KQdf5g7IGsel96F9\ndkl7/mJSVm2P0Wfp5akbTIBF5t1axLlmrLzW0craupE4YXrSlc1VZIJi2E64\nq0QsiIZRQDlcut0DzcagZoQA9qXohSqfiWN9vv6a87nVP5c0hAh/iRoDM60A\nQbLlYKP3jZJsKGKZF7dPwCS2eVZylb7xiVRgzMGPo5v8xgDgAZwLJ636kzB/\nIU+2prgTdTU0IJ8a/CsjMvO2qZBreGBqlVmQtmNs+GHJ5DtJAosWSgLrvs9L\njw40dQE5hMp7zRFgaleDkYmVOTwkaIpGL81pmszCSidYJHKhucYCQ1ZaUP7B\nIPqgAdM9Xkxjks7pSc2BYd7azx+2WYu6btvnbr/xHzzS+d1Q6jnq7WknXfvH\nGSBMojat7cq44NX3xZXEOjC9LXNkf3S/2cMGPDHeBWqFK/8QZtk6l+tPLXER\ns/KI\r\n=v+jh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEotaQ2Te7w4JU0g0R61AhwXNs0Bu3skSlwCd+r5xD/mAiEA5vppGv7dtpQQSnb6sztJjBIHBOdyQ4YxRtIEYIwmVjY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587574083988_1587574128540_0.27089623492917303"},"_hasShrinkwrap":false},"0.14.0-next.1587574335768":{"name":"playwright","version":"0.14.0-next.1587574335768","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587574335768"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587574335768","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NhqN2KuOyrOAN/DCHQJepHV3g/mPAdYSn9mMdPac84VB1tz2+UQBxsxIkb4g91cMneUPs2fq3WRYAlGSd7acww==","shasum":"a6bd1418528ed9f3e310bd648e22e91d0d1b9cdb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587574335768.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoHZnCRA9TVsSAnZWagAADs8P+gLc3x/Dd7k7bvpSGy6l\n3hO7aiVTIbT/Dp6SnJPIyMSNskoBhYkS3NXkmNuZHiNuZziUElH749KbR10v\nFmmF2gsLf5RvhjX8drW04vL/lIFP8Mdb4br4koHMDnQCpdddeE4CHx6w5UAI\nStEQ+CpWTxkWkkw3Z/aGUW9ttz3Igq6ccjiUrL8ePAdm/TqRsqbuIcnhH0+c\nhJrTLJ5eoh+AtenwtD0I4QvWzPdl6Im09Cr4NtLz9jiC1ASyteEeuD5VF4es\nthwBKpG20bjyQ11um63Tnf2uZM4AwDnyffM2XorDdRKjdgWN593hQfscJGBS\nbO80e4d3bmTDuPQ9Tzi/fNMHfvxReyDKfFaBwTrrTkSJqeACvTBAwkyWCFy3\nhMq4qDzcyAiP6b5TithTftO1iHmx4m1nrLOwVCf1oL6tnf0XPGwkEAJhptnR\n7nAXv24y9y2Actq1BSY67XygltUVRkGpOo4U8Mt0TrYhdOunJqGURyEgd9jm\n6QjIZbo0z9Y6f/FXnDOnJou9KBtaEvPaO7ienVFFk0FkY7pAyM6Z0d8AIZgL\nKr6JjtBWZTfxgJl44BkJskO1G7rpRvlzsOsSD6/KH2aGj6p/7h2oYf49J6iW\n1td6kDGOpykIIIeTIBnJLNNExiYstX6D7q71FRNJ8mOHiS63wLQqFGsdRpCu\nQEnK\r\n=DZfx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMn3ZEpDR5dPMhU36mBOsvycDeKOTipRqbcyfGy6t0cgIhAKGPECHm/U8NRfSgrLxl5JvRijVJQDZMTWKk0bpRQ84/"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587574335768_1587574374805_0.823415243664934"},"_hasShrinkwrap":false},"0.14.0-next.1587575798800":{"name":"playwright","version":"0.14.0-next.1587575798800","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587575798800"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587575798800","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-sdUbTX3sJT4UeKeg36U+kzG3I1vzoarUCoANkkMbDrqePsH1HM394SZcqwX/vUndtK3PEP+hqqTLsMcEZG79KA==","shasum":"862f2fa513f05d0b4454e6085769315bc110cc81","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587575798800.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoHwxCRA9TVsSAnZWagAA+egP/0XTHmepulBjuNF0oGV8\no8XGJy1WFbeEDMC40zpw4Scvz2gMNfecW/Lecbrg0MiOmd/xCdkmrAj4qB5k\nPWO32N1X4WfMM+eDZKDwhc3W7Rdpc9CDEmTSeHEAQ8+EVaoSiYmOzSlMalda\nQu7V8M4njQxw3b+Fi4HGPlh5uTMtXOL72vpWs3mTfz6BKS5KhZr5LBw2Z9rj\no5pOWuCCH3VpB+ivDEEhQVkpjNaKnimVF6hydDFg+lmqjjem3p+S7/bAlPRc\nZOGIuZlQ8shwmYkVxzrlLQDLhmnTG8gakdMmSKht9ZkIRFVc/WGcttr9A8nJ\n1FR4czq1kGusYk6bC5UhOY2I4bHvyX+Qpv+8xrnnuKyXVyq2bkUugGmX/xAi\n749Xumpu2BzTPKb6qmKSdcXKfwgHHbySArMxom/cXctADuv4hryHEyzQUWBs\n4Xv0AASU5Mfv78iA9vX2FNEOV6yT8YC61wRfJoxgHIr1ez4VCMabQWsYleXd\nsR/QJ9ay09aNBn/TKWQagjR4pao1PClEK09tsqteia4YPQLwgYgSDKZ8WmYO\nFtMMs1enFn4UY6md79l9bwVweJARGj5aCBQtdR2yFcPmqEx66AS4Ba18mOmt\ntoxXZUbtPmOMY1y/zHZb6q9nOxiOivI0GNTf5HpEjt+II8VgytkuKtLoPfSG\nlbwo\r\n=E7ne\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6VKxUrePL+K4HNYXbZ+WUz74aqWfx/wLgyCwsnvi9uQIgDqA+T+GbbIirtzXyDoZ7lQGC4FqFbqJ+mbiKiVusEBU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587575798800_1587575856451_0.16457438454214368"},"_hasShrinkwrap":false},"0.14.0-next.1587578032444":{"name":"playwright","version":"0.14.0-next.1587578032444","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587578032444"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587578032444","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MudEK7tivusDpziR6UKN5GTq3PxVNzS1CHr47UcTNKF+h8Z1Qz6dzy6fnVv7bD6jmtzEeC2atfW8StS+fhgYrA==","shasum":"39b772a1373f8c1dc735199a204f9de5e7b366b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587578032444.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoITZCRA9TVsSAnZWagAAg8QQAJKmQijdsH4AFxiYJesq\nh4QKYDvVqlLphnVesCcaPDugZfAlh/rU132jsQToPZV19qVxLQczkJkZ6zos\notEpfL5dMrNMpi9v9MFMhm6OO5vNwdsKmV/ZXVipjjZd9JpsinO/MIqMqt1B\nFbGbEkj6niMkVlGnsRUfCdtoAVUeseTx6etbyzkO/oUIBjDUZhKptGlB3Ifv\nXR3ft/2SOZMUybrlcvzWR1qOciAzdVpf9TOfhzu2Le1p0aUdPvzz0eTc7EAf\nGc1YjjwVXhUdpGqFnSx8vPNpDNX+HhkCbAU7LB2tBkgPe2f/6Cr2zObXGMcE\nI0AthbTfAARexbNi7M4g5PZ3eFDRCQ+fp+fqD440ctcu4pvOtzk4s2jWeGk4\nN1VwwsAzV9sRFXA8T87N3UsL+vrClnjx8NdKZlf7g04/M3Fe1MhSDC+2WYze\nyRS7n4W1MUsVJD3l1D5nZuMP7vdzL8FCXDwTGUMXhL4/1mvzWvQDBkO4aI3h\nAqPXvmEzfMQ/nM/yL6Ppe+hWUlxrdz/NGf0B85fPLAeX2KXijxiiq8S7pAJu\nmZp8IobCIczTriOc0h9LHMbx9+4tyyc2Gk4mQv/d3FLqKpY7qMUw6UFahqpJ\nHOPJhYQKl0yreS10poWed9WSrkRwUB95GGZYh8UkmB3QuiR1Iudj1t+S/SWh\n8N/J\r\n=nPe1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOVsZK4SVceQDMsvF8JhJzna3+niEs/SZV4xLQtm1c6QIhAPRwCX3ongvFHYBmc7hUKB9JE+DTV2TfEGfnSlFk/xQC"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587578032444_1587578073161_0.39012941701135007"},"_hasShrinkwrap":false},"0.14.0-next.1587582768475":{"name":"playwright","version":"0.14.0-next.1587582768475","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587582768475"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587582768475","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-C7epDzIOs09B7JtIpB2yX0lkXf91+O3+bi2pJ6w2WsvVfXpCXdcOmn2EWrrWu/58NEuruMrpVRoGd3Jch6pyoA==","shasum":"9f5b2838f36f3be873d36621e0883d9770478726","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587582768475.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoJdaCRA9TVsSAnZWagAAY0QP/RiXYfFRba/R8LoCuOWg\n37h5rt/2pUhV0NaEOzXUarQ4rjpVHt2WjZaed+2kao2aH40m6sOuFie06hr7\n9msjjoeGj/HKEftkWdpIRmwRHkJQcVxJn28Ep/j5BB3W/4vN2x39pG1CtU8B\nXn4Id2U12RwOt/Jr99XLDgfOjm2ZkoKwEwnRjUcJUsVgY6xg88fBVkhS/qqo\nTKHg+yVm3PEkDCp1T1ExM78+x2sBXaWY0uTESwDV8iTlCN4BCZHDxDqKuCIQ\n4DnOq23+OwxwVMKi7bGV7lhIZSK1nMoIokuPP0nJ4YTEqDNL7N6sRZ1raDbv\n4TsioZ/ArtYS9e4NxoAjNtDODOUkNp9ttXBOuVA5o+l8LVK+xWbuLYiUls5h\nT2+ZJaP1bTxSbnsoXnb2YtBNN16pV7vRpoWyMY0hPDWU9L6ATpOsaimtbKxF\nPIqJS0VZ0va4Sp/2lzpHJeHkUG/GR7ya+dVRI2iJ9ZuMj3E6VcZk3PKukFkp\n5lJFwZH2kEGxtA+P6jXX0mdP+oSN/URNUZQ6KfAMkkb8eUuW9QyMjVrwvJX0\ntngz7GE3qd31NYt3EHO68ilc7P56RNNYV0UP8Eh6MdKvNtDOMCKL92AHzUGO\nvS62jl+P9dceCzEmNKl907JtQGJ9WtxvPGSF76VoZGsAlWyBfbTZIZt6KkOe\n3wbk\r\n=EToT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGu4K+htEZamFOhxYuDXBrrog/nj6DpNUJh0TV4OMVtbAiEA5rzh4omJ5H1ivAMvRLiHEwmoHCRhHL65NKr6ozqyVYI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587582768475_1587582810070_0.5433145878938863"},"_hasShrinkwrap":false},"0.14.0-next.1587584608092":{"name":"playwright","version":"0.14.0-next.1587584608092","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587584608092"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587584608092","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VR2LQ6yuMe53ULUATd9FBO+8WRPkH5/Zmc69ZGfethPLvt+QrfUKJpp7b8R9Lu2qN79ZZ0VfWHHGRbb4iWs+3g==","shasum":"dc254caffe059225b13518d3bfb771f25a029051","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587584608092.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoJ6JCRA9TVsSAnZWagAA9bgP+wUq0lc7xRNOoEpjKUef\neENGHxWo+gcBO/r+TYqiYmEPHB3Yrsf1i0jV4+quCpD55GD/Doyjx5CfXT0y\nRCaipFY1jxm9qXhIFVJjcBYBFKDeg+BOckUp/TwA7YkCseLlddy18YGRwCwq\nxnvBIwHV3v+Zv3IxgV1VeTjRO4+9HqqcrAFQqbT2pefbi0fGvSxShij/ZKIY\n8e3YuTMJAWYsX2H6pQQALHrggNkY7H4lC9sTegxldXMcXRNYupCpzren9Znd\nlWt1MumFTDHzAnwrrvLj7Ka4P4VFeqp2hqQz1jyNsv4yLvt3Q+qtadrM9aoX\niQAbKicYRXA/reokppsW30ecN9FZcDTH0f+17kTA+tEkaQg+tKkQlbEHhews\nKYZ2myFsK4F8zRgL+4hMWLdo8TLtx+iRqg4Ej7pkNwQ5j71gCi7BVc544yyD\n42Fh+AlDezrKUNas+ztq2gkcETfPvxzWMdYjWtUDUjV91n1bkaz5FIgRaHEJ\n8yP+sK1m4/Y/o35EpKetP6iM2flAOzb91K/Y8tXEv11FNza4ueqUpg93FQB5\nFT4AMxiCS1xOLs2No1lSc/1wY5VyoaQeOewa+v1zomlN1r1tCih52ifXpOBZ\nbvsZX7Uc5IcKsrn/Xt9chCKMnoqs7YHarPkX3cfeLKOm/6tbChZWCfuFLBKW\n/9qE\r\n=DNyJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBO26+xsAlTdG6sv0pnEsY/UPWBWDa7c2yzwlDvwWdDYAiAgcfK8Oj56AH45ohQ0JpwRiuI4+Ue/QFjcdZ69lRhQxw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587584608092_1587584648687_0.40876646392349025"},"_hasShrinkwrap":false},"0.14.0-next.1587592344725":{"name":"playwright","version":"0.14.0-next.1587592344725","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587592344725"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587592344725","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-IMU89S42hiEIITl06b0mBprYNDhJ7A3nckFR5N1TZkGZ0oWGq4BRivPfSW+k2ocecuLjDWUjDG6KSZLq+fmFFA==","shasum":"c63101520ef21583f30e9d74901c5218c4c05e19","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587592344725.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoLy/CRA9TVsSAnZWagAAyZYP/2jGC7Vs5XFQS/JbP+vG\ngui3X1qYUP+Y2Dh/dMQxwbBPJFAZv0NhmbDHoHwZmvsdTJggp/jvJVw6kIQy\n5NdIh/Z7eetq/90RgGCSwp4rSjvRoRoYLPzi4+NEI9SIrHV2Q9czXQTdJS2V\nRNFCis2fLY6KL6IRaec5WAzeMBKDOLfDoBkVKNaiD39gtybGCO1nxp33hMh6\nr0eFjQH8/4mZHdLLqJUZSSaAK7Nx2FTuk0EUnvZYGeJ1Je/sEMPM4ATgPAq5\nJ4VoCLW4tv7ftcCz1m5zsdms4HpMdzv5Qh91/DJd1YDupOgC0WASIVniana8\n2KTPrIqclne+J1b5GVEZbGcZVA91E7SqBHWA6kttMNRJ43qk2V6XhlAJhWJQ\ncGwVU8FNxMEmXTxdONZTBKa5jne9R3rI7vN/5GBG+soKEoGHjMkFWaHUm4rN\nbluSt4hrtyYeCCyT6oNWBHHOyTBr6KgteXBZMkuzAGVJ4m6cOJk15u/JqgAE\nzc0l1CX+G/jFzrs2OSnMnfR/iYgYCRIt48+Hvz7no5So3h86zvQQNCTtFCaM\nGHzquWvZ/4r+1AA4KqEe67RMADFmJPIEWD68Nh/Q/qA2ppPxRnIal7zhkTb7\nwEFGHfXW6ryxskZOTyvV7jlq5LN9S5KsKO7NB7Mvwxoe9+3CwxlRFvYx5aFa\nTQ2H\r\n=3lg0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDH0AYV5vJTsIuR13XP4BVqr6/amPQ/Qsf1fND3kg3MyQIgE5uguzX0dvUkOgG/d9QzlU7O/H8EN1GSpV+sJV+x6wk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587592344725_1587592382665_0.7029698305120926"},"_hasShrinkwrap":false},"0.14.0-next.1587593422728":{"name":"playwright","version":"0.14.0-next.1587593422728","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587593422728"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587593422728","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zvEe1Wp/WYfCoFqg56hpkeqlf0jo+Ma1/sprDgG6dVm8DhdkEb/VrfV4B2EaBw2EUMS+LAX0+9KrY66fKh9EvQ==","shasum":"9383cc40015fea2d710c791d404a36ef11a5f0f3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587593422728.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoMD0CRA9TVsSAnZWagAA/88P+wbwevCRSP+MtVdWlv4Q\nqNK5/dceDlFfbU7yuQi0nZbdd5HV/cKh3STAQ+91XPtRGnaY6/PglpqgPGct\nQ2onlLcRB9CSoziWtR+fzItNaX+1uG91vCJSkZgDDKmK6QyrvQNG6dy4sXoY\nIK119pmRRJKaW8lELMp4I5sDMuLsO/JvKsF4jlp0tHfhMvQxdL8HFqAG82We\npzHEghscxdcm5oN+GQKnDkuygAEZ6Q7jL02OGbY6ao2gcrCcNNJjEHQaqIjS\nMrKuO3l2L+LwHSbL3mh5oXbegArZB+8lYAyhuBO4F9CnpUrTClWvhJC338zw\nHoGhKIoXS+hFlOadRUaChKdQVoB/DoLNrLSL3v+vrthlJnpKv4gKQFCXxEuR\nLlCEdi0QEL/YFp2s5P17FqAGZCTxYRKKRle7ETkLEj3mzENTEoMVuxuZU7dz\nsmRENbIzkriNb6jPm8e5uwZmPqqyJO60+evuS/B9ZzqUrFX7/R0eq1f7wtBK\nf+s5Wo7RDw/RIRztuSGTes94gtmmRAtuwzsaAOGnnvyNhEPniao417M1oGky\nYJ9A8X1S5XqH4IdAlkC2UOivjGZ1jX8QFC/7efbw4iqUN210DoIS1YfnkdYL\nrNo2J1HFFp/KLIjWAe+uSZlfwnXvjVem3bq+Fg3HgmOyh08HQ7VPlicP1OXD\nVqDA\r\n=CppP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHk2VQmYYfAX+xJhGsnzHypyZRGIDCYR8nrWm0pR9/84AiB51lFRcXNg0CsA3QwB91VF4MNFDBPavkqsA+IP8fxshg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587593422728_1587593459991_0.5888000821634451"},"_hasShrinkwrap":false},"0.14.0-next.1587600270893":{"name":"playwright","version":"0.14.0-next.1587600270893","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587600270893"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587600270893","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ZCZQzlKWIN8bjg5K8W0HR7EZAds9vnG+pYTk2GcrfEMFDHdm51J0Mi2+68NwNUVsoqAMkbBw5eQ1HuS0kbda4g==","shasum":"3609a9df688f659cbe7afc11a72256f59f8b0ab9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587600270893.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoNu5CRA9TVsSAnZWagAAh48QAJjcT3PQPKTQPOm+N2l+\ny5hyZErfZWVQibCSY0ve3PxE1v8BjoDGIy1HmdFbzLLNeUCN4JDhjhj3Ge2M\nkP++utQ9DAx4sVGr9jXAhhGvQyZz4zi/lcur2zxkikZsyJdApjaMTPU6HLku\nmdU3YD0TsSiRLRNML3O+RukyFKiDGqLRirVObTkr93/ulnWfeVXgrFcjv8AC\nj7wZYOJhjRb3s6+K1KgeXSQ1v92ZNnMADB7PUE5/VtdCT7Qp92sb5GKEjm9i\nJ/rffS8BH00SY2UwLMxJIS+UgLSiyFBrtefnoiTOTJJfnG+FX8acWnOrK/Qe\nANhziOwVH77GcHbIpQWqlFEpSDArfiV5bMCfi10FtI1ko6G65sRKTPKUqqx1\nGnMvfOjT0hhBxUuIlttaO6Y21hvCVVmyOBKt28JnOKqBTRcKlQDsHVM+9ZhL\nwEfn79C7nxPQlFW0lh+vXeim+BtKKp6e5+58dARQBAy4hCuQiVJfv3KQ3H3p\nkeZQJwCCAUGwQ0nKHORCDs/2VLO/HlDrkwoghhlmcxx1MwbgL3fjiQLaD1Ev\nm8h5r2bUt+J4Evn4avm1nBbVX1AupFlkETahvJf+pAJrGoXv0xqH7UO0PzKF\nMXr82pO8IngQBJKzckAD/b6T1z5/dkrN1WtWrajy4oeqjTOf/nY4GYcvvYbH\nIGqc\r\n=56S1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrxNZnVD/geQh0Z75J8DGEILzwS8wv0rpMf26ULrHAeQIhAMj8TXm1z3ps+HlKcc0BqQ6yB6LNfdpsg9G89fUEzB0E"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587600270893_1587600312894_0.3600731405897084"},"_hasShrinkwrap":false},"0.14.0-next.1587602689264":{"name":"playwright","version":"0.14.0-next.1587602689264","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587602689264"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587602689264","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-DmmZ5FFVqx3KCnGvgdRVgXdF5fvWRxMvq0KTaYfxdOtyG5nygTDEhB1dvNQkqVTV8NQwHPkDiIhxNs904ymwmQ==","shasum":"8b999ea3b94e03a89bd7dc365f6783a58ca7e263","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587602689264.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoOUqCRA9TVsSAnZWagAAl0YP/jvQOH2qhn28gjM/OfyS\nyNYtSUbNRuy3LRpQMWZdVeUZgXmhXTx0BQ9MLQ0iTAqSfPBAGzaBe1GwIedF\nB2EIluvRVzKRjLCwPjImo0i8fVy7Wzf6gcJ7kDzf3GIPkKbwTMGEdKJ7KwPG\no/Cmlt9qQ02r5lBHLMLTAgkKHUpAEPyqh9kXdwuK6M3AgciOAKZHfANUp3St\nKBd+eIYfRB2X0hlGIUcEtPde3dQibfzSaFkSqokM1yKFYjtvQF68s3vOAs24\n819+x2OQyrta/9HunV+FxkbEHnJlYp/v6aegwfvywoJ3CR/l7YwVijNCSgn4\nqyCH4rFo+t962bshOzp5HE6eM35GOJh7BMdPb+KhtGkh6t2ilbdVG2DH9dXi\n7nFPNidAMpRDhfDt7SDopo4aGhE3Wyx+44VoD2SVFR0p+lPSwWwVYzs2r80x\nPNHc/XYf1wkBox4R/QrN5aH7vfKYg6Tb1orv0cJwEtAhIkWMxcbQerRxLDYm\nPN+4IumsvFZnr6y+IHzu0bgr6wo1BgbTvSvxWr6nYwLqPHk6+6WPSC0qfFjM\nddqm5dAq4cwlM5bA6jjw7zxIV94GbsYADcrnW3f3cByAqB2HGGeJ0rXdWRaS\nNVdF0XhSbWrlRd3hYNE02R2TEB6BSxbw5wnCHPKiFaToQjibvYLyLmDUtM9j\nTdI5\r\n=hJwZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFTxrYj2UicjvHAD7jYVd0dhr6Qzn7MQy/Jiz84csTDQIhAPkbj8K/JRSM1bLyfq4DFqhLLOq1pK40n23B2OO8mKtZ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587602689264_1587602730418_0.7716859134396004"},"_hasShrinkwrap":false},"0.14.0-next.1587602970868":{"name":"playwright","version":"0.14.0-next.1587602970868","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587602970868"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587602970868","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ZOIuR6FIEOL8VaotWoXzNuOqvp3/blkpkjw1bAxX8iuJkjGpjXjch6kjMmJm9pVIdYtNPMpecwoV0YvZoBbw/w==","shasum":"4f0649ce71823ea0af4c17735cde4e7bd80faaf6","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587602970868.tgz","fileCount":5,"unpackedSize":15442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoOZECRA9TVsSAnZWagAAhlgP+wdroWW5O42deNWAuLW+\nE8H+GrNnWpCOXo8YTKOuIvd+2n0S1qpqdD2/q4+JpVNNsXMcZCPlTpGqUKqx\nRyZJiwviB+TCOyaW6B68nnkoU8lKd2M8q8ADZZqTlmc0R1eg6/FPrZXbHVX5\n4fAQyH43ixyXIMXsqJaTj7JDFGOyDYvwVRHNPivzjfqZ8yIF1xPPvbg0Ygb4\nIQAfQ8vlbTImwNCktvSsIFRonJRpN0BKePPbGVKCJlpMptOKfx4v3WtTFfRI\nIlC3/yi5UeMTiTusfxHbxC/gogOD/67uf9+v41MXj522sitzVEUssiaBnIpz\nv1NxeNSyMny+uBuwvXEpbTfhweyfXUuFvLJDD7DCB5fY6EvYvK3miBq/fi06\nsOdfDoaeFJIBsXob9deHPKBxrePqIt/aUVXRH+s4BFSzrqo3v8/uPD4oPrPy\nLhloZFRRcXo6EQGYb6bO7/9NR53oACE+1tVPGtnWALdPcLAHPnOo4xv9xBVT\nkb0aYF/H7DG6DvCj/zVaK84lgSSaIH+nhUrr8yHcSEY/CZx9GTRiyy2VMrw+\nxwpTJ/oUb2BFK8/VZKBz/5yWU67wdl2AOnUe7P3LG2Tr86fvL+WDDf01pbz/\nUTb+z3hX01VsyvuDS+YUHTJwc2eqaiapwlvw8bT9oKaevdapwJAI1MkGFHCd\nHkbA\r\n=Bnoc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAk/OpoNnY3IV20WLcf3co3pNCdk7VfrPs1nY2+Mmd7AIhAOUDgYq5X9Kvvh75SCu2c+sA3gPo63HTo7mMi50Iv/BS"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587602970868_1587603012056_0.6615988012423735"},"_hasShrinkwrap":false},"0.14.0-next.1587603747164":{"name":"playwright","version":"0.14.0-next.1587603747164","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587603747164"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## FAQ\r\n\r\n### Q: Can I use a single API to automate different browsers?\r\n\r\nYes, you can. See [Browser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-browser) in the API reference for the common set of APIs across Chromium, Firefox and WebKit. A small set of features are specific to browsers, for example see [ChromiumBrowser](https://github.com/microsoft/playwright/blob/master/docs/api.md#class-chromiumbrowser).\r\n\r\n### Q: How does Playwright relate to [Puppeteer](https://github.com/puppeteer/puppeteer)?\r\n\r\nPuppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer project is active and is maintained by Google.\r\n\r\nWe are the same team that originally built Puppeteer at Google, but has since then moved on. Puppeteer proved that there is a lot of interest in the new generation of ever-green, capable and reliable automation drivers. With Playwright, we'd like to take it one step further and offer the same functionality for **all** the popular rendering engines. We'd like to see Playwright vendor-neutral and shared governed.\r\n\r\nWith Playwright, we are making the APIs more testing-friendly as well. We are taking the lessons learned from Puppeteer and incorporate them into the API, for example, user agent / device emulation is set up consistently on the `BrowserContext` level to enable multi-page scenarios, `click` waits for the element to be available and visible by default, there is a way to wait for network and other events, etc.\r\n\r\nPlaywright also aims at being cloud-native. Rather than a single page, `BrowserContext` abstraction is now central to the library operation. `BrowserContext`s are isolated, they can be either created locally or provided as a service.\r\n\r\nAll the changes and improvements above would require breaking changes to the Puppeteer API, so we chose to start with a clean slate instead. Due to the similarity of the concepts and the APIs, migration between the two should be a mechanical task.\r\n\r\n### Q: What about the [WebDriver](https://www.w3.org/TR/webdriver/)?\r\n\r\nWe recognize WebDriver as a universal standard for the web automation and testing. At the same time we were excited to see Puppeteer affect the WebDriver agenda, steer it towards the bi-directional communication channel, etc. We hope that Playwright can take it further and pioneer support for numerous PWA features across the browsers as they emerge:\r\n\r\n- [*capabilities*] With Playwright, we aim at providing a more capable driver, including support for [mobile viewports](https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag), [touch](https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Using_Touch_Events), [web](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) & [service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API), [geolocation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), [csp](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), [cookie policies](https://web.dev/samesite-cookies-explained/), [permissions](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API), [accessibility](https://developer.mozilla.org/en-US/docs/Web/Accessibility), etc.\r\n\r\n- [*ergonomics*] We continue the trend set with Puppeteer and provide ergonomically-sound APIs for frames, workers, handles, etc.\r\n\r\n- [*reliability*] With Playwright, we encourage `setTimeout`-free automation. The notion of the wall time is incompatible with the operation in the cloud / CI. It is a major source of flakiness and pain and we would like to provide an alternative. With that, Playwright aims at providing sufficient amount of events based on the browser instrumentation to make it possible.\r\n\r\n### Q: What browser versions does Playwright use?\r\n\r\nPlaywright **does not patch the rendering engines**. It either uses stock versions of the browsers (Chromium) or extends remote debugging protocols of the respective browsers (WebKit, Firefox) for better automation. There are no changes to the actual rendering engines, network stacks, etc. Our browsers are as pure as they can be.\r\n\r\n- *Chromium*: Playwright uses upstream versions of Chromium. When we need changes in the browser, they go into the browser directly and then we roll our dependency to that version of Chromium. As of today, we update Chromium as needed or at least once a month. We plan to synchronize our npm release cycle with the Chromium stable channel cadence.\r\n\r\n- *WebKit*: Playwright extends `WebKit`'s remote debugging protocol to expose additional capabilities to the driver. There are no other changes to the rendering engine, it is pure `WebCore` in `WebKit2` engine. We strip debugging features from the WebKit's `Minibrowser` embedder and make it work headlessly. We use `WebKit2` in a modern process isolation mode, enable mobile viewport, touch and geolocation on non-iOS platforms to be as close to WebKit on non-iOS as one can be.\r\n\r\n  We continuously upload our patches to WebKit for upstream review and would like to switch to the upstream-first mode of operation once we land most critical changes. Before new extensions to the remote debugging hit upstream they can be found in the `browser_patches/webkit` folder.\r\n\r\n- *Firefox*: Playwright makes a number of modifications to Firefox's debugging channel as well. Same as above, no changes to the rendering engine itself. Those are adding support for content script debugging, workers, CSP, emulation, network interception, etc. etc.\r\n\r\n  Similarly to WebKit, we'd like to offer all of those for review upstream, for now they can be found in the `browser_patches/firefox` folder.\r\n\r\n### Q: Does Playwright support new Microsoft Edge?\r\n\r\nThe new Microsoft Edge browser is based on Chromium, so Playwright supports it.\r\n\r\n### Q: Is Playwright ready?\r\n\r\nPlaywright is ready for your feedback. It respects [semver](https://semver.org/), so please expect some API breakages as we release 1.0. All we can promise is that those breakages are going to be based on your feedback with the sole purpose of making our APIs better.\r\n\r\nPlaywright is being actively developed as we get to the feature parity across Chromium, Firefox and WebKit. Progress on each browser can be tracked on the [Is Playwright Ready?](https://aslushnikov.github.io/isplaywrightready/) page, which shows currently failing tests per browser.\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587603747164","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3m8lxEm9E0z0UzGcQHeWmMXB0p3MBJhk2iFhJf4Hn1mGcwO5CS1yXV0MJ3n+gfi7mF7jZPQbb3E83wb8DGFRAA==","shasum":"0cdd4d6e0a8c89676fc0b1f906f69dbf15cceea0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587603747164.tgz","fileCount":5,"unpackedSize":15461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoOlKCRA9TVsSAnZWagAA5ecQAIFrp34pzbYuYEvMkaqx\nOSnJAKG7yGh1NJ84sqIgyJq90RYFvNoF3qsKWAnq5koBUB3qXu/6PNMd4zRh\nPbALOniuNZNSPBrSKw2jSw0o1NmAvMWIVFdyJ8aODAb1WFeeAgxkrAL+EbhC\n3VgDnXPHXvMi52WmNKWnc5XPIRQe+0Bs9j/TMQaaF3aWqVBAy1Js3ZUMD1es\nxp9UHEon3rN+IOF0X4Z9RAoBQbcu+GUKlrwAwMA0XtJ9ZFOo4I/5HAdgi/bD\ndAuWYVPK1TvjLcJclvbYIJbQXTyZAfRE7tQKQkQBlsOALSVWuOzcSoARX3XV\nIl3u/JxU5K2BYzC034GDp++cz5AZyT2exgIn+6n6xkHGO9pllKgyKbLfVpJw\noV2oY2sOi13xVHAB89lmJgDPO2thNSbUDKphLKhHNYfUi5XF4YhuS+ZWEyUF\nbnpIAdLeMzhXFNPyAtWl+MhDJxm/8YW6CdEodK50FwKZ11UxcyFOgOa7/3Au\nrat8NWlH6uJHhkqTJYXVxs/Oe6QbuFP5U3O1FvF6GACFA7RsLnyVqVbuwVLY\ncl9vs+dZhlM7sLrzOUuwB5PyK+yf86fW6DIiMsHsDgBqncV9JgurfHDeKh+M\nxwuEc282q7D6T4zXotdX0PXr6QTFedUzq40Ck4d1yj4sX6dv69igjjTXklWQ\nCRn/\r\n=K8a9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICw6k99vKgDYJy2rHUgPopCoNebwhJGGpSeoPJJ0KGxdAiA6FF8pCSZbZcj9DntzWzTM6nwv/nVPjC74/e9uj2Nw3w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587603747164_1587603785501_0.06655842479783325"},"_hasShrinkwrap":false},"0.14.0-next.1587604056429":{"name":"playwright","version":"0.14.0-next.1587604056429","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587604056429"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587604056429","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+upTIfpbSiLyVb7uWbXSyQcRnhKYmrJuijvvT56UIPj9lhkaLyCvY9C1dcBuKUW2TOI4PmZab00nxf/AYcdvNw==","shasum":"9d0d90d455048c9f1d3f497b100c0c72ddd59fc3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587604056429.tgz","fileCount":5,"unpackedSize":9001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoOqBCRA9TVsSAnZWagAAbW8P+wS2pVcwiyfiiyTDLNOt\nZCJi5xnpvUItflM4g2zL/3Cg51I30Aw5IQqRKvw/ysZUhOvEK3UbTvz9za0/\nSn0y+CkCnmysTZHg5dVUzwFrApsIX18FfQ/Qnh/UMIzu9u9WLutbkul9wMiP\not01ODg0v09XV7v2oEuIGzwBFtVOgKgIJM3/kFBhvTivsYsIROiYt1mCxswv\n0OrhLcZjpa0MUvDhj87+iH+yFkRsbMetl9cCgQw4HN10+yK/jSDoOigB/hxl\nT6lnmRVF/iWqbkl+X53kSryqasrC86KpmQoEyBhkHh8OniL+AEsRpKCTKpgA\ne70EDVMLN6/c+qKSBDlTCsq4vb/reXk9QBot95y2LjDTVCFLU6ljcQ+M1xza\nOWIlyzWoXitWU4j21jtHwvSztN55A3N6/Le/xxUTzv9E5Ri0kaZFER6cdRCA\nBpuQo6gomChczNnzFG5hTz8p0f/RrwpP12v/2Qr+XID417m5t4mHqTKzNq6Q\nBbptLEx3PJPbUFUJV86wsNsm9xCZ7Ws+MnvFnNyy0v4EiNT62hseTps5LHK7\nBZ5DVRSjW8J7LBGNFNCUzr9MRHDH4FxZ/GMy3zHIrJsAjqvz7EOHMb5yuI8E\naqWH4qSi1m9IyTLEMkVjDEIxFx+M9rTmz1rGjZmj//NQDyrYiDrwgd4CsUnT\nJeUu\r\n=u+7/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl2nRNnDm7rXwQXaAi2VsujymoXUJwoMAEx5H/CFHkrwIgGGHpVdSFzFUx2KC6g23fEj5n/RHl5tiIjpgjzJMtNc8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587604056429_1587604097293_0.19263875344347792"},"_hasShrinkwrap":false},"0.14.0-next.1587604286253":{"name":"playwright","version":"0.14.0-next.1587604286253","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587604286253"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587604286253","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dBW9J5KDqJPX/4s0KpduwNfzxUY1D0lCZz7KHio8fOeNrQYouLGVOilyzjQMJaScc3fI9TjYjigL1+BH6JNh5g==","shasum":"3c65b8a6b5801c9065649bf812d14815f5682a96","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587604286253.tgz","fileCount":5,"unpackedSize":9001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoOtoCRA9TVsSAnZWagAAZJYP/iJoF10cy8Y2JysNSLSs\nAehHET9G3/dw8MN9OiqG3RyeSmJU7lJq/KTB+wJDwanxs9qwFAzTGZ69z5RO\nuIXQOi/kOY85H9+WidUD4lHOHEN0bzDNRTgPXwr70Q5RX4WPGex6RGRsAa/z\nlW5Kiz5ZKA4NSM9Z2Y9mhGObjRiZw3SsiCPsXlO+Kmta7qVpQ2gnoRQAtv3o\nHh/KxWbSYOcRw0eFmvfWvW/KVDh0tn711xv65uqkbjrrSxree6KiwPr7/1/A\nnVk48jNVy8/sifzeXtCD5wmqIC0c2zDid9Za9AxNc3NNxM9EHZCeIg776zkW\n26kq+3gTFwyY3uuZgjV7jCFOk5NIf28wfgmhooYYhIzxNgVEV6ucUYvRSVdL\nkNjLx2LHSiD6Tr5P+FKdJ5ERs5TvxaA4p68/1xDxdVnf0eKwrxM8udmrfNnm\nRY7q2Fl+qGgtKEgMKLijIxs3apafgGqamGjOiWyJz8/mJHfPdaKukxB8gCIO\nlEUzuxcaA91zISrHVA3eoHQgddBmTz6OeasSCaZHcz/enp4PSvEAiHQXtC9B\n4fVWfwQ/SlIVJWFPNuT5KG9KkMJUENKPxec+1lJiOc5+T6lDXYOTWwnpB5ij\ngYVS7QpUkZrAET5QgqKVKraHUo0EnXF5k3uT90qEAouj+2JVBfIf+BwFwyDH\ng7v7\r\n=60G/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3SCmZSAU1+C7RpTAkgcGNxIIIJuiRmjNi7Rcgo91emwIgYiEpQqY2AN7WUb3Mf3V+PuQmeseh8UkF1FU+m/nVOH0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587604286253_1587604328339_0.6274741176567511"},"_hasShrinkwrap":false},"0.14.0":{"name":"playwright","version":"0.14.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0","_nodeVersion":"13.11.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-bdRnA4hvcEGVoDDnIuyF1Oa4P+Z0GVCQGXFA70L4CX9XhL79K4ib75RFZ5xLpFtuD+cZiLoBgTkrSpel7HX8xw==","shasum":"82a6daf593b978597285cacdd6dfc87f5d4333fb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0.tgz","fileCount":5,"unpackedSize":8963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoPw3CRA9TVsSAnZWagAAbZsP/1X66GWGVpiNVwvvqSFf\nzPLsA8dQdcHDUB6ZnbDDAgfs0Rp2ezx2cj1K67o3fM0uTDU0LJ0gzcl72N5S\nCQeQqbq9NYZ1MOrCbjHMDlWTz1oMHppo/tEK2EujEdwx3iFRyqDtcCCMpE9x\n/43zZCBgxz3RhXvY2JoibwrMiePIkXGT9WSEnZEFz7IY/MAabLFYOjSfiE7t\nMEiL5K31avfeR569WjTHw0++2GJoQCe1joHz8i2rgq52b0EJUQPz5YVnvhwG\nj8dJ1Xas9PpJw3TCrGda3phvz0FHrgVZwxr4goOTUVZtg4iab6yhecV4IP3q\nVLIttF+sPalxb3qwBJE2oD/n3wCt6umLqqi3lMi4MEhYgBBBr7IL6o4R/QK8\ntfsn7bnXvez4D5uq4cmSOO95GT6UNjcnKpul5sqkMnqanh2z3MipMJkc0PoH\neQ35CzemJhXNz/DXCIxMpd0hA+p4Wv4rXebFAhks0cCLHq6JLIB9hUgtX/ig\nh3R+FbJnwoewO8RT2VhtOCWFbNHb0PVumfosqMFdBI+2xs0aOnKbx0UbZB7t\ncgkqBI0AU27VfopWuo2TG6+Q9uhUIV0L6BhaL6g86kYAXSldO+6HlgD2YFaH\nKF+i24f2rAneaw5x3udue46eS6l30u8a5s8v7TknKM4b512EkUZiFt99XQ7R\nx3X6\r\n=RqJT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJYjKXc0PSgC1TVa9mcRABMQGwtZ37YsTZKQHliDb3TgIgQE5OLS00rmSqORwXZMpToKwR2TD3/POjZXY0mIELISg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0_1587608630955_0.35512152157457977"},"_hasShrinkwrap":false},"0.14.0-next.1587617723111":{"name":"playwright","version":"0.14.0-next.1587617723111","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587617723111"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587617723111","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ER3ugqBxxMtSIXsozNoCyIF244p4V3SOjIn7oFeRzH4+g1PD0NQWfGT70zmJwAItaHeNwawKdg0uLOaSSEN6HA==","shasum":"892c05d371df47db7931f027fd9a8b95c92a1a94","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587617723111.tgz","fileCount":5,"unpackedSize":9001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoR/iCRA9TVsSAnZWagAAqVsQAIUWkay/RAE94pPJzESz\nBoCsNJC0CKiQDFabpkbD9XpSlg1UewZAfpVI1IowEAKojWZIT9fxesta1h4Z\n3Q6C6oOMPrGCbegpq5gTyy5dQkKP4k+KSvPKdN6H20N1GrWWtzkru4pT2I07\nfcbaIlCL0C5i6RslTauxnnzFY4miDg6nGj9G2VJhl1sQujtBe6FqeF+8AXvW\nZLJ7RAVCx2nXtWSPuJNzHhwnke9ZYTuk+d5SJ7zAkRrB4MV5pqzMrNYmLO9r\nr+t3sCH+ajl9cuC3OtyzoazYH8pooTpkN1do7VQEWGe8XRFy6Da/YakkrY1h\n+5h0l3LNK0c2OH2l+P2geCehQdQqVVQQYjrawiKzexgFo5/L4hxlHT6p3tKR\nRHAT4cQJOM/P6TZoIqlZ/sZh68Pkenrao+iDqKNp5wKWR95xxPiba1h+nt31\nZpJi8+lD3IigNtQmKVGvU6lL9x6nyMicp0nh7zAolW+hynGZKNlSg5ekrIoz\nxqVtyvQuOCtIVDly7+sxWVDFX62HnbtRBth/5IhyoELpCF9/X0E7PtFIoUEt\n5KhWxc0X5wwhpA0QmjgblSA+ueVXf6N9761IDoOG0S6L2HGNh4Kr4MDmSQkH\nMo67CR0JYmdBEFGgJgCvMFD+pMlNOsmErSlcNYxVzggXZU4m0/liWsxGcPy+\nd/93\r\n=9LYj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOv9QF/zSWP37AKgWNLyQG2SFLGgNpOTd7plxDFVQ7wAIgJ7pBS4cyotb061xDKMLY+BPXGWxySRPjBDE5yJzbYak="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587617723111_1587617761535_0.9727141005856272"},"_hasShrinkwrap":false},"0.14.0-next.1587621265904":{"name":"playwright","version":"0.14.0-next.1587621265904","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587621265904"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [FAQ](#faq) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587621265904","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-thG6gPBxIryWnIFSa92HjafR1UvmtkRjLKIh4Kz4gvpNMNDNebvZ5TU/c5YKjP/tOo2AtBLFWSUiAp4xlAYa7g==","shasum":"19004f1080fd59a6816b8075b78b07d179447083","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587621265904.tgz","fileCount":5,"unpackedSize":9001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoS24CRA9TVsSAnZWagAA4fkQAIKU7tR2xvUolLuDG1ZG\nDbxgtmqYxidmWKYlhsuKt7R3LP8KRdRlnoDsgmD87fiFC7DOWl52J1HHgSaL\nJ+Pkkzliu8PSTp66pWrBEBFDaqgp1HNP/TcqrewhjsPUoc5iUCZIUCB+PmKv\nN0a5p8M9scqZlBjQ79VUrnZ2lsXV69YeU5O/tSPSGL4Q7ugxKbg1V3HP9IPl\navSf/5uYmeMzY1uGL7W7jTZmoYFrnSsX/kPFkh67mwM1EL54xdKQOogqT7cr\n6hCD6kUPaDnejN3kh+9tfcaZXQrPKjxWmE4itqwHznLU8ZsiAyQKW27sLYLS\nKp5uYPZGXQ98CtYB5Flm3IrV2X/XAZaPX4JmYHZSJc3M5JzUNJ7DRyM9yYhf\nqJmRRA8ffEtXtUJi9nfudDnCEovFP23L7c9EnQ5PEMXdFReALQRfT9TdL08M\nJFVlwvRXnRRNIE5EbFswJiQ9EYZ9JIXPvQZrc7lftho9xyPNthDUMef8o74K\ny3Grrbhz+rnQGUqvmtJ+KKmVs4g3uTQDM0uwxMP0lCnFeoOMTtHoL4Px8tAG\n/hiS1/ELLEES6D2S5D08QBxiQNF9EHqheyJYwyf8tShKdxDtNDVsDupQwLZN\ntkiFRcJiZj6YlxcYvQTbfZsvdIqUYFd0+/v1778MmLO4t5eNRPF/V+O8PGGB\nva4A\r\n=YwKo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCstSKPQ+tH8BaIaR9I6eCRMPQD9lM7+pnZ96FSyeTHmgIgEh5Xuy23p7kA115wVqfkyruZvqPvlrb0ZUhCI/+7cmk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587621265904_1587621304276_0.036899441810501976"},"_hasShrinkwrap":false},"0.14.0-next.1587633014950":{"name":"playwright","version":"0.14.0-next.1587633014950","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587633014950"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587633014950","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-uMi9t13VdBGIAC9wRexTOsmRoiFtP87KQOvLi+beAQSH36s8mBieFeDEwUX/cvbb2lhJXAQn8mb2ldIK2aQ5Hg==","shasum":"f64eed3ba728a36f63d910213061f9c3194da2b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587633014950.tgz","fileCount":5,"unpackedSize":8987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoVuoCRA9TVsSAnZWagAAplIP+wd37PQKpc2D8qatrPQZ\nzwsNr0Zl/WpCBt3tB7/oRXxlKSPkUUj08Ca1N9sbpkHKaycQlTCR5oSEND+T\nJg6I9ysipCiOMzZ34Ad2YFHQNgh9atk5er2cTUE2OjykFxMvzZiqft+FaOmF\nP0WPFrWJxvt9ml1JQkdg9UHJ8BYeDctv0VOAYJxIAWXNsKbikhHkfo26zFPB\nHwxv+DD7XHXH8b85vqBtoWoZJ6ABOTzfno+d+gqqchZQn/TNAUIeWx9wNiJz\nciCMuYiNSWZVoKbqgZ8fjCj1a84Zc///WgHEmxSzi9RNA/7k/1hymE1fBUPU\njknSiZMutjBbnrhn/4liM6vMiE2lSu4vNal4ldD9l3fL1oPrx3CLxMm2ibeW\neDuQGWyPlc/bivsenWOE2xUd1bzu/RgbNYiZsQhAzR4AxRK0uDugjU8HDFmt\nkEXfBlNpqupNURCvPCR7yN7h62Qo0yfr4TpMHKgs/zbeGzTL6Zit4on9961J\n5I82KS1NWjDObOyWydI/NuaonNslYF35QNmX4S2iBntK3TCCOhDJU6HUc+lo\n9SQCh3h85nIcborlb8mGorOEu2VQ2GmXa4rWl6G1J/f+63ubRuNh4g9zELgD\nQ2WEgUJkIBAgsdh04VlUWQO2fU6Ir0PcLpgY2oQhera7uleU0tn3V8oq4vVL\nqqs3\r\n=1dcp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDL0dxXIMAsD1hUVQK4edqrEKMG/wvOmxhW2nKGThhsSAiB5svfZQz1s5bQEzqLdh/YEl5TxH9+BLuUYoA3DIavi3g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587633014950_1587633063968_0.7690850007423398"},"_hasShrinkwrap":false},"0.14.0-next.1587663364964":{"name":"playwright","version":"0.14.0-next.1587663364964","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587663364964"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587663364964","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5KT5m2KoYajksl2NxXtwaH7/Sn6+1Yy0jJt7q5fUVTjalppfG44r36/EZROdgGo0KkRHlh/1FjAKEoUABfCCfg==","shasum":"2e07949e9b1317219ffb77bd4c0226df3ed57e48","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587663364964.tgz","fileCount":5,"unpackedSize":8987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeodIvCRA9TVsSAnZWagAA2RgP/RiWvfN6bAJAu3kwgmsI\nK5azoUwEraFpRNSWF0pxLIBmsgAuInzcnNoaY/LdjmPIYa5v2eo31aEvHHiB\nubbJUejxFnXPwSsGc1bypGk3Odx+1ritoRWiYhwCYVKCH+lVY/B+fXCNuYWZ\nM8saUWwKsvessOkhT8ceNEoTEkcscdBZxwm6aYFPFOSy1KF3z57EVG8Chg1l\neBDAfzYZ3pjTdva9R9ws7059b2lsgD2ErL0BRgFrqaP4Hzbm2iEYC437a6WT\nIDwJL76KFB7soRacAX3awW6oiftE3tp9tfODj8p18flGjJswQbMNdpUIexMk\nUlkD1/ZHr+rVEF1Jd8dBYM3C8z44uJzfRSg45YF45Tq6azf2t3+7EIT6wAd/\nLfJmRgFmKkIBD8lltSF9NEg9c6PnbOoXYGHFB8EeIIt0xWYvt8pznzOKDGtS\nGpYFYw77ljnAc4FBH8jzuC5PW6OqT3/A9eyNB1XqvKbOX9xQnbkin3k+h+0b\nN85ExXI/6RNj/NVPW07HdLD5+7o+Q73a0gwnE7BNgDw6bjzSdBrs5skzXBXJ\neXkNgFTWWqVg3N1GJ/sQ/5OAM/4XmHTtNNiGCuDX1umJvlKpS8QD+5DnLKsi\n/pq9KUunD1h5CutBB7BeGBAnCo6eUO8Nd4ZmnYY1UIdG1bu5DKsT8UIUJeZD\n6EnI\r\n=QC+z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9EWBpdcgSPQBbpLf1K9sjXDfa/crMgqHYLUR7ieR7sgIhAPSYAAbl2nhzt8uL7vcgc5nzMg7iTb0a86RMxcVQItTC"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587663364964_1587663406798_0.07208467020906562"},"_hasShrinkwrap":false},"0.14.0-next.1587663620223":{"name":"playwright","version":"0.14.0-next.1587663620223","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587663620223"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587663620223","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5VH1+anMOJJui3MD1y55WA59D0LOlf282fJdVdfEwiBlteDwK2xgTYdtnjxNM+dUXq+80SjZ6ANgllH3/0Z+bw==","shasum":"2206af339d0a4534e81c5596cb9d8840902987a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587663620223.tgz","fileCount":5,"unpackedSize":8987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeodMsCRA9TVsSAnZWagAAz+UP/RYmJFLetd1jbVoTI0oP\nqJ2yWWQAzb8r3N0sjKYPEUQopia36amD3sCho2qA8aNWO9jVDm9VtTtRhqHP\nCll44PgyLEFTYYvqfacUhlLnPcgvsX9/th0IugMuXBHEQLnccW0C7faEyPml\nQNtmPxgM6nA3YFpfHqf4GsuujAMWI/dEow8JL80B0YnqNgsR95WJBczyeBjE\nZOt8tfguYhQAyo5pMVRcHjp/6zHkrULOjsrLQO+r9xGHAev/kh867SXWRdMi\nMdMkrSkX5u0Y8imrI56CfSp6SWm8TM7uGaqbMyZF5PZa245m2Ezf8hYXHU2Z\nd9QMzFnj0fYtzcz3I/HuneEyX6w4Ju2xxvVH1axughIx3yREi6o6a9atEyzY\n/DdkGIjvc4EpqTNW/BgUb/JYWoH6ZjLt8GGUVNXQL/nv7onzbwy+x81sszcv\nFdv/22f2Zex0KtRoflK0UEp5w1MLeuSl5CYbK1gQwdK87VGpDkzX+B9nNqqJ\nWQPRQGW65ujSdF/NfmHjefsfxO8zhwo/kUfYXgjuVNBMF5CN5V/xgNscfW04\n5sP+mJJF8BQT0a8Jln4+yRrU0DcKWw4mqN0ImbE7mTVhePlnNz5+FKn3IQsq\nt44g68X5XUBDZcJLsPL684bvwzCamcOhZFhdE2kKGZW/mh9IzM7cjjfru74G\nWfiy\r\n=BLhl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJpKOvBCPCVkPd777vRYjWNO+T7EnAGFd4owQeypu0mAiAvcwtWggcXTXZcCoPXMEjNBKKfEmzc9pqGF9tj7EmtUQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587663620223_1587663660165_0.45981378682093355"},"_hasShrinkwrap":false},"0.14.0-next.1587669737044":{"name":"playwright","version":"0.14.0-next.1587669737044","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587669737044"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587669737044","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9gfEmMxYBRj6nbT1SmBrBw38udZ+j/GvbgSnuXPEctORreM/nc2+f26kDIzRTvZnQ1/ZW4KkqTN/Yde/4cOlew==","shasum":"eb07210987236d1cdc9243041a846814fff1a28b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587669737044.tgz","fileCount":5,"unpackedSize":8987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoesVCRA9TVsSAnZWagAAmHEP/RztY2PSD+nZdNpbUY7w\nUCYv54Cx0iLSd/eAdmdw5FHNPhybG2owG1vwwprvA8j3CSkYFwdtRMBDat4V\n4tmcQikq710+Pn7lK0CVnYlRaIYz6+8qNWfFa5lmj2GLdbt8MKTfWHz5NgWp\n5Pj+RTWH6NQhNdqt3q8Jhxt+J7I7CQ77Xv84Clf55JsouCGk4KkDHlDivdcm\n4+OvyBMALYSQpLKsRH4ifw0q5rObB6s6Zg9ftRDp+6D9nn8NKMkoyihawt+/\n1RRSjYYRFakNmHXzkt11XLm3TBcR7Yr6dTs6/b62qeBgKaZfCR66+HlGqPcX\nFycVL8u1Gid+7GZ59j4LxTLVWmT/cepquc8QPWuU+PLJyYTklpEwx1BjhOt9\nMup8graN9uwRwaJOQsQU4kVLL9snSbw3X414mY7f+nfTLKQS9VDd6PsinxkN\n0XDFoogUb8UT6yVJbpVXX/9AthCMPHcwXzNGWN+2Z8OXE9iwrPuqKQmVRbZL\nuTSIg8UJl3fA1s9Xs91DL0wVwY4sgLXMcaOPzLNKDqZ41Za6HTOOBl3QXKDl\nbkrKef3gFb1sLvT7Oc5Bp00JbNhnE/eeNN+tjwjGQu80Qsaqp1c6dRUWHuUq\n4NHW9kMr8pJa+6+7yPTHfCXdyswKJe6yj9j3FaZzQVsyxzSy8k5ps3yOGO6D\nrnua\r\n=yGNP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCf0IQ0n4QcYc54A199w0PeKZfEmxkcHBJatbNc2m4d+wIgZ+erpQqYQ4cWzRZJeaKuJDhOuuDCwaokDt2JosrFXo8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587669737044_1587669780723_0.7691405021301505"},"_hasShrinkwrap":false},"0.14.0-next.1587672279159":{"name":"playwright","version":"0.14.0-next.1587672279159","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587672279159"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587672279159","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-KZR2OeUvKuZrcEpREV11UukyPuZfODrCrLjWJuRPZ9AUkk/KAVQp5oCR89YWNfF4Dihy6IvtvhrrYnq9mb+rag==","shasum":"626dbdc9d9a520f5828b20c4bc7213312e47cb19","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587672279159.tgz","fileCount":5,"unpackedSize":8987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeofT/CRA9TVsSAnZWagAAhpAP/AsYpNwX158mGVIsRjlK\nDY8hnWj2aaeF++LFRFcheJgEVap92ZvpaVyu6a/bfuFG5fYd5p7iAN6Qh2Kt\nTHTH754Ez4BuN0mDFeLd9cA3C6ukDJM/5S3B7T1YUgJoKTPTCgr+x1NRxHYB\nHDgH/OuykV5xvDz0WVxh0sMqQP9dLf0nvRLakCTANoFrxJlMspIhSZKbTAHg\n6+0KwBDmf0hqqsqohNQ6xCHLAmsYdXQd9TMxH4zCyryKVUIhpYM0d47fzIOk\noMLJFns9gpfKoiMOyOZjyDupln04Ej6HGqF91U8ze+WXywSUffK/F2suf7vv\nNot2zcCuDxFtWEh0/TM34u9MJI3gKLs+e2Tj6w2IxVOR5wDuWjp/aJBSjoIe\nvbpUlGGDzxJt6HRgenJELKajBhCBJcqCdmyk/LlLvnra7f9vT7YrjlAx4r+A\nnfx6Ven+XnA29F6t2gZ90QWpIxU91mxKQeMyeYvHEboTdV+m0oVj/Ei3ucFD\n1a+bZgohTww6aYGsJcbNUzYuatszMgN0Kx800g6yeTK2dovqh3pQGZ1h+T0z\nb0xvPknX1enxVG02REMG5FZVl/kSdQfg1JaXpeioXCwK9l2VhpVZYWjBbp8n\nEwsvcmRK741MSnpcpaWiroDqx1/N6sbwoCyRm2532nPFUpPnxpEeBXFdl49Q\nTlFr\r\n=g6GK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDSZZWbqEINuKJ0V1c9FUAxU3cs80NIQ/ukTxMTmkpswIhAJhZ/AuPlKHeQgqauOFOc0RvVAipJifqvu4eKI/w96WX"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587672279159_1587672318800_0.7241533617231233"},"_hasShrinkwrap":false},"0.14.0-next.1587674527141":{"name":"playwright","version":"0.14.0-next.1587674527141","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587674527141"},"readme":"# 🎭 Playwright\r\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\r\n\r\n###### [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\r\n\r\n\r\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\r\n\r\n|          | ver | Linux | macOS | Win |\r\n|   ---:   | :---: | :---: | :---:  | :---: |\r\n| Chromium| <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| WebKit | 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n| Firefox | <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\r\n- Headless is supported for all the browsers on all platforms.\r\n\r\n\r\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\r\n\r\n### Usage\r\n\r\n```\r\nnpm i playwright\r\n```\r\n\r\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\r\n\r\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\r\n\r\n* [Documentation](docs/README.md)\r\n* [API reference](docs/api.md)\r\n\r\n### Examples\r\n\r\n#### Page screenshot\r\n\r\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\r\n\r\n```js\r\nconst playwright = require('playwright');\r\n\r\n(async () => {\r\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\r\n    const browser = await playwright[browserType].launch();\r\n    const context = await browser.newContext();\r\n    const page = await context.newPage();\r\n    await page.goto('http://whatsmyuseragent.org/');\r\n    await page.screenshot({ path: `example-${browserType}.png` });\r\n    await browser.close();\r\n  }\r\n})();\r\n```\r\n\r\n#### Mobile and geolocation\r\n\r\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\r\n\r\n```js\r\nconst { webkit, devices } = require('playwright');\r\nconst iPhone11 = devices['iPhone 11 Pro'];\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext({\r\n    ...iPhone11,\r\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\r\n    permissions: ['geolocation']\r\n  });\r\n  const page = await context.newPage();\r\n  await page.goto('https://maps.google.com');\r\n  await page.click('text=\"Your location\"');\r\n  await page.waitForRequest(/.*preview\\/pwa/);\r\n  await page.screenshot({ path: 'colosseum-iphone.png' });\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Evaluate in browser context\r\n\r\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\r\n\r\n```js\r\nconst { firefox } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await firefox.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n  await page.goto('https://www.example.com/');\r\n  const dimensions = await page.evaluate(() => {\r\n    return {\r\n      width: document.documentElement.clientWidth,\r\n      height: document.documentElement.clientHeight,\r\n      deviceScaleFactor: window.devicePixelRatio\r\n    }\r\n  })\r\n  console.log(dimensions);\r\n\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n#### Intercept network requests\r\n\r\nThis code snippet sets up request routing for a WebKit page to log all network requests.\r\n\r\n```js\r\nconst { webkit } = require('playwright');\r\n\r\n(async () => {\r\n  const browser = await webkit.launch();\r\n  const context = await browser.newContext();\r\n  const page = await context.newPage();\r\n\r\n  // Log and continue all network requests\r\n  page.route('**', route => {\r\n    console.log(route.request().url());\r\n    route.continue();\r\n  });\r\n\r\n  await page.goto('http://todomvc.com');\r\n  await browser.close();\r\n})();\r\n```\r\n\r\n## Contributing\r\n\r\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\r\n\r\n## Resources\r\n\r\n* [Documentation](docs/README.md)\r\n* [Example recipes](docs/examples/README.md)\r\n* [API reference](docs/api.md)\r\n* [Community showcase](docs/showcase.md)\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587674527141","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-aaIzOAkue0lWeoKQ6ywiXIzIgz3/7kQbUlmD6T6M9XI0Nazi83+pe0AxTzFbV1YRFabSN3qVuei8EZ6UMeM5IA==","shasum":"81a73ee490a468abb367c433d30a58af170f44a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587674527141.tgz","fileCount":5,"unpackedSize":8987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeof3ICRA9TVsSAnZWagAAU+MP/Rk62iV2Fpo8ZVBos/jA\nlF8e3o2ZB2zPhYeVBk47+F9eTfd/yoOBfbQqt9AlBNV5J6ea5CmHwDqZ9jRW\nZA0Nq4iEBo2zUymyhWfVZlh88SzRdY/IUH0aKXFnPP86R5NjCYpyIZNVe8rz\nFnjMmHUNUJRbodcF/jdg07H4gvoRFVSPQZXDgAAIhEFuW6lvTyRc0XZ250MY\nhNnjBKe+jNGBIu087Aq941TPdaF+8VdXhK/5BQu5Me842a/Omoh66cYKvG20\ni0AvHZtOkFoI1XbqSIbWSXyJlkqRMyEFPu6VlLaRJw0pdTeQxd81kvzYpqJv\nSoYduJJwRY5QyAQXZXelLCHpH3ASM6fFttKW69Ur5s7NPZZmxEz9v2mSGrm2\nGx32Zb6gKoMKXugj5dBraS2UMxJkmAbsPgeDo8A9Os4hVMsDp05ZAvyq5PZv\n5PFvEf+MSv43nMHvYFfEvWosAfxMkeBlzUrukLAl66ukj0pXCKv87Frl3tgn\nfG1h5aYD0Kkb63s1JOTbNop+lQbXvVoKCpC2ik2PuoaIu5q11OsXYdmIz8BO\n3KzYi/11FM0Sipn3c+pXiw997+tF8CnNdbXl9B8C8eoBK9TbPyZ7ddk1w1Xz\nQYE791pYchbIMQr89CDwB/1CwtT9lBcrN9RWwsnO6q/cnyNhES9Q7O4i6xiI\njTGT\r\n=At4e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC71PZgswfbR9XfNHBLAPv8SMzkCazJfVFIBmvKJW+GJgIhAMGddTFbSh5FFYoX6HkwSlnscb2hpxRugi7PJKdn5bI+"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587674527141_1587674566833_0.8900464260830003"},"_hasShrinkwrap":false},"0.14.0-next.1587675128627":{"name":"playwright","version":"0.14.0-next.1587675128627","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587675128627"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587675128627","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kSCxsiDzNZInmazt9wltWa6enTyih7RdtZd624yYjErsDBPpWdeAdAa8Fzj2+UFrWue2jYnvDMVfljC432MnZA==","shasum":"f36a9c3ef86668defbabce67ea7416c384444d6c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587675128627.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeogAcCRA9TVsSAnZWagAAApYP/3LpxToQChaOj2gLBh+g\nXzb8JD4XMru9lJma/QtwZFmsj8sQMZRvZZTqFda3O1A1DiCzvvsz3NW8xbBW\nmCqhUcSpy9GeRcll2uyJPYud0toS+GAN1ngHxpudltQZ2wfSommLtta5CNne\noTUprc1P/tW/ZhLoZoEMXWhWgpgFDqOBK/O1kz1MYwbLH5ElBV6t62aACya5\ncvJ5KCo+gxMdnGFy1Eyfy+1fyhnQKvHyn8FsXw/xY8lLKWyZpzjkptzZccBO\nlBNYAmU2XSRJYe0R8/QvBiQs6yexSDcXmRPdlc1SVWXeVdWr/cUHA14JIMZS\nsL8qcQT3hGzkypFncvC/BnFMCEhHJXFjT3kECY4qCItbesh17iDokE0durn4\nNHR/Gk874+OVddA6ORC4rDNvXUDzzC6FUmMsfQzsoEaI/iyN9IO/sJr+9+AV\nNdYuCrH7qcWKi9RP2/J+JK1jljjXkd1y5dUJ4F3JQLn9xE288Le3x/qeLYvl\nTmvvuDJTg3Aa9TlW9rdaM5kcROZQQqBinbmCr+/IkCXm11zOKrHOgqM0M65O\nRNZBvmH3SF2zkedd1+NNlHx6cOeSBpoOzq4fdVuwc8clAhPpPm/kb1Mftpnn\nY4Cz5D7eMd/2hw3xjJttavUpgTtQMVWojEv36bcwCra41QfsryB7SNK3Ffbp\nAVtF\r\n=mTrx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIu6mztxaSn4zNbRKayUcXPlwe2ghHsQcTSHQI6XfFhAIgd6DD29xtC/zXIT7vz/UELdx9sGPDqE3LX/z3f4NHKng="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587675128627_1587675164464_0.2436046410337558"},"_hasShrinkwrap":false},"0.14.0-next.1587676940074":{"name":"playwright","version":"0.14.0-next.1587676940074","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587676940074"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587676940074","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ylGh2tPzqfXBSbzKZ7/K5TIwTi+IxZQyfL8nbv+E1QFyWNtfv9WlhiMfDiBgG02lcVxDhqolnP3FGE9EkTIFiQ==","shasum":"34a2aec0c63ea7027f5386f09b1f0ff4e413ee88","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587676940074.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeogcyCRA9TVsSAnZWagAAkdIP/0NSNCcNXgeTKBl+WcEr\nRWgJ7JPN2U6F5Q6znz6JunrMjcMjZKCGEdOWae7UduhsgAjqVlaEg7xn+E12\nezsAk6CXLLz8L++C7NkZrrqxAvIQ9ehVPMDO9vL/HCTLt/hDxewqCEhHoS/p\nnd6kJOb87/3SKyCMdv/7c7zEsjR+q/sx5g6qbDX2W7Q3yCnQZG3PeSxJ+s0F\n74NRUk9r+5F5BNU+R58oYvqf/bFUpFd8Nb0edt5AOiPvQ1itK5+x9CMe/Hon\nhsX7RPFluGyAJvYddQqcXg+XZjre/dmCKwIkqBmS5mTNRzNfdbXaBLDQjIoY\nbneiz49XRvEHU2Jnn1saIODdT9O4W0xmLb1is7++OSxlwrcW0puTIgw0l9ma\ntqQhgqKUqtG2SuoJRPWxbbIFZvlPHusPHKwzurQKcaLEvbYdxTAK2J5nY9Lw\nm9K1KIBRarqpWbypIownqAWIU1G8ZoSdPvBbW0HORw/PnOp6Y26pHym9RLdV\nbtwajXXbjbffUg7Kp52c+tQdcB9Cd9Epu1m+i3M3P1+bIKJq8SxX3IQlC8lv\neg8zeaJBuZOPzk/ERY5beD4YWed4VIH9ZJDQfKcCOvg8nBgC6gnPNQOHOV9a\nwEu9xekIoJyyId/jK1y8Z1o2ddjo/For56EkCj6m4WYn8Gr5k2Zt7MOf3XhG\n0yxn\r\n=/qwp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUuRnhj9zSA8L4/0tqiUS6GD8YuhmKhl7e5Pmlh3SfxAIhAOpqXgZdYxQCVdtlUzcERZhNoskCQcUsv5+b1MsE86nH"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587676940074_1587676977847_0.547538644663071"},"_hasShrinkwrap":false},"0.14.0-next.1587677290294":{"name":"playwright","version":"0.14.0-next.1587677290294","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587677290294"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587677290294","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mAjrYMr+mj1kVp5+lJOy0VMWtuNVyGu7syZoDspJepMn9FnVtKn7vUbUQ6GmQE4L4SmCBe2oC/mEg+teaVUO/g==","shasum":"489e5b04bc58285d126e5d3a408aef79a52d470c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587677290294.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeogiWCRA9TVsSAnZWagAAGWMP/0l0Kj2wrJ+6XqAMEdP7\njxcD0QL3h1OgvT3MMGrZXAw23JeH5u4ErEek28MlbFdGK1DvJ1NTfd+potK9\n3t1PRJGFUT4pXsjbiLKqFVAdwG75JtYqJYuI3oveSAJXgO1WNhzulJ7DYJoW\nAYv3KzIQEkcFLf7aOBd9HNMtkMO1bCFnBRHAu8+zz860OVgXux7CcOhldQza\n3XHTYpRmmRq0JdQn5+jkAJVfpyGafszv9MY+XcHz4SeEJG6Muwpkq8l11cuq\nrKUdgWuSa+9M4KfQ9kbdcauX1/MBkxmzJXIFBkB0dQWIksgQGV7AzMMmDFDO\neD6TmM2tp1MrLS5SdiqXNUYRLQqmiJkX1DTzqHmFvtsDDOobzfWAjEd/TQLT\nt/T9te8mBG64pclramtVU9PPq6/XVlIrwQ0yHCupHWDkuNF/bgXr9Dpzn6lr\njqc3LaCDqBumiOE6KzJ8Igc8QtW6bST1g2mQLjSJRYDN2Dv9lGk70sX0jprY\nxRBq5VS7+rMgiZQI3yu2aTedttNPZbatNdZU5XzNs5Gw7Il8vHntwgoaqsKn\nQGLAWVuNqbEHk48xtaw2x2UGgVFz6Z4xFVwm8o0y0J3zi0Nw3ELvY0iHP6aA\nuUDUqH5yHr40N8CNsw4/WUhtiIqrZSl8z+UaTAFwSBUmZF7OliW/gDKuyG7i\nXVXg\r\n=SNn7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtID4/HGhH/98rkXJWWNOkaNae3Kz+GlnHTVYoviGkAwIgRAaVk7QJxyoVTQr01E349y79V5+BIOV5C/oLURWDrpM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587677290294_1587677333863_0.7735514216914032"},"_hasShrinkwrap":false},"0.14.0-next.1587677408147":{"name":"playwright","version":"0.14.0-next.1587677408147","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587677408147"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587677408147","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-M9hND5TQdAjRdiT03H+AIMznpkzEfcc/P23hY/nWiARHq+M/9ZTq/hsOMQr59x9xFNYPmwOrYaARV0v9HgqMhA==","shasum":"19187165cc6b573761df8e0f6d4600fa23bf05cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587677408147.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeogkLCRA9TVsSAnZWagAA3tIP/1WKwYy5Wu0Kx9A4gX+5\necipkLa5Dq/G9LlBDOTaHLp6eTsuZNyumffSfNtQJKR5g/PTiT+U4CwaYAuQ\nkHwgUPTPOPYll9rKNMqvkbf4sKW6iqVgADCCMojpz6jk2vm6zV/QcsKI4L6y\nkX+aZU22WgzX1aH4k6ripymdg07Nh7tFH7Qq4ElZOVCZdeclz3fL3VQ8ueMD\nR6nBxhKx/NnH6+narbCOlWkUBJnjl3E0YlK209f/s5sZUM2nCcSR/qbMrd12\nfktQBjqgeauSYMDzIzDirdaKW7SrQNSDiFOCk48I/vbx2ySjlc8rh9wXtvqG\nNr3pQKEsdZkv96ehvMiZKAnxVvCr5o4JWR92VyFj80pParp2jBVomcOkqX2t\nilxJoOt4JNrOXXLKsM2FBif8e8YTCdKKHxDsXgmhGCfa8JQAjrM/xIEH2qQZ\nkXI9tZenKqDtftcXv77fxnvXwXwusVIzOLuchzVH+Pji+A9JA2ygxMSdd+DH\nXpfPumfy1lALQpGqi2IsxQ9Fs1sOitZqARSO4M30Or4/fuc8PO6dve9RR1xl\nszTy0QuWbTHHuberisVULdfN//aqYtOR3MI0JkYO2VzVMo3Xkp7+g32dNzlC\nKa7j3oZf2DtCze0Eyu0f6WZB0MUKGXf1+Ky2CqRpP4K0N4rsRyCWt1ucn7v+\nyYPs\r\n=zelk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXykHq6lOI31psH4f7j4Zd6peXtoB+M0H3jmikZ00JjQIgWuZ5DOlmOXy6A/HinzJOlKbRnWkHKNKjfN1+fZXt/40="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587677408147_1587677450450_0.088944926791791"},"_hasShrinkwrap":false},"0.14.0-next.1587678100542":{"name":"playwright","version":"0.14.0-next.1587678100542","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587678100542"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587678100542","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-IG3nAyaFgJ4D8zEd3LnUjRlupSK2Kq8Ty3N1schbja+3goBWnS0sMXIJxZ1EtXrQ2e/WOcc2mXhebZpIlbTaCw==","shasum":"48f221ba64260073ce6a448e1164ba5678c99ee8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587678100542.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeogu9CRA9TVsSAnZWagAAf2QP/04Wq4jAXlRsIiEtmYiU\nO/jS7jKaRubay4cYW4CkCLGApD4R/vXa6ljcVCzhIWcbgt+3YJiok5GjEjjn\nIylVABwS4eGbeAEU/e5cUqgQxP+frUbI4DTANvFehq9O4lHmjHXzr4LVD+UK\nmgD56upSeHAt1OufYkJKpM3jOIs3RuKdQW+gkMfKjuWqs6VXMZu9njL1x+tp\n+KXQv9dKBLeviiIpo5gG6vPimiybOm8L8FxidXsqDZze8u/sU/z8Rm4oXpe5\nwYrdXD/r1UZS52slKui4SPfC4DsgbOyGMN3hdAGVDY33kHcKNqbcox3GYEDm\nbH1Bgma99FQbS/D9jh+RTVNQWejjNY7vzoL0whLtKtiIYPisELaxy7JzFSks\n7MvefT4vjPbQ2T097cDCkWLShRDyKUdJEsxbxYf/7EtxAjlR1w3JK0OqgjZV\n8eAPVAA8bhn6Gpd3OXeHzjTxAAB5FK3B5laM3O91cQImMXMj0dcDByUiPrv2\nOfVzg8ZS+nmsDvc4y0RHS0e7BFYAPYOjz/HH9p0EUZ21Aeizlr7KmSoKAKwF\n8oEcdGdP7S1X7AnJj/eUnU/3ih+zLD15kL6h6eQ9kAtq+ngTa8yn0xVAOJXT\nWH5gHYRQbLh4xJe6nTivqS/1vJCGo589X0eDn3bbSC8l7Cbq5gyEuyNvPkmt\nHD4N\r\n=xzvy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrvcRLZP2lwufr0DO/vyQIh2/LynkmiGnYrgpYNViPsQIgayIfgZ/5Wyf6uGxLlWKcJexuWSVEtbfVUrg514JPNX8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587678100542_1587678140971_0.3566741949110259"},"_hasShrinkwrap":false},"0.14.0-next.1587678340966":{"name":"playwright","version":"0.14.0-next.1587678340966","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587678340966"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587678340966","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-uHIKhaQ4rH92Z2oPg6m4N8RExULAuQa2lbbw33PVtJJMRBNx4IQd2VdADBn0ZmgcsP8nHevU2dU33mCDw6bmAA==","shasum":"4f5b3a1a0239ea093cd6157051651bf4315948cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587678340966.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeogysCRA9TVsSAnZWagAAYbsP/2FD/6I1bPYA4rm0to73\naOTZ+Iy0FgoRZqyAxMyRWgq8u4GokL2jAls7VQe5HYZExs20WH5/XuTHSfDI\nbIukm+tYLJ5rSkItQO8b9kPiSo6/sw0EmrviBM8PLZjzLU7mf/5HCQaahXmT\nKyQI1KRXPCDSMlu044Zh9F5s/rGNwEg9/dkI77kiq5CuQvYrFMWai58VnH3u\nn+0nB59XoUNu98/NAvYXfv///GOsImapaQmtoeHF7GmqGSw/hIMQ7pWEYt3D\nasqkdbWfIYss9FSDCzLYLWVTTynIg2OT4mAx9L3i09AUnl26f214fAUacyLg\np1WC+q0M9WhePfBEz2ckcIPdI4hImJRoLsO9RIjwQ0E8L7qu0SdCtW0dcmpA\nDCHrsia/P46vRiQV6OSt5W0YEfERhMcoMHQvq2N+EhRE+dutL+gxuFSY0YVH\nqpdA18SjDtn2lQzKC1JzRhraaPcEXt4+smqxJNt64TD4zgXPVKAuvWeSj0Ng\n5fbjIionMfRGZIVaoBb5FpR5PjROobPchZupettnq/yFcbpw5Dad7ng9gDa1\nECK3rHECrQrRXh+SKinnUx2RN06NoL6baaZJoeKtvcAHk1S2qH7QmvokO7+S\n5Hmq+x2DgWC8QyLgMAzQGR6Lorbud5uHDg0T+bHYml3Yz/C5vq4gpZuyh/vg\nWn6Y\r\n=7miL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDN9wPyuAfIrzjHZcdufSmjQS2PuECFRkQAnMEopjoqfAiBxo0ZWEDWwmEWPm0yWClrp+9WThlyldGrvQFT+2P1/Ag=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587678340966_1587678379737_0.9336644935756679"},"_hasShrinkwrap":false},"0.14.0-next.1587678443859":{"name":"playwright","version":"0.14.0-next.1587678443859","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587678443859"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587678443859","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Xq2T897xs7YtuEIIT1YhjX8jcyRk2+6P+AKAdjWEPXKnTPYoMKYzjx0gTdBJEKEMva0KXYGPpkuoJtX4RiuBfg==","shasum":"555dc5009fd2642c002439e8f76f373a03d06fa0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587678443859.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeog0RCRA9TVsSAnZWagAA8R8P/i9DmDRRkjkNVjt37ZHJ\nwQ9SlKVwU/slHS4LCMfmqXTyDmUNiWdVQlsTc8EFCiqvprBpst9toYMxhAnR\nUFN/xXG1kV9/aLTgvVSTDsw1kv2kDdds+kGXBMxoEdYTePfUA/21/Me7swD4\n6+UE0TeBqo0DH5QSOuz+cOrl+7C5POsr/orve0JMsWKwCp0QEqQWpE9401GP\nrMNVjyL1fgFNOhvOWhvISEp3vFtJYcJHD/MWmQicyoIfUNdOC0di762Q4wXv\nB7jplnF8WB3SG6lhsdQ2wU06UwXV7kSuLi7tloJsJ6n1N4vZRt/DWoURUVPY\nzDwlUJC/dMQWQmzSUXrjDf1dAogeZbPm6QQCwanJ4hzZCvb2VC/qKwgmvldh\n2R5WOhEWO9DLqeqU8TRghix7u4YFWeXTBYvbudNTf5mhFnGT5Wjvzd2eOPOM\nXlfkCoT7Mk+YEHokMDlyZh03lgYZUrWARklFmVEm6rSHsy9/rJ2X40HxWZJZ\niDasu0jGDAfWlekJn/e+UOUpseCnSMBaDj926jP8cIkjFhH5IqjwDlx05rXF\nPsddbJVTNS8yFwSzIcf+Gg2mD12TzrWMTN9f81+2g2GOjIXmvfMdKtpVgPoD\ng/Pt+DQ+wLkGoHlGP+vjYagWsHIIElv8bvQ0buIKS9n6gM7no9wjsJxGBCHI\noJUy\r\n=mfyQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHlhAFDWmi6Zs35u8OotTGrajs66YNBA2ge6hS4EIyMpAiAcSFptwp43AL78QB2WbJzcJyjaL9qxcNwlIR22BlpFZQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587678443859_1587678481422_0.48373955330546115"},"_hasShrinkwrap":false},"0.14.0-next.1587679204541":{"name":"playwright","version":"0.14.0-next.1587679204541","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587679204541"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587679204541","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7aKadI7qosn8B84rBhBF+GDtdAHoSaVNqxY6/ot7f0eP01APFAZssB+YkspUpjezGN1TVx4aySNWuZJh9CStTw==","shasum":"d1fb8f11b9c97a2280bca462212f8ebe11de28cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587679204541.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeohAPCRA9TVsSAnZWagAAWFAP/0AC78t4hHPu2/Tl183v\nACRKw8nSZBSAjRE99RAx0W6IoxdSUakbDnwYGJ80c6ZnJY/xYkKeSiI9i5Q+\nXvau31z9+x5x0dhyXxCSd9DxaUVCg7WdIXtLYi25MhCDSJ/1d+aW73tuZxRb\nAGE+BAZjpP7Y0beOicwCdJny8Q/sOZxX1ni8FkJRybVNi66HI4KbppGBx6iF\nF8gOa+SIH+HR38mcS2wCXlFMNoX82jbtD/nkUQvMf8qS0E38Azy2sC94iAqC\n9xbaeqIqUHIYFXplv4W/2JzaDUSWWY3tzLu84tzNVEdfKytEBzOdirYuYJeS\nfrzDHLIve5E1gdTuC9nX4oTwcyWkbx3kkeqtV+pByMkUfqc9PEyD2fY0OqwA\nhbw3WK4WTBN92fvmq0DC/EIbsabozjmK3oLJm1z5Tc94rrbaMwsgCUSCaUB/\nv/OSlV6uZwM90n0tfiL/OTJZMiuo9HSypIxLECTKarZctj98OtEVbqW8Va9s\nYYcztOWAaj2ubCsr3NZV6rcuUWhvz9EbeIDiNh6d3Dqi2wgfX81eI1KaHv7n\nQc3eWSjbsGeWfNuEem9+MGgTGinU9nIkCpAHmWoVqizRUdDSHyGRMH0YoOfe\nbPUpD8pv9nKJ0sQ/Z8/Vyipf3pjsnpHxuOtuiE7VuU1cDqffgTlsfEDNxeay\nv06T\r\n=+DFg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/YbC74uMaDmcxFqgLjE1WMoHBoYQ0OPtK4Gdex5IOdAIhAKi45ugfo2yfV9RZnJdpi8nptYYoLppazELiqVd1aVIJ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587679204541_1587679246732_0.39500655531320317"},"_hasShrinkwrap":false},"0.14.0-next.1587684343442":{"name":"playwright","version":"0.14.0-next.1587684343442","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587684343442"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587684343442","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YN22rGPO2IYnO5FhEKsTGAFFs5OGlgSc3JmG5AKVUURzItxu7Tuji3+r+dB7Qs2iuuD9N0GV/ZWpL0iHyPlE/Q==","shasum":"9e5ca6fa984df739053024a60a88b879f10c759a","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587684343442.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoiQeCRA9TVsSAnZWagAAOHwP/jDbd+uoayL190sEl8Ny\nZnxvybR9Lyb3kJUiNFVTa03qdZMCLyHWJb3IDYudHBS1uYPUChS/FEFQAJgT\nzz3wbSqTXndYRTZHGSG0j0PwiGjdyMvoaRHVBa7i/ncNIEdc/SomS5uUdFUB\n6h3AQzTdwWUU+rzv1dw33bmioOzWf/Y8Hc0FeWDdG0DmJ6LGlwFG24sPiB7E\n3O8eOBa0PJGtKfslgOucwwdUiJ8rvbBnPoQNTNHwgNKCXsf6keQ7N0WzozNq\nt/r4o4hItdX+/eyJ74FwFWYhvMplQLGmO1N/UNFSNJNTfojYKKj12pF0Y/cC\nIq4Z2JhWjLmH5hyzta4X1A/mdjJwvNOPsdAGYqWQEnmis+DimFNKMdXV82eU\n0QtlzlFq6DqBjHPJaf72tMkEjAWcpYgpTkC9ZKfANZpYg35DOhEMPwgGonTc\naM59RnlLQMVu8fL1WL+r2GGzJYKlOxI81a7qgSodhcjAGtPRHo9oJ6WhF+ME\nxfGnazM6IuDf/KE4K2txVKBfkyNYCEsoxNLNP1zuvNW6wqr6QN2I+3DkghnR\n6tIDP3Mqux3GcYz1tXPA5/iEffC6nqThnj+td/8B9+23tTlqf7/ZUcUzqr87\n4pO1CAdKLpb8JQPEmrCXbSVF314o0fY2jVKffTTe8tBnuPMsM6TWrlva+cV9\nRA6D\r\n=ubHg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICri84iKF07wsJM6PotOmIfRLjNY22BqftwRCdPJDSoyAiBwbTr3Lxv0zDiqZyJWXQ5eE8SLcbZ0Px8ofaoBhsCNWA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587684343442_1587684381474_0.7076093545446991"},"_hasShrinkwrap":false},"0.14.0-next.1587685313798":{"name":"playwright","version":"0.14.0-next.1587685313798","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587685313798"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587685313798","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-DrvbEYrEqNAvuNAsUdv7Khh4HNpBAcxXpkIEJj5KPNHYGw4Pgd1Q6D4KThFlaabX+e3NpnGdsYvnBtKWTVJk7A==","shasum":"da4fc71166e3f5bd768bfab8913d579304f15feb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587685313798.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeoifpCRA9TVsSAnZWagAAaf4P/2ukqLn6cBPwc63jfRDz\nVJgTA+HwRMD8N5jl28z2dJjnw83iznrpAN4w3+WWCHKJpvewOV7ngU5BTVsJ\n3bdKiwtNZPM6k303ekRrIbQiUJhhqnH1qiiJuctwV7sFM4W1glAYeCIKm8DN\ncewbQrVDC9PdAS2fN8NyGHzwCBklJ/hZy1XeWzBSOlnlVTj5LmGlmCzxuX7d\n63w4G4gSGywnzjHUJOmdSm85mrrD7rwKVRFyaMxTr2XBH5IegofZZwWxhd56\nnzp9dba1odTAXzAZiJkOUiDqeSQOypHY2awzkfYjeQbKs6sd0BUSpLflbwT2\n/lKKAOvXa+hJSxsxZOTETjE+or72cLcVr2mKUQND+1tGn8lgUbx511YKYEVw\n2Mr6FlhgsGbJ3VXCrG6c8qNeV01hHi59wD39N+eEpLE5yHp5OzBqMjWw/nBc\no1xPjmVH19WirHZXnNUeQYBoqxYrcu3+Xs4dWTeJNQEl3SP7C5xbdBITIIus\nThmA03efB0nkguJ3kAKRN70aR+f/ssdtiKuZKRw1fg6b5jQvy1SdJNUCrWqO\nCC/oDiGDvn0bOWriM6XR6UKrK2WVU684NwjcWuLtzRkePcszWE2x0TkJOslz\nqkctavcz0leMBbQxoFBLjYrO8dI/j2sk25SYlA3K6aPWg7IYQbE5PLhRIeAM\n44wG\r\n=2227\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaOL2dDtU5Jlyuur0FxUxWrwu8QmI4y+Z+L7ca03IA7AIhAPOLivs4MNNXvozhIqVdcA/oqlh5hQ5eXy1CFsA3novg"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587685313798_1587685352741_0.5121021769489782"},"_hasShrinkwrap":false},"0.14.0-next.1587693020555":{"name":"playwright","version":"0.14.0-next.1587693020555","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587693020555"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587693020555","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-39aUuy8l8BTwGAsGNnrxXaN34g1ZPGKhxLG8bO/1SDq/yvWotuauXKS4IjYgpB0Ify5Bu8Z2UsKq84RifNFggQ==","shasum":"af9722cd7343ed48822f8ceb3218c32b66d84bef","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587693020555.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeokYACRA9TVsSAnZWagAAy1wQAIUVXLA0Me/ticjJVswr\nvDm1HOufTsKcYhxC4MWbhz99PpYFIfVvK73+FEJ01o+QgY8no+mu5p73lTi7\nETX01vm3MZRalZFobmez+Z+UanY7TAlyQXmWRgTDNq1XZ8Ww/NnyCYSZtdVc\nu5ekKzJ7IVOOn1hESkotL/VDdyE4E+5L8vPwsSwdW3BK5ygTdIiP8pz+ybWK\nXY9/YssVpHfyGv8k7Cwby0lM+vu+sl9aAM46mTMLFG9nL8BHKKfYk0/qMVNY\nRZyyqXt+ec/EEJI9A3LPxCB9W0mqmLr+kYeqBL+Z4TLVuUAcvHo/hbo87+mG\nEsnqn4PcSkbv2jzC0omxu9d3BvjymZFWNoVL3gYuDyvMLING3E/BXUsFkmLe\nFUJkOmmoZ3jRO/xuyP1gg1jqSTzExM8Mnd14Uf64Rtl602z4WvknLzyJvpk1\nuwwB4vbUEadIuQUDnNeHN7TjFh+ZaplmVZJ3nNOU5C/E+/wB3mq3S+hlRdeX\no383uphg/WVGLw1bRBEFP8T9RKXuxwLA3xVU9zwQRnqWz+yoMKMsFl2ET8H3\nRjHKkw8SfgFhUmqYC2r+yjcg/fnlkYxTSNTTk2NQowCSuBJgmlRfQ05hCqqq\nJkCa0xnuZpkFFSzW8Qlo/pQVTL7iimGxXb/BhSAUN5AWx17BTAroGwjYGJnT\nC+uj\r\n=eFmv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZW/kzoQLyNDIWFbJ9ABj2GEMNiI2ccQZAg4yMsgUK3AIhAN4BfyeP0zVym14XWS1+QEAbQSXgDLl5rYBSO1mKz4Qg"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587693020555_1587693056441_0.6725251425849366"},"_hasShrinkwrap":false},"0.14.0-next.1587696852204":{"name":"playwright","version":"0.14.0-next.1587696852204","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587696852204"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587696852204","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rSOspdwnuRGJFNNqz/bjGDJRZKrdi36u0OV1v8eukSsk3Fs9HC/dg8LUAmYAbS09A5fzpa8kIHNufyH20x76yQ==","shasum":"1721f30ccfe5b5b0933d1946231f078564f8274c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587696852204.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeolUsCRA9TVsSAnZWagAAf0oP/ig1aCdzeNIJG18Ju3Nd\nbcVyUaWKG1WZTq2C+akbzmDNaBeC0DMM0W+T9N8J415XHXHoKwNmmKJckbBU\nVEl5SZStEpHwx61H9b196qMslCyBELQ9sC0Q1rS179Yl3RHeMEFAih6T/qM5\nrKw3MTY2XKc5isuk/1BVt8Ekyqf+EcDdhqdYBEahwj+FqwvYqBmZ1nNIMdWr\nnrbF2B8n/NsFlxAVfYQoNZpMNOph7HSAdzpqW2cAslg1DWfzC9V2BDlL8RCM\nCEdjt/b41LDivhLOkTsaVuNyOUg3OeFtHPJD/9pGh6sy2Wq7YHqiSmvrXqNW\nCO7gL1yifG4L7wibhPgP+4Xl/s5IVX7JJaONHvzILpG+27AzHB4QsdEzcAvS\nqBWu4hVCDvnmmOzATzx+LQGeIzOTAcjAu/tz0uTE1a9m6hTwzcjnFuPIT9S8\n5+gG+SkotTmz86xSTUjJR++LzirFAFWC6w1kyocso75vr18woD0UBzPJWe5f\nByesEeMSvT1Xq9eq/om5bc4GRNb0Gr5HGA6iVsH4kNTyxSZ8x8csManXKA+h\n3GFbEe8nWN28CHP7AI8S9DM/z1bzo0SXWbjuhfUjwNLOlmcYtDqxNn2yHepB\nXDO0ZRaF0V4NP2R2rajjE9idO+1MC791JdxkXySHixbAaNZOPHb7pptwrzvz\n7jrB\r\n=ykAM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyjzLwlHden4u+yn97R5JF2hmu1jEMdO1BwuBAVhFkLAiB4NHbih3piozGZocKz8TshS6HAlK9fD2cL9cVOfIReIw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587696852204_1587696939881_0.2922922988739529"},"_hasShrinkwrap":false},"0.14.0-next.1587697598498":{"name":"playwright","version":"0.14.0-next.1587697598498","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587697598498"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4117.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587697598498","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AAmy3Q3eGlZyMi3OfaWbwvgxwLJo7fiX6FP+U+u+6C9PrzrUp5PWNEZAlNlHOLhoENf3TeyNQZIjfE/c6oU8Vg==","shasum":"29f5131b846f5359eb45b66e7e238ce03f56ccc4","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587697598498.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeolfoCRA9TVsSAnZWagAAKH0P/3hjpDWwZRZv76wm9P7A\ngoTVluzbr3H4S6L4WWX8gXSR9ktr0nrUcJg8KgahAHxiHs9eqL2VCl6c5mq5\nfJuWdkc9w1/Mm82kWCSiXR78Na9ryXNxXVhmTzegaverbQlGmGtb7UnEZgHH\npVPXv0oX27rbeTqYX5EaYgOf9ZCpTuqru6czOkM3pG6gE5ckapDn/jwRJQDp\n0nMRd8YepRjlDKiQzq6LdXNhtyN44oyRmzwKviLm4YX/30/qhtCNuKHckxzs\nGTpXR7MTJdraGbIFiNNMhY0/0AMJQGwCOAZoFAiLRx8Huby154CJZagW9xyd\nYhAM4zvYkcutFqH3RYGh+Fd+yGjz+SmMKYW7uITgvC6ng6p8FYYcp1ep/7hR\njeprCV4wBW6Az0HFaHpHs5k89ytCrPKf1tlNTLVM/xyDgoFaJ3vvPO5PqhOq\nlby/w11unyjt8rz1UYDTrmuE2OdJmsu+XX/03ZjB0jUEKPVeBaI9j+E9Jk9b\niFxnPiQF5vEEmuaU16qltuRAcBbOsjKwQ/ETMfa79PT+RVgHdTdGMZ8iSYp5\n+TZTF4BnqMXsY/zyoZs6Lmk1BHqAWNRTG4ZOFwKoN/UUVubb9/4InxeaJsek\npVJcuN1t1Fmcm8GoTYG332stKeUYl28MC4Nl2uw3HvPdlDpF6+utD8ItkZM4\nfoPJ\r\n=hzTs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpa6oQB+xFfu2fS3qpyYlqd1wGXtLOvdVIs8QGB+HaGQIgIF+bh1XHcH+p4ctycefWHDOwRiYlS6nGKnZ3CiT5nmM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587697598498_1587697640466_0.7004062264677986"},"_hasShrinkwrap":false},"0.14.0-next.1587698625709":{"name":"playwright","version":"0.14.0-next.1587698625709","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.14.0-next.1587698625709"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.14.0-next.1587698625709","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3Ik6Bw1SbGcdxTngIVzYUUX1xyk+n3a0ctpRng2y/mromSxEifwE76EIpclQWYqxn9fiOSA1cyCj3Yg5qNW5hw==","shasum":"46e7aef24f3ef76bd3c4badb21a9259b3074a43b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.14.0-next.1587698625709.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeolvtCRA9TVsSAnZWagAAvT0P/0Ob+zpk6ZVpr92mZJxB\nXRWdq/AuhwupZX/xhR9KZ1UBg1s/rsx3N+IBamI4uY0hHlaiPxQe3f+1BoxE\nC6nX0Zs+phX58w+1tTWy4arkrvYTIYl5HEPkiimEOlCJd9IANQLI7gnzPvhd\nwlBhsAF70YZijgYZZewigsPMY2wvOtYxGdXcQZhMoQidLkZ5fxYznjou8bqn\nPtLjf7qgNpFhJU1SY3WHc0ONY/TKmg0jWva53W8ymm3cE8858wH8M5eysaLU\nm9oEBw8zY0NMugBjQ6iMI3CqBspszPZlGwTr2MhlHDo9982LVffyC8MNXfcz\n0gaw2wp3JeaH8snp8XUGgpGHJvG2qs9lT+J9WJn3ajQW0drKq/XSNdNMQlch\n86WoatWg37FvdtisX8MBxY4GyBaQaI3wkX7Wr55rbwSgTBJ+4cdAB8LNrlbn\n9H6n6DaLaUSXLJ5Fn7Egjbkp/QlVN2GyPVLuC94KHD3jvV4i+fuXqFy0dly8\n98eV+E1HPYRt4+UjiGsxzImVzUcGwEbHOIyzfJ2sh7Wm5EzDRPTq5oQSPxjo\nma/Q/rjHdq1JAXWmjYvw0sjqy6emJocwGV9envSnpxX3nO/4Kxc3J3qpX/Iu\nOd49S15j5RxcXV7QdP4ulyG6A3ZjFGm6NVFKhvxEIQt9WamYbb2+aFERhtEg\n9G0v\r\n=hDAZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID+ZaZSKvLdpnFx2vMlVIoqSFSzO8cSCzKTOXuaE5BcmAiBaEJfho52i17JS09cm5jStE+b7pJ4IVAG8DYdK+MAzGw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.14.0-next.1587698625709_1587698669439_0.3212202502319985"},"_hasShrinkwrap":false},"0.15.0-next.1587698868002":{"name":"playwright","version":"0.15.0-next.1587698868002","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1587698868002"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1587698868002","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WgiysHnPE+HNVYD2oUs4m42RYlsZZYN4N5H7AxtIy84d/Y9HkQ9nFp/GqIL7EOnVBlitkbmasOnnOo3J1y3RBg==","shasum":"df5a7b7f159aee0ede6b693778d6c8544e197efc","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1587698868002.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeolzbCRA9TVsSAnZWagAAgh8P/i3SLUt6RDts06jcaxod\nsLiEIQhMmm3rwUlln3a4H6eVqvq7n7zbA0TzOgsrI0+JsXdo8es0hhTfV9h6\nx34USmHQySznt1IaTcFn/XIqlILJg4kg7fgiudgpB1vvEBjn/7L4RYGQXejg\n+p/p+qOFHSDPwfGSMFnZP8Go4ynAiwUqz7nmDz6zy7EGGqDggWXIgWcl50Qh\nTgX404XrOTW9o9BiKxoBPa7lh5ZVX2zQqyE0XUl82ak/58knrWaJG2oqNwD0\n9fvb4r+K5FNSn9zCknFZMz7eHyozGhRC+Lvx6d/2QiO7hm0jaV+jTeTekqLa\nXFrsji1qVIEO+Y2LbgY0JKOzy+h+v/Xo4VNjkmC/gpDghiiQRLNWm4j1UYMC\nQauF5NZECfvkulge0bPg+m+BuQusSHmlYujTDD2Y4Z1Fz1nZOUBuMTH0EbL1\nF2tydxAEaa7Vk7xgOiQact07lIJCCF5SoYkgbQMYbnWq8s+a0WpyPsC1Jb1b\nCjagc5NxmTXefnjqpTLxVV/CKDntxTpURrg7e6JHRFZFcpXyDz/X/cEJuawB\nB6VGnN1L4RhYPMy2b9JP2DyBFUqlyFMasCcF+iuLIvBK+JD5ktf1ReCD+6cu\nzryXBg0tWAV6Vn4U+5Qq5A5sbVrdb3DkZbQ7RNqlV8uLpNgRDyHQ0MKIETeV\n8iyi\r\n=dlmf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK8A1Grq4v59PJVvusnmNKYzTI0ehTJEzzi3yKiqqdVgIgNw2fZ5upAFLAeLGHFa205K675rORNmH8iRcSDBhS5l4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1587698868002_1587698907001_0.08236901342865854"},"_hasShrinkwrap":false},"0.15.0-next.1587698969645":{"name":"playwright","version":"0.15.0-next.1587698969645","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1587698969645"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1587698969645","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eOuKDgmAWPJnSt3jBt70cr4VohN0iwfbN2t3FQN03FjdJ8TunTBLiRQ6OyVbaXa4yfaUkFCS6Tqu2Gpo6kNxGA==","shasum":"6814f71d58b34f760d6727b01efb11a9f5bed0ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1587698969645.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeol09CRA9TVsSAnZWagAAdEwP/3nlqUSkYloiy5GSV50K\nz+bsccqyMLK5L/rDmt0mAqFgTHnnky7ky5nmazKGhKzcQAiu//NF34giizzC\n/DNWiyReB6rgN+Iih6TQBblm8F9nPwtje80+tcUBRg8odgAvMPgUbNMNMlOs\niI49E3BmnwExg2n095IJRcrYTnt76UJTtX1Tu/1PHev5jH7MUk24gjgD8ti6\naW4rlweaDnzpxs37zbMfgoyPCnAsEuYF7s86QORC4O6Zs5cpaAEnnxl0LSur\ndm8hzXRQY+na3IryTW2xpJSx6isae1+dMYcUO3HTpyX6Y6RLnJ5wq+vNtT6m\nGIr4KhsgS6pmnRJJ8+P3UnCE10tRzeFI8JORDecFxOM9Vgm9CPa/0teFsgAE\njsMQQ9fIlJTS67lAWrezs1BTlw6IJWxGD6wakhmVgJD6gqOFcT4iPb7Ocx3U\njirWBr3ynqFZAtfOnalYpTd/xJ06RFKn8NlkO2QBAmTpadCROh8z88yVhRm7\nYt67J4FKBa6bOnYl186QJFIjgu6AoX8eDG9AIHOt0fPn/3vG2os9ZHAVLhY8\nObM2hzniUpWxzDCax1YjR04428TSYTOeVA/mizyWJ7ak8QcrYILkhxHhHYxG\nNYDwQARBoRJPjsBz0kXMQskXwmEJTZCHLXtHdbLPsFbQge+Ml4oqG/FIZ2YG\nkd9s\r\n=lswN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHoVrz7ezc20zKtP599YRiutn/gabsh41IC9BAdzCsSAIhALsZYeTvTyU1DH2wwqKlJs+Q8fISKtwMw9sCGRdDnHK8"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1587698969645_1587699004991_0.27019042224899437"},"_hasShrinkwrap":false},"0.15.0":{"name":"playwright","version":"0.15.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UGHkQz8DT43uJ0KgMh2rmj8BI4FE5ReQJ9nm5mG68tt1Cj2sXPdM2b05qptfYYBPtQRetQqtJTauZ6rlCDemaQ==","shasum":"bf5c3bb8404975aba78459310742388c08438431","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0.tgz","fileCount":5,"unpackedSize":8873,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeooPDCRA9TVsSAnZWagAAVg0P/R0EZs2cTyhv8KV+wozj\n4pIYnBGEY5zQJUl53vs1MabjiX2txW3pYmZ5rmNfjE5qxuntO5YpkYjsfOTu\nCOtaD+3i4ipO1QPNLjyhR3yve4Cv4mMN3zh5o9CMvVmonGVwkGoSyXMoKqui\nZOVqSaT4PTuIxiP7V4Oz3fWjqNFp7cf2OXhpziAbjmP3FczgWDFPR7TOqO47\nmsllyOry2QE+AdhGSQ8+zhjCkAslNIxeGCSQyEZQ/7i4RhM4V/1IAtWJ8hun\n+7u8tKaXj4aVSbr2ewl3KZ3ua3P/tNKr3VnKIewHC/pV13H7RU8LVrjOZtmi\nXQoeO8aLiIUPCTetUDO9ZZA01Worq6O/mysk5GF8U8hXodbUpH6q2mUF5X8K\nU2QFdyQC2EeUzr0Xlf7WJqp8ymVSEsvszumvSnDfiE0fW967u5w64wOQiblo\nbhUrJrXn0cbkNA2RVQtuY9xDTMC3Ngm9lSWu9aDF91Zw9qhkDJcXaTuQrmTi\nFf7iS70osCxrms0T8RDTAKwqD54wG3fHGrZJOMrxAyti/dbcaOKY36whaysC\nu95Vj7PJEw+dkrPRJd+El7GcyniZ5oGRXt09IIivVlhTK8MreEK2PTZqMdnd\nJPvgi3VWCPyw1ZsU+briJbzjewABQGGBO3ZkjLdlwwd+vph2FWoU/1qrkU0o\nc/RZ\r\n=143j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkLeZlbNlvfTS3xnL1igdIvQ0ePrU8jeT+jUtQV6oSDgIgJRx+0IFlM5UAM4T83EpyI4OzbiqsKCH/SfrdlO9m5Hs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0_1587708867131_0.8892450346205716"},"_hasShrinkwrap":false},"0.15.0-next.1587743396846":{"name":"playwright","version":"0.15.0-next.1587743396846","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1587743396846"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1587743396846","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rflOX3XQ6E5lNhskcdb37Fdf6o2w6bx8pmFtuFa64KFl3KM9xKaaMaqO5FNihObSe1kgiWz2sNXIMBR+VZSIyQ==","shasum":"31eb2e82032a727c4093f0653f77cf860f1b7e3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1587743396846.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeowrOCRA9TVsSAnZWagAA3aoP/jZPfZZMeUq/ASKig1tf\naiHj5uzgsplW5fsAz5lgtu6C+YOC0V8HKiR4TJBzWI8MtS4tY7NUK+FHZqsO\nvpr8QdEBnTNl6vjB2mQmDlDaflMsG9NSfCjzR1exr5cnQ2sHaVIBx/iFgTRw\nCDVr8xBxJSxXBgS0uy6bJfj3ZQ0HeoqKI84UA6WwnD9zOCvGhijVd8Rnu5Vx\nkfnaOTw3QGEXtnupp8rSJP6N8z6kine0apUumhp8ZthDRDfpb+xGDVirebVq\n+kj15LEcfCVGsAGF5QLKKqeRne/EpL34fnINRA/mEINqayJRVODCPWCYoLTo\npED4gjUvKk4owPX3TYf9HJMm3LIVsMF1Z9ZtoXqhA1mPhUEc28Ijpa4Z0wfr\n7blQ9CxaA6WTDECrzidBgPSpdd8yRcNUSOGviHuilqaBBxNJqEhtDf3sdb0/\nG7g2iuwL277QGsb4BP4XeGkpUEAn3u89APrjnk3I47pp1qWol2ep7CvhXKAm\nneveapg9JDsZdKm/BopkSBsZb8JiempESw016QslYr6noVz/y5e4TFmfd3tK\n8oh/ys6Tht32YkHXrw+QHwLDnMc3qUc4Q9EUtyBinoVe90gp9Nzkx6r/1lvV\nv0HoBXcBfq23uu7zN+p2X41x+c0/4PWcUCBCeZLwBXBOd+yo0vms9DQoSdZP\nS/L7\r\n=7PSE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1Y2n2xQt2SiGe+4+SYF0duTWYg4OWsEU6f+Si0zlIAAiAeAQVRb2THihf/f9Q23Ia8zTYbAfRsBIgTzwPBqWHkEw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1587743396846_1587743438413_0.8527063118935223"},"_hasShrinkwrap":false},"0.15.0-next.1587743815781":{"name":"playwright","version":"0.15.0-next.1587743815781","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1587743815781"},"readme":"# 🎭 Playwright\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg)\n\n###### [Docs](https://github.com/microsoft/playwright/blob/master/docs/README.md) | [API](https://github.com/microsoft/playwright/blob/master/docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases) | [Contributing](#contributing)\n\n\nPlaywright is a Node library to automate the [Chromium](https://www.chromium.org/Home), [WebKit](https://webkit.org/) and [Firefox](https://www.mozilla.org/en-US/firefox/new/) browsers with a single API. It enables **cross-browser** web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Win |\n|   ---:   | :---: | :---:  | :---: |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n- Headless is supported for all the browsers on all platforms.\n\n\nOur primary goal with Playwright is to improve automated UI testing by eliminating flakiness, improving the speed of execution and offering insights into the browser operation.\n\n### Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright along with its dependencies and the browser binaries. Browser binaries are about 50-100MB each, so expect the installation network traffic to be substantial.\n\nOnce installed, Playwright can be used to create a browser instance, open pages and then automate interactions.\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n\n### Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Contributing\n\nCheck out our [contributing guide](https://github.com/microsoft/playwright/blob/master/CONTRIBUTING.md).\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [Example recipes](docs/examples/README.md)\n* [API reference](docs/api.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1587743815781","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wQDJ/eNkh+AtCWwoquiJZVWjZyWyfkb3CB2hyxvCJwomr2Ath4omQaXuOXOe6ZeENk9MwRo97Uxd+PfgMJQUng==","shasum":"a118845e8adbe5f1ace6d458ff3fc83ce4dcda35","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1587743815781.tgz","fileCount":5,"unpackedSize":8911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeowx8CRA9TVsSAnZWagAAakcP/AskGWUHt9Zv6MrYIZsN\nBKahSDMeJd16oG485GKldVk2qg+Ulx4wW7BLmVYIAc2dhJfXFGf+oRjIfXMO\nKo1wNTu2wHCZdDLF4hb9nUNLIT1v4JiMh5Y0oLaJikwDsu4L9N1q2SZDPApD\nc/QhTBiNMJdeUh3WBS8wIBOxQOE6cuwAt3SwRXafvvYKZp+xZRrMVO9cR4ES\nZGYIjo3uagvXmj3LUuEfeIFRxi1+pv90ubohUjVcXfP88wlgkzpnfTFajRbF\njBOtwLl2bQgaRs+KmHyZCG2lVce3Z4kfNemIIFc8/VrpxDMgEBYeEzthijWn\nRgdnLrqrAhL/wWdl8Q1lNLxYqitX/yTAnIUMg+LMb7358CtOSuBROBmu3BUc\nrn+twiwD6/tqYFuWSTxxG+Csb88eYs0/VbtaVtQgiUatDE0gByvPSXt39tJO\nB9TeXg8Pyz8bbeTaWQ+ghchcv5XeQO3MQgUyzhL5qIiza/kR2wSrlx9xAZT4\nAeiAg64fEIgArYGhcewiyoLz2zRv/LSy+Zc1R0GXWs/m3g7KevPkAGdHymuk\ncAbJsKRXvX73SnH02L4o4BNlzFQypRJjLTMtdoy74Ognzm5bZDzX6viaAd1z\nTnHApczXt+90kfnMkx+/tRQSIHMX+4nUsDjAvh8/NQhQr98HhziNBOYlADsp\nsvKa\r\n=xjaM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7dtWQ+o8vPjt/ZKmoJ9C0BEK0f9dI8CX0Y6YGkCt3OQIhALfP26Pc2sxUi93GsOMHrJ7Ki3z9YaMIdRaAX4NFph1P"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1587743815781_1587743867988_0.5428091914631603"},"_hasShrinkwrap":false},"0.15.0-next.1587756125983":{"name":"playwright","version":"0.15.0-next.1587756125983","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1587756125983"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1587756125983","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wRykibKQ0RzNrwk3Awtlj0WRPGoSVnpmvDtstOxdk7wZdUy4FZBVdBRn+1qRhnVbAKBG/+uWv8VrJb9hI3Kgjg==","shasum":"37ce37499b387770dc24d4598b9589365bf016e8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1587756125983.tgz","fileCount":5,"unpackedSize":8962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeozyaCRA9TVsSAnZWagAAiQ0P/iUqp+VL7GCVo9IGVfMx\nbk8SXuMjRjJ1HPYTWl+WkaVm54ySKad7ewAIeP5+3McxdZIOBUSmn7ofYk9I\nDM/fax9v5te/EsOkyz7BUUkBuf6WKiUmTXXCO98RMmXy4sq2SBcnidqVKBXq\n7Q1BZ8RAsEnIAKjiUtO9/c+MWhnqOw7zNo3XI+2yWmoKLjWNJMZdwgOdr7ld\nvHwDSVA4HrovhD+KJd2YvwS1tETGNXpMTox/4RUlfATXbgXJqOd2eAJqcqdW\n7dHBC4lZTTI3zJnS1U2fkU4bxgCsoUvOedUzILS9NDoyXPoKWy+IwcGCMVsB\n7nmV4aVH1ZMJaES/JdoBLJOoukg0k1CRTfE9gNxRj1h4hFobvPL2mj++1eRK\nhr62KrPGwnhiJ4lFqsCHf0N/OCY+OFIdNPXKsetP7QFrtXSNMYv8FRuVReio\nOcu+4Jh9FiZFmpazDStnBO/sdagAxm5qGl1CsdXO2BJMcT+VPuSosHIJn35c\nqvJHkh2NohroSd0bHJstLJURQXQ4HuxCcZEyx5mTmEQ4s73QXYI6FzrX5MMV\nOIgyp4wFjCpayUbxdXFW1nyYx+sdHt5aoPVFDfZq0cAB/oye1STujG2DhKoA\ncWte2lvZ54b3oYyutF8GNAye8Ti5lMBESQOYNMoMMdDMXd0tRYMn/qBL1Ltm\ng1V9\r\n=sNi0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDi+fU5UJTvqPe5loCyBTOiwPnKKONURrnAKezaTjY5CgIgFKI67dF0rrHPGc3tu22s2WBABkEEouYTo0UW5De4BkE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1587756125983_1587756186093_0.5740411025123957"},"_hasShrinkwrap":false},"1.0.0-next.1587765868476":{"name":"playwright","version":"1.0.0-next.1587765868476","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1587765868476"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1587765868476","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-QxMAcI9RlrMkTwputDNSGFJ3A8KmSHZU2ccwZWz/Z+gAMxQEIgTzSy9K60RTonYzmGQBleiSgwGdZjIiWC0O5A==","shasum":"3ab00b950eda334a8d9f5959b018b3ee0c199567","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1587765868476.tgz","fileCount":5,"unpackedSize":8960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo2KUCRA9TVsSAnZWagAA3O4P/jxHaMqkRQmXF0iLIEmp\nFy0DZ5CmqOTcgKNF9iwtAwd+T6OFVD79xb+49tIewKgho1fS6buus8udvD0G\nALjA7M6hlDafFAJXxG3GWeBjz4IiXuZdg4598BdAjMisWQ0/cBZUHYHCD0CD\nAsZqOfhydqFcbaeb7huL2dTNhh95J0Y4DYxecFoOrWbGjZW6GUxPGOr9dYz6\n+xe/tLMvNf3kD+wG1hV4jpd957pcUfiVvF3Yzn3z4hK/id0SgM/vgf+O690N\nOw7pS8C7jJrHhgXpxf2X+Yc5t9jJJ/onl44IJs8K2vU3S4W3iELrzrv6OYSH\n9YMM48I8y9uwYcoQbbxtBs9d15IJTnrGHnRwYitc4blsFKoaDOL/C1w+w5I+\neRHVkVFHza00M8/CLqAZBdwtuS7PRwfAehSoLGIrB2zOQ4YeYjA33+OopKks\n5TMwPFv12SoLi3Z02iTf2zqLTJ08LeOKeFN1n0IZYNcArn8vEmGjKLVP1TQN\nS68z4baLsINwxIjvOgjPifu8LDV5SAwqyYMSxnyT2wljx654wg2QibWXj1lZ\nguw+6kV5qNqCaVROlJGj8MX9YWotCdEvOyhESKztNjAUWHK+71h5C6qsHmF0\nEqSjvPnEqETPJozVVFuZEokgh3D7NCkpuOooBcyDXMpu2iDYf6/kI49lm3ax\ndu6h\r\n=oCmq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCf0dXjHbGTq5FEDgHOjgbbCOwZVYNUzvrqRttwTnOtrwIhAJ77lOF2vI7IJvvZFjQJab/qggVn4Q5q7pn8RZW69ifc"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1587765868476_1587765907700_0.8033674176540673"},"_hasShrinkwrap":false},"1.0.0-next.1587769946744":{"name":"playwright","version":"1.0.0-next.1587769946744","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1587769946744"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1587769946744","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+zZQLvCau8blEKNVyUVpVfUA3Q7oZ2kCuq1piG+rUTwQncWPhXQuDM+Y9ZWsi1DCd6hCr9/qC+7MF0TNKdkmew==","shasum":"8bd34401417968498a00b8600400ba3356537893","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1587769946744.tgz","fileCount":5,"unpackedSize":8960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo3KACRA9TVsSAnZWagAALeMP/R5TyDhla+EyWK0s2IHX\n5+1+TnehmepyTobkweYrMKMAJHKJMmU6cLNC7N2EpfSq2WX23mn/mTN1qCHI\nf1c/MWPOtcFAt+AGP2POaGjmtrahsiUpRdrev1oqzVZ3OqqgyCVG+bM+6scY\n1ldHBfeAHdOJt7fUrepxsBpHQ/QsxoGYwKfetgIPz0tAKjir+rd7UjKRTq6X\n1W01o70M7S4I3VsCE+Px1WkuScR2VlcHITq9+yT1OQwf09hyjvgY5mrvSISo\nY1qyu0CwnwOXmDX9/f8S67Am62C8D3oYgWU3jaQwqseczrBxoY6/kDNuVzXJ\nm/My9RfmaEwquQyMYYIqc6mLIrOX6DRBtyLWCPKilZT26bcNcCStI0+bTeEj\nCfIEr6xKnJKgUpzqf15D+aCR3Yu0mjVnDhKPURLLF1VUN7nNubKZe8bYAhsd\nGbO7xcR1bNV2bgqg8MA0AHhoEKhDr/J/A9PkrdDU9yt0MGQIatLDHsB9abAE\nfM8in7QgYHlByHFyZR7xsD9zIrIXSHKy5U132188PPVZd4lxH0kcV6jd/r0Q\nQcTMkkyrZPeHWljuTZtT4XCKdpiFVu8vmws0TnxQDiz83CQlSNygI0HPtUZ1\nKeMumaDi37I6AUX8+AZMtcgEKln4t8mUZ57VhZUcss13XDOXWKePI/BF0mEH\n+ZdH\r\n=dAcC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAID1zkNa8cEhn5CMH9c1yFCkTt/T/7vPQfAIZ9ZEw8qAiAgZcyt4Nah8hiiecrqc3+HvLFCLq/HvV5D0E7AxA3bJQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1587769946744_1587769983568_0.3536345532837526"},"_hasShrinkwrap":false},"1.0.0-next.1587772501558":{"name":"playwright","version":"1.0.0-next.1587772501558","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1587772501558"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1587772501558","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/HuEKv5z31Ql1JxmayBV9tg4ZKqwYVlO13+7lclqZSQTMSdxj6QL+ahcyoh6Ka1FCUosL3aHpU35bKt1+irqtg==","shasum":"d01d969bebb7ed71daeb7e17df55519f0ee70b33","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1587772501558.tgz","fileCount":5,"unpackedSize":8960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo3x+CRA9TVsSAnZWagAAW0YQAIHm4j31M71/IB5LFz+t\nzo2VwqFGydFvVgzumHXyMAlAJobnLKt+q37B06U1adhKWEbglNfw2Sptxj8p\n8iko41BksDKUp0tKA/n5vx66svvL54RFUo9vb0oT6z/mMnDBpB8w31XaK31V\nCDsnR5ezRKC3FUtM2idgy1OMdFQCumrhIgjT8lBZoYS6NMh8L3rX5bwUf6ha\nGm1uY4msdk90H8vbPsLw13vwl/7AS+eMHPBKB/AFqtJYN+wgkoXdpbq6FyXu\nFqAEFT2EYQy5+Q41u96F1wW7Sp6H1BBUbeScvaTus1hQ08aJz704sTPkF9Qp\n4em5drcqhKPNHGfpQQHnbyg9NZUVozvblyfw/qVV2uBW9Fdx/4dfRu24rLfG\nAoOt56jY0rrG8P50z09XdANuxVCCLBmcODnWj+RA4B2UxSGubHon3w0aAhrC\numu2rjKma3zLlMn4MynwqJ76Hb8zK+Ge92TB2JJhxAKpQeky2/Wmob/Lspez\nUfpC7ntpWTEjqlcM64iHypKtRaEUHUvQDsTN0VtGACjdY3TUOn3xxEbDGbqp\nSfS+rxGYNK+v/X1YdIujvlShZgUnK5QA5C2v5MrOkbl3nzExq7P0soAySSUt\nL2mZoK/8RXjbvbKKOKvLUaBH7DwwgFJTcxdBFMtNLbPZt0pRqA78V5LeAYCY\nQ2rv\r\n=XUCE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFPZImTHXDcLtR0ouiDRdoxZ6QRqgr6AqSEA7Mx13rpmAiAyAWK4RY4dhum/h4e566fzEv7KrNPYSaK+19BHTNPkjA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1587772501558_1587772542377_0.039089930828677844"},"_hasShrinkwrap":false},"1.0.0-next.1587776231281":{"name":"playwright","version":"1.0.0-next.1587776231281","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1587776231281"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1587776231281","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/+UgV0jFdRJi4u/wv/g9Sw3RQGfNtlycSu6qY1jLIU3mYeDH07tqSVbLZzTwmYExi0ciXHbvTNMAE26zkPc3BA==","shasum":"6b444903a623dea0bb5ba41da5cf728a69834bb3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1587776231281.tgz","fileCount":5,"unpackedSize":8960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo4sxCRA9TVsSAnZWagAAEYAQAJxOsqjw6AwMU/QcqTOZ\nHBlo69vpXMrL+Hs7o9vw55CvXbuxhsgFuZBkb+39jMT1XifGpMWnimRpSSBa\nxlFgk8P6wn94w03e5XlKgutwJw7dVrTqF/vx1do2tTRWUwHWUN5iT+RmcJUX\nfZ5awG8FPMf244OeqIBrgl7RLXT8S+Is5JOdiwUEDgHhJd0koa8eIiLpJRcn\nnFLU+eCuch7qAIJ4Nm7V1xDem2B9++wYm4rvzZ11O9R3x7thOqD6/tI6H6Gs\nK8ZFbD9XnwjlS5y8kacG1qLcm9i2HcbhqFvgSykCTPwbANvDRLJOG5Z3yrfL\nEsFSRsAeVJ6Hmt+X7MTBjCfB5siEqzOgrJQ5dmazEVahnCMdSo31glAngQcV\n3zQKChDWsD9fBQEqPwEI0EzUd7+/otnbKQRZPxV7lbOADv3v1yDBUF19B+Wa\nNLaSBitG+waJZOnLPeILHklqsQSaljS9Z8GHM+OGx8lTQ7UsXWU2e15UX075\n7a5IFznbacfgFcIzlMU3ddHVwfVqW2oE48a0WCZ1U6AB0u1mHGy6izCl2q/I\nw7ltlV+M8WuDMTk21w+LXuXcdfxvAJss7lkFKahgU4ms6zrME4IvrTgjVhhE\ne0S+feSxm9QY5ntUXyez0NeeXgkiBifCgQG6ZNFD0mzgi3y9LkKsPKT9RWZm\nElLE\r\n=j97x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEaM6ELr5HF1JBCoASpi+Sp0D7EEgQalh7fVoP5vPROwIgcodzHycj3xgH7/lLG2bZSysbwhLEznsLevrcXT0aq/E="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1587776231281_1587776304851_0.17911172991772428"},"_hasShrinkwrap":false},"1.0.0-next.1587780960253":{"name":"playwright","version":"1.0.0-next.1587780960253","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1587780960253"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1587780960253","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cE25iS3esOWbs8otJJOiJorPrlJdiCfSde/v68eYrbtboeTUC3DkW+UlVSI+PIxbUFd4U1SKCUn/v3XDIXuzyw==","shasum":"2d0bf7e360818ddf2c7185a3b9c4ba7a66ca6e6c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1587780960253.tgz","fileCount":5,"unpackedSize":8710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo52OCRA9TVsSAnZWagAANksP/3Wet/SwgLxqtzIiR81Q\nck2OrINfGYkS/tCpV6lKYcc+ULsw0g3gxcoPzOkkW7NQuEhethG/89k/uLVG\n/u6TVUpi7EKGY8n4U4D88VYXYwuPvzbe1Cf8mMGST4RgIHpEeIYQQ1/Xtd1K\nhXNbqO7tpQMx5NtKaPOiilYD7e3nCh8rr16K9U3gCpQcNlCb2YJx7HmRbD7y\nQPCrgF4efrZbwEFvLr9J4vWG5cA4wwbuyq6UP0nDqWLTbcBj3Agvp+IlZWvn\nkDS5692mCJftasXGrW8kW8Y45NRjPexIp5cVYTXA/FEnd8Gy2A2xdV/EFPyp\nJfnaHWcg1emvypsU/cJOZAPBnzLWBWDBnRXtZOyUvDjxzfJAHhV8J94YwXfU\nVNEk9MFueaMaJrWmxanWCs1zC65pc65P/wAkxRytFGiUipailN4j3Oo3KIcY\nRNHMlBNfn2BgbpWihygQTD5BvbljbQ2l8kMjn2sijDnPQa3j0Ig0LwfKkg12\n5eabIhoO599PlzS3xcqg/HBGtsk0VDWtxY1un19RoDzqri6hHsN6NG2MaWoN\nEigZNR3H11sHRsntVcv3YQGaQQHl+q2J/rKLR7/Aik9SHOnt0O96qi8xmc9t\nWibUVaKKprJ5gZJ0eIFIYjRW38aX/BhwqSlM4vsNjlBm+mBwDj86ovTrweI/\n8bdD\r\n=ORYH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1xjOnoiD+Sp0MYyQuzBUzcPcpMgGSIKIMwvgUBiXsQwIgGTkyuKbNQWm6zT+ttE2BqDqVpb/zEx6/OIXRZrJb/NI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1587780960253_1587781006152_0.5492993416091156"},"_hasShrinkwrap":false},"1.0.0-next.1587786688902":{"name":"playwright","version":"1.0.0-next.1587786688902","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1587786688902"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1587786688902","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HqdlZom1j7gClES5FUDM1mf/6/VyNEPVAg4wCV0KzNIZrx/+DI37dLmYMxyOunqzwIRUcONLQk4zOwaPN0Q8Vw==","shasum":"de2c702d1c689aad96b857517f5905826df5f444","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1587786688902.tgz","fileCount":5,"unpackedSize":8710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo7PrCRA9TVsSAnZWagAAPFwP/Akhsemf/84LIufvcFwz\nwOKXS+n+rROkkSdbdP1ZNp64XpuAcAxWh26yhONac/SdHVOowyGVjUtVquWd\nEb3TohI73Hg6Xb3qQQGozi7Nm0JcSIjlno22436D/7QuoF6CbwWIb3a3Nte4\nDp3qKkhPo7s1MunJSJfqRfIp0dxpBPXpvz6+Z/H34k71csFzJG8dYrbQAevA\nrzx2l+RBgMJoR06gf3g/6TBu7sqgNbl3b07/v4vwhU5NYgWs8CKvTGPjlXd7\nVMF/bpIexxK2N1w958tXGMvlzTOrf9zoO5pSW2ywAyOYddKBSMJTK4yxcooj\npAztPh49sTPDvsC2pWi0lv1KOzfFLITp4YIg9aiiRk+eGVD9Z8LtVDxNYKz0\neMk7rQNjkW8lBasjIYOxGUsoJCgymw2hvX1Z3L8GBJpgG8VxD4pOCwGsKf1D\nan2huWi85QWR3ryd/FKdyzeg0cnuO5f/hGVWtwoWvkTWQGiOfLZPR5QUd7qu\nwmxOILEANW7sz/xJozUV6yubBAmldsKZlNGJjLm0379p67xdgE5jxmasUNR5\nC9sjubdctsHgaMHjU2ig8WYiAfs1aYxMsg6LsPbcPBzCh8styhfnV9cYVErk\nvbjTnCZH2ba1C0rci1dpqsI2Ud0O1Zb2MiQTHp5jnopf6bs6GGYPIyy7MSUB\ncQcl\r\n=j1SO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNxq41HQzyZTRxbapXml2Gg6LxPRdgu2WEqTwQn++vEAiEAwsz00lo+hCzK1yB9mlql1FTkw/UTf4a8X85qCRV/aUM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1587786688902_1587786731067_0.7116222236030707"},"_hasShrinkwrap":false},"1.0.0-next.1587829720374":{"name":"playwright","version":"1.0.0-next.1587829720374","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1587829720374"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1587829720374","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3Hia3aEwO2HOcbylHyMNzoqrcGsHcykmd/ofRbbypXQrErU3QaiL2oDVahRxerU0Cf76ewXkxibTxD4sllx2yQ==","shasum":"1b055211b86ea3ae119d3c4a8396d00f5d712e02","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1587829720374.tgz","fileCount":5,"unpackedSize":8710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepFv9CRA9TVsSAnZWagAAdswQAJ/QWLyMhRzR+YFN2Yvc\nxFn6VfPGvM0f0il7iQUxflVmO+TYMUBRpaLXhTPYiZ0sFw2dd5Jo1hXF1Sci\nc5KUCUk7K44b149qQBoe63Y+/Ugi4li1oCg1qgQ0KoduU8VdFptnc1t/3xSK\n9XDWWzbrKkEY6h6MvOJ6Wg7ghSX/N2pBlkTdGy9b7VNT15KEbXhDCSIntAsG\nfZZEJ/JCz4iWbHPp+aW/5fwG6krtZUfh/jJDlfVzgE5R9zXfpDwEee6TB5Qh\n0USa+voyjhEY6f7CmjeJtjIsJcS/EXhiZXCs0nTDMpxQJlWhKhgoyHrEcwC/\nH1lkdgFlADmz494ok6xwTXbSkXFB94KmsVdBjfpoKsUIhpno0MaYN9EJtrp6\nia/ABjB2tZKj1N4DwCO8fqNgl1+tdo/H1s3b6y//2dP5YpYLMSa22BU9klhM\nZuGa0BcsJn7HNKqJuQCGka8ZFbJ+oLPOke19EocluA2zn+ahTC2eQ3Ma3+Ae\nTOqXkPdNI2j+OpNEQv3dFdqKBcrvw873TcXv0VHFUvn6BvNR2gnC8K1FpGPS\nLsJ65s2gBBL4rqPLzjGfEVmOOEHxnmTG4Hx03hpd/sSnmMWM9JfGLiFw74wL\nuIiiHqcsSCPCgzTu1rkfo1e7lmPRFm3WpV4Psfep8+Tere8Fpk870kz6ncX2\n1MeT\r\n=42KN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBVj1+uJxph5MDk4kyJIGKPCB8/Q+nPzj8uvWdTpfFHkAiAQyi/SIHVIS0elCKealE3J8wzBSGdEd9wo5L3VgD2Cvw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1587829720374_1587829757415_0.9961897578699066"},"_hasShrinkwrap":false},"1.0.0-next.1587832636942":{"name":"playwright","version":"1.0.0-next.1587832636942","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1587832636942"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1587832636942","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xUf+n+kCvZEI4mSNx12A+kAMLiRn1n2+sVwyN4CMqCq8A6PbDnu8roGI0K6KzjLRUHGlXBK+5V+FAQXomY8aOQ==","shasum":"1e6eab5ff17fedbc1d6ca8b33916f223c11e761f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1587832636942.tgz","fileCount":5,"unpackedSize":8710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepGdiCRA9TVsSAnZWagAAF0wP/1YY6i879qp8Y1grMw37\nwB3Y0eOUX2QzrXI2e0k1J1huTcrKfCJYW3F6LYsOGHGGVk11tn4AAC/jW2ey\nUZCjYKhhA/KSYLWjrC+8L4H/K2pDxy6VSPknReWz63BHjrkfJr4K+kHGAXQG\nW7N7ikHJIm/kXopvUT8bfTUVYTyY3fkIB7ssKo42b0kTAFFbISi4GXEsIXTA\nL+QHwo5mvktRT9OM/Npy7oRTyJ+Y+/h/tPtzvrYWH6bqJ4SUpyv8BPWTPMdH\n1Rc391V6XuQGhAznYB1J9nGUchLmnEacYXFEXaiI5iHC6e1zFTC5H6p/ZB+v\n9iDXpNNab3LWNGH3CEWTw6EFX0rOOQW/bMRxWD3KO4dmUJQjThwFzEMKsSPy\naa7R6JimbYz4OphmOB+2tIWWzizwzbWE37Cs0SkGnsrMLp1C4YFJ9+E95M0Z\nZxsiM6TtDOw5KXln7VNpAEdhsMPqpdVgN5k662DprXlMBgPC7EofBX9q64Go\nlEzaPQwRuSbRXSOOsC5v0mJJ0xlYYfiV32fcOYeRcPfBam4zUDJpcnEXXhfi\n06boptmGr1Qd7hyQtzHMwNuPebM1YmC/lXjO1U8g54gzttYSYXuLX+v5IAu5\nGy+13LNwUgdQ8XeJkxfteSF6lceTo7Ul7ceeq5U3hCb3JtRe7WhuekD//qgN\nzSv6\r\n=I5aK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICMDuBP0U+YS1M2Fu998yM9YzAUC9ZS14UYeKfs6yEi2AiBIC/qVwzYk9g0AeUBOO7kMuPk50Xsw1VOwOEI25194rg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1587832636942_1587832674403_0.09381862876993563"},"_hasShrinkwrap":false},"1.0.0-next.1588004996037":{"name":"playwright","version":"1.0.0-next.1588004996037","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588004996037"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1588004996037","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-K5eY9jk4s0VNIvgREosYMmxXV5isPjEud+lVSPFn7AMb/wkN8mXyRb0Bkgp/yyiE3Ze9w8K/rvSXx2iGoLK9hA==","shasum":"0512c4da1244ec905e8c6394a72096da2e2e066d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588004996037.tgz","fileCount":5,"unpackedSize":8710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepwisCRA9TVsSAnZWagAAEKwP/22Nq/BuH7A6UrqTQK/9\ndCi5hoperC5QqhrPDNL6ANlQqypBVWyxoevIG6A6OOLQRa4j0/1CA7+EW37W\nfKpDzYNkGQ+LpoaciIcHluFggG9I0u4OOR3LftCVztcsmUsryVTgphMm6JIu\nVVqFCJdmyvt123KSOFmCqeT8OZu0MfmYxtZD66+v3CJ32u7IvBMbqM4ih5EP\nzS29BxX8RJsBv9bTogFU9b1SDnAlQFEjVR/kQxYfHo930NkkFH9F1TBiNQGP\nhMz0OFOwI3nTuXFZfm20ex1zNarjLX4BzpKHHDttfhr6F6kGLRrz20rqJS1B\ntahuzT8x+11GggwWp1yuS7EzL7zF7F7+TqkkFZnC3gehtev0hsBgwFWtqKIQ\nXpVeNv/8XeKyFsXaUzWbPVMJyHMbZbTHVpYUR/unijQh7cNBXtlsurHqclgc\nBEv8OGxIQxpcH4WruK2Gl+jDefAAAI3fuLLpDTJTSTm8j1MyPiLaVjHZDMrf\ndXsnizZQg2f6LKtaSdxpbCi3jPoLznXj3KrnruF4rT3lOMarSgIEUH33QmpY\nQoYMuR6M19RX7OnWiyNICDwZoezycif0as+QfJXLi8CiRAdF/CgVbZUlshkv\nDOvn9rpd5ZszvU+HvQ+N6nDfwAN4LRZ1iQkfUHN/LVfibBRiurSGqttypKz9\n22rM\r\n=cJhg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUwPlGZejsuiPjSK1oc+Xz0P3gcIGbJL2NwQAcKmsboAIgfDAl8V21HneRmdStvNU8VYy/uIcjNmqZ3C+ZQi1NvWM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588004996037_1588005035782_0.4445388462554374"},"_hasShrinkwrap":false},"0.15.0-next.1588007560546":{"name":"playwright","version":"0.15.0-next.1588007560546","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588007560546"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588007560546","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+nMYoIM7+tTUbDz7zjwM5xBq6EB0GyDVqUu7hdnwdf8wx9heSfw3bWdEV4j5ewwC7DMT7jOIiX4FzEMKW0xW5A==","shasum":"525e8f0f541f5c8921e5e8d855145691fdd1d2f3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588007560546.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepxKyCRA9TVsSAnZWagAALSEP/i/OW6pEXCpN6nwb6t3H\n4yG7ttCvW9SvrqIcBDnxfprkO0CpYMiswI6LvzHQXmvLlDbp5WdSXL/7bPnq\nMsqfz8B9HlfUpDonxiETLPwJNN+cecOpUF8e+tNEe9fKXzV2MiV0s9W2e0JT\nfkHyqMnSQcYGLyYSpe0+ykacJpqDO84kiScAfdQSd7x5o5AXIQEihxqHQBmS\ni1Jr3OUQK/qUe/59IjzNzNVeUXTOeFD/aSb83UJmzjO7N/7q731BJXqRqh+N\np4aqfPmURdXXcZ2pE+/V1H80K7/vpfR5HwdJLqcG8QiycZO0b0DmXpC3Ttfj\nfSn84ze0mja38nFTrsspXVG6bJ8rlqcKImU7ABWCR8RpKJGysukYErjNZnFY\ngbkomTJstXfRQgUXB3qBr+wf81Tgt3IuS/4k31DTc1MIUiWX6Xa33mVVnqGC\n6K4GDqjjkN531JXhRboa5+6+e5Bkgt2MiDk+Y0X8Qbvs601xI2/YE5/ryFW+\nd7NRyvnaJ5UjDbcZaHCS8bHUrJoa7mr5YiX3QxqRoGJ959cEr90hUOpdMZfR\n9loNrTl708Iyz0N1/DV0SxmGsZP3Y0JFsTBB84sPGsFostyk8bNSKLZoH3Rh\n9aGrgY8POr0phyMKkcSoT8PxQKsGObuMqpGyQHG9GNd46BrOd9B/KZosl9ST\nqfsG\r\n=jWpH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEMm5SdhQ0dOAyrg2D1SgF9lzJNffiIui8Iizt5CJRAQIgLRmPnwIVyWBHkbByUuRXT9OGjMeMkySw5ojaV3fsk9w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588007560546_1588007602097_0.19183245444574393"},"_hasShrinkwrap":false},"0.15.0-next.1588007792706":{"name":"playwright","version":"0.15.0-next.1588007792706","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588007792706"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588007792706","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RvKsTv0X4AYEuhrpMCubbkuNnhZrrKBsBznH0Wg2p6uNLagzBmQTTD8Tyae+jH3d6CK3GNRzlN50ay5tWsAqBQ==","shasum":"cf61f8ba25d09a472d73440b2431c38b88e7003f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588007792706.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepxObCRA9TVsSAnZWagAAHuoP/1a9ifGDEQpoBJgDru7R\nLlHtnpQUCY24ofM0HDHWBjKrgmJBVIEz//yFalTPbvinMfyHMyg+0I89OUYU\nS+Orewprd9Iw7V0+YjrHAU/ZKA+l97cXui+dQ3m7zcUup/tYfuuAr0xLg06e\n8nNbbwR2W2lV76pbY4GgiNR/QnP1Pdu6jNXReMkajQMTQWcaOmbxVFIGdNHd\npKxxTAVtNxc91HSQULNoHRf++h5jBFTIW4oSx5PqktjUPVsg/lOnH6izW2i0\nKsjBuU+EqZg7PTafYEcdE/Oeh5r6+Ghrqjqzj5h/5rFuRl26qVVUzZ3SUpAf\n9MnboQQj8bZVSL4UmrqdFjMvSpoPHQGKPYBfvBpbG92K39uR7Oq21qaP8HvA\nk4SEm/FtjYS+M/oU8EJKpLYG4Ob2BjDLa1QelW8OwzCkaDsAs4qmR+TpcoZs\niWgK6l6mB/kWxxKtrQJGcfjQDmQfCOMvs1DnbF6glVk8jARbLRbX9qvhNNYD\n1uD9zymeqqHfpMNKqX5+L7bR31H2h4IZYvWEb65h33d9wlxaoZjWYdihK5vU\nFV6/FvpTvhTl4cUrdvCKK6GMv0ClaRUwFkORLU+inOgyL4Q2gAlt5SJU+Wjn\nPFfphJU+cccgybLchfkuYAa77RZwtnYtpRXAZgZ8mxn0SYwbB/gbR/HXfDna\neZEv\r\n=DK0j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCucLS+73cdGIKuwIrbGAxsgcCZcBheOJvwH5SW4UKEHQIgYw2MFKdlcmons7aAbIRl+ZbvtO0z8D869GacQnB9dFI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588007792706_1588007834617_0.37737728899302003"},"_hasShrinkwrap":false},"0.15.0-next.1588014709576":{"name":"playwright","version":"0.15.0-next.1588014709576","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588014709576"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588014709576","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Wl8pjBOLLQXHsO1DkhG6Y9Plb1iQOC5LtRlBn1fkjnFFDEoZDaPdUxAuEMoxH1AS36QUtQSFwneGIzQQjR60QQ==","shasum":"962113b28848f24defa253fe24c93c0dd7c5e1f0","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588014709576.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepy6hCRA9TVsSAnZWagAAUFgQAIjTAc3gWvoEQpHi0zPT\nm7L5E4vdkk6WYq9tpO21DS41QZnIE2KNbMHXhSrIhRRlZyv3B0TYsn0nbYeO\nIA7NwVsKH9jO/9sN/g6c9++8P2GWgnE1rfYgf4xpjK9yChwCExCoUL0jxczl\nIhJpR+S2IzfT4Fe2uTlHW9d3fAEEnnl6iqRVR+w0Q+uuazUitcvbAOBAxfc4\nVCruK4KPK9HHgSIbzdnyC4EplRxvVtKZQXoKL/+tlp6U7e6LGzyWqMQuVc4X\nU4dxnamiLsRF9RWo4v5TD5/qwQl4C63C1RU27r8v5YMyZSi7AUibcGodY/Mu\n0OI1ejbK0KZN7JrD9aR5Lhzk6E/zbZzVz/YkkzJNr9hDaZ/t1WCj1fRnGe5X\nWe5MpVxZyz7PqjFTQGknicTbugBT6AONVT7WdaPZjdv3aVh50IBTOUwVtpdG\nE4Tk3zWSh2AXKaJ8W4nzzldYFjTnii0iNJqutXSo/Ml19jAYsW7LzCILlqmo\nJUXBNGYu75vW+emp8zRM5NHx9/0mAzX8K7JYcpIhi4dto+OT9yFjtT5VoFS5\nTLrT0z8Wo8Sd7o+VQQs/VXrbizuf7mryL2c7jgJXFMJxpSDLt9YWGhWyDpK4\nYYhYuqaBe0FJtGhzDVzlttqou2MP3Tp6q1tc6g8RsIjv1gaPaX4C7stm11b0\npTRR\r\n=9cbe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBn83RGPm5eCzQf/A34typ/siEqm3zkT1eyLJZRyKaOvAiEArGkx1hfJyXyf7klFJ5+qZY4Ipdgc3EwIWxXniejCBq0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588014709576_1588014752893_0.5604145620982224"},"_hasShrinkwrap":false},"0.15.0-next.1588020522290":{"name":"playwright","version":"0.15.0-next.1588020522290","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588020522290"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588020522290","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3QbVBsvUVGTJL9i0EKUSTsepwhKAkptJMoTtZBI5GfnQpluM0ap5bik6ODslJYEv9vMzO20/DUD12IMXPEbw7Q==","shasum":"727c1d5d2c4d271bb2e4199841333ee731984647","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588020522290.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep0VOCRA9TVsSAnZWagAATiIQAJrYj4ynViVHFljagA5c\ngNkfplx8hjBhcvX4d6YZ+3KVRz8lOCQSPM26oSHItkUIkE6pYjc9MdHw+evR\nejHPaZetJ3EKjIn5RlQHDrqTdlg6kLqr5Tq9USbzq7JPmg2itlegMIKUALe5\nOIVUFYUDprISbTqH3FliE66QOj1bYxzB/TvGQvx011D+NRIv2grOqLeHOP2L\nHyPip/nby1WBj5/9rgo+KDP+TnyRM41ZLyJXOdiSvVop5o5GGyyJO67DO79X\nHQcYpCgNaJbEJB4vWKCcF2HZWjgHC4eXpMn8EInNMVjjqi2yL7Kx3HTcPQRr\nSEM5MFrJXXiyJYjqOFtFtV+dhKdIgs0qhNSJoLyjUH69eKfL5zF9GJud5MYf\nZT5TJKQ0bFPfLvZdEDFQo4He+hjpwv3geMKdD65wEK2ZWKnJyyLlIzcQcTCM\nYwuCWeYpIB7BNRkC2PFqbCmEbPwV3P3rQ8wY8g3SnmTL6Kj7kfylr+n3bfTI\n0Aq9fidjXveTeBKCgrhHw0cc9lpS4OWcn6ckqwZ6sxEM5CRISr6IhMp/ZwYZ\nZdj5of0rEKFp38YAe3dF3qk2Krqc4BeLK5gz/evukn0Vsxsw64Qg/JIE/5bt\nMO+4PLVDrjSNCVuizXZI0muOG/sH3SfKoywWiOtsgrBFLHPu5GejBWNI/a3t\nO7Em\r\n=J+TJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCF++zzyL0kBA5LvB6cw6PPUP5uQim14fi9V6gEAaqkZAIgKDSpnvTgBUJWoES462TBbIN+6imAF0RW5ba07X9SQck="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588020522290_1588020558516_0.6011569411181024"},"_hasShrinkwrap":false},"0.15.0-next.1588022270323":{"name":"playwright","version":"0.15.0-next.1588022270323","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588022270323"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588022270323","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-43IS4q3aG0ahYSIJvqnc8N431l6Cm9wI/mmzZHekgmk7IS/wNjZe4oAPUhsc0H/0dVexW7xU7PxmZoPOzuyMew==","shasum":"dc7229c73be3ab1f0463765f7e00373d8e1dc36f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588022270323.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep0wkCRA9TVsSAnZWagAAT/EP/infEwiOO56EBVoPUbCL\n5hOSZkBl2yq/T6zt5xcsu+wBSVfh/D9NHPXeoflMRC1xtVuNfke7aVRorl8Y\ni5bpYEOIlJI1ylFe9QxPYKa4eBDilundt8F8ijhKOXSHV18Y0l5nrhkWcxpO\nQ1FvEtFSLEcPFov0b+zLwRnyltz/8kF5jLBYfhSGWJY4qdkEmIxTYHp+u4Va\nGXEyY/k724oY/2aIaFGRdcH0VdfqIC7yHdxpsnpa6mAmMUuTNKBqvB24jIak\n1tuPWDI6CllBb0FKsFxHXpdlDuOXkuo8KNs6rLnfSEkFS7Tf2bFrll5yU19N\nIQ1a0ox3nmqp/36pgMahlV6qgGz2zlHYJo+jFv+pDLCol8Wgmj8Mw3hl5OVG\nI6bIVi3Fk4Q59T741up3hzqy5EDV4t1ScSNYTyuaWytGYIm83nAx/HdewmKM\nOYx8eANGkDx77s0ui4Xk8jTBIVxKNfgztTkJrPO2NJ1HE4n5PH7iXfDOAnaL\nM4lVaCntX5xap2qEiw/dom0sGVeaw56sONeRe6dELQZXY8OoxL/URJ7iOSdn\ny00pJenlXdDVAKlOCanpI628jQr9+XUrhOaUDDBiZhQv/UhA2irAsKPsbPme\npnMZhCi0GOBoSnhS2I8YWgA9l7n+AfHeTUT0zyUpRZ4v3PwofFvlhrJ8B1cK\n035X\r\n=sd9R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6bvWBxSF5ZxuDVIr3shxyRxdY4k38AWScom2ZbhiLGAiEAomYi5kV5iGrM+zBOZdA6wKKzcc3P8DfAlOK5QjbUt/Y="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588022270323_1588022307736_0.36647035917441584"},"_hasShrinkwrap":false},"0.15.0-next.1588027332426":{"name":"playwright","version":"0.15.0-next.1588027332426","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588027332426"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588027332426","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eygyIzTbOpIK+55+SumBv1xxXo8vCdWNK6JoZCJT5jpw00xddvG0/Pm2HbSH+UQFP7oqK2TqLfpR+n04B/WCSg==","shasum":"4b4862b63ba3ebc94816911c7516a709e5a2e334","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588027332426.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep1/qCRA9TVsSAnZWagAAjrQQAJg5Zg5xr/39mUqPa1eB\ns/jpbacQOuacdCWHj+dKjmyYlgZ8Zf9eynzcPoVPyx46Z0SlrXaZhX6HY03S\n6uAhXOzLF6b86orF1ewDk0IezBpyquRSrKn/D2kjfG1vRhPfTgrhRiAWs3iv\njJLoDyrkJ064J9hGus0PGQOeoJ5R7rUjuMEaWlwPTgNqb/Jl8xEUTtYGZSXr\neKvpGJ5EeInRmwzOUPwMaQr96v7fzF9UwevVchss5dh6nRETmaU7QOHOKHJ0\n0pcxEm2tRnDNKcdN+HGcVFJ/ZNhUdj9/Qe9j7IoEGmbUnRXtWghUsp2o2s7P\nwYI4hpDdDdRObknYVI+d5DRgGuyCu8G58gbo005t3p/FUIgaTVuAbT6xw2es\neM1u/xFWpCdVJepOr9N5aVburLqYsriz9TowpQ6EHERoiCpzpMS6ExxJCM71\n7B51Pu2AKIg/dBXMjNtbyni9VAjyp8IoTnE33IKFJ6oyM/R2ZThYPdtm2NN0\nnTOc6Y46l8AGTcOU7v9C+2U+r998/29HGY1ztJlLyYJ5KEpBXAPLkLeEHvxz\ndTBsVaVNlWSAWk4qF5thsQ6kC958sx7S7Lh2WnRzdbf9dLOfWmnl8BHlXcZI\nOZsJplZz97ArerjfgAs+6FaNnwJEBxKLDe4D7V7Xf4J1+wPtmh7baG81nj2P\n+F48\r\n=YETF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+MtqwXjCQeaGu4Hrn0aSlqLafSad4LIXeKOFG+eLE1QIhAKpDKVxgCedGpK4peh6tkTOkhXkVe7pc7kQDu3BP+OBo"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588027332426_1588027370161_0.5903243379322134"},"_hasShrinkwrap":false},"0.15.0-next.1588033111052":{"name":"playwright","version":"0.15.0-next.1588033111052","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588033111052"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588033111052","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LT76b28lf3vl9O8pXvodxZR0O94OnmnPCwunOM/Z3YEONkgPwxhHzYK5PShVblv+IGdwag85bVYSwfnghUEh0Q==","shasum":"f80e61b368c74adf23d5ffa995f68d7ea42a1ab8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588033111052.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep3aBCRA9TVsSAnZWagAAYxEP/372dML+kxD6/lTNnUsD\nxvLU6gc46xpZHKxGt8jxCXULhQv2cbqOZ6AN9qG4P5S8MDSHMmD8+1rGXez6\neGRCcGNS25alMzNMsPllw/0WZE4KfpB6nXDmUqGhcu+jxq8ppl77Uo4+C22G\nPxTeq9sLrFtiN6y1RTZSrRNbcv140tKj43AW7RFAAS1wYnVApu9uJTY5qN11\nAo0S/4IGWe1IE+gbvmRh9P76RnC75zAdfld39cOFyRxWMljbqIsAp/2mILAb\nR2REz86mlY7hwndPZGTGeqTbWuaP4BiLeAkm92li6FTtKydgUbb/zQwrQVwQ\niBhfK+qmeZOk7bDaue1bd4CZGiKBnihUAjU5SWkYFZMg6SKmM885tAkTUgFG\nBmL4ZzHfQHnSd02RgFgyDR+wwcyYfC+oh/4zWmsBvURukXF0VJFwOxs+o+t+\nLpcfv0fjLzil8NXcPEArYCWSZnpBmObDcyCrO5gmoUr0j/NeGYwJp6Ge2U/k\na2fx6u68eIJuc9vsjIcwnr9dJ+pQuxB0I5UcWr/HtKM8TqI4TwRPpS6bI1sn\ntcFq9fHcuf/F4JJAILMWkfQrPYypEcKuC8/EJVMuYjmLa6pQXQPE0pDHbxYn\nTWuVreFYFIGj1MTNS8g7ec0jGCFA4O3e6sg3VrIPT1EokXzEqG7R6HFa8OqS\nIkD5\r\n=alqE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJ8wV9C0aB0Bzu2MG+vTW4EfnmWJls7OCDqJf+VAUBhAiEAlfp8nGehmWq3K4IOYQQU0zbyKdgE5FFoY3tMbO6TSz0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588033111052_1588033153481_0.9217465943605794"},"_hasShrinkwrap":false},"0.15.0-next.1588042306471":{"name":"playwright","version":"0.15.0-next.1588042306471","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588042306471"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588042306471","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Kk1BZF7LJ81ZiyzFvbjTbSsE5O+DplFNc32B/XloEL1qcFGEvSrCSEGAtaQr22GuE+AAeR6zHiaL2NKlMe8rKA==","shasum":"bb84aafddf95f4d25c32ff35a0eb5b21058bc078","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588042306471.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep5pqCRA9TVsSAnZWagAArzEP/iADRQZ2clbb/83gWzUU\n0B7xWIvlokAdOE/lwdMSFOg2F1KnQatTlRAC7vLHgSM2cz1KC3Ltc2y3gYXT\nW7bHhdwt6/knQECp6XGvwKSpaPh/W0RsltZYQmN5iFvkut4Z4dER2/ftMM/o\njgdrWemXxgH3GidRfZMCNS56vAtOeCx7/fK11ON/i+FX9gvK5TJK9bC/Ppyc\naZwSrJ+ZsBOQLgu3Bz9xYOU9XZbrQdNZeewOX1Vy8ZuVADg/ee+xKQ5gNyZo\nbSuNKgRZN0o378+9Nubwnw7OJy5GkbMqvKrqCRcM1EpHLWX2Rh/JvUT70QQB\nKOll7NEVnS+WbIuMswSflC3Uy9giz213pJOECane1hERPIp670CFuXGcoDk2\nV8M19zgWPCQA6g90zDfLX8xcmZSCM9h7spzDj7u67P6vERr3qP9ETGj/S+O3\na83SUe3oZ6uEnXNh8jMoqr2gixGUIOHs75BvC84WtjHD1ymsF8nX7nHlqDdZ\nmvqjXZt+t4ga0VRp44iMV7ZMxIOFv/4Ug6bP+jvoWuj1DDblxc1kUMfMO+KQ\nZeWDCHBCAoED+FvPTszl4YJYb1RobOPi7vTEH0RfnxEU3IP0m2a0XvdnUzs8\nZDaV+R5pwK02QtK674h7QzsaMTqBn/Kph/ZnlNd4CilDAl3bH4SQIwDmuXdy\ngIHo\r\n=0XDk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4QLy/W+N9PRMHYb053wO5v/RK2JFhzl9R21pjGpz8cAiANEsSDg6E7L0fwmIRjQDei8X/pOZ6rHFMR2EsAApXTVA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588042306471_1588042346228_0.12202290503698787"},"_hasShrinkwrap":false},"0.15.0-next.1588044304621":{"name":"playwright","version":"0.15.0-next.1588044304621","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588044304621"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4125.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4125.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588044304621","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3YoFsjxO5HFsETvOl2WsfLtXMEwURwXGhgVFQ7/a8YTbWIWWnhLSeeIcHuQaC1LV7D68lPtz7O2uCIPvMwY6fQ==","shasum":"6d55dfe0b1c3d886c91d2fdcf6a4881b9b614130","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588044304621.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep6I4CRA9TVsSAnZWagAALxsP/jjYN/ZmaLIUhd521FAr\naev4POHuXTM/WJMbgh1ch4UrlFm2qttU9XPMZQzCoOmDXCmwCSpvvamlKFt9\nrOVy3CgaM7zz9ZvWKOS0ZBh6GYhNM0cZ2SqASgc/2THlnc9SksW4/DOhmWqt\n+omwa8MxYFu1K41z7dCjnUpFsLSX2Rc4XebyCMk93qAhc5O2cifCqkIXYqbK\nYgujkBx9+0FsY8CAuRY0w3/H2sfgEX1YIf/Ntw5dVgj8h2BE41h0uR3tvKiG\nhBG9JRZSW/o3+MmhaCdg0t/Alcw8TWvCgtXnfeXqhEXOkHU3aHADLUbb4NIU\n0cCsl2t6qAKYQR2SI8Fc1fdYO0F5h75/KdxkbQL5khjXqix/TMvdgoVjK8Gs\nxCVkNVpD8rvLnLziDL6nmUfXe1QTES+yzgTYO9shkDFwj347vcQdBFjfHDCE\n26IHyfdFBxhyggY6h/uL5u6uubKp+8VKrswlE4UiMvOfrK/zUdrxeXms8wKP\n3lG16TFuWcwJ7jswEGKsWBZ44aLr0IxLB6I5SlrhFTEiNC8ZgqCG0gqt+aQc\nWgwstkpWP7NYLqswRecRxU71y/wWm7kXG0F/nXB2xWLv8FJUblqQ6GPUfqS1\nPcVBk7kuJn+MNrv/FAWnQSWq3nu5LOnDXGhuX8EmbO3WCpxX4d6rSp3N635U\n2JaS\r\n=Hti9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG19gzhdO2K+2DTfKn79VNQh+ycB1FKSRUbgevbAGruAIhAMRRBXZ7+QsT/Fv9eug0zQwOfE4xz/PIeeRJNBEni71v"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588044304621_1588044344056_0.8127211085919384"},"_hasShrinkwrap":false},"0.15.0-next.1588053884289":{"name":"playwright","version":"0.15.0-next.1588053884289","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588053884289"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4122.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588053884289","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PtZVPUwKuaUkms7+F8FCsp0pWOaAGPyMhHp9IZwNzQSsM3mzPQANKWLGJ+7erg+f9i+c5JnQHLM2bDp/v+mvoA==","shasum":"e0896c8c9790654822818f7b06cc58190aed1862","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588053884289.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJep8enCRA9TVsSAnZWagAAPjEQAJEBbBKpaOSv4/xvJ6M3\n/LdWBx+SLPDdNc1GigzbZpcw7vUXr70C2bobe+kRhvjaBUFJE4XGwq5KWuVZ\nTwqBYeikrz+Ofdcr+StMve9skaa9ebvfGKrBhU/ON3wxf8Go7LODFvrEoTuf\ni9xDV2kNapkQnbNbKMAxSMh5Spo2ugYq5DdS+zepYaiR9OYBHN9TbHag2PHW\n3lygPm7y2I+VgBuEfS/LA4GpAdGKfrZnTQEfJtbSn/AS4CLj/lv0/A0G0Ao1\nYrKgDds8cSZNoUFtyntCXFKNf4bs8LqRqNxZ7bklIHeBoVmGq4CbyIO8f7w+\nqKGQFVBA+5n+dJQdgg91BVKoUYz1C6j66M+6SSVR0z+qx2raij5Z+7deqm14\n3WwTQfbH3rKoYvykfKV03967OoZqFuL81d2VgEh+1HYrIH+KcoIrrEHnzdyv\niBsxm8uY8nKd1PrUnZNs5xR9jxE4Lva1npviy4nvSDJ5BFmbEy9f1Gtv2vfs\ngoadi7TvYcenVggHxt3NjI7JNnYAamMPYSUu9S13seWvdLHNHs/lCvOXjw/i\nq7pZG8W8cOqXIhVLaeJs87Sjjtsjfgje5Rp3z3dJgyuMhavpBD/KhIkKwmxu\nH+wWy1I6fl+J5ch19tTgb/zJJdZc0Xbrsp5n/5UshoIJZWss+lHyO+nkfgHJ\nxqZP\r\n=wK2o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2GjfaleEAZtG+8iQMPnUqN1xHfCXWnoZSXCVidUEBwQIgWZmlCBLGFAuqCZCMZi7ZuuHdm9Vku8FiJIYkTxAGp6M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588053884289_1588053927383_0.6980325552416884"},"_hasShrinkwrap":false},"0.15.0-next.1588092658047":{"name":"playwright","version":"0.15.0-next.1588092658047","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588092658047"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4122.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588092658047","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Ja0D98Pd+QW3mEfj+gx/mB+Sup8bfky+yRXJPV9Eh115vSJ3ARE3gtp6m60yyLdpPfndoeJXxxJ3UgxGtBf6Lg==","shasum":"d52a7e7b09e93a1d59fd98952cd5b8a7665d2a82","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588092658047.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqF8ZCRA9TVsSAnZWagAA7ZsP/RU7Bs4dUihbCWYB0Ld0\nTCoir8VrtEcrWzbqsBFehHNkncYHiP+tqjnPv+KexkF6ktrXviRchYxum7Kk\nQgYS9+0ZV4SJb5pvPH1QXp0b/O/uniz72h/6aW/9LsJ/HuYDSaJlq12NkpQO\nwxJ7rZrEDYCaq1U1ZwIB1ZkOGRDscy0e/jHpDLjAI98ZByTyBVRv30aSzP7w\nfQk72pe0MTYRBpJozjZLDS60fmV7+FJlqVodVoNDTVO7NyzYU+MO6rBzpHKy\n/NocUB5Nl9bfJVPQcoa06HAogQlYSwcQE9rdGH1GHJlRQGel1oE6eLHuMRDf\nYEQlxFKRYhd/UC1r9tA3ZkK441VSW03ptPCcjak1cjlgPY4iuQ1IZYCtM8pG\nhf0lcPEW1eQjOrkvTuquymnKIy4/DlbHfI/jNS4E/v3EfYA/cTvhN2RLa6sQ\n2XvCc62jvBdvODKBMRqJdcifLygi+HeUhIgBbv1lcpmvoa7N57Y0cWa9tndB\nMVWN3Ee0j7z3hg66F33qkQ+wa9kDEmVzLTSiRCbqBqsJHPH+LjmAfWNSG6vV\nskp0GrECULQj3/N2tbwkuc4vAzYaRiIx4C3xhqT3IALDiEzR+t6+CYmzMw4f\nG0tKKOE0FXh/KoW/1Vmp4eFlklBOJqYiYm6bd3qEFc8z1bxr4R1wLHvAanVr\nHzD6\r\n=V2GG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC1V5N0hSpJdXl4iZNeLTApgkl/A3rPkXcQTVq6txGGFAiEA/qSnDotr6XJcJKhHsrynn18RSrzo6kITBAevn0t3nXg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588092658047_1588092696990_0.6359264593854665"},"_hasShrinkwrap":false},"0.15.0-next.1588094335186":{"name":"playwright","version":"0.15.0-next.1588094335186","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588094335186"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4122.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588094335186","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Ec/WsF3s93AFhwwZ/JUzwJiQwIrSc+KVWKNxHySPDn/W2/CyNsVqXmT6OlRhYDrQWXn6gTFeg0AnBLTLS4fNLA==","shasum":"5219640c5ccce7350410a8504812fdbe2fc7009e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588094335186.tgz","fileCount":5,"unpackedSize":8712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqGWpCRA9TVsSAnZWagAASxAQAJVRbamFAVZJnZzuTK+E\nBZQOUGNjW4p3W1rvTdwrye664pSrEmZjCGu6vHh2kyb7UuMBlZuLSOKlWGpe\na6yijP5Hu/bzs4VGio0iJn7Rd3y7oGdc5u4PqXvFf4oUmLeQPZ85lCX+VA51\nPUqXzPXEOm4PXgsZAyG1Pj+HKWAAlRfxBkPjNx5EgJ2Uk7lzc1vn9Yvr/vPt\nDDMvie8ctqXt4wHMMLXUGYfL58pKny8DWvqq3RKVY+8wglrtiFV/+cxRi/EB\nt3dtLIIdpOj8ZSpooyE1AlcLC8CHA7QECED2Erc/nX8qSPHFl3Eu8/hVflGT\nI5/cogXm4yuNfu/DCUdIeEkuJgQORUisdlpW68EBx9eV1razZqlwVpA3ODJ2\nSDEHfosF4nMI+NK5Z27lL2kRGzddX190W4AofAIKXWRUWCu/KdiLmV/zRvT6\nio6JyXUzt9xryt1kJy2jyxsNGDrpFXjKO2n3CoMAqXpoxcBhKvBFdS1AXwER\nHxrKNJFGB/vPvALbM9zc1pFKj2J2r8P2JsKafX5McpJZgMoIlJE0SkqiHPm6\nEB5gL2Hcw6I2XNzcd73FKVj0GGfCOddXs4QD2ep+SZOBBo4p56DAkL0NgKFN\nVJSTqyr8NEEjN+kGyHd5TZgJTOxo3K8YIg816V0z49urdaiv70oi/b4dxvdn\n4Sc8\r\n=gSnQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBuUB2l+8uU/LgibN5yksHImIpdpKkVY0oNwR3elsAsfAiEA6KdEY7PiVT9PqIdBveC5PtOtpBWzUYcCl9cE9KOTWzI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588094335186_1588094376896_0.2698717120085987"},"_hasShrinkwrap":false},"0.15.0-next.1588095543898":{"name":"playwright","version":"0.15.0-next.1588095543898","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588095543898"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4122.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588095543898","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tMaREQPLXVU69HJ9u0Ayoj6xPQ2Up963jjkHlUDCxgwU6ofEwdVhecrxllrCZ7ooBRBi520j5ZvHfFIz5trCWA==","shasum":"4bce4cf299b460fd9844b70b960c6e0759a166e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588095543898.tgz","fileCount":6,"unpackedSize":8447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqGpjCRA9TVsSAnZWagAAmMkQAIw+NtDllCaMktjXBcIy\nnixURMopWDhVLy+/gQF3CFXwFjxObNbpG7f5Jz66A/XPXqLPAaekDcBmstBt\nLPd5CuxeENlj5Az6ljybg36R+xc9LKRn19XIquYG/ztoExaAd/P31e9FVIc9\nKNrEOrNVNXhScNXZCLOex45p7nbr4HIK37e2VhA4uovvCzS54FQirNfLKWa3\n2RwbHHx1oc1sf+wTAWk/bMPiedAheCRGYoKxAu3EEo7bWZigIWMRlYickOcN\nJDB8tMfkAyHJdErwafuLQYZYZuGEFGrDsXZEGQNhR8hWD55sEyZR0kROV8fg\nUmzUPdgNBPkswhq8ZpoF4QLNLOh7bdw3jUEbRR6ZaYgy6jHHek6h+m8CED2P\n6IkD58yERxc36+2GmiJjPVuZtigZv6aJonA/71oHQtlgwyBuI+jI1cXy8eSI\n5F9oWQIYVYq8hK/XTh5vK1YI6XLGdKB5MxPSVK5IfAxJFByAD67dSyutR7r+\nshjM/Gl0YwNs1CvQrADd5yY1E1qk6iFVj3iCwc/XXSyQDJ3b2/5AJGkxka4S\nvj+sq4JmhQa5R1PwdDHyBbhVCdxSD2ChBZvUAgfBNTvtRSRaQkWpZIL5HoD9\nR2sTNGcFZnMuS+R6sICi7QCLnUTyOxBSZOA+d1YVvi8uyVFiFDTjynmcg9uU\nouK7\r\n=DF5o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpc4LZ88XuWg00zp1nFA92UThn/OdcOXPD0aS1a8wEtAIhAKNQZ4MEqMIcSKNdhVQ9P1/0mKO4cWh4Wdkirs6E5g3N"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588095543898_1588095586982_0.966297201570308"},"_hasShrinkwrap":false},"0.15.0-next.1588099416855":{"name":"playwright","version":"0.15.0-next.1588099416855","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588099416855"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4122.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588099416855","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-uArkIbgsT8oB9M2rv1u/+q++4LY0ouzS2hLoWELKfCH9uO02qkxvlM8MrZ3zmOXTQ4XQxfuNkNlQ1ZkHNUSQ7g==","shasum":"2b6d8bf88c83804b28c238322014410239ae1097","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588099416855.tgz","fileCount":6,"unpackedSize":8447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqHmCCRA9TVsSAnZWagAAkLEP/1qlF3Zc3gFVYMFol/Iv\n71lQAmvTORLzYLFk2DLb5ifrHKU87fRVpwCEKcNkYV972dqdB0T4p5db/Yqi\np/Ow2gKyjvsrS4Xs2ZsReL1nBKp0IkAc2jCntUbRJQnGnyA6KNAInePxz4zw\noci9zy8rG6pAhrpQumV3ocV1lxfN30O2qsHMFIWZ6sqfT1ZRYYXHIu+AZAir\n55BdvbQeY59ZzdELKYtpzT2dfplmgtjzKkBljsy6UymCb3l07KetvL2BT6qG\nVTQ+KvBhOJSthblbhOdN9gQAeUjYGCJICu+QundWwtRFX8q9AlISjB915pq8\nxbzdNCubwpEPDmyBB0GpDSnWI3Krm1PErWIdTsCJnebw2MOn/pZ3ob1n52js\nw9NyU9dA0mJDnlI6kSDo584Hruevsb7b2b4smYLIjaXucjL8Uv3rK6Xcu1N8\nFH91+4ANE9dDKSF8IxYFZOHUU3YOltZgrh6uw5bL+oQJo4JMpYeWPLe3QgNn\nRebf7uXCMDo3E7Zj8cbBZKRUIBgW9gDZrf8aQj46GbtxIy66377Ux4mng/Oy\nETOBZlKEfT/msvDKwrO3lDZOfaVPgZKVbHQ5kRFo8E3HYY3ZRGw/iG+4m26q\n9CVJ6T4jhTIhOv7zeIgCxiX1kv6o6gfNoPPjAP1jZpdDDE+4t+P1vqeD6qZh\nLMly\r\n=CEWP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDczQHuv2TO94YoWTmQ9at41UfW1mHRPbdk4AECpVtZ+QIhALUAaIH3R8mi425T6r7U+RBQAU428/x/joi3p2/J2zll"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588099416855_1588099458130_0.8187127160002021"},"_hasShrinkwrap":false},"0.15.0-next.1588100395363":{"name":"playwright","version":"0.15.0-next.1588100395363","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588100395363"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4122.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588100395363","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wQjj+GhEoohGR/JEFrBgqW3+SWcyKDXfC0ItX4Szf3LGfRC4Nxv3+OtrFGabmIkymGe/sijJmKqJw6Epquq7Yw==","shasum":"e5f72b2e66e0972c93fbd1a2b80873b6882711e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588100395363.tgz","fileCount":6,"unpackedSize":8447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqH1VCRA9TVsSAnZWagAASwsP/jZGT2MNTC7kQjEpmYY3\nN/2XKAMmrk9jLqr72VSJzZA5pldgAoolhW3DiSa1Mz1s1qMSXGiEzXIYn1Ho\nK6lNOMMyq8VrE8lmcfFs5qDw8CBlVZJAzeJ+Pqt0Lg5SBnQShQTm6dOtTVJl\ngmy1sjNINRIC2nkzzjRdfsGTSAhk4Fx1Vot2a3PDnqVMi3d6TjCgw499xfCU\nIazWW5rkwARmcPMjYSkw3S4Jwl44mml8JSrUMtbRck/j8gi6BfXoJBOOGn9T\n1KXXUmr90jfxgT+mlVfXTROGOTAfixj/NUjxdVLy2stcwkT15ONzvMYXyO8M\nYMoRVN6P+7OvGL8NpebIrvTPX8FNsYzNAOmNu8VEUCWNEVg749I1Gs8/x1W2\n+47rgtleHK5ux4IRGy7nc86CWqO+uh3RyiMd0ZXNPxTMcPGWY1OEyr1kbCHM\nzm8+Lr7mEfpUP4vyCanhcySXcVxYE24eOCz6W8YGmfgroLm2cc0surqaeqI8\n05XhJVCmlLKBJAtUmoknxsjwYRsfqXJLTTDeyX1bS81dgIxPqxlnUT9KSC1+\n8UFpzj8A6A1WIsCR3A1t8YslJVtGdpoYzf375d0QefPuPA4SjIgwnNndGKB9\nwmzTy3NNXRcwmaEMAoFUfgU66sgFMHfRqZHsMmis9KciAYOqJXsfYf5XavPB\n2mnA\r\n=iLMI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHlWXxSLFwejpwyG8DKE2jmTByaRKpgufNVMGa7+66GGAiEAlLG1VtPN0++Nd3d34sEZLp2x3NOnDk97R7FuKt1UR7U="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588100395363_1588100436620_0.7299029755042263"},"_hasShrinkwrap":false},"0.15.0-next.1588108923954":{"name":"playwright","version":"0.15.0-next.1588108923954","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588108923954"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4122.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588108923954","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0u2B4Jkt8oqx4rHMlOqXA8pjIXGMhRAyuJv+fEQ8psNs/nXwUvCtDdmYbgbqdswkQofnjMEt9N7j71fwlu6oqw==","shasum":"f6c431f9cae124615a8af99a811bb32108719155","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588108923954.tgz","fileCount":6,"unpackedSize":8447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqJ6fCRA9TVsSAnZWagAANbQQAKKkfKSi+NvYYnHHM38Y\ng6YDSENtZQkiowx8yHrjAXVws2nfhML+BQLXSTfzPzidKTvswf/rIBNGOrlk\nIujQk0JlKgz6Uuouujm2Y9tMHXHkOfHRR/XCtJtPcxCwuV2F6E99QXQqIMiC\nGWSDj0x6o6P7x5/NySPnvGuLG2D/z3IcpWjk1VcjRbl7PNVujDPbcFXcE19Y\nDOezEHjL4hhYQ9iSBd4z0IM7CDx9v43ic8ai89WxsAXAhllqKgR1vGbphrj5\nvnu6kY25L/1Zew+yXMu6iFuX/ILVeZUPTnXF/bH6SLqWt/j/u1FOdxajjOyT\nz64lLF7vmcIwsSYnfkUGAIFoj6b2BNTmytR8oD5ehZ2Z9NKQVx8awRuLt3gF\njvA1oxoAFlSBXbZHN8iFh33MuA9FrOQSZM4lF8cHObWXEPssgucEYOKSN6/A\noDM3V4a/moEgHZKAiv3wVXZ29jDXOsCbyZ6nv7Jncct8hQSjTynrt/AQ5IJN\nOgQ9fmuzF4k3zgwyW7IHg611gRLyHSkP34b5/5rvS88p54zJ/x3/EPQP1kst\nwWRvcfJTmsDbDXA5oFXMPNb3Y9dhibGozI6S2ZfUQd5cPUD01MWKMgh2DbBx\nymH7ABMXwH+duaqyW7xcAGZ48gHi8YN2ZbGHAtSA7DQSIcq5ZZ8/K+mBzRra\nbqb/\r\n=ukjb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSOWVNsm31KyxIfRQrFmUoK2Ql9uSH1IJcuzJ0epi5FwIgU7v4WpgQSnCFvdOqKkv2RuoRS/629rGecQqnjTCdAu0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588108923954_1588108958713_0.21622489816231294"},"_hasShrinkwrap":false},"0.15.0-next.1588118874017":{"name":"playwright","version":"0.15.0-next.1588118874017","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588118874017"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4122.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588118874017","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4aYxXI7NSwK4rV99uqmkrUwE2HLhDOJx3qnEJHf6ctHB3DxDsYFCpqBTs+ESyz+DInka2vbEAs6vQyJ3fENfGw==","shasum":"99e115690ecb8e6013fbd66d4a7568c1dee933bb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588118874017.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqMWACRA9TVsSAnZWagAA8AkP/2sJS+CquqWkjgCAJTwf\n1F5ATa3fZOAW8zEnyC8YnXCp87Ly2YddyxDD4gLO1LrefxhC5/WGy1NDmOlL\no/pW20O3Nx1S2yfSCka5RljXtN7HrPqnazFD7uj0aUqAyQnhsLsa43K/HGO1\n7B4SuMw8taDpDklSRKk6VIN31Gt/TP6AhxPeR2q6CpcjfzcB+Bk6Lzy197sw\n1drwsqh4zj7xKmW3NMVAkrog0W5gWIsSnJIw0cNFCV32Gz9cRqwN8LGg6AFK\n+91W5p3NGmmw00G6/i5rqRXHgnM27BTrpsCInIX5KGizHOR6qIkmWA8dtFOY\ngGuCTDKan8eGNGzSEI/zFbCOJ1BwI3Lnz1Vv7ks+mQ5hgWhJB7LsUqcpiaLi\nV8lPkadwaJMmO4Og2dUiJlDMUQ3YptyVPliGVYbQ78UgObhD8kC7JPhTcOIj\nFU+wcQQM9wr9wQ8lTcd1AX6OV2AxCstPhgTh/13gw/084hJV6QRAWocMEMpm\nyxht9uarPD1ojK+WUnaQc0jZvDcpffKC2I7tdjh43/tr93GkIWg+lp20f0Vb\nSTfZcwno8qYmscOh8wPCVNbQSfR5eOp8gmdSeRCyP7XCyu1PS6xWkniNev7l\n45D3kmgVaqWzQLJKHrdOtFrC4sTardkNaDlyoVHv/PVVx0CVvkMxwxgDsHJv\nDqSn\r\n=D7Le\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNRjU/TVP9D6Wd8P4LuKQGPxiaHffgck0XXtpUS1Sp7wIhAIQwMnp9HNDHTJLJR9Al+VeRGn14mGt8Wi3cEfJYNuhw"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588118874017_1588118912506_0.5193482419316413"},"_hasShrinkwrap":false},"0.15.0-next.1588175148093":{"name":"playwright","version":"0.15.0-next.1588175148093","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588175148093"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588175148093","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-53ed4lo2jEBOSil35tNOuNbCWS/hMSHOFtW9aN48t7NUtQGotZClrlbUI092j3Y1FE5d+A3l0Po4sA6GBRNEHg==","shasum":"1644e36cdebe4129a2869f3e401af0fe0ca29e02","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588175148093.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqaFZCRA9TVsSAnZWagAAihMP/Ap/YRZjaiyCQMwK8vxG\nuayAqeOp1PLSP/zoyw69Ulpldee1MXjOLEY65sHnilyOGnubebfI0qi28emq\nPUpDvFjLFEVPFwvOFp29TpDvvHDYkhPXeKl9dIdFuwrOPPUqdLcFXsXNJqIx\nYkTT6Hh3JXPn/YgMJ4rm+1gjreuu6sMVCOYsgRQsCsRshwUEHSncSmg5huA2\n9FLsdwCyphjsRFh/DzMOTo/IBSE8fRW6X7AlTiX/w0ypPvsa5deM66Q4a38x\nj8Ke/DWreBLrVg84x2Q4yVWH51lmH3xYnH3O4BBlnj6VTNFb2PHJ5CJD6CE9\nwCURQJXcPPnp+i3ZgSrLZdXikszaM64KXQHGqP/e6njTkk4mt5bXeY8Oq06V\nzp2FBMtkDqvtSyrxBs7/DTSlnBIbaSQ2lemKf/gwUD8yAW76F8gm4lcappCT\nGTGDssYFJukVvUsj56ze1RLTFEwrlImGw2b413lbhlO2LfqxkXrCAJEq9J3K\nrhyIhK9LkJpV7LBnWyfkTrfjtshpmis8jIhGJHO+DJA8KzZ+a5ioIIu/CNop\nB9sj0793AzGC8E7k8Va2fOV0nEwC9+ttZlEOyyOWJBp2VoY9KldEFoW1h59L\nATgwq6w1y/s0l5MyDXhFyM7OZSQfmR5ND4tJVLVayyexi3bVx9jo++lVioVs\nRBU1\r\n=BTXK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH9SO0MU67Ive/vqDMo0jBQhDz1Qaie1pmyUrswHw6vNAiAmzA7LzFlaySGFMYaB43NXPXNy3P6oNEdDcRXaaLPfNg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588175148093_1588175192677_0.10961857688446885"},"_hasShrinkwrap":false},"0.15.0-next.1588183659514":{"name":"playwright","version":"0.15.0-next.1588183659514","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588183659514"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588183659514","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TXLrV+FJ5kqMmZ5a4Ya9/iewC3KPtTnsJmnuoiqbB4NW7LIa83cxo0U9erU0yJcVTEK49RruHT6Xv+7qjItvJA==","shasum":"c3a4c42494790f97dbc71f3db97106d56c86e3d7","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588183659514.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqcKSCRA9TVsSAnZWagAALIEP+wUf5TUn8DfrT6wZtOoi\n0lXDLsSZcW+PWy2SAgA1IDEj+p3ATeDwXBza5Trdgh9adl2x1AdX9JceXBNo\nSgcCMwTAzpk0T8AiX3w6O2XZzD+0rxVsIV24dHft5Ms+f8n46a0r9DrRXtlB\n7mazcFpisVURApD7e3srsnv1sZKvC19RK3hUXJ6cHzhfJIXO03wF7Jw8HKMN\nUt/p6oYaCtdEkWs0fxR4yfRI3m6nfSSFW2LW9zxg8GCX5L1+iP2m+EwNMUp8\n9U/qWId6sPqCsvc0BZL4Vs9r0WD+ES+3fd0KHE33vVZuBW+gM9yJFYFMAj8W\nnXLRX2AuafCCVlm3rhGq2CMxXvYQZLYVoSE9xwl8BtQXBelgsiUm+gP/Qkua\nBARN2n2R+HPM9ByU1EwEWlGZNKzqd7c1QNO0GBZPU9Eanh4Wx+3e7Pe9PcnZ\n0CblhXWMyF3o+VVi6BiIoLgItLJEggy4sE6M5lBR1ruUrVaYwDeNq8yn0l6Y\nxL+oEFbogUPsnj4SlGzs+rIOhZm4izEmgsPLgDtyLg2e5Krr0sqHkLxuWVsq\nmeFzqu4ErUYpLmPGQR/GNBKSKpBoIo9FlVt0s0OFXm6lxWi+1ilGrDR5g+f4\ndrHnXyzbck4FsCQKFSYAM2YpoTWCJ6ViosUBichvfV6SWiOuAfUBCNvH5DtG\nz6dj\r\n=Vu/H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICD1c1lh/23+WT7JzfAUeocw9NpJGWlVAJraOlMBvjqgAiEA4yOpoWYsk0jzCStYFbsrbjWp+JCBB6NSU9RO4W3qzM4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588183659514_1588183697745_0.4005429859990435"},"_hasShrinkwrap":false},"0.15.0-next.1588187766280":{"name":"playwright","version":"0.15.0-next.1588187766280","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588187766280"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588187766280","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-33Ks65lwW6kqz9Zfx5K/YLJE1WqIvGfiwLVSH9hFRlerelJfmYhtSslHMwVfENW2hAqzn1TPoT87i2BNhGeZaw==","shasum":"3cb475e2b2d06ab2002dd783b7a94a3f67f0efef","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588187766280.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqdKiCRA9TVsSAnZWagAAHgUP/2yZce5QOetUbgXL26QF\nTFkT65gq1sGRdietKutD3spfqT2Ti5tGyD3i18F3sWUsf0LFwp23rHupfS7P\nFIy5FgbxQbVK3QHcmn5N09oaVcOjlXabcgXRLx6fIbxBdFVt9hR4ZG/eZs70\n8nb3tL47QK8eNNsraPO9xumeVP0krgW7+WH/YV0BvZjKY5YccdxO3ApSwSvs\nDPyZLmjInKTmBG/4T/Nbvvhv6jgesbRJ3X0+J1Xe9twwigv33DrJMJ5trwj3\nOZfRGZ4bN6cUWXkSnoAWXvWx8FcXcdH+xy5jhRV4kaVMRqiC05/RvEHC0Tjl\n0QFjNEeDLFGlJJolRnfpBdaE/TeBzQ7TW9cWq2sSPzCTpdIp79ntseUEDexW\nLojOpN5pdpTMyxcx3DAsyrXvNVQOYoqmgHqzOaZ7gF+JYA59iMqBBdRR275P\nSTfsLcMuipOs75VZXZRTIAGhXYnkWzvSc42FTMtJEnvIpS0ZLM3qUI2UXe8M\n0MLfqflKfi4pJ5stxIKz6cCHImPQz7FAipyYiyCyBuhymNxq556Npmv1vLP5\nFqk9Jc69iVVJLrDfrn4rSNr6tRJ20DEBxQSn9F2f0sF/o/4zyR+VLxsZaRRv\niyxPnH4IoKztgy51Vz7C+LtQ35ef6Ny8uS47EBb+LUhVlz2KtunFZCH7A0lo\nzJnU\r\n=IyeP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzE0T5DjWbQNQ07fGA2Wp+4JhKM9IDM7IW7ivodtNU3AiBQofYrZY4HMPLHXtF70KMGIxw4rkSO2aoPEROsMD3x2A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588187766280_1588187809492_0.9030378472118905"},"_hasShrinkwrap":false},"0.15.0-next.1588195174892":{"name":"playwright","version":"0.15.0-next.1588195174892","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588195174892"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588195174892","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ieRdilFLI8sZneUr4w/6dNAWh+B+FeeA/6FvfR9r4PxDzZShXST17ZNgPyzp9pzDvq9XLlyoKiHrHiBnD1/pHw==","shasum":"b3559a0909dadba321a9e4947c66c61ed8ee79c1","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588195174892.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqe+RCRA9TVsSAnZWagAASZAP/1F8BvZeb/B2YQrJQ5+M\noS185HcSWUxngP385nCmysHQdudr4//hss6RXHv/hoph9ReMtBosnIRN0wIw\nInQfadDPFmPltPYbYx5V6ISTTpABuuzgywZEUCttN/QrDBxVxSs2M3zvgWMf\nhFPnvgO40k9rSqyg8R2t43Qi6jDYxYJM5RNMKkA+/nUvbue+7YAGlmYMmjeY\nL6oCbvEnwno3BfZniiLK563YeUglUcGGm5Vy1KSfzK51rhm0rHATFNMN8YeI\nAwM1TDEqRpKC6uvIfqw+Au8KedCIelhKaYskwrY2jrbv7zuSlMB5tQ0CmlCS\nOw6BWiqNdylgzGC8Ey2ZWPaiy95nSdiH8uPh1XUWj+Q8tSz9r32kB0lHCYCg\nbUytCnK3EWCRU7VYWdTgW/R4NGDWJBaej3lynphc4MaZPjG7WwSkM5Szl6BJ\nm7rN46F3SG5KK4Ihl1mS5ROeGTJL+btAp8wciNMNsSMvUh9ve3qOxxMlQCut\nNQr+8+vHEW+q90ErImnXKAG4dyjfMm0N20iVwO1sAXYGc5Iys+pASMn996i6\nFuBe6z1X52E8iHFc6kfQUVmKLmSZCFEyfv49/iImmFCRlJsJN9rAf/FuxqTE\n5YfYylRTr/PM/uOQ5h7rF8i2m4/l86iMmdJJ0wwKe3Oof+a/MEtwwYQmjenX\nD4Fb\r\n=A9vI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRxqhPaOs0G+7JKt5FumCwl9iX5yWwSoRhidTSsmYSxgIgS7eNKXGvpEsif+vkosM3gAeupOU7nnFV2PgohXgMn5o="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588195174892_1588195216799_0.8463256304342959"},"_hasShrinkwrap":false},"0.15.0-next.1588197267809":{"name":"playwright","version":"0.15.0-next.1588197267809","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588197267809"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588197267809","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-23rANXTD6dB+63FX9WXRkpE45m+efEnP22V5nHomtlF12lXfMNWT4+rBWd73OdRHGgN3ZYQGSJIfTbn7kaIwYw==","shasum":"d1f839f8fe7470872dcb9cd2fd06ecf224b7508a","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588197267809.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqfe7CRA9TVsSAnZWagAAR+IP/RIxK2iJhu3OOVvbu5iq\n0rlZC18aADQkzI+zepbqMIf+ZLgkcYwAX93rr8+AiBACXJ3xXwWFKqMJXPXp\nfch1ZnmY+yBAA111idrOO62FqlwXNCA5rHhANaHUn6AXy838tizAScNvlxbl\nrmNfgVp8FR7OeTOGaQvsQS6zjMbeps0KfNhxGHZeDv0UEe7WtmrDlyBBVVG4\nfnFLhu26++xCQA+2nDdSdPPZadxMuMoT14SWiBETIDeKaCfylHWCovf2Rwmc\nUS8GwkA2Vxzg0If7RcqUABCRkh5G2MOPHjs3o7g4vkF5SmysdFTQ+EM50LaW\nTFIeYJx/tWizkhywiRM722vQKaCL1QV7JTkLC19j29fWbfvl4XwPsTxYq/Je\n5JnJB2JSdhIVxWsjb/JUtGSEBpuVOqFyarRJXNR391IemhAHFAF+U1zNT2My\nfYNaxdGXasZBWERMiT/QQgRX+ZG8zopnnrDEVrDfXPrOHZDUbliHj/uzbK4z\nusOmOAEUh2J2cOsla3eszTbGCyj8OUz1TSrB43Mmyfj/gFV5kPilfmp3Lhq9\nkbtovcP6YwVhQn1mAcI7V9si+ggCFM1IRXQHMxFpm1cDxEQYJ0nlFW6KrXmV\npWYPc0+h4h3ye5Du0ETzZP90bBzjqe7heardnX3LkvunIiFQmXS8QmtKHW1C\ndE/+\r\n=bvm5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0LMCRmfafeFdybxkbjS+3BQplSu9+xomttr/nT9oQWQIgNllPH+gwNpKbPXtcERQC44Zmo6TxGk7yuxbS2rUqwqY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588197267809_1588197307374_0.39431081507990373"},"_hasShrinkwrap":false},"0.15.0-next.1588198145026":{"name":"playwright","version":"0.15.0-next.1588198145026","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588198145026"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588198145026","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lVQO/SKc0rQX7gsqLo2IIy8i83qrOcNmRKvM3W8mvKpaa7XLxREQxPqG1aOqYVYVwjhrHKw8D7NxsMWP2RC7Jg==","shasum":"3a38af3d143af03da5e583bcb46ab9e19b1f5d2f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588198145026.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqfspCRA9TVsSAnZWagAAkgAP/RWrNKDzFE+0Bbn8t7jJ\nWdBdq9Qb8PdykUUBtRV3v3nZEOV2lJw5Dm11FmPE57+2AL3XFEjRnboZRppy\nnvP2JuR4s8F2xWSnDivOStEi/AzEtnnkgYRdYJCuS+QrFwiGnbGbIGtgiJOX\nkQvam2cWQFEc3FApWC7AJq2k2zzqUpUFtBV+iHozKSWFkmIx3Od100W2yKdA\nR4VCvsFULjcwZb79DIdW4Ro4S9W+7TYph3VYs+7VldC7p92q0eNZf19KQtxM\ngmOjViVmTeNn+mt/MnJbYDaInbptHkYJzwBrKmsfNpChEqdLOkP8XkQBZ/nh\nQYj6DujWwY7LFFzvY/9NKS2totPK9ktSpn5UMl/WiHffYFxNYQ+aBRVhf3iL\n6rZmHnM0peFoZ/zGtJeMH5eWpbaZn84KugFUeshoIGscBSzhSByvMbo2Tp20\nUymrChLWUJjA6mkxN1WnYQO6RcsRl47oH8LuPABKT+og2mRzCQoMWCgTEm+8\n1aOCbIGDyz9Yzh/IpucV/KX/pT1vnNFr78OhbfGmGDwqkAlAnErhYKR2De76\n7eKxOvBEcr3fhU8ymR65UE1iivE0KkfNSmU+RuJVtZzHU7px7AMEYrQfiX9i\niZSyAwREMzb2UfLIiF5llT5ekzsD9FBXpMmoc2F1arrzkHNRnA1hLpSaLLq2\nrKBh\r\n=bLfA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7lhLlgosNs+A0kG5AHkEnjaxMxeQXhX8nzn8fN06CtAiEA0fkEn236/R3bSr9P+OXnnYYOVUoe2W0bLM+b1Km+Umo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588198145026_1588198185355_0.4065237255177465"},"_hasShrinkwrap":false},"0.15.0-next.1588198923052":{"name":"playwright","version":"0.15.0-next.1588198923052","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588198923052"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588198923052","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-hObfOszzkH9fmpMBG9g0kvb7+eTBOFHW3lKRWqesy+lnMKz4nYybQpRurtKSksXQv2FqUvOb0ttwydq01Sp20w==","shasum":"c721ff4b97f006e7622a1c68eb1bd5f89217d3e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588198923052.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqf4zCRA9TVsSAnZWagAANIIP/1+kI2TgL5/JDPSBQU0Z\nca9EVi1/OEE4SXHs/wWZlGr1R8nf3suyQ2DK7uFwgCRstZl798HkgcI+JQnP\nQ77RiBbs6ZI4KL0BE4t3Rq0I04R3K4MBdjy9cp0VEd3TQwhSyfSCedu+DBMc\n8ctEwh0cVRa60bqVVDdJQFC3v7lekYJfPCvmhB4rZyXvki800EuhzTo5pMa5\nl0I9+mYZ1p0NdX3ZbkmHCZE8zI8yymGg8u2UDZ+YGKBKmu9BNfKdVxWz5RPk\nKk8a94yIjKU1SWAm1BDfypR2FnhEq+w0AIuVQMujJXH3/Ltj2Yw38CRlUIjj\nPFWvPnscYWtXDLTLbD/9U7Aa8FwNLlHWk8OLHKsUiqbkpu4e0fzTTO+JVVNe\n3qNbbfGX+WgyAps42oBPbogm0XFV2CD9jA0PRV7ir6ydy8VOUaX5euhzgIAU\nnVWz0zp2+Yaq3SnvTVojnYawkTYNtgeqcP8jYjEv5M8rl+DXJ3qqHn4XB0mz\n5g2N2hPhftfX75zPtcSfRrFX+nCQjtTRJXYCsj0KWIiWOnj2CwgnfIDSf7uc\nf5pEsGHEeELBJDpQpyyHep6B/fQjIzceFhqMHCOI0JZpVTa6ma0GArDaoiWa\nzOQEdOBHV1qhXeQ1fHkb73M6jnvh3f051J1EwNl1DEA5bxl8AhlryStEZRtb\n7WYE\r\n=lFKa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsIPPkzf9PsinUMo9IGbHEmxxPXASfhmjmiE9FOq0CRAiEAplH6kVn8XUp/hf+2dUbrnGt0YU37Qu4vY33/5LltYrw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588198923052_1588198962570_0.018092883388926673"},"_hasShrinkwrap":false},"0.15.0-next.1588199194384":{"name":"playwright","version":"0.15.0-next.1588199194384","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588199194384"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588199194384","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TFYY/8CPCGhk0D2/ZJ7AUY9QgTbhVvntM/tX/0HgufACjo53gKvkOSVsSVxDk68IQuUCSSzoQ5DN+DHoC3pVBA==","shasum":"e6c342752cb996785b50e6f9d8ce675c39a99329","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588199194384.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqf9CCRA9TVsSAnZWagAAfy8QAJxyJZfLNyGRtOkYDrJ5\nP/B7SzVOD1fmJgio3t1l9C0ldAarRyU+978TMWf5OmcoL9V/zF3q14xVa1nV\n9wMG2pVvg+Ocfbnv1HQn3nE4fzMLp4N2pkas2IrfriVk4L0Z0BUooeKcQxyr\nJLKuQlZC/5issFl2L/9Qul6N7WXqSe+a0IyMHKMbgrRQzjnRU2GbJp+LX7PK\nbBb/3OQuNmFgsAKaSDxsIYTz1+Zz1CZ5EU9XqZI2iTYQJXxq8E5RAHsGjuib\nxbJ1QKjsD8Xdp67qe5neIlJUKcbk57IbEL+hjlz/H5vMKMpHi6udf8VQO8pg\nzlnGPy1+P4m5IapR9Q297HC9UOV+w3UxMFUD1W8EQ+/M53eKGXsw6ycDviUT\nxFp+x94dIBniHE8oD/iUoxNAbF2W4FDJ4K2xrBqr2QvHf7lOwiLbjtGC2CV1\na0Mr5JNziYKazLIDQESQJLbXEvli7qZk7lx/1mcjmwSiTD6nlqczOmqMyLYn\n6XUpa1xMF+EkcQ/pKzum1zV/FfaL4tAZXHU1z60LcXl7ndIKxyxKdycLYoaX\nQflu3A0p4qFsj1F3/WRlP9dCKbqVcFf70531DZGjxdgOGvGLW8OlfJYW5ZSG\nYbXGyY3+WOL5eqVaVoByMJRFcWlS/xCVgNXxcA131Zn5+HPny4IaZsHhDOss\ns9mT\r\n=wtkc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHtEE+hHhJMOTIkE1HBqnqvFDnIv1fMcwR52zFCquQ2OAiEAlUjnYaF3tYFUm4AZNwpA+R7R+pQR7fCjXga4kRDBLCY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588199194384_1588199233899_0.9614562081860425"},"_hasShrinkwrap":false},"0.15.0-next.1588202691033":{"name":"playwright","version":"0.15.0-next.1588202691033","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588202691033"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588202691033","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bgrdj5c7C9XeinQbvYdDs8bfUuA7Rsvalwphwx7beoi1qZT/Pu7lAmi2T8TtRQJW/xuQ34VeZxfIIMdtu4FvSw==","shasum":"46cae4959aa4464a0e052e919993fe38be007433","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588202691033.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqgzoCRA9TVsSAnZWagAA86sP/RdNXobFDHXzVJMZ9mtB\nUcGyCQj7PXJtVnNC3U1Ep1bcmO/uwpswOlSbaOypAacp8JWeQTk1emkIjD/e\nnh74rGAclPGl82aYMG9NuvUbgKgJrcjpYYJtY8DpsjURR/qPdBv9nYxzukla\nFvPe58y0ruFO02FM7YLz+HcrFzpNuQMvFGAcCClL+U73fE0LTt+6dt4y9aHf\nL6ORtQQIUOcZ+939HRDGpDGAlg0ixoAh5hUtuVVe0G78BLoyT4IE0P8rK6UY\nReqJW4tksBHYjG0FNGv33Le8PVFNCgUPuvyh0ThbBM0nplyog373Hvl/gNLR\nOGcqvIJrTgmDl1NpyTErBEqQLUX1dxO/BY/wX3zh73yS6lYBw6HnSWk132Uz\nUQYot88ctSTI634q6u5T4szb/y43Vix8jPSTTxWhSW7CVwTtRq91gJm/uK2x\nDb7DtGPbUtlIGy7olD56aerYgQ9kMw4gSp4jJU82z8aXjoSaNOa4qFg30DNv\ntiOzXU6QjkYATznlOAJe7Lts2vksNaA9jNcNtbeIKZ9g2XImRHadFqr7SVOm\nsdJ3PIpkJqYGStDrkQvq3eMFwv/J12SegVGl/8ilzCWp4haGuO5IZMazKfjY\nOUqALScA17/j70o2B1CMyaf45mKdy4ZTi5740QKrNrGpolY6zZvlt2fkfQx/\nBYJu\r\n=A7Ub\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICaHN3zZZHXnVm2VNffslHZLn6FLa901RwfdnWh8QTyPAiEAi3vcnbATTkGR3JCXnRNWPpYEmTjRiEvCRNg+h/Go/Ec="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588202691033_1588202728142_0.8386477002861314"},"_hasShrinkwrap":false},"0.15.0-next.1588205345010":{"name":"playwright","version":"0.15.0-next.1588205345010","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588205345010"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588205345010","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oLDlGfn3WJfZBnqLcAFN0f1vgOtM3Wfi2g8K83nsDCMZdPMfXOHjNbA6QWHwYJ6ZdczfwxgMVwmE7xesSFVNzg==","shasum":"923f6b0b6470386414dd09d64e840b8578a03798","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588205345010.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqhdKCRA9TVsSAnZWagAAmDwP/1wqghEMI+hyOWs4g0Mu\nMM1Np+XxRw5yQYR0HgpbrJ9dFETLnuyvzWKpI07UO5iWXtgNoTYkNJFoJpJl\nfnJ4ecSyiBB8wnw16xAc7T0AXtearsDQAl+l/e215iEzgEmY+/gGrWM9WYoK\nRWmy9eLth6HvUptzzAZTvb+Xyus4DtMwKX2csDad9y0w18RNaIARTQCIG1ZL\n7Vq+GYRa3THPc+B0VlASkqG1ij5abYSNAYn5HQwV4f7LD5cHiJG4+u7QHGWx\nxjdytWBUhitB+3DAIKTTqwMkvOJpYFh2W4dy1P+iNvSSritbPd1SmsTDAPei\n8HtvDJI/4A+wqcQNKRJieddHSf1tyTkuPHr3RFjPEnzV+SxT+Hea3ARY/QLE\nAua+6R4dcoCQ+6yOJJoh1RfnZaLdeyoYjew88z4jAIyl6zP1ERSror7R31ap\nKq8ApKm1nf43p9MO+MWWWsZV5EwoB751v4BKIPh/V4TRV8UqTEO6kfcvOD1l\niPTjVZL10uXUAm1Y6yVddShqq9cHfILXwFPFzFh/aO+TBYfyYjTPG7OFuh4i\n7j/i/F4Xm1Zzam11svKrT3YKs3q5q7WmrZupdr6F+LGWywBaPgftK+chDP5j\nVFjPV0tvLN8Ui5quU8xj4AT3qhKamdpe/lid7NlQSecRT6KeQ1Oye8875v72\nR+oU\r\n=+ChL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/1RXKlKj7TY+rX2ScWalXAkV9swswgRhatnMtR++e3AIgDYQGGMNaS5qBD3qsk+BEGKV6BD88SIUK0vmgpbS7uN4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588205345010_1588205386539_0.2816513014988089"},"_hasShrinkwrap":false},"0.15.0-next.1588205542528":{"name":"playwright","version":"0.15.0-next.1588205542528","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588205542528"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588205542528","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vrOTwi5pv+JpHr3fQEiyjCR1j6f7uP4+bFlLJqbAG1rDie3a+SdckZ52IG+jscoPASnnfBKIHhNiDTQALah+cQ==","shasum":"e8e464a66224cb6d3b5c38d6e771cf9d9280b6f3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588205542528.tgz","fileCount":6,"unpackedSize":8470,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqhgPCRA9TVsSAnZWagAAhTcP/2aCakuUJ7WUOGNkkaMj\nkgWtsGx1762r3UeYVJJ8EyuICQelf7zHdF6hoK6+8hghaeZLMW3EQ3Z1IeTA\nbA5zGZCRuF3pgi4rnzSJ4B+EmWV/O2D5ppbDl8s4xr8FKR95G/3AeN3/azaW\n7gAeBp1WHpGw7WQL7Jj33vSUtN9/XxVF4Jt/8ZRQPlg88eoqqGLXZx689+CL\nuPjg0G0K1AsiBhOdNOY2yg1jINimBaoGCcfrteL9ahp0cHAdLXJ/jubjuYul\n+pqlqkR8XjUZbSBcqUYD4KQUhkosOoyyOWUKnAGuu7NqPThxFTxECXZPoA8d\nQRGxWUl90JA6iEhwL4mtQ0Nig6JZxxU5pqVVFpZAoZYBvtoGLBv/c6lneu6B\nsHbKHyhhQSGxzZCuj/9BR1NJM/G4p415CrvzBGdVTz1Rx6trX8yEtBA7NKG9\nBrC9SljogQEAr7EfqMSCR0/YfN18Chuhr5dCFuyh1AXIOU5ipAMwCvinBERc\nWf0HBCUaWAsIHP0LF4OkY6boFhdzBOCOBO+D4FpOylFinNJoWlwiJTNWIsLK\n97P3/DlUwZrYATs0XANmXEIutePvVzYZ9m/mpfyZvlBQY62P2T+WGI+OmzZq\n5c429jDEdW6biD6iT9dDpQ4wGk4OdHOljRLcdi2tiA8v91sW0BjEtFMXAQfY\nadfo\r\n=X2MD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBH7ryJPBCoevLeDUZeZfgZH9cdejQCZbGJOFsnOjzfwIhAKcqs0AdRLbuaS7MVMj9ZbUTT/iQ0nsVGjSW8b+XKER9"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588205542528_1588205582718_0.5349608118020348"},"_hasShrinkwrap":false},"0.15.0-next.1588206086205":{"name":"playwright","version":"0.15.0-next.1588206086205","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588206086205"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588206086205","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zepCUmzXmEmcLFu/ReqYyALobfZ8GLKpAcstmqjLpi2CvJ/zkqy6TdYv2i41jmllnv/k3JMYCmxjGTajNad+Rw==","shasum":"87032cb796c144c6683303251856b7c6799808dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588206086205.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqhowCRA9TVsSAnZWagAAYOMP/izdegR7U1REPAsQRDzE\nChavOqtnem3nA5hHT9E5/p/tg9Z0qx6bmx0/NUFv0v4KBZRxNReHPGGhYz9V\nMi6DEn6cOMD/dBtuQ1OHtihoTA6TNCNZvAYzf8/65PWcs/X8bKOi8o71ISnL\nm+mY44jE1Ydjd4hs4JKUQY9+nYXnRSyVANW9ajFSOvVOYiRDbCKqcI0AdH8y\nuZAvcqPqpwfpOjlZygl/vpw7FQJXtGnqrGv7z1G8X4l7pud512x8gmLx7ma6\nYL1j+ju+J3LkUuOYCs3OkL7x+TRhPnKDUxl9NtbVKIHbQ/oeM35GYEFFlbug\n4SZr1RqexgnPOEgSGEVfXBe4V40BErV1n3hlCmv7DDB3MDF/vhlXD+UT5kt/\nKZWY+lpeFGOqiYoTIDAOpDkRuOGXywJFL3E7LMT2l3jW0I9BdSIAtXJRABkz\nzwvmpQ+1XVX/nkC7UPqgPvhXVmPh0kUw2Z6GDtdI+PgCP7C2uQidiz9JC5n/\nOvsb7T/b8Muwz2P+a74/rz16cPXczZNrEiXXy0foVnZ/0nQPfUi1E/wWtd7Y\nv9mrXOBzEIgPbcS9aDRpNNcuAAOBLFLbxEXxyJkFrQsnyG9xg/KszI0M1nUy\nXsN8wai5Qtm3d4cVOM2kFHZ9cWsMYBCWZo/IaHzIxBrXBAEjVeXjIFqgVDr1\nz8rn\r\n=QCmU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM9A8T2PN+nwVXDVUb0UGoZYNHzVpBD3FmQ2AX8g/PGwIhALK7YAVCN5h6S6RiVAs1fu4G6ThWoIHlKC6PdGCDOuuS"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588206086205_1588206127939_0.66529408765614"},"_hasShrinkwrap":false},"0.15.0-next.1588210960446":{"name":"playwright","version":"0.15.0-next.1588210960446","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588210960446"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588210960446","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YGzmqRLl1WqO5vz2JBYAMvqCnRl11bPhQA+T8Afz8O4FQAOj/ITbQjihUW3zwAiH0tvxVQv/GKlNG6yUFR0YsQ==","shasum":"53952d0892ac17bdb76b3416936903b67bc07221","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588210960446.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqi06CRA9TVsSAnZWagAAXxYP/3aUvlKmxEpupDVZNd1H\nNMii5J5e5faYZ4axnfXOakkRoVrJrZJYmYXEEbYdZUccjGgrzvrMr2AoDrrJ\nOSiakSi0+Czg0TPraWjFFlKmYa7HNa9RrWUjuGopnjnhAqeAE+U+Ugcs4PwE\nZfrjrBBbN2FojU5Aq0kMwVswkDKbWAmrlNB/9hna0SDbpx/bJGS4Fq6XG/Xk\nTBG9iZ+6u3TN3SNRTN8f89q1wUGpOiB8890iUOUJ3neoXV8KALh16EJ4HUol\n669jWhpBq5OCilHxrWHqPhKT8yh2PC1xAzFYV6lYUqd8X1SYMC/URt44eWXI\nlLGdBAtYgikPm4AcjqbYaFT0o+FY8iFEgVLgrUBmXfyErMjQ9xDph2ashmMs\npSjGYGntabP2Zf+/CzhfzVx58ObsO8ktd4gLu8Xz58obTiFd+ScklIC0U8/E\nPaz7kIfe3WT+zAP0F/xmXk9AgZkUrxsoLfFy4dfUuXzvmFG6osPfdZZehtzV\nxfClh8gXGQ18PQurlEs1JNtNqHRbtDgaehrPyZqmreY486djndJOzF1WC3zi\njj5NoKMgfl/hhnElfcPzdzNrQkFO9HWHB0nDmbZiziJHbJpubIb6cSuU138i\n2ZgxQJO5XgPQJaHmcluTMQ3kn/Vs3ZRwanA+EF4FDMJc75J97NCLO46C5bw0\n/T9Q\r\n=mY5k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH4x02G06bl6NSezMFJ48afnz6gKmEK1HIZoR7PV/DyHAiAN5yBchj7SR17GxMYdY4bNi7P6Rms51cm+vPAkAxV4ZQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588210960446_1588211002448_0.8721887139894466"},"_hasShrinkwrap":false},"0.15.0-next.1588212060639":{"name":"playwright","version":"0.15.0-next.1588212060639","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588212060639"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588212060639","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OGq3zTkmorn7F5yyQ/ZcnBkr2qX6+49QEBrc3uLn2mSEsC/T+IJZao0x3eol2iPrSsslhu9LLpKCLLQGn7i3NA==","shasum":"6767e3cf7b7b2269a2911334cb25b80c07988674","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588212060639.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqjGECRA9TVsSAnZWagAAKMAP/ierPC56QLR0+rhhbHLH\n86p9+KbDMybDP6aPA4E15llHv20bxRCbHy4ZUhbFupIbBvOS3a/ob0BoyA6u\nQcu6RedTcKFS6ADBC/oGDIF/TfIeo3mhCLoRWEVhgaQJ9vE+x795ZwjR6OH5\nh8O+SZjKHtBH3cetqwCzVBMJgzlX1JUPacKj6GqyhFvgLhU0Oia7MooAOYKU\nZeyd//DPEpdUizdiXgRFC+CRwuvWUsGXOKqE7g2VMLRxRWvwt1a9Tyva1R5D\nUNs+rLvqTjq1CN0eRmnIvYiHhNh8AngtOO7oNtxe4MhORLSn33SROHW6t8n4\nWdhK/jD0OTEehU2znx2tNVhXTY7EuVMl4kb6WVnfJd1R5UFIWyKosF/ftQOz\nJjBAO5IObYm5mXplft+BWIULQ1ias9Uk6WS4gCLjRMBcJyCl0zYOxkIZU1Ks\nAXqAvkJfRqKMwA2gj5IO0a1UZmjCzDkNR/coPxDWi51dJKknd6Zz7Z3CNKus\nvfv4tZlP5z7R67uShVO/gSOdRhzNd5rzO5/aTXzwiI82s9jvKw5zaNnK/mXu\n9W9YyWFhr7rfhlLHsIi0Uq54n0s3XqIZpJz4VTGT4mCjvQkesmTwCwYX0ExY\nqIotGwuPUEGPFySzAw8l0XipgmSFCI00+zLPwD9WR5aPf6WEiKMlzHcUeCtX\nR6wd\r\n=IYVl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGJIj7VE4bvzlDEq5BR74WhMDkqIotG529O4YkZXZ+CJAiEA3jHAg7NeVad7wA2J30UOE+5MSNtONyak0UZr/zvsGgc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588212060639_1588212099658_0.8886888314463224"},"_hasShrinkwrap":false},"0.15.0-next.1588218538469":{"name":"playwright","version":"0.15.0-next.1588218538469","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588218538469"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588218538469","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-V/FWlsBcZpJkoUkNy/YmHJdQx5mndjVFPmz1/ykRIOd2MOy234N7ganlzuiMuKsxggdN36IXYkQ9jUUdH5cWZg==","shasum":"383fdff2a324fecbfe928bf25cd6513e70e22720","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588218538469.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqkrPCRA9TVsSAnZWagAAifMP/2CCdlkfqYlrZPMYXxKl\nmDpsVSKlB73g2nPArr3UNAZdLyLpCQ3iCP5aILX6vpZRRVaA+jfnf3I1Qzkx\nkrPKqkOU7BWjFHSWgh7BhGt4mXv+sULNOIDjDF8W7fYR2E/arjnwqkpDB/PB\n8ifvt5LmTr+YI9zf7ErvAWN30c4aHv41VusId8Dz4WnXDHu6/LZXr2rQ2mb1\ns4mal4lDppfI7Ai1Bp4vMDu/eSDsz10UM3mwnI0JBfRzI4TbN2oRwtqsaum2\nNi1CJFG4RMmXK0vLm4Oin/sOTE7/wpGAfOfM0Rh1lNScPycJnEum99Ocr2tv\nzOXaUzMNmzXMFCaHvf+76lS6r9qUQ09uLLCFzTCfqkHlNT9S9dCgkDWSArAS\nUd1G02qxaQNKjgWG9cyLu2jmd1RGEudPQjPU584SeEh/Dyxe6rUCw//S+ToY\nP8addH8mjISqsRwGYzC4KcsbEIo8ExqWWbf2yMEXehgnXc0RaG+bUto/iLxv\nW8/Wnkw0YCSpCxZdvYbVsUCJdQuLrvG9wsFYbywkISyVS6TkSc1XkFUMnr9Z\nkZuIAqoepo0bwRcp6zKo7WSc97aYbwclmWmONAVBB8ESxbePkcvmgkKYe8t4\nLGVJrviRab+1vZRUhCQ9/Ssbt5BKyFQU4yOPq3Q32mZGzYlbRsuJVBdUQ5Yu\nkPM7\r\n=r74v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGInDxp4nZunYHixj166mHbbtrlxY7J7CjM5orGBUY2zAiBXijDK8ufdBysxWJ49YcgbrbeBd0SOg7FuXLDUD8Q60w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588218538469_1588218575424_0.09118746961231183"},"_hasShrinkwrap":false},"0.15.0-next.1588221354843":{"name":"playwright","version":"0.15.0-next.1588221354843","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588221354843"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588221354843","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-u/KlbfFeA+XKu+aPMSxc3OsVPehNOy2SEwtCjYleVvpJ7uMo86GJiG2x+1F1VJoCO/ATvxh2+Wn4zgxpLp7ItA==","shasum":"7c4ae153617b99d6d32d70937bbf0908b545774e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588221354843.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqlXUCRA9TVsSAnZWagAAXr0P/jdvtq+K1vzpqtl0jTl8\nq9odLry6qLOpK9dapnmrpwEzXTXLCRP1TB/EdvfycSbqhchfb+VXmy9i11eb\n71IqXjviK96kiNPrnt5iUhSrMvgtGO7Sj1V6J6U4X9njfxoW3Th9CKoCoFWg\nNprDAPnN0mJx3RCLfWXxTGZskUj1ly5pmjtiuo1rID5Ftp8lf44ajMGdfwO/\nWJ6EVEAN7OI5bTgv/PQ1DQvUV7QrqDnaX+Yr1RqOEHZNt8MK0MhTjS8QPbob\n1vFKEDCU8+PRPntf0quetbq+BdyoNW6knuCeuPfLAe3VeVYhdqDio/rzwTY5\nsf7kQv1irAcGtLFIAY7e8VvrRW4qgpmoF1SScmx1aavGz/kXY6KJt8QhQ3Q1\n5UTFV69k51hHowgHp3LZTU6G3D9Q5XByPCm3qhGhIiDrdo3IKXl/8gjCFU5Y\n5UE5paTK/TSegr9c1/bZ1npqUyLI+0yvGAfu6KTD7Pq+su4scUoPltg9wmAA\n9j1UVAzLeuejU03dq6ud3zaEYy6+ARB+hv5jgHO42IknlU92PyoU5XUUL87E\nslcZbH9GRn4OReS3hq72KxkNJpeTqQqTEXNV+6/4ZEHEYsH7e+vDrLaUvv2O\nBrms8GLhN3ALB/6KkSx6jHxUHXkzgnTbpqlRbRp/XF+5VMr23nTU6xeMd1r6\nqzZ3\r\n=cUs4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGfNm+uETOQT5QMcDwX2XqAQ0Bo3g3txlk2l1ENZ2MGPAiAamT2O+2pw/FzTBPPUUAIQOPjQpEtpYaOGiSvANG76Dw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588221354843_1588221396178_0.9182576232509423"},"_hasShrinkwrap":false},"0.15.0-next.1588224163125":{"name":"playwright","version":"0.15.0-next.1588224163125","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588224163125"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588224163125","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pKB5fs/FLudSGhCZ9XNKU7fnY8J8H0qOSMFCo/wh62qF9AKVkSAqiWGY6iVJ06zn1XrTQv5gqaqWDYCgAzSsvg==","shasum":"0db1e48bce103bf27f05ea9fbf70c202dd53efdf","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588224163125.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqmDMCRA9TVsSAnZWagAA9OIP/jEPlzYtgg6mZ1F14ZsG\nkyGUvwJKIviTXgqNTWSbi0TGK5QObTLrXicaf5n+xoAi5tkCUGez+pqsnxKc\n7Au1jGomwenQxmCUe2W5kyoIDkXYQYP50LN+5ez54j89BAMG/aAUAWJK6E2f\n85t2B9tX5uZbGzkL0GoYtVmBzSZe41uD9piBcaKZkxMATZyOPPjuWsw7sIzb\nBM6LOjvgE5gdZC/FjlsR6wRcz3+TFyyiZMWh170LQWK4/iTVlEtq1w42udYx\nN8e800E2QtoCQNZWk5xHsVbKU7lcUxBwHF1LYO33WvNjfQzxq2sub2y6Ubvx\n4/2NWHNc5wywi4j7IRjFxRlZabW1TqsdQAJ+vJZumR7eOQuggK4tjJ5Q9t/D\nzoiGvqeoFAzk5qid3+3OggJP6lNFDZoku1orCfK3tpUAGwMWPGKZCmk53UiH\n8R1dPlRkGkFOd2OaDz0qEK6D+VEuyP/LVPm2Q3CJOwHMSzrPLkwFLRzi81zG\nM23CgP/BOC2/4WjLrRkZdIZcqu9qmIza6YaiNNoD9WmMMOkaAeFBbG84GTX8\n18Hi8CQmmDuYpkQ7jsdvOdApJhRwEwzJhGbYJhieZZCprVslWDenbXuuCsdE\nNi+O7OLsCGRA/31hYbCrP5Cx057X3FYYgfTq2XrZYnVtE2al7Yfc/Bx3dp1C\nme+M\r\n=tk+0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAPneos6lURa42R0KOBT5iu72C0Jh57/xMcZRUETFevVAiBqrk0abRmvw8+2SwBZA88cKiVHpl1A1ow3QUDUEy3YQA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588224163125_1588224204075_0.9356081593869126"},"_hasShrinkwrap":false},"0.15.0-next.1588271177939":{"name":"playwright","version":"0.15.0-next.1588271177939","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588271177939"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588271177939","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VyrTVeNHPAVxULq+JPW8XH3gZi/ovF2nZg+r+NSU8XQ/+Q7G30Is3jloG7qiOgdUEdRYk5XATRcRdKQEDD4i9w==","shasum":"20d7d4d207e23058f35c7fd5b4a7eb057a2d7283","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588271177939.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqxhzCRA9TVsSAnZWagAAsLAP/3F1gaq3deeEalnN2MJx\nS1PzT1FHomMBaSd+SaajixAHwEs1nFKvQ8BUKo3Ov+gWpRKPcQNAgp1Ntv1r\nRtXgpuQ2HE6pE8U7MLqZbp/20NvEG14ekpSUkHLEYOMNXa3Olj+w6QAHcMlY\nnIlsDa5N7RYkFNZQArUPDS1UaTB5vew4txX1otyZnz2utVHNecwoRK8uvikI\n6uiWDZ+3Nh3IIkN1a+hIfVHXxUeJBPJF8ur7tSQBPxYv5K3ZWStgwtKe1aAl\nnHp3J9pbA7InpjeWptPhFp/RFgTfz3Pk4ASget/Oia89fX9TBstdYl2hiXje\n0Tw7BZiU5WFQL1XGyHpFgYAmJEjhwz1mfoiS45nWT0GBOiGFGlhe27w8c644\n7W6oT9Metri3SJJ1mm6OOg1cK1alJLhadFEwIcL/VL0aM5Vu9xSdi3ILDrOX\nyrLLvbYN9UfCPAFl7WU0mAtwlZSbYWl/1E1uLe/DXrthD8JjfPHUYLYifGHo\n2JkYXb5mgghzRndOtCGnnHjQq7ATJk33BQxFT2hJdkrfFNAvCTMDXRIjiHki\nY9qGY5kTXSvtGDoTt1VSLCOnwmLoPmx6ZBcZXE2vi9Xd4ONeNKIkW+2Ipxdd\nnotT9MUjtsF37Tt/GAA3vWiAfg/tvHxLEH7cONIVE1fZMFPM0X14+iQqEqWj\nCwlx\r\n=f6n8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaRHU+h+RES2fjAJlgXMAlQ9m/o9GZkYBiPF843BWs3AiBAHTTcBAkQiWvrpuzMRfn6ZuzuY+CDAxRYVuihQ8dqXw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588271177939_1588271218609_0.399321611117911"},"_hasShrinkwrap":false},"0.15.0-next.1588275046306":{"name":"playwright","version":"0.15.0-next.1588275046306","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588275046306"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588275046306","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-FE1a+Kfa4aiIYch4qi/KzwfWTmoLd0ghsxHIAX9cDGbwapC+tYtF53F0u79N2ptkYhU7SbfdPsFJ0occVoBtpg==","shasum":"12eb4b21ce41ab617e713aea8cd7efd3e4c6ee93","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588275046306.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqyegCRA9TVsSAnZWagAAPBEP/ihxaYmvufEnEtQ3WAoG\ngAoOn0e6bjnqYntp66ZChm02dbCTuwfliHZCjCQ031tjU8cB7GPOdLrOc6dm\nPAEvCCzYQ2aH06M8R/Js6BbJNvCWOb/nEV1/n1ZJT5amqTW0LhOSU40iviTe\nIma4vG3aVSNlx+SIszOpdTkhXQ9CIhA0tWmiZTdn4zK5J27PL+I05uOjMVBI\nFn9KP8G6q/mYZM2+q2Tb60KjGJkx5XgYbX+SYaCXuzzhyZLlEzMXN36jW2bu\nzDvsQoOBHrIpQNBqJi62EaiceyoG0Ioxm8Q0zHZ/RnXqMdyrwc3voA9WgRms\nbC2McMdmqUr+9XzObdHmk2MwAseBJVptKH3X7sim8H2YUajs6i8If4wr2bRI\ncH1NgUteo6w5boS3gg2rEL3i3bOgQn0+sovzKSWPorG8k2UjODStCYPNmFXN\nF7gy+UvXIajc+zbYvtArVcnfx5j8oe/cGVQvK+Xixz3LwxdmQmugOaJYVlPy\nQNBmWN5ol3FOG3hmiwdNOtboBmFTbB6r3rpWMpdY/g2mLdzeFoszD2F5SgzF\nTX74A8rmEsQnaO3p0HPXt/8o3mK4vPAgISMmWqKq85TduYXHIf9goffL9FVH\niqIFNKfAW544h52RRJW6+9/YsquRspztoqPmFyvuoSLjf5IazQURknJZvAZL\nvu5P\r\n=fNww\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcSffBzpomUfHAs/1V6MnkLZ03la9Oq30rF7FDDNLikgIgW4C/sSVsajQk0xwYNEqdW9YVX47wXP/lih1OBGKKdRI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588275046306_1588275104066_0.6794988310807453"},"_hasShrinkwrap":false},"0.15.0-next.1588281338619":{"name":"playwright","version":"0.15.0-next.1588281338619","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.15.0-next.1588281338619"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.15.0-next.1588281338619","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GyXb+Fiy1wqJSVhCz0KHgNV6eaOYCEDeEUou9V5d3F27Qt3XXLAEgq3DV6PUec7tgljs5uCRZpHzrhzP2ij8aw==","shasum":"139b9e30bd3def8e2db06f9553e5514f737e68ab","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.15.0-next.1588281338619.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeq0AjCRA9TVsSAnZWagAA7hIP/16Ybi8nDNoUPlIXD3Fn\nwoDubfdSe88L1/DdUksIXB/cKltwxtAlrG8Y3DRPOsYeoNDUy98OOqQq16oM\nkMooqh/9tVPDKwqsbxJKmM3yz2U+Ob9tLXSYbfWPOzeaubxusS51vFLdog4/\np8+Kd/ue3WQRiGUwELwXgwwrpWlYQQMkMcHGukkgSywcc2rAqAPFIK27zgLV\nvePgIMWSr3DkjvRzG7CFvp5TVPAYeb+qcKTD8LRCwmPbOiCz36j+aoo32TcE\nPZF5PWPuGQ2pYwqDvIsvx1RAfIUtUFWPwqdeSUAPzca8m2HF+r0C3IjGREj2\ns1lPqydqqeaoIN06O7C/tUTbYBlWV2DaqKgUOQxyENZ0RLEiA0U1CL1s0t9+\ntuVtiN7Tu0gBVMOf5UyRdrJgvN4uFqbJW0qI8fyQ8UAlusBHJ0xN+OqHLwkg\nvxU2LOIej5p9J7tpc2nucZ0h3iaI7D+1wsmB2gudD/vNNIIT9IyM1dH5lQYO\nYRSMygtQeMFSJVHoSSlROzcdeDGPF9U+LuVzmWdgjg8mBeFX5DJmouR6oSRS\nOdIm44+grSlreqAthgtVFjQFr9FrRP2jW0vv638PguTaW3QCyqb3cqvDclnl\nlyT/hc3EQUviED9yhm19DneNkMmIlGkEHwdqNT33rBYUy5LeMqEVdqoqgCF1\nyZee\r\n=lINk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEQIVQRar+dpLLYZZipQ5x91uWubzEMKcteNQyRlw1bgIgJqcdbNLXU/6luANCHyHzwhlv4tydpI1X1H/Q6z9uJWI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.15.0-next.1588281338619_1588281378551_0.6134125544897107"},"_hasShrinkwrap":false},"0.16.0-next.1588293895356":{"name":"playwright","version":"0.16.0-next.1588293895356","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588293895356"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588293895356","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9lDggoZ35hHwIolggGg7DcSx7hpV0Mdbq3wV/u6EWvPKhT3N8rZPKQAFNMtjJBrYajfV8leJHKFWjsgx1hhgsw==","shasum":"e606694c7b5058f931e74411d85c931611b4d467","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588293895356.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeq3EtCRA9TVsSAnZWagAAX1YP/RB3TC6trBhdqoYMl9v4\nAu76r9OEEVAD7TcIaNH6U23ekhyC/EkrOoExZOJYk/lENKuaWuwK4vBCWrhE\ndv32XCY1/ZDkkyxU0adoSI47x9HGxv97eS05qApzwKdx8Qf/Kc0mo64vDo/P\nMIBsCfFJETe0WJEZX/59+w6X6KgkYkq+APYcMlHa5zKowGCxUNsb8210M+ml\nAil5M/PmbHqveKUAFxA1K/uZ7zNz68J6MxBoMy7xU4SHRqDNzIEgHt1QkEqL\n3jdwXwr9vPhN7Mhug4e7pIyXUlYwH3G+JSo+cMzMPl0Uy5RdjFULkbumA5V6\nZrcwWP9eQ15B/FynAHH0U+yt8mAanpv6OqWyMYVvgKSgwAY0uUcR42HtV32H\nfIZF4WW1h4RkKWHnFb1FxIrwJLueENAL430mao1iFyIGk93QusBx/u8NmGJb\nQ9viCjdnF1t7EQPH8jxdOUaNsORDc4Ahua4f/Mjf250fqeQzeznyQ+Mh6DX8\nn95i8SjjuGp/R+nRHDNL+xqm34QrgiXqpLjLx8GJ/sxfKF1IgJRRL9rrueX9\nDjDo/e9ZObXTpMfmJ1sjS7zIrY3qZQvu9x98MzL/la973Kc2+g+/n3EM4EMn\nkMdP/hEZwOhjJ6sdGR01nGRXzolQqXT+u0meYk6DFxv30E3Efz9XrsFpeeY4\nOeAj\r\n=vlnA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCkIeuETzeOmEuHWRG1Xk1P+QE2Ixh8iay6GVmUBPg9AIhAJ7R6NVLKSkshp6ogXZYd1/+d5eKpN76NqBHpA0f1dJV"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588293895356_1588293932916_0.006819338158952304"},"_hasShrinkwrap":false},"0.16.0-next.1588293964640":{"name":"playwright","version":"0.16.0-next.1588293964640","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588293964640"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588293964640","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nqqkbMDzz3IIMVm+IikpQ1iq+5oaacYr17VkWmnFu0Fu52AjCw5DXFCueWSlxgnExp8/3wbXCCoYL/+3u+P0nw==","shasum":"d356a599bb04e48ae95584e9ddc6900d940ed55c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588293964640.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeq3F1CRA9TVsSAnZWagAAGrcP/A6kc+zTwzhWEharwnsW\nfPRLC8GP3VjXbhbUWPS92gbxDKociJl5r/4lMj0egTksaG/b+g6NL/EAJGxo\nE0XnuAehWMfCyvAkJAr5jmOJqE5xUhmbkvNaGbMeXlmqkGajyWlSrpDNrMwT\nllKfPhk4QV4HzSplLEaT+U+gHA/xfuaQ4sKsprkmRHTpxJvdi7siqbjur44A\nt9R3v0sQIhVfGRC8sI6Pa9VO9ogIGbI0+y0QncCdnj+gZHa1ySDY8C4HhvlQ\n0qlUa6/GxXh4diUaqtE7HO1hgysg0NLjKrDlsIygf29Or9eNUCQFOBHGEJ6S\nTAKEzrbEF30Ld8kiapUjY/7n4qo1FZmvSA5Oal9xT6YfD7+d5j6AglPLZv4Q\nMRK1eMpyf2yKobM2wH+rYwqMD+cMmB79+PuTOA++Gw0GNhjxLZslzpflgUWD\nnXblONKvkBy07h1+5W73JDDF3JKOK8jkYRqLP0bqyktd8r/a/9sl7StLiMzI\nJCAi5ium0WppTrkTwHoCsxRCPdu8v/D/dY5ecXJ5qpIpTuhmix65+khoGzmN\nFQ2bRjZ1U84daXtnEJiOIZCcovlLQfhKQSfphvlriB2KQJZrEQYE5J0mjryD\nRiWYKdiXe2bQTDxVdaDMs2Dgo6sVcGYCq4Y9pgceH4OrbdVYh8w1/5WUl5jT\n8PBh\r\n=oOlw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKGCKgVabrLmUJPmeas4YD6yOF1yii3NZs5RzgLBB1NAIhAO80ONrJH7gSUyBGnKJmyekuoIU4VGgZTdQsfPat5/QF"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588293964640_1588294004775_0.06874000489733012"},"_hasShrinkwrap":false},"0.16.0-next.1588294765344":{"name":"playwright","version":"0.16.0-next.1588294765344","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588294765344"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588294765344","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-h71l284qilOO2reG+0xr5WH2cviO8DN82oz5Cfx1bOcEv97RaFBWilq9p+8Xfri1+e+WTkUiPp2BAvgHOvrAjg==","shasum":"67d29251e132f2f63ded53290a34df9befba1237","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588294765344.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeq3SaCRA9TVsSAnZWagAAzdwP/jPZ2Y4PNrQPzt0CndTY\nfGQs4ctc2LunjUB+39wbPCA9VE13q1XpV4XfMZ/NEP4OnINJZD3S/ed7PRm8\nLw7tWZu+ZoQ2DkQ5M0m694VaDRujg/17EETlhIC1yVuqscRnmJmhgLxVg+VB\nUMmjUYT8WxVs//14qxghksEQnB+qh5pYdfzYENTXxPq0TZ8Y1OiGiaHUJnxb\nSTqdFIS8XOHviAD11ZrKCC/XGNIFfJGXhPr89dRE8BFc7ZofycC94V84CMAJ\ntkKzPggoEpYYg3t+VaW5lYzV5g/eBsEt2W1D/vpilDFcOkA1Ljivg+oFasO8\nbiOaslxm515sp2xGNPygccPI8UEzs6UleaUbIJqN3zpX4ZDM2zy+LZwCb/Ux\nFj9pFfOy9bkMPWhCQ2zuHyF70CFMvzJPRi62345oYGKYDStw5U9hbrzX4wWr\nYmV68W2rKv9Ytimu9DeA8NLulLypnwRsHyF6OYoNMJzq8nGTh0xQUskgVHR5\nQ921SiQzwx15kIhNsozIIwnJkVqripbaqq8mobUtdMNA7AsoGluCauO56FB/\n2Ni+luy8Enf9FzChp5iD9CCcdzSzm6z6RdbA+c78BgFuWpE4a8WH6i8Tyy2z\nrAtPcbjKYpXfA196u9mHFHNY+0omiEctSAL0Pf4qpqGZcRNxhPqMnU6A9oZT\nN6/Q\r\n=o/z4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFXHuybBtfHLa2uOnSbKdOCoPXAvqXGfGaKvhO0yPrEAIgI5NfQqUwYFm3viTC6dcJ3n54b7dyJ+PSQU/d7J7+tBk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588294765344_1588294809633_0.5811321166331707"},"_hasShrinkwrap":false},"0.16.0":{"name":"playwright","version":"0.16.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gYdS7dXCkUKkG7ciXnErOTSedyW9rOCgNjAeLTYD8Ifo8cF6XfqHGifIYmhrnsIO9PH1jtFz5x03bZhpoVbUhw==","shasum":"ed6f5afe490843f682ae68d77a616f995b5295ef","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0.tgz","fileCount":6,"unpackedSize":8385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeq3aBCRA9TVsSAnZWagAAIc8QAKMz2vBhAdgLaptnahOi\nP8WiQE2aXUIXnAP1VEY4nIFQ/Wa2aoKL7uBZS2SndRqOvgjGXXytz/+Snyvz\n50FLFNMY81Xmpu2hUiNTwpcVfVFqj3rNtq5igFm0SgOeGtF3fi1PXnbHhp82\n6b/EJu+T48Om9mZhyERcRRxKDqHmaPlDICcKM+ijJVXWmUzo2pVF4zmo5JBB\no5Wh1fpV7bSRbv8NFcNjp3XoV0aIyUpH5PmB/JkEiDLn2jljcwN21g33j3XG\n9i2PozbcwHS/B4xdgxp4X57+PaTwCSAjElb+/5WvfeE+m2d9gL0ChcMg+2+G\nC4ryyTYIiXANrdr87G4Hvlr/bDUuu3GEcl5kp25QObXEXMIryK+ucjVlH66A\nfFx864pzU0feNYHcBcUx4dFB3/fW7uYARj+1QxZkMB1mSCIs1bn6fgSR/qM/\ntsSJK9BwqVHfqg4icYm5i45TKsXGyUn7qL8VnYhciWuVeZY8K5Q+Cl8ekFDV\nOOCdyHGlWgOFQy0RPGGn9igGF+2eXFr1dWMX0JFBRuKjDe2BdhemSmv1ciWk\nloqFfqBxnj5OTVP5tG1cEfzX6Q+MMyfMMgw/4RdniUwdrorMx25HINY9dXhc\nH3krKe7TaJ/mWMG0RM2ZoU9Y34dv/sFFu7HjyRGfkyYOt3zeJbrof+q0Di6Q\nU7Fp\r\n=EHMs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdu5UbJ9pwulV0b/zipk6ajmO/6/XBf6Ddf2WIXAS1CQIhAMhp9xxuE8+Sib3PReIN4qCi+4YZy2YQMUiE9DGqjFWf"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0_1588295296888_0.8809702110895499"},"_hasShrinkwrap":false},"0.16.0-next.1588307158165":{"name":"playwright","version":"0.16.0-next.1588307158165","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588307158165"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588307158165","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9dgoIGL36nX0jEddjW0z3EolYUaDVsjpugWKSCRUTiYlgMhPCryN0FUrbk99hzZXsH1V0eprRtahPFRwtFn7vQ==","shasum":"66f5b002ee55d70dcc84fae7092b1c3afdba7abb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588307158165.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeq6T+CRA9TVsSAnZWagAAp+0P/Rxm/buZ1H8WJoHMp/WW\nN8FTSN7kHMxfFtLkPNTozjZx5P8rkV+gyasPjSIuWrdJXMF70U/ChN6Fk7gf\nr8XAP8dOOOiWYOBuVlFeT0jTGsWEr6v07TbVOZVLm4WDgZlmfNEDIH0wfA5w\nl4fJdVswQiUs1Rur1q+Xh+HWArchCJ5QsNvTO5XNRcl559AxltDWNESILnKW\n785A8RRmLyNFnRdwepvshibL7qOgNEGXsYyX8QOIL9/zoK1VFwf0bq+nVyPz\nsCwpB2xH9F6et1EZp8q8twxdn4HD2UyfWr+pfpL4pR1Mmh2p1sIuAvAXLK80\nemX0Q6XWYc1sq6vKbYtqsVjH8IAEftE+RUn0cTWG/t/5tfiYLK/EbLxzSwP9\npr3eN7OLSlkWDHB2LnJtXEX06+jFjMJsw5ky5NYkUs2dg3iGV4n78DnS5v5O\nDM1mNzf2NLQBdJaEpsVM5rt6Udp0NFqryB1fVS+45Kt2q1TpwAVRxUhnMbrR\nTfr4jP1DD7pPgHN2aIfEdJjluQA39g2bk8P5ynKG7aiyI2nYfvE9vQY411P1\nS6QUGkqTUV3n4GaBVvRNGbwjGjDDeFpr4snw0U76j0bMTVCpdbQ66FHYrIIE\nxcJIhjoplnWLd/UGV3KBJSBMHIygu/ySKSiKca5bXDaPt0iBNMh+xYCglPEK\n0qX6\r\n=cz3+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDX85nZitE9BKQw5zI06mGJTXpQBWyrsqwjVcru9g6ApwIhAPOtEM439cbswOYnZKynVP8dqULGjsiF0CaBBgHQEZEg"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588307158165_1588307197633_0.28743021339629826"},"_hasShrinkwrap":false},"0.16.0-next.1588317172644":{"name":"playwright","version":"0.16.0-next.1588317172644","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588317172644"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588317172644","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1oUNVDYt2cBgufsWYMZKl83XIWPoZ3cXXDGD9wxoFZ5wcxrvW38P9SVof7x117Rxb4jQZ/BHM7qaPh+B8kdYRg==","shasum":"8fd6548defc12d50bacd95f9df2b90f2db412457","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588317172644.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeq8whCRA9TVsSAnZWagAAy7YQAIWds6vCrv1KH04Nzmrq\nM5EKwk60wW/5pJsIKJ/y4CoUaK6ikDnxkeYLsljska9OFXW+EqZdQYsrFe4b\nTvp7xKNzaNtI7eznOWZzoyWD6ckD1/x+rirZBi2YkMDAnKl6BE8bmAMUymp1\n12AQHmxVGuXGqXKPN2WBp1Q6KFAGCZ/sFXUnPhZNYqQ/fm9JM6c12CDvqPne\n2tV5DGNG2nt3l6F/BihS8tYx2nRWfAUiYhjInAxxydi9UITnKi6wwKSkIDDy\nEkuoJq9hSmxJOIaOVlgBwjQxGCdXoeZCJrugCGe/QUeg4eKDTSd5M4JVvqmy\nqOAOZGo4rJFCd7b5qE6LLZM8LYpGTi1G+axMxL+WhBhMtaQop5SABq33yXuz\nJzkGON2gIBWvT5ORtVo9uCi0dutJ4EN00UlYUcLP22MN7tYN4LRfsPgtAEq4\nyqfnDuvq0anUETaSEO6Faf624Wy+a7rIr94+eVglxQetiFmKuwPLXau/wBmE\nhRDJpGTmDN7Ne5ZoF7la3CQXlP0YacMkw+KCZi9C7xGyVME9MRiIeYluIAks\nUrwHlBti9PiTK8ui4lGYxeX2QN5Dfs+e3/pOGltCn5VY21YQs5FDzORJHetG\nP6tXm/NdaimPCcgtbu8oimFyJNprQ0MujatyMVvPsAq2sa2UJZ+eJ3DHcTOA\np1Sq\r\n=mC9m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDorxGxSQ3fgzGryQLoaAM2CU5+RjnEN1BUKgbaDcX3sAiBlfOczil2xFgHaSdc2kJHqR/QxNyqMMT4K1EUstE9CVg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588317172644_1588317216809_0.8277585305720148"},"_hasShrinkwrap":false},"0.16.0-next.1588353094336":{"name":"playwright","version":"0.16.0-next.1588353094336","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588353094336"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588353094336","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Nsf9N4n7ruo/WqfcGqFZDJC40Pr0nV+IvpudJ5pYwHsPWwcATLO5wfEkjAfDbcwgN66zMdFO8SrC4AIs28QW+Q==","shasum":"a8a2e13895a0a8102d36d4b880aeccd1734019db","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588353094336.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerFhwCRA9TVsSAnZWagAAimwP/RmhzjQf0MNzEcn1Y4Nr\nMuL8VQu4ZMuB1pvPTCG99judcCWFr1Vsp9B8gZqfidMS9NeiQmUjgkxzZY69\nUy30D1AqaIDPzOPEkqrGTAXRCYbpHHAjR6zkw7pkolbPOfGQCanweUs+PY31\nCGZ3wZ3uOGvRbkdX26F9QK118NEiobaThEQK1mLxcDXf4UACddFnQsJhQt63\nZnNquOlrhTv25PPp8JkbB7SJpNzkenLQ6wkq9epBTLG7E+x8KtbsPm8rb14D\ni1dYiK3a/HTbX6aRKxlaWuW6ZO+T7/msPTgNtnuRrep6iGsuCDhvKIGz9XBN\nkf9LTA72Df0BGl1T764aIT3EnHhgx4Nk5E8PBhzEljHxHgLkWssMPmdlT/rU\n1pwOY3Lm2ENFespPZh0bWrl8Oxv7yXPJcH/zK+bsjOOiTPwwV2GbvCrvc5fl\naYzKSgtUqhY37oraCicPWcO8t7PDkxT5R4pngFSyI/Yd8DdXBfW6NFRKhxxm\nBR5bhGa+osWOXGA9VWLFYKFeKyUXEmKvcPgzqZlCdEBWpylIL/4d/giAVXaA\n7YuEnfT9wVxnLEW8RUPC7UTtRhVYkDV4GAOKHvAyuDjjhS7AhmzrtSno+Sxg\nITXY96JP/tL82u1YjvtPXrFh74IS9C3qys9wYixEpUCTLqX6P3TfkbnnJvfL\nu6PK\r\n=kLVy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJwOWsRWgqEEdnGKeEXhT6dMIDKooinoezSJ5So7oAtAiAahdH/F9BTE234MqqWp/vT4cxXAVzbRZaxO4xgtcF5xw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588353094336_1588353135792_0.9083134900023615"},"_hasShrinkwrap":false},"0.16.0-next.1588360285464":{"name":"playwright","version":"0.16.0-next.1588360285464","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588360285464"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588360285464","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AafbhIyhzuCNedE2p1ZLcsqrPdoKc96ayASq+TOitEyki24bbBWhXADeotum6Z7+fI/LDyHezKQgEiZVOAPCww==","shasum":"71f701304ce4d997dfbdf39e75eab8a05010f7d7","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588360285464.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerHSNCRA9TVsSAnZWagAABYoQAJJLEcAbSuQzSap7Hwla\nNKJhP6ljpcGzLvgt6y6er+6TYyfrvaLcd3u8FGIg1QeiSdY7g/yIVB23E+GB\n1sBrzUohokPn9FQ6N2Ctjm90KgzUz8x0dcvrgsSgM9d2isoWt450oZVO1U+I\nD+zkwwvNNumS6FiegFISAD8egKBFYeTEGGwvny7YPIUvWaPveK/sCKyuI6KT\nERTt10pFDCj+ruLYkYlrmatY+QejX+EESy8x4auHiw6cZXB25EbPlXknlhy9\neIDISJrM6O+S246y2+t7Dls7hM8Np0sKfaVXAuTabssz9V7EeK1XJL51FtBv\nXGu3od/AqTiP1I8WCMt057AcppxHFVhreLsUVERqc1zrHVVwOF3RaRH38nl6\nKsMv/TAmy1unHoPpnU1fFVjSQzyPahIGREmbEQb8Od0YR8qIfqksBxxMY1A2\n+yE0y36TjGTfBJ0VfKyca5sOGkHyKW175LRRCzEOsjFK8xNUtwhrg1T8Ssm1\nYAa4AEstKk7h5sveiMm5UWCJfXg737FaGm1qcsSWjiIjpTK0jOC4U3AoNMwC\nApFpB9e30+xO+J3Sx/UpdUfmwImwNfkDAYMF4acr6z/gUzTLl/QvQoZlw7m5\nbFEBzkMz6xkYr+F8byLetzLBuGsNhToJYHalMfKqd03jNBMZH4kXB6enw3jz\nA/rG\r\n=Enzj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2aTsvy/MlA4iQoR8BPZAlhl9xWRlTPxOLLPUdkf0LAAiAo3FqsXCw4Fy8jzduiYhNumK9ia1d1Z6LEZCUDhiC+3A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588360285464_1588360332785_0.5233268782871119"},"_hasShrinkwrap":false},"0.16.0-next.1588360404399":{"name":"playwright","version":"0.16.0-next.1588360404399","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588360404399"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588360404399","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WCyXx3XsniXH5y6y/7Pz6Ikcf2HFlGXi4TsPkGZb5s3kas/gHHzXfRy2yqVRanFrBRxkH3XgAxPZE2LFVOUo0Q==","shasum":"57ce73b94d448aa6be7e50923752adaf095d3ccc","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588360404399.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerHT5CRA9TVsSAnZWagAASj0P/0I55snrnk9fFb/cIxsM\nv3N6Paa2ul7Uil20x9dfk7oMMXCo24eqdY+r2MFZaM2n96X1ChkpcUP3QFFj\nlkSa6we/ohu4ZS3Em//Fo79g81l9yEUwff6A+qjHoFfQH9AXagLgMnJIRfDG\nPfJRGg0g8PYxomZVCDhsIGT0ZrjT0QeUDxq6D7QwIMgQKqNtbabP4LH2aSIK\nveNtwZNFVc1JZuXVeaK/IuiS2sLyTgBtNrAPcLj3NRPWwtX/vnsD2GATLuEz\nDws9u4qKt0nlsw9eKlRFTLzkCAdIX1bUdVnVT3FFvHkqpCQZDFOmE9Sqrrof\naJGxnPS1yvPOPNJ2/nAKNKVFINjrGrn191I2bsimbx29bp17DtcsZWgZQHRm\nzEqwkrFZm9VwgOIw2B6yNCln/vFos9CpMpd1QcBM8eoaVyW5aJ8pwz2xp0gR\nBIsmVYngs8ezHQ6azim00Si8NbVLyQP4NebVsl/zNEgbMWd0HJHp1A5x5RUl\n33Ghz3J7eYOHOU+xgvni+VjeTRZuRpQzUeHDLfvi29bOrP/uuXI35hZbeHPG\n9OKnN9Q8VYmtK3vxAgUiw2sO9VTJw2k9NyybkSV2vKCdi3tffnpLu8yBPDkE\nF3UFOW3p5PTLInVUeJDE2Xktm1oJhy6ejjiMbttewcMFVyimceRFLiIlxbBi\nJbuw\r\n=ni0d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICITVKxKmrnAiKpxcpBTPxSIy1NWa2UISZtvEpaKyt2PAiB/WJbPdTMYXswvqIP5QeqJMkBm0v3DV0t9ZN4ZCKgglg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588360404399_1588360440555_0.47871244056903883"},"_hasShrinkwrap":false},"0.16.0-next.1588363272804":{"name":"playwright","version":"0.16.0-next.1588363272804","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588363272804"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588363272804","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qfKmVSbOJ5RgphLFun1bfEHRCZ0dB+kpvew6uckx+Spn8/0P1KkeMcCPxYSCyEXGJGF+ar2P9z9Iz9lTKVxWGw==","shasum":"1a2c1fa95242978bffd9e7bbfae81bdf0601ce5e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588363272804.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerIAxCRA9TVsSAnZWagAADOkP/iTQj3L2rogJ5RwjWZEU\nqah+6DSMtL81bFWNG1AH3P8Kdl2x9M1M0Z4zfkFJQZElF30kxFC8ctgfZTaI\n+8C1kaSrNmVmHGioaUUaIR2YKw6QGrNPSLIVYL4qvVe322FuA+DJe7Rst3y5\nOs55z0tZFNue5iwstKl7PkFINLDpsGG7v+xJpSa+zg+PSCgv3/sVHMQfTiXv\n84pQbPBe1dj28zF8+Mpr1uFuaVPjF90xrOIzqMi4IwWn0PnDC3WQdO83cDCM\nxh3e7E8hiet1Xf+tkshoDrpMq0P6S1KY3epEbCJ0OVRnyjQqJSe+a2L+3Vki\n7w8I3zleeLW4xL/iEKRXgml5eBBWKxc9izzxXbHaZz2UQlPVJUS4Z7YOA7Vv\nj7VCROAMdOztiimTTDYwBIGFLAH3ocV+hhR6xNLDWQOtZVjU/GVJrDJi0Xis\nY/SGuxbVwpi6Cc65ypVkkTq11s1A6J3VzKpMmGSOUZmbu42ECXOsVuDqtBYv\n6KcP06s6cJlg6R9GV/OpjkWF3h2pNJa/LJMl2NV3ei5fDwvP5pgvCbb2TpAC\n4/G1ccEfiPAgDWn6axkIWYhRFBeZOqMR6Zzww7WNCyw138RK14z1ZnFXYmpQ\nAYryMNP6BUZlKa1uJjhTXylFGfsYEIJx7A8+wqlIw9mM+GHVVw53p9Y3XRPU\noB36\r\n=jKlu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICC6BmdZ98N/83urHCn7FSEZMVoVXQVM6CmNAe4/5wuFAiEA7z7nRnsbD4J/5ydYtgsI1t/IyraH4AjajvQyNkPURG8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588363272804_1588363312837_0.5461087466165324"},"_hasShrinkwrap":false},"0.16.0-next.1588367092352":{"name":"playwright","version":"0.16.0-next.1588367092352","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588367092352"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588367092352","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GyZaqac3oxTsgDTZyrjY23nDDcn48CigPEXLxLAS629/nV6yYKl0KXbRRD0wnuhUtoQ/az/8nvT7fSiUQuwcMg==","shasum":"f6b26486e038ec742f54b13fbb4566fb0e4a2743","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588367092352.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerI8dCRA9TVsSAnZWagAA4pIQAJDuZgY4V+6mpOOTapdR\nOhlRU+A+DKRLaM171MvVh6oPtbJnsNRkRTkjoQsyUEfsFCSOQMagjAV4H2HK\ndnErKiHuuXa3xAXmlRgv4E1l+4OnoQTJjVE+4uQAU61VgwmpQzS5BbGLwZMB\nDbDFr/vdWCvA1mY9SYE/M7DpXIlbhzbk2b7pu01H5rPKvNirt1LhXs6wI+Hl\ngKApJLyHbTLyMo744jrRorJV77cu2MB6Ez7XZhL+gVWXzo/FYPFjORTHQRI7\nakZPR34ZQVnfG2hqnqf8oDgHlXo6yK+NuqwgDoB8c7KwBUML/Xy7re5fBa90\nG/B0j9w+QWuAyncPVVQBDpmSWnQYbmbMTVi9ynmk78YZfOzgu8sfbtkM+rDa\n4HwT5boGcauREa4x1PTT7rsLwQJycHJfqnjWmbahBJv4ppJaFdZAiHgxFsJc\n7cwtHv0n3zVH/YQ+YspE3eoW2sgS8Y+w3jAhU+Dj81Pno0We4cpGl0HQwGhq\nFJNkkCSuZeZu9oBN64l1jc6nTOkMyS7wIFVfWF+Z8GZq45i9auV4oLxoKz/I\nhyGdoMqF4PvBqyyguiqCKv3T1nT1rcIVnp33wyJCZj0HolHrIXTL6xaDo5/s\nx8lfqodvVeo9TxvLMdtpCtlWSVMFCudxWdBQgCvG/hXMoLO3kf3gR9LF4b1L\nOXRf\r\n=J4yd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCSREKKQgBziCVaxIBaXORZPVImaaX/aqiaA6Rr0mc2QIhAN3Q9/J4MIrlpDnadsqk6WGHOQLkIV/jqgGksrFw6ckA"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588367092352_1588367133235_0.30701288193435494"},"_hasShrinkwrap":false},"0.16.0-next.1588431178269":{"name":"playwright","version":"0.16.0-next.1588431178269","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588431178269"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588431178269","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7hgNYamod9ZM1JREZGxjNyN5UYuHjM8heAuuAduvAb4pQ+vZvURXTmmSwZy2U1as12SjlnnFlbVXLwAYsrrHGg==","shasum":"7bbfc0a9b68aa2d6ad434237fb669dbc51bc7a44","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588431178269.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerYlwCRA9TVsSAnZWagAA8ZcP/2fe0tBUNlnE5ci5rSBm\noJN+cmbuIdLVTKSryRguuYQKnyi96qHjEkXyzQZyYfu7+rXwg5ywJq4dgoTE\nIA2K/Oj1JNOABOZ5TFXha0Y3dKbLkeolytKSjWS/tJNc3rfgKRQXDZ5tdgro\nEAs7Bm2P+B0db95rAU907Xcp7Pl1G1eyObPfvSGqMw37lARx1XPTKS58ZfkI\n2mTR/Ms3QTsQ9rmF/iv/j+m7IdsIYioZUack2JlVCiJsVLYq0kDY4lzSzlMk\nNu0i2QhHYGbMJYw+SyPQrRsNMuJzs934EtMqsqQA5hHozK/6Ao8Qr8Gzf2pI\nSbdLLLmfJIWz0MF9cxz0+jRnYOAnI0L0BYHwU9fQQP7Jnx9py0PJHTNI+k77\n/vsAyfR6cL7L/3xJJDhqDnywpxJTiNMVoP2OeLPo8mHA6H9ZuIvncnL1rj3c\n7WLgcQ+SzuPlUmg9zUIA2KipM5C7dGHpkIpuwfWfHmv4vdf1WbbD9PB1n0zV\nMaCN/v+56WY/f/rMPAHJpkh+Dfihe15azjsmVNPJt1Xm5V/8Y3TUA6USOBxg\nY6qhXFN43w8nzp8BuXfXs98bAzHCpmbVdwJdrfKjLsOojPJnowISaXq64Wdr\nKbi1TnzBiYLVRwQBOiKDb/R7dhLL/CL7Gw/2wW8YcquijXDtiIspToVr/wk2\nnlSq\r\n=bnM8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsVPDL4557g0tEp+GP0qdLfBOKoqW6WNh8TBlvDynxzQIgJIC3C2xnkfW5BMgHbZ90HK6J3HkWShPLYlQFBh6bj2w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588431178269_1588431216095_0.24068458195695142"},"_hasShrinkwrap":false},"0.16.0-next.1588442369192":{"name":"playwright","version":"0.16.0-next.1588442369192","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588442369192"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588442369192","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nRhat/RKleeEP8t6WS6htr8O5MxIW/7Umks0PNpC2gQZ7gYh6/vYKrDLlyXJIlTiMjjQvyrkn30M03UXeMkEKQ==","shasum":"5e360de0f6bcd5685d0bebe51f2dd2b069564e03","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588442369192.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerbUoCRA9TVsSAnZWagAAm9YP/jmBDCpSFeo8jp+bgZa4\nQHoWKm5AtSyNxmiJZ3ecA44WrqBL4zHo0BNZ2l+9NgywOsm2GpEDnstdjysU\ntEASsHnUn+fwCLPDHvyEdgNsIhael6uE9eR/AFu/26NoVjK3FbnYcggx5GD8\nSZNTd9ET0EVIe/PopfIxGxXpWtJoVVPfM3WyeWud06acHMmSdV5Hr8vWSpZO\nejOWx+DDlthaaxUpciHEamZ017bZd6jKfVsfArmuSMkVn1qqowTlxBLjVd5R\nwXoLVnaFO3iDOqS8LsJ/GtfurnJCSPOwQEKJ2qAZBsvNBbnBoL8rMRpJPZtv\nSnSuhzCgZzJyltR2OekRF9Yo6zSVah5ISWg3/7tOeW3HlpJSD0TEobiF00du\nMO91xZ9MM6W05gU8n3X5kxYlFZlgp+va8GMO5wfFxJKO1SYW9kpECU8eUsiH\nueMErjqTQLUCF6weDmGHbSQ0lKWZlwJDxj9cFjcvr5GW7Zes2JDpPzu+LO2K\nDE3oxswm0VitDqexvSoQNFRM5tzFaoEu4b72A7IDn7TdOPC3gdH0+cAvSlAO\nsDSTcH6gQhcMtlhyGaSVc0Q7V3nibX8il1UJ3hXRuR1vox/+I60K2UqGtFep\nCTX0dByankUj2Tya5QDrWNOy4lwqutMwy2Th9Yi+/FAb/DnRpGkhSUA/ISTa\nyJxw\r\n=8gor\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHhUCr6rpz3x1ykBtGAYkOEB0fcOGBK08W0NV833EUWQIgbDCFY7wJFOdriph5HuHsSonhBM7YW7wiC72OtMiuzxk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588442369192_1588442408307_0.24974172199182787"},"_hasShrinkwrap":false},"0.16.0-next.1588465659458":{"name":"playwright","version":"0.16.0-next.1588465659458","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588465659458"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588465659458","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-irMRu9xm9qVBwDqlAW9lEcMUfVVJ10xb/G1fnHbMms4Z6pRk8dZ9nnndMg4aCnmi0lavdlAr5eBN2vMx15yDiw==","shasum":"d4171d37b4a02516cc61cb20c49b612f2230ec72","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588465659458.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerhAfCRA9TVsSAnZWagAAMj8P/17TDGYrAOCaLajZk3Tr\nfuFiQqfsaiJa1V331oRKnCmUxWMDuAc2jnJrE9vPv19Z3Nvqlu+Y1wVDFeDI\n2ATBpNV74I33YLpBsmOx28XmWEfDMBIJgtJzZcqnbcmShdbNRfKRqtCegYcM\nbaRT+9yeV9oBpFvopT51MhPOLQxfxOMdh/1dpp0LDGVQu36xg3GcPVQebbke\nA2wFXnjcFqKGYts7QCZFCpe36ecl/SB/8fJXb6fdTI2Dstkk3pBe4DMFKCaX\nVWlkXvqW1qKgpWAIGkUAANySXesYXD7Ki1B6rcqsNdGwT8CBf2S1MbwpyA4I\nresu/RUqM+kEfZgjjr7A461ssIq98/kAx/sE4uUXtNIk0xZwDNymv3XuLGD7\nzmVXDQl/WvotFJYAr+w176SSq78psU3H53rAZUE8jS2rjkt7jx3gqfclobrT\n7UfpMXS0RiRbQ4oEIixV3EGtDrb2ss/BAh4b+Wyi+K5vzjfj0sqB5BZc0L+o\n0hW3CiY/QIfSGbCiD25wUm0ZJ9lKrf2IEPLNE/CV2M92mclN9FuoKtrTW0Ls\nlnGWGVMGfZ0np1py5OeHFrBrBoPVLCvsq5t3i55rZGljFl7uyn+rzfYlhql7\npytlatauqNQLDQEvgeZC7JvrX1EtTZshnm9sRq55rgWiiq8/KmLFzKkUZ0EO\nwweb\r\n=3cwi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQNptkw6vgwl4Z5Sh96LH1O6rkgkUIzlIiiyeOaVJPXwIgSuXRPEEDIyhaj8b+Ggg5e39bU2SElzkmisv00IyM4Z8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588465659458_1588465694532_0.14529428619462958"},"_hasShrinkwrap":false},"0.16.0-next.1588518094503":{"name":"playwright","version":"0.16.0-next.1588518094503","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588518094503"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588518094503","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-00G3Q4NxXniFnqqkmzsrNm1xYqWwlN2G97nrnU/Kl0eD0An1GywwzE+gMvkdiKFYyE/DvWfUFaQiYj95TT5vBg==","shasum":"fd3539038bf87b568eb5ef54fd125092cbb57a99","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588518094503.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJertz1CRA9TVsSAnZWagAAb8AP/2H729c4w9Atinnna/+I\nfQ7tEItPqZu/+fQqdGNfYrGyTQoW/MjniVvZsOz9qaMPZNnZKXlfFKcES/IK\n5ekInRQj6cjiDtyKxgGxcZ+lgzgtHh3oj5+ns96upHDQw3/oyOsQUSvQ+Q3c\nH1XegmWY6FWpdRHVVtSSUVTQrHACA2+jELNVnzVs9SZ3vlH/FlPDCXJDikwW\npxHHtiJ+6GdnOvVg8x39vqdO6YEOq7thrcjIp1SfdH4ORfj+Lle1IyBK30mk\nFO5NFojtnnK18infSvdSj9kVWrwGDAYe8tL8qzb82TJn7iXJZ5qL8KEHQRnm\nztzlqP4G2sAVw3rk7KDaYrQC4n6ggxg6dSy3i5N3AjL1P1ePhASBarUX1pOu\n/ozTDtaW2pdH8giSLw/yvmmrKGLMT3lCLe90B2uml+Ez+Ll6KE+8jUfHtjyK\n8bNR5FmK1ZNwpaV9RcMcRiNt/vh+DQgfEAXmM0tdjh0HIrUWhVUTJcS3ThuM\nOjyYsik15d667K/l0wLgcZaPV7QcTOKveYghUyyTTu4iVCl4WcwpbSKXx8KS\nv6avi1YF8o3+kRUHyFikmGHKVTVK+Dys647+DBz01/iH0W4XQTqnmbGbXb3o\nwSTMFWX7jTY78igcRCHv1MIB4LdL4u8tbm+agqrSBjgiy/vN6gUpq3Ti/Zm4\n54AP\r\n=2H+i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJralGTURAXFvSpt3ByuyvdYgfk+rlQmY0pjcfx7PmQwIhAJ+k53QVuBtyUWLTFYa4fCdoCO2dH9ozPBtjLuQDFaDg"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588518094503_1588518132909_0.19411567918589867"},"_hasShrinkwrap":false},"0.16.0-next.1588529955378":{"name":"playwright","version":"0.16.0-next.1588529955378","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588529955378"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588529955378","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AI8zCNbwrpqUbEDCdpAjBJhgCl7KbpD79aRAF5nShWTD7hCsOkIEgYmhoUmNFjqYH10W8iMLs3NFOemC1EsJbQ==","shasum":"d76140c0f104edd6b81eb4d168f3513b9d331df6","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588529955378.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerwtGCRA9TVsSAnZWagAAcDQP/2W4DRCz1NDk+scFcgjJ\nl+wCFWpvlorxgzC0MW4uXjLMQPF1eecSz6K27zpynFolGqzyiKkzwZsB9HG5\n/J7Jb9udcKppE2bq/4F4pLT6zmzdcc/HUnXH8em9Gein/cqjySxRSehHQs6G\nLR2YUy2XP57XVcoz5iawk8cjuObjYR0e02A9ykrFs0mpWJkcZ8JTK2hwHkp1\nBWKmMvaAd9mvi0GLjTxftY5mXzzABgd3zahfXLI9j8tW0dTJf/rR6TCZjl/1\nnLXh+by8c/heFhAyCXywB0AWU8IoRYVSMjzcrhDgy+nylllPvAsnf0pYvThV\nk0s2A+mDWRECcX/UE9E8HCVeCR2Lh+2D35Aheexe9X1+8Ka1lPUDgJ87K6VC\ns1KRIvP2FeIxL5RaTHt+cWA4PS/VK4SBChdeEw1xUbFhRW92oLW9xlhAgO/h\nMTPsa/sk3DYIknzyXlWQEWuKRkgy2E8zLbdG3Zv0/1A8P7QA/aK8CGVeazwc\nuz1ziO0GCTZqnqYnZlcvRjpfG5NrKCG3Oz4GQ1UINImCp5rBubko+SPD5htk\nmKfWlyPdCon/0zRCHNHd8JW6yHbhEVz489e9ubaUpHSsryPGn0vqPE/xx4di\n/3aVwaWdH/HSSjZzMSg57MbYnAQKySYmGQVAHMfYAN83VwQc7YXcFSZIPfNT\nArwZ\r\n=L5Qa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcz/AUdp5V1ttIYpNzG1Y+oLEYeDLtcKpHIvCW8z8i6AIhAKnlt1IW2br1UX/AQrfMWR5mV77rs8xCU5s86OAKrGIR"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588529955378_1588529989475_0.5393902757023625"},"_hasShrinkwrap":false},"0.16.0-next.1588530305132":{"name":"playwright","version":"0.16.0-next.1588530305132","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588530305132"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588530305132","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eN1DWQbBjK6EihT9NBsaMLSUsjrBl+4f2YLf/uqycV5nBcKo2qnMRzFFk9HtvXmMktYsDu9FmU8UJ8DNLK0DGg==","shasum":"16d01bfdb7650a710c071e3253b3ebfa5d31ab1b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588530305132.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerwyqCRA9TVsSAnZWagAA2qsP/0tASfKbVTojOt2QVCTv\nRbSJmMfRlR/U+lzrwUka95mPyeY9YGotq8BNEX63i0c+Lkd1lkmbZY2YJcSU\n6oDK8zfXnij/95bmHdzkjHK0bVtfy397O19zmj8KvMKXVGjQQTk5Gz/pQFMn\nclxkP9pt93JnnLqoWLiEPX4NqyWZRd9GUkB0vwREL2YqCJwIfk+MCJAAR8di\nsgylUsZ5Dr3fVLpXJovA+9+KQ0vp9FvT20BV5QEo+U7q3Z7KJiHq0CuCOnD4\nvVZ/b47BhgtnoE3hgYdnxvCqsBFThecyGFfDJCWaPdnb1oqpnm1UB+jLsUva\nSIJU1ctSGoS7v216khJ1ssrnTyeskeGwoiGbMsced0zNJ0XzzLKMnAAs849A\nk026KV/9UA8PLHs75zjKZspo/1WiaygOXM77ehDUJPFt+Gl45JH1HWMA4BR+\nObf9QpxuPtUEmn0zykhYSeZ5raC1MRli5KiLepaIn8BhT3D6pxtEcOmqrcex\nduI8AsMqFBKy7KsHT2x7lhk7gSJ2MQN30Oc4n2AIdtWJZxR9vFQB6YXoTJZm\nYtRmhvda/hk/CWtPB3IxXw1vqWGBhjq6lvtAV4wo6y0+kSO95XRAyYlQJD9Q\nVwreRqIBF83JtvqGCnbNgYIJq57q1vIuEZo/sz8Riu6UZ8N3ZyAfYxdeKotn\n5Gbi\r\n=4+o+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHKoLss2uivjE3Fr5mvyYeh6mVzLUwzRENTTQtA9u8q0AiAveMkFmGVgpDOo3uAHZ17GKPly4f+6azxg+1Q+Zrjr4Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588530305132_1588530345733_0.13829383422316055"},"_hasShrinkwrap":false},"0.16.0-next.1588541047971":{"name":"playwright","version":"0.16.0-next.1588541047971","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588541047971"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588541047971","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2IpP4phK7d0yDtRMGId3jXMCg9ZC8cOLpNcS0OrGBKFjDQxaGhSIBgO+RBBBVKyAfHCjIsb62svGPwWUwrzlNA==","shasum":"c33c28d8859285d84481d517cf4e78370378cb19","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588541047971.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerzafCRA9TVsSAnZWagAAhggQAIAKwSFDI59GZ0kPbAS7\nKHyf9fF7Jw3GO2FPcsneoCy2YLJ6SrF+JvfeYeyuravCB7RIuWaWX4FFAnkw\naMvld89hfXfVpayXV055c1fGvHuh5jIQPT7jkQAn5UNQ+I8k64K8ms2ExAWj\nKTK+SfSy+7RSG3ncsjMfoWwXJAmHCcA6HIRwdI/jwbRrueZNsSv6QbMBxHZ9\nWPOSFJPLQcC2HkzsNvsJ2wRMFn3Zt15685vlaIkHr4Hne6NOaWj52aUz8OOM\nxgJM8afX0/tHEyvp0YuEpcEv5N0t5IP3Aygnl+1oM2A3pwjxZHaUtyF+QQVU\n5jr0fDWuH+NYWY36O4oo//i8ISVpLr9rQfYKRX4Dj2WV0xUq8EjP3sZq+WNS\nzAJFq5o91wOCNxVOwruOYo1QEwkqWhVH6Lm4lskS0WGABIPhO3w1OKH2DrFl\ny3KP9L7Cc3lD9HnPfyolSImHR20kfB05geZd+X7d5ijxiN4mnkL8rXUJYZgE\n+KBuMLpZwJBIEPn9lcQD3DERZGyFERG33FjAMYunc328Yrjh0JDhlokGysQo\n3b15jI+HjMB1UvHxJXYbb62TP5wql6SBi0Xzw4O1/6NWgIBVR2orYuXCwWNr\n2DnQ2OlLavikm5p+fqMv7WVSr0MEF3CwhlKsuDPexLa3KNHglNCGFwHDYl2t\nbO0p\r\n=mOWK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/VJb3SQuNJYLvMLGM7nKou0djVJ8vVx7u2mhHqFDqAAiA2IB1+bzB7afTJZ5lFIUt1rgZ8ZlFiTpd3Jv6m/U5XRA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588541047971_1588541086605_0.8876035406314349"},"_hasShrinkwrap":false},"0.16.0-next.1588558599146":{"name":"playwright","version":"0.16.0-next.1588558599146","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588558599146"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588558599146","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Fn9CskD/E/+TUfPHMDaygm7vGCV9c0U/G0pDPK4dELRlwrS0nWl/34gqEUIWhbzRmGLIu48EF7ybufaEieXBtw==","shasum":"3a9de7aa7da3d93d6f90f04209a40dd7a35290fd","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588558599146.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJer3suCRA9TVsSAnZWagAABkkP/0eH05TBiRzKb15B5kq0\nHfLmPR1nRmfabl8WRnCpgXiqTXa65t97ULD7pDpkl21eWXv+upMzg4ySRC+a\nnL3tuQedIjYn1SLohzw+gTW7qoJAbk1FoTALcR5uX+YVMVUouhzdQ9A9g8JK\nMM+fXopZSZlBPWBVkUhR5EvEc2wqKve5jl3JYtvygv1N/+hvGLXmHZhxi6ax\n0ZnunbmZWXLi8Wo1g+Hw60U+qmyCbKDKgoc9CcSkJlxAUWYeDq4xxyaiNc4z\nW/yOypxCNTQHKo1eJmLkVffPY8OxeKQljzY8kUxM4QFjjLfx4EeGGmPAiHdM\n2A9pT4PJXi1o2b/4An9yLSVrFxhQAL0MYaIpfk9AqGrfnM68QVx0E0X/ktvV\n7Y86UF481owr+lwaZV1O95AmxenjFs7rhbilIt5lp17SpI2DW5FYZKvQuPcD\nb0Y7op/dkrLLJ89/U7rHl2zCfaipgpI1ijmk+vAjMVns5jJ8PPztEEZ4oTPT\nPwGcPOxz4Ux9ynPAK9+zEZ95JjnPKGv+TS5YETJOk7XNEB2l/qalhIKiA7Z4\nQzmlJgHEuBXJ9tUxCyobwD+9YP/9JxRP3RI+VFTXsQCBKObNSD/3gq9VLe26\ncmSNARwFmgoPTxvMdmR+OGV62GiGi7ohFM70VV6PNUdh7/tVliTFks5Ky9sI\n6jgA\r\n=xOoK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICLY+jeVQ2p87eN2FuFocauIbTWWKuvP2IIV30f8k+NMAiBX1gvSPfiRVNsg3KerQinF3Vqh5Q+2wLhsqpKFDW5F2A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588558599146_1588558638087_0.3507032639620893"},"_hasShrinkwrap":false},"0.16.0-next.1588608981605":{"name":"playwright","version":"0.16.0-next.1588608981605","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588608981605"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588608981605","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wUnf2q8hHeYn6Mqm+fP6RFfQHcZ/1q2uZ3gamosAR5IQPQv3/DhJjd/n6flhc4rbDWhocyvc+lEZl86BOLbTIw==","shasum":"b9e089dfe89d898ecaeb9b89d1082c1ed8206834","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588608981605.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesD/+CRA9TVsSAnZWagAAykoP/3mTu7LxFhoQYw+Hopl/\njmTcvpEFZpVaGCu8e538ZVq8ySPIbDlsExz3A9VYlEkFOStjNV0b0MwN1OD3\nnQVDVFiXmZ3DerwlpiKBEo34RYJx1mlt46I63kSsFBdq/I/UQL4Kg3Gu1Cs6\nmIXZjzhUhi7sOPYcrTCbIazpUJRn7lzMCzkP825/R0vTqgUuw65P9x9vO/vW\nag7OJp1WZ598LUOi+j3VmI+K9/1fOpWvFkc/EwcJTJg3b2iDP03RQ3QkQM+y\nAmwv5k8CgZArpGK5LTnD1HFCn7ZfsofeX4xBUz4rWBFnou7erXQ/soVYZnn2\nlPBActGVSKn0Nrwahb6ceQ85j0JiEMIXm2YYbbOz6nE8Btr/BG8VJJGnKDC+\n/ZXaLEJPiWtPfyv/w5L3vaLhol5EJPVVtY+q3nAWs19BD2JcI4MSTmFQZKia\nT90MJrXoouitGaiWOWH9Q5e/hTxEyISCoPLF4BTMws9saD1aXteTtammd2ih\n3KaCb6evbenHPy12tphiNHNQURasBDYkZE6Ozqajx5V7/vMUzTSyLVlK6/1P\n7NtBYIjxgmq7GOSbLn5zxT/UgFbYfYgLZQV7GmSLhNo0tdThwhOCiD0Cbh+h\nW1mzSqTE+l3rrJX7T0haD4oU0Ox+O0znuQfOSMXJhpas9QPqVYgeQUxuVTLK\n+43w\r\n=3j1L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIADrs3mTay32KzB3EuLoeO78aAyVOtEVFOOGs9IBirvvAiEA2HQWYRRwJ0BZvZQOwap/XvHDWVEdOx5R03vjOk50fwQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588608981605_1588609022041_0.1107475831368121"},"_hasShrinkwrap":false},"0.16.0-next.1588610198535":{"name":"playwright","version":"0.16.0-next.1588610198535","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588610198535"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588610198535","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lyZe+WTTB3pYm5axfjFckD53L91bN6nGFC09vOBABFxy29OMQ82PD/6ZtTP5L3zQw+sPKIYC6tCWSIL/gb5qDA==","shasum":"bf835f90b4236f964ba9a7bb83f9eae16b2b9917","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588610198535.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesETDCRA9TVsSAnZWagAAXn0P/0QVb4QQrenQTKPHCK1T\nK/OQbR9GBG1FcYLpTx60v/xAzv6u9LsUpDI8DDlLmdzJHLdVYPsquCCp+Dqi\nH3NqBJ8EbYsocAxRQ+nWn6xbI8d1VTqr0c3rdWSdJ0jkHkme0JpRyx8J/XJF\nMGKw9ayLXbS4W6YG28/kvYRFV8MJz/r0Wfcd4BsO3zStXapoMYQdHJMv1OF2\naTfDP4yEz0MEZhXUSNbkvRyKHOX4WZ4RedvpG8xKuNG9KUaAS61gyboW0P5U\nICv9vYJ2UldFwzFktE64GSxRoqYdzi/gpO6jY9g0qf9UW5Y2HZYzZzre1IM+\naI/IOTDVQGzKnt4+sfYObbjO9nKR8Q6qPUNGNe4GxF+OXlV6cCdLhkDVWg3u\nywsUon2XOnuXOYrm2BIuiUZlBC6yfuw22zXFsok4mur3XlKy1NotUe6w/wj+\neFwvFBinVP2jOGuzFdfN3OZZBmRFsRgV++45hYJxzq74VYYDwRQZ297l1RTn\ncRvEJMaBPHOj1xVwpQnSKJSI/2hP1VwM6T2niFtA0AM5L41L6Y52TQBbPJ/D\ncBn0TUB+zK0kLWB+6hX76oRxg5E9UljsIVqYgnctXodAZAn1MT+Rxw40LPHW\nOltAjo6pEgAXG9X3qhh1pgiVlCl7L87+TR0rG07ucthqF98Qp3E7wahLh0ov\n3nOa\r\n=AGZJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLEHCHAydVdCK2m9810gD+u6u6W0sIB/vBo+j7qzrOlQIhAKGO+L7QlmgHIlPfYzoUZnDlhLYgrDGa1m1Msm9OaKC5"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588610198535_1588610243401_0.09943652902992595"},"_hasShrinkwrap":false},"0.16.0-next.1588615552166":{"name":"playwright","version":"0.16.0-next.1588615552166","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588615552166"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588615552166","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-QMjbKD0L87WljYgWAtflJJl4p4+0rFu4lHUyAsoRWr9p7MBhzedebo/JaamfBhCrbj1vcgny9IsKOIUa4cPPWQ==","shasum":"7c340728ebb6e0f4406c8490e1e9bbce11e93988","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588615552166.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesFmuCRA9TVsSAnZWagAAgu8P/1sHpnf1SXryprshYuxz\nFbzQudsH+0OZySqUH3T0v6eQsJF5fouJV9QYr43Wwumt9POWckZ4IrRNEQZI\n0ab4eUfTgyOZIqWr6n8omP46zkJqIM80SZXEiKX0IFzmv5c6u2rKjpd+Qk8J\nlg5QNahLDSKFhRwi94C64EZQyUhMDGscTXWrjciMStqYCkoU+UInrrn+BpsC\nG+CTLVn1q3OYFfX42B/pQq1bTQWCVXU4NKDy5RIxJxbIHzrwvwqc1CApgvGL\nLDYjbSbDONrknyVFgB0K9wAbuZMdYjX2cjWWOTDbbs5k9O/CP28nqMn16Cce\nN98BLf6gOELm+0xV1oUBUOzv/xjTjwN+5jDWyaH0R6yTF0p3G0gDipUEy14U\nKTYl0woXIo3uo+7fc9xljhYHprk9JHaW5UHRXa8lY2yTZtizmjbq8hFiNnl4\nVLkt3UZBASjsiAp8hzpKkLpwZmhutAPNr0ifC8X5LOjUVc8ML0PR3r6W1ty/\nNlVWmswBEfNYLGQQRXD8IjrNt8PvqpIAC9lJRUIjh4kDUX3rTkyh4uXs+Aul\nzeTay765jOsaycD86Ll2KVV32u7Zs7sFQjnRDsD6T+mZh481SclhRZCVEnh8\n8sHagpVmaXmBopksajiY2Wg4jLrsnooLJ3PJMThg4VFYfq0AAPwlVB//HLGP\noGT5\r\n=2/it\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFbrsH+6irqRsu/9dv4ncO1GBgXoMKzteVyc58rRoz1gIhAIH0IBOzizWIbsM9fY59klsyHjAsvLNcfZ7Q9Le+Y1k8"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588615552166_1588615597957_0.012980856063295576"},"_hasShrinkwrap":false},"0.16.0-next.1588619410599":{"name":"playwright","version":"0.16.0-next.1588619410599","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.16.0-next.1588619410599"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.16.0-next.1588619410599","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-hic4sh6KBfL3aqa2h3PtBmYUXebif5+lSZSaFBk51usDjKmVZw2D1jfSL/KMkP0wYChNp6o1uUl3eFhyonoa1g==","shasum":"7aeb02e47488ffe2d16993295a1b94d9b658cdcf","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.16.0-next.1588619410599.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesGi8CRA9TVsSAnZWagAAheIP/Rqxj8aE5B23VqNlgfJA\nV8EaLSijx2gbI/ED1jbJ+AE/dg4iLL3nXtY3Ykw9A+YgqC80s1kgF5VvKFcF\nza4GW3gO2gHidi9HXA1UVkdO+oe1P8YLUvyXU15c0q8PuDFwRacDrKHygP/i\n7osAi+KCcURjRsuvDuXWpP6EG+odRnq76387EqGeYk4t3DRwCPpHfRfeWYGz\nk+MHHEwK/1CBVjk5ov6hf1kfkoY0RH7BiIMBL3sLKdytbTDpI55CyAjk4885\nfVrZnZWZAoFl+uSAacFnpq+W7A5s5j3wnFfTCi61amYsro4JpTD4yDu7+kE1\nquYtpfiouoyBuU42UIEnlJmeqp5Fu/H0RuWlQjvmcoPb5tT39S08cPAvwVlf\nYtSCROX0DtvBIpwSacKuJy3BNqCpKLNRE1sFYBydv54OJSIZBUCwGuQhAVeY\nKOMHS3DeoR2VzM/33xXm8hQIUSo/DO4jbbO99GEXoioR4lVRpnMCwC3WqAOK\nd2WuavePGakukL/uPx3NeHslzBDS4LP81T9TXy9qYbXjfvxbnCHb6Lh1WjRW\n8QHWvppDJaCmGtETLmPWtsPrKrdpghbJagr1gEaInmqQEtTN/ShjVf1U4shD\nAy7pJlx6raemXOHQH8ujUAZrH7ZoQ+xcwPvoCqZO6mVF8SDwdEudvroKNvB8\nuy83\r\n=dZU2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJ17Q1pQ0pANQ6VwkjFLi7WvHokZWuVwSAVOrCJAlA2QIhAJ2L7m5EocXOY7FUZLsvufCaLLPTh/0hwQHQ3hKxHSYy"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.16.0-next.1588619410599_1588619452158_0.5914071804756171"},"_hasShrinkwrap":false},"0.17.0-next.1588619814609":{"name":"playwright","version":"0.17.0-next.1588619814609","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588619814609"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588619814609","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TUtIHL+NFIdhOyTXhoWn92soyjqZw0NwW5bDTgCyNL3v8YnYHya+Qw5eZvvvKIK2skv+qp9gZyxPy9nhiaRO+Q==","shasum":"f1373ac389b5024fb269eb95cc7d882dee608d37","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588619814609.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesGpPCRA9TVsSAnZWagAAuaQP/jcSiEGWc9Ccv6fR7pcm\nCYmEh/v3gqERfNJWnvUkGFLqcw8Qe8DfU8fMlgFBLUlIyBgE9KCCx+mY00Od\nvsGA+8DfCMcdH6rX1oqVhHrGKs93qDMp9vnqvQTtAWxsemebUwM32QjJCENK\n+ShR8vht04FmzFIlCWbT/uprVH2ZgZ/7sml/edYuw/A86UeTMDVVethvXM30\nkbQ1sRTQhdZGQX0q0ZqCYLLxNRe74rBsx2ohPt/1//s6aXpXqITJiG9L+pLp\nqo7XfTg5greQh1vPBnhYzPiPB+SVHzbEgMfGX9Ayd6vJ0BjsQOxdl6J3qdFh\nzNb8lLiL/ZF8R8bUzM8t2IKprYjiTS/zMNbmSkhPRaLGy7zKn1waZv4dkcNT\nD7RC4BYcPdYbfKkXouuw2pMkAU/0FCqdbjRmLOGXDbcHF3zA7iIqJx+B/XMa\nmGcz+LBFsKK/5jdeZO/X2kd9I+5nc+mSocQAGJXFSygx86WgchWvxf7plwOZ\nw2W0oYnowi6gTRoNqs2EhnorQi2DCHnFo/BDmWp1VtNVOEFHe8oXmYFpMk5m\nSIIXNdksQjh/tUHgi3MG4FPhEFoJSp+m6YoCSyazY7JKlpFiXzYAiLFCsR6y\n8Yv8F47fN8dx+ylOe3EJ5UtdMlFMarSB9b1cxO2ubRr+ye3xOoV/lIY+RMLK\ntZV1\r\n=8XIi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP96hUmwZkD063HMMVhQs9beto6fk9FInmWGWwZIW5qQIhAI+mOucDMVOKZX9iOQYQbXiDssyHYaOJg7g4/4WATpvk"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588619814609_1588619854909_0.10320606588319436"},"_hasShrinkwrap":false},"0.17.0-next.1588621116301":{"name":"playwright","version":"0.17.0-next.1588621116301","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588621116301"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588621116301","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vIhbu5rgkhJOCJ+AfgI2XqutkdZuR0X1PWUOgNfvWTzZIRi91m8i5pBUKIrlqchxn8FibsPFM1Sgm1SaMeaG/w==","shasum":"103578ec636a0367a9baed4f50afc7dd2d91e04e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588621116301.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesG9mCRA9TVsSAnZWagAAiaMQAIjLy+EHwsvcz5jsdg50\n1fTMdUc1XIp5iosBwhdKnLkaDhDov+Z2UA1ABW/TdBIqbdWNjC+fZvkfyl69\nkTRvr7BAqEmALBQztQ4wufu38822DkADdMOAR/QIyDdx10WEf2HA3iAdqeVY\n1fojwQsU2Iw/FzlMbpMZ8gj0USVMcXmFT/SzyQZhN9bta/G5y8K79oEkI8Cy\nuloMr+LR7ytE/GW+22/63g13SeyKz3slPctVAUjq7IDUUcZQA1YbYN3WzIGh\nzXJ9U1g9RppW2gqZIqhuw8yN/Nd8460biuodak/uCmTRm//DsRBf0XVA8ofA\nmFL4DLZCNe5MbbZasZPCW7Cvr27K9EpqhCD4pD3Sy17QJgNxMWfDP7sTzl9p\nQkYzjMJucLTxA/k/1Ox7r9kU3jWSVvGPsjhaXatDH3DwX8cT8LIZIlPaCJCa\n/wJiYuhiq4HJuJtd3BdAUS9NZuU7KuRd/zmcJuIQS3nHZNCveUrA/UUMb56R\nkNrO6ck3ws7JCUT7IBW0E4wVFKX1k7nYSldrZTJwHjqfP6Kj9EUy2B5dx3io\nPNMgs3qOk683PqU69OXUGyvAsbnN3VmYmAvtcjht0OmrFC6ihj40+qV+hy9i\nsCFjbMSvgqFwnNjc0SQz6TW1RGcYSxEJGlKitO4WJnBJBuEAZYsK0MBbdvxW\noYLL\r\n=FGCC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFP0UHmvVYhzcykeH99cmTIYHfTcgVgxNGe+SjNfbTcyAiA1GdA77MWniAWLYPcfAbTggz1B0wfwzZ0fkmKgmUHjjQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588621116301_1588621158212_0.06510550216668687"},"_hasShrinkwrap":false},"0.17.0-next.1588622870868":{"name":"playwright","version":"0.17.0-next.1588622870868","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588622870868"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588622870868","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-23MagulI7Q+MGEYUm+WnNL+IvmavKIPXoHjEPyF6nc2WJe2GbCMLN3o1LNbfkOGZWUJyFv0lxgy+e/z5Bt83rg==","shasum":"c295891c4d682ef9e74014bad0c5ba3d2484d73b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588622870868.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesHZBCRA9TVsSAnZWagAA5BsP/3glx9Ro1sRA9zAX6/O8\nlepSq271lRcL01W4Q+LeA7u6+bF6eJDGpps8oKiBVDI3R+8cVfGlwP6PJ4vc\nZ+mc5jdEizS6gJfDnJxGmIdfznpsVNQuP3+qT4lm4qxtYkO4kHJ1J6tyRM+z\nEUQqGE2B4Y4xC9yZmERz5DyuPfWamQWYGMvjyftDLd+c/4eiMHmqoJ2ks7eO\nAlN+8MD27l/JdrgrzSX5Bk+L2X7BvBuZ2XVurs3Zup57Zb+YbuRltf/5sM8g\nuYF71iOwYySNX8Lt1TgNVpNMjKK5Acy4PQcP4LYYGN3phM2wpYxWdD6XfvFW\nQJPXZJk1ZrKWO6/FpNSWMRZ4t/2EQevBPZGnrHrlZm8VrpTU7xzyFuiceg/i\n0ZlUxHd4atw5y3hiae2wF0uDg7N1OEg+bA/D/XXwSLBd/+1XznJtaWHYO4DT\nPTuFxoWszfTQKPuXWoRKIDxPZ4FFRtgC4qGU7xit1HOtoh6SMn1OcRUBchZe\n9Z+Zt6lHVexi5w5FUtModZ14U8+olcuOeNuvPgNgbANMKWOvvc6sHC0X8Y4I\nyGZyuqvp9HejdkU8F0E1nIbH6g4+r4/WtnDbJ0OVryT/dHei+CMuDG0tf5T/\n9Q7Y4ahdxXLdHa5KDgp4QyRP7ffg3cjdYBX9/KTtHTIw2BIBxgRElYCsA0yL\ntbEq\r\n=9HnV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjtiUu0zcZMMMwgc6LABkNkrRQF7gc3vkLfKVcJTh9+QIgJ4JqXDeLg4w2Tv7R3NiVrwFU5knjJ49DXMsZOCjGQSQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588622870868_1588622912709_0.780188366859728"},"_hasShrinkwrap":false},"0.17.0-next.1588625124973":{"name":"playwright","version":"0.17.0-next.1588625124973","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588625124973"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4131.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4131.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588625124973","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-78dV1d/XsZcGN6d4Rc4EHVMZ2Z65bj8PuM4ZzybUwPkb18+Uo2VaaAhxOGpPBDRY1np7X9w3UzEzaZ56RoLPBw==","shasum":"b8b43fb449ee8de2968b9647559517a41fc4029f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588625124973.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesH8ZCRA9TVsSAnZWagAAosMP/15xBmLcb8aD4VpXULIQ\nCj1zSke2bGRAEGPgqZ/UhUhICCzfXyEHXkcaVqNWeDSaTQnmcoh4QzX8U8bO\nKfd/rSdY02SjffAYYb0v572Y2tJy1gqeL5zvJMDmaqj90Q0gzTlmpioPeu1+\nuLISDiAQBubJMqXSx/MGGhApwUmc/wTTZQ27Oa1WAVA306BbND7QYgOLqHAY\nP2MYq4TENpTZQC6ZGhjkGeWXSgeSXUbPy99i7AdmtKCOGj04Kh7PJN3kKEY2\nLNZlnWUVJFDvM00NkaX3/UatZbGCTSVxjwBqB7uNdhU86LVV49pByAAJtbCv\n9nbEX88Fk9tSAxAhYD30Z8sqGqqKWFcq0XvP1T40H5AAmQ9sAiaTwhl6LJgh\nuPDAZdYhJMsR0b+fZ8j8fCUsGRuwVO6A2d3y8m/h2g2XchpFiJ96Bw/H7ZGT\n0rv21XlVURhohk2MMmPkzLzTD69U6uYc70X5bsc4GXf6lhhF8uANXDoCEoOE\n47yF2rWitCQZ7QcFmS02k+zW+yW5g6vX92ww79KKXfpKVWrbpu81i2RkAht5\ndOFrcWrIJUiSXX6hpNM/rqtAMa7p2FLiuZovg2hgWXjKD7t2KpqEmP6mN8j6\nwVHyuVW8G0qQ6SzMU13V+vhj2J2ItP7aFl19spnkNxNHlDBqmuwlosJqeW8g\nQNQW\r\n=ZxCf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/rTmIjFmfqpKDPRBhZP68cWgQ4hJ3yVbjXfBUCAAHyAIhALpnec0v+93IEDBqR8HATNwaXaUn35TNWB3rMH+n8D5u"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588625124973_1588625176691_0.5586067629498523"},"_hasShrinkwrap":false},"0.17.0-next.1588627615536":{"name":"playwright","version":"0.17.0-next.1588627615536","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588627615536"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588627615536","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cCwqrm1KOrouONPdvqhQjm/BoxZ3wiynsj6/2AOd8rQd370aVFTrLTSxU9shO1eiy5rQB5f2Zsqld4vlefgFQg==","shasum":"0c8bec307370f76365610f464942d34b55e06c33","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588627615536.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesIjSCRA9TVsSAnZWagAAYfEP+QDepMXwQEC8/nNKe0h9\nniEleGPr1uYolHf86tFSJDVxdgW76CXB/1nzRPEje2l2iEsnhZ27nbrmQtD1\nZ5SqiZ5xbpogQAH5coFQQWMLjppSaC/akm/y1xQylZgBRfwzDwLLfAtod3Mn\nyv68j8Wy1JEtKzYJtQ3PL8JERH7mNdGWQew5vIROaygXrUpAtC3YQqbH5vZb\ngrcUMyjdiI/5zUGcY3XNwqgPkl0XYb5czpXDWSsRZUdb67NNP5/Gs3obGgLe\nVKzuOcOo90ZoBQQb27S86/mMTjwpy7UvS6/iE8EGkDAIMgc9+ySNr343Fwog\nJcyxZdRUhdkfCn+wkjFLJ/PIKNkkLrmJ2fLrtIzfv4QMBQm7wPzBGDpUCizn\nA5IxRXuBCszOEA2w2dB7cOTUDOPk2JxWOW8kRImKwLyKhjtNF2HtQryrCzMS\npa+MQwY2zbqhgd1dveWz4dMMYQuX4Be0zSb0uvJ6EmgR77MYdN16DXcCDCIj\nK22pXibtzTgv7nTCzLby0l0emntUKwWlOF+6I79LOGBSIxQ+DCcUTs8CXdiI\nPSXXgYQTOPhS+82kSibSuIn/j0fElqyKwL4vU9QZXn4beZmZ7Pm15HwVNOmL\nbKUjq5nMS+l57w6KQaKfEYsLzifvIJG4KMJ/laJu5vLaDsL9T1iaaF/X56A5\nL4M+\r\n=tRfs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChASwWjTULYp5w02+EbXM/t5VWOxsK1xRwT4KG8j+wlgIhAK9MXxmZBLthduesC11HpOmkL0Et4hJRoJgUuzjXfxr0"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588627615536_1588627666109_0.6315911008928765"},"_hasShrinkwrap":false},"0.17.0-next.1588627828629":{"name":"playwright","version":"0.17.0-next.1588627828629","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588627828629"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588627828629","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ZzkSUGL9BW0j54mJReVUwiW3NGjapY+yY2yb+FeCxPYXEDtPMRm9mB3xlmdctEQjuWSH07QelvMUtpi7kl/ljA==","shasum":"453fad80d113cc287eab658071fec1bf87ed279c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588627828629.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesImhCRA9TVsSAnZWagAA4rwP/2oSY0OtoPHfRM9Ik1LS\nR5KzwvWUNu5izG16x0PCfLTbMilX6xekeaxincrj6lKxiIJa4coFY//isBqN\neNAKj8A1q3VCqNQcp8YkI86/l12pmSryjw2u1U784+mTUJyZLslZF0k7P8YP\neA112g62JqRmps3p1TVKHojNJ3SYlyCX/98CEetVMX2RMIN2GqojtaxWHoEC\nMpKyGAmn3uUGRXo0wsPWhtvum83YPpaeVFq5IYDS9laLJJKRhSJo2vhNkpDa\nUY2DnbTLQfConMWKkSZ53wHxC2+2St5fUnFlosUvzsIW274b5W8UOzyzJFHd\nVhTOdar5K3Lqn23/grG3ogNj/vRu/GaeBppEqN6TE6hiAN91n0hqN7hUW65v\nvrOMfqEQzSu3eKVAuibLDBxdCj6/a1vfIapqXBDwOZZcLMU8hZl/hM+ZTCZd\nbNoAi6zDoLjXhQP7X2AMDnoYdH8lgHXLID4WCEzC4J4Gjg7srcmu2tL1/WhO\nSghdzrvPF+VfeKCNC7cOOnch/5GY0+/FmNSyw/bYJFeGqA45gH6AcB7sNh0s\nM/VSrDbaPYAajuS5171M8yo+Ztpsa9RKvCgikCyoa3TiavqCVyfdZAjYe9Da\nHp0BeGAXraG4FGbjK9cNFn0UF/6HA9hsrgoKVvo8xZAT55iTNRcoF0KBQlBS\nuEfe\r\n=G2yX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7jjdX1wo4tI334TY9iXQ3OElPrLinFZI6rmbNTTvqsAiAacMw4906gzUpbqxUslzYtxcRJ0udmqkhzdDTOi8fbhg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588627828629_1588627872651_0.725793754701592"},"_hasShrinkwrap":false},"0.17.0-next.1588630087726":{"name":"playwright","version":"0.17.0-next.1588630087726","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588630087726"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588630087726","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4/8Qh+KSL96AQtJtD1xsucGxLFP/MRF5NQNDuk8rbvLvHu9ytgWf538Ptt4Rhbm18+ZkvLwsJVcqmLf8gYX31g==","shasum":"c46b0168dd6f0cf36e214d07ba5311546b88c813","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588630087726.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesJJxCRA9TVsSAnZWagAAjNcP/33Cdn00XDQkQlQFMMfO\njdiaE/INlGMN+GqJkapH7vqIDKNWmNKvsu/hoMX2fBTrCo8UWhKIWr/Rs1HJ\nNXPBDFznTk3VMojNRtWLgHk2WAzXox7VxQQlncUrcGdbp/7f5a2xuVYw4vPu\nuCd0fQhIpt1EMZ93RICbqHzxP+vkWDdj7grp+4F6HyMHYIN0lDewxud+qIws\nDGsc0z1/3SkLlMkzhcZyd4PSi40kgN2KmKQX5IEMw5wPiwHEbJFpY0Upjq7F\neAUXKNt1/Amd58mhv4MwjTMbQ3XN3X3iaUfAVOMnj3TvQFv+n+TbELhaMZj8\nU28pvtSAlRhRNPPhN0hYgnYY5o2Q6YvmmaIgZZrpM+Tlgs8UlnhHG1/oAxmn\nNrZgeNFtSgyWd/XryL0kPpnRvP6Jm6USHtIJ1tyEINs5vBKBlsypWH6SkoKy\nIXy9D1/uhBBsjoiAZniTuH+aDApT9ECWsEXxPg5FDZ2+Sxgpc1p1mf8eK4UF\nlq0P0Y2HC7fwi5hgZlaeKqZJYILessSWEIVzxtcIVCG5dGFwDZxLZ1H+PqN4\nQ51+ul60sbNRAlTKyRPWLMAz4Id76TO6/ary2CgGxv74hIpQ6oTIMeK438XQ\n5WYSNswi3upV9CUKJmkiwmH9WrERkxVyxBsh9ueQiZl9KalLm1eAM+62wNC/\nJlO2\r\n=tNUv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDcw8yR4fYF2MNu/8eU1MWlgSzRZ4X94RphWJI5NoEowIhAIu3CEdiph1wIF35ggsPKucVC1e/xeArty/CkdusV3Rl"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588630087726_1588630129241_0.6541486648945896"},"_hasShrinkwrap":false},"0.17.0-next.1588630656015":{"name":"playwright","version":"0.17.0-next.1588630656015","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588630656015"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588630656015","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-j1yYtaurKsjBr6VNIW0MYycA3oi6BlcXETneIUa8kh8jAju2RsGFK9PkmShxNfZ92qI1m+/0O/NAxniYwxkExg==","shasum":"64199347e933ca2069a2116e7bbd396ba5e390a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588630656015.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesJSvCRA9TVsSAnZWagAAUMoP+gI5J3Xi7iAsXXiEcmC+\n5KsusFgXXEdwlNvW7j8USwqVyjJdtGlubQzcy9xkKhjFoa/dHbWloNYIqntO\nX7qdzqxVeVmi8vEwqXtvb0IDT8YnDZdzBi8FEm2r7vGseZNBmXo6NA4dOaVe\nE0o4ZfOwuHqs1NmYdg8A3zclozs42DcRWtlmMZreqC5UgN2Yfclhw3JQKrhm\nau4b8OcWvNjKohGRWRNCzmp5gS+emian5RNqoeW3XQTNiCO6snU0h82aKiUx\nD5Y0kd3QQYRRTNNkjhdG90/8OsAjnweKfmJjnM5JjP3jv5Rd5cqBAeBNU00u\nadFxJol5KMBu+MjSOZDq+VnC0basHEdbVtiJ+CwvRsB3DXgYtsiNook11sV8\nwZ20K+fpT87jDnulhYX2YWXgAiZrSBSQonAsALGAhCXKGxmoRkgij63XawiU\n3om/tXsEVV51uEvfHjH3FbPNP585MxGrBePXYhySF3rZQE+bQz4j7a8iM7/D\nSvnM6g9MFRrTJhqFkRUE23s6YLRVKKHLCWzAhSy1xXVLe5tmcLaomNCP1x3H\nSvQrHIHI8ODBedR4pKpuz5SUKR/qaB/Tphxn0XBZYKSd4n4B2Z6W+0JEwqHr\npRftbAGbIweiVIhbTTHAEMuKd6/Y/6BF1MJuSoJ04+Qo/RIwnDujGo3PWz4M\n+A4R\r\n=keCl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKkJw/q9jT6YoP1r/YBkph6iJnOeVd35PacxmMMD31ewIgE8nexV8sw1vCbSuZZpCjc75qT3OdM0xK0z1fLmjxUJY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588630656015_1588630703252_0.699039717466182"},"_hasShrinkwrap":false},"0.17.0-next.1588633911831":{"name":"playwright","version":"0.17.0-next.1588633911831","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588633911831"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588633911831","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Zb5GmIil5Zmx3D+nLHeVgVdawxqgM7PSp7uehpvEoIIOCfOAvplP/zCUyGG+xIGzQHyf5MK6uJrrTTrkJlCEsw==","shasum":"e14ba252b02a1633719b9891ac3c0d15fd70906f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588633911831.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesKFlCRA9TVsSAnZWagAAbG4P/3sSUAtRbo+Qe79fov13\n29gnNMsUkDe0ejkzaw6d3UpQoLfWc2bw03goc/86ubzbDL/GdHVru37Vtitk\n7xex+Bvi9Lq0c1L9BvZ867yrP9TKfrOad+ZYhtm/F52DKvGhhbfnyzjHdEKJ\n8t9oQm0omsbjmcRL5ZOgteIHQXDkkjqzJqQhGl7AEgLD/yFxA/UjCK4kUcYs\nin1a0muCSx+eGfL7AYreZW694MiUtORlCResTHWyVLuHTkv0IiqeCdLP7P6b\nzMhgniTeIL/uEX4aBlwFNkKkh5Os0zQMbXTGQMDxM66ZhB2nngMsPi55gAT2\nLtnvM0RQRJzZMW0MWmcYr5x75jZGq2J8oNcksLsyzdVUkoV/PHe2p07Jbyn8\nbCPqUvP3/y2F6/sbKmjJl7EyY/JI5Jie9/J2sEH/zxpghq0BMzWV5VmILWPD\nFa36ZmvVaLc1n+dFEFwghAV+WTTrIqMz0Jphsq4Iv2eNEvhEeUMw9Dy+KR7j\ndq8FOEQeLd64k/4wKptdjjUzjzupidrhxJiC2+ZpqA1PtyjEXFhbMthBsTYd\nxHmqXh4RU+amCIUfw0gfhiDGGFkohuCu5UDM16pdJJdrKwgmOUFFJxUtAtB1\nwGhmGXgWtFn+sCsnCzRB854NhOdQ1jdQsZ7wL1Osw6VRP1hJ3FboSw5ha0II\nAuJb\r\n=sT1z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzDR1qlGe8iNDpN7yaHxNJ8MTQhO9egoIm7WcxMghn7AiEA+6+sWF5fIJsjU9yUl2jEMByF01Xz6A+NuzEruQtUfcU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588633911831_1588633956587_0.38611718716734966"},"_hasShrinkwrap":false},"0.17.0-next.1588635118582":{"name":"playwright","version":"0.17.0-next.1588635118582","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588635118582"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588635118582","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4dZ2DfeALVZ7O8P/g1CQsy16eO5Cpqz2xeYDpQVz85aGo/UL9BLOLanVyOgtJoIYjkhT+adW4pEiOJVuu87cQw==","shasum":"ee69c435ddd1bcffc736b38f3a1b79cee0fe02c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588635118582.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesKYqCRA9TVsSAnZWagAAwpsP/0jgrbSdSsA8fKzCvAW2\n6f02H8jzvDf78ZcvfBNCT6KUhvpUO62tvPcAZd9CphsRQ6ttsKnCSh96TFBn\nS6ezmf2UhXfJtBTWEkhKpQB36cWn/LxFwup/LRp+Ts9/mYIYMB799j/X5aJ2\nwANWkb59uO0uqQmqa8EO4wodK0WT+PS3xMS2W7f0C7xnKKBSz37MVsaUGeLa\nwAm/Rp+OzQvLPfSXte73dyN7k67CpBRrR61PrtbD9WcPJYFZ+Pd1AjfkxPBy\ndp4hmjih1nDBLP7AGF0YzwD0G2Z8IwX8RJPdR+EaW7hvRudrIVlbEQ0aD/oW\nRmz/qnlX8jxINA7GUxb4jmyek7qOFrbCmd7CHoWnBrSldaXsqXtRgT5sJGHJ\nj5NBV51o4y6vCIXp7ZKXPmAyKVvlerD3rR17cX/5G49Te3F9vfnSzWJmTszG\nk/oZnEcLOYk5oLlF0KHs//N/pZRJS6wiwRcZkI4k5rzMez5b0CWmT3pbH9YJ\nU8uq2OhOMKEt/sbUcIdNY2rapFQmnP3oecXXDSGPH0fAcDZRkA6cDHrzb2SN\noo5sViaAhR3kThHykEa3U0cVYeEWCqA321lB0OaTx1dm8Nwqeg+yNOUWHG9C\nmagUBZjbWulpgwYE8EKoQ5B7XJR6bpfn14o2AAy/0c4GEoMxQj5llH/ESGnr\noxiT\r\n=jeem\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOoX0f6ykV7jjSdQV8y7OtlYHIA3Iz7cEi+w3Zo5h1xgIhAMwdVRf13gnjyIA+zz+eWLGEq60Bt3bb5VD8n0lntwKP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588635118582_1588635177669_0.8527603694040711"},"_hasShrinkwrap":false},"0.17.0-next.1588647648263":{"name":"playwright","version":"0.17.0-next.1588647648263","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588647648263"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588647648263","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JFh4R5ShaxKx+cdHJ6hKs5vzgzvfHHH4bIKkVD3cfWJFUNBhUsAxELFYHK/NIvZzS9GKYxqnF0jvNB4SWHnOxQ==","shasum":"a1d561f9f932e702e9bcc09233d421def8e25caf","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588647648263.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesNcOCRA9TVsSAnZWagAAFFQP/3bYlFeNpfy10nhY8KUy\nxinQXc3uiE4w1DIbEfvQaj5aZ/A6XSLglvTRrNfxHssDpeMcihTs/HjnF3hl\nObZTolObhb+ID9upfs5S2bVes5SmRbQL0ptN1tPnJSKQAlgKm9rMYSAUvai7\njuYAb8YnetxRpnMrbNUNiYlqq/XVru0gT9c7MaN1ecmzsdlHNlzyQEzZSvVO\nfLyVlUVGv51C26hqFmSJurj69aZko76w0O+yE25s2H3CCReBjQo6Yc7O7o57\n4bXFthVe6YjmdTZE1yrcfO0KrGC7YmjnVefgaOGl9G8cMM1G4GRQStsCoiBF\nbX2JJjygKw4nkG0fgR15GdssKubmJJtsG5ielDqntAKxNUeqbejaf5S4yAYv\nsZ57Tfxk2frDKgxJuShPqDwPRMSvnDBVUYVJzS2pbTqCtnVumyZTfLKTHAcY\nWiewHMp7AsLm3LOppmWEPjgXsGsLu+pAMpgR1vO63Y6t5TJ3zFJ03jrbqcZE\nqAySeVkhJ/jW7LEGQEzxoFHooj5NFPMWPmcJ5fp16pRV9h6FNUaIdYOAI9m+\nJj9f5vQW/Q7en9OHgO++rxkPKzP7kFiTDGCUcXKiplZEDBKupRWLeId7OkUI\nxZdfZo76FL2eUb17BQyJphroyGu11Beb9RfVmG+KcD37QJo6kIxFAWiaRqSh\nUZbZ\r\n=D1Dk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCg+hAckT410Aoq1QAT4fxSY5rmw3xqf9ZbFedp+lcrxwIhAKPWIhzO2QaYr+2s5j32FFsjzkOC8hflHVpHwLiq0Wj0"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588647648263_1588647693694_0.660542475904903"},"_hasShrinkwrap":false},"0.17.0-next.1588653974228":{"name":"playwright","version":"0.17.0-next.1588653974228","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588653974228"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588653974228","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-k+4xJueoI8ET8XDx4CEsl6vc1fDrA4FvEQYkuI0Opry+kOL8+LamkbKRkAgwY5PSuFdwfa+4Loyx0Er5aeQMXw==","shasum":"a1be2e8b6b5039c6c46472d930554b266e163b87","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588653974228.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesO/ACRA9TVsSAnZWagAAzDsQAKNA/4YL6xHDz5+FNLr4\n4cYi9l1Qy783Oy/K7Y4TwoH2NiY9cvXwXWlDDMftporHnF0JasAtPS8wOdU3\nyDwQymrRT8QO/wlKpDm8tsfBXynVtmztDAYLiPJOlP6JsY4sE48nLyluBK4q\nXIRLpjh6kXJVQpmwt71wUSFFhM34mX8Ncn6WlTwZOd4Jv/uCatixoctNeisY\nr48oTA8fSzbLIy8wc2+unr6j/ZVFoVtVuG/8aknFfN5vz39zBiVJgL64eVbX\nuUCCbu7f+1XkQ8OrScqIiDLE/AW3gr6fZ44KsljKMT0lSv7jwrhTCD50BTWi\nQVchjIzQwxupF25QjaKnqOuLpOfha2eBT7hx8+vZhJSWd1wsR29EdvwAFk3j\nYlHKF2hXqY3VBS9Rz5QZYpsjNQ1EtOhaw+k2nOAoE6+f67BvlpxlWV5e25Vo\npYBFUAME+dFyT7nD1CPTlp9P9g/6xJU6kKnuA4azPeg0J625JoPCLl7zo+h0\n8KXDBjCpfKVFD/tb47IWdMyhoPrsyh47V2qkKtOoCLjsRx0njCc2jkf/RkUq\nw+VlnlGkVbC3430Fec32VGkc5KxtNDJxmDkfJ7PrDsu2abmJP/31Cyzozh8E\ncCxVKk+WwId3T0xbfeYDDC3m5T8MjlXeVj9IAeBnrCV874j3JNTmZbw4c552\nZz53\r\n=jnWh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiXkVm5PjyeJZQGLC402GZkKY/jDh7/+V08VfZBqeYdQIgeH9RiAi3RlJv8t2Vka86YLmAJe+Nc6G4hKOsAerB7Aw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588653974228_1588654016480_0.17450283223447505"},"_hasShrinkwrap":false},"0.17.0-next.1588654314746":{"name":"playwright","version":"0.17.0-next.1588654314746","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588654314746"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588654314746","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wB4Xk/k5RhFlcxV5/Mow5LWl2JmUfTvqfq5ePBhq9WTF9McANaL3sA2Qk6dUz4iJqm5IKRKA8VJl5Spr6MpH5g==","shasum":"caaf5720ce036cd9ec9414e453dcf35f5e9e49d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588654314746.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesPEVCRA9TVsSAnZWagAAb2EQAIS9SWIQ7b8Z/WBVKr6+\nrT6hFro4Vu6KKq5iCKP8lMFfa/byhH+bdLJPf6F7P/me6UhV1TXj2fVowkpJ\nyDZVUo/eJy18DiOZ6FJl8SHpFqiSsuPXj5VXF2Br07erKp3z1MSYeGvz57+9\ntFPOxf8NTc5wIBxdp/NgowBOIeovDQWphU2kLaCAeJ5w+KNY49cSfrq62Eko\nnNe5bB7JRUoDal0AUbXFK44pbEj5Gb/wyqoJ/lX0urqGr9yu47CX1Yltv4qL\n7S3Kxyl2u6ZKw4RE3X+JgkNxIc8WRT4UEfqrhtA440RFqI4i8W2NSVKeVTjO\nwsksXz7VqzVTgaNeE2OUJcqv1Rqfx/VcEXmnQ9ebiri+M/IdDRpnXnJSzJoS\nEIdC2RA5btqVYI91nz8d/WkYl0yK91EGBe7/VPLas2OHJlm+i7mvEzjPYyHi\nl9bHgzVVxeIdaycMZ7MqQB1U8VZ9Re9by2oWh51vdAY0+qto5aI3vHbyrPc2\nzbq3K7Halcrxr7vQnvfGKPgCVbu21+tn/dvBZz/SdZG+mHJYkY0ZbPbvKQPW\nddCkmyutnP/X7EuP3jhLx1Q/jRFgFeS5mbkWfFH2xg+LO+jcd4LbuQG5YTrL\ny3UB3BfRMMiPQbC9V28o7FSURi3rnZIkJcgjYxqti5PRrd3gMWl+d1K56Q+d\neOuk\r\n=4uSA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICaz9y64DfJJeu+E17k80xzrvLQNr+9hj0Aa1F/yrdSdAiAIzaKilFyZD/wiU33nMEVXvh7fglBCi+xzt/n88Tx7cw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588654314746_1588654357114_0.7168412899938339"},"_hasShrinkwrap":false},"0.17.0-next.1588656385161":{"name":"playwright","version":"0.17.0-next.1588656385161","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588656385161"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588656385161","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LNdP2FXrd1eIMD6Wzpcg2ZUzs3xoD147QW/dqihpMUBAsBhrEbhzxqFsHJXyecZ2Z2Wz9rFi0n+BtwZ67JsagA==","shasum":"7e8ea2064f1c180abf768c81a21f579f750928ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588656385161.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesPkrCRA9TVsSAnZWagAAuZYP/3CE7cce+HH6NKwDx+zq\nOqW5vUXaFoXT9ZcEoN/qnMPmtgCL8u9IfY+1Cik/ZMuRDr9c8fobfYEoiFEZ\nZOFSB+owbFUm+mvLmi1sHTGWBpqXl14iGNJUNxE6D5sGgUFHIDF0L6cnFDOL\n9cP/6tVUxjl2L0xthHq3uPuHyZitDsT5LIHHWk15EWR8nadgSbZHEA/vO0jb\nF6Mm0ecwiPgdv1ol15YLkxm1ap7FeMa5aDMWs1sguKhrfuctazEemC4z1uQ6\npm7TyxoiYdiYfH0HzcfW2a8pY0wTLiuHeF8PikhFh2emERK+b+kJVI8RWRDp\nzHe4v5hTeBbAkwCOe3Flir5Q27GBWBo0Ligedjin8jkZd9/DRVpEvZ909pzZ\nBVDTqt2D+/KJ2Ur6oLp/YF3jYRbv2H6xJqspo6GgK2qDx27AWBBpG9s0S2mS\nwpAJCCuAkdeBGop77MsAzJ/hLV8S8vp8xmJR0jV4sLdmZphk0VFq+1jKm5Cc\n0MqaWspoRUV86NRnvpW+yKkogaOX/0zbwv+WbL3LCxD3t6wPIktqML5OqfOT\nLEk9O49exQqoO8Bm8u4rfb1mJgA9ASXPqSvd9W02IvwC3Tf5UdjiNEUFnyOE\nstjtwPlOgxqmEnGkaFbT/2zAD7p61/i5cTWSMA6sJBf2+qbv3LXjzGor+4eI\nunJm\r\n=kXJ2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDVuVkCZIdGfr1ISp570hHkEBN5oOMnS2GUvTn1eQZegIhAPM4WMWQ7QNOvm6uGL/PhT2L3Qy8NTW8RygPgCzurgjY"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588656385161_1588656427007_0.8097490124220152"},"_hasShrinkwrap":false},"0.17.0-next.1588656585642":{"name":"playwright","version":"0.17.0-next.1588656585642","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588656585642"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588656585642","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7tmsJWQ70u4rIoEpnfyWzZQNWsROXNPwNDQN+qb6nZsc8jg/V9mzDM3KQAaCQj8N+U7ArDr30sKawlAJ0NLDBA==","shasum":"5519cdf80d232a843bc280ce9a6f17f9e65cf174","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588656585642.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesPn6CRA9TVsSAnZWagAA71wP/1GAZ3WN101kUbRwEHCh\nOo3Yb3TnULsoiYrW95OKdeo5x9PkS1YaZxvvCF9sd9FFp+sRdCm7ezMvz6MS\n/pEiGh5eW0nmd+Xlmp1lGTn8ktpit7NMmjU2Dld70z95svbwuJncv3C7+Gqq\n7wuSB3jputCP3jCfS/auRWm2RjYtDeSB8d121UiM+lflpqS74GxGr74Ado72\npRyPyziH7JjfwvcUHLuV2H65kJ0y3PKpwT3wSCgqJjPXEW6eub1To1pltcUU\nlgfsqtbIG/o1LAgfdY9zdZ3XK1EhUa5h67roAGlqZGydhDEg9i5AqljhXdo5\ngeg5IoTAn8eXg6iBaqeTrfnuwMEvipptfFBv7Va8cbsnNXCuXnAcOPyqvmnP\njoAID5Dt9mkauJLgEV8yk3iMNCIULn+4fbsNBx3TJS+7NdI1QO/fvsod8GAa\nLlUtnhFivosdSDyQou4uh5sADpkLtXLiHosIRLPOUPxiWqYjNcjHtU9AmHdo\nIo+t6UZ2cTe3yTx07dbtbpfiCZGNt0fsJyI0Z/4MlnfrpII7ZfK+/Kg7urTR\nQuFOOqynQD/87rv1isAXYoRFk3kxdE2vrKVJpL39U0pMDi7rGXlB22bQrF0o\nk0WVuGH/xZhjLm/NAEZTtgp6XD3AzzuOQMVY7WPVMLirAxKyk1cJQrL6jBI7\nEaqy\r\n=3Z8K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICEILoeZ06zmSTB2IhJmCWMxF5ogoVVLZF5MQgWEApRbAiBTP6jPiaV/qpKTkFDpCcbSHhZHZGNd4gEC4Az+4V7wqg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588656585642_1588656633934_0.2398960828896184"},"_hasShrinkwrap":false},"0.17.0-next.1588656608785":{"name":"playwright","version":"0.17.0-next.1588656608785","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588656608785"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588656608785","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gtSkvKhP5Txbt/xxnc1LAkDul6ZaylBSh7s18ZeNkOfpdKFpnfQeI2ah8Z6JL67k3t9OwHvPHUch8HcnH9Tljw==","shasum":"58915f0c5e5bbea9c78755f6980ae6e7c76f361b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588656608785.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesPoFCRA9TVsSAnZWagAAaXIP/0l4Bd0Cl320gYRUnaW9\nbAM1h07vCPVHv0vkuKtZnak1QZHkCAQO8WMIt7lAqh3Sapb42CkNpfub3jUo\nyKA51DuOcrJxMJa9bQ7qGv021BXS6kgnxDT/1MC1CBkDDd/KjQXgfxUhb7hR\nCle/EtlD1Me2yUFkAWixzTDGog5dHADf6lib8P2aPcfzv/GkIVZiA/f2JTzp\ncd3ocM6nnuKidSJopdx/wHGO5pDbkL5wCicsw/ll+Po8R/IFWwvS4YGTSE/W\nusNM/jpj3uI7f3/hZ7VtobHRYAqLggztniO9mzF/+Hf72mj+jsjtmwulRZT3\nyqStz4Fd0ujRJBC8BFx/YQsT9QjWbfJv+QKsSMcTC9jyvtpE+U+lWSsM5L/O\nt5MvYi7MA6lm1+mXHLXBoP07zYmdSFtnsat8ihkE3GghB2x1aquHoVRViB6Z\nE8m7nG2ectlLayDSKn9MbUrmDDAP8BEtIhoU3OiC/rFSNij43RmR3REAUFAB\nPhBQrCfiuAOtdCqKs+2JDgwRGgh/e7LJAPve069XJHT1RnDntm+k1KCCDqHf\nZbrJagb4Ly7dghYfDmwdItPzMXTEgvVsFw9o3RcBmqVMQh+rW01ChlA+b++5\n/eLni9fiCSI6Y5NXBMmeH/iojpd+IWXPQ8wCbXE3Kj6ug52F/C8c4CWSEjgX\nhJWi\r\n=bdhi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC8rNAtuT+fHhao96AM0SzL9T9gSOBn5yip9FWSIpNnFAiEAyihYkpSbyUWdMiPdRlqP/ImVun9fXTEJUxfXgICft2k="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588656608785_1588656644600_0.24334259150565107"},"_hasShrinkwrap":false},"0.17.0":{"name":"playwright","version":"0.17.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cgcc7AnpR5/UrfBireUg+T3bdnrpFwALAVGxnjjFU4jClbThdkkkSgPK5g1TQQFs3ipg7ruuYYiKa+Ev+IELbw==","shasum":"c2a9cb43f65e1946e47fb0653922cc67392c2fb9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0.tgz","fileCount":6,"unpackedSize":8385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesP8VCRA9TVsSAnZWagAAuXQP+wShOkLxCga4xtD/78bS\nNyCRQHhzNRqnHypStqnkpSWCCTk2azsEtueQx7qMb3iA+HjOCjzVuDCBT8n8\nvIsWhGAlCVNycTgwpRBjERetTNI6bhaDzYj0Gk/1wDWb2VkG0uEIWNODqeqa\nwleJcVR/xOXs6HKCTPHisUEwuFiKzluJx0VtoSKKs7f1FC0qwBJCgY5iVxK/\nb1HXQoVMURxNGDTzLOogQOwmyDsYsCOepD5+kP1bLGEj5JeMeXp9EftEKugD\nJkUkDHeHhpupqtsYAPZ+F9+nGiJtv9N+tYNRR4UFfPHYJ3ddLIpQEWd6ULoP\nDjWF9CUTfbVSnuo+MrkqpPC00OL9ghU3d6VVNtL6I2Erw1YjoILVhFFiaGMR\ncRlgIT0COr7rwWLpth8eZNr7iSgggSA2FX6PupYrn1QZkByhaQrjgucy2QVy\nhkgrKtc5Zc2nvAr0/9r/1NNvnT/Bd+ZpniuTHP4PEs+EsaXt7D0ltPDwlm1P\nZAzLVmErcO94a87n+HFbw3XMHWXyaSK9uO4TsU+HmL1ccJGTN+6Qt2V7fphQ\nYc0kRC5Ns36T44RKSiIpEFxzaZhkJC1XyUfPEWR04G2KDoM2yz56gLnS39cP\nPErXx4U7JoLnNBUitj0ejMIAOz4l9YqlHEsvBSqp8BJStC5nDH1hDBYPNCzp\nJgTl\r\n=y2Ri\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUudZ0zI5eQN1b2qPlIQ+Yk8G8+D+/2OETM0IqFSPQvwIhAMvDNYsVHCMHwIpq/hWlpr72NPEQtBjUyzzMJ1zcGFFf"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0_1588657941269_0.15651248419138364"},"_hasShrinkwrap":false},"0.17.0-next.1588699931450":{"name":"playwright","version":"0.17.0-next.1588699931450","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588699931450"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588699931450","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-iHD97GceopF0JG/ZYbyixNa/xnJ9U8uHFJlAETrReewNjZEvkfUiXvziMoiJmReMbSB/o4RpVQ32Yg3meHfCYQ==","shasum":"55a638fb1ff67830facec3c9eb625b4c7c62b07b","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588699931450.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesaNHCRA9TVsSAnZWagAASUwP/37N0LR5mcMl4X45+VCW\ng5xL+EQNAiK1BcTvM4jpu2TIsoJauKHuK/eUYW1OWXkuWSb2qztO+H5+Fcva\nuNfhjnOxbUlCje+8k+GXWYDzeiXutKLERc0qk+Lf1pu4Fl48omkIrIFHoVxx\nepe8tYqPG8eiCPr7f4PFgvdiz/4FQeplkSNh0fYrHt+jaY/Z+AI9jGkOWPvF\nOjby5PN7KnBEf2P1mu+m4ijsbuK5cY1+zqBc47jK2lZ/IXWaNlwB8aVRB3Yg\n3cvVZznAd8pLURX+kluCFULQcd+Vw82vVMcM+nXoUHK1T3xBJS6VL1IhIkyJ\nu/zQ3rm8+Tqgega9rmwQ+iFQkC9XkY8EEvvHQ8jO9CiEA7ebLW2K//bNA4Mm\n10uKvUQoC4zTxbpcRZComDHWwleydhfq/a20S2IRm70gcPalNWpg8kQwCHU7\nLnTsewlerryu/oOvtJhaGGvdNAWbiknVAqe27tuYtp9nZqlyRFuwRXl4DeZh\nGr7b4DZ3Dvv/VMb2JZqzcX3AGUL2noRRl78yuB4cXf4POgjbZFF2uyVroda9\n6QvP5aW0201z7Rk7hQY6FcIjrqmP6CJVZwzdzuUfrCb4bH19Slv8jPAkyf2Y\noOkD6OtQNOvPPvCP+7nv9KCZnUSbbmAXtTMxztQD3jNp1LyFGjMo3PFfhBE5\nldnw\r\n=+0kQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxmEiTiem6At50GT444UmFQC6LbF15gGz/hS3pYvoJtQIhAJmoBgkuUUbfAEP7B10JaYR0sRSGXBLwo4hmiC1UKyyw"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588699931450_1588699974754_0.1344547703050929"},"_hasShrinkwrap":false},"0.17.0-next.1588700851658":{"name":"playwright","version":"0.17.0-next.1588700851658","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588700851658"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588700851658","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gI2ZZxQRCYwuQuvjDUP11pVWnEf0rx/hala6BxgHPHr8b+Nm5klDCQUHd6kPO3geUOuAUvPhLTLZrV313PKAfQ==","shasum":"0a282dc7bb49c699baa67c6aaec49a02e5b34970","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588700851658.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesabdCRA9TVsSAnZWagAAxEQQAI3Hso0IRBnXmTiBQvoO\nuGxT1h7Yyv2hYX7Bc19BCDakZQp60+nDRVPp+FCEM1Pxc8lDhKkZ555F5MF8\nBUPaQitji+9G503D1TREC5NY9gPnCzu5eTx9LSZo/UGCKoUuY9RISfM2uTOJ\nemK9Qis01GAfhH8oshgNNibIE3vZwmoczqVC0bSd0cur5+xoOOB9lNll91HS\n2lbliiqZe0TY29qO+PP/q5muAJZ/yjiNCMGsVbl/1CkEVVYTOarUYRn26ikA\nT1mKQQBWEF55IBEa/e1go7pa03CHykxpz96esLVA5tEcPq5M4sHMESoFJPq2\nivsUjgVyzamRbcPqhbWNTlAhob4l7rja+MC6IxdZvCVQysRDQ3JcQrfxeyn+\nK7BcJoN8D9+OqmS43IwG3vxqdpkDhUIzEyo4i5BcRmgKtR8nniTCgNAXl0WG\nQ+lyIiJKMgAi/uWdzQF+KDsR3J7lAkNp6NwNTLGkt4Is8DjixNt4UxgXxiOD\nSG2uMoTp/h2QVWksYysAk4z4ZC2JrJ3aeKt8pSmi1NleUdEmgpUPTx+WYw8+\nS0fYzDa72xgo0er/O4hvWZ33WcFkX/tvD/K6pioeRmG8C2fhz18hc327jFEZ\n/hx4yn6F1A8io7OHJ7NQBBqk8ed0x45aE7Vcuhqtsc0CGtKouXUxcDNqJJwh\nztJE\r\n=Gchs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoYYz/wwbj58cohGYePk5w3n19eBpK3ZwTdKSTCpwZlgIhAJpRKz5bIEedXZ58JogQPIH4jZShhLL+PP6eYbN0ZHQV"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588700851658_1588700893122_0.8357331481415198"},"_hasShrinkwrap":false},"0.17.0-next.1588706918148":{"name":"playwright","version":"0.17.0-next.1588706918148","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588706918148"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588706918148","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PlAyVvaaG60PoOcAdYlnWmA+nYVFU5zjDpcZv5i4ZY/6S6nSQpX0Ro8qVXMnyZ73agsQmPsscTFAgolZb86opQ==","shasum":"8d32f1a3a7e7a63c15aa9e927499b37ea24350fc","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588706918148.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesb6VCRA9TVsSAnZWagAA3MgP/0HWvUT5OMnHjf8zPLX1\nW/k3MvX9mr68oFkTyRpj99m7aXPSa+T56UV9gB+l6fgCbBRJtt3gwHdTIaO8\njIKxNpyJ8XNg83UdKzxyc/DK/PHvTwSV/jlUM47Kvr/mharq2Sf7Hmc2pa5j\nOLZoBJ4QezvI/Bdn0aqGrpahKXQ9lj0fUSv7rSSksvt1eM2U/Jger1fVRD6I\ndQyiJTYvGdmf9kbQ7pc5GsHSWFX1Gi0cWvZb+9ld+hJbQqcNIT/lZxhv/CKQ\n4hcFdthrxDL1J3JZn5G8V0DwmAiH5un+nmxzfLvJLNDDih0zE3iquSI5mFQf\nqCWK29BdJIHF7Zb64aec0WNxb6vANKGByFN/0/LwJ6tYKoF0YCQpSGKI+zko\n0W9y9hmQQQ9gohAjp7ijoYLfyG5hGjIzIo3ODl0Ne30Ba0dYWiKVXB4awGrz\nU/deRtf3XOFK2cNHEm9uCTIhzceMrx0quPXHakw2kB2WZXkHKto2hjtpzDwh\nAMkRD63Ej00GrR+A856NHjAcZxCwQLWjU2Sv+uBH8j7rTuhQCcQZYylT3wvQ\nhG9gFWR7fAPhr+So8lBGX98LqzRgZQHtN+rhnLfj91eW84xGaT2d5+ZrNF5H\ncRoDkUMbsb7cDivLU9EXLoGrMJRYVWfuXWlDfi55ThsYf94KjBnHy5rn/QkR\n9ouU\r\n=6t5p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICElXiAKYI0wa6Hakp1gAAEpi67S5nApiYyg45zt2EkOAiBJ3cGFiQ9QZ2qybIqtvN+DFwCXfTALb7hGLQn4v1MhnQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588706918148_1588706965062_0.5754948821455856"},"_hasShrinkwrap":false},"0.17.0-next.1588716393648":{"name":"playwright","version":"0.17.0-next.1588716393648","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.17.0-next.1588716393648"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.17.0-next.1588716393648","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-E4U/fmdkQyoBfGeQQzhOu6T9y/dGGOFKIQN/AOVVqUZofbj6+tPHR51nPPgsdpKG7fAVxohP5CneGQdL41l5gg==","shasum":"64a8d63f6f38bca3408dd4a973150e02faaba4bb","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.17.0-next.1588716393648.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeseOMCRA9TVsSAnZWagAAmHEP/1tI3rCIHxYnBRorDcZU\nEqs9NZ0c3idD+/eMNMo8waazWU6aNnoQjZt7GnU1vt4tAINpydBmnsOfmYD2\nnBb2AveeHs/432v7K2iUyz/XFRiRHXddWcgfdHVy1YK/XUl4hsknN1vIifz/\nng3hGeVHAkC2kwgv/uUNvPcB7lpuc4Xhrem8WF5lvsYNMXu9ZbylFwI+RJTh\nNl+Gwd2pxw7VXwrHwjUJ63TAJR9hogvUD6kkG81Yw6byx04ADlwrNycDrMrS\nOMLaa8MAX3sKijIQqBS8nQQXMuOqN/UNH1K/PFLTVosZMoVC4mqd1DZSELVh\nRy+QIRMCnYZuIIO8vcOb8L2JY+rX/c2aO4/QnBxVdYItkj+qZC2no48mqh7u\n7wllLBkLUSlgkOBwZ9q63uqip9d0xm8KLOcUE6eL8ju1JrmlBFUN+QvmDWPM\nk6K7czH92+kYKS15EAtIskU9rQUdMcfzdfDSMxYLTafroyC2OzH/W4NpAJI1\nW9xqBxw0pHJaTLb9VYLycsU2PKJjaWSb70u/KXrF4N0uvllqFGHezQlgpuXg\nHjvOTJtvkXcCwYgC+o0YudeLetCWsTI9ikovoN7eyGA2hYdangn/gpiVAW4b\n2Bmmp0dFw1iU1CFKRmD7ByGNOYQK3iooBBgtThq8libJc8mm+ZsCBlss17g5\nbobT\r\n=QfLw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0hTTdbN1rwSLUo27MeFcbWLseNI8kzoQyRBIe/gG1jAiB8tFdPsKmAuV6qYO5i9a29PuGJ1nG7MsGd9zNeDxpc5A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.17.0-next.1588716393648_1588716428374_0.7637652878736676"},"_hasShrinkwrap":false},"0.18.0-next.1588716565892":{"name":"playwright","version":"0.18.0-next.1588716565892","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.18.0-next.1588716565892"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.18.0-next.1588716565892","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jqiOjaFDNmL7uaWNqKjEqbIP4vgcrY39oplCVAXztHUuMC4Aba1Kx+ErsF9NQ2Jn4tbIp972nIXOLGx+aTP44A==","shasum":"49f3859f4153674cfa89ba86016ebe1e04b11bf4","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.18.0-next.1588716565892.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeseQ9CRA9TVsSAnZWagAAOZYP/30x5dqO8AZp6sqYrPGW\nl2qffRKzcVLqszYOlz/COwicWrWycbYWiMMylG/yU3LjHkrw93MytebEVeSE\nr8w5eu8+eHXEDYRxQ4xV5+zDsQQw+fNZIAEVRslfFrscyPsBoPEEA8rB5EvU\np5LyvZz6WpI+HkjHg4/fyyFP6CJnzkgDfj7lvVfDPDWQpUn6EBhoVG/LomWj\nOded8/ZZ7aU0CawPOdykmAuc+yx3/7+GXmBFNPyhU/JGFlCgjTy60pLAiA3q\nv7+JTO4GxCEcCE0QJjSOEtRdTToYtr2DehUPWcfeLAlshPa/yxGFGwumhgg6\nRlero7lY+bLgDD+Kfh5jUvD6UGc6tm+VxnvVKxXtX10TDGt76PgJ8yYiOlvD\nSY+QQvBU5KtJYIstzpEBVIfH+2iWnlhrMzqQIw9EV1UdjJxDXmi1eVDkWlTG\nWbZoo0KmIOXhmQ2HjZ0VivFK5B1Px5xOZuCMGJMpsyna2bF9fRotfEsAWDNe\nJ6GE0bBZpPAWQ6dltNFfGmx7svLkSl0+xsNnX4M9N75OKTlKJsBIEIwm5TDH\nLMlZ3wFnTR/tnV4CvT5RcIBoie/L3C6DkLlwXxeOuHhYOjpSoRvHO3XvyRn3\nllrNnxqNGH9L/5IQLYHP8G3xosDPTIgbyT2TYzngjUzV1EKZ/494nezp/WSQ\nlAIU\r\n=9y8m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGEIAkqCfrKB4OIwl8LHu5UYAo59ypGVTog3ZCvHhf7gIhANasiu2b+RrSIaZ4MZpKL3AgZfPIiSF2xuXBaAsivdQt"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.18.0-next.1588716565892_1588716604943_0.749455142944425"},"_hasShrinkwrap":false},"0.18.0-next.1588716914459":{"name":"playwright","version":"0.18.0-next.1588716914459","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.18.0-next.1588716914459"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.18.0-next.1588716914459","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Bu7HOw/mVM73B8E31Mq0PaiGtdyDQAYpSLhIxLyLr4moRF2YjcYVfK1W0RhSLvnGtSkAXrqmtGS4sNuul9XnKg==","shasum":"d57919de1aa9708dd12be3f3178d52a8147c890e","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.18.0-next.1588716914459.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeseWgCRA9TVsSAnZWagAAL1cP/2m/Bse70odYUVOUg9IT\nBbmNPxMpJA/doVQshiT3bottNvsEArDrJIImKalk0H4yrh4D0seFkpk0jW8Z\n/76AQLK8ElzpEo6x0jK/YQiMWuPcI9cz2Cc9NP55HHbKRzIv1h/iYZgWF1sl\n6kXNLvrhicULRPv9vg+uE0SsSb0njaoQM/S9dRnhJ/Ups5rJvYr8SSNqgCNP\nNUPOyJGFTDVhqRlXnf0jKHpckkoaZYJxQQlXU8Ta3qKtn4kE9ngRVPbs+4gP\ndnaGhEn5Vwnt8ifBHlmft9OCXJpy00sy1KX2b8zEUC+YoVNG4ud4IuKwprrN\n8uBB0It/7FTI77QEiWq6d2CC59TnMgezeuA8p8SM10ddUxm9Y22+gMOv6uC2\n6BcNpDSWPRXdVbppyeh3izcSOLsyCJvSz0NsZgz+Bsr7dD3XOASvSVRu86zR\nWW4SF2m6cTwyDCcm1493vf1eYB93yGj4dJ0se67Ak/LXupQ86hK7lw1lJCyo\n4v/sTDq8z/OW2HIRsWXLlvwOO5TrvTtcuE5QiLKKwyzQxc8W7qdaG5EKtK2Z\nE1hH1PT136bEBURrn0MeXCSJm2wNZtw16T3qob077Kthj5IzfGWZmqZLigPf\nV6RSHJQu/oMdV1KbicyM4hvYUSpZzsXgMBfqPDMAlanV8EZs6mZCPwyEFv23\n3u06\r\n=Jnb+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6HHdaTKiWviC2h8sjiY2h4azQCFQLa6yYcEAHaGDiwwIgMbdHO3tturb7kroQWyMz4l4Nb7rZavTv55M1hDO4JnY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.18.0-next.1588716914459_1588716959775_0.9277817854034791"},"_hasShrinkwrap":false},"0.18.0-next.1588722880483":{"name":"playwright","version":"0.18.0-next.1588722880483","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.18.0-next.1588722880483"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.18.0-next.1588722880483","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xlB4ccYcQM140X6kuphKE664O50fYJ/v8YEatMXWRy/UXT6vpXu8XYqbOcAysqJoVnInEqQFf88CopIyPs0Kzw==","shasum":"a58f8533bbd0125d7dcf610e17fb98f923aa8004","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.18.0-next.1588722880483.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesfzsCRA9TVsSAnZWagAA5nkP/1Q9lU4ESwUduc3/rXj4\nen8YK1/lj4rv321LP30dYd0f7jrc0Q+UrlxCbEYTIta0PBKpPjf/CvgQw6R2\nIBDWjcYhaY65FGWZGiLM3U+N29Zez98x7YBn1ajX4Y94H2JmECHkXqZsPs9r\nhMk2iEiGkvY8pas5idwYootoOzNtKAxiWatnXpL5k22HttfTmOUZzIZHpbMK\nPnSDnAYfyDbbOwCoM7NgH7LuQbZFLMwHFSHs3bcDC3PMbGQyvE84IPRw5uJa\n2vXIZ6qnKTcwhK0v1N3qfqa1Qmx9sdox2Gj2wcd6KXM6d3DpCHay4d1+jFoz\n6KwAIl3Lln+JUCTKGRPpN6U4FOi0rrqWnoIZL5qTPjSlsxoVcojKnAKmRZYj\nX9LRe5FwzdzbpYZjLGmQ8eDPspeHTK66VpULvO71z5DVigpmW3RyIiavInqM\n4fAI8PjrXv2r92CK4yoTnIOySV4EM6mABnIk+3ulgmV+QEPM5F1j2OkM9tKf\n3LWN8noZv/KnJ89JoM7E4gI6B6d0ZW+BLX9n1n7NtfVXw0ujHP/sqks/+Ye5\nBBdCStF7SeeD52Rhser2uwFyMUstB05tUlhfy7ajagyNsyfj/mhvWYWeodE/\n2bZo5NlT/ZAm6KZk1LTliK/V+RILlWFAITNny8dtdbLzazfcjgzc4M0+b2LR\n3SUe\r\n=O/Ma\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDx48nMkxt9gXKllFKdh5TB4ksTx3l7PSdaE/djXBxeAiEAvSZQM8VbFm8H0VOT89VRj0Gh8Tc668XvntqX7TlLEpg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.18.0-next.1588722880483_1588722924120_0.0687690986238747"},"_hasShrinkwrap":false},"0.18.0-next.1588723077925":{"name":"playwright","version":"0.18.0-next.1588723077925","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.18.0-next.1588723077925"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.18.0-next.1588723077925","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-B8OtPeUNAjzFhep5M6d6kBbHkLsiKpFyQuidIycoxDqXiBQEFo+VXMq8R7MXyPFEIrAxbIkwMkpppw2bp3LmoA==","shasum":"dbbff62ca08e5d9ca801ea9bb1b6e98b0227fff9","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.18.0-next.1588723077925.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesf24CRA9TVsSAnZWagAAvdAP/2RexZw5FyJLlQjVJIje\nMPCQlNOt0Fo8jIdlmlOflsClM/6hWKt5BcD/6bJIUigL36jPYS24/5aO641h\nnDDX+Kb8HS2d2nYi8tU1rw/Al7BpvJSUherbruDKXt8vqCxwogXxnYqJJsLe\np+zPIsE9OrFeNlW38BDkEz/YX8IA/eX8Wozo0z2B91OlJfnOQDwgE3/fzrym\ncclQcfGGVFCu2Bplpov3zeuXLjy2ZZU8Fd+IWk2HV7X/6RS+WziYzqg2NuYv\nFyI6JDwEHk2Zjh5jKpHdsN8Z9h5nJZKue6afEbPVFhgy1jO/NXGeMYgt0ZMY\nmIYvx8SElhtPBxXqMAFuAeST/LjZ6MR50E977e6JZ9/lRimW0G+1jInwef1R\nRQ95FJubQ/FYzxHFY2c+uwJ/as+aH3zGL8JVuTqy5barnm9zkvu5Um82B5B6\neJ+jVqxx3xcyiBtCyV814Aj90YLGjFWrI7VsK+ukJB24qDRf4EUqDgw5Ln1F\nJzRn35YE6rYlwB2oW+RJaquzv7PNli1xyddkH5fS2zLGg7/3nMfxXKS4eQSf\nPq9mm3+qxDqN4XqamXqYDsdFb0x08tIX/1IAaQKZa5m2EONT8QyLD6yH8JGL\n07/YNbNK1iURmw6SOSu3yHfcXnf1eEKJxXnIjpmqZ1apsW2yylLzZwXKptUF\nDv2x\r\n=HvFS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHn2+acjNFT2x/cX7a1fBQ/ONNTJ4MHj7xe+km5xanNwIgHTStfZC5hRFxWYpyOeqqvUnhGU/DHNuH/DWcR2exEL8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.18.0-next.1588723077925_1588723127483_0.5063164209734443"},"_hasShrinkwrap":false},"0.18.0-next.1588723290714":{"name":"playwright","version":"0.18.0-next.1588723290714","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.18.0-next.1588723290714"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.18.0-next.1588723290714","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-N4IqInch0GKDzVx8pOsmU1IeBSIeB9xh8pOAYgzACAs66yEh/9PJhFyGmzc7QWAye79CP4Ej82jNZf8hgZqevQ==","shasum":"1c89abfa96049f3dd08fa6c8f42ca6dd13ae4356","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.18.0-next.1588723290714.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesf6GCRA9TVsSAnZWagAAMx4P/jUdWwpO8zsKXz7pXAw3\ndGnwZDVnl2UILOj4LIBF54HJvHGT6RgiTQoxP6WDdnvh9HoYT/rO/oSuTW/Z\nILJ5Kh3yciftihO5b/+6FMNy0JYvcC/7YASD6MbrpjbEFeFsvQcKElge1KZM\nr3XThQjnhp2Mvj51YALyEurGqF+PXRzzZ5OHyUFTP2CidgHtDVL49TDPX3Y7\n07ONHdcseHUB6gQMmCi+SV2aKhuMkt3AWKCqwcEWqOASTcmhjndJZ6aVoSi1\n+yctU5gKb68RN/EgjBADllGKvpm/Hzw8QrYE5aZ1JGn6zxtl7Gz8db7Hjzdt\ngElKw7FoqyrNbGEPB7z21TQ+O4lpk+9B0EA5t7W5h1XLv6wa+qKF0qbE+G7m\n3wEWsQNL4jwwqRuZZrYAOSqZLANtzGGqNQQVRyKVEIZ5JJ1WoSSTaNQt7WQK\nVP7vb8XwzkU+/obDbj/2mkwUvvgE2CudY1H6mks3RecoVui1a4abZFDY5PyS\nh7FY3Z4b8ZSj7jCjzPsKULQN3ymPQ2Sh9MHhmjDfseDe2FyGsy210KJM53Vr\nxOL7i/0i6oX5J4zUkYGflt0Xzt/mfjkfM6A8Vsyxvkgy3HCIQjAkpfvMCBvQ\nHDzkKe0Ge2nDDbmx0VamPoRJ5XM8DblTGbpzxYid4h3cXn1fcWcR53BQ4GQ8\nbc4n\r\n=KK2i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu7EK2n+dxt5EfvWoGB419PNjwmYz9hXI1iiaDEgFYiQIgfSvXl2WBfPWBr7n07xJ5oqxw4GulIYDRsxxTNS9eE4U="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.18.0-next.1588723290714_1588723333623_0.5201882111427891"},"_hasShrinkwrap":false},"0.18.0":{"name":"playwright","version":"0.18.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.18.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.18.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eL0jJJxpwQHE9b/6H95ocpcfhkmwSKYwAPfxU4XC/ejyjM8nDRxJA7s9egyYy6ErY6K5KEqxLXiUG82WMN/kOw==","shasum":"8e3d3907b6b88919f29a349c2d4eee1395f0ea4f","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.18.0.tgz","fileCount":6,"unpackedSize":8385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesf8kCRA9TVsSAnZWagAASGoP/jJW8p3/kIc6dnhOuGJG\nUWPU3LxHVt3saE6VZQ/KEPCHCcvQi0L4m5K+70G7VLeghoKv8WsJAzsQqQly\nrDIZwsoD5HEzEEjrwKb9AgLGh7e7uw/S4QD4A34pccpEhrrB6qk8+aKunyBU\nU+FELNYaF0XgYQdFOkXrzGnPc0jaiWtsaOVdgKSmGNlq3g2C/cA0tHI4rF9j\nM9O0MzWf5xFrEz8t9Y6u46Rs/tRDO3twEwQlCgu20Ek+A9WueETpA/sXjPp7\n9FnwKlAqUfThvnbTKdku2kEFuxoHCKPkgfD8uO3Vg6lEiS+HRTTzddJiiRGi\n0CG0GPCFbHgO9lTX/C3QqI8hx3o8igCRydgAB2gwv84Dpq3pF2o1Fn9jNpxf\nMfHqF8GFOH2q4EwNCST/YNOsPC+Cbt+kD0m8/OyHhpGETsRojB/DvvvXqx8J\nxXqo3zCUS/5JcW4tL24jSfiEhmCWKOq+RZK9diLCNmYhR4eKEV7LV+bO/TWs\nAfWsQsUNaYs++NGk1zaGXg23wKEQdwvwMQGhBTXYxH6yTs9ZQVKm21IDijqe\nyzuL+2G8n5ZMZ4r09bTaa3FMc0Cwevdo3rpND3JO9GOFa7gAtbHlBj2sX9o4\nFT2X+U1xvleoRNJauM5n+aY2vha4Idt4vNvT2UIhbWTJyoaXMtbYCDZuMCah\n2QP3\r\n=FJyC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHffqLsJXm9C9qYp1oFdTNRRFSjIlBrg4jy4Tx9ZjfNSAiAIwbPf8ZExmCciZeyaix21NfToohLKJkZo3NdofRdtIw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.18.0_1588723492430_0.3273557150051194"},"_hasShrinkwrap":false},"0.18.0-next.1588724149190":{"name":"playwright","version":"0.18.0-next.1588724149190","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.18.0-next.1588724149190"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.18.0-next.1588724149190","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Xr/uXxXKJOebiqduwkSUlrgxXIfAqVLV1mL3ZdbZVx3McZS5NQgj6R3ZFMJWkG3xfc5esolWo0SLab800EYizA==","shasum":"71826611f57c26a61df3042ea0bdc10b7b99fe4c","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.18.0-next.1588724149190.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesgHbCRA9TVsSAnZWagAA9HMP/2ewt4zb0/nKww1skeM9\nTCkHNBfTsNGYasLSlL0aM5hkntGKLQC+ym9XhrDragMqLLBSb+6BgBIzHk1L\nz8MBo1RRe5tOL+f1nKyURCCBHHhc47D3DhtU4/VnryeZ2vSzKG72rUzeVg3H\nJPAS/QLykya1Zd+Rb/xvDpQiPkhDf76NHF7w0ALR6E20uJh3JQBkhsXnTdzp\nARPQMHXtDUYp3yiWeKsshLsZkHBSn57sGlgBSn4Z5zmMmSxNZjVh+3g2rwYE\ntzHn0yBZ9BBlNgnSyOgsiOwCuQbPe93TcnKn5tQ1O0iuPUgnHozbwdPv5pBj\nzLqtg2e3RQXrY7O+DD/U8qs5IcOLkbNgbkk7w5DtyRXb7nFwyDJ/b1keF2ku\nNtoizGQ/3UnGyXMtDOBYASZsV6X1z5wSbUoxqfkdzePj5LeF7aMjx6jGhKa1\n54j/2Tf4/MdvprKKdmHimPaeafov02ff/O/ur6sELjlZ4gAKVc/lR0n3LH14\n7poS515zpUsumuYGWQ26GkbeDGKGNbUyGJtv+aEoubrxnLElDyysl+Wgcpw9\nh/zQ0vFbeGbDo+5oep8HswHIEioY0dKsGL6s4jfS5yCmycE0d33CVL/1bDfh\nlIhJ4RCVoODko9u+4GfGocM9HUdNM+eJAv/kp4g2S2GjW/VyFUVI5Cyh/b3Y\nixhh\r\n=2X8w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHDKCVFHIDDloDTZjlDJ1Z+9ekw9dETmy7G6HYMSPDjjAiBUxwNBE2nQiNpl8qhhZhCGwE71DfeE/M8iWum3ElbisA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.18.0-next.1588724149190_1588724186924_0.48893774743341756"},"_hasShrinkwrap":false},"1.0.0-next.1588740145301":{"name":"playwright","version":"1.0.0-next.1588740145301","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588740145301"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1588740145301","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-sWUh4R/SPA6F0iWbVM1ctX4Yj6zz3Pa8+sgLAIAklJfn3rO6hQTKBiAi8/FjnqA3sbrtVb3+Xed0KQ8pOP0M2A==","shasum":"abd4ee9a0e7abd1cd9b17a0ba26731197f4cd78b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588740145301.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeskBjCRA9TVsSAnZWagAAfNQP/1/fJjZijFage59Qo5aR\nVO6JVp/Xhsc+dHnOQbE7g4HaA7zHQsykDo4zWIkO2PAgEVr153E37F+XKayc\nvS0oH3wXxl4uE2p58YKwOLD5qNYxIDeVtOBsmFNy/qgtTDIOANyUDqJBgj4B\n9bSC6XQiVxtoCjRTaSPlbvJsCbhufNrZdkFg98kBDGTqUDXKne2+gULrVffM\n+l1bAVP4Dk37LvZ76miTh6sx3iyAh1AL0qKQ55p6u2HKHiowmNV4aLeQ2lWk\nlH3kwyBIdlsng9kIEvafxKoBsyeUjvwUa1v1Y/CB6xg//uvzT7H4RQP/FH3h\nymzBuHr7CNcaNIsfnNi0MMF9AgmIBe6faTx3ABYFdp4zKX1SaSD90xreO8Iu\n5Jj3p1AOHfBcJj+L5rq9KrCNrX4kD9IevXyP0Id6gk//tfeqmzu2jqXTraoq\n1dQDC2DPUnaDhQtcNFdHskQpuL01aZHuilstcj+AEraASdpiXrFmQ2lZ0EoU\nJSlf1b+iU5pz1zLna6oYRzQgujays0JqtE4x82l9PI3376QDm15FzqmiCDl2\nip+0/6r55zMq7TApqz5932Y5O3QOG+UEgSBeiBJaNv37sZutxgxF+KXAHNX6\ndZlOpVuecqNbtfolRPEURtz5PQ1jK6e6PN0wRSvFkcJOOsOxZI11q52R8Nj2\nFf+H\r\n=HI2O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRUJnMpdPkLL2eMUHkQv9wv5ZHIYpS7W6RPAglhQrveAIhAJdRju3hpcOZjWXszQWHMQa68ylk/Fck9PAbKyakOaUV"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588740145301_1588740195234_0.14473769092357025"},"_hasShrinkwrap":false},"1.0.0":{"name":"playwright","version":"1.0.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xj6Ijz+yaljaHEeOLGxqfFwSxbr4nWOAkP1Yd/XxvF8vD/nevE1jJikH4KkMIi7XyRVlbS6CtrhyjwMFybXqIw==","shasum":"c3bd5d861ceb0bcb0c684d4201b92dcd0f81d28b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0.tgz","fileCount":6,"unpackedSize":8383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesrtzCRA9TVsSAnZWagAA6A4P+wTUoTlXcpUzwzUNBS05\nbHIjkG5Fa7BzFMcn90LDqIlrQvM+b9xz9sGqeVG9D6GkN5hpXoo6H2QxzrDs\nAQkiQ2KSrFmUcV7W0xhzs6tQOq++6Sl6ztmdPtyw4QBsCe4QRygRQNsu6lce\n6ttOHtA2gkCw2bBGQgPQCdwCQZHkQkK+NzxvIUNvANigHZ79xJghL6ufgKOA\nJWzMmt1qQJIMjKLvqvd8EOgUBOIs73McwXWPLu3BQK29l2tdm5G4gPryRu8A\nYT64GWXZC3eaAEAGItTOh4Mv3QiBBrYrumaFEWPx5Ccu3Xcl/frN+QsrNB9D\nut+wNW1/RyJbUbHOWiwFDdJ4W1LtURvB3ozxp/G8o8m7a9h5ZICOmoCPKn33\nv1xiShk/JLgJo2bKtkyzJl3yyegFJjPqQE2zbe1NvSaiJFAvEU1rsekZW1lf\nFxS5ojpSOimKQv4PAE9H7sUvBZ698d6SG+PoOZJ7sIruw9zckZ7BscgxY+1w\n0lIkgMokxS69mVjQmTiT/VCJ1IhzJkHBm4Lhe8RA9FqcRpGrRTSozS6H5W8A\nJIiE8/5nMo3yVHB5/ZQWwMfAYNmw/wWwhHBQZjRRysigjzpq1dri0XLoUPvX\n455Hc4yRyacFlpr0GHiH1LL13sxliq5R2tgOL9eKLEVR+z2veHDfcIzfPVos\nOo+r\r\n=Hm1B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFAjWhKyJTG+d79yKnIL4ET42Zo/7wEQ5hDxgamLN6f6AiEA9LMi9r7S6iC8wAOcgvlBKX8jY6jXfLW7RIEbxefKpPk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0_1588771698612_0.3641149471980607"},"_hasShrinkwrap":false},"0.18.0-next.1588785724385":{"name":"playwright","version":"0.18.0-next.1588785724385","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.18.0-next.1588785724385"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.18.0-next.1588785724385","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Fyy/IZmqPVmoZcjVWYGETWNP4XqCpxlwebqoFfPjBagjOKgLgIEyQJDuoUTlwt6RU8JiKZZBWKNIDUeOP3cJ6A==","shasum":"eb96a2a4b5e4f12fbcc6b083331e3ba409629634","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.18.0-next.1588785724385.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesvJrCRA9TVsSAnZWagAAH+MP/22pICDbw1p6AwPfnmrf\nKBgEhyhhxCcSnpNEc4Ol/Uenh2GDXYaJBUwOu5UuMs2RuTZz3TVyePmNnGVF\nVLueB32l8/RQ8JH+Q2N7q/W8hFCr/FRZduWcQWD5+gqNOz2Hhk9x7A75s+LA\nATkh3sOty8QNdUgfzPrVagUc99OSBV/BYC5A+9QWXXiD5HK5TLGdAIWBTNZz\nFXvX/TOk/2YcGi/B4Lad92rkTC0rImcJzA/yjUM/dryDTBOH2F64e3sJEyLN\nOOFcJ8JpRqIMZiTnMD849LbhwEZ6Gx4qdoGbY9teLxQ5GEEYSCk4YKqf+m5X\ndWr1MLGM2oEKbQ+9UXPWGj97dhky1rgjjWPtd+S8KwkijmYG3ftdDrlW3PmI\nsJReA04KH5ww1O5To0q1BUtUoZbbBjWFtixXNAYGLd8MKJ2IEo+BdvkrD/mj\nw4F5vjsODZfiVkSTTaD1/xSe+qSBiooeGaObWX2ewRgMjj7WCW/DnDfgiA6n\nDU+pUydE0zN6H2Mzkc7OrcmAUR1CUjeGyuUfgTmTCiaObiO7RJ79GsaZLb4e\nDmx1tGUo2dJBR+GCfD8wKS7OJSoVTM1Hlvz+yFnfW0bWlprWpudxotYS7EZ0\n+bbFeXgkaNCUo/PKhpM777Kd4Xt64aT+ww1IOwerVoR6cM+9E8twAtgmGqNy\nl0ss\r\n=D3yO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSpLgMd9eHX3U8iYxySEAVTI5GfUm8ywfO5KB8/kDAtAiBUGtu6ZkjXFuGy7BMXsak1mtyEUud5H/fzBwOYAbdIJQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.18.0-next.1588785724385_1588785770769_0.17589159940263177"},"_hasShrinkwrap":false},"0.18.0-next.1588787041098":{"name":"playwright","version":"0.18.0-next.1588787041098","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=0.18.0-next.1588787041098"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@0.18.0-next.1588787041098","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1l6CE8CemNYCPWLvr1n11n+QAspzGPXAPzE+wgFlGBdxuzHKkvxfeqxEC9iOXiBod24TblqBUM4mWP7WowICVA==","shasum":"6c341d134aeb3bdbb2a164cce52a47580bd78896","tarball":"https://registry.npmjs.org/playwright/-/playwright-0.18.0-next.1588787041098.tgz","fileCount":6,"unpackedSize":8423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesveMCRA9TVsSAnZWagAAwnAP/1Zeh+6FLOuIYzbQJ9Pd\nrlR47or0jDl3EKB81+rIiJdmYeTHeBzNWDgTSCx5z77PcNHLXEJmIq8bmkYn\nJmpT0B0VqmDKFJbuhy4CQROwZ9/gnPpSDnw9I+tJmeaS17oppGbWIDQ0Bqdm\nW9EV4BH5z+O4YyOVTVDO/++Tz1hCtgOS6UJ8GH89jz9livHfRGRG6iim532g\n06HEwCaRDhp24A4MCT7rOb0EAtm4rkny8X+5u5AUV8Jjdzh7QfgvbKXawy0T\nDo74ucBYIORXwo2lqBFcEJcx+BeUpgddn/0QlA1ho7S5KoumDMRUp1jDFDi1\n+EdQ7RxaJ+2qAJTfS7RF3Ab5yhXnJBoaMQjWV4I3tAt461ugmaX+DBotL3Ws\nSom2tCufjnza77STz3pbSYF/vvmdrtU3RKbvkon04okPQh7D0NleD38v7tuR\npOUxHe/Qo/kmnVCm5O6bDggpgXFR53uH7cU4wlcob5nuDbKR2OIVfWzpGA6e\nB7HfcZbEKFwi2ApPxkafU5JzoWPgRxQp73uWIsi5DUMPTUh9DtJ3sLOt0/7z\nJJ7YAG+s9/5hixliZ4bobeM3TjlBft0sT1jULPUl8cN5VTWzeXKbO+YW+Mae\nlw83TJ+K2b0HjS9zLFLfPeB3RIrtdhhm+TPmOa1sCi47qSORQRpZAozFcqiW\nsRQ1\r\n=Ivzy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDxuS8aOC7Cr5oY30pxEkLTczk3YWXKtwcYbyMWbuQpNAiEAr8NpeZMOiE5LXXz0bWLfhHLI/ZRSOLX64C21CqU7dTY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_0.18.0-next.1588787041098_1588787084262_0.044475924789196375"},"_hasShrinkwrap":false},"1.0.1-next.1588787237906":{"name":"playwright","version":"1.0.1-next.1588787237906","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.1-next.1588787237906"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.1-next.1588787237906","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xGJZPgcsJg0wR/TFPYPGr/3e/lO468NTTNtoKxOhYa3jAK+/G07iWz1wEJEj1FU4fQGaHJi/+XZBPZAq2qENQA==","shasum":"b4751c579e4161a07db7617df83621fc1b140e96","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.1-next.1588787237906.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesvhOCRA9TVsSAnZWagAAJNgP/ja7J/Cfqk3Qu1eWRl7R\n07o4ynTb+svzSNr6mLbV04xyDQ/BG1desctmH1H8uNnnj+u1FJWoR8kWnOHQ\nfbdL8wyhO543FbRZz2u4mbxYkiOe2EzERHDfv+ITv/GqWd1MNBDjLr+Eg4DL\nzcy8sm+FklOiFGLb1T3v3/9sL2CQLlhM1ncOikBuyrhP2ESztzioVgtDDefk\nHGg7uKkIvyqXLBn3Zpb0Ddg1fV1cbIPbheBkiVIW8TBHw7Lg9JA+BDzJIGt+\nl89UQ/kURpfJXaxUV2YPR85wIJTGHmnV9N2Cg3v3uIFiFJMkm0g3WbSSohJ+\nsEMLxo8SLSWH+uT8XQm2sKX4plzSf+hX+KZ2yBTMr1vAdsyW8ohYv3FazWVm\nkNQoEV85du/B+gjYC4toyCfof2bVf5eSMSqYmxZBOk8vvJj1mrJ9DWhSMwuO\nv1Ks13xPXz8SEXisPTWg7o5LGHCKgZZH9qxsH8o8aMRYt/226dXarq9G8PS8\nJTonWPzOXQyukBp8N2/4+ew59QUsJSLBX7Wy+7T+0wiXsUiwH4l2UrwpmDBE\n2Gn+nI6JvycE5ypNRbYy4uW8HwgDE55DQWJH7oCow+p/x5N7O0yFiE3dWVHR\n6kBUhQ0LBEcbQG1S1sgVVwBjlRmI/TUWZcVegnBd1C86pTl6+w3BOO1mkIji\nLlOB\r\n=Pz7L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIChGB2zRMzjMXfy+wI7q/psozCQ1t6i22+MYmrn3eAxrAh82k/pgRzbutwqXNnzAgz00sfVe8d6b4eeIoqdmRVOP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.1-next.1588787237906_1588787278189_0.4711598559746668"},"_hasShrinkwrap":false},"1.0.0-next.1588792560553":{"name":"playwright","version":"1.0.0-next.1588792560553","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588792560553"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1588792560553","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-aY1qdyfduG2lnV0cF9PC+dd5KI6x1SUcXa3oka0y7L4MvzZxlPjwgh5Jh/hOSbRFel/sEjcsSD2PkmFibdQu1Q==","shasum":"2bc6d84c7c500a76d3e4b13e24956c54049fef8d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588792560553.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesw0eCRA9TVsSAnZWagAACnUP/1XzDXdTKA+XZV5kZhBP\nKe6BTk6Dn+00NtIGFh89CL9P+bxIlR0qudSxcRHjFf1n5ER9oRVBOyp1Rkle\nuPLdJkPQpPpaM34ch+ooNA3caTbsiO9oSnIH+iZxQOZueiozv54ga30UoXWy\neubvWrty7OPcwFoMmoMcB4nGsfWaKt+md4FxrpaMVcBDC+EA9k7vwOz1RLhf\nk8em3scJlvdMoVcB5KNvgJmyE7vgq2bICT+tGQRNcq4cwEdlWEYrq5MJacrt\n663SqU6ZAmZ9GcYj+koH3iWwZDyPt8IujGWHLItADbrdIIcEZ2ujy/REeE3h\nbVugwyj6mUbDnmeywomF6HxI9okobh2crzd2sAW2AvQRgpk7D3l74XlOD4OG\nrT9XpWoaMOCDSqHIaJt1upQlM5isrkAQEVLr9tg0n4h2B8GaQr1Vngvlp50T\nPLddNPUp229dEHslKw1aFaGX+UprG9E5SEI+Nd8JR9lnDYNyRzYdheRnQ4bA\n7GhEfUv0ISujqJ8evIjKnxy1kh+XKzMuyYPbM4HknPvXlHBtfzOPNxVrinVP\nkZJVdWRJnZYGIZQUyUvQMUBWcKU7ZCgjvg9sYPvNmuIo9HroSxurbXp/W0/L\nVzl4h5Zhg2nvegl3z793xHAlYH0rCV6fhA/SF456LhUi1+ZZCjtnlqU6Ksor\nWTHf\r\n=yRVs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbB690esXPip9iG+RyBhHma9AS3NTqIZ4uJi4sL4036AiAafu5RD2UirEDBAE2UJ2RvR3YcAowRKEdWfaebxTmd4w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588792560553_1588792605983_0.21006996844626458"},"_hasShrinkwrap":false},"1.0.1":{"name":"playwright","version":"1.0.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.1"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kVTE7uvZ7OcDVOBx7MVArUm2nbzzzpauKV9tuVIAH6vWGsOWbGGALUoTWMzNDzsPPTBJXXmxzC4KgI2zN+kVhw==","shasum":"326d479829a3505799ddc9988cc8decf5a7f8376","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.1.tgz","fileCount":6,"unpackedSize":8383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJes1U2CRA9TVsSAnZWagAAI3sP/3aCXZSPqYSZL5qASc4E\nZf2QPZa6mSukjuZyMzt+6UvsH6sNmaM5sx2cwm241mM8elltV+K2ZyfWSPjd\n4rFnPp2+3/jzHDalftpdqwYASu6lZJsMGz5GFhfppM+Cx9XruHDT28nI1Mof\noVx3J/8CnYaGQXColV3jgivztcJivp1pwSCEnuBQFKoOTIvBW1xxD0qyrzaN\n3Nz1Bez0EXViE84y6X7fNQpt8Bs+DGbVXNBohI8J5yZyVCrvTcQCYrITWL2D\nH5SxHl/lN0/TzNz3wzLD+1yCq0AiGDZczxUDq2peE7zfEIbvslWgnVgt0KCb\njiQODGiBMSpdk3xVXCVAigMbTHnCc2dXsb7GZ3ZZFTYfLTcpd6tBCVe8GXGq\nLKMKweqnpEzhY3UF/ftaxDDz1jU0vVdd4W1exo1nEHHpWWq/vWM2a6vj/vVl\nOoeLaVZ50jyusbHsVINYRSPZrUzBwQ3aLhn2VESf8rZ/qtX3Ll0NwpwnJ2HC\noEqV6kRypusRvfHJgajkKFaYhCMPGDAZukJzfGpMcMglZS+Ocz1II/5o+rno\nF0dJxCnx+AiZo3BlNVRJq9Yc7NI6REnZm7axj6vTwls+43KINeEjw5R/xNbY\nHoUB/8IbXWX5FqYCMxXadZXS2JPYOC6wB7ktAteDsJw2wTIB9rqn0p8rxtgB\nnBi9\r\n=5AWp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxVLmA3c9tWeNPVph9rsv1yPmE5ii5DuTOlXBJYHEouQIhAM2/3N8XjwBNIBq7P0O9A3nD9vZhtONa1ExXO4U3T6gO"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.1_1588811062238_0.9473055990397277"},"_hasShrinkwrap":false},"1.0.0-next.1588874799371":{"name":"playwright","version":"1.0.0-next.1588874799371","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588874799371"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1588874799371","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-knLlFa6pfYlyPAmd+6wu7TkAKlzWCTD2eOA9QhhnnKSNJZ9QxLT9XTIbQnOG8H0Pj630kceIF5L7VmNPYskr2w==","shasum":"8d2f3ae133feb6f31556675f8fc5dd5ccc7e89e2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588874799371.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetE5cCRA9TVsSAnZWagAAUb8P/0GlG99O+rkcNnWA7hMi\niIlMEzNkbhu8iCG5Ki+jKVuVytgqzZpWtm3GRAWXYsR9gto+qrT5gBZYVRn5\nD6du28nhTqnSfJNtTpaWZVyIttg710jidkTEWapU7X6b3ytRrGE0yA5bHaKr\nZVtt0gMHsEOGBL3WHAhV5YtGTDf+wX+wlQQtjtRStQk8c/HL2ma/wozZg8l/\nsrZizGdpPboLFlWulPUZeBxKA1l8uHDUYhUuDE+cGOSoNt3FI9wHmddxeZYp\nGG/8635TPqHgk3EoHJmYFCl3I53DTZFB44mZZEnWbC/xE+ijkCBMtQMojQjn\nW3XqZ4qNeXfYhwewOmk1EvM8iMBMGNoGdjBrdV+IP9j8xK04f6CdoT1+QDeN\n0DF21T7XIwr4HrIXo2FH+IMKSVxkEsP1N118qqqitSSqartyyB7RMz9OVAII\nO/ZwIOZYXFSjjwsj5m1XzBJOqOUNPm06vOwhqEenlhlKIHQ/DjKPHFok7HCU\njlIRmenX9sAeyQDwKnawQYDQXmDU1v8rrK/cQFiI38az2Q0x5wSB2P72Q9N5\n1PDYNEJL9zYaKbH8K/d7emM8s5IkEl2VbHZOJ9wn0deht6LQEownG0Sm9F8F\nm7XmFcvr/CYdKHE50uEcy3IOmAD5dgXYenmZPTo34dSYE2PLW/j+KW0L6H00\nfjAY\r\n=o50r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB9rRVhgrwjGZiMTctugphGjpmLu6oGk1gv90DFyw6cPAiEAkDS8b7EziC1gvXkDEVrDPUwXxYB1by3EolRjWb2CHDE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588874799371_1588874843625_0.3273183322625708"},"_hasShrinkwrap":false},"1.0.0-next.1588879906950":{"name":"playwright","version":"1.0.0-next.1588879906950","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588879906950"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.0-next.1588879906950","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RMsADAfYwMkug5UEbRA/HI/m/dDaB3Dh/eqI88jXm4jMOmS9VYB/VCbc1bHfwsmPWQl60o036XeS+Re4aFkyPA==","shasum":"d948eb4e0eb6ad49f5cd82e9775186d0599b69f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588879906950.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetGJSCRA9TVsSAnZWagAAY+8P/04Cna8SyYcPaVL37kV6\n/G5ToD37fEXRahhQChsFA4bri8zy4yQ4eVkbXu/kKvDNjuPYHLS4kZRHVfQi\naHcIipumAzzClc3wnAPBMkHWY7Jl8xt/7vbb4hPk6QV6RBfOWbKMQzfxYFCI\nWik4VYxmNeRhvMvFnHo1hQoPqvdSa8MNEz1n1NJaIN/g9CdeAfyTpsUHhLc+\nOH8AvkXHrDXHrDbi80NKj6KLZPA0cwvcyVmXx8mk7vltyLZ+UBAtXeHYqhdy\n0sdnrZxSJ6Yr30ZMSY1WXzW7GMU+3YUa+eu507k3ABrCquRxONLatQxFa05j\nNc2H5j6UEqVzEpTedStZIf4XQPvVSnFFiPXfjb4TIFPOhNRyGBHE78mqrpXt\n+LNEhErF0n8dw/k6fx86uNLfp/bHedxJ7M3ohiRjT8uJgKwltYwVHcWDLED8\n+vz6aBG+1s7YJkIDKlavMvMk71k9gsrWExnTH9pId3xOa+FP4pSgey3bfMnL\nCf8bO6IEKt8G2cbv35lrKAY81ux/li1M8A6JfAKox+/pJXjz+OV3ZMPRmlHi\nEcobAjV1+jhBFCixe++b5SMek1ip1tBACteQH+X6JBHKI1R28KZnM7n5D4fx\nTWeyHYGCW2AZ66EbKRZTxUUTTKOYTebo2DX6+Ef/t28oec6L/px8eRU1nNn3\nVQY0\r\n=B29E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNKGGAfOiEv14WKmrjdgvhNGEWYXxD54RDVn1tAWEJowIhANfxHXxMe6+ubBe1wQbGbmDUYcSwac/ac9ks2C9RGiBp"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588879906950_1588879953961_0.47734136046020326"},"_hasShrinkwrap":false},"1.0.0-next.1588880010687":{"name":"playwright","version":"1.0.0-next.1588880010687","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588880010687"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588880010687","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5zU3bQ3NUPYn1OYcWa8JWQy2uzyHbwjYzh/gsVqbk4Q/nE9k4yYWeaeTWFcb08h+iZg9OUJcjoH44JPguHpLBg==","shasum":"f6f5ecee8f9f650638c4c45ddaf8985273532a33","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588880010687.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetGKvCRA9TVsSAnZWagAAdY4P/RkvtLq4JHuezFZ7W57C\n6nSMVU7TRov3fjdIEbGGG0erqg92xeiaibrUT2C4qJr9y5hYW550nNsDyvNC\noCx1vSv4BcvNtIqbRQHTHWI9AkRrOnA8q9MGbFf5KhBsHWMoYXo7iZFHqo+6\ng9IpipxaYm/noY85i6RVmFLrNOwbqMpvhdblg6DqaZ+y8kGXpDSNO/20RyHH\nYXZZbfUDXAXyXUqmMSYs0Huc9uSBexSr0ULcaJN6i8x+PqxJL8k8p+r+9WUF\nBpWRjAoKXb5ICbxx435vGQkmXTKhD1V2EbU1V/5jkf8AqwW3eVW7m0TrsDk7\nJSq9G4YXLGILJj39qWaXKjDfah6Wbl1Y7ukGSdZTy2xulHFfHwI1CrJxiH7a\nhEZM+hLpGjL3YmF6JtAFSR/s4in0uN9yrksOrTQDnmG1zZ/w7Y5cDKbVKq4K\nMdGF0r2epd+bFaPRHD+571iSXpYufujq5L1htQ65e/22Trq4OycaCqnoeYsx\nIShTPD5PtzhW45uDJsa5esqj12SqZuPaDFXFa+L5Pm+9LVRcmmLegPnyy3Mb\niRiI6xRq5zfMkYmW6pLzN+YtZjsvhWXZEeIUQ7/H8LR7nL+pa86tbTzITiJg\ncnVuWx5YknWiszbsPfsfFEjNGZ1MB5E7gpZpUD57CxtLbSGOd+LheSVxh9vq\njlIT\r\n=4jMb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwGIgiwdip+eUUI8Lu9p4s7QTSsvkk6kXBtpWXRPOwuAIhAPWufxpU+9XkB976L1kpYTz/fP1U1tQ5lxDJCtQJd3dP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588880010687_1588880046802_0.2615528431822667"},"_hasShrinkwrap":false},"1.0.0-next.1588880112772":{"name":"playwright","version":"1.0.0-next.1588880112772","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588880112772"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588880112772","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-yusVnaH8JhZ05pH2AKprn25RanXYDmyUmldddQZrl2JL6shyrikQZvwih9c9ET3EzdHeC5KDxEBl4MN3porA/g==","shasum":"5f5ef058d353b321909eae3f83df12a4791b2a9b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588880112772.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetGMaCRA9TVsSAnZWagAAxL4P/jC5/GOaE5eiiB6q11RA\nXRd6raJUekt/PbA0fOM0FGWFRC7eMNnqkQ4lErMPo0Trnh3hYJFU3epd3pnr\nKB3/sUVGmuSm4wpuskwwIH6IanG6jnhss1QQ5BUG/ANJqF8704LeHjwUuhMp\nNH3ER/uh1c0k+jDyosSmC4VO2orBVxmVflOrMZsje8M25eKF/GvKz6cImieZ\n0oHeAmJ0/aSfyE3IB2/bCeKVmJEt/S73w6HTvtF+AsM/J5Rrw5FwjwX9Bf7I\nN4D+NnHCkTrecttS5fwcBVsHeBO6wlKCovLTXFzI6deci3Kq8+Ce0ygbEjw1\nVsOaKlqvfW1w1+2tWwI+plZJIsMI4IwjzAASLylAksmOB2VEhhjlFULx5lbx\nK3zYz9sfZTxLtHXrY9YzlZsx8/rbokxLPP8goJBpAUqGcDBOPItbai2r5oeI\n/q/DO1PDjKuwdtYsrV8+hM9Phw0RP51kbXJFOo7rH+CBwIWiOxxnutqn6cMQ\nAIipp2kxFGPfmzQFTPJoczc92WQivh85MmGp/cDMHZrh1FvUzuCwLzldnHKH\n83SHgQv2joWRFQgv1jrAq6lRJp4wMkdapFWTaNBLTkJgjHZ6yXftbqgwm2uv\nLfn8pgiM4pv3F54c12VTvgvYqWduDmtS9CNeh/M+4bNHfyntkxgALXD/BOS0\nV/7u\r\n=WGi9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGB1l1/6YuZtdb4VUsUKgCxEcdDE2Yvnu8ZVLvdUs4+vAiEA3HjKXzBStrEt13VqdW63lAVWKyqjrqZ4FhaAwDLU+c0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588880112772_1588880153778_0.5998865306089192"},"_hasShrinkwrap":false},"1.0.0-next.1588883905711":{"name":"playwright","version":"1.0.0-next.1588883905711","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588883905711"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588883905711","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AwVRtP8A3bHSmEIfN9NgBbt4RC/Rhf/fjXTJr6Ozn+UjW9My2OElMGc0n+cZ/iXWKIVcIcuFOKRsjk/Q2JUPAw==","shasum":"65cc675cb88dcd538421ca10dbd0e42da7ca23c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588883905711.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetHHyCRA9TVsSAnZWagAAlZ0P/0ULpOqYIPtexNj7i11f\nUWIOpSCCYIhRnKMdypM9x6Fu9+30D1LGTMpZqT6FPJI4TbNQNgkDmHVDaJ7X\ng09iQeOElW0P2tWRawsP7Lf0yxYQKFi4gYf+vedR01BmpNDILPHbp9T6uBkd\nOXWMvQt4ogZH4i4loh/9mAtc8J147k8ozic5S2g29NPM6YTTbXifEtNkefrx\nMWsWPbEkPjDDaFtfUWgYY2DT07AgG0MsZDMGMTbZF8mlS06O2nWWYBViVeX4\na1Mt2tkavg5DRfqvFvXwSn8nGu9DsYzThQJU53xs4Dablh6BWq7aUA1yzbIJ\n9+V3Io+yq2ss9wkt1RC5tWUKjEuEtaJJvBZ88jFHOq79vtDyJ4H3xfwSKakl\nU4tMomWuAPpyv1le/YPckVtTwmK4Pbv4hgTg8xPcljG0DMR/sVDLvwx6vBBt\nqiPJL/ybyr7DiEnXQowI9Fq4CA+Aj39LTqfg6lZQOOqizYIYMSJBGjVzJwx3\n/1JSda4QFLuT0IZlNZcdubkx6RpO1fykHG6a8G+ucttJFe838nxYiNNQdm67\nvuAqCPBY49dNtimLuN7sewNaAfWpadJhNvHZb+k4hkzdFGSG8B+MBCx1wfQK\nmdXnN1sg2XObt6RDndnve/yoYYp4gO355jlaTNdZHUGtH8PBShGquSEysugM\nXhup\r\n=1gHF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID1QJAwYBmD4hL0Q3gYDth4oPbzeClYmLY1UdAXZIhN7AiEA0Acrx2tCkhU4VavBut4gN1X/zBgvl5GzVYVb2xIsK9w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588883905711_1588883953749_0.299892439867925"},"_hasShrinkwrap":false},"1.0.0-next.1588890945082":{"name":"playwright","version":"1.0.0-next.1588890945082","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588890945082"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588890945082","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YTA7dj6OWWLCOguSTDIwVg6babvex0Zj/EAdTuo8J+Jf/h5f3N+Q7EUMjfFDk5xcE4Egqk/P5KP20rkzd28aDg==","shasum":"a99a6d8cb6cba388945d7d5962a32a13c0c7e298","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588890945082.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetI1uCRA9TVsSAnZWagAA9dcQAJ8nm11TtqD2KnBB1aTM\nPulPfFmnj2aqKCXFsFswBnNJm1Q65ACt1jrQerdQGvBKUTzKnfCMfPVsMD+9\nWeEx2jLw6umuLanSwTgP03qzfpENrC20mEudkG+28ysiRIdknYpAXRMhfFUc\nRsFB2IpByzOcS6esobSbeTgtXE1qPhT4l8TwINPjVCivVnQqfiUNFbFECILR\nnNEogJOWigyk09HSOm5TQ4UA23YqFF24nK2ge7NOyWboVKsJTosYI6yF8igH\nqfwWJ1XkVPXYMkqekXHUfRUdFvJfNlHvBkR6x8ilrxRjELxHB2/+cJeMF9tr\nyZVnUR0S8Mbkyh1Qszw2tSE4oboqxF/JMJjOvxfMgmup1nclOXLA6hu2RiY9\nQOtBlzUq+xkbvKo/bQQL2of6llFBv78GaC6GQTKJX2EAl/imx7EFtOFY0OkU\nGgekhcYCLcR07M5gmeMik/8rTj4X0dVtajw9Q4RG4oQ9hk87O02IBH8QNHFZ\n1Bq6sxbG3Ojn/MGBuR9wsHji301MjOun2Ts1K0FOexWJQYfpWxGhFhhQpKto\n6+veulTzj4H27E7R10+09S4HheFy2qBgAAe1KUTo1ZRrWhYfXQ7i+3mTO48l\nPr4+WtxQhhFxJ/gH34VPZizaYTiQbEWxcoUh4gJORHWpjxRYGENv4tn4rQ78\nWHF5\r\n=uzzM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvOGcXkVlerWC6ASD8ikTFH84i2RFRdq18UCgY15GOZAIgc8Yah/OIGKHGRYDB9b13SjrqkBNnmbQrzBI1Af/oNCE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588890945082_1588890990000_0.4358566297316451"},"_hasShrinkwrap":false},"1.0.0-next.1588893119144":{"name":"playwright","version":"1.0.0-next.1588893119144","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588893119144"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588893119144","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xP+MrqlQEllhgIBrk1KajnL6Ml0SkPPUAzLSRVVXPF9SyDsUZLUx+Pf0OZkV80AeZyHizJf+UXv5uALs/zHTvw==","shasum":"4cbb0c7d008d58616de77011471024409e32cfb6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588893119144.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetJXlCRA9TVsSAnZWagAAcHIP/1p4ZmSM2N2+eVpiqaij\nm8mYJJBNR/kk7wXME56UNUuPWGQQyiEXT9HN/4hzqwpgJ+k9Bh/vOxeGaoGn\nywVNZZYj1LlY1rremkoe3b8MOObaxrVJJv7457qZMDk28lqXkd3o3P/oUdhO\nuSkK25COCL9B1GoMJwR6Ahb+feYc+1ep0jbXUZQp++Y7gQ1TDaIVRj9Dd0Jf\ngoUDtQyaozY1xNP1tshYEcHfrRosgKL+pqapXcICAKXpr5/dFPkrTRnihSYa\n4HRXVrFvXHvDHFal3M8g4Vfz3UtB9RMVBr0rbrJCBcgcLKE7iiBoeiFKEdoB\ndhTATE0GBATBesGkJiQXpAlyoqA+4VjcW1yWw9wHWd/6rgwFGXREIqO3SZfA\n/aIxPzc61RfdnzG2zFu99DMLGEwz6KHtG7wOPBg9yVur46zLzTSPYqZyZg7z\nwi6DU6GQnc4JuXoXRBx/UliFbw+JDqd737N4og8/BKAswey5XxDMLI2sqDja\nrNguIovqQ+NaAwZaSopX8WGjPatU5W8jtOxuolM/PzCwfID5qqYqejLY+qlf\ntOz73jGQSLLl0fb6fjgJuVFDdysIzw/ut2V45p7iFN9KdVVEMe1YEk/a9/qJ\nf5SqCN/sHRmwjDeE0VCL/wNNQCmxMB7luW+HZjlyduzPWS67o3e5Aij5pOH9\nCFK8\r\n=XcxL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzL59TjOKjCyCaipaG0QNmU2zFfIYn3mw38ahXh9dtPgIgYqvukXpyfCHgb/jHUoEfG40gYdGxzFFtH+9Bg/m4fIc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588893119144_1588893157253_0.38548390273586697"},"_hasShrinkwrap":false},"1.0.0-next.1588901951641":{"name":"playwright","version":"1.0.0-next.1588901951641","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588901951641"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588901951641","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-u6Ktz/OfNlKrqOm9g6TBupAuFVbE2SVfqxwMG01aVn49m73gmS8cBQjJA9M343EbgNNhfx1cTVzkC4DjSeXGYg==","shasum":"6bf3528a1ab5230006c50561ac5134ed0cbc5a5e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588901951641.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetLhqCRA9TVsSAnZWagAAIfAP/2O5xTF54GfbbKNWZtC6\nHtuuXTpXHkOmKQ360Xtdigl+C/+nd23eOy3n6lTibhpX4fxV6VnpZCJ7kKku\nQKze7/UwAZSJ+DZly3ZAObOuFdwN3F324aVBAk6JmEjpzdtYFYJaj51B6lEe\nSW6MANNHmx7ZhNxQ03EZwSyaA/1Hu89jEVD/U6pGebYCAlDoyv8IgBsx9GPu\n5/pERpvAeSAhO6m5qPIM78QgMo9ozHW7W92akIn+r3SU3BW+D0pGO7ROq0dW\ncLKGtuycqzg5FHq2KI8GRF+h3RvEaMCCACbVlIGvTESBMM+lnaY+6ENPs10B\nW/VdFF3IGXOPY69x4qFNmgAAm1yZQAIZkgEv+NJzymTTyw629TjE2z5rUhtx\nauznU9ELVjagkTLNseCLxhLrlcIkkbhUumMvmnNXmAyNk/TabkfSZbRcvZRZ\nBuEhev8RqarSuX4mUXTfsOcd13l+7c+AzpHpJ1x0FV20U7ps6BtFn9/n6Guf\nX5bVkKn2B2EHSgbcoQkdl6fquGK9b768I0XqGfcgYWJc7YvRZFOkfiOJkc9q\n+Ldl0C5BrimmDWO+NVi7babLqXN98FIy2ITYfUNFz7UuwqMwd2WV91HVPXzc\ncbTZv6IZ3jJPhP6FpXV8iGFNFmNIL6svjOqEgD9TatF8GYku/GJE7Yz3wAX3\nIdwL\r\n=Yi4f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY/l+RVyNs6O6x81Fi5PajFLC5k037Qa6GUwldjKIp/AIgNC0z54ZZIskewLIw16b1PcGaaKeuHsVzl9lyxtITQ8o="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588901951641_1588901993992_0.10668822544222878"},"_hasShrinkwrap":false},"1.0.0-next.1588906384259":{"name":"playwright","version":"1.0.0-next.1588906384259","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588906384259"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588906384259","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Y0BOfdV71EmHU3X9HMYlzec31riFpHHVGIyKYcXVNAQ5ThSZqeluw4fk9q+CtOBRVu46gfGRV1zOnzK5maZTQQ==","shasum":"e2563b4e35c1c04f58db9e6d2610e378ce6e06e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588906384259.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetMnLCRA9TVsSAnZWagAASzQP/0inIclqZ5NCGxKhmWkX\nRkV2dK+Dp37VX/cA+j0Mr/YFxgeJh+t56VHWJJXchO69FTlcEAOAyRDR4rfN\nq0Neglpb4owmDGJJMAQthm1A9mQlBH4qN/LpnGu8ux0OltR3/yb8Yaslu1df\nrSP0ufSrol0NTUxncNHdTd1IvsCpMKKwsiXMDxlvUxqcKd2uf3SBh2i5TAz1\nhva10PtP8ewk+KmrmGc9C9aKfmczHI0ECus03oULkwO7uT+s4tYZqPfIVija\nVmxeD25PsUwaRlEYMGXnWKPKaJfCiMwZXhAOYXwpeZ+klBVtpcWvkjjadp7n\nY/G2ybcKEnqITXyzf0KcriWb5HJozhOk0D7Ojt8tlsfUW8ast2m1feiDYsGr\nOhrBlX/qhYsrh2kcF2vlYtj2EBXMAW8S/7uE+Yd7x9az3vRTChg3gcJWY3LM\nW2TwKSU8g0EbZGTeV7CgnmxEXNtDU+K89U8ntFxkjLX80Lu9eXzaBPpvIRVN\nQ9O7sTz1lcXNZOByOGUMAVGi0sDzccEQ10MZyLedA33lCDk5CSYf3XrdAj4D\nARnuOd9SJxULwulMqA38bKWyOswwpKO8PnQ6WKpqf+Myl2RxY9ZN7vSYXf1A\nezV1jEeqzcHvVhkfl0JQ6sSG7En32J6KOkdwIZdja1xyVEwpPwI2DmW7tc53\nbMBn\r\n=7UZJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvtV8Bjzd8rDXG0O51E0Z9YTByJpFLW/fKosDYvpFVvgIgf4Rk+t2tjwjQ2ldk94Al+i0Xp4lL2IToYra8bQ4+aAM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588906384259_1588906442697_0.30022225639022926"},"_hasShrinkwrap":false},"1.0.0-next.1588907961253":{"name":"playwright","version":"1.0.0-next.1588907961253","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588907961253"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588907961253","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OV9vsOxCevEkodJ5JwMjZFHjRbgJ4Fub0NmkZPzef68C0x9aUFk9/kWQqL0Y2HNOLobnBrtaRu6rclws0UuSiw==","shasum":"c6640e420c6a0a4d77902f23117f693eb7f0ee62","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588907961253.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetM/iCRA9TVsSAnZWagAA/1IP/jkqKeqZgFMdry4IcA13\nKQuItb/E1+SI9v3/O0KE4PA4guVNFhxd7+JUkvnXiYkooz57L81yMU/371Yz\nyNwWr0skueG5KTlVkVzutal9eOEJrREQu2wM6e6EGYuvkkeKH0YSJLMgsDOH\nk/y9N1eQGfJ4dq9x/RpqAf+imhmwrDHZpV8gZTiwjCihl9yA1ndy0kJQoHQ3\nixD1dHE11mVicZZhETlHtaqMWiB9JO3fvF+V9PMAlHd8V+U1zjQvfN9pIfR2\nYy8tgrOoUxb2MjAJMl0/0hiv4g/QXbRYX0jCAspNxbgzeSmG5kjcvEbDIlt9\nSXP/tyJAufL8se+aZiobaCzEqlEAa8HzwfoIkTye8A6kupezPAAVZ+/r2hVN\nPf2FKVflwgvpEBXjWX2kKsTjavWRSXjs0wYakAJlgBK6pNR/9BQNFiw57WKx\nwdw+NtDn4TlkZRjj6FwJZJb4aO16a4HeVNSNTDOxRNsJcYr1DNzxLFGk3twe\nOH599RGBm9Np0WTz2im9tKAt7fFZjGbRlhoYAe5M3fp/3u8pUXwZQ1DHnD8m\nW1SdSvc5uuBfDsqq8XQCwDaANNdVbhfZsXF0btbJZPq3jJQqOgnaB7opegaI\nDdwWn+KZBbG3hsA0c2y8AqXH9gfAXcy4jPPsja03Przn7ssoyJi4kFaZWJ8f\nivbV\r\n=x1OD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFFVhZ2NBfwAIb3Vpcog/eiUPCi7uof0QsT4j16SbL7iAiEA8dmngjKEJwV9f39nTWPRsKDVwFhZQt770Q0hXCB8fpQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588907961253_1588908001521_0.22377171255023565"},"_hasShrinkwrap":false},"1.0.0-next.1588916882747":{"name":"playwright","version":"1.0.0-next.1588916882747","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588916882747"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588916882747","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eqm5NZdB9olNVCNHhRkp42M5HHEhrbmmy6mJbKAONtPCM1lwNJllm9Rh3mgTrmfNrxPQz0M9MbsayvzFoL6+SA==","shasum":"d52c755849439825347d1d97617e59cff1fc3852","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588916882747.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetPK6CRA9TVsSAnZWagAApSQP/2+yvtwTQrGgQPDScAM+\n9FVqrkZu8TqzfhRNxLj+l0o4EQ7ZmrfcqoTAXFGwWzBjTRT9EAc5gv2xAua7\nyoHsL4z5/KomwkQOZXvRd7b43sV5UVX2d2Znu5ttAG4u0dsLDnce60b0S90E\ne+q3G8UgSzn8KuWw24qUkF66RpitjtXvzr6xG/ZVpaATRYSbM0iKswtZUsdV\nm23y9JbLuuFeYQdFxCv3V5WYDoFTwwclpcm149+ZuRklveFtXjPBhR16QqkG\nAAUywm7Zw49b52zwpPt+QPj0el2JVAWRbD8Ck5CSYAEotKKt0LHGRwbiYouE\n4tgQXDg8GOuPLgmqrvhsfpfDHHFuJeRjG/uYjfQ9kQqseOH4eLbcv9F/IQ7X\nFcW/uGDZ41Cvio85lHuUbfB96z9fDFwV617hd9Mlmmg0SQR44TbBxLuEQvXt\nDFMiq7TCZbJt8otehT/y/wqDbiu2o5huCjkJZWObRnS0oNV/odjG6mZT6/la\nH1L/znjID6zvtgmthOm/1xugkspvlszOvI2RKFIVPLHUwgYUKJQ37F/XBKiT\nE0YQpsF59qXkGwtgV4sW2VZgIeQ5eKU4n+9m9SucmdCPp6IaH8IAXvG/4kgJ\nFonEjzTE/95hpIsYdsSsBaSjaN0b95KLyhx/EqGU45S2Ryv3vS5pA6eAvI9r\nIJUa\r\n=167Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFefMqNf5FFzUWNd3IGlLGYwSwr1FJQD3WD6SAJoDMkeAiEAzjHo9dJR2Y4K/0jCVcx+nqEXMlqeKE/KFmwsMECW76c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588916882747_1588916921724_0.10734640419611052"},"_hasShrinkwrap":false},"1.0.0-next.1588917092012":{"name":"playwright","version":"1.0.0-next.1588917092012","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588917092012"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588917092012","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-v8ztUsNCRL/hXv8gZhX97+TgVIxVvbvHymopa4WiPkUUvgekU9dM3cJpNrqV0kvA2LxQzTYjbyPzPIT1c+02FQ==","shasum":"ae7f806686f7d70ee2a0b91989d232ac8d44a08c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588917092012.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetPOMCRA9TVsSAnZWagAAYHwP/0BqKR3SmKl8DWyjJEME\neTRZyN+yKvlRRDk8Sqe1ntA9lbwK7WA2PHbwau+6flrkAHSe49/mylO8wI01\nJXvIor9iUJxYeMxOJFYJLQbEpmIymPUY+Q04dRLC+GYIBbn+oJj6Dure0LlB\nYqD027+VfOFkP6sSWkLZ+nIl5AXrLmiGVdPFbmydnHjqCwNHVEu8vr21fVg0\nXQezI5n5tOBIAaLvPCz+P0UNywFdwgmDkaoNzu/uCcIXpN6Euv6MfL6oSz/F\nMlg2D9fOOEty4/DBAv00EuO5jdkxTm1hdGwMKdqrmEtcfBIZXusvvHJeUgFS\nssrY6xFIyRYn4y+jWv6WtzSoi602ulG/V8z7txEOUSt116MHaXQznXVcliB7\niEyfrD4Nfm29Xa3+a5IKLHbZwTQfyd5Hs5MPCoW8rvM2JdSwCl2C3D5Fgql7\nT4l6iFUhBkL8G2StZgp4hF/j/GHEaq9XKuy4fznWtLeyHr3Ym3t4xaz+aP9R\nfhPY84o/43ZgysT65ilm/F7bG08QzYYU5TIJU7gDee2LycHTjX8L0l03ozhY\nSXUbC5uel+St0lO8hLOvIcNLkO9sD2qwxY4r159OtTf44O+9E71YMT8ZrVVI\nAO3JJ2YIE3m6t+7nlYOkK52pBoh1F9Wz63p4gEfeMiv1o9DA3VkyZaNs0oPU\nQScM\r\n=2j3h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIES1AGHYYUt4oWi1x0xIJTLtmUoUfSdXCZ6JK1Bq17YAAiAFbvuVAqnaVJyPg6tkULOAMvQY72ILxzo/ycXPEiSVyA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588917092012_1588917132081_0.9145663160474118"},"_hasShrinkwrap":false},"1.0.0-next.1588936922244":{"name":"playwright","version":"1.0.0-next.1588936922244","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588936922244"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588936922244","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-aHWaoB4a3sN8hjhJmlJaad75scBeAZkTaqV9SRuBoaO7DIWzk4W+OKxenLqJjprG8H6M7Anw5RjJwIMRjUdSfQ==","shasum":"d1eb85f8ebeeaa05dbe0dd43d2f90a7f8eeaf89f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588936922244.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetUEDCRA9TVsSAnZWagAA04AP/1k35eOPmOPSDRz+ds3s\nKN7frNt1LE1A31OOa3yCt2CfK3vJ7eTMGK0sIN1sscHWEWXatmszx41/qZ7G\nq5M116ULyJ+wbWCIYusnwserRXKQCiUR7yIf+0fxUkGROZHCssDyFyoPR/xl\n5dOxax1OSfD3T3nXB7RPaJMQ3/bTjZRmcANaaPxB4NzbdWCJtPAoWdRnGxHP\nR6AGqUY6oY1urGNePTShY5jRb5mzX0bdyv4aTa7yUk79/s+24Bq+K+zd/hxr\nwcLOtrm3DQie6j7D3AzJLw1cA+4FaB3PPj98BO/8eHoVCXqRBlI6a2+NKugI\n9jd2mN9adTXKOWWch2Ag7pr9FrFSRpa3IYSBCvGFh55pWdkYSvUpMa5nlkkH\nNzABXjrfVG/KTlRQ5IRq7UmciVGtyZtlItjvWIPtSjGV6cZKaubkmXaP4ROs\n/1GUbTfkzNyag4p24FHHaqs0Vb9ZmY5V7w87nj0/pO9PzAzO8o8UiUn5cPuN\nxZruHR+2MSkYvdDAgOO1eYvqGmGPt6oa3XUsgEVMBvr2L5OslPlvukIIBtJY\nM1aFZY8DzcTEpTv7nodhAAaxkDHxts5EIdeSIxI3VnoCc8/4xvBNeYasH+KW\nAPLRu+hPj1t3Bh0Et7Og8crdf+pOeBvC7WKlhAO9SNgF/QVtnb51AFaOhkex\nC8WX\r\n=wFoI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFTC1wm3RbJ8IzVXWVX6IKRMdOoAZ6W2F1xW6tZsv9Z+AiEA903E04U8KtzsuCSEKCr8Hg9L4/pPKXsOtYIrJLNDv7I="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588936922244_1588936962847_0.8970548367647433"},"_hasShrinkwrap":false},"1.0.0-next.1588938801256":{"name":"playwright","version":"1.0.0-next.1588938801256","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588938801256"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588938801256","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oZtBYSVGYC6tZP1Vre8FvEQOqagPgteTiGdEJZ/4N1TX9kEcHVDOhsKXFT7vxHTCNq+3dCnYE6GWbfhxKHTmVQ==","shasum":"0a27fe72e7e3800fbd404c00bccb2cf30120f421","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588938801256.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetUhaCRA9TVsSAnZWagAAcaAQAKT0BIhaJX/Pa1ijAPf6\nvWbgDlNEWkpT4OoKREGw0ZSSqyk+2Fiqt/yMV++DK7UrcRSI7Tri6xIfHE2w\nmITW9eqJG9omXlohKHLh9DQ40FalssUMfWEwqgS+QVtFHPScQ5InfpiKCBMB\ne4COC5va9kALLP4S/4Qzq6VDl/ByqlJ2WLRKwNwIn+PzTD/ihFdStkYbthlw\nJF/Vn30W+xcn/uC0CYZFt0+v7l38EC4/AqVWwyHzZCEIRragtLnRw/TcF9cm\njxkuv+IRC7v2WvvPwHEq69NICp/r7Xokz/sW4ayl3S5y1TYOnnoa57ibgXVG\nVmAteQiJq3NiZrhxRvopbpT6RNPXswEaZe8Y64NJaXT/yWXWE8iWNopBZGU0\n2h9RS5QmaryrWFwFlW8aY2lrCRu78Kv/88f4LQaMTBVVHYocBDEXt4DCdm3C\njd45ZndLvHPmH22gf7szCk6cfQQ7/zr+/HNjE2n/QO8TBR/zOYGzO/liGkAu\n7Uhrt4PDAiZzXy7h21uiNNMdBk6shIcIAQoablkQGfnHH875qHFvMEC/IMC3\n/ZSJ6PgBSzRRh3sB3dvqnzEslfIU3iAp+XW9hzMGlFtlvL0Ebw0L3Fr5Qx5p\nhNGsGidQ415RRDJXDLJcSpMQLC9MgYmu7ZVt4M8G7Vd/uhxnyQCAddqhsJhJ\nJe2l\r\n=gQuw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL8j7+rf8iDQX6+8Oh1eFFLN1jWYLerZGdxChLVzDikAIgRtzQCKF+5He4+ZjjJKyEreqWdR6fLJGd2lvxrCES/a4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588938801256_1588938841583_0.4142018368151468"},"_hasShrinkwrap":false},"1.0.0-next.1588938965291":{"name":"playwright","version":"1.0.0-next.1588938965291","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588938965291"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588938965291","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Q/5Gsh/O3y/kBzgaVOXUzrqJL+z3BUGiygt2lbpotUxEsTFL0gPnaEqNY0sJZRRBKX6h6vjylEmcRuo05jyGJw==","shasum":"59a570ced66b658ee928375b53a9b3d9edeb9659","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588938965291.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetUj+CRA9TVsSAnZWagAAdL0P/3VsZyY5+tn49td847X+\ndnTJo+19O7jzM9ni3sLxWUg2gMzVFUKTKkMgCjFZpYrLcR5zufFHaX2H9VB1\n/FcSqnq6ktCRcWn8ZFoOXBO/scj4cVb2HFG/upaJ/cpDHOeS3u1KNYZfUAZR\nZ8j3gatBe9xeEUCJePer5G8MqGG+HmI24l3xKFKkRbmwmuhXw3vUcJdi6shn\naxPo0NQkdG2cjnQK+98VhxTN35UKFIZQW3ogaWYbOdFHSfHVJftsZ7YSXGrx\nc4FP+Xx5reGSoXJ7q8Vk6RbahXMQ+fATde+RdeSTzvs2/6noDoLfM58pA0gv\n5eHiqL2P7EgxP0Xd6oPay9EI4v5029v60hHeHzguSAfNRQdF4P6kjyxVv09y\nLFdHCC8b/5t7uaTS6e9ABKo+zIAfSI+c+4x15GLrKP2dFl2kJ8IYStu+8Beb\nGfQmJAOmvD1uozvLPxZl4Ys6Gx2acqByDPSpZV8qp/B5hUDmP8/H9FRFtF+/\nrJU3aC91zRSjhTNkCiEXD4de82Pqt6I5mvGplMKqYT8l3g3kJ4jtkL7sX1Wr\ngRxoq7ZxXF2vJQH+9THgx59+cTnA88fmNXV9W17FaPQ9fRbaHETTCsyHnTmu\nz28N/gwZw6zY3IakFf8KL1EdwQRvep6OkDg4Yu1bp0Fd5jxlfG9iHq4TYM7b\nfNRg\r\n=yE0v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAotGL9lp7nj833/7ILY+WzZfBelRKk4dAUP8secZ/9QAiAgze1YMb7DzG3MDHaMQM3XmbxLKeIuJJ804mtl454Oeg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588938965291_1588939006236_0.9272611231998331"},"_hasShrinkwrap":false},"1.0.1-next.1588956202246":{"name":"playwright","version":"1.0.1-next.1588956202246","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.1-next.1588956202246"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.1-next.1588956202246","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-E4987ydczbgsivwS0NCRKcxYkd/Sw7j233843pfwH5bmuzPJi4bN8sLbEJFW0LZJTaw2rGyFb2ZZoBmcyKLDug==","shasum":"6be6faa6d8b896ef34609227ff6d3c2fbc91d94d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.1-next.1588956202246.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetYxZCRA9TVsSAnZWagAAtOoP/i+QcNP/dI3Itl4r3TpA\nUU2a2RvsqAmJ6D1jLCGYcSNTbgjLiDE/jLLt1R6D9KJ/TbkbIauUosD5A0XM\ntH2goP6cSrvHbknUuuwFPbcs1t+J/m+x3MR4j+2cjuxWObjcse2uOCH/6zRL\n50SAr5DU31KCqHOXpSDDS9jNg/rFdf9Rkc5QVV7BU0WIsPFpjudqkJt9Nzrz\nJmVxOkDel3tbUEsXq6g1mlzR1ex7oQEFJpqab8e6Z/KUJy/0nSBuOGyhnDd3\nz4nHJm44SI6zrXe5c5ow80p4YtpWFuNvn9tjQ0qNHfjF6d9iE/S+nCzu+w48\ncYhSYC28QxbLk2BXL5NtvcU0cRvVAbjYEw3+azZ6BgqAmf+yTb9ScAqqMCTD\nSSr71FQQu0Vc0kLWfHV0fja/73kn9IilDKodFwof4MrD0s5YNf9H7FAPPkMB\nFrcOb+NbZ0Wmvlcq7gItt/j3JIYcUsP1IXkp+jeDUatfj0K3A8kxxz+Dyup+\n1qen7aLz2ckccPOzbNp+4MIAxq9nhVJzaA8Sv06iuFhXouvsU42tUpU1rHZn\nUOr2A76rO4ysXx1LmVW5oHJ5gam6F0FbKrpWgOoXlJils30JOVGmC7k+zHLN\n+bhcEhDWA/S/avx+zuBQyHkFxxnYYddbQLKkUJWXLJOOPQvAE+ChnDCJ7igH\nGRQ/\r\n=3Apj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChi/oPLDirA1zWCjIgWtuUJD+3126HNkPUd1L11fQ3HgIgVkcPkbK1ZQs7dV4PXzvjTLD0LMjEB2l8CUpLXksYDC8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.1-next.1588956202246_1588956248898_0.14698597899914034"},"_hasShrinkwrap":false},"1.0.0-next.1588957470515":{"name":"playwright","version":"1.0.0-next.1588957470515","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588957470515"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588957470515","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7KaXP8dgqivTnPcAc2PekXdrOYj82MUwUEPSvKxdYOrthWky/6pub+TgW/66Oyuj4203T6VXnyZiEcUYFl/9mA==","shasum":"97c9e624bcb67850196da080f9f796273c36ff87","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588957470515.tgz","fileCount":6,"unpackedSize":8461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetZFMCRA9TVsSAnZWagAAJTkQAIBiWVoTXL+L25RKQePK\nVvP5S1xIe6qiwoT2/l7sOm24sNh4iXLH2xSe+t1G8tNe2/opPpgq6O74OhfG\n2gbVjFfozO6eGM83Fk8Bc+D5ddWgbexXc5NPuuXTOu2SQ7BXBO8PICwnxNEP\niVJMKR1rzg0uzyHDQI3wZdVCW8xOI2RPFd451ygR8D9EE4ZJB5FfJtOl6prm\nNR4scVQdL8gAC9sJi/2DaKwAhxw3PgDlJUdU4bzV2WLzXQdAa24/As4Nl9Ss\nTvxWFazpOv4WYikJHegnErcGEyqpicVACIdf1dEqxwHUeIK2VZdsRI3csRLl\nI8XzRz+L/01amA+h+6vObeW6GBzBpIUCnEBkAg97z1cyaGFyxYooUxju+Yjl\n20oah9AUzFykSAqSDABWlCQby4LdX76E3UdHLZ/nKEekoQkSR5GbuhUKdDSg\nqUqI6CWfzqWyAz5fs9x5LgZWjIE/mO2LK0wWhCYbDtB2+kOAO0WvqFRcD7uJ\nvCSYUGChKSBRlh/p8PAaoqVHYv3vEF/S1aKXJOOLjdVUZ6HBlofjK4Bc7Bim\nQS3m/7NSPie87CPsMCgWnwFbonzVqg8JTpiHpA/F54JREvwp5JruIxLUs0q9\nxFX53zEHbdQFUqop9GiGn1+8bSaxG+OCLoiBIlmWl/hIpW92q64rT/gcOah4\ndQIq\r\n=wk0y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB7dLsbBsHCIr1+DSNEvyQKEFoAUCIK7ieTdeZSPNTdbAiBuWMFAxZhtOmol0EF8XBq2uLJefPmsV7Sv6K/+b4DbWQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588957470515_1588957516134_0.6410113418620098"},"_hasShrinkwrap":false},"1.0.0-next.1588959260810":{"name":"playwright","version":"1.0.0-next.1588959260810","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588959260810"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588959260810","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fnwUUXXsuHCr6zxi5Hv2jqKaRaN6aTvfYK7fDfKXW9CyTRDQoz/CD0Ow4VbvX9kPKym3LzZkwreNJ+8PJUw9TA==","shasum":"72b5a95c958162d19afaa0534d2e1b523878da20","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588959260810.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetZhMCRA9TVsSAnZWagAAiM4QAKDS/Egg3B8wCNpfVYTF\nGniJAh2sALyErr1mee94q2weKW2+V85nEyQUI4TNRqD3zyCuOEykfzviATGP\nNKp6I02AGrc25d0Qk5PgtAMbk4ZExeOYoD0EtdveXRqRuH5EU+aHd7kky0I0\nk5/LhTy/TQ0FYs1NahUaeLrEIAO42bM58CtxtdX7/PQn64WdvXFKoe4yaA53\nXmPSugKcroVJ/1gd4mUvTPy9PxotTfKs7s55gq1f2dt2NVyBFXgzvn0JMTtR\nlUDBuqjU09lbANd7irTMJQ/JkxLvCu+FpaBOjtMwjMokzovMICOUEoARHeP+\nxt4tngElBoW4IughGflsUumdWuFvBptLYI1vrF9ha6TEkzZDGgR1KzSUg/Eu\nOoJPCFDzM1pmeMyoD8JAjfpqTi8/7uDFmWgaI17OomaJ8dMQSmZgqAhfhRtf\ncbvxxzmDH8itfozeDdQArz7uAlJCRXvIIkqGCcl2vvHATxxBWuwWehROAkKp\nMPyFRx45I/7gQaWP721qLSy00490/PVaLGbCbSjCbU/VAnkw0Oa/uTA6vcIK\nN3/l5hIoGrHrEX1oWHXE59Sq1eZ23oyeXAepYLypHv5tGYUgUV9krKk1TtmE\naL7p4cH3mSxmfawUwUmWqwCHBKEaF1n7PVdmP1ZGsrtYBBwhCg+c2JMxtYXR\nsyO5\r\n=FSyJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAf47Z6GT9xGZ1Wy9koJ2IFsZc0DdnDrXS+UdquA5LPwAiEAwGGZSps2tNyEcYilcrnSwgrFqfRjcDu0OKuSmuNKzz8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588959260810_1588959308270_0.6612831276805295"},"_hasShrinkwrap":false},"1.0.0-next.1588959574908":{"name":"playwright","version":"1.0.0-next.1588959574908","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588959574908"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588959574908","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-XazBWz2hbYJVAfegEkadKH2QalTZFjCWw6I/xaYZS8HMozbavHJBLUOPnHbirrwqOUsyvhQ3DNySV5/75n1KZg==","shasum":"171e38eb3d36e5e9fd9845a355062dc61bfee5bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588959574908.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetZmACRA9TVsSAnZWagAAV7sP/RfSNTv/vCM8BPnSRrYi\nRdczO3ivh/StBSO9LcWjQv/YcJqLppgvPg1vpzHCjf2VOw/oShduAE/IPwL3\nvbBWaZ7+UlJDVOsgvhdFxfKRD2EVcU7bIkqQoMtddnqxhDVGa0ur3cHO/ldG\nfpIDhBqfZwj8OF38+soyulWE8fujR8Nn/jkXGLeKlxdXCMEOYWdGoJb0+Qp4\nP6zNVGgbooNugpBZi2fCtpzivuKYlgBm2RcPedQY9Kjd6NJjeb9rTkNCQe8q\nJD/LuiKJE4I3smE6vIxTAkAJ2hdO8dkzlIVScXEbiACPS6U2H/yq/hDl89G5\nmubH9tC5oMrWEt5jH8d//KVOVOGgUohd/nquEHDymq+CFzoA6lweWEhAO+L2\nuDG7XdLuDvvItkJf51xY8mbzZRbOTia98FEnhx2E2hjvPieXNoGwwQEkyxMd\n1XogwKlTS/yAAUt0jnulKUe3+rq1QacQGP1Drp74UytW7C4xtOoKi3XpDBVB\n4dEfZww0wIo6n4VT/gHk4axVYazQialkbHfPT8J21JYM3SgjA5rRBlS579jA\nCYO+Z9IzgXwz4r/axwJGXrJDDkh5R/rHtezqMOF3Jya9g4u9yaXXXhl+l81b\numdlQf1Wpe0NUZOsVyE1RZFqO0QjqHyo7W6pYJFMsOvZuF200yngkAAryezX\nShdI\r\n=mfKT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEVrFv6jhMzBTQqNEHUbp+Eqk++i0bBvmjjKGMD9+3v6AiEArbbu8cKiS7ubGAVXifbPx0WRUf7sg0rjNEb5AQDEP6c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588959574908_1588959616075_0.931515675328795"},"_hasShrinkwrap":false},"1.0.1-next.1588959707405":{"name":"playwright","version":"1.0.1-next.1588959707405","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.1-next.1588959707405"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.1-next.1588959707405","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-plyZtUG3Np5L4RhHg/fiFHUgcRJqhLPJ8fPEQgiUU+flvm4aBxNE2bJEnFJYQW3vH/Iju3rmKOoBZihKFM82Xg==","shasum":"393e9916ad88a8ef875c280b2f58625e9ee6b187","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.1-next.1588959707405.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetZoFCRA9TVsSAnZWagAARbMP/20LKpbpGQZmaQ7oQht6\nR9w+ZAEbYfi5Nlq+ppYhU6XV3r5ORTaRrrg+Zq7AfsOdNbEI8zFJUgp3k1SU\nXioWeoGAUMZx+Dl0I6XHEeFSib1f+6+4ydn04U6o5tvJ1iHA+1bWXqzTuwfY\nrqmcs1ut778QSr+QNd0UfGZacD1oVPfcB070wXEyglVERh5GVbKjKvnwqOY6\nPHDzrsYe3+UNx8/z1S9UQE73FlLwsHQIYPUMEIVWxyMF96YW7mJ2HBCoHp7G\nJP0V6s9rBXccsFgKWhpmrFtWNnmf2DvHL1g4xotRu9EXDDMCqm7KIrrAwZqf\nfnxEBxNrv5s1kqz60yionnR6aGaLSz7GcaJ7DPsK/LWGwMo3AA0yHeSH9MUv\nSJ7EsoLQikPW957FqSTMym+/JpCJg6gWP8IFJpKQlmQyplGj7JcJfa+eoWXt\n6C4Ff437g2ldYvemobN0MlSt8K08WZB5+1n77QzR6M+QMRJ1UuE6FIhA72yn\ntLbECQIh4aZCaFWrphY2eVj7gtI4V+e+sNL/W8WzhOsM4wSIo8feAq1qD33z\n6kw/EQsBMaUPs1Ji9A6Ut61KNhVM66UkUCsVFy/ggEDBwgmMk+hVT0k9xXK/\npjNh7ijfbeEhjqSWNQd9/J+5ivjEhuRUe2AiKAEYhTYACKwKDI8vkKpgsxoX\nhSCe\r\n=zkoV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD++YEg+a56LrEmr9LdUxkRj6duGEHKa+uKYWgb5+YD6gIgabYkWlNJgFi55P4/99A0vSZ0gQp4WLMxzydI0ntoI98="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.1-next.1588959707405_1588959749227_0.5965632840407475"},"_hasShrinkwrap":false},"1.0.0-next.1588988428004":{"name":"playwright","version":"1.0.0-next.1588988428004","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1588988428004"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1588988428004","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8eDC8ZFKaFTxSHw4nks/LjQKGK3H7EjjdSmqd9Vskq3NMHd+EwQtdl6u52Qxj04n7kI2WsQoeRCBTpKKZky93w==","shasum":"924f2bf7c149ec6f73ce33ddb86817fb2721b49c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1588988428004.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJetgozCRA9TVsSAnZWagAAUBIP/1yMxEoUY1ZMRCsAptSJ\n1a9E2yCXhewL1V9joi22IB7yVGIAZjlYJvfHq7FsENVKxmtJZMaTm4GVEITD\npHTVrblCtQnc5SWlpOcLvmC7bsOYEEWrWAhtarAYxoyVTUwxF+QJxNbh1Kv6\ncJieMFmEOfr3oe1WM6iXHUduzUAXL7QE6cjAEh4EZUkaSHOnqvV588c9ejy5\no0qjw0hQSnpk1uy7OuYdPWDMXFkeA9OAxD8WVyQ5lZIMN7YE8hKIdwOQmgb+\nStImY/jqBbKqUJQ32hu9AHvUoK5GdlfshrSpGuV0TC9DMWhsDZP9RId9ow8J\n9Era/xt/icLQUQOXvGqXXy8/NSuaURgfPu3xta49IrJJM6QqfkeLbJ7AYzf6\narc3DvwGqoib4B6EEvQoKsxjcUaSdKqnP37nMyJ9ZvkEA26nYyjY0pmtTB32\nGa+8G1+ZHjddvUHopUsiOd2PVoWHPwfHaS48qXgqzEscPFxnjF3BGBM6sHAA\nXsu4kqHuKLGP+DKFTkxmZW71ArVcECvL1MCk/4znvQA0ZVsjdFeUknEKQAv1\njcYSj1GdjbH6FIerjUe01VTbJyUR+4/KJkTBMr06YYYl+EPOIrw3NdBCXnh0\nvJBRG0OG799t6+oeppwRTfSFe24UssjyAFuKDlyRXi/Q81ugJ7KvjKktWtp8\nGwmp\r\n=+QZK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNMx3qtv4lNThKYplUMvHwtr5J68IJ/xuorux0lLZz+AiEAkQLrYfPrzuKcJqmfcz0D0lN/EfCPTIkExryl7TUj4jc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1588988428004_1588988467064_0.3463295314203023"},"_hasShrinkwrap":false},"1.0.0-next.1589071497281":{"name":"playwright","version":"1.0.0-next.1589071497281","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589071497281"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589071497281","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qFeOenF0gXXIYRUsFWw0e4BGGT1PP7EqGfUss5+DHEVajv6UMK7Sgp7lMYQeQdc/xoQtIR+vU7YaACK95ASmYw==","shasum":"6915c21c546a7bcf6de79d560169afe5b7d49456","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589071497281.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJet06yCRA9TVsSAnZWagAAj7kP/3bu8E4AYhiyZIAkWVEx\nv8j40oqbpUTldxd1TJw1rYZc12nEwRo03SJ767RVZmuh/RWtA6KdOa82qwvK\nmk6onAalFvwvF/rkys9ExIRXGWv2O4/h3CnaUOM0toNieT6U54nkiJKwACOA\nRHY4QOeePQVciK6HfNdoV5p9Bb4iZn1M11RGgfTq7d1N+YpZHn14gSH9Y2co\nnebSXGoFHeJur0ZWf6lGNm8ZoKuOEbj5YsCMrGtgXlEFG0QoZl915KPu0m4I\ncc6aIznHuT+A4mtP0MNvobNxfCufyhLOGu/IXRsbrM8tIqtAHdDxzV3S0ACM\nA42LUzpNpU9j/4/WX2EzgrWGmqUe+H1Od2dJyj+Oo0BaGMxAj6oizocVe1g2\nHPrgjeo+6/Y8arFGg6VmMWfk93H7wuXGKg5n/WYtVjIPHs5zYaNHQXK9SUDI\nuFmJB+WAn134xzmbrrMuwazPJo6KhdjKhIeofjVcIvKen8CdVe/22ST3ta80\n5d4jTX9WMIgA7Sz9giDQKUsTWRispAXECOhfchEJM/nANBJzef/4pj7llt6R\nuywycLtxGntZ3WspX3i0Ck7Tr1FvUcLeZgbY6pO94GEmuPDQBig0j26F9Pc2\nRugIQq+bp+30PmET36MvPbXV02LIn0gwO9yjr/oAo44Pff6NULPO1FsiL7VR\nnMk7\r\n=bt/6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHzZY6spFPvHRzEZCTOL7qgl4Tm/Qw/GV2rXsVXxRdinAiEAx6P2tGcHIUIvtm++KRBuKrvI0YzUW7oIg9dQZxp/dIA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589071497281_1589071537787_0.9948164928738095"},"_hasShrinkwrap":false},"1.0.0-next.1589149532734":{"name":"playwright","version":"1.0.0-next.1589149532734","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589149532734"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589149532734","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-p0hVHqBQfKrofWGVVqzsVjYMxY276cNYRECSrwLpWy6UE6q2WpH4BwkUJcXx0HN4GdDb+AwxagL2hqF4zySfqA==","shasum":"a32c2c8c7095fbfc26b4b3316f2ac726b4bf568d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589149532734.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuH+HCRA9TVsSAnZWagAALg0P/jO34QFyMXQ4S1WPoqRW\n0H+4E7lpKQQQYwlK54s4sZah8yZp2Ik7z+Gi8wNKUwdfCsx4ThetiUX/yYPw\n6CUJFYmYKJkNlEQ5808fazY9umQjjpIRZKNYJflS4/pwe/f7v8G76mrtWfqZ\ng4rntW9U/LbnkU+KSzaggNog9Fdr9OOebzq7fZsG2r39uAMB6g8Bc0kM2vWF\n4kMIJp0edtGc+MaVg6o/wAZ9vSraWYlskmTOXtZjy1SdgY1wIh+fJb0DjDVI\n8/hC133it5dR5LboVxry0RfOByf+LIm/l1qbpEt7wO4kuo0VHrrSGCJEs29H\nhQVR7if/pnWZWzp+bb/YPrPUVDpcbOZT+SwSKbFT06D+ZzxT3Hro9psrh7uL\ngJxa8/J+fYn+DY7nC8oVpmFcXZJw/BoZ0A7OYEqmVBvqznE/usWgieQrUL3N\nh3y7JywVsEvEXoTizWKOyCoLp12oDw8gdkFSqHbZm/45w/M253UdBlr8/lyd\ncpwjSxN7aXUP0mi5MqVfjAQ/S1JlXRxd8wAgCQV4+ZpwJvCFGT9Q4ouPrH0s\n2Z0GF6CkaxYIPoWVjKySf1J4+VYg9XtzpHXk8Wv19oOkT9kzwktkJTrm5+Mh\nygOj5EMidYcsKSXzDZ+4+bh2wkeInbzMc48IbV+tEJmOCbxeTAXeM/hE58VM\nCN3r\r\n=KAQ2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDejC2WZZ8+4hnBd1saSZd9m14TFIpOxM1mLkzNkDT3XAIgYD8rh7ci1RVoxvizzcQNonyx3nKQ0nLoaRQHWQjEZdc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589149532734_1589149575078_0.011170856105133575"},"_hasShrinkwrap":false},"1.0.0-next.1589209359368":{"name":"playwright","version":"1.0.0-next.1589209359368","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589209359368"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589209359368","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Ie+2EMM3vpnIS8J49aBMlpmHRzr+lwanmQVZyjkPXJKmTsDUzyBqeuIfHLVNOBYsAJanpEasPNTlqt7jR1KD4Q==","shasum":"2801601921f43651877d85854cad8d539294f179","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589209359368.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuWk8CRA9TVsSAnZWagAA77YP/3+FTkt251PdWhJtoPGt\ncDKsljoUrHMCq0G5H9pUb4xAAeWAsiQDXUiKptQFfemJGqig7qN1AEAOXrNn\na3AriNNcK+CXeevGayY186IoqB78fQntV25aWa7IeQGpaqNfwoiUjSF+YTEr\ni52Y28PHzrXw3Jjn8HRtPdKh2rd5lqGsNcmrT3n76TnxTgiNDR+YXGmp9zIz\nWSx21hN5m5dwhL/6KZ2tzFiFMS/ywJ3pZsKTxnna958kRhdw3LcuV0Mrkesr\n9kCIKDwdXxsx5ZniqWJt/coNTmRWxpS2BStBopkuI93iSLS8qE4JehXXuHHy\nEzDfKEtpJ+7kXHDaMpozr2slCf9gO+ypvxPQSGpuPrl2NrQ61TSJDnP9p25Y\nTsj7fPlfCpB6eUp7PgIVs1JJwyldoVwFu3+kv1pCUQDam8HVcAl4vGVhcP9n\nd17juc3PfoD7/CgEk3fIvgIXBm3V8/g9l/4RTL04oG+ZRSI9JKlvT26xcy/R\nEWoykbcdfhl/BQLTeD0MzaYYjq2u8GRhiO+AgfgaoQiX+58csF556u7ySBB0\n9uuPxJTc1cxigUgHDCHMg9Wj9q7EazgWeXAiQhR/c7KvsgrxDXc7Y17Sr5XB\nn9giW3WXeHiD/uzgYdqfAjoGBmaFJlYU7Pu68Oya600hg8DwUmJaq1lkMNcO\nINHV\r\n=3Db0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCClxCVgrKDEOBPLQRSp+dPN3gvuitkl59HgsaptAIKXwIhAKJ0/6+24m6ObaSOFsP2y6WdpasOBiykqTlvTixkVSxA"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589209359368_1589209404155_0.6614329364968574"},"_hasShrinkwrap":false},"1.0.0-next.1589210668924":{"name":"playwright","version":"1.0.0-next.1589210668924","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589210668924"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589210668924","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bMvtOWqYqEIVid6Y9nLHs0je1mVQGyMDE24UPA5ZXP+LT00Sh5zUbXeDPz8mzviNZXpT1w5BghR1ce75y6mxXA==","shasum":"6cca22e57df434f3c5e669df851196a88fa091c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589210668924.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuW5cCRA9TVsSAnZWagAA2qMP/2nzVD/o1DUTfatNV0oK\n1TsuVWdbe8KDobICz5EGYo3De/hgi08Qc+hOK4q210WhZb01TF9wLBKqrA5V\nFt8/rU/NWaDXrJQl4eh/H6/rV8kS25APXx46YR9krzl7I7+puWXu3z+k9WLZ\ndCSlGy5mEr/00BZ9PDyU3cbgAnF6bYlCt6G/KWMsHEnYhFuu+yISNWsdxpfQ\n9nKQlsOFNxLeY+Fo3JjPO4R5Uhaj3nQHFajyBbDauK0R7HEUvR6LEG/ihLBo\nIJh83RM2nas6/EpNW3iVSKdFbxTvaZsruNSrVHIHxtl/I/9TWZVR45Ua7LQt\nkVpOA94GvU2IkuF6gfwtevznt5DVtZibw8L1UnMHebrEs3XTngUas/Sh37Vu\nGCWM7/NFHl0pBGrjM45HqcsDOolk4rtI+aE6x+yyvW/e6KAIaElHHmmO2wJn\nGN6bNQR3Lo9Lu1Ve3C34iGhDvnGOHsw90h6DmsiRMOoDLljSE0PYyISkFzLm\nCq6LCu6y6jj/O5JXHDh2HMqf7t4IVUwwRZbQwrdGo/OFcAh/Oxbg66lwtyi7\nDeFJ7arUUaq4QAKWlheaNWH9tniGI9NZEnLx1OLdTrpViMPBS5klKl4xiMUT\n+0PO+Yr2/TAD09xYEx0zdAbm/e+NryY1jZ0pKy4ga0jSGaHNTve63ArKEOtO\ny/19\r\n=Rc4z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApnHG98tErseaseChi07WlYTuZpAO04KVwuPo/rJsIQAiEAj88aXoNn1km7bZFoaLApqCzxUiqecm0pSOL1qLfVyn4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589210668924_1589210715444_0.47477238035940017"},"_hasShrinkwrap":false},"1.0.0-next.1589215188460":{"name":"playwright","version":"1.0.0-next.1589215188460","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589215188460"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589215188460","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JNSZ8vBBJYisbtvn9nWXpVyqNq4PbxYH1CNntVx3pFZBBECL9j9aRz7fowonxYPRbKylo1TDJiY+WsFOUIP9vg==","shasum":"a4cf1c50e29b68552303e2e5496d6b2fc7c53931","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589215188460.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuYAACRA9TVsSAnZWagAAdOYP/ijyh2II2Mt8+Ghx6qPP\npj3e0UY7B/iy8QAV4B4cS3E/wrYl62QsL38yMma/tK3JB0T1p/n9hCb42yPx\n5XckhT9jLcAiDpYySuVlX/XSNuRKgO94Q6TgHSU+Ebm62KvOIPouv76mm8qV\n/6nyRGoEUSQd4mKveler+dEuf+jurl0sTpksY7SOoOKhkhEwUSHOqYqyJflL\nR1PLtfmgFaV+hXN1Zn+Ss2FfsAq9awEs/QpGSW7OiztormgFF9w1NekOu5Ip\n+hCLjSxoBe1xBJnhPwwRuxd2RmaFOT+EDhjFWXxfxgpYpbFSLkJ3znXvqbvZ\n0zsPNSpiBXbFFz+cQBvwA4764ns5gqTKtTqEIiASoQ6JAfrIPZ2oMDvr54CB\nEgQI+xfJbIjHX9N329AnbAagB1606/XHk0DLvBy83t94SQsrjhJcnxEyJtPq\naRA2DkZwzulCsv22yQKh1iC6CluBvGnE7Q+dm8j/R9HDFElu2jSqGGg55Z6V\nyoB9925Zz5Ypjfs0qzJkYMikl0tyQezRcEBEqX4Ri2UtVShkEF9Uph4PcMmk\nOVy6uarv03KCUh6+lcGKZfygIAhzOLT8x0DignZk+AeD8e1MKuxy/49lyrBd\n3F7h2QlCPqSrfJo4r8Yo+uq1YYMYGZlpymE8qdi65LBtve+ysJWQZq/NTMQl\nqiFG\r\n=s/jM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbO3G+M5uRN2u4hJ0pc4NpUnu+pi+1NvKIT7/eIfx+HwIhAIO2grCKN2wLtSI8hlYhYlR3FDlOSceyh+w17Uktp6GX"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589215188460_1589215231048_0.24320998396798954"},"_hasShrinkwrap":false},"1.0.0-next.1589216156036":{"name":"playwright","version":"1.0.0-next.1589216156036","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589216156036"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589216156036","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HnEUNHYcfYwf1SRicKm/sMQO6hC9iY72cyX/BuYkS814Q9FaBQ4eRDmgrSfJ6XpJHh905u/HFGZNmU+BWV1TYw==","shasum":"4e0a2723a9ff736fa8383c5278e5d3ff23089a7e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589216156036.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuYPLCRA9TVsSAnZWagAAxgMP/As64X6vcPlZ/EsJhhwf\nNsF4vJ6YM9OrQscICCgsaGguLDF6VL5Dw8e/WYo4l2jGax0oJ3DkFQh0O+oB\nb4K9oQObRLihkXmmYszg8R8TwZ80PwiE5upGLhiwPuggs3mF/0pKwOabw5k4\nIb8e/b1m31jqsAih/nl48xW51WwJTVBWZfjn42DONdbyHHS1MeOlof9D9NLs\n1e0WgERd6wKJwJo3uH65101NVypNSMyxJDIjLIPH+bpaBwsx+wjb9il6Debf\nA351T2d1/BJZ5iYEvAvmUJSDWHQ3aMfbOl/t5Nro3qrx8WtB9srEjFAfZZzi\nIWp5ZloKhDoF/+dEP5vJGJGZJSe2h3koEeY60/RpUeKb/3MF246om1KNvMsV\nREA21KlCuNPo3IyfLFHpviA4nQHitpRWR/oXeSVK0k7AmQ05kpWK2b8tHgYp\nmGworJUNM4hk3irctxBBOhfehvXSio/7yQM8VwxBio4651PEyI2Jrf/ggZ7D\nqfVth7bQvvmdYVYVEl1K8R3TlihfXXy7iSSsAtVHw3SN/yLOsA0EvLzLyuuD\nC64Y5MqxDmkM8Ie2fMPf4GpZ2VBJVxBX7rEnSd+saD5Fxnc8nEbUdcSZllI2\nB4PSos3gR0xZYy4SSI6NsgRyDy2t6GCT2t5lQqGiSFjNvlJAfWzR6Fjax8mI\n7ahC\r\n=0Nt3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBCCjT8o+1VjgLO6ngQK2LwzBpNIlM0djQynmxfo6m3cAiBVAJJ0exWetG7iiBZjnaqzCR87KR6UtL0Sso8LetAEog=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589216156036_1589216202605_0.02022414780785242"},"_hasShrinkwrap":false},"1.0.0-next.1589219288774":{"name":"playwright","version":"1.0.0-next.1589219288774","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589219288774"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589219288774","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zG3P0EheoE54Bwhac+NXqX4y2KvJg6evxV+fC1SxW14zExg6WLDJvUZzXQgna/iNof13fDIuKJcWdezsRnXC2Q==","shasum":"9682b09dabdaeba3ce973a8f66d208b6db11b549","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589219288774.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuZALCRA9TVsSAnZWagAAGycQAICZ/J7+PC5vcmP9O/15\n7I/5B+5eMHXE5bf5D0qb+/2jtNg4qZZeD7mDVGpqV0yu2GGhmhP0ipqrnvb0\n4Ey+gDPTv245ty7HbS8cZss7C6UTN2HVVju+2numV7L9HLFW8hucNmG06LIy\n5ideOEYkOYjFLMvkesuO7h5QWgQNM0Vti/IF/f1wvsTYVjr37RrYw21+NMEs\nSKhIMO33D7wzMT6DdiLVWrT0S3HI9kh4ER157G6ZbEL0nqC8axuK1jqgS/IU\ndgarmejHJdHL/xhwvODLScOme4PUcqTLMQOCB2muUZs6/r2Aa17lljeocbLR\n0wizi7gFuBUzacK16lKT8AzpDgxlfHd9jLbNPT7sZv17aB4Tn73VgAQRlZdG\nFbCfqTN1jKYexeZlfDQBQ9ERez8oeynyraarZzflFkjykrgfc/qyLrJk63r3\n1w1UZuapDld+X/qmtY3uIP3uFinFUTWqKq5IPx0hO48/7qLFxzErwyhR0fnB\nQRCXH4QYpzX5+VP0yr5Io9iA/D7Hs7zDLeX8dpPCDoBy0Lfs3XAt8wC2+846\nkoXXGgZHZM6MdMaElcqbjSDOER7godH4CzCsDkJuVN6sjmYsUdPYH5rqxbZm\nPSL+yeWwmNyvvP3JpDjtFn2zn97k+Jwz03liHKh2LvKJFJkDGMvR7Lx3VtUS\n+ywn\r\n=7Rkr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyJHZtzWeGxpoqwV1cvRbWKRWwjddDApKr+xUXyuXS3wIhAJ/6Slci1XtZd1NhbhpMJMrPx4IfG8JV0k3xdDlrNEYV"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589219288774_1589219339142_0.17375892509039947"},"_hasShrinkwrap":false},"1.0.0-next.1589224668423":{"name":"playwright","version":"1.0.0-next.1589224668423","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589224668423"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589224668423","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-FoqpLjvuK7o2vL2g740gQL3vMzPIlc3BTJ3EDhN7sO684BRGa4SjQhxu8zvBP8S7ak05+t2L3JmltFjyFtrGiw==","shasum":"192a82ecf4ec7d5578070e55542f4781278f5711","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589224668423.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuaUrCRA9TVsSAnZWagAADicQAJFEAHKpriBNOkrBA5/v\nH+oky55nlbDzbp9gae0jZ+QTSBeNb8jhwoipu64vaR/cLgE/IjJNKe4gGJkO\nF2+KBJEa5o72Tuncx+XgFKOxcQ+V7dU7EsczOOMcKYOEyXar587NhYfRfqEQ\nTMMIa30aa2N9zHpszLvvx3RpDBOfSxFa3fze8VEnvuwKsKNwtBx/zIH9UrbE\nhyoelyxhkWhSg62/iABWAlKTRBTf1mXSRw0rIs9AzvLQBkqfnrLwAoBUOQ8B\nq13MVNhTbEcZREWKvBC3gWeZXLVBxOIhTEf9JImS8KldRRSU5+JMfKrEuISM\n24ug4PKHoGhH4bUyz17WktiNBY3omiI5Cmjp+Hi/lEZ0VVFXwpIJ4uj0Ni5z\nRBJObrJ9Xz2mD9FpQZI/b602nk5SaGGx9mZ0gsRMnYS8i5YEnTzfG8fWlpoV\nsUxP3CEu03EWW6ywqibx9umECyNqhKODSN3SznhoSVhX4RGLrY76phStLA3+\nOt77qHjoIQ7TBoQYCzqn2vA7t+BTjhePCW+1CpLDNOLcILMeijbcKOot6EVB\n7t+hDEW9xRejSuX2E8VU5EfFSlru0TUWE9LdxSz26k8eLonB2zolpgN18OQu\n/grCrZ4EgCpSdEOogV0p6i7uPx+Skvw4hNcKvXd5UEwno2amlTnS56YEF/E4\nlRlG\r\n=iI9k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGt+i0rZcXjJ2+ieIpjIGQ8i59NnyvxsCNk26/e0GSR2AiEAgAL0jxcmSyrrEvG9Ccfi1RsaLTiN/W7aT6lXZL0yTyI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589224668423_1589224746454_0.7721806378117713"},"_hasShrinkwrap":false},"1.0.0-next.1589228022849":{"name":"playwright","version":"1.0.0-next.1589228022849","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589228022849"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589228022849","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NsVMVX3TzZP4Ito9RjWdAugJAiTXWOH4HEUpYuwd2J8/FtMZtsDN7XbKC/gM+mG6Pn0EmfniIOmz2/J7z6Iecg==","shasum":"b63a492fbb4c6182e72464f00794293a2ae35837","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589228022849.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeubIsCRA9TVsSAnZWagAAyEIQAJgXLrsAiz/0QLr0ecX3\n1C907rS4iD1Rt4lefyDnoDmlKlTBXQZwWs2JiMcW6fJLcaQ99hnigLLM/lDo\n3np0WeVJXHVM6zKdRdAat8M3cjpX8VStF6nO6Js7njZkpR5xJR85vqA1EPDf\n/xzxmDu5E7okr0asRTNpZVq4ucSWhz4kAMG5N+5tND98xS86MLoPKa45e3/U\nsWLPeXZF26P4DOMbyUXn35FmitfmSd3GW8gx/H+594C29dLdmyY3QxvIF6Pw\nLBJ/NZJHSTNNTVunRpdyB+wXK7im2rm99cCZFTtVY8aQexX1zGBVaqu7QzFc\nJAOmb5LnGRxZBMzq9KluWoBDPVcPAdEDqF9vE2t5+wmvRO9RAAO8aygWMsg/\naxAkllkm8ey/P0XrCsXODfNn9p0S4UeGT0CG3q/rfFDivolRy5SCQFs1Hm2p\nmftzOVOclhBcLiUhAHJVW/rXG3Y7lUsb9sEv808IWpCyfKAjh4bZK8B0rqP1\nxiW5YQBFvmiybCVUkebh+qXun8oUd3tgEvjgYGklKLCpJZAR6C88dwTLWHA2\ngFMSOXQWVK5/YgkMZ9U9QG8KHwcSgBLoV73pNoM0tAH1vOKGHSW6pwCXSq5j\nWM1eefGaHQ6PlyFeid+DixYVpOS7in+uYEnqQJF8L5nTtU6ppvfECIcUo4qb\ncHYs\r\n=1se7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALegmxXsJyQAP7sPLIkFLwwgtDUlSOYKvjV1dwlNkeQAiAqtqjchw4Uo0Nic1mDjQ9wjXKep92oKMwwfAGcY5WWAQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589228022849_1589228070920_0.1539758856477278"},"_hasShrinkwrap":false},"1.0.0-next.1589230291071":{"name":"playwright","version":"1.0.0-next.1589230291071","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589230291071"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589230291071","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MgHX1BCp/pHzVUjOHgjHrSYBSPn32D598MKQyPZ4WXP0QBp2+Aq+jdZ6CUPdTpziazHP5OIdwC+q2YDqN1ApKA==","shasum":"0bf20f1128ebe03bc23386938e1f153a42ebece7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589230291071.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeubr9CRA9TVsSAnZWagAAgIAP/3Vz8alHE4cnvYHBAQY4\nKbXRF8hEX/S3O1XHp+nyZuhUJNDPdmCZ38/7TB7sheLdZSXXSMY7tcy5zyAD\nBv3FsE+IBR7Y3x3ykOMrQgqz+CqIadTN34N2fkWb6O20LDUemzqOxH46U3jK\nXOqTmnCQ2/McY6vyDC7xVr7TsMMwGkxGZwYRgVYagRhVM547WLVvToG8FiA4\ngV/SWxP2eB0xUgG7skwJWCZkZLcOOdeXZP0wpvPvNVqlG4LeUW7ZkWXABK06\nBNvAmWioqYOX7PXzZoXPPsxj7v1V0vxZTY9uLG7JXto1ayJLN8POZ1j0q8td\nkwB8Su6XQsJ/fVz28IFJdbfwKbGBTAk0H9rF9RTTqTNeShvmGTLsPn4Y0Gpo\nRXrhX1hhQQvZdPcXVgSqvW0sQBPekoln6zydtzEm1uUMUgnys7ZDdVVga7/9\nU6eY/SM55DfBw8mKK2zevf97Um/2ao+T1+AHs7etWhmrr8KQ2XaCU3kyi2Nn\nhhNHVxDP+oa0TqGDzRUxP/pHux6MBIVCWwnCURysFZaqcl0G3/OdUd+pNpUG\nlTTnHK9sq9jEgnUUpPEQ9iOYXyx7YBzNy7wEm3eTEDZeGT32ujR5r1us9zEb\nJrgs8IRlTooTUcb6v8iWYFejO/6XC4M6oSbrH8xbjLfspKGsmsvl9JJy3Ete\nTnmX\r\n=yju4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRzX6zqVGMlKAnOoE/etdWrY6iGi9FrodbpGu3COBLTQIhAJojwAss0ryn7QDCXP7RkJrRW1RyRhI/MLJNSbvnCRjW"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589230291071_1589230333471_0.4558915871978706"},"_hasShrinkwrap":false},"1.0.0-next.1589233430873":{"name":"playwright","version":"1.0.0-next.1589233430873","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589233430873"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589233430873","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1g/f/ChU9qe8uIOq1cob79d4HTIusmpZvgRaPmSU+ItpX3Zy/9J2uSaGArH1okJAycEfXiF8aqTA7TrHzpQZFg==","shasum":"64ff648081862110e8bf6223088f73e15540f5b6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589233430873.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeucdCCRA9TVsSAnZWagAANKkP/23MWMHWqH95OjaiagHM\nCHtE5BF8OuvMRfkmXILcccGvpBlJ8kGn+anmny6Rl8/f8jB9dekAMBV4cM0w\nDXUoaNp5cpw9OqRdrcorkxKxZeSc8XmOuNqtdBRnxtAQh0YCTS9uYCjMSIUI\nalJn36TsRQ+xBSNNsbaIsiffYnkbA8ywEW8c8RPWHGl83/Jsd7irU4KYT30w\nOK/DAju2aDetGHi5eilN71GscdnVTDRVQRGqq4lphybJbNsystdv27CC28ww\nRHYwsUueSmmGgWa/nxZDmFqV6IUt6JHgyY4ZAj7ekQABShQ+Pvebs5t3hf0t\nvhjxNOmi4NEgenbehyPacXuIwjMNvGf7bAU4y54XwPWUYkROYaT7x3Dn1PLg\nFHcBSjZBW8zFW1P4hRFcJpsi7uokvUMos0l7Qgawujd4lOWK3VYmNkAZZH0G\ntV91NHtobtGFu71/GDXn49gEkUEmgts0RrBBfCfzxmTqdYorHCHkHun0bT8O\nNi5/szp1q4qQBM+2OKFgtI9/4RtLCoH49vW39erpBwpApVAyaN6igKKGO5rp\nACPievWw4HoIjuItlkef+lNnA3w9vzTi4nAb1pnjR0wMtelaGblRobc58ZKE\n7sF6sx7UVtCueH01hSRu2bDlpJa6r3ebo2hd8GZHMt7gUoRmq+65PvUx9S69\nA3rK\r\n=Wtc3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMfPlPh7rzzZlLlkcnQyjAu6qyBobsRBvKzSb+pTJs8AiAxB7uvOcWfS8/zqBNJHQvF7liPjvchsOQS1Dvsuh07VQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589233430873_1589233473922_0.8704152535663274"},"_hasShrinkwrap":false},"1.0.0-next.1589234507297":{"name":"playwright","version":"1.0.0-next.1589234507297","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589234507297"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589234507297","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-APRkIfW/koxwz58CnYKibUjT1yhxbfKsPA9t46l1sAp61M2H52XZ/1sYIWjnqQlSyUzVg36Dxvd2lsHrPf2NyQ==","shasum":"b9530d83462c6153033effff92cee68e487eafec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589234507297.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuct1CRA9TVsSAnZWagAAhjgQAJIGP/5T89zz/rvRdB1Y\nqgWZo6mjNI9IEktjEKYmGuXtLdLEtpERVHHHp/npoIYJthG/iMPK24T+pszg\nKlU8ZLtiZlVFa/9WTU8T/7jnqToOq475lQHfq/3yb0wDEgTJYbPIN2FABPm1\n+ADSCdFlTZh7Z7wCNqIhx0Mt2W8/afzWCDNZL0Eoc9NRtt8f7EoPpjWLuNqP\nUgfvH8gs9Bel1IH9sgqRAAJv8gtnv+RDPl9VsVnT264Tn8U1P+52SeR2YNOo\nLZpqVlDqwlIAFx4g0UAWa+rKwL1VgEkQiTYTAYNoapLv8QLhAxcgFSCDeqz/\n2SlOBNn3VVMpIVqotFn13R7FWNGae1PgGq50L1k2KLq///q7ygbzfIIHGSt2\n30kHeLWCp2EcE6vxdfjHxuDf9+fVVqndNfOdgDZl+YvSYW4YGnOkGoyJeLdX\nXOrWG+UvIm9ZEtE2QN7x0LlJzf+ye5jb7uLx/84u4TKP2GusfswseQY42hxk\n9D231mzjSKqWBV0CIpyeSpFv5oPn0Lrnp3owyQp+cD8SzopKSt5Cf7D5N1UQ\nhPL2ReFbE9CYs5BpSTwZ/wqe5W/0pvcxss9NYKgjflhrg6H0P+yG8ywIFJx4\n0Rr+kTHSZ4DgHPhV3UzR+IZYrHMXhHfp8cLdZoaoGU3XulU12OfUuJ9Pd+F2\naSBM\r\n=uv7w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEidsJcl8mEs+EdpRwaMyAK+xKqeUSAFAyP96FLBmSNwAiAnv/JCUxSWEgqvMtpJGqJSqccT+KZgI3Fe5duJJblXYQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589234507297_1589234548720_0.24178626874242148"},"_hasShrinkwrap":false},"1.0.0-next.1589245340205":{"name":"playwright","version":"1.0.0-next.1589245340205","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589245340205"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589245340205","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+SqnP89epOfwBQrntiJgvMmrA9ICSlfadhCY0MpW2loh/ctykFwtAU3gVG7WZ+vyc+AzI8QLM1tkfnSlmTr59A==","shasum":"2df05d6c001727d190882342675d68e7df856f48","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589245340205.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeufXFCRA9TVsSAnZWagAAL2QP/jz61drc3J/0wThiCa+V\neP88DgP2xCoosgOBtNmuDncK6kieoHQPGe+NzReybioWPyYpJlG/1hK5Kcqp\nNCVacejLesx47vVAl2qV7bfyTDYdGQhgmpBB8be1zERwBJTwZxuYmAnWskyU\ngHJ3Q+tmYuqekIP7/LPlD3rYSHA1gi3W7fMV0I9V5DsK/YZCBY1YIo2xbywS\n74aV4PAke788TOkhDUU/IXJgTrZ3/aaAUAHbRmLCwdtLBQLF3MB6gXeQJ/rl\n4ixm4Zrg/rik/KZGYYHmtsudqvw+AOa1w1ZvYpdvZiKInYEGiNcNI3bZ/XuQ\nPbaKUx8gwEoFrlz8SuvRF7dF0HvV4XOaKLYB3uK7HghOQzOVUrKTkU5/qmkh\nxwNWJKMplfpwqKncrI5cLWjFO/g+d8w14vtOEl4w+T0GbwrpYefK6eOFZwyv\n1p+yjPaW5XgsaELXrxRdp6+hCYt8x81f+MKd1fPoZQX7Mw1HxzZ+VrWRrnqv\nN58/5bPO8nXeh/sFDdI+sE2+OIbUGTYHgTX4WKsjf/mwswu8QSGVtCrqZKbj\n+8fClI73HB//PLO4PbRhBdsTxtIEqqDOxS+bcake580VTj+5MW3shiFs7Uiz\nHKJirzxonmTJvw2u/1pExtn8wkgXYU9dZOt8sUz1YygkH9e9LRogJVUwwHpF\n9Y3u\r\n=XdVT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA225xIAjxYxDgtG7ir9m3xZbZPTrAL54bbUELLTQuVgAiEA6VCD+Ird2/u4qgFho5mxTA3NTDZnAcwJ5Q28/M3ealA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589245340205_1589245381195_0.4090667337590186"},"_hasShrinkwrap":false},"1.0.0-next.1589248715648":{"name":"playwright","version":"1.0.0-next.1589248715648","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589248715648"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589248715648","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8qWNsh8k98JVKbMs9foqJLAKmZEy2IIEwY2KpDIb3qejX4PFWwkypPh5Rc8mXVOtvBGf2NG92hrw8BSFzNt7yQ==","shasum":"fae640b00e089e8decd206407aa8580d35998e3b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589248715648.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeugL5CRA9TVsSAnZWagAAZpAQAICUdUi6nX2w6ZP+J6Az\nqqzg+0LQduWQzq+aDknJOfsA/g982CfLujHuiUQsu6TmXo8AV/jUznqnbkHl\nANKpDte+ObD3DZTvd4Uy4TGeBhqVNPHcrKQQhXgt2fMXF8s7BT7vSQYnoGWG\nukbn3addF0ApsAmr2WbCr3kF+whMZarPIkZ/0orkHlUHXp9WilkJ15njeG7m\n9qKpY8/ftyPd6fTofbOoxIBKTh0ziJ+WJZxXhQOhfmv9pubnIPwJyZxdZjz6\njxBJXKL6L/oYCl4DnjWVbfqQgBJo02Yeza4MoKDkVed08gucKZ834qLY0Mst\nApnUwde+Tiw4La6kdqjjBCieCasBt3DxL6RP7R9u0Waq9oxN3sQB9NgZabNz\nnt3i8rlJd9/YghWJ8r9yey6DGE/SMzclu+4G4UWjJDUsBp5NAEacnYNDBsw9\nsduVfnH53obnmGYAiFUKvA/Wty8sesqoUrcCCyLZEHPa3NQyVPdwD6B/48aZ\nKluOIUxqqPjvtTTiLUrXXfO5QV2jRmNrrIlGhVstN4eVLDMzpmnYnflFqFu4\n3QPel+oOu88ZcHOFsTNuBMSObmfxCmitEEy7CitB6E0obF5XRlcKnysBmkcj\nAQPq+gma2jPDQTnESXvHwG1VgmGPPhIQEzKemmD08HE7AcCSQyHH2VBIFJD5\n9yxK\r\n=DAOP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoEsNPSRwZzenZtN5ASNvQYB3KJEmYGOwddr2+tElUgwIgUhs1LNVEJciMCVXlll0HazQ9j+ArKNGrZeqAU613Y8s="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589248715648_1589248761493_0.7866249086083632"},"_hasShrinkwrap":false},"1.0.0-next.1589262842235":{"name":"playwright","version":"1.0.0-next.1589262842235","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589262842235"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589262842235","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mG1H5l/HR6OX75lp5Q/A1Y2vedau73DmJdawCXCZegX9RNi01wAcVPkZTj33bi9u292zzaD3jRdhiSs/FxyMpw==","shasum":"645e4041f6dba24c340fb058fb177ef525598c9e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589262842235.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeujolCRA9TVsSAnZWagAA7CYP/Rirq1oZMYS/xYWJ21XW\nsLykZyLCeF6ydMewZY7VFzGY21ox38IH4MKL1xam4swNXdeADPM8pzBb8Goq\nlk0fk9PFMrM+5Fe1an8fDsvkNPlRtFtPrBCrZNym4sUTsm1mwWeebDv5wZOP\n4Nu9PDHoc7cdRx3+dpp+JeS3aXMWUEQDHDvrAVXAzEaWpyf155L9bfMY+7sU\nPpYe5Ohm46O8oqNtMcWwnd7u9Gh0f3zQF4vE5bf0/qJAga7pD6bvWSzpfEWZ\nsXO6UesP9nIG8F2L37eGLG1d9H2dvMS6uBZZ0w/6Z1spvFs2nObUpsQkTPVg\njM0YBwWCM7hsaTB7YDKB9bm+qWjnTPtQW4z0XGdjm2JOBYQUvoysqPLhdBa5\nor8uAsDuZxNz4iSrYmIrKSAIRO2X1OohELAu4skzUE65+nbp1EqwCxdAGkrO\nUxisWnemqrFVrGdUznggb1Op+tIt3FY7AD+7JyfqTs2CiupKx1zJJMZvjJJW\nuysv8bUfnmvlMZlCV8RIa0BUC00SrrCuOiANHyMb/X1UIWrXxsJeJSY9uSeB\nZXLP9k0R0CA4At5xrKYFQEqC2uAssNVKk970tlsXM5b5RuLheri0f3WKrMWy\neB2JHLYzzPbeeHHGycQQ1hAl0jdaQUyfbYQJ6sxxRmxiZE00ynk59Leh+BXJ\nnHKG\r\n=BIMv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDybctBCYCvcFc+uOaOpwHlFiH2SHL1xJtmfTrqAd3czAiEAwIte5UpR1CVnm7KFQ6LqUT8mx/S7LhZ8n9zzCeKmCPs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589262842235_1589262884821_0.3617336725535816"},"_hasShrinkwrap":false},"1.0.0-next.1589294229150":{"name":"playwright","version":"1.0.0-next.1589294229150","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589294229150"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589294229150","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-W6sa2tW9LVMJDJua58pzsR8rdhKwjJBODVTZFrkLAoZGqxDMVjYYm7xbTFioI2xvFx+0j4DJFpECd3a74vtVEw==","shasum":"0ae6811a57ff318bd324437615588ba652a2d859","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589294229150.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeurTCCRA9TVsSAnZWagAAruMP/j+Qm13nNokpgca4Dr3j\n+MKcJjpaOqc43f6vj+zXFcwy1ioqiMCvTfBFo9nVZlp7fMXf2cm7MAqYwSXk\nrY+ZrxYsYUrNSq0FyoAzskmpLl1mbIdd0TPKuGUy0NKNmt02OLJeHF4sSyM9\nFGiX8xEKZuNF4fBvZCbmUDhGH/LqcMTqID2boDNJHzlNEk8WyaoLCk/Wnsno\no5Y1hWt9YRSSDctRJ6geDNeC/JALHBNYDO7clVml6Q9moeYr3lHU6xBdPYb8\n3Bgq5g8OhlBm+4/QvnXSBCq4k/+cjNkYCmTzTb/eDhp8Yn432qgh22Mpw9Fa\nwLexFx9KCTknuKA/GeUAgN6W0duEUiQmJVOKknaOaxISRvOCDba1P6jZgSs8\ndv1ucsm8Db47oaZQniVmFnVMyCwo9dndjQ4dojNfSa8QeXRKVQQJnqydS0hN\nuTLivD0C1FKk6hkIxwAMM5+Fs3yP2jTc7KbTnhNlBKo454tQ7xbLJadOPpc2\nP5vkEHuDK/AVifEfBvKoUprZt0bnFgl14CGZb4h2LmuaZaBs++dl8841Eclo\n3+j5UQfcZnunRyT0qxexLxL9Xn+lgLkwv1zFc8AhZnkk1pNb1bqvLEeKxQPW\ng6tHrEF9ziNgpPgyh0AKtyRCJsIGWdw4YcBGzn05Kl3D02tvxqi3pOSIZ/PQ\nwDpG\r\n=ru78\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAOYj0GlgC3df2F7noAmhZGCTfcRkxJ6u1xKwKTKKgxtAiBB2S8OR87nyNyOWEEsp4i2Moa9FOfsTRW49QYy5Sac+w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589294229150_1589294274141_0.16017607070003081"},"_hasShrinkwrap":false},"1.0.0-next.1589298368558":{"name":"playwright","version":"1.0.0-next.1589298368558","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589298368558"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589298368558","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0np3FxypAAJ3qWGhZnmbL+FPDfl7mDEploR51qAXecj4y8RnHMJe880UM9WBwvBVY/MWwgaodkKUVNaa0MEQ6Q==","shasum":"c82382ab5d72004d10df3fd0fb4ea5d43f842201","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589298368558.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeusToCRA9TVsSAnZWagAArPIP/jFbcdMXAy+ChYIztq5c\nJANSqffgejcWNVfjQxwyB0uBHoTIhQerg4Q5zTuUSo9xJV2F9uruOJGxYwIx\n3EoUCyqNIeppuTdx36iNQ0h7y7JpkBEb7BW+OzJjKKqKfQkqQz8dhN6z1sUX\n+hwVpHGqOLnXPyf/HpkTouTH5G5sp/ZFGohL1xS3sgi6xqSOIpvhPhHnjbQ4\n0NCfu2kAiYb2f1vNNoYNV0kbVeOhpMddfAFnZqX1bM9t26c/4qkQ/G1UnGg8\naKZENENutTA7GQh//9fft+Q45hhJHf5Uf2CdqeVmiU26qkq143UN4jm+b/bc\nunf3NT4blkH0Ac3JD1xMpT/JOhNwwL9dgQqHQyrXOQlAml76dPHsRtxNGx4S\npIIqgckobRYelxT/qNtHR5KDu+gWw6ht1+M8G8wtmlRB9KmlVc+YWsRpntKa\njh8uajpaQK1BvjsHXTo4YyEJ/R8egQwDHPIkeqCS+pIQ5HeDGmZKKCxESoL5\nDYoR2P5V9FgHbnOowniohopmOvINHb4L/lHpxhmoqZrMVCClkueZ6I9sJnZU\nrqOQpfQyKOQs8T7axTKDzXMqCEk9wwqplTS64cnXjBzvTFegYrMgfdyrjyxz\nknh8vNS2pLwxJMl+BDEc8a5laJqHx84VStqeDggP+4X5f0NGYIQ9dZOMvjwe\n66jt\r\n=ezbz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHm3ceXMLKC18/3qxnYgfYevHTWbFmadzxiajsMVwKPQIhANnQztr9gxKDcL/piqpoc/Vz6C38rhBCeITE/iJAwaT9"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589298368558_1589298408350_0.9816593272226111"},"_hasShrinkwrap":false},"1.0.0-next.1589301282652":{"name":"playwright","version":"1.0.0-next.1589301282652","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589301282652"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589301282652","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eE86QcAwXgZsR0QF8oSVJSHeyaGyu5Ng4VCl5qWv18tJVh5wyV2DJANtGXu+SXIvpqZSYPQOJWMUUkOVlb+wBw==","shasum":"99cc9c5000511bdc32d51c908fce1082e114e8aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589301282652.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeutBNCRA9TVsSAnZWagAABjIQAKOdgZiZhmE1JYbjL3Rx\nH6EXXLup6scaAPfqdbG9WiEGA53D/bMM7fOl/UUpG1c1MyduJWVI+QSTIE5p\norD92ElLt8pQ2Ohvlsy5sGfSOfuw57k9al4aDk1rdt+qMWXBov1qbM0GAGWY\neyd4/snJfH98OQNo9zub13wkcDLCPjFRT84cFotvbw6TNGFjsPxNO7qSFHli\n4pmwo73IFH7AoVnTQuQ1JeqyGGtVripIYOIH/6En4n/KnrJFLXwq6UblzxMO\nxVS2JpTwOsMG2g3IN/Rb7G3v/suXFqP7kWspoPrOkoHD2Y9ZElJ6QFvP9/M8\nJtCiNDksYE8E4UTgk5HNnA4FdDr6uMdqQRR6yZbM02sfDKcq/XpdaKMiw5Ug\n8+1TYRMZqkJLb1JVZqxU/sYQjpbtBCJL+r9xQYb6cft29uXRCk4nbvd+Un6/\nySfEeZ1RDI7WOMcUaOAeN6vnmChAdUHOBQITo+DVu2I+M8xAezZiP81JyqHZ\neaNtQngwia0DR5mQiTsif/9DTsHDl2ok894th0CGSM58NZESbBzdZE93SLaa\n+K9vvn9v5LvI22M1EZwmcFbWF1q7aK5IXHPZJeGTOb+ytkcWT4TpvMUTcELk\nvDDTEw6jkomkyfsFWvVZUidSFX4RQlgCPXfajKpe+A4AsUGqUhTsngXhU3se\nrlIm\r\n=DqJP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFbwYXIq1+XHiUk95LnHa5G9jzRab1fHM8tvp7R7c/plAiEAhmnm412uLA3682xV5zWWuFotkFXHRajaK94jpN/YwUU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589301282652_1589301324752_0.07632380514778525"},"_hasShrinkwrap":false},"1.0.0-next.1589318957334":{"name":"playwright","version":"1.0.0-next.1589318957334","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589318957334"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589318957334","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oSnlG5ZmXVJL26ekunvTqwaGUj7cv0axd6HccSWS9NLZQzYaXwFIx4yAN/vEpm80o4Ybin4NCNcPbcBEG14oXg==","shasum":"7883584677f8fa027c61c2ad4d013a62a91f5982","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589318957334.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuxVsCRA9TVsSAnZWagAA5jMP/iS5KjS0xpHExLRvC7dh\nQpiWdLDTmKranzKsv4T21akQEfdz5mTRv/vBX6QFPLJEVu4K8PpJ2iGCY/0F\nOFZ+cs9akB9xU+iOug7Iwgiz0OCU61nlx3R61nyfWQe66jdBecSJe2lAsRvl\nWmeSJl7ioqet8HiYjoi4E5Xn70m2TXX5JgrSjCBBi5Da+A0rU/f4dV7QLTvs\nCnaYDNZHZcRfvmDASip29p94rQAS2GyGZELFJjpqn2SUyP4FmipBWX1B07jw\ne3JawBJSBvn33eOIRDbDIdYLjUCnLg6mw79i4G9hXTAQTCtqDofTNPnrMTOF\ngwhZqOKtOC1L90GLFCLM4qtKPLe3xU+U2MS8wFWz6ppT0qW2EbiPKB1Um9WP\nk0Hzx97qaqTPcf2fNAIRGEoWsuc6kZW5SYMFQX/q6E7fehE0pL+ZFm2qA2lq\nSE8Pr+z7g+013VN2gTZ9wux44HjlyvlPrRxUvjH9R7PFbpyFoxqJ7R0pT4Qi\ncvI6M7iVP1vZaU651aRxqeBquKXye3co/Rwe0ggeOG+x3gL0zesjXiV8RT/x\nr2AATN9KgqxBkwUnoUJDd12CPIOj6Z8QSTsnO6bokcsgniRlUmlptd2ar8go\n6nHXlmlkvWHPk9wSK/4B6FM7Y95mOYY2PaumYUrfE0nF60YLEdIcnbFFAE1j\nTNTm\r\n=+lR5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcTBHDFZq+VVtkDCsBOC5Plmlm3aYjeQv+3xQzjLU2hAiEAvUiuiM6jaVJqWUHiP8i6W6uGEky1V1mG4Unj2WkzBQI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589318957334_1589319019811_0.9798152619019451"},"_hasShrinkwrap":false},"1.0.1-next.1589321722866":{"name":"playwright","version":"1.0.1-next.1589321722866","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.1-next.1589321722866"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.1-next.1589321722866","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-es4b2/g2c+s16Iqvm8XQqLkxmSOvaN47DBGgz2CRhzLtL2ewvQPUAqK7RI5dMjhZc5V8kag8xex22bAfXoLQlw==","shasum":"eb6c303796af484123ff51ca26efedfc5fb86e19","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.1-next.1589321722866.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuyAjCRA9TVsSAnZWagAA0gsP/RQCAscJdLCEdmysRi+V\n1nT5amPVEyGS9KWAWruYDPAgrAx60i4hb0yeC6kx91M/d285RvTjq9DHV+jc\nce0J0ZnsUjRfo5GU+6/ZN3knwex9mB4M7aK7d2RtILrCq1atf37NvtvG3j+z\nUcpxFh9yTVZDbyw8Vk5ZpiPQxpODFv4OwoSd+NXYEqCmSssgbU0S3cQLaLKo\ns6uNE5WMSxpkrRnIUzGwaZjMWN8zG6iqjNP850grELz0klFHs2nZS5NVPI8I\nZ6JvTOJYZa1y0w6updZzl04mL66uqiOlwi4oWUIcvlmrkoT7s5sX0eYNRizZ\nG3x7bq3CK/2D/Q8lvKnSkrurR5vyRAf/koYpaRh+DNlg4VTz65BZ9JaJj43H\nhnotMHCU4PiHWyEMTjDXG2o23xtJZjwVtblJd2I8BktnKjiwbStiO1038wgr\nQPr78O54Jiaxjdwu1EkaLOSnH5UtfsymDjVSSl9LGWKA9SYA0h8E6C+/ogLl\ntqp/oKegX6sHudICVKpF0f+MosH3wANHEu26pDAk17/T+RGwHTfjEx+JgiOX\npGLZlB1rnkQLgREsDbHisQlKK4TLxdxI3kVULfbyYjN0M6zxGY4PEAgpmi7f\n4Jpnbh3MtIxH9/UyMD0BGv6TsFq6fzSQaYxtHvsmFd7YrmYMOsBT8znVaNmL\nkp5U\r\n=0u1r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICdxI5yMmN80HzqCLBgvRl81AlqBEE9vSEFBx1oTUqcSAiEAtzwu6XWkTcWq0PKYPxPqojTzNC36rBlRZ5jOw5yS71g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.1-next.1589321722866_1589321762992_0.605875129130276"},"_hasShrinkwrap":false},"1.0.0-next.1589322325192":{"name":"playwright","version":"1.0.0-next.1589322325192","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589322325192"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589322325192","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-R6uodx8fPNjs5uIYpR5a/10KxryX/L796BKc8keyLXUq73/qwXzUI3xCv5zmHgjK2/IOGcXrg9seMVCGTC3QeA==","shasum":"7f48813d5ecf082a7ef3e4d7702a2dfd7fdf0a1a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589322325192.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuyKBCRA9TVsSAnZWagAANb0P+wUgO9E3MoNMy9QlSVLP\n5nD8Sn1PVpD7nSyD/HzbspkzhclCWocaQhIOfL5sFCtzbjfxKla3nZ1vF2cD\ntW2yw2SFnokW1v5AQjdhIpzTnfRr1B3BRZWk8scDa4Aeqm5K9xPw4CWrgg0T\nPqaNGD4kzzY1Lc3T1ys2bSC1BUrj4x7LTyGZ5+xMDx8gKjMqjZCHD8qFOl9h\n0a0BctylTaZlOVI3MCJ6RQdWL/tni73aNpOih/GXwFf88RBMLq+qKjasJWtO\n2L2u/hS0YpNNKu+tEuzNywpDmzjCiQbQ7DQwTCYwNgafelu418K/1qwK3MsT\nMUpFsU6rjWEvTBcrj9+fdaaw2sdzJopeDFDkhATvKvRaRDNwdg4lz+l/6sdj\nuSu4YPe5IsFvEhoRtVUUArYdFnUrXrULbq8Hz0ds6BZiP9WpBDOL6ZyOl7ZB\nm6ciM4wqZeCnAUFELvpI5F2kPxA78jOyX4mF5NMYgSHB2iOyY67GjUNttiGa\n07ZfQg5t+Blz2LqrHpeeiTzqR//w1VUMGBWZvQQN1F1U+0oc+1WnlLm9ih32\nGMbIb9IeA9boRS5YxfwrEgkkfleAEqOLwgo7NC5CRs3jpAO91kijkembD9RD\n0ssnvU//cG/+fuyvQ5HtUZ7j1EBicNTzQwoYvVf7cg0bmnWV3kH8vAIKjEBJ\nAbcI\r\n=bsKL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWrIHc3ICH/loQQyXxalYIIua1v3SQTNLKd3yUzw16ZAiAvt4RnFx8uzNK7zslon5+Snpsv+x/YqbXBFnNocar3WA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589322325192_1589322368648_0.4033516050323842"},"_hasShrinkwrap":false},"1.0.0-next.1589322624858":{"name":"playwright","version":"1.0.0-next.1589322624858","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589322624858"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589322624858","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-QaaU3YtkTTnIRjkCKFNWf69mQvuTQokPAnTB+QKMdoUaBM2eG/qukRumTgxHs66ijHa6/w2VOkD4h59J4nWgnw==","shasum":"bfeba631eb623eb46997d81b6e1359d8072ba120","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589322624858.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuyOvCRA9TVsSAnZWagAA+HYP/3aCjDG5jXe4jtwufwkS\nTtBBoUJXv1Yrt+zzEwXPM5ei6O2s5o/ekIcdWUmtBbqKE+2i6Nd4UkpXhDCp\nA86FiEwGffdY2qwCH01oIGJtXDKfB3rK6LtNlzU9wToTqHqNtcBkhWeQ/9oZ\nbOoXANv587bHVUJy5cjKWkSx5Oc240FlUtRTvRRKeGnAHUBINDP1BRbml1ns\nFUznvNppEeoZuVN7JH+fMdl5A7vUOEWrAtJSRDNa1S94RaYkA09RfVkLDH4k\nYx7Kn+LCNvTcU2WqOkNBy9LCa+AiAs3rfhRbqViybT2OdrA60Zke970Ovf6q\nrfc9bFGLdqF4HA1YeouExo26DUvfw3vNNpvi8qLNHbAPQieyZjSvnI+OX11i\n33wc42O1hGfOjjf2A7odCUQBhEv+5La4KA/58Ev6WEvovqWjCzddDv3wzvYb\nRu+VYeAlJZa5OcrQ4YR9IvpSqDaj+dJ5V6mOjpxV8rdUjA+w3wfggPu+EDRe\ngqMAE5xkobnV1wILh8Ic23cswvMCA8EZ2Cx7NJmP9k2gi8UDo7wKlCjTB7TL\n5N4FMiqm3OyaeTJFbZH68nf8w5WqjBnWi3ADd2KY/Gic/9syExgIz60F9Fsq\n4mkrQQ9qlZ9gmwhcC2NJV/BHRjkgQnpNEUbz3c642SOWa9lG1N/he4XFYoOm\nmVCX\r\n=L6FI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBQvbXcjki85qXxqq1cYHf9v6stA55c/s5Scm8jkgUOQIgZFfwspjWzbS53BAe844UsKskYVzsKrHiOOqXjV1qx5o="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589322624858_1589322670885_0.8909823420283522"},"_hasShrinkwrap":false},"1.0.0-next.1589322926923":{"name":"playwright","version":"1.0.0-next.1589322926923","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589322926923"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589322926923","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mu51VyBMJEsV7AqdBRIT6ltbZqSH2W0zV2+Q1I5lPlInFJLHmIVouEy4EH0Deh1ckCDsQ502K8DFBcU6al6aIA==","shasum":"bd56a9b2702df5a3bef2aff61445aed5775d097d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589322926923.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuyTWCRA9TVsSAnZWagAAacUP/R9MHszqWH8lkLoaz9S3\nzTxVzOJcY0KziUFS+P3PueGJsGB2wKTvZsJim6OvQAzcfSd/fDWHD5pS0JmX\nqA6gmEY+Tl2OKptj9q9tKhYYTBpDQ0Pi08U8w5WMBZt19ulG12mbgwZwTW7t\nqW/3jNRvyn6A4NHEkQcvQPUYZVNPatztyF0wSuOtQgzCJ+7GMO7ejL33xUyk\n+fryLz5/r8/UvpybBDIhtafTpVVuBpx0ZJfC99gVsKTDwIBb1oWOQRx503bd\nPl5gKiPhpLUQckax11yfbcAffjMDLVisbJn1E6IUUNV3gB4G6Mj7D+oOIvMe\nEIT2lnCj5nMcUUD9gkFbeQvAymK3XIQ1BMfxtyYnaNGfdaESGsv7Mv6fQGhI\nFwd+qTIsIA5SLt6R+NMvt1ib7gAHPI8L1XzbYDZA75rFDE6ZuHs/BhT67A4j\ngwUkxWXO0+0D3XbBdaavwGBgZ5OMEetLfUUshrCj9flNR+Ngh0n8QXfgXM1q\nWsO1t9Umv1H0U1tCOaCPDwXq0sHS+A0zHX7L92NrG5xqlmPUFsmBYOqMRThp\nX5DRzv/AMA1sYa5JLTrKCgOG8L7XPIMXWklQb99m9fwhbVQpdD8r/8yRJ/qN\niBFNSWL7c9vH2ob8IsfNR9ge8o4n1zuqKfsjmN7FzmzEP+htxsNhEc00bzOa\nsDnK\r\n=O3Zh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFcIqULL137TvEai0p51ErYcsWfiAgsZIsIjorv2VBjeAiALxfyGHaZbcdcXjlKfoX/ClRN93qDtIsBSF66gg2Ko5A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589322926923_1589322966258_0.08004543601670489"},"_hasShrinkwrap":false},"1.0.0-next.1589323670494":{"name":"playwright","version":"1.0.0-next.1589323670494","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589323670494"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589323670494","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-z+qCaksZWyZojdXUDv+x8m9QFEgd4vk4RWnhNLWCcbMuoa4J/b5KngGpOE/gmeKxqIHMf8TDus5H+rQP79tmrA==","shasum":"d04de55f2b5d8acd7d3bcec299cdcf99ec12751e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589323670494.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuye/CRA9TVsSAnZWagAAz/UQAKMZDQuLa97IEmF3TcIy\n2E62qdFqa2ToH1AdZe97q73OQJJ+yjAjn2KzSSfFG6Y3qhEA8RB+IpBi61gE\nKN8263f/qceX5S91PLXu1lzRbZAEdHv5/Cs3FHuhH8q2k5NFsyV8Jf2OMnAe\nMcaXG+BxGOhznHmX+ULWhP7RV+d2rWaVdIdxI0OVa7RJ4R5EEtjrYY5i/VtX\n55pemtjF8lXRpoaB2H4GjHym8tdM+6Hl62KURhVaPQ7z3rLcTAO/+9NN8mqB\nRWYodEoQd3fWOhz3Q5e+8yEyDHyVLHuxemVwR9ldeg0PAOGDCtdjDbTpCY1w\nDLOuUvEKZJwPuf0FxH+YqtoHL3AjHbLv3GGVapvrrh/OPmsmB22CQ+nUoyGG\nY85qs8vQ1YwNPFswZ4qODOLOHDlE2fOhHCqMJ+rq2mP1v7cnOVInaxIoUeOa\niaFrUmcAzuxtXdiDE85yUDXjYWBRV0hoTieG76nKyHjfJdS+z8/ZecCN8r9/\n5D51hmE7lTG832H3F18+yzbQZZnwOToGo6Q3AITYpGmRR6f+VcCrUgPgcHCX\nET1UB+7Rb0ZeHFAkSco+HjSeJpve091bDxA3DQCV9eMel45X2F3T1A7c29Yg\nk+OWcLP7yDUSZVV9RrSiViLM74ds8iRJJqwpxxWouqeNb5uAobCkMgv0Ki9d\nCR5t\r\n=FHIU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZEzI3Rpt/KbbZc6CciHudGZR1OMLu/n5QFJCNMQwuiAIgQ+5AnXw9aKeYVMVXsro7YpEFnu5j8A+9IqUeUzuiNp8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589323670494_1589323711411_0.9504717319298048"},"_hasShrinkwrap":false},"1.0.0-next.1589324382688":{"name":"playwright","version":"1.0.0-next.1589324382688","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589324382688"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589324382688","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-iEiWzCMVi80EWc3ZybATsaU1efloYS6eH+R3CMSjnVbKVcIwT46PiPOqOmzc8qB4m7j4CDS4jSuryicO9+RntA==","shasum":"fee1663e999062d4739b9dc493c358d14dc2d8de","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589324382688.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuyqHCRA9TVsSAnZWagAAo18P/A0mH+Pgqh+Ma3/HT5dW\nGDZsvTi89RVnoTxZNINY4KUlTnm+ofEkmeP40Mdk4Dj9tc4e8N9JIf7FV7k6\nITfHiH39x0YKRyfiiAPwyLJiesc943ypBAZICErr+iNYH43MgnkG5eDVmFkc\njFxQYK0LEE9FnZkNGLjhZOek3wf8ulFq1aZj0V7Na9B4WLhVrrV6be6l7QH/\nxYhS6vW8JIi8UelkkUyMBHOe7gO6xZUbrLu2LnAwp96KiBy4Rtq2fBQPb8AQ\nwwuqEyBaFGzilmEMqs76SiWADXAFeKF7zfescgwfkgz/c/pw3WBu3rM3SjVo\nCLRL6Ea4ThfeXIY7tzy/R7qPvEpBa7jOpGAmnZof9TnnRdUHJhxWS2KWKe4C\n8ZdDOorBKFoOW3cY27aQ2eG5UjPtBA1yuIQo/o7kZuYmHNnquDaQDA7Cb6eG\nnAy5AsOS8xyRv2UtjGovipGTLqRfsWux45jd4NBKm8Dd4V9J+bqpc/BiK5lp\nmeLD38LKaDAmw4cyPVGq+xGzR2gGNbTW2XSbEb1eJrZgpw27lxTGBkb/XBO0\nW1kvsy8SxTiQlrZRebmJAADT2+nNGd4wcbfnt34ObauySgRe3IPKuU4ychkU\n0iabn+iwq15Z38VbfP3rzQghDzS7Yg9dspgHBwgXUePQRYWGoOAzO5zDx5OH\nkmHU\r\n=pfxR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7RObmM66BnN87pPP+h2aec6ecbfqEWXbY+tgg6MnJjAiBvdK7VhR8WH64VIP4ER/c+G7GByYZFitMZ8lt1TjT/2g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589324382688_1589324423511_0.32411180291834274"},"_hasShrinkwrap":false},"1.0.0-next.1589325437369":{"name":"playwright","version":"1.0.0-next.1589325437369","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589325437369"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589325437369","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5WVVC5yjpMmKAP/zaQ+Bjm6j3xp68RSOGrz3KVkQoEySKbrQLrGI0Y6hHTtRECv3j9BBAMBDRt4XbwMXRCfBuA==","shasum":"6b798fb4c69e37304d03ae811f5cb7a31201682f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589325437369.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuy6nCRA9TVsSAnZWagAAPggQAJp6PKqYXacrol0Fxtpo\nas3ZTnZuYeupFQGsDDFN08AXHyPdW2X98r5fXfG1Z9JdMmRpilahXshEjreA\nspwMrh8dZht4UEB0BgkIpqLMGkbCh4WLYO3Tsz6ShWKcewuuRUTzdsIs+sAC\nKR6Nqt4YuU/VaCuZtbWwxL2CoSiWI+uDGQkUf+FNnK5Y6Qmv4MBN6+l7/GRR\nlJmnLnShszwn7fb5BTKuPk3yF5Vg/hyIp5BYz5opBMmfdQhaxM3H4A2/Z4Nf\no3UWWvzc/YtqDbbkw3scwsAtSk2lRCXk2UaGH4NodtnBzEPoGf9dEndpNqcP\nvsjjCc3STNHexvqZ3Azrw5MR/qgDvJnyhUg85z+R/Z8AhCm/+bCgYxqj3m7R\nxsauWEXtrgyLTYrd1JG23IFOexrX5nZ4nGRzEq8x0Izec0ZYiaAFe2ael+ua\nSgn39RvNbypUjKsXtfYEVyBou9/lsjWfHq/uMvHeQBWnXdZtGyHcmE+E605F\nhIC8iw/pbi5xwutwu2meTzRVqEDf/eYWkOePDsCXo/PlUzvZ6LBn2xTJo4L1\nzc2SzgKx9d+PvZMEptOHf9Tsj+CpOCHUq+poiQD+cmb/CrpD35G6NhiuiTBg\nzMG8ZjR0Frh3iOno+4UQd11C+VVyEPboogHZCqUH0MMn1/Q/7wy9WAQaBReA\nTBI2\r\n=2oYX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQN2sH76avMIQU0FaMGD2zUij4T3Kqjpi2xUZgBUEk8QIhAJusw0GWATC2Rm9958iUQAXTfATO0NCYF/zZyD5Bvgic"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589325437369_1589325478976_0.13795828186467585"},"_hasShrinkwrap":false},"1.0.0-next.1589327101142":{"name":"playwright","version":"1.0.0-next.1589327101142","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589327101142"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589327101142","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CNJqGsQbrduHrrZbd0rlf4jOWbGR2rsgkr91L/xMkt4kprO6zhFrk84vKBDmBxQgzaQsq5PYTdmR9fnBRvoh1Q==","shasum":"299d6827f682a5c504e7637da591bd3048d3ac12","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589327101142.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuzUjCRA9TVsSAnZWagAA5QgQAJUV/KnXNoavD6VDMHDp\nuiTPvX4eIpS9Y/C/mz6Gf8jwYN2XxPzqvxzs6VLHq+sFoMS3HuOeho3bOdqr\n2wkfYT7YOmSbhEibOzKGSAxyKv8dk4FBV8nUIG4xX5ebRtGtlEfzUzwvqBKX\n/VhCtr8XghRe0p9ww8qRwbzTZfEuIj4JUcJ7MkNvdQgss5mxBlsGFHYZEEA1\ngtNhN+4fYemGiYzf8hmRXi5LrRE+m+VzGDn1yjfKPmGoiPmgKjcpwRXLOtcs\noNb4DK2fKPLv8IrqSnSRA6hf5/snqOj82SXGPJZeFrgtuDc6PL43jpO0/rka\nvCSnr3vU+j0u1wDu+vMZFwRfpl0y+VeOZlN2e1xu/xMvFWInZi0tNSGxULMy\nHScDSbbP5M2rNpRDl9orL31dkRG9LOfZKp8mLSlRE30OzKukRqw0JpXxP04R\noPO03fh2tZyM4MeYllAjwlu68cJgAiKwFK+tpDOBOKxrQn5KQCDM6C4/PKq0\nlnTPXkT9631Fbx7WTah7z4wn90tVMI4qKqBAiq2MY4XwpbH/MWgvnvcfSgfT\nfSBbjUYd7S6OKfj8tHm/9TbKI0h2MMQ+rNcs+C3alydnkSdPSblwkE1WW6jk\nI1wGw7/o1Bu44Af9G67VpHMJA155QcTm2Nry28s+gm3wnZ5aqHFNjY/yXWEn\ngiCc\r\n=8ry9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKrs2UprfYr3mDvWos66BnTSxxhIDDFat5JS/AAknOsAiAA7pD6gzzihJNjb3HI67XHmcG6PorIUB1VAq344oEgBA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589327101142_1589327139300_0.6006759974446825"},"_hasShrinkwrap":false},"1.0.0-next.1589327460951":{"name":"playwright","version":"1.0.0-next.1589327460951","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589327460951"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589327460951","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fphYIh/+s7Zh+pv/4KRgFNjJmUiW/WsBCV/kMEb83fJ+Dq0qCeVjwJXyQP5qRiRTsk+LRlNlAAJz6gtJ+S+ZUg==","shasum":"4e4cb54f8631a424e040683018a77faf9b1f7c54","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589327460951.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuzaMCRA9TVsSAnZWagAA7HIP/2/R6NgVQ/FHeE+je37R\ni7Fs+FyLJypIab5YN9oEG2Staz02nBsXiWUCuvP+rqNq6UIpPkEg5q8RXFmG\nnQK8ZCSneqyq8wdFVUyJbCOdQDjzfmxLdS8xzyKNbskxAA0W2gAieiyD/bgb\nEouNIOvndKs7g713hCquGLxUslMHCvPyHLoAkpx9BP9h8F18e5uPWMjQ4Lg+\n43RXy+xgG5kfxfGOn+OAWvPGpBhmMLEDNOG9Al6uYL+tN16cZS96OOGq5/lF\nAxOqKnHncv4+eV8yMEscX3OMd7AIDRftUq3tjvKFRl4kz1ngPhiLYYc1c2Vh\n7APfw97yN2lPOY8cU7zmP3PWnz8tdFo3aa5A3IdssInBNi+MXXKfvjH01Nre\nWPgcIhzAexjqzPLWjoDQ9W2UQqDKT+U1XpXaCJelu1ZtEDBcrJd177GukkCK\nvYJ9HGbHjGVAO1FCJjad2FXjp7dQwyAdwn3gEaWCSYS9SELguKTreN9KrbSz\ncPhQuD9QKH2T6Drerr2cc3VM++cP+zKJEkj7o0AALXaQACc5DR5YKLaPl3Yt\nEL5Jfa7/wUNSGmkkiVv1LLfGMOCt9HyFuwape4RiGQqS8hiJWVc/EdoA06aj\nqxcH5of/cnO7u1IMxnHVRQgUMHn8MVjljokM/Ulb4w3x+eBGsVlgkrCkXGqK\npGmJ\r\n=ENTW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDd5Z+OU97uy6vXb4x8mYYKjc2+8gRtdGxYYpoEqRGhVAiAMrerSoj5/i4KuvgJQZDX3qtPcLzd7VDSSqK1sX3GhbQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589327460951_1589327500182_0.17368484105125126"},"_hasShrinkwrap":false},"1.0.0-next.1589333663886":{"name":"playwright","version":"1.0.0-next.1589333663886","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589333663886"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589333663886","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Rx+AowGqpMffCJboG+v7pJzrDJ9gQiWp2I7BWLOovuT3GwPn8rCWd0b+HC+QoK7TmjnkMgFfecpRc+9B11TXVA==","shasum":"af2f27bfceefdc7b1dcdb16096d903ce8c07dc4a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589333663886.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeu07LCRA9TVsSAnZWagAAKx4P/R7yxItwXaaUrTvoJ6oU\nIxr+o/zrpHcApBak/xWbLp6wSXpPS87OTojVcTMWiADu9AUeX3ff9LkoZ+BU\niM0WP3NEujnUXJwUwEW9fUM899q2Ngk4g9QjCfezYkr6gNyDKk0IbjVICt2w\nDIo/qyxBzcRzZFAEoWysw9/gW2FqNQlS2wK+giWwDkfOyUw6rkuxqRzui9zR\n8j/PeGBQM16O0beuQ6J6fQ/pwiMZXea0t8ffJQ/wiAP13Ggl64Tga3BDDaU/\n9PCjy1r8nu07znInbcLqUZCXi2Z3ui+4QhZL6oICUs2crdopROwQqSyBApwJ\nJc6oNMxOMrQ4RSzTuR1aEy2ntpv4A/ZdABhJ4sSD9rmQlrXxAKTISVLkcdk6\n+VRNl+jkKMjokB3Mh/sFbfmTVW9NIzhNmnOKnO+4rdCBCToKcRgzkwn/IZBi\nitCuG3l+UsLkUBvhuhHRY4Q0Gfjx+O4IVkugF3l6Css5siw0EWQXpMYLWK2n\nIMxBO/qbP7MAzJ16xFF3oR3mPOk+vHOoGueBK/1eJgpbEnfM01bcLWTujOhc\n8VkXfkN4bFWB+tVjyysKDnzAtt30aplcRlnbAd+UmQTKQF6j93gULHvQ3cYc\nEXCYRS6lEYnp0QDeBFQL6/MbHvK/Ykt147KjFFaveYxvYiUCgUMYP6G0BubV\nh+HL\r\n=mm1N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF51DEYSwMQlBnUja+3TGysGh2bAvo5KHls/SAoGXDX0AiBEl/Mert5YEKu1hUMjEuaivJOnbIYaQiqHf8ejTUzzhg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589333663886_1589333707562_0.9835797409206715"},"_hasShrinkwrap":false},"1.0.0-next.1589336712518":{"name":"playwright","version":"1.0.0-next.1589336712518","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589336712518"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589336712518","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GaALxLYh6ss2nDyhCX41CxtamNQsHdB+1I2AR5nJtjvEFjptMkbduZRPFJE6pE2XqMLGdFt/ENNRst2MBF91zA==","shasum":"09821d1e862de4a59cdaca784172b2d6781e7978","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589336712518.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeu1qxCRA9TVsSAnZWagAA4c4P+QBr1OYObhCmKPxaH2oF\nvQQ7qxeZB2Z/Swx2uYsftz8cQqoYpS3cwl5QMLxG1kXJHRexzgc/DixRvGzI\nO3YNZVC0oCZKwg2zGF/U+ak5Cu6kOq0NLB0abqwBxokTHqxZMJ/K7/vFQmVL\nuRPvXWec9uo6dRxy7tTp3kk8F1+RGFR7mKnkoTgrNciaiCcgMHjoNU0TaIJm\niKp/beNwdyM0F9r+1SvuJ40z7S/Eg0BnbSgpCVULrAASCdVdx5RBvtIXOtlo\nJFMabaT+owkpZZey7SE2J9uEiPCoB27GA0W+1/1OaZ9c7ZrtrT2CzjZBvU3t\nuvt6e32Bd+owKNcH9oU9VcgweqdNde9TpgbawseycBXEI9VPQwCSpdhlo2MM\nA3Hk6Q47Duzf3JqVWhnWSYQTLZn0KkaKrtk6TcssLM+/Zn7j64bDSTEycI4Y\nwc1BR+QJN7hwWZP1nZa1XPv4c1n8d4ObMos8sexNdjUeZNP22avNbY9pApIg\njCF2rZEAz5DOT3t9kfW0WtBXK95C3BEYM2knfIcp9s4DNMU95vnhJgFPeADJ\n4O22VIxNDG7Re9gJ05G2JJ+NgQEl2mSC1a34LiVo6lzwjYopClELgjuw57Nl\nUV3uKG8C131ylgJpcfy1beQcfVjwDqIndwXZNB3ek0GLbr6oy8TMvxZeEiQr\na4aO\r\n=nfug\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9YO7Fd7rGl78s+4yVvKFOstFxftiC5aQlHms6KGJwCAiAG5O5DLuQZH4F0VUZeX5pLePFsSp1yAyvwSdCTYa8c8w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589336712518_1589336753252_0.4822777905615867"},"_hasShrinkwrap":false},"1.0.0-next.1589408227837":{"name":"playwright","version":"1.0.0-next.1589408227837","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589408227837"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589408227837","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WOTPL8W0qPIl2xJ9r5E84yQ5+S0YMDf74dTpmphging2xNZqmHcEp/23H9MZFr0ogz5OPXAYWh3MaZQgdDxw4g==","shasum":"347564c223597fcec572ca0fa3bee5bec8e591b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589408227837.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevHIKCRA9TVsSAnZWagAAX8UP+gKzlkqB3LVfUA9x2PJC\ncag6bROzfsEPPpGKv65vHb//fsymu2lfs6JiUxAQfVABYLwv6mn9f3JyBDOd\nAf0P/J8VBrrcWGEPJ5Mk9FvyJKS2G1cfhRxng/LivGnX8TalZmcr9H89BvzJ\nyhH9U1vez33hvF52CF5ZgRsas2CT1j20KxoTF1CcPMcK+YkLFX+6zs/r8KR2\nmAxIZxb72RAqf+Hn5gMK3lGrfoQmOGmap7GTRIl+eQHpyJ0DtL+8YO3KhntD\nPY3tLKUPMnAOzbInrGPaGQSyFYkmGezjlFP8guKT+HSVFja1HTmOezys3R9L\nXLmGHFywpGrNEqxkkw0ZqQue+cPAQ3f3zjRq8TR1V4FcRY/ykyyRw/TpYJCz\nR21jazx8yxtyZnDjZ95QvtkpLGqhWDWh0ekUc6M10WS8NNWoMzY2V4mpj7rK\niRbNCtnf1TWinWRuSCqsCJpsX27kjdnAG5Vx0f/nUdPESvsHQXLfWbxEEQbn\ntSAWIjVx02WqNLiqkqoAByZvC1dvr3arGcBzYBGUJqbhmWnMIJhu4JTOSnk/\naZADPs67Sf6AaPxUWtvc59BamoZ9OJaGwtmtZBHPpeTf7XZwMWtf1wujFlFF\nVkq2aYspN9s9N/2vbH4pEaeW4o5EDm7LNhm/Fe4yG/U6tNzijrCsfYZt3feb\nw30Z\r\n=Ox32\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1fuPgnVEq0KHbx9lvPK+OMxLAEqNUNsYSH146RBZhswIgYdq9cmSM4jMy0EUO387tg0eoe1tzkUT3MSMhtL3tgJI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589408227837_1589408265933_0.8393577313888876"},"_hasShrinkwrap":false},"1.0.0-next.1589409444964":{"name":"playwright","version":"1.0.0-next.1589409444964","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589409444964"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589409444964","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Jpc94SPDNH9EufBtXaCFyzVE5NrUwJh6iiZWbNRXUe/Un8wC5cricwUsX/FQGktZDLm9iE8INC7iyp5Qwt2nTA==","shasum":"fc009b836dd8af575b0f4d525482d31c5a82655d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589409444964.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevHbTCRA9TVsSAnZWagAAMfcP/izml3Y7GOVUOtIuJNe0\nRNi0RN1PZms+eQDHdkZ7OBiPgzl1qqCG0wgeqBUHryx5FvyyeYu8wQxSuQwZ\nSmfiTXunZREh6dR1LWk/Ssk3Lvtc/GJoCTVMRdykDsKUSKnRzIRpNyWfvb/v\nqwCl6wSpd5FSgyNljQ5CQqj+Q4Rl6mEF0e67JYRp90aL7WXeOBE57kgA6UcT\nwz7ql8If9rnOCgtIDINWcibY0le9SYfD+eh0AdEqI/Gd3QCYN8as+/lFrvoq\nxMTz9i4kEDdTSSfeB/yTdXz+2AkpUB5sqS7UGNa29x37rwYUoP3dln03V7Ud\nVl49MAfImL/AzoMRTG3fgvWHufW8CZKWvRp+UG19FGgx/8eWKXBtzCUl1sKW\nnLnL+d6dM8L8XBc0tsijbVBt5YmJqRMFh6gcE88BSN16jG7AzIkQJQX02nsF\nLcTBMv9t2XgUax/C/J192NKwijLnwlWPk4tpj8yLIcPcxRb11Rn4gGyJ3Jmp\n6hGu8nqHidaF1x7kn04v+0RHoUx700yF+H3jaCeMppM3cb6MC86O8H3/B9Uh\nSm+OplbEiQgcrP3wW/bqoOroLBXi5LyHHkcxpJFkbfpOO+PnU9q7ssiLRm8D\nP3OucoLzeRbszHCLmDk1RfxhlOd7ofrFzYO3VDEey7Uoaz+G+NnPMCeS8Q56\nIN09\r\n=34HC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDrnWF750fkk+x6PCn/HpZWODYeuvs9J/Dvgym3pxPLEAiEA3exSO6Z0OmeYWyxtsXjhlMXRZiBSLXSap5UwSSD636o="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589409444964_1589409491028_0.865821753555472"},"_hasShrinkwrap":false},"1.0.0-next.1589410770854":{"name":"playwright","version":"1.0.0-next.1589410770854","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589410770854"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589410770854","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3xZ/cOrnSgfw09JVMSg1x6XlsJgyoXSdHPDM6TQ62JqRlXMNUM+VRud51r29iFiH0+uMr8vnwul3Kde2nAEBaA==","shasum":"e37ed2884b96ba74439cbf29dfb565aba25ded64","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589410770854.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevHwICRA9TVsSAnZWagAA/38P/02ar9Aqs7fy0AVFNQTq\nbrg+K+SqYLN0e8W2jaUzTOVneMGPaoayq8MjI4fvf0MoJvUO1OdR5EMzo7Co\nxOdQfTyGIp7X+q+z9eIyvg1K6kCLEOKAxDCKO509UtI7Jt3qZ8mBfba6UNZr\nIfpva2aHwHuu7IZCD43RvVKAigFZvgPVN27aJI4KlkCaym43y90Z/W3W0/bd\nNK76x0ou2g3WS48iK5iIWIYKZntd4Z2levKDJ6kIWeZUVBKcmixdEF1gGzWZ\nVbEXziRX3gSWg1ajS2S4SoK+KLHyFOfYvbCgIMgIZWMhA0wQQIads86w+7m3\n1Y0lNPkEL+T8llEtnNm4n772HQqZ7BsCy/635uHewOgKqiTYoMuAI1nLAJI2\nY7qBdYwWv3MB5tofDppbSmVWRpvkA7Ei4yoSBzOtrzqBqxq1kLEhr+sCTC8a\npBivFyV9uAdZsUexAlBUpeK7zu0SZuX+V4KD5nA++zQQCsJDnCB5YiuQvLW8\nCWWJAIryPQny7GUbxhdzgVvyICAH4zABd8SteXRjuSlBVbK4UF5C6QMVmezZ\nTz4zpK3FFmGfOpMZ5hs60sqCyPyaphu4w/n8hSZcsyMajtVFKtYMj56Bxzqf\nE7VwOayr3qThAiM5zeqk+XiQrBwem85owdqHNH+8x+fRaKnEAta76E45GSQB\nKUQj\r\n=Br3Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5CDCb5aVrY84V86204Xu8sXT0LvRgQ2RveeahiDX6nAIhAMrrkkl6n8Sr1v3W8N8h9f98RPvQ4PSowaMpvXUWYdI6"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589410770854_1589410824405_0.846792445397818"},"_hasShrinkwrap":false},"1.0.0-next.1589413685729":{"name":"playwright","version":"1.0.0-next.1589413685729","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589413685729"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589413685729","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VJCn61qtoa+qn7nA5C7VdPy9QfLXvXdSttFQKRYdFWLckfY7ZZCDXV0MMHKs8WrjMvZ5mByiYDKjVIf51qIcXQ==","shasum":"560acef043d5255b93b345a8d6c568f97ea30a6e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589413685729.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevIdfCRA9TVsSAnZWagAAbQUP/1x9nzJQIXA541NUWSdP\n06yAiw2oDy3LZX9qzmkiC0X2NxV7iZDPXWHgRN01D4XzwlqkyRa/06NaIz6/\na4rbZ8XPPhD11mXFAjtrSoosSuoPGy/lsE47tp27w6YmG9k8fHMH0HdqzrLP\nLzYCj+9o2gaIqZKk23ibDxQJUEmrCkqAv1vHJardBUTa6UqwNWEc1qRX/YKX\ng1ortAwmJFwmd15u0Uzo4ZikaXqNHSJ+J5X7IqqMnuZ8V4IGD6DhICMG3qhG\nB8HbOnh6z6qPSARVDsQL5/v8xSM+hWxPq8hW7lf29JHxtKfF4Vd/i6iOaqHW\n+sKSHBlm+IWQZFO1Eqo4TgQgFCrWJ+1ci/QVFQl+XdZ41Gff2X+2vuw8RjOH\nhmHatFF1Olmh3KpwBuhEaJQo+M5GxP5lmN0oFwkxWkFDoqK/N9qgCDZaYR9r\nWDw4jTuChQQh5Kl6qCzcRxppOmmtGoWfa4BeUiyotDOsazhJIhUjHOUWIcnH\nHBRqOYiPrz05iVw0Z+2C6Z1Fe44VqA+OSuJ9CT2u3QLBGu+vbwoeHpX8vNSD\nIy0Pfa3kFd44EUhQ8J1qj7JWelSxmefAfAFk0zN6sPeU45KjB3dwVfwYaiJp\nQBMycz+Xy1Hqa/AB3XYRILjqiG5RkQiQcEa8LNsA/ME394r6QM+c98L5inIt\nVuMo\r\n=j0y9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCc68HL/SYl/UXWNA9ctBiPnP7m+9M2o6h4eZlyHxxa2gIhAJn2n4D45xMb6wIV2TzB5Kk/NhHFemdNfMvFHqIKZqDR"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589413685729_1589413726858_0.34297264245509873"},"_hasShrinkwrap":false},"1.0.0-next.1589415746748":{"name":"playwright","version":"1.0.0-next.1589415746748","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589415746748"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589415746748","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-b/cbLJb0qxtqO1s6dyUZUazAKAVGk8SOTsm/PjxHNXYeE5jTjNSPVDNS4XoQkSKrSTOwFzqlzRcMHyF9zLa3AQ==","shasum":"2d5fd2de4a1d90f5fbc3b3604ff561b9cec27d4a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589415746748.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevI9vCRA9TVsSAnZWagAAmBMQAJertHTKyVTJXBMrQZ74\nCrblEU0noJUmJJNbZoH6D+jEUMt3TEfDZLxnuYs2YMHmWwNECKXmQZyBgQLu\nZlj1qYaH4wcwMEEOgooJysq+5+BSpvM1d9fcvTgpAX1CMjONF0BOBDPEC+2Z\ngqCwDm/nZVs/ZCRTZtTAUD0CpImk5vDcck4yFRgRgBy9nRu0cwQfya9GHeQM\naflizeOqNjbuG9ZbrvYFU1FaNPTnfllMIWz08h05S02u9yj7eZ3K7fFubG7b\n174CG6UkTNz7gRk/l34OIRMuX5B/zVfWwZuv75C+DduAYr+5sMRh3G7s7ck0\nPTWlolDQ7hGlJSd3/qRKABbmTCnAR1aHKFD206zw5Bdz2Kp83jxTiM/UNfra\nWIlX/ojkYiKQQDO2WxKO3vauY2h4zvBglB/R4SgXu0IOlG9SXBtRq43ZxGO9\n+hOklsIDmvsUV/+xkM1Ckq+XJW6lIZgjbxYP0PdMyqzwteN7rohdJWeCLjGp\nqfDxsLRi9rJUmVkgG5iJD8FvqzbJRZxB0xOTYhx/GlAo3YrUeitg/FCfmLQY\nB6cGmP/WC165AFBl1iRtM0HdlGUIMlRW1dmDTf3wm21a/FI/88ShgIZAhJDC\nfNn2pGmDnSg4Xs3mkqy5HzUV47vQ8fTzQGuAj5yaJY4LpKOiU3btH6I10oTS\n5vyE\r\n=gBTW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGkubXniaOHs2F27+EQ4T9NtKqdSqRTUzwHK0U1j2h0XAiEAos18ZzYxsMTV5DYOknuRemD4e8iY5R8dhqDQGI+YdxA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589415746748_1589415790816_0.946902944401689"},"_hasShrinkwrap":false},"1.0.0-next.1589419559332":{"name":"playwright","version":"1.0.0-next.1589419559332","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589419559332"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589419559332","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-x9bLKDBxkhOuCkh3eo9zUSfFPVNSP2Nh3PKF1Uj4O0E3Ew24F+fySoe9A8DGe0boDgJqZ1ZRr0Xxt+uY/nWn8A==","shasum":"2af037aabc8dccae93376b074c8e9c1142beba9e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589419559332.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevJ5SCRA9TVsSAnZWagAALvkP/iYIDx7MlCPCnozZdK+H\neT7J8ORFj4tGgokR64QxK0rYUNN3g4tjBEMGEQoTmgFygtfI0cRoAizzkFkk\nssO4NMmlQV5/vcbjxFPgUs3RSYdx1YRfUva2HeqtmxD+UnURXUQDQfTTEUjZ\niif1TFuCQ3lq/3PgiNPVZGUPx4PEf9hSz0BAKRnJs4eFjPkdWET55GwrAsXg\ne2L0/EIWl4AAP6harOcpcJKpg+v6b1klRJedNKYm7OcpFzHvXj1ga0/fjZ4L\njvWNcc2IXilchY/wJuhhsVrlFk8ki1LxRYVcuOl+BsrASSPO5KGo3K2F50SS\nc69GLXMV3NM/tmaIQPq6mDne/0lk5SVQ0WcPoV6p2o6Qj+7YMLlyNuoWKvhW\nNQn4wQiV5q/xOaOma9IKltz05e28eoJBVROpINs+CjZI9Co3zhC/VqPwy9fY\ngFD3bwfmsv+6W4/p90fh3tDwq954ICo/4+wcyTQa5Xwls6eijkWaZawDXn5s\nA5lvetXIp2i6qB/WovgWkARZC90oImvwQL13AEeOGWtAAIaTPqQFWdnNmjUl\n31MOBb9sDhB0kh2/+/mtOGG+X3YDmFiHn03JzQP35gl1xEeFhj+qcwrvPbin\ntmyM6DnnvpIR46ArcPH12+d9ytO9+f+MONFRYpOFtH+Vd+7le4bkHddnBfnV\n4lkg\r\n=xq2X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDyNuHetUWJoDNTqfgJEYhErvt7g3YPdvrNaXtdyRSIDAiEAyYEVYw20nW3UxbAqSBEZM/q7fQnI93fAGbOGQtgOCsA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589419559332_1589419601988_0.9803857803940037"},"_hasShrinkwrap":false},"1.0.0-next.1589420080464":{"name":"playwright","version":"1.0.0-next.1589420080464","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589420080464"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589420080464","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-N+AeKlQu9W0pDpZFtdCARqAh/zlSrLDPjs61Fi8LMuwxhNcq46VXBXLhQ9my8gwB5sK4u9WxgRnj5HapbiBGvg==","shasum":"461369aa5461b704a048b9e3cf3408634d4fb13f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589420080464.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevKBYCRA9TVsSAnZWagAAfFwP/jmdINUagiN8Ct3kAgef\neOOtGZImTNOQJ26ZsjRTMD1uvdkwYt1GH7jrT9bsy2u2qr0JiugJGkduWP5K\n7cXN4etG7+9NRuCyqfzoZXH5ErWEmL3e1KPKDyF+Z2pixDZKzbQcY3ME2h8j\nnJZ8yE1Z7I6Cv9NYOXwDLZDEcrVwsx/LUrNxuzeP9fprXe+khtGJM3KDcbE0\niSVnMvIxkt6xSedl0Q8QMNvSXPXgIWkJJx9k8yrg8eqpNOMVerR9WH6D1YAL\nes6VmbSZebYgLoHzpWh7xmwPK3X/M9Ff85HltdJxCA7y4ByxzP8i9uWy7wXd\noZ52UpCwSGJpStgtc0MvhqQXT01uIuxcRdQf7ySsVBlFXOXnYmOODBejZV/c\nY7QNJXxDjJZNqFbmfCTbxqZcg8awil7rafayJVUV8frLgsRS+EHxSNFFIluf\nbrhSHwvXfMbVcGu04h7wT72zxjaf9sN97S/SV2XJJ/+lgxsPB9Das3zgWu04\nyEb40i2cMcauKjaJEKmV+SxaqZX65ObMVwwnHSfhfEJJf+ewNwj4fOpqdpG6\n+YuAncH/dhXJ2nTVUrnYeU3rfgg46wbBCYcyEaQrKbkc98I2uHob7ct+g5eH\nkBB63v4KCI9Cbd77APk4Zw2RT7W0NLgeDMNNlaYBuHMASy0cA88IxIQ5+z5L\nGD0j\r\n=WqtL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCApiUU+YLcuuU8iFVrpYJosM6qJ74QquTS4nkv7ARBjQIhAOb8Rls4p1AteXIPtzka7Ev59u4YS2NyOFI9buLKYlQh"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589420080464_1589420119821_0.39029932022459035"},"_hasShrinkwrap":false},"1.0.0-next.1589423438101":{"name":"playwright","version":"1.0.0-next.1589423438101","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589423438101"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589423438101","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-m1//2rvlke75LMS33yFmeL+5wvVBioP6H4n3s3JyGrqk5wJ61qERm7Com+zsfbK9k+NX/5TmF8XNZySRLbwmFQ==","shasum":"6299df12b2def988aa663759db11182aa57c5b06","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589423438101.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevK12CRA9TVsSAnZWagAAhLIQAIBEsl1Sd4CUXFz0Qg1k\nVvqjH2znOM44pmWpYJzB6fOku7weqY4TjlxD6+B8PTxW7OyLG70XqVUn8umb\nC29/pMXIcLju8gkSfvWVfke71+E3Yp3Z8V4rNvDdFqVn4hcLF2TZes5ov/Gg\nONsJsU+VJitCNJJyHpgSnb7Lg+08Y4Du/DfEwQec5R58h+B8X3AkZS/4R/6K\nbfGC+xdUS00XSWi/kAnKQheBVjX4W5T4IXQ0s9RSCfIgNVENqhWOfuzxwlj1\neYhKLAARNHC++IcvcXsY6Rsr9/o/iFDCt3/gna+APpC40hgZbXE5kB4qQsfQ\nOOaHuEZz5Lpd/VTVKZPRRSHQjOwOYHqjdHTachd49xqKrOnI73jKWacY1Huh\n7fbHLz/8Guj4106fDy+4JdQLgjjUZnlzd77qEMszChmm430ZHZNM/muddoHM\npoTcHY/KNI5Mgk7vFpg0OOZkAU6zc+lt/dd5wi7ZhaWC1VIPi1MIwtuq7eTK\n1D+7JlfhiN+8pVKRCk/hKwTto445QQrwBZ6l1An6psNNX845zBf0FHtFDuGc\nQETx4egUQIZMUP/9Agh2ZKgiuK2qZ6SNW1dGnyLbXdGtRaEI0vge72iJJC1y\nu9biMf489EoFT8YHQsL4QcGhxaU+iCig/TWBqVmEECdisOufvMt1rEVP/eyF\nMdr3\r\n=4ic9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYQN6mbHamKgeZos+GYc2vUXp9gN9t+WQ6xgM5Kx0/xAIhAJDnu/Z+OqI9atK2w0G1k2Rggd6Hxu/rGU5Q5B0cdGVb"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589423438101_1589423478395_0.29353079426416295"},"_hasShrinkwrap":false},"1.0.0-next.1589428491886":{"name":"playwright","version":"1.0.0-next.1589428491886","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589428491886"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589428491886","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qKzMjwUM/bukHsnLOosfYmwIvbnGa4YVcGAh1+0VCe9NXerIWwrqQNw7tymFGyJRoAlKKwmQoqljEqg9Y2CXIQ==","shasum":"529c96fa96d0f4b01da824294153afac4c2b3b3a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589428491886.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevME6CRA9TVsSAnZWagAAmYcP/2Fzly3Ujrbi+vNwxGbg\noz1/hUMpw5V2FRAZ4A84Q8Y/SvQFO4yqpSt8eGUu+aGX1ySomwGjFlW8h32X\ninjkuDhvlq1F89X2Ubcfqwm4KLnKLXungBEIBBdzLldb6vz+IXDiJH1EVupW\n5RS1GIw2jWDNfps3zF3zMDM4G2C/s79bf4MOc6NMeIoIkl4objisXS3KkMUa\n8kvoxe2coki2nkz4LcOSFFKLfA5Dum/ad9br7zIhc+1uuZUbHJzPhrgTUaGw\n9wFHOc4y5bfwiH9LeiopGchXnGghggwrVp5YKUIGbfpCXZ1mAKOxKKOKj/Fx\nnpChGDh8GgdBYiNJI5dTJPm+R7lgCgE6cUV2R/hFFZgCKdP5oAlbPOQ+HaFt\n6/xyxBOTI9jlc9glOelpgvZXf7EAtx//WME+sCyKJrFTV1rRK8z0hRkxDXyt\nCCjPukQoZQSjn3DMKN1ZRZswaS5iq5klDO7f2Ey775d9FauOw1SoghiofSWW\nr2Ra2/f3vCjgRrZCAfjC1Ob+DhUVxMpypG0K+QQZVT2klG2wDNxKHSrbXiBd\nXs5lHTMe8PxcCPs9Yt2pQ/vqzpMv8YKMIvTojpinNoVWLhNCEp+Mtc/WZ4rZ\nTahiKar2iAhwtU4uobi6bHgmBh3tU0MTsSEXf3ZtwqxshPCrfzBbRumif8cX\n7gcA\r\n=2KDx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPWzQ9xw+hn7P1Txk4gQJ+HeFCRIJnZhXRuIwphbxKRAiEAiu3sS/lyxF/YM8ul+iVnlUG0XYIgIhxToMKPpI8jYFQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589428491886_1589428537601_0.6956004488891705"},"_hasShrinkwrap":false},"1.0.0-next.1589435776107":{"name":"playwright","version":"1.0.0-next.1589435776107","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589435776107"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589435776107","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6alJyRTTDJVxL/2BzNphGu2kxvJH4QyGf9w1v/JBgM+cALZqaY+hi+VQytdSmitaKurW8gRno/67dHU1YOGM/A==","shasum":"e14fa54d84479acfa267cb4c1ef534efd1675d87","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589435776107.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevN2qCRA9TVsSAnZWagAAz9IP/jJxC7nzTLWF8vcVx0bq\nlXP+RCTDJWyQmfnXR3vLkZwSPQ4gzrkhFL0MO6SDcjrfnOPBTBr1cANfGZJm\nkh4RpgPsJVgzqqz9Urv26wYuvg+aVS0C6uivgHazgAmVkKiwyQ6ndi0/FbgR\nHZLcLKUOXzfST1eGPP9ffZCGDzVlCmjIGAWsHmEyrVTeO1LZCKS3WNsvotpS\n3XGCILpigvnoovPkQYsqdxKQRMMel4bYnFtWBrxd7ePHOlXWPtMKQmb8ima6\n7hP6uZs6W5YKMXjjSXqNwyzSCfUwYsnUA4riuNQCKLs9hWepHZfwkE6QnmKK\n/4e9ObDDHBOtcn+23wq9ZQm8/8NLNLPJRZZnnhbsKWJCGRkWL4iAwFYI20TQ\nWZng+9f7Ehg0G9dKOg8x/n08fFS7e3pwma6nAc1fTMYGNHidH9nQEBOh6XdH\nNQlfz0u/P7Wj/SdrDDEfN1H++9x6D3P0uSN1SMMVZkrmh60fBzU7gY9nBxcH\n7YCHFaA7lJaMvKQlzUxUeJKMPfo12aCepq1LWoDbp5RC/Dh3+fqQQWGMiJWL\nfjhl7/DwEEaw/R8NikS4vPGuXdgO5DTXA/LfRsCHgLoXYPey9oB7j+l37TSk\nP1z8bMQmhJIlZRIRrXR/wSiYaEOx7H0ckvYiqWK6rzWuDzYsx7uD2DBBjsJS\nytSd\r\n=XqJs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqTcTTNc1wjSzTL4qdEQ4FbEyzX5Ng98PifNwR4IRH+AIgNGG/IHLSWeW7hCdQdgDLvoTun8iO7Uh4bSfYaHQkBtY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589435776107_1589435818232_0.4459531271015782"},"_hasShrinkwrap":false},"1.0.0-next.1589468349566":{"name":"playwright","version":"1.0.0-next.1589468349566","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589468349566"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589468349566","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-b2fgB509e3xnRx1C5vMCGPm/zuStPRglS3nS41TnpAy39aFk7l4WmRJzna8ENpI9epH5ROpgCzCTgQrCbN2MIQ==","shasum":"dc48d8adcd4fdac1fb894c5a133be69d667b1c06","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589468349566.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevVzpCRA9TVsSAnZWagAAkkEP/ju2mSAo+zDns213VRaN\nXWbi8X5KqtOc/a1tQT+X0lcKRZTYmUAH9Ot4RJyc7yAk07DvPuUCRyIkU3qx\ncOItFWvhZiPzXki0umm/eT/+Ib6mAHJBbBRDk/9C2SuWrfWCqOuFG5RGzuVA\nU8gycSrtobOY5LoAqJGkxKF6Kg9Gjs7LywXhEhNNkDB5x+VGkuc3TPmA6gF6\nQ9HHpwKaa3fLWyvERCG22WnsDq5vX7+kqNk4T7XH5yOzOp0VmRD5fof0cW0P\n2kgWFNna0M3f/1Xa5BmPo8qTmHkKUswekGC9kZHAPL39HyLMC/1BcX8eOsQl\nmMFzJiVjLaJEBjuDXr5iFVaqC8pG1IOZRgbxMGwdPkf6caaf7OvAe5P5slZx\ndMjBdN77+xuQcZOF9BbuO9Xf3nKgqCGhVIxfOPi8wRHpRFTKxTQzDP4oAtRg\nJ2FycHLFn0rINwoRcDKs/yUpD5/IAzDRd8EE6cijWMdPRMwWLnb0un2+45QL\nTK+NP7HnLJMsZz53b8w525jx5qmUppoXz4NPMypzQBoNpbwkwz+VWq6L2hgu\nwsmBtCXkaMIP05PnZj64kSAdkKDnc/OpMoQdF43/owXtLBXwXNEqJ9lq6WQQ\n/uNZXM0keA+fMr3h+M/kmrm+3Z9RVT0LBKLNpfm1fX63FKZmNEdKSoqdXuA/\nK++6\r\n=+Roh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZ1vBHFIxW8+UVFIoPrFkMXhezIQ8yy6O0XRR9o0dQ5AiEA6llJxXKWYXfTL7/dzWaeFcdFk2+MgWf+LsT2i+AmSzg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589468349566_1589468393312_0.6680602543221659"},"_hasShrinkwrap":false},"1.0.0-next.1589478373421":{"name":"playwright","version":"1.0.0-next.1589478373421","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589478373421"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589478373421","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HALLTjw9LSjA3k6ipENd5NPr+5j9c31MeVm3gVK/yS1sWLkCq8Ecjbl8GX4cyvhbVr6tzpBN7BR9x3aWnmCrQA==","shasum":"b7f4f3d52bc51505d8611ba76ef252566e848650","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589478373421.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevYQPCRA9TVsSAnZWagAAnooP/1LcaonIE+4w3dN55VO1\nS3k2Sa1/PFPMfI6dxx3T7Abv6sOklCdHrEbMRzSs5tkJWXOzH1Mc6ZGQIKc/\nciVyT4CCtxIXSW46FGmt3wThgnGJwFma6yequdXVNClqui9t8pS3sPtfFuQ9\nNfEUzulnFRBGtUR+b+XpwG6EHpxBBrnO/XzL2LCjtZJHoOiEY6/xxS/YTM9T\nx4QZNiGtlcQJF7y1oXyQYw48RwryxXS7v9rPKIQeb2QXk8zt+S1uxEcJy0b7\n3+glY90mF7j2U/2bEuuVWekQgPOwoaBz3EGj1J1i2RwE/SU8n/nB4RCBwivt\nWMwlPnySSPR1xxdyle7P5gMzMHbXFdq8ztPR3eXHVrYIOeLekEALasNX+VG3\nQ07TvuCTrv9fKG76QF7e6TpgmXpRsUeIcwLAoVBqM8NRT1ZUa+tewJE2OOKs\nQsTyl9bH24V/meQXlR5sG1gKPo8kXRwYrewikgDBzy/SO+U2jZxo8ze64eGe\ncPnP02P6jsDcqA5QRhooPzHVVRxo4xohs0p/3JsipPyFd40cxq4+xugT6JHY\njDxhKzRCLIlo6SI3+tN+1fS6/TiVzSnr/rtAo9erY1ge29PFO09YyttpbyuX\niRUHkdflphemP8hephBYr7I1nQ9Zr7X2Yw8n9pU1znutlGbuh/OKtv91N2n8\napEf\r\n=RwsP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtbrzarcNVwV/nu+n1sdAgdM+x/zm672GACsAD+pT7ggIhAKmJGnJG867sChYgsVTPoumLw7gy1pgrOrurZTlJi0oL"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589478373421_1589478415036_0.4465321888897189"},"_hasShrinkwrap":false},"1.0.0-next.1589487857818":{"name":"playwright","version":"1.0.0-next.1589487857818","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589487857818"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589487857818","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LwGpjLAkAJiroc2lspkQH7ieZ0PzDZY4udGc6I4nAyXgS+eGPmxe0K+ay91cT/JttH+lur2G9o5cdwHQsGKR0w==","shasum":"e6305f3f46d4ad6ba3b54b29ac6af95bf0634c52","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589487857818.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevakaCRA9TVsSAnZWagAAbvgP/jmT0J9kRY3PvR0RgGXH\npNpci5POGtFUI7cnGJ8YD4ZWxEx1wyoX32gIATTpEBsHtPSKHBUmqKObN0hW\nyt6dpafmRWsNVXti3x3EX4vkOCK4671jEgWIZ1cJXS0wvX78xa3tnSNhruCH\nhM4km/QEOoLMAT8WPp/vcuj9S7kBYoLRg00IfMx7pv5sb2pOQIwayNy8dFcd\ndzMUt46Q9Nnx/1znSYdGKjw7mkhQfRqTrTeUoQrAoJ5vyzgQvmK0CaS+ow32\nNKCLqh2bD1lMmysrCNaIa7JBdfGEoWvHbPxL6mW1Db4Et1wyWj0hsjygfiAY\no9IFr0diGdnXjpAj5oyT8jh+qJdnyw0gAoxq7wa4m+8E72ekro6LAK7esA8+\nhuKD5febUkjH3QBfLx5Y+/8zvwmzZ1ffX8fPVia98zesw+wZngEuojo4UCzm\nDE2hh32zMXrba5B6zj5loVAL+0tVBRzKS4Lx6ZAwU76FZEgJ0AYDDBVA4Jn0\nUkVSKoiansCL/lScji293AUlV98OOq3l2sx1DbGtCpLI5LpHIGjaO/3QDzAa\nH/X/ARKCb1zIsue19bSAvAVLs5s1umZD9kza2GLNQqSp7CHKUxyu9Qo4Tj61\neuA2MPb450s+XVZbgWRjcAUno7jA24N7uBAEr+9UeV4hJeQHzF48tm+45bbE\nz2SC\r\n=E6UC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGfDlp9RmRn4fR+eLdu4uZnQBIJOiR3oKb99xP5zKr6JAiB7UIcRq9lHiiWh3GOVeLP48M/IV/n42JMMCQbchdLJDA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589487857818_1589487897722_0.6106881904080514"},"_hasShrinkwrap":false},"1.0.2-next.1589490370151":{"name":"playwright","version":"1.0.2-next.1589490370151","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.2-next.1589490370151"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.2-next.1589490370151","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/SdJGwxQJ3F8gqQu7z6jRAfdh1vs919p6O7tlO1FFMlbiWpjEI7Hp68MTTD3mETx2AP0QwOmoU9E4RwKAkr3Ew==","shasum":"9bfa41c473dd1916fcfbad77186811c298bc7bb4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.2-next.1589490370151.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevbLtCRA9TVsSAnZWagAA7m8QAID+aeye6GVFXA4eNMTP\nUE9tdl3t4+evzIihGoUK7rR1+UovRhb7hPQontgTFHDQpcuZrueSHArfdtEH\njwOKiYTV0ZrF7xBT/qAjDLh1wFzDVKq6PNMccf1qrBcCX3xm49yJgzhYzJSF\ntEn9o7Y7OPkXdoCX1Q/X7wbZFLjgKsmsLAPHzCibQQDPbq4hAnhFZNHymDlc\nuNxRGg8M03Lp7vcBI4JW+pJW01S+72VCZiTtpD0VADXZcZsxwZFAYeinKacW\nZqyFBJauhN3Ex61tHdSyUp45XFaj092ueAmansOYTrVR19+DK2vxYuuN5/om\nd/gWrXBULhO1N1z3jkyQQ/OUiWtEeIL2zX0Rm7nKtGWw9zq4ebvBl5IuFJec\nrFh60pYPRGoLbC6VC/kCRUROssuz4lGgib1DXvCG8duZaYvp5e7PJ3SaMdYj\nTkfq/QkSnXA5x6ShwE/RrhCPtPzMdRvNaeHiSMXID+dn39KHljFyssbYDYNF\n7yfJmKg3XwVrkZfnUkNbl6XSZuKmsk1LnpmjprqsBBAWdgRKaj5Pswv/THPU\nvod5Urlecphn0Px+rRP7NJOLFRElMFi0ZCoUdqMw4dFUM/u6ZIs6qfCRRfoL\nK9SbC1Oj/AsewnxA4+hoFMUFaogvnVEvUqchV156TiieJ+XTJIMK5w9BbF7R\nUHQf\r\n=z7sK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCbdEqL//otiLgMg3iFp2ejofv9/5oViIybszWKjK8XAiEAqECxWIKgzFjRFTf+vFjm/OeSQ60K50Mf5t85Q0vZZYg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.2-next.1589490370151_1589490412920_0.9117935704891476"},"_hasShrinkwrap":false},"1.0.2-next.1589490722564":{"name":"playwright","version":"1.0.2-next.1589490722564","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.2-next.1589490722564"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.2-next.1589490722564","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9dreSs9CUpnzREJgsyka6H4rOghafArZiIvXnOL893CMSFGMJEt1JsQVxGqGrJ7hR6U9l7hnWJVkoUdMAeH4/w==","shasum":"93d6ff0ae188b4ef4e360be21e870872224b338a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.2-next.1589490722564.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevbRJCRA9TVsSAnZWagAAgXQQAIuCIkxIgpOV3VJKHs+u\nmt3x647W6TqYydmcanEf2Be3m8AWZSGge+BCjMrW7wk/9/hYnet6PktJ247q\nEI3uNtRUBe6EMOdQZSMV0xrR/SpUZHXeTWox7smbGNhopSme1BGqGjnMXQ8w\nWSjUqRi0F6oqRL2KhMjlW5tPaZIKrv552fS71RN64fgxItiBVOs9xbAM5wey\nHMd4W2QgxWjAckSnS1C6FLn9nVp+K0Th/eM+Lt6AIr3Vr3YPB4oeYG86G34H\nEMvrRSAL8P9umcuoJJM/gehoSSimn5zsDqUH6Q0GfGdiJRdsYa1YIhdmk7yN\n+q88kcSpzVn4Sc/KFeA91ppj1p29PNVhOLZD6u3wtV7p4Se/HStj+DuwJt7d\nP9xA9Ograo5vDJb4gY2HElASVLESYW3zg3pFUpkIQaEIcCuP/GiWZwztRfoa\nZlSo0GG9fpc0l/bSTxbvrjpSOKP+8XnCk384PyQyiGpLqyeAtZVyAaaK5ZpV\n/J9/sffZbZUoOmPy2Piww4zV9Dg/X4opGnM5cBQ1EemwpWVjBdNysdcKwEz0\nNEGxRhyuJF0uhDv3genQ1D30NPa1fdMzNDEojBe7Mwr5S4au7knaQzpuDGH1\nSMcKyPTXKhhc4BxFS1A/7uWJfA1LaBPSae1GKnV98r2eroMQg9EvfMtryPjU\nLAN0\r\n=OABe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGr007HlEDLXnpeF8qkdiLgVBXNhFbOhQctLi+dKxmeAIgct0m6Fwg8lM4J9OMpk48V2s4q7eV98cLJBBKPD84nZM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.2-next.1589490722564_1589490760685_0.08154720549659511"},"_hasShrinkwrap":false},"1.0.2":{"name":"playwright","version":"1.0.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.2"},"bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.2","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-92qvTeQ45Wex7wRwxqFZQm7lV8j7Z+Dxs7mNUS9wtlGS9mXswp1903XV1r7lKlvvaZ89uqV2BuZN+UUDpBaIAQ==","shasum":"0706486a4db99f9dfaf20503887e020a6d749c0b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.2.tgz","fileCount":6,"unpackedSize":8383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevbfPCRA9TVsSAnZWagAAclYP/2iclxYgBj5BZ14DSCJO\nFY90d8861J0ERIYokgsaMnC9fJjm2Lj2tj2zrgU05UIluWyObTvqtd7CFbCI\n8X3bSaEu08amy5wulJVWK77Zi2oUoYBJA5RJVE7vCfittsz+6T62wllzqLCM\njgRcv/dc+Yxnsj4dMS7vpAJ4MXe+g0sYd5Avw2sL9GOSIBHc/8w6ulsHMqT9\nyM3S6aPPNZbDBKbYECO5sfAcVT6KS+f1ynjLwlJ7FOxp8mxSV2OTr+hIBJVT\n/mAEvfUW4lAaBHG9NN7e9ReC4AOzWcCamTFYgY1JYlyxAe63DNhsD6X7QpIq\nHZEPPDMpaDvDIYYEQbFrV5AYJ8O8xr3/r7IVj/rrbWSmX9pNp+TN1E4HIjlq\niO5mX7PluW0p5EL7QeStdmDvTGzpJmylbZEzweNcn26veEg41qDDmZhVkakC\nAG8xvuP8QRrOhdcybbgwvE65ALlhHK+XFeLgzSSy4KCu+i1C/URnOw+3IFwy\n7Y67dfSQyj2dI6PRpKBnrvBpQB4MfNqzYLb0CZWspV0dV58HOSdI3MqvWe38\nRevDI2rOlKR0kE3MkKR9YOSMVyy+7r9ElaZWVEdANLz7KSZN/tJWVKr3lZpN\neZygnGDlbU9DvH/ieIFkxuIHzwIOYQL9cUlsP9H0GZf2JbTeV415comgE7XX\nefwF\r\n=Utwy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF1ucG434Bnxqs42dtgBfbJaq7Vze+ncfS5lfj5Krn2AAiEAvrd0afuXMQa7ipu9p8bJ4XuPApKTFOqrCQq/u14pSiM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.2_1589491662887_0.6942108401771354"},"_hasShrinkwrap":false},"1.0.0-next.1589496297035":{"name":"playwright","version":"1.0.0-next.1589496297035","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589496297035"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589496297035","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-P5cnUcRD+Oa2hDoPhW8IcRET54N/kr1izffCL8xNz+li8CEfyl/AXfV2DBJxqEs6qL+v/ak6gELitd8gyQuvQw==","shasum":"b59079f3ece6cc0c6cae035f9717a7670e5a5020","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589496297035.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevcoWCRA9TVsSAnZWagAAGNQP/3wYQykFZOMJhHbnC3k7\nRth8eYmonS1EfGEFhTk9+8cpbmXUl1prNJn5j3B1/aAG3RKa9WYaMzSiS1s9\n7j8ghEn9VEBTD17/pTnsXJ6Ux48E3sMNrEEJq+j75TlS5aomn9WK481wyORa\nCPv+UVbsLf5pIYB7pMAJht01UAPqwL4oSV041g3mn/5GEvbJsX152+N6XJuK\nMyTD4VITgsiITKKHb9PFC9c7unKzA8eQu6769P+6TLeL1NWOOLEQjjItOXSx\nUAEelhXhgQDyPcH+5tfm+et9AFYEf2X1gjyw9Vb+1klrMHr92K8w2ozXfLR6\nfroPf26IshxSLGLFal1RaUWdUEVyrtMtQ6U3DyE3oHH0lLYZoNswUBbWX4CU\nRJlOXTji+pI5xN3hmeM1G5jFXB3PWJCfH1E+0dTICuTGuRyrkhIEkYXv3Zqe\nM0hcUmiRSbvqVDtM6DEo4nNx+hFDVIxI+ErbIXHEvj826SVtabht/lEtg5UK\nDI/YSvUqe18LnKmt3Y5CfsV0KusphSTIQbv3xAL1P933CkWpV5IFHaIeCMUb\nGgCrqelVzcVt+/G8x02oPQSIvnHE40OlGAK+n+pAyUM5ff42xcG/r85GQ6VF\n0BvY9Mx2XVr29iEJjaOALw1mJjq0kkmCFxVHLBJyUBrr06igJh5fqDAQWd1q\nxo1Y\r\n=blOW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDOU4O3wAreFHGoVOz/oU43aWkRySPil7WMf0B8tTpu1AiBei2IdcKgdFw2JzbkukDUsFn8ensFWulFAumQzbpWAwA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589496297035_1589496341847_0.8215251543134354"},"_hasShrinkwrap":false},"1.0.0-next.1589496648136":{"name":"playwright","version":"1.0.0-next.1589496648136","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589496648136"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589496648136","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-T5X17Mn+OyA/PfvZ1XwpT6R0TtPp2uEgo6fTDbjy7Msz7kH1AqxL7+1F+k0pEOB/Jx1JzU3AJCzBxHe0oelJZQ==","shasum":"98963b0f2e4ecec782d72e43c1497e16b5d672b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589496648136.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevct1CRA9TVsSAnZWagAAJ5kQAIc+atwjOeD48UDrQ9/Z\nsD86bcb0/yJ5coR1fh/wU8XtkbA7GUo5F0+UpBYQGD9VchqN84q09a0NbV0a\nI95k2X0QviPtkmG5yFD/sQcwO1Q3DHyfqBvEGiZqhQoIuVelJWlDQ29opp3G\nVEAodyEtscb8esycoxHKqiE3A4EtlG0+feUogJA8tvRrY/ZWkcRJbjN/CIZD\nNIdjHkhsOFwDvLriQ67dAzCLiZvHibQehuGlMIVCDFxVfJGpby068acmgyoR\nD+lHtAq5PtVco7laJj5j8FOPpWzR1MtbSlo0rlXnChf9SK4i7fe5hY5CT4pq\nfwOs3+nKM48hUNwTwq88i50g5U/LwRh/88ZunArHekqf/D6Oa2XLcKStQDG4\nklkogGBPZgF29sZzupZgScEgkETAIIHuZWw3SqsA6wawc9s1UREWElpjTuK2\nTQtCQ2XQwc3Sy7L3QH3nfsylstwd1M0If2k0IBwJpjZO0xVzHRKSNOMAubJl\nxHGN0Z1vUG8Ju2Pt9ojDo3hV1l9nNRwhp3BK7xudOf0saIL0DTxi0T6Bis7z\nBdvwqnV6o0tVJIkD7ALLsgEmdRPtNg5CeNCrbyub2f3MHyiyd41uUc5VdPXU\nH77ZcGe07g8jJjvA+2WoLOEorOe3IKf0Dn3ZapVABFTwBTbG09FZWldfw7i0\niOyh\r\n=amUn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2XnrVieLV20YJ4i1IhTHfHDsaCIc+u6K30yooniNifAiEAo/FIavg81SE6z5gAAhohfONzBJZ1B95Z7SkESCDud0o="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589496648136_1589496693272_0.3217351156507935"},"_hasShrinkwrap":false},"1.0.0-next.1589498142384":{"name":"playwright","version":"1.0.0-next.1589498142384","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589498142384"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589498142384","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-a83g7D3jtwmCKUnZsnFzn+VganZ1+Y5sd+USYpx2eHrhMGImkwOZOdhf2CQmlv+80Ej9hm47sRxARi0B0EHiYw==","shasum":"e6a0dc399f471b7e1da92b2091f96714962879c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589498142384.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevdFOCRA9TVsSAnZWagAA1jEP/38lffevtgk0LQOtlm6A\nDn0HZmZUjitAmIJhSjqDchsfMMEF5WRWaUdFRURoo+7MgBMxy+/cP5/L0RLy\nWOWAVZ7QMbcH1BOU8BpUbcHb5l8CiAmS+HKi9lCk0UYZ5lVGPqOebTy8egjl\ne0Sj6NdAXuVj9YZVAC5fa1gDjvJYuElatW8WPXsx3q//GrRwJ8D02G4s4tMH\nxPVe3ZHCTk73UURmQT9JshVs6sPWdaCN/ZGuml90bjKyAXWNypvytMMciuTl\nzVBl+kmRAue135gj/k/xcHHDt6eAq1ippUhpp7ztwXprRPWqbceuQ5mmociT\nWpy3zLKzAIGqcMIPLZPyxA6b5jqsgJsld7XudmsGbS/oehli1zKwmRrYQGRc\nsc2nTZu82GlL6MuY78hy5ksPYfTlT8EuTMx5bvPxXJuqSV7T0R2/gEBHK2x8\n410rwuspN9mH4wqP9KQeqnhbBracOZKDAkKcGozUuOHMZzYoddzi85LppQMI\ntA/AGI4OHK+UxFKDUh2OtTbyewnzfSbjpGaTS8yQGLAwXH3EBtfPZ+KL3LaI\nmTdg3Xgfz7IE3Gq+yrkPDEBxSKuNrzRSOYqf/vFf2JX9/wKUUiwqth9JUQgO\nKVbnZo35ECR6zg+vn2dh3gZSuAsQMfc5E+qiXd0XQ9l7lMJZ5HmG3ZCpnh9p\nmkH8\r\n=3O51\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESFdfoD9gD7TzCPbaiVa0lMtcPNNkJmrzkBxPi1MlxFAiEAh8g6bvWYCHgYfDokOeFSb9eet7IOmzZ5QuzRDv9S8zc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589498142384_1589498189466_0.9544072158102865"},"_hasShrinkwrap":false},"1.0.0-next.1589499031364":{"name":"playwright","version":"1.0.0-next.1589499031364","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589499031364"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589499031364","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6Mb9XSro1UBZxdOIOwS/IMWteJr+/Ztppj5Kq7ZaemqU2nMZJSjzEv2CAkHP55AyQdpRiI8BuV0JrYwtgT+tQg==","shasum":"177efe8a91d263158a5103b6a8a9a52058cb378a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589499031364.tgz","fileCount":6,"unpackedSize":8520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevdTBCRA9TVsSAnZWagAA52cQAJ5MfmxNGl6amcVfjX9E\nQJmEbNCTjksOnX4AzF2VVQ3+TwGrkh47nnzGMTMUDumm/HzpoCEyiS3RDHlt\nD1A/UQIW2METs9pONvdi1tlIXpzS6RD7FMWnmaxbKWbb6a/lYTLPiQlda2Ii\nqwO8oTwdlGdTibNWg8VE1NZhHwggTAHMn9bg9VqoTAYbnhZRA1K2VzaA5npj\nDzZk//bqnKK9RziSkIGAmCTNazEz85B88FzDo/VNrNTvOLNPb5jRWcO/sau7\nfi4/4cdbfnOxoVh0FYdxPT36sVa2aE6A7JbUIuALVYtwbSifPSs8vjyRLhHU\nTkkRPKPCLTI52LLhU2R8nS6LmVtz23IH6x/rMdKtOrysvIVuivSsG1mIWJ34\nxzy5DGo+W3e4og5rlHHZ1Wds9YgcvC1twbQJ0N7t1tTmTPQH+eORrQuCf0fT\nqT06iWNGKeaFH1W6Ppp0F1LGFKUFu9yUvYaIW+8LfQtiHvyV8qlBzF09dUh8\n5z1RbuKPcogve62mgQyZh5VLkHJM5oC9FtEFcBdJ066HLwqPltokA1by+5nn\n1GbbfkLo15g6+wHceG8yn6cUDt6Ev4pYkzNW19kJ1eENuCLZCEduReCdjQUH\nMIqmAMZ29D6P/sJkcaPCj7ijojAtNeQafSk24G+UWElqeHgJ13LWM4ALTSqB\nas7I\r\n=17B8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8XMPQmdMfkoc1Ycbt0fW29unSoRaDusHEvaIJFmR6/AiEA9ZKwPHHbLX1mZ5veDrigM6vvWKPKZ/LGHna1TEqvzCQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589499031364_1589499072701_0.7951385424780215"},"_hasShrinkwrap":false},"1.0.0-next.1589500124581":{"name":"playwright","version":"1.0.0-next.1589500124581","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589500124581"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2.blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589500124581","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ROSgk0skz8h0Zh/rr4nJcs1bfKpf87Vw+jfYzIBlg3noy/Hkn8wSjqjVvzKLb/shqwstf1TjwN06xSXLe+2o8g==","shasum":"3c900df1960f66362cda9506ff12a5094ab8a1dd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589500124581.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevdkDCRA9TVsSAnZWagAAD94P/2TikrOo54zbSLuq5s3P\nBYsHGeVeK/h3vVHCw7kyz+fRBSZQn/QZyZu6xe3NIX4wIlfwKXeT6Qunij6F\nejGKN/W7QudeH2EeSEPyLRIjs03IBsMUQgovw/DWHdSO9rCbNRHcx41mfetG\nZLdqQ+g5lL2gs1XeHxCDzq1NVZMTJrtvOOmj8MA+83Yr2Qalc3rng1vghWhH\npnT6p5GKceLaEFa8M8QVluXkwe51gc1P77nhQl1S5HRpqCWGshtpwMCdBPHo\nQDVuwQNN6P3Bj6t5+hJiJGJm9f285imm1HjPirSomRo6TduiDJrYbSPjskq1\nW86UZuhAciEFtqfmRjJQCJnFMSYnZHEvDwvLt1P+xXsqFpP7rRMPmo25ie9T\nxvmvhYP25BP2qG4GJsXmGwKOKxPeuRJDB2iuec6Su9pMaWFF6G/CWmcP6w5H\nXdVQo4ht8Nrxd6um1kJAykmw+9SI3mpzBCXG9JNJ0AXF9JMHjQTpBbmma+CY\nKyE92x2by5U+en1aZzOhk1KWHqo+eePdGX/Rus9ssHFwX0q+NkkYFsU7RLXz\nvraMqQP4vQCk2AEikvVZwng4CXIyBn0ngk7JyMcmRccMMCKKSUtHNFv2HPBN\n4w95EDb6extzMWxGF3ZDKEI+RxbAGzbjetR3YdDeImflpGnoE+tQmPcFNnZA\n2lMG\r\n=L8NJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpbN8wJUq2cWuIpqXv6TsVuvLOtwZRtMbN/iz5IK1juwIgMSSKh+oaPfmKiUUKIsW0H2hw++RaIsfktsoB6s/YMQA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589500124581_1589500162502_0.6717124555352787"},"_hasShrinkwrap":false},"1.0.0-next.1589502284974":{"name":"playwright","version":"1.0.0-next.1589502284974","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589502284974"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2.blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589502284974","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0xOxPRzyBJNvkhv3wd4BUkskjs1mKM0NwAGklLo7pmkkZxZXUYcns8j2V/dMkGLfeZzRtH+RE/hW97FnrUSbTw==","shasum":"a7add9235e2e1388935a92f91ecdfa083cadf02b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589502284974.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeveF2CRA9TVsSAnZWagAAJCYP/38RqowuxStWKNvecU3I\nCzGht2ktlZwNwEfdivB23Wla9T7KU7taaWwbZMIfdCfokMIOQYWXsH0I7BbG\nvFDiAgsz58vceo1a4evxio9s7GDTYRsuGUFP0MPBwosueJapJCPNH3Rr6nmI\nZmOAQoz7BKsGbhBd5S353581nfpKN8LhKHHNGeL27zGvMlrYJ1R87T6bda1j\n21N4zYM2JIs57tZgkxHkQn83DUUM1ISY9WmfExUtPCkWuS22aXPMbiuNRzwi\nbGgCLGIassNm67sm664cGONSh1UDt6KoZ+3M//I8qO9sYHjeUz0728t6w40U\nF4vJJy4JqAUMUn90/2gGJDxPC/FXnKExaUdpAREVPA0lVG+IQjyiAWjJfLcR\nvIgbcXZX7qgRNPc14MIA3dhek0me2Qul3juZWSRyqqM9Er1KXpfVQjBlWKLC\n/foq0SvTKoGrdkapEfLPvwb6QiLzM3n9HFF4Iudo/LWMFjW5YWTgTLssC6OM\nE2/kttJKLDwhyjJaBjZZH781gdjaJowS4jMsKHa60MREnY5WrtolTAyFRQiN\nuByQcjdnEN17qeWqWW7Bq56wrqUaqMT0F3/XyNrc+xM3ViCoqDN0zSMzL8F+\nVyYjDsV3h2CVBVLYxKVEbsmburWt5P1+eJ7yQNM0cU5hN3QTAbQv11VIbtUE\n/guU\r\n=QdDo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGcz9loX3ywDyVJX3lQf+yUcaTn3n03DcT0yApQ+K+vwAiEA3TXwoVMo+SbWAw3rqwMc+b3abFXfgttwyNnr9+rg2WI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589502284974_1589502325733_0.8126680455752326"},"_hasShrinkwrap":false},"1.0.0-next.1589506306471":{"name":"playwright","version":"1.0.0-next.1589506306471","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589506306471"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2.blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589506306471","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UwS9/fl968l+LN/s2XyxcsU4Do2SsnnWbdXBShkC60ProG4kyL/ub8kBfNjOAJILdraxZo96lLnK1myr1qdYKw==","shasum":"32142b482d31120a405ed8816ff85a4c7623526e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589506306471.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevfEwCRA9TVsSAnZWagAAww0QAJyj04bQIa5sqXh3THCT\nYta5Q4hFRxBsxPJxAKfJGjoo2/KSk9qHXoCIDHRjRf5R6Sga5MXD+YNADOye\n/NM5evAik0ulma7lLTh/MWbJJkuhukAJwhRJejgEYxUI5tQOA974tIwPH7m4\n1dppUeIchc7KwQY7znXIGvhIuVCVnDvb9LRrhfVgQvu7kR1lGQdZ0dcZxtIy\nfxwa7k+G7t/cD332Mi2kRPJhumIelQOA9OwRb4dgCX5tW5vkWcH6MYGfyG9/\nnK3qtMI5K1qzTYmoD9YFsmZfz/qD5KUiw6YhNy1ysYANZBoEmRA5B99DNy2u\nKqgb1f2rLYVBt86VfrrbbyZ8VIZ7HyTNglZPS29yaXfRdbub6mvmjbcJ36Gi\nHWecJKbi7+0HSktaWqY5Xlo5fF2OyqPj9pafTnH1nFyIXZS7XIstF1QuKyU6\nAJ72Gw1W/5vFOiGam3E02g6gOURwjR542z32CjnSXYLAWjUzB9jTS/fYmrZC\n/edCGym8DiRrFg4UWoPDil5/T8e8D/t44nJRUtMsq+wC0XoyrQ6AS8pOEl7p\nsB38utXooYT3aetaF+VGG34F/NOwEtLtnjYS77mN//V/24YsXmElauUFMYC1\nmZZFqhAzfPNdkCp23guZAxkVYrF65Xb/apoJnUWlReQ5HCLv2unsGCesdtaW\nnmUS\r\n=/Y7T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzt1VkQn7BYDyj9+kcqcqoWYnSgxQL1VLeFJ5Wp1qbHAIgKmOH+8eVR/+thucZ+XmqeR87hkjvZM8y2yS15NxEEi0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589506306471_1589506352148_0.17672327432041146"},"_hasShrinkwrap":false},"1.0.0-next.1589523306729":{"name":"playwright","version":"1.0.0-next.1589523306729","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589523306729"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2.blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589523306729","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BpZxX/bwYua36bByHbF0pzIEmHqjZ4Kj/q/qmjqIn5k2nV4j105H4Duzqxb6ZNfZLj/km7x6YPqZO8tVVHHqiQ==","shasum":"630c18246946ca386330908dd28c615131a191c9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589523306729.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevjOUCRA9TVsSAnZWagAA2U8P/3MHB4yHcqOpXyeB9E4t\nf0qK/WO2nf2t3Mn38Z17WRj06OBySe3bdGpnWZJfqmoYmoyYUa4/OWzRiy3Y\ni9IXohPrLVqkRHywy3R/S4HOhaatTMpsBz3sY3lTaxo6kYsXow1BaIq/HARU\nyKaFUFzeI5Kj/YB5MAj/OhjUlMQNLEUc5qjFZYvcSzzfK3qsk4LlVxIpAdhC\ndqDgKq1A/uoElBMDauCJHBY/ts6+Q2th8EsBzFpRfukKmINEPYyS6UaumN9v\n3Tio2JFJnHtbznONX+Hsb6U6hzQ1RM4R2WmE6wGzjocAz6Bu1/eu76K2s7ip\nwf0RKSxdI6GV1QZ/arWrVjqPMdxfLbT5yCNBxiyZ1pCUammkXaQjX1FyxR9y\nLgYqQvWR67OAxSekDpiyXdJUjKiuSHhGw2tgfIlv725nEGyTB9SZpuAmcXGQ\nRsOi6GoutFHyAS7wLAbd8hnify8pYVg+S7vUlcrGfM7mZ1qBE7uBAWl2HBwQ\nZIo+e3ooqhS+/AsWJEvkKreP/qozoAvbgEHjF+FicSi39crnQO1SuCIO271g\nb4Ff+xA6ooVWhQS1VQTclLOlmWnoGaLAfuX76S/KDvdaC7+GDbJUQlt9/eHM\nxlJYtY29+ibQm/rthdYry8i/jq0XVNlZrwg6j73T6GaucP6NkiqS2DBXP2k5\nDGko\r\n=ADnT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE0ZrkkDFOACE85Bpxqr8QbmknK/Fm0VCPDlmalt14H7AiEAl4LBjH3jhUMg0TAhCLgEpMa81PAohrBMlJF/yR7qziQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589523306729_1589523347763_0.6601068695043582"},"_hasShrinkwrap":false},"1.0.0-next.1589568245634":{"name":"playwright","version":"1.0.0-next.1589568245634","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589568245634"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589568245634","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jOXDbU3BvL8NKpYj3Qlm6+PWi3YSJveuIkfkOLLNbsb/db7A5vtFUdwzNePbqpPQv6aDyp3wJVMMzerph98jJQ==","shasum":"1d6cd17824c36168b8e54996f45e6f074bddd7d7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589568245634.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevuMgCRA9TVsSAnZWagAAdeMP/0ZdJF9U3bRXarnT/4ik\nqFSYkkTvQI0Xste7ifkNrV3SiYDskLfictisWK5I5jj0JZl3BjWnD80KfE1V\nud8YM0gOZpZFzG0V5FBbxoo+Icr37wF0RlhUHZlsLJeT5d+FTq5huH/MRIp7\nLCNdKZ/rRl+2M9/z4wFTTmlFt4XHGT6ZvokdI2mp4mUpawkEw6aVhoVF37Gp\noVCbRn/0viwarC6lSicIYpruK3zPtsksYtbbnwdpBvYaU8MgSXJ1gJiMbzdW\nO2hZMsJsIXPu3xVjfoMzylYgBvmpPFQgulRry56D4OLIiBraXmKOswAGFfY9\nXeJViVHJPtPSs3wfHKVFAKXh2H0Zk+PpFibBDjQ+FOeXTR8vbkyrdORKJMgB\nRjyBFReOjAhvbrKoapU8JveQPStY/nE+vyBiwfvxwJtwAGGi8MteThKJItwk\nOllWpEdlgrjFGd/NkkD9Mk0q13V1L8/Pdpcl7VhX8AjNkyLcTD2bMrP9i3Eu\ncwSdgk2KZKT1CavG7Jr2vf4gWX5J3u8qAkx+6RZ4oQQIq5kz72UKbtH9/IXG\nwviTMH4Qnc3fLRJk325EufERc3ODi/8+C9D023lT+aFie7q5qYs53Y/RGT4c\nc6X6wRNS0fwuJrzo6pXcQnVDFPNuIcW/pdKMFA/bwGwJfOZtyLtDwpL7KlMO\naRPq\r\n=zX0Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8erkHuce3d+0CcnSm2WwUEFSxXzBSwq33CLZsmt3M+QIgY+t9ocK5WtawTBo6oBb6x1kQku5bsOFY0LyLdQ4jEhU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589568245634_1589568287926_0.2679596383298859"},"_hasShrinkwrap":false},"1.0.0-next.1589581462117":{"name":"playwright","version":"1.0.0-next.1589581462117","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589581462117"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589581462117","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9tJN3Kqe2VtOWdX0PJ3LZ4AsDYv2UPq8ZpJ0up3M0YcnOpjcTG94HkoBCuvFe4YH/QUYxt1iHGVC7ftz6RymJA==","shasum":"852b4b688427c9d7f23fa3db876e4df14640d1a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589581462117.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevxa8CRA9TVsSAnZWagAA7DAP/iaUf/SmYo41TKej+3IL\nXD36TyMO8B6qZSesDWcPZD2gfRV72L99P0LUt4WcR5qJH0J+x1qwAjOunJyJ\nmlCyc9JhA+GRGwKFR8xDJBHzClV7ZiO6Bhvw3EUGnQEbA05Z9JOCePKkVEfw\ncH9FGRdvPQoTqBSRvBNC66nLJZd7ljpq7v/7pPpje97APL+2asmMezXbRR8d\nUIbPOV9rcOTdv8avxgtJS4K/3OFerC3pKPpwPcXLJ7UgdosYlgafSoO8qdGu\n4su5Xcas7fGz9IRK6vr/8dm4zSn11snSVyQMxEH8mFrRqWDYtiV/431R1JaD\n742ptB++NHVXEETVrI4GwuW1JKWN51cn/fMy+9y7Go8SwF7jG+D00iLwpv44\nybWK/rb/Xc94WJpXx5fD9c/acaHQy1y9ilWlf2A9GsRR9wk5kfQGKXwZtjfU\nwv0L1W778t9YDUkbb4wM2ZZhr09RTOALz5jvgXjf3ukosmPYdXoSnxHqGdqK\nEW17rpOEn6LjfRO2CHUlZtXexDC8FWE3rw3g4JSiJGtJo3QioM/TrIKCDgT0\n9Cocn8YLxa2mbE+cfHTxEhrkM5focRaJJLMdW9tYh8dr15n70UYTmSPv1vOk\nrSVzoKgWZAwXZcGdZchwRJ0PcT2FbluoGDdfOBc3CyDvZCEMzZYXte46CgKd\newWf\r\n=EZgj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDo73UVlNfxOEDaerIl4F+F0rYcFLHF/k4T9/VWE0S3dAiEApgLYxVfDgNWocm7SrWbcgpGu3Vp0LeZWatXuFnmko2g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589581462117_1589581500280_0.12421462759362667"},"_hasShrinkwrap":false},"1.0.0-next.1589589512711":{"name":"playwright","version":"1.0.0-next.1589589512711","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589589512711"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589589512711","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-yMMAbH8DC4c2dxK0Rtdhmaa4I9SvIiZB8s+QmgUptAfXVpZhjO8vfcbmrY8lJwe+YJRMMgAP5z8ktTU+G+KMEA==","shasum":"e6d9627d776fb4eb299ecfbc212979b9b88d359e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589589512711.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevzYvCRA9TVsSAnZWagAAf78P/2GEBa/VF/oiPZFTCnwF\nFFdW/oQOuIewgb+XUZeaOtRJHP9lN0bozJKwhapDSIsYOWLo0P37TvWMVtGJ\ndsx1YOZD4mQpbUQ55b7xoVM79YjqIi5rhiGBBXuEekeu0oTJlw+jHzE2OadN\n2DdrlG464heGw/QM6zsHk5TYx75AOkKVoQ4QC+AvcjoCWuczpSJjklOfRRHI\nAtWpzYKRRG3lVMFgyGLgKoCmgiqhFlSQHks4ebadTaLQ1T+FjGRwq44eFm+P\n/l4ZVIgXWfSEUchf4FMmaZk/7nxA/CaiZdnZJDe+hhtHtq1cuwsV15gSWsAs\nSM6CEGy5wfJTWSoM9Viip5ZOP/XMu3F43OR5FAWEOJvd0Wws8woSibq7p98D\nNQCZ6Cd2WOqd0PeXzPwWXDiRiNhreQocdwWkQa/Uz81jl/u6TlXhoWHBA5kq\n0/nIIaDZNa8EcARJIxVdTzP9cxYRjBkUWzdv5ABoyHUQitj38aVGr1N2unyO\npJ2nN/IvHhhJ758mRoJsqZ5iKeIrbcWpUzRsjr+vB7J2abyB3J9nAxTGjup9\n0ujDl5W/8vTXLDH2BgAXhHi/fmDvJ64ovIFHCAtE7PXPGrfOe1nPrX0xOv6g\nsC8lNUR7y6BjQcGrI+E/1piN+CxgrfehIm9fe/mYUaW+Lwhwc/UGfPxBzCtY\n5lK2\r\n=jkPV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICYlzPqLBNE554t4F0UJKzVJVtC8jpAUA8QaUDh4hSFmAiAU3bo61pEoXtW8GezH9fWA3iChQ19y8iqshyvMtGhOGQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589589512711_1589589551181_0.6332673277226857"},"_hasShrinkwrap":false},"1.0.0-next.1589731216477":{"name":"playwright","version":"1.0.0-next.1589731216477","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589731216477"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589731216477","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-B1HcNY19jHy/H74bYcf3q9+XIPQFSYKCbnvFiDUjjjoNzFKlh6eoJe/gV9PZb24eVgF6iS2STwRSYZO4aZAu/A==","shasum":"ff6a91088191679cb13676688e110efb7d4e93b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589731216477.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewV+4CRA9TVsSAnZWagAA/1IP/j7b08R8s5M9dCZJguFh\nWy4wxKe3xVvSXPAIBV9JzxazBVc9p9Kh+gNPS9c1Ks87TVG7oNMgp5VQnn8b\nARK+wNqjnqcJtzouZVIlt/DyXetIdxHGUr4ZginKnoBCWubIPNjeG/6f9o36\n5qrnpzeVe8XNEtwKmB8PKsFLYCWiv4cvVD8nb4jVnGZmvlWu4xel1ACyQj3X\n8CybHm7joDGMdRmqsBhP+m08YopthQ+gqFqn3aWofRU1hLPOXd78Shj7yK1d\niKm8naKMttt4dody4DT4xm6eak1fjn3AC43zAQg8UyTB1A98qTmsJqwsgFKW\n0TQ2GJv1m9CX4dv3J+hpa/9l6DReFVECJExM4UeQK68gMilFnlf2Gd2f3+83\nmCoroAuTdDVc8Dgrc9hN8jf7lpDRCR3acP6N2GdXhGA9G5YawPk84HrDjM4n\n8Yt6it4vea8gog/Y+EoWK/BpC5PFLuiY9Z1ibnTtAl7zUcMuZ3eonKsBD35J\nf00pw4O0bJyK0nBCGVBRzSlpT+ww93OaykA2YgW9I0ClG/UmL2hfpn60+zfS\nsbtsGeu0Mz/CNhSrcZqpJjggokNIbsuFB2RA63AangygW4DvCo2dUi7jjR0m\ngpo/s2/8s7vwM1hqK5cpS131QNPkAMwy48OoPaUo0JDBN/CGJTfNYuP4fuoF\nujzA\r\n=uOnQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEOsxCA1vQyXnoHUm50OfJfQf23YOwluN/HsSBwyHni3AiBuYKXIwewqtIJjF1ioMQkqxUCqd5zt2g61kofj5J4gCg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589731216477_1589731255823_0.5842504122732399"},"_hasShrinkwrap":false},"1.0.0-next.1589773485120":{"name":"playwright","version":"1.0.0-next.1589773485120","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589773485120"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589773485120","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/8rS6qB6JlXAY9/kRNkRnMJewpWiav+O+eF4qk9kIO0D2uoi/vp84nRSx6x4UyzgsYxbjxPumzeQ4s73VC908g==","shasum":"c778e9e1dfff7f543b820919686800ea7df3ef7d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589773485120.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewgTUCRA9TVsSAnZWagAAtTwP/0NqiQXukVhk6VnWe+em\nZxO/vb9ytdpH/XOlCDEQNSnRuVjAf7J4NXtaaBGTvoMd5lPZBVyI+TL14mM9\n9l7hSUlmHaUQ+rCLplOuYgYhu0e1z9Kw2Y30xw6tpJ/VC4eo9KEMYe8vZ4/w\nv+wp7tQyPhaMUimJ+m69HopoNG3bZ24wFWK1bG4JYYypkZ885sMLeZk3qCgK\niNi9WJFtO9llX9CenrFnQWTd4D1vKFiTPPU+oXiHmEcjhHyS0vGZH6cLiSkb\nCTCxpXJfWisFR2yamK+CMoPwcLMzbCAbjJatbcRrQL4XlISUu4zE05b8Gb7f\nKw9TVuHD8HMFfnfTeT0CtXENFB6sw86g6vk3Z4tjKGfJGZ9UKaGWjrMlj7CJ\n5dC+1f6LRs1Kr+xetMkrg+GLgEgUyP76LaCsGXzcBgoQx2u78HBhIY+PbLtY\nzcu214ExGFaM4mOb78rejDf1dsj9eG/qAXNM/igTpb1ltDDPjiQxcylh5uAP\nQMTk3KVSi7gdI2H+eV3V/4CQTc2rEVpQAIH8Q4Zd6HX+zMPsUUw0uMBluedy\nzLoTj//c+Vt26T4/D8FiIzhu80NNYGA0tamzb5MSPUOZ446rjviAXj/Q/X9I\nztCbyhh4s8QxaN58wwSc2XWah8hR3o1TchEMH/X+L5gbLY4O6frOC/lWG1Qn\nRkmW\r\n=vnch\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxurcajzr0jkEbAEBM93aGRao+ZxW5/59Wv51vMxilLQIgW3wQy0dAQpHFmY1NssnOXZhfMhe40A58v0ztFifs8Ck="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589773485120_1589773524378_0.7251469769317298"},"_hasShrinkwrap":false},"1.0.0-next.1589820556663":{"name":"playwright","version":"1.0.0-next.1589820556663","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589820556663"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589820556663","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Qnf8bOEJoSx/plrAH2jbJlDoXJfBJ5laRb6g4QoIY7XWV77nH8r3T9jym5UQq8BgwLHR2JgTVyMDXOOU/GDGgg==","shasum":"883390f23cba00bb9cf5a90b5b8fe119171858db","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589820556663.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewry0CRA9TVsSAnZWagAAy6EQAKEc1dDlUCe6n4Jr+Z+V\n29IgRUxhyQmR25VhHtnugGtxPxj7xU9skOtV29Om3285uo+u43sqvNUZnQCX\nsdWct5KT5yreJC5+UKxAlz+iI3VO/dJJ9YKxnt0uiMEV7Sc1akD1e1bI8iC2\nNnGGdu+xRQVzrQSys6Q7CGU4cQUSo0YiPfKMEgKlMxZr2/YN3qhJD6/Hw/8Q\nLsfnTnbVlMJZ0G2cksVlnNbGC+ipddDkYaWn32J7lS15XEEsyVrUoboXLXKw\nStuBC/aGDPHEEwKFnqUU71gsPaIWnLSiNZ3uOMYmAEGqdMgFYAS+lOBzWj3Z\n3igwIP7atkxX/Un8uPAktlSiY1nkOhDhG3pj9waddiNkaFAmbh4ErEzz//cU\nTy2nUP+g+IrK33BeLs6gwyaIvFGPCsl/elvtJ+srX5S3R0FLIm5D0o7SVWZl\nqiqNcU1Tcr1WxYuND1vRgJ+Z/w7cQtHlqs+c3LXbsMr9khLKWlEu5gkNoa/6\niv+y84L7Ct0omMdu8SL7SwipeVkhkij3n9H+0H7a9ZRAU/72lgFxsiV5cClZ\n36nZZCJKwDuSgwZBVqPX6VF/ijp7WsAHPYqtQMzWPea2CR9bgxCt7HVZDeCM\nFCVbKPagdBRGQKwBZukVIWdKU8C7lleJt+HDBrV3K91+ePaZg+nB/HK8v0wa\nUugs\r\n=CD50\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn8/bWJmQ/5NiXSDODBs5LtMFPRi+nw5ZJ6BBjBgng9AIhAOE972f+F2YSxrIEjEgOyiozOWZ/W980TE+2kedUZUDU"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589820556663_1589820596284_0.6407025382963956"},"_hasShrinkwrap":false},"1.0.0-next.1589837374434":{"name":"playwright","version":"1.0.0-next.1589837374434","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589837374434"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589837374434","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-h9C6J2eSau5nFbnTKZrVlxPIrv7h70Uiv9GkzRdVekeqZYBZwA60HYvJCW+kj6vwagc9yGa6x+bPPcZKpnj7Zg==","shasum":"0642258fd5f4ebab6ed514c051d7d7e9f49d1c6c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589837374434.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewv5lCRA9TVsSAnZWagAAXqoP/jwqop3QomtmsyYaWFa+\nZkD2JLFx/l1gmcRSuoDJQXykHXzLM+vooIPoHv/s8LfmTImj+L+bX278OaTO\nMvx2Ihtm+H0KZTyF7WtO1iCY8Ar6IPw+9eOAotHv7NTvG0CTAiPN5KwLCDvA\nFRr11XjtkSM8sDiNrHttp0LIvvhO/L5wZ0i43k6SkUQ6yVRrnXqnNGouwVEC\nduI8Mynbt65jKVrhBcxDswd9NimN55+KBb1jhQQXOJG6p3fKgSJxU7OydbXm\nzOAzAUD3qW7Y12MzlVjXuIycQ0c0poSl6GssHQT26zw2p5HeVojw+SZyRveH\nUCW6+zZIOOWBCZ9NLGFft1LXVV2NimqcNNAhLtfrOBVdeyHBvdrzZ7ul55WZ\nSA+M936rE4waix1+axwpdOQ+OM7+tJwodee0rmqMRASwx806OUKLBU7L8imD\nY5OVDQ4MDy/E5BW2AcUhd6JMqt2o0oJ3hIuPbTUsIxLw761C3e/NGxjXKAAL\n53H45IdfOL+00NOmcZyUS8uy3rrIyxwuFSXou9Dn9yYLQmv/EW4deqkHc4C8\nLuz/YyBmLEN5lQK0D/EAlQ4y2yKZxlteWzqdN4Lg9O18A9MGGiLs1FxdpAcT\nDDXddDB7h0s0SaMRd8PMaoXxJxvNbLDC+CWSuNxTUKmBf0xgJkvQi/Tm2EZ+\n5oED\r\n=yCy/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1er6q06Nd6sez2Hw7ZCOimP/SP8Y5LOLVZFeeuIIBkAIgTJJS4GgW3DfeXQXXXxiBCMFAGfWgnR1zZ7fIw4RGOcU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589837374434_1589837413220_0.7774051071028125"},"_hasShrinkwrap":false},"1.0.0-next.1589847345065":{"name":"playwright","version":"1.0.0-next.1589847345065","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589847345065"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589847345065","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dLz64sjbPGF3nApufQ0Q0rINWgAw7Pz2YuZ1cHoEkJWQhxKX2e+29okBvXaMLhsM/P6w2ADm8EqKwsZ17VKixA==","shasum":"1497dc65175b1200a251755de88aada6776b87aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589847345065.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewyVdCRA9TVsSAnZWagAAJ/kP/RBASLKmdUkyBl//WLks\n9StgbcbtKXiGHnTWV6r5oCyZAsMf6uMfyFweT4exxhJ3ccBqpnTIryr3lYof\nr/NgpG59EiBADtootxpK+jDIoLn+r0NWU83OOKcq1jvcS4u1IRIqiBpzuCQ9\n1FQZMWQJd9zw/4f0//HVca8UGGsWS8l+9lWkSaYId2eZyGavQnV3jR/To6Vm\nxTU1JuQ+banQaL2f74ebj15W3U2KGua8Tmwdd8HCD1KHIiKo3bJSc/EGACtS\nOkWQ2UdtgpUz0CR2LrqHdaqVyYk5b5nFxUMzWiLeAd0MuvfBd2HLLlAhl67H\nH0LbnvnqjjBsHTk2jDS3jtRC9IELfatCwrxH4sO3B1CERQVMG85iZi4TaeWg\n8+R9Ht70lWq6ywwujoX+pUllRNiL/emm0I+k5N7lHHXR5e/r39ZbC0o/rQdx\nlmDvpVWrkFwc4Zt0HvWlwf8+riyktt+AgLegeGu94n8zg06wT9qeomFxxSgu\ncda7rZ2Ag6/j1ETp3sXUzl5g2xn3it7NbDqoiUiq23W9tyWHavAOfv4yerLI\n7V5LLwKLNmr0Tk95aGyBqERxsTEw2Z8GoTnQS8R3CpldPxFdV+601icuF0fh\nBDM10xSiIMGq+gunMttH+mwG0JHXt7pioZZlYpgAKvYi3QzDOBqt0C+5AABE\nJ5bL\r\n=YNsa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCwOf8HRNKzYxgLi+BhwroWM2JiRU6ZNIbEVTTHZVGrAiAVAVCdJwkw7/YUK8askEV6ioB+Pnmi6oohzJmiWpxKDA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589847345065_1589847389532_0.020283321432502"},"_hasShrinkwrap":false},"1.0.0-next.1589849995282":{"name":"playwright","version":"1.0.0-next.1589849995282","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589849995282"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589849995282","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-z7v8N975DEMoFcQGdLFBXpzDoQck9Y2ubU9UVxo8owewt8pG5aSCnHdED7tj82u3kQapixwOtB3PgQlEBm5D9g==","shasum":"59c11b30c5b73381d04c22ff61a9b01419731303","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589849995282.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewy+2CRA9TVsSAnZWagAAzbgP/iuvfGZljWlNqurv6GoR\nXKUs9Ihwugm9RQpgAyu8VxukIAnxPNiajhzARI7+zW+uIr55wa2/FwOFt41b\n+ZbHIbGeEO0g4FBTUVCcIUuOTWElVuWaKhziXT2W0PVTOH1pnGgf/AH885WG\n5QYTBTR0nYq39/i53Vc0xnuKMCgEh1vcOhhiMUbGvC8fbaAuzKF985yS+57e\nqLuCh+n82CZXoXAGgT5z2Tu0EQBPFuleHHjX/CyabyuN3trfwT67I39tnv1T\nAQhhZMqkxdtQqFFc7HoCC5YHK5pk9JBjinape/ofaq0PWP0SW/RB2TQIvFcr\nR37TjiGC4rG6EyKIEJqcocELjPDhZ1flOVnsV6lKLzIeTgzjDpObAgaaiUHI\ni+vJOAavzT8KVr4onwW1tcEl8ZNcEA89CROVSvzbTMmcv+wbvAmeE+jmo+0t\nhq6ubhFW/wnAUs3PxiCgvXPzL287Y2o2mbBmJIPV4Smn5U1CrhySnrw+67OM\nQQodwvMlmG26TzSOV+vXgqJzhM5R/uyW8+brvh4TRTnyaO1+Uv0GX6uFF2KN\noyckFArrxJv1WiYpkPkNGWi/dV0M0HGuoLJ9x1/5YZLSaPlwUTuERqUZ1ZNQ\nfLwB9cy9nc0tbCicHQ4Ir5/V7VPN56cPlP+FsosZz/aIWCmE2ZuqqBhO0kXG\n0UIE\r\n=BQp1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGSjns0hKIRBKYax7KS/DUQPwxXhDstYFpluBA+mZcRjAiEAkkvni+6ldZg//IP3ltr9moq9EO+yztBYFKERvVqkw5M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589849995282_1589850038370_0.764327127022679"},"_hasShrinkwrap":false},"1.0.0-next.1589851514972":{"name":"playwright","version":"1.0.0-next.1589851514972","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589851514972"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589851514972","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-XAEMGp9rjexVT79rq7bHjwd1ko8TnpqED8NBO7118F4ZTlJGeDvGMyxBY+8B4GmAUK8SEwFbdJVGM7BEse468w==","shasum":"b0950a8b03241cbd5a3fa92dd99c17861a70f1a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589851514972.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewzWjCRA9TVsSAnZWagAAQboP/3rkFLK+qCv6jABuTNqv\n2gn2jfw0KyDPGki9lKbn7wZ0Yi466Dw4sgdKS10vtoHG6Y/jtBj/L61d7vbd\ndmPdkON8VROb/IViD8jnqY763EFploU1ZTmjJbq/v3WoJ9yrku7rmdK74+Qi\nuP1OpqbSvmkg2y/VaSX5tALDJR8kQdYOUkM9VkqXcnei44DYuFpbEL1DYwSJ\nV7B1lqjkYcSzw5LNN7tum2Yaopfu/822BRgBD7DVuu5+c8x6oWgIOtfYILOl\n27H4/J1yBBYxQl3WB4R6sTpx3Z7cIa4kWFBRpSO8C2E7oSjD3KILBaTFv5/w\nNJoEQIhjEKEWr5oxARx6NtdGhZu8wQWHpicziQC4enuuZjirj82T5KopogiX\n61ee3UovDxwReCqe/exeFJ5sNdTmVbkHRRlsNjQHXIYSazZHTT8CJ8oFNYG4\njxZt8pQJCepWYS6L7U3TgEG1c+Y6/o0QoAgPcVG8NhrxRBmN4JbfGArg7UbX\nxw0OzRxAHKFjSEQwfvpnucE3zLs50AfNJOWhgdEwoq39tzPxk60mokRrfwtc\n5sTbUX3nTVXrw0NGrlrVBInOyEKr+A8uB4zgBR7rKQJilCysgbqLWISZLo3b\n3KFjGGHDiCcns9faI97lRQQKLxE9M2euc8XDdNdQSdWKBIwMPGur7U59GRJ4\nFz9A\r\n=WGBz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPFZvOePB2wmdSipifUoDCk0k7Rx9xJBK1OvIN+tlhYgIhAJ5mp/bbjIw0sCkLkRQeLRhlK4VhIyuTO0wzv5A6qAks"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589851514972_1589851555225_0.16544331620637664"},"_hasShrinkwrap":false},"1.0.0-next.1589853767049":{"name":"playwright","version":"1.0.0-next.1589853767049","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589853767049"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589853767049","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Xq7WHrfiL9xGfldWxEmYzzji7QbRs+vXSgPFo2SeNorOEDCCpqstDul5ypUMRwZBYXr54VFcmgnmirCxso4OOg==","shasum":"cb2a68f5f14a20e1fd56e5f8eba296a2082b349b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589853767049.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewz5xCRA9TVsSAnZWagAAemwP/RnK1isLpjXJCR4qwJuN\n2w/aU+aDLvntYE08O8g5M7NkjVYnFjh7SjvBALKtjW1Zyumqvf1h8H3QurRs\nfOVKw8niySpQhfIfDx9DDMvHsZzhJdE53ncFk+Vk9bgwmT29REzZwiW+XHyT\n1Ay9ByhqkuUh4KrYW0+4Y2rFOvepSlZmbmLESYWRKHFWfhSsWcnYBgD3Nq7k\nGooGXSgNimCVPAR67OAm8g/mnjO36idfavSI7at3DRDWo2uZPATM6x4Tfjw9\n1hdFj8sCmkgEn9tkKYlCA+UgXKLyWcOrzDXVcPNay19QzDdMactDcH31mCi2\ncKFtQvWT/qR9LF2fk1XtQj6nLfLxvVcLEJSkTA4nSvaHIOnp4GLMDcKbkFUJ\nfL/zuyV/g2OSgvVNIgeIy/vIBIer/w27yu0lDmdUJNRpiToTnhTz8HjYUNi/\n9XrEU0ZQ+YD6oglzuoprN8cTNOyQDLbtGAqlAyHu27JLKpfxvgJ6pFcBVSaI\nwegEeUEasvY5anYhN7gskfeoJy7ND4D8TV9qfkNr3t8raZ8j0pgeInG4kv56\nISI/FZPUDoCL0RySwb/tBRpNY1ix8OWc80UCMg5UMzb0ANbkiL4PgjgPium8\nCPQBU8FiBxGqlGgUuoICmfQKiYp/lqIC082mQg9BUvrODq6CgS4hnas4r9HS\namoQ\r\n=ztSI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGyEsPaPHygVRNQWIDjg+ywQmucxOWS4V9ldjs1lwH4nAiBZLzyxqesDMeTwy4SFYD0rkVT/4kjeLLT7iVooVHiK2Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589853767049_1589853809050_0.012819900402296858"},"_hasShrinkwrap":false},"1.0.0-next.1589866327074":{"name":"playwright","version":"1.0.0-next.1589866327074","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589866327074"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589866327074","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+PIfkirRbPaWCH49EgCKjDO99mHtJMxx9+zUXJhCSrC4SheE3wIBqsObOmxfDXTj2cvHL9YKogyxlnxAWJirNA==","shasum":"057f956f4f5ab0db7891cb0556352e911408106a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589866327074.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJew298CRA9TVsSAnZWagAAITkP/jg3cEE1Iq3fIYmM3ohy\nQlX1Dd4nIKDhoSsjcZisOLSrFcr4ohqatFFif+1MfUJCLd/EOmLONhy3XV0L\nMdQkpeUizbVCjyQlohlDYfFcM7jCQTE5EfKmutzRbztyqEuLV+Y9HuEbeX4j\nDoeU8CO6sdI9bJtE9GSIBJatEQ+ivVzqTOE8axB8mY8kWa6QPkfJAUVSqvfT\n981GtYWBNHx6dduhpnxjxYljuQBolVxGjy8gd0WyL0zQaJ/9OW5gPayTzHBC\nUlQy3iySDqqyP8iHDYo8ClG4FAXROp3enw5EWwAGTiqDhVbBLUW8Aq7NxPTf\noPrIssGsbRcbHogzr6F0c7eIorMyhcjf5slbZGaf+DhHbje0XhReu5Tkfq2X\nIad1/Lddyy9isoBfP1NDPUwGZB2FO4x0HsPFLdcuCLHNWP+UoS+V1mOCqW8Q\n72/t8bomyk//HM+h9YTLWUJXKwLqOZvsOcqxrCAFRCMOZr2LPEVDFr7lEXu3\neMGa0AbN1blO+Tp4c3H3SSzWfhRBOVaL4VPaURUuKbxMBJPY1+y9nnpZ/Ug/\nV8OSZusyXjfzyTf08nlcCjUFOQbZv0Cp62KGvvL1FtjH4GjMP5Xb3nyXkEmp\nLuVBdWnzmV3ibL7NWm0ycNY9ohgN8rrUd1BduVLuUlbj+7GBMmyH6BcRwDPX\nb7MI\r\n=bymH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFWUUr+3w9rOGKCIQ5tIrXiN07D/r+fOsW88bON/PaH0AiBUO17M48oNP4RgriGGYfi2u0x5Tc2HkzvPrLWAmz/YXQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589866327074_1589866364409_0.21062726759928707"},"_hasShrinkwrap":false},"1.0.0-next.1589870449688":{"name":"playwright","version":"1.0.0-next.1589870449688","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589870449688"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589870449688","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-w/JUb51eBiP6BIGDdv1imMBXCemUi2hwB/KGntSrd1Xbk6JIN/Qkpd8MDEnHzUzAdyn0gr3wVR4WkUxHg8xEtA==","shasum":"8ff5c0cb7afde4e2a86727c000acea664274c131","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589870449688.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJew3+cCRA9TVsSAnZWagAAx54P+gJs8ANKg2eZx7QLNGDx\npPi+YHroH/1AD/CHiHXIUqPortdXsQ2tSUwEzbA3AE17IK9CQJ5dVZ1D6suc\nfFti6Ixkd6D39d58Nl2J861OTR7TQobvnfjZksA0b/+xeeu3YFWR6eocyMyj\nhtxxra7Dusrl/rUDwTZZLwPpJssvypfuS6lbA72MM0jrl56WZ8ART+gBENCT\n47pS4X3aea+fGiPEgdyMY9K8Ck0KPmC6MMJeIAj0Mvy5VXxVJ9v/I1EMo4hs\n3LEIOnm7W6JKYDMlpPI8qlp1NNIYIzoPP1cARZYqnqLTUfjBWPJ+SeLNhLdu\nVFPrXmluL9C2Hqnjx6mJmveAd+ggvy9YBZNGx7P5pg0AfYn70+z3208/GB2c\nwVxGs3B1thprreyiF92zBnJwnitxp3TBMvM0p7HrX8qoKtPsSNl64bzJhXIJ\n0+fVjstnqNRFQMr+EAoSc6TpjN46T3zA3avMj3Osc0kvOrWlzk6VvQTA/d2G\n4qi5e+bpsrIq3l5UskFatMCOK0yptVib7Dky90k/RFDqr8ipi6GnPbJUosuN\nGFieOVcBk4iZFeu50wlyCjrd5G1L02Ud0X6JjWXKVE1mk1xZ5EfasvaMnP0G\n92m+qRqN7dIDpv18K91/LUjUWqrLnN9311u7s5y0k6LMjfRJ4vpgxDX4GIzU\ntoh7\r\n=YpP9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEixDd/FfBCwzm7HvtzZhGSYfcZ43Gn4MCUgFLwdjJ4xAiEAhFT9jFFEa9/AG6Q4x3FgRV0BMheKc+8shK6Sm9JcwYQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589870449688_1589870491731_0.24970835387689516"},"_hasShrinkwrap":false},"1.0.0-next.1589902938502":{"name":"playwright","version":"1.0.0-next.1589902938502","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589902938502"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589902938502","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-D+bYiT8/ZciUkdw9hLVuBTo7ipKP2Fu4bTWLR8TP7OPIShHbBjNaOvZYlXZH6t0UOkB/bLwX2S9klxTzArH+cA==","shasum":"d0e95d8ec1e5a17b7de55bfc1d928607e118e435","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589902938502.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJew/6KCRA9TVsSAnZWagAAp98QAJWmTKOAVhybvEpp7hHF\nR5goEpSMzTSyVenz17ldY/JOSyTOcElsLkh9cZUaLKwerjijxTa/fxLiT02j\nF4bRNZmQzqZiwnQSbgZI870e757iJy6rFj7l2uFQ73YjilvDZTo+ENWUMNO9\nf42FJgaKKUAhga6nHsL3DjFonzBJcbKy5MrCewBuSkF1aex03cG5HD7xlg37\nIb52/nPvEStemBm/3dV6cKc5zT02DLKv6aBUXS91w8nSBxs9GV0FomGPBjvk\nZm6kXibIzIRBC9EQ9+aqqmO2FCGLYqQPQGDNh0Pe8AzL5RBzGBKuey2hddRN\nbgg3wOa/g4agP5rdbQkUa6s8d8ohuOFFhO8kf450MKryDb+QEtN23qeNnKUT\nyBnEUaB9MxSDc+K9dr6+zFpEMiJrRVH6dVyHMWpvfliQPmz6kdUfm48SnQjV\nKKiSTbkqo7OGZPKH2XoYZvCf2HDXjY8ItgeUaeY3kT/mfcaPGdympdyiseho\nUY7ZkpUzl14UGwjkq4DBg2a34CGm20b8lpc6qwwRb+hMQC/baOmxuxG9lXUG\nkXekzPylMctK0Ljxde7UxAg7LkeBsgDzZXFxb5RWOiPxbL6+iVFjqAWhgcM9\nfvPNZ4ckU2QFiH4jd2CoDMibhttHHBHxwS9le7lZGZ/ucAZYcY2IrsKWMA/6\nUuh9\r\n=/B2m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAvBL+EMGkBp4pD7swA2UoR+8VpU9D9mwGitPO2zvyVEAiB0mJAak4iomWAaujg7VGUJh7mf01EKjetZqxknjkXZag=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589902938502_1589902986034_0.31972380210773554"},"_hasShrinkwrap":false},"1.0.0-next.1589909538484":{"name":"playwright","version":"1.0.0-next.1589909538484","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589909538484"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589909538484","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-g0GQJlYv33BFS1mpbQtx148LNGekb71tffk3kgFZCVzqMZ5L+eoHMC37lgrfuEEbmtEyVGJXEjQxXh8grsEAcA==","shasum":"0d1d7df2529d19f23e5e35542ebeeab903381929","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589909538484.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexBhLCRA9TVsSAnZWagAA8J8QAJwD0s+c1YwjJFBooD1h\nef/iev4nfvjsyOP6HXWCyT5uJ/wzhCc5J1hP43jZ4Isab/Q/2REHIMpkkr1Q\nP5uf6KZ1F1BOk5HIbOge/VUuqBkrvWy67FSJ/Klb35L/MnMPioYZYTr2d/q9\n6FNVVr4gz4aqRugilIz8yX5S0i2LSW3PEkWRfYAtrdN2ZKb3JSdD+ZepKoaX\ncyl2tujXVVbaVjgEsc43cdEAas8/NxsJsYgZOGw9Tyr5jhfZ5bG3fQv/Bo50\nfH4Cd6DqAmqGKpll2gxW7wCaxJiSqTeB98zmHu33b6QWgB8plyyCOjtQaT8y\n8NcBBkeojTV1Z5a+2OBxKmNbrjhtr3hk0rWAJwj3t/abbI7bA6crQaR5o99H\n6eIY9SZeXo9v8Jj1NnvoprYsAUoQ1Rq4ReeRkE+DOR0pjtHFD3kWkyOicrHK\ndC8NcCdtxzi1biqVc5M3vbl/ABp1YjcorgQ4vJA676TgX/xk8iXzhQUWCCYA\nR7nzd5XzqvEDGJnC/V6T4hP4XX80Xw9Ehw9u+1HXV2knqPwmIUsa+HEpd6Wt\nobkcqlfTEC1cpkZKANZSe2g8BkvUgu5+yTKLSFXZ23Xd1GI14xAUps+bbiw1\nU/U7EKI9qcN2hUbIOEiYvHUdx+IaZfp2eQ1GTVSc0GjYiitY3U77TEIaVvVI\nDXqu\r\n=XaYg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2KUdMxzvad9IvzJh2dOL5Z9mlXkruKAdkt7UriRF6QAiAct8HGO8nvzzRuzzEqVnYBZ0UU+b7mI048ftzXWXgHEg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589909538484_1589909579537_0.5898206152066974"},"_hasShrinkwrap":false},"1.0.0-next.1589909900071":{"name":"playwright","version":"1.0.0-next.1589909900071","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589909900071"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589909900071","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Ww8aJaN3uQu+elTWMlklEVKu8SZoIdD5dVoDIAzbFhFWyL0+NbBTHbRRd27MLYz3Yx8CtvGKCuqHyR4HMEgDHQ==","shasum":"4958937a60030b78adb6740e102ab1723b99ca18","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589909900071.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexBm4CRA9TVsSAnZWagAAmiUP/irffeC8JdvlwSujMMth\ny9k87csihsTXVr1090bXkY66acEsQBEpfPX8yE5445AI128LEjweTZOLZToQ\nLYXbmkkxgQK1VYSwopo1S/nUX/wrN4hifCFraKa47vqT1q8SPJK6xcNyPqMO\nyCKeIGjHEl31KTvdmDe5fOVXqKwcVGsrEyQJ/9+7RuwdBVLs40T7mZVwQXib\n3+0cyuD8Um6LtkitNcISxUUYImfbI4FYneS6aG0Do9j/nLFpWcY8u4zHTF9A\nGpjqWdOZmOwXyRvlC25oszlUGvGE8l7c+OFuanTREE2VNzAc+rGvF2Qg8yVQ\nmFGSNLStnGo0MZzTlOfyKNv6qHlOgUKwXz78DR9WdHopybrp78eCyOhPVA9A\nU2qNJ7rd2ZD3F4t9EgTUI9B1Oro1KDLykT+y6g9zfTYP9Az+EvuhHWqkBRnv\nn487IGSPnYXhg6CnoqHAVqvRisiyPoa9b2g6Oq7S1EZQIE2LpGWmNki4V5G+\nDHlSWtVKu6dZp3/7vEUmGYgypzV1sRrGbY0P3Rmn2sONQgexC8LlWQhgvKpH\nCcD3oQVA43Z4u1WhgvdIAuEBktrnBO1MLeL28gn+GQ//3Tc3zgl4vUennsDu\nFFn5kWB2HYhgRJG2ZB1OgiSQ5nPL+o9PMNYpNf2eHB7x2m/WJu1DZO4S+RiK\noqxR\r\n=vbqJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID5XcdMgwcJnUtuspw9mU5MTwTF1/mg9C4vsIh80ptncAiB8eFOGmShJh5BKDWNGD4kGyb9HXHW838rPKwNUElZXqw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589909900071_1589909943782_0.39172610716381273"},"_hasShrinkwrap":false},"1.0.2-next.1589911128199":{"name":"playwright","version":"1.0.2-next.1589911128199","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.2-next.1589911128199"},"readme":"# 🎭 Playwright \n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4135.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-76.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.0.4-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4135.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.0.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->76.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  })\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"homepage":"https://github.com/Microsoft/playwright#readme","_id":"playwright@1.0.2-next.1589911128199","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-X/ByWnU9J40IlECiRM3eYLXo3puXfr3CnjWLtLmGa9AGX2soLL4IM3ig/v6DPlgivtBK1JncZqS+w/7p/TKf/A==","shasum":"f219c7353bc47b3cd82a0581fff40769163874e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.2-next.1589911128199.tgz","fileCount":6,"unpackedSize":8421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexB6ECRA9TVsSAnZWagAA/IgP/ikgAUVDh0ukWLGZ2oPY\nZJnbrKtt+WQYxarzu25sSAGMtY248FJ5pHF+AewI5o5g6t7mN1Br7Or+Xjcj\no1769rK1V2ZSBqtvDdWptjmSXPL7UH7lb3P25PrskLMySqzmdiZxpQogYS5P\npABdp5DfkQ05klHa/PtZ72CioIZddE2ldEPFc1X7T31gvZIO2yfIaQR3BvsD\nOrkEF80PMHblwP+p43ECLcisJ8CPeBSFUYGAXYz/KrCd0fyAvaxLGM5bVKrl\nd52iGvppvck/PfHwFEuMslMtoUca1v9F+U4DVnkOFVWqvjQl7Xd1LmSeaBQV\n+7oodT49oIWzRVPVBpAxDxOZvnzOxhhjeqXAmbTNbR5EH5s7q7ddTpk18V3D\nSphPM2R+fTyIc+9UeAAVBgE1LDrv45j/b1dU3cqO9XLv0Z9n4iaV8xyTrG4O\nJDZ0trS9bo2lWq3XNQx5LCizhqhCZ93O5zZBKV1rSyPx5BMnBmlXf/OyB1ye\ngWPlvrwB3nKciMOgMA03CjzAPSzcEguR1nAZDC4oTW2bZAqBb9ZmXIPzZUBT\nx2wfNfIAbdOJwBhn93FAPVi9w8YklBPptFZvkBSC0z8GgGsWrVLgLM7SHQPL\nooP/tojlc6IFu4h8xbD50cumcFKcgJ4NinPZ67NU6kohavWqRXR5LjIpgEIq\nXxSC\r\n=Dcdc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMUlEfzwfLBYkj446X5m225CpLnwlrJ2S9Nn//ow28lgIhAODgEmROsFUowW6ef5eivRTMG/0zGrZoKepUnVhdds1a"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.2-next.1589911128199_1589911171990_0.027000319513831084"},"_hasShrinkwrap":false},"1.0.0-next.1589925438409":{"name":"playwright","version":"1.0.0-next.1589925438409","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589925438409"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589925438409","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MOoUheQQffUGDAHOpfA4TwrrUBVNLpMNkYIRC0IAS4VWFn4UwvRpClp0qgRvWKcz6+CnW3Mp8MS9xZvA0QyJtA==","shasum":"1c16a5187ccf136b5516e2cbb3b325e28758208b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589925438409.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexFZxCRA9TVsSAnZWagAApyEP/0Y2Bqzt3RjGP57rmdop\n39f4rAUgMI+/NgRDBeY7Exzl5Jotpg1uuRcnC6AgQf+Ymm7epKzJGQd5fDFE\nSlQuv6voPfNy2wWYmkxRRLTRDzjek7djnbMqIqbIQk4Be43c3Gzq3Bd/BgFR\nqlO8/hhUuU02MOMjh/v9bVxcLx2DvaRnxnslx2zGk2mOznmt1w7B5ProiSRa\nZ57QmkBHP659Wxx0bAtM5JOcVFjpBn5Cp9lWtx9OCubU0kz8dRb5ObOKJMJn\nRkEgdow8DoL7S0N/Wm0V1iAJZ2CVxFyx7a3CU8OgWrSJ6OegtrOyzkk8HGGU\nvNryUO5ie77jJc/DedzedGdAo1RyGL+oOj4Y6T2I/6exk5IrcLmAmxCoCaEA\nDRiOcIYUGraGjcnSzqilvGN/+/UN9b7n1u2B+bNq/NSLy6ahIGDe/tNCYWIs\n0v8gLUEvJhK8N0JJpLWYiXoXbix6pyRkkOIuB1LvtNYOQLxiQhUYYGiC6Kl6\nLuNSI/amM4C+x1807avgBG/yqGd5tPVCmZZ/YdPY23lxAPYAPIcdCepu0flW\nzdnfiTEbzpPBGF5LK1rfd/uweMOENi01vkMj6F7mL7izK7ZfWGk5xNw84bWw\nnaa3mWmff2Q5SmPa2BdprMuJ1neX8/N1OzsVigyNf5RWKQZponfXwRuB76Rk\nixCv\r\n=998x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZ+jyXMBKUtgY4E8hYNhCR//bR8oUudfatKxD+A58DrAiEAuEupif7W0J4d01c4RJEW8UpEN7BgCjrFhuChkd+OH0w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589925438409_1589925488771_0.7941903659195491"},"_hasShrinkwrap":false},"1.0.0-next.1589925838278":{"name":"playwright","version":"1.0.0-next.1589925838278","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589925838278"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589925838278","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-uqPwIwJni8u3dzWw+TUj2qaGY2JHjiAAx4K4jFOtmNaZNCwlid9GFblZdcSojnQdQREIGx09QeO5BcKfwJdJvg==","shasum":"7e2242f6f852591c4f70930aa07be50b525479c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589925838278.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexFf6CRA9TVsSAnZWagAAOlQQAJczjntDv0BK75/vt012\nrSNmKxjsjpCBsNM5StJqWnc7WLWeCrTxdzieZ4v+WQ3QgB1Q1fbGDS27XUfl\nCa78jpIdxEp2pLLBjAKNMymX8oBr/NV1XPXfsuLG54CAz68CIJPu8weDg0qY\n5hVBcMPSuGkLdN6BWP01d+24HwNOMAbDqHwc5eP5bEBhLGKKH/zrakg68Rcv\n1Lo0uVvoDScT4ibENmtksmejirmS3U4DEW6QBji279io46AxEUDAG8mb2Bag\nhgRRL6Vft1Yo91zfApi5fjwUa9D+efJXb8hUXxcV31EQfRWy6gHrURlth2R7\neAVdpxEiqU0VyhSRnaprwD2iL43jO1YRnSY9ggHPAOf4lb+/X/6blptRba1P\n41eESPALdmwkSyy3oqEXa6t1DlUVBCkyv757JNLtoFLLSVAU29lgFsqDZbey\ny4gCBYaosjiod8y05oVLffIFZhOwukmK+PJDBADfW66Oxkhhhf0HdJxscfFl\nQ9a/fCDyUyPF0248I4yuSQF18cbyGrLzLH97rzvr4di8mpd9vlcedHAOWc90\nBsj8uKkxtF7wkcsUsInfZvbSfoTbUpJrmkgIELVL1idahZm96xke04vxDXnF\nd6qLJb9j/y4cevFxCzftq1fPidQMH8G4wYciYlkgmL8zKbWM/0YJ9jEMrl48\nJ4pl\r\n=UFMq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7KqhbVpzvq6ycCM1t0092nwJasyfnt9ZgkvU5rbGsigIhAKd1PLZYL5fZxuuiRsiYfVT4a0BM3KWr26uF2dXXAODh"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589925838278_1589925881571_0.6143089618832305"},"_hasShrinkwrap":false},"1.0.0-next.1589926936881":{"name":"playwright","version":"1.0.0-next.1589926936881","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589926936881"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589926936881","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-44zzSCsxWprQUuolKgl5LbWchkDrTkyQIzf2AXJT4nfYhR6MVJws8wjMRxNWdvO3GdKvsDNWlpWbMnJhz7qOvg==","shasum":"e8cea65ffd2e022d7cfe2b8a34bb7a00ee2dfd05","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589926936881.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexFxDCRA9TVsSAnZWagAA+V0P+we7vX1KVjKrUACgsIh7\nEGFuLgwtxKEPmKsujcVXTdGjBVMdsL5+1W/R/lloqUZVD6Oa0Dpd9EKcDC0d\nBd1Au0ib7kFvrXZUXfIZ82Trqg6K02K8HBOyiay4BsJ1fD5kAZFJLaqEZNxu\nD8qMAvees86t3OD5sHO0Q+Cc1KZit9B0Ti7M2J9ggiX8J7KNTYhrxoqO09JO\nvl6VRI4GEnHf8GBWgOSUe4Fy8EUegSNwIBYJJXWWY4AljslSovCIkwIK5I/m\n6ORFzK9tV7gLvrw5LHQpWT9f4HDDU2neV0y1COS8I0ufD9Z8vBwkIWen4oKi\nnfi0gRUQrO69d8qt9xnQ1l8xdt/oYXENxpxXZIeLaRcH8TW6c4YkH+r2w7AF\nj8P7YYJ53y3QHLTyYAf+/7I328slAElBnuqPg+5Bk/dZFxA21UoY6gWFeutt\n519E88cvwJGSTksQUaEyHvVUCv2EnZ24zdTuHMyouSvQvBFn5NyuVZ8G7OiF\nELt1Xn3DXwhUbCAfKTMIPp1GOwiKjcby5OdpVYskpogVsNyDYIWR7fVQBDtK\nPTvpiqLlUxZl7+zeyYXX7t6sZR4vajHMfxlzlJ8j1f4bvWvE3VzAVPZhv/MX\n0qnvtAW61OYzDU4GYRwVerVtOPHZs4rwgw43N6CMuwVqtTP19kH14veAiKkU\nN0il\r\n=Z/sR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICNQEFThQsW6XDonKjsDt1lkPnujwbO48eELm3Q+lFMIAiBTjwnXlT1degMUPwuy/9+Ca3ILuT75K4gQJW/UhNS2Bg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589926936881_1589926979383_0.33189805122006333"},"_hasShrinkwrap":false},"1.0.0-next.1589930960528":{"name":"playwright","version":"1.0.0-next.1589930960528","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589930960528"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589930960528","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+W1iO+t8ddm3z/KnqoYKeMgGgCs17oiOWQR5zjpGqXmDWMD7JgL6cBNaw3ZHboRreZ6Ug+q0bVqjoqBd0eWJUQ==","shasum":"4ba87ecad8d8d314b9f469c56ca4b9e56f1be091","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589930960528.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexGwCCRA9TVsSAnZWagAA+84P/1VFpA3RpKiEbp+V5Uz3\nWnN80xrShfQeXpdDy2K1INpRDgX9tV8aySQ/Hx/rPwncG/VjNJvfYyniOdIY\ny4c2QqWnBzSF2gHW6QVir6Y0BVKIoGJ3cGvfrAwFNIcftuUieWmRXDOA/5fZ\nslN22vHweGka33MvkBRRcQFoN+mqx1mHxxJA25tQNfWjnuxBXAAhH8JP0z4+\nccj1RXqWZBK3uJkX5yYJNFVhPEW6RhHTqXAOLpZZZVzWX2MMocsWVNWgIx+Q\nsWWEntZMkxwh7Ux8Cm0msw7Rbcrsm5QU3zNA76OPP4CrLGTNd5iu0FSRM5hz\nqxLdqXiSRw9FEmGAyE39CymCwcD6EtZuwu1h2rVuU4cB0VGPq8o7fm1Pu8jq\nyF/BACKegc3HGTicapV+bOAYcKNYZi6jjRCIhWRc/os/B2kyWa79rySsAuHE\nuHsCJEDTT32NUKGkBX29s0SFjRu0D26oVKMTg44SUQDEk816yb+U5fDxz0O5\nJGbucaLkKzS9fasi420hTli/vbW+U1NLrRwhRjmOFUDdlTs85g4Zm2z6xBQM\nBF1Wlm83Dk4a8Jnf9v7u2wNJAq/IOZljIrWPJ8DxNUVZYw/9oUZHTjfh5TPw\nd6hA2RTXafsHpUtc7Wqhf4mu4zb9otJX67HTloZAk25YhcOdzzLmySrIlVoX\nnbnF\r\n=5lFQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/tRbET3UK3CJAXW9fHgPdD1sQ3r0WORmzM7LkWVfJnAIhAIuWRn/eWJyewMko06LN2ht2zhWAYyYGShddbidVHytL"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589930960528_1589931010046_0.8827537999840667"},"_hasShrinkwrap":false},"1.0.0-next.1589935755905":{"name":"playwright","version":"1.0.0-next.1589935755905","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589935755905"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589935755905","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JbMqri5iotPpDzANg4b8cBvEaeV+4ArdARsEOblTiOwXgZYJ9gkOA+LuMPZlL144+vPBYZ3v3d756mPW89lt9A==","shasum":"0efb104ba81ef37e918352e6fe90912736fae8f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589935755905.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexH60CRA9TVsSAnZWagAA2RIP/3qPQkmKqqsUQmtpr60r\nL+yV62cWjOKMPwej8JxtFPKnFUCpKJd9Bm2XMzokOQHnwh7GqzwStbikIXID\nzjtVaTSs9FKeYynXXX6lxYog8BTNWxIe7GVKBHlkmXGIeInUxCmpUt6MAysl\nzhE6L3JIpwW1b8IGw2PvTm3fdCBPaQXaS5Kc3PaOEGGn6dUuLq3wzSBEC8Lv\nSb5UYpNmFzF9BfQEVVFhVhp7/LZRfIKX3kO3+63XAewwvsJbX4JUp6NmVSY3\nPjjJW6g+t1Du18CjZSktid1aj+c8v8I+6h3z5UF8lftVkdCM0xPoAMHy4AGd\ny3tsGsEckq/f/FQ1fYyxCqLp/pqHO89hs9JW39EpGygtk07KZITSRDO/eOLu\nvF2R+vzypnkkhXiNOMkuiACmzL44tRpcXV+AXgIvqbNAykvfd7PqB5wCn8yR\nsgsTJJl/Avr1u9agWJiunEH835NPogg3fPvjem4TH+1B6bB9gY+/v3ZBm0Jg\nph8wIXm4Fl2zooa5xGs9/W3A0YKO7QP+MOQXQeZiv8kZRm7fWP9FAD1PQ+4i\n7fBk7OUJW7WAKpiuVm4LicNwkruGdGhs9RowzDSCQFUIiji3Uk8misL9sINQ\n33e/iCyRi6+odHe02BnoFEHBZthH0bmiPCQT8dnO72kHwnx3y/IKblrk/24n\n99nJ\r\n=wZry\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmmSE1ePrOVLHOc4tsh5XtOTvoULUOiyVnauwRba7xmAIhAIwVc+BgeSrOM6uKnHOiRGKEsuguQLGP4s0X25nA7KyG"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589935755905_1589935796297_0.9599229701783432"},"_hasShrinkwrap":false},"1.0.0-next.1589958373554":{"name":"playwright","version":"1.0.0-next.1589958373554","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589958373554"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589958373554","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VSbFSzmYuswwcIIQTSdnKuMGYm6Isyqsp0NWZg5xsLGwLxQHMDcWZ9z+PKfO5SYWgPMbGpsdhrnIKQZNX5DoPg==","shasum":"87c9b3ef34f480f0a6b7a78ec46fd03357538308","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589958373554.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexNcWCRA9TVsSAnZWagAAX0gP/2AzMp0qOcG6xP+c0Lll\nyjtfFbW3ksV2lb9Jm1sb7aOtcBxSHliZQahK7wZOv5ENesV63D61cHM32SSK\nDFU5L8hqXWevfN7ayG99YOg4Yjpc6W7mxn874tA/++eG6RgZXSb9BvrDHvkZ\n79J8/cuQx2VqNJXgXilWbCTUWV5d6TmAnWc8tmOa/k/j6X1UNzTQVHISwNnl\nxAYZVBoDHBQUhgkwWEZnfAAinHZiJXOW/gFfhAG+CPwA3mOlDzIIRk7krsnV\nhnMKzdQoNS6V17Updlbi/w/kAR4eF6c5Vi6NpihsYP5d/0IFOLGUD3wcUdWP\nhPNHJbnfIPUXnbgtbJxSNOS6N3zLZCxTRM4YZyQP3dWQUqbu2GZfFZxfw3VI\nqyhnlfc7YAc2L/h2GHbLnxRIzCQjxwhz1hsF1673QfrEgBGZCakgaSTPytzB\nRH3HTlvm59N6m14MY/nP+u3Ayevf2lx1K85CiJAQkplxaUJGQr8zRIvQ9Coc\nbU1g/GASLwYpZ/30ZrG9/V0uJ0cWhmdoZALEHGffpG2zPCDcYIKGlimDNv+f\nFGYFraGBfh5iuRZWXaTRzCwgexCC0vhPJ9E5w6UedUGJS8b0o7ew6OmLBPsr\nr1HaNeLmVfeUsAve0kN5jpFoQ4FhBb7OuQp3gDkjCHxorWmD0jS1Cneb+vP9\nUoxS\r\n=/yY9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHnfc5h0W1XNimF47yWIrUC66zGb2briTnv9hdJpUE5AAiA78S05dzcapiHf4+GAisnmCfpBfCVNMV2Y46HKR9KmyA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589958373554_1589958421805_0.21247349010164274"},"_hasShrinkwrap":false},"1.0.0-next.1589958749516":{"name":"playwright","version":"1.0.0-next.1589958749516","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589958749516"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589958749516","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-P9XC0BRk0DuVn+J+wTDLri6X59c0v6qEWHIzQ111HbYXjgRqa2ue/DoJ/1Mn/h+uS5eU+x2Sfa6M82bpG6Z/eQ==","shasum":"ffef51ff99f509dce473e4e22e7a1bf6f67104b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589958749516.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexNiJCRA9TVsSAnZWagAAL1sP/AkrpH7sGl5rd72b37c6\nttqj4m7yAQf+dV3PnjnXOZesSpBhuDLSLqXN8ngHMcWBAmIqI5eIlrN3HXnS\nTrQLVC+m2mNAh5ZdPrdseBtwoTA1m7kswuUW7DGEZrbEMBU6OCugjQYEOxMH\nolYck6IKGNsoSM9esR4VQvO0inV+0L2Ge/rdWQKaApTjwg1cKlrWkKmEWGLo\n84aJSsV1EpABsvHCMD7opKFKOmtB4wdZSoj1NSI+P5BRRNTX4rQfedeV8K2W\n+F14iTnZ3B5Ml1wTH6iapU8ijR5eVhmVgT8PnEs5wtIqDlLZOnIdqbyi7tJk\nWf2LieBSQNQWAV8zSI9fTqyPyLbx7sV8DJX31Bej6AaPEKh3fa9Vh/HA7lT+\n3AUWFwT1m9JWE7XBLgAlJtJsqzvtQ7gteeN4kUTnJ4eT5Oy0tGx5PspFxWwK\n4uueEk1XW+lvr+/2tbOznQTfXSoBqr705uXT2N35M0zWH3B+fwGLsBUujVad\nNRRBIfcawyn8oAnpAYBgmcU3tN25Rr6/yyHfmFC4nrNAhMAwdqXehidb1E0r\n9AQePIrOyLnelj3h/ss7ib4+iIvF6nZ5TWtceRn+85krX9xdbbWaxwO7mEWG\ndteVK1zgylTThhzybws8HsObz6ItbyHAOVl/oqYwlSLHYL7niqoN/Xcf/Y9P\nQt9N\r\n=1vQF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnES1z+shjSSgE/sPeEonW5vDAQUStNDP02roBVvXBYwIhAO0VImp1NgSno1JIi3G/p9BZlr4i0CxZ3dYp/SGmgeac"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589958749516_1589958792958_0.9277147157850465"},"_hasShrinkwrap":false},"1.0.0-next.1589985372174":{"name":"playwright","version":"1.0.0-next.1589985372174","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1589985372174"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1589985372174","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TM4zUocM+nW4/kE9XbPGERbgQOLWr3iXqeDBgLECBxzGzBDebypIHn4GE6oOoAa4PrOSXtfb8e2O2DWaoWMOIQ==","shasum":"3159d9d0b5dda0d981aaf2b5fea72e9b8cca3185","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1589985372174.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexUCeCRA9TVsSAnZWagAAP28QAIZ7JpODNataMlpbDZpC\nBgJbro6vtrjIKk3ZuOHz3ACMYAL7Mhsrn+VvUzPzZaOFCW6zGRQCm2ZNmZTd\nDICQR/1g8+xMGD2SZchRvPctSqMsI9byEgOE5vE9yqe00LTJ/e3jRqlssG56\nOWxvncqzyTS6uVhdzWDAT2UmNQWOnT3zCqowiJvezh+rZlC6xbG1QsklohrF\n4rBtlmCZ+oe+midMQbgrTenohT70RIL6Pa1eGDqwaYproKZRpXWGCSu0+6sW\nRC7gSzosrNVgjKXC5JS+fFcp7Xxi5l770084v2BoStYPzwGyRj31/WjtIBBz\ni4fZ0xjxg2Ygd5XukRyXcCz/1EqJEPGDcqxw3qef5E8Td6WnXHcasCFk2Xzi\n6mmH26LYfN+sxc/2WO+NgmbKkExf+YBzLwrhaS0wRiprh9gbNwweYWkK0ACo\nFsniUpwurJeeC6FBXr4ugIIN/INC/OPS/LZeVD5fqaM0byEFN9TrZSsYb3Nm\niSZA9IUPOY0bNzPAp9EKdTae4QA7RCuzR93m1A/8ZYv/6ojsj3m+XkvRtM+B\nICPJUUn4KBM0SObKObbIeMiRJDcyTJgIU67mXmiAUn88XOl1RzNBweT7Vtg3\nJyUVOjthd6XxlwAre94hEM+LEByJShtp1wxQRZPOwuuZD2Y5mjpFGYVSqrvo\n3u3y\r\n=6gEz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYP1GgbVkoHlCGHrSXC8kfW7Qg9gWR+Ks6oY/b8CdwFgIgcvvV8k/H1fffw1/cUk5hr6S+CBViJHUxhHJ3do/oWLE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1589985372174_1589985433525_0.09018178897019635"},"_hasShrinkwrap":false},"1.0.0-next.1590011781742":{"name":"playwright","version":"1.0.0-next.1590011781742","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590011781742"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590011781742","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MfiGo0gPpimefXiJdXmF5/Y3NeuWop5ZK1YNgPtkr6g9Ky6N8Gpln3uyeWarwsAxJx1zzXK9eTo8RuDaqnAcZA==","shasum":"065403e92b975921aa306b6f1a68c47e9fab2166","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590011781742.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexaeyCRA9TVsSAnZWagAAct0P/1+THZjDdns2rHCpJBLg\nA7NdywOqxVp4JVl0c8myAmHda6VFbRYKTCAVHMzcKIOoLPkMWotFYIbgp2yb\nlsHrEqr6qcU2Q9W6TZBNEeF0aaI3Bui2Cwdipuxo2YVboLAEAgXGfgzgRREj\nXQtRbeCFDWz1ejP/ECfQhmvylj0SopS2yPy8lpTIwl3CJwWtwCarIGqqV8B4\nz6ZqiiCTP1ZhLC2rjxkWCrqtF3PLBlQHAoGDz0UMrHMXvrWwQ8Q9QVlIHcXU\nAHRkkxg/6dE5yIxRIJuMtgcfRsc/DElyQtJIEPm9qYl04qICdV4NUw2Q7dsN\n32fE0nFWfbPuDh9a4nku8k4YSYzwt1HzR0bhZ2qXk4dYr2wlOSZy2jab3a1l\nkn+jUsmZt+m2qEOjJ7DNMI+AM+uMf2wRfAZhZs6bEMqdd2GgN6SHyp3KwQqg\nBbjDSjU8Z3Ydl0Rw7fddx8PM0hUlic8udkEoPxXfrHHjyzW70kZPe5UtHT23\nx46uiZrTGT13XFCKq+HsBzdrSWO3rYsZz4fYqC2FA6Uzj+mHCu9Vqlv+BzqU\nQBfozmmgdYzi2+6S6I8MrgoHspwECzaekAAXKCPE/GHFgKYEQOiYjWdO6RKD\n9vpxYuRCTxfxI2gEDi/sHt6aOC+AZ/DZcHbhsr6EFuxz8Dv78ED2pgbo0eim\nu/96\r\n=HCz2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfnsTJ7cHZtvoELMBXIiICIj5NlJw3uPOqwzIsI+LE1AIhAKnA/7/nnp0I2OFfx2I0mVMZ6U0Ge/jp0B7jlwYndRp+"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590011781742_1590011825705_0.21462094512565266"},"_hasShrinkwrap":false},"1.0.0-next.1590011999788":{"name":"playwright","version":"1.0.0-next.1590011999788","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590011999788"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590011999788","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/z1Z1y2dV8SrL8+vYAfKip9L+5xgpOz22IFAXQhTog28f/nxk8N8rArv69tqwXVUxoCC/6h6KgnMERs+835hhg==","shasum":"2fcc9ae9d1a05c9a9c194c1768ee5e06f469d284","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590011999788.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexaiNCRA9TVsSAnZWagAAbHEQAIi8+9Pf1dYUFr7EPahW\ntc0uN9U+0nt2SgB22Y+Io2UHjDJLPtGvKn8rrAow6PM5RW6z3hcUMvj4kiMj\nkXzmU0NL8tzp8QxBw9LwBIUyXEQjswUALu6MsLgtSgmkv2iI/nMwR4a5Xg2A\n1/ybqS7tj0RQvxAjQ2RHeKLoLYceJatTh7YmbnNqgSYhRMKn4j8JYLpQ4kn3\nDgyVk64613j4sTK1tAeWJWCDCNqNfiZi7quvpYZe+ORMr9dregdr5oRKCUr+\n1EkI7OHliA3SKjkEECc8hQ1VSwptExnTMtaUe8uIW/2sK5gOyeJWH79NYRmi\nIlRINDHAn1iQRz4G03PsA4tMjPTf/0y/ZQ0L7efwubCCO5/caTbdyQbgQme0\n52LXeyEhX2tMlPQ0geuzXgTVKFEkRfoDYBeuIFHl0aQCKhDghJ0k6Xuc9MEW\neonSCQgJjhmeRfbBW4uD4IkGxvWgjNMFe810U9HIA54V1AgIiur666MEXrxg\njaxYraWjQJzaowop9XyDTsTFw0XD2ISe1WMQmQ5Lqu9Mf5Owzt4krYlVvpKg\nQZv5vx2iLNlI1o+g0HBDyZBmyshMMm9x8eiUYWBYkSUYD86rHs2oP5CN8l/d\nRTup+MLMrl8DnzN2r1nk425n/Qc/KiaPbkv0SOPx6OcZnr8pGSGHyavowQ1J\niBn+\r\n=e3PU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1MSVfF32umCVv5XuuvI0bJowIrPVYq0S3z9ccbLA9IAiBP/lenCW9AwXWFkNjeibVNxbxsW1VHhTlB32kAk3ingw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590011999788_1590012045432_0.6101825737831179"},"_hasShrinkwrap":false},"1.0.0-next.1590015058131":{"name":"playwright","version":"1.0.0-next.1590015058131","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590015058131"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590015058131","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-G89benz9a1drSCF+G1W2e93Xsc/2exHxtl4EfTH/hPAobqen1WWJZFUT1VFqonCd1hLOOYHk3ayoLCl9xPHJVQ==","shasum":"42be14f884f7c381b4d1dae182412be84f60bfc6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590015058131.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexbR+CRA9TVsSAnZWagAAHlUP/1NKktdArRm3tn3NUPVk\nTELGcxEjwAlOgFCMAltaL4ldm+hInrGP88Q64GnvNc5ZwclqiLbxhxthsLqd\ni44NA8rlyc5+g3i8Ho0ViJ0iGhVXvy13R9Ho21yaYJ5yt7uKsndmXWcKQ+xJ\n0BWUGD77LOf7Q8V1on6a+YVun01JzRy9IGA3uhbewOYLHYe4I2YB/mBpGW+E\nMH8LkFRcHEsUY7orFbMFjeKPxFcvxRsJK2fBPh/MywUFoSPyaNWnqXloGgdj\n01nKPC4UCWX3+gp2nDXhyuvCKZckxaAjJU0maOxYXO46tYZLeRzGqj6LmJ/C\nnHOrcNjOrPQ4WKxyxUUV4vtMCBxVuyZE7FZJGnSApeTE2afZ3YFHJvsZywli\nWvb50Fa1vTYc/zpUe540cNXCKeSrDRSePLcc5im8xFJqvIyh5QK9nxFpVc+U\n1hfcGIuaXEWXJMljFpDfKq7xXeDmj3H26KZ3P3XCDcn+TDasH39qy9rkdZLT\nRnJVsDlD4GYaEagwBWaGJRDc4vpXmwXs0qAfbBw/LD/ytSff3R1b0C00+Khz\nssJJtRh4P2kkTLfcWZdKEi3NGdY082HfIT6tlc7wsMUG26cyJLgwEi3CfqEc\nmte+1WoBAeNFJ7bkpNFjMPaUBx9lFc1TWQZa8R8FxiYVA4ROjbD9qbd70tde\nHE4J\r\n=NUI1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGuQSYj9JI5yU9ZaAACTV6Qb3eueEEY2AGmac2fvfLMtAiEAjPuKu0Sii1fQvDQMKSpUbA249K0zh6WiVqksgazKTW0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590015058131_1590015101810_0.3616650194762725"},"_hasShrinkwrap":false},"1.0.0-next.1590015443077":{"name":"playwright","version":"1.0.0-next.1590015443077","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590015443077"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590015443077","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kIc6H5Cf0mv2hxthnIDEGgLOEuV5xX6jQ+0QyjHJ+1L8axP41C5A2l4LPTL6R6VaTx2NMEC1PcjiIitETWtwGA==","shasum":"80b53af890b085d960345ad6dbe6da0130501f51","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590015443077.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexbX9CRA9TVsSAnZWagAAdhAP/34/yqgHhdQX84RTqHMI\noUUatdFzhYy8a/VBxlsJNZtuEs5QLhCYFSw65MOQD14LaNv1anu8ON16sHMm\nK6X/049bGE0Li0m82DjBkFEmJH6nQ0qZ8FEIQt5TItwU1KSW2CPz1nqEnDLw\n23YYZ8oeMMw2dBd8y91pqyTXwW3wqC5V6jGjfyXYaIvfNF2Jq3z0kZhms+cX\nnR44Q7CMUlcuTsAaolaV3XmgHCGzHiZ2/7RsX8Op7KSdA0v4gRQk32V2qE5p\nHH6VxxB+6EO4BtZIhlCSJKekEI/88CNmsJhg02/CbvGdGYeV2wiHwedn+UTs\nIhK5dok1sYLIjNOdkxThmJYpXbmh07fzLSn2mZrC0xWNfl/PqHwK80Jv1Nil\nEULQ2QWeTVTAva1NmOaeGaZpHL2zjKk4TS9Or96wZ87zUA4GUpvo6V3SZ5Q0\nXenXtWvi3AK9Tyr5QatkkFhMbMU+hH8ZNPDqSm4FZUc6c8sSzvh52dRYNm25\noVJigIWK+5hmJMnKddcuYxUmmRhPjQJnFGbr0a0ncQbqw/ZSHDzIaNpNa32r\n4h7ObsLhe5CRLrCoER117X5hBENVo+gEx/+2odhhH0sISFi5TR8KT9EyLMkc\nuBFXxswUpZk09AZ0PBZCzUvG5z5iuLtFf0YEMJkp/pbVlhA2uAEi1GmTb6Fk\nu208\r\n=RAKy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZgTs4M+W2dSODh0j0yvwEAfWIfUkONdbR/BSAH54/CAiEA2Via0bH1466nNcr5W1fyB628YjSUr8ESv7DZQSSXRSE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590015443077_1590015484734_0.495429485349135"},"_hasShrinkwrap":false},"1.0.0-next.1590017499520":{"name":"playwright","version":"1.0.0-next.1590017499520","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590017499520"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590017499520","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-w9M4eZDpOiFek9hRiHO5aY8uRX19FDh7/pJ2UNI4xTTb/GxZtscKeyk4k9udAmXSiMqjrfs07RwMl8fzBwWZfw==","shasum":"2dfa54568db296549d6582881b7afd43812269d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590017499520.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexb4JCRA9TVsSAnZWagAAQq0P/2nE54eHTwvBg2EN2Hvj\na7zp2YXiZ65pLzqP/rE2LKkctSV8U3lzeKZ4pUiRU8lLWmOQjILK982gff4+\nO6TywBAYrP5DjC4OJiccr+qCF1h0yyVBgeZyURZ2O4yoVzKknonuKuGwle/a\nj+1SuJFbWMUMOm8uCtYi03CFcXFISpdc0L/y0kahYNFIRDSmM6fd/xV7MWw0\nv/a/sjy0wwL9fA0FEUBpc6GEzuwePMdSue5Sqf7uwNG6iKQ6d/Tj4Flbtkli\nlbIPPSR6aBnpzRovNyvmToAROt+7ZY0oGu0WuMal1k9RCtlISFC6hoAqK46n\n+z+8r8mefkoVlgOaUxDPDHFKNHkhSBS7TsoGbJvrIpE8lGHYt5QhZ/1lMtcv\nEguTUh48nr0YmjWZ0zDyKIPR+y6pyrnHcZMo4ZnXDCdVT+y+CQrySxYxaLcg\nnzunz39l8Akgv8iYjPsm9iMD6GFbL8s0Gq+DVRA1DLx51Fl726ZnT4oc5iuZ\n1LdaUyyI0Y7bX2aZe6ykLgl7zwijQ7Uq2XHsbLZSyVk7L+kSxh7sJjQHAKUJ\nrTnjpdPBMGiRPZh6WSAS0ktlclH4ujyScs5UDVxZeOCy7d9z8dhrxZs3BwJZ\nXBCeBm7OeZF94x8LXyNuFVnYWA7GDhvu2Nd3gpmKNglqkS49mczeN57ephsB\nS2pH\r\n=+d/h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZq4DieVNLibwkLezrq8Jxf04kyvr7SpihEu9lYEyjYAIhAKry/RWfjte5LjSBQiOhqfHOuzIHX/N75Pf/PPsXfum7"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590017499520_1590017545408_0.09111908736177021"},"_hasShrinkwrap":false},"1.0.0-next.1590024423746":{"name":"playwright","version":"1.0.0-next.1590024423746","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590024423746"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590024423746","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BuLebu6Vrhk0eq4NNXnSF81eTCEoo9edkB9y1ZLYe/en3zz9gSEqX/jSFmWPVVZ9Q2TZaWec9CX5zrZg/npvXg==","shasum":"6f5fddfd8680bf20ff95e3d45c26d9617e8cfdcb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590024423746.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexdkQCRA9TVsSAnZWagAAGYQQAI3KuBfldV4L1jOFr+I5\nLFIcvnakPzsG64N3UH2HWVWxGdfNbWewiji6xPMzjPxGgxw0eXDVdcQ1HYH5\nPQbM+hL9Xafjdpat1YjD3X1gl0N1Lou3NvWO2hpbU/NeKDmvMYpBwyFBkIKN\n1E60DM7rNgtYI+CjYDsX9yZvesA7WJsB76KW338R+T0cUkVntVaxooELqLc7\nnOgzOm4OQ5A82VKZkwTzgISa+hnX0KXoycTB7WAosOuW6tOaKZglyj6C6Dsi\nNpYctdgiz68nxpw7B6Ud6luCh0Onr9mxKvYhNW+Vvm8i2hCe4sPkGKCRwXVU\n8eIHag709Wa8st3VbqXiAWKBP7HykEq/xfDsiF4lblKIrdyHjRVA05fLgLw+\n2XwKsN6ddsuZB/9iBB+UYG4NIyXHlYCu2MvtBZLVvJ/VSjCdDGebS4tBfP5H\nuQ4U1wKGgYCha4u5sok59JZd0QOShnZ5AVAbiBHXTlTVGMNrBrTAT0bYTyjZ\nO6k8I/0j5Ksnc+f1xszlDubzIIUPiZnZquZOT+J9CIkQftWBS76d6H+/QU4Q\nyKS1sGyT6/ZuYz/IcKSVcJezEOjdiOjvCJob+xX93ixoGWqwIejk3KHguo9l\nOuJOPh0p177WojcBRDCk1R7YJzY7uimP7oRyHoKrF3usvdjZFLpzK5OxRh8+\niIT4\r\n=zpRm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDKn2p4w60T1G/OeUitLx+3SAz+XPyLsQfVztjnNqMFDAiEAkPKsdYIaKzMaEPEaT+nBPw+Gm2fD+yC2KQZ1es4OdgI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590024423746_1590024464167_0.6257841257577061"},"_hasShrinkwrap":false},"1.0.0-next.1590071705002":{"name":"playwright","version":"1.0.0-next.1590071705002","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590071705002"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590071705002","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jZ/nmmxVksi4bE/N6Mmj/NhRnK+VuHBpm7xq5eRekfaD6XlVnxmH3Hu/y33hSpGdE1nna1DIasPix4Eq/EAX0Q==","shasum":"ea894aa1763dbee649307740fb5949823a4b3a89","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590071705002.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexpHACRA9TVsSAnZWagAA5w8P/j7pXQatDxLRknzmArcF\nMUbFuRj0kH7FfpquuX2pSFIVuKdqhuRpHxoqk4Uh5K5QsjmwW5mi1lW0e5Sy\nXpcqlDtED3Im2eJm5aiDzz7+aeW1j2GkpvADbMsu28HJiwrv8wOkvbwYBTA0\naFzBBVgN+5fz1YpfzM/FTrwNOVJaGeGgylkoMZ6hQYFtjDB3/1+pDCLRiOnW\nezEgdRpPyGh/1N91EKwLmmWczAEg5KjYTqG1ChElC+l/hPRxnKR28BipKbEq\nkClxEHy/6bnGSEjdN9uiVdCSLN4ZnSlQV3isQAQzvMDTe6nFTF2h3cZvvULU\np7mO7NutuudoqPuNcZp4X+VQltOdW7HslJSJkO3kUBVrHiYF8tRGQh5x09tW\nfxDiX/1ptlOgo3j7HOirW53Beennpk84DpiXYtwAY9cgfzHUAwCYSfKqOT5f\nRxAfrIaxg0KDDUQemCKAS3sFr7fEpjT/emP0fsaUITxRezmJZaUHHD9w7b3+\nnjWMSZ37XeEyH9LZobf9JATztHEe6cmCPdfnc33C1GIRbPK0+VwqjhXKjF7u\nRwT4cH1KgRC4BIrtTf3Z4SDRyoTZM7YcN1IwFHZQc/eReLY220MR894CAuIm\nwozJsrm+CsBgOVlnEXGtR39NrB+Q0WjJtpEkwTLFzIt/mi6kH2IqAjfb9wwN\n49NS\r\n=mFBs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdFGHDzwCIxsdcgizNymuZN5+0ag69Q6KgkwTIPwkNvwIhANrVqgZ8wppkpcTE497bCbakSyQjE7L9pd+nZwRmIDGf"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590071705002_1590071744191_0.8126311083734015"},"_hasShrinkwrap":false},"1.0.0-next.1590071938486":{"name":"playwright","version":"1.0.0-next.1590071938486","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590071938486"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590071938486","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2ZxFDVKCueK4jjzv/bsvG/RfBtcXYdet0H5IJNUBwDDmPBBixwWzHkQcMHNQzbK7l+nkbop14LLOHpiNFetrTQ==","shasum":"5224beba3587fe44f70bc07f64ba370621ccb774","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590071938486.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexpKtCRA9TVsSAnZWagAAQskP/jCuJsgOP9DOSc7tm1vQ\nRAUeGpT52ErDwD6kVt2EMrSanBjfWOFh+vK1trHwA3j2MRfhV6SkwZ/4mMJn\ncLIBS/O4UZCT/Pcnqb80c6LkCF0Q3Q90QjJ3nQFAnEefo4cQ9lUK+u0Dn7X0\n1lCnOaKwpWicRUDD9422z4JtY8qeVU+2gdYKLMWawkF58QWzC13z/9LA833M\nIkuJXQJZ20jyDERWIL1FarDxOpIklqfKliJcpas2mZhALBZB/PjIzgVV4k6H\nGZU1rrcXHQsLF9wljljol6j83I7zm4h46KJ15KcmarD1BbFyRj4POvDIuLpC\nC2aIMSd1NKkh+E/oRL+buGEwpqqAKCERhdjzzagU7DvwQfWEJD0rDLA3xwKt\nNgZa0f8WG60Zma5feT8iYfGJZQP8dq/liwuK6rW32xSP26+VIC3BuRZ+kGkT\nQmw/aCVhhhmFrv256Tpg09nHMaEG5LvYKrjJ33PJP3ANKpf+Odo6paVbxicZ\nmSHBUgDGrdnHLMfxZ7kkgLMhDedE2t+NCNhzbqAxNC6vxm2pKaXvc/Giln4j\nsIMDuRJAKtaj4PJv2+CRXyKAsQJhHX9mP50oKzbmygm7n0aOoLokOPeKbiMn\ntZM/vTUrgVIt20HZ6vrXv7AU7msqkAVNvQJPrfRZYYuPHrEj3vmjfBIW5BcA\nKdn+\r\n=xdDu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1uJUpa78BbjgM346HBl5IUk4PqBJEhPqSoHil6KOGeQIhAOdmz92at3MrGj2yWhTxPShwdQJFmcCY0xFOICM9yI1Z"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590071938486_1590071981251_0.6251117162432562"},"_hasShrinkwrap":false},"1.0.0-next.1590075988166":{"name":"playwright","version":"1.0.0-next.1590075988166","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590075988166"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590075988166","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dV1xHGeTw035wTGfIake4NpTW/kdkYN8fQc3JOuICFDjubceWReeFEOJoqhSuTSIzfx2YIQHesXbADN+YlPk1Q==","shasum":"86a7f532c3e4a454d775ecca2ec8bdea246c0cc0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590075988166.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexqJ+CRA9TVsSAnZWagAAHzUP/1g7/3z5s3sbxlVxCgLb\nifq4YvMs/6H1JRAfSeGsXU+KQEVy5mDPsQHgfbpnA/b8be+y7AhUVuRqPosw\nydeJljfcTvFWIiLyNsE31h1iqlO2LOkTonn962cTVVs2ut+yhc0li0xVXNBx\npMoE2hIWr3ORVZksDgmM/+RTGFiqO/MDzgJzILM7UQmdC1eFHV3I/Li0jirN\nG8pRBnSP/PO8R14EhItLBN65qVNmWqJuEIaW3kkj0Uao5hX7KEoQnt8qaPHP\nHJZbKOvadId1eZQ28K9E9Xed8FsEIcGXglcU1jJYW5jdELdWJFYIslmL28gV\n4ar/TfBF21NbITQgLjQf1przsTqP3AJV7Xo7yIu35RY5SIfj1a9swYKN/RFe\nM9bmOwf0n6iYnc8tWKA46Jv6Tcasc7VGb5edNY7Sx9eIXfzna1IYV2A922Oa\nO8q/WHx5Il5SnPk6fIZnJxGUWoupviFLnrAJQwEHZiJEorkKMnx29ClEm4l/\nh72RBK2UZuv2eGDsQ63Lbz1vz1mBg5iznd8CRYIENrspVNidFxJ+5MhpgbnQ\nc75wAMrv4/faZiKJlZm2H8izU/90DdfWrdJMGVLWvbQ0rxP3ZXC1NWrkSTqy\nsb4KeGj2TqzKQdrwvlJWBwjhSG57kpGZYQq/KwhrxvRUYeFCM6AK1CT8YmaN\nRczP\r\n=dXSI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDXtCfnKTeVRnK9IxqifB4an6QIX98Xp3kwZlBFm/pCHAiEAmjWITijRp19nmyMv65w/U62Zhb7q0NEf7W85kBzVf5Q="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590075988166_1590076030042_0.7047109301387657"},"_hasShrinkwrap":false},"1.0.0-next.1590079500232":{"name":"playwright","version":"1.0.0-next.1590079500232","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js","prepublishOnly":"cp ../../README.md ."},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"=1.0.0-next.1590079500232"},"readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590079500232","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-K0dL0u2pcWtRzrdy+1dhyBROQlYoc6pOo+3VCoiADLg6NQLUuU0gjRoZhqBbpyasfI8BDkmTU46i/yxej5ta6w==","shasum":"c14049dbed395eb37ddadb7c7cf4f488cdb45b95","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590079500232.tgz","fileCount":6,"unpackedSize":8516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexrBBCRA9TVsSAnZWagAAOrUP/33wzVCfL8RZyZc8OjWF\nKxRfQLm8MDcFX53sBCnghnsJxlWZ2VhP1j1MO1ra5pQGX/axO1fK7muf21Qt\nLeu78oVMPDaYaYmLPSrtqx0yswc1By04fy9DGZjUm2BMet65krN5ANlnMGGq\nsE3eieZ0QmRfNp0zfntPHNyvb3FqJCKMNwW1EZyjexTEu3ztDLRp5IMAcUa0\nsqwPMcIgCTXftLp/sJzgGYlujjxvSi619bzGiI9yWgQR9M5A4DJVAOBPYGUp\n7A/KfcnZLagQIHLKHOCXgTdq3lnkkHlw20aVj3lK4AKv1IhF96PzhdAb83C5\nK44k7eTe9MY2JB/0SWGvlxTfhS5y7IKMZyqknkn1vZgiAOWJ3slz7AtYXw2e\nJSqCH6aKhDs6uHtkx+nTMuW4vdU+JBsv1cm8uCTJ6FN5A3Wyw+k9KAJdhgzF\nbnZLwxqQEpPfDMBXOsDnitwRLbPr5COecCi2Cr07UlHeO0OyLLTVPU7UOe4b\nPf270hScGWO7Hm9vvUi+qL8N9mvsTCZLrphj2RiZug+1taH2S7GK3zRCx63N\nqYZhBh9GfyUJgwiypwcUR2y91Feoaezcw9XHO/p+E3YZKQRYJWslwddqJooq\n+/FZdn0sTvVNx9TwzeRRMbTsik39iiZ8sV7mKlL4hyGr4N+Hie554nhhyYS+\n8PCN\r\n=rTDO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFFGGMLP0PnqCy83j6/UxPPopOsEMEQW4UNWGDccw/uTAiA/9u50q1496RTXqEiM5vHcbEvmw7p1QqfWr/1fEt7Zfw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590079500232_1590079552645_0.1467194195291337"},"_hasShrinkwrap":false},"1.0.0-next.1590105515617":{"name":"playwright","version":"1.0.0-next.1590105515617","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590105515617","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qA7UPhhNBItcDkFRKmULYkOGaBZ2gqmPG2zQxIrD8ttMTiKkTn0y23mY5GJlyCYbxQEakQsqi4/7bzX8Wrkfjg==","shasum":"f71d20ffae44f5580e20a5ea401b23773c4cb13d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590105515617.tgz","fileCount":82,"unpackedSize":1466058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexxW0CRA9TVsSAnZWagAAmQkP/jOisI75+GLmCYe/eDvz\np3TeM//xWl/luW4wWbRnMcMzgY9Wjttw59a1Aq+i+BY2quZCzvaxSm5FOF6N\nyHGmspryG9pDgPBhGVsx/gtv7NKXI/PP5fBD+aZm0nvdTtQIFlszv5S5E4Gx\nqaF+I8X8E1iO/eoF1VtB/zwPF7Ev8OLSeLxfFm5u4uOPMxlinj/YGNvDCdIz\n4DokV3UwA08/6jgl9Yv4ssR30SGIoSo8OjHYPw1uk8ZceE6KdMYvdLo5utrn\nUwUACYm1DBTDB9era3i+hSDwh/yXethq77o/k3oaxl2v41hcXxTVahtMkm9W\nCMU+iYMKiFDzlBSgbkQUv7EikLDtuzuHrHnP81BrzNPGXM/fCicCm2DJLAqQ\nXmyrQ1y5we5QToYRCVlT6KyiA2uZxHGcHEwyIElX7kiZ6VmgCVO5kIA+6rZD\nHGxh6uh2jxmizw22FZFO5Dc3kFxx/b6NhMg0Td0CaBYQ0Hs3gDaH3DxbVuVa\nu25k04foI1GKJzLVlD6VVT8zNgQrXd3mXy9tDtm5R/WH2stWpOeec6upkqCP\nI0Jdwo5G7sNDUaLqVXjLhudzkrurCRxFb5Hut2Rg3cgg/nm9lN5O9pc3AA02\nUSHzeikwS03VlCD5PHnqO02YTKTziOWeu/+4JU8If0M2JvXy5a3n1+nn2H20\nU1Nk\r\n=uNW7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDK9+1s4MqIkO+CbaIcQ0ww/Q+WpcqJ3ySAB4OfE5kXDAiEA6SqTR1K+xfyNdXXX1qfDi+A2aM/259DWdGAoRle7md0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590105515617_1590105524042_0.14179641014350342"},"_hasShrinkwrap":false},"1.0.0-next.1590113861271":{"name":"playwright","version":"1.0.0-next.1590113861271","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590113861271","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9VAkBrM0Fu+HvoeU42B8koKKJrdYK1fW4e31oR9xVudO8c3qaHoeXZTdS1YBVnmUPfTD/GG44fnJj7pV06wmPw==","shasum":"8aa4c7b17285fbae61fcf5a24bd240e06538be9d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590113861271.tgz","fileCount":82,"unpackedSize":1465103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexzZNCRA9TVsSAnZWagAAGkwP/2K0OZxYnC2m0IuMsTRA\njWYcn1HuX+f3LI6vwHpaq6DaM6SVvXgo3x29/7tQgiTklhUxy+55+lwL3Pxc\n4JoD+bPm4jKDilSHzPDPDQkAZPMuTJSiJ7tVIc7W0tsTMHzELQdbsU1vQs8R\nrHSi2QXGL+TUesZgmOfF5Ccz9ExQO7GyMYD8xCTR3FRhAI65yd1Pw2NK1l87\nEXdNFozLADmHX18Yfa42ctFasbfuKQgkwCCDfmfjlWcyzEZTLq8wTJ8OEosd\no7NNvxHYsypVROmMVPcHS5x5RUq3bhdP9wNj4Ygipbxq63mY7PiGiMuidyzR\nNtec8HFmiPTt79RDp5XG1pYJspfIImYYFVnJ1CllfbvkeOsuhCJrXBCj6PcK\nGUCR7JGwvUw8xZc5lRM8NrhNycY8JQrPSffltAjDLD5Ll8dnwnSRZScM6tKS\nWIFvFWJ3vEcj88KCu9yTQOB9mSbwVPYFHtrmQpB2PgYyTCAAv8HZLo9nyr6z\n3Xn4zZjtnu0H77k3qQg8C5NJJ2TQ3NLHSAtnQBNdHDukaIXzZRbpdXnF/2/I\n8yagROkNfuKLMtY4KQ83g/4+nDlSoEGlQlxav24WMlcKKCxxVSL4bp4sgdko\nIsuzIs8l9Pwp5+aPlnnLG45vZHRuhq3+xoeQOmJPfDIRuZVNa8fQCMM2krSu\nm/On\r\n=L81U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLfIfKCfq6OqdE9InMmYOhuI5xiwuA5gk7otN4/qystAIhAPme9oHZv0JMOeszKY1L0V8oIPE+Fc1rGamkqKdbJLgo"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590113861271_1590113868755_0.5378663643901389"},"_hasShrinkwrap":false},"1.0.0-next.1590156359574":{"name":"playwright","version":"1.0.0-next.1590156359574","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590156359574","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-IRndDYvj7oPgxh4Gr4ygPmHQxkO0VDf/l16585mPNzwz9Wyv2Np0tRi7owW7rPgn5acEkrVNoh/1YiVT2dsDVQ==","shasum":"ce179f530784c3b678ba81fc9174ded117d91e1d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590156359574.tgz","fileCount":82,"unpackedSize":1460569,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJex9xRCRA9TVsSAnZWagAAET0QAJZr8/dItLcrLYc3hfR+\nI3o3a6O6J2/xQ1G2vrbvT3smU8aA3v9s221j3Wj+rvJCvqEqihPaPsoA8HtU\nmrXDb46ML75LO2jodFbIlcBagaN2Rz28cmPJVR/OfYF2cOSeV/U1DURNPh5l\nOLEofcrVSOANF26j6khN2yOO74LkFeBkYNHGHUR1KE+xg6WRm5IhdtI4su2t\ny6oEu/42wjPry9aI3oS23nDRyt9hiYv/wmwj8nu4Y0umChyncZhnLJ2IgSxm\nObJqqiwvF06s9rB5yUGD+ADjSr3/fS9WYObJqDUA0i/YO+Iy77WOjuFcORyE\nfbSi0UMq2y8ViqFPA6C/R43sNP3qsmyMK9ham+vF1zdmWh5/2wlI+wdjhjLg\n1FzH1dLDPedVNfG/wTCleknxwC7uagJwruD6jITd1G5dNIqFIVzn7zCXvUgn\ntNz1p0ipsZLjt2dMhR7ylmhr/QWJIipPbSkWS/Dtd8GodnKaJeH6B1xloe1+\nKR3GZjKQaaSJV7pMZmOUk9sJoVvgJxerFaTOLHdUfZZJjZh4nBOp0PCqa5Lp\nnOaQ9Xy6s7C8pdRY62FDR75LFMAGoINntHfPcyXM3xPWRe1aa4W0HdYD84kk\nfBR9nEpKw93saz3U4SFdiEKaTdP0ZGPdXcuPE9eBR99S09UhfUjrP1Sp4FOm\n59Qv\r\n=JDSL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICALBJc1a3j8xyp61yu6vNVTzOeVE0FswwXDEF0QXMXoAiEA2wr93Gkxf8YHX6xxgicN45zsKn+ru0PQ1MPXjFcBjhA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590156359574_1590156368852_0.9063549216764568"},"_hasShrinkwrap":false},"1.0.0-next.1590171462919":{"name":"playwright","version":"1.0.0-next.1590171462919","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590171462919","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0hw615fD/ibFihZJdIMw/qCYr1kf1DQx9rVci8v7OE1v97j+agXacc1VzVrXeyz34Wi+jYBG9ARVWBZjgdE4Og==","shasum":"8db53bf645fcb6230a8a01e5e33ab24cd64f4d5c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590171462919.tgz","fileCount":82,"unpackedSize":1461224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeyBdQCRA9TVsSAnZWagAAaWEP/0P4FaaIjhIYhdfaKsb3\n2VMW2zynJjC3Mev38dexo92SZyynO+OQxBvgLeyh9MxQGB632JzjaaHiuKU8\n5aikbH9MHAdWyH5E32LAr6hJORgW4UO483lqWgjv3X5pjuD5uiEKE1vuLylR\nzKtq7jwADiNJrFsfPzRh4xFgk4CUkLXvOXUGetWymEVfEFi4XN7E5b0Hc49V\n0oeP8FUphIDn6uQPImjfQ33e6AHtqIAp5FNMHituCjfAWkbGH5sGWYsa+xyk\nHRG/vA7ErdDzOnW581ay7gxdPVZjU1iTo283+C+43WSDA6mkT11szieDwV1g\nXPGZUhxIJW55/LfCNhFbIGKSGWa3BiQh3ucE6M3l47zWM2BVlRDtqJGcxXmr\nkhNyzVa40i298eTalXhlx8bPOaYSTVZ72DFkhJCCnYksvFuWvN1+Ol/n30Id\nXLv/BcB9txo+NuZb0NqcwtXmSNdwP9Yqq43c9q9AfGmaAO0eD9UGKAYiXX1u\nmPjxqe6K+qo+0YGK4vbcFEjXH/Q6iBZ+fLVes8wKRmb3reOtF9AvEt7d7vVy\nVpf4HkBCoVHGz/7JhLyJ35Yrf0u9Pm4Jty/56loLynMORzqsepf1qb0M3mRN\nWF0Hz0dtcLlc2T9DXwCGXJXFoltOmt0tHASVwxkn4YLNpSVEj7Uu6DwAwLwV\n2/JB\r\n=2zqD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUzJ3p4I3XO/PMcayCSOWrLiV9tjbdVJclh9KfIYOGjAiEArGwb4aPkL8N1IA+tL4ohwVW7zHbwkJVMWcEcYyImgoA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590171462919_1590171472256_0.6812410529058488"},"_hasShrinkwrap":false},"1.0.0-next.1590188927093":{"name":"playwright","version":"1.0.0-next.1590188927093","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590188927093","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-F0+LcprKAp7FMs32wH04Qj6rjQofyyEbpgyya6SBhMFWT/CZVTmExengkPKAfwztRUqs5yal+PveXyewmRFQWw==","shasum":"faa3dc37b75fc37a22bef1a21ce3786afe67d58e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590188927093.tgz","fileCount":82,"unpackedSize":1463266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeyFuFCRA9TVsSAnZWagAA3QIP/29oB7cy+6lYmbwMR0Pu\nyHy78s/amAies6s4ndF7QejYy7olz27vXVVqdyVjuOGD+XMKYX1jGJrDFV6r\nwlBnN1DfCo7EJJ3sxwVriy4L7EzHbXulUhx2ULw8/8dHbmTnesrWo43Vdqqg\nHmV4ffsxk3eYfthXxgswZqRlHmznX3le12sFNxqEUewsbnk6uHEF76k3lEsE\n80YL3UU9Bn8Wsi3KioyIYTQ5khAFJhvMvBAaGldpNFr3KxyHYddG/vMJkkNA\nbYwc9bAiIejSKmp4wiPnI7fFXYfjoidVXgNvH0c70SijntAx3xVbogX/kAre\nO1DgdtSNdbC6X8NwU3bi3TEku4Bu66ivbcotc39IWpv2meL4Tl0+sT5cMLWb\nu2IDCzEw1unYXk8ngSUTqXi7EM/Q8vpnVhEFu9v+nP7+GZ1I52dxKoxq7sC+\nm3JIDO3tn+zCnLtRs5bwxDyB4BIyXmKKh9A7zWgpEUhKqb64mA9mADLIlgUm\nltTf5pBD0WFtcvJfgOfsFcDRkh3yZl3AdqXdMxaDoyxlyK1pDlE0QUBswdXb\ncnSaTbDzvRDrXLCdE4qypJbQuowFrtAwEJC/xS7UnCCrfafe47KYy4d5DEfr\nb+hCM5MdX4kbVuAlWhdBgWb6PN6PaGKByETvAXSoPI4ZpJfJBeNXfS/8+gyv\nf9ZO\r\n=XlFi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+IoB55Bg3RvN0z7WvevX5f85VCerz5O/IQq98ZPrPuAiEAuVpLCN7ITmnUAdu0MN8l+GGQxk7HgmtegWLw3vsoRig="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590188927093_1590188933252_0.40320774760354716"},"_hasShrinkwrap":false},"1.0.0-next.1590193346945":{"name":"playwright","version":"1.0.0-next.1590193346945","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590193346945","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Q7czqYBYPqHQGseQSbTflTPzcNQTmd465FAabBkZpZBt2nlEMxzVRbE+QncOm0pxbNQdvX36Ib1103CUL3/R7Q==","shasum":"765280fb4b4d7945f0420440f5ec930216cfa58a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590193346945.tgz","fileCount":82,"unpackedSize":1463266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeyGzOCRA9TVsSAnZWagAAVSUP/jocjp8fx915AkdHrqpc\njTECQqgJmS+ANK9mN8NPxLe8v+v7TOU0kPnlBUgJSDSjMvFeappyfhB5pZl/\njNqB+7w96/oyW89Hz/jZZj2l8DBXloj+LuqP0FMrbsPDSypf4BNLoMbY4IcW\ndtUUi8Li8Q2kbE3av5KJLJXPd2yectjheIWQ8FlvDHtYNFQE7BVCYf/ud25U\nClIv8jagDhZ2H9W6mxEoAgJ8mhcD/+Z6wb6PScQgr5ogKh6YtOUQg3MAB9/A\ngZxpdEWO4cabhaC1mGvPXOgVXgPpHJciTr9NmYG9pqc2BBaRnUev9pggQqDC\nDe3mPimaCUiCouy6rIdUNmaBKlIy/CcURog08pQUfFwcLdDLJEegaKeQwHkI\n0O23wkMvU2iPFRoYuxgzT/gituNxnqVMy7QYQRohiwpxbKMTv2C+iFlDWk1+\nmSaFdTBehOqd0L7L1OLeedR25XCWw15WwjpUO76PORH++vIY0crTCmZFOlDV\nMFvCvdY7cKeeXM6fMnEUlS1bzYn0cgP5PTmXK/z2PIKRlIk8BkBj0pHtmCmv\nT3CVm8gLEN3Xhl9oiW1TRS7ZUqsg71kxeL3YWZ11mhpvpvnpDk4I85OL+YaD\ny7k7t4vQ9WNlNZoqzPhhJ7s83w2tDGWNYNYd2g5ByRrGbRA49gScOFHpCiKr\n8gcd\r\n=6kcy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVtv87q0jIG2zTTJdP2pz0pZj4zew6ovyElGHy8qFqtAiEA+JhwnbOpo12ImL+7qpFcevS1PnA8eVbnO4enaFcnnCE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590193346945_1590193358159_0.924222110171443"},"_hasShrinkwrap":false},"1.0.0-next.1590217523735":{"name":"playwright","version":"1.0.0-next.1590217523735","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590217523735","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PBTgRppLbfKU4AAOZwStjYUs20HoOWI+fFO3ovWzgSSa/4Kad7J3fogLmYqrCY5w7HNFSva5rs+hkO3qts92fA==","shasum":"f0b16b149274c2ea55e3772e63b70d055ed0b5c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590217523735.tgz","fileCount":82,"unpackedSize":1463266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeyMs7CRA9TVsSAnZWagAAVzkQAJfk/4xAz6NPxtIFo2UQ\nBNXC1y1/oY8drvaaiZ30+ePJfVKvu34Z5SN6RIImEDSIkuNjPb5Fun75v3Pw\nGuC3IsI+uGSu6yXnEsEM/i2qGoE0uEswF0lfNJCKr0QNYaj2GGRANXa7tXkb\nt1PHZAr3I/0l457TlmT2cWIgFeo+vx7vD5D+b9W3ze2NT15kMDtoM2ebtqhx\nXCQjksuMfR5k5eFu8e5D5iY8zk2ZZgHXO7HzfRAfCwD1sjSSZ72hAg0sqmmZ\nXUNqDDv7/o5PRUD12EjUd5x1dL4xMcubsn+HKwsXrVCiDomEeFrzzkItqtxw\njiCwU9T7g93EDNIwUkTQRPYDMxIRSGKl0jaVMbQC8TQXZxG3WkXrdn7BO+l+\nG/P8Jz0surGd6YQxkRpyITvNzbaBA0Ams44nkbRI2K3gKYRZtqcHqm9dXKPD\ndONSRVa5HQ22zzFl6TdQfQHGkjeDTRTFTc04RpKyLaV51VXVjZ3u2aG2dKlL\nLoVkq0fAyMk18FpCCk/Dp2pSckBWaM/wfNoTb3VfYgyik2xuWsDh3dzSaa6k\nOabKvHZKbwQ26RwWfFtdDPVeRmtoLkXlLffRcjgZLu4l++miP49UgcX+kSHv\npIrmy4JmQAX0JH7cw46dkthVrLycY4o0dzomPAVGg9bAAVG8mO3bCCEenmBL\nPreU\r\n=aeEs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAEUs7EZjxAcCoegul0VXH7HgMEzKAf3X6PAlwutA84qAiEAqBE7qQHi1yKQia5T4RGJhwFjDKN7ttbLeMA9b68EEVI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590217523735_1590217530837_0.11611475786133418"},"_hasShrinkwrap":false},"1.0.0-next.1590513872265":{"name":"playwright","version":"1.0.0-next.1590513872265","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590513872265","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lTlUjENRAUeJXLxTqIeL1zXoMzVfSphjsNm2JPP++/ilN0BSv3NsOd5nFd4VDCt+s5m1c94Uua5Wj97V1rwH8Q==","shasum":"4d6d0b8791e199c3a8b4196501343973413190f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590513872265.tgz","fileCount":82,"unpackedSize":1463266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezVDYCRA9TVsSAnZWagAAovIP/RgrUTS1rRx1XHDvNCIG\nSUU2ygg8RgFVifOaGWJHPSH0UR670JELtoLEZ1zPvYYktkT3Sk2URJgBZz/+\nw/Qs4tkEXpDEC3VQPjWTiJPucDciTLNE8fx1J3vGetCHpEsQiN09rdkGQ78y\nHzo84OaKDZbWB/7uYDEKeZ78e97k/+gwPCGkJ9P383ikZiB2GR1gQFmZMmNg\nwJgHSXWsEyX9XJRfI+Qc6CmOTtkrIYq6KZsWF0DTq+09yCccepTzqBeUwaXI\nr4yvGTFt01ErA86AiPOGr9NM9EXn3UeiGcyRBYC5UtR6aUPU6c/gOXYeCIyQ\n030gXPZ5voDlQSUsPLcWykp7FVaMMpwvBHa5HlVBAh4kjgXwWcKSOAVAfUTS\nSkbAiGD3JbEdGZJ7eTKj/8rp7LT7ouD1GZw9PRIpKPF4X9P1jW0RGAdcy4av\nkmTh5lxnoBjH2W+LvPxozFGgJNGt9rTWJaWqrBaE5EKxz/t3wSWjSIWWo6sr\nXTqPNnOo1eUb9WWoG9joBcqzDyXu5/uQ3YsbKR28/1rHFb9E6vcebksN9Mby\nlV2QZW4OYOnaqDKgViZoNIclatUIQplWwKj8iWZt2iA6oGKQKjedwd2b4mbz\ni0fkllUIfhsRQRZgQHBo051TJGImrh/+LfSm9SeRpPWB40RW1HSPvmJh6LSj\nmo/a\r\n=KgeK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBlc1xdxEQRnENvnqh02gLiw4lpGk44KsoWwADPDeH2gIgYztfQI/McJ/2BPkmaqADJA125PTZWHn6dlonLqR77cM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590513872265_1590513879554_0.21108707175954544"},"_hasShrinkwrap":false},"1.0.0-next.1590514056724":{"name":"playwright","version":"1.0.0-next.1590514056724","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590514056724","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-sZdFss0RZzPOPra5uhJwtFhx/bZM+rnVWxSz63tj4ceEIn3VI0pnofIHzAIdctNgCU+TDHLvwBb1v6FFTW+viQ==","shasum":"bb4faf25ce3623d41a5346856ecd092803c620b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590514056724.tgz","fileCount":82,"unpackedSize":1463269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezVGRCRA9TVsSAnZWagAACGsP/iSrE+jckcwM6wrCqQu7\nPSZ7XNPpZgLvElXuMI1+Bz/kF4/oeXhAe8psRFRixVyExNvbeou/xKXTRBwq\nqv5RmhbzvRkkDUQGQKX36XrqLyKkAtqG3PY0K65WbplBxWaixelQR7K8q9ck\nRkUMZaQE6FiRARRuytqPFZZTzFNGNQkIAkG8eWYtVHPBUCbuGPoTa1DnlyFE\nFruMrvPX99iA5oK3gXU+FyhYiLr8fUtBJj6gH4SJONPy8x/YkPu7RVWi/F9l\n988fQJoqCc4oEM9IqWf6QzhGFyKtJPAmPexUswx3Yl1qRCn0sFttIYKELkXP\nq57/hb6I+7oac5fG04icbwe0sSmzb4d5BaC+2emWTftFFALDq4enfCgkQrOY\nOxASv4luRm6Wrv+Kh0Lkcto6dWgMotqxXui/3bf+20CsWvIJOTP3o9ZPVmaP\nxCFfLHuL+IPY4SoebqDILAVI/B9TTVZWcS9G5B7aXTAcRAb8wFAog+DXo2o+\nQA3kvG4jfQbpBBq0JeQAHfXtiRXgRziOpftKjudQNYzq5TBwktAWV5CcqhYp\nZl9aBB8RnkEj+NbMI4bdc5/CQ0G/ukHCvY1e+a6E1aohZa5viQ3X7KkH9Aor\njE/2aiyPAxMG2pM3mAzOtq1YB3BLQsSUgPg3gnQ1vwFFcVfNsPp06iXMcveG\n2W69\r\n=Um60\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLTzQ1NMH8RVj8jOwPW1+YZEoO9wRMZyxzO2dSfl7lsQIgMV0c7A5VyZ+C64H1Wwvw4tNbqwdElJkSavyrdQqBAQc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590514056724_1590514064707_0.6718755575433522"},"_hasShrinkwrap":false},"1.0.0-next.1590527411064":{"name":"playwright","version":"1.0.0-next.1590527411064","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590527411064","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CAFvs/c3Fl3McIZ3EY+Um5GczenxDWk9JW/Ex6Jg/eshuPGAZa1fH4onqhQVbbyO9ozspPtl5IUj0SmW0es8fQ==","shasum":"93444f02f7102a4a3cd80bec6572ab8648641c31","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590527411064.tgz","fileCount":84,"unpackedSize":1465787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezYW7CRA9TVsSAnZWagAAxNYP/RnrUy/ZHr0M4TQ4POJO\nU56cUc0/I8RJxclI8qB4QBaX8FbGF1RlZaYb1tZvkv2Njb5mu6AqhNQACv35\n8heEgA3c5JHhLZmt02V1gkw7MO4OFJmwVxZxN1WrYK3w2VGxGI/hcOq8z3qp\n1838NfsxJtxb7u+OsUPSTGI82nNIhAAMra8pbd/qo1DLKj3yhVfUX40ns2Rq\noqbZ3yVHByrulQbWr5Wjc86ARGVWVBneYkiD1QmhG9jmkO8cexUu4wK42zev\nZB8xGJcOUarUIGsBDA9GDBMZdbj7/TeqpIcC3dFveAlkyc4zVYpyFApYte1w\nm6PlEOGv2iTitEkJCzQaIqn90BRm0Yc575+L6eqEikpKIS+M4O/42xWtk+12\n9RxhvUFC+4q2izFvs7EL+sEA9um6kO2+tEpGzngxfOYoRLTXt5tIzCGYmNKX\ndgP8OUyevlgBDXShPvm7zyH9lf6lGv9K9F+GZTq0Ay9idcSQf8rNF34i+10Y\nR2+IU21JhdtdgbMDUbZpIijnNKjQlLiOF1KCByjKfcppB+8dE/XCVuDj7pum\nP7s39vzOJ9C3AhZ7xwLAJk+yXtk6cp5L8avEES3/xjxaPFxzWwJLmhCRKQWb\nwm2cS1sOSTeKb5A1OEpGeuwMrXQM36X36jFyAjpHoE0/wfUGWjsvxelntWA6\nr8gX\r\n=5+8b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF7cx7dzgcbSe4Kezva57pNGIBABtGIhxIqrcyBqsHpHAiEAxE1Zj6mTln8Sj+N8iJSlDZ9lqWTvFEIQjTa1F5KyH3g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590527411064_1590527418348_0.8242240720032219"},"_hasShrinkwrap":false},"1.0.0-next.1590529807362":{"name":"playwright","version":"1.0.0-next.1590529807362","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590529807362","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WQpktZHpFfn/sYfssvNq6CqSUI0xsLqK54q3USaJvbCwRovzSq40Jix8PVii3iw9XfXiYYelk9ZVo1FcPpSTig==","shasum":"fcc9b0b0b1c013e9ebd5790f7f469b9ef7f8c182","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590529807362.tgz","fileCount":84,"unpackedSize":1465787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezY8XCRA9TVsSAnZWagAANDYP/jt1Imr1jnT8IyAADv5/\nZ2FiThZhgMGTptoJr07vT5GZzkev8rRWr66nLeIQXagyzYud07oBpBOUfevt\nugL4djMfLKx9oiCm3LswffWZaaEa57csReWEXZQ0aQF5v4kj9BiqDOfAO9oV\n7yLVfJwW/7QkjfKr3/Te03gTIRnlw5G6DQwRnMvKEw0cHlqolcAefn3jhOne\naVj5NemoZ6AdaC6wKazTpLcyf3nGaXHV+ofw3JPaRAljmdO8SP7huCOOFCI7\nR45+wxEdABrz5vhmH6ILc8qqfg1WCMo5f6l/kHjVoILfMpLKLRcjPOSCLqFk\nOtX6ucAWyJZh6+gKc/FM+M+1yeyU8/nU2AAubHecQPYZ1aMnBBfrifzoDM3L\nlkbOL310h6sJzp2P3howDB7BrgAwsQSLHOi7PGG51ES0HXBmEFUYCvi3zeOY\nAZ/O+H32XbF8FoC0oZrlro/iXferUIN/tf7BChkYQgNe/VchnsmOnjC1v7Bs\nMruOWZWukYUUdxTawt8+xkdr2tvPGUhW19AWgPEdrwBgyUm4nIN8gh4DyBXW\ngSwBW1fmL+kXWr+0Ob5GeDhgflUMc6QEBcLFH/XzNsuXDafZJW6sKYCekc4f\n+bbw5efmkOb7rK01wG7931udaeHY0I5P6Uc1b+9PYXWlSAzoeCxqS0g+cq1J\n8f0F\r\n=5DXU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHG0AbtH+HFDKMzVbFO3GmfMMRkRHoQU8HPaFG/k41s0AiEAy+oAu7FNaTPMrVQ6pvOpD/hE0tTAarTCXytFvwNFQcU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590529807362_1590529815239_0.6404164838235349"},"_hasShrinkwrap":false},"1.0.0-next.1590538859422":{"name":"playwright","version":"1.0.0-next.1590538859422","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590538859422","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TilVZ9sBWRFH/EjAnRM27XV5M6CFeVa0RIJ9pJ01wVvLI9t2fe9sITDl4mQVqKB1LTSwrcLl9mYR5GafGEErMQ==","shasum":"21ce1988e84dd4961a444860b460d44e8a657e71","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590538859422.tgz","fileCount":84,"unpackedSize":1465759,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezbJzCRA9TVsSAnZWagAA/iYQAI0enBbltO0/8gkq0yci\ngTO3M1nWouqvOLgJdd8Bdv8HUoxdgG10QCK+NpBtivpzVF9T4B6Pe/JqOMe1\nw26QuWOaIX/zM2onNL0XuzxGSr4ZYimlxeehutujlvwXrd8GXazqenNFJHQS\nmEDLmx97pl748Y4J714cMueGQ3Jdw89MmwrglzzvIJfIL8TJZSRVb8QZEWhF\nAZqnlafZwtnRYB0hlFvYK4VVie2N6UZnnDIp5JuiFaBOycROWX1ovND3Gkyt\nOVu/l4gpEts686T1RM3VyRbRyUy1HxYEHNaSETTp4/4jdnDkp/2FrXNjkXcF\naX/oa0vhkF6E2O4s2IYFH4ylq6rmuW2eop3h9cJdA+r49GArcA1FlMNmRaMx\njVCxiQYMsGdlqN5bOnJge3NIdvczN81DNBjp92dAmJ3TxQy12zMP2l49OfXg\nAYY4W4wD6cokJdEOZdlojy+fVMhn0xONStlnbeHDJsmeVSjGLqk7b8rgdB0y\npVFqMsGs4CAMceqdI36Y377o0bsWRYnE/qeJ0HPfJmx701nl7p3fgmTGigOT\nohmJ5MXyAyjg3I2qLTWgEtqQD2W3gPR5x8uaJ0Qp92qhctgE8WFUaWWeASE6\njMo/rop3lH2TNyBg86vIeL/lIuqC2EtSNRfYI+fZC8HAiEzPNiifl34eZx6P\nfsm3\r\n=GHp8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg99aB/6QXXiR42QwOH4QgBh5P7f5v/VqASUpLpiRauQIgK9ORybiZ4oMn0MyX6OeqIMptl0j7czv+9zNf/eyS368="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590538859422_1590538866994_0.051105297306597075"},"_hasShrinkwrap":false},"1.0.0-next.1590611377215":{"name":"playwright","version":"1.0.0-next.1590611377215","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590611377215","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4u9kLgM7Ix1zFynjLsveHbGMsliNLAYNBAGqLcj6dGyRQYjdKu3VGg/ioukBQe7+ibf4QGxlt/dxLYEfBvrtJw==","shasum":"3ceaeb26eb58fb8b949d177ffbcf2c0c46631d8b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590611377215.tgz","fileCount":84,"unpackedSize":1465696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezs28CRA9TVsSAnZWagAA3z8P/3fWGmAqTprJ0Ft1K91Q\nAHcsr5BPehCmaFzInjJ2JmYYpw+0yynCCtkyrjA0lDk4HaASC8eb9vU3+v9G\nX5zZgB1xXjy51Upe1JbXbfaQJAjtqtR9zhvX9Ippn7YsSf1scsdeYOCJFAUe\n3sog4/IA63u1xqktGkrZwoPzaQdoJTr0vD1LLAQYBWOcDdbNqlGg43fktM8E\nXiUYYugb71mtlDqogHhV3ZXX78QJwJBO+a26el09Vk/l8PGX9whRJu5nkxI6\noipI/VrTtH43rECT4uW1u6TJiO3DwSJ9EliasRzZCbnAjYKhrVu+5pSGU8zp\nOBHSD8XviityKRXRhysv/un36XN9p4KGsQWX3p22vIpvAwVNV98qfmObJk7q\nMNXVKqpZVaSg+um8iqIin+m62shI44CUSUCCfjLfVTIuZevIewckeWLxafYk\nUkevs9MkanK1wbu6/8llJpYe7+McWheCwsM30AQuKFae9mjHKY+aJjaCIdaz\nppTFYsMVn0WovDGZxDIVpzIVjckHUHFzNxwW4bkZHs4KesZ8dBNH5TTodhT4\nXDX4WWq3BTYCSvPs6VbMzaBwAdzRaNDveOHNKcXip4HmvGFxfsRPM/aVEZ8L\nBePznzl8AFa2SwaxN5USfILajAocluNK8xmmATyRv6yzrpphV4n5Hm9q+OdH\nv9wD\r\n=duRs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAI56R67yb7RFMYgmEsHGOuuQjgjlWhlXl9qHSIvTVf9AiEAvZ7jg7ewG1D+NSqYvI+mdmWorhjIwZNxNWdSuvi06Cw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590611377215_1590611388335_0.2584137615376634"},"_hasShrinkwrap":false},"1.0.0-next.1590614898028":{"name":"playwright","version":"1.0.0-next.1590614898028","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590614898028","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CgwYtOwSIcwWYr+bPyjxzQtITPAdzgWt52ctChWLeFF0soVKl8HRLEK1UNE2XbxC5vfnwABnO+p1ZclAKWNw6g==","shasum":"fad1001e4055d0cec1cb8c13909e0fb149ab1e36","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590614898028.tgz","fileCount":85,"unpackedSize":1467748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeztt7CRA9TVsSAnZWagAAS8QP/RtQhpB9XPhTR0LWxjYQ\nvbZV8QNKTnU0SasYPFXtSs9oYO83fEZdskfmkt0Rz6ulHZhq3byRAin1sIpU\nCxixcJvw3LhbBi8FQVWPrE5gTqfXD+R9trp7E2Q+LkMkh+vmsDDr3l/1BCCb\nWOvBRjVc6izvtHe38aK+HJfMSAvy7722T4kBs4X2I4L1DqA9ahflpwvDquy3\nXnuS95RhB1Asryjhn6NW16m/APVBgmhc0K/JmXMXHdTjI5vL+vtxTTI5cEsU\nOIxP5Pue+0iVxjxVNoPMRQPURoBG5vbrPAoySIz6U3EiDKNsM0kT4pBb7ghd\nPx/GZVeQwqAczv7Yn42h0rUdlTmraTFAxzVKW6xhqUMQktXd9oisKrs6zL3I\nLz0vD44jesTWf0aquA95P8FU0vwEGxdJ3LOKKnmfcTLO9mmWuu7G2113ItTH\n/hBs9Ch3Pf+Xuv+JZ7AyRzGKID6ddqXNvVDJlS+vDCTi4CUPxRUGqz6Bi7Ll\n+YOiapFtQySe61mVM6+BKYvSDX1NfbjxqLNv6+3htaTUmhUaWwiasQTyw0VX\nBBf3DyCNO1qdpXFnmeQyiNwwANzDAVAvrc0LyAXHMAsiW4jWRJeMHD9AWVwq\nBL8DICGlNPEZETJzyd/nhcFkRfMBIA5l+03LQPKmAjt+K8/nyE3E/D5QIZmI\nllP7\r\n=xe1C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHGDPRK/GIXUwb/52O2sLYK0lz+vf2fH66SK+2sXFb6AIgYozO1/58ze405bZFedfQV3qiod6zRl/xYD1vFCUFSvE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590614898028_1590614906615_0.8291639952969423"},"_hasShrinkwrap":false},"1.0.0-next.1590625266561":{"name":"playwright","version":"1.0.0-next.1590625266561","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590625266561","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+G50bKVZZupT5HNLQU5v4U8t/gOCaTVpUOsNFktIg0NKjSOJkem0pRPMTrAedzStBCsa2IAjP7KsOTj0rPzvCQ==","shasum":"2f23716caf355a52e62956564007891ad8012b66","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590625266561.tgz","fileCount":85,"unpackedSize":1467615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezwP7CRA9TVsSAnZWagAASh8QAI/o4BRE69ncNMZ3Orv6\nzNaxBfuDDbF72gLDQqqCU/2XnnXl3PGM0DKF95cU12CGPtkOFYlLHyBfTcTE\nTzyy0Ucf5YfCK78aeZa/X2lOpWYVuKXd3Y2BW7TR4hc8gURwq8d5h/QRendw\nojMAOo5tvAYgcvc6k1WboKLakafXp3/RbRkFSNllysmd7O4AgvbxzEWDMwmm\nHAbiTEuDp/catUi+wIGy90oL/Mftxhawq7DWOZ56oKzjPetQC65/zD08skXK\npwKFH0GrnnOGg5+Scgn874OvWAn9PH8lwhLLAzyvTIZ3qOhXm4nnH/NK+jbm\n76rspTa7LEQ9CKDuKv5qCF17tszWt116gPTM+xe79zeAHCIOaV0zdcsAtF8n\nN7lhGaeFRnShYQy9CmjbWpyMlCtLiFkXEFMjRN9vLdxc8nwIhHsu9FD1bz9p\nYO2lNngWhGZwyM8f5PkfS8T2DDa5wmJMlYTS0wQtVYFHllUMraNNer8gs+VV\nKZlaVe26ANi6JjB1/H6yJqGjKnw8qDG277roJagEbgOSLTCUqffpIXLQmqgx\nFdXHeysct0u1as5PjwTHcZfCzH8G/4AXat0iCJk4fZkAtV36lNjQxENXdaVN\nR+32PUoao42o3/iCXiJxwVq1TxztNZWya69o0qwMALiVCe2kikEQDTqQnZpA\nXMwN\r\n=4T2b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLP3Ytil01EYcBdSJ0y9ZOA9Hy/E58epI9EH+4bmOkkQIgYaaYhnCHkh3bnKNFmKxiVK5MHKv7qs/+ts6pMcWWV9k="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590625266561_1590625275271_0.7290714980954289"},"_hasShrinkwrap":false},"1.0.0-next.1590630328805":{"name":"playwright","version":"1.0.0-next.1590630328805","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590630328805","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OfR3ADsl7VUiZqGGFSHx3QNtOPWZKxxsFbgU/P6FIfKYoaJPEwfspWAMPtJTv97QBHUCX5JdIoL15NqraAniIA==","shasum":"3033b8a54db9f1ebda2e9d9b5f0c0e8b8eb1ee01","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590630328805.tgz","fileCount":85,"unpackedSize":1468458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezxfACRA9TVsSAnZWagAAGGgP/1KNrLeQw/4Pjh7pCO3L\nAPJjAPmDN5hDE2EE0AStdElWu+PaptoUNrVYvxW/b9urymJpN3E9N1x2DlAQ\nxshW7719L3cABeR1WbFTFi4v1bbkYrOWAXyh4gyIKJwvb/OfJrD5T/OLesfl\njZYZOQHlBE5wqR+uehbosBG/TkJnOLh9+xIQwBoDrEUB0Lx3EH1SSkHcn20U\njc/yM9Hj/pT/ZkRZtCqg+3rN9zVHlnHr3jIqVxgWDVozxM0KwcFLXZxxwjpf\n3rwbGn5kJoX/1/c5hWQxa2UK6q3PE//Zb9dlKn85WuLo3+3/d3qFKNBjXJXE\nmOrjCF7vzftQ4GWpyS++iJn4zpS+ISaN+7BoE8hEFYCHi8/3RFjabQin/4qD\n3oRTo5z0tPi0QzQJJE6BVfSDzsVnx9eIlVyWN/JVaFzEYXUBONtqPo1dFX+o\numQjVLNpUKIQVrL4m7ZdewTYVckDgIFAGrrXnK2ccBlWRH6IBRR1W7bzBhsQ\nA7uZBtfCCg0ySJEL8i3cpKqLpu8ys6RfwSAq3qNTz4vkh+ms/icvfj+vQ3hQ\nh01duPuy4FT4eosd030oQhN6aBend0Es9QvECiQpauI0jrLS6/E2T3phyGyH\nyklP8qvQwoRrNX7ilk3jak/PtzuN+++d90cdGt5ckbKQJ3ooOQgKfpdFO9qG\nkSi9\r\n=m9QE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGzPM7/bf1v+GYP/5qnfrUAVJ5sLwisRPTDJME4acRTmAiBCTjvRAm3j6+bu6pp+A+ISatz0/s1TBUvA5AHd822qTw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590630328805_1590630336065_0.06427858368023465"},"_hasShrinkwrap":false},"1.0.0-next.1590635001206":{"name":"playwright","version":"1.0.0-next.1590635001206","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590635001206","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HvhnFSNzPaoj4E2Pn/+P5XB4kcxWpZ9Y7yW8waUyGH+gri9T4Ruo/9qoK48747VD98NLEvAJI6EYgVT9kWl6hQ==","shasum":"1bf2e96736db227bc7fd884301467c29419b79f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590635001206.tgz","fileCount":85,"unpackedSize":1468687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezyoDCRA9TVsSAnZWagAANjsQAJZnQ2h9zkttiP7aW6sj\nVyQJgqCuRlndyKGjiB1C+yIgw0l631pv8gq1dPab64CwKfLjY8c310gzixTv\nQvorInHbPTHViYJihAzfiubLH0AsPvi6wpa0ieWhB8jn+bagvTFfGmbVsybb\nOfbULx4Ihq574SRNK2i1cWAIPm1RMCYXhwIeA7fa8hyXn/OiXIuPriL5On/f\nzTxtXBA9GsE4vaI5VAZQRb7GORwuIC28gkcEVxticxzvoorOb9+6MCqnlBSM\nxXOfrpUXPT28XCi1OfDckqXozps6XJ7sPBDBXZngUFx4FLL1Iin1gCMKtFKp\nM8CuVzEbRA2ZqQ7S79R3zR8Xyw/w3BwfJqZ1+cOElTi9ATE1s82Rk2ko3w6S\nVDlO6spikaMfilTVoHkc26DwosnxrUpNZqsNDbDdyUY7n2GkOSSPTWdCTAKY\nacaWKJv66xyrw60i9LhqKEonIvIJ9dW6E1dadHd222ZWLSHrso1QUNkOaA45\nw2D0tgx8g+i/dhCHJTY93V4km64/8dmAKScEdHECieDP3+8sQcRzoe7CSoy/\nHzbQgAsGPCSKmXWuger9O9DklGNiEsarBrFvZWpIzC/RYVm0wkltFAJ2ZyhW\nFxc8mHo2wixqUkw+ahBY8h9qQuudCS8tHM8WMreBSONaUyc4QNg7zGq1+Mga\n4RqI\r\n=4t+p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFiYcW0wGGB1bx8eV3fK0lCdTvBx7fjE1JgmNH4jVJ1vAiEA8nbUI/CIVhx6i4EZTcCrsViWTxH8YE+OKg2CzkGyFfI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590635001206_1590635011341_0.750646326289166"},"_hasShrinkwrap":false},"1.0.0-next.1590642310742":{"name":"playwright","version":"1.0.0-next.1590642310742","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590642310742","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bkPwsFdujFsQxoLaLniL/FFUUGm6uKim9hkK2zbLGWHSw0FTmYagbq/85cHRw/fqB+7a7PR6Is7NSZmaj6sh3g==","shasum":"b8650d087ed52187827ea0f0880484cad963eda2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590642310742.tgz","fileCount":85,"unpackedSize":1468687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez0aRCRA9TVsSAnZWagAAZHwP/AtSUbSa37MQzIhNWe5p\nexYnLu1Kz2ZtuEGBiBEwZrbchb4iihFSDJk9lNvW6jk9k5JVIRF1JCKi0fuY\nH5BELmlkupBfmRE3aPI811IrSzlyvfmajjABxRO6N13MPLu8OMbgMp+xHxif\nbyycyBZHOGPJY1Waok0/2Q1iuJ9x0F3meTq69WejrkDQoJZ8Bqq0KQw855ES\nXdAFSMf5AEXjgY2k5m/i7d4Qtp65iKDU6l7jLJI1XtoVm14GTaFDsNOnqnNK\nxzXjsrIO2kL46RAtJ1t5GyXfTyzqE0ZZWUp0iIjfd06C5hdW4C+/GaMSEMQh\nxwo8lHftaKQcInqDaVvKI3KfKtAc2Lzj6Aq2da1/fARi0UHr4BqDgAz5RKgo\nFX3kNUFbJuOvK02GUpUEBES/dDBfUP6akQ70DxQ0uEP1eYNwvdX2U+jdSrT6\nmpnjvdgKX+GQ5GfS8LIFJDAK04hQtV6M+oQzeD320YOzTmpPCD6PYyMT4in8\nZBBG8p9CahsWsi0zeH/NT8VJ4B8TjRn23WUXbqQN9l+FttPfls9E34WE9UPI\nE+hS43teXfYsEe2f9kA91qXyp4V5zDoOqKHKGG8n7zTQMCrDrG9KQubvdMu9\ndIGBIcjzmRmLhFufRXGbXSY63zsSiyI/FfPCuyr4FHBilvb7miOnhJ7mgTBC\nbldy\r\n=VRJv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+RBaWMFeyBa9m7IlVRaY8g7CZuBWsJt0aL3ZZbudUhAIhAJTVNr3+KeJzVfnQEgyIvjCn9m8yicPsf6UeyQKQCudA"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590642310742_1590642320234_0.6548506348156355"},"_hasShrinkwrap":false},"1.0.0-next.1590643285176":{"name":"playwright","version":"1.0.0-next.1590643285176","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590643285176","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8B++QzJ8fofbJdak4h1Q1/XaiNLDXHkS08z2kHw884SkUisr8WpVVXZbgaHpHl3kgyA1xzJWnFeiy4QLNenOYg==","shasum":"b4cc3906162b9222de4f071c296464ee0df88fc2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590643285176.tgz","fileCount":85,"unpackedSize":1474282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez0pdCRA9TVsSAnZWagAAkdcP/Rzaing4Fd6i3D3OjFfe\nKyYHPchso4yZYLhFWNGzdNweJ2Ao57IchrNGoyLkQ/wLw+f9gkO48zeOOkPD\nGWIoE/icL94og/eb2LQ5k25FG1B4OBpbkZnpFziJ+lt1iJ0kYSOmfJmeDAMx\nm2EVI/jf+vOQBBj+c32RhGvFXtBY7P0NGcVLRw+0vCW6+cdFBBCousRcafUx\nPsLh0jV94p78aUQQOcA4jIIZ2W9eWLZDJ5W86VDCzhnmqWb+b98ex8DtiEWb\nnhztCkH02i/G3N600vXz/6a0SwAqmUCdKNNFnJ2+E/QYLkEYXskCK1v/puVe\n0J0inpOQ89SlhJrnRfuAf/EoOV1Q0h9LYK/pR3EqZDoTTrv6zJLTN2R2pYTw\nXK8c9N6RQVia3XRK1H2QkkflTWLY7mVEZU1cWi1bXmv1AU5kfdOYbFhOojKc\nS55q/J69XoCN4KoGGnnkE7KwQf7W4+z0p/6rlj9rXRsNMcxYeMz2IH8crpID\njs8w5Ye5COZxe+35napmrtj28LeT/zwnGla1eITVRfvST2JUQm3x5jHR/yTp\ndMCy/Bra9VVwdkxU19vO0RbKWUD3tD4045BrGU+n4cSxhSwOEfx7Tt1iZybj\nL/Pa/UooVaHyTuAhi1X2m/Fw5r2G5/qozmLX5q1Rnh/bftoq5Cu/wCfcCxH3\nT4ZY\r\n=L1Ah\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2sTQif5WLi6G6UN8cV1jpfXhBydmhu1m/BBQbyP4NKgIhANB3fMBOnZeTtOZxFRVAyQdROlguiD2pFdh/GCP7T74D"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590643285176_1590643293386_0.619898703439647"},"_hasShrinkwrap":false},"1.0.0-next.1590645245502":{"name":"playwright","version":"1.0.0-next.1590645245502","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590645245502","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Er/33csYVvpacDvJOC79iebskKiri2p0XLoLMHmc4q3XEUFtB79hl3VeEUTAZQpN4+fVk5QLuUs1+Gv+fG6Y0g==","shasum":"12d44199285019068ff01a8e8cf3381881c2327c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590645245502.tgz","fileCount":85,"unpackedSize":1474282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez1IFCRA9TVsSAnZWagAAJ6kP/RvcdFWPWDhfNHrZhC2H\nVCZHcXgmV3L249Od9rU5thKnZsJ/vyPRW8Vms0Q4hvHMVkiD4To7P4olpppI\niB+L0nHq5+/AsepaO8Wd5RVIA87lJG8ljrMSOcOPbaOw2GzoEtSi1ZlWIarA\nUvZO+eMplElrKc+hhZjLYyINuM4rNuKRaZsq1QaSsBoJ9irOI2t3E8bCwPMC\nrK/+czYxwm+snpQXn12FMw4J2Vi5hrv/GRkJ/fBsINLXLzWkyPREy2dqG7if\nNPK0L+OOGSFyWKSCsWEPhoLy596G7PJh0Q1EFis/6sMQ1tKVWwy1TeZ992az\nR7bxdD2s8mgxAZdA3L1KXNYWH9kLWC7/gSTOghMh5fOcgMxXFlhtZZ4ktYAJ\ndKqQycrhXh6CUHZhXGyhb6sUqYMPIvDICVyebR4G6mL2j2lz/OyuxvFsCxey\nvpymB3+VZQPPdbFCF8N39SQNQuChK0OtjmT61nI/4elIT5TLBIcJJSAsE7BK\nJ/Xjcp0ysnrl2BU42kuyOzRlpsPrQj9A+gyrhYnsvEz0wLFMG3xVZakZoCtR\nmzjqYteGBbl8uIZJdNyQ37gkV9GEXA0UDVCfmNjhgv0GjKmln/BDhxe2XfV4\nh79JS1V6Ghx4S9TWUS6ewkEfzuppGO6W4mwbmBcgh03TL+1wFTvjH6bHwKSZ\nQA27\r\n=BIIa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGiL1TmEzNybY63Xo7j2Z4lpBNUFjKztSA6ZUoW8J715AiAQ3nfUs0WIpvESeJIi4hKGGAVtGiD6DqY13hEJ35e4Eg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590645245502_1590645252872_0.38607030470270787"},"_hasShrinkwrap":false},"1.0.0-next.1590683088918":{"name":"playwright","version":"1.0.0-next.1590683088918","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590683088918","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-//5qGIHhY4nlBsLKgXd52xEBupAk9oflBAxKSPeX0yyasCbaP9ZpPHzmoahItDjN0LEXh0NFlkAkyz9kvzhWPg==","shasum":"3d5bf0287137de2049f3655519d9a17f76d5131f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590683088918.tgz","fileCount":85,"unpackedSize":1474282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez+XaCRA9TVsSAnZWagAAYBMP/j/0DncA0g9FXKb3E2jV\nf59DnhdbqCAnS1qtT8Z0E2JsEFAWJm/Hg+Vh/EqRMJyWMn+VFqNmk41sfmbg\nWTRVEWjTlw4rsCb8GBkWhRMympjRkORiZ83+vvyO04NtBK0HXfa8q1A8IlF9\nZFGeb9U9IuVBMFLJlTiQUyavaowibPNZhF4SSFBqG7VW2asnTI1TAA+UkEWB\n+jYTGXCQElgoGKshW6SJoK9gtkC4qT2Ca2upAvZY8wrYKlfXpda1iUpBXQxo\nA7S1FhP+zB2j+/p7kD7sijejN0uKnMgFncw06G+60GQcHpN9yJeCw79ZW2Rl\nbwlpWVCYXKa4GXWzzhmvtdF0jgEu2PXpErtY9j6Sf9KpibQ2hASMaqsmJGnQ\naH02RvSWpj9y8n4LRHAGYhAFQereqvUn+tB0x8ArsLSKQbkpfrW2nyXX6gbF\nNFwF7NX6gVWUffvdjHafTmnmkVx/kRtLzdrN6/rICVpBhL3JVsGdCAWXnMDH\n5Txhi30QXRXKz+NWKitqi5wdu1NdrdLaUM/wZS0UcQwbW2CPjLbQ7Xlyq1E3\nQJW3hBKJuK0EM82PjSXf5zC6+QJshy8Js4Ibv+Oqr7yrKWKpp46RztgtP8Mr\nB+2Fo1xTNI5GfKvkTdwxr5Uaqs70oWLSMg0+dJTs4pV1Olkg9AAAN7MBJVgQ\nwwyA\r\n=2wsL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/txgQGWuskGV2HmZidQOGO9NrpT0HE7jRUB8eE/87sAiEAtmFsELvVpnMxQM01g7BfsOSTedvJ2vaSDdnXsP5Dsqo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590683088918_1590683097310_0.2170428958406303"},"_hasShrinkwrap":false},"1.0.0-next.1590687930898":{"name":"playwright","version":"1.0.0-next.1590687930898","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590687930898","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kZfXblkWkPcbF6/jRNYr7KKzrk0WmI96TAx81cNXVz8taG0Djsq0uZGQ3A4U1k5GwhPePV3ia6cCAIlTxJ2JQg==","shasum":"61b0772c81780807c98dd04402aa9d02fdd8c4f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590687930898.tgz","fileCount":85,"unpackedSize":1474282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez/jJCRA9TVsSAnZWagAAlTUP/22jSTKR/tWhUku/pL2e\n6mukdASiYZSpl4Gl3ymm/FqDBDymyRdMs/X2oJvOLndZxBpSMsrty6kOFuEq\ntibowoKHjcvA0ETbeEKhbIfdfbVYRkmCb9pg6A04r/jUzA8LB/Ywi9sbq7tb\naJiVNA8pVQs/QqNpTQyH02zIyIHrl7seIki6IxiU9aviJI5G4C9mU1BPgNsP\nGB+Ys7O0i8atG82BkWzMRG1S/fBb1bBKMGMed8Frv9NAbm3Ej2VOPvvPqBOA\nsaX/B/gU/Aerd6fzaHNjmcpeQTffK4s/XSKlcWpbo70QKUUFn6++eeqKAA8O\nLP/9kOJdVkvLgxHhlTug8mchiDj3Art/SDw6Bz1lBqf9cNMBBJk4MKfZo7Kq\nrLC0KMMeTiU+hd1D1R4XDF3JVR6GVInEtI8mJeH1okJduDRZ/uWAbxgG5PXa\nszGE6rKmCa9gRB6ioz4TvE2HHVWWRakmbKxBA7gF/C6vPOUVG87WVJ5HKz9y\ntID8J0Tz+uJXhG7cIvnZgRJsw8Vb3uA0yd/oz4+Da3ggn17ks9Z1w6bBqrUe\nGHq0ckKnykNRVpHxc6hsmjo51SqSe2cAqG29xvy+raSlPOSyXHsGceXgeflt\nkODelnM8BGgJmts/QQ3rSVUBkcSxOnnoOqf8MHKRFv35EJxRQmllyqzXJIS2\nsdck\r\n=aAJT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEBlHswgTsDEPCJsFeEoXv79ViKl5HkWkfBJAYiyEFHwAiEArs6ai+4ufO6awIwWfauCV4GklNNzEB3FAVKJxwIN4eE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590687930898_1590687945111_0.6007129082361355"},"_hasShrinkwrap":false},"1.0.0-next.1590697532773":{"name":"playwright","version":"1.0.0-next.1590697532773","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590697532773","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tIBVO91sXrS5WUA7gHXQUaeZnZBB1vUpXCm4qwS4IFHXsPvXLLBZ9HAVzLXrNWa7vXVNDh1ySeAtLPr3SO/pLg==","shasum":"6bf5abdb9e0d763f0953ac0d8eb28aac63aa6a81","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590697532773.tgz","fileCount":85,"unpackedSize":1474282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0B5ECRA9TVsSAnZWagAA2CQQAJO+vvsc63dhxmAmr1Tv\nciEZKKgiyAiP2x7WL7iOku9spWEZ/NK/CewG/Obr79YsCDiz46+4GYWSH+ac\ncol0aO46PRSdxhJ3kvDJo2pGTzFcVntDZz8mbWQCpFNmTXDml1nW2fikQIA5\ncxam6vKXdQ+D9pepumo5EgXfJhVKXtArDOwrlSObitt08HBdH49RlIVCZJcO\neT9HBDQSygrTycM98IduziGEm4Ho+2UCOkeox90c4i6FtRQcN9Zcy9ZqSZOE\niUOB3YmKpABv0wmRMzWd9nSCAaGAOI2JZ/6t8avcFj+Kn92bFFkcBaBx7Qui\nbF60DPL7fELKB4BMqoeRLGePFXKuLXmFCoAYmjT2QAP4BUgfHUA7fvlScRzc\n6Qm1JkAzVLggqlUnO3es0YDL8SmR+8LQqNVjzOTI1kw76yGooGU93vExuB5Q\nPAnHdKiQVbRDMo/ExgeapEyDXB/00qa0IwMIOFgmdiNP1ZGDa94qRn26udE8\nibc1/IJIzwLy1yYR++FZuSpPmvRaCH1scmx+34jQD4gUwFtSDSNYrhRfIugx\nY40SXV/SNgNJD5mtRLp00oAcfIUO4Q6W56K/5CbNEnpuUrXgcPwSm2hcpY3t\njPSKCGolc63DVj2n7GgSHYM6deaJty3fV7dkUh6vuAiXY7lTYN16/4NSOQN3\nyuD0\r\n=81Q1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYhSKvZrh0g+3N9LzWcUeyzo5skdyX1ONy0HkXe+t/VgIhAID2JC5cCLX3k5qouveCkq/e7T5MYRa1ZfWrmdZHU2od"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590697532773_1590697539930_0.3091214476056683"},"_hasShrinkwrap":false},"1.0.0-next.1590702018792":{"name":"playwright","version":"1.0.0-next.1590702018792","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590702018792","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rMmhs4gOlA9o4wlTnN5Fvg+mFTeIBBd581Vg/SofGdK+2r+6GklEZSHPYiQDeceWzFAITAgcUkfDNm/1Dc9AIA==","shasum":"d1248dd29ffc13e92fce318a9a5488cec2fc206d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590702018792.tgz","fileCount":85,"unpackedSize":1474421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0C/KCRA9TVsSAnZWagAAwl8P/1Cq3mLMAtcSdrc/AZua\nEjhZfmsRGFkAwYDpqoGWfUlOziX9dYL2+wm5tvvHFJ4lHc9P1YlKzQ0synzG\nKIP47MPwwX0I7J9vlWd2ZR4qauy27hiPAFPvkdCnJDWy7kauFGPzeB14wfQu\nxKdzKXlmQB/PvuVI1OB9YtQov00+pO01M36Rwv/G7l3SBkYZjPZWjUse8BmB\nnGTt9GkK8+aNDsIUZShMiZOn38CG1jwtO8VanKWALrAEX6H+d8+TitDTe7zz\n3zMYCXhW58i3FUGDUMbJsud6pcd7d+DAonqd4EJFr07u8yGETfV5I7QN3CtC\ns9cRYXRc5sF78bYOJS8WYUQRpv/Q7IZeIw3B8SJP7ylXQOkeGTzfuuaXD0ij\njELmhPmsjbCIpgnlCOHxWj2xxpBxhXwSATLJVd6IIKQTcLu9OLo1yD5S0qi7\nwteOsTYd6qGHPQoT0Av/A1eW6L8AMfv6JAIoeYtkvFiszO5BKTUjLyP1Rmfu\ndNcj9WTXWu/i2U4Uvn7Io54peditO7SDYZkfptr7k1wnIssJgtKt/DNSDQPF\n8qPOFeaQBKhuVQRyt4WbmK5kaS8km0pzAWgUmDyLw+RWRtVHhbf9KPKFyPDc\n+TZpbZbav3O3dn8Up6iNljd7cUf1E3bWKTtJy1r3cxK6l+iNz//LmdGlWrqY\naQYd\r\n=xnbn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKukhHoYcICyIMVO7xGzcho/FXgF1aWY7VgOkidzHXAQIgEhw6AMWtN+/b/tV6lIpZqqMzDLarDk3vAgzao27g8Jc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590702018792_1590702025921_0.7294763514200833"},"_hasShrinkwrap":false},"1.0.0-next.1590702669597":{"name":"playwright","version":"1.0.0-next.1590702669597","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590702669597","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cU8GaFHWvZ3UteDBF426qv67W+r4/Nd2Xv81i9gMh5hv5ryvjZhOaVsz+ZrSIXgK7qKZpNMfa1DiFcXpB5ZpSA==","shasum":"efe2866ac60f84a03e71cab920af94bf86df5def","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590702669597.tgz","fileCount":85,"unpackedSize":1474874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0DJUCRA9TVsSAnZWagAAqeAP/2cpxV85NvPwOYBhIS4y\nkJfZ1iZPPrctyT/e4TtQSN9UaztkppDjNygyBBJpC1+Imf9cF92ksizpnPSi\nzTot4MoIpyQyRjfNpztCbCBEfEy9xiId6PWi0ZUVycVwocVXVSYMLo8QhdoW\n3F04ZVT3ytUYGTDlP39js1j8YUherex2KIT0S3NUkVeeWO+Z3vhv8Npm5sgu\nVTIcR5qCcCWXC0WW8+bQEMbZp7X4ILYCh3+ndbKp95701zQqpIZ7I2ToyYZL\n4vlYDuxxsAmoKp5prmBAteJ1OPcsc7PaIeCHwDGgxqj1OAe/tiBxUsTfCDHa\nofkAcMpAHbMFXdGoxWSE/p5tgJufOMgxcL3c4ZY7aauI4FWV7KsgynbNScGf\nIC9EHxn0cyugNv2PiAOCxQNMP5J4fqkfZpIjKNEYKFCRRzYQONOUESZhsVBy\n2iO/gARoRABfG0CG8dV/oWRLaKdcqFrl3DD+snTkeNTbxkbMG/+nMTIqI3nF\n6Z24bLUhlBrPIV1nCUnV/o0ozVua24FQ1V91IFIA1qzRuLlR3RQ6m6nypAal\n7ST56dpPeVw+J92RF/ibNyzy417owsRmNS6FWwbhwT4cO55IzZ7U7GauVjAn\nvYkY/CZ8MFtCcwoST3SMti+IG2ICNP04GPsp8i6Vntl7WSF999XQ0IzhZgx+\nSAs3\r\n=unDj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnvbwt1mD25Q+G08sybcjv/pDxazb/Ypt37HStEeMgqgIhAOFaps1tBCVX7aZGB235HzqTr0S1TyZEdjMPnaDcvNqY"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590702669597_1590702676378_0.6969798658674831"},"_hasShrinkwrap":false},"1.0.0-next.1590705745876":{"name":"playwright","version":"1.0.0-next.1590705745876","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590705745876","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-F+YNEy3E4LMPDQSybxRCeGzIWg1w/bAj/EYtZX992IivCya+g/wBbyJd3LecBFZEyrODMJsBUWhPDUnoYQ6s4A==","shasum":"4aaeceea249d409c1a2069635cc0a6c923aff207","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590705745876.tgz","fileCount":85,"unpackedSize":1474874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0D5bCRA9TVsSAnZWagAA2y8P/iq5nt7IyBpzO8Zq+0H/\n5f8Jd8Y9H41uzpL+rXBMgkgaYJDhTEyqfJqeKpZUjDdCWBL0AZlaAW3ZtZUx\nCe6EpvzugF8TCxkW8XiR72y6o4oRkq/CAnAvDNW3OPNtmy3JnmkhpaaRvrI2\nP4WIvnB+omF6w1uL7bgJ1IyZ0cURS+b+AzgCWhDjlEc0Z5vZUAsFfcz/VDnU\nZWSqBqn+tJBAZ3pn2aU+fMUQSX17dWka90AbWNHl1stKkJ4jrKLbFfAhxr8d\n0+8rUM5mYWsh9EqgWO5jhG4gI2mS1AvAz68NRl3eDGBWb4dLml2Oesy8X/Rk\nF/fkyBPYkZaDEPhVmQ4w/vn2Ry0x+Cde/paveNBKvB1pwnZ4MoT8eRI40LyP\nPVSTZH/kGinf01L9jDGMOeeNLTOX45VKOoNbXpyw8JQlheXDrb/qYauIqL5s\naGKROFZKWb2S0tWPgRiA9BTknqDtcrSlbQqAvxhca/MK7d6qGIkGHdkQnihj\ntzQSy/7I8IBZ+pG1P1yR7O+AsiRStZ/Ht8DSv1fExu1Nww90hcGcp6vZlRn6\n68fwwP6PWt3UhPC8iZIA4dYIjezmREAaBlrE5sHEn9eaaPk1b5DTKa+VIcox\nLP0FLx1ozAWKppyN7i2D0s6O09MELM4P7KqAElzjn9fk/8SBZ/1S+LXVvlOz\nEl30\r\n=AgoF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAd46jt1lbtm0LXyD8R7HSda8/2E4FTNqfjJ7vtTuDjxAiEA0Mog44AN4/PLgcUw9ow+Yn225C4WHruIJkJVoNOzkGc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590705745876_1590705754854_0.8541119968641835"},"_hasShrinkwrap":false},"1.0.0-next.1590709023889":{"name":"playwright","version":"1.0.0-next.1590709023889","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-84.0.4144.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->84.0.4144.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590709023889","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MCzwgJf7aNc9WUsuRV3IwwVYrV975V9LTrWYLPxHVHCqdnyKyFXEJgZFvG1STY/qpzwMS1w7v1jSoINgVqRljA==","shasum":"3eec16c0a616b01cf4f11ad56b877635d001df97","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590709023889.tgz","fileCount":85,"unpackedSize":1475842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0EsoCRA9TVsSAnZWagAAWGwQAIO/1NJg+sKKs9kELxOT\n9xq+H6y/nCF44nyIhm1dPgWew4V7up+NShqW+iTVrbmtOfTRh0H55qIAjKHC\njgunQ119x7I2gDklaGLLRZc9nMEURaJJAHLLBTlCToJGSZNtvxVkMTBhW32P\nSj36qTJKPuWckhlvXe+zLdlJf9aroBdQ35zZ59Q9I+iaCNrW+Xek4CU4TXDV\nwszV4vK0JaHwUbgxomVgdQuPPvBWjOpRh0nbiCKp4UxlxHwN3cZTXmDIByFf\nthEVT0TAnWzSq7l6nlZC7XKbs0VFUxPEncO4mggrpa01dq5i06OLu59zTJFC\ncbL8YwQcZb/4f3cvhkMXDCf2kqgSj+a2qS4ECYKRfaR50gutxZDgeGlR0r3t\nlv8u4pBhNvCC2Ie9FM0jFXArR4u4lTSlmiOE3aU1+sQTy7USK+DIMyyvHVhc\njX8GgHc0RUhQkBsPffq18NEii6n6TcF/glqzxtQLvRQK4kdPWZzfhXXSysWo\n8HbQTLMc+ySBzjeVPVeFTLX/AuRrWaputrDwxRDsINfxcjWsglYHfa9wWeob\n/4pBGnNSaHas/1UsZ39j10YOuQBtHn/0gsZYQYTds8c9zAmAVkR9TIwtCR0P\n6hCgeHkuHJMXTMEb0yqYb7TO/CC5jgC/YejVNThdtfSKfHBLuusi0L5BCSO7\npKGC\r\n=jNsB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXZ+X353M+zggzSa2aFlz3AkY2xdXE5KPHBs0JTPn/LQIhAOQ4uE2ZiWVVpGgNL9O/dxPWma49M5zIAJrKRjBC3R51"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590709023889_1590709031441_0.010829539952011968"},"_hasShrinkwrap":false},"1.0.0-next.1590715841027":{"name":"playwright","version":"1.0.0-next.1590715841027","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590715841027","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rIAe8nKYvMMJioq+qEGpXZx0cvT/T94q0P3QnFr9DmmseMalREcFCmN5PS+S0AFQ+ptwKk6O/2nhu1hpXCEt9Q==","shasum":"76ac5e1d7c3eb258dcd869d8db0e22f1a69ac44d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590715841027.tgz","fileCount":85,"unpackedSize":1476780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0GXJCRA9TVsSAnZWagAAt6gP/2FoZHuQApGeZ1rNKyz2\nsE8Hz0klCrSFNRuhDuX+gfpzcXTi99DqzW+SCRSJE20BzW+fu/MHCiaWSUh7\n/Gd/NmJFLULXOSHBZNlaeCn6idPMEUcS2c4NAj+TI/cQxhL4s2Z299V7YUG2\n3dEzrNlfLOhEntFq0gj7KDBJ3f7rfk1yz697DGyFxoiWAsLcZyqQztaoSVUZ\n1KhAHfUqbtKXEXV9Cbs4eVsCp6sVF3YUBZD3cs6g/PEvx1OUdUvW9FpHaFhV\n8O5RlS3wjYb059ciH3F3kMVUxueFewBWr3yKepEGirx0px36eGpOAxZGKkS6\nGxo4ZEjoK+KhoIUX8G7bjIL9D6/BMe7IjEcfOMeiS0HQypLoftJwlzRBTLln\nQfFoU7s2zOEYQkyaKysOik8EEJ8wionCkyQhQHuuhoNGjzK46dI9NNPLlBqw\nspngUGokgpbEQuf51W4cQFyV3EHkeUPWd2sbLJccdRrVzpBzMJg7ewCoFO+T\np1JFGvUZma6rTtCRhwTGzdQzua9OLJVV/MfgK98FRLPbOUwChmGyhz5uSESK\nRAA67kocp4LP59equ7JMf/tQzUzohyUkacrPmyPpvz9EBUaFQsrFnZtojCUc\nCOHQL+uZtEW7PtiJQQd1nSenMlQ0fdSIlfMLL5Acsg0yX1bZYSt1B7rT9OY7\nNX8L\r\n=kfLG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcAsZ1LsAijrd2RuxuLrZWjP75nHjmhjNIZQlKZZKEjwIhAJotcmSW2C9oFVmjpKkDEzeOjvlC+Oq8ntxiy3sjXn8X"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590715841027_1590715849196_0.035185175922897605"},"_hasShrinkwrap":false},"1.0.0-next.1590717111161":{"name":"playwright","version":"1.0.0-next.1590717111161","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590717111161","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mWDC8j0Es7XGY0F7I5Nqm7VqNKRAiJOa9e7YwU+P5JwW+zj7RBgWYPbt/iNFe2xhL7vu6Sl3kr9TOzWkeYaJfA==","shasum":"46d6076efe4cd4fb5c7ee29feaf13b334c8cb14a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590717111161.tgz","fileCount":85,"unpackedSize":1476780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0GrACRA9TVsSAnZWagAAh2kQAIydMrXrFpK/01dCK9S9\nWYQNprdr5dEKnj5YgJQ0XCl4tdKteJBUVXJ9DBo6tqWwuWwp+hAnLaDrNi5/\n3sfO2cHu7UhQ6McZa6zOlz+CV7ZciN9mEYIwdZFtg3x7cZdjhOXJ5CBbMbeW\n2V/eYwe9N1DUsC+eAFkc1Nw9D59rRkbapXbmMT9qEHodBeA5UYMBQMRMdyeU\nYyqeDUMHTeDVCwc9LMSMo5+mKLVfOu9ByW51JAV1Qs8xYqnLwDA+7rp9rEi0\njabCEb5iEZmt6pW8igx/fnpyU9+MebggruXlDCoSk95XNoCm74XSzFSgqlJ0\nc0lErLNdQ4WyBxHsNCfXsReKT2irBk0q7JGAZ9JH2sH/OyqmlU93dAxD/I/4\nmgesQLNQEK/gO1RuEgAFd4feugEJMdr1EP7/cs/8E8jUfWHMnT/pgh215D45\nV50RYuK3gaHOPRPjgGqh/ESt32iBuNzclzXwNTSnzP9hpwMMshw8DGQG9vcf\n8W81MZ2NrUX7z5rYOv39IqAWK3RyiLvOiAQhJJk5Dxh+xAH+cP7GWTcuW15Y\nAKA0CyehQvY/NjKA70hggfD00oTkot5HG1OHz1x9xryMmHqfdPsX2QORy8j2\nh5K6JcHog7fPwYc49JhRJbVJjtBrCdbkJ2turavUroEXz/pV3pdu0TazGxNr\nZ+GY\r\n=j2Eb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFa1BoXu138mlyqaFxOa7xG6gckKD6dTXaaLVctRwt5mAiEAxjrX0ML8r5/JQGnyM68kM7r1wT1iTfV+yqsn/v1f3jY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590717111161_1590717120401_0.8211722144959299"},"_hasShrinkwrap":false},"1.0.0-next.1590730693707":{"name":"playwright","version":"1.0.0-next.1590730693707","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590730693707","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0vvNTFxJSijfRD0dZtdPVrBS3GpnY8xGPenrQzgq8sxAYqKvdmPKedpqmMxXpqHG7uNakm1XYyHiJ2luf8CnAQ==","shasum":"6456d6866066111229fa08222c108b6edb67e6ef","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590730693707.tgz","fileCount":85,"unpackedSize":1476837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0J/OCRA9TVsSAnZWagAA6ecQAIyzkQwBedDGuQ4WS3ta\nVvV6GJD+gfGCrEU8vmjZyW0c3iogDZoFAhUXpqICnMPV/RCui9bzSC/QSACV\nClcvft5WaRR0sIz9hSrdPjW2lZdv1MwIjDO1fWPst9kBXjkQhbm3QN1C0LKx\nyvzP5tfdPZC7PJC1Pb35Y4mZdGPB2vp8QtCZxHWi7HQEP8Vq2KJJwhu6WBnz\n1itgvOUOKPAT+Cw3UXuQjehVitGiKGFN+uwQLDM+JG8IBfdQMcB5qdwdroCy\n0Rm4qNXrqJXlrMltFExviaCm8W/Kr6VWCOPJBiCEZEKwPRCGRkUBpqlO9vUq\nshtwDaLtSOEGXtHiu6voCCJsbfV1Q7mTaAOmyH5B7BSaabiU23Y98m8Wtpaz\nEEGm3lKV+Y+aKhCswCeOU96KcLZKQY+g4IkyFdkCF4r/kSRmIoNdquODdxVR\nX7SjS7CyG/3SaS0ab7IX2vPpll3HjgEdYaOJn4wsDG+cMnrGG119Z6yH+ht5\npsipgptolZwG6kwva/OWJ4PUZvbgASYI3lYEIn3EK3no4Cnd3Nu+pnvdFvzH\nEk26ZxdEtxUz2eCPCPrf3JhLeLn4evoL0R6JcrOW65zXz0KdFiZVL7H2eM/n\nTzW1mlcBgA5oW5aI6MVhKvrWgOJArMdd4yjpI7nTKhRjkue2mkJkwwwEYPhS\nSUGJ\r\n=a0Ay\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGywVWhTCXy9zOFAY8mB0TdhU0chLuhkg0uQxL+vYpBwAiB9R9F1nN/tm9ytg0c1RefRMalxVl9zXRPW3EVdoZG/8Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590730693707_1590730701326_0.5952814332326035"},"_hasShrinkwrap":false},"1.0.0-next.1590767669554":{"name":"playwright","version":"1.0.0-next.1590767669554","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590767669554","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CR5MS/RFfHnEaSvpVr3nk88dRB4PDMixbvre170F+vSZJqeSMDy9p045ccKN5k9+ndDe9xgro4+DEZQGNdSsfA==","shasum":"6c5108d41c715693496782a554a51069393b189b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590767669554.tgz","fileCount":85,"unpackedSize":1476838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0TBBCRA9TVsSAnZWagAARAUP/2RaFbLqZjacRtyyikY4\ndg6HVEVyzEMDbWB7YnnbyV06Foocb5c8sCL1p6waMFUq33zPBX3SWNya9YCr\nzk7K0qLjRxt92tqhW1ZJ04y7GXyf4VAUDylhYMe8/a5YVgY58UZpxYXitwab\nnU1xb9Sb+aAVH4mwwn/6TaAxAQEpbgOVvUPQRiUWXdCGD+cNfIT12eg1M30J\nLp6DAKVSb2WlvMFyT9Cqqm+/+U1wr58NDD++ogFVw9KHB9Y0elXaXbuobzHk\ncl+CVProBqDrur3bg3Lkv0AxfKeGe0BWAWc8ZqtZ5gS/rtGRrVn2y7NAVcJM\noSBhfe4v01c6PS73T3vNvltLv3CbBxoydVq38NiQ+34TiGIMX5+BtudK+Dlf\n+YmvoaI9mcZh+NEHbt5rR6MdgbV1bV/rXk8wQjs3m6CHenE1L+7a664TEqhJ\nSKzqeGACTZ0xB2bRd5gClrRN+wf1ZH9UcgMWV3/TETOB69IdrGq+Xudyd18P\n169aRP4+edRSdDvprSpRPGIaSaxwfNfN65osdX2D+MbGFUKlHOSox8S249m5\nBoj6QuGGYpKtveLajKM5hJGOvDdKnx4KvHOSEqheoryyPWWmhtqOIClL+Fea\nTadU4LlnwpngIJYCnT3qDvoNe+XxGkazJb77Crtn1go4C9xrS4p5P/xvIYi3\nosr6\r\n=4I6c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGQ10T52r/kgZQ7+/39JYtJ0yrBWDS4k0z52Aeuf0pgxAiAqp9ZVrMjpcIyrMN4W3AOD40BqG6DpIxnPzYbxMCCg/w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590767669554_1590767679222_0.2311771831098417"},"_hasShrinkwrap":false},"1.0.0-next.1590777107944":{"name":"playwright","version":"1.0.0-next.1590777107944","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590777107944","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0OTywpWlsVSF8ux8iDj8ljyuM/I26ugzTKGLNSqMtQExw/3bdADjj53VqtazV6PDAaVA5hd7u33b4OQ9ekektA==","shasum":"deec2ed590ea77c810a660d1f274c85f7123e685","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590777107944.tgz","fileCount":85,"unpackedSize":1476838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0VUbCRA9TVsSAnZWagAAPVcP/2POeCuoG2a/p6wv7hJ2\nyJ8xqgJBpcdETUAFK3JQHaNmEzRTn40izmEyT7xrGYolUvwx4SFujvU1wRch\njmR79EzddJ3DJQ5sGI7lO0wnu2VQVO46pBxIpStMa/fI5doQnhAGWxYmPqCx\nUyTUFvGjsiI8/aF4B+/gAZRd1eAxyvEBQOkgo6z9dtfDS46AKlI4RlmaxCoi\n4A7kdEObZ84C/DZ4S/HIGvXBKltkjv4cRnX9U7TJXBPtbtGiOqkQBAd9J2N6\nm5rr6i2bzAiGRjD6b6iamgFIwDK5BtYcKzFFfhF6STpxsSoT/bm45C0EV2A8\ntywds6OoAxRL6933gzOOBDocppc7biBiuD8eY1hBp50TG9o4muhjtM52l8HZ\nJa+G6AJWFson6uop55wEHulUzR8v49hNK22IHy+HQjDFKXblguoXenbTR7/o\nVRIQw+7RLDMICtFM7tVTpDT/+GoW5rJ8aGGbgjsiIQBl7rc/ZezTjobwRm44\nnIy2JFVE9ekjz8gIET/xOeQX7x7VaYdeaVXOmvraBppucJQq1gbjuCSdJkam\nMtiosqNljBgH+IC0IRi7WD5L/VkG9jVlzXorXYpzx1VI5yShloFA5r8RMoGQ\nPsvDEhs7P5HvDNCyipwBfcmchhvz9uq7G6h8X9EKQbjJavc740oatkcyBRHz\ns/Cm\r\n=ryu+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7ODKAkmrNrL8RaSET6plE0tT5+XR9xVV+d5kYtb4h1gIgd7VeEbq9tUInNIv/ja8JiIRyTJ/CwG6A+Lg9YBQDmLM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590777107944_1590777114451_0.053228987503739056"},"_hasShrinkwrap":false},"1.0.0-next.1590780908384":{"name":"playwright","version":"1.0.0-next.1590780908384","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590780908384","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jJC/zNfirIsqKBHS4Wc/DjYrnutojTiib1+Fham44UipgZOogQgMeNOaBwXN8xFiPYyQuS33gs88ouovm99FtQ==","shasum":"0588a74d147f780adbfdf8f297c66d0d1fabbef4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590780908384.tgz","fileCount":85,"unpackedSize":1476838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0WP2CRA9TVsSAnZWagAAWUYP/0subYhR8Jl8Nu/tYzIE\nPXdi6caKKwsW+u+LZTyXo0i8PqRrx7EvioD5KkJQsmIutxT2kjHGEVLg5qD8\nIQW7/Q2N1upZA7LOtDrPvW3ru1r4D8X0oDNJkmD3vbA7PKPSZuXGD3M4ROkq\nfL7xm9mApe9l3Jy+n50LpZIOg3Ic2Zc37e+ShzECyXF/3D3P26W0X8vuMUlh\npXTO2OBf6zGcH0Ca9WUMKkAjXKkWJprwd1F/af/6mhC0jet8hDeKiBBD1Ioy\nh0cAvseIpEV0BFNGuy3st/kYhgpk2B0kknIQmMqIJlYgncV82mtmLEwG4Jit\nOvTtMokpRUYsM1z7i0nTS+nMD+uz0UmhkWF3XbTuia8EojJMiuLqU1V6T3VE\niMvHePNfT6EqvdYfNv//NTxpbm2faqskpzrB6tmh+Hc7kucs64Q4a+sh4cJ2\nksDFkh2eaVhkhtdzUT73TBS9lJki9ixijipBPImD7zKK4B5/mGgX29DF7dq/\nWMUd8G4jDBFVD1vXfVpPvcJ/3rWDpwb5JBL4cSdPSEy444qdAkMaStpdsOGQ\nIMXAhyW1czxq8CDOAZ5Y0Wu8gMn13LTehsYRG+N7qxcQ+hS9Ed1KmQOCw911\ne3nSnPHeK4Bfa7fKrlwg80MShtLzoLAdRcQxU5CX6gndS2ZsFopGl1nfBX1m\n4kHY\r\n=CX4x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKGtHp4t15XcMF4tw1u+UdWRzF7ad4TZOHJpzOm5giNAiEAr6mLgFr4aiebJfIHo1Dru7HkldaYspU57Nc3JmgmpRY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590780908384_1590780917551_0.5950836768316417"},"_hasShrinkwrap":false},"1.0.0-next.1590785338181":{"name":"playwright","version":"1.0.0-next.1590785338181","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590785338181","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-C1bOf5+9B+CrwCtDSnfC2XodQswlgI92TBJq9H8Y0RQoF8i02eqMMVuKV9XgqzQsSzXoKcddBKUs3pR620kSXQ==","shasum":"d7a9dd4e61929efd5d554c4db3cded34374385b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590785338181.tgz","fileCount":85,"unpackedSize":1476838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0XVDCRA9TVsSAnZWagAA7g0P/RonIAcY224pl0wolYd5\nv35WOh512lFdXbO/imTboG8DpzPj/7Q2F72gznMrwAP4ngToKOe/uh/FBrI9\nPxvg+DLT6VJpIRI4gMXM67mWOrlr3tdULH70CQQ3w91sxE7lcNmeDZybSqtM\nJWjj2RwUxnTZUrW93a0Iz1D+eEOdSCM7rpuBIdWB2HWETlWPd0TXAB3SsW2+\nxwR/rjGRZixFOoQ4Gpw/usGv8NWoWLvTq4ySRjjwvD9LkH/skRRUe1iHTCk5\nIpltTBxePxAJhSyng8o7hu/w/RAXm5n8ppGUE2ltoazi9TlHO1t0zGZOgWFH\nLgWuoLExrx9XJTKhUl2JaS7Jh66lUJx7v0B4TmTOdZP4KQ4F3N3nDPqcAXLW\nZPxDwKLSlkOPFHnVQYWd6zoAMAu2PyXBhJisDubPpmBP+vyNFmQSBG+Z5tyP\n47ICCI+NHI3J1Pi+hAv6nXaJUKAE8fdhzAUtIaGUq+SVjMzK+gMHidI98yuU\nQ2OKUzFLseDjztiZLV4V4IvAxCLBLUC8/TPdl1nELbRkTJNvelJrxru1c3sW\nIiBVG5BU4s1AGOxjc9hZyj0BbCHVKB8p6YAI6BWBvpGoetnwnF/9+BdC03DU\nTlBph3TYFGh3JJwPMcPPbCjR0PUfP2YL/XBADgsEjyatlYs02ud39888arv6\ngZra\r\n=lbHw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhYlh4mOc2c0q8/t7ZvmnYOwaAWanJHS9ZlqSZkSUbOwIgDLnla75jjgsMnnloIiRGi3alzJpLgHnzPU5DsUaeSSM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590785338181_1590785346740_0.14384864102248862"},"_hasShrinkwrap":false},"1.0.0-next.1590788459423":{"name":"playwright","version":"1.0.0-next.1590788459423","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590788459423","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pVPO9125dmRYk4BmT6A2RcjBkhBfE6hZJPRCVQ7B3P0QHz1iG1nFtC79+B6bHamEc4EIXMhTqpCxGknTF5aWkQ==","shasum":"7bfaacb994006cf3a6832698fdf54e5dda4202fa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590788459423.tgz","fileCount":86,"unpackedSize":1477855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0YF1CRA9TVsSAnZWagAAIC0P/RpRwPck3kJc+wyPKcQx\nMq3dCXQO0HdEIbJsdP940w/GfwXLt5g+G4b11Wp8Y1xWb5kW7SxtuOxsIBo4\nYvDj0K/YtHLqdQgcKKZgU1N35aOTnAZSl6jRVPlDFANUNYhZrcBwtrot+RrH\nPyElwl1h071NFWNQ8LHVOb1Z+leoehQYlMo4vLJCAY+YFM5XOeN8K1s4PJEy\nwib0l5+pY3+KL2xX8qyxwIv+WQBVlvJp1JZZPn8RavIwlV/AnaSBffKAIs7z\nYM4tfP7PQPul5LD/9TAim2zbhS9W6bGN32VvrWMkuRIx/Heu+x5bw6vvtSbS\nmVI1gTNOHtIozEzCpXH36ihlvnkN3TF+WWU1KJZiX1bA47jM53LQgcHtGkf3\ncf7ajw4Mn3IMxu3hfWXZ7T7K8uHoyi/69XDiKnw2JSzF80OU7k1w9pEza/LH\noxC78G7WcjRGG5wTWRtwsSB1xUODB5/QG7D8Lq8dVWCyNmbVAV+VT+irE5by\nK6AaJw7hY3t9/rWarrMMv+g2xNyZhcP3ze5gJI3m8j+x8lfceBE0wuQiluaE\n/5Yg2L6dJxuDk4czvPFDAmF2LO9Z507MolY/NPBEwj3bH5KgPgSG4OWsJf16\nrZ6owG2FYpA3Z7bIfPG2n4wIGo/VnLl0vh8Z39Lyd1pqivO9mZiPzHnUqyZZ\nijz5\r\n=AFM9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHAnNGLokjiKMPAD4ppstc3bDlVZP1Aawa5iTARhuW3kAiA9rgp9HSaNw1hxNypVnNonwQUArYzf4/+OzNql3NuAqQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590788459423_1590788468387_0.7698343189276904"},"_hasShrinkwrap":false},"1.0.0-next.1590790328586":{"name":"playwright","version":"1.0.0-next.1590790328586","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590790328586","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-u8BGDTxFaFtkyEun0rW1xw94zNfi/7qxBF/V1L3o4dkCxV3TT3sKAsBZXdwowQownqxS6uT7zwJUaWAvm+xY2g==","shasum":"914ce9d51955f03d5747fdde61cc53fe50eedfd6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590790328586.tgz","fileCount":86,"unpackedSize":1477855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0YjBCRA9TVsSAnZWagAAZa8P/jNBRQT99VhbIkCdNmf4\nzWqkoof6pui1akDjKig/VRwLmc+pTGeqc7mS7ALQTzjqqoOeDdA96PcD035G\n35KpsNBxuaPlBGHWlc7Xshl73d5slPZFue0BFGk/8e1fxF4xRvVBt+FHvN5G\nRrbFlFlj7j/LRl+3S/NTtB455cIg55UNFQZ8lmAtqvdP8j6zYV3umDSdWPzr\n70hP6BdOdAYzURO7LV3dJzE7NT/hh1T74smkffpxlbIaoqRvADRqjG35Z5L7\nPc0XUS2E5F1sEJ4kuBkZ6txF+5oXo2ktOBc0yPMh/lLc+ZwCqb5NTd+YE4Wj\nH2lOCwcTeRERoPGzrDAs2V2GJLoQj3oalHv5TCvb32A/rDKdRS2yMfsThdvW\nP9jEl+jtvZ0seXxR1oswFctHcosthh3sME7Q2FEzriGya6wKGshz7JSYwnsU\n6ULmTRZKKwWngTvsaUVUBgQyXfiP0FBwj26sqqQWlqHr1Fpo1wu/y8JA2OmC\nAqZDN8T2mxURmmEPCASBNKUQzP5bY/TrfKPJ5/M1PbcFVyYf34sMkHg0XfbA\nswodS8eLlWvhLtGzdAY4MUDS4pTl0s6PxX0TXjXysv8imR4iQ7G6HmXH8Zef\nOyK83b4JFfwrepNdkf3RiW2XStXsDpHag6AuEyMMI26kBt2BIn8gTDkdegxJ\n7ime\r\n=eLQp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAvZ5eLYWG1yyiRHz0No8NQ/k25MZOu5UPpkPRsCDQMPAiB64JZP05/HJ+z57fmQIBJlqXaeHnkwVz5oZgxda9LA/w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590790328586_1590790336658_0.2033053028729146"},"_hasShrinkwrap":false},"1.0.0-next.1590790441428":{"name":"playwright","version":"1.0.0-next.1590790441428","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590790441428","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pq1fjy6JJAqcXfKrUbZuwdRgOyY/ZQ4Q18wAMY9V5Q68M58MG5zcFIp4LAZpKcvPtaXqXOE766f+nsz98sTO4A==","shasum":"d8fe1a280b26bde00fbe7d09abf7b9980444727c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590790441428.tgz","fileCount":86,"unpackedSize":1477855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0YkxCRA9TVsSAnZWagAAKrAQAJBHQ+fFRVdCdmyAikSP\nDl3c5TGMFdR4CtAA2tYJp/kwRP72FHYTKmToROcT39ZdY4t1eOL5olo8eXVT\n87ENUO28KQPMSxo8PpZ60KCcM495TFWFepEYoAyclLJZ6yYmyuh5xsVDYd/4\n61eeqn70XfVg2KABHUEBM5RaF2pHqpwhvCE/ulnPurvpC0vd4ZXQsQBJFvFZ\nFPJd6x8rRzYtAALHB2X20dK47PfKnvZYGGtuZuCEhMET7h7AgUhKOZXDsL0I\nUM/ZWgNwG/eICYoAzxfDW23nmWyWAaOzxsT2FZiTpDDZDTuIWwsjFWh9WUe3\nSbtN1wVbx5jFmB6z3yyCXprQ47fsMYVOcXMuRsPzDu8KtYewJhRPYgQ/niHx\n8VKOoSCo79CX/1O8asCicm+GMAsc3CSPoOHjR4TnuLALBPVsKzrKe0VvGa8U\nSpw49zjbM4DomrDfMoFxghhz5JwxGtqwCmeZmQP4dA/9je4BksLQT7vOUaiv\ngxxa5QJcuDV4KpOakdKconnNXvl8sUFYbAa7KQqNzcB/fYZ0qj6xnBQPCAle\np57rkNZFFrPIcNve7FaZ+LB4l+K3Dv8uQr11MYGo0tYUYSv38DBciD1rLHn+\nQVYcJidrfMCu0mVeTT2mChoXPAJ58va2v9vyUjf3O219CFAGAYdI+0Ae5C/E\ndCqW\r\n=k4sp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGSInRn67o3ctkv1IqLxCCN9Sc3z5Zqe4veCygtm+xbAiBDifd9PLbven6RmieysoijvtnxpHarlabR5eQwLVYV0g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590790441428_1590790449231_0.4603215714879576"},"_hasShrinkwrap":false},"1.0.0-next.1590791397229":{"name":"playwright","version":"1.0.0-next.1590791397229","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590791397229","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HDHY6D0aJXWQhxacG87r0KvAl5i09JeUgk6iZftn9KSygTNL8ARU0ktwAhq6FO/2yjFbwCtqz2cSX2kzE7KSuw==","shasum":"c0ea8ba5fca287ee695d5f9f16bbd5d45c9d51d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590791397229.tgz","fileCount":86,"unpackedSize":1478408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0YztCRA9TVsSAnZWagAAePwQAIPCVDpQgruJ2jD08dzp\nYSSH4atFQIL76EQT9D+QghTdnpWG4pUBe0kmIbjDeNOWbgHmJs2TDEOldsNg\ns1upYpQR8FHwB3yLfXHEDgnRu1y6ZOguMYjNbzswkH8pcYXAumGS7yCYKDa3\nkO6OoMVztIQMv+v8JPUmCjz73b+4q8+qNAJf5ebYr1nOzqsvUHAa+PQjoDUe\nPkyb8iPANdkPNQOPB7975PnJuJrV5jtCD7Die5SZSTnwUwGxDKRk1ov7jXow\n37SVYPccy1/6oADw0mvsXalyu1U8ApyGLvPf1MD4XUyndasAxkQVsHBzb3O6\nrPp9HnXim5PAGc61VJPWIvWdp4qA9NoRVX7YaaqAvPsJMR/sJcSl6n97GAap\naERZ1EQZXH1EKptiL5DNPZDaRck8OaQ68o4PMcQNQdiMwo785yUcK/ioCD5b\nS7P+UjNnjURbBb4P0dcSOlEwRlrO4Ka0zmqVZ40FfTpyTtV181ggD99vDYDc\nfYOZ3OYx440frGxW1Qo/tpfhqIOcSNwP4D5FJVDD75rzJe+720eubjAivQUc\nCd8SB5gHPArH7NnAj0KI6ryTueuEryqIeUf3fkXd0LToqapYU7yxLtPkctUB\nUxGyZfqJRDKCnxw1aRgQPh8golOEd3wozcTq+uyil1xjJ1lRMdVKldaojek0\n8kb8\r\n=qFug\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGfYorsfvm+Yb7qGKdO8NzQvh4y/QfJWr6b8IF9WXeMbAiAPlvIwze3BOevWtqdF4WXUBEOn1Zyia46tOnr3gsxSdA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590791397229_1590791404990_0.556977933105439"},"_hasShrinkwrap":false},"1.0.0-next.1590794232717":{"name":"playwright","version":"1.0.0-next.1590794232717","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590794232717","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-R8jOlqllpLH1Nq8OS5PJydthy6gKaiLgNpFLOPvIh5xvS1GRjyLR1kKqQfgJDyCl9PxK0atuXzMNBKfKOB47sg==","shasum":"867e2c613eed9d00213919154615f95e296a7ac4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590794232717.tgz","fileCount":86,"unpackedSize":1478408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0ZgACRA9TVsSAnZWagAAU+UP/jxvN3kxf4J3oQ5RckPA\n5Uz1Xhny3zObyJusWnOVtzs9m7fziQCsys5wjavZ1x3jFyjD2NyPLoEc9qTG\nYtxIwnyYLnPGHCXiAz8Th8wCk2rNqbwrXWj1+mXbLcKGNoHWCP3q3iFLK0Yz\nmIEpeVE9beVrrDstmNLPdYBAtyng92Ca8E1MrD5KVG2jvQJ53TOIOIUCQwx2\nHYoJfJEoFH1j201QkdjBT7ffxiUsIvG44bOyolM25/zuODRBPwXtb9C7uG7F\nosftyTxmsygzDV1WSd9HOKj/hkQqPoFGJnvzf055IMFZyidWlXqLv/XLLu4U\nNBCL2CIw6QG9uB5BvC8hJDbceEGrEE99d5wBtooUGgf3K4arYieo0zzgQelf\n/KtreSTbT5JHh7CMCLCUcz+rIemoHXC0jTcD0Y0kVRpDbD+YPPRJnuzbD2Nm\nxGKZ+BYyn/UFikZnZc3TnJWG8jCufaju9TQCYtNtemUUI/a+yNpgfJyUv9en\nihxb3ag4w+0Ilwt/EGflYeAFwqT1roNaZAf5J1nd6bfTIRzcFsjPqTbsPmiA\n4gtYqVOMcwJLJDbuMdA6d9CSS944t+FEUBIRjktT0vcxhU2imTHoGFM4/ZJm\nsBIZjdIFcRmEjCdaNMG/k8WDRhWnLOTMNJFN9giONMQMZ1gLqUKofCdZM28R\n1wz6\r\n=/BX8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFFA2m/ro7Y+aP2mjeMI6Btfjk+G8lQybJY/S0ytxgxRAiEA50ldF5EuJHR8FWb0WY2BVcSdTmnvbS3y6Er+4U6/X6o="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590794232717_1590794240300_0.6479795686891034"},"_hasShrinkwrap":false},"1.0.0-next.1590816450938":{"name":"playwright","version":"1.0.0-next.1590816450938","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590816450938","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WvyJlAk2K0t+IauXr75L4shIxvpxSyOmdkP0d5JURKQcsGZl3yNTRd3d/MwuRpDLpOSdI5gBXMmkHaAXSEVP+g==","shasum":"98c57f8d6902d9bbcaa5dedf1d20a3cf68a2f4ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590816450938.tgz","fileCount":86,"unpackedSize":1478408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0e7MCRA9TVsSAnZWagAA7DMP/jNWjuslv0JhOy7pBT4t\nis4mqqDFqz0Yf7i1yeuXVLVldyU7BPzz8fPStsvs3N/iF49O4c8hYuzYPo6t\nvDv6YK+5wf8sfYf/N6C1hj13BoF+m14h6ycLJEDFjfwCW8rbtA9zpylcK6ks\n50I8FGTRuT1CJ0fPUMg5GJrKBrRAwHB+iqpPAbxHmicmhvkIbsM+n3swnShK\nTzSu5ba9OroSkGbF9Ko5aiPBzwwwt2j6sZKjC9/tS94TA7i9wyXiM2wF4N/y\nG3ebQIJAylAh4Od9Hb5Xr9sT4fVl4/1UFpLLPUW+ro+Vajwlyrjx+Wm+aDLp\nGJBU9r2Op9GRrkRR53yKqqUomfh0OihZ+oKSAs1TGTQEyHOLI7FFqnHryHa/\niPpaHA6NMhFVfV12bq3Q5ulB9FLFKpRd3Jr5e1/5+M36ufslu5zC2gz1NKvf\nRU5zP4tIeOTnAjetx239O6UNFPdrp0L7PF/KNSmEbGhEcYQDoIe8KDIj8woU\nCoaRqiMTP6qsJwSoz+X5sQ9PcS8oew9VaT2tGUMsHvFmq/cnPM7ebtmMldFO\nxH4nlujwZJtDHDLoZECZq6nhJI5+4zEMjXD+O2PxE9iBu8GWmdxQ4wp3kxMv\ndHgefYE8YQs5Vi6s5ORWY6lWtcK1QciB4B4OKaBAQfXT2US+lYUiXUGr4lAv\nx2uU\r\n=EFwl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQoeFbw0LFRUU+3WkmuUWoDDA1MRwtI68kC3peua0nEwIhAPqXOKlWjSOpImxLgYtpn4Mu1W7vGRRQp2eNyZb/v5cZ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590816450938_1590816459409_0.37485448848948466"},"_hasShrinkwrap":false},"1.0.0-next.1590870737913":{"name":"playwright","version":"1.0.0-next.1590870737913","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590870737913","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6N/4fAaiyIk9rtgEBq1i/WM9yUOAssjKZDS9G7bszmOxMt9FWHVQcey8X2lt0KzhH2JZcBKkiHXprg/rtOtQ8Q==","shasum":"ef7638d9d46c705292b224b6b56f521b3b1dd363","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590870737913.tgz","fileCount":86,"unpackedSize":1478695,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0sLaCRA9TVsSAnZWagAA64oP/ifamCwT+lokExPAkakZ\nrJjwu04Xr3HVxJNfQp90jepqOwbGI5iorMfKNuHIqv1h0N2sq3dvupb9ZHab\njgfjmFg/AylA/oOB7LwOFhIsuM4vTwvcpERzZi1+m4yhTfQyXATMT+4vLLuo\n6rbhRCCBvju4V6IWdgcETa5HpcAqEP5Wf29FFw3QsnVEEFd4hNIgMeo4dQa2\nFlQFpRxtcrPBbyZtqPdPgpkn6vLnuv1kEr5B6uN2VmI2APJ3NMBNwdlDlnQ1\nu+KaAwrfU+gmDLjyNj16P2XRWC8cHxvLpoYB1S35EJZ80qb/GvbSUHBNpwa3\nnkquwoVy7ga2nLecVcXZdb7gIUAKWoCXVFztxiAc5IRgKBClHrd9iMZapTE3\nGYheMzBRVbwnZMiIyZ/zIzTOmFmj2yxY2YJSKEtcjIefjpAD3kH69Avrx1Zi\nfwvdbJTbX6mZzcVh15AZGwOp7k9Jm4lduMp6fAcaZSD0AcrFGMZGIVkbO+h7\nChxirGasYaWyZRWA6AQEbX0ci4NLLezzm/pgqWzfs4IOIMlzD0bBxHwej9G3\nk/KcvN8YLH2LSi/XTXXKR/FVeUqnnL2esb4Cnu5bmMmK+z495DFKbx8tn8Dq\n9a6/aEBkKXkAV9LS1zDljbmOFmzWJwgnUCHn68Zt7DpnznMGxnuX8WFdiv96\ncz51\r\n=hafB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGRVOz9sTm5j9C9JBlv6tXlppw4gM4lEBg4ubEc/wrsQAiBTRWQJIQog7kc1UyCIvuFroMnkKMJvPi2X4/Wff0cAUQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590870737913_1590870746155_0.05092798997820602"},"_hasShrinkwrap":false},"1.0.0-next.1590876158333":{"name":"playwright","version":"1.0.0-next.1590876158333","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590876158333","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-w/D564LOn/dGJOklhCWjkm4K9g7pwVZAb7VF1mZKYXYtsU7N9wE+ikMmDeuiqmIAO24wXPNOxAhT3Pn54x/fbw==","shasum":"ac851a3d49bdd125fab05105b723fede06e4eb4e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590876158333.tgz","fileCount":86,"unpackedSize":1478434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0tgGCRA9TVsSAnZWagAAaWsQAJtvEl5jSpnM3YblpAXg\nEG5SIta8xQO3NPQmzhcnb86596jIQcOxm/0EKB6pMFX2pyzK2I/KEQ2f2+Uo\ne5I2QAZuYe4oT8cXEqig2j8u57DM1i7IwPBk9MjaIK4fQS15K2xs73F+0KCf\nxWx+bEvCr+euUADXnmQOmrMbD+fngQdQlaIU4J/eHbiH31LVzKQwxb8m3mTy\nutGuXek5g3mrFT4HsOv3Ru6vk4VePj3xHNfCxIla7ZYIgZmxTzeN5VrWIkSk\n+g36NwdWnz4bW81vv2hPQaogThmMuU941vscbdGoWcVbMU+7JrbGJxS/sx2M\nbnHgNRn0J/CvLM5VrN+bINUIpqrqmwF2P2aPKjD5fH9SVxuyM+UTdRmqxNJn\nMUxGAseEwHVzrknLLMsWX4R66bPjq4hDIrtCC/w/mm3YZ1Oo0NOYptV4y5eB\nC3Ed1r5nhHjUu5RQz9T6fgJZeRC6tJ8LaBISd/W9DfbhVq2thx4/S0AvQwDZ\n/hFtyYPEYM1bYr4jbv38yJiiUsLoMyS7/Kwdwoj1LosWEvG9+d/Eh7iWLoxf\nBMs1d1xvKD+I/Rwyzd767X9nV6HsRGPLVBejtS34bf8yacNHoLl/NVapbKVZ\nbQv1ldWunJKv4/esqcQpf6FC7KHI7m4gnXdLZ+Az1ov5i1CICZEwbLYahL2V\n/IaO\r\n=6TKk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYa8r/Ei090A/NPksj3M/2mvpw9dymLVeOae0flGeMkwIgHeJ/8KTzTzbO0WPM8giuSsv76w/+tJu3HEJTMiM9KIA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590876158333_1590876165755_0.10729708288860706"},"_hasShrinkwrap":false},"1.0.0-next.1590937729010":{"name":"playwright","version":"1.0.0-next.1590937729010","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590937729010","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9xFa9XXc/sFSpU57zoZiDkGzIOkgl2YNBdyHhwFXDbNRmtkJJkamAWTYe1xCz+QIzIAmFAJwzDTJVqCXUQronA==","shasum":"2811703aa8d5bcca465fdf299819012ae4a7fada","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590937729010.tgz","fileCount":86,"unpackedSize":1478434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe08iICRA9TVsSAnZWagAA2bUP/iSO/wkS91YPs1RO6hGq\nKftTUP+bVXvZB1ik3X7aMw+QrnOaupKX5W9ZZnZ8TVVfbnOkEFo/S8zPxfba\nmy9z4K3W+gm5yVBAnEwYgHedvRcyg2b4xqUul42HIujYIpx9rs/JnA6bZqWS\n6PGIjCu+fv1HMQMKnxdUkUGeOn4K+Q/e7ffMDR99/t4n16LPE2uewn6vJA+z\neRtcPnKB69fMfCc+aTeVps8DI9n41ZlN/bXnrWKyHATsHGa1lZwRtsPdrfic\nBsC6ayzPrMjHw29p3A5SaXFn8Xstr/R6gTNieSica39mlaFw/lS1RlObAblm\n1Yon9u/N5UOeKTFKryCSfavSMHFwdM1mwPzyKe2vSu2+3tdjXu93GTFaGDlH\nCjIVOzSUjFXi58xIsGNLRtkfnaKShsncPUR8mR4yw+/p7t2y+3E6mML5EvxN\n8lG0ZfvKogEPGKzTaYWsylhin/cOFn/I0ATTVnJ2uKkqmzVs2lqDBDDPj0Fq\nyS2pFLqnlflT8SXCwJHG0PTCxSnlr10WIm+Bz0BY//zyL6AQD3F2v+vYlsg/\nu2CcZfgi8BC7tMqN7C78vGU9Wu0KkEojEp/apEFMCpbzjvnivdmR2XPDpdVs\nXFzVbzPW7rxRjXnfiG/dIiN5Sdv+veTn8gV2DuwJT/rBVbnUYPt+FOpNpCHb\noed3\r\n=J2G5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCB/zbiMpssr7ZDtKzSkdq3PTOM+0qjYtqPEewW9yjn9gIhAMPhOhwwbvnOsOg6XNCTOojoD0GM6FablrC+A+F8nndj"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590937729010_1590937735720_0.14806964389029642"},"_hasShrinkwrap":false},"1.0.0-next.1590942640056":{"name":"playwright","version":"1.0.0-next.1590942640056","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590942640056","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LEV7lqAe3FbWwau8nGkRzx2RG4l+OAqa6z2QYYqXS655c6aavC4/TXjw+id1k/pTAnJXhPOBIrH50/PMeHIvfA==","shasum":"30b6fda912bb2295c0724361569af3703ca52457","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590942640056.tgz","fileCount":86,"unpackedSize":1479074,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe09u5CRA9TVsSAnZWagAA450P/RsSt1HZzMSD9wg5dpjd\nxW+pHsojw9s/mvOyIA+ofCNaoIuEnlnF1afD20DeQTBZh//6wfS4yCwfQ7+j\nAot46D0M8XcCEYH3sjOpCAZhykv2pTnqIdpFutZqLaUn/hH3To34o9W906Yb\ntnkCGPCH3HZjiBisETtGGAbO5Q3B1FWhSTK4mkTD3N+TxGlpfBbXQPW2Qjsc\nG4iWi5z2NjSbPsOPNZpRDGPl6fzmE/ZVWuv4O4vBrrlpxnS05ZDL3v1yYPPd\nb+WmIGkdrGHduYq/SjGSc9Gq5Psg5bfccD46AR0jUPySFudNpbGoxxguOIoG\nA0L0wqdkBj067kGWQiiWOeKyU2NQ8pVvdjclNwUxB9g9ZmOPIKDiFOSseAK5\n3WrXxCBBwXXQoC3kEhAD/OpFlTnUDflZdop7MiE2bCT/5xh2cREu8eXGOWj5\ntMohC1QvTvtZvMDUCcgb9/enbhFKQc/Eh10HMkD+eMbUh0VkhFbgLtjvg3n7\nNiJtio8dPwz/qftcVm9/wwjc80hG2Plyx/p1cTYuDK2O6QxF/f1MZrha8dbz\nqAcTeNZTyl90Dhjd1LiRihBlqiKqoAViHfLiw046hXCW4ng3IQpbBlnG/vc3\nQg98D2tW9PJQEXu2v990I39wZpxXNHZbBnNGa/yiuDKWVUcJHdlvssGQ9imS\n2xwC\r\n=AoZh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFaQ8+cZJge1PaEdNqbnFZ+QlM+6KkySg3Btkj4c0FBAiB0/ep3yGNb4h81Xhccoil6q8FBtVjsQOTIudizHh61Kw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590942640056_1590942648658_0.10932691720222887"},"_hasShrinkwrap":false},"1.0.0-next.1590993840787":{"name":"playwright","version":"1.0.0-next.1590993840787","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1590993840787","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-icazrM2uz7E+L2BAPpPgwHfoEZ6OJ1CzEAqkDiouZezKCwrtIAbn52KwYCAAWXrsQGBb1zrCUm11jo0NiyGb3Q==","shasum":"585fef10d7cfeef984fe31f47de92de94bba757b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1590993840787.tgz","fileCount":86,"unpackedSize":1479074,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1KO4CRA9TVsSAnZWagAA2X8P/jAvJtwf4dfXkSAb9VXd\n6zo1L3p25LliKvfIXMwpPizyHF8D1IoV/rB+fFekqoz57vtqMMG/U4/ybQBr\n62HXj3G7wc84Ziruy5KMNW9duWCE032Ec0m388x/ENMA5moPGxL6CChAfIC3\nqhvC/pEllPCx//hfJ505Bxp1h7occ4m6hG90etUkm59NhePBV/CuvQC2gKwK\n2UzQ9pC4J6GybFj6jl+V5t86nfUefxfmFy73OZ1IuORBOvM0CsRI1jVLf0OJ\n7+f+kWf1h/tRWEVMrKjtBEk+ZDC7lLKkdI0oR9G9i1xOIKlTW5K9X+W175Ou\n/WhLnQyCQxQ8nVgt/ORQrGsyvoqzOLr2VgDfDaT63nPlyFmSyFKk8cSCj0T8\nEwYe+9SwoqtSbaAOtAt91EUpkgHiCBh2joLBmclGh1gWY95k+wd7cav1ADQf\no8aXi1mOQqjR/wjHeq8+x2Av1GVsI325n4m3KBbUdm1nIZVJ30gnAbz6MnaC\nqv+uJ1FnEDf6BAwsr+GClY/XaYs/xAXoWU3oJmp864mJwVmmE8F0s5DIrLew\n9BOWGbHPCqJk6wplkeidCs1KdgKh4AzBSbdmhkB6e6Z+/KWnjeaVyFx6Yiwu\nlgnv1f+nfPeIzfUAwBbuJEg716bDWM8vbzU9p2Wjiae3xxT0X7eRQAEzelLj\nTuR7\r\n=dBVY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOw+WmcFdFFVRzzmGYOKrvoNpWE46x1J+RRGZUwBt2+AIhAMmmFEFi0GbX+1bguUhp7VUYMe5EtKyrwsVzzhYyUwmM"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1590993840787_1590993848140_0.8001693618320249"},"_hasShrinkwrap":false},"1.0.0-next.1591027031031":{"name":"playwright","version":"1.0.0-next.1591027031031","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591027031031","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kz0Hh/f4yXSQNpl6jnvZ+UCap919O76SbACfjVdDkwO8p4EFWPYm0y1kgxXQOQhPH9CW2Zt8/eidg1DVJFMR6g==","shasum":"e6351f7d6ab0c5b18bff50ad31a07e68c7c94e94","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591027031031.tgz","fileCount":86,"unpackedSize":1479267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1SVfCRA9TVsSAnZWagAA6LQQAJdQ9jfS5dr51wb5814q\nujUsBHwOlTzliSIVusX/WHESqsVA9zyjJF0TwS3F/185HjosLUpmOxpELdAF\n0QfETNmq0qPBIAmHJXa0GqrdD7491NegHkSzDrfY5DMpepFKeVY0sKNiW3YU\nDgSgGkBXVfAl+didodCX1KZ5xK6V8KkBqIsK6P8aqXeXnz57VrfHub5qJsdu\naVnd4q705OpBWVi4rl7/f2li4d/745Y/PXdzpYhx3SFrWqLdvK28F4DDUk9p\nfHqSngJAHV3G4n/zfmNdKLTR6qagA6wMUCev22wQXL2VTmFEJ6/Z5pU0b68f\n2ytmrDySS86Ouj5F6fTV3hDdbPR6umzqnM7ZHOtmGFHsajcZ+prIklQNBPAJ\ncNq6z86K88Uilj5ngnYgXYM2QnJ4qMwrPbnSqfp4iPFX1xwUZcKXSpb0TkLI\nTJiVZiTocYAt9JNfyH8AbebP0LV5naOHQtRgfk6sGPGY627aCT6Kg5Nhm8aP\nMXEXn2Krp83ULP2wYd7Ey5RdujNR+BCUtjVdkzLID0io7MG0EAoJdrU8sTOO\n5HHXsdXvvmLQXNoIu+ABXqQk6Bpp5TrSsC7gWzyw4Vnz3ATMA8WOgjMGpWbd\n+qJ6vgUI6NJSUzafNKI5kEBNH2xlp1XwdOvjNgSUboJJaaTMHVhcS6HcHcRo\n81wy\r\n=3LtL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuDtt5REq9uamLUlC4gUcpDWhinQ2kMM83N56SNHmBVQIgDsMJzbFvtrOsdtbnoMe3w+hHRCgyFgE+h8yReeB9kdI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591027031031_1591027038433_0.1689004896708377"},"_hasShrinkwrap":false},"1.0.0-next.1591031716099":{"name":"playwright","version":"1.0.0-next.1591031716099","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591031716099","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-y61392CfdstfajptUDpQST/MdEFBpBsL7xvEc27Op5uk0bs7QoBC0QKp7Czr7/uHZVFml6aHDhBYTtFff3SCJg==","shasum":"73181a2ecb29ec6d0ce7b28b64332be8950b337a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591031716099.tgz","fileCount":86,"unpackedSize":1479267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1TesCRA9TVsSAnZWagAAVe0P/iEK45fb7+xqwzx5tHA0\ndcUdMgoQnha0iBFaI9IO1ogmjGd3O2OMsJkxogJTz904pRT0azyBXotzsgBF\nFugstjU+KaAhH46XXG1+c8WxkV6aVSGruVg+gI4tH2At+fXOhqStbkqbGAnC\n2akvCOkP0c5eC2E/c0lURUU1RdUkMnGRaZEPu10igPn6T8rQ1t/J0IJzQV0D\nPlyNNWNfFJ0HhWRcUoWZLBtRi6AuWjLcEKxZj1vRsT/24u5FtiT6dNZpTO0j\nBwtHIVuqGF4xjSlliC4knpmElFaz7Wst536kOfF0xSTXp5Iw2UIwTVay4B2o\nw6c/dgdaf+4aYt0f0/ydEUaDuRzWzlAorQV4RHxjX6bHSWioamAD/TPlYJDx\nxcTvEJZ9hrLDAbs97bivi1fgFGFASCq/g22NB9Wpa1DrwZYhBl5ruh1pwTc2\nlsTmjyy+00c+AlRz1D5iXCGAaQq3vBkoK6SbDjPvtVG+Hc8NGP+krBwgke8h\n43TyKv9iVKWYAN5rc8dJ8V451opvnU27TDhBWD4EY0F6+cwj3HHNJD8/RjEW\n72Tf7FRMge/laWPb2ak0P0y/it3rBLRJup2ZI/F/R/riU7pNZW/lrFtlugzW\ndJPYWduC8szk0klyVX1s5qkWX9f7WUkt9rxJix6gf2N2R5NrUwnck8GX2ZQ5\noJsD\r\n=kmDJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5Sf0xqwistbuDIGshvUSTtXHXl7bqeVA0EBIG6uPafQIgWygk75xsfidpxVNkydwEKKT6NY+nDTFrKVhzTnCb/gE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591031716099_1591031723436_0.2771928141675104"},"_hasShrinkwrap":false},"1.0.0-next.1591035349301":{"name":"playwright","version":"1.0.0-next.1591035349301","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591035349301","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oQgptZlzKzZYkpeG3a1AdFZurRVLQOKalLJOCEYp/xhV7vEX9TXGhsQwM8dstOjxpnqiLeHIW9r4WUmgUF+p/w==","shasum":"2de3c6c0be5fddea70d8fd41cc214eb866a8e7a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591035349301.tgz","fileCount":86,"unpackedSize":1478344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1UXcCRA9TVsSAnZWagAAn0sP/0LubLrcCK4ch6XDnSHZ\nLnPC3iwQi+dXsrzbe155g+vBAIdLHU9PUyUnQHwHGCDVcdcxRcmw6NCDsRob\nKGaQ82j152j2rHoYWSHesRhD45p2ly7mMNJKZ57JpCVO03XpHfBqVvZ/UjuR\nSuaSvmXSXB+KekR1P7K3lL5ic5picoDOrhzbO9xdjca8uCge1wnn/7Ja1Fsj\n5C727G/dhz+J20jxjbq5KfVd1x17n+p9LEs+Rr+yWIppTxrYQYipsaWcofxz\nNlzwd+Tk9939f7mEMl4tYulQnRDeWPnDgdLkdDzKzajlQMZI3/GiN2kShtGX\nz4BYswYdHAoGHzRWDaUhAiHX5kRHFBUJ2G3Qzi93HSS66JulPBCPvjMwxDa1\neuSY+DdJm+NSKgz6WqgEDEKIwSa8TBOB0YuwW5aR/25aFT5o3ORLuaU+iDOp\ngj34DtK47DHQN2iAuemRxIsnLQ7FUKAfCp2v4LkBf+O/o9xTJRKpvA+JTlSY\nau7OPaJB33UcRYoO18sNf5DEPaQXsNhSWME89fYKxBC/Ip816141FULVM/zv\nzPMGABAwKh0BVOQWzZD2aNues/AOJjIbCygC4z03vUbwO3KXHPPjIall8Qsc\nytN2BHKuoDmFqubqkX7SuFvQtK+nd6AMixe0k1dBOeEi4lmcPomMEmN8/uK7\nZy5N\r\n=OeVc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIUzMDVgItH2y3yNpL5WVBRKUbonlAmnlohpnPA9SHLwIgTCOArKGyhXVIERDpuKHDYjgVbMYFffNqnkpP4Nz6Ou8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591035349301_1591035356373_0.32337676277821314"},"_hasShrinkwrap":false},"1.0.0-next.1591044509416":{"name":"playwright","version":"1.0.0-next.1591044509416","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591044509416","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qMM6/flImFhbHAh+lwiwz1qv19mqFwCXEr66fKA+FGCuMyqtQbzKJ8wMg03Q5RiB64+852zFtZ7m8vn/a/BpMA==","shasum":"09c0a3a4009be0a33a7ccca72ce7c7f3213ef532","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591044509416.tgz","fileCount":86,"unpackedSize":1479198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1WmkCRA9TVsSAnZWagAAilQP/2AKKrSZbEaKBHyYX1bT\nQiYXdyxFClaltjL5nxcXSa1+otnXrVhDCTxv/72466AICUualCgzLhrVDYpi\nwdqnbOX/1CXJaTyNBYOX6BJ7gIDAO3BD5lioR4TeIL9P8PH7vOpeoGmRxNP0\n4WjA6u9q4hEr6jsyTmYCsaosQByt/SarfkHV1imE5JkhaBa1bmFWmr8Yzrsc\np+ecKwezUdY24vWBwK+QsbL9rwTBwx91u/+Jz0hffO7WcUP/MWkud9bRft7v\n9ZosN/3DeSYWO8lCJNlCV6T3bBTRwA/1H1jJsR7PMbk+y1j7uRhFlF8xanrX\n2G7lxVZJKJvb54++QyC/UDV3O/haJSb0DyMPUByXx9AoJDMPQ7Npey+k+XCT\nNAnTBcDygmNGiCaD2aJtGe03N+UMpdJjqxFUumvkv8m0gG+V2UEZrqeCrqSb\n7EzkWsByhaSjbioNgABXU6M7SEpxjTy39mh/XL+t4xxUyj/5AHKwuEJas1vz\n12OfNWSyfWVuMvwNUIP0/JdCVrjxWl41td5NaEui6TLM7WZ9xed4bx8LbJ1/\nQMIjIFg1/4XxdsMz3Xx2FMCLGNSsCs2e1sxcswhKGXmsC+oNY7gBwv70Y1kl\nkX3uKvo8hEeLPd7UPTc1KTaGQifLKNOTZPITkiJVmpEqOsoYYOKcMedYciE5\nRSd0\r\n=cQrW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGOSz+XOxbSoRYxeBg1cFxN4Ri63DzdQ3XxEcf1f3dsAiA99gQLnp3odplqlI15l120KrOXVs8WvGymtLHQqy9wxQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591044509416_1591044515793_0.9667769322970241"},"_hasShrinkwrap":false},"1.0.0-next.1591049996694":{"name":"playwright","version":"1.0.0-next.1591049996694","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591049996694","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3JgJkdJIlw/1TrNiCk0CA13h8xFzxvbs5WyadG5gm2dX5HJROg/uBIuBX+K+zoVkIafi1V0dckt5Kd4Tdahvww==","shasum":"8c24999cc0cbe671743c0796b385530b23ea1f07","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591049996694.tgz","fileCount":86,"unpackedSize":1479198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1X8YCRA9TVsSAnZWagAATgoP/i49VTkJJH7JvjgkB+ZX\nA50L+q8O5rtTtQoaSCRLP9oAaf9NcyldbZjjGHWsfp6Bdu48NgypfWnrUq66\nItLq47BI7b+OWgig805CEJAidljdkgaiB7NC3F3ru1wSLOz+YbtFzdQ9Y6rK\nXDAolNOMxtybH0lPBcFGfQTKm0xlgH/NRPc5fFjVYbLw+z/nNo+2EiuHhzMh\n4IUCpNKBysPTVS2cFPo1mDnmRfSSOJKlBJxl8TixpV9SAXxhglMriXY97vJ+\neWRlIijRwjBwrZTgQFP4RgMMbjpv6sD2wFPaFdOnuO+24H4hwQqXGtnzLtdJ\nKwXIH9ZixKZqaOZ8G9bNcD5Bz5rl+DELEE8Rq5agMOgpjte3wzVt8qJd9yDN\nGdyx0pMylsK/MgNm5vM5hRrRpNNTjbxCmBRn13SitkUXMGikMXBg6z9V587w\nMgtzjIs3G5n1XfqwXC1KtgOu39rJoVj9rBf6MtNEni1FPC9nBWxWNX0gCKh8\nvWJpo8ublc3/mi/Fzz/0lD64xEEDrry54YB7DxB/nosdc8obYZq/ETkpKEme\n/R1PSRuYVP+m7v4tM7i9694oYt+f4IiK9zFhipgOtctIg3HH6DJNG3czK4gG\n+8kzmn9VKCsh6ZdGIA17MYaEvjV1UB5BRIxiE3InaYDxn/LKYinkiC1nhSt9\nTxce\r\n=0CQY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDRBnyBPgQsaNWCGaraph3jk8tNYrplEG3Q4EnuS+4KAiEA0bmo2eiD4VJn2XmPYW710TmAkilN2p73j71sh9Tkmjs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591049996694_1591050008121_0.8312608047028041"},"_hasShrinkwrap":false},"1.0.0-next.1591051851902":{"name":"playwright","version":"1.0.0-next.1591051851902","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591051851902","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/IA62xh1l3D1MLebGbn5L3RAPiGPrxUApLm6rkEbfezOeIiDWpcsglZjvJ3tMz6ZzPRwBs6OqLUJiSRphx7gEw==","shasum":"7d632e3105e8f1e9b243bd39de57482b2f8e7003","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591051851902.tgz","fileCount":86,"unpackedSize":1482446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1YZYCRA9TVsSAnZWagAAPcoQAJWfqZ5EDsc4WMKC0R1R\n2FrHTfh5iWH3jYZID8rheeaKMFmpISvv/XbqhiBgMp+I+Rh5M792+ZRGtXhH\nEmudxavVo5ja5cxkycIKAejR4kmPTnFe26JarVtw+MGYU0HEnkbMUeiDXQii\n5Ica8l7LeCIiM5ZVYSFrwUFHvK5crqXuqRRr9XaRcRPTAthicXMITwHx8bTe\nwzGvxDt268HSCXwQMYa5yNUJZh/5AkE1hroU46llc7oXzuBBEDOmeNFYH5aJ\n07OkNjKROPfxJZj4qNfte23o5m2HSm7mrc/BEO6u0908woC7cFkNNRIJmKpp\nag+VtQkYUo1JR44fd4IQBsR4ZSkKQaiG0ePHVQ4nE/kezaPUBvSTtheXjsCc\nXb1MS6NUrX37+XeIueZFvV0DyPg4HvfpeS0DUGED92vahArOwnU8pCBD3XN4\nrUEudKu4pi9X2P6u/8G6WLzvsuaC7Oh4cj+QISKieuoTpbV8CrXDCJE/SB9g\nHtXyyBFJURZAkcF2HnX1zL+gj5Lr/pVIxk5sOgoGFSgPSyYPkhAilWYeGfnM\nyF93sTw61AmY2TtFDFU+CO2CrrpChjthjqvUMTT94XX74J35eMrr09WkdBR/\ne37NWXgemrIy4n+m0peGW103Q1qRXnKuTQ35DoSyt5xNFac2GwHK78IyicG0\nlI+j\r\n=po6U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqyGFyiltTvQaLz9rFnTlCmWkCJxUJ768VVKn0W5iSbAiAA7kj8Eu5kbcU6FN6kscoDQ78HtzXxr0KNXI+UUuL3Jg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591051851902_1591051863500_0.17718115529558043"},"_hasShrinkwrap":false},"1.0.0-next.1591063099143":{"name":"playwright","version":"1.0.0-next.1591063099143","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591063099143","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YGGsLScCG0in0vaK/xL2xM+xKTh+5Eopa2Nky89+mDval3B8Txi7prIRENMEsOWxLo8nELBY9KwXNN+4XgiBIw==","shasum":"120a0616e13f5ae3bdb0b894866fda86cd8d4c5d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591063099143.tgz","fileCount":86,"unpackedSize":1482921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1bJCCRA9TVsSAnZWagAAQgYP/3QnmA0vfDf4CsLxaNXo\nYQ38Xm4ZHTZBEh0Kjs03YZ25sqANJQ5ieTEh4uCnhOgwuHDtOJC42LLOT+GF\nMeuwFvB6opq515+3A3q8a5c1krQQ4AIBxKjLmUO5cu3lCTF8EIlyEH2XLziV\nqOJc6fm1udu0Q9W1NDUxKdc7F1fvYQEQvg3zvStEdsEgliq20V3B6HoQAbkM\nPXTAbOHcBXDKwXheMFH9a3GZELvXagz/xBfHJPCS8979cx3/q7ks/AF3SWSI\n0EXTVcWxoiXvE+ZOrb2hVMtbdX3qihZC8vt323YEdbbBWBgJXp17OsRziy8m\naRDCXgm3yRTGaZ4GHzSLsGsI3UQDiioOStd+7unPHG7Ey/1yWH7oW6tJ9Zt5\nBB14wthNIunWU6RH1yXeufapbwYxmhXmb+5PjPlAUXE9gVXidMnwZxjXUlb+\nI/eHcds8jZzfzQArDTxm4rfeGb0M90yqRWt5v0YNkqIlOh8Q9GXprOyiEFUx\n1JxbdIQ7EMiqWb3MLGMTpJ8JYDjlDLzAfox9Z2TmEU0KE4l4siqCsTirbU+e\nJddnLIaNtAjLkctBSTujmr+9WM7/Qw3c+XVxntW0LSFtDJ7jXZaYD78nFAeB\nLTyH9BLlaVYBVCpND0acR4TvSBZdD3UGRb4xZIJrQraHa727vRrmWwZbeu4W\nrZtI\r\n=A18P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD30TEFXiSMR6wRopAAHkE3FpC07XOOm9eKJjTNVwt8GAIhAMXK/EzCzSVpS0ixfNKe2WHtDIxereqlbz/nLxQ0wBEu"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591063099143_1591063106163_0.7407939558450192"},"_hasShrinkwrap":false},"1.0.0-next.1591136500591":{"name":"playwright","version":"1.0.0-next.1591136500591","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591136500591","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cqEu3+i+DzjWceJFQ94w9paTkMyo2ZQ+hlrPdG8owOZ11l64CulcrLMIYV82x2oCcBfWqNv1+CV7URsj6DIkEA==","shasum":"4a3917864696bc4d7b4255d6afac99b43d3d8787","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591136500591.tgz","fileCount":86,"unpackedSize":1482921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1tD8CRA9TVsSAnZWagAAZM0QAJHsTDtfDhHVUYpyiUJ8\n6KyGdr6bK04UI2BsfxZf608x/sWAS1yEGaL5wRUzyQADPwWVrHj7C4GQid7J\nLXGu6i5I/nAtS84qnFsazbcp42TT5qOeEGXxztFNvw1uuQ1CCNaKcuDOGDa6\neiTwRg6/ICklyjrhvJS9GwnGFK8rkk0g9KobR8N7VHvfgVMheDVrqx11HEj6\n74jJPWZ8661qyX9ZNKsGyiGLng8fPtZrLxGOIJ4fNKt4uW2Fr/9fZq6O1QKM\naZp3Dj2If1BhsfEvFVZ0B+ZuPHAi/idkeWPTdFx5qCgbaHuF58eBCX2b/1Tp\n4GPaCFUUL0QpBUkwzYcn78Liz6xh9RanlxmLAtGEDQiHfuE528n3nHTnc0q9\ngkjCniWcfgBtOwZfyV8XA1A3G2kUZSWQ+ogNBRTdvIip+Bz1gnPt6Yeqtp6N\nWjVQpC5jgPkCLhVZDD/IOlXbo8dqf7knVLbju4LIWF3Ud/wUyMomZx+l93Qt\n0CjfbtR5JQNNQizmFniNvkU+X4ceSVDthdSTJzPVKVQLMvohhUSSrTOCGNAG\nug3xG+uTy6WAK9BB2xLM+V9MW4f/3ar1v55DCKUVoqfvk0gHKxT0JVSa8VAg\nVxfUJ95B302nLCah+DK/6wNGdwJZpuKN/pdT/fD0Bh4NtIMajqdC9x9pB9ru\no5dl\r\n=5Gui\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnbC5YCEx+gXl1cB4oTIODC1XslMldj5QEtibQXh0MbAiABREJPX7IRmiHwBWQpMSnX+jkSzrW+xJK5ZvqKe9lCpg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591136500591_1591136507834_0.4604309406229876"},"_hasShrinkwrap":false},"1.0.0-next.1591141973551":{"name":"playwright","version":"1.0.0-next.1591141973551","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591141973551","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fdkhZ/27n+ysrZnsfBNQWIsg7mggUAxH2QZKCe8HcEvKAI4ttMNaJuBIfu00d1xumHGNhb3OyTMc3RilkRbpaQ==","shasum":"d81784fbba0a3f9b3a879122ea459fbb75799a80","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591141973551.tgz","fileCount":86,"unpackedSize":1482921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1uZeCRA9TVsSAnZWagAAJ2IP/A2IoIlPGWIbrLpiLKlq\nrkBBwHfTbblKq9V2uafReYuRWi/igZiv4KoD6i4iWRkZRLtGBeeIXgAekhQ8\nIIag0lhXdfbA8oi54CLsCuKF/GTrNtG8SwFvooM5pHIW1AyDkp17y6jGMx6Z\nyKOW9ZL1DSFfFUL48uV+eucUXeDo3YnhCKSut3pMrHeAjOsNWAUqK3Bi38T/\n7b12noO0hvxjBi+caWjrhi16i19RppiDrjEAbDBX/JybuIK4es+gb1eR0qrl\ndaj94b538koxkDfGcawLiQWnPjnMpfECc6BszD8DXuGo6JgMPvwac79l74+x\na3R6Wl5wdCMssIbo7uRrwuRmgZxQ7MLd8FldCcZTQ+Tq08F03y+a+T7Gw5xg\nU5aCxTXP1QzWCN5OPGPYe/c3Ykv/Nvt2CnLMjyy5mNhlOUCfc1sT2ek0syyA\naBMSxFHrnnGhmYPkLTR/b2H04z8yzThAaewvHzD60BBfsHG+UeLKe32PmdFO\nUGB0n5/zN1cAyl0oIKAK+ih4YHzwdVP+lX3toYOtia2IMrlM1mFnvq5SsZnA\npxGjHuffynB9PaqDHyOrl8+TIh+3GcAJ2Zb5WIKCgNAAVdSufTE0vJchfrM9\nTAtOb4OVop7aieXOmWg4m1NK1vgfl/kwayPMB/Rox4lBDsMcFSZJuk6aingt\n49ae\r\n=JG5c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEyPtGUHITuRAlq333Jm+Ilot8eYEk2aOJSKV6MKaHFwIhAOXN/FiP5rGSVhI77pwzwWQTlwU31GRRdCIGvqXOGkQg"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591141973551_1591141981545_0.4525169539360989"},"_hasShrinkwrap":false},"1.0.0-next.1591148526984":{"name":"playwright","version":"1.0.0-next.1591148526984","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591148526984","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cmjS7FOVyQ4kWuY4J46LRZUfSMkoYEj6XBRNahoggolnXEMG1Fq98o1XQOuexOP8+VvGh+nfLiKecPw1plvzDQ==","shasum":"eb54875b86b9db327539cd8f09fe777da28781e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591148526984.tgz","fileCount":86,"unpackedSize":1482921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1v/4CRA9TVsSAnZWagAA0XYP/RzSFHx65c5vitTEJtiy\nuns84jilRxkxEfWTG0SfFazex8/50POjg3JVJrvqgtsLHuf6h21n+ypsTFpM\nuw0TzjykJXx3ylX3lTvy+qtL5YrHbtyDxzy8vAT1o0kJX16aLTDWgwe10lN5\nsRkoyqJZM18St8BS8nheVAlI5xB7YXdjk1e+1s/GraDMEsa7XeHeY99zg55m\nL3o2vOEBMLRYs0dHoVlfFgfUSKat46jV7RbvPU8knsOtKa9fKhtxlb3NAnMt\n5YL/bB3KfpPAhz4KVEv3TCFWxNVXhZqatDhBEDYzOZDqCP7Q4vQ5KqVGY12b\nyMhgCy9RytTaUWEsUVF5c09w/FZ1OrYYsbfVcCVbO7D9JIxzVB8cWMVxWCt+\n7J9J3FlBWMC84Xm4LYtzz7oAhRVm7wp3AqOT1cTDoG9HPuysMvqj1LKaG9io\nIVGITypcoWBfXWLpUWc8yTChXc0GcBJEAMOdNlha33yTs7y/eGqcV1p2cnmk\nIeHSTwyGDnruDI8DjhhYn3vtGepwiBenZ678fsbNoOcvMlKbf/sUCk94xkiF\nyCTe16JLe3YmmPT98BRnOohh3ol1GGghevuCe0MFo1LWer0pH5gnw2rHHUho\nKfYxVil0yUmQiy50/q4SpGzgnmy3iZedfY5PkfTnafRjmYYWmgReWprLav1w\nAsIp\r\n=KNC4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjPlr5FUvjIMAj3aJNyvOSNFbRocRlJC9lleHnDtdn5wIga7WbDRV47gy+aKurQQ8LlUvsylF8pwto7xZf90jBvSk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591148526984_1591148535652_0.9215546733763165"},"_hasShrinkwrap":false},"1.0.0-next.1591150532754":{"name":"playwright","version":"1.0.0-next.1591150532754","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591150532754","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-az+Ux3EDcXknzxaKONcUvCar8m6MZbcpEV36NtYqRGjQFPxAHk4bFUZl6WBOvalKw0Ia9dzrRgphIdtg65CHkA==","shasum":"247e97466395c144618724f573aa570a454451a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591150532754.tgz","fileCount":86,"unpackedSize":1482921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1wfNCRA9TVsSAnZWagAAlb0P/2N1vGCBC28I+qP31baL\n7XhcNNZLTatomv7ii6MToOgQWaw/KiNvtMgqSepRza5WJ3iHa9e2GBU9C6Zl\nUiIFsTrDvarSbV2JGuK6mNN9VKEn7UXOUOOhSOOp8DbliCtk5wDWuGp79Xvk\n0Qh9Ze3k18bI6WE3AspAduCUZ32sVodZgzCk2eCYmZlwrc1DUr6RifQFr4lO\noBI7E3sr/0QR7IBRzh4IsFnKx9QMFuujHr4xmvXFBKyKKou6Fwx5hNQS+ZQL\n0cc85NQrKarUcRm9hlI8ScoarF8ILCPEn+5A08cmgTanh9EunmqQWMSg2mrx\nVVO/wbCQe6LbkZWMWHpTj2+/HPdIuBGHr5R4E5A0aFT6rKvCltxSxCXR8k2+\nm5/0Uptb/mTou82vu+ZHr+j38jU5Kse8w3npSQ12wVJ1azqOWEoDJatObhrW\nMSDjxbLioshDsFgLHfz0BKQlfHp9k1nONGr2TQAFZTr6q6mUIyqjBw9o5sex\nin1mmtzDzA+2x4f6PS0MVXdxKmhJRHXAFAhrOlaqKvyPpqN+cxUO2QC21Mfb\ndLh2+pwl++f5QDMvA9obCIk8DZG66iyJSXTvvtBKB5OtimgBjnDgqDTKLkff\nNpw869lhnrr4zpGM1ASxOfCx9hFsFnFn1dKHQQ/iUGKDZjgVmOccSZkeKSad\nfJDE\r\n=sCbk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGLJqG+ZF8+FRzDT9e+ZB53pp31FNxtp51/EfyBrzaK3AiEAj5CQ2xS9ShwY7iqjaEbyP2rN0IHPSCczaM/tdUjQUQM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591150532754_1591150540718_0.13787807830451304"},"_hasShrinkwrap":false},"1.0.0-next.1591199038735":{"name":"playwright","version":"1.0.0-next.1591199038735","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591199038735","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eMzbQH4a+itxqOO/2Mskh2TVZ66ImYyWLy0M+gGstkPkDMjdfdHA+OI0KDVRfJJthXtbnrnLiZHdqkptqrbTAQ==","shasum":"40fcd2e70c9d353eef99f5aca81604f175b8a6d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591199038735.tgz","fileCount":86,"unpackedSize":1482921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe18VHCRA9TVsSAnZWagAA9LQQAIgcDqAQJpWmd4rXah0O\n6NDXjzXgh45zlNBNfn23EXJlUgg9Yj5lTh13pM81LXhNZ8iHCsx4d/NjMlZp\nC6GhSoH1R5Gjy2LJJabcgpdqwZ7eY4RbpDzqL/XbPeFyn9QaZdZcZIbnQxR2\nz+kjiLFhatbLVjzYJCzR+0iRd4HAqvED3eXiMO24jD6UEluUkWjowcl6z/7l\nlPksQvmZP2TV9C5yJZJF8MdMTTr/kO3GuCzJjfApVMY/TVmOhcjsOxcwEUTT\n8g/1dXKJ5mr/m4KS3oZHWM60ejXGBEiUa0PoiYTRtGUaZ/Zie80HjTkOdEKS\nTM3N1yPXB+5Dkc+/FL5CK2MMVc8zDMystuMAl0TH+jD0soyvBNUrrEuhDi1S\n6RLHj1kHTFQYzrWvI+1/rlD7uaADUSQ9YxxG9F5QneJrVE1HNSC10+DzRwxx\ncgs6zMMfXZv7Dis41DZzukCFROIlCL0QrUhpEyouwOy5VA8dDC3s8vHJsd2D\nYxGKAXOFPD7HJtNz3J8ArBYG9NMmkjrDYrMEhiXHyNtpcPyIrQW1eXJ5HiIf\ngHggdpaN/lfVpNHDHAgkkEVYrzyU9lnaKsibO5Ht+c6IPeF/ue9xU5XyhY5b\nopJjX+VmbgyQK8RE62NEsyFScQQ6r5baatl95t1fo4LrMYdl+dGjOFeHJ1Vc\nEvQj\r\n=f6W5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ8nAD/Ouvhpqsvn1haLxKZ66INDY8h3fTu6wegVzWWgIhAIqp/jfkLIieNsV8CR+oDO/toQoaQFnO4A/1AP6E2xVR"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591199038735_1591199046470_0.08137952630354817"},"_hasShrinkwrap":false},"1.0.0-next.1591200985069":{"name":"playwright","version":"1.0.0-next.1591200985069","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591200985069","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oDAE157EcKViyQNjyGRw59kTrZyxDE1Dhu8h2Obgm0seaBw+VAafZb6sfsYJG/dDAvem1Tnq0KfRW2Bmd1vn/w==","shasum":"78f8890320f8c7fe388c1814bceb49d5fabd8a41","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591200985069.tgz","fileCount":86,"unpackedSize":1482655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe18ziCRA9TVsSAnZWagAAFdsP/RjHj7xF2iWH/3MAxZzH\nzYODNvFa+jmxM92cqKWtgtVyn82Bs8w1Zubo1XOvJrfLy0qrU1/tuASYaWI5\nvKfon0HvQilHUCkmZvpzLtNj3DLDnqUMMWomFDw2LMBqfqtkGuhRYaG6mk+H\ndKsOk7cXIMsNJ75o2EnWvucMtyOgaXU6/Yiv3XH7SVO5lI9mSY5WlBwZrkvY\nEUa2nbQWatsGEz8YcRW5KcbowrsCC7aDhzp11+a4FEHosg5jv9lK443FlcWc\nAjegSwQMt3f2u97jsjd6+gUXbHH8A0NbkRkzAsExucvSNcQtswwSLPY3BFQI\nf+j3IwaWuavWSES9U8cQ5ShMhBiGtitRs/PA6JjPZGm+CD3vJwQtC7iRTFO0\nwhPePnYmv0nSbG6+5D2QS2gNCj8B7cLRKT3jN8e6eSVDqVdlkX0FTkxEeMAz\nBYBixjzFOus0jsqRh9pv19txeMW/eD6udHlIA1zlzyRAburz6mwKmZAPB83n\n4PVmjsxoB/lqDevp8JXPWWfB73u9Tj1SFwLem7UmAmYB/0tBShcC+Bx6ql2+\n0Fik27VZxyKpQoXoe97QRPeLH1bUNL3ESGdJ4yING7uEuFXjJc8DlNbsi4dl\n8QvqwhfO00rg6UkqbReQxGJvaQf5VrVxtA9wPIZAlGHk0FOQ2WF6AmB7HDVZ\nebRL\r\n=CjXm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMPfKI60WfmdCzyeuZ4Q+9R3w7O80ppd0KlnMjG1Uv+AiEA/nROy301b/c9uPE2yHJOlotXvzDd49chM8AaJR6G8sI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591200985069_1591200993483_0.757244625681186"},"_hasShrinkwrap":false},"1.0.0-next.1591208728798":{"name":"playwright","version":"1.0.0-next.1591208728798","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591208728798","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-163sbHBMXp8JxfLTOQlKqC9eSELxgSQzV4qoeXIMRns41EYS9GwyTsQz7odHhbeFNTNrFPZsloT3t/9pYndbVA==","shasum":"1b33d919599065ec033ea4968a08165956f24a27","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591208728798.tgz","fileCount":86,"unpackedSize":1482865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1+sgCRA9TVsSAnZWagAADkoP+gNgnv5mGQYvAsxSw8MW\n7dIt9zKsFkwvI/NVOvNksceoGmfr/Q7KnhcSlxn9z4tDXYHX7Ac4u6kF6kEr\nPr3mT0gCwVy3/TQ2Ex1TexTPGVw0DYqz77qNa3U1BZjNNj4nswI7mthyhPxA\naIisoPj5jaVwgHA1k3Q6whpN7W8gtLHnFerLXo7l4pyiit2fpCv9h5ub9SmI\nsY9t8dr2bCPBYiPV9c7w0eqjWzvYWQqIZbTNUVvdVRvQmpSXFi5OU0hez8Yh\nbJ3MKQ8mx+ilB6uHoXYL9mRJDmG48wSdFsBb1Fewxes5TmiD7s6/KCLGbs1M\nWaCc0YeJHnFODu93NtOks6Eg4ZBhKcIHJaTwxNyCkellnV2uoK0PwmPvBNjs\nl3KnXFTJh6mJWsStCvHF1IAloFwr5YM5A946Jx6HmNY9mkLVZg8r0y1dIMVS\nbOAaTcPmyVDArLf+HhCYU2SrH7zb6KFUfbYJ8+f+VGLzQduVOSS2bNM5PxSX\nkf6YwPgfSXpYNuubqmE+Hy3TYGTzzevgkWiB6crn6lrQj+U384Bc+lOFA5i8\nPFiHigUw8ZfbUz+u9UwwLd6QQyiXtkc3O1SYUvMt9kAtTBVoxrE70T22pbe1\nkdA5efM9LT78VfIOIn+2KrttRpY51Buc4Hpfl//iT4zil9wMlDvkZW1ko8ik\nv2Qu\r\n=8IUA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDxS+Ze+iiiaYksTo3mq3lbwvCpdx4AdU5H00EJwK0VWAiEAn1I3wZM9jb9KbNeensK0slRF/qJ2KP38YtfciJcWEl0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591208728798_1591208736487_0.5320846969593214"},"_hasShrinkwrap":false},"1.0.0-next.1591211508942":{"name":"playwright","version":"1.0.0-next.1591211508942","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591211508942","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-y2W5Zqkjkb/IMF8c0nKFw6qBX4HYi3rJjbxs8dl0agC5wJePr/ff8h6Qj/PxrAHCt8n6UqT7Xf2kDYmhlWTXYA==","shasum":"df468d07025f09316f8f1d925032996e6cee05aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591211508942.tgz","fileCount":86,"unpackedSize":1482865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1/X9CRA9TVsSAnZWagAAn70P/2B0jg+sb0G5MC50V4uo\nMhoVffanK7o6w8Q/pPMjapYHlklcsbyc+NvLljFAY6zz/iKAmL5AaaDxRP+f\nN7wMqGf1g83aHSosN0e97/2fgucTgxNKhK8djDHX/k08ITo2argtJS+GCqXV\nA88Izusp0triDRvZp+7NOzVfztIBaf5s83waMpQS6ZyIXqtRtGckKiGoeX1h\nclmgAxfSnU/5oXbuGZSw2t16ST9mBTP62W2WtCTE8J0JCxBDrJcqKDbTBaxR\nb3/K+vPfiZQwoafgt8bn6pmgOMw99sNyETkbsD3vlspqIisL7MsEn8rHv1ZF\nJnN3bJ1rTj498b+KRpcxsjc3IikUPg0mxREWS5F9OmqhCE2Zh5oOz2SRWZqH\nMYZaJu1K889gAwGX3bt73bTmu9KTLVUkqV1Uvlp0pZfzR9mFyQADcjx6batg\nCWHF8NeyLPpm6ZSg5va3CiCUfwV/pTQXtl0pbS6zZEkhEYcsAa8dW3Cy2EVP\nDPGakmCCIXnvTumGBRdhVvFpdk3tZiCYVHV5MLkIC4oYrUoNROmFpLRLvCdb\nHaPmKetM3pk0yqq9+OSomvruvxpxWGHSctEWFr4lSW/C+E4Y3RwZZE8WTdW9\njLB8zwINVJPWJ6jJgvchK8jXqnJwnIM8pi0kbjLLpdP791v4Qyyg/RoSqL9d\nNdHD\r\n=SyJe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKbpaucii9rzyWcScIEZP+k2tvDcEU6DHNsge6dFrZGAiEAn9PuVdnpKryny9PLkGMsmVT25i9Mi8tnlMoVPKzm/lI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591211508942_1591211517226_0.8007318309619904"},"_hasShrinkwrap":false},"1.0.0-next.1591212193389":{"name":"playwright","version":"1.0.0-next.1591212193389","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591212193389","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dlpVe4vrrlC9WqH9ZpGk1Ghm94TSCgt95LB9O4hYKaffqkIABqVOIXZjjt5LiBbj1qmxbA6wsjazF4aH39zg4g==","shasum":"617b1039ade80ac273a88b72f08029eb035f5754","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591212193389.tgz","fileCount":86,"unpackedSize":1482865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1/iqCRA9TVsSAnZWagAAfeIP/Ak82Pggfe2EJGgXKPhU\n0zkkFnTwoAZI6AQvrHvDdQFVw1ojqajQUxBeRUkKA6ydayCidS178/UhaJVB\nIJh25Wzi/B64FI2xzOsaWCHe0jnE9LMYNXxjVTkZexBx32l7RaLcjdeiOyGQ\nUYq7yac+3X+4ey1mbwce+Jzkc7Mm13KOfLVoAfQo+63cgufdTXy1RxBnZUGJ\nF9fp2f/UDhaVrUl4bOnklm7f+wmuUFh7cMllmGq6Kh36Cj9byh2j6dP6Oc6Z\npOka1/HrjgvZiUv0iHdxhbukx/VpVLvf+MDt2/Dr+rKNGFdAgUZNMjWi9zMM\n1RaNEMt36uMVnmZmbAK5/fRs2kniDels3av8to3AITKopEcIWRg3wyfCvo6t\nSL9kQBPhXl2EarkXNQRO1rVWBwbX0z5UqNwvtZ+F4Iz/ToYMe230/S728O4b\n1OS6YWiPqjkh+B2HQa8l8L79U0FNUvxPAqI7a2eYiqycnzUBACtLttveMT7s\ncx7KbAdXS1hXVX0IxisJG7TwEbVIdngf8qTeG5g/sHqr5Tp+XrFIFex3Zdy2\nwoqziAJh0m8HajwQ6giyZ+y+TXZkkCSdt9zCGL7WKwpq9ayKG5fgLkjje3LV\nLIHoa4lv8pNVgK5yfnVgrD+6t2goE5sDiUBhIAp4wNThhkbzKn4ExvhMO0Pz\nA/vI\r\n=ZUDe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6eJGALbfroUHlcaqxrY1Nul/vc7esjQNggKIhRrkuYAIhAO+dH4BLIsmctTHmhfiukdHVKr1KvZNf61KsNQUVDnk5"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591212193389_1591212201982_0.8769074919412576"},"_hasShrinkwrap":false},"1.0.0-next.1591213767479":{"name":"playwright","version":"1.0.0-next.1591213767479","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591213767479","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mcYwge74vtPVipM6JdUlg/TRW5ZGRCeWaIK7pyAeNdoe7b6QXbMCtxPKlGphRjHKVmqzE9/S0QKdPpTozGcb0A==","shasum":"008ddb3d5c33ccb4a319919dd6de088925f1dfd5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591213767479.tgz","fileCount":86,"unpackedSize":1482865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1/7PCRA9TVsSAnZWagAA+ZQP/1tf/j8ROhzdyDqfuOOJ\ntMwbi9W8PhnmwDuvQRJfArtZWYlJmYw4ITXEpFEbF0S9SnAIEliJdpMUJXhx\nRpWphY6czWePBwViTu7+gZL7o3Afe8HSJxn+G15rtHSABXistw39paZ3EiFq\nZkrqRRX2OabROSIRWbNm+pwVP0z8lrcfwGEY72OSC6iC39bJQQwZDWBzQBxq\nekNIwYHsYnOUjLK1dI1D8OB7gMe07YVQ7VFGn//mQumI6GZFUQ5C1O+NCRwz\nAcCPIFbDEJhgl004yCC3DArZv8tVFufS2grug5CSdcU3ASV0+AWsBwWk+AQz\n07DbuApBFzYsZKAZl4FYcz8/Q7fkYvm7hR+9oTKTqW61sQjJqTYP2XVXLSLR\nxEvxrtK15SEDFiuEyp7S5iNGdfhVPwuIiMKT/rMC4f9cVky8ONHd7L3uzVlc\naBX91q9Rz/B1Kr1xU5V1Nsn6rkj4Nba4GtOWvu9kWrCKtxszXGdzye7gEnsQ\n+dGAkr7ookzo98RNuoJ1CLC0T1M08qesFiRfSVDeYfaqWWBtB/zMUgs5VjHF\n2pR1Fsg860LvkII/87iRqaSbTxirVLwf+nFrsuSlxjfOHkWpQz/eKpJ6SQBD\nHID5I2pjlK0eoCya/QNcXqrAzY8OZfdHSMxKrVqDLVJpzMXJr+dkLB0/Jurp\nRPd3\r\n=6Qiy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1kWedrVdlZDdg7TO7nlupBtKT56mQsiaGZSmEjSSScQIgPojw/FdzrObxaduFF24iwVPL1hNLo86HSLCtg5A5Cq0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591213767479_1591213775369_0.33205353827982664"},"_hasShrinkwrap":false},"1.0.0-next.1591215807137":{"name":"playwright","version":"1.0.0-next.1591215807137","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591215807137","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-hezpltKsD4qciBKF0/Yabx00/Ddnh/8enYaFiHEuQDjiUBF6BtYZ/Z/hqJasSFm7PwSxc3ICwGJhm9DbmJchDg==","shasum":"fce92905f8ce1d2974e91eaa54db2b5e5cbd1ea9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591215807137.tgz","fileCount":86,"unpackedSize":1482833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2AbICRA9TVsSAnZWagAAd+oP/1j7F0CvA4Kyp/ft7gCb\nGRtmPB9DuWTRZ70evaTldc01h0LGdV5yozvdwvLvT0p1Mw+vn4VTtB5E3Hy2\nu4753hfbi0pj7Lir2PyKZt1Oo37riqp3CrccnJqBWKD3D3KOCB8iEkbaKpFf\nH7jA1JGdx3ilShI+IP8k2R/qnHj1qBcdAcoJ7hFWUlYXZgsWRaHq0cp+EY00\nmLWdGYw+coehAjVBn9WJgHpOaSeAtVdGNsev72ad3G7WEXOt7S8yG/MXZh2C\nmBlsErByGouVooMEMql7jQYvksD+qdJQduRRXkZoloAR9Nzo4MX6jwUrPBN0\n1kJdjEqrsH+IonQgMTukMzx0Wb1VhsjKxVDMIOkP9wPBShiV5SWbg91zy0Kk\nu2HWgstdU8yQ2U9p+uL5p2r84ZAQHIUt34AQLZmSmh4bJ7LswQVQf/3u0Czc\n9HRSMUuEHAK+P0qaFgaKTeN+eRhAVSLCeOOkLqmVXN8G3xhU3K6lcEbWUb6i\ndycGBix6ZjZw+0pVpVCQg5I0ZQlgqA1KMnQj/PLqzWjAw0R74kohqIqp9/5Z\ndUH4ldGJTVrYSCravQwS4RvLQ5smw1Kgzp4LfCRu88Bvp51RrcWrmTwHAhaQ\nFE/qXlitMCoNQ2JbBcDKgOARImud2LVFsj9WdQnINGgF/D0o+wRNWmaACfQ1\n95XQ\r\n=yta3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAxu/dG40vIaHznBKyfnsRw6pKqSLlaeoVWz5pFB3bvKAiBwKM4H2bWNV6y1NVnMiYMH0bgvO0Sfx4ZCx0OTgiX/3A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591215807137_1591215815991_0.15280491842769894"},"_hasShrinkwrap":false},"1.0.0-next.1591222400292":{"name":"playwright","version":"1.0.0-next.1591222400292","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591222400292","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-g1+XzzYD2P/OiCmW/atYvWmRPQdtOuSOavTz/TiklJnu6aKgy1DyFmOzQuWTBxfHJGORTmXEXqBIkHoawLhHqw==","shasum":"fa2e8bdb01aa4d1e6ba367c7c5541932e4d70023","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591222400292.tgz","fileCount":86,"unpackedSize":1482833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2CCICRA9TVsSAnZWagAA6MoQAJGE9ki/VJqGYZPhUuce\nsP3Hs+kqV8MTZgaI8k/Lf/oRAR1qR5gqGYPW7nyudPCW4BeBSE504XyBxmBH\nHqE55lI9c/fgxVPyoFyTx5KbfB7bdERo2CprEIXn9QwicpXDEeBASTHH+0N9\n2GPWoSQfK8zdgVwVlpauXeeUwSb93x6VzvRJqPHL6KMcNbRnh2jGrDKu+6SJ\n1poj8u0adrjdO+v7JSfKGW1mI740QdFrTezToJQrs//XliXgPyeIkRW1pOUx\n41USPrzxRRpIqguevAMJXJIPfCMiXLmXOMqn9/wJbOa5+RyOkM6RPLqte+Ui\ntwmXDaQvh8Hp0Me9PZ8cbWEZtPcOUY2G1UsY3QKytfUeQYs8caoj+HVH86+h\nYbTqsFQlxNfl/9uy4cW2LHOK05ZwTuh29+ILjVD/vW6wjKu5gP9zHZva607h\nlil9Ai1vXOcZ9C3Zb/YP9g1F4WU3yX9mZ4DOp5V/f4q0djNXa9SqCuHPrYSk\nxkYYaXLXhqVbi17AoXNHxcvVbI3vVLiFAW8bCKOKEsiYXJTCVTNohWLmXAIq\nbc299KO9McasJlJ0DfYKaPskwWsGcONXVwIuvfUzwHpbVKW9Lvji24jk6Z0G\nILrccGSl7TAOL/PmPUU/UlypMzoLYkprFFtjdHTfNzz5oixR22h6XtG4Gr3E\n+WbF\r\n=9psi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICcO0JaKl2xM4T2IzU2wUWjYKehtQEZ13bDEcR5SIrpFAiAJinzPJkVz2qMvTKHzSOWVAa4Hhc9pJGtqbsLldH0dEQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591222400292_1591222408422_0.9779112913378054"},"_hasShrinkwrap":false},"1.0.0-next.1591227436868":{"name":"playwright","version":"1.0.0-next.1591227436868","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591227436868","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-iAC5bHPq8Ii856eZIElCSM9OSOMh/cSIBH/r8gX5ISwbw0KNbiQwVkimTPita2GxMKupba5tLrQEwUONMQ5/IQ==","shasum":"9bec25218116b989d171b142fcbe9cec57240d8e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591227436868.tgz","fileCount":86,"unpackedSize":1482833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2DQ3CRA9TVsSAnZWagAAshsQAJzjn0WeBhqdB/IrOI/R\nH/wU9rZa42P7YODfFlVCXE0FbJSVqygtKO06XUJRaQd6RY2zVUhVCmlaPkZl\nLt+HfLtWcOoDN2yJMGRol9B7oTwZvTdEz+uuEIV0cgCcDvSkYC5cxOaRgD4d\n7CRcfW0YddNuwiq0kSqziMbPViwwoGjOsbnvCau2Ha6g+Hhl5KJpLLo0bGIh\nZumpQAUvN/LNKhkvuNuhlLjupyJe48FeEVgWAarpjAyNw6FT74XT7FYuh/0I\nyBJ2dOCYQY5s2SedI0CA7IOVCNwAPTk1Rp2eV8jRsYj7QRZFw4Ai68/5tfg/\nt6wJpnZwWAp2sfuPQCiapwmXizTVJ9q5RE/Mb5YDbcIS/M8LpCBxX+5mmRv6\neXx88fMh4NDEsnunedrrZwGQGkB81Q2TvqGf9zYXC8PptZN0lL1eY5b3tOs2\nvIyAAVR3u95Hc+oPbiM77rxntk/Wd4KG6Z0iKvZpZY0tIR+4LKaOoqhcWD71\nQMEH1Ct074Z6ZtbHTSTbBix4lxLzNggYkgYKPlJI2zgfoUaxNLODPawSpbX0\nsnmdzJ3OTNsIHA8JIaR5bGLj90A6emvbHec3d/uZDr/U2g5BEXhWf7GvPMiR\nGALn0c6sQZLcPGT2SCrsUHtpn/SeRDVyqyorxav/2dCCmSqk9pVspi2IN72E\n13JT\r\n=YHws\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQG+z0AXeRCtLKOPIFE0tdpDdoJNg09Zoo6D+OsOTHIAiBkpSTAi5IQ0V5vb0d7lOvrtp5I9WL+Qzxdq3gUSNqSXg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591227436868_1591227444393_0.985848808463637"},"_hasShrinkwrap":false},"1.0.0-next.1591231917297":{"name":"playwright","version":"1.0.0-next.1591231917297","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591231917297","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2MLx7nX7ecOQNN8pzP01rNIhudEjF0nqEoYaF1ZgrYVxGLBoZL7K3ZDOAOUHsE67RYMg1dN6xmZWV9kCen3Wfg==","shasum":"6efeffca1dcda47123c23cbbf6a7906eab1606c7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591231917297.tgz","fileCount":86,"unpackedSize":1479238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2EW2CRA9TVsSAnZWagAAk7AP/iv8ENU2/Y/aogy+Nm2k\n+t9+NFvj6WIvAEpOCDEmQrLgjht08h8QRcZc/oTgl/qiF1PG3ngV8V7ztDr0\nufRXqcWz5zS+YfP0x8SLL2RHKdM/zl+HoQXcx+s9H/yRj0kEZSVMKI2PnHQu\nzgwl9LQRoDNKP3MaRP1lCoDNyW8kF0/GqgJmCyqZKGHrazR7bhcVg9pnJZVP\nkxTQLTUrX8CoyZjtZ3fJpJhhOfJdTyOsC/ukSccMm3ufVD5hkuUpKpm0G/Z2\nNiwOfaHrRzPwtrMhOUmSvTxhNWSj83u0wuIeFXBwnrtKLmK7ztoPr0wPAq8O\njvmZoW2Y1TICWDaM8NudN8PymWSvYxVJTyBjkH3NSG45c347c7kL/Egd8mnH\ncDQ9PpwXiBFFSPoIzFhfkCdnUPMFx+N8P9Hc850bUbM1O59wkPa/wUbG2lTd\nKp1Ko0B5vOrOBWb429C+Uf9ug9bUHs96Y/03Z55qeXsOM3goK1lkpyqchEcT\nMi/tsDVQRppe+Fggkwk8WSpvOrSZ3qvr45CTlwsRIGaO/9pftp5SLQx2ijeR\nLkhq+JeyINVLxTfuuHZeeoS9HJLbVQbJtF+6dfkOmMtyXakZpJNgY0ceXKL2\n1uEX8jx+Rup8uID/vdJllC3MT4oW9Ud25MSR+O4FlZF5dJxWa2ADkroeIAea\n7NMR\r\n=Sf70\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCICUu+cw7nmXuzsUZxnECHM7rM19e8/cGBok8bEn7f+keAh9EjLH683c8JWCuMZDgyOwHw0ZFrU8zHfxmMOTg22mS"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591231917297_1591231926156_0.7820359747985959"},"_hasShrinkwrap":false},"1.0.0-next.1591286075575":{"name":"playwright","version":"1.0.0-next.1591286075575","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4159.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4159.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591286075575","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+iJA3CfLOBSk+SkZQ/Gr+nmvgDFxiiJUemwTVPEuAC1s3Q3XeVWOKMdI3yMXmumcZS3R/gcloXBu2ciZV2KE1Q==","shasum":"fc039f2ef061f195b0db8dedf7020d610215a5b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591286075575.tgz","fileCount":86,"unpackedSize":1479238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2RlDCRA9TVsSAnZWagAAAD0QAJA3hI1Ts5Zl6fdkxSa4\nCoUPMeSL9om4JyVGIDxglLzaHsa6jropVNsO11QG8MdHxuKM60PI+Db2kYRi\nl9Ma26j9ekiKoAId+La25Cto9Ol6FmpJeS1DoL+6ylARpmqbSwzfzpfum4zL\nEW7uKmGR3vc8Wn565UDYkBOMh9xMGbCzAqXD4AT9TOipMHTnEMhoXnha4xKl\n6sPbr32c/I7lWgXiQb4Xncc6ldtjTwSYKWM0eY1KgDfaOTCUwnt2n7tulR9l\n8uGh+mnXrtu//XII6lCSC0dtFYdk3nJnGrGOoLPqeQxQRS3A5cfThwI74f7Q\nWusF+F7lSEEtU9VQVTTuJmmssyoVQD8LAlkAS+wcWCcKDJXInuHRV2oAG+IW\ndeR0OdHcIaTJlDkuX3yGayX61cOm9zzxmIAFyFDW384RkpJxKEOyL5SqHG3n\ndOelfrXPgK9jMRJ2XyrcPJTynRcnTO0N/qWQKEJk9F7PTCFFoXEvhe3kVknv\nZZN+slCdXzjmnkKpQSJ1WVoGUWpLAVS/BFn302Q4CevwAP6d9u1UngNQXbfs\nn5CdL/Otqmb0BosFx0q8rHhVoOitj2TAXppOQ4tw2jqiFc25wd9x49ysxiYI\nbkKO4/UCg80tbGm27fUtzghlA7O0SNKE14ts6t0tYSImlLU/o6t2Mt8Y0fdD\nEo+9\r\n=lUbE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsZJw5ZFCynNYrJtU+CQlSOfOHNd9CxFihXCAFzXWAowIhAIRJdSeOKJwI/gzj1JkX1mWIoQwRfV/W/6jYIgG8Ykim"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591286075575_1591286083161_0.3701243316693039"},"_hasShrinkwrap":false},"1.0.0-next.1591288113525":{"name":"playwright","version":"1.0.0-next.1591288113525","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591288113525","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-t/EoLZHERAbUePLTtJzBisHOx0WAHiqJvgXTbpu1p8eqA3XPNLo+MRoCI5Tqba+RDX93Ij/yzml/tP6rXgVhKw==","shasum":"c12a576b020570de8d1b8a76fdc3f6e584a70c7b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591288113525.tgz","fileCount":86,"unpackedSize":1479997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2SE6CRA9TVsSAnZWagAAmEIP/ivkob0FkaDRw6zLa3Pn\n4ckQp8LPww9GJVGyUzl5VsTHQepn1fJnsT3vShqh8iGgWZRjZdXvJyuw5Urj\nqAmzG+PF+8aZvWXZ1ZzPK0N9RyVb9sCJjhu22vXtDWl6WZ//hUQuaYcL6lpn\n5HDEIhyd1WAbRvKUkwh1oAsYlkf733hpNJYub40+Z8FsdeYYH1tHjTqxLlh1\nhuNC8sADuIydt3clPoF9VoSch9l44nbF6B0pAiLbVwJfVQt7BGbZ/YYOAraj\nXGnjpWoATmC1/eNAMBpy2UdXod4dAz1wj0cFALVzwQFBN5jx8O6+wExhyBF9\nRnWNaY8hzi9qjVOWzfDUoVAsyq6CsmAmd7acMn2Z2SpbVDHfGbb5yuFdb4IN\nxo2z08qdiq/2tebQRqPCYKWeXRk6cKKcdQ9sSkwXqO5UQvVzXkwaYxNmH+Uc\nah3vMKSXBBPqR3fYKtBRxtmIEb3/0lmmJCvsbjaMUXWLCZHc9EKihzSYKmmK\nmMBLkRoptOiVhpfxry8JQYWA+6GdiBzTPnej79yKJXPlBRShm/FoQaeGY9oH\nwG+DXDpn4oSqodqljPg8QnbqikmrEQks5NMpguNO52Xx4gh30GwxRQMMgmMl\n88sAJlKKD1nz1aXmg3tixyFmXFcBh1AC4d8DFjM8yXZDKxKRiLd8XQoSWcWR\nFBBA\r\n=QKDq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH1Iq8T5kGesfHtOMXiXGIeJCHB5HB5e7Ba0Va4yTvXVAiBUi6GbE5FWJp/OE1XHwmZ6YEpuQPp2dYanPEA/YP6Qfg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591288113525_1591288122074_0.8804501180425477"},"_hasShrinkwrap":false},"1.0.0-next.1591299078278":{"name":"playwright","version":"1.0.0-next.1591299078278","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591299078278","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zD4ur2aAugpv5QdaJj5o8tyl5Hv8fLpyq76uTBQhHMaSCJn1Y3W1VFhhrcymEnAinsMgnXJ51WuKUK7jfhk4xg==","shasum":"3112e5a0b7a8d2521e929e7f47867f4d5b4c2858","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591299078278.tgz","fileCount":86,"unpackedSize":1479997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2UwOCRA9TVsSAnZWagAANm4P/ifswfQJ2ZMxXlexDdtq\nmangPTiviTH+gv/wIM5l6hj6ElhPFDc1DOkENfoPU7yX5nBJox8je/0JmVmO\ntEWwIpw6yESsbFuYTtsYxBYEorCbqj4vcYCx9lIRecpYwR5YjAkaPZXiY6Om\nvwUBogRP28fLAqaHD8oWGRcIPH76ar23jnFDuaqmcCd+1Lb+/CXiHzmG0kzN\nknWu6oyebO77rPpYDvtfRFp7ex5ZM9b7FahRqCZN2/rIL1EffSXFrlKkahqY\n9naiIzzDGcw1mm8SCmMBxVb3836vxW5hPlnOnSIUMG4P8k1SzFeK8tHbk1RK\n/g6vkQkONdN6HwktsI5D2/KxORaYzDCQya9ivM6E97NfqRT5xAl7Q84yF5rg\nSDsc0ejUxYPXS4encJsBXgXP6UkK64jRCyssaSxLX2BepZ0Oa9EJNns5LU2h\ni0CesXsW4cpcg6DRKg/w81RDnmQVVtIcVuiHtp0nmzQa+iEKGo1KAeMv/ryT\nnPCmCgJi9md9rGW8/C/Anl1UJgN//28JLWyg5eCLuQbUWFEnoVLXnQcuY7KF\nNxkGHVYNU6+r5D8s+62cG/0AoyOWpCa+unI78UVMplxzLW95Pfdrnd6okizz\nc0Ap1pM4+UcsXtcFeBogMe0uOXzjNvvIaIgOAgtihfIBBDz1AguodmUMM9Ck\nBoPu\r\n=E2Xs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNHzUT1XnIhPwTRSRjgcl0BS2rgendh5Nv3vzCnZSVYgIgWoLcyfambUh6SuY8D5mrcoq2Nv5YkH1lecIv7T9sIqk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591299078278_1591299086070_0.2244791563023516"},"_hasShrinkwrap":false},"1.0.0-next.1591304315669":{"name":"playwright","version":"1.0.0-next.1591304315669","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591304315669","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+gdx17ojuPFAocWY/YJ1DVK2pdQQiN/+kQ7bYLGOb0vssMSAlynLpBioEfD47YIhsf0XTWLDaEcKfaaWMK7lFg==","shasum":"ac1c69a68aff8f7ba26cc802a7df9d80097b200f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591304315669.tgz","fileCount":86,"unpackedSize":1479997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2WCGCRA9TVsSAnZWagAAHowP/A/XAY61Jwidn3sbj8He\nErcQO/8Fp7ubYAbr1rfynFY2Cj01dB/tEEtZ1RUDrOUlQCwp+0oUkje262Wf\ndlF55sVp/qfA2SUELlKrHoOa3ltuok8H4N5/NZJth11mZVTrOOeZY5JQZl3h\nahyfoiBrzUyWpsdmq6Onv2Mm3mqDY605A2y45nfxkkuilj8gtYO29WR7j2wv\nrx928WphdHjulAflwETyYcLSsCyLJe6Ke3ViW9iUKheXED6mWQeM5eBHnuoz\nbkTrWCRWyd7JZgEzbHOXc/hC7/6ZFsuOQdgBUN9EEzpb3a7tbjhgd3aPpZSu\n46lIQIzg+ZImXc8/2oNCjswyGBTPVNm1f3yE++C/qIJXufXzc7xMzNFppWlk\n+XoB7kvWxlL1bW7MMmWx7RpePx2hafDrRYHh/ZgTMgGKdxKlXRCdK4gEBMay\nmx4G9HPKBVUQ78TEQqWT9md4JwMaQx2e8IF5o6FuSbUf2jI1G6xeaxikRveJ\nisV2kBfgWUIANCC4EewrMFHEa9wusjKra66wspSBhcBA3SccZquLziEl96jZ\n8BoMBa4z5o3uRY2iEktCdA79uOJTT+RAkkwwKdWIZ2cx0B5QLTh9DHoZ3saE\nfpZmc/WiSpuVxgO40KtZ/w+1dR0BARBFrZLEFW6Q6k4gZmbWjY/ChHrrRtnq\nYQFv\r\n=ID3s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqyF2FGsO2+J+kKvI1yV1bgDuHJHl4uBMQGJf4ZmiyXAiEAnCANdW0gBKLBaC7pjP40ScnekNlAelZ5EdzQ6OrVaZ8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591304315669_1591304323498_0.06254621695899343"},"_hasShrinkwrap":false},"1.0.0-next.1591306116485":{"name":"playwright","version":"1.0.0-next.1591306116485","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591306116485","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-m5JWyU0dct3qK6jPR2sUHtSBRE9UWVU/GbGJ1evSQp2kd6eAzo54shKN4EhU5lZto8h7IENR2dG92eU9poZYug==","shasum":"69a3c6abaffce985d4c9fc58a95918b2204dc760","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591306116485.tgz","fileCount":86,"unpackedSize":1479997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2WePCRA9TVsSAnZWagAAjmoP/iYPyfdviEj+UGoK/Np9\nwISRb46AmCvzCNwcvwg1FcvYsiZsiMuj5EMeMvls1U2tMf69LwtvKUoZoJad\nPKCG5oYPL0+4C79fAZZRgIM57bhDRIHFcwoufFaomr6fbNjhtgRHksLdA1SN\niff89WU0/cCG5ypK6gVfaUBAN12WUp+lFdGHfL8QzFWYHNZn166ywNXg6M0D\nz3V2GrK/7ih9y5Xc5mBUc1MzFa/KDPqUHQ9lK1yVZVLxy778jWxUGbJW/CRX\nFMrZFPiTkCfU0pcwMzCaMt2YS0t/1Mb+aet9GVPzJ4vYl6I9xrl1FBEIKhxO\nMMAejtuuWuhiaOhhY3YgRjm1mc6/V+FoxrGm7yfW90Bcux+Wy752gwtOFF6P\ntlgwxbCmokLVqPiBru3gTnJvb2o2vxNb5kh2ThyV+WYyrnCAV6hbg6mml8rB\nY2j+NpnLcpBmpuY6GKJy8VarSaMWJyW+yb+RB5bEDjxFllTMh4GupBWOs0Fz\nWhCLKIcek7tc+gUhgVrr01S0Ukm875dQngK+gdeDDDfwZ3fcUgK03Nszl7Gp\n0f1mgT/fnnFw9UoyD/k8HS95M45Q/K65grB/cxVlHn9iZ/XYf8X/SaSCYpEX\nazu+3Oe/rXHTIO8GYsXk2FYvHa0Q+2PRz5tWrW2LdZSsRWG3xMxZClsSAw6s\nVGjS\r\n=ca2v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDeTmp1Eqow9pkkR3QCmFnYt01GwWRZLoNUgIJX399IlAiAql/07EqCkl0YXNJWW/DEkHNyr5gpnL7eXz5+hcoXCWg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591306116485_1591306124172_0.8934145429035913"},"_hasShrinkwrap":false},"1.0.0-next.1591306307544":{"name":"playwright","version":"1.0.0-next.1591306307544","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591306307544","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MgMpQz+KFXTpZ4YnPwvFyG1nskovb77zq5Ysf6BmO3d07+PvTnplYZRyNnhJxY88tAGw9ZrKOwRY5QE2dcvL8A==","shasum":"ef87797c54c35cedda51a0ed4ed224ff01e00084","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591306307544.tgz","fileCount":86,"unpackedSize":1479997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2WhOCRA9TVsSAnZWagAA/dYP/iTQ/sbmZss2m3M1ehdv\nVgj6D2z7GysyP6pg2eBmS1tFZiXd/yumM62NTNi8ujJCL0BpybOY2Y62NWrK\nX5mF5xBYb+6y01p4l8EDGp7apBgKKVNwkPHiSo3jMC+g93M79qGNU9lYCcdh\nKwZntZEfpMatC8ghC2X4KJ044l7t1GG/juQcezbEjFcFS1m/JIMNk/tFIyab\nE4jhvzqCaimirm/L3LZcguC+ET+G5qz8sHWwntMCJGQlBg+ojO6XdxDWjpFL\nKwxCxgL615gyQ1O4Ay9DPcAPZ3g9L6z3e7Hh/g/cS7thbX7hWUjFkB5ZATvI\nLRaufy3P+pj18K9k1R+LN7X6V3jJUgEZZpthUQEXuBG9lVAdJ5Ye+0yM98WU\n1LbevGA+AcWsO4Ez+ENCMXeWeLXeuYnCezaAdIcQLsf8+6He23ieLd3a2g9I\ny7wyMKgbFFPOlbDjqcymI7T0LYpFU6xAe3HAW/C+o4aS8tiCHXY7Bbre5eT9\ni7Yy3k1wNWi6j9KNKFFNUb7fJP6dqYSryVKCvrk7hKb6ia6DZ74O6Hixig0f\nh99BBUJyQqr5bHlAJIYU8epkFa2RvvFq5CCfVaBvW1pjIjpfpYIbIXA0JORI\nD1KV7fFZ89VLQ/7lW2M+NNC/Gq1SnnzsznR2xmZxgVFLB/XKEicyEGua0su8\nH35p\r\n=5H4L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLByZmeM/fkBo3oaU/gI+Zz1tFt3iGPOB1iEA5wnfeZAiA1mQpvE8yGrM3GxTV1jOCfN8KYBeRYEGK4aJhJGty0Kg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591306307544_1591306315505_0.1881813582804821"},"_hasShrinkwrap":false},"1.0.0-next.1591311607411":{"name":"playwright","version":"1.0.0-next.1591311607411","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591311607411","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mRVsIDGC47xjiigPQnzJyCX5+yrf0Pl3KN6RacJPimL3znoy6kNpt2jcEa2IANr6BV/Vh/VEtVNIqD79oWeGUQ==","shasum":"121a806d8f45f2dc6c6bac0626ebdfe466ee4435","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591311607411.tgz","fileCount":86,"unpackedSize":1479997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2X0BCRA9TVsSAnZWagAALbQP/AmtRfXBhx7BTFpVxzsX\nyIqWGiDHNxFHuzZNVpJSfQGUccGk1MMF2j00SSh9oIVLv2pEwf5inkFxkOr0\nCwIpafUlkuj/zAwWTkLT7flTBfW4IS02ENbV0PpJ7ROTs8Kg18GsnW+C+Yyh\neqK3MXkCOpsQ4kg5TpcyDBL8KpJ4nalg4NNDJgaCIHRDcG9ZY+pq/0vravXM\nXTXitXrE2vipwBf5jkSMUKAX+L4e1CXQ8nL2b/n6VPkhov4Fn+blB8jKagD6\nHbOQXChRAl/v0bP4alA7wTrxIJzLpMJV4IDs/XVAjBn684UwDFbF3R2KQyCs\ncaayBOvos4NvNTMlcDHIlZQiL1l86sglIvgZnzUdlyhQY6bJ63NeATjqNCNf\nV6JRIe4IxFDy8fOQh2lF4aPTDiI3qGbL0cwOq7YKimvy1FnCQz3aLQj2jk6G\ndOthniFdi+grq4+UIWDCKjQ/YgHBbpaoVUo3TSMh//dcihXdmv7WvRWDhMt7\nvhj8NfHoR2+Xfvnu+TVKd4Uw7VA3G/5zVyibInnxcm4fzxAwl+wboRDJm43c\npyCGggwmZxvDthpAzL8kUfG7vG9wMvAm5/LnF6l8J+nTx37m6FTu1f+oFPZR\n0qvGHdUqbnIlmHj61AMmcJo+zY2pL5dDiiXAPk+Z6Bn3p0HUEpKBvw2G1VHM\n95no\r\n=wSDY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzAsazOAF6WzuJ4Y6Yn+3sagjeBR+B+Frafma1XRxZ/QIhAJ+u+O9dIH5xmWJHRcsXlE7IzXZB/8f4jj+iROmCEpi9"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591311607411_1591311616557_0.6840807750168925"},"_hasShrinkwrap":false},"1.0.0-next.1591312154068":{"name":"playwright","version":"1.0.0-next.1591312154068","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591312154068","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lzjzWSn4pBpJrqgPr6wK7mPYq6FrI1jgTO4+dSUXKZ2g/YSg8rgybPMy2NYifGQLfSzX88Ul884D4klAmPLTTg==","shasum":"2c7a804612d52d60a7222bfe2dc32cb37dcb01b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591312154068.tgz","fileCount":86,"unpackedSize":1479997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2X8jCRA9TVsSAnZWagAAYq4P/j2IYj28UXr5EocgwgE7\nvtmjQS7Waxp2lDyXhnGllXlsMS4Mz5OV1n5CKIUaMSG+z0kzpNBfjvnTDCkJ\n+O8eeO3c0r1wmW/0RSVmENoBVji8vuFV4JZnFw9SWqGaiMw+M7J/ijEZLIDu\n89RjZVsi9IWHAyNtNSYTb5S/ZZg2f84QLV5ctmrOrVHfiVCqkSn4EssWmhg2\n5zt57lbG0s48DqE6O5M44227wU/nv1l9uOTBO5egOZ0qgLbVjrhT8ppDtt8g\nb1XZNATHdJw1NZ8pgIAM4UxZsU/8SK2ZK78WzphrkcEzNZ31uCQHkWzzTJWd\n4MUxrGLaHY4MMPyjLpVo5/sBrxjsNWLDCjutVgBV/lrmnQsR8tulewT3tnrE\nIkR/cEYejZukOTl/x3hHS+58/UZGsBgGQKJDQYsCbYBJhpbxCwLH5fRm6xK/\niEiNuQkMEUKyrLKjt96D5BHFoMkcs0vn/lA7HQI+gJsCafkjoYZPmVBUsVRj\nKmyu5mIs+TvNwlylOYZGxXmsymzxz2p3BXfeku/YnPZucrPUh1AZSYc+hXrX\n9K5gHVLANmO+agNooWhlLd24X1K/14Bo2BR0X8ShMKl2N1phLNd2NRlIS2Rz\nf6q3Xcr4Nb+TyyCt2LzlZ5ajzM+a53enauUkwSC+V31VbkqxlVwOmCiGLWlg\nkqLd\r\n=2TID\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZ0OIndKkqmqRJILnXlyr3BdvLeZKhE/FOUkTXehKMqQIhAIa/azBr2eSSthYQFHZtZ8OdmZhIVHU9zVhRv7ji2Cw2"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591312154068_1591312163130_0.7553526439225475"},"_hasShrinkwrap":false},"1.0.0-next.1591314099561":{"name":"playwright","version":"1.0.0-next.1591314099561","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591314099561","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-DuNANF07EUsJlfXkmay8hpf+FeoT90qoTLHM0jwBTk84yRt7K3aOGpojlvx99fw0q/g/qBaRpOjiUSPl//iVdA==","shasum":"d49389b65675c7533595a1e94a933a4d24275559","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591314099561.tgz","fileCount":86,"unpackedSize":1480744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2Ya/CRA9TVsSAnZWagAA5hEP/1HAEn40pXhYWX1MpFYD\ng7UppMT+MvIrG2yiYHO/paJKibt9RbVraEJUm+cbmylEhsrr25sTai76/Sjp\nSQOpgOsebNLPyJTqY0z/wowOXJWk+OaJ+frMBnNzPp6cZJPMKhlYvUFy2cvQ\nbnZ8dTj8U2g3XIufZhZHb2zNvLIajJKRp6PYHWe0FWGI/tmVNHIFQ/uYBKvb\n97i7SW3Zh3jqUup7rSIIEq+5uRVORS7+LMRkRQIKXUsYeqkKjXBi+NaSysDg\ndbQdpIDEG+502Ez2NNRSTEIuA7JeFouFohah7Y1VpwUq51JbqbytsdOYiq5V\nJvKiDkrk+mZCQy+j0su/qdwBrv55xfwSwiOkQiEbE42sbiP/ap2ni9ybPPQ/\n7yTPQwym94jk47Roaeat+WUsmado49wcvVSt+7YM/7OcbRcC1mqDiG0ArzFD\nVjxcy3eQF8UwNKrN92HFVlPII2ffgU3IrdVmbuXmBoyNfVgyffzHoxOjJT+z\npNw0CDSjpbLQGWWwLZ1UGNlwMQTcALAX+7CcWM+LzCwMXKGs85CkUD5CfQxG\nPwlEMZQZEALXpSn6VbSGScOvKao6A9tf1h8AZJWHT5DTDv+IB99tY+FLgIU8\nf9EPyOq2xfGF9b/+9WUHJ4S3xrqtv/ZP86voQMLWlibUlODwcoyTtfEp30us\nLbiB\r\n=OdT6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc2VO2uaV+CEsYGSbMwbWKEfNCNWozMPcFMoyu88FFMwIgAm2CLh+nMggYs2gfQbACOEVUkNWh7U5BfW7xfQusEvA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591314099561_1591314107845_0.4596903645205723"},"_hasShrinkwrap":false},"1.0.0-next.1591314319684":{"name":"playwright","version":"1.0.0-next.1591314319684","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591314319684","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nUYwpKrhSZmzaHdN8pFzABEY27nbQ51/Vacj2Rluvm6vE3lBTzjTpWfzhVEmkoCdalfn4X57qv/4XUyZmToigQ==","shasum":"0ebd52fc5666704f12d359e2a9436a1f3b61b237","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591314319684.tgz","fileCount":86,"unpackedSize":1482598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2YebCRA9TVsSAnZWagAATnoP/ijn3g1duHy5E2HV6KbC\nNI4KwxMarIeULEa8nDOhcAM12JUTPzs8pCXHxHDL+FElYV50IqL2ux3Jh0es\npa6Op6WVYrKP3SnOpmX6npKV9HMt120K5zQiwcqJXD83yMccT41WFulgNFNd\neiuB1F5I07rHc9GxXJCzRld3FX4/LdDGhlMvsZtNysHlZ8gKGjpdPDPNYyIZ\nMUvklIKHJOKEfvzcioCzg/S622FU48Nya8PKayokXhGPezJdo149lGSPV0cD\n23AS2hseOJTjYNxSD2VXOjQHZErx1kfypjI95g6e3u+RhNQIsW0CovaiYnKL\nDQFYMd2Z19dd33GOofIAvK8yi771Eg0Q6uIYu2rlbZFtjkSaBO4cuQGCAKRs\nLSJaXuru645nRjUdRtwGGLeI1G9v13l/K6C3g1NWPUSPjFf2LJIGvFC9pvuB\nxybZYihiN7haxGlun5ndhcWSUTf6925EA5QkS52dY8z1bDz21kFRWL9QEWdj\nqf1Ti1888/33EgmyyPqkEt3xN/GR1nvetrVS4N2vbLagYkJALH/MvGFhrlmE\nWsBF1cx2UZRm8UGtp/2hupMgjdo+TT5pDU/NMR+HGk7qzHpKsIEP92kGqDui\nkz5UZsiFHhM0xnuECFxR4hwkrCVDRW7dRCbTCdkhu2V+eGCAaaE29PWPwnXA\nOHxv\r\n=hWc2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4HPKsfljWKiNrrgNJJ9rrbmSp31yQLFiFjqHeSP5OTAiEA+KHCXdBhLYRMMU81t5X2BuAl0VacrMMLTNDB4oZdeSw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591314319684_1591314328047_0.5446920014275178"},"_hasShrinkwrap":false},"1.0.0-next.1591329787340":{"name":"playwright","version":"1.0.0-next.1591329787340","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591329787340","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-uc1UkT6VBPFWLilkfeNDJsfq2l1KoeaEtO9LywLoNIIDAT+x67mOQyKk5oZn+Ee7WPf3ss3v65rW3EJiDwqW4w==","shasum":"17b890b06c4b1d4be5ac3cd857bb858e9cf084ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591329787340.tgz","fileCount":86,"unpackedSize":1482598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2cQECRA9TVsSAnZWagAAXMoQAJX5kfvWKwQSZu1yTeF2\nYMmb/MM8mfXdM4W5hYTP+0l2sjllr8kBn694f8+/ehaddpcOdxTWLhyWWMFm\nB/DuYNRRB86FCkCubjsRvf+YZC6gLwsTgyUXTjqsutaNp7t66bMXHObNMPgh\nRqXvSCuDL7yrSopdmIxg+zTIdM1td63WH+qMD0ylgoE/C0zzYxPi2Rw4jpJf\nf5xghHi7TOMMhFw/ck0ORx/8WCRUla/uB5A/zD9CbPeu4OM7UOTnAREy23Eo\n/lyqZYfrDtwwBv7pXLsHWDxCV2HdnWdOv9FHKUkzq8sfpxIfbLz0qntamNqU\nss0DQAgMv1WcO/hLK7ME60SMdY/pg3OYPQ5nee5nhCidkRJ8+2xhIhaavXvx\nBvjqmwJSRBvlQzufEahQv3F/9isF1a1BO5bIvsn5ElpdyeHrtLWAjWn5TMxp\nGjB1tLjmiQWsEcYMlQygIw/LyfyCuCVGNpCm8m8sxBJ5zmTRIsbUAk/PIvtZ\n+RHLaJYNyBT8WOUR8VUqH1at7pyjz+BLRwx8fEPuG1edj+pAqbve3YPi52as\nZMSyN5jnn2PWyKenirGZdbmAUxWL6x79mGULdqbOSQzNlqX54San50nOUaGq\n9HmRqBzfv2wAmWTn4+NvaV5ko/KAV4pSosqXkMRsePiyDRiTSjDNfHokMZrY\n8opc\r\n=Eoor\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/0T37AIdFx4I8RPyGIkB9+ZqMdIh9yl45uQJT2l9y4QIhAIEQOD8T2pNEAr2sDyakui8qCNy/2S7AfUq5B4EFok2h"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591329787340_1591329795515_0.7683584274717239"},"_hasShrinkwrap":false},"1.0.0-next.1591368060998":{"name":"playwright","version":"1.0.0-next.1591368060998","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591368060998","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fL8K3E4CypEDY4xSxf3JnULIg6dQ9bxVFV924pPCo9eliRnhpgBMN3rASKEsy936PRq2HbYkqsdAycytmOv2Xg==","shasum":"b77765e108499bc56c636eea438b7a56505b8562","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591368060998.tgz","fileCount":86,"unpackedSize":1482598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2lmICRA9TVsSAnZWagAAqcMP/1wSm76UZ6vupoaHLtS/\nh2yRejBmV2w1Yl22FPvGNfXcBWKdSlPCQfWneIJyVUidYvMK2izQeDrz087t\nl/cQKfz01o1dXObTwRRVCTCujGHkJBXjoQlNPx8E+H7gZr2q5ok066y+hg5i\nUsZepXxUs2kEIpDPYecWf+eLbvoIEanrDr7vC+DDbXiE8OlyUs+rnuLr3ZJR\nstc7aAgBRSz/EPGrJOyuD5RLcrrkebArXH8SlekkLEpJH0NNN2yfa7zo0oYH\n2NdgOm5LLMf9zfhiqrodnuV607O6Fe248PKQ3S/07iIxzE/yfBFFb3fl4UtO\nLdZ/zwT2jUxE7jSm2EQzaclKPKRZRwapbOULONDlXIoN/kGTy+RwQWFw554g\nyK3DlAMcXvM9evW8b+ST+QHYbh0qTGW6leTTd3RCa1aJfFbccU+nhCqQYJv8\n3e1KhyYUD7iZpkhtpAmL6kbC3TeUmHwIBUkEs7GKz00llVuadcTbi+/0N1JO\n7uaEZ1PFCwojwbFyeMnRyzLoFq5DfmKjFMfYG3bGaHx7GUMYw7i0JB5cqirz\noBUnQINvm8EU9HftWLf3bJ5UWOMgT53fa7lmbz3M9ebkxlTlwngW4qXqnu9e\nodNBoVR5cKvHbiokivjkZZmbFQilrd+fHxHb2rTrW9l89cz6NZXeyTy6xf8L\nSNMK\r\n=gB4T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvfC+mAIpdBrYMJAFx/qLG4Fmay18ILAqZBEOxdE2XgwIhAOLUfB3YzV4lwlHo/hxNbbFGft4pE368sJhwgAN4fzwy"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591368060998_1591368069124_0.8125698288655929"},"_hasShrinkwrap":false},"1.0.0-next.1591368723136":{"name":"playwright","version":"1.0.0-next.1591368723136","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591368723136","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BbuybIoLIlD9EMIoPb+ISmFu2mFKVOwaHPuMctJf8Z11NOnKXCegQTLYFEcEgkfvs8eN4VdWmyDh+9LQwqfAyw==","shasum":"5def1bc216717f71e702bbb17bd646b54c4a0936","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591368723136.tgz","fileCount":86,"unpackedSize":1481489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2lwaCRA9TVsSAnZWagAAKK0QAJl7JDACsI01DxTMhdiI\n2PPQ7u/A4Et9fFi6XUi8fy9ss42cL8P3p4zOA7KTWrbg7zauEWIQng1X+aMg\nsePAJnfZ3YuWg6ImwOcRexXptiRPoK9rJSdpNQPK9EwmFcs/N1HCmG9PRhbp\npxTk/57l6le/ddKdU5LAiRBxRLhWO+LGu9YK+L+WUMdQMGCgTi0LOQTHvxmn\nMwP+ufNxNwaW5/55mM/bjAv2uQQBhj7KYt4iaLNaNO93q5bTsRwqa+/T3PT6\n6Aprzx+PEmAzqqYZuSpr37HE7nokWewcVNxJUHF9Xpvl4kLoW80l5A22kdbD\nvzq2iu1FNxvYwFg4XSksxggNxGskGoXnuiiNwmArl1OSzK6bXDFkb4ZgEEi9\nUB5QhOr3T0v0e/+r8bUQvZ8RG3GNyatgei9I7OP5KsNQ8fx53AyIFIFxDPOc\nYJyMFfzwoGJTCXGMWmQZqB9UDnJORC96PB+3dFxMSOvRsjGoH9fISPrJiADA\nn8Z5/VGcmSKUiJhu1pV1SleSnTMbCd1430CkPbkS58AObLLIcqH9t+WU8FgI\nGRfAEFwLCP+ntt/kAVUKAOTQ9Y0TCnnV3LuQ2mDIX8o2sDvwCHguurXRpm8j\nE2C0jdxcIEt9dcGQnKmqg2yEmiCd+qjwrLqpZK/3H1ykkcGIwlOsVALv5P+9\nMAhL\r\n=JEa/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTMUaB9KB5LPo3jNMSPTcT/dVbctG1geUzB3yLjiiungIgWRjQg8PjF6MJp3CdGdfPptLpagtD4n2yKoum6Mw/UNo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591368723136_1591368730219_0.39192075393398373"},"_hasShrinkwrap":false},"1.0.0-next.1591376911711":{"name":"playwright","version":"1.0.0-next.1591376911711","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591376911711","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-sdnplW15/EZ6UeFhjotKec+YRckMXMVi4pLlD5VlFW/dAEBPTWClmrsRAnEO630e9goof6lcu5GVFnneItt8ww==","shasum":"2181334e26c7466f92ec06230ef56e4646719d28","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591376911711.tgz","fileCount":86,"unpackedSize":1481566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2nweCRA9TVsSAnZWagAAwQIQAKP5TuLfYCW3hbjOWGKJ\n/AvA1OUgIQhrvqoD8i56UrfCQEXqf4UWJBSPseeGMtDvEiMzx7T6KB7F/J6G\n7RmEu8VQgTaMrGaOAJECRalOLJiuij75DgJbKWHJZ7zc43haZ1tsa6q8mQK6\njugtZDBQn0xmGg3lzspJxbeLr+67w+Onivfgx1UaKRnKnqzFwiaO7dHbcVkm\noUnsWTCfUqkoyn5589ycKdDx1SvJteSYhsi//xegdNm4UEgnhlw/x9qVtXBB\nsTHkCFRBitvOmatmzHJI18abWlfrr9UJ2l5PbZgLW+QocYSvUBT640ToeyVk\nIA6fDiLMlkUtV3Axw8dvjGWzDgJ3GCqdUen39iD5f8FEn3vymTImTRu7l8Bn\niamV4/o/ytwQF+6VTw/wZaBHLtffijuah2g4QhkxaXQGipSrzpAvXZ9mOZPd\nrrBWdwmfKCZ8dzMLmIASvyXuqPC8YXHLnzs5b8NY6i5GFJofh/e2W60pummS\n9fbuAaIaj097qaCHzkRCvSFFHLuobRbz08+YPQf06aEcSzhhdPGIzo7she8U\nEm14KKUbuqaS/S2ihqx18P9K+CEglyzSC/zwvQ0Xv8cdf7LzgDO3VCg+x2bS\nAd3s07zfgdAlMHrwZ8vCJHXYQQEt/MWmPH3yJmUQ3OnFXYxs0ahK5JV5sL6v\nzZnr\r\n=SHBW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHyLPpApRBr3Su2EwSsg5bO4tIiOR4x/ZD8AE1HqHk2LAiAYDmMr3t/sD11YB38c35CttQGHURIeHRHljHWmlY8+Tg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591376911711_1591376919630_0.8011995617695222"},"_hasShrinkwrap":false},"1.0.0-next.1591379077027":{"name":"playwright","version":"1.0.0-next.1591379077027","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591379077027","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-QCfXVyD1oKu+eBQnzaJH/oS49OlyPND5CAtzoBbRj2i9jwVyG9almBWfrjGGAuli8RPixQaFrSKPg6Zz/GyjEw==","shasum":"afdff5af28b4af7c03f25cde789ce8201729645b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591379077027.tgz","fileCount":86,"unpackedSize":1481566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2oSNCRA9TVsSAnZWagAAyqYP/A5v1UBxo4Dkc+ooFy7T\nAxb5UzfVQodwWqHm0yuYYjLvJZXjP7dtDgiD1FWiu1i/oGLukrUhfmSBs6Ew\nkKQFigHre+sqSCQJs3rJh/YP5w25RHJqx9ljTMOrrcbKeYwcp57wR6846Aqo\ncUMcZcCD825aP5dkRW2Lv6ThtIAnPEHeXdxTsrTtTUL4476rma3jN5yF7Age\nGT4DWaQjbwUJb670LTXFX6yxaITdCG3faZTCVbY4/PzHC0bKdMUV0pBD2SMP\nISJXj5nwDrZvmfR0lx3F7eKnaTZZcBRnjKSlTfLFWO1JRyDYphcG41y6GI04\nftoFoRcXW70qFchsn7UWs+dGbhDDkVKfq0xKerf5+08hlzqemz5rhWXN4fR1\nqO0Udfok7ITkjHFc+hw5KZG/MB4hRuN4kx3w0e0E2sA1uftgNhS5ss4khkBe\nOwEzhf3T85AdCKN9gkLyU1k4e4C7Kebfn+C5/mwEuR0j38gfq8wezibPzXI7\nYqiQhvLs/u0JmGO0c98R2EnYUR7pwFve1/xwgd525CNqEhT4X/SKvzWHeFbR\nXj6O9sDHQ1tOB+fA+eAoU5V0nAXpzvcKclzuq/8qkGYJ15PawwTWcknOqBWC\nos2HgpoW/Qqu1XmiMF6T4nIqPUn2htbVZj3Vj/rC/tx1tT8IwQKLW/LELtF2\nBR7i\r\n=8/cN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmxWabZSC8teRyke4WRS0jw3SYoj86KRi7T1mzj/ljrQIhAPAnzDMiV2oXKxZRWBkmqxDjQQ/XFg9E9MVYUlFbTrHO"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591379077027_1591379085103_0.9501923773734127"},"_hasShrinkwrap":false},"1.0.0-next.1591390307789":{"name":"playwright","version":"1.0.0-next.1591390307789","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591390307789","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VtJu01i6mJroWo3LBV99sr9mhmUDgwudQtA3ZaSAiqETZBuSLRqWHhG0On0eaWwfQ5l76FB1I5SCcepUhil2EA==","shasum":"dd703b33ddfc33b12f323718cf633bb4b3f60cca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591390307789.tgz","fileCount":86,"unpackedSize":1488051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2rBsCRA9TVsSAnZWagAATPIP+QFyedCi20ZsIuMO7vna\n1NMHEKPljZC6F4ojFAjhrEfHmSvH2ywh+sFST39gpVJij1H1g3e7A9mUgy3I\nJ0pzTyiwQQrsMdPl9jE13KjAT6W68rRHTiiFjVb/li2knGEliT4f1gccqIu+\noK4H/j4l50XKBRZW53FtMDil63t1bhBAZcxRhRiGXmPxahvSazkBTkDp/vmi\n+xt0wvbGHDamGDUqnkCd3PAfNGDBhToyL/QeERsHfQOC3Ci9h9IGhyvtS1Og\nOwl7FG8MKQTvst961SpvdpTxWg12/x1GN0eTALDaPM4jFr05rOh50z9C13ki\n5DNu0U2cnj5Zj5YSVu6pfBmfmwEchR86MgnkJ7QrFOphJuGcHQpHSUs/Oy2/\nFe8na/rUMYJ3rpbnpimZmlUhf7bHz8rHNXZpV2QkbVnFf6alSeY4mAdvj2Zo\nr8MVavTG7Hi32GnMqOap3kA84R5gSEns+ZmL5O87P2PSs7aCQCY/2uGn7/uj\ncy0n1M5cF0ymO38j7t2LvYB5c1yE3s/nt5T/YiC/EwtqRpUxwwqum+RlOCpv\n4QedHvrpTHRz4PnxKDRNIHu6FE7xsnTr/fl1okR6by5P6N1rSGbk/QabMK4z\nJfvmbTV616X5MO8czs0i6ikD6Ck66pO8uzYoSAvniZQYp5oqKpWQzLF8qzWt\nHc6R\r\n=8f6b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFklEc/B6fqqei5mDhjCPZQMSxUezS32b8Ya1yZJoQw6AiEApWExGmPw6FmSV7MAWCooCy8PLHAOamxLH1GfsZ6id7w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591390307789_1591390315146_0.8917574222136277"},"_hasShrinkwrap":false},"1.0.0-next.1591391827480":{"name":"playwright","version":"1.0.0-next.1591391827480","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591391827480","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-yw1gxycgtIClrlFQmeTgseF5G56OFxSxOI1aJqhuW6tK1iBSOQDzYX7YQdyuTbBjts36nEwnL6xbr4kwb3UKAg==","shasum":"d995db8d2e29414598fddc4082a6c86ff1fb8350","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591391827480.tgz","fileCount":86,"unpackedSize":1486347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2rZdCRA9TVsSAnZWagAAk2gP/jWpOvGm9X+JHBdvTK1K\ncmv2LrC0h2zf1L6hh7T4qWQNviyqS61mtXchJ+21nJTHLiJirVQnaevDT4gG\nl761nwZiTbAwREd6sW9YSXmqOV/MBu32gA+/u69SeczrtndylG3Vf75z9xDP\n/ene13lEtzxtgzX26Qvlq78t0ines8IYxnXwquAw/lWQmtB1iuKy7SLk09P7\nesksfJl0/dC60F9uqGNnSVqDc4rVXJF51BuldZxgJLx1fntZLxAjifBGKhrv\n3zB6b4179YfTlcqd7+AdUeVcMdLyyG+b3Fzjofvl2tMXxIf+S+va77xIJtSR\nYwz9qP/8aYgobmvZ4aoSsq5zCUPVXLmemkFJ9azc4wKY08oEpURfafRx48Do\nrtI3THI/RHNdOqeFp37/pd0hkwJ4SzfjutyonVwMLFQPFYWIkgehbOHbts0T\nPFEVGpx9jQzNKHpeIRhuhUpwmG6NZXc8QB7T//61PKhXLR5XMdRE2xZDpR/D\nwKJXKZeuYOy+W6XTXUs2Dhi3twgv8uwaeRrmzaRlIMCGD4dygb8jKhHIJ+Ur\nmCiuZcpaHDAYh2SZX9VoVJw/kp+exkPj9Md4QpZVxn7vesVoiwULvHYDddM2\nK/gqfa3BZ98eyO6Dg7C76CWsnsSvmIHbhSoI8zRb4/NJa/9He2KVdfWbM1xE\naP2D\r\n=e5WF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5UjkkyUkfqoqCJNPFcRlkAUdfWo47TezJCkQATGp9BAiAzD2jSf1Ysx3pWGcw4DHj/++AQzB/T/+z4/1jOKHoJlw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591391827480_1591391837074_0.3355860953847547"},"_hasShrinkwrap":false},"1.0.0-next.1591397750645":{"name":"playwright","version":"1.0.0-next.1591397750645","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591397750645","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NvrbEuzsTvvW7X1cmtXUGcQvDbCQ8+JXctERaxRe/k3iZUmtP/TWxHYJMTmcyefpBHNbmeh4BWhD+TQ6shm0xA==","shasum":"378a0b713a0cdc92aae8926733b9ee82d7d902e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591397750645.tgz","fileCount":86,"unpackedSize":1485773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2s2ACRA9TVsSAnZWagAAnLcP/3Y8IFv6SrUW74R8Jq1k\nhgDsiukhn0Y1M3x539BerPQVaMkKEXW7GwjwcP6wna4WN8xjfXkLdfNpMdH5\ncdAQNkMBRbZl4p5EvjHyr2kt73NSOJOZ4j0KjHtgIfFKXHB7Q+k+W/vfQGld\nuQ5qmKrGHcxM0cyBlBKP1HPGM3b+g+pwj0HQiP4El8XYfmoj6gzsf8kU+OEE\nzgeKcs8ljTI+NT2T6q4cqiiTmLbCtYs+SedsxYIGFmoNcpBfN66+m0mdbAqP\nUwsVXQUgrYpSkCkZCvA+E4NJ970t+mkRmd/x3a5+PgCnKRjtMaM2QH5asLPG\nY2vRMtc+eojiiytSTLbbyWCCs3rwVHOqZPjqrXL6G7wbeh8jBipezGZf7N67\nTgTRSs3KU8wbvvWS6qM6iS9JD1eA3vK9p2ZVeRHHxYudYpWQOSpzlzVdzln7\nNSWF2AM7gcGqCRTgDemx5eznL0DjfK6+gzTgg6ne9ZBDvo9hOJDLy9cUqYnF\nRTpGJ1pd1ePeoHG240pMQ2Ozp+4JoRAo9xoVuwC2Y7krTblbpBfVBLGcT9Xm\nhdkEBY2O976uvq4hbr2W6tTsKIsp8A0kkPdRs9ocBDd8URaCXmWIVUH8kIwp\nlto+PukGARb1wtd+/vxRYQPeAsd8Gj7GDBa3BdalmMUSJRv1J4iegDY7mopV\nkCGU\r\n=ItfW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlMWBpGiPvQ1nBQ7gpaJA9Se8f1fexSGeoQgJEllTPOAIgUKUKd45r0NS92pTJKOr397A11q/3EX4BJbCZbnTqvhU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591397750645_1591397759897_0.009167912463885486"},"_hasShrinkwrap":false},"1.0.0-next.1591399515371":{"name":"playwright","version":"1.0.0-next.1591399515371","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591399515371","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-peZAqd3lCHDpttRr+IsSQI6Ew2DFIMomXY62lEOvKUaolWPkgAL8Hd4YcvhoNCljs9aRfjlhFBzM+TaxRzjTVw==","shasum":"22d1c961c176bed05fd4c71231b5daf81a9318d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591399515371.tgz","fileCount":86,"unpackedSize":1485773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2tRkCRA9TVsSAnZWagAAdCkQAI02uycuo+IPGqz+PVOj\ngbJweyC5fb2VruycbWM/1GYC3QWtWW23MB/vJ/UpM2U0iwuY8B7HfBg/Y5tQ\nASzkCm5ezcrQ34JxSUYcmHcV4ITXdVVajZwCkWWn9lVY57x94kWc4AW3YBkZ\nht6z3pYYTocmL3Zmvdva9mToyyeyOPD7STV0sOcf2j3Ikx1DWKH9ga2EeJkd\n4+/kd4RriylQpTVaiZHUo61pB6uB7+6saE3LcOUrCUQi14eoSqCjtWBm9MiD\nHsMUMzZAmorS2m8NL25KIWI+HK6aDDLVeRdc9J/Lc5g+WbEsyfZ+qSO/WvS/\nitnTqjUKGIxLIL14L0+kHzbGK9pS+SR/W3wgIMFj9mimpXQRYr59bMzMeMTx\nJqY3VgaW2gMk3OYjwPN+ok2kW1GYppppi7Lg4P2GWkWWLvrLK/O1PIRPz3qY\nVOppq6gHOCx8XTdXr1VPUkKXKEvRCzFOr5IkaRx9ODc5/CphPby90MA68qqG\nXuTnYr643UBLpGQlPQgB2SQ4aOzxPNlZNtgXkoyIG3jhTT6VgxLggS/t5w0a\nsbsQ8fcgUL09TICM2r2YNg41PjV2+GWgyhIux3B8V6mfdJ1y1jOxUiPCCrOq\nPh9zyPbVG9k2G+MeQJa/KXOLdw+hpq7i7NxejygOVTASUZVoMGLdEh+7VAMK\nbIFT\r\n=MRkM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcUMm07/0Wr5Q4PF1VxqTwRvgzziL47oKAbxgJXBjqmAiEApuQPNwhCv8bA78egzcYAgYexbmOW0Xlqzlgc43rXivg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591399515371_1591399524143_0.36508132305272123"},"_hasShrinkwrap":false},"1.0.0-next.1591399688609":{"name":"playwright","version":"1.0.0-next.1591399688609","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591399688609","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rtGxLK0H2AMVL7Q+ftUnYsWFC6dWHLyXuuQay9XJ2RFn1MDS3FLT9xqEDGlOp1sQ3SImVdQFy/4t2bY5SKNI2g==","shasum":"9b4d7548ef6683db13b3d6b078d924369ded053e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591399688609.tgz","fileCount":86,"unpackedSize":1486100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2tUQCRA9TVsSAnZWagAAVJUP/jMPD7xirEUQtjGODJBj\nh8Mqsexp83ME+zN+H6OLSgqOOkM+lzQdjXrgZwL4SLDtjs3AbPV00PWG4WjR\nHW8LDOxzzy4RDI5FYEmVQDwmslwBe0OR3O0tVe2weAR5zDbfewoHQ0LYOdgN\n+3x7ZXzdWRc0xXOwFZYX4i3IBSNXieBRVvJcTGUeFy/LuzG7oSSmhkmK6v//\n33fim8QpvpL3m5g7LAk/hsZnsvBuIlh+STFayoLLp5bgovHomFRChFw9YrPB\nJxGll2HKEruiXkuFyhvCAxyTshXPLLlQ1fDhg9NYY+r3QI9JiGS0XLCyo6HQ\nllwADMbLgElunrq8ZTIIckuu8kG70hsGXuFd0NF6JD4UDCwPBPVCEgnYDqTk\nEGb2NZKCbQXR5LskJL0J0GMzqTf4PaFSpQadHmtBhMGcp0xH6PQwpBnIHGTl\nSmKFrECjRWIiQ2NEJj16QHuKpE7ZLXDBZGLInMosNrWHLKHEkDZV64dyXLlR\nLzPPbZ6jiClNeAadVWByCd7Vkskkpu1p3YMVnBl7Cf8nBVXzo4p5oXAKgOil\nM5f3QpDqXr9JsJm5qjp+o/pOasdfzdbnK1LKTaqz2SUlC5//JkcnFwJcJJ5W\nXCjG9aGCVBw/sAa9IPBeaFIGkptBx2CHl5gDkFuTojqV4m8/JQyBd7OKN0rA\nT2az\r\n=fb8K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3XMr8DSoy7wEw6zRnXZnfKLkdTRk6EsjtHl4W8ND7UAiAsTeXLBfPgflUBnKrJ3ugBZzaUAIOiR2AM987X+Z1Zlg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591399688609_1591399696057_0.0029989764845510525"},"_hasShrinkwrap":false},"1.0.0-next.1591404067978":{"name":"playwright","version":"1.0.0-next.1591404067978","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591404067978","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oQR1g7NKI8uXsUfSsLg+xJfKA12v0Z0Q2fdQAN0xCF2nR06XuxdIt/lILH+LDjP8u4NmpDOJxdjTNJOt2280gA==","shasum":"2bf00c893a7a1cca436108274e5f85c4fe563d75","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591404067978.tgz","fileCount":86,"unpackedSize":1486100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2uYtCRA9TVsSAnZWagAAYi0P/1YgSs7uTCL9aC1Mj5/e\nSQahJClu42pIMlPiglq+JRl6xThweXGbSzgdfWc46r7h+9QrnFYpU1y9/09d\nSjnWjQvqJrCsQW1+xl28HuXaBGUPz8AG/u+cFbQ+eZAJyyOCxwxekcVJJsEj\nw5GN3mYIizCp8/WD9LlSMdmW9O5qzQH0ok2Ba0cOLDaDd6aC2ojCdAWc69vc\nZqAFSwEEEthooLbo0WkbBfA2FuU+KFUhGgaB3pHWFXlyt0Upb0gaRjPvmmYM\nfGpTHZPpJbbpfWxnKYX7S9EWz7BELVGihABGJOEpaolgTcqztE4yCQ7ZAFgv\nrPGNgjAUpK17Hu/ivrIt0uupb7sAIHeeogPh15pDQboGVYoICB9JiHu4JZez\nhV9CJT9mPKR9I8HNxxkzPsbu0tEeeQA8quE93PWlozacJZfB5H12hKOYsobC\nRX5Njn/L4e51SjWIFUTeAiXYwW0ZJNqp4bCN0Ni37Yqs8ngmRTDD5C5mlOAz\nG9/vd3BUlWLpdz+URhb4zd0as/HKNLAKZeXyf+brrashPsSl5GOhJyqdn2tR\n6aeCmDjfJKe9rs+sooV1HiVb501FeXCMya/H5Aj0+G+MN3BMsArQWmxys40v\nfWV8Z6vreHSQSYdlVog/jBO4GEWoyn/mxHs5AtYijzbxGbvI3NK2DbGYb9am\ntxZ3\r\n=dI6S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTNBNbBbvQ5ClUaLl3rMFtK+IrZW5wzmDZYInHeImoZwIhALCVN7JMUf/wYlxfKi7HRMw2uXIRNqWcfeXZ6YCVJHzb"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591404067978_1591404076393_0.1922517655209408"},"_hasShrinkwrap":false},"1.0.0-next.1591405086437":{"name":"playwright","version":"1.0.0-next.1591405086437","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.0.0-next.1591405086437","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ofxxB73J59TvA+JF3mhhqujwFGewvqP4Ar7Vc88bzIk9wmn8aG8IsCpCjdg95GEkhgnM7sqrde9EiwHNbQuVhQ==","shasum":"1ef79ba01bcd64dced0f805df9c8f131f5dabd9a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.0.0-next.1591405086437.tgz","fileCount":86,"unpackedSize":1486100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2uomCRA9TVsSAnZWagAAoc0P/03c7sPJpxUTanLjZnt8\n5uQHSCXCuNXoNMd3r/IKYlyo2SRksF+v1sSijvriZRv34yKwP0qIsdCQaaJX\n+y76YgwJN5eubRjWn4cF4E93GMh3Zd9zH9lvaNlhRpIncN7EEGX2xPZSG4Qq\nA2EZnI3QrdLyni46+TzaW1rkm2ziutC3eCm1x4WDH77UjzZJyV0+Q8emP2hX\ngUxplow2YySAsmlLuwv7ng8x0bFA7jipz2lPwjzGkItE4L6SkFIjBHI0neVw\n6QADxKbC1OBXxkX0nLRxRChNTY9wDes1DkWrYZvwO+QQ3sDm1do3vL17xScZ\nEvU4Zi9Ch8WdepXCMuUG5Cj89ccGJ4C7lf71nALkG7qfLZVNBQvhHNpE+cnO\nufYBYNkjHsMGzhkwPz/0PbgizP4uhIxaxCcF9jdCJHlq7U0Fpgkq6cxmwIGt\n1/gV3o9yx+qt0Rgroh5zJ48/IDlXcyThYLNy7U+uGakXbp3bOndMekgF17xf\ngzI1Z8qEtagrc6BV73Fc2usOZeuAz9j8YREjId69pkymzvSj5oTVdmK4OHuh\nE5yHPLMAhu4GkJ5KXjcSBJ9kWt8+oq5hfiSOEJpZ391r4uZ0kOnufpgL5C1s\n0Wpp5vDJr8ymY6ygnrwi04m0RnvGSOCYzKcgfnkV46ktTYA9n7FLWd5H5xmb\nbSAf\r\n=2E/0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCErT5bUlr7ibz/Vx3BPkDEANr/szyLyi1ABk0GFu/KkgIhAPJqYsV/cqeqqKrwgG/poPXykMEtUdyhZRoB0OASMGhb"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.0.0-next.1591405086437_1591405094004_0.2405134724464888"},"_hasShrinkwrap":false},"1.1.0-next.1591406445303":{"name":"playwright","version":"1.1.0-next.1591406445303","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591406445303","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2Q9An/I123bAVLAMXVwLICKDQSwzo3ajMColYbJAciYZIr2Yun5I9wDZRMXbGAE6AqKmtrAHCIBYtonsEGXV1Q==","shasum":"d90cb1823f41091f4ea41faae3c328543c8ea601","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591406445303.tgz","fileCount":86,"unpackedSize":1486100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2u91CRA9TVsSAnZWagAAzZ4P/3LaWByPOtImWy/WNFFL\nY9/gxIRw1A0Nl6wcMc5y2mn93xOwrOFNVvVGAj4IA28tD+j5Ajlf380LrfmR\ncxAP7wQ/cQQVqMRH0xkfrm3Ti3uimefcnc5yU1XXwYD58Rp0/2bnV99Q9c37\nqoCq0sjG/a1bbLGcrFbZOXWxhYcFxQZEjEllQ8y2hijbSqiHqJPlkVdvBCWh\nNzDo306IEepmZi4VQuYuaiRsPzhkMhxbnPN4JB23wH5TWWYdbCymboPQPerr\nG4KTz1X4gKmVEkQtD07JIzDtOFBZMmU9QzLXAN0FsuXFDBzU//Ybi4OVsbbo\nEu5xoslnVWpL4wg/zbSBgdCthmsU1B6RapcDHj+aPuOnF7QLjkQM3lTUaHv8\n1aOyWdbF8sV6QCYyNADDvhxcoMSemR42QEccclRqvWsAj7XTsN/VT0bg/Ctl\nGPolLR0XOMI0f2mAKiBdlwLFeJ6tS3TNV+9gsjAg9z2wCXqc11GPn30zWkyD\nccG/jYU3uux1e3X7yA2haYrhF8f6Mtu+Or44OcG0e93HJyogqiS5krTsNDYn\nig0E1FkkXtVKDHI/MNLfAC+28pr2RId1BH9vfrUYa/0volGbz378+oudU7eG\nTnKzv5ymrdeoEEeORNNVC6tvR6mYdkyU2preC8C5y5VypXCnQbxG1GtN3wC2\nqf9M\r\n=jzu7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYSJaDA5MWsEQjyYqZEbVkY96BgYKVQ48I8gq1G64bUAiEAu7q5YNsgRFRCSYLD43OKPssgioT5oCa+9NOfWzZeM2w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591406445303_1591406452852_0.5046981956305585"},"_hasShrinkwrap":false},"1.1.0-next.1591502446737":{"name":"playwright","version":"1.1.0-next.1591502446737","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591502446737","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-FjjtT91x6M49Kxqdr1RQsW775eXrsBfmJ6vruxwHlbl4bf2hMdf2dYFtczoVeZs5savsU5hEC0bHS0jfxIRrDQ==","shasum":"9d7642854a483f3cf3622b63d8e4d3994eb757a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591502446737.tgz","fileCount":86,"unpackedSize":1487489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3GZ4CRA9TVsSAnZWagAAiVsP+wbN/jj4A7h9CmyVgK92\nBcZTddPnqcjIdMQP9Fb0Baj2AyahBA/vXBJpmnmUVUXcROGWJS4jWwczCvPv\nFHN6wt2LWcV4/WrI6fU4TOFhRneJkG1j1Ppps2veE8sCu9vL/oXW9IOY1CPi\nBdKC3621LyHGEfJUwcvZuut4bfcizjgwiWRX87LBUaiZslatUi6q2edPGlJh\nxtNzdMjGu5YkFwLmRQvjqQ/Hl0iepsfc77rYbqj9juoGY3mf8PcD873qWzu4\no2CFa+MLgKQkJMiI8OWhUiZHIurUtgbwgbr5CGEsiANHEbmlw4ipfUVOfXQs\ncaDoN4aH8Y7Z9GaZ+iIsMxPABMD6QFwPQlBCv7x0lnJFiF4hWaN3BVv1AKvF\nE06bZM9Pm4y0MRHN8T003FK7sKX2dimooqjmCBQaODmNexU/F8N9btoCm7S7\n3aAMMu40sTG+hTbX6uhU7fTA32BuOsJYTxXVsNlAydPUjvmaZ5QHw/P90oc4\n69OKdtDb36Regcxqm5hWsFsB0PnLiNcc6szVbjeiBHoLVvBwuYTVtHyTbRcj\nV7TU8GLOgo+a7CcZXK3/JUXZl7BU7yFAeyFVs9WDfBxaEhUWTIKtC4FrSjwp\nSmsxRiODMXM9KkdurTgveDEllaAMEKQdTLaF1MsNH+VdD225nX9KoOZU7xPN\nsF+w\r\n=7h/g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrjoEl2+UgBDsHT12r0uKzprL98eFNVvpZqHiUcP+p9AIgaSiXhpdC/smwMUFJYqVg/bNwLUG/OTKk/YN0E61w1h8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591502446737_1591502455496_0.45460694593902073"},"_hasShrinkwrap":false},"1.1.0-next.1591638888652":{"name":"playwright","version":"1.1.0-next.1591638888652","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591638888652","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-QTpQ7nA9M4tzPEVcvbDD2AnhFmhx9KR2+3YhS65wWV3632in2gPw6Y/dOgae17reKCHYB9EZJJWBP0BSzna6iA==","shasum":"96f667cb6f4471c84fab4206a1940cf6cb9a7eaf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591638888652.tgz","fileCount":86,"unpackedSize":1487489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3ntxCRA9TVsSAnZWagAAWhoQAJTdzaMgRCbJwImLUO7R\nG9OD+maI/DxL+2X5b9UoQCwkeQaRYYYV3No98AMo6gG9heKZ9iehsgxf025C\n+wEyewR5T+bSobz6gAFR3eC+zPgxNnIzZObxjS/PFF8zs+3Gg96hcwoYtRZH\nZBru9M1aQT2MiS5Z4BtdFLylxSSTJ/Z4KerX1dewzm/M7mQ3fjlFomgLE4Vt\nWwtMf8Ify221le8iClPqfh4iVRhEvdukAsxaP8QDTrOr0g+drNPskbjYyeuF\n03a9G8vUvfZZzATFr6r5hf5oV3sGbGLT83/qWe96RwXpjOl3lvQ3f2VWXpU4\nppuvKpxcNI4iIkYmKRGzkS/f/KoOLEvXDmxldpQ6dng40841b3eOdcl09W76\nvIE9W+2Ew1Yx22uG0/mAluukQs+nc+YaHsFuQUWhlZBKuIrV4Vp+LFTfIAJe\n3S9Kn1NklNqM00Oq4/hehSV7IjC40uJ+jGMh+xFi4JcVwwpQs735+E8vfNu/\nGuNh+MtbgjD/MExcnM10L7IlTAWtiK7TCNaNb9dIGc76ZhK2fyLBgh/S9l/1\nrvhzqOuhevGm9kddBN77Ys1KzxXOOiW3zoHfs+tnwSgKCRG/MMld8tRjYjtt\n8tp546sQahqGHN6eCt6vYPT/uR+hVu6VMHTQA/bcI1qifdutiZ1eGWLDy39B\n9dQn\r\n=Pshc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnWp9pdV/YypLb7GZdO5boa6fIBN94EOjT5/LPcfv19AiEA20nHC/8Iw06lNIl+RQkUx44nawuH/LZRzpdlkmxwqhQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591638888652_1591638896890_0.9217400757595353"},"_hasShrinkwrap":false},"1.1.0-next.1591641764210":{"name":"playwright","version":"1.1.0-next.1591641764210","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591641764210","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MLLn760Phb1qniQU6NVmCmbT0mENFdHfH4evzpzdypJxzdd0NiZJRhYj/fWXh2mPGtMtHAa3+g+KBkKj8zGonQ==","shasum":"617284ae4fbca99e1e8eedba73f976e13f98773a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591641764210.tgz","fileCount":86,"unpackedSize":1487612,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3oauCRA9TVsSAnZWagAAkSEP/RddOpAdK6ukBCiP89Zp\nJj6aRZixoG/PSJwW0GqCvAMfPuWoEX86GzMIZsgi+9xXkL+WCIQrNfdJxcr8\noS4SEzzEFmP/BcIy2bEMLwPmSL6wB8Yjmar+XqHIRcQF2YqaLOcjrXQzTXt+\nO6hrFMOaPGsQX9id5pocYJmfkEawU0psb4MEthIScv0nV233nroLc6vufrSF\npjCbRAxPU7V6IqCO/5afRHxXM09rOjZV/EhZly4tHkDQz2aO7jHRtsTjuEbR\nA1LmvdA4cCWrOVMD7Rf9D/5ORGFYBYgaOBB9oe+Y7HFhju0ORu/Ecfs6/tzh\nMcSoy5G43/PHpemE+vXeDVdOnY4oUKr0i21VuO6gP4wUgTL1fwQ42ypCpLJG\nenEVMxubw7H9GwYcJ2mHHc1PFJWurnHLpjPNJXR9PEIVBZfrhHk0UfCtlsch\nSXEhEVFtLkw6kmo2x7idSfvGMuo1SLbNatGBpSUHCz5a8GSlpNirn4kgVgN5\nePREvtmKSxuRCr0ajTX/JKAO2U55ub4L5f9fMsIh7mS/nuJFJJncT1FEZbZ+\nhbcQmjbWirqdO9N1IVMEQln4khyHFNLbLstifrnSQ1Mw+vzd4UvmPlP5kp/+\nYFTjngQTlgv3OKugpKAO0mv3v391MkjC8XRwWJRjebepG/DAWXyEUvLFolOa\n88sG\r\n=cKTW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiDTnsI35Y8VO34qc03icCmg2hQtTopHSSe4kpJ5Sn0wIhAIUQmCP3wgq1qyJDoaXDg4oEj9gWhE31OXnl1bMFjp++"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591641764210_1591641774238_0.23818894890170061"},"_hasShrinkwrap":false},"1.1.0-next.1591643570230":{"name":"playwright","version":"1.1.0-next.1591643570230","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591643570230","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-XPzMYD+ZMlKoHHQOr9G5WWUJC2RmPSdlHaqB9Y3kTn3UR1d96F5sjMuyasqMFcKDow2y1igV7rTSd1tG2qPNbQ==","shasum":"25004e0252fee9da0d258500284299fece86df4d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591643570230.tgz","fileCount":86,"unpackedSize":1488942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3o26CRA9TVsSAnZWagAAHnsQAIIK2JdTPgWHu442ltX4\nhTM/RM/mTFEds71yQxq3NH6y6p/9E9IHSoen149dpuLSL23vNQ3rFEJpwNUb\n8r7sPUBuYv+WBipS/Nb2Q7nakc78LdIwMEdeEWcDsvPox8DNVEwlUFDaAr5J\no/jlEma3yoR/K7zdLQwrDgbPAX0w5CZhMt/oC0ZlAzfdy8q5xp1g371IBzG4\nB73g1hW+3TMLU174gqkmzh//rfaEnHlCKiRapiKht8kAMgnHPW1JGLp/0IuO\nRYtqTYY3RytVVWhaBny7K52Tm/hf2kf1nEGlVVAMnXJIF+3HYYkWzh/ja9tr\nbzz2NTKCwEUATQYhsF+Zuh/qS1U2xPfp8Qbgu5XB/PCQ2IGSSb1XtG/VT20q\ncv5qqigeCSlIkgL7D8CT0BlVzFUOQ4PsUeFOiUFAcyS8hdw2BTpVgIXr97VA\n/QVU6yn92/gZ7rMXVg6R+A5HrHjdNDa8HeY5W7a/jYJdZA99rHkA1dK85XEs\nIjO9FuF08OwJVXnf8aOfnGgofLyxwcbtXWgZlC3URW65p+x8u1c4GjYdqG2u\nK22/AOKJfjgAYPORgclFwKEEAc4A5xwTYMdwM3soUlNBXDYPTNHPVQdNUBsO\n+AXKCB+qJcTDRjWFK2fNDJ6MgAwOCVRj77Z54XLPwC4zWXwRoF3JzHLvLlI1\n4vdo\r\n=bh6y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA8BGrpnIxxGhrIvdCg2NCsDUo+fdBldHK8zQ/U6z5FwAiAaTefXWK2P6/Nbj5QVW0Rht14+5XW0FtqlIdadr3hyXg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591643570230_1591643577874_0.8505220346695412"},"_hasShrinkwrap":false},"1.1.0-next.1591645910726":{"name":"playwright","version":"1.1.0-next.1591645910726","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591645910726","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kvyezGbtf8kaE0SxCYf2fTF3eoeSiVbHqJiOz0TIVV8lTXxrv8y1SIXJZYuF7uhIhp/Q2rO+NWEtpyOkUMFMvA==","shasum":"51d8c56c69dfee5245b544b5aed806cfcbff7804","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591645910726.tgz","fileCount":86,"unpackedSize":1488942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3pbfCRA9TVsSAnZWagAAEpoP/3/fRs40p/Rn5a7pjnld\n52xVZmJ12gVx3UEs4IXdAiW0MsHPTSsm1Rfgsbnt6ZTDaZm1gFY7l5tefL5S\nFZosde8KWWfc40Ni1AyjpbuWzp2Xohls/D2j9fVLC8VdJCvg0g1Jtig+oVIP\nHv7d2lOf6+p5ZCDjPtiJvNRUTHETJoG+M0SlNF/N6K28ZfM402u+DPv1CSXz\nvqPfkitHxfz2LnF5nb8crLFY8MHolUVqghfnkdpKt6IN6TlNxKhYFv6+1cGX\nuBU9JiaupOo58FhHBwjPItkr4KP5moik9AagWzzpYXUs1DWpGNGP4TI6JDiC\n121y6xxv1WtZRKliJPDxBwJL7HJfDM8G5Z4sc+ns/KtYgkQ5a68DNRTKq+zt\nLxjs4AdwNCbBFX/YaVX3xo9fmreC62xUKPq9WVsWBeZ7JaO+QPYDuOLzp/H9\n330RhPzRpATJbGYl9+bnWXeNjqSx+hssphlw//Gel2xSniFXwTCif3Op0JBu\nYWWgpgUg17uIGvRGvwh08EpDLEn1SUNOZqKlKNH7YfuuL7j7DzxQG7se/zVh\nBFGihHAjR9bW5x6qz1OA9b/EBXzJmUd4r7VJtc6dHFbFGbIEhADs6ls3Nn80\nRlUFxoG1h0P3q/8aayNEGxXNs5+e3zRm9apFFGtma9TZRhoDQ1fy2r30895M\nJ0+T\r\n=jNEL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqRjhPdebTAH3Hn7+px+4/DntUafP0AR3pP2jX5TUWHAiA8tjFreIX1R8IyueTPWhRO78P5Dn3a4+YLXqpj/N1uiA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591645910726_1591645918693_0.7464930086156081"},"_hasShrinkwrap":false},"1.1.0-next.1591649470141":{"name":"playwright","version":"1.1.0-next.1591649470141","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591649470141","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TJ5i8tf1uKcvp5M+XN8e0izjDp+Ry7WESFays4Zyz8qGrb/+3KJsUbIQu+yA6CHRwenLex40TSDloFhc68HvIg==","shasum":"161f7f2e0903189c3cd4b5ed65f5c0c3d6c4b607","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591649470141.tgz","fileCount":86,"unpackedSize":1488942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3qTFCRA9TVsSAnZWagAAvmsQAKEHt+MeBxS/B3/ly+/d\ntMbBL03ti6OioZKzYV9/+V0H8e4Q50s9zWri7ADGGP+zp0v3PsPlNXQAZOm2\nSwOG+5Q4Mc7mZSFcYm8HG2DkuAJl9nTPWpZ1q72Ri74+mMM0w9h8+lsINMov\nSkxXpr20Y0n/mK8pDszmkf0fQ2LWQ2hx4onK0ZzrHX7AMjHqYQ0WZIUJNQxD\nyLki9F6QfOIjvkt4aoxTkBO89fMA0M8iHZfbb+tf0a31Lhl04dNuvIUeHDFB\n8hgeeR0wGPKE0UGJZLsX50EazxI4l1UBHBmJ+ky8K5ck8sDSCyDj4b7sm2Kn\ncq2vzEteL0f33pTjOojxf27E4g+o2waVvSboJ+viTpSKHmllszwlZLjkO1dq\nUqnZ1eq9Bl6LZCSd3I12X2S4CIxi3bo7a/WMsrDkDD2W+T0MU8UJZLIF189Q\nLDPvN/yj7naeKN3lEgQEHkr1nSroObOkrVyE1mjT0UtZLSwW3kj/HFIEUxEB\nvMGdYZwyT5ccDh4Qo6OBp8oJ+VqpF88vz2h16TeQhntdZsmm3DpiW2ZbZWWn\nXQarkcbGK+0Yv1qRs6xj8NfDGYOjttjFgbu/K38ABdlND8hbh2ZkIb7qSOi0\n1yeNu0Cra5WHJ0u8KPgFeqziFmiYsCY3EBPMX7BKa3sz//xijGREBzq5kjLL\nuXoZ\r\n=Qn7H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4653jwjF0BtZR8Qly/ppIJEC+boN/OzMbd22F6ltmFAiBe0sq5S0mWRS5fmAmBI04bw7RuOoOn+8XnjLK2r1G3pw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591649470141_1591649477191_0.7041340705001005"},"_hasShrinkwrap":false},"1.1.0-next.1591656990499":{"name":"playwright","version":"1.1.0-next.1591656990499","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591656990499","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bj2VIk+bf04QQPK5n1zOoiOoXWfE72OvbrKAgjtvK/2YinjMAUIEs1oQrW/hVtGNAErQWaUUx36kxn+wwbr5UQ==","shasum":"7742ec074831fce4e9c11dce07b541ecc7243c8a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591656990499.tgz","fileCount":86,"unpackedSize":1488942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3sImCRA9TVsSAnZWagAA9NoP/RZ8OzvBui5HaBX6o/RT\n/srSvvWbnopcIOSDlGjwOvxsTVUH7LiVOChm5110UxLSTvyagjSvfDJxRDNa\ng8KVXsFueDGhW//KGe7EQqraQweUMEwtAYQhDWiKXqk9/ZyRsfRY8gdOf9OA\neAD5h3Wt0L/sHhJVYM8SkNZ3DGm5JTn506ipxeuctMjnoy9gmde8Zi47WJCg\nO7fZEkFDh6kuwxJ7EkgMPb/SqJG6tFzfl50E5SB6zQK5fCfr0r2fEi6WFPg8\nmaYkqkfpRLDLKGAr1q0nGYO6RtMKJYgCttpB0ZkpYIcVrdGMY5ddp1RE/lbH\n5nG/gz0WIGIbsERTc6sxwd2P8MiYmeC26rwha9PDnSADEMdxhwFNjMlC0e0C\nMMhCfaiiWDCq/3eU0TP71xOqwQ4a3TKAr31HQ4I/l3CyCZOdGsbV4v3hvbFq\nFycx9jpYg1LQ0awZt1E5RBD8k+RcZSdgcl+iTndhv9HUrWE3BSX0V+n4eiPN\n5zcvzo5o1NftVP4EBSeQAXJhAWe7Dw3own1xkPMb6wBiB+Xz/ix4iA1BG1bt\nc3w7Z2XWDbPt1nXaF7PS7g/wUPUF8/IcADjtAb+L71Ya6frqdtsegR53R2L6\n9eydo+6v9CiIb6tOYeT67JCCn7pjMl7Chv2h7BFG+AnoMCndSngrtyP+I8aQ\n7l1M\r\n=t0j7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBiStBfXQNvwUTkLXmKue9yvidkS66ARIutWfYMjGRwhAiBOumVGo2dU1FnK8lEimN4QzmSTxwyFZ6eBIiF0yZIEPw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591656990499_1591656998411_0.5449236428171842"},"_hasShrinkwrap":false},"1.1.0-next.1591659113271":{"name":"playwright","version":"1.1.0-next.1591659113271","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591659113271","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8uwEnA7m36ArCRp8bRyevKlyq+gF5J5iNEBHQe1SSXCwSbb39G+TlFQQdiApaHkJhG16QvMhhpDuhHGqs8JYqQ==","shasum":"ef593c15910be99537d94f156825752e92d15d60","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591659113271.tgz","fileCount":86,"unpackedSize":1489272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3spyCRA9TVsSAnZWagAAW/cP/iVWpV/u5N/hmqZzwgHD\nbY68xt44DUqrxcdSvi6mRw58CFWtAoKxBlr47hNBItObbsT7uYTLxvU6yobO\nWsJ75Ps5oi5yibWnwWHm5wGwahkpyBKmBUU9hxjulejTuVa1cxB9ZlWNm+Vm\ngTA5UQKAAkr19bWLJ6DEbf+JXH2U5Nxrjjgkh6Z9yWX/kDoMaJ//IuF6kwn5\nFC1eB8e4NbQWzGc+Ng+MRvRkV5wPoK0hXdp9vbwFRDQpEb/Mst8H1Zxv6COX\nZgwjwbHcaZowwA6Nxuiqei9k7E25rVNj65kEnTPltcQ6FQsKYbopBh1YH9aq\n1KJW4a2ANUHYZN2D1eJhbH55p2blj0yIzM4H6BSLuJ8EAGki8pr1seD5iQab\nXL20GaIwNu41h4An19OsPU+bVxb22Y9QDm31bPkl0tbAydeEI2vmAZ5PtHfj\nHIpy3VB7nD6w07fui6tCrCSBPgC8/pSuw0CTo/eRaDB1j67/XtET9nDDeWsK\nLdYbEWcKrbdHH1UR0IXX4YC2JDYWi8CEL2o7WvTEnidOvqBPiY55b+vnbp7H\nRyR9GnJpKyi8tqnvtXsRIdwpvalbWR2e/MIbWEoWyd7QjTSUx7brC006PLMD\nN1wS+3Vtu1+dz3zn9Fou8eQJJjlGc0sWz5HV2KgN9DJAHU8c9ulgQMZHAmCx\noLVE\r\n=0Lf2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt8e2C67J7lJ9XPdkVbhMQntC+fc9oM7Vl5/Eju+yBlwIhANEyVgrwl8UHDbRIDykxgGj4+oX6afPO05DIfHOpzbuY"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591659113271_1591659122204_0.8168441520169418"},"_hasShrinkwrap":false},"1.1.0-next.1591661200626":{"name":"playwright","version":"1.1.0-next.1591661200626","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591661200626","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Qid56CzAzXJrcTa/3ocenNHcMCpddwSB4UtInC0FUSTQ1SOtBIXWYx0TuZs2iYVgeaXxaRoaNn/G8yXwJwjAnA==","shasum":"97c4329230c4481687a2829ec56a2b4159536cdd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591661200626.tgz","fileCount":86,"unpackedSize":1489272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3tKYCRA9TVsSAnZWagAAJD0P/1g0Sh2CIrKHaF9z8VlP\nG5bxWrPh2pqvx2SetQtWF5zkFTZOCM3QB35ftNQ6uhDy2L+Ilniq+a+FlvQ8\nKGujtC6A97CYqotsAlxUUi/D5uAgisrfjdQVc8U4qOtgTMlSqCmsmJRpSxVr\nuxFypWQfuN9Zvk81zhmvRgw7LHc0AJSdj8D3mEOvnca3dDPjWjNg90F4L/47\nU2g3vb49/Kn/gz5FhtDdBv/+R+GC4zjcWYcUjn+L+/dXGxBYxpyZw28pBo6g\nSq1LxNh1hqzisvDH+TtO/4S+QV7sZYxP9npn5/H4xJvpuOAYxfCjF3xbC5Gv\nkuelIjqFWEhvfW34f0WnwGPPkNAVbfvclro25KtNeww/hRKZVz2z61fGFJgr\nuvbrEYtZIw1zLLRVlXhvUkPRgrhx6JMIQZagyCcUde9jtxBvIy68AOvJUPvG\nA1v6DFQx3/fwhjgXybbsxkx3st/FFDKD8c9u4rGZZxUyLICEgKtf2KK3exny\nBTUq+LSZJXQ28ADhvPbY2O4+SMR9m5Q1kFAOjBuRcs+RYFivsJgkY0DR8M2h\n/yOk925bvvO7rFn9+MUvPbbkojlketXDfo/K5/mh5Kh18/Bd7ZEclKQlWjC7\nBoNPnbTD6SRdfa0OCV/5pCNMN4HvWA7hJMZpSHO/jvLS06vcr4aK0jo92wfL\nK5zV\r\n=v6K2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFwclh/JwestrNUZ++hPU7EpFv0HvOYVdG5WfJ1UHFPAIhAMtnTIRFZIlyzfdWjxNtJ69hdnfdDPOtUhO0IwlUTdcf"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591661200626_1591661207784_0.8219901665969698"},"_hasShrinkwrap":false},"1.1.0-next.1591678053179":{"name":"playwright","version":"1.1.0-next.1591678053179","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591678053179","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-men+6aQxOOFsShYA2H/wvXnj0uID3ms+giR/5UARwT7O2iD3YzOE07vhO2bCkp5qwl945PycmV5x08hdLE1Uxg==","shasum":"14e59b65ff9432f70ea96e8bffb162f139081c43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591678053179.tgz","fileCount":86,"unpackedSize":1490050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3xRsCRA9TVsSAnZWagAABAwP/AxFoJxPX3PQoR6FizKH\nk/7jaZ0OXYNWpah2/DC/AmHDoRStLLEcPPU5ctOP+PeBusD5BFCP8GTz3cxf\nIQdIvHMLd++kiBp8Xu3DkzlohmnKeGY9AOkyX0BeXQx//9ioRS7f8R66FfBa\nLJfu4pTE82UXDBC3+CtMQuwuEqe/LaD4Uvt5xdO6GY2earPFnknPDwdNE5ah\nqMVFrlULmKfgMDsI2UGYYiaH+BvjjJnJl3u2hhc5hcb9fpbnE+JZYYFbWNhF\npZtVLTDz9UzDVKpQTv8aoZmsFQnMmz65ZtdDgjOT/tUGLtfD7zDMMnE6WsMX\nyL3BrmOy9KD/8Zxzu9GgDpaZ4ApSJHmesRExRsn1AixzR8wz+WU8C59lE8Al\nA2yNGmbgnEfnonbDN4YD4pftcq2LzvNdoHnNjhjXoPoYWeg50Q7np5Ptn9+3\nhdz6dKX8UHh/US+OD992eM0kQ3piM1awmAk6VRCIiP0mft2Chf2uiY1+bCD/\nQtTQk7i8P6WrGfmrkSrCF4PNtFEtpdJOZ4FQIdbEGw0QoXQVN68QbgaxSoyh\nwP5bhGKPbFOnpwtBgyspqD4AcvFUeOhD/HezlgaCQzI+Bid3JWRAMCPSx6MG\nDZYzj3uhG1y7HUH0zmUE1qNEyyqYn4Bqlp+cL5DeGIfEajQcyC95OKopuBCh\nBAti\r\n=xwzn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfTsgdaOkbXVMJAkgIhXb5MZhT0qjBlAb/ZQutAVg6XwIgNggplwPkmFguXE9BpF3uGnGHeI2KJGZaLyZboczh6z8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591678053179_1591678059974_0.15961020520037494"},"_hasShrinkwrap":false},"1.1.0-next.1591732966035":{"name":"playwright","version":"1.1.0-next.1591732966035","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591732966035","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nI/nlXMwmIwcOLz2/umPo5jr58ZP1yMYeY6oNvkdWnMAvKW7UcgkuJ9mASNiW4nxC+mS1mlsOsEFpZRFhxel8g==","shasum":"e858c796a7232428d8af32cd725b309b899527a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591732966035.tgz","fileCount":86,"unpackedSize":1490050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3+rvCRA9TVsSAnZWagAA8gMQAKUZ4cZto3f5U9MRENyG\nAi91Zm/zkhxffGsj0wIjN0TXHq4QkrSKfzGusnnk92W/vDbBFJsZcnialCSu\nCacEsRgWJF1lfXuve+A6HRxmMqHbfY5VYnDDDHJ20iOzgPumkfdvCyzJn6iM\nGhh6xhNLdPSWgotcjW69H39BIl6aJn9MMvsWgL/iQYE9HKB0VAJQ/zg/PqIj\n1ezQtR3NDfZ7wieKJ3fj5EmwJhy3ijsy1kHacNcFHnjWDDR+rvAdoxIz4Jft\nX1L6e9KYUa74YgBRoDy1RMHwCOFEdeaO1/+R44Wn4lZ8/Vpomb7e+0qFIJqV\nrPcxRSSwzLtHqKK9Icp6e6Q041nqek268nTcL/qX5kFoqCMA1Rm3eXovMkTx\nT8VMKMMGmn2ozTaNHRRf1H88+vi+h0F1DA6RIEn2FLbZtqR/K6IIbLIS+iL5\n3yNILCZTeY3O2swz5DYqeACgM126yBGSr7IQ7GsUB1AlElVxUpUQ1lW2UVt0\nZTKsFhwntKgqpU50BG8LdsnhAfqenkkP0BvhVJWOoLnjgyVRkQG1whkyTY7a\ncMeCLCzcn28Hkapys2G6NwuF+7WqqjathDGVvQbQFOI2A5nENUXnktW6NkoS\nY/hcoPIhKT7MFZ0J2BYq7qwff8yHVnuYt2XpCZ26eMiFMiw55yZcyuT7MKni\ngRGA\r\n=Hi9j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa7WdxJ1Ar3RB/tqE8Z1jfi7PwudW29j2hYuRHmXiLWgIgRizOqMejhurilv8YkMM/oKqwh3O3GjHz9CYMPg9KdFA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591732966035_1591732974670_0.7299523529268748"},"_hasShrinkwrap":false},"1.1.0-next.1591737094184":{"name":"playwright","version":"1.1.0-next.1591737094184","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591737094184","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Mp4QcxSKoDh7zm97xqq7iDSjLUOOXTXUNfrhj0sEw1IzMXfRpkts/sMc21QiKLaBXMAmyJoTvTIdNpO37RCAtA==","shasum":"ff901eacb3a198b4c66b573e9b169935e07c9578","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591737094184.tgz","fileCount":86,"unpackedSize":1490050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3/sNCRA9TVsSAnZWagAAnDIP/3Cgm/G+EZ+092+Tpb68\nczmtE9jZovrhWF8JZhG71Ovp6j6UlRWHJeWTFE/tteAVAqSUmNMhCaVoIvx6\nB7UJBxWw8JG5RrgobNpypCMhUiQR29XBkV1PzCX2S5ECtJSdzUWxgicKptGC\nAnmxj41nj2B/64iwnyPmU6xU0RU8dsdqdgDzL9m+qhc2hjZ3dipf8x02sGFa\nu8eZhdk6F2me10gIarHn/43BQYofsUs4LXNSZhJmShE0EL10mShuGqpR/Zis\niIbDLPySwN33EO16hqzisNJ+VnpffZUEqaSkYVBGIaPEUus1b7TzS5XkivqZ\nNmGZ3z9PPSW8eWe0yNjnmCSZpu/Dy09yBcy4ZOhDfY/Kjg84HwawyOeKn8r5\nI1hQ0ONwl6Pe3NVV/8g4vXYM3mVvxmuJaXCKchyJzvCyzCbjjmxSmGrcxsyR\njo/ZMfGtju1THQwTFsvX5s2XdVA1d0kLU/qIf4jnBmv3V5mxG2q7SAg3hzkr\ngJ4DRV5wZOBMk2ct5zlKrW1OaljVejjlPPa7uqQxPWREFps8KCGTlG4kw6+d\neBX1zxeneInnmX5luURvMf6ESKh7dEpDsK0qok6pas0tFA9xo7ch8eNyjfSX\nuVCQRQOV1H9meKwyDFZq9yoDeuzEie7Y1o05G3Cof71Rlpa6tqgjRRnRUU5L\ndW0I\r\n=cdq+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICum5rmmarviHvTk0TQipkt+IozJr6XXvqBcRpB4MgsQAiB/bQgertb/Q9tenhFGZNrl4+MyGsXVA9CY8i+M2UTPBw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591737094184_1591737100938_0.3146747038831219"},"_hasShrinkwrap":false},"1.1.0-next.1591738312726":{"name":"playwright","version":"1.1.0-next.1591738312726","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591738312726","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oG7OcYw8U59chpSqcPdUnx637BonAHSztzvMNvBJxKkXzMaunzhiud9ME9ghKgjSfjWErbPeVugGfkU/cvjtHA==","shasum":"8caeeac7380a731d4283625a6fde344bc2a39acb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591738312726.tgz","fileCount":86,"unpackedSize":1490050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3//QCRA9TVsSAnZWagAApEoP/iFb3LztmFLjNhlvM+9/\n0i9NR5RRn33VES0jCQiFfqZUOs63lPMJl8XcHlXMbNm+nqlyzZSwj8AKMTzr\nR7czLj9ghLZQcZk0kaXtaeXEpF+N+p4sNUGwsSitU0EwZObafVGd8o2Lv3Y5\nnzFI1n5A3CV2+ITmz1bbTZWHCfA0vwxyFvmmo/u8lstomoahYR/kKt2Cr2Y4\ntH0/0MXJvWn7aWgIcSMZvr3U/MXmwPWLTX0HsC23+df6F0d+ihQh+DDBdTGZ\n2sfqDk0Os7eTKvcCIMGIIqHfz765Zu17nvpxYLBx5Ud9OTIBF96hitFJlb/r\noJvqZSVB2wx7CxGBb4q1+LzRX+VF/thbedAN9s1/quvDUorRiV5OEjOePZsl\nNbGDo6JLy/aYpu6fUiHwAAvtRRftLFZCo53ijZqxT3NaBh3HM+abrdwEQkLl\nBSjTuZVdlFbJb5NizpUtljIrYy5X2OZrE3edyIIyYX2PHrR4UopLWTLrV9Ub\nUHdp8s23S3S2R0+g7NtqES6gOkIC+y64pXR5Fg6x/BKIc2Ph3QEIyLdsmb4i\nb+3ZioFXsqrMn/RQtJfNn4Pw0wK6xGHa1MUK/2UTMdYxhH3tNEMZcJgqYECN\nrXn+fax3RIkzAqXOJxAqzxtOSOImnEguDZAOrTg/ZP0S/eMtzhQ3WVLSt1C3\nqhfq\r\n=8p6W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDh1FmUwhLpjnQeKl1NgWiXnTko4pS6lSXQq/OvOoJJQgIgAcieSyxfoRICLkDXT7Kqjenxr1FM1jxFN9JyW4U9ajI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591738312726_1591738319836_0.1356408895512411"},"_hasShrinkwrap":false},"1.1.0":{"name":"playwright","version":"1.1.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5LtKEQL65MvI1bf+Wevny7Ntz7DcKBqFVjwUNOJHUMrZJPw50M9UmIyh5EAsXdHDP2F2y2bYkE1fLTrB/kXd2w==","shasum":"e75fb38e0a2e19502f08817fb090d83a873a5f00","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0.tgz","fileCount":86,"unpackedSize":1490031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4AWvCRA9TVsSAnZWagAAv/AP/1JLY9rzwMAq1lrzShQa\nwniVEXR523zStAAWjAD2EpecXVJG1E5vgER5Mv9LgAg+hfe7GrU+hNlkMmbL\nj7C1U8WFGLM4SxOBGMTnQXYQkp37ShxoPbZmg5FX0AXRMDVG7aA6nN8uEoRh\ndtEyvqNKb2B9sRP1D2Ohdskeqjr9Yl0si8Ph9AD28DShx9rXTxRmZCpPHb1U\nWuSfakkQXnQ/AwtURm9nqqj+HYm2Z0GjYQOcMpILWghaBeqkORRVL64uHONx\nAGytRK6DZm2pRP7VkpDg8SpLbGhuw3AjA8iac3jF+u7ASne7vu6Q2OfPCDqr\nbUXY7e+yNzxObFL0io3PN0ffatZHT98IMyc50Rhns6ayRSqb1gECyzHG0MW5\neTML644RB6AvH5JWKhGKDHFE2mBcKsdcja0CV3hSy44DguMNMxO8w0vPyPtw\nBQ9AaGiY8CuOF7d6BKQaCVO5oBjEk0+OU+4Tgf0GYpfZsOQ3EulZmPrMdiCq\n+uRDvgjCdbua3u4iK5OEb/DO95Dkzx1QY9wd1qNH2XgcIy4IsF8BOZSJH2m5\nW2MNz7tsoD6vm/mqCctZ0CaekCa44ANm3RzAbg/7xa4TG5bTrHb+858Nv9h3\n58lmFHPOdRnUcvOBwfvx29jYQPa7pTozvKG6vMgWdtH5JwCEnYLdnVmapqWb\nYGmH\r\n=HS52\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmFf3AYT4cwGrlTsxfduBassaXQO9DJK4XqLNO8MLJVAiEA2B606AzTzhppcTMRMBrhNnA3FJwVDyJmL6IrxGFyy8c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0_1591739822506_0.07283318859884402"},"_hasShrinkwrap":false},"1.1.0-next.1591744414976":{"name":"playwright","version":"1.1.0-next.1591744414976","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591744414976","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pKX3tNj/FD5LKtxBXixwt09X+27LzuZQJr+8E4Q6xJHLj7FEvhYXshA2LOlP2pH6ZRMuCKhciNmukYA4uB5pFA==","shasum":"1448574131825907d6959ac76ccb257d30d47972","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591744414976.tgz","fileCount":86,"unpackedSize":1489120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4BerCRA9TVsSAnZWagAAEdEP/RzOdKo3/k5BEvPhTqPM\n707fPfSoXJTq3jkj4RgsT8JydB6KzCVHmsSHAXxQn8QEossd8h4i+mVWFXQD\nRJXkg2Uf9lsmKysYcgzhENonSjGOv60sUHvQiK/OHYwFdxBisK6UAVqZCiWr\nvL00PCRTreKprKTcAG/Ib0GETJjtm4/xP1OJtE+0LzdxyUgmQmhxYR2k12/t\nHK9fQ2DvYo6kDXzXyHIlYJsJy3xES2mfzCy5f9UOd2qxrroHYHjfOrUpmjuD\n/RYWvveFzHoyH5qMGyC6r7+9DDgfuoesDHnPu2e/dKcyQQG6yMg24+S5MVNm\nRXC8zj3FsOKBb2/vFhzFQZnE/6KNElh+BBDP0AG23HJK7w7upMueZwDSuORM\niwMsv59SVhhHv/iPf0HUX+D/QB/uoqG+fd0+9LTy5fibU7XLsfcw5zf9qGBu\nPf/jp1HTHc4Ymyo4uvv9Rb3Umj5LMJisV42PvYV9nH7Xf4MicAkkKKESjg7c\n7mAeqoH++YOYKEc3pv2r6QfTUh062dmBu6jVi4g5fjqfoiXUczRbGkxO3dTH\nL+H7TeJ/82NQRjWuZGW83/F51upnfx91QRvXHCkbOfwhrc7ULunKY+/c8w1P\nd55yeOr7e+9vODHvgiJ3dgXTDdK6+yPc4iw3PBklRxSPoSTxQwj9mjXMec1l\n2J6i\r\n=qFQk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX7CLWiuKI3fgwc9+1aF3ADBK9LXWCynwhkpkWpsO8AAIgThwzMU16AxOygqWhTI8FY7WyfGzYZckFvrIoZhpTsS8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591744414976_1591744426753_0.47110584776001185"},"_hasShrinkwrap":false},"1.1.0-next.1591753563116":{"name":"playwright","version":"1.1.0-next.1591753563116","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591753563116","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Fuq21cfoT/acY1xNwe3IYtlV1l1wDTmBE8ajir+tBBlqxpk676kqUFNs0VY4Y5PZ/L8pNb9GBfGKKlzQPDozjg==","shasum":"6d2cd1071344fa1e7b0e4d092d7b5d9897f39600","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591753563116.tgz","fileCount":86,"unpackedSize":1489120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4DtjCRA9TVsSAnZWagAAxG8P/2LQuXgLU6gCr2aOGVPa\npSQDJIiFWc+y3SiVHP5V3yUpsJgTkw+uxLS9KO/pyd1IpMb3RNui65IRfdiB\nyJ9zKQfytfYMnXhE6mFlKsdPu/WPXFpAcx+ygTEbWzWtvHChJ4tiiWrFX+r5\nKLa1gRmeowBwEsdh6mv/46/nNZe7Ejgmi3VO0ostdKT71wDBEREG90OU7iPF\ndNAbUGA3qstQIhZVARhowyRAhGpO/Tx0ar/vejRmfADFJkyhS8y7umBZITxq\nJfUEnZG4sJj595WARjbUPUqSwEBITvs5Fi92VV23jz2Afs6S5UWKX3frYH0F\n/31YP/TJuVFsWo+mrYJBzsfIEpHRGteS/3t/hN3PCxltabstJpm65ZUrNFpQ\nlL/jAbr/ns5m4SrL8qG8SsnShaV+ZHJDp1YBooAoaPn3NMKGwoQiZIyB+2my\nOI1KLKJFJFS93D2dqVTlObiCa4aynAgXa1z929yo+l+g0W7bAUNMrK6CWWLO\nWWwSuBoDkW3R8a9rq0qJp+fCLQ+Ql6ics+iGNwbbtbZ2OigiDDmli8sgRp4f\nH3HATkTd4uOLnX1mLxo2mc+4yF4pkuDn9bZB7yDowCWQov3Md0E3Tnuqpua0\n7b7MAHrSC8I9BRC3RfsHLmeXdlpqAKO2Ry9YZyQgxT4FTLe+wJrYnUw9+bgI\nl1Pr\r\n=ZPth\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB7LelbnHHXGBeFyH+XFtBhVjQm3DvDCbna7oSYz8E3zAiBx2uRIiqhk0g+ttw1hjhDj1UEcAgDguf/4jVqQyJDKuA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591753563116_1591753570511_0.6064970990132288"},"_hasShrinkwrap":false},"1.1.0-next.1591754323782":{"name":"playwright","version":"1.1.0-next.1591754323782","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591754323782","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-N3AWyzg8/53m1G8ka6045o1ztzWfIAHBcEZdC/6j9H2a+F0xdM+SmQCwf3DmJ4u/WUUHmxCY7+XgUIgk9vX79A==","shasum":"6ee2ee421ff43f7ea246c50c3eaa6f74b0d252ab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591754323782.tgz","fileCount":86,"unpackedSize":1490111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4D5cCRA9TVsSAnZWagAAosAQAKAP2qvQJ2v0LEoMiC1G\ny+/xVrxPKt8ESi4kQSFTw8M3rI2K7rM/R5ev0rm7BD3vMELur7zG2GDPzryU\neZRxKMjuYuPKCEL4NjCs5lenTvpAkiiqkm/WHYkhLDgNkXOo0nk/UuTdhO+A\nV34wEcf2BUem8RxJkXlHsT9HbCYz+IDqMK7za4TLGQbaq2m1vCLC8GaarouD\nZnTLC+2WM50Niwirq8pRdVtJIRNQvrFqViWIP/1E31xPz0UeZaI0RaRGsUlm\nPhCPz5wrKPch30sc/aLJIIBzCem7xq551tgZ5F4Gmolh92qq+ebBMZxQycNd\n4jbhi95WAC4KSC5BjyiBX1codfHIyG0eaB6QLv+yiSqKB20H5MMjhSTtp2Bk\nIwVWD2txko4MrBOBJ5wVq8EnQM9Zf4sz2lHfWz0ORcxjXP+Lsf4owoWhJYws\n3NHADG73DnqOxiQtiECeYmhsw7KtZ1EP8EVW3KeglRVPbUlxDME9arogxISo\n5K4UjhcNiEliPsOAtSoBBBs4LPEeAqd5saOAkv2xvjeQHLu/z1e90p4i8V5M\nBwCCz5QgMekwtDi8w6RVlPpZsrO6yA8Y1myV4JvIyaBKWllyHTLxlChSKajm\nBw9ZR780ozdIasYzpnASPVzDzKNIfc5xkqPA9SYqyIkMB2D++KYijRv2DpYh\nKEft\r\n=8Ps0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpm/oin8+oZMnvu0R3/LNfCFj/kPqg2I08E39AtTKwYAiEA8eQmLRIIudFiGFNm94non6m1M2gS8iAQtvxy1hi3GpE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591754323782_1591754332116_0.9420737467845597"},"_hasShrinkwrap":false},"1.1.0-next.1591768192722":{"name":"playwright","version":"1.1.0-next.1591768192722","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591768192722","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-x1NOxJwYSGpeLPA01+XUWB8li1KVNRFk1M91rrrkFuYT3enkZKtL964BgW0FfyYIgUyINA7uKWG8WWHatoJU6A==","shasum":"3423fa11446f9d8f1ef1fee39d36ca8b49322cc4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591768192722.tgz","fileCount":86,"unpackedSize":1490111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4HSJCRA9TVsSAnZWagAAXhsP/jIU3DEOznY0ZTIcPsh5\nefhYKlCiS1UN73sLGaM8S+dMowwZMNwZSJBCEYgCW1FFPFPuleLIcR8Rx2tl\nj2IxuLTNr6GFSKJO/K6G6Uoq5w2kbmCS9et4U/Ie5EcdPjcvrj6McUr/Bfz/\nzmFtLt8jlYuVRq7ODSDoue2TWLZvqeb0J93qIsAz7m1tZy/1PMeNhJ8UhVWR\nLXnnyf8JEaJQKzx0ooQCvpkWxQAupIZWdIQIIis1FR5lf2cH8D4e1EeWV6eu\nGNutvA+MfxHO0/YR/sDEJibJ0Nlb/N4W9LQ9OTLLHKb30PjiHI3IU6ZAnrlK\nL6foCqF5EBWodzmYiAuqZ+VGZaCIYz2elTViqBcgf7Dg2e6q8H2Wo4xMtzEF\nxrs6YH7wrmVk9WgZvUJd1J5SyP7VQf68XiFFt3ycVNQ615j/N73WNsRfGJFw\nEKXvV/OhJFTlzZdMXq5IJE7hEItDRZuxsQ/k33ste/Xnvx17bmbIoJfBK01e\nqfg05PLd3dhr2MMzu3UaUth08j7ElsZhahbKeFUWUBf/vyxKrDmfCkjF1P2G\n3YL50mGmbKnG4egg/qxCfm6O/EyNUfy37JkNJ4wokvjNVB28oQAhFW3On5NT\n2uaN44L1n49qC8JUlWA6xnUMnIqEgBGdmNH4WcmuBE5eEqcHg+PWcJ57OAH/\nIx8Y\r\n=peAb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbj+iBpODI712KM3zw2x4g1rigb+Y5jEuOQUUeh8CneQIgGQi7lfeeBUolkhmp6iXXubjPKBVlLp1FfgAvGwqn7ac="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591768192722_1591768200518_0.18203383538223594"},"_hasShrinkwrap":false},"1.1.0-next.1591771686680":{"name":"playwright","version":"1.1.0-next.1591771686680","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591771686680","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6spGSIqiTJHZiGncIG5UXDp4hwLmS/lI52v6fCIjP8C6eeeTh2mvFAuSWTcSdFdQiC8MzrsqCQKPem4DQj7p3Q==","shasum":"ef4f6ac5f789fcf62ba1ec7fbf72baf612f8ef67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591771686680.tgz","fileCount":86,"unpackedSize":1490111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4IIuCRA9TVsSAnZWagAA1NAQAI+QX4SjFG6zfYaJJTmJ\nEM4rPM+JqX1ImWaLj7aR4aZVuPIV8jbGEck8v/0sar+BIHXBjII+s9iTlTFI\nn34AZ72jY+VP6LaHBCIkRTfuplaoLCfvffuA3R8XdrxQl5wtl+qWTclqgpP+\nghGkf1xEp3dn37wAT2Tj6PoWVyzVuVUu20SilSEsLsww5xidKFFNleO4r4oR\nExScDQz983/X/l9FUmSjYcGv/lwuCia3ppEdsVr5mNIwiqEpb7YVNE6vt5Ab\nQr6lyXhIUBW5eZ1aJzxVAG+X3wEciDHSAHQvZSK8aWV12DkbPLjv+6MhBQOU\n/X9BnttHYE9KeAZNaDHvj55v56mVoDd/Cul0rNd7r5vMBll0YvjVfl+9edKB\nLga4b7LwmdsHaB/Uj0NCRaSk5y4vbE11EMgo3yrpj4X8EIsZ8YoYSEG5g1gr\nXIRPkkjrEdEI/De/0ghKpkr/3uzMTmp2X0qXAfPnRHCKixV4ktauKKR+xWhE\nmfuiGxApbwhZ/niz9LYvFFBMpJd/E6huIJFQLnCPwpLGVK4OmYJUY8LKnyRP\nsUu8xzOAUh71eUxvL0d24oyqitIqzd0qAzMbGpUYtcZsiBHCGZwhmFTd7eBX\n+10yKcoqI/smpKCFvwxDZna8xBcOfCf38ASSnHOIgyaLk1RIjRQbY5h4cpyT\n8mPH\r\n=KLIt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCr1w22IwbVsnF1zIaazJpQG/RDXITplOg115r6W2HRAwIgSnK4zChkRp+mJ5sdeccaT3svvjp3ahzNfVKIo4L1LkY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591771686680_1591771694046_0.3428424984315832"},"_hasShrinkwrap":false},"1.1.0-next.1591801482432":{"name":"playwright","version":"1.1.0-next.1591801482432","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591801482432","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Q7z0pWjd7qBY964+r6Hd1QN+jR6wHr5QuiyLQM9EFbU8k4x+w+j3qt2fuFxEIoYUA3I083nin674IbAJJT/51w==","shasum":"2848c83e0ab4895f8797a8a0b78035fc6d67336a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591801482432.tgz","fileCount":86,"unpackedSize":1490111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4PaSCRA9TVsSAnZWagAAX3IP+wQXENKGazYwPXm/Ny+r\nGPanbRE1AexdTFN13n7CEd/LFexG1sjy1IDNNPDXnWoZhAvHmBA+T5Rg58Tm\nMAvmWomXogyNNT7GwUGgnC2cmtX+QmNZVzEU8ieCOHsfhktglZvDQGoJaWeD\n/7zwksIzOp++MVUg9n3jf5OxnP+XX3VsdL6ZwAIMOcTEHHJDyhwhGY68szaR\njlh2x6Idj+cKhLeT8+CEO8ed7Zn5YhS9eLtVd0OR8+/OrvLF0X6Mojz7Jv6i\nrEY/tnTcam1U6KCiwTv48F8UmvVOxRbT7QE1I/QhFdR3IYQHdjLcLcdL8ZxI\nicLGbkNJyznM7rlDzksJ+QkqYHDJPodIf2MdX03eNX923P0eYRwU3l/aRtET\nL1UBveeo0oUiqvLAeXEIKnqZ19hhZ1RgxnRl1kvhkWda7TlmTOvB/jS+Z5uA\nTmueBN9V1KPu9cp9vuXZmvXhFIgkh4wk6cmR0ugz7LWULkEvSMJTPXlvsUBL\n0TYg4cobGNoVQBFD1FRjGjTALaXZ+BZK6Lz+sn6YO8ALxjo+RsRoEiLMoX00\nGIRupi/xa/zdtmP5SfFDPXMPpcx09BiJYdLbMcvE0tnlukfPnJq/UldQ8XEz\nLY5nUO88vOZ15jb/Gxb73ahzP//4adonjoZEdyDzU9AYMw7EPyCZasQkNd1v\n46yh\r\n=WnJa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAYvwePJZIUVgIogmYUK5Jm8+TJT4OhMHjvvwJUlva5vAiEAiK6N2AwDusY18zunoam/waELiu/bLunRcppzh52aR+E="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591801482432_1591801489720_0.5794911144683619"},"_hasShrinkwrap":false},"1.1.0-next.1591807154874":{"name":"playwright","version":"1.1.0-next.1591807154874","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591807154874","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9NBMVEDiGqN52HaQO83qu/WqbZ73XVHa0odCnAhLSAVk5tLPIn144E7IWBcdwSwfEK2iybUB6QZrpu9UZy/0wg==","shasum":"eef92ac4f570a9abe362b5de78900fe62b96e0a6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591807154874.tgz","fileCount":86,"unpackedSize":1490261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Qy8CRA9TVsSAnZWagAAzUIP/2yi+WoGxbQHVKOAsWcO\nzYax4AX9bhTBGkaLUz9/8w6Hh358v52wjWYBBbtGHoswNOKtLqqtBkHFxuna\nd1H4KsEyRAUq7riJlGz28kLvUeZ4/mUwR/ftnncO5J7jyermBTnsZUdLfziH\nrQclfiFnXDU5ICGIFZW28QhtYmfT7ly5mU9HtNnT7VcBSEmh+bm3W8EykivF\n56Stj95AKLP4h1J97B11PW+dMz7LAhwYxp+5wUwBAMQ6Ygk6sHxHMlmMCokn\nbCLVW1TiiuX8hdgi9CaH0bZ/DwsereU+tkRrTIecwu2si6+baa7wvVfx9z7c\nuN3N1WnDTyibvFpmlFovUHeGENs9rzUnbBgicR4VL5e+wXDiFMbfxjMKs/fA\nFm+UEyxcvPQA67LuZkH8FKmqwgSEfMwhCeI4zJyC9D06Y73ZZK+Y6+k4wuUu\nqhMn85Dw4P01DNELxD+vaLm27h3NNj7LmFZIckNlrwAam5IMMoepKKxIKxw7\nzVIJp0T7t/SY+HDDp8jgEW7Jj7cCrbzQjXSvyBYGqJrrEotg6e+32o0JOj1y\nL2cg/FDRY68hJpQdRW/+vSLaYpBQTZLwloMH3GMCJ63kfNE18BwE+iCUfK5X\nNSkbTcDUeET/tr3JfLqYtdMDoErQU37PDt4NLPg1dYTv+vrQhi/lcLN44mo2\np1rD\r\n=Lzyu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDI46z1gFFMfongodQizFi+kSw0Z3CAC9zOEo9Ez1RTBQIgQQllchRskfgeVzOdHKEwdgJvDlSCgnP97KH7RDAi1eI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591807154874_1591807163846_0.6884173512530394"},"_hasShrinkwrap":false},"1.1.0-next.1591818741355":{"name":"playwright","version":"1.1.0-next.1591818741355","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591818741355","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GDKqRz36agRxR/Yn2895PmBK0JoNSDnIgKo77eG5NB4oBEIx8wV1URr5/p74ee2+ZHnASRyvsPeh9+CBQkpy5Q==","shasum":"72be994e165fd517edd623bf5ddf5a9bbffe3e3e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591818741355.tgz","fileCount":86,"unpackedSize":1490261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Tn+CRA9TVsSAnZWagAARtgP+wfLFtHbCE0O8fUd9x7c\nfgZ1i15assokZy1Z9dvSeXgijN3fm2XjXnMxVqW2fFiUX1lqfU9wdJ9GzXeV\nWvjK/iaXCSZKIx6LhawnrVH82iB67UpXp63a8AKfvhvhvWL5XbrFaYqdqYR5\n4VnXaiemEtWAOmREJyXh/f8WOj6g+ZEU/atNAfxsN8QgTy/mBPjP9ZVlcIuf\nXsxGnkykyNUhi4KMptzTTktcQay4aIHJPkOpDOfabk/ZCP3ubhNmc19cx3Xz\nzBhXdDgj25VFWlg5KH8M3Jg0x3WQOWpixeqwm8SXJt9XN3IJrLix+WLWw/i9\nhPB/GGFfP4sx87xQBk7R/ETuKkNBChTkvywrQRuQSA8oAoZPiH0dy4KqOcJt\nay9Kqe0srrQIeNTUFdbhtBzQaxemv530xSsVFi12mBx978C7q/d8nAeXeNLJ\ntDjwrTDyMVmgO/FhdPUnhLwmORWF7SAYKbWYYKKNWgONLWGrHBBRzooQ7tEk\nEqEXjjKestn/SNBeeLlRB4mIAIzRP+D/slDW6RBdt8kygVgdsfegeO1b2XUG\ns3h2crki6VkoOReusMZ6TyDQrK8DFlCdOr8TS7qzp3vPRdG8zuvPUN1L9jeR\n/sJLOEFB9/UaIuTs9IXH+6h+fRHdo5dtDVJbCWUwhmYnJIPeJ6uGSTAXUZ79\n+1js\r\n=hO7v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIHagFCULY9si+We0H61O1WqHuB8d15/5MyFa9654WjAIhAOVh4Msy1nB620OtkUANgP9JGoCtM4u3ifvsEL38xXyX"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591818741355_1591818750266_0.6105891880756842"},"_hasShrinkwrap":false},"1.1.0-next.1591821505243":{"name":"playwright","version":"1.1.0-next.1591821505243","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591821505243","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6l4iHtmK2imV2ZQNysfMA3k/4ArD4te/LWBrfAaxqzGiuBT4Iu3sIeSk7eOwuEPn1z9HC6fDXhrhsuRcPinybw==","shasum":"21de62f986cdf1a766f4a5ffa6374bcb6ce8a70f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591821505243.tgz","fileCount":86,"unpackedSize":1489045,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4UTJCRA9TVsSAnZWagAA5qEP/3hOV5KIDSUfZkeS9lOq\nyxGHN//oXOtblkUiZM7XJVEggbMaa0pQFQ3wRbbB9R1z3VzgIY9U1tDqG7ZW\nR3mzW1aDBQ4CQcl5G870S2KKrDSBcHZO3X6l+/gMCmlIZFTytj+OOsP4ptGK\neNwUs4RiEbcaAXC4QJf+NG4uN2/yLgoqAEvPTleSu0XjeqXCPu4UiuNZiNSX\nOE0SVFtgk8AYnGX6kIGbNSJQMb+J3s0u3x/ZuxKB8nJEdmEs/7BpGz5m3Qmq\nY/nV6HpF3l6Y3ABRKANvyDFeerlOTo8+6gSsMCaoJ1aKo7mjSyNDeg2LgNaV\nCS4mlgT3DDY6SFc9M7ijZjeu4gFmuUY4rEc63Kjjru0ueL6fgOFH8nTeX43H\nnrBJxov/BLlHUKykU5/oF0xH4kGJ3VvnIfDGC8RJQ4dcjaUOiRfVd48osG/e\nIwkLOV06Rqc/NuGHVwUiNIp2qhZqL1NDBoEzQgagEGVOTfJf0SzNonQSFW7d\nh/N/sprERdmbLHKInxmMHxe5/9kmIMjhUtyiyf4zBaOxsWZebKaabo2A10TB\nBmm8fzhsAPWqbdJ7QxjIAE7toBfKD/+iGKupt7i+qwR0ATtA6owGVA/Dsejo\nNFHzf+9PcTLCmRPpoPACRZgZkCTEQ3B6fniozDJ5dC3XQiyukXxrLi9HNzyw\n5eoL\r\n=fqOb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHB0eQl/SDtAm28MVHt5Cwrq/KugEwIIgjr9JXC14j8HAiBIBZNz5AYhCj6XFt8Paup/J5Z0EkqUIbOkzgy4wtJkqQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591821505243_1591821512658_0.0436086518802834"},"_hasShrinkwrap":false},"1.1.0-next.1591827271206":{"name":"playwright","version":"1.1.0-next.1591827271206","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591827271206","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CRBc860bfKEjL6fu6n3mVAXdj2WbSwZMt8cYGKpeFAFsp9wwBXeFugqG3x65X29ZsFtVMFm/w9NzQkosDKy22Q==","shasum":"5362b7294e6ed3f050e65ec7df2c284ea05133b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591827271206.tgz","fileCount":85,"unpackedSize":1488485,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4VtPCRA9TVsSAnZWagAAxGQP/3q8oPl6AUwsT8Sb9e4i\n7l7GGC3FmoIKVJWEfTQUMAdtEh3yqs+cxcXo0G4n6QFe9BgHVGnx7lNCHPfV\nYDV30d38thXxOSWBWFF0q+ZW6wMZNtzGGoBraiRX1ms6NgBVQmaFgHEd4qKL\nIeYeohC1WsLtTW6xzFB0rd1bhZfE0Bn7Q3KPYFuaAd//tikXimatwhIrmIx9\ntmACCs5oTMaYwBb6cORCH423rrXDuQjiow6AhnAoFvdKYf29Yv4t0PiYrfDa\nDQlTJR/WFyju8kon/E4n42Xz3P94zod4qlPFxLmxDUnL5+wiFlSK1dkRrGHq\nQ5A7Tng34j5yvACro6iLqTqi0fWQ8Iy3o2UxfjTs4O8Ezar2KsT4MS9sSNla\n5iv+/R1RWJepdHi364FjGwXqAV//wAlvsn9maWeJZ3PkEjt/Y+kWzpU/DDFj\ndyXByJLawtD8aTCk/D8MCbBdy74DgGv6nKi4MzaFkbZ/TJdm4LDiPPJ1YifJ\nIdY9N9NodIVSBTU5eh6Rg1cdouEVt+bH9obxN9T1P7ZXY12Eqn21KAyUvQmc\ngfu8XniyiNrDYowtsBQy20EY3KJ/nEquaRy4v+4KXkzjjbAt3vf+I9Ysbgjy\nmszGnpL2INyjDC1t4CfwajrAs1QjdfPNHkgqZVaozpq4JwQ4cHxTPR0Stmlf\n7aT7\r\n=eqbo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy5nW7CwOh3kAs4d5J6YNshBmrm9TnmeDvK+DZqAG3eAIgXgJ1RGp8eMbMvl1S2evgeTJlUUe3JvK3S5LFdJvEoKo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591827271206_1591827279339_0.38827475414596035"},"_hasShrinkwrap":false},"1.1.0-next.1591832166833":{"name":"playwright","version":"1.1.0-next.1591832166833","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591832166833","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dekdwyliPBrmyH9+GJeCcyjhIQImQBivX/Sgzrx3+3rY/julx+L5ZJK7w5tLVuFFygKdMu8b87OtSSFrytepGA==","shasum":"c1464469c1500330b6c096ae96abfff8687a6ccf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591832166833.tgz","fileCount":86,"unpackedSize":1487709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4W5yCRA9TVsSAnZWagAAl6sP/2NwSRYaH0YOvAlJYhjF\nLiWN06maNB2jgyVJ+ijFcjX6dWikpjaFqkvYYBAwEJDE1G1hxhWiqLHJjdWJ\niLC8NxvNDhffnHmAmDBnAgbxZ1sAgMqRDeLSa5oMf/UKxMtcRMx2+0N3s4E5\nNpCdrqAHwAH7qd8k5PEwYGdy4Tw1N6GIXnaW6AaLXNOzMZEX4jmQynOt5niu\n5p5kgDm+x8tyNWdaQjHHZ/OTNaoqZHwGii/Uw5T6yP8Lad5EtcP6/tR/LaY2\nZTk81zkUsefJmApvGdvYtT45RIOkvVzCGLBnVOlWauAlAj7gWqSLjVuYM86i\nWPQH1eZ+aFCMTrs9NYjNk3CX5XXPwMb6627io+xmMaA5eZqCrQ7tkfYkKwV0\nzJCNanCgwIEutAOBcB0l3+KbuAV2675IeWgRXdWMaE9vXcD1q9yu5UV34pc2\nq4sznnnV1QxiUCvdMOWjEHAjr8g1sEUqh4DwCYJseSH6opwMleyQRc3LhqaO\n93Kw17y1TOw5K+2DxQzhH4AcVI3vXUvYhZNuUlNaVyZ3wexQDRRQiLYCbZj7\nMwOtYmZ7bax2Z4Jdj2P5hEdYxEP0ViDifYWWjgLuv0YfL81eCa4YqZvURMMZ\n2SgVyrbxnN5dr9Stij1y2orlEV2EAmlKOtJ93RxCwxsPsKdictOrtLyoeDTc\nrOMc\r\n=TGp4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5vAfMAQc7EImzO3fhuMQ+lice3irPP9Zpbe8hpq56yAiEAwVh3Os3OqqZjYVGfqGI5P5AeNq3PtpsPrNpmAnnY0o0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591832166833_1591832178179_0.8565365359873229"},"_hasShrinkwrap":false},"1.1.0-next.1591840040604":{"name":"playwright","version":"1.1.0-next.1591840040604","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591840040604","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-EOTZFtvgVGOZVQxPHLGtymYREEdObUjABmwTzU5eBHIAF67DB0X/tjnLFLT7AXZwvmxsBYbzV4JrKLYth/A9lA==","shasum":"54a086aa302fc41ee4060c56cfca508fa61f27bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591840040604.tgz","fileCount":86,"unpackedSize":1489161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Y0xCRA9TVsSAnZWagAA2XcP/2S8UGohV/RMboDabq6o\nydo3GG64q2mPzwByN31uBkgvn1vMNAdr9ONGmpV2hNZW7bmy8gaBL5cK6+Ep\nkp3bpB+BRVCuGfNATPsEVx5bbONDE+XzbkTi0fCzCy6eojz5K6NEhEKAo9qJ\nbTVd2pOpC/ODjmX37PYPVs6QtppAnFfvWOAW4u5y2rYznpZOFXL/wj+HUh54\n6FmU8ukLhsWVzG2X0nOLbx6IRLLajSsguD6+tE1BDn2lwY8AY47ZptfSPpqD\nupRYOJ7sqTcoMT8a1mNO7wRiGqHrEqgP5sbLVC9tMalfdnWrx9WtXGlEi9T7\nHn+8cjJW3ll/vqFhmooJpDHztt0eSolQXlXqk3OVO+ybGql6NNVP8gr+35aA\nyKWmfUVP5djHd0s19RIUldZIPQmbh2nwvwAZE06LO74RrV7vkAVr1nT9kkad\nfhhFHOQM2HPOXdCYJ4m+J/JkeN5ehwvz5qUDxXAOmeqfiemJ/Wnz1vGcPis4\nIk6sdHtAM0KKMYBs/+eiw5MenUOgEtLMshyogIYWtxo5R6m6zM63OWKfhPAR\nOwogElGlYRxhFGYU0BGXHs5YS1uapIKcW8vpnz+6HEmcTubLQYI8jzIza6tM\n7h7/y0GUtnChM1eliEfcdasP5mGLbsBmrVZHCat/SAwSJG7tlflbaHmnCvGF\n3eAq\r\n=cI3c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDM+Q5dTtnMuVsqhZD0GiVzXmwGTJX/dLN6QJqpfdebUQIhAPRboDg6RNOKYSnhzsYYUNTWovEUsj7z/BPlfuFbjz/3"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591840040604_1591840049173_0.2994225375318871"},"_hasShrinkwrap":false},"1.1.0-next.1591840242645":{"name":"playwright","version":"1.1.0-next.1591840242645","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591840242645","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lWU6OmbGPv/fkkCkgCcmft0n9W4WgXXP25ymidygBBOscWmxs2/3nwl7lKEKPawl1L7/oHHYvy4StRaWlfNddw==","shasum":"baddeaf0a5906bb0faa396deca031efdaf676a0a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591840242645.tgz","fileCount":86,"unpackedSize":1487504,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Y37CRA9TVsSAnZWagAAZ4sP/0WZQtZhvZOtKChkRjyZ\niv9eMzxpsldy6EWETx0Qid5+dXfiw1tOsI4pGXu+BcXOMVCGFjC/vnATRTVO\nsPMGntMVfVlIYlWZnuPBklcrxRAMOhGYgZnpTeK/R77YfmdQuImY/rXsrwRm\nVQgFRrImuP9BgJLbTrtdRX2U4Vx5loyNFsmChff8Fta3GHQkT5ZBhIIUSnaX\n+5W1pPZTjyCaB2tZrp731YYotKBylRz1eUFeHADvXvhTuFdo/4zxhZ6+xiYz\n+Ik0IPmpvrehHNB4tNtwtk7UyeoUg4LNqMC+q+8/a+gfzyPyGZvMr5vixrqo\n5QQ/80d5UoeoRtL/HU7X7oup0dZu5ybH5FwHle++42xySLZe6fmJ+ZZTC292\nInIqzZF5xTvsGM1QC51xJj1bLLcoa0toq18Wh0ZxhUcPn1lIyfqYYUwO13lb\nwK0vpf+EnEl5Nx6D61tt7IbMsqfY+hQoqc0n107ma0+NaEZT9g34zdODl/VV\nFwHwQ/fJyLuub9Wy/fpEI5oHTBVLHdYQkkRwVubk4nKUD1VcuoGoZ/5seGPQ\nGk4TRSCW0IcoJkzvyXiu7JJBptLcDY8a6z7IwwbBVhv9qUKCtKpofFoml64+\nnWAh2ZONlxG0kx5hoByels9f4EnJiPkJt3k3HIZICwOVCKgTaulDo4I28csL\nz+Vq\r\n=laIH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHe8bl1vOc8jKBmzdDMvOjOcjZ6ZrCJZK16/3+0v4CgXAiEAkWWNRZRE949MI5mmUx7mxVvYcQJSKlWlFAi9dp4vRmI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591840242645_1591840250744_0.650126421783012"},"_hasShrinkwrap":false},"1.1.0-next.1591840980301":{"name":"playwright","version":"1.1.0-next.1591840980301","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591840980301","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Jn+1/C1kud52p4CUGl4hBKLdAxMi0+MBQOD4c9O9Oss0/w/dv9QCPepmJXmsjbUySxQwRIorKiRTaA9YiwXaWg==","shasum":"00b3fda4becf00c11a095a2bf811094f1e3bc12f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591840980301.tgz","fileCount":86,"unpackedSize":1487504,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4ZDcCRA9TVsSAnZWagAAx7kP/0MG4B0MSo9jAy6mHVIZ\nk4Ujrkpf4beItf1NufvTJF/cxT2wQM6+yYV/ARUTMZG20hBrX9Vg2CItfKf2\nt3xrJ0ultu2JrBrr3lLFeka2dAD74NOrWUClKEFK8qgUfDiFh5HosydocQBM\nC1IROPVAqF1DkmsvuzscEYMZy2OqaQKxQzKSrsSS7F099vZrI1TNjbkLSBhw\niVlx3UqB8j5NYeb2P5RWZhEqYIY5nERbNzTiEKNYv6kqjJxVOElaIEU5b4u7\na8V9Y7DE/m0h8zfrN+H8xQwlZiGxEzqRcpGQ/L5uDID6QaVBJswNMnWEU7cN\nz8Nw3mRRqaeuUURkhMCFyESygDS4NZ8vP4kxwpU6knVKFoSGp5GvlMz9DI/B\ns4f33USayChiOksyh/XlPeJXoByW4MXhv6My5cpfuQgwQcB+NqPLoUeP7M5M\nHI5EUZQMsq3otz4yINz8oYIPcroQpFkKU4/mCtBN+AJLmNYpa5x3OxUdhDm4\n06BZ1GnX/teQuRi6Zcdlqk8KaE8rp/icCYVpo1AYUEBHJrhImibRY/XRaPwr\nEyE7wO4JpWUyKH87fTl15VGhtPe22n5XcudpClCcInM0wXvMRNmcahTuEWKJ\nywU61nKZmbu3EjZmn7XhS5ZqsUnZo+mToVRqnlb4eyM2ofsBlXgAU+C7/6rs\nU3WL\r\n=598O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOf78eSYNEbg1XXlU+qJ4m5dDP3LT+xfVYEL66djpJtQIhAJwCueaM35kw9H9VSUAEcTXOcyUOnl7oRIT+Z5GMiFfE"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591840980301_1591840987706_0.8561953344462523"},"_hasShrinkwrap":false},"1.1.1-next.1591841006216":{"name":"playwright","version":"1.1.1-next.1591841006216","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.1-next.1591841006216","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-F/hoLXCw5ePGfzMuDAVfBIpn+693crJkjAVCmiW2Zm7eU9ejAugR2Ii3IOVpOuvrXGlEKM1gUW7+pM90uetU0g==","shasum":"4024e835b31589b847fe61234a8cf084baa5542d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.1-next.1591841006216.tgz","fileCount":86,"unpackedSize":1488393,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4ZD2CRA9TVsSAnZWagAAlL8QAJKI28s3JfIDf6gm46Z/\nETYpp/Ib1q9qT2VdEWMh74IUESe65YeW3zGfhsWgMfhyYtovTYUI8zkQvAsU\n3ykdefHti1ilKnRh0rgz/0pDS4T3oHzg9LCm4f1nMne0tXNOC1hR69K/Clyy\naA2CoZS0jIdm5jokpNiLx7y052HW9n2D1jjKq2n9QeiaWObU+rmwRK0PdoI9\nN9RogyaznG5pqVdmMuh3Yj7ItI4QyfCpXrIeSEXIc23SZsDTBGOkR+VGnlMR\n8aQnaCf/Zb5ikHuxA4B3Vs0cIVuw1in2LXuFrcZMqATyZs5RHFov2KvvfKEN\nJ8GeoXUrEj3kSi5laKl8MX25wUQQyzEhagWDFsvg1Si6zaCRw5XHL/Be4FfN\nhgo2WrMmmESWL1tTtRRs27ggL5OJIQ/rm4xru7LeTKjoX9WzoPg6zlg6CYe4\nTIBG6guUHY261NIWWL4/BxYmPKH2AtZqOKmY//0vs1hzbsUA9sU6Ve8wQg0L\nbLL8nGztdOouxdR7eGVeivCeMpLODxFPZrygeZl6Z9ihDj5NK24Dw1KYWZSg\no7LxX/A8xG658d2HHSjyGYkFUjl4LTjfOzTEKpBNnWn0Sac5OrAix0mn/eNB\nzT0bme3VkYBdLsYsjAgeKNIZkYyqW4P8/G3kXQJ7uB53UPcI4mY6s87AJ8Rd\n717z\r\n=B+NA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzG82RZ6wPeurfknwoO6Pl37+3Y8+LLuuXgmk/0NAgzwIgevlzYbksSvVP3pb5iRxoyUioutqZyt5mpTEeIBXBHS4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.1-next.1591841006216_1591841013890_0.8244230295288093"},"_hasShrinkwrap":false},"1.1.1":{"name":"playwright","version":"1.1.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.1","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-abAB/gFdMQueapllosYyEzeKyEu6x/83JykqxmUwSu2foGnLT7E4jPUvbJdOSEpzpDGxN01KmonyskcfXxfcpA==","shasum":"20746124542bddd7e925c128b6ec1ace679ffe6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.1.tgz","fileCount":86,"unpackedSize":1488374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4ZcnCRA9TVsSAnZWagAA1fAP/jm4zAoB5zAMAl04zkyN\n8LCtw5uGGAKyF2JbtF7iufLlN7ox8KliJTaS1y9CrhksBM5QB02QVa/zujSG\nLOZX3zljBTSDALybut+UixsPA53w36m/mFQeTELzXATbUBqvxW78mqIM9X/q\n9JqlmpqbrShGGmQd59ZbQnvMOhe3DXz6B8QCcdKyqvemYqgFAySIvIlb4VW1\nF3+YOsXTCGI2VXciWM8agXyW19NFpk47Nl/QvmpkbB1tr6/d36ZeVi7jbpDc\nrswytVtSUZKcr717aIUvfeCPCwoxNR4iLfmVkeI8wZdRZh1FaQ17yklv/yk4\nnlrW8NfWj+tWGu1jkuhxUwhYoGfZPsRLqoptt876cW25KcD+uI8/berLnTnB\nu2ZRp8QL1qwN8AISQX5yOWzL+pELNYtEA8TF0REvpb52jznH1iK4Xutnxgcg\nHZEqaoubJSpEQs6RW08nxxY03XtfRbaGmScU3Q3DtsLk5hJWyy2EfFdt2USs\nUt1pKbRwXry1N3QhE1hr3M+n69CykschIId7X2uKMQolDnwVPp9Oj0Cl0WiL\n3pW9wwNV+/ThQzdGuMRLkkh3sjZGRCqqp3EiYha/qaU/y6o7uAtbVKCuhAZN\nFbKmcC1ayir4k5NrBZWeQXSjR1GCdaPkZzBThZwLo7cDd71GiME8fYY4Q4+R\nnchJ\r\n=WhTy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpZYbe9B/QyXtUxUyZ+TxXTOlggN9FjORaKRmHCpSYFQIgGV/Tm0hCH1HoAcC+WNZ6EGHM1Hj3FR7JnXbBMLP+rQg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.1_1591842599157_0.1779942090956803"},"_hasShrinkwrap":false},"1.1.0-next.1591847436879":{"name":"playwright","version":"1.1.0-next.1591847436879","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591847436879","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bAhwrh7WpucHWebqp+umn5Thx/ud3Qj2NESB+CBhxEle6ONioYibxpaDrA2w9YcrpV0oENytQwKKqvZGVKXtLg==","shasum":"5d0fc58e3f88af3f11c93f15fa651f9cfadec66c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591847436879.tgz","fileCount":86,"unpackedSize":1487368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4aotCRA9TVsSAnZWagAAEB0P/1nT73uFFfxZ4zfbp4Lk\n3GsI9Jo+Y+RnKBgjumF/CJxAcLxYHEhyrgM1xDFnuCIX5UoopTXfWnaf1OYJ\nrs6OuPI4g6X7VJY7/Q7hJ46LaOLxS+B4MlIVJ6bGUJVVkphPMfhbCJ3EYCUm\nqolbMLxYxCLFVtCtfD12z5EyWwJ0cC8Nm2yukbCeQC2bHgNEnOtZXdAlSyVD\nrZdVgyuygpY608L184r/G1PL52MYA8glnpQhJI4Brrc3vZcsdV4Qj9rpGpjk\ngEjZv+JkG5LRfkvQxAXZHavJLoRLbNGteMJYNmIb50+5mFZBnwWprpr0m6pT\nGxSuEiJtn2AFufiAlC4pm5GYgG6Uh6VEnna4RJR00nShBwdCmSPsbXsT3fcO\nq/1UokRRgfcIYTc8cW6H9zQKlrYfHjgVyOcKLhYPK0zJxsQkRRtVvOxcadlH\n76lVY4cKIFDibWOMV5uwfto3QRBrOpPlyIhOJYbwt+eIFRbgX2KPTOER5a5X\nrudQ/Va7XfPVlP7R+1UU/hquPH8F8Ge6W2L9s1CqujNiNCLqVuNph7YzHaLY\nDaUdITnTb/XIdBXyKqkIi6dwTcZEAe78k4KNOIVRZX4GmfpbMWeCyEz77Yso\nWJUdwvC43xThGrh7m0LKxnBzqdM+FntCqypepH2JXY4u99BAKXS+Q61/G58Z\nO6fn\r\n=eyRO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkZpJpIdVvbZjkU90qH+xwG9ULT9k45Y/PSn5oTaJJJQIgV995YA1wgO/44ZK2R0uny5xxoUFa0t5Rql/XqyWMK24="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591847436879_1591847469117_0.7357239522177952"},"_hasShrinkwrap":false},"1.1.0-next.1591850160480":{"name":"playwright","version":"1.1.0-next.1591850160480","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-77.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->77.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591850160480","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-aEKRY4CuKNBaNiXACOH5mfozhyFWhk2dXi1QFmdR9T7o6mnsZo+1/FxQQ6FGWk0SUSlgYqVYSfoOm9mOvPx+Kw==","shasum":"eb7a3da9693748cd2b3d77f2183edbd8b1f48052","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591850160480.tgz","fileCount":86,"unpackedSize":1487368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4bS4CRA9TVsSAnZWagAAHHsP/jKMldVZhz27s7heMdRN\nazAB0rjDC99G0jZwPTHShBWiP2Thnk9Lg6lpGGrN0b+ZMLdUI4oULPorbEoB\nngcHSGz747F7gIQaFdBMB5OzMJTyRIEUrt4LdsYGBknxE384ObuDT63KiEsD\n7MhKgYu7x1/3q4zg5+MPAkrCFy4kmpGQw9EMUARY3XynNYWXCIJMSPm2g7l1\nFKYRpB0LFu2hOavjJ+HTi17OAOSHA17sldw7eKf+mj+3Mqfj70aDI+4rSg+R\nLT7Ud/72E4vSp+x2OVj9tbx3Nu8pa5BPuzeN9MOu/C4JbNSERxxb5i2YYqZT\nCB3MarF1BE9Lw16VzrQW1N6VieSLO/N6aChRQRYfitNqU7p4N5vJ9g9WxGNU\nG239IXo2LeLlqko3gsr6Fy/nAjRY8UhdITdsFdtbO7/09RwGaGQfYrNq9zz1\nKsBqkYwa+4GjXH5Ub7Hjxe/waqZnEVIiUsjGycPlNFAfjxgOulrEk4gWaKnb\nVs7Q3mS6a+cRNV3e1yOOqJbO6K0HSo+afLMxWUQ9NDI1P3GJk7AONqE3/RW/\n05/uOjP6s5wLWsyftTETIt4OlsHdYiuNUrFaV+mnaoLLYEs11aGpZ72xctP3\n5ooSOg6pb1p7XmQgvs1xnrvs0u7BUr218fFJ+yRykqja5vkjKtPKqLWT3HAF\nF8BG\r\n=qdwI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzjIIm1AuBvRVHJeuDsRgw7Mm97LOgc068Pv6BNTp5NQIgKDudj7/DtV3T23RsYPb3A0Gaznuc13+2dcNUglB08ss="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591850160480_1591850167908_0.8580868446327552"},"_hasShrinkwrap":false},"1.1.0-next.1591896109757":{"name":"playwright","version":"1.1.0-next.1591896109757","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591896109757","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-evhWEl4rAO7jK0GgidyTBdWfGuudyFOum9nUw/lzUoy5DPuQB9+OhwneY7+ICkjFYEgytFalRBsZYAgbQei6yA==","shasum":"f83a3e13c98501a3c7d7a6f8b7d3d838e462033e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591896109757.tgz","fileCount":86,"unpackedSize":1487368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4mg2CRA9TVsSAnZWagAAYF4P+gKnVVmRBVb8ZUE+q2KP\nixmuxj/UP9RTk5pwaQvgntX1jS1wr1jP58zc0TFFZffXfQYbymusUgou6b2t\nwTp56I5U6vjaIjCt2dzcmx0gLpdNZcYgV+Iecxfs6bxpJlhCouUw/0Ay4HDw\np8bE4YCn7nHK2rtgWc3zKip0Wp13nLFTz2bOZMQOrc2NjqCb/MpGb1sqk1FJ\neG45IN0a7dEgMj+1c6tbdnT91vgfiJTvSsipTNL2pwE06AGxCrpXRyxSFzIu\ncY3wBxImVEGeg2NfAKCh+GDs1eIFyGoY9ykA2uDvjHbXqVppiA3QNiu7bta5\nITVOa9+nvuHEyVi2rZ3UPTRjtlbIUei8a7vDO/Kix/kUGNCXBt79YyObMv7m\n+p1p8yOQKe8HvFnsvop2eMeJMJF6XPz/SEq/Idp3zIuMHXdS0R+OT5vdCyoS\nomn0/B3Q+yJX2FfsBeXS8KfiGMtXlUr/hhEir8XFIqRiyk/Owacjgp4o8Hpl\n7tw2b7VmWJHTKBofNVBXPNJcamrOfU4/0jD+kJbRLA4e/G81V2lAvdpM08eO\n+aeZDED2DZSncmmr1bXGaXbg50Cw3NjzhtDtl26WarH0Vk7zD8VxbeDAdhaZ\nTTWl5KdWnVvO+E+uC7E12+VvZh1cicSYLcFSQRjkGuxAoQyiPf+LYoiuJbys\nePxF\r\n=Jla7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLNLG6WSoSyqPSmAE34ZMkgG9oxqDWuIUcIbBQ2rqfogIhAP0GxAs9lFOVWzeirWFck9X8IVRCxaYRO8SBL55eR2x9"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591896109757_1591896117650_0.1524172818629943"},"_hasShrinkwrap":false},"1.1.0-next.1591898993879":{"name":"playwright","version":"1.1.0-next.1591898993879","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591898993879","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7Yd3kydeycABoERsB0FuvstXB8mbeapYsYhnFWZ/fpoUJj7AgfVv5CPw4qRMhIPEl334ZAVYoflHrm9qmQ9XFw==","shasum":"606640b56676a4f59a97fe8b664661643379b082","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591898993879.tgz","fileCount":86,"unpackedSize":1487368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4nN6CRA9TVsSAnZWagAAZ+4P/Aokx4XGpea2USAGLlxO\n96Kng/q9BQTooGbXIW7zsCCXZDem3KpF2jVt4T8SGTYio/D33qld9NiO5Ufc\n1cBHj3dPGcDvbQkrPU4ltp6Toc5Cc3roEbWWEKycVQDt0VKS6FJVI8W7N1wN\ncTxVLD8ETQx/qZTDQ8q0/ib1ptvjbydbTmM4yvoZPZAZpOeiKX5gHRUFs76X\n1oDeZsvbHXX4KUiXI36IeD2IYqH8odlYoLXx+dqsUSp4pFGM0c13gACT1IVs\nBcoVkgRf7Eehk2kQ09N0dc5Um2oCWu9gzApjdkNv2nuQ8Y1NIL0Z6rs5UoVa\nNuhgu3Wub8cSI2ekPhBC1Yqw6alUGVP/2S8d3/37+Z1EGQY13rBPgH2gWf45\nq8heiFYm3VgGRvdmMl4j/fB5ukaa7SS/0vh+k/bG2/WcYFHT0FAS4/mkQUPf\npHFKhUMRnNSdUzfop26NWreB+SLbQLDt5bRa0m9qF9cr0O0NaBZ3Ngw9GBcH\na8Czb0SsyFnKfAlmXkPjOh2QjBlECuu8nnW3vX7wDhbJswgwk1yKJQXfUUV7\nw4ZmHBmiKt6CxrCQyvRpTBlAkKmcbBX7rCjbKlP0YljHvfv1iQgmYeOJdTE3\nbASopqyDrT04XkCNJQChX88HVDM5WCa7K27C8QA15kaRvsuxo9sBL/YCdgu9\n2rnb\r\n=PdFM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9N1P62uE/AVKrP015xcNFOyoa/8VXyz1J5+G6fup0zAIhAOc0IO20P7U3q+Ijc8fOiFVoPO/BraAi8YRUiLliBGqI"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591898993879_1591899001275_0.11370516682565879"},"_hasShrinkwrap":false},"1.1.0-next.1591901121851":{"name":"playwright","version":"1.1.0-next.1591901121851","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591901121851","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-unyG+HX8Hn5Psq7JIivCQpXIT0VYzOcjfUkjXw6FAhPZ0p5LTBVL+AnEJSIWfRQJ2Iy+i7QTw7zUGUjDKh5/DQ==","shasum":"609a1cefe30a852b1d275de30e82bfb18797ed1e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591901121851.tgz","fileCount":90,"unpackedSize":1503577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4nvKCRA9TVsSAnZWagAA3n0QAJ3TQdwPC67CL8f3v3gb\nqr9A1/ZfUgaxK2Vq9nbh37ZcMKtPAzqV6YxZcdhTXfALXGIaa+ylujwF0LFn\n2l1Jy9+0f5jWBhxjxfzRgmUP3Y6eje6xZ0k+9E88Mqds/aY6zcxpVcnxbJ0c\n9YZge+9JAz0q8VHAPEPT3wyqDKGPR7De2GUNxVHGmaixAn8znUQhSEN9TNvB\nE34nC/xWvG/ZAibyjax3DqPaIGRfGC9e0FSatd0SarMgJh5LD9IFbHkql3QO\nOvebMLdEU7VLreocizSYGGc5rO2uBV5McaOofSS5pMz69V/bRWd526SpisfR\nf8eQ42PWVIWDkps6918nO3JWxwZyswfk51zqfRhjkuOUCoxahBOjDNpFmmns\nEjXBiYMYggZ+uAL7YH8r5Wro+qB8ug28k0W6osGF9tQv+6XTZNVX5xSGr55H\n8oKNUuokMZq+VBiLFHzTtWRjJa4H+TxuNPAfmsZ9Z5DhICXjJmKvyGjRVJ5j\n5QJPUUhbfwXi6nLmrJpBCuydI+xqQwpr+9MT7RhfoWmOkDFt+rx6iv40nOEn\n0/z0VbNecZ1fETcA1paaejyUm9vF28GfexqdHri6W5Whota6mBxoZOTXrBUu\n11NvZBA8HRm8MzRupK6pNNc5HjsgspRLX68Lxg9DhmqHwf7BSw3/P3j5xxUv\n9o1r\r\n=LnDq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSMKSGUC2QE0miX+ifSko4lIVgkJyK/BTSzhEW/ahwyAiBD+FQNUtZEgHE8LGzTdQOjXNRhsBEtsIqOrEqqItcj/Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591901121851_1591901129848_0.9529892591009252"},"_hasShrinkwrap":false},"1.1.0-next.1591906234050":{"name":"playwright","version":"1.1.0-next.1591906234050","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591906234050","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-weJoTcc5BLgoiZLGEz8kYLrntvpN/RUlXRalq7Ti0IkRqoB+4JcPlX33ru3DpCz47fbg0uQYUqKwFxyzq09tug==","shasum":"99f240ff79b1c01226712f1caf1f0ab99eaacf87","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591906234050.tgz","fileCount":90,"unpackedSize":1503577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4o/BCRA9TVsSAnZWagAA71cQAKRfpOYiXSCqET4f8GVQ\n8o9+qeZfbSUdSRsz3uR5Tt6rfdvGFFWYipb6MZPfQSghrVT4xbJLeZ9tr27M\nuYOO27TZm04VYaB65zf/QSbX4mqvC5m/eYlHXPrqI3yQ+EojbuiuKNfQhFzX\nDZrRHgO56WPywb7ALtVRgc4Uv4Mh8cXnryIleKJQf3zNZZ6OfGdG9f59YwUs\nTrWtcv5N3/7HQoO3aXm2yi2ctP4koyIzkVLNKfAj8ipJBcnKZOg+OX1gqqGS\n8QNsORG9CrAY70JqIELh3pZiNSwhcEIWlXN8iGo1Bzu7gNpAWVb+IoRQpFmR\nauWv1EJ0krjRIPSFb6xirhw2KTsVWrxB3Mez7FyqsRly6+IQxmQzjy//iJbL\nWAs79uuZjA2XDA9svLcODqO4WUi4Vd9RPc6Eli+hN+QOZZG5mFsZUqs+IItG\nRDY15lviemFyvYkfrRmf8Oc6O/A6xtU6X0kM1NNHooefdaoyxcfVM29xVKah\nvLHJaSU4RWydzhMjLMyJGPT3dUfg6NGykd5xfh45n9uGOPn/3T1sKxsRkR1A\nW8qdMjB++H9F40le6hDw0tuJNneCuUOlt3eKUOuMuzo1ZiAS1/xyeP/8gAKa\n5XHXD0ziQTLA5SGpKUT7Te+laO5sgtUUkeaoVR9DvkJBYPyKtA7bJkG14le4\nXN9q\r\n=6EXi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPGDc0B+el3s2M8sDEZ/v7B8fpFNXULMMpTF1oBDVCwAiEA/OstHJpLlSW4hTXOEEjL3INFU/Iio/A5QLliVd5uIzw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591906234050_1591906241229_0.9808070916807494"},"_hasShrinkwrap":false},"1.1.0-next.1591914067826":{"name":"playwright","version":"1.1.0-next.1591914067826","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591914067826","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jO9CoRfKIUE/A6E8VasHItnc2Pza8aNZp6w842947MNZ6mbHcI1UxxSNecbLEBXIkqPqrOTzleSqlie1wxSOVQ==","shasum":"fec97c09847c695f197dd7a6f14689427bdc344e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591914067826.tgz","fileCount":90,"unpackedSize":1503671,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4q5bCRA9TVsSAnZWagAAY/YP/2sFIKgpSeVj03UMimon\n7UJAmwM7EHcymIf8HX/UezxIqxKW29vmdXYEip6gkzwrNuDEiLF2/sZFrpRu\nKUPGCaTa9gztLr1KVp/Pjbs373ll1ii6aEw8NzreMxALibpmoAwCcuIvdv7y\nErB4ELKyrhUFH3AOoqmzAm1JNGLU4aMs3E3JHpCpaavArANyC7Q0KZ5ibM75\noOE55lH8vZsIvDr+aXXMxuDqveXEVIcrgZh4w8TFbKbIAa7PGwuA2lom34iq\nOXeBtxlhgim4HJ+z4sVUGhDdIWmxLVNIboucerV59ii2fa7kRIEOuzzlbTkV\n6SATs4Yb7hRY4ZIbkMzpsMMAp6wmamTk56MasjoeL0pCI4YXYpuVl+r/9wqJ\nOapAoRCO1rW+QcVUh6I5KA3mWl5vMNofBqsaZJxiD8QafoqInw+tTMMvQoO9\nXXNQR3zfRV0zY3zRUPJtCzE/H3P8E3laIykn5vUVSs3k5FMwqqEE6w8ZJKlL\nE+n3Ow3iQNGohihYy2a6AjEomoTuLrK7oWTqJ9j+DtiM/IkdbLZOVF0OI0XO\nUneOfD/Ivc8Gz2wov5T/2FHgma5MNK8h+IDrtf9WGm9fAP/K43jtSwOb2pbk\nb3PEW6sk7E3Pf7rPUILMIDzOnNOogLwuvwxHMa1uasSa0qIpwKsK1qAcuB+j\nrtDo\r\n=Diku\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBxqg8nIjFmVIZYkGUmETfxa2yfCyA7A1suWOwwtc+AJAiBLsEoV5LL3MWPwt5lIDqv66Y0BOXvehVMjKHO68SJFeg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591914067826_1591914075336_0.40235870526619677"},"_hasShrinkwrap":false},"1.1.0-next.1591919058253":{"name":"playwright","version":"1.1.0-next.1591919058253","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591919058253","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3CMHMTLgpI+yXaNwOjaFJQ4PqbcYarhW13OKS5XYTkUj1Q2yjnHCBd2bVUyl62Id/KMWn9vHjIFxG+eWziNQ5A==","shasum":"c99dd75278e43fb63fd3fec452478fa46d10c31a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591919058253.tgz","fileCount":90,"unpackedSize":1503671,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4sHbCRA9TVsSAnZWagAA/cMP/iaLHsUA8BRxUdlZP5mh\nXjDc71W/wCpKWDuRwE/vw0xpk4J7OZMc1MeFTB4/ByAPbn4Z/Y3Y+p6LvKVa\nhhi3qgfKsFiF4UWf2VgiTIDCftHfHXjdYDC9h0DrpN/VgzTcU2jlH3K9iWD3\nVgsUmHWec/Q9KKOZA+B7cHo3Atrrb+HvR30txME9txXrAuPxiNt30tJM3S9k\nMUADUmwk1koAUx4EUtrAhNcKhwyiEb/SzRcGRkPqqP5ACDtSFb5YtNEXp5e5\nKxtSvbDX9hPblTh6fdjsXVv2xeRxbAdKiDBUtb2Lyi1US3ShjEypIRLhnQgi\nYY90Gqd7Qdul37pGDPyOVcZotXxyO2ViQpGOdX4N8+kLRG3innzy5RCbeNSn\nAtlY5g2ItTWe//6LAfCMMdq4qnpyjDoiMAX4CN1kRI7rBUIBiEep0Qayekma\ndNITBhkv22imbHHjLP4iOpg69rspfaTReZXZfcIpP4gXShZJ4QzbOUHHvQYL\nr3WDqmaqyvO0UvmOSQRhSciBRWglg6zMZMl8oTtr9RcuFjgrdQOcR/g2ONBN\nUp46sJLXuZsrAACAek7NdLSf8ZNJ6RawWEP0TohiwtebmjFIjAk0dogZ33TB\nlCaZk5yQwA15rUmdMVFJjDuxu6a8hFNyP1Uhdq/QDqSs/ErJKHdhFCpbnlwX\n0dqq\r\n=4syl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqwsdFpV9LdonWIgOJ2O3I7FL0RW2QUv7pQIWihWRAaAiAYZWDrASnxtHphQfbg9QqufPcRzZr5vzzKW8IuwwIiAw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591919058253_1591919066742_0.9230785300871325"},"_hasShrinkwrap":false},"1.1.0-next.1591924870952":{"name":"playwright","version":"1.1.0-next.1591924870952","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591924870952","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xPdKb/Fwib8nLT5sh47UODDgvD54G1Jd6onHagSi5yBfojYnj6C/14Zqk2XXmdaZvGI/xOSKs4EFAIO0uEGNQw==","shasum":"cf446056feb2435628114f813a762ffc864c9ca0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591924870952.tgz","fileCount":95,"unpackedSize":1540241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4tiPCRA9TVsSAnZWagAAu/oP/3LjMhZy5pBQ0AV9umHH\nMpDGbx3M8fw3LFPYo5ZHdRX5gt/AAUelocNRZqTAxY+RCC7oaQHU2TKXJo3b\nj7Xq6HqHsJ7z+cMfszw2iz4if+hCR6fmVtbpvdzokZZ4nfd/SGlcfTxKaERw\nj5Yucz/nxL0v70F9r2ViExZZ72gQPzz6lo3hB3VSyghAbYE5zvtcb5Eko9mF\nvNXbgPxKrGGrNYpw/V15RRTK9PolLCQQ3EbWsEeCm+aZBPYdc+aar2sdrsUF\norN/jLcq/+QG/rIVtkHcQHbrK37eZqGpDdrI5rOUElRTQe21OTXilTggDeax\n8ODGArj+oSNU7ZZKJNigLx6ATk0ymwHxHAuQce+rqIZ2tCx9zFhTeNcShLVO\nOS95uJOpxAhYM0PLnupKGbI1pWTeW5rImqu9rn0AIY/lg4Eea4U6ZoPJPySj\nk6723WVWiaiV16+xQ8x5uNPNY283arXpXKTOqPFeMrGhIaygV59Axw7DcHfw\nJg4I/bYxKKdGt9HmGioXi3Jm3ByVeFN4da9gmj6YxxTeJop3TTjQyLU3tZ8T\n3vq5OxF1bOlfzU5S71MhZd+adkWjwA1ILT/6DxkIBhjLhWMge292WhLtJwAu\noDWrWKH2WrFYRHHh9Pw1eGjyiBMi1qemtnik2E4+0SIG7DSsIH6O7tW2eP4f\nlXvu\r\n=FDTA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWqXGJqyRLuoHO5YwG8+rhhQUh9KPTjPTmOpVppQtcxAiALTPpl0iTZ88OzpJXCACSMXc1vePmjXFtB/fCbbFgSIg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591924870952_1591924878499_0.8531720838717247"},"_hasShrinkwrap":false},"1.1.0-next.1591929052608":{"name":"playwright","version":"1.1.0-next.1591929052608","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591929052608","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qFpS/yU0/JASsBCrRANjN+hf9XZz3DnJyrxp7Dh98wpInS5ynVqykh3SpUyOFaUN2y3JsJZq3Bjp3PTe1Af0HA==","shasum":"f0dd0ced3a56e0b89a79fbe032c42e4a32f46c04","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591929052608.tgz","fileCount":95,"unpackedSize":1540241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4ujmCRA9TVsSAnZWagAANI8P/jrIrKQyqwwkfC9z1gN7\nwZ4uR+zr40E9XzCa5lIl+nuZ48wCsUxXfHqPbjjXLB99MS9hnFc2ZLu2v9MF\nKUcWjMGWOy97lMEXuYsa+z4s3THVFQE561Hf3JYp1nc52ymUfS60QpfYM4Qd\nbfqtHV307YjeK/l3Ca3JQLz26uZMoNFDftTQmmN/PJjqlWBK7FqrV4cY8IsF\nPbJTWdb1Se3Xui8mffnVkiNg9+TCljq2LYSzWO/LjuNI2YL/7QvEldTTF36q\nC5UH3LB9OIYoJAdX/3pB9T+T6K05V15Tk0SUtbJma0P3rXeZduPLvYwQK7El\nvF+RCWikIcWH7jNpRyHNMOwsfo5I9nD/YXKxO1wvMTuzOwLbVF2+rR1Bk/Kc\nZ+nK7QKf54EgEOCHNJam8JLivo7G0XPcinEC5/f9m+p1vepWoqN7rrOAbfel\n/VJ/5xdc13n7tPa8RfASmRg/KDgaW4ntWbO69rI+G/00FsdcExTX43YTS2VG\nbj1NyJqftnmWY/81swJ25vuS/jrIcPINbHqoHpbOWZfd9VnsRIf1JVwB2+TA\ng3jkrahu4bsqTEj1PM8O9OUUWcQg2NSASVrXTFEmXFyLoUyyKvxXNIwIiaIz\nC0fr6DEAtohEC31NE9gkOw7AmehNWtzwMg9hSDhLyhR9r4IsOO+9tcEtZO5B\nLhjj\r\n=yGqa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdvYO2bbIX2I3EYRBNUUQ72IVFShCQpsMKoG4ViT7DfwIgSmXzw3fxZ+VMDRfSBFrSz/VgLkHlKT7BXsP+QWgL/ho="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591929052608_1591929061531_0.6637379076600496"},"_hasShrinkwrap":false},"1.1.0-next.1591945218941":{"name":"playwright","version":"1.1.0-next.1591945218941","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591945218941","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rV8CnVOHA0YkoMn5RAKCNuiQPKj06nKuqhULlFTi06jjbk7+FnGBaqs67wpihOtx5M9gA+YBLOOpyTK4vL/Fww==","shasum":"8c7c4f3327131284197cee8f39ad75949b7b9e10","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591945218941.tgz","fileCount":95,"unpackedSize":1540241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4ygLCRA9TVsSAnZWagAAm1IQAI9kRFpCGQihkuz61sem\nMJxXX15mBbMyHq0vL2punleAS9pBT7ciaWpmkRE/hN575Y2QIKWhWrVosP/o\n8fjcQlOyRvq+bnuKkZXfjIxiAzwW4HTx1BX/9Qv7Hc+G5dclOQVNIHG/UxNX\nSRW/r5KCwjlZxFGYRjnTT24VXDUt5DVdBt4XGiIisG0u6mJ6XSKM6tgI1Guh\nz5qs5WXi4g2m50EsM6CeBY7xBAB7oWrrmSuVVcn38KqEl5JvKy+MsubvoMMX\nG2br+LJjlZqOjaADXjBNADrqSCaEasa9NcVvLe2IGPFsFB+4vrb7kFoIvsUL\n0lD8QygQdKH6P+zVFInUpheHog21YqBLmIPaIiVE3LlN5kMuFIHirrHNc9vg\niTO98ji3MgUalTQrp8eAFnoboBphpZsDT/BztnvDRSOe2Q8ZR/Jvlq7LeJD2\nGIzKGCQ7DGZa/8TjF/q47f/lfln9OtmTHbzHwwZ8nRjj15o8rQmTEC06WodN\nMZPMqXO9BWzWmLQHK727ENQ51u/9c9ZzXdlnzj8j/IWewdFeowRGH7PR/hBp\nYNa0EhwgcPVFkZ9Lr51o52unjk5aG22I9HDGTwsIxONinusfXD5fBeVgQD0s\ng5yvcCKDN+adaXaqR6acgDrvo5phEKs2b+dCmlFXDayJqSFC5815lCHqkLxl\nSkj+\r\n=Mz5g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1Lprl3niryfGcepz394TmKRRwvU19n8cUKICid966vAiAXlnlCo6yMATLDy3NZdr+H9yseDq9bdXr/5Vh0TxOVuw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591945218941_1591945226810_0.0434717914383711"},"_hasShrinkwrap":false},"1.1.0-next.1591948610000":{"name":"playwright","version":"1.1.0-next.1591948610000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591948610000","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+9vVaI2KW4LY3/OUqdkxuRREDpyq8/uunvZorwMvv6yM7321De8R9muy39hfvw5m9V9vfW4auM3rkrUs1D0EtA==","shasum":"3582caacd9149399b3d85bea63d9ddf834a9277e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591948610000.tgz","fileCount":95,"unpackedSize":1540241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4zVLCRA9TVsSAnZWagAApOkP/08RbaTTqd5cKPNjZqBh\nPyyNgUq3sJXyG8iM2eW5y0WPKhINJ6QpyTlx11zQODDQx50WeXUCKi0y6p8G\n6P4PT3XeNWOqnsFAqY/VK16uRIsvrhWa/BDzequ3z9wJe+sHy/SUNl2nCw90\ni4gy8s55D5l9JEqIitCekX65k2eBiT+U81FKS7tabch948IDRihqlKvW0BHQ\n6jPt4ZArjxLxnJdW3/RQm2BQa4wrV2CViYmJyFSgC1w8M27ADTKk7EfIlVV+\nuyBqyv+ykM5vEm44asUsz1TtP574rWvQx02lDQiM4HW7dspT4EyKdCCNtAre\nEsjLKXMrmuCO+yEPoOVQuNcs3i1fZR4iXxP+NXi4UQDfPCn10nQU0srzn11o\nnDr0eWdhN7tQzXECXOhY7dRL/hYseXiPLBv1xpphB2Hpz7CYNLkBxTdzsioJ\npSTRclwj6+oFC0HTWlC6eyXxOcaehMcyUvRt3DJ2OwFokmQZWzZG4rFVg3/E\nfkMzc7DYs6UBulTS27uYL0+N5y/DKM58qDoiAYS0qDBoyhrn9lTEyNC5D3ZS\nNs3cyBzTJEnoeEcq9kznRMiXLTgAuHVzrSvtb1x6cmCU3IpSkW2JWkNVcuxs\noHh6Xj6vq0/a3P3cTMQT9jSICy8I1JXoVm9BWWMKswXYhMpMkItwCxswxvQt\nx1UU\r\n=aDS3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA42rGpZIsyASxV1Br5+Qvk05z7PaoYrbHEwwDqJfpIsAiEA8MTyCYMMBurS9w+ODBliFJqY7hwP1qQKu4hMwZTY1hQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591948610000_1591948619334_0.08257126933924508"},"_hasShrinkwrap":false},"1.1.0-next.1591980631857":{"name":"playwright","version":"1.1.0-next.1591980631857","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591980631857","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Mh6E+gGlgiav4MFZggE03PoSmgen+qemv+PVUmv9LUmxdsAJHq41kKyWTMt9YxKcHCKaSVs14DbSd9P58Pnjzw==","shasum":"c576df1fabe6ab9b10ab73ecb2faf9193d8a2a48","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591980631857.tgz","fileCount":95,"unpackedSize":1540260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe47JgCRA9TVsSAnZWagAASscP/jZYzhPxeUO8YOV+EgCX\nk+n4Ce9K8Oe6ETKEZ/5mIRqB3N3DVh5p5SWrosiBmfO5EYtwOS9JMwjFsdMk\nXemGs5AC44FzQUmE9wrWKyzdO/yUenUu5iYX4rmLN9sioGcgzxv+OFBbS506\nyBGuYyYcPSrNygCpFmbJ6NCaWvfvIWKMh4KSymwpxo4DM92FRl+zaRP9bYYp\nDn0Q6IwIjbeckobKR8mOIJzpazYqz7fd16GW6TyO4R8OX50HCgI10m0IJx86\nXybvTJxk6ul+DSM3eKRhp4vuE5yklSxz7H6tKBUrI+391j3uAb17YizXiNzX\nKXonxkLYLsJ7kYy6AQDgdJZ0FnCj0WJQWepWU/P67dbXsW9lRj3MyK0ebCQn\nSc+lB2Yt17YBm8topNU/7J0eV7fg2D7QZgSkI/GBksz8o1Wf8mjT8DtXlcdN\njzags30SDJ6/kHPxoMhBUSsSXNbyfP15ZrfGdNSiuKGVjTU2yFNnwHCFXSkf\n93Ugg0iuXoZWhWqYMtKIlr+Lbs0bEFzY9ipofpaoiSYU7AMQruJao59JjNZY\nsjR9/kjN5V4VixYLWgoKWkq6dr3aAFV+We0CMvTWBCykODExkjcVAzeaKJN2\nwAILMjbLTnIvS9M1MhltoTIiBgfMRDNSqvyjD88Ww+oKmk2IfCbDZVgrsBHd\nNQtu\r\n=+Tmy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF33DOTsXU8Nx6BIfVIdfqpgF+31DvxYhKoGzyTUuag+AiEAqORhkPhyM1Y/CYgbgZq5AtcDwaRySYSyzTBSm99C7dw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591980631857_1591980639410_0.06831716761841133"},"_hasShrinkwrap":false},"1.1.0-next.1591983675747":{"name":"playwright","version":"1.1.0-next.1591983675747","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591983675747","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HhL5DNg66AKVJcLvElUwkSuUs60CnpTqOiYnNarfvqakkGLXuo+xESA6oPPE9QzgcDRFKGOx0+hIdN4UGerUhQ==","shasum":"3e2141942dab3d61acc8a137542ea473eb590229","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591983675747.tgz","fileCount":95,"unpackedSize":1540260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe475ECRA9TVsSAnZWagAASAYP/iqsCdTQ0HGEkHsaN03K\n6dVjvmSTpTe4GMWfOqSjEbET++AD2zdqqV4RDIXIU34ugZtRkb0uW7dfCnSA\nnws1utMjTc5RFutMWj2BgZ59BkXPKilak3sezgDqcKY0NUBiDjsX+XZomgRh\nRzM5ASLcoeTXIKqr6RDkFVXMjD2Q9+OXTIzRL6NRV8BSc6vvLKwzumG0Hc3j\nSJsu4FPulSEg/oFgM/2GLsenMsFG32dj7uDHqw8jc7GbXEBu2g7c2iNEwQAE\niZJ/KT0QpGCz+vvdLeS5X2OYsymaSOQwrG6ZSW3YaHScdcFuLPU0cqaBLNG2\nkjOmntfWHhYQBYd0oFMKxPLO05QPJqMmEgFOkau3ATULUX14p3gQq/ctOjJ4\nQVdHke1nVegglcHLs87d0/m2vVUTL9yjEVp3SwuzopyM+LFXyojrXK83Ju2l\nj0CDe/YrJbUh5EoBk0tckeCPHBXk9k9z3m7THeQectizVKpS0gKTgbQsIPVa\nfWCQfXdirD4+F14clvZCNsxwkK/lD6brMA6Ikgsu+1Hbo3cgBSU4eXeRjwaW\n4aJP3Se8gSrLUixeWDeiobK5Xi0pvfRZLvc0/eZZqEa0fkPulouO58/a20dh\nGN0/Uuwccr/C9goRD7kWNeMk3twMupjG99woWJw30bJBlxbvFauMjZcGylcj\nEhZc\r\n=OhXQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx+w2SFWBrobcqHYiKxcljVPe3H7thgoGQpx6iLDEVxwIhAPeLwLp3ulLiVwKFlapO62wSKELGkDfz4SKA6yXXqPrT"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591983675747_1591983683707_0.10737846123086392"},"_hasShrinkwrap":false},"1.1.0-next.1591985582896":{"name":"playwright","version":"1.1.0-next.1591985582896","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591985582896","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tR7yEfbxV74eS8Imut56uQkg3YQOdZPLfCSo+C89Opi73/sYVTTy6KT4uFFilb5z47nW1W9Ygm91/4DQL2LDsQ==","shasum":"f175080cf1b9630868fbefd4dae3c463f6894d7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591985582896.tgz","fileCount":95,"unpackedSize":1540965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe48W5CRA9TVsSAnZWagAAxZIQAI+BU0esRSGC0cggDclH\nLou4u7cMOaDA50mg6e3uyJajTTo/K+JXJqYrEvX9Dyr1+B5PFqAtlNkVIi/I\nk3EALmTSCvtMyWhvVdsUvYpxS9lc4qVPc6NShH1FJY8E94U1r6H5iznANtnR\nqjCie/5X0dCIU/jdFgSK3bE3K6BowYsmVCBrhzBYJHnQB16QrcgzDiQ+A9fw\n/uJxkzE+X4DW5zf713CBCHKjCde6SVu3CMrxRrccgRqcYS4yVyAh6s0zcPHA\nil4eY8gc9stzEXSDMwTb4YOtK7RC9FW5OtuDO4gi109UpcRIQdWyv0zBHYw/\nQJISxQLEJd9t3EkBpXCWyuaLeDcju8rQfs1pGyYEnsek7oABv3j/mukKNDBp\nKUuHpfmSva3t0v4JQNwVbytU1HSKqIfmIwX37zwyEbdOOGLmHTP92V3Ofaeu\n8W+JMJK5OPH3BRfKyeKdn3B5RpDCLmY7cB+tlA0h1jJTuD7NOlbo2Qlb6rph\neyGT5NmqV8sv4B5vz1gvAJlHvzhIj/WibJz+u1l4I97lOq9/c2j/lu5lkG7S\nCJWLOYojFwj154DMj//7HvJjRrDfFCWB4kdvz2gRg3VQFgj5kyBDPeSNUHO1\naN9hUMNZyymqu84J6hV7XhAZzry9w20i5uurg7lit5L9aqp2prc72evmrMcu\nGV8m\r\n=TihA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5DFI9gC4xCrb6Lae95rdS1rH6tREsengD6GDyk95vLAiEA2JmcCQqUSDBs9kRfuHz4d02D+z4rWStyjOeAUS7yI9c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591985582896_1591985592707_0.6732720805796901"},"_hasShrinkwrap":false},"1.1.0-next.1591989294186":{"name":"playwright","version":"1.1.0-next.1591989294186","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591989294186","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rcGkVcFKw91nWBuSr6gMWrKP4d1wZH5naTy6Em1GC3HTRaY2P52VziyV4+ScBmXK8xg2kjTZKKgJK8tVsZKVBw==","shasum":"905bdd7a1719310bd0cffaeaf068bf9b81623937","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591989294186.tgz","fileCount":95,"unpackedSize":1540965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe49Q4CRA9TVsSAnZWagAAJOcQAKAx1UIuN49VrLG6akph\nOx62dSQW0vID5Tp4vAUv1Y+IbUN0j8fkZ1K2c4R2imkphNVn21YjV22KWG1m\nOujHtsAgBDKvoN53PyAKdvPrNS/+9BSSUJ0fMjV4vZdWX+4Hf7hbTTHLAq2n\nFVI8XeSy4Tmjj1BU8XRn6taPPqEa3kBLVpZb6Pj29ynXhky9VZw76TrFHs2N\nzV2fiQFWvfS2+ON0kynA5MPuJj/LRcM/6hRxn7gATObKhdF0jUQm3Aivwvl/\nSeT3pCxiQhlQ32hbn2hbMG0Osaw3ado/hCUdwYTlYlPm18zXAi6j08GvQvEr\nywTY3Gh4+3a2+RFh+Ly2RjqlYXUndCk+IR1MDzJPcK52wR+cuTmtB1tD+5+U\nw+F3ISQLCDXPt3MSzVrm8szWHfiQO+TxTJNJjRa8Nus8WqX7KuLWHSyCW/zE\nSVYD7ZowHj+JAh+KMlJeXUQcQWqveXZ+BooWuishj4c/NyRvV0NnCXvOnqYj\nkIAIhOBsMRrvz14d6Z6QWvvRd+PJoqnGfqYDhn+QQsDYY3a16Yhvpqmjji7a\nOKWc4uYfquz65CtWVE36kCP8pvjbqQizTJ1YnrFb4+VZQup2gsmttf70sUMC\nnuLL31rMsfWISBGJ6iSs9c3SI6lcRSQa8xRnsHMcR2zH1+lMPm1fBclAThLI\nfgBk\r\n=fyeN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHcGkPFl/b4HKmje4WqLqjjWYenkrPXBB4xmu/62KLDLAiEA/TJRdHNNh8k5ySZ3R+DV6iMzWwFLFCEvGBfSK9VF/DU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591989294186_1591989303179_0.7174321552066616"},"_hasShrinkwrap":false},"1.1.0-next.1591999331404":{"name":"playwright","version":"1.1.0-next.1591999331404","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591999331404","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-s0W938OYXeSeoVy8YGB/4r7nWWRprxAeYmPD48OOc1R5kUtWwmYJ2QfWZiDnF5K2KWPLjer9oJlAnF8kXl2OYA==","shasum":"e2e186e07badff56a33ceb6dbb54415be0cab3ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591999331404.tgz","fileCount":95,"unpackedSize":1541666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4/tsCRA9TVsSAnZWagAAhWsP/iRy5erX/Y3DBIWDQlBU\nNBW64vifqUu0DQBaycACtCPAWhRTjS/LPTMXf8imX4DUw31jcU9MFarMdV8U\nBirExnzb8dx7XQncRca0d+zPdseiPAAS+n8YFvt45SWFjfzWbIZai8MQZLRX\n19oixwXMSlMMjV758DXpHtaVySpoaVkipX0NkqaZacjmDT/pgN1HO+SKjrKW\nWKaw4V0zn7fPGuVoFvi52P0Ou+SssSEo12b9ECnfSaE/QM1SjEoLsT3AXoCs\nlHBjpll/0IbhslxIO0Hwm4e3NeSRwhaQKm8rt8Ozz/Py7qEC1uESaWAeRd+y\nPKU6K5v0wBzr2haOE9scywkbs7IgiwDiFskynEk4Eua3/kOmxXPoviSM74gQ\nr4PxpDWYXTe6dcJrtvxQEPYrAgRddp6ChuO7f1lFnGDuq7828L4ASN29lO2V\n998mINL5bfstCL6b55U1ilpydsRwAw8izmvzdwTh2PxHEbqQYlFsT2g6vUgY\nzhiJQrOUzFqqzlQm6GZdEK8KuMiAnHg6Ze5Uwp1uFUcpDf9t0828kDyrcmNZ\nJnxK5FUWzGarl/cOOPst9aF34ZxKiQpDtj/Q/5s90gzb6pyT0MphiYYMqG+6\ni3BGXWsjQlcmvHdWqxAQGmcezEBFkuzoOoGAmsdYuCeaYiMfyAftkjew2dJc\nykrc\r\n=eZ+g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRjjRXIiqCnX8aGDb5Mx3WVwZ5MZybtOM23ysANRv16AIhAIbMQdpPlky1rDm3zK2vpp1fM4OhYjV0LktVrLQ897eB"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591999331404_1591999340129_0.37792240418171885"},"_hasShrinkwrap":false},"1.1.0-next.1591999507058":{"name":"playwright","version":"1.1.0-next.1591999507058","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1591999507058","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-w9csokOOLZ8lbS6VOgHVLbeyr8BssKpBmhsOX52WI5hLQbWKj0GstaVpkAhAh9hxJsxjDWXmmFJkvhGpvBSnpg==","shasum":"cd71f532a769c86c1072af365e8daeca98988ed7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1591999507058.tgz","fileCount":95,"unpackedSize":1541666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4/wbCRA9TVsSAnZWagAAJHQP/3vlFoN9i6Soyga1FqVu\n5xSdL7yI4Uh9PRi3pxWfjHMo1jzSOSF2CGnZsqRwreaN6bsD3+AeIQjqCrLz\noCILao/aaNj96+GDEDlDT4AuzT6Q09kzVDM1xJlX/asBQcPIhzfQlbJ3yrE3\nwUFaO8WO6aOC2XZWPfveY9xlP0NQdrkeFFoYr2r6IywWEjSsPMlHbXF2dM8M\nWUk1Gl6tHDlpyGW9NWgyQR6C7LlHgmUeL00qHT0Xf9ZWA0PGNiFGRomNfyUg\nSpG/y3GeBwOWxEQcTYKDonvMrMAt0a1dV/Rwrjwos2cOHoqd/tb52KmMOzdu\nAed4JLFbdWpGak8O1QHq2MDFn7DdM+opHXI9lbBJo9m5/umYn75PKKB1CMWL\nfJn2dmOi3yPvh9EHxKu2YPCUJrElZVm+srOqgEreaNe6NHpbMmrNX1zKD5Ve\ngjl8fvMBOmlE8nRzBb66ZIrMUD68Ie5WoHE35ohD+bV6+vFqdCeLERt0PhNl\nRWV5rMbq4t/fjqHT/9LvHASWkBgCuHmtvI4ei1l6tdkDNRTTc0eac/hxg/Ti\nwUINa5wvCFKHDIpAedbZT5zlICldYvg3KtaIFKSBPd/wRb08ToTdHEPAr4e6\nyuFlEaV3SNE0ooD2jph7/uixK6L+m9vtoPuwITm+p1TnxpGVKexUKIG0GcCH\nDDO5\r\n=mOEb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9apkBmj++P+oTWBjw/3RcaMFQPwarAE3ppWxxL6/0RAIhAMY7LhTRWZrUBrtG7RJ2J4JHY5oalzU5n6rU08t7BAxk"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1591999507058_1591999515124_0.5131201347460401"},"_hasShrinkwrap":false},"1.1.0-next.1592079305969":{"name":"playwright","version":"1.1.0-next.1592079305969","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592079305969","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7fV0vxoey3+6JwH0+oUEhY202HGbz72hA26iURiiAKFCo5N/oH04GyjSmx3Y+OBeStfSMxZoK1y1An2HdIDtMw==","shasum":"4faa717065f34da34b7d67e6d468850ff5505059","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592079305969.tgz","fileCount":95,"unpackedSize":1541666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5TPVCRA9TVsSAnZWagAAtKYP/3BqwGs61ejUQ6VEJJUP\n+OFXNm3QoQTZiDs0mq8OW3zMm7Y5Wbjq+1pu7NDCssk47Rd7PuGZQPQY/hUG\nFiRt3DQO1obbf01qrvAZZNEIpBFEVZwvHui1f8T5PSjHAa/q80CVWytAZQaT\np1NOVY7MDL9BIwBgEKg6xNQdBYDQh4u+gniI/IJO+EYupS0onhwu08NvOhOs\n91SfSpM9vfW9yc8bViTU0SNyj5IAEbie4kcQss29Vsu9Gfi8KycL+Ad49JU5\n22zZnx1QDQJSIZ+wCQn/9QJvw4Eges19ZivHCu6BWGgEcnJROB6S6MkSWMVJ\nKvZ1o31DzNQp/TP66dodVb7VP7UgDfweHg57O651V5GUCrC1lY54yzNVTwdd\nunBGbi+dAR01iAQruP+uM7gUTXY9zZUPN2Qtp3WwpOlvRNGtnb36AANQw7ey\nAwy4NbQ96H9Z2naIUsapG905KH1HM2/sV5y58miFkn+IHtvgI7Xq5SViYAMt\nTXDMRbHbwo0lQuMwuI3KyQZcp8fiJJq6Jkq1Vgqt9W/C3+J0qyo1lbvUixhh\newb0oWZ7K185wM48wuIJT6gLxUfzejyqMWPHsMqwb70UYm6vwuqrxI1WBv9q\nQLYrq/CPlEPri1fAt16DG4ipSA8Hx4YhL437McZ0sVNN5zTcUO3ZTb9EB1/k\nOvw/\r\n=fa8t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmPS/5wFLCO2L2LUmKkjWzWrwthEti7yd76RDKG6r5qAiEArNw6AAbonO/+bgB81x9QEyCVz4+Uuj3s3gMKLd/Nl5g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592079305969_1592079316657_0.2627303998200503"},"_hasShrinkwrap":false},"1.1.0-next.1592115159273":{"name":"playwright","version":"1.1.0-next.1592115159273","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592115159273","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oFd9SVawOeO5F/7hrvxxB8Rcsoq0CAkEsBh2xBV5LX0HgQzo+fp2qHo/8tJBYCDcwFfF8VLabsP84g/eq7++cQ==","shasum":"ac7c8fae1e4003cf2dbc6d7506366dba854455e7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592115159273.tgz","fileCount":96,"unpackedSize":1547300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5b/fCRA9TVsSAnZWagAAmj4P/2P6ySuXpAaV//2aTvjq\ne7P/kAEtmhUxGlCQ1NVM/moXAUFH57u6X7BSB/2kikmDpzFvw1eY27QRQ0Ds\nliB7N181XugegB/Xt1ierzGm+YsJEqC602XF21wM4s+FKdf4UCJ37UU2bBxT\n7VU3twyZkTHZwjqRALldeJeNQXXan1oz+aet08pzCZvMk/4gLZDAZDahP1OU\nAngjo9owj+SIzEXpY+7QRQSNwWhko5DKZCdHXEaVIT/RNO3XrN+cGWmuE0Dj\noQxd33VSfG1IlQIuPGlE0MrowT2ebQ/76RUv1BOL+iXmTPsiuS3k2M0GFJXh\nQmGDEPUb3bflr2TQEbBKbp1AFHlvwNXLfDSWEH1DsclGZahEyvIxuZO7GGkk\n9sPvcyXVdBz3I431tpHy2Esuc3XIJjo7CJlIJDvcpZHCmMq8nNcjKV3lSEVz\n8j2lG91RzA9MpjugT/5aWr1mSIsgn0bKXrvI1JGWc31n4rNH1rdFHp8hL0JO\nkHIjWDlFAUqEGHdFDHjdlcP8bf9x6ALwPnLZtpjT/bzcqjESsMxVQ1wHdD0D\nJP64bpH3+faJO/Wh9956S7Ptj4slUja4dow8hmDxRXXC9zCkv1cTDB9jF5Jr\nKCFungoofmDWgvoWy5DzGRJ11pV0rmZAmxl0oEx05+78qnq0sr5epY7N+Pfu\nPTan\r\n=Qwq3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGCyhVVRQIkSI4Ex9zMfPyetoXoZEze8dLyP8IGyROTYAiEAiiWVJVGri/Wo5u3Vitf2maL3nhS8Tq7C2nHIqSjwk5g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592115159273_1592115167275_0.5453067073700633"},"_hasShrinkwrap":false},"1.1.0-next.1592180811419":{"name":"playwright","version":"1.1.0-next.1592180811419","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592180811419","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BzZsbRW21k+vLnxeRUm/FicI/OQ+LsY/CAfHVVLLnRxrpUnOZhyijAhD0HKJ9Ys+ShWViHYMj1XrVWPQjHgbew==","shasum":"f3c70962db61b2cdc3193d61b8573ed546c02af8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592180811419.tgz","fileCount":97,"unpackedSize":1557820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5sBVCRA9TVsSAnZWagAAK/YP/2fnapS7K3hvMfnOJ0En\nBPybV/Pki2wKCSbM+X5p3YpW3TtU4SLIVPk+n/4KYJSc1y+Yk8TiwT8zrDbA\nTKnImWWblbw6SC4ncaOS2ghYBLfjzNiTnNE/n6KL0m7iCUSaUJTzmGN/sCj9\nvZNx7iuLuV3jkfjiFaBAdhBcq9pePzf0JPG/DKjliw3y5Y2usnmyBk96RljQ\n5N8zmvQ8fYW7dxcQZslJOhfXlvdgsVXh5e6Y1eJj1WhJSurxTWZ5+jUQp4Rp\n0660a4eEz3RW5hOZ9YXkrQyYLcN51zBUSD4UsR5jnRhBeC1PH8vTPXc+3lkn\nZfEkklSVftHnR0nmthvpbKWX/dQH6WwIZsBvejbKmGB9KokR13REPwUS9vOS\n6GG0jgptvIRaGsZLDjfIdW8jMCmqIQvfBfXd/appAWF8Yf/aGdUHcArWJlXo\n4JeOceGB7w8LC/KLhLHIcEQkw0BIgXGUyXtvW0Oo8zIFQfk1PrbqN6SNZ+Z0\nYmN0IYzYaTtTZIzgpED+W1tTGzVdtQ1vQ0ekd7Gxeem7XUKGV6e95clajwUB\nIRrOWPHB3II9Ok1Pgs+Udf+viy+s714jhGaOm7mekbV4mfcTPZkz4WJ/CrZf\nHeWyLEI6cV454ZdQxz+a0usvHwbdlRrmkQCt37qRUkWyzY0uM+8RMDF3yzlS\n0lYS\r\n=tOVW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA71fjDyRN3mvjAQcylg+VeDogDGTnOfVS2FVDQkq5GxAiAPgJ0UNULD4lBPnkJMkdheSy0TdbkmkmhkkR4OEJ4+kw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592180811419_1592180820429_0.27243483071294605"},"_hasShrinkwrap":false},"1.1.0-next.1592253829544":{"name":"playwright","version":"1.1.0-next.1592253829544","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592253829544","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2WagmeKze4OLthW+QuTKABtY7V/Y6NQAKapuQEmVYva43XiECqrG2HcH1PWmYqa0w50FSdfbhjhs+9N0Fds2lQ==","shasum":"d2ef02fff483417131feb1b71c056def10a7f7fc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592253829544.tgz","fileCount":97,"unpackedSize":1550560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe592QCRA9TVsSAnZWagAAmasP/iytrvr4t8LW3zX9cH5F\nFUfVIcGSofOqpjhw3ywRlQ5UVK+UFLh83m3JEyFjjDNv3L4VUZ0cDHetFxRX\nlFUbQj64Zs5zc6bTSrvAD2eSPwNV5xiIlVKT3BMeqtq3PiDZUk3guew0aWuT\n3KYY+DFZz7Ek0PHAREA6pINKi2q2Fvj8qO8O47IuWRSL15Af1GdTGyTou9Z1\n8Sb90XvlqRr0X31cRiOa1cjEtBTCs9tRYEJq1EEes47CCp3vN50JRRZK5ZPz\nPn9nxww0yfnALhXsEPaqpCIyihhwGzVKNNc2VlcUFQerlfusS/IGrfF2GLx2\nwXAzdWLQiJMto26P+PMBOQv+gzjSFwMKoCiSkCUsifgVSf4mQE+1bGtkHEoM\nRTthslH4790GeW3DqIw4kG1OyibQ/C5pGKfsLPWST/Y1/A65Xnphd5ppVzk6\nUNY6s4W7mo6HrMKsYpAaEl9MDOcKFjq4vNKzKPQ0FJXX0PHONdbSg65JRkr2\nrCVJS7v1oGMkQmE8IT70A84yJtSSwjx8Za9f7wBUHUssvPyw1GGdhPfzocPc\nl78ga9ZTxsaSqDNWMWj5ys3Frrc+OOQTWXTnVKcLREjgWnPFXC+fsUCRpsVG\nUXF89TcDyrjQEjhf9WhSK8s/eDiQyIPZQcNjHno03cItyBTiIT3yy56Wm3E+\nYjn5\r\n=abp7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx7NKrqxc15gGEmLckzyyFHry2zhBbBaQooi7VfnPVDgIgFRjnXhsLOPxoMgq+E4ahHmgu9xev+TYO2iw9FgpOsqQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592253829544_1592253837096_0.8156523993634628"},"_hasShrinkwrap":false},"1.1.0-next.1592260126387":{"name":"playwright","version":"1.1.0-next.1592260126387","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592260126387","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3ggIgpOqooak3DNP16WDYoIWPkORznJvRnX8xjnKmJTFcDwvJWdPGZzGIvalbmV4L2ha2C5RCgUVx2+ys7Dxmg==","shasum":"5e7a51cdb11cf0f162e17b9705939502abdf98ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592260126387.tgz","fileCount":97,"unpackedSize":1555957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5/YnCRA9TVsSAnZWagAAdqoQAJ6CHo5EEcYzkirA9px1\nlOxf6yGsKeqVUoSwXGCKTUNky2DrlbPj9Jp5IWEW/PnpyX9w2hlp7pw5iU65\nqBDSuVOltdevrbeDFGC2eedAFyPx7bt9NO+98Rx0fzSoKy9xFtzj9YdEpGsD\nzK82ZhJP6HGKvyDjO7l0NkCXhWer6NcwpT3ocb//eKWgZIDZU2KOmqlM46o3\nmaF3WssZfKGvpOfyQXD3Ot/A5E4wv/d2cKM1JEmuaDB8jJsLXwO9cfzWKHU9\n6mRPGE/9OoGRBEOCre6Zu6qo3rfDSX7GIg4yzb/b9TBSo7Qw9YrsSJo4M3Z2\nvtXW4ey1M+jAwtAL9mGFdQtH0LLzPSM/oW+qyDuceVDFaf2fXyO+GmYXnc9A\nAIflixRydgRmp/4IkV+Jq6Fn47nMXsaqQutbXbG31boG5cU1g81FmfH5rWtl\nZCBunFFJfEotmF6diL/Uv26Szwt52EZVuex98lVVKWKpWvCwrl8ro8S4uFnO\n4Uk4ExAnlvqkuA6YhZBkqW/tArlFq4uG9/76iKl+EV5207WgbbN6MjvHzR5x\nkSGraZA6CzF8B3e7ZJGHEXWykYSBjLTO8d0CoREZcJNPATJaO+nnqz/o/9tE\nECXwh7QOom86wtNYsTGd+Ks7u7l4zVooI5FBmLMCjYSoXDXC8HjvurAtdDOU\nxUCg\r\n=p2Kt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdE+ZYughQ7tHE5zm/Xqyas9oyZ/DDcRxGVyM9vISd8AIgV8rjYo7en1OhoaOagbysLHIneUCC8kPURyXN7A/IEwU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592260126387_1592260134366_0.38512553969801555"},"_hasShrinkwrap":false},"1.1.0-next.1592271391798":{"name":"playwright","version":"1.1.0-next.1592271391798","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592271391798","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YA+j0WSxDE4nBRct6WSJZ2UPlv2SYdlW+Tqug9BoSV/oGdq0LkCz9oB6GANlax7nG4TOKajpSU5zliFuSE//6A==","shasum":"bf74ad9215d95ed8bce9d77da3c56b1a36b199f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592271391798.tgz","fileCount":97,"unpackedSize":1555957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6CInCRA9TVsSAnZWagAA6hcP/iQ89MRCFnuWtuI7DTr2\ngbNuS2Ov9z8ZpwjGYIepShCD/nmGiS60vX+EtQvg3lljykoGtLqjG9bjyBlM\n/aRituYW/55vVTEwIZD875lZWNV2776Ffxa1JQyP7krymJ8VcIs/bx45Ek/J\nUb0RuKEgksB5seps5POShzB66r0nC80wJkHMI4ddHDQ0B+wzMnAaAyGM7JtB\n3rVBM2azvhgnkdSdCOhPp9ZoZUVBaXfCinjG+WBQvELyLLNL5Ls8Q9irlcaq\n59gp3WZ9RLy2sC9c5Yu3kqLSW7/miNENXPgKT2nxuB2zfUmtbnZdHS7F9nSR\n6f3FMzchKPSwnJv6LU9Bslc1AzGeJuu5QlPcA9SF6tpF60q5u/l99+WSRWxE\n6IfDOeXfrin9QhEzgUB/T6Zjv+405kAkAWhU0okcDgWA3gnwI9QFTAP0SbKa\nLmQbPPnbdtuhvvU8rm+e3tlnavMhtR3ZP547mXKgO7+QfHzbP+9B43u4rrP0\nebySBXDArsWA6LHgcaZ5QtpFkQLvAHxSgHWK+ikSV6TghWC8Eh6z/CHf/ssH\nGdndpNf8she4CctwegBwKpHIIc/zkZpvttOHyaN0tGPjAurQKZuyoE0Wc3kp\nhDhz27AjxAM0OqtFtBbdDhdwRRSWC8PX6F5iSJ9xKLEY/ydwshnwTSBXN7kM\nVFCn\r\n=CRfy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHHIzNIe4hG/ShhVivxBaEUrRthXV9/NqcE6MxFIp5LwIhALxjWUvVRZqaxNlR41Mpj13MZZBuiV79yPA+bD4RC+kP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592271391798_1592271398786_0.4377353927476173"},"_hasShrinkwrap":false},"1.1.0-next.1592313332244":{"name":"playwright","version":"1.1.0-next.1592313332244","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592313332244","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fe3vbI/1n19kCQbLLXtlKOw2oTtgw3/zSkxvgm72gZAu2KHNcN7+4yPprc8wvuWHw/FS9KXMVNSCyM5QMn9l8g==","shasum":"0b3215ef8f8fd266dc6f4dac428e87e60f656d3a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592313332244.tgz","fileCount":97,"unpackedSize":1555957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6MX7CRA9TVsSAnZWagAA1ckP/0MNhjR5vg+f1uibbLWT\nk/m31RBXPN1LbmZxQXo7ErP6hWVwXxLvsocJ3jstMApfnrX7rg2FFmaIfwfA\n0vQ8JFgOzehpu6oKxGL8TSshJQ+7fIUHIgURMwGtrhvRliBD7M/6xqXZuVay\nzwyMF+XOaFGcfjIdXEESWdnqykLCwiFPOcXgNqnH0TDhSWb0QTvZta2q6EQk\n3yBPkD/Mx+8IQsOX+ld8A8XxGhLkFXBXYsbs6nGNh66sCoTRrzlfkTeg+lEU\nayvIO1c+pxM1t5Rr38HFpUMIVj4AkOIt7owC2FZ6RX9Ojm9uGC2S9M8MOSIt\nxQPFgp9DtePGVqqQn5iUYLX1LkwdPYRB7bN97Bsbx8QK3srr5nXPulXJf1sC\niPDHalFe9xnPWRQu+c9m073Hs+H+gugEp1LqpY071o2hHw49fYwXmYSDYzHz\nCYGWZAT+u8hJUI2bD7GtnnnOPzEoZvbvnKY6hH8DCe4nb2pFW7zUT/f6NLQL\ne5TYFE2S6rTmJuHo3Yy59y7DEKtSMjJqNANPXef8J8tjhBuUFwPaCndXE02h\naSaipet2Ji1adDTONjph9MIC8pb3oxjwNU6/ve4B6OJjoT8rrWR3McvpRuzt\ncp5UA3ACLybLuQdLokp++lAYIDcGtQwu1mCV01zmiWgLYflRcWwY+z9O6sjH\ndoAr\r\n=dlem\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0gksWec13cqgFHAeGa07nftX5kvz0u9e2TcjGK7VE6AiBRY6PvTxk/GFekKVAc8lMehIRCbYZDbPihNjt2CVkH9g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592313332244_1592313339070_0.9710944608362524"},"_hasShrinkwrap":false},"1.1.0-next.1592327813767":{"name":"playwright","version":"1.1.0-next.1592327813767","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592327813767","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WBkf2CMtn6BKXuwpLeiCf95zAkVxPZXIQJKVlf3iv7rMTZAjZ/GG+eByKzb1vOm1TrQKozBjKhdlf6eOPz768g==","shasum":"a234c7e88857265198951beb30e04a5a62f64b33","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592327813767.tgz","fileCount":97,"unpackedSize":1558450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6P6NCRA9TVsSAnZWagAAi9oP/2+MUf+0TsAhqR9wj0l0\nb41tF82Ozc2+tQZffsFTz2rsDMTaR6K47a5z2xTmrpWelBnF30mj00ktv0W/\nvrqwf4aXNDMfoiLxTkqxqdsxcNbGTgDfkT8iIEjo2pq20+vn/FwpIeI0fRJr\ng/MM5RsVh6ixDTPlldX/Z0YEZXuPCqiz/msiezPzLGl5GS+y1hMCXic4Rfk9\np5UjzlUfznHxO7uXubxHVsr/E7o6e2QFLtFSsEy0ky/cSQIYIYHAxn1KEXCu\nA0zVMWgA4goNYSSOAa0lsX01f7YXRbNXI6Z5NuRMVf7a3CKVKqDZWai6uTvH\n2gZYQnmQbSORI+vPW2kvcHo5kn/Y6Ut7SxxJgPu8Jtrp8Pi9KdIBpDfZRTxz\n/dK6V98+KZsYzdJUpJkpV0GhZKZ1Trt/XwgR7Wg7Oia453D9a2Ou9cJqfTL6\nrro5FG9nNrC8HbltILWlSdFDJF3efBUGz3uXuKQSxSUC+7tV9rHA1Xnet1Ya\nnZf8FjlHbjbywUVOe+0fwrf6K5mpnRTWXMHBG2qARDnTYmjiqYTYFnazXjNh\nYmTA8npQsRNYJDnjGguWfTpbVCy0V8is/yP2Vi0r1DM/qxD83E8jjHLgnYPi\nPq8j4QqNSlr7gSA245XKVCn5i2pwkvNlaMXBPe+441CIbn9AhMXrrNemCsF1\nrvhA\r\n=DGsd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtYeNyj7UUOhm3kCpkjy+t1OwJNThu2wTie5L4EQefbQIgBgxZR9esdxtJW48PpCyYytwAI4nCGU3fpstUEHzRhWY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592327813767_1592327821089_0.37466030954197715"},"_hasShrinkwrap":false},"1.1.0-next.1592345201228":{"name":"playwright","version":"1.1.0-next.1592345201228","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592345201228","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-F2bEL8pdvR3bl5kRJGZRWZ4QZeJfHz/yL64MzytPCTfeC4uWSvR3Cn78+R6qoJzUmh04L94mPm6hnJykehZniw==","shasum":"d2e0cd28181e2564a00cbebb1126eec753a4090d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592345201228.tgz","fileCount":97,"unpackedSize":1558450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6UJ6CRA9TVsSAnZWagAAC+YP/3kKPkTYMcV3it828OJ7\nY0CB1VlcNtDxh8txHpFGNs/GGwo9GRpG+kpwLAobTn4l7WEySpKQV8c2sErX\nAbQHDR3Nz/gJH/385ZCFxlQVUx5V3lfEPd35si36wztL7EVJ9KDMtOTazor4\ntgtxIScUuxxXsBhOrkxF2wRKLKYDwsb/E9w4ZLsnHGz1lhu1TK9PC3bOQkRF\ntgG5aOE2zaSXdc4XRvmJ0RMq3ecGcdLrPyGwwDywuEfS9b7mTWIkSUCd+58n\nDIRf24j29S5vv6PKBloeG96wN3Z5EJoXrIJoyJdD410nBPLDh8Ex+v1HLKTm\naZLemG3iP64dO7nLYD9B1cel3zCAm52IU3RW6vUDFmDSM5A5XjRg0U7gHNH3\nICeN1L3SY79AM0+4jugbTnV/CVpeeZr4KjSXIgNrj2/rJapQT8+xmkFdFIiV\nuHprm60VSX6J77mUHhUy3dkrY51Kbh4aXkd97ozKpg9VIj7lp9D6mJQy3YV3\nj81oXbtHh8I1ICNPa5x5WFlX0fzDycfa37aqNT1Kom5GGyTo3nJZ2wUy5n63\nPox0C/j+plpZVn4hwN7JSGAdksnKXsiyAxwklDQs9mKqKf0R9aebR5y89QcC\nc9jKv28DWZlSX2E4H7xyDXmGcN+1knxcS6ftleszFVF5aVSC/pf8Ay+JEQ88\n0u+o\r\n=EukJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUjkjGcOUlVwJZnV84hQHNJoVMTwpuR6hFFnDzjMg87gIhAJlsyRPt0gW6fgpMVSXGwtojTN7z3UMfUfQEJOJz8wJb"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592345201228_1592345209907_0.1943705470617645"},"_hasShrinkwrap":false},"1.1.0-next.1592347363926":{"name":"playwright","version":"1.1.0-next.1592347363926","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592347363926","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bJysQgc+HxfGjP4Aousm5brQNGb4JZseR66JpCHXPjUongIukPXxL3CSKJi7J7dCEtxjhQYMxMZ0i/4MPMy9Xw==","shasum":"ab9444dd86ecce15a826f487b2baad991a439099","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592347363926.tgz","fileCount":97,"unpackedSize":1558450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6UrsCRA9TVsSAnZWagAAZrMP/j19aWHk7WvonKOO1GlC\neDdbBzkbNJw1Dwl3iJi50bamrgcmFnf25sG0OrhVOGseA0nbHnZZnoHdItUZ\nVer1ehqEz/N8Np3iUuFoqOB6rl1/1p6WjRnkvzQuYFheRT1hutTWv4RNWS8+\nENR/vEdZOQ//s6yr80coNU48C1r+s3lmPcFoiJurqH+16dQLieQS6FF7IxyP\nS3o0/IAPVQ11AfbD1qqwk9QTeBwIELTzB+3lofwr+DY4hfrVnuaDI6w0nq3S\nViPllbUbFDD+DSzPIAjynfZIYwbh6zvpRYTG+uZN/0w++eM+wEYOxwkVMQnJ\npRJ5fm/gdSuqM8XeLOgot56AT1gcmZYqg0DpKv5wv6Ed3fWqRr//zoINRanU\nB0els/9wIMQ+rzDpCw7eLNBGZ3jJgYRHt2+xFb3x0Yecz8zOiSRi9OpBkmqX\nBPzic2GHEx8xor1jzk5Rfj1MGbal54rWqbpRD+nHvY+cq76k25PXl0OaCmL9\nIOO+bXb/yihoB9o2+g+Y+kkdo1aZMwbIvIwEzodqRO/QMAxS45xb0W2WP73o\noFfnjZk+vChNUpyxSt98jhlr1/kQvQXCPuAjgJuvTDyz0CncShrTD4TFZkil\n/DgvKIC4TDNaJkJG9hd3AY1MAEMGYV9E9ME/G7jQQ2TVl04nct3GpAJMXmd1\nfFPm\r\n=5j/2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAstutIDmbtz8pUGfAKZ8TQjNoW2Ygh+VkaY6KqtBsw2AiEAzcDMcdP3J88B/ywWPIAdaNoCJN9ICoJ0Y+mZ5tAUtgE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592347363926_1592347371468_0.08400519959719932"},"_hasShrinkwrap":false},"1.1.0-next.1592349729393":{"name":"playwright","version":"1.1.0-next.1592349729393","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592349729393","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Zf4h0j0DNpA2AWPWdxhi4LygmDrqRTmXfQ5fgsRxcA7eltdY53+P2oHWcoSDKeHfBwPPgAmRMB0HJrJArasbcw==","shasum":"edf2a2b0d7f28d4f537a9e882f358ed29fdf528e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592349729393.tgz","fileCount":97,"unpackedSize":1558450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6VQqCRA9TVsSAnZWagAALDUP/3/5/FnGuK1LPEU2btFM\nFEt3N6TL3a4rBXxa6Auni9o88etO172yIfmVZMVckBSujF24/qmnFX1aZmf0\nR92ydp207T2v6OY+nc5OsJp+NPfCTmfrzOpGXhfdtTcCcwBxRZ9obPBv/qWQ\nLl13oAY4NWsx1qSFEbAiwQRyGL7WcAWLW/hVWj4Cf8dg9Q/X4c7FtaRg3BOz\nXiWQL+h5wcEE/1sODjMmClTWBZeuwEEsQ8NjDGeWGf76QvMvnyQTcEcIufdj\nSiWnwtqcI50sOKmUKmBeRx+wDxAgkZ4AwDxzyFjWfKNzIO7MQ0Rahkq/TODS\nuVmSWGePYZjaJpoZqxHsJ5vSf+rWuSr7ZddHhfrUk9/VtFvlUL5qrTH3490q\n8hA2Pad2/SIArd9drvvoUY9SnP3cKWButxgJwxXlPdOI3FZBRtsZw5/NdyTH\nAGE5I/uDuN3PNlrgjQamQLGhsR3Ii0UvI9KN//dZoPObRnH8DcZEapHtcFHi\n4yF/cT5u0XLwtnh40foITsyxm0aZOrleKDVHdB+wl3btrbn45kJkG5dJNGSS\nXBIuxe7/Jz16zruHPxYBaRq/I2WFpXNh43RpivuH0zIUHb1GpB3kIyi1Yd1V\nHj28Fnr1A2Ilk7lJvTbY8PHeu1+KpxLsBmS4VOVXdsXSqDHyCnsPYy0svsOD\nNeEt\r\n=dE62\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBxSidGwKkAg09Mowvdtb6uAF6YEikJvSrGOOWZcF+s3AiAkb3qD3pyo+MBeJMIxJ+cJpxR/zGDm70HhtlwyLFj55A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592349729393_1592349737747_0.8550642136006383"},"_hasShrinkwrap":false},"1.1.0-next.1592352812649":{"name":"playwright","version":"1.1.0-next.1592352812649","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592352812649","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UpHJxzalWKzBG8N3QQv6c+t8a4QbjMr5V03spaMOyTGPRayPagl4qKyncT+TT6WwKrT4GCoVCWDmRL/WDvXBlQ==","shasum":"7fe02a153ec1544e6e13f158a3a9d4e173c6ba92","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592352812649.tgz","fileCount":96,"unpackedSize":1558391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6WBCCRA9TVsSAnZWagAArNoP/jjfbt4cA5yh1VunWgWt\nYY/mnaAUPLsMQDuNWpdXV3UQf2bcUEI4qS8CTiKUdvu8kPbgVi7kohooU32u\nT2w+th5JnVqC0I44/Y6DMt/A2UC08crzusYWrSG0WiP5nNyLpA8Q8NVlop79\nVbwFLUeuCQUwRWxNgdGsPrDagai4nLrmcVGglinPsR7hIBNxTKsgos7U4MPt\nKAzy5MJsRa6l3L4zI4RZUuOVLH4hwOz6i2LBeuiHGvJyhJiJMmrTCcJsSbIK\n6epjKmZbCVrWRJHzUP0zEhfOKrcoQKVhhT3NFZjRE0li9jCl4XdQvP8ZJh3y\ngMvMdXONX0L7dF7How/R+f8zfGlb+c8ZjCzqs+azeaCTlldL/UMg9ocHlnbM\nWRTGQrdN914MhGbTWog131u9pTftw/EyBiH8jcc3oGRtBytGEveNo0+ENvQ6\n/M0D0pczr1Cwss0rRBixZQwe4RsSx9Md69u0WjN7a6z/EXjQQkBcu0Kq9MQV\npqtgJ1qP0QN2q0u2erua4SQJ1sLN0/XOGRZm9uzCiLMiXHJTNQFDMDERzwc5\nti+Yl9r/8tKGMtb8DoF0atGInRx1quRQvQ+2E8H+4n4TVjICVy1kDsAdTgwt\nVyM9cqGSlJsv1Ln9s4Z9Zz+nfuHGA/sywU+5QuZDopaXThLuQzzoIw46t/Ps\nLdco\r\n=PRm7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhUp9aYPyM/L7dTl1U5N9hnJQ6+E8n3VTKcI48m8baggIhAM/fz8ZGUyrl2GhAS/QNxxc1OB/VqffkxrZDmscoGCQp"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592352812649_1592352826753_0.8447993096943742"},"_hasShrinkwrap":false},"1.1.0-next.1592353240602":{"name":"playwright","version":"1.1.0-next.1592353240602","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592353240602","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-iaLOUOFBluHAVOLO3reS9mfwKg52wioFWXsqga1/2NCa2Ge7tqjQu83JdFz0FvFRFH6vdnUhKEZQXGIwHtAL4Q==","shasum":"d091d61abaf3f71fe61517eed3bc91eb70bc65d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592353240602.tgz","fileCount":96,"unpackedSize":1558391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6WHgCRA9TVsSAnZWagAAKkoP/im7BiC+cF0CekEldyaO\nh7cXd7UE/8SUJ35fH6Ef0md525WTBhHu/oHWrRWveci+apSgBh2gnvPCdL6l\nriC8D5588eLF1UHonH0EkwjXgojTCMMGKMTyTGIE5inPsNfiG4QNUSzzPm0+\nEukkfgFVcdOdfHK0kSckM9YIfJnO4ywbvoC+DG/aW8BnKICVK3saceLtnkTA\ncldpGJXujD8IV1Yc16ncEYO4+GvCbTK13KsvQ1t5B8IYPTpIPq7TmfFcDOMA\nJekVJrp6B8pssKJHC8j5zb/KW1n9OSfDwOGdAjLJsST7elBGETbW95SZWR4d\nZ9Nj2Lf+PIMpXwtwEiDKhivZ4eQfFhbRf6Iy/BcDTEopalRdnIHcPUJz9dDo\n6fVr2EwHJ8by0vWrixol/RRIVTHAO2F+eFr45pMx++u9g0jwcebgHK22YE3s\nfijODawx+Zv6uXepHA2b1jZy9yK165pHRxJzEhRnrvLNk3yikegWt8Z7QzDE\nuD9v7/S0x4BLPx8/YhkPKXX7FUNeA5mbmhGwQ42U8SVcXwbnzmvE9NR0uMOj\nIvUP5d3oyrP8MqKZBkdK4QMRzxjcV+c/DhcGNpVT6ZEITdkDknjKZ3/VAifg\nZrFSjmXlkL+1AyIRYz2h/q21Ip2hhHky2diuY6s+bd+Rh42Hug8SQeG1MHZ0\nc2sr\r\n=dRa2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4lJDIcrxr8ozf03fnZMSD89Bqc9Kmd1t0fg962vo6+AiB6q88nCOwpINuQ9WG5/tCLJbtg1pzdcB9ReqOoXme8wQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592353240602_1592353247524_0.07171060390606399"},"_hasShrinkwrap":false},"1.1.0-next.1592354579441":{"name":"playwright","version":"1.1.0-next.1592354579441","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592354579441","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pb71VjxQafaWAnFSRRsdOOE+0IFvWbayI3OlJYPoUBicCLEdfZleyUm4NQwDdifZdPUHhwCx6GDMLtP/h+p8Ng==","shasum":"29b7156b55555d25edae6ae9ebc1586fc9aec455","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592354579441.tgz","fileCount":96,"unpackedSize":1558391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6WcbCRA9TVsSAnZWagAAIyEP/3S9mebprqr/hinwNVAX\nL3KWZcZ64WT3iUu9KDB4xwhX2ZnuwZQTfTL0zBUUsFm/9FUmTYSVx90/XA8x\n/a1mxPGRI+QFPmdIQySzMPswLCClIXP92YQ93c60P9syfH5Qg3BysV1xjOas\nLzubyGObyouO9WAggHtnzyZ1bNqQCltD1MoAwfCi9qwlAjkwYY84lZPpUHcm\nMg0q0D+cPEh2tbnaICZcX9U0vCOyCXPFgm/pG5dR7a61j22u8Pf1Edvb0tD7\nkVZp9u1Fn8nEdDDQGNxTCnWtS7Uia+7HsmaZaSsqiC2+5GaG9FUE7HE4e1Sn\nszA1h+hGYDSu0gKIFbDKHSrQlX5DALaQlMVTqtHhDlqysWEmeLwA7uhL3b4/\nlrSff2wovzKfAkVra0tiZiJhfC05BiMM2RIzNnkl/C9Xlzb2mfR/Zo8RcsDv\nyRRV4Z1Pcjd8auj+EbqyNYoONe9N+tSyYA+dvKYLZZ4boz8YowJbTBzFAj/R\n/epP2HlrkAEOoxmxSNYBWxAgJKp0r1aZuKT2kVCpnrt5tOHlOIbXHu6KedZD\neDA7jdpoxww0pixDkhBPlta2B3MWZfjMtd2jCM9YGyxOm2JKiVG13FWFN3t/\nakpTwIzxuMl1568NT0NLrwWMy3QWe0HK4J8rL+mamsdpfE3m9zgezJDn4+UG\n/WuE\r\n=yud/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeLaqgO+cbRk1ftHCWobb8mZrAxjSLQUOiNopZfosqrAIhAIhHAh9WcI0TyeaNlAPUCII6VCeqCB3G53ZXc0Xh5/wn"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592354579441_1592354586480_0.2001571798901851"},"_hasShrinkwrap":false},"1.1.0-next.1592368670057":{"name":"playwright","version":"1.1.0-next.1592368670057","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592368670057","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GsU1mp/pAko8hhGga5J1dLnOJRkTdzC7hKNOO8P6YwQgtWT1AekmTMyvCwzEqdD+dCieD1NV7Z1Ct7j3Fo10eQ==","shasum":"448793805792c66b87e91e10608d42e1e5535916","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592368670057.tgz","fileCount":96,"unpackedSize":1558391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6Z4nCRA9TVsSAnZWagAAaaYP/jydRSqMG0zfuubxVDE0\nqPWSuePumD6YwdfJyf33U4Iaaz1g9bGEo8EtBs2UxfYvM72m+Xgp8YxJmWMn\nEahDjRuN5YCLf+OkVzXN7G1UcY6sMQ63jNUfUyWf+qWIsSTV8qesqH1HtU4J\n458pJVWlXkkR5d6g3lTFW0Sqi818J1FylPkVytmWvdE4KnrwTqsjmcpTeAdb\nehFqSU6La1Kspha+GDZy+39a9VC5gkuEkyoqqJrPOoIuszC/Zs7+IMai/EG7\nln/R11Bt2e3DU+c8gjTYp3nR16eq4I1Sh7lH9M5cbGbCB1zngIviZA4H5OJ5\nqkbe8rCz4xmEjUAtS0ZS2m1N3/RYlWn6E5JLNIpWo9la7XFgx/+9x1vvTpcJ\n8fsDG9AqAqRnPIp1PF7aybhTfirE6FEivyRQDADuRBUcHnpZ46RxAPctnl0a\n5YzlvK7kiDb5IiFgc0NEG3g4Pfte/VpYT5RjdhqhjP/HpLVqS49mOrreJFtF\nvnSSa0Xza7jeIFAQxyvBIxWRXKv7j7AgHAanR1WJkXGBHAKVix9V+6AVbmUx\nWH3Elh6nqKfVZijSVfXjNmYMGUds9gnWI0/1owV0ZrknPEq6sAL81gfCyMGQ\ncAh3ha4/VvzpYbP5auMneACn8H3tT/cjxrvxcu8eDDCbtK1DaptTnkWxsLyb\ncZFp\r\n=9Lv7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8KGcxVV/q1CMy5Xd6z1TvdM0tmLyqGT5rV8tEqjUvBwIhAMtl0P9vwQyIS81vG6w0GZkZCQS6DrF0EhOXpT+y3sGb"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592368670057_1592368678499_0.8157746938532016"},"_hasShrinkwrap":false},"1.1.0-next.1592368820530":{"name":"playwright","version":"1.1.0-next.1592368820530","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592368820530","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HLyvUspxyG84n+5fKOD/0GWbdYQAJxYKPaWV0ZWpMPJ7opnlpYz/QXbhhKh8cRZaLqy7bM6RWVobGUB/jZrmvw==","shasum":"ff7ef4a4fc94cc8662254296f11c0a1586718c80","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592368820530.tgz","fileCount":96,"unpackedSize":1558391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6Z68CRA9TVsSAnZWagAAg/UP/1riGStM/8nKNUo0iQqP\nyUTNV3UVmBO6B9DQxgekVF0y22PkeDw5moQmWBnZl9h13YL0d1tYSdlDUc01\nNtqsosP+wDMxcEixnB0+W9zj5Gdrqolal002ZXL+aBmGL38nbAmzJeSG/O7Z\nOUvnPyCE7c/wKtMAiCCwFjEWfrL7YmISUOmgLbAM3fI6rkNlDEfmB9Rk56Vx\nohWxkwiFcoL0DM7Zo1kqpmTHqgjfHAB5b1H3bfrgKe/HAtfuHmnRplbBMRRo\nymbWqSusWvnGBDL/22nW52UklyO8+nSUVkvDqbW5SUzoYJsADSk7P4Z+mfH3\nQDow1H7mS9F+mF3+iGbUvN/KFAPt5XLMBjauV8wZ4YihRQLRtzD1i5vnNsoA\nQ9UCrk1iMs1xKUtIOSvFpX5mYSWajifDFH6PE0hEtIBX7G3XPrIGVs2stBir\nuVRjQVB2SJL5ZQgm38MzHlnGdLjlcytDm4uem/Z78fySpCQbiX7Jk0Z4fo0V\n/QrENPaPCZH8tWa0omOJOxrZWwP6NvOWX3/QWct4GN4jkdQWb8gNWQfUDiHc\nz3dtgQsxsgBzQzh7D5fO8vcADn31+OH9tYeTu900wZRVpC8D61HaAF7CZCVN\nKAVN00umY+acK2GLQTRlut65Z3XujV2vuFgCyB2wJYUy9LQcl5/M0httVw3w\nk4RQ\r\n=qOsc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4nuSBt607gcKljEOPmCHbVuc9Kf+3X4eTz592j/1zPAIhAJLTAuQTCACMMb2YDwkpenXA3600B1GzXuYQMxqFHIaP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592368820530_1592368828319_0.03829678834470229"},"_hasShrinkwrap":false},"1.1.0-next.1592371953331":{"name":"playwright","version":"1.1.0-next.1592371953331","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592371953331","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GDj2s0/eUErHTBVcMZnulfdq2PcQ+SaT+deDyD2QgUwOllZ+6IxRqzhlt1k5b8lCAvJ3lwfe7FBOg0DIYX5Sdg==","shasum":"ebc02d333683786246ea67477b02b249ce937161","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592371953331.tgz","fileCount":96,"unpackedSize":1558391,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6ar5CRA9TVsSAnZWagAA0REQAI3+hNvQgfYmzxOM7ogK\nY8nT7grEMDLLlYy/pvx/kewPc1gUZ4ynSEx519saJwV5aATD22u5u5XB14Ga\nRvAW0PAqD4oaQwN9LAM9rkwydhA2pxZNv/ocuXimzjAtRVN7Ph9WXyaM1jNs\nnaaVbCqJ1GS8APqI8TVJVPIWE/qpaLyjb40pd9bA5fTzwV+f58hFlwtCEYGF\n+R3ljmAbFgqZ6NJavuSrcRs7J9whz588tmBwlhxos8AOx6UWEV4Il5Uipc6O\nmBV28prg8ZNFqu7fUmNDm152N0sL0GvHiYglCr3ekwHAtMPu7ABUn5hmKABP\ncW5MYTZPPSpBquoV+bc4AAQ8QNijgsdauAg/V6/ksYTiO5XtLbiIBcrT7vcm\nHR8tYzfUeL9Xh3xvAtjGtz2ynt9Y+aTAISiWIWQmR+EBKTVw5gb7n+45ivr+\nqNZZpku+tv0h7IhsasWXh7B9zE4xWoZDuP11HoNmDKYfUfBPqiXiBigkoGYc\nsk1Oq16AzpdGrk4bvKMHSVWJ5v6JZp2KHTstlEvxuquBdHLbC8p5IQ7Jq3sS\nyugxU4G4s2JwdHt5/fkMszAU52ZDIr/RAN40WIoSa2C68EvfudWk7k/dIM4G\nZulGyTZMlQANRNRcw8+d5NdyYtUasK8omBiBpcg07t32FpX1gK4YQO/t+3w4\nt7yC\r\n=Y5TT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiqoVEu2tznqZCrjEx/cNq1NgOgOFT6l9fIAxHu2Qz/gIgcJzcTGJwpsmcsUUPvKFEWOOZuni/XxA0xYwv7Uc7ruk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592371953331_1592371961163_0.2771135131737714"},"_hasShrinkwrap":false},"1.1.0-next.1592408184330":{"name":"playwright","version":"1.1.0-next.1592408184330","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592408184330","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NwjeQ+3zzEjhxaNB2F/8KSVQuY/bbKPYTZ2CyBdBnL6CigTO8JpkXzycHEvVReK+/corcxFm7cGOj761b6oXEA==","shasum":"a2b37b0523e872b42cfb413dcb2ed0660354b7e8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592408184330.tgz","fileCount":96,"unpackedSize":1558637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6jiBCRA9TVsSAnZWagAAi/EP/2b5VwqGtN3BSJWEURv0\nXNx4v7A7kNPttkihlo5O5qUMPaTo2oLgVCWFhDeGSF33K8oVD36Kg8pO2/BJ\ntfnRvyXdEYbo02UISlT6+2vVF5sdm+ajPrNr+4IFEEkgj/oHai1GADmReocy\nRks5MKE013m/evO+brvX9+VCnncyJnYQaprHKIAfFI+A9eUjH2HKS5gtxHlU\nNj5yMSh/Hlp5qPGvyq1cxfGwpNoGAOrMfXSllAuEKe1yvXS6h/0QZZmtuTN5\nuw0zSheRY14ap/sy7HKWKQzY1lCKnAWz8RwYhwchEWk5mRTc++AFw8AADkYd\nOQ/Kh0X6pR5f2tGsMwV6Nuyh44Sa7j6cLdfngNWNamCOJAndYWeRWpIc/oNM\n8aR5sNF+Zcs1eA+AWuk2LCyDJKRZNedjV1pv9sZA8lSIfzXhf7ydcvpPodGw\nbIQq0NAB9LFUuRw5cys1HzRZZMJ5qGSlmeBVj+7WlHpq5wS3BSvWHCt7YIqj\nqb5Z41n9JMJGt3wEdoK6f28oFHQoAahBmM7BvUQDGXYkQTWg6RjzXqiIsAlX\nxJPNr/5i2NqSNCK2WFa9Ot4tsYbcCrRSE58oASlNcmdrhgVC33C8PrABGpmE\nh4HDM2aXk4uefcuskS4UgcZUCKjlri/GQRswMWfC07a7mlOja0FtwvfSx8Wz\nlHhI\r\n=Ks+0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGWKUl7f5qUps8yAwuvbfioE/8bFPBQr2F6q2jvoPCTFAiEAviGLpLsX28uQKaKrPOR5O6tCVxsfjFY7/37/ufAqq+0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592408184330_1592408192389_0.8180265101525634"},"_hasShrinkwrap":false},"1.1.0-next.1592409991306":{"name":"playwright","version":"1.1.0-next.1592409991306","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592409991306","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NKn7IoR3Iilx/HVAdWydb++9wVMSmyJwD+BtkrbFlqq2ZpA9mosQwwdOVuDLaKfnOfQ/Fa9IcYSEynq3+c5AJQ==","shasum":"bcd1a8ea1d23d0b6636849cbae59139936d8cd2f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592409991306.tgz","fileCount":96,"unpackedSize":1558637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6j+QCRA9TVsSAnZWagAA8cUP/iyoTcvrwzasDrHPjmIR\nXnICbVNx4ZIADwqfpUJiD+FmZeRMOWxsQe8nDitFsCkcJeVTs/paV/Q/PSVL\nShKIurqDQ26LlwUn/HJoTqaFqg+2FtPli707vhVE6n9R/EAq8QgPTeBmPq3u\nck2Au57QuYx3rov9GS/80tf4eNa+omxWT4eVcoEqFlqE4t+/rWoVE3xVdRCr\nkZgY2ENQiMQuTFxraO3TmeeccUCR0NBqyBTKuKRp5SrUy39znamrVTlvswrs\nZvBR4fVPKbrLruRB9+JcT74wsAdRSaym0vnSSZz0lWQFEucPBxg4ybv60/aG\nANhCS7Y0E768MpO10n5GHwWNKnDSZxajkmCRG3AhI9j4blD9UtwBYhcUor98\n1WbiW+LswAwGc1saYLUuykLPr9GNanmeEFVnbty0sp9UqTKEF7l+U3n4j7Sc\nkQaOswOwHIdsGWQLVnEOb5DNxead8/E0V0xn2uDUKJYHKwxOOypdbhN9FBiz\nXlkEpSzYlj8N6W9Un7uIVYfGV1MhptSP3Gk+tk9FD5wUH7pTR3UdN4vJ92H/\nwks/3jfRmDlfqTrf7n1zBA3L8ez3wZWhB1Am9yoVsYIMZFvjtNeOSBnQDY4L\nwpIGQr/9QohieXN4utXJX5TtRTUQuyAcA2CXj/nyyxKEJfLWi8ruTozrE+wF\naanu\r\n=lCLC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDOEO+uslcM1yhB8Z2WswNzK0gzOP79vp5BrP4tpKZQ/AiEAxeyRmr+ES16SgYLRcS35x44P83sUIlyFyQ59JTTDMKQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592409991306_1592410000133_0.4724482515056665"},"_hasShrinkwrap":false},"1.1.0-next.1592416187333":{"name":"playwright","version":"1.1.0-next.1592416187333","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592416187333","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-q2vhgHlNVn7VLhz8VUjncZLVr7RMF18ZbyNGC3WGPcm1mGBXMGlLzM1iet1IhU5C5xM9c4zBIEPHwVj1rbhEFw==","shasum":"dd4ada945b8266f7579db6c534c5cc78ad15634f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592416187333.tgz","fileCount":96,"unpackedSize":1558893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6lfDCRA9TVsSAnZWagAA6mMP/jn0rpz1O09T3/2MootH\nUOH4TrohX8tfOIc/TqnEgJ9i9SHqBGVpvEiUlY4vTWOGkcBOAN8iRQE2Xehg\naHoIRIcPAWts8GZSGlFF98l0a0XnogQPXbMhq5d1+BFdwCeGNHEf2/G1u46Y\n/7vuZRJKL8IPZBBKz9oBYPyFnRHIDlcjbjkXPZyl7+sYznPxtwRIsDpNqFgz\nW3X8+pa0RceBUjtCi+qpkNUloA5yBKTFf/fad9YFiPDVTqRWHWSwUb4ltanG\nb3udaZDp9VVRvuCNux4DMHETlLh2DoOASpkAs0Ajj04dpxAfbwfTh+QL6enT\nR9kjWzYxby+ZYm3hVcsAgUMTXLoGk/PvgcePmy0Ov2Wzp5c0jArZMTqMB8EC\nlXRCYS/OSEGxxsPe/40gHhj9aCXlrsPgZ6ucGkXrNaUuBWGHakLKvbcqbndu\nVPRcTigz8CjGcQgShmm0FiooZuDf5+/YVaoeKDYKvWuiWSFXEOS+tVp52B2U\nkAEO5mSp7t3vnOiBxVh6latYwlXjnMN99OzAtDaAlHtY1aoa7QvtONrjxcw7\nZKvD1NRmP3J4rAvFkFU5uH9AoANwqXBriH1XYmbWk2LgZD2+I4kbuwPUTw/d\nNj3NIPBktHPRzHOdkncwjiYfMwMEkzNMhSi1hN2qovTVeFbemLyktvkUwmNs\njmYB\r\n=Y/0O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsVY1J/MA7ugTja0J3GYITtguJBMYaNXYcUuzhQtM3GwIhAJBBdMV81QUTLunQyOUCaN49FiOsQ0AWVfzMd/gUDAdY"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592416187333_1592416194807_0.34478482038876623"},"_hasShrinkwrap":false},"1.1.0-next.1592428538312":{"name":"playwright","version":"1.1.0-next.1592428538312","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592428538312","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RvmfJ5FdY1bQZge3g6R6e01Omkxlh4DZ4NTDJID5YokNY+o/1e5hRDGhxrUU/9C7+JYwQIvgTRz0TDHd0VD3hw==","shasum":"e1ca21a0a8ceb0fa3b5961b1a6bffc8109c10ade","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592428538312.tgz","fileCount":96,"unpackedSize":1558893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6ogDCRA9TVsSAnZWagAAJbQP/it0K7S8Xjf+gEzFiCaz\nJ+a5NPh9JbpYJT7ZX8t3tjZRMxOTuvYMN96x0oAmfeAOKusb+yIzMQEQSIBs\n30RRCkxB+GFxhxwG4PW8GEZ3zNKF5PB1q+U+TLRusqtdAJsviAJCAtvrNudB\n1roXanwVsKoBQAWdzVja8UYnMc1FtgawqC2u/ClXhbrsaxGKyTOSfQEzsclH\nh+rrWs/C8LrtZGJnSRi0by93uaQTB/EGJZ+56p61FgT7THsLZ6FvaplAx7Mj\nXCJtYhLwAjcCUW1Ek9NCYj8hs3gVHq2GecGxGAoUHayF6Ej+/7P0ASnhwnbm\nDR2JcdxEtjdnJGmRiX/iJfc0g36tYp89FUhUCC8fV6Vz1v5rURbvHt3vQHJr\n+nibSYnQ7J//cK7q0yP6AIkfNWa36bn0B/8zWMp/KsNx5nGBKgT02TGpFjBa\nahqoTMYG2QpS+cy4C5UUSd25q0mIAxVUUuJ6CeTz+jQh+Sho/6sONjH+qelV\n5hvFNSMQmH/dVpdDiTCknYIBQQe31PtxFGKpQcPaf6UMIN5EaKn0rhCQcSVP\njZMfBcmM5MsLGlORUZFBTNVUvqwdIzJbkq4CTqU+B2FaKxwpCKffQN1id8uo\npZGiRvDWqUlQxhB2u0PLjpoCCAd+DTopm+Swzh0ssm6F/jOpf5kC94oe9DLe\nMLvY\r\n=qZyb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCp9TIGtVgADXLogt3gHa2jJOv2fHi2iSYzTQevQ/B6EwIgc4E8w6X3Fzxu16KWHRgOx/iq7AvF5yMcu+hWBSXd9nY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592428538312_1592428546748_0.6201878783223775"},"_hasShrinkwrap":false},"1.1.0-next.1592428715631":{"name":"playwright","version":"1.1.0-next.1592428715631","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592428715631","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-geILQpJRQ0Ut33jmBSyUXILRnUft+GkdgulyWtUZ2/uQuXw8CApp8NZ0gGb84cUhYPT10Oosnb/32UIq4a0dzg==","shasum":"299941fbc13db5439fb58f2d51d3531ceaa54736","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592428715631.tgz","fileCount":96,"unpackedSize":1558893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6oi0CRA9TVsSAnZWagAA3KwQAIp/uxGEmw4mxANBotHi\ns/G+wtS0B4bKTMqdevzY4M/6lHMnrxNu8g/Gy51rLHf0b/ebOFnHiyc9Qheh\nOPMqGM2SzteWI5SN1ohCg5D9P7Ymk6gm3z0kgUbbzpy4rvlsBcTPh6xo8LOs\nsPjSLNKaM4jFY8bIVqHJXawRE76M1VfTQFH6EE1EQ79XAgZ034ssaLF2inVt\nE3fZ31oEWEdxkd4DlilvcQBQ1Bc74Mn6zMAxdX6KsvyVImXX6uZiQlruggp1\n/UGwnDiI99Gj7YqBWByGQWUcvFxhLjRXIbVdzxJPY7fLhbgx7HgWA/2kZhmH\nKdGT1UVayOTmx6jSyRurKWV+8WxuybcVuPqiKeaoQswGDMav5YguSc9R3q8q\ntWm2ezxAkH5nYEvS8JKRqpVXPPQj34dZsNieyatq2HtmnTHDcCXnCz5Ou1gD\n/kRf7O40DR4vju3E1SOg1/5PTznolHFWxQvJwTPEGnFnCNm5Oi9yvmGglSpv\niXmAAiHTR+1DgCcm6dmGP2Qa8HjGJzs4cjWZ2e7vEUBXFaWnZ6YsTc4pge/M\nnAk8fiyQEttirHDGrzusQjBZcijHYhrXimpqbjQJ8hkUXiIIRAXbInUSnGjf\nM4qh9HwE4H0DBXrOlXpRNh1TsVfterLQbre4VWw2mr19N7Bb7STVIgdlIFD8\nqeFW\r\n=KZe4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+CX2jxbbEfLKXpU207oDsQj2dzlXeSXDba7M4Kp4aFAIgGn6uwBD2Na8RYTK3rePELVktDMQJvQZ3dC6OODKH7Fk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592428715631_1592428723370_0.5197416038647273"},"_hasShrinkwrap":false},"1.1.0-next.1592431152076":{"name":"playwright","version":"1.1.0-next.1592431152076","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592431152076","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ld7kLqSX+yriEubF46z3oraSx9l1khiOpiML7QB3MXMVYfEbJWfM9rEhyq5PXdbdK/eMrVA8pIMuWnUb6WqtAw==","shasum":"6d337488dee9b373af22908302d2976e5d2bd843","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592431152076.tgz","fileCount":96,"unpackedSize":1558893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6pI3CRA9TVsSAnZWagAAVkIP/0SGgLh2YN6mUNZLjERi\n6XZZw2fp++Wx8lMp5/1EvrP7L0YF5Eka754IxtDNVIkeuWaAD5EGzTOTvASU\nU9yAQu6+Eci3yyK8ybnqcIBJptuWSE9kMUPQd8CjOiCZAzyhWYFakksvAutO\nsdS+wFc3VF9FdsYqGiEYPbddR7aKr9MhAGxaoi/0mbbg50GIK4sse6zJdazC\n4iDRcLbWIgNuAOvHsw0mMu4QQI3iOGkLAzNwKU2P9tqfCLfTCXMcxBXHN55C\nxtE8/pVseaaxEQx5GP1we7NQ4UuYDtqEXkxXNiWice/BMbs6R7HqR7B6V3r/\n8vZHR1zU/gcUygDRtS6f4L5dkNmdYfRn6KSrctTbqR53Wx8vcXSRgdYV6TME\nKqYvGjmFjgX4d9GQZYe3jW0qp79lLTx2OiiJ6uPczbRcuYF5Ws85AzKsoF6a\nFw+1zpr5AmPJoHheRDarTjPV6kM9mbwojh8FXdqXA2+x9cleHUDw9jCHVAhQ\nDMeHeiC6xRs6dvOKu9gRL9PkcDPIo9zZmbyPHrAerkqKXsRMLM9m+fgstZ0d\nKqmJnepA/T/TyuI7NahsBFUbA7hGeWTSvVNyss8TbkE2BpBLFkoLN2ydUKg1\nJQAwQ766KCidZUOIcgazkwJhTteNKWVnt0rcQShHN6SS2G2loRJrmxmakSCo\nI+ob\r\n=iAp/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGjDoqDBOVwuQGZcX6uh8whhXPc4Uf3NIuN4pNYU+zAQIhAI65MA+nnmaQ6xetrns1WQwoLsNBHLGVjEPnaS+okmrN"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592431152076_1592431158967_0.5730154074305709"},"_hasShrinkwrap":false},"1.1.0-next.1592461313096":{"name":"playwright","version":"1.1.0-next.1592461313096","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592461313096","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3iE0HOnfDG3SZXWje1Bk+zc9X/NDrlxZjkAU6kB4fPNILSi4yTNWK+OeX+Sc4YovTkdY2DTZri33jMFF3FYC1g==","shasum":"bd0d09c6ff14e1c6dc5df44ae741d93f25537109","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592461313096.tgz","fileCount":96,"unpackedSize":1558839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6wgKCRA9TVsSAnZWagAAA8cP/2JlDTjpIeEIp189MOSq\ngNmU6rhv2RQGiXpZEIZuxkzKMp4V4XSdVlkEd621uDhhRv05K4DBAi/VWGEr\n3DWZ5Jw3DaTQ+rDIgHw+TReINaKLXfCljTkPRv75Z9kinsyCbIGWbE5uEQY/\nOPnXLaYsl8FHvUKJ+yrtXfarN2RhvApSEigQfUq7VnAuGrFBj+5P5b5ib3Ol\n1UMgJZIZn1E69JsuKI7hJ0SULB7h6ia9iw69Dwy4k8BmBBfvXvqvyKeQubdx\nqT12T2GyF8u5T7wAw51XYPwUr9ixyxNHCIWyTWyzNu27jg+Iot2SCss8ODGW\nIZ7CqTw5U6QuYlXb/uqx4OPIgi/s3pPBtMlWoo2YRMT6ExAFW3D4vgzX5Xs0\n9PkglcvfSSJAuWnLOM3eUB7m++RG2SjnG2/W15hFl1q5QiX/ykJcNaQYC+iM\n7yH7Tdc+D4mtoR0jq7mkOASZtk3IREAEMnCSngEwmKeuxVUaiQJZ5a1Jg4cB\n4Ys7mOWYripZ5k6PtWSKRFrejQM70e/3EV+Kv7FJaJKV8CeV7O3mHAWL86qS\naPj+z2iiLzy/QKVKKB0Fj3MTwv1ZYAZ2JBjNLItrkR/igWRYUixDxJWI1KwK\n4AQT+qIpa3jFvqHx49+pUPhJsj8qozwOSNXO2QS/yI8KK1TiSDnnqa8oVPNg\nVAnb\r\n=OYeh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZiHWOo7n8cp+H2TDX0XXvz6OaID8ZFVrTZjNTG7CppgIhAO7fP9dJ0qX4XHzoMm0QP240NoYq+7inwc5GKQv+wxA/"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592461313096_1592461322036_0.8921663888576765"},"_hasShrinkwrap":false},"1.1.0-next.1592461595212":{"name":"playwright","version":"1.1.0-next.1592461595212","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592461595212","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-KOJqcNRFxibGZYUAMVtT7w/teJK4Cawe5DNsFAWMA5OSgypuTYbrJJZt3DaO9JDWiFlTMj+AOigwIl99NeDn8A==","shasum":"83cad290013606ce200e8e18773725d231519692","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592461595212.tgz","fileCount":96,"unpackedSize":1558839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6wkjCRA9TVsSAnZWagAAwHQP/0U6fg9kqDiCUsmNhTog\nxfQDM8L5np6AeQBXiZM4PABt9F6ynXn7KRgk7BypwIynWxv9UpUzZzWeBz1J\n2guj97yioTqPQwqRd3phUdDSgApCf16WMH3vEqog2nuBAI+j1SBXQIgSwlrN\nUkEmiLC8Uc7O0OkkbBeOm/Kft2QQBUc7HbKYylxxBpx5v3+YbZ8EqGsVfAHu\nZonguO0wOUROXJRIkuh9BdS7QWtd1vYiNhUuQM7d4Gmkf7QpbeJld289kLcq\nzCoK8aEpTaB2kj56Xk/JLBPPcdZNuqstsZXUTbFX50+A2fMCX91JWik4cp4P\nNo+jYxHkRGRS0Cp2HVigK/KL5URiPvuI4K6kWaYA1Ax+8DMzyMy69pCeoKBq\n+2r5jfBOyr8O0TkTfqOfwJzMFwDM1muy2XS2Cb7kX7Ie/AFbP1N/mQrPV+JF\n03IH/2gEbsneXb6YnUc5UllXTtlzgFSG9VrZSqZCMrrKn6dlaGVDysnaAZ55\nNpyr8wWgcHieea+isprpTGZhBHFeRhnhJhBYcmvhqvbm6gMRhX7uRDYY83Ft\njtDw6ZT5+0f5bcNuDsPd9AI5ey4WBd4KnLekP1WS7vQ3/IARMDW8sSDGKQip\nIx9udipWRo7ZVqsa0EPlSdwinMp15ab540sPmCZluZzHqemTyZegpWQFhOX3\ngPYz\r\n=voKx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8CXcL1BIiIs14Uh7K6KNEjTLEBEpkk5jsI9aoDvyh1gIgLK6ddbh87X9EP15eR/O+AxUULyabsTuDeukhTGdwZPU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592461595212_1592461602873_0.489541040908849"},"_hasShrinkwrap":false},"1.1.0-next.1592502149981":{"name":"playwright","version":"1.1.0-next.1592502149981","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592502149981","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dmKiZTYJORr4aL88aMvbWHSMM2sdCzFWDWZTeijKOWlMJvj/RhYw+zDlUZkxlDCy6SC61a456othne6Xj4ID2Q==","shasum":"1056be120152977393dbf1f23133cc731160931e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592502149981.tgz","fileCount":96,"unpackedSize":1558839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe66eOCRA9TVsSAnZWagAAGf4P/0KZEfAOKtGUgC27AhLt\nUdYx5qWAxHPOaooIIf6qtt6svA7WMQwAaXL5hOYnwn05ZBzOVNGfn3TkMIpS\nCsUSaPyevcsMYvbSMp20h9OtIV//8pcf/W7e4vI9gErd5IXVjMojKi6jxn1K\nKKSRsRR6vOjLCul6vOv2hc1FUhq60ydXjdp/Igv+XOnZbrAnZ8S4YS9T9f7E\nPjDpYgr9mE3x2IFsBpp0Df87pDbk3G5smr4RZN/CPYHZsxCtXmvpuUVrPdol\nVTlfEv3rHAR1gQ433ThofsSjmzGLQUIjkfAzyaa/j1AuNVkmVeguFIGbN81t\na05ktpcbJj8Sjy6ARpwhdJVOC0U2EmwBVN0pZKRrqzC97ld9cyxrztUGdB3H\n65m7NC9IxYHip2+IH8oy+7J6TVaCM9uKmigfilFjhKMYrp/HDEZUGhR44JM4\n1plCs0GKZBptVKLiqIrWo393V9FPQ781yK2KvNTTDsrge0h2j5xdGrici+n8\no7Zb12x19thHnwZF4cs1YUIp/B78TTwsELSNfOZNyDMmRoZ+19j1DDmPt/SU\nj2ODT2FTNtsxsA8QJ/oLaaXSQ51oqL8cGVhf5DL6K/UGCKMl+CZF+AOjpXfe\nP6KAMdSD5UI/zJr0QlCX/i/w734HmO+UvYPpWM12NrRdF/1t3GlpOUopyPvq\nRKdr\r\n=PzeM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCe+4yQJIWb9yrlUz+EO7RuF3FhX4CCMit7rUU3fxdMNAIhAJ2GkFAm1YLhMCkeS5/QT0AUxyCDlpHusu1Un9cymWsx"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592502149981_1592502158006_0.08817584127145128"},"_hasShrinkwrap":false},"1.1.0-next.1592502826118":{"name":"playwright","version":"1.1.0-next.1592502826118","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592502826118","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kddtGRNnG/fV3lb+N6ze9AINd9eGsfsofZdCVNMxynLPQe2T+ja91LSZib3V3ZHCMnaWsm+dVLgEWf+Sy22HpQ==","shasum":"7db7daa89db790a041fe6652d3bc9b0bd42e7816","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592502826118.tgz","fileCount":96,"unpackedSize":1558515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe66ozCRA9TVsSAnZWagAAIgsQAKD4RqsJCDOO9CzKeUdv\nQD4Gu/VK9Gp10FlPM1uR2tjw66Tw9MI9hZKbr4STvYK36zlDbTu63H5pMnae\njMWsmzgR1brA89kDrzWugSrrDu50JOBceZQPrBIsbCfL6mhko5tZYK2sl7+o\nj+EZ4h5HJFCFlJbgYggKiHty48h4ZrmFZXrCj8iCp9nlyKcQxddcxBZb6yf8\npIIA4QBkK6v7Jdty2LJbD/ghV8N0M7Eyqek/roL8FazRIgfoVtehgVRzA6lP\neyJIapU91q4jTHXVoNnbkfZ4rPCV5JEuXLMXaU1CZNY91YyYhj+S+2KlYLuv\nFD3wj4yFhR8VcUpt1NG3AHDpIetCY2HBpzfYuNGO5+NMb4X45IZuYqgNQMTm\nMA44YkvLPM0ILnKlVZHFcLo2dTAdlXHCjYpzPVwhxa+Sk9Fj36vn8KO9vebX\nukR6lRxBt7FLVTnXyWXCYAXMyO4bM5ZPbcj5jVj393T4zGwKJJPHUnS4wCf5\n9DYJBO4/MwBeDeY5C1LHvINzRuyJwfk+YFu34chzVRbE/kxd3ud9op4fTGRd\nFekk2HUfoDjQIKxAQgbfBU6pNkdI4l8gExyPO2Vf36oWwrA9PY9KBvw7pj4w\nrgnFvtMfIDfRLlhL9W1XuzMgJ2ScaigSTUSf2iBCM9seO0pYCbgyJYx3L9MK\nFCQF\r\n=+XnJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9FibNHCwWq0+Dm7Kpzs0/OiqCXNMBqCL7vRSK7q0OPAIgGD08pjd0RVpqFd9EruRlseg2pSqvWXDSzLlI/gHzDyA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592502826118_1592502835024_0.1742913424244923"},"_hasShrinkwrap":false},"1.1.0-next.1592504541589":{"name":"playwright","version":"1.1.0-next.1592504541589","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592504541589","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-El09IXi2RT/5au7oHws8brVNZC/VrDm0CnyOpMFTsyfTXa2FFvRId5bV9V9vzG/kUcn5iPTxrdzdZX7NHwlrjA==","shasum":"3074ac2c9f78481cdb985d180d4bb68aa694f147","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592504541589.tgz","fileCount":96,"unpackedSize":1558792,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe67DlCRA9TVsSAnZWagAAPZUP/2m5+i9pocRJwnYs0JIm\ncM7+srvfK7bJhNNm2S4Fi4yQpPzksj+wrrcYveBDEcZ2CUNSnRVb3OvLjOqw\n6dXwdjBBign2yIbc4pYpANSCn+SumbiHabNwCiPA624kJE7qL5VbGR/aAhcP\nf3qXZGSWHwmQ1wSDramdfQuyRDX2jv4o4CYDXouO8Q7REKI+2n9oCGYC+GYG\n4dfw3UPpHsBP4XXtuakkdLiHf7Py6g5UfoKYiu0jE0P/X35cjYUKCT0hFQpD\nfCS3m1vGfE+Yr/CYyG5hVubGJRz31Y5s0dxdPR9yoqyKrMbKZSt3sAMvhvOv\n1r01hMDGoN19x2xAf03yFXxnY+1X3TpCIQyXQW9W9kUcv0O6Fzpj9xpE8I7Y\n161r0AHMvC55El5m2dy8UXtJDtckgdUTdndzOb+Ky93kxNBh7g4pCFclDj1+\nboOtceynN1DX6dXHmz/Bh0W97R62y7EvYYh3N5ajfGM7F4h8h9cQCLyU3Bd0\n9jUBmur8z0WgGg0V++ZiZ3TOXf7bNTlcG5gqtjC2UblE9+75UQbG9C2ZxX9P\n38u23Neh7KZYTREuNlvvkUJDuNEqCwI/eAurQ64tK6rKc1wbhnurW6DCtKUL\n3zGn/fZtRxRB2rQjY5A8rvTwgZc5TusdiQvDMD9VSQdjIRyDq0WZC/NImXfL\nKEDd\r\n=eMp/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmg4m5d1lBnNBpM0nJI4RcXIBzoVWOktEgr/PKTjM4AAiA+FSic0qU6rLIvqY/6VcLB2JJL+2CQHBeShLKz4Dphog=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592504541589_1592504549289_0.7736988262966946"},"_hasShrinkwrap":false},"1.1.0-next.1592508599308":{"name":"playwright","version":"1.1.0-next.1592508599308","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592508599308","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TD7zhKM0v+taoG490Jxo70INMaX/+lrKJCbbxxhUkC03EnZ6b596KO4nUIyHpmRjSBcUFaXInxlbXjz0KOAfBw==","shasum":"e8096ae9ee4ddb967a32873bf65f7a446c26f5b6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592508599308.tgz","fileCount":96,"unpackedSize":1561761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe68C/CRA9TVsSAnZWagAAYvIP/1Wf8KbOTCWuHE4ewkl4\nxJwF3/8hFH/BEvJAdpjL9q0h5QRaBWy6G5Ckl7iK7JlYoNLPgEm3sOgpCgze\nsRqip+a1JrDuDya9o26iuXgs34SjsFJRJhx4Kj9SEVhXzC5uXHqWEiKIWuqL\nbY5cGICEoybREaqwfGULB1Wu9iYdxLwjAvrB8liR8n7UqjuqKfQ4gaBe8xqj\nUud8kzFxsm2MVe1R+ezW79zktv/R/lBxC5R/yrEDZZ28dXiBdtC1l6KcEVYr\nEMvO2e8d/FDqtCCrCz1evYPWJOxqCkpBj+RMvaZBApOqENp0xEuU4bh/COww\nAzMBsLguzjWnGMuwj+7yP/p3MNI5QrTS2Koq9g78516uhrTD9KNYyAxKlhzi\nr+jKV6aLaHmKo6nIC/CcpSWP0BNDbS70VAmnijMxJ9EC0+pbuQ7m9KRdYhM6\no2Gv18LogZ+8DWGzhMf6IB1PM6DgzLuclRUfQTbHpq8RRU5lV5gJTq/ObEXV\nSwRpb5qvZgK22F+kxGQNbK9h1oPJqBUuU+aCyPoz/rxgnXRMiPdGsg7qc5vK\nl1W+ySxMt3CVFNRKbqvjrwwYMwaGqJXHVfnbLpg+/j/BGc7j5UbG7DrCpCL/\nKtELW1XwQazDyKi8h9o7Af0WSMAsLFoJNO5AxM7M/MWOp9xOvn3OlJcQtCft\nknv6\r\n=ONhK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4BGS2HMlw/N5zOMfoi2JoHatCchOGNOhtMXa3KtptoAiAhFMzuJY5k6w+z+5xOO0AOZJ3SKN0VrBpmqWGBF19v6w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592508599308_1592508607097_0.18131598983161656"},"_hasShrinkwrap":false},"1.1.0-next.1592509038913":{"name":"playwright","version":"1.1.0-next.1592509038913","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592509038913","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-QR2JvHmygIJSszs0xFOp7F1mDLXPqjZCt2j5BblkBy3qrW+b39WEwJOcVrMhDVJQ28c/9z/iIt8ZgsmHMnaNjQ==","shasum":"d63fd2d872b3b0023ab0259272e10149f95efe64","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592509038913.tgz","fileCount":96,"unpackedSize":1561761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe68J2CRA9TVsSAnZWagAAzNcP/RDE/dPgl1E22j/exrHs\nqRrx/ao3xGGo/Ico+DyBZxL4dsTGlZWd3Oj0lHQtcyxCSVSmX+B/Z+VuMoeW\nM9EVUWToWDVGiFGDN+sLcRMhnLQB+NyQdaPhagAe20IKu7G5nZE7jO6gd69E\nSFKXIwyvSFSrQvL2A/mk1ADrWqE/ChhDFByF8w0eTrXMdKTDqRP///hFV2mX\nJI8y1o8rNPZUV5cUFMMbhzFDfawUxsM6/ye35LUHfkLVY2fCL0PTiI9qUkku\nuxuDq0RebHOOn6mVngb2jo2uvjL1Fg4JbrB9NhjJx6OKC/Y6faey56FZ+Sao\nNcs7WIpZze3YyXmoAF4WQhg0sOxlCuC7eMtLtyVV1g+kF5CNqtAgr5HXtPJB\nNvDBqRSmqkv4fdbWAJisQMN86raeAZuCwo/zshMPLx+ZlutMmviOpKH8QlDJ\nVRimhtHQgGAAi7I/OrQ6o0E4QiyV5Xab4YhQ1AM120z8mtbFJ/hbgb2+w4nO\n6LQu36iC20zNqaXliOX84eqQiKi2+eouPuf6jWcF4st+pWNep1ZZNuc8m4rI\nNeX3KM/tFZMsBSEyhxhKWkXxGrcKIdrWNf6BVf1iUQNhLNoAmMJe4pdjxcGX\nYW4kXt8MDL6tiXDEGwaFLDhP/EWm/eJsoPFH0nb8HLHR/YRaQfxOL1HGp7HB\nNxRq\r\n=VtwI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6ecfjXRvgvMjpxwSwGSLV6XGWTV0AcWUy0x6+cMLzPAiEA9tSfWWZ6RW30qaTDj6BmzWe+oDE5wr4Gqn/hxNo7JCU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592509038913_1592509046280_0.5942821894948875"},"_hasShrinkwrap":false},"1.1.0-next.1592509562677":{"name":"playwright","version":"1.1.0-next.1592509562677","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592509562677","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-inxGP6Fg5z5Ym2JcT9Rnx5LCXVQGbTReuwQgjH1HkwughT34Z4b076lB6ZkVHTwl4sPprFFennN9UlBJQA+jmg==","shasum":"521bc667e67e207abd4dedfbc9967021f9e0f535","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592509562677.tgz","fileCount":96,"unpackedSize":1561761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe68SECRA9TVsSAnZWagAAmTUP/iQa/UQw0WMppTeYXZzb\nRUfq/xJ8JB97F4CtouNG/+LbJUBQcm9MYBuF4mwkcSiJvGyFFW8NaNyf2vW8\ndSjbrCduuDA5mV7fyt+wJxFKH3nq6uI+kq6T8B8uVxvMpJZ1B8/DSb2yTnJE\nUAoif32njFiXpUIMnI/jOOIlFCBjz6RJCWbq4vVwkFRmRZP4VIFtea9KyUxq\nmy6Zr2twR3oc/q/NB2LA89mVrbO3zMTcE4QA3CwipugRDCs8qedVApUZB8No\nNOiMiQI6RgFZGIa8y++TGCCnF7Joda37tyiwV+Cq5fAWB2mWlVm4avzhuc6n\nk3NDiLOuWPvQDj+AyzPvjzWBMjA+wbvBWikthcDTejM2IP+9UBbafHOGF3XN\n+QhMctO/ttZBU5U1PXoOJuOYFd947kJkCeFNyEaKvjqQRYzhgI6yenAohaG6\nG1JXt8adGVCyZL7KVx1PcLrSHwLZa7vT5PDFj6vO74knwiAzp6FKKGSulE3K\naSs88lTBWpFrakgWVRFZfHwHvqgymn/OkDzpdKKryBaaKPig9sMGqRQVZO2T\n31lugR2Cq8evG16eHxwJ1Aqvw3F1pu+A2Cfh7J+DX8BLF1l7nEC3zkDjycXM\nU2VfUes3683xXfH80P3F3fanGOC9oItFXIa+Kf8oZqfx49cnmEcfz0xfx2z+\nGKgJ\r\n=4Jl9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDViu4QjKhK6cy8VJjBD1ikKZ/B7i4tBSGeJvd77cEInAiEAyNXIoHWtW1URDl/0jXbWMCGSj6E0IXqX0To1cfM4jH8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592509562677_1592509571535_0.5528570313847303"},"_hasShrinkwrap":false},"1.1.0-next.1592515660377":{"name":"playwright","version":"1.1.0-next.1592515660377","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592515660377","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-l5VaOIq+bgk+dfh77aaxqBdgTPFgWiHP5RIs1u2vvUVX+VexvgkOQy86CVQaI0s6h9Al/WU9+GQGMOv82aRRig==","shasum":"5dce478efc8a53a0b2d52c9fcac52011e8467e87","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592515660377.tgz","fileCount":96,"unpackedSize":1561761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe69xUCRA9TVsSAnZWagAAOCMQAJuHHhSQolkbe9hm2bwy\npGYVtePFOv0SQnJOJ6M33QI8bZGWGGXU2jXbSQddDyMpFHUDXKvnj4zLvpUx\nJMV96JmU/FX9EWciOfyI1+j2rdRRMYnF6PA17NbUZQEV7UCh0Y79iez/dOr5\n+N6d4Mg4+Gh9NxjfXU2IZSacNMz8DCYg/mZ1tlUGM5+wesSo6fNbtEMkVMti\nLY5J5PBDILGd8xK1PemnaF3Ryb+DPf8/64CV5I7h6pX7d2VxK3e7U1osteu2\nvBIRX0NEoyeT5wJDyXPVT1UzZcCgoi73aqGgJIBxaIPzs/UDoxRsmarealSn\nET6DlWIgSMBuDwuSOzJ2b1dgtz/g3+PuCB0uxcnv0t1f8W+tRyNd4vfA1l4/\npuZWN/+caoKxHfvcJaD7ZEtTUPJGz1XH7E/9G50ZbMSYL19Y3wqXG/I5cP7r\nC3oeImOnIRHAe05E/3k8DZO46PRGgCBQYHKbc+yN4w09d2zY/BwmyRLHdXmV\nw+TgEgedJsjbQUVm+MWegda2Dt+CxcWE0d3ELv6n2excwD+aPoG/gmJf433h\n16csKVDB3kG4XxTjwJFKuhYgx4LYOYJv9wfgTchIBGlVhoElZglUcXp+NoWc\nRuXWbdgadV7oIqQi5+C+Wa1TocJcI4UhZyTqTuMMM9GqAKfbQxjrs1F0Eu4U\n77fq\r\n=0uTi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWpCk5Gr05B7tnIy+IEqkST3NDCHYfiMW8/QqOhc51WQIhAP4kkN1jmutW1HKWidm0ufAeG42x9r6pbARZMXOICnML"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592515660377_1592515667426_0.5207315930419212"},"_hasShrinkwrap":false},"1.1.0-next.1592517988859":{"name":"playwright","version":"1.1.0-next.1592517988859","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592517988859","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-KtXjP4rdvnno+KIxIJ4bdC3HZ+oRQDJL11TbhXZxVOqLJH6+i8DrB31DNnHdA4eBU0cgwBhr+XZ1+Q6a34mEGw==","shasum":"d1db65046b37c563bdf3bc3f75313a9bb0303e86","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592517988859.tgz","fileCount":96,"unpackedSize":1561769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6+VtCRA9TVsSAnZWagAAlZcP/j5dvZADHV8BHFiji8YE\ntxF7Q0OUvOc0vCZtUoiVf9v5vKfr4zfB56beY8eOewOHMvgifvGaECd+lPCD\njhB4J0SRD11Nav1qGI0TGS9lIvPM1MnGIJzPYGV1Luo1ds9VDOHUUalikdls\nMhAg7tB5QS2oHgzTmuI8IaWxQsIbcOzH7fo0vCuss5D1KVLaPsSSuOR4jfQ3\nY13IhqW0ZLsfVn4NYUF5ubSas2mE05agdkKCWT7gx87Cgf8B/sUEEYGBfamW\noqTgX104k+pcLKnwoiUKS3Z93tClBu3ZO3UCctTeMk4/VR2tqJmo7X56x3Q8\nvh42zcHeljYu9z9phBHBcJkcxhPPSwI67RDNcuD7YMJh/z5t0ULiDPAU06MC\n64e1j9AAvheEZBOqs+X06EdAPyAPvj3zCFaFh0xnBDh69DgxE/N/e47DSU2k\nNQYswOPPE9vwP6gjzMg3OF6xC0To6Zokm3PJ8Ok6fwxM7WRHXpzpPeTI50vf\nI7Lx3UMbNX+VyBvUtCXDNntbTG7VgI0Q1QCiiFfWBFtKvPaRWsPsNDWtTJnv\nqE2DOo7FzdymQSDd1kXv4mvgMQ4PWnw13eucYOb341II7gqPmjpSDkGeNxz0\nBSZqyEWKilzisdxoebYJZMrTc/brW8cAj7iuUJIgF2r/RXQInf2yS9SiTKfB\n4ZSp\r\n=TM/M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlqDHJ8J+5q0ZWY+mx1TBFZMWAeJR4PkJVro+KOdxbYAiEA4vIa82AqbJfolp/8iFWiKuJdV2dnnCrMRUIYro0O7lU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592517988859_1592517996844_0.9478185582622436"},"_hasShrinkwrap":false},"1.1.0-next.1592520571134":{"name":"playwright","version":"1.1.0-next.1592520571134","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592520571134","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0HEYt6cS0uO8o7YyFVmca0zEkmUdyMXSIU2RCHxIt7BwrW4DXcTJrMYACPQVVyQwqoa8j0h81w9EGubHTV1DGQ==","shasum":"2c3ddb4418deb1f2c12fb7dd270d0fcf36f5f822","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592520571134.tgz","fileCount":96,"unpackedSize":1561769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6++ECRA9TVsSAnZWagAAO54P/i0iNRamIPRQEVhV9uW0\npxASAYez8jDIXxrAR/8yf4g03fNAC3xTcFdaGOz9U/oqpVQ9POzmGOX5Th37\ndaQQjc9jm8yUSmAe8ficmjFNBqhIhuvo34GE+BDFGLFIvPM4uCQ19bqJ454x\nOam1WxpBVJ2cqHj4/foIclA62AAWDoAj9voWu5F+P1BGoy0YnoQnxaPIMP/S\n3n/bso3FPYnrjwPAZt2aVb41L1KJ6QJFiZexJIeD1I8DHoPXsXpeT8b6IZYI\n46Y1/p3IHhkmxVr0IsIm+qFRzE/9pO1dC+3A7xK8ovAu6ixJH8YSCR4WEelN\nvR7yIm4fNxS9cMJo03U7U2dj1L4SeFM3LQQ6gu+kKYrN0PaBRI/HAv7omO1s\nwbvf74Xvr3VC8L2a1QAyNsSae9sP8MNPoiLxmXT5Q2yY+0n8sg4ekN8Q4M+T\n1H5Lr/VT1FjIvzeAr6qsGL1DWe80QcMPWXZVGNeHKpvgS5SRAGycg7vOOm0F\nUNKPScd9MrzXIvTj3Q1CwOil7ho1Ptbn/V3NUQITNM5G3Sh9KK0oB2rzE+21\nv8WIbttgCV5WlSZ6TyEn8xgCBIQtmnFK9S9pk/O8iAGzqDb8SGUeq7GnPWMs\nRHuwDVIlfDkVSol/yoHPiklgG6pFjjfCCttobSQx6gSUf2wN4Vx+t5qbVg3F\nhah8\r\n=xevw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOpsWlt6U9xwsmAimSqOxzwipBqOAmnwFSgf0CtTTWCQIgAZEkWorfi2DdegqkUpl601X5AFm31eVESx5Fw99aoNU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592520571134_1592520579390_0.1269693447155691"},"_hasShrinkwrap":false},"1.1.0-next.1592525598609":{"name":"playwright","version":"1.1.0-next.1592525598609","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592525598609","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mqvhUO6hAAZHXJpU3jNStHVridCF5mU90UM2eF/+XlXbzXGM37CTleyrvg3DUtFbKMt/PhkAgpXpqAmUIbwBew==","shasum":"8a9e19fd0c634fb70a540409c0b184a6a05e8de5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592525598609.tgz","fileCount":96,"unpackedSize":1561769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7AMnCRA9TVsSAnZWagAAHjUQAJtxAHx5myxwO7R9EIz0\nUdPxXJNwjOC/0IRmEuWNpNj2ZtzQgisTom0lDIZh4UlBTrIMl7A6tCndz9oL\n+f50E0LXhO5hH+wYJPY+S5Vx0FijyYuSGhZDdsSiXKZByOXzYhmIPuTCPQgm\n1/BdsjgViE4fHVeF8cC5DgOx7iLEDvG6lxgqxzrgHuLqeO9Japn4+AfUE5iH\n5KoNYH6Erl8l5g0mwWfFAM/8bzKg92ZxT6CFFTtuUMtz1xYkOlnMLLh8daRr\ntwbWUEq7XcOddQobjtMNdBN48MVvQfi13a4mbUfdNUg26nsLjHsWbIxHGBbz\nrZFBynyQn/U+jrQkEvoN3sWgZyT3hJAb1LHiK0XcuV0rTCzZq3r1OyInE7zO\nC4XS4aWtAhsBsn6wqpFJj2j6QKIqr4GNBLl+cldyubqgqEd5IbYxrNmVYL4i\nCp21OGJbGyXWiZgtjb5HOn/RN/LsIEGU1y+lQ2YObfdsctjd0d3lsEkwsBkD\n7vI1QgNo9WTGQZBeV6IYGfiQAQWoDgmB5KLcS7bLSH16JCVmGHI8ULK4Iz6H\nycC9qTZDbJU/RmLlp0eyEDq9rdKWllHDWAPFDh7IQ0hS+YbOQxXdazpOqEmV\nCU/fGD1kUK32mUjShYzJ8rtPe+HhpOGzNclU366jp7IubW1JPT5KuMhkLu2h\nD3H5\r\n=OTN+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEvHPc7j+GF4cy571hPSJCdsQytztoGx2Dl7xXgRDpAAiEAsVMT16C5RT88yN3vB7tkBvZRPIM+vYXaAoV9VhEZW8g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592525598609_1592525607001_0.8335765054923177"},"_hasShrinkwrap":false},"1.1.0-next.1592525870853":{"name":"playwright","version":"1.1.0-next.1592525870853","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592525870853","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Bt6xXyxgi02Eg56D5hDaeMlD5MeFM2zGSq4A+Y1WHPTzkyffjYeh2LghP7aHm0qP6rlbO+K15OAXXnz+NCnvkg==","shasum":"7dcebd4d6c5ffad0ef3a77d0a6f1a3a2e525cd54","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592525870853.tgz","fileCount":96,"unpackedSize":1562682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7AQ4CRA9TVsSAnZWagAA3FkP/3TYiwUMYy6itJJ/eMyJ\nDR6eehH+tjAgQHnDPN2lu89tWnvo/g99tM3ZevvnHnqj8cTE+4FklZFoJYG/\nojMR89SdadNlx+DQXU+cbhE9MqVIU3OolGysTKhNO14zWpNzxnyDPXltkUxo\nlOSsj4Rxz0QPWw9tOyr7Azi/aQ0JeinD8jbAMA6ix/JOuBX3GCopY6/mniwV\nV8v0UBqjmXa2cnnMuDqcI8HGrQlahW9X4t2GXKjbup1eEXdXLRESP195a6KJ\nXCdlzOuSGWolZDvhc8qOD32j92WJskNfCOewfR7QWwnIFARUYZtVT79m6Hwa\nE4PgSwjiUuJF1lkiHMbDtjlrarFoWiUXRjL47C/5XilEdwj4iINVr+oJkXeE\nkuwgOy3KFAuqb5wRYoCtgz42+RWZv1DhXRZh3k4NsuOGRd7B0pohuPQUU4AT\nATTecK4hRVr7cZKY1zSFsgUQLM7wiLfp/zoJMCkm7FVe3eVSOzGQr2FuEWwz\nTKmxS4vRno1rkOnU+hu6NoxJZPYhvCL9EtxbyI02OA2Ue00Vp8ClS2tqj/xf\nhL8b0vDaiG+HuToIoCn3a7qR2yYibkS+Pm1Q0KLlXEAEFKHzd4XidyTlUXFd\nRrGiznXAGjx2sFUe+5Rb9dhzNNMvGG6czIWTR7kqjByuIN/ekNVZQIJ66LMY\nYrQG\r\n=Vu+D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvqO9eMBOEQqFmskCMTyPB0v0ZTCb/2xyY8CWEWJTnUAiBvUFQmSYHUHc4EAsB122305+B8uGVnb0GNbpJGhNb2mw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592525870853_1592525879898_0.21726347999768247"},"_hasShrinkwrap":false},"1.1.0-next.1592528914165":{"name":"playwright","version":"1.1.0-next.1592528914165","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592528914165","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-toLFE1lDAWVTBWbwDLQhvsgZ0o3Hbm6K/CrWmblomH0XXKcQc0uQPMUfLkHFEW+d4E5dqVd0+Af1rr5zZKMRnA==","shasum":"ad86e5ed368969db3b7ff7ce07676aa31a2a60c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592528914165.tgz","fileCount":96,"unpackedSize":1562682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7BAYCRA9TVsSAnZWagAAFNUQAIIGuezMU/svjm2cjCLr\nJaZXPEn2MMTV/ycUG2lGWT4USrtB1KbptbXUf0XKDD/a+lpxQfAXvlj74K1Y\ni1XMd9K6tnP/KdcQKqJDkwRzssR7UUbW6hlPaFD9DbaarqFrSVLmaoHa4C1Q\nzFhnJh4SvdULpFJUrLEgrb+mqLiImiLplBjxjG27FxpFQ4sr8C1SrJ+/mcpe\nFQ8+XavkC5FvKKrj2vM7PuNUL2n/IvyStXKF1iGQxNCGPsVub56OiUHeKB6d\nWCvArdWNYs+qffUjE0UzR68nSCOliko2NRHWPgRp5tTA7q2gR5fXL6tINGNg\n1sBonN6U+5+ezaQ+8I50PvY52yZYT1plzms8LiUjgfvaA3OBBtswcvmkonXT\nbgH3ZwdE+UMWccrk46QIcImB2zcvJ6asng4HyhJkh1oviA6CrgcKfJMAaS2H\nd3YEN1/NXqua+mn79GUhRaN2tPiWzp7mJlKVEW2tEEEkQJ0IcMuEKIP5IEB0\nwJOgfb8s51Fmpex9CZx/XB5X9AyoNPPq9VEP39NxFjaDqQBD0vhbw8koa6hX\n9ExcOxW69KE7TVtANEN3Ab4DFWgckGSQcvN6hD8J2IAWT1dgIFZNhHthZ/36\naKz2gpe5MiS1wueVumxjkoSKj6R4eiwBY6uDSvolkeCdVvVNojb2cIWgxI54\nwHix\r\n=dh9a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGCImJIImj6czW2jot9slnVB5hDMiuTzh2ukymB8VCI7AiEA0stgGS3jnuokriPw+jnzjRUyavQG4uf1DIKLYrMjiRg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592528914165_1592528919986_0.3757792030169651"},"_hasShrinkwrap":false},"1.1.0-next.1592529229564":{"name":"playwright","version":"1.1.0-next.1592529229564","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592529229564","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-IcxPAA7JUjeq3S04d2AdNgOR5/4v0xLySdm9JQl8LIDKTc9QMcbKMLW2ev8IunoN3etEKDK3N95vZNDlslUZcQ==","shasum":"44fb6390761bd047ced6cf71dc88aa556d34f3af","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592529229564.tgz","fileCount":96,"unpackedSize":1562682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7BFVCRA9TVsSAnZWagAAMOUP/AqY2w3i54zhugNwkT9A\nqZkrPBnJWBExD/d/eaADyJgl71Nlv/vLQ9hV/xYmTFBbhXOz2HQNA64rtkXq\n984fvSjpcXESF5Y1jlB57aHNpcas8j7t4OH8LJNEubcSlk66yluwXq+/lyjN\niSsVMtnkZRkwUw7WUmurlkWlODByvroRFNokGJhDXomxIpE7VNSCeUM6WP/n\nSPyC+P4dtdHvuYUKncIBOmeXYjBLd6F994qknKEQYqy/pdq4+QggKWQzp1dH\nu0a4K0x6JKcUHet8rXgm8aZh98aiu0NQc3cIBRzMlzQnAzWJZjTKu/anCDN6\nHS7xjLRJhFPjEuLvk//5NI8oQxyUAfTaUpk2Liw+qU/n00G0TvpVFls9IzvE\nK4xYGFMuzX7orMcZsVDxV65xM6oOC17rF4X5ejYzqh9d0vOCV2WgGXzrInsl\nyixnL7xUCs5wUBdqT6U4I192atNhZALLP88kBAQjj8dmU7EZRNKh4kC1rimD\nzGyNwFtDKzBS6yNqFCb/N/1LHVrTxqNALOztL5MJ8QweKXU/cCtzy/AbJSNo\n8Bgw+/kvOA0IJEYAC/3Y7ON/8uFmyYwXwYCMCItsPRwWFpRzNPQvzNTkpMhU\n8zYqLsR563KppycSMzm2QsgjSmbQm6s+U9ttyVMPl+v9JI6WbUafsmD9ROE9\nfBdp\r\n=O8RW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC3Hna9jnhOUBQzhti6AtzSMk3XvzQNxO6TUxp+JCPdnAiBaRQ+SDc6Igff7FqLmc/Pml5GeM0UfHvWG+2YaGwseng=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592529229564_1592529237006_0.4830441232771103"},"_hasShrinkwrap":false},"1.1.0-next.1592530230294":{"name":"playwright","version":"1.1.0-next.1592530230294","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592530230294","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LrYK9pIYybOEuPkI2Jv56gU84HjSP8QUXuL34VQlfFUQVFRQAdtZJ9cLldU6fpxryH8j+K2VmVI3p7eDZ1omoQ==","shasum":"4b92d73801f351374ec07ade980eeabe936df993","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592530230294.tgz","fileCount":96,"unpackedSize":1562682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7BU+CRA9TVsSAnZWagAAVUcP/j9xnOUTD/txdGknMpWG\np9yqEgRaDcGmw8vVpjQV0H4SM0cNP9fGVkj19lRdfOgoAhxMvxfpFvzHJthJ\nkKh7NucTqp0Ma6boB5fh0v5sU/Z8stDfHkyVCIG5Res76PPF7aqjiHIE8u2i\nnozQcAv4BSzD0DFJYHvBCBUVP2Aq67KFBN0TcuPJcGa4/S7jOpO0JnHvzD7W\n1xV9sdsF4xy3J9CLudJGESoJV9KJBiCqpuGOA4fsqfSsiWLJ7nDaSRirSqkP\nsflKAKRuJQ/fRxqBluBvTdjW2uQxoe116rgJCepzDzVgltRVm6EgYDDgqwXj\n1ntqODAYSZMfh6cO3RWS+z0ft131c/+Fr1SAfMxaSlxsGhjQj7gs4Pqnqebj\na06tPGLBoC3I8r7Zm3n1ej9EkpU9GtBZeHVijoxBGwMjLs3OdhAh28DygUGR\nW7G+aJAQ3WC0F7HKn6YUnBZnP115urlJyhOGz3SiNBkmnbOgu85lc6NXSc4D\nkBWAKx9QxPjr6lXtlw4EVK/BU/I74IrFqWZO4667EXsRcaL1fQ21R6OEij2e\nz8TTQKyhDmAw3Uq/Q7u6XUIG9nMfxH3Az86LFkZQQRLrnpnFR4ouQtGbgXW5\nsPSBsBJa5Mgj3jIziq4IsSTrb/aBlZ3cvkrY4ZG0A2YOQm75dd9YZgIkgSrs\n5wbI\r\n=J4ok\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrd9NTmypozznYn22cLsWcyxnyukilo1CGjPP0/2kkBwIhAKn+XWgLzcaHnbpvahDIei2BKAARk0NGmYLn4H7WOTwF"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592530230294_1592530237820_0.1838032924430928"},"_hasShrinkwrap":false},"1.1.0-next.1592587572419":{"name":"playwright","version":"1.1.0-next.1592587572419","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592587572419","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-a54/HJ3o7TNEsYhkPDly/MYxRe66tWSU2MN9WU4PsFxpBAn8V68yP/GHT4z+OG9zQp4kABrjMet68Epnoj8Q6Q==","shasum":"c60741481f37c1ce2f69ae286e9a22e6c5a985a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592587572419.tgz","fileCount":96,"unpackedSize":1562682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7PU8CRA9TVsSAnZWagAA/oMP/RradkxII8pIrgi29yoo\njF2OeneQJHSxuZzA/De1Xv8rVeKGzVjV3jWUxdRm4kb3oLbUga5Qcli14VRX\ncgLqVJJS30qgBsXONL3rTz6zf7XG0u/d8uXXlwDeHTJzT0keDrUEhoOe9180\nQiu+6rUlV6Yz5vJ9mlCWtX930BWdiF1vb0HyUsI6VagCapcXKaSTFW3JmOLq\nsWcAeRRVtgEtSHWolRIQV9mWsg76271SaWdPyfIoU+RSCc1RZa1EX/5c5E9e\nSYqSw3qJoS4zqugYmMRUH4JUK/eC5bcaqBOND5TTlIj5cBsamLhyRQTjXxIS\nK6HPV5gw8Np6FL8zUP6rIXvlYwykCx2nh/JF1XP7AaRA2tVt671PG5bBIXGc\nIpBK4LL3//kdMa9NVLemhXAOkIL4hcyATnOBstL7bNF6cMlNmsJRr/3rha9O\nKGSXlg79fWGCfVmMDrbgKsHi2w6KZu8jmW+pqZWFz2kbxAwJaP3iQ0ESV7Ag\nZbTu8yF9wvPT4fj4qdX6oOtqQ0RIeah+1oHL848rhnnZinV2QkTb7+oe83VQ\nU/Kk1E4v2ifTV4u4xqyIfLWp3j35wgNFDJJwWN29hn1bpVT+oEKPiBaIeRyx\nUiIHPaRD60/609EW9x01/cTbeKlr67QYi0FYt6Bk+d61Pet91xfANzqTIajD\nkzfD\r\n=KHzN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeQRkIe0LHm/JS/oc9BGn4GT3zxdlCpKWJrwowOJMhsAiApWFlnmZMQGFc+p5OvxelVGYi2tsaW93lKSGUism+S4Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592587572419_1592587580327_0.7892770801858695"},"_hasShrinkwrap":false},"1.1.0-next.1592588169182":{"name":"playwright","version":"1.1.0-next.1592588169182","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592588169182","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YbcPfLSGRSoo7lB2WqXI6oOZm9rjse/3lLm+HZZyVEHJ7FB8y19HXAEgZChUgSfpzHs/iDMlUphWMWmXir817w==","shasum":"efd19ff36be6ea29558e0591975428bac70414d7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592588169182.tgz","fileCount":96,"unpackedSize":1562682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7PeRCRA9TVsSAnZWagAAxWIP/1WhEXHxOL6o4a2Fiyap\nzh52nP3pWG2WbP8Qn+Zq0ssr9JvTdMk8ajuKtEa4AxEoHX4CO5NZ7PO6T4aw\nyo0sX8GDWkiDS1r7IFFsKHvuz5/kAwxTEhpm0T9bN93cI7ejwUIN91eJXtuS\nGPrR0fDewg/oGZ4e0EIISd9mePs3HwxkrxQ860X4m05dwWUp6M42RP8deDX9\ntCeoN+K8X8BZmkDmRP90AkXtKYh7vI8LMCiEd7swcatjOs1FRyMZquJE9L4S\n4QdSqpI4D0EehM+Yac9zIW5SAyooOOOsA2hDRiL7ug8Uprf3I+djhDv57WKp\nVE+6M+measJrCKLX3iuaeoGXtaGL5BtkFXOqe19tA5cxZ3LZKN5jS3bea7Ua\nsaZp9jyxh9kFRtHyT8M6W6bywJh2vDFsO+4F58Dfi0kQWAA6amxXdFimuGyh\npMHONfXj5sBOH0Y1fl86kiBrAD+CNWCg1TWWVLO4CsY8DWY1JDBOzfoAq/nC\nNybfU2i6oa1iY2MHda/jrtD4dTuOC6Mib8fHFS24bqy0bPCnmNsiAsXrFl30\n78Yrc3aCjMrpS7kC4nLxeW+h53GKD7Jawi8OEtWnxSqBE6iSy75uN7V0xTFC\no41HczPOIBvq0wrnPYpHiPRydjKx6v2pBB1unGM6FtnwNaeqcTKaRCi+SOrU\ntqj4\r\n=JZxY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxngy4XzuSErP1aHtvyV9HdP2Rq1J9kAPPQsObofSegAiEAyTW2Z6l1j9XXrk0o0lsP+q+Ads3mbFRLjjNWp+NpdjQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592588169182_1592588177294_0.06911370139494766"},"_hasShrinkwrap":false},"1.1.0-next.1592603145359":{"name":"playwright","version":"1.1.0-next.1592603145359","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592603145359","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dyNhndgSiUYjoDeg4tegF8Py4UDScwmTrJSbdoSx50wyFWVCLoqxiLCDIYytdBo8NHDxOmTSllQZvRHJrb3VEA==","shasum":"a21131d62453ad7a4ef646de856e7fb3ba2b716d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592603145359.tgz","fileCount":96,"unpackedSize":1562682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7TIRCRA9TVsSAnZWagAA0swP/RRh+xKX5T8AOe+b6sbs\nPcFzxSydKH03OZxzrPVZ5lqwDbDmQtEs9pdX+abPZdfz8Z/FpAL0i/oBCWql\n0PWwclFmqA/MaboKGAvLiyQG0/WaORmmsHV8s3SRi8vps3o+W3KQUqXAUEyJ\nkFCWdm8j/gcjkDMfA8vIpC2SuQ9nPuxe28w896ste5ey3Fh+qwr92AMxzbU2\nBXvwL5MjSIzgYIo4/BVqAxQyTR8SkHh6VxFotFvmHddet8SDfU/TGQeAsqdm\n+t2pbBtTanLazCDaFnMeDzbjy7W9ouN+T2fy23B6rbofJm5knR0Ncx+B6XBI\nKLdHmRws7jCvE9y4LT9j2OUF5o/MsHz9B28pkKqhTXWI40oFzxlmxtbD+f6E\nhGDEaeh+azUnRAUuvvIlM2w462oM1gsTaZKap/0Mtdj8LDqCXbWU1EWPBYL4\nZ2iRvhXREh3EcYMcU56ty4cCng7Pon78M0tDvKQJdrzaO6loAUJj0tB8ojrN\nNkdPM8O/g3f5hz10Z816f3OHt6XlPmkIO7Q7hSFF6rvFfmvVhKrgIMkUHG4z\n6u77a4SBzWuls+5G8guFYpkFQeACJU5NGNYcftqPdH3WzXSxku0Sk/L3+YHn\nJUytl8kjwTrFTtqs0gXDMgyrRsVd/ky41Urb9N+k92AAkxyALRGUxBN7mCPF\ngIVI\r\n=ZMMP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMsj/zwCJ/NteN73btIngl61GiTE1QTBk8Ihy6E4FQPwIhAMMhbcUVGo1Mv1XqyUPi7I4vN8iQH6aWMALVwWzk+TxZ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592603145359_1592603153169_0.3738260329532965"},"_hasShrinkwrap":false},"1.1.0-next.1592609807802":{"name":"playwright","version":"1.1.0-next.1592609807802","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592609807802","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UcKI65zC/srxCOp04zVjv6lYGhxCIUKfCX27v8lGqYRP4DTenBf9GC9/X4Al/3z36GrBttLVXMe+SD5yk/Nsqw==","shasum":"6edad686766779cc251d82346351137e53442da7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592609807802.tgz","fileCount":96,"unpackedSize":1562682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7UwYCRA9TVsSAnZWagAA138P/jOrEkaWFIJeuUOVubdA\n2q+UaKXLJTX01IgRP8l5WK3nxhIk6aWZO47R2yu0NXKR6/C9kfpf1P7U9OxH\nElg+5hudRSA9ikc6BEsrV43TWObGP2N9DUyWfEGwlvx6sr2qukXxYFbrQiyA\nhFFpdv2u3p6doso2cniN/xYWCcfHntEbWWgZyhsgSaOYmvW4zOzppUeFAwx2\nTFrDiR8xyaldVuIhsx2VOVtHhHBS0pLzmgBKdbNXQb9sLMbEH3FLeHBpCIRX\nAydion0V9XkjN8Q+n8CYiUlj970msFjQMKgYx95ARO1uCDXqXYBYG43Oau6a\ntu/iTmTKmzjU6oX+MMkn2UfI9L2hV+FXdyOxEKzw2Z9BwfMnCTbfHPRUfX++\nGsLei+jd/cmsz+7syMaRHa1AmQ3DrSLT7Exd36QDQJZnZpbMTnS6TzZ1QLr9\nq5FUoeWY3mW3l8BSbdxi5xS+8krkcHsLtkmEzgSw0TjIIqlsaByKy4WBOYAh\n5G4JkavxxZ25hYSZD/ohXxSFwIDl5YmqIowfhoP3hGxBrJtNhSsrmNVgch25\nyG6lW3pfv5ZtqRuEckXcdM+5it3/HinYGEDY78Eq9ZpnPJtpO3YQ9ls/BeDI\nb+huD1u4sVxzOkItvBsbmDTWG75RTTMTJ+Ir+Y6kuvgAeX3Xi5aU4NS0yoUM\nUJ5m\r\n=lWIE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFFCmI211THpraSq8OXUQ761chVNWZ5J5xAfpgQAu+1cAiEAliE878mIrIyhRiFIO0BL1Pmr0I/XodY6022LQ1u1I14="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592609807802_1592609815555_0.7827758103939171"},"_hasShrinkwrap":false},"1.1.0-next.1592612194353":{"name":"playwright","version":"1.1.0-next.1592612194353","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592612194353","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BKpIhM2eZ+V/m5CnWcOkItlwor2huoirqK9G1xE8p3HSEe5RwEp9g97IE5jASjQSe05MtjMOuhkGnYSi2xHxFg==","shasum":"ed66139aea49644851a1478fa0e0de483347cb27","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592612194353.tgz","fileCount":96,"unpackedSize":1564481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7VVqCRA9TVsSAnZWagAAPGwP/30pchGbsdJehz5lPUss\nY0OfQO/WhTR+Aof4G6NySV3Va1lSOxvW7RMv/svDWrzx/fRvwddlQa5DTn8s\ncSCxCF4gnQlakDyhECzqDd3+3lNUFAp3PzPLWi1GHEBQ/xOiX+utczv6aP+g\n+OZmtnB0gHLbYSNZBChQ+gruddQWFNEz0BU8dQl+6JvLAYE93fCVyGIEyd4r\ndqLZRsoCh/S+JwSUS2zrL+i+02Tzkcs8zLfYALzaVnqOdV6Hyx20B53bx7+D\ngISadVTzFyaWSR/EZxZUYG5UmGlIAIlBvmFQN6LrZSVCkzpwaT6yiARJQmnk\n1K3/rolWOm6ie9+QGYs5zfKqgMacx6oNFJ9pVJm8m2Fq4KZC3c5GD1+2p0Mc\nrs37zcyGP1fi0Y/bIEiDs6P+mi0UR20ctBAj0ZkXmmd1A65LP45GNg2cXnPV\nTTwF+K/ooTkc1RPI4V3jNWjUVTv5lCCSyvz6x+ZyMutuME01DOo/SYHXKlO8\nbcSA9wramOLTm23mULo/hzyw4Q9FwODB1ayTzj+lbBgUwk1MIDKzbd6qQE7E\n7yVsKCcfZ1Ty2RJrgzgn6bEu6ob1iBCt2XXlUtS+7KV0ejHkCvSlxHCrmERm\nhDA6yTHdKBAfDvKMIi8Uugr4uZ62biy/j16+4UU7LwRIsq86cHjvdpxAPR7z\nFS/W\r\n=qK57\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRh0ehR36T5O93yEBTQ27Op+KxMkvomg9flcfgjyf96gIhAICyUBpO816mzyzwmpt1ajLGB+2QgRf5/z1L558fjB8s"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592612194353_1592612201660_0.8979075214908072"},"_hasShrinkwrap":false},"1.1.0-next.1592711274618":{"name":"playwright","version":"1.1.0-next.1592711274618","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592711274618","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tmxOLFKgJVgRH4lP4OFDfCBieAzDajLsdkEJETTBzp+QCOIuPTrMAvfjxuf/A8AcTnFFctT+kX61HS69gQkGTQ==","shasum":"735d9af51d8c9bda8177eb5590bbce943cce6263","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592711274618.tgz","fileCount":96,"unpackedSize":1564481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7th1CRA9TVsSAnZWagAAiOcP/A3i19hoMLnB7Utejy1H\nrzniWKB0aJlBPIY6YKlV2qAIHxzN4LNL8UkX7mKD5xVF/0rY+kf3o0SwAZ+M\nJfxMGDbgl+LGwpyxufcZ17T+BWXMDcrwUTNymEwGkSaKJobtez1O0DHkmhtr\npaXu207c3dXN7Jnwf6x7YTNCFRld5FhmmXTz5FHjqJxTFdg3NuWREMu7IxU2\n4bqBqxj6ahKVhRX7ShgEdRBnkdknwjd/qPdaWveLAX5UdMl9D5MeMptJ4nAu\n9zaQmQXXLvUO5cHUS6xfufWKHXtVVjgcID6IXz79TZH4MuAv6z5v0UwrblIA\nXPYLMsipOBmRdxRnJd6oItNkglsy7nbZWldSpxjoz5xGUpYLVwC7D6pg9e/L\nTdSPY4uAhjKWKYFQmqZW9RXBxmjTiSm8OMitv1LnZbCmK374iD9w2a3wYlQm\nMJ1DGLtCUgkxbigzMh54x3we/DEmwkR7R9sy0AJ9bJBNTPgfPDrnAOY6AOSo\nD+Ev+tuWbfMtWu9zszO0Gd9gY47OWvG1Zd2GfOBFU8YKWLsFIdwNCb/RDJdd\nEW6/9z21vhwXNB4h1sTtM1Yu2YNYzxdqJV9GOc+mOw+wF+ZHpA4IywCm/Ts+\nVCR5fZiGUA6sjznlFRNZbN9X9xHtkY+AYw5U18yeH1kwDZ9lMIwYd9G8VG3H\nKtaG\r\n=1rYe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9t85L5APmoZfEnM0tfjC2RnU1KZOkr7iWQiOJqZhilAiB+mflKg3/Xdq/7h2MS8h5oinrqDj22wJZp5PlwwhK8DA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592711274618_1592711284701_0.7799206105271352"},"_hasShrinkwrap":false},"1.1.0-next.1592855469132":{"name":"playwright","version":"1.1.0-next.1592855469132","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592855469132","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-H5oqct5X8db+5WVQA/aWffamfBPva3ECzicryMYnVnlqYWy4YsgfY+rw7SNc8UnRd1LWgXtW/Vkg+11aP7KtGw==","shasum":"af3e16c1ad68070295550cbd6e88a5fba6cf42d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592855469132.tgz","fileCount":96,"unpackedSize":1564481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8Qu1CRA9TVsSAnZWagAAVdcP/3E0+3FF969FpTa3AHZ5\nSSYJtV6T6IrorTkiRpsu+fB3YBiRrAh7EqvyJTyldTPhHMUXl9hAMCT3Jtih\n7g5ufInFUBZeMY0ugk6CQCXYhGQQRKZx5OzahvcpF6KiJRP6sOglQKnn8Nt9\nIygvvMHI4H39bg4j5OiNrCLDCquKkQvl9O41x5yJ7Lo6AEJDWAyi80LEJfhK\nCjM1mw91z6cfuMzhjJOAtxx6qUU2Ow1PspLvoCr56pqJfZQ8MEwmbxWJcuHC\nIMHsIqo/TFhsAeOQbYX8ZZM1K6J7k+oPi+L9XnqkFJlZuI91X/cVL2OZi83y\nImk2cbPWqZLSEkEaZF8g2k319Ciz16olMapTvVHbkHBTryPfSdEWieqkBL9Y\ns+S6KMsSi8wi4s/L7i61S2ox+tolvQuoDcg+6Z43GsIMgsggMQXcFifUKNN5\nucPdTbLPSoixHt2GhYpco/cS8xFxCODLmMIK+Z8M8qcdVnUvnnF0vsmSu9Fu\nNRuvjs2VwKEq9/fadBC/Lq76qGK6ubId0y93eCGGbzwF0g3RvdAI09x+FrMH\nbppiOrwbHI0tCOL1+cdNJhHp0xUaeZOzpUlqVgjj1mZrv/MjOsiNZ0aA1iNt\nQQrKEJXniaYe7GZ79Tak36qK34Pfk3sx0t6Cv38K9JmynfG4G7KBgIwLuchK\n8mMK\r\n=DH8q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBx5d0DuxFBhu0kYokh72aaTxA2UKxxluTFj/TfQtrIPAiAClrGGv1mOP4QWihBH5OrBjO+TSJyJImoTgybC2O7scQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592855469132_1592855476752_0.2631510476046872"},"_hasShrinkwrap":false},"1.1.0-next.1592858871110":{"name":"playwright","version":"1.1.0-next.1592858871110","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592858871110","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YahNBI69u1KmYP2kprqvVO5/8ox8EqUjGQwriY1zVw8nJLX0xMyuDVEkPxF33dtpJtqdSyyaqV+ejzqAFxaDeg==","shasum":"213620a819feb9112f3fefcb6bed461cdecf0115","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592858871110.tgz","fileCount":96,"unpackedSize":1564481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8Rj+CRA9TVsSAnZWagAANsUP/Rl9k7J3yO/R+8p8Y+7K\nz2xghDNR1Kr17wI7cKTeBv9wnHPNayb84cw/V2gzKhI13HDW1Sg88qDbONVX\n1Z8bVP+7njN1GcZE2doOOUQvkGFO1j4dAGRpAQi5xKw2M3HAC2tZ0wGv8Pf0\nuxYkEX2SqrAB9rnRSlOXPJtL13dmhdDFELiJE8dwmZKZFKBPNm6b65eONloM\nIi5oC3vIRv5l2hII56/Y1/BSPEma7wJq+2oe5Ya/M0sr/H+FUzpPOw+3+G17\nLBeLNX/SkDCC9URV9Iw20X35lVCvbbOGAiMdVa8YdiM63dZDkwi4vJuiv/if\nXAPAGn3VvYiyzytX9tnLwGMdpP39viZbYX47uwtcj0t0jzVDgyZqvJikyy5q\n0A1NcX2OFUrqljou9ePNTr6O0jJUUYZuHFyQnxnuv8RfsdR++f09xARBBAo7\nTZcSW7Yhk3EWtapdwmt3+kT7r8VL+4vD7lBet50TUqj8oYG8otL2J/36j0NM\nNQ/1U59z8mxOlRTjT1kMYl+jxyQT6KyfHS+Hl4DbMFS1AVcn0fNlGbFrpeuS\nQgzswV0WDqrhVNNniub1XY5wDyHanU01j9pinpty8c/K99/qQwkhvNy5Amye\nr0xku4RzXFrSmW3nr0XtrUQrBqDTkKChir1P9pE3Sk3IJ+KUjwp9xibEHmB1\n8HB1\r\n=8jMx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCui/tVZcucLIZyeng8Dyd9xnqXAJs0iMnSRcQ/O/jAEAIhALPSE3rivWwk0bLtqaB3UdrIxG5osuDRDlKoZ38dAzi1"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592858871110_1592858877734_0.11078860719671435"},"_hasShrinkwrap":false},"1.1.0-next.1592859982878":{"name":"playwright","version":"1.1.0-next.1592859982878","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592859982878","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8jeQVsG3v3eGITIL5i9UrUJtFZW/BkjN5oI6cuWzX+nCp+FxK4PK4SJbuPTyQ0Y67YkonI4lyww8ZSMSqV9nuQ==","shasum":"9e8cbc085057724c1df7d430e7bc206366ebb93c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592859982878.tgz","fileCount":96,"unpackedSize":1564080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8R1WCRA9TVsSAnZWagAAjzUP/2sfZhU3iTXK0qsINSCU\njVdg3zabcVaBUd3HmfNVITHDRbxOV5xQoxiD4Vtl8f4bKl/z4DpWPxtWpqCl\nzQDqQzENKNqBQo1nW2B9ApzWH/3sZYsH7jC9zqWmkEnjlX+3YvWwUKgd6i4h\n4q+g6VUBbjpUcm22EGzdvEMpOlVlcMBfONkl4d9vLjHEpZ+5wLygOdQzuKQD\nBHBzNykmuGIu/clnuwhK9q8C7vQ3sAcepsdeMXlHBO4HB/O2uuzb5BGEDY9d\nabMkur6F0xKFoHFgo3qiwxrdfthDxsh8hSO6JPkgQ1uDk9rh79doIBKtQwkq\nzkknpl6K1rDrByQYhsUlvbahLDhqoK+K2K+ofL8tK2EY+uBs+GS3xcs79liQ\nlQbC/GFvsbkbb5y/jmsXTPv+jv5da8ImQ+VMaEgJo73IAUZlj7Rzr7VFaMeR\nh6yJcwzU9jpKpnukPdIXiLcGWqdmT/twODgqBC6BUH31s0lQqpRWSmAjB/Mw\nM42cGRoGPWSrO/mWKSOcFo4X7oIDLM2aQokvASEv+3gQRW1KtwbRP3s8j51t\nyllpre86CS6Uaev4L6/AETYJZ4lkbhQhHj66o9oHVSj5km6+X6Yq3myj2eWQ\nHyjJYHwhtOqZm7lb8DXChPbgitIwju4Dq1FPxAOq0EsCkuuKqkgh4QRCs6eA\nFmvE\r\n=OJiD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHwltk+Dq14oYflOfSBhasvDXuXZoRiLYzXopV8h1sXQCIQCElNvAQD395dq2TeXYLiyj4Z+NYb76KmcMiBdMgItrWA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592859982878_1592859990245_0.5524663181057072"},"_hasShrinkwrap":false},"1.1.0-next.1592862145864":{"name":"playwright","version":"1.1.0-next.1592862145864","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592862145864","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VRskdJuzn9ykCLtv2B4Iln57WDOLM0xQGWQDCYkamr55yver763Pom4fYHxL97zDFtR6gh93jwDeA9jom2Zk/g==","shasum":"92250f3362776c40a52daf58b7eefb22f9b513eb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592862145864.tgz","fileCount":96,"unpackedSize":1564080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8SXICRA9TVsSAnZWagAAAFoP+QBhhzEQsPjuI09Kkqm8\nohsCE4HQX7Mqkyw38gyGQNyAeMR2s1ERnmEQn5eW5+BV4pkMFcrntO24hYwS\nwyOU2Lo7u35M3Bw4nPzO6etCksaAUzwlCrjgsFLuezmf2xlBrml2Hcnc/6qz\nW++c+H8PgpUyfeg+42JCbwZsTJp2O1zdbUY93q+HxJbuAYZhehr5hd53wpl8\nal3zh/DFL+EXD0lfHzzRqHmHvFVdpeaZdixwf3N9NdBBpQUbPMceZ84cxdGm\noUX5LLhnsdS/vDig5Zn+gCJpmed4Wo2MKd5JG6FMWzeRSw2LoIxatE5SH6C/\nlmasKikgeN+9UBI2ophSko+SSOeK/hGOnoBSGLQuRbdh5aKO7zQBVfXQhHnz\niE69eyszYekZ3x/RDqOfzuCEHYmZk51UpNw/+tIuyAhbPd7m0ARg7R9PFqbM\n4T/BD46hwLYLBIAinr4XxHhtrqg1VY5Yy3fjWwjs5M99/IhHXxfbn2+WyTLz\nZw4I1nHM1Nx5V79S+a3xzXGNWg3Im7is/RQRrc0wohJvxDCVlKWlW5y3S2i+\nbWsO7ejomUGMmFhXwswg5NZkNfn9OODKDmfa2H+vr5k44YeRwU+AXFbIEbTD\nIY5+/3+ncPvTZQW7GJFd+MF1+xfl2n+aTix7h/LFl7R5EP59aD9ZhMvTaTFm\nsOdj\r\n=UPR4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBtppEf4DEv8akj6EwSwb4x7LtlWQo/UEl9E5jk2y6zwIhANSRGSUCTQI7WSIIoPcsB9ijO2l6T9EfF0rSbDT7CAau"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592862145864_1592862152303_0.23035417950317005"},"_hasShrinkwrap":false},"1.1.0-next.1592866569028":{"name":"playwright","version":"1.1.0-next.1592866569028","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592866569028","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YYVGK4eeBpcX66xT0GtLNSAmb3sfBDSRAUkEcT2rjRLeTPVPuYi1uDia3hVls9kNLdqGtyF3Ye5K3D0q+Sl6SA==","shasum":"b9356ba087ffc3f26df87a758c5b1f46c6a655f6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592866569028.tgz","fileCount":96,"unpackedSize":1564080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8TcQCRA9TVsSAnZWagAAipgP/A4K1qVLnTymN9mAIYPQ\nfjUKV1H7aqmk7N+9zMjfkR3xJUqIfJRWsrRIr2S4Y/wXyo3vUtYcZAP05+Q4\npO4fpRxlAA7W9yqsRMdARUL3WP0iNUHASPqBW5tr2gUaGCIP9Z94sRYtIhZo\n/PZe+Um0xsgB/XCISI987Z/Nms4Ygl47GBVE6Fjx+jNxNd+StgB9xDHEMeQX\n/gr02QexixELR52HKmRqblM+OgUOmw4Q6N1Pq6VUWXYsX/IQhLxdwlzVXXan\nBn9njJz7jG7BGRCGg4uPLhYbrPCfeHtjN30ZSW+vj/i8oC0aA3WnmxRjCLAv\nFf0DBqnGN3qJCl9Ua3+n4hrFSJbSNwe4JMQLzA0JBdEPT4dKUVvVsbMV5EdO\nZvEQ431npN7pzMDAwrE4JdalIZKmF+WBIHh+DtGsi640ERQbc5kSr5JSkHzq\njYnbKL2J8uk3sb73Z/TFmMRuDBC+9IN66hVFWcJImdjtHnxuOEptQhmm5M70\nBwDbgDB7KzloScBZQRreBvUU/x+zqeL/jWCbEcyaior8dPYWg9QIdGXM571m\nGjEHxrvkUbBnwsaDEBD2BBh/xwDUkzOZESYnV1fVQOIlFEUHKrMeXexLfyQz\nED5zHbIguxabSljiqiZFIA4b2Bfe5Swt0YiXE5JR2QMcZEjog9FLskTXkgIL\nFFZU\r\n=yAJU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFEdXa7mLDD0N4VW1Ieo7Jx/xygIKS601tFO/6txjPxAiAgq/gHeNG25K4LeYgnPI4X0SOR2vEC4Cug5rRARcxRFg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592866569028_1592866575501_0.767243457184577"},"_hasShrinkwrap":false},"1.1.0-next.1592866721115":{"name":"playwright","version":"1.1.0-next.1592866721115","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592866721115","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5n2UvDGgcPnxYRZKL4LLG91I4qO6SOoQlST8EYpv637Ej10iwkFHdKG1vnzOluSYe/N3y6g9SSHSG6xSGKZlcA==","shasum":"7371cfa90bea74a8449e763c8431bf4326930fbb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592866721115.tgz","fileCount":96,"unpackedSize":1564080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8TeoCRA9TVsSAnZWagAAFU8QAJeCTMdx0/snl81qNEvz\naWdNCHDCHEPz6+IgG/ttje1UUk+HIzCTrC+9Xy551jt95sScSWLCvv5CiZPF\nEv9Mog7+3AhcOnlZb24kba4d2OI/jJ2vK5glFUqlkZ2cup+89Fr+P9VbiVTp\nB90pnrEEXah1Kzwap/JMA8l+1n4ctbhYFQp0nDFbjfm1VxMnMQnpkUbStygv\nVeq2xYy2HYfA3Aa+PqmIXwojhn8F5rIidcE2UtR2P8DNfx5sFKzcwJ8Gkyim\n6DAtMc+e9T/6pRjfmvlAvKI7mGAmRMKJgyms2podXQxHa2hZn98q5FtA5Hv1\nvQ8TysjXz6BZZ9D1eZFUUhAHvapm/BQzEK9K8wMxBw+4nvRAYPV8+DuykwNP\nyJ+MZBt7MmFVDB/VEFeYO4Cautp4BPI5j3NMRaZtqQ/QzEdcPrImdjfiiSR/\nCzypHNJdJs8xFggXJNGdO9EsxOvxA4c2xeL0LYf4sqWphOu6smzxWIQcaB0y\n18vfxci4gA6C7OFx2FnQY93SG2SV2r7NMDN1cjcoF0EF1mYLSr4N7RA4L8tg\n8ktBvR4OIDrBOZURkOm5oQLTogXH1svt4dS4x22CAoAHtr6iWG2+EU6MlILa\n6yCBaA/AjOeCCO7aKyYzb545OExaAskm63u4OzgXVQgY1mwO5N123X2YB1NN\nlVLw\r\n=cRMn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqceTYsaCa6+TdX0OsgWU6fvvxmPyFbIb1M9gLBE/WxwIhAMeNMrF+GcaR5dmrfZ4H4tN0IXSCbYkW1Re9SAprAD6e"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592866721115_1592866727991_0.500757746379678"},"_hasShrinkwrap":false},"1.1.0-next.1592867221427":{"name":"playwright","version":"1.1.0-next.1592867221427","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592867221427","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OMt6YCpddeVTiWkxJ/j/ZxYHIKnfvp0pGV5taBrSfDsBknbqHr1LDCpNCjL7cIEr3TsgKn5Mxq25+yb/0MSCNw==","shasum":"cddaa04c47ee0721098ecfd185dd8706dbde96f6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592867221427.tgz","fileCount":96,"unpackedSize":1564080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8TmdCRA9TVsSAnZWagAAE+0QAICiZJHKb3HpW1iifodF\ncDe1EfJq9dpqYeWVh99SJE7seRUHUcElbI3g14upVNPtmlHL6mN43IHpFhOm\n34SsS55IDm0H7FyrTP6Kb4fjx72blK2OLMed9mcAwB02MYXaGTjafhPRHo7B\nX44qPY0GK5+9uLyUFqSjLI+IXv4PA/Dod/4Ixmyv/1K1hgwmTzEp6jLWmJWQ\nf7OvV15DDnUyL8SO/f3mPaWjNr91JgY88vpvlUk3qbxXaN5FLi0NA4whN/wq\n3ursvhKQ1qeh/1IHE8Qu3ka31oRrkrj+7InDTum0UYPVtC/P87q8Ntaw9mut\nXm+w2gJMO+xWt0TYBZVuSh/mT4waSW3lzb/gKwuhBNkukuZzxVf72gOZu8u7\nLYJZjoshFbRe8qclyWcyYTrkmoCljfSPD6lw1Xb24TmPjXrTN7mGHJmqUL/S\nSMx/2b276ZhUF5InbwD/P1bNpKE4Qklz7YLpDxEd2BnfgvLy4ZCr/wGmFeX0\nR+6M1+SZjDcfQvXyzLOOiZkUqiE0atY3Yf99+Hkbowv9BKYdGnFLu5RwpxHk\nLCFxYJj9kbdMHgtEDf3lzaPuo1POvFt5QSm13Hty/JaEDvpHSfoHkuffpFsm\niUcezdaHYyea/mBmF8YYnwIkYYI2mUCdMddt2gyvyV3ahpwEKfnk0fhRcmI2\n9mdE\r\n=55Qx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBQkomJyYE/uA9vR6fPByHZ/BuOJT1/tXPrgq0w6TQBQAiEA3FOENopstTkCe+S8z1rirthIgx5a4YzszTJgpACP7Xo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592867221427_1592867228644_0.2306638815456037"},"_hasShrinkwrap":false},"1.1.0-next.1592870135883":{"name":"playwright","version":"1.1.0-next.1592870135883","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592870135883","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pc3mvMCKqYPZUol2VvkPIhEgnr3QtHBE7H4CIVSUMe4bKxDwmeiYOlSssYlVBSFFbpttDJL7N3PU+o0TfKE/Zg==","shasum":"060d2f7b5b357206f856a53016183244a793ab26","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592870135883.tgz","fileCount":96,"unpackedSize":1564080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8UT/CRA9TVsSAnZWagAATFYP/jG6hFkTSL8V/+tCmP5C\nnqlpmxoPBbXl066jHSuALFU9pDU2nNg6uQY/pNimRrQp5Q6x4WtC4QTH9Qer\nAfyCs5REAF1aXfPu57KiZ6vMGls9Du8rFOwh+GUowZWCtL1V9uR7zbmS2j4b\nnRRap4jSeHMtXMfL7J4S2nh9buQiDienD62ErCSlQl7uzlTv2NGmJunrfC1P\n0FGZYMIaQxzTOnAxV4kilJtILIatm6NBiipQmhysf6UiNV5fTbuUxAzLNpaE\nnqbbglHaHrUL+09PRMASgMwG05erVfHlu5mfdEQycmAkupcOSyJE4l3EKQxG\nwhQSebL7UYI2UfN5R/cebh9XZEN3UJHy8+QumaGfasqx+PFlwEVnqlr5ixvF\nJZme3fOPL5BLrvqF+06Xo4bXA1QWQgKvIzNv9HWaVsBpy4tSUtdbmVNGcq1u\nR7Dlydj4Nv3zZYm9F7YHGhMz58jNq2y2KgorYDoS06dkJyTS4H4wpQYUrrtg\nJ/RH4w8UgKdPMEY+aw9lelNGJasxYVzetEVZtw2ADoOPuY5Ie8JFE6X73duT\nvTf+BjEmhKWn6Rrx2sVRDJHW6jhPX7l5oaAKn8/xGAoBb83E8GsBQmOB8JmN\nCL2xlH3DKDof7iqOl+W3GuESOHG58hHSD9YvjUxUTLCWSegK9vTCsOPY40Hw\nPyXq\r\n=iZFP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEllQNEwkABCRYtBjRXhHdQEAwga4YSTK+YeeymacmuwIhAOstZm8JZeOvbJetVKnn/ErKHuKts2GQqZsmPizIBLOp"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592870135883_1592870142500_0.6018192733492906"},"_hasShrinkwrap":false},"1.1.0-next.1592886017740":{"name":"playwright","version":"1.1.0-next.1592886017740","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592886017740","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-agaKhFlII/wXZbFeAXEyHIoQ55rihF4ibjBg5LZvVMF5Mvo67vt48Ov9YFdqMQ+ZnPZyLYH2+Rf9xHqQZSJaSw==","shasum":"20fc0355c5800088e42368855bdcecd10a585388","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592886017740.tgz","fileCount":96,"unpackedSize":1564080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8YMKCRA9TVsSAnZWagAADagQAJdktzCXhezNzz9K01M6\nkppxHO2btwFgZXVnOBq81yGCZ7U94j7wpXRaAeJcQ+bTagcgZRbSPfyl/mzb\nwZWBZWLnB4r3b+xKQf40qKOGYOg4md/nQ0de6uRZcbUZH3szPJWLoov1aMEA\nV2kqnnu8qBtSlLLnkCV9t5QR7DaRQo3xSAl5Ffh1N4T6xH+kwmJCLCcijurr\nKbjf/ViAYxGciRhRacclCV7gxXesf1y3EqinIwZPhobJoPL3+Fy9/jtIiXm8\nnjy2GMKUOaRTr1sx1Rk8ZEq/Q5tTclUJLAaRoUioI6grVfHkV2WWNbT5jHOp\nLV/kUW9q9+tsaXGhxtSyEXAoOrI9BxOhgymI6iQmC9WnC5JtW6HlxgpxI9oH\nYC9HP7Pjik7kmmZJxEfGnw01IlTOiWxc4QEBd7aHKODl2hkXDH0xVYxJA08D\nPCmqsrd0QFSSkZEo26TXFB6MSTJILHJVt9ZvEzib4s8Vh4aCFqWyHgiubS/a\nm5Jj4hRCAw2uQ9rD6LD5lbhPck1IydtYCGDNB+bGPUiqI4fbP8gF6EcoPol6\nBU6Vm+QE/7h6+02viPqE7saWnscDSJf1IVjwYB7SznR4JKF1bOiy7a5fNRi4\nsD/2q4zIO1pVjmlB0IaCQ04IkZ4Xbv+InQ8IGIMd086VZ2BthANqVDI6eM4S\n1Cdk\r\n=aUAu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC01GJLL+KR+5/M8E83Mm1JZkTQ6RFhP5o2bQxUQrDToAiAhO4OXUPfLl1QDXuW+hwPJqqKecOHKN8sc9tBoTz2f2g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592886017740_1592886025944_0.23232781978141182"},"_hasShrinkwrap":false},"1.1.0-next.1592934980929":{"name":"playwright","version":"1.1.0-next.1592934980929","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592934980929","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mV93EzOfXK1vDLbQfMak0TZdiH1rw7vhCPKWXvywy9B+4z6Cmjc4tBxCghTPgRsOLs02MNP4RMV8LyXOv0d0AA==","shasum":"a779cd3ad8f4adb1072da530844f3669f40aea9b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592934980929.tgz","fileCount":96,"unpackedSize":1564080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8kJMCRA9TVsSAnZWagAAJBcP/3z50QyPhZhaO9ClGiNf\nu5O4ctgQvyfDqaq6DrY4WjtOlb3zsS6kER7/KZMGzqWfpGLR8+wLaYlaix3M\nvpEY4HFOfPRkyGz9ilHZBkxfn3D1NgXJWgRdufETkvgIaFfgEYruK8obTgzE\nSZL8lh2jvGyi0CMFEchRvecjxAxK4dqzGgXb+0yH+haFw521aDuCUo6VX1Wk\n0vAP4dHrDWo75fa6SWgNP9cprmDRxQ0hs7m3DrxHLA4q7MsKNEWYJ260NagF\n81QZCfiOOBPEZgbmGl2Ng3WySVzWbOFjVpIOWV7OxyDKs9/txntzenz9UTK9\nUpLS/jmdoyljAF8oQuCCrlYM1zuRCERGjqIh9e2Dh7HKjTCD6JjBqbwPDnPO\nj7ThZVIS3Tn65Gge8MSUIc2GQ1JWce/KslAFa5QlFE3cmznFyVGMXGIsfaNK\nMAzYpZLEyzqYP6tUkd9frttxDrf+3RMfhlpBntJYEJi7S4QgmTTlo0P79Dtt\ngMVRGRAZES6ougMF8KtahI3PT6KfJHydGj5zyERzraM6/LV+fQwcjaXK3IhF\nuPZITd8lOYkF8Rl2unzDvsOFI5xrx7jQyLxNf+B1n0IuoUTaI1U0cXyhWth0\n6J16SQ9tOrB+GNa7LHItg5P7TvGUjVb0LQ29yWjglrBqpBZIUrVneXqB9FJg\njIjM\r\n=Fsnh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrG9BgxNcQf/1dW+i/78aRrO1C1Lx/leIxM951jhzfXgIhAKDNzE1znLfpJ4gjcKeS6LCt0jkz/ActK6ccZgCx7lRv"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592934980929_1592934988131_0.4783468666990578"},"_hasShrinkwrap":false},"1.1.0-next.1592942665273":{"name":"playwright","version":"1.1.0-next.1592942665273","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592942665273","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3gf29bHq09C1Dmqq/4Lw/JQnym25mCYK0ePbEyvDTTGCj8sorixPTgEscTlDy7fONZa3uVX5CZLVfbmWhlGitg==","shasum":"a67f3cbc61cdfbb08bd90e3ee8e2e9efd37d36d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592942665273.tgz","fileCount":96,"unpackedSize":1566952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8mBRCRA9TVsSAnZWagAAI3QP/id55m2LA8Sneamt7Onb\nTAqGYeMecL2n4TCO5qRW98ljIzZxXljiMPozd2HiXkp9HjBN9wFoMETt1mgu\naYVQpgslfCOT1Grs0Rn7Xa3Fnc6JVSBpwDuB2Se4MBNhLB9VjMYPnsNsrddw\nWCLvGg7CyfJcrExDpuoT+A8+ze3G4U1EF0r78BWSp+3inTgrs2rcIFWT+r6o\nBuNSCODAzaVAroYYHwUWhb8wac+rtr921G8yvTsidcFWzMznuddj7vrHBj/v\nS1MI81gwyvPvTXugcouijJIDQXtp2wIdmU4DmItIPi+AO4z9uYfsqfwm0qLp\n2OpL7m6i1ScvaY53hZeKGHrXY5QzvGywUJ9CmZNPtVDPHELs3W70Yllm1elj\n3w1dB38+CMlFUFCegHwWgzh1jJ0mwMqa1GinXKqJXi6BCWu0gs4EfjgTSZP9\nV9FisRyNXIUTjj2mRwge8uPMYOSDCv8NLrcIfeVWRuD6Gt0XuR0JRnujhw+h\nMqG+Dh0W/2yxcOTOu21IkSIWh1wYD7HNYYo5jY7dk6qaobRYV3Tfb7kTWi4W\nyS+KAMXTqxNspWSDy5/V98pVFDhsFkuY2fTxd4T667WOxC+oltWvpq0SUYQj\nPUBSSKDb3KGgInQIMT5bDIR9c6LY+1fpjWJJaVQbLZlaRUHr2QaSMxV3RTs+\nEUBq\r\n=IfUX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGTvoW1JO+kMtgJ/GqtbCZMIBFHBOMWuJPGtfzCnHHVlAiBBh5jzksurO8e8o2xunV6FMdxehxUBo6ILnNJMjERU5Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592942665273_1592942672676_0.8186321754385664"},"_hasShrinkwrap":false},"1.1.0-next.1592949187853":{"name":"playwright","version":"1.1.0-next.1592949187853","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592949187853","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xJD3JpcuUjc85GqJKs+iMyIGVY4hRYOIbeANqMLtqwp68dWIMBTTBfWV3UDyUwA2MMhhLqrYN7f4LmuXhn09gA==","shasum":"e4f6340d581ccd3f4ecb75aea95d0ae10971b8d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592949187853.tgz","fileCount":97,"unpackedSize":1567690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8nnLCRA9TVsSAnZWagAA2DYP/0iPEXEWG6Jx912Ow0zv\nVfQrLDFzlWg5UoYOhyRyvAHdezgOo0q6TfzkiKC7AqV1T4IMKLybV2Rw2X/J\nvy6Gmo0PMNyqDAkRnaopQgv95lrqplDBm5bEr+lLcqL5eZPGDiZamOAld+yh\na4rZ5jJcG8eNyQzPCHVmTApWnX0Zj/dpQONxxYRUXNenIi9mQFUSnvpH3B8q\nBy05xbCnYH6WwZLQ71+r4pd9zOCXj1nzkBhDFqRFlGAFXvW+G1VT5KzDLrOj\n+qjuks+DqPOOsROtT+7Y6FneFk9YctFICqPAQPZ36Pm6RFUY5nreouXpT+hP\nPdHAqyxr69j1kpcXfHoIUGEF+8Wm46wIq21Kba02ccMVHkUWY3dnhsiJX/K6\n/nDwVZnQvHUeI78hPiiJL2BorHhpyujmcNqq3jk0SuVSYK5dDbBli7w1f/e9\n5PT8JYqzSAamucLyin5Jp9DqWMI1AnMO7Ls3aVCZ7iMyJcFYC0EjS/NPsu1Y\nxb7Vyh7MAo78bqUeUIcDrfR8+4cC3Bx0rn4KfrfgPYXkcZKmVdziTRHSiZ3A\nfgiqGle0mjeY9cJH6suvro3OYAesORLTImsqaFaympOEKGyHh9lzGD8lk0Cx\n1XQSm5KtekYH9/BVJuFxE7/G9weScMdKIZrNMrgeeg7HaC432nzRcnl13+us\nuFNt\r\n=TpuF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHjR6QgRvnBQ6wYuuMHVSDHti7rOyEIPOJEHSrvQ/ioQAiB/xaRfdpQ86dqC94eTKNoeVDUpoKNiRETsNiKTvrarKA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592949187853_1592949195311_0.5126954561609953"},"_hasShrinkwrap":false},"1.1.0-next.1592955993441":{"name":"playwright","version":"1.1.0-next.1592955993441","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592955993441","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GjH6eaL2aan0fFTms/Sd2f/pqCzonPeIDqFWrMNet0de8d+50PTiqWumHvXgC4GQ+r7o8FxXGXctiWuSYmByZQ==","shasum":"cc9f5db718c0a2fddbdc53e4a51b9229977a7033","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592955993441.tgz","fileCount":97,"unpackedSize":1567690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8pRhCRA9TVsSAnZWagAABC4P/0io0MQOMWiM+7fgIb2B\n7KuENFZKDGWocn+G6QmE/qxLInt0YdZgMLj6RDMFH4Oigkl9Xw7GUBXq9X+k\nW/xieeR7Vr7uMBNjvNwM/p8tIUz3CAgWusog0+RiqXER4NzrCzuq4pWWeymR\np3jR8Kqy9fyldz7Dj+2Gu/xLnEov5SCEPxC6crtCQbkaZu8wJ8QmiStLDJVA\nwrPl4rFB1tUX5IVTBd4mNZgtUpOwrgiuh6shXOaQ8evNObcp3ocBV6UnZ/ON\n0/efPDvC8mjwHYhONs0E9iy/Nj2S6QhV/9WxFldcGbltmrnB5skSzq+76l2E\n83xxa5MYXx4Eha9d9axYfIqRekMV1qpfZYibqkoU5Z611K6/5/uYLcQUeUPS\nOvSxH5NCOrH2x7L2tSDclqeqiS9OFcuf7KL5O8TZLrHNtAVDxhndQJJq+erB\npHtgI/09s+GUkF4hzN9ivE9FrNMzBuey/zzjn++aIONWs5cNtU8+GETYFIYd\n13qRli4W0urcbvBKgxsZXZtERwtLsj6omLesvvnZedHYpux9hekh8zOj5d5q\nC9suzmfyQ6JsNMsc8DRIfENadx++GHKhKnEwTMchIBeOFOV9C61sycrTVmzT\n2ovJPswhJkIt0UPWmbIv0wayPWdKVSbgl38RAKjM6f6BKj+jheCJILSQcSG6\nkrmB\r\n=a9zz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkhRjz907Gp63Zq9JlUXnjLSA5c553g6MyfRZOuVeO7AiB2BsCqdF5ahvb7KqSmSNTvBcY/8sLAr6MZ1F+Fu/mtwQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592955993441_1592956001081_0.02921744823774519"},"_hasShrinkwrap":false},"1.1.0-next.1592958091241":{"name":"playwright","version":"1.1.0-next.1592958091241","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592958091241","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2Ixdw4Mma3GAmT4YDK0K4OeOoJ3v/09eBnFFunNhs2y84802nmXhXnc6wQRswZkAeLCyIwkj9b30gD8g5QLdEA==","shasum":"563f6c9684ebe7424605ee412a1848298da56cdc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592958091241.tgz","fileCount":97,"unpackedSize":1567690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8pyTCRA9TVsSAnZWagAADXUP/RM2ag0A+o65l9dMJC6K\nsJOmk74tZq1CrRnybi4A474YqIa9aP232hkVqA/1iY5+Dq1V6wqZmKpwWnJO\n7KB1deG1wDSGDIE2Om+FBGneg9SaBq9255eC2ZByGRXCjVRJ7MbRqV/SQ2vB\nT2jH/nzpewfJtuaySi6xu6zZj6HajYLEWGUiHejKV8fvWn/WLBDW0Ic2xGqs\nyJyyOzRevduRLjVDYJDWIW6IVNd9PBYZ62MTQyjrvOHu9cJsXOeM5BFVnrgQ\nEo/5Zk4+wabTKMEdT2hg5WK/4lpfetgDmeomYMvxUu154Nxvl4R6s5n+UFVN\ntF8YanPQ10JLrdJjDPjD/PXDnVCkusPj4ze/9MTisEDrnQ6vfn0/KSZF5ERr\nEYWV6qgBdeoc38iwsWJ4tfT2mDfW3zg47mZeh0iczDabsapvbzqGJH+YfSMn\nciQlw/ehXF6J8DSYJlAURImZyZW+lBMJinqaZw5cUXctnupYeYyTCqkhba7Q\nrQov6DEUFGwwd/ImjzVaoV1a2mZ2ihlu0ZL+8zZyhebM8roGYw2B/w7wEzYn\nhzRHzvADZqVRLHLMNQkVQwJmn9HKeift8jqBP4R+XJyIjQL6fTyffvBC8uDy\neU340+SjiRC+a2V+OIuLegTtNfbP+Il6/Nb9DnwPmSfHDcPs51ljFZXKhOQp\nLK54\r\n=KFDu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4o9iTUcP6ljjWC5i6wOXy5D0ixPLSfBUzh+VaDnNH8gIhAIeBa+qgBjn4BLb0VXTZzwxfmugdpldLsuUpACeqxXq3"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592958091241_1592958098704_0.7420143225825251"},"_hasShrinkwrap":false},"1.1.0-next.1592961570639":{"name":"playwright","version":"1.1.0-next.1592961570639","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592961570639","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nkKtR6j5AKycN60Wq9JK3TNJOOwg2HEGSS05I1CIhQxlyFJn3ssMgex0BNHhJmCGTJNDk10RG/JFrnrfQLEaOQ==","shasum":"b02382e3970269ad6c5fffc6baafc55e8bc67206","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592961570639.tgz","fileCount":97,"unpackedSize":1567690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8qorCRA9TVsSAnZWagAAN0YQAJfpnYDhlGzoOz5GmSI3\n5Hh/jJ938pbBBJ+CG6NWWozL4HginN3MH8wfmIfJWhU/jy/0d6IdsmYWRUOC\nYxU+pAF7kL44ZMUClRXVYq5/JEgiDJGtG/yIDndU4RnpXkgoJWCSXNhKwxDO\nqITNtZbq+H4jt/3YbBvvEN/k8javtGA20hyrrBugMG6Xe4THzvwh7GxaNaN2\nrnQHC2Sur8muCTvrC/ou7zl3Bl5tnx0ZfLA7T2FHNKvH+iKhrj+OLJY4N1/Z\nK4uoL4kXrV1Ine5UgLi0FWUeIQiaEKCfF4OqjfLQBQIHjo0/NthUivZxRrjW\ngwrQLO/AKq0zSoajv+Y9GKgrq+QIY4CWQ6BtK6Pjw7bv/V16V0pIL1DIHIM0\nfnUaNoGSlTVWzcZYGOMFt6kIqcplOq8NblywGqiej3YFp1I9aNMRpb/MXrlG\nOtCo+S2mzTT9QO9mAR/ZT0qoOUQQISRZbxYCANUEcaN+oLyntQjlQ27CIdlG\nTU/n8BBeh9rbZtEHOjilM7B44R94PogSwexpzK1gnePaJ3Is1GjX9ACAW6Fg\nDxemC8ebyGqiUOZCzTsV6ec5rFtJkkjrP33LtOg22q9AgrK8X+02n5hg67Zl\nXoYcJ6T11HnfkAbXWW4xWnZy/r0u+488VDg4sjx1QNeGGH5hcammZ7b/OAU3\nNpyK\r\n=gWUV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOTgH9XWob1JBnTX7hgWjOShjG9fXuB6FZLcEl3AA82AIgKcRs0TRYljdTVNc7udms1fGLzAAbPfr8X623IsEFpac="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592961570639_1592961578613_0.4922248627606285"},"_hasShrinkwrap":false},"1.1.0-next.1592966189653":{"name":"playwright","version":"1.1.0-next.1592966189653","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1592966189653","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BiO4guwIMyKCdOQoUGNUwLKEyJnB+QiONeN2EBi9UXj9pVy2a5bkN/gCGjA5nJ4CBN3lxpFv6Pldul6YbKe0Jg==","shasum":"adf3ed29c7a16e850b01f2685d3a38809920ba83","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1592966189653.tgz","fileCount":97,"unpackedSize":1567690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8rw2CRA9TVsSAnZWagAAGcsQAJlHEuTDjf9Zn3KBFNs9\nhGtW5c/75RzKnfs/hGvdfWFlMC1fnisB4pkOnSaD8JYasl5233czBvNWmh3U\nzCSWKvFPDG7T/K8cVBZE5MXRLFwhyT+9OYGgDM+ksqJlu0ActRGcC9xDZQ1h\nYj+6GRfK237VE+Vitoif0GQ5jyPdJpiclX9HzRC6WwPbUGtEihJBlIbacEye\nYec5TJxxOi7r5N7zK4+WcOw/5YBSqqdHtfJJTJGjtqI0Q2FrMjir0k7+r00L\n2taH/TCt7cubtme4cslprP+ODa4e0vZS7E/Z5fJESDHYdSU53FGMuwo8Rb0b\nD4wtii1blkH7Oq+MnF4OEtCwi0kEJaQYF2CbSawgI4al27Ytrsgv2/iL+eJc\nYZjOg/U3/Qny1Op6cuhRN7X8+OUCEhhAaE/48zENx75w8Wz/fkK3MfmZuc/P\nTMeM1mCn2NN8Z+lMU7PyiHnPFI2//oAsKyTdMFj/iEH10NBqXrHgyns07l9N\nD9Z4FqUnEHq/fRazi0k43b+1ycZdvlYxnBtNLpN1SuxF8mSybODjPLPN8DGH\nGzpkeBeuE2Lq3rqIOThEWY3iwD50870ioBdxXoV+L8WODFR6PpH5M1ZQvpPw\n6ZbJ8NhbraS15E1dM6NmCR/EmUEHTOwi0nXGkTVdd74WUPUIpG3Z6HM9q8qZ\n8mBo\r\n=ar4i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg5PVyh5shUMRwLF0TYQmq0zU/0ncZUnKgCPY+BZvMTgIgTUoGEccINjKDbtwm61qhaQ6CupFdU/5RXprtVDn5teQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1592966189653_1592966197358_0.7005195631300949"},"_hasShrinkwrap":false},"1.1.0-next.1593018356954":{"name":"playwright","version":"1.1.0-next.1593018356954","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593018356954","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8tudCQxrNoGjRZVMlmIrSSVv/FhxTcVrqgtjOtMiz7kkYVBbawXFuCdln5m73HQvXytfKKbtJiZpRk9mgD1Y/w==","shasum":"c1f5e4474596e7de39226ea1fdba6ae29c1e6aa3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593018356954.tgz","fileCount":97,"unpackedSize":1567690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe84f8CRA9TVsSAnZWagAA5k4P/jhKx8ejwX9u2lvOHDok\nARQ8gdQw5YwdoJems0R5lyKf7dS3dy9JVVtazSiTcZAL/HkeD7aOKxA4DUAK\n9rdigPm7Ynsws1VZkUk5EyzPt/yKuaIpqq//sXRs6TXPC6GcxFTU81XFHyt8\nc9HAMkn1H8XX/XH2VUFZCY4ds24pFhGI1mMP28WD++YAGbQYCUJiCGGiytp9\nGVfPsmKiqX+2AZH3uivjX7q6v+7JT1nDZunxCE159zhm6cO6ZIUv4qiabtZ4\nIogsDdLXgnKf6KdzKR8IlcLoYEdQgzB09y9LgLGPZRKfVQGwx1/lNNuJi3hu\nKn/bjZQRe3+dzJUWwha1WbmXK8uOlPAQrDpKwK1VJXf2Vfd8wUiW4cslmhBY\nwWhB1keV5UG0L/W+REELxU+/73yOqyuysNpX3O9N0sjgeCiW3+ELx3fojKRL\nb/brqkfHTLMnJ68RcStH2ENNzBsJ8tZGb9ziT8LzT2MUfn+r/cTYW85IpRgS\nbbIcw/WVmq+x1n3ZCNPiwy2S4mUwWe3VpFtX1oclUCcICxU/umn/KVfOR/Ze\nGxsPpdpbGUYQ2FKSTbaLdKwGK8JVyKeSv86vnotxpRzOSpRvKTdmML1jJGv0\n+6ulCBOZeJjwmq1aTi7c5o6A3ARILXxtBEbabYhWiY6NMaO14H+WMucIwBXK\nwp7z\r\n=s9bW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAxQVj6EZScSYfIplUd7hNnU++i5tFIdpSI48oCLlxZFAiEA2Von5TG+BdjTrZKfZ99fNPWSIXxP1ixCo9yC79zqDYM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593018356954_1593018363972_0.8268938304578504"},"_hasShrinkwrap":false},"1.1.0-next.1593019124888":{"name":"playwright","version":"1.1.0-next.1593019124888","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593019124888","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0fuyI2Oj1x+gBSLztSo/MiWoxN19SRPRjfjW38Y4aIEmXHzlBdl0UGzPJJ+isrKLBYPzSPxHkWQWPjQ356mqRw==","shasum":"5dfd50ea2b16771c38c5dfef041e006fcaa86f23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593019124888.tgz","fileCount":97,"unpackedSize":1569496,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe84r8CRA9TVsSAnZWagAAOnIP/0qqOd+Wy8A5muxy03FS\nQ2/86l/jcYpLpwDnY5+FBJdD/cy2wYItEFV95ds2oCANVBOhbTH/Meh475YF\no+NtaZD/UClfSL3al1FXNs5kavMZ2iUmo4tEzCmg6g9dzCPs7EkkUgMfhdcF\n8iw49tcPtf68gZj54VJGJe9FTlwceyFrEborvjk794o1rX7xjP55IqKieTez\nzG5VICFfHeOMfhOlTj02JK1cCpg6cGgu6wpD1Xk/OYErEwJO8+eLabZeNSp5\n6xpc96bb4120ji5A9VCWcKtfYp6hWkrqQcnuIiBolpFoTFDn/i74rcREMAJf\nmXPclng2zXZjbAsE21wbQL9fYcffAlv6ciqaHRlkQwdnOrXuv2F3uA+nzFrJ\ndrPPG2C3Wb4xUeJRhseVGfGonXGvaveZZz5L/sTkx9PsLHi6RDPO2NzrgJZs\nwZOA42v520Hg2+8cEc/b8KTfkeqnimJmjg0uLteY32JfcQTN0s05Q/2AsXxc\nQwcVeePLutLQCDvllJa32kid5WmgbHjVekKxzHLWgMiBlFeL7c4bqwkCfDFX\nSXrv1G90BVdDk/L2pEdO2WaUDOVlfz0lcob+iZ2MRVz1VobQDBcBcS/JW3uQ\nt4X55WDaGs/qgGrLcAH5E7dm+Y/PalzEmGzzQTKfjOtcYVvmuy5DuBzV0iQL\n/mTP\r\n=AOKp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBTDJvurWfeOjD3ShCf/WN2+SYbyBdoqoNBaBx3v+h/rAiEAnvDfbhTbYCjzEvkR1BRF+wv26CzUaZxKPKfeAlC0zYA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593019124888_1593019131933_0.3830793950514344"},"_hasShrinkwrap":false},"1.1.0-next.1593032161984":{"name":"playwright","version":"1.1.0-next.1593032161984","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593032161984","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LOtpmLwJCRlaG6aYfPbfUweeEmj903tPHCWwm5mChzs9lVEzHbW2M9AwpnF5EAjS3aaTzyBzvBFle1LbTdq24w==","shasum":"aafe8b6aebc1322dd62cef05281039b24afb7a07","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593032161984.tgz","fileCount":97,"unpackedSize":1569496,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe873qCRA9TVsSAnZWagAA5yIP/R1kGcnDaIdAnlOPwsmm\n9S/dtvLynn8MBprNzeFzFv0w0T/JGvQHCgn8i/mx0lU4lcXULorJfUkkXkw8\nK1Rq4+UzDHr0FS42+76Uc0pjHhmdiL1FNNJTs3Hx6+iSEMl3Ha7p7euFPffa\n6qIJH+WVtTzLMLVNdkzfZsDL7kEQ8ZzunQpzdNm5vta+95N0H8tYJyEGzagP\njWea/ODP3n4Mt6b/BA3ch0DgtJf5CGwpOScGcqCdnslTm6BCqmgKT00fVcO7\nznVWzxdNkaFikLont2qnJGQEtGg/1fk2gWLIZFzLT9n2Bv2EAiNzQ+WEtOP4\nbJkvAXjnnjoQK4Hp8XEAHycJhk8tdivfVUlUendxC6c70HvHpSh3VSVjsW2j\nUXCNO9fBEGIJiOwCqQBkSEaSVBOnT+uRx2IMlnbdtaiiDMJjFXNEv+3vg1wO\nPXIgmfAgAO0ezK4AXM1F2jtiQCl8pdrK6cPCOrBLLhXAkfUu+RY+CSopsQqi\n/crYEs1pPl94oRQly2eOtTGn63G5OXU5PXF4aSXbwEq/GzL3d79VF4jvCSB0\nnyD+C5WKyeyofgXyzHwCYnoslJXeWJ1FVRFRaHYUrbcNj1kpqfHulPbB+Cp/\nq919kG7nCFAm1Uxg9fcUoIl58zhdzhM2zkphuHLiJQw4IE9EJ9tLXtdTQ/qa\nAmnL\r\n=k6T3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtAVBEg9zDjMt4UoeZOHCW5pbtcsXrKhK1SY/bfOvfGwIhAP2H/qYJpoELJ/rLNh+ZPGr684mvBLgUzVXAvtcog/kZ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593032161984_1593032170461_0.8228873832057524"},"_hasShrinkwrap":false},"1.1.0-next.1593036825936":{"name":"playwright","version":"1.1.0-next.1593036825936","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593036825936","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-s4x8S3r4YuDd+Zrv7tMNf+InkiCB69xolAW9rEIz0bqiZfZgGoA3A/ui5Re3YjKO7xiRvZHFjfkKON64O5zGVg==","shasum":"a6a61eb08544574d4f03101b7fa24753c5e521f1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593036825936.tgz","fileCount":98,"unpackedSize":1571891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe89AgCRA9TVsSAnZWagAA07oP/0A2MV2wuORy7WEGb44o\nqSpG0EE0uEr35bydYvNfceCBs+VytWuju7myLMitmZlq4NKKN6SE87BXDSLg\nPwdoKZUN4Gm1KLzCLAOAEHkBaE17afQVEpL0MW2tnnSIjquuFNGWSzNYdDum\nJEsixD0RRljGWmvDH6BVepmdI4pzPpHyZaeiBD4pb6KEWsgQbM4Pr2z6mNtP\nViUYeQsOLOTzbnUbctdVCVmIzKzoi+crRzGfwTwGu/gwKjofN1Zj/ruBwMXX\n3kwJjJAZztFnZdM6v4axrh5kFDb0Z3xPQ8q1/cjGJiiJZcI4GYz3gw5F6dPS\nOxAqHlFkQ1JAmy+VBmzodn5luMRNcUbzfeINhj4/ZahciF/4CfIOiU7NQXF8\nxHV6SK9lg+xJg5KfdnwhG+eYWHHTdVJSYqv/v85lN0UP0Stc2YtXAB+K0IDW\nj+uK2O4f6dJUuT/cgSahT0hM1UuiqcL+wnYGPG0/4zxvUyjFtvwT3zSGvdTG\n/AHssAC+LuE4LOr/RTaR6ZiooOkwyz0y9KyNbKGDJkVfVwBA4wLzobi5VgAB\n0YQcRjyk1hOPHwKDWQgg08jm7pccX5yXdwLQ5P8O8QZqHVOliWyJpWj9v3Tg\npBaMnlSo7V7zk1ptw0DFI35YrMB5PPG2xEb7DEIDeXX1CZDS6pJKFpJFVjTZ\nWDhj\r\n=n2nD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDY/mTUXboWAFmlI2TrJiTQcZjTUDkkH7cvJgqO4j0y6QIhAP0qWHFlVNsrdvCjUi39oKcXZdKYelEjtVd6d+9hNr0d"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593036825936_1593036832092_0.4144092192807387"},"_hasShrinkwrap":false},"1.1.0-next.1593043509319":{"name":"playwright","version":"1.1.0-next.1593043509319","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593043509319","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RWGs3YAR+2+S7b1ngVwnNbYWIxQHuO2C+aLcDOWMQ/PRml0X5MKK0xyn/L0M69OfzOAwI4qwkWMGtbld1LFyNw==","shasum":"65f1b8822234f7c5dddf32e4e1cdd60ae9fcaf07","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593043509319.tgz","fileCount":98,"unpackedSize":1571840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8+o9CRA9TVsSAnZWagAANdMP/iQC3+9s8ns6jUB5KsBD\ncou+LobdlhRi9RrNFBhSxfMYI+5pxqQSr65h1AI2g1O0xXzIfZngZDVm0Jjz\nfiCfAW2kruT59aLzL+zhLKQlftPT1r/CSTS9+cF1poUwqBIflXMut319X5u5\nexW0rZdTCcG1BRXn3/GHkA5F8ofHg/NGdJk50Cvu+C0RqBRhPe6NkkUKFHFC\nwKUCmgrMAzoiTtMhlGIfIZ50RifzCfnFFzypUs9a/EeJOHe1vjhuQo+0CYY+\njSug+cWhXSG830gSM938xeYX76ovH7P6JVurU+heVyeFNVx6UPC5ApQ1QmYe\n9ZaCID3XWEDcXjY2JbCw7JcVe1yFGDjIO6SSit8CM3aPzR4JE+pKh/D2eB2E\nuYcIwSdSj4KXpE0g5ucvNdx1/0qnnOT4Zq52RiTkyNw91ZiTtDieaFk4i31B\ncuZzA3tP4GIUE8ZERX0aiYuPSHz8CgbF0Iiugj14T/JoUf26tjeq+uYgIQVx\nXmD5kWa7aonqp+SdOFJKYtwTnMz/+Gu/xeaON1d9Yd8wlqSVL6V7UIwjbys5\nRZprPDKoU5UvZ/Zh9nHyxTKL+fV5XNIUY1mZETej0Nua9pwRaxtsbpFUPpyG\nvxSF5EzgYEqUid2Pmh/53p+TT+JWOR/xb0ZFuRk7fJkh/0ZhsY8PYcMxjdVH\nJ46t\r\n=PGFd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECb8FXchccfQad8vxuf0iZNPzYVnjMEawQqP+O06zbZAiEA6hENf+bzXrRRPku8lbGb1A3frwuxYGTh9aSfJGAQRc4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593043509319_1593043516556_0.377966594131534"},"_hasShrinkwrap":false},"1.1.0-next.1593061846204":{"name":"playwright","version":"1.1.0-next.1593061846204","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593061846204","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Vm6onxd1goiURitirpT9Tig8MiTZbvwy6BzPxxYEduyE8cnPkmDGztebWCpXGL3BsnS8wQhKOJhn7aZEyWfsdw==","shasum":"02408801fd85120c2618f73d042978ce431f7c35","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593061846204.tgz","fileCount":98,"unpackedSize":1571840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9DHeCRA9TVsSAnZWagAAVYsP/Rc1Yv17cDhCJnk9C6UU\nCj7rdYVYt/R434XwXdq7hgJOKSH+QntY229JQusFaTayd6VS6fsvt4ea+F5e\nTO5Z45NC3EoMxjXtl/opbTcpDHcff7ECG+yNEYSvWAcgKt9fOL1zNYNrALO9\n1D3+JpydtQZBMeSd8ziWE3eil7eZZc16RPyXUQ2P4UxIR9ywolXtAL1xx2qI\nc/5AXtygWyNdm7+pXmZ3pBOQJzCE0sHbeAfIAJ/PpzsIPV5L5fvz7qUH5K8X\nKndqFeqYg7PvIMUBZZhKIE9xwOCulxeIg2pFR7p4S1rec50teWUj1O3pteAW\ncWqitDIZGt87tChaZPxWVamDWBUREqFtJd2weZTmSbjKEVftcOewxO+ByIgK\njpYAMpb297ZP9cMDv7WxmebCKzLLUG2vRJ7tVGyMbqnEF519Cc7B8AEOrGRJ\nGH5NYiUhrqpEnIZITb9LXQESU5K3KUlvuIRmWPAU5qGw/XuQS2RCwVH4q2kc\nfgvqJj7DnflwXEf1jxvpWghdpTvmVG0fv9yZVo3MkdJG0fIXUv5QOeqZy0x2\nWd4fLZEL02sRIQnva3S+GPBIZaS1LDscOjrlTqSijmVFXTY0zFJU8b17xfdr\nMPzxfZp43Uts81787f0Idwm0HP5R+ks2dZOMHOG566RQwP50gS7tbMt+Nv2x\n+0mp\r\n=NkKi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIBcXQEIn276ufQdUpPjYVaNXe2bZKYeT1KLV/qwCn77pAh9yyTrB+2RJ3iN8Yn8w3K9/fQeLczPLgB1N0lG9uok1"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593061846204_1593061854198_0.31634312265821807"},"_hasShrinkwrap":false},"1.1.0-next.1593099185265":{"name":"playwright","version":"1.1.0-next.1593099185265","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593099185265","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+eGKmCW+3aP+OcSyCtPIywoQ/8e+yPczw1nM67/pyQUyuhfhkeUpsN1SwFwyXUPd4CkwWl5sbSgUxQ6NrlrnZg==","shasum":"f472a810bd774efd2eb3c25b7396a7689ff5204a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593099185265.tgz","fileCount":98,"unpackedSize":1574495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9MO6CRA9TVsSAnZWagAA2BMP/iRn9CIkRhRzZ1o3J8V3\nBVUEYMZ1twuq6IoubvuThCct8UOHtR0QwXgA/5TiynfUX/Gufbo5Gt6nCOOx\n8bfUlcK5jXxVuj7pdAg1xAVE/+rzpCoGx36k4B25deEICTn6lDa2BTYXvVyw\nQBnpTQMiJyxcZNy1IIskgdgXlcRdZRi+aunx1eLQRL2YrYd8cc4AFLBmzI0+\nhvDQUjBnxOKk+St9A9uonct34a/bBej1yaV3Fm90sjCU7gsbub3AH24axvWQ\nkYqFfqMt6KZHQ8zxxDewbDzA+PBACb3QAO1KD8n+v7v6UOfm+wkiuy8dixV2\n+cxKPxBK5ljr4TB6Y7avmSh3zCAPJsVIxqcsRDoHx7MOjskzN9QEkq1sjeb1\nbZw0FrDiSHiiymMBkPEu7WVp015DwWnZBaqUTeTpd8MDHJDXjMA/CBWrTgjU\nQKJ+oQz04DC0qem/6EqxK+UD3hInEOB3F+zcfcUEIzJrwLLdkqpazLhPJZn+\n0djI/UUN7zJFEFRZOfKXaY/t2gzTFXAliSTsV8SN4bdHVr6hAte17A6rMJG4\ngP36g7Cdkld3nruC/oJnzIY3DzbzRS6KkFcPcJ55czaSKbD1cCGe1JMsclTQ\nI4jHODACU08kleAVxL9eaD7EaHTX+iXDhpdP0Jo310fpbbpM2gbQEw08w5tN\nppOv\r\n=f9A1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEBPLcVNk2iPRA1GePCYzEYQTWlEb8HMqNIPi80tub1AiEAk/rO1pg/LBXsZu7inc+uSjOB9Gs/ftmBdg0My9v4YIo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593099185265_1593099193955_0.16828988623407204"},"_hasShrinkwrap":false},"1.1.0-next.1593104159537":{"name":"playwright","version":"1.1.0-next.1593104159537","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593104159537","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-J3PSpuMubAdbYkZtThtlw3G45vFf3cR+11NJXwphxEci83VlqsIX5CLnsWrAuriLu2SxdDzxxo7tnwaNOwbKPg==","shasum":"073e01de56dc1ca56b85c191d125c94c57af963e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593104159537.tgz","fileCount":98,"unpackedSize":1580007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9NcnCRA9TVsSAnZWagAAZH0P/2AvlV2pEH8jJUIp4YOh\nTPpq9nrtPK284bzfp8B4KkzYnK1cTYfDuc7mRUQmUgIQkhDLJMmkWtamHrWF\nf7ed3cCZY5g6KM8wS1KtF+dsUij+VDe1EspaFBR3Q+WUdqIxm0FJXFYzONiE\nN/g8DQ1G/t2CnFZzYTh+BhT9lCFNeYDCRxdQ6RE0Skraep8tL5HaG7mV40zx\nvapRUU2D+t+1UcGN/lDTp/1u1odfqqPLvi3B3+Qe/Y+D7afmnNMrW7BSz+XL\nsrqt7F2fbASalZxFLo+p267i2FR1q4VEESjlss7+DRKij8EgCRK7x86o5BQL\nQ15qoyhZbD/IvbP9tYTqJLvsaYtRjkBNPCzLCRaj5ADReg/zgvLMjMBpPe0Q\nkZTnXAvGAiwQwqCALtkenK6yJhhr8ApCfGxHRP2kPODICpHvFrmGtENRwyIr\nHFZOSsAyMjo18XNasfo1cZvp9PcyyvB/aFc3wJdFPuJcKNvSG8q7dkEJ/lLR\n2D2vk88CAZ8/wvqFGQX2Vl1VdGUDQU9YczahllU7Dk/p1IaVI4BYxS5Uhc9X\npJMHW0t0p9FRV51fy9glfuVE0I3D4RFXG2gDj0p4rko2gn/XqtkvqqiSsPFe\ngZVZZgnHIHhx8emsJqGEw+rxb+iq5MSISWqaPVhvEpbO4B2cBybqGlCW7tI1\niw8G\r\n=j0TR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGgXaz+I2wA8lBbInyellsKpRdsW+3rd+fYZxyQiNDg5AiEA0tG2WItYMQB3UHVCYl03XYJHFGAiW1VingeyD2/wLfg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593104159537_1593104166468_0.46713185272355195"},"_hasShrinkwrap":false},"1.1.0-next.1593116089757":{"name":"playwright","version":"1.1.0-next.1593116089757","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593116089757","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-SowC/oDzuq6Lm/3cccknIwUQRI17Q7GkDocZTOhDCpDm7g6FsUsa8Ki5ojDi5P45yjnkAPLBCorWbJeNRYz+6Q==","shasum":"8f9c013c477a5d17a586ab831c3e18c49bf65104","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593116089757.tgz","fileCount":98,"unpackedSize":1579775,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9QXBCRA9TVsSAnZWagAAG3UP/3CDUv+D2HvPtr30/BEd\nk5xbrQSkD5C3mxCQgVbjCEfKpqYhZyJUVTGMLBQT/TpTG/HVAHXjXna+H76S\n7lswcgDuPrZFgPGq4WsWufx3pIVL+3uk9Pm9X9xqoIllhZUcs+tshhN/OB13\n0m7I7g1xCeuBB0Cls5X+F068akP6P9yGyNcN/KLCaXzoPhb6W+2qRnvqfNJd\nm718tWt3vUJJ5tipESX1MvTlwd3P8RmrP47uPM3ZGpghVggPeQaVSnD/CUGJ\nbCXg8wYKYA1zgradToLs6YhBXjEFbd9SzlhtaTjlnYTZx6Ub8VUtdsvG3iwm\nWkUmSV8g/s6EqTfRNXg6Do+Ro/Qj8utizQJnbUreUG9E/aOZlHT38NtbVCpB\nO130FdEAiJ4qQXMf4T7+tuqsk2GGy/mlhfqmj9JTlt1zf+YZJssRBsQQeZiz\ns3yt0+KBZvtr2WmX+QyKJMn9aY8rNUz7BXHRaGhaxw2Jsgn8A8o6nJQdEg33\ney+YT+WNNjxzX8flUz11F2ebeTuofU3zvK3DAwx4lezfFWNmtUdg9jcVKxp3\n7v2PtciV29NQbFIenrOc0SFIZ9RyZxip6tyotYmZZGQiByw8xyADOsploUxI\nK3JpLKjlkjft+HD9NSdh4RjqVrWM/kL8QwAmX/e6olsW6E7wJEn78WA3Wt5T\n7zjC\r\n=+Ojn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLC9WHv/o+oyfIgFhdsvzc6D7nAzqGhmcObkZObQ0UpwIhAJSX5MGB9zXOSSYrmPvnKoAbpFr0Tfd5vT3Z+o5/thUY"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593116089757_1593116096921_0.3945973866744932"},"_hasShrinkwrap":false},"1.1.0-next.1593126441221":{"name":"playwright","version":"1.1.0-next.1593126441221","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593126441221","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-61pRXIztqLLiR30FLsRt8eRn/QbSxFf2AmEVnwIYwkrKYMWiTBGMx8FPfCeOrUuVd8Yt7IuNIJl3Yw2D1nJXRA==","shasum":"b050b981afed890e2530b1bc60a4cef8e6cac09f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593126441221.tgz","fileCount":118,"unpackedSize":1660262,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9S4xCRA9TVsSAnZWagAAfb0P/R/X90H+DQqAoK+NHFF6\nVxHjbxBvYQvl/N24f93/p3zY7r1ozBPhoRFSP/ZzMaaZ/5DWTpcZUK5WN1iF\nkjHEPvbpOB7yNfhK5iaJ4FPrlp6Nt12P8t0L1Vgee9edSVLLKScRK5Hyh3s8\nQ5UdvC93Y6Ql0m+kgWObuqmwpfwCNYRTkZuJmh1p2yXtBzYolEhgtvnBv2Rn\nCJodpqoGiNEDEvxMmPPCizoFCkMMqY3btVZTNHNPOHefxPRAGPFiqWk27pjh\n7JpfhIWq/2Au1GjHUODVgj6v6FKJkatlQX1+i/hQ6aR9nkLSyzUXKw8H7eDQ\nglXV8rBZTjFeEHhH1JW48ezdODWyUpEGIklpDZ9dto76Ug2fglYRWopiitYP\n8+e4UWCShuX4TLdrJ2cPWlThQIAEs+mMdvoEb7+N+7q+uXYt91v6Z+cY+1CU\nQHcprHwhz/YLKjJRaAexJ1F2uBWikMNh+/QRlNgeQJQcuAgFHX0s5lr2CLDb\nMl9yOw7DkFsCADn7kioD+SGyUjNDLKRgWXKjbHwKUIERDjqL6nXUoLKuqL6T\nyL+m4sNUlNcyZ1XzgLJAaDW3wrNtMXlFnwWwGpVxUqKBYdD08y4agkk6pB+h\nY6t5pLJdG+kU1XdqsepCk1/nZpL2VCfzHaOL/GpyVjy9Z8qmfMODDTpA5AgB\ncSd9\r\n=I/XJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+1/BRFlAvK8FHwBFdilNM+B+qSD5oYIoLPtaUsgzzPAIhAMzcVQQ9Y0MPBcwLuuXkO8TItyP3wZISawOCqG4yRIgY"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593126441221_1593126449185_0.1648641614462163"},"_hasShrinkwrap":false},"1.1.0-next.1593129563529":{"name":"playwright","version":"1.1.0-next.1593129563529","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593129563529","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UDoGmrXMWl4plWSZC4xi+TS4g/dIzmKa4qeG79L5+euc72DHNFz8uRHJFO9o0omTwf/4fPOdl4CefxPTsQyN4A==","shasum":"14be98acb16736b2991bf55f12de6f4255479309","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593129563529.tgz","fileCount":118,"unpackedSize":1659840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9TpkCRA9TVsSAnZWagAAIlAQAJuUFPoFxnj3Suv+1AVJ\nNWYSVXwj7SkAxZ3IpAz1uNqAsYMC4jkSpFQysyGETbhhDNqXczqQnC3Z28fK\ntGoBSnbyJ6Ju9qed6sEwrxCoGIXOiSGL9rw2eHZ6xBn30Mcl8o9CmTD8MTOQ\nIksSwEpk6HiQxBDyHXEMTIGkeb5reeawGojiGRFjcwcrElHuKkykpZAYkHwr\nA8wuNWit6JL+Qb6MKkbczcD8ctrzsmB2I886quS4bKNrZtEfhFEWLs92Q0HD\nWcFeGitER/PQXuO/qyYR9/kAQeYlTEKtayw9LWeZE5cGP0eoAbYO8ce7DKKw\n4aGXxiJL2YmjraA8rrSAu1S3jNDYBvEQIpFmp3Sz+nQ++l/LIeqTWyStDrgT\n4KV3r3A25YqpoV4/nb0haY8oloTLc2Gg6WbcU4YiuAVph8WkAVq7IZhKb6Zz\naCmYfthlg3JeHyzQHOKPaDnhXB5mhDvSU2peywGWuZvzL/iDpGwDxCA+C6jZ\nMhomEnPK9DQQBSLLsD0cGeGM1wIBirJkqJTzFJq0gJcW1qO1NfDOfNX6JDCT\nMgwCLyFso38Xf4BsoC/lagYrH5ZYFMIty2SgxdpCDyO/tUsLRTQDchp/1Zd6\nKgyYGfsjYdtFjru3IVbIdE2oseju+HtYMC6T+FyuiltuTuXIV7aAFWB31ge6\ni0vN\r\n=/Mt/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoma6rk//8fFNkkh6prKuemJViYGT7BEIhTQHmk+DBigIhAO+x+47ekDj+kA3qdl1DcnUujFQqfhaqXit81MEF8whM"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593129563529_1593129571512_0.19092190516276353"},"_hasShrinkwrap":false},"1.1.0-next.1593133389004":{"name":"playwright","version":"1.1.0-next.1593133389004","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593133389004","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4IBrem/rOu18kA5TYNt6tt7XOIvBeuoKvoATi6Y+YhUrSEQkv5jU8KqL4PdyBHmD43QjAOem/mryOMTLhOUA+w==","shasum":"18119d54f9b5a749e56dee122a17f4ba6343cb5a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593133389004.tgz","fileCount":122,"unpackedSize":1669406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9UlVCRA9TVsSAnZWagAAl+AP/iBy5j/0jJTNkNxGz3ir\n9RUNVCUVsi/kAdHTh3apkSDQ7I2gus9kZMY8J6hYDJihK+hT3F5o0695tmBj\nUgx/Qg+FeMdOT4we+D4RQ+aT4GQRHjdGXrh3fCJusw1dntnu1jow2spMn2M0\naOPOUoOfRUdV9QqN4DETmaY0FEA2ickQbKy2jkEQCxag0+dvNbBa9PUv2ovW\nnmqAafuVWYF/tIPVKEpXyUneWiQkzctcTyset6QKCZYCbG+6v5lZ+z2JZe75\nrOK6jVKgC7qkBhvkKtqKI5UKYJB6qw35D3oQiXb7YFvj16D1qFMkGV872L1x\nY7itgkMWPnydA8hZ45VVaU46gIAV9PuGJfDhciHZEHEP3X59dKfjanq1o/nL\nBg2+oCLIWNC8lnkZ8kUwVBMdOAkJesNB5+8xsexxb4akgrrAg8h2F9ji7BYo\nlFzQMWA+1uXHirm4Cr7GtpcS8L0iA3pfwsTpO/xDieFUfsddoJJf3rfdkwfL\nfMNfyi6A2ARK+lEFRkD5D+4AyywnP+wZ6k7YzOTG/G5kWApc0le0PcVajT2A\nQlDg9S9txJXmRC+YOmbwbfsvt5I8mM9eTodQUFSRkYoQZrgHI50tfpzTeLf6\nFCAsmLLWTM8lNl3zOjWdRYpzKFFq6JvfEoDlP6eExVgnaHrWtYqgKfQxtoNg\n+AjP\r\n=b3UV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFfcSDX6uMfoh6pNHqlMsXEYSW9XN4y4rsHjnKtQ+AcTAiAuKiswyM13wZaZQELCN90m8y0neTxUSmAns+gJeQ/aAA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593133389004_1593133396646_0.11184717986417558"},"_hasShrinkwrap":false},"1.1.0-next.1593190367463":{"name":"playwright","version":"1.1.0-next.1593190367463","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593190367463","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-feDrfe9qi30R/nJEf6Yg44aSabzl9CfTRIO/uQG77WIBPhMooVdUUDUhqu+hBbl2+EcM/e8y5BjPuhP7ZrRVcA==","shasum":"8fa655360c6c69ca296fbf039d049e7d0c228899","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593190367463.tgz","fileCount":122,"unpackedSize":1669511,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9ifnCRA9TVsSAnZWagAA44QQAJr3GPxjd+nqE5U1OvSB\nFDFbkDZUPsY9sgbylJPA1zyaN7giX86/lHNyy0OVPBy+7NA2h8yTKQ5CLquq\nJUv+V7CC0LQ/qXD++9b1qVnpMLOQ870QKpeUkKYIdqXu3GJKJuF0qzrmMPTs\nlVeseOyFc10vTV8K/SK4awc6rH7SI1+nWwgmgD7HnlghwQxLFwgJ5y27ucO6\nT5w4+5qmonVonwZFRy4mlgNx/fJ0TJnWDSXBMvx6yXuWIUv9IppqIJslB4Rf\nmE09WXCEdFkV7h2qPh21QnD5C149b5l5zA3e9OOC6LxCWBUSvsdkNcC+bZkr\n+DugiuOYL2ZN+tbfGDRvMMpxnrIvr3s+iIP4gz2DPd3eifEVKxJncFoePJ+L\nxXd4GormWv7jt9WT82+SG5pNuFuPWOkYS1IipOqcWTnHhPvdMyEiqjKr8kf0\nY9mSXoD4pa/GfuuydQd19uBJyovGJHdNGNKU6ZAoHTWRLxuWrhkTNCJORSc7\n22xc6tbwmt6dpHu2gXqd/rNoR7+4LPrzWjmiqw6RMeDkUVWexOKSjkgxHO8q\nEZ+nhlrFraQCtxZ3OWS7DCe5W51vgcWv3mbar237xLmj+efS5Q5zFjYvimLl\nSk+Ra702Np4yzgd1HlMhHxVi3gtGefEB1OPFUC+vXeu3R711GM2v8+hYeg8v\nEjLr\r\n=LK9H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAcvxVb8g+amNltaRp32nWcSzi2Lv5w2vcuCjX9JSF1DAiAt/rVTtFgJT/mSOMtXe5D9vGqFTZF6W/YthpOwSWeIGA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593190367463_1593190375320_0.20312435742050883"},"_hasShrinkwrap":false},"1.1.0-next.1593197615293":{"name":"playwright","version":"1.1.0-next.1593197615293","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593197615293","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3bfQykQKTuj3cTEe7FBlTofqlZiSE99jRtxyx3H10GRGTbhydkcW6KJwv8VCl+cxk9745UXHmyD4iSDgVbp1oA==","shasum":"04cad3c38304c2ede364ee78c257375f807bc9be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593197615293.tgz","fileCount":122,"unpackedSize":1678654,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9kQ3CRA9TVsSAnZWagAAZ1AQAJIGKnAMGDF/FVWjhs+D\nhTQYBQSQ8EtBlfRUf2l2a0wub1B9bN9Dh06ovuR9sV80PcCUfDeJ3fV8BFbp\nPagZP9DbPorJCn1emXR43T2Gs/mYodibpfqm2+sBmVIID9llt4+ShJPOgM8N\n4J1fdTfcdpSUZlGMa56nx2PEY2dyF8r57pU0OEQMK8uN5k7foRutGfSRCUyi\nUmtaiBKyyJvqftl1mApivc0tvE3qH95mTymYkwHPsoK8PhRO1cqzQ/xtjA44\nBZJUiq/96wopB2Utm+sp5qwJB6Cf/TQdP6qqReIbQsxGbN2/CH7VUJ7y8QJS\n+EciDUWAdCcRieA3vW9j7XrNHHvbIOBAFb/5wlODNRf9fD1IE3yvdoiTnoC+\n4vW00jkOTtShqKp3aqRdSgVRdXsuFsTX4+fLLYxJcn4vk7gEgcM3HBitFQjS\nUOS5jKmfZqPW73oQoQC6I8o12xupAKlywpZXWuOM1+QKdJGittfHgYefIS8T\nzrjzrOTrZyYMMHr3HhpkbbpCTHj/UJL3k8MqNLyHGhFnpuPwdBXAscXXXyPs\nWhYH/fKMEVO7DD7mvsidwTQXCDWEGEq3s9wzESjiH1XaPNMgzc93RGDQ6SsV\nl5gOQa29kEbkIcW6EpiPw/DYxwxQRJdD73xAY++HBB7pyF5W0gD53a4PCx+b\nlCSl\r\n=1R38\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpUx+d4vcvc66TJSseoUMe8DOgcLATTp5cqVxitB4RXwIgDDnVFLA6E51BfjUd9H7XFEA5rwbI3SfFgJSSyG9SbMk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593197615293_1593197623176_0.5353090736769033"},"_hasShrinkwrap":false},"1.1.0-next.1593199815258":{"name":"playwright","version":"1.1.0-next.1593199815258","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593199815258","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vZgv4psll6zWWa2HThuuB1ag4aqZMIMiaiwATvBJJJKOhJvRqUHXj8RSNL008KdMliCfmvvS6KKMVBnkjoh9tQ==","shasum":"1ce6dbd60d4453a07e08e71c6189172366439cc8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593199815258.tgz","fileCount":122,"unpackedSize":1677096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9kzQCRA9TVsSAnZWagAAEDYQAJIGX/kwWyikdlWI5nI4\nhSK2d1ItmPPQU+eBcJSGCmbzq0BoiyE260EekKPCEfNrLWx88zq6Lm5qhCLo\nFDMs34tdRIQnmFBu+UnOt7U930BQDEetDm5rffFcQltbOppXKhxlVnJog0X2\ndlYrh2IRII3DQwwnKWHMSguHf9xK2VGkIhWZTAAUanzMRhQaJdWpB4emqpsX\nXRHHRQjxVJUlX1JNXaHj9yB8gnNMwyBu6/YfxTg6dUBcCYHRgBE4oK0yVls9\nw/xwzMKcxG0U0Nov83GHA2BWqkSxfYMtCIzTr3Pwm4+/yU5F1mlDTkjeE0x3\nP/GQv7Ef757OBmg6SlPLhVaeP2Od9RqQlJUqVdyuEfU38UINnh+hHzyoB1wW\nniZaZ3/6QeqKV6xUdgQHgs71cYqUpbtihydDXQlPIvbvX0Ze+nqLkzCIn57n\nTDrSmJWQGdJqUdM03PPwcJIWthCRGlo4th57kKbRxpmk2VjMCmFG6U5Jkj8A\n65Frn2JCYT86hXpl2540Qfr6lyQSGE/S8ArsZCegsdr8wziamK8EMNgg86nr\n5uIQ274EJFHAooZcq1kwCm3E/11Tapy/MySpJfEYKIB6WWMhpJW2ms7tsNbx\nAGqkCeIYpO6n4V5rFLZnSnW7gl31OaOsX3zFnuzSWlPYBu432anOUF+KdGDa\n6i3V\r\n=jB0M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDgtECDa/YYCgfnpfmaQZPnGA21Gh5rOthNApgHpFhEiAiADDAuDI4uEZEqMX1pGEl1yBrINrL6OtYNbjQAhOxpLqw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593199815258_1593199823463_0.6184424141552833"},"_hasShrinkwrap":false},"1.1.0-next.1593214450466":{"name":"playwright","version":"1.1.0-next.1593214450466","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593214450466","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5nGEqKxlJu1santkED+nUDejLXW1jQCFgf/yfmYRMCNm61Lba/AxpuFzkloni/as1qfg2Ip7cilHbcbME4aRbA==","shasum":"4c8dd18f9306f75e4883fa0b3fc9ed235ff1635c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593214450466.tgz","fileCount":122,"unpackedSize":1678020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9oX5CRA9TVsSAnZWagAA1EEP/AjzVZv2x1arAAJ5pI0V\nnksb7W+eyIlCF8t+QKJMcT3mYYebI/EabtKifAwmCSIj+3IXLS/s0UArbsCk\nNMSllMcVNHMBD3lT66lhRIe8p38F3jNATpVACj0Vbzsj6v/37wlx6GF53Z0X\nWrRbeUSyZBH1vKTtOUhZuoIIT2jnw/5PhSVWRuCut2SgvyO9dFXyb7BAdq6V\n9rojz+dpvmvW2L48DkZLvo6eHMwKEWAKgS5t0tFm8OQTvq4C0iCMGZludQZH\nYUPLGCuIAsIrXjt2Y65dI1qGZytYX9KjB/hMeiIE+uRxkk0w/WgqpbpAva3P\nxqmOPUQZiKEgGmSL8gBmCqROx+uD8hJ1+JlIlvJUkCR+9PYIdwZpUO9MWonY\nXzfM2k9AgrsRivVByl6RhVXajai9eB7EUwrSijNLF1VZ++EXeLltQ9s+mKRk\n8acwFOsLKQu2ec8JJ0rs7+8Yd2j2c1oY5NT7YwP/Fzrmv5xARZy5iBgyKgaO\npMkk92MQ3HFsfJvl/sqempV+LcbbG16VWNh/FcE54yBqYNxNXkjynMRPRpEH\n+JAKiVt+gCiDSy9eK7+UO5Skvbc7rPziQkU0n9aH/MsepF7rilVUp1uoHXEq\n2j82jEsRjBxi8O9plVa5rF6JipLRv12L5sS/lhdCmAb8LYmJoxBs0D2/nzqY\nBUbT\r\n=sJvT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEIG5vYRj0nuIqRlBJwzyu2dz5lqvlRvjUDZfbnGntz3AiAMDfBUjAzql6/v42GumByxxdfnz1utjp9SGpJPLyoemg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593214450466_1593214456667_0.46207502302342274"},"_hasShrinkwrap":false},"1.1.0-next.1593217594450":{"name":"playwright","version":"1.1.0-next.1593217594450","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593217594450","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-e/5fq3QGa00LQhLh4xoRBZwR1MlVxfB1pfot9TrEpp+inIccANmnZ/t2kVbklJHEvMaycT6FZR6UK1rMxppDAQ==","shasum":"b294cd4440b69eeb7fe5da219ee000566d6623c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593217594450.tgz","fileCount":126,"unpackedSize":1685770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9pJCCRA9TVsSAnZWagAAe0YP/iykePvnwCNJ2AnG3dZh\n0uPP8NdnJLYaZid1nyWClcRHQjf2kilkB3tPjNZE4pTJYh5C+5zEElwx1Kmh\nBQBDrXb+JVxJyWkw8jOpe/tsXstNsNq5CNcSE74Q08DqOzD2ZYWZ2KHmiixO\ngjpx3vxpIIGlPjkiIw9sk/MZA+y/+5HE29Naq/5DNtepkC9czLq7/0aNiq9v\nG3U55kEG1J0ijqhAdrlZu3mUiaEiC1UFxG90ydUv+TvX8x2v+4JBX9mq4YRY\nb5b+gC7OaCOOvtWRjPLQhzPL7fA7R9Sif4TYtgtV89jCOnYUAFZaxc4m4Xlk\nyXplHr9rEcQigrM82wzCaGSVTi5sV6/xnjyV1ZN9GnsPGqWyk+5B7C2gAkiK\ns3grHJUp4XEQq3036Hi6XtiEzkelKbySgKExkpxg9G2BLDhapPvC2+TQX8MN\n7xeE4UY23035kQnrNkSJOXEaBWqGYO1BkMPvU+nyaKkTk448MdWNSHQ6oK5i\nVMNuHf5w2b0BWe8Hofpz590EvUyB2UkbJ9vZIExd77AemMJy4IuUUY1VuzhF\nBHlr0+pkrDqXFRE13TvP/Q8gKhlgUsbcw17f9od8vwS9qIccm3tkU/Vmy0V0\nDo5/5RxD5INSq8LeK2cwXkMTtj68eb1lpY5b+IN+AEGzfKCOQguVXFg8oGHs\nhIMg\r\n=ev6Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfPps+HwUtlzQoeVGPW/3ra1A+CjdGPN0+PIfWJ+qT9AIgXr8lbCbYuNdParxirjSL9914tAIFTH2H8UzQT9KbnlA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593217594450_1593217601853_0.6994909914138534"},"_hasShrinkwrap":false},"1.1.0-next.1593219062845":{"name":"playwright","version":"1.1.0-next.1593219062845","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593219062845","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ceFG4ZvqF6sHcKnkpBNzFXVLIqmcdtwFWhfxTWFwM4RdfnokF7Q84G67YrLeeb4I0QMrcNQKhpwm37OaUi4KhQ==","shasum":"0d4108f6cd903439aa3abc27e8a63327022c2192","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593219062845.tgz","fileCount":126,"unpackedSize":1685770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9pf/CRA9TVsSAnZWagAAcMAP/R2HJu0LtZfHU7gg3Bh8\n2YDMqfG9XjAtW+MPoOaP3kBiGBeBrBBJ9gA6kbe2PgJGfAjcQlu70qeYePbR\ng3kTlpYiliJyp9+8zJFADMYVm3wWQpsP60NYGU1XZYGgEb4HGYT93q1xbSQB\nZo7Bomtl33I+WUkJBhweZA0X6l9nZ3+f25DW1Zd7DlRmq3OZF9kTzmeoIqnn\nd9GWuRgNW1kZapuo6ZP4KxWOxd+99kdLasbODT4WJwekCyZlsxyiuHNHpBZc\nUH33DElbgirS3AO5oCApeOhno65j0xrYNrgmi1Z49AzD5WMozzYGOCCf+kBg\nsuYAHKtnQvz+G2aQvebnNgK/4slAzlj9HPaUfLZRK0NJZURCX5O1BIOs5Nbc\njASbRNU9kQqPznt3sn+UO3vDMt7DYCxWapjDFabXLa1rKIckZlhMgzeHzTnw\n59mn9OrPgXje1+v+ZWq+3okH9lc2lUPmr13XVOQvJYj3Iu0U08foWMm7tMGD\nM0dLbWr56FUcRBUMsnQ6gxkivxcip5Rj4x4oNOW8mmssbnitxj8VSmhIkpdp\nhloWZR3nljjLy5vcMYPgWm1tu+h7LvU8iBBtZNuggn0FYwFZghMiyTmVvCeG\nA6ZmM6rWMtKWw7KQav3P5rDhMPjWY2SrDvwRMwPZdCup4L0paihwckhx8mFI\nCd45\r\n=iiBm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaivMS8Q/qr3QZjT8dfpOYOIRiILs+sGEPh/Cg8ETjGAIhAKQcGjoleGR8MxL5n6Kb5aX9bgweHpt42XRJbq3XBS2B"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593219062845_1593219071298_0.0331322968295531"},"_hasShrinkwrap":false},"1.1.0-next.1593231825065":{"name":"playwright","version":"1.1.0-next.1593231825065","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593231825065","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wyR87VfsRL9LBrM/ERkWlIyRomQxpGxbc+IpPopJ1adgj9l8pl1N8j/LBtTUl1Wkve6axiaiHZAQ1+QDxEY5mw==","shasum":"5b4f29a61bedb443449f51f4d84c2bf969453794","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593231825065.tgz","fileCount":126,"unpackedSize":1688942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9snZCRA9TVsSAnZWagAAOlsP/27L1PrAAifzP8dtcvHF\nEkJla/Q4XnReaggiURgeII2HK/KCvDklbh/BjIZ+TZp/fkSJNt37jwoImSFC\nQXAl32X6Uh2f7CTc05+pYshhnVzmTGnIxDEqjFyCrymI0kj+I5sD7MxYrmxE\nsmOjqXku8tLjrtm5y0/3ZX4PkF92097NN/+7pvR0JIfQvbhQvrtSScLvHGRH\nEepbVINQRAfeUAwt+vDuzE5szXBjwDC+HQ7+fXDwujVQi8BssxFwpul7cvlN\nkxtEepmeoknfsCK6Hri6TTAZX1iR+sxVBXz1kyvsPr/WWac4dJM2YxZ6acrK\n8YRLW4rrecEI9vLayg3BiUei+ZI7eV42uYYbsyd/4fXKgO5h+zlI6wxnkL6H\ne1q0NyVkyavhSWjiRLK4207yefJ+Z5cug5IU3/x8hnH8lT5pIg3TSZ6ucvLM\ndSVrvXnS99hzi3bHJ3Eh8hTiFccrQFyn2skm6NXqaqMRXH/CZSAhwfyAE3+1\nIDPzvq5Gf6H7Tdz4uxMiMtxpC0RlU/n1yz3zfhBhJSSRxNAc+Yc9X3gzAnO+\njJl2tDJXWomE1z+NSfW43gknothBkoy4EDcZw9fFgUIco36nGxHO11lOXfyT\nooxXo+HAL83L1jpNTnrW1iESnNxxgqPlCnzeB6HFFc/XJDUN8thcomcIEBXg\n6+DF\r\n=qgaa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICmQHKkCXgLG/K9aB0YOP+ILUGFAgSZnz1QkdRoYPnWDAiEAjfTW8rFuqDcLDLkMPVBcWio0In6zxRT8nuuGtbZrvf0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593231825065_1593231832860_0.546499586484748"},"_hasShrinkwrap":false},"1.1.0-next.1593236421047":{"name":"playwright","version":"1.1.0-next.1593236421047","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593236421047","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rkO3/ST/vYQgAvbqOkhtYCGASUOYzl9fJEsOMnIY8WPCCkH1HCkaL+WhF0IrgEX11n+x70F9dDI3lPE+QsGaiw==","shasum":"b135f70111736c2b9a8166be0a52d112aaf95d3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593236421047.tgz","fileCount":126,"unpackedSize":1689218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9tvNCRA9TVsSAnZWagAAQjEQAJIXFsOiCCAbLz91UFWQ\ny7tIApU0IIEHomQvn7IVvMoRiPYpflipK1cTgnYYHNQZjBTqE5vn6NarLBf1\nWw8bjyJCP09m4EaKM0fH8RfUNvobismoOV52GsVpjN7X82iM3naGvxxQPDMz\nrr9QLt3h50LB8oYgo264YuLmqpHk++Q6cX4nsLAX1N+vTocNyq1zP6mf5cH2\nkt0MmmyuIp1t6S0F3vsnfTzy3NqG9bhdolm3+9BmRk8fhxV2RuPSGL7UnIZe\nf5WKsE9+EDW3trRxTp94oAvT3Ogb6vdYWEJOBnUDudh05FGhC21WWXAeifw5\n86tYk4sdd8yiTgGNrlEmNEXtzHJQ0aMhV4QLE7xG/jiV2k1GtNEpMbIVThMx\nMYCWyual2/bnaL/FkbdXuYWnatUPf6gZamqgz3kPo1cttu60y3HHsxDEg1BU\nljyK+3OT3+CIPurpeNXK7nuC/p0hoYVTp3kFlbPijro7NKPRwwqocrLQmQId\ntgPS8sA4ZHNr5FTfthUSI62Jj0EW9PkHUWZrh5CTVq1wCx8LTzue2iv2CvZU\nR3Hu5TBCa6bLufIslBGH9RAHXYGDcRY4iNH/Ze921D5+UAiVChrcoeoSIH/z\n3ANuyTnVIOgxNIQ9hzAWJ7DDgJa7L8whNzG1ofgwgfZ/ixvKgv62V4oAWone\nRv6Y\r\n=SNdb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA5WIziuLZApRWHnIliTjPiBoyra/5OmsBOQV72paMbFAiEAhX1A/S87u+8jKAuwozHNSFt1ooJiwvUYlcIkpV6iG3c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593236421047_1593236428445_0.7281670087323464"},"_hasShrinkwrap":false},"1.1.0-next.1593281509435":{"name":"playwright","version":"1.1.0-next.1593281509435","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593281509435","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Lk/Y8DZnUhxtMxXygHJVMdpNyQIJonHY6PuavwhmwYMPaW0xeaiSZME+33zC6xNoOc9NSESddMY4BCxgFbq1lg==","shasum":"e84cb416a41c2316b2864a9a26f6e0130d75a433","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593281509435.tgz","fileCount":127,"unpackedSize":1693068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe94vvCRA9TVsSAnZWagAAUNsQAJwuXwXSeZSgzgAO8ThG\nWgczvrIGPNkFjsOwB06J5S9X9Ka9Mwv04eVJxX20e9gExqupbgSwMhpRWRm8\niWNC0XA2mqu+iNxps6jnEbEXXuJJkUOhWOG4ltXsFUZsExxz6qjfN5IiliRW\nYa0YEFOhOmW8Gq6Y2VmlAfaU4vIFoLr8AP6kJFjpRhUZV83RR+kWirlmy6dT\nIO/FjotGT4QaLz64ZPr1u5KAL+bStEULMreUxDlG7V0mtFG+2HxU+gjxxglY\n91MQJ6PMPbTeGPXOhoNJ/bEUpA6XkC3hBXzhiBR9g07qsBRoV2aqfsHRBNAK\nVMKLd67ZycQyphvOA6kBTRv8dUvXL/9UptjPhjmZm9903xsmkbnljDyiOIt5\nVfegt5JZXCwh1WX/WMgP34ZwVXgY/ZQ1fMvsSkQvoIze02iRre7bdoWUZnHo\nMzJkLDNOswoeg2uHEmIM4HooX7gwpfdVwd4vefc5a33nNinz7y33uSjBsVRd\n88WeHHd4VUCT0Ta4dBtmyfs0xb8zszr4xV+x4QkQ0mw9teByrvrNjzyEJzYP\nOSknlIzd9vv2jf7cTtsfcK3PCe+LaJc90ITgW5p9rnWehuiPAOvqe26otnDm\nQkOvspA0p6MuOlHHqUkgFJNBrhkXrf9gZ1DmCNuaYhi2kiUrFRf0MO/rh+s2\nmzl4\r\n=qq14\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHXKEXwckIrGaLO6DmxprW18Gx7Qg+Uxa4tv1OdVI0n/AiBBS3a/2TW5JhVGBBIrss1oGzuXI4i4gXtDGAm3qlUbYg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593281509435_1593281518972_0.03567376184645754"},"_hasShrinkwrap":false},"1.1.0-next.1593282874175":{"name":"playwright","version":"1.1.0-next.1593282874175","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593282874175","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-EM3DoCdOm3MmqPTyt/NUq7r9xs+uNGUQ6wB7I/juCvw4jgHT9a6Vo9DAilPEHGniHF4j8uZKbJ+XWS2GJEtoXA==","shasum":"0816047a969a8ae92fefd4a2eac62649944ee429","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593282874175.tgz","fileCount":130,"unpackedSize":1698510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe95FDCRA9TVsSAnZWagAAf/oQAIfBPBs2ceKo/+ZUjiwd\nPbdXAPCqiXY5oaXxcIJGyqIcXBjns7AhPMlVLPrOj2sjZ+FqHjPyAIW1pmo7\ntSCEDBc+S83G2lZRQW7dLys43g8oqQ1bH9zn0w9ZeHFSpUkcw4o4Y8J4Yt9Z\nCGqGLnDGpAiGcl+AXKoYHx17yHubPpFzoqLyD17tyepQ92STOG7+Okxc156u\ndB1JnSJF2wgcfnPQWc96sbtuzVPo0pdWF8KPDjNAeJeRBXR1JL5Jk2cluRI7\nlBxJoFPdCyBOhClhQQaFmwZWjhDFrq7O7yTSx8RcQQgEa1WnO4L3uASd9RwT\nuRwCxbcT6rJ53HWXNJMAyRSljroCem/uAWKxbd6wM2hZbV6dcA01ER8mqwUM\nMBKUkkSNoxMdLmevsSGwdfsBG8kjouNcqwLDezFQrGzBQyKGJIKE7EE12gJs\nubO9kGcazYeRPb+58OJuyAAXTeUiwdPl88msrtHarjW/e84Ema02Yi4UlNzX\nicQywd4FLHbsF3tvso2QEPOilS153nNnP/6ONMSdmcmhZN2HfFGUbDFQwJTZ\nLB8KvqViCIl8iiyh3LSh8CBuzXBFcBLKmHSpDmdT/rQLwlYe6U5ZgvEC1S4S\n21RjUX9PuvJK9/DQQSOYFRK/+ftaD+CkAgNBG7s0/qv+gTUIEojOD1KnJFve\naKFD\r\n=F9gA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPYhqmeVDkd31Dpt4plPs8phYGOd2cjsLqjfhk99yt5AiEAl2Dguuprqurr8bATwbBABai/R5tpkxd4cxJYjSXdFQc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593282874175_1593282883233_0.27500600882821113"},"_hasShrinkwrap":false},"1.1.0-next.1593452449071":{"name":"playwright","version":"1.1.0-next.1593452449071","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593452449071","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bCA1b8yT9ND51On35rJxyx3B/tVAmUC4jszKI6nZGnl0UZUSrLUtvJS6+YSK+rY9+UUpCD7QERzpxXKPhfkuMA==","shasum":"3decfc3811f6cd2822d70b965260e11bc62f49a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593452449071.tgz","fileCount":130,"unpackedSize":1698510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+iesCRA9TVsSAnZWagAASzUP/ips40wN+IL4XN4AleRf\nJzkIunKRi3WAIGUwNCV5mokpPPcSrUmQ1NPp1nWKaaD6iV2fXYzQPFMfTF9f\nSaH0nniz5SLIKKjCAMckp42SP7VZc/SVcgWKPcLl4MY9eepRYhmksMteIDmK\nkAfXrLAufIMggEBHstx9tsex/dT5iMwnFlaOpTsLIXbTaD01aWAWtgQu8vqO\ncZ5oR4Zy9ya2KiocwiTgoYreZ81KosJV2ahCcey6IJaORey1YC2SxiDTbvk3\nlBNo0dFpiEciUpxV3k9JpLAFr8RY3+X0AfO+58NgPzT8hdHbTLdpeUBDHvYS\nvFVgqqS5Lbt4pc35lD+mN3+WYICLIAOn6E9xEq8JZ2UVC4KR1yDsMhOxvFjl\nriO7hP/cyA4nRfSNPSaZmY1GbJI4ha7MuXwVgpyBOrbruc9O/FYdPWWXD7Zi\nHcHSBDVVFNWKmAo8hw4mPH4MKxxsf5T1r9hjFqdOzGCpp1UAZUD9GoW1uKZs\nRWSP5Wnx97QVyokCZmb5TCF8NuDafb32ivBmBaKnuPJlt3Gx9vrZj2Q7hFVk\nT0UhGfN6jwRFtIUY7I0w+7sLG008TJLtxWHhFA/zjXinn1GXnvAVKhjGGRmy\n1Agg90LsMFHSAicpekVIJXEZzWlAS7tA78y9CF6bPyPOs3flR8iLmCom5+tp\nfuO2\r\n=2tJC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICT7RF5O4YdAjOtrHwVx6HgI+tPvmk6Zyi4twAcay0DxAiBESfD3NRkJ7WL6648Z8Xh8jiTi4cCMNKo1d/DrzInFIw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593452449071_1593452460085_0.6667092085874704"},"_hasShrinkwrap":false},"1.1.0-next.1593455070108":{"name":"playwright","version":"1.1.0-next.1593455070108","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593455070108","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eoDmRXBQWnDph8kz2MpueQlQD/IVSQOR1CXJxn5gEPyr3kqeamEKaUothv4wO2X4JU1PbTPIADHIRwLawM9HWQ==","shasum":"879f6ff99be9a4048eab77bbf7bacfbab803a860","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593455070108.tgz","fileCount":130,"unpackedSize":1698510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+jHmCRA9TVsSAnZWagAAGtYP/01UvrQWsWg3+5yAquzl\nLWfInWHO8w1U8JVZqSusg7HiWzJqNE+SuI1B0+ZjSo0j9SFHpFw5dWhLZx4b\nrZPmuyca/s6wXO+sQ32re9tOGDvSh2cIZ6aPgNxvVVnjZT3gnAw6ipawYv9L\n1DKF/EQwUkAghlOOuPr8pp1GTrvnb+JjV44gf8tWHPakTm4Of6jZPYG31vJ1\nIdZJcf6C8+4ZNJ0Ja9Gd4jdWg1KlIY4yDF3MGaliit6ufhS2Y8KFv0pQiJ0O\nYkqnWcGclgsr+mnQoLzkJPnY+7hMmkRMrrxA3SeGzSHE/2X0a8oJGRBFzym/\ndIbTpKtx5jo0ag6YQJeK9wrK9f071IOLIgs/75SvMx58fvWl1VxuHG9/ai+g\n1oE/QIIAIYukbgMdGGH/0PnsUpzxeKOErRuqRc8HEcc4Wz/ddPzlUqHbXrbp\nzCFT7edxgk4q8O151ghbLtb5p9d9Bn5O8ig1QEletT3uqjrTLlrEqm8ViN/2\n1aES7WN8U1BKN0dx37QUikAqfAXUzvhoJSP7lDSXWxBe/nzqrXkdh4qbTKeR\n4qgjgXMweqh7B2kgr2t+PeNBYTQftnFIx52aQ7jcUOoHEkl8r+oVUU2URC/n\n2O9MrqDEUw9ewOZbw72BUfYMeLE4+CGwYUYEtw+AUJFusnRr1BBOBUDGYoE2\n5OeR\r\n=kYbF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHVSPDr5vxLgNZ+mLlxBM38gb4A9aJYKgPej5CY9xORAiAYxfjH9BiWkS+OVXMD8UHy6tBIs22B/csDnES4FHGLrQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593455070108_1593455078203_0.5502073057491066"},"_hasShrinkwrap":false},"1.1.0-next.1593469561990":{"name":"playwright","version":"1.1.0-next.1593469561990","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593469561990","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/75QeGBW5UcwKaYivqSgCv/G1x3ROJVJ+1mvcGGBmRQPD0bCBKhl7Ta1Ve0BDsKxpScN+8FakDURZUwIDv/ItA==","shasum":"23ad78ebaa18a81adf448578d96528596b667753","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593469561990.tgz","fileCount":130,"unpackedSize":1698510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+mqDCRA9TVsSAnZWagAAE/wP/2boXUc9a6pxuD+EeSE5\nVq3dGmQe0pJw2aKglm3sQmulZvaFxPQTtpq7CJhsRrMN77sPwmY/c7bWzWUG\nYr68D4g+swTudZGKYH0LNBgFB8uHpH9fT9wqeNxAlglFFZKy0vtCj9wD6zQl\nvQHiQee/xjSYsFnNPFjD9VtOc+jO/vFvIeTaKmhunviVFXwiInQtC3W54Xf6\nEJW8GyncjSYFiDeYd5r1C3eimGLptRYzb5h7dtSDjMv2Phhx9rouBZLHGVlu\nLmrWO7HQJsIUjwtsTj0l1qdDOP+Pc8cPlNSs2F8eBoxMF7FRPFlqJ5pJm6WX\nDmDUh6yuKthIcEu2YhScDw9Vp74wLJyyFs9bgn+eoFbMmUpaJV4RU6iLmxRT\nDhIUhVNminPp55KIoy0DNvssNBY50nxCp8A6Icw+lO6betnYtGCFl5OTf+iZ\nTKVsgHTHMZ/etKcWfWFi+BhRqGDhuUU3XsZ2QejedlhHResWHKpTocuEm8Fl\nL0bY5Q2sOR2d8O2s9gkDcifxKwOfutYjQY9RWtKOHQjLrKF355kMCMQ181UQ\n/hPxseZPCPI+qeDn/jvyoeQEAH9/TpUqm8N/Di+R26G92bmGZvQjK2HyjgXJ\nLYo8dxVXjk5UH/pB/Cnn6FMe5oBu7Iyp35QeOnCJtbrlHJuS4i60h9yRE9RW\nx8WB\r\n=PeXY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGuugTcOFvaLxDxQcZ8DELzHBXuhtZXqaIPuIo8qrulCAiEA6itvi618fr5fW6pBqdLqI3iI8UTJrcK+1/1yhLUSs8c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593469561990_1593469570519_0.14178679059633992"},"_hasShrinkwrap":false},"1.1.0-next.1593470959491":{"name":"playwright","version":"1.1.0-next.1593470959491","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593470959491","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HrN8iELEyWKYKBAZQqnKs800pr59+Q2SGiF3zFdTHLK4OpgrZ90YXcN0o7JDiVcdnJn3zpofdNfHB+nK2S7szg==","shasum":"3bd5a3e149191e731eff41e90c01638c1042b0ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593470959491.tgz","fileCount":130,"unpackedSize":1698510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+m/4CRA9TVsSAnZWagAAVAcP/19GjrVnxYOu34sLJFUR\n2Ah4XeSW0oDEbfX8cnIvU5OwR088T5llyXuNG487SaZ4Uh3BupBMBbHZ8H1e\nZ2PQu8bw2dW8DWxcdY6TPkcG+G9dSvjvJrvg+5fSLwiWVP03Ki1vpJJX00pZ\nSY0B+o+mMdxY26gstWXNoo4CMQY/v2n260OzLlCv+6qqNT5hLymSeicusc0z\nCwPMwUq0XE4HRpRUpZ3wD7Zp1IBSyclDwoVfDfwV5rzPIUW3M/iWMbT3JNuB\nyT4aSbO7w4VVa6VJ/2oygLMYiWUFMXQtaj386OaHFqtJpjqUOsnTrgNiuElX\ncmke77zSRbs0P070vNrSAbd61zffw0tBU8OWLZZvUHgfMt0bVCCf47cftK84\nVDdeQMjSmYPJG8s/mxBuUhGAV1j/2yTokxmLEmaC7YbnRRNDQ/Cjb/+8EwU7\n/3wK3VN5+65+QH2mKP55KYPHaLMxufykqnM9ZdUWLbGMrjQZuCh52Yak9T/N\nH8/IiCd5qs3QbE8rh4t3sAYfsSyn6VokU27lGARuzUFM51pHUG8+lpJJdzMh\n9o7hz1WGLZyHqOmSbMpQdP9nYyqAc72SCp9sI9vLOkpFfKS/c7obHOHRubm8\n8w6pQQ/x7vFACw/QnOZya7Ye0NRzU/ySae6qReWQmKNmFKURtIZesARD/5Ct\n3Q17\r\n=fMTR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLBjBiCV2O+SV6C+VxDYPG+n9X1s9PBvSmN2tt4j9uHgIhAJuD9hoOtRHiDy9nPyIGbyWwJPWgujL2B4yozb7VxtHU"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593470959491_1593470967389_0.25060478056721425"},"_hasShrinkwrap":false},"1.1.0-next.1593472011047":{"name":"playwright","version":"1.1.0-next.1593472011047","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593472011047","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-xq/v9ogQa7yfobQtu3DI6gQt+qDXPa5sOEyTukxDRYUeOJEy5u9YaNSMuDBuXZ172C5HVolA5RcrslhZsZwe7g==","shasum":"a32d3d75e79079514327cfe4d404e2fc23162e21","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593472011047.tgz","fileCount":130,"unpackedSize":1698510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+nQTCRA9TVsSAnZWagAAzn8QAJ3Ka9egRUD6ng5cp9ca\nqW0/Nhc6Pqh+C6WaTt77hHcdqv1dLy43uSxhiZWHOjimmrWNhWlwbGpISOzL\n7BEhnEJlUkL25LvSXzu1mBZDdBwzu9MQZD8WcVs6HCxXT1gHzEKRRuZzuQ2m\nrAr/56e/pruMEj7Pq1AuraIvVHMUBbtScNnlfgAxFZ+dr+EO1mFR//qdunZp\n/ik3/7gghwH8SCGF9md1ubmURgzbmk9J/REG0Id9G7GotFzx6a6os7QuDX3d\n3zulyHZpdal7V87DARG9AWQjCe4xQseTC4rcCbI2SCIhJjuXwX78dkATBOeb\na8c5wOtkGonksU8fjHSLhhV7AVZkfbsUXKfg8uAyxy/WQuhEWsjvvPx8AWRM\n+W3SvtAUhPR6hrq2XfCy0pJjjn0C2x+oxNZs0Z1xhZ2JBdv95+3cwLkx6/N2\n5ENwdBykpsnCXo5tTOATPqHYMGjBRT+HbiFTgDuvBbJNI+REJfyo4mXPBH8w\n+Bg8nxURI7Twgov6g4/lFsXusdkqNS4L1c5BQmI91paxfSaBH/XVxz9NJSnL\nBxtMTFVtrEfWQkgVDUupDMjWQR9+IZE5FVpgb1kwp14KcyP5+aWa9GtfX4OZ\neFg+Rt65vKxjOUKnZOk8DvpyLAjhIExIh3lzkOJJuhcsNJhk5xmy5RdFcKUO\natu6\r\n=ivZ+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGNtdEYhABJUvmlp4bGYIiFkI1s17VhVYkFxHkkPQK1oAiAlHyVQDPNMgcUPJt3gZaYJHGaeO12V8MiU03yV9sqUyQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593472011047_1593472018708_0.37996717481411624"},"_hasShrinkwrap":false},"1.1.0-next.1593473285159":{"name":"playwright","version":"1.1.0-next.1593473285159","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593473285159","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eI14r4ug5xURIxQ+3qfJkQd6YAMzk9IjtEp3d/ztzWd7hC5ShMDkmXDXd1RZnyCoeobkpUWpgQTYiEvNFFkqeg==","shasum":"62a3317aa210fc1cc0d75e3057e4501bd518bb68","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593473285159.tgz","fileCount":130,"unpackedSize":1698323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+nkMCRA9TVsSAnZWagAARqUP/0cKTusfjnDlcmyFrhe2\nI1mxOg//ARwCRpq3iGQFhwUDYMe9V4tQ/LH1Ub2K6QAFM11/Pzh9cmrxayWE\n7NUFqfR7F06xtazX1ciXoIu+9CKfl+ruT/SQEa7JbpqunOsmgK7zehhAtiCt\nI42uk83ECTLph8B/IVmwL6Zot2arjwBvMy6IVjR7eSYZSUwBtQ3Vv9RibPLJ\nxRCMeRJMRrsk1O4TjshPGbLgr76OCTdmpkOi97nYPlUURYG2qu3zgm5tOnYu\n31nBSirpdylAt1UWspaJtRp1T7clSnySFdrgjrbAlHtwgkq+8ddH6q2q0gsB\nzEiPNk0ngoamdFcBgAsfvPfuCRt56lhZxGTiL2EsiN5WFHLjSw//c/rv+u0T\naUUqqFCeEMfH4wEO+ZTSZ5LOKGXRQ3wT+45J573LcovUzOYU2CqO70lwTLP6\nqfSb7bVrkWxEEJj88fffYNzJuHyHN0GRffgGEHTL+rDN+q6MS1SIo+lK0uHG\nh7avZCKFjKj7Tg7VugDONSJ3WDEiNOXR/P3kaA7VobC6NC0DLm4U2mfihJ0c\n8mClMJA+sv2p4wDEQMsKn07p/haE+vPGmzJ+5cDnZikPKOdloYOddNoWWzJT\np037mEVQj6/oWlYEatvHjaVRaxOj4wOn87ecqEKmXJGgD7iMesHRgd1NbU9N\nUx1S\r\n=xk0E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkiucJi31aZdWrrzkvuhVIrPptVU9nA2Pv05q9sYqXYwIhAIzwv8xIk6MIibeFuNSVXAn1LEDoFnFX0RwjxNqs8hrG"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593473285159_1593473291642_0.16707846855695951"},"_hasShrinkwrap":false},"1.1.0-next.1593473945815":{"name":"playwright","version":"1.1.0-next.1593473945815","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593473945815","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-osvN1bvIL6ryehYlFVM8mx2QJGHt14LsqeDnWQExyXK5upekDUpH1l0dPk/M9GPjgRq+7prLWsTXl9jFlvGnGQ==","shasum":"4635dffa61582fdc40a946fe55456e0ef826b2d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593473945815.tgz","fileCount":130,"unpackedSize":1700152,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+nuhCRA9TVsSAnZWagAAEcQQAINBXC2yPqYf56uHA4f0\neMN+yDnhvv7Xdpm8Ow5jYl9qjrgCVNv0jVgkDpXW66nbgizGV1yopU+Vqg1I\nr0BbRbWwRNGJ5HNUNYLK2yOFveg0DNK8SQ7F2Wc3C4JUkOASIddj1Of9i07J\nIrc7DW/z6qL+zvxeV5yB6rrA6zgoD+3xpi44AQr6bxie8kr9A9sSHIjZ+RkY\nEy4p4116fbIoPjVfm2/qVl74dRrAOEFNlR+Zd+NWOJLALpzlOT88hndTkWoI\nnS4rD7EY2Z9Yzekesi6S0UcLRqtC8UhT3fhFJfECJNh5GeC2yWlPuq3WKzwF\nf6Y7Sz2dOy5ZZdseVc0nq5Bau7npeRp7zHR7KAkkzj85dV9LZvPVaQuTUWrs\nMeUVmxwv63L2rtT7/xSfM7Hohli9FK3u9p15RMUKW455IiINxQSHoDFrjd01\n8bjQOpYgy/+dA7btbXRbBk6mvSAyinKgEQlDonPdsYwjlRlQCSfYZK0R7Lsj\nWaPQwpra67DpuwDt/fPUZaaiFws5g4XHgTh6NfK6m2CHjpAxhCNUbdeq0MoB\nx6BB2qThvvjwuOpct4a/ODGtB76FFIkhprEmQCY+PUBHqG1Okf7uHMnJ2LLT\nNNis90++RSdhF/PGtjKP9tr/8902AxyzYDgkWaCRZ3j6R9+izOLilreVs0U1\nDwrB\r\n=JWY5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBx3m8tiCfzPS1GP1o3QIWSEnrE4Ci7NGuK9tzkB30lMAiEA6Guiq3K9J9lb6oE5tzAGC4JvQADsZ8J7wyAbooUMwE8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593473945815_1593473952549_0.5370906701035387"},"_hasShrinkwrap":false},"1.1.0-next.1593482383682":{"name":"playwright","version":"1.1.0-next.1593482383682","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593482383682","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ILXUzx2Y9ewPlPP0n5CZZWpmll0hnrYXSp2ch3dhRBkXG3XFTpoGE/+mX3/XUxB8//eteFqPld43sCSDY4lsCg==","shasum":"0e97c687dae60d0b76a8a3cd57526ab15e23db1b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593482383682.tgz","fileCount":130,"unpackedSize":1705215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+pybCRA9TVsSAnZWagAAgj0P/3a6YwDWdnJgQLxOWRg+\nXkzUCI8hJ1Qd+3DDJm41pCl33gAZIA+OZ0VaUEFn/kDisbRqTkEpvrySMMzh\nAF6WmLgdHNsucEfMTUPIAR93YJjeExK2QbFjVkpROU60VrYAxjAx8eGTr7Uy\nvcjkaOxF5S6TDXuUvW49C8Z39c9r1UxrcRIpzH3XfYAtyhn/NUWYWSAuMKIp\nfkst1GoJLglBSSvWhjzGT5KSPPSHOD3zkf9B8eMQGsV/rFPPNJchwCU12j0I\n/hAPw4B/Qpp3VGrX62WNFKhQj4vIChSKworZAe+EqHie5SIYlRJ+fwrk/rP+\nURFo4sqIFDEVrZfhBYx4N8PvqfwbSo7BKnW9PwQ/iKRytenBXaGnioe0ewsG\neGstDEM+RGZniMVknzy60FvjsxuUgwMY6FwQsFWAxdUcTWarJR+OTVQjiGey\n1kF5ggYxo5a12U2vJq695fkVL+mMQ45lKJ7gHYV1+OiWtzmp5w5EOzsqKsho\nljK5VnPD4hFM7Kc4N0onr/bk0KqxbS4Lx/OUiprvOOCQrK55u636mZ3ERtPJ\niO4vj+Ij25Z3calg/lfZdxgid70nipWsTQ6d7arXXa6s1Rj0aoad3hrsLzAv\nkwmutZdg8iEyCRFi2nRWJTEarHoOFjE3MZK2AH7C+rc82XXMX9/ak+Kfx0rr\n/+AW\r\n=XMuU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK2qDBvQLhlW9sbYm1QzrZbepi0IQibUcOMa/O62gOKAIgQe7sYzW6PjtEvs8Eg1X27giwywHkcpYcoIxFvR16L+0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593482383682_1593482394952_0.2616959682130382"},"_hasShrinkwrap":false},"1.1.0-next.1593539826239":{"name":"playwright","version":"1.1.0-next.1593539826239","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593539826239","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3A9lDbibUaaBT97AJvBuffGcd2hkygtek+fgOv7h5ITXZ3HYWqk4KVU2E51BRRUftUZAV6f3F3+XCLlLBaO4/Q==","shasum":"74d3410a1cfd41ccfd045f73b2a219211cd4c1b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593539826239.tgz","fileCount":134,"unpackedSize":1715934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+3z6CRA9TVsSAnZWagAAEgEQAIaI1iaJKpbTSBbwB6nj\nyucHkqfEYRNzJbQ0E+wt485jLAjrQTDgdX9xy56mCG31WueSSvAfe/NG4erP\nBYGSXfbK0KMF1tQJd5yar8E1hqRlZyOeVDsei13qAQxkBVtoIIkbfYDydHgm\nqIvBnmiSRU2YdyMjuAzLv3Uj4ztx3ustCD2br8UPke24NwzGIqFQoCxQtWWt\nAse9/v6hJMN5/6V6z/JdnvXErD3Us4ms3iIeC21ZGLHKC9QyIT864Pu6pAKR\nOmWt3VidskVr4aK98ANQf5qEYi42B7ZBYSn5G/4N757lCxH/0l4nSZXLJYt2\n7ZyRFPtMVNugga/6Ost9xc0Xp5hhN74CzeHrfWkhhRtXV+q4/iIUoKlmlHxq\nPzh7Bgc2qBKH/nPcbTyRM67+1dLKm5L0jiTa/GF9TxtzI2H6/FAVF4zo80B4\nGV+06gmIORhatmtFPvVpnUo7YZrtXtR0ZHPnelsTeHgneXmBC2kiKEXXkO6b\nvMaxxkWZK8DTEX+kCq6pSSfi0BkZ+isbMpaTcDjy8FP3DPkABzeKRCPOSHUe\nr1fQ0S6kPZz1RUScJp6ceCg0WGasmlOMKU4kt8K4+XPbKhDPyegBEuEYg2pN\nj3UoRkN46GUt8l/GTHbYV4MimpBt+bXNUGEzvOnut60+61V6c9vvMvcI6Ww0\nIApr\r\n=hVOS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHf2Cil7rbzMT/BBfT3qOjzrlTz9Nlfl+cs1Ki4H5mx8AiAjz2xg+Lt6NasuaidIKRy/w9a8x3IztLMDfYJa8x9dHA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593539826239_1593539833853_0.37408014047375926"},"_hasShrinkwrap":false},"1.1.0-next.1593540251356":{"name":"playwright","version":"1.1.0-next.1593540251356","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593540251356","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-I8OD5KpnjoLoYD0SKdWGh4jyzBd2c719+ivgNrqDXjF0mn87hmLcRJOsDL6tDf2u9z1+tOMgG48OGOEkP5FMpA==","shasum":"7b22c9acef49d8d3c47ca4f3084070eddc4b1842","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593540251356.tgz","fileCount":134,"unpackedSize":1715674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+36kCRA9TVsSAnZWagAAHOQQAJDMstET0mAI+1xOX4ml\n+OCPcJRbN9Xx/gXFrx8DA3SoK5rVKZoNJe9iIP91ZDmEemVyLTB8AsDf895Y\n5f3qH+lEPwbenihbOEq5AMXcGiax34YsGECSOY+8j8V5/y65cfsEINM3G2VC\nd8HA7dv12eodfQIhvHw0JgRrcmmQtxWUupO+LsV7Y5eAsWouGzIDnho75fGv\nmRdvsEM7vUX1IyZCdXr6TZXSncuSsT/otyZVe2HFAmk6lh9aYlc519PVPTVe\nQFgs9Zy5ZCegBmawelB2hWDklrLQqeSXp6aBDxfNqrKlS6oYne36mRSUDHGo\nBWpOmWOavuAhTI+wRX67THP1VQy32Yd0lnPecY6lHGB6fvK8RVqs0zdS0oUV\nrUWRpHjOXI2g4/YAPFYup8UIPTSOsN2rOpUn2FU7w3juSpZ4E/MQophw8MQ6\n+F19VvgNZn/k9sjtGXL5426Fk/U7ci2QDFElR147fgVcuw5EmDe9VcPecK0t\nPPRPXTwEnCu4d2m6wZi6hofpsSFwHgtB9UqvlFMnVPDUo7Tz3rhRvAFMHaOC\nPRigEyNNN33UNOXJkTKK9KEPL3YAqprGgVVatk+Qv4UEXePoaleUxQFq44+L\noUw4ky/Lm8I1MRS/S0fswlxg5uf8LGhDRBwLpe3xiPT0ZmK5+msXpuQcdcoA\nYNYg\r\n=U5bX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKKbhia7wBjUOHpNA96kbrgsoaey2IWAtXWx+ycEGfcAiBLz75zhSLy1F6DHksWe9AfwaaxsTu6tjidZ2ZliXHCaA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593540251356_1593540260246_0.1341237782005298"},"_hasShrinkwrap":false},"1.1.0-next.1593560937644":{"name":"playwright","version":"1.1.0-next.1593560937644","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593560937644","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+zw0JyFcLTbZ4N/MAk+iKKzhbgSlA8sqX50zQ6kTtdmdfxB5O4JJHTzuCS0ZgYtm22cl3orEFjo8pEfTYeBYnw==","shasum":"f3d2bd7c19b1be8b359dc7571e3369be19c9e222","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593560937644.tgz","fileCount":134,"unpackedSize":1715674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+89yCRA9TVsSAnZWagAA/bYP/3BNQ/dPsJRKFbxf0ItB\nGlUZF1ATmUCyFboosALHS/AYun6FA7X3xFunwJcYuUAQiKsRxB/IG6ayA9pk\ng3hw7NORuwnkbZH3q0Kt8I+uryNqfg/tCyluIf45Eus95nTAnrWaMcYWGz36\nd7JFKBclUMybALiWnRvdUwiAtWmxRlfXBmYFexyhmSuy3zzGixGH+Kzy2WiZ\npn4YFn0hM1DK3DzGWUd/V2jbgJ9qlZZA/02UzNGAUWPgDsjdNiDmmWrr7uFt\nlh2u7a0o1xicDOQrH9Y4bBZZE2El2B52AlfZAU7sTcnquyGuhdooqx4mxMfH\nbuWpcKOLAVPVEJOiVgCymOW77fCqU3+9Edg3wc0za8+GqhTXjWanh8PVs8ZQ\nLflHug4RrFyzKiirLqqjlD5MXkYY2Ens86VV9CWGlBJwX0cVNgxvtXlMJAAS\nJ8fKNT/62JYJfbxLirK1BywFl/kbg9h4fNDQl/OPwuWaWmJ+rcNOZHcDqz0a\nFAy27lA1JW/Q5iTkuUop4tcjdq2qwUj/8wzgx7JkA07FOXGVIm5zY42+51oF\naiu+f2164BuZyWNzUdh6MOZ1zDEIsHoreRLZYDfHU/ou412IDeRoxCtqJwkR\nMX2q7ypKrRAxZf9kCcNbsjQggseh9DtKI4/E9Dv5woIHCfvtREHfypW3eqZC\n6pWi\r\n=TFLO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDMqkn/k8+3eJdnhA1eHwvMi2mXbSw/eDtAxr8kSD0pPAiEAj9cCUH6yCkS1GUMyUTWOUOETUquelq7uskf88+VxeAs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593560937644_1593560945436_0.9944556398403301"},"_hasShrinkwrap":false},"1.1.0-next.1593561171314":{"name":"playwright","version":"1.1.0-next.1593561171314","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593561171314","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gpKMaZOLROuasSlK7xZfA/9WWioF755ZurbSw/Jp/NiTvzoEeRdhJxeEiyT01PZVVSFhLaSH5vpzQxdcalD9/w==","shasum":"b73b49194038601932d4438fceafcec5a7b5d8f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593561171314.tgz","fileCount":134,"unpackedSize":1715674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+9BcCRA9TVsSAnZWagAAgVYQAIL3QWJw1kwgAf33xsUS\n4vg8tyKI1AZ0o+Wi+5f1w6TKOgKF8vFJPjBvryz9O16poT7oND7DhMW3ZtIY\n1Y9ldIb2sJP5UW9j6vrsI94L1m6BJJTJdw9uYHnV5eT7xWlEerpY9vB6rOLD\n4yQE46+3iuYD1YV0eG4j0NCMxBNGAijxA4ZwOa0hVsy9g7mni1JlqHcN5V8X\nS4r/wn5DX0f3FWD2kSY58TA5aT3Yb68M7Mq0luLavShtt72goQttJBv4gUJR\nQLn7qBWBmjOQ/nE+5vRnlq6IsTJ/QFvV+m/eDTGX/0a5Kmx5utKzUAzg/EbX\nVZB/9jTMYbzP/IuDvY9HkvC+ksTX19rLL23wsZmiF+aBRdPa5Dlo4uiKj04j\nQn7VvINOllRy2nBVf8mJ9gMp8zh/OtJ3olAuLxf/vASLvQ9pOJI2KkWoZDaV\nC5IPke+nsEAo96V5k9zg4ubfl/xUY8Q4qHTkW0PgIXajenRrDWznJLyWUW7N\nAVUeOBn6GEfvjoXbnz+lacqYeqTrMKRJXRHQa65DGvO/hjXnTROU5mZdEDvK\nz4ZwVN9v/jkcdQ/jVVnp6D28Dd/kkQC9kfQ7FPbWRRV3+NYHMwVx7WlTKwnW\nxMykhqR9jC5TlDLaoz9PfqJsOo5M63NFjWERtgs55cgt5QawFmZtwQixXGGp\n0GUT\r\n=3RNy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaRUkoTmtVKTEGKr7OuGLdLTqSpmHWq9/nsfhVrqykHAIgEtps0mZF22yjw3ZyEBHKIaF91RrZDPn9fc/4QnKgbRs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593561171314_1593561180082_0.11699960833899992"},"_hasShrinkwrap":false},"1.1.0-next.1593561417109":{"name":"playwright","version":"1.1.0-next.1593561417109","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593561417109","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1FSqBoUa9gkfj+L9hzyA7bQZsAGsX8Fsb+n7aRNMuNVXV8dJHcUHKiWfvsiSgg8ag9ktR8jZglddDxi1oU8wLg==","shasum":"5b5f7d0539f60bfe90b6b9d396e5cf6f2298487c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593561417109.tgz","fileCount":134,"unpackedSize":1715674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+9FSCRA9TVsSAnZWagAA2g8P+QHN+2wiFY273Rq6LcPn\nRiHuSGLg1uk2bSzuh4pRbiC1+e+lsgUcH61WpZkyCQmau1zOjKoSkAEkE5/V\nuFhDCXPOq9PXboQjP7qWuUebOdP+q/5Iojys7TyveJWb8ee3zWvZglYGDfdS\nBFRjyI0ZSYtXEbsUXAG0rwrrbGywpb3wA3Ovf1M8y23pdnZ/Gpeb4OhQLAUl\nrylm6c7ZUBx0jAFWi8N8VtlTGpYIk9gUtycnYN3TtUWNgwBKRDHrlOLd10Hz\nKwXLVKG64od+nyDcGrxxRtrOrfzITV4NCj53XBjaQAYiqlYO2Zvt6fNWHcLV\nmMN7wGc1pnE8E3Jqy6EdNiGTzobJLcTDhxC0WF5cmits1K7yR4zzkHTUsE1z\ntYqPQ+sOm7FcCbXm4b1GIipj+gLLFoU150AkL45ywTng6VbrsZpcIj8cyt0o\ni1krN878TUiufUOWwJ/MOWXoeLW3exaJm8G5b157ciBiVuMufrtqqYO2HD7+\nQeuBBsCRG12jUMzSxQH1D67MfBfe7VBumvOqujxtR4tD3VAzWDAyAWj+DW8o\nE2Qtz1hJ6zYD08KLn0QGhyPQFk67p6DyZMK4VPt3zwNsJ9XMZWxxSnGxLrJZ\n/Vpj5ya6MITZBHsNt0JCcq8ETn0pIActuMjxeZODpLuMnUhJsvqKTuqDT9ns\nDqIZ\r\n=kvHl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFKhTaRUzWG+2HFhw+LLSVVLKvJH2pW+lTTJFoBgSW9yAiEAuVlaaOYe9oaYOUksKLY3MtlQCnONnwPo6nwRH5VnEMA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593561417109_1593561425818_0.42248306925247525"},"_hasShrinkwrap":false},"1.1.0-next.1593561732325":{"name":"playwright","version":"1.1.0-next.1593561732325","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^3.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593561732325","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5/ogxmehBlydvzUBTI88KMW7Vsf9ZTenFrO5CnMYiEoHtm4d5U5eohDUE78/Ke3gIPuU+K1uTHYAs83JypCkTA==","shasum":"1cdf7d5fe8dfc569fcca9b2afa25407072e9e6ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593561732325.tgz","fileCount":134,"unpackedSize":1715674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+9KOCRA9TVsSAnZWagAA+roP/3SEiWLxShogZZvfAJTq\n0L+wWqbiuQ4bOP82hfnIf1yMu7rb9ukwZqFNih8MC9BdvtI6NKUcNrnrtw5G\n1JaHA/i4KCpxzQNMX9VhpyyKy1QNnuubTJ6VZuJ71JhO6gXK0aRcliRzvmPM\nUWjMoTzlg/bdZzrsm2lfBZSDmKonW6HSiGFsn5YAh9i+UXFS9Gmt2PZ/KTu1\nKlh5+sarTDieFENshLML6ri3KHzShWH1PyDVtPDAQPoDzaEmj/lqa+KYzCqG\nJblD2WyTbiaPEfJyH4fOvvlAH2Fjc2X7outIfVD3D3YHuSV2kuzgCf1ERh7o\ngalRxiGWfEJWdsDsH6rTBvABgHfVqZ1bseHLQFUerhhbE1x2ebOXn3RBt2jl\nDw4Ms6SqCpsTlbWaxcZ0BsMtfj4YuFZYoCPXTgzPQJRQwwk3EC7jLt6OmoeT\n2kqFVuz3A9hvFRHQRSFnilTcqLUbVKtD6vp7ZvxEVBr8HPp23Dx8gkKp5sLE\nKjc8bEDufRxlShiHipFkrK4HGNgyfEJd4lCsKr3SILjBW2l/WU+DyKGt6ZqL\nS1c4YaUUNCHOkTk06x3XDmY/VsHurbIEVxyHxJAxkSkOPyc3qguEf2zuD9jI\nT7s903ERpBeDFpf5Wt0RqUr2qIdmCHz+bgyHLmVpP5jMouXW5mpLowCdID5W\nWQFw\r\n=W4SI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPxAT6RC7HBFexrkTDXIoyZlEnOfeBWYJmDoXSPBZBTAiEA2y1M7AmlIOi0OcfI6XQ93dQNhbcmzZOvR//S04cjFwg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593561732325_1593561741629_0.7910892009333446"},"_hasShrinkwrap":false},"1.1.0-next.1593561933113":{"name":"playwright","version":"1.1.0-next.1593561933113","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593561933113","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WEANhRdVA/Z4eTMTohiT5040eqhs6PpL0iJkygbu4DlLZ7hIkTBuqrHVyQtfA2lMizWmNuXK1LNUlpZcXoqrwg==","shasum":"30993e8cdc7b15bd9c59e90877f84638a951dcc9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593561933113.tgz","fileCount":134,"unpackedSize":1716039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+9NVCRA9TVsSAnZWagAABKQQAIdtLzNYPtvMVK+Rv/8V\nAqx9A4ajnuzw3/H4hdJ82FXkEdY7XTb74vLhEoI/wVAgQJ5ZKHSiIhBhIQfY\naGDyTJtWucV8Na/cNBMWLS8Dq7lyy2vEg7d4nvTeaZTK/pYbsPxmozNuxIl7\nHgf0v0+r2mWMiapTp+Ry5jzBmIaZU1DjAG2CnSQbN+ViRqoWJCrVD8n7Kov3\ndfCFY8ifpqKPq+2R8zGuMcuxczGcQr0cnn7fHPe9jzGnYuA+qhv/iWTuYKEn\n4N8oc88eHWzAqhuZ513g4xeNuUTR8cN9mu15OTLTUiLq49lgZTVhIFsObKwh\nVoZPLID0Q7mFw2JnCvisV9dAOg5XbtxjqgHbS0/o+f6P2ZsEdQP1q9YqqAf8\nc7KPz/hTT8J+9LT1c+w4j620Qs/UXVBXm6MNA4jm3VXMOQ3hkjeSHzH3XES8\nkTi2A6Uo63UDA6WIDsUQtDGcNEHunj38vpPZSnQQ/d3sbe8DkBRCO8M2SX/e\n5846Hu/Vdx004Nk2/P9nNJqGfJe18NwGVO/HwdQwGHoGeDNTToaKLvWaQqBE\nMO/8EJlhW7YQGEEs9XnTzGHBqsZWKjU57GZsdA68JmJsu42PbG/qV4ku9ZcB\nbEreQfBHKnN96iFPkIiGaFCursz1s6NYwxgzLXPAIMa8TyK2JhzZw7s7FPl9\nKFsB\r\n=dBKJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZZF9Z+nFtEWJ8bu0lz0t4vpYpHgozoavBiDzLgbK8VAiEAkl5jAxhD4CIBl1uYjW9Z0UbGnToV3Kp4lJHnQ0F/NiM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593561933113_1593561941073_0.45909193918704694"},"_hasShrinkwrap":false},"1.1.0-next.1593568399948":{"name":"playwright","version":"1.1.0-next.1593568399948","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593568399948","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ZXQC3tqeXCpxe9IT2VUFEa3EW5+ghFW6M4qxxDKsyDjsoC7CXot25/5g4d60dy1lvAXd5x+q6tpWQyr8q/if2A==","shasum":"621256afd4d829849823730ef7279a8e4b57e8a8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593568399948.tgz","fileCount":134,"unpackedSize":1716039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe++yYCRA9TVsSAnZWagAAT1gP/3ZO7zNUlMzmBdkgrY6H\n4SMzdWw29h63N7gZFV8RCmh4xBq4BQg92UNyN1Hym6hLk2xA/vCNWyhl6JN3\nvYtKSKUxQdP7bW+NWb6KmEStz+ubSNdRFI7teigljtQZVkMLJiotxo6h8IH5\nrpASEVaExFnCCXcrav1Q4LB+HN99g/WWop1x9YhCvXB43p1qIO4/UW7yUTh+\n/UAn4h2yc8SM4SORUKORgTUdjksjIpDSVuGAvspXuK0Aoca9AQBILkf6eBUy\n/8v/apm8zgoSyzkIKMoYwtC6+96zoklFS2eru1sW/2J0LP3VHvx3mUWhWBcE\nMS3SWIzNkJSDhnqxKBA1K01v2ujjx8Xm1rO65jTxZzdy9/syFZkj7NXKn4of\ncOrl0NlABplCjwau8F1S0mUGIbwFzeF4p9ojMHGayO0B74PoTPSc30jfbVDt\nvYR7yv50sAHsWFZ9MD5q2tg+L64Zmz1z4MZzR9SAjN5pWU3QI3N/IMbWzvhz\nmsLQsb6TTVZSOrlbf5coqmveWWkLdi9dQ4SC0itqWYCv7fcoKBW2h89DI4i7\nkICm8LXDVfsjQEfNNRqNtZhkevJcfPNL7EKpwI4cBVYmdyVgACdwU6gM+QKf\nEqYUmtN5m7qhDjLP/X6nQZyE+tUdOgdr3Ino5CCeu+Vi0QIx/uViDPQURBxr\nYVAF\r\n=9znV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFTuMQenW63siAkGs5iXLIA/FWbACclnC0YlWAzMRDDsAiB9FBkVrWL1hifSmtTpfQSVL6UioUZ/4gHr06KjvPkpYg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593568399948_1593568407901_0.6790669241033584"},"_hasShrinkwrap":false},"1.1.0-next.1593577976433":{"name":"playwright","version":"1.1.0-next.1593577976433","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593577976433","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ihfMueQVVg17XbSDowCh0qeW0ZQGtNjLNAjTVC5p/Fq3U5L39kdL3yxl7Z2CT68ouRgcQkq/R1DwzeZVreCEeg==","shasum":"e3f6807765dd1d0aea5da7271f0383f9dee652ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593577976433.tgz","fileCount":134,"unpackedSize":1713218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/BIECRA9TVsSAnZWagAAcuUP/2iDfk8rbfj+EwtuX7u7\nEY7Ruqn6MOUy4YHd6F46oh1rprnA5LCKqI1/H4QSXANdtDPm0OnFb7rIZUfF\njcjxOIZbwTuWDu5swwH7cUmRWhIDDBvY9YfycAu5LKr+78Tm6BecpjM/lUrd\nKo6vdfzyfnlnh+jAglo5l+KMoqkSe5kfpfZ4pITRwPbEzGQd13xbztwig46H\n/9RUBWSitnjSnAF8qsv+ssOne57NF+mVttuauAyFkRU9peW33weHWtbA4B2B\nVuLyfSQRavipoAUXO6X/MV+B8GJhAPqbOSK2GtkpWtYD/0hXQE3LJ/C8X6CM\naaoK0UhUQFOqGCT7nzihkrk8130xxRa5WGiI6gV2ID+BwCM+vdwCEY81+7Ck\nj8sqHKa6GQbIVpd0B4XTXCxCMCOVSJdO+ANdzvgxDP0XJ9T4h4UbchcWuJby\nxrC+tE5eBwngVOWhA6TrsOgKjity9dADkUXijIJ535UQ4ik3Z0GyyC/BqvM7\nWTB05Mbp/Il1nIgSoVOBBltWCC/lTLVlNF5fkqGkiQ+oxGtbYn+EAFfUjg6+\notXgWOjinuFxnI514UuI1U5tnrveafk6N4KTvKjmYIuitwtR2IdsGvb6G8u5\n4UEMCOHN7f8sw5yPfZI9C7Pj/WBaBst0t5GkYsUSoz15pzxsUnyGU0/RBN/A\nOaM3\r\n=XJmx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAMZsPSWQWkYUxI+FdqnAZ7hGn4kC8dTm5yJaYkkI9+gAiBVD7WRIlFXGoC9Us9LaNUd1hMzHdU6efOVSzWzmN/LfQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593577976433_1593577987815_0.8599884165364071"},"_hasShrinkwrap":false},"1.1.0-next.1593580986008":{"name":"playwright","version":"1.1.0-next.1593580986008","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593580986008","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oLHPSzhcVwzNzf/SOosn2kUnRqJgW33sV5LkXH4WEO3EyqXRPgVhryL8Mg4GZGK4h9zPax8UWgZLsWopA7WbNA==","shasum":"73a0670a2cbd653237b2be99df58b2aff2d71c81","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593580986008.tgz","fileCount":134,"unpackedSize":1714725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/B3DCRA9TVsSAnZWagAA56UP/AwYmY0EZ8YXkT9Hd6vu\n1W9TzOPObI36xRD3cFTz99TJ5gc8YDMkcpzU86tJ10Oxhb5GSBUrGCMle3st\nYTxEgZSYdp5dUDPbHhaXIgk4opTLvjSLJKpHQfssyFOXdoRzaIyvbKTkARkK\nzFARD4FNoaCMmaZMlLGe/HKRravjYsp7PjBa82cwpNrH0hU0pspJyywdPLkh\nsKkpWtQZrB7uqjWRgCgcMjGDSWd+B5UwMKSZfTuh3nD88eIIiO2b24Haug3K\nHe7+syQSpZYcyZRoxL4PiRE9k5wPcCFlECLfVVqfNxtZrsD/k/tPc3Uai0AV\nX5JOx13AEZWg4Frr1WQGbxNuyDZ4N6XPTUJIZ5QYkq2bYYCDkwgDQ+7AYOgB\nj3SbZ6ZC1yO8jJzVOjyZQzsFc+I6ZgcQZ4Br1f8eySfJ9kzElANsUJuGb2SI\nvgH/AsrfY4ZL97GZoBHRZc+i5A2IW838Psas+P/ISsN/F8HDVhWsMC2KoIbf\nHCZ3bDmBG9buoPV4w9qgF69b0jH3TlGEqlpZlfO9IxxkafEZNnDEkCyMkobU\ndSsXbgfJV3x0Xy5o1ZnbZ+dvl5ayGDUvdni5ViRVBVhHWP2tG4s58VRq3AnR\nRLY/6G3KryARFbG9keTgxFnA8i7DGWPHX0sLe2mnMwjLXlL8abeaOmlThGdm\nzVvt\r\n=a8xK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICa3SVom8tLXj8RHFUrg9meupQuHWCGaav9MWogPDcw8AiA7jAotCC6vz3xIGFLy8JmvA4c5uFF8GqpW6pV9c5rqug=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593580986008_1593580994596_0.4185875862949988"},"_hasShrinkwrap":false},"1.1.0-next.1593585380461":{"name":"playwright","version":"1.1.0-next.1593585380461","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593585380461","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-O/zN98SGEqpDKbEwVAFfVNLP3kVExhf6Txok5eY2hnN/p2lbosbEpTjJ55IeiqbuGY5bqXYX03XMxy4Tk1fJvA==","shasum":"632a672892eac8fed8a142ab51635abe44bf9f9f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593585380461.tgz","fileCount":134,"unpackedSize":1714725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/C7tCRA9TVsSAnZWagAA+ioQAJ/fFd0np6AYa/Y2U4in\nSbIHLJ56gThBj2IA1owKZofTnS8Gfjy/NfT8WSaKMGArZAaRG3QCULxVkTqP\nx+FW0CbIc+KEvcvu/S238OoN0vMIsEfvu2wYWpjyaismVCDJT7rgYLxrtKN5\niNU0dwPz2um8UcF78S7GMIkV1YEIkyPSTiLGwyQDGs/3EhATDtnQ04W40JQl\n0RD2CvoIwYHpbM1MRwqrcYZyNu0tEkLc8q6Wjo51ryHiMq0xfZkzdtfao6mZ\noSL3zWbHLxmRHVGOVfnyBE22jomAU2OqqwodhnsBWFHh42yBWtAUPfR7W6Vw\n05rleLRvoPyYSWemAT7ALaii7viWOEjK72TM5qs8pn4+fRZVr3gVa4frPi06\nNA7o3ZUaeE2T5k1POsKus95K7ySfC70KmDxzehgFeDw17Nv6qPFUQ3c780lu\nsQVEOP7T4Uz64SIbdGu87kRdVzV+9Gc9XyMoMRk9gC878yVaxMFvsV6r99U7\nx84SC8OYR7OuaJQEIMu/czSuPggcSu17WmzPY6fH3yJbqK7DcJ6wNGv/QVrz\nIAG0rJWGOYDyr8h9I6JDPb2B3CaWR5vaPvNIWnkROp6xz48FXSuJdJgWYDVK\nnnlt+7xRcpJlPnJmFG8IIKNNZHgIQHCNDlDQyHeakcqvvSl8Qpdw1ssXaZND\nlFRm\r\n=6fgZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGiUuLTz1vJUYXHZGeNgz6PjrHwYkD+u5SnPAGcSky3BAiEArhci5YqUBJRodnbnFQQhKW4UUnfR/bPLxJ1ji3Zjzeg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593585380461_1593585388602_0.48744887973661255"},"_hasShrinkwrap":false},"1.1.0-next.1593611509645":{"name":"playwright","version":"1.1.0-next.1593611509645","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4165.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4165.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593611509645","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-or40Xq+xJ1dpO/1NqlD6RruS6j0Jjivj6WF+cdWhTMEK4a/hOBVzxqkOBtuIwtI6Pt8sqU/a9lRym8hv/MDa+A==","shasum":"1655057fe669e3784584c879efec85bb7a762d74","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593611509645.tgz","fileCount":134,"unpackedSize":1714725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/JT+CRA9TVsSAnZWagAAgRoP/jmsw5zI+DpmQ8tCxhOe\nbnx9oNwjC/UtI+r/24EizX9FGPZd56L5aneaCd6NMGqFJdjUtgt++ij1dEwk\nymbt93i6OiI2LV1owT2a2EVu6yKbSrnDNo2Cg/dpkieLvOiZ59nsQ94DzN5K\nOlw2znyS3Irw0qVaa4qkPDxO9ulODD6CAujpujjnsoFMRdekBpJ35fgcU9KG\n7M7r2WaCebba1/sQwPm8ELsCpPZwghQgyykuEKERmqO6V6qca1hEPrwjacf+\n4+XdKzwiQO2dWr492gkORhYB5m40LHcKCU3ly7EkednczKtAleTDQDVsFZRz\nIhO4UxHUAhShQmfLlCHU3p3E1GtdPnY5utkJUrZmuxIB8mRmyJ3olOefRrrx\nDoAy+T1kcxkn3o4sc1W6OYvmvvI6bVRIr1PVAV1AvTRq4fWXB5kPSZ3pQ0C+\nXWJ0dRtIPfeNzqq4XCSpEEoVRQeAbkqV60ZOGk41WAZWVwqqGfQN8ATkRG2E\nQxFvjTh1sUvjZAOLOMsrqjnVgBLh4LNGcvYQ+rgXSksZC9b2HTQeYcCX9Cbv\nqzFdDQPoLFKEGn+EKYS81L9XzDicro9LSSFlnOQ8p5RoigqQ89b/P1AooRSS\nQ7HF7KGSYbOlMLODXLwjpRfJRb+v3r8eyNLuoQnKoJVZuIluNw7RgH8t9KJM\n+Uv0\r\n=Qry3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDao+kLAxFmW7UlDrInirvKW0Q4hUQbxoXFaGjAH4VaPwIgFg4KeKcvPqLzygO3EFOq26ZO1nit6HrU9SsJ3DQ8zaw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593611509645_1593611517461_0.9223314251247761"},"_hasShrinkwrap":false},"1.1.0-next.1593613758921":{"name":"playwright","version":"1.1.0-next.1593613758921","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593613758921","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MDH/xtZSDk94BJxhlcoFxtaVgA1dzm71942bLR3c+5o1x+TDIJf+EVkHdVJtk36BiiG+T0A6amRZCYITvAkoPg==","shasum":"07c39c9de0850b7302e6087160f2ed95f155215e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593613758921.tgz","fileCount":134,"unpackedSize":1716891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/J3HCRA9TVsSAnZWagAA2OgP/0WAgSXyHKMpgcA9eW2g\n+pdkWwwKdy2EV7IDpUGS67dR7b8rS5Be61JyWjMkkGT2XVe/68x3P3haWYE7\njULqzhHG6WkS8Wt8J8U4+wIsb5da1ne/Roe8elMMbjhJXl7+95cM6VJaFZHQ\n3ReJ27qeM0S+hXdqHufBD9gzVV2e1zqUbJxaH1QtOMZtWtfMIwlU7+s2oP8a\nCb2dR/fSkFDOba8y8BQWwlnZP+LdeKJDiwYSo23EdmSMwfBguMNgmuJAdSTs\nFAv0X/y7wgKb2XXWJI1kLxKqpnB112wNFc7ZwyloOJeKqhrgo9A5uV4P8+jx\nlWeC7+nspHpXM94PC6GnpkfrNlDYcL3/1DILTPUi4Bx0FXaXmra+wBc5RkXR\nCaLscfQyPdRxYyQHjxz7R0wV9g1YiZ9unwWYlf5+zt4Pz1FVGmJwdHAmBB5L\n7Z2FMw+VVCUj3w6YVBotMQ0ulQ3u2MYCbzyICKzeguHZZ3hmWo1SJD/ZjHoW\nd7x2jTwL5WX8gUHdDrUQNXE+Au7ZdsOHw7rzF1gS6NfRbTCile52s1EkKg6O\n5JZrobipmOljqLCWcqgpaA9QCrss+akHT+HVf66MSwvZ6fNjRV4LpWfn+1Vs\nlcLCHSKnaQPmpYxUoArso+idsWhKUO985U5Q6ihrawseYwl84jda8jzw3NJi\ntEQL\r\n=u7nT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDl2RsfmiGaJ9vpBHf+s5gb4+vmfkwGhuuzT0Us6vK/FgIhAPTOWX78qxuPJNgAaY5IEpqr6Yv3a8/VJDaeAibQZDo/"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593613758921_1593613767356_0.07970848948655584"},"_hasShrinkwrap":false},"1.1.0-next.1593621892707":{"name":"playwright","version":"1.1.0-next.1593621892707","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593621892707","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NTDckxaOKCRXjMnyI8VlK/cQi4Ytp9i8DIXxK6jDg1Pj4yvRj4JxKUDXp36IYE/3zoY8Zqlyl89hlUReKWkpUA==","shasum":"4cdbcd13a5baa652b1e9a6b5cd991a5def867aaa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593621892707.tgz","fileCount":134,"unpackedSize":1716891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/L2MCRA9TVsSAnZWagAAOYcP/0itKOp2Y269lRcSwehx\nolsStvnHBDYwvafakdvsDQ0OcbH1VjlsxefaGjY0FMxd2Z39IjiSMLZl6IHY\nfOhujDgbSihn8Yapx173zTsdGEE10WxrY0HFW5JU+Qd7eclGIkPlzb/aN1Qh\n1lFPwV3HxwTF38UHWvJu4SXATgs/zTfiOS/efHohH18qXhxAvATujypJfCpq\nU3ZYKg80XXZ1GXqsXMBdGNOpKqA8d0dtu5XGITc4Om271l2Bt7hVujgWx5Mm\nzMGyemTMvXrR+tt618n2fDKDJNbCPqHKiEnVR05+mHfGt63PA0m/TOcM0kML\n2qFpstvF/RMOuOIEc/HMxazIZa3Dr1Yedk4ehCvJBRQFOB/p8lZJAnylkG6x\n4GHCD0cDsMh0ZrdyuxmgclK1HSZ/je6g3/q3GylV24h6P4ANHdIepgUff2/9\nSMOXdU8sHO3GHJSjdPq/JPQp473V7d2PxK/uEeP6KlnzP6uxSlbdaylK+tp0\nBpE8yATkrO1IcVjkxR5s13ThaBPcJoOFDYNLjq6Ga/UPVXhWA8r2IXutQcde\nnlePAui1QCT9okAwfcddOuNtjD2AY1exOAkmUaMgC3wGGPb/fee2uQVnSz37\niFBS+wYrcNad0pazKDMoRpAK8KupgFZgpGkYNgqslpWaNSRFSe8RnRUNpLF5\nGTNR\r\n=JKPv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH85ibv98rjV/vt4y8jIAS9pVH6KBEziGA7XXBNzmJ1MAiBQarFy6LxJuFZl9B7fxlX8n+FMDN9HxwzGh3gG6pzhZg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593621892707_1593621900207_0.366702897330323"},"_hasShrinkwrap":false},"1.1.0-next.1593626306211":{"name":"playwright","version":"1.1.0-next.1593626306211","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593626306211","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1omzNHxgtJIEXZmJKmWU3kTk92JO2JD5FQXB0pN8kwF0MpGkExDj0A6dbiBv8FySOao0OzJ+kCTVev9yqgLVzg==","shasum":"6d09a0bd7e1737007d8b41bcade9ba3beccf75a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593626306211.tgz","fileCount":134,"unpackedSize":1716891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/M7KCRA9TVsSAnZWagAAhg0P/AtcdH1z2mgfPrf+bLwy\n5lGix2KRzkkys+arU/RN3CufAcY5RPAsE0+GUqxxdqb5SIGwCFL+afMdDqsD\nSDdw26YdwqVxCm9dtYFB2Ih+RbEMSSD9tp14K21q+sD0c+Lm+Z0tBhPSRS98\nOi2kZB1U2R6Dw017Fw4rJPJzoLnvhQoncNK/XZ0uGTLh4oSc+3d6KvJJVnFx\n5qo0/IUctFT043WzX5ESLSU2ItIbHrZ2emvvTPk5FgBYED56GVW3I8TJ+Udm\njsA9OOURLWxsiYMYv7FD4oiBZi5TIw8Uutnjxsn+ao1I2h7Jo5o3KEkaXI5W\nDBWnlWRTWkRZW0e8o/s/vF+10PPWNyL3+hvele7x9ljggjSDqRRBP2jiOTJw\nSnlYgMBXw9kpZzsBpuclKn/CKDLAV+VWzrvboha8iKV+JZuEZabAIvQ+4MGr\nU2095BWIxSw/Qhijt2vCkVPzWnhPhaMouZkOM4+5Y3IpmeWLF9Anuq9HNj82\nRk2r0PAEE7DDYjz3lnRvS+WWjwzMpD4Ldic0vDHAhLggfuHdop97UNkldRdU\nLO2FzHVBFIEgBjhxCYghAzh0wnIEdjkj0t6380envAK47FXwcydrciUqXn3U\nL5xXw0ZhU316QrARpf9ECywxCWR2jWmTH3KuI6vOiGFG3yVEfzrQ+6j8rHY6\ng76c\r\n=G0+W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKShQc6RFFBqc6w3bZTmIMQNlM7upsFUaLIlV0AMbuuQIgUyBXothxPocn5FCg/ZcuQT+pHMfoDc4minfuGASfpdU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593626306211_1593626313850_0.6558776700262297"},"_hasShrinkwrap":false},"1.1.0-next.1593635404714":{"name":"playwright","version":"1.1.0-next.1593635404714","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593635404714","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9pTyzgHK/1UF6xb45K732thcNhhSFxJczkCsILi3sB+r8sVWj1S+Bmw3nu1lF4xqioP55frU7sxYlcvfO9TRfA==","shasum":"037d7b5d5ad79b653a61fc2851e7798a981ecbbc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593635404714.tgz","fileCount":134,"unpackedSize":1716891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/PJWCRA9TVsSAnZWagAAlxkP/A/R9M4PhU0unzTDBDSE\nLxFxouOpIn7KjhKkoL/N49tHhA5LXzNj736kAhMSnCfZJeJlXy05pOCWmhKf\ngMRkntyy6uxJVlaKmZsqmk7zCB7/KzsqxKRwgqgI5c9NwmuJMcSltoHrKOQl\nTycPNoL6YCsOHiFdPEVja7PpkEvoI4DNZ5gacsXIBXCfC6czmZeKmDkDxyOf\nRy9KFLzBmXLUAztSrDRE0ZJYOC2qMy9VF9+BXrTPWm+GJP+AIIkmtCRAiaSQ\nY8m3MTB3QwQsuUVzG7OCvRkadmvzozKGWhaf+A5XRBsr79lqwLKaZXWm/qEv\nLRfyP/gj2lipW5I8O/rpykrgK6MfRmPxmsoTSlFZK3V4sc8MeiD4xhdKZQqp\n9aDKCY5f0iWSOACn2IWGdYLyVWrecDpSxULeI2f5KXKxCleFfd/+OjtbiUPc\naf2aYxZrjLiVHtXKEDdtYfwbJw11rwNsm1cpOmwytemgBhvgUJt88TRIJaaf\nFW3AKTd5+tol7WxX1RNWSsTsKsLPo5+tqgXoMZQZNQZK0hVD++9G3vEAIVQO\n3sMH/fUTimyRWNxXpa4LWEU2pnTyl5cywigsf6D+vL9yOI/AT7xS50/hmAnu\n/yMAey7wbySVHSDiG4SEXJD0z9ll8qa76CJU1CyMCBngokVwIvoXOkq8Tmox\nnVfp\r\n=CU6P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDowYAczzjpXnWXHNwYGH9HxHGXSosIuJfZGM5bxqXMMQIgRUIqEzoBZr3/rD765BD4fORliuGvN5Z8fZKSPRlrXvU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593635404714_1593635413390_0.9965617014884716"},"_hasShrinkwrap":false},"1.1.0-next.1593637033257":{"name":"playwright","version":"1.1.0-next.1593637033257","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593637033257","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-D9VjdnyrPQumqy76eDvhEyYzlL60zzcrj3NgQJ+RvyXswACS4EjMJ7J1Brv3so/kF1KSXYU5RDFUOHAW5MQ7WQ==","shasum":"a586ba154dd294d00ba128d9b2e7b0510c90d429","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593637033257.tgz","fileCount":134,"unpackedSize":1719503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/PixCRA9TVsSAnZWagAAJ28P/3Jm/RVuGJ6PM6Tj/Tx+\n5TxX3vP9cs7wo5gL9fMuOT6gXhuw3aiY2XrLA9Q6qcx3tEnc0+TbJh0jMIXl\nt/ew35biBkLKbHuHmGEI+p3brk//il8EQoxpr0/SLP934bBxbHCSEno+YVX6\nYduHuOcdR6DhnAgfsiyUmf8qLaaiOsuZmEA5R61VWZuNAtTlLjVXKBilcach\nz6dany6/mMRsWGQY2BPUVuP0wPcm0aZCbb/Wgdrnx7A9g8OT5iGr91oIqdVx\nUWHCkMyUQ/pUDeH+FqUqhdWJPBulcoHBxjiQ8AMw10AiopenZFJbaQg4L8EB\nPtQLRfwsZe1jOlCXSQ038u0Ue4NRwz5F3vqY4xpAt5Df2TuHVERDXfQWXaB1\n/cyFBddWDXVL2Kv74zKekqx9pNaXcZfmP0g13ZrYGZ8C+UHtYRWZC53Ko4Ce\nybf0v2Yj0RhFN0M6V680PHFTGDLPq1BT9dTgxzMmdmHOk7mL3PpgnUtPrxlX\n7798/Vf28b9dMnfJXTel6YmRm4+ZyYbH8Z2vMFPmFEMOCckIejzdzjpwALtj\nw+5NJQfoaBHJ0KCCwniNeFbpLyZGmUmZqTFqYwsoUE/5buoD2hV+Iq5fvlsJ\nOXHNeffqrY3mn4krEP/cCfucNKw67d3id6hnElRplfFL+op/44BW0tzVJzID\n/qMU\r\n=yalq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwOGFN1GrKmjW3cq1zUVnnlKiqgumxOH7La3OrIUFBAAIgOmDe1SkRLd/8AXLYp2IkEoOzJeOZ10Owm8l1CeWQFAU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593637033257_1593637040867_0.9995223224589231"},"_hasShrinkwrap":false},"1.1.0-next.1593640258739":{"name":"playwright","version":"1.1.0-next.1593640258739","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593640258739","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-c2zhnwqmxvAQ3lQ5gz/XeIKsEEF6Sb1r0mS0e0SHHAAYXT7TEYmyrcGvPVw59/NpDW62paYmHoQcyJBD6lEoYQ==","shasum":"6e958c6f1f74047a1722913257806ffd90fe6c15","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593640258739.tgz","fileCount":134,"unpackedSize":1719503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/QVLCRA9TVsSAnZWagAAp1UP/0sCRA2ifT+zwcfqsYoM\nft29zsG5IOX3gofuhRnLlVkdKqoIDRtYE5PgJofidJZFjYLYgtmWFdPyAsXl\nJHn7A29uKoM8ohNbVZ9E62Fa5BFwG7mp4uliVhG8nm37BGaCH2+8QvKx1lwt\nO6k5ywjJyWejcddj03gYhubOSClI7lW9v18j2euXdj9pmF66gtYwF46hdCSR\n/7gDxJk1X8jB0vq0jvJ9JaJdCF6HkNyKNBWv1jk+ZW+A+CYCK9eaMjCB+oux\n9n+3kDvFFzU1zM/8B0r87DahZR4sdw+wlKX6ORbR100xpDkSeIdUlpIjljDW\n1Ti+AD96f12+LaEKLMA2KS3lTEAaPpR2NK1oRPe1P+GEUpIjSbFGjCrt1hH1\nu9wjlTg/Qd4JKtO+AbhDhTblj3oIWH9KKKvMhV3DhZ4DIlzj4YQk1oIp08e/\n3QgzK2K0rRtGkWnccSiF5rrz7rH6oCsMv77Ltk3vGMHweugfgDZ6HcX1ZVzy\nESXfezA4ALs4LB7dat/JoRkkmFi9/f9XREgB+QSgk3xoDf/4co/OtbbjGNS+\niF4GLD0pLjYmAkBBB10nlTz5mcfz3ynEXppJQglEufzlh3frBfaDEVnXT4yA\nLORCXh4xdz2wAtCu42yrB3OguJkdAcZA/BynUanrkxyTgrI1miHQieWKPCGQ\nFyJI\r\n=DBwy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAX+7h5fwKCf62cyDq48uwp73KFk6R1yJ1ScKQ7dNHybAiEA2UKHMsrCVf0eTAf0zgXIb03/PPUp/lcBqi5/hakD0fM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593640258739_1593640266806_0.3929418924581771"},"_hasShrinkwrap":false},"1.1.0-next.1593642267696":{"name":"playwright","version":"1.1.0-next.1593642267696","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593642267696","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+23vaexFeTUMmAR3021AjkjdIzfnOXmgHSLhKbv+Ell7W0WPBT5MX4pXyyH99gh2MOThU/1ZKiVA1ajfEL56kg==","shasum":"b74de1af0831d9665c711351c1a91b3e067f2332","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593642267696.tgz","fileCount":137,"unpackedSize":1719889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/Q0jCRA9TVsSAnZWagAA8W0P/1gnekNmusmVwBKEkIwN\n4BlxyJPxudjHcZvL9rT852yD885+7nlnb5JlsZ3Yp1atD7fGj+EjOXKJaCyM\nRHHRfr2yu/aIhTb73zxHZHb/eHghQC2PTsLHDyA6XQ7oMt9WJQUT3gPA0MCg\naLl5PG59RHCT2k3Tz5+ovDKiVflFLrxjgcvmv1Q7nNEpzW1vXR5HC6Hcvued\n0Gnt3D4DegxBySx46ZqskRJC8LMOBr6og1W0Ya4pwzV5UWC9gIf98qdv2k6I\nCIeLXtNuWQWEdBURBh6FYCOcKm1ICSHMeRZhhVtRX1WEidtsgptyu+Sbw72w\nk/0639b13D3aOGDXKpNyFezVTp+sad8JPzq5/rBW67VsQuW5TpauXDkBByrv\nc4Te0lL49Y5vsnjtGScK7t7VNVJRaygIWkRi3+eBOcAnf6To9VWZWgDHjcNQ\n1S1WEUz2HyjQ27SQ5h1DYpT5tI8+ZvcwzC9Gali+DIldvc6JPpdudYE7184K\nZq+bmvXVu9YhJ6FjN3Ma82xOD+K5PnN2IJ1YZS2dfZLXTEV368NKQ/eCnUB/\nkptGhWfgzqXeBsFOUUvEGeSEZfpbBZtHayhrot/8YPYBy4OHYafI7aRy32lo\nFiu+PyyXEr0BtM3gEsa1CaKomHnyqiBKr3QepdVbRGXE68eH4uhD+J9gFLnx\n8BNb\r\n=yKvL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRzqPt0SiWKU8Jgk8RO3G/N/CS+RkfnVc0jl8BmVC5tAiEA27U630S/N1JM3ImQ0uxr3CLrt9CIYaOQLPD4JL3xjr0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593642267696_1593642274696_0.15708472716581223"},"_hasShrinkwrap":false},"1.1.0-next.1593644872101":{"name":"playwright","version":"1.1.0-next.1593644872101","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593644872101","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+n6/sFk8gR4x0PtZmafFwgQoo7ARjZ+LVpIMm7L456dpRYbh7ln2MfbxkYt2iVJTgQ6qCz6xgchUVixRFsmctw==","shasum":"f187c053b149fa04f59fd73773f791d7abf25246","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593644872101.tgz","fileCount":137,"unpackedSize":1719932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/RdTCRA9TVsSAnZWagAAUBkP/RVyvqrjFQOxHgAZjIYY\ngsZHNmMvpO+0JCNy52/StD5iSbpeVPVaiYdWGyXvOFwaCuJ6qAWCvT61ATTg\nvcoRdigpNcraLlyKJgPJ/uZ3NCsfrRvFaAdNVN1NXL20Oq4664St6r5R49RV\nzYZjGEy2ZthQS/TSws0MQ5FoAi2CwSFftsTgjtgSPvdSBPi5lzFSlipLF28C\n0izrGeDvSyRNdwb4uNh2UGj3VUk6bo71pZViQ63/GaEYbmf06iWV/gP+k/ja\nUvZc3pWg2bUCOHjNaCneuRL5r3QEqbLn4nlF4xu4rY+OYjovYuGRi4KndRQv\nYUJlhs4s7tsmcGUtvFcXj79f5bCsRnNJVtThso49Yqfhu0wAGJZ82+C79dHQ\nsFwC3HkYxsoO/9oSzrhvQ2EIrmhfHeOttqPeG/zGc7/Wbrfc9ubVqoMLr3b0\n3G1+En8l5yC2N7EvOqjCg8FGkFhlmA63m8GlZe3Aht7HOFDDZhXoa8WdQJm2\nkpKaNsCR29f93ifg9D/XA7U4ZCS04CyZVZaevkZZq83B0Y7ILHaBBjqoJ0K0\n942UVoOIRQ2xaxp/UNVlFtC+pgeXrgSf5cnjDegIcmcin+4lJ+lYTCeAwj0e\nZENkALe0eZov7j8HWfDxNbC4W/lCt9VMgTRUbHE+sgRBj69XlbeQ38MCHJsd\nPuJE\r\n=8age\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYkwupRo2/fUch7uuR9OTHt9kb2YlrZLndPplwmPk3IwIgVunXqKfZNjuUwXec7a29yXYwYewm/73f3hd2ISRrwQo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593644872101_1593644882588_0.17211604631665844"},"_hasShrinkwrap":false},"1.1.0-next.1593645155730":{"name":"playwright","version":"1.1.0-next.1593645155730","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593645155730","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-DP5hNDIQKb8gPFSi2UGP8oLh+KZTOqrkWDOxXP7fx1bt9jnAWLoCjyXFOfoApVYt5RVRaIcMjcrQCtCMWxTTGg==","shasum":"3015a1ca38c831fb73dced86b2a20dd1e5714eb1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593645155730.tgz","fileCount":137,"unpackedSize":1722926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/RhrCRA9TVsSAnZWagAAlb0P/A5S9dMWrYMrin1qgzFf\nPdcSERuLoMXdEztNl2YxXlDUpK3ZDKTmqIWd0bvKzi8wu9p6MzzfQx8eDBh9\n2IITnzW26G+EdoBK+9gFQ6yW1xT++y61QQo7T8jukSWvt7Lmy7lMuq+JYEqe\n/pQHxq4BE/Zau6wSiubO+f8XtGK51JXP69X0M6RsDftXJjZp63NNb1o6E/qz\ncNnndEhBJizzy9XztA/ojH3klREu/nRV3IdoyDMuNbA3Ugo7/ZPc61gfTWKR\nYOCDkljeDP9+mPWbVZEVg47LPrLcA6HCrSYnqmsLNmMHF5d0ybuOVRvgCxrY\nm4AfoNFe3epnLXp6SzlIr8GyzN9IoeqDeqw1AlZo2SicdfOvkqvlw73C/UZ8\n8Fvdo6R7Nm7hzD61tveNVpJcTEYqOfr2O73ZlkEYCU3lABpI3XLnXQpZWAdd\naa05z7ZTKrQw4lpC4bjf1ZamcL8UGzrBjbWjA8zoSVtpDvpzFJBhEdaVD4Wp\nyPsaRZtL4xokMaTQDOutnvABiZ0PBCPvlwPUm1ufXlUfyDjBivhXqJZZd4OJ\nOeTKNPt3kPz5uu6opqlE4tY0rbHKtMesSBR1zPUByfkG0+4SiktgA9HCuzpp\nHK+y7URm9j2PPc1i/gdNR0mpnHYwuaH7nXeji9kknPolRWDcvc8kIHigMVCB\nHNx+\r\n=0mJH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnXPJHl/sNUb/H7Jo+tPLJrgV5CsQbpqVEkYBBRHFH7wIgCmplc1gESRMXHCfddwUEXoADW8fBVPxIJqP/3OJegi8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593645155730_1593645162946_0.11467970636619973"},"_hasShrinkwrap":false},"1.1.0-next.1593651250737":{"name":"playwright","version":"1.1.0-next.1593651250737","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593651250737","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UhNYKL3XLaImPaFFlr1di1OcUbbOjLy5eSv1ejmfOfkji/rd80UNaezpIP4l3R6Zc2XKqweooXyD4l9J2/w7wA==","shasum":"0c556347031d9da67b2f9d1ab7ff85bf180e416f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593651250737.tgz","fileCount":137,"unpackedSize":1722926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/TA7CRA9TVsSAnZWagAA8fMQAIK2AkmyVbFyxie6n8S9\n1IBvWbYYbLWujWYswQhiOMjqvyRP0Tf7z2PQsJdjJEOiUMAuK0fSR2KdiOk/\nzU38YSkQNYIlsWwu2ryL+Lf3alStz83oaNSjlGZAVxrYCHcBxmMpq1Q18arp\nLyv/1BRnYvKcvwI2xYuf7ei1232k/lLQf51Hg1yvzMSYsW4BwoxL3dwypfwn\njP1QOck09N78w0f1fNBVZEm20XT/qivU92Zh0FKBKQQyxmEf8h3yJWWdL2fg\nnNhHSf/4YUK6as8iH0drF+uys5K95zvLuQQYVSsp5ubT2JccCuhv6JH68a2N\niYsi2AVxvXpxrWxLzQp4DJzoOFLkhRnwdJLkRnAZ3j5rdaxLgvZIg0QXl25u\n+Yg1Rq5tlR4e89yySc+Dicjld0WdxiDgnlokMyclzrBcrZ/Qv1jR2rP3OyOd\nwHS1E6oxS9SE/3NfcBcxEdN+Cktk9EauPf19iOBLRu+OzktNXkrghe1y4k1d\npGuYRL29XdV84rte5u86z4Y02evRWdFAuz5+YVT4jCGWL8eJenuT8GTSIEFi\nLzCncfTcZkq4LQEzdV/EqhYVxr6tbhJ2yzlOaKUQONNBvFsiPKDhLW3W8XVm\nJhrpcliSZNC0FBTwEO3uR9ohceWs+TWXn3xqS+y84oBzVTnJ+DkWeLt0x/n5\nr2f2\r\n=ZdmV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHzZZJbzyOhGovcP3BXrx+hp0WqC0Qbp9rl/2ZYpFL+zAiB/s4rXP8ksKZ9+EzX4h9KtoYeTnZaK6vs4deiXG9zB9Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593651250737_1593651259069_0.7389684497433928"},"_hasShrinkwrap":false},"1.1.0-next.1593652449865":{"name":"playwright","version":"1.1.0-next.1593652449865","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593652449865","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qdctE3exWust8qHmaV8A9P+FfQ9EKX0+5WIU7s04bPwu/X3VdR9e7ExjJuCL/KJvqBkwrMqdckj/tiVkpKeUmA==","shasum":"ea64857e6bcdf1fa29cab3528d678f6799b5a8af","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593652449865.tgz","fileCount":137,"unpackedSize":1722926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/TTtCRA9TVsSAnZWagAAOrQP/3R6nuQ8xfdheoEuWlTD\ngH63gDDMYXU8XMXSYdvQyBhCq1o/MCDbIR8J3rIuk9fL2xVCxif7tjJtORJX\nJhZ0zrHs2ZbXHnJ69y7kCtxmTvpzGaoqwBmji3QxxvPbq0lElkksxmdE+mRr\nedjkEetjf0E3RiVPgtd+t0lMYIH5pI328e8yqVBLdxxRfdoUcLF5vAorz4bT\nP1Y4uQhwP35brvgdQDJp0R8LRtQuRKIlP7BJPcQNG1MPNKX09D2J1ePWsmA9\n70l7uEKR2ErnNLyvKZcQN2iemWJ7n/3BBLs9lEKIWe9KMaKs7AdwxtnVUqGy\neoJ7yPk0NXXAewqkogdjs+F90DujXCIK3UPYT9pE3UtaPK2Sir38L6NxYJQR\nvx9eq4AaDUs8Nka/FtmJVx2gV1Z9snm4KUgEoRUW1GaGBFPLnGjxx4DjVSXL\n0bkiXj8mQYBQp1relStxWMqyUtyfY6zO3JtOm5BSNgVCxfJ6uAkBVCd+QYHU\nZiMpykkXj3jh94Qsj88fhQR7KTT8n+a49unmIVQuV7YQljkgXUDxsbRzlkOn\nPyfIqoEUr4tP34MycLwXNetFU8LjxxuypUdQP6fLj4RjgYAgXMKR1jmvbVUn\nW8naTTck3So4TFXwDJOk0A9xpswVHFsjpGc4ZAp2DoqBtXDvj1yA7aSw5rBU\nd3ZJ\r\n=bxQn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDwc/RJ7UWY4Q90FbEbQTNjdd4fEhW9nzLn86dxydiuQIhAPOKaTAqmTd4Q8PL9Foco/wu7ToGDEPX+1YUNtQJ3Rfa"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593652449865_1593652460643_0.9974062887935256"},"_hasShrinkwrap":false},"1.1.0-next.1593653566130":{"name":"playwright","version":"1.1.0-next.1593653566130","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593653566130","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VJ/FLK6cOxwx9UIRiN48Y1mFO2sRLoS48q6o5CDYk5Ylp8z5MYD7a9VrYYMIqAcQmp2dPQRZODvZJ4ri6k9wSA==","shasum":"e53b8a2437d9f8154e3dd3582859e4b534aeac5c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593653566130.tgz","fileCount":137,"unpackedSize":1722926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/TlFCRA9TVsSAnZWagAAWQkQAJ1kPZa9J35K/LpDcOua\nHiwjM8qGPSIuWqpejEPqdAH6UyghJVt07+3TjBRugUyx84/WDEhrAVC+J93L\n6BzLa9wVh1Yr34IgMxM4UO/kiZx1E4BogSFTgzNxQoTo166I7KZsYwl96uzc\nAZ5TIZ8hTOxOFVm881lv7X7wCuRWhaP3lPyk8XjoEFH7ablTDA8/0TgLsNAJ\nyQUB8JZGgGSQHjQyQ46AHBNlmNm+sIgyCV5uif1gTJ+QusjpYEDCDUICvL8M\nXny9jJFmMndv/AVGZhPMM73iZ/FWy/8tWJJwaHuvczFFNEi0H2saqnjYN7eF\naV617RtlND1Ue2Pj8uG8wl1huMN7Iy9i6w2wNualvG5LKI0THajBgNI3PxA2\ngjKzRWFXeQjQ2jh1904tOqkoGyluymNgpXgRMBcRM4RSwfKGcheJilzEq+bg\nRCfsUWksZ4t5KgWbgLQ6ayEFDZUAmcuF6mxh/FDRejC8p1Yq0wLm4kZqnMEM\njbRsESXsq/gc5knyiBbSIqdYt1ivktYyBrOGB+u6w8pU3SQnodH3W4B75Xpp\nUBf+wGUiOpOsY8JRbmNVd3svxNajyzql36ToIiEU9E/u7N/Vb7v6xBrU3oBm\nxWPPw0C0XXPi8mlkqOGpBR5ckHCqWPPR/JXac6o5osjw6KsLU7xnL6D8o3OT\nXbVa\r\n=FXvv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFawbSSG6JJe3XbXO1KKwRoETYllbYZlKc+ri74MmQujAiEA9ex4zRvybnX/0lqSGMsZWJNF0feLOGshNmCdOGaxuFU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593653566130_1593653573410_0.7698063529427843"},"_hasShrinkwrap":false},"1.1.0-next.1593653902864":{"name":"playwright","version":"1.1.0-next.1593653902864","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593653902864","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-V63TS2JEOhW3/W2tJoy8vjG2mmB+dYXd31+RSzNp/OOSBhW1IzYeZaWmiNmS6kVkkjf1yjp/8jEtpSx2RTKSnA==","shasum":"06b6c185c7ff5a5b4c064253916201b8eb676b63","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593653902864.tgz","fileCount":137,"unpackedSize":1722282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/TqXCRA9TVsSAnZWagAAWDoQAI8D2VepMdzTXbmFSmQe\niEgNJr53bKDmTqYf8jLvcnkWMVmOKNJDGmgW9+7T+jOp61be3MQ45eP0cQnR\ncermcCDi8cID4a64jPerVR/qkfJgWB0c+thGKasPVoQerr/O0S8aKVVQcP9t\ndECkZ66c9gdgGqICTk7/xH/uf1kA1RyhE/gcuPAH7WWDQH6K2n+hOgMPCKAD\nLYxtB/FdknNKUKoXWlwtIslbZJEO4e7lsnf9+P2B3Ap3csEwVYg9KDtEoRwu\nWRkRMBApRvVxjxtx17fVWEW+dL3r9zKL2lxByTcxyM7RbSPmNJ8LBNET/OA4\nv1GKuhS2fT6oNdBAAAOCnx1vrKz2W+69sHRLtQybmFHf4H+RwKV6yFR+JkHC\nKvRmF25GhhcYMNcOcGvNFlRx2TqxG/kj4F3oOshbrBghG3pT7GLjeIKH/6Pc\n8xqHckpMyP+E4Djv7qppqJZQv0zWmu7bfX6WUY/o/EwFzAFvu4js/LdRpWtN\nnOraDoAuo9YDn2k+iImZU98+D9Tp6iGrFimkG57olIIiAElR8zIMLNxLjt03\nksD/FFlNof6qV6EzFiblRae20quMoGs3P8HuB2CmPZ1gnLRr+2hcl/SN6cjT\nyf68HrhpmUXboxK2UOF6rk++5g0/MQLkVkTYMOww/qC64NClXOBtfeWXE6mD\n141d\r\n=cz9z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMGUylxzCXJOJwqkFIJpy+zQvMGrOo6pJT72Lpn/9e7AIhANFusOUIPv58ALiEqloN0oZmVzFRNEbInvMgG8wSb+Zd"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593653902864_1593653910926_0.5625838996024664"},"_hasShrinkwrap":false},"1.1.0-next.1593656364914":{"name":"playwright","version":"1.1.0-next.1593656364914","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593656364914","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RfzivVpdRN0lkOG/9JKQeRHMcPcyeQOCv3gOfTpT8jm66E0h/9DF1pn8sUBfU4P49mRzUtXldQFSyTE6cUoiKg==","shasum":"f36ffb7917358cfde52beb446b51dfc1c16eefc3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593656364914.tgz","fileCount":137,"unpackedSize":1722244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/UQ3CRA9TVsSAnZWagAA4C4P/R1zxCk4iMKZIwsUU7Wy\nk1ImVA1FprE5iisFFZuj93QeHrMW4aBgBMDySCLcYPO7EoHSUw3eOzqqC86L\nun6yi9UNpggjucqYmUI0VlVMPg2et39Q7zcW+tiKWwQqFVqVVacd5Y82rhVH\nTLDLLzTr9k2PpNtk4o3Xkof1MKgCLogziVtkigDXpSOEOE5q5K8tXbx2XOkJ\nN7ta3+I2eTlgcVavYRjMRjK6hiDv8bvsAVAqi4GE+P1UUokuqghv1ufMKBKT\nyV3XRndfVaoe/mgzgTZFcAwEaeT+6sXXG5naNLHHAL56yKc5Y8f8yZZRehJo\ng/D0L1INEExfkjO+ogsCtwT7obt0J17yeKYLGADELocW4q1A+95YgqMqpWBx\nPvTjKgEaW2uEX0JTHJCX9p/7Y7hW/fwWKZ0biVHuIwYyBo/xuAa6SDUOkilP\nzLjd/4McY86AiQXeuFNDX+YyO6yzpK61uLllzNCnPW9nKshHvIWSbEXHtFNb\nNWdGrOFgZ8vpHatQG4CgcS+nphUr/i4mtge9isMh+Czb1g1zlLO0re5WX/66\njwS2EhJtdyYPa9ZQBfT2sYo9fur8uD/EZjLD+QmKNtQe83mh+4JOiC8C7sdC\niShqUr0DlMTjnJCXfoyLX9A6ReV17fW7nhzBzbv85GXA8OWgfwj9OdYtrUbL\nZfiI\r\n=LOGi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGmcDab/3i6G0E9JnjMSGfU7ItUdQlKdCtW5us7fHDXqAiAx+rP8Oycd2u6vnoRwtiXn3YUoM2YdG2aSmMkmkKpqrA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593656364914_1593656374790_0.45519060309163195"},"_hasShrinkwrap":false},"1.1.0-next.1593666215765":{"name":"playwright","version":"1.1.0-next.1593666215765","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593666215765","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7m4qbqKrjYdpFM5KlpgNNlCoAFB/X1qZrVvChbDYTzZYxg6qZXO40itHVOdBwyEHh4dgQDpHQ8FgueQZ+PrazA==","shasum":"a98a6ec9774f7c5967e6d45e0afbaab6768d9a2d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593666215765.tgz","fileCount":137,"unpackedSize":1722244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/WqvCRA9TVsSAnZWagAAHPMP/2zpUhCKcUh3Tof9bx6B\np5N0onYK3UCcGdjlYxTJpfMf1/F7lQ8RiPkZdGiSP3RUv2TxtUDNxejvBFPV\ncqgykS5NjXAaFIf1tkA1RPDhEWSP/YMC0XliTboL4+l9neKic+Ud7eLvn7b6\ntPRnp18ZVIH0gogKRhHSNzk6LdQVKoQkHB14zTYrxhlkaXl14fW7bp2jERmr\nWMLg6EyRH9+nayUAJxP1nZjy84fSu5QLZQvqDGYZFb4XtIUQ+vOLc30WMqEt\nADWC/oF0Zqv8BEBqLFsonwbtQyCLYsWcj3XAKZ6FFVlboRVZdjX2V8paN+hx\nmEbqbkpG4R42mh16RRO3FUF2zBVtt9/cc30TXYiYS/lLdoKLrmP+43WbBSBZ\nS+ZsDpyxfsZ68nOyYAU/zL0BBAnnmLZvKhKknSqOHPGi9fyoJ71d85uAA6vU\nesEFC0z4xMx+JFak/Cqo6FxhTAwXULlSyQ8JE5JBFKIzPkPHa1hhg/P4p3Q1\nd7WQSo8ofsQ/orkHC5xPH7cy0CT550g64AdqrtEHTkkx0zR0ynYtSSMvEaoi\nf+DwYsUGzgkWC2pDh0djYnSgc19NB0aI9NoK2Zkh3mOrP6spuBWb3LiQS+s5\ngDkVd5QR38MPAGV540NDr4BA8VzMnUb/2aItAr+/u+bMOBUCsqyqaFVh4TRU\n4BUD\r\n=6MG9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg9RpAfC4YBJz4agbyDT+0T3JXcXDeTwoSN7guYgZGmwIgdfYDd5XWpWoWvpC/sUSXkHfM0wCiymt7BZSXKsUKf5Y="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593666215765_1593666223227_0.7451962348295895"},"_hasShrinkwrap":false},"1.1.0-next.1593666589006":{"name":"playwright","version":"1.1.0-next.1593666589006","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593666589006","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pmP9TvKm71ifqjRU27wGj/zPVUSeli/8sNgbSqB4fDwFLBnVtYmH9m90ar+Sty+27CFoerSHI8yHrFVsuQWv5Q==","shasum":"2fadbdb0485f08d401c79ed148a1d055aede9bbe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593666589006.tgz","fileCount":137,"unpackedSize":1722244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/WwmCRA9TVsSAnZWagAA9LgP/0LLlQ7kILW8/LPpicSx\nQxmfEoQJNHbuNxszRknEnFa3KLeofz7sZdoKFumdpGP6cWlneP+3R/SOBSuW\ninloqfqTRnPUUtsmQYjYt7TyIkXiREuYOBjAQta+JwhKtqsBMf7hJ7p9qu6T\nso1V3eNjKKwG2VplCE5UhqREBt1upE/oXygqpaX4jrl4MQI23Tq9BUK4meoi\nKlyRPbE6uvTCvjTCKkActQClv1SLIyHa/drL6xfU+VifM3bCI3AZTXTFo3Tk\nm1PcIU4sptvwwUOCK0z8Nwli8knUSIK89rtAp8GbKeD0E0Hub37ybJiLhKkb\npyPPOn8UveoWiSFUCT3dYWO1E7tGFYcpeN9bPJBAHAs3IXG75D1TgLy4WDMf\nrOWYPtT+jdDBCC5zC094BXWPvt6RoPC4jqwTAoCe/u4jmrRvKDQj5qWY6uai\nrnGZF8hvTtywvXMRtynS4kv1ilHBvkm0ZbFYgddiRtihql46xIq9BHiNITK4\n/KTGQDbGaqrt/l3QrgU73vadAg3dCm3KGUAOORUXY3aNJw+YgU8r66mYi9gF\nlWlxu20qBIzMmjRrWDZZZmnfT8u/UqcYCPbUBaElZQ8nU9uK3k/QZ+7bs51w\n6GGKjmk7ebhtR4zP8qRumU0yGIVd71NUWUHQDaq9LwvmiDxXEMc+FzAJsWpQ\nyAJi\r\n=uKOg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7KCDG8cN+WTkBgQNpHpXyKceFmFps+PKeoi/IxN6dAQIhAIDAO1XkEX4N/OYJzm3cyUIuhwnM/7VoSzXa+bxVu/fC"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593666589006_1593666597932_0.35734079864774415"},"_hasShrinkwrap":false},"1.1.0-next.1593666756455":{"name":"playwright","version":"1.1.0-next.1593666756455","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593666756455","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VN4vyYlv74aK2fia+CwgPx9sGqcm2pCoi8OXpQA9s6hTIsuNJRHGwY02/QY4XJEwE+T9MRxDMxuCAtCthrIwcQ==","shasum":"682fba2649cb9bae6cae0d36e335a885ee742fe3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593666756455.tgz","fileCount":137,"unpackedSize":1722992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/WzOCRA9TVsSAnZWagAA+CYP/jDTsL26QOF97Hrl7xP/\n60gE4R9P0qLy2X33FHkK/zF6E3ulIo9K4WHN+VIVyvvls2T8YmQtKOCiNGx0\ndLtEdfvb6RXpcCJMHceLDCiScpbKJeKpZC35FvjMXBnXG2aouK1zx1WEfKBs\nyyRa8g6Z3RXZKm2HeGanRVAMyDRKPPVGTWNFG6nj2dlasfnv/peSAzcLLyRl\ncGwz+8bhar7uuZlUC+KktShilb+5hQ3oXF1DGq+OBWpQLuoO66zEfGxNdfyj\nzl6m200QiizxbNFE9aVKakwuRZnIOxQ03EoiFHlaKkzTF/IGDcqwKfH5AxC5\n3gSBuMZckSdkia7Vh1gYYtwC5EkONpH6DbIHIO1BcHOn4a3PDbwjZRHtGzUp\nTR95Jg9fdHvyVss+C0AJCCismUDf1KjRAGrlWMfZU3nLt8SseBvcaPS1fhIW\neAKeKwST0ObKhru/dlTF+oOPPzGYbgb1XlEAjLt2rllBto0E5eZUR85zGcM1\n8jPUqKysN3GZo1yPz03Tyke6m+tbMEXUS1jN2Y78XoRQ4iQEYpceKX1OkELr\nxDsyj/3sKgiGnHDbAmOX9tF/9Wm+5jxptdBgK+HjhFpvyYmKknjkErbh8xX7\ndMJyWaDD/rXnLQAIVNTYOB9qpMfSY1XIuyjMqZkw4co/NwokMEs3vyUIC2h6\n/LtG\r\n=aFlt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAj0rgREt/UX8hewIvOQ+4+sj1s+DEkMhghfu+UyO2bAAiBsoQ1eHRAcwll/o2SujS3c2jlcI94NS8sIl4ddVRrucA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593666756455_1593666765905_0.9246728563476851"},"_hasShrinkwrap":false},"1.1.0-next.1593668559701":{"name":"playwright","version":"1.1.0-next.1593668559701","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593668559701","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gkLEAxQY9gRJy9xWaLjXi1AMdZX1frN6JBWaSzhCjCTy+MHxDDmuQNw8xRp4NE+9ZPguW2q0gHKJyDFL8f/hCg==","shasum":"7a63391b446f572faaff36ef9fe300637a7bb4b6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593668559701.tgz","fileCount":137,"unpackedSize":1722992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/XPhCRA9TVsSAnZWagAAmAQP/1KvYOUf74Wfn0u+kLfK\nJ46/BGKrIyBOPh+gWcLg1LM9zF9fRvUOVp3/HAc7KLxs3nyY55kIYu+JqaV3\nznJAii4SDiE+we0UUD600JPGs3DYlcXn44Z74TqE8SAwrTWToNOLf9NSTOQt\nOM4qS/tzowHKuSAsQVNrXh965hZ1p7Z8wM2t6nxpzNsMRjndqVpwNHPTJYst\nU7NqGnxB7/pz1d2xhyJC7EzJoR5G8mLLSs4YZwWg0oj9gHXQPUkqbAuNFxWz\nz92l6wx6ONJEsmdQZrOjVwLP6QAWAocCUsto+pqtwrnFiKzplZH4qyNk0dYT\nKIp49GbZ+E+aiuoSqNO+qskY79Bovaic74jpkTxwwQ6LPrc62W5+BfJlnzeX\ntzkyHuR07cWeS+1/WA+VmigpLmbbZ89wgCZjMH+qonXKNSAMPfeEAwBTowxM\nZqYbqzZ2lBVdpaBPxJRDJol1eJ5zc8bOEZxkfoEcnmE9K0SeCA0LXCZ64Tj9\nsDTdd7EQwSrltD+BZrHW7PQQhPQrLaVDHhi31ctXUhO+yQaKjNngPxopMme1\nA4bssFf0tFO23PAzk+Rgb4QAXQDiJQxxDE1xOnmvm1keLePUBu6Pzxvuc1c4\n4atzBXpeUK1RRVjuXkoNSeeV6YCN4vymb9No1jCb2CBtC1JvBGlvwh8mNd0A\neDwS\r\n=92Me\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuLo/gQNMUux22GGFq94NkkQtHHJkcYIub8qU1IiMcrwIgXDFdI0sox+sSXzRWublQBx/Q1tQL1Hm3MAUFSTagI1w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593668559701_1593668577383_0.932298205769454"},"_hasShrinkwrap":false},"1.1.0-next.1593675802795":{"name":"playwright","version":"1.1.0-next.1593675802795","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593675802795","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AO0+X8HD21nDrKviKBztcLXrywCqzIolYkJhpyp0+xV3V1aV2Cki+hXJJFZ182kVPFNNweeoO6Gl9qhqOarY+g==","shasum":"64a751a66dc342e1784bee6fb1f16c183010ce2b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593675802795.tgz","fileCount":137,"unpackedSize":1722992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/ZAlCRA9TVsSAnZWagAAzlYQAItY/Kd53ROBAJ4RK6mM\nJcn6TGP/8gAn+ShR77sIS/5sKuqTI7VZemN05KDN+OgsjIfLPGm/c9tVyOx+\nV5YnVzizimnYy/GVE0V5AJcPytkdqhOjT81Xz57JhR+Cvn+FEknJn5YuT0E8\nZAqB/hP4R1sb1AYEZpl88Y0a2RzsbZHmxKSmalP9lcDYtoz2q7hQjng1LbxB\niL7jhco3YUOiH1vaJZUfkSPMyowElm4NJC+g02iGC/QqBSywarJzZ3GOovf/\n5sgPALQowPbpnnD6Z1Sx6/W8j05sQy3t6U7/xqqQJ1u9Znfu5HcYJlpRFM4y\ns9ZHcBE1/wulVmP3um6Ij/SLEKU/4G6hODj4yzLpmUJr8Kzw2JTbR4jSGeyV\n6yuFzGl8jRbXQis84MKpY09tTfoUDYKfUPGfkyVK3H/N/VlGUd7XV1NlH4ZS\n6idvrLIUn0eCQgCrsKS/o7qZk/8JCiRgQsjbysExb5NJJxV1XkUkfqF1Uua/\n/zRAo3yzbn5an5Cflo5CupQBYudjzirCZOzCBSKa6ccHAKLRHxwVjXSbdNEL\n3Nr3mo1duPJLyhOonBHHFcAv0nwaj7xjFDrHHrz7+V6nRQANlZ9BQ+cxjBFs\n9rJxgMpJuq0v3o+HVHicloHmzgUC/HPS6Qw55x2y6G34TkxeU/XyxPqoUCzF\nmfA6\r\n=wE/R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA79nnuyQDayZV821Ph6oVKnW3pZAdk1/gA7bi8TD1vOAiEA/TpHKdf4F3UMh7fnlwv0KsKuZ4qe5YGK1A/9k3T/1y8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593675802795_1593675812699_0.5322389789338782"},"_hasShrinkwrap":false},"1.1.0-next.1593676020901":{"name":"playwright","version":"1.1.0-next.1593676020901","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593676020901","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bLpMP1TG7CMgGVDRHknIoJppbURSecZKHX0W0q8v6WI42jXfGHMMzKeOUAkF0Ne4uOqewU1jwZD69tjlMckQOQ==","shasum":"3ec4202cb13a44dc8cf79129e33375c0f34e6770","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593676020901.tgz","fileCount":137,"unpackedSize":1722992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/ZD+CRA9TVsSAnZWagAAlpIP/2hxnc5iyLTKd/eny9nC\niTqf9QLOAa/64wimPAJ4c5wGLQQGxTa7/FoFzdisHEAh+dGqZJNwrHi4EBKQ\nd/LgdAzNLlugU1DuGcoEt0HpQZnLn4Xsx5FgdCuE7ppV2dIPviv3VVpZ0ncZ\n9+4m7fm9YVpdosDhxB6hhx9jSRh3U14Udtkxh4fHMOIXLHwLokHxbuzwFPVH\n0u0VHFIHW25h/mCuxtjvgLHJwF4Y3qasyZZubVpbiPGmwKNHI1ZBUMGA9Ykv\nxc5hcwX0FleWfZ4QxurwWWqA3WcIgYfSQjREZGHtyCPtvg0g/HBvxvWXb1Z6\nmUDNMZnl1RtKm5x9tZHMhgEsJh73Bni66+RcN1okBMZE+JthyETtBkdN6JHK\n5wj36DDLICD2ORV+xACLL1n1b5qObbcq+SUVT9FWkFbNsnKN4NoZVgivIb2c\n81qKspFTIzNiQHR7dHrrsHxovpKQij/X/eHLOZ5rs8Lfga+NGrKXx/tH49BN\nTKDDshYwbmSXw3H8beAzgWF12qQVJckFzJ5m8BOsN2tpOCGxI+DD3elQrsH5\nxuFV+HAtrdsPocpvBkjYF5C0YugziUu1YtVUbrOIU326IAKF5RhWLgjbVM+G\nNyCn/8TW8IjzZgVoa6RvcMY+PtjeKWhIphvp5ncIA9Jito/ecKJt12y9QpPN\nXAq5\r\n=Iof1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4d/mNkfrIgmFsrR3yznS8Q1oNS3zYA4/n529junyUlAiEA3fmpjGrFUSAPZy7G56/V6/ZvCEdBD5V44OcOe/LhxXY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593676020901_1593676030105_0.4514914081749497"},"_hasShrinkwrap":false},"1.1.0-next.1593680366184":{"name":"playwright","version":"1.1.0-next.1593680366184","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593680366184","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wi1mn541poyoBEL3DDLGPyQogsafN0Xh2DebTjudHOjiPHdBwYDNUQczmm+D8h50RkT4zx07k8PgOLSyYmZhWw==","shasum":"62559c39ec7ec500529b3eb041aa4516be7c153e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593680366184.tgz","fileCount":137,"unpackedSize":1722992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/aH4CRA9TVsSAnZWagAA9UkP/A+dR/bf7c5NI9VXRfHg\n59SoLAfTTPqqyO8252eQfsCaCOKqkx9xgAVGCbPsbOCaBzkCKS2Pn3NvWRtT\ng1IAvIGSLgB2HzT2cxz42OlLiCKPHQKDEzec5ZAC9XhMj/TMsE882fvBG01e\n2kdZuLI0OEuZ3eYMwiGUPLhWpCDefQokBMmvJFpSFRXLdQe7uzFaS47CFGgU\nNXV8fcCti1qWb4Pmaz6ZPNmNSEF4gFoSHgucm8h2qq6BQ3wswM9dXx8yHH3t\npD5ZC7Vo5I2u5poNuYaQCvxGLqqKU3ILLGJa/ELIThjyqgM4JaHqG2fdZQQN\n90MjPEJhe7z8YYb22SKe/9trVLFwahZTPUWnYN+HRRq5SPRiXoxLwzU4x6mk\nbfLox+d4cgWHO2PvFAu7MIVBSgMJJq2bWnulVL8XSFv25zhezGJe60RN1xPb\nRezyV00cYSwuD1Foz6dW0C7BfVSG8eoXufaFS7kSwLC9z489ysg9zfzJ9/Ul\nuvZcYSGn9CuMQP4mqszZFVWyaaJUywQYrEVpTrVGBXLyRZ5PRiwA1RdXLv6H\nAjveB+OA9AFim66TM60PSB9HpyNHHR7cfOYKmFaFAV5AcIauf9DPSPP+n9E/\nBlS8U7iYdqG2UR0DzWpbYX9SIPZXMEKYV7lanBJlD/0JSWroCjxpgKa5xd4R\nHNSL\r\n=wuFd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+R/PQiGCJGn9g+/2p7JldgAAuQ3z8l4SGyeZ+1DCELgIgCTRWAQ2qYW7qb2K6jV9o+CEacduh5PK3R13pEgM/vQ8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593680366184_1593680375570_0.8128918572180186"},"_hasShrinkwrap":false},"1.1.0-next.1593702266587":{"name":"playwright","version":"1.1.0-next.1593702266587","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593702266587","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-w3Q1kqsZiltIpcWqWkFrWskCSGveg/QgbprXNh/o03ORd7hoxLB0bnxx03HNXimY31LBNKd1OFw0ncRONW5mRQ==","shasum":"b504a6ffd09c1cc6b217c194d468e925e63670da","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593702266587.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/feFCRA9TVsSAnZWagAA4q4QAKMbH3JaB8FSqHzJKyTP\n+VMonw+dBwNybjyBIErcDeuvwfsUz5/7Qqf61+2wBOjDRqsHz3y1JbWwUrdA\nI4Qa22r8ivhMtCTVGq+U5rrOzr6MHnhYTZw52ygCTqR1oGLzZANYYdpMJT7M\nlLT1V7ZezNTWUqOmkQTWm+m0jyuClbaP7FSWrGwjTeuOJoUn2cuAJQRntNrz\nHO7kW5bL4I1l3RsUCZi9/TXyoc4+RGKPjHX+QU51hRHX5GtQiY8gc++4kyVj\nj6hKW8F6rl0CbtQRKlKq1fe3eUkwZ+kdAr9fIWW1WqNFJ4Ia90IBfp47riiU\n5U5R2i9+aTEK7B4fhKTSYeKW+c5yEzuIDf8VYWgvC16N7dBHyUOzu5uOZAtK\n2ZZq1NNw8Ck0DHmxuiTiWwBICoGI/vX5NqR9G9dL7z0duCt+hDNAP15hcs/E\nyfUfVcPurtFo5JhSApaHNjGpocRI6hHnWmim4XeyOuh/L/3VPoeELeKL7Nyj\nOLDRGetyUd/E/cHVBvbvlU8L+o0+JQwMkEQfaR5XUbWhertCpCDZLAGmClQY\nrlian4Zhk57hO9o9BX5LxuHHWwDCaHLy2xXejoxRH7CY1Fh1ZVkX3aXA3lSW\nmZTnYq+8b7uDwQr++IPazYzLy/f95hEI0tadvjLy4LNo574FhRMDYBH7zAuc\nUNqC\r\n=6vBx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVictNOWWn17uJGD9rpyWodfREpn40QtUCGiUsC6RdNwIhANiuVIue3R8ZsyINYN9ODxvN1QzqkgVM7g4KMd0Ke+24"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593702266587_1593702277114_0.888118483937038"},"_hasShrinkwrap":false},"1.1.0-next.1593708720316":{"name":"playwright","version":"1.1.0-next.1593708720316","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593708720316","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-R8FciP/qhBF96/hN3uLWdJC04MgEpab3xoqbiBnE4EB36YSdnPji2rLicoJusiVCTBeqQYCt9e7dirRH/Oa76A==","shasum":"249fe63d50ef1295ffdcbc4d40f63b8e9a10d1e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593708720316.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/hC4CRA9TVsSAnZWagAAGMAP/25ZQDBoY2kpqKRfkeF8\ngkPaXY6MD4E2CHqZ7sTGDOjd5RCOeKvX6KlZy80gynYDMrOLnegem+ANG3FQ\nMtAteLx7rFPvXs58KW8UWiOZMUntkg/3+DfWwuNh6Vujo2ZL+w+C9JfXWiNY\n5XM4Hf9u4mNpFmuNZ2XWfJh2YtUF2BAwVlkHrZaBmKpjPaFf4eQiIs9kxwWf\nGE7p/mb/JRQVmfktpqLkx3aobIZMTv1rbCJgBsopbkQ+LxjY96wgkCP6iMdZ\ntrYc+z+3h2BbA6IB/g9vbMy6gV4BJKDbZjiWif/+WP6t1tYuFQcxk87/7Jv7\nDUv1IqF5UM6J3GQsUvXKWxCKUtOH4CT3j7F1yJwRsWDjlqdh8++V41h4vEgK\nglcVWd+AdYhzQkSaf+Logwn2DRnoyIwd01+eSPaI40XKC6Br3VkyB0e0EVdf\nrtMH7W+vMOiw4BfXFcD9zyVG4cjP409Pg87/ObbaGcxg2HO+ZNvX5dtpa6cH\n73m20Y3PKOGPRKnULgrn3ui6r0oVyFdMAI+81sT+X2QpFYXa3mINR+Ejl2ox\nGPEMjkUSNrMzkK/FyaURZHh/R/eOfO9Y5JGeaw/qcY1cdXOGYt/4PEBPOiu0\nQWLQ0HXZZSFiSg9mn1zHXqXSxFRYo4Xu9DcBCMBPvOhKj9IYe+kC/XOQH4Sd\nEybt\r\n=mdtn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQdNoZXjlCx3tbDZYgI5U7G0w8t/Jp/oYUsrNXBP/GMgIhALoOxo9OpfG/0cBmRFbqB6UvaUtNNeOzz24j0pPyJepf"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593708720316_1593708727488_0.8035673982423157"},"_hasShrinkwrap":false},"1.1.0-next.1593709577553":{"name":"playwright","version":"1.1.0-next.1593709577553","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593709577553","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5/t9HvzvcuwiToGVrLqSSXL7b6i9GD+cI4zo6VEEkKPijmjRiiCzKGifdya7GlDKrtmNiG+iPW0jejyqNW60KQ==","shasum":"3e0911cd5d5b4e19ead75c839706f3450d16bc86","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593709577553.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/hQVCRA9TVsSAnZWagAATlEQAI8lywJSbDIBOn6W/Si3\nFIJEOKQ7pB+7STxSrvjDdk7Nl5MNhYrC5OKSraAgreIhjIWZDe1Xq5oqxo3m\nbMlnn9wYxNq/bdd1sajRmWSPkgMev3Rq5eaDAvDWzyyueGf3G+Cwp7vqWmhi\nS1gTyQx+WLmVoYfMIqevJ0vqJoub7D/UDwud7xbNKKKjr2K6ZzFu5YLWnKIt\nhXSbZt0/rkjmiLrkOLCUw4+pw4XxWrBc/OOqK7sCzwIdRVmMe/5GkC6wfzMz\nDvi3UoSzxFOGKkWnhu8MialWRCbZvIImdaA40mZuAgW6YvBJjRUzKMzGEeC6\nO4x3xFT7/9qOWlwxNw3yBBuhwNfJYzEUjikO2U9QHxT2z3G+/3PbexTy6LAK\njcPgniq/Rg+OrwyHe+eYXFzBLff6GJYjdD063DMnN8U717Sll7UAH+iRN1sM\n+1AN1NqELAphVBk6hOSXs0i3z4GJuQr99JkcVjCWo9VtULPmzGNxQO0s0GW8\n3fxiKa/2WZWmF74szR0Msu9GQI0UKueeMzfAXPss+pMsH9o8Wbzquabd+I9b\nKfOfif2AhihadGMi6MXr36zAXxVQTooylj4gLZ5goCtL7/Rep7S025jWXpAn\n1odkbjjL1A9DFKtOKU0UsLWdCphBl9gdVsuR2+1g9tfbEOX5wJcgFe1MWB67\nTfyp\r\n=UxKY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1UTSC8YwPClfpgFfCTgYwRyimawAs65b6TanbtdtiqAIhAK8mjYyIGK5DMie2h1keDfyVq7ASvsPP2s/cIKdt2eH4"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593709577553_1593709588956_0.40013446740821723"},"_hasShrinkwrap":false},"1.1.0-next.1593711890820":{"name":"playwright","version":"1.1.0-next.1593711890820","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593711890820","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-yVdAnTiw9JF4NKyyLKXkyR602RgeQokuVNkyxfcJrQfSjJDiUWWCBHRlaDkuQAl5kSdvTLWZ4CKnYiGkwZ/MwA==","shasum":"49080d6a2ed01ba70d904a329bbbfcddbe98dca8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593711890820.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/h0eCRA9TVsSAnZWagAAruYP/Apfq/mUCrmNPPwtSRjl\nxmA1x5CpzR13DP2PyuFO9TNgchRMuz+QM+9BV+GIfYb2iRR6wrIBE96Ls96L\nWbJ8x/uk8bVwIt3clPypLldMWXxB8Winn/GyHN1R4Q7wpfyM4UWVtZHFzQ1H\n2uHppKSORai4t2FUR5xtv80cLytjlnLMg0mOXgfgfPRupdhzLyjM507O6d5+\nomkQ8gMyHSx0YuVMVeWLFVfVfDEIxTEu7tdjUA5sxs2q+fOvLozVahvA1hng\nF8FuRGyAfSVXJ73Tl0ELxo/ijuMbWeIfq5xB2Tj7lDiRal2hriNtKJFyPWH2\nLxdpsfMVi1AJhl6rHBOMPanhNAdS8cyDH06uhiA4Klghr6qjfLwg+BCMsfQ/\nH4B7cZOFzbZ7lm/lIsSYK1a5n5FDv2bWm7fZMvQGAMxIObvU6qiIjoKgCnc/\nDczl0RXa9HPyIePwPRsk4dz3XM3yyzDpcGx0b3/wez3FHW72moWugd0X5gbD\nzWGDCNHYRVVv+nVMQHsAsgvp/FvL2nmwAGWIaCWvTJ+3NHTw5rxXLPCni+xQ\nhhLoC07NS9vWt9Ov5M5RO6YQyasrn015wSMaJe/O5/mXUiKwVuJDy6FJ+u5i\nV2n8yWDji6LMurVrcRxsXti9uwCLtVnjr+dAiogzwK3Nr5XMFbKMf+4NhuI1\nb7Z0\r\n=TGat\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0FiSW9Qvhmh3og8/HDZIPUsHvUdP40IipinAmdjYT3gIhANFBQZeXV6rIfX49jpOskT/k/gxJ0xj1hyWb3zqwbS6I"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593711890820_1593711901386_0.8514309645038216"},"_hasShrinkwrap":false},"1.1.0-next.1593713257379":{"name":"playwright","version":"1.1.0-next.1593713257379","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593713257379","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Z0Lwe7DWZBUDp5CiTdf6XFKag1pGJPeeXd/GWeJM0GxWAaSMkg/kY1atGZKxdX90jDchjgycXVSz2s2NBrnpWA==","shasum":"ea0d642fbcda8c15e70e0628117d19815e40c5c4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593713257379.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/iJzCRA9TVsSAnZWagAAOXYP/1c1lwQeuvqtMI2Ji/0Z\nE1vpaB/M6mRl3xjBGCGZ/zJaRyUsVHag4fODSA8aCLtXLScKPhCGCWz6tWEa\nIuc4Z1R/3J4m//pQI7zLSSCzHA1Ztk2RchPxUSA450Wb+Pj6uXIfqZnnsbHP\nf5reEiACKKPo3ayjDRthwUUnVTfKPMNQ7U9dpV0+JiiLIhY8HUiNWOTeCVHj\nSWTym3NOlG5PWMycgU/3IZ96jBY+7UXt8uRysnPegMDU9KnqRcj5ePXvbwOZ\nLk+zP9REd/2TNPecNqGGODxJ4e67hFWDA5oTl2U9Q5uqkwVoQQoRceNieUZ3\nxU83SqPRo+Z6fDPfDFlqmeQoDiseOQas32DcLhpj/VKW61AkcVa00dfxGy8/\n5WmBRnj8lizjLLloqG+ojYnx7Ji76JUCDdOArWI/rJH9BN5nGiZtXnAyCmaP\nll3HuI0sGq398p3KDeiDkwGeJ7bPU2fhfuyM+x/fWGMW/I8NJ/KUKvmJGoXl\nMzeTkkVtd4rxvYqDSVtIEt1cEVGnPsZuf6xuRyfPSCaw2tR7Q1DTCki5HYOT\nYUOdU66TliPr4xMBhjKV8yAgbj3AlmIfoyW8v75ORajfZwZv4B9GVektQE3Q\n4QvSNeg16QDlSdwfbupjyB2MxAf3LZ2I0S9I/c8eO95/xD9f8qpbbMl5mSvJ\nzDRO\r\n=VjRo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6Sp0LqIIxU4memX/RUp+sfeapcJmtUeThlIBLtH3QmQIgMWkz92BsCQEF+pEsE+7EId3erSVqgFEFoFpZmpMKARw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593713257379_1593713266389_0.2423351811415777"},"_hasShrinkwrap":false},"1.1.0-next.1593714158849":{"name":"playwright","version":"1.1.0-next.1593714158849","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593714158849","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RRKI61s/sxiRpY1bDPqBbAkrlNWkJRoPs4xWSbHVuJY5gXItwR7iZuLKuTskOXu0uOF/7LBrVnhY5/am88Lq0w==","shasum":"f96b03d526f5fd0115622195b90d071839cc9551","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593714158849.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/iX3CRA9TVsSAnZWagAA8dgP+gNGICuJQu62q8W10Bs3\nLYO+MPmV+TDdSgVFHJ5dW3FFNfrqG3Zc4c94N/ioJeeZmh3PWTMqvyso0Fp+\nMh1IRn/db5CwDLjBoTwx+0bq+Rmc6JfOipaR9jLYAd4tMbptJE3PoP+3ueKz\n0635cyck/INMxpwehkO2COvQGcidNtKJHCuwruvhWn89RzPbcgTp5ERcolJn\nHrflnpr+jQP51OlQ60tG+cc6xnzNLrs/LbtkmHUy5J9yRBXXzn9c9Gxev6/I\nvmCkgRrKFGTUCF3N9fiCJaCz5PIx/bDA+0iSNSIknlbTUUsSl8wZu45RBGyP\nY/vUVcpPkUgiTGZjjpvTDw2gtM8A8gJZ3PtFkysR9QKWzsRVitBBlaBntFss\nsgKEEIXeH7I1FZzdcdiqWLCDRwnaurAAYVymY9OB+2EDIPuyg/sw3q/K7j+s\n1lZ2SjpXDgeYeqln9Sfq1FW4NGuBk9yWlY8DFri54qLszJxob39HP4u1ItqH\n3swnviRGy97edTv+hD71nFWN6DDWM29/QYYElfkB+LyBWxAMTf88LzpmYar9\nvBqNjnceQU9cXeSBkDpLCMeND1jQHjjyYorZkxnSnUhJusKsGkjAGfO8uj8H\nia+ChyMqjOqp+UHB3MSEnv7xAWGl/M8CSoC1toEg+Rwk3TTwgctWN4qtQ57w\ngt7t\r\n=V4qN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBqL1vXYai8A4AJOW7yzA4z+RYqwHSxyej8jI8GHi8SfAiAOvQEjf6ezeKVu32dw3btXdf/PGs1+HY8sn7XQ4mpLcQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593714158849_1593714166863_0.6586581725271907"},"_hasShrinkwrap":false},"1.1.0-next.1593717093627":{"name":"playwright","version":"1.1.0-next.1593717093627","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593717093627","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tn6C1D1GPiPLHIL800PVm2+v7U6f0envsyPB8Gg1CMevMFXJzOgYS3yO9JYMxJMeEuY+VhL6MUFOMtnMxVsIkg==","shasum":"c3e657fb91a7a5e7dcb3c2e2bb8232046487c951","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593717093627.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/jFwCRA9TVsSAnZWagAAzeMQAJZcNMqocArjcucNxTSE\nHyUZLIxuX9F2S1QqDFfXtWz3mBGGLoKk8nX7AOopgx0DNMcC1+G7lcu4whZt\n6ZcWK/OzhwnXPFrVPCETQrUhIybO7NychjEYs5XBPG3iRxZkaB6Lu42RJTh2\ntIiRQi+MQDD2MD+pejxfJIqV5yYeHmMyElI75Dm67uuMDW9oDI9lsnmzklao\nkPW4r0RJkPe/Dv0vLL6MQqwsA38v0hDL8bGyvYOLfY+y96C1kU9R8YDIKWob\n0Oz4T6Z8LO3NAb3IAI7g6fBdT1polLGbkkYziVbkCMF8hdaiuBUfczvkF98e\nTnbisz8Oi8G7cMzOT7OSxg1Es1Po8g4/kThOkhzBZSdQKnNiYzBgSCTAIDIM\n3LAjlRITQjiP18F7atMr83/fVOFQq0SeqDHyxNzR2wkhMrcazjmuwZFqGENu\nv4rl1O4TnW+kG1DuvAdPX0OI9NY1pnzeDS/bQl76scLLmnteJuvvn8Dtbvee\nCwu6WStR2nAJwLoXlyzJEjm/CuEovN3ATGELfUob6xYBh+oSOXaIGGxIkD2g\nSd6g3UPRngwYmyLVVDhuH/dR+rlzDdgr8rkud+xNHYMiJYJ48Br8Qn0ACQeU\npqogyaY9mdgSxmHLHcAqLNC1UazBcEeXZzSF53JgmpzrC6WeqpbD1QByncjT\nKCFl\r\n=T5Pf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy8BCLYWKJxxtb+ZeJBEzyPLjtw0vdWiM0HPsxEkJdagIgDQ5hboJCC09Qxz38fJbn66+L+j8tx44iCeg9QWiTxf4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593717093627_1593717103539_0.7013152894695291"},"_hasShrinkwrap":false},"1.1.0-next.1593726591515":{"name":"playwright","version":"1.1.0-next.1593726591515","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593726591515","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Loz46lukDR7XhRGP4GJTSiv1XHMnYIue8VRY/N6EVJTVHe2fENTHjCTMQ+g/nRII4VApYdhd9OLQWpdKTOn2rw==","shasum":"136d884683b03903d46a474e592d809c6fd44201","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593726591515.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/laLCRA9TVsSAnZWagAArB8P/j4myeY4ogjNQX7pzAcy\npdIINGlDVZX6L+8zaw1wbrqA0XuSwMqf88FTZUY1492Uc50qXOTm8lQQIuhl\nha4rkDzEFlvEUr3Z3leY9Jg258t9YHGLLJ6VHTwfqJq2r5U/t6Q0khONcESZ\nQhA/gqv65DR02kG2JhzqLPtdH1nm6Kym9qGMx3DKV6bgHNySvMserrd7/L34\nya2aWGfluEUzfPJ1GbpCSNAyrWSkzkRiq80902rycmfYC7SISpOEDy2tCfex\nYEI8/8GUP1Il2l8mWRME5vZSTcujf9the/oyJJev2OOVaTZwI1kJDnV+Kek4\nbsJQJa+TUng7f6m0LUTrhXc22O9d4QeiqkG1i8+BE/IiVKwsFAaWbWOj7Va2\nGC87IpalvoQm31y2y8TARKJ8yFJdTjP8iSGUpq73g0vsi3GcW04GlUmjZuhf\nukAlhD3Z8bkErXtsd1i5wDu2I9TIxkUmjUzn77y6MvrXAaQhCYko9Dg2i3q6\n2YtGFqXE0ksF1gGCEe4dUZVaB/JAmWMkw3SPXW0cicAEaqqcZmepiu69fDii\nnl56GgORltFvOZd1AJ3u3CQtIAVdaCGFGYFInoQm7cP0xWWbe9YIG1Kfy9+e\noivASIqgoHKYJAhfll0/MtKrU4tAGh+m2vEhVxYSq03GphHf2rwm+Jjr8RGx\nOHpD\r\n=3YdI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2QZ4WPrZWg9Bte7O1jPege1hKx8WGbN5jo0toedk+wwIgSH+XXoz8lbvYm/0CZAiCIv45KAY6XDayRSHx4bHJG34="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593726591515_1593726602775_0.27428729493296666"},"_hasShrinkwrap":false},"1.1.0-next.1593728656381":{"name":"playwright","version":"1.1.0-next.1593728656381","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593728656381","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-u43alFTiZXmSiEsc/IXjm6V8tD+OC9P2rPqHocgfTrlWbWZvV/I2K/HAlPfbwtPcxyOJlCZxeHfmnFmcJUgiWA==","shasum":"a901d38ec9a8910d3756453a08c6c3ee7f987b71","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593728656381.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/l6ZCRA9TVsSAnZWagAADYQP/0aNA+23wtCH/d2H+cdn\nNzuqfS67vjhswsHkOUJN2E/DcM9kBscGlX13dB6yr/t5XxEAkSHJgG5DVIQr\noNn4/Ird0XYRFyE4CMlm6mqCgBkjWm0B6XMHjCO06xx5/BjSlH81ZW2eMTnX\ne/CjiXj8/gyYX+oJZpuIRIChR0vswmBSMZmL6x3Y06UKMMGx7LwO86IvjcYK\n5dwOawVmPpqpWzNb8/2wIwSfuqFUBXTntjPP2zM95SdwOQMMbEhfRFlZpU88\nbEmtTxZNpjqMbLw25mywnBVj2FZfO7H2i8m01deqLu2nfsWvsSAZ+gq5tRd/\nZDAvaJOjPEnWhmKazDAh1MoXZVb2vs7zWixiDkcQF1jFlPwI/CDduwFAQkwJ\nu7wxDf592V81z5zkHI56ePPBD+6nGcU1jK0jsTnhRXAgqBCbNlzl7PPZwZrW\n4mrtdBbB7LNZkpRojVIram28TiroT9Yx66nyBnm+GyZhWqKethAuzPzgGAzW\nFUVHcCSz8s8Ybq5HJboqG1HoqUH0Y1myxKcPK52gWnEo3oOFxVlUBXUmNb7Q\n2m+tNiPhJvVxBwPw0F0arOUmkIZqcSLd5DfMImBk2bdMIuyuNTgP4osSFe98\ndzQLLiyUk93TalsXc61ewioxPH5WSHF96NqIh442qZop/038Auf2gDo3biUL\nENoJ\r\n=ptLX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0Klp5JI+0bdVcidFyxZHyseb++3U1P7cyIpz6C66zywIgM7puUtFAQpp/oNCf0btJy+JBfQ4G1eRucOO/+8snYEQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593728656381_1593728665393_0.22962691640676614"},"_hasShrinkwrap":false},"1.1.0-next.1593741191701":{"name":"playwright","version":"1.1.0-next.1593741191701","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593741191701","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zPbHdljn8KZAqTw1xe79vi3HJTzLhddZPgar4D9czC13B4Va3QDVJHV6eabOGCDFfAqVZRewb4iNYBqvrhoAIw==","shasum":"d7a3a653c8df7dd4d9e0fce2bb01679813afdfee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593741191701.tgz","fileCount":137,"unpackedSize":1723334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/o+PCRA9TVsSAnZWagAAgioP/1Rsju8Q2G5BjU1hjcDO\nEpbOIeNsmxlfPWBE4r2fA+PZcgG5qALmCQB1sEWCf8dDgFzJipRIoxqQWitd\n5hX5si7sQCeRdr9qq7+l4MPaX/VGf4fEt/3tlo+Hy/m9A06Sb7rlwpKh94oy\nX6ZT4tJzMG64sblIQMUZm6miRCZ1MmuckgGvlFdCiDWvAxJ/tXXUm3+XTmF/\nb1sVRh9eNx0MRJfZLS3786TefYPBbw/bliBOsRlLvBElt6aVcryZCyA1tMTy\nURPbq5hrgZTOXCjAumnOQYALE/U9bHgyz4P1o3g9Zu/NTVjFTcF+5Uc4hjaL\nyhv1RR7f+m9ty7LfzYPUkpMwBTm1aUL6sq1KwXuYkWOpPV1RCBd6wZy7aYeB\nDSJIc6Y8ith9P2/gVQ05yYNvEVjV3Y53HTEdGdUSWRiDk50SSyNztBGVucJD\nOUn7LQDoiWKeX3jWEpgEVb0VFzs+8xZS8jNG+P6FWQ+hurjqhouxgHc4HxR9\naroMNCGIwj1iqZpNc4ympPpQsCLhDSUofap76dkhY9Mz+giYpxlzDnthZoHw\n5W/AF1xxbIrkeQGjMZjjhsIfsq5AYHPt6Ktg2aPt0Y/P55s2uCmKDWR96270\nimPetKEOU4uekZZJbqQCih3ta5q/yIZFrqNMU6apVn9ZqwHXRy8KI8H3rEqS\nT8Bb\r\n=bzjb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDudRKwmfQP1HNlkltndqDkfIVna8mqpM4NhG77E4zYpQIgO1inVlz1C5dMqdmFHZzul3MFMmuc9exfqAbpmTVWPlI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593741191701_1593741199348_0.5727597383912626"},"_hasShrinkwrap":false},"1.1.0-next.1593824801387":{"name":"playwright","version":"1.1.0-next.1593824801387","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593824801387","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oIYOBE27Ok9F2tQH0w+q0CfhG6MonWHNnFb4BYasi8J65S3YE560SCCHMGUVJ20znCDDOEDa2J97qXHIr9S3Tg==","shasum":"145d42e67ede58b1f5895b9dd037698faade77f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593824801387.tgz","fileCount":137,"unpackedSize":1721820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/9YpCRA9TVsSAnZWagAAXI0P/0Cxa45mS0Ue+mUJutu9\nnFuzCixgkiDQLW529kvVmkrBfEaddKNJvL5ba4Sve9Kkc0CFLRWu55pAvtSC\n8rBIiGB+gZeH7foMDX5tnRp8oNy8M7IskhPICnh4A7+hpPPu65cLa+Ot0HjA\nkyNod0Cd1WMoy5owVAbvVg8UqotZYPt5bbtnNad3qOiyLJc8geUB8B/JnTJ4\nG1a3J+ZgzMb8MoPYuUxsWMaRsdCSy8y3ZrXJsgnBrKyetfQogq5Y8B/VheUT\n7wQ8LExequ+y5gZdCH2W0n4b3zuFDdO6110nZqBkhJwN9T+8csU5XytBW09v\nUJ+2tCqyHJTrwHbqRHhDAU7tbTDnZ9TVPV7vfeoheikP1QQ6+JCxckoJZdbl\nS2s9rR0iOQ9ZKAktiTFJgJjRNOrdIJvphHRQFFrgtsVlZ4W4fTcxdka+TdgB\n6MtVrPtKG77cWsQF7+Hpc5yh32LdnB3xPkZL0KA6AoE9nPpOXIhAzjooV0H7\nG0liEe8pVxhCMgStTiwqvGrEnUBOOeKRljoOwpmX3iiSFqfplfS8OErz3F9X\nwToBy1rGxYJa4DByQaOS5knbPSWjNQtkQK6dWcR4vAo40FIvE8GnOJEkzC7u\n7KevTl30/XaooauijtuTM0gy72btbI6wSSQF9nO5dZQL6X69BKcwFsQ6Snzn\nmza5\r\n=5j9q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwK1mW96Wp4eJpq3a4GzzME6V501f9kftWVqF/vv9xQQIgGJxg8VVNeTN8j/cMD7IajsZcU3mQblz5cUovU6RDv/8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593824801387_1593824809071_0.7911948640542541"},"_hasShrinkwrap":false},"1.1.0-next.1593881768372":{"name":"playwright","version":"1.1.0-next.1593881768372","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1593881768372","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+siuSOGBI9IGdTfMLRrXJ8SREBC8c6D9me7LcgPmLs5XvLH13XiwdwcwROoEbBVOQknfWRc50s0Tsp/uUnvQjw==","shasum":"8e973abfa95349864854e31aba0ce1d65a85fad5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1593881768372.tgz","fileCount":137,"unpackedSize":1721873,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfALSyCRA9TVsSAnZWagAAwkwP/iuC1eoIjB4njR7nIeu9\nAqapd9tAd2k0T/YH59w5JmxnUHQ5KnrN/jIUWgSX1F1Eu/HmNXZSjrTZlK37\nDt60ZrWkFaG/T7MibJqMf4ccoTSZsI7xvFoeY8ureNwRMQy5YiH26+/gGKFY\nqtuvlxhq6BafdJU5hHe8G4DyRAP1Vh3XM6v0ffypdV+fRyQoLB2CMruZGW+x\nJ5rM/r5eEiq7PDC6J1gncHV5puCz+lgKNybHGTWiNM68hRt2642yOYemTFKO\nMSAWS4PbNq+EU5DGCtohSzUyLcXhPmni2owwunWeR9DO7IPy5E0JI+5RzT/I\nF2o9TBtmBaCRLEpYv+1QRDofFx8IJmgTNRju8stPFCC6AGsqj4VTsGvFCmO4\nKtnHUHywtk9a3bufEoMI+iHVdHkdIKx9SeqksKQdLR9B6cGB+Lvm2Y+pXy/k\nLd0CEQgpRH8YONnRcFTpChJxX1XpHYpT+K5F6g4F5bYFGIDLgz/trDQ2BUq+\nFd7qEvOIoB0Ezm1QkbN7fwzA+TDq+s3Nf2oU23+K0YjeIxgD/QE8l8PDOqhC\nG6qgm9G6UuFfyLT0PxkxJoRhXDPi5VuMpyXop0HPx8SSzB5oTivqJjly+goX\nk5Sl5sRboE5fnbrMRWYPZ4cWWtIzCqeNfn18mBBQ0nyPoK0V5snLNAedC3RP\nlMo8\r\n=32zv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBxT/cOgPi13lK3OZoDJy8pSGVA3ISXFKF6yzoM6HLb9AiBf2kOp+3ewqAJVFxr2qch+0XNAqDUy3kGkzOECDse0+A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1593881768372_1593881778315_0.856669545067978"},"_hasShrinkwrap":false},"1.1.0-next.1594053967018":{"name":"playwright","version":"1.1.0-next.1594053967018","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1594053967018","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jSU7bSI+ex00L7y2MYOp7g3zcI05nFs2fEFSu+UMjUCl8hkU0AsPAvJXBnDhHJO8G60gSJkqv7TVTzcEfxDeJQ==","shasum":"68ab6b1ff6aa8864b05cd0b223425f422ba7cfc6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1594053967018.tgz","fileCount":137,"unpackedSize":1721894,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA1VYCRA9TVsSAnZWagAAwXMP/ivTXc6sQxETiaLhxNGb\nTJeHtkw1eLeIi4M/PPOeujW9hGayLRxpSUi5erjUcuaFhTyk0Pt8A9Xosnn8\nbcVfSeeaXC0rSHaEX76tqDSdXVJCHOwQ58f6R5T3o4gYdXrxxCOrKVmBKmIE\nBDuZBKGCPagvlUywA2cBNaJwkt2nE4AzA9euWZBucMziatwJqiiaKUdxekec\njvaE8P6DaxVNpsw43Xr6LLJczrkSuyoBg3/dyZM5jOZwm+H+k2ZxDDzzgLfq\nU1CGgVWhd1hyQKg5T1rGIN3lLvsmCY7dNgf5u2Bs/X7nK2mgIEhyxv6u6E9S\nMk+wtEoX1SWrFNoJerNGzEIKyocvWFV5Y9o4Zfgst05kfuXyf9yeORdgsGOA\nMux++uCuDK6MbwimeAU+KEOR8Mu77w+nqowSDLR0G97/PHIXKia3ojwYrgvW\njjvgT8+1gLeXFg0HtUzb8cOjR2lcp8X2j6lUCVmG9hDrtBNtF5yKLeWcRZZB\nZ684D539wuVm4X2NrtOLcL71o0s0WBAUzRavuiFJTk6/DtttPvTAXglymTor\nGdbPdOMrRV9tythaHi/WNtVV5fhPAOhagB+j26nlQwA7aNob3HI9k7vDbIA0\ndNlqSEwWj8v2pQg9QIbfEIfDCiW6MjxM9Bu3U9BB7l2t3YVUYJsq4Y7lTXZz\n4BFA\r\n=jqeV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqPWIAyopONWH5JjmJk8lgFy0UJ7NgDIx7okoVlHu6MAiB4favKjGhiuD0fdMZj90w1oq2ZlvPuZxc3Kv3wIT1t3A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1594053967018_1594053975755_0.727196006739466"},"_hasShrinkwrap":false},"1.1.0-next.1594055168489":{"name":"playwright","version":"1.1.0-next.1594055168489","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1594055168489","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zvHrqPKdpqDm/R4hmy3THrmF99712shT+O5yMw2bbeNyTdVUgiW1PlBNGD/FO7PYAhIp9P8ylJQcsdAO72rUxw==","shasum":"6bfb5518eacaa2335881e2ec8d3df263541dccd3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1594055168489.tgz","fileCount":137,"unpackedSize":1721472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA1oICRA9TVsSAnZWagAAhAsP/jIUBcgL1FL8QyY6FQUH\nEJr7NmUjZ3UM3NkZaB1Xr2HDSlDpel+UGQxOawxGfyExA0IpcZN3wL5OOl+K\nl1by7XKfT894ULVSCfceMgKEp4r+7TNXzAtuiWB9PdpZX/V/S8bwp1zJbzSo\ntr99g1cvFu8Fb+J78bRBqpkdl9OwFOSOO47tZw94m8yTnfPCDvwZ8VYW1q2z\n5Oino8m8AKZ/hHmvXXEkU1UbMFxt8OS46gtdIuVRCrsDJEI4KsO5NxCurRVn\nssY2CDONcDabcgyIUGopR8JgRcRc4XLbIEPJTRwSRnlXJ+cAb4VB+aM4FRo0\nxT1+hl0P28wSm4R7hbvOF6r2dpL7AWaupfMPY9GMv1+z8cgtcGvDk2ZTqSId\nqglmNxhlnLW1xz1nuv4HkSQIIm0+2/6jI5qUSztirt2PGW+V+dbrxQJ+h+mq\nBV1VYrrWegQS6V1SUiKMQZL2lZajSGwkMOlqotKrHOzcVTjOAOgjdp9dGRy7\nQtH/H/ImGx+tCebGnhWVOuXlPZ/kzHSaOQWxm7FohwTBVhqnqwZRUwSLFK96\n+sAe9F0o8L9LH45HwUzOmnzSDZWaLpokIeimoIOUXW28fF1WN11E9OJJ+t2x\npnr/zDbMV5Px1bFt7EmMKFFIuL4LqlYw+vSm77fY9wrynm8rAJxhbh3EaJaP\nvLai\r\n=XObn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAJuz5G/VwG48sbkt+4ZxCDh0obIWZlKMASaoXjDoRDgIgLr0AaImyoCfFauqPDwCIecPXNqh5zhkeaysEFr08PUQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1594055168489_1594055176272_0.7660124360746134"},"_hasShrinkwrap":false},"1.1.0-next.1594059260170":{"name":"playwright","version":"1.1.0-next.1594059260170","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1594059260170","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/+9YT9zWlgzr803NDC+7sPO3u25MEXMLsNiAreXSb6OavRQorwYAfQso4teJYNz+hrjdfdLskLfYoZxKPz2XOw==","shasum":"d897c976547961435041d338792e1eac3488ac4e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1594059260170.tgz","fileCount":137,"unpackedSize":1721472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA2oDCRA9TVsSAnZWagAAF00P+wbHNz9UyYSyRUkam+QL\nRViLU1ztk6DdPo75Xv2yufX6sFREvK7Npa9GCYWtFPvyQxLM3NieqC14jr+1\n+NzmJhbis5vA237rQ7PtiauvFW1xHl60lYs0/I3qgIJ4Z+IC4pJ9s2gT/wy2\n96+PXxkHouCiwTwU1x1VFlEN/4zEBjzH0PcZyjwUydLSfsGW/qCgGWNvN5qz\nf2T2pplSa/m6c2/nHn+VsQr2dfldho0MTnwakRjfo7lUP9Eb1rvVOFgwnyAd\niMHNE7b/1+jtOHSLkjogDirnhhWxwC6eajLi+/JxpxnjL6zTqpHYamdj6UBd\nuHB/Fn7jUKP0l1BVmSl3KCI9ljWIPl9NBgEuvmDKJn8ebVXP3Vhkr72Mpvkh\nA6PGaRsKyrRkqD/srNE02c0joMuuf6fbge0oy4nwaQFTVAICz5wFWlyazzSg\nRoJ83uurkP1dyF0ln1hMy9hO2YK6PmelIOauXAXCKy5chbVm2cOPV01/NKyv\ngydvxQqfhb3ihDqZ1vDiN1WgAhchWtVHs8R+CDH0qa1PKyNJA8H6BNGQ41q9\nYKm6z+liWzazDYNJyerZQlypnZSsABaTr7tVd5Nm+LE58Pxr6OL/UMRi0k59\nxiOM2irlub5TcwQA86E7RFmxaC6myeMLRekdCWmsJt3ukb2l1I1tvzxD6K8i\ny6OV\r\n=uo5Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4oM9ZvcksLdJUt7xRPk06U6GFmAqMmNSdOPPzQnBqCAiBSelX7JzUl4yhzBDS7clKORAx3E7yrPi1HOkMdmToWTA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1594059260170_1594059266592_0.4515544664864213"},"_hasShrinkwrap":false},"1.1.0-next.1594060313441":{"name":"playwright","version":"1.1.0-next.1594060313441","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1594060313441","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wJT23gjQEPfj1hfM8rmULARSYGjjxVVg2h65G6k5Ln3EIDAHnuz2JQm7Ce0jxpAkkyyeEPq9xwIlGg4nTtM9Nw==","shasum":"01a2c29056f1bb09aa5d99ae0db492b80dfd510a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1594060313441.tgz","fileCount":137,"unpackedSize":1721258,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA24kCRA9TVsSAnZWagAA9DAQAKP5NUypMKhcmzwgEA/v\nOWy6Ld5zIA8OTI/z/NBbsWs7QhBOJI9ydB6+XjCnARR2dCK+M2M+0GWhf1dm\nlxuTuEwxlspAC+orrSqLrsaG4qXW83x/Kj2/xLwizj8Lf05Bvmookn4WDXNC\nhUatZEH8WVN8LsmkAueB0sbwks3lOz/jgzqbogFruRVEwtTePMR5Upz+1kDr\nCIO6KQVOfFOirzDVW6J3nVZWXKikt0s7oG7IcpIT5S9wPnxDB9petqIoykPW\nbq8KFNJeDQQgbonzuZAhkpFhMmK7pcideLbtaEKPl/uGxlcbxFT0kctjJdAx\nWImttyb+VpmO4bnEHDflHoEo9z5Joir5/cP5cZNmRPINLdTOdPY3e7qMIW4E\nO/TcDQq7STFrWi0k+cYRdFF0FVRwfWBcIaHBMYJb6f1lX1tMWWhn+EESWcrw\nGolwmbCjeum7+0lONlpiD5QzZgnHciKe9WMyxW8Tx8veRYrhr0gtIvTN9eTh\n8nDK9VCW1r6GvjiDK0bNj7PXmW2I2uae9pOnt23wGlm9GgOD7GC1kfYKLksY\na1VmY6VB5t7CfOd7+vlh8JPtptMHoRhBBnR8SHxqCUFJbUJN9TWrKlfAm64Y\n3VBuWANrZBklrch6wD9TCpsfUo0JJnvazbqsKHHBc+FGi3BqzJy0jNUReQSN\ns9z2\r\n=fZ3t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwdgmbkTbhU5eUDUHlNfdIs50YcJtpBKlM4WoKxIt0gQIhAO+TWVUsJKMeByDOU4O5szo1XOh4+xfX7gb/Rt+Bydc0"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1594060313441_1594060323773_0.3806838726685662"},"_hasShrinkwrap":false},"1.1.0-next.1594069245095":{"name":"playwright","version":"1.1.0-next.1594069245095","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-13.2-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 13.2 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.1.0-next.1594069245095","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eTM78ugsBG0wH67uX/jzCJPf/kyJolyguTu7lDHMw4JU9hwrnQK5dqzzBIRfWI6lpFQn5ul4pxVoz21afEjPDw==","shasum":"6e4045142ef46c12c8b15866b105e42b0ada52a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.1.0-next.1594069245095.tgz","fileCount":137,"unpackedSize":1721258,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA5EECRA9TVsSAnZWagAA0eoP/2d5t/6LAzyQWpD8qBju\nuOKpbhqvCEJ/BsVw458OK0uATC6AFpaQiVvIPlt2ltrIuUJeh7ryjydjuM+7\nmZJWFbmNMcVy+FfL0587vMLXTKKY2V7/W88sx85EpP65fwm8XQTOe37ijaQ7\nJI6JhSZD8nayW6hnaRQSZwEGLlUVRU9H6bZdnJzVjqLCdXySZxVuubdDLg/y\npp95FRvNBoPeCJ2Ie0zDr0dM9P6w+zn0nVZ1zgO/c8QhMQI7zn2L6ZZJph1k\n2WGuLKPAoPMsmKdBWmqzWflhGyVp3e3eg2niozkZnYpLXe5RzH4tbnFOhMef\nHU5LhWmUcX8BuL6C9NQkQMcIwQqGfkBgnsS2bm9GeAcq1GU4tWJbr3F1axrn\nf0B5JianHnQD4QV+HDCpn+wPC8k7UAoodnUqlpDm9BsEv+wph/LTzQnHLQBI\nOcYXLv6cOaIWX2fxOCZb47iakA+cCvZV2oJ6973ZUUnFJYz7Fzgzxgt+235r\ni05Off5W1hzaCld+fxXMhGyvNUNMFIFc8MUhM4GuuEvfV9KZYJaydhHiwHlr\n1jPpRezuVpT6PRiahjbm6prQrtC5lQZo9iTyfYYY9NRmgI+or+iaSpMhHN/o\nrkEb8iJR1E+JXrGMw6sAKmI9L5/txMpCgzv80qM8TAriYbplwXNc39HJXJ08\nzbSy\r\n=NSI7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHS1vw0d627RPyFWsF3J3forba9sDA7H0OcDhWDgZYbGAiBWQtBgttQAoQ0Y20ayz4RBfl3cQQea2bx4YEjj998sXg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.1.0-next.1594069245095_1594069251994_0.5844243085377663"},"_hasShrinkwrap":false},"1.2.0-next.1594073755699":{"name":"playwright","version":"1.2.0-next.1594073755699","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594073755699","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Yid1zCBuODT+1coIV8bLP5l5LBaMQYoeDQbSgSdT4Bbxpos1qMsKEAbE+EVyXlwzZrSH4sHiqWDeDmZtGxlsXg==","shasum":"02cae832b9e91c659621652c033880a1edea9f84","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594073755699.tgz","fileCount":137,"unpackedSize":1721259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA6KmCRA9TVsSAnZWagAAsCQP/RsXZcD7ezH/LIUv36qg\neB1XqpR9VBNPNhWQGw+sQzMjAweirIIoUjY4VmzSOXGRmLGduKteW4Tk/l9Q\nJRcJsNcOpMgECW6yaNORr4yuwn+9BSMoMfv85jN4CASKyZIH8psMzreMeVQU\n+hTts7QQ23GRHVpkoNkTo/C7x/VHF6MrwZlY9JUpKZoHwagNXejn8SlOoWdp\n4GGxCNHbMkE7drZeBygfQGiph08+R9GNUQhK+6IuFFRb6Cm6I2a7cdSGXJUC\nRkbX97TlqoT7i7OHit8dgB4+PXDLo5Ixzgo+jvl973rV3Gmzk6VRw+zeye+h\n8cC21BtoYCOwRvFjfQRf3tdXlWaUK1eLzcVa67WKVpRGKmcZqS5AK8wT8csQ\nICySKZo9I/blpmmPfnerf1ryDe0W2vlfGEe8aZJjxqjKEDzBn0e8dsJcps18\noF7MP5lAMIci78PueTpyC1kY/ebv0p+MRYkB/L/ZyhppsWH5II500vVch/PI\nT12oPfEcLH10YFy1ySYvA1V1Ool2OtVRf01+YgP2rfrubLWMGd5TE3UeOSqx\nHPh7UHNQ1OH9vqbFhN9zWm/1WR8ir8PUZ94VZiR1GW76m24VUDVwLs7YEELQ\n8ZlK7+Z7/387BWnNOnBDtxBOvxHTxk1ppDfB/kIwX1Y7AIVU2sZw3uafMpCp\nM1T5\r\n=ueLV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBfifu0mg78nDGcbSUvpHaNOxmM/uQgeEn+2Bwae4rLOAiAovCv/9L+eyypC+IiByTV6HFyJMpShM6VOpsutmEDcqA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594073755699_1594073766283_0.02648165603949737"},"_hasShrinkwrap":false},"1.2.0-next.1594073798241":{"name":"playwright","version":"1.2.0-next.1594073798241","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594073798241","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AYW+XzTXhtWixe1v7fi4h7gaKpj0NnYjxxSuzLLikmjBqTL5IlU9tQOMavv3+drlHH+DohhMo663N5x3epOs4Q==","shasum":"b4b51af419f5b5411df5189773bd21d97c9670f6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594073798241.tgz","fileCount":137,"unpackedSize":1721259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA6LPCRA9TVsSAnZWagAABBcP/0uHBVITtZmdpm7hPIg6\ne35Ond/6pKSdg2KFU2ThTqh4T0T6VObtSQuOgWl2AwHQfSBqYQmKk40dJzpT\nSP2gNoV4bE13tKGlqrXtKpLu/Sh54RSCk7YWSYWFFKyTUkcaQMy/Hcs9kUcv\n/nEJ2C8s1EBSujnnIr7HONsppxisu6VViK+ZhjS+yNRZk+L9KxozWsZnnxnz\nVlHNoMTx7LsB3Zn69YZoPf9hafrdEBxKAu67aChw59Fnw8PEHY+nozVCAdH7\nKR9l715hy00ITk49jrRL5jblN6197inYYMLk/6FjZrFZ75awOx+FEW0OnSx1\n+xGBqSGOZ2b11VYg6e3YKLai7EDTRmHyFL964vo1AXVDIDPSdSSNmsI+D0D9\nhKSscTuqU+S/DTZYjp9bVuHw/2b09+WW/Z9gJw0dycq74313wNsEtOklmJ0K\nurzp5YehKHqELmk+2k+2MWQgZmWwNHVLt9PPrx5AfflVsAzjqCa4E0K2S99H\nPLCSmdAh2+kVDqX8kK9q/EMigWI/E45EPcMUo81z4R1n//1gfUb3XWL24fm+\nkuttCY4QVpbZjHoDn1JUc+T5eV2cTVVoElEXqrj2z+cMYowPvcWnCpvYS8RA\n5Sie6K0IQjedw4WLuV0IhG16NWTZXCedc2ouUYANmmrJ/5UcIxiuldTsof51\n72pO\r\n=hRI4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDByGqO3+o9AReeX+cDlYqYpediEOKWa2aF1XjUK65JwAIgEWvTZa4Fb3c1Xuu+QmPKsDMHK3R7VSCJXj5juMCcmnk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594073798241_1594073807107_0.2737086088615204"},"_hasShrinkwrap":false},"1.2.0-next.1594076413467":{"name":"playwright","version":"1.2.0-next.1594076413467","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594076413467","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HWFW7X5HQ9+yYHiMkZ4FiHFJiwWIS17TzhSB9YteEFcrYUCdqHRX4oeF5Z+7LGkbiUUO4rZdn6Dfd3TZMq3TKg==","shasum":"7edcd5262ed871fdd6f9591727b4e124ae4023d9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594076413467.tgz","fileCount":137,"unpackedSize":1721129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA60FCRA9TVsSAnZWagAAJFEQAIn3/KyEFl/+s2A83EQ0\nXBopRVauwwbkmHOxo0DirsutlomgMRMoa6k/LqvXYiZ+JAvppFJrhAV/LO8b\n4DRlOSoz2dumCbSyj1CR8m/pWboq+RdNxu3l/pnEC5bDru0My7JFu16zptDH\n+MgKTMtRj4GgrZ8JIge39E8oyULWwEOlAeEGgDnXupxNFM8spglK96kaVwgd\nW1o00NEUfoeHWSIa/g1raNA/epZkZtmmf/vbTaAaAgceB2iPcwe9Q3CRunTt\nVuLE/d9Q6f/Pn0L2fOFw8KOTnQjjSuteIU//qOjKPOdkyijwarDpNYyexIuW\n1icg9ibA9ErhIAuk178LwrQa4ZoMwNDqLK70M5Qjb13PE80AFFamrqVkyg4M\n07218FED6AWg3Htc5YHKxYhF2/Bj6n8ho2ygLyPdUXNfUH6EmmkD+eRQB/OR\nwyIfuVCMnzkqq1O+GyPa5EWHpZOS8n8vEjLIvRia+xdjI/ziK3ehbA8jpX5u\n+ldLQVl4eEMEQCQxlGGTyZJK8jcfGoJI5Ojxqzep+qPKjkEZ3QYaT3sgdHPI\nLOxZHs33PDXbFeU/qKJTmGuZqjq0kon6k49X2kjYqg38ky80eLc6M9/bM0IE\nHomGf8+H/p4kr57+3H4RF2HAjTrMbUp9Jr+X+SgOyWuy47YCgb5UW55dDTPZ\nZ93L\r\n=lef8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYmsTs3tT8uAQICaa/LXnWVXOj2BZD7VEnmuwHmrX3lgIhAIwBJrsQkDNZPS/e2ulDryRLtgFN8j1ionZh1lChR93l"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594076413467_1594076421047_0.3320842033875462"},"_hasShrinkwrap":false},"1.2.0-next.1594081054043":{"name":"playwright","version":"1.2.0-next.1594081054043","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594081054043","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Vxm4k8pPCzEkj1u0dHMXZAzTs9kcmwHLf7LqdwqL8hqInwdKS0SZ5DCs8ZLyQ2wpYtICHDC2EeD8GJmTx9UoXw==","shasum":"4ac0055cc2c4513feb220ccbba41f2ca6cd7042b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594081054043.tgz","fileCount":137,"unpackedSize":1721259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA78nCRA9TVsSAnZWagAAW40P/Rn5JR5XK3qm2/tktkpE\nv6WWsxGgtAKcDgBO3l0kUfsEV38AfPYDWoM2atI+hNlUQ/BYiHwBjfy0hgS8\nqX/HWiWX93qouWgdVPautreXIxIokEFvvXhF/1k+c1Sm2qkmGJuPfVIALw6W\ncdy/hCcY/klPLUGua4h2DotMJejJOGlrQTNe2ShJxCo4KiWp0kufkaKkeQ8E\n21C+aPBJKf/i9Ja1Y06pAjp7KBsssbmfKQ5mh9PDdk6gO5S/sGh11cnQXdQZ\n1b/fpEqOi647wv+xRAoZ9zbglNvkuXqy6kOorbi51gYg6QLzYvQOOuTQAFQK\nnm5CjGjnBeRq4956p/UzZD2d18y8Y0p6CcfqV53BzqC/1nRlevj+65H8d2ZJ\n0g9HiNyFzOHJnsufHpY4wNZT+GSrWnz/rBOCglLut1Eqxo0QG3rdsVOK36pq\nvz7ls7kxX5sZbkS4thpYWjhJIJr0sd8KxJXtCWmNEN3jia/GyANmiQsyRHMI\nm6jp54877wC0epTW2YLVzD0+dX/GMgrV8nXzvN8yYpSQUYue0/HEZIv77gAG\nO3z1ZeMyGLj12Bw1TTpYkhZGz+7PSiJe4cyOgcxbZlvMye3V/R5tBFnV54zq\nYBIs5/0kvTrfhVhzbu61MgUh7dkK7LS88BYl4eXS42WdiLKTGfXRSkDtsuvV\nPFtA\r\n=0JuE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZIJFnRZQRU90XY0s1zTcEPH9xKAiCUKlcJsSIWp4p6wIgSWld0MX7Hzuo3chig6GSUC4NDQ8xMuTt8vWBBUBFq/Q="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594081054043_1594081062896_0.4926867892322291"},"_hasShrinkwrap":false},"1.2.0-next.1594082323189":{"name":"playwright","version":"1.2.0-next.1594082323189","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594082323189","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nAWogH26dC/75UI8Hhod0jg3EmLiaT/aHUS/Rrv9OEnZANx63ZlEJgIeayrGKRGbdP/RXCh/zjZv4/qX3mJ64Q==","shasum":"9dafe5bae0c1e0ffa42217f65ef755aa8a804674","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594082323189.tgz","fileCount":137,"unpackedSize":1721683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA8QcCRA9TVsSAnZWagAAODgQAKCXa54AUIOi9EtfDZYM\nTLh9apvm9viVEvXW88RzF/rBgMTKVCI/nhNkT1tHdUGeR5V6LmHzzGL0yEeE\nL4z11x6mNKnd9ywvO981GWToYV3V1wyESGVsySBQ46PuFNKcDop0rqf+Dugg\nd4lSgA+aV3q8ykWs+muG3nz9t6FL3Fa5PUg9kjklxJUVJXwOhLFtaQpOJ4Mw\nsCtRMyCbuUyvNpmX9ZYe8oZ5JFKFYVYJAGDzmvI/V+Gp1GnQoW7K5s14MX38\nr5CjlOHfaDdbLNOMl/tOEZLEG0bdvj7xVEjwtwH6in3k4cEOXcIVUIJH71sd\n7XT4EYF25WslQ2BuR+EMACsn0hcAyX5ZSee5OBImaNJThJZTBeX7T/1JA75r\niu4vK1yIqz0X9qbxjwmEn6ZpeRpMuTooLyVDWX5d7IwgGdGDFrRAgM1TceK2\nflNDn26eHZPcAW8psZcPDxDuwjZp3EUaP8fejRbz5KYEbBaPm7JdU1OKLJjx\ntlFlFWztFV2FogVExQa86moAb7ydutwj59dVZTfd8Fyr4Ju7T9Nh7xFevqwt\nn7ik/Dtzh87Dl88m8Wler1HHhZ1/v9mUg8ZAYqB4+rl7ZbG0oh4afQFKDDi5\nVNNhc/l6uuFo1GKFni7lBRJDwltD2/Ot5McwZ4vszB0TPTfc6AGh7ziF3eCy\nSlWV\r\n=RXEr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA0gFnE+Xsp2NVussNGg2JHua+zcYsOe4gMLOxkqXGFNAiEAl4kTmnR2ZhdrIECoJoI8y4ZnX/2yB5ES+eXOwKpmWLI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594082323189_1594082332038_0.5239537659062117"},"_hasShrinkwrap":false},"1.2.0":{"name":"playwright","version":"1.2.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-r8780weMaCxa7yG5pMudf3T+s8NWa+2aG+vo7DGjDkO013WxUNpmRMe6L6LYOU9YpAUUTDHsRDur1HLKQBov3A==","shasum":"9a25c050183a8f83994d4bbd0b7555c799d5866b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0.tgz","fileCount":137,"unpackedSize":1721240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfA+OZCRA9TVsSAnZWagAAOxkQAJ8SmLMk5hp+7IYRTQ51\nxAx7uecQt7TwTNMHwSaip0skjzNh2n1I1c5Jr4HTUNZwYtVpLmV0CR0+5np/\ncLG8TEV3fDv+OG2ie5ctTBqryJZSzTz7lRNizAKXQwgUoRGV38DXt35QGQj7\nPfgH9Xrylm3dAcOffe2OLMDtzw0e+zYEZmLLLDfyfJISWz85pgi9azD5yw4g\nHP/TmH8YGCsoJnWlyZOUCBzGtFnHaiT0PCu3ZXLa65e/KIQOuAeYusHAMyVw\nZUCgHtOxCCHgqx/advUns4Rqgvd2Ohc5Qn/le6PrWZ6ZYsKXgKXUvndpzYt/\n+gKiiJe4EHZUhDxZp1yCujAx3we+/BSjS4o8/voo5LAEMVyYLKw0QE7l8GsS\nyurQvTLl1XAkblfh2EOtpLhFpbAZ2+uS4sgRDeM1xh6yOUGdvSBYQiJsWfgn\n5qKC6oDlDLgrlJsP7MpM/7XLS9Ehpbya0lAvWFumOTvu5rK5lGgD6s0maJ1G\n3YkyGMcda3H//pRTR/i4RZulxYF6JipCEZoWJrqybKXDM9XHFQI9N/3Vabf7\nhEn9vZk2X4qr+tHXivq7ML4NwjvTwdjIRIn0x3LLJyDo6MmR4nncYNFBB1ZK\nWOd5wBBDKm2mkF6Ys1F/gmJEDIVRIMFQ5J6eI0cefIYf9wJaUismNft39nHZ\n387V\r\n=sgT4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHd1nqNg6X+zXKsufaNeyQIvg4vQl0RhKMeumGUmV+T6AiAOGZdRiP4AzsQGcVWRC3Qu0YDlDrn4GM7a/HcIvy6xig=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0_1594090392789_0.25810018065205087"},"_hasShrinkwrap":false},"1.2.0-next.1594139580460":{"name":"playwright","version":"1.2.0-next.1594139580460","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594139580460","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-QdY1nkr0cwPHYT+L2vWHGs4w/vppIt8h2pAPASLKkidBwqxzZCWlQUUTrbxhstKWV4ZkQJCGg7p7jJCWd3hb6Q==","shasum":"50f0e5c64c6e6dbf5dd47e48134f2ae57f261679","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594139580460.tgz","fileCount":137,"unpackedSize":1721683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBKPGCRA9TVsSAnZWagAA1Y0P/1o1l66H66pXiy3WOVwx\nJSwsNg/Gk23mrYcjvpsdcxZ+AdZ1y2bCHakh74B3AS7Pl8BFV5PZfrNAi3K+\nUlgi/eNfyXk+z952ztdBxZ/gtRwoJaj5qxO3KIxasH7wdEpOeXPSETV6gScZ\nbQd9x+ww1kFe6hoSzQLUaMCu4K5pB466qjhBtoKdtlREpt+4JLhH6My8V89s\n8NegHEA6RgR2bpai1Pad0KkMbW9KZ7fQ5unqCVfFs+fCHmLs5N6s9f0WcBB1\ngbmCWxhlTZwotSG9HnrWI8ERKBradfwMwDETzV0iTUWAY887YNRw4Xej05QR\nltg2RPrnv1F9dpS1+ydRkzRvVW6+EAhLKvbEaSpq0PEHxHLxDzNp/tMwceey\nohbCvycUbtqgOdGbQlJPyf5+dUH9CAXswIwZvcmqloD0ZVsVlUkqtOILGt9j\nSvtYcU5T77UxF9Cbss4IkKRwSNP+D4xDB+2D1YM/ziAMldmipOzTcg+050mY\nwUtTTBr9UYwbdVWHmT1hVBckKY5j+79d8HBLCW/LVP/TcoclJwX5FQmnyRk7\nhNJ0Xouqirb0JK9JJXdr6qcOdXROuvZhlEMRzAm7ZyX3kz76wLOFPCGdj9ZB\nr6wC9L2QVF4UBqpm5eMt0GQn7Cl5AsTLW5YkCgFRIh1B17qnK8k0AFANW41q\nd5+b\r\n=SecK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2S7+NYpJ6CBPg/00nxlzDFmvOAfm5fKly3hh4vVIqGAiEAnwj9+q6N98tF2gwx2bjl9fyzjcsCaIFDZV7aGbe0+KI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594139580460_1594139590129_0.23787102743028088"},"_hasShrinkwrap":false},"1.2.0-next.1594140114615":{"name":"playwright","version":"1.2.0-next.1594140114615","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594140114615","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wraIlOzYmZBHxMxEi0itar+4eVNF/WgEhAxtkatE0nWuykRCFSeAvZ5tnk5WqCgRLAiw+G5jitOxCsah7OWHFw==","shasum":"f7daf19f5520551042b9c4fe641e2b31447d59e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594140114615.tgz","fileCount":137,"unpackedSize":1721683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBKXaCRA9TVsSAnZWagAAGAQP/0lEQXycaYnuGfEtgKMj\nDh1GOzqVN1W2A642V3elPIjrkJ40UdxBqTRQ0fNb/2j9VD7BPIa9LE9htYZ0\nqdt/0wI11V+jDrVPkx9ODdMPNH065fHRWw82vw0qYPWTD6R8ZaiYQt2efiMG\n5oyaIj5WDiLPjfwhGkgm3d5KhXhRmuaEo+CNhq8ZqHF45bKLsw03zVxN+ga0\nxX8fMtDSx+Vag5JLLRp/El3rW0i0mH/9Uw7f+EV4oMc0TH9LlGoQyCqpSvcl\n5XR/4l2wenpFQv91LL/T0y67zLM1Gei0yvPtS/7DWcqdq08LdSTQ7kqVIo92\nQ/qkrJmfV3tw9t7IMPM5LcqE9fo43HQiQdJFcCA18yY2vrRYj5DYWosIciie\nzh8HLV7IwEYtm2VYuAsjnY6Kibrnp91AfUE9vfc1oEMtnmWDhym+IkpAYnxP\nByYZt1Esz1A+vf9u0NzUEozpjKwBVQINZSyN3xKj2EdkeKak4v6e6dzxmoSj\nE88k7YLWnrMFsy/ZuKg7VQYDkT0ciVcaZl6ibadiDy5HEvYp+kAGFaLb2KiA\nX6bGEYHc+NcuzWZkQ8CA1VPjn8SvaN3YWze7BN1MkhkYzS4Pl7CTz8qxITl0\nImSVkAs7pign2/qXJP5RFkiNwlYCxfR5izJe7T7WAAGzTdasBlJMjtw92BcE\ngNr6\r\n=Xf1M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBM4L2Y2UzgFA298670ZYLRowkp1RMspJcJXRVgYuaspAiEA0dNqn+XiH0lUJp//r/pMMy3xVQn4UG7My46BRyYPh10="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594140114615_1594140122313_0.6410469270521717"},"_hasShrinkwrap":false},"1.2.0-next.1594144083163":{"name":"playwright","version":"1.2.0-next.1594144083163","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594144083163","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-b+B1pqtNGV4j+5PBS2nalO4iJ9W2+H20N5IKH6jDWoaioTX5Yidy0luTTylaTXmXWBCiM2qlbKdACC1mSvTr3g==","shasum":"85a2c00b4aa12732188b72007b139c6c2f8db3df","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594144083163.tgz","fileCount":137,"unpackedSize":1721683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBLVcCRA9TVsSAnZWagAA5PwP/RS34HxXtSxZhqz4M8vH\nEZ6ghaPJqV9DIFZNk7uOgCLO+5qvbSaGbocKq9KRk8HcjUG3fQrM+9I6/6XM\nzRuW0MschjhshS4cC02R5i9iFOT5DBTOPPrDmxmiwsfJUp1y7CEO/+rsCQiS\nM7csOWLsAZciXTlszovyoRVxlVsFyQ7XgEXqxD6q6pEXgy7savXYOExB7gAG\neTzlWvYMg0ZKbnO1E07+y8N79vye0XvhDe8/hU2Qvg304Mesp0/8J0wFCZTw\nVT5qBwsS2Wui8QEMF1NcPMVW0Q7uP4DzFxQNh5ubnTs8PhmwJDPHGy6eQsHg\nxtJW1Po2IXaQFatuD6UcliQSUWsIMuy7ePxFMTNuBDm/LvdXrNG4WqJ/hge7\neyPGpSFEcx69svwGjn37M02v7NQ0Y2iQjPyUEl5e5+UWm/tZIo7eJZ0arGgW\nggxij2xCNXSepL+fc1QEf1v3NvutMTbMH7EtLFiP3H+dY2IBn7p/bFdBZ8kT\nWCVPq2vYQvNtyK8U/V13GGcLwKwIfyPXtVNwyvi1gSIY3g8CAdWqIZKFSO6t\nxXZoktS0VjmCwoTzIuJru8640kuXEro5Rcxi7IVTbvozwVeBTcO0iCEme5H6\nnyjS8sAkucw+5yaCM3JyRtdymKLelYmiEbtIasr7PMfwi68DhoPZslAXx+fp\nED/s\r\n=stoz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICa+qgb0Tk3Irq1jKjbLG7fi8cITfuPxGmAkjgEkiOrQAiEA5+Mro06CW/urddMy2YFmVrJNvEI/sxi0dUIgemjfjfY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594144083163_1594144091717_0.676991119062953"},"_hasShrinkwrap":false},"1.2.0-next.1594145731682":{"name":"playwright","version":"1.2.0-next.1594145731682","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594145731682","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Cd/vHwHiqRguipIkOqWjfthnZCH2A9ip84yWS4PkR5T170q9MjZRNbsfckH1Rx8BjSgW/Pda7pocpnRL+tqhng==","shasum":"664cf07030dbf22e3ac57e4f343c63c1bd205709","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594145731682.tgz","fileCount":137,"unpackedSize":1721683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBLvPCRA9TVsSAnZWagAADrEP/2GgaKv1lqSMlgtWBedQ\n7A5DvENNTWjMCO2/GTbieeStZdNNhfDYZJFR5l1TMah7JhPL4US+Ct1bJR4a\nx7zK7fO43aQRDJS8uj8ZGpCDceBYsQfswVHzmQhnKvkzenJizKGabUh23cFj\nqqEhkik/86HObUHCwe+tzBHso9Y+qXvhrXCb56X3aRnygUMETbcmRvm9IdGf\nw+vmzGU8M6S2i2qHctkOn0RfLfv8mW5q2wKCeMlyRFKDBmN1qx/s5DIFe8Wq\n4Vbg4TuD/KyMuNsUhFFzf0KW5NQmQrW9F86TB+o/hO1XiLJJTpmA+BFid5/6\nMjuZMmHjCYcomlHwZPANfLg6hryTjD8hNiQCyUWYYEXPxFBVo6Oo1DwcXVzn\nUEqfPgHDtfwcgrkXfMgau8LVKQyCYhavUYcQGnCju4/QUzIHQJr7aji/X32v\nM5C8niY/Si7dk6vlihHvBklt4a0FyxJh2/7KJizYZQA/gn9tTO/P8EBcYIAf\nGMfLO5pKgiPfmoM59i9Ld3eI0bkFFcL2vEWLsF6eThz+4yi9oUQ80SrpNKS0\nn3NgsFacCDMykOjIEkywVnleNO0YwzGOTKN9fb/4Q/8+RfAfMGaZohGwqz90\nRujLXk7o05G1VSmiq8sg0P/HuvYnQrCeqp/7ia2kI1rojKM7iVmLcOHDFBf4\nP6To\r\n=Lfgh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa1sVljpqMBL7zsnaZB6vrzGBNofbESa26YVIOoSXBmAIhAPnY1eOGEcE7JORJkHToPp5H5WR3MhwTZX6rshuJEeyg"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594145731682_1594145742622_0.20558042214026906"},"_hasShrinkwrap":false},"1.2.0-next.1594152349618":{"name":"playwright","version":"1.2.0-next.1594152349618","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594152349618","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gqtWPyJxrC6l1CfQTmPGKlpCZtBdD7m8LvrN8g500rWZmUgmkCCpV48CmafJ0DUfnBg4p4MBFPO4I8fLG3f4zg==","shasum":"f4a9ca817dc219ecb5a29cd9ecc3e1153518168f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594152349618.tgz","fileCount":137,"unpackedSize":1721683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBNWnCRA9TVsSAnZWagAA+YQP+QA2yOixzs6HAIjDA7+F\nv7MSpYSYzjTridGiZVteRiRLAUyI7jEs54v1k/WzYaLjsL1ZM8PXbwAt0Rb7\niqKj3/AkumHQ1FWqTS8e6MfrX90iz54xVANXXfRPi+g1nTz9JxsvpYj1fgxK\nIQ6DCWypsmasUL2lIJs42/R1Pn5zBjBxly3qYTWOqHELa/4XPzMoCBEFOOcV\nAipmaMJMNKZIt17yHSJKVIP/kV/uiLqkiycxb9/wyxnlLu3f/hnc9Uokl0pp\nSpDtakVFLjLURQJD5+XVhGNvxBuW1MhNdKah9mzdQcu77Fw56mtkScM2w/++\nh7V2rYFfK7CpUqEESYfsa1cXOmXUQdobH3XfrhFfaxZlOb7QdNpDqEGyd8hF\nVYq4LkdEC4T1eqtoxl0X7MrH5BPM7QJ6Lz7Znq3o8Oxpp+beQ8aKK1Y+lJa0\nQVLpQoATQO+UOB95VWCVLy1MCdV1xoge8tTVajpqyf6YpnepH4VE4+Av6EHz\nIR0L/qtCkMBeSLpOIAsXXMnCv57XGm/WkBfb2fTypI0FhrieCuR8eAelJdi2\n8oKk0FriXabOiS0FaajFRRrJ6bH5QSQVlV7jVTJNywoaO+ryo6N+hxhwOPAi\nSkQHufKpKr1PA2mbJU0SSd9d+tv6HPk6zfslUsKmofUQAq+25UINmWWNrsaG\nAVBU\r\n=oeeP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDd2S79+3vYRwhKq1Ul6niFayZPJg5rn356o0jYNdUsOAiAh0XXccOvKtnTtFBLaG9zvuJRWMg+upZ6odq4wXGqpYQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594152349618_1594152358565_0.13415201662246234"},"_hasShrinkwrap":false},"1.2.0-next.1594155967730":{"name":"playwright","version":"1.2.0-next.1594155967730","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594155967730","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UlAjxFc4wFO8qqKPLJJPlFKhyoMpCpjVigcuD5zrcVkHc1SSxYeczgJ3W8awccA8vKBjPplc6MwHtgaGP9DcPQ==","shasum":"e94f45fe689d269c42a38b45fb69ed71479987bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594155967730.tgz","fileCount":137,"unpackedSize":1721683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBOPJCRA9TVsSAnZWagAAp2UP/32w4HVjEaPTsW+jjnm5\nmfCHMK/EEuFpRoXi99sabWDbKLOUReZ99Zut0WLaGl+X0FRF2FrxiAMeyY6Q\n0OF+pDW5jmpyVpllk9mQfu63S89/2XND1a7C55gp6Ug6Ypop+cdcZwe87hdh\nqJjaVVjQrd+o93Y96wg3XWXsEbB4nDjCdNU+QqJtMPt8tbvJJeaJ8FWm15e9\nolKecL6EF/1am4CcHmzYIAIlkV9AQbV02+sRfdGlRs9j2gu6zDt9jwiZGw20\nLePPsmzNKvVf6EuA2PSQPS04TF/dkiEzAFUHbyk3YlPkb1/+2aQ3cQ3vTxhY\nJ3LyiIYabUfUdOAKrLiCdKRVRsriPlJKu+1TDD8Fm1eY+AlonDFYS9BdsT0H\nkzbFeBU2PiDDV6NAlpnltjXu3LUKwiHNznFfmZOnNsEEz33VNj3aS6rp3fyq\nicBrFYdW6q65/34pQcH8DirVt7axD4t3VUYlrGJOpnc0WxroRV4ddxwG0Y7D\noaTJfReqPEnEhKDvDaeNSa4NsGlNCTAhuHfHwiEa7eblFpZY7tRlYR7QoM29\nSHNY1fSALsn8zpD+uxaeyAP0hRV2tljwT2MRtbAaazwPGKv+YQzQYl7CHnqn\n4fkty/p4m5SLxKQymrAyuDMstYGc2WBNRCz7uHJUzeyp3oGrIM76GbQ3sSck\nhb1E\r\n=HyLx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICNaHEbuFaFFXj8bhoWR6PQJR64Q5Q++hhwBjcmAernOAiEAxpnN8MmwV3gaw452Il4w0dX5Ya/NDN2eZCAnG9tSFgI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594155967730_1594155977199_0.31998603326958763"},"_hasShrinkwrap":false},"1.2.0-next.1594156421576":{"name":"playwright","version":"1.2.0-next.1594156421576","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594156421576","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-hBXr3ufSgqHTwygXMtxkpWTQjHDCrzpdU5/lJ8TB4eDXuTGcg6Hr7v4EqbBRMNsbm0u0hmHVtlTuniXoL/mufw==","shasum":"b29804f6ac6548b5afd4e8274dff45ddd11d7241","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594156421576.tgz","fileCount":137,"unpackedSize":1723164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBOWNCRA9TVsSAnZWagAAZykP/RaZBCdv4p0OCoGPdV35\natuzNygoP1tHlGDtDoYsR1HnBYsXl8CLbfch47gIruRffy9uW3RJ82B0lLEk\niyubRSGv7ZQ95wnS7P9IZVdWf/eWCs1xPzPR2jkQnqXMGjy+N7dPB1mv58BV\nZtWrh0lKKm/Aq5gnSA3etwTwCrOjrTRWrzNRobbIZuXoZ/64dx4pxVfHgw9c\nbVu2WCpfk9oGnh5KHDvd99lu+CvbNEB2o5IfN8eeSGs9ZTyAXsHDfZWpXiq6\nynGTEe0riVjD+/eC9GE46HaKXS+5ixupx/z9CjYVq1AExRf9KrG1gIBS9A/M\n3BgbXtT6Ie0/pXvUf2AgBSZSGlrZ+hBVTOOqvfDDYOxvR0naQB0EjvHTFxGh\nITCqmLuAoDdXqj8v8t6nAmeqC38cFMX1ZvLIfuD1HoSQPHYGuAJM70MywNip\nt21hdvTQq4wKhXFoMcQw1nrAA+LDfbBA2UxRmvDSBXKdbCgXzZAhzTnO64yZ\nutXVt3J+fiz9R/nwvMQWv6hRpZnEi/23986Mbl+UGnom2w4Up9qa0MzVukiX\nD+84ae/a2LZtIBSaS1WZAxfWwGEIgqTZ5KFH0jW50gfF/AAZu6JhYeqBpVnq\nWEDh0HKr+JurwC5SJ2iXZBfnMzWuAJtPivsMGecY7lMRYogRl8r4qCkH4evc\nDboW\r\n=DDZR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO2blZl50ImtmsCMzLGCnpXLx4MbvRvjrEzk+cr0jFigIgFVPqe0+gngUjJeQ9q/UIK4Mi55AScuSS0cXJQPyjDFA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594156421576_1594156429291_0.8270694259213411"},"_hasShrinkwrap":false},"1.2.0-next.1594160630234":{"name":"playwright","version":"1.2.0-next.1594160630234","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594160630234","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-SxnqogXtLNvCVpj8bs019T3R7iEAbkNcUEnCBV195upqqoq93t0zynxrAcPqKsgaF9ecg+KM4fAfol171Sg2Bg==","shasum":"703dfe8d55900a39e3b969171fe0c121f240abb0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594160630234.tgz","fileCount":137,"unpackedSize":1722430,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBPYDCRA9TVsSAnZWagAA2NwP/1mbIgpqy4vPR6vb0CFZ\nZNBAb6QqNxcmcor5KrvHZyzqhvNwiiWYSpDc5dsY/ZwYrF/RBj3NuWbOxfy+\n75EiS4xQLISNjaHotRmKbIv17MgvEeP1i1ES4ooh9/aclxc34YeYenMx5+qH\nUW3J+7xCoqlOeWsT27xFWmS6H4nroB0cjPeLOZ3tJLCuutda+fdNqsYmz5hU\nlicFjUxXrmwOXTbriLhmrr70wZvGT6OfgkH3bKPpq2NkiteVram2kr/Wl3us\n7eh86+WU0V8jsqdpjqU1GeUdId25DGT4j0Lsov/Gzcv3CYD4WQFfGspHO8TM\nt/oHBYFP5h6IpWLb5iexhVg8KAaHWKOlMPfgw9qtlWch3KgPnCITVgyZJXIa\nFzJKtN/WhRNlKwPxPOSIdV27ed3yD6IiUWOpXrDkmo0eX0MZoAooQW67HCij\nvyEPajmpY5sb25gT8/0mhRUq85Wfd0u8dhij1LWW4lz2XQm0fPQLycFQpaOf\n5bZ0KsZgys8p5nY8Jyj3tk41LTfxHVzuebl9AHJnpoUzsCcuwPpIGE8aTfVq\naaVmDw3IJbcVfhOCOIEKs4zy4Tix7A4DM+13BQ5qDcG8aEUpT2fgr0S5c3Fd\neAubXqaRaKKYBZMyg++2yykFdMTdpJxbnLCz0SudOmHk52ZXDbxyrAnxI4R8\n7Dqc\r\n=m/l8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdGfAMla1jijQ2m7gUHVDJ/8bJnJRpviD93SkuNLmheQIhAIIv0/ewyO77TbisgqNTEVPdvObXhzmw2VEmxcym7TF8"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594160630234_1594160642964_0.07768747406894505"},"_hasShrinkwrap":false},"1.2.0-next.1594172944265":{"name":"playwright","version":"1.2.0-next.1594172944265","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594172944265","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-EAoppHIbQKPwHd1pizTFbd3BA9VCpYtulIW3IcX0gn9dT17ZH2qaI8ySTis/vsZyhe8+Hd1LmPW1dH1+7MP0Hg==","shasum":"66145f3a53bebd12386862c374395aa8a3a14dc3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594172944265.tgz","fileCount":139,"unpackedSize":1726416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBSYbCRA9TVsSAnZWagAAAcMP/3su4VFk/a5JZFdCdzyn\nPiD6RVSFvJKqlGjF8ZJImE/l9mzFZ7HZ4PXaRXZYKk4mgKpNhbr5uADYvQSL\np+ONyPPVoAS0BRvOZ/nQOYUtcfsZm2N//s6lHMxdZxHukWW4T4Org+p8AXXd\nGkMspkVgDyOjwWkfbSPLA+BRdDQ7fT1hw/oe011TJ+Gv0uqpS3HlEJXnHYdG\nnxIyXQqgQkPQvegl1tdTVaFRb0Ec8bhHeW79QB8hz1CXsfZWySBTqUB5MSox\neyAC5+noJd58jKvQOMNZeLUxfFYk1SFNg1+++tlNdK756eBN5AFwT2AwChsJ\n789+pLBgsRioH+FHkftXBYF0jBczTlDraWHvTHE9E7Q4QprygYpcTIpmOrwe\nGGM5ap+Q8oGPWM/g8S1fpMCVEjxeXq8bhgzJisbuu6+0U6DB6bLD42pLZXcj\nmsgZQ8VuPRRBmcTtG/e5t3TI5b/lvwL85FPVHcpq2xeF46dJ7+mZ2TlxTTHN\nCmVpB352G8rue3OHT88w5AfJLYePo/Mbmt+2+8G7iml1qL6wZoKUA7PuuOuZ\neFiOzRdTvFPKtxIUjyRVdUT+HNwasaPvFOFAeyZru8VKCWuNJGPORtpL4CXN\nCNHdt1C/UPLNUXAc3kUksQ99TPNzPm/n+403NoodbhJkjdiVz6sREk+IKS/E\n4bA3\r\n=C9t6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICWqFw+xlvAT1iryGEAsBcv+ohCh8SJryFJAgdodB0XgAiEAnYb7e6oZ0hVtWnfFQ9YXm0XZaiFoNCmKpqehmlFOvRw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594172944265_1594172954936_0.6491764881089228"},"_hasShrinkwrap":false},"1.2.0-next.1594185355273":{"name":"playwright","version":"1.2.0-next.1594185355273","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594185355273","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RMWU1JrDsX/QujwKFT5BIaTDYLeAXaXt2mbxfq15WxdLlt2tGgG/EEhX5vHl090OvnxpDZyIlPN6LKfZsr/kEQ==","shasum":"9d544dbfb85cb7c3a28fda6eb6ff4a99443a753c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594185355273.tgz","fileCount":139,"unpackedSize":1726416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBVaXCRA9TVsSAnZWagAAPI4P/0IKPtdB1eYO9ktTx3KS\nVdaVYTrmBotw2jDdIIzZgOkygMQRI4ujqyj0vEw3MCdMxur9nznpb4ZJQq+W\nBK6cE5pTuPmcNIptwu+xuoX2FF3avP4C0ite95QjljBKF8g9eSjixCoByqc3\nxEmrOlzcYmgoI3sZps/rdjbv+VuvOCuSCufuVuxA4na7dhH8F8YXlB842n9b\nkLu0ZH4TNe8OWGY876IcJ2A9CT7JEe9RUtU4l0fsX9HeaZVgyCrpxH4PKaQN\nvGas7CucAOUzrnh0EKMPTGyd+ox/Mu33ZGRFAOIbiKMqFSw7V3DVi/wpUrkO\n+Yom86mj2xp0HdfhuQs/NckeWwXmhWvfuxA9Pl6VORV6Cx4bJ3w/d13Xrn2K\nGio6ligc9V45cOyfbkeEYzg6l57cVqFh1aajCPU+nAQcSNsYHKnYac6gkuyp\n8/4biR2t47rt5gOEIc4qQiV1AmCoJlRzvmg38V+2iFmmyDwRBlWFVY46pajA\nRp9yp+LkAwhHILBVLmTuGX9BeBswjonh8Rv6vDh0BQnjiF5lxiKdHHFZbJ/S\nmSms3eoXCeKhx3zbvTFq8crAssQH+PytRZljChVT3YwSlLvI8w3HEnpUKDio\nGg9v3+sVOLhanW3extxfkaQaSg49hkqTnHmIl4lFbfW5qhSDTES+YNEUgK5z\niPhf\r\n=ma27\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsV5fZ2KmaqDGhMj6JWdTThUZTAZUm7/4SO2TRNbnLugIhAKKEkw4NOskrQ0ILizz7EvAXyoAvvgGrYhnRRLRygy4E"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594185355273_1594185366680_0.9193133636534363"},"_hasShrinkwrap":false},"1.2.0-next.1594186857425":{"name":"playwright","version":"1.2.0-next.1594186857425","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594186857425","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-emldZM7UAzIKxC/e4alnbJT2FKNtp8Ox1WNbEWPWkRTde+D4U3sduWnj0uMstkEmGaOWzWrX5Wj9t02ZREPYLw==","shasum":"1ff0f2ccbf70e153fe5a4681f37266c3f90386ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594186857425.tgz","fileCount":139,"unpackedSize":1726416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBVx0CRA9TVsSAnZWagAA8+oQAIUw9rqYC9w4fmSECjdN\ngsQTBC2FP1z4Xc3+swhzWNvd99AwtO8rdnpPHTON19b8O6fciG6wiUvuETy5\nRXY+OimiZSU6fKhCCQ4APjjRpgrXlez2LnMib2cF0He8XoICakQqEITkL9uF\nvzZnOmm2U2+p/hBFo/EeqYWBTI4/7roaXxWDNzDoqJxEDigXh6waxuxaRSti\ncFUa17MA7mZ2azoS9HLg0HmVPI6Y2AwRF4AoBrUvNMqn/4nLsKKj8mnBwPNv\n3MvUM9f0WKL16VA70Ecgyi//T/kTpHOENSCOMWSrZQ38u7zUwfsZhJk/UPDo\nNO3aHAJjbMHfKWuspOkNorzsSR2FThbu7qI82P3CUlV4d4vscem8Ed0eRTlC\nqpBEB70aCGJ7CrSa71spCGcDj93Snry4+WZ6rgqkY6PK18+QiDUCNNBQg2wX\nNzf9880V1VsL69fUfAkxtlqHd/Flu7V4llQ8QrspzciirrnYh/5aC7WUKF3g\nhZzw7f0uklqkwEaHMrYvsR2lzeUrHJyKd8z17wBHzbPXfYhz6rG3EvsOjiMN\nmjMxsc1uFx5H4oSKX9z4XAu6AJ9nJG+e2WfdDUcDxnBGVvy0GpRDevXuZ86S\ntp0eEHZLQXOx7zNwHE1md9Jr+PyUxfwauFD7n1XTfn2tV1uyLFWaSwcYLQQr\nuCNU\r\n=aiS9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRhuM6jsTPVPNcFyy4D/lMpsdyChUTK0wRxz8qu7jh4wIhAKBdX06pxX9ZLUA2AT6/d3Bk84y6SscHB2AabSf1wPgs"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594186857425_1594186866997_0.39347820679300316"},"_hasShrinkwrap":false},"1.2.0-next.1594192945322":{"name":"playwright","version":"1.2.0-next.1594192945322","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594192945322","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oMxh9GVfcENPzsB2G1cCgVAdhKXitzB04qd3+p7GKf3BfI4Itk0KoPCa+ZaoZggGCMTASaKiZgluRET5Q8evWA==","shasum":"b70e153a5418697855b26add10d837e07cb71d06","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594192945322.tgz","fileCount":139,"unpackedSize":1726416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBXQ8CRA9TVsSAnZWagAAixkP/3usfH8POw2aJ6Vn2a/P\ntu4mxWJYZ+Ne/Ianx+OS9sQMspUY5RG7s7g2eTzsDLWp+MkbWyyfv3b2jjnj\nDYkU6TcRryGtzABMNAYUvXT0H55wI3LJP9NJ7rIBntQAA1cpDPrrxTdy4hCs\nDI9MNvhxLRTgsmCKNemhfeivNUSSWRkRc1qy8jFcaQluKCJWMhIXz/EANGAE\n49UIRJc4QG9EO6rlTIADk7Ps0G5csgALh7ChNW+UCvSeT4NVX2hB8zeuSOe6\nWK06dwTcXRNFGjjU/OLPVI80yU9ycZ/nHnlLMaYaUp67kyoopRQhHHE0kESR\ngER/ZhnRUObC8dE+UC+jc/E4IqmgI5hiw3XJVd6+EXJtUOqt+rIhznMOCD2B\njqPyxB8Tm6ilh/4NZYQoiXxDUfsziqsh5klzKJbx+aFjceFIPhWHObJYEm5w\nqq/PrkRoc141F+ic3rP7qonfknXBdfD3iT6DP9083RMbHO5WOZnKYSrzB5YX\nEd3RSuNob3MYR0DQXlWeVK4YpEF+dO4jspFKee6OSQpGYzUFMDu+bUENyTjM\neHURf0wDU1M/qm2sUr3lj6cTvRDdVIZjdbQWpUuAv8XhykpKhq5udlsIvsku\n9XxASMcbb4XpnLsFS7/UMBTWPDu+kAFtr6MWcwzzn1weooX4hDKuIh0TXqwt\nRbtD\r\n=ERsF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDJyG/n6i00lP6EJpPPSqda3/pbfMYcNQIitzlo71d4QIgIQm273dkcjDvjXlABUJjGQPHnezjUX0kSTHd5yz5Bis="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594192945322_1594192955793_0.9708709531458644"},"_hasShrinkwrap":false},"1.2.0-next.1594224106936":{"name":"playwright","version":"1.2.0-next.1594224106936","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594224106936","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PFfjs8FCeGl8ocJEe5LeNxC9uCdeELTyCRyjmDX3FXr833c8LLTarD6H/ehQ8ryXuxA+hDaFGjH8hB62XtYM8g==","shasum":"93e1d1308d38c1a55b3983a3bbf23ac9eb37b622","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594224106936.tgz","fileCount":139,"unpackedSize":1726416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBe3zCRA9TVsSAnZWagAAhk0P+wfKeQRms0LgWL40/+3d\nNGAIS/LQjQ9xTwURfXLwq+utsYzioPcVHxJHFvThGBXnjvZ/gxvKlsAcmakS\n1guhfpZNCaZnT0OW4BdehsHjxFtLP8vZ2Pc7SfmoZQ16ZbMWt4TKTDC9W6Gq\nLJeyxWix8LuBuv9JIa3bxE69qPvt/NScglngNFf8c95CWml1kIJ4aCgEeJA0\nC5PwGWDPvTrODNHYbUKWw6D9cpX/Ja68e5be5Nv65GdmaXEvsW/1j/RVyK74\n8TiAEFhV86o1IrSdRwCzGqAJUEWQUXL/nJ8XzSPCzBU7WbeHsXxTyavmg93H\nyC6/i67pg8uQFZCrA9NAX1z2ohyrfQw4GMKXB/XyflJdFH6RcXGNGCLi3DQA\nCh0q0h2jgx1h1L8S/fR+/Oa5bFPWADazSM0JN6x66brpIhD1Y5n1l9/iDYXK\n9eFBgUey9oEpxL9+GLtT+FL5I3XQDrWSlcQPQJUzkuflv14WzF4YNVP/B/9q\n88zjcO6DTntfsnn0JyqBom3zC+K7bF9deC57OcV+77Ssw4VYjiwnKvo+54nT\n5KHI0KPoCTBbA04LTHQ75F236VrTt57aYNmRSm9vHKkvYcro9tWR/8DtxVWt\nVnBDUFfteoujEIvzr7pe5rYKg7s/SFZeS6x+bEWOFBqUmW8mfVra4LTcrhLV\ncp1f\r\n=4jU3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGK2n8vw3jB8BUI8qTFNMLKkgBNkQRf80wIi6pvFx5IcAiBI2kqx0Zy93THMk9oiugWj2hLLr9P0blWdS4v2p419TQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594224106936_1594224114879_0.04789086434332179"},"_hasShrinkwrap":false},"1.2.0-next.1594232129839":{"name":"playwright","version":"1.2.0-next.1594232129839","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594232129839","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7pC5yj27bKFaBlbNJC2EwlwBrE9IgJP9BFM+4VZs13Qh8CEumgF0MSJiZRb/vyBanR624f9uJ8P/Z8S+C5BEbQ==","shasum":"589fc9052822f3fb66afe2f3242157768a65ad32","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594232129839.tgz","fileCount":139,"unpackedSize":1726416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBg1LCRA9TVsSAnZWagAAj+gP/ivsHXgmR5Iqun27gqD+\nsptyhq2rouupFEgmuEcv9fjdjxsKzha2Ug/L4uRxwRocdtOhXaxXTpphWUnq\ncadYB4IKDVrRY0hayR2HQ3SjEh15J12DZLWteDdsw32EMRRDi5VlNfpUxhUu\nlwTymoLvsgQR8cOKSFbwpkSogtcmKtmodUdl4pP10CeJFGF/Qhl+/BlcOMHd\nLF0D9Q+HM+RysAx3irQFadY5LIprhUsYbO/pHiaRCUxZaAYT9a0/P1pOff/S\n6BHGC9W9iR7BIauDUyW3//vVeLLM/YgW8pUKjb4jlEXUIHVwNFqs2tFNK+4n\nU3ktN/FuEbjtKtVsO8wHHKJFK5uYUHPfo9tIdCcBlVatbWhpXm4aHlAZwoSg\nCn/ZQzLQPclVSZ7dpWwA2ozhE0oFckLIOK/xvyR06rvNeMZjsNvKQ9dAbdy7\nkYw/v6dYdkh4TaSB7Gp7M4YirgW5iQRiN18xiDj6SgdQFcjYPpTzLwAyseBV\nBnT79evN+VPHKNQSMteR5lHJiSNYaKBj9VGnTPtWcfVa8gY24R4hnjfVIbc0\nXkDvHBmOADnWCHnA9plmFmYpwHTWIWkl7D9KGhisKtPl1+Puq/7SK+qFeux7\n3FCbQCrWsxdaH9TZ+R34uBEBTI8wM+Kh4H/7Ve+sdP0cFcfrq+72u/ZRigpG\ncXYJ\r\n=vRVZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM2xq9GNLZ4S66PXGxQj/gfvXU7DUq+19YA/ijVVv4EgIhAIUKrZIazK0YQaGGM9tsmIqeBfiSyBTDibsMQhfRcN+7"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594232129839_1594232138188_0.878808259246592"},"_hasShrinkwrap":false},"1.2.0-next.1594244091142":{"name":"playwright","version":"1.2.0-next.1594244091142","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594244091142","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-riFOQKcp6lW5HCr5GzJw+H1DOaj11Uv5lTHuVyWfZgJYn+brkzjevZPoIdg0iYHNanaeLqxM4ZGd+5NUYhNfrw==","shasum":"51826015a544f28138051cf30f7b015dfdf27b7a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594244091142.tgz","fileCount":139,"unpackedSize":1726416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBjwHCRA9TVsSAnZWagAAVEkP/2qa5VUuAWExzcQrzdNG\np2KIwXMAkIRzOjRANSxlsVHQDbOMn+G7mYsux4hffY1u1m1q4QIv09t1wy9O\nj1QHDYPTtnADxYsG0KOwYSoLWdXy7ge1vT1QYMmFHtF3oYiRFBYPEZ8bTfeL\nvH0ofzfq7T2t8RYdjT2gGHipwDOPZtivuOG7xq8CW2RhmmpylAVXadj16zPR\ndCgqM67NpC3s4AqhILNIyU+E8PnafFb/BSYFAdVu7zJDZ3kGcbeiIo0u8EeX\nux1tZV1YuY9xU+AT1BRgBjdhLQY0HGEcR8I5K5rTsR6Fta0WzYS9ZwkyMyfT\nOVStiQ0yDK6MN/0gQtV0t5P2EgCO5kvszMN1EpPlYyYV064BANrfKbm4yeoO\nCr03DsiiM0YG0am7rZlrE34hYmsCFLO66DrkTvG/vJ0MKPMLp2euxoqzWdne\nqwcF4QTkToOvA9wr7LVWI3pSWD5Ba5OQ5YWpcZFfhYMPSqpbW+hDeWDW50W9\n72w9+QgPl2zSpN6kFyEP7Yb/rsclJCQ5lp76NdKSlLY3E6gU/wJNNGP/P6UL\nQhw9VmucOeOcxK4+mmznCnuuZ8cJLfAkwZgCPxcCttbHdaPtE4NOjn7iTKza\na3NORo7mccbdFH8NNcyg50HPpDIQ0xskL1Zw5XSk4VvTEn8beBizrz+r20OP\nkf7Z\r\n=KA1+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBGUgEKAQ4H1oCBNY2oeeU8LzQUCscqKm8bR8gv47Gb9AiALN6E3x3MTD43cJ/NWVrySwOi7guvuoAHGsT1MSt3PLg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594244091142_1594244102319_0.9786544935974351"},"_hasShrinkwrap":false},"1.2.0-next.1594250271060":{"name":"playwright","version":"1.2.0-next.1594250271060","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594250271060","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CAtmFfBpNfGZZ4q4qLLA6h76hcoqgvhaI/wZEt/3wbenwatTxDsgWZ0KQuJeb9EgwqFhiLYMG2qZeawTYKg59A==","shasum":"c9fbaffddd98b22bac50b9f3e4489374abe89440","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594250271060.tgz","fileCount":139,"unpackedSize":1726415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBlQoCRA9TVsSAnZWagAA/nUP/14cXWLy/aoDM7XFE2nE\n8+IryZAiZPqxALjs608SgVMrN6nX74xZFp9k9pyT86VKgkAnLgvOLHa3AaEG\n/AxqNhOhQtmsLqxakcVhI1ssqQq+/+rT7gw3PjSg7etYIyF639rE8mSgAf4u\nLp9fHfm0xwAIwMMahqLfblal2XSfJUbtI9Dd79/6kJyxq73HlfiuhQVgUFod\nG5PxglPUxCBrGq8jPhwKBgQgHJT0//9jdjMtpH0PGsEtacHs9CjIN9hTq7HL\nKUQTHB/0KqGDny/vzy+YIan5gzRTr0L/z8ShK7MwRcXmxviWiTMCChEmZhMy\ncd/AswwJCPjVpigcfYfpNtJMJmaVDy4FBHsAOilzBLKpHZp/A8fZK/k5h4tT\nhm2QvG09EcXLSMnPYtZITTU6q09aH+qgZ5GfiGD4prgTuYBBoOVsz2MBDUvX\nT3zEgtVeRF2ow+AKClM4cCIe0jowEuZZReib4yJdweyVxh5FEWOtYrhsg3JT\nYJyYQFcQ46nIFKc9++Pujmqn0YxR9OMf/joSU5CF50svi3UZW+Gku1XAtHNY\nQhd3PwA35BE51Stleiqr0uhrXPi0A5LGglhfIPAM2IjKJ0ScHLJ70PJg/L18\nNBW9ohvxxTzdgaMSCy14e9g+KaqkVczvp8o2uMrRHsW2Q0mEJvYJzWpBvgOa\nGr0t\r\n=ovRU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDySS9R9kL/CjJ2rA4WoBbrFWvbpYACqnr+uxxA4uv25QIgYO7uYGbx5nVJ5a4Q9f6gX8De1h5afubkQ2GTcx/vKss="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594250271060_1594250280174_0.9373003265105577"},"_hasShrinkwrap":false},"1.2.0-next.1594253605356":{"name":"playwright","version":"1.2.0-next.1594253605356","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594253605356","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-IWDX8ty2kHEiTYvrCyz9kYT/hz+hASH0VztUPZkGS0Kdt6J2xERZOG7htzHOWIy4CQT5ROHUAlwGlMNsP3K28A==","shasum":"8392c7a5ca00bed068887f542e96c142d0a419b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594253605356.tgz","fileCount":139,"unpackedSize":1728309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBmEuCRA9TVsSAnZWagAAgXYQAInFXElAtrmzHitiwMRt\n8S717qflGQwrsLBvvzhp/2b9Yva6JO+ymfyHKTDH84W2kdnF2MTnMhSj/WBG\nLAuphLY5wtjHatnwAMvKSLbi894G6zPmlsjmC0VnGXFoTmx1yBPm4sddEIDc\n37odiGu1Um9ZidQ3w/3Gai2aqH1L6+bM2pMH6BsrdMNd+80cOIXemf4p0+7Z\nvsrnj+hc8PGbEHRRKmqaGah29A90LxSnlE+N9znZixR2dFYnbtn1xYjQNC/A\nNcgT+13ZYWLvRSOgw/aq0Y3+5ZqMn5mSCgnqySVC4wQj7xcDk+dPntd3Y2PG\nM8UxNWobLJpBmbLJjwYHgr23QCh5RN9NsSEoHIM/FsuKfitJyiK4bIpS20EA\nRqW6msRT8o7KwFOJJRhitNUotz0nf8797ZuohakX58C+tVfYwAxt2WLMZeC3\nkq+oraRJw5rycpEFFKp5sIe+mbGqRvhUBifEwA1oYo/FvJGMUV2GZTaygv5Z\ng50j5v/q8LA1sjPHjjhDccbVAozgB4Fk4wq8I+74YyM5zn/Z4BOTzAPIwUGf\nlUVR5FPob5E5kRyuM6xiPAILeN3u1oc1DQAlnLntBNsYNOQZpbpp5N34JYLj\nYCXrT5tSsIvfyQkCBahxBLTSRP3WPgIYUk60YlBiqd16mg7WA2l6vDLvU39Q\nFYkA\r\n=Royi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPS/m3WNWG6qEBbNokkJ0GYGTDGiJ5b+zFvlBSHwiMNAIhAIgrL8kLSNI8EzCYX6lNrLw5RIrHc0kVUX9w62Np9V3w"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594253605356_1594253613717_0.6522014860201832"},"_hasShrinkwrap":false},"1.2.0-next.1594255679802":{"name":"playwright","version":"1.2.0-next.1594255679802","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594255679802","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-eH0XE5XwdgTBJaIu9Ww4MQ2ZuBLBxzFA8lTKCEIODZUB2u1ZukqzMFG2nQLBoWJH/EWaRqP/fDPvoPUFdg62Iw==","shasum":"5091cab3f09e71743913b99f8e8f13484cf8e478","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594255679802.tgz","fileCount":139,"unpackedSize":1728309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBmlKCRA9TVsSAnZWagAALq0P/2YAWIjIFlHcTQEPmA/v\nVLxTDaRVBHbae4ozvdy3bwEYDoBnBLuygWaJ+iiDyslVZ7Kigbw2vJcbITVT\nqAIoZhrNE4c/FwLIBLtLEl1u54WP1FMXeI6FPTKOhNRzB5sMj3vWrknJpOub\ndjAhqSKrUUa2b18lAL8SCcNqigOSsfDimN31Z7rs8YhasUx0fWVWZG0u/njQ\n13/3M+BRMxHKgeewYjvDZ684bohqPAPwJOihQ5Ccl7FU5KW13DxvrUtAX3rr\nZb4Z7n+OES8UyFT6NfIB0FFPhmFB9eo7LYeLCTqqxvYHjeFu2+lFYsMbpC+d\nfEflRUq0Psoy8M672bCl0MHLeZBCzN31MyYY7ePACztcqc3SLcdrmVDRe/7a\nNICUatjNSLFkL3h0DrBsYWMn2+6cGgS06wQU5cWajF/ZPxmV9jYTLmk6Dlno\nIFnKPqCJ0Ci1svlMlnKHvZgEuz3jXPmoW988lbyx5z45rawKT8dLWS/CNZW6\nHxUXnJgnjBjS+qYNMTLHck09iV/lFdvXKCOu4P9hZ/db/ecVVitlsUGHASAu\nuhE5evYwen7rpBc0RIZRLczQ4bWeTWI2KjYUBOspWJmRTlu1RTR/wtU2hsze\n/m7HIwHHZjo7pOVCh5eCXUeYDm51xQ+VVrwOBn3QnwzlYt9/w88+PNzZNqJb\nzLJN\r\n=8Iui\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVd+HayyfD8MZnXD23LwYW5buW+SFIdvsZBdUDdSKv+wIgasBJSvOf8l7quq+tOq/Zux8Q5Lqq0gEQU4S5JqBHLX4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594255679802_1594255690164_0.051045296922780814"},"_hasShrinkwrap":false},"1.2.0-next.1594259090997":{"name":"playwright","version":"1.2.0-next.1594259090997","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594259090997","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-seZqKmzj88vtx0UAYVgvcSTdedBlboK1JLc7N2choX3II/omycGzHvMF3PZbpJl5wvLJ/hRZ+C5Es6Kn0Bwk9A==","shasum":"0853637a22f5897789a7a67f030915fca894120b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594259090997.tgz","fileCount":141,"unpackedSize":1731054,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBnaeCRA9TVsSAnZWagAAucIP/Arz2+vane3zllla/JLl\noooQ6BIu/oDR58xz9MfmOemRu7YHn+XQ8xP3wg+5tUGJyh3E3DyWlVJFNngI\n/UWzfmJkAWOxOzSE4jGiRZkYlKJqGSEzB/8Y9RmIAhNg1lr53RX6+/AJHaJn\nw7VQcnvHb4DqIfeYyvMzsp/44/MazCWmVMlujmcpvC/UGJuNm8/SPHRQJ8F9\nnDsNyhQrCmBol/DAYkwfi3Fu+J9wMFIpkyewCgu8k0xqSHCG9WGXrOqU2hv7\n0rtDy7CtrY4/r1ETI3Pg89TEJjhNYjnNkuqYGq4rwXoOqdhPTkTpPN1COvD6\nRELQzEYdJH9t0QXKDxSgtL47Zt0rvWg0q5hjIGA7YIyq1Elbcx6JPVkzxYIL\nDtrM30M/f7ukqrlUT/3G0apW3f5RU/Fs8buVtlO6k85yM3ehLEC/vWnqRacd\nXTWFzqKGI+8U/jw3X0RRyXIG7hYHs6zRHBMSUkd+F++Gdx7b1G3bvcoMlBDA\nkRnmnAV72NpbVwZt6nFkVmz1C451L608LrBIHQamRWz8P/QGi2P/Ox4XqHAs\n2+s7UyKPAzkL+mQZWj497LsVFZX3H90jWPBjQClqmVX08daNfIhhhk9q7/GR\nXlWc7c3eRsJJbSNMFgz4hLhpa1iE7JMh1HTeP5rgVVR2gan5GUaazx5WMgMb\n1idg\r\n=+FGS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbn+PLCbgDvgeZyPbhkBsmLW6jC0PxqfrnaY7FV2/0EgIhAMjXQ1iVBnOmrjEV25D6n7BDi25jNsSw4WlA/Gnso9/X"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594259090997_1594259102084_0.39115437857894064"},"_hasShrinkwrap":false},"1.2.0-next.1594269498419":{"name":"playwright","version":"1.2.0-next.1594269498419","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594269498419","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Bsc8Xtt0/WuniViKRTYA3AWb8TjEGBRKg24Vk+JkEZ69mYNWtam24DQ2CHfrUPNkREYJ0r7ySxv4twM3n4VPNg==","shasum":"74db98dec8bb931101ad5bffb22763fb7b364f10","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594269498419.tgz","fileCount":141,"unpackedSize":1734708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBp9DCRA9TVsSAnZWagAANGIP/ArwOQdz/1745Od5Oaiw\nkiTGz2QIbOUKUAKMt3AWV+MDtTk1C+WIxTROW46SXbSD1Gva6ZmtBmTQ+7h9\n5yntaVIN3xCD8BzZRaoqUtU34M+lsdaqJUzdNr7+DCKl36teKI0pJbNOl+40\nVQnkxjxeJHsni/aIJUwD2tyFJ6fsHXGjROkF6y24rmqh1rM6TZfjSL66fEgm\nVUBK4wEtPX6/TQuUwksflGD9cOJ2/ONZJ/VOA0PI0oJAlyp+f5XEq4emtKRZ\nRNUntOFusptmAzaHwqgeefK00OFzeZ4gL7ao5e+x55c6TwH43+C+maqaAgM0\nXRo0wMTmq3xxJCGGc7oFogdIOYPXFJPqSfq5sHjt9MfNatAHeBjm501aC36l\n86+YTw8XdBiZ6+jyEy8ASYyTWAwHf+OyZvkUuANtaQSLg/OJV7b/uszlBIgH\nPIvk6p2ipGT6eNuYsTe7ig5Sq55CZk4yBNQbfPanelMiXag/w7gTy+rDO+qt\naN+2OQiZU4DF1I8PBThOnyW0VjeVehp0+EBBWO2tREKwUUzyOvqq560xZQyN\nZ/2vCqGpfIWeAspUWa+IPKlDJQqHFAYOJYj4V4j6h7/QCHvyGyWw5BchD7OP\nS2JKmX8VfxZXNB9XvKHExipB0c9ueJu5KdI2nNWaR3HbJqqQ/ED+Dc0plqje\naiuy\r\n=XxND\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxVHe7JoSyiud4BIzBJuQYk9Kf1X1Z1XmC0MulCCQC6AIgd8Fkd7nhcaqJKJ+cn/Ov9mEjto1iInfQ1tFSdy0HaDE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594269498419_1594269507393_0.4051940778026275"},"_hasShrinkwrap":false},"1.2.0-next.1594309023882":{"name":"playwright","version":"1.2.0-next.1594309023882","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594309023882","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-r+TuaFIPxsRp3L8Arpv8jt5wOf49YnIHPfYFcJ3/oYNvb/QTBoUpJCS9qjjHiCAmWP3y//Fk48kBANIWwmAbmg==","shasum":"ece42abfa8107595548825c87a19d2ffe1c27a9e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594309023882.tgz","fileCount":141,"unpackedSize":1734793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBzmpCRA9TVsSAnZWagAAxqIQAIYDz0JQMuw4cCYc1mjR\nKSKszuB4I20kKvUAyDwpSCfPf7rokgfzidbI7GE9cgrHyBcYiwml2DqaLZ+w\nkwTPEeH+jEgCe0uJv3l+2KCcaQmyw6gFNxT80aVs2+M6Tq4HefP6i4UUTQTR\nFG+1iv8BCWOKw3O52Z1zxdX99UMDCiMiZJMt5FIONTtZAJAaCBlZhkNZ1Jqj\nTEfklRT8NRgCt+m8KUcf7Pw1DbSGf0DZJUNUON80P/j9RrrQoR/E1dw+Vvrb\nV3+5SjpMJkOtkk2wNmk2N6IzNEDcPoNriAeXzGbsZIcElqHglraw0iQ0+Icg\n8EEDnUxTDDyO8zZRTALJBieyu7le43nyM3MRwWOLM2oenQVdb54xi0YCsE0G\n6HnttACR+UWUYZYSaBMn4gkrMIzfLZohn10udW9NaofvhPlVGwQVhqQcTcwW\ntsZBruSw4gDV2bBWXZwcYobuka9dIhe9XfBW+NMO/nIYx2/iVG717rhkhY65\nDrTnPBslCRkHPm4Sug9yWsvT8r9i3tmshmRw9vqYOvYOwTgsFCsf3iwqk+L5\nGcupddVDvCombFEN0X4KhZtlNVix6EZvIB6Oi1l4XPg6uasGf1tVCiXtbTgM\nZ9R+E4CCZMdSiQi4t0yhG/t3MkHNfrPzEKDWhh8agPwmzaha1idHNKPXCUUZ\n535n\r\n=2S8a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHE+60Rm1n+abeOONXvHe32VoAEnaTSpwxXe8+RmQwLxAiBz1Z/zQWkEgLVo/nujv/vFUPlrZ24yU5YWX4b6pXLidg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594309023882_1594309032836_0.5606027330839614"},"_hasShrinkwrap":false},"1.2.0-next.1594319986621":{"name":"playwright","version":"1.2.0-next.1594319986621","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594319986621","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HCjw8vrh1SUOziaTIrk0/hkJsZ/JLdEa2TC1do/BsMPqRtfgrhk+KXGQuHBWSfv39UpTcyRaux6V1w5bwjf1XA==","shasum":"6d260c2336e938f20859b8286d80cd1508ea9b33","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594319986621.tgz","fileCount":141,"unpackedSize":1734793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB2R8CRA9TVsSAnZWagAAOvgP/jWhY52iHrIi/9jPYvdT\nm61lB0Ld4ZdJmYgQvyKoS2SCV1lfbt1IMs5AT/QKYkNwfLEKSLyAmLJSkYIz\nix34NTuUm1uvDQtD4dFO8c1+52j9GDKydZ8Ds4qrlHGa+E8mby3k4+PRgDFG\nGP6GNYXt97PoZemZ50YFywU4QWDOO5YgpKgOXk9FK5fMhf2nwJ25CkWxTfSX\nKzmBXPZpk8HvDOP2BPQSl3ND0xDwZjwe4A5LV4SHhCPDPK26X5/MTxkI8/LM\npEoHn3+uo8rAHxGjKFZAyyt44DzyG2J9d9ZTBQV9quKftgagJ2x3tQz6QiVq\nkrRjGcaTZsIehR7YGtF+ANF6QQpsucMomAQls0W0x4wr3ZrRKAVNDLAPkAg9\nPRbJD4WJ9nosns2eUvrOwpcUndmuhLuVVwqlvQRGUicAfDOadiA40iuSdATZ\nT69V/OpZLL+EAESQF+VThxylbM6LZdna69xF7dBqJq16Qrif1NbrRvb7QeGS\nRokJ71JgkOnlrQ+/k5xZUFc/R2RdWopNHJ7N2A7nM7zaVMiKYHKOqpGpm0jU\nMHEoTZzWPBtU2/9leAgS63DZDBzojUKcbOG6CRLt6rm1GUwlmzDq3E40VQAs\n/zlo+zU627dH515OOHDGQa9E6gT6Dz2kYP2OtcUDXzhYQWUwPhBIkCvdGIUU\nbJsw\r\n=IoTC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUWEle2M1Q0QZFj+69/kbfpb135zbFkc2zn1jU59MphAiA+J34exaZgFLT7+pyiRpVLb2bsJipuDd3n+n6NIQU+vg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594319986621_1594319995577_0.1368813301292513"},"_hasShrinkwrap":false},"1.2.0-next.1594327663260":{"name":"playwright","version":"1.2.0-next.1594327663260","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594327663260","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-R+/egUN/a2IRmcORHuUhoda+O6rEyw7HN8prgO5f2p0dDuDQC/zAipBFMoHzF3jBdqcUwji3WJmcDhY0+7m14A==","shasum":"44f5f717f8c6ac9a075c704d9dde7935a577144e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594327663260.tgz","fileCount":141,"unpackedSize":1734793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB4J3CRA9TVsSAnZWagAApVYP/2Io4/Hs77ulp+9FjgJg\nGQg5T8ca8zCbm75XmyecVVNqfqjC+0viCadXo5ytVAsI3vL/DqQ2yPEpu6Pc\nf8NnaXnrpBO/r6okwudMwLZ56tkGHgbeBvVvE+f0o4+MqV7JFZlZFuJSOuXx\nt09STLWmRJP+daer6ZQRlQibDAmRtMQSLjn9l6ujPMOB0rH4W1SF/68oLAOB\n7kK5VfdOh5kHjqAT4GVWUm2SKBMVPhw1tyMJGnShIBq3yaMceMCil10LoszG\nfWXwcTMCHsOqGNXr6YHA9OwH/PQV27TmYWHWasyEFRYWZnEsrfrMVLrmGon+\n/buogvBtRIyBKq+NmaxOsBre9dRO7672QK3rsUNZZSK6hQ7NI9Ki7h/n0Frs\nikQ8IKQ7IUGDqkTVhIWgE/bwMW5RxJLzj9N/g69YhTL+0BnS7+tv5hux3PnV\nNgi14yn6nZTK2wsuIYn/wq4j24rqQFs4TxT6DKyf0dM0xU7C6y/c1zwEoIHu\nIbGtzyEDSzkF6FUmGs7gMfJLSwiFo92vryK+oeQqLzBXkAYMy3dCyN2JF/is\n51E9QRewXKdIs+o66Wd3hU+z3XKRZVOlNWgJ1loYlMursUSkZVl5r4/yG88p\nf1J41dR+YJFj4TEZUnHsCRwo9ZgQQgeh0R4bNLiA1fYy46ksOlTQABagmS8A\nove7\r\n=+bDk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0gvlHsyIJLAIFvijbwFXvhX1cYu3Oyqj6IO6/H0X+AAiEA0D+7QN/DA8PZo5ntSBaRjtW7AETTNiV03BVrK9fGwJ0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594327663260_1594327670917_0.05727275681543498"},"_hasShrinkwrap":false},"1.2.0-next.1594334132397":{"name":"playwright","version":"1.2.0-next.1594334132397","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594334132397","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-SaiAI6+2knydAnf8BGHhX6zvozRBaP3G4ARQLS25tbIqO00uZ4RTY5o43bxxufisQQldd4aY0i8ZY0fM/hUc8Q==","shasum":"b0ebc93c65ef6236a34a7ce2edaa6badae4a0bb3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594334132397.tgz","fileCount":142,"unpackedSize":1737741,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB5u8CRA9TVsSAnZWagAAX38P/jVQeGNqnV6NeMZ8dZU5\n9lT4PRpK52pd990cKCO72s463fG5ZMetqO1K6xI2x6XxgYkgsuIg5Q8AGrp1\nybR77ETP3hIHYVedHv/0CWZA6E5szHBImLYszphs5kAgEkkRzeKMuDa6vByX\nJPcv+gL9nD2HGu+EgyXM8tzX0FuPBn8Q5MRooP0xhwa2jFJ7xghsr4miSN8V\n5+pXMVL6+jJS1O13wAEviTs4T0m9FwIUbevGDhHSEhMvj0HiMVIc8046cSX0\nPVN8BlzaqdTKpRD3s8f0G8c9XgtcKGvx7WEy4mwup7dEJ77q5tWxUnTZpBDl\n8UQxSdmSwSzq5CwIrH3ht1LQ7l+mQS+vw+QOqyPEWCk/JINTYCCvAviCc3NB\n4XyxwnOMlUjhQzJIXvqqsJsYmWa1XwDt/Or8svIK7nRXuHLiOMX1JsuM499M\nZeo42QwfIEu6+V6zHZaPiUvu/JRx0wUyOblD1ND4cd3y4Fm024LMuEfNJ+dk\nPR7oLTzm1eQLfeRIvUuUUVf8hVCj5s3luh2bZg7vOXda2dxCacAL1OyJbg+u\nJkwBqncqiMlTrHSlT0OCF3iOWa9XofkSqOsj7d9Agv2zVoVk5+f+mqFGumv+\nXzPRpd61yRb5KZPIS9Cg0sDCEj1bdbBo7CH4MYHIcikw60Ci7xSG3e3Zae/b\nlyGK\r\n=evLV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiNoPf5wv27a1fGu+6Jd9EqZFe0rlKV8q0CR0RAd2hrAiEApqgbOLPRWYUyPuPGGp+cJu0cGsSL6feWB6diYxASwnA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594334132397_1594334140063_0.6818248121954507"},"_hasShrinkwrap":false},"1.2.0-next.1594334339828":{"name":"playwright","version":"1.2.0-next.1594334339828","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594334339828","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-P5R80OSKd/wv8v56Fx/LTQbvi6xSUkL0wUNNy6JlegeVZFnr+TEbDWIW6tkTPjj0nLY4F+S7L2/xjVQ35qZDlA==","shasum":"d362aec411d009ffd3867650a068a02f292752c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594334339828.tgz","fileCount":142,"unpackedSize":1737741,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfB5yMCRA9TVsSAnZWagAADBsP/376OMnfsYMqgah1pAso\nikLVANBG2OQ1wpOKUObluKStnty9PcCL3e+aW1rFm3MXziTeKMXoWfUWWiDj\nbp5WazZkWUcxPR2vzkWhTYs2FLIJfaHMwXnoo9jI/XLRt33Ae0TIEjO0O4mx\nLOVYyTPk/8TW4gvCNPTjaxl2hX4JNFuUngKSECpbcprszBro4YJm7KaPTbVI\nnWokDmFs0mwB+pLoHinYElgx5ve9Ghcdh9ci6CVAZPLbpxmTstey2rzyR4d5\nAaGxxr5FJlOIP5MHYZL4O/UK06r/PyY6RvrsKNxGBrlPfict9AksDVel2DMr\nASw2xQusCco4rqPFerTlKyu+gupORbQOHQSa+OKrnMZ9RFcPGusj2skU2NpM\nUXRBlklIdPguWEfFk7eTfDI1DDb9b01SIAj92CIg7FdZ6Mv1aHi40+KRshJW\ncv3JABGFWV660NsDPIXeTb37/4ut9yKgXbnonb5OYhJ0hiqbK0vWulH7vsta\nkFb+D+gi+SFoC2Ow/6ZPz4xYqqYihiNaEn1vuIYvBtn0eBIkAilSn7ujPafZ\nEhg6TpnxiNrIIBtvcO83NH8jkbYQ32Ldi+BspjgOVjcv1TKjABzB90FxKO6o\no4JWz7tOCCEFD7OcW1sNdnGke7ptu/W6bDmh9ETz7UMfCLexmTVltbUziM8W\njO49\r\n=7j/D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB/MGVUDPvpD7NET5bVfZhcpHIyoiKxb9/L0wMv1QivmAiEAusCxwobFYVK3ZSIwJG5rxhVVyH9ojOk7dJQaEZOqMS0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594334339828_1594334347648_0.004283511777058546"},"_hasShrinkwrap":false},"1.2.0-next.1594412304701":{"name":"playwright","version":"1.2.0-next.1594412304701","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594412304701","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-m8UtqjrVajAMA5/CUAO0srNOGjWBuMxz16Nw8N8mtaEJaTf3gduR9P1toj2pYCSdcdpR1fhZL6vb79P7u3wC3A==","shasum":"9ce1bd36c3c76ae2d079c7cddacfd3e5e8dd9139","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594412304701.tgz","fileCount":142,"unpackedSize":1738271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCM0jCRA9TVsSAnZWagAA6MQP/37kiIGT4dxmIZ8Mk+41\nLKJRWO/yFKjDBXV0C5Y89kUMpIuDkhLWFvNdleqnDoPyFXcuZgJCmLjz3tMn\nrzmdR9Y34/+K71Lk+SYiffMgKQAwdf3m+a+LhrVXGH7EykBwUKRUwkxabOdf\nln+n1jCui0qxmsB4O+qaBerd0sLJhnViX03J0gHptko1aNElFS3NU8pZ1EWm\nuaOwJNpErcZulOPDrvglrXTQsZSAg1LGuMlWeImW8bYJamN9ERvzeF5ykjnp\nZDo+530hIlLjjsOOAItRLmxMuRlqJiDHox5u/yfqCYZJDpbX2HFvf3/DDVdJ\nJd0KkL+W5UJHOyVtW6VWUfTv+C+6aR+LII9Fnvv5MlYGtv3X9zRGXD/AAoFR\nnnle7A9jSP3gkFMUHc86BWLPSiuTEfKXZYuvQMM5VMePqhYL87j7mkF4T3V3\n1imDkslK4x45zlOJmvqxlPC/aagMKBUXjc60DPTIkrt4YsoSZCU7LhR6ihRZ\nYGXCogJDwjRkfQG+MHN8WJWMxO1MrwrxmBHD4LVVtXzC6/Pj5XKb+H2Dxvvb\n5Xazs0xVbhKHUvWmjX5Cn+PqzLpu4G6iBRx5PE7SsmkejpxLDWfrLPgD4fsU\nSVJP452tC8NChfxlqiBLwXzjm8DJ2znLWoD781CeY8byBTx3ghS+v6EKTj2b\nHHVs\r\n=DkXi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHdSWDXJWKw1CS/3Nh/H+DoBklAmwaoH4Uj2+zeb6JGrAiEAg+pT7tQe6ikSCwY3I7j8U6IgRaaQBbdP6sp8yRXJixY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594412304701_1594412322347_0.42208821881299396"},"_hasShrinkwrap":false},"1.2.0-next.1594416554466":{"name":"playwright","version":"1.2.0-next.1594416554466","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594416554466","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kaUcVsSGoZYp7Xl4mAqE5va1c9BpruRbb9oWhTro2EFugaVtYNgzVBvZVd9y4K0afVQ4Q0QgVXHv/d9WFcLX5Q==","shasum":"a5968de41e7039e128340047cec1f19d88827c04","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594416554466.tgz","fileCount":142,"unpackedSize":1738271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCN20CRA9TVsSAnZWagAAj4YP/RFdKRgx/Pu7gMeoB9Pv\nDX8JDWacZEntFZOXVzgWUT1Y2+d/9u9HgfkRQdQjp9B2yWHdWNaW8VinIk4u\nUzqZyNKeVoFK3He0uzh0dFV1UIHAWAJGLIObWnMl0Ecofo43NnxwSDFpiPjD\nOZ+/rqTHqTwc8acQtZqaSMjtes6Y1R4ENfh+rC4a9jlGbE1caKT1eIDJZbhJ\nryS6UJCrMSLjydaBELW5qyB8MMHD1LyYhUzGMYf4grUyChqmAMPd38IUJiPd\nK7dSlNMysssUsJ+DwlZJDu09OCUCYT4euTA6xMx0EW3Lke7+Sc1urzcs/xeK\nZhXfWujwe++SWNnanTJDGBOnFF5w4LH4TqrGsw2ExsTDhQIeeyYtdyMCeTpz\nOmPiT8R7Z/+qcjtCDaE45mUlbLDi9tF9tIwOJqIlmJVoygDUTVO+7rZ1g7d9\ndOFdsvp/BtIJ9lE+d0cQ9KVxgC98t25r6hVJ02hNPjF/VPNzoP4E8fVRuOCH\nzXIV9OyA/zbLBNFW9NiIR1+xs0dUU9owFg8WRe4Qyg2/yQ+xgvKQjui9QCQ5\nQ3rMpOg5Sl/ernmQEwUlZywTGb2W7+Rbi+Sl0ZpBXHA+uYjcjvxHbgQwxJDB\n6QL7j/xR5HlJtO7vnktqoZlgPE/k0seMifMcfDiDCFAzAruNhikooTusDLC/\nrw8q\r\n=EsEY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyJX2mkUk13rWSIEYUx6lsyXc+GpZbK0pXhF1jf3nQgwIgDSSzdQV5Zzrb9hn6rzRzpIjKpEb1YTzTxUQ863rEdf4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594416554466_1594416563394_0.23005686987724494"},"_hasShrinkwrap":false},"1.2.0-next.1594419260763":{"name":"playwright","version":"1.2.0-next.1594419260763","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594419260763","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UdEpUwraLUVZpIXl4A3ruIpHXXmEUskKhtvedZgXp3OXQMf3oSJmntzmht7yGePkXPRi6geLgWjDddBxK/XPPg==","shasum":"2cb756af5da7361b84afedd208774d953e877df5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594419260763.tgz","fileCount":142,"unpackedSize":1737946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCOhGCRA9TVsSAnZWagAAL64P/1WkvMl4dzuExz2KE+mn\nCJcJEvythUb4abWtihuuk8rGQFoM8o6GJT4bsdKlWxBuPLY9Nv4ObgffX0+K\nBMLEbDbC1y94Q69lVcgGwpz2oEitv9Bi189CCNkEKtO3bgGBC70jxXXmjkGA\nBPo3tbhRb/ZVG3OR+6t3dvblYeNEkhODjRn5l8u0R3ai9m4wSn/W8cWAdPOo\nBaUTJ9APiWA0Ts8XAVrhYOv/5meNyS9zkfnqTWIr7KxhkD8BWQaAr67+UCif\nyT9zPB8C/7ae33auoWfa2CmjCFZs9AYOquBk2SoNl9oRFVXkXlzh0TtYeclA\n+Gyzn/hs+60qiqAQmWqRZnBF05p08lR0aZCobzHLY2kSWjid+x13MDpQcmMZ\nXgmuDmAHyO1Ahjc9VrNKeyC4mrD6zbrTv3HlZSKQDLnoC/Q64y476mw2/52G\nHQoFLzW+vkzI5Ug98+lnL08G+E0t7dZ30MIU0+HytspijicybK6xkpTfZBIx\n0cm0Vq/OvcWA1l47RjJL5PgyCp6hTmxVne6vCEsbsuu9rOFX7NVkwLWYQ4a2\nfKygmJjQKFAIUzu9rFDAFpzA871OpHYx2zjr35613rEsefs8+qZf5LVBvlWa\ndmNr7YdaLE+k8azQ2c/rznmAYasy98HZa3p4pqp8NBJ5ASRLdm8FvNgrupYZ\n45CB\r\n=R3wr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsHZ9RvCwrQxMYcO9pZ57ZC/NP2QVuaWboDugKs7iKCwIgf57Ki7Xk0C54e7d+5J1jGyK7B8g+ZCOSCbuP9t+2C4M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594419260763_1594419270130_0.7386747046402011"},"_hasShrinkwrap":false},"1.2.0-next.1594420901371":{"name":"playwright","version":"1.2.0-next.1594420901371","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594420901371","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-j1U7HPVwTVgnJiqSdFFmkjPV0uz7DXnSukNBpLly010O/T+a/4rPEOUbktW6WowVlu5pLelhl/+JAUuCRvWndQ==","shasum":"2836762f608f2a909e53cfecb1a5f203ca0d7ac5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594420901371.tgz","fileCount":142,"unpackedSize":1739168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCO6uCRA9TVsSAnZWagAAkWoP/RnviYrEBXzpLhG9BZqP\nDEAc2g1WzJMR2FZoj2lBbYWmuA0ojhLEANWYGTW7UmXTH1kkUetgI4NqHBty\njSzt5M5Jcz8YXJELTd4HAGxgq2Jr48oPcVDtop4OTzyYyufxtRQT2PMSL0pL\nFN1CCRM175iK3C/TMc04hBu9SPZvWrU9o4gfSYwPXFzyuvFGKQd/XbDDCLff\nE7QaCU8/B4stmg3yKij4Ttb8Gqnf7kHzkobgEumy/md1pZMr4a2fkzsum7xl\nD9hFPKwRP9ti9XBfxZb15sJH5lw4c/SDHmJPfKRP4lufurmWn77SJxXMItMQ\nLtLlbxrGCJ3oIVsAqnSs60xnJU4DNtcYjBNRmLbYTVQWuk24bpOfGkX4hPjc\nACqwS6xrHfGK10wtb+6xfLulYYz6JG7ex1L+gACrE5V5DBmvlxVXWThThOVp\noiCJPcUQoFYujB16HcsFE9Gh201JQuWvAxeLHnStZ+EQpZqsV/0HbpdEyLmc\ndia1t5GJP5ti8mXxj9x7CBc/1LvGMF4DTeFBaz3VNz3u6Vyr4IfYeu1Wigug\nItXmbP0s+EDFEMPmo2ld5dWxEvV6i6RHN9VCMqWITG6CCdkIN7DoiJBi1bRl\nYzpcKBavE1YrUhD5ugXDHsxe4Aibr9BaagJH85AC2OwuIEr9w8Pyvr0coLb0\n3ekz\r\n=CmL6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDekY12VSeSNeTHcof2ViZzefg485oA0Se9sGy63UyKawIgZVPrxtddV6YzWBZaos6AKJy2lQs1oBQBR/6AfMFZi50="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594420901371_1594420910115_0.6613492199379905"},"_hasShrinkwrap":false},"1.2.0-next.1594421955808":{"name":"playwright","version":"1.2.0-next.1594421955808","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594421955808","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-T4HKLLcdhDk8RiQwNTIiYa6TD8/fLbpcbYMY7SlpbYtXQfoJPPo0vghBu3HEWTPFgVtkF5EhI8BTOS5HzMP71w==","shasum":"4c63930562d8f9d407169d1d9f9e614fb04caeaa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594421955808.tgz","fileCount":142,"unpackedSize":1739168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCPLOCRA9TVsSAnZWagAAtVkQAJP7JBQPjZwTBrzCQiqg\n6vKPRQcssZbYoAevw1mfwnAk2LpsXTOKPMqvOAlvUIlC3Ji5mvIwnb4ooRDD\nwQdyTfPIt4BRABfncwNKG6VxotrakklmWlTD6rLRKxbfjPGY9JTM+hn4xuzL\ntpBLZfi9bqOSY2a1jorf0IL9DP/6KeqYbFTL6e+HyQNagKS8U278//iJl+li\n3FAfRfULKyIoflINQWXX4Vb0ASykoSv5iBXPIjLs1Lz71Fj9LylijfqDU6IF\nTGxxX1MA1zsAGOy5Aid+2fDbfH0eEistULFoS0j7qMtCkxU4VE+KDOSHk+6c\ngrC8k0KkULOu33ZzTgh7S/FH6VWtRYMmDTDs+4XKVM3t0ET+p+sLK5OqWMC+\nmH0CrirWee3o8z8xnLXio/ssg726S92LYkhubA/bE0xO88Wp2DACPTQCJ435\nzvKbtZEpwAHciGRfXWYcODRIXqktegVwg9rSYqaYq4uWJckXWdKjSTW8cKjL\no4wPtZsfhyyHPo/tybCz6bO+MbnLBUxsRUG40JVKousAQVWZ2OyPhinrLVrA\n0tIpPXsunJikxrq2lwHSzxQodsyigQmLkDz8l+wuUMHC4PSxURdATDcseRBh\nGPCfoaJhtxKqZG6Uxzx2DOcRTwBopPrY+8AdlPZMePm3NyxFcNYMWrb5Adr5\ng0nv\r\n=n5NQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEi37VbYaxCYEhiHnidv6/Ab2o6/8rGB0HvROjx4PUCWAiBRt2T7s2wyzPBbWVVub4//7VpoByQis635VyOceEQPCQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594421955808_1594421965531_0.650951565753654"},"_hasShrinkwrap":false},"1.2.0-next.1594422224983":{"name":"playwright","version":"1.2.0-next.1594422224983","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594422224983","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WAVGAZYDMUijqpaFSi5cn235exzfinXVMSr+GniAKJSelPmCs1Xdh6tyOB0vPysScUUteIvVLCu5ry/BZH65Ug==","shasum":"9f422c4dc07139893b9d9041256fc8be03979816","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594422224983.tgz","fileCount":142,"unpackedSize":1739168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCPPZCRA9TVsSAnZWagAAWoEP/1o7eQCqZAHXmK4xJBFq\nzQ2zf8Y0SrzLAyRM6cabUf57cF9sTdQ6QHjU/SSGjGSzmO3UbUvpX1eivDwH\nZhlWPMrVDFRx2xLIDMyR9zWvRuqkGGq30/RvXv/Ch1CKXxZ9jdi8aqDjOyxn\nBUhSslF9HZpcCB+Qo9P/dGbx5kFK7KmcxRCeY8PMQKFWfmt0gR6sPT3BaqYK\nEEd8uZMyJuM6StFoRMnpCY6x2rKV2ocEx1mI1BhQXJ/9VzpTLv9Uj32H83ZI\naoCKbrVM58gmw0FFSJBBxYCtauZHb8gd3sd6u+zuopF7LRzwjYgSeczUeT48\nFwYxvYLD4E/SPQtX18Qdg4q75Pyu7NS0wAhshf+P3manpnq6cbS90O/mZjwF\nKeygKky8MN5vs+Ridht1Voozg61S6XnKcxtfpgrZ03VOFEc9E7l7QSLSFc0E\nn9ss1EhewVUZoH2mhSV0oE6i62x3VRQYtllrcFqFjVILSiqCNrTy3DLVHwvs\nLN6P2OOhZS19ZvqPHSFwCH6EAyZxjcExdV6XyLCmlk0fwr9vOekqlXCWAwzh\n9KHFSXLvTFoDPNy6SHJxg4QT9tqqk6lQmGMjNty1TZKxByt24GNaO575KyXM\nYTOaxNKpljneb7D05Xl0W6ZHsgBBX4lhdQe5TaSSYFcZM3bBJRcAiRmMV+Eu\n4GVo\r\n=hqXi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBQREmgB3TMI16T/Zly9IJk9U+yJTS6n/K1oRbmjIq6LAiEAiPVAodFFJfZsTcO+39gzCptoJPC8j4oKDXBiuL+MF18="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594422224983_1594422232827_0.09538717073191694"},"_hasShrinkwrap":false},"1.2.0-next.1594422481929":{"name":"playwright","version":"1.2.0-next.1594422481929","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594422481929","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6sqxdTahP3zAkW+YwNZlNDX2e1KamlnbHdbJptz4wPWRm5tqrIsLojpePk8yTyvLTVdXR9nXaYfbx86B2Tm8Wg==","shasum":"28e6648defabd52ae54aedc4f9a52473762d843c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594422481929.tgz","fileCount":142,"unpackedSize":1739300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCPTbCRA9TVsSAnZWagAAof4P/j+wEJxYY811r5B/trFM\nMWNvqN2vBUgL3mXzd3upc8o8yLuUxSGrgxt53piYjwZakFuwivy4jxo6m+wK\nIB34srHquORTyqyGA2W6/ICr4hDztuPvJ5lTmSeCLIwjTzPUg6mQNxZK/aTO\n2BqD3YJXTR48KcXW3bsAcfyFsFN8VLMaQxu0sLk1NYeaIwdNp/UqVjx7HN0C\na3cO3WUZm8C+5sP8jbfgxhkeorS0sqpvBYBDcP7fH+i5V5JNAE2iL75oZnCw\n3v1lXEL1IvrytcqGIImSxjr0KXdMar1OEPevOoFPAcak+BZH/iRc7QmDv92A\nmZD94prlP6i5ZvXJ7iczEmifoR2UyJD4UUi02IYkmL88Hq+8UCH6lgPb3CIg\nHA2mWoAOK1HR4gB2CsQT8hYjmF3GUe5iNUobPKtmfkWx97tf5BeHj2BigyOM\nUGYXRBs/jumqyA++GE6G0WGNpFkmtARAkeQuQWMGy3/3Hs5lzGU6aN3XtTfp\ntxdIdgHI1b0A/JwtF6fybm7r8zR0BW/2V4sIUDI+dRZ5ZVLyCDhMH9YRZfSS\noiZN0q9bAfG/Q9bFIv8nzK+NjzI+KcLM4il/nVm3C2wAmQBrJWKX//Y/0aU8\n5GZwRFsMvrQ/Zhg6GSrfOFAaj17InTCvdJHfr5jgzkrUVuBJJxE8PnCWy6wN\nXUYd\r\n=ZvQV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp8qt0MEkcA9maiJhmuUf35K44zjr8/nOytuUrzYmHUQIhAJCrz/FUIvOLmQNAk2UGii98f+/Ibn9tQoy1Csn1QnD7"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594422481929_1594422490838_0.35106919211669707"},"_hasShrinkwrap":false},"1.2.0-next.1594423062250":{"name":"playwright","version":"1.2.0-next.1594423062250","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594423062250","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-y5L5I0xxDRLbYpD7N41FDYg7IeETM1EA8UFVh9U+BUm3a4QXkNB+DxkXFiA731AtxPJ+jqeZDmoDJCv0HdpUAg==","shasum":"34d33451931de315411db5763c96502b6cc4074e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594423062250.tgz","fileCount":142,"unpackedSize":1739300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCPcfCRA9TVsSAnZWagAAYUMQAKLGHlZ21DWClVVKJMNP\nr6Kr7U52TViijw/SlzHBttpfeoQoazyrj1fB1kHg8uZebTYAqac561NPKyWr\nVTMzut5gh6bhSEtnnpmZjMB+EqyEsCUOgp800Qen30Rkz0iNdC0xbYAQn1AS\nV5xq2Z4+nCPbRru5vT0SEfBfxAybdnw+++Ew2aQBhtUBdUk3H8lub0neOsJ+\nkTtU4PopOwWOcCiFEZhdBS0xuHRNJbBpm6yC0a5WaUtTl0srx7G2TUv0ZQKJ\nOXCMVJYGVKdb4oAUlpERuxf7HLTgmlFZuwjSqLMgLRMDiKgg9pQHR6DB0RBP\nlqNYO6MaY0C2vVFoy5zo5f+PrzGc4Ydr9twcw5NqF6AgsrVyu/7el8ExsC7K\nisa8mTqiNu61cvFoXjZ/ClrY5s1iVOszNnLL9FBTCWeyj9/5vSRUPfCQ+F3N\niOyt16M4gy+mFLhy+l6yFhcPS6ierbp3Ab9FLADuOI2cIDlheQA6DCKz2PYF\nI5LskBGsAPHqFf9U6JCb+wUurkAaNtlf0B9i0o8cWlI4aH0o+6sew9zUudwR\n7pX/ln4Y+ghxaNiHks51LAhs6OtaLwtj9WVbZYJwrA4S+1NXAazmInPd+hzp\n6JkBAJ219ErkpEF2pY9NBtFNTjutFxP3Oq0S0Dw8drd6epoS8+P4lUnKk3Vg\nbSmF\r\n=MhAX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEmhBshdXWN0LPYcneTrSCgcIfP2Sz0k3ce7rTRSnhkKAiAFPpn1KOSridq9xiiDglaveaB9dvyb8YmcxYd3/d1vRw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594423062250_1594423071099_0.023067885076027528"},"_hasShrinkwrap":false},"1.2.0-next.1594423640354":{"name":"playwright","version":"1.2.0-next.1594423640354","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594423640354","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mbZW6Ra3FgsEglKfiaT2Hm2bY0Rs/SH2FRVihGbaO2O49aSy9tA9XlNZSFRK1jyaRxglhxp/J8btp4PIVd671A==","shasum":"a17132454bc387fd77b7acdae4bc4e7134c05718","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594423640354.tgz","fileCount":142,"unpackedSize":1738955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCPlhCRA9TVsSAnZWagAA9QsP/0RygSXn+LxzOEvJnksS\nR0JuPeqd+6hDXXlyNnkMGjwW3zhK5SQF/hbX+HvtKhom3AAWo8FtTGXo6L1V\nizEOyf7FH9TrNd2DbMnE2YHWfPA0TZkYxRSo4nLFkBROAYgEblewg9vC8WKZ\n9wsu6Gy/r7pJVV8nkZ4ERI6ZuqEXnfgyYmRKLUYZ5YHgSUw/vhMdjBgvlLQl\ng8AseP0c2FdL4Ch8jC1H1r9G8ZNLBOX7TYrruPawkpCNIBMx5N1wSGfq4oxJ\n5w86n5eLoWIWATFocjscR8mLJoooizjhKl3hkqYj9gw/Mv6Cvx5+K3Wg3RoW\n2+3x9zaMeGfbfS1MCnMBGR0SCpT/RBjzK/KuvIj/AC0lvLKk7IQJtZcYTpoC\n2blXqABQNzHQW/pybEf7G409fmvZT9nGLUChwArQQVqvHveCGEJ387YvGOKH\nlOqiJDOhwaj4PsvPKcHNDsPr5/C3dSM+zru7Bdi+zbz57sjuAMkUl81DnBPF\nE2E9cQa0uNPuglEbJxJkaMTXKUbh9dZLFGA4AWVK7eT91UO+X1Pa2lmasG9Y\nm8dITw8h70zGV+t0xbZyxfGkDMGRDgTW+tJy/NRIslXueZMI+UQrpn36TgYe\nc8VWcil8Zqs5NPKKpfIWAYlPWWnkunyH0wQFDYPPELJJr8gxHpGxl0/yyjot\nZDff\r\n=l2ed\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD22iu+zXJvbhqX2Kjl97TguGPINb7CTeBi2OBT2GbSrAIgbUDgSgFz79hBG8mfXKDpFbMsCNoEm6/VhWkFvJLHXk8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594423640354_1594423649384_0.4849954998483774"},"_hasShrinkwrap":false},"1.2.0-next.1594424401016":{"name":"playwright","version":"1.2.0-next.1594424401016","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594424401016","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zkfH21WnGNfKaxFUpj6HzPPxT0Fv0GRqbk2+jAdyycTwLzJFjsKPWSeKBqjpmtwSAFP6Jaw+IqaACNjq8TziTQ==","shasum":"de3b6fa1e1b0731338704cb77c852aa9a85cd9d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594424401016.tgz","fileCount":142,"unpackedSize":1739223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCPxYCRA9TVsSAnZWagAAZO4P/1baAdUP4U39qlH71FWq\nnot7gdHsHQkXB/a0lUhPV3H/+Xl+Rrpo2wtMWBn5qQXhaGpvyAho+YM50B4l\nsRuZHNCnOnpM4cvd3POUtfTYyCPBI9NChvYgv4uwfduExTVmUEC9ojhyEEXM\nUxwP3KWJZDGGRFTXurDN4gfWoLpYy7z/6oYTy10/7VnnCP1LZfnDKNvGmHOE\n1cfonUn7lFJIorEJpHFuAqryDGtNTOmumTH8b/gJ13BHB/H7sJgcY1iUGd9z\nzuGV/YejtueS6xiTdUMK6HyyMC3mT4Psj9c9aZGDDCRo2WL5baUXwBo+u2Hs\nDsM9j9vrsUwtTbtKenkckUyC3Gkj4TYrvhbAMLqE7jd57LvQPfwDsSwidQ7C\nnQfGgLEE/fjkchq12cupIPVB+GhSEBD2b1j3i/1e6a9RwA8hRi0G+mWTRWxJ\n4kGuN+YEWRtxuXdy6cvIz7puJH1B2xHdPrCd8X2bjjauj/vSXK8ovFMTJaqi\nmznjBv6K4Ms40FyH6JLO89+S72wtiEcqB/45Bdl0CnKKgandC5sj4DnmUHfe\nFmu1Y8Hal3MLuVgzGnyA3dc6m5LxU6PTmhy3w9dOuMqTyYzEWf0iyALMvgSv\nzG58QHTuu+nai+xS6KXjaWVp+5+gbcziPp9SyLCBbx4TfU/PSYOQJ14CzD4j\nidGe\r\n=dqQj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhcj5y7BRVFv8mPqH53jBSFq63KmnTkxy+pMPPSrc/8AiEAiBVbtQIoFuATyGW2JQPAkDtt5IXeuxKFMfHajxx07MU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594424401016_1594424407786_0.9070291418929206"},"_hasShrinkwrap":false},"1.2.0-next.1594429360979":{"name":"playwright","version":"1.2.0-next.1594429360979","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594429360979","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MuIGtIJQ1ItRMY0p++ZY/2tqQvYCigbluqTAMesdktrXGKI+4pVW+09Pg1dX8qLYj7qK3mkZ6maWae3zL0aIGQ==","shasum":"b25e2f5633045de9336dfd9fbaaab6945452b5b3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594429360979.tgz","fileCount":142,"unpackedSize":1741020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCQ+7CRA9TVsSAnZWagAAR38P+wVlu3rMgo+YebJPnF4k\nBHW4fOgPblPQi5cINIjUovJ3jn+YcOgO8EwHADTvZrvuV9u/woEY/1lVre7t\nMAVb1v1/3QKziC2qoUS16mARVDXNmR6kklUM3RocbBrlT4gkKmd0sEHNCekp\nL5N1pLqfp5FrQKVx+v5pqoCIa1W8kV+dpMxgzfWJtVZB2TgL9ej1pomAY6k7\n+yZvHUJvc1PsmNt/Vxj31QM0Zi9gDr8TzmJW/tHiAvXDU0qbadziD3nTDMIf\n+j6gcz0SN34dIMlWDfxHH6TXq/HLykgyZ6NLXome7xkJLGXdsJ2SnwWhCv/V\nfC+qseoHvp10tMsxkLrHd2d6Q8zL87AZng/75mPDRQHngbtG1ymSoYn/kEW8\nx+mPEah/e84UFPtPlCFHMspYp4FpXGF7tj1oJxK1LMyB5rYhCXIRBKIUXMhr\no0CSXtPfKc5dRRIwiaBZr0xEDW7mHDDxuPCtj1p6j7fU9WfwrjjvEGZMda/i\n0TsHcIL69b9py+5O9z8pX/LJPL3d7xjrLpa4OqtQsWKLfUYJMdqqnWTGyBsr\nbftGjps5pcPuXd9Wbpj4Q8JjUbOp8C2pGvnkGR9Kh4hhLrA23L/KE5APPsty\nx5WRvgwePFFgU6gSaY5LKu0V+T/gjpHN0/Bh3fJTdRa9/lP+9nY7spL1fzED\nLA/o\r\n=aLsX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRUhC2ScWy/efHAOuBUfoTgqcCNlo5qAMMsOVTcOx4UgIhAKPpJKu578zSSPU/s/vH0P/bOaOpQTexLWnZzF3ms4c/"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594429360979_1594429370371_0.2898787030321166"},"_hasShrinkwrap":false},"1.2.0-next.1594654432181":{"name":"playwright","version":"1.2.0-next.1594654432181","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594654432181","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-axMixf63f1BSp9YzYBxBEb0X4SzALeJv01w07tBA0SJaQeZpMbgM3MOjQYiuSHrmKdYYXmI8jWlREYicIOvV6w==","shasum":"ab71521b744b2e927b1d72371ba339c5c935dba0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594654432181.tgz","fileCount":142,"unpackedSize":1740854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDH7rCRA9TVsSAnZWagAA8zYP/2k8fcvsZdLELTk1jL64\nDV9YQO/cFYkYhuk2hCq7Ch72lfdeIHn+yrRrXiMEI3nJzSSWytNVygRWV/DG\nnLjzMmkXUXD9mXR7L/GaF7ePK95eGItHXsegjtrWw4/hgO8XphDB0lAVD38H\nl+YsHKZEWVcKuPid8YhGyNA8gMbmO4CR0S7e/8WtqlDOJadyVUi0Qcj6h+zv\nJLMOK2ro/AJpJzkR3Kz5zaBXmFmkeRMC90exj5RY9ErJ3ipTW8tM1P+WJmdA\nO+jJnL94jXqvjPcj70YsH61mSXdL5cm3kuwJv9Zz9n2En4TJljNW7frlk0g9\nz0GA/4Jbh4ebKWyypU+zB7af3rI8v868rvx0iL6R5D8LkEkXSSYKj77csGax\nrjzPobr9WURHf/tAwiblkHeJMFECF2y9A9jk6ephgXMadmzFv9Rya1emqkve\nCELbKQld9kPNucyc754VmJXnsjPdy4Saf59pBkETY1w/+ITckL1foUvcIGh3\ncmNmeVeNuREMyVMzXN7b2NeSRNiOHS5bTTBc9cQyj2TNuDB6gDjO8oy4QMoN\nYfW6WMnLB1FWcR41c8tYo8RKxZhihPgaayw4+E94NqXSBmTOWTYA0ZIabPTe\n5u8Qgd2wrP9VR3GCQrZGrtx4QuTyfcOz4KITm6EIeDR+stWSzi7Z4iieRWlt\nRVLC\r\n=pbIP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEaJwENaPk1gxME4/QpJKAusJ6+yp0p1MewdiF1EuVMtAiBU7bhqco1Okwh9UUNmg6TQMu3Tpy31Jp+/xVccEMG/jQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594654432181_1594654442512_0.6900919517612567"},"_hasShrinkwrap":false},"1.2.1-next.1594664645818":{"name":"playwright","version":"1.2.1-next.1594664645818","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-85.0.4182.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->85.0.4182.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.1-next.1594664645818","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/rwdGOuggHLvVo8Fg08zoaMCOXA+ywT6GnVVebfslgqW0ht3zkMLQZ3U4ioKDZDL4fxthI/NfNPubmMdQN7oow==","shasum":"9b3f938032e8be3e91c894a904821502441115ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.1-next.1594664645818.tgz","fileCount":137,"unpackedSize":1721258,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDKbNCRA9TVsSAnZWagAAjqwP/iTFqZFHkj/jHn1YwMxv\nngMBxCDmLJj3Od/YH3ONNv6AWPji7CA/gK7qtL/8OuLdTken92R+sZGi5phL\nhP1uNHtLe5N0k2naoEt05mJyT/aCrLJ7sPws4+M31C2yrns0Ct4er15pf8xn\npJekkTmjY4emD2/7ooQetXsL6OWRpdRSjjoRTIhWKMFrx5EzEg3evKYKwjB4\n1/7Ca3NiXdHWX5VZZf5CGDqcNp65Sk2pkIOjJevMs0Mk1ngvJg88A9Al1wuz\nPFYV80Nz40KmHvRC33Q9rSKgsbNZYW3QV+AhxbQiSbKjeeLVD90doDmf4pob\nVwoWo5SakdyptaH/G25oHODobg4zE+l/u9vEyh7SCGmbFbNDdY8qS2r+hlSt\npkmEv38o3pXGY4+6tB78dhq5zZhzCd1XttDtxFQBVOJPfboXn+XtFYbmKRvs\niStZ7B9x+QVnzxbx9cNcWAEbJVA/1VH9Roq3Z1DFbscpgzs49vwzC5p/GNGf\n5cfF0EFbVPn9LrPpM7eYdqNnNcJPMN8YWFrSUfcQGATecZdq/S64H96Rds2z\nhuB+u8N8nC1gPZoRFrtjpgDa6VD6Ztd46vxLiDRMh6EwBTtXE7NWl6RF7s4p\nlHaf9Qz4IA6VqwAeP4oEIkjWDcR1t9ZV0C37FvB+bq1PADYHf9lurx/Hyl4f\nnLfc\r\n=vIko\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyhd5Sq21//xT1ETlspZyP7mBKIwkWXGOLBEcJFj8iawIhAP5JHbanIU8BDuoCguNaAVVegd+cbRoXBUukgwoQ/y/v"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.1-next.1594664645818_1594664653249_0.43949989849078697"},"_hasShrinkwrap":false},"1.2.0-next.1594677119762":{"name":"playwright","version":"1.2.0-next.1594677119762","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594677119762","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-hAD9y0FHeL0um3o2cKVwKvJfW/OZyJ5GZwkGuxehykHC7lO04Mod4mSx+1HfpwXtN5PQf0LVh3mB9H02kF2J0A==","shasum":"5a9f9d3566f066c197c9c13c84df866a88adf16e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594677119762.tgz","fileCount":142,"unpackedSize":1740854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDNeOCRA9TVsSAnZWagAAL+UP/0wS8o3FEenUcWB334GR\nvnH4QnGi97bCt2Y4ExT+XGnNvbeZ7EkBfS7eRCys5xucNeLnWc+CqfxJ9MqN\nTFHIt8i2OuGkWv0Z0i5HSnjZ5/PQ/u3iOvnWm3hMCURHqVMs3aa2wVx6bNcJ\n/MZ5HNsypZxt1UMjiYRGRxzyxdgISQvTjoZGVFYlRCNaWSQIzL/P0mogYYhR\nrsebFRHz6y/L4M5a8rGG3OYARuLJSD1O6H8pRa6DBc7ekHCDQiJ9E7IiU8oP\n+8olHH8bgsGR8mSX50h8roT2sq1sce1DBbaPGVjq/5z9znks1dh76zs9s327\nwfvKE2fhZyHXbP888g0yWB7/GCRSl6JCfocrEie/P4wtfJ+Ury31ShLRp7HC\nfdM6JIInk0c5mlwnUCsMZKbQgyWaFzePJvb5OMR5NyPDXiP3uHuTj78Sfxv5\nuqqg6bMgG9W3ntxuUYrk/Ndxnhl2LttcrEFtEFNX1skSv1IDkhv3lLoPmPFw\n2Cdd8LJ6X2WHXOm3AKaCj5UUACrZyhG/46s7B8nt3dQj+o9pzC86nBpTqjMk\ntaj7duQaZNCt2TRawWo2yJanzzmbnP+sj/0j5Z8zPLWJ++1olZ+8T4JOyOrn\niT1+dludCnSoKVX9kKo50v2wLNTOVk0pFMRkkJJNWOrDE6sIpjRY+uiFVOr8\n7RBJ\r\n=jdPo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyl2EeNLvwHtYZbcRO0IQlH8hLCDzbW2jbj+E/rBrgYgIgMKbE0//zlp5lWf1YKxAvpbpU6zlzjuq1lpz/we7Adf8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594677119762_1594677133408_0.9445683440192292"},"_hasShrinkwrap":false},"1.2.0-next.1594677757383":{"name":"playwright","version":"1.2.0-next.1594677757383","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594677757383","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zvGjQxB1AK+aVfeJ6xTN8aTm5rEa1418vSop5wSpC7VsApoUzZ1of3UHsCip/WfLcDUKDNUXlPkOX+RK/7JEnQ==","shasum":"ebc9a370b498118196d3dc2ba3dea7d3246c1ad0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594677757383.tgz","fileCount":142,"unpackedSize":1740959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDNoECRA9TVsSAnZWagAAYhgP/iLG2FtH61ragv1g7X4T\nyKKUSb5m6ZrjnUvbqG0N6poRFs2KaNMI3sPIkqMvLy5RufC5tPLjYMriJZB7\nDeS/Qz+y+ztErodAMZPdGnkjX9FWcSTT0Gtf0YaYbfnbftnEVQYE8eA/qY4G\n7U+qsnPoGkqILuxz5qu+2KtDBWqI0AF0v4+OXkr/Hqg/FkVRC5ioWgWjYyVq\nrJMlaAzjUgN/sy9wHDved8KF+Wa8BBsckRpyOqTcgMTRi1EdT+ZNpZfA77A/\n9fRDmEV4xl0Oju+fCGcOwX3RbM25Uy7e5gwsVJUfjK036VYe39uWjbcY4vFf\nFcp9luKsvyTIFwnOv3NwyC/WD9WP+cGTy5QZe3ha73MpR/EYbab7Z6JTYur/\nhcLJgHQTS1VZnHUq6cgwnMCUrxas6gsDJgLq37mv90/POE8QsbMtZR8BI48V\nn+RfE8zI/Of+QcUGmH6gncxQLFzyZcHl2ZEZ59wkW+ncdr3bVKbebSne+b2p\nWaEgOsmTUd9B2huwQ1rdI6FlD0j1KdDEcALrkDzTowek1Z2ki80krZG0IB++\nYw7zHKfEaxu6Elh4r2cN+MuKbUTP9iDhfya23UHt2oSsjhLt5sh23c9kzyz9\nmJJg1MAtzVESvCxMqNwgZ7SryyJ2/bLF7Nemvh3Zsdl/Pdx1t0FD/fXrOIUi\nYvaC\r\n=5UK6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHiRXWVk+eqZSzANNwtvhRgFoVV8d7rwHMBOniCORWy3AiBu0g1UmagfRbtnqaks08r+RrrhBId6VH05RquIYMv4IA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594677757383_1594677764155_0.2830534279079633"},"_hasShrinkwrap":false},"1.2.0-next.1594679384923":{"name":"playwright","version":"1.2.0-next.1594679384923","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594679384923","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OjJ69xX3HZO8bgOThztTPFb0UMB1xdgxkJwXrcwNeyaXCd8eondlO7tg1XLAGPv07VDogDi2z0m5oaoNEdFEZg==","shasum":"7367be863314bae863e8953e698f1da4c2e8e728","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594679384923.tgz","fileCount":144,"unpackedSize":1743676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDOBiCRA9TVsSAnZWagAAPf0P/3BEJoZmxV+b23Us6IKk\n1TgAvm6F7XtSlBUxo7l0IbvTiH2AAWTHdjuU0Dlmldi47+uFaaHr3DH6W2ev\nMU4SyM1Tap7unFjQ2pmPv+0kuuwZHT+sl/AjJ/2S86HV8zqxWVMrRHZ8sCAu\n0Fd7xBQOtdIipY9eyjQ0jZVfWbvgsQzHb8BZk4eItNAjEbGgeiXDeYh0zpL4\nB9OKbZhA4YYjevAYGUUMZ6xVtSBlA1AfjxR82TvBQE+yQ5AQKNpwdnK5YfEP\nbCqfZSpmB+kxWqbg3iA14NSufv5jE6t990XauWBwp4McQa32kIf0FTCnS/UB\nz7Xrr8VD90GMxm36mUR95/X2lgkKWkFRLv/SWkI/A4B/wfOyawsR3OjP7qcd\nOzGdv2d7ieaaADOYAvkJB1GPRpjqrZQ4HBKBxvhDGhx8fUUvTZa5CmHlKVlS\ng4s3y05mPYuHtEybGwduqo3fuXtR9afDgzRFxYzzK6PLJQbsr1y+yRbS4Msp\niiONCSJGZCll/ABtcGDu3JXZmmYFVb/NzmNjUz5oS90gZSexPlZoiub0uGLA\nuV/HfkDMMeqHDZYHeKAGO2myD/gxsygNzpx4y2B3NVJx42BWzKlYkqzBIcnC\n9FxUQhR7HxrOCE1E04VBi9yMsEP0hP6DmNo17kw7or43eyJq2oQsQA8zmZzj\nNeZk\r\n=GnSz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuyfXNmsEZ21JUMBKgQqGRbq8YjLWo7qCFEZ+uk6kMQAiA1AzH8PyE5EP1aUqR7HYxEwC31MEjxR2TAvAwrhu78WQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594679384923_1594679393566_0.7669914510759688"},"_hasShrinkwrap":false},"1.2.0-next.1594680578848":{"name":"playwright","version":"1.2.0-next.1594680578848","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594680578848","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cwMBQr/wmF8tip8+LT2frjKSnwYtybk964MufCZwcX08+OVQ570vxq0DNCFHM/YJ7NwY+HJXZ6Aw2eVl+UI79A==","shasum":"f4c7874494ebbf21c9b12dd626db3df20cb345a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594680578848.tgz","fileCount":144,"unpackedSize":1743676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDOUNCRA9TVsSAnZWagAAmKwP/3AeesjlC8FnGrAGjXRV\npWsVvCogpJ31BtXBuMNhi5ShDv2M9o7Bl1lilYmPHqSLj0LXErUBqJHljues\ntziBsFrR2Gt9tpeJ3z2gnm4Xn61wPPOwh09cbSyRbrtKdxCJ7mPvEndEYVpi\nKMTPWwMAIWpb0kcGuIr7n8Mv4fIh4Nc1amc/Za86+QiiNH6NCh4N80uWWIlJ\nCFpw93j2lFXZ52J+ic0ZU0LHFUM3XzhSfltmaOM+W+J0gHVZePiVox8EVs+T\nquhg6qjbFlbZIm9UkDgYYJGv6tjZiFk2IWBp3W09MPykRpZTT3h9hxxCgFAO\nC/rAiKBoSykn7+Bb2jQxDW+J+yUa6Gn1jtkIYoVzEUqe9HkncfAYbxAXwV4j\n01Zay1RyPfAKTXlfu5RZ/qJJDswHIqCodyKta95uzu3tm2R0arWTDFgBBwAT\ny95Q4/geUnWXWmt1VRvkpUqSt6nFbJrEyrBb9qpaubhgxTay7ZkLkucqKLfk\n/bl5boRLUkEYZZ6w/3s9238iI3AZYNsDhf/Rc0z3cMaFhwe54QrTMcct5/3O\nMmXvfUiT87UyG0ltrK1UJhYU3cabi+TUvQt/bDMR6ovjVlc8uikeimpiWn6o\n2sTaylixOqSXCW3DsLY5HC9ouzPk8RdizCNQCGcHGFEAaUB4KTE144e0JSYo\nRbXH\r\n=v6v3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFsEfLpEioKqrPbXAnw5SekJftZFrTTBj4E3RYHRbFrpAiBAteSXB6B0yUBByP+VBIsEzooeex10FR8579ha3XPtvg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594680578848_1594680589262_0.45782617574493467"},"_hasShrinkwrap":false},"1.2.0-next.1594681722828":{"name":"playwright","version":"1.2.0-next.1594681722828","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594681722828","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-s0wwxAXoFyyablherA9T5JKnqEP7stBeA9hIEiX729ySRRgTFs8N/Z4UgwKSk34Gc+37J3IVspEqKxuP5VwH3Q==","shasum":"4cc4d0780aedf2d17e576133ece50fe377b4e609","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594681722828.tgz","fileCount":145,"unpackedSize":1747567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDOmHCRA9TVsSAnZWagAANv8P/jC4zePVMXv3Q5KcbdeZ\nRdE/+I5S/e1qQke70ZCP1wHGz7k/qgnpgzpUTyyoJn5FMoKjg8gYLqcsAik7\n6hocuD6ius95lHWsrUw/7MgbvOKmTPnqzkbO3WdSVst6QovAM3dFfdWxMb1x\nuEGfiImd49kYBnvYu/py+izfYjHnGnC1oWpQtmCOXX6ZHZS60B7ctnRdiUcs\nSEhpkXqGTxlOnNmCjLK4I2ouuyRpQLXHWoDWYKiSTy4qibpmuGb3nCPtbCaj\nVJZqYAnIL+Ut7CsJGK6qDP6kzq0HyD+rPV/NU3pl0y/PWDg+AX3919MpcSPO\naZDY39qERd8m4Hvu4lgqeB6Rv8oAke+0N4bFwK2kM+P9VjajCa/ozOzrsr4L\n0ca8AhWkFO+IVbDdo+i8KL1FjT/LEKSmPdxTCT6MhscL0vTd+BxTS4chax6p\nXafkerZIkUgMaaK2NsjfMEODplGUx0rqmEdIvGUXRPl7XcUz2yFcTET6u4M5\nuExe3vW94LiVpjIkXHI78EYg8aG4GXRSFQ5ebrz3LaEpsiRg1e43jnSsoqqN\nnUTBALfW6GFOhL9UklLxNkVa/1V/prsl61nHcX/eduWN9Yub5qajmAVu3oC7\n3OHP/GhATY5QdxSe4PnAeQNF+Vwt/iWZKBAhc9cU/FhKO/Ob0ey33GkjG8Xe\nW2AT\r\n=c1s7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzbBWGNrm/tm64gQtUiW2pZsoPkyqYBJM9rikpzJ9W2AiEAl9HgRrYQM4EK/b9kvuulAMJlcc9yg3bCYg5phAnujqE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594681722828_1594681735094_0.6213258840877214"},"_hasShrinkwrap":false},"1.2.0-next.1594682507271":{"name":"playwright","version":"1.2.0-next.1594682507271","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594682507271","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6gNIhhRIOc3BTV4LyWE8488+Ln1uY2b1qdOg3CcT72M5chL/EmbGS93BxJKfbGbdtir/RcVvDNzlA4m2MBG7Bg==","shasum":"6e527f167d4c5e4387161f3700eb4c9374c9dce6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594682507271.tgz","fileCount":145,"unpackedSize":1747567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDOyVCRA9TVsSAnZWagAAL+AQAIEdqmkSHYj7HP84hbpN\nTEy7iwMvpyWs5o6Crrh1jr6bwP3pydaFvHVcD1QvIV8+q79yzaxiCSH64c95\nfjy9Ms7U34i1tsWyzTmScGvqYkdUXxK+Yu1lbubwfSswnsm6WaJ1HAMHxGIM\nZqWeKWVh8vwJeRwC31FjJju1o7j3tx4xkGo5adPUsUoW6QnWeFfCmh9OFyr3\n4adcMSdDS7hqMW5PZqLMon+9zogxsfjOAAmcQcwAd1c1VoxwNIzo+Z/Rk9Yj\nyvcbu5Yyw9rTrSYJ3WCoKkd9Viy7iYiCu/WW3DqxiDjXZ39GNYyhF1EcZVG2\nnvhguYu6m3z7ORNnSbtNT3XO2pMHyOLiqZXY7OdL6x4mksCeO+yE8sZ6mSSL\ndJ1PHLprQFfrckes+A1UfnjL3udyyHnBoWs2tQAz9iOIGae8aazZyrz+OsWZ\nXmvkHdnfKsErK+cityrw8W6WCwMdSwgT3rY5AxCMvq99iJGaIN7rYAxwnz4X\nF2ZfoSX3XzlYwrcPVv85dv2LOeXk2xm58YJHasTKRYjY6OaryS8vAwImXMJY\n/BIdPivkme9dMEszuIEXpg2e7z/A+biMRuEQmKb1YQzb7OYdrPC4+uuNM9z6\nE354bM1OPsxhVksG5sZjaRMC2RDAKyLL2P4zxlW8dPQlfDMUFP74v2MmM44e\nX3zD\r\n=AhIM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAdgRwVG1fQ9swnKvJsFNa3Qk9qSGcplWWBZC2wBlX/QIhALTk/Q4Y4Qrwse3gCTphGppeoGmHZsEd41bvJjIsoT0h"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594682507271_1594682517382_0.15189061417385452"},"_hasShrinkwrap":false},"1.2.0-next.1594685933762":{"name":"playwright","version":"1.2.0-next.1594685933762","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594685933762","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-VWozftlL6R3Ctvadnqzj6oskDcjYKsLMNOV+8ENtzWZLlzQ7uGMkE6fsC6Z7bGk0SVnvGEuKB3zPAKzgu0TPRA==","shasum":"be0c79161a0e992607f86d289f55cbf4d98ab44b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594685933762.tgz","fileCount":145,"unpackedSize":1747567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDPn3CRA9TVsSAnZWagAAjzQQAI4eescRm15My0ujR9Af\npmwgWBL6vIovaQcYYztAUCsF3q+62K4yfu78JJFAF87zrJfWl8K158rtQ+hW\nze+7qKZ36rUaEgTpcH2hDgI/K5yNUHoypQ5OVGVNs55zHKGJqGXvKB00F7e6\nqTn7uMdFvg2gOt3yTLz8rq488GIP0M7nOnxSCn3NmZqYvrk5lyv9IMNFj688\nQQB1e+nkQS9gakccT1aShEJVjPSR0If4axq5xU20h2l/GXZlK0XGo/wwYiwo\n7uowqLyjdi5JFqmapC10on110rNLH2DJgIOSDBu/e4UjERZ69nzBW4gd/U6y\nKrJvbT6fNioJtODOCxJ0Yka6PpYoMBFnJV0cnGBRQsbRjwmaDAcvb1CmKcSo\nALFsvZTbXhac9v9FYEXsScZiMKCbshBsNu+8A7Kl+XYQI7NampZyHBe5L9rM\nvreoDytFNqRa3beackCdcYy6Fbim+HTeuiaykaRs5hIaM+5OblT/CdD4iFaG\nlgLGsZpkP2QT7atN24uW4xqmKmrg0lMsSfeerztUj9RDK4MCDpykk9/waqWi\nFinR/9jBg56/Wr6EycvdcCsO3SGR66SN2lML6MAC/CElIalZhhFjUQoy69u3\nRC3e10czVmg0RHyMze9ZRMqV7oQM1HWPia0jzK5kXrPgAfbNkDQY7aHi24vj\nNTXW\r\n=Bd/J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDisgYsMYuVFCEvkRtv2M0eqPNdADmDJ3yMOhf1VE5F9QIhAPPNrjeMlX52swVTqFr14uQnFMKrPa9tTwVPPZdx2nTB"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594685933762_1594685942397_0.4668913235923893"},"_hasShrinkwrap":false},"1.2.0-next.1594686432548":{"name":"playwright","version":"1.2.0-next.1594686432548","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594686432548","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-l7pwnpR3/hFflVDKyIt/qYU/usn/lFKqOybi9jgXJ8F9s+dZo7KwFmqgVWbULKo0xuoRII8clfUbRogPQJlRug==","shasum":"86f773217811d352c340fbedbd6a2d1f1a4e1d2d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594686432548.tgz","fileCount":145,"unpackedSize":1747567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDPvrCRA9TVsSAnZWagAATIMP/3jZxN81TPJywrKo4yIv\nol6eI0HifpvfgZOAD4FerDqbPbgrObclyve39fP6BH3UfVykBLlcxuBrThlt\nmOIyEpyz7peN5SdLUQZkr0mHZUbtO4x0RihfMfyKQ5TuXBL1rbCfFx1F3R+r\n3aRx+AO9uFJ9lzPpgCIJ81BkDIdFTkef7+f2J4D8pK/U4JtLYACuG5KrQLN8\n5+xiGFeRMIsdjcX0s4kwPiZCE+eHBiDagb0flnb96mNawmSivfWWGHzL9bZB\nU2DkliwauDRO/K/k1VWgUDGvQmPUfeE7rSx+wIpeohH06XBByTjgXEIOOdEf\nqTtH8lah08NJYQppxoDu+ZQhdG6EutgplocAPadqsHtLHNFwELUg8DjGf8Vk\nt2Y6cnQQFBx7uTneY9SGb0g94aulchly7QIGyoBEk4U8qcRF20unjflIkydE\n73zFyClakXkoWPQ1EQgvs8lNkP1ONBgD09mbxN/yIDZLKoy46fRJsngYx8Hk\nVyRu2Hfra5aEZ1NRIuy976cAzpUNbugV9Ha/Lh5lJSsZ0OoUxotmlpl98Hey\n0lQ5VXfj6R/c8IgPrwrAlTKYQbzfvcnpV/ap9zbLuFBEfIzhdYPaHkn7XiVJ\nyBh2DDySPyFGIY2GaNS4p186NW3ZESdN12VIqdlWfHSdpXXwQZYQeKDLPRit\ntmAF\r\n=Vl5O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD61vrB1JZrTctTbh8B497jlXHMAIy8SleJMoFlRpk2EwIhANpmGrfuoyvUS1kekoCy9uh+KNm5rCRPzYm1dCJD0INl"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594686432548_1594686442694_0.08998301819481513"},"_hasShrinkwrap":false},"1.2.1":{"name":"playwright","version":"1.2.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.1","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wD5WZ3rNvmXq+W4qhwykrm8J7VGYsjMjdC2WjZb4B4r7j/IFzq6EhliD+ZBIl+HOymFNsTwPZYhXy7IqeC2+YQ==","shasum":"9c6758668ff9776b162f8174a2d972265540cd5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.1.tgz","fileCount":137,"unpackedSize":1721239,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDP/3CRA9TVsSAnZWagAA4swP/jp3t4XD2F0wPE3wd6L3\npJ89jSZ9VPFpZZUvI5KulVYDmv2zJiUTP+XqarFc1OTeymbcomMwiHYcC/yx\n0T5vNoFLxlroe9poMUUCiMzsQlr8KMKk2894kwOYAqCUuGJzJc7mt3MTUH+z\nNR+KiVajbBzWxbkfD+CyoAKQIASJ8nCRjRH2dkdjshiWNF5xgzClwS/xNH5w\nnqkbo4rWWG3DD3v2DPCe80z9e5vuS0SIzkVaVrqbU3kgnrTPpyhpU46F95n/\nteRQcL4YASzWmbhJ1UbE3mmuUCjnm3s+7JipUHh+/yyn8BfFdAXTVzvackKJ\nr4alel8ETuL2v83R6+sooOXVxMTLVvXAlXsP/bj8Sk+otnhnJHq22VXja7dU\nZA/X5s+wccP381pVvGRX9g6cH+RiWAeeHANJChp4tcDBHiiuVcBBPDwjhpBP\ncJWZwB8LvO7bNQdntjepkXhOyyJaLiDqL+2I4RbuAcyF3jAccTiW2S4dJbWR\nLqykQBJrunoZ8qJfxI6brgMKv0rGT94ecVpKCGBtCfJZL85gRTvDB2Co8XCq\nJTJdPeqVL0g5aJhi1QFqDLRquBLsUXmMv3eArlx2DOT1SOxgGuiednkGmHqx\nCfx6AMcXqbcyOEcKLiSghzm/2kJEm2JPJUVTwNY/bb8v2jm4cEJknr8xaaPQ\npeuT\r\n=tzFc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOtfhK363wH+pallwGGDn+t0itAgghrT8YJ39uPJOeOQIgATAGP0qkZXv8cl5BvWKoIHXFmtZOA0PyoBNzv6I5gt4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.1_1594687478900_0.39407985110680044"},"_hasShrinkwrap":false},"1.2.0-next.1594687764088":{"name":"playwright","version":"1.2.0-next.1594687764088","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594687764088","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vbt7SQ8RhnV1cwBlEBNjIEHDYN/8LV14G8fbY7kZ/nNLenkxeGyGyzs0ecYVf4mevfrhcIA2O5Qls53HpVgIag==","shasum":"17f08d5d11dfa276645142bc7e3e65a9d54f63f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594687764088.tgz","fileCount":147,"unpackedSize":1750727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDQEbCRA9TVsSAnZWagAAS8QP/1bcGb1iO9lbjMitrwwZ\nuK+SI/eIaY5wVmV4xl/6w5iV90TEGhZj8lEGvem5pUQ4XEKF+mmYVrRWu9tT\nDfFKk396zLzTfyfQydVAFPRetjbv+yz/SeCL2f/u3xVbbYZx6OpSJfU8RZPN\nhr+5K+I12ZIaZ3CIzlAbQFZIEbqjEBYM8ML9k1roTTf5nTw0yFQQCRY8Gaoh\nUYgNF2JB705PiUGRkx6rbg4/lxdeuf0BBGUqVpe2FdnW98B/55WFXql0XlO1\n83vEBSgOW2x3+uLq0Hzxgxwxlr99/bj6DSK/S2wl4HpXNPIwtUXLkYpglNQy\ny77WIKsDraPst/9986wOzBbjyrfjCsYCm/HbhFTaFyB30o6Lf+A9OdGWV2E/\n6ZkxIZpwg/U0BKN6et8XzHgfPgIwnuB/4dPbJEy9qVllLViRcSurWNURTVyT\nO7q4NZHTzGHTSnLmBMhsto+pRqMaQijbfN60Z6Kdyeoctrspe8W2WHLluurR\nz6ibhHiS54C1QHtbmU6fUwGVW6WVTDSSajE+tRZOvrxKSye7gsQ03/hX+Z0B\nrSxVSek5TbVcoNpD2EeH7IzfcZdPC2vUF+ddLYqVtwRjfoU9S/QjB8/eQCLl\nwy3ioLJ84exVTCRju38RFCvrwoeK1mVwdRvImVNEfHYpT0N5zj1qS0VlaYZJ\nBT5y\r\n=vQH5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID4qecea8Ua0D4FB9MCF0DWvOavnrd0Co0Nkv5P1fXJ3AiAsCJkWYRwJ4F7QfzJy9aJB940zTN44DwnAFHgyp1m8GA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594687764088_1594687771241_0.4777152256596715"},"_hasShrinkwrap":false},"1.2.0-next.1594702171674":{"name":"playwright","version":"1.2.0-next.1594702171674","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594702171674","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YUkAz0Og1pm4n3DuEewFkoV9vhPnQM67rNofqvZU81TcqMEdx2GC4+wc36FehcRqdGpx6uwEiK9xqCB4be3Gxg==","shasum":"b98f06d950fd96c76ff205011c38b21e27d8dd44","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594702171674.tgz","fileCount":149,"unpackedSize":1759243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDTlkCRA9TVsSAnZWagAAJTAP/1sQH1C7kzlIbNzOoqDb\nJlTMvgB9w8jNGoOvov50wtR+vx4Fka5/nMjXC5Pq+hyZy5bO71vRKWmuZ6HY\nuR+acBSY6be+y76MwN+5y86AqBsbTtLmBLQVGxFHop1wPDr6Zj5GKN1Epi0R\njOaV+uy4EiYYMxnBdJMZYh8z3BNORLOGZTnJ+W6q/8MRR2pk7wBwJLZ1dq02\nWcA0Vtuys2o6HRxdNh8CNXGUI1d3JvCMKDF4AcRGFPaYFzO1SeoiHfsQj5hA\nUN0dRDCpr6IJY4K1cM8v0soVkb9Ld80SUTeG+Wv8jqwcre9niRp+ckncMAGP\n+wIWC7xkcKkX7sSrZXK/kNxUYANarvsKE8w9BQnRqp87L6QiciO/MI7xVeDk\ncxt/IjtmdmXru3ysvJoy/3m7nsRwUG1uzb9Jtp/5gYQTjSSVIPBYb5f6Jj06\nru37ybSaBYMHPrTuQdYhTiXvsKYRdkJav1oUCSFLwq3WvST22NZwJZxtEjz5\noGd6ImAWoyZ2Lfw8KH/pJWp5qYutOrndFO++dnmZ5raIFi7kyaa5VIB7Z+IH\nQ4gU/yjROfot+f6eg2ZbqF9EzRPJkj1zVsFXI+vt/+wesk4022RLfdkUOsfB\ngPG/efjj75VvvNcl4y4yd5T8KtbR0JjXKdD6S9+sI8sBB4AmBQxFfte3HMse\nnCC6\r\n=9zPS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQbVy5If9zJ8I4gHwI+/3vMF+hNvJSNbjF84bhEcSH5AiEA80wXZElYhl25h4zvBcf3myF+oY152O4Wblf/gbX8B7M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594702171674_1594702179498_0.9408653321874381"},"_hasShrinkwrap":false},"1.2.0-next.1594749241934":{"name":"playwright","version":"1.2.0-next.1594749241934","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594749241934","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JJVDf+IMrICr4YLgekf6mcvYSlisSGnWS2kygBN8MHTE/IMOjBctnGDEU7sH/NR6TYk5zimlZZqy40VEREQQrQ==","shasum":"069f4b95934e2a1f0e2a777cbf072820bade7c4f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594749241934.tgz","fileCount":151,"unpackedSize":1763266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDfFDCRA9TVsSAnZWagAAXK0QAJB+fgPyCeW9XcGk8Nwe\ntWUHUY1b1qNidm7Kv8prXtwZtwggPL/qAqIXGBgph6VHVAe1/NmtAe5ynZV4\nEzrnTswSttg3mAE7wFsdWlbepAWqNIkgCfY1ks3KOKcQ5gHiWmUVTek19Lif\nxdI8w5bCxqKPdz0IfrHGae+XzbukE/97in0r0EkveP0GbtqEL6/nmfqj9qIM\nw2Rc7+waAZGFJiXuXiy9o5EtLRmXeVYiu5q7YtBoq/E8xVtWZW9smpvfWfVG\nOUl7+TVBVXV7kKKPEcD39641LOY998vKXtxX7W8wZOq3LR21BgVGFokQ1TuK\nnyPr1VYunAvTN0VPtJXFbDxMCTBmYr+3SBxr4E2+DW04qTWD5kscVt7HboDE\nEHbJLjY9CCVGjKTEd2kERupSP3iUFfKYfiU1AC0iTDVT5r74GravUrJuB3vK\nKnoKwzq5PZErwbV1MLeDhU6wruYP/RqMr63SjqNfKu//9yT+6TpzP9HEM3CT\nNADNBKmby4HmmzDx8+f4StfAmxeTgKJLiBpOCVQJdKjEcceymnfSoCmGIW4q\n+/DL3LSF287xfMk/o6SqZzXsdCFRqqMNMbMy9MvwjTsa6oq+MnDdw8nwFi2O\nyEY5KF/axLVOqcmyPTJypEflxE5TCPWDJfoyLMBTMHmtHS+UL7Nl9g2Y5bjQ\nc5/U\r\n=zBFB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFG2mx44xFZvowi/PcFM4RwdLqZdjmFRGr+C5t2GtDnYAiEAohxXGNxU1DqU+8axJZ6Gq8RifQYdnrjV90JKo1E4tsY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594749241934_1594749250457_0.5696191079390946"},"_hasShrinkwrap":false},"1.2.0-next.1594751079181":{"name":"playwright","version":"1.2.0-next.1594751079181","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594751079181","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-RzJqLnl4oxJaJ/WYlObxtzraPEN1vhuSBe0qIa98L9FJxw8OnkIa0t0k08wZdU9ayRKnbntCWIJNNLAZMDlX0A==","shasum":"298210ad9dda5a477c1a0bc67a5358491e35e426","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594751079181.tgz","fileCount":151,"unpackedSize":1763266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDfh1CRA9TVsSAnZWagAAtlEP+wRLkj1TZ+PeRMpuJznJ\n6pwGOqdQrbwwfKaCpwMNd8pU9UytGeu6b+iF/bHdoq9qFZgWjH04B8GfTB3k\nS6k8U7zakJtqK11Cn5m2ymc9Bcygv79Caupv0xMsZhlQqz0EEpYJUBL6vjsj\nr74GrK1I7G3k5grggpBFl2zjVo74+v9TsnfxoKKxuswJiT6cGZZKvnBOCu74\nfeWHyr55t+OknsG4WUnb4SUM+Aa+YojyQM8nhWwtwSE+WGR9HD+bZDdI4HtP\nxwswBA50vpUZKBB1l6KTTn9xqeQNlUcknj4+5YiXFQLXgjCI+cqqm2wrt71I\nhZVr4woJWiS1mk9+YoKeNf5cUMptC2ZGjSua/Wqtt07U8IP+xPNlVl9Vn8ff\nzli2e2EAMqjebILX4eoXeVq1bzaYwJ0XmFlC8t6aWDAGsCmIWsNLzwVP4Fuy\n5OyRiza6KCwGBzNT+noWvNpFAoCWkFIobanZhgv8Ae7sdvNZ5H9sPV792X0m\niQmRW7o5fwreJOcOvX0MyWq0Na0mHow/GRlYZTSAmcBKKyflrPjLYW+delBX\njlSzRmsLcMBGE2czl6Pedj14TYRcLBfLc3bX4heujItY0kHCk/bRO9/vc6X0\ni11hIUUGIgpi4ZhX+Z0IOkeSeFofqmhhmPVSp/4YhZmRcZuNw+bVSGyQ8WMs\nRWn3\r\n=myRz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEQpQGQEG4q4wW4f4niTxXfJ1kT2gpGzUEHXV+8BldcYAiAN6rFBnVby1Z604ogrSy8RrGzV+SE0s9rwgsWy9+qA7Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594751079181_1594751092705_0.9142774195106653"},"_hasShrinkwrap":false},"1.2.0-next.1594754962122":{"name":"playwright","version":"1.2.0-next.1594754962122","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594754962122","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-KI26AX2fjnRVHoMHXyEzbGinu4slGt4Bvkp79tKRLkTulvsb4HFv+u0QE0rYqstk8m8+lK9qE2bqYgsc6CSb9A==","shasum":"4836325843f9def9c8d88b992a3135711c8d81a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594754962122.tgz","fileCount":151,"unpackedSize":1763266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDgeaCRA9TVsSAnZWagAACP4P/RbW4/dhtoksbNq4JULx\n58xORLmz0U8tKDnKfAcF+0QHwg22yZySz3IWnE7jwT791LtVEjlmS8VlCvHi\ngeKzTGVsMaECucBAXVY4nmltQcg0bdofNwRdLDxuxUFPYk9jSvRhbZ9UI5KM\nBmZvAcC3AI/DyT+X50nLOS/m35zY9J5rFI79sV6mz5mpIb5UBwuhbVFFDPhm\n6TnYHuuFCpMQhZIUZmSfpj5fJ1Jrl2+MUETZmkc/DaqUvL6NZRvbnkuK3HkX\nWV+iKxJNBczuaH78M1F/8/e/zMS3CigsulW5SaLh7N6FfbjpO0R/TZRl3R11\nb0G2qe7C/42t95yci9ft93g1ReLMDVzek3NfUwjg6sVWuquVGFjN7lkyuIJZ\nWSXYUea91IqCiJg9OX0GY1knmxORiy7CL+rjG0hdS9IWHad54SkE84HSpnIg\n1ybcWFYgwu/URoEIZZegx2uKJqXFdGKykV0TU4+zAfN3ecv60wjI4S+ZPYv8\nluLvmjITfO/uZA/6F/squaUOBVueKityl54nLzVHOJ/S4mkjHM47xTYqmXKY\nw1FrJH/jXIqEUlV7088nHTXCNZSmqB08Dt4AJMwPTvAvM0Zn+FTDOHZt52sm\njgIev8EVI+PzLPC44KVY8XruOey+yfTfpoGINP81T4pz+2ALZ5NmitU/fyR9\n7L08\r\n=pjDN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9QyKDdNa6ceugbxV9KRnV+9NffQpedVzJoiwV11ROXAiASyZUETfR6KxsIuHY+3IPYEL+76QHwLxjzKoUeD+FakA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594754962122_1594754970149_0.6578241624626262"},"_hasShrinkwrap":false},"1.2.0-next.1594756286695":{"name":"playwright","version":"1.2.0-next.1594756286695","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594756286695","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cUceqSJUieD9/qy31N1ND0RieCYHgmHbPwT4seO/WlCREVEmM7gTSlb5oJ6ykz9krPKycqU8fVBtm59sXO7XEQ==","shasum":"778f2a28cdb224581c33164c273e10ccca585a33","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594756286695.tgz","fileCount":151,"unpackedSize":1763266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDgzGCRA9TVsSAnZWagAA+XgP/0V8RcwKKECCIZ5af5pF\nluPPhjejB0ukZtj7PgoTWan1IvRjM+IuCl5+HxcwK9NIUjj1HBCf3n0qMbPm\nRGGkCOpNSf97CXCuUP0liU4/q5lENl26kCc637KsnY+W/IZnTVOjUduPP1Sc\n6d+VKy9J6HYtOhjU330BUGrhCMzLYHbrfTs+FswHWjf03qDKlb+uGcfNvToG\n4QZxRFZPeOEA00B3efbUoIO/2bQAEJAjD/dlRS/G8DPEKlmGzFWDdmWxPi8l\nR4bDCpUeeEJ/JpsLWePI5kMLW/Q9WlQLbxtrPDYrwSkD5W1dSU2jrW6v4rqs\nrlz9o0rjnAfNcCys8qpAY3H6ZKL3cjIQpO8qvfU4SnZcEJI+WE8mcN7GFbZ4\nbQ/aXVXOKwaS7jT1aDs3+gK0RQfGRtvMEEfZ1aFhxY0jOhITcy/kNEhCJU5K\nQkwGc3CC7jbyPzWd1lkXoUWpEuyeMrDQ8/Z4NToDz2+dLi0HTV9aJxpkSC5K\nwbNVL6rQhiirhKJYHqhTWTbUsAooVPcPHODk49P555P5ruC2J+0L/mQZGQ8v\nt0er8sdLfQjxyHNXQTEomrU2Blj+gidi1EEE77EKcLXOD3Xm1caTAGNF665p\n4/gmyahkReEYKCWJ3DE1ew56jEWX+IrGMNP79D5lGbbEzVSETJ/0T8JnRxiS\n2xr7\r\n=RzcG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHT8GKBTHiQMeU0khXlX3JN57ONP6pmedaDIFJWNglgjAiEAweq8NIwOFGdRDk8PqTcPYMt2af9AS+WdlZtFfnEFiBc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594756286695_1594756293730_0.10168883106519333"},"_hasShrinkwrap":false},"1.2.0-next.1594759038968":{"name":"playwright","version":"1.2.0-next.1594759038968","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594759038968","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JXdvd5O6/y3HOMwbOQP+lTZExuUvpXmmwb6X6/sY60hGvTfu8FSanYf43ek+GHjcX+VvDQm+C4rG0pKoArBHBg==","shasum":"680d2830a719f8536ae4c331000c2d95d7c1f6ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594759038968.tgz","fileCount":151,"unpackedSize":1763708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDheKCRA9TVsSAnZWagAAKG4P/iLoUlbzd37rCGI/9JpE\nIcT25/DogTxTrnw5xlMFhIegs6WkmHT51pVAXk6liHYUaFqFypJzowV1i826\nglhWiWAvHKI+/8n4AOxiGs9iN854QtRGl3W1cCRlI9JCNua/ww5E4EvMbsvJ\nXeb1eXAAfW8CGX7O6rMbsReNkPrgjHlS1y46O+6IQcugUG3e66SQnyXY1Aju\nk/lyaNPdFBT7bT4CRSLCAgYDS6Uj0jHinfPb7xziHUHJahNiE7KfP0pxTFdv\nsiVQxCuqfZROyx7r4/MtexbjVuLjMWhaZgDcIEFSeZihcHJcjA7ctcKpg7jH\nT52inTfXW3jYXx2MM6gdSmzLClSZP7N5IEU/+s9dU6+7WcDn2ZT7jLgkpfRj\naO3VLyv/eXZTEpKzuuYpRFFL8ldakWJrN6SfP1wf/HeS4wOZ2X2JGdB5vlAj\ndh5JqeC869jrPlI2YyBrP3w5pdfRI1N5ISAClu1dt8crDra8RJ8o1ri6NcA+\nlgI5ezR0Jmo7T47DxZbKHQ0scevSHgj0pGp1822FuoMeanE8d1p71qn+PTjU\n6L9Qf29jz0KAkB7CsDHx6uFBT0sYCM03jSpxvFOAJb2LbqTxROjyu8t+zzfO\nFx+h5uG1CcbuhteFqUrWVycuf9mjqtoMrXKlSJnmiWTE4dnLZyxb8x7PC9yv\n/f1P\r\n=Eu3n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxmkPiaWch2wzQFz9fCgMyzbB9YR3a4IG7tkuSRMiv6AiBXUKBLUmbK64BvCuletk8AcSnpYksag3BpgiaE2mF6Fg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594759038968_1594759050129_0.16113702296776933"},"_hasShrinkwrap":false},"1.2.0-next.1594770801334":{"name":"playwright","version":"1.2.0-next.1594770801334","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594770801334","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4UBPK4yz2atC7zRxjd/WNEBMSgaWidcDWuyMRUIcyyW+9bAW+DoYAZH7paszy3MnFfFTA7NIse59hIzjuuJfwg==","shasum":"61e6097aac5c47c431eabb4e39e4f56b686df15b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594770801334.tgz","fileCount":151,"unpackedSize":1763708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDkV8CRA9TVsSAnZWagAA8nwQAJxlR0n5QROtbpr8CTel\nunayVdV/jS+NhOQCy+y+jOH8Vz1l1M5C+mxqlcULP5sZoXMucFrxqdKjO0o5\nk+GxCpmc0dg+LE4w1fnizgEug0HbMg7j70q35XTjZXCbIqFu2psqsvHGp0nh\nJhMkMx3m6w8HvSHjSRqivZP5hp0FnBvCbLY4dQmBLuFf20zYiSVPdaf4Ivae\nGAvta9IqihqSu0VRYWvYB/UHNoqjM0AzRszXxJTdMBYFU/HqOdgDxJRhULUo\nNX+4WDAmEy6JVjYKQIY1QQsxh+63vH28l26hg43S4OR2yQ6pKYL8lvnx6Y56\njb/00mEykKcumfRaXJVQAdQIohIQEXlq/K1lFmXz2TucOkn6NZHTa2JKSOLv\nXcLhAlMLbDL/rPMcPEqZY4XrnFFe1PS85q3/5q79C2kd2GvwhRTVZHWFcLF7\nuoI6VxGNZUhj6lkjNQ/qD41c06txZ8/qZt1w/NYNWmwgaaYjiMyQSe1xopb0\nmELy462PN7hX2qeNGC78jAxsL8mmxzX9Ezg2qCqmjGJ2xDYAm1x/q+Za9x+K\n0YNnjhMbUktNfXYdq3GXPEXuBjZQY8Zhc7A4SLb1GkdikwQ8b6fFYshm7AOP\nkwH1pGLTGwduawcz9wR/N38KZC8j/X5vpBNWWQf51bmd960oUg3LbZuV6VQr\nYzeK\r\n=iEHE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNpif0QoGgcw8NdYbh+mamWyHpmaYul/2pIwLs97J/tAiEAkiW8W7gSwnplXVtBtxqHQX97PVuvyaqMmTSdhfFSc4g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594770801334_1594770811846_0.8463917442109419"},"_hasShrinkwrap":false},"1.2.0-next.1594776559650":{"name":"playwright","version":"1.2.0-next.1594776559650","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594776559650","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AlbPA6yqlcp8Yba/4ENbxwWd5f2/YRO7ZWNMsoDYkkH8teiRqIN9Tity5St7un0rvYWvHKfHBB7U1Fv+/YoJ/g==","shasum":"7cc4436c6558cae5ff78256fa9d23dbde4a80e1f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594776559650.tgz","fileCount":151,"unpackedSize":1766309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDlv4CRA9TVsSAnZWagAAqqQP/25FgdBFE7n2cVOY4hSD\ntAtwWs8ABljxMNKZFLh16rR6GhzMjduWEWQMFcCKgTnRSs92t8oBoI3XSm5L\nWtPAy9pNaavKL3v92cl+OCWYHGFB68EsHdebYqADCWMNraGXbre46wJ9eSxt\nijuWBdrwizjrqjwDHG6iN4FOGSREulx+1TFDZV7eRsWdeYMDQha6n6IwcXZ6\np2HsTslqQIo0YIXEXu1HGJLw5fwGOJClRkZGFndI+Fu1IuRvxW5IPa/LWrOL\n3R9a3Vk4Dys5kI2dMgYvlcTPyzHhYqFZ+BIujdKlh8mbQK4gupvKUZ/43g/p\nvsBcJZFUlYhxZXt45GBqj0OHQfMmbQaQCUeso137EhWKsBfzTsyHNaB3z1Jk\n5MPfINWrkCOdyeauDCAt1OX3OufqkJiJ6xA1KRqd02Xcfdsk79y256TV5WfK\nMqBU+matwLPlhJQ+n7s4NBMVJ5WFGhxdsAR89q5yD84bgYmmPs0SXTx71hzW\naLJlnxeM3YGwnMl2wT38ZHnxJZFsLeGOKSihNnbUuSrShgALokfh7lNOpESU\nZtXyZBBcC8Nk//ImqdGvpBqXkKD6OM7S5B6ZpBG3mxM5jrihI2XwjCfQav06\nV6TliTJBP/sf37Jtl0DnFB5nw7M8MQUeo6zOzFhQCkywdJH+JSASvleai6Yr\ncLll\r\n=Yjgn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH1MMI5W06n55Ajki59GuffOsISy884v31hLN9FRMfAAIhAP1dV4TCWa94Ne/E5ZVI6ClKQl61wWnId9UM5QLtpaSZ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594776559650_1594776568151_0.576350545463491"},"_hasShrinkwrap":false},"1.2.0-next.1594786961271":{"name":"playwright","version":"1.2.0-next.1594786961271","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594786961271","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nifFu3hYS4mHi6XiZohJ0OvW9PcEhpzoLJJhbcARcWHM3sGTDqNo5jm5rfiK+vSbXAt+z39kO2zYsfi1Li+fNA==","shasum":"d8653304693b100d215f7ab1b4acf5c2568d2362","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594786961271.tgz","fileCount":151,"unpackedSize":1766309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDoSeCRA9TVsSAnZWagAAwiQP/iv/kCe4LFghE0smB5Ln\nN33TEgbTRSJHn7GZuqcMo4OhWKVjrJ9Fq+mhYXBdIObWYVwnqd1/Jts5hWAJ\nNoz29M1lVxByrDejZmhbblDxEjz6T0t3/lmG92tL5vzrDWyvD29lKVWUxB+E\n0xBchSYAmwZf+iuFvn9UzE0IHKPzZekdeqRxR4+SwaB1KLLfS2PUDNTxLOJx\nM/UtmZqQn4zfTpfavUGNP+SN1bSci2AlFSxxpZOuTIR1zXLSEmhpo2asHd9i\nYXZQxWvZiNGpOXjveW4PKvRPJGLt4rHLop6Kro0sAXAR/HWvjRVCa2gbHUU9\nHsQpTwZ53+DPLsw/zqKoov1LId2mzMnwcFk8k9eUj63qXZ9lMKKEl5naIU/B\nDroww5x/V13mwRl4QvW9TzQ22H0eph8wnBpnavpRdDyFoyl9O1JeWM0xoI4l\n7S4Yqt/cqXG2cGqqIxPoOYwLAMcLZwFbcKC/U2oYIju3C1OLJdS4XgVgTP4U\neKtr0Ivl9AMP+9/4tW38g928ldbrcgH6PyBanlRmHdUuKIlsQ5fzTbG8R2sF\ndpTMDHdiOlIVWCEaPG5YtxGgwmnYQha8ZsAkBxKvefhydQ1XKHRsSozMZdWB\n59fJS1sa9p4ll7AhDt2OcYYny57piWtbZzgY4IownfsgZ5hwIfqEiSSvoEBq\nDRqe\r\n=YjcF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBa7fdzPXrE3Mfy5Z2HER226Zr0cmPLzL8ZI1G+5my6OAiEAvIJXdT2/K1evTGZ/zv0frImAqM8FlOYMYxiZ+YLG3ME="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594786961271_1594786973658_0.6297692557190948"},"_hasShrinkwrap":false},"1.2.0-next.1594832515553":{"name":"playwright","version":"1.2.0-next.1594832515553","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594832515553","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Lp/N/4iJtQHlC7Yr1qioBczT8PFZPWNaqWufk6Lf/i/N3LyoeYWd6uHPNQ2YRSUbAQyVtwP+udL8HbpLROAK8A==","shasum":"9821279bdcc22c22ccf6d0c1e757ab78b801555c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594832515553.tgz","fileCount":151,"unpackedSize":1766309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDzaOCRA9TVsSAnZWagAAUygQAI86wkwplznfQ41lksG9\nwWp2en7fn6dWDpFJj4CLZx8e5GKWIaQR+K0+Qd5JUCEIZLRCRMoKg1PTYtz4\n2EdxWxf2hiTkjFlC98yM/ImVKnBSVQdUjJnS1i+NFMXx9dSHM451SojgCs/F\nJFw10kd/8uqLSnslHRWI/QkmwGVwHN9RUy7d0Snzp57erixK7oPAHXImVer9\nthCEQpVQwUn7iHxNSPqTG/e40s4agov1W5cWJK3cddoB8KL9BY6ZtIbqRAJS\nTFCkCRomB7nIOhDPiSOjEcXDD70rzftU89wj+Mq9tVATiCUKLVDTs45khFcq\naN80EvXDxfGZ2LPvaFJ4ygRjUZizNlvrYj7dF7owqYfjiNKRTvnVpCD54SnM\n83YQulVPhwWARUFyxZoepX0rEruuEK5XG1+mDAeKaBmBx0qeO6cICx8mofuY\nBqtDuTrR0dJ7+VdaOJx5uw2e6cyjJOoLuFsuFUqUZEzSLtWP40gaOkoolRWk\nLehhuAqr+9EMQFQ9XDB1K7EsSY92SXOkk75Y76Ebn/7UbezmsGvJ7Lxjs3pf\nzwpaL3T8ZjeKZF/TaVMpOj9E9p/W+4/OIKn45dcIK6Ew4OYG0SsThfnK1Ijt\nGjGMNtzVG+LvkLaTog3dLeRYTPpQDpdIjfMMM6kpvl2w5OGkDhC1OHk5146r\nqNiw\r\n=Q1sJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGLVHvCUzIgPXkd835HKO2/SAb6zLwGAjrkck741K4KwAiA4UJr0CW7MAjJWjaaULtaGofeURG91O4BiOGFOa6ZXWA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594832515553_1594832526041_0.2841872382263093"},"_hasShrinkwrap":false},"1.2.0-next.1594836473982":{"name":"playwright","version":"1.2.0-next.1594836473982","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594836473982","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OlryVJVVDx2qA7uWoFxvKzqbMeXebylTOnVYFXY4R8PA08jKVGAHVtqGg4eTaBonG1lnO2CoZNKW4bRhH9g7Fg==","shasum":"f919ed1705e6e1081f117bb6d8593748d9bde717","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594836473982.tgz","fileCount":151,"unpackedSize":1766309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD0YECRA9TVsSAnZWagAAwVAQAJGWuylqNQds90eRxl1V\n5uzvqJI/YUFwCOMink6r8gcWZ+oR7IdHpPqAqBeRiJmCfWKtezR+XtWmk1QL\nbWxk5bpm0Qjkk7Kd4DRpDeg/2xf9rz+V8dRj6vJAeKcMhFSEg5YRMyT8jdF1\nnt4Lc6lbQalOMoR5FxQ5Yb0u8K+vi0Z7s18eO8GaAbXauYHPFy8nXiz3XyaH\nHdzriNZcL8WAoRz49Xzz5tldtlVFasDnlhZGZIEPitNNfCmOhQnKRYnLR0V5\n/5GVSw2p5IPVg6Z9soNi6GVGIeb6fgITHQN2CvIy3QJk79OTTs8Q2uSMRnWS\nuZiTIIOAHR+oKRHrswhDUDhqYBg6kdTDYU6dMN7gzVNs2Onm5IkyucxMjl5R\n5wqhhPw2vc7cct9wxYDWIoOCCsJ+70s9aSWXSUN0Lx0mhupl1CA5VLtDS/Qa\nnh2Ye+VDOZ+Je9H9qFuRcG9FeMThIZPhhMMJyHjlEev7QdqBzVdKjFa5xZlG\nCewYem+mnJ2pz7Lxb9jjvXLIeejoPgic5CPAgclHeh0m90XT+2Ee9pJQdiir\nqIdeoBILqXrtT0BM+txGuZ6tDESu1GXeol8Qpp0GGf21gXiuJG1Gb1+T63xY\nHbavwSkG+qdTZSCuv1Zqg81RQuGsGxR5EBYFCWO0MX7LZsW9kBrQ+xJ2XlZi\n7G+g\r\n=oTZe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnccabvOJnhXLyx341rtOqb78sMet0G5uAUaniVa4UMAiEA6B4M8ckGbidfr96ssBs1xl4BSJ6Pa+faeFQSx9gyZJk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594836473982_1594836483478_0.3252131662552533"},"_hasShrinkwrap":false},"1.2.0-next.1594844643636":{"name":"playwright","version":"1.2.0-next.1594844643636","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594844643636","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mwG7TwYbeCSHo+6hGS/7pCcS82TSLOyyqBIPh8D4EISXt69gVzlBG57SS5rIP4+aA9CCr6EgbsXask866h/mag==","shasum":"b66078d5d1b5199afd293c34d1ee7f3dfafdc17d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594844643636.tgz","fileCount":151,"unpackedSize":1768085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD2XtCRA9TVsSAnZWagAADg4P+gMC9IlRxR09NkIg9oPl\nxrP/hgmejbuFPgn657lol4UCMd8oEMqWb1yMPQt3AyCFi7lRR5xlcvGWEAuG\nF05AQymLNq+hYeY79viQ0ttY5tXhPkVVz5XcTyZFsK70VncCFgvl82DQafqr\nID5CiIjWqUBocujbzu21t/LsNWuFgfU8l3StqZueiAdsHeTYteTn6LaQURYD\n6i4oBM5bUuC7vDWDuYTCWv7m5hjBjP6WlnquJJuQoTnYcH/ECeFjTJYilpcg\n73EP9yG847TlMODtKeG/8jhscIfv/9SlIq97EOWlIgNzrAR25lsGvU12dFWH\nDktIl2VF1mvyMIC8RXHb/XfDsfrNePUTyoUa4qkwlBVuqLRdmVZiRBqQafeT\n0gayUKz9n9iAFp7htj42cyH19OLD3TWNcEVb4mhYFXYCTQFhPLXM3aB9Vbng\nO7B7ZXFQ5JKJTz+qQP+V4uCkUkcM+j7lgX99XoFkxz7FCh+5tMGiVqy34SkW\nhjtLw3WYAtBvQkktP6WT9ZkOh2zDXkQ46SnEizTQ75zdjjVrv++c12TDMKFI\nOvl0mnwbUckQlOvUkKV4UPuOpUiG0X81l3psGApsNcwTl6ZHmE+feKfzOeny\nG+Bs71HLeOcuVVicuGkYJ0+GQ9eq2f9KxjOnHgCyx87JitHUHGsjdxQ6Wckm\ngk6d\r\n=lTN3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhylI1jM8ZNok0LRKPwLsrZ1KVbam3OPOc2GX5kTkRyAiEA/wT4WS7wq6Wbj7CynxViUVNI6hMDS4g07cYI7nK8wIU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594844643636_1594844652889_0.06102954931335125"},"_hasShrinkwrap":false},"1.2.0-next.1594847225176":{"name":"playwright","version":"1.2.0-next.1594847225176","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594847225176","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-7/rWjh2sd//5dd667kjtHoGdmTzQ73ODnor1msQY0IZj+rB1N4+yQAwAuT2THtjBwaSln8GwwZIp0R5nCl/Uqw==","shasum":"7ee2d3103f960e0bfec3f3069187cfdd90843e23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594847225176.tgz","fileCount":151,"unpackedSize":1771434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD3ADCRA9TVsSAnZWagAAn9oQAJANX0Uj2tQyj3oofd0X\nYYkp2+rWJXY2LkqCDtmbx0tfR+8ofEDceEl6yo28XYAlTaJeW2pI8wchrVkq\nqkenzDtrGCOafWEqrviGLf3RdVyYIBMl38ym3SoRKDX4pCkcw4BOpPNHxxK6\n0iXJJ4OVI7ZguUiKXd0SO0s5+60vZGvPvvhs7wFwuON2tRDCk1eMiAOn/3h7\nWbucRdyuHTA4W9L9bPo3A18R4+SL1AmqfsAdua6Iw5bHiPQZ0r4e5yBMU+XD\ngApLQjuVirSr2wp3KNV6tH1srxOIzUgCuZvwtk7ccLQxsnfSlFB9ybBecFGx\nSbMr20x2toTsT3KQ0WlX/sEQFtfUxU8kQl/8RraRhiVkJeIMi3PhMJp5HE0m\nHMLjdHuOHLjCAX58OLzK+a9cht24yJvqOoKG7fEnFyVqvYoW9M46EOVbT1mp\n4No6zrCo2ESdgVDeqe4XRsIlh0FkmHfSPNf0axzcHLEzCWwvV+Ur3YaAvXxY\nyVU2I6eLHZQs++trLE/8b/QLLFzeUd7GI7P2KFP3a0td3gTxiMXWG7NXJrNa\nMbgdWUuxWBWQZ6thk92YidAG9DBKL68NBC087CUGBIj59ZivDXAq4NYUnM/e\nAGBjRBmScCGID5UO8USzhS3cdbqL03XmCB2LWX9dYQLZnNDrn0fsqYNRHn/O\nDQLO\r\n=z5Lw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkJYK6nI9Z+KQhw+sPcn6tjG1EdPCPgXTerWY1K0o1+QIgfo1Z0TqAm4pdO/EHjMsjNNglDO/hhvBs1DYMfq9dauk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594847225176_1594847234590_0.3178603485572684"},"_hasShrinkwrap":false},"1.2.0-next.1594852020048":{"name":"playwright","version":"1.2.0-next.1594852020048","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594852020048","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-G665Cu/EcaVvf+Qb9ssEbgvTOtQ84UnLANoXHWsw67cDfmQMuSanXV8S9V5HSPfjxjsT2uZv3B4J+FLYLCjmnA==","shasum":"9c1ef6ce68d99bdd9e1cd9d8a9384ebebd388566","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594852020048.tgz","fileCount":152,"unpackedSize":1776038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD4K/CRA9TVsSAnZWagAA9akQAIIFG1q9OQ3rxYKZ70pX\nMLjwgJlNmsu16Iib4bYjXAG/pt8u4S9vLore/1T6tSPyuD34UA2XvyvFuRPf\nrKA8f8BoxIOMGnjUS5dlg604DRo0yTwV+wAIOxC3qmsfQwMl107oGHFhg4S/\nevfAuMzKUtoC7H9w3CpEE0tH6lDDHn99lNHRi9cAUIucjuEA0xteA+8GkqhZ\niJMZsWTIb7YjS0NOQm0Ck3VCxiu7KaUuIPwGnNIV8sBoGfCUaZmb7grqVT8v\nzRSCHP1UiPgkk7wZQUkifSDCXSeHQifoUE3PDKJ0xePIch8qnulA1fmTrN8q\n/NoUvkU4tqkhmVm+kRkhjdmn5ik07LMRqRQGQBampW/M19tq7HSurtub74J0\n/b/ry0/kSb49Nz14uuqkyHvgp5WTIJzUg6snBAYATptB/DWMDo8SzBoIt8nE\nQ5t027K0RU/5lLTEJW4st9SYtRAUwQMOaFVPD8u+jdQJrVSYRNQHYOEbTdJE\nGMwZXqafNFUWfDYpTwtPdt4RkCpLu7RHsliHZ0beXM2MyeOj3FoDRc4g+ruU\ndg3G8KiSEtIKeVfvWxf0S1XOl9mI/sRKOwZfB7bmr1n9SJoHfLGcFlGojrkm\nxUC8VzLi/52tVQSVf7PKu1bAbH/KCCdGLc6fYD+VnT3FARXDlVj359gwNKjY\njL+U\r\n=hQvw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIulmMccNf92M2M/1SwceImwZyJU99bHzMFgtBYyGgogIgNtewaJe8M1RFidi9PiL26LIBotXIjYoquTRqsSx5Exw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594852020048_1594852030251_0.48505165326929056"},"_hasShrinkwrap":false},"1.2.0-next.1594857341676":{"name":"playwright","version":"1.2.0-next.1594857341676","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594857341676","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5a4gciy6ffF/q29SxN0guE2WjhaUC0L0k20Nt8Nf75IQMccLIBCQjbRC9Kn07ExZQwUo2k4NHiUQDOvgQwr3Zg==","shasum":"0f907c10eb1d9f1d0043f61e154e279a04aa5e78","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594857341676.tgz","fileCount":152,"unpackedSize":1776038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD5eGCRA9TVsSAnZWagAA0FYP/3f+14FOYy8nJiI//EQf\n8TY/9EzBoT6/ji/lBUrudZJKkROSCViTIbRFgr6xNjEq4vnWz1sma+U7fkdu\n6N0nW9DYEwhJ0772EB0gXuCuWprCWPPMXIw2JpSlb60buJGGHnCb9lB+6XCz\nObC5aeZO4b5DgwG8XYLegsmjx32SKCHpatVf1VWeD3WFVbRby7mEmpRtTVeP\ncqO53iJnlIfIfmQAooeH2ftPqIaNnzhj91mQvq5zQijR4C/GMKrHJMvSm1jH\ny+Q0UcGbetR7k9gw6TFjs5hjramleHvfsrVuU7TpUNna7RtHxdO5FZVLlDuj\nJIXAA0LrjA7hVYB9stt+ENoUxZ0RM/U0XEkVj99QBG3LodiXa3MYkGpubyH0\noflInhddtxA+5dn8k9KzzwSkgB9Ti+1nEY4SI2Im52X4P30IRr9ht5V2qMCf\ne5ZKpiI60BD3Fj+xUzqJ7scZ7JG5CilP9wQh66+UT7tHVUV63NbcJx8dScIf\n7RCy2Nj+2jWcz1b6IBb8j7qiKH3sPrb4he5yAssPRqg7TaHOXFGRuCgkcWyf\nTQ8tsTuqUzxJWPB62sEfFa3u39Kv2HWQzkbN67useLYssHXQwr1BtoeymSyZ\noviqwsrcLMT4Y5G6lTjAtz4I692BcANwQ1zkjqUc/6eyloYdc6Vx+rX0KCQT\n1afS\r\n=Nr5O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZEMPvzF1vB08Xhn2NB8aV9WU4Xi5gjo1xfP+ex8LT/AiEA++VIvu3W2cNFtvuHTqJDX6XE/3VAq4275Wpm/QYMUNI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594857341676_1594857349533_0.58713960353421"},"_hasShrinkwrap":false},"1.2.0-next.1594857692828":{"name":"playwright","version":"1.2.0-next.1594857692828","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594857692828","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-r3Mix/MkhEROiTzvs2xgy5IuXomBXn7IHlIcfoAYQ0NG2B5L16Bwdepldol6aMPJtXOAYEs3HsqNmicOLi3SlA==","shasum":"9b5a51d34b8d39e805912d1d71bc322538d99077","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594857692828.tgz","fileCount":152,"unpackedSize":1776038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD5jnCRA9TVsSAnZWagAAAoIP/iGC1ynZE7bBuOfwiByA\nULfJZ0i4CDGnARd9OuOumHYBTAVjwKDLaAQYAYvlVYtFQ1LarDmi4UDRDNGf\nilRxf1HrqBrNrIVllx1IFgg4omMVzMZgz2AFqpGfuWThW1b0TyQkcZ/ofdIe\nEfuyllEMLA1YooU1hyC3YZVZmaRMU1ruJirN3iQqJYJ4O3v82nfVNlfHdiWq\nP0Wu/aTBvGt94TBa1o8lHlhfRM8LjcCWtN+n2mcbAhmUUwCEMKlie8wVNR3R\nwoie3oOQhYZisj1Rl/KPOHW0l2GierJ8Bu/ux8W0Wtjma8RLTYVm7wlaO3PV\n40No7ThGM+CNXUvEHy7BFBUQSMTE2ZkTEDXa+NKARP3MM4qLr79QVGRUzCk2\nnBxNA01nclGbFuBacLpxcQD4KSmTX3a0ujkmpcOuBqIeWeOq//jJxwTWeYAX\nHStJXbuiMXzm9GOFsiZsg/YoOCsQijyLgT8rtm5L3ldSDcqSl5jHItgxVXjy\nT3bDaM40WQj4P3oopYIJJCG63rwHlwLzyYtZpQ/Mn9+7fbtA6R/u88UI+ocD\nT6YFcf7el773XExHwhRsq1JvIdmdu986UMSfg7fE+Bkk0S/xjgXLd3ukBEF1\nZMfqe1pkGw83DpqeGOYszUx7GdTz7YRRe+tW2hseoEgBxltaNzjE0Opl0KFk\nPwDy\r\n=Dniz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+Q70Uzvr+JCDE/tHPHoq6iC2L6fxVQDXXcxrwRm8iagIhAPDq3XPbmQLO65zcb4ejRbHP/2rfgjz9apO83hilhCMU"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594857692828_1594857702999_0.8137681543006945"},"_hasShrinkwrap":false},"1.2.0-next.1594858707879":{"name":"playwright","version":"1.2.0-next.1594858707879","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594858707879","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-n+XbdnqbriP+EO19wgDRAo6hWSroVCuCDQq177yjZ1U4sECab44GrlqkFuQodaCqaRPZHUnMDh4VT2bZdeh+/Q==","shasum":"273501fa2b3e66bb5eb4ba4ef34f18fd5cbfe30d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594858707879.tgz","fileCount":152,"unpackedSize":1776038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD5zdCRA9TVsSAnZWagAAGrUP/iyflbpMHkybkk/Wa4iJ\niiV/28dc3JHBPTicLOsiObIsJ693oOFPSOGViPeVlabN11a+vPfiqoRcrpng\nY5BBCrjv2cMvUo2CbD4pR8XWIUtGeRZsuQHC+1FamH7aWHw0w5qUnERYnHwB\n7Px5jx/pRFezNyhqFjkpPay3Tf3zA/k+SLd1qfTwdHM0h3Ty6jleb3ueAmVw\nh+y3sqpCmb0qh7c+HNrEyLROT9RGeVWniOpZsm7ATHeS2m6fqEcnqt2IcTqM\n9xTmgEPjsZUIPUPypBd5Ln0NwcwLhwxGnp4ndwgC27wQQf5UeBJSSkYklqSf\nOfktCZWE3vlnJ99dAo1kpD7Ad95ap0Vvjs+u5NI72QaXP6TMUebVWXVxKkYi\nsBMSdkmrEsf29ZXGryuHL1p7TERp3XWuqx3Lz/mPZ4I7+qntq9e7U9nZ1Wnt\nz/Qx0I21ZM/pt6Hw80zKEMY6NhY/7FtIWlOXPgogQhBvXXrcgiASGOBiMpPE\n2jbFxC+Gq0VSl9g5xndS8SLEq5A0XdWllz/DBQTnHPuD9CGXHSjTiszttkHC\nfNiOXaefIq9QgpGn4UW3dMvV1RnfEhAaRKAOeYCls2yRIb+sQVlltYlGPDa1\ndhqBaqkPzO+AkFPZkoRU2dyjjlnY2Twvu3YKM8wG8pC0tvcdFbFtA680tKEt\ngJsP\r\n=w/pB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXrRB+asMR60oedB626MpwBeB6LhoRrqeTq7dPgweeNQIgazW+zJhQSowtjDrGgcTNmWj/30s0FJTKp5qSDRP2b04="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594858707879_1594858716567_0.5963348014712542"},"_hasShrinkwrap":false},"1.2.0-next.1594859008723":{"name":"playwright","version":"1.2.0-next.1594859008723","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594859008723","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-yi2oaI4RdqisktiTe/5/9KR4yQUjVcN0Cn+WFAz+n+pjs+VxfrhVNc7wf4RFDeErUawH/8TitZyAcjuw2qnUCw==","shasum":"63bbabb9f9ebd479d525604bbf0096d3b69efd19","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594859008723.tgz","fileCount":152,"unpackedSize":1776038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD54JCRA9TVsSAnZWagAAZYQP/A1iiWpylx2nkGXKV1wW\nN6hkaIN5eOBvaXYDWSswidx7iz4V30CKu+cx/f2PUnzVl7zOHqzWyUhZrZZx\n9j5NMcyLxejpIRkw02N7NqkXvOt//rC8nXzMbZCBS8DrBkO4DKR8Hcmze4co\nOo4WrcnL1ItV5NpHJ8tgkbpU2T3ntEKDAYZOtkZrDwS6UeFPDVQMQGgK+K4K\nljg00R22xR89GdlfleRtP7kRLPaXoMSh2Yj9hm96VE88yEOBz1rcwKv6RaO6\n6NN76BbcnkewMCKis7SILVjUmW2dxXEGBNJCZ38rq708qgmIgmjjoB0zHlwX\nGMsUQcnn9ymxWE8tIDMF4m36L/pKdInIlvDGvGhhzVJP34pE/24ILSA0zAzQ\n9TAyvXVDChrtN8vU0Qmf1GpBObPWRu0MqekqcrfTmZ1N0g9Y7LwI6q2TkDXE\nKaOe5jBhCW9jImtpr6DYp384ufO40kPY9ZIs++cjntfsqv6sa9lW9mVbKK6v\nMwU5/ML9V/Q2CVQF4DodRbCG5E9F/gVhQe+la9xMmfO9F05GPuPwkdD+wix9\nRqfTmLiMJJBStk/BeP7Lg6TIU/kCeyiEhhEdB+VDfcXj4Vt/l3yU4vxOuRi7\nJTjedcjK2gWYAI9VAdhrQSeW2suaa6XUz+yXyh1ToEe5vSdgnXum/mo35BYW\nhs1A\r\n=DK7d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFGzhzUfOXf0iWqQdySNfM0v2kdaMNXl957SsfmuVmOAAiEAhYqu9oKguJZ2JOTNEl/ocwPc+nU72oFu9dayCLIYFZs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594859008723_1594859017416_0.40559470861589153"},"_hasShrinkwrap":false},"1.2.0-next.1594864351248":{"name":"playwright","version":"1.2.0-next.1594864351248","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594864351248","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-47uSmbCfZRX8a3GM8QlDPs3kXxSuEv3BQXoZje9o/LtQQ0IVwEsvlO7bWYA7BBVQ2GsivXhddO3S+FVoSg3ZnA==","shasum":"b22e2c70cbdb5623ed83c43db4d624dfc5abf238","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594864351248.tgz","fileCount":152,"unpackedSize":1779491,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD7LpCRA9TVsSAnZWagAAVBcP/jw6vpnEmnhOscgevZqO\n0LEZjhja1vi3gdLnJq7VpYTamJCxPcPY4rlkobvJY8eOfWxDJbKj1aIJo/GH\nlIP275qIF0vh1SyJIgvbQhIQZw9N2JlSrKfyl23oLid67fuo9VLhDbzkncnd\n9Tapf2tXzsAbgjLCamaawcBZHCuYutqdgqIFLx90yK10ZDEQjusr09Abxjb6\nbZ4GoSDDxfRHxPwx23GTuA8LondQmk+es6+yjkIKeBjU266u7IZEjRhFkPun\n8nQARA+WfzQQ1Ys6sxjyLmEzV3abf+V7PQjB19e5TkYUGNZffgIA9X7ZXpRX\n7b4twdSFyxhZYv/Z42lDXM6Rqdtjpqf8RUHspDW4GhW2bIQdjOlE3jUqJ3FL\nXsb3M2y1AHCrMLbW6hU+1vItYm1u9/WoYn1rSUsvVTFreFL8wQrkoBXh1dL8\nYc2JjlzZcTM80cgX9wrbH040rmmivfY/uSiZH6F9obIQ6Yjg3Kluw5up9bx2\nSAD3kEGO25+PMSJG/kgDXOTbqY8mflg5RJH0NpyAsbaqw7x8z6OcRgm3CQOh\nyyaMBVLcWQNelPQA0fefce9c4NKDdO9jePjgmWGo+AhlwTxD0929T01oB1Zd\nZYbMns3B7LxWjSqwPMhu5et5M5qBMoZUhz5a4BXxXTCJKu+iXA4fkZixTU+k\nVLmG\r\n=O3X0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8H4NfBj7bnetkWsxCnumQiysamZEHOfPOjDHsVA9ONQIhAN3qEke+SbelX9hMlvBtuESVfAQeHH+n29bSAZsJezJE"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594864351248_1594864361079_0.19227020385821136"},"_hasShrinkwrap":false},"1.2.0-next.1594868853578":{"name":"playwright","version":"1.2.0-next.1594868853578","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594868853578","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rrUFn/LnrC+u6VxTMlRkA03G9pKgizfAPoxcM/F6GRJUEIuqxM1e1bTWnP5DoX8I51HeDXCTGumsGT4BYA4fPw==","shasum":"3584714cbc5d75a21a1f8cabf3977b52bfca6320","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594868853578.tgz","fileCount":152,"unpackedSize":1779615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD8SACRA9TVsSAnZWagAARxMP/RmR5LIjP4f9mgJkm9N+\ngIZsNA4gEbObu9UZm8u1Gy2hBtRIXU8nisvucrBWTfBchcGIALplLqnl70Bq\nTegKqzAQlpnUpHZ5yDto+iccB9GucpeLHTplkJ9btpwdiaX3pU3mL8H7MCXE\nov5AGfkLgF2Fj5Wfdv7vPMAiScoOrDnQuFMWDP+rMTSRl40kCjUbhlpMrfbf\nLuxgEC/eE24Z42ehNbdpJt0beomwVbp4AEvRvb+LXcNvlWHEITta3cDTnjjj\ng37mMqRhZZ+lneBa/uKSuj11PQXy/4ozay/QPzFPQm53LyUXKsBNgfgG3fL9\nQ+SLprrr/51yHjKAeXKew5tujdIFRQeiUQihW3ZBP+aoXCzIUMap1wYOvTMy\nEQGZrnNcoNMczDUbEBtel0d0Ty25bVAB62Ctwcius+7xtc79qHU0L2yr0tvU\no36kYYzIWOwvfO4oaR6XCxdwmlmjaoilT1iTK5olBpdGN3FQ8jbLjpsAwU65\n5+FelJ4hxo7cImqqQ9XPjYST+nAdb0w8VFnkC4He1l4J36rorb2/lu5YLemi\nGWlZLsllcLsi0aJ9jKTUDeMiacs40xERTgqOG6d3XLN156FVeLwrSoOIc4g+\nylserUxaBLvTTwfPP92EnVcmar4l1R2ZfSucsdr3vmqz/W58fIHjuU3RTEj4\nwjzj\r\n=LYRX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlr6VWjT+hVsrf20gpJoYsLQp256aa+IVn/T14D848iQIgcUaxD+8uF1dWjKO3ooq8ESIh4eVEBnynAZV+j7QMng4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594868853578_1594868863742_0.15339634923900025"},"_hasShrinkwrap":false},"1.2.0-next.1594912712336":{"name":"playwright","version":"1.2.0-next.1594912712336","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594912712336","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fbETHO/vras3qf1MyyhAN2RKdpRm48mhaigtq5sobeJXbu+cWZcOSZBrUYAa5qOmVrP6y4bFBGjuYv5bibI0hg==","shasum":"efaabc6b90818a18192d2605b4b8e8eb581362ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594912712336.tgz","fileCount":152,"unpackedSize":1779615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEG/SCRA9TVsSAnZWagAAveQP/j5/v/Pf7+NMU8DfoOju\nPaofhQLz/beB5rM8+shK7sCO8eAWVJej5SpPzedRw0smwc8ymYNwyA15MAPI\ntcXC1mHuqtbdngN8rMH4FNW4pudotnFoQRfKcY6sKKkjdmHWccZS7hErx8DA\niZCmZ3sWq62eNIsETPrLc0Amn6gov0Uwarn1xH/K6XwGqDdtN4BPhfBdOlIv\nfzH4h13wZyR2o2DpyHCFVJ9+Xd8q4OUmkck8t0m9EVG8EDhbbQsO3ndv//bo\nXd0KHpWu9fluu4/ADlkhyOq3Q3HFcRw9DZmHcE8xzDzZ21h49cnPtyvqzF+S\n5Xnmuf3nVRGZU25BRAXRhiZI8RV//ceZlHdKK0aZYzX7Q5Sc3P/Ro8mNeyQr\n85agEPBbBvqecAzIcNPzEmYn4TavRnV/4UagsEfeM1JuNQNzHC20gMDXg/T+\nD5kp3kheNz7/MXrP9obRpcHokvFH0i+lujOV4AmrdNkLzht54VMMPcOj+6sR\nukg9DKrQHyRPCrZ0ZGcuw1O781n+CdWe6S52mtJ0Hi6fE2dmrzRja03jV6Wq\ns+xnw+0+XOmnbg/9mFwliphD/GdCasiEtBedC/B/MRH+yEUvjxggeNrGolbL\nnnNUUih6nUEPCeDhNzeu11Lnam+wbg7QilIcn1MZoSftgJSkwVh4UMYwHxaH\nmS6a\r\n=wiT/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzHFzrWeyNzjFdExLyfkE0kELpx0d//DduyMN4bDzrwAiBaOwJkfn0MJU0+OyA4wIPQVsrU2fGKuNpxgNmbGYtMOQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594912712336_1594912721798_0.8027261221271376"},"_hasShrinkwrap":false},"1.2.0-next.1594920351891":{"name":"playwright","version":"1.2.0-next.1594920351891","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594920351891","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-IOd6S3F3XIOudSw5Le0seGgmLbH9akMq75T5hSZ3ewv/s2WaelhwhxNRRTksbI+6V8bOAAO3HUmg69ptVfiHkQ==","shasum":"0065a26be0d2fe27fce87f313d301e9fa66451ef","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594920351891.tgz","fileCount":152,"unpackedSize":1779615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEI2qCRA9TVsSAnZWagAABMIP/2aLd6A2YwoCZTLfc0lu\neL73xwVvSdIEK4ZbvLg3JKtRQ59NGfvs21Ij/FygyknL6yNpwTkJN2DguhiP\noYymNgSr2ftJOedb1xQNLroXbK1VFRvvxVkLAeT+YLTg4/hFMrCz1OHzka6x\ngDYdNaKdzAlhoQvrIwMtEobtT1DXWSS+8LM8wpxzubz40qM2ZM4nPff0DuJZ\nUQ2/K9Uqz2IlTjMbHLoGW2H+uEgCl8rUS4GXad/SMdI21qO2hBpnd2GxVvWz\nHPhIZcDTVA7MXODOPJb9nvNfrvhzPg92rU6hirLQW6kSvN1GH2I6U72CDeBp\nHV3KF+2NQDcEq6nvtXn7dVqWNm0+Y0iaFWIe9SZphSW7lOCjBND3mCG9dhHw\nR7rAEjb5GHoipEqSf7nD0ymq7WqMy/6iNoAij2Z+PXZv/8iVqnOHt8A87IJg\n5ImWt6LGIxyp1yKgQex7EOshBFXnLYtjuvETOfvJ53qAKZ5Z7W4kmugFmqdb\nAuJOYNsFvEIfy0bPVuK/UIa1SkCTz04yC8GP6ZWec+KSc6quvXbcTOsOTGjb\n1ARE40hT742OMZ81qehMGbN+aNBKUvC2shKnhVNRjZshMSfMMoM3YPO6+pjG\n+mAYCTvTqAzYXKddOer0vFhOQA/qAAZC3mJgTjc7IP5L05BZVwM5IGkrNsDU\nSAL1\r\n=hVfw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEn8UXAVGdyAfQFOV/2ZSuGHHfi6D1BtGB5zAT3pn8sWAiASoixKoFXcgqqNJbFK/BuXx0bEbBBQXyXd1lML54riWg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594920351891_1594920361624_0.35133940456578894"},"_hasShrinkwrap":false},"1.2.0-next.1594923647118":{"name":"playwright","version":"1.2.0-next.1594923647118","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594923647118","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bJkgKMWLDrn+J8QZgzJOJG4YpsUsyYbxtnKmw7PdC3ko3x0cbL8ziWXP/LuL/cU8BEN0QvpyO+5PX4KwLZ6R/Q==","shasum":"da7a7116b4b7787544905b9ad1333f42ddeb7989","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594923647118.tgz","fileCount":152,"unpackedSize":1780065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEJqICRA9TVsSAnZWagAAwYsP/2DiHn1JvgarOxVyW5yN\nJboembMy0p8XKavDVBcy7LOBbWssML615PEaAgOSH9CrN3JQZXIENEUwjHzt\neFUBam7i149GZVADU68WQELQkXbq379Rm78g92L1Beq/Bk6UBGoN70xYRhAY\nbqz881xQ+BAbeQe9sL//2WYgV1siZM3Z/N9peekoX248MTsoEmOC5DT/Mshr\njOtWk0BugsvIn/8N+JqsUzujG7n4L+eKcORRXQn7TG2o0FuLRMuVqJA3Xodj\ntYRMbatHNgqSyNQ3tkBDChvjeD/gPqnINiw82MRS/ckN4F7biRJr95yeCSE0\nXc3216/GuF9eILCtNFV9spTXBJMyrTHiUkU4arGifyt1Pub8pKSQaIrnzpcb\niIpB6tFZu2ccbv+xIZfTlSiB1x4SMDLWuyld7HuC5rUKubE8vDM1+wGLXMAI\n6LB+4bX/Nv4i4Eo27Q8rpCiukKXqraSL5qZb3QhZBmknnB/fObpHIa9C/PUw\ns/SDiFBTxRwU7CANMAQkMwhDcngO77qX8C/TgE67CU2Dm9hcr9GTe/GiE44k\nGWKwl5TolpxoIB86RQlGciEk+2wLLN4Y89KpdEncttQIx93kLrDR/BALqSsl\nn/oJquwZvteQMjxzyMaSqxevk6rBczfCSvz2aGF9rGB8FF9Ie6pDKOrHp+kM\nBa38\r\n=8Doe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCebg7DBllZQbuj4APNh9f1Yl+4iBF4OadN6TSGwk/EQIgNd6Kv+D95IIdmxITxZIL8aJH56I4q3O2oD+MKB/AiSY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594923647118_1594923656093_0.9869109592241805"},"_hasShrinkwrap":false},"1.2.0-next.1594927417161":{"name":"playwright","version":"1.2.0-next.1594927417161","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^5.1.0","debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594927417161","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wRn9kcR5i/0hbSegZRfHnRNYJEjpkAcTKOikI04/AiL/T7C+GttqqN05imkCz3GsDuZoRJpVyCeMMFIyB8bA0Q==","shasum":"2ef8be20d788633db6a7a8ba977090f91c2abcee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594927417161.tgz","fileCount":152,"unpackedSize":1780065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEKlCCRA9TVsSAnZWagAAZwkP/A7UQGQglwjynQPbH5Hf\nOSdtoc8U4ge3HK9Sctcj3EOlc2GuQ8vlXlh0+SRjGifKToyPzMz5tAZe5/oj\ngsGncEEYf9TBb2HSqqZsH2kQyQKJj9lb/x6jzmpFtDZ6AULxpB5oteVIg+Do\nNBclxEwaszAfgIxBuQRhWFQseLonVZVak4tkzspKT1UQKnd//SQRdL8xn8yt\ntiECJ1RbdpafupRIu+tkPHABOh/mVgyKh/CGT741Amy7NxC7yFbhzJTqWqsd\nkQhmL3MwbowqXUGp8JgvYeKbPcOzwjAoDsuw6puETUs6dT4oPHBZRtc3CaZc\nMXrsmhM6w8hWJKmVh27j8ouQSssAedIUlBeYNgFjoOHVNesWO9xRC+BT3A7T\n+11kOihKcPf0yulygabm7eUkt0BG8GUzk03HL9sTgMqPZhAVGFQVuE8mLB0k\nHZ9ZIIbONo4VZ7ZL1C3AjcocsgJynxms36PcAN6jGi1Q270jcAftxxKEs11N\nrHG/89dkunQibWyg6C3mLCX/n+9+Qd26FuFFmKAA8PHBDx/Npw08edlhrULW\nCpUZbH9RzyZtqOrG+H44I3EwhLjYEqfYSiLqnd/sYLFkydnO1StK0nXlwUY8\n2+E0R+K2W5LG7cTxV49go/5N45D/UthIAdq/BCBg5WBbNywkjPr3AxL1J9x9\nmE+T\r\n=8h+I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCANxHMEUTBVGX+0kz31mDtj8d7gsn30AHbFxbjRpaBAwIgXsW826ZrCcXoyT0Em10dE7f2qDPiVuyYkngT9nwacTM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594927417161_1594927425432_0.8112020621329556"},"_hasShrinkwrap":false},"1.2.0-next.1594930566136":{"name":"playwright","version":"1.2.0-next.1594930566136","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594930566136","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0nn1tg9TRx/Qpnl/PFUweFUIOW7I6nMbN7T0nIffJnjwR6vp2/DaSyPKY4JVNdXuESHqJ1X3K6eNuAqMcecgkQ==","shasum":"95458861681a6b6733f5d4f194117f9130579c04","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594930566136.tgz","fileCount":146,"unpackedSize":1740228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfELWNCRA9TVsSAnZWagAABF0P/3jB83h/Rx3nf/PuHmLB\n477o2gEZcm7DAFSeZRggkbQpRYyRqU0aimBiMVyZVNm6m2NJN8dgQxRfUpt3\n4hLYZvcQ29DZzXaVeBtYZj03AT4x2wgp9UF0HvB+y5yA0s3M7uZX+KUhjHfh\nxUHpCxPS9nd9SN8iuwl8gHpUebwfWHJLGuBnT0lWgIWnrFNcDDS73Hk/xSB8\ntFU99mXBqEyBRqNVgZub4S6SYU2MyE6Pz70XgTTDZhHuNqax61pc6UGKjwxU\npzUs/msfav/dx5Uo9j/4G0Fn2WdBtGzjKf5V6zeGnk+dAoQ6QmS+6vXUZS4U\nRvD+L8M13cKtclBp6CIGSd77rC5MYhti3I1c1h4s6O25iMTm/lYV5XOCU80x\nA+AZ94sI5KyygTY1KpA5DVjBs9SsNFuc/9cl/u5SsX9xKd93iK3mQyWyT9oJ\new0JlPJ193/cmuZvLbkusmHjPJVe5EsOjp4YzQYz3O7wqh3SKm6D4qTwBuce\n9FVgzXOrrApICZFHdhs5a3JESf5m7Sh49fjF3yUP8vS5OcKGwqugeDigYDyJ\nu21BmdX+0iu6nLdz/1IJeVYlFSfaa8/861RcSTi36KF1Stvoh9yb37vWL8fd\nzz65Za/M7zHpw4CikjEN5CzHKcC8wykHbjop7hRM5Sh28kg2zaHYfRqBY3e7\nWq0z\r\n=wrEC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChgwDSWz12UaDRIqQZWpQuccAUaZUAUH1idW2gm+1XhQIhAOQ0D39fNLd0YZ5Y03zVKDrWz9Lb8Ch5bOW48RQNrewt"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594930566136_1594930572961_0.7369995796757929"},"_hasShrinkwrap":false},"1.2.0-next.1594930858901":{"name":"playwright","version":"1.2.0-next.1594930858901","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594930858901","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PfgrEMSKxfsAtglHKlBwdkD6dxQGGYUd7qnn3UCBMv+RL5PVCuRuJHM2sG/sQVqcgnUKWMoFDyFWLWcMKEQRnQ==","shasum":"5b16e4d5660f4ca64b4e59e797a4d1f0412d9a1c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594930858901.tgz","fileCount":146,"unpackedSize":1740435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfELa0CRA9TVsSAnZWagAA6cYQAKQIQAYPfgm/IaTkrp3C\nxKR3Io00kZsx3rMKQ3hH979/IJ3q5E0UdfTItx+vn/sn8p7pK2qX4TndYteb\nLJlQXif52Y7NoUjmzsxOQNID23GOYHDZaAC+o0yL8iI65SYHNsugV2jCaNrg\n3xTzfDo0wA1Le8vwcu8FYjLydarcxNCskjWPOv51aCLpx6puDA5SVbPVA7GM\nTohZO6IAj2r0tfL9gl9uFwXK7gkGW5WxYmEHRc2x8eAHHHHmHQryDvgJdxdl\nIYRpId9DrBehl2c6O5nyIrfZX5C83RfJH24BUbRWc8MojlVvAZ77HYeMZKLg\n5F2cTE98WZBOGrwlidA9u08R0rcACuEdOt0FEF5uqbY0gd8afZVxUwxapjE+\neAuYzZmuXMZ9pMKtEWQdGWnyaKTekLmO2Bq3rtySjiQL+gocOpEFVCKGH4KT\nPQfdDhLAx8WoL8fibzBarZ/N2hIIghSbk+ns5p2joG5aFog0qpG12inbCbB/\n1k8dT/sfk/URFKhhyzEIYZrSB8jMcdzCH7JYIkMJsYQa15Qw8PYR60M2HudN\n+zAxak3/UsR2FG9wGb2PZy4auxezvjWUGZ+KHeJ8YDjBUDO0wghkDJlWfRwa\ngieqPAnOHAG/XevXqYiLHvJSySrZ5kMuK0RIflATLq/klBQzkHKUnMVxXVTf\nLa41\r\n=GlSk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuG3T2B6swXv3BDbhKjRa37p2ZwphjWmgiqVF+rT6E6AiAp+1R6CO9HMgKsjgeRoQymMX9ZTxcwh2KuLP9yyFDZMg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594930858901_1594930868103_0.3285691034555709"},"_hasShrinkwrap":false},"1.2.0-next.1594931905692":{"name":"playwright","version":"1.2.0-next.1594931905692","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594931905692","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CVY2cVl+HI/nSxh5LEsDPwPXq5ZCGFVlmA03YL4jNgwLF80T3UgI8MM7+AA+J2lDTyBTaYuGR0+hwZ/eTSxsMw==","shasum":"be4d3a2303fd7ec85f21782d2efa15c91e77c37f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594931905692.tgz","fileCount":146,"unpackedSize":1741454,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfELrJCRA9TVsSAnZWagAAj0kP/jL+s7etCc5UeJX4KWJf\nmYn20ZhaFhrwmVRwBqTtbkrMO3Mj3gwKOM+SO6/axaqoz9kMQsUhiTvSJqiU\nZTs3b1X5GhVtIfstL/nSpod767RFyCWRj2j0eIQetLZjqvgcVRLEGYTF7sOG\nxxCJ6bO4+EVyLudVQ9WzsJMsTV2bTSpxVcrH6zGbl6+lzWC8OA+xKzhMiMpN\nsC5ff3TztC2qN5wDRAnxr3/DD13S3Y2TwWfiIS5n7NbBMSMcnp4pZxeFn6Di\nFNsmHF8KsqTT3LkKJg1XrfUsShhDroH4su0ENhuXVr4Va+FRf0Udy7/KFtJl\n8949RiWWKPG/swySZA1y0VUL21aQldGt9/N64rbf2VJSWQ3FxrBalNA7LIcL\nh+8YzNWJO8lNg+wNk1YDJzDgZmK5D5pfot0XqFQbcfV2AK7YWfhIiVkIs2iO\nqChTFlyun463K+z6JY9RrFMafwFUWWQCh5P72uBanzsLMJh77fmZ9ZwxaVvf\nPsAZX/i/sH6gkFxL5V9/NpWaeTk4Qh9o95JPfhadJP7hSea8N8kds3hU4OYl\ngS+HtZNZp133EgMxl+uLQUueX68Xzvtyu9Sq5ffa2ZdZgblnpf7HEQenKUPx\nCnS9XFHydStp+iIa73VgAZuq4HW0SvQSmUKJOx9yBe7wVwtW/47xyWdVsWq6\n/U1y\r\n=+mzO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVXWBCg4c6xG0Nnxgfm0sXTXxqxADcynqKk2CTN6qSKAiA6dXMEkPPhlnw3hC+JJXXd7pClcBJhOu8XbKipt9Qn8A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594931905692_1594931913329_0.9067848647290722"},"_hasShrinkwrap":false},"1.2.0-next.1594935253199":{"name":"playwright","version":"1.2.0-next.1594935253199","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594935253199","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-poJpV6vxxXjYv1Kc1lp+xZ5/zzjhDQ/GVyME4r1CBK69QHgXTHxrzuiHtqAi5W+WuBlhI7LJUab30tZ3E1zq/Q==","shasum":"12d18bdf046efd0434039772e887a7a08dc45464","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594935253199.tgz","fileCount":146,"unpackedSize":1745590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEMfeCRA9TVsSAnZWagAA48AP/18BqZYUki69lAEFrIAn\ndziOXDRJPe78bi3yxeSwpAw65L1KlFYc1p1VdyqsUxICHeheLRxUGmVft3tQ\ns3fywVDpFpgHMv8dTkURiaSxq0urHoSyEtMxMUBWrolYR0Y/1GkiKR4ocw/t\nG+HTmtyD6YNqy2OdKM0ugmCrzloOJ2C+x2flkII1YvGw8kMwQ+Ji2/Fu7p0c\nMK38DwGmE1S1ifrzwPyXiebsvYFgClK8WgQrqSjtzZKqzIiYsUiipEGBvbCl\nO7tOmashDTbfoT5f3uITt84z1iHFe4T4due0htye3dovKkWsYFdw9qRNVoNl\n85+/mL6LcPyv9nZC/mr1Z2xmZF4WYyA9816s2Pr/mPi5fkFL+hVz8wjT/eyW\n3LTOkpO62rqO4SvJXF98CM6YcFQz/dBJtuAwSuGa9LVCAUNI+/546o7hke20\nwZzdVV7Iv8gtrLGgJ4et2J6rVBAgoj+7ymlrb1lBV0WoJnuTJ8UIOh4pvYwZ\nb+tZHYak+5rPsvYylL6N4ZZQPm1+5Zvrl+tu/jeY69JaYiDZRQJ9+8pywyRZ\nATducpp8Cy1f9sG0phpLt4NZgoLixGqDF1oEIvS870rnjpw029DjxIyndC6e\neYpeO2CCrAWRPuTPijeBq5d7DF64gR9O4Hd6n/las8XxCtileTYX0eEoOUJw\noaxE\r\n=OF8c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCA672vofwyJEfaoD/gQ0P1zSeJlYfyPQj0lPnRM9svggIgT6DOV7pYBcrP+SZls5VeV70urAhzKFiFvPX07rFzi0M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594935253199_1594935261441_0.06520819921035104"},"_hasShrinkwrap":false},"1.2.0-next.1594939009276":{"name":"playwright","version":"1.2.0-next.1594939009276","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594939009276","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-i/ZuFT9uJWFsdyDda2Xh+sZgAolBO66YrbdmTEdxRK72Xe/u62zlDxJoKadWZvJKdpei3U+x7nxU9WRIuEanOw==","shasum":"d81426c08216edd4160ae84fb23cc8b0f86d85e0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594939009276.tgz","fileCount":146,"unpackedSize":1745590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfENaKCRA9TVsSAnZWagAAEMkQAJCY0mIGj157NMqneWG1\nD5xCM04c2Yf66WPP/gWFeZRWoQHmlkkL79PFKCOI2MHXRh3UL+uEDKOFtu6D\nDQVJT3nmaO9kRGVzFr6WWQYNFIyJvG3cgo5mHLQKfiapzXnoJ5O0oi3OX+Hd\ncSrPRbsqECb8WZ/M5xLwwW+Styhi+BtD9Vlsxs0Bo62SqE71gNfQ/bhnXkAm\nFaFkWWYnQxmfXRMbNeZkedCvFFBtpgzg/G8rRcW/Zsx5JUW2uRij1t6ukNlT\nmpyC1+BXWwrL2SkDlbFaQvNVzQoMrJ8vmEHmuY/G8DCMtpyqANHKRq1awXXE\n6Z2CEq+STqQRuMFtg+YCAFbcf+c3JddYoNV3JYj6/n59BqU5FHvG3XBfYV1Q\nVX9TmeqzdjymfUqD3o3R9ilJ2ti92H5CsYvuL5Pazj+cw3grTjVYKz4yYoAq\n+mi8CLhTtIZVXsc7IQA8CbmG6o5ul2sID8ucAczinuWokE/j1EpDB5dBQn3n\nn82LD/CuHHjOJhvzroSVEtmbY1PFk0ZWjf/qRWL/6QRGXMcn7qYJJUUq7Hk/\ncZSrqUHMKl5IXP4yPWR2HWmgq+/ySSFclgSEZP9bpitoV4pn/9XVVMS84ZPp\nMVKB5JuB4jIYprfLsPzWFXXmfB10z//8sZvQdjNL1ZUb2vEKoGI8P7a0McqP\nXe6B\r\n=f+bb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG1HxQa6oa7ikflNEQeSHxKMepOwpELbMNGArGvpsF30AiAVAbWStt94eXiAZ7WkenMjTYY4Z206XgtZK5+MhwUIjw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594939009276_1594939018277_0.18028906794703103"},"_hasShrinkwrap":false},"1.2.0-next.1594939458752":{"name":"playwright","version":"1.2.0-next.1594939458752","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594939458752","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-EXLllnNoxu6gyrMpu97cBtJfG5PaCJQaUHQmRFkUwZ9+H8MYLbmvPm9hUPFasSh2JFwxU52K46x9ix8uX7BtXQ==","shasum":"9a12ec25802d7d8e9dacebe5fcee8d66de0c988c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594939458752.tgz","fileCount":146,"unpackedSize":1745590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfENhMCRA9TVsSAnZWagAANKAP/1jMuZ198ok4WYot4E5J\ngDTiC5dMPuv0GiNgV8BGyZsy7D3LkW7yA1TSi0ov9meRf7hY3H45QIPnMuF0\nCMfFH0khpu7MRkBVfiANawZausPALxco1PnQR3cuoxLHfCDTt7Mx8R0Jszp+\n9Y21AHUVGb1EhCNs3KvmXJECgjVf1cj10V8Pefmy8VF7h3LoXx0AFv5Bp300\nCjXe8mX5m5fLB/Q0Bqw2JRZDMVx119dDUlEaCZw2734J/ux5TOeW2/5TXjd4\nu5ZA0itR9yC6PIj5X0Sl5wWjcRUfCLqdpQ4HEdoJmCGxopkwxnDymaPsuzNo\n86mlbl5fRa+gxhjj1KnWfpRTA6yRAYHtB8Js8Bkkoh18cvY0EkGiLpSZTfpN\nNWFGEv80mpGKSjoYaU1laUMOH/hlXV44Dfw9JYDM7IYc3s4WIrIjb4KnfFqu\nJ1oEfd5MLnvtt/K3J0WL7kSFlywJYtWhNobjsrAkUvwOdrZw9+Uku6jlbsma\n9HT8x5AEKzRgG7g/7XiXOuDGD+jQ3o6gP/Eg0LgXeFOEFDGzLkU5Y/tBbqnN\nAh4GG5e7tAnLtflohrKgQveXtTQuPznV6iZkAUOVB5xYcK9uhzg0Wj+WQCHO\nXahjnWgl2cvZrYOkNR30+uZeGl/Uui6vAXTMlUeqWfWV9zuVmnPOiHca5aDl\n+4S9\r\n=8ab8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAovMdDffb/OkfEdkej7ioAHzLIhNRZXaKwkM1R8WRipAiEAkGKwc2XvUulVpF7eMlqgfCMwWvbTM/qyYs5DDBPlLjg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594939458752_1594939468423_0.6147405952417269"},"_hasShrinkwrap":false},"1.2.0-next.1594944111361":{"name":"playwright","version":"1.2.0-next.1594944111361","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594944111361","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5eT6N1pPBOLp3hQf3aN7tfsPkPhW7lVWLLtUh0QcjZfCR6kpkWO2WDB9I6c821fi4n6abo61oKEBYYyQW/S2rg==","shasum":"e1a81cc00482a8e3716a4242d83f07abb7c8b9e7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594944111361.tgz","fileCount":146,"unpackedSize":1745960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEOp5CRA9TVsSAnZWagAA/rIQAJbXPQ5fqxHwhTqNyFcj\nSkulE5cff3uBrVi6fqg7TwxWdSHZdxzcd9NyeyqrFSaLL86NsayT8mI3jyij\nKYClDvBRz6FFecbmrnAJ8LIZ/sGg7v+9S0fCe6WXWCbA8GKc+TYkEV5qmKoQ\n+k09tUkPPobtYapZu/Ac0/+uB5mD0IYqiJZYv2yXn1B0ysN2l3zpR9+k8UYN\nzYOev8IRjwHxMcb7jdZiHVratAliNq0uHPzk4f9UXgIocyhvvl61h/NXR5Sz\nHV3MsavcV6u+M4Ec8lnSQawdOw2Bj4mtON0De2O1D2pYJjVJ9uIP4O/mtwZ+\nwNzj692MEv6ouLD5yeHHQpo2QbGmipDCxHmSb5K1TZ/QLlV44zyI5HBER7rP\nPn6B2hf4pMS7n3HXNMSopaGrCbKME6qAcOOwKTOkL2c4EYTOVV2unkeZ/Ogv\n/N9HPuLgYPyrqObgjjCm8Qke8UZi4D0sep78SvNfd4X9vbibEsddCd6kxUWE\n9i1D3Mrd9dOv6dyIT/bfyTVeo13fPI1iG5YyZUPU3/m7T1gNuStTvW8navhu\n04NK0nBOqzHLYYEVxf7ZPkYGKQxddFoArJboQuJ2RrkRezDVmm9c2MVIyf5t\naRfNrazRTiovLmEw+oyq77NF20jLb1r42mCEKydj/+/B0DzgMkjWWjxiBXjK\nO+VB\r\n=okqY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH7kRqalIOA446GX55FZ9m7hbeFNLYdljo/NuZ0YyligIhAOZLTTPcEH2oL0ExrPmedxcL6S/asJEg+eq04V3rpyuf"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594944111361_1594944120620_0.15788796779603298"},"_hasShrinkwrap":false},"1.2.0-next.1594956947736":{"name":"playwright","version":"1.2.0-next.1594956947736","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594956947736","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-W2GRmeClyAppMQSeBZxVDDh34FfQtYizfyYzkk90knDJ091+S4ryKte/9w6gnHeHdj76Vc9wcCPZ93qCsELn5g==","shasum":"8fbb534bc70b1af732abfdd0baa3c94f5877077f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594956947736.tgz","fileCount":146,"unpackedSize":1746037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfERyeCRA9TVsSAnZWagAAFz0P/2rENryQfoFx/izqPGd+\nXOm8/41pQb18Noo+740GYWWoHYJkaZcy6ET/u+cqWUYVff8VBwWy5/ilkOt9\n7nT+fR9tfvaBlRxIfKD9VjXaBlq7N5LMrHXSixOYTcge6obKNX37GlYqOWP2\noNoapFeGH2qwC+TOlDrRsLqswn1/Mf5Bmg69UgiyI+sZbkGMFPQi2cGBeKBv\nH0txKz2cK8JX5BEzKrnyGYO06bIl+hEFxjdKWbBnOC14rtz2B6VpBhMC6JnK\ncXCsyuD4M2MNL2eYakXDpDaUSBtWQ30Yc7yLNY/HloSBpYGvBjJzaDmof9nK\nTDi2zH5DvEOSRLeX4fmmygTR6biq8ciJ2b697VQBPvdeZjP9h8MJNHNLjQT3\nKYrFmmoyXbhLtqyNQwLWO0JR4k3NPmui1VaCDw/yAv3Z1UoKuMDbo5bO7sBi\nI0n6cmizBLdd13ArG53kK7iDPBklVmvaCdeRnBrpgCdmeCCAQZbVHZdsz+eZ\nD4bLOTPYpwLIIyi3K+kyWbyILRikCKpHLVvBSclcrM/DVoIKv0hqGOyflbkI\nUfj2c7a4VvF1Q0rp2HqDj+ljlf6OZ9JcjUMVvONMCQ9IxbYLuUoa58C0V9kS\nSCM+UkOps4a3sssLUjvkDvtAucXggTGR6jrNkp2TIjzgAclZOO+E/kGFulAt\neg9X\r\n=wclh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIENzwbYh/JSqKzQd8D70rZpDqRaZ/6e0nsDTxCoP0XyqAiAbndTshMXCEmDDrOxiDOVyyOtkU4zzxMp3OOGyis6iDQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594956947736_1594956957701_0.15289185396511207"},"_hasShrinkwrap":false},"1.2.0-next.1594964454914":{"name":"playwright","version":"1.2.0-next.1594964454914","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594964454914","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-mmPkjOGJRnY4rN6Agada1SVL/KVArcCCrLEQ2bs2/OPIk3wRafFyuzU7v7Bt3tWk0NFuWF5imZDqu/JqqCCcbA==","shasum":"f976d5b53824d8fd42de9dfeca3d201a5cad735a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594964454914.tgz","fileCount":146,"unpackedSize":1746154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfETnwCRA9TVsSAnZWagAABTQP/1b1OXJ3df2frnLyearX\nfLHKHB658D8EaJEujt14UGzM+pyl4D+D8Z+hf3DGGIxT0hio6iYw8odmGptQ\nMFpWBHv9lkcGT2yZgOz4k0oGYhvDeHu1MSdPc0ETWOOYEntM+ziwweUkD4SE\nwUA83coY+LO1ZqX7IWQMVyrq1TAR8W19ez2IqaNbIB7XE4uZngbWdlpGzYZJ\nE52PYCAkIpHGgzM4LW5JAUURQ4fVGg4Hapa08O/aWs3Wt+Y0yAETHF/82Q9C\n/VU2RsN41cUwfUa7DpowmUDrPiftOaqKgcsqaoOMPszpRRy8prmhYOYr/g/W\nB2PsgugIqfY8Y+4Ij5Ws+K9GC9m33Y3N7Sb/XRfjgAtvOJPQocpzc42wNUGm\n6SlcPVxPSHCUYICs9BdHiZ+M/TOqjzo7G+o37q6nqegr3XtodEQZy5yk/UkH\nYRBAbDY5M4QK4H0JySOOc7hs/tYeX8yOXfVlhKbHdvb+6/RWHe82tMg7F3i4\nuPXa9gpFdCRgsrV5GV8OUdFvihR3aukbGkNFw8lMgr9wq25rjz+T5EwqBJ+k\nyapujcWVo8TLH1F1APWDnnMqb/WEQM3TGXMdcOnn75Mtn90NB7RIXV1zUn3W\n0zeHN22LaVp6WoqQgmBOjIRykVTniB/6JCsTvArf0W+7zNcbr2sjb/O3GNbE\ndDG1\r\n=49Vu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSrdFFZKncth53dINV2L4Kc61WeP7MiMFXllxHkPyYNAiBZsHApBQwYeCN7Opep8i8dj9B0GA5zO4a6rHaV1Y3Lvg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594964454914_1594964464120_0.5957050600272136"},"_hasShrinkwrap":false},"1.2.0-next.1594999489236":{"name":"playwright","version":"1.2.0-next.1594999489236","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1594999489236","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bPeq7ymubJ9rW587LySj0TPET9uwwB6yGS6HIpQeXSRakKk1yOmikl+NvlWG1BXXcomzbELs1jnzbgWErTeF7g==","shasum":"36b2c1767b312a7614c0dc1e4c969d67f8a1d5c1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1594999489236.tgz","fileCount":146,"unpackedSize":1746154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEcLLCRA9TVsSAnZWagAAPwQP/RMPpNMpRdLVKbdFR9qD\n+7lBr+3Qg7aLBpjemKSEKixa5HxzK9n3mvHRq1+WA0wYuJZkQF/0rKgCb1ob\nG17bHc9STUYqnjdB+3eBkPmGptsoJA/Rzu4I6ODLQTGDHATfbyOBXvgA0dqK\nyk6UCy34s1ecRQM2Fm1DSOgGK7indlFWWvumAjXhpr5T36NtooCXOz+tTVaM\nfzp7TomhDSDOLIRTjAsj8uCnaS/ikmRy4iZSq2pbaGUvJWlPueE3gmCt3A8S\nyP4mqdQSJ6A5moG//7H3hTbT52KSGieyG56OytZ0kUSTwgYbgpT40zMR7tVO\no9Ru4huP9Ut1JvTNP/9BqOiHfZ56NErODa7KRz4tVYJOeGrDvISyRifQ0eiz\n2+7kwnBqV/C6sMAG1gXLTlZhHmrBVP021dN+jfk8OLS9udniRpWrAMBZQaAM\n+xLkPg4d/0OgDn+NPw3Nv+zaSRv+G/Q6jS4tQnuc53tXMKifGI4F3cmgUGUX\ndK8LWFhSaWmYMBPmSZsOTWOZevayv4Jn6aiLIW39l423iU6GVIQ+CHabktZP\nyXJdPiHR6Kx/vDcrHaSCClpVaRvSBNelWiThPShW2c6UlxxFBiMWS0eUoAX1\nappEhfxxFbm8SnR74MUt6yA38G8Uv+a06KvHhvotLNvEcYYpNGigdIPsYqDL\nm4t5\r\n=EdX7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX9f7+OKO1eCgWzXCCeMHtgY+N8DBmNk/av+dZjzN53wIgHYndTL25QynRpQaqvuZN4MGMEyMO9CULbcbwEjuX6Q0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1594999489236_1594999498384_0.30863305220608517"},"_hasShrinkwrap":false},"1.2.0-next.1595003673144":{"name":"playwright","version":"1.2.0-next.1595003673144","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595003673144","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-1OjCls612V0GicIwPLx+y9Wi1XfvCGrOGkM9KIeLcveRCi1XGQ5NXhb3HTPrDbirO3y2uV9TpGgO/9sOTcy0dQ==","shasum":"2d716978c9a2a184cbbe9d707f293db71f230ad0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595003673144.tgz","fileCount":146,"unpackedSize":1748471,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEdMiCRA9TVsSAnZWagAAY+YQAJ2RYK5w22mSd5byOtOc\noA/9doqmF2MeiiPsCVGEhu5fhwdP2yQABCurfd0Pg+w2D6E7b0i6lCdrYJsI\nF37fQdVI24Y/AAAgTNdvl2KTg4ham/JfgIvMY0RtDrOB3cZuerJQKJPJ2qy+\nz037VKKVZU/dsdYleE1Yx1b2BgxwIWODRLhCVeDIAiwjKNKyFeHJvoITVd2f\nPCbdu8BzgBnc6n2A6mdmaOAGx7nrLdNX4BwRODGKM6fOl5rnV0SlKFHpjlEo\nTw5EKUiE3IfqPWS/SW9rFXCD9bQWfxHSV1jKUHUtmpJmtPDKHgwtidh1L4qm\npJfiEmpuW56pvdhQESEInYOrh3MWWGtM6YtHz5snGI/TN1RW5l698TCOk1kr\nhLqmhlIScK6BxwRpdkKIUGuIG0WF7XrmHdKdLG5CI8LKmFx/WGvrvXUk+Wai\nBqxMm+RnpwnEGa7TloaJfOQEE0DLGg/XKXSI6EaiPcqE0iyFP5w+s8dTd23W\nvJ5JRdq7TlkbmiBZvE9iXenoXilwVS1cAluxei1vu+2eyk+vTjDeHn98ChcI\n8N7JPz1QgtPTQ4EIdkXPjnpvRK1bchzfyiRvA8BDPzSA+pmBOM7HEWbpXwam\nNDSBZUwDamFeGswiIuOLKvF5ncKlOByUHWcmZ8Dxw/+8JeHX7/UbJ8EeL/+u\nXJT+\r\n=zMC7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFgyHwiUlmG6/zbOCCpSN+Vm+iL3ZX9FwbwDhTJ5jVuAiBgNX95BcKGeKuf4f5EPIqtH0Mc0chq3hhscEwfhHxRVA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595003673144_1595003681640_0.16960184368889353"},"_hasShrinkwrap":false},"1.2.0-next.1595004660198":{"name":"playwright","version":"1.2.0-next.1595004660198","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595004660198","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JY+zfOB8YF3x0F4OFLtH+okjOUeknUlLFMiehOMeSnhYbKQ9XzfU9R4ooLK3hz0ILeONeeT+WGH0z0O2AJJjqg==","shasum":"9b18e047a7cfd91394cb2894e4d9ecbbd744fd06","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595004660198.tgz","fileCount":146,"unpackedSize":1748490,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEdb8CRA9TVsSAnZWagAA3L0P/3muzvBB4+xv/HZbbrJl\n1uFRiudarMmoDRTOKYlvM+IXqroLmMeygRpqZ0fxON+iBHuIN9GYt44baQEW\nMW4TRcjItrE5PPPyWI+aRzT9UfAN0ETkcZXOZS8+8Jg9kJmKZECxUjTPwWhT\nYnmAvlkrlCvEXWkVHAy72O5KlNesiLB2c46UlMtUksXvlSHfLt7hE7+O/L4m\nzTx/4OUUSFUbw7PT4tf9iJYTIi9DZnzRAPGv4SFTvJEaWpgf7ffEgsxJY3Q4\np+Ffkd2sNjDM3NuAML+e6tD2qoAPT+wUGOD0uimbq4ylASYig5VDM+rmROcf\n12S3orVluOzbY5WBhR8qctGpAzatCsEabhM+giFLE7+LVeHKEBenAv4tPedp\nnnrpxzFFthkvIElLnsX9CL4g+7h0oP/v+XdXMyj+4qgAK8aEtjnTqzxK1q6t\nF3IUFLuVJDhX5Ncn0BykqjA0ZZ5ZH2sjb9hAUFpR+TH/oVTC2tEYrRtEaqb7\nucCDu+B2VRuyfaovokjwWKNNQ/9xj+a20FHreCWCGcxojCFNk8WVJdd8Q5X2\n1w0e0lwoZ04fWtXr3zs8yZzg5vt136EfW1oxbHgUwBJifWYQHB9KJtt5ySgg\n0ipFFMzBpEONdhX80wwK8SiO//LB3KA2c3PSnq2Bg9AM9v3XULPiFtDkbsDs\nGZgn\r\n=gmDO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE1+/sT8kpFjHsHirE6bRKVV9BhrVRVTqMN6v3eJ1DnmAiEA6e9+cgxn0Roa9nR8LTfIbhFAAk3NsJNTdYjPO7OEGDY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595004660198_1595004667966_0.552448302616954"},"_hasShrinkwrap":false},"1.2.0-next.1595004899857":{"name":"playwright","version":"1.2.0-next.1595004899857","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595004899857","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tJ4V2ca/FUqcB9lExu84hpROOA/uFUbOf0qqD2rk895IVa5B0vaGI79jKjgpossW7XoiSy8KOFfaqV/NzrNotQ==","shasum":"715f5c336c41619f38a1485eb2d4bc9f2d7bfdd7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595004899857.tgz","fileCount":146,"unpackedSize":1748280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEdfrCRA9TVsSAnZWagAA00MP/3JYHpPn5jcqJCGCSoVc\ncZZ4SMWBx40w+BAMFxKQKVdS3C0twsA4v321xBIKKEAg6jHRqSlimiANJ66H\nzAvllkBFIFQw1UGXlvDUTAcufSZydPJ+7WuTFJimS4ctdK5GG+ym/tcA57wX\n3mi2HXzSlUEo5VVS732lSXKvGcPydGy2zrweR6us29OsIZrAh/e0gA5HxXQD\nI7yl/prp5AZtsVEEzd5wyqdu7AVEJnGiISQ4Ceh4f0r/+c7XqIsvO0CARQZQ\nQOH+JJ3BggR+o1p+3j1yuJFQLHwhxUHhki0MX7iAcqNOk/JxDoA5coGiQjRd\n4dG88xpExR+T/b2JC2ACApS18YI9MOjDN3CNwPRgXQ4xy8gCD9x6D8n+F7bO\ngd7cdKPkwBwOY5B9u0rTyxcFxYELS+CJhlqPMdHfnpTla+KE69FmEVGPacLj\nuCe49qpLBmituFvs/JZtsV3hI6NWFVJe4yLQHGjA9vX8ZJm4DmSAVxrq3X9G\n2cEel7OwUvN5A2D8IF7h70+67yrnn/3NgEMKxa+cZfBJWJfuwpKXUShuFGZW\n7wMbxRQF3uC9mgkX+SCI9Wqq+E1zc4QJ4azKIm/ag7/Y2MDVS4+1//iwNkM0\n+NdQ9hQHJMBJxV017X5ZR5+QC7IE8CwphR/ibU30SEDANGlOEXMgGabR0deG\n4hLZ\r\n=patF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJ+qwPEhJywmYmT9YUhNh6xNKJ7EAAAy0dx/GQHy+p8AIgI/BRCp0rfyCNKWxlsLy9omlQjs7oq/ROoMtqJL21cVc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595004899857_1595004907053_0.6827709371102593"},"_hasShrinkwrap":false},"1.2.0-next.1595008251840":{"name":"playwright","version":"1.2.0-next.1595008251840","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595008251840","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YPqXs3Nj3WG04IzVa/nVNCmohBGDEWVL+Y7ChPfwxK7/kHTUUYi24JdMiAQuQstoqU6CHcCCbr1731l1yFkIxA==","shasum":"79a42093c52f4b8b147e4aebeef78dcc09dd0dab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595008251840.tgz","fileCount":146,"unpackedSize":1748337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEeUFCRA9TVsSAnZWagAAi+oP/1n53WsmJsyjEhYkYtHB\nJgG5TBkylxlDGryVvysgFYeCPX4527iwTL9c9451BULQMhPqkS+9OIEQBn6J\nDPURiG5E22qRcWJJsVhSLpSX6P6CJLLkTPXIck5gtWNerVBMnRIHyotGrgTP\n2hCA5Wkt1poMqHQg0x/zv7BO9NfgN2FTByqy/4aASM9FaykBH/sIzLsHmk7g\nF2lQAcMuiNrUyEIRQu6xw2Yo4DBFVsvpSV33boJ7G+9aSy6XR/8z77UJTeoT\nQH7cHve5cXvjr2BLOngW6mpDnCOjyJyyjWJIrZ1Fx01WjnZUzziTjb34Q6Pc\n08eb+pk1uCSFInC3k6XjDd0AhCLkZwuNMTro6rimKlJFvk1bAOwPAFv/spsT\nWqa3fVNW8aT7rHMFx9Ccd1Mwa6d/Bt7s7vuCx+J2/qfWw8GgQTDKSFxU/Crr\nZBTCIaEpixVesOVCnewGJINWag3M3lBS1jZHn8cpp4zrwp7YfLsZF7AuOxmi\nnz8Wlwira6rwZtI5gLYyjPLPR0JSBOYJVu1U/PSojKZBSp2rh9j/GLcUgGHF\nu/HstU/SH6gLVWCTZ+GqtuQCqZMXFDGs0Do5T25T+ec3d9rzpl5cFpI2qcwe\nVH1FytYDTg1TKNL8Fzw3AGNrJJe50dY1pOeqWC4L6dCDPHV7Mgof1KQ07avl\nqqy8\r\n=gpcc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHJHSBuriP9+ZuDOc7tFKfCofAzyD5AE7mo3b79qrFoAiEAuXmxlq8UhqD/Th2ZPsAOD5JeX2ezgOi3+cFap7/B7cA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595008251840_1595008260571_0.7732235601924362"},"_hasShrinkwrap":false},"1.2.0-next.1595008923460":{"name":"playwright","version":"1.2.0-next.1595008923460","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595008923460","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zscI+KSRyC+x0v27lgxoK7nr4iaAAhoQGdVvzKE5ptEcPLlV2wZaatHKBosTaRBrlazzitxRhNfIlZ0w8C+D5A==","shasum":"b8f2a112ffec41343f30a246189331d6f333c613","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595008923460.tgz","fileCount":146,"unpackedSize":1749406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEeelCRA9TVsSAnZWagAAT/4P/3T0cuQQ8TSIu/zb/HTT\nqiaKYY5J0XogKBwxVDVUWA2abpfHWeW0muvR8pkHCiQbVkdxz8Qqd/lw/Q1h\n4LYcFCJK8vQ6wLnbWJxUrs2BmP9QportFvr84vLLqAxPk+L0Hvk1TigLzvo1\nCVOFILNTDa90mD0sov2L19zwqmkSIUdH3SBXOffI7m+B5BKIzjeikM5gUxE2\nHSzXEu+Xd7Xfrf789OIKTm5O3pGBIFpKzOOlhypC9V0PsU6mgjX3Mprytpp9\nGLjm/EcxEYFrp4xKUr22VW8B+Q6SNkqKk+66MqFpm5VOAlr1A+Vo+BLM31LO\nSS4poPy3ADrcgVRvQh6oO8S6ASKI6y+llMexTLw6J3BdUwQQb7n0yu3wbvPp\nCwIGfKvEEW7o2wT21ua8gp8dumosNHrPd4+7R/joE1hajUbg9uksUhHC0oWR\nVq+3xkErGBDZtvZJ+8BGmoi/qubJ/VgXY8KZcr7P1PrOlA0i3/EfxTTjXEuw\n522ZK8h1kUPiSSrgVt9ARCef4iftchRO6AI5ia7JccyvkU8Gvf3HUuzcfkr1\nbxCQ6gfhDAm/UJ75YUuURRnqhFVlYGoaTE3xNdq8wlbcCzpcelKYz6MtTtbL\nrYK5NAEt6+INiYqWUAakLnzSY6gkZuY6oq3msOeWI46ZHuWeXljfk7r5Mofm\nfCzc\r\n=qP2w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn0W5Ali3996ZMDXj3e6yiD/yuN2Fh8sAGZwzkReNBXAIgJd5vinB6Y642xZo0u1w5Oop3gAZWY9rDesfvzY9G/X0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595008923460_1595008932781_0.9002308327687427"},"_hasShrinkwrap":false},"1.2.0-next.1595009460286":{"name":"playwright","version":"1.2.0-next.1595009460286","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595009460286","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pquaxGDEV8GA7OY7oa2Z3nEjGyah9lr3b0Jn0V8LM0FW2WTdEapGfYQPQTljRPWhz8aUR8YA7KLO0WpnVlbnfg==","shasum":"f79a23e9d99f36fecdc8cec59d05a9048161a5fc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595009460286.tgz","fileCount":146,"unpackedSize":1749406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEem8CRA9TVsSAnZWagAA3YoQAIZFyytRx8fgzR52Rqht\nitY+hV9gClhdNriN72LJpevFcI/IZrgn2Okqoxr4+Y8+YhTXmYXztZ2KZZ/G\ntvnGN2wuWPT9JWhk3DL+bIZWIWDPlkVZVSyG6sqr2/BUiMQO85DEiGKvluKC\nR20qnQmS+wKIquVraww04wMEgorF0QZdvnSRkXnqVt8nhBa/1SKA6KdmFbWl\nyD7J/wyb9Uh81p+TuLtHo802OeFN3PlERWQLk+vnqGBos/vq7vQgb0qX5r9J\nnowXKkwK++TRW7aXW0jsbVZb6AFjUn8DgL5tdhFoDJN8fOLMXSwGl5omykbj\n/dH1xXabKxmRAqW2fwcwv2zYLy7ZMXHpnalNgwFG5R7Zs+bv4vv6NHx4Yov3\niPViYcuGfRTnIYqy9m7p8pOjzuIaXV2q/Lil/2oBO2SmVRoK4T7lL9CcEB6m\n4d1O5hnF5FTkkTCXvd6BccgqDEBCgVy3tcubzKXSUEbASrMYeUEqfq9UrcDL\nxgXuJiKYp8iGtlPw+9GqbsJ1SJ/BkNV7hqh1c5yaOe5DdzN8rLecyRE6ZsWP\n44yzgnuuQ3RDFM9hYHg9/DG2v4057Tq0XDnXy1skWF6HRaNHQvoqN2duy9rv\nscNJdaimRgYbbJ3xcen8ji4Z/qqBisoduLFk0cJyBsZLFBE97Cw0OH6Wt+cC\nlRT+\r\n=G381\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALsyNRgjemjKvlLYAAU58cCPUaCWGFQonUXn2HijAepAiBg3ZfLCFe5Ftb/v8LY76HxhUDjqnA5i9J1vHl7wGDNRw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595009460286_1595009467581_0.7379312833083294"},"_hasShrinkwrap":false},"1.2.0-next.1595016293206":{"name":"playwright","version":"1.2.0-next.1595016293206","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595016293206","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TcB45aSBYTxItejb22CPvwjJ/iJRkdSQGwYOHGpCTXoq2OnMJdi0b1Ho4M+TZHlU1gnyv00yS8Kiw+ThpKpA6g==","shasum":"9cb045ae4c965527e84637590cd53dd6452b694d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595016293206.tgz","fileCount":146,"unpackedSize":1749406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEgRuCRA9TVsSAnZWagAATgAQAJJ8jpPjHR1gDfpnzjEV\nGi0jQdlsBPdHGyaww62Ac2Ktm3Ukk3VjQ1PrgfF7zH2CKM/QRlTmzliRaQGT\n28rFG1e4xDU3HQnR4NmbxD2Llenkw+KEeaTqh6IHCq4oJaxKuvUWVJHy05U/\n/HPV79iX9a/ISIcYRI5Wtzyi1gpWnRx733Wkap6ssymfh3V88LPVgq52ZD85\nYFXNXhuex4L9udhHbTxCalVu9x0Si6J5NhqtvxUnoLqUJxb3SKHtxSq92Zai\n0cV9+5WBpqxKJNS9qLTl3XOWdRqvHELv6OE9vH0h72ofBm/a0Fb11kqPEaZ4\nmmQpXynZrt7uEfjtNlemo8OR8XzefPOgApmlGF0ctRot7SzflHZp8rt+EXvb\nF2GlLo+K0doYa+OjpgHFOo+KXHuxPb/N8NOxA+t7JeDWx8qyCKkLqiTjjYAQ\nx64gYIy+cAVqeWvXvUs7t35sWv9gdrGv5Ok03DLuJGzihvBGZAtRjG2uoyv+\ntqbEtREwLiV+QugRRHGkh6ODkN47LTYWDTF16+WL28bkap5vnQvz2A37vB6M\nYui0c0BQMNps3Dy22cTOXdLthtpvh1ynwBgfwYUq6YXsigmByMrQ28/QdL7P\nn1e79wED+wyNwvHPOEEGVXlfEiU4xK5B0/u4W4uUs/9fLz2UtMdLoCOwSS+n\nuKSH\r\n=H5es\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1kP/M11CbX9SW7h6b6DqRlG4i5lbFjRv5AbZ3hPvGFwIhAO3G160MIi0eCKRTfXb4kPml5lYJqNBTKHoJ0+VwTG2V"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595016293206_1595016302142_0.38550780766399395"},"_hasShrinkwrap":false},"1.2.0-next.1595019313595":{"name":"playwright","version":"1.2.0-next.1595019313595","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595019313595","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PFXw28MbE34qO+p3hrn6cgDjtRKIpOSN+0oogewHiew8m4Zbr4Lbm2xItSKQKHqiHRlMhD/04tKhRCFUHI6+qg==","shasum":"bee7dc5bc4a04b1189d9d49db485f15ed0a26bbd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595019313595.tgz","fileCount":146,"unpackedSize":1749372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEhA5CRA9TVsSAnZWagAAyHAP/3uJv1kdEIWChXJdiBsV\nVSSiPjJvZnZJxZVi6tOOGCTzpVZSU0Sy6QoiyQDhMo1p4DiMhxYN9fxYksdn\n9uEDOAk3ttVduvH26MoIgsv3/uvaiPCoguIPWibqW6Ey6yNfrVDIjBPFYtZT\n8I5Y76DV148qhTZMJtWyHcODHP7xO27nDBez6giy8b2hU2FZhUkaBTo4LeXZ\n5x6X6rlOzWHg+uEeLv+VssWaF/iqiPsbGPjvgLkDNBJ/X4ysd3L1QhbnnVrz\nLFQwjJ7WSx4Si9GDbMu1983OLFaTu95hc1oiZZ5ZDff0YmB/jOKZhn3C6jdg\nCZWIL04FhuVDLDVZaSE4ouKbCpv9Gj7YFTuHr9FsDUiV5BPJhF27ISYwcy6U\n2mJ7iDHO5KUBXckiRb7heG7XCi1NXfUT+r4knSpEO4JTKzHghf5MNdKwfL+v\nAlHjwPeAdXv3eUoYharBQvtFCG6fhfBxG8W07l7I8dTAcoPzoEKNn2Ux9GAR\n6MscVSCFO4Pl+lZnltJKLnU0qqs3N1woNs03JaPPFoEvyg3Lr7ZL/yhzkURV\n14LvpEN2659zIRFmVnjB6LwwBpWb0WZMtgqTLyyFBea3HeMBuh91Fj/MwJ5M\nDDfg8sv7EFQoIsBTRJtT+PWV5NKYUgP59Z58FwmNvQJKw7VSfDGq1EvnPdhB\nDFPJ\r\n=e1R8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAYYVdKqRVysH/ZawfE3fGidyx60A5eTbApEZA4Gt7UGAiA43u67CuB4QO0XGAnjtaLy8STB1d26WWi9llxoivVToA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595019313595_1595019320518_0.458206458087538"},"_hasShrinkwrap":false},"1.2.0-next.1595027584041":{"name":"playwright","version":"1.2.0-next.1595027584041","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595027584041","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5Gh/Lyw8aPVV8JQDUi2aaMXkP1lLaO+irbZwOOOIqzH8E2zJr+pW4OsJ596IZD/sZQx6ah+aaLWBBbjNBX8hvg==","shasum":"11208619e9ef5f340fc73232644d68b174a92ed3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595027584041.tgz","fileCount":146,"unpackedSize":1748856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEjCKCRA9TVsSAnZWagAAvIIP/3Cs5ul6HPR8dwL9PlTM\npnmImmZ7BTVq3fpOjBG5MDNQAg4cfNPYlUJzzn+aCEtMU2l34fE5Kojf+tjM\nieSa4sLooeofDwGV6RA9q4R+NbCZ4NqU7EyCrhJ5+nfHI9lfTsOd71wkAjxT\nLmwyq5IKW1o7rxH3MdHZ0m56yZFB/aqJLtaQzOEl2vQ6I5JCC257oEgidEYw\nIBld0nKbF8+ip27lkzFGPfE9mF8dcEdTLHGRXvDHhF3BP/V1VUEJt4fn0s6E\nlz9qGiemE9035OJcJzSsYJDrlPYBsplsR055j0+77xGlh+rUjSQwie4Q3OWB\nmaxVHFn8tmAc8NimMLdX3OcGa7+o7NHmxiO6ED/O6YnKcfkyfW33ehxZv9ZY\nLUQPAqOLhf5JHW4WzyDhA3hGk01AZJKKgd+3UcRS4dRLZeQ9nRLL/dpElpUa\nYMtxjXgIbiHEFvlFFOlEviOIc28FDA1WpcBvbw7FzV9PAl8yXZBvZvdBgrxV\nk1fJQROhBL4oS/qtqCl/8LdJu/xqnBfx82uu4ZXaQUWPSSYvQoFS8JvqxWCO\nFwXq4B8+ZahrqcQxSL0BEKepLZwFJSHa8lAPjC4/SwjMLNAIXkfXRZP2tMK5\n4WfEpRGH10Zwf5OcmUTisADaQFiPntAcP2EKXewRH6T9vJsb+4yHaTGiTp2N\nwrtX\r\n=41F5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS+zrg+AWZjokr4VDlikQVVVdl+wXw/jGuLsis2CvoYwIhAOGflyURjgCiYa6BEnu7zvCDi1dCjsc5msVGc4CbSDI5"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595027584041_1595027593361_0.1904140160043497"},"_hasShrinkwrap":false},"1.2.0-next.1595027819540":{"name":"playwright","version":"1.2.0-next.1595027819540","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595027819540","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-sPrHhgbETZKck+CeKdXq6BLRGXqMYEx86Qcm/ypdkDwrvTyeNjcKleFYgt1Oxn4lEv9rI+NmFgKSdRN4qOOIZQ==","shasum":"af488f7a7ab08e51bbc54b3145d1491eea7ba409","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595027819540.tgz","fileCount":146,"unpackedSize":1749541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEjF0CRA9TVsSAnZWagAA/7wP/iDg4VlqxgpKzj4j0Qr0\nnhkk00Xxeia3Auq93Eu9IltUBL5WktCrCXU+hXuNbUTS0nfCYSkQC1PNOMmg\nmvo4Di77oUVPSVzKzzIJAC5D7zq0V4rJ52vYmbWNe4R9M3e2oIUYr4E3JF7M\nFx7QzE35N0uNJ4sawha6hoDS1n9Cyt0Ln0+eipzi0GVUKuwehPEdmi43EcJ0\n18SRzRj8rf6gIFvLlRPlIPZuYB8jDV6KzEzP5o7dTBKgNUQvMGiOyNRl/q9u\neeysYCocji/b0+3InE/SDhGwoeIYdacJNyUTkdncv93/D/8T7SJ1DG00Ftxa\n+bIPT7HXq4XKSoleUVSTa8wPSoTkK7T6t7hhehTLApkxyTVHOiUZ+C1buYt+\n+SlRPJOaEBr/922EjdVNk8QgaFRZe454Z6LX3X1kgHDZ0WL9CIrPKalgxp4J\nw/lC8wTx4G6PMICIpFcMS+orGQPFjf2AGN164iJdRG6e2+XhRGt2EbY2ycxo\nj5lApgHh0GNsYo/jW70Cp9UwXK6euawCtXKVt3I64HXMVJT95gGYRu1PhV3F\nxa2uZ1v8greK3V0sdeBCDIIX0jpqkTuPaXbgXSPw0qO/ceiISqJ4tDUol/UR\nM1oTux2muIBQl4rBUWYubahoVeyBmy++ehfMkHLhAwTHm3Tf3dTINDb6h7ws\nSM6e\r\n=CIUc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6dviXO9hsW9XOKvKrN6GWPQZ8MUxRPvdiRu+4Iunr/QIhAImTrmGYsIdSp1bgQ/r8VUun/OUvpJ/6dmf1k5+Og2UD"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595027819540_1595027827897_0.9877833705928769"},"_hasShrinkwrap":false},"1.2.0-next.1595028985002":{"name":"playwright","version":"1.2.0-next.1595028985002","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595028985002","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BxG8rufs3dNgNsx3SNeMIE34iwRJkm255NnlFUbuaakZtEOlUq2+qP1kENKt3QrQnuqxCayZxvzlFdhLetgw2A==","shasum":"097488e5768df2c0d56fa27f22b1a7c7e85b0fa7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595028985002.tgz","fileCount":146,"unpackedSize":1749541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEjYACRA9TVsSAnZWagAApCsQAJP4ySKttO0AXBE5ey49\niFV+BPG8O2rSVqm7+qJTy+mx1cADhEGfbx6yaBlyu2olHs91QQBgEX3eenk1\n+7020pwGODOdOLxh5TpHFRaNxJBVTYi4VZCP9T7X7W4HJ2OdIXieZiunyBD1\no/RIPLrnfCZ2Htl8+jpBACe+QR/O1vo1nwjDWchiTevRt72t5ohIJHtb2nq3\neiYCI4sN8uX7We3dPkx0qNZeDhyHvGWDH6fRWxYAE6x6FIr+8QzAzOx12HPW\nOPkfMJjIRPv6X5UXtAY+2ummrsBHkqsNSdsV3PEm4KNK2IMagbRt259iRT8K\ncOGuD7y9f4v/Ld8agNT6fgHkpSsYDiefiF4OP9B1RIZDTHI5gthwq6pUIWeV\ndjismunkiHlj59gF4gy3VUxLSXCwa8OppqfLxR9P24FDLiAIJ8KStVbsdafy\ntY4mf7GyWDluos85dyXisILh1gdUpX/l1jPaNM+zLyGXOgm0ZjXvOCP+KI+2\nOYBaJd+jvfYrCO3h+fztAjeXFhwKH3b0OIYSh+3W0Qg0DDLDOZA4Qhp2RiZs\nzab4tTs7KgdVY2i56mirqxi+VlpqyVGnhuPyKRtcjbn22RgplNrHJh3kP0ig\nNhDxIDvAvWRMA5zdUFnCuRZRlgASWHcoyaJxgrYfBEVbDu/L0F33E64Atjlh\noosC\r\n=kh2j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAN8JLSdCUlfDGw6UbKVQxVipr8Kk4ZGG6vC6j5AX9yAAiEA3A5OFfxkUVTFqzvYunlWjrRoL4oVz0ZGFHHhhBqSAwQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595028985002_1595028992232_0.83997207534057"},"_hasShrinkwrap":false},"1.2.0-next.1595029304887":{"name":"playwright","version":"1.2.0-next.1595029304887","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595029304887","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9Wl0u/s8NUAAiqdjyK9Xo8JwNfE1kIBhrSKqSHHLTHewH6knAeUWlgUQPMqio938z+hdw9v6I4fGn6FYp3F3rg==","shasum":"3ec45e8eb3534538fb27d38cd89e853b3d558bf8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595029304887.tgz","fileCount":146,"unpackedSize":1750603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEjdBCRA9TVsSAnZWagAA65AP/357Mzlwh0Poc+xNTM7q\nncZrd8HmtDC4WCxOsU/D5L4yhXITvaP68T8oNMbTbtdwAEKvs0IrGvsRadeF\nXf2kmOz3TU5+XLW8wZt0dmymvP8YE2TaCt/HxNEUVxaCV1VKZCeLpzcf0CUC\n0reWI4GRouKx3Wu1LIQnQE+CRvW//0NbQjn3gJdlSS3LfRlpz+Dvuia4jnK0\nRpz1RFsMTXmY6jFpcnWZvlLs+TCNsIoLLq3OnN9yGUHSp9r9Pp4MG5qSgFUa\nY+c6FchnofyJv7xxcwpA/T9mRXZHb4hhIG2oK/sFkcCS0rqiREtIdvRTPtGU\n1vrWorachHdyRFzC0z0ryqMnGrcprNQscLRjmZdzx8ukX0r/I+b6tsjDPWOP\nzQjc6n4F0Q1kzdYdVAjH86qsw6/MidqVjcDl0S0gott3WaZSA5anynCYSfvq\nPZ+iYOo9j48hhPkJUpLqUDzu+1lWrdpbjHf4KxeIVxNbpORtj+/jHL+nii0V\ntqKBMlF/k5naWji47G6Od7JTWmLD4AkbU8bXVr63La3CrevXEw8MoSMt5TBA\nSU6tR98RpU+32NGX2ZnWoOoksffAHnIhnGdUsc0+RSy0iqitcG4GanngH7ka\nmmT3DBkhBBlDb3Gaf1DN23kBLQgjKYHRoXoH1CZOtFvu65cBCpJc4DG4gleU\nAoOT\r\n=OwoG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCV06Pzc9dEjI63b2fqkYNytMlt+EhPco1XUWvqkv8VQIgRke6uSq4mqoEXMH6ZVuNYnmCMfIMZu5AFGA5COvpCvQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595029304887_1595029312595_0.7884986813986326"},"_hasShrinkwrap":false},"1.2.0-next.1595030038372":{"name":"playwright","version":"1.2.0-next.1595030038372","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595030038372","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rdYlT6n8ZzXBQp6fsMkf8S0xIt0Ey00icvMFxtD+bnoBA7dbbPzFIw4yVAcDQQkNcmCW4tIIRWVI/XlJsL5IYA==","shasum":"62b82ffe3b84287b8cca61cb706dd143a25e0322","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595030038372.tgz","fileCount":146,"unpackedSize":1755943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEjogCRA9TVsSAnZWagAAvJ8QAJ3tlt/O9akhSPYdsne4\nqR9RRph1FMX6HcU0pjm+AYtanpQKfYmAzQbbpQkDFTrUDKQL5DABBz0CoRYw\nC32eIH6Afk0e3ggtJscg/QvNj5oTcKmXrkfhKy/3ER6atk1tp6kfD8PKhqoG\nlZK4qMOgvJjNL+e2Ii4D8FUtQyfDNkDqyQwCcHI9W/LEzeVCjh/VLSWpe+bG\n/IiQl5OT/DhN/SLtuPZoZcuJkGpMiaxDfDWE8pxHKWihJPTF6+NbPvnWcuzX\nasuiFvnRJv821af14B400HOGqKdYjdyQDLYT+/atK2W/oHCZvsssd99txxNj\nd86mUerTq/5G195YqAsT8EHMGxjF3QopvCtBVwm2iqvfMVppHQ9Doe6lOQJg\nOYeLOsIM/uBALJD7871umTv0Ni6V/wmTsHVe1yynTsfptg5njnJHre+fpF2W\n6v5rVced+sh684EWwmAo0gW37pfr7IN9ABC2HXZ3jQl2q87fM9LrCMt9UDn5\nSM/difRa9y84wbiUTT9c+V556Ag9D5S5UzZjNwKXli4/BU0oDSeBdhuNBFIh\nnjHYKvr/Dfq4tquJU1nzN6elf2o+KdQUciAifFX5C1Xhr+nFZH/sbpDlK+U/\n2uBUDOV3i1rO8gHtBmelZ+W6iYFa4Z5BKG3d0riGcTHvFVjXP6+V+2rAMHiF\nVIqj\r\n=lYp7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC//J2D10VHJ4aoJzgQj5nFlOF0rvBm0+cp0L6w5gkiZAiAGNL7MYirtt4WwcborLqKuf8FefxaxZ8MFkNPXxqMM4w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595030038372_1595030048446_0.19180444637525929"},"_hasShrinkwrap":false},"1.2.0-next.1595031569132":{"name":"playwright","version":"1.2.0-next.1595031569132","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595031569132","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3BVJAu06a/R8ViihbNhi4uIoKRx+RCafC+zN3fF5VMCKXr1c/BrZRPF85JG0gRBqZdWt8poiEj5JTw9tDogWDg==","shasum":"ca87cb3dc425b349064d7cbe02328ff7e7cb999b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595031569132.tgz","fileCount":146,"unpackedSize":1755943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEkAZCRA9TVsSAnZWagAAXogP/iuUqylMvOcjLWrZt/2z\nV6rFPM01ZTJUDmYL441m5Bew2DPSttE9wjLoSeYHb83kRy/I2cwlE9tfqzMT\nHqYump3+geRXCnSfARoeZpZiCYrv/sVKe9CvCC9SINwHunTnonBcXcSpe9XY\nE0G4iIsjUSe/XsVWwKzqI9J5AxFAxr2m9epnkEiimzC9JKrJu1q2E38+5NY0\nMrtsDgLuwNlXPzGm/gas4FgFEz70Dspg8Kth4W7R/D4scXBMOaNYYYSGl0Ym\npQUEZzvrc4FNE+QnoIhul5403WU2gjil5k7NWR5P/ZHdfmm/tYLOTORKjMnH\n1ijnKE7XQ8oM6r1GRoGKepm19ClTr9lwH1ToEvSH1rJLN5NHra2Rsz1a9vSQ\nZHMFCGWSDqcx4n9wBdqwA0ztaZB6mU9mZybzeooKdj+jGKxR4kOvjZB8V0hB\nbTRlem6sJUXAAHzV4Kf6CMGRriJcobkTV53Gs25HE8xIImbYRX3dyEFxRIvI\nTACbBPl+Y3X3cCRKXYDrl5JfmjnaPg75YihpRWhEv1aoFWTKAMbyJkFeojFO\nKZ8pS+6J8auue6To/P70/cYd72W90W53J3MAtzwvlPfy8xS/sNTT45VkMKo3\nMLPlMducMnGyfK/kOG4l+gg2j9p5QvM3QONo0wbllYGPR3qesL8hnBpUv/GD\nP4/j\r\n=bUvo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHhBFn/JNdIVR0pkvd8TP9gqgP4FeP2JclDMMM1ywrQAiAL9dDJEmjkvnES68GSEFuGhDl5kDpjRLFomhwryC8Rog=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595031569132_1595031576796_0.4224848270305903"},"_hasShrinkwrap":false},"1.2.0-next.1595032578852":{"name":"playwright","version":"1.2.0-next.1595032578852","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595032578852","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-SYyDxTgwuLsq+ns79Nz9y39FFfga7synwZg+lOD60w1fyzm0Ci/58nRmAXpuKxLuw72OXNhFQQ2XjJsFD6/nVg==","shasum":"8cb50f4044aa9d2e2f176ffb436f245e8854fe5c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595032578852.tgz","fileCount":146,"unpackedSize":1755943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEkQLCRA9TVsSAnZWagAAjWMP/3y00usQL6H03q1kfL/D\nNhIG5khHxyEFjtaMHrlf7RPR9llZ6/oOJnlGmnlHTI2pTYuQ9fa/SXEIIFfj\naM33KllXrYSV7IZb6zS+I8AUXrGZgATIGG3r/klb708rCZnmvW3xzEU7Z8Ut\nG6ADPkJXkCTJ05YLc4oWAWfqGl1862Nd0iOgZmzj19NbnI0s+G9Hs6+513qg\nki6e3GsJtbI5ce3bhXMbsU9YzmtufMfweRPaBYtNkJ+icwix25WKqA/XQFqY\nY1iV59U5LLpPj44wWNlwkNnkzmbMrSVx68LVZf/ZaBr3XvmaWTsJlkhlgsKv\nwvtsReB08G1nvdlT7i2zvzAEqrfmQAxAe+e0C93DuAo3F99LJVkbmG+U2iYC\nEpqkNlF48xO7RJ0Nx8PGMrs48x27D+9VncDNWrYmRy/2P6d5jl4V/1+I6rqn\nxOBnBXhPXPwCGBv9Yrxl2hrfEN674RUU1LrdaG+4Y8XAcH7grxw36AUT6set\nu1r0+plqclF0KaGi3EtONMhOvDqm9nZgg5TG/rfDR/BC8MPYUDiAGGKYB9J2\nfXo00UtiBWVSHx4xtIEI5bPtmQ/P7PCYVM1SfnBkKUWa4zURvpF05AVBJQJR\nMbUNjH/DajX/gEZqQrNrUy0DF8Na6RuNpfrnCYO+JD50rvRF1qUvzSb6egKu\nc8LC\r\n=mbtx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbPrNGqm+GMieYOpyzSjGlb+PDpJ9Ns39vuAHbwANu/wIgG73JE5c0OaZEr6DbaRcNOGD2g9QvwgFzPxCivPV/OmE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595032578852_1595032586895_0.5990496643420777"},"_hasShrinkwrap":false},"1.2.0-next.1595040996323":{"name":"playwright","version":"1.2.0-next.1595040996323","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595040996323","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qu5xNzVANCJg9KPnUDtBQ2YEKho5iQiTB0VgjtPkjGkK6s6DFEf3uTM4nva2Lr+yr8zYYmXFr+wiVeEIAhuAxA==","shasum":"398e2b677f1829d9b131d4971e8908607ac93f44","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595040996323.tgz","fileCount":146,"unpackedSize":1755943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEmTsCRA9TVsSAnZWagAAuHEP/24B+V7vokEmIWnFTP7C\nBrW/oatLXcBsgtyL6TA0x6yEWPUVUkiVEQx69WeZ+yG+sRC4xRriAHRIt0OR\nXkyfLT4vVixbZjjjSY7UFbLh5ZdpWA+kqdyTE/rjUnektT90HB0nLkyk36RA\npM+EuaybJJBk5ecXn5X6fDhREsPa1Hw/2bjd6oQvEFUTYhVo6wyyjZS9KN5l\ny3ibGJ9R7B/7EQ7BLfYXclHY40kDXMfPSMnNd5b/AXa2oN4LBDNmYyQcthDF\nD6CAuw/wfSP7X+e2KLQ3DdQEhXh6XCd1C2K0CxCVuk/uvAKF0bcW/7iELTgy\nXfPsxMF7pY7P5myOEtFMqyIwc1El8SIVLmzrk34T8H5KUzX5+Uq84xJf9NUm\nkBrJ2X4hnsnh/jZshGmxh/1294eUkyhlYiKwq2f8V2l5ORXPbMLGmo/cKrjn\nVDVcBzUPlLhATxSYY8wCibP6IMeputq2aJWH4FhifqTQKcLtJX9s3QIEQx8j\nlTyL5kTywH9ckFR1VfFe+2wfAEt3O7J5OTiK0scS4hDKXRvWHqJ4EDjqXDyt\n7N9sqzVRWOrHhgQfGeTDx03+xCmyD2dnhYveyyzdxM56uXgiXJ+Ydr3oF4zJ\nmRxmMn+16veMzRa7UgtqVwAMXvbgqmnIPZA2hrpicD73zc7crzbfZDIxYcWd\nVQhd\r\n=n9eb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBs1MuVYWQCmWoyQoAUtLsdIVnkWqx8hobwdH6Paunj5AiEAlnbyfsU1jSPZcnEGW0+vdrQfx94rI1moQ/nKkY25sL4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595040996323_1595041004413_0.8748590273457584"},"_hasShrinkwrap":false},"1.2.0-next.1595094993390":{"name":"playwright","version":"1.2.0-next.1595094993390","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595094993390","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pQN9R6bBH1v38hhjMqAQRQdPi4P8mAmuhw3C6lgK1vJ1wy5GXi0uNlIm7ZN51CeoFKNJCUSRJKp9SBnGearDlg==","shasum":"55179068c9fca15779ada94c8b71791d6816f825","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595094993390.tgz","fileCount":146,"unpackedSize":1756033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEzfZCRA9TVsSAnZWagAAXbwP/RQ2CAg9l3OsnM26T7b+\n1+OBkojBBwp2ZBjL/s7/mfz3gLCOWkeRHaUt5+Q/LcQKSYQf2mxwfMBL2dPX\njYr5PuEfGUxa/ouRwzNFYEKA7f6Zedf0DAMYWQmUilf9n+Ah4G0G+wajhPjj\nuAHipkahU/0uUMNGNrzM0Nm/UYzYtKRGBXlO4Fnr+tkL33ehWm6MS69x1qW+\n66GF3/RR92WDpdTP3aB7IxkTRBud588EWIpa3M3Q/s7s/72lxlwxSMWRYFMr\nWLNk1IWAI9SGWRCabejSsE7oLpac0QT38rDTIWHLRulR6YKyaNFTiITklWRZ\nu9/CDt5iiNC/Q+xR0IJ4qpB/ivhYjp8XsoE52i/A7kmonokstLPLMWmzunQn\nJ5qhgsljSkeCkUviIjQmT+97OlgTCukyWTqUMCinl7ZYfOG6/w1qdADbwCWx\nri/ItOZ9SKFGdpEV774odrxT5vDrWok6y+e6/pzY+PbeGysKl9hn1cy+dIOU\nqz0xg1gcamfjzH/UdEbnwdaoj6YCEDtOTlLN+CHxkkTDyNGUDPyuHEBXGOCm\neXNeEqaO/5+Oo6+wvmWhKrbGwI24LUIHrCNjcUGBNHU2cEk/gP+rYs8XnMj2\nzGW5ulpqmqauLSExGB5x9SkccICcTnquC9uO4v1PKHQEHXQoInTqhY6vvp+j\nKtHg\r\n=aBrK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6Zmyn/0Bzc54AtWh0PqEv7GY2bK8QOGe+QLvFVKxq6gIhAKj0b2ytYcTMSBUXDu8UxWjSI+Q1VrRYuPgtg2EAwsoT"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595094993390_1595095001233_0.13913233179537987"},"_hasShrinkwrap":false},"1.2.0-next.1595213306782":{"name":"playwright","version":"1.2.0-next.1595213306782","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595213306782","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zgNbbDbP3z+82HhQJNMO2BNaW2HzjIVSiEgABH9iey+eRJfoXote+SytcbzgbDfew/TXtqSD61kPBwMT8ch0Rw==","shasum":"e55b7b28df09c9f717b59df78f8bc07eb3c90f4c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595213306782.tgz","fileCount":146,"unpackedSize":1756208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFQYECRA9TVsSAnZWagAAJb8P/1ma9xvhUXD2YSvFzCZG\nZUN6SVfRZWQrYQlTIJlHp10kwdsx6lYQ+26u2ElnquZdJdCi4fE63m5Im5BS\nLnJ5G+aWca0cX13f+jwiSEPIUW8/94vwOId6GEu4CIfa6OlJozFGpldAKhqN\nDphaZe0EvFzv9bvF89kqXv2UrYki8MWNuIYRnN7osXxhfpYl9OfX/Lm/UYwh\nX/b90D8TzUrlylEECSeAS6ZFnIv0oubbpX/wdKec2kpB+pz/XK47mtZpXgE6\nlK9RkqAkh6tEJgUtLBAPIWp+G3ZjqjASa02lqg8ROuqRew8+nh2JUsPb06sL\nD+iMHQQ+F4QGu5eqZp7pqF/hknc27M4QG4CGWNcNFl3QEumm38j5/Bc9eeN1\n9eHopafLWxEsOc5QzUced1gxDlrb1VCercJGftPJL4lm6+ECDCgkbhxWM+Ur\nu1+fUamB23/o+27DUUQFRz74O0bZtSqNLmLQLHoWQj0222kkmBQlGRacc5Ed\nyIx/qrpa0D52jYbMvs7yi/w6OfiDUiTxISG0G8kJIBApAOnUZgkAP0l6iUoI\nrjdDqfhcJlAC2bNduS/oJGTooqqQcNP4UgAhNkz2Wpyf/iJ1n85DFCsbTBgW\nAGHUR+q/fCEFZmYW264AeSAXlptgA8+k4Jkk8zTj0RBB+Safz4N06VsQqpQj\n3SHW\r\n=2r5P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAGNLwqzjZfwaYLIqIG40ZRp4SMyCMJnpUF+GsDSEvS7AiEA2WPzd69YkG/MHK69wkc9DfmngR1M4dM4fKHlpALga54="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595213306782_1595213315674_0.21933340241487032"},"_hasShrinkwrap":false},"1.2.0-next.1595263293876":{"name":"playwright","version":"1.2.0-next.1595263293876","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595263293876","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TKDQnKJPA5CdtbzwpgJuYcSvZ/zoy4o1nJ0WCVhZljqcGWFuSWTVAi8zS8VLLWh0YIauQEUDS2gkfxGd36+WGA==","shasum":"13629b0b05fc1aa388863d3a71a8c1d7abc6cb0f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595263293876.tgz","fileCount":146,"unpackedSize":1756216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFclICRA9TVsSAnZWagAAkAEQAKAmjyVRFtYWo0itnCfl\nv/Z7jNnodA4Y/LN/611mV+JU2aJpvMXMAR9eUPboOgJxSFl6N9VDVbCoWSzR\nCqWMwfYO5Q07MPyMjj7RkCzqbWsGW5GYzJ9p9FPXIvllfAps7NbjkYaSa00n\nAxVFcyr6RTP+WxaUT/6j0EN9RRoJDt/C1Qq4cunyAl9oxcEwI4cEwe1EVxTv\nYalLxl3y4KKKoo11e/4JKEO9pjiIt6LQEwD9RokN8tRWzmEwAwU8uZjm2pMz\n9QW/GwBviQDWGnBusU3WUUyIOCW641S9bZcdO99h5Y0SqJ9yhf2gSnwPsKLx\n0oxrFwRly7Nk3u+hOh1GsalFt5Y4rMLDANcPBf0wGcBWEzltiNNEvaiSPX/y\nEarJbtSU698PBrjqJs78YYE3UyPKlvv5qlj8fpFmh+bxemHt0o+2A84JBGRr\nlIaoUOKJvaVkdrw6SJFG3FSrLR52TkaauAOm8ji80Lw/pNYmL4YKYX2f41in\nTySZZVYMEEoisYOOQp9qFISmRtHlfxH7fV/85al8IsDpN96fu+8r65XDBXvC\nIYhj5FDX9orPfqk9wheKHpSe6SVgpBF0r74o9QM+UBKbLZr9fS/sShz+M8kH\nZcIEXzaCVoOHVisP4Uv3SevvfuKl+t2lWG0+jn/aRR4MuS2GkUHNRNJI1W8i\nfYPi\r\n=mTwk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3ex3qk5c3FVZDSFpCzqMHBydC+vhFzJ9MjHAwXvqNigIgZHWUejdsG+uL6a85VLReN4Bc1GMnePxLmvPBq+DKXSI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595263293876_1595263304048_0.10785276883251926"},"_hasShrinkwrap":false},"1.2.0-next.1595266676391":{"name":"playwright","version":"1.2.0-next.1595266676391","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595266676391","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3KRR0KwYIN6qq+A8ac4Kv5aU0VIR64OG3voEF4hl09eVx41y1h+ngl+fSi5sikVLn+CtCRraqWGeO9UIrNQWxw==","shasum":"7f6bac47c31ead03c1c7cddb3ad822e2055309fd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595266676391.tgz","fileCount":146,"unpackedSize":1756216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFdZ9CRA9TVsSAnZWagAAFHsP/jWZ/lmJPeBnQJ2PJlCf\nkj3Fu6zDSndjG8JzeGBR1l7lR9TpbCzp/ihZCvha45E2Qfz6wtl/H8kCCwNH\nWdAaz2lwWZJsjBvcXfHs3MTZpj9Wlo4SVX9mG9D58opTeY0dzbEhzkc80DJL\nfnbr84IUDRulWV+/yVcQCswNphmb9tEUKPTb81lCQ95iN+j4o+0nKC5c3ZZp\nj6e8XbvuERrWEA9qiZHtVP1zCn0Uq8n7w/SEYgImrcTb+05GQLSRsnd5R4/s\nyX6YmbRovJbnFgofGSW95YqxgFIR5DBKufGdVHe19IQcF7X3whpCk0Ny/DX+\nLoxwTj4LvwLMx6msWsf2LQzPSoRYTQjfS/TE+5Dyejgz/aId7vutCpyyvhor\n3pnjhhPLrlhBy4P9N1KQxQHC0kUcqceVzsMAvuinFc55y26oogE8aU/eGS8M\nnDUZYWkfKzm7AT8wD7M4tJwNX+8OMiQB448MHm9VT6quBDWEMDlRupK5TzvQ\n1zwO0KOFUZgTkbI2vJk2tVpV91fmmOfcN18l8iUJdNrA5NLJuI2PSArcmx0W\noylYMa3M6HqxZSS9xO0+TI3qTW1Inoa6MHN1Rzukq0+LFXKJ1NE+vSPvdLeA\nzbiprndPHGzpfTroXA1tHf8wjFB0bhmPzz6e0y4gXIi1rKuk8wGBcnxTyjpf\nsSm6\r\n=n6Hf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPtNmEwDw+n4XHd2w5JYrkgOlfSiuLDOBUZx70/tBv2QIhAKLibnzF3NrS0YgA3P3qac0YaXhgYnvTXc4OJ9fUAYmb"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595266676391_1595266685403_0.13489145353713639"},"_hasShrinkwrap":false},"1.2.0-next.1595267162711":{"name":"playwright","version":"1.2.0-next.1595267162711","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595267162711","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-GmfgRvvbmExx7T+qkJ4SDvT4kaptcEeAD5xKgspDufbD1tRCRfscP9oy/GHUJjeYEw8i5A8/jOu62KuD29I9hw==","shasum":"6f4ce796ec31148cf12fd57f6906a7cc20ba3934","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595267162711.tgz","fileCount":146,"unpackedSize":1756216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFdhiCRA9TVsSAnZWagAAW2UP/RsbUSRn7s2YM7QcZbaE\nr5HvZreUHZHOr6Rz1wyjiOp1/NFtWhMtNuJlNEm5hoKSpDhibIABcm6mHIJo\nzp1zSEAd4QbYyh7wN6Nd68Cd3FeGbujp+9Cc/51T82jQ7tJVannf3JVAm0HY\nFKMY7KgG5LwD1GLbbCn34PFPGNqO/qSCoODRC6YNI1FcMhzuYL3+ALzFWoYT\nLMmr0Pm7f60LAnii6w0GHrKIvHYwjQ+KKUl/J3kd6d3zkxeD8hVmNL7GCfxF\nsFb5zhKY93br4W4wCWO2+9oRE/OV9zALJQF9xvS7r4p9uTAIvQnib68m1+zF\nMtpiG7mkpgvQJ7HSCsd8ewBemtqnh69PERYWGpzGj6nt6LvtVRAXtlMBtyPl\nn0Zga0PVa9jh2/4KarirOmS8GgeBDkZa35yJhhUkOFLeRliB89R+8HvbTi4D\nVX9ALuEitchO1Oy2pRhxdv0ar7s7r4+PZZcYLN7wNsMzhcn6rMLXf9+htVGy\nJF31dyBgPcJWg0Uj8Cqjgq8FXv9ZOiN6W7wpwqopUHiRalPxnB+LjYAFK0jT\nwmGC9knkhrEwLP9vx/OXvanvTRAxCxMON/ZmKQ0qmm+O+QZOMOsyKOQH91c/\n22/r+OjqppjbdrZqdvDNKd1vpW+RNGyaux9mpjHsnFKQlc8lYwG+/vgHbvae\nAEDA\r\n=2IQF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYHlM5xJBguG9biY8z4CvK4Ga9iqNxn43fNkvMvAT2kwIhAJyL0Vmzw2X0N0nYQjYFWfnU3o33KYxhKshoCnxQl4mS"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595267162711_1595267170227_0.9181904121215037"},"_hasShrinkwrap":false},"1.2.0-next.1595277274592":{"name":"playwright","version":"1.2.0-next.1595277274592","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595277274592","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-yT7G44b006Uv/fUVekO9+qzFwpFML36hOKu8zBYzCCtUMnXb6CAYxrAzv3mJyID7gtLMxuoYRuDiQ/fUrUg6QA==","shasum":"184e68089ea43bfadb4dfb7825842653fe821f70","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595277274592.tgz","fileCount":146,"unpackedSize":1756216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFf/lCRA9TVsSAnZWagAAj5sP/3X9icNvliGLgnK5z7Jo\nejfi5054vb2LYJarXB1soEFOpFshJr+3CQhUnxWclIqzossUS6M2SPZvXZPJ\nisXkEwP8muM3EO5mh035MtB8WoW/xCdoUkBBaUIlUJ/APzFl9B0yJFJkQMCj\n1+kUz1XHhYSl5eaXxrWBr9iIVpFkrm49ZpYmwDI+j5HVaPkkiBE17AfFOetn\nBHK6kumymA88Ri5u4HX3TcMMMrbTDDKjNoBvYDMoTo8aoYrzDTLDnzkm2sBr\nq6A6/CNwTafDq/AxXCIpuMlXeJj6eDzOkaoOMPRBfvJsA7dvdrI8BMHCTTqH\nWY0S6KaV4s/yNHQHQUSOqnnMQ6OhQIbW89HpCe82SfA2Zobd0P/XwmHuRV/h\nGmqK43c5DmTcSgVyTQ9DkoN6yL+4rTlnnbVurWIBCFtT8xxb6WKTw5iSnjrm\nPVndwgg1EjRRZk7/B0lolQ4BcmBWauU1ICRMeXPJ0jYE7pz9ermPFupB/nNl\notQ/Dulwo0oYDIqGdc/fvW3vn5ixPSw22X5Yhwvo770udv/yZMR7iU2DGnq2\nQnqUbrlhooQsVyhlww8KhQyLlXq922J0ArtOO9Vo+vXZRFcrNXh4Uk3tMb80\nv/bIxbk1g8wi/z2hka06FeREF+7867sWLe55Q7oYSscO9DD+DDzfwsQ7HdET\nQSN/\r\n=6Gfj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDq8/GmuHvgxVVe7gZHO8tCbdi3+Q8poWILnNxkCTBPlAiEAwT88oFoWpd6SPWARlP/hnYm7Jwb1p5wajJoxQVg+GWA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595277274592_1595277284698_0.8031536993750565"},"_hasShrinkwrap":false},"1.2.0-next.1595280440253":{"name":"playwright","version":"1.2.0-next.1595280440253","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595280440253","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Yz5J9FdyuG+S+reTI7uQujrplQX8UAof55wXldsdoQneA0US7CnqSQpdALLHkflq/XJjUjdtKzP0+XqlqVZPuQ==","shasum":"8c1a148a3b658d917d96247d208e8edaf88ebb94","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595280440253.tgz","fileCount":146,"unpackedSize":1756216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFgxCCRA9TVsSAnZWagAAi84P/A6K9Nq/uFfEP/X5dNUC\nHdEmUEN+DMJ+Zfq1proLXynrcc5bmbrGn1J7CA49SekX57/OUb/ShBn6zB+H\nEamsnIEhrF+lrnrB4SPa19jfCznsIwAXAv/7FwoeZv1a0QiGnipFGiaukyCT\nz0f3+CtPEIw95VjF8/i+xJx0HM14StwzF5bh0UqTENAXhiJJspE4t0X7gk67\n/jJOxNmWtAITvhihjZMPDz067rqNwSjsBDPGpWi7fnGNgcfRV+KEe8GoKr7c\nBuYrwfQCJy/6ysFyXoEacd0kSYQ50L6Fc5hbX5URR54LonxYDK07EYvNlHSa\nZFmTdabm+7d4ryilfUuPqMMc7YRhWUqpHQXG47BLvuw3Q93ghuu/aJch8VVI\nVJQUKSHCpQjIQPfVuhOwwqXm1Gm9Ceg1rAFujd0fVBRWzZcphNpyfdaVLfIL\nv7iuUTWBTDjBHb7FLp7NAgwDOP3K9MakNtuYspN8IN0xF2NzHj4dtg1l69zY\nbqy3yJnsHGkae/xaOa0K+7YPkTKN9HkO0SQ5upsJUFMZ1McDkFdFE4ACUYda\nhlmYRFJGFbVZh15Na1A9W4ly07wd1u6qhJTxXYWvaGH9syt5VWTKmPXRlkwp\ny3tMl+RAEMrkGvCtICxZSeoq42kRSwUAg0XGKfuZx2pEFSmhyGc7HQHXK3G5\nUS99\r\n=YDAg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+7Atv2bCMITmotFBhfiyb2X9+dkKnW3P1vGHyT2QpewIgfPMbklz2lMS9bWKxX56UVGm3ewVPbcxMc4e0sQLToXc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595280440253_1595280450039_0.5944701066707767"},"_hasShrinkwrap":false},"1.2.0-next.1595282630187":{"name":"playwright","version":"1.2.0-next.1595282630187","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595282630187","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-A4lXrYwkdZZxv69Esmy8HtDjkUSN06qsRWiIX58rycUUtVyRAgd8bl7Do4qlGxfKmIGx+tQQYfkrOBZFu6jXKg==","shasum":"16713af1e5f3db400b31a2acf2bddaaa4a053451","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595282630187.tgz","fileCount":146,"unpackedSize":1756216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFhTOCRA9TVsSAnZWagAAgEoP/30GbOhgVLKLAjzqb4D3\n34XPI+lspYbBOUec9SDEV0pRplRI81dXkg41MifAUox4TljeR8z3jVl8EJAh\nGdLzor2HGHelkRoCFojC0+rxZU80AiYY3Olxvv7mGnfJ8ttNXDucStVo8c+4\nHeThpPAmX7e7ztmIXKKpjmIoCzYm/aoqIT6z3ym6ZxLoQUod9SBSO8r+r/h2\nGaxlz4lZ7yP1S4Pk8Inw2mVa0YUAv3OGQImnzUs6m1bagKIM4ZqxCAHL5LZ3\nei7knej+PYOmW8LWFQHm8hmiqWqzQUqayShfX19WFpCC/yWEIKA/kD747bjD\n1zwsfOh4pmT87ks2XwzGbFxjmnE9BZcobNv1dzBDW4oaVeTCAe5YaQC4H1+2\nQ0y6hr1ocTpSgMyvUeNyuDCWGnddqkViDVfvUa1K0L5rbvah0XN0dWmXRpOW\ngn6x9ogojQGMvDuWgtUbJICrscf4Bw2HAaIbenU1q6dC8LVRAWBhknhZs26E\n1fz7p+JTJCmcuxnu78FlGkHzi/GG7lC4mYNesfDYPN6rikw+/FzcxoEnMzM4\n7yQxjgWpoLtPZdzJnlGJdze1dd6o3+P5uUtNNdSLERDvTRzOXveHo3HNqY3P\nYI6n8I2kvJBjPpSTn4Gv5xCjCz2jgi/UXqhj3yaeDIkoHVhH5KpNlx+fF1ui\nbeEw\r\n=Wvy4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHsvBl8LDiwfA1FPSyjuHt2L6/i0EphtkCkpNiVXA6dAiEA6g/56IKTaLvm2AAcEvDsMPwKdegmu7OfQS4u6sbdOCs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595282630187_1595282638388_0.21396312747474533"},"_hasShrinkwrap":false},"1.2.0-next.1595288965914":{"name":"playwright","version":"1.2.0-next.1595288965914","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595288965914","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-U7EHUTEljWSMQoiV+WbJ45wcnaIEvhHJrHixCatUaj9sPb+i1Hcc/aLaz4AI62PrQdvD8HGrygeQIrzJYzAK6Q==","shasum":"adaefe57f21852d52362e3d5e636200c2c8ce370","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595288965914.tgz","fileCount":146,"unpackedSize":1756216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFi2OCRA9TVsSAnZWagAAqKMP/1+Q0r9rg9RcfOa2G+mx\nOR6kL/KcbMq1YfVQDAYKgRODa/PShH6jT9hcaqCrHPIKH8vysDizcU2yGEYD\n0Wvvz7GcIFENH++k7LN/0Isf4IifIB4DfMWe97SaJjCPgY/G7sKMcdsTr2Lf\nR218NL7BZBPseu0X0POwBshn4H2DhSIXoEkAzii4+s71ALhbfrlhi93fXuPE\n9jMearRzOvOwLeZMgnsCqmhQHcxhMzK4F5yAeAlYtIQtvh8002zF6qRK7bJx\n46vDrvc0xVUhGQYPYDrF9GAQkKnXMUh0plLaSWnRcayWfKQHnZmZz7t8zRNE\nDcpwqfljXFGB+ljLrtZynjjvUQ80jlcxmZk4fsWWP48Ec2nardYANodznPcq\nShqsE+pAu5NN9Gh5tZLf97fYhpItjcJ7ZYEhq8rHSAw540K4OAgj+RhNmYEl\n8FYpoFQ7ZEesi4rC1E8itzFyTMzY6v1PT3GoIfJKhQ+zFOsFMXxCYu7EeMBK\nygTxYvNvnVXQWr9cuIAPXvJuA935pvL2S93OSQF32VPtEMZUdBT6WvrNinhQ\ntqEU1BmZ+nkj3RP8KP0frMxYCIH55vorX7/9SMSWjCirQkv/5LJehslRpgpB\nQM4QZM8RmoMKBjViCAu30sA4UW8PfErrPWforKFA8PKsHbQbVit4kyCZZ/iG\n7qzt\r\n=i9AD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN08gIJF6VX93/q9daIUahWOt2grWj0vsxII4uQ5IGYwIhAKZ+laLExJmU3g2q38zTa4PDuUhBVfDWyj80vs5tUEF9"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595288965914_1595288973912_0.32637650873773905"},"_hasShrinkwrap":false},"1.2.0-next.1595292010376":{"name":"playwright","version":"1.2.0-next.1595292010376","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595292010376","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Y5iISCDY0SxON27krAaeL87OkTLk9nUOC9ElXT3KH1TUPB+aq4HMKIlXTHdMyYZLwKPdapqi52XvDrmgH+JM5w==","shasum":"514a32d2d8742b72f69390d9ccf51f581d980d19","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595292010376.tgz","fileCount":146,"unpackedSize":1757891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFjlzCRA9TVsSAnZWagAAMhMP/08L14thoBqfvMrb6eWU\nNWDt98oRdergDxaLQkE19P1/w27lh8GtHyPERoZ3W5P5fJkLmf6Gwm8qM1kw\nwfZ2Xi1SAr9aB29QB36eUmkrSzeYXha5BMbtUF3pfY6Ol+jCqrH+MUVpGUa6\nfk9P5G9Oim2kxhlUiuspKkkP+kuMEZ70HBCjLg+iL1nNTS033VB28GXyTVnM\nWVRyMpzmRQuL8KfhiEB7J8qvmUmu7hjTc2Ci2nFWscHwGAoDOGI0bLY/k+s2\nPLlsZtG5rW4xvMqdTF6CulVz9Ae6eHrhjrgsVy2bzu5wjCHjdyt9J0RVPyAN\nMtfMuZ0vTl0bYz1DtrmGQOWlkmen2/yp5SRSOWxgqRa3K8SGduZITL93x7G7\n/DQIbxXa215ql363aTfHXm1ZaRIEXG6LFOMNgGh4WW90zJh1v0H2VDDgSbUl\nbCTaS3MBvOxXJUzv/RpbWbCTx8XlaHUAHLzIUkcceokHmPGmYfjXn/nmwzt+\nRoqQzc/A4CncvtW3UpUALggvpTd//thhx24PPo/3Qe9egTXYNpcTJjJLIJ5Z\nLU+TtkTZKEqjuqgsRGgt+2a9uTsMsEo0bfEQetyRqFE5RxmHpD3tQt0NFEIl\nAVSDtGSOfH+KG+Vn0QxluNi0MzoIpuLCCnKpn2wDkJU2LiBPHhSx3hUzMsT1\nDBL+\r\n=0MER\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnn+CXXD9Np/MS24E+pHB2+aUBWaaNcG/uwUGD1nPrOgIgBtS1kPUwLCsN3DGp+Q9blwOTUjz22OmMYY78zzMupXo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595292010376_1595292018966_0.35156795251069406"},"_hasShrinkwrap":false},"1.2.0-next.1595345333479":{"name":"playwright","version":"1.2.0-next.1595345333479","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595345333479","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YBjdSnt3i7y31EbiQ74wFsAmRtBFCimQMO5Tx0rkpzW4UwvBU5WMG1xdnBIFXLyw7MYuJGwCSzUncco1tN1wSw==","shasum":"52cf0dfaa563f1565ed0933c2d5c30feae7918ee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595345333479.tgz","fileCount":146,"unpackedSize":1760148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFwnBCRA9TVsSAnZWagAAMj8P/jaHEGeWW3bMMF+keDrq\nFinwz876vyI4ybq1b/pWDKBudiSXX/jm+v18jWgI9c6rL9ANTRJCZuPaDuEl\nhF+wtietFlBO+KLsAPwnzgpYCEUGR65crdLz+HYKZj/ylBkkh2UvuujdDbVH\nB46wFn7biTqNuIgXmSB5x8/1NqJ8VeDaBj+Rql4aKtV/J1b+r+osBguU2F/+\nVS92u5FO6JkdUmTI+RElt5hDe34ZVeScXi0vvVPUsQHPEczjGg3tJ0b3nSEm\n3QTAR6x2fu+PuX8Zqf42dcyiqmJojWoOzFg3JfD2gqgqWOVEYfQyIvzHo0Jl\nSpZwLAr6phJrWPu39MjYh4L38/dPdgrsbkWGPw3wj7dEwmIBx922wjDT1mgd\nrUVGdxfj7D4c7BwNYOy3oYJNaJrDI/1M9sHAiA38eOopUyjnMASvkRMTWubv\nQJw1xWdjJhebBXdvoCkGcQnIITORPxPFYGUoCoWXyfll1fsrYEPNfa6Qb8TG\nph9NGpHWevADmH9v5ukk3aCK/Vf9EwdK3JBnlXYjUESb3VjmsbXd4hHvz093\nPICzbRssCLfho5PLfaF0A1lx46/9gwc9P84d3Xh8xh1Y+xyMcu0fdrB79zmP\nxn9hlxyU50AgXVq56kV9rEDyz9Ui6YCiBL2F5kzStITRB8oboZ00rT7O44EV\nDJft\r\n=0v+u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIElX2j7uU4Wy+UQLzAuelB7yWSis13q3OVEkZizYclzQAiBRKqR1d7AmUwhD+1pbkaga+Vb7VhO74y8DRGHbGm+MbQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595345333479_1595345345034_0.10575076271633455"},"_hasShrinkwrap":false},"1.2.0-next.1595348953964":{"name":"playwright","version":"1.2.0-next.1595348953964","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595348953964","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LtBxypQdLMBSHU2wLJCE3HS9SspIQ1UoLA6gpKk6j3eKGptuFSe4+HQZai2bKAL25PBSCF4OoudX4VJPDPSEvw==","shasum":"6ab8f5b6720577555bd32eab6b2eaa4cad7379a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595348953964.tgz","fileCount":146,"unpackedSize":1760148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFxfjCRA9TVsSAnZWagAAvv8P/jF6rX75RqdNTwVFj1kt\naP9bQ9zTp7m1paIm5uHqNqasZVMk7PEKte1eJUSELkQ/uuL/zz57SO+rQTWp\nN/Kr14dxglT3kapY6NfpvOA0JiMaBjnifp0CMg+u4CVVzb1LtBwTMEn1Kf8V\nYTli/8km3q1noL6p03vTskf0s2DhtogSx2YS/AcSH8kmY441WJSWiZj8UBKL\nzQxEN9j6z5FS8GoglaFAwsHsHoDsdgjkxZW7snSz9NN0Y4owMs4AzFVhMhiC\nerzcjWaEO8iLxO4VqGtFWQb0+MBkmPN1esoB9Nxuqr+Y0+bNCqOLhNKkhkTL\n/T80n3hwj61QGBX2pBVWZKAYbn23q7fdtKRdosSiJI29x+3Ge4ZYclvST7cz\ndjfdsj73kKsZ8z0AUjz+2WFueAapT/Mv0Q8aTtP/nXja1pdT7oPN5yQlmZob\nhz6hib9y+MeOq+Vq/vP/v3BGGW2gLVZtZh/dFNFpaiFCCzDTMmY9PwZGX+kY\n9eUqN17SOg5Jwlh5fNBpArhzCAOgpGnjZRpDddGkMVUxiMjEXlfSlbpzkYeD\nzUIpMEIPmoRLo1wyviXBBsfCfDtgaA9BtVf3rTCKEECns506RiDU2sl1/8MZ\nl0h1nkrbgMGLOhKFiwLd25VaIDAEy/IaB5EMe//ClmYjj/TsJB2JjQGUbTMz\nTxsL\r\n=N8rd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGPBZ8QDIIR27hgEgqRBCYH5lm2i0nppa5WzzdQx9l90AiBEsC0VefJ8WMmHPY09jrUfWe6OKz1bkB7n1xQzi9ZPzg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595348953964_1595348962747_0.7171393017526839"},"_hasShrinkwrap":false},"1.2.0-next.1595349331903":{"name":"playwright","version":"1.2.0-next.1595349331903","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595349331903","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fL7f0gux4ZjmCmwL0p1PAEcFg6kpohDsGMRN41ePunK/QAchbNuWwkGMTxJFR8ixv6JV2xR3v1rqBI7DyjNleA==","shasum":"5b7d1fca99ccfa3e66a98c24cb0a55cc3d822623","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595349331903.tgz","fileCount":146,"unpackedSize":1760148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFxldCRA9TVsSAnZWagAAv+IQAJWfZylUx8CjlnLedqe9\nESO+gf+MEmJm2SbsphVR0caZZ167b8s9WzVtAKWbM0J/Ba6NV0utDFdmvbc6\nWJD7KQ85gMIqTwQEQmdsHuLz6MLFZQJGeTVmO/oNNh4wMn3Msd4HQEk1fOUh\nZpQe+u/Fy3VB+57sgdMZbrFcraVYHFmG+dYktzt2d00L/kxXumlqS1Q3prC0\nCqSDFCVAcTk8y2HY468xqBdBkhYoIUJADyollurvzcaXqwrOZg2xn9dEmIXI\nkmyLqLuYW3+CxOn9pWiEW2VHj/dgtCA4fhR/6vliqhgM6nVODap6MNPM+lrz\nxWnnLKeJ571NTDLgsxSb2TEdLfYIEIr0ybHxyA9n01pACSpy80ueentoDtDt\nXERCbF7wcZJiMDnE3+NAoBkkR3sgf9h7u/Q3sr3Tyu7ymNmOEypNRtaKcHKP\npXiuyKmZRIvV+XhRMp/pGTUwyIA5rKnaaZCfhqrqHph6SMV5ZDXdma2J+izd\n38nVW4kCCCoIS+tjGOsm1DPwik1Z+lTohPS/mCBO1PpCXLUo92JLdUyrQRz/\nFI/tDjK0/Uk/XEyaMcVjNx84MenJu6X7apEJJJGWNfi3Rj5ur+lOMVf1ggaf\nP44PtmaNjuqBNcvHE8AO0zsd/2Hrtzp0AW2j0G2P8yY/jwS9z8f8b2ky21BC\nuhXz\r\n=Fi73\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdqZM5dNxeO6rePZqKof+X8kHH+vEgvMKVLpokevveyAiB0XMyeMHr0IhYGXEHTm5C//XYjQwRFpT366XmMiA58DA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595349331903_1595349341139_0.9935517031763585"},"_hasShrinkwrap":false},"1.2.0-next.1595349529800":{"name":"playwright","version":"1.2.0-next.1595349529800","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595349529800","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rTknAi6QjX2AfGvQWyDCeqC0HAkzFfll/JYcRdCjA9h/WXmSABPmPJYSo5BHK7a5IK6hPGHp8QQD3ovo+DA4ew==","shasum":"2e75e34bb9d963b76257b08ff4c98a8b6d3e5a63","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595349529800.tgz","fileCount":146,"unpackedSize":1760895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFxoiCRA9TVsSAnZWagAAeMIP/3rCjFy/Wru5/X3K1Kg2\nCw5lZQDTFOdJgMNRpwNGXQEbZ8hc32lKTUcSKC9WOGqlJ5sSqV5Pa7FQ6MfI\nqV0PSiUEc+UYSTnxvDi1Wpf/xx8xZT7SKq+1mYuy2d7Q0kPV0Mq6aH7yDrzb\nDXVwJoGP6XN03mh5xr6DbCi5QBZ5BzWvkUWvIZeq6w5sEsNoaqyNDRiesq7J\nCa/NKmyDOU4NGL+X48qKkAExbgwqexZ7DEptXX4zScCLZ0AyzzRAr3449Niw\nw1EGETnzG+tq4YPmFzcGNDH6oMeVWacrNCTWYBtE2a4yb+lR0WbuGQdE8qoj\nfWXX+SkDzkW0QT6m7rClEtBkHa7h+yJb96EFLJ1pwTL6Lzbs8NhDBose7wN/\n2KYA5wEfWUpPeBMnTGrckU25frFrbd2P7xzJQzPUT9MhlA7i6/LzrNocAW9k\nG+DNLzzrVD/u8NxUxQpzlxUsCD5U7qQpSYH6jZnVvAgP91PSyO3cHdpEIzE9\nsBvhNjiWY3as8z6DXZ1KZisiGwqkuiAoAAuLHQvYj9L55/uzuWJyQBT4Dj7i\nTNR4OgwokHPbkd/IRcgiHsF/tiDfiAJ5m2g1NFXLlZzj88T8fX/ICx8RGR+Z\nSskqRP4kprU0avBG6N7ta43lvZTFqG+aE5FVtM4JSGvIEXPgF+FUp1PObtva\niqFP\r\n=cVKx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD22SmDTWmashx7Nld7WdZwOueN41LdvpfbN1ijIMK2JwIhANJRgXgVPFfSSexhaAlpyrw76OiTk9cs48vmL0SVrr/E"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595349529800_1595349538173_0.544639759164093"},"_hasShrinkwrap":false},"1.2.0-next.1595353342339":{"name":"playwright","version":"1.2.0-next.1595353342339","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595353342339","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-D6tsH/GoWGIeCRucFHJXSMdBL2Tlt2flZX4Rk/VL8Vcp5erQIhLDOnl7gaf4YzzWTZD5fhYMpHGvwr+Zejynqg==","shasum":"aabec88cfd08cec827e900dec15f7fe497b263c6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595353342339.tgz","fileCount":146,"unpackedSize":1760895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFykHCRA9TVsSAnZWagAAdZoP/2C50UFedEBt4Biboh9N\nmbI7OgEm8b734tztxqFcQNLhLHUgkyXYJN05ka2P1FxZKR2b6qu4yprL4AbD\nG65MW4HfqtLZQXDOHhcaD4YRNJaRSGd7xkTlWVaT6eoGPOQBC7GPXLGgmZMV\n3543hsiylbQgsW1twNLv0PzaOc6IUtffyixZgXb/mkt/u4i2ba6/UeW1hEvt\nLAz4BbYa0LpTkVLgkTZsoC2hXPWX7+MhhsMZ4CpMzLCLFzAjHa6KmjLCFgR1\nthwLxnJBUFrrMeGBcFUy3XcCUwlzANsPPpdUdxawro3TZNKtmBfuuMuOuMfk\nMPMQtslzLK20PuzGDMXUbTveQmGWJuCI8E86J7q3Yczv5/Na3gYVuEDTYSPB\niAxxZzpXVtJe3g57I1LgU6qKw1jee7TL4nY+5H9V4mUTj6xN+NV3OutwcxnY\nBetKUxbQ/AybnClkpm+m+GRphej/gKRE2vsKiGFlZr7vnmLIlXliEbljEPwe\nyoRFPDY8JVqs5zBHccVnotmgBYzAEZzmEC5EV5d6mTb3rk+IdSdNoE6RwCsH\nUA/eR38RP9abLertwM6wOKZg6mqhDrllVAmEAdTkwh1PYYrBKoO5Z1cXk5Pp\nDV+ukwQ4pkoe26FIhDfzzYSaogKr4JsUPMAgMdqtKQLmzQSHGsbXyHbZubey\nxP5r\r\n=g82k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/j0Fjqj6OaOx+IgLeppxmkC2ZpJ/OWNso9i5cxaQ/XAIhAIxgCDLg95p7uiQiE3BYtC3aeZ/n8FLS2BUx7JNj9bHb"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595353342339_1595353350692_0.10427463978021567"},"_hasShrinkwrap":false},"1.2.0-next.1595359708220":{"name":"playwright","version":"1.2.0-next.1595359708220","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595359708220","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HybIYLKn7fWm0fs067ypxYGWGhM4O1sXcL8uxZG9D6Q05zJaN/3ysMboboZJOI4/R8g3oCsQriQpgwkmSLDzkA==","shasum":"6ab36271e563719da4905a2c8d54451faeff3bbf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595359708220.tgz","fileCount":146,"unpackedSize":1760895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF0HkCRA9TVsSAnZWagAAKBEP/jYxOlQqpPfkHHtgCpuZ\n26XvRMM2ffiJVRT7KgX2QFinAe6x9V407HyELG27alWvvV3s3XKGEZywFDDb\ni2BT+pCPfCLF+NV/GsjYzLeESDZ4rNdLiPZx/NJc7jQrxPFsv6se6e1yX10f\nn0MtBverHycIAVkx/M6IdA8ifegykIDLKj9/ATSK3jjFGteZGFCZIbIGGfMo\nYoEyZLY9cDb3EsH+M9V5AFjTgH5Uvp1dmkcetzViB8vFGqFpOEGUqtCVfvaG\n1K/sHDIPquQOE6YOarmQPDzU0XKBYdvSRRkeolTIGtInK40JTpjrtTOv0w1k\naHQWrxlccmEPSoz+StLxXfDKac6IqoC2dvE5ssUUMquvV/CXK5wOCCyrNdIJ\niqf5Ig+MI42xYUDG+F8nfY59AiKx7z66/gdjb5MQ7S35WGpq9i9LFepqFV0M\nGiptQPySx96RdU9P39g1rdIDyOV42vhXebf/SwAHx9+MtNQPu2wvQU/sFJSD\nmiCv7rgynSVUvEXZaf9PfnIbs+NYHA+jxUCssObWy/axNPLG3tV5uMkgNIa5\nt9a+o+iHM5Za4J8lr8X0i/usS4sIgL1LdiAO7KBdPB2LQcVgEcSzKy8sokPn\nsajvOlUgwL07QYIdqB5U+gsfnNQkXV+5z72pvWewcIrs5DUNB4DdCh3U8yDv\nY14O\r\n=UvUR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUkiBjDfH52m6yuZezj5UK4YBLmSNeHjuJWd6sFQiWGgIhAId1LImFMC8wGpG/73kFPh/155f2ekNGvcAEgAVOsEkc"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595359708220_1595359715699_0.20787493336134188"},"_hasShrinkwrap":false},"1.2.0-next.1595360810787":{"name":"playwright","version":"1.2.0-next.1595360810787","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595360810787","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BunWQFT+1qAx+8Qgbe/UrqeKd+uVTbuCEra6JVM7AIwM+gbnl2IkI2KtDwy+v3w9jISJANnaulOEY+MHmXO3MQ==","shasum":"a0f8e5f8915636bba5ccf0d002218ca8bc5a90aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595360810787.tgz","fileCount":146,"unpackedSize":1764468,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF0Y3CRA9TVsSAnZWagAAVjoP/2mqmX+y4bzOTKsXT//n\nh8iw5TzJj6Ide6V3UXogU+v7MP67gIfrRkLaJ1n5QnNq47+80RdOHOboag+2\nM/JfSWs4HS1xigYXfc6ZGvjWvVaXdf0ziG05WyCxBV5A4C7avev51FLSlBXB\naAec4Nay/eovMLPdTjoSkc3YNAct3oe4OZx1mV7I557OWaGmHHPgPahf7M2o\nV2UVqJGsnoBa0SjO46GluqtPS0yUonCLS5PrQykDR5i17D6yxS7vqQmpwEnR\nNc3zyHXjk60sb5jPcdZcgo5KKNgY8e10KyPz4GXbNvG87xRJhgEgmc8P3RZ+\nWErA3vQmBimOvImJNQli0QxoK4ghQ2jd99glUmxDMXmVifgU2DqkA/I0EVMs\n8xmGOfBl39VDzFWmrpGw9iJPXkv0wLzSketst9xWdE+SFG//0RgR6d7oR3kl\n+XiwquzJpI4JQFwhhoRue8ZBG/fc8kOnD7NrGCtPZu//nylNklhYXNqFH/kB\n0h51htI0tozwLmXL2Pd+3+/EyIl3M69n+as80ViB1p4d5AuE1jzNqTs1Hbyx\n92N6mAVURTt1Wc8ckM4cmNWpX20ocNo/a3p4I+gamrl+2MXOVh9XtuHFQkN5\n8adGsxbmF1O65+G+7wG1+VIG8cta1bdwYZAtRdtd31IwVp0K0iQj57HxES28\nzVD8\r\n=OIkf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIB+QUdo04S9GXhN0X7AyXupZtYTYB312XpE5OCQ0k1YwAh94HUaYVLXklQIV1e7T+l+M4jIEA28vrk8A0Wh4VcDR"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595360810787_1595360822213_0.27687456212453565"},"_hasShrinkwrap":false},"1.2.0-next.1595362893187":{"name":"playwright","version":"1.2.0-next.1595362893187","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595362893187","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AjC3Qu/4jxCgh5spk8XWmdSvCD5yYZ7InXF9cj5mh3D13ioJBycUtPQS82wkMGr/zrOFD5tIPDRTj6GMDF6WxQ==","shasum":"d480f7f86aa3110a23cbefe5c4f1ddab96c9e2bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595362893187.tgz","fileCount":146,"unpackedSize":1764548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF05XCRA9TVsSAnZWagAANF4P/it2zUYQDi+f0GARw9jm\npofvt+Bvru2+zjAykwehP+9EceRVUiYYEP+M2lARPbySY24ruEebBulkr0eH\ndA2476coxD3Ygaq2ABOdkBN0Q1bsQzK1ni8mzdY4fH1x62pVFxYSrXWVdGn7\nfOS2g6BH/xpqqMudftIsLtS+z/DeJw3Yzk49qfjjzaR5l5qQxxG2VbHbiUlB\nzxwHKrADIu02iE8yLsKl1Ir8esw/FZTgynYlckZQvo7CFHeUEsz4yg8C1ASg\nFp02NAV0pwVGuBD466/ALkJLbJUkWyN9zFvojwZ4JyWRFmHN+pggOke049cV\nK6W67ZKkUtAZjHyT2i5DBq47BGUbczGS6U0use5KqI6QoX7/RXtAPtfyjfuy\n/X1B8vAzzDSLQpXhEcDghuDAbp3r79faYppctjrBjPcbhlQbmOgA6I1QnxFL\nWEgvuDy8YTu0kg0l5t0ZOMXy+FJMVprfZtawQyemsM3oqhW7kMxWwuiaCOfB\nqd8gfetW78TOpIniUciJacQ5SxhRI4vajyPkGzwHXPrXwPGqsZMI2K2LSUcl\nona6hN7SfIr7WA+fihzDq5WCMAoC7LryCCmu3CMomh4mj6Yx0DPzwHv4PVpd\nrRz/zYSlkp+aX51kxKbaICottdhUS6zQ4QH87703ne5DDzxFVLZ5NX0u70An\nrzOn\r\n=2Z+D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAz+BZN5kQVEMN99j1KXxVtMGHiA4fMSVl5uY7bhaJKfAiA6tHcaLanAtssGsqniHL3IeGhZ0li7SG2ZSMqfC6h7Vg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595362893187_1595362902861_0.4087244538328241"},"_hasShrinkwrap":false},"1.2.0-next.1595363049842":{"name":"playwright","version":"1.2.0-next.1595363049842","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595363049842","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-FY0hwylP6y0cck0KapWcHEEVK08nvI294KDcl9dIxqBA7Vr0SE9+uKnST7+a6PnTzNLEzSWEyqImDbqqwp1b7A==","shasum":"4c74e77d8a3aff2e8f49c454d353a7e97cbb1ba2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595363049842.tgz","fileCount":146,"unpackedSize":1765203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF07yCRA9TVsSAnZWagAATYwP/j0C5H+FZjXIyFomORZo\nPDcYSNCHnvgLrHkve6PqcYgsz81u7NG0OtPYkC+e7EWdP/jUydT0VNHd42fc\nY9jbZEf2EiIyIxjd+GBvX3hYJ3JyEGsHaHwY9lstyEOR3ZNmqJ8S7mBqWQ2a\n8AQ22+c3o0aFjQE9nC+vSMWeSQmCVJF5gKcFofFyTMMi05pbEDxZMX+shWFr\nXjj3PPPIEN4IiukadhugnRXg7DKaZzH/2fEKuS25eiuTGXMffmk/6QRhytvB\nRqE+CXo58/QjNsQMm/Mx5K36w8OYqJT7WBsYKm27/tS2IayQDTM1yXb374FD\n8L8l+pIRMXC9VnOuyO4HBJW1bvDqrQ6v8IlIvrKRROWXVPQuQaBgZTq3rutD\nD2pVb84EHhoSfZHsUQX5A+jJw069ZCz+yp4OxTDImcMz0uvaZ9JeI0RUKKYK\nn7xL0Uz9ndCqXCW+Zs1DbfUH52w3UjWX8x8R+YRI+7cm3RwK598jNUg+cdkA\n5joy7G1XeqZl8jxuTnXRop0tbV1QBcER9n6+LvjBAYIb8BiGtJjvfXFIVzKW\ndc9FN4ncjmidiP4bGU3T1J+FGKBfAm5+75K+zxaEKXFjRNKJ5NNqs58iFBkM\nCf700S9cvJfNIvBdahZvSf0aZZJ/MtiL4isUUsA9e8PfN0TlHijbPjBqYCxM\nI93r\r\n=tc1c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiBZt50uMQ98OMy6NISxIMs3vT3eT5ed493nctr6g1oQIgc8O9u3McnEkSuXHlv0DP9TNhP940jrAo9SKQ3SkSZYM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595363049842_1595363057761_0.24105568400152233"},"_hasShrinkwrap":false},"1.2.0-next.1595364665021":{"name":"playwright","version":"1.2.0-next.1595364665021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595364665021","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gOPIszyYpECM0u9r4qwEUTWLsZ8BueWAGL8kVG/+xYK/Y//8Zf7No0wr+As96WJE8hwKUr97pQevnNhhBARk/w==","shasum":"81a97a6def66167413660a1035ba56b1edbe2aeb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595364665021.tgz","fileCount":146,"unpackedSize":1765585,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF1VBCRA9TVsSAnZWagAAzfIP/3bu1PmtjJbNhHIM9JY/\nH+YBZzPfHIGprtSRycpnHm+QoN4fI+2ijG1W2/4HQa393fJ1IXMzOR1mEJ6P\nSFc9n9K/iljV/rkFcSW4nsSsfb1xP6d453wAnagUyatGxKXqYaxCaJfaIZNg\nAwA2A8gF3zbPevN+5xwjOAbUJpd36NAs1xpw1OMPGFOaPJts0KRS3l2t+kID\ni21xNqZ7dqVEmSsvs6dkrUX5IgqQSjMipgvFAsDYjKXvHw1pCQN9gyNvYkxd\nGzu8Nlql83UvvSTbsPhHY10+P4/wa2mwK8OqcFex9com4SCSE8BDmqb4s2R5\nSc2yI3o4BEUovtu4v7v/b1v+5a/XjostSmWaSvsv98SSedOrTns/tAqwzEh7\nUA2CYpZVRvZcBSTvfBKojkuIF/6af3c3JkLxf4c0NMP5tA2D3sH7frLnoL2u\nQLMO6H8gh8nHCefuvuC7RQ4D5+jFVEjkRWsztDjdG4eqtkxnInsoaXNrUrcH\nHW0basytLxtZRZ3rQYsCcOURZ2lDka8wG1vE7CrSw95dX7PJ90BQklqSfigo\nfPRCmOJZv97yc7MVuq9rTX9zqTkg/x5nF2oPogckoIno8PpJJMsg2kp+bU2E\njLq9D9qt6vdwiuH7KrFy1Sms7jFXm/vJnWTDLZ5EdDdFNLTcXXcGHrfEjrz9\ndc26\r\n=VNfG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUCPKKB0fZOoouTPHeTEUeQH8zrMuiAKBadOjom1OdKwIhAP9/gkpxC7lybXYOV8vHZPBAa2uFsWbpRA+3iiXMS/VP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595364665021_1595364672656_0.5246210729029794"},"_hasShrinkwrap":false},"1.2.0-next.1595367825306":{"name":"playwright","version":"1.2.0-next.1595367825306","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595367825306","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ip0EW/8DoiNqswsIobJY83JeXmdX4uCdXE8FNogTbZJV3Za7pDXsxdgU9+cgSw9fnsga8wswUX77E9CUwHNqdw==","shasum":"be846ddfae85157efec4d016166552b6369adf16","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595367825306.tgz","fileCount":146,"unpackedSize":1765552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF2GbCRA9TVsSAnZWagAApmIP/1jccR+W4F+Yj9T32Axb\nI9fiZUmg4oO1yJtaEKNsz3mzMUYGLkeuPZ/teEfjy1YfVsh1UasiQ9jda8AO\nX1PwbrVb62yjkbWrh+KKLpAFuN87GUnIgB8WScu78NrNDkGDsmW9Xb5vHiZn\nEi3/iJYxmZmpDUpgrfUBDBLWxo1D46UON7Drnur4sjLlSyDv0PrnfPzdO01+\n/LtsY7yGP8qIrIlUSGZ1TD1X9BQvkuT+6DGTp2H0BE1C8H48EvwqhMSaIVkH\nXYRAhh/PecqX/uxlgVhYEbN4k9q9l5R6tjiAZ/RfJxdCpM0mzUE2RKGHNvAe\nivZInZKkg6LtRANMeT9iAibetwyJo25NNIY/71nPYEqSmxyUBuM1AIgfgJbS\niIay876clf71w8kKFIxFEy5sm/mf+rQqtXwLp874SOKfWlIE0hOaX+XFaX1O\n24Aq0v2wSIL1kJ6KxRAkNfroCaCctouDPjX+vUCShaenJFhNdbEB0e5r2ZaT\n/xxl8mcsKUUDsX2/e/ztSqFrbsf7bojJV73OdhI/lawVjKckoFLpaXvXVeLa\nEq2d3tzhEbZRBL2TzvZBBQNCjhg64c5cC3Yer7MhLhigKzOg2khn96SwTkDF\ngVg2rdfGDh0h3P8WCGJZUHdDCdvaemgnkMaF/kPABw0k2OJMl2xUSB2VOKke\nLovY\r\n=QMYK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRLjQJY/i/gU6S6P8wyhGr6wtkx85lkyLOVxgMHynsaAIgYoCAPOuYPPsJGKIrtO0Kdy+CZWibq1ql5bzTpHOIFjQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595367825306_1595367834812_0.6263043116557643"},"_hasShrinkwrap":false},"1.2.0-next.1595370441220":{"name":"playwright","version":"1.2.0-next.1595370441220","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595370441220","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NM5FhkRACeZhLm0Lc4iDrYUXig9atBnw8z+uoYsNSvf5dWiZPyoHybR7zLQxR3zD53RQ+AOz4Lr4oNnB+Qv0LQ==","shasum":"807db355a4c815769c02cb61e8373ca787b24838","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595370441220.tgz","fileCount":146,"unpackedSize":1766016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF2vVCRA9TVsSAnZWagAAMocQAJMB8Q5k5NQalmED62Q5\npO17a5KA9iebHoZdieWnG/ZAcy3ly9SMx4u9a/ADhR/rBek8AItzrtCpcvKd\n7hNdDFALA8r73Bco/+CpsFcZ49yZaMwGDWPmKjdn+ltr7D+s2VSl85POzzsB\noY2H6fq0RSHgV0IYdRZyXPQeDCobdg6rYk8C1fXHMaUCBn6ioRbfC6MTQ69c\neVP18RSscOj9mXt56CqO+lzG/5WIjlqHdanObrQ0HAySaXMBk9I43XDkcDZr\n3pnM+UtGIh3t64Qsnhou8cAxBhAiRSQ1YEAgQ4oQ4/Ea7MuMDFQMw6seYS+q\n85cY8VZhVoEa7BMj6GeQPRhvX2zfo8E/mvgj62q/pdyp+FO3VKzz7waowWl3\nGw4a+D77QODe4/4vD2RbDskooY82r3gMdPYnI7TOXsz5fp0mhqz8ocpgPAH2\nOW2sCKm5KbM2ZPuK00yZQ5FexSy8iJy1arYBBJNHs7wvxLi+9GD7VUFmoSKg\ntxJsJXN5763OI2afcnH1krCn/J8dzUq+lNqSiBff8rRB2Xu0uUqaauJajy5C\n8aY9wahl5R6nXKpoYxPk7kAoA/S8ZSpMzwK7+rjK27nvWj+Egbq7k7tbtPYH\nc444HUqncyfoIWa9a1163TqAfuxVUOx+OEmUocIdXBpxL3PoE2ooxKvTyZpN\nr2y7\r\n=4OyX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt0tfLavqGMawpEXKVaEdkRVj0GjFYWYUg/4CPDWDy6AIgKJWUNklhzAVdNOwUA8TMU+TApKDyaIZCGQeiVV+wNX0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595370441220_1595370452749_0.13673382026062653"},"_hasShrinkwrap":false},"1.2.0-next.1595372395675":{"name":"playwright","version":"1.2.0-next.1595372395675","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595372395675","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-HPP4K1QayVpTOEfOjsfDS/nGyuaD2z19qJ7hvGNYAKmwg5D1Kok0APZ9axsGK1UtaWj7HKGeUVlWnWfBxNNz2Q==","shasum":"bd80baf7e1e7622ea09942a950fb4a260b71e497","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595372395675.tgz","fileCount":146,"unpackedSize":1766662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF3N1CRA9TVsSAnZWagAA8QoQAJt0m017nAQVS1EuQZZC\nbq4soe1BzswKPg2v4zOoC+7dLe3s1gshPqUj+Zku2evWfYeC9U2J6C3rwuut\ndjv5M0hMEKjvXwpFHGn435kH9JNNOGr/VCy0GMfyVp/SyF9x3sNWE3ZjCGp4\nywkUisevqwg5avZEEGyOvrxeUBEdbDxaBbrvvkO9I2SqVKsxYO/B3IBlfT5G\nCQZOPv0xFr/Rl6C5/MtN8wEdZnoM2qw9WQ267s83LJGS0sdBFkZFFmaHYH6g\n3P4BlgLgbCu/SOPDGdFpuaNhUQc+2OinT1+bvck1OmrrY6qlR8LJ8hXAqgdd\nPTCxfVrgV0Rrzyve3roGRk73xJVu3ASJxVxOM5njBrAVJNYomC2B0+Y0qm1G\nwm6GV59A4mjjZ24dtoNk5VNQX8HNObn2BVW9UFWLOifMoAtV8hEyz2bt0ubt\nMPSD/MnPxw2xniJ4F49Irk/9Iw3b6vVy2ccZJAYOaAttelmejNNyGG6+LuoZ\nZU2egnqs+EuwIQkGb0pS5yKYZgJEjmuk0n2/GK/DXhbwsDn4WQs8vN6eZehL\n8TTTRE+IzrEjT0eOb+4z1pXxI9RacBNVDMW7j8QsXUOWC01smxS6JJp9yUhw\nuNaAxeD5SCG6HFtqn+6Q3zBN6EPAZRBzf5AkLs6AVcCoJEvhvX0P5tNp9ndl\nmInK\r\n=SII1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1wdHPFIxcC/nMZTwDbHn3wRlqShxNuoMaFWCzlJ7a0AIhANZPPr5gE2J70rWEBs5HrvV/IOeVfiDalyKfiOJrkp05"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595372395675_1595372403912_0.5130894684736538"},"_hasShrinkwrap":false},"1.2.0-next.1595373956262":{"name":"playwright","version":"1.2.0-next.1595373956262","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595373956262","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UWr//2ka+d4CPpgRY1pjx8Z7htRRdogr44iwCps1GAQfFPE814fVP9BP33b9CScBZ/k17qHAJ8QHaOwXopPgWg==","shasum":"82fa6a22e6f12ac7bd253845fef8fba9543130dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595373956262.tgz","fileCount":146,"unpackedSize":1766662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF3mOCRA9TVsSAnZWagAAM5wP/RH401ZrNqgWnkCL2Chw\nhsxT5IG84zlZiZam7P+n0l6LCH/wpYJMiZ9ozHc7H3jOKaD+ZilWxM619VpR\n8ouTdKsHr3wyLD1k0lWhY0eXv2QpVWMgLx0KwlThK/zkjFeNWZRBir0beocC\nEl9kgBHPut5kXSRV/Hp/xXBwAooOUA3EhORDOStMl0cryFURGZ4tnKphUKnV\naM7n28FzpSxHBgWMK/sxAimHIPLBH4k8nJj81eW01FRkreG7xLinQ4cvndOu\nLe1FgjB+WNF8tt7OSbS4PIaDUmulbm7yY/R9LvsFaJgr71TSFSAi23qYv2bv\nBuIwpsbryqXCWggWtGN2C9I5bGnAdvMlKVKtkkxRkz0pT6i7BWff2WvB47lf\nbWXu7DNSxba1OjBuN5z0VWcG7Jri5WN+6mzP1DmO995geX4mocWbUP0838fs\nSN2BhHuRSt6WeMOARBMUnzVbc1lZ0MXnqoYUIJxgDyCkmc5+S0Velz17iIeY\nftMffTFFfElqfpV2rUK8Hwt377oQAiuo7vc8YHNV2x25rWWJtIwM6iNedPS6\nA398PTqkG+pTJgGpeqpVkqXvAwiG4n84HOTk3/h3wVu0tfI5NhLdLV2jtNDJ\nwqXPA45P2Uy9xdjbOmYJ0GaQyFktS8KaAFH4XCd0qfdNTaPycssM2OANjHIz\nHsOe\r\n=iLvO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAHeE8/8y4VcbJhiczZgrmPoMvcVa3bBtozc2HMMCvjHAiEAt7hvo9xJ/QeSx0NPdz2yLxw0PfEx6GBcx/1U/SPdVe8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595373956262_1595373966029_0.3294617889368425"},"_hasShrinkwrap":false},"1.2.0-next.1595374615999":{"name":"playwright","version":"1.2.0-next.1595374615999","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595374615999","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0mm2iGxxknVGkuxeHm2MTN0x+F1GOYBTQt0Cag2XP19xzij+sVwMwkgJp8RB3tMP/AwYcAOPFC5YHmWegGidrg==","shasum":"bed346da66850bf108fdf437e541ff4fc8ebcf77","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595374615999.tgz","fileCount":146,"unpackedSize":1767569,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF3wgCRA9TVsSAnZWagAAv8wQAKBllpZz1RLOP7NF29Cy\n/65/8HsXZoiZAY5IVf7b5hZGb1OD7yzpbm/LKrNUn4SZFnbt1RU5b9/mjTTW\nNx5Mepnm3vkuWJyxBiiC5z1GCpJSlcJfROzWOM1AdUXGVK98Dvxmx5L5cJoV\ntW9hjE23LSBjhFT1WYr43+xMLLIIikcdjbZPhQi/HdPwtXvV5BM7fC2I5+ls\nVWaOnPtquJ5FB5Wyy3UJHi0Pp2A7YcnuKq1iw65e5rg3302HhEvkCUDNJYNn\nIcKMdolKM5NXq68RSM03CmiY3Y4KyThnBFRgZ4K4uIoEu3pJ7crgt80C5UV9\nxSxX1zb3aSpfUxRUlNKYMgts2jqam/djJ4lPQPlsd3fXgyJl8nWA9F24MoXX\ns5bHjONfIEFGbY/jRuaGcslSj2X60YuvgXa+DcZjF1gXkcA7j5P/BFRqLeWu\ncIMkfSozzX98RplCo8H1GJu7aQbg55bRDoYvvtJf9M+lTkWi5jfG0EkVpAdo\n497a+/H4Jn3t5xvZM0LWEdHORW5bRRWWmo34UGDyKc+r8mnBNLJByOnmnQ0M\n2fVjSQXUfadyvjeU8s2xZv1qBUML7Ot6VHgh/8wIjyGgHn7mXuHC4VSMOrLr\neCknfh1GTLJnyynFVqegujSn+TKszmN5+BPubXTh+YWwNqYXO6Ai0nzKUsBo\nYe7P\r\n=5FZD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXA9t+f7/2e1h8TA1+u/iGmEgEfTOvl4EJ8et38rARygIhAIF6g3SPWk1szq95ueu+1sQSjNnFrZpG798LMitc+ZS1"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595374615999_1595374624017_0.7439796312988869"},"_hasShrinkwrap":false},"1.2.0-next.1595378838753":{"name":"playwright","version":"1.2.0-next.1595378838753","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595378838753","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jCIkwZUHvCaT7EGEfWGhrx1mLaT/WfE2B4chWUC2IjOjHZovhAque0+TOeGlvlzgSjD7HpeR6p6PmFBOaUf2WQ==","shasum":"1bd3aefa12342656486228db8c8d7085b5471993","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595378838753.tgz","fileCount":146,"unpackedSize":1767569,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF4yhCRA9TVsSAnZWagAAAisQAIvEGI6+hPHw0FNDgMuo\njAbmNBDW3buCZQl91EVY0c9nl4Yhkp0+z4ukcZl9t8YZdyHgRS4pyf7cyWJP\nQuh4MwqJ90o4FJWky3Rz5EXvO1ArGCMGglh3uM8YLY9VHWw29DEeG5I9+Arm\nFZ0qO9nnIHA0c1m/K+RxTzlitndoGfLHPqN+qRzSFvWkTauEkNlctH5rBOxR\nZPmdehssVH754+/CyNfE7kCA8uSosOPgcbzuvTPrAiX3rUpX03CBfFiMDc6w\nKCaUy/1Zwi/8G7sFZHzn1VPYl2GU3ebFAXeSKOkI0rChLjqWLCNrUODFZ+rf\nPkPxDcWfLQQFgf5jan3mWXuETX18yExHCATwy0ZoEXptFffwGf7RX3AxlnBH\nVo6OVC9SGBs9lKxflvBdjCUKPfZTd0DqOVm2QaSbMfPSGpEAIXWF8jpahhqI\nQ31e9yBoXvwbAfHHEnG5Y8LbeDeI0nNDWMSFmd5tvdCi1C8598zu4bPTAu5k\nN7XuTI2A7z7k9mXhXGpbVxXR3/q6JVxx2ghiC0rCwBst0GYD/ji+Tao2kz50\nq932C0//HfEbpFtCmTCmct1gT6s8jGMhwvD1dQ8aDF7DUHXQV1iBzUiQTGmK\n1CTmJwEU1CyxlnpXIRu+tLmfnHoZFGl15CFat5s70bpvbqGMURVOmtm2aExJ\n90AA\r\n=4iyd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkPl2Qp7RZT/nHk41t+bEbsC8N9XeH7tZb50uFnmLdDAiEA6mQvrYNvq4HZv8OxIW99Q6SRhiEQuGRG3UuOVUY1y6g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595378838753_1595378848483_0.03203850330361013"},"_hasShrinkwrap":false},"1.2.0-next.1595382700626":{"name":"playwright","version":"1.2.0-next.1595382700626","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595382700626","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-scRI+Rg20+iBqD3/AkAWfKFjXH8wghoLF7x6dsVv7GH+tGMa9ddLC6hj8aenubbXBYd1KOMfwEqD/bLj897qKw==","shasum":"83de649d6624cd2f20fd0476e99dc82115cb1761","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595382700626.tgz","fileCount":146,"unpackedSize":1767569,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF5u1CRA9TVsSAnZWagAA0qgP/0buiFIPPtBVCIB6TRJ8\na6xedhemBBVfGGbtQqblHZw6ss0nJ812kvItT7DL85a0/WYqMwE9gLJktj/E\nTteWAZzZlrDhfot2e4QLGokCiKUd90rDJhWPpLib/kbxziopakmoddSXfr64\nvkiOa4abK2RKE6Hs77upxy87ded1fxahsly6nXGtE4lqJNHiskI458auabG0\nHZOdJteJTbP+NuvLzGo0W/9H/PAG2N3YIbKPkcBCC3VkAqsW4JS8TwE0syhf\nq7hb4hl7y/L9YnS31aLHMqZtjt/VufcPGsZCBUtHWRmVzHx2MtRHLQiwI3X+\nbxPe6yqM11oJij93u8H7I/q3BOAh0EyFjlxLF6BbfC1qLKpr8ZXgsHJqDz4E\nyziOszI33aUlnhXQ5HNYGAPMiR14mYoRENDyhGxmTTR/xzZwObxmiZLCP7kn\n0AfpvN30Bq+oNwJyUStohL7O0cL89G/yM66WW90xT9sOfVDJJjEan7m31aSI\n7suiW+bLFrSqM3dXL8nh39QXqvR8fG2kcf+CyjCOvNttZ06wEdoATpm8XbaJ\nmhPpqqIePpcLzY2iOoCSYGNzCd+eDg8/R2sXPhdIx/J+lcJmjn6Ya99oKSTQ\nkWQjHpDR29nlWZgJwWu2HLanRZuAMVIAN9HSS07vMRAp2DFhSMcoOd7Dx/ki\n7uIa\r\n=rva6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGAB5+Y9vzVFNjhBaI6wosbEQ7VzVetfDw9AIEBfXNAQIhAJzW5W+zr9gO0LtHn/TfY9p++upAwpIK4KzK42sz+Tqm"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595382700626_1595382708683_0.09907371217513261"},"_hasShrinkwrap":false},"1.2.0-next.1595383119322":{"name":"playwright","version":"1.2.0-next.1595383119322","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595383119322","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-H+N2OYM9uWt/Yf4ZLbgFosiswPs02LHgNP23EuGuiYHvjwv3/la9SbiXRBJme6V9z4KPMGtqC4jBSAGp5P24sg==","shasum":"ea03b6494dddbded872948b94cf1313976b558a1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595383119322.tgz","fileCount":146,"unpackedSize":1768260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF51YCRA9TVsSAnZWagAAH/UP/1w8QW5VbIOB3Pj0P+aP\nWUaVyOS/eHrfskvtHTlLWewG8ATwuFgVmuHquCIcSpmj0NztFlBJn4PX7AEt\nLwUHE6Drtecig4pia4KkR6szXmpzkahbpo2ijoxGytDHvEDAqVq+nSMO8Ndi\nvegnC2qV22jXaJrqqoCcJYh6ntlW5VjyjNwj1hHDf/djRMicsl4cJY2Ll0ch\nqASMMIBmouD6EDPWXX/600mzTPY4MRlVhaG0QxUagNMf/j9lQ5O6lAa1g1lr\njIxAfWJ+rONVIDNfjrtBLLUEReFhl2NR30Wgn8VQVQWoUTAqaYL/5EpDXTJ5\nAEhjhdFue65mzrIeDDvcoXAUApOJxGI4nWijOHTyzJOYAZu1YHYXcRlaCuuT\nl6WfMJp9PjLYL5yDb53O8dlgMd/uHrELk2zAnwg7hl4+alOGvhfXk24RX3th\nTNGgtll3u66Jr+/X94tV//9QouxVDiDAUpkxHpmacWo1xAXmUzgsJVjp+vuM\nVLy5J4EOx6jR/AT/PoVHz2xy5tXy1B3pvfJg0gC6ojw+hCZH/AQZyCebF/mR\nJgQXMUSGmIBrHLuWxdEkMl7VQsW40Gd3mCWLy0iOfkidz5VfWe9bGGy4m66f\nI0d9pwQW2HtFdGdrzk39tLABFe+Pndqq7gyplJnxbq+dGRfvqFb76DlaKA7E\nvCl2\r\n=NEDy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4GGCu5pc49Q3OIwlGFV1cBA14a+POrUaPIBHQwkNz0AIhAKEBeLOzxyhtPbOpMHJQr/5cP2QSWkjN1LWUYQ1iPgwL"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595383119322_1595383128374_0.273220214490278"},"_hasShrinkwrap":false},"1.2.0-next.1595400618882":{"name":"playwright","version":"1.2.0-next.1595400618882","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595400618882","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-p76lbYW+lMqU/dNgZnqbYTGDe9qeadhSG/oEjYzn9ExIS+4ftFlX2SPi9EGxeAtETkKgv67kgUacL2dqTNj5vQ==","shasum":"31e36f08e12c2d61adeab83896fc69040d31325c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595400618882.tgz","fileCount":146,"unpackedSize":1767884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfF+GzCRA9TVsSAnZWagAA+foP/30RxAtIzSpPT+sCosfE\nUBRyEWDnkFu4aJxF2JvBaCwM2+YemEK30UYKzlB6MTRGgceKOK5yaDrzJ+oK\nsZpA4i1oQ0wBz6HkbLc30uUURiW5Sr+rN8BoZ1vAHBwOj5fYftJszJyWjYm6\nGXruHk9HD8DuXARpXBWfGZp6mNSN9l4gsW8Owj+Gtk0n3+B4Ql18tt69CKhS\nJBIImmhfNyrMl3SFf0mOG/u9eokt4yV8s25NAeykrRePk6je46qldmuCSVcK\nfQrld/6wWb7jV7eEIrnkZqtxvE9IaxDB+64pn2tm95Q36vWKVtx47BRKjLcu\nUUt8qLj5enOcvpPBEUzwFyg2PfRIEV7BYE7aLwZ/Zz4b4fwvHO5g6DahfpL8\nsy5wceLBq+0YsuV7Yra0YbWfOs7GeAjTTG/pG3BC276kv5RmO8XWI16jSw/S\nLxpL5Q+J6z1MksHkbcnls1kb4eTRX7vf8mrx4t2zF1WABVuslx75vVfoKPSA\nRd9JUCoEkJXTUWIFUNPvf9Xhh50CNDmjaPiL+2K6eu2e6wUHxQ03QYqRa2tG\ncx6yblbrBsm13tFv2mxmFazhLQur5wdh3eQwnxk8u69VTZdWGZiM6X2vd6hZ\n+YIKmzqnNvFHhGj4YL4qOarHHsT+X4Zppd9zUKo0qHdpqVBFKj2X72YakOKg\n6rJc\r\n=4r8+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICkSNJos4Y/SGSYe0aPdwhIs0LjzrYimoSPdsTA6vK2uAiAV48Nm5mRmn7nnBo0/9GhDzPaV+SOPwrkBSya6RCLgAw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595400618882_1595400626494_0.8197846949390013"},"_hasShrinkwrap":false},"1.2.0-next.1595433596821":{"name":"playwright","version":"1.2.0-next.1595433596821","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595433596821","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-G32MeROToeLvH0YuH8Li813mxaunOck84vD8hOm1UpJjRL8uqgACzLqXHNSXXU+xEtziJ80Ym7s51ctNKfFIvA==","shasum":"7635584f1182e42f05ecb446e57bf61490fbb60f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595433596821.tgz","fileCount":146,"unpackedSize":1767884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGGKGCRA9TVsSAnZWagAAAScP/0enVnMR4u+go+gwsPnb\nnqG3ls57UxaVJoYSeexuLufT+zBzTxNe1ONjvRTjYDLJ4l9Da4igZ7XMsJ8b\nzq8YQEMYowax0RaRkuOzX8ajJxDs6yE3/a/PSzk0om3+w1/Z4qeFHCLXhBZ3\ntmaL0rvrz4OEfsZWpZ5rbX51JDRBt4UPoPKip9VE6YbhbSaXa5/gH47Bpxis\nQOTpFgB2MeX+SmKDSQCXBhtIkBoVyTPW60XrJmg3S5y13K5RqpfSC6yQg4V2\nq1yuN7A2JXbcV9/axuIey9hUlOWzN9pF9sS7ieojwa72jJpYsRQnIHwnPXqQ\nrsY8c/jTkg0ueTmU8heGeU5aXJGU1dvpLOgC4iZoMQcrMy8aWPr5D3TxPE8n\nySgOrark+Y/o0Gdd0Q5vkDXZmtWm6Rr2o1kJzw3OKFgL75YFscULEQVM/TCT\nYGBR0HK1WtkCkRNsclX2O99/+uINcP6xVj6oqpW/khRk+6rD9v3RSju/Fadh\nI3WX2RO6VME0qh9S7/+y/O+WpveDUtCT6xlmBGnsTxconN7OgDr9G2XiiQ2u\nGCPl9k3/0uSbG+YGnKuNlySqxqeg9CoOb+NknZsGkuSFbBAvkoiKFBsZTMXT\nA9fnEYSpZFTd0YzHB7WHCuHQPH+1WWAAYYKjwW07gNMqV4Y17TUjThLgMTHo\nP5js\r\n=4P5U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAjwg0qKDmkuKDlXDNo9p05ala7yQZfHhpdVCVt794KCAiEAocXx0lm4dFgjduMkJw2tYHmBwI8mtV1C/l80f+BSX+g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595433596821_1595433606094_0.6969452576656459"},"_hasShrinkwrap":false},"1.2.0-next.1595434326568":{"name":"playwright","version":"1.2.0-next.1595434326568","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4197.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4197.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595434326568","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rBF0/2a4usga1TROxyrGhTWkWqOqCrbn6Gh+SR+k3SbfwChiTFtuDC7qEMiAKC+pHO9y2cQwg6n/NrxJfQKo/Q==","shasum":"45e7ef5001e8597e52caebfa7bfd97818685f0bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595434326568.tgz","fileCount":146,"unpackedSize":1767884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGGVfCRA9TVsSAnZWagAApD0P/15QfT2dy8J7jfK5BI/8\nERkE70snQgWkpA3Gjd04ujcPZzhnN7u9H3LuZhZhH1qzxVjpXjtrwuC6JLgS\nA7HGN+Qt6xVaXE1sHw7mn5E8ikIFVAxikdoGkUH7jk8IPhhrvPqWQJYuscwC\n7T9usoMkjoMJlbjD5C+TZEIAl6C22espZHdOQ4TVEf7uxQpY5UfCwJ1tn7ET\nbnXF5R95/R3z6+pYbN7BE1hXdAkwkIjoCoJyYbfToliV2jz6XQ72GvTXz0ne\niSTOzFbJMi16/JFWynWlCYQyXhCuiUZChGUH2xNoqWCzG1Wz0gARSFUC07WE\nlqncMBTQpjGGfkM9Yk4JDe6NmYnUGWrXFabdElCZPJwBvyAQT9T+IrcEEzAC\nMQdvqyjDf0+o8/e7/c7xrnVEd2tC2KABjE0ib1+K1YkCFJ54QaAXajK88ExH\nTgHRMOnwdoSeVCd5FjBneyCr9dDNg/+hLBuh//9C73c0no8RGOtDOZRepU1j\nKo7zvzbR3XzSvNIvFCTuXy1MM1NnsT0dgirkJX+s9zJkwnMWU025aPUKQ3hF\nds0jHRf/D1OoA2ioW83eggnMOWxXMm4DA/vFEP6b8SMAthpjjb2zkj+69TaZ\nA30+yej1hFFc+G+6qYXDL3ZElGHGy0FbLzPQb1KMJZzjr9pc+THobN3pzKZN\nwMHH\r\n=ZywG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyZHBQAjHoo3fBF5RXBRpN4KDCkRxK3KJLTON8ay03/gIhAPk+dGCE0VDKavQBYfopCYBGRUktdGhDNyU+kbQJkvmy"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595434326568_1595434335089_0.022118285048238873"},"_hasShrinkwrap":false},"1.2.0-next.1595435009893":{"name":"playwright","version":"1.2.0-next.1595435009893","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595435009893","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-tsmkoN2m/YHRj8KZbI2x84Rxw6bjxJQJPENQfbTV8CY6B1yB/zlTDl0WyQFpJfCpD2qTaGApVlYdcO938gsefg==","shasum":"42f0fcfbb097a847fcd61092568376d5b2e7c61a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595435009893.tgz","fileCount":146,"unpackedSize":1771825,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGGgLCRA9TVsSAnZWagAAVdkQAJtEUsQ1cVvs2Dd7iwyX\nktjKIMZsKGHOxiz8Wg0z9L7RFELvD/2XAtEWZBtyGh/8f/tGwAzrvr0nhQWr\nsg/p4UU2xvt/rbptOYwMOWHes80kwS2A0PE2i47VQ5lASq+Yt8sKugIE8CpX\ncn10DOcLpYtCcGa2dwR5jAMxsVG3iJXVTZTF0YuLYXqbV/p//Mng/qow4hO5\n+M8AEtX7CyufxhRr5UcgMlu3J1k0+SXe43akmt6KROXrBlvsVHHOJskdBRFE\n/hk0c24NpzT7pPjT28J2/R4xCHJ0VJUst5IMwJqjj8gS4Fa/RzRRqxefcOCS\nn9lQLqlYpJXk8uDgshjwav/1KFtaHETVX72ZoG0iH1wv2nVa8f9Cn57gzDyO\nVyEI4OGiQlKh6Yx9U5wmU5YgW3YloNJ1z6kRxKw+3ePrhx1TYr/PgxH5wuBF\nOr0V/aq+RO/QAOeDQPoLjaXderqQGFvaRQjuxf+Krtkj0onSX9Q1lweVA0e4\n0TUBXIzTAuGiJVRMUGegt65JA27eTTNMveef++vYUNwEb/gKTQ9E3fXv5VTB\nDm9f10zB8W8zMRTmHKjSEzKmym8GSL2zx1xGy7lvq5Ihg6H4RmGm8QXa4Hgq\nuxXjldiMOXRD6LWnwfhDnwoI2svaU8O/C1WUJJiEBYUHYZ0sMzb1UYklxSl7\n6DEN\r\n=28/x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4dnY41iILtzI0jOWeQ9gTjcf79vR0ypheTSzxjlRSwAiEAp5ZlEYP47W/UpfAtryUS0q9HRYEHOZdLfm9vrdterP0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595435009893_1595435018870_0.9576732408945401"},"_hasShrinkwrap":false},"1.2.0-next.1595439555433":{"name":"playwright","version":"1.2.0-next.1595439555433","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595439555433","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PHaIHQaOWqyTVCFipkX//NC14e3Jl8Znc1Wnc3y34wjpNSQCXvTbeHWY2lzbjkn0vE1xmvQQipmkzGMglhqARA==","shasum":"f1aec6ef25430e79701a919cdb8f2080016bd06c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595439555433.tgz","fileCount":146,"unpackedSize":1771819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGHnLCRA9TVsSAnZWagAAkO8P/iAm9/bkXnM+i/bdlF9E\nKAXx8QYxeDG/yoJNiyjAhVvUA96tmEYNbYtBwhKGQCyLCXge1/LdAbUfhpG5\n2TMlrDoxRVuG1FKlAMeiSRDl8Rso7w4ncd0G0bKkHBYiJDscGaYCQ9gtXeB3\ng6dU2DWUbg4vCtJLc/A0kgi01RnTakIxqjbMNVXQAexvJBLYZJsoivCu2ka4\nWi5HwFabfSuh2P7LsybwRzT5fGcWf8LoC4yfN8mkFQ0CQ1mirfM8E6lHvIOM\nS7OVKyqeT1Qb82M+3/sSS0Xrgdm5x3W1UbOr6RIwp/aEfkMFaoNg7cFsF+fA\n696cNIaZTiEj19Fci063OTEO88FbCPl2pfFWmv3eW9Ch99bz91EFLj5fgpuo\nXpFOOlaPnchtNarQKIK08ZoOcOUnS46s5ysGGeb7yJjNKv18WCZZMtdQCrmw\nDsvX3gtQ1EZhgM7lKKWZh7NtUTnAaiyWCaynw9Zva/zPEzZofT82G6nLMcvJ\nEh73dW04kXYsmD0qsIKyq3GEcCuPDAheL5mpqIhXdtGHVd4Uq53BqWEzZci4\ng+4DVAmfQrNbPMq3wh1gtKdLW0i+wy/KTXgfEOpn7q+bpXjm1/nE4zLBdvKa\nUdy+zR250XDkZQdcEEjqYf79+dqi6DO8awYyBSL0jhU1C2oXu4eK3Dx1AMoZ\nb7ne\r\n=N3uW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrvoucQQWlo6uC8IkdOGu8tDYPmuu1q53o3f4q8jbjAgIgPirL7BCByzn1/L356ps22GcgU+BgNMK86KU0rVCzxjg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595439555433_1595439563081_0.3863154990773354"},"_hasShrinkwrap":false},"1.2.0-next.1595440847699":{"name":"playwright","version":"1.2.0-next.1595440847699","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595440847699","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8zuy691S/Xxq8PpzP133IgUFkHUPMY0lSAzITrL5EAgTTLAKlbi3PXozW7Ch510+FrRYHdDd0hI55wcCqq30Qw==","shasum":"178b731cd6b5f8b84c9770a1de508d87337476aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595440847699.tgz","fileCount":146,"unpackedSize":1773228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGH7ZCRA9TVsSAnZWagAAplgP/3Ye6kQA+4VC8nEfQy+D\nin+tURlVFCQuwwAqGcNYuY8mFJG6iBBKoJO0tZVoAJqQsAQGg3JGMfEfEw6H\naIbI4gOIMNagactK69O42Rp3VYLvKSOfp3QD6s4BjyrIu+kziq8Aq0A3g/Kx\nTjJZXF8afwf7YO5o4Pacg0TiskNQWdNdl4jnUBSPsvkp4p0eofo8FQJoyDZt\nTBJ3f5XurTW6ySAUE/REzZzudVCrnLLyqzz8p3L2y8O1nwvRrZ4k53uRyRUQ\nCevIfOcUe1L7f/zvMJKL1lXvO/HMXwzLGkaPjm1JHN6SKOvB0C05XF/rC4sC\nHRwr0iEqdTM0/EAowXIpb2Yn35ShnzA+UJXuiH4lSPPzrBx+fgJWWYWp4MgY\nVaUEcshAly790i9iIvlhHe60oXYsc7bCQMBSswHmoIZwxCmgrZlNzI+zzUvH\nsgXHBKR0zPwnhHZ9KXes5lZlE8U7fiJVfd8VuvWG/Deqkrqp4++JhLW+q6nx\nTX+E4z7CqxzEbLPP4oYaparUf2SqI5sCmKeE3BcGZPJ/zzOGiEHgB7rQlOMb\ncsxCW09z1fR61p0GVRhO6mZ5tntnqSoeCENNLIt8hqqmA18cH+5/8FMXCNiK\nvEdMGFEutoCOypeIn3l6pOTAPMYmrXy1mZgyrKBQ7ZyQyK4hyzbbtdn5UdHg\nHmBZ\r\n=9e8L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHc6BYwFA+5/bCD5rtvgYLlS13p1jwXXmfo6GOqQPcoHAiEA3AMycylKnL7prLOcI91kEh1YzumBbJMOJk24MV+Fwi4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595440847699_1595440856812_0.20665779684392693"},"_hasShrinkwrap":false},"1.2.0-next.1595441141563":{"name":"playwright","version":"1.2.0-next.1595441141563","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595441141563","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kDVTweDeqU3KpQ6PuIFLiesa8X4O/BOvl0fAkExdwb2Y/GFyqh256sQ0fZFsIYN685TdKOZ6vzIDDf1lr7kgmQ==","shasum":"e47c225bf23b89f94b33fe518dffc5fb711ced7e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595441141563.tgz","fileCount":146,"unpackedSize":1773228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGH//CRA9TVsSAnZWagAAPs8P/1emad90YjDU8Mcdth0e\n5UXOhVa9wQtKCHIUu6DextONmnFnfh95sOxYPZip9sZW6+YtmW+ZpyY4BKkM\nIzjwmjjxQILhHBYbAyRCKx3YWyGO/lKAPUblpfP1ZXVxlbAQLZqT8aCEhb2E\ny1yljwgvNUCdAKXi1GypYdQ2ghcVjnM78JdhBQIBsf0p/OI7gt1subZAeeS8\nMLBvJzMIotb6DTijKMOTtSDdGOU8ON4VxeShx0HNUYwlyVyFkwWcdZkpwLh2\n5gSa8m5qtUs6zxF7fjEQ0VG9NUz7FeHUVAamvHEEH4BsotaZCtczzl9trzG7\nZaLzgJjcINKhPNzWYT0ihxWcGf7W0S5ot95Z4RUrGzeykjQWwtI/Vpufm3g2\n9fxfhpGb7kJ9wBgFWer1ftRwWMLIFq6QPark/3acYJVP/IeSraaYRwfbxVNU\n8EKxughZNE3f0fB08Cg+FwpVpmWn9268xs4CWeQMEoHTpxbpWlCMQV2dBDAb\nbc+XShYDlbLeeL6S9Gq8nqeMCOmo6WfVhb5nYnn2sJCd0jZhOB1MY8B1XkHs\nbQmAyDIXIsShdWt2Lz0jHXtqTJAf/9YlREHV++wRcFgJGmbspznCgA7+SytN\nnbhFMtZZXVdEjVIqD8VonvbWyoOHQnrl0Mmqkx2oAZwpvOzO6kKODcXpqxxR\nIfRE\r\n=F5Vw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFb9OORTkoRNKVa/PrORz+5vePNPq2DL60cxPQTlMFTIAiAYqqYBMXPKKNrfpm5M5CfYTP702joTAXyxCcO4rfEp2A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595441141563_1595441151135_0.021270358236142206"},"_hasShrinkwrap":false},"1.2.0-next.1595455039483":{"name":"playwright","version":"1.2.0-next.1595455039483","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595455039483","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dZ2/3NI2Q88xCixtNxSX42axYXfaiLB2eMhsG/9Eyx0siwS7B0SFOtCPLWWFKghmw8GSjUI7aPyQ1/Vv9IzZBw==","shasum":"fa28f3e3515aafbffa6285046241ffaeacd384e0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595455039483.tgz","fileCount":146,"unpackedSize":1775200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGLZKCRA9TVsSAnZWagAA25wQAJl20dL3WhJNbN0oq0HJ\nLrvSQZAhCDuHHEUp2o/YCDqbOiJrImFuiVo0Ww0KmScUs/YtYNtQZdKV7/EA\nDvflD3EWQV7Wtbi8TwV4IuGWscHvm9904sXxbqUVfzq9mfcDPyUwJoSqVJ5p\nkI6X7USGd7AQoadZaBPrssf87/Nk0ElDojgwYt0TwBi/7R7Bh7MeoaGadBYW\ntVvptQ6EKfWra06ZArm3afp1zMLTjf+p3mTjjxi9ZdAKKPzZs82EbYwOR3DF\nqUKoqzmwE5bFKDyhBYxgW3Tqlb3DBmpcsuN7zBDcltyeJX735Ft832Yh+9Sm\ncgq9BDnrhPZSi94H1LXnlk61uPdiK0a6hjMZ44Y/hb/jZCExY/UBhbIlw39u\n7Ziru0xY5EpkjLF0RbqrcFv9vG3TkZ+Vtq3miUN+s41EYS6IS5+KjiUB+RKd\nFlDVZ1iFa88c3X4XdX1pIIa+0B7HQCTSOniBd/sgKT74cNMyd4X+H3hjRenh\nkvQ9w0rWEWhYN4tLXxt1+N2ABCtmlho7LnZHAerwUV+6CK2fOxGSTv7WGnNF\n2BNRJ5Xe0kPl2msG2ebep/xV2BB+yGQhSfLLRa620o7k0grXGh3RFDhth7l2\n/tLp3SxSx0iQexrFSWKXnLwy87n9l++uofm1yIEMpaodl1bp45ziKx77jU7c\nwguZ\r\n=IAOi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCj+osm1lh1BZEgaILCCqJxHljD3gS942Z5tsdDToSB6QIhAOomjBGXv+W9fQa2iLTAoYBJ7uDPb7X/7HujKj56UBpI"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595455039483_1595455047537_0.37798986423692793"},"_hasShrinkwrap":false},"1.2.0-next.1595455363280":{"name":"playwright","version":"1.2.0-next.1595455363280","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595455363280","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-k1I3ZM3wM9rARC2v8FWONoLXjd3Wuy5A59MvymehDzaSfYYCMw6J05ScgSC5hSJO2jJ2yiJS/GhYlrO84OHaFQ==","shasum":"d04ae486e5090a1a860f3afcbf05bc8550369116","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595455363280.tgz","fileCount":146,"unpackedSize":1775200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGLeNCRA9TVsSAnZWagAAzPIP/Re3tjp2FO614NfCmxn3\ng5P8/vI6degm/hQo26UWcUwCVh6N6tXuVZuRCvm6o7JsL0E718cCMC+fxzSS\nxJ0ezkyAxsI4xAg6s55njMrQw17EJK2qK7C0SX0t8z5CFYOVerE+0MULBxfj\nAFpnIy0COzItH0LAS4ecV9pPpO8F/yJbrQIXyUXELVl26N1/rIulFsQ0PA3N\nqoXraPs4iD20lIQFtpxWMpWKPmjPrW/8Jj7YJnf7duvYljjfZ4Rg5h1FLeO1\nLJanoy9JsJ1Or5nr2U+hv/t+uPLRZah89qrL6uOha/SboyFmdKKn676xLJaO\n2neytFdV/d4VmEE+xvC5Y7TbER+n6maYiHoiioRfCKeVIhYdDmJaWOjpBlIB\nVC2xyzGr797I6QadOoTyaHzZm9Hc98CjJfdic4YgENwR44whX8AILMpmKbQ4\nak6YDeg34owdYR01CDVD9mEiR3Qf1Q9moXW0G/nvXi5BVqMGlmnSNdfRDic9\nFdUI9Gm3yvl9JpZF5yoEL1nO9xlWmha59MdeOm+nzrgKXV0Gtyir2ww2Bx/o\nGepSTIumOK4n9jmRWtNO310QyYcstrHr9VfXj1sS4ZWj2Cfiol0HWYRbfdTO\nEViae3I9EOUG0JkhHVUrk4X/uXPkDuoes8OF2jw7z1u3tewUpXmqJqeuHY3f\nt1iM\r\n=0Z15\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHVOrZuzndsS0VCIAeCGCgRWinxPUJ3JiGJjshLPOV/8AiBHqFMkKv4J/NGvxzOIvNKWHvzknLoT3CxCnHQbWbGmcg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595455363280_1595455372972_0.05435567673169861"},"_hasShrinkwrap":false},"1.2.0-next.1595458910171":{"name":"playwright","version":"1.2.0-next.1595458910171","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595458910171","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-4lP8stiXlnk1RuHba70mkCmSpaW8Rw+6t71PXCFx8YdS8FmzQnHc4KroKB/fF3wJXUyqXTAlWTdAC06kH0Mp+A==","shasum":"f1f7c561e0db4e8d39380cd9a2e67f8f328ab621","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595458910171.tgz","fileCount":146,"unpackedSize":1775906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGMVoCRA9TVsSAnZWagAAM04P/07J1RcGXBZRC+YBIaQs\nD6LTLAPbpkXaYEZcXxKiH+shoaRVYXJkHNBMMwF0DSMDYymqUucg8Yuiz+Td\nVcSOoT2ZMQEJ68cOUnp/KrOiCBMxOs1xGqGXATnOLUaSdoy4fDxP83whzpgq\nmNsKHwW2dPUxV0/PUDLWpATodcv0NU3rlPDrgNqV1rgxVbUEuBrTjvGATeCT\n3g1l8aIhN16uPexeZ4pUWpPdsMb/r/mCEqjBcvOxOi6Aq6f1UCulEJUoQEl7\nPkOwl4KTRtG34ZkXVA8Z2vvFhyZ/UT35voYIk7qLy6uc8scuy1TEEJGhaNyU\nddINBzH8wuT18CJV3z/mm0wXX3C0x4P4LUS3CoSJ6wPQsIrqSbe0YPIjsP4S\n3beRRG7oo5WaTEMvga5CxVsMigis7VaqM1e8TeL8yuTTlGdgi8gnxYsCsK/J\nqiIegpfq/CUHoRTkU90Sln11KNih1kuTwkxsACwRdUPKuUy68lbzFDA5656O\nz1aLCl8L3Hv+aOXQ5/ojjszq+FSvCr8vIkNEzKW7UlpNmy2pqPB3g95sly+9\nthr8AUvYLIWlBTtZMkWdeotH1pyWxKHGpbEFuNkfzJeYdzHJg6/N5PhItdc5\n6sTXI/QuPsnzxJw54T/4TB4z792eZfYndVxscHqm0YXP1GOsUTNv25XsKaSs\nO2av\r\n=PU39\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8FB8+Ogglp7cXiRN4FBtfk7uqhkJyy46t33Uq2t1hgQIhAOpKoiSm6zonRn83B/QLF9IqjFPP1iEB0SNmGm1hmm7L"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595458910171_1595458919762_0.8861013094797194"},"_hasShrinkwrap":false},"1.2.0-next.1595463697569":{"name":"playwright","version":"1.2.0-next.1595463697569","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595463697569","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-o06rZbNtan6w8Xj9+3foRleQLVFDFnngDnpfWVpUcx2Gf9iv8uao5wmGxe5/1pkaYeyqNU9NBycG0UtHuejklA==","shasum":"6cdfbfe74b65101f6017cda4d93318f1375a0172","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595463697569.tgz","fileCount":146,"unpackedSize":1776726,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGNgZCRA9TVsSAnZWagAAjswQAJmd3o7596qu0dLPEZnV\n5l2nuintx6k5hPmvaChzKomGdW7DAarChm3s/qQZRnTAwfim3r6T3VRUNVYe\nLczyeH5sNGtejCO5aFPalrCAvpcCbuxe1cnIpXwuJdHyp1xo6JG8ZFYWYclE\nM9jFxztwIzlCal1Y3xFJaORjP9Wv+0CBchVUBWTKV0/9krvB8eaUSrp/ca5h\ntUiXCGI3XlDe4ecbUTEdDN6/FyttgrzvvW3LHkVQjAb4/KEr5Rf6hG3POQ5+\nSzcUdY2SVy5q9tRIQvtJsiBa63HyJien0E45S4znxdJz3L04t5Ve2AJx3eFL\nRwVv5xGJke7lkU5HsG2k8Qbvw3TfRZMcSKu3Yuip4J3MUT7JD0VExOfBP/Uy\nA1vnLVkmIORmoJXq5xN7jqP9Y/oYOpIesbKSgL2MNZCtyug4wVyY/C9EZxJ2\nC7LVF2yTB8Yog9MvELLtXnk+C2gvYfuDlaFeV4BiZ8473NHFf7Yb43eoiLO9\n3mSNf/VVFl1PuNoFoAR5HOFwbfVrpcP97PzZmBevevmWVeLWFvFTH8X44n74\nCQbY1NmIsWwvQbM4LHytTuVcf9qlIpDonSZIiSl3/Q/xIaYKsN7YhZqc06JT\nEcHGRlPTu3wjVRnVYtMU0GNIBpBRPqU0Y8CMASEEBAw3JyIo4AvfMAgvEcNK\nXRnP\r\n=bdTh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/zAxRESeKP9gVEqzOQ0rUL2rljQPwrH81lKFdZVw0KQIhAPWJ7L+xWwKUDXu00qyaLHQdxwD+akMw33VO/ST1HueY"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595463697569_1595463704443_0.06748176282303042"},"_hasShrinkwrap":false},"1.2.0-next.1595464182508":{"name":"playwright","version":"1.2.0-next.1595464182508","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595464182508","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oN5ggpdvd+SjNmMteN3ZyjO29L3W2BHJYsozU1Z57+yuAjViJ1vJ407rL/20PiqLvEFHNweO6BOGs1W+BhhPSw==","shasum":"711d008578c4000661b96e2a717d2197716f240c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595464182508.tgz","fileCount":146,"unpackedSize":1776726,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGNoACRA9TVsSAnZWagAAJLgP/2ba9nZQSwv4b6GR/SQK\n8zNMi1TqOtqGKmHvKTxEWMCVySGVjGA/2QTAq3gpZyn0hNltfktF3x5VbImX\nQ3l6E0lMaOGTKBv4Nm1FnNHIW4rrA4TaXOrn6y97gGCezzgdBgtck2tI0zMz\nYbfm3I+Gx8QIAE1N9Li5LOknmIFFvuk4EtpkclNEgNSg8jKGtG03F6tac/rL\nruSNryj6zV9KD/mwI/BC3ROq45H+uDKh69AsXg24YFEBAPY6dZ5VF83BylAJ\nbA1ASV03CCt40FzoHh6TVnBsyZ6sApRyEo3ylegrVvGxXOzrCojrrGsmpqXl\nAA7K91XiF4wxzvCpGJWjX6Cxu/zYaw72WTnG6jHZW/1lPEQAuyf4mpIsFBUY\nvT2u6A0jKmblt3zPK74bbvchmcQJ12jPNq8dntAro5WPZryj/big3eaUOF4L\nNmJPq6GSAWfutir3WPz4v3sVQLUQbWvM8vl+zpmBBJPMxjcgQfGKRAQ+qOb0\neoxCqdKra+YvIw0wJKR0ljzSUcxocHYfDzDs1G1sJ5jPNmVyXCA3xQe6BTIR\nnnrkY1b5qt5H1SlYZgQVp8CWCJsQayCWwkmUc7gJ+AfzECKPXNwe4mRh8Cee\nCRV0Ndj3qJmV/yzHO+mLKnFoW7UnhnGyQdUjlz7gBQ8O241lYaDAgOHkjo3u\n3EwK\r\n=Z76O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDRyHlEHCQ9tq/6VHcS1w2ANachUGoazOY8pKBeenQOdAiBBrgbLAD/vRMPkybNkKKiPdVJNDoEI6vH4XLZiUvy56A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595464182508_1595464191703_0.476313997644187"},"_hasShrinkwrap":false},"1.2.0-next.1595466440335":{"name":"playwright","version":"1.2.0-next.1595466440335","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595466440335","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AYvP+FEpmg6J+EkxbhpfIXB9SKMWc579mFStPYO7AC187sCkJkzl+Mva8XjhVmEeULk1q96bOkh1Aby6MDilrQ==","shasum":"4374f5f3a878ebb69112aa26924deb9f107d263e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595466440335.tgz","fileCount":148,"unpackedSize":1868763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGOLRCRA9TVsSAnZWagAAME4P/1bJ13sgS9wlZGPPT7YV\nZEs+CX7dsOYVUSWgg9RhtOqBL0FKqMDb3PHnu/FQUY6DyJpcpckdTkO0yR7n\nwPAPyFo+gb58dlzmjhXWEmLxxji2TMUhjSQO3z9sHjDgeOuVq1Ey8Vqc/evX\nsTaLr1VC9TV395S4f6V9lx8Qh40TsCDyrS5kHlxlZTWR3ZykfzPLi1iu4/Ao\ncRSrLnXhUdAjN9XA+hvmSEF2JBZ3q6MG0AtcmJ4jx+9FlpDFYABe56g3FlHz\neWw26+XN8+mXCYyInJt+7jrvqO8I7puSCwU42WXk+aM5tZZ/BHex7UnSWcy/\nzH8gaVfC9Zz+hqVe/eiF2/23BFiOWMRbkLcA6I0uSDZ7fBhYi9nmNn02DmEk\nb2XTAYuIj8wcihaqRO6qbbfaH4/juYYYEvp3vtHfqWwAzMrzmZU8pTv8RyPT\n+QKq2BWrnJUo0nx+HAJxG6V3YlEFziHSV8SWdVTZ04IXuirKdxHyOPhiiiXk\nyhfSkNN4rYQCiNbdkcgVz3VAMzWy3gEZ3FocOknbcyP1JmcHRIx6EY1dEgEh\nBA/N/O04uE4Wa7yUQMBPzcsU7eOZz5oUtdLoENtYYKzD1NI9UrYsFhLYvMGZ\ngSIZiKyoNeKmrFKfm0XviaKzXqIyXaLGdK/SW1MI/1JR0gKdJlDHKB1Tme9r\nWMc7\r\n=pVW6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiJ3cZD5tvzWzfJeWfHgdqN4lHGgTlkisjsZtwOXCBXQIgFlujcnPj+3OqHbwcaH8BK50sWl7obp+GRm3Df7Rugsg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595466440335_1595466448996_0.784253515972481"},"_hasShrinkwrap":false},"1.2.0-next.1595472023537":{"name":"playwright","version":"1.2.0-next.1595472023537","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595472023537","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LX0fM62LIaGkkOpB6NPMslO6NpNJOXa1hbmrrfOk8GdCC8f6AVZId6YU7ns4s7sOj8qynx4DxSKon9rRreRPtQ==","shasum":"e24a6f5f5330c3d671b8420adb335af802beae3f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595472023537.tgz","fileCount":148,"unpackedSize":1868763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGPigCRA9TVsSAnZWagAAu4wP/iMxErjaXNn/L5/gMcVF\n4QmkOBvjQSVHaNuIOfg/RF0dlqCTvp3v5v0auN+eRkHWz6Z0/ea312l9+3kz\nV/NbaH0g0miCsXwsIcXxYc0irEWK49VcrEydr7Bz8lQbDqIPZsbjHKSOOW+H\nsojil+d2KZspIVZaKweQFmnX4xhqNDbIMTfQn0/+CgqdmJv6K7yCv5BmP/C/\nTbxGBmsb66ElKjBf28gwsMkv54MTu2nEipSief2qlEp5eZ7enRcY4gLVghuh\nQSZAIY9aYpY3dunbvGMjw2i6UrlXwzCoIHuGim/REGKT7E641p1TsTEB89us\nLcomEmYiv4nBtLU7xmIHhd84t60eTqNr7yO2mrbY2EA4J+7lC+uO5sNieN/o\nuR9QKCHA5duV+Pgwt8IdbMc/Wgnuf94U3ohW4eDvY+y3Z+EFfwqnG87WFWBo\nHoLIEyoXZ2pYzto99enfIZSoBj8KtIxJRGMdtxHO/hC5+K/UC1BNLjjXdJ7F\nwrTX04CqGW/dVqzwyKPtDoBjRoCEi9q5+vN8aRbTUZDjedP1FKlBNh9P8b3b\nrp+rDzzZBHhR5+5PQET+o+zXEqSli+RJhen33xf2373C5toOtkauRgxMbcQI\niV2rpS2FzhE6SdksUEKFUqEfDlqt1Ggy2CgQy+yYZ6lEXU4ex/RrYSP18cQE\niHs5\r\n=P6EZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKLz8wZHvEbnZH/XZTZ0YyFS6qWs8LxYTF7105NfTd2wIgBJYHG8jc711RVU0Swd0U90TUs75NXScqO5gIpx1KIgM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595472023537_1595472032360_0.7495068277759784"},"_hasShrinkwrap":false},"1.2.0-next.1595476070651":{"name":"playwright","version":"1.2.0-next.1595476070651","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595476070651","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+LxxLnH5qXlP3mEZ1eo95dLt7vOTMEw5IFiXO0F5MNbVC261OHt4InIkWtW7UWviNLkR6POYFf9ZfE14FWPVuQ==","shasum":"80dc6ed039d6ec62fadf56ca59b3f842231debcd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595476070651.tgz","fileCount":148,"unpackedSize":1868763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGQhvCRA9TVsSAnZWagAA9h0QAJoZwmNZSIbOGMqepWUc\nbsvmjKRsCUaCVVSK5htoQDg51SlZjBXNsltUSUUAtilfKf1bNu2Sm8407Pja\n+ELLaWaWJ3qHJwefJ8bhvc5VYJwHuZrkf0mpF4kHguRQcfO5TT5tb0GpEUH0\n9WFHABhqrpcSHdVak3ucv+X7xFG0UZhYuDwkvAFUqIjy2MMSnERoAMKAxu9x\nDI/kGMeQ/3oDwRS0sSomT2q+SwJxlIMwbgYxLD3o1jhiMxzTGdbEaDK/L7Xb\n7RUdalDYDE2LtNzMqH8e7se30/tlkli/Lc2l/uE8N4ppGAbO2FJXsRGjaDgC\n3c0+9ShH+RuroTuSFzjUCNgVO+EJxJ9C1dk9ytb0q6lPx4BcvaFs91mdNmUH\n/dHYfUjafX+2mAUzZjjs/FZ4Wbv45ttgydfpyR00dBZrRl/ckjJen04BuaSd\nb3nQN2b0kefs3c7zsq946EnGxz2iwewrNPB7M9RiLWVU6aSdjvekwjtrWOaF\noJfX60WOa/eI1rTYBDFoN94rmh5aoDjvUXWrprgcSX2/QjB5UudhkK67mWLK\nYFkdzA0/YAADfQIW/XhaH2gUjj0pcQryRs4FPdMkjE+9nO64yeHjxlbC+X2n\nFvxFm11K7CQHOsov0vAmTivmoHbHZ6GNpUXNx62mFX3JosX/pz2VWmC8LxwW\nmwao\r\n=JbSp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyuPrkpqxMb/54QeDuD3DXfrz0nU1GvbjABxy9u5Xo5AiEAx5Ywg+5XVCIJsLWx1/bCIvJY5wjU/+XXNIdaD0TvCq4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595476070651_1595476078480_0.3629122908088447"},"_hasShrinkwrap":false},"1.2.0-next.1595485784475":{"name":"playwright","version":"1.2.0-next.1595485784475","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595485784475","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-f7e5lXsPb6RKNkfie+I0MWdQmQ/2YJVRM7DTataSfSpcsBsUvnLn7rqsc08u69ZT5lTfR+mbBmc48O7qgfgY8g==","shasum":"452a3da7e9c50669a5dc00e13d9d76e4434a0d19","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595485784475.tgz","fileCount":148,"unpackedSize":1868763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGS5iCRA9TVsSAnZWagAAjBIP/3Dt+WydQ10re69Xi+1/\nw1pyBlh/ZsaQINxBEyfPrZ4hinipNT57a8mcOn7j5gEZIt/8sZzv8qRurnef\nFaSI4r4Q8qo6MHdTHTgFBvS3SzPqneAjB3vkFt+qIjsT3OVOk9rBgwIukDmK\nTfmhA+H7wj4FRU56nfVY+JAnkJR7ghw9XwDx9ypTUQ43zo+wUKXkMFnbsnp/\n5ipYsmE2GXMY+QRRw3pmkqxs8Y4wQmMViySPXvy5FdGzdvePV/gBmPxn3g6K\nLKXnah0mAWU/F+hwpYChNiPOD+u0EcEUUBJHQa/y+VrFQ73HhKMtYxtpBzZf\n54lWtktY1yor3aIVkL5eJ+d+IXDtU3NVsSI7sPyzZMAnViUP6kpKsK7BTJCN\nCcWhB/u8VTur+6sd959/7+wzTog7zIBu67XeDty2VJwZm/Z2OUFGT6yweeu0\n+F0cpebnDpwQi+OQHHudCtc/UEuJZ+5Zu+0JpC5DBYznhwVJ4iAmLamF4rCo\nSxbtATeZfqGZI+lcOL9Fv+J/LoXHLeufHA6DBWj/WjFvYUIWrHg3FG9PaMon\nMehk0cbFLLZu1YhUs1F7UGYUOHfMh//3hILOHLZpU8BDbS4L64t6NVtjkA4a\nAFD8eV1o5n79bkfBZKi8YdZr5pa5HEY7yrTBJDf3GuqtIbCTrRaquvmaWDJK\ntCD0\r\n=hZND\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUt4ALR0c0ykMsaMM+D+JeaSPFE7ptnhiBS637+ogTFAiEA8naHWtBkHMzWa32Mto0o2kPg5//GuY8BaakFfXRrcuY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595485784475_1595485794158_0.8698119441002863"},"_hasShrinkwrap":false},"1.2.0-next.1595486220762":{"name":"playwright","version":"1.2.0-next.1595486220762","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595486220762","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6KB2iGsg5fpk4L4JzO9rGTzTT4RtQwMfSSQGTCL+rFznBgYn4LXzEE1drfRp4TgjkzqGLbyMvuyrVbSkfTaOUw==","shasum":"1599f22f363e84889da847bd9c78a7ba7494f6de","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595486220762.tgz","fileCount":148,"unpackedSize":1868763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGTAaCRA9TVsSAnZWagAAJ2UQAJ/EUP/25U/HU6a2uWl6\n9qvVU+UhlEmsrV8kQDjYk5vbEVXD0M9TA78lHgmRci2Uabsdr0VN+csTGlMC\nvtHlEUarAr8FlCmTvAKeYkL2jUMcjVFmktC/IRWVglObLAvcGVM52B1eg1bX\nwuBh2QH2/IbGYXrJVSndkfc40U8fYsj9n6ZuObbQY6K59IHUqF4UZruhIgoS\nOAkTutCgsYbnTXWmL4zGWI8Tf2uMudormh1wiZfL72PT1q7nDiBNUD0jho5t\ns8ljqp4tlEwVsxcVdKEyyx1FLvxw6EsthS6rxno26dKIaKPekfslflLBOBx/\nUM6XugvxuTKCFk4Sx53h2iqO7BG2FOG7OQwvXXGZOrz1DlVPRyu1DyN1am/E\nVt5YNBztwIHYjaIS6rALMiG6856QH7BNequwnWMozij1otZ9WbDRoUa6navl\ndUXlcr+RKbphQA03WIdSsRCL44FkJ3GSga0cAONNqSKWYpZWfRBHK88m30ze\nye6bzYGFvauVi28S1YhE1Cbb2mZWsVt3NqlyEbrlW/ehtbiZuX0pM8jrb2Vi\nK+wu61AyriwKK2fMdBj1mxRfyIKZ+fBTtJWWASK9VlxEG2SK7pJNyDQ9c5tJ\nwjHKZ5dRblHQ0pP/1toqwVkU4MW1sIKdGt+hMwWFsjJv9L/FBKgbt+5oVn2t\nddFr\r\n=2YoG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfKNtBBhJ3JRsjQmySC+1IPvAVaoi7L06dp/BnGDuChgIhAI0ELOzDg2dXw6WoBY3j6J/QT6JF1+uhRrdX2XzPlOXq"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595486220762_1595486233614_0.7244889234013145"},"_hasShrinkwrap":false},"1.2.0-next.1595486491367":{"name":"playwright","version":"1.2.0-next.1595486491367","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595486491367","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-SohSofglks3PAJW+IqB5uvByHgWbULB/I9Qv9KBTsQMmTUWtWF8+/d7z7roVVghv/OGz3HJoekX5AnlqZk8KzQ==","shasum":"18a1bf6713092823e61da0542715bc5deaed7f99","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595486491367.tgz","fileCount":148,"unpackedSize":1868763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGTElCRA9TVsSAnZWagAAd30P/Rt4LX++6POtX6/gTT8s\nxR8VDCjwOh0xjJSFevWJb7DdRZfpnPHylnWaDE83Z04jG1mpc0w4QnALEJne\nBsfVzArvTMPwm2wb9qgxQ5rEMaBwkR618i7x5qQ7jw+tK2jNmhAP33w+OcSl\nsrqfGuUVhvWUaREDa4YakN/INqU221RM+xNHixan6leTsXTvcRGk2GL3Ag95\nFHsW+IkAvNltsCzbG91+PH/qneX/++YL0/ORiSQfxnJFxXMbMArs2JKJ5IiC\nZUkbA8YBt5KrVXWsdSCTU3K1JtL9zzaE+g7LrEK1POLlVtJzUTF5iSTXAdB5\n+pONmhHRaCgv2JgBPlZjDRPQVI1hZF5kToZfsmBx+B2K3yaJc/q8Ulea57ZH\nN1/De+xSZP7ZHUjazwCGiWcsdxymTdObefiUj5wgEQO+rYTyG64Z5VulXe4b\nJlZxW69sKSE6FClZ4gjzg0J9dBtA/iLWZVhEuj6HmEJafvHgNmOB2XJXMQt+\nLyG5nVpr9+73dG5oxJ7xrUg5HEeJd2eeT1biVaDAUy4/YaIeIzIPxwVJrG4E\nPCx5xg4Bfgw9I9cHP5+qZzbSfZPpUGZYVaIGVawCtdtvKGXY3FY1jsbtApeT\nOGYygdueaoCNa531kDhI1b1PKKEZjB5Wlr+4etdm7UNDIjbfQBTcfPkaKfuc\n6v1K\r\n=TFkf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvWxP8XDNip77RqOHnsvIAuRmkkC2FE5dpiU+DAzPInAiEA0RFDpXoSwA8P6yzyefZ6cz+ERnIl9YOhR446JS+ZEpQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595486491367_1595486501317_0.7482410186878412"},"_hasShrinkwrap":false},"1.2.0-next.1595521163788":{"name":"playwright","version":"1.2.0-next.1595521163788","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595521163788","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-wQ3dRnsTcaoFcs1XkZ3wLcVDAdrSuHxTiXyykBVeAC1w5ruRfp/zHagU3XTrRutNXkg/QL0muU5ftjhUsD7clA==","shasum":"2ffb51a72ccaba61f0db76817dbed1880107f5ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595521163788.tgz","fileCount":148,"unpackedSize":1868763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGbiUCRA9TVsSAnZWagAAIp8P/3OoLSG9VUK4+qnzK5q5\naC1LfamcqXpy6rk0B1UdRmDcXH2ysZDnkZDAURmg7neKjflmacDoUOM0RUk+\nQCSnzuh4/LpO6DS1GlGdg2dEf0eOFwACRE/uvc0i+0D2aTmgHQ4aTJ9Dds6M\ngkGvvRXuG21A125GRTSk4DfJRyUWOK311Gn/bQtbCWHPVPcZvfFT7mB1k0rB\n4Rvr+Ot9jn+3rf4fY67omSXax9+N+khhn2R/P8bp0CYNpoq995YFvQ3l6pOV\nshzawTSjY0Y8z9ZhtfOXbu2FBIivRN5GRhkXSqgG8tSCZ0pX6h8v6OKzeqot\nMQtGPw+lJgYB08XuQdG5I9tObZiPe3Kwjn60zs+QQOINIVhcpUWKtzD2um0y\nk6/yUFOCnYl+Vn1Iv2j4Rjn10tSFk5pn/LdWs+8n8U5Q2sRYd1erJHh9BiOB\nHLzpqIqMnDt7QhemcEYKi6mmAlroBYeDjM2UiSXFRy6EtjSxjT+f8KDKNz24\nJP7dZWWa3InhmfxwoI+7WC+GVWz/lJa5F5+iVBRWHXmK2NGHhgc/OOK1Dov0\nphMVihgnz74fuym++AInmOpa4uqBipZ6p1/F4bNaJ/MNi/F+q8z9vVRqRNPo\nQYyQkOopRqYBwdH8njw6hUiE2e98lDycB4swv/HRqyKHUecqjJkudz/zxb2e\nkJGs\r\n=BZKr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHE1X2tkgZcw22n4a4UmYgS5ZFgnSB9iIo4GCloxMpKsAiEAn88qJ3nzFej4iMO5V+Vh0BaJYwQPb52ltKeeMOVtLNE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595521163788_1595521171640_0.2880047630471647"},"_hasShrinkwrap":false},"1.2.0-next.1595522096507":{"name":"playwright","version":"1.2.0-next.1595522096507","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595522096507","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gSeyCgWun8imoM9IfJrTjiOKH6anNhkWZElUzCdawbeR3djlR7CeEQtquCSnBl94gmMccucslzkb+X/DV0d93A==","shasum":"f785519b517dc4e4eae64383432d350a2f811894","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595522096507.tgz","fileCount":148,"unpackedSize":1868763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGbw6CRA9TVsSAnZWagAAiuoP/RTIE04Lnuoiilv8C73S\n9tR3u+4LViiEf9m0SgnR7cPpHZop4cXmYJlRIDDwQcTdKr2mubQtl6XN7cH6\nhsAO3+rkq2Ea6Nx5ix0lIyAP7drOUaLKp0IW+GrN1OzvCvwD6mFVlCooOzFV\nuJ7P84jYz2y/BA1RSTERjffB4ZCksANeV8ep5raJo4z1tUHgPlukx2sZDhDe\nAG/6lkikzQ7j2/jCfxmxtV5iHYj4g/SGt7vZNBAcarNVro7jbALNB87Dkujb\n1vadQQcIQdz/mhuPLOr5QUsifEUAwUaWhBqBkQX/SC0Vt+AcMKGXCVKjHKp+\nRvsk++/uP6m4oYBL/wp074r5eN1FaWkxD38BWM4uup98xp4btjT2fyq4WWPI\nkQEV5IRZoxbrB9FZ+WObkMm3q5vxaIOzG/htVzQxNDdvSkNBLqmRHcAjEUF5\n87Tyo5Ye4PKAcIeIjIByNPFEHFRI788AYVMz/efYRf3QrpM/hLKJ9xdB+iQh\nMfTft4HnEopTGY2xsuchCzshinqnSuRJcZnWgQ16UamThpurY6dZ0q0gZS27\nmKXBJfpZKCTblDeU8lubV34Y7JMCTY7wTiCF2pgs+ReRIJVnQtKZ5816b5AS\n6fr0teI3zA9HSf3tWOn91uhO/j7X3xGugXcR+mSYlEfRGI/7jWROQz9XDLcY\nlq98\r\n=5Kfa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC38bSd0i1gcFnroS9lGkBVl8TJayjYApNM5InNmxGhRAiAqNr4gL5G4jSKxMvi2gMJO3CZcr5vKTK9zKlCNfUOciA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595522096507_1595522105777_0.9911140106609508"},"_hasShrinkwrap":false},"1.2.0-next.1595525569040":{"name":"playwright","version":"1.2.0-next.1595525569040","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595525569040","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zqmO+Zpyvho4qaae4sWrn/x9S9jt2qutcSym7hGHca0dVT8NfZbYv26/MS9/0bqSZlWv/HWvBsJ0iOMLnlMrzQ==","shasum":"fc2a3f6af3b1725f9562fc4d2ca3d4208366011d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595525569040.tgz","fileCount":148,"unpackedSize":1868763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGcnKCRA9TVsSAnZWagAAA2EQAIs0awaBRnUyW3LFInfw\nNOkXIv+Eu7c+1TJ51PBnYB3EEiWE6/ljBR+Qw8MPek8h9tsm5ptuz25ys59H\ncgxAJNVj1WBi95DpJq7MxNjHq4V3T8OQi8TqgvedpFfm8TCMgpLhhTOfwX4F\n5c9m1+fITOYY2bkb6a6MFA3+eGMFFsDRO9BX2aoSw8s23tr1nT40Rurm2AvE\nHj5AzC+YGU2y6a9TtMSxIrg/9OZwdeaxLrsiG/xv+yT7C54R9IUkWH9LgBEp\nfj6Kohuhu+AJ7OlvRBD6Plo+HkF9Ww5BE7RWm9fMu+UXIDMQa1OBU+dcwgVh\nV9ZX7YW2SeUcvfJbVZSs1dpMK3PYg07hoWGAluJk4ozPJSlqH5djX19kWz/p\nKhdBut3m6wZHQbnxQx95I5uKHU3nkcR+YhL/vkjVGzuglqrTX2xhzW9JNHLH\nWMegDVFhh75DzVWa5X9mT4TC22QDX81Q87Q3Ccdp059vG7/mv5+ge8v4CXan\ni5xfRB4pJPt993DidcxLoAon27IZ9qMnnlYcgzr8z9HxLRqMzgfaA1syZBSA\nIZgudCQep5KfcpityBKWlH5AEptWSFuTGmQVdVbdzty8G/ftkw//9ehucELa\nYEtm0rf9Tp9BWvKRc97TWTiYcAukEOdRplO5NfQ6af+eyg67J+bndrMk+5qo\nYnNz\r\n=rYxV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBoKLVzvjlmL5weWllyPESPNPFl2D/zdV0BvSiyoQL7xAiA60k77ckTUI+63WO9xkJ4RUUnQ5CGZv3SmIG5ip8+nCA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595525569040_1595525577740_0.14646079791256517"},"_hasShrinkwrap":false},"1.2.0-next.1595527483253":{"name":"playwright","version":"1.2.0-next.1595527483253","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595527483253","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bmKJnss6xOp3G7iBcU/XMAMehacOlzYSMjPnoW1RlY8aQD73TPgpuc5I13I7xUT5PVE0znN4VKP2MBnWCayhxg==","shasum":"3b83806935766b928a128864b02f9ae511197767","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595527483253.tgz","fileCount":148,"unpackedSize":1868846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGdFECRA9TVsSAnZWagAAgroP/3CFxDnm34Su/zFsWftW\n9T0ja8Dxa+tlKIfdHF+qJnOAj+5oV/JOHufbCcCZGqmnJNs7ADeBFDdS3p6F\nwkgjTlBrL2Rju/iBcyqV102xjiJFKr/3hsjjvk77KTtUT7tQM6FrIasBxxq0\naV2Y+RbGv1L9xJm7UjEa87SI7abe1ZcDOYIeJJ6C7uibkrk7nhFWvfKd6LYx\nJWzDME8syhMrep+jvZ0iNhAWnw/dgBGx1S/XRFT78I1b/ZJL7mtbndjjH41o\ny28TtPN9YW0/H4g0btSDumxLtBzM83lHkpWSYVEbzZkihTOg/p3TdTvkEW7m\nsBTfSCCYgUH8dXeIPWt4tP7cBV44wNE3S9sqcmeAa/yZrWiH3bFuh4SIduvu\nWtiwA/SxWzuar3S5u0ZgDmvnPdnJH5bnqAuM4MtgL0G3RC1zZ4WvS+MJKhal\nIJvCGcGAQiVeXyN5Oe7Aez5yNbOtY6mGjJ7fiQpzRj3uO+n+nHgVrxnfOO2z\nwQl8ZAuwFDami+AYGtFxIZrkzOJu3ysOyzlS+eQ1+sL2dJGrtLmbcijvccc6\nLFXRJB5N+Vv6ZXVd92eXJ1iIlWIFtap9QDlLm7jV5EmgZD4T/1Z7Oo1orRFj\nGynbcjs3alF+AzLeTgrIxdxwYFJtL3qMpbindd0RfLZfQc1tcVNcjyIGGWOq\nh5oJ\r\n=eJol\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIClKWlH027batB5ZMTLmvnRBOq1KJLWnIOqoIYQG7IwtAiBsCANuJ6kvYOb4GMulENhbAyNrVjx53b5i9ziIgftYeg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595527483253_1595527492202_0.933346997890111"},"_hasShrinkwrap":false},"1.2.0-next.1595530948019":{"name":"playwright","version":"1.2.0-next.1595530948019","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595530948019","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vPbXyOqd1Cjn6CV3lK6fjT6Rsf2DX87bK0X9Q4Kh/0iL4kAqTDCimrCxXNVrM/9QaUBalTGsZ54mesWW5WOMHg==","shasum":"961af9b460f7bfd17d023545197b195982bb8580","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595530948019.tgz","fileCount":148,"unpackedSize":1870156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGd7LCRA9TVsSAnZWagAAWmkP/3cw8ysPDkkwtKl5bcil\n50bGkPR2rLALKVF359KQGLGbAErLaJA+xCZSL+M9cciY0hXJNxW5K3h+rBnJ\niIPs2v1HAAxeHNGCQQkGXM5PWs15qT+Utw6WcPtjuKrvLLuYq9HbwJ60ILaG\npJSqO8+b+wgIWHKXNyadcgjW9rSXSgFclyeXAlMHJrOUNba67aibUZ9c9mWM\nraI3IMTe7RkGjqXIqUq9WEj78h/x8j4IoReFmGeLsoKkXOCgLsLLGeAgj+jj\nbS17rB7BkCPGAvt9WmTh54uO/+Eiuwlj/ZDW5JdF2F9COEeXhF+IjMPad4XC\n7TS+DYkG8q7o57krz6tq3q1Qd149Q2U77Z03IKsCJ5MPDp1gKOfRhYsY3dKo\nPTmKU53dShZbqNMNjToFAlE/oL30095OR26SQHLQqWn1Qj9OidkxXiOfdnhd\n7VWLzmYuoA15Ea+yI6Vxd7f6pJinFfph71Fwk++goZUGTFkRmMDKvG35lZ58\nquRz+LSQdMzKev9m6CSu1uctqvlyu+Ce07LQkaCSz0K0H19pzS2zG5o1RgJx\nP72NO7ZXaeS1eYnrUwUhn0fmBogE8JnDnvYrO/993Pt2FW6h/9hlwlsJarjI\nBbFDPxOVjVP7bdpVOOOldQNQQ3OQ1Gs4CSXodcAReglsESMNuPTVprSeZYkG\nTLsj\r\n=ZN4z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS7H/CLWHDD57UtcN3w0XxS67iVgbYIOwxCU1uK3VAUAIhAM8b9zw/JzgkiBX85K8rRwgp5HxfdiwwJJKhG5AFCUaW"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595530948019_1595530954823_0.3947358738347799"},"_hasShrinkwrap":false},"1.2.0-next.1595533530287":{"name":"playwright","version":"1.2.0-next.1595533530287","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595533530287","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bwbwszHHgp0yKC8Hf9oNnWfjtMxeVwlWBgy3DFN+kUW6keL5dgjogr58C36NTF9wdIN2kzKzgkKPACGL7tMFIg==","shasum":"b79de7de4817a67f99102380689e2d9c3e72b061","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595533530287.tgz","fileCount":148,"unpackedSize":1870156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGejiCRA9TVsSAnZWagAAwekP/AnKFIGIEFgXYXpAO5Yr\n9PeKpIHQG7eo8rmViT02BrqvQC0lSnRnIfGbpE5Hz3tWL61gGdg4R+uykZVz\nnColOhD6VQ46j/qmqrZMax4mCNqrkEp0PG5al1NzN7KsMKb6pG+5LELw0XnT\nilOyHM6i7No/BmviZDGmwMSEgE06l03ASXaUN8MnoXaEss5xR4XZCoDz2ztv\nMmG0DS2JT7MJT8u1RnMM8cy1vXRksd+BZ/WVoqDSht00owVbMS2xC1SpRVBx\nwCpFRa3eqQErXW0bbge/8hnT7fd/MvU3UwErbRjcW/bX/w/mkZ73n5mHVJD/\neCb+QNVtoPXvtksC/ROnoha710UoEDfe3J2IjpxJutls1vbAgt7ovYh5G2ML\nvbJ5PEqjDv7+bWJmqXh0Cu8GKdKZKNnVS8iq+FnmQz+dMzWwJh+LD9zAA3WU\nbPojln23YhVQ5bwmeb43ygn8WRtETZmXLppWksMfjQ2ok0KZLzbCIvVb2t3E\nRR62TBMKvfY7Ro9EkyTa2lLnurBjhSFmS2t5l0Bgv6Tr7xm9hG3D6+mLgX2A\nq+jxtwUFbhuoB8mbYYeEHPa6K6meWyGgj2WwzgvnNScFpI3ku/IDYQ4j+eQU\nTQ3Qjw3EiS5sh8yqQDE0lDx0VKnYuTr+rJLrYwa/ZI7aCCWGvYaTbob+pl+W\nJ3WP\r\n=HRRD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFoUTRsdwuU5uoTceYw02/XqNWZ7VAkQQNXWZyymcBKTAiBVok2dsQJtfA/H/k0U4XFEMtyqMAkXMHp5g/mjeKPoUA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595533530287_1595533537876_0.19422803517980713"},"_hasShrinkwrap":false},"1.2.0-next.1595539317284":{"name":"playwright","version":"1.2.0-next.1595539317284","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595539317284","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-luliw7qIG+iaj7Ff6rkv7XEHUdqgMEB0gwXtkTHhJJoC3Rtbn2ld4xsfVH8r9S60seG1RNl+vpUu0Z1q5TqtHw==","shasum":"3e2d58f801e8f78323bee4f859c30f1b7daab5d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595539317284.tgz","fileCount":148,"unpackedSize":1870156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGf9/CRA9TVsSAnZWagAA5iYQAKOL5JE8kFBE6379ejnW\neFr2U62BJyC1Mo9FCqbf/kfeAyZWMhfJVV2EweY32qNljMHco2hPw7LNyopk\nmUXz/AYJWWsa2AnfzRXvNDLb4IVTSgKb/6TNnXdMXK+wDpoRbXOke6tiPWw7\n0iq1Olr88aPfVe8hpIyBX9t5j1GWFChv90gT12b02i8g09wVpeEinYLMZpEF\nOJXgQ0mG+PzR1vnVhmBDBmSMnJEtUtBQ9H44cq1dHnsjGe+WsTvLlBDMVtoD\ndzO5RzGKDxNrHANWqbCEO5jwb6/XUwEithf+2gxDL5vxy7D4ya1/rPG4MJDk\nQUeJ2xX09PGlthalvqiQBZVR4jo9FMeLAeTfq8R81/vYAZq9lJ/yeUh2eF/T\n7EkiwwFgXNvNneEdTKKs1OYFqkgTwemrkzow1wHSQM78XNBOKQhhGlxNDb2j\nWHaDy/Z10cJeLyG6trlq1Z6tQTKdxXP7+a7/sd1IhYsdFxYafy2KZ8N/z6S8\nfp5OWzr0PwXKNG5RCB3LRT485kYnTiDZ+AABvSuzq/0GZTTEHnS7mpM/3Z/X\nOP3gURXCTbpY00oEdGuWInQfwRdXLln8Wh7o74wDHK9yrzPkAT6s+nVdJ/Qz\n/h88DZ4K19c0de0qK+U4Q9wxCveBMC5cxBDO+fgIAox2Yzk2eoJGdi/PswBT\nn+IG\r\n=HZSN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBtBIyQl/tcAHkXgGI7LWtJWppGBk87I6bCaavzRnhZ6AiBOUE35LyAw8nTtfiLQak7+qUQWeKOC2tam7BVwnNU2dg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595539317284_1595539326569_0.04637822214138221"},"_hasShrinkwrap":false},"1.2.0-next.1595540642965":{"name":"playwright","version":"1.2.0-next.1595540642965","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595540642965","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YPLrg3o+vjppFb/8kEjTMEr0gwl3yJOPt3BtJ9xD281llXMso3vhx8hsh5FehZgVZkXDOOdgqoUEaSFJO14z/w==","shasum":"e185c264fc3d52b584d974efde833ac34bebe00a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595540642965.tgz","fileCount":148,"unpackedSize":1870156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGgSqCRA9TVsSAnZWagAAEywP/0f5ttXB9NefogBjV+DL\nyyeuO6Qpmq2fJvvKM0Zgl5HGcknJQNEUzjcIXYkOxdoGp6EwZGlVIFg2WMJy\nf1P5IXl88Vfkq7ycJLtdx78yosx/VheGcsm6ZFobpFl7T8Am2V6Yw6Dvo6cQ\nLe07sydBL7cfcsYL689h3y7t0JdkvKC9xBEa4bmYvpGbagr+754gFTS8UJmy\nCwJDbvMFIitbOl8Mc3yB3TzTDN/DdJuooxyNpMHm84piPWMd7GwIAf6M4BqS\nIPAXGPxbujmeaSpoeAJkj0sFNIMPhTjO7ShdCiYWHiJKeJjDtGRqBwmmwBmg\nlgbqFuk8mXKdVjOYSH4tc/fdIHfZpzCoFuUhxYFDIkVMo1WuA1r79eV3ZleC\ndNAV9tgLRxbwsmGDxIFpJAzb97edPoWuCgz877HOrxMMDISX6/o+Y2d6vxGc\n+A/tMekMD4meDkmHEutGndbTJ+gae7gq7sy51qGfh2ZLm/D3xhrwsJof2WPz\nCmd8C9+GdZfMmy8auGL7BopidgWjJ0TMduTy0RCxN0Ay7p5sK3F0EDGc1Yvc\n/0yapq05SKiOMy4tOHg11ZuUTEMGTAhwcNX+nkB5zH1AHlMvPKV/8IxzE07m\nCnuNfTH1uvWZCTLVxa/4qodXN8EcQuRZ7POTdwkmmsWcLVi26WYf3nszqhdH\nuEyl\r\n=L2Gc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCErYVl+IYFkT8oCcuTLVWN7HagPeLhtA1FaEarBl7O3QIgaocq5YYTxMCPQxsaZUE4jpQ4EgeTmjxlZgOOC4WP7hM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595540642965_1595540649822_0.5628298689328044"},"_hasShrinkwrap":false},"1.2.0-next.1595540811611":{"name":"playwright","version":"1.2.0-next.1595540811611","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595540811611","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ukByQhV1SLfgstygq0JuuOOtVLEJX32RR/G8WMuUDTH2bzO3nH+B6wbTxgCEoSv3FawrGxqodW95GDsVYxZayA==","shasum":"993cbba6f4055192d3d9a11a8ff003aa888be54d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595540811611.tgz","fileCount":148,"unpackedSize":1870156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGgVWCRA9TVsSAnZWagAAzfAP/jSDnRnaKJSlNVepxm1k\n0DvtRdhsTM10Fem3Jte606YwRfbL1nrWso+FyM5QoK6q8TUbPgSAB7Ssm236\nWC2sc/U9B4Cl/MBf2xLhbWGllL7iABasTw0nmTG7Y4L0OydSpe3zTkfKiTO/\n37wF2dQuglmwduN+BQeKcltwmB/5xjMJutmYgjr+EDIzq3gCmLYNQvIpK1jZ\np8AW3nK2JYv8oy1AtaPDXUX84tJtbEK/GRWIkFIYTX9aTxsM34NvK15eCe//\n82xvG4/xOVJq86CLdfd57AXqH2lRr2VCGommuZQckFFB7PoY9a0OOM7UD3fp\nQFtupLqiEzZDrPLev8j8DPI/FOThmXrEtIRXHycTLBWZMmfyPzw7RljsxIT0\n0BiUFuAzni8MiF7bGzJQv3i3vBw52oWb5jxbneLprs4mHEM5pNqWeBBILXAy\n35tTKDZ98tGRtdOFWIF5q7rqQc6QN7rJM3fjqqfQ7zrRDURNQ1qS1YjBhYSE\n21eTIZhVV3Eq2X5DAoMUeIIs3lmii3PXtDSXCfVsdY3939PujAHPRc+xVv1Q\nHFTf0R4Z1MQollx3FWxEiy5nzBiatHbbsAEZmpU3bhTpZdoCrnqIbfAj+jt9\nqO7emEVBzgJyo5BgLKIrl72RdRuqICAmanPF+DFc8WSeB3g5BM9BuFYAu/OM\nK5E3\r\n=mDVc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBm2oNfTWloQgkEfghKzzkmjLd+3p+TQDn3zvuvKCCAYAiA7enmFrSmL9x8bhf++V8tWdE80sk1Wtd68e1vMPpNR4Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595540811611_1595540822213_0.8769367809409414"},"_hasShrinkwrap":false},"1.2.0-next.1595542591352":{"name":"playwright","version":"1.2.0-next.1595542591352","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595542591352","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Xzl47sG5dfIT1nWNerTO4pG/1NaWMyn9CJqvBunzUlJ+SGaHDau3sPNXqfTYVNv+/eirWnaYP8ySzqx7CHALBA==","shasum":"218d0d729b84bbfe5ef4a2a18330ac9fd99f2df9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595542591352.tgz","fileCount":149,"unpackedSize":1871161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGgxJCRA9TVsSAnZWagAAd0YQAKEuN/l2oHGcwsrr52Kr\nHfeqJTEOSrWZOQJ9cOkq+9HMD9jQ0typ2vmI3rRSWzIPLdpmXjTIpEZQ+2Fn\ny6adams2pRorsCJ0mDvSfTOogCvAfE+S2iAANcVHsPxm/7QfNQ2Xx+Lv+75p\nCOyChbEQk0b23lXQwP6MPRUj39nUiR9n6lUuZNw6DWwmwi9wDzubG0x31VaA\nf+mFqu1E4x9lDM56g/51QnzB7GHN14w5AMenmiIR1Xgfxdfz+B/L8UHnrDRF\nJoRt7dkQAXcPm8sFRX5ONBycTUWNgEVzPERcHj6ZVptdCBSlcnHr5tlfn8sI\nWEGWHjxZ8pLFz5WmZoedaI7Q9P7y2Ei5JtDCyobQpUpDgpmrVeBTa1ZEAvCL\nFDcytJldbawQT3QmWJHzClFmor0A5dqFcLKu/GZvA6DZjfarGmQQrImqXr9l\nCxL/GfLk6e/6Q6REQtv4v7ByLoKsoagnHKD/aDAoOqzYHE/ZKouZJ5qOZ5hb\nbtQJtCp+UAkDUzB+uqNT3A1taX+FgrflWCrtJbPDeesn8f/lzRzFqiK+Oq5P\nIHpVpcjBJWsieDRhXERcWyHhYAa4a1b4giwtnJx42xvpW+dhXAhbF523sS7J\nGJxOf8dMa1NC9RSmwat9AdAdVI+yqoXNa4hhVV2oaGzAvHCoGDjIfTT1li1d\n/vbV\r\n=S8ov\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM5kr5XpQ8xip/+cuoTbM3XNV/aSNAcy+KIM6SKFLLzwIhALmZ5KwVAaFLh+3j455SmbWMOHiyif4VXesgq47NA7C4"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595542591352_1595542600875_0.8973215300250392"},"_hasShrinkwrap":false},"1.2.0-next.1595545189333":{"name":"playwright","version":"1.2.0-next.1595545189333","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595545189333","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-aJQPe+IX9U+cZVIoOn9iTJJX5ujyWb6SIrYO5SWciCZv6RqmIjpFvYZlETp7dPF4zjXnhHx5Cyeqso058gAMUA==","shasum":"3af769ee4c116df4990e03eb199af7e62a6a3ca3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595545189333.tgz","fileCount":149,"unpackedSize":1871161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGhZuCRA9TVsSAnZWagAATxsP/2nCRGDKfop5z96uns+E\nTYH9NB2R2FxuLKlqi2NjKOL/GLi4TEZdKAp5yTEVzwMhgVnbtDKbx9k9o+XD\nO+/CAz0IQGz/1031ohi2jqB6ASkYnyjv9+CPCk3XNd5cK38oSWM6CR7dBFrl\nV/ntvQSfcByZqm80OIgEWKKpizmB7B9kzn3kPQQHGyQO8QVnPpeCen4nIgW/\nRTJfpXml+mUg5OmeRnyJPS6b0+3hw7P9BnOUZnuVTy6YoHrglLu3zp97/da7\natMV8anhLmu6wnlfL7V6sG6ngmcfBKHRFxKL75+Kc8o+ikmiVrHblwTCsJ5n\nIZB+AmBGhyLvFEkb3pFeEmWejgyiFptGwb/cmCoURFIWKWDMNALlt0wkdXZO\nHj8lo9UlzaRPHBFk2yw49/kOIMxotOvGRk4fZrTZePJ3OQixtpmhqA3WUmd8\nAD475R6QmtbzbApzUGWtqYO4ZJsEjpv2PGVLC5ylPOfrmVxUt+XHpnslEi1y\nhf3We/9pXLM/NvHtPHgHuZTS4sXEcHRrXwIGd0wTas4kZKjI/Qyxh3VAzq12\n4KKn4RTTOHUwSnRjOvwDa7SawktrCA3qHLwVZmjXimlHUbSJuQzpoGcgqVs6\nASc6To8dkMEokyWZ0e4kagXXbNJUggF3jYbRLEOHpq1ur4ccesEJkWHFvrN7\n1zFK\r\n=ajLw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDECVGujpnu3rq1/Apdh5Agc5s9hWUvc3PnQdSVjdbf6gIgA/n4l/2iElzjL4Ufei5X/LC/7pjNd6JECvPu+Ui+Xc4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595545189333_1595545197943_0.8025539616571984"},"_hasShrinkwrap":false},"1.2.0-next.1595546467464":{"name":"playwright","version":"1.2.0-next.1595546467464","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595546467464","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Ng5QUueNOzbJgp3EnF8aQuefHqIo6Ia9hmt87zICuaeBMjgevke5uQdgtNdjsmR4ehyss6HESEK0HxQsi3Mp1A==","shasum":"f7b67cb5eb737dba35d820b4bbb84827517a0636","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595546467464.tgz","fileCount":149,"unpackedSize":1871161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGhtsCRA9TVsSAnZWagAAGEcP/3CveTBHrzxw7kkgFCyP\nt1fmwPP5YyWL2cVceVI+RsKmOUKgiKNVGQOrHb4mqEPfc+UK1qKSTy5PA2qA\ng9LqReW0RilgASAijpiZo5+P/aa8ZE2Xq869ESNL5hcx7stMWpgvswRksQnJ\nOun4BGGsPmq2og9o4tBWgC/9UOMyi5NT9rq7XjGx9MJ1vBIJewVqXs0kYUhu\nrnVdYPhPv6Lwnw7jRN2IdcgTmw/ZlSnA2kokYep+BPM7tRlh7ekSgJXJeBdR\ncsnIamj7vIWQetZQwFi11if+zLvcpwtAp2v4o0aHAlyuelQ0NKb51/hYV7II\nrAYTqJJcuXX8jtSXxsMfA+ugXxdWzUgBYlYJfIXY7kdSKH9XKAmW2og6M5Rd\nZpag/ToWL9OVNlAU9d9I+L5sm3tkgyTxyW2bKWj8s+UQhkvna3BQtpVL2H55\nGau3TY8uP7hNmAnMhCtYa/ZI/Ie2SOexn/LWtTOL7v+DNJlTMgayBn/yi0Kg\nXDmJIMUk7C90lYCkcJHR88ZRlHbOKdoGUgaB6WPWWRLDXS6gUbzWet3gm0HW\nIiokEEJ5ceNqM3Ml0QyP/nO4YRxRDBPLkKw9D6T3oMh9eLRJhflaVn9TTX5j\nMKS6FJXCrZQMEroRs98hzI96DX47qn1kkycVWO4znqrkWGlA+A7d1JrGgcyO\npNay\r\n=URkw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEer2ha/nV3rKeKjAITmvqYuM8goe9ZRuIUPANH1MAKAiEA8tm5hytT0eo5yl08iVbtTckYg88dbep2IiIEiK6X6+A="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595546467464_1595546476036_0.23559662678873727"},"_hasShrinkwrap":false},"1.2.0-next.1595548172757":{"name":"playwright","version":"1.2.0-next.1595548172757","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595548172757","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6L1juuJ5bnRh+9dM5KMW6OUeCijr/fhGZ8KV6UF5wd6z9rT97eCT8cch7mKqugSG2634HRTqg4UChWdT26enQQ==","shasum":"10786ac596de298065b7fd39bf4c4a78d98d3701","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595548172757.tgz","fileCount":149,"unpackedSize":1871161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGiIUCRA9TVsSAnZWagAAxsgP/2gVupESFIaWKjTJe55z\nPoVefUfMlxSKxrPm4TF1j1Wsk7GgGmO2f4n46YJUUE+fqam4e8ODaq/b7kZk\nI0XKL929zyXSQVdTq5b1Wx2kVSfUJRwTspscvvphuUqISejscxRjoRGltzxW\nI4u4GpH50iMNv8Vn6vb7Ws5lDJU0nJngTIzTs8PR4LQs5JGtk6SpHDb+BUj+\ntmCvSUCjxiRA85C3Sl2JlrVFRR2kGY2lmg2DsjwV7SgK77RsCVKSTyV/q0f1\nWBxcdIDA3v+gQ530AvXNFTgsbeHCQGiwexL4xKckWv4quJ5hDIB4VIr3+Akz\n22LQEaARZkrniEkQ32DebKdwOL8TvwjgsxIFyHYvhwiOuW20aCWSqueq44Cm\n4Aa2a+6s01Jc8qWZiAyhhcwvFtn4ag2tPD0VjIawi+pIhzbHtx5fFEqnN2fE\n4xzNkqakw6mpYd4JXIFyJD4aGLF4TBAL78ArfJFmdNFZ0gipnX8TTsDSQ2nA\nYT0XOa6m50IgYyiUAuOx4IN5wOPtfRszSei10at3oZTc387g4L2b5WsItre4\nrLBbLtYpfe06Im8k70sHe9t5VZAT7aTjeKYA0KmRwQKINnbAkNJD3H0BFjcN\nt/qswy9bVeEEDB+qgJUeKmu0EQbYPgb2KRnR3zj2+fSUGvbnqdtI/xmUS/8A\nND6M\r\n=Lta4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAFIXzCPs3t0FGdnSHlQfZVYf5BS2fc02ZwwVQXJ3Yk1AiBmbrsBernce/ArQEIA8msdGRUI9n91+bAzwHNhRIxGig=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595548172757_1595548180190_0.5755084786929192"},"_hasShrinkwrap":false},"1.2.0-next.1595548925238":{"name":"playwright","version":"1.2.0-next.1595548925238","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595548925238","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LZRc+S4qvp/yffNxunsNB6BnTFniU4mLwgOJFliCNc1kbqNcwPAK+7VDapA5JPMdZsUJRM1ykXPefLkLAjgqgg==","shasum":"0a1c2301b11cbeccc4ac9206770b216916afea97","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595548925238.tgz","fileCount":149,"unpackedSize":1871161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGiUICRA9TVsSAnZWagAA0BQP/jLO7MucCoi4MYkkhUQd\n6kXn+2pBiyEekttZFNJtMBalpZODFvsdxdlvSwJJyM5+3aI8PgUPV3BT6jrS\n4lHXAcOaC+xyIr/2fG7ZYywqzblZMd8XSEaWXyXl7ZxqHm2UWbwro5EapR1z\nLlTVX6riDDZMXcm06XoyxBXBJ6AnpRSWEBv+7JnotwUOjgJLVTFIFtgB9Avd\nkY6dewiANTXb9l/8NrOPI5EnGu2PpdzCgoDIgnlU6Dl0eu6NuV0gvgXJ5u4s\nudW39c7WskpsbiI0EAQ6nV+XZDrUEh2hKHE5NUifR2ZRuqV20MZQ3lzBJs4C\nFK+s6btoKF5142T+LkMa5cC6/uuNVvSkFqrO3bpGR9IOGVXftcGLERFqpXeY\nc2BWEvMaVAvDs43ZIiV60gpAlW1XUGzwFAJ+HnnIj66vS2H3Q3cW+0ct6jDw\nxOVl22XNdbTgWzr0Aqkdm+fCrK6MyTH8qI2Hhc4A8JvVCaIYlxwi/9hjEodD\n47eom/bYlTuPIm+UnRQrfBXlQoYvzWREEM9tiyhoNqG/lOGuc1ry88JyWnei\nk2B9NNO7OT0zVyZLHU3+XXVZO2Md17VPWEw6VJ32+nzvwp8l7Nnns8RsBc4b\npX2x1aomr8hgemDlWyzbsNhDYwY0UWG4qDCmV8xMQXoWEOMRGdXob0uWiNk3\nS8/x\r\n=BWbv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCHq67KgYB754XZ0Iaa3SHEFVSi8ltNcGGntQAYzcsOAiEAtopAiVwrtMKmoXhM7+vsWYAaml4wezmXw5eF/nmvvGM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595548925238_1595548935779_0.7243008989538997"},"_hasShrinkwrap":false},"1.2.0-next.1595551000912":{"name":"playwright","version":"1.2.0-next.1595551000912","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595551000912","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-c010KHaTe3BLjUxszaHBkG21ceL0a690wqBavbn1U8fsqel5w9X9nQnZl4J2NopFMfarbvrXj6LZulLRAQG95A==","shasum":"9ff4dde98f71c2dc64632f4a8a2f242180daf33e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595551000912.tgz","fileCount":149,"unpackedSize":1871161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGi0hCRA9TVsSAnZWagAAFggP/1TFikH1bqvvp/902jXe\nErAsn8EY2ZzMQpKp89oqvbkE3MbR8JVPNgJa3GqZhm1uaixYVadQzLSCjSBb\n5UCWur3RsnFFTeWq/YAIfIKQR71UvNKQtOj7bLw2v1t0TGxKhpFGwGoZP8WS\nYssDiKyOkNv3e5yKpLiW79BrfQjkVGvz3SaEWm1i1rz4iM0+P8nP0CcSmA60\nbZ29sxWz2KzBgPDFgUImJxFPmBBWRBWMhZ97ZWBDcrmSxcDJreh3rqrD+xw+\nnqGm0h/Re3aWUnKFMyYFThsSmVTwIahEaOLDPTGxhcPfPkfmC3WlsAzeRuj0\nXzyITQH0/taKAXpFsRBl27w1DkM+I/oKD4fUmELuZWveAb8+kowDgmT7CuR/\nQeWsw1fBGKB5eUfSjb5yOIvyMxk3OIu2q9csRj+7qJ2+V1f+PCrNrb816rB+\nTvaiOoB4r0HWgu54x6/e84gAzhg7/aMLBCGGdwq3EI9nVMCSylfu5+vVHvEt\ncIYbLyOA7Ii4NpNPyN7OFjyvHMws8kFMNJrcm8UIswshOqpHsjsc8gGfnCG6\nbrPfvPAQvseYjdNIy67XPepdHoNpt4ShJhtmpfiEdua+b4eh4jwTaLTp35Uh\nbffmvw+7UC+P12p71ocpKnfhUIsyz3G9SgkwGtwhlbJ/lL8C/VIRqZY3UK+u\nQ0lu\r\n=Rlcg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9ZCaJFzhDK9m8p8AA9lyrm+hsyyonSFwLErEzLsuqMAiAbOYbbc5yD/2u7Lx2xkOjjkurtTADRl61ukNHVLvD2nQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595551000912_1595551009388_0.6743211126016637"},"_hasShrinkwrap":false},"1.2.0-next.1595551325322":{"name":"playwright","version":"1.2.0-next.1595551325322","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595551325322","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-U+8f2JwTBD52CBbuN5cYiBZxubZxSRLUzD7WPLgWzGVGSKrqWOiBt+QHefkeGBqOuB/NFPk2JlUz6yodFsuTew==","shasum":"300534daf92e9b6b767d00a4a44577dd455b0e5d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595551325322.tgz","fileCount":149,"unpackedSize":1872780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGi5nCRA9TVsSAnZWagAA5yoQAI/5HSzsS9C8e0gzAfC7\ncOkjKsl8w0F0qjSCPvzoglEDwJ5v9S97iOPjHspeE4VqAikAxQyYQxMs5s/x\n6U/QQeXIBEmInDuMuPKV/TRnKcibDfc3rgYlcfY3hX9hOdeWCeIOfmjhAv38\nCUIqlW+WI+C5/fEIQ+QWCWdrcY0/5hsqykpoOELpSvRneedv9cfFgi5KNMoK\nubBgXFShAVWE3wIWsPGvwBheVD3qOBPmISqrfRz0cgqfPfFiQnfBk+afu4sF\ncnOhdW+SvnrG1w1Gbw7URIR2CVHh8F2ada4VB9eF5msa4QbewkY6g/uE3Bt7\nNThiU+gwSmVO6xcDGoq+ioinksps4RTgWgR+65JH03w8AfgD/bRoQE+pdW89\noGn6i6XfOn0vKdbamQHRXFPi7n0JTS8FxQxHnlmUYB2rsNKaSGSLPep6jw2i\ntxANWhXXY48SA4sghC4fUbRRtonnzgovHPt72GyGVjBcAoY7eHicdMoRBH1d\nimjB8jORe8KBdNgi8+dNCNikrZxVXC2OYThfDzs2HvGD7hmaK2ccy6VSX7mJ\nFaDU0h0PCpKZHeMVzQlxtaPcDddFX69BfLgxZ3wQYlCZwfwfmEQUPqhovbFj\nnNLErjpeTkdeOuF3NEuzBy2+Aka8cmKVeQkyd2XWxESrecK+YdTxpn0j2hO5\n1ii0\r\n=1ND1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYHHYbWeO0ubA5HoYYvj0zIjvQuK7zfoPKo1hrsl4t5wIgStDIwe95NpKJ4zTOhiEN4/J2BYoEFFtYiTkh8MXbZf4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595551325322_1595551335140_0.8457121156510163"},"_hasShrinkwrap":false},"1.2.0-next.1595552890947":{"name":"playwright","version":"1.2.0-next.1595552890947","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595552890947","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Ox9HaaPsNCSXeC5iyJkHuNAgsV0sTykaEe09NFWHtFrNKZ2dQR1/h1gEfNWkmigNhtoZHH8MUFiWhxq/vqqX1A==","shasum":"f8c0fa507775badf5c3ebf3eac72428eff57fc20","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595552890947.tgz","fileCount":149,"unpackedSize":1872780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGjSDCRA9TVsSAnZWagAAmXEP/i78nW+OPwAOltSZa8es\nbMoEQJQ9x5Vb0SFcD7IGTQmVAGuy4tBNxsbpgOHlEs0kklyXAgodtxcOXfkF\nL8yvsRUysIR0WeGIxNx097JZSBp0H0B2EOcwtEmWxQ3ia8HlphhU9SyZL+Lh\nE5JF7nkosTIvjKf53pqZAecjOZD4S/VltMxM9e28espVWO9IHfmw3ZRbGRnl\nGCMtoY6nxEufWjXdimZqqku03nCTU0Sw9mv2kASADufvtp1w5CLoH9OUU3yf\nTho3FQn6wlj4EsBniSMF+YirIz7HFT0CjyeLC9C1Y230vVpmVJOPumWI985t\nb9oLaaVOKppUI8FM1Sg1qC5UbLedDNhee2sVzGsGGQLsQLrqYc3A1Dw1rOu9\nBltIzRZb2/zR8ib5beiUbJjuRJtGhUsyd6qMWode8fB8Sz1nK9N9Alvr93GA\nECwx6zBMEG52H1kEirgKNJhbYdyzCjLe2usrEge/2rjXMrsXGdDViEE+geYq\nBKOeumnp9JsxV/Kj7umDhDJkQnWhZ2t0Gmkx7rr0cvBoDTldJFbvr53+ZysW\n5bcy8JlknONj+0/lC7jkz7h1cmpbisTBPxNtsnExcfrYoX7tN3AtaJsGU18H\nmBVu3HYNPaJUc/13bZSyYFmSjUqI6VYbpnOKZRj3YRldd/wzqthS9dTq5GJM\n2AyT\r\n=RuzH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgncw59+ThpPX4THb4wNHXDuHx/9UzW4oDWdypyRPFvAiBcETx0C/tyKjWEc0yRG/xpaFY1+GaMQDR3YBikM5itMg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595552890947_1595552898985_0.702192823867859"},"_hasShrinkwrap":false},"1.2.0-next.1595576087217":{"name":"playwright","version":"1.2.0-next.1595576087217","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595576087217","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-XdsF8PGR9AVizQywuLCqdPT2xZqOELIXZaOHjRQ41+3NZYUCHxGBNbX7S9HvMu2MYK6UQe4AQXc8LcDrXHTP6A==","shasum":"db7ce6a391fc7035826a90eb6e5c7a3da1ce7b68","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595576087217.tgz","fileCount":149,"unpackedSize":1872740,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGo8gCRA9TVsSAnZWagAAsIQP/Rs5oVl1Ej28EiuVz1Yu\nxPpaocKnD+KZtMXa2W/tpwnviTOSUlTUpTfwtE6/nnx1zsaViyqgwX2NIOM9\nF7HyPQvru+rWS7G8sE5TuQQne5HXvv2kNgzS+XAGbAqSet+cHOFQqfSfW7iL\nt+cNvj8EfxnAEkvw0PKA3VOz+jkt52We6Yg6JT8e9mqM3wNB3XuZtey6KLqB\nM3H3fW+diI00g++Gil0Tqz80/LQdgDZGrhuWXlhcCqgeN3QW3BniE+ETcAt4\nEOLgFSERcskkv03EBJRL5oogjtwcHx3xSf1gJjChIuPqYdZiF5FAn1LDhQCG\nVM+MEoaEO50fKasp7W/ecaCzxfmdUmmjCMyd+Vxbo9FQPEtLcbHopvN/TkkW\nBGFs0H+8Tx8PFzbxs9FomuhA6MVKnoUSt29UozXf1qDWNCGBwnBJZyJMCltA\nqY5Mb5TCYCLei2L9L2yzuwHP+va3n8MMG1gyITVT/lxOej2cQxpjhlzyX9FT\nIlZGvSTAQyhKlp5SIkXxRx+2P246V5JFKUB/sxLwGlnow950j8dTe3JJqR+e\nYacgjSt25O+yB5S3eF+cY1CWDESYTVt2TgOLNbuFbd4kH3c9fRSL6BB8w4iW\ntYmzJ5Ahgdtj1z0iiVYQPABD+4iKwKCNFMebYOfjDMAFenUnTmtO63rwL26p\nENZ5\r\n=vpq1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC153BuwQOwzxXFyZWHG+VsYaU+C8noSCsnBomHxKEDFAIga2aC8/0yHmXkJAXcAkOfC6BzPbq9Cm8TROX6w20Ojes="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595576087217_1595576096076_0.3423591238435333"},"_hasShrinkwrap":false},"1.2.0-next.1595608375739":{"name":"playwright","version":"1.2.0-next.1595608375739","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595608375739","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-PotExqlX6yZBsdfMHd1+sNHQ9GSR45p0fpbZpDu/ZC6DPnzzD2IvI7+zHjTBB9mEAXeolfh+foYKu3G0puub1Q==","shasum":"c19b2680906c5da10929f0c5353e81c170383add","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595608375739.tgz","fileCount":149,"unpackedSize":1873407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGw1ACRA9TVsSAnZWagAAk8wQAJUJx0r6gZwDIifwMDgV\nfImehTulWgI5lilLet9s2EHGvgdg30vwxKsl5ka5UDeCDKLdAEErcQCv7Pjb\nKKgkvUcO1jtOfODWQNyWwyVN32NoNrMnMYG1SaKxpo7jSbovLyzlwKCOl8DV\nxNJ8BL/gBTn15lyS8hL4Lt8aadLFKIgt5vjDvGhCWnNh/DxNmKCr7aqqFqcx\nJ+yehj0IHkjgC8xah3bPFyJCN+g5xDsmK4Ogh9FFn47E0tF+VWK6/C9OfvPq\nxUAuRQrNIqJR6fXs+zhaxR8aC+AHKuZKotft+oLim2eYvcw7Wii4fvcJ38FE\nnfNGpbvI/1d0p+ocq8NnGt/avPtWtmUd9MtzNN9u5ZI7+RhkTqpr//x/9eLl\nlmx4mCCYI/7zCP2RukwAYCXwDOrd2NZmv3JG+lqk//ZTQx1VHvLeo6wn0AZW\nPYQBsAWkqCeVmJ656WEBrqJBUmITsSp+UCUOvR5snrQCA3OI+NS1PQTXaZZv\nYMxPD18XwiblPwUq4P0VyGj/2jPxjpMPTqx1KOb05qVMkR5hKYMbGJkumatc\nRH3qA+yv9cIgAyYHRzSsP+RVwMiQy16SoiXVO5PABuCtN8qMh2lc+N5hAH2q\npI3R2HhFRykDEGtjrxe34YFIdhZH3lEc/ZXb6jVxQxBHsy0tu5GjDSzmI/py\nNIcz\r\n=P0ym\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWxOEGcY8b5h4ssu6oeuVIhgIj2d4lF53t/0okactDwwIhAJEhe+lG58zw6YlpNnPGastbxhb7mHhJpiI3XY4t0FXq"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595608375739_1595608383600_0.025877798703280552"},"_hasShrinkwrap":false},"1.2.0-next.1595611194103":{"name":"playwright","version":"1.2.0-next.1595611194103","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4209.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4209.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595611194103","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-aTYLLsGbRhlJPPLPKlbzw2Jw70MQ9rO2otxTSuCp51IGyWI7/Et9gTshLji1X4SXF2y22FKDnvnVLsv4nnuf/g==","shasum":"78f38b74a65941ca488e77a03e39f123072c591b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595611194103.tgz","fileCount":149,"unpackedSize":1873945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGxhDCRA9TVsSAnZWagAAJYwQAIc5jHofFumeDZ28LMdD\nmKPyFWjmsSCka11YG0dJcXPz+mVE7fMBk5ci2iYYg6njy5XsEG4bcC3LZO91\nX0yZYQtgBNwhKVTOY7k0C0r2GA+bHFTtSr92rEzc9AOl5VZ/BbDIaxQn2sTf\ndMUPGcg/irF7wVay6WMprvCf6Q0kBMetrSX3H3GH8tFG79hupCj9wSd1r7vh\nHwTUTTlUmNvBifBvZ+VJWo8K6VamDSYhHoFn97b8qMWOEoiMfY7v039JX92U\n8ZNOS8rLyC5aOEZG04v+tvH+TgAKlrs19s0IesPtKSNqW+UEn2uQpo0rF1yT\nLa/fqsfwrk0/bDNaYnYRrd3kdb6mPGKuPj4R5X0HmfYvwhQBHPbzk3cYi5MS\nsBmttEH7UgHZrw9SYox4TfJQa05ogtkTm5088ZzXmUHVcHy1OfNOIWPz1aVl\nTU+tzWlYE3yGhkG5sTqNl/6+t86tGDwbl0DAQGiCfsJYrmYJDJfMadKXQQve\ntQlVKsoQSapmi12ba4IN0zlRBSc8yZnFugg5CsfodG3uxU7tAkNuV1idLtvd\nqTKWQTby9NyN10+s4M92bXL1/NrAXHSom37+yhI6dAkRIKHuww6tnIAWnAi/\ns9vkyA/HyJGzAnjRv2jvrScH9Y9HfbBiHWSWryvrPjRd+ccu6yfBcImLn3Z/\nA7Tp\r\n=brOr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAv4zn6LB65s9dKSOUJ+FRBk2lof9E7DltBdrCSZi9gjAiBF6/kdt0aYmKOpQ3talmJGsao+h5kaoto2wcizmw1XRw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595611194103_1595611203205_0.10940893261405016"},"_hasShrinkwrap":false},"1.2.0-next.1595618348108":{"name":"playwright","version":"1.2.0-next.1595618348108","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595618348108","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Jkt7RYkWkn+uHJDoYLyLTihxMWvKSOvcQXQntjz5yS3p3hIA0yrDusghA9LKCE2I4PP2j3HcoGzgs0FQ851rQg==","shasum":"84e0f63d970b856161216cde8d5308079db2e2ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595618348108.tgz","fileCount":149,"unpackedSize":1874361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGzQ1CRA9TVsSAnZWagAAuSkP/1YbTUEQExtcU9q0JDzT\ndenyIQpknwbjIevI1W7WYPHMygxT3Sm0kkr8tEYWxzh6VTiDVxeyfRHw5NKF\nly1jDlCn1byqjWPNk20BYaejp8KDfneWUoDOPifNrKrGS2IXs2a27o5KBE1D\nglz8xb/5VkMrM8+SIwW+XJuoJAiG37LqKXTkaxPs+3znUSn6Z/8CVxSIHSMh\nCiYmzIwlLrAvBzukCGr75mcvT8jl2GofTaB8eGhQNE7zTp2o1XZ09Dpe66z5\nA+fr147suD8AEv3h4ckZNY7yavzmVPnkrbBhj9APMX6ZMs6msgWd9DvQUiqU\nLk6pftWPiVZHwpC3wPS/gH551DMKrXA3kcVc3+HmHd77s6G1VC1ChnayIaH/\nc4nOsPlGHDHGijPUg32W3ZvGCF3AXEjHSeOZKpG8Ibamvg/UUziwuSik5a6E\nC7KMh7VZ7+wG1S6Tdu0G6a6NQOTaH5dSPl54cdvkYWpM46S2vezKlwGE+xSw\nCjKpm/mNk5ZTFVl20/XUx08uc1GUcO1PCec4CCWi6KOktFNMWq/ygfPyqqCH\n8aNIiA4aaHP+5KMjS7wsQntq84hNscLRsdyFA/PxLfsdDxfjTGisUHtC3pYK\n6gOW9KAVlU6cSfWmYgtIMXpyJyEQMGwIwSQp/DdwhJ3NU48TfNU+ld6aVxlh\nG7dy\r\n=g0dS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTUeA1E/Y0F9w3PScGg+bIhhXIS/yav+Ke/uvVVlnkCwIhAMaYDgL/mjU46J1UYzdJKajAvq3gZrBJooYCbClnpaUN"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595618348108_1595618356872_0.07925155662207706"},"_hasShrinkwrap":false},"1.2.0-next.1595625150049":{"name":"playwright","version":"1.2.0-next.1595625150049","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595625150049","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qbvxlBiXY2bEc8fcHyBWFo53E9AwLwy2Zm/CptesWeo/5NB/I0i7zZXTtUg2LOkYjiJwuGFhm5PXUQCVLdBXsw==","shasum":"2a2094f0eab1273c3a0df62e1f30028ff4b00ac2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595625150049.tgz","fileCount":149,"unpackedSize":1874361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG07GCRA9TVsSAnZWagAAgBsP/A1RvlfOPcrRbeVHbi6N\nzrNy6OUdsGHfWs3eZdr93alj3oo4Ra8l4AGaDnf4okvoY7Cm+Al1TgeNr6Yc\nJad+fixGgiy2jKJoxgNzwriOUeETF4hnci8HbBtyVvuTClLqs3BRthENvlMk\nkhArL9EFpGXaWgSNZTDthCQY1FuirzX9X1xTni94dcq/KNYF5pstx2a3we/q\nBOpI3wwwTWepVNZGjl/J1lYb00X2QS/1Gmhq6IzxJSfEM4ng82/4yf5Bdlvg\nCrePXJAhnC98GcEQuho3gUEeFIrDNzByPYKkiouhFskms2nDJpWHFDfEjb4N\niAks5JDvqiINN0pnFfAwI2wrpAYfgkAs4t91eFyMA83sqcrxLZKbk37SZNZY\niKPFErMqyDJySc+/tJH7Yd/rWafleQjkF182wnVscoDEXobQwIdbQa8Xi+z1\nvbI8Nupyqlfmb1jTTaSw9sNbTWt7OlPcNPITebHNENZcNbJltaVVcxnmPMRj\ne8+Uoi4ISnw7XZlF4JdYGcosB6qL4Ztn20wHMAOBlb+L/jqtcySXDXlIrDz+\nv6z9DCjWR0jesJmn3rlFmAs4I3icQl8gdE+fYuylXgMARSDNNVgmubhRka7o\nQOcB15/VwXyuRLAu16EfNAMOkBf8/9IjDcZIVrtrvRJdZ4dgQKvyrcZgYwel\nnDoT\r\n=D7Ct\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKNBBD1mliirc2lshiyWcQXLNvNO9md1uftU0LZRGT3AiEAkJEnwDisqR1XaEY8O8Dx37/GjI/qoAA+gqMSSuT3GG4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595625150049_1595625158295_0.6638480479885107"},"_hasShrinkwrap":false},"1.2.0-next.1595625808301":{"name":"playwright","version":"1.2.0-next.1595625808301","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595625808301","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NeqsVSTh2AM4nOBkrRWx0QWoDnZA0+/j2Blq9J9Ba9NxDIUDzrg6OVSHif2ZDZDE0EFA5h9jUCBYop/KqDU9AQ==","shasum":"3c4cea5fba3e02d85cef3d3289861558c670b4ac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595625808301.tgz","fileCount":149,"unpackedSize":1874398,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG1FZCRA9TVsSAnZWagAAeDMQAJJqH5ehK0ynELrH5+Vu\nu9RbUSGfe/GWSD/63gUIycD8YKugyboHP+8hrZbZKzUTKfemtPPfZtmy49H+\nwUN+X6t11r64mITy3E6f1Yy/fpJaRm8aVOSs1SglsJsXob3/LCuv3y/6F8TJ\nGNZOJnOf+2VGALbUsTfLUmV9mG4ptQPlBjR3DkNXulJqHxR09zWnKmCu+jaR\n5+p/GuyCpzEKtRFrcqoCDCtB87G8l7uhBLOUD59tqVoZoOyCETlyPeXWCYkO\n5YNrqC6Hq9Lr+UFFL+usnurGy9X+Nq3BdEPB+6eFVlHT4DxNegHn4BwLJiUr\ny+VqC//pICEZ2Ly1pYVhKw7cUByaRk7LSegKBjC8V2QazE2B7L7wkNYb1fa0\nOo+4xWFq+swyyqiiUkyoRSehSrioNf2E5cyEPYaO9G9bBGdfFPiIubmslt45\nhH0RujVZagzDAUUKcjGrtgqe9CteNTQF2psrtM3G1du4D6YdQV+PpMnL/5bn\ne4s7JgQt0l0mtZ32u+mJETztq7a1RkMgOSovhzXZapDVTo3I/tppub21AeI5\na6Z3wpghYBajyZR3yfhFa0QnS7m28fHejAhUdB0oAdaGGnopDon/CRnsY0m8\n64wiCXwJfGuAbA338USuiM5g9cGGyPHl9IgdqZZ6X62OsPpJwSoToDMdl5OS\n+HqA\r\n=XTpF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZF9Eau9EXgqx29ZrLLrTvD6vhwNJ4K6PqHJWNxJbuAQIhAJpL3mD+aUew+aHzlPi6Q/V39NuE+J2rVUaASQCuQiZz"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595625808301_1595625817416_0.026617859379731268"},"_hasShrinkwrap":false},"1.2.0-next.1595627387087":{"name":"playwright","version":"1.2.0-next.1595627387087","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595627387087","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-r5Bs5y4aRu2M6adhKZ1hVIYAAagSMruQbtmtxu0ABKVRCyr5RNXU4VARvH88UQjTuVcEGfYHbI8kinpVYg7t5A==","shasum":"9d6a7a86a18da269916926483c82f9209768e3da","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595627387087.tgz","fileCount":149,"unpackedSize":1874398,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG1eFCRA9TVsSAnZWagAA5OMQAJWWjLAIauWQ2/YsGhS/\nxuBOjHFq1hLO3lzTwEEWtwmeJmtTFJQTSBvQy9ap/YOaKvMIjLlmh8PnTnHr\nT9VY2Oxe/LbCqvd3H6fmFh+s5dZLKT+o1BmTt8GCATSqGis3Talr/1dBumTY\nuNP6Fg4Hw6N8WkmPY1tnnengu7rC2BmgkKl35A5DiQlb2qzZHUzM0tMopNv4\nZLtwd208Fw2NV2FUapVA/iuEmb+ua4EYiPWVCBzfuUZ1Pw8jKshUiLfcslPz\nvsWU7JiONvFCD4J35nLnMkFqkDeKlEwGYetq3yTGUPaT4Vl2FrsT6AkJN40m\nGum0Lsb5QIYxImoseSIpl7wsgc0ET0trdpa7iSo+fFasC0ZxQXzVr0n59o2p\n1ttl70sEEv8xa8eTUVjQBAeBfhhk4J2cs3ekmdYInHM40J4mb8AXf7u81l5y\nI7Gx9pGfM5aDz4yKj8ndbjkcOw5W53TaXPdySqAs1HadXPS89LRD/DqIB8FJ\njZU9BRq02sRRg/KpVObwns1+Xm2k8coPFtkTqyzWva7TiT6pB5a87FffdWro\nxKkVxKrog20pGM/HG1FPMuVHt2yvuGfi2DKon3ZwRXb438f6Nm3ybdwMezyU\nAq/U0jbDn3wFPV4mE7cO7wrcWt3dT84OUzT9ma+bpH2MX6lAi7gDaRT7cjjx\nWipH\r\n=vcjL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZNN86d3qQeuGWBDSKswaeZRgyC+3veoyY+buXhOoyHAIge7PENpidG33hQ8OldEXDEMrXwr9Dv07AReG304psUR4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595627387087_1595627396130_0.3460751500202539"},"_hasShrinkwrap":false},"1.2.0-next.1595629110288":{"name":"playwright","version":"1.2.0-next.1595629110288","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595629110288","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nMOhM2Pfl6wzraKvKUYIBtdFfZM3qhZiCbZo/JXrCqo8QxZtqlKWWtUahDkcXA7Y4dLqpntKNZUgutXm8FJtmg==","shasum":"743103cac5ed2a591b1a9858dd0fba8386569f05","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595629110288.tgz","fileCount":149,"unpackedSize":1841959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG14/CRA9TVsSAnZWagAAcU0QAIZuvnBUDA2b+nHchU41\naDvWCLtZ7Ms1zMENREYGWMTuBBoEAuPHYWm1KJw5GncQxa0TRQH08bHL5RIO\nIdWbAk0DnNBjETuUKkXOVMp2XlcRWKUBl8KbVbxG4ZRboPTiImwR9lxTfL+y\nYCkiVeo5KXDLctIolS1TVmFyKk038UUr04hkATHHd3Qqz/yyAFICE3Aq2y1x\nkVvYxb7f3SmZq/Ad403cD2vwpln1Sf5FXXCvlwEUkw5zEb5ROSZp6+F3TOHk\nBzJg+b8pd1GpWSaNpOdwKjt8uJNqL2exCtxp//CCf+fIdmJyjBIwOlEWlFyC\n9PbQamBiuLNRF/J5XWVf/V6WEafQEHnrqJt3NLjB/LP74tyV74kjng4mf5oB\nN8L3Br+nGaAc+mrDo6pZHDrlEFiYAwCydtGJnyl2lIbYoHqnnQlVj5MBmRi/\nZKyHoTZhAndo+c5WkByazuuZwKPXCXP6Sjxn3wtzillBXErxbbhbYPLZ0R4w\n+HuXjIctVkFVqTqDFegJjK92jUK87mDEzFRGe4fmezrC7XMyJWFsJuIFNh3j\nnIp1PuJVuMMR+HnclkTAxWa59ftdoheeHDtpCs0gKVSaEejcmsiToSGHjVXA\nXOY4rHXWbTyBVdct4munYHeA+dy/tU1wNJDtXDjK9NMdFZk5YxIuNgwR1+5Y\nQlnz\r\n=ejIX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT51SJpqv303yKKXVG4jKjkGRGokQQmuaMDjRyiknVkQIgdktejF4bcgUdrm4jTuglktBxhNhjvyJTrGnc9hTf10A="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595629110288_1595629118623_0.6867256976657985"},"_hasShrinkwrap":false},"1.2.0-next.1595631829935":{"name":"playwright","version":"1.2.0-next.1595631829935","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595631829935","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fozv0agDvBx3OltMz2g9D+HJbv3oy4G2E307bk+BymBI1emtPIALS/I/AE0Mo2NhUoIH3ejEyciD4EXeDtJj9A==","shasum":"6e92208f1bcbf0e82f548bc657d9afdd653f5ec0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595631829935.tgz","fileCount":149,"unpackedSize":1841959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG2jfCRA9TVsSAnZWagAAE+YP/1M7Dwz04uWEL8P0GPM8\njU5TCLweoZzNY8f/SV19wKwvx4qbkRawWayDE517ZpevZddRLUotQtrnQ9ZM\nN5GR3dzFy6ECcpf3vLN3p8syZ23kj3kVaccIs9dyYhq+bbLr8eKIhlicjIlo\njlnz9gGdJXGE5V0UsKpLg28EnAvwXx1C41mNZC6THfL6zffHIfbRySNJrEr0\nU4Pi1HA84oa8LMiHlTC1TybYFrxboIAwSbly0je1bKYIw6dADIXGYx8hVpxk\nqfhuq9yFSyvcYnYv8JlW7ME3humcO8URagi5Hg4Gt8LsAx7CreW3L8LkiU3d\nMbQfJJO3kb1o3lt87RLa8xwTztAAzJ1fWe94lMIC51gNP18mxbInlUtiAgZW\nniFrTaUFlDlgFxBIFFRpsoHk3qnHLG+y/PSl8Irjlx31+dvK4yvUtkWuQP1k\nQWXDau70xsol+2LmDR8xkpJvoglYYmKn0pa/DCfhh6PahaxXEJS+OTJHOBzx\n4J6LSltU95Qgs+4kX0KRSR65pwbLREZv4dyx2xVthQJWrrtD2cZqF1zVDFrl\nrl27tPJAXnqEMlwqDG6M7qrF5PYsrkFSEvUF3YyYR9OawVFOUmEz+5vt7wFf\npb99xtUIX5DUZMCzbikVK01hBrgHVp/yg7OJrpnnuhW4PTFp43/pRS9hntej\nbs5t\r\n=oj0I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAilwJoG9t29hbxGTQpCUDAtIaduYB6YJaDAw+eTKLODAiABDGPUltXqDeLXBftWH7EHc7qZSWWOTLcKMFC5orUMeA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595631829935_1595631838420_0.5487258621233813"},"_hasShrinkwrap":false},"1.2.0-next.1595632655516":{"name":"playwright","version":"1.2.0-next.1595632655516","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595632655516","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Ydvo16jbjm0yjRxQvAbwRtGolOuLQE8OWHjWNl+0T5jlx2TpbGueHy5LSVD+BnwtCr7FuIb2CIlAXoHYoKINOw==","shasum":"c679916b31c0c1f83e39ad494a9b11012bd5d5af","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595632655516.tgz","fileCount":149,"unpackedSize":1845957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG2wYCRA9TVsSAnZWagAAShEP/jw28JZNIGjyu/j/kMtv\n2pitqjelp77//zgFQV7AZNorCR4cnOx2BkNawAwgib0phT0xy7favYbxraNY\ni8B/86U00+sRZL/bL9F11TwjnKvvy1cL0kbfFGOvLfD1T9t+aAwykEXLE2ao\nhTR8cCV6L0LpKPHEH4/DyENO1endi2vV6AmdxFK8SklMs0Alajp9CGzLK+jU\n8lQ5A2Xw5d5HalOMFf1783iZaF0BcqP8y+wkNDWeyGH99UU22dJ+59jPaMNA\n90v/jXyh/hOPM4a43FXZuqL6IMXRS6t/lBd9cw8/ck1n4Fi7gGntkD0FFY4j\nH8p+EDCXOEeyReTNSyZTpVGfMsAVHJ3GAfFM1VKxSL12xcZa4hN+FX2Bou4g\n+Fzbm0vzAsv89IM85L9hTBb5M0kIhv10cc9hTf6+OqTG9Oe9ebp3h3g7PzzW\nJU3KFRTwKhfPamxTM1JnBe7OySW/AP+7SLhK+JrsQjyO2KiIar+Droy37T8F\nSQpokDhBElAqF+0mQHu2hTEJ3RxtP0L+oMOfYh3H/nde2AvXlg01EfCZCrqV\nR0ElThnlyI2i60Q58eu0fWTmAZ4CcqBzxYERNr8vFNyH9YKnOC3BtT4QEUcB\nAFQO8QeGho8k+ymcnQQy/BrxEd9tOTSh52ilaYig/MrgfPj7L3OlUUwh6IKB\nEPJX\r\n=y3LL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEu6KA9HnkQAsaK6du4XZT9/kWz45I5luijJwDSI025gIhALdDJADF/D0/9hlm0yMrAzzepNTh2NafRTmvQEeD7Egh"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595632655516_1595632663877_0.8394526811751204"},"_hasShrinkwrap":false},"1.2.0-next.1595632870902":{"name":"playwright","version":"1.2.0-next.1595632870902","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595632870902","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JTIDchKg/BFztMui6j05nHyabojDDthMDPttGKUgLDFvUK0kg6QFbUIuAeppd6AkQhBg8yjqxkw6B9D0nxGJzA==","shasum":"065b42d90a32443aba2ba1725ba942280c8fead6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595632870902.tgz","fileCount":149,"unpackedSize":1845957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG2zwCRA9TVsSAnZWagAAgp8P/0gyiMXRxF3ZXSuUAFfz\nAIU/yVGyoGLNVcuMEzT/1vwBmzcoXUP0w1hyyWPGMBTupLLIYHvRxoGFWGgh\nZDDYr88EusBCQi1WLEdVsifCGCXn94niv/sgHK8NwC6AgCbU2FU1/dE05XpV\nQLtEVgjFUZ5aSeQiRyHi/0Uxds3gD/U3HTYTvlWymBstr0xzCcDo/JPTeA2b\nGwZgZNfNO+2V0PbIVmvt5Imj0PETUY3FVLnw49QW4LttX5AyHaEgY3eXWS3J\nSnI1jCopmni1g2QBimNeqVrICx85b3r9DsKbhXMD9vX8p93JZR7IayVzB09b\nO1SDwE+lChJyjfVy9yiL41ZKbBICtKS7l9iY8ty8SYzoI+WlkOxJmpc+Y0+Z\n43nH2tURylMgJPOh6EQZZN7ndddzHlsY/I4yNvQ0xMwV+kJjXK/h66FvdojS\nDQYPaZ4RawEW1hG7l9SrvHMPMNCXvjI9S75wKbUPsASYw48EBqeKvauVPXpW\nL+rhe18btvYlN0qA5+aNTiYRv4YIuLdD2FA26+1twsJhyF4ENPRNiHcYqZ+B\nebAQ5hMuK817thEMAMItnxucIruUNesc/aRbqDZuuKHPv7dWT6haqor51eRt\n+qxUUSIo1nGu6Ynq6wt8IasxfsEdQy508NjsmRbyMQuWn3vEbnTVXAxe0NGo\nnBaC\r\n=FZ+M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx5Sb2dDHzcw5AYhosA2wqhC6yLfh8q5jA6mdig9yBEAIhAJ8/6IZl8QCLIgKyhLLbfurtoeEVzfiC5JK62mYZok0G"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595632870902_1595632879357_0.360753951128592"},"_hasShrinkwrap":false},"1.2.0-next.1595633074291":{"name":"playwright","version":"1.2.0-next.1595633074291","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595633074291","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lM6rzkF8/s61wR3eQx1eYRnbpc0appfBGuWmUBSlULpImnhC+OK9F7V2p0n6UKaZZ5n8JTQ681br5hVCGHPwkw==","shasum":"70b3d6dccce3a8a6bfa1df57f20fd41b5c438372","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595633074291.tgz","fileCount":149,"unpackedSize":1846069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG226CRA9TVsSAnZWagAAfhIP/i2ducp9FIHtHVx5DAOe\nKtf7Rxd9FfPocZMryQBdvMGRSq1lOUjHn2ENyjvhyxtjlnZjtdgMNCl/qaHW\nQ2MP/3stGXM8NyXyhXVDp8RSSR6w4zEMp90x4xI09J0CzJeUoA0i0/ZUekam\nba9tnoj/AdnQz/c7D+HZAT5pkbc4ObUddjSDTF7Z5P3jX9SBnjd/r4aFupvk\n7Js3QY/qe4s8xPcsAatVJKLOtrD2YtWQ1lWRXiucT2Rk2hUjC7rxOw1AQzRR\nWgq3UCQZFnLa0XZGgubSuizweJ/1S1uJmUA7WHs4q+/dmywpruXAV1ZNy9DS\n/QBeDicp1kTK3z6Pl73BY7d6lim7HnxrKRutH4DrmK+H5QIY84kvNsR5TNDU\nQqig3KjRST85O3vKnm/bRrof/e3yDasyO1f2GjHAfcRZ/ZG0f4tZTuM4PPOC\nbUYGma2cByW5nih+Bd7hhI/0MbeaTjhs6wqvQK35LjbZ/5IKeyQfKIArb2wJ\nXDiWYejmYFFh1RODXe76GEQMGli37QND6xb7PvOV4QUaNz+niaSyww6M75lk\n76aHzNi96JtQROGo4A6iYhdblvDys4gCQgGGpC7y2oByaKP9OevDPXbW9Y/H\nV0w7xiMDX0xsy7Rwv5vUeoWnuAdMVEmvjVF34iB1SUfyo18QrWqYIxBTz8bn\nqHCX\r\n=StEd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHXXRvSaUbR+dg/15Rw0qSMF2lhCwaGKjtmc8txzrd4KAiEA5/FrqSn7RokNVkJiTc3gXC7oeoCjwDQnmYejHQi2pHk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595633074291_1595633081732_0.3841928883589303"},"_hasShrinkwrap":false},"1.2.0-next.1595633878550":{"name":"playwright","version":"1.2.0-next.1595633878550","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595633878550","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nIuZhTOTWzAlQ5ItvToMbSh0/tcbdjKu+hS+svq51KCiYxHsg+HGJ97UBDOuLlGhBPkJItdk52XGIRyETspWUw==","shasum":"2686fb101007cd70876b9aef1be2dcda3fbb88bb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595633878550.tgz","fileCount":149,"unpackedSize":1846358,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG3DjCRA9TVsSAnZWagAAP5YP/3QsCfuh4KBEk6bX3LjK\n9meEQ3LyXjzAx+AgHrg5PNEjbd6arWIJCUZbpbjrDS4+CL/nEFyLmcF0pK+6\nFPoCj09mAfngRqU4OAx81Qzwx3HFBjkhCgaybB9oeSipv4GNkWVBclw7HEcd\ndl63sfzGWJJNNHt0XiubO6RS+PmE5fAnZ2ppUzLTi4+7dVnOFRj+InVqDp0g\nBMaIpUtqXJ4T2NCQtTgdBtPSFDPLIdl5j5fQSbncVOSPCxyb3PRVAevVjuHU\neBNMf91I5VA5pKgnYeqmGlrBJ/GTk4hIriKEaB7ZwQaI1SQqtTQtBouSGULk\n7mCYYHIXo+7Kdyaen9tA2jWrF7aAjb4mwzh9FNBrtENvRkDj2NsUR26cl8bt\n4gbtVFeC8jJY0dJIcXZlQT66jtwXuTNG/atD0sjf+bIuyMM/3pZMfb7NgWOs\nIlSslCN6M6PaNGa/U4L/r9Laj9hUkuvI2Tqwgqp8JNHRuM7qZZ2Pgty97K0q\nC1Uflin/6+dBTXgRz1kGFDL11aiYyO1l1KdXyzbh0vJt4ZNMPQ9lGR6ZH0NZ\nLkz9KwupEoxUm0UQpnpslv7Gg4OVmHa1PdOvSqt+imjcQqcNuJ8Th1JGWDfz\nWL7MqwWmLWaoiL5YkkHrYNyrJi7XyI/iYIo/cWprKojhS7P7E2GeURvfbPEF\naCXr\r\n=Xx2D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6KfZ2Gy1/uWaYZVLZBtNrorKXVoS4VNeGw5ucU+lu0AIhAOjkC9+Fa2IBtx7ge6/lofETeYLWgy/SpFEgsDw4qk1p"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595633878550_1595633887585_0.09437079376759527"},"_hasShrinkwrap":false},"1.2.0-next.1595648531481":{"name":"playwright","version":"1.2.0-next.1595648531481","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595648531481","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-CzBFzcuikwy5Yf+WrFlxqsm4sQnGDbxNe5Z32FC73orMTxj9RmSrpmKKPAqAnLjqINqmv1BdAxw+qrz4/CH0fQ==","shasum":"bdc7cde8e7a5e3e9dc412059c3c80c4e7cd94c50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595648531481.tgz","fileCount":149,"unpackedSize":1846400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG6obCRA9TVsSAnZWagAAccEP/RfPhNlZZN3jyTZQTGlL\nv4dW9P45dgy5FGec0I2/2gth90CKcR5Z9IxKsByPZSfbuGGRboRmR5aHDxSK\nRHYWwBxeW2Z8LEmsAV+T2vXEWm4/DIzBdJQ44Ldeo9urBOAPoZgetfTnGPsa\nNJbM5GRUonktnhE+y6gmOZP7BZVZqiVYUAi0ihHs88YKCbD4Y8VCQFRmJ6g8\n0kH2ZwZfgWv4Tm3/x0YAJy+yLFyjNkIfhhlQPK8wS/Rox5LPwqY3JL/zQvls\nUrjWWRQ+LeRoL9fHwTy054utGd0vRsGW/z8Ysl7jBxsFX/p+DhIXM1OP8kP8\ndFcF4bO3IiDbMl87ZoY35u1RzFheHUpBF2CIvyKEn5GXpVC6tKzM91d6JEmZ\nSYjnekhQL6nGelYxuQuwOv1jguPzcexyqyRXXvYBePpc+03Oe1kkEnFBQay5\nWcnW7oR58UiOhVqgu8qAQrKltC4uwboqzV7977VZNYo5wQAxx0aI/lPsL0WX\nqbPbnmS0sm3Jfk2vw+eETBhUj6+cLt170+o8+elHSBMhAEIMb5syXXsZubsc\nFAISYLfM+22JXjwSv4ok+stitE1Ql7LEuzoWRQSWy91dbPqQKBz64BpvWgYe\ncQz8vP86xPC42FwvK6L/9GB/XPLO8uGx7FAZhvMOeXWHEj1Q8h46LmTsqJCD\nJC2X\r\n=ZKlH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXuRc4viwksJoo11RYpn8P2FCJHiONWVt+y2ffk0oQMAIhAOijGZ0fclQKlEZO+YQDa7yfIclZKez5lrASLtZcAHWG"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595648531481_1595648539470_0.2814656284046404"},"_hasShrinkwrap":false},"1.2.0-next.1595746824307":{"name":"playwright","version":"1.2.0-next.1595746824307","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595746824307","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AixRKoGurT8GeL4tZVzeqotakKiU60o8wSpoQl1SFm/i/g2YWZP1+GcHlaIj59jnfxbVfZPv0Z0OvBky8nxEaA==","shasum":"68df7bffbcc8d8803a9149de686db1b835cf8fbf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595746824307.tgz","fileCount":149,"unpackedSize":1846400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHSoRCRA9TVsSAnZWagAA47oQAI0WpHvGcUcDJteBofxf\no6lno8qPWbh3lJE2uucBot1MeB4lR9BkxLto64Su8rzpEuVVT0o4WOAsJdy0\noN3DN/goenSyN0tJAWy+b1Fm4Aayuc2ayPUNmonafJV2i21Wn5OKayFVBp3E\n94KBjAPHfnbeynBVWfBdVaQe2PbnsCdRm17VaxritLcgZf7q5vUDLu2ymy+C\n+s/XoQ/58Nl68DC8WEWezP3/dNlxO5WE4guqGDjcQPiGa9gjI7L+WjYCwmBi\nE+b2GwlXE5xG0PvEjf9sCKUMfvOkVJG+G5GL4GEe6YTR6sWVCJlLrtTEmUvg\nr9rj2uezVqfl9CJodSHRpzPltBQFbz/UkjuxOQpWkatN2+hCmXRGXwH6HBvz\nLMaw/Of1w7trDDKNFWm7BmDJHi9n+MptpQMFjF4jitGZCIsJOojh4TCsquE2\nEE1LV1kVZu6lBEH2Pf8FD/PyDUMbO17cNAWL+Xo1Zt7R9YxpHFmcoZcfB8aQ\nbgTRlVcdyz+wFe2HEhnqUYQGGHeAZISQRKgK2HFVRyZoMHrelHRNycBEGC/P\n+xwswMghKzWaABCvLryObzh+ZXPQdUMbvxUaRcdHr8u62p1z2IRHq+zBMSbG\nlRCxLeIy8b4CtvcivMjO6Y1FGrmaRWIkcHolYNTxoIiV31jdxCUItzOpD0aQ\nkET0\r\n=98kZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUaUSRtMNObl6SglKGmWpetZH/Yger6JJZgPhkQ2MQ9AIgAqbkEhBS260UU7cXWlkrYBVHYcRstQoUtW/WyYd3HME="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595746824307_1595746832524_0.3342906785909363"},"_hasShrinkwrap":false},"1.2.0-next.1595824155918":{"name":"playwright","version":"1.2.0-next.1595824155918","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595824155918","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-SYI/j2R1O6hHiaUgxaB8aoTsUrduQ/48zVvCglx8LZUJ4mPaX5QcEujmkZqFsZPvgYYz5MiqyrVwg8dzB+heSw==","shasum":"bae6b230b100aec28c2a06c6174f11f311647186","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595824155918.tgz","fileCount":151,"unpackedSize":1848648,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHlglCRA9TVsSAnZWagAAVOIP/1nfAjoQobruAUoI+f6O\nvNTwXfWBKhCEMRVPWZTtThKi9kLPgFI22hHrG5jLKHFb7GEUFKCffvDju/pF\nN1Z43EsGSERSAkfSJ6exNnE08qEMQbT4LLAy7MPW3N+FmJoAxyuQjypmrwUi\nu/I28dXYJK91kysYdj1zOCZE7ij0CPCOO6gLf8fgyF/bA0uA/HNdeUIpCISF\ngw78fgDEHzefpq9IMtCn56gBZDAWpBkGS91w4u+Fkj59XL6huphBH40xuKsc\nhnww63br6t1utZDQAaK+YhKAfMLvBRYfug9OXu0UhpxoegsZ1BvsJAX1EH7t\nO3yioWRFayBQn4hCLfJHhA5QAKLxDx1iiW7+PxqhGp1reZJpsg62HeSxFmxj\nOZveI+igGXLD9ieeQo6KXsIEgmMTwdKJgBDsmgOxMPzSzw2PENKgpi2S5Cl6\nk7j84BBetK4mO1E6Nu67AHzqSg7L8vGU6O742gZ9TdaoxCX8lFCPHfbjo9MZ\ndcGUrVhMW5MjT9oa67SuHjzN51NR2pxtlKNIat0IYenpGp6DG4i8vtkI17tD\ncIlJN+psvAhL2Tc5KbHHR1KCYcsda6ImJYw5lLGP4uAURdw05Is2jPfQ6OgC\nXjQMPwIQKicVGjHspF+Ai445ZBG+TdJxKlLjAGkrmyVUTbqubyjuqgUjsPr4\npQ3j\r\n=3wkX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAT5berOxEbrqgmxCZS3BRxIomfyxiZm+TfhZLffgQpiAiAm/SEB0OYGMdAK8hwufH3QHSczrRt1klEGYeS1jolBdQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595824155918_1595824164481_0.490572002990483"},"_hasShrinkwrap":false},"1.2.0-next.1595869623354":{"name":"playwright","version":"1.2.0-next.1595869623354","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595869623354","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lZExNv5qP8qyYe8b1xjQ2NYwY8Uh+2G375MZYRJ4CPlxn7uYOHXc9mDvK3HROVafTBQFQS/ctSWPRbVhl7tDBQ==","shasum":"ed8313332b80a6e583e4b1a979ad0094c845ba23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595869623354.tgz","fileCount":151,"unpackedSize":1848724,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHwm/CRA9TVsSAnZWagAAgQQP/jK1QxYLOUrKegWO22A6\nLG1Do+uGq3Kb4IxB+Q2+eJJLpO8lx5oiVb8DnpOsTu+eeMvu6kh851xwRQDb\nJk8DkLHNWIn6bY8+mlcIN+IgXwh0Jye2aZkdpHeZ2B6PAHDoH8+CGgTmOlpr\ncMpih/PsIq3MUbem8Tx+ctmPwOD6myquPP/Z36ZpGyoAHB2tYWo/8+WQ902o\nXGXeEm/gpIogpUFTE/of1ORRLxOl4PHTiplyxVJRm/q/ZhVl+gVpHdJcHcH9\nJyyiZxMpUoa4Lj3EFFIJR+j9eRVNWoQdyA5yMouSAHgPAfD1/0tKyE+LlBqc\n8v8RGqP9BLoS/+E9xnYwFnfbGGNseu3XZaRjXkBg6jqAOtz2xXQBry+IR62Y\nc6CeBkxh9k7SMNbTpJi9eRZ02CvSMSsJ4PwXc6cQMBP5r1mID+fi0ckFzyhN\nWNUQQwReS0vihKeY2FIltEF4yqzDa8WyhcVBNXbHUnEkp3oqfSEtCHRcELok\nPPjXK3tb0RA+KlsKg6b9EpIOIWCFbkx45UdvmP17+Gt6ZB4WB52mi4zueMSS\nN0N9H7Euhy/PG1RgrxDOH3YGSmQKnhEP58kpSqNb11iQ0j3p4uThLFs5FkCU\nmsxeUe925oPRRNPLyyfwU/Jq1mFpbBjp1j7sp1j5T8845gpTetd4ztd9xhcg\n1imz\r\n=JsOv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICpUkgBH2+o5rqbQLEJbCIt2dNw/S95NTgvkouIPuVaGAiEA3AVvIzlkAB9fVPXMsys+Qohc53rI9SG9dvpiFP60cRg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595869623354_1595869630840_0.01490280086655793"},"_hasShrinkwrap":false},"1.2.0-next.1595870628916":{"name":"playwright","version":"1.2.0-next.1595870628916","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595870628916","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-36xOlO6GFiQtm7Byhe9xqR377MY/kZcSki/1QIdGjtYeG9ygWOvjkP1Lj8mUXlW1/zdS1s+ruQZ+dVhrz5NX3g==","shasum":"f0b53ecd9f7eae119594312e06bfc425b8f0728f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595870628916.tgz","fileCount":151,"unpackedSize":1848455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHw2sCRA9TVsSAnZWagAAR5wQAI1yI1Xr6us+DnZltWXw\nVb9iRWhAoNMt7OJD27wS0N3fp1Ic5tmf5v+J3aC6hl+D/PaLu9HFWSVWpNIj\nkfA04feadB3WdDrT0rGOwxSTbG6JvgvhhlY9J8fiCIvOZkbjSMiladt7HBZt\nA31IDdoZUeHp8CGC5wKserXJwAJrGag96sakbqmPkjOd/o2NNoXEMLj/R+eb\nnxSEMXLmVA1dcOQ4wYYu2SqKVtR1acGrKmvQ6APku20jJKp2UHjwcnJiYH80\nRSd7vRTx+FmjRwHR47X58HyLOqtQeTS8GjpvuaCug11ya2Rtkzg3MLwRXnbK\n4qTwDoLNInREy70UjPKqSrZN1s7R7e/w2h6v03P2yYuXJ8X346wm4OYngbDD\nxERZE18xlPKM/yTNFKEIHB7A+NtJy0X5QY4CpN2PXrk/r6LEpV3lIaTUaWJT\nyZO898EZmol4G1GejrZz+0W0KRKx/KDSOIjQqGRLMJRv+NGkfRJPQPYHaUsN\ngJ7QpEJQoapxKunHc3e09BDU0SnEjpYwBpuB7DAZbluL9Up45VtRSdXBrrmH\n8fHwQEMNNxEflnBOixlXBLVuIrvum1FOo+oKfbKN0zzLtUorbe51DzTYdEXz\n6ZnSE3TYwcgDGpFgmwox+G0JT9LTREcq/3r7auDbT3+GJJp/Yz7DvUiZGdGC\nKTHF\r\n=AQF0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9hjHIp2zJHhQRWD35bKFHFNyOYxynb8ooRAwqNU9jtAiARogQq7/pO35+83twmu5k06JCC/5ts5Mxs78tBatp6Qg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595870628916_1595870635964_0.5256979784634754"},"_hasShrinkwrap":false},"1.2.0-next.1595871060843":{"name":"playwright","version":"1.2.0-next.1595871060843","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.3.7","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595871060843","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/BTYHLxh6V1rrBN+VAk/TsZA1LZydmfqMdHEzFASK9dbRpRxN0XMa6kMekqMzC0kkZaHsA65TEc0LsBxFTxZdg==","shasum":"a7db036f3ad47695d7e281f35c46410280dbaa3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595871060843.tgz","fileCount":151,"unpackedSize":1848458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHw9fCRA9TVsSAnZWagAAWrYQAIhp6RMxmskc4PFDCg9C\n3t34C4Hgtv84B3U+AQuqKxaNfpd/CibsPAN0h5KEOsR2VqO7dJRF3WH4OV6E\nP8CviQuVFT+GZ6b5HMDIgTzuFgGqPJbpLFNCLxhyVOKPHylnUxYAT8PZ2BSZ\nG6m+6Wjb3p6i9nGl7DpTDVrySbkSz7By2cP9M00rhcMM6a0eL63JFxrt9GhA\nKPmJXxX4lYwOH8grQgwr2tGEoAgLhYZGCMQyZtj0er2l3xPPuvecIAL96zEM\ntdMstoFGfFYrqz2ySYzrf3L8CZiQiRLmygBC0Ncvzsut4ICS9XRjL/6m4S63\nB57i0uKoH3+P+s9lUzhM7mrQDKGFl5R5xQVM9k0rGxSIkbndXykmFSnTNIs8\n8F46CX91M8yv5rvrWoW++zitsBHc746cxVQvPTwo6IpceNXBDcAMFHBPW2Kl\nGnKyx9VQ2p9w4DP3Ua/ZLMbYkB4E89ghgmWmPy9vW8s8G4q3prQHXR3aZbTN\nkhDtmLkN1X9/8OURSCNQmZ5yeQhgAu076wWkfkUeMZHZ4b1zeGMKgWRNyHxx\nZ8jiQEdk4mI5UWkH3ePasjEzZ/e4Dh8pNSCv+skUosrm7wHF3lvkU72ObBll\nHUzDSTFyt5sWpYuic4Re1zR6dRiogJ2g1NxZY/Hx5/n3NnSgW1Nmgn5aPRnL\nV19L\r\n=GfOF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9xfOL/Xm0ZdNDBVm18Vvw0GYuRC2zj/yGsME1LqU5SAiAJkrwf5a2/8tnieuJqN42+n6K1N0C1vrXzPJJLwHX2GQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595871060843_1595871070455_0.38151006093868456"},"_hasShrinkwrap":false},"1.2.0-next.1595872484577":{"name":"playwright","version":"1.2.0-next.1595872484577","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595872484577","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-T8LfXxy98yRWbQ/bsmZ1EdmWxp0Gf3RHU0sy71uEPRn4ye2B3KOT9KTliMsD6xF/gy7aLBGJp52xeSftVy5gFA==","shasum":"4a337a703b64298ceab710ebb1c047ad8fd4b611","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595872484577.tgz","fileCount":151,"unpackedSize":1848488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHxTvCRA9TVsSAnZWagAAxxYP/3kW2eW6hekMv2YqvaIU\nLSyDZy+2JNZqwg46c+ziUjGwJDFZ8e4OF1I7a1iR1S0ByCkUPkm3WjNMDcs4\nGsyIYbWBV9ZKsItSiKK1Bu8tWSAngJ6uO3l1aohgKKPYeWCbe8dDqKWVkxia\nKQSyW0AH1C8aZvyJgw3O8F70mZwTj/9VDIMScZ93wfu81TBcUEvLwOJosd5y\ndDF9VHObdsXQxH5iBy+Z2EcNZ3RN8UGMg8YOGCJcRj8AVfhAguHR5hXa9+8Y\n/e0c9F+QfHCVyebV5rqJygKZdAW9OeqF8oig1hBtwdQtHom63QMMNVekbR0K\nLpDNAffwYj/90trmwmvhidRRbtCLcADZFRq9C6PBxCpxz2Fc9SHfc0tzeNk5\ngqNETZWp2/JgD26tNpbjvpVV3vqmtfBxykFPgGLjjsUrIx1cbvqFHjUSwN40\nRh70k1SeVzTdEYK87S2b0lZojUf5Kfal4ZWMORhOiRy5aTFlRtvL0MZtVfZt\nXwm70OND6AN6t+Ub2PCvVaJxz7mhBmpDILZHNe48ql2N1hR6mtIsSKcbhwg5\n7mdM8wNEOJaA8JVlnBu4VS3A9H7bUItHBBX/fhMOZrXlkqzSiusTdwhWxpkb\n7KnQjIZPrFB//C/p+zNPpS/GbutBHvBG2yid/4ZubEAt/JUjNuYIeZ4MpzBG\ndZXz\r\n=gvMu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSLzuRjRXUIKC4Xcbe4zBxq2yRluQ69a0YVVoacGQWpAiEA0oIiq/FRglzyIw5giLh2/5SlFhYgJfwfyzxogA8ieDg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595872484577_1595872494834_0.45710979082738157"},"_hasShrinkwrap":false},"1.2.0-next.1595880265637":{"name":"playwright","version":"1.2.0-next.1595880265637","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595880265637","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Kmt5WVRteuaOR7X+wCp34OykbcvC5YX/DMexEx7fO48GqbChMmLQIv23uSBwKtiEUqNl+7XHf6eY8wya++FurA==","shasum":"a57ccd8eb826f19a1a0a7db001560583eea04c71","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595880265637.tgz","fileCount":151,"unpackedSize":1848488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHzNSCRA9TVsSAnZWagAA+HYP/0ansY+SJxMjC3nmxbX7\nOvJq2HL04Q49QfEGUZdHkE2T6FU73shd32GMiHllSjG00mOdPAVGjmZ8MxmJ\nYtrl40RAUpEviH2Wa1p5mPm6ECHjxQmPZ1pBWtaNkxWXB2gr4xvEgi+D4KUm\ndjY5ap1nxCJC+/TwNI0EB8Z105myD+grKPZyCzWlOta3bggaGq7CPK+9kZGa\nTrZl/j2CDrc3PLGW/1sT/t8Ja6mPGex+2vULzTpSSmMFGSV97oY6VNPQLIc/\nrFLaRJJvV7MVspeLpdvA7xPve8kHDod0AZ71Bk6WRP5HpEzf8wkFKSAUo4s5\n3Cv3LdYGqDvewjAKLB5SVg6QuB7FbozN4/GZi9QEPTRHb9tmarbvwUZNWopb\nh2reHh2km4/s2WqIwmN3148ZKiT4jREKiYyyaKWQCT91k0xC5eq6gDU4t53/\ndtjM+QyT1Dc/0gOszi2TwNFKX0F1zHYJhgFRHij5PkoaZqh6fERmMIwehiYm\n5gH2th+fOQ12tNs+dXcXeUvjwvdVhriygcKUmY3Qz/6NLtMjiA1j32DePzO1\ns7AaJd+6pslpQMLg3Poaptf2Hu/OcxO/Z6N27EQNDctzUl779LfgKnReEIB2\nFzkWQgvqI1Rzk53lh8RkpiQbRaAR3/fcYsVVImiWVK8RE4805ydWAJblKgIL\nEaFU\r\n=pvq4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEX46IKPSkWFJZz3Gg9Vp2N99O2tths6EkMODkQf4NB/AiBCTG67MeH2M+IohvvTxyBtbDXvOGTGTAyckpV2KddmsA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595880265637_1595880273776_0.8286707643405131"},"_hasShrinkwrap":false},"1.2.0-next.1595882689972":{"name":"playwright","version":"1.2.0-next.1595882689972","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595882689972","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-M6Asv43pK+ig5i7LHV9zpehGpH2FOP9lZgIqMMMHCA9arg5uFiE0wGGfYO02TXyUu93PDd8mb9H27I9AtQW+Jg==","shasum":"bc12b07719df278be9b592036219778834c3ddaa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595882689972.tgz","fileCount":151,"unpackedSize":1849205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHzzKCRA9TVsSAnZWagAAf3AP/RW3/nQY2uA3QJ0f3aHH\nMyF11sdi7uXWseWdhoZe1L6GKxSnLYkVglDCVV+k4yBvMs4B81zjLp/OwVEL\neQ4twdKtpstE7gUTrYU0ZSNkAobIMwqnR6CJQOP08tsQ9sJ/ea19kijQjDWh\nO2+BLsRT07HjYKKhOlDJOaTafz8WzJP0u08XfS70oLFisUAmw7Wr5RXQX1Jj\nv0lynvmOPOY4Xn1g3IBxVvcs50sZZJZZjmxyHxDEoQYwJ04szxDG4S8Cvtpr\nHt+gBwZsXAgfM4nSCHifVUgimgk8yVKvpUK2A98dQa21NFH2urysVKceF6d4\niNu6F6SFo1dvRW0M8oqRmNSLc/Wt+bFAXGovPVPE0lQIxmsGSMVR4x6AI8G2\n/3KrmPx8LePoqq5l70Ou++64691ZhZTisA4ZQNmYgGLfrDD34LFxg3j1p/Jg\nHDj+iAVfk3DFkyzau5qzG2RSmXjOz4hUrQf5RjOV0InwbPkMpoapflNDUM3o\nP+3yjm8f3NqI7oU5dpZ+O8y+zdlqj+R/mtsQHBh6SVJNZPNjZ6udJJDGD8z5\nNaqaswZPL3vK7M6Kpml1Hby9V7w8ex/g+otr2rzUFlr6hjMVbw8sazEcet1p\nWZj1oxNzmu+sshY6YzlOeNAKNg0KQBFLaff1+hTw/k/Vp1/gvXzUvHlK37EI\nr1ny\r\n=cGyk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLNW2nu5yu/QLQ/JeyHK32z4gwUPpk6EAFkJep73RBPAiAfhSune8r3Bn5X4yJKQed6xPSIS6SiYP1ia+OeYI3ieQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595882689972_1595882697957_0.8597251459407049"},"_hasShrinkwrap":false},"1.2.0-next.1595883567063":{"name":"playwright","version":"1.2.0-next.1595883567063","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595883567063","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-FMvC93G36s72DmmvlBjyceXWtxvOjOtpg0sTuLDKCCfhdeBRbuwaag9L7qq12AOF4oNoyir8I6vZuTta/tD2IA==","shasum":"ef984bad098b960d70d6d697d130f4ed36a87baa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595883567063.tgz","fileCount":151,"unpackedSize":1849205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH0A7CRA9TVsSAnZWagAAtXIP/0hLDNsbGsVvwxowmO7N\nWwPPyqHt+cDZwFsoPNdxYZPVUbI+J3aHJHReNkBIAQ4poMEN7hIBj54W2Raw\na6T+rafl8k50u3uh9z8uOVKF3TF0O2HbnIEFj2hE1E+4oFaNHSB/+3p3ci6o\n3KNPQjbxDut+9o/KpdTtbCnZGaEJCPeVUNm2Dyaj90gyjN35n6iSvc3w9QEQ\nuNV4ZX/pl31+rKsCb3PaZUlJT58QvsuwtVXvvyS3n46NDQ3OpHhkghojWxWU\nKmDTH1MTRq000DXcMCOtXzr0PWgqx61RJfj82f4I5fIdrCnAiYrgEhvORuRV\nEQJoN5FMCs50dkoaPLpNUeAmTLfXLfjrSahpYyZHUqI4Kzv7JVVK7KG6bwOq\nYgHYLdrrctwRbMCTr6z3mvvq++Z/21uprp0adbnWW9KpswrENSIc2oeEPH6s\nhID9tz3BVBQbjqQnh0Xi2SE1EWor3u2Ihcy82PHmEkXfz19C61wWxSTcOXYQ\nHbaj85uVHjZz3N/idPXO7dJciKGEfNNJqnyJDrCA/JtvAsh7UcC+W8wZfIOM\nfheUnlErYzR3+pQOvIVNY84x/1j98MdNiRIJFTxtmthNnuy93Uq9Wy0W4uCK\n0qvJJJH2kGnM9PoUf2PjVIhwAr51WLbA240TuXNcXuUrggbIRquI/aywUVsb\nSsYu\r\n=p0eE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDj0d8PpmOV+lTOjJkpJqzkHjISV6tyR0OwU0hMQXiYVAiEAgKsU49BWcB+KCBcha4OkfqoYvBfCe2OOTMIlFCshqxA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595883567063_1595883575529_0.01292440812602691"},"_hasShrinkwrap":false},"1.2.0-next.1595891378810":{"name":"playwright","version":"1.2.0-next.1595891378810","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595891378810","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-LfiO8Ym86H+hm9MR97l1sNKRC1FkioFKtFF6M7jznTnBGjH8Mmbb7oHREg4c2uoZhZLODyubKupE59IujWglmA==","shasum":"1c36d2f1accfd0b1db161634cce8142d485f95a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595891378810.tgz","fileCount":151,"unpackedSize":1849186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH169CRA9TVsSAnZWagAA9cEP/R875FthVo99Ce7qN0s+\nQoyQinvyC3FnfSRLtw1lFBaRDtLHlwlYW9eo1zWlOA2mVPJrOHqxgY5Uw6Hg\nKRNzZBdjAnR15ke6ZQLKqVJZ7Ud0IweOp4AzjmeDxrbybv4UD23KRWJk/sN0\nmlLe2EC5nVW+rElkOkeblrFBV+NPdAPKTk8kII1oi+jd3Uar1F29r1H5SeMZ\n5N0R1RQDUjtTc4QD/rKu7lP2xzi4A0W4hveVhR1YacPbUZFrs24IjFbq4rlW\nHFRnQzmOb/FIOMias4bQCXIKUh1Gs6hfuADk97snVp63DMBMX3Z6QFOZfJcT\n9cMXUkwmMtK6c2ChqD+VXEZtuOHIu8lm+MVyHeJGBbpw31d7/+aEBrFL98n0\nt19Cp47ip26NdgIyQ1SvwTH9xBAugKW6kqtwt0pQyntdx7Y5f/Ekrqv4bxzZ\nqHoaxFXG0E78wDM8yJwbNTR+Q4cMZlKZFbBW6d+z2gLOMJMqwgQxK6zIL946\nH1WmEwBmRXkrSuvLInv2q8rl+BvQfgvxEnZfHYfO932AplqEnp76zto88Tav\nI3xaHUb9zNi47RnBezqxglflJLnHjfv4RUBdaKA8CnNNnPD2OnOh92UxOXKh\nRLhC3nTHdLcPYgWxNRVAHL7dhUpvelzJL7J+E60yQbLbEaMB7Cs/Ff+r/Vq2\nSi0c\r\n=+tYj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCATydaADkSVEfsQHOCqCtRGgwsEK+HTfp0+8HO5hBnyAIhAOTSDU9akwjnY0azjNTUKGnypUYfMI651GlcAA0ieLy3"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595891378810_1595891389270_0.6055260967553673"},"_hasShrinkwrap":false},"1.2.0-next.1595892292210":{"name":"playwright","version":"1.2.0-next.1595892292210","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595892292210","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-oEMNkq8lqT6o5J723NCWEoOuTQIIypcrUKgBX1KQD2/hqigpSfkzX25GLe2+qKKF/2bvh9KsFa19/mfNSfykqw==","shasum":"59826a20dcd038cd81a950598aba4f08bcdd6451","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595892292210.tgz","fileCount":151,"unpackedSize":1849186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH2JNCRA9TVsSAnZWagAAHE4QAJ2h8TIZxMICU6fxKdlQ\nKirBc5/4S1Jm2cyyPZPt3o7gUtp5I9ZuQdX/qQz2Z0ksXnSuV3NNJxW8WLWL\nxUyFy/Z7rBzshsNaZ5+afIvFd02vDuk7l/vRgPKMKXiik7Qk4qtYte5c6lnt\noN9GcQbEYrjdHoyE/R53jvAw+E7iemEQFGmUzWrN89nTLU2f2PjfSZsDETiL\n+Xi6v1JKNgRRXTHJJlsgOIo+OFSB/ueESux3X4Qpg60pzpa6kdHZSnIH6oRK\n+Tsw/2xbGtmPXvc2SxCiFnn/TUW88EI7+CTtfB+XLAutB7Kyszohnm/wvELv\nP4WCQRHAYFvcnaBWp7Dg6VQWE/EJQ/IWjFvbdPmgaG+ThRbqtFWHNElZuVpt\n+WwnRzut6pjb2V3KfvSL3WYEXXyxys5EmyiTr0bSq+Lu+nvntsAm9y6ugBkW\nZfQqXoKDQFgOZoe10VV5P6V7FruN7SzU5UAveeYh1OufI3/VIUXdi8Xaocud\nUzt4FvCff2yFdIpaWxzKCEKorHGrNgmmA0c50XSl/9+f7WScujHEmRisfSSB\ngmt7L0RiSVnKGWtN7912ZhAnNt2XpwPoLjElAYppKJGrEt9C3/G9WTBX46jL\n0vYsgrqBgFJ9IO1tC5+F77REBA2ws3bvNGmMEiL8k2Uy63ftCUb5DNYHDFu8\nSmw/\r\n=0Icp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC1gpgN6m3Tqijaf4G50WccA/BW90A7LtbvJYTTTRMpxAiEAwifDtsPfus+qdampNw/Lxd4MC3CakxLhAyEC8QJaYHo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595892292210_1595892300786_0.7241894918058778"},"_hasShrinkwrap":false},"1.2.0-next.1595900551825":{"name":"playwright","version":"1.2.0-next.1595900551825","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595900551825","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NTvjhxjAB4DXNaHabX+7CfXH30KqTfG2Z7p31NqxtwXODyTSxGFHnPOdFV9gAAbqRKG3Z/T0rGviDzz+rZqBZw==","shasum":"036483c0a2d242cc40a1fe531b8ca2a24fc00b97","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595900551825.tgz","fileCount":151,"unpackedSize":1849186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH4KQCRA9TVsSAnZWagAAdvoQAJXjwp1lDU/j3J96NpAA\nHfCI+8fwXNa/NSDaga0WU2zijL8lrY+D42rPexoPaREMk9e8f4Qd3+2N1F8G\niMT42o56lqCJ3TjBFpyq55yPurz4BIm4WEvYqmkurcuwTq+SMh9ESs30cUM5\nm6jr9oGQ+sJmxBkC9rsMz94oev0KX6WOUYj+nulHQIlUluMpUti3hm+QMGpT\nrPgWtm2v2pfvd4MeLInXwLntZzilx7rZlIVge9zrMy3X9TUee/WXCNVCuI1K\nqT10G/XJD7KCdX3alhYRDkXwpvze4JtR9d/bWRzt9YtX/xOdTE9Vk4wHE8IR\nIbihZm7FLWJnmAUBzwRcuHKdUKG+K5NL/L5aL++5HIy6HPyQQkRTGWwYG98Q\ntTWcxkoTx049no+9sMtyQRrZfWM2g3j3ZUJ3DzS9IV97oEBzSg0gFh7Su8M4\n1hJkmXxYy1SgGq7ooN/wDAXJL+oLFdikJkabBBqkky52ODh67cY63iGEZTqI\nbPdoX79Ochl0tvMD1M/KO9aUMgj1VaGEeifTxRUb0IjKyWkNuriunLeM8IrP\nk8JSWrPfJHJ7QoRu1g+/fESQxxVeFLF261bP8f6HzvoE8A5aKNjgSkkO22JV\n5nsCVrMDp+fPPZFvJVMcBLAKA2UeXr1c6iNE1LyHgCbVIpnZbjE8KxpM1zR8\ngw3J\r\n=PUz5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYyfOsqhYoiYwRgMGAXslO04CSNnTbwRMlqns9Kg+ChAIgax9Lcd1gdVMLgg3Sd7Y3IH/1pdZU96rqrY+o+j0Gb20="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595900551825_1595900560141_0.057291868687859626"},"_hasShrinkwrap":false},"1.2.0-next.1595961288758":{"name":"playwright","version":"1.2.0-next.1595961288758","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595961288758","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2K3VECpiNlnbPzCH9FVAEcqdevHnGX3FK8S1MDf//pn+ZJlEE+F8WoJtow7+0M3xFw9ulcF5kY8egiqOaJKqkg==","shasum":"7452b46d119d501cd65e830f49457eb266929b79","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595961288758.tgz","fileCount":151,"unpackedSize":1849186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIG/TCRA9TVsSAnZWagAA0T4P/0OPwY/XG/ef3LhWcwDd\n/el+CgxIMfHUPQ7kULI6ELb4vEcQP74OOW007Z5M59It5ldqZRWpIGDaWykv\ndcaYk0MqvqoCpJCEuDqTjnL+2HTjOtUUOb4g9JeVMpcN7djGtUzpTtYSZETE\nsbkeN36ABPEOuUJmerbr6A5XcExxRml8wGezyHQpPbWL7dfMD9Njq0O/P6vW\n40/ZQKfkGf2xYzlQ3JKGiXKKZB6bY9VWH2hnIv7P7OBILhTasrHIJ6wCR0VE\niwmy6F35MChIpSQdh5OSiwV/myIQN8Osp1tjJtBlNQnGZwJl7YdzA2gUpVcn\nasTeKLvtZ07BzojOVI3i0hy4cTy4P4GFG+iGM40oxm8gMGDMUqXfTfAIJ7N5\nf/Qu8BOO0kgrEUdJlRVsGuXx2+gWGzfESGAjqUZ7S7cTsRfMkY+9AyV5DoND\nqyPhS1AA4aYP7LQkNyanEWj97ktMx47z3GUdlpbCIW3dP40gi66ivq4EHFWd\nMeV2Nm7AufoSxIjx4Fj+cRPuuFAykIfjqhCCXM7gG5k70nPUDz7o9POr2FVk\naI3VVvARDx+auhhjf4PYqGcIcSjFHI6fHYlqM079Ob2y/lLohh+qDwmvXuj3\nu8pUPLhlvCrFKW50fjGCPqai555XbKg+d+gu0RFbt1TNOd3TmXl/vmfhUvAw\neh5W\r\n=iu7B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC23NgE3mCh44+sbyAPY0ACqDRkYvkg2sRxG8RSIUNsSwIhAIZ29tTVo/ivgBsNjjR3vYc+l6IvzoqGp2j80GM/MwVY"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595961288758_1595961298361_0.32159347589807963"},"_hasShrinkwrap":false},"1.2.0-next.1595968353423":{"name":"playwright","version":"1.2.0-next.1595968353423","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595968353423","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+tEbjI3kpcxnGLJEswthOg4SQZ76xtJbl5wWuAJTqRCQvyOO/nQTZ2fbtJZqdfz6Alw3hcCMiuGATZ4CSIuMgQ==","shasum":"07d49610c7a0bae926d3b2647449ae908b100670","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595968353423.tgz","fileCount":153,"unpackedSize":2151858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIItrCRA9TVsSAnZWagAAadMP/idmQr/pKBRVrIpDvfGC\n8WLiXz0pUAetKLZ9/U1E3opH81+jgFhAIifH2kNqwAhoIs8/1+6bPe7obPKG\nbFD12XYDhJAG2D+cPEDoVfankyqEOgHQ7mpzOLIZ49mOA4K3W+ka8ZPAtBC3\n956jlreUmWNrvzAZQ9u2LJkBrF8hRccbtDiC+uH9pjK7fAQ9ZFML1bGOvE4q\nWHJkKBP5z9sMB1Lxvcu1h3uhm+SG/xFFIJmzrc0pmcSzPwi7lgH8Y9MsWlFF\nFd1aJWhM/1TXTlJC6/SqIb30gnehOJxHpPvXe1qobmKTf9R+x6iib4NtOYX/\nOjx/iA1pjvQ0/qYp+GPCt27R3+uH5sJa5+OZ1uGyvY4pqRahOQGiS/WElRGc\n6TRvZDUdXo3wp1xPTHJ6IO3DflGBH+icMiXAhUYw+NrLeNwHauPpqSu9lf+s\ny45TZ+w3mgTzbuxk6OuZpPUhbR1u+wvWJ+7jYTAWDOcJd9eCV+GuYZrvqKUr\nCGXD/COFv7qXp00zxWcl53vaL8K8JT6BoP90TR6MBDTNIyUciIZ4EMGjkUMt\nEqDwNnNqS/TPxun+wyPvHdlaw8Oy+eHluAyxBuqC++z8Rk24bcWg+PJmkHLP\nxvbZ3o9IFFL+EW+nfW1u2KfBM7dUtdXwCAD41v75HMyzbBGD1JRZv4pg4mr1\nUNO2\r\n=2kjz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoCXC3PhuFp2/AeAHvVGVz7bUAvnxfWZMYjsTKPyFdjwIgZs0lAsQa0FpiDUMEW8jyiGR/hTdMcbt59PhLoqRK0Ds="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595968353423_1595968362401_0.2826889476101424"},"_hasShrinkwrap":false},"1.2.0-next.1595969325901":{"name":"playwright","version":"1.2.0-next.1595969325901","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595969325901","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ujL6uQFVFhI5A77k02eMOEfasWJhnpBq8j8vB95TGnDsBD/mXr2SO8v1MOeIJeGKdNee8K0TSwXVJHsacjeZgQ==","shasum":"610d57beb7a35e6f3595846519b7ae31b1a23d58","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595969325901.tgz","fileCount":153,"unpackedSize":2151858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfII82CRA9TVsSAnZWagAAI5MP/R1+xKIE1unYaB83rDPS\nWEYHCFywJoWHQPZ0Mbpn7ucOsc8QhQ/4tTwzddKyP8DANio0zK/d2Y83cCwU\nX3ITNVoy57hUTYV0kFF/lFQnxG57ybA8Dq9ypZydan+XvtsAEa8D7vi5vuyS\neBbUaLsFa20CvyCfFaF9+H3xoodP8nkdb+KpyQu2yKIO/Qrlu1l6coGQj9za\nlltuxtziMjTn4DkTwk4OnB7xOnWlBnGYBNINlX9pd+1WC48WEuQl6G16AT73\nyx8Y8ekcr8k4Em9ljYCKaD7t7ZIE1UZ6H7PQ91EL2wDbqWvVTDKcTQL5aNaJ\n24b99QePBqIgP8Efmu3YrLkcgL+oSCN15amycgVAJ4QIbwq4JUz29nB/BOg6\n469iMnRk6A0syzXxOlAw9zst7MX2Pc0vEZNYBAXB5I0DgjESU57S4atjoimw\nT/YTA2EhYpciesV367u/7yE1u9p6gTRNekFdcoPNHW5ErwF6BAl282vjP1IZ\n8TS2cwkOIsLV9aqckaHmAgsbMs3QCjXtV3T9SbTgkKufZj7U0dbC8x8CplvT\nMZ9gKqiQjne2cIM0a3XWmTIIgalomiJYMiUmtUhg1lIqUNX0DtrqS2ACa9+e\n3MeKgeKCtYTudHafwX5r2cg6LXOH95QCh9fzavpmSXssVYw7HphfpKO/koYo\nQIPv\r\n=+S/6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC7vLthK/ntNlfmOosMzHFYzWDWtNGls9n3eUg3UjWc5AiBGmsbsj8Bymi3jEloifTHTiRMmd09m3sVWY3WBOjzM7Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595969325901_1595969334480_0.5568863792008598"},"_hasShrinkwrap":false},"1.2.0-next.1595975979773":{"name":"playwright","version":"1.2.0-next.1595975979773","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595975979773","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6yg+4L2Ew0tb5Zhz1jv2cAs4xIC4lICWo+2ZzDrc8QwcxtQcQgHX5bRJqxk0YaHG21CoydQimUP8vhiOdnPJQQ==","shasum":"58784c1f70117b56b2654251ae492c0d59d202a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595975979773.tgz","fileCount":154,"unpackedSize":2152684,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIKk0CRA9TVsSAnZWagAAdfAP/0vrvbOqsjPdnJeJrFGf\ncYWjw/fU1kEf9fwWcB15vfz7aiawJ1AjWR4tK5kmoX+0k5++IvqIWsEbyfAO\nQVrtkHcNo2LAqRSoTgXL9qvfSJHmbS00YUJPpW8hE8P/jpOwSmHYxSkSVJWj\n/sVrj0h8k1ttVejnCKghZFDvdey5v2Bhd2Bf1JhqQNgu6AgePUlcimfd7G7l\n7pNk0Y+SOfSnuAr66HTcbFJdSaG4GnhkwIQmbdbf59/74grE7GaFU8NFzzmc\n0GpT1fmyDMDtqxByfad0g9pS1nQJRWzhhr6k1NK3e+vVjfnQdN6xdFZPqa1m\nGvaQHrqlqHZ7Kxqx9D3KLStYu/td1dkdwjS5KyzmkMA0iR2YJxxLFLNmvlgc\nCeK3u8w6Ysk226jSsmX0hKBJexqkzEoWYgAMYqJQ3oPPwWpZJclkPodRBONj\nVaVBX97TA70VuaMLHLPkTvi2cD7uBFuTLhhAwqcXzIut3r/R71i8q1c2rogw\nSrzT2BceDhhw7ESXz0PXDVKLr+wBYcZrHOCRTEJ+rkFHDfPM0zt3eEtrXVB8\ntunJEp75nKnCp7ABkJLEyP8ZKFr0tKc54T6TEkC8OoVK6jfPrybh2KqDyCOy\nNQ5YlR/tS2DEvrdpUrlhhML8fcNhqMrIGnXfkMcVxgPykV+KDtAqc3lpWsTP\nAytj\r\n=ULD1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkI2AgkC44v/zIsjIEpuNk5NUzNix22zicmx4Y2Hfp5AiEAk8Czaug7if70GOsqrGdILob6fITXQp6aCk6c0H8SRdY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595975979773_1595975987977_0.38226007120251615"},"_hasShrinkwrap":false},"1.2.0-next.1595976852789":{"name":"playwright","version":"1.2.0-next.1595976852789","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595976852789","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-YXDSqqLZ6flGd9gRrNCftWGhdbaX4W+BAl6vOPTMRaC/iYyfD1yTzp3u7GHvWYWfgARKQ0G7lWmdSYXQDMi0+g==","shasum":"388e1ed0d3ac4c23e094bcf547719fb25fc0600c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595976852789.tgz","fileCount":154,"unpackedSize":2153376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIKygCRA9TVsSAnZWagAACb8P/2b7/nH2s+6mA3N/6Vwh\nP7XNmvjOrawgIXS+KwE34e18d/ilzzT67ZVVz7Yurz9gLWVHms/9Lzj+BO5e\nyDFgulHihqwlrUBcCI48trrBqFD5DzJCyk1bzk/FOC7KJHUs99BWZb6mYG2m\nJzTBJyUo5EFlkPPNV4dqgJWxMQ1nZGBC10fXATOFr1LRdniRyejsZXUcphAm\nQshTZHjPP/SzygmhbS7JRXpRnmBcMcJRyGzDZ0jKBCmNxkIG3epgaD0zbjiT\nyVE1P3gpsYtyZfjcvuHRNxFoXIkU/6SkypfNPry6pqBeBjujezl6THjC0Ahn\n9G99uIbhBHlSjEjiAtJosfoiKzNInb3dMKWaHApakF87HrAymd+nltniOvyF\nS0mSel6mld/OBzB2ZN3UClTWXPfMg/f88if/LJJc8vT2wyIn/fkSOWNOveCW\nsMqD1R9AFsQdyNvtFCIZQiWtBxQV8woGgvoZUBtEx3wJhF/nFy4LVjJrPJiF\nxhuQuq9H4yJv+eRkp1PGwPiu6Vlke4N6QcexTO12MylIexLUkLnIVSVuUJyP\nhMNZBG+nTL1aGtZ4RbAzmPC2aQoyUcmrmNuCEfE5y+4kY1xdmu3l9nDK8swh\necM099cYWViIDxVWZwltYdk9MEHCKVFfNGMy2u2xemF9v1Av+HESbuHP2jPs\n5/Tl\r\n=0ytc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8Sa+rnNDPF+54ETu9nrOAvyAamNqPOk1Yo5tXbvzHPgIgEfueWSB3XBGyMjdLRzCiNU7TO4I20o5sU1qVjhT/A7M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595976852789_1595976864072_0.9730777293985649"},"_hasShrinkwrap":false},"1.2.0-next.1595987352934":{"name":"playwright","version":"1.2.0-next.1595987352934","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4211.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4211.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1595987352934","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-XmAi+kiglWd5DKRPpmYmA5sBLr6hO4G36skqW7EsOsP0dQoE9iIiq4+fn+Z7PsxDWT8peSzWwO7sROEZEZSKGQ==","shasum":"a46f70753e0028bb05bf8e975c1c527dfab74f88","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1595987352934.tgz","fileCount":154,"unpackedSize":2153376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfINWhCRA9TVsSAnZWagAASrUP/1bB9fVpxocr5vN+ziVI\noIa7yOZV4lg0zxhN6ixlGn4npoQKqZY0S827/TxHfzqEQRn9IMx9OUYqYJGD\ndkoE6wdZ7KqcpnOXk4aJskWhLhmFMzpOwubsjC06wC61RgL252iz2aTfc0wa\nIUvjHbLVJuTj/zPI7h1JbL5CfuTrMUWQD1+Rsk2UFfQxf3mcKSU0f9M0i6IS\nDTKx0Lxy66p6T2SRogjckui+K8huHmApeKifhxgwlXnrnFNcZtQaQarww/Vh\nsFeUGZ6dw4Rm9HHWakgfvau1Xsz6sxb3wamMYyBhRriO5rnaDY+sFkWvvSUu\nvkZ2RGs+VmP9EblbG/LmX/JiL3u+f1OK5EBp79fR8tAESvGCy5YMufvZtrvi\njxGq7+penFxWERMVVOq6vCtjd0t70AkY2AHM7eiU6uH08LBpM7pUNodZMJ3/\nbWXMpyC3VIsVAc2vBpNScRdYCMfDzOI3Rq5l62RMZcVfZdx9G9jkT9TUyhjF\nHDEyXo6iegUKNErK0lgx/k+oRNE3qw/7eNXm+8plI+qre6Bcl/OBgnqwtQeS\ndnX8B9ArQ9zmA7ua5Z9RpsrW28iBFQsrH+efKywFTJiN44zfZavG/+NIql4p\ne9ch7FAa57GhbxbalSaRrk7yyf29boafXPpySRfuQnonZ2vY0tIJfH5+TAkG\nxBy7\r\n=TVgM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDxWhfW5mIAnWvUMZDNPxs287Pt0dli7KTREUO92kdvwIhALs8GY/nR5qqjOVgdFa4DXiUiXEMkP+OY1rV841pmn1j"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1595987352934_1595987360671_0.0872901956119625"},"_hasShrinkwrap":false},"1.2.0-next.1596042034353":{"name":"playwright","version":"1.2.0-next.1596042034353","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596042034353","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nheuaHnoDbfNFitV2Nq/aDGXzGx2XCPg00L4nGBCnAoeBRxC6YB6I5s+XjId7+hkYBnKdDGw78HP5u3CI3NspQ==","shasum":"3e760511355d9e89d424515a5926f155adcd615d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596042034353.tgz","fileCount":154,"unpackedSize":2154406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIas7CRA9TVsSAnZWagAAQwAP/0QYVx4EpZ8IqB2yZocP\nzCgxZEB/Y9wCkIlpNSZA3aDL3b+iezbI9zxBskbdf0/68+/4PyGCBCRH0mMS\nEm9oCfyaAX+AM3h2U8pjyq1bC3lPBjWU40NuH8Xz6fCqH7onaD0ekQwFt1x1\nseGp08U3GZNcnM71/n9fICGCkBdAgWt5yGo2TFOnTtwAM1R9jZ8DxsNv0LLr\nlfrWoTGq0Qc2YTXaP48E15FHyxRJvP0vDrpUetOznp8zdtM0a1J5VVNZcZcS\ntuqKldKe8Kpqi7t4mTKofBdOTZiTqsFCP8+D093uJYmBfzw46pf7nS5srpC3\nbc+3X0dmc5IxGXOQ61P/C6yBlgVKncJgRqYXZHvteGoZEJ+PGjML3BEiraXG\ny6oQdeUNFVo4UUyrLfaWbiRBrP3LSfrSFlrMh5pH242P+rMEkeBTGmbsJ7+U\ncWp39A+0NC3ktgV2LowmyrSXubihZNseQBzIhNVpjjEQl7/jU1kquyzi0bIQ\nCE14/HpjhxUgcaYciAVBuEdtEI2eOgxeZzhwas2lr3flnCxhaskWX9jbVpzw\nR4w4BOTy3esWb5Tm2iLXBCpLJj6JnUlbB7SRpGAdnxSOlsMuUiJbQhiyX492\nZ1No5Tw9vMoUWS1tfUOsF2MAu+fJ1PvhmAipMkLXJ5bYSX2fiuxyDGgyTdbD\nEkHV\r\n=jSgq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDNYPor0LVl/vJTEreLMY1bIrqKo/8EJee6KiIEElxKjAiA3rx/n51BL9qWxvLZEisIJSty7+TbLAKeCueJxIUwWMA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596042034353_1596042042749_0.7944592496604459"},"_hasShrinkwrap":false},"1.2.0-next.1596044389827":{"name":"playwright","version":"1.2.0-next.1596044389827","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596044389827","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2PWW5WpMXuHVyFj3cJ6tbHsjfH7dDcDOQVJ93QzjRcvW+412869quQu0KxTHQs8wqJ0fegde1cU/Sg8cDExM/w==","shasum":"73d398eaa8c8164504daed885c26c87f9930f7a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596044389827.tgz","fileCount":154,"unpackedSize":2154452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIbRuCRA9TVsSAnZWagAAWP0P/j9Hdv7Bu0UX0TMLfbuu\n+jxOSsRqZrhgD1oad3aM2DBh7PEoaw7DziWGoz5+tMEG2OWR37GJ9oErzilb\nla1ihf/HrBWurHnh1IopOUn/uTJ0bTT8Wt80uxnCOMEvgEJ/xdh/9dTi+mqi\nBbHtFTc8ae3y3LeB/zv2MX2XcipyN5DnE01ayBkv7Ij3etxW4lP3DRC304XI\n88kpAdXQhI6qtnmBZaoa5mY6BeOj0q/OWfX9n0a8xx6mUciklQiwMQxD35Jy\nNdNmgYqD5WC/jjTSSHplMpFeBhJ/w2kBzCpBq5kG6TySu2bjzihQb8uzp3yr\nMZmztkTdHzBvQalyb+hNqNp9Tw1wDpIe12H6ed0tgWD4zL4OjEecxVwgJo8C\nbAJVSFtxeyXKMBwmH0q+/gWRXddEphgqOAzZ7mzJcYefMGawHybNLUzQLckt\nRRrKKLRwphWnHMO+RMYMQhBG6JMNsiCC2y6+F/GBSnw0t0eAIfzVf2sSUs/i\n5aGhbL8CvIsHkk2B8FsjPCZZv0mE9ega7WEXb2YkfXuy6/QQ3aCOmhzGPo6D\nNv+0N80wut8ZfW6idryLUQERiMnp2ds5pYDOr59Og4zx5QM/iqH/mdom6ZOL\nM/nfVA2qNjFRo348JN4w+baKLmhskK/5bwTa4OtkjX9wmjPblasMRiUj90q+\nnjgd\r\n=12Yv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbYy0AkvrtFjQ2fk1k5RTVnDagPToHONXXYz68W5/nGgIhAJ9Z8S8SWjWQuqtbiCW3C7+ZiZRX0E9Y1A8YlBNEIWhb"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596044389827_1596044398346_0.2213017066899865"},"_hasShrinkwrap":false},"1.2.0-next.1596044576149":{"name":"playwright","version":"1.2.0-next.1596044576149","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596044576149","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-T8CV7NlJwoeFJMT55s/zoOa7+VgK3dlBVjIfOhxl1feqeNM5/YdpOYhMOKgAUoQm4AqDNKGLH+jGiIHCdv6nsQ==","shasum":"22af5865b44e7641d280ddb2523643084532e92f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596044576149.tgz","fileCount":154,"unpackedSize":2154613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIbUoCRA9TVsSAnZWagAA0nUP/1eO/tjjRZPbTYenvIGv\n0UpqNmYMk7R3fs66OtjHewv/EMHk/SioPmDsRD3TbLQVbbjgcxW6xfN6DnKp\nou+B9Ynk8iHCEYTSb1Ts5X/4RH21zRWKz/nQ8bfj9l4YWB8KumjFCtFz9QEe\nfhDXQbXXd0/9XiaqPyAgHp5ply2yzVwWC+YSOESot06TJ3RN+tEcKWBKdZu/\nZLMw4fqOWlenC7hCTZL6doal3l3Tcx0RYsXCWHTpiyGyquqhj1quMLJ3rEDK\nQdWqgnee40lbDGJHouWYtKUWNGZpHXj2qGvhr3DZvOEcm/AWpx18oOnJ9uJV\nn5wvBRPr+6rXC2z4xPJtRzOh4s8RE+lFaXq1ja0fcRAUpXJn+uffJgJ2RDcE\nm3Fcwe3EAd+WWm11SbXo0t8BgqCX/D6vWNh/3bLTHfhuaxvXkFhBO2GT5xHX\nU4gJ8I8TixvH/6gzKvxclsAhzbaVYCMA08yDJk+haIa7KYF6OpXpOKd9s8SJ\npH24+gJfcrAiogFhLRr8haV2pniBQOM3lOuy0N3vgXlbJfclJEnWntedcqub\nVNP8xNWfB+NscPrewKYgO4KBbOruVltLZGS7EXNqxl4NrtGMmlEQlHVq5kBc\nAJLlYh15XDF2suqgGdcItfiIlMi4Xi+nYncj0x6FsH+NEVPieE4bXfA1pS7F\n9i5p\r\n=7C9q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiwElaI98/PFHM/pbTauYzeB+t7On48qzj4mhtZaHrhQIhAIMNltWN2+fmrgociVVdiXmC1gwuNT3rYN7hGXDV4iiU"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596044576149_1596044584129_0.5945055786667999"},"_hasShrinkwrap":false},"1.2.0-next.1596047914765":{"name":"playwright","version":"1.2.0-next.1596047914765","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596047914765","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-D13q4CzaGg+YHojUIXh59RgLz8a+GF6wYyIW0Dp3ptg/gx9NkKGafznWzJAUKDdVbCH+Y1tphKOgrJaJTV07XQ==","shasum":"30eea85e74268db5a626e807c6e3193bc78771f1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596047914765.tgz","fileCount":154,"unpackedSize":2154613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIcIzCRA9TVsSAnZWagAAn2oP/iLpZNyjHs4IIZjHW5H8\nkNH6wIt4lZe2GmDsfk5PNEAogLy4TLaCEhTsiUdXzOZklD/JqAvu30JHVEix\n0SqQ/EDNXJmyeVsLxD9VJRa94viHszrKIPiIMiFRelRsa49XP9BvxWxg4N94\n16TvpblnHmuTIGC/B1auG06wFbJJ/NMZEE+oHjebeWEfMcJSdCerOG822Yr3\nPtsPFVDfXbmNnmUcJAIAZNHVoW/c/zLNGNllt3HDvDpKSCqlfT6kt6PNI85F\nVfyH+siVKqUYkjkNstN1mMpY0dC2hUrQfgQpDqDDuo3fMe8m8SwVsWWT4y0+\nBL5QR/zd/41Ayrkdl80BvgyiEAOunt+j1JNm+OBXsy4ZVMnI26oKLJsRm6Du\nG69Alm9xG9yAoTkw00pFdDFfneIFcip3sdmsdsGx1Lr0o95s/0NaSl+fcLZt\nGVWMxvRIm3ty2Pzt+vqaqKeqgelbeGcn2A9xuuLQRcFmT9eSbqF8AfOKX8+q\nikSC/RJCOXFcYrSoAJoM1w/xScKu6mGdq3fr5waeS20XWpBDhg2zKq7GVReA\nAYLT4u+4HIrgmp+I6p/nKNawd4VCfZhmYTCBXACHg4Dui/11LiJrje1N6RYY\nHRu33NAQfUvivGaKgg6MEgloBQl2mpamzg3x49vghLwoih7AU0rFSbYoMdhN\nb4X+\r\n=mNk9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxLEeN8ttqQb0sdUTyjMK1oZErDlK0SJxcil6W3QIgrAiAEhMJC4hFrFpfOskZ5f5O0uWmSJMLFp40hyHUDJYnQZA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596047914765_1596047922837_0.547825262566414"},"_hasShrinkwrap":false},"1.2.0-next.1596048431372":{"name":"playwright","version":"1.2.0-next.1596048431372","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596048431372","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-3sUmkbSS8HoVMnm6nHIa9PvtUB87YTrsWMI16QWgzXB7R6DwTbszkZ0HKN3BCjstlauVLfGDjIn2VNS1nMId4w==","shasum":"4e6239efcafee9d9cece7cb965a18d6022783c6f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596048431372.tgz","fileCount":154,"unpackedSize":2154729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIcQ4CRA9TVsSAnZWagAAS2EQAI7OGDu894dseP3/9iyD\npXgrjqAFET+4q+1KNOb74MlrnfXPclQALTKoLWXxXTyORQLhnmko32seZqqY\nytw0qM+MmA0NUL4ynriB9CneaJOIz6lNmsJDYHTkNBRUf8RIkuEb33be8ao3\nuNDIG+HyA+MxuttlcKs/mAMMW0zBocho2jE34b1FvEe8xRLXp5VW9yaZvKjZ\nfd7XkQlsHF4S+F6K4znLRbBnz1iKcm4F8ca4ERd7Z3TnmnsBntMqeRZISuo6\nV5BKprcvD9rMy7GQpOHyL9H0qXIhLO8is4FFd62K3PPD9wyD0WcBasj9y8XF\nYYtKznsnqLYp6BB7QMwlDv74s3ObK11MWp96eqYj4Wyxd5IoJvJo0TyJZp47\nlOospwXiDWKGeVL7WjxJthRrsforogoLhE5VVWTSx8BBP0pN9mwUUV4djuJ1\nhNLYjgifQsgB6ckLGecYMsDtdI4lf4rEKkUTumPfwFmBvLJi3Wq2kKYj8meR\nDQvQbZ9Zhuhhc0zkNgDhcHva0fbVRuxT/BR9wOO/XZPyEqQV1gg84QCSE9jO\nkJBYf4pn2Ic2tD33jKuLKUbdiLQUtQm/CCr2/YCTjGv89OtYgPx6N/BNDgJ2\nb9Mx3welRXrSzFHBSdH8VLFF0lfavzds3wMNIIe2sG19V8oertXyrJgamGC8\nqcMn\r\n=eLG9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZlpE5gOo8UICuK8PBs/igZVpuQU4yICfi82SWWm7ItgIhAPi5M4WQlOBcDHg1FN9EC3aPq/qZKEj0c2Zd9hXo/HCM"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596048431372_1596048440123_0.22760211546159814"},"_hasShrinkwrap":false},"1.2.0-next.1596055239997":{"name":"playwright","version":"1.2.0-next.1596055239997","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596055239997","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0qOkvfC7qavwx11qgiQWXvKRAN0ZXsu4Rk7hO1+NzNifTt2sOlPt5ePqDFy6r33MVYp5jsLV2A/T9PE4QDdddA==","shasum":"7b1029bd4a5c7d9aabeceebab3bce7f36fdc14bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596055239997.tgz","fileCount":154,"unpackedSize":2154729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfId7QCRA9TVsSAnZWagAAWCUP/iMhNUeol+xw7wyJ1SIN\nmosnlmHReuR+3aYCVRwqdbcSzdbICUAZsA6yRcpqbv3VAcLPmB1psZMr0pR1\nHu6Ud0r9lp43oLw564c80ozX+d4ikHOtNHAVR2ocMlMiDEgs6VsI1X42L82x\n2wm6UjSlevCCWa+u6vEh7PcXMmG5+6aXAhUZOOr1GGgWucqqqLKrMf03r+D0\nETBkVK94tyEVT8i7HVtiUC330V4itoQOCxoUV24mheWoVetifMzm+QgIUxar\nBWxvL72cXR90A3P4yyxOnDj2S4RkwY2srnS+jN8MDeEkf15AQuur47EMX5Hc\nA6A7AusAJmCE5agpTZWSaGEyYWCv5rfZu4q/Mrc4ggda9YJ24miwAzug/SCa\n88A2/QMI6DkXXLnFh2C6RLi6uK6JcUB3Uoe9CwGXTTCKVtXBDCaTwIVR9YaO\nUrBdIuEtpXIHJQIHMS9WawM57wnAXROCGLjAyhCuTvy/mILAy0Km1Flc8S7t\naHJTk3nvi2OZpdK1jpHNA1GDubUx3ZL4QlBHtrIJUKA9jNATSxV0ESknPu0+\nbbxDciT2VEcbMOfQpn8GS7cotE+p1pwrPu6xGGXZsKZVCMCBlpRK/OzejV83\nl2PMfmcTFro/As7eolXfpDrYcRaFJdmV0wwZOPKEoqSKPziTAj6HRKKJ7FBR\nnDiy\r\n=mkAl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBX9nR66zD/1VTI971K6IR00k1QgbsKmS/UkalB/gRjjAiAD1X30VxI9CqIVa38Ra+guHSomWMLu1wrSJECPYTufuA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596055239997_1596055248014_0.9110123168226194"},"_hasShrinkwrap":false},"1.2.0-next.1596059059055":{"name":"playwright","version":"1.2.0-next.1596059059055","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596059059055","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5kUl82Btoe4m/JW/XuSNPiG6ruoQUcdtFDrJRF2wvqz5haieds9QFt8jiHAptLQo9o5Ch4jXUqB59maXZFXLMw==","shasum":"209fc56f12f40b2425237ae07011b2e028ac74f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596059059055.tgz","fileCount":154,"unpackedSize":2154729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIe28CRA9TVsSAnZWagAAWmAP/i04Sgh89cuDZOSyeauf\no8ex0EkIZ9MH2rjN42cXKByF3LXQgfez6fzXnNjWyh7koMWVTT753NuAsXa4\ntkkMixFMrqLX/8WNE6lm7htRLYuRpcC8d+4gT1NKcbPJKVtqF98fdslW0P5B\nPFseAWS6u1E0Nica0VJosSHzF8LvFj9F+ezhCVQvydVGbC2YY9rSXedIzwUG\nc5XxjRhpbC8v9ZsW3/eyU5Kaod1afPpX2DVh4jYktOZHiQ3SH5YF+oToSpzX\n/nWoqSaMzGmZDMREqriY0B/UwxH5Xrgi1gZusDlHGAgMPT7wb+FV6ptLxfFp\nCX+YyXZgR7SSZCa74MN2MJPgb4ZRZWaDhD67xY3MH8iPehTUY9OVF/Kva8w1\nh6Yb+Iv+1Oymxig4OKdGbn+edZAkFMz7SgSp0ISFBJMNq8IRuL+byt2cOfe0\nwszP8ISym230ZMxiJiBGCU9YMMXgz0fNE2Kf5mLolXwY9RjtlwOXjYIJKF8l\n6nIEPZrqThZjNa2xrRcaEPkNW5mndt1BuJm06sGaHK2kF/LzOg63rQ2dK6/X\nOny4M0TKY7NP+haPxQJGoWI2AADlRF1Gv4y4E4VCwxdbDYmfzUs3KLxwxgx3\nbt6B71AcwtZbO8bNXTnz2GK4QAabb03rrs4PT8kElH5x9wB/OMTSaOMEzZjB\nbUwe\r\n=WvKQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFYZVXSDyDGWiLf/GOoNuSmS6wghowUAIeKsmwPxUaAtAiAe58LaUckEdPdvOPxyGfuDTKh+oPNIRw+UmZiCdy6KMQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596059059055_1596059067441_0.500514751056159"},"_hasShrinkwrap":false},"1.2.0-next.1596060196726":{"name":"playwright","version":"1.2.0-next.1596060196726","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596060196726","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-nzYG8k7AkALz9dBL1sMct5DgaeUFobV61e7RKU23f1Z3pN7R3gNk3UqmmA8IKPwib9afGxoo/bO5KGilROFaFg==","shasum":"9d4efd73ebba6604c0d0d733fbce19580024b82c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596060196726.tgz","fileCount":154,"unpackedSize":2154729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIfIvCRA9TVsSAnZWagAAdH4QAIjJ9mJPrZ3Zkyp6BMG0\nQu+9yiH3y8mBtlAVaB0LtUiHo2UCVqoNe0eCVSWRYfKD9sFMr6eTwqcawDVx\ndDEnUoQ2H2UwZOYPqeA/rvQz1FQiNyRjHjL2jgtEgHyZABTV6zbbAtvqw2Ku\niLIDrV8aCo5JfdNXhgsBsr74tSvHMzdKHpL5G+ks3IkbjmRtJrz+WL14wvDa\n1ONvMTdYaXrXr9kJQrsW5173s0jtnaMRPbuDftg4HDEt7pnvfqontZ+8g/bA\nn/9yfDM5UH6qfPMNKBuh/xEMqabbYrcvEB4KAKAvt1BgWVQv1oVP8+Is8XgB\nkNrAPeRPhuSgpHIiVGTUyevmDjvzrKHCx8+IM9jO+zgOer7XGhcl8AOXRs1N\nm+MHiVxlT0OYQLcfXwVVpB0HkiYc0oqEPWMvuIvrheetXbTAKNKmMrZIHYMi\naFCkQ0gLLFySBMVYf3bLxslnBXC4Xp2tt7TsYv6Oj8GwBY9N4UxBlZnEHQmH\nfwdafW5MaMDbXHLFp7DvzhL+kBiNTGqp2REllrDrYxIOTRQunknCSAODsKHt\nwXp39cx6Hl5+MOfwXMos8ju63bbdvpn0YHeZ7MWATSNbroFrYynqYAv60zvS\na28x/K5MhgEu+W9mR46zeQEBS+C4udR977n0dchvGpdebIFLx4T//XM/z/R0\nABMO\r\n=P/Ph\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnyJ+PGynNyvzL5/oydTU2paH7rVbvc3Uieq9XF5ZJNAiAPPnqBolg/YRm9xTy2nfgPWuqiO8KKR3MceyKpXOGL5A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596060196726_1596060206991_0.6762514206806427"},"_hasShrinkwrap":false},"1.2.0-next.1596065880259":{"name":"playwright","version":"1.2.0-next.1596065880259","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596065880259","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lkkoWXJtXPt/kYXevk0wHovG5Mf92Zx1qIYu49vhD+yCVg1xbeSutXBU7nEUU3Qw9jwcvRSPZnSF/t9mYZpRqg==","shasum":"dca1db8e9acb31e7205b0a1edd69b860934e393a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596065880259.tgz","fileCount":154,"unpackedSize":2155122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIghkCRA9TVsSAnZWagAAbPgP/2lJF/eVmMTqVOlZj9SE\n5EFTkTgWNobJtr6sojnjvCHKW2MMspXgofXjl2r3VtftVi2NMicUqNgbAqsq\nm37xD6rQl0soMd8PCXEy1lSjTsw9RU0WfIKpsRTnykWF74jOrP9+PCYOA5ZZ\nlCRvyzqbHNbOf2dyvMmSAfTxHEHYr9ARJE7/Kg9JsOUywYiap7DnthtZprCs\nsTvq5KjhGEkR4vWy+N2KXRd1Pxd/RD2t8y92+2IO0jlOJJEHhNwCynW9HhHX\ndOegrF8cbqoTjPpsjybPwUrk1F5x/bZecEco5gBl+8j+6Jp6f6D4FKIRVhOS\neiWewnckrj0X2i88a2NpfxAAkXOM86nIOfd04TEx1Rnvfg2zkbCZDo7DRrKN\nWb+7BrYfgWhj99HE78w3wgpFfbVB2cLA9rNmUlwJqAm+nWZHImPn8ZhZ56J4\nEjnlyfUZOq5WyWoOwyy5o0zzz8rkgL1mGweUC7h3EII5kz6psHNX6MWpClX0\nzHHa3FfuN7NiADUH2lgr8q0DkjzJCe/AiADiE+b3224hX1AeNMW8vGKN2Nws\nrLMNnCI4TIlAV5xCsQNo+ON5wvawaxhBQy7yEGa7KE15SFlu0eFcI0ymBH3b\ndna7wj8pdg6qtHVsn3b942A+dRMKaVxCW2F9vhIl+dItK1oJOv4GPYmGTZVG\nrFOl\r\n=spnW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8b3g9WB0O5ahPrGLulf93jQVXJxIPq18td0bVgzI71AiEAlGJVK4PmmzymAgJpgI1uRn6/2Wz5E1JiUQdVfG4hyiI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596065880259_1596065889036_0.033838541824247725"},"_hasShrinkwrap":false},"1.2.0-next.1596066661269":{"name":"playwright","version":"1.2.0-next.1596066661269","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596066661269","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-0Zf4yM1PgGx2eD9bHI0VY2WkxZBbhpcOl/J1JEWzthqHsJ73V/TO3IIAB6PIFW/cZMS42QkK5Gh4RssrxJ79ew==","shasum":"f26d967bb53bb769080cbb7cc887c375cf09be4c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596066661269.tgz","fileCount":154,"unpackedSize":2155122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIgtvCRA9TVsSAnZWagAAV08P/Rf+S/Hw+HUJM3vWXSUw\n4sgrTFPhmRB6iJAEiYS35QNvzysSJgA3zNSzrKxwdOqVdd7PtyRArzodPgN0\nulS972pTxRHxadLkXqz3MvUHKqe1iVH8m6l6fbqhRPuwZf2y7ImJa6kzJAf4\nUnoqB8k5SYrIUIe+sJZ5P1dUy09e+LMlzuMjfh7WZD+db91BvUWYOz0PLjiv\nkRckHJyhyHErRHGLShfey2SU5oMeZvlkAAynbDi5wgFb7sKVar3yB1Y9P52V\n8HEQehV6+1S9r1dfGeLiDKxp9zHzd634Q51QFeKQtHl3sR+1SabPzD+m0Zqv\nY+BvdmC4UqqDv3NL6iaLUdsZDItWnjh+ItkukBVVgqVZoEP1q3ksViCCQq3F\nnekzshwHbMzeLlR4YYmcRebBAf9PCUastcQvvd1X2on7tfR51fIRBbwA3Ty7\nHvao9h1jJDy9oqHAXfUb/DTF0rmIYXNjSTSwKlnBPZN5EonKY9voJ9m4Sel9\nF4Ckro+SgQUHxvxqw+MS72heQqLAZEP8qONQdcgOXoi2D4w+kDzsw2Y1CWPq\nbDdJwKELceSBdGDDCJZJi8LGkvxm8vnSqgBAzIPr3ec01EF2HyEM+KN8GNVs\nMrMbHzdj186x0+Zj85kxxZM+Givmm9k6Et3XExrpEYmrMv7XYGbRPE/uGOP2\nOBU9\r\n=jWV2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDezpZJ3CprJipixeJS6gYj6ZHrq6khWknhczzte1sNNQIhAIcwxRbRFPBUcDKi/6fJ8kbEyulVh1vKZzyGTHlWlm40"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596066661269_1596066670516_0.8309656820979114"},"_hasShrinkwrap":false},"1.2.0-next.1596068941284":{"name":"playwright","version":"1.2.0-next.1596068941284","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596068941284","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-B0MivnnZZ6KWJjzpnNGOGxaYRm2BzJL5j32VN/lyGHUUPn4x4A8kQXcAX9Z5HD1WfhCZF20Yjb5lck2O1RGgwA==","shasum":"43a84e1764222530bc05d1f360407a4a2ff7df32","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596068941284.tgz","fileCount":156,"unpackedSize":2157740,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIhRVCRA9TVsSAnZWagAALHQP/R9M7hjBiEmE49/ojGyf\nbh2KfDVoKRpCKv8heOpRMKoTAaI/EEyYaaNDmGWlXTdYWixyJNslrBfCifts\nN8bsDXjyc+xheevRMLcVLOmfIMphHtiaWGD461RjrCR5E30TpIaMOKdiA+nM\nhVUnpwy/ZiGWF/eyeWqIl55r/3rZ787BZNgwDvLen87twFLAtrgZcTlId314\nFm+q5liqijgCAHBlSdAJhdJA+9JYpEGgsYoMTw7iusFOHjiksMphLuWLptqk\nzCEGBZ6RE/WZb7aZYrBpKyEe9Ff4hdXJ7JNJJuSWgmDO0ODaXjRu7Jx0fkQP\ntysxLtXSeum2qiL9ZIugOJ7jxWG0JcNOOOmc2II4tTTmeZuMYidrDY+4gDLn\nL/YF++xDUGGq6dm0PlNeZ+/AujTL+A6NURMf8XqOiwmWYWQEQ7SwfWdaofGY\nECB2i+KcQoMQQzz3Paep8sd9ga/ZMH00OsFVV1vrsqZSDsGyY2ynSc5Pzvkg\n7njERKc+qAhc0fV+5xvMAFRaRjvlGZVOKPbT3sjlda5dXbANylDmI1sQXnQw\nwNytJekeQ8XGpONzSvDJkwhVCKJCLiipxWGisibu4aENpraYH1mVGCiw1I9i\nCVtIrmoamCiTmZpYR+D8oG5y6xZLedL/IlTreMmp3vjflqjVkUj+R0mKTdoH\nNb2w\r\n=a3oy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDkNl38hGv60rQd/C2g5XnnAc4QcsM0rtwxsraKTeqU9AiEA7wBDp2FhhSG+GQGNmYoKFygWipCK+wMTW5KP69FwgLY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596068941284_1596068948344_0.943259656026765"},"_hasShrinkwrap":false},"1.2.0-next.1596080705875":{"name":"playwright","version":"1.2.0-next.1596080705875","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596080705875","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-DAe1Y5plVovVHapP67+MUTTJBlFa5aKV4rVHonQvX28T7NrENKURTi4Gs1vrZ4XBgyNsHYD656K7V2gzpEbnvw==","shasum":"d1300f586a9c38be4f7e4b017ab26a14375532f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596080705875.tgz","fileCount":156,"unpackedSize":2157901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIkJLCRA9TVsSAnZWagAA9agP/0dVNYiwOGsuN4BMDmVo\nma7oDG9qzKPO0sfg51qrkdNK6NVadS10EIabwr1nrjgYkX4JoEpO64PyCvYa\nBTs4aNfGJrqJ22gyg+2qOG6aOEGbSYFWjUk084TGslY1bJyftwqVuITVHTbN\nCCxXVZEQrIs+nqTqnfyZtEZwnLOqWzJZEKeP3/ViV1n6Dn0839k7Oz21ye//\nG2fjqjerd4xHUbhzCnLtwaunmCcqjnrsM+Z4hTOrMY/dZCPvzW4K9+lYyM6C\nuCFM2jjS26l6Y2t5hC7TsQd/qqfJvMm8iJTWJx6RCAOjAdGLfgCY+9q8Mzn9\nphcWrfQcFKA7UARhew3xQzKG86tXScACtFRR2dTNpzcDr1LUGPlC/C8QnhOx\nbhYXFUV+EFUxSDwdxTbn/gPuwQaSCk3wnNT6CKEtmTt1bWZskeGJl6mZSIV5\nzzS7nILpOI6xFLVc3WyFNPPLyvugMUAn24E3UtUOS7RjtwYowkVYOOj+yjB5\nNyJYOAKcq1Gva7b4b0XmaMlBVaFHOIx1mV4G2JWZgWVVzXhDYHCmmGpMUiFq\nikUCLun2JaqleQw8X1wZbLUiqVefSEhkZZOQdz0uGiajay806JgMH85hIFhO\nKD16T3ggx0Ep38IiVRp/UgmMrPIPRboX2hQDWQy4fYjhxiq0qRZ/C99sxIO4\n4jHj\r\n=h2If\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmdgWKlslkKNHwIrwPB3I12rq/WFBpYkXVAOdNdqzvuAIhANW0ILgBTNhVNx54MdF5rQJsn4iIKEYfwT6DGuW6qolV"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596080705875_1596080714932_0.5626283051099057"},"_hasShrinkwrap":false},"1.2.0-next.1596089766698":{"name":"playwright","version":"1.2.0-next.1596089766698","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596089766698","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NZ9rQbWGpNZ7kSpkcs1tClD8U8IT2K8PQhhd0rZQz9GZZIwZ2VUA3ozQofLwQUOlrCqkTh3I0NLZiJZd6GmkSg==","shasum":"155d13872aa562fabf3e16d7b93ae03571fa913c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596089766698.tgz","fileCount":156,"unpackedSize":2157901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfImWvCRA9TVsSAnZWagAAi+cP/079q+H2XRhCEeN78+dm\nLKCjE/L2ILZzfSnKonsZ7dG+Qb1Ue0Y2bff5MzHZcTps83DOeb+ntXcYUaq0\nao8xSmbOm1zhtrwgsBYo3vNY8gZU6LYTO7HNAYJzh8iA0uZEILHywpgBpd7p\na2+4/LEOvgwVM70+C3kuKej9i/HkOmdPAcsY1JG4Ix5UXm8q2IcpFTJWv8UB\ngZcOeMnlyI/yaM+o79GCDbHI+qAf6AhabLHFBiWR6O5RgtiAhjdU+UExz042\nsxHibXDO0kZaakNzChAlhXmCK4Tg9K5fwZPh7aHWfen6EW/VmslnmO4N2Em/\n/ndL6E9XJjg9oTzMDIPud+DDsF4VwSWw3ecazSm/ArxEupw3EYFRzAlrFu8t\nflun0Qtuuf9b5VlI6BWHVjBUmof/pro8Q91nV+Lir0E94KFsyi0r6QSYiapb\np54MPTxOCu8WE+leUnNEnAFuMS+24qvUjLPVLBU6oe7Wg8wcjGrkBiXV5tcY\n4Ah/ot/n69h9H+r9ZcVGBKi0XH0IkGCrKFb4jGmgj5X6Nhjqw0xRF2IagTdd\n5RH4JczQ+7tCyL8gL8Gso3pBilhV/2bRUitU506rk9DiXqrdiuhEUKNBhc+2\nMhBo2tS299cafThfEEeZi5TDMH7TMhbJfPOPThydnWng6BJeG4Cf1s2vO4SG\nL1IF\r\n=W3vK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3QsEqAI4SMQCVZzyG9Z9y8/5BEVGprX4QZ8iS2JspCQIhAN4oTL1kK4L+WYXzbXOZquJWu//isIO9QltHAEgW2Hm6"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596089766698_1596089774501_0.35717969331183963"},"_hasShrinkwrap":false},"1.2.0-next.1596089901389":{"name":"playwright","version":"1.2.0-next.1596089901389","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596089901389","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-fUq6e9woTSxjSQJrn0zAZwQcVCNln0fMNm/Guh7XC7PXekcoeehaBwDXLytzMrGSUM7FzQh/Pj3oIJlBclx4mw==","shasum":"ddf2d5ec65fd431d5f4a8310071a80320fa3e3d2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596089901389.tgz","fileCount":156,"unpackedSize":2158461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfImY2CRA9TVsSAnZWagAAW00QAJZII9/Azya/dbYGEII0\ntw6geb7CW/5eMDl0GdDIjt4oXZEoAD3J0vzYYy/i+Qy2KuoExb1azEcvL8K7\n1iyZwXViakWsEBpOtN5foBjRNCloH21TO7sI12SO/CIYgoA7/03PB39KpgN6\nqUTdt5f8nLYWWceF00dqgbK24FBZuInF8JwfU+sNmaqG7B6iwfo7obKN4MeR\nr03upV78ijn/54aQvAb6yEuv5gKRVQza2S7TqimzmtXHBbOyIoZ7Shr98/Dv\n+AIEmAIVAeGRh4jqDqn59oJg4gVvUy4p9YVF5Ax0cNIICfIUAlc176ms6fOF\nb3xkR63aNazICwXk1t7gmsZFcx1xVUotbLqDHGrBMOgve9pn0f65eYWpEDjL\nhOgLG+AixRPw949UuKd4FnsciZ55aFkgvSYd/pr61VSohHJ7udI2shQTJKQg\nx9/Bm//nAgtsTyu5dJvgMDfPQVcq9Ngmu/5vkoD9E9FGO04Oj85spvF+845A\nEel0T2WUNz3gv+HgcdGDq8dLhM7aXFW3diGmdYBz8PtM4FF6FMm9JgbCe2e6\naQnhJ8+wAaY92e+gEISW7OpLc21Zc7sLT9E+a/gF1zUybeCDqCVr4inoU+DO\nR5od+mTmeTgtixEBu98LSJRFw6azqO+/3tV4W+RzxVtz4UgObPWNe6cL6Njv\n+jEh\r\n=KWVL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMNNkI+uiSoJIAj5GbOlXUGsNAxNUtF2BerolCuwBwmQIhALQYyyXHEXlM+5IpwlQ2fzr7VKzluLoNr77UKDzXJGyA"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596089901389_1596089909807_0.364815191643886"},"_hasShrinkwrap":false},"1.2.0-next.1596128502212":{"name":"playwright","version":"1.2.0-next.1596128502212","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596128502212","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-TCxOE+thxLQdXbla2qYa60QkpQm5pXNxQ4ZFEUbhmvFT9BUf/LmonNGYYXPeV4detbBfFshBczsH69gdEREDxA==","shasum":"70d1668df14b0f0cbabea0c23552ca2f6e466293","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596128502212.tgz","fileCount":156,"unpackedSize":2158461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIv0ACRA9TVsSAnZWagAA4J0P/2LMDe2vVc0wMZw5MBqX\nbbiaZBuLsHsX2QF6usZ3Bs5VQi8UiXi+2vVXE4Y3cSVUj/SzfQKwcrbBbTyn\n4EpEUZqHZMz1FfVLvDTzXgpus5JgrJZjNVoGkbOCmVSXb23BpfQUcE1MJxEu\nqiB813j/DgNTyC3rjvh3lSb3ZleKDh8F7Moz81GKYAhF94SNRbmPtJpfAJXm\nzK2sOpAng5mdzkTT0qmzWughRPvqqS8x5hzoF92EN6bPnDODteLHBz0/1+vG\nqm5V+jPurJpl2BQh3FqwHtAZRwOWKzCSduxHXlO+pJ3pXK6JENjwjitPV2pg\nIpWr8xl85kimf/KD1GDtbM6IQQxJgz/3KoE6bLZ2Ehu4yjufh/Qe7SvzQ+a/\nBXAX9baaUOnx9cZOkaniBZZJs9I5OulIRAjf+CLyKeU0rhH90mTBjM8jVhaS\nsHFkbSKCiRAGOViVTHWce99kmLNL4IWRZ3eTxT7taJi8uuH61TQnRSTIbhCq\nIjRMLIyjWzK5ys7DsO1MezdC8MZQ1O8FgsrEUpJMmctthn3qE16RNkD0OJAW\nPfqEGmOOmwEzKCLrQAeyuzYdQT8Oll7DBwxvXD2ufRDmsTYM74zoRPaGoBvn\ncREEEH7eWl1fPjfiThfLGXA0ejS/0/HYtDVAn3ErnT13E8bznIW50jcO6TT3\ncD50\r\n=rKmP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCI/8rFKMQpp5f0IveP1k5dgXSxEV0z3coTEE5jdE9xGgIhAJIs6Ywhphkuj4NktG/WoO9TonItvseMPtdkp2yT+fq2"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596128502212_1596128511582_0.8912805541685989"},"_hasShrinkwrap":false},"1.2.0-next.1596129864986":{"name":"playwright","version":"1.2.0-next.1596129864986","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596129864986","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2EBgtN804KWA0LotN5ijC/V3xwNcyhd3FnIv7fpxIuJKsHBgeOw27yRBRVjDEQ7q5GxcY9FbwQAD2xcUdN6ctw==","shasum":"b7ca1c14e7fd822ae5ce8f0bde7a88cbe3e60df5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596129864986.tgz","fileCount":157,"unpackedSize":2160890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIwJSCRA9TVsSAnZWagAAbiAQAIL1ish6FG0dXdFqiEU4\nDgxooMWtQSK1sF1u2OEi1HR0+0BSlo+to9nmzVrz5TBT81coQBfDLa+VLqbS\nRZIix1JJX8TbLzohtVQ6EHmH/jPPARQP6wryjfREEMqdQT3LfqfBWvgMMHpz\ngl0NoHcdOickFCtRnu+N7tIkQOzlroeJlMXC/HEyE8vu0HaQ4jplNJcXpvAu\nZ9zHTtbW4KFEjEEsZ/Jf6/DgaCSwevzOUKnE0d34dFhx5Sbz5ua2JQvzudoq\nnAAv85uvm713R/+Qq7rKMWKP3sklUaVhrybyxLcy/p2OHKCBrOc9TIRA+pfp\n9Fu7Snjgiio6ITLaC9sSBwLibdQvY9ARZSzwFBRsV1h1xvtShKhQ/vok56p2\nZT9bDyoLyeGD6grC7tftq12DBRiRNk1ULv5znl+gIU6B3fiBqSXs7bfnk/96\nhUl+tMcSwwKaTajFVa+HBOjInkCYQ6sNuNufMKwfIV4duQ97m8kyVo0I8nPg\nlyMPBkti18kQl33xzCoijS6gEWBl32YDe9P/CSHCuQQiSVTn3wJfSN1E0HbB\nRZIxUM3Bih4MPpb87WMPt1qolmR+91Q0ODsNdOoyXTwNeiqG4fWeUpHEi/5e\nBmz81kHXze64/SXc5P9T0B++zfOBvAN0v3HVXrc5FyQYdxW78zyHYxg2Avg+\nrQTy\r\n=Z7G6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwviVYMPmR6trb4qnR1QKwwio9xsaHeNaekWBuPJVyuQIhALW7bL2CyCmgLV4rWNVEIISUp4/G5S0tExWltC+70qIO"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596129864986_1596129874008_0.6139151335831949"},"_hasShrinkwrap":false},"1.2.0-next.1596131599188":{"name":"playwright","version":"1.2.0-next.1596131599188","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596131599188","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-IECGSdo4cwjt3Vl8KYghzkzaU1ATGV7O4X+mWqhIa192mKTfURoqn4ODn7Otgi+LWgOQQua9QkPbv1Z7/oESGg==","shasum":"88fa9ca04cf9fb58cb4f6872b2a7632a82f4d58b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596131599188.tgz","fileCount":157,"unpackedSize":2160890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIwkYCRA9TVsSAnZWagAAP6wP/jheuLIEaX3sxw0K1bo3\ndtf13gZ9ioVshewAlgh6qikjKxxjlerj3uKQqpJdzRX9Mnw4AbPikM3KCfL8\ndvY208McSBvJG14jO05Gl+9ecL10uUWG6HfRwdK7AAUIWCp7Pt75whsE+S+S\nbpeTbjdpmmxWLpAJlrLGG3LBPitetqV6VzpVXxKxTLAUyonoGuKdZzsc/m5L\nfNfGNwmhgCYwkyw2uSeqhUcAk43AVwwMtdSwFB0ShVOLxEJbA5hz+7n6agNg\nTcs+4S5eZlpmablfh0sE7SyXooIHW3TAkFfuLuheHFQKd+762DPnpO2fwGYd\n/Cmb+B1qLGyTSfpL4133riaOcFoMTaenNv68miSvrxBUA1CPlPfqnc9p9Jel\n3fqsr2BC6A0eUxvSOKm0ViQCcInyt0mWlLDC7ydZhCFF1kHe2TfLFBYWvd9B\n4GePQbhzjvT4rISIDHRYwTxNaY/zoLn77lwM9n7PtFbKkGpsJZ9qiEZ36dvk\nptWX7rjwiQq+tyq6y4IBzkMfsWEruQ4BSAtZ9pWcJMziDm8RMUlm3BEe8nmA\n9izzubUs6Epl9zpo02gkXHNNAZjnvjPCBbxbynowkMR+zGc27TP0iYeXpDj0\nDHQIZCCx3lFpIIlLulG89BSRHFnArcZckd6mwtHvXVoyvaT0OJUhfWu5M7LZ\n1rq1\r\n=Lo1V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICITcw6zgXyTxUygt5rGPQhCekS/4JmYIuGSUk/gaN+TAiEAj2w3m/IVXMZz1+5bVaBqPRyT9GI5vbIixWJQyoXD4pw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596131599188_1596131608211_0.5734028580277366"},"_hasShrinkwrap":false},"1.2.0-next.1596133086789":{"name":"playwright","version":"1.2.0-next.1596133086789","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596133086789","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1jkcwTzi/vActoGZ/dhUgQvI5v5hoi8T8/enQuybzhyWKdiOLt7sav4Imn3hURCCHleIKZOwaSwjBiVR0DAZpg==","shasum":"74a57298047cefd4f8cc26f62beaa525d944fa91","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596133086789.tgz","fileCount":157,"unpackedSize":2160964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIw7nCRA9TVsSAnZWagAAKcsP/2OBOpI8x+sRdYN9jLlV\nepNV0D7SUyuq++5EY07wgCNQRlBFaO1oLYRSa1KzmXYGyEDtS6EOEcHdDlDw\ny8inP/1nKIEKmbCdHdwsSB/2skQiJP6aAk11dNdPYvBBNw10P9eUCMOSzw4g\nPFavdkJFqHwxruGutd7o6CT9YClVvSFQZKCg1SIu3dn4kkOhyN5VoR25EZZu\nXnlhoSo7xjGvw3IF80lz0qTnFWamr7P9mfUtfek9Hqy7osvtkMdtKP1ZZyI9\nLcwzPewC6m9l3WgMVQgtCFYkXvMtPpILiNTq8wv+qt/Dv2bQ6+LorB3gcvwA\non3BP3JCa4Y4PPs+3fArnBbl39PxyvagsBwAo1iXLCbvv6Cz2c1pRXkAQ45A\nlkIg1toCfjy/hVB73vbWJ1MdAYfROQlT2GZ2apBRZ7BN9t8DirPZtfCMPlsd\nf9jIffHsygLrVoH95UKWrcv5aPyHLKwMERMnGYXLsgZct0Ot6dyJD9rwMJGA\nU+/epdYNUHdHs6gHpyg/s4FUxk0HdEOQwP5wRGOMSn8JzMSlVRH6vBLlOp9C\n0nlf3S8CWbeGMEK5ZOr7lyXQzqS2mQsVSLY0OjIEdM+7VLcDNyL4542AcXhu\nQbRfASRsQ57ngmbjgAVLJx3831rl6+WYLpjcwu8IJJv5of6EOEVMiNFVlx54\ng/07\r\n=WYGX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+50JS/xWPesUTkPELw1GjdauJk2PoxvZPTP7JYRo8gAIgZ+KJZVdiv1HzJPrXIhMPC0zclwcSgw/iOGB6dLrHFXs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596133086789_1596133094694_0.24295400674389733"},"_hasShrinkwrap":false},"1.2.0-next.1596133386193":{"name":"playwright","version":"1.2.0-next.1596133386193","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596133386193","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-NxUEigynSviJP7MTix0leUQThxUhSyAq/xePIm0Wx0iFTsX9sH7rYLVBLleoVxerBxaEtzaN5p90AqrdoHO7ig==","shasum":"d9e66e17a161741ed428b786eb8de7cdb74da99d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596133386193.tgz","fileCount":157,"unpackedSize":2160964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIxATCRA9TVsSAnZWagAADIQP/issOMG8ld/j+3Azn7TC\neceuhwrihlg0LtAPbnpIcuc2c/pGvP/+9VMNIGQadg8lcBgKPVP1T+geZUAf\n/q/zY69V3yBQC94a99JR9BhX7qrYVEjoDIezqx6hcDoR5qMZ04vieYOM3B+H\n/AtuKgU0LoYJo4dp7ZLRuoXQgiQV3salkKNCkOwEWUbUv2/D3ZDwY7kLFQiZ\n1jeIF0ggrnb4n2jVDGP0FoEBwj8/rzcsYN6oo8zLmLtaKNBOXFQk3EsHhDJv\n2dlLEzqy7nBNarul0VVVaMtwaIqgg86bstrSa8mqzyKz8qekmzph/MehRSV8\n5VRg/HlZgw+drQoaUfP6w5gg2dLQ8FPDwJSLqqmXidhAN8a2m0bBnNpHKLKP\nDOJpn3gWBzcXcIAQ+3r390ZD/ZsBEmlK0sUMvWltFHuO+ls46y20Dl2QEBxW\n+E217DeMbe31Z1bzRZQxR+prq/1VRSL845HEqTFv+gCm3wl7WYCeE2xaHCd+\nPFY7xT7XOmiVyyEutCNgUf/UkiFqEQKWP5IB26QpvI5nZF0hr1+Unc0oIurH\nFpuC2xZP07T/xNoAQpNbmW0zNjGZzYViVT1kKsz55B6nuhezS8PXrkdz/VpC\njPJPe9qhe0j2Foiz6U/Mn/HwuChruvgvhhFSPjpOguf5O3U4T2ZH8Urjr/mK\nannL\r\n=FOO0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrh30LVMorWw9lp9vtGor65pEIoaaTUPHT1lQmoQDOsQIgd+5t/xf3kI7CHVZ0DqItFFfnxgcakUq79UI5b8F02dc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596133386193_1596133395372_0.4990547399546881"},"_hasShrinkwrap":false},"1.2.0-next.1596134876756":{"name":"playwright","version":"1.2.0-next.1596134876756","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596134876756","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Z0eBDDpXXi8orGc5Kih2hOU0B2+DAqzJF+gESnR8c608mK+40nrnBanvRjsc9DqdFu7plit21FRRlFCVestu/Q==","shasum":"b3eec588c07578d90a56ae1a8d744fe2ff053234","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596134876756.tgz","fileCount":157,"unpackedSize":2160964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIxXmCRA9TVsSAnZWagAAqSQP+QBW0WD70JAql5Rb2+H0\nhfmoSwXjVkDkzZplqeXDDNBzlR6cBn//ULUwtYYVfTPsz0gJCuvsSZ7lXZ5Q\nYqdoi/jJhNOuVZ4lS+NcixGDy7A8VYif+h6/sFNrEqHcqmGPUQtDyluKMMH2\naeLhC3b6VMTo9u3UbTmwx71DlMpVDC+eR1dm4cDKHtwU5MEDAFQnflPLR4nE\nfhaRgHYCieLRFaN6wlrGIXEDpJbYGkgYG4/8vaGqcj8XhbGW1Z9Z8o8TEtpg\nfhL34XBM6mVHf0D/UM6I94u/DDOt8umLwtTZEwEJFmc3hwiVkqoHDccURbDH\nbBUAjLIDCVpay8ZwaQMnJzfTOzbJHN8Avd8xVQcfu0mJ2vg2YJnuJVOOUUXV\nc3FizGcxDdxL2XXSpt7RmXUA1xPM2nq4Ofui+TgeFFS8+l5xkmIfuECcLwiL\nLXnCMDKA9u7m6I18EfNIg61qB8zHnIs7ID/7u1A/pvLk5IBFmOzUE1lZ4/Bh\n202JN4Yk/gd7cAEIv51DlpusrVuVCxZ2R2eGDFvYNuxLIhD6tbQJV3dN3O3D\nYT7ZeyYCi+/7+QyTRertQdqCoD84JIZXjyi1SEOfByM8BHS/+6KOGnsI1jhT\n/Ogpw7RwBPPTD8knmgM0z/+P33f1dbQJBwcOZI6H2NuLlumF9rVCgWFG8nJu\nSDU5\r\n=greB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjVw30GqSH8UQL4rqJQV+Qyj0f8XO7XMFUi9/In3XZcQIgFEC8DQsT3/TzjOljfzWQUtA5Rib99hgoM0xYuX4RmIE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596134876756_1596134885860_0.8170048455148577"},"_hasShrinkwrap":false},"1.2.0-next.1596135243693":{"name":"playwright","version":"1.2.0-next.1596135243693","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596135243693","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nqf/JTjB7YKLMU+qDqApqCATGxYoQcrJMr9E7xkWRFwxM3vss4RgKd1jwtHQffb2jZZoVklwVlVjxk6FTE1Gdg==","shasum":"68a672c802b8c66dabd904189298c4b544763334","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596135243693.tgz","fileCount":157,"unpackedSize":2160964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIxdWCRA9TVsSAnZWagAAPmAP/jYaKbsKQedYKwCtEi4o\nkndkCZ0HMd772lvZT9SQX1Shgvh9GKrVyJhwpk+kRkTUUzB3PwdnOB2Zd2bh\nB+R2zgCjg0wTfeyRiBX1XOzj7PUHyzgfNe4G/m7TTa+hpxf15IvWXwG+TXis\nzWcsmJaQqgpx587Q+0rclmNtOYRTBvO5pXS5L5vIQz6pcVPN1J2suQdwrIdQ\n4nejz+SjJoO2B2fuO5puDs5KNJKwLsDtKKh6sHKsTbBJoByIr1MMhYPAa0LY\njkQoAsVODgFFJsjm0XKQVzFZ1drUOxGSal9WD0rBsZddd+Auej68ymkBgOur\nN35rbiZhz3beiWspYDn1gQwzmjgSCMaszKtjLQFV1yaBoYNmzguLXPBxAvkh\nGAP3o9xU3oaJ+ug1WQQ4L2EJo1W8BCQvwns1oslOphEIDIFNOUTkFtIXueI1\nvcYGRG6DLnVZNR9YYS2+8rDQqjsbph9+xk528IIiBKeZTeQnphsAz5OHRubZ\nfa0owJD4Px1WYoE0yfwdGO2ksZm1gGRt6RB3X9/6C9+nGcUrGQbfiWM05wzF\nv3PVdrpDruf027pGdS/coGhufYZKOvEuHoWEwJKT1eXKBHr8F5rQVKUE0CEm\nXhCpeEWDmaA6l2BXxbuuVwa38YtzLO/JGNdWikZPlas24L3kEzF71Hi+A1qo\njuRG\r\n=lnAd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJYE3q9c8AFU0XFuLIWN8u7oNiFlrKY+K3wVnnf7YaogIgNj/4r/tT+fDs2R/Pa/TIc89vfnwmu8nom2zIYNqYQOg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596135243693_1596135253880_0.7428069672377855"},"_hasShrinkwrap":false},"1.2.0-next.1596147019700":{"name":"playwright","version":"1.2.0-next.1596147019700","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596147019700","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8fnJX5dfWfz7AbpfEFsMeq8rz6NMCSkSRG9eSf7d6LHR1NX9pBGEx6S/gbxk6of4SfjGfMKhlibb0+LrgQUFlw==","shasum":"2f4fe530d2e2488432588eea5a352cf276decb56","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596147019700.tgz","fileCount":157,"unpackedSize":2160964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI0VVCRA9TVsSAnZWagAAhlUP/2NkhVQ2Lm9Lc9I53pLB\nBx60ljLUIKilM1iFI6VphfiTKE8CidPxWlvbND5ssaV2XSiip8sf+0GcV45I\nhX51M+LJetqdLKWZvCLTMzgjB7doh4jbsJaRHOVxwvtMQePN9QGBYMVqle3v\n1hDMn4X9rdFR0UhH1Gi/0C91BSZoeu0mX/1pd5croL3nOX/BJ8/A4sBj4KZN\nAumyEwPB0GKSxW0OTvvwVrUjNjN6lxcwTXKbUThSKoQwm8d4M5pUOS/FADYk\ntVy1//GkjFZkwAkw/DCW9I4aEFUkOcoRSOu2vgNy4i7cJd+QEq5gmaBPaOkj\ngPjzOgpXKNkGl5sZz9O5k+bwjYJ0B0yntLjvoFbudVQDKRXhrr2BaIzK5ZZ3\nHnAw4VkXqd81VFXmXBoKoydjoYoDghe4sYhPrS5YokOcJHpCQduMujMb8drb\nuO59gyMP8PrqvLCXp/3IjaHkP8foSTglsGRVY5ASwOrJrwmxqwUAMLTatmQO\n4A+0f+f71kgTtgTUSksO0XfKVxOEpEKxwdiE5EJ5CON+usQAz+VOwx/ZBxtt\nzBUv9xZXxV+F9jfFHG0pfrmdZi0fqI+ECbLpXFNs8diQRsjLHR+OspEP3Qp9\nz32R72os5i8rNNPq4I+TqFe0GoH0kY1qLDu41aB88Aj7ltuHWMl3WUPJ0TbT\nwBmH\r\n=h2b6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICORKi/7EX51LSBFt22BJVoetIVAi+Jydi6m+ZwAUkkLAiAi9eHfrr5/mb0t3QaTFlGEVOueGdAtw0iPGpQVuDW5EA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596147019700_1596147029148_0.3908921007655084"},"_hasShrinkwrap":false},"1.2.0-next.1596148876542":{"name":"playwright","version":"1.2.0-next.1596148876542","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596148876542","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rTQRB4fZZmQXpaqTxfGLor2qyvQl+/Yyv/XzVgeMjKpSCDegd76JmdQIQNOmIpzXBfROuR+gtRB3rcper2xkig==","shasum":"309799a7de7c4e82447c40a47646a29733518ff9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596148876542.tgz","fileCount":157,"unpackedSize":2160964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI0yWCRA9TVsSAnZWagAAL/0P/26coo2AYILGAAximdF8\nNDIG1QGmsme7YjD9W3mafKzsuYGA73F3JaFFYXnfGDnTWJ9mWbS31zLQgrZL\nIK3Je8VKRBf7RwUHxfrgkM03BSGokBzQXVmD3U398x0RXB+shstb5YgmZBTn\nkRuKwzM+yW39/iUWx/zG0I78Vt66KjHk4q1ZCToOUHeFSRayUnkptnrbDIPD\nk+G9LWvI/Ti7gXimFDCAqFHNTGCkNBlv5dzCBVSyNDpzU8be4r6285VYYaMv\nJ0cCgWcbNkIgQFcgVuoeUqKJdstqTWEAyeAWrVPcjzNfyQDigwJEeGGjXCPi\ner2uPjt7WTpYp68BGeFbFSfhsnKuDvgCPVf+isPiX3EtVNGiHQ8JLuscPCC4\n2kdD9PqtegRE9XvnvilmUQ5N1lpZ+JaqPE5ApQzfw5hV4E1tS+tPIxLNX6C/\nX3S5ta1awyxWA8yJ6DHDQvv5uiWJ8r8148K+eRapL5BxD6iNuIltwApZJTfd\nEVV6pwgD0KxdrlOOX/thrOcHgHZSGMd1xoKccqfmBuAuyUWw8ktsfrGiHhve\n69UF/4nbS/wO86kIkKoMFWqmTpKecIJf1VufgnxKoqKt/srM/m8wzWg9Bp+m\nWNgfCePhEVzRBTbkTa7OyhyYG/Eh7dkEsOLnBpANsnRediA74xAydclCm+CM\nsfEQ\r\n=II+x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5O27qe3bVQxHciL7fxKZbVac1Ydpd2DIPvlcAe5n4HAiEA6DaJED9szVuh4dDqvNclLCLd4eVUj3Nt8W5J0I7Xp24="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596148876542_1596148885646_0.5766386321852643"},"_hasShrinkwrap":false},"1.2.0-next.1596151449209":{"name":"playwright","version":"1.2.0-next.1596151449209","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596151449209","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-u9Mp2+zS17gk2a8053vIj7qu0RTEWXdNfPFEiu/G+hZYLayhDSByIvYlvVzJF++BDj+3jqorAFXvQiNvVDXpeA==","shasum":"29a136b15c93f4ac09459c52010bf683d4fc49ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596151449209.tgz","fileCount":157,"unpackedSize":2161292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI1aiCRA9TVsSAnZWagAA2/MQAJKZ3GEb/6uHtdX81Le+\nb/Q5AvviOX0KLYRwhG81XfubYfCzCYbTHwutMAlkuip7Sr5F05fDE0ZL7MJX\n2mzf6AJAHpy1+dIEn3mWw2qWgxJtcsAwEYDusVHHWMDDfmMa6hTlR8+eqdDG\nLibKBBrMPnIqVByRCagJa9FPG+7jixuw78n5OfOKYB89hhl/xxk9AqVPMk09\nSMsCzrtcbgfHRo5N9mveT4q/2voEKZqHco9UAlkJRMrFoKiajiJbNI6A7q7R\nQhUB1TsKqFMWOJOTPEmG+ZrGfCYHDxyhQ/h4ubmm/f/99H5sJhlWVZTPDNvQ\nmyM29DpVsBOG0KRo5tgkwsGWP8sJO1ejR1ukLuo3nFIXVYbJDTqVB4NplcUC\nE6ZaV3V4E/nQW7gIdRBe5N+cgjjfpU5wUxVFuhcofeNTED+t0a0NK9Mg1IKP\nTXgo3grcDRI5BQFx6drwA9Ho/jjYc9EkBdu4Gcf+EFVyBoDP9SAqtIwadwri\ncft76yAEbk6thD2oEPX84It2M4yl/7xCRw7cG1AFMwomowRlFFQsqlNvz+nq\n4TPO8SoUht4gBZ3cpSXd0RgPoCMrDaRgV5xVYtyF9ZikUHGmTlcPrizonBWe\nRPJbrZi8noJJjQrMF4iLiyjzJ/G4VjDaO0xx65MVuzgxhp+IMKF0vGyl7oBT\ntsm6\r\n=2pwG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFsaFJOcjjUwP4gI8sfdCcx5iGWezO0PM9kCZsNwSbmAiBAbTVH8g967aP0TFrr5JMgQz+FJhjHXUUTMNhzSGItTA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596151449209_1596151457866_0.9826706086351409"},"_hasShrinkwrap":false},"1.2.0-next.1596153105097":{"name":"playwright","version":"1.2.0-next.1596153105097","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596153105097","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-eR1ON0cJqttLBuBA/f/13/X+ynptuIsA7bEDEbqPAEEgGm6sVtmVysIrJE21IMwKXacJhHxlw/v/YlSyzt0ang==","shasum":"592c2611536d5b7eb34f75aba41b134b5707cac2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596153105097.tgz","fileCount":157,"unpackedSize":2161292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI10ZCRA9TVsSAnZWagAAbVEP/j3MJWKvJSYueuC1p4Mi\nhwIB145CavKciisAllZB5Ztq2DRjyc9L0dWAG9cOb1tKIKq7LyJD2Db2/zv5\nsDB0en3OpM+ZxHgn9R+7GUIIFOJCP/6quhlYd5sTcdJewTxiG2uvHk+8xE0a\nCo6D20FFbxw/1sTwTTsAWZLgz6oo1weWy7giQ+iSp+Uh0NdkrtVObN6afcIu\na/sizi3KMcKFxBwpQkcAdVidCMmVqEzqF2UsYVS7iN41CV12muw0Ox8e1c9w\nqIFg267jzpN8c1N/YcY/Kn/fw0nCYWzU4u+LTMlqa4jgAs5JtI/DiM9aDAf6\nHW6sP4JW5xqib0H07ZvbiD3wxfs5Ka7Odb7M1m+b5XsUp7KNH8vBUHoQVAWN\nT6DjYJfjDxO2J1ZZO1p56W9i0O788OSNvAZeVyhweIfDphTO51KCwWQFfTrz\nHp9mMPprF1hgsAS8T2vim/KzMgs6iqeWft6BKrdGQyTW5sIYHGgPDI/ukx2E\n2UrDnVSI3x1pKXEZB+374dhbHLijV/zOV29RskQZwq67DCVeWz5xx4rf3S+E\nGxttR1PmMvC4LkpDJJ1xdpGhYB2RGKbXhzZzBG4wE7fzqOsZbB/X7R/8S5N4\nPVZP5eE0ByhkoCvzIGkKl+IU2xIikVgeT9B9R79YpYxhabbGrpNXKFXcp0b/\n2WyJ\r\n=Q4Bu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHdfFiX1UDrXq9evGwW1NqtoCL7TLpIrcUbt2YKcjuH/AiEAr/TUMVee4yi+ZCtXa/lXLGDVZp0WzN38EIvYssZWvfk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596153105097_1596153113246_0.5092414649720416"},"_hasShrinkwrap":false},"1.2.0-next.1596154675016":{"name":"playwright","version":"1.2.0-next.1596154675016","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596154675016","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-zloUZaMwCdomotMewfeCQ0n3Haf1tX6otPpbhsTDF7cr1mboXHgkfGgh2gdzIUszlCh9sUE77t+dXxOOd+xs1g==","shasum":"1b052033bb3578b41821e31bd72e36d7eebbc16d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596154675016.tgz","fileCount":158,"unpackedSize":2401703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI2M7CRA9TVsSAnZWagAAjR4P/iZrLxxYX5SxHruAzSN/\nBiBzgNvZC0wQBx5Ggh8AEAXPo54hFpvnsGFHELYtgTyiwA4LBORkmqvDX5B5\nlxKVismu6TNhzDEoXRlujrMRESeAeAYlZCbtYA8ufOclATxhn4x8qFc54OS3\nt7yTUqil3bTUe9VX80suImwHr33/Q7TmGmwAoSiYHHdOdhciXAFhsHwia+RJ\nxsI/GD6Yu7QT88RRgYPVQzpqYkLxjtWLqPzkrtpItyP92mZq0lnSE84WuCxy\nOpU6MUN0IT7ocIO4+MrmUntTtx4bzlA/F4FulKOFJKekOTZGtufkFQg/gXEj\nL9qFENRrMsH5EkxRh6r5XzEV+AjQcBD2WX+DJ+dsB1leuLJ7lqOOMv1bHg0/\nQcvwcy8f+0lCGpy5C0jcq84kf1C3XxcAaSbXNsc6cwEyL1Yp9fMWdrDqDlRy\n1T6pKGcdzB2Jk9UcxvCv02uiiuDJ/Cj3jDkwO7pNMKMj/5OKbosqelHFNrPQ\nzulDvdLz8CPSjq1D9qfGHXOUfnISWUR6a2fjUMvFuuLFFyAEE9YH69RqfRqV\nCt5UFLYIdy+nB9nQqU0RMb9FtbcNxUXjsIEVTuDfJZImz6mJETwFTJiyvEfS\n+J7uLaZXLNuR6bq+9vShrfJNe1mRSTaf5HpT6s7G85SxYMaaYXVr6aVkcJ8h\npW6Q\r\n=TmhY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBeNpzo+vO8R3pViQ+cPHXlk/CrcRZvlSF0oj/SiJJGSAiEA41tl6G7OGnJtCcz557aGapYgK/4Q8EH06iLpcnlae6g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596154675016_1596154683292_0.21474023266033937"},"_hasShrinkwrap":false},"1.2.0-next.1596156879825":{"name":"playwright","version":"1.2.0-next.1596156879825","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596156879825","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-U7pZg/s6723yhkDjBKNAwRaDakxgGooag/Kab+rYeieQ71Y5bu/hbLOVRryNDovDF/ii839btJoHQpM/JnMp9w==","shasum":"b03912a57039ee67fdfe1403b47a371326fb4e7e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596156879825.tgz","fileCount":158,"unpackedSize":2401711,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI2vZCRA9TVsSAnZWagAA/AcQAIdXiJdMBItEJbHCAtVs\nLsgBrJL1OI9VCE8UPqX5jaAtZzMKTYCpTVbsRi6Amx0dpiyKrPkYRKxWCtvs\n0/IsjzJeRORpm7cmSL2/jnZ8Iupr7pC7Ot5N2qEN953Kpav91bzs8CS+CNwQ\nHa0aqhgG10uN7ObkushfexjHloPSs4jGEyddAOsOtTlsTF8+mC8zSh94Nrbd\nsAXfTxxpMazKtN8VtUKNqOgY8s95s7LItbYYb+PWqiGVPrSyAWYD/cOBXiNw\ndzYw4X8lGrZ6jAfxV0ZwYXKrS0XDrVtSWDdefMMIwiNUeI5L0ptiWjDIbK/G\nCTEiL/R3tzhYicW42gB06CY8rJlQKqcLGFSaXWSSj8xCAtR7zsXeTEyezUhG\nklWY1bgVMxuM9uoQq1cMgQqN+SA7rdRfmMsuTv89N+RsXCgu1OiZdJ+L0qqb\nmLfjtjv/FPUtoX+xvb1CYuMciU3aVgI0rdmEeB6BHPEm65Lpr1qticaZWt4f\nk52POVthZ/T3p0CPfV7/D+wNmwaqnMVBe6IjsCdjhxQVz2EL63i/KtcNZ6c+\n7wGAom6y+bCcq+cA6ZZrpBpIov19hyM8CkyrqA3xXNz7T6iQ6laqXZtDZQFc\nW8nUk9cjpSuObCw2FR81khOcD6kuczAa5t06mGEuqQBK4EGapET4wV5m5OgK\n57ea\r\n=4/9H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVdEMqggqpY0xcMReGbsjCMwZD3egMngIQx1NwRXzRpQIhAKpJ1e9VvcdS4afD+5BLkTud2NQEcuHqkQqzKyy/E2Zz"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596156879825_1596156888759_0.15417289342453966"},"_hasShrinkwrap":false},"1.2.0-next.1596176579393":{"name":"playwright","version":"1.2.0-next.1596176579393","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596176579393","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qd0QMc/Q2Bu5ZpK8kqkI+3ROjkS6oK6/cagVw1RQ5Eza2mRWoiYmdf/iWma3bcLv+dWwMOGk3l2CUPCPh9XH3A==","shasum":"0358d0b0d7f118fd21651cc1decdf61e72e4114a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596176579393.tgz","fileCount":158,"unpackedSize":2401770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfI7jOCRA9TVsSAnZWagAAwoUQAIZvQWF7mTVCh6JUIvBO\nEHzJUAQN76fBGXuZEMFySZ3fbH5L42AbrTy9Y7Ae7G0Qui0G/5CGljYN6WnY\no3m8F+Y+0RKKGcz0ZCKNQgPenVg1HoVZkmvEjLfIdbUW4APwE/27cgYTMZ8e\n+nAtxPx+k5p1yEkjiL/11W43n3Tu/yXPTWG8tV/fG1bJXs9GgThrUuhPyOjQ\nyep5aCibtdAoyiK/N5Jzxfhl5IZMAbFotl6lzaQM8zEmI0Y6LlHyUtE91+Ls\n7BjXNRWgE4W81kRxQoqYcvKWTgGJXrLvoDb8YKRaf+/RAK0jquscaCQRWfQY\nqDLJFp0tfcz9SBng1ttY2bcAoWHuGSh3BagCxIYSs6+mzPA4S1r/3N1FoyUk\naOpZVQ0OruBlBCz/0xwbG+lfaZVm1WrlzwDXn4X8vGsEvYGyHOe2IRdE/XwZ\n09/SejZ/HjiQESDhLBc7hY+92b04pdYZu6vzIjKwC5EawQr1XRpv+pfp9nqo\nTkfWaSLUFp1DM76c8suweXs2bHUgm3PH6H8SPsT5djxNyACgKLDnbIESwN1r\nn7b0onaUyjZZr7pP+dDlqCZiJwzDMP0yQBeVDINfy9aOds2JX6uoKcTn87lI\nv/O75is9otqEyoOs9+mfZYsUB862O2Kf55OFikuX5MgUYw7vQNQGuKmSwQ3W\n/eTB\r\n=AwIN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDY/uW1A0idkUsUt1a1f9wLJte/RKVJquu5wT61c4yVAiA6q90Y/xq+UOrq89XLoWYt9M2PHSqe+YTh/FJwnq+wvg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596176579393_1596176589442_0.0910963150089168"},"_hasShrinkwrap":false},"1.2.0-next.1596213246875":{"name":"playwright","version":"1.2.0-next.1596213246875","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](docs/README.md) | [API reference](docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](docs/intro.md#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](docs/intro.md)\n* [Installation configuration](docs/installation.md)\n* [API reference](docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](docs/README.md)\n* [API reference](docs/api.md)\n* [Example recipes](docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596213246875","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-RMbw+rF6/P72pf/mB37qSwv0foXsRHDaIPNQ9P/urUxDG/A1SHJeXcoBdnELR4eBuimIOU477NQp+pembj04kg==","shasum":"0fdbfe6a39b416db06d8875818bee1352e647264","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596213246875.tgz","fileCount":158,"unpackedSize":2402142,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJEgJCRA9TVsSAnZWagAA1DsP/0P4ABZuWKXFlcWwObws\nAFK2QUErkt9ePySk4RLShk1G8bflOySkj+K8hNaHkI4Vs4CqDoGK6W9mSYrD\nnoL0FCUHrRdFZOIOnPweai3pq9bKfK2gPoJKUL4xZCmo94bV0L6z1GMSdnhp\nt4BBmQKkDXxqUzLCX5GjQsToOmhLt5Z6zp9kqiCZB9ufIKY4XUhoExzMOb2q\nHwMm0dmJDLDsc3Yv2hbpYafkJmnEJk0vZT7tvxSHWJKyc3aQfHBH2BfWCnNS\nnCai7OWtmYjK2hP3nl/LMdlpYXXCvVuNXtrOw5rC3c1qN9UDfD3JihxwANOq\ntpAQVL1i+wZqSjYO77JtgV7cy7GQfTfgSxNue5qzMcIX2y4sWpVpwER2dcaB\nrehnoQdTbZsjDql8Q8eyHoRYjRjB+daH6eQihRwruARo9kl6oZHfmzUpka6w\nNSdmUAJGoQ7OsqL3TZK/Jo2jeofmFOXZsTL3RgWHBg9K0UK3Y0b4+mRfOBiI\n6tUraPYwTOw/TK+OH9Lpo3V20J9xmgbQbVQfuYxNh/+k5J88hy43RYf61aAJ\naAg9ODmydTgJr639uK6o1gZRKXTBZ1z+uBHaooGU+Er4/S1IocfitOdTj5gM\npqSe8R21nHyWp8KZg8e6pq6hl3oaWu0/TH9d0Wf+nsSi3TqXscALRCKz9VKp\ncwhx\r\n=mO0w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFm1kLt5kxTPMer8gAffX2SNAR8kDex57QtaR6997Z9wIhAOadSjky1dBV2dUej3BXpSveiQe+qBne9gU28ZFsx9Ih"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596213246875_1596213256779_0.6099806852969947"},"_hasShrinkwrap":false},"1.2.0-next.1596214133146":{"name":"playwright","version":"1.2.0-next.1596214133146","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Example recipes](https://playwright.dev/#?path=docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596214133146","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-iEyTRTOoo+MfAH144wckeDkdqKQEZsBNEom0xu/lg3hvf3sKcvyoqPi5k50cYsPIQdumtCAxaflMXaGi7kNTzA==","shasum":"52f29305009675d0d52958d7b41d468097f677f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596214133146.tgz","fileCount":158,"unpackedSize":2402444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJEt+CRA9TVsSAnZWagAAK7sP/0n1P6//cL0WnMD07Xji\n2bRAHrxKp6Rgc9t+Gyjq+3igK2SsvtMyWTCu7jik8dEU3bUqBxEP4sMOuh96\noZY4RRHz1s6z3iDtsB6x6BALeW4F1XKlClT8tNt2h+QTRnyyA4T02OpnFSg5\nkj94dwHxeg3DEdBy5xIYoqM7cCtdY5mnFAu6gcdQS8J02C92Tn1lHh1LdxVi\nvDY/r2W7eVMY18us+OjH4HXJssvyBwOP/ATsVjaVOfAFqt8C4Nkx4uZjKjwV\nqZBJsBT6bWd9bFVC+Xub6eGZbIYyVEdzKm16VNXF+kPTvSJ2bCPagWq7BTHH\nxs8QFCLGrurhdrkNKsiH8S3gWU2goSmNX5/RsttsXa8TCCoKtTCRvL3IRpc7\n6dfYHHsYOmRQk85oaAXVKEQr1jLJsrTGobZSRF+R17+lULZcd69oBnbOYxVx\nq1opiE6gNwsGDI/tIQhHndqXoA3Z15oagWSjr/rStoW5DVxXpplOvD7bRwPB\nFQVEUQxVjMwKbWfLAO0kqfN7orSSk6nq+/qLExA8gN7vnrpbdIO/lgH3VMbt\nJHf2vzzt+jQwKBeO7tiaSCk/Mvw28rd1aQIKp5rRd7YuoIrUbfQHPvZ2Zz/f\nPzBlV8cA5W6LUhBCFjPb8WbficSzLDf77c9K6dchp6o7BjUhe4zc0VxRHzWX\nm6lM\r\n=3Y7M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCNTQDADS1dpNwdNKGtfoEPI5HS+hojbpObsCMqgD7QAiEAxCUDaHp7jy408+oZ4U3+l504+kSUYIyC9oXW70hNDgQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596214133146_1596214142319_0.6234800164117051"},"_hasShrinkwrap":false},"1.2.0-next.1596215642450":{"name":"playwright","version":"1.2.0-next.1596215642450","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Example recipes](https://playwright.dev/#?path=docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596215642450","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YRrUmeHQoIcZ6m0K1SREho6IhruBwkYV/WqqkxAU/8k4TUNrWroSBixeUnv3hEzgeYMMRUUEZw/c20kHQ1zZIA==","shasum":"3bdc535c0d3b4ac39c0c2e1701dbd3302dc3d790","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596215642450.tgz","fileCount":158,"unpackedSize":2402444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJFFjCRA9TVsSAnZWagAAPV8QAIufiPfhDmh3XMRapLHT\nTjQwXDHbXyh6IUrr/gm0+ysQVJIrTbagBYB6Ny/9s1EZ3+L29mIyNzaplo93\nVMDnrbgogqtm21sFRPSCjn0b6uzMWhxl/OF9VWjDrQrwLR0lcCTblWWJwPUn\nl6Cp3CLPVR+N7DFqfqCGG/+u7skTiKahXx3q/LFM5vAjEOdelu3eMdrKKnDu\n1feyYU0dh8UWzpjzgFV+xkyRfpxIaG/k8x9Rv0XS/9Elw/FYPO6EThVeiIjE\neLUyC8YvGTud5FEzNCCnYt9v3suchRfU6Mvxy6zjwwDoP87TXes+XO6nlPZ5\nFTVhWqLTe3Y82LlpjnK0ZDHQkpFY4q8cxK6TmM1FgUQ/r5fw0sFT1C8x1340\nsK2FizEppwtkFc4TlqW8n+QU6OnVJtD+VJh4F6HZCGJ3MjSZPAxEBNOSQrRv\neBi99EhVSNo48FSTY8I9PrlV6MOr66l+MY9abQjDiwb4oX3Vd8101TtS2/VO\nAQaKRe47OV/Qi5ndwdZ60QFSzznGNoXMagY6dC9Tc7IA90WW0HAJ/Yiu0Ibq\nCRZV+EN2cpbh6JZJJOvAY1mchQVpM/XFobTVPUp0/64Xr9kF53eEaBQRwqTd\nBzH9GcR58XY2m9W/+h6VERI6pNLBv5OJnsLzDdtM7XbcmjNcBvUAvXNCjPBX\nMXFX\r\n=Lgnm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJ5LMA6UFnok/a7GZYYajyAhv03XEEQ3r0LO2ibRT5/QIgCEBWGKIDZym0kwJEJl9qktpzaXeC6vpl6ddzY05zOos="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596215642450_1596215651129_0.4448220928240314"},"_hasShrinkwrap":false},"1.2.0-next.1596218656959":{"name":"playwright","version":"1.2.0-next.1596218656959","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n##### [Docs](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md) | [Changelog](https://github.com/microsoft/playwright/releases)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Example recipes](https://playwright.dev/#?path=docs/examples/README.md)\n* [Contributing](CONTRIBUTING.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596218656959","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YIYPQ659z+HUs1j4EoiF1Zec6rCAeShFkcaNP9JR0wWuxKCwCv0RoA4zXc95EBirpf2F9J9OncFxyU0P5/apXg==","shasum":"f06a96b51300d3b0febee2e4db2df368ee0187c4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596218656959.tgz","fileCount":158,"unpackedSize":2402444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJF0qCRA9TVsSAnZWagAAQfkP/1GHFgy53iBvUsRMmaqp\njNCvncAy2Euai8H5jm+dL04hXcvjPwdLXgwIbNBj88XO+ZZ2bykrKxFyWJAS\nuf56MD+RpUpqTonfw+DXnrj+xqwOm8bGyeXgQZaFjn1TeTKedLHw8c3nlVlI\n4uMt1TZ+NgXgKSSGXtaJUYAM+SzxZyHxbpVOUMK/uYd0utNk6q6Y3pBxCKNc\n5JP/hvUMSI+u8IplgEu0N9qgQJgo0Pdwr2PGgVc45S3t7Z9FnDeoYI7plBTM\nf/J+fu5mlDDNRR18br3WBGHnH2ss9Rk0qwGceQ1QpcfdAagqPdzz5G6urO5D\nKAiW1VYZ+2o4MWYOPF1toi9vbDo9mQZGAhU6bC5ilCnaTxZRmu2rWzdd5FXa\nwoSJW8Hn1eqb5EHmdVDHybD5a9nGOAgnkh1Kcr/bcxm9sb5S/QAD/UQ2ahVu\ntNTXk2vPk5+FMHkoZm7yK/EYFYZSkaY0uwnkqeZ2b53g4E7bP0BJ5/Xi4eDv\nqkaCr9JQB91rE6uzoUfGYOreNct0Yb+S2uloVj643GTAFzehxIRZ/jFQicWq\niMpcEZU4Byxea7PQDzMEgz53sfuTZWvK6acGLguEr/TpPEuvwDHdqTkGVlOn\nZhvSCsE9apOf/kTHPk80zo5SWiYM0+aZkXMNmp1CZ48PzGkqrSz6hpUbc6pI\npiHl\r\n=VD3r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/33EHfPIGhAUZOkCLhvWdDkY+qVFyfjhHlHltUFJUgAiEAqdhUarVChLgSnQCFeSd8Hw1jTrvY+DVcpErejdBjYx4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596218656959_1596218666050_0.9394635298092855"},"_hasShrinkwrap":false},"1.2.0-next.1596222043415":{"name":"playwright","version":"1.2.0-next.1596222043415","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596222043415","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-riXrIwsYWVriy7Yu8c3frE0JnRqElXMNI2iR6LcNpPCGlLSSlZQhKyVmLa1xkMHBD0lBtEZ5cn7M/r2TY2/j/w==","shasum":"71d51b81d2c7f7d29ab4da7dc4fd35579ebf75fc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596222043415.tgz","fileCount":158,"unpackedSize":2402381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJGpnCRA9TVsSAnZWagAAqgUQAIEJoQGYE/4x7Zi3/Zdv\nFH4eySsrvp0Gvv8BvR8kO0XvLkM/pOPPDaOlpCQ0XhYCqtkqHuzDaqQlfGoO\n+aVBriNGJMqxqrNs77I17nuSDPFk18LoUTJw8hoNvk2GLuqLeQVZl+e+B+oy\ngfpiKzselunJZY/EAEQZZ0+2lZ24o/r9dWQgHEmykzzYNN7lihQb6uk4Hwgh\nmmjF64W2dlReoXD4rKWwO80Ow5Mop0aHv1OgfGxRll2YS5TbhXfn3WZPTMQe\nUEUibznEGZYm7Tx09EWWUmF6wN+RzYVHWdalfG/HmSPB1dkxymEhC/R2aynJ\nVtSYXmjzflAQMQ2P5LNmt7AcVMvuGWcBuKEb0DDa1H8rkEBHqGxL+JBf2/kX\nT5h3a3HCZ99k3pwEFMvaFBSmg4wyPlj9Mz/CQuNVwfGca0jtcYt9y5U3hcle\nZo5S27Vbi8G4diOoVceN7NMKpuvRVvMx+dIFR9VBUgXQZ9MbS4DJZhliPIAo\nFGshZbjngNxz60zzNrhQnWE5wyAMKso1iJ6p3glosB56IWKjFzQWGJxGgq69\ncVZoG1itnT36nDPtBj25j30xQ7i7Df+sAl8mHFGl8ubhZZUtVafyb2NYvRdm\nGicv+4xPTCnBvujG5ndtGHCJSc28axWK6jtSatgudnkcztUW9ayGpDLXOgju\n0Odp\r\n=jpsh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHu02fE6sso/t9+ODTiRySr6IxQw7F/U7A0MA/kuPI5LAiEA5npFbzKagJ3q6s44bE+cqQHk8tGqJX5RcgwsL+bzOl8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596222043415_1596222054203_0.3787846709985152"},"_hasShrinkwrap":false},"1.2.0-next.1596223167711":{"name":"playwright","version":"1.2.0-next.1596223167711","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596223167711","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kB1s9/JbvGFEgllQTkpSxy7Qar0XiJ4v0p6Bg2GPyls2d4VR72QxHjj8Dn6yzNbAc96pCxQQQ9FD639ZAGJn/g==","shasum":"e3ad760ab32953ef0f3ee7955bf57324ec2778bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596223167711.tgz","fileCount":158,"unpackedSize":2404190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJG7ICRA9TVsSAnZWagAAxCoQAIqtr6kYvstbeEoqgaws\n/6rcxtKDh57KgwOQEdo6PwxUnNwqDMQQ+STzUG/aIhT82UU4afaDsdmj8Sf1\nKxTVFdF5yhdNK8vMFYbo1gazugUOXYUMGG2N7gu4hpHQtaHN7sBbgzJsApPy\nO9tMGsP89n4ShYui0tX/q3+QlXELhcfpNpM2IywngAki/qDMSxulXL2Uia3y\nG6gkvUY7Dg3VgRNPqfdLwU84tlHrDk3fCa5kXO/l6h8KKz7qGE8/VyaC9tGS\nseLNGDXzb+UhGQEd6gXT8arfI443xpa9ci2ii7iKdHiJYfRR6Wkqowy369/6\nDnkVC3zKIoXbJ2Eh71HQzlxHhoSHawueDtIRUjKoLeWfjCeFxCgIPE7xBjHC\nFfEChk8R+l1ctYnO4LjSG0NbaT2USCo2iwiwQk/wstU3yOQpGdrAz1Lr6s7J\nQlTbnPo+mmMOQxFroqkwmenY3C1hZWz+JNCoDPo9foviKgGs4+2eZ3ui4k54\ntbmTDeWQAEu+mpWCZY2ITL63DEoMam0/RHppYwa1cMm2fUodD80nxmojDgZO\nkQDzqp4E9rXFi6pS4Ucm4BYZk9k8kooK5OdJr6/cQt2IgSI4XCx19gM/F3IF\nHv9Ij4xwjUTfOHy54cLFyQJ0K/8Xq9bPcveZNplb8aFxi+xY2ZJG0qz7I03K\ntZVq\r\n=nIjF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFrZuLqnhdeN8H4Fiu3gpqwntghzVvrqeMnNhDn//SQwIgblsJDIPLiKtksk53sZWZ5yj0K5ahcxEeqZPGv23a0sE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596223167711_1596223175579_0.06505418307286792"},"_hasShrinkwrap":false},"1.2.0-next.1596230001114":{"name":"playwright","version":"1.2.0-next.1596230001114","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596230001114","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lBa/90QrQfU6sAsC/2X4s88UcGt+vgE1zQX5rrMxT56I7n2XEz2O7Rp6d4qAXo2vtI5A9JN4bPiBWyJw77VDXg==","shasum":"6d298d8b5f228b9e7557bb3f06264ca485a809b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596230001114.tgz","fileCount":158,"unpackedSize":2404303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJIl6CRA9TVsSAnZWagAAc+IP/iixw1e2yurN4YanIlMw\nNAhw3i1XaD8jBQsKjjSGV1NDeeIu/Lfp+nA1IfoKuZvqdMwPmbcT5BnlzFqk\n6v3JRkwwW22nvwGo6tTFolf4t63IXzdzrTsVsocl15JRcnW9G6Bw15xXfYt1\nHjxa5gXx6BIiYWKukJ85V/BuspsdAmJhv1CkRC7BR8L7x2F7HLeq3TWZVU3M\nRznzKujzgOlhjQ20OiM2/+o/AHu6YyF8ZcLEWeB1Pptv+++9Ron4sLLzpjYO\npVlKHoJ+qjTG4Wne7yg1MOYBxja6oFNBz2Xq0OVZmzyYYIAGvNkaLZlCoBcO\n9JX7CRrufDq7Lk+RJ+AOEH+EQEx/hhpZM0mvfrc5DxBfBiUT8MqxHQN9ioyZ\nwTHL4b+9O+RU1rdfrtMnEpHXW6sJK06cAO0RFLQ70mQh0ySdqN5IGo38u1vo\nzyflFMoDBqn6fd9fVuteTGJSpQMg4VF2JizLtdcrKnLkDb2vQbPAv+1WWZrs\n9Ws+p7ZGTDf1STaKAnOxqTc0z1uZTFR2vIHeoNGiEQZKrtkSZnSeRDJEWKrs\n78shQdKfmdd2xOhsDGwugXrup7UDqSOfxdB7UZPPDTC5Oz3HaAqcTJdcqfqx\nGE9t7nTC00K4XtQLtxOONzwWFtvk2871Qb8L0YjJrO3JDCyvekobmMpPb/S/\nR1Be\r\n=ulDx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUwl+imamKk4Tn7ayqBmmXt3mqtMQckuNKRjC4JoOy8AiEA/AI2PtDS9Hllh/cUtW0U7D5HM/l+5QvugYC49cZs2dY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596230001114_1596230010275_0.5139674168339736"},"_hasShrinkwrap":false},"1.2.0-next.1596235656781":{"name":"playwright","version":"1.2.0-next.1596235656781","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596235656781","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Jp901CCgSWeRta18Zw3iWoQ44lhmrKo10k7qDI80LTiGbQFwut23T0VzrVXlIxXLAxh4gpJBj2jSsTaSqeu27Q==","shasum":"8f409ad0342e3ab729790dae982ddadb7f1ec481","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596235656781.tgz","fileCount":158,"unpackedSize":2404407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJJ+SCRA9TVsSAnZWagAAhnkP/1V5MFL7qWgxF7rbCMKt\nLJDyaCCp3TVI6yXfzXG9TZJNVXOHMD2JdgEea988uJVDQJ0SzbAbmLYTyMA0\nGCplyx9mwrIbUPKOzhP49QI6QKruoChjKRpFs+kNtSHtVmK6eIMNsoYZpYgR\nQ+Ww9TPxVjKuGOQdy+xhvTeeyUnure644fTMYL8AagGRaJw4eyRP0bsntFCt\nvd4zbeLsr0fYLvv1gwLlTHmjLqaEdo18iEB0MNsgtFfpjjwJY+RKDFEL9Mzc\nvLcvCMpQnH6TKGMk3IF6GFVaZ9wAIQMW/+wicNlvg04f+GonKWsuO2ktIwPJ\nQLCV+hUh0kbmWrxj7Iqdf88SFj/Hk8pOse2Aa6mt4yTwWNTyy3nogdNjaW9e\nU6nspP+8LGJbQLa4mNJA3eXVaLJhXOQSHL8BTXgQAmZRWWsdcEnWveoMOZUE\nxnBlE6Xbw8pZVmn50+k/3N9rFomNZ68vzAH+MLNU/Et9oPM9qjgH+YqIXl31\nuND7pop6z0UMb89WJ7hHxSMNxh/kf0LVCCsP00EEnYY0J7pl8dd1+7IF0x45\nlRhN2hFKYEC1KR4AJ0Mpoc3JjjxpOq9nuXaOXR0/Q4qpq5lggn4XMAesHHxH\nQCGlClx7nhmmBN3pNsDtI42iYVAyJMhaK3LGLeMBYqRwcNvdZD2pHEOBoe76\nAJF9\r\n=KLeg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICNpkcZsv8d+uEAXjicH/+jPTtInunFchjoWHHn8ipeqAiEAiSqbZstQ84QUfM9keyGZ5WBIXLit+6a497eRPSrklkI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596235656781_1596235666290_0.5768711638794426"},"_hasShrinkwrap":false},"1.2.0-next.1596238710055":{"name":"playwright","version":"1.2.0-next.1596238710055","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596238710055","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vnedDpDvcaD+LjwyiCCuy+VCUl0bL68pOgIfO5sjA8PB2CPMPz8GOGNNrdyqVVQwxuF9Sr7B86o+p3SAfzPZeQ==","shasum":"c7524201398e145d2f027789bcf46e554a6274da","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596238710055.tgz","fileCount":158,"unpackedSize":2404407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJKuACRA9TVsSAnZWagAAnJkQAJCkQWOSzzROlAyrR6iu\nXq5J7v94Cit3ZpGA5VFZ0TXV//pKry48colDH25xG9PGMWtGpbn+JhEKbSOf\n73mvKYRL/rV1u0wiY1DLWC6lBYIkB+ba1w+CSJhDRW7O/v/tpCMUE+T7VpbN\nhSOlBHPSUoathKhaXB4oYLV+N3VCRH/rCIL2Z3yMLoZn4uiH+L7HXy/b0v+k\nQRBx3l8Y+JPupIdKpKKTDInzRs9JzjZQ8cVGtOMlW5ksaZDEI2l4AQk4XkuS\nEkbiT+tFO18AwJfSnM/qmEnEc0OtgBu+sZOz6JScAva/L9xhU6qPNBFDKyH2\ngXGQnz+MYQObJucs6yQtX61jcG6n8XoeGbhcRsRd21Im6lj5ZRG60w5QGCDp\nDqHSjIesGPmLf5RlZeWjWisbgHIXOzljW7Zgp6syea90NJCHglrwZ6fX4U3B\nJ+pMrfNxE88DHPwoYvQezy6ZplvOOdVZFPXIq+eQrLmR/LL9a6b0amOiDRTk\nwz0Jbe/Cd8OB5+3IIEao2370R18qbMULB649EaXz+m15+Te/fx+pbM4RftqS\nuc4eJ6Cf2ouHajAvsh/t/s+GEnGxfWZ7pZVGEk+/IWUIRsj5sRHGpNB/L4KX\n00W9RE9NF43U++yk2gpgpajAUQ3n0JfvY0syiSCp6WSytXPiG0mLtb+bPQU/\nvw2G\r\n=3YYU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEue3Jk5pRPwZhWPaXVXqT/LOuZBM49Zbf/DV6T9MZ+AiEAlKiax9MWo7ndGLR6a3/tIl3r8oh65+cnkQ6Wg1GgQTY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596238710055_1596238719594_0.29635435580424296"},"_hasShrinkwrap":false},"1.2.0-next.1596240168286":{"name":"playwright","version":"1.2.0-next.1596240168286","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596240168286","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-MtiYrmp3u32Ufmw3lJfNv3axbzRb41YhSUVupprCW7x4/22ZmXWdDol6haejefBOnM0ZzOeKGPIUiX31QcnhSw==","shasum":"2478d9baada95893668e0d7ba3ee3a06b32324ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596240168286.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJLEyCRA9TVsSAnZWagAAM8cP/iWyeLG/WJ3TOMQsG998\nWqVWXDtdV8OYfB4KXljnUwlfxAomun96itLa/cSCgmMxITRI+LUwuwn5xmkp\nFRVa0t8R3eBYSpwDrH8BvIKgTvAQnh4mEQhL5NF+b5/SF9LsNVqamzYmBAWX\nF4xJ1zW09360d8zNFDu0q1mwtU1txMcn4LrgVC+aY+HE19QnaSoyld6j7toG\nzct4qqhFCgJ9ewSf0/MpI+kKdSi6OVIvtuAbkJGbVeLJ5voGAjfWq39ZO8dY\nqKkxkskhJa+vUjkIdLGhoppjq28/D/aDpMgEacNmT2JsYemnGxGlLYaeSpcc\nwpSOZnxXBJz98EksVGXC+fuufh0r5CizJFHuXSKrKYlVF8N1H5yNugo8BcAL\nNeVj5HUNMlNjTMXmPvr+kQlIn3Zti2e7HuvUszjA0wG2L/GEiZdCDPvDs1Po\nVc+qONlGa6pHz7v96JvvnptvYIDmltClCu6oDrz353osFnfVQRYa7GzbyvRE\ns7czihq21ihgLiSAhTWybRX6VRijt/I8cYTTkZyqUNnA+HzYhPOUivQhG2M5\n6YKUjLgV1CV2juD51fLhaAy0+/TKGIcYy0yY0r3vjK0b+zuWYz3D1EPEU3Zw\neQLEPhHtb0KajwTEdDeWqKPSVc3wRfDk+4WB8HKu3/86Bl6amGsOLV5rnFSU\nuYK3\r\n=d0DR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD540IrDvpswCnFNHTEISAQEcGdzY8FtFVZ+9dlDCBjWgIhAPI9NejRWxRZ2LbNFLNkW6/4DOLiNaBj7YttJtTE3+Yu"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596240168286_1596240177778_0.994340025926991"},"_hasShrinkwrap":false},"1.2.0-next.1596481477206":{"name":"playwright","version":"1.2.0-next.1596481477206","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596481477206","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xaqlng3Zpge/PrvaydNu26fZA+FBBIS7HtZT9FS1/PcYFi9ugpVTJKXASzBCo1lVNSxqzlKGjMXyI1lIazNf7A==","shasum":"a086809b0cbe9195888309b9b157cb491ed010a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596481477206.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKF/OCRA9TVsSAnZWagAAgMEP/RFdBXjKE9AJ5jJMLsbE\nA6qtDvTO5oAIny1glC1J5PtOiboWnjNMLL35mDbUkB1if0d6J+FGURLhxWFm\nniWcZ5GFd2IcWYe1BuiwSjbeeOMSFHuRGDIR8AoKWqIUl7K0GpEyfVeRqDAb\niLE1rosTE1CUfIfaHuzQl4+Y+zc9se6vIRon/o8fX+wieqERBKIzvtPStTTI\np7dvz8pkJKw3AnmOfJnlohtJjhpFl8BtQKuMH8bbNP2VAk87M9Ka5Nu3TQhO\ng1TyhMsyA/AMTxOwL17iw+jD9pDsaesfVk3HNKD0/KTAIWe5/yuvGN62kTr/\n/KQp43YZRqbsddrnsZhnMmIuP1wY5nTiMl97ash/8n0YSIOIhk5hPrE/lL+K\nF+/esp9dmUNwrrWs3soiwBaTBfkyPASPEuISINLosCSQsiJRB2WquYLu2yLh\nTnveRkN8qLmpN810T3msRw/2VK3kcAb3W7prgyV2Rzg5rBKFK1lxnjPVEJ+i\ncJnONE9itv0lMjG4JjheZLxe2kIaFldlG9My25KEH2Awpu6Z6SP9aWyBUl7o\nC3d0adstDjdZa0HZCSHFcwo497sSaktF804jONlUedw4TL6JSD8ZD1oo+kfn\n9MY7GMkYFBXre3Q7J13R9XvUywgCmg7gz3XgUzm1pSeA66+jGhgpG19DibRw\ngXKo\r\n=GOWf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/XxiaaJTlzchfSAL/mdPFWokWlZCbkwxQdrfj4xX6bAIgFD/FOSv817qKS3mLM76SICCS341JiS0wYvHXOWPIXvI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596481477206_1596481485985_0.27271416756555156"},"_hasShrinkwrap":false},"1.2.0-next.1596486654464":{"name":"playwright","version":"1.2.0-next.1596486654464","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596486654464","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-h7MGeOVhdtIdkxOOyIIc5x4SwV69TIXLREqsRJUX0YGw74Rkj6aSgL90X7HVtXq9Ck4FljMkA7ZiYQ+kNkqFSA==","shasum":"46fe625d00a8dfaa0bf7f223ef59879bad6abe02","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596486654464.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKHQICRA9TVsSAnZWagAAycEP/3ivG09Y28vW4QBM4U0i\nZ1sGrReqV8SnPB5B0gXkxvjRSZYe15e15urcr2SaJrKf1cfwGyy9WWesvqzC\nRqxNdMqO5dPq3MHKXH7DzqxOHoInrv/sPsdOispOGDnKZYJmJzO82pWkPcc9\nv9R9r6/8X80na0/NhsvYec36L1kR/OwVcOQx09In1WAwJwHs1e/tFwohgl0j\nMvZG5D/6qTNPUdEfRsV28Zz5VRBBXv0EZX5E75t+T9fYvM0CmdWnbu+VNvd+\nWIPM9zIsCrPRfiAfDhtq1nhW/0m9G1xiv9hNOHF56xq0baP7QF/zR9F7hAGG\nlToKUrOSTCJkqC/7NDcYLKtTL0/J+vEwK0TzkQHbZ/wmBo6idMm23sP8c1Bj\n8a0R98L+XXtqLBbjZGRE4TCY4mjAxi2F6AVoAJSEbZA4tKrz/5LhjHBOmm4d\ngFkQL3vkFAkqrd204lBiZYIDjy9UrROsQEJCZxjPkxP3P3G7u6rq2Dc3MLrJ\ntVv5ZdClo3SPpcFhbANrnTd7zX9Bf8tLnPckX5pv7OgdstbDe1jsXEhq2wcM\nIgIyR4J1y7Gp8sp4a/KsyC2u9GqKbU61Y9Oe+mzD9E65dXYieq2r3zr1UOxD\nHtIPZuejpiju8dR9rUQNqxDU1ZBuRTf8akjM4jF9dcAAkGu9vI5DVdmMZ+Tg\nExKy\r\n=XjWA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICO/KkGtEcr5TjCskA3yvr9wwYx+AgpXimyxjMfJj8KBAiEAuBNxZ+2fs54Lsh4vZUMrJKIGceEbymdHylL6iok80uM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596486654464_1596486663675_0.6960458328052115"},"_hasShrinkwrap":false},"1.2.0-next.1596487461147":{"name":"playwright","version":"1.2.0-next.1596487461147","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596487461147","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-G3vN5xw04uCQmzVbeguA6TlZIUj0J5MfZYxUY5pljmzce8oa+4PrBWDyquyc4cusFvhvxouFuG7kDagMRwAPdA==","shasum":"10a3a129d533ab6f00a08b694dcb5f72970a6d37","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596487461147.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKHcuCRA9TVsSAnZWagAATqAP+gKpA4IwFvxp23EnBTPx\nVwyc7aY91YfvMdQk4qZfzqhDrUeqSJW68Mp8t7cDdnmG/I45afRvGVBZPKs5\nfw7f6EAVoPLsJsTTrSoiEZ3wrbUogGJl6IZie5F186wt59jgnuHdvSLles1w\nk4/33h4XyjuGf2RvNvHRizAh2ZpMMGjm6MNdLpwbtzLBkJHcgtBYDDQQra3f\n3foPmTod9TDUO7Ij50Jvknet2N8SVS7f7WLUylKiYijrrk6/Y+qMS2IMaEEo\n+xMeC5a7I2O9+u6s30rkmYKqKSNCmHxAgB6CW1/LwSGXtZ+PNmsF2V0F+Dr3\na0hUy2GXqYSJMOC5XCDyG0paAGcxtouu1CbfnMwuzmq7zYnDDS7nOt674gF3\ncTSdvhyHTL2W8SVRssm65gztrINCyonPx5O+dqaD9sU4qtZYMTxu3vAhWlSX\nAa1WZdhkGFHCxLNZZcYLJel1RSJkFwC81FpL9zQzy1tuXfUF+Dpv/Gk1BGyl\n1rOllh9AvCcxLpgJLwb5M6E3H9t9t31cdtBsHfVyhOxpaCChi8teqvlx/Pe+\nH5ckltqOcyQVk7vdnbr3bXil0lXWSSRGV4u0e4d2zrkYhFcFN5ZkNEEEIkrQ\nX80v5C/Vug1r16UVyBCLrwA3HFCy9tCTXKwd9pQhOIj/W0vDmGZFsC2uYxvM\nm77g\r\n=BGDO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHu/1ACEjttaGkXR+4HHKbE6DkVpCXOZILe+ioC2JOSWAiAyz1CBXRK0ElfPsfE6LtZ67smG500qYrOaJvViA+d4MA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596487461147_1596487470334_0.09482383754075374"},"_hasShrinkwrap":false},"1.2.0-next.1596491070265":{"name":"playwright","version":"1.2.0-next.1596491070265","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596491070265","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-AgwD5xA328+Lrqys/LfBkbq/8ZltEnpql/cH5FucwdqkWi/Bqih3miIa/mS02xzOYcvrD9Y+mg1ghuSmC4Zk5Q==","shasum":"15ae32631051a13fbe43880f5905d7d7fced7568","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596491070265.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKIVHCRA9TVsSAnZWagAAGGsP/1XyH861+6VNBHRv6TQM\nJrQb7azj6iOeCtdQ48I75qFNAhqCdPrvmHhSqxpmerdooHfv0M15mW/v746g\nwqG0kToEvIaY+FZ6nCOUfYZXYXKx8OA5ZNOtiI3dLvJuKM3noffuP7Fyteoq\nl/8bXv+cY1Pkl3Lqn1WIp1AIhWWl/M6aKR6lDYA87ShJ1TLPBEcf30RaKKew\nvvvybsbz026btA1EneXDBcj3QgamriZi4NXVE0BYFIFn8a0Z+ZYK102GZECV\nDjW8nO/I+MFWnvhd/Dfw3NLebsKxOim1O1lfQmOiXEpPJXMp8flxFtC4judP\ng427jIvxdyipFm8nH/Kupq2p/j+SgXzxvm1tTt2uBVArBf47H5hsDlEzGTVX\nzLTUKeyhrOIrtLv2tCJMyFORUe/4Rg2LyReoU1c9xvRw2HuBIhjYyTbRZMBe\nbbY0pmUyX/CzfRFHwSOYfCmwQ52GRMEG1/CtXsvANg19Izd9AF/cKMDyArm8\nURlvfK9KYh57nCfgULUML2WibHl0vSL2KnPXtle34WbT/goYtznUZUtgnuG7\naHjNxtfuTsem3D0BiQ6gSLHXiTvCHAgkx0IokQB4MAHc3fKnPXb3i0X2KlwD\nz/wS+AL9/mn/K0pdYSNegDXj208KyM5FhYZEDRSsS8zMJ7noJOq4qHZGvlEV\nLnKA\r\n=ubiF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFkcdcAAC1O4xbEqd55NSCBjHEilmkw2LRIDYaOG74YGAiEAwIa7/YwZmKqESJT5cihJMyYc4lPljCSYsBlDyc5K4as="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596491070265_1596491078591_0.8445564410402346"},"_hasShrinkwrap":false},"1.2.0-next.1596493555782":{"name":"playwright","version":"1.2.0-next.1596493555782","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596493555782","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JN6+agzLCOi/7yP8sg0F9X1EK9MxmxPI3JDdG7QYcV2E12v8hAqlSLNQsxqmkODxVKX5sCIAqATp2TGwzV97Dw==","shasum":"3bd77b60c4a023f9c440ac15c626d5f538f75c08","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596493555782.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKI8ECRA9TVsSAnZWagAAMYEQAKBSfOFrRfNHiGXkWger\nbkaBxjioC0yAYdEjTbdRbPl1atVHVPDeqFvSBQ5eO+BA0isvQ9xEDjyDstNS\nkch7i8NN683URpDHQxjO8u1tnhtjGOXkr8w3fsnlhCh0u46BmbG/0IYRyUW9\nuwxsizdgzJFs+qmNKw2EjkNpSXITambFSYSc1ZhKb/uxSyb+UxNoCajO/k9t\nKFcCcrcbt0kXEzbZS+euI140AKBP/m9hOL3kIPm9Vtd766qzC16kjsEphu5b\n/t9rQ+mAUUIrUvJgu2yRSdle0zY6Tsl12fvReVa0ccBei+6K/j9PzmIytSxP\nm4DbJqtiWdP+HKltrcyOlcx+YZttTSnz8qvjgMaW/eS7sAMOGVVpHaIeZQAE\nLGTyH+pXjK7wHu4He15tWJ1gsXQDb7boNz36FGvCNXWmX9e7N1ts0enIbEHW\nuKy5HjO56AxfAmcZAgH3csrOve+e1BIbsID5w7B587klQr1hvJs0a/UBXb6y\nMekcaYEgO4m/aXutZ528FFEtcVsYfLp57CHG5keUZqUE+Ot/Aiba2mQtyhB9\nUANgj9u+V8MOWqGoFTpkIw9Chi/LIPJ61hb1LSehO+M0Eot+vNixcJi+37oN\nCXUbsyONl04KuC6z+tHCYdjDH6phltxc+LKabBZDzarJ/CSO6inRJO7ZxTWY\nhvDs\r\n=BvU9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrLDfrL93qDDHzCIQfautQqAJK89Ts4yqVZNAGfpq1fwIgFXFJ01c0I4z94jTXajgj/rv2t+J+VvQj1qLVIM6qYCY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596493555782_1596493565036_0.9483199295721974"},"_hasShrinkwrap":false},"1.2.0-next.1596493712997":{"name":"playwright","version":"1.2.0-next.1596493712997","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596493712997","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rTsYqk9aHYtJGgmf2E2fukij8JMsmUXcgsrem2r84Q79ASFwc05RFAAdPmlDVxHGJ2JXzHPWNuH8qPT7+PopeQ==","shasum":"f11263c63c64b86f4d9f3773b1239ca8a0dd336a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596493712997.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKI+aCRA9TVsSAnZWagAAAKoP/0wUR7FJjEyq6RRiJ8+g\nnb55/anme4tn6SfJel+6etNMe+PuLp+GJRikXta3IR7vHJ9Rw9uaogBvlv2c\nWMmtANlFj1s7N/WJXubSSieoTGj7N7hpMRQQv/8OKo0eGxW011jLf+SfCjSk\neKlVYk2NuD+PuGAAhHYf462wbdHghiScSeICFP5hricGi8NtdKYaYiQfhITm\n28J9rAPqqMgTjcXw90c4tsHkUDQJD/I9vPPYFLsDKS0XV+9fsvlruR+1m/KQ\nEngfrW8RluOf5SKmR7o4KlEcUnOsK8SmagR68crV2jBo7B9/0E9wwcX1mBvp\nQ3QdX/aZckGkABNnUMim56epvdsRsEn29GnJb1g10kdQa3nXexqvSAp/PLDB\nMiP3NW0Inf/mrF0sD5hKnIm5RWdqeapmeSottkphOiwqt70EDgpR8Avnw1QV\ng5ikvXReO+xBT4sP4vZGi5CAq6LBsjjE/2rjKUsC6vWRkYWaLKWgbot0BAeJ\n7+d3zXyFb2kZmcQrxMVgFNI/FPRYg7uqL2RFKB3Hluvyl3p9S8qzSLeNn1IS\nzev1AreUcQqX0mKOm9q/TjQpHA3dhcso1WXbpX6tLYBmQk+sPRCL5EmTFV9D\n7vhz0gsUiTEFAk7uNEeJOHQPYkdJB1gD/zFcKMxEojDgIoshSJxI1pmDYrQ3\nqXAZ\r\n=zQaM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGzZLZWd+2oe8BEeXByiiS9a+Utl7pD/HQ8bb+MxY+4qAiAPFWLLzyHpsvKsGJMQEYHXP/SzZ3HyNSvHAlya8DSi6Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596493712997_1596493721904_0.741451155749135"},"_hasShrinkwrap":false},"1.2.0-next.1596496132595":{"name":"playwright","version":"1.2.0-next.1596496132595","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596496132595","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-4mq5+LRObITaHMbu+oUQkvNzMjFdACLk0WiQaFEUh+4SH8nYvnRy0r8jrdgYpF2ME4X7H1fhyezbOuUvMvAfhw==","shasum":"f1e766fc30ffa58a53b67573ad1eeaf53469ffea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596496132595.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKJkPCRA9TVsSAnZWagAAC7IP/0F8HSP32WcL3x9Q0KhW\nhyb3N2jvq0WLblro7o0Wz3jhd0DaQlGA1Sgi2PpeLnwOAmITnBgQDYPuYyny\n6J3lMNiFQKp59ENjaCofclOaY33gOzCQhtSqEui+S0IkNkm+M16hIzXp7jxP\nvcMBIGQuLrKKhqY+AVP/Y0IgzZOTFiGKrs7sGXfJCx/KN72lToaLZfQxtQTK\nJqBTeXNo762iEzuJyQCU5w9vb8KYDKTxPXaWeZ9E/Ya9u0OkJDS41+G7b+Bw\n3t5Aw3ZI4/Va3o0xZzS+9XWejoFcqM10lRVYRqyJJouDt8Au2tZ+uJm2E2H8\nDIdvCvbXHRPgHEnYvsAadHnafuyB5kUcc2SfZvlQuzIP2z8PZAe7dS25M6QS\nnlTxnuPbzrrCnsEONS8ZS/SgGQpBKweSOw9ehiKK6xW/O3Lqb0Y/xDHH1pc+\nbzH6exd6jRP7t+s6MLeby3x1wuUwUoFjOMzZPQtVrEIEuByVHMl4/58FvmKI\nUz68dS6AxwY4r21gje7gNgtzViAUXtbkGUOVeARbdfgs2uqGuKVzv4vrU7XT\nX5N9O4H6ELHmJ6oeCGCej8upNyQNsnfr7+uwIPxJQqoDG3Cmh+oORfqSODkp\nk2dOsoz7c1xTOX7gY5svwwe+oBLp6hoVskMgKPyMfMEXemGBgfwp8mojo43T\nTMKr\r\n=Yeoo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsP6i6e9/ZTPBTQFiRb0HSRR/BpU75HGNxa5ra3fpmmwIgcutsfzHipuU/nIXBZ6iLTkNGclZ/Gg/fF98kDZWdnsc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596496132595_1596496142461_0.7041091514716105"},"_hasShrinkwrap":false},"1.2.0-next.1596497551903":{"name":"playwright","version":"1.2.0-next.1596497551903","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596497551903","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0E3GPnv135Moc4oVxxSFjS7mdTPuDfVpOLy+eoUgQnl3OqETcCzjIL46/drhzsGviVzSEehdfXb4aVnX+Ux/UQ==","shasum":"090bba409c8344922e324eb30c41d86078787f83","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596497551903.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKJ6YCRA9TVsSAnZWagAAex4P/3aw4eCL7I3VtP/tlw2g\nVAxbWraUaF3UNzCo4P2dZPLZPtk2cwxBE199YyRrkW6lLReJAMX0ACDC2iwQ\niw9LnBkTimJpf8QE4nedslF5wxaertslquKZiV1HO9Ak02GjPYkrzZySiAYo\n3npODSFNWnxQ+1tMvLruOL432riOQMfF9saAwt/PtahDj3r9fB3EhBZsIL1c\nm2nf6/+fy82IKK0hwulLZUte23NgR4TmPX7T4CWJYDr+KUqTII5+xKzQH7Nz\nCgO36nmqADqjA5APJbH/TCaKW/D0dtj5HpdpARp1gsip6NZGml/Z09jAWENx\nEc45+FHx0yVs9i8R0n6n1GXWH66DIJIf2ncIpiqyNte847rhpXxG3FryZLnX\nA2FfqkX39rXgZlJVbxpqWJROZDvmhCozulYvbOQ4j9xINpNWb5PpO9uu7JXw\nKxS7pC2+cb3nM/dNUSGKwC4O9T+B/iwdoG1xLC1vGJo+EFhcnNn6QBiha59e\n1W95HaX5Ih6hmqrBDgPJ50fg5PXMrj5abV7GpxBuhmWakn8DQS4yVQo0dTvv\n2BN7nBpW7hgOvq3zTKxG2BY7vn/kJZNp3leK26JNAd6r7W6AV27b3wTn6ZPI\nVp4v/UgWdXsiXGYnHMemviTFxpAmhDQK3SC9lrpcqkbIsv5q/o84b+QJgFmt\nFhoc\r\n=Y/HQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHXBDs9TusHp3f2H5v3pUoa1KSN5OdXzofUbm3kWIvi4AiEAs2g2k0/lc5KvsMNhkakIwOkxQ9WiPLhpoCawWjD92Kw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596497551903_1596497560195_0.19502029781575247"},"_hasShrinkwrap":false},"1.2.0-next.1596511059378":{"name":"playwright","version":"1.2.0-next.1596511059378","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596511059378","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qPWShFQk2tzr69V+k9szpQQBwtfvAawaWEUFFogVI1iWW8/7Dp1VX5J/qOVqPNm8TDhO8U3nwlYW873Z4Q7RUQ==","shasum":"811de6fbb6cb00000053db1e50a5a1d5ecbc64b1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596511059378.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKNNdCRA9TVsSAnZWagAA9/0P+wY+hrdgMQO5+fLGgevX\nQNXzZ0rzFhy3ggMDYbTSxUcBCiWrk+kcIkJRJ74XhZGcw2ooz94bMXhyDdv5\nZy6PdHDsHBvZz1cZ7OIMSWBwGYx7kO+Iy1lUeEFjBl9N6IiqfotX2+VFrM3l\nVcRkRUAu4X+izD+xTn4JDvNqqvcPnwYypq/Z4nTXj71v1DzTIqEsXpxHHb+B\n71uwA45BXJ4/joQ9/3/xpU/3RK18/3KOcIXR1U3o1zXrJqp6jOF1PCinrLlu\negbwuPwYWp4f1yWHLIWWDij7rU4hIRAVo1JDiaZy0wNMtMMpvAXSyBRazQKY\n8kMwyzgoghNq1rBt5QyFVhMCljZzo/c8HXp8/1EQ8eCUDWa4LWvLyCsm+y9j\nJfjBbBGx5EBvIxDZF0cX9S/t5SpVdY7Y0N0MSd4/8RmpVDhoK4YSJEFBKajY\nCAZkEbdMiaEbL+IKyTAwE+4dMOCcOnqe73uYGrqTZDo18t1wOa6Ug7wypHQm\nTxRyUG5t9Nm1jfaPDqBRNapX0Yoayb1ZONDwvtcslr5hxhliQQWKLm4lmH9T\n47d3vQKkw4oaabyuBo2dboKux54jrCRhtk+Dt9I5WVS4vAejbAtdX340/9gj\nSoAsEjkDnBsBORJcHpjNITJquP28Oe2RtlAv/Y9FDga7eel1yrAvOM6oblVu\nTfWX\r\n=BCKl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDuvTancCovX6cjUXfj3dblTNQSLgs4cFz/3+3sJBHAuAiEA/I6IFzlUNccKVQ3kfUtQjzoFEB/vjQacVK7rx0uM6uQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596511059378_1596511068784_0.21241898390157576"},"_hasShrinkwrap":false},"1.2.0-next.1596524656594":{"name":"playwright","version":"1.2.0-next.1596524656594","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596524656594","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-eUh4i9lDjyg2t12MQmNTcwNpU4ItPBK7ZA9snyOCkbLalBjDZUPj1aQeN3Yy4PYXLLWBcTH7fDQisasSGgIdtA==","shasum":"e88a0483d0901aa1b41ff9568b8e29e547437e29","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596524656594.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKQh6CRA9TVsSAnZWagAA47IP+wcAXWVYzDWthyudJ8f2\nejiZZ1CCsEJydp5VTm6xkTtT74q+u3zn9biPvQUc5TJl7lBc6V6lTLYNTWRs\n/Gqjq2VCsDp0IFOZxV89Jy/MBLxx8RRXqJP4stIOHn4nvmKVzfgy3s+FWLUo\nhNWexzeFx6vFVmBGfcL22uxuvwXBudlaPcBdCFvQpalhw6WKwktNfWTJZXr8\nNekrHCDmzs9SQCvleNaNNFWLZaOy9Lq9Atwx9skU3bz++5RwIhbgXK2L3o7U\n4fOebAKdnCR7dqUISNAk2oede+3BZhC0kfkNyU9utEXDLU6pljz+eGLaus7U\nssFTWsm7jMbgc9d0NbMuR5mNTlxCAgHHdxbNM+ENz2vXWpeu5rLdtesTlgWC\nbpbIlwzURQDt8+PJRrvLwL5q8pL8OQ9gvD3ZFCL8EIGCob4JhYxdWam4D9BA\nDiZHxU6ipl5hIMyvoBNIJyvKKWDWtioRWE9rhBZs9DuvCjw/UT2LNy6jgauN\n9XAcWw6zPltos814U9sHk2AMg2u4TjhyB+ee2IAKrB0ZMhmqldDkRVrilMvT\nlJX1tH61BG1B2JmNEOq9NOgL98l4GRUHdWj4ZWj0DIFBe5/R1MnUtaXJDq2G\ncxqHeQkBrTJ2elR6dYU7r1ug864/fRsUqriuZ7uvAx0zxxYGjf2flWffsLv4\nDnMY\r\n=M/qK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjfu+WHqC6dB8s4UM03uxo8OVN3BLUk8rUFg8hDah1fAiEAlcl9W9gEMUAhFbwAmvKORjaHCfOS4/qSBA5LPcT1D2k="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596524656594_1596524666200_0.2791271033624638"},"_hasShrinkwrap":false},"1.2.0-next.1596573340874":{"name":"playwright","version":"1.2.0-next.1596573340874","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596573340874","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Kxjz1uHrei68vuj2ML9ziXj1xEt8l679m6wiA1GZedNGXvvc7xMhLgO9jA0aDK/9Z5ZPRUoUYjJQEK+0zGuavg==","shasum":"a19aac4a9eda6c8736ee2b34cc5a86e6e6313aed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596573340874.tgz","fileCount":159,"unpackedSize":2409566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKcamCRA9TVsSAnZWagAAiasP/RMNM+Dal/4SuJXUTSyP\nhxc+uBO4YjK275/FU4ySkI899CFLkf5YvezCRlOdBdB05KY4puvZqEWwfIie\nOsSdQjJzLER5cUYP81/8motUxwsxlVB/l4YhS5icTmGyrElnv2ZuAF0ej7dy\nkZQ+ECkh7KfQES7XL3Luv3tpxjGZJmUok4LRUy6kUoWFS/k+QwxRuvjlCnEG\nfx/PMl46aBkEdymdVEJoJpkMSx6D4d8vh0x1Ct4hyrdNdfNnUrdRmglGQBwv\nGIXlkdvyr4RxsN37BfSnPrdhA+KE9MCcEOlNttzV6ketI/a65YKSE5/+PiEH\nPn9tv3fzMqWNFYG6sqUBqP3ThRydyhRnrdoy1Z66sLSQTw8qbN4AZy5DA/Zl\nFRctdHWgO+9u063dErWloeWpLZsJzkq1f8OC9ciQFDxSvJj2q4KS37n7Ycup\nIrmTUB4MzIYfOJBCzFkxlMWKIXaLkWiEwKgdp66tGB7lG0/j2A125yKH+hhf\nwiS0J5IVT2sylfF6q/agDncuTwdUJqNhFqcJsr/huYJREuMcF+zYHr3OcA9n\nnAj8xdIKZYr5HieIpg4K4BWXFAE3mztcYzw0hWejjFkrPHmJl1RRYs+lvTMT\ndP6D1ymIVXhr6+mbrqUYDKBfWTLa6iR2ze39Sc7I2jdh5/0Xt/NiLlbg6sN1\nXXHy\r\n=iPh8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKvbWP6gRCza2XRBXSDWSNMn1tbazNjh7KyQ8D5ZNnWAIhAMS6tm1J+Ia4ck//D9UxqY6JuH1EgTy4wBir/7URKIrN"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596573340874_1596573350346_0.6009228897828212"},"_hasShrinkwrap":false},"1.2.0-next.1596577650994":{"name":"playwright","version":"1.2.0-next.1596577650994","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596577650994","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-u3OEM7M7YMdEfYY5hj+oGKmzPnlPakOkwJwI/CBJoTO8yidHQadobtY3jcmTcmp//EipkP17T9iutE5ym2Df8Q==","shasum":"90d297c8a7c1c8f23b665e2e08411ce2a055afbf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596577650994.tgz","fileCount":159,"unpackedSize":2411325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKdd9CRA9TVsSAnZWagAAkg4P+QA9v1Z8BhljqyPpoNBv\n9WKkkw19kCTFDT/uhp5PYRsh4PDF7K6e97zdSZ97shpILl/bZiAQEX29dFEi\nb/SfQs8TP8auKUI3/c0TIRJjlCG6MEFTlxCGeQiFdyHJgKTqKcoJzEd/nV1G\nc9hL3yawiwdgmvbYLd6+Khh4stGIrjAtRaSOpNIk0kAaoMZVhl8LUcuLCuZe\ndE8VfctnYehRZBSUgo+N4XXbTMG5gHXML7UfZ7DY9/axvgGBs1ECqmPLl2g3\n+n9Na/iOEzmvQ5dQKoQy5nvVqOrPzh6Y/bZaFwH4v+37lRMaAuIUFJN7qe4/\nplp+UxdZ4r8nyT6wZ7jACMoJ1cxROUp5ph3V4BUPvpUWHXNQ8w4qVuJ8NUnR\nfMY5tVxgUKcOTtKDX1feRsnXyFMWI2zK1CIzh4UInoiWDbzKXRqGr3m9Fw4A\n8RklzfI+D4JRsNP2YQTRZcdfX/xP80t1vBrxe6FTwHOy1/bq5GUKjfmqSUyo\nGUiXuNIwha/LeB337IQiWtlWApBAORnYxJpWpTNERwCftIWEKVGR/i72ykCQ\n0SmTZ0htgyH8hV81gY+vOw4CRyApmd3qP/YYHdOl1SIcb5eUt/rmQhLj/v8+\nqIPSJgT2AzAB2qD1kuWl2w0W9OPH1JOTYMvayYIetWUuufy1gjrbkGdVJYZt\nehG4\r\n=F+NN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC6uMLRn2GHY99WquMdpXkU/o/dyYmDH/ZiA8cY1JWkQIgcE63jK2HshFfkIJovxP9ZSrZO73Jb9wB1ta/XX//d/c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596577650994_1596577660850_0.4581452765813585"},"_hasShrinkwrap":false},"1.2.0-next.1596579088345":{"name":"playwright","version":"1.2.0-next.1596579088345","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596579088345","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-epcVwaaPLQK3pOYcdf5GFH9Tv+N4g1RQNQVCIfVZ1N/jl4h5Y0Uyt3oa0oVp7ecEUtSJJpLXj4MwmjH51g4f1A==","shasum":"aab4d099d6de5ee718ace0cd0dcf7fcedcf74540","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596579088345.tgz","fileCount":159,"unpackedSize":2411325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKd0ZCRA9TVsSAnZWagAAFU0P/1daw4itp+23TLzwAkD7\nZVLwSaD3bXPRiJGxrt41KVRYmvXHlV51lWE8JUmOQdzRYnqwQN4VbcCjtE8A\n0+BXSH1IcWZqYRFDVbrlWW7tQncliCXaZCFw4WKHsQP/q1ux3faymJMHkGXE\n4HZZT5rsAzNTB+0MnLtKUNRdUnMTPpa5HSl7F4bUk8dk6QxeTZraZ+flDFNP\nUUKyi9OyBNShie9yCsfrqOVYWkRhT8wLxk5di4cYMGux+ubyfg8dd7vHsCd3\nR8dndtnQfiCqUTAmqtfh3SDY9QEJfmukpdhJlMX4Tok10WusJK7GF9mi/G1D\nnbxRTCMbjApQePSKtXJkPcQGPEeolyGov44iab5R/XqLV7xb/bu5v7SE/0BL\nzP9F1zQ2aaHn8zAl9ZOpmA8AhhZFthcBB47EzVxv6DVcz5vczi9OtYiSir4H\nr4ixXvI091Ts07TKuofUgr7kCPALPGL+8q5fnx+Pu6cSeLHP+A6nW6rxEx0l\ni/TK9bHvJmhjUP6RWKAy6qJNFYVM2URTDh64/bDzeE08DOJZ7cyL2rYsotbh\ngxFBqc1Rp/IrjlkWsm3fJ1pIcJ0DmuAGDsYnbv307kEepRu5j4jUPzWChu+o\nVyQef5eR1akopmK/9uVkP20vSxi4GQRbScyZYfm2G407BDVd12LqdkGJvYOP\nKOAm\r\n=MVHf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCH1fay/u0UW7+sLG7Ayl/KqGeFnplI3teOhIPbTnIPyQCIDA1JAGFcl9W+cJ0yU636/9eDo1R+fuNTfmEkPDdfm+y"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596579088345_1596579097293_0.2228888703560714"},"_hasShrinkwrap":false},"1.2.0-next.1596581438258":{"name":"playwright","version":"1.2.0-next.1596581438258","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596581438258","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KXoeklXU8EWftmLo5IwbA+gHZga94wFltZBjFke8IbW1tyL/JZnt/DpkcJDl4jpudtWeH+/fW27uh4aXFdljMw==","shasum":"7f751816fdb1fa1f74e85b534cb1c5bc2c8c2126","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596581438258.tgz","fileCount":159,"unpackedSize":2411325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKeZICRA9TVsSAnZWagAAHcQP/0XH4WQdpvoV4bTrABgH\nwqP7AdOJyCo5ur13Ufxpv1m3XSmlZ69WOl5/rkosUGY/KfCBx8CJHwTN2IKH\nhmgi5MWSn6covuCyQdGVEKi1cyBwB6CtCaN5QZ46oUoYAHjVzihO4Oq77JOj\nMOey9y3hEUFJPhQsq7FxefZ+PlGg6xFOk1HLkGCnGyQ2YKeYbtwjqzJuoedn\nlMSc9G3mo4RypxuEO4qcCmeLHMdUlisZwhQcecwrtinPdPeHryZBRv8/E3bl\ne5WCnDfpD5l0JwHrcv0prNJ03tuVDOQw9eBmXThvLdl01bpbKD9+6bY85gMt\nyrp0InEy4oJVhkAsTylyoJB+ILoRXy6Ru2jS5iCufwGI0fPOewBdWJxRDnOT\ncyJQcJDlWvj/bihzpcotEmGaxmxpFoJm78wOkXIw/Y1qN1NITABUD1Fx0Psk\nNANKRdZk27JuPgoPW39w2piATmeI2S2hjhyL1GoPSFVAcK1UCefUdWujX85e\nEeybe2xAeijmOIEXntVT7Mr5+ohHGzrH5wfrymeMPFvTMFGaN5mesjn9gerB\nQYkkZf3OtypgOgBHacfxACZ+s0/qhjKtfEVbhhRqtslgfvBc7KB0feRNjlws\nTkXShjhosi1BmpYvCkrQ/yzlp/G7+uJNodfbjQzQXeFEBsa75SV0whDWQXzY\nY4FU\r\n=+ZLl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQknAUpb+9VkzEePULSu5fjGXSmFQ222ilchKhOc+RvAiEA9/010CCX3CMrZm81VVDX1ri87kay+B5VAjcVU8jNHcI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596581438258_1596581447481_0.8796251455930342"},"_hasShrinkwrap":false},"1.2.0-next.1596581963620":{"name":"playwright","version":"1.2.0-next.1596581963620","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596581963620","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-yI9HeFG7MHwKuIKYJr1izkROIc9sJDh79oBiEEIn1oEcoVKtVF7X7zKf9IE898puy4DoJVr+MbILUv9zRbM4qw==","shasum":"0bc733c0e0f9acc995408d1597d4a5a1710c71f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596581963620.tgz","fileCount":159,"unpackedSize":2411325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKehYCRA9TVsSAnZWagAAvLcP/ilVM5G7LcxrjXCQZhP6\ngVF1/QLxxF+T33eV31yIRuV15EApOZe36PxWV5gh6h11cyVTI2plJAhNaB+3\njdmo2P6WU532BPqEBJEIbdCEPpF8+jBHbrlxMD8tgmTDwDUbr+Vr4KWGugqm\nxlsQtelhLWjHOwdyhdI8Bn8LRZdfRtTFlMZz+WSvtK5R/1OPhLm/bYA7B1vS\nYEAnWR3PB0yBE709vMUukpVHGrw04YtcZTnmRvUl4/1Kj41kgpOK34CGeUJf\nD1BvT3Z46A73qKV1S7eN3P5GPu3vxF9T13waOYUNt7j6e3ErRuxs7rxfHXhy\n3cOS6Qq5yty6Be0Yt8Yjq5gUAsWmilzbbHsk/jB1e5RuA5cKa7KfWjJdBxzY\nkDdlBkIQ5hkSK+muyfmgvgAxkkzS81S9lk7zsXkhshC4rcxg6uG/ioYowX7Z\nWSmEUrbjKm43c9oBEKSMLcp/ZE1NuIMSncsKLc/eSJfwqyIfIULaxqin10kE\ncvvNoB0QH9F5h/nyQN0xAYYqOrPjYRvtELEFdhkgK0sBLzogclVZrHIGQq1h\n8Lp0N7qnhSaS2pxq1fU/16YqEkPSP3/maqoL2IDK1zWrDVYwnlxLLUFas+iD\n7lEhLIisi0gPSHoeK1mH2hrYGL/DZ6LrdMc6JcWynCP0w0aPh5Gvxa6vKGmh\nt8DT\r\n=vPi5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5vUIHEyIOLONppVd94LIDQp/NJOvNkTXPJTBD7CQNzAiAjVuqirarYkhoaoTitVbY0EJv0VAoEt1vAkFaOWcnBdQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596581963620_1596581975471_0.42344561176741125"},"_hasShrinkwrap":false},"1.2.0-next.1596584043868":{"name":"playwright","version":"1.2.0-next.1596584043868","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596584043868","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-pacjjaxiOmoLktYUMViAIjc2hp/LI2KAOVV88wjTONKpeRaGZ7amt7aUhlgQQzw8jb2ZphGpPsFpfE8Vyw65Cw==","shasum":"52b676def0a5581b7f73451f25d8ac475fa944b3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596584043868.tgz","fileCount":159,"unpackedSize":2411325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKfB1CRA9TVsSAnZWagAAmPEP/2rkvzPYRF1dlhp/NVQm\nZXajfen/7eQ6Tyjzzz6LSRPwJ/T1FSPN8byOeM9PS5EJ91D+yIXt7pMpQspc\nxA4oiFVos5H7wb0pTa2eARpc5TVliNCaLjSUYlxsmg78VNfcQxKAbDb9xpBN\nq4NzKvK2gFAzDvGEK4NLxWdrDEWTuLIs3fk2GIt1k4CMsmA3cy9RsVd3qyVh\nly81i2wzcf1RnIEPiqcpkXoH/dIhAaU6F8h8FFvFluv3mgAq0mDxVaXYeXtP\nShXSRdzVGKGCTV1lb2uUgjj2iFM6KyZtODSS2DyDGXcELucOh9mtWRRHRMj0\nsr1Otq8Krp6T8QPBuU6E0s+AbVplZg7aXCW6Q1gl4ssWb7BzUb/uRu6Oolxb\nehMEdqUA4Nnh8nMXOSJ8MQieGseNnarlLCAflvqYupSq0wfiXcpT2c3HSMCZ\nd38zYwWCc6L9qdV4ZEDVcyWJiErlg+lSc9AHCOmxHTp5bypsrwkkE4AKFBC4\ntcWKw3+OexiRQ4jE+Ej3y1WvSGSl0mUN2qsjP1aY5CQNlrIl5xHyX0dfVc5T\nUvKRnho15BHZqZUhL4u61D8BvGQdpfoYGmLGuBubX2ASI1m29RuPR1qD+loS\nqqZcIBpjQIrlYDDct5UB+2BkQapiTPnSPIUv0F93gQ20IcA6ccPF7ENviE+F\n3lXm\r\n=coXP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQJiIRoBu/lDtix+CLMDOT0gBdsNOw9SshFBywjtWvfAIgGP+zXlAQTlgGbSy6JUA4SSxerKRJXI891va1i/eSqAI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596584043868_1596584052745_0.4808685243419413"},"_hasShrinkwrap":false},"1.2.0-next.1596584544106":{"name":"playwright","version":"1.2.0-next.1596584544106","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596584544106","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wrFnqkABHPGbwr4m/7nJJvZ04EpCvy+QAECYg5nJcRIpq8qCB3mYRE0xz/TWVqiDRUSym3+xWX+I6cxv5iCh6Q==","shasum":"291a3a06ff0955a016d99387323b661a4d927079","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596584544106.tgz","fileCount":159,"unpackedSize":2411325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKfJoCRA9TVsSAnZWagAAWtcP/3CEXAFCsDfLuV+8PJk0\nfUzHGnQZUgE7tr9XGbgbMJ2WAlPqIMKqyQtEKZGQAut3ZtPyJ0JEqXXAAQt7\n6nEdjDE4MDj9f7GyFKe8qEfkd46uuxniqa/mirTznjs8q6QNzeCtCoLqW1mw\nngXNzharRBhl7jBGloTyRrh/VNEEWT34QDGLDv9F5p5Ww/GterikxpJLhg3r\ninDtw6FBtXVfM387VzzjzbyxiIZqJ6tzc6wJBEw1KX5zQpNmABf4SxqF8J7P\nsRt7REdqVb++yjMTYbEMlg4JTaR+FWQZoLeG3vt+F4J7uZ6OIyspW5G6VKfg\n4YjTtmbnkvfYz+hW2cqvqVkSU6yQZ2+QmovIW7qnXFXDTp6fN+uVDh7yjs4X\njBRSmdmZJj1CLHa54BD51ZDAtohhfg6MhtukztfJGIHh2n95SXbUEDr6hGVA\nIqFt27UEr1XB3MhcWS+I2hbBF7MVeUSkBitrdI8aP9TUiRyxCNadDxgBCgsr\nZC6mOs+tCyzSsdngnsiy2HCUKWE1EsG0IoqdwGmr+CL9/Gz8msfgh3gohSZ2\n+RJoFHR02aVa169h+ne1JUIhnQ0FVIMLZtVOt69Gy76zSzWzw+uaV3kyyStV\nwlGoHZ2i+fvpVJfoL+bwxeavg19N6o5XbNNqfnu+kN84gxpwk+IuMVLGDRPZ\nJp8E\r\n=mdPX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFKUM54gbWjeGSS7jUIJSlEpWoGG8W13dJHyNsefTOHgIgNVMtD1Rz5l19fk3M7zahfmKIO20VkAS8s5eKlKjOY+M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596584544106_1596584551906_0.9050952905142113"},"_hasShrinkwrap":false},"1.2.0-next.1596587300399":{"name":"playwright","version":"1.2.0-next.1596587300399","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596587300399","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/WUftlliaR/4IsMOwSQ6vpAeiJUkWPobV9AgE85aXUumUaPUEtIyhVGykUFCkTpYj8rPy4cZnljTc9Nj6UEAgw==","shasum":"78e3b65eb35fad3b50544a560c6c31ef0175f11a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596587300399.tgz","fileCount":159,"unpackedSize":2411325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKf0sCRA9TVsSAnZWagAAiw0P/0PCJbFNJ5SZRQOjgM5f\njaN6X3cvP2byYx95UtnmkEB3B4Q+OtKmnU3OCZj1JkQT53NgA5aZlduLE+J9\nqAAJ2kHWeeCB2o0cxym7Tc4aTTcrMF7BnAZE9OL0Du+ZpqV1dv1ouBdI7yVN\nR5M5CG6uIrAVpjALAwl7hSwVOMmnDaqPGDvUHcKf56EnI/3Cdo3wjP5esw4g\n2CYXTgE+bDHSCF3pUN2AchHVpdnX2rDTfZvjtBnOPHFWZWZFvb+SueSBvAWw\nuqdD+o27chY9TnUpJ7hFiqVIB67EtUCqtQZzu8pmg9588BTztDixbyeZQvDz\ndjhwhkjzbnRyTeBXi0qdpRf5h6aIaU8H3Hg2WKwfVX3cN1uvv4oHQWlZ41wc\nGAbtkuQYnpna6DZNre6yNwjKm9jKrpu5CnKuiOq9qj60SgOhfSIqavb9rtXd\n1LZ9lAwDjzMy1IFv0Ujdx26/AuoEBKVhFmOWt/+ZRZs8z0ECTtOD49sK84hk\ndIawwcZO04xRAek0NXgvu+Q/Orgtjxqs75KLHsIW3xZrlwyqDb0n9bzIsaDb\ndlsfZ6x8w+6VTi3tfR5pYlwvFdjQiP3EWW2AaE9DngPq+GHbikVV4AWTeqEh\nLrrKZgA2aZL1nKkGCgPnExazALikT/842RY8qVQZ5tezXnegaEp1rl6QfqU7\njnA+\r\n=Bunc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaCuVv155q2z9Hc9QTY4ZM/CMAVuZATAx7G99+p3tglAiEAw0bTqYZGQBob7s6q2up3eopO9NiQ0VCMnuIAyUU3zqc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596587300399_1596587307520_0.12293012764519329"},"_hasShrinkwrap":false},"1.2.0-next.1596588055128":{"name":"playwright","version":"1.2.0-next.1596588055128","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596588055128","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-I8MQ5nLcPOjkv5MkpgJpcfb3Gld/fWgkgECt3Np9pIMxPN1ZpcW9dwJIeCZbs+3BoEINM3jrslfP6jwX8lpOvg==","shasum":"8cfeab0ebf9a341b0913da665c430247af1c0a3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596588055128.tgz","fileCount":159,"unpackedSize":2411325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKgAfCRA9TVsSAnZWagAASjsQAJ3ZNeiTlI7qoOnxbhhq\nFINPeUE2oFdlOHOVMvxjnb0CKneDcRkoqMQxZiYjIsot9ho4wzur1ucfAzPr\nY2ycJ+2r92oWGVIgi8BBzrbWaGX0USww522XOv6+7hbKxaC2q76qkccS+Pk/\n1qqyLsGyUTndEk95Gq1lWQAiL3N8rbv3vLa7PvwKVpKbFjc6UtEnoYuiYtNF\njhU2ujk8XFYSK0CZ2AJmY+h0gxgBtQUjZOPI0+NLniZ5AOjGj95WyuuX9FEa\n2OgLIpBS71rK6FXKwqrxDinxpHJegiPoYuY4+CZGoDyxuIHrctHPsMTrlIuf\nUMRFeQ3dca/G6EedegeWx/yZVBNTvkvMVr9kwZOIUc2+Totl+GSrItXNEkM/\ns87Fv9KNfMNkQPHARhmrFP+NUIUX+XuJc7blDPsD32AMVAOjuUKStQ2cFJCQ\nCJfjFq7e0H47T3Aq88vN/JYFQi7iOgwF+25be8TqMteMZEzI901sJq2F3F3J\nkBS3dNP4E1t5zugu2Mj/OrajAZD8usFhbPXJEdmHzjhoLiOfG+EgXuKnpdLJ\nj6ZzwmD3h/YyRpyvHAlrSnvd9wSqvwatw60CiNvZoEfAmnF2IvFos8ma9rHN\n3wGs/PRv6mmv52WUg4OBGeY97NC0c174lR89fNH+nkVLIgy55ssOsYvM0Cq+\ngjyr\r\n=k/nn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOazCTyVCwwbc1FSfte2OO9QKROlbN/H/C+umweYxN3gIhAMLLKzQlecKu4OwJef74M6vtnoaqA7NdxFms2xDzKvZ3"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596588055128_1596588062987_0.17139997893742365"},"_hasShrinkwrap":false},"1.2.0-next.1596589266682":{"name":"playwright","version":"1.2.0-next.1596589266682","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596589266682","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-4ObN4cGgWd/oQfFx0FGqH2vzEyG6Oc1yTvhAvEElFa8I0zOhJFWbldRXT0hf+hvmSZP7m2R7dbTu1L1jYWyUDQ==","shasum":"4fb484e8319b746143c51620648a9b4e5aca359b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596589266682.tgz","fileCount":159,"unpackedSize":2411325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKgTdCRA9TVsSAnZWagAAZcQP/2HJsL58yUQuGw2Uh4JT\nm+FGWZz/154bX8jBPU4WfdSNNz8jFmKoe5tOdRCZKHMjn1kZcfRI5iC5oD3Y\ny5MGKWk0dlnjBHJkwV0rDWAIggBxkO+TwzY9f+OKKEkaLNTYA61Vc9iluKYO\nY93neFDo5PqFFbP21GvnLNYdufmgKW7rFv8f7Q4Jg8mzUwAqzDVFRO5r4Myb\nZjWwUdhnxmZMaFNT3ovWHLT5SRnKjkyKem0VdFbLrliGKngR9qqeCQr1hLhd\nAxGFA4t5wL61ir4YhAO8MJKZ/PU4VRJDTpf5SjERWehpcVYQ/Tl3boiG3p46\nAOKHPhBpjao1MxmQtHlaGMbRGQr+sJa5El4NsfUYAsjL036GD+oGhRI0tgA3\np1n6pdzLbj4AL/e6u9+lxP8Y4vwnkjMviKNTBZr7ttyBewYj2NEVZH7/iV5l\nOsSg6ft/1vP+26UfatHjQFFZ/kSefh8z0gBqQ7qyAIE5i24mTqvTbE46kURS\n9CTyf2VvXJZgJbwM5ua+Pcmbthz49vn2aX2MQULpWhhc9LJBH5Mu75QmBa4V\nf5lg49e7DcDqJld/NthVaZBxWVQ7kjhfWvng/NUfI1i9/W3Kigau2xoUb6oj\n3ILU2uwrUS4Fn9dh0fEcSYo32/mMHU++jjrTes6bqr5TMt6iA+rcA7ELw0ke\nlDmH\r\n=YBDA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqbCzTyzqIzmSx7N7y6wm5kjDzJPK5Dh7DF96q3z0BqgIhAJPJ9lEBj0sqwg1b/YqW2/ln3SyhdkHMMJD2roYd/4Hm"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596589266682_1596589276385_0.4064720454168951"},"_hasShrinkwrap":false},"1.2.0-next.1596646626148":{"name":"playwright","version":"1.2.0-next.1596646626148","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596646626148","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-hC+XYQaZV5i9Vg6vr2FfXorL7S2hvNZDGtBX2P5H6PcU2ogUfGUSvkoN8J8+41OsCCQla5UwQgpnvu/Jd+bKaA==","shasum":"2c734c1f0bfa5136a7574fc2dcff262bcd264558","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596646626148.tgz","fileCount":159,"unpackedSize":2411437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKuTsCRA9TVsSAnZWagAAq/sP/A6a+7fwcraG1JZbMUy6\nX+kEY7HdCGjIXbuUc6KHmvZ/MeXBosiM5dDhNcfRJjgy9ugGLrG16f1gnKxk\n9hCsZyVfHDFnd2tzKkMN4zLs9Nxg0eytABRvXMNq+0hzZ7YRfVMxCd0gKZbQ\nbTJMsnieOYZf7AjwJzi81i11u5QBLhyxNUUiq6cdX83WETKG2cEwcgR6QgOR\nTFeYMH950KBhLttbfkAR6EC69+trSRwcwj+3tRgs8JU4WrJdCd0SYYAxNCOa\napi/eJ0i+UzbpdnB9LrdDh+V29iWzIv1U+FmPdZexT+Z9plhqC2qBF7TawF4\njXuqEkzTwTCXhE5V+ukHz32uljUULMrHs4PzXmrGwJ+Q6nE2flCFcsx41UYv\nkU7oDA9YatmHrC7RMI3Du42kGT4HNoFlpnHxcNsjL695+AUkF8b0jXsNQ2t4\nRlEGbDw6nfucSKZyp4eNQ3LKDgLEq18LzSCiNXjtLs0X4OwhyMQibABP9N1K\nh5tYunnhHMCfYhMGT4UP7HsMOSbIykFDpRVMdpnHWhO5HEqPuoyVNI7oYR8Z\n5msiF/DpkpSmkdHwII0Fyxku2oi+rG1+C701DpvwKZajIp2C4MLk4O+22Hzd\nxZqrXUCd9REVF8W8LdDbB6PMGKD2zqCUo7aFk9YHabMV3XGK24V1cGjNN5i0\nxd5g\r\n=BNBu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbChz+TP3dg0DanU8Gni4iIGONNBnF/F6dPtb7FYppMwIhAMncq/HCyepNXWUUCaRfsPhQqwgdCcZIwTixFVZycazJ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596646626148_1596646635815_0.3909974516271917"},"_hasShrinkwrap":false},"1.2.0-next.1596653191842":{"name":"playwright","version":"1.2.0-next.1596653191842","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.2.0-next.1596653191842","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PM0jcH9SrgIe8uMWDjdW/Yi0z6ZkY651xVrifoacb+yWTZYC0DLLt3ZWPBaP6yFVmRHG5Sq2+5ohF1TSDOzzew==","shasum":"6fa31c8e564dc0437e3e9c073ad1366f82169943","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.2.0-next.1596653191842.tgz","fileCount":159,"unpackedSize":2411439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKv6RCRA9TVsSAnZWagAAT6wQAIOa8zOIzDgq4xl30iOs\nXXqpPrfVxfDRAzwvTlF2czEiaXmXXi7cp1V5cFC8c4LAnzOF+my+VfuYOaCz\n8iB1akORKxdihc01QGD4idTZKdpxlsdVLGbTaweebIn8P7Ni6vZOLdnHH7St\ncUPXxUSL5UWE5V2u8stHzCpb5/x+StfeoxpAxUGIFEbHaZBaZaPlWMbnFWx6\nALztAzaYjuzCNCjtrqUWiD9LP4fknxanW0ZKu76Z8upqBhDRsQ4nF83UibfF\nH9cS6rTPHf/DNpzK3NpTMjYMOYMwxi53pfrl00Qm0HA2dJSQhFYNsLM9GJfG\nVTjEzElB1kcTAFhSJ2W0ndpWkGOxGgg9Zqze1gsqufjfwCWvd9b1UEdH/P2R\nReGfVU2SwvknblAZboHv3QCnipoAAf+fEWL3F7EwDb79h9o0LvlTizFlceEc\nXPgmeAc0xKJkaz04haQFL4PlmxWWtIALZCW2FC3D5hBMUaqv5L0w47OleEGd\nh5Gyd0OMyk/6yuCx+GvTITWjNvmuxCUvqDJaCGJMdHJDJN4usMdTH4XFfgjl\nh+e/WG6fpNiFcUSVwaPHmKWHdpsW1id0BOC9XtYfQ5ZLGQPs8z2QHYmBmDXp\n6kGmzYK5K5Ty4Ol4orHi9LCG8K9yrESL49UYpIUT6+FCyVk2hgQ8hsKVu2Eh\nFW64\r\n=sAAy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQoWe4lahdMaNPBo/M7W4JyZDLm2d5/H+8ZQOmLQfzpAIhAP/1rI9lnfibtGRhLzUsc6R01lamxsUf43lnr1Huehyc"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.2.0-next.1596653191842_1596653200930_0.5930361944740021"},"_hasShrinkwrap":false},"1.3.0-next.1596656102521":{"name":"playwright","version":"1.3.0-next.1596656102521","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596656102521","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/CzSjz5Tb6NxLPoZbKY23tMMg09OTuYraeUt+dAkV6ae0IafB0+S4h04ecntQ15DzaiBoEo+fzJxpAmxANzDUw==","shasum":"9c52dbcc4549d695b4c7bfc4b4bfedc8bc12be75","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596656102521.tgz","fileCount":159,"unpackedSize":2411439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKwnwCRA9TVsSAnZWagAAlpAP/1PK7R1+epovL30Yv8F4\noUwzVfrVgb1/D43KKaxwuoEiMxClZSL4YHRdSomDrF8vzHaTFQQc+wyCADMf\nnlFBSz1fFrf8GqQAmTYVcbafOTxpZ45piBXQEIBZgKKBSJG52gLlVOHwYHlm\n9FbWcC9ONPT0wUZuChz8ZAqOl2RaKMIXvGLVWikYNBbX37AUvH0ejRey+Wiz\nLSYxxvkJzoRnWxIrz0Iv35UdPr4HKahnx+k9PS9zD/waPIy8L/JB8B1Bq9PP\nGu83poTb2HXH9f8ppvXM/mlbGrJBata+p2HKJD6WXO63ylto9nX3wVH4MBg4\nPZokMq00q88fRNcYl/8dEkwhv0GF72vQIp8t0VR6pabZ5BaYPSR9k3x6v/Z2\nX3oXuM/4zjnPfiCs6X1vnsY3ePB5VNe60teqVtDixf38paZvRAWfzX0tG1Px\n3r3JSbmOjt1nadrcbfxuy+g1zA41pqjOrY4gCOTtSVhvdpY6sx1RveCva2mY\ncKKH+0zcuwhWxuC2uWxaDCzN/6LrtLbbJQZ7KcuqSVf6nGl/vryGPtdQZjBJ\nged11URtTQ8FDKZpYJn9Hpi5/nH4dWNVr3zX6xWWdZOJaf0B3kFM++VzeiI6\nbOjlPD1QUha1GswVP6cfZOwry1As6zEJjA3UOUaXLT/s2FvxDPggbHYW+Evv\nQTtD\r\n=qqdH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYF7AeWzzdYW8jJoRja91O05Sim8YVKqpxfl+dE4tjLQIgQdlYylDStYwzoZsTbYPK59HXBWHPFDuiIMcs3hlPUQM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596656102521_1596656111486_0.7102202183727788"},"_hasShrinkwrap":false},"1.3.0-next.1596659749397":{"name":"playwright","version":"1.3.0-next.1596659749397","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596659749397","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tdOl1aYDPSBh7db77TuKVydMd/Vszd7sYbb8kVRQogBclClfC8V2BMp7TDGX3tvX28S2Esbn23i9ulgVL+asvA==","shasum":"36c4266603aa99ed32c805820317d4f7b73f46a7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596659749397.tgz","fileCount":159,"unpackedSize":2411554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKxguCRA9TVsSAnZWagAALBcP/AzhI3KnXAVcxImXSfLH\n4y4ztj4VeVGR9ST10s671bOO7B4lnl9ZokzwIAla15D0kDY2+lOFonYHax2h\nBuaJwWfWOXqcWE27bXWTSoW+HnF18YuTa3Y/czgOxD+1iwtb+xi+7B+GdABk\neXrbYGXX5oD1P+XAMbmAsCiDTi5o/Qkaiik+Nb4cqqUbwdoyH7Jl3Sw++SbW\nyIXpOl2I3g7nedfMbUaXi7gy2fny+WyFhwcuVermLBo9h74EM4PnI8AHXE0F\nXF80NB01oVCLg79b+q616tSzeWNg9YfbW7PTxVx9y9yqjkO64mjL1l5nUeap\ns369iuT3QB4NOcKDIVsBH1yE34ghFS/GUhMbfzpxd6UhBUFDzMnTJKf5HHA/\nVzubowmy/dzpth0k5y9hvzeZLWDwByuwH+l/xTygL4ZwiMZF4+z20XBILTH+\nvakYkMcTJ90MtBYbQwuB2pduUz3689yjMJ/xMIirNAzPKDo7JNwsCnH6Qkr6\nF2Vu5liomq+tjAjUNJfnWd71jUiD1L+JHtHnoLMU9G1A/Sk5T4R8CTw751FE\nGQgLFyCeh7bhef+mqnB44F6rFcgPODnc8IfosnTJjH9m0WMqeYLJUFWnCF80\nCIg6sxEH7bV/8E+hEXPJu3Fs5kFWD8EL6f7aplg3nogjJ2zVkI+eRF6CCcgk\n1qxy\r\n=GtBa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBo8npgZDhp2L80xOuo9Yak8f/yudnQjyDL8QE3B4QLNAiBE3QWmHKtWRVoDH4B0lC5VRKEjTIsIT6PFVriJJIBBCw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596659749397_1596659758420_0.19109140161494542"},"_hasShrinkwrap":false},"1.3.0-next.1596660336128":{"name":"playwright","version":"1.3.0-next.1596660336128","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596660336128","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2iUuan5MG7H/PhVX3/j1a+Rvbl5oUxyJ2Mp/6xfMpxRjf8Cn/xKZ98Rw0sQdqOoYSqYnNyGhqxA5dBlffDKI3A==","shasum":"33f0d0856de1958079fec24395a667ea8dcf3303","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596660336128.tgz","fileCount":159,"unpackedSize":2411554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKxp5CRA9TVsSAnZWagAA/LQQAJ6VuTRpEDSwK7Okudfk\n6ozJyooLd0EzULfMI5BZXHRy2O+6jdgmVODtpI1enDE0sGVWBe0t1RsEFXTA\nHGGeF0VxzuQeBa3T5EjLj533f15TbdQI8q+gmJwbT4bMMykECdja7w5Bis/T\nVELYxpdwsyymK70k5tQb4aFxzA4jUZl1bSBsVCEni+1lIcqPcIFBNFHDLsrE\nK/xZuPqCAVMQ6u/BRBXUG90PBAkzCcnOq3Uh6tHom8yDvtEkLSzO4MZN0Uj+\nG8rp1P3tVHtekXCPAikO+2f/iv8WCYYRWyAngKtwWauzzH7xC1ZXGWuaKrK6\npImRav2NKeAAGQa6NoDaosiUyEvbjsNqq45Go4VrEYCpSvXZgiReDmk7HhPJ\nGwT9z3zdp1npUZvhBGJ0w1jtgVE7+0vYxm1PKsysDJFZi5JyC1a1ivPnksaH\nbdFJ3ot9hpQJzD/qeX6AFBSvWxRN8T6yXWhsi5f/+Cz03UYKGnerQBfPM/bb\nH8pKQlAyyd3xu7xDibvN/PnP9IacXFdnsE5qbSHgq1KJDqKgX4UXzFJ09rK/\nEKTtuhhEQfF8hx3AqQHzFuZj9BCKL1t3uD59pxeGmuYJVLrP6Tca6HvuyiF1\nx74f07K7V+YJiwl0eq4yPa63Aezec4svIDcrB+hpvzdFSZDU7ef/N5WVmirR\nCQSw\r\n=1TEz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhuo57QImS4qok8kj/CVq4B6NHDv3m+8LBJUxmjxFGwAIhAJ90vtRRoPJ+0PRmR71gokpmn4NW1SNfLuYtJhc1//mr"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596660336128_1596660344870_0.7388914878541191"},"_hasShrinkwrap":false},"1.3.0-next.1596662345203":{"name":"playwright","version":"1.3.0-next.1596662345203","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596662345203","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-NQv6KpH9s/QgM7GLEyEQIcg2049ctHMaUli6kPEFdf6VtFlvRCS7aATSO62GrkJIKigt2LUZtbHW2pUP3i/m1Q==","shasum":"48b0b865e8b48cb8646a9cac54bdfad216a8597c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596662345203.tgz","fileCount":159,"unpackedSize":2411554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKyJSCRA9TVsSAnZWagAAylYP+wSwCm3JZjrgdfoopMh3\nk4ka6RU5rkLKR6mD3tJpqh+pne0vDtLCrdVGD1Xzq4h4xcLZtHnSt9IZvFFQ\nvM5dUhN0wiUps1cery16mGdfFaHo3ZPMvKrDZbaXCSCqErWZ2zym4UKcZKQS\nG94EA4Tq4sT1/XeclJy/1av9tjUY2or5LBA1SXZCslL69GV4AgPFi/ssR5lX\nzCb/ZxVLFQx7wVrkhpcwyC9IWsJIp8MTgQy5NeBoC7Csw9mISefhwDzoeWWK\nayt0Ziu+h92GaOmQ3Hd9v/1JeEaKw+c/UncT3D8CU79uut8MVaVaouhJRKNV\nAdujtKEfARfZU9scXMqSCDXpj5yecUvCL8Igb54YtZ8sIxWgRs5uD38sSarA\nqBbCeXNxQUMd3pHLbkrzO+EPfQA1F+LpLsI/MtpPSCQICugBYPUI/PwA7QYq\nbMUd028/DlIqszFKNBZj7UAED1nleAyQCRKTz9392/l/oGc6AZXqktH87mRs\npEV5Drzuyu8aHHIuJrH/HWjs3XsHTo/yI/OV5tRsJ2owNta4M1spEi9g2nof\nqHq+VMJyjdj+Lf1hYYKn2A/27YtBclMo+5O102VYCHK+oazMMtK8bA1B/J84\nGT9yC5Wgc34W5tdlmlfox/QsFZXDsuOMRt0cr+fpxAWTq5IE5pVO6MJMKUSb\nvw4K\r\n=PQyV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCd/X0Reu0Jti/EzILO+tRQNhU8Y/pInGlPoBADK3iDEgIgd8AOZB+E63APQVvh2c09PS0yRJJzOJSxKu6LgtkDzbk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596662345203_1596662353814_0.42128391276632327"},"_hasShrinkwrap":false},"1.3.0-next.1596663157396":{"name":"playwright","version":"1.3.0-next.1596663157396","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596663157396","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PHdXwvZgECbvRw01G0z1KnK8SUi3RXDLrWG9bSLJWDK4LBJtEYPKQF/fjhxNWU+G15ixQJ3K5DaV7jsx5O0NaQ==","shasum":"d02f83647c5caac45d368dd27dddae544b9ea8fa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596663157396.tgz","fileCount":159,"unpackedSize":2411554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKyV/CRA9TVsSAnZWagAAcrAP+wXvc1C+DZ9h+jIzqGEU\nc6TP8PpWD05rTyKHZ8gPkaFDwqitilVfTHx/Bym7Iq4HFOpcEdiJICq9AwTO\nF8APE52JBsYxgPxRPkJpyYQ22mub7NB7CAEm8dJ3+6agaNBRxJrgeUF7ayjW\n2EcLAgxhjc7LgSn0gVhMV/g/rGdsBiI+kvi8IbtHh9iBSN78gcsPAPnCaglK\naXWJUYbVC1L00PMlFXtCk3NfaM0+m90D4gumZorjXvPMg2+yyqmNT17r983G\nin56WoD8GzaL9vBCeTynJw3TMXWx66H/6uRtLj3eMTzDLSC46TqVVt9yTC17\nUH0qAy8HpexIYmabIM5FiSAvMnka4+KAWi2Q06WT0QDEEcggwQvpmqYOtJKB\nziXUEM2yJ4m3gly+IIJPBnMLraONjkEbQRK/Dvc8+NlWImc6kwP3lW7yRKR2\nZY7qvIwcjH913PtiDNjoluR86m5LzSNoyVhSlvObrvjzTerHPa2+bN4X7k+Z\n4cFlLwrelfa+BKnTcRvI8OG3/GX+dJtV7tMjEr7x1KVP3Bchn38Or+tAIxoc\nj6knhylIMmDOgGrEbtslj+29NfC8wVcEVCWqITicfdZ8CFfZ3sHr/+9+Mfi/\nhFIetx8hytZZQZYTJkdzdiaRGS/8G7omU72e9zQ4w5S8nsDB2noG1NPbYZN3\nCGPn\r\n=tOZM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBnPTtPF9H4W6HFFW9aY5Ta98N2WgNccb7NmGvjANDuAiB/XxKCA/CzYK1/sgXvhtVieBh230pM788EgiHJmnMU/Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596663157396_1596663166963_0.5812279155088882"},"_hasShrinkwrap":false},"1.3.0-next.1596667815850":{"name":"playwright","version":"1.3.0-next.1596667815850","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596667815850","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-zrTBYAxaxayHdiUb+7FTJbjiQfooBIeca7G13oDYBYBzDMs+191HbVK2pw7oUharFA0tGgIw9M0cMyTviyZC1g==","shasum":"0fef33aa7d6650302697445ea8b6f53485d9b7e2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596667815850.tgz","fileCount":159,"unpackedSize":2411554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKzeyCRA9TVsSAnZWagAAZ0EQAIW3dtaW5x9TXuLnGGMn\n5Ig4ixQkG59mKyV400L2ZtZblc82bL6O/sYYdhF+5367GrXv2BVpFzrvDIcU\nqi6AmtYsxgGxXFxlh/LZu++UROPYuO3L88M0Eq7eUJxVxAGndVwNcm27v17o\nPdr//XKl15+3gyCMYcFVMUqtsjdfV406s2E+waL7rvkmD4J+GUdRfILmxwtN\neZ4rKRRJAQxhDrLLdWmw6s9464NDIGixWgdZPRW32mSqcdBbMjIylzE+Ldha\n7m7Rjdr2ZMHyGsXRgMY27j4xmCSryixNl1yiH+ha5c6tImmbETqREbn8Q5XX\ncT5CNBX54Q3bNup7qwq03Y8s4vY/j0jDu2yMUBaFqLYJTOAllYwKTKeY0bOj\nPc46qMzgxT7ETxHBmQxzWQtyxeTY+Ofjsyrqa3+ZVskBluT6WhUMb+iuZKzH\nWpEOsrlZJ5CCqMIQSGCWCTRfIEWC8tzDpMuOwYZL5nkQYBMuvdI297WoirSy\newllKFXfZesRFru8oFxp4CgdMXJpj8aaMtA0WIgbgDH9lZgYp5kckTdOu/ub\nImH3AEbNPYsqw2KoGQ2ngJ/ZQ8km22CK6BBGjjw75nmuJCcynhpALVaH+aEj\nR3ZRWVl9c89aRbbYqJnwUtvKp4WB7l+vuzzBwCgiuub5MZ0kD4JRERO6YRsb\ntFrP\r\n=iyHZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOMUnBEHV8easMSnGVjBl7sr4RCVnQO6DuwymAyZ8/XAiAdb4DwNbFbug/3O3vTB/BzrP0BJnF7k0IF4RC5Gsy03w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596667815850_1596667825519_0.22745663516312797"},"_hasShrinkwrap":false},"1.3.0-next.1596670455232":{"name":"playwright","version":"1.3.0-next.1596670455232","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596670455232","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rY1e2GWu3o/DU1PfLHAjpR4opp5hlljP9YrMKcWuslM9j5XejNhi4zfi68SbnTSt6N8YFfsnRF3eupTuIyHrjg==","shasum":"2c20a636c2e0e2d90b42881c6428bddc1f139d37","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596670455232.tgz","fileCount":159,"unpackedSize":2411554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfK0IECRA9TVsSAnZWagAAtm4P/1ZChoxbjtnh1/6L2vvl\nxhS+SgZCG/2JcCLYXemQyGvmCxYWedCjUpywzqWF5MB+0gLedkULb1ZdjSDy\nqsDbtFq5hxDX84qYw2N24n4r/TWE+8gOVCn69HgRBqO3y4YfUVzUQUdE3xy5\nOLsqjKCZBTbtAsnfOwCcPEyQrsoUN0c6DPBl9F/LwiGafh32P4RAm/5Aa7vj\nE7FZAoiosvXdxMkDebxrTA86MZhu4ARUiimkqKkOVrtW7yLnNTdRH0Ty6Elo\n7rL9Pyu3eo7AVbQis53FhGYexeqnqDRhmAyipqadVj030ys7cT1Zm6XEa3BL\nCoQQbdXCJM2PgbEoRFk9Abt1rXpQJ5hlCrQtGebYn3FTcUHepl+CzCwsy2Xx\n+YMllWoeoSigNDFsH1kjGRTQFSMj5qWUobOZh3z4DKCP8Ilj+5C/KNKag7Mp\n+j4LiD69vy4W5FxkLx544Xz8fJM3u2jfV7SSfHhpYdQdzYh+7A42+UlThIFl\nGwFkzZwxGM4ChmZ+MCKm/xbSrjNfrmkjt75A+YYkOz+hnpLXvlw1FtkE+NDF\njl7OdjcZQNpu68xw+dfUeImhtfp9DKSObzyOh3CYTuGhEO7kdcXn5GXRKerA\nwf9HWsY8NKqDhcrPuea6B8ARCznLkhNuGpIjUTQ7UgH4IUl5eGKD2pI439d0\n46oo\r\n=Db+o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5BtcatYPOv961XOtJw7tIp7S6lfIGdcibj1Fs0v+MdAiAgQK44B7M4AIKgsjeJ9+CaskbmSwuxBe9RFigxcpiloA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596670455232_1596670467468_0.09254877035261577"},"_hasShrinkwrap":false},"1.3.0-next.1596671279969":{"name":"playwright","version":"1.3.0-next.1596671279969","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596671279969","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ef24aNQdD5NJi/TLntLIt9wQXwVc/ZYnt43kVXK7sy9GpVvqKfGibYETOLA8D7P0KfRw7Qxs44f4nSNk+jHuiw==","shasum":"ca434e2c5e71694eaca8d5d0087a5ce5686c6947","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596671279969.tgz","fileCount":159,"unpackedSize":2411434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfK0U5CRA9TVsSAnZWagAA+pEP/iZ1Vvf6fFINYGEWKdEh\nMLGa39cxqTRQhQVlIk9mQOXPq4NedisY024donAb1P+DQNZ/vau3uev9euLg\nwZAM2Uf1L/7iM1/6uH6KraZp8PfFQ5TdEst7Xe3aHpjxqZ0qZV+aD3D6RWPM\nvxLMMst26N+0rJ0X3KeIK8HRM/shIBG97W4ljBCLNxQIeSih94VtUo3wRgu/\nVlER0/dgcHe9MF5gvbBhmUUyCYlP8iOyzlWCx84rgAH1KZrH65G/jirMOjqv\nfFBepnFyYhwtBbT6TjhrzFjbyrxmDx/Ws8DBq7TPCwqWsJx9PMWOxYdHN8mf\nKy+qSNl19Ey5aw6m961IldPXg3rxlK3vKR6CgfMpNSft0rHYhrQCh+KwKJSH\n/G8P/a6S9M7AsT3b+yMlmUj8awJnnty3b8V5CSKnxyviNK4Rbhq2bQx6QOd9\n87Nzo2TMrxI6D8Xt083HRMRKhFmfKXfGhliV22BFGtvd66K7m1VtwGXKRWdH\nwI2doLUXtj1h2f+my/wa8U3s3pG9qo+BppJp0cVhaVobQrTsPqDlsIX6tpu/\n0fVG96S3m/nWdDsnajEzNtGb3Kt97tEADy0gN++4siDaES94hF+CWe+qXllP\neJncV4SIENu8psqgb/M87bSfgDEyEuZYpcGRXtHGvSRmjCdZ/VVFIV2Pia4b\nJIEf\r\n=Jq7I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNs7lUWxbArxNunEP0EheR+AWLf7XlFCywWx8O7bk3xgIhANu51uI7bxiDo7jnLxiLWw49xEQQK6ac8ccQLnnNZPyw"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596671279969_1596671289220_0.7307570023314032"},"_hasShrinkwrap":false},"1.3.0-next.1596674025869":{"name":"playwright","version":"1.3.0-next.1596674025869","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596674025869","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8NjJaYSRRSwL52q7Dfq0jOa6Cx4DyTOfcpCEs+7e4noQ03d9oDrSmcEIPBccm6EpwQ6KgWPexNNiRe1rQxqPaw==","shasum":"286a56f06a1182b98f8f4e75159dd61f90e347c4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596674025869.tgz","fileCount":159,"unpackedSize":2411554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfK0/yCRA9TVsSAnZWagAAOJAQAIZlLG69fWFeAbd/ARf6\nI156CzbYJ/KYZ2fA4aE2p7Kt6eC80P8/0p2XGbBLTkru+a08oB0mlpo5Bjbu\nnI6SmabIHVi9n2Gh6zi0bOSokGPRdM9554h8TYL73wjwxRdqs3Rnbp/zPUg6\nic72fUOuzY7AIyieGs0kOhx19FUZ4kVLx1RpZpAhOK2LSB5krojxAWBtKqMF\nyh6qDlke7rJvl5PNP5ftuFR/Os69qIaZxex9voVmHkXVknoI3Sr2/quMDRyK\njjHhA7b/WI5p1EhOdvJagtgkJFfAlwWu0YwNkUTFPbymnbDBJHdHRbXbIh1e\n40pIT2X01k/bgsXyLmhmdu+7a74a+2ykX92CUFAc+XHU1+iFSyJINKIwb5hx\nMKvNfPaQ1aZT0+vn1SXBHq7CQZHjg8wz8uRmeoL9PZWy9ll+h9DdQUxBgGPd\nr7TDUYUh7x8M2bTlBKMSTxtOhfPbNr6nwbLPII8gfPobJ+zu/pbsiU1Dehvv\n0xuZmmRa0vKpE2T4iQHmm0X4/admcdv+oBOyvdHDELKfwQGsW3zWsUn69TY4\nUz7S2cMpjQUAvCk9UKY8e6CgWkaa+bpEVtRdoxNq75iJDuSbx+kqab8txCHq\n4iwGcrva+0nVtyJU13a0F99Ytyx3UMaIxkCF5kRSUkMmxflX6Lrt8QpCs3sa\n/tX4\r\n=HWDA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBLbRukQGuazZY7scOqdMN1/C7OOrDYv6Tex1W5qj1wQIgfPEn6JAVAjSOVlgKOTtYUzibi++1gvee8nLlawgijmU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596674025869_1596674034215_0.9568130253555183"},"_hasShrinkwrap":false},"1.3.0-next.1596687633727":{"name":"playwright","version":"1.3.0-next.1596687633727","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596687633727","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-RiHj+T3AVgCOsQx8oDGaPB2iWfi0B57/u+pD19/alPfFQLR9h2xxmMzRlaRIDNFzoTx+WbnzIDH0Fita4dCt5g==","shasum":"93157882feb89988fdb43803d3241d5b473435bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596687633727.tgz","fileCount":159,"unpackedSize":2411554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfK4UbCRA9TVsSAnZWagAAGjkP/24BqYmFdiVVeUEOV+7G\nx8OMN1IAjT4mgypXlyi9Ai75CrI5UQFnJnlGOnrFH8btABcl9gGyWDs12/0Q\nNRGFHTOiZasKo7x3XdIrkO8lZVtiy5O167cAcey/CwEeAPGQTk/HXabunpj0\nLdUMtLoQ4NE1BRt6+4kAOBla8yW0WcKWIEVcE6AkYMmLbZKpggMom04G5mVq\nWXbi7sbWJ0NLrBo2fr4Y1VgsL+zKxOICuteyOIYPoTGPS/2vGK2hfNLe1zjh\neVyWJZozfngp+mHqGy5QP7i05YhfLkA1Hx8BNagxrzNcIil8wlDN01f9b/QU\nAiUks43ajtXiiN2rWWxiXOxZaySJeBvfM1HeMO8PydpZEAZ1usHpzQvJzP9w\nMehS6E6MzzNACxpwdz9QIdEqE17zeA8c406333Vrkkx5Qs87YMh1Jy9QSczD\nywZFPbj+m0nmhoU0spmHObwwH6HBB290jr6XQ8OqlfiIU8pRRDcNG9uFP2gD\n1jqaEYRK9WjphVWzm1zPPxxKJPz0wcApNZz5PQVaQfLXF+YJiXorI8ihrdQ5\nOrA8+DoO2npHPFajPerx7ZOMxdd4MaUQXR+ehTwvG3dm2N3kMp6nOb2UiPpi\nfM4SxK4OhrrPNomefCESLaO3E8y3kyR+tKfnmWDm1sfd4zrll3pFcC2ijzSB\n40T5\r\n=josz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6f+SThWBy+K9zfwD5vrjND0kBwkp0iBvUXikwpCYrlgIgYpXt+MmPX5IJmLRzOuobJQhCBA3lWmuciBwahCjKUVE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596687633727_1596687642577_0.42111399309791175"},"_hasShrinkwrap":false},"1.3.0-next.1596691707402":{"name":"playwright","version":"1.3.0-next.1596691707402","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596691707402","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-FdITgBOZVUcHeqaX/tcJ/XWJWzJEDvxjWFbuhRdCIxuMiMmlNbjt4cAtCvHrjHG71pJuPFgCyiK+l4DGFMB8TA==","shasum":"2fda44279377c6c6a6c70d8be0f2b1a58313d09b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596691707402.tgz","fileCount":159,"unpackedSize":2411952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfK5UYCRA9TVsSAnZWagAAcRgP/1Rao16VXZNvpRH4h2Uz\nvpS4FdUj5+93XDWyiBNDgsGfg/a5OFi0h8UQgj4u8ADuE3ral53TLSj/HLns\nPOvN5aygL0wnfCXuOx3P2aumBBTD3iKHk6O3pAtMgfkdrPjecyE7YfYgDho6\njQfAIV4wIatFsulBNU5iDwUHL6XhDzlebj9wvE1CeidQT9mkaU16IDDCVNPc\nLeRMZMrNwlwjZ+lu6JfJ7pFLX3lIt0BQBVOXaqHDIPcktnPOrz0NlC7WvaCN\ndHN+C8VD66ZRAUiuBKflWgWghmWwT6QG1ftMMVbsdZyoN6HXua2jxZCa2a4W\nYv3PDIT8roQKU5PGQH1FB+uMPG8M35+bE5q1PceyiGppPwBj4efR6vAFHZa0\nfm4I7fyIugklK5tb/QQuZoZPby2Mw2bTuedKVeKOicz2C+bvj8WThzgwlqFE\n/XU9Gi1/AVwtRXF+OF8OPnNG6KCceDmQO2G5FvHyNW2O8J+cT8aG2FaM3daT\nuLRZvRWHESuq4s8ICYAvT9Q5xa/uK13ovHJD2vwcWnM36uAk/rMawvZsJcpE\n29a+RbWFx2hR8Lp+06J2P2lmF76MO2SuQVGAh+RP0WjqEG/wcqxlyb0JGywk\nOgVEwApYPINaFKIaVjBf7Pp32yASqOjYL6e3pzvK23WEgRZ0270oIXru/nY8\n4wzf\r\n=1QSi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCb9AyHQ6X+Wdzxx/Oq99MBwYWR/pR56t45MzQyEH1BwIgGcK2F/byOyFXL1cy9+dDz2TzVzBkSTWLelXWlG8xGcY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596691707402_1596691736374_0.8636142528147197"},"_hasShrinkwrap":false},"1.3.0-next.1596724409154":{"name":"playwright","version":"1.3.0-next.1596724409154","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596724409154","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-f/omaMU7XklVIP70YCSWKQHk61DgKAcCEkNm9QAgjPaPYEQHgJZMTns2Jt2ZoE0hd52MUR1HTku2uwVNvgH/TQ==","shasum":"179eb6a80986ba81e9baf9af3007be947cdf2e3e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596724409154.tgz","fileCount":159,"unpackedSize":2411930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLBTJCRA9TVsSAnZWagAApm8P/j7TZtTLJ/GqRjIUU8UE\ndEy0UpJEuuaWSdksg+WXg5nJDgZp4vD8ik4UqT/pse+KH68AGxoAjLKZv/dI\nyvZZBcfmsMhnI5hWkG+4duU4T6Hqzqw4WrfPsg0dJ/l4ukN6HcmNJfblBDIr\n3km5r85fl4H8iO4O0+5Wb8Ef6AIxp8BzfZXDtljl1oB5rGG6xtNaYU1WS8b3\nTHNrAVyCndzZ5TI7IjTLYB+VHUO3zCQbe/aKuOyNW6VPTxk/R6yC5I2uJHwD\nmFjAvt87rjxLADYh54QOdhqISSyqJl40ZMvWdYArKttKy2aZ5DhBN6fhLyXZ\nm9jwY/ye+HWmS54wnc677hOir7q+37hx8JWlsHDTzYK+VwMQPD3YY0s7qT9Q\ne7Jhe0ei/qmQt7EQssX9Drx8rs1sAEIAFLPyVk944Km2iPRDxXv31MpRMIK7\nxs8/dH4SQ9lFiIqe5ai+ocHN50MAlu0CYVv/+wAYXjdKDMyZjWRrZHzG5A4c\n6HXXrrmdlp7y7MC5rexeC7Vg4duDCGM9GcIEeu3jfSa4yyYo/VRUAynbddQY\n36zKxoKPH7tIrCKmB5qi1uIgcvv/oZ1kowgJbOLX65kkQzEciAPR8A3gXoHR\nzJ537jgb7QBnbfNG3rpoG7I/YuECgmnqlOBdKZId3qGP89RfDXZ3w7fyA6J2\nAPn2\r\n=ysQ7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZ1KNbNNdt0lpVZoGLsmcsf9kx0aeeQOIKK56cCtfXagIhAOCLOqh3doaIkp6LjcYS2he2o7vPNc0EL4dCEozGc/Tz"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596724409154_1596724424326_0.011448840549899142"},"_hasShrinkwrap":false},"1.3.0-next.1596727772094":{"name":"playwright","version":"1.3.0-next.1596727772094","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596727772094","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-l/bbMzzZKyiEl7D9t7yFf+/rbo2/fNdSaP2L8lbKoNFHOCeqCOuD6dPTOsplVJ6FYdJU39lSaOTkAwv1x/WTrA==","shasum":"ee6c1206f6ce818ca08a0a859ebfc4c4e9cfaa8c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596727772094.tgz","fileCount":159,"unpackedSize":2411930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLCHmCRA9TVsSAnZWagAAUD8P/iE1myQ95se3Aw+WfsrX\nDiGwiATH/e79RrbG9rd4jBttCpfmzK3B2THOWVQHm7AIDKqLCXyL/qhs+Kgq\ndtWsQwQKHVvamxLrGkovYObgyaSfWhSb+buwwB7kagfXmSDK3PuCvpxAX2rb\nlAF39wgHEfQPcGMVs/GLdx65t/VpyLOwpmgRQJJJ8J4FirSMOTsOYUBZKYEs\nrMX++gMbH24rfCiZWtsxfzWi6Y6flNYO6h6poi0jbvrW7ZPDytmo+/OD3K3k\nyScJ5MFe3t8S/aM3KvX/Ee9c0lfaYj0hFl0Bq+MY3Cr64/M1EzrrnXDDTdG8\nzd3tEboas6iBcEgkbHaq3/yBgipXWQ414eog+mwCERmZPf5olIqPVUaFSBRs\ndjoCZ8P061bTIK/Oi2ggCHCMirZxUE0LaHWmQ+AnLx9SAv/qQX1EIA2okois\nxUwfCmj1bYyqNb99wzS8AqP37nm3b8dZAHiEnQ2+Hyt78l9iODi/SBQof5Mx\n9BSlOXBCJluKIIEZt3wjhhwPmwhnkdK7Oo1Tj6CrC9awbxRQg676r19fJ/P0\nVxPKs8niQFjxkbkqah/u8r2YH0RlNbd92eDZR0SWspEmj9Ly+s26YtfDwD4H\nFK6TxCO7HD+ETcaPOThjNGtH4FeZTv4sKPYUeOWDdr0L3CUyO9yYG/UtCjIi\nTHqF\r\n=+efZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1hZgU/z9uMMC6y9e0dbsbs/blvMQLSrzXlWks1nQhwQIhAP8bXdbFxcRz0e7PbvcEdkfGpBy68v5ryneh5W6KONo+"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596727772094_1596727781604_0.45094561604791616"},"_hasShrinkwrap":false},"1.3.0-next.1596735296114":{"name":"playwright","version":"1.3.0-next.1596735296114","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596735296114","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-p8rm5S3zZ1PDZKPLQIe+2iX0vlYTvBWmPweLvliLo96EJbra2P1eJMStWpoTQLBCx4NvcNkOI7W3RQLvlZ1neg==","shasum":"8dfe0fc48992f53915f4136ec119b13612e5545f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596735296114.tgz","fileCount":159,"unpackedSize":2411930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLD9JCRA9TVsSAnZWagAAuKYQAJmhoyqbeqYuEy0J9v+w\nowlDeomHyaS1raIyoy1s004ZzoL8LnUh85zgdHxmtmKTe1ktHGuNkhxW+bF2\nUStbkzNW41Lmfq1q0NkC+HEorNQ/L2srm7fxEKotfKhFo9hSZKkaKEZ4SSTZ\nMgIsjKLS+Bo+JgCv7irEMszobl+LyiP04ip0vTk5ae3WJ+V1TFo1ObSvKQtj\noV3xIkxS2NJvsgcYhheZPcfq5g2PE/9zBA/X3+hkHg/42ntev3E0gPaKRyNi\nhX8sG8Rdc6Kh5XDyrAq8//VlR2gMHrmKrkQiUUQYc5XRVkj856uAtOnv5s4l\n5JsgpBaCZXR3PosYuWoBf93BgDTt5qZfPf4tXcYCFmGl57ynaiJ6O9ikXPQ3\n0rH8Gv7vlooqOly3QlTwgXknsGAW291ntHz7z8ngZ6WFo+6/68g4gPh27Dvd\nuriKs6Mb+eMTcLSUK1ZXEDENMU0O1fNB0P2BYTP8d5bxuAfpdEExuytpFoRI\nIcgGpoHdb15szJ85EizUlFawCDxt++BcTa9LPqbexWWNo07fQ/nryON1b8ol\n8eC4IIA1tKrsDCqNxFMuKH0wxKdYOlwwbSXfUgZ+Mv6iuy4wH5R5yb1q6hn2\ndEsRORzJBlWubY8GyN8MXsv0KfUUzrqYWGvxTyp1Qc7W7CXbgYkZGsilxQfr\nwwUO\r\n=j4gV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTeN/hFjHHsKFRJ9mOyzkAgu5oEG4Jah2/XhcO1h+guwIhANP+MzvViJYiIpOB4qu9yKPxnzJhThViDBRe/3dP3Oi1"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596735296114_1596735304951_0.2434992567411174"},"_hasShrinkwrap":false},"1.3.0":{"name":"playwright","version":"1.3.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-W3mwXv2XNFugbepSZTZxI314WfI1SAjdZBEeGOu8S5KnPz4RSlunUFgXn6496o8lobPmORLcJ9VTSGyiFfGpaw==","shasum":"8c33ed29bc0c7d97f82f8322e99be6d7f0d9ff67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0.tgz","fileCount":159,"unpackedSize":2411415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLGgvCRA9TVsSAnZWagAAuegQAI1nBOB0AgBWP96qTDKi\n8fJlzrY+EUIU2HuTDKPrumghEZKcmzdgYeSFgiiGATdOOP4YDO0T5JVZscih\nok70cwwwBHPU2syJAOzgDQr9d/B1K7rxWOjVlUTCyjr01ObHXepwOl4rqxDv\nb9qWnksY8DUYnOGHQVEHYWOyNx0jQJkGEJ8y4t2RgMiUfwIXsx+DEL4gl7Hy\npHFRFjPZqwjn9RUnBAUPwQqpuXBzPUA5WRo9eCMlI8prkuXWxtB1ttxKyl5W\nRv7Doo3gKzJ/i/Iv8pRnsHU6h1r0m31hOAqQ8Uk1u/fZ84L4r9APYIIInK1w\nQYDASFkVAjsg7T9sVGMlTpDrwxRqVfQ28eyS9oo2pGhNW2M82PU+amdOKAfa\nT8y8/ChzEhEtt1saAn6xcYaQPYTfcGIqbLVjCdM5wp0/SysbXMtWCzgRVxTn\nmFlPUUUjeCVrtYYptoIg9G96i8sAp61MsUD1m4OJrmNWxZJwEhDiT74nxf5W\nVCTipS/PLAqYj//8vOLqJNluKjNJgrCAsithllqJF4g4K2TUlrFHogqKdJGS\nBUa8rSAixoYVxQ4gmR2godeHr/cDCj4dBSwg8Rq0f9A4/51LcQm1ttxy6p6K\nanmOoMTcf8FUqb1Fcw5FOVzgV3UT/h6uyyW6qI3z0iXDd+qz6+iK2guEEext\nCpGm\r\n=gsgQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnnrFpCq7NSTftjB9X2eG5JUM4hwyRQRlP81PaKiYoNwIhALqVAPyIJY9Vm7qYikkI6c2+DlZyJaZ7lP3otLIpjFLJ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0_1596745774810_0.6886092071796284"},"_hasShrinkwrap":false},"1.3.0-next.1596748465086":{"name":"playwright","version":"1.3.0-next.1596748465086","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596748465086","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-uZGzjGAoeHmEAv3nbKmqR1P2cHWffXdA8nA3A4dUtIC3NMI66tFtpSoYaHDarAfJ0oGjOkVQp/LME9LPiSitMw==","shasum":"a000458e822b4a5b88c124016cb1dd87cf3ce380","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596748465086.tgz","fileCount":159,"unpackedSize":2411930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLHK/CRA9TVsSAnZWagAAFzsP/2jSXY4/ohjiFq96D8q6\nbQpAvekuM3PkA69X/NpycupyZzOaNXCKd+0zJP/X6+LvHogcSjJ5F/O2aKAf\nBNTcD0eWM/stuG/F1YpbtncKfgxCyV0El9TjskPmJfDMqwNGmv16xmEmMK4Z\nIHp++J61lvKTz/vY9AJPJrQdOKK4PkScH0gFM+nJRSv99+27SgKIAMJQmFW0\n99ey7m8hbOopxdAwUq2xosTMDU9FqBH4YsZh6CupP8xlcZGj/Tyx9kcjatak\nbM5UKrRe5hmvsrwBwblKiTcgof+XBefHzLXwIf/jeHWY3oin3MToaqQIqw4Q\nW5HEENAZFHMCZpzock2djri7KDEwdiCkENMe49AiWVdv02WF/bLJqFVTrzWg\nXELuLDUvNIqWt4nHidTQp+XayZXCud+l9FzP5KSxL0x7ApDY45n+wnhFCqvK\nDeIX1XKg3PmsOlLFx6QhqGN//JN9u0YLQ78uRNhtZEa653z5uCm/VOC42t+I\nkVsgxp14Kcj4v7ynymqzfDOInHdVd+Ni3W/UdUpI043gfKb4axGzKf5Vm3Xu\nC6NB1TaAL/m/XxgOQVJPLRq6Qph6KCyiN1MsYNZcBQsTWZKcAobTGfuqCJB1\n8XKOitNoVY+qPdNAoHYJ1LCkgIj+2zjzYRG4q07h86h7hZZyK/D9fy3TwQ2m\nkFya\r\n=z72U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGYIwaCx7pF0/TY7gxA60PgQsIfeW3+et/PCL00XZcfrAiAFrf9rCqLAW+rNrffLzhX8Yu4Q1ekG9REqqUwZP4b5Dw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596748465086_1596748478503_0.8842072956945226"},"_hasShrinkwrap":false},"1.3.0-next.1596754008156":{"name":"playwright","version":"1.3.0-next.1596754008156","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596754008156","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XnEaVsUM1KMGt/DTUJ3kHonhCKRRPCa9let1g9thscR/MY4gF3tazS6/pUb1+81dznrBI5qVDQ2kdpNWMS66UA==","shasum":"bd72782ed33cdb7906e74e2c4e78112742dc46e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596754008156.tgz","fileCount":159,"unpackedSize":2412008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLIhgCRA9TVsSAnZWagAAKRYP/2ZL/B8+q56WmNGA8jJs\njNSID54K5bANcOTa7H62++RZReFmNktXmC2OBRC2Ii2EPkAdkoFxzyggLwLv\nGJLBD2z/qTRL0LZ/w+TFIRJST9EIqc8xsNSeaIrTpzzAohwIQCzYQEiXUg1L\nSJqhkp8yb9veQUONIgp7WSik6Wz3ywvkYW195yuJ7fAiWKXXnFgdWxPiNqx4\nYHrrc/Yy6GM0bj9Z6aNssNzkLNqjdJuNbjZeLgCVuiYaoj/SWw38G6hIpLNG\njqpSttY8msHwP+ZhuLjUG4DUFNJQ+s0IQWfgQ1o5XVo9V7ntrNE5CjzfIK5f\nJeQu8y+DArhXsg+wF85fGbLRECicZ8360E4Lid1MqNBaC+Z4b1Z+8nlNPWwu\nvxKNNZq+ayn5kL6umvCegC8aheQHpbK+vIcBiSqaJDfTLNuC2TgoVY1x1p+i\nEtG85A665Rvb6WKezgAi8DUV6jF8WdrPQJg4SW2cZlBXqB6w/N68rA68kPR+\nHDyvbfJhdtN3mPUo0L0lefaS4goVGnB6sIIF7FYtnsJz5t9z/Wj7dsILverH\nkJUFTl/UIMlTP8ak2YyjuJxmzLFHEP4esxISK5KtarG2nOV/wGirsYyj8XaM\nQM36FRBiDai/tdd2U7GyUql7kk/8Tiq6eiMSSuGANE+l/Ny1mrr0104Npx89\n+t5D\r\n=JUZs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxvExGEGTQY/e3Ho0qUo+EOnr6vvnghW+9BJT3XpRjoQIgNshpJxD5GCsHETVloBi2lJl9sPu/M//sCtCRt7aZBDE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596754008156_1596754015934_0.1988343605768863"},"_hasShrinkwrap":false},"1.3.0-next.1596756919839":{"name":"playwright","version":"1.3.0-next.1596756919839","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596756919839","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-TmcnzSNFYXnPWYEULOAciEDG1c7U9VuebwsqwsUsFRrK5THStuIWSjJ6B/pOH5dYNPaiPO4Z1b139VJxDlpTGg==","shasum":"83871bcbf1d415b4ca7c66cc8dad4f1179414a73","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596756919839.tgz","fileCount":159,"unpackedSize":2412008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLJO/CRA9TVsSAnZWagAA0jsP/i2oQD96ubeks462qkXC\nN5mbP/fHUqn/YiyUC8rmX2bNRZ1rAmWjoemRc7UMljykzUeQdD9qXuDp7Y/S\nDWwTu6qrN7GoAgU96npx1U8ys8l42OAJ7tgMUAzYAnBiKUWvNm98AgDUvHbm\naTlybnvwuMeilc7gdxjYdIIaCGEESGijNgMjw5MuucZ8Fks5Izmrjptd/na2\nCSQOaNhSh3iwZOh5oGEqd+z+hsExC++cDzsv7B6dIurFTp3bwQSbA83buQ7A\nOq2l2kBxkIy7hPPgDwB9ueW1qj7rbwXugHPt8ab9fLF4XIcBEOV7LSeXtWfT\nOj1VnLAMS9ZkOwU/W+kkf31T+yPFl8ClInwzEjOtevqZtXNUvgfhLyt9asEQ\nW+iEqCNofpUkMRzNQR96de6jpg5MYIiO606nv/xoY35qm3fZa46J/X1twSRQ\nHHco7n3Mxx/XCru0999wjjKoaoXOafRMx0LFBp38lcImf6Olv8NpQ2pi4VKw\n2mRQubMeq6YOtH97/vyC/CRNU5t1SGVhn2hPt7RvWVVQupW2GA9MOoeQkaZ0\nwwWpvrgTLIquGpgm50PYufmGwvsyfWUKmmPvKgk+rw26GR2oPx0pSpAlrDBT\nJZNCjr77h6lsPXdxU5dt9Cszy8ikAeCEheuWZROaCLphub1OLAM+EbDv47JI\nNaur\r\n=qiDW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSpvTHPm59/t7w9K0dtGwwVpkTbkYl8QdRO0/oNBX+7AiEAo8ReOWE/eXdVhe7X4DoGa52G5xsZYzuboI9gRVmchns="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596756919839_1596756927275_0.9078610243700433"},"_hasShrinkwrap":false},"1.3.0-next.1596759529982":{"name":"playwright","version":"1.3.0-next.1596759529982","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596759529982","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-EMOujL/flKSCZpKpwOH8ipdBcqqRVBXCa4kY8yI/0uRqb6znyy1dopsuqsmmUUZ7BKwdGIFZ9oSVVrjpnDjEAg==","shasum":"46e83c4a0ee70c32ce6eb763c3af1b8748020a89","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596759529982.tgz","fileCount":159,"unpackedSize":2412008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLJ30CRA9TVsSAnZWagAAorcQAJMTlC+syDEZ8WdDfEf+\nyVz0LH7VjzWLSalGmdbfYm27lvgpdIaxtkiTEjCh+O/TV8spzvZeHUirQ7UM\nhl1ycQDlK5FDkAgJzy3EfoYdvjXTUb/EI7XMDkMbXMilo3fiVfrxdZJ6Nvyl\nUZ+mk6ruq1kL1URiXpe4B+4gfoR00A7sqNOFidxcw/TquJ1hU3CNddIVWwxj\nAgyhFvXVr0rkDfDepM4atfO2MxH40SjZZrX0MYIo8ydvJCru95M+/laDJmDV\n+7eqYOvHieAwjEQmiqUhXXBaR5WIU5jCJAlWuu6+9FIHmRFXvEaV7H0LGqgE\nLAaLD2ifj2TOtT58OFp5cecKEvEhttoWZqAosOYpOkEXfvlO54aivxRlPDvj\nbQQo914Ale+a4Y5hJGx7emfZAmyw6SwsbpjAv/+W8UQpjWoNbfvG58wu4qO5\nS8nih4oKyJVDz1CbLEjm79GrKyRQSC8Fed9UGHEN/a29GIFsSsxy/FuYVbA8\nvdsxGjUzo0NvelLyoZgR5AeM19K9vtujPPykVjztHK0FZ/3sMowlgAZxWEEe\nD8HV+6Knl1D7CkpCU4hUBJhE6Pnxq1w4kbv/JlzYdKv+VrPI1dXjeImYKBj0\nTjRDG46P8yc+RBqcA2L10bHtQLhfDZ2lsY6AEMxZYXfMa6nK3tTOHhDIEJNr\nFxWN\r\n=q8Bp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQnAm7n5RBNbqSV77dEZgqcc+ZwbkQ820E2DML2XrUsQIgEdkzkLmLsyMpMAzSO6FZ2ycR6cF2PlVaWluu5a2kFQc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596759529982_1596759539952_0.5416077221165168"},"_hasShrinkwrap":false},"1.3.0-next.1596774329078":{"name":"playwright","version":"1.3.0-next.1596774329078","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596774329078","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-apq82vTJ3YdrfoYHGwu3Slp+FCLzHkhwujcTNEU1gsZufILjjzFlV1FwUcskuf+UXdQxwxj6wscenCMkstCHhA==","shasum":"2e3319de7c33a07f9a3741b497c2f0c046e02e5a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596774329078.tgz","fileCount":159,"unpackedSize":2412155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLNfDCRA9TVsSAnZWagAApQwP/jaGUjHuxn1oIc2+xZDp\nMx4xo8fZU3uHbMe9XVfducerzIKl78cZCoFPGyThX6EiHRvBsLSZnpVzmOeb\nTOWwX2fL/6vvT1MjSe4gK06bMocscXa5SGG2CtsXhNxcwaaCeSfvYclQ/x7J\ni+sRYKLEbqt+W1WxVU0RS2PKPMlhbVaCaDCyk0vA39r8Y0otUaCO0g8Ry8GM\nRtTEkCg9b3mAPSxPCeQJacG+UN6gbTQURGQURk7ddM/vND4XCZC4nlxpiaj0\naq1vyDdFMae7eg0cWIiTdetGpWiZXjAgHri+6iUmxHRijG+6FEaOghpjih2H\nqYESLKpFUG3P87+wn8JK1Vgsd4IyDpjRol+GGIydVQIGTL8tv36cbVjcGGge\nabiGyvToflAlTLgJOyRHBZrOb5h1ACPPSjGiYj4bURhGDa2ABLXUpRGqvCqT\nsVj+68ON7lEp5G2GhV9gPZy7d1GIuJiuj0jHDyW2rlXkcKA01lm4X9poDIVs\nrUMBekSfCVNrsMKLMOl78k3Mdt7pgLAJVFVsJD8+Gr5lK+bVOu8xM52VRXxz\nVXerqK77E3byDBSb1u4xfjbQmV9pUkpHhqaZ3lrI/kz9M2pwwZ0y0f3QDgjc\nrM/hEInm489sD6/RtTOjRAO1Qkz9zFCuF3jxp0cv0vH4Q65l6Yvhu8RIcUMO\nsZqM\r\n=pdLU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIELDwVCxJmXzclOKpm5Y9XkhODpcqujPP3yItG8E78LdAiAL8jAA1Mc6Ie1il18A5diOWyK9qQz+I88WOEBNSlQ1jA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596774329078_1596774338599_0.0025806968420387655"},"_hasShrinkwrap":false},"1.3.0-next.1596814279791":{"name":"playwright","version":"1.3.0-next.1596814279791","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596814279791","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-z7UP9gFxAAwyZzxOOSt8UYnQfO4YJORSH6tUQCY9vQyPf01Qhc5ItYG4TU57QVbLoSJyOhks2GCGFEug8zEEIg==","shasum":"f531f4ee7c39048940d3d0cc0bb10d2b23247ffe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596814279791.tgz","fileCount":159,"unpackedSize":2412106,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLXPSCRA9TVsSAnZWagAAiwQP/i5fcRbP2V7h8Jf3P8xa\nvN09Ffaa8UKSM0PaWw9DAOsC8ERcRW8yPkaP+IWdGGvggnGQFHRf3LHPTtTt\nU9gKDCmCbOv8tr2yyn+swcIDaJf958u0PUxgTLlq6++Fl0BtpMUyjiXKn8p0\n02I0KepmNKmMuOzN0sGqyuvN1kmmaq5//7sr1Sc0HZFMchD+5Zc8R6R6LVXA\nnjKj4t0cm7oVHekQqOnLWFBWjztuBs5zLKh3VNu6+PnvBSxGnKYzXXDLhzaM\n5RX7M1lNU5JFezx30LvZErDKnMekAnF50+x8Nz/ObL6pJnFP1PxQQvdsaKU6\nW4jVqDST60kXvb1HEfOc6fhE1a5ArBwBewSwv61EJzF4MqaHLUbEwMNN3L8t\nPaD14pcsohvAh2zfWSlmQKTfHbPSiHQsvUwOuGKPEfYpItaRrjvnajiweVKD\nZg2suSmaDfXzbzjq7qiFTq4CyK4ejXiF8rh/MJRQo8ok1g/fmmRYVuVbnwHR\n4KySzeAjJEZ7CowV+oBh+koy5K2kZo48K74PzQsFGo7T/JZ6XkTapDe/iQdT\nrfdfXMc7e02DTYF+9U8/tz0THRYv2kEW2qhI5to5X7r0psvjlB79DxnKz88q\nI53ShMjASungskoTcg2E4E136mLMwOC7z2CsebtvszKKxdmcWofMKdvXQJ1V\nyEuc\r\n=cUXf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKvfD9mUyQo5O3WZ7w/A4ePZlcR4hHOdd06BM/M/H1KAiEAlXfT7TQXOWSvCvsM292oE/C2rg1soLjzcJuBbXyovwE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596814279791_1596814289394_0.3876414846296852"},"_hasShrinkwrap":false},"1.3.0-next.1596819335970":{"name":"playwright","version":"1.3.0-next.1596819335970","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596819335970","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Dy56fXJz2/vaZrMO2qKyFgfJc3qZmuTQkMMgb6pwRwxmV4hvaivw2YTGF9pvkcDwsUyG7q9Tn8ADn8wDD/YV5g==","shasum":"4c3f09cd9a23a84e5eaa282cfb714f77302f435a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596819335970.tgz","fileCount":159,"unpackedSize":2412106,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLYeSCRA9TVsSAnZWagAAAqoP+wb6im84pqAtLUMoX5/a\nsiQ0tN1RmT1Fhi7JFA3Q1TOcGvNEogC6RRRno6Mmg72sQFQjBY+Hy0cgOptk\ntBPwSXLJ8UGYL0yb0LKLI7AnnycimRrDA06ac0OXiWy0aZyE9WW+G1VmyPvU\nO2C8xi0IY8mr9s3kg9kSH1nMRBIb7jVom9wEyQN82/Z+mXoxIW2FAGzKJ1C3\nTSr2vUWUBQp2YzVzJjAa63fTVOGIhl3jGCHv9NXhcj1PmVrXt0Np6GcYXzRe\nZSqeNhX7PV8a9siYEtKgXj0/84LGpONf4yhnBErFE0wH8fz5ACwfcY5zslJ7\nzZ0VC2Bukyp1VdbJE/g4C9TKjrhuhG9Syl8k3cll9FNsqKGeyoJJunEx57vJ\nyWogcEfn6rUCfPU9dZY/NlgwbImOWuIm1MI5wZtRSKeF8XonQ4gluc/A2KV1\nVw2tOyCEVDcdspGwX8P6rckx+d07M1nO5+yCFddXHKs52gdTJ1ahUOS9e7MJ\nyxxakWVMrVM2US+JqOPgtfZjFGTXFa6PpMOmaExZxXiQiNev5sz62wpF/W6J\ny5/IzV/8sOgP+2XU/qWVyZTYkkx5y2yHhAOQTQO2IXgLhdeXNndtwSRTmNvm\nHaOq8aZ0bOIm21cUww4LKEqF487P7sNR0G5kAJ18StnvFNGL5r7Rvdz46clw\nNOvV\r\n=8FZl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnZV+VBkTCoRR0GugLVyKisZp3hitevNDMQQgBVDuRMwIgTqXnVxuLRkxJk5bXp4HIPUxpEPs3ANZxN3YSf6fmcN0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596819335970_1596819345921_0.9985720039942876"},"_hasShrinkwrap":false},"1.3.0-next.1596824470757":{"name":"playwright","version":"1.3.0-next.1596824470757","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596824470757","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-BS0Xp9TZfHJ7lCKN93WUB6bb4ITP14AHa5NqaNek3KVnPXS1rkIhPhxobVkUZztNSgHn0s4X8PtZ2wWJ4kCQOA==","shasum":"5b671200bb7c4d7250e2fa870035f125b0307d6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596824470757.tgz","fileCount":159,"unpackedSize":2412106,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLZugCRA9TVsSAnZWagAA07UQAIbiCy/0/gbR4yDk+JoD\n6XTCM4Y1lf0pPseApRzxYlLT/kuEcohNFNBHkRV+bLylzvwWmvaIwR4hWaKa\ndkr+kuaqw4CwClgZNvgMIb8jVroQL7rTI7VhV+AfCUuUW6g+HUcBPy41au60\nynm/lD39y1PsnVbakBiglkUaIcqP9mlDXdjiJ+egtVaMYFuMwgIb9EQAliHe\noHb9pu+91/N3cvE0+22GytqL7ksp3eJdOV8qscUUA1G1S3NwecNThJdIsgz+\nNREOQxn7ff8Y3gnvtE2Gk7nmVY/ychw1St7vs9xVWUMaOcQIQFY/Qe/yJmcy\n1a5HasCVWBoyozBtt3XAbjztup7cTNXAvfdV/opvlI1UakWVHrvZXkpXBzFF\nE5d11DSRwhvZxHDfymJU4521/VhbHr7sDC7NnfAoZl8TSCO+tfGLmNf1FjQO\nmPA0hKUeqnXx2kn3/nviUBs218LsNpyHOQNYugndc0VrQhtsiT3zF+1NymrX\ndCtG5T1EcGbVHKMaelqz+LG8eL/Q6cVKYXKm34sit2RoUFXjN3vnr40PyT9a\n+iapuKtXZk+eUMUC7Cksz7A8jm8YfK+q/pbu0SEuPJ0V6em/wZdDi/funxL+\neAXIAmpWoZwoU34CEjANsTPiuAv+rw2DeZMAjxNUhhUNLWwhiLLogZcAEl0e\nc9+8\r\n=is3d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOLH6k0kAeQmAY5L5Nh/mnV8HoyugjF/pWd8ehFMN7RAiEAv+VLxAVLPwosbuImlN4aqGwsp4cw+v7Pg3KC3FkBCG8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596824470757_1596824479682_0.4238421191359003"},"_hasShrinkwrap":false},"1.3.0-next.1596834301290":{"name":"playwright","version":"1.3.0-next.1596834301290","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596834301290","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6JHiAzcvykvpCif9LEIaduFwRAtAdETdRrhDnO1ZWh/8zvDlE4RSk/CRotqn9YITvtTMb+8Sz2NR5TCUHvr4Xg==","shasum":"9a3b41628c47bc6d32599974dbcb05e84aaaf6d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596834301290.tgz","fileCount":159,"unpackedSize":2412169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLcIICRA9TVsSAnZWagAALpoP/iCoQdY2lzcz/FwvB6HV\nvhnh4LFUENTE5TLoOjFjb5cFAbhFkkVQw82aUnvQBtIP47Nao4KM1w1xwelV\noz4PoKXn4KK/42YLs7EXVrkd5HfaFSww/2a73etTYiEVgoi4iGA0eMXsP0Dh\nD97KsnCum27ij8I6/pjC972hjSSQwnAlEdLi1+NxrlWBHWGV/xM3M5wLfJLw\nR2zjUzY2O+HEOx/xlUDyX6EexkYN9wWSt7JF74WCAzDHe+8hapdVt/7/sW3q\nvYqC1l4VCI1V7dwBFWJTfFLCjj8aIJvF29EIUFo+jg4THavVxlpqNphmxvvj\nSn9VEniboQKihUTSoC7Zbqxbac5BYN6Oj4bosTvp5DodvmrKjXNDcyzCA2Sb\n/F98qhHn4+aIHxwtC3N+NxqJOCaYqdzDyCbJkBR29RCgg360OQHFeRks0ikw\n+k0qM+oP+qT4qwQcKa5FlMKVV4/I5SdbAUO9xTHeF4Ot8b6unVZuii8u7Jhx\nVKFCE3uSy5YOITXtfCQf3v1v7pX9/wkBJPir85e1FNKK6OYEYGdRIty4Yi1Q\nj2FP34vHHTAMWfimx9wCmcxWSlci6qkaXct3+N8YH+h9LeAovZWLYbdb/Flz\nLXr6VzXM2iKTzxS00euc3/UlW9RbcsFG7d7uycIwm7JyjwdIPaBi7L3PDE98\nEam3\r\n=1WKu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5ylTYoLSTe+nzzjY8rfyLNW5khgYmObHE9dQSibZrzAIgGF/SJKkqSSNLffunW5jA/o5mkEz+1cISRAuzFp6N/wk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596834301290_1596834311798_0.8069310508971872"},"_hasShrinkwrap":false},"1.3.0-next.1596835763182":{"name":"playwright","version":"1.3.0-next.1596835763182","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596835763182","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-p8uzMAEU96oGyZntErFTMgoxvbhjqlc9RIroCypIa9q93Om9BeNqCEJW9OX+UnN7FITeagOj3aN7YYgZcvMW0w==","shasum":"70ad2b1081ee6c87994cc40ffce9c983227ca018","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596835763182.tgz","fileCount":159,"unpackedSize":2412169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLce7CRA9TVsSAnZWagAABzkP/jQ1ukfZgeb+ibCiCTMG\nRZtBAJgK+/diCHgurycnKgbt41rGx7GWdicDqghRhtaoDd0U8GqWpHuRaETn\nNyuXTDkoLFXHL5hLO/SBcDxNT/hOlwrJOloK1yr8IFO3io5yOZy74DHIs1OY\nBYdJ8VCQvhhAg3gz4Cplroxs/LL6JgB7FPfVPisIWNJreWXzCtjwAPvl4Dlw\ns8nn9pTQ8LiIGxN7qzUFlbqGflUJpY9oiS/KsCARxRb82VQqMvKEeib7m61J\n6ky0m3gP+6Lt9PQGf9wpigSLIZs0HpEn+qY8KdIXQEACdwDVt+kg2stJxgdn\na2KnUAGPFCa3OcoBM+AddURVbGa96hYhxuCGskHJ8qJouD8FQHNhxoUKSBXj\n7BCbWVNgCarx9vHBrzzjcP9wofToCn+YqPR+Pd/Sf/7P/IBOla7dI0MHkWvA\nMxU4Aw9eFBIZjclXEBn0khISEzKKSp/S87w/CCdO+riJS2ZetaRLlFNXSM3I\nz44iU4KiKJRKpbNNDSBJqVVOIuILAdsl+SWzbFUPMgI3ICiD1YmbUFXxp4X1\nZCYkK9JLU+V6tnwzWWYm9y0Z/44f2ijbVaXPYrUch6xwTcialVRdoUMYlIFl\n3mT9DwIHVNwpCQ7+k5y3UK8YCo5FX2vRvXxxOCJlQmKCUkJwdArmODnBPnK1\nn1fX\r\n=yj0g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHNuCUTrFMOlDQ3Kzo7HZk+mLRfWydtVX8OQLI+7dHI4AiBlzpD8nD1f4UGumgUTxjn0oAbCos9UxTQcBjauWxaV+g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596835763182_1596835771497_0.08943259208835341"},"_hasShrinkwrap":false},"1.3.0-next.1596839372253":{"name":"playwright","version":"1.3.0-next.1596839372253","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596839372253","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-n2lzxMO2qG23hWKUxUdALyrKX5QoXM0eBmkk763xch/k+KxivyJ2bmnyJJ1HkTSLbLJt7IjGDEi4G/jzSWijtg==","shasum":"a166292ae83d80d1cb3e326cd04e89c9715b3e00","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596839372253.tgz","fileCount":159,"unpackedSize":2412169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLdXVCRA9TVsSAnZWagAAfRYP/RM5eKfyZxfmFnhRd7zP\nuLJsvElmE3TIX0cvTlNONene1EBVBDaDdXcB5QY0Rm+hjaCAtzV5q8CyX8bt\neiN25m3VwiWzVtgPEiXua74/bA+EYSZz6xCN2oQb8t0qAsxgZEY19FzjP2lA\nKR168qMFlJcunyD67pUuhZVkVDnGG1MOlnl7lKKPt+Vuzf1dyQe9s4MVqipJ\nVLo1AnzE/t6OaKRtmU7sO/tPYzuRxnAp6BeM2KtUu7ihJfaVk43ML7nRrwWM\nUNvXz0nTrhFr+cJ0T1wkqo7Vpz9M13atR48O6dXFPYFJkJVgpWAy1Sk2Zjwi\nMbKU71wAajVCtl4dYUeWvO4F+T7pqnwlhO8ZSQL1dzYWpYO3qO8cGb4VjRGA\nvkEFoZRbq9UQE0GsxbzdTauvzPe4HDhaGrgzpFq1hWjHDGAN3OWfMbtpLFw+\no8CZv7rBPhWATNfsGL/AELIZfWVem4PyFN3beEHMrZOrd22CrjWmrJJnPkw+\niXaM5vc0+vOwSObWLnB0lsgHJ3SWCbhUQxna/esI9g6Bgi2dCoCdxhWw9CWc\nZavRSsRjqhAiFsFQLOscSGsUq/+ertIcIiq0H5TxZGfYU9F2dzUnbUaY7FZ5\nzKmIzWPeXcqNvIvQJ3ZdrPsoP6QL1zxJyFogqCOkXPRo3wdySv3xvNPDU06j\nU0HB\r\n=Aiwz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDz7WKJmemGCmDte3ddeVKtCsMcnKECKKXoK2jAlf3kewIgSp6km/Uhv1zh+Ww+nAwmplMGDEKPK+zOmY0i6d4OXto="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596839372253_1596839380281_0.7906113737569156"},"_hasShrinkwrap":false},"1.3.0-next.1596839989770":{"name":"playwright","version":"1.3.0-next.1596839989770","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596839989770","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-UVEWILioGcvIBfYBljIJBB/zY5/ll8KBPXSe0kLJ6TN4WGDEIoGhR9L89057P0QqQ1qFICIgcD/zNLTlAncJ6A==","shasum":"73353b515b9487b365fa53e5e4005f9ea69a3a15","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596839989770.tgz","fileCount":159,"unpackedSize":2412169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLdg+CRA9TVsSAnZWagAA4SUP/3smuZ0QD9Ykdk8zx/Kn\nmVtj0WOT6LQCsCVdhT7lDredp/Prv8l7e5xNHGQ90sFtZlswWBrWnfCYLbIZ\nVtibATaXU/FFNYgk7jXmBfIdyhy+MTrEtLtH7C9a3O8Ke8DBsU0bxpAMVXFI\n+LfUxM53UqUVfiQKM7JGxveIGSLC6j9R63bhfLou3AhROtOeG4AybSKvxf7K\n2xAvZLfZdcPybmqABOYwhTsunac/7P1du6JHLyLYIlw66qciAypkSAYxeJt5\nmCIqeWf/PFuXfAc8xSbN2X55I8HhVWcVlBVjmivckogaSIJ9XpBtnxk65Lq4\n17PFVhHiGSKE//88xS2tZLu0yVSYVhYf8g8pGtATDhj8I85AkQvTa0T7Zhmf\n1uIyibo9O3ToUb4Y61xaAsdBLoqYrxh4//NNqEuHCy5QvdXzvJyFac1VFZj6\npgYb6V8hDtm62rLs2m5N30P3d/TxdAP1umvHHOWGBmhd0Zvfhso+xi871Twj\nbJYEMWGdT9h7yYAP0Bgr0IR28Vn1cP4rhASqd4HgbK7DSo/1Sn7UbZ717JbL\nPsQgTL1mwYNxK3uTsTEWcAsxu05KfsxeuHciNzA7YoAIFguvADzp/csEq988\nHfT8wZJ3m6iXqgZ3cMaCXUZeSdhMBgmomaRhfDjK3CRqLztW3m8DfLSj0d5l\nmiBl\r\n=F5JI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBmVcw9u5++rUoK2ojH2Cz9DJqGPgx0nCYBcd+8+iQ75AiBgg9v32CFgomZ5TBwIbT6KlbZZlW4FYQnFEMYnTUmhXg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596839989770_1596839997672_0.12655107228509"},"_hasShrinkwrap":false},"1.3.0-next.1596840206819":{"name":"playwright","version":"1.3.0-next.1596840206819","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596840206819","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-sipccMkPtcbLm1/Y1o1QH+P555wCVYrj1p4bI9c5xvGWcSW+jD8gOV9JjepV48aXBX8OlU3y6BOE2uRk/8lyMg==","shasum":"a62565419f56a821015a6c9f1452496cf24709b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596840206819.tgz","fileCount":159,"unpackedSize":2412213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLdkYCRA9TVsSAnZWagAAYYgP/i3aHYZCRyHTa4v6uMvP\nDZXGMLSpWW3kXTGdZc0jOg9Xa6QzVOKT0uwkts0buAPGmno4kWgAWHmnJWhd\nhAdNZKZMoBcJMc0bpRj6EPe2Wds1a5T41OnpMKuPeWCu5b2Qnvwx9JyHWwPq\nw+ygwL9uYUU75FaILectgU9XmlV6RyHiFKMtW98Qc/zfqgzBzQL3ev1FM7/4\naL85GmSlXV+caWLfGYpiNm/3WQdrsIs1udsCJApvIZbY/V0reNGAqlLWS/Mk\nipcXJUi8m7tDaDd/Z3YewLAyOeq9BPRxz7YltCV5F/X8YlzmTya0bzJXd95C\nmgTehXC4Tm9pF/CxsRDr811QQlNwDYlxl/wndwkgA+qXlHoqwrg6/s9DInbt\nLUlUHjk7hTaAT5iG/h5ie+UZwYIyitG1nQp5NQN6hzi/O0Sgn8hQBeDMTG/v\nrzqHMo2be32R0Ib7JLqSMaqNGb93DprjAYnpFW9MheZO57GBVapQTBzqNWm7\nFWsJWGc58tq11D0u+rcWMrKXoQk8WeW9Z4jZrHdUgaFFi3cnWOtH3KYuzTYF\nNw5r7aZnGEZIWDta30D5s+8rATiiBdvMVbtAd/bAlDpSDDedo4wLwsukfsRu\nbOosBo+GyXjhXgfBdgMvRYUUc+i0sA9h1DFo/4Vs9TCVe1H18tYEckdtk845\nE8aN\r\n=sy7e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC06WE+HYSd1kjbrmMWc+z+jc+xrsMdjtklJ1Cz1nsmwwIgZVn/KILes9C9FcEpFty/bOgf9db74378JV7K1z1VVs8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596840206819_1596840215976_0.5165421860577479"},"_hasShrinkwrap":false},"1.3.0-next.1596842639914":{"name":"playwright","version":"1.3.0-next.1596842639914","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596842639914","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-uuqY1Y3CQtBdIRkAOuN0jQLJgVR+AtcsVoMm4KVOMCCAJUVDGf5nHQXqT9a+TxpjqNmVvWwYppm1DvnN5RfwzA==","shasum":"82f840e8fa47adc4f51774949775c9224713927c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596842639914.tgz","fileCount":159,"unpackedSize":2412213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLeKbCRA9TVsSAnZWagAA700P/18w2HMXLnw3QRSMixCq\nb6bRhn14dTWvfK6ucOpphMlNkzT2oADhl9p8T1vz3U7Xx9ueXfoV29D8xddH\n0vb6LPGGHef0eFRfgl3JJY4M442gS6a8JwY8qurvikSvhArXserNYlkRUTe9\ng/ccLuqMduRb4dT8KpyqN8yzjsBh/4Y5QrhV8fwXxV34LU5Ufi91VsovroCW\n7WMo7jszr6Fh0/xvoSzxK2B2gGeLUqMRDmtIxMeLpt3c0cM+LvAQ5H2GG0+i\n3bksAs5xmQBAFpZp9he6dTUF9kEzq+k0G9cxU/uf4FzMzXr+O71jj1VdfqNb\nwW3GQHNckAr7ZM+k9HD2dqilln25qVe62Y1VuqDGAYPZhDsHou9JEuR4Qi5I\n7JJgNrXIJrkvYvaDOCr+NeyTBvrPOk6rSMi4riYuw/xQnb9VA4/4OBu8fAGm\n3P7pDRpL5OAmCVG1fHdV7CxzS/hRChfXEntCoyI3/HshmwzxkTlvTL82DDr3\n4NAd029Sje+z7XOsDq2uI1/c3lBgHOZwSDufLeQhbik7ZU4xzQveDT6M8oLp\n5/KP/HHuTX2i+44JF1fG22ED6hkCZaMo+VU9IR4vTtnj59Rq6mOfZBp8gZIW\nOWKr2rJRtbZ/P6hKoUih2eShPn3Tnho/T86BTRIsV3KNbzTwQf74CHk5NyCn\n8dog\r\n=E679\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxW0gatvkaj6+sCX2bBWNL/R8GwXoutuM5HiO6namxxgIhAJVgbZ/JRKwxb12zGZzCJ5slABSs9dNYBQgH1LE1Qu+Z"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596842639914_1596842650617_0.9190888580926078"},"_hasShrinkwrap":false},"1.3.0-next.1596843106133":{"name":"playwright","version":"1.3.0-next.1596843106133","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596843106133","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-bU9boxjiO6tktLACulMVYVYZqmrroIcAmkJD/dTYKAp4SCnHK11RvBufihtYs/ohdmUNX0fr1IPhoRQTm3PzmQ==","shasum":"d7a072cc5167bafc1d85dab6ce11eccf62ffd9f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596843106133.tgz","fileCount":159,"unpackedSize":2412213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLeRrCRA9TVsSAnZWagAAAdcP/jUU99i8dkXtaaPPdDuX\nkLNQ5UbZq4/0yxm/KxE5gMMy9qsrMKNd9/tsVtZPksNzhzuF0xFnPlLyVSWW\ncrtf5ts3unH6/TfuPYN2oCKR0EOWvAIevayZruzScyq/zOZESv3tQmFGYTrK\nSHyfEf+v1g8PvPtQiuKlt4YjYcGdFjH7dzqxzmTFHrc6+hb4Xz5skFiuHkdE\nJFP2yd9hRG02hJDvxjlxF7ZruZfqgkExcNtyDTrcvnSANDn4iWbcOFFNDaxU\nvczNhCGmgmJymUP67pmv2wdQjwLIESE93mUzOVttcgJYqbs6fkV3R9cWEfDI\nV3nWhMz8tkGPIYXLSSHVf5yT7EicgeHpmsvZShFuOAxUUDZkEmOFZkl33iqk\ngc3KdNejy12hV0ETeKr+3ELDVzRdcJIrCfxVQ+3R00/9nhAADrKSiTOzBUvS\nZSeVzq6/CpKd1iLQBdYmik3oMAmV00vhSPDUBs7tAlU5iek91tqJt+il2CnN\nZkaFqDwv+hDbh/XQWkHXK8mlRKXSJhUQlSvtu1oQEr1LmqfwTTiQL8e+vg7E\ngLB8nG2cPdKRhiixWhvexoTGM8k7hPuz/RXuDJvCA2z/s0jW3g88S6ZOW89G\ndHGIxSUMI2GLg/PWw5uAFwAnc5luEjpHrY+y3w1rGJSUcgQZJWvHkMsmuGVR\nohtS\r\n=NcKY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8K55Mp+EzjMVMv5J4WsdxeODB9Mla5dqeHw0QL02QsAIgeScX/n8jiQIeZv1huWQXDGDjGA9q5TeQV64EniukS64="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596843106133_1596843114948_0.18756332363948758"},"_hasShrinkwrap":false},"1.3.0-next.1596859037816":{"name":"playwright","version":"1.3.0-next.1596859037816","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596859037816","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cZ3Ne5jOLYLVQAqzDAvcnoua8Xcln3n6lqZzVaxi0ImS4qOHqXPefVFNGnwSoptNYkqfIhBnr61HOL7hFxXOdA==","shasum":"0bf2184ada2fb0bc875d8ce2e7e4a1ae9e578c67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596859037816.tgz","fileCount":159,"unpackedSize":2412748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLiKpCRA9TVsSAnZWagAAtEQQAKFoZ00nD2hzEapk7MRu\n6c+ccXkymnHZoI+hGUjyAPqOdWTP/lAT0X+D0Gdp/GR+6bAcEkBsIgVtvT3Y\n47v69TKz9pd/yuwTEF2riRpJuARRur3FvQtlVKJA76Mu5L0O3OhJoEkYpFIJ\nAsg5BYrnMgvzupAGYk66qJzbyweH48fkCRxFOV9bX5lVlspPvYMgz6R8lhRM\nGBsFm9m+H8TBwstX9Ov1cNxeQfF50pGPGBe1BHM3bGUULx5E8EpTzX8gXwfn\nkgs2IvJRYi6YeIUCXzG6oUeH7s3SDQKiT+5Ml+bGHmYrpNuu3o/IajehdJxM\nwWBlt+SjwAIdoAhOz2NY9N0UFlVi1yUSIOWw0VJQSMjtfg77KaUejgaiAPuW\nLbPmDgYIYny3A+Ed3ZwsLOa2dn5iPEP+yLlKV1IshYja76X0vJ94W/6GlL5N\nEFacXl7mpDsehbnSy6Kgk6S8VLLTO88nO1F7eoXe7sHYv7LB+8z/ost0vCE+\ndigUSghHSQv5CK2kWFXeaam5ujfl+tziSkl1+qE2EaeBI02KkA0pVcyyyRNx\n23qhE4cRwp17aFzyD1HL/GMt1RTn/S6nBtR8QZVlo3Cc4dojuexKFf2Pe42c\nVtoyboCg+jsefYtIAOoLXVgP6QJNt6KZgtUKC/ki75/9tJQic2+TdKgsH5Dw\nwBJV\r\n=a0Iv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq5XCOO9/ZWu0QzvdCr2elwc8sD+W03/VMBWJC0qpcUAIhAI/xtBMfiFLWvy+aSMEOey3kXPIyEp/rU+fnGPeup8UK"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596859037816_1596859048841_0.7199470636097698"},"_hasShrinkwrap":false},"1.3.0-next.1596941087026":{"name":"playwright","version":"1.3.0-next.1596941087026","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1596941087026","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-BycuUKOQhEZWT4CGyWiZIotfo7I0Ch1IiRZJOxHp0lSg5xZMOAo6QO4J3N5+Hm9qPy5eWAKCWqS+wWwYY35PXQ==","shasum":"ae59405d4fdc8953635e1936d50b92139cdf901f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1596941087026.tgz","fileCount":159,"unpackedSize":2412748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfL2MnCRA9TVsSAnZWagAAkeUP/0pKVaDl8uHGah8BoP4m\nArBAO/PZvCZ1sO0lIA7563kKfPxckN0TOKqCXBd/STdPgXSRCqQaTXVTweAf\n98cnFQtpDu/83FF20Yabexg7OAAdhWGZu4/Cc2PAUI0wBEurhaMiqB7aD1jb\n3QOsqbrzPH4Dx2TjlmraA01wB92Iso/la5MTz/Nq2rkVDPSRpWdz27QVfR14\nInorsGXaCsZsviem9XVjV2TmcFDahysEsiBDaK1qo/ZoC/fIOE+Pji3KXGCA\nz65BQT1ZMgmTZo6lQrRjfCPUCoODtf8LTPdL9NzeRb7wkq6V0V6Y9vJcikCa\nU9HKtOwc+Cvrxg/OgUCb4ehakJjLBFjAW7xO/ZKQFHi3TbKGf8hCk9gmwk3y\n12JYpOspo7u3tocSscI8Q05mbhqAJA1g6jDSvsyVxm0I1+ZdIzJ2lz2BqbxN\nh0VyPPHIQWaTOSbpooblkIxA71p0WupawjNBCjUCBUrTbHHpawnmSrVTkOOU\nocPt9Vltcg6a2UYzbBe+aV9Eg7V8rlnKvlLsjkzW7DoWLyH4GIDwmjG8sIwG\nXeqTzilC9eY07vY80PU4X95jqf+7qyAQRJVDKc5yNg5kQIywAUljJNRCIjMz\nL91TXVGHxmUqDPGRrhqZ3KgfLIOK6aOYKJu6u/9Kz3uTASLEFcEGEDqVemtH\nfhOR\r\n=xYya\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5mneWRCbav/UOD0yIv4Z4u8shWQK+JpjWYrPo2hcllAiBWlubL6JE+G4llpGBVn32O9S/p87GUiJOAwqaeoz5vTQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1596941087026_1596941095116_0.5927666724687322"},"_hasShrinkwrap":false},"1.3.0-next.1597073497045":{"name":"playwright","version":"1.3.0-next.1597073497045","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597073497045","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-bsplJ5GnZlz7g4MSqPKxsBE/XZz7lpQJKPXjMpCTJtp6WFqKjTjThCddgp6jfcq/sv28VRjsLEcDRrVBpGW6GQ==","shasum":"280e2f296bd7593cae891fb44a5244bb5a28ebed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597073497045.tgz","fileCount":159,"unpackedSize":2412748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMWhjCRA9TVsSAnZWagAAzvwP/AlC0HdvYMnjR3AzVZ7+\n60eGcc9zad1weJ25OoMpr4vQcGsqEm4EdNqlwUPeKatahAaTlJfgk7OgvsdQ\n2VlK1e2kMjHE8rZ1fS0pKQKb2vB64Eom602DSZNmNTm8Mj6QrhhbuCwVs8KC\n6kEOX6brw9iVkgzrwNvPXfUp/hI9IlvLrtTzVR4medMxjpcI4ghjsCWk6vci\nNmrT4sf9C7c61CLFliSPuoLcOivoOw3Pl9rHWjhdpd4RG61Xp1PC5RxJ4RYb\n6Mzua2hCi1HvqCo33x4B9aIMN9BAvL5w1MGkcLth8nDlhMBS/bfogwSkvXDu\npfs+Dvsdmq8qMlOhpS2sr/ohK8PXX+BOZj+q8u5NpZUa0V25g7rIol1oWcVy\nfv50munqebxTuaEmSMmo9ZGj9LOd83Ja1Rk4QAjZAx+zsVZV9xGgPEb1/4/u\nvSC79Xpm2bKqvkakNwUIVIGZUYH1QWHDDenR76k4GTzuk7dNt0QNNHBaHYmh\nblGIyMGL/qjhRT4TVM4R/sCmQE5qXstqrRuYeamvPMPFBREoMqxmTCij0EvE\n5zh1+chOKxD3dVxqDc7ZRZEXPZOVhamNGyEUgijK/pk8aacnn1m9iuh5Vkou\nVykYIbEa3DypCcMy2CcUoiR/HV/Bdu8fGaKLEQjPiODJTrLMNlu8wTyHkPTB\nlP4b\r\n=TW6u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFC4ud63rk2GupP7plPZadYMMnNkNsKCjQC4st2tIPiZAiBUO12PIVelRCXMUlRr3FpB0/X2DpEFLrMFKlUReOk2qw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597073497045_1597073506740_0.563381699185113"},"_hasShrinkwrap":false},"1.3.0-next.1597080280373":{"name":"playwright","version":"1.3.0-next.1597080280373","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597080280373","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6wpfFUygvrRruqoqD/f5Vc6TpccfTKUgMoQurUuu+lRBEjAmgGjlL6DzhAOv3yX5TbiFVl2vG78CwPAla7MLeA==","shasum":"d46a2293ca9ff9f1e952e6940931db6ee2e2ab70","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597080280373.tgz","fileCount":159,"unpackedSize":2412748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMYLiCRA9TVsSAnZWagAA3OQQAJ6Tjyxf1h53z/4UxG/Z\nMHcvmgfFg3ViO6oco/NDKj1La8jKrrnQniZ1U0Yi8nUZRyaqm3trdhbLG/Lt\ntEMq+k+z2jziCfVpqP611xfGFRx4n43tFZdfgTXlyQZPpH7tycPHXvNYx8rO\n2KnUoHMouCA3OBypZzsOFrYzVyztomrz2e1q6iVE3/bzU7G5MHxlVpvYKV9l\nW6jUARRgy2a29mrAGuW86odJfssjbA5K7QR0PHU2JnRooI7K7FS4VWMi/pX0\ny3q/MmzkWFvlPeXLRoJC5NcuFexXF2uthi9WHtHL3FeDwJ8JtwIdIxAvNaMg\nufdQOqPJjFv8j5/sxP4T5EzHEspuLJbCX4sHHdTPFXOJiI2vOpq2oiXT5zgZ\nC/mY/SrT9fkxNCp6+WIj+70Qv0q9MTMrppfy+vomvIeBt8wborx5Sipaa2mZ\nkQoj5jjLdJQJoXBH3ZoIadx81RP37zElfQWm1E4858iRMBn0w7W8xkQVAjlb\n0Zna95TKsW+Ti0b4MAPA02q/yYK1vdo3B6wgC/8TMuaY4qsLY/z69vKYjs/e\no5kloQR1LUWX8fltBQF3zfwQhErBkZ3E8TBoaLE8lz24W3B49pT2UiKhSQFd\nwRwbrHlnBQgsHmOZBXdOqQczxRFbej8tBv5fSbVI7Fmv2lWL69DEWokh72Yc\n3oVn\r\n=RtYy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2xXii3krt3VhpcpczRJwcs7de1sYCTlFuNvZnfZmAzAIhAMqJ7GzBzi79c7LS7CVaEYAMwUv2bmtOf5fa8D0zP1QM"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597080280373_1597080289426_0.18672358220001528"},"_hasShrinkwrap":false},"1.3.0-next.1597083749625":{"name":"playwright","version":"1.3.0-next.1597083749625","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597083749625","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-OxwTgGAC9aKcf3TCJLdRg7mWcf8h859I1e8u8MA4xPeT/ZSerIqkCa89mweWcIsqqMK6CcOrlvPQhRDdLmq0tA==","shasum":"8e03ac0def1430e334cd2b34590a21896e8fe014","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597083749625.tgz","fileCount":159,"unpackedSize":2411570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMZBwCRA9TVsSAnZWagAA8IcP/0TFxFzSi8fDaB+dRrfU\nt5Sw8OOWGSp1pjXHcQAxtmK+zUL+Wj/8zivfXcr/CT926ttgUx7TE3sdyqD9\n6oFz9zE8xa5JUWcbJceu3E3aKW3I2zF0WjK7p03mTNoJK2EEk7in7ERni243\nSgTTiFfmxsCDlZAlC14SGGxS3tat9avZ/UTZdlO813RfYN2AmUwLBsOhCbZV\nXUzh0ey8qzByseF/l45Fjr2LVtJwnb5u4gHA2YhgRB24l0DUcg30Q1w1GfKK\nccSvLEOZcLdaVxaq1oYR8niq67GBcbwYq81MAijNgnKmCJRfuPg0HDJoCwZs\nSs2B212YUvDgzXD3bHYNiH8lkU8+SAiAtada4P6jNnWZ5TUbjVZCBIXvvQfp\nkfxnrumodiQ5x6Em76bDVu9Q3QMK8U27omnvP6exKsepREXuMfDUMbyQ+29R\nnDEDAQdd1wY1paCZsdMpRp2ieB07GCxdxPzjd8EDiSkO3DcD1jNFWsc3nsHk\nfQwn64ykoPWeoOn4fIz/Ch+Yy0L2aKmvcznPaoCoAUlhLOONJwsBlMZt66U7\n94+2W8wpvVMnL5c2A7AaEzDuK77VYDJC8k3mGECoVFBWotwmCfcXvwh4xmz5\n69V6u8RRxlEtXWv59ymVnE8hGqwbe56dwhT55SLzVjvtgdQC6WXAykiJ9UTO\nBVad\r\n=1SBX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDW37BHInZM1ZsGHOaL6UGzcdyPCgbpt6jjSxsqmvO/9wIhAMAcG3mDLgoBh3TRshkFph6WGKk99sFW6F8xf1Kh4Zag"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597083749625_1597083759948_0.44369885034249856"},"_hasShrinkwrap":false},"1.3.0-next.1597084940660":{"name":"playwright","version":"1.3.0-next.1597084940660","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597084940660","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Yj5bBDSvmprAxmr+II2WdVA/vYrx+0BTmIavpRnU16RdfHCRDTQ8Ur8EUuNQ1mXasKEXEtDsROa8atfZPVlUxg==","shasum":"4d71140d4dea7ac6590485bbf9697c7dee0509e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597084940660.tgz","fileCount":159,"unpackedSize":2412451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMZUWCRA9TVsSAnZWagAACZkP/16/1GbxAwrmHVW0vExB\nZOMKpsi4Oq4T9xTeT1+NKVfpQqys3V9CD9H/KY6WdifczXUtR7FPWQms1SHR\nDChMvaPhyDaerr1u9sqFZ40weJvrBfI66++hBGRPK9HCNhFfkIRDAvWOCw/D\nKDNVKERJnFRpD2IDyg0nEws0ZgfLTzuTfSZftkAUJQjmNe+/RJKNq1G/O2rf\nhhe3Yhv0A7GBd8BNoXazfNUsnIZAL47bm4H4QOR+uP88X/VJJMqUVc308do9\nZ2w3BrInXYnpNkBgEasO5oRb/XyY0sLoo1iU7105aZop7XoFWrqyGDvnExre\nT3/xm6MqGf1KIVPHSTiKpIXF0H1DEa9jVT7y5SKeghMu82ZletXGSdEoU0q7\nKNOK5/B/nVnlg/DIWB7+M3JWkX//6h6IrTvu790GFLJH7D5GCJd2R8puaMl1\nVt+5ATY//bOMXJW0/ZgOBiof8bO5jCfJ/ZS316amdPFOFDPn/AUXj7VlvnBA\nfoFKgJT3utKqmA1djGMLLvUrVBC3+7WctEBbCwEaFWTzXEoy9YsmIdBL+lg7\nl/fB46BsY4rvUjfN77cI8wiOsJMPkLdCDONN77xxioYdiAjln+/riPBU+eIj\nTk67T9GvsNOAB8XOZTGZJWPwPtZ/1AoIdM+BMga9ef8fCRgyu1TP+ugXNkmD\n90XD\r\n=HWFL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWx3+ugEzF01wb9biXFpGEUCABgt1S2V2RETohRRJovgIhAInDnzB1Jw7+mNsLyQSq42Y62wOI+D8zn6Tgyxi0QAtP"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597084940660_1597084949702_0.9607347756414464"},"_hasShrinkwrap":false},"1.3.0-next.1597094454045":{"name":"playwright","version":"1.3.0-next.1597094454045","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597094454045","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-g4c8YEQh0KcIuDoG4HDPqxmrA44eU0udQvmwDs8Tz34Ww7k+jNAlDL3pCH5nvC5/FJcIcteckjpSID8kI8ua5Q==","shasum":"efe5276b14fa4a7dc489336055eae132e5d80922","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597094454045.tgz","fileCount":159,"unpackedSize":2412526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMbo/CRA9TVsSAnZWagAAo9IQAI3/o0iTiZ7m4LA8J9od\nXoRRIlttpP94oNB5aW88WOJDuvNY1Rv856XFum9y1F8ksSUQHNyMXnLVqkEX\naZ8LFAoAlSDgvcEV/B+49McsgR3ZC4sQ3vc5T7n5zcc4jjmCnf3WBzci+TaO\neULrOAI1wVF5iDdbtHnnZyuyJfNrwHDnOqDpkLBxHjfE/ecOp9axi+hH4iz0\n0R+d2w0UBMKA6FVJ+DMbfwvrDvtApSMr9+fw8WlXfzxH4W8wnNen4+zXT0rH\nQPfSpqYoubrzlKt5++Y4IYv1QvUK54V8XqQTAqbkiCCF/w7YuMfqvPTU2WT6\nW4CpdLZ/Z34g6TjOUvheJkCEo/Khg1S9aGsMoqpgqN8Itdd0+G/s3AnpWgez\nv7ynxnHle2u07eEwYfGwiJgy5oiZ3frZZuTYOgoUbhT0f2pO8niW+9gJ8NY3\nnURt2sHj+QszztmqUWprc0XgkqHPlZz/o+fHBUARhuO9d0ROFNLevbNvIrAy\nLfeLsoUxtTD7nZoltYVhMVA4mtMJ+VfGjcGmIwx9CeR8OSSVVRhIkDbN1PQC\n4Vw90tjzv+Sr703Ty2IAj9gxNyomdAFlt8+ffic988iZ79VQaM4KmDLahmJh\ndAetWj4wjbUR8M5OuKvIds7zgHV72CGZGp728cDg8uGOKwkDaZbBG/XgLJUg\nWl/S\r\n=e96L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFwQ6DUSjxv3NGntbkIhnvtIJTny9nv8q78oivXmAeCgIgAcb8u4IzLifuptIf8cJtQCMytB7kVmii4KEN+QASWEg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597094454045_1597094462690_0.16290046590738583"},"_hasShrinkwrap":false},"1.3.0-next.1597096964634":{"name":"playwright","version":"1.3.0-next.1597096964634","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597096964634","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-T00zDJ/epHBjtkpfYS+gucmuDwt0PGRSYKA+5h3ozPk9k9iJsrakCWLH61EEuAyCKnYnn3Upk+HovVvnNENqpA==","shasum":"dfe16157d2465054aef4eb4b74ee66ea9f7a7f14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597096964634.tgz","fileCount":159,"unpackedSize":2412526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMcQOCRA9TVsSAnZWagAAfF4P+wRioKfPh1yBlniiJJ01\nr1ac46jeAM+eai5JaoNVlCGSOPjLDCR3dqbq1GYyrPLLbCuMy0KcvAwOyiNE\nBLI01iucK1GqWJzbmXm4e83fdCARbiENJAn9jLx7RzH3iK9VN982+Zon2wvT\nHyQapMbNBWSQIIere2A0smX8jZ2MPx8w50nlQtBug681SDh/rBECad9igkSE\nSgREgiJQRWTaYscj2S7M+ASuSEu1nJ118AI1cf2qBxrHhQz5gDlB3ew7F3gd\n24x9lzUX0FRgYesSNZqJ1qmjquvuKtC651ZP7axfAmZimicFAVTeaKkkNG33\nl6k+bX0EBrAuaSDb0oZOxKz9il4iVQsdKeuAEMMnvwW98G4kVjX0GtiS9vcf\nAT9YPFp/x1INedkvc+JGogePhgLoun0yqN+Iu/OOQYaVHH8gySnv9WK8AKMe\nTtlhr1GqX2asBFT8YM4o/hm6KuabZWHi30ms39PtssMgcMRAJTfGlLtjxpyZ\nwzcltmprvOL0xLouhLc2O9WdTRRyQFh/feVgaYZ7dBxpqaA2xiwg9vmybURp\nSbhfO3D3Abyp/9aJCJbgfK8pocn1qHxgb26z8dtM0A/HO6Aw3c5oysw8Duel\nE8kTQCDP9GNHPZ45zyocpm95WMEt7aMUFU6SJCn1kBAsjO28VxFqI8EISpzn\naMSA\r\n=AMQI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPimWHQuWVcoFEb08iqkUYIpmpOl05FB9TcC8Vo3ajjAiEAjyi9uRsJRvvaxBrzc+6K9lDJNfZGKUpj76z7nw34G0g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597096964634_1597096973888_0.4486447003986058"},"_hasShrinkwrap":false},"1.3.0-next.1597097560274":{"name":"playwright","version":"1.3.0-next.1597097560274","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597097560274","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gSatu2nQk46CL9AwfXx5Gku2itG5nsA49pyx9VL3E4iQucA9Eep86mrZUpGX/fmUANA7OLKIxtB7tRBXs75Mew==","shasum":"36aa30e8966377fa04639e0a7c016365f44023f0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597097560274.tgz","fileCount":159,"unpackedSize":2424135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMcZgCRA9TVsSAnZWagAAoJ8QAKTZCJu4MJT4AR3GK6pp\nWI0Cwc4A5LDwVmN9Z4LB33IhR8kMvRIFJ2JEfiC69cAhyL+dnA31uqqz8giB\n3fQoNsZtOManzs23Kp3mWdK9J67H+AQwdWIud1HOcIL1uulAjCQ7tLOVXsjF\nKSlzd+ShPeNKhh+SwnERiHSM01+74b5mt3Q1iUxq0OojGDwBngk1a4Np40Au\nomBHve3Xi+tkHoTa8WLn3Fp5Z63jUAJJjXM6K4O5QyAE5OL0L8NHCu18ekJo\nK8qx2K9Zp60nEVQ2iUI81zFJDblvDgF8imN2Q1WBGe7FbQ9FwCr2mxGgusHr\nbNqt4f4IfMskhECwiCjIoyV/fqyZEMFQVFDQZLxFjyKDEmrFOrtJzuXxfjlp\nSYNS/dRDOs/tq4Pqgj+1Tfyg9NWXSGZty3a+gjRIJBmm14kl9HJYJ3NVPa0S\nOOPuYJFOl5dN6fMaEfrgKPWYYyfAyI4Vsgm9t6sLRxbMDlKnBuEhnUoa2+Va\np+xDRmKqf8Qxj1S5EqRhWgFjljlDGqGqP/oOozB/EXvfuObggIpd5IgrnWha\n5c1DBB5HGxa8DKLQ3X0+alF0JvYqj5XXFFbUtz0Gcsm6hX0hTLmigrSnSSOv\nI2Fs5e0lKf+u53gZ45ZjoHZDwkKN6bYNMnFQcTnSfJhSj0CcsU6vJTUVxTcu\nRplf\r\n=z/CU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBYkNG/SX0/qlKKqX64kk6G8784u+dRr0sm0n7PTT66AiBYkM/5c5wEZydV2XG+cWtgorXyOoP5KYI1yFZMqXA7Qg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597097560274_1597097567977_0.7696953203536459"},"_hasShrinkwrap":false},"1.3.0-next.1597101025186":{"name":"playwright","version":"1.3.0-next.1597101025186","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597101025186","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-e/mvY56HdjD6c5QktDLXfLj6xe7mXGBOE/iSBfi9oXHKDLlDhuvGuQlwiu596GinVqSFSy81fPIv1cNmsH5NHw==","shasum":"88b5a536a91b5c098a890a654ba0bcdf21b7e78f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597101025186.tgz","fileCount":159,"unpackedSize":2424135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMdPsCRA9TVsSAnZWagAAZX4P/RbKVgKckRHZvabPO4un\nNtRgyrXN7o3iy8KjCze97H8sdSsdXej6iRp1XfZX4FmXVY6x/E96jBXf/kI2\nOA+VQqz1KKJGYR0Y1aVapqKLzifJEcwSvQX6PvTQs2DoLTBlGD2HziH+u13o\n0YFaBDXeJW5V5sujiUV0x2fbxjLIHWZH3u620d2PrnpOi7UaMigOkHamY9Mr\n0OmEFr7ZVF1fJ0hpVUxrwgXMrU/dzDX+K0iwyQlBlwn0ie8uZYjQ6r/xidUg\n//ye57OLwrIu5NsfWadOrfmvkRbEtUUeBzGMi8XF+4vdGt/xLj1faXi4WLn3\ntKhFJtxMA0scgNiKHEyLo70I9pRNf7ljMRSKtRucoU+Lv8nBctMQ3IUzQGGn\nUB+WnaKn4Y0wK5tX8RPc+JgqadnEtvOy45V3c63RW1/NFn5SHoelIez9cCja\n9GZGIvM1i9p6OYFYH12UttNTJ+YRqQw+lFh6uNcwO76zP2sx7MrHY8THHKbl\nmzX8yJofcJj8ZMRRVDWVaXWeZHGAAzLzlxo6i7aLuu7xi52LiiTmPxcv3JR8\nVz3hCNS8km+aGKK9wtPgu11jBbTds600sKSbVFOj+1qtjrgyIMlztgmjrmRa\nynNt8tKNdnIeQO/w5k5XZ9Fkp7RfratoGRz6xitMNGZBIN60ynZQmPmT/+Gw\nfCLu\r\n=JGLC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQrClaNQuzKhhQ4h8vT6zKNpuwYZp9phCTh5qKh/AoBQIgMIbRElSKvxUondAPK+RCHUfRdlji4OoZS4iAt04/Ev0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597101025186_1597101036231_0.5089098402123398"},"_hasShrinkwrap":false},"1.3.0-next.1597103435921":{"name":"playwright","version":"1.3.0-next.1597103435921","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597103435921","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gQiFaxAVflPlGa7CMhTvVS3GKnJLOAmYAG3hf2/826y/ZdQ+yvCUByM1j2MQHewSQQ3k4E4X8RwfMWDLgcA9Xg==","shasum":"dc9d643c3a7646e061ee8984bbd217b5c863a8a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597103435921.tgz","fileCount":159,"unpackedSize":2424135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMd1WCRA9TVsSAnZWagAA3PUP+wfawX8MB/N1tm6bfdWj\nLFWpCxvtDEo4ZqDKCDA2QYuBWucroQ5p/ekgS740NrpZX2mYMRDQ6l09HyOi\n3lvGpOxOdiRUGk4/pDHjB5LEpYLYm6kDv8rx1AthcttVvflDz62qhp5LQ9B3\n6nmtNHBa9nXkncRSkV2//LpfWFafdQSsr+3RF1JOfpphsKur3raK789dCQCe\n0opfKMOasBOd5R6TMVGm0D8axWOmnFqAmM8ENxH36Ck6ut/nYtFLhfJGsT0Q\nZ8a199DygeRmhQYfXQnjTWul+nxnFqQWSESz4MyihdHCdMKJftjcw94xDand\nTQBClgRQfs/MFAveUUwcjhzkHpK9asRoBZ6JH1T5n4c2hxWDx/O1a0NtwMUs\nj++OGxhNdJ8xAmE97Nm+eGyJthHJXbcP13c5VRKvdEgQokRc3XbOM7/qH2M/\nVFao9E2xEVYDlgsHd67McTx/LHOZzWQCJq1LLMp+HMZq41iYVFRvb9UvuYSo\nPaGnY4Ajod/L8Doit797HOwC3noxnMuAqPEJzpOMgn9bhCLl70Jb72PypHfc\ndKivHnbCB7HNhmlOjCdB+Ss1tI8k64QRiPrhb7sPXQajLtNEwKmEX6JhOxz5\noYFXlen98KBrPS0hBRx8s/iizBc/D0fkHTFdIuQlvstAjiMmNcSmd6jlaXCZ\ny91s\r\n=9xYO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDap2pRtI9ywKRWGDw0TH7bkOK/UlsTpME+m2y+Nfiv+AIgCadbqA64KQcA+zeLeOrOKUFrUQElAjkeqKX7BAeU4bA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597103435921_1597103445846_0.22314702290059873"},"_hasShrinkwrap":false},"1.3.0-next.1597104801107":{"name":"playwright","version":"1.3.0-next.1597104801107","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597104801107","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lF2RNhTXUkXYgP/0HLd1QVTZosCzOVD29NnAygiLy6cXUCE7soqssrIw0kAeXqsjjjV+QJvHrtIpBkGbqC8V+w==","shasum":"a15aa6d26e56d001102623c4f9998ab6766755db","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597104801107.tgz","fileCount":159,"unpackedSize":2424135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMeKqCRA9TVsSAnZWagAAnVUP/Ru5K4I8dDsCwubawcYW\ncDoD6oaNZCZ2H4QJ5yG3jL+Ob5VPtM/FKsvTcjI/CqURYQya57qdswO1ENOz\nEMFvqyeCeZpKsrVxVDFhkTnP0YzS2CdqiZYt+4YbZCmHGiU7cWNXBNsXJE1N\nFxSIJDXjbKWwG3HLhEWYqH1ol1NiSFWRoSKhP4csurBfr3lDvvMrZtcM1Yen\n+3keat9e4qYmwZ/nhdrjZLuZZbyE2Z3HR+N7POYAalBpgXX9OqYhW88D80qP\nfdrl8Z30Vy5Zwwf0a9r0274Z1G3+exT8gud1JF0OM3RxY001vtNiMs0xJm8P\nzVX35J9xnNw7P58+GSnBNmk7aLJkZMulgYYUQfpVTe9iSlibncATrZUwnMg3\n5QwKb9LQykZb5KH4Yp1dSAg9mkEMYvoH+uEg12lf6YlCSvlYe3vh3GZs0WAQ\nEgts2Ml+ETd0943fnBjUEb0m7GyyT7A0YxsSf/WBWLnXZ2Dp8t4BFp88Mbsy\nvoyontA0KPQFuh18Vrloj+MsN8ITXQ/jhOOx8Vd6gTdGsywAanha84XVfgWh\nhruSjnOY6x9buB4FRN6i0CshC70UU4tD8FAfUk9iwN0eI6VORb3JloQoAHkO\nuh6AsT9vuVOjTwS2vwawlEAvmzlCS4OX1Gk+N/BYGCpwo8ThvsJ96pWWCLLq\nRb6d\r\n=1vjr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKMIu1GaCvUplAlYnGNOB5SOJfOLCKki5m5PsXWymRAgIhAPnI58mwb/glGsXTmQK5dlwp+dFNMasbc06a+LSpleoQ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597104801107_1597104809358_0.4595235421380761"},"_hasShrinkwrap":false},"1.3.0-next.1597109436262":{"name":"playwright","version":"1.3.0-next.1597109436262","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597109436262","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YDiKUTK8E3MJaXso7lGMb4hHl9cePio7XAAX9rwZUTw3FkTF/KIvX1pPN4KbN0YupgrEPFw6Nc4H/lXBJcTA/A==","shasum":"bb535998a651d58e6eeaf48eee337f6c79b468c2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597109436262.tgz","fileCount":159,"unpackedSize":2424135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMfTFCRA9TVsSAnZWagAAKWQQAKGvJelD/rTPZFBZtR9i\nPFljCPoEeySLaoTOlEFVlVDKlZDLoIfvSm+DVArqDzgd8ipnz8oCgQwsOs3w\n1v0a869UJeXDx+aXtgUs4/NKmBP6wtZlLLTiNBPiTYAmC8ZN33i3qA9LEawC\n9F3yRlSFseTtWKRamMAmKtD6xMtRJ/AKiGw0gr56F/BKw1IAOpLQYvQGD6HQ\nv1BHMW8wfiIe6rUuHbW8Eh0pEanLqSAM+rDmMJ1zH7z6B9+dYMUKuwfWAlA2\nQHzVKgWfbiixrKR14MZJyxdg1hxkdEVG7se36EFMJFHmwIirv/kk1WOgO991\nH17eyzExouLmWl2HrskLxCGv9ayaIbvUrCnM1prbqseykFnh00SzHuv8qOUz\noaF93HyLb/YL6xhGyh+WzVRDxaoQlwRTwRq7fcYg1dvoXF3fVnV85Kfb7YZL\n4xlBN8lyiJUV9cfznc8+4U/OAStP3BhrQD3DAbZftuPO8nckI2O2oWoF74np\ngM/A7rVP2/Nl1nqsxEHEYnpoFxCDxBGGpO3fzjlmwV6ASyXhQN329uAtJlfr\n5wrletNC6r3mQyVKUJtK4Hx5WPq2j/EZQPVqz1nZtJMAnXNbGdWYyRUVGUQT\nacmIvZepofb3XtP3Ggwn+S1yzA6DShKs1MiWlduEVRGEKInL1QRcU7C8E5lQ\nj9m3\r\n=rxDj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDD0v5nKeZGfobDS75rFKY8GRIBCGKv6tODBr/Nlft/sgIhAJBYjl/7qc/NE6nWrxgNVwkE4LGFmXaEbLm0yK4eXm6r"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597109436262_1597109445197_0.5371149136813205"},"_hasShrinkwrap":false},"1.3.0-next.1597115560336":{"name":"playwright","version":"1.3.0-next.1597115560336","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597115560336","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XuogFrHnoKvQkzIyO5fxY/bpvNNsAJPmb9m2bTa/AF+/KXyBVF4HdiX6MXvp3+a7hQlgmrdKNE36614hQ1yS3Q==","shasum":"414026d326bd74e49b2de35307f8df4a00383db2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597115560336.tgz","fileCount":159,"unpackedSize":2424135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMgywCRA9TVsSAnZWagAA3O8QAIgq5YSxJYBJ8tv7nlAr\nIVtETLUfN+QQCHNm172luhMBtdG5/6h0QHOj4HPGq0xhuPL9GYbfByPcQp+0\nzsoZqVUKIuUpbrIkhfwWYfmxaHoQQlIgzp/XRirovyXAqAjVF1BjdqphokPl\nR34jQGLxZE1lzVQaLATPWsvYHjwp4ls4cbV1a775pTIucMvKUkWY7eFHW4pc\ngrqm9iTb/ZiMPnwyB+sUPI3YKM0lLwTO7lPX/yPVQkizAC4ahqvd3ui70+9o\nCz1/Xirabczrzl9gQArvuwHxt7U1U8/u8h0qhR98iOZNyKqn1VxHbMDO6O1R\naYpyIC19eKY4fmR7vnFjTyUN3F7n3waeT6gqcaA7l2q7K0xC6qAaib07fS6M\ngbER+l78hiC6JDgTG9W+B0pT19CoEv5CbZGz6lQKf/4N1n8uoxTW4gU6Ef07\nhfLBHEn5YT1cqu52H4l7VH+VUF46o66kq10eLpVrOVkABhXXx5bIxh23N+Eh\n7wJYAeVMrzHGuAoZE303dZvyZYjW41bsfe4bHmXzTPPTBwfwXBinrG+2oTiF\nfGytDt92YGbC158alsIg14jD5ljmBN+KZKotqbZxgCJOW2fxPkeUX103Z3Ze\nYQEMTKNbpaYcU39Ex1RF/YfDzwjGbwy9MoalznyDnrqq/88knIioIbMMGNVA\nqhV3\r\n=RXCJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMoulBC/5D00yBskaXgT2kPKD298v5seuC0Fz0wDGlRQIgQ25anPdKWY3s7792pBneCKBg7/kLUaz9+bnZHxSkKpA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597115560336_1597115567999_0.011202581479584417"},"_hasShrinkwrap":false},"1.3.0-next.1597117906386":{"name":"playwright","version":"1.3.0-next.1597117906386","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597117906386","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qYOEWw/dHs6tqLfxvxaos7ic1SsMOzxgfZksB/u6EK9jEp75fXbmS5Sm/3HZLr/GHnvItQignreClGjmXKGvQQ==","shasum":"91f94c950e2a3612a9428ac38bce5b4c484f82ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597117906386.tgz","fileCount":159,"unpackedSize":2424135,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMhXdCRA9TVsSAnZWagAAIpYP/1xiCTDRYUP5UQEA7AJg\n7PfECGxrgPOSp/MZZrpcnvickpR9tDJbGbcupfsm6MJ+MTKFtD14mYVlO10D\nktvLXZ16jrzLglo5nLDpcEZpFVfLrrLgAMevlctNbPNpzemiPY97oNXB4q3K\nI+dplpGirwQ6X2JrWZ0pclC+xW13yxCZ3LrAu3JXRwlUo8qOkOTrwjUIBKEW\npzIwZ2ZvZ7TRvooUIVBaRQ3pAbNfBKYv0AdCqzrYaPqLYavkfRPNaVOzx+ON\nJuMfHyfKU7ZXC6l25GXGwE4bpBIjUp2CxK9Psm2lPCDB7FNS3QdZp2cRj9U3\nVYzbqTEfy6IjOBkgflRavfK1bbUBDsxQ+fF7ZmXtrxqEbtUW+ARwbmqGjXDh\nn6lm3U3pptbKj1gVAJk9tH5GvE9DHea5YhCnLDl5SEAbTKeDyL/JQLyFkGde\n7VZSI3qjufYwQ0lboOCJRSyaPAfSPfa2IVV2AwMiv8WqApOW/TkbNfMtc7r5\nSoELUJnRhuNAoCHqei9u8AzPuc+zarhGlPQoPl4a5BZqXlwd3Tt0Ki9OaKFy\n1xo1LYgt+AeRIHGlUuoLt+OZEomCHEqdKGvQH+wA+uiE3oR6SyinDwMawla6\nwGiEYhFTWjCjca9g3sVMJTDq+HdwKx1mmL7VjJlBtVZ2JjB9oTZsC52VTPuH\nGOXm\r\n=DUnR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJRhd0UndDF/TQxJExgPW4E/RKvxTFiueus9q1G14ptAiEAny7phohZ53J65R3X9reu/79eBJm1rqY0NqFywivRRX8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597117906386_1597117917150_0.301789352548095"},"_hasShrinkwrap":false},"1.3.0-next.1597119883188":{"name":"playwright","version":"1.3.0-next.1597119883188","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597119883188","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VMLir+ACo7hOrvxberQpzn7CJFW/17DPRSz36RRqs02hwb0SnmHJ1Jb/7naBlSr+0AHQJAqR3evUYrv1Pxw+ow==","shasum":"a8d3f2124eea42fe109eccd73146461510a7dc29","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597119883188.tgz","fileCount":159,"unpackedSize":2425055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMh2UCRA9TVsSAnZWagAADKkQAJoA2M0E5e3deET4Q69G\n8HYIu3cfZG9XZ/JA8Zc7RFo1GV5Ulj67901XPMlPfgwn6vWvDQaScDEJZlTN\nGq46PYKBUI10qb3J4WjJAQPcQW27kMEGy/1pEzWK+Gjj97pNv2Cc1Vq09irN\nwgRPLYOHl1lRWU1U4ORlHGrNMGPDKcZyTEMOU7JsQyD0R0OPPS9J/chs58wB\nszOnNLHOZTw0Vn/1KKoDfZw2d4OvCe8Wti+WRCP1xZExzOZGoSbqtl/rroqi\nDGXIBm1VrdV08Z0uiq5yGPE8ZNqB731JnsFkQgNx5tufA0VtnLnLUWQNN8mO\nJPik5Zl88qWBqZhLWovnmKXRbTYHdqyt1cuXvr+5CBnpX9VKn0m5gz8HbyFd\nSDWZRC8J+8Ln5+GizJ4rBTvCLgLbpAP5tpyge0ouy6Y8cC/4jHNw2q1oEycL\no/EzxoMz21uL8IUOrXSqiAsXVfLGIGjxvzvhzjU9ZcZe6AEPZOK4oZGJMrgr\nApoiS4zk2blpe+KYgI5HGQ2dgfLyM8nX3l5CbK2neKzOScYcLE6XwIGyffda\nwC+28Dzp7dobSCokrJbQ2c0VrErVEO92kdH06HiqG8d8MeFzC9ePECl6QWmx\n4xfEV2FfEUi+zqtCQGNqyod3GptO9tNOoA9+Ywy1WTjUDbl6SPFrhWuEdzqk\nkYRb\r\n=IwQT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLZ9RJr9HIkuPj5YUbvladTCfK8j5F7pzjxYvG7S6ARAiEA5vroOnnqNRxNkp5t4UCvQVxDTMOvzusSjHEuFN3xY1A="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597119883188_1597119891738_0.4469448115999961"},"_hasShrinkwrap":false},"1.3.0-next.1597126015063":{"name":"playwright","version":"1.3.0-next.1597126015063","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597126015063","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0B14LQcoMkNMdpDu4aOYJzyrIRoXv78lKVhrkueRtUetgRSmui9QDnAn45aMfjU5iZsmTC+frLLVmc0mg3Ci9A==","shasum":"8f0df8c3cc0008ed3b343b59170a55147234892c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597126015063.tgz","fileCount":159,"unpackedSize":2425055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMjWKCRA9TVsSAnZWagAA4+4P/3Cco4tfpiZzrRPT1LV6\nJnpQaZHpcyYuZyzA3fquxUGdYjfTEkfS8kHIEfzqOrfOaHHfYvjUqmcV90Y6\nkf0oLLFizzVa5RS2Dp09KFf5QaVfJzHgEItmKQyMHf7qCfNgdGnBLXhMVgtV\nhiD5+JS7LoLcAiqF07T6V9hFBP2kxn/N6YltEEcUcr/uDpaNawv8uUvl2sve\nnahGmXah6tSzlwyhyEXjGj2P6SJbuEKhmom5KCdrcg+1KVomv/AgbIXjXo4l\nTHd8ewZ+9aIG4qBhCTnw6XrhGHWMf/5yYzgrQwyFQ/Adrc49hzZ9/SO2/VJM\njKgOXHcg3ucrzGk0fedD3sj2VYP1uCfyJJCPIHXcraq6ckZONcE5PrLusKsD\nYx0CMjBkDNitzGIGqgPuc+K/uup5amm1LAa+iTfEgpAeva+rB+yRMpJZK9ig\nEngAdFASMyfXggb28ZzMYUQx7QDEj9W8JL2oJVva3q3xN8reUpmtU6EPc/yc\nmFE4Lz7APCJBRQriLDLiWdy54RChr0sS1Q7egGqwo26O0cekEpoceAguJ5wa\nxtDUXWbl8QsmqsLuZFmx0xoRfgP84rPDB5u1NcwTcOYmldLOI2TjPorc/PgU\n5DtBCY9uUpINsgguEVTn/luuriTy1JrxI4qiB1pCxRWuCeBhFA43m9XiN24g\nXyNR\r\n=rlID\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRCsamLcstRp3IPYSJwyupcDQRKJKnJa7Sfu+OJxeW+AIhAMWBTqf2HMe770slmDiRe01MWJ1CP5i94nyJmiH6Dirv"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597126015063_1597126025682_0.7305114997760216"},"_hasShrinkwrap":false},"1.3.0-next.1597160741758":{"name":"playwright","version":"1.3.0-next.1597160741758","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597160741758","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Eej7JidKlmGjSvGdC/vdB9eyU4QCL1f2OZBYlEEa3urIc2SZ8diIe17l4+2rkBXNFwOdMI7sbr95wqRRYXu0pg==","shasum":"56678d8407e8e125358e907f9a963db6afbb1eb1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597160741758.tgz","fileCount":159,"unpackedSize":2425055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMr0xCRA9TVsSAnZWagAAZmQP+waSseonBXnkrgcoqfhB\nu2HVnG2xMxb/hQkSeiArFJ1XbD9pFEPidTHgmGh2yq9wdv+nGB4jzt4d4uHR\nJtaiIYolHvS3M+B65vo2beZRlasB5IuUr/PAExJ6uoA6yGiF0+PGLQWi3XcK\n683xOt4s02dc+W5LCRMObE/CwJpelVDfWDtx3XLYY+TcZ3DAGX+COqfiuDcr\nY/yzzDpk8R+LCKYvwuB3hS7WwFxtuIHIxMTHPFb3cFgdliyBuephMtxN1GwT\nRkL08qT4bQRGcjwc0JsV5ZYPH4OHSL74LxZd4ul5CdGfOhLGnhYB8JakX4Wn\n3uUsBjZFWgUIHQwWGZnop93BIUH0YThQS1ZpoBWBh328e5Wt9snbox5AGYVt\n2Hnv452UxSZQWEcQhIzR0uE4ooLJN6q3R6NUMXHuhojUgq8bmgpgN0Vh3wuo\nx8l9XVBPUG93mf7373mCJpDdcOu7Px4mNjA0WMy9ihrZq20UH2ITxTkWGQ+3\nSg9zibNfjCYJd2Gj0/ZAj+UzNjTxboML53g7NCmWvVDtXCF1wB73ysGKBQ9N\nM9ZBiwJ/XLudkDjl1npZLsKmpPC/P5/o3sI/6FieHQPuMkwVr8sz8E/Oi67q\n7CNO7/ar8jMRjTRuQWMo/4g/4+ylH8u1dtDeJRrlbqXvRhAmmthmSiBYmhuI\ncRWu\r\n=oLD/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGHFM07tbtgGUIxCHu/aeb+V0CJRanEE0H1d71rAxn53AiAG0YQhX4w12CSZsoaPYRANIhL3dIpvQukwEnXy8DzcMg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597160741758_1597160753350_0.546879066828815"},"_hasShrinkwrap":false},"1.3.0-next.1597161656469":{"name":"playwright","version":"1.3.0-next.1597161656469","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597161656469","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-GyQMN6LMTZMP5jn5C/3OP4D9/eJJxvrH9T5+yxVM3y7xs26ltGDY5sks0umZRcMv2keH1H8ki1OIMj+29Fb48A==","shasum":"534771b5dd19788b4a70a0f9d48ab5d770bcbd21","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597161656469.tgz","fileCount":159,"unpackedSize":2425911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMsDCCRA9TVsSAnZWagAARp0QAI4tBFm75goztQ6bb4VJ\n81A2pyf7w4DslClVeqOj5p8zmUFBqpEFzdc7ltQ5PEmaBdDk6VPpMYydK8uw\nrj1r7myJGEEggmBOWclw5hXeuxgR+AghQ+Okqvx9ZzIgD/GU1TaLdnnjVkS9\nzzzeJwW8NWyD0auYuc9zL7bvLNl0C13M4xUlDk4+fNuS2HI9mVZPIGUWEPz2\nFp5Zkq2frHqFyC67FJvQPfEo3Mwl78WDvlQfsaxJtuZAB4PuxSnw05cZA8zj\nN/NuUV3Dd4szrBFo7Qd6AzXF3qugZQvMdA9TodFq7SnuA+uzXpKbuPO5mOJr\nYqLXp4krf28I5+R8Exwys4YQCfqTz6bwGCFqwfU7ZgsXD1/WC236ReZy42fO\n29mtOGrV6ODpCu9hpTvDLLyuuIRD27q4iC2mEAt7JW6ZFnV1NBJvg+NKINB2\nGvm9Kjk9Y0BvNKYL4CgnS0mtmi02/j8MTa7OUIhHvQJ805/eMMebYeAqstkY\nl90Ls9J7lgIMsnyldH/obvHIWpYJagDQakEaCFQjpsRtqMhF+VTO2PRaXHo2\ngxjpkM0LoWMv9sT5nv3JBzstE0XwTjC//jUytXJXt/xYiG21OIXTQ7hf3B5o\nzE88E3KwWXNQeQByrsQwekIMdage5E92YBB5lPFQLFTctjyiYnGMOwL113d2\nx+rO\r\n=ToIX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBprABftWAiDnTqFHo7RM+s5M1XVC7F8NyHvvTp6dkRXAiAQaAyWvdkfXXrfgov6nqragGFWeBIwHuUYpMBDV1DVpQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597161656469_1597161665935_0.7517747136941457"},"_hasShrinkwrap":false},"1.3.0-next.1597168774233":{"name":"playwright","version":"1.3.0-next.1597168774233","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597168774233","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gl9jBZE6J1tUbBBSt7+A2XEte656bqfdbaJ1f8A9XMI188ZjoFhCVHxgGxYYT+5YOkoRQurU16sMmVVFu0VVzQ==","shasum":"7e90639787d4ef8b82a3855e631b072072e248ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597168774233.tgz","fileCount":159,"unpackedSize":2425911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMtyOCRA9TVsSAnZWagAAyr0P/29xlzmmO/z/vdX5vkjB\n/sbxC2nlkOT/6hFfY6yE8wm8TgK/XbCUIkIJuHxJ362TBQLkPWCWfdva6TlX\ns7QhyO10NPbfM3VZTTwCByl3f3j1C+vG2mNJO9eiQOWNias5pq2Dt7Frsv+n\nTniNzQeBdSLR1M8VkC3X6a7KBm7OU70xDeb6chUVu0u9ensmjUvQTOD+4plA\n7UlIoVLR9AWfVfv5aB7MUoVrcKMwSdlSKWSbkKmuKpqZy31L8WsbmS4eIjUu\ngIJspTLz972l+FSSN72Od52dTuaCAEhFR/mQjuYd0Sx1BVBEcUprcoA33DuA\nPV1xd9nW+rFZVFFMzAizy+T0K1KF21LouUc5jJJKHblY0abxvKTHTjNADW5y\nnqKPDw2WiTskZu1zr3hauyA5mnOEaMNVkU1cYAzGHO612B+bjtp/56AuPT2h\nLgqO2oPZUpksJ2xD3qACeKVVt31Rtpa50NmgpNgKJNmYlfOeA+JMRp1HoX4Z\nUCeDTMbtS3Od1syRDJHJkdTzp/VjlO3i0aT6LgTxljba69ZOv89Y356YMsBw\n+LAoOWussunepuxPPR0M7IwswNNjpD8axp0C+PtRjE+S4rmkc0g4gGqupGGE\n96/Y1h2mfTgm/E34yJVraV5l4cPTlpE1yy0YuyRnZCqJ3nFtEWqquLYk1c48\n2ONh\r\n=iNpH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEpa0uQyzpHCqRpbkmJ5j5HwxnrqXG7/DAmj6EqEVvbxAiEA5dFlD3mncgkPm4msxab3cyox26KmX7lw6pxsDI0LGjo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597168774233_1597168782363_0.2626812127200193"},"_hasShrinkwrap":false},"1.3.0-next.1597171130273":{"name":"playwright","version":"1.3.0-next.1597171130273","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597171130273","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KrYL4Kx8/5kkKOJmf2yjY7qSqOJJIb2x9uyy94a/+z7UuUWIG7nDlKpAOg7l3hBlEwmccEjK0jcgA22/tsuaMQ==","shasum":"d0367279a4d759950d103f75606b44ab8b4a3e40","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597171130273.tgz","fileCount":159,"unpackedSize":2425637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMuXGCRA9TVsSAnZWagAAxTsP/RXsbNUG1YYeKhlJAMUQ\nNu7dKkc/aJ5VltVKa29U/96cvKTzufRWM3hAMs8lbqqEqbstBt9TiE4DVBAN\nHU+7/z4XjYbKfsdROzX8DzJEG1p7mT/g6bMwAqNy7HM7FdtkTZ3bNhvnvshH\n9zMSP4Sqf2Pt95co79pw3F4FjEWnZWW7nRG6t2RirjWgc107JUYGYaS9aIi+\nWB+ye1MkedBwPYvJoHT/POdSXsJ7rDforck+oriR0r5DXQqK3GgcJAeuNI6Q\niZNgIvoyf70fGUjxIDl5MUhu28p3XWZntrTElAnay6HReCRSnS7CLCj7U+4n\nhNan8MSy2JBKYLVLqT+TT4u/rFz2v6M7WsRADMF+9ZBzn52cCRMXxzFMPGuC\naMnrHdv+LatcsmzsenT/oo6y9WWqZi6hm8+PkKgGNg5eznRe0ssxG5xmOwuA\nCAN6J8ZAwNw1xqxE1x8MudgjrbDIO2fzvVtgGGFFDy9hsIm8GR6OxPAcX7Xl\niAIlkA56F5A3w1YvAEAoXCRJKHKyILTWjJaA474Toz1R0KeS+DuZHZllw3n4\nqsrCTMIbgWuCI0YqlttxCNzJvGt2gPV5S2inpEp/U6DQt1m6WR/7SdIoMz0G\neeMuNNJ94jilYNx+v1FuKnYQuhZsXRWsYcl+V+iRrHWqA4rdGm7fNIqHagKa\nfssW\r\n=ZAbd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzdrpt804TVL6PKatGIvZDHejavziHjAsuEo2Psp4khAiEA3kpEklsG3sxxcU8To9bg3Pk0SBKVKckfHByd2s+gQiw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597171130273_1597171141661_0.5336440365684658"},"_hasShrinkwrap":false},"1.3.0-next.1597179672240":{"name":"playwright","version":"1.3.0-next.1597179672240","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597179672240","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-T/dLxKp/sNJecNG1GRnhplS/Mt60Tzr19S+s8Je+e/6axkc/YVgIT8z5c2JmXFzKnh4BAocutzxr5z2uCqRT1g==","shasum":"59aa3d020c6232187837f7b1b7a24869e6e0e0cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597179672240.tgz","fileCount":159,"unpackedSize":2425637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMwchCRA9TVsSAnZWagAApGQP/iWA3xPXkEwTuJpoJzB5\nkposssB+fGge8BGn5lt0ifarXCsh5ehP9zpi6YTo/BAw87YVKt3szMA9mcsT\nwct2xNEksbKdOsmE8cOTw1iPkY6R4PrnmTIrNKroQlZz1QamGwf3f/m3UBY2\nS42brhpxDx3TomzZ9qOYtu2rZhjOQaST7wsiE7wWZPg06LtRHQ/ZMAc4A/Ku\n8DPU5w2KjbThmjkILt52RigYsmvRUeN1f3zRQMmjxaaMPFQGxNgsV+KfROoj\nKEa8T9EOwkmmUXkNVhfjmCbrEMIJAJCsGCXcTm2zMnriWA9rqXTSGDmPA+s3\nEnK8X5aI+yrx7oSR9CqY9JMHqaNZFNmbAFLTMGh1wlW/LNmdOhuOIHxDCBDT\ncP9NhnhKeRRhXYREEODvtmBcwWaATmZ4tnZppSU6CPVO23CJEQmjImB8Xs1o\ntZ2TuIsk5gC1zC1cek9NCvvr6BITfkMJilVWpxGYb5vHLkpBh+4iVAwm/JsI\nhK1lnkYcj+rXPpbhmt4oJ3uf6ina8DVHfPsXiwcBZbzoJCRu3Dxeae0Ku6Zz\nt+EKOWATXk+gtY8wU6cgRO9kqaLwTNf55rc2mqWvHqy2K06cTB9gn/FvxLo3\nnHeZPEAC84dvNQ0GfOwOyr9UpRitsCRS9qoWAxyLv3K7UxBlnWzqjgqMNW+f\nXeVl\r\n=g1hx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGL5Uw2cDEDlashAMCmhcEVE6NerWMFxU/LgPwqLZtapAiAVOn5mWr1IHu1BXd0jFaJATO9eli2c4JWmy2SYrEOV8w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597179672240_1597179680365_0.08045050508946971"},"_hasShrinkwrap":false},"1.3.0-next.1597181600381":{"name":"playwright","version":"1.3.0-next.1597181600381","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597181600381","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8EiXotOn8eP/v350fD7HpIkJI1OZqDp78MIUCDuEUc3CmpoVAVQ3L+FnuhKzPqxLy1pHEsC4QIom/5BVIg+WYw==","shasum":"58c1a0c34d28d9b1895c220ff0352f986e773a69","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597181600381.tgz","fileCount":159,"unpackedSize":2426370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMw6qCRA9TVsSAnZWagAAyeoQAKEq3g5xyrnvjT9gL5I4\nmwBcWdny/0JRdcaV4jvJhdLitjQZdD9qmTdxAYN+FFyHyLlZjhX7GiRGhfI7\nIUxAXEldM//L4utH0usf6o7yLE05+eWJ93+b+8VHfbk73w7fi+3EM6WDBTTt\nI/5mNgC2zWPZ9T72qcPvRQ47purbcnxlkHdNitbIwumFcE+gO04BR2ZeKwgI\nmAirKn8qYjwe9A/48Nh1FCj/yTbblaKp/alKyycfbtnk+PkCjUoBZ8Opzd+A\nq5dZruL1q47PXgOx6JVYwIOH2pR4PGNvXKyGTjg4ndTE0SDp9UR+sbRl+oMj\nRAAFbzaPH0pP7N25d4Krrv+BnOnhe+C7q3l1jl1etC0MDi3MHASVe67bf/Yh\nvcdqmY69uXLpffidAEw//h1voBmaEGPTwjpPv3dc0IVezZA9DpkIfA2WwbXE\nh2GWaylbVyDcbS+/FOAtLn4VbMcj3pnkePTw6stBkY+0EsHy/eQ8DrdEmZRN\neHly+GLFcfZ4zX/RBOM2N5SNjBALDLHapHDbCv/16z909H0F7bMcA+bvs0af\nyb7wBQwhOviF6Ia4GqTUHCY80r9cFFHqhJMJjUNx4bcd4o8IaKOLK5WxWYp0\npQMD+rsj2JJsPduhXIS5sQirRfxgDBev1M8XogjvmDxrqTALxX5sBHoAl9XX\nItVF\r\n=XXKV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGQZ+35LeUmPIqxADeNRM747Sx6vWLxPhQVR/08YxSpIAiB8O4s92Rsq85uovKi64a8zurEiGKlqyL9f5IGYiuMQaw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597181600381_1597181609316_0.18807445116505028"},"_hasShrinkwrap":false},"1.3.0-next.1597186102430":{"name":"playwright","version":"1.3.0-next.1597186102430","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597186102430","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ibYLELQHkqCEQpQbCzDbSWdBpdvbC/ykTiXJsOTajT1WYaegxbl75c2sWjNk4Mc4WubfmfeL43f5gAvwR/xEqQ==","shasum":"f4b5ead799ae396828acca3552db7fd6e3c97c6c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597186102430.tgz","fileCount":159,"unpackedSize":2426370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMyA/CRA9TVsSAnZWagAAtGUP/i2vdMNyEKpRpVLV1A4y\nbSbn+A+v65ljqinGeiTDT0EByYMKYVI+l3tHYw2wF/baXRj9GlI824L4+Wh/\n9r37hK9B4oq3J/ty0f6leY8VI01xzBytw1PGmNiQSBw5ioCHHW7maMEc5SPS\n/7F/IOvqmtZhoILrwYHzCrb7hRC8CyrglU7ZMBbuPm1A0TRfTrM8ew+n4FYx\nj1lXkhO5gKkqIZsyJODtiQ+tcvIpYo7D3eM+BVch0D1hGZZwydFuJ8q3N1j0\nS6/zuqWBaNduf5bH6OgXtFx5bH7e+H6ks1MGeLyNp/0Vk+srSyNvj5Mfaj+W\nyfo5AL81xBMxkLe76B3ryeTA4lp0W1SKoVw9M2wNjRkdCVFU+lFCCkFbAb4w\nFdIIrgnf06g8atkM90WEdpatKpiEi32oxHsY2kDDoOCkcNHhWmrAJSJW7iU+\nKOmNiNCcIQTyy5/cxWU0/wamGs7qGSp5DAjyeYnLjHgCylRiVJNc0YH1VwTr\nZo2J+nlijKNfc5RSWxVq6I7CKv8ftmfhk6pIL8rs7fYaa0vK7k7fI/maTOsb\nQp1p0edoiPBTpnUkcsaY422ieZ1xG5MvRWcKW80+jFXLIlhhyqaxZ4nE/zIL\n8dYdLE0x3HkZs82t6NWAdwu9Xv9PGh9nqOgMJxOq/PWKHUGgWqDe/WYfbdSO\nADCg\r\n=XQqd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICY3cwqQIqiUEpzX9U2Nhw2ASmB5gpK0boo32K1+OPJpAiB9WsrgSEB1wk/fskFt8R0AA04Zcjj0L2H4j3kY/Aeesg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597186102430_1597186110651_0.8379520447932238"},"_hasShrinkwrap":false},"1.3.0-next.1597186360208":{"name":"playwright","version":"1.3.0-next.1597186360208","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597186360208","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-oQX+jn984eG3g7DocJSWnZNeWU6kO0fBa6hAgEJVW7MwN7JkIP5kFkwBIhuJmaKF4X76ul+M7+aaHfGDVdr4og==","shasum":"be85ff6b16836bfbdd2f0c76eab555feb6058b5e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597186360208.tgz","fileCount":159,"unpackedSize":2426370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMyFBCRA9TVsSAnZWagAAVhUP/31WBU29RB94YgAtVHSS\nw+1sA/oYLa3z0AakjOV3coMcD6IOzIdLuaEYBEn45xuUWiLvxc7+w9nzGiTC\ncVez6JfzD5ut8dIAlx9KEoxptt9YLuD4KjtSZrHtNCFAt5IwbnczD39dC8Wp\nShySibqAzuyPPldxXdAx+y8HpQKYmUuIoV7O1J9WbK3WAf3MfAd/p8yXUzly\nywDcI1Rrn2Ug9Oy0D3POctgyjY8oZSlQexkepqdFoZNn+h1BmsxVxSW2/JEi\nBQHhDjjUsA5g50xcsIqCuZs5wfPaqBovst5dDxO9zdSpYLkK49xWt3ptCs+p\n09yQqaWpAMOlGUxkSxkoonGtFG2aNrpktrCTxtga+Me1AHPDbYCEFsVDVBb7\nEmHRzg+P8bunYLCoADRdae4A7QTEmx7i3HGFTYp7HCfbXK7wDBUvYYiQRag5\nf7lZyxiIdcQOiXUlu3E1gLjbqcMn7CUXBMB0ueo2sZFlgdQ00LNWWU6KzyqY\nPJsr1JlxM4hZ8zYzXIe/VyWRHWYGI3y16qIus/Z+/tkEGTxaYxrcN9UaF35U\nBN4ioSUFApK/KJ1SJETc/eqsnJMMQEmgI72h0Gc/Vz11U7345CreSrsktXEv\n0mm7e8tuKY5e1/y1iLhkSsJTiRMdOuCQ+Nx2IQ5ivlWNy0wycbDtuxnxqFZs\ngfkv\r\n=pdXf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjeM8HDm/Z44UpO9fGbeFdQp2/3uNxQIMQRA+kdCNHDwIgPcxwAf74GpjbuCibveHhnZ/qh6qJx+PmoZDO/cIXukA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597186360208_1597186368606_0.6118529846188134"},"_hasShrinkwrap":false},"1.3.0-next.1597187254356":{"name":"playwright","version":"1.3.0-next.1597187254356","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597187254356","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-sb37equWrSLlc7a0TlrLeskfP5Hj205fIzIomYgjjbREdT1xSSe96gHi+mr/vpir1qQacHwn0dWmbdlls7wpHg==","shasum":"b2674d2c4d5eacc2d76fd1b329f2adbb964b37a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597187254356.tgz","fileCount":159,"unpackedSize":2426370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMyTBCRA9TVsSAnZWagAAydsP/0jNIqE0SUAawmNk6Rfz\nTBQ5UI1sVmInVNkiNtq5BqjDFPb/6YGQ/W9E/4RqvhkfgPBvHGBuXONpHD8m\nr8jSpErsxfEzBh8+KAqoFQVm7Pm2RzQ1f3h7vKSUhdz7aQhYnAiqvZSeQD8m\nI2hgbRasEhAEuivqyCKLer/bh5ujwLlMX1UCAylssdE1eDK2n3cRE6i61jlb\ntvv2HSyeR5dKDPhYAWIVRuz5picQTMYArcJQAr1eBVnYnLzpd/Bh5uKUNXhz\nMB/tkpy/1O5CPEQzngAjcmfJash/ro+6IWqQ3+aq9UymyTS058J1Jkv9D8bM\n5ecxdaEbMhXqPqAXtLplQt+qy64NekAfFnuriXyWYbFloY9qxQi1TXgEqJRu\n49x0gn6gSb+KpZ4UxNmLw6dc4WixGs/wk4MdBqy2o9JmBEU+0ng2M3iM1SAT\nDHJsMvw7o/ddUzE18QXMmImUpYaptekdvNf5U1mNDmQWlkzKN8LAbeoEZgrs\nTlKEiXCXrXS9dbijjuAhTQFVGmJkQecxxj8sPeCVnK1jA+0VzHExArIDFCWj\nCegUfyfg6cFFSiph56xrtTwTg+bJzkqHihClU9Hk/6lQd7NKXvsweLjn6mwB\n7w58mWoT/rr9pT+is6JRuzEhpjIArjBp+ltdV4br4GBPp6V6v6j+qEbyjorD\nqtz7\r\n=ISzX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDR3XrbJb7iZymQtsz4H3VmHHcNIQtui7ABOFDFrWGxEAiAoa9X1JtCSvvVtNCInWyzO1k0oly+h11CIfBCgPztR4A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597187254356_1597187264917_0.7500551303485539"},"_hasShrinkwrap":false},"1.3.0-next.1597200383537":{"name":"playwright","version":"1.3.0-next.1597200383537","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597200383537","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-bNJ67o3de1Irdc984d0lt+hEjVk2HQ08vK7lMHKQ4eRBgr4Hijnk9X8IWV3ufpHZUX42SpS42g16ttna8VhnOA==","shasum":"ce63a46c4e4864fc9e6630b3d22ed52c19ecc32b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597200383537.tgz","fileCount":159,"unpackedSize":2426370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfM1gJCRA9TVsSAnZWagAAjGgP/3EBWwgeGtF/2rXQbbma\nsWbbEJK52Z1LINekvoh+VPoIr9fF2R0oysTSbWNaqnwNuhtuvvbrMS2cpPZ+\n9mE9r2mQOhftRjNmiCf4HG4ULkYT/YR00Nj+JkJWe5h2iNoIbvtimbVu+6Vg\nKrUEOHB75Uu6sYXWa2hffzWOrEesKqd0HBv3QEl4P+HUedUvf+S46Mi9UHNi\naigeWBUc2imanKDsKweLzbpA49Aaebr3eE0Btvr9xIaWMcWzIt+unHCFVq+z\nklgPsPpsyHevOGY2rcMkEGHGU8gA17F9b6VyjjaNs4eu8vNPu1QARuZJPtnQ\nVjiGHUGiUjwH1gWzsXMMnu18pYqIG1Y7EkwpJPUOwRrjZoKuVfx+IojV/l6j\n6ltqkzTqiu6Vrl9Eq45/lS5GkrrPiRd30TbeotVsSJkL4WRq/s9octvCaFTZ\nKAXj0e6lM1vaf98IOv+B4F9xRz+aQFmoNjTxrfJn20tVQEVf2DVv5X/N3CTU\nhXYCto0BUZnhDDvU/j0707qi13lu+UVyey4aDBzdTJePa+M9HqUkLaXyr93N\ntwZl3m27pGKEdj729AfvK5MiYCBJBODqcFk2uAWosho7B3a3qGVsjzhePQYS\nlZnsuX18jOFhY8a3i+KMlxxhXjEdlsZ8njtYN9SCcD6kQTP+DChLxd+xoxEe\nLgiV\r\n=5iL6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp5zh27r/0U6nefhSLy6kTDwev0ixHeLfUwhFwV43f5QIhAKjU6MHp0pPPL0XrxXQMcERws75rtlDLywRh3HES2Al0"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597200383537_1597200393020_0.26786098947916415"},"_hasShrinkwrap":false},"1.3.0-next.1597247436303":{"name":"playwright","version":"1.3.0-next.1597247436303","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597247436303","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-uIYG8Dab5MRWWxBLi1SbeIShcKXzk3undHb1Ckh/QLB6sGi0wYgrO5BbCagm+ynLf0P2KvWFnv51+WZH5//L1Q==","shasum":"dfdb2eec58505b21201d3f0fcdf355c70e11cff4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597247436303.tgz","fileCount":159,"unpackedSize":2426480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNA/XCRA9TVsSAnZWagAAC20P+QGg/oBLdPElOpxFddx/\nShAYkBtI+HUypkDi9qCOZtkfqETmLjJ1m512AneHZNpneVcaAKa//79bGk6y\nHXUL3XRAQFny6vraPV6dh9TeZoLG2ymd47fdyWEiaFJBGU8vEoEbH7fQ3ydp\nve1JReELPVIrwOqVBGSozDsXDQrcuG+01YSeMobK04hrIPGVRA/nHXAiXhuU\nOlLsUIEqyKYAbps9fvNz8z8C4phThUyz2Jf0M10f7cGDBG8l9yK+FJAU4fb0\nplV6xT6UoGAF2O2iF9P+vop4rcH+P9d4i2XTWWunxnJpoVchbWoEVP6LDQ2C\n62LMlCKjud7Hpsyxp4+o/2gOzJJzNdGjFHiXkUJDmACrgE9oA4LIsKivdJW0\n63D9WEMNtHa5JQs0F++h37zlN4pC2HJk9i97m975YAluo+dGaG3wChxbcb1A\nYi88mitnSEg28UfDeWFT75Kf1Ni/iUX5G/iuqzspcyjRUL4wVZYrq7sd/eza\nrlZtZVUmyUaHbT38mlsWuRAMi8IQutUg+txot41XSPDxAKILnlkV3BRNJRnD\nntKsxDZ+FH3DMNji/iBtYtzunUHUxHMtdmZbYeucb8ksDAlElucnlAJ7Z5mK\n9bwRHB8+DMSwV3G9T8DumTd0lGPuK4Im9X7vGKszPX1JRWxwGUkyDRubXXR2\nJLRp\r\n=9sn/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRto1DbwLDsAKAO2iDANi6A9ToS0/CHoi9KT36LR7EuwIgNqr5sQv2m9UX82YhmQgCOZ3FQdIfTsvs6OmKxL3KLUI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597247436303_1597247446882_0.917193488654032"},"_hasShrinkwrap":false},"1.3.0-next.1597252288192":{"name":"playwright","version":"1.3.0-next.1597252288192","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597252288192","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-axxHwwgyCaGobxnZRR5lrosQRbsoOcs+U3hZh2ebQVkU6JyVpsKMEzfqyY2A7XdK9Qn853LWQTFUsVSNMtKclA==","shasum":"0311f9327201f6b631101b8dba73650a785e96a7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597252288192.tgz","fileCount":159,"unpackedSize":2426480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNCLMCRA9TVsSAnZWagAA4ggQAKJbH7ZRLhTi2Em2C9K0\nBh45y06pDnBAc1be4bUHXspeqhePrZ+4XYozQUxgiQ2HkBCb0mgS32/nyFYE\nNkI9+MijS+I67j+bnmwvVJfwmLpSSWCJwDD+SSYFRDwxSPb1TGuW82Zu9E4j\nZMz4BRGZaE0hxSIcZYVIoV05IppSp3Mim2oUhOYJm4ESYE1dAWnPdh6lEWd3\nk3UGFFFYWugnO26nm4WweJ+DH3g3nNoJ6kdaUZW2c1IqsJRANrkt2P6d6lPO\nGPd7XC4fd53bMdtNIRjwFyx1J3SDwiNyj9SvR9aCqa0NzZk2ogsxLtk5L0Zw\njUEZ+xxstc9kZG/kYtvWDsS2WaMzCXJrkHOrGO+gtyGO7kbcZgURpIfzXfZW\nWQngWJ9O5TjILRLG1nulHlyCf2xMkU7snk+vINL60ynKrDkPe1oqco1XKBPR\n8KnIOqdr8LrA0fTRauCwwTmr4Fpxut3197ZD4auqdzd4Jlp1fPM7BlcGEQM9\nkJkefVXZ7JHmicIZiPfb3wl5OUabryjtNsetPq4azcCw6k1OqwoE4mbcG46S\nQGIYbSgLOFBY7LB5nK069j9cJbNF72Dvdv546lO+2Gdd58WqyECPXdVR8fcC\n1K99MgBtFlcR04Wh05+27L4lqGrZbORrvXX4V/pR7cdHtOzx1Wbht4MnwLZy\nvMXM\r\n=NYuN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWCYowhrvxYN61KtT8fi9XWvQ1lnyzdHxQwvlGAZZXcgIgKjEwmGLIz8sE/VJnwonSTIIk9wJXsK02vkpn/csLaRw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597252288192_1597252299747_0.8803453546923499"},"_hasShrinkwrap":false},"1.3.0-next.1597253013630":{"name":"playwright","version":"1.3.0-next.1597253013630","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597253013630","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-yiBMVJd1x/YK6jt7lLFz26OJ6Vw1uEts28Z96/GtJwPLOKHZlQSAb40aFt1EDYASGs5i+U/BvQbC1z856P19mg==","shasum":"c463d7cd633ff9c57e39f28ab68142b9115f6521","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597253013630.tgz","fileCount":159,"unpackedSize":2426480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNCWeCRA9TVsSAnZWagAAFCYQAJnFd2TvD+InU+jYyCGy\ndvCAZkvXDT0W2t7zDIA8op/1mzMMg6UcZEqOwm/3wUNeB/GOZq4XL5a36CJr\nlTRyW81ahrX5TaNqyBjUxutMwuCdf7XVBazvDy3ve3SUnEKeKBjQnUxrHuj+\naxtRqvGFd/GbGzYb6jriLFQv1DDEE2PmUHZKDZvxYys3v7ONsZLcofD4kgne\nAAA+1uGGagvYJJT+7GXk6mlevrAhEn84KmjDbwhP55gBcVNkJYLLsB9S+XOd\n4e5Nubd/x5P3XzffQBMBnva4mFPRtRrp1/H1lcl8+KpmefdNw3Yvji1krRp9\nh6NWBztc6Fkex/4GJ3qe4LGBlS0VG3qvr/R3TccHRsposLkcCvldMVt05BzD\ndya8JE9IwFPhOxMxeJuHJ7EH9gboi1Q3WYw9p4CkbeS6M6V9GGuD94/CKNz8\neBlSJqfgGw+1aYBnuU8RIn//lgRWHCxjPe1yMZTxqp52gpgjqeqS0MmT2sL9\noVyuVKB5Y+cmExE5ExQh1XH6gJfqHNMwHldnqSwuAdMJ4Q5Npvjnckaf9sXh\n+gx97TPOadUCMB6lJjM2R426VSuhNKF3GMED2F8HNq0GpsQs3Y12uBKkW6RP\n5bIge/UlO2pWHVuEhWcCMiVRAmnDQQeCmVTMzFtLPvB1XX28w+Lxrog8CmoF\n3Jhr\r\n=U6zZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFvwqoCq9nYvHxLAxefJL6weH1lWg7Ofp6r9rm1TcNxWAiEAlOB/PeXt8sb5KJmUpJVnJnDtGyGPHItq/qZprBtC8ko="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597253013630_1597253021979_0.2848638197439197"},"_hasShrinkwrap":false},"1.3.0-next.1597253608765":{"name":"playwright","version":"1.3.0-next.1597253608765","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597253608765","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1VvDQ4xsGNuRrc04bvZCBOPWF+mJNo7YM/KzwbOjsmYFzQDaiGSm9sgyzSKozFMrZ7E7BZiDLaL5KQIIygz1kA==","shasum":"1e74adacf1d6d0ed9803a395027780d78732a544","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597253608765.tgz","fileCount":159,"unpackedSize":2426480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNCfwCRA9TVsSAnZWagAAz6oP/2pieVZfGou+c3XjtJlV\nN58X5qnZZD8dM3WyRZkq+zpL+GMefaIv1WR+SJAOuH1sEGrtZ5aFkWa2Ejoy\n6YJsPBh2I0IYi79IqbP6slxTs569ilh369C/I5AzVEJZflNGPvwVwXAYwsPv\niavG9WfSw2ny5W+sbdP0bpjDRtY+YH6QJI6CbhIlIMjIp2Zc6QTAKERC25Hg\nPXE/t5buaeNseU8bcLlclah0qv8Pfmngg/VzjHN1V6/JeesN2dH7jg7D6gWl\nZ6NDZ45T4xFM02Yorp2gC1yMK4KSjcRN0GoEHUIx3HHlKM2cuxAWV2x1XYlu\nfj3ETANFgRGpFnL9inZXI7eTZ5+f9l5hpuSqXL1tW9+hpE2G2WeAZw5TJUgW\nxmdyKY2ZIzNZ/ODuWz+3j5kXaabSyqNVGst5dr8yPsnnA8RbrOYrvN41vlJA\nlagHTk2xDlCQVmfQuR/iXyXyuqS827TA64u8NJ+2dn8n3HkUdX6b9TE8eQsI\npHVs0tur+ZPmIkfXfkQHay3/TKXTk10HAeoVR2m+4BHKojdVrV1T0KA4mHDX\nhUIlIwh3fwU7kHDzYtpeRJIYYDKhNl5Crpkn1CSkNv6VgvQLr9n9Q1p7O//X\ng7Wseuovp/V6ITLJolj4jIAI96Po24SxxPb1MQ3dBvCkIPB1cBDL9KuYlqIS\ngarD\r\n=sfV6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlweGPPDvbbvr4901XbOfK0wVZMO5wFtuxea698etURAiEAvr/lmbFE+4RzTeZrNJHplzGBEcK/VAtsyxzpaCaLtEg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597253608765_1597253616466_0.5086328959713009"},"_hasShrinkwrap":false},"1.3.0-next.1597258221612":{"name":"playwright","version":"1.3.0-next.1597258221612","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597258221612","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9IYOrBVBUxq0nB13VKFmHdXqqs+XxufsyTtRfj914Mk/aRmC+APCPRZFjD2CNTaHGS9ilPWUkCLK0pxaKxS2mQ==","shasum":"31e27afd5773c05dcd0f437bd32fcfe2631fa1bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597258221612.tgz","fileCount":159,"unpackedSize":2426480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNDn3CRA9TVsSAnZWagAAU20P/RVX+xbsf71K5To5kxcn\neyLPTtiypRsEZXQe3NG4O2sEp4F8AaSgD+c2e27Gc56Y+x3WjpSCmLbcp70i\n0c5Nez5gOVfOGJpnJM+tj2qbFIRR8cF9jv8OchVMsjfKY1PWexxXa2gKshBz\niy6P7daGBxRFFJuFr/9X1SGkJiN7ID5/wZAS2yj1TUywb4X638KrMgNUkG7K\nQxrHHYAUUWpqU2Ft/4qDCMAtZP8e4+BJJlpMmYhn60Dmtghpp649TdROpLrk\nSkznYeGdX843+nsm55VJNbyZsk8AHM794vAwT6pp1zZlN+z0UMfbFk5MWetJ\nYTwvY5i/nTAUXILdhZeXg/Bi1xaoFzyfLlrnALzN9G2Gtnn/UrlkL012IXdi\naNBIEUO4568QvnLDag8u7ti0mn89t7+joEhQ9zdnVU812rLKsB2gZwJ8RcKT\naO8wP6Y8S1CmWnXVcbeKWcW+cWZy2J2hHucCI+KvaYBBBT1BMNYni70dLJa4\nV8CS1OA6FwSNEv3Hh8e//qffapsnbi9zz+7PysBxK3pgpvIwcP5OxhzxBYut\nqEA5F2vBh+28twcQUx+O/XT/B0fHwZ72Qsxt0C+gB2EsQwlVnibmAlOfBHqQ\nVFqFJhlJ4ypx8GwQ0zNpBPquLx9DGLiWqwmyjsOub40SWMVYfz/s2pscEyQu\n2EQo\r\n=0e2z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIqCE5QJJ1fTt4he3Dla/5z8s77qMfh3+JL8/m/wMl6wIgdra3r0JiPsxahDlEteUjRzFfrE7kIHpr9fbfYl723qA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597258221612_1597258231137_0.3392293499260737"},"_hasShrinkwrap":false},"1.3.0-next.1597265380208":{"name":"playwright","version":"1.3.0-next.1597265380208","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597265380208","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-O3gp5xtRrDJsEL5GQm2Aub+l48Y5FCSZqknAKsX5Ju405w6O8jdGIGzAi3ePRypnjFVf2S+Qj52V6W49dmEglg==","shasum":"54cc1237ce5e3132b7be369516549e6324c391b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597265380208.tgz","fileCount":159,"unpackedSize":2426480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNFXuCRA9TVsSAnZWagAAWeQP/3NlFlgzVYr26R+vNJXc\n7Ovovw248WmJXNLNlU2IWsj3p993eqlUAE2xNZBNe0qnQxbPpE+uZkBIV6BZ\nM5aiIM704SJcDGHcHsnZHrBwo59lr2w3vwXIHJV451XNUPgyiZ6LRBExEdt1\ngRDqCIdovgjjBOVZQ/PbXYbov5vZtBijiq0C7I8XbH7BforT0wzzFFmfgUjM\nBJmigaIGX0jf1NQLnqvYWK1LbTmKcUbSonaHIR0WvsCYs9O2nQMVgygrIjGF\nfloDVENc6g1/Iygrz11sDUH/fwz30XoM+2ZYeiANP9clIPaVfnxpSmnhzkgS\nyWjef6tPasCfRJAgbshV9oi0yGwXFNWmwh3P+4995S/FdHnS08dNoXfZVwMS\nIJFK+fGqyAf0JJ+xrl3cpUufiqRQQrRcGl/rAgVzJbLRuwxGGTmni7qOf9kT\n6SXPRKW3jM7LHpzWgpNVief7PoX8RBbNuV34DLWmVx8kFJXZrlC8uiO80M1X\nseyReax+kiPy1ekJITL+kMjyCDT1QA3vPtTlW+iPwV5PkXRapiwjzVRmlgWg\nsomz4MH7RoPBgbqt9Bq4+J8cpjTK3hPcWJesYrSkjl9E+aSA7rYfSdEVPudH\n21C+5jZbFAxNJB8mWr9519xnqSngKM/3P55V46QmpBV0Iqc6poefk8hbKWpj\nDF7J\r\n=4rkQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqaZq6ig6ti8wzr1izRe9riyQHgISltP49g3XXI6C6BQIgA6yZ/aml8659v79QyvDg36qJHv9GkbgVUPsWwm+9I+s="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597265380208_1597265390015_0.8108443186784191"},"_hasShrinkwrap":false},"1.3.0-next.1597266267815":{"name":"playwright","version":"1.3.0-next.1597266267815","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597266267815","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nSdQzFrUB3Fp7hego/AyXU8LVRg/Ym8aDSfkh5TFQe3HzehRYzKEqf0XGT22vLOkXGzaDGrsdL46d8NVLn5Vnw==","shasum":"5f45b79817390f6f1419ccd64b75a9f69419e502","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597266267815.tgz","fileCount":159,"unpackedSize":2426480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNFllCRA9TVsSAnZWagAAN8AP/jqkAi+CFkvaX6gt0rAs\njB4IeimkdZ6iEChffeRi3/7LvhfCeF7JbKQwiWSgZyKsniYHG9fAo63MdQxa\ntIonjps88j3UZ+2p++RC8Kz5wz3mcugjBsKSiSgSLKQ9gW7gkW8Qgma4Grnq\nu2/Zow3qdfS273iwhK9YWhlhBWF56WhzcsTbNsnAx866k/EsWNlHAU8pCLhs\n34MdnPtInT/Kq2c+WVK7j4i4wk2LLGi21GWFDF07orYFBeXjJjMbeRBVz6St\nxqZO6cMPfpHudn8Ws+1DyeWIYjTyNeOLaNQ9SLRko49iqoPi36HwPXA7iX2P\nuJWM+rLLF8eHKcFBewy7liJnrGWKKF/w4ngSdg1ljdle1iUYXgYyMiUU/ZxL\nmlDaGFdF7b5q/KQHHzQq62h2dxci8s/ofM618laGJrnWxGvtrqA1UPWYDJoz\nFslhyz0NNlVMy+zmazlCpUegWr+NXPU9PDGy3e5/Gu0+0ke3EaSv8Mshges+\nzsx6bSTQfLZ8vM8QiNhTG4nKm0WDl7J2xjEf4/BEDl4n6DAV+07ib2/M9qUG\njGUU0tIt6ihhpKZ36rPZX/Dao5eVoUtx1k/G/6Q+JnJ1MRcXixEe1SRVbIN/\niasklYPrpi2TJXOBqwooko5pniV8BlUjipLBLvum+pW28WVURYzoIrmq+EyJ\nCoUc\r\n=u+yD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwoXKrkOSCu7Q9qpklpNQI0beWuY4sl8lM4X2Sjn9J7AiAoGXnXv9OK2N2zAyg4/XLg0yx6S73sTMYKcaCLBbwjBA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597266267815_1597266277103_0.8992858467324225"},"_hasShrinkwrap":false},"1.3.0-next.1597268214820":{"name":"playwright","version":"1.3.0-next.1597268214820","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597268214820","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1TpM3La4tlymMpe8Vl/DtpLO71eqKMj3nI12ps3MAVl9yo75aa1P/ivbfMcIozHoBGC6Qa+HfAZ5kXs/gHPCAg==","shasum":"c434c6a0295b52db5cbf81bcc4904a79ada16ee5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597268214820.tgz","fileCount":159,"unpackedSize":2426480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNGEACRA9TVsSAnZWagAAgi0P/1fIV4Mbe0o2T2Hr6TzV\nHPETHYCPFccoTWkD7a/z9R/b4OreVKzPFF8XP+7+WCGXjPGDmfYBgj6W35UF\nn7QIroHIPshowA49PYaGHJN/LXnUlZZnUnl3KBcSMgcGDWEga6q5i0T7VRay\nLBkSVBaK34qKhPNpQyE66SxBG5JGvAotoZ584W1d0mpuaL8g/0Y61lzzug/S\n3DlYTwqlzWhk20ibRYyRw2bddg/Uyra9PXb1mZ0gVWtG0gGV+dKnv/pafEXt\nYPGKYj/tUfNsWV8848micboQMMALhoWg6YR7y3x9p49fsoZLFsB6Pm1e/NcA\nwkvfgJQsfFKT5Z3DrjzJkr4+QEOY8NiqQlEqi3Pf8C41Y8YyrA/Jvh/C0J4k\n88HWrjbe0sM58Vi62oO9lLG3sSWG+B6HSaEDCEH99vepaA7x8ETBLD9gfDU9\nQoY5MCK/BjX6S1VdNTXq9BPeVL0gpgqJk9VfhgrA1UWksi3Qzd2QuQiMZHR2\n2pBC5EuQbsPFsj/v6CcQpU1zcdcrCMG5P2rhsWQqeuIUPOcUDT9GFFVGMvN5\nkHYh7BsxKKZgPcXnAD/E+0J51Fm0UUanmOd6rCbFD7C7H5EEauEpefu6Z12l\n8sQawYb4n5+nwpwF6O0I94DukPpAi6RR2Xp3BMpYv07URBqiYlroFRxi5TDm\nE7aj\r\n=o3jY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzPN/FH7J7crF2QLqyN5drrboxRXgTDHy8Y7p3WABYDQIgRxqR0fD8v9Nvr+Sfd+VR00eVPv1WhgdvxBPudwRHPPY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597268214820_1597268224297_0.2554603844082195"},"_hasShrinkwrap":false},"1.3.0-next.1597268866638":{"name":"playwright","version":"1.3.0-next.1597268866638","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597268866638","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ij26DZBzc+xsrDlXBeloZ6kMBciXjwcIrxOoUWImy7MdxE5Bo2j07WhrAQG5/7HECvorEdknx+jCHq46Lj4SAg==","shasum":"d3c7d49841a25d468af1511270f07567b8695a7d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597268866638.tgz","fileCount":159,"unpackedSize":2426755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNGOOCRA9TVsSAnZWagAAWBAP/0mSE/thb4unWluBdxCB\n6TXfnkDMdCVQDmgdl3EAYKpdf9ogj3UOK6LzgtmHhqtBm8HmROSCWreC9OUE\nX+X9P9bg9yybLp5jF7d4SezZPhVWzDw5fM6zjsS6SLvVeqNrJg3kMpQ24/aQ\nrMv3XwtgZq7RFDcCPAwHeMjYNCtdXxUkLr/XOAcwAHQ2kzzW5cLC8ysHyvBB\n+PViFhb6V9+cP5E730naakVqG9LFnvtPNyAaS89kdpmkXTAMUp9JObpTu41w\na9rQ1/dujbskQWsza4jrHxkk8Mt7vN6uvfu1+n6ngZFjEog5pN+jtODjf0uF\nTlPEr6JG0jWfCHt80EHNWfrnbUc3Y0Y69XzCSxlhslMDkSCFSSGZh6rhFlv/\nlDFi1Rx3/mU7xg9dKgYkWcsabsLrpO5Im0NZgZ5CVoJ70RXzBSZBpCcQTju9\nX56ubgklrREmW6gA1j+PN0nCKbHSdy+ham37m0w9/tCr4Rx0ILruL6dZle3V\n/lr1iGBjAf3rH+p0H641KFVtAW330uWfscaR2RXTaSWGRp3W8LBNdKb1xI4O\n3x+kyMvtKIMYJGP/P13YfMo8aiw/RkqK4RCTHpLWgdRxiTzeccN1isNn4YFL\n1D47RpsyIb+AuSCcaE0slDJ5Ina7i2UYR66l3X24ignQahohAtnYJAy6GRPX\nNiJU\r\n=yy9Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2qNeHp9VJ3Ah39daxnKRuFPAicsENYjLUGFCTMOSd0QIhAKi7JPa1XtdE5Dqns4NTz7nSsvUtRBLpSxaiVvQisqV8"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597268866638_1597268878070_0.43818339817221164"},"_hasShrinkwrap":false},"1.3.0-next.1597269879734":{"name":"playwright","version":"1.3.0-next.1597269879734","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597269879734","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xEL2IR5xLhbzANUw795grnOKvlXvBijWhnGnhqOmwz5sns8wmB9Eu+PRinjUbj7aO9dmZfDr0S9+mpXRjJQhIg==","shasum":"58eb40a53d170899beba345db7d103258d663a15","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597269879734.tgz","fileCount":159,"unpackedSize":2426254,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNGeDCRA9TVsSAnZWagAArGIP/1h0JmdBD+uory+U9tbg\n9DqR5DoLL3BbuiLvhR0+hxXo0B/OMJTSg5S9XZXTInIWqFnKPjNUCq3Tx+Wb\ncg8DNYNvowHtmXQp/ZclhuWlmHazmemfPUNunKZNZFk5Cf15aBjD4EBPu28e\ngP4KDY1R1yOdjkIK2ayNOHs0MJeWdgho8lyGBej6KHuPQJvx6iJS+vFT106t\nYTNkV36hYSzjBSUdXHgpj1wmkCR4u2TR69cKgS83HYv4R5zaXo2ZLEMAQFtA\nLG6D4fgVA9KLWJVidLzSnyixFixq+dH+ik/Tw8O7FH2yRW8h+QvPeg4Nu9zM\nRo59yrsu7a3BHX1ScG24WYECwQnoIpPNOhGKtmOb76ds5fHsvWEcN7+aZXmv\n64LatdX5kskqNf6iYFycGWhdlbcoMtzJwBo7PpNyiAYU/YXRoCZCyoqpcsbg\nTnGiUBjhM4C5Ddp/vZrF/g7BEL19w/OxMwd+5aWXCz6jWiSxEW9YSwcn1r5r\nQXmDm4985KR2TDNWbN/UN2SY+is8w458ouIPpJBpRiH4PMFYeNZY55KJ85/A\nPYTbh3e4isdgQN2meTaloJr8teTcsFzf6jHtlfV1udNi3abzWG8T5SX0iCyt\nSsINei6ZIVNCaiM+eIICC/zvnc2a15p3GtjbEoT/8alM4xAsmhJT7ntnVXrk\nYtiT\r\n=xHj3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxPLQyCwKrvL6VFz4fUGxdHdvGc5F+XMi+MxyGc1gnSAIgbOFPeTxaJle5tGJeH7eOqNl0Ytdbawey3O1qXxt9thU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597269879734_1597269890841_0.6965403920776454"},"_hasShrinkwrap":false},"1.3.0-next.1597271056915":{"name":"playwright","version":"1.3.0-next.1597271056915","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597271056915","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ieT/49r8WaDp4c8+VGpEtZnl4dGg+uaPNJw2JjUjuEo5rc0p/QmGrl9NFs4VJgoL2cTu6h59uigKmTcST8G8UA==","shasum":"c84bbaf0c6ef267cdf9af81819babbbccc450847","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597271056915.tgz","fileCount":159,"unpackedSize":2426254,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNGwZCRA9TVsSAnZWagAAHZAP/i7vQsLnWZ8/VRZHzurE\nIvEpx5tgxJPVlqkJpCjTTf5ypmR9YrkasJRAJjgg90c4kA5PqJ+keL1E6A5O\nC9HRSGfTUB0b+NhG90mY0R6LiFjQyUBgu/E8Ru46JqmWDFTKyzNJuxMBV5XF\nVhl6ezeV6/ihrzVDlstybsdQtliOxetqfAFF12TxlR4apeKMXyGPLVWm2Ovj\nnFzUibtvo7n7Ek16knm9Xe3V89pjLgVbUuoXnmhMKqxBeD3zQDuMNMpO+o3C\nzZz0nqfmKkFYU6aKXanviSlcXf4sCfdvDBQmGJSkS+vaEu0tpqvc0B46E8Gu\nglIYeA23mJG9g3XjH8STON2YYMro08puuYRv+IiS/0zuSZ1U1/YhSjPfCzl4\nAZYM3p1PvvynGjG6qwOuhAtFLXDvvlypjKA+I0RS0+KjGRS//p17CMT/4Iac\n+wt3TTdZvuht9h1/5uS9cZQSBydSjX2xMiMAbHCX8+Yeke/Ec84tfWLfB4Yk\njg4IurFEFInEdSRPBPV4dn39V/+O2i93sqacg99vrmg/61pt3lGqTz5d26ZJ\nRQ4yi7hhILo9RmdvC/C4dr9EFZ9/7nk0zUXuKszvc4fL6GuaPjh9PiCwfIPg\nUq0kAr23M6yyCIEJMg637rrs86d5R6Cq5ENd9cCu1OuCPHJaJOpY+WBy3uDe\nr0Pj\r\n=ibdt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTCqVwdhnWRUZUBrGCUOtBN95V8jevQFkqVdS4I5vHjgIhAMQjX6XxUjfuK0vXstxiuRqlBvN5UePCfIfXLSGn3HL9"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597271056915_1597271065406_0.6111434402794844"},"_hasShrinkwrap":false},"1.3.0-next.1597273460676":{"name":"playwright","version":"1.3.0-next.1597273460676","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597273460676","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PlsoeoJ35CFxA/X76Kbxuo6JwGmfFGK4m/9s8+J4z2oMD4gC+mFVT8BYXfIObjfWx1nzzXQ69acNgJci6wQKCg==","shasum":"4797b2679e74f41264c0afed897891016ff66ae5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597273460676.tgz","fileCount":159,"unpackedSize":2426138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNHWACRA9TVsSAnZWagAAx58P/A0mdyd4Igk3N3+ZNTYO\ndm1S0BzZriuwZfGcyqdYuYaDd6l5dIq1f2ErTsLWcgdRO6Lr8CmoxZ+M1EGz\nT0qnHNyr5HBJecVAxU8S0gcNcf4f3wYgchej24/ehT5SxfR6Z8FU1iZKQMRN\nEAXIU21aYjJH8i5JHoSFXnw/zO+e3V+s+sgcTuQQQAs/LFTtI0p3W+otFVWO\n5uVnM1Z5kewIy1A04OyiZsJV51Hqs8CL7wDHGdTrR1hdpenEKlZA78r8ACJT\nqThBi4JiY0BgFfy91eesy8ZR1CrLq/H45I9wi+A/1+vixCizFjqmwSS2igPg\niBUAl3AWiLTzSTieLVUu6eX6lOVlzh4QRJS0Oco1D30QiXU+E7zj/cYPjw97\n5IoivZ0FuU3zLVjHduYF6Nvsa5Ri6zuLH5isSMdc9cOCUbKdacnR/aFJ2bLm\n6te4VCXcbQ2T9b4Frk4jzVTJfIi+2Oghig2NsEbzyApV6EojlWH34qnf8gbk\nsHpAAOhXCo1jAOoKLfNpf/mLk9IQY2qrb7ZQQ9Y5ozbz/HH5RXm/vRXbaQid\nk4gI8tiVAZA4H9ZNJRa76s3GbcV9dUpcadh8Rzz0iOZlRUQ4a7yqvZUD5tNg\n0MiAAGlOZifG6NwTMiznX9y8QLF6XHXacbBgITojQETD0tkAMeyxKAX6xuqK\nLqnF\r\n=eZV2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFFiSmoMBuedue1pQzsZfhgIHzlWMizyr6EOoOava/YmAiB9Y7xD/NtLCTGuHZtqkGqfjnzxa7yg/raz1uQsiyu4og=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597273460676_1597273471559_0.785263145075449"},"_hasShrinkwrap":false},"1.3.0-next.1597273739203":{"name":"playwright","version":"1.3.0-next.1597273739203","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597273739203","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ootkLUbLIS/c+BRfUr3mN+bTD+vZfJzUMKsXV1L6y1/qM9xT0LM83g8lDTes1eCLfEGrHwU4yqZwpQFFkUcXOw==","shasum":"bf9bed0040a1aff69d2624eac0e8902c21e8abbe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597273739203.tgz","fileCount":159,"unpackedSize":2426138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNHaUCRA9TVsSAnZWagAA044P/3YItBLSneiKGzyisfpm\nD3hgBLDgj87bkAhZdMHCuGd9CNJlQ/c0pLA5/hUD4CNzTopnqnIjSC+nbd80\n+1xoRapQ0JPWjwMLh42gNlWSdanLIS0jjV26bZ/Fx1z5lTrkxMS29+MjIB8a\nR4rxw+HAAj2o+X9ix5NPf0P3SPJrOUnxhPSAoo/v+TGbI0CfIY1+MvOW5M/n\nYPcpyZqvszNNeryyZvGtk55KVCEoMzUL+kB0qddDg4GcO2wEbrQsWg3lbW7B\nAw6g03NDXQA/AlQmNL0F8t3clqwEfzgWWJR2Mj00WtsjRSPz36y21wAIgdol\nH6MjMOaHZBK8OiYPMYoKuk0nz+Bt2HX/KV7QYWGsHbYlt+uzuMOsxvNDszFR\nkcQM9/yMeTML+8DWLxK17TzoyYIcfgjYwhA+jJESjYTEUGWZgsPyncYqCjqD\nexesdF7f2+qBgLOYYuJD8vbKzi/WR9bTKyhdaFQ6SCdJ4bC5B4zeojy16UgX\nbxF5Zs3xbhYCuoH+Q3cu4JCmqZl/tm5Z31CejQgCXDg//bs+CFtmXfAAu8J4\n/36arM9dWXydGv/0rb8gmI6iRunanTaZQWdWtPUVxud81Cwzs2aYd8xdj0E4\nqZF3+e/+MnnfwhTAib8lTfNhyPGMW9NbR47mHSMO1hLVCjscrJxKqTkd4muw\nWXy/\r\n=4wpC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEaGa1xwZh5r2QvHFaYDVJBDV4MTt8o+D4vJCv5ICXLtAiBupLDv2bgvawUHp56xc0XendWBMU7Nt/a3M8zy4V/w/g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597273739203_1597273747766_0.16691401174186726"},"_hasShrinkwrap":false},"1.3.0-next.1597276304551":{"name":"playwright","version":"1.3.0-next.1597276304551","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597276304551","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-t59wPxiLmIsZi6ELwl+2ykuLvVnfL7Ia94H+bWVARFRfOIV3c0uD6I9hLK/ubxrJF3IoVGPV3GeSnJMmd/kzCA==","shasum":"e38e5083833cca261979e8fe5e013a8443ac04a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597276304551.tgz","fileCount":159,"unpackedSize":2426138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNICaCRA9TVsSAnZWagAA9x4QAI6Rr+dY/N9bsLTZ5kEf\nvGCpDjpGKuiCK3OngnXGTh1/Db2MX8Z+PPIZZcp9oqNRXTu9WkAaVw9fyRa4\ncxg1bgF/pjQTriAgap7A1JKMa9ALz3c/nkOdG3d7YViahj+geP2455jjjIeG\nvvc1CdzOFRgauaHv7dQQRliNl1pta+e+7huJLsBVWKxx6JA3Y8tA8R4sBw/Q\nz+KREEe8de0y/a+xIslgtQkx0lTs21tJPrPArWpHijX/TmyMKg0tECvGR/sS\niYm4x9aS2uRTYCXmFPTvvj+5pkzoIcztzCbS6h52RusO9XWTjtQEFUsLdLzL\nFosyfrixhPLHjPerMgkgppk8cSTuhSmCjZeBZWJtqXzQwxEDc00LswWESiXa\nmppAEWUxyC3uKUt0csPHvc3Tzhsxh2pcXRfmpmQAPiMe8WITC/sk3pM2q5zG\nqO8AJScQ6/iz2tZ0+TvQ/ToZL+LxuRR6pKfMHDvgDB4cn/u+ad3/uEe2KKk2\nZpHnkofTpc/Ks0fcJ0yr4vVHnWwHL55LeK92V0d4PEmRVG3r0qCn3IPN/xBH\nbZ9r7TTJIpbq8iKyF3GhkcWlD+hjjdps1fnnLY96JaYVHaSczSQIgiXUV7Qh\nN9zOGF3PYOYAz0smK3SC8pN7cU9n9mKw5Q1ix9NAp/23ACuNYi8FlmhLxkhl\nDC41\r\n=BP8y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAstniotXOtuP3mr7NdlYo1b+EqIbGZqwYJFUm23QOs5AiAgAsVQSG1kcZPfa1GeCeTuY33aS62oiifGRfIfWWRZFw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597276304551_1597276313685_0.43428630100805266"},"_hasShrinkwrap":false},"1.3.0-next.1597279976575":{"name":"playwright","version":"1.3.0-next.1597279976575","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597279976575","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-MvyYVcsyEaeATlfRYEV3LseAx2VWls4y6WYxrj/f/5e9IX6LWkf34fXm8BlgzNMWdX/+s32v2Kt8LQ/IB7GzCw==","shasum":"96cf93884dd320f67905c3767f047f6c6abf944d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597279976575.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNI7yCRA9TVsSAnZWagAAzoYP/jn1w2puh07JKtMJQXOU\nJKgok4WiFxzLEuEzSvtTyeVBLSrqt8XX+bE3TLUO2xBKeJUlr4/4T2wIsP2T\nfQN0kJEETcY4NxHkTDLwjgyBCgxxQysNMaR1aIllX9LGE1RNdvoh0QAFg92i\nW2z1IdQlxHjZhpffT+2X5sRQIbGlHphIK3Izrt1XOP0X8InVuETP7K4AozUF\n7GHp693xBWKmKJLx2UtXB7OJAcatt64/zlanfxVZaupbfEseCje0pBLXJtXq\n1d2XixxhLGCXo5jPau27z9n+5YkVTKyAPnOpWfR6q5PCg0womo7zBsRF1AYI\nEKmgjt6e3O4QHyeBnWqrl5jy7kZU28nmdqpoBbJL82DI3/mFeBtHs1bknsSS\nxbewORRnXpnS6rTpRvAF9HoDg5CipvYlfI/rnzUQ0ewQiyJ/jpeCwlS8NA/8\ntT6tBAoGHrnPBhUYkJu/MbPBPMACap18iIMLj1lQztoKSdo79JmNrdhf9TMe\nAEs5irRlzUTeWafwE1008iTcDeHYxNN9EX2QebourhlNHaDRl6ZXx9ROIdUc\nuPpzIvc3iheanFOMSZCikuKENlBC7bCnJe+Ijo3A5LZ6A2TjOfYkxROwxpq1\nk6pJZvBMOPEArGL9JrR8mV5VIs52bPScgmNukuK2u8i6NKQMoWliVpi/TkgH\nATYg\r\n=Sz1x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWs0ucsK1ZTTOGI7iReLM/gkj4xowvFAHyTtN6tNnMNAiEAvzoRrJ0KPYVEc3BwG6Tyhl7jh33AmL59Kp+ksDNezZU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597279976575_1597279985606_0.7279930954317158"},"_hasShrinkwrap":false},"1.3.0-next.1597282275454":{"name":"playwright","version":"1.3.0-next.1597282275454","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597282275454","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-E0e/Zd6VRJ1CO/2l3XAnQekiIenBnlzF3qJNz+/9eIHa0wm9huQba4gQvPmtSZnevmyH+JbMUkF/mECltnTl1g==","shasum":"d3dffcf66b4c447b2a66d9a5ce82a6ec3ffe61a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597282275454.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNJfrCRA9TVsSAnZWagAA85oP/iqLVErkt5FNtE1NQqW5\nggJR/6xV0C4AQoo+8I3WB2q5GJU3JwL94Y/MSvXORz/Xqcieyf14ITfIbR1j\nJ98APx9Jctg0ObXqYGRTUXpcRykAMB3IT8IfrSjLANj4wnvwUA3yPn0LW5/s\nwXN2UYIapmSSXQk/Xh3nBWJqZsyyt7UyBYgpPk6mV3u4rDEDQ7KSbf4BeDcH\nTRJvBbt3QG1BN7anx//s++27kgkD6vWSzmsFiwpMV6DLCnzVnRJ50c8HF0k2\neTR9VjTxXrdRELIrqQdREy4YKdIWNz15rxjSQF0QFZomxxV/WZQqDExLKHTt\n8XWy8SfNGj7CvXmVH9R0JOhfr9OOm1sIVme3dH3LakKt+Kce4IUWs0yJU/cp\n0ncVs3FKy3nTSttw/VPc+kaYl31e4vHrEbrpKIe9dxWaZ0WmoGoD0XgCNZbo\nB7uEqkiZmgmsU2HaJlJZ85YTUaAfIQJhkO2DcGYNj+lJsDq1UjhDP5NJ4Xnb\nxUIK9J7TgzvTBFOGAswZd1QLUXVWVr6DrjWNzinDgrkDpFJ24/6/dLNVxYAW\nQsJMQ3SN5elF710I9LvxuTQjRdQIzeMEa7GGJScQ00R4Da8nDca/8HU0RQ4P\ni9oGYgcqmZrJr2ojAEjFGqqs4Tvj8MRL5qUOmnE0S6n+BnS+rHgs4V2Qsix0\nbPbq\r\n=doQC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTKAqUBTcgixQDZCapAeYAjESRVGeFCBOHswF5/J/MgAIhAIHC5t0cIyMERy/UPyJMUEboOGYvtuecCUfjHrwrJ8BS"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597282275454_1597282283050_0.1917232574960328"},"_hasShrinkwrap":false},"1.3.0-next.1597288103172":{"name":"playwright","version":"1.3.0-next.1597288103172","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597288103172","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-jAkQN0vYVqh01GzkNv/v9a0H7M9J9Wa/8oeK7YVqUs3akiL5e1NAfc4zNHLBhEGvRtteApgggw7v0jHZDHvxQg==","shasum":"70aa58aebf7726a824a0645eddc1bbc9c41d9483","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597288103172.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNK6yCRA9TVsSAnZWagAAfYkQAJcBpaZ0qyqDars29Afe\nhsNa9jKzgiH8IuEAUftor8PpXaE3oigkh3rVAfhGTxZO8oWDpkwq9L1gd6kM\nu2bkFq0gxRc8Qh3CJy6v9ygZk0KxzLzfUEOmTElDyhTiRrnJBM2j78j5jxbf\nrRK5t4Pf29rHzX0rU+kDnDGoNS8eKmKIvM+p8Qhamqb3tjvUhs1YnqI3JaDl\n+k6znuMwS/5X2KX52lwxQ1MBgjQCYI7dKEjFqhzttIfbpWzA4lSgiKi72qcz\nPnEiqBZUZHrx505q+PX640X530JzO2H31AT+fwtWYmqPirtUa/D/8owuN0Sr\nbZgs1eQcTR8v2eJNDX6nFUvq1SHrkwqB+WJx7POpgWiZasLuxX4x8/6Pcy0e\nJBiPp/rdD9Lu5sC+qW6K3XoOEfVuQe2R8V5dDaFBNt3QG2fVWdhZMJ8Kzc/5\nebvWrUIPbEdtf92BIKu0Fx0xwdB4kLylQetEhfqJrlZvEBn0rXOwS5gxM13x\n7vVSHGzIyhuUYoJ6/Olm+X7pqlT4sv59vfSk8uVgwxJEP43Q6+qobSeAZv6i\nkgrS4vqjVFwEMmFmcf+aH0Y0GHwpfv6Xm2pmcTN4Df3tT04qmqVIU1UdT0d1\ngCtuPbD9pimlnQ5lAMq2uNPdZ252UWvsI3KqPvRVp60RE+houccrppuJpo3o\nM6CQ\r\n=v4cz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEc90tYYco5aqV/MzpGkt76s8CjNETO/+8AN/70QCTC3AiEA4sng+11LIWcpNOkKOFi4ueOwNDP03OXowCv9y2WPvH4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597288103172_1597288114332_0.326138781357896"},"_hasShrinkwrap":false},"1.3.0-next.1597289709940":{"name":"playwright","version":"1.3.0-next.1597289709940","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597289709940","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rjCmkJJS55jCHIqch+Qz/U1HHTxPjWyPoscYzdZRpZ7lplZQWmlRDM+FGnB47jRTkJk36r80i7pWNT6YPHdExw==","shasum":"53d203720c65fae05b124424d2cb658c080afa49","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597289709940.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNLT3CRA9TVsSAnZWagAA/8UP/0gu9GbOWfU9KYkWypVr\nl/13vpXhc94HVJuMU3aX6uSvU5p+2CxF+OJznhzEa+H5V2OkQjrN0q5Zp+bf\n7jxYOkBnfiAYHiwxqyRzZChR205nE5xYvjYhXnXzCrn5msr0+Fi7znupP/mZ\npm1MpSegvi+QOK01ipU9i0wmZEX5//K5rqhEatfLPtA7VKOk2ch15EtoG4GU\nmgTz6qm6egHCWRAyH/ZlT4trZ1E5EqRPvSCxQIoUGp9VKBEImCJdb3PNCszn\nXh7Dw0IjlNk9/DJvRuopHmGq6tPXrQln4KP3t2VGF4fAWYVvQBbQan8Hh5tl\nPP5bg9G8vedKzAhPKJ4QkWzsPx18JUxPlAOKJINZuej4mQoIs+CUbCizG8Et\n3TqSEWtMmF5z0PdcM0ky92dTW3CSr77lHkMN/xenefYvlVBg1qGh2HOgznx/\nK6Y0Rgq6kIC5rw3bmvjBEBd4bPtwTFUHSUwkfUcMqbL+mzEWYOISDrixrgp9\nydgaUQqihVotoFB0Dh5uYJSBBaB9+10DqUpgLhNVbSZo8Ua2GmYsvcw4/4n+\nX4YAe/is8+d9XdClWirwUpqYAvh/HjwanGk3CqbQ9Mm1bJpWyOw42t/meuVD\nuPZxH/cdZE1TRgYWNWZTLAlkLpYdxnJVA3K/es5T6gp2guQalXMQDfn9W4b7\nuviy\r\n=3Hzt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDlEiAypcIII+D0EEVlMpMOeCUvGHbUMuYTgo/s6kGplAiBHr2XmUFGlGjs1GF42PK7LnEgjRFt58PbP8srVABz53Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597289709940_1597289718751_0.5328153621744007"},"_hasShrinkwrap":false},"1.3.0-next.1597294992115":{"name":"playwright","version":"1.3.0-next.1597294992115","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597294992115","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-O+hRZqlInUvIRdTze9RUZljlLm8kRMif5WcEGthm2LK3PQmNDmt3Oh4SMpFR48l4PnX66ZK69K1FLJPa4DZrxg==","shasum":"088140db0a468f85d27f0f80b575f8b57955e899","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597294992115.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNMmYCRA9TVsSAnZWagAANhgP/0NS3Qi5T5tPEREznH2Y\nnZb8y5cx824r8zalWdpLQxWHyFccOCQ/AemBT30GsEOGhjiT0F+iIwcXvqp4\nXly4OInlrCdpjQbvjecFDqlZf4fVfxYtA+nkvn7kO0+4IHejGepxWObNkZ8B\nT9zNK+cHgEPUyWFcDiE+w3iAe9CQnnFvyi9njrkxDtSz18JCHuB2lqtUX0ys\nhi2vHo7Ia0ihBXiDAEEGSxn4pClBSQdVukF9eyvyxUJ8mrQDQKHWmaKzRAC6\nshQF2sI0bKVJ54I3ZyXo0MO3iyutU3iqYefgTcTJma6dFJmWQTsjlTgNuaVn\n1Jk460nF9kerY+2SWpG/KYf7tLjhLG2FPwYWTfN8N3kvnswCB6q6Ho5spy1x\n8zQJOqDxyK6eJWZztS2UCdk3nJYOk7ChDKnVilVmG9/NRxyf7BTqTdRj+lVo\nDe2P8EqldpkiCKWlxJDnyBIZLiLubDd28GnOIrkIWu+vQcC3tzQFmhiqtkeg\nUYzQrNB/gB34ncS3z75YioK5GA+eMsI5/IIdzgTniGwgNvNmyyRFysC9Wv2i\nXRnCmbtef81ZCsqiHjZpb7Pnzm4ZE5FXWp4e4tIwtxpLgWaHLhuvxDotTmKo\nqcgjP34kbI2t/0bYSqBKXnzLIX2U7hoXKj44PHUTWV1adlCqP9ZSXEcgMozt\n5UIg\r\n=6r9d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDGs8pDX9oaC89z+xwB35L+037sD2cbRguknShX+wXfIAiEA4e6J3i/TCZxbjvPUcj9RnJA7XTzfSwai+R684GJpNSs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597294992115_1597295000222_0.18694518726438547"},"_hasShrinkwrap":false},"1.3.0-next.1597297417562":{"name":"playwright","version":"1.3.0-next.1597297417562","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597297417562","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5TXlOxgKWyVLTR9/mOjq+D9eep/exB7FPMTa23N+/uRsGIpqHOTlN+93D6ZR4VGlo3owY7ZPRzbEd7e/5rT3iA==","shasum":"e4fd63d497a5036046647b6fef2bf0bd66f47d40","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597297417562.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNNMUCRA9TVsSAnZWagAAdnAQAJupD4op4kS2PNfZ0qmV\ndlbYmJChoOhESk/ovUee+hMwpOF9OIjqfZMMBUYEEGbLarFP7c0aUjNw4osn\nPkDlSgb6gHvbUZa4gTe035k06+L0Ea3cwxjew+9tLiYsUBQ3vY52U7MQjs7B\npnCX5fvaUj5SKFsUJrvh5m939tL1335Uo5BvUVC6cUeakRyEoa7wUK8H/ZqC\nlCyfjt6b2n+Ik/fDrAsquzZ+oGJ1WrTIlsmnHXb2TC8K6kWIlYF9GUkubLa1\nNdWb/D0P7QxWwqiY15Zjnefili+3Qq81xCns3Qm8gy3qH2EgrUbsiaICoHnS\n+nyFPpoap7EI2XmaqW/GN1pEBRes7J3wIEr+TTqW/Gki06Zo5a8hujUNd32d\nWggw9m2ZSu95FK/tyFIhyGKrhfTAcHFxbvXwAXOjgxkCwLYsoWIxT6EfKIBr\nkG1CL278XQ5we6Pn5rFPQR+hNC4thuJ9EWCu977H/c5gtsUVVwz9dl95AwCZ\nq5Np9hKDrfxordqYluyjUu26yYv+fKtvT8w+NFhsLKnQTSjIt/Re7EQSBNgv\nzoGU5hjGbg1SoIzjyuedsEax/T99LMLduJZM2FR1KUEZhZ9rbJ7X4PqIPejg\nt36FsEl6OYjshpF35K+QOOyG5iHVjd/x7Q8L5QNwzr67l8uCz9PLu6BsERfQ\nL4ry\r\n=KfI8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDsgw4lU3BiiVEZgL4Ya43JsE4oa1vfcHb1rKueYvuGqAiEAyW5hD6Nv47l0RXhQiaVFLLrGnROkrmhhcWPfeIS1N4E="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597297417562_1597297427780_0.7660465924556386"},"_hasShrinkwrap":false},"1.3.0-next.1597335254968":{"name":"playwright","version":"1.3.0-next.1597335254968","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597335254968","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ivuFZCvibD7j2OlbxARVYIo4jpQi9PqmMlhpN5HgRtVtaNfPuk1OOZHWYSVEO6C0BpMoyTUSPBoSgvXxbIyZzw==","shasum":"5a34f84436eaa1e6e0e2c159e587cce8025feec0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597335254968.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNWbjCRA9TVsSAnZWagAA8vEP/3d3lEY/eRvjVaMy2OYZ\nWWBLb5xsva3xrpC+sklGJM7EFo7e5lBvg/By8jK4ENfq1SQ99sBGTVFpr9Kd\n4xZ6eUMz5+PJzKmwqc7YzHXSJHWawsyVEOv3hnUMiT9F5HxcfSOXCp3rJq+g\n7advPCUY3qxwBZHTkFeYKuGj3peYi2JL3ilwaFsZ2qbMnFpQ76oB7ryqJ7N/\nF9q2empKXvg5rvtkqG50T9CwhhdTOGeyWoEIOez3fjdGO2regdNaDGxt/LNz\nJpkBCHGks4tadyARIzgGvpSGGOihuegaBcMTCqhfeKvGSQIE4xaOhBCU+UGk\nFb2a76EIL/KCU7KYTTgzJabalme30SC59qIppK7Lz1ZiJ4hvND5BlxVANPJX\n8eFGg1cIdQcuW6Gh/Mpfgd/K34zrT3rdhRGsmf1OX7swgqcPEQ6R6dEnGCbw\na/1DswHc6AqLbHeF0stZz/MdX2nhQoI/xFFqNYf59oU9lAmnBlQ8aYXI5OVB\nQtmcTcEIyl4POrdspCBl++AB+dkJwDjJC+hBdh1wx0OrLpAaj0IQep4bas4S\n+FeO4+4tmlzLhreXjuOxoGjwIsO4CHi2pzD/oUyqU866JrO5nxraHCQPne+0\nSvRavaxXZhWUEoeAa7lvIETJCYV98TEb3/nMeUz1FKWh63ZvwRBTKDhckABn\na6BH\r\n=RvDQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb1bpqUV9iwOKODRa1cSBUiz2ASrY+8XpfhO3sM08VUwIgVcnjbCT5AfQQpb/V2zvLfT5w37HR3peyTwgpOi6BajI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597335254968_1597335266022_0.5654173733108121"},"_hasShrinkwrap":false},"1.3.0-next.1597336537257":{"name":"playwright","version":"1.3.0-next.1597336537257","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597336537257","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8fJXp/XPm//A/QhnwpF7SYO3+u7aUVocWC5c2gRko5Cho5FhA4Ug5gUj3JcYW76v/XYIqMB2takoxj9NEyIe0Q==","shasum":"2d460cb66f53685b160b4337d5f0ac50b33a545d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597336537257.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNWvlCRA9TVsSAnZWagAAZMUP/RMCo74GgYWWI+ClCYX4\nHWA9a/cWgsGfUQmmg1J0Kdq4OLjf9i8CTLPl5kBcyUxUIx4YqXGV5A3Ne4zD\ni8HOQQr4PEFfz6iPMtxhEDIZk++3+qorvwX9CXegSW9hgEi0pNGdCk1z9KvU\n98YznruHU7Pu7cZzcuIMle5MnKxaj+bwzSYXGz5HYeoQVQdo/2robpmzNeBP\nFETZkUhqH5/h2/dbGsziho0tIghzaxti1AM3aLfmob/R274MPOXeBRoBJF22\nTEPYQdO+U6HwcsQqytu70f6xNPx5gbGAmvKCRw94FQmfHKTADsJH6+ZDWnyj\n6v7Jcyx6EworudHzCYTkupJBSQu7Ax7yGZVTmWQ58gYqo8wlVqRl0ScE6M1m\nw3fY3YIzbEt3VIBt3GZyydNKhysfxCjmOuxM9N4e+a1ttYikM2X0MHm/+CeP\nc7b2oWpRN0YL1hOd7bmBvYGu2px2i12+3BnYJwDwlpt6FYaIDNoFhKFO9PCK\nKERWe3g/JM6KPk6mMqwxzHEjYf3T6mEG+iNi242fPDqZRfVpHIP2EVW6npRZ\nd76ezdz7fTZBJWuoZEiQNZV9gfwp7zPSMlp1YxRXCKdRoT38QE4NAhWwknul\n5foivpjbXeLcy8RCj3iglUnycLkgB+s2OxgkiJ3q6bww580a23mziy9HGwS3\nlYc1\r\n=hTnF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6SH5La9ukbaNHI88g0/2AUxyzD4bLKPbHMNpvOXk98AiApgll6RMRwqt/+Vu9VX8bvGpXyJDOCxgH1hnsATDHPuw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597336537257_1597336548863_0.9182143005348404"},"_hasShrinkwrap":false},"1.3.0-next.1597340491141":{"name":"playwright","version":"1.3.0-next.1597340491141","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597340491141","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-jHoewAUQSNr5sFYClnHQwDc3sbt0Leah7SgcOfZOJnngNMRT24Hq260ZX8W93U7iFify4sW1YnzB99Byen54gw==","shasum":"b4d7c2b87282bb780605d9a2186677690db45c76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597340491141.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNXtTCRA9TVsSAnZWagAAhhgQAIvLyCWGTm2yBdrydAzf\nJ5H/0M4An02dmI3Dxny/h6KMtzXV7XZREtHJ4xJBo2YLDi/YbMO8J7nptt+h\njJAn/n8HGQ1l+FjoEY8VN9vSZEJt4c53Xth52Bd0suf5HsQjwiLGryTWEuta\nNfBGZcM7jg1AfZVHBBMEb5u/k2Fwiuo+DkGHw7rUnobzHNy3yYQSffrUMCNK\ng7ro3qgp0NcEiZ5+1Zj416D50cWGh3FijUUd06IiQUVf47bnB09Z/tcZFnNJ\nQLMfU4ZW4n04vDQ5Ofbd1eBmlSGlH72PDvNE0smg9p/LuzjAh+Q8jA3YyAKo\nS+UtS85BW7G/zpcBgyEexDY/BQCOS0Fpb9cd+Nqbqrtt0G1tuBDDY5pM5V3J\nsmXwKcvmKLPpGtc4pD/zXtZXmwv7wSxAB0cojUR1tVb3T9ODY1K0hHG2sDdP\nSbwyy+Vy5u5K+0lQioqi/zKgz2Uat2Fx8+XjTM5mGk7oDBulUPwZG0JwvSiK\naen9mR0IId6EznkGRgXiDoLgtc2qxrTn3L7FAqPPwBBQKLzhYN9NlEuyhcwF\n7bvc3MxSOnNrctD+/HKlqSv9Q9mRuVugZU7NIkYaGjuAnuYanbZqHAMVDCYi\nVreHCLjS0Ftdqc74uAHJUbF4fscQfzAb5E9417ZARdgEk0MidgKxpgYKB/KJ\ngUB3\r\n=5WO7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/v81SLPErBozlnj9MJeqTaW5CJz5A6kOQV1r9KLdE0AIgY3hCNh71onXN/FmrQ3PTABmWG1KCHeIHVD3QrXTK6YY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597340491141_1597340499000_0.8260779522882786"},"_hasShrinkwrap":false},"1.3.0-next.1597341067505":{"name":"playwright","version":"1.3.0-next.1597341067505","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597341067505","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nrQ4BgN45YpCBkufCFJnV7V6MN/Y7SjkCX4NCfoM2lglG4d8/1dxx9ajzwT1wpq5+DWApzE2Du9FERDNagSzUw==","shasum":"2efc38e948f6dcf31e2574f67a84f1e174a63a51","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597341067505.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNX2ZCRA9TVsSAnZWagAA4PMP/1oS1dA8Isth+ACnu/dX\nFf9dGFF3aUVnaOrYHd/xqpinRG956hQHsyij762aVbYjIAK3YesrauliPvPm\nscJXBl6g2EinKe2rV6MxPl8SOhy+qq9M9QH39izxPcbcOKz79Vtx2vUqr0bH\nGlc+peDCYiXsMqTVL8Mlv1F5nuDI7cUQMZtgF0nFerk2jFkdOFwPJjNHWSew\noaDVzbJaU4aEeV9iV0vdFNd8VohP8cjWqp9SPltouLAryF+opqhHrwl6GAHE\ntZEZ3L1/6NBZp80ADMUu9mRgPSk5OkxE2hO1RPNIvi1MGvZptJh7QdvvQYSv\nEif4RLge9L0g0AZGlBI0ESBZYhcVC6GNcyi1HPvhP3VrvFsRZRrRz6W8MNRd\niI0kHhEey42RWt4kfgN2bv+qif8tqHjmDnypFg1vEthW3dtwTdqxRGIuR6z3\njZ88aLE3CYl2rv5XiyBMmw9Dhd5VgGaW7XprDIBARVK5EGCw+xmmflTSlOl3\nQ/Btvk8e59oo7mZzHiAqLmYirdWqitZJVaNqF0JclCDEUYvXaiVg2YVQAPrU\nBisDZUrfj4FYoNWjrAArjhmI+yC4qBm0mcw4gUfP/VJaOybnIG/GnlBht1HP\naAyz7Ev2vR/49TjShP/n5sfXNLprxvspAerAbWELrFq6ag1pnEUtb7JPy6eI\nrxyb\r\n=GBm/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHps5dbSRI+B5FBVM8O8zUAn8KIe9YyQ96Mqitq9rl1gAiAZkYZN2Pa4aZnxJZCo2Xrp0AJmSOV0HCjL2lOLGjTFRw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597341067505_1597341080552_0.7816854573701848"},"_hasShrinkwrap":false},"1.3.0-next.1597341778179":{"name":"playwright","version":"1.3.0-next.1597341778179","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597341778179","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-QvrASsMLvfxCpVhbVb1xKaI+aP3ap9IVamQtCT4bExCjrHvWD6zGzK1lNrK93Od9kxMnyvbu9xaCKXIqhHCd5w==","shasum":"9af2d1ba35a48e2565635ebb9ea5e35265108660","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597341778179.tgz","fileCount":159,"unpackedSize":2426030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNYBbCRA9TVsSAnZWagAAg+gQAJhUjDSl8ftjANdTkxHd\nEoTi4HbqwJV/koOKOmmBGWCig0AyoPXVTNbzCmL69DZyz0/bWJP/4gy7tghr\nsm4Z0Z1w4R4LivXG2AFA1mhxae32y5xvWvTfwCw5QvJrmH8PinKrsl825RQl\nDul3QNrdH9dhcWscBaWWyBHe+ZIsK7X8DABrVQd3Egana1FjbGp2g01Cciq4\nyjhxL6yXbPR0DL5k/hiSduQFDilN17VkgMjS3NJVqwFGDYxzBvWDorMluQAB\nq2mOoUle+5Ch1wg378sUlHguxzHO8ACkRGji5Plt2KNpUz7irqlpjD64EZI0\n58WS9NIRngsO85LBeBlM/cbfARC14aEy47ZrUjLO+CHBiMfw1ndVsUYMEIWu\nJZfwd0ZqwbyhuemPwUnawfMLf9yZWVhb1Wki4gQqljLYJghGTB5cdPxsmRTq\nvYZKegbiG4B/5F4AdrTh2wFMcfLC9ju8/teEwXdPNgNa123HJJW+FGgiQdFA\nTKawAbKr9YD/awZ6CLKt3MfytLxNgymUKGwbk2EoUtT/cw4gwkoiDfoD7+Tj\noqr5c2hpSHMUOFvdwB+asrnVF0FUtM4RWa9dy2WUJJBtj5c3hz5ELMKqyzuR\nFqjKKHLc41djc8ioblRJU/bwpK7Z8qX35b7r130wAhJwgFtv0YU3DxXNzch+\n7eSo\r\n=sr/q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiI9Nw4j1K9Kyy3Kn1vFGjqOcSHASmrnlopSl/g62xMQIhAKlxoyyCBjiqMXRofJPVG9epdRyvVAxmuS7recVOLGyB"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597341778179_1597341787250_0.6845660087179699"},"_hasShrinkwrap":false},"1.3.0-next.1597344378285":{"name":"playwright","version":"1.3.0-next.1597344378285","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597344378285","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wErItZOLKHFj2f2VK+XV7eqCB81s6wR0NLizmT8HHcRx3ejrDZI2Hus5Ee4EODk2luj2EJ0/jbjrORla1nsP+Q==","shasum":"b16f85d6db8c0a7fef1300e648f85f837c50a632","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597344378285.tgz","fileCount":159,"unpackedSize":2426209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNYqDCRA9TVsSAnZWagAA5ukP/A6rJqLYhsM5/STMeFTW\nX1synje3OkdadseEfGo3L7Gd0LgpUBDqyHTn3IWlZJKuvDKEiXHw4qkNMry7\nrNjJ/FDosi40SdQr9pcQ11AaYt2274kr5fn+7FRYMAmMTwP24xB5EeHoKSoL\n//Bx9Yl3joVmnok/Py5tUkaDnvlMVgVg4J9ivMFJuRlensfKCbTNFmt89ZrT\n4P9TLJzJmvMfcSXB5kX5XbcSIJbiG0/kZFBwNQ/4uOaggk/NAbzlvuwJfZrL\nH+E1xK5fHJ09lCQfN/6+GkA2NIl2GsGP0rYK3Ds4v0HyfyQlM3ZmRL6NPVPt\ni0IWyN0WaZuGD9jUaDsEYFgFcFx0XOTnXChBgka/u1ynw5sfXXsADTv4KtQo\nhZxacyzYuImc5fF+tKexCjTRrCPKBRwcXEkopJ7rTrnMr9PxXorkn5E1WDqK\ntLuDRj8g4vQAGxRgwA5uDiGiV0C//mxsdsR7cDYGR7zMLl7ugSOuXMD92yQM\nv9oNrRfWC9J7LBsLQbDUrVMG+PFJwdREbZXh7HcYeQ/XwxtAc7nIgQb8ICO/\nrTSuJVWZ305SKqaVf17U8rgVLcZsk3m+phpt3YEyg6S1uGdBv78mjhBGjbze\nlblbJJCduCtwW+aSlSCYJrJrsSG2ikbGnnB2t675JzqE8iFLuwWegVBtrdQr\nQIiG\r\n=peXp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgNyhp9OqbWMj7nRCXWnkfdqXjtvzMc9Dp9LA3ogtdOQIgDCFsuYVuW7dNSPFFB7ArNOFfBbztLcmc7YiTJaE6fdI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597344378285_1597344386871_0.4151164816753625"},"_hasShrinkwrap":false},"1.3.0-next.1597344682981":{"name":"playwright","version":"1.3.0-next.1597344682981","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597344682981","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-bmqAXNQX5tgb2TuKTTF7YWYxPZ+NfuoPWpamiTsqaRhnDmcihRqlb16pO+l5UkdZ6qqeeAGUl60V0Kz0983yRw==","shasum":"fb3a5623b3af5cb2063add556c0d87ded6467d85","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597344682981.tgz","fileCount":159,"unpackedSize":2426209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNYu2CRA9TVsSAnZWagAA40gP/RilPJJ4MDaWy0GkVGCG\neIgsEwhR/O/2bZ7Dl62nTjK3/Q2IlQL67bjrXl990MqBdt7bKuePhxapZp9W\noUMJjhnXxgzJsG4Ks2Gvsjziztik1C5qDObLkRYgteQsBoBJjmQRnlaJxhIE\nO7VyZplFsttakg5bV9MjAIT3OjrDRpHVImHMT9b3opS7l/XJhLdCQZ4knVnP\nc+28+t/qXUqkBi7gFDpeuhUDuLKoLZXZ5gnumJs3bidA1RTCHQh9az/1cOw0\nWOX8gnusphZ0OEFRmob4wN0X+C5Ccluj4l6s5uu86ywsu4mjxbJZxI/NdEkv\nM1EkWZmYj9CCN0+Z3bQbMr90Bu2GphB7WdvZdSb52ImEJgXHyXYOGe7cCP8Q\nvBp9i55rMG2TF+jxy53f/bSHRfKJn7/9E4N+EKeDf83z9kYPwBDexGvVOkv8\nxE5Vg/p3f4Sr4YmBUFNoK53Ez7Dtro9qZLXDqfQcEE8FYqtXIJXfR+jyVjU3\n59wmMz1hcnZZIaFG4ERJtnyvnGjjWLVyY9Qs9wCjMv4Xtbtza8XYzUJelDpO\nAkmO8wWTgzfXE0HZfZN9jvn6iiELJiBnLKA0++gN9X+P3Xo2oqrm0OjB047A\n5Ide3IGIqyQuYzTs0Fnjf+XSa07t8IR4I6j2PP56ddQ8/lUBC/OCvBRcohdm\nOZBA\r\n=GD5l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESiFlnlXKy4+xxQPB3AZT5N96RZJ5LIa5iVNfbICkwDAiEAkaDZq7Qtbm49KaiDKWrdvGDmTiu8NkI76xPzhyvh8X8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597344682981_1597344693159_0.8820350060571738"},"_hasShrinkwrap":false},"1.3.0-next.1597346271657":{"name":"playwright","version":"1.3.0-next.1597346271657","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597346271657","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tXrltqe/uESa8du/JLi+c16/6SGrXl/h/txBPNxOJ3PvPIeYDdoG5jb59T9DUPciB0MFnB0wwKw1pSUli0rnxQ==","shasum":"e2d02d311ccc7fb976b123a97b983c1d20e51d64","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597346271657.tgz","fileCount":159,"unpackedSize":2426209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNZHpCRA9TVsSAnZWagAA5tQP/RuaRXPyKQgWX1A4QjH6\nuHAbSxGypY1kebn4gzU1933sz6GxwmfUEyxJE6xY5CmyVFWS9VIO+sgrl9si\n3OkGsDSkoYV8k/MoXWZ6UCdd4gLxaF2DNC3d8WZpA28CqE9HrWqiDPlIlaTB\nixq7kGxQmt7U8eWyfkSQL89QALAGgc0bXsqaZcG0Uozfmpw2YiuhkQ9HlFNZ\n/x1hQz4RNqaHnc1BOdXIa7tr+7SKd0yCsxk3UIs47xfhammk1+8Iex3IynnB\nxRpk1BRR+h8uvpmHqYvPd9tINr6S+MqXQ4+o/gfWO24VwNBK1TdnIPvVBzc5\nIPClXT1v4CcORO5AvZVKWzZq9Wa/2a/ekKIEUeXfTf5qtKN+wWTsa9rrtzlC\nutqjDKBifoyMkMmhmtw67bCP40gCthFB7871uordOt/0R7qia3vtDW/0NhmW\nRDMQSIyPrCQVZjl8c+JalI8/gqNMvjeKu0hs9u+hCDcXWDZJhcegc3gOqBIi\n/gSJFJfuow/cOYVBy76jDT0f3qbb8H6SeVbPY+on+AgnAU/vh0d6+QNWOE1L\nNNAVXz7B0vrdxkWhE3vPGMQXe8crzPAN0VA5HKtq0bHIrCF66gcosbFyy1TW\n/QhVCSwxXxGcU8YRVlsOT6gjPyiISkZnqRzeCdPr1dGIIhHwEJNv9tOokrMv\njURm\r\n=uROA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICz3Pp0Dk+m7PgNJ+MKlirfFtaOQbwmmx3831SmCODTyAiAMMYVBg8DpFMCdLhs3UbU6jCEe6I2t951btmVnUiC/Ng=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597346271657_1597346280514_0.9288845783433151"},"_hasShrinkwrap":false},"1.3.0-next.1597350401980":{"name":"playwright","version":"1.3.0-next.1597350401980","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597350401980","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-WbdEz67Wff+n8UkAsi5VEQySWSx/kyLdLwEa+lEv2XOqOjHSjOVgF+GZKldQo3z+wlXUNgvr4K5mGKaqALE47w==","shasum":"e1261d9f4082cb3057d0e2b86dc8137eb7a238ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597350401980.tgz","fileCount":158,"unpackedSize":2425250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNaIMCRA9TVsSAnZWagAA6xkP/A5jlp7t4/MEGRnB/Bh2\nUuaQL/lGIo/i/HNgBiXPd7uJ1jd1kYBJTRHbEtrbubm15SG223Tt6Lc2jYZl\nChtW7Y/LInGe/1MbC/inCb0+HmmkJUO9labat7b2pusfFx79LIRkvoDWnDNG\nbvI+bZWqqO8DoOxtMYnNfzYP073vcZ59dmIHbbaKQU/IFWfpHE5zIpsM572s\nJGSwkdPoEFw0DhvV+rys3jbOKJysXgScecr06dQu/Tc09wEy0ktgS4PlugQ9\njClKdbB5LJKqhnVXnuXhgIuaQWU8Kl+zSBsRgO5MsdkcS3EXxTVW+LFertW+\nnyK1/Xgk75FdMgfFr3Rmdu/txUKjhyUsPXDWWvxls4QCM8U7x4E4znIRenGN\nIkJ9AcMxoYAfx8m3nrXZjSbWygslGPABw0wfSs4vqxgqMTkIfNQMK1OK/W80\nlLtgwLFAmR7/c73DhwEI3clatOuH9apDlGrBDACCEblme8qW7Jk0zvVoSS4W\naihAe7u80ztTGgIhISn68uxpkXY1t6fuiG1tT5GY3nf1OPJKHwSPxJuzMKPy\nZ6VYIB4tX9i5IGdWZ+OfE4epJ+lhIjRtJW1EZJUp1mLLAah2w4mDIntn91LT\nCzIDaAaryYFbZXCXvUhUJZqE8RkXnbOtAvViLV8BrJdhNUd+XPjjMMDBbjqB\nqpUx\r\n=2/pd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGaYmG81BtP8nS/nx44fmvBv6R1kmvY7VYdqQ6fz4CLAiEAx6r13tjrrWhlOdHDxiXoEbmkaIBf7tmeBqp2cs5s7o0="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597350401980_1597350411164_0.09369178830685287"},"_hasShrinkwrap":false},"1.3.0-next.1597350852423":{"name":"playwright","version":"1.3.0-next.1597350852423","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597350852423","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/M7G6cgYFoPFdaGW4jZe4e3ICKUa4aOLQ00BwZPr9luBYrJhzZLwhFzJt6YHzNGnLUa5pWWAADP1ox14kEgWcw==","shasum":"5402e452999223e6415908087d19b0985da5d282","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597350852423.tgz","fileCount":158,"unpackedSize":2425250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNaPQCRA9TVsSAnZWagAAS+gP/2sE6bjbZpEalJJvPqXJ\nRv7ElK1ppYx+7uzfoXUB5zwVhD8wjEs9bnuuZK54c2kfbEZLh+tCLQSjcT5k\nCA3Pv71EtGiALSnWNx7Tf7hv9eJFSuzTELBJFBjo6xSsGLb5beeXb52wBXg5\nDErEeGmQW2N6gzrI0OGdfqEzrElQ/PHmlAJUDa5rTjQsYcpTRxF3wZiunJ40\n/RL7V4IbrNkL8+ke495eigxiMPxCtihNaJRWaxdDsPOZ7o32dKUtftBZvjYS\nedGVHFE/xC4/3EUU7qRs07MNRJAqwNykAM+UMrkuFKvQYyK958D6lJ2ISy4F\n57aeaCKf/JUWcKNzxlEni4eoL09OTFXcOg7DtWComEwsCZJllaGEeaCXIWoQ\nE81NjoLrrgdsH96MfyLhnwZBOCQxB5ydReemU3yrtZ1bs7I3diDulVii/q2l\nh1l/bAeiZn5kLIRbUhZu93GSYPlK38Spvqb8BrDXhWFfA2LWuWE4GuzOuoBX\n5TXAZDGdDi3Gk2kLlmbC4c3pVsrRiKkvJQM797OfGIYI3N5RUMKwnAt+6uXl\nMGbD/huRSLOrNst7ReFBiO5dunfcWmXqzHBX4kW7nQQg5VYIOc3e1Lp4bnKf\neALZ9Cq1br4FvdV76YQbCK5K9GFxQaoXcyBWfH9KUTtlhxxYJ2Ymalkf2oAi\nlHXM\r\n=irQL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDP3HpnAMIsTYQLz+vikbe+y/lZUr8O06r2t++28JtNEAiEAogSz4IUfliJJPzBaKUjxQeju1HQmy44kSoXRv3SoRQY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597350852423_1597350863454_0.34735093026907404"},"_hasShrinkwrap":false},"1.3.0-next.1597352363519":{"name":"playwright","version":"1.3.0-next.1597352363519","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597352363519","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8fzdcxBFUX9SICZtwrgGlxWq/JL0OB0JGsXTHTPf/T5lzn2m9TgcO9ZgbgnM2gyPR2mmh/AohWZW8Sx5GXyfFw==","shasum":"70aa7ae93fc26faf1fe63697f84150af65c46f7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597352363519.tgz","fileCount":158,"unpackedSize":2425250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNam3CRA9TVsSAnZWagAAuZoP/2eB2CB3o7SRtJj0A011\n9FYXbWwp0OamUvbUTPw3ZNhrx+Kc1ECXGkKdwnEndyEKxqMyb4R7aT2hoSwg\nA5c3ziNJX9/0YTFU4wimTJcjNaE2o7SulwOoQVtkRF1zTzCSwTlo559J3eca\n5gzStpvHUtMsy9MtPkdrdi96kqzUwrhfZxQP3xG8iOlLHqqq0TuRkQ7sjFwS\n9VaYFjd0g9mNtv9qhcGdHOdfV9j4SE4SDIrUoX4ZBB6IDG5hHKmDdFoG3eTW\nbCJuqu/nxSgFzDtq4t0rFHtWOKgnYvFIYkFUm+0LY1Gc3sQWoR8iJV5bdpso\neKJyTASrNxeUtSQq2SyeD3LwyX+sPyTHQN+8FjY6YVXg6Z8+RTosLmfcwajO\nJbQNxet/v/DOseqVCEBbSF3uu7AB8/SeVF64SoA52x4e6Yz5WNsNWmxHXajI\nzrpxbhwN/qAcUaBElZ7oENNifhxHkU/INgT3sKBQnK2DhKlRzngUkdBk7FKZ\nEWN5HBz5HpIWQLZqdhGPIoHXbMniJsdw2445xal53m9Jm793W97BDduPRjj4\n65mVtUPmScGZ/RxNRCZWJB1T1ViQnsNq669XkX2EPR77mz0+a0NfcgRDeNx0\nAnB28cAEHnA4MiUZk/FDKMvT7fHfzvlP78M4NhD3spYqppFH0+YrsAu3zqw0\nX1Jf\r\n=cIfK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFP1LHLhY0ytiuOAg5lhhugsefkLFGYYi+MbxpPKXjRWAiAQ5pmnROpfsOeOmFLlppkr+oai6HkvlnuVqb4uu6SILw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597352363519_1597352375072_0.9523323653775058"},"_hasShrinkwrap":false},"1.3.0-next.1597354616825":{"name":"playwright","version":"1.3.0-next.1597354616825","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597354616825","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-TXlnmewaKFsPoqFgiEMKdJdnkJZTfG/X+Vs0oqVKR5BjDraCplXWgQ23uQJE0M+3bwyezG8Q4tba/YEIQdtdrw==","shasum":"67559cecee378e2a310fda09fa60f7b64048723a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597354616825.tgz","fileCount":158,"unpackedSize":2425250,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNbKFCRA9TVsSAnZWagAAahMP/2P/E/cVTK3pDDIo+W/p\nSFve5U2jyZtlt3X8nbqHD8iS5Ops/dhhfRQjaek6CpjbLZ+wISV8WNCpq3Ij\nHA9XWJ7nlv3yo5Cs+2KJxbpE1qo9E4h9oSA8+8ZoUsI4MGpmYJ+Cbsr2fp16\nlpEYoLvQLh3ZOdOEEBM3XFtCBjrTeGJ25yUqEQ2VRPKQJgBdpz7gwP24MQh/\nmzmGop3XdbA6/WHtzqKJQnYW1sxGzRa52rr+aC6QNuPLzwQHv9WH9BRxgXia\nAst1Hti2ckNnke0ch1vI41gwYA/myYlhlW1HZAaiuRw7PKEtEnDwcG3jC1BH\n3IQVZgTHjp1LSZ+rb/dO4XOeI5ozo9VwvW3K3R6M1FgR5t7w/XWiTdXHA0mF\n7w+A6ZfpNK6jTMMUjDWA6siQ4fYuURVs0RbCo30ZEiVZnomsyfaEYu+3v+I1\n2DoI/aMZ3lOtswBJR8xsPGJONPL+hXJWGT2T6oNjMatX384u5bqb7y6G0Ehl\nQ0nlowFTmF95cchvuDX+BzPh9lvOXrc/kxAq56tuVsmGlQbDKEj0ItYAj63Z\ngBeU3h9GMw58ymtNOD5q4cnAqrnYSTJpt4kQ8JHJGK1bfsxDERNw4BAvpobd\nMMuPwUvEDPB9SguVwL0PH/dMeipBOe2pPxvRHT2YqTrGm4z7qZko4sxw9WjX\nNp1g\r\n=m9Ei\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDL3ZR5cVKpquRnIASkQvzcOzr4p62T0y1TjYAXigtE0wIgGE8EUrQRN8l+We6xsH1pgCbgQws9zP+EiQNcSPpqdTk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597354616825_1597354628668_0.5182772172273957"},"_hasShrinkwrap":false},"1.3.0-next.1597359729750":{"name":"playwright","version":"1.3.0-next.1597359729750","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597359729750","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5y2rT/VbIJLhJdvzHT08HSvCwVB6A2cA5as5xAtUJP3LRcPb7vM1QCnO33hAH9nwGzKwom2WfBM76+QfqiN/Tw==","shasum":"47f8a02195fb3facd0453632e32399bbe5049945","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597359729750.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNcZ7CRA9TVsSAnZWagAA480P+gNWSF+3tR7i8Qr5RKbd\nhJL99TSk1FLMHvwtPo52X9DYHRN+nwTWTJbDdGc2LOOWnF7TOeuSdUBrNrQE\n6izzLDwTX8VX9SQhCoezz2dp5xSa7iBE0hvaUH9ElJv3dL6Zilx2CTIs/dOY\nnVFVMbBjpKOIIJs1eYA670DvtsONw8avctPmEGAUwjAgSC5nKvyP+AcmxGJv\nF47i4T97wjHAB1z5025dFGEsILv2wFgZ1TXxnjmBcHDTqofSDk4xvhMKJdKN\np8wxSU+9F59Kj9uNpQ3MIcQ12hGGPHe8KHWJMvrk9hi91s1UxnS9YYOa69ED\nsBTcITKnwRkJQpuYqDmRO9nXhOoDEwZQYAF//yzZWb8zm4SKa/jy1NFDvLWm\nuTumWcA5PFfI+pPpuLHnrnB0CiddaUOt/aMsOcpVEsCg1Y/yOBRO5DnyRPTu\n5fhniWXkN3XVrhIVzqGf717HIjZrMWE8SxXOmaQzlbvWVfDiX6KrLRyAGOFI\nbIkJ/EqJ1IR2NTZJrs3LgZbzXBeR4Ox72Z1Hd1l9ZaOD/z19bhUDaUIk4ZMB\nWUpeSf3AVnjmoKRB9WDbp9ffWwzQRxMqtmFBxlUB2Dj4ZdQm1/RlO/EBBNYv\nYj2LRbWIK0Vjv6eOpGFWZTddnTTJ0pe4prjiBWbfBTh/yn/V6g/DrrdYopuf\nZb7R\r\n=06Yl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjcTz14c4ZperKohKYlFlAwuqM4uDMJMlalQHrNXzTXwIgDEzdICZy+RUMxhXbwCUmCekycxDmmgfH3DyM5N/Eztg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597359729750_1597359738652_0.84305207905972"},"_hasShrinkwrap":false},"1.3.0-next.1597362725462":{"name":"playwright","version":"1.3.0-next.1597362725462","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597362725462","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-SaprX3YmvJZikjTh8GmvM8TLtcNGZyBj2kY3GUNc9c/1uQC7Dfia3gbM7YZ9lfqasL68YD4XeSJ26cbImF33vw==","shasum":"8c9f3da9e33e4b225366be958aeacaef8e6e91cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597362725462.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNdIuCRA9TVsSAnZWagAAR9QP/i5r0SagiXbH+xjirlLd\np8/lFwnO5pp6bGnmgbuHiZmGgftsSrCXs1pjdEwChR356byMHOhFvUBEMLc5\nOHUTnRkz7PVMJsLlMKQ5Qsg0tIf3y0A4xOyfDv9PvqO+1FrrzpQasLdQEisT\nx1fk9KuGhhiF54fC7xZrWEbGJP018IZ78eXjhcbGecgjwBik0JN7g2ruiTnm\nQnbmKwhR/AURmi5ACmH+M1DNhupMbaYnhqOiHmgJg0z6+4gpF5vhWGodhInP\nTA/qWyiCI6QR0GPTkpNO7aFo4dgcP2wdPYPSO2ZFzcf+S56pa+3cAeAkm3/t\ngYPh4Z8X4hHweGZKFKNPSpg6SmFMhhYfrlS6F+py6WiX82SAEWBbPtDUfcRU\nCSWKcWA8ru3o9DXmbdVsvTP48dhJPXn0StETX20rCfsnvWslAOweukXfaLTl\nDFc4ZRbgmwcxyFLzFR42Db6uxjdvEFFj5XJF/NHsMRt4xEU8Ls2Cb8iAYmaa\nrUXbEIIKSba+mq4T7YqXuYD3GZByNpgpkGBoSnF3q9EHueoKreBinaz6befg\nSeExE6O1q0x9uM5yq07MRPCkR36KyL2jG38nUXQGXa3VBvoF9I0vr/2DyoJv\nOhbATq8DNqEAwmENJjYUUf86tdZPEU0MEzT3ekHkNv4Iub/enwd/VqLa7sS/\nvLsF\r\n=pNDE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDFpM2Ub8WJfjLNnDyqP4uagEBdbw3HeuY1yoUpzyFMFAiEAg9vXJeIikSFyCVULb388lgBW78+yf2vZVPBmlmQrDVw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597362725462_1597362733436_0.7133834361215845"},"_hasShrinkwrap":false},"1.3.0-next.1597365285842":{"name":"playwright","version":"1.3.0-next.1597365285842","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597365285842","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rDwe0rPHMKt9oqMszMXLaUQYm0HNYYl+6Bv5X44cYzR8jO9vWJwpl8gnLTbhnlQNf4U5SeUR0ouTBAwRdkxkVg==","shasum":"9b8cf9a160d6c580001cd4e39ffc7b152be9ba54","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597365285842.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNdwxCRA9TVsSAnZWagAAYdkP/jfSqOR+RQGNs8u2OEan\n5MlUgxlPkCqu0Xewrg5JxElb4uGY+i9U3KBdmwn71EG5ud+NqkX5vuAPFJ8X\nwcLUYBcaPnt9q5IuU2Hoe+g1mqt7bWLJbxWJY6XhX3mDXZ4oDlKCRO8d0HOQ\n6AGMtRjuJpv3c9zMP4ANAZo9DxAi49pLYFPexX9O4nY/8/m5Wsjc3vhxpSf0\n8T2XUrg5t40im1cDbJU64PEsoXZ/DguPy3MmOzOzWpiJc9nYzsHCRuHnZle5\nZEduLHpCZpa+qaibElopRiIrzTDGZw/fMiTOaPNN9jUc/drnw+sC899FXvbo\nQCjnzqFVYiIs6GPwkh8WMnavuzh0PlE9rBn1IF4TnLizM+lgNbJFnqIT5v6P\nv8WVlxUlb6n8wdfx6T6uZdZOreRZoXk8zSBimxIJTlFGEfBEsKxzf79fmxfJ\nB7e1osB2Mx75eLGxc+ZZa3Rxd2GIA6WvLdv8EpvyJ62JQX5GKO9nbzxvMfUr\n6B75kZUY1E5hYUHdk0tCR41unKAJZ43funr2x5PWxd0X8INsROyZmJZMD5un\nAnIkOTRcWOolhK8VjMc4iyUAxEmgmJhaA6GHfMVtJ94cIoVOUwpmSK1B+vyf\nmFHjGUwP83rL+qoKfWg0JBvM4E/ws/RVhMk3LVI/wMK08AIzCwXcZLY1ZEer\nQGbl\r\n=b4rd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCd3zRBEXC0h4WgzJOu7S5tvuACJF79pTyDm/VcQsZfWwIgeL7oLaw8lMIjB4KB5BaM6PtXDV27IJRF9QjiaqHBc4Q="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597365285842_1597365296717_0.577244208553287"},"_hasShrinkwrap":false},"1.3.0-next.1597366968997":{"name":"playwright","version":"1.3.0-next.1597366968997","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597366968997","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-52MCotUvK7iw7DElxovBPKVGjOmJ1zdre92/E71ErgYrA7r08xUr3gMEzf4ie3HyFLKStiwWauWczwAVc4+Ayw==","shasum":"5f7ccd7b679ef703fe73dda961853875eec2f3d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597366968997.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNeLBCRA9TVsSAnZWagAAsgwP/2keJ/QNSfOQ8LyhML6t\nO0c039LW/Xyc1QI7GH8DcKXQYvalgLo8biejDB2f8+JQfNFGUOiA8wvtOuyJ\nmb4wdSKDfI6s2Tg96IXNh8PER02B0sVmUnSPd8P4zZAYFb1+fEadMQgTH2Uh\nSihLaoeLCCF37PlkDHx4UWWR8egdwryYJKTRgptGNWwm5EqdcEF2jRbm+gVT\n65SOzj3UIIiEW4zAD+R9+k+licokACgfWaeUh9t6BejZg1ir5DngnfZ3A7OZ\n827rgpaMmUpCRaF+EEzg19FRvFu3q/Ve+Ue6W3UrltiFgrBZzSmer5Frekz9\nma/fAl1Y2jkg3jgvD23c+zVEvO9ktRigVLF/qyxIcIvB3b6X3AUscLcNBJDG\npwqZwRzKPKWZC39ILwZAzyEqJIwWdKZ9VXpaqRoBLI9vVNKFtN2plTn+gC6q\nTi31WPOvOdNG/dqMmmIj1Zw7zfZ0ysdWd8nSw7wUhfrmW/j2inX6FSdkVOZi\niyhf6MwH51qIX0Xd06MbMu6yvOEffZvSY0fRfJqmBHxOfOFHEVk4qpO4rXqn\n4kLvTgps1ueVWsc/bRnJIZD4AqaEDDOSKxfrrqMX8Rv3/EZ+60s/Er+Rb/Ys\nulmRlJrVp+X4sa/HLWMjgdc4lbailmIGDwVWtEvIsoHW2A+3L6ejhIbB62CC\nRYi9\r\n=tNP8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH30JU18zvwiQ/CIMjcJpnfwtYplFCv3qspgGM9F/+GcAiEA0dqqnx8b+oE6ml3xJECB6yIMBbKROB0D/xuSg50Oa1M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597366968997_1597366977154_0.3613004377712832"},"_hasShrinkwrap":false},"1.3.0-next.1597376235955":{"name":"playwright","version":"1.3.0-next.1597376235955","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597376235955","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-H1w/KEM9B5KRCSh04gX3wTARV7K1fInNxcQVLtpZ9aqYuHsBgjcBfG0LoRoCA4WUSFEUpJpe4VDDMjMDTsTmcw==","shasum":"37f5bed429a354c7ec20d52684c6a82c00625548","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597376235955.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNgb1CRA9TVsSAnZWagAAue0P/1ar28PGDCdwnlrcdNIG\nZPCewafQcJeKQcuxDhGhv/28HMxqBEk0wJbNlcxp9zUzoewciUtaiLJTby2D\nsomiVo4NolJeqmp8txcwR4mJwaL4ijxiPUKRiSd6ve2PP2f10Ji5yP87DU/n\nsFGCZDc/1gTfekEAfXq19d/o1N6LBkvvYFytG58AQ/d3IpKzLYbKRafR+3HS\nWinJdvo23fQOqh5iXN5Iv7m3ZnmbUUiLxH/KffCRLLQpY3wjP35V3uE8Sv1G\nP3llej6DbsTRzrRKZxymGSm83NOoWHKLhyCRunn5fRFWDjIexeRONH+NP2K2\nQCc9bDdlzbyfOQCBN8HyqC3GzWzPKr9K0exW/jQRmjpnwsnp4FeM1eP0D4jO\nXIbcgcRaRcyCrjUfY7XsGdS0wAGfsVKBdY//Fqx5CH7vxXsGFXdMUYqzdilt\ntB/jmPAul9dcVuVZLgDVulBn6qiM3wDiHS+7uYmniSFFxTSAU1c/V2IEaLj5\nC3k19X8EEiGCWL3RA8USM+xfSf7qTop2i0JvFQpQQRdfQ8eWDvhCrOembNqa\notR7ZbX4oYNl6AQeqEl+skgwF5AtayenSYChHHZ8g01zsqVsOmc8Jkj2VohK\nt50gVhbO3ThRTdO/vfWAskccmdA+ceU6Wr7/JD7R1Z94v+3iM+zUwUK4GZqq\n+lD/\r\n=jnQQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvs1km9e5PM7HTF6KwfiVxsdSTXDwWFn8jQAcLiHDYkAiAJn3Mf9iKoD2ja5hrSKQml6Yx8bNzqhAU0TkzhIYEK3g=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597376235955_1597376244889_0.2088876603131602"},"_hasShrinkwrap":false},"1.3.0-next.1597383304884":{"name":"playwright","version":"1.3.0-next.1597383304884","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597383304884","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tRw4Or4ss/QXK8RjoRwQykfes4CtRPAA6A0gqcNGtjDnwNff7/oqaWAif/pNZtunLQz8TIZ8SzXWz5kRhA4pTg==","shasum":"81556ec3762d5739dcc0247174bac3dfbbebf7c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597383304884.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNiKUCRA9TVsSAnZWagAAhyEP/32F+16YlOzV1r2Nyo4f\nVOWkxd54dJguA0EPrik793Lmody9UCrvA3a0GzlIXnrtprWhPwI8rbD/QN6n\nGRMXSfZ2cg+JRVpCs6lEcNGvJJCu9bDCI0IhtJmjdeNLqJrsEH+YEIkoC0cH\ngmU87wgqqHZog7jeKcq4xND4sAhJkx4OTQWMWhDLVP3y9ONYFsSszU9XZbI4\ndUyfOr8vocWM5k8aUoFWb+w5RKabrmcWxdN7H2mGk2fXOqLS6tawXk4QfngJ\npqP5ez5Uq3DE3zi+emJb5n0oz6bOWFpa5FGu7dcgitBAV9LpesenneX+x38+\nIrTJ+2JJsLEIzOuGqZp/uJLd6dJEzOZ6l4zItnBas/aADYtxbI9Gtp0nstKW\nqy1LVdU88rj2wculnfeeulmzEpIdJSwTj54QZjXlnxs1/6X6GPS9dVDkh1za\nRrduVXtK5lZbVwgTWF3CGwM0Nor8mD/ehKlCGCU/VGdiVrD+NKdS1SARFn7h\nYp/cLrbHhmmBD/4NfVpc94VMSzE/aHl8+M4PnGIsFvbrKxDdttr0bFj7TNbk\ntFOZ8oRJX/7mg5BF6PIkl1sA+881uPVP6/MKXdxjdWqArw9+uO0zQ+k3oz3y\nH/31xkZEDvCzcUCy7rRGZ3lc5WZCV625Vx3AiFW0/oJ/FYty8mQ9wEMtCFuD\nwu2d\r\n=7fMZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICSF1xqnGXxlsXgUke6Emnxt6PcP3cIUcWrT1VctNYdaAiEAnlFBrC6ZojPBCsiTqMTP4AZeAbM6KPRuH0Z9LffXlCw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597383304884_1597383315854_0.33817402641522754"},"_hasShrinkwrap":false},"1.3.0-next.1597383464827":{"name":"playwright","version":"1.3.0-next.1597383464827","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597383464827","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-7UF4R8J+CecV7XPgOIyWfdcVClmNInHMjzlYnmRJoGXArkCjoWqyrOncd4Fh7AkCO3zpAqTjm216SYQwjVwpiw==","shasum":"7bb30b513ec1071d5d5d800b06028e0beecc53b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597383464827.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNiMyCRA9TVsSAnZWagAAJUcP/j5Bn+VFCRT9byYfrU/S\n0YJPrfAB6GpkTOYvl8UliG0KC7UzM3Zv6En4MVb3yG1c8vM3/4/y48oEQjWe\nRJaSIapV8JZp84eK8WLh8ujXLMPM+mRspj0aJXrgRggTpm9li5WjqRixmGTH\nuUTlMrDTWJWlaHp61ZeeGmqEFS+ZZNrYPtmR70f3Qv6swnsG/zzC4z9jHsfc\nHD/So74UeUwhw4RPP1QMxM2Z94IMCYmKlAR6LylzKFlACsQJztxE4bpYFAe3\nB22NTDW5LNnPYfDvMBWM0L9CuyQ3YP6pgAFU+uSTVKSEqsMYEigIZbaYMw/6\nb9QCxQlhAeVfiNo3mCrTEc4KjNn4la4dVHqpG2DwjMtAqvV3U1SDIimRFoE2\nxkjZb1WcBg8rdQzQvbBMWv5qTs/YKr45Q/PVBwpatwSavgee6L6v6rFG3Nz3\nPKr11+LDTLuSYpAO8Sdmlq6EdlnW1b/LWr8ZhkEAlUQZpdCqrmmAcjOd/JET\nk3b+AGg3dEqXWsC9NIdhrcYVLi6wNvZxgkLjj2KwnSfNh4eNgiRplnlY3I8V\nDLptSBHkdkP33kpTNRp3BVhpHRnHnpSKFi9ramESPWugCM2p4JHZQhhoFZKW\ncl2nB6ltXKl8REcVFw+07JSXgAcG/I6PX50L2Mgdxnt/6ht1JmCL7l0x2FYQ\nAB/U\r\n=V25Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH03wQ19SG86/iqYPKeLr7nwx3/eeMz2KLmFOdz0yeAwIhAP/0Qsyj4ebFU9E9ddGQzUq7JZpUsmswz3qYj+btpTCN"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597383464827_1597383473967_0.6814696970147367"},"_hasShrinkwrap":false},"1.3.0-next.1597385788203":{"name":"playwright","version":"1.3.0-next.1597385788203","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597385788203","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JJaE3ckQ7rDeK0YeTkSPO7PVwCVJ/FFKBK1wPBlisi1fy6RegIpBS7j1M/m7Rcy5wSf7Nsjza/xUvqSQtP2UwQ==","shasum":"a492cf4a9790abe90787354760778e92e545139e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597385788203.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNixFCRA9TVsSAnZWagAAtfYP/1pKp0BJ1qzPvOD1/fVr\nYtvgyTn0aLs05Kv/4uiEnYMazSpyvcUE2VfkG6HEmu1oJfpI0PS60Pwrgzms\ndBWh+47Dt8dHCykzB1HbQuyj9rBMqb/QBf1Ob7pF/huyb/209Wgbtab/NiE6\nxPl8+EOHnjJymovZqoM8af5/06glsvnZCapjDyz7wrGEMDcpuj2qwGNaoDcR\n1xiH+HK1XZ5LShii8fF9AvA8Uq0Av1HTw0jyahJiHl8aJTkpsw9s47OPDkMe\n7uc0DLP0VqSgcivgRnrxuq2W2CZ5kYhLX9d4Sq5adN7hahckmwLOqm4hZ1uG\npKdx/F0RiwtXjDiOJ3rMg7bgPKGP7vFHotws+CvWLlCY/dx3flpz8d1wposg\nzZO3TmrZf75jaCjFubEQNLeTpn8Q050G/CWBXRTQq7hLKT/v7EqQFdu/Hw4q\nArdwidNuWvaqBQF0mG6DLUHFgzHOiiiGabfER2JZ2KtE5pRezdl7QbYxcOEs\nlYRP2sA4yo/gOXOQ/afAEPVSSO7Vx/NZ6Igw7zyhI+AqOhUmu+/JyPpXnxgT\nUgT3P8RXUOqIIxtuzBnWCclDZ0FvmzUdru2STLQ6IFrXcyf8RZrYylu5630/\nZjJKWgBnq8oP2jzb8JCPJ6pzpobxBoiWO9Wkv/yOcuh37lcaJeW3IbRJ1x+z\n7Lk8\r\n=Aa4v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsnhvKhz8izCC2uvkpzMBBxTK0ageoOtGIDPTJbFaAhwIhAMjBcFhqNm76bYQCCk/8xDylqADHbRXWtzIWWLCHvJbx"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597385788203_1597385796997_0.254457139464052"},"_hasShrinkwrap":false},"1.3.0-next.1597385990000":{"name":"playwright","version":"1.3.0-next.1597385990000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597385990000","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-7GSy/2TX7C/EHM0n9djDPr5UJ6YYT7BzvfMVz/1iQhWifzSNa4Tub+b4hC6by4MF99Pi7lQTFy5JpyjDs+9O8Q==","shasum":"99fac90ed0ce8f7eab136c23eccb89724be68608","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597385990000.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNi0QCRA9TVsSAnZWagAAO+EP/3F8GoFjp13k8S2jbMnS\ns5E4Vo8LnjgAhydPi5ARJyfAkVsJtcsYpxCNym/I3RZuZo4siUX2VEG+dt3m\nZNpX14mL7kap2SvszkLqDEFNxqGpN0sW2ofBqCmjWzi1GgypLEW1bGX0MNDk\nZkwuIUDvR9Sxj/BU79FhiLqMdw4Bgh62ep5ISAyc1ed2xJksWZnyxn9J7Yod\n4F1MYLzrf947EKlQXOIclluEhsLGdIettHX1jrjfz+KUIDWFb2vpPo90ITrO\nDkso/m4sJSlCM6utqUgZB7h9rtHq2tC8d6Pmx95yeWDYJFDni/kELwfVnKbp\niM2/9KO72t6/TUOXQdsD5Sz6+1HBUu2xiF+eE6Rlaq9Xg8VcLRPBx639cYJh\nLMYSzCiNJfRKdduS12wAeIMJ03WTP6twPjQgpmll3nX+fuvx5pohGn79nt7P\no2i4yhCPJR86sxS5dL98aLVIz3PDY5udPjb9a5MqK+6RevNSaNcD8ONpmiS5\nWjENhWXGMZ1ngNYJ+lN1jVROPtri+qkTwZxrjJvqszJBNxXLQ8kLB73xcxvZ\nXsf6c1l8Tlj8OohZDTqaj+WJVwihjLKQs32u0aoRA2XSwcCMht6sBnmgx1Az\nOI9/eKg13t6DvJhmJAv3mDT7mOC/teLrBu1senGPloeS4l5uUmgk7Pw7MfON\nCVFL\r\n=uRPP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy427PsCg2SuEaSSZPoC3vLkw8qpM4ZxXhmrFCq0qzvwIgQOZ7G1lKzPS9nldspjJHJp3PYDM2HwiNd4xEom2CwIE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597385990000_1597385999811_0.025196176875734944"},"_hasShrinkwrap":false},"1.3.0-next.1597388401501":{"name":"playwright","version":"1.3.0-next.1597388401501","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597388401501","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9+jdx1TVIyF79MymvbgLBL/ESqOAg0nMUFuTxvZVGETSapFrlqCF0xE9/Zjk9Hkeb05SvvogRWf1KqdGbg43Ng==","shasum":"0141f4f6b726b5384934a6e878b9d57384a259d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597388401501.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNjZ9CRA9TVsSAnZWagAAxykQAJfRjzhRumJzAN2kIo/W\n4sr2W9BTpv258rNuDw21BRAvNms2N24u6cL+ghydFavn8J4HOkZa1rCsQqpO\nPOYCLyDVIvl7VDG+tHLJrDR+j10Q4HItMCjoXHlYvhSupRlZVgk0ldPS4O9i\n78Kmz+WR4c9pNyARtDbRrbzaoIDLIdyJv9OkSLg3NuvXaEkcJJZB5NkEsdMj\nTJ/83/2mb17R6q8DaAPLhdzpEuF/UFdwtRTkpLvHQlaXwDEBJZUu9MzVceso\nN907ZmEHr8AsvkreDShdRK2dxN6q7QDyF+VGTW8P12PMkgWIiD493CX3NHrn\nQNAQuklb/2fnVaQDBLar8M8sD6tpJSPC83fFkWQN+nrjf36ftgl0knFzkmZe\ndC3Y2yEhYERP0D1Ad/QGW1KcK3bZ2HD4R08vIYpjK+uADUILhAVoUhKVyqqx\nU9FriODAayPXHIldspn0Sp1QI3XU0eKoGaZIlQ2it3YMvDclgLO5f3+F5yb7\nFR7ggILFJ076pc58UB0DsdyDXurvYOa9Q5ua0+Sg7MlwgK1Foq+UfM98nljn\nssschGlp+gETibsNXhbWP0Xc2xWsA/LFKdQi0ax0im8vNMGirDSURk5MHe4J\n/0a78UAkgy+BVRlASe5XNmJc8fs8TBiHrhMsvpk8Qt1JmdFfc0O13lXPSGbm\nTWJO\r\n=eA/j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGHeO2wVRJvUL89YvO4e5+bBDZlZFHNcpMUqkmU+kzHCAiEAkk7TtUOpV1ug0JbmBLPd82DP+0vV5ki/xewpcWy99Hk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597388401501_1597388412845_0.0511282720254731"},"_hasShrinkwrap":false},"1.3.0-next.1597415102952":{"name":"playwright","version":"1.3.0-next.1597415102952","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597415102952","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-MRQb6ICQ1FyuwNwAzYqoLaKvJQVeF/580c5zjCZbMs1dC2R8KnY2k2y9rkE0IKxSD0tsbeycZ31TL4k36lMgaA==","shasum":"5b1429cd9da9bfe86d238dc3e4e5d1e3fa269439","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597415102952.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNp7LCRA9TVsSAnZWagAAWTkP/1KjT8KVpvveDl6Op7xT\noQmqdATIFOiGAcUbQ+0Mc1KoFL8yObH5YoncTRQrR0oND/AUnxQt2xzbQkCI\n4ZvJSB7SxZbxpEH8MPFr5YZO0W7hzP0FfC/WxDU4bQ3TlIJ3vu5EblEUiCcn\nGYhY9FL4t1A3ShLQU8YUbSHI3eTbm/5xbPYuXEcNdlaSPrCp7Vf0SmMfAGJF\nFc3LiBh0UXY6R6Ou8leQwznX5Lofv1Xgmn9EIb8bKRQJkbzPJe5P/3wFm2Jx\n4mxWP4Boo6g1vkDnHYEPXWkkT8BAo3ir0EtG0+iwJW1T2d9irTU1pp5rYJ88\nk2XkvLO0JCLk4Ovg1G9JvTpwQtPudDUq3a06FjQTpjJDUvFy/vrngfReYdjc\njpZPUZ3uQrXPDpC1XLhLb/2eWX9F5BxpuXzVevAkjC1GshXDO9FSZhMQaa98\nALb9Nbskt1aUo8GTsj+Bb160yvHNV6PspLxqQ+MEDGLpWNexAEB+vbLyzL85\nQmb3z781ENncDN/Qv8USQcEhs3VOJN/XP8KFC6ix38Mn0ByWSvzJor3ZTsoE\nfWcNLhkIP0kj5+sT5QfU3vJ/HYOg6rlPmninX49QxS8Er7UAk5MmfLUuDfgg\nMgOLYT6x/C2CZTG+ThiQqyJKyxncHZsqJPZ3ZOikE5cDK8KkIUiGDX6qfwHt\nLQML\r\n=W4cU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHe4XDHl7934AQKp7MrOe8WP1AvqTBX+hTFAMQK23hg7AiEAmdNWoT7D/hlv1CbotZt6q1mOpVmNy3sE1+vldjHG0tU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597415102952_1597415114722_0.1418311456810486"},"_hasShrinkwrap":false},"1.3.0-next.1597415431708":{"name":"playwright","version":"1.3.0-next.1597415431708","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597415431708","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-GCueiiWju3B5seVPry1XHagpvif42LssjFBAOjcuc4NMb5QacxAw5SyFR/V1zez4r/5QP4LehOgg8E3p2a9NTQ==","shasum":"a5d920eced44fdba2d1c8e5f2d0ef103be518d8c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597415431708.tgz","fileCount":157,"unpackedSize":2407771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNqATCRA9TVsSAnZWagAAnkMP/jYcY8WDIRyQUv9Hv8WL\nqwnhJdpB7uL361NZRxaPUN3sbzJxHYwcUMegM8y8LiaTwx3JRWG+pxYKWtR2\nGpxY2fovZAIOTnJZMd005rq4K5sOLhhBpKdS9yAgMidjHUyPm69oVCenaimO\nfHGs/x2WmXpPMYfHpwra2ILfmOgXS/xmz7FuLeYrr+EgxwVbwgBHGF/p1rcw\nvH1UDt+CgxQVSAbVuDWQNOgQrAlO/FBdOWPM8TtMrXJYbPyCOcNpRQ7TGf/C\nzY604t8nmX0k+YkaHAUBljLhmOjB+v4h8cTg5p5x67/YPmoFFDwO23cem6vF\nSKjS6UbZ7EA8nhzCFYOrBqNvKzJfLmOdz9678I5TrMM72fzWWAUB4B8uyrdK\n1wdKoULgu5lgyfcYGSsYq1iH2hjFfLd+/LD9wvlU3FD1e2gxT/MRzvtTnuP3\nJKB37TlbjL9oTKO4LTZlc5oQRIn/CwylHUPT18OrdKc6i/yjGXB1mOx26bCg\nqc7z31C0ZOqhnFJW22cFH0nDqRM+0On8NAUTJhrMrrtmPCcqzHGWV+MGzYln\nLzhyrFw+w1IAA0bBgeg3WUepnDwV1E0ob/QJwNhUeykeJqth4hoK10uijerW\nPwrHUvux3RVZgRFp4sywRyIuINCR2SXlCEniejitWE6IJH3kdaBAcyqzZU/6\nPRdB\r\n=mxhG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCA972r+QrKNH61y27QlsL4BqlXRKcCSqfNGNp1Hk01bAIgbxZ/w7zkQW9P8xWZ97yNc39AmubhVSeYtUbnKD0bM08="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597415431708_1597415443020_0.36487913580152576"},"_hasShrinkwrap":false},"1.3.0-next.1597436476908":{"name":"playwright","version":"1.3.0-next.1597436476908","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597436476908","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-G3wvQ37qKMu7Tp9Ow10wVWrKlnLlRoW5034cBhpluxW52Tc8RvaWbK1bH397NK5xau79xxvu4oH90jLdqIbSYw==","shasum":"de5e4bd25444f6da082d0052d5fe8071a5c23904","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597436476908.tgz","fileCount":155,"unpackedSize":2399634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNvJJCRA9TVsSAnZWagAAqFgQAIYZ10K+8v3hCgQZf68D\ncLfs+V9AIVMVIgOq/LrZmpdYqL63hNKcA+VMgn7AW0ZCCAHmulMPYfMMRAu5\nCL8r40mq8gAvnhr4A3/Zt5FhXSuZvcYVQCBZS9SHZRzxW8UnLl5hoDfybwiy\nF+2+2WExo3NgvWF/8OaEwtD6H936iUrU+W5KYiKpjBVr9vJpB/gdU7r83yhB\n1CoP1RHxPQ3YOo8gJlvu9bQ5L+D6kr5KGWl+YDwEljIJO5NMhrMTfAnyqf5I\nqqelddYH4vhWJXDtEhgSs0BnJF54zb9lAZO6CQR6HjHcZ2EoukIAqIOjS5NY\n35Ro6HsNCuA3TV0ZYsxhVeahxF2/q3I5/ZK0eZ4nKMkhqAcoq4OXtMhWuTXL\nSV8og3DRGVHRIPeBcneECBjYj6pbMbpg2uwS++l1tgxA9+zanm50UoMtsh9y\naq7f4pnXJcOVzB+sjL/+GOYvl0vog6z1bb7KGgjQuw6XFH7/uacsRiqBM3rt\nYWaY31Ml5YRTNWW2qddH41BWQFraS1ORy1YADakvO+ks3HS03gEiG+fQuj/D\n7IoxMJEKz9kEGzFL/PfV4rIn5YCJ1kxcvBs3h7QezxWgPOHDVbV4aujbjXzi\nJAlERqVOWxnwmiJfX4AR1re8e39es9qrukgmjWXm46A6FyQzSBfTRQ/V14c8\n1Gcm\r\n=fjDl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdq9q9wOlaO4RT5/Fy0Clfadx6v3iw6iTskmKmbsjq+AiBs5uu/X7/wXyzAlI8+HzFy2KLDeP0CuOIsT2r6+PUuVg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597436476908_1597436489072_0.22152103573928983"},"_hasShrinkwrap":false},"1.3.0-next.1597437873160":{"name":"playwright","version":"1.3.0-next.1597437873160","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597437873160","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-zNDlVCyyciCjhttn834cE5fu2yk/mDPRDCVaQlVvF/Po2VR+WJk7UicY6fCq3EObPs9x9gVMeHslky2O3nkR+w==","shasum":"a77085ced208a7278a0073c4daec074f1a6bebc4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597437873160.tgz","fileCount":155,"unpackedSize":2399634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNve9CRA9TVsSAnZWagAAQjEQAIa7cm4iBMZaQEG3MgH9\nRj7nGsJ35H6ZuENvoYtTt+XReGSopAEbVmlf3PpKtdzeHrHs3sqLsMM+DtPM\nEqGbJNSUWvs6zeoJ+7DkZM9XDp1fN0sKCbtVFNYjcMZFfDmE+N2UAeFAypem\nPAk7MBSMCr3s4M8rPQekP1Nc/uVKtueB3KcxLmB4ySNe5bo3alxWKZ0cv0jE\nW9XVJkXrwEr54gZZpsxevXebEYivKDWab6DVf7i40dCznrHud7s+aTykpH0G\nlxMACZT4pDXDr9XeUR17GEHlc2nXKKcXg67T6AZ1IsCdiu7Wd9reugzrNtQn\nnrvYs4fwVknfxjmFKoNPIseXEvvXqhOjkrVb0MOmyPL4nK0jlpTqyYpohTaQ\n9J7XtU54CjExUywj4n0mY+v0OZbbQm0LvaDWReEuM37JdG38op9RqMMs5ZRr\nyvT8/LK64sU4U3VlF4/alVtzQef+7tYh3TkY7tjBSSnKffWnmhucvufL9BWy\nzmhxXj7py1+HcM1IViFe9UaZoShI1jo2PHETXnFeGE2OO+y8MGul2EHobdh6\n2YrKA0opFr1W2uLzX8aGWenu1JGEbK/eCtOuPaRj5qS+erjlkfs/FgU4Dz8M\n45UiQz02OJG3G90eIslPNNfvSTlvFqVLj8hYgdmsYWZzEF0pUaXUnZCPzqNH\nhBPb\r\n=djDz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDb+RZsm/st60A8zQvA0O99HVInXsTR/oz5EHUTxWOQOAiEA2v4xbvLJfA2k4uLjDE6M5tnSqJubX0kCIe8DUopbaMU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597437873160_1597437884360_0.4804521171886311"},"_hasShrinkwrap":false},"1.3.0-next.1597438127501":{"name":"playwright","version":"1.3.0-next.1597438127501","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597438127501","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dhVOXeV8c/kqMRMhd3ffGAYQmxfO0tu2PDka9PAzFTnZDppcUG5ox2tt5YvkrmUEEuucBCZ8VVik6a24rqfqnw==","shasum":"63d477e96ee214f0c890ef07cba16e185dab9efb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597438127501.tgz","fileCount":155,"unpackedSize":2399634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNvi8CRA9TVsSAnZWagAAjOMP/A/IUVhs5n3B/34mfARm\n4ogFz774FITLcZPwBkzOMgafcY8P7lD7Rb0ktkLPcznESl67+B0jeAnoFGUS\n1+frTDsz35y3WjZgNAqo51ioFnrR1Ly08F1lI5D/7NrVLIpJbwD+xy2UxUPk\nrKIccIFhscTXli70NQaWwxg/xbGdctCSkmucC15airgB3pCkCf9AGPUi51u0\nZ26DfHTXMBG+yPDpKHomLMNkT4CoyFBheChEo4u4EWM9urrYJKeYM0VfI33y\nLioe07R0cYIIA3r8E0QX+u6uCMT+T0nlATcoBooVIVrLzwslvmqDUxmiorne\nmDRPj0m08bJI1wiAouYabHgx4u4pUeRiuGhRMKSVVRPwTG35dAn5UES9A8zF\nou7jHUUAGFElvSStxbaQn4Fd/hUvoq7NvKX4lCq/u1wW7NsEumYAnUWS4/C+\n5y1hMZM69khlq7hCxswDQS8M9c0EUvk28Mp6EvMfPcJHvSyNFjEXZAb1uybV\nMK9tppbZTyvVtoy11k0/EYkT9ghkB+wVnGTx0WxHgZfKicOeWtBLZuoRDVl6\nIW4S5FpP5jNOMeHj+cowO3RrSt2HlaK9sRHFYl+yJu3EOGc853XBAgZhTsM2\nR/D8ZahLp3UODaTZpOPWLVYirevCRkFIiEqBnnyPp+VkdwfmTR0UTI5CsCiv\nPbRa\r\n=ovcj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDysgoXAxrd1N8XFOmU9y2BnIL/OojSa6VySWTXqd+PcAIgeH4j+CQGwReR8s8e4TdZVPxZq34tl4kf+JOIjiGXg9U="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597438127501_1597438139488_0.8052947639725201"},"_hasShrinkwrap":false},"1.3.0-next.1597441825957":{"name":"playwright","version":"1.3.0-next.1597441825957","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597441825957","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wP0+HkgThbS2Hs5VzrS3eeFvP7qxE2LIe/PSkGG4MsfeedvvloswCc236+i+e3IdLQT+3iNNY7RZqP+PReZNPw==","shasum":"d529965e11ee618be41961a60bbd6b424a3ae39a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597441825957.tgz","fileCount":155,"unpackedSize":2407912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNwcqCRA9TVsSAnZWagAAGHMP/1h91SNdEHD8DuF3nAu3\n4cohGM4K75hKeBoD8mMvZ+HzOI7eBatu5rngELXNb3LYBdPcY304m4U69vUA\nvbUxOs31v0IsaStEKi0IC84RaDsov81LIwvJXMsUv7xu5Q06pHh+thiNGk0b\ngpc16XIUiFWAGW8+moy1h1gJInH+LCGmrA/n/4yMVTMfZfTSq8f2xsaBUn2r\nWl8wWgz1Ve6G8wH2WdWr9vSnO9TcUTtVou9osIsgc9rkXXdMWBdiynKFFYEy\nzUvCRIuJuo99e1sdOk/JuBXo77+LAq+z3Ak9aO3SUtGimA1oEOQOE3vqtfSu\nZmqDNzcdlviBhLxIMbPgQQb+jHJzV363+oMdbHET4ZRSMotX5g3GvA5+ngVq\nQYUjxrMAzL6f2eFFKuB/R2B79UhCLDOF5NqxxUherv1fQlr4HxmxV2DM6Pvk\ng8q0PqQeRiOD9wsISkoL7Iz8hXhynu1Kk3/Q8Ge4gBrfZKCAKNRy6/ixnndd\nhm/djtXrVlDnSElxREHfAwF+a2wy/qclmSi7vrKlkKxHypXEqPwCVxVW48yO\n1ehERtMstpzZvkOQjNyDHTpEecHALkdWl13DlNJQi/5r+M80jwEIGhdN0O2Y\nExrp0yOGygP2meCbeznzT5zEoCt+GPoQUjKJJ057LhEQ5EczYOd7oxl4q9SW\nVRmk\r\n=n9Td\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICcBGISNyZKJroN8PjQAg6gdM6b0tYpQ4eElo+H7HSe1AiBtFBqiwXmWMrCc+CVrSqeMmkL5IBz+hm+tUUwo74MZ0w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597441825957_1597441834244_0.17877688407009762"},"_hasShrinkwrap":false},"1.3.0-next.1597449083429":{"name":"playwright","version":"1.3.0-next.1597449083429","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597449083429","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-LIe5QsCY/TeqdYH9t4QBgPOGWkaaVUu5UWMN9SahaCWArsfkJ8dl2mGGpjDvkVYG2C7I42nsuLrPhCzv5F3IFw==","shasum":"1328038d14c832a49b01104d85855855f36f0a89","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597449083429.tgz","fileCount":155,"unpackedSize":2407912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNyODCRA9TVsSAnZWagAAlFEP/i4j2qY5I18xkYG3SGKf\nDkFO3YUPQfzIAitukZ9bIK3toCWGQNCy/g8p3z/tV9SUyfVQCp9iFlPBNvRi\nPSG/XGTBgA4CvsgnDN8v1DDqgdddMpOXBoro7KBPOi5olUsX+/OGiZ1SogX8\nvorktrm0OaAhhAHNQzpFDXfS5/VWM+pEyzxCB7NegcswnszZ0ZLIYjneHwQx\nOuOUdYfeXbFuLtcpGvYtrcT0xuUkv+KZu7hkBym+aw/x2fRsATHsSnFo6RSn\nVeZiAm2CbFlGrkeFS1XhOFqbpwIwoq8JZmqKXXs+56oGdZ2sjPRLkNbi2SvR\nlFSoLuthjv6awVUjS8b5ztUq5iUQNaK/bGmF2GFjy44VPqFPs6OIpdW6/95W\n8dbR6eNCukd4id8IBu+seVaj1erQ6IOWcVlHNMCjifFHFee1umHtRiBgCUak\nLEnRy0KpExWbejhEWU2mc93S1d3TI2/4xw+KHlFQh+I9YbPuWI05VSgHTmlw\ntskpi5Uymv64tRuNkOcrE+hYTpsI+XudnKjRYPcv+vA4QG1XVs7+yc0X4KiZ\nIGJKFtgei1WMucK3sftMh8xB2650w5iRWtCOJwTkPPVmecswTacz2XQNt+EQ\nrQRLYOktuo658LaR601jswNXcopPe6HSYKLxenchO0xJlYnrC55VfaM1C5yL\nEt/O\r\n=OnPP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0s9y6naK4Dg6p2CiNw1TZFYrtG62XGQr3uITYVMlFXAIhAKxRKOOtMaNkJWtBLar67ShliEAu2n0OhmY+IdtAguu/"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597449083429_1597449091338_0.4945671722496996"},"_hasShrinkwrap":false},"1.3.0-next.1597454841529":{"name":"playwright","version":"1.3.0-next.1597454841529","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597454841529","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XkfF29I87B7twwJOQlVMLiz0DdrIdtnvL0VpG31svUFNDzv2nOgOHB6n1fh0nUweqB5GYCC2k7eAqfZjOFuvLA==","shasum":"58d4660155a1b0ecfa8f2e1e855a5c86537b1119","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597454841529.tgz","fileCount":155,"unpackedSize":2400947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNzoCCRA9TVsSAnZWagAAyiEP/0zn/VXrIbJ4JomjzP0o\nnOAeL4HZKekKtt2rSNVTSAPWzvPVEUKuZZOd/kM91ofSa1Z+zs3/4T/er4+j\nc/P4ZCnEV08qgAzsFztCk9J+0cRYf6HOPfAcaFEy/W4RjEOuLX4f+iUFqqPL\n7yxc2ZvJ42N3qu/liMnt2HU3ig0yWC6E2+pOgyspatJNBGOLiTt4yuTcWywz\n4/+OXIOeu29CYv0MDf5FtTY+u42W34frekOW1X36mVmXKU1SRNL+WEkUFGmK\nS83eS/XaOtbzbUlGGTUcfjY2E4yGs15ZNgFB5FNemXRF513hnigViWvxNREg\nBhW11P87PrJX+HE+mWwPQohlZ9RP4mER9ofo3dp23kCrkkOdyd4vTGNBoHXP\n0sPj0B8F7FGmtAw+2iwYTlUQrNN9tt9+h2DQsxnZqaUkEXCKNY5HuD6iv41e\n30GLG78ZiD9vU6KzEouEEhNN0Spi3Fmjkv9Q05iXvehs5bCtaxyY3VPyUlKp\nI9fujmbmeMl/xqdQLPdqMMDPkApz21yYva3Go2/oTBwz7L1Am7pQZBu0Lwtu\nGa7iCWaRZDwRBG47yWbY4Gux9qLMedmWkcQtqGGU2H2B81utpsKF9amw3tI8\n/dKfwioAwQoySgxxlWPa6DmcYKBom2xO2P7VA9feQZ6fUGcEJ5qo4RJrMskg\nmdud\r\n=rxph\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr9vBi4h8M40TvoIFupcz+FBNmjO5eAEr4+wU4Tl1zQgIhAPV2AQJLSp6dHTbsFN1zHfG7wXQjfwNqZsdfmi1AH7W/"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597454841529_1597454850114_0.6182406335874926"},"_hasShrinkwrap":false},"1.3.0-next.1597458795090":{"name":"playwright","version":"1.3.0-next.1597458795090","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597458795090","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XpWhGoU4caRm1YZ/m4BlaruOmPjFmpsJ8j78jkL/loa2C9bCjMkLnH6o8NO29niLxIILIxWDhby3SAr5AIbikw==","shasum":"736fa6fbe763bdc41056acfecd453e81ab722007","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597458795090.tgz","fileCount":155,"unpackedSize":2400947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfN0l1CRA9TVsSAnZWagAApmYP/AkoPcPRbNnkLGmhRymq\ntA83v5sx/JAhBRS7ixuXe73EntUPPSct2rBG2tpB8GG+f0o8D+DsvlarAjnh\n8cbi1W5pIv7QOz4+CVReV3JF+a2s+Eh4msfGTuMP5Qssgr9k3t9RX2Vxdkqq\nRqi/Ch040YaMAwgsBStvTsIx05FpQ7NMtfjCbW8dHqIqYrm/EOtDVXa3cGG7\nUY4tWaLf+yTii2qKsMLWapWJykjbFtvVgjK0gYaUyX9gembpa30bDu5c/1Ob\nnPI7hpWdzr2VSiDrkam/4p5vEF0WrKNY5yzsgq5EN5+A5pl08j1MjAKP14+U\naWFhVgcHBCXOPoxUu7i7pUQUvTjUQr8GcGt3znYnworuZNwJbJBdKQhTW2ml\nojKP8dYTN+zm6MoCokLvQoafWXC46H5mn0XoJWEe9QBUEo2au0ECepvlVkR9\nLzaiicxEqdO42zXZScJf6Be+xODlkL5D5q1X6m6qf0fIKYJaSPYqONz4jJIA\nvBm7DDLOFJdmV0KB7CroTMI1hT8Hmmo+bexk9hfzQEOywAH47Yih8HYAjANK\nipCb9a/AwOo7C3JIpi2aGWX9JfcoaQFFaQiVrl2Oomt3ltKkwz4OZFxXm5wF\nTzrcZTzVbqp6yoeFuzebd/7ebMhq3njq5T07rqpCaSwPIBy9FVGFmMT/3lTj\nox9h\r\n=JLWJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnmoUMzJPm5ygp33B1ovh7WydBMPerpKwNUFBouc3PcAiEA9w/ng1xp6qDswi0UU+mqcK9dKGyHBiLzmhbX+FaX/iU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597458795090_1597458804385_0.42531618843842356"},"_hasShrinkwrap":false},"1.3.0-next.1597458984787":{"name":"playwright","version":"1.3.0-next.1597458984787","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597458984787","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-93jIQuyPMF38EUVuwsZlchcrkJhomH9UbRda/R0sBd//FmEjR9Vsr/1RiBrwNaSazH4AmpcBr1dBACg053JGvg==","shasum":"7db050e5e8b46583c2dcb651140ccefd08fac157","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597458984787.tgz","fileCount":155,"unpackedSize":2400947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfN0oxCRA9TVsSAnZWagAApGEP/REwm0L6cDmTNCU0e7lC\nvYJWLwfAjg0sr3Da6QaMua/ubFccdBuP/dXJMdhz2Yo7+mY+qWwwDgrji7YZ\ntArDNkQuLErv1qDoNw8fM6Z8VEdQWFRz1Q7YGbWh37qhdUrAhKrRvvir8Vsa\nSEAo6KSH8SdpCFvLXAFmAotCnBkl1ocGXKPd3GQmuY9wGrmwgsX6lODfDtsf\n+c6iILqEVT2d8ETmvvclcFwVT6ThBoX/vvWeKNXZAkUMRYYpUNnuUoGW8dd+\njGxomofJ3y3UQlRViPFxhE3IyziPzg3M2zFrxZkwPh9WEtXs4XK8M7r2EzkC\ns8+VCVe+Mbwzxeftg+rTUdcsCi7f2YEAn7cunv8qQf7LMKozYaZCokwUFBoM\ngb2GL5fiofFIl4yGPYE876+z8w1JsttGY0qDkclMu6HN6Ncy8wlIkA0t0eIS\nKPyGfTKYBRfcTdcwGWtgGhEQINaWD4JLESLbuOMRSQx7ecoNM6JF3yN3dTQ8\nQvIYBFYbTVKbrDZfC2hywXtzMFfLmInflPANcdHWSQ3W3wenRdEzat07CYQl\nqjgoKP3mard8bQgRGTntGj6M71u6K4ZDyuhIlcmapPexfToSQzZw+VzZdp3w\nBAONUB4Xhal5HHZH2X/MH4fvRYwne+ACpA7QcZjd3zDSuV4+mJUeLSYVwbe2\nRvPR\r\n=BVhs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZOP9flubpdA8OvFMPt8z2P5bRXZxWRcl2m1qmyh8vZgIgeNmbGlOa+i4aItbqpmkI7oPVSvqkaYeU2tEs513g4VM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597458984787_1597458992715_0.4662796704520622"},"_hasShrinkwrap":false},"1.3.0-next.1597469285301":{"name":"playwright","version":"1.3.0-next.1597469285301","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597469285301","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-oOaiAO7O+67LFgXnbf4smNhe+Qjq+He800oXkzB4uoH32wXbsgyYx5NpHFI0c+hKQlPPylLFnzmF2PdJ2/ztsA==","shasum":"86cbddc199432f02fe62d385a5d0ea0107441e2e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597469285301.tgz","fileCount":155,"unpackedSize":2400947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfN3JxCRA9TVsSAnZWagAAM0YP/javIGkQs6+K24uI7f8c\n13c2fLNx4qRe8dvC0Lz8YwON7SPN20pWMRr5VxwmObZGeRCRfUlJuipmZGdS\nZ7yhfy7I+ryIhFcRvw9jtKlgYjOFDHmm6nc/dkbPCU+dhSniczR3dzc0J5HA\nY9WF3CTaNqP1DuZkczcKSUNspCWhlKbc3uPBzgCdgnX9DPi8aoIVOBxdxLMX\nbnDZVl8jDDXZflpWJjlTZdgc1LpXRrMAUgg6osE6nRK+04KYuLuT+bpXe1v/\nn6ZbmXwA8bdAfGBreYgvQZ7CCqOhmSuNjNh32OvQXG3ZBfqjCagFTxWi595q\n1Kmo/zB8MEoDGojEc56g0OxGLVFghA7HsCKCsvjT/SXJ0lBGuDkpKj120kMI\nARuCpq3hwmXTD5ILR5WCpvDlssaIO0jdxSmEbuVT4UzMUuRkumbeFOkZ0t8C\nQF8EBgY0OvHv5FE/OR/zCgk+CITS+19hMFSqHBfqrkU8xWYzezXj3PKfpWyp\nToqpqyvmuAqIItHoe4SP9BhHUp83f1BARCm3vBpraISV9p/7FQY+Eqxc41L7\nOzdkpEf7E09O744yeViSv74+VjqibLeLoZoJl1qxHWnX6gQ93aHUPDElNpJj\nGG02USDYXDi4pLP372luo9xBVXZjnlFS6md2+ZMagQmAiBOT8d5mfaxNuzIy\n9v4A\r\n=GyA6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2lpxnyLFe6SqvgzXgEuJWpaRXdHK1LuxY+lcGaVGzfAiEAvosza05WWxvxp9Xx97TtvOmAP9U1faYdrRHRUsqgOQE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597469285301_1597469297111_0.40428072175760454"},"_hasShrinkwrap":false},"1.3.0-next.1597476072960":{"name":"playwright","version":"1.3.0-next.1597476072960","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597476072960","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qdnxmb7aq+go+spS7nqys4aPjWxZmwVqL+iYmSEquPGLjQh3u5i+c61wwchZsrVFQpS4ZhteihH/AMajMHTbfw==","shasum":"e32f8d0af9c8c20dd2bfaadb60be119016434686","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597476072960.tgz","fileCount":155,"unpackedSize":2400947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfN4z0CRA9TVsSAnZWagAAPy8P/jZpopPEf3SZz3i8Mu60\n037M3XXoJykjjip+uhPLas+RewXBggMdniksLuX/f3dSvMKUE/rQ2qNIg05b\nCtaQc1V/VWJtez/RXiSxx4XCcGcd1h86VectF+C2s4IsYI39HkRGjCrIVrhu\njlO+NqxJsvanAeVQgjoHls4b7oSui2mFO7JV92W5WrcDCTrufL6e52b68J9o\n/uMPRgBcHOVCJHXL3C3AP+EMV32F0zu0OoN3DIY3fgD1JcfyXOkQnw/n+7vW\nY58iSMpLn6pCxC4dHa8dyMiYQrKL2k5TvHm3KRvgUAFqHo5et6pbDRNRJXWZ\nJs6RK2qB/qmYKuXXcm5Uz1Fu3NQQhoJQsUDND5pk12G0kdm7sxVqt6OvBAKw\neZOOmylkQPLfSE5e0GlKTA4kGdAk5M1fjlLGcCSeuTcLT6/XgHv3BI5bGbtH\nP8SMgJoOR+toIZBFOzqBVPB2NAHviL1qvUCRbIv/u4/7SaSCcdgATWmrmYK5\nn5REz1YVG3uV9ihwcRkxfHfsjLfkKWRd0AOSY2dbj6JctYf8EIxkxdUooZXy\n6ZC+FLYtvEucQeOqQinY8nS62mWL5extDkb5HHK6zIKOWs1IHoG5OF22owkc\nhWyepCYXHPPUQ4LJQ8+kyDLlQv5nQhcdtXPnZnKXG4x86JaqErAf30pi1WyV\nVDxb\r\n=Q5n4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD87HW4Qce2DzaRcoT4BCcwcLQqCfpjPtZ37qdYHmTkuAIgT+T4nUhM1VYDMIzfhCOzbcCxcbkaFDwEgExDarY6FyA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597476072960_1597476084243_0.017678311572472794"},"_hasShrinkwrap":false},"1.3.0-next.1597524141296":{"name":"playwright","version":"1.3.0-next.1597524141296","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-79.0a1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->79.0a1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597524141296","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ssQI/H2HtxHGjlaFMn2FZJWRL2A4B57w7TuW80W6R+kQfQS2nYOCmp50RySa9ke4Ti28Bw1j6jEAx7fSChpWGA==","shasum":"49c6668be9eb9b03bef5230e7b5d802a86bb9d6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597524141296.tgz","fileCount":155,"unpackedSize":2400947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOEi4CRA9TVsSAnZWagAAcKsP/0Ur6vhMwL0SB6V7yEJ2\nBnoTwD0NLJ8768GsseZmB705zk/AdvwUpzu5sPml8SRKMKUGSDGmmPQ46NI4\ngr8I9szIx3Zmgyl+0hKHP2pdatDx9DWnHZD7Mz45/DYqbuWgUSzp7z7kolCl\nanml/NMEbJo+tJpUh1n1Jwglum7utIR3uhUMGULvu9A4r9DOUZkWCGRDD9gY\nXreCJBTHyPX9v7dK1ZK3mS7tjHAk/cJ+dArrseCscpgDfqM7jjhYDWs9Y5ts\ns2mEOXZyqR6vsws9Zf071h0Dy8OTPsUPUDPVXbMULD6MnAeNmKrRwhBHER8U\nIMEl5oC3S/bIsd8s9F2Kf6Pm6cLfME2UExScRCM10rYrLBDkqHZMhpTFmjvB\nukWqAFdi03SRZBE3od4xlVAlwYM/Zg+49R1fI9iEC2EOjKOtX2vmoDgOc0pN\nTkzh79zdfilab+Bt3tGAO0Uy9Kb2uGMhLw5+/Y223GYrdEz5HUgw9HyZRUnw\nhjZwk695GUSqfLv/jcYnLyT8U92DeXRZWVETfi1wnkbsGBqYRK1qqTPoFdSe\nh+58P4wd2dPg8uYJewuOokSiHkeu9glGdQG9oX4nE78AFomXxVkV/huKtfOb\ntsgDIYQ2xWE5TSorjb8VqlF4pIpiwbK2wVd7mlGyewzzklph45sSvZwSTYgc\nGol5\r\n=CA/5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHOT4elXpthjKWDt3pSrvRzMrz5SuukBXorQg0kxV9OjAiEA5nHpBph3aHVe7VEiU851T4u8eVOXWu3PphnWPtsNIp8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597524141296_1597524151524_0.4434606543392843"},"_hasShrinkwrap":false},"1.3.0-next.1597537050288":{"name":"playwright","version":"1.3.0-next.1597537050288","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597537050288","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-GkV/HOe5UnZolKYIWuC/HEZgGcisDWN1pQWireZy3FoY0RMkgM27SPwQBM7ejauKNAMysDC2j2VObKRFLi0nlw==","shasum":"8da2113e6688f50c103fb26f1b3656f5ed14cbd3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597537050288.tgz","fileCount":155,"unpackedSize":2400947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOHsjCRA9TVsSAnZWagAAOS8QAIPp186JC9hbnLjGZx6W\nJMcsyoevLWYFc5+t4LFZBmL7/MHIiEkB2M+IWUxpRi3bRyN74wHipQa78I98\nUhSYf8XTceePFCnlXbnEukOR+S0q2lzYvxWnRIk81UP859N5ODtUUQhewT6p\nCagPL+R77Nnfo9O6YV6QUEe2vPhe7zZRRePQU3qHb9PLXs+DC0uHNxoCdFx1\nIfWmY2fM9UfKNetH9ACWa0jhXFnZOl4iDezi7FvfT8v0Mt0R/aDPJ+538IUI\nKQavMiMAOzm1+asDNAVyJYLX39r+2TVCpdhg0JMLxGl9d3uvbKo6sYfEkh14\nyKGKglq2SCgjhUM+psYSte9YZ+3ioE92a31ETdR3du8Bcl8DiBZ9caolK1eT\nnsmc5vW8Vq7G8d7kRip1loasMhULaHX59tvEvqv9KuSr9xVDSel/WwZcH++O\nH8rImp3jcyZURJBW10c1rFBuw9Xqu/QVU2ynd99/Zjsl6Ho9O8sV1tO1gtZF\nKwhKfCu45rxaERkyy6TTZ7mQDq5qXu74h/whGmRDKoOGdPzB1S3GwAce2zt4\npJONYD/oTQgAfcGn5jPbANLsgWV77wSAWABuVoI1G54/49SPYybnX2ULyCjG\nn2FJHk9sXQDCditelI2rijqrQaP0BZK5uzr2J8Q9nIXK3ThAsY0WArExuioY\neWK3\r\n=vJlF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFwZbeX0w0poswlqXyYagFzZySA0V/7uifRli2yrzQFfAiAheB1/UHKrm7bFYtSuhfutg38VapgX4T6VSJXjNH4LhA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597537050288_1597537058623_0.10852425685065126"},"_hasShrinkwrap":false},"1.3.0-next.1597614197670":{"name":"playwright","version":"1.3.0-next.1597614197670","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597614197670","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-a8XbwMJ2zOOzZQZVzCOva2eOTpiSLc6rpArElgHzVIuNp8/+UqsczT3b2vh787nDRZ6jFQHUJGH3eZyE6M8wWA==","shasum":"1a9eb0f62f1808cb7b57af1e6bdadc8d538d169b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597614197670.tgz","fileCount":155,"unpackedSize":2401303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOaiACRA9TVsSAnZWagAALWcP+QFn5dxo8HbNdibjD3Wc\nPhgDuwSOLWP6Cw5BuKfGN3zIfmrX3E9pK0x4JZPjk/TdkE0XMw6Kne8s4Q9F\nRGiAvhs4k4In7E90m4Uj0pEyjWAP+lr9wbK4LBO5n6sKxt5IVsdYTFCWz7+h\nqmnhEVkq9vXT28EDO3VKt7KUSySqEqGS1zyS6vFYtfpO03RztNVWqO73XjHo\nkZot/bnptguqvf3XfPDBVx25R6Hyx6ZMta2VhFkrZUFp37KL3RUJ1PW/6uUT\n9evHHjrD69+5CrFXfk7/BxKi3aNuLxumTB1RPx/qgqk4SSlysFftfvMunacT\n36TB06W1kpS2ChxohfmAnHU6vSxYAlSDKAQLltGPj3cCBs4WE4h055zkMD2E\nJAGwMg/9XLaaE4cA3Dr5Iek5ypC38MyT+Uwt3Um2xOJdVvG5QQrsqK18PI/0\n6DYr12RgPrMyCowhtutFlu2GnjoZw57CUDU2fVjX155MY6Zi6TfXrg15910J\nuDJZ7vcw+YKncFD3XwFpvZy34Ga9Umv3GvfttfEf4BnU+C34MPoAkROlVvRY\nj4ldZsaWrxsSQK8yLqbmZQzJ0YYgEtn4kXjJKukK2k6pBbBBHRpR7GuVbLoo\nOJ45IVkCjd/QuXyI14iCzV/sVRIXj542IBHVuFm1TRgpz+zXwBPA7hSVUGvq\nleTV\r\n=UHv6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtgvDKXE1aW48Hh4ZNhCdN9izIIAIM6BfqOf4R4dqBRQIhAIZrE3CTz8SsxpF1FkIINS6YfIuyQEyxDolH7q8J9JR3"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597614197670_1597614207337_0.022795896432658003"},"_hasShrinkwrap":false},"1.3.0-next.1597621351920":{"name":"playwright","version":"1.3.0-next.1597621351920","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597621351920","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-4pPaeTW6qissg+4ZXaRUOgSlDjMzwNGHARdQ0tI6VvJIbM26W0hkYRqR7CAxmJmr3b9GA00LoPGuPM3iJdMlDw==","shasum":"0a8dd6c88a19266092d0db7cedc1e25fa6a77f45","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597621351920.tgz","fileCount":155,"unpackedSize":2401288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOcRwCRA9TVsSAnZWagAA6O4P/0WJHBAXLrHyV8sfmMqz\nr8cKpF8V8H7oxinX/A+F9NvsbxbyMSQwhUTUnwvS4eT2FPJPUaBwSaFdiy+D\n3uWu5Ne3wJxNCSmOadzPPg4YjebQRbIsVxxLowTD9cIvxGlKWwGFcXbgCbKJ\nH5ac84I4BoMvNnEih9CCEbYSNq/5CogLE+PRefEMTiNTrdUxu9dC577sVly6\nptyaWm6+h/9eHl9BD6CYa3iyQHtWAYluGTERkg5YyPKCqX9EZ1mrIxTne5od\nSs5UF+3epMtDVa71/qBrPdRiTeqXbNwzhIR6bh31EQ4fSqQs1PCgywRpkp6k\n00oXQ/zgcnOXYCiy5XY2obd8wxIr5ysQh3UTRrvIEhVhAmHqe3Zl9rV+Z5fu\nfN4R/FdCIAX3bQBmJAJjDUJYwGcOAs43luQ5MNlgg2NlyFcEk7CTzvIqiOdx\ndErXC4bGgwRIsjmKM3q2dvd+8Nkk8GFAQYDSJlbTeqGlzBut1o4b59s9p8og\ngxIpdfkVvIZzb/72W03xJs2L1Vs2Mz8M8TWtE4+nqQ05923iRntVPqLu8BdD\nMr9DAXJjL5lZPlq9RU8NW1gLDSREUsNh97UxNh055NQPsdzDt2cvFM84cbFh\ndQEeOd7rKn+HJY5/t23/ED4li4jgxJ3YP7t5GydKtZgTD3GeVa8qy50zmNW0\nrLSQ\r\n=FsR+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD48glhWNt+cVMnce2ihYHiEJ1d5pDNu0ORih/9ujlhrQIhAMpF/eLo6GiWS36GHQ8c4+AKFLinOcIdLjYBXtJFQds1"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597621351920_1597621360162_0.7914326166262626"},"_hasShrinkwrap":false},"1.3.0-next.1597630926292":{"name":"playwright","version":"1.3.0-next.1597630926292","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597630926292","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ujHnGVzXKOkDNxt79O9wtS9L4oKGPr3IkpcC3qoy5qLuLjj9tDUfYwGM3mkG0h+7hf+/DdVgA393U6bEWLH2oQ==","shasum":"17a7c86f799db9e0d6edafd57bd41150f09598e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597630926292.tgz","fileCount":155,"unpackedSize":2401288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOenYCRA9TVsSAnZWagAAUqsQAITYyM987vLWiMOdWhTO\nx7P8WS9ATQhjiqyd/KD7eK6/OvOp0Sz5tLFkG8FWFJlFdUnqIuSFwLYQ5oT2\nClOQGfYjig8Udl2XTvULpQNApGuLFdXI1An4/J3X0nLctXWuSmxwZ6rud6Wz\nauKnSe9zpwSF/+iY4iq3xYb2xwS7redmksu00lffo4cB5NWZe2ucWUAToVQU\npGNrdrLDlVLZYI5oNFIHzN7xyuUimNoOUSttemm+q+PpCos1GrwgLsM+/+PM\nkmxdAy+yZptYKL/xxcNPSYXhrYBIuBHO31N8ngs2y0iWvku2yxRup7MCaEoW\njkKbr2owGa8bkZQvxdORLbrCKQjde03pY7EPAHi0wXuluoaAilgLGgx4uxZO\nEIIj2ttaE2iJ6c0cRvdWZP5+hV7SJMnpxMJAqrvuCGHHcoIih8LzyxhS/7np\nEHAWoylEJlKaqsBNoB/QIKXi8ymDeK8C4Wj3l7sI33k1YKWtPZqgGGMOj9P1\nJZJjpJD0JjamqN9ZHF5RTWdibNs/i7RPbVGn5SIIrTsFwKPoYA9DL3Io05SJ\nx3p1T2sxEH2ZjggEffYAWHigJTj5rnyiKvyu11oDZXmkX3ybRsfsno4s7X1X\n7DZ81iPj+LCVWAlfITMw+j08EobUDCBNolhBKg3HN7BBTSoicqBg4TEpGSsT\netiT\r\n=xDKI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8gQU5l+CQW+cREkaFts9NurwJcGqhxK8DCjHiLZ0lBQIhAJdcHFwkJ4sH6f8XjNnqSzbDJ26AYHpk6hSsFuEXBC8W"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597630926292_1597630935525_0.97142690207214"},"_hasShrinkwrap":false},"1.3.0-next.1597685747374":{"name":"playwright","version":"1.3.0-next.1597685747374","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597685747374","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-oXQ4oDYd5jowEQpB4giqx8dK1ouxugzxHdGThFU6/8qKa/BlXjjYHA4Znm44cDLTGJMtzjw35NQYTgZdSUtYPA==","shasum":"84dcd6561b9be97ecfcaff8ac5ef5f21d6920cec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597685747374.tgz","fileCount":155,"unpackedSize":2401288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOr/+CRA9TVsSAnZWagAAMVIP+wf9/nh9XyOLYLBHqkDL\nVRdx75TPntnJdCh928E/R/nxqCfrdmwVy7DGXN3lzICbgcA/nXXBu7T5VyRS\nqrqcl5hhi4kyB9TdaQQj18mHpH7iJULzwfXJOIVovv0qQjIxVPbQBGNRKH1x\nH8eIHxT8fKbembgfbtapfXu8Dhk8aa1DstgFqVU5Pn9bHYF9xEI6b7W1zC+T\n3QQHOFSsPArgETWT/uv/S4ZTQ3mEai6KEoueTRbGsrmQBfXvnP6UBf0Hlq0n\nmY++XNquzSSTm8oUk5c5Ae5yPsiY2rQK1FpZW+rmnaGLudyhuM4QxN1h+Vj5\nO1JsWLlrtiTRN4d81LM5/EnblMrGdXU3s7wghAliTz3RvXP8mFTb53nYjAY+\nw3+s3K1o+tpmEozIiY9f8aktEqIJfG3Z1ZJVqEA58NliFWFVKoff2n3bR8VS\np2BpQNbbt+J+6Ra140G8zcMyHP3DCwBUUVFRfuvyBDPolYz+q/bCKVCCBVpk\nF0wcLz3bRUxshPSVel30aM7PAWTNUaHxyLfbkQ5ut4T2Ga6919bqAPNLN7TP\nf5nbWBZW99L0OdHtT8m2u+kAMeZopyKlc3Z4Xsn/dsMrGQ4Fgyx2Tel9sEmU\n2Yxj9frgjZD3sa/lNNF9S5RfwzDBMbGstD7+Bqjz3QVTG5QvUROj+es9C8iQ\nPReM\r\n=yKot\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEIy2cYaGJbsrkgpS5USsum3HozhrPM3xZdYLhks7QA1AiEA41t4bs+IsThER66qss8dcegjBw+4s9VDvlK9gJQNXao="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597685747374_1597685757913_0.9422382038995745"},"_hasShrinkwrap":false},"1.3.0-next.1597686546244":{"name":"playwright","version":"1.3.0-next.1597686546244","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597686546244","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JJz+5LHtdxcK2va2aRVNVsmw8ctPnEhWqx3jPOxb5xxeUosRJ+qn3RDuVQLcj7lfJ0ts5Ehnswkf1U8WKQrl5A==","shasum":"ea423f5ed2d62fe8bc2c355e1238539c70bba239","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597686546244.tgz","fileCount":155,"unpackedSize":2401288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOsMbCRA9TVsSAnZWagAA5NYP/R6/vyNgFrSDN/Z1D0UB\nur+mw/mcpsDnRlX7Y9ohWi0YZfrQNhlUxMNYvBg+SeUVvBuGJ11kWRycH4kR\neffGM3YtKmDUO56oqTv6dV95hB9058SzEhHEI950ty8PkO6VfqJuXI/CSd5S\nytMrLjm4lcqtjWyEZfMqc5ghQ/0nzzJJXxnGwygHwREqxWOy3ukCvvkvjQfs\n7RYX9t9qKNfpIYzAYvYOOQoooyUSUDG7okC8yLTN4ikgc3FDTjzVuBN5ZET0\ncn0dHRXO3FXpnZdG8W1Gx2hAEHhMxvGNdH/BZTS4f6MdINW6KAKF1Snn9tXE\nxCMWTxkz9hBh0U8rdnD8ngb5yN0hRtyF7rPeVt/LBBLTYSOg3i9ngS+bbt+V\nv6hKXM8PA+3tj2Q03Qh5B+2rAqPgFWFI0frShC++Ft87Ac4fcgmVCDx1+xgD\npaxrdJS8mKHJVo5oNq1krXFS9b4iGGUlU0gb3D54WIxiMtCwsJTcV/VbVNAK\nKRNM002a0gS97rim1B348vSotE5aDla3s+512Pd+mVITsLQ/oSE0p3c8eSxr\nBwQyQ+ayjx3W0YkJF4FAxs6H8Ms/pD+nZ812wapfWeDmLMvjUCxp/CdOV3O7\nzmn86rG8W1F3XA/G2RZrJKvEtCUfpMIX88uQj/uyRqlucQ2f1o9XinzbP9Rx\n3liw\r\n=euL5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaLzN5mheNVLHK798JY2ET1K1d/xcJ66Q9edzkbXHgzQIhAP6ValZy8olcxjexAnrG9OFJIzhZxO5n9jCgKWpk5rNN"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597686546244_1597686554753_0.720800561761719"},"_hasShrinkwrap":false},"1.3.0-next.1597688870058":{"name":"playwright","version":"1.3.0-next.1597688870058","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597688870058","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ZfFnYzPXP1Vwr/GUPYrQfvkbDl+d901zKjQRfaN/5JPs/xy+dyxu6SUm7NtnQQgddGsIYQTyMYzbNP2tC3pf5A==","shasum":"c44679f3ad866bf431ba9e7f5371bddb5b99fb1a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597688870058.tgz","fileCount":155,"unpackedSize":2401288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOswvCRA9TVsSAnZWagAA3HwQAIHUQ9qJZzxS8rI6K34K\nExttdp6TSmY4H37V/H7pp9vICg5JdpOvrmAHuYZGzcie17jNMbh/O87uvjY9\nehaQpk5XSdHG7S69jnFyJeXVn4mcpBqFyI0/M+k6VSJlRoexuEhBpg4SqSg4\nD08n8LOr90EB8yltTvFkJKTB2/eW34hwqO44Ify5D1PNF1oRQv6HHENWW96u\nghMzcmd2ghINJOFbDnKCsmsB8x+gWQFOmiOBmE4s2x2TPUSG60kWCvHKfAfX\nM7Po9Qn1qosRbPeT0WOmVzgj5SMw4hit//yBQieuu9djUkcT3izKmgH0v5KF\n3hprsIxCMKnX8o/e3M7LhkDD1mroxH/5rLF0q/AvErHaghO5DTEcr0xyFDjA\nPk4t30uAE4fXCNFFpCbcVE6DtJDckEwP3zBAy48+eXkOnIUJJ0Fltr3USfrN\nrnoC/86pqZbww+e3hufZ8OC4ju0SvMZaslMzWlD9k2Uz6qcz5TqZRZdHFf0p\nVSKNDT+hSvC4NOQ7oFMdd9Z0y5D03s7TXW5n3n27kmygfX8yw7rcqXopbtU1\nmSRDd6BS7QHpEKkaZKctnUC38EFm+kMRyquVAcgglSgjfW92e+UhGr5mu3Qd\nQ628sJj1sVf7GMiBsBcmGMENjk446sCvEl9kyDlC8jkT63CHVOxizrP1aSkC\nvyzo\r\n=t3hW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTtElNYBJQg7u72TTGkjPjsi706r6Yk2ZV6ZtcWHS6pgIgLtKNF6sRiY8nwwyM5YlIvVSzfzg7OFm1LWrWy68A0sc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597688870058_1597688878546_0.6838887142897896"},"_hasShrinkwrap":false},"1.3.0-next.1597693686052":{"name":"playwright","version":"1.3.0-next.1597693686052","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597693686052","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xFXF8lbr2HszNhpH3NjHZlIFyxeZPhR2cp3+wcIj5EE6bXT2X7Tn64OnGehLFOiTnPGF8whbPrEJ4Bxh4hI4xQ==","shasum":"3bbd5b42d4ee1a8bcae34742a7253be438d60bf1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597693686052.tgz","fileCount":155,"unpackedSize":2401288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOt8ACRA9TVsSAnZWagAAA4wP/i7a52HR9g9+5T8l+t2S\nqoO/ecUvTf8+svLcrdRMgCZz8zlPYE1zTyQtUJtNVSS3fhFmm+3gDP5sRbRk\nUm1UQJBXo/83uiEpb29c0t0gAQS1e77RkhQZk92lGjSlwXo2u3hvpC9XblN4\nxVEk4q2lGOLL/bTL+3EFmIJxzcEDeNEaLbAWRzJ07DlB9lJkqkh+mKNHARtX\nzAXUcBzePaMy4Lf1tlmlZMi1RPhb67giSkC5HmS7S3BdojyuIRlx2pu/X57n\newcLplW1W1yr9OFtQc/p8YP7m4YjsbD7kJTzHnTHci1fwQSmZAaxYWA+SIuB\nGM4bJ79aImf/ICfg8wf/07BhWCt5Zh73DF3j5jYZwrCIKj40BnCp7UdiWj/t\nMk34E0PUcSFqVgadOZlU6zEN3yCdlNn2LRVypjX5ZYR0o9QI5NLGWaBQ+Fw4\nPkj+JOHUb2jLvxgunMZWt5r56afyvvO7HVlfsOI+bFWEN5tNm2vodEj0aA8Z\nFmSt8a0PWAbiJc2ZYLD0kVZE33rNv71D8geGVy7kBP84BkCqbXBWJc37MZ8w\nZihPr6vAR1sCIeebaqnuQZuMyk6uBLiIwPktqEB/f2803/cHcUFqiAqYZzxu\nyZP+qrvqzizGCB0Iwzq7/ZNTthG71z/VBZeXy6cS7eM22nLCTdjz23dB67M3\ncXle\r\n=y601\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNpg63Oqox9PC9om019kN0YY/OiDv4gV8uDn+cqlwnOAIhALJ/Y3OwSeuzHBSMzjyXa+XbnPR4inb16k4n2IQvFskZ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597693686052_1597693695933_0.15442245590838533"},"_hasShrinkwrap":false},"1.3.0-next.1597698860927":{"name":"playwright","version":"1.3.0-next.1597698860927","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597698860927","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-TrRHg1YVXn1Pd8XzUmCAr6k1vzU7/Z+u8Jl2vB84ugpIFAfvZKZDPR4n6vX8uZb2chQ8JzpAz7moaBaXtNm4vQ==","shasum":"ce7a7afdcb2983b6c9a3b67ad57c51c214007ebb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597698860927.tgz","fileCount":153,"unpackedSize":2395094,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOvM5CRA9TVsSAnZWagAAixEP/Rw7YjwoPFdg3J4lNFHy\n/m1V/9gQIBQqTW64Nnga7uH3eIIRPulmDNkPIhvCQFNpBs+KPj8JIcYSo7TA\n5z13iAsiVsTzyLcIw2cRU7oy4qaUqah+9tBDUUElIwLs9VxImTW2zBMAUMXa\nR2CffeflLz/OKZqidhc/QZv8toTW0EYgNF5IDpXeozqxocWzaCRreNPG8Rg/\nfT6R3zNAaZ7s6sQQJ9x6+6xpUbeUt4sJK2PS5vDxqu6CqepA+IUMIc6zVbn5\nSjKYnchxfuvSSqdBrX8bHb6CTpIn9fFUjNLirCQFf7USnmbL2wZTEYiqz1uL\nREb+p6MZX7SNnmPOk+6O/PVu+Ax29MV5amv1EIw9f6fOEXzZlrqD7QVe4lY5\nCXL7XQnWi2aB4RRl02o6w7PbzbMZwNF0zaMO08TjR/SUxkofUnZ7jkcpQ4/5\nTnEoFPnekdVVDeqF+kOl5XD8OV7SPL9bH9w4aLzVXpEv6AW1bV+Jxb8bWG42\nOpF2lmj4XeOwWRcpMLdGzb7o7Gz7hZaJaXGNHl0iBmFqw4vdbHL8tsoyWH2P\nMkAhLLdyOxe49sOIjCZ8m2VSTVyr7/03IWrIVwtf0iohG6OoPrba0dzvEvb8\nu+kEkWiC4Uzdoy27Li/B8b04jjNO3yn98GKTq11eW5EAVh9ZDvV8MavvWO7N\n3Uxr\r\n=r0Ev\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDwN/usfv4nm7qh33vhmhIuIvkDKlgFK35NQ70jxcpEAiB9NUa2uTdd2yZbmUsItauA/ESR22jcCPYszWGYLydNHA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597698860927_1597698873114_0.6192056617546347"},"_hasShrinkwrap":false},"1.3.0-next.1597700317200":{"name":"playwright","version":"1.3.0-next.1597700317200","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597700317200","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nc9nTxifzK1UDb10UaT7QMqUDfeDfoXug3dr4pP6mgKVYNYxTpWx+IENvh35dSRF+bxUYsTw72vQpuURVAkDNA==","shasum":"0f1deb20f9a5f12752b1ac0a16e1b245e5591ee1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597700317200.tgz","fileCount":153,"unpackedSize":2385946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOvjmCRA9TVsSAnZWagAAehIP/j896SjjaFAIG637vm3i\nprUPCs/sBYq4glM7HaxR7sgUnrgzbBzxpDa1E5BfQ3CB3jL3Fsdd2pLPlzWR\ntGtwkoKeZegUfojb2LeTBMF9Ec2C2qurl5kXLNgdoNMEWPzjpyhdpMkiV54v\n6rYzq8r5u/jpd+R1pP96GzTpImtwaZDkA3xXLd9M54A7AnCAbsFNtc91uPQF\nkCJgSAFLvd7nqtorzAGBtBw+d7hd61BPaZ80DILbk+qNFMMvAblmDQ+d+d2c\nUp5s42SMvS8aeb96VeSPYHFhSTVWaEnEdWxyYvz1YaMo+5ig27CF1JiIZ+2d\nyNiitt1O7CYcqATqqDHvgo9YIp+qsjWYD4OorVn/H+wbwMsH4RxLJXs5ujU6\nOA6CEn0piIaTN1BThDA0JujYN7SOCjCy2/qzAVTczK03UAqN4fVdKHytyOY8\nyhdb8vBXsdKSGR3aXkHWkp6dpsfxRuzxJYnyZMQdGs57+1CptJZawXTdms4s\nNuGWoJFZrh7zpM2SOvutOalpjLsghxQKJQ0jLRz6UI5p7/78AlpNZREX3piC\ntZXC4RC1+M7Fx6LFxkIk19x8ldKkPV+Y/oGtNg4CGwbzTJTIiml2Frnc6Mt+\nkZYvB/ukoNTY70oNOztpUX7xE74Zbe9Q4oDanbb3Rj79EpnzjFT6LLIaA2Jg\nMvAw\r\n=N2wL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBU6UUX1eqT/C132dLyCeupJ6M8N6gSIKI6lUSbLJ7cDAiAtJ/+C9NRlBAXM22+WitmIbYUeivyai1CroAmOXdSA6w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597700317200_1597700325947_0.3527938386027516"},"_hasShrinkwrap":false},"1.3.1-next.1597700800153":{"name":"playwright","version":"1.3.1-next.1597700800153","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-78.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev/#?path=docs/README.md) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->78.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.1-next.1597700800153","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6+al27ngcKwqiXAA1Z8KbzgFx+yppa7oH138AR4IwwXEO4dJvWdXB0zaUA/KRKLyCBeQAabbXrVgWIVfwPBYIg==","shasum":"18db817dbb831a262723872133aa018d3f06ed84","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.1-next.1597700800153.tgz","fileCount":159,"unpackedSize":2411539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOvrNCRA9TVsSAnZWagAAUsIP/0U7oGcfxmsl2raPTTyt\n0aHVSGY8uXE83wBlWuYpYpsXGR94XO/yG3pVz1d2qkuByrrHFo9yVLq9jts3\nB/NXuHuAvTxbxvSmwp/EGD4mKqhV/TtOtsUAyhMkKLwzQgzvFSVcKd6jQG6o\njuDEk947raRF48/aGqd19pZ9PHhIXuiNdqM3xxXTShXQEcvpkPs+Rv+nEAbi\nR5A1aAwCHlFzxjGqvlzAhdq+YukGMoiIgSx6CZ4OOpm4gpS+XKf/zxvXihxz\nm6lUV3rteeSWbjTg1NycmpInGzqlMoEdHqmixOxX84RnZGIcHoFPc4jifgwP\nqsReJzCBTm1f485zDj1aqSy25L2HvhCFv+d9H4eBEL77GfE7SMwxCQoUFRMG\nd/zz1rSkx0aCNBaIkL2sk4sVZbKj/zvrH+rBAmtqZTkTkQGKIOz2wgqOu4aa\n4eMvyiRVGA025sn6zNdQA6YurCvpSXfYKwoUHVBGF8SQPwjz/02ms44AyfyI\nRp30yYDhvxoH0TeKTHFvl3Sy04rw85BrV/mqoG2gz9LhGwo2/wY7fOCYWWEP\ngqkwQuzuR8bHTYn4WIOAeTfVvDWFafPFbN49+AFdHbWKqjiGvJNLcpsytp1p\nezX/mBKG51JCCFqcI/nImMhghWuDJdD5ypubQflxT4iCzvoqU0E8CMzaSF9g\nIOoy\r\n=Bnt9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOxuJ41aZ4Bkcdn+qo1Xc4gxo36RZ3YJnlwgoJjVOUxAiADfRtFUAyFKwSF9/RRNcZw0yNmBPJoxTq3d0VoklX1YQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.1-next.1597700800153_1597700813117_0.11320167127438086"},"_hasShrinkwrap":false},"1.3.0-next.1597705827215":{"name":"playwright","version":"1.3.0-next.1597705827215","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597705827215","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Y5L4UQTQzyGOs7w0VuGSsCD/GnGPbPPp/nOvjyDU4UnK/P2o192wZcKTWDhMJ/4ccUvKInPeHTU26O6sWAF6hQ==","shasum":"53506181d2ea7194e01fab850ecd6bfb54775965","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597705827215.tgz","fileCount":153,"unpackedSize":2385946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOw5rCRA9TVsSAnZWagAAjq0P/0qPj+Jey3M5ug4UEda+\nDe2B/7juQlALcNOwJbywr7D47tA22pRjzBfau7mIKAMTpWiv4kf4DyoIIHZT\nTQ0P8BL28Q+9zKwfCEZrvYqcJE2JMSpv8CB55RYIPEAmIrCXQ/6GVqpVT9Xx\nQec3kGaxu/eCBy28RVLwTa+Td++imAjps4a165AOGZCXTdGYcTuWunNg1FTY\nwCW+SZFhQBBt0PHnba3rlQ2k++dHEHZARwYUlKTLm6YUje3QzMpUvI8DRdmK\nupfDoI08DL7MZuP+HNteAbTyX83lJ6YpOFRCbgJP4hDkvzcTyfmD06wNeFDD\nQVHWPlaYfmWO9OkSc6tIshj+lc3rOMFQTt5imIH3LnYud/vI3YIgSJIL2b9k\nFddMsIY1hEX0l+wgmgHTkC4WRBN1qhaR2yf8ltH/xAup4E6zNbkGdDO5RqBF\n/OZFQ7ue4DkTRAal5exMq8tNjTb7kiG2EFSHi1DPRK0b1VPFPrPPFfRnhSWw\n8VbIwlb4UC4FVULN0qiiesnrGZvb4MxdJvl0UqFVqQ+LeCr6P4qAnN/t4PqL\nXP19BjQg5njP0FvWEZhUspxmqwwt1ohm1DeWy7gSTChWZqC4yjVv2OBSR0V8\nMgYcNTAeAQZze1kFQEw26B04Lu5JCC1VWPh9gCqNDSlD/c7cY3HSmnkpOD3k\nFF0S\r\n=QD4w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCisKVbzrVXJgtdBpSer2jvTegKhTtszooCXI/cn+4ZEQIhANh2tdpc95MKt9Y1Be04GK15ihAJdG/RjHBW2JNWseO6"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597705827215_1597705835023_0.9308956480871615"},"_hasShrinkwrap":false},"1.3.0-next.1597706455637":{"name":"playwright","version":"1.3.0-next.1597706455637","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597706455637","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KsZBFfrLsHkztvQqdADgxbZeR/DCjb7WvNkDsmlYbvydgM0CM0dAI1C7QvNasEuDTkNdKvO2ZjKUWgMbs7l90A==","shasum":"ae45ec370cfd2d06308cfc128492b81f32f2b4c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597706455637.tgz","fileCount":154,"unpackedSize":2386190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOxDgCRA9TVsSAnZWagAAFMAP/RTaftsdtuTmhU66ArVf\nUt9jZvEg7HUKkU1F/WgoKsWTcLLDBGS9ENyfdjCHv1Y1a0TitwvY7J3GxuSe\njIR6d5HbYSFMPf4aX6W2wQX8qZlAv73/U+SylNOzxRB/+9yfIFfmYMp05Fju\nmVHeYHMV+f00GwLd14OvAzBuW3mYq9dzKhEl2nEhM5W4VoiHOgIBWtKQ78Lz\n03mFWQxO9BXOGwcS4pL/QYDVYKXQd/mJwRItFG/jAvsmdr5mzRJCxhZjXkms\nGKswLt0PpAsDnECNKoKo8TRcicmxETrROvErHg4JVhpJ9u7+4PbhjapzxYBe\nat3WoI7Cy+bJypJ8XHQLsdYmMJTKeMeKno+ECT/6IrK0joLNzck0AvdVUs5f\nUSp8H2odu9UQoKJ0jvo4GelR+Rz+mH/Tf6thCaBXKqiEs2d35S0T0E/XOQtw\nIn4erwF+sWPTcnR3L4xCFvnBX3GmomrdjlM6Gn1efoie9iUKWzPuPaCIe+tG\nDh0eA4lrTjU6qoz+T9tv76Vn0a2/dMWOxOyigQRXvB79lYnDojsDz6wfR7rN\nBPM5sa1eHXshCdOiQtreQ+dATpmtQO8YvveMHkFi1mTsKvr4gcdJCbiugnXe\nUETPxqMmgAYZo3MNMOqmj8dUtWHRbPcERjwnYfsiL6hun1edi9b5z0EHBeiu\nXkaO\r\n=MxX1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIK5tGxcAWeeJP6lVLzNMbN+2khhX+793i6Sz0eOufDQIhAJ1nsJicJ11jexX29EpGMSJ0vmMZuTe0RY1oe7ZqGzoX"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597706455637_1597706463498_0.4529917248292532"},"_hasShrinkwrap":false},"1.3.0-next.1597706662454":{"name":"playwright","version":"1.3.0-next.1597706662454","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597706662454","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Qww5BaIFpGw4/fShaylETpabHnsNgWA/uhP6EMwfrFtuXozofs36kYwXNJlBVOwmzUsgtkqiZu4kMXghM9A4rQ==","shasum":"82a6dccd58cb31c58d442ee6123f52fc0ff1162b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597706662454.tgz","fileCount":154,"unpackedSize":2392599,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOxGwCRA9TVsSAnZWagAAd4UQAJKkUI0EanMBq63kc9DV\n6IjOjHjd2ZpH0Ij5lSwiXmtYgkNYmoopvp9JEpiHEJs1qzjohViCXF7GJKCT\nqL80XtLAapR12bwlXrA6TPMUbpLm/ShIULIaKsMNNaBe6aldnktkBpbMOdh1\nw04z84BV2OxOpXm2Z732kxIM87y/VlzQMauvHgTvJmQ1cY+kG37FDnrKRXJG\nsajrqmF89HZ79GWcCatcIc/f/69SqZXgjFW5ZjpwKlf76qnp7XYqGtWNM6oL\ndfMTSJ6KLJtFMhYDfUqmlTuZCWyfNZoUfeuY5iu2LpAcylb10iMAT4sYAZ+R\n2XoTfHLzG0dwWvkLnBiJbRibsZa/XMtNlW4KMsav2rQfVbIElGOxIRp6wnyv\nygwcWvPyXxkfboMR5F5beIMrE3eZ0gn0Qq+BjtCvz437AFwItpt1vlnsNR/Z\npcaeB06OLLrf6WWjlsObKIxPj1CxomQn65NaRbGkvBZidNG6tZdgZ9Q8mLaF\nFLynj5TsLsZpi5EyIPxyqeJ/+/JlodR5MoRN1T19FAoVkakW1GcXOW2pGCUK\nkP+PAJbgGb6G47c/c2wcRATiZ4mHV0lQK1wXiY42okgh7V1pQKaNPxiGqt4n\nnAF5c2nuPWhNp9rId9Cyg4Gy58JoQQ0W0VphyKxfc2jpVTKE99vUAbrDYahV\nidrM\r\n=nUre\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC84fZpHHwzi6LYcFUQfb4NP7jOWB04C2TPx6i0tpgg3AiAlQzITDmpI1D4d5ka3lGrW5BaZUPs77xPZtrZNYdx29A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597706662454_1597706672016_0.47116237001984507"},"_hasShrinkwrap":false},"1.3.0-next.1597708496552":{"name":"playwright","version":"1.3.0-next.1597708496552","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597708496552","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Fda/qMq6uij45aX1wRpltGJkdX3evJa2psdIodfynZGM2plNL5AkIb/oUzYYGnY/2atjRKCFUJLyrb2G7a4OOQ==","shasum":"25eb16e3bcbd3f9125cf5e8ba397cae62831f0e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597708496552.tgz","fileCount":154,"unpackedSize":2393050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOxjZCRA9TVsSAnZWagAAVQ8P/3G1q0spWkHW1Rhh9uL2\nSBIq8iVhGJ9xVW/3KSTVJjmL7c5G4C5tXowEL//qZpCoeTNoU6QTjzgQuhDd\nduhAGFp7NxRTBH/Z01e7Gthi6OSEekiaLuQ02gmmRM4yALhovYisc6Ul/Sz4\nhYrpeUJcCLJg2aVBMIyoipQPAuo3x8AvNoKTbYjUJYxf5cg/pfDbP3kyiJAC\n8cpNo1sQmfKMbsFhnI3/5tyLQHjHuL5tVhprsU1+VO+JTbfGuXJ1Ii61Nn+X\ntc8WRXRVIUfjB4Y704H2RAMurySLoRATYMqz4S7sV2i9MN3Ploch+F21K7wz\nps/S5m9ru0aKC0O+gVPL+Dlb//vW9zja4tgN6i8pl6BflWL49Gm7nT+Q07RS\nAMiS+DNrTL/bvLsIRz1pd/zMnlJpux1NYasWGx77Mb3gnke+DIiDupCousb4\n5TSHlfXxZe//66vwTSMwmRkZAqb1IFTllfNp91ZmDvrlY/4tjCWNSQ/Av4mI\nX/uz13kwRSUcFb1XsjSNMRK/lqM4cp1xj0Vw2FFDWdT6R0iEAM8Cxj9zBlt9\nzOsdeaFQ7Xl0Khk+UuJ++Qe6ER3kcFy7FinljnGbcWdD8DHPjbzmxzJ7J0/M\n6bQslxppD6CDmjmbmcNXOV6pUzXYcIqduiKoQJzd5sUHx8YHK2xFXX/6VmPw\ngJnG\r\n=5/8R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChsiklIp4qcHSzy/y2ELv8mwv5ny2lGVWxxQIgtPlkvQIgVmHhvKT1aMggwGByKNcSCea6wsN3IjhwtfYTxnCcG3g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597708496552_1597708504978_0.4747656410314032"},"_hasShrinkwrap":false},"1.3.0-next.1597723481102":{"name":"playwright","version":"1.3.0-next.1597723481102","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597723481102","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-I1iDcUmaN7Ox2EMY/kIBiRFelFROVLtStTsxCHDoFCpKWV3yb+zQXWndO3dTIWW9sQp9JjWIC4eDVF63+yDwEQ==","shasum":"9a4f6817e4085e8ed3081157a24dce40c654ee67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597723481102.tgz","fileCount":154,"unpackedSize":2393050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfO1NiCRA9TVsSAnZWagAA/64P/RYe2aekG+HgkInbedeV\n9S7eVVdG2ncIOnNsZ5cUhW8quAuPXJT6QONvJGRvwGpP3ApxRnJ34yxA4MzR\nPAS44SrteyGcnspyALnEjJdngz41rObppkxv/1a6ejGx0FbEzNCgU//6Xk1U\nXL9mpcjBmcfONIOj/eebQE2dXqs0Z1BW+UBTESyLiscD0q4Sq/77WXOb+JGu\n8P/TcDfpgGG3mLWFfrJPZQKsAt8j0jCU1JLjiPrpH/6MdBG7aOPkqfD0xwIU\nLCDCpB44C57CLUgPunC4f7q1olK7YcKTgTpKaLP/15krJtwWp9PlcWV8vbgw\n3ghvvEVtOd3ZaIsj1iEFfxjetaFg/+hBRMwgo8O13Fs2eUe86vRX6UsRrwdP\nnzsIdorge3os4g+HB6XPA9NFVwe1Dxs2WhM4A9/z5cZH6cRV+eeeFgi2wOUD\n2n/asn8w2U4RRk95yiHUpZ5mD2eQQA9/PjGIyE5nQBwNuY689tYQxfCDLWsr\nqA2oMGkM9EOYCO7XiD9BNcG/IaKoUuDpbteJ6J4ZEK0+gr6sdz8NaK0SHlLv\ne/Sfu9fi2op50mHETFm1DByeyRG83kUtJMrGUlBm7t/xAzfCJHxjluKSbJJ5\nM1bPlPR9EJIs6u6jLgSFE2QiFaRbsEYWaDCErAkihwZ+rhAX1FFsE9Ond/l9\n9X8u\r\n=9qeB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD278gvJ99f9tL+0pdryRTMPMF7+kv0ySItHy0wwHy+GAIhAM29kOMlZYTOknL8wKwNIg5tftS0hqu7dm0nUFME/51E"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597723481102_1597723490016_0.25461547976260857"},"_hasShrinkwrap":false},"1.3.0-next.1597768771103":{"name":"playwright","version":"1.3.0-next.1597768771103","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597768771103","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-78iRsx9Fr6ClvIgkibR1nQZN1/dIGushhFm/OSogbpXinFNbOGmUQhzR46mnoA8po4nB4uuxlXVC21MAjDPkuQ==","shasum":"fd80e963000b54a78e4fc82f81e34ef5f7782437","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597768771103.tgz","fileCount":154,"unpackedSize":2391537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPARQCRA9TVsSAnZWagAAbkcP/3jBHH8vqFXfaAr/o08A\nYze1xy++X1UBENK9OyRdMkU572c65dNFhJ+FA6J8yJ0I7H+W7zdZ9dX9s0Ri\nykpU2OjFhgRNBc7tHyE039zc2EKkCoCNpQ5XljqUaWZql6x8dJ4dKITL/e6Y\nmYsphhefGOAmTw42fK9K0um8ZAzuZ+270j1daiw2sKETHhV0k2bv24Rz6Ck9\nymqSUuMNKXA5UlA+FwWhvbCGP4NNFqQgCIURXwNgTEbsKodNSnc5QtC2aM+y\nuGlWlWOfl3DgWohSiRxo2ASlOdIGeKLKNo7ZkvyoK7A4fy16xqSaVKOo2xgc\n2asSauIlXLzJieyVXcrhfHZAbNBD6MSpjCQvfcLBv0Jo5/Nk0P2ibRfav3PA\nFQtllUKhTWGUl8vIvyRYVm62Qx2lNOohdkt03tA4Rfc46B/lBnTJPFQGorZt\n3r4x8yGP+8iA3IsX0w8E/cwpD3J2/Ld6bKjQhKbpVj0Nz8O4Fm4q8AbDwWMl\nWrGTVNUvaEoyFNxRdwBPAqDqN4+xzDBqqcuYBfbRrucVY/jWvsAzv9koVv3s\nArOEo857eMp4oby+5dnNw0PkIL4htAgEIBgbVAuhBF+0f2t5SSBudic7t1mQ\ngjVD+sXUwkHB0nzexAxpzc1BJxNuddhGdvZPGrH36PkM/E7s+lnEKAy8EG2p\nALnm\r\n=UW9Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLR+Oq1mCU+XqspixGkwAT0POdZji5lg2nz/bjc32fLgIgTdNSvsagt4YRVp4QMwCSsDiOfwFzPjRcCyc62B3+Nxk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597768771103_1597768783906_0.43553473779554563"},"_hasShrinkwrap":false},"1.3.0-next.1597769979075":{"name":"playwright","version":"1.3.0-next.1597769979075","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597769979075","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1LS1i5FZl4FqkbWAlmYlAmDkUG4T3DdusIGBKVse75X2IF/pyPfcUGQsW4wrPf+8qLXKM7jbQh4EMgk47jKzPA==","shasum":"a643cdb20389510165ce90fb8720a799814f39a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597769979075.tgz","fileCount":154,"unpackedSize":2391537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPAkDCRA9TVsSAnZWagAAk4kQAJk90jYyAZvlOOf9AkGk\n1vo0dT37xNebaeApkyASJN46n0SHRtYaHarhjhh9PrepAIrg41K+hqWmfyPm\nThziLGyRv2OPt5HjBX0PH3xGClOfVviM7Umj39XO4c5vm1gXh6Skd8VLDLh0\nwQRThpheRpVVxBQX5FvBLPOIUPXkCD54q2QHTXy9WTrWz7GMTXBc6lDpGzG8\n0J6b/WERJO9TDhX4z4MLPw2XA2sgsGXndd+Dpfj2nORACLTMKkoOs/6D7vBf\nlBV3mugkQxN+4ySgwkpg1SDPS25A/OTo8Mk2lx/JDHy0N5lL3szgqK/lNHPo\njNm1o9hKSsOmTsd4VwxcoiPdI0VnNLdfusftiRD5pWsm8K4oHqLipqOJBr8J\n57of+KIiY0Btcz5WtmnbrCEysWJ8oF1Grb6St9CuMKt+asbcEE2QbBq3vgeN\nyDQspDtUBZCV0BikaJSw5k35mTpII0plnjGLJ2h4qFJyi4cKD4eLAg50Lc8o\nKzapIiQvHPRjN2xEliObGuJ8MwHYghTIeGFtkhY1dfP7gj4juj8LdcF0n5pS\ncbPOhS64ueDEzrCL1Vfd/1NijEmdMF6Od/Bq5EtJmZguJcV13tBKD48cSFiF\nDre7YvocXjKD3hfFu+iYC8Zy2mI8BZGPU+wZSpWmtukk+ULOaIMsXjG1c0uC\ns+Mq\r\n=RFDO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAWuy36BE/FXa60BpdICwh02x0SFwvW0kLTN268v/m6gIhAOQpr2NZOrPE4mVircxAqNjyCYknZFKkEa9MgSamHuYg"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597769979075_1597769986731_0.6391944465984272"},"_hasShrinkwrap":false},"1.3.0-next.1597776060158":{"name":"playwright","version":"1.3.0-next.1597776060158","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597776060158","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-zkOrH2ValheEnE9Qcf1wDYVqLEcTLbxULbXbGVnVPtSciHd89paEyJrPDrs/TWlHXNPzm7jfEm4kFj38T2Qclg==","shasum":"96aa6b639f97262b646f25137fc961aa55870486","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597776060158.tgz","fileCount":154,"unpackedSize":2391537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPCDFCRA9TVsSAnZWagAAJ+0P/RLOfj1DYzQd/M4CpQEV\nGuHGn3h7H8Wbtg/CU143BHo5KGrUTSuzJ/1zvnY+KXPVPsYmTEsOr+DuFidy\nMTvx0iBEXf/SHhccp8urK5TexfGghRSralxdto338+cwAznoJZQUC0DYoruO\ngY/JplI3wsY4v8zFkTg+TApNIHyNc9arn1mBk5hu4zL0Wwm5omOK43Rn5+yT\nnD7BmhKHOdAdDh3eirMFCwz+5+jc4yFyfPyYmBMpcowVok7DNUWfxKtifxkg\nXsZ4z9L377z1vflBULg5eRDZcdigzc43QXzDzcPEOYjKP87FGE2XsEC/MWgR\nh0LFZSrqmvl6yhD1NLbnhDTJe2pdyPh52J/p2/+eafRSiSULgW0b5mSFQusB\n8O1nKf4y3FaqLBSlx8yUUlJsU6huVCLUw4qKdyxtzJuq/cFfAnT5puAKss6W\n4JerRErfI8sHO5r3K8KNXnEf+8yx5qIiiguiJsHr+KRvgfCDRObSk6tbMXPt\noX7EhPtkXkCcTaZiEltpv9HLTbrpzWFRmTtd+VFSvbfT8+ETlJL6bca+XMBX\nhpUwUSJkMLID7DM+66crU+75/nwH7FIwyy5snXHd9enzaCgGiUCJ1baYAboM\nZ5b8Aa7cImpK6tMok05t3M3xPJOQZp11P6E1WV15JT98e3mTTQardaS9x9ay\n1H4M\r\n=WJ+F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbTj7U0vVpTgdQSVKeByNUY6IVDIlpW7YEaULbktVZ3wIhAOjIDM4j+XlFt/Rh/d3LCVik8UCVvyPrcnULCmNnifXf"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597776060158_1597776068772_0.45259510493862076"},"_hasShrinkwrap":false},"1.3.0-next.1597780234590":{"name":"playwright","version":"1.3.0-next.1597780234590","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597780234590","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Ssjiz9xiJDSx5LTqwnF230ayBw6+utJR1zSlnPA/PwoKvBs4hc4AMZplsyUBQ4oPCo8NlTEq9mW/AzOnF/uMpA==","shasum":"4bdd5cb1049a44fea7556d30495e711d67e39510","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597780234590.tgz","fileCount":154,"unpackedSize":2391537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPDEWCRA9TVsSAnZWagAAXZkP/2xD8r/V5kf0KQnv727Y\nAY0k8Dafg/gsHpw9zeBRWH7+m82bfF8WtfiHT6eZgQw7f8HTwMsxzMOJaQlL\nKgwpI65FKGDz3IkQlQGEBCK6oiTy7oNd/zJhBLZFylHVRQAoF9ANnYfmnccP\n7ccZc0DD0GzOfUs6XqiqvEJ4/mBTMj968mVRkYo5nPn64Fny3GO50xx/NMiK\nfrZeSFefxREJ2CoqZOxF87wgnPJToM6ZsNNhv10GeJXI7o8aQjrNk+Q3vVFa\n2GFNfX8jPRcm3pZqMe/tbQ4oi4aQYIfQvetJTqBFm8Qu2fKS0Cnq+qhnrMqc\nibshvUZmxGzPvHYsGdASGjlO4D6ubeFpv1I/8mUANAIUzkx+cIdn0a4wNkW+\nbu5Zhhg6nYYfIqk4NvTZPIuN8THNIl6JUPXugYvvoQ8xDZGZ3mDvZNL7570P\neeFvLCMGAqxlASKeAR5OZog5uEneqQnlIk9TYBZrZKEf2HIhreKw/mL6/iqS\njcVhqKPGms5nwrS6+ggKAgFl+ypS0WSbH6wUkG+Mcrc2CPB1f7VlbnTlQlXc\ntVMra9ICVQNydvqvujg6NCWKoFqkvY04k4ykCbVLuGZK2WFudXQ6qpajthS8\nArf6VCCKzVUxwJ7rcfnPhrj2r2yJ6V15f8pWhXNdmebY6ZGc81Ey9feZTcCS\n828a\r\n=M+02\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzXdLatAsnirKwnS2dPBaLlCEmFlszDQ+aEZ6kRB1XgAiAmoSVFup5Jwn5zT3n3cUbjRfCo37VeIHOhCHA9g+kp1A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597780234590_1597780245309_0.16275090203803755"},"_hasShrinkwrap":false},"1.3.0-next.1597785252362":{"name":"playwright","version":"1.3.0-next.1597785252362","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597785252362","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-i5UU6L6fjeAt4x1I2guKfMib9fPGAnzlvbnqikfTDKYZyy8Rid2DHB8/eYiD351e1NOguXUlMOZYilRhSFjXkw==","shasum":"561138539f51c4a32830d8ccd69d33add4af1428","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597785252362.tgz","fileCount":154,"unpackedSize":2391537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPEStCRA9TVsSAnZWagAAL7YP/AgDRgYRKHq9ZO0Ybsms\nisckoqQWsrsY6BlD9rvd6bPQVPPso3HX2H9lK8e6J4KP3+pwX8er+ZjhqH0a\nHEY4Y4iwIYh2c2YoQGSrxxpIdTe4SY1e3OE0DMcJWib5t39IqPkmxvp3oqdA\n66YSHuOJTgX4GmgnT2gL3NHBUCe802pIecw5JPWCkjGn1X8HLDH/wl8y4Brf\nNJnfOidD5FdYwJjzZ9mXridbjC47SK8wAQdjB33Cxi54eVv8wPI1NcLULC2w\nmFM/NlIt1nnL61/mD207uZF5oryHFoushbl6tD0E2hwVrVujO2U+TPEy1d+j\nhMFBX+F5t95QdG21FB+U75J0/j+2L1VW5Zh2OkQZ5TzDix3y62mNNQQ836cw\nNjICjlUrrzznVgwpJkGPeoDFlxBq2MGNDFN5HAzcE2/ENjTEwkkdqalCjfJU\nZdss5Iw0i4a8YeYd24IEj9R3Uo71CXNYe7vjeYWKWMnPmbpQsDB7mQEgYLxv\nTM+GXq1y2JJMcabwwokMiz9RSLCDYAPmmaFnA90uReiECFnqb9RD3sPG/3Zw\n12y4YpCaYSTwGeDENmgXEN+hMkSLF0SslkZigoW8xD1wz4cMQo0lNzsIr3c4\nABlS7qef9BlYj9x/vCWnTaq2nEeZvRxkemfQjW+cS1R+TlbGn4LPvHC8P1d+\n5Yox\r\n=4fdO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMsdFH903ExuLWM9Xdf2bfrvbaU+38a9tTrDy9EwdwUAIhAJMatCyWoRH36wl8XaADwd8lvUIaWnQFqCSrCrSKKFWp"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597785252362_1597785260911_0.8102721007401761"},"_hasShrinkwrap":false},"1.3.0-next.1597790405448":{"name":"playwright","version":"1.3.0-next.1597790405448","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597790405448","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-367Q8RYz2HZdn995K5SNn0LhdDwO4cUoTX3m/rAdWO2aIOrkNq/UBKh6SSM0r1qJW7k7rKz0MqF8kDJYdCygng==","shasum":"d5ec591dc10c01db1817a137142ef2f18cc1941d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597790405448.tgz","fileCount":154,"unpackedSize":2389805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPFjNCRA9TVsSAnZWagAA5CEQAIOSk8ZTgDUQB+dMPuvS\nSmVutcwMUqrNCja3qg05ICD8kcff5sj6Txv0Gqcg7qiJudXqC1jS/6S5oxF3\nGs64llhC+VrE40vfWskcFVQvHtzQYXSOc/pIoLPiUx9rHtlia5SxPvApwrSy\nLjjl+iCXVSus4tdt+xThebvV6of8/dnWthFZjsADb8A/CQrKsADCkiJGzxSJ\n/FldC9wgWvarFco1zKzndrObqnL9EuS8mpliIqgd5yB7A4zuQjiiYgrcjy5W\nTWCicfR8QACu2x2w1MiW3nMmrZQWxqsOk+bR0HvKPQAyxcIh7KsuEm3WIKgn\nGl8+1sXpOgr1GDwEeljYgpuoMsOY8MqjihZ/HiZnuvqdymhByfOf1ZVjeaQE\n1yq8Pivh9PMXpyqG23TAUy5etB3HRVvmJB9bX05SpwuHLNdUCtv/DO+9AYQX\nCia/W9SMdJ0wumAwDJQa6ssljc8nPyzkSFtXEsuy+QfXZwTISwi2U8spFSWz\nMk0R4NE54QsxJqcKPXUzywgk2QepevMuifHVCnAAqo28w4uolx+jHnUbzz2K\nvGeAyDt2Jj9dOG3eayDQPO4gtev/FKV5ZhGsscoVNVXwbatUrp7Y7f7RVv8C\nYbekVQ7tW/aALL5S+BkMvrp9hn0ioFVO4xaTHhLHPazxeIGRxdlVguMN7tOp\nV65U\r\n=qCsk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcgeQ6zERJxERyagOwLurrn6fsUQseyr8iw4OwRc+omwIgL2i3LyTKvsbdArZ4DFYFPNkPwuFx+UsU1P8oeVy1U8g="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597790405448_1597790413277_0.0864370687940994"},"_hasShrinkwrap":false},"1.3.0-next.1597794391723":{"name":"playwright","version":"1.3.0-next.1597794391723","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597794391723","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ScxCBoseAu0gQB3Wm3OmqieacjbLB86S3nXGPqpPCDzoaAdX1UmYlSWp2ilzHWC0wPZH1U33RK3kPPz4GbIq3w==","shasum":"fce831099c428284d2d269c90603cc9d73a88393","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597794391723.tgz","fileCount":154,"unpackedSize":2388476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPGhiCRA9TVsSAnZWagAAGmMP/AsjnXnPIVc2xMDwiZw9\nz1p73t2QRC6AXCeCUOIUaPEk/nkOrYXlbiT34g9uQ/+oWzcv/RvIuhlw/0hq\nDjcuPIe3BofUkwDy08oZNXgTowB4kJdBEF58B+hLHISMJMjh6D1ynnJPyZ59\nJhOZVpPI4xzJ3auIIr9PzQcVWXD0KNf4qeYtkjJaYj36kmwhFceOzxmuKyVz\nlYNg6IFQB8KYoOF4bKrMNe8L5QocTAC4i9xyYSoWUhPOJmJwtu4At9NEXs8w\nJ4VDI53SvnCWhXjqePmL8qoLU9BUN7KTpbDpglMWjBuhPEaP0w4agnHmCHw9\nA2C6Lz+gu/X3niRCN4eOcF5NSpsobiv34ARXinBEmMUnCeddFUf4x1XOwz8c\nT3N5emLWzEPtWScsd1b/FSm/pm2tIF+QzCEe6PgzvPSaLPokb+xX3Zx+YtGu\nlu2th4i2zqiXdRECSaS7OTQzC1Gt+4F8uRkMoHX1CEGRBguPAWX4ZS7fY72S\n2PZJz0K/cGiqfO5qZCyvpl4yMVllMMg0FlBib58sKKiXWlOZUm4pGZgXXgiP\nGmV+Mef78jMmmX64n+L3GwBrRPioEvuw+r2I7Uo4t1LffqheN+hi9uRCYoBX\n1nwN+yzyRVPpGyn+U91ILrwn9RK2jgW95dB9Ew8HattCPyB5L01dfxb3XSde\nDNJO\r\n=cd3T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEWkL9eCl+8472xUeLU+xO6snqIl6IwUWlwzM0UVnfY1AiBDYJTALzx6hoNXBLxrDRZfxUf9TvNlDVZ67EHREGLVMw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597794391723_1597794401607_0.9698422540165084"},"_hasShrinkwrap":false},"1.3.0-next.1597797380594":{"name":"playwright","version":"1.3.0-next.1597797380594","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597797380594","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-TMnINHU0tbLmBBwv/KkMqlzkBKNh4Ht6qHgu+tMifRAbZF0ZBKdWt6y2eMdhv4Gx6ZuIgbPwnoAKVy6Ft4BDnA==","shasum":"2bcbb7c9ae7c12b24c13dc6b38d3302e48a629ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597797380594.tgz","fileCount":154,"unpackedSize":2386007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPHQRCRA9TVsSAnZWagAAwxgP/jIytW7g6MEFAwIxOWQX\nXlioTUXsTQSN4ZMv81kDGRDzNBp5eM2rwL0X8lk5w4chrZPcavvDY8oojhO9\n3mu9o3vBO0oH18SwTquYYSyIpDqFOVZUClfHmt2+HUks7DfTrkfJ4PT4tx7t\n+JtyaFNdSVGwbilnzJISjaS6NPNcPYoB74KDgEVsgC8mkwVO5OTv7A44gMo+\nR9Kokq1K2wBs5NIHKBpvW+9iYj7MFRccamAt0fmoXvIMAxeEXg5ePdCZrQi8\nlxZjf1VxXolzQ58QJS3n6Mw5sNcFsFr6NnW4l93EI2iRcPEt0N4uN+TbVXUq\n2tgGNQp4Wo0rZKSuFR20Arr739TV5D/iCLuCjJcb0glL1bgQ5j88cs0H6L+h\ncMwcb7q1aVXC0B5uGAl0Exi9L2wZjsWBgguNmgBGDsUe5p5TlZMj1ZUUij8D\nqiiboh+PiZ8QRNT06+4EBvHnng3WbUtA5OCmHs90lnahbQzEcLnXIYNQlMc9\nPszrDsjfEhJpbKDnIKIaaoCeMkUhMtn3pwn7BgAfow8aAfdlNx53b6j8ntjC\nlSIhVhb2GRXi0+qPOeETzbVtPsVu5iekas+s4XRKmHxyfjuzV2KwCENPHClD\nhq5PNHPgXgEVXHAKD+eVEnSJXdzfjuw6VSx4oeBryBqBWPjKKg45X1qgG1Lo\nUzN6\r\n=T02o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeFsThXUnAJMDu+1FTjJn1P+Gb+X3ZXklbT365k7DTdAIgBhs74VESeqb3ZhfEN3uQc5aGcEFqkDV+6/CjNX4BzPk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597797380594_1597797393227_0.6961291502177571"},"_hasShrinkwrap":false},"1.3.0-next.1597801908419":{"name":"playwright","version":"1.3.0-next.1597801908419","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597801908419","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-uEJNFOV/VwAQZjVbTIiqJhiQbEIr0ItRX2LQWKRgD5Wi1JYzlm6GlmvVGpv8vBciNgeC6oAg5g4MQerchb9iTQ==","shasum":"b000f3cae0e9288d704aca3f520a767476193085","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597801908419.tgz","fileCount":154,"unpackedSize":2385006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPIW+CRA9TVsSAnZWagAAxn8P/0kIe5EJWe1zGgZqgfbz\n0TFIuQuKjiEUTnfC35P2U1f0z7eT3KPmLqxrXH7YUTospo6gReqgj9EnMKGK\noPwdlf5uOLNgy1RPv0Q9m2h6W6lZMVX+zxBkHgXlIqa+0NK8XAdkDX0BA/H7\nt3CI8aq/R1N2MtDOJrBTVwTJu8W9pQOGGj9FyIoHM7FE3pfaawSSugkdmVR+\nuotYA0M3DDXcEB0mDAt22vbL9ls6jc3+f7tPMI4RhG9ODBvtDeP70j+bajuF\nJGqAk83GjyMJkIOz+BemG2E2XlMkcZ6757YV08JOdiHQFuDLBkmtVGFnrMbX\nvEdtK8xOLpriK3t42mPjlaDQWp4PiXhXiS+cXbtHurXyxSPV7FeNHmxvMGBR\ny6rlbpT8giECWbpTq+i9NJC/oVFRxCMrHYl9EMFR1oCfX6qLO1oJwUf3g47N\nm8cNiUEbRuZzpAUJsjXB1oYR40SkAASt4bkXMD+nn5aK8PeQIPuiA+v3Knjs\n+yGyVI5UeiW9I+lvyVxer7b89QiTmY6Qxcd8Z8xgZcQyBvRYpVEU9M2JWTRI\nzegrOmpVrtVJC11KJYXgbtLqPMc/wbm1afgpmbRWcIWm/GO5RFRCYY8bCSaB\nHR/zLqtVyQ10gZmmx0Dhw7uqxsWx9vR1nOZI1zr2vdk/kCknWRVtaTh5IxEP\n6zVG\r\n=gk+U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFhSHhfOKrEr1iUTAmJ3hwpg8UBXkfSWQ5PAFqwL/gSAiAOtSyNVKejpSesgLE2PNaKWZxQwvq31dBC4ouhG8UCOg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597801908419_1597801917400_0.5392753201815055"},"_hasShrinkwrap":false},"1.3.0-next.1597802279156":{"name":"playwright","version":"1.3.0-next.1597802279156","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597802279156","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cOE9oZGG1nXkrhAcKWeK+Ebuv4VQRHbBgWbPqt9NupTZPWRLIaLd4m1Ou//xVFQIDFG41mmjYL6CEFbdGm4JSw==","shasum":"880002d20e3becc95d625e4105afe8d822ae0e30","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597802279156.tgz","fileCount":154,"unpackedSize":2385006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPIcwCRA9TVsSAnZWagAAGY0P/i1u5YFH2AvE5X3Crrde\nZ8ZnrQiPII01hL+CuKL4y8rdll9+1PcW1vdgTbTgi9EdmcPBzJtf2VG3hKWA\nLiTdN5ZT4YbX7+fYZst4a9DOh9IC/kANWA2vxbJ8FTHgPSQd2vx3o1gKszOl\nEVjFCWLjA/7jqRvnUYmKcQ1Bro764p4LcT0gc7Egh48PgqifCpRNh4sa7hDq\nXaZfQZy+xen+6JKJulQxZOjBhg4iqtEzkt3m3VE7rpIxHMpCVUSdjv0nNUTt\n0HYVf+9yZIt2kkg3Vl9ZjPHisalEKihRdkggNYpYkjE0+pI4ZP6SrIS9Dzm6\nNV0ZU5RxawdJD1tkCF3TwWi9KhxmNQvPXyUMKHKocdljTegFo5/sqkBwODG5\n7t9uGXYWqyrJidxStXKv7NF3zAhxhUs6PRsRdXJTfanAbtPbBCRAOHtWy7yn\n7dqKxi3MOJHoY+ALjdDBUxW3VrKPAyDba3OR9nR7dmfQ9k4lZXdVTC7H0GW3\nBHDQ/FjgDmXuK/NDIZIh7JEPimtFG1wUdDpeJz2HdJ6y8gWLocyeKxFN/NnP\nH3ioSFnOyqdvcvmvl4yxKFgTsHqxtNiIotC613lgEsCOLoAD9a5Ty9XJYYW6\n2Mm8vlsAbrcuzj964TlJgikKxDiQdGz2W9cJXH5W/ERyTx5CCX3JAR58oVgM\n8yyL\r\n=sQE6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTT0BENgcg1VkT9EcVkIl99Wt7jnHHun65LKrWnCqHdAIgZsxXRlE8UYV2UM99rf8h06hxZ0P3sdMBgnrm1UvPP30="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597802279156_1597802288171_0.44535326489310023"},"_hasShrinkwrap":false},"1.3.0-next.1597803314508":{"name":"playwright","version":"1.3.0-next.1597803314508","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597803314508","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-yDUIH3GanthTHhvVcYPm/ddzHGzvGHSexeaPM3XCGwiXolVOS9ZspTFgmX+Yci3JLgNodGEn3sOJg0d2ODje1g==","shasum":"da0a69411120f6b386aff6c86399bd906b00d1d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597803314508.tgz","fileCount":154,"unpackedSize":2385686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPIs6CRA9TVsSAnZWagAAL6oQAISygIBe4nyGJu70zsRm\nzYJPPyOS4hYFpT3T90ax1JnxQBQHuZyMiaeoIoRZgLXnAi/wtsw25PjMn8FL\nHDC5FB3N7KOQvrrAEpduPdP3bSPAlMstdDO7lWS41PDEUp7BV9tdCUGXrq9u\neLq93qQiM/wGzysv7qqr9MOImWJ6677tE/cSWacsU4A96r3tsXPgw5NGmrGi\n/OChVVULOVAmITNZuzxrNV8/d0TDFDcbb6556roTT2+0Fd8x3+vyY30kt88A\nALEojW0tSMK+EVH1rraL0taZ61JX/4cZlfBApn4KaEwYI7RQ0PT4XNF8+RC9\nzCQqXD8y5xLqRksArvY8EIrBXC3GbhCVko3rcaK3NThORq0cEvkO0nyzzx6B\nYdbRphSB/t1g42X9pwgYvJMA6jUIuYqjtf3rw5hx6FLHMIqvfY1efVBzLgGS\nxVoRuP6oU5N4+s8/R0AtoFDURxyVosuS3HLmIYuxZUw1bHd1R1WiJWf15vmi\nqmNHOMEiSu+TpzcrobstaP5H48dJvNV62j4Z7QUu0KfhpqRYcfoHSCgGQkuY\nJiEeEq9Y9MQeyLzNKYSg3CiYum0k6nqa1tloKV9JxYofACKxyUHj6aKe1usK\nZyhABR3PbaMaAtIf94Irb+AzWW3y3gPTsbzDxy8TKTKN9I1MAkClHK2RqeU7\n0/to\r\n=t0O4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkTf5dgH7PyJD370MnYbFBzECLl2PpoCVO6orUsVfbpAiEA1dFgJoXu6Bc7bipAEv2E+Msil4eYc3vQhYWY6LTcvZg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597803314508_1597803322035_0.6071829959985668"},"_hasShrinkwrap":false},"1.3.0-next.1597807700198":{"name":"playwright","version":"1.3.0-next.1597807700198","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597807700198","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-oRLgVdD+GFUn4uJsSIHFpzc6cpFmoq0KGafVWUS6TrqpmlJj/IIwhMUHjKklsDJ26vyddBn1nF0KOTmRuQDyMA==","shasum":"4f30a0c69caf7e1444d3828cd36a1f1919f34176","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597807700198.tgz","fileCount":154,"unpackedSize":2385283,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPJxdCRA9TVsSAnZWagAACtsP/2OIAetkAjTN33U9dUMw\nWFUDpxfSnl8VCbdgz2rwdjbjEOCTEf8arBdNdKxIrImQHUcGaJnaRME67gn5\nyVdz7O45F/dxzoYwVaE81TZ3JOQYVkp1GE/UF6bTBr31SCXE5Dup+NcOLqmt\nXBncgy/FnpMD48xoQXs+Vn+iJ4jwguWEoaIZl/2nMxt5Vj7kdgjT5pwV7sWq\nrnl0A1z4i0OLqRBBmEV0FVGn/CDw5g3zSCZsj6dADKf4deHllrl+crR6NarS\nZsc5VStk0Y5aMhPiFWrkmxybnWzA4Q5MSQ+hbmDwBaoN/EyYGe22fLY8FoTo\n+WnsQxAZ8YscR8BM0dVUZriHqut8uBmFRhwRp48bJLp5D28j0sTGDtD8nyO+\nXSNmfXu2U6Yv7lu9BqzJHjROssR+p6YYIv40i4/5DKOMvGhpoUGIciADePmD\nWxM4NP2y6GYi6ckQ/LlUi6jdonohie4aR81/xA5MPmMaJK1wYZorzilgLEG5\n+uOdHvSuUO/iV4/fL3kBtDpi2GK/y/RGzy265lQSXxfH3SSebxY8xqyqQJSV\nLZ0EzSOE0qyPc4GoSj2e7MZjNtaHj0tXb69I/Vxtxv4RyrQQwKGVMU6UJCuA\nFutuX6t+LS+OeAUqxCsf5sSvku1BNnEhvIqe1JtYoqJ1oBKhtdMPskZMJ2qb\n47Vh\r\n=070+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3/XtAiJWLJ6UZiopvdqeOSDcrJRj5oeUHMYBCDQOMqwIgU1oLmu2cF+wqNQiqwT/HPyO40mXraicFdXv1lKTp/7U="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597807700198_1597807709016_0.8984297710438767"},"_hasShrinkwrap":false},"1.3.0-next.1597816984759":{"name":"playwright","version":"1.3.0-next.1597816984759","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597816984759","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VnxjgHwxDbgBzhIueNQuI+a+7ikhvcuXWFggnhauB1fN+0uDZNmYyGxw9xS5VknCz66Q1ycFpNVTzjmzvfhhAQ==","shasum":"484403b32e8168149be637a911ca6e86df16e7b1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597816984759.tgz","fileCount":154,"unpackedSize":2385283,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPMChCRA9TVsSAnZWagAA97wQAJZDxZi1L3r6Y84U34qr\noaeYCnOPuK2aSOKwcbmMgViRYwgFDAjrgKPAfVSB53Rqv7BwMC0j92k266lW\n2dhCSsBZFdUish6+vS65ZiC5d0XzBfd4q083sjcS52H1zXhzOO+cWutiOOUp\nCZ3SFwNLRc9rxuuQTYp0HqMcY9C+RskyEVJNgyWbPSOan4elJWf2rHakmgaW\nrbSUoCoR4OWehuGrSG2sCsUTarjcvjyIz1MYy3KdeK7VhtKkIig+hSwc+QQM\nVZvQeYrAgkyv1NfGRSsnPvR/3XlYxTA6oHBXDSWFoiFf/u/PHXcXdBIYvQl7\ni4WSBoAjN0Ol5d10PYoIwjWSW2dd4fQoSeQN2YW4YpY12a1gBdUXhnrY91jH\nmuceCC0f0Bi6TWCFIMCnLjt2Hk3CCngn5G5EicJ/WBj7IsdiR4g2rjuK/cGF\nA32Wt1LOpFQT4zlEjri9MVhPQyYHZKOM3GQqgiWsc2XigZtTKz0vYgA4DkUT\n8Im7MHNSsei7XcNB6myN9YN/hijhZbLpGflJXvSC9F05fVUmtoIOEVuZB6Ru\nsibS6wovnbvRO0Hmen5TlN8eztEinZe3LkqvQC796f2TtIwXSvT+uBe0y+w8\nk53oeKc7s/Iqg860naL/29IsJdFLp5RnKa4NN0GMIAlkEzlNPsys2CVFjxXv\nzK6r\r\n=82EV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACNPxRCQXyq/UhP8wDgxw4vek7qEc76kmcI5J1zKRS1AiBUkEayPi5HeprInH7Bt8f35NAFmoyqqazxmjiHYz4zNQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597816984759_1597816993204_0.6868260247905462"},"_hasShrinkwrap":false},"1.3.0-next.1597853612529":{"name":"playwright","version":"1.3.0-next.1597853612529","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597853612529","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-t3L/7pimLe/g8oXFZl/sRO7Kjcb1F80tYjkD1bjF3lupbvV75lfW9KNxmARgbbFN7ZFdvmvKm/THa936WbC50g==","shasum":"fb7b40a3dbba58b39deccdfa3769a6c99692e750","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597853612529.tgz","fileCount":154,"unpackedSize":2385283,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPU+3CRA9TVsSAnZWagAAoA4P/ibE+zj+X8aGQE+2DRXv\ndIjjjCLoAly+/GbbEVCJqqLIsxeXSdQj7o7V7pXcjBtdBzAJnj9JRWEFCUp7\nKRL02KlEJqLsQf4w+NQKTYkKsVUl4wnBmkHIvWDWm1ohB0OwCQChS5af5VtY\n/XNrl6tRjNL9pvRaBFM6LN2ef2HeYpW+GzF0WrBShPoIEPjM/cu1P/L4icL4\nSEb+NoIm+twotKMY/kKof2kYDgZ59Ved5S3x5CgcoqLj27fLxhh0uwFuzgB6\nngWeaEnI3ou6+wHZnGziK2oMilXEI+L9F1teyYdT6QFak3FxT/8nyoKJ4HJl\n5CvNueOL7a6/pEKYWE2ZizgBjyLUvh1IntL974IwvLKNDIefKMZTo/z1R2ZF\nDsRCwAY/V13GzdpTBEnVvj5xHjVJWgc6KUz4aWuqhu23i3TrY/+geNgNjx5c\nN0haFfS/1DkYEvJXosr0Ehk1sENGlyVrfZzGkBZtaxUdpHLNmV89lHdK40gf\nowWUrJZHqdJbwWFbtJ9SG8jGrPo2rIYRhnj9deeSZqSCzV4jxi19BAoCcO29\nG3SML2s9ryYAglHcu97VwM1LEXCC60rnDgi4bVKR1hDByVgUAavJnRhl0kQN\n7dj7MVmH9rq55We/OJIhwE8AVAlGt9xm9f4WhaeAyy4ndj4Cmy78HFErch/G\nhP8P\r\n=b5xS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG9VGzKGjXLA7v2m21tq2K+0f+bRnbmJpLutXwb5rPnCAiBc8fgDANvOyC7c/2QCEwijksy3CGVu+BDmzZVEnvMH5A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597853612529_1597853622657_0.4092581959212622"},"_hasShrinkwrap":false},"1.3.0-next.1597858435779":{"name":"playwright","version":"1.3.0-next.1597858435779","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597858435779","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/GrSrbbt28PRNRgXxPAERD0eBbFBGfCUMfMtjgEVkDMMymwbu/PpTo0lFHamFJ+6TaVkAGsAs96Joy+mDuX80Q==","shasum":"abab37a73712b6136f16604a2472fa1091f6a09b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597858435779.tgz","fileCount":154,"unpackedSize":2385195,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPWKOCRA9TVsSAnZWagAA/KEP/1wsku+7uPmFDw/O/ujS\nCGBjmLBPbE3huzuK6u2c/qp3zggJtUAp79k3CVmkN6qgsQWJkypCGqRmytaB\nNVaGbb2tgyLFhCeio4oigPSo0QJA0+im77K8w8zmKProVMxOyww52EQDe7Am\n2u8153lZ6K77+iu1P4waMTB/iB7sqGdyTEbs/LKIOG6+N6kMOLNwLdApQTRK\nyU/NPkotDOLIUMSSC3wMw8GCaQHArwRhkW6Laq/jd2oCfsjXAbch1xKC4RRi\nf2kOHqw3ywrM6P9iQUuT0Y+OAHVQ0f1uLNveYle2czTsSwqp65eIxw/vibkO\nCBLNmR2HIJwXBvobAfsN8FV5X9bJkXQ0CtwK9yc4gWx+ivhcGJCxjHti8QqS\n33gy2Ag3p7gVnoblVyhgSSb+ev4exTnZcMsGnYGhtWpsJt9AK20FhNimmCyG\nNKgDPVyIkJ57Q+eaideCxgkbr1qIcn9266eEaW/VZopVrdk6Q5Zeeihwb9BQ\nIXHm/cKaKV2rvHReS7c2iCgP2GOgvMl9/ZEh6t8AalkqWMgN+oXIimrq8fnA\ncYFdiE/J/iJYqPi/wkCI2daPhKpavlBYTc6vJXZr4wCkjs1m6TxOnM6uhSzc\nI7y4nyW7GHavWO5fx7Zs7fH+JxG37UQUo2U1KcWyfPZiaEZoSf0JhL+9D8dD\nZghr\r\n=9SCV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK3ftgVyWX6B9JOBvGI7OK1LP7Y2HOd3UVdlx2eCiX4QIgLxnPA8O8MxFp3CcteiihNdN0Y3GHmEvL1ILlp8bEccs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597858435779_1597858445648_0.7586328932394748"},"_hasShrinkwrap":false},"1.3.0-next.1597866464715":{"name":"playwright","version":"1.3.0-next.1597866464715","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597866464715","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gSYVhNfSqNcS4c0YCUqBWvrYnvavkdRka5W8YhUno6kwDCov4z2IFavT2Cl2EEYC98X3pamSA/4sy6FZgON+gw==","shasum":"5c7424654896153c3d754cfc4514e34b16113b18","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597866464715.tgz","fileCount":154,"unpackedSize":2387119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPYHsCRA9TVsSAnZWagAALQYQAJK5WQmsrj6JSyX+rmja\nQGf9YDuseTp47HIehEs+Yoxo1s+C1WqraNFxWFiejnlw97/xOY39t/SK5ofx\nbrZfpu57PnO2mC1iA09fqzDKXoEgeHJDDWLY5vfjlqXmNBG6Ny+/k5aANrNr\nM6yzYniRn976TIif23VIotpjTsOJK7w+Q4rlbkXZfwvRqX1o8oZ4byIu43Ad\nyGINUBYsc7NwRYfXP5A1R0+q/8rDKtZ1cGFZ6+H7/y1vIhFt4BDJTWYL4EGG\nc9U26v40xQSmvs5Q3rXIQSnyV6kCOUu2N4bWR3U1aHBNLox6LNjumBeocOi4\nm6+7mlak1dx6IHzn7wq3Yl52MggWF9BlzAe6oG0E8Mjhj7HKnx0FUfHPYwXG\ncM98ZztOLk9oV4f49tLYJbXN3IfpQNdU1WVlcCGGNrvgvF7nYaCZqLkb3iK6\nDHNXdeKZdi6vaO+IdnTNet2AzVDC03F9cKhrTd64uIhGkIbcYvSCfpu53N1K\nyFirBdOTg7ecnl/xEJTcH8oIsnEh2+QMBIYAvS1gTXCDcHFGG8CWNgP6JZpS\n73JWzpzurcabz5OD8hEQVSMY5S7HPQGlaw0khjcSDFQvaZ1LINHOQwkIG6zV\nU4l+1DYdST+a+dVhaUbT0eKm9wTsOgvmYqNmXkvZqzu6KUgyfbtBrqsjwcsv\nG7zi\r\n=zEhh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpYzOh4LEcWnJ4cR9pYU/FEeLg14Bn885kyZoCrqD0MgIhAMQhbVYesBogusUkZQPlGZXSOzlUzXCu/YlXCqjsjOAm"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597866464715_1597866476068_0.8367093774484244"},"_hasShrinkwrap":false},"1.3.0-next.1597867084996":{"name":"playwright","version":"1.3.0-next.1597867084996","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597867084996","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-mmepZ+Ef8nthTgu2i77Ru7HW3s/bnH+uxSzG0aq+tWy647j0mfFWPjdJEcV36pHTJBbJayAaIhBSijpPlu16yg==","shasum":"8839df6a2dd7a212a5530208c74d0daaa9a63609","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597867084996.tgz","fileCount":154,"unpackedSize":2387119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPYRXCRA9TVsSAnZWagAAy8cP/3Q5Skn/9AEWFsvp5fbf\nIvo7ULh4axiKcVi0vmBpUKBynAjYx0d0RBxl/v40MP2f+SLem2NSTSKWvzvY\njPyr55RlJbKe3E7fOGHqugVjgLbcu0W4bIwkN00KublcfJ/cxL8nsZ0C1TnF\n+vF0OJH9qcwryhBRRDVM/F/R+aFf8NN4Pqc02kyfFm+SsfM1u4AhT4gMgaFA\nfd44uHZbB1Gjc/9Fnz6zGBvCd2BlfivsqONijFtBLnhFjiH+hz87wzLWYnp9\nztWZyNirRpK4bYnvPy5BxgqP+fer6aCSjWD2XB9zAk9pgqTOD6+PS82IoiBl\n/XBerqDFnt9apVhjCk+QdykmxItOZkxz0TmqeZ8UB8AiHkXOg/NYQ1GcVFLz\nuYT86/95+r9RvnrG+Ug9kgJzdJ+160NRIIbnJcv8FvE/tsw0aS/90uPedCys\n/vfuIafWUhwZb7wENpYmwaud1xWzr7iS/RWRsrjxk/ME5Lz2h1ANG/JOasIR\nF+OhhWafkzstZ6P4iN3T/bdh+LsY0WkT3ikS0nCrFMh64jw07UhVStInYE/u\nmZV+iCLp+Gmi3Cj8Rjv46qBtLxhM5jPtKwvEyFZWyz2oiEMI6q6KMTdrUNmv\nqofa+pPa+dIV2n3eL6QpNS3oXPLs4xrhpZmfEtR8fk9chJcqW/AoyziRswPX\nYvut\r\n=yfQj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOF4AXF8+v4rvmobo13dOFsCdy9fX9F3LP//0/jDho0wIgCqoxtwnqpfBsbK4OxOqFxHWJrcN0Iv5MgHEdN5rvecg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597867084996_1597867095386_0.6495127311380273"},"_hasShrinkwrap":false},"1.3.0-next.1597868989232":{"name":"playwright","version":"1.3.0-next.1597868989232","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597868989232","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Yjk5fEghSCOipkQpxAoWKTFJ7eWRgws9KPQNbtzebZtj/uvzjoIN6uEM1EG/pw0RgF98aLXzN7fBvUsjBeNoCg==","shasum":"af1369bb661159115cf98cd06f1d50528864e4cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597868989232.tgz","fileCount":154,"unpackedSize":2386010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPYvGCRA9TVsSAnZWagAAINwP/1zeZAMji2hFcWeOwhFA\nwPm7mZWLN9ZYU74qyuaTpCj37J9de7nw5bL8BcDL10VFS9M6I67C5J4lU4jM\nmyM5dcPlrD0rt/DRjZomMTtgD3Qy1RwSiHLaMb1SRPMZEFJufICIzQQqi6Wm\ndPJ8o1nvlOu7FSitk0uFVdmphOhFqHrWuVBzKrYI55sOWhOG5z6zKnkrid0J\nvBL0S/bRuS8GB3QruKlMkSGlo4WyrLszkR7WVwP3SnupMqlE0B0HsD6aYar7\nUnnaz0++p9Yd/8NxXSndp1vfovf6sgno2qL/p1+RlhZHr3I+1ihHOW4PGW0m\nUIkHDHG8zn/4LALFJP2TtBLaglSwm9FVEtsoHQIGsSHtPlvy+5H9JOQ1cXnz\nU2zi6ae0Lx89zavUGJYpuenwUsVxDO07rpEeK73RVXu4pPcFUV7cV+Iv7p4Z\neVtooCBjID0PhiygvuN+xbjlL5gMuQnVswb/diEXEQGZmESLPbx2/rWSUjC1\nGKFWVw6tDzNnBpwRMV4A2jMVwiHgJBr90XW3M1W7XoY5GR3EU9QyEeaNg0ek\nU+kH4w5BeMVaMvk6W7RfqwduqtcolOSCl0zfaRDdeB92CxpGuUrq5SCFDUmY\nBaI38xc04mx+1kb1caebSlNDlikqTkghv4FurknJDoCZvENu2Pd7sXEfToW7\n/bXF\r\n=IqR0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDd+AmbG2nJEEqb/IVMeGBYz0KYZ3UL2AmWqWN8LfYOJAiEAh1XPrtpFtSqhFXNszEOaiqdo6gUpPDMmUsA7MPclPoY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597868989232_1597868998050_0.6574827780949353"},"_hasShrinkwrap":false},"1.3.0-next.1597869167427":{"name":"playwright","version":"1.3.0-next.1597869167427","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597869167427","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-GsuBmJQTwQ6Q6iuULRdgvegdd4GrkgSyKgUraa15S1yBvscrfgho6TGScLT8l+CV0FU17ldJ3nrqZl1vhhQt4w==","shasum":"3fa57f236ab196cba7999e2e43de06d59db30b99","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597869167427.tgz","fileCount":154,"unpackedSize":2386010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPYx6CRA9TVsSAnZWagAA5yUP/3vBJeuj0iLHWlAzohYl\n/JYtjSknVJTj0O99ZxxUl9vO8T/VTSyBFefedUhkpx52eLAnRjIP1flOd7gl\ny9iy+4fFjpLqp2Hx6mR+LkXPrngupnoWgGhowK8KVrOtsQ6tiYZ+ZKCwOUA/\n3YLikEto1MqvEb+MszUG2f3gdtRkGs31xly/1qI2bUUZvHITVssA3hMdPn55\ncYFEhyPxWG5tyOR0n623JB2MKxFuZ8a+ZosWxCefzwPhn56MbFT63kNnAA3E\nyFBi7Vc5j8JQfgnssU5aclhkpMaZswNyILL5an9tVFDabwZCtoRyP+x+fduY\nynOJb8O9dhNYulBEGNE1PAWr6gNVOrGtZ6nMJcT7Br7KU0vilI/i84CuTbMF\nk+XnWrKQMQ49YTf8s0VE4swQ54WJAbw8zUjcokSS043KWSgVH4qDOrcdqpk4\nc7Fb6G2Tny861TAI/QPQwxy8I/2uY6b0S0SPuXe04CEFaweWTRU/bo0RwCt6\nS5nWEzvhOH5A6XQYL9xv1Vnr6OSP1pnlzKSbpeJjr3QsBKStiFEAlshVb/gW\nRp+w30CfGEjcFv5NYY3STyek9nRhDuFml26M9BxR3bhOxvslTrvLhWtiYX90\nFS8mtwIuLazlYicVSUX4k/SysYW5oMBzzF395X+b1Wnxg6jQsnO3vy03JSGU\nChmx\r\n=k0bd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/rGb6Z2/nq/0tegyVhbMwdAwOVXNtkwozLsCCSZ3CNwIhAOYXDtPzPjUzn7D1AhaZb4vUJUbYc/7es110KfFvzywt"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597869167427_1597869177997_0.6527427757377129"},"_hasShrinkwrap":false},"1.3.0-next.1597869535406":{"name":"playwright","version":"1.3.0-next.1597869535406","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597869535406","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-HhG+zZ++ovRD9UHWNXbSuk4FNEhZtXVnBzxgGmpnSlTO/mQzAR/Zm5JWZ/q7IIvb5d9Wu/aqTPZGtWUqISV4lg==","shasum":"5ca6fc35c2902f51115a04488b9c9708958d5f97","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597869535406.tgz","fileCount":154,"unpackedSize":2387878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPY3oCRA9TVsSAnZWagAAW/wP/3zDYqfddj+nhKszd8rm\ndOPKKtXigmDQkULhlSHKibCmoNSSYUm/iE8G/byQmZlSSVUtdSZJGC62GL0C\nOQReZIIcEgGtOfb2XoJBpLKMzuywgtUGDkwOMFWg2caxeWpZtyA+MWWQRPY6\nAPhVO25XvhGbmcCd/u9iNQ9T1Lr6o57briLqRuy2Mkf80TbaokEtkRFNNvjq\nEC+FQEJE4UnOg+LHCxZTcQUsEseN1Xm0nov5opzDTwnxeGnw8r4ahjelyU1W\nY0o1+Iwllgb6Q5PWJdb5OHYA0uw7paPOUPMtKcS41Lh5jNO8GAchZ/U7y3xe\nS1a21cmnJ5FHFF5yP0bLvcoYzJli4YggFcRs/ugw5nlIu/hhVy77Tjz5SBzl\nxLeMH/n3rAXiZjiHV9tFQ3FH4RFpzGHBegvZD8NX7V+ax5Ak4mHrsBRV+Kvv\nyAuFA6QVj8d8kResvy9Z3BQJxu03MoBx0AOxMbuZln9SxFhOMogUhsXQRbzQ\neecd0j4fiDAWVP6uPL39Uub5SRtBd7+QUTny+0cRebv9C1mngPTRvh9mna57\n692CptH8Wyi+4N3yRdvX2N+oj4xZ+erPq/cCHi5NQKkiasDyQwERYvrlul+d\n8OyZjzgwjbn/7AUBbtmaSafugvpgocTdtxIcqhjNv/P5700JuOyK1IwZXZTf\n5KB9\r\n=pnBm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmDpy4I1W01f+oALlKr6S7AVygTtJ+LMkAckHcSpCzHgIhALyenbMaLNlK7Bfh2EMjibC2GjIBU4F7dMZjXgqr9HTJ"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597869535406_1597869543685_0.23902689289800305"},"_hasShrinkwrap":false},"1.3.0-next.1597874806449":{"name":"playwright","version":"1.3.0-next.1597874806449","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597874806449","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-f9EUkPuF/ONnoyk7jFASdQPuvz+uKR6jKddjeQ/xc01MC28hSee9jpAkzbhjCwStp+I0dx1X2oFWMxnmHL0+CA==","shasum":"68f0a2b68e15e994383b36f49c39a28f2ce1af12","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597874806449.tgz","fileCount":154,"unpackedSize":2387878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPaJ/CRA9TVsSAnZWagAA4wMP+gILsQLJ5kiezu78EA66\nDxuRjrAPhT50VLWBquaJkKMdcA0EOHv12APpuIg5L3Si8OkAMZeLqVh7U3Xs\nnpkxQqlpFTGr8NYeYGTqqExlKs5P79GmX1FodFakg2YMgT3q2Jp3AWo6WZdU\npvzagca5X+dL4OEA67t2deIIwe53HkV1E3sfT3MdGW6cHSItSe1f1fJdgWEf\nHpXQwCk4KxVwoNSjeR40KYp+6/GPxamr2uCvKdJJhaC4EMAJun5Rfw1P3OEP\n9fpW8eqyVha/0d2YA4ohPmKzROiveNELEwRK6biQJ+k1W9/m5xDD+q9qY5HR\nvZbyk5U2IuU7v/aBjIOA6uiSNVNbb8JijSNjpP7jrcAyvc0GmXiUcl+X3Xwt\nXSvBpviD18p1g0A9i67Gk+W2jYD5xG5MwzBTCwgvjvmJ4iLIYYTK/S7lB0Pr\np5xwzpo91A8llhDir+ne0C7LvYlLLJEFhqrglYgSmbntT+tGt9y3tftBVzLr\nq95gso8PyUiRx898sy9fJm8bsF1knX9vtAPhR8ahLf1zT6cTt5yJaMUXjHVf\nL/rJLLCWjrG5yMv/idqeJW56NcJSWgc3vUTcw/LRLBxmP86bQPnkf57tuutF\nIpCeKTJAOF2oLi25hMr59RCfFbRoGR2VZd+s7/GUuGtLqEn+/Ck91f7ulTQP\nYO3o\r\n=sjzj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH3EYNbOTf7kthF+q8xGsUZxAD6s3Tt2VirG7hUfm8XNAiEA+XUcon+cfQ0o651pCFLnvB0iyhNvlfWKfuPJXW7D4yU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597874806449_1597874815354_0.45794507167710075"},"_hasShrinkwrap":false},"1.3.0-next.1597876883789":{"name":"playwright","version":"1.3.0-next.1597876883789","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597876883789","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0YksrotIBqwP4DTbQiph5uwfH7cDE617ZmFakNDgbTXKdOeK7SJJU9mwWd6nZjmE8Gi5SYoVeK88uL148/apQA==","shasum":"a9f14fbce82bb6bc57f2f72a569ca82a0ffa5c2f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597876883789.tgz","fileCount":154,"unpackedSize":2387878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPaqdCRA9TVsSAnZWagAAcLgP+gLVDI27DMjup1c3WFYU\nFqfX/b1JMsFOQwiUy/pFEsyE5bIAJPf2aBLbhaT/GlvlnsqpZtodEB+yLgMd\nO9yPK93AMzXs0MLMon2fGuZFXAA2VJr80ZC1nIxbzxpe+HSmaVoFw56F8twn\nrusYvVDfNF/kvxU+ojmjJ2y1Mu2B6li7qUTB8aH66w8MI2SPG1K1N+IjFVXf\nHDosp1ABGzqR4odI5I+KrH1MfwVgfN/HBQPRCzDX3k0Jn8CeegI426+h6HfT\npr8qeES5I9OxQbP8qwksVUW1AWNxmbLvKa57gLimasmrDhZWrrFOPN5XVfin\n9g/yAUWB/DtpFxv2F8f3CVtUAsUWb97lVA//klI193gWtLI2Abvb9jczDnoY\nAu1++zpxFxEHzTUBqQFHmahINGqSKiMffdbqDNhTCw/Ud2RmZaLSRNtYl5f3\nYjFCK4jAYOdkCUpDtRvDby5/tS3DjxpMYJXq5AbYU6zY0MoAGq6SSBZY1svL\nlGNRF73UOfI0ktvvhcqmeoXw5DVKx63xlVns5BMLgiYCt9Do7qRlAX7Mjy+j\nTelei1xiy3f5503rLzan37GIAdpu2xUiLU8098BJmXemtyLeKQwj/rcZgV8u\nREjcDHR30nRF3/QMQl1EhNaQrSJFBInIxbOV0hTksCvxhG97Xpr8X6NiU+kH\nWazZ\r\n=cfrd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmBuOQhyj0jbfgcxCw7fszleKBubsOWetnTWY6LBe10gIhAKoBrYN2032Fg1AtjM42mZoiUHrp++gTV7eitE/a67N/"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597876883789_1597876891878_0.7673917817770022"},"_hasShrinkwrap":false},"1.3.0-next.1597878404842":{"name":"playwright","version":"1.3.0-next.1597878404842","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597878404842","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-hIxPUt4xiPyv4rF64BTdxyDQXKG8N4dW98DJjZDRFLUqJe5MR6jv11kvV/U1nnKT48I71HsgYQbvZHq70GuPaw==","shasum":"7bf8ae4164ac050bf015d7313b936ed873450d41","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597878404842.tgz","fileCount":154,"unpackedSize":2387895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPbCOCRA9TVsSAnZWagAAn6cP/3A0t95VL7P9ysVc8KJU\nuOCaDzG8au2CB6i9mDUVNtfx5NzTuK2Oyo7xqNnNKGKGrlwx0U0n7Q/dHmlR\nKQX2jGBQ0oOxuuRwxlsl3HwiCTxO2DXcz4xYsYtf6GZXJmHQIOpZqu6rMkpR\nyqKBc40PTUH+uEaLyGcJybNAGLrt5/walkXGstQSfTs0KRk5JbbXrS3uoUcY\n9qkF9vjlkP7pzM+YwxwgTGMKCb3JHZeOzFPvPbafgsDWsgTGSwpB7wCndyci\nPgSfc/mnC2YsFwzPpJEMMeoCMss1Ninu/oO352wjrIELx8wCW11Se3utDLaN\nDfm8dPbM518eTNqsUFdD1mmSlzcC3g0LeII3TQMgUi/3EwNzpksTrX/1I92i\nh6lTnGXZ+scXAJMmuGd5FzF2eWI1o46WsODS2fxTI4CshTlV121ktMQBnlOr\nLpcAf8r4Mrfb7Fh1Az29Delod7qlzwE2qiapyHRceqTt5PwDLAZG5hbn7rKv\nkO96UwsaPNvOtzsc6uP/NUInrUuce4Eac3gy6q3FU5AbzqZ3kwB8m+5I/ARg\n07sJh175m9LxQrsKQ9znaUxhnW+MvKXDhdjeCqh988LUJao1KBK73hBwiNgd\ngSEUpIBDyHm9SvXkZTVqiPI+VmF+Zl5iK3QVwTrUvFBycgo+YFjmH/0N7kCq\n5cyT\r\n=miBA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQJvcn/G5IZEJD7esM1YwWbLtFT/usUZ5du3Uznt4XAQIhALot0Q0xBfRr/PHxQ8lF3VbnRa3BM7XmxaEywlZN3bc7"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597878404842_1597878414036_0.09361482663261644"},"_hasShrinkwrap":false},"1.3.0-next.1597882926371":{"name":"playwright","version":"1.3.0-next.1597882926371","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597882926371","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-oiDD48/a346CR/fIfx+Vh4vy1GaK7ja+I4bqJx3yFItOoBV8tXfqGscEVLBcMeg/aUGfqOCK6xo+FboLp/rNQg==","shasum":"36688893e8054011b88455bafc0752c69cd0be9f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597882926371.tgz","fileCount":154,"unpackedSize":2389097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPcI4CRA9TVsSAnZWagAAIW4P/A3F4IGQp/jmF0RGlixd\n/tg4cieJEFL6MgsK1bOHGPGoB5lRYg+FvJ6YmkUMOrSmeYFAWDKW9iZkO7yz\ntqLWOfbqzuNfj+7pL5sa+7NNptGJovq9wzh4IoKvqykXayuIs4WgAbNNPhcp\nlbREnX7ahqXWi1bqh59unOClX/BUKoT66BaieafjaYOhj+9GF7L7hqLBQZ4G\n+Ix368tAA7R8wQYZQE58UzYjS/nY1YRtHNsdk/XNjfCAutq9bZ2IwnBSb69N\n9sB0zLmEX0+GH6HOozxeq2IeL1L3vwh9EGDgB1UMhsLvol2JJXYSlshugYOM\nST/JlRvmX0i0EE+RnBSffQEhb5F4eW1pM8UEWYQ3PaQYp2lTEQ9EEyUsEkbe\nmr+Jv8BfH9wzGERSovvPqzdhdppVAo2LofutLxjTiRKA4TbOrrYsm9evf29H\n5CalmgJ4oSFhLlaqOdNLcraf1zRtt/sE1Ws3EWsI8fOIauS9uX7LN9D1R1oo\ndFLItqixzHd9qecaDm34Miypt8IqsvQddxtVWWf/A5uyNelCYuvxLTGlDzF3\nNblrQG4fhHTjUOnE9CsEnTsE4jmHhPUbgWieZo6pM5HMICm8DEYSC1v7KZqi\nM6lRy1c4pV0TSYnb4R8o9m/QEzWIbQJ/3n9l997yvw/0spHJwe6DNR2egxyZ\nkdqx\r\n=mIoV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8Z+LUXysrA+t5AvICHv4Qt3Kn/xiEwlchryiQoWagBAiEAm+qiM9WXQRhNaQiC1xe1lB5S+Tt0O8eN89M+mH7ev58="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597882926371_1597882935604_0.2878406492470089"},"_hasShrinkwrap":false},"1.3.0-next.1597884578277":{"name":"playwright","version":"1.3.0-next.1597884578277","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597884578277","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ixqVAsrenCgFnNSPiOmIfTxZQBoROXKfUqo557gt8SX6444rneITKW8VlGU5OM05pUmqZ6r7GnyCQ+UjJ9D7nw==","shasum":"85707dce0e912fee4d0cb53c656f5c97cb68ab95","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597884578277.tgz","fileCount":154,"unpackedSize":2389097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPcisCRA9TVsSAnZWagAARQQP/2mKA27rBU2IPiIiA6d0\np8wu2i52FrpkQKO1p1ox/xFqeSIJsiVhPdlMMmfwMytcvuuTxNlwLOh75MBi\nbICtYhI1s6UCWViNi5KX+Z+xBJ/FfLCLC38Je6juZNqMLbAnnWU4AdLbu4b/\nINo/6f9Ko+iz/m9HOWPPKYer1NdCE+Buln8yKqk4pYDY1me5ddV8oj0Ob5TB\npweCAb8nohFX1LNUJsMlHRgoRwv+vahNpfj51x0Vj27INozBcLBxrEHFQPYO\navrsIx+3de3EgR7iqe2l9YnLeyVE/6+ZcqeSoyNNyVN8HPgLAeUr8fl+Hulf\nHt8VxJP9z4jbNjz8m2LLEQAksQZzYEk2+cZ3hchFoRrys9nHlyq8EIImLfOA\nJyI7wY3D5MrKd5tCsXq3H6Dn/Fp51x+7HIkBszSw2GY9OwiWj00DsrSSwsQ0\n0lo/WsqmnvVLBFr3c9l1Ul3GQ4x7F69Qt0EERcxa6VCnsuXtzbxMdMjdef0K\nqa6j0qDtgiU7MR6oAQBXifythMICbDwbd4MHteu7fDmCO5UpK2rd/M+S+Mco\nLOVbsLfWn7so9TEZ6T1VE0qHcYSypR2b0d93VyTG/3dGCFkfmub2BsmDuESu\nNvraQsNuRK4SPRO75Fgp8//045F8ra0sZB8n+JP38Qov9ACcqfoNJMSokvSM\nJIO1\r\n=nGvJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEjRygTxslO2AFjTH4Ih6G4R7imV6ZkxHNfqOE3IB2/gIhAJtQYGFbxQwE1IcnY7PaW5BpVeJIAOUyH4kPyE7xlEDM"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597884578277_1597884587181_0.5123523542054276"},"_hasShrinkwrap":false},"1.3.0-next.1597898044660":{"name":"playwright","version":"1.3.0-next.1597898044660","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597898044660","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Vn7jmjL1L0ViPX7075vBjtb54OLCngjBaxbdtk5h8KfRkDDBgqklpQNYk1wQggO2ojCT4TCsbx7wq/COsb9nqg==","shasum":"e0569ade145491537afc39b5e439faf6a8587e66","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597898044660.tgz","fileCount":154,"unpackedSize":2389097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPf1GCRA9TVsSAnZWagAAiykP/jlPKpcXjCPbafXnIcge\nfUC5bSdwtRcuDlBHASQReZfzzJXhn8y7T4DwaDi9ZX2Y0mW75mVBk6Mdg0/P\nO1AnjNnOBrb7lVj2kns+mKFDdkcBxm3mBt/zjUBxQe/kCsyEOEBwXbrlnwRM\nrwx1CSUQrL/Rt8MFdCLY7IHpNi0j5MrXvfINRXqoYefFXUnCZVmagwlSkjXM\nTcKF7TBis/4kCxP18PtDDgloVM83fwgLH9UVOOIQSEp14qopzfOWIik+u/Fw\nAQi7ljTvgVm+Yt7iB+cAT2MgXXUqHFik3HFXoLUH9mT/kADgRp2hs7rFhLQW\ntjKNgkU73C5fdGLu7V0YRepTFoq4Mg4wf/a9iQMo0wi8n86RewXDITSP6h0L\nW3gDktdKsxhSBhOr5aab/JXcMBJVQExze6EiJyRXav+EREWCzpSefYqivV7F\nShZO/f+RjQXebgBP/0dioKBWbYNQ/qH9KqY5agW4LioGjqSXezv71//inDlk\n+rntT/Ng1s5zzOT9m59lvdHMe+zVsdM7CpT89tnuuBdEekeRE7ZpWDxrL5YM\ncACDe1d2jObPDmMoVo8pTCRL86VVsLxjb8+W+f0zY+Y8UswcKo5dL48KaHGz\nQAHe8eKEPncpsLhIZYaJvkbkc9a+ERpYMMmmTG7W+iuoF53P5nDx4aQ9SpCR\nPvIQ\r\n=MetV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEVE//6yvw7Ha8g8pYxdzJlfSWfp1gqQbTtYARvgWEGDAiEAjzd6tTQ69CR/MVqWofd6KgNAxLHJiIybaMj45EQgn4c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597898044660_1597898053919_0.20159913226967574"},"_hasShrinkwrap":false},"1.3.0-next.1597940944477":{"name":"playwright","version":"1.3.0-next.1597940944477","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597940944477","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-3megtbGe3RvgzGMHLenwtmaWQHnvc++/DnocaFYM0PV8RBea2KGXK4yUxILVk1EqdU5+lqOPK4CLpoKxk37U5A==","shasum":"c129c01d92e0cdc4d3193dc074914f6ef3f7a6f6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597940944477.tgz","fileCount":154,"unpackedSize":2389097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPqTaCRA9TVsSAnZWagAAEWIP/RKHfN+EYuEdxRLkyYq0\naqe5iktmKRjmJ55Q02LviQ0vhBCKjdXQ0F70lK4Ihh/vmWj+UgOj/0T4IlQS\nm2pUP1yieuwMfn0Nq9NbYdkFCX0dj9WYct0byvIF6OMwVD6KMuwgBZlRQA71\nQIR4jGaXcNEyn9LuhmACE6VGPzkudaUtuC4MUnwg8zPL7o32K3lHLPT4SRpT\nQ8A/dWZZddhersxOygftmCTb7MBgd+FHgGRRJ+qJN5dVam5/ONLz+TFO3esN\nSH34IiRyQwX9MqGiifKVyiQ6YhjRPoo6H1UWgK40vPBgqY9f62Qg0MY/by05\nRuapBTuc3ISAE0T8ytP5lWwSvuLdjJ5kEoEOkON1p6/Hna87IcaS78U80ECT\nWosJFRC2tfVK5XwQYhz67wrOdmN9bYTxyMi0Y+TMSc+ka0t7Z1rf3CmkQANu\nXa0GzVF+BitYUYXJAk7uXchJZFIoDQTXlZ/cabHca2Q8Qqmw1FNHxt7gTBPy\niLAxXMHtx5MKb3XpE4CKF4KItoDjBL3CQyVDq7qpWdyw7KcyWKjBdhsxqarU\n6KB0McQscWt1Aju2WK8z/3pTyPk3dohbQ9pUg1U5UQyaRzxcHVs3Y8J+7kaO\nayuNWnxQcwWBCkKXd+tmYpAzOF4zTrFLl1widLF9Unso0yNyuLkSOER4Opv9\nGgIB\r\n=cqOg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/0a4CsePEgU90HqbuhLcCQBO0Kqx4TQp57SFnnr35TQIgKNXTa9h9ql9RtpSZUL5KSYyeSvKS8g3kZDTU/CkWQUo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597940944477_1597940953474_0.4670765257612097"},"_hasShrinkwrap":false},"1.3.0-next.1597946811201":{"name":"playwright","version":"1.3.0-next.1597946811201","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597946811201","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/Qd6kxn8X87sbl7BvxybPTbqXJYLdtfoxwJov3gtjSshwtkkraLdVa4r6NdmgvJHPSw3Lddg/vgK+J8ismxKug==","shasum":"11a5778b09badd7a56bac6739695d38a9e9fe153","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597946811201.tgz","fileCount":154,"unpackedSize":2389097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPrvDCRA9TVsSAnZWagAAG5kP/RehtrS2o3MS2lHESiHy\nIAyOPhVrdfi1Xo3mpOv4K/chJQe1YNY8QOexi9mCDAwYwEX7unVQA+WLML6l\nyIOhc6UswIiszyumgDkBrbE5vLC80cJumBIekeRf6R3KlvZ+0DnJGzZ1eTgq\nkh/OgX91Aor3tUDXBs/jJMCpZ+uLgwFHlyTA0W+sT0/b4GnKkEPOAavcI2EA\noPCN/PpaIcjYwNCWBwWXY10nb6XqPiZ0pR6pFawr2eWYXMZL2xlfnGBRQ1Po\nWRCAD5iXxbIXkGnRsUq64fcPtAV5cyg3ukg6N1GIFNlhWyPI6VYumitwfOMF\nJ673aWwlXPiALTJWrkspzxk4MNJCHzaPGAYmKMkFxcd4gKWWG42d+eZ+e81E\nyUEwkYAY/IxGt4y8ocbtKnCGWAV+bNkxC0ivli55D6BWdBkcYg4mKX8k5KKO\npZsoSHDNkRzwtRRrIso74/i9kpFJIEW3GVBTksJzUH2K+U3Va9Cmkfl5LoIC\nRKYA8TLVpN1S5iUtyWK7VjRn/09/flmFtcIMtHhZ5pZE6CaZYNk2xTaTA2AD\nMxlhFCXpe66ND+aM+RKkemCKPEr/tCOArCrxNuKKezGKA8iHZZGlToyM8OkX\n61OxeZBtt5gkQVKczSrguj8AsRRPZSF20aBIkSrP8AkVZzbURq3Gbg3gGb2a\ncTTG\r\n=xjIR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF2ZSTF1lq7D1m7oaEhwhNCm3IzK1ZQNqi5DbNWBWE19AiBRYqyDPt4FstWvju2euFDQmNtsGFKXlvPPt4Q68wcw6w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597946811201_1597946818961_0.8505137414874393"},"_hasShrinkwrap":false},"1.3.0-next.1597947171031":{"name":"playwright","version":"1.3.0-next.1597947171031","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597947171031","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-hMHzFHJUimc6GNklcBuH+LZY78LHry7Sc6EqwT4fKHIIBThUzEIMwEXkXfGNmSWV0z8oPSgRj04VzW9p4jxuyA==","shasum":"de4b5a67faef9d34bc498c70a27887c565e48aa7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597947171031.tgz","fileCount":154,"unpackedSize":2389097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPr0sCRA9TVsSAnZWagAARFgP/0hdfRNXpY/YHD4I+eQf\n/Zm91EIyDP2MT1EtRfeAk6qwy+m4XyoM3PSW5n+PlIl1jNgcO6JGL4JTOcVs\nKrnVY7yYN9NN6AkX/2XnijwJ1H6Df/kRPGCmgHRxWUl69zyNJmwxH6rOkymS\n/Wd+pN0t88XPXj3cYi4LhdVfQfdGNpiUDAUyqt62sJM/pKD4CpaGc9uIxd1E\nkJDXrHHq11UxGmN2ePmdSdGB+Tnp/T6LxtcCPttE8fkB5Vk7mFD7Fb6F+RL3\nt/urLdwSGxlxeAcq22+ScKyn96Nzm9HWkBgQsVao7RkGtVVX7kYn2fNAA0de\nZ/Rje3tgUU63gBbiWPVpdCRj6tXBVhyUlxM2z2l6dzQFbv/dNdgq8aaUBjoO\nj6cUSwRqny3P+ObbQG/++QgutVckjSnHhxfm7P1z8qHO+I4WAufTmcIpnSc1\nt1e0dPolZ+WNswxsBMWxUSq/82BCIHPfgparapbunlR8ifg2nIilLHQFkvNg\ndF8Ug7IJi0O8C/8IoaKRrtnPz3pvSh5uJu4/y8hj+HBQIKJCAtLRAdP6EsLV\nTUOCysZbm6zyz4WMh2h+jmJBlo+PQfd04tikUYvslAoG2kznXeEwzOtKEDP/\nbd3PeiGQaNPw5QFUc6MADepCE+y3rZ1jwQJVFu/WTqyZYam9tcWXZb36Xh+w\n41WJ\r\n=AK0p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4MVz6kHHLNu+3CiLz5kbYHE9PZtu3DBvIAKWmsNq78AiBww024oQotd5mNlOur3hfy2u3F0uoNyhNCIbOzCIbwLw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597947171031_1597947179414_0.26664577033383785"},"_hasShrinkwrap":false},"1.3.0-next.1597948086012":{"name":"playwright","version":"1.3.0-next.1597948086012","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597948086012","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lqHP7iaECW2mrj24Mn5F7U6xjQimVntCvrSvqnHfyF/TjWjA2BtgV7mlCFAQ4mIbch22rPIW0cW71m5xHeddeA==","shasum":"e395d1d4bbffc44b2b1d446123b884e8f742d3ee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597948086012.tgz","fileCount":154,"unpackedSize":2389309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPsDCCRA9TVsSAnZWagAAN7QP/1Z5dktsCkZmQhwQm971\nlohrIWn8brXhkZSWcAxtIPYqrtZBVVfE+N9egf+8z052zPdpOUJH4UkgAYu/\nn007P8uQim1Zw5EiMF8wztfo9tjD9q2OjQzdjaD/E+EzKnb+L+fmZh/blfsU\nRlqg8UVZVawqgQ1djBZeGJnVxYQ/h3Ug+mEVEoMUvgmUf4F7u6PM4Hf20EJX\n9ZoA6fgisZXBx5XPxv7Ir5OUY5vCpiWcKk/TOC5jrAxN4/ZgNGKSnuV9ycNP\nndzrTk7cJ8wHdMx5KAtH+dMljK8QWLrARujgKvmhb5agkP/qfLy7xL2m4D70\nXsr578z1+yiAWxvuMRNxYiUDSPa/bTFYUZw72k5Ra69FtTd2GDp6LfQNMzCG\nuunZo4Ou48fJAwIDY+VAmiYmMt46ryB9eTlaDCcdGwZSTMEFkfVH9vIQnVwe\nf/OtfiQd3PqAsQPh+fRXFojMzHe7M86RYNGDrAg5Q5wDNm+mE/0u5p4Bd3tl\nwROfguhzISxGwhnwQewiWf1kqk+veArADkCO0NxRpik1uQ5+gOCoX32k4Zlp\nTqdl2mKAnXDsOBlxGhb/Jo8qixty9F3iurLPHMWDvWySD2J4ItQKa4yyqWzk\nVr54wZrIc7KZjOpLBsy7BMAJBXDbqNPjO1P+rMYlZ5KOWe7QbgBpt3OYnBnT\nO773\r\n=a6MZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPu+4GMsj+e6xvmX05/IAK+wVE0dTNemuk1Nwdj2iajQIgO0SUOyBLH+Lv0H27eJo6cHyj49zpC+XvSNpwFQAA4vA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597948086012_1597948097746_0.7054041324615499"},"_hasShrinkwrap":false},"1.3.0-next.1597953165922":{"name":"playwright","version":"1.3.0-next.1597953165922","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597953165922","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-j9zW9gHVxzr0CAqfpIfCIxAa/3NKJVvdSABZmFq+PfWIaRrulpQqUZr8LMvNscbWqDX85AqyVhmrPBWObugFMQ==","shasum":"75ab0849ca4b6d428eed45e2e7d22e7c1e357fe1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597953165922.tgz","fileCount":154,"unpackedSize":2389309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPtSWCRA9TVsSAnZWagAAlL8P/Rw85W6hbQ9hiRehtWS8\n+fj8IlomUXhBzPirBPC7+dyL9I7U+VmfBegc/YK/PfscFvd81mlhL0WNXIk4\nMtw5jLtehgSaLLsw+3v+9xhKxvwLBey5P+GbfyWpVT+5vTyBDs7Png/Oi6iC\npxo2OjX5WjlMYgrM1SELwZuK94gnnjBHNHggm6s1FDpANkWESpbQPGsRm6wK\n5kGYe3a/wrrvQfC/xf9mDYOIF7vIAgYxAB5sct1yAUhDT8dcDY/axi9zABAq\n/k4b+dfn6iTA7Z3CZugHI92VtN/dtrNSC6o6TMInCGc4gOYgzZwtmNGK0hkd\nYwFPbzbGgDWf813he9pztqu+GkkPm88opqNOH357ZHeVsDP2Ug/TCgU8m3aH\nsigtBcv7hLojvl+7nbWeOnpWeGA9s95ipmEjpQpUCBlHM+n9pYTf1iQ6uiOQ\n9vikyo0RTAQ0VDaBqnW8yKMEmr3rCC1nPsJV/qBmw/Z8fUYbOKQcak1y912n\nlTkBcZi+uwB/HvfmKvxYtkwGIBHfZ2Njnuw7ZuiQu5cpNyiG8kiDb0ftnA32\nIloqgLisUx9WwohVBN7DWI5+3ioI58OIiM0PcYcEfLXN9/yT03biIbkt0qO2\ny6Jncxp6uOrVZR461phVNcj+5mIoKn/6sAkjF0v+/SR9BPg4wTLlimc8kfzG\n+My+\r\n=LSTH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN2vvX5y79+/L6+5hzR0IgrltM+k/N6JLYmjjb4RhpbwIgfUT6P62bHmnb3lAKWaN6Gb4nmfO8aeiWN5DMz1HZEYs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597953165922_1597953173961_0.3374127479217581"},"_hasShrinkwrap":false},"1.3.0-next.1597955294473":{"name":"playwright","version":"1.3.0-next.1597955294473","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597955294473","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VhkLlGmQq+yLqToCOjV6RF1c0CW7rgZ2IlhGpGM6A0N4MjZXFAZ9y32Ni+Ik4rUZL4YQT497L76zVv8Ng14Vjw==","shasum":"07a0390482ce80267cad7c683b40f4346371549b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597955294473.tgz","fileCount":154,"unpackedSize":2389309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPtzoCRA9TVsSAnZWagAA47IP/jZftFInDBwQu214de6c\nBpBLDz252/nxfW5ALjtw6TkaHI35Bb6tpanq8zfaida6Ly6o+Yhucy3ph7AE\nhvTaSkeHcrSfk9/plpdiIRC0JAv25vDx6gv4ODz/wrxyIeRR55Fg7w3bcsl/\nT04HlhmB4cFj++E7szDc4QxlYXd8pvoQ+1UDKi3WUAdrX4rgciqI9nUGtKi+\nf9OopaVaELHb0syy2/gxhbtrCtJYiG2M26oh3RU96hozu0hP0kSY9ZiK90y+\nuLX1OIRbietgGsRPmJKiiFbQ3ETB9IEKk+p59WkoOjcgEEf4GpOWhfWiVWz6\nW9zxD8Zuxe9hPvxyNRvVAt0s37HpRRb5qGReN9UE9KDRdhi8giqnvEZ0RBgc\nZOQkX68ECtyp+L5fCr72t52RUz9WtyJ1hdln84vQiBCcSKkL9HSZMtM6HmAX\nTotPX8V0GEG4scq86T5mciCXk6uhfUmfqO2wi2EdpyjPS086E5zc2oFsOY6z\nHN/92SoT3Ee2ajgInNQPgF5X7TrhfmhS68WjKnE2tBeamjhjbcJ55sdLvl63\nlhiqzFmbDFpFCi8cyXDBhlj9kn/rfT5lhGKszLmXGLbXUw5I0yV4tAFTzx8/\nK2goHFNkLSU1KPUSsMsCPbiogRdAhio1YJcLOF1CRtJ0SrY4tA7b7u7jIQ/x\nzi4Y\r\n=dUYu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHnv7VwW6LiwB2MklLLaEM+G98NXvV54WNmwTcbprRDaAiAIFeU8D3o+L668eBMfHKU3tWglBRz01knksz/85JXSdQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597955294473_1597955303783_0.18689226241502932"},"_hasShrinkwrap":false},"1.3.0-next.1597957495308":{"name":"playwright","version":"1.3.0-next.1597957495308","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597957495308","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XUH4w2tQL3l+0MQUOtSiBA5YtBU1O/Vb4rptRBDEjwTJ0Eb3zmQM7EcaIvmscLVvdVGI9m9afAZPSUNmEz9IsQ==","shasum":"1ad88a351b544b658b94151cb77570f2bbca2bc3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597957495308.tgz","fileCount":154,"unpackedSize":2389309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPuWBCRA9TVsSAnZWagAA1OEP/1b9sJoTg4wf5l8kJEAE\nMO/CnvSZkJ4DlvgAYngyCOjL4OPRcZsKGbD0jSzyytBjtnJx/rJHdHkk+18n\nou9bWldLUfyvypfHiR2rNLKI0ECbg1UFGPqJwjjtd2zbmphpGDHsmiHQoxIu\nVvjNeuNjc8xWPma8zcYRWG6MU18Y7nxOVc8rQXKfEpP8x1fwylR0rkCzUCpD\nYHiXNOehFcik01ZalqNnLmPGG9IaAZX/OQ+5v+/TnUqOvEIpPOYkRCKVdyi9\njNiAVa5Nm1PqUP3l3xux2Ey6c8yYMuMFiJ1nBdfMlqEgrxE3m6bJdFl8210u\nVitQUSeP8a891QnATKLUZyONwwoHHZ5q+mZuSLAPUt1X1WVWQfgmRZCcbXjf\nV3ybOYjFik/A7u4gsJWCO4EJZ7XBaoamlQMCOWpjln1W6VsUV+qHTERR5DCY\nE3OlHtdKtD8x0EI37LlCDXPlEpoDsw6ivrsTAuPi6PI2PyQ7Gg3otGaPQRZL\nTBGdS8FP2iPD+tVU8Z9rTAFRIqzBVIeoycvNN4l6sHACaeRRM9PhBqTdSawg\nU2MlsORoSy1liDZhK6fuZg+QL/aZO3hRM8qYbqR4QffzZSg+abVv8gHfyiTf\n59clDpC58mGFfxDurinm8xqcaG/rI53NK2AjY8DY+0hqTTPQ7ZC7zY9QelL1\nkUwv\r\n=gYYj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmwLzuk1qhD6Ilq3uMi8CKQwQsKGin+jhi09pgUHPSwAiAtVJTGU8f6OrlNPzm/R8ESAI9zKrPnTTk7nL9OxXK0Eg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597957495308_1597957504336_0.7306940979770842"},"_hasShrinkwrap":false},"1.3.0-next.1597958490200":{"name":"playwright","version":"1.3.0-next.1597958490200","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597958490200","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5mol/NPX4Ur1GnHXLnLNMfZu8EyxVrCp1fZSvZyoo/nZU2mJJcS0zENj8QcCoO/xiRYEzQquGnhw45wl4nTAxw==","shasum":"69e1acc0c9963a97b78898c6848e3b8fc86098bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597958490200.tgz","fileCount":154,"unpackedSize":2389320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPulkCRA9TVsSAnZWagAAAiMP/1fK/IqtTEu0y3+CtbuJ\nQNXEWY0iNK2sffaXE8nfxMb0nRyWafV5PymYisvnhz7CSMoQLZoOQ6cank9X\njIUZkzAwentE3K5Pd5Pb83S0GNHtP9pHcvdkkNhBpY0BtlGyOrXCyEIQ7FyW\nbpLDX3uWiffKlKHIPIY1oCmdgqzfOzJ5D3a9WlN3R5Iq/11/newdabqAc32K\nWEgYmmBsuP+V+CMwNZM3B+8SVbZQJ9WBA6u+GAg59dDzVpv5N+yeWptUMRd4\nuv6kHX+ixJZtGPFtImxwD1fA96YNOVey7iTNpRjBiXsEjZ64m/Ti28ZJjf6K\nVXH4qATlMdo43el2hb/wuBmwxYLmPxEIuaxL/MsBpOtz703Ry/Y/A8+PC97T\njJcyno1XySWQ5zNjHEwhOlAuv38TA3kHcRYdKRXzwPwDLVWVXXNh4ky6PKaA\nsGDoLsrDAqLvNKd/Iop66N6FP89ZZbpyOa4JDE4oIN6s1RHTp/SyVhgF5yS9\nHsXyciwkF/GgBfcuDCmtG+oNagPK+pxplELnvHMGU9JFYia6jLL+rn4Fiwvg\nReZqFk1D5QGPv8WBFfM8AeZABVn6vAfsXAngrFkGWJ8MqTPEgY1it6qU6UsC\nKO8Dt5R8zTXplD/8C37pN+O2n5AXQnP+FEuH1EmxyypG7CGC7kls6hr5HaeG\nH2fT\r\n=WyOI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8+HNalLYExcUaGAoEfnndfT/0A/19+sXQNylKl+HgVwIhAMO3/KVexPsHk19fU6HivJIaAJ0XnO9Gg8VAIcFoUMjG"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597958490200_1597958499274_0.39279928980702183"},"_hasShrinkwrap":false},"1.3.0-next.1597964771292":{"name":"playwright","version":"1.3.0-next.1597964771292","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597964771292","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-DeithS2j7FGW4PCfhEINNtu8HUk1Sr1Lv0Niw87jHFGYHEfRK7E1grRpuz6lqA9KCJwPlXmTIqq+Wuf2l1EY6A==","shasum":"b6502d66060fefc943f49e11a7bdf2a393d1e48a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597964771292.tgz","fileCount":154,"unpackedSize":2389320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPwHsCRA9TVsSAnZWagAAOxsP/ji8OOIlG2lwu0fGSDe9\nAaepvJwDF5p0RhU1xkeJ9bSKgIbh8fjV37zl4B7F+xgRv7w8GB2rArHN3qQh\n8NLct2avwiPX3Du6CLT/ltlW7u+Hg6PWxAL1la3tJlt/w6b9awUaRiwOA8o3\nf5HFDFBIP4YTrbP6N4+RXAOAeZfSGEbV4qQHajJCQZnSz2jrmTs3BlIlqA8i\nWmhC0i8GK5Eub54w/RCLB47xtcpITB4InVRuQrH0nG0QNeYELGG5ze0wCVXT\necGfXfvSivHg5mhVlP9J3L3yZF+kyWQ8EYocRyluyyxfif50KwnY8pLAAwOn\nZuUDaTJalBUkcHif6PZjUcT/OalOoThxSrGhmktnsJuuw01EphD/Yr6sIEI9\n3iuKgX05nx+APL4g9KMqGhcoqmiuxSdVo4k4kDpFKqF+vt4spJBRpW8ZhlZW\nhyquBev2pUPiZpBYVvOLBUNK4cxeQn7pGCHEoHMyZTBWqzTOQXnotG/13QcS\nT+e3UIDDz8pdVU2dXng5cwTOsqRCCy2bBL7smNnGZwdVTkATZObuJ9j9TqhM\n8pZfR2ut/perzkGZagf83Y37P9jRFKM4r5d/DhipYsoDi4oosCafGz8UtlAF\n9OhhE9522DzPOuw9VMVwsAFDGKDeegpnEkB1CxZj4F1ywGJI32d36Zi42s9+\nr5cT\r\n=QHci\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGx59wkMZpLAv/pmJBAHUQ7ZycLXpfFAo2jE2QJyRKdyAiBIOZsN6K1PQIAoatkS/qiJbiGyYgI3nYlMNsOTZ28CZA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597964771292_1597964779675_0.7714657976704218"},"_hasShrinkwrap":false},"1.3.0-next.1597967474717":{"name":"playwright","version":"1.3.0-next.1597967474717","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597967474717","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-njAvtXMzXYHUXnkkv+OUXK6CIOtZNWDKaq1Zx6vKDwdd8PrY0eJZOCDyisndHuKr7r5MRqnMR6+glLruY6GdWw==","shasum":"6f07ee475b26401011d227b2d753375d366b53b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597967474717.tgz","fileCount":154,"unpackedSize":2390479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPwx8CRA9TVsSAnZWagAAIlsP/2X3Uhr6iYR+NnMYfVXr\n1yvNcgrmqvR8JfsgqAA4p9VSPvGgCAlJUQhD8lKK7h16sKV5TmU+94ZCmxKB\nTmadbzQoF37fPkkoN1gth+c6qWA9RwCEVXv8u5YgBaFfx6nMz0SlsMio7a6E\nqx0JZHdWNxP4MAow7ah98QkA2fNbcvZFaQacNDnrG6iWnVQvq2/vc4bOgIUb\n+cEuHrUgBOSm1d9FfuMPcJkPnWipSrY+1FimaAJUGXavl8dBfDSxb1x+arnD\nFj7Uh8T90hJRlbyVWIOm71Og6ZOvsNR+LmU4EXXrTqAiMJcnCDpe5qYuji1g\nNhxq7u3JTa/phb4OuBRYA+ztDkv9XUe+hb/MDwgO69ZGC54/6ojEc7joBYZy\nRP/2qym325QaFmFxYHNUss3S9+zYA+1YYqkQyOSEcZGgJeYtO7tZeCqvRCfr\nsMOtBWFElu/zZFGFNEdDNijEkTVy2W3tVYNbfnHbs771+3XweFl7aBYj/Y2a\nP6EV42RFwPKDExuK3HYmY7ng7dX5WOIgkccgc6DvlC4522XHfpZtC93fVV8G\nEVqhpiaPVfN+sfz6Xw7otyIhxoPNaZpeiz5Lw6Uevc+7hXdQ6vc3mE3uEPvj\n+dqnXnfIjxcUYb0Z12nvgXTwvZQ/oyhncAf2fOCQ1UFTtjNBWD+8SYWHs7TY\nm5jP\r\n=1Jxt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAeEL95AXILQ23y4HRR8l511KWbXmcbMCWM/o8feBl2wAiB6wz2cNQhQMPnYzFoF6pFpW6kf5YJKyPA3v8HDzCeD4Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597967474717_1597967483707_0.36411035223962473"},"_hasShrinkwrap":false},"1.3.0-next.1597967582897":{"name":"playwright","version":"1.3.0-next.1597967582897","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597967582897","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-T2whwEfF/IkJidUCs3xab9Xr5NmZA2DIgfpCpV8PknvxpBO/iUvF2hOz8bk9QTLcTzJ5V7Ba2u9PFnjkrqE//g==","shasum":"956cd9fdc7189731da05104f1d87700382ffb8c2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597967582897.tgz","fileCount":154,"unpackedSize":2390479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPwzoCRA9TVsSAnZWagAARXoP/A61mgzC7Cw2K4S8X+6b\njVZcBqWFaFyc4tNpWarIISPkHCVf62K5DouEx9gTnSo4DjkZMO6p1dTBlQxM\n62/FThVhD5NqqZcIRTRcFasUBhFTraElNVzEsuI5qe7IJ8gUETwCBf/c8GZJ\nZJuXrCkFjlqIrGNzyB2PeUxV2d46enl74CfIsCUZCN5zQJe663bCXoeOOpoe\nf8SzzwqI4BKWbRg0V1ZhBF3VN/lrmCQVIo3osZLh1nkgrEGxwFYvNNPkWwf2\nbBoDdyp8skVYylTHxt/kG65Pd+IJ2v1f330x2RXs1LUFKE+UgH6kt2HKr9Te\ndaWxhXPWtyO55x6PHEhZq5MT9p0GLEDWw5WVuDNKITfL1WUcJbdTWCTDPHQJ\nGN3X7NLA/hpxckMCiyuHqzo/ZZUJtxozJ8zP7WEN47fKNM2MKiwOb8mKGzbN\nzv7L5Gsh005dI1UY+vx9U7m7+JqybRiQi03D8aQ2JE/KqG6LQa9gyypVQBlQ\n5bApg3QxfO6QFwunPGhukSqWffrrvq13bqKh86PN1pZSIJr9SDYzcH+JV56r\n/3e60DBzh9iZ8G5jO6GV88xkn2ph5ItxSuOCUxpQFrnWxSG6r75fpdymsDrm\nve6N12ZMtgmHKDHqkvyr4GUHga/+E0GWnnHS4kZQBOqVzwh6UjdwiqYn83yE\nnuVm\r\n=AsG2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8y9xXNFTkzCW5miPLvZeAsbjbypzq4JQmZs69r33Z7gIhAJ6w9/HsrIZ0YJ4VLep/FU0GGGxq2/dVhCqcE03jdQy6"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597967582897_1597967591877_0.1850675726577915"},"_hasShrinkwrap":false},"1.3.0-next.1597970807086":{"name":"playwright","version":"1.3.0-next.1597970807086","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597970807086","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-OPnPjEwncZRjTDCQY6PQlR6ud8s1HfE3BjwMIMh+/bbk40LR+RLXL0M/Z74OkT3TanK6BEKjojb6JQN6vgbhZQ==","shasum":"f5fc9ea7fe82e5db1592a95f0d6c370e69e4111d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597970807086.tgz","fileCount":154,"unpackedSize":2390479,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPxl/CRA9TVsSAnZWagAASysP/3T7mZN2BhTKoEIH7Php\nCRLQALI7blv+452fJlJlB0MSeghMV3KQobnmsLydBeCBxYInQQZGui7EAsVb\nKCTRz25tfiDfecncHug/K81IDImkkaoxR2H6c11fmE9VA0rUZMktYSjnf8yi\no03kcvNTLLCP+tVvLNr0alpPceL6RZoTYzAA5AMoNmrcVtiCWQcfthmkOBQe\nL6ZphWBvu1yPCufMmXrXh18fK04n4lB3xV6B5vdw6gjD807epcQ0BLsrHUA7\n5W5xOfBOKeXT+C5T17Luo9FeO28InSIdKk+RldBqEWDaxc4k467pVdz8sTqc\nmFTIE+SGM/y6SVnBkFTDSauWAJvXi/ZB7Aohhn9BFtN09/hPnE1JR6osrIUh\nu5r3az8K73a8KoVqHJ61Irdb3u7m/TUavq/RvPxRu2hnMUWDEoehsB+rPGzp\nK4WthnRSlird8Cku9egbBrOCT65AuqLUjv8RGrvOZQsbmKDpzQcglX/0vaGE\nYjOQUCxJtrewkXbhdTy5jZVKLHwQW5RfovdK2uXfCnFGuHkWgnSIMANnLCtN\nUehTTZj7tpLFp3XH3zs+vI61sHguxwCOjwuYtJazauplmi/Gp5rLkDsHpPBt\nadHclcdOYVycxEXElp5ZlzQwGZXdQo331iwJp0r7NFTZ30PDun3IkfRAId0v\nHX3t\r\n=vogj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6xynOsifus9pi6OHHbjSHWl2wtdxyiioz+1bzhZyrxAiEAolhr0xjAc04VOi5GxKkOjKcvlopFNc/beiKKnmPFlw4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597970807086_1597970814745_0.7129359888815254"},"_hasShrinkwrap":false},"1.3.0-next.1597978283154":{"name":"playwright","version":"1.3.0-next.1597978283154","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1597978283154","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-+t/rbvKfo5ewqaF79hJGNF9St3VBcu+YqRWNawUtX70iqjH0LzFpxcmpmGDs3p0+XJJRFTJ6DU+kLh79+WDXRg==","shasum":"c34e061543f12c3fae119d111c158aa4690a6999","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1597978283154.tgz","fileCount":154,"unpackedSize":2391662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPza1CRA9TVsSAnZWagAA+FUP/jag4uTeLfbTL1mC3NfK\nonvV1nhG/k3SkujTWJttpC8GFJsoQbal75JqkAeSPvoYL08OOcZ1d65pxiAp\n/kO8+yhfEl/F0kWIa2OOPSETUtVmmfX9uKpCreo4n234/oOW3FNl5wkIT/1J\nOVKw0rwieejroDLruT0JVq9fIkJfbahr5Orq1/D1KmWqBISq9e6d4EmmFsUw\nK6GQgunD2fgmcgETAWacxkuqcbElfJAcwfkfff4bv8Gb5foIKTZVQK50pH/P\nzTVuyi6KeKpHz/nE0su+v7AcbxCAWQpWTv5oKjwhb7k+eALido7kYptN7R55\n+fv5iejyRczSOYqd2qvp0bttLLZVxHO76a+YPisVboHhykZq9i4m1JStyt2e\nhCm9/gXTLD0cCvoXxcAQ7tJtLTLezBbE6EiZjfvE79w9IewabJvNgOf4jBas\n4oOz99h5SOD+7Y38Q9EHvcnMd8v816bssHH4kMIPIt6dFN0BlYOS3b31dLC6\ndcJCMiS+HJHVkvjmLPdcSZZahlUWNMUKOi5ywggZiGDXyL2Hm8ATlw3sunZV\n22+h5r5EVnrRDa4mZIoudUzIgRTrHYaIvCBbsoV0FkQ7Q3WyolDWhbFqdqsk\nwfaVHiQDdiVhlAb/qqDDVGb+HeYusApCsl/9+2qlY2d2S1LmADVcanBMm2hm\ndODp\r\n=oy04\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAfdFFbt3/Xp9JIVZ5CWdX1NM8hkdtBGJxmw0RDY2UclAiBIpAjpyrWYZabkcUDqsZxZaNAlKXpaCH54QxM1lSge3Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1597978283154_1597978292842_0.6842505174952385"},"_hasShrinkwrap":false},"1.3.0-next.1598028906634":{"name":"playwright","version":"1.3.0-next.1598028906634","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598028906634","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PV3he+V1yplLw4Hq1xNb3k6ls0HLNzEAotSFAgOXpU4jUEh03HbaspbePybH7zVoCO4PeQJ71iJcihgSXRVPdg==","shasum":"0d2ce0babfa79f389c8b7176fa9ab925fea53fcc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598028906634.tgz","fileCount":154,"unpackedSize":2391662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfP/x0CRA9TVsSAnZWagAA0TEP/1l894vTXwrxvM1gPymM\nu41CTBOrSd4FKAhnHkTWFk/foOglBlCaAk8txhr3+DkcTDbpSTG+23myUiQC\nQfB2u/8vkJIT8uWHddawueKlEK0cgoze8MgJ1YoMsEmHppS84RT3YeOzrUJB\nYHlHFANyDH103e9BSHoYA/RvM0dgcZ4krpxnSMWweNFk2QnjJqi6Ha1+26vV\ncV64kROKtGNu2UyYHbyPJ2hc+cuqFgCkOne9HbxzImfg4zQ8Pg2k+eDzSnDX\nZ7+hvqfQMGICFrncXyCtDOzUHp0gu+ABca7ExfNgcI7QXx1PvaenCWFD+Qmx\noZ47k3VfwJKTT8CMm/CYyzR0PgVPheDYQxtcCOnHnskTads/V1I+NiAMMZDj\na+9ApW9Yu7EnKQRMUNCSyODx7vaZqA29yxS+wZSL6KuXKiODecN5Gbwvl9Yj\n0rFnd981jUpLTmllepg59sqd/YsdRmeMnbAaG7JG+40RJJ41TTIeGJY9o/jW\ngyotyxCE7/RAq4xkkt8zned9LeqzkBuQaa3OUiQKD4SGBuSu8k+lDvSBqB6j\nBmIReTB0cOPbjavmqZCDPSmgWRHEt3yZta1mxsG7DzA684xIo5Hj3Uk6XC/7\nC7W2eQ0VRRRH6TlwQvfJBhwQ9gS13GaxoemnHfm+J6AePh83wAO+dwl0Cut/\n34Nf\r\n=lWQ6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt66HR5rnsD5iZFkeZtdzsLwEaeQXN1CsB806V1+C0IgIgMY0hFSglhnjnoPOUmf6cec9EISJNSxfAl8FR9EIHpe4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598028906634_1598028915790_0.7561036446169489"},"_hasShrinkwrap":false},"1.3.0-next.1598029084526":{"name":"playwright","version":"1.3.0-next.1598029084526","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598029084526","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wCRCXXcZNTf1lAy7/7+t2zXlqnx1f68SJnejluNknDXKzzDJfF62P/MeWRVgOpoDqRyCm6uaX4DimkMkVTRt4Q==","shasum":"38d7819a3aa8c82ad6821cb1c00a06a0e792e328","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598029084526.tgz","fileCount":154,"unpackedSize":2391662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfP/0lCRA9TVsSAnZWagAAphgP/2DnZppyRm1y9XVyEPmS\nyKsbkG+nmYjq81kcTf091BaEts8vryuctUWCKNuz5fX+U20zEEpYUfiefs1V\noIK0XoCx4qsG6JdDhjRANUGDNn9CFdaynnzKLJQSEuTDtwL7lLFPvskf+gIj\nC5TPv6RhHppyRVgZrLRaROpE6NG08yn5STbCs+MTZo0otzhYpJ3kzWx0oVrz\nvwAA6NkRxjsJuCELYlDFVYQmvfaLcq0K7SO3ylolWI8HJCE4tIS+yIyKHaCT\nAdz+S+kJApatjWm4N60kum62CZz8TQywCF7gPlRP5yVKarPTDS6RwNMRlU1y\nBHmevNvHwyuZTn766lpnyIUsugGAsQXB10/2/FprZJP6gQcucrU19yTQoFX0\nwguVHzZsHNM2zBSJpNs/m+EYcCHcwdGBOzptrDPf0iFwUsFjldVkXw9lCHy1\nS/F/7DmD8kH5hFURT8N8xjtFmRY1ejM59Js1flVqTLtJPW6/bCxUo8l9EDFv\nLKJhaW5SnUzlH1ow40iOAqenOlLAAV9x3JvlEcXI6Q4FwacpuJaFIgnPIZVu\nccwlZSNdybRs9981AGPJATmViRJTOMfsDCrkMvj/O2WvORQ6oeM1q8sxs7lX\nAOGVEdGQIpED/hP/RK6cuq/olziNdGi2xujhuGcfs9ojQDbnJyl/WY8bYoVL\npvAk\r\n=6skZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6u8haf/sXn1s5l/zWfrt5flcHacTXCj/7S4829/acOAiEAnFpZJd0Twl+/AxSUai4OyW31CRwR/SPlX0+6qai0Ak4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598029084526_1598029093003_0.6551356617525106"},"_hasShrinkwrap":false},"1.3.0-next.1598041486822":{"name":"playwright","version":"1.3.0-next.1598041486822","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598041486822","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wX2wWiCbrEDqX3bOFrm/z58Q4s1v8N8W2BjnYouyX+/vWsnT6M3VdMx7LBy9jIleJ1LVNCHFEE/UeTClwoWTMA==","shasum":"98ab3db28fb2419b46c6b077bd14bc1951836755","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598041486822.tgz","fileCount":154,"unpackedSize":2391662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQC2YCRA9TVsSAnZWagAA54UP/1cOFnPRrEyv51J5uNp5\ni84M1cxlS5/CUWFg225yFnDw3ZMNcaIk6XPyrlGU4Noj6tnF3L1+fl0OD/N7\nnfj5wxR4mKh9cBVJuHUdmHtkEkpDrxcOLRf3FInKz77GE7wQHXwMs2YzVb2l\ncfACowP0TZJkBbdD1KDliulTqD0U7WkTrPifrGnN2tSlYmPrScF6ihihFzsI\n6NJKiuLE6TDalCPsIxtqlN8KesStfX2Ug9+8uFz6EDU8bA82jpFQLVlaF/OI\nrWDRpuTCSOq+P5aDCMhSdhAJluxN4DiTwM30KoB06CMBUdEAfS1doH2fRVID\nzGeUa7bsl3JMAyMSbIJ6UdUcyF4PyTD06yV38c7RkROTWo5S77Yxwp2j0snY\n7VXmtgf6zkOQbew4xcKUKypZNh9wfAzWG3LoLd836XYARaWKPZAGi6hfp0lp\nSFjGmIgQ7nnzREKUgtYz5KWWckQ4KArf8DfpgfdWXnssFAKHeffWX8zfuo+0\ndWsdH1KD5JrD4LBtc8b5H4+YMk23GKaJIh/L3EZ0WCPG7d1FLfqZWQaONnzy\nmo6jdfRkoLPIqfWJJAg8QsiVD3JSUvQnZIB3/8dvfuUrERqSJpqosgLEcD5d\n7Sfkm0RAJesIOnB6LN2Vj/tkP8avrLGiaY6RQaXekHTlicE56w12/uQvNMbU\nL8Jz\r\n=sqkU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+tQnA2yrM5XpQqpgoj5rJNkmcKmHLWIkXzOK7Xez4ogIhAO7ml3864KpX7tjTGPq3+K/EnNJcBqZfQjwjcNkq5GLi"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598041486822_1598041496129_0.561440272658603"},"_hasShrinkwrap":false},"1.3.0-next.1598052520246":{"name":"playwright","version":"1.3.0-next.1598052520246","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598052520246","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cPCIGSe62i3zBzUerjjCRZD17fqV40QR3yxSz6z6R4VDOjsagNMLakjuN2Vf7pRCRKqZTCVI0tq7bsd+WHRAmA==","shasum":"38f83cfd1ce6eb834e59b74f6440880ff32042c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598052520246.tgz","fileCount":152,"unpackedSize":2388906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQFixCRA9TVsSAnZWagAAW0cP/0tRCEyDwPfJJV0p8ifS\nPp4yWTMZ0BYS1e3Ls5Rs7v9qUJKfP4j0zoOEo/KXuLO10P3ekCdZsoRR1lDL\nb0H6Rik7D9Nkkwc7i1C74Qwmdmx33DQBtru6pyfF3TVHprzRvjT24nNXvH/3\nMeERp+KqKhwC0/Odvr788s+0lrrHRL2LFBwuEmZzegXWA4aw/Ig3gXENdTap\nsxLYVRaBDynlNdCWMJCXAm5qhBC+c14G73mLIj2qiE9pMsog8bZpYOT6wpQt\nvlsJ0+L6k8RHcNr+F97tQX9cz69+mr0K+eK1Qzs8fKd/KC3UxZahhTr3F/Lg\n7edEBlJuutFfAqouSgCAHYLAlpXSFKz4ztc8VxRPCjwW63eyGiNqYzsS9vfz\nVAHJA4GI5GLxmheNN0jkY8nXTPAl+exbRyt14MgYAiBkKNOzBkGAjmnqDHii\nAr3Xcb0Go7IAKjjJjclQaF1U8R0HSnKjwvQ0oyPhca9MVn8/1VqXhkV0f3e/\nftgCJFEo96ZLwUdQlxYT7nzp/wxnCg1rLnhe+FcjnZYAWXGLZkAlFd5i+wNr\nhkrx1brnbAaOrUBxq4SNcF9luXjbeeVZ73tTO2mtxT86b3u3PRArwKWZCMeZ\npaRwwNbqtmpCdbKrsxQ8bxNrZqmUZ85o2Zfi5AOp+VuZx8vs8DP09gZtrCrl\nyvZF\r\n=hYan\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIIS0C/0NnN0kl9DmWTU/IWLZyKkKSXRZLV16keF+tCAiBw+JwWZYCbKuxWAhfFZwYAnC3361RMfJ2sVtejS7D/ug=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598052520246_1598052529080_0.020545505324435442"},"_hasShrinkwrap":false},"1.3.0-next.1598055360952":{"name":"playwright","version":"1.3.0-next.1598055360952","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598055360952","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9noc2YiJnsm4mQF4leaheyTHJaEoIWnom9PNeDHjantT58oScSeLpfVe3EEqjUQIIb3P/J1+3Y/45Y1dkGhdJQ==","shasum":"04bc3813d30468f2fdfddc66f945843bd8285e22","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598055360952.tgz","fileCount":152,"unpackedSize":2388906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQGPJCRA9TVsSAnZWagAA9CsP/RGljOTVrhzXep3GW0VU\nv8UF6Gy/hmEU3AIE96wwA2nxX2OSK4nWiDHfaMKBcyoq/bXqG0rVx50Edc/Q\nRt+Zlw1E627snlZeNhOuj9wYiq+A4Or43Yl7vtpI0lQaw8LdmgdzflmEfzy7\nDeJFFj8ShTAt/TH22+sLxD6ZM6w1lcKhFsc4U/raRnhv8nWOY2xuL98Yjz5a\nTqrTxIh0hdy9HbiIFSPqdhg6F/ICn6A1WdJnNQoG36ecZsdj8bOriVkb+TVX\nqGnk1/isV7xEUtskcGOQOLc64iimmS2CrLvvVXhGI4e0N7WKOVU/nuCJosIy\nUOSIFPTJZEXyOwGThvwDriBj+w9+kqayN5SmGp8QYTNaCoJV20YArg0uQBCy\ns2X13cHlpORAQzqnQrWhMk1I5+IG3VG1n2k1+1kC3s8saypmynSPhwELaty5\n1UEUy5LUNwiaX6J1HRScYuIkDR09G82KGYeHY24nnYb3axUpuwzktXDxXQB8\n8A5IK4mNKcPjAHUhJbvoIKxdSmiXfpLbncKghPUXyjr+ezUgCqWc4hXAN17K\nIiWkyhnjGB+0qn7HfjS1jXceE9W7wTdcg5C1MxGmH8ojavO4mgzOZ6Y0ym8O\nwFBh3jyJyryuvUs3e16Qn2Y4BYvz1mdORpULsBvj3DFw5XAMTV0hOW7vaFt1\nOp0k\r\n=T/Gj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIES2RYBpJS8rKuJ85qntIm8RgsV3pwTBMv/Ra+a899MyAiEAq978E5bU0zSQB9zsHSLHwHaEZuIf7o8FjSJBqlY/25c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598055360952_1598055368692_0.21799611989457834"},"_hasShrinkwrap":false},"1.3.0-next.1598060874848":{"name":"playwright","version":"1.3.0-next.1598060874848","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598060874848","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-7Xk7+mHROPRlnDEInnGZhX3m5nzwZGmNz4n2CLl7AZCOFW6zN7rBPniHh9Sp2U03ZA4ggFz2fKe8b9IiuPS54w==","shasum":"0a241f3ff7b3356318495aea39bae9f7b71edec4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598060874848.tgz","fileCount":152,"unpackedSize":2389064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQHlVCRA9TVsSAnZWagAAyrYP/28OP2Ak5f2K/LGB38QZ\ns7rX7qKw+kNYnrKxA49hwXNiyl6vHckNlOjkwCt5fwZXBDXj0nMYM/NfCnD6\nK3MjEuP6tWWuKKcPexlXq8djOjwQeeHFMlJxF8uH0VwvSWx957ETaoBOzHCn\nrGmSuWMvlFR7fVnDDkEdTWH8hgsCKopPVwHlevBTzM7lZb0JdbXtcYictBbB\nB5MbNAwfsW38EaRrtCsoB2C651zEB3CncITK+p6GalTMfDgRRRgahMMOtxFa\nRYopuTjRUPZIycjir+K6XiDTSWNnYD6ETHsL0PWAG46gPVEZ85DN8aDN3ndv\nPLoApVAw4N75IBgaAqOBly6scBKgjOJ1oqtUTghh1qeuCun6eLTVdG89/Mim\ntPf6/tWI2DiDaN0r6j2qaeUabqSvuvUoixQBuAGB+3bgaZ8diPkMGXfDd9ro\n0B5yg3wLlDM7ncayitpzvEr7QBB/lN2AxzfkvbgciTCAnkMux9KX1onOPz9w\nkqUHeHiJxZ6XImqleBQcBdmPiqFBYSDW/P4eeou3wjsebev5n+9Ktet3fZGl\ndz5ZH4/UpWepGTULw7m2REveqjicWq0451vzYEZF40UDNBrww1OuNAg2sr1J\nyYs1R9n4yDOkFsmbUDyMSqRCHdD5rQSXu5MUK07y5urAhlRSWG6Pb7yFF/6L\nXXsu\r\n=8FZA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6/4rRtMEjx+W939AGxa/83Q+qM12ApJ5tgm+6mdhMOAIgJV1IrwHQ66e9BdjHSCMd2FaWPPhCWk1JMLdsxIa2yow="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598060874848_1598060884878_0.3811266901539412"},"_hasShrinkwrap":false},"1.3.0-next.1598065304830":{"name":"playwright","version":"1.3.0-next.1598065304830","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598065304830","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-UI+ykKKtj96lISDuM7+it8ATuakAGqzGSw5epiVUp5vGnf8GJe8qRDu/sDvrcT5rilBAiB1LIgFy19TR/v8h2Q==","shasum":"edd390f5139f5b194a2278013373b2522eaab934","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598065304830.tgz","fileCount":152,"unpackedSize":2389064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQIqiCRA9TVsSAnZWagAAMyEP+gLRzQorQnt781Mz23j9\nomPRJaG3oFaZHcSmSXOJwutoVsOh3pfL2Q79MQK9Kq9Khm43qegtC48Yrggn\nGIvArVQ+Srz4zP8VkRKUoeBu2lP0eQ8RkEux4Ac9IWg21tfHMV4Ulqi633nm\n0VEN03EtWXttSZCeQsBSOyGpnisMf4erJUo9auhF00F36q9VYpx03wkOUmHX\nwYGi3XQ9mC6O9ZE5ZRyzFCrU1qBblnyjNF/dUsjeRHmgOLFHOfie2APOeDEw\ntvsYs+K1ZPHzszgQQOHxYwxxwIoPwaXckr7m9zEzrPgVEdHjmtYuAF+gnXfH\nd6MhxqavdIaUTaiyoDuFNjBoVLqIe0mQlQ18r9BfqppRKM4XjyeOg99ChZST\nxODtQ96YfgPGgI0cLmN8vxol4mtY6rkmKE5SFTQK13N5i9ePnG6xJoZFWxp6\n4GgBoCDmj9o5pT+Uo3fuifHPkBaw9YoY7lq1cIcJOkFg94B6m+4PECTJeXeQ\nDA1F5lyo1HvrGC1hS/dMgCMdhDiqRXUbjAT+8kHG2WGg+zj/xKbjBGyK7JeI\nYS40GsRyRZ5B3Ozmom6yF8O9haxNbrVhckvsYau6FqzbBdxdq5QajiP50fO5\nDUZ8gPV4HVzu7p/c5ZdAOETl3v1JsZ1vtb8MI5DUxxWti9E5fL84o3LBnW5m\nKtU9\r\n=a1PH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTPw5p404xOmUHsLgD/Vbu4toR6GmdP9XIHfS86TbDDAIgRHFJvcNpcQUvkxmJt49or8J9STdLUGkys6sslJuOBPw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598065304830_1598065313596_0.565012424624487"},"_hasShrinkwrap":false},"1.3.0-next.1598080036870":{"name":"playwright","version":"1.3.0-next.1598080036870","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598080036870","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nFa60A8rP3rGkEh5P81bCU4zDgrXZ3r0m6sP1Eq9X9LjwCWQaDgoswPitK94Fin/QWDlF2zCckwDsYE6lzfNzg==","shasum":"bd067d9dd17bced6b768241c98a24def26d19ed8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598080036870.tgz","fileCount":152,"unpackedSize":2389064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQMQtCRA9TVsSAnZWagAAZYsP/RD6OH2cFiM8/HylblHi\n+3LrCjEUY3P24xyIoEJgyYNJO4Q3n9JwT6XKEUrzm1c1YalR+qpJrfQN1IDo\nSajDEc9sWokNOQe8V6onSQ6F/7Je1tiT3wLwkt+5RuJp3aUv9B8rm1FclpA8\n3rPLPUXSoGjwAG1CF6qkwc9c0GnEDczcsVr20+/XQOMCrmcmsQZowa5NR/+T\nNqa/0yECmdhzB3BN+09MoPgqwLzI4/DU7lwoZxsw0EORCVv8dIyYWyfztfl1\nefzdVAwvoWs6fm4/B5QwgLhFZubGy4Cyyj3wQfA9s5/eYN5pp4LlYZcUy1tH\nyULPPEhTxjTg1ZbGcCSHuaattT4YFI5B5bXx3H+dkkHtOvM49TohwTdTKOD+\nMJAniN3uTLbwcONIPFH4OrqXaJJ+S72luQVwLKgLa1enVQMz8OWzPbWSM1dQ\nErhNvgu8oHsG85N/PaCBjFTcgddJjgrRW23f2BS2Vy7/DMHRSCzHW6AayDR8\nyeLnPbjnXI0zsRAGE7Yxp/ZsjGZ1ndz5mDPWFMg7t0xB7TOKHVD75GTU1iMR\nKRGjfUflO5eoLSl8/NwgXo8ifT0oWyWGhCGkd8K4ueoEJi2jGfR/8MXCs/re\nN2CnU+CV0bs7tNRKTUVhXCRtwIC/FVzk/Q5ZCmTPYUDG5IvpmnbQycoBYL/C\nUMIZ\r\n=fifm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA78+0QhbdZQ9wWNaW+jK1qRpI2cROjGc81iHZvtiwi8AiBS3MDBHW/Z+Y6IZ6QrB5rPU4cUXDBAQXv3Im6+kTkmXw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598080036870_1598080045198_0.6007432110801978"},"_hasShrinkwrap":false},"1.3.0-next.1598111309672":{"name":"playwright","version":"1.3.0-next.1598111309672","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598111309672","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9TZ46EngpArUXrQfHejx2TNd2/J24NV29ht3xOemaFfTknK2SvA3MjWtvXri5qOoey6UGBgW1niL+68+cbDGpA==","shasum":"f970ec5c6919bd5be22276a9d6ae23ad481a1993","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598111309672.tgz","fileCount":153,"unpackedSize":2389058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQT5WCRA9TVsSAnZWagAAeh8P/22xvJ6Aqzzjrw1elK5O\nZSynz23fQMUeQj4Lydj4FU+tPgFQttAO3XrJhqzGqUs/CsxfqfgOBe6wiU+B\nFqmenYMBHzFnYSc88VXIQkf6S/clHalJuaXPfYQQdv7nYJzlGz/k5dC1Jv/3\na6maSVVQobGlkgZWHDCAGD9JEaF5J5Xi7qKsaoxfq+9N2YcGpNki1l/GvbZT\nvcUTHNvLI5fB6BWFsJuN1hRF6WYkGDFtaWKQolh+gf6AYt74G7chOLi6PfQe\n/gpU/J7LZa5pdcrUpEUEb8i4GTdc33YH8KElK8C+wxVqsmhxktU46t0nDxL6\nxXjtiLFwM/PWSME43JpodTkBfs0lTMh8BoFW9v7vW17S8xeULQajT/iMZVsq\ntKERjEQlgzQikIGqSFjKoZhJYzQTPZU9MPef9d2Z2Ogow3iM2O4GPt/0YRfS\noQ52DOFucrJaiX5SOA/WBKpGHsB3qMi+MXJ0X0jlFeXkVQENq+neTst+Te8p\nKkE5YBci9lIM+atOJY7LaKADuRTSBVukx3SBpXT9jcj05IbGkV7y3tb6ecTf\niL5gVjG/bCeR2w3CVqn5XbRAa2vC52BIIk/cV5CvWSq8vacm9czvn2XjDKJr\nmx9PLAkGeQ0tTgbgAuwjopfJUu6sQWfhfDmDz5Bo2kJp0z1gJzA/Rp3mVzen\nf4VY\r\n=X8z/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuXLUBsZuphjIx6tGb9/6rstXW2oJxB5DfVrShUvg3cQIgY83i7Ny10KvTT5sO+W+b7LEAM3kiZx36Z6HHB9/Q05E="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598111309672_1598111317801_0.6925937145577645"},"_hasShrinkwrap":false},"1.3.0-next.1598117182790":{"name":"playwright","version":"1.3.0-next.1598117182790","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598117182790","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-K8VLAa5xLuuJed3rqmRaP5L5Ns0O1dufifr3V4To50x0FY/G55DjCwp6mZuECdpyJ/tVKgYKqf8NBVQEY2/fMQ==","shasum":"71f952db815c92e367f103ea03f0c0914e6ced96","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598117182790.tgz","fileCount":153,"unpackedSize":2389058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQVVHCRA9TVsSAnZWagAAumEQAIRBNcdDZB5vIKmAEVhT\nJ2pETYx70Q78dBZhIneErRIH+6qOSqPrnCSopLa3b2fmfjPhN36DOXGHZqvi\nRPCzl7fgVoeuReGVvfGREQ+tS1aoDFcAvDhJnixiDNuRKzASHnpcG4wKTG8w\nOBwLI1WxPjkw3OEE2uv9xo5Go10y7tkAQ5lq1mEqKVMClVu+CjQJ30WBGL+W\nJ0Kk2qq5hZyVq1yEyESdCtVJE18xvaNoBGAVzWL6C/YeoswqFbUe6u0UZbjc\ntNhaohid+PMKU8IwseXUbqVstuRMaR/J+mEqgYOb12oxG6wDayRq+zDy70SY\nCifFAizk+COPvyJfoDztzjvtpcllcidPfI3n+jbcaoq+qdmGQD2QhdN/sicn\n7S9ZhJZicVEqm8it/KMF34dK3Y7MSdJ15IS+oEhLMJzmqGnKpo0ykPPy52IH\nChGj/SVQnBOWvcHTTKVggyPnGQPodkOGJdPlIPlmoACG1+viM/VVhSAZYROB\nfcTwZ5Y30fdI721/omme4+6ydB3r8nPMIM5t5/gi7kOZ0XHdLivrKoDmjH5a\nWPrER6QIpsd8+ZSXKLEH/nqF7ntRJlGNAhC2GFRe9XGuapj1eod+Zuc/YTB9\nkQgRjpH4NxB+7C7tNRkgkNTPJhodLozM5WdAvKhu5wuOPLDEdzr5xe/KY0tj\n0Z8b\r\n=iQZm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqJnp3L7FyFEtYuKh626yHnluO/DjJLHr7KhzjpVUpYQIgbUZa8Msth5sHDzrFmUfvk35V5iPy8N/D5wkVuZa4e5Y="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598117182790_1598117190845_0.9481996181293226"},"_hasShrinkwrap":false},"1.3.0-next.1598134554137":{"name":"playwright","version":"1.3.0-next.1598134554137","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598134554137","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/L8BjWbrprZ/KDTJHmLlYAXMEHBBU0PtKhcAwusaawc/73cHVmRUpnvkPrfQtyKQNlHAnL9NecaON7Yw6f8VNQ==","shasum":"e3f7563a0fe22d504fc2add46d631e420afe4ad7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598134554137.tgz","fileCount":152,"unpackedSize":2387330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQZkkCRA9TVsSAnZWagAA2LAP/079JE/sqwrYoGtzP+yj\nIzGJ379L+szTKq1xBIkeNktu2Dz9de2RB0RwzM2h2MXZTWDsIDmv7ALXh06B\nEClkEoPYqFDwI0HFcxBQK0HkRiNeZDCqblfN9PL3HpQ/vqDDEx7cKN/Xq37m\nnbn/2Qn/2G5nVAc/l8SUJfs9BOh+kuh2o4BOGlqs35nfoCobtrmDUq912DC/\n3doNOefsF1slf6KyZCU3huIcRHkQMibJDvfcDr/wYPT+6NdO2wS3QL0SfO5Z\nlLFGPGPvQx0tuvKt36RDA20slNmMemlSTkmPQWmR3/Ue8v3He2RvInQo5OT6\nTroI5/20GB4ZliiL1KDcyV7Y13aJzVbv9qKxgkRO6LWTSIHAazJxX+srHfqA\nINyQa+ySo7IBG/9bS3c1ZfyKJol52AmxGvpK2PgtoUlBiNdRCmNO7Gind9qY\nPnhb0DU6EARx1bdemgicl7sZ41WC5hjHmmI6h7C3DeTdT8w5FsXh/UHjNEQY\nGlyjuwRpX2mYg+ijanuwKFidKvXzfA6bWk8eYQ13rxeNhgMm0zHSGAo6nH2S\nzLJ2tehXSwL5aQf0Q4JUdnR/nixp3/QdpNXt7Y8L5GS+WmZubt5/Ezt3cRHF\nANgPP9yiq8C2IcWDE7ci+uLEjObhlVhtCGl4n2FUc/W6o72tQN4avh3WKh2f\nSJvD\r\n=Uufz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXiY5mREYdlFjtsC3rArBFB/iVpFwvHS5yMubitU/T7wIhANA80MEzCd0jHCWkOP9PjQdF+Fss7TrcdkZCUG34pKrj"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598134554137_1598134564215_0.793856169278808"},"_hasShrinkwrap":false},"1.3.0-next.1598136536127":{"name":"playwright","version":"1.3.0-next.1598136536127","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598136536127","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-TKR68IpdCnpkdoCcEhgWHb3M1vT31yO3v6UUN2EQUk3pX0HbINLVVuelugwyUZPunsnGX6hr/kP7dwgTm9zvYg==","shasum":"d1ff071dffa11e742cac25cb9c6578bce9c22edb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598136536127.tgz","fileCount":153,"unpackedSize":2388343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQaDhCRA9TVsSAnZWagAAa8AP/imzpRyOeYkc2hVDpu6z\nHqZLpWkIJ3s06GCQ2IAC9R/VY0Z09u9pWbsyJJIpC2KkUiMp1uvnf5up/S3m\nqpd2xr5ZxoEJ+t3gwwQ0i+oVuwP1R5Wk0TFr3Alf/kAb/+ZOyjO1nZlBttyT\n9ETCz3VxkHVFZsOef+bfLbvL+cNiSb1T0FwI9jm6wfFvenirHWj2GaAIlFsm\nQXzygV+ykVxlVeeoxYYJ7y20oBcw/WjZlhCu/A7VaJSw5nx5k5X94NO93uM/\nJ7GtJ9EZdUb4vL+KEKrwKLIXIHOBHoKNJte0eDZZk/WOYYkPL0amw+Aqr5qj\nZ6tdww1Q4vsNb5BJmvFeHtzV8eBIeHe+GWN7US7scOSX4sgRqcmCOHk3DhV4\nKutvn0o5UOtWnwgpbqsVFqFlhdoPiCsvrVYx+JBK1kl23j0YyUQe41iHNz7D\nIlRRGrJs53dLf2jUbE80p7yhaYmuVPjxj/e6gJz/VT8Fi7LLV3bWxMAIqJ3v\nL3MDx97CeclHsEtVZE9mud5a9KeOEuK0qkwoMX0NbwIQ3O3Rg8wkoo/1U2oN\nfbR7eS8qGX0FTJTT0UgVH8E4S1T4ULE7/ZjXBjV/Jw+Fv3mWRyemdpxrYALi\nhhkG9CM6vZABMF7waUmjs/M9Z/Dpgz1ZyvOwwrKYUais+52nu/h7Wwi+FMUD\nnCH4\r\n=5od6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvGQ+3Ic9U9PZwfXfikfKdjDwC/hMgXj1o4CxxmrOfPwIgc2aTUkObO3gYWLatcGufOFCMVyCqDFgH4n2QI67VSWA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598136536127_1598136544878_0.2854493804824241"},"_hasShrinkwrap":false},"1.3.0-next.1598140010159":{"name":"playwright","version":"1.3.0-next.1598140010159","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598140010159","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-z+YnsCRgM4Fp/1FgxMn+PHMoFL5YmKxFTLugEaPW6grrf+spbduJzps3kPfFZDdV63w/tzk/0K1y7wta7AhZIw==","shasum":"03d8c86f4fb12be3e0bd55f1e40e1eeb7628f74e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598140010159.tgz","fileCount":153,"unpackedSize":2388343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQa5zCRA9TVsSAnZWagAANxYP/A4DMq8yFQ/CtxTk30n6\nI9MFBbxuJ64bmcvH7SqDNw0RAQjtvYj5EL86HYEWmi0n2PMcqstnR8pq9ehy\nIs2P1NOoaponqLeEmd0BcsD4RTIE3rmUKmpRUVP+YZIsBtyH8NH3JZRR7mvh\nRECLUKFKp8nByFT/Y5K5GQ8juYnGFCR4+RQpE6snyfQXXh11kgvC8TF0OTyN\nW/6HB5IxRYxh0F+Y+8bI2yjk28vq3NehbpSOtIcb+p8wynYtylsk6PZygn7D\nfNevgryQydy2RedSKYei1QXwop/WLmiltggrrXXjeHUvRKQQwdKEtqhcO2dC\n37SAopcvA3W3rvDGk1E5MD6V08gs7k4yvU046FWKOYiBFGUg6Gm1oWkGulxQ\neEsSup6iSW7LCT3LVJra+0+EU2QlogVKGmiX1qsopLG3wM+upk++nwRvho7T\nB2v2xPc19g2CWMdnhaVa55D6x58JC8tEi6WPyCkcfNa2w3ZKiHJUoqxhw6eH\notXk4KBWQF9NHZ5E2o2UZV6Nf0lzoLl74JhCp/7Lj/TIpVURWhMCceeXGG6D\nqBAojpeTrbTrrB/LxtJEoH/rdvpD5pi7AuOsYzp9Ta2oIva+LIB6CPWNItrG\nfMtCwRN/vuSErFMI6LRqa+69VX8UypeTo6bJepEcvbj4T8sgmZnbg4AB4n+Z\nVisg\r\n=+Ke5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDj9Qph8zw4fYtk0Qa5pRPAGWtCxUKLPRK3hfQztgbUOQIgah31HroNQnT4QvINY/YMVsJcxINZJlU/DnPKTTyHYEs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598140010159_1598140018853_0.9613272012409015"},"_hasShrinkwrap":false},"1.3.0-next.1598156350193":{"name":"playwright","version":"1.3.0-next.1598156350193","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598156350193","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-71ODTLKskv9yyLzzc6Xb0NQe/olE8oFxz7LK39MkcCbF82yXJpRHdV36wwIuUR51zERuT3chnYNxc+Nx4SY2QQ==","shasum":"8dd9cbf286acd199b3352de69550cf3f6c00a0dd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598156350193.tgz","fileCount":153,"unpackedSize":2388339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQe5ICRA9TVsSAnZWagAAKFgP/ilLgkzSA0aukN/ZLEsY\ndXlaCsjFXzVIV34/kI4Tkx0hg7mcIse5lSQM9mk6eqS+SRQImYHizC8VmTZ3\nKKB68n5rpPa9wr501H5yZge9VvgwxzM3EmcYo2c3MMSOLzQRa3vFgTW5Wni4\nJjl9lkcW8kxSQwLzgE+qoDkcTtL2fT46kXVG1nTryx3nFDyizTHqrNJZ6iD3\nQFyUzVmWLkH21OHB1FN7HrkB+oepSQUbjUyi3dK/jIEBu+PxDSRtPwkCQ8k2\neG6Yqv1Rk6Jbvis18eJ542c4ImM0igJTsxqpR4TQrdt2E5JRfch+zocWGlaU\nXIZLZxLbNHFNtkSzTPh2MahuAOQ80/lbEN7l5+Pf7c/YUhVexd0JZr1Tgnnn\nMhBW2Y9AqXKk9yg5OX2mMKWtaCQj/M4wSZuSCoYhv0tjRRdrKbF51w6ONlET\nljLOJWlmG++sLjdh8ofAd+O4SWNvml3r7uYKV7uRy/77gkaLt5/1hyD8Iw8d\nYfSr0b+gh2wRo5xGW7/1tcQRp4aKvQD4ZgLlP1ztDkzPyd/p05xfZjMoEXVY\nnGoEz+FSSDiPCg4JqZmsXbmXa2Yc1ip93sfhMfINqN7r/hMEibReQ9EjwQ8P\nFnTBgN5zRvwNsmzyLQYZBis/H2BjV+wsR2LHD+FbNJwYDsyVPiMKjtpxuhN4\niFh7\r\n=LSmW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHgh7L+BRcqdpBGBjVh/nB5yPq8ha9HJhB4fWrz3XU1XAiB7YPqiQ+DCHq9MNdJMO55a4fAneASoBL2xA79FNw4wVw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598156350193_1598156359399_0.3064598355321322"},"_hasShrinkwrap":false},"1.3.0-next.1598196240995":{"name":"playwright","version":"1.3.0-next.1598196240995","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598196240995","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ABqTzEsqCEurqMEG2IXvxhB7oTEPT8a3o95yp8G6vg+Bcw7tUCiMRfJkhmBRjJZywUTVIDZsOdBoFMxtv/zGtQ==","shasum":"efce7acb3bf3b3ec896d2ec0464cbcfc43dd7ffb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598196240995.tgz","fileCount":153,"unpackedSize":2388339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQooaCRA9TVsSAnZWagAAdk0P/2xC7ttSsyF80PloAjUL\nzh9ApVkxFGyXGsI4Rskrq1PIw76LrT85GDUxDfLzhjhOaqKGGnYnOGhvXc8l\n52APze+DIfa7CKSfpze8pbvts5NKxjs4vPT4NUQBCAV/QuuEH9QXSVLq7L08\nmsSJskDKxzUhbgAIP8GW7EYZsIifgdIOABOBKI9cFs+I5p0DAbaWuPbm7g7s\nel3xfhrN6qdRJf6DON7/0JFbEVpIi7OEe6uvxtJZ23cTwVRBftZMZIlCDLaK\ncKo7qchuRpG70j/fCN69QaiADfH9OexqlGk12jaOZX59iGeAqGYIVmZhlgGa\nzsD6yz2aW+C9ltjlDCEl+7D4Or+UgAdzyCJ8OyS5/+m8tCpy12Rlyz1YOp1k\nERFvP8V/4boZBarFkpeeKIWsASCzQxsyBX1Zax3K9zTF8O7cT2u3jQvcrq7U\nqZUrjxrW1icCxsYaDPEyNQ94OgIlmylC4MCwooC06f1f4gqWS7XFwE5UFyvV\nkzJgHNCJ1pkwV7BayAQ6EuDUKA3elE2ajXDadZ9jqkilshhH9NOiwjfxJsr8\nSuojXoZ7ug4Y9a0knk3uAe81QAC2ek9qEDaxgbsJ3sK0MRbGKL7ba1v7hvYz\nTKb0L7DBTenSwgYMV2eMcsw0Lv+xIB+7bn9QDOuJWa4J4qRfDBBpWlr/Tcwi\nkuuD\r\n=Mot5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt3UuhjnjFcubjld9zgXOpawaZV8QFJxdEJZRmVpbaagIhAPl6qpd++s6MmtcsrADBdpb0MZChWDcvbiGl8XG0jIeR"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598196240995_1598196249704_0.6223321105685169"},"_hasShrinkwrap":false},"1.3.0-next.1598208400601":{"name":"playwright","version":"1.3.0-next.1598208400601","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598208400601","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-oLl+Y2zgkYMDYoed2V8ormCirPWG1RSx/2Zpxyx7FMv1M5cQv+zCoaEEfUen+OTE+nbHo2xkX2Ftq04SrY3xrQ==","shasum":"9afbe98fa93742f87be3befe40ddd7fbc55acbec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598208400601.tgz","fileCount":153,"unpackedSize":2388339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQrmbCRA9TVsSAnZWagAAvzQP/iPZLKzc9/ML4ZBYvCRr\n1xf0mwbvXE28GqUjwua0YKYLWnpEueynfPRmG5u0Y4lpOuORuW9QVYpSIWEO\nXpw8hKvDJ34Eegr51ILkQxPgAAvW1st0kXpxw3dcfPdjLn9gfugVNR27zHCp\nd54rigbnH7/h7K6/ZaRFK001OI2uDYRy3RnATxFVTbyj89v3wPupyy0zCSlF\njNqD1KP2snzQO8viK4OAqSvfDaVvwG9UlfywDbd2lkCXBCjhGbxinwOhw5f7\nyU/ww99HPv+d0xDYtCQo48YVWnYVXrMk0yTFYvoDW/mJlXhCNgDOvqDOsYl3\nIq5GTf3Q64+4oiv5CJXQvG0r4BHsNeAb2Iy1ZBTEKFugkdw+1w9Tnw5WRgev\nmfJvJ6mh+Re7P13UDIZABbRg0drsaBMNxISVfpseA+2NcVvMOb752oAlXmWx\nRgWgNbTcDtzZJYBSLKveOB80676eoKOoHV8EZPzlSyzXoQAclQEKdYpzRlE4\n1ZKgVRnclze28fgwwmpqc66o37v6Wq/T4CPrP3w2dt1W0fwKBv4hG8knz4p8\nzDxu0pw9j+D6tEgq7qRR0caogHeuGbukwiNkmFsm+JwO4JbPkxfgLZCuJDbl\nux5hmIhyISRvfnRmscVD1l01Q9+FJ6ov9Ej1jZ6HfeEghnIB8EoBfzAm3otN\nA7Jv\r\n=dnpU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGgHLTMuVXk5K1U5QSOCeLalYnQwF/E2dDPRGeTUo/B3AiEAywiwprhEjplTKJhCcU/loOGTYNHDfTMYiJRJjOk/OcY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598208400601_1598208410495_0.024825956707693386"},"_hasShrinkwrap":false},"1.3.0-next.1598215743923":{"name":"playwright","version":"1.3.0-next.1598215743923","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598215743923","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-LF2zKV8zshgJDTu0aphhmZ3os94v7v/G6oofoFKQR0T1agqXYDYvZizgHbTJQ+p3m9AfKtZwq+yFnQYSbjZwBA==","shasum":"50a142f45affe547b9d559cd50ce0ad239c5293d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598215743923.tgz","fileCount":153,"unpackedSize":2388382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQtZJCRA9TVsSAnZWagAAY00P/1V2NZvkagg06oEOlxvM\nBsoEn4yw9HzNZKK/QJ8yExc91lEquaTfg9P2mnstjVN1kOx+SZ54teWjt0Vb\nQVUHC7J7OyPMRmFRugPC3u/2QUJMzQpe6Yxrf1OepKqw4ifmdZRcsrqnW5c/\nyLjH9+1IDNu5ZdItKzowUawcLeBoHwcbHTK1GS3WhgpNXRAmkLOLry11+3jw\nIOZnKrwjMjCd50mYXutkEHcOAU3kkHozLnsvA2ytCE4LcyosiOmklDept7tT\nwW5fciE/0G+DRBFXtCfx1ZeJZQPcPdouPhjn54ERq+MhqFj+MOJxd0AmkNjr\nYd7hCw7+dvOTkpCwRIgQa4l+GYJPXRCP07g+zl6nCwChJfm0GR5wUU7Yyimg\nQ+R1FWyzjIetqu/92JVFM7oCS7kdtx+VGqVT/x20x2MgeE9D0PRYlDlLtCk3\n+JYUTf2rQ78s68JD7e1BFiBiS67I+9bCSGEj49SGyUVvTY5nMYxIVmo2qBEY\nRSEA6qYn9d8AaqKRxB6/H2zjii+i84d5QZZX3qh39ZfWQcn50RoQyXRiJFiZ\nHJbD1DuJXj0ZBL6lPzvoo6wyubgJ5HtJhtYrLwRKQMIEH3rIurJZYUm8ITc8\nChf81mO4oylMyvCwal45wpOS+sYm9rMEogAhEHBFqloVL3VRAFBFkDYdGpbd\nKltT\r\n=6JN0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAiMsoL4wtxbB4V29FEXerDX+OVEQ+I6oBcsNiQU6ERSAiEA0apvujoOxBu9sqjg8BgZLdasL7sY4v4MO07v9R9Jmrg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598215743923_1598215752982_0.5724161110336519"},"_hasShrinkwrap":false},"1.3.0-next.1598222493765":{"name":"playwright","version":"1.3.0-next.1598222493765","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598222493765","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-SwTff18daX21MHYPkmx6Ya438HmllinMLDqaSPN9lewa8aHqv4liTJGBdppc0AlZPoEJJcPZgu4sjf8ah6bSiA==","shasum":"725988b32e0db24aecf5225a3dcba23b421166e2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598222493765.tgz","fileCount":153,"unpackedSize":2388469,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQvCnCRA9TVsSAnZWagAAQjMP/ibbNv8YaPB2xSVUC8oO\nwF9FlaGX0LZbae5fR+EBQ8mtQgCzhZuvc2UMNiMOlWuy4n1J1C7CejlUd3X4\nkQXySXY3cgvpAzgxHPz0JRJmAaTjO0Rr5ZowVM+z0j4YoYvk31qDTX+wFnX+\nQRbZhrZSmNKjfPd5M9iPGgQOr1mUul3cmSIzMC8sMUyMAzgGYn0K/VV7Oz/5\n+J4UAcRVnwas10b8WSBEcpWekHzg5HVOUnRFexzsnUnqgmzu180uwa8sw0T2\nhdThKELgNzGdxgcld5fWuYIl6oHAs/l5i71G0/bV/xxzcEKYGITCNMOxHa5S\nbUYnNPZiYU70LIFVblWXC4i9KNak6knuWWyjrDZi/FroVkmVkX/qL04dU65N\nshJpM6rS/3J/aFmdS9gpRSrllL1nb8yZKf8BNg4zGarzVa0dlhhzk/G96XzX\n0Zti2LAu2cbt81ISWHpejBBHVGuzuzrIeMXUlE6NLiFuQ5E31V+baczvr+AP\nC6oQVUqBY9RC4Ujh3fnGk8gJVE8+T28KZG7zIghBewfBSzwF4m4ibswyMLWF\nsoIsbgDcWia/ZYOqB6xM0gTKLy7NwZb9XvnYOvC4JjGZHov/otj8xSEr5at8\nlz+1m5YMj93gjMddA5qy0Cw97+9sHUrsyfNazMJGe3aL7cmwckCU4SoMYmqg\nvTHE\r\n=+h7q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUiyg6fkImszbIoLyewzHT0h6e3qy/kttU131ot0leAAIhAMyxjBNPgw+cz79BbdCJPubLv2T1IBLkB0jpB9GIjWbz"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598222493765_1598222503350_0.002588653473319047"},"_hasShrinkwrap":false},"1.3.0-next.1598227694738":{"name":"playwright","version":"1.3.0-next.1598227694738","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598227694738","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-piLdPGDSoKFdVuY7miMwIGfuH8i/jqySUtdryBtwkMZKFtfAMBQVaFLXIMDbrWemfGjUasWhXbn1Dqq0z7/wJA==","shasum":"202cb59d4d2d62cc980cb93eb83121fce644ada3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598227694738.tgz","fileCount":153,"unpackedSize":2388532,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQwT3CRA9TVsSAnZWagAAXvkQAKRnj0seXNtkjWxaZBeF\nhpxzpoFw43zYSW+DqaGW+rLvGXeMIwsPJNbKcbbS13hTsecbVINoMiQTsvDz\nNdn2zjBI5XIVWyChosZDQXic6ueQdASN1BRq6aig2JQ9NHdmbTgtc2T4+nlx\npNrMRez4qxKg+3/fa0hYavPcxaQ4UOzi+THaNAfgBC1cygvsyHlzPy+qsBJf\nQjcK70g6//rtPXuRBTRoDG5rrjqw0tiazbs6gF+gmfYdLAbIy92GOvSvvGyH\n2FzVtx+XuAvzmIAL8MwPWXsqKIub7OMnG9F/qR64tl2ZE/y3aRJzx2bc5SCp\nbVzWfMk8Kvd4/ZTSgpXBPkXPvM3lobJrw25ZGQQh47LKiukSiiI/8bD8RZIu\ne0jyNEXWfCkdCUbQ53e/G4RS6eCNjTIh7NBQ4GQTdhHfZWeiSF6eeNWG7MMP\n2gb+uMbBobdXAdixQmYQSnfpHghMK4gLM/QJyLfdrPg4SohzVTze7V/mOc0D\nPPgw7E4a1RrIcerVmAfN8yjmXqmrR5p2ZmRk2iYYwweVs/2GZENf4tvst9Ik\n+wbnFpo3nvKSUjL3GEmlYuV06VUjNWZYPtbFymWwDlnb3N1NYO5CYCz1iXCp\n1k3VBheMsbzsAsA/MC+C6eFBsJFrVQq2oTW7OtrKB48F2XloYr9rNG45v290\npFcb\r\n=Z1Ea\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaduSjxg/ts2sKg8/BDVVpnMfpmF/VAFXpyFW7MKBuHQIgGmvDffcx4Aib8dj2BD9jN7XHVXjlC6JkEgspv4mUglg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598227694738_1598227703211_0.0008553653858172083"},"_hasShrinkwrap":false},"1.3.0-next.1598239506721":{"name":"playwright","version":"1.3.0-next.1598239506721","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598239506721","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0Sunu/r/BzBIOXeiFVke4UdIW2WCVF56cgvkRiFY7h4vT56vLHJY0tqWuv7OFLJ+TvsE3fUJ15kUVFdBjYnXJQ==","shasum":"4e3e93dea01e34a2b3d5af1d4a948ee16a979cea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598239506721.tgz","fileCount":153,"unpackedSize":2388532,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQzMeCRA9TVsSAnZWagAA0WkQAJucZCB72wmRsmbMt4Rl\ntTVxMTvDe3zIsym299pJzUukm+l78maOMAguCkVvPQQegux4C0vTWM8VmhLw\nvoLcGuY3B81cBfvmD+T2Ou0rTbhOsb8U7M2/BBDaa7vTbUMW8ZQ3kT/OvTie\nSA+FwJ3S8thIYqJOW5PGhz05/EW42ZByDF4ow9BZAdiEI+u7Yd4DOwFhUrz5\nqOmZd9+UWVR5N0l+3SqYFhujzd1GBveSjDaZeBRk12Cyql6HYBRm9Iyl9YTN\nkpFrWf0cWLJ6vsIxGwKIvEJV+USWbTqKeW3wYDXzd+nfnA6hH52IH6HZz2h7\noN8V1DBz+z0ow2x0wsL2DCjEqZs+UCcvGfUjD6xydIDzj+YcD1EfQUJAPTBn\ntBhofG1KgObLeP/KC0hGFm8M2sGjXJ3Es7E3Ats644bcTFlz+QZ4yOkvypob\nYdKdWVPWgd4K8MwmMPjWhfEverT7LH5F5gP7y5McormBGgLMUn/R963i9FkS\nDxQSZF6x0PhK03Oo/oZrZhte8gSHHlXupBMOIP+i/tqccmvMwEgH5Jfzv1Sf\n7mPbRu8MaoLaz3XqhJbrQxzhjHcH3QM5Rc1BPdJpng5eJsGhm99Q3k98QP1s\nv4tkHOWik35DWupjF8P6XumIzb6S9iRfzKvf/BkYiiUPl5LImZ9los9cgrQs\nf5pO\r\n=xU30\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICmjjwxDVYnbHLFchW7+t6f/EVSYdyVgOASUeYFkJRltAiEAtYz7XCGcJRKfyvEP5IwAtVFKTgBQhIAuAjotSWdE+Kk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598239506721_1598239517873_0.11598176642167846"},"_hasShrinkwrap":false},"1.3.0-next.1598239671503":{"name":"playwright","version":"1.3.0-next.1598239671503","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598239671503","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-q7uOMathvDS9bjqt0B6UkjFuWn9nDQEWCiPOHcawM112AmlR5eitUK1FikmHGyYzAiorJpT0YXA3m1daRK7klQ==","shasum":"4f4d32beda6c4739709be609b28b767938f0fa1d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598239671503.tgz","fileCount":153,"unpackedSize":2387243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQzPACRA9TVsSAnZWagAAVeUP/ApM+j4EF7EBrse04PdS\nfFhZX3H1nTadHWRYq/wSC/6KuiKNUhDAxe+WmVxrnxc9Lo7hfBRRhw1MFw9p\n6jz3llkNnL7TaoLTfs/189liS7L1mOQ2rDiwqsOtb6BfeQpRBBxkTGzSWE4J\nNnhH/JEiAJxNntMSXSsCdm3/3+8KKPrb6vFAIz1x+6knRDN4ynTJ8OTFBw8f\n3oZHS6PbqSeHfbGshxWAvp8nj2ePf9CUziHpPeUogvcoeEW+pYOr89GxTdtd\n8OAj+FB+Qw7mV4O2nJ+IAy6OxWCYoNEMbnJ35KFBZPNBjrgdDt1CJp/KeIKB\nDMgxbFW+PEMnBqRZvNEvJPwE1g11KGfe86lhYY6wovefLuqEmFplG/SM3o9G\n316/ajVXi58bU5SupzZ2a/XCLjd7VAh1omkja8j/BT0yOsG8clgHpyh5dbjp\nvNfSTYpuw7S6KrgoiB69uhJkLIB2i5E7ZUSsSjs9KDqApCx8a9WJ8E1R2MVY\njNfMA0i7vug9qjUAld8ZqzJcfsufpQxd+jFyiGh4+FdfTubaYWn23hb6KRRR\nJgD952g+IVVwHcdKXXpxN+aUN7vx4vCMZjO47faCIRSQDmR61YFenaEGlfD/\nhCGVOfhinJqd7+/DDvT9bandDhIZntxvhwCSQfc56rBN2+J/B7Vy5W6sRuGS\nsxTU\r\n=KDzf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAuNFTkQbYQPkQYLylx7UxghlpdPsk7E1QflhqhLmDvFAiEAyvBRBHsqPTx9BpgDv0qTnHQF0NHgTSJCxqTkgCTsdR8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598239671503_1598239679670_0.1892199015213265"},"_hasShrinkwrap":false},"1.3.0-next.1598243169784":{"name":"playwright","version":"1.3.0-next.1598243169784","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598243169784","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Nfxn5T8OIXWPqffMs+pDd9tI7QGnbefmqW19AOz8GE/iM7ImOSi2p81vXfUQ3toA7Ns6lJ6yODO8zMR0O2R4vQ==","shasum":"1a58543424f6c90b4c394addfc295e18457f7688","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598243169784.tgz","fileCount":153,"unpackedSize":2387243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ0FqCRA9TVsSAnZWagAAW/0QAJoBOIeExWCk/ws+3HLA\nVx5n/5e9c8i5V6u4/h8gblIt7pq7CVDtlVbWLXwnw7t2yW2BxatTmiWJ0md3\nkVRhSUVgtU/q8uQ7is727C1wDjlv2vEQoP/gukx37EDYwxK64f+gonyhyYfa\nJ759IHzxqyr6gQHnN/ULqcjyU5dSPqEoKue3fPklboBJpZUwiSxFeINj1oLZ\nSC71RKzTCp1A5M5g2QqWDab81LuuGENQn5GBnIYBu3Odn5h2XxQDERUYcyI+\naUlTQOGmM5VMkfl1H0UO7xTtaQInwOPrsmOMJy97BLdHktO3gJNSh841EPaw\nbjuo4VMpkDAdrQ1ixltBdtaNJy7Ud2Ox/41jk8CHxTAsUCfBeYlKdzoIk5Kx\nhwmzyntarZjIR+wmISu4dhDP5AqIcXiMGGrKUAlu+6V2rLDYJ2GMA0WFZP9c\nEnaQ7jDxEWeqwyC5VgJgkAMb2763Nt22RKIYXPA2H7baNIQBsOeqEAqAAYJM\nEsJICWpbDBkE/j2bxgVXpAVhh0XOEKgZJtO4x9FeSq8Ifpt4xLbx2CWct6nO\niXJ+mlh25Q5PJqK9nKkJihYEo3QofnDxlVR3+Ddky0FpSbGQN0LVvBfiobXr\nnKMpvfGxWMFsF/GC8px95IlbmyLJhAqzB2cNSgBwFrotRUqfpxD7WjCOTQDl\nR17/\r\n=oeXm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDP8JC2zHdqQcT85AMSsSkOqINvj18D1rRGVvHJ+zFwCwIhAKRsxoABe54XfZ6uRlZzkf99kK0sydRduSjm0Mv9jdgz"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598243169784_1598243178167_0.8265656747566346"},"_hasShrinkwrap":false},"1.3.0-next.1598277233872":{"name":"playwright","version":"1.3.0-next.1598277233872","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598277233872","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-L7vtd99/aebT0aBYKBIL1/FISJUTB30g213fd9ivBKuB/i0k8Y+akHppB28HK2BomHyIbqPE2fsoIrKvVGooXA==","shasum":"517b6da2449ee72acae698a2f0e34af84759963f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598277233872.tgz","fileCount":153,"unpackedSize":2387198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ8Z8CRA9TVsSAnZWagAAuWcP/jOUkU7IvEwRGe+ulFIs\nJI7Hj4hBKQHBCj7gFH39jm6EccVx4WmBJXTdWandBDeXyinP/IIF08eKe9Qg\nghI7qADX6CZ4cFEMLXZ3XmB/J2GH3DQnUDNIQgJQl4XvtLLofYRzd29P2LKv\n7YdSl5i25/PhNketG0Mk4DYMtxx88OU5qSDybTu6RYYueqbsQzL3sCOkzxrV\nLvx/uISW7NcK6brz21RCS08PhKOyweoKG+vFQ31IAfE9l18el62gWqNDGlBs\n29z7LoqTfnmy81hnfExXFW1gxBrdk6tPoNtsLAvbD4JeG7jlUfzZjpwGrL6w\nhltnwACaCxYbGO+QzggZIV/1J4dboLsEkMoFMuUDQgjUF+t4lyl8upKuufST\n4Lq4weBIMTCWfSB/+wRtw44NmPDN7/CU2JLuXtHDhjrixP+cX0Mvuui9b48b\nAhLbFAWhca3PT612MyT5MNlQlvGFLqpF8UxEB3pxz/RGHfGln5xqfZa3k2mS\nvKSx+t6ui68cudT22xZM03dAiHNcjEQ4HMpxATG8bGWbbFZr50HBRO/5z1M3\ncis9VCMPaiCZh15I7OpkQPPz9s1flRejHlTuWW1WFODiazbPXtUbW7d1yXdo\n45/PEi2Y245HPj2iVqIbjJszhS4PVSUkj+ovKWB9+9pH6sfBnU/Ip6yGX6mv\nC45i\r\n=Gd7b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwcyC4X2FlLr8/QcfDP91j6B/lC+dMGLUzGTqyf9kr4AiArCadXFA62a2G74b/KLr3CYZq/7RWHPA3UHyKwW1G66A=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598277233872_1598277243607_0.0721865440852052"},"_hasShrinkwrap":false},"1.3.0-next.1598281882574":{"name":"playwright","version":"1.3.0-next.1598281882574","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598281882574","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-v3vTH7FBi9QpGgE96/XlVqRLI5bwn88/vtaPRt1nXcu1RsP0fCqXM6MhMpgkPT+CmDJPURsXwhzPLuO4Q1Oadw==","shasum":"eef26918241ec88d473c8bbc62a9fce75bbf2d94","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598281882574.tgz","fileCount":153,"unpackedSize":2387198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ9ikCRA9TVsSAnZWagAAHDIQAIKDqLa78cUoRFUyeeZJ\nOKEa1rv3Qm3ycjrqLYerLcGFwCTwffs4X6OmiwqMnqwjRL/F19Ax2CFo8pWr\nSxqB5t24NyR7MZFxOwq8WxphE9edHrhvWTbtPu7drZQZ13uDBM16R9nr6cih\nw7uywnO3S3m4dSO03OghplEnaQ2Dk1uoxMt+SZKh7YwRDVupF30olQovlk85\n02e5XU7GWd7Et3gVnLabaLDlj1edlR2LTNOobvRdLD4cMvbTQBIYv0AKaqsX\nipiIp61MHnZYBNcLPM42Yy/h/6CqzP1Auir1TUAJbuHaxNaKjRLtnT/Pov91\nb5Nm+5DjnEaPXhoOFa6w+eZ4JTTNo0E5i5+7ol8uA73I8OTbvK2txI5qRmI2\ndVi59LB9PX2WpNaLE0FegqR2vgtg4qopq9HFiiIPnh3KKQlGc6NehCOxgWtR\nvf10j6whnM35uM/AjGVAA7r/eKXopRSg67mnsm9nuQueA0ZliVPG8qM3iej4\nysp8wD21PpgKW+09xaz6EHvu9wHrsZt/Mm8B8QQHwh5as717UFVGm4q+sgCC\nB42fMSn3xQhDus71LUDavEBt73FtHQqZH/yE9m9+8Fo+XPbzL/ClUYclbT/z\nMlGfgYtGxtloX8/UTBZKGg8WwcvJWej9Urb9V5uTcXpoFv69hddDIqJJny+d\nx0G7\r\n=gFfo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNPOlbK49I/lc2E+k5Il3HVAzQmtgjcTGg3VArOKMBQAiBz8MIfBhtVgWZKPxBUNKY9slYxxGQIS+nD86kvOcqsUA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598281882574_1598281891839_0.22178694624931472"},"_hasShrinkwrap":false},"1.3.0-next.1598284711748":{"name":"playwright","version":"1.3.0-next.1598284711748","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598284711748","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-a1VZk7DGcMpS2HZZm3Ho200Rv2lD48WDA4++2YDS7YJkjf4nu96f5WGmqPDphBy3fpYkFiPrfSWONQF37o+g8w==","shasum":"0d47cf4f7f119c682aeb79809fe5421d87baa873","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598284711748.tgz","fileCount":153,"unpackedSize":2387198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ+OwCRA9TVsSAnZWagAAtLUP/AhRwS2DKPcNdS111t7Q\nhOq0y2PJFWQGXVPAYPh0ElQygJnX42xq0ZQ7O7aZ1KOIoo5xYhT8nNAp+q/c\nFW6+Ruf6rKXqGRTOt4nxBGcq1Vd8MVygh1+2QwI4Y/v2H4XYOQ35m017dw+K\nH2XudZg8H1e4XYy+0XirqK0VhUzO7959FyWZvSkOFPwEeMq4S0Am2kgaxirM\ncNMrZicAKaSE/WtsFGfwcWPIEfwkfWxuEBy/iwwsjvslIJBlHECxBhWKUT4/\ngmOOSW2OlTVZR0r+xqWtF/lTW/EBUH9QZtycUbBfuygqAKkgVUfFkODBvxKT\nfgkjIXIdKvW/3SYY0IDgPKF8N1rJ0hIVrbFhH2hVCd/E9oPaGLykjNX4ZHJU\nrnS2mtA53o4l5J1vs7TnRBPQTZXZwoYMA7qBQJqWwNEHEwHgTC8ZBkl/Ah5F\njEERWYt1mIoYOKZIvD3rZzboa/wq66exIp09hBIJ0PcBLXMAnTlQI5j85Gs2\nd2YHX/h/yfHajVNR0ZJ8lYGs7b4yFu8L7ieGBX6ncgsy/DUCuXm+ARs05Ea5\nqMIAEiqVDVzu9c0DvF6lnjyuVQ64k83RtDIavPbWTGUj/0p48PyYRxFPfQeg\nsVo+jtNyx+oE8IByyvgtwKZDm9dJoMV/rrN51ahP2Ygav1B0MFiO98EfqKjK\nnN+s\r\n=KVJZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA0fjCqHX7HFEVAlBncot81FAnCxG64k8udm7DRgpzGRAiEAklQHEaHniPqWF64HTWrv9ViGOIf3mlSesFhAdwT3ULM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598284711748_1598284720392_0.2889068067310234"},"_hasShrinkwrap":false},"1.3.0-next.1598289995418":{"name":"playwright","version":"1.3.0-next.1598289995418","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598289995418","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-abl/fCtUOQyl08pQeSE64r9hRAJ3HbA8nea9ZKRNhSgHKfSOJtby5TVTDXEYWm1O0RsOmHlSMONyvh2eZYTycw==","shasum":"01d87d939d832359fcdf05a920d9970609b9946b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598289995418.tgz","fileCount":153,"unpackedSize":2387198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ/hVCRA9TVsSAnZWagAASdwQAJGcaTUPs16WoJgzQLuG\nE0t6HofMA/jI39VRIxTINoNDXAxj8bKy5F9bAzKhcGE6R38AXLXrhH/GVZ0e\nm4eUo3k9MS2m46J3xbtO5bg0FEgzWPgbm8W4t0RCf+n8Jo0g+ggbU1RVYGSu\nTB8aZQifUk825PGb5vv3yMU8knDNAMJhCQD0bITnJeodYRd4GnGnOB1769P3\nttYe8/cULhFU8wxNKGoXmfpD53RSNdhDnNKD0MtZuoIAz3UEQ2XaHi3p3i9w\npFBBtVt2n0F6/n6oTopUSXtO8PoxVCp4496QI+39+UuZMWG+3YoPQ86OBRs7\nV241GaX7i7Xca5bj4LLai3NnNikBiMc93a5BXZiRnsXM0xUUetkyw26F8Wt6\nZ30t8VAik5afhpW+Zh1lSQpmnC2jTVJMLDlSIa4leWIEfYcRNQHfKsQijPGC\nh5AFgIA2qcWTJcHZhIs6XoY3HwugUIz3hBjEkmMnDH+Pl8o7SbG/JTL1R/nk\nJm+UycIzDXoJjZJMJRN2vBNPZ/N54RcbyKxsHsPviKpGRPveDXd+l5QL2aT1\n497zuoUTmgOvVcXu0xi05xNyui7AgZW6f2l/CjEOHTjT6nFmSAQE3NhtnIoO\nVoBxP83KaUQ72JtWU7+UdAd0Yp3ZJ4I5qg8s7gl/gGgr2taReWoJCCzVI/dl\n8iNx\r\n=kRdz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT9vB71OX9bVCP3zKJdSGVsV9Lqb1DWHnzswCDJxNGGgIhAOd/89VSjZUca5u3sfES0T/U7yr9e4CdMpFdojuMxGQ/"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598289995418_1598290005175_0.9315951199624126"},"_hasShrinkwrap":false},"1.3.0-next.1598290843040":{"name":"playwright","version":"1.3.0-next.1598290843040","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598290843040","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Y8BUVJ018U7LAsEdo5DXPGGIlzgRLsHsNEXsbJW4plwpbxhfO0sczOZmUaAZDaAuV9DlNe3yKrKfZbP7hMDXCQ==","shasum":"11517d70415fe4b12773df5c8c0faa8ce5592e0c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598290843040.tgz","fileCount":153,"unpackedSize":2387198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQ/ulCRA9TVsSAnZWagAAmiEP/0nFRGOGZHvTRnCbWjnL\nG84jsryGHgK5fliApHylW6pdT9nxJJ0LEbnjpUGzLvyEAZuv10Uq+XawfVtt\ns0G7DuYoJIKY74qWi0TKsltZrMjR1luPMbnZn+oGl+/kX+jig/U914ifUXGB\ndwwiIkB1XOX2tV6g0RGpETV5NhcTJTHk2OPCgXtREEKNaaZnV9cFpHO7AIs1\nQhVNmN/qUsnBwIzbEzH/6YTHFjxwW5hHXnxqlMxHlx3uqIalc74IhNZJbSUG\nd5RWphfNwu/IVA55EagQRHjHZkMFWc7GWboUGstmBPMS0li942KE5dZ1BQWY\nJqcXCARSd2n4d9iWt+Ro2BKrKoG7RT7dXQmIiBMC5X8SQVaujRwXnU1Q5sQm\nrfw01qaIfLZ3wcMUkMKXxC0In5omF4cH63+7/uysh7NFJ2lN35mi5iqAngfv\noWEqmry1j/vhRXe9UbJDDehmc10pPbNg3VfzBOzCMqVWl3gSPor8iKu0Maeo\nwCbmTs4LLuhkCnNCHgVirzNHIJ87c3xB2HxFKoCM46CymbzP1+cLDWTvK564\nYBoUErv7G9RPIoJ0phQeFW6VzVUPRpcO0Ab0dU6SnSt09c8CZSeQAvO1hoiM\nT35Rwc/+CQvFgIvCAoU/fRxYP7C3d68BHX6Bl7mJgCiDONjKgHpDvaTZ4gqE\nMlrO\r\n=uHdj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtgJRLsl8OKGSTglxjmznWZxsFkmCPEbvQ/zhJaR5/KAiEAttTLf3XOxlBBO/tl65KaFi+DxT+qJTS2H+noqQpE2fs="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598290843040_1598290852508_0.525930214254787"},"_hasShrinkwrap":false},"1.3.0-next.1598303554624":{"name":"playwright","version":"1.3.0-next.1598303554624","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598303554624","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YkgQN5SWQOufEdihrPWgmXKPwNSzKoSSCQeEoJwQM71C7+KOWkRGa/DK01dzehTOJ4X9g9i0dbDW5MQkM2+wbA==","shasum":"cc5a1d0d119e30ade87c479f9b8def7f7fce75d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598303554624.tgz","fileCount":153,"unpackedSize":2387198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRC1NCRA9TVsSAnZWagAANIIQAJb/oBYdVQyP11RWNevg\ncqbS/9GxVjt+E4wNla/Ei4+ECw9h7fWVC+uyCWlROgxf35CTPFl2iZXpA82t\npcsyCrBOkNNuMpTKDfHGTgQ9BBRKIa66poI9hM5+8X1JwGhtF+30qg0Silve\ngFjgu7DYmQIDVi/ep8JJwGJ8jcV5WvhdCCB4Dz5byUEZIXvdkF4+D/E+BnXr\nuR71wkgVv1I9Wgfs3cNzZiG1qlKQYChC89IZ4MP3zj9bDyQDIzjU1LMe3tEe\nHcvcEAmA73BaGP0S8lJ0AlwjcTsA8imHvhb03UahmEv7/Vw/xk7wlPDxZVMh\nF0G8rLadNfM8Wgt6IClnGz8Odpu8w33OMQUY7lnsyuUzBRkWVu+ELb5VKq7G\nNpAKoYONarqGRjt5HCAdu9ss8EQY9fevR8qBxmuefqfm1ZCYCz6JyHufNUpJ\nWnzTlSoFmLLUYb0bMLYpzrFUOAo5eXgjOcWB+t7yej/rHwdVKI6fSqBsKZ5w\nPZB9aGX3ful49EqTqK0lMEi33n60u86M2KbYuKtTMqsWR5bxQ1YLmJjJi4Ak\nzRrNNxuZkxMFOzqpaWRrbFf5Me2A4NGSHeamGcqx4e8fNBKvz2igkf/q4mt2\nw6dYIXxsG88KctRlURku6XRfS+ViGo5E3b3dUfWBfmyHAK99F3jpGmkM6xUB\nbnGn\r\n=XLqh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJasl+MS36doSTi1/acWnSidJPfD6PI7NJqXrQJ18nJQIgDXmn+mnsyqZ0LYaYt1U0Yd1Qsusluoa8CPYJGLpcDBA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598303554624_1598303564606_0.061078068297800714"},"_hasShrinkwrap":false},"1.3.0-next.1598305802727":{"name":"playwright","version":"1.3.0-next.1598305802727","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598305802727","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/97vo4+Q82jq9jlzBYkH9adiDVoBJIKgtZeUjEBJTrASTNl8m3bQScCxJHG7puE2/fV/gpRp5RR78psBMWSDPg==","shasum":"5ab2eae6753a5cf58290ea2ef1a4d4177066b59f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598305802727.tgz","fileCount":153,"unpackedSize":2387179,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRDYVCRA9TVsSAnZWagAAE50P/2L2Fe3tjFdx3lfi9bB2\nbT/Q06jKvOnI2+rkqb2rdn6/lQl0Lnu0x8BFNZkmX9BlOLbSZyC7Y+cyj/aw\nGb7qwMj9ANEAKq/LlZGMoFaO2gE4A34syhLyNHHA6JQts8IC4/EuU+3sll5K\nnzCIuX/l5Je4yd/Xd8qAGmqkxKsOyK4Zg1hkMLn+m+1CbK992takSxa5k2p+\n0JqSim2C5KpkmX2AsHh/fSXQ3Gm8jmMXDY7wFFxpLck+PfqOwk6M+2dbyYQp\ns7Aq3YkhZoZIyVHjJC+ERKXvzkjk48Eu4uxN4lya50WaHNOc6Pt+JCuvpl4d\no/dx2AA1QQTirpr3VO5DzUBWng2tPEzPOmqHM5iSmOb6/PS8jMKbhvOsrXj/\nVeI6/upbEL+4a7dyl5d36Fx3CQJNO0iYmSwSvQVhpH3XQLuAv40arANmtcr1\nEKC+sfZOPxewYsRV2kb2ycEVK93OVfMxMcjBcG089BuR4498Wu46A8vbxZFs\nWFVTQiJwb51qauV0urJRnTzFHTodX+gKcHhQ1k0vAn1S+8TuFomXJ9KGL9rS\nuzqKet82LeJBMZFHBd2dgPq71UBMC5cvz+jlAK6qwzTxolgKM2XRiTNT4DpS\nReGX189b4Se7LcRy1eRIa++cNz33yA/sz+M8cfiPYdJYbCXPwQOK1xKU3vKo\n0ztX\r\n=+CQ7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1K4ZU7xjeKLaTdlagSi7c6v7b+YTghJ9vVnJ2ZGkGMAiEA58KTkb/bcr23xQlgyr1D668Fw7S7ev/UinfI2Cq3Mu8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598305802727_1598305812978_0.591595718315626"},"_hasShrinkwrap":false},"1.3.0-next.1598306258028":{"name":"playwright","version":"1.3.0-next.1598306258028","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598306258028","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rsIoeoZuFm2fwB8Kg/jiMsLfa+8ED2iTGmxLEd/wA/LSryp8oWTTEzK5uewmSCbhCvXzInZ12On4/H+31YzH5A==","shasum":"d4e4c4557e91b74595f6991288366b0d6a4ebfcc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598306258028.tgz","fileCount":153,"unpackedSize":2387179,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRDfaCRA9TVsSAnZWagAA5vkP+gLb2w0h3uGPc2ooli5s\nfV4yw08Rv2RIC9/AXXc3pkoWOPpaoerkVQCgXuzkepGAUIiLmboKWvAUL1CP\n9Cy1weCyuN5oXORAFK0T/jt9JS8OPRQ2E5s8YX7GhA8obEWZWXHlfVLWEG2s\nug13f78q/3HpR/Lya7Cm7So5/IDYq1fjTEKgb10RC0wGHKQNNCLQUV9FYFen\nnQ2N7I3XnCZFKMRItIBzXW+Z5pGyBpFxcsUVEaz9yPkbMqoOopv8fZK7unq1\nEmVwMDvGN7SH+ohQ88FuAlN2VZF0VxOzdicRCc98O5303TQ2tOjLq6wWdHwo\nr7Eo7n0VQyAzu1ImCNy283NN3LvoC6fXnbwtFo+3L5kilPzR5leHWF/zkxrB\numCoMb2ArcIoxb/PIm/4d2TvVOekNhP6J7bMJh3CnuyIF4IiWgsUXcOIwJ6H\nHf5glqCObFgVWCGSCjVwNOr92KW+n/wS9Ip10/tyjHQMQpEHftsXPGSMuJAc\nTFkCkQG3O7oQU4ojNEbOVsaMhfSuV2nTxYwCgoyb6F51p0K+UeZ95Z04MmNz\n0XXni980Ww2/qJ6R8ukNYRw/vUeHHlGXsI2oMKHDnHKc8EgosVg1OMHbKv4S\ni8jy1+n30Vle4G98mxo/6xN6ERgno4QogMdsmNgaC4F4UnMZ5XmyEMA9gvS3\neREZ\r\n=1lRl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJvSly0LdseoQrmWhPc6rDxiLRePs3SVwbYiekp9sUeAiEAlly59ABNHDR+HOL96PioKVggQOCgQm7tFubHfqD+DAU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598306258028_1598306266236_0.2012483970310246"},"_hasShrinkwrap":false},"1.3.0-next.1598308372537":{"name":"playwright","version":"1.3.0-next.1598308372537","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598308372537","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-hN2jrgco8VinJen7yWUtXhiu6JqCn5TVUHlwbx8VY+mgTo+JcruytnYWKhWZZOuLJ6yfAVsvfMfn4003VvbK9Q==","shasum":"f2931e44cfaa4293e1de73b1067a2736b0c9bb79","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598308372537.tgz","fileCount":153,"unpackedSize":2387255,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfREAgCRA9TVsSAnZWagAA8PsP/i80/nlRQ2gzy+/J1RSt\nlpcVAmMRv97U7Uc7WjncbMsYVLUThtx0VHqG43PvtzFFh4vX4/baCooR+4Pd\nm16aj4dJVYimEnwup7inhTr0uW8kMGaXgN/dlBh9SV0OT0k8X05vhc+b6t+C\n/H3p2uLQSVdeeZ5U3jtC+3TF4mb2HChoWyYipi4BZXFiw2FqPXAXTr3HnbDx\n4W9Be6/3hLLKegECqQ80krkkB7cQ4S0Rh9F2a9GgxFypFym0lE7ls3nCMnqb\nsM4TQyayRjBznl+w+ajBAJmwvhI7dngcp7ldfyibQY1ACwpbAFeUIuYgteck\nB3xyIhfFsrXkl4M9wNja89x4G11a7/W4hZhBFhqnGkGN+FAozSToUvZBR/QM\nut49I+FVpPE2QNhXKSuSIMBevinxwABd8CP8gEiqXy5ONKc1nVOIeYdhl6sE\n6CP7C255RvlGk9ggtBTfxAQOcGAwzL1PtBcubjidjgxPdfwH1hxxSqdnJXxF\nD3HgzP40dUMPCwcQ6s0y02t8WFp9SYYATXM1KIEXrd9pR07ROyEJkZT6Cu37\ni6GubkBnMczIOi2htsy/VDVF1LdS6/KnTs6JFRgFDr24r34znpUgtK8xSUVc\nc+mY2xuqQRS7wkORBBQE6rbG0Fb8xthLeevCURTYMi+MIR1tP+8Dy/yxp1sI\nqg+u\r\n=K524\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbJEqB6tu87By9//I727c+hMHlLoepov8tZ9yPqZRIiQIhANTj7G/fIMCql92Vw+7XvN9a+yz3a1ILItfd6cuC2p4+"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598308372537_1598308383439_0.9818062571265391"},"_hasShrinkwrap":false},"1.3.0-next.1598314092109":{"name":"playwright","version":"1.3.0-next.1598314092109","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598314092109","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-RjLPKJBSzERUl3AAq45fL4rwqx424iTHJhQ8y4U0wo3cgojBangejBM5abSJPaxZO9ZZAF7jHltscIvP6RJENA==","shasum":"1e29ea867afc33e991c08191c3b6a9c1d59692a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598314092109.tgz","fileCount":153,"unpackedSize":2387255,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRFZ2CRA9TVsSAnZWagAAfeUP/j7xPELBJ7YTBcKrhm4/\nvc0uT1XDby8Mp0JdVw5xdYlJrCI4ik1L2sl/YwsDNOh6G205SvCwjECrqVYj\nJ/FeZyTCIJlgQ+kdkPc15ewpiIEg/W5/Fu0XM1fzaxMc+a7/ii+uoU2Plw+D\n4GXdq5vnXWnaV3t4PRjbbSlYOx24BGGgQaOUXy9X2TLscEWIb1s5se99Cr6o\nND+MUf8UmMGULqogaDMuo08FokKJFVowztZctNnu/YVg4fDsszllPvAvNDD2\nO/IU2jAYaBr3edQHKd1Y2bUuqQNJUxgMI95rgiYRdctmxEuPCvT6nkhlww1i\nVeRWOwpenWUSKV0PElXaJeePvqyp96BiEGuFsiiXWRRIhuU19ImdqG5u8Ihe\nPGb0Siv9HWz3XU+t8VdnKGwQ+3uHuYqcukGClFjJ8XI47ka2Od/2wh+nFBvG\nYw/EzpU8qIz/Vh4DY8oGoKkR3E23unWLV565ptt5WizAXBQQrzA5Y+i/N/jn\nxA5BrCRq5v2l2H9er0mtyDuDBtNfC/Em6YeHuwx9BCtO2Qjvy7XUBwxsQ/Tv\nW4H3sdX/ZTYIHnsDUIM0ylczDGOQ22HJo4yB768HGglq96H5YybLmXSvfjBw\n/3d71S+yfrnmRpM9v76/2KvVsKF4ie0abX0VJt/OIch43yeM9FpANihe8hC6\nFBK4\r\n=yqvH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcqCBDxMHrGqBteNkhUFi/+iS2Mseco3scOW9xSXYkcwIgaMPssi9XrvtfI4TuhYKY//Jj3gZaBH9IDKgUFFUUooU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598314092109_1598314101840_0.6934431222882005"},"_hasShrinkwrap":false},"1.3.0-next.1598315168489":{"name":"playwright","version":"1.3.0-next.1598315168489","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598315168489","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JmGyYuO03p8VFy5co4D2l/uw7SvupWL4J1VrpxUldi+IviiTdMWWU8lTbpnav1MQ24RuyJO/4TFqamIH5gXePQ==","shasum":"c6892c66d30e70a5e1809b098864f8b9d300caf1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598315168489.tgz","fileCount":153,"unpackedSize":2387247,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRFqoCRA9TVsSAnZWagAAyakP/2FTlPlU8Y+GCprDRzSJ\nytfo6nMwwMEb9tVvW4kebUlPfZq9PfpZrIaFesYw3vwznXmQUqbymV9LjNHz\nPrwujx5xkf+XgFQX0O60KuxUCoIA/KOnhqAaWD8GjEv+b3i0xtfA2q774jJN\nYslhT3NdD6+wQAVPXqNc8c9kzjzOm81+KqXnGQbP6vnS+/pt0ZieC+aUGbjJ\nx/gi60VhfxMLVu+QDKupD1CKGvImUSRawYwULMo/tuI/6Dzzoi+y8en/iD4w\nEvJ/hTIAlC+IviG3qjZQm9ZGWoe813PKXyL+n01oP0s1Qkpe3EsDJnRxSk8m\nEfA5+4g1UsYPJ7FhfaHU6co7AxP50OU1ONxZ5b7QjbUiHo6u+DnDAHWGS/WK\nLmPwLS7YPoM28QcX8rrK0SuGBZHDs+0WfLAA+F5WdSCgCJcbTPqzTde/uJoU\nm1pG6wz2MbNwbYa5nOVZL77PBapPPdT9ab8dVbonwZZ+qiOSAqV5FQxCOhcy\nMvaq9lOm1jbvKMzctMq/auVRZxpmff2OV0FUyBoS9eNbiFXAheEF3ZHu6I9D\n60WF4YvgqvlKuBeUCqFd7uI13qmEn3MkZXeTYfhIbVpe0ygZ9BlF9uodnaZ6\nNf8slfJTroFdH94p5APvi3R5w9upPcz/u9oExWYOTllNQGLZwsWJAX5vBnv1\ndxUp\r\n=5wOf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkeQF8L0AAMYeGtIWVGWXTrPFFqlhotY8/yUyq9AcwgAIhAN/lhzEFLZI85SQDbz+1r0n4utulQXAPUhk3D4+zsOk0"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598315168489_1598315176088_0.5201621067763325"},"_hasShrinkwrap":false},"1.3.0-next.1598315687909":{"name":"playwright","version":"1.3.0-next.1598315687909","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598315687909","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-LhTO30dAihljzl0MbYlgJMnlzCAkcpy/VlTzdT0fs+QTF/hGxgY8CyFLC4yxkrmoj6uYvnY5kNcP8SeX/wIJsw==","shasum":"8e3eb281dd97a8e1a26ba0c57f1a8c1354defa76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598315687909.tgz","fileCount":153,"unpackedSize":2387244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRFyyCRA9TVsSAnZWagAABjIP/jirjhPsQk85GGI4gGsG\nPBTVBpRY/oICoCSkwuK+JbnPmV7nvYYfXu2XYNLKHdY0hJu+G8Ftw8Sd5/E+\ng6SY22OLts73h+CPzFdZckCXnK3Cv8q3kOCY6TvohABE7mg+rSwU45ammfd0\nZx6lYsgkpWua1bcMfvykYUKAP8OIo7A7LNiT4akeuFtrIlE3jQX6cgeHzDyF\nUV2vi8xHuBXNcEjt/yHyg1yorOHYNz9UYCI4WIwyBlkeheN6N5J86ewIZkhU\niElhe4cH7JzkftcDgDMGPCZmpH4VmeoBZTI7R9nUUuEgazoX4fLHlrTnwJrD\n3uLHxvo00voTiOGA0wYyYC6zovVgK9iTSik91YL7mzbIHyTByFYByVcuARWX\n1KsW4fm86dHdA7DhPZLa4ybNC+w11Yib2pkBjVZpRUjuxuh/ErwVCx9LUG0K\nfBzuMO/7hk6xM3UQpn+j2RH7uClwdLkImbV8FBcL5pVi/0fSnBCX3qYAdI2p\npokmMnkuJS2Ev3qbtr5/JPTciRZBKZ+tegqSBt+ILtXdx+cVP/kG5RAPvWxQ\neECqdcxygjZy6kdit3BASoyRFANcvm7oV5GCP3A0GKm/6Z475OfKhgLOoyKX\nI0rse15V2g3BpsAPYhh7Ac2TlHcXTW2rJQpEVPAEol374BmLpBv5+YUwNjjK\nagyY\r\n=3p8B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrjfvnXmDHXKN9tkmcbR6j+DV2JynnaFke/1B5Q7bVigIgb7IH+amHR6HW5Grnvtd7ZRKZCz5UvNEJmfbGRKo0gRA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598315687909_1598315698345_0.9612033593625449"},"_hasShrinkwrap":false},"1.3.0-next.1598320841785":{"name":"playwright","version":"1.3.0-next.1598320841785","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598320841785","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-jxyehw518kIcvo6CrcsYrXnymzhX83HoL+i4U5pzahqj2pOo/pfPf7sHppryWaIf9zChCLI1KRRbDeRDJVdJ7Q==","shasum":"e5f7cef857336942d73de8f0a571f51d34081d48","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598320841785.tgz","fileCount":153,"unpackedSize":2387244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRHDVCRA9TVsSAnZWagAATj0P/0vS9CKftWkG+I2RdaiW\nzDUGNSlg5542Lggb6blI2oI0YMySLI2YK4XimZ6dsraQw5hjPHUqJdfrszHy\nt1wnvMhZGahc5eDdAsNqDMlkzXKWCbBpPlWiTkwUy6zBEvqONBXJPe2/MNKE\n8O4EOPivweOESyi4THDtpDxw1I1L81LI5K98PfjPXEvEGK3uY4t5Rc3gtaK5\nMJQy+BTwXLAXuRNGjakdkAlFJxgyEffEC4AOrXW/W+1xfUWxw+XmCFZJGKcW\nyi1bJOzDi+rNXukO2GanN3Fl57TPxgUOUvwBIuVDrM16V71b3ncQxhYSu19W\nVOMcQMdlCZeftbGggRXSorXuDnAjSwLxaKaRpEXcjdt/Qgxmw0vu5OrSmHeO\nmroLBEE084lPC1Vh3Lqal77oAcRIILiWeYdCaZG5l48O3leKMBg/A4JEHP48\nABuffRAK00XPoWgAfKnwQgqaXYs2l8CsJZXjqD6iiUr1VDmuGvpygDWwJo17\nMf3C8XsC67lElBZJxOEsClul95pJR2pzJ636Z+6iSLEItQ+TiiTM7YVhlsqB\nGOCAE7ltfMryWxY9GUmZ+bPHJGRbsmwoI1Mtl+bLYhJH5i15UAxCMahNFLy7\nUaq9v37AudnqDcbRZwo6IdxA8P3u7dcvK9/Gxp114QRLIul20omgukYC9Gml\nlLmt\r\n=iulO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDw4TnKzCY0lkdB4xibG3Fcotwp3SXKSiJBdsxwnOlwbAiB64o5WcUiNtahW9cEp4tS1NIkwN8Yj6h0o1zztR+3ivQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598320841785_1598320853327_0.012460363453603351"},"_hasShrinkwrap":false},"1.3.0-next.1598321899269":{"name":"playwright","version":"1.3.0-next.1598321899269","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598321899269","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Ta22L5dbYBisRyTwcpNDKFXAE5/c0GEBXAfcQrE1rybmEe924dh48VeRy+VOm84fU88cda005z34gq4C6mGgdA==","shasum":"70c6f1ac5927293771983c26f553a2d59e1e9eeb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598321899269.tgz","fileCount":153,"unpackedSize":2387244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRHT1CRA9TVsSAnZWagAAyiIP/R03QPE76My3TmTK+DHT\n50zkSCtxl3b3m2nRtGbfG0b20f3FflTqvHYPE7w6IQPXRTtafhqo5DmLNdqs\nngoSkxm4puCG4FySGo8pUbQrQrA6SdrtvPjbLv8McnwUc7PZEqUtM+csARRL\n8qwgSEMo5VFQlXkX7oz46AlDMdou+X2GOVygJmwm5o95qfybmVYn3bvV83xJ\nQGL9iQ+igGSnnnBWMmaVjrzTz8v7DDR36ImlEGmgYoMn+00EH6jE2K6SsQg+\nbDkQ6Yt6q/r+r6CISc2sKIv8XJRM5d6YfYWQWzymAAq7nw/rgEwKjipmxtcP\niILB5RC4Spe5Ht9bIvOWgHAkT6P+6rMXa+3klACm+4Tqj3winS0NfGtTraVv\no8QfIrJO3OElGh6a3BL58O5IkBOtLClSQz8n0ZGf/gAaDMB/UOZSuWu6p8rz\ng/XSmZVU3MbnVUWk+jVon6OEMGwswzqvXUo1XD2GKj/5ZRYNuDrUc+FNMPgb\ncqfXijqipkjYgAOuGUUlagF5t++kt3A+gHbaYXyuacs8i9ISeVs/izSCd/lo\ngLAmEsaTJ8yAc28wvaeLsqrqu2Q7ceEOjOPakvwPU5XLbl9QRakdvZXr3E0E\nSOaGnLu8HSuvu5+UPZ0SZI6pMIkjY81evo9SAA77yO/PmmTGmaFja12oXM43\nEcTD\r\n=rwJn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSXSyedig5VOH27jB2ija0aqMj6D08lh5elyHuWmcWjAiB7hWF+v/rA/B4s6PlMFXQ2wQqsboNee7m6vqPP/gb6MA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598321899269_1598321909246_0.9791725441626045"},"_hasShrinkwrap":false},"1.3.0-next.1598324536915":{"name":"playwright","version":"1.3.0-next.1598324536915","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598324536915","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lheqYj+ujdug+n3AtyCW7af9v9OogBKBs9DOCXRaxKondf/qFOKmj8WmLLcS9UoghvOnM3Q4DBd1f4fmKSxEVQ==","shasum":"4e6863882e94f7fcec3a974a524246c15f8073f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598324536915.tgz","fileCount":153,"unpackedSize":2387244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRH9CCRA9TVsSAnZWagAAjQIQAIveAx7y4av8uElUZgt7\nDHTTFbYoHRv+3xofx9tir3oTr0+ilmOHip4zUwdPLyLkCp/oXKsrxpUnb7aq\n/J8GGgP211/AFytqGaFeA07tuNt5qu9tMVsHAubCNtx5ZH1/AxkfZH2fMIee\n+ZH98zoCmbXVU1s5krK2vWcVWS68y+wjX66i8GTT1TJ3O93xudmeId2imGCF\nir/sYbB5JytGmDgCXFi4wCkKDufCkq9A4rkmJl4cRbFDhrz43Bf1KJ7Q0ynD\nWjrM1iZUTdtxtWkQ5tVpD1bdAxZrRZWrw10VeSeIodLDnNB8zlDmhNyPtqqp\n1UtBkpNETe+NMpEn+LSGSLaU4CpdNXZZ8/W475Cs2UIpTJbItmAs7j770Z8J\n0dMZNJcYuhiSOzXqdYWpEZMLFh68zd6Txr/dRcAoVtqUG+0WPXtSwGDE/SRF\neVTsyNAe3LcfRTRcboN5Pn63jTpzxfSgmbB+F4VBi//HwW1fv6mWwCRUzSKe\nvw6jy2aINSWh5+NNqBFRNcNkXgQcUXECPtiwd4PqwKQhTDD6sbsID9e9/QnT\n5CL4JDAtLqXRf/r9XckvFDZblfeXZ/sfOElQpu4qGoaCg9DlEpkrgQwot/XW\na7sxXHrRvKts5ta1nddyUwOCRGhEV4iMswBQGLn0n7qqT14KQ75Zq99hcqri\nb2mu\r\n=sndX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjBEq5pv811wWn9GFVGj9XQFoKK4vyrMOL5e1tR8HblAiABcW6xz/QmFeYb4JkBiUNS9NbVpEH892luP4EBFRhZPA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598324536915_1598324546390_0.769558572743702"},"_hasShrinkwrap":false},"1.3.0-next.1598326091014":{"name":"playwright","version":"1.3.0-next.1598326091014","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598326091014","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ilzFf+HG3m27FCnk/156GuSAdjqrgNrGNmwjUdFF+yIZ3mg72V1scOLdwKS4CdZbcV6547pQ4E/LE+tSoz3dqw==","shasum":"f618d47bae7abd2b6f7775e6d7c16d3ef654bee2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598326091014.tgz","fileCount":153,"unpackedSize":2387244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRIVUCRA9TVsSAnZWagAARMwQAKLvCq0yBPJW4Uz69x3i\ntOUcxlRGIZpEwaJnyAwzhQyaOwyeblkU0yFHeAmkd/Hn0a3IwaXzqb/sTIeD\nmZ2bLvdZZcQ9bwFUY7DnzpIoIi2j1yODBbbsbOQ470gQrVHR6WZcjvOJeZ5i\nlAobAtMl0i//qG7r0g74jhBiDFXBTT9edm/7PTCXxgiH3x0qU8E5EDnkSWFy\nrHFYjgnbW53+c8d1LIg4kf2SbH5xRgxH+4ETywRStMFjyqCdzPYPzHpI4H0Y\nf11BFO4N3aGqxtMG9K9DlMwfKZKGoQrWgoSorz5G6WrTzJKVsmBC9vBTfZZj\nzqW9a+n5opr/jZ1HZC/9RnaUmJi75S2pOqGZi39K6Z2D8TudE0iWPdM1AlKD\n+Fun+XbwAu6oa6V0o1wkq0PGaogHonColcg8YnpbRyfAG7v3DkQQz/vL7glC\nwJ3r4W9TyjqhYT0brPBeh0O0Fpbz53QL1CjU7e832VJAMt0s8FlXJVCLAWkf\nj7ST69L9fqaM1gZ5mdDvL1X7HujA25NFadrPCif6eEnpiHNYZLUnVnAjpL97\nsPQHI70SE09mzV/n+GqAj6YPA65TzGePwaX8qA/XRovNcxDu6EtWKDjnuB10\ncPZhDdU2ZoGS53Rr3UtEJijuknHOEhWpaoKN6mjCQFwLTMkQWc3Ha/iuDJ+l\nAoSe\r\n=TQDg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFTWF/E28PpOXA7zEyk1+Z/CNWEo1vlwBVLf8c2EMS4eAiEAxVNa8VgU2SktUjFnARwxIrSiqfa68jrdyLdKMiRccwg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598326091014_1598326100184_0.8110544291404607"},"_hasShrinkwrap":false},"1.3.0-next.1598367400543":{"name":"playwright","version":"1.3.0-next.1598367400543","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598367400543","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-A3EyIUjKsWEK+qIuZUHElmfJGuYA7u42MPnU5yHzz4o3LU37gmY+eEpqiHNCQrKzHgHLswsJBHeBSfQ91YsQ1w==","shasum":"13e4e59a721b592fc569485f227145dae800d0e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598367400543.tgz","fileCount":153,"unpackedSize":2387244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRSayCRA9TVsSAnZWagAAIHgP/02/auQuz/AUFmll6zPV\nFITWCAJ63xyHKSPVP9CB/2PoDi8QHuzkQSiCw6edCd3+DB5kGjB6THfQ6fQQ\nFIVfxzPOg7jinkTOmfhp2NinTn5MKIGx5JUHj20Jwi4BvINNH21KakFYnPpg\nDXRhVgvyhn5ig+zz3ERYBGA8OqJdm5E7prjaOVIlN5mDDLjV4JQh51kTPOgO\n/xeRgoMfboHgfPtcCiZY6lAthYCFuPwkeEQG+NmjknW/aXeizD0vcGCmPJv/\nV08AApTkW8OkW0De2BpAHpKWmTa6UksnMmJxaFjascHemeD3lT00kUs6D+1L\n6PhtugToDc1pK+hf0NNMieD2Y2ywuMDEYZD4u26S3b80v/7FoWuoPI3EjjMh\ntQ1Yz19jkR4OiGYwMN9lkRGyPw/WWPIg4xRE9c23r95K+dMii0ryRpouX2Ut\n7ENUQvNe+vgbvjilEkmB7Idhrm2USvJxFLy4K1ZY6syN20JvMhct54DqsQQQ\nXe2T1khgdg3Zy7yuYb5GxOiL01RMYjjbYPQoUhSC+Xf+/9AtFhKxGWGueOl+\nNWEBzYnk4UAEsu2YGIemlsseP8DU5kZvelntkn6kWR5rOapa0ySeMxj+zT33\n+LXDWiI41RkN8RHA8rnVvcltYBROgeN9UHCfOmuUF2f9XW9W9RSJq/H8ux8Q\neg+X\r\n=+Rgd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA9rVUJxUG/PQevXIr5NBjvdirUJsD9T6BQa07U8vew8AiEAqzNdkDx2lHPuG9uYQ4smZ8dYuQZ0S74qlApafsiZ+4E="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598367400543_1598367410037_0.0800485610181847"},"_hasShrinkwrap":false},"1.3.0-next.1598368707723":{"name":"playwright","version":"1.3.0-next.1598368707723","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598368707723","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-+PxGRIVNI9KS/5DN/g6Te3jO2W8Lux/x9tme0lr59KUvhSw2AxWdrw41DSFwBImVW+8HlfHpd1UQXNzlHRWmQQ==","shasum":"e831ddc87d3bffb943e285b369c2e1c12c8e47be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598368707723.tgz","fileCount":153,"unpackedSize":2387244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRSvOCRA9TVsSAnZWagAA01IQAIjw3j6WZmyQxsNUBaFL\nhW3PLE5LkfX9P6Bp81xhJk80c7bXqD3Y1byEIoIW1olnuKbpLb0gqSb0FnMX\nBpHB7bP7LAx2Eje9is2YkIO2ENkqXdLbCPrzja0rzrpdTWURAqaBdWYFnU2G\neyZ2c9d+CHBNh7SzlMXQo2jJp+GsQtLT8ah/VE3EhokIyjdKGs4vL96poxQf\nyQs+5Cw18ijj3BByalisD94idULG7TBX/4PDut5p658Av2fukvrAHumbkLBQ\nYH01X2fliMfBjeZWVaXy+cH3Ox4cHn5Mu+6RiWc8qqqg3vXOtuS9ki2+sfhc\nVOz4Pd1wgpQstyPutF7UlDE3lxf452sPtm+yDapNAHGzGrBqbvtEDYL+xjpH\nQbD1adCEBe472ZKxGremGGusDFxPdcgPLG1DCVNv7ZRBovnnt7RlJp9pzm3S\nzx2HBu573f0kgsWnTxIoDdEIK3uLTqYvxDutQcCBCdVK6MptaPF26VOHdSdI\nEDI1GRWma1He8oLVg+w0pwvTV2f9ubZG2p+m22Awt4EZmiQUBSIba8GGJy9p\nuKl4/58vE/YZjW/5fat8ikwaZkn/exZks3sap5fU044I69r7mC1JdDHBjouh\nr/+EAxYwnUxV62WO/2MfnhfEWac8breOKWWPH73LZllSqOwUXz/FfQ1pW6RH\nC9Ly\r\n=f4l9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzf2uUoJCeivCFuQpFNyIh1+bAlccJGWb4Jkdz5PtypAIgIuFRztBwmKJpTXpAogAiwWWQuj8IplHGBok7A7UvYYU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598368707723_1598368717670_0.7498066159518464"},"_hasShrinkwrap":false},"1.3.0-next.1598377190940":{"name":"playwright","version":"1.3.0-next.1598377190940","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598377190940","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kPoGmvCp21Nj8uQgBK93/lnTxPIMEfzOqdeoH2N78E/t0FQSKcEUCgXZEy2MqYgV+ltX3zLwjtaTUuaTdPhjGA==","shasum":"7ccc931ffbf202ed55ceb7adc7f66d1f3080bdc5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598377190940.tgz","fileCount":153,"unpackedSize":2387225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRUzxCRA9TVsSAnZWagAAfdgP/2qps/mp9OQiQE4SltS6\nTGqARAMcYEkHHIfkl9vWcif+WaeBXCKGAZB0s/kwY1b126uzcmSiijIRfsOX\ngxdT1RE6OLotrXWieaIHKrmNPAotpIGUzdIzWgDE1m3H51KOH1982CHdWFz+\npdBeVkivs6b5M9IqaFyUMBUFkBexHY38Tm4A6JLeQ28cRATi+Te1VsD0lztn\nKdq3eUFKll6fXVur5v8HRuhWoaX0rbiA0Lab9ui2lt8N9XQJ2W+PLeyVKF2+\n8V3Yp04By6bDe4IxxCmK7RSW0+oPeXC+VPFK290wbU6lZkfIGQWAG1wHw91r\nDKZ8hoxNuD2vIPagMxZ4SO6WmPGrdkZar2IOKTlHkJLNbouDp0hxBAuMqD1Q\nCBB0lC5o9bKXDXfi7xDVF5o5K/axYzluSN62jycpE/yLiqKeUL/Xqz76xgnR\njHb1NEZloK4JTiG2OoDffxnwNjI6aWUrixSC4zGI3/6HqEUsgD1bJ7KDMrC7\nQdQLsSK20yphxYTYPTTl9fmXYIZCKvNwpbt3BeAGVUl7zrS6UjtdwIcryRkD\n6FqmUhJo4BoYxGXMwMKqqjoTrQQFyhliQrtigjIGL4OxDpRaynutM08SYge3\n6fosUdxMvLDdAiGc3PanRPH+oaEhiyJ0PIvXAfcXBUy3xq+eI4VWs18CIXYU\nkcoP\r\n=1it1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyiG1kVBPrx2TJPUGCj+GpCqNyNZBT/To5kDhlbSpdXAIgPJGlsvEV1vrWoPh/Yeyxzc593tNGi95JtCqvIqZtEso="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598377190940_1598377201114_0.5283970006299565"},"_hasShrinkwrap":false},"1.3.0-next.1598377693593":{"name":"playwright","version":"1.3.0-next.1598377693593","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598377693593","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-NgXCx0BtG5H+MNSsQ30Fvd7DOYPEnGMrSNvR2tDmboafQXypg9rZJxR662FncKmiArPCRMWeWwCS5mV8AHRy7Q==","shasum":"db770c8a3da1ccec7291eb3ee0b8f23d286f990a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598377693593.tgz","fileCount":153,"unpackedSize":2387225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRU7mCRA9TVsSAnZWagAAscUP/3FDYCJVcUgOCPAP1pen\nTHNHfs3p81nfLilYbgPpLpmdK8w64mrcmJXnho/1iGSNN0bOjn+2Q9P4iwss\n1u5at4ZastwzFbVfJSKOXD/2o/meBpAscR9+yU+mlIIE4hcLMCbztKQ+pAnD\n7pHFz34z5KJYom25mDZPMRSAWHbv19zY2UlFdz9WzpqxWZ3E1boN9M54qmIM\nSl4IG9gfityGoC1ptrTi/CvCqejTquJK0N+PLv8cpcJ7FuhfaUsEej0zJrKi\nZzaSlt5nTv7hDl1A5KMlgdqPJBEIjns8rAbBGhawhM6XZH8NPY4S+tAU8HFE\nZsOGz6wZegz5Q2La1wVDvlCUB3iG2fnfjl65uEPY4De6vzWsUCTXUk0kGwuC\n2ne4WxqgGB4WWJdo9JAr3cJnefJELw0t3wNfYy+7Wp0Hoq1ec4bF12TTnPMC\ndjrsZX9hddsrYKp9q8i6KUb8h5+9k2nO9Y1OMrvroFOsu6fqhHB0r436OMzk\nDM/70tIlCl2fSqiJo5e3+0sUk27v2lY71MldI6G+hCB2bByhTBaIryB5SLmC\nEEKJrPQQe3wWKfoVA5kpVL6ogdVC9pQZEb4z4lmIyXSC/9ccFf7lW+8GGYrd\nu6qH67vkpuD5f4wjIJ/olFK5xqDQtB7fzUSgDJ76993XLYOak98ozCxNt0gy\noeai\r\n=xcpv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPbT4QK99qBr1387ebAXEaBrVWi2T83SEprs7V49oV3AiBbJAYI8MmOkqie3qJ2xQNyGVM4vRAnYSd7Bt0NO2P8Dg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598377693593_1598377701656_0.227623136390936"},"_hasShrinkwrap":false},"1.3.0-next.1598378535565":{"name":"playwright","version":"1.3.0-next.1598378535565","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598378535565","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2+eP/eTPG/3CdNwUgW9PzD7ynWe88KpPHLLGSxPNFOzlqsC40RhZudjgqZ3AVhOpcgPfhNdWy8TPJ/0YyLC+hg==","shasum":"83e0d5a24dd58b7bdf240a0daaba1f4a3c6b089d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598378535565.tgz","fileCount":153,"unpackedSize":2387225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRVIzCRA9TVsSAnZWagAAcvUQAI4rh05F0ts9BdpKmaeK\n84bc91GixWNebhixYAxxIfN9RzMbZZ4EikfxlRkE7k0wZ/SI5+JdQVNKLkgc\nnKDqZnLkvo5ao+d0j4qEboWHefpb0PTKzT/EBoB365x8HAnxmxyz/HmZaNZ9\nQcCVLcmmWK49YW1yNkLGdkz9S3NbSU+9Le7OkXztur5IzsOof0cg+BJNM4/B\n6tGsmupKxSCbJZCpl1/Qpvo1D6sHn9W7QCfTA4jqzz61kCdBRRKvlmNFUlPG\nSgJgRbh31fI6xHpc20Y06gb1GV9dC9TZy2CbNBKktp5yU9rDUJ3SHAAvWsem\nZvTpYueGxtpbB/lO1RzGOFFLHB4uL+O2xvMxK6bPtk3OSVOWUVixyAN9bNZF\n/jwDOyK/2iHa9bI9i9rec7g89EO085aZEsS3+C/j/8WGpxP2kZRBjaO7CE4t\nD8O4fkS2B//KFrdl/vX5f6jcDTaLxE+3aAtXIVzGC28+wYqT7kuY7QnWGDA4\nM6r/v1Y5xTeyCjKELp6SEwyNeItgF0hhUaXUY/QVGya2Se6hH+DZsG4Q+lRn\nwTnfZwqeBCmtL7QNyasqeF5/T9R0hQxpGEwR5kGaASJUncHsW2gJNCkJTIC/\nV/PFmvD8n4k4oi5X7ptK1I+B+P9ojqE7j9gcmcnDblpMwa9oKuWGP9jsb53t\nsB5x\r\n=INjJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArxWPjZ66kYMmZr1lTHchvHm4nMuKpW7ZKfsH1ogONOAiEAnJh3gflvbf/TvK53FMO3KipyPY39agVkq2qkeYTuFNw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598378535565_1598378547349_0.9251869914483977"},"_hasShrinkwrap":false},"1.3.0-next.1598386183636":{"name":"playwright","version":"1.3.0-next.1598386183636","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598386183636","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-NSSMalAO6bwlg1kCgOt6xeZ2piSSMtUAV2Jeu0duXrM0NJLcqtvGE1391lCuQHwDEVPZkMXwmpLl7g/xnRuJZw==","shasum":"6c98682d94b3d87f3d5c9399b00532ab6f6025d2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598386183636.tgz","fileCount":153,"unpackedSize":2387814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRXARCRA9TVsSAnZWagAAqjUP/iwLZUflqW7C4ZmS9YmD\nhnJCzy2QC6FFRmWC9JuuwqPl0KH9BrA7JHmetIz8CO3LsByKtb27rAOMj2M/\neC/f8fo1ZwBIM+LPYDvkCGYTXq6FRW+rciYVOoS3zvQnsOI3+4/OhdJkFD+L\n3pWlS7XXlP7/Y5Mbi88A15H4wlcrFbz0eBU3V1e20/MTPLTh7ErQ8cenMeoX\n2C6AkuMZnfyEIOMv/Pv/noCj19k/qFIjiI8dcHjNSAL0H0JSedyttpoj0aAx\nLnaHJLI5JYibul0L2+wLwctJhGuLJLBfozVed0dNMM2PuK+JkCEw67RblAjK\npJO4R1W4kopwKZ0h2MR0r/c6OJvV7wffr3HACukIq+KmEjCtCmOlorveXzMc\n20PX7HZiUjqktaFymxXWt7BQHLIrOyZBG+nTE02XQO2lS6QewB5KgA7TdrIc\ntBNjEIFL1IKJmw7dDjcO+idAEac1Q8L1AK+qBXPCihKE6NSaHC2QnfK63aQ4\nuk4ySfVI44hLGxdQdGNo2YMAcvwjxZiETAKI9vpP6MVcAYVxd7iJkYJvhdLZ\nkU8en7tEfEbX8UbtE/YuEACDMWgnUXAgCRYEycxurXA28nlyzmrw2PRpDx7D\n/FxW1YAfeXZk18U9xSBoeipRGXpYZ+I06n0fiEHGVJ2yBjaQk0m5ciEgz3Gy\naKcX\r\n=NQgw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyN//1gPh8lX4+Cp5gThiyfq7NVFmzdxbrI09kkDFNvQIhAOf0Ws1OdBI+f3cD1RyhYjl0biiW9iN4VZs0h7O8wQJb"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598386183636_1598386193029_0.903255935649024"},"_hasShrinkwrap":false},"1.3.0-next.1598386609368":{"name":"playwright","version":"1.3.0-next.1598386609368","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598386609368","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-iwNSa9AoOrW8SOlL3fC8zLO33Db1t8qmtyH0K0EpxPVmAkufnJwgIRUBWovY2YvrBh7X+bTLA0wNWIt8fBLdTg==","shasum":"cd8c5a853625be65dd8a12bf751ebe5b4c0322cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598386609368.tgz","fileCount":153,"unpackedSize":2387814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRXG7CRA9TVsSAnZWagAAjtAQAJlZ7Tw7zysvl2GVlEVE\nKvajVZzHFFIOhkF4zgeDwvAiMhrIP0o0AxE4J+KSydmJZtRGgLGMogeH39MQ\nKb5ABhw5mAuj2TgeEr1aemR4oayFWrBHJy0fg7TlPW9n1SS3ILTKPdjZLaBq\nReVF3v8WE8vApKLRpK2ENuad3P3HrkGPTWZmd8ROwFn0aoKy/JMFdtMISwN6\nG2S1AM4qi6L1+tcDS1g2QHsc4it21xHYWSj+/2HkVrln6XVXZ3pRO/vVcon0\nk3IK+eATpbtQRxLxUzDE0ISAWdmxRAhBSphKTlKD2v39nExW4/ukG7NfUU7L\neZM25IYbRJNP3nuGnMweDBIkNtEKdKluXMqDMrcaZOUxu3tTfy09Xjuxp+ll\nz8/27ngVB2P2/Rw/owXQJD5jYTa/Pb364jrRTk4rtE5aaFN/1zMjRFIY1cxx\nWGniWHEt8TJkalcGr4tOUZixfs4cge9H0fTkbOlwYtxPuTiQHLd4FDVB7fan\nz0doZ9x0KcoaQL0gDSY0V48nkaz9Gifzdp9b+m91N/6zYePeMfTP2v+o3sR+\nOYM94aMuFDLBME82EBXLpazzl/q5s+iJLG5FmaDXG4sGn/9wVqzxPTBPHzay\npr04B3IBko9Lyx4IHJ2E2wTs0Vj15oZ+NAEinMPCnY13SO9bR4vVoaTwOJVA\nQxaC\r\n=wKXF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEWhJ28Ld4b9tB1v1p4byZsJMsMuyvNRDwxrRc2/TYebAiAFrThvXFCQrHFO1cLyUna/n59nuMBPKGidt4TUoWaOEw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598386609368_1598386619206_0.08015639192537649"},"_hasShrinkwrap":false},"1.3.0-next.1598392343608":{"name":"playwright","version":"1.3.0-next.1598392343608","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598392343608","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-GFz9eA3o+GZTCI/soR2qa7y/zYrgmMZm+RWI+RkhDQOX0xmd4XBBPcgvazDHbJjNCBngy1vr41xOMhTHHI9v4w==","shasum":"aecac8231c8ad8445112eecea7b63d447651b73f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598392343608.tgz","fileCount":153,"unpackedSize":2387814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRYgiCRA9TVsSAnZWagAA370QAKQd8f5n7lxLgpTJQTwG\nje0W3n0eYjDpugey60PGhJAsoU6JLkH7s/qtxxuntY5h2rdyTdd+QqiNqREy\nAyXsVYrRWgcSB14ve5Gh3ESWCoYKBXLfTqtB8/NvykJFx+e7NxSfixAXCZ49\n7FZJfePHOiRnkcLkbS6PQnRxxovhQy0Sq9e6J9EPHBYBnGcOla31yrPvdWMy\nYPFN3Zl7dTK8pA2jqoW3ULr616KFP0cQJUJDWJcBUqSZ2QYOTJTTYgYBNhIX\nugNz87LxzavxIIQrYjhsuORLzgVzn4z81sPprLIjvbF1KvSMZ5P+LVBlz0aO\nHR7PeIaGiWh/FgHNilC/XIb4OwH1IszgMo1sMlGmi1oFo+2+OKPOjP7GkgWE\noAWRhaExPjngN4PbOl8CV+MOGvKlhu/2K5IS5AIVeSHG/Z1eDViVKhExovmM\nO4M4dbxRZJxtYv8NPb5U38VH/q4KHweas5+RDfOEATA2Fjq54Lg0TzeFQkzr\nwap26wIXrso0Fe65RNaDQD0Se8H5eE0325wjpd96Y65V4lx8driBarUypzLn\nN+RgJi3QZ4exLgA0hKp+XvB5PQq5IGNMupiPUZJdbOw2Ey4clbdsY2psoLxM\nX4gIIf1Dk9EWRUWXxwVJf7Wk05Z240jb6ewuoHUDAxnoWcGLSmThIJe8r6rd\nF1eZ\r\n=NQEV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYvL6+4WY4aaUKdwOGQx0sbMEOEwwlM9O6YFJ3nyHheAiEAoanmrcX8gb/7Sk9D7kfkwePvEO8YDq2oPhtq1iTl76Q="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598392343608_1598392354178_0.8657588005993033"},"_hasShrinkwrap":false},"1.3.0-next.1598395719293":{"name":"playwright","version":"1.3.0-next.1598395719293","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598395719293","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ywf7bhCiNwFA/n4KssF4m+FK0dRT92ms6qa+gDqJHQlqtRMstrO3hjsmOQYBvc5Vpiy+6XUrIAhZx5/p84//Jg==","shasum":"1406acdac99df74b751ce72ff90a794d312e43d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598395719293.tgz","fileCount":153,"unpackedSize":2387929,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRZVQCRA9TVsSAnZWagAAUn4P/0y8ZBOTLZi/K1OjRm+V\n6gWMnuRJckyKGJL57SVLhO97j7I6doX+xUV/9RrqKlNlA6QYEVcFUKA7Yerj\ny7d8fajypkcQElAfZy+1BFeFVFd9aAyib1lIvWO3dBs+dv9+r1n8V0LxawNe\nmEjcOSpMB9EBRi1nH1b0KhG7aiLAKoEPMBk0AHSYXuWjWJlQAOvcy3e89dSX\n22vV4xJGu2hZ/sIRUtPsaTFhRK9fK/B29CIckAWw0NkUvXrjR0T+/8IqIrXj\n/hhuNc8XTzxnAf7aKYCxOmlcmKi8Uaf3oTtJjki9GsS+R3A8KJylpM7O/POq\na05fhXwUMaDCVrHd+ehLUAhezBkiyWSEWUBQ478LQg6hsTddALQrB5RTB4lm\n92qRPJJky04pw5NyT4RlBEqBW4brZEAdm+F1Ch3H18ClO6tmU366AvOSRF3A\nCl0TJkI+mAoorueZNGNmDKWcZhEuHYGGlZMwEIJ8e//l4jjLXlbjLNFoowRL\nBFNl+uk9j8C7Zyir8jiS+6A6DeoMxLPFa8t1xTyk6DIdtQGAtTUXUtVD+uit\nCVbYcziKdAIGaUy0NObvSgQOY1omvf9BzkcUnJiS5URcxTsUeljoxsRoE73u\nVVfyGknj30Y1ztILoKMeAGit1O7upewM002SbF3Xc5kSwQA0hQNkQQsxJ6Dl\nggI/\r\n=+PxI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxERKxmh+cXWB6yUTU52vSvSjae1SaK+nDTjTKG2lAhgIgRRNoT5XXFIIbKEKCLcyaGCKliCz+1G0DQeN02NYgtPA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598395719293_1598395727765_0.523961496164413"},"_hasShrinkwrap":false},"1.3.0-next.1598397927154":{"name":"playwright","version":"1.3.0-next.1598397927154","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598397927154","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-CoGzJoMFxRa1FbYuQkkeoKxdMcT862yO2BS7kidL/ZwvWl2A0/uYkhlgYMgeKTR3W2aa/g6gvgP8Xnz368YzVQ==","shasum":"d18697132621538b8b53cc8a408944a012e0775d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598397927154.tgz","fileCount":153,"unpackedSize":2387929,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRZ3vCRA9TVsSAnZWagAA74cQAJQWxXeyAq3n0nYtzbuy\n3ioQh9VTFjKF0FlDw/TPiXo8I/4+l9kgIVUJ7Ews7K91iI8xPdB3NOyGfX9Z\n9BXydel3SbPm5WWEaP5u1Rx0DOehMnZ03D1ctHCpIRt5MEDK+FB0QIg2FDHU\nZCj959rRM4x1iwjxwibYT4cfpyy/I/jhbizal0IFQA+yHk/OrOIRgxPViyBf\n0cU/83pxZuiDb6Emd8YTguCLLAUcUkAUcvwfBRqpr1e7VuZuUwQpJGoeWkmy\nHOrid6tiLv1p7yp7jN75GTyn9Y9vy3LXXXPbzXntxW7EgRN2fZKZzJ4s/DNs\nhxdDI246OCAbcx1Oa3E3rWfuIE9jKnQvM2+5ePEeojmKP6JxgKfouITUUOdb\ndNF7buohwznyldVza71jCxYv4hIeQp5QAlqlHZgFfFEPREevr6G0dckmfi+n\n3AvlS+0T63DLBkapc2lSO1KMDFlsorLV94cJRHiQm5jn5XToQCBxU5n7MGbr\nA2Coy/aNBJ8Ah9knjvEhuVp4r7CMplyDdIQ7Dn5yNTRPmI7ePeoR/gjfwJfW\n4KNcHA4vxYt3rEBjlo4G7lbosfCbVcVsbyTJzbgx5WUxyXo5vR4zUdKiw3Gc\nzdvzUM0Nt5/iDjqVcT0Pnn0vmvHWV0Yk7H/wl+VKecFQNz5Vsg2dG47PiLGC\nYPXo\r\n=wgYM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5/s2in1ARVilrWDn7J63hw0PA4lTIFO1IheD8dRLWBAiBNnkGTKHhJyekJXykknQuk8hDyLihwEayD/hgjV3Ruzg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598397927154_1598397934885_0.2957995943143874"},"_hasShrinkwrap":false},"1.3.0-next.1598398510763":{"name":"playwright","version":"1.3.0-next.1598398510763","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598398510763","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-m0cddE567yyU/TFdJmmvrBhDJz0q+Nk6TNTHWhw8Oo6EYr6wPSqevg5GbusSJrXy+o/2tJ2i6klb7dqM7UfH/w==","shasum":"26549adef5df0bb82738e9d93cc5e007086aa36c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598398510763.tgz","fileCount":153,"unpackedSize":2387543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRaA3CRA9TVsSAnZWagAAPO8P/3r+FrdTHkoKU7AnJ8gU\nuBByBgb3wx7/ljcUMHCdz73eTRzZ1r+/kIIAbri/WaurkZLplSup9w7hqrTo\nT4hG2Ky+0xbT2x30/wLIMhj63uGo7za/iXX/vdiohtycNPr8rzqebneAKwPN\nbi/2b5I/kEVZbe+E93sDk6OmDWhcqnfgdDfKhZtnSeoVQhMd7q75qJbv6cOY\nycljKZZ0zHwWt0gwOyAJCtFKQcJDOJnyqvoVuk2NfIInaU80VsFsVD67J2pz\n/xLs88Y79UVaWJ4/cbdtrfCUYUIB07NHTzlwkdgudBaYg8FfxQIKlTY+JT26\n/eG/MeOyR27dNnetXVEYmbBzhl/h9Af8Ybi+Du14dZWBT8hK5Wg5oD7LA41X\nOevGQxouvrd8BHAV2Fo8UxQNHAB36JaJnP7xKwYZl/CwnjJHCsqTGd0g/frZ\nG2Yea6gkVgDAeZ5w8l2skOsRVtWBfWDSnAcnxyy9PqQfwqcBxFoBfa3WoNwN\ntLWjbX2Ve4RppHrXK3gf/a3AfXbmv6F167Ia4LUeH6HU0W5ZJpQ0kHLkkZo6\nF06TJqP9gEu3woAjZTWEyDJgzunxP7k9Pk4um5IiolkE2+1ZcdgqqAZ/ZDnF\nc70J12otEmTrst1leE/EdaE8jr/KSXCxEZ2IelupSra8hZ0lsv+V/j5JwGGG\nLeDS\r\n=RETr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWunGp+/pFyp1iWAcg9IWa/bDXFbZnGWd9lE6pG3P4BQIgA2RBy2PTHHcPkIHMJquVJ1SZdJaWS0VKNRGbuOymzAU="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598398510763_1598398519149_0.4129735507932386"},"_hasShrinkwrap":false},"1.3.0-next.1598401047604":{"name":"playwright","version":"1.3.0-next.1598401047604","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598401047604","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rb2MXKnU9EQ6DsTHXyZXX45c0XBW8QRPKyWZOmNG1V563C4yUMhjPGDu8BQemSie/esc3WVlp7dk3GA0hS+7Xg==","shasum":"554409ac29c6fe372731da2394ca8de1f3b235e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598401047604.tgz","fileCount":153,"unpackedSize":2387543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRaohCRA9TVsSAnZWagAAJe0P/iWz3XU3TPnjRODSWn8Y\n8cScd3Y30s71pNnnXGsUUH3OapMppYNr2W1vmntWp4NtypVITV8rKHxYhjl8\nTvphts/Jby3g3R0MJbotYhciIcevOKJVgoLtlFWPsWxO+p/K1x/60NGA+7zx\nU+OQ9g1bV4cxgWLfK9ff8DJ3yz+xSDLNa73MM/6rn8mXxbQYwR/ejuv/2EWS\nK30vhFuLuCB4rDJS5z1cyvFo2HCCRwORf7PGkeTz+ErOCYqaJCgxvYNO5Ves\n/YEAmrg5bkMeJSTo6gAA6JYvaOmU7HjzNIe2grO9DZI3jfTFAXqvPvnF+OY/\npXvm4H6rIJNlLF4isd3vF/iZvZJoLQk/V+BTeSaP/+0byEeBWo/zzem7iZiH\nUPlsF83D436JzzRNsx170GVyWHSB0fz6CDL8U/V0t2bXJKGZQNcaNLmywCz5\ntb6X6ES2O1YylBJZ/IgkhrebG0nI2uNxkIKpl5ODZGNj+4zfcuBgH2CtWvU+\nHG6qzWEAYD/vvfon7Nf2hLgT5vS8B763DA3MdNF0Ocv9tBzyZ8wrkl6z/sIX\n/kozDCEJ7cqbtm5qZH1kupWIWqmmWkafCIDjHIKyKiIW7P7uXY3TAgNJ1PuM\nKw0glWhSRppqyCUNOdxXFlDGiHEgKftBZSIm1+QxQWxlcs5XwdQgmupqUVU2\nQwpz\r\n=h9Bb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEr+Px1gHMj3OisKM0F81rjLhe4ZZ/sTTayMntIHXZ8JAiEAh/9z+jAZvxvHYr3rsWEx3ANwOC3h8ZlJBwAAmdHTdmI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598401047604_1598401056784_0.6387931487572112"},"_hasShrinkwrap":false},"1.3.0-next.1598401216005":{"name":"playwright","version":"1.3.0-next.1598401216005","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598401216005","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-AD7YafW3HaTQZ/krGRs7458MOlniSuwq8yaQhBOPWbC3GDPIWPMVpjIj3kMvUGfaSFnZps7btBQP/TSKRwYlNQ==","shasum":"c49328b074ce45e28fd6589d48ba831d1aefd4b1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598401216005.tgz","fileCount":153,"unpackedSize":2387289,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRarJCRA9TVsSAnZWagAAW3EQAJfXtkbFz13E2QwA8Ir+\nXB8kY+oULpsxKWGN68NcmmRSy6O0bxMsZvq6BuQ0NjVci1S5b8L9dvSkMcso\n0oKu8Z1kO+PHCcahFGuWvdOPDDvPLLGAw6/XtiTP47JGjwuCFcqNHa5cdNOv\n7o6iAlIBUZNWlhuqACPb6b9yDJkgIbav8/Ok85zXN4zUfAySneJhcgPnZo4n\nis90XQxpBfT1dQPix1JMKfOQCIpDksM92nqo9StHP1DBmyp1X2ct3gaO9Nbj\nxdOhAApbQXP1STfUoLN/+Im0LZf9WGihWYjDPDDNSrNLW0zgHEoWTFTSqcVH\n3UV0t77rgHM6ZSfbMXNYQ4dK/TBC7nfP0uS97bwN7X1fVRJReHl5ilLfWrmG\nfxjOX4o2zog0v0n+uLgVSoF7R+TlQatvwsHsRtO5wYw/j7JSlE7wUYqlLXc8\na8VWpnszLFVjWXUQAyvSjfqGLN02bcQtwXe9R7Nu6ZQBw1uEQL4UymKxlMdI\nnDNP//Hy09SSYXLoDn6LRhdVCoEldRePWCM5mbcZCHwrqe+xXKoenXjxzgkg\nNp1XwX44fv2ls8P1VqYgddw1Z/OcKS0GA2wtIja7EAFR3VXzHm/HTF66erRU\nGonJqTt7kzTfgBcX2zGa5CWJ5zskhjBWUXjtXxhvmUjbnkre2aZQPc8bg2PO\nuHxH\r\n=K0g8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKFK727o81m+8e9sypwylk1vFnaFClGHVmVo1D7peH8QIhAJbgmM4psypGWtR/iB09rLHfqTdxuM7jnWKhRlnqFh08"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598401216005_1598401224996_0.6867776323252943"},"_hasShrinkwrap":false},"1.3.0-next.1598407887224":{"name":"playwright","version":"1.3.0-next.1598407887224","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598407887224","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qm4bzcRE3odFgC/hBwLYHsna14kJZ2J/Pho9mEc0yCKuC+nVPz1rbckHTZm0Zb5hVOfTT7nY+Vs+oMoqV/269w==","shasum":"3dc430044fa75286c402aa288bce39fcdcebce4e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598407887224.tgz","fileCount":153,"unpackedSize":2387289,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRcTZCRA9TVsSAnZWagAA6goP/1g7eE0IJbkOnm156hgK\nTVWPUCNo0LGCkCTkiZmehuHTxr3lqnSggU0lLACYSqr3XxFeRwUbtpy/vZE6\npn007dbisyQQeC426Bpp/QquCl5FHxlEHJq1tgfP76CW5TKA/mjPyHqe6Zbk\nHlz0Jx0YK2tdaVur3jLkbnK0yd5d+kEY2+JitmWpTm3XIyoSXTajoZtRZ+1I\nTcVbbiYq5BfogxChbAKMInwDXgsZ5hCyHb6i3ZTDDRFbTRw/kxLr276oyrh4\npjhy/8XFG+JpyN3fGOLNHWeawXbowbRpLJxMYYxu7uzUcOad8Aw4mr3AMLrW\nw3aRj4yYPH79eqSI8ZxRrECJ0RQARJ+IKU92x/iJKjXARVAnx2BrzaMLKMhk\nrVokdlOBx6nY1HXQkxdw/tQm5f+TKMSS04RApYdhblxRPy9b5b4RqWskuDOH\ntGodAO62enfzJ+EPB21vo+XDziPrbmNpaDq79X8wZJ68ojExykYrxqIpoW7x\njAeijAWKejwI50h/f36C3Gy4taGbaQ8T6vVJj8s7/TGNAZM42hJwTXq4T/9N\ngPFAqHms2QiCXzR9+Ro56I05QA1U+nO/eJQL5Bi/RI+BbsDafV+Eh+XZ01yx\nlTWjk0kuHmmbUZhvfw3DIv9wSr1Nmt/+zMK3yJVM+2oc5lFSAUGQrOvY03Th\nQw8X\r\n=7CYG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqjzoG09B6pbInId0T+kfH+nSgAOU662mCHXBPa1+bEAiA5vCbqiOAe0oTfKWweoEipB99Yf5K3J0oMyw0HlcxyDA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598407887224_1598407896818_0.33275075643782714"},"_hasShrinkwrap":false},"1.3.0-next.1598414918102":{"name":"playwright","version":"1.3.0-next.1598414918102","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598414918102","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-uhaGhD46HWxOhhCsNWPrjsLs6iWdDUONHFa7dZN1V+AM7rBR243NR0dXCuQ7CL9M94d1j/EQnH8ZI93W4Z7PYg==","shasum":"58dedaf875b85a1a65f175aa8e3a179e90ed1002","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598414918102.tgz","fileCount":153,"unpackedSize":2387497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfReBPCRA9TVsSAnZWagAAto0P/3xVJJs4fO0gTendTuua\n+eB8wWZHbModWCBLftDbC+t5z76VAB4eRsj5LkBDepTyBJLEsJdOMv16xa1R\n/0b6wjJHu956zuWTtbSVDKayB0wAL8UFM+n2vIToq3VSPIhGe/X7JN6yHXOn\nUJYradwo22RQqTJL8OJmdUtSsCp90un10WjKHXqKvk/RSstkGLjD0l+DtdgB\nxzV27HloT7YruUbV+x1pfF+rZBhxymdoBWW7j78v0EUYMU2yxMlkz1E7twrt\nAN2KCz4PWwfd8ftCP0N2VAhjXQilM2stAhOAiUYT4YPTRhHhiiOk+Db9UiYJ\n6gO/U7IAFtwHBx9CvddeDu9pHNivb2U4oeBpeUu/FN2KiIKPTgXZSU0IgDrw\nwDbnzHid/jPW98gB6j7dsizX+t0pP42CvBGftSai0gkVVKhU7gGb02oUHBQm\n4AO1nFKGAZbtzJcYYglWNHS/B1EEShyAf8shBDbXHZCD76a5Ou7nZy8BnJ6Q\n1jCOpMO57D1ayUl+bwYY2Dl7ofD5k70mfmAzuC1qMul6wyazDXxWC9cMaqcM\n1myKByiCHSRwtVuTsXSHcXClLNQnYonyFGgxrgzwuSJYrxxSViWl6RFpB5d/\npRO97WrNjMRiqExZH8qTuLK2z/UaR0IsmsJs5l34hO1eMuXcvNAjSW+zpMGu\nebWz\r\n=3osy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeT/0COJ+yc3ZG0zROxO60CLeXxOfgLGUxMX/TGhBiHgIhAJKk7I/oAjeZ/FLg0G6MiKrNT2s5VjqBD1KMQqm+SNkh"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598414918102_1598414927094_0.32142789534926886"},"_hasShrinkwrap":false},"1.3.0-next.1598435719412":{"name":"playwright","version":"1.3.0-next.1598435719412","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598435719412","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-oJWywUpP3pQEWf2Us7PEGG5PTVMLkyrhqOncZRbdwmyzWPTJllS+AC1UVMCkIgg3yfouGBDT7f3PodsNEn1Urw==","shasum":"ee1e1390b0ad0c222a50e04e5defc3f586e2b89e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598435719412.tgz","fileCount":153,"unpackedSize":2387497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRjGQCRA9TVsSAnZWagAAxrEP/19N3DqXAb59OlWzKcwE\n8FAJn94BITpcjCIICDN1s7M6N4RLt3FUC8GGESK7KHOrp1UpsX7eI9b/RuFd\nYJqBOxzYINd/44+2JU4SyXyrexDV1+8VwZrwWFrCDf/J6yib4gXJfEv4+nOw\nN2qBwlBOVeKfjKox6A54tmIpyNpl8eCkU4H2uyRffNSVlj2FmHuKrhSPtghv\nqWKsqaD3pYZpfs+MLk4UM0hv3rmOJ0p9+cus/xuEoWN34n+hyOMJU/z2B3Er\n9CRy6hFDRyk/Wo+53vu5NZvlV5s1E+Th6kfHmGsyJjQQHwruEvUWaMXEN1c2\nQvQ5ItC9dEMi2w97NYz83JC5fRsK6M3xq+Uyf0goG4O1JYaX7ySNx2DD2uRX\nvt3l+KKesQbYpVRIjlM0XhKZx3jJe1VRF/rtvEqeoxWdKZj4TP3tHkCXP2Uz\nUraZtnAt+908LIfKfkJ2FP/UUPY4vwToq2bsB7wj3u1pcmytRhXgLuxLuUJ8\n1dOEtxyMF5cSOt9L11LTcGX1ZLBouQhzbOu8l+bp5HkY1iNt9c4k2G/JhA6z\nQnRybIDLGSSQkj8NBA/l4Bn+so9uggYsgd38BpFJh/2lsS66gMvkFggSE8Ki\nzQWI9cCGgI5OmNJJZuMTBJCwKNwYQVHm7FTsaIeNqb10gFbxgWGxDm5Wy4UQ\n0aBb\r\n=fOJO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDvwHdea0egx3/SBtZJrvKtZu9WaPlIw2NdBgoq+j+9IAiEAnNC3e2WRMZBl0PkVch1CPoGYLa8cszo+DO72KpOex1M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598435719412_1598435728142_0.6485905280097606"},"_hasShrinkwrap":false},"1.3.0-next.1598457542588":{"name":"playwright","version":"1.3.0-next.1598457542588","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598457542588","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kQChPP0Q4cz32G8gSfq8KowrdbK0Lmyb01Zw7PgKjzEeMz3UPlCQ7TFJY4h4214NlKwurALj2a+d0KGQwVC3Hg==","shasum":"dbbd24fb9b460dd1b4ab71ddbf09b81bb37ba943","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598457542588.tgz","fileCount":153,"unpackedSize":2388081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRobQCRA9TVsSAnZWagAAWmkP/1ANV17SE7NshcW2Vg2A\nfxgTijwzecZI7f0X/ewMvlOqVkiDUnuK+EkoPCTVMvu8LDgURq5h6HPXezKv\nVeL6enKBSEroj6v0MQ2w3OgBK77skjdUsNv0KEtRUehseToaHk14ovusOWn/\n/wmlzSuL7C5YMX3WKYp+SThr/9g8mvnqogYHom/Xcf731S+T8cRxX/cyOfaR\nItnAL49tv2fG9LfO6KkLgR2T9Gc/pceUN6rKR8MufMrfybTzioXnxfCWCQkT\nzxG2yNKAdbqX7e+Bu1C8X5o4RjCZAcsmtGnDUu0nSf34kaIUeuqoo2D/lopj\n8s8VQ/3AdiqUAquf2j/TF4oO5zcEYV8DIbr01aEOi3Hl9DMmSIC6weI81CCD\nk00oZVdn0r2L8BN9xaau2n4TV5Gs8lgCEJxsQDs9QYQwwKV8uEWPtoU6D9f5\n0dvCzp66CyccxmpULeAUw0Tqy5YyAi015dkyUNrcYE7CZwtWtPn3VdnvAtvJ\nyNCfa9gdug+NOY8IoPiCjEWp/Bkzy+n6B+In+INgQhBn3LoDjVn7AmicWqx6\nYYYViZAGgVXY1im+n9NVQTzVMDKVuWAvAVRr3cgA2bRcUZJt7U0TmkBwLzd2\nQfKSHozzo9b+Ih/RmJiXdxlwedBGkjlUzSblpp/0RUUsiPuzGhM/NAQVfUba\nFxdk\r\n=/Jo0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+qL8ooCihShCk8NPC2QOC+8A6HBt3LJaQNT2acqNaBAiBxowse02/YlAZhEBYg2ffg0FZbEULXzW1tTEjGMY+NiQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598457542588_1598457551496_0.11747029339601456"},"_hasShrinkwrap":false},"1.3.0-next.1598457666050":{"name":"playwright","version":"1.3.0-next.1598457666050","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598457666050","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-3YnEbGC1o0BL0fxndAL2M9m/SE1eD+5HOf7t+cGZpvJQIJiRUTt31kT5y+FP6HMLmf8UWJpHQk7NnaWESdUG8Q==","shasum":"8494bea005c9c339915cf5980c38e8026b8282c7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598457666050.tgz","fileCount":153,"unpackedSize":2388081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRodLCRA9TVsSAnZWagAAO/4QAJFRHueT4erVm4pRZtKG\nHRAFTRXPZxrnsJNeuMKB2eNGPGqDhmZI6CTqH0xf7DcYKC4dv1j7eqo6m53l\ncsZKBbSGMktjmnPJ61DB2sbKW8fGAq2uRpQlDDszWtNN/xm0rZ5f3d9NuxTo\nWDcN3D8FsV+3BZQeXJN9RKun9s82gBe+R+EzzYOT+jjd80wTM6SrUwAP3j1t\n/ZpQwljzCSH5hu3GRwu0VDI4kzP/XnF4NzLjHc431/ut7UtZzqWP0whUklN6\nmk196hUkDOBUcQ1d1+bmC8wNK8vTK81rhfLwY+6Up2Nv8jAh7DRYjzimlTkl\nkOX2ooLFoFB/V/cK57RQNJaUZk8ZafKnzfCYWKvK5RfIe/Yrht0yjvGmNLFL\nAKGPDK154ajmG8KWB95+3YlaTc/DLJr8t82HtaEF7eURYDldQ3tP1GWlzMwS\nerpA0OtZ44WGE3VTUPt6b7C1c94auwcCbTb1ZJyL4Dw6EnTLFKI1CSU+Ntfz\nDTOX87koLXxTu7i9bB1IsZ42KPlr8Kaa0PIJKsf3U5fhq2MbpHxDuqBMaTR5\n4naHMowInyTsAUhDf71OcfzzsMqWyWmlKTCA5ygWq3wK8yCaTIIYVqP1PZP5\nvMm7OMDX7vml4RfAp1hKL5LGVW9lFFHtKlguWSQtTRjd8Cuh07v1K+CUGlOi\nBHdV\r\n=ck5c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCafGiIRvv1zJAGUYNOXDb2uqUl/SV+AbsVMZB89qpfDQIgScBTaQE9zeO7ARLyLy7ng+GafRdwu36kgEehR+SNboY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598457666050_1598457675293_0.39270222193100346"},"_hasShrinkwrap":false},"1.3.0-next.1598460020465":{"name":"playwright","version":"1.3.0-next.1598460020465","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598460020465","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Agb6p5P7/W793Oh68c5TY4dTDk4hRshePAvdP1iTdiiJNNaWRmTguYPWLKxMm80vJbBn8AW0+I+ahCmZcEIr1g==","shasum":"525ba6aa48918f36a2c7bdcc2a4acf8a1db0e845","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598460020465.tgz","fileCount":153,"unpackedSize":2388081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRpB+CRA9TVsSAnZWagAAjeYP/jTN4iJya+Az+zKdExQi\n+jqnxUljv3I7KC9QTyyMII8Xih1loD+fYLadEGN6O/tRTg8HOZhwv8vlt5nF\nY9Kshjf67W+O+5Pj5ceh4WQlXispK6wGvjXq94lOE7cXzlQ4KYII5eqiLkQ2\nCVLgYd2DuTonwudRg5Ub8Ev9YCFhamIkdyTcv+0INponrPlenmcfz/U84OAI\nVDUieaG3XltOeTOxo0VqxaCi2kUyu0GMuQ2ngP6bKB9n7miRnWu1TOBexVOC\nfTMotOtH6uubIxTMPH2qiS3sygJjRnhfG/XBz3FCNc6CSbm/DuABxT/RocIM\nJ9yEOkuWnC590UCgfSHKuL5IspBmxUwi/jNVL78fBc0TccHOJNel3jNSa2i6\n4BeOkaRucgw4O+w3dFq1dDCCPvjmRgWFnjU11bCQhYmxBd0ErP6fvIM0hDWa\n4ST5WrC1SofvXhxCfddNSYZ736ZlS4nsq18kQI1mmDfIKuL7wYYF+gvc8ImM\ndr5yEdQgKsqdmLn9/ABHWmH55gobFZpGTN+NqI++04MPkwyDDLOUR8S1XdBz\nTHxUm2inFURVPMyCmtBOlUsQzOUSZXoPeIU/78yhluGaY3gTntAqIJoWH0Ib\nKTOJ3IGNguwHX2z5sf0xbSwjQKk6ZmoBQMhiq+/PorNIdItuKmxiJt5ynDbf\ngK3X\r\n=QUV/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdzl1jTe2lBrMJwkdYZNVGTLbfFK9EgPoesaBupxUuhAIgGS2nUc1y5dO42socg2+KwcITZStuj7XqCywDjyO1kzA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598460020465_1598460029708_0.40821983403749984"},"_hasShrinkwrap":false},"1.3.0-next.1598471344335":{"name":"playwright","version":"1.3.0-next.1598471344335","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598471344335","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XiA9XAxBMnizZTWmWcGNm9Lh0+/cWTYPSnRZN0AYHM8sLkcLFovQTrPBZd+Wv2syT11Tk35mOp/xRtn3MkxPJQ==","shasum":"b37fe00e3d904e340f3409f8d5a387ef4b457bab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598471344335.tgz","fileCount":153,"unpackedSize":2390941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRry6CRA9TVsSAnZWagAAbWcP/3kKz6WQMJBzyAeUXFjJ\nIMvanJAFGhJsYZ83VYAoB2yM9mjrPkfj/HOaA5ZsLTyuKlGd1i/LU4KDG1Td\nBJjq1gmoiNFQ9QptbVp/Jd4LLWlU/N8hHLRBbGOIQdxRtFaMcCMUJgbRdUvi\nIu/SmvhpjXdEZbGZnuZmJI9Ah17U8174ZgqxHknQFaLBm7sUkFyMH4NBJhoY\nf9JxQqKWnoo4Pq8gr5IW0ePF1Qk8yg6JduP5FYoGrEk1eQuW2BH8aCwIubat\n/8H7Lpys6HUeJXIHPauhFBzvJbozZFB6Sh1QAGWHLuXzAPTyPTBvQumbq3+W\nZ8or9fF+SNnwxQ6TQInUYp0yFz2TqPP+9xLuHTMwVbxpsjjk7qA6XuH2wTOO\njXd9qX1j23ANgzhpi4X7gtycfdVXsr3tWGGKlD6Mhqsx98qIFNpt3Y9mStj5\nTpkpzLPm+ooRLqXWCfUi+7T36cISknwTYSTLR0GIQEI0ad6qzIDFJF58qUqp\nBMlupwsB8XoyS6F91reD7Y1c6Z5yOFbbHg81/IBup8uwzF5kxPG9yDVMMePf\nUyxG7QEU2zIQtl+PD96+IH+XUB4oudjODsv+P44PXNIQGRUwS9oMSct59djg\nzsxbGGBT5RI3s+FXSQUXuyjpg8B+FJC+YXHgJuMbrJgBuW2ZI2kTkUql4Wf3\n5aJH\r\n=jJ4+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBmYv5PuHZwIGofqvWj4zYqY+Oa3y7ejmRa+qFRAmVB+AiAeh47qVjY+o8qPmsVkMBpCL1OD/6BeD0nNvpGY+gPIiA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598471344335_1598471353236_0.9286693722262376"},"_hasShrinkwrap":false},"1.3.0-next.1598474140361":{"name":"playwright","version":"1.3.0-next.1598474140361","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598474140361","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-7z9PcWKitmVPQzkYw27ptR+NP9rfrXNbQzX8FucvrsdoKxe7iViXCHLfRxCq9LC7tyfyQWeDJBWV2ctrigueAA==","shasum":"151e2a2425d074d8b6cad6b9edd67ffe20a50f04","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598474140361.tgz","fileCount":153,"unpackedSize":2390941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRsemCRA9TVsSAnZWagAA3o8P/RWGK/2Dn2f7WHR1PGFT\noKymP6ST7alOTYV8I0oPseDTnXV1P2dX4oeLSAhCbYW+5PdWWsQCnAL4mVbe\nMQCeoMUPeCnVyycgC4PeGFYLlV+8J3P03wi+1L4jKqJnL/15DUZWmC9SLYZE\nawJkw8cuVjtVIPQw+Yfw93GY072Wj62J87/RWHR1FWzrSmbtzs8MO4EQKaLV\nkbdYQ4NkhUC2K15WostEn+X1B2l/Gz8yhCh1FnOQUM9PsbiKXxKfzBVzTYBr\nER92yNBymRdFqtdJWOancEWFExn8DrL7yZ/XQESUevxZ1+5XItR9CzlRtE/G\nvCjQ1gmM6gNmQWwa3fffYPam/EzOKBpmb7ons6oI7oijGb7S/1SaBXOy6n8G\nRTHTKRfivbeqViYscrCg04kyLcdPxcK7ufyewBTPgKDi0lfu0efQ9gcwzHM/\nB7Asi4rJF7635WHvv2wDndKhnzt27Rj6543zEdDYOzTszqr7Qj+5QzhTr09w\nRu302vYLiDsTq8Tyh9YE/d8THMb39nD0GNGtSFuIQFavtMGJx0wa3Ngw++CW\nMPF/f6b0uuhbjT4o8XpU4rZ3ZeNybD5ZRWbFgFZ+NTqBi3iDtxWCLukxxD+0\nT87PTm0xl9EZDkPvofO/8Dhz3Whnc6GdyRiFW6ouUekd4F4mjUHFUwmqXLaW\nwU/8\r\n=rlu/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmPLBsbmX3q+/6b+folg3YHNUofsxtvQdTLa9MpH4hcAIhAKdg99Jr04tcC5oy22LtfZjVf7Tuh/VjBc3vNRXH+p3T"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598474140361_1598474150120_0.5426741255422685"},"_hasShrinkwrap":false},"1.3.0-next.1598476578409":{"name":"playwright","version":"1.3.0-next.1598476578409","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598476578409","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-934Hlk0adcklscpSfUQ9q8xX3NDO5Ofh/lAgmjrQH6wJ4Ma+QN7FYaLRFZ8LvD820ruj20KNbDJFrHQdg0Xjvw==","shasum":"05341290ec9e4339d029662c038da520bf959ff8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598476578409.tgz","fileCount":153,"unpackedSize":2391002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRtErCRA9TVsSAnZWagAAvnwQAIWxSBdclC5CdxjCwp31\nAh4HzweE1SuavW1l0Rbd0+Si7uypc8NPmBqK7IoWh21JbJihl0YXokew6iRz\no31LV6OGq6in5lWH9HQQMKmMuxRt5iIRVdDP7DW+dLuZxGmdnMiiWxu/H01E\n2feu79wwgFsbGBO5TxNYTDPP5ae7XOTpqZW0PIJOzGZs31MXjbPDX79CiSy/\n/kNtsFGxWfWPM7wIuoruHp6u9x7oecRbRiH2C2hGe+1FHZzNVKNgX3hWl3GY\nkcTfqSeOwJmF7NSYYUNxl3XkTEphLyoQB0oftJx9V0IhhLG2u7y4u/MZpiie\n19H5f4PmNhXyiAsrbgcVjZR9WM1iCJgEteI6UDKY+Z+RgWWTwB4ETPk29UWe\ngcU6PLjungHeCq0lBtzH6HVe4jpqww7P0apI+k0L3itNFDG05EQKfhhG9h87\ny79qoqzcONDWo5E9OIbgfPLf/5TIqTqeK+jZJbhLAw/oOeemscc9zFCWmplD\ns+ReHZRL5hUWtVlTCd42yKL3z2nyg48yDHsjbeiODD9dWkMVZsXS3UngH0V0\nKC+KukM6xTsV9EMKkCrG1fOEk/ju1jYrr2aavuP/mf4bjRou3hMbJGDlx3DC\nMoNJ+ODVaULN4BHCwQe4SmziDiGR1NfQA6RPO6EtpRAeG1ETCvWsyZHg54O0\nI72L\r\n=VpZ8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBrxRV1boIdrAzFSi07etTIMkp//o+hMVlg9DHq8DErAIgZAfoEDOWUgOdG7bUJYOkAtS1w5gBbQpASBLvkcbgtM4="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598476578409_1598476586499_0.9850326616833591"},"_hasShrinkwrap":false},"1.3.0-next.1598476714110":{"name":"playwright","version":"1.3.0-next.1598476714110","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598476714110","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1U4VdaknKEUSp7wSFIl07JkSySKje3sYlvO1jifqV0NRfT0XmfC6ofw9yiZrM9sP7+6zo6so4COTig2yuIaPuA==","shasum":"d1ff83fcd4e477090c4afb3ad45dd7cfbe078393","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598476714110.tgz","fileCount":153,"unpackedSize":2391002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRtG0CRA9TVsSAnZWagAAAfsP/R2M6I3CDCRJuvF76h70\nQ7IvVhCM/VAelULYCREXiCu31jO89JvUVAl6NX49BqRajb620Y31Bzzb7JS+\ndBfi0ldVdm0GOhgxGZB7zqKrOrKBZ8tNm8Aj2/vZUOHSSAd/GP9eBHrmSuqC\npy5dTrwbssvZwaTs/TCdehXQ0dYydurpOEt7Q/Chz55hoVRRrfn6VBi1Ako4\nlCULtowp0kdrYmPz7oTW/adwtoUOew9HfSBLx/6PrR02fFkc8geRzkgaxmtn\nae0TxWTnj0p9Cg7jh1cGM4J1LyohbISraVmA5zZkRm//IUbJcyE9Nz2BCqNI\nOVtvYlMs1HJz4nKL9wVEFvXBl7/sFz8EAtyqQ/N5Dhv7y3EIUgLqKqXXgYcO\njjmJBg8I2OqqeEG1JULHxdtNQz890nUFuF76KKUP1DP0ZgtDaOFxWPL7kTn1\n0bNn4it1G0iCbs+CHDxRnEtmt7sx8tmH4f+ZF3+FOGOOfSJpY7TKuxNuoTBS\nw6GSxYltegwepnbub9fGQ9bcr6+714wf2J140FvWF5JdgfC4HokVSEuOL+D7\nh8iWAUvws77HD0u4yaaA3SUR9Qwnsht8vhcQCqpvfHjy6blV1XGp09cYu+kQ\nxtraBPu8jq/XcjaRgsa/neQai95brVJ85YppZ1TSPOvsUsjOXJFKRDsLbWzy\npz/9\r\n=dp9i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO5wt2tqb/ityrzJ9uwx6cskOOIWE4XOhQkvL5GPE7rQIgVnCvstu50hNG+11TuTuUAtoODCVnPvWK9TLdbYbwoLk="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598476714110_1598476723275_0.23221061341354998"},"_hasShrinkwrap":false},"1.3.0-next.1598480448608":{"name":"playwright","version":"1.3.0-next.1598480448608","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598480448608","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-UEYYM44lYfMOTs1O3O3JMM/+/YzOOvMLAChMB0CIUUPTx5xdsqeyKchUnVKE9hGTuUaq/tmZJYTXoVfbnrnKUg==","shasum":"a4990508ffa35ce908dc4dbffe52cb56a366c66b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598480448608.tgz","fileCount":153,"unpackedSize":2391002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRuBJCRA9TVsSAnZWagAAtioP/j3+MtFOmk4zhmzapNmX\nqSzYnj2HYnIC+N+Y9AJY4nijo0vb6z3XA0QiejycNA4K+BOS133N7ZLaQ44F\nptHpiWuhyG1MTEgYVbRWWUWPqtpFQnqMISTmIZgOCUH0JUzUYTB3HrrsSStp\nt4cGHjbpVBAlEwj/HdEf3ptJ/MdND002CRQhmuNV6nZmjjop9MrahuldtqTm\ncILSAMPzzhbZXq+2C6w0xLWiEEEEfQa19ZVJlTtlEnhJRHfe7XJoV7RFnhNo\nFjO9kneyylsyhdCcHNsYALSLHgNGwrqGqYlISMskd6eYHhx+iil1nCozUDP2\nSQriFhHZcfJQ1pH0Xgoov0FNulmaZokdVSERNksZdGxEsbZbk4DJvaOWQ2lr\n7BbZFrmb9HEmbox2eVIq41C4vJvLn+D7sgLAfgzdFoL9Fua5ZDtVapyN/be6\n514BZ0BSN9Euxov+siH4dG5oBf7GneUCFF3NCgmCwuYTx0sOixHPtSIVR3DL\nhmlrucX8ddbWxebss7OCmDUZFt55AylLnl9ddVZtiQDFdQFDt1isGnuyIiZQ\nLmLefIeAmKXuTKGKV6XVY/kscUIYS/o/2Q+sA5n0MCGD6zJYhQ6xSu8AWogS\neEYeEdFZuBfKXqj6V8PGfMUjR9MM5Bzl7c4bDBK43+RBXwcEufu4Bbzfqy9U\nE2ya\r\n=mX0h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+diwlJxYXLrMx6kBjOl6X1MfDwLBR4NKXOK3XlJo20AiEAjznPA05xmldFftwWrk5MhBfDnN86ajY4QewG+Yd12ac="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598480448608_1598480457249_0.3769435228041973"},"_hasShrinkwrap":false},"1.3.0-next.1598483051544":{"name":"playwright","version":"1.3.0-next.1598483051544","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598483051544","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-C+1MK+77+SiE/yFatCxu2xxEmuICFrLRMk/7ktApZh3Y7GyC0OmYS718ALfF0P8NcAqSAg7ObTDHWzL+muQRsQ==","shasum":"6267b1a5bbe4b8fa61be2d183e7b725c5f5a216e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598483051544.tgz","fileCount":153,"unpackedSize":2391002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRup1CRA9TVsSAnZWagAAvvcQAI4M57YPPLMnsGxWXisN\n1yyXyUnCZEB8jTyqQbUjjwldtV206yr3gAckJtv/jwt7ODP7HyxmsUVsAQc5\nLyqxdVSfLZpEc/3dEqjAVU65eYVTOjA+iYyeRAX7ANeYxgSjPv62ywwaZ8kU\nQSxdsoEaRnwGiCuDjd4WMNkHIchUWZQDgHksKsXaBmoZcBr8A5Uv0xEwQ7TO\ngcbW3hNNOYlje3zgXy1RHkcmsBxY3W3cZbri91trzod/sR8BYd90YOBltHr2\n40s2B9B5cGpqyZB48hc+hpotI48mZU6lNtu6Uz1SKXOqecxy4FyK2xhXWN5c\nHJginYlDrSgFD3Q6LMA4t8ECE4M2vmfdc3hb1p9L/D+tKI6rRBLwIzVDv9Su\npbXND0tJSrlbIG0/ZQAlDo8vJKFSo4OIWWOXJLQ0cHTkjbMvq1mEIXHtTGvS\n+xdIthJNxivRlvcbWp9wbYpyYHI2xq3SPBy62C1lWklxiCroQaUouj+dAbuD\njz1Us//l/TzzAprtHMULrgw+XN9cBe/SOYBBG835M9WecLEcoGs2fQs9sxyB\nfgUv83KsgzYkCsfDP7TPY0iksifbbYhtYRK0bu2f9TsinmmzHLyDqiR/MlTB\nEHMFYexut+utPHMjBRXmPcF9vtrpfp5UvvCsOZrjYi4M0dRpQe7rVaUFMP1i\nVb/C\r\n=gbSv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZ6SwL/APZn115+GKGluPIaPNpPdCeRyslJ9tboQL0kAiEA+YGK5tdt2ZT+mi4T9FRIMJpKp1DZwgLYDYgjSRN+yZM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598483051544_1598483060671_0.7043643228089602"},"_hasShrinkwrap":false},"1.3.0-next.1598484882998":{"name":"playwright","version":"1.3.0-next.1598484882998","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598484882998","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-F+df0+sDMQeZPvHhxxy1lmJ1YMIkAwxtQAiEqBrOTza/Wgzj67kBK4od+G/tna87ZlcLRCDIHDsrhwz3lpgCDg==","shasum":"2da85fc5a6a497bfed6523eaf535027b41b3f0b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598484882998.tgz","fileCount":153,"unpackedSize":2391002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRvGcCRA9TVsSAnZWagAAHhcP/RfJpGqCvSEUPrQueoci\nyM9S8b50W7qiRgT2p41+CNgQnM3IZAXrGhGjsVXNDX5Upjq5B5Ap5CPUvP1Y\nBEFZBNJwTWm2i3rAjhpkgMP1ivWe9kPKAXFIqtZoL7b6VYWkXX06eJzH3UcU\nVxv+MjR3Bon7jAS6lUpswUi6B4gMz8CJ3u8qQkQcegJ5rGtsj57RbB1GNe2W\nu7yBlZ9e147lZm/mCjuo/G8TtqKTVBFSaNe1nTs03Pm+/wQZcbPdwZ7PxEnW\niXjbxRauFdAWOIrwnH9zGqJa5MHe38i+j1QX0rDbSlc5INbxatFck8sU2YZS\nfpoabXHJcBcAcwHVAKqeGzrf7FhO7CYFhhz2wUsqKXbjhpgYrLde1UdFl3ZF\nHyEtJlDb2acdw5qDYD1Osu+ltwTXzMh2Byu1L/NgVlq7xvrRhxzY94nC9Zck\nVTKihug3/WKjqUpEqpq4NLO1x7K3WPNbYvYiLlnG9to87aq+wWIwV85K6uEl\n81lu4u1cMJPw4ZE0SVbGE/iycnlQZTxYBsIF4e/mlt0zZxjOxCrsfHuOGRrs\nhimUeA4XqYuqKweEIQyM1rWefX32ho7r9OMRM9DrB2PpeFcEYol8R6Rkg9Jf\nrOLssWltVr91s/uL5nAuJlFS0WYxMfHaLE+EiIU8yYmRn2Lv9BjkTQaaEP5k\nrKE9\r\n=dVWw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOcPuw40vFkUQPiKwaNHqlilBY5tJ7fBJsutpXoCa7GQIhAIONdP0b5IJyYkGoFo4GZZ8uFlPUq6N9vJOSEAW/Kwa6"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598484882998_1598484891491_0.47848576685984523"},"_hasShrinkwrap":false},"1.3.0-next.1598498449373":{"name":"playwright","version":"1.3.0-next.1598498449373","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598498449373","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YlHJGwPwNarVC8xD6G8tUK0Iij3qVxJeLaOMFTDQaU/O+CzkZuNe/hvfd+T2ZOPHVakwfRYAoFQU+dyuPNobZw==","shasum":"a883e8584287eee400388f325719b9a5caf4b10b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598498449373.tgz","fileCount":153,"unpackedSize":2391002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRyabCRA9TVsSAnZWagAA65wQAKEWzlrRzpoV3WIgxicX\nE0Lconmswvpb0PD8tC4iwwyYwWC+48XzN7aHQYrqsAmTdqZrSksEadUGhSr0\ndslFEeZzds8LSJqCgum09dpzxVbjkLw5eIgyxYkdqzBteBxUtN/jb3mw8Oa0\not3e8Ym9PjfIAuYt3Hdh2itpD56Qs+jd/Bj6qBVpMjg++Ts1jkGZ2BazZMOj\nwT+yoijF/zKZVRDjfAZtZwjGYRWjK08uqskmwiT3L/ZOgfIOluof+wCZb//2\njM/LwizHtwekwaIn5j/OSnHencMS4pQisAhZPVc/eGaP8mD3X33mEgNSjrWn\nmsYbPOnALsx9SbBNksIoeXuMROcCrTTu/2HYxv1noCJLuKukv/qvnTbt9wpb\nmG+xnas3lC2Y88EuuoHAEsn6sJqoSzyUjKiD/A6ltyTIwEumRnHnnNlEwNrn\nP3eJOnyZi+RGmJskTabfh8Xuq5j0lF0yS2ZO8x3KM6dDZ50ArVtbHrcN8KAS\ngY2BpsB+m3tU3vLhrUzdvDW2N0X9C9WXcxi+VLcogqrH+Ooe4ZRAuFmYDcKa\nAveePn3LAMFDEfqkZuRGZypgY0Oj4tmPiRegW27xny5K/7ICkuJcMhcBsOFb\nm70Rswz/6TcuObqu0Do7WieqxEwULjZnlhuxsM8GQMQZxzxFplu4pM5cCjCq\nQm1C\r\n=CFwi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnTmR0OKnc8wgLaJI+aLH1fiOk+gkymbkC6N1C9umHOAiAtW6FBu2aL7ulHcJZ+VirpgW8S3ISRxmdvTj0lysjm/w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598498449373_1598498458638_0.04124560450626946"},"_hasShrinkwrap":false},"1.3.0-next.1598506302971":{"name":"playwright","version":"1.3.0-next.1598506302971","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598506302971","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-EA8+SK6hm8qkBB1DcZMpQZj2frqoygM5FXsFVRW1z7pUGuZo4n6NTh9JEWcp8iyOMnDTi3HUeZ0fnN1yJu4v4g==","shasum":"a7db843c95425434f5e891054d669c2578cf6718","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598506302971.tgz","fileCount":153,"unpackedSize":2391002,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR0VHCRA9TVsSAnZWagAAiYoP/1KxhlHLQhY0kHiumP9E\nbWs1x0NWFV0eiMRnglP7dq57te8321gW4Tb8bISCISGG1aiOsy3OZCMHU5a5\nFc5Yx17zh2McUUCTBEobhqfKiCxL7juRsJSpY/smdkhuyP36PEzCH4kWXylD\nWg7K43ECC6fJChignNXQ4CWgnirWYDxGfBpikbhxo8R5uY9zE/zJ9h00XDsK\nb/mnUamJTIgo2Eh4WTk+zMry/vAUeZ+ye1EqeX2AF4pVuP+oARRyuSHj49xV\nR59jTS2UjhfDk1nZ3d14NtiDUvycEsonwJ7F5W0FoVH0ts+i8hjDQCR2xIVR\nQQquBNd5AE+8yw79PlK40kWEn21D1dv0AkaKt5v9twM0rzXdxS6qSqG4O0bc\nfLsftSbifK7nsoLpyn9DsMlvGC/Zlhb7vSREvcO3fQSdRDbH3sw+Zx6AqJBJ\nebc/Emyj3G6M8fFGALVIi9ubET7B5Sq3XGQ84UgL5VbDuBZWpRFem7Xkdovy\n409s7jNJit8Q+UORhnKG0ZudP3mzfdYZQqa8cxL41Uj50H3RJ5AjUkDS5pjt\n/HH+wq2z/lg0c1H6rL4iFVSUdyg1p+m8BG8ilQL11cvwb+SpfMBzBvdbSfzI\nP/1yd0TOJ8j3qRhP7HZJmYFTXRA4Qjgksh+ylYYJ8R+W09JMV4euZ/BMDEiO\nuPlu\r\n=T4az\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLq+1xeFqvrwXchUKjA4SXHTmFLjiNCpG6O2olLi2Q5QIhAJ3dD8DzAfR1bWyNCIBcAg10FHtFg+058txgmQ2C6mZT"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598506302971_1598506311010_0.18110331226559895"},"_hasShrinkwrap":false},"1.3.0-next.1598548586697":{"name":"playwright","version":"1.3.0-next.1598548586697","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598548586697","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-soEnoR74x+TTL6vLMyCXsGWY1zTMnW7RlTsv5jkgWtZUkTsAvy+rYWLUSiyCs04IkHMBYxHrisa5H1fpEhIuIw==","shasum":"ef8738b229a8f9da7c7e837fb22e643f068b305e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598548586697.tgz","fileCount":153,"unpackedSize":2390887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR+p0CRA9TVsSAnZWagAALbgP/0VjOGFGV2OpGu0CdNTj\njhbPspkBMDHRL7xkS3d8ikwjsGmFx/GIS/fBallqrvwEmpcpRcij4QcmRHp/\n/O353tF7YSPfuMU5B/yCy80E2N1jqr9zUREOJGTv70WHwbSbrgpDgJC40eFs\nWO3PDdVBquy1ULC4Quxr/Z8tBjibctQW+ptcqRQV8TGm9xoPN5CJSLkxxSan\n1o8jwWX/t3R5FM7M+xFTYWU77/KApqvlfy9aS1ku9GxqMYVduCG6xtg4YuRD\nGnScnxzNYdVWBer7t9mb4iNUehUSV8pn2lCKkFtdz88B2iKMIcMDclykPNIo\nVYrp4LO+1gTAeUJEO+4Jxd9VuLvt7qSvBRRa7rrzK/+/keWKci3hbjg4kYA9\nrf1Rwejzdj3xE8/eW4wyQKFBkDRCQvsdDnGCyQJXCpZ7gj96gsNrr2BnHmiE\ndy6miU2q2JZegmyY9vuXUItuZlaAOTh8ojUEUwB3DJ1hMacS53hSNZabULja\ngN/UGdibZ1orALeZFmXvmBJWrO/8PA7X6hEBd1qiidUEy7NaL2wAJllbOfMt\n712EociVnfG8WLdXAzR4jv6TkKCPlFF8/rZ9B+kEc7qJhhG6H8Vra4h0D+RZ\nEYmfngGzY6O43xD6U64vitlXhIn0S9ISM2aGxBnpZUyK/rM6B44YAz3fPIES\nK3tv\r\n=N13j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeg6WLKB4L4Rs61kgOT7HE6l93KUqRJyqaeWKuNp4mwwIgAko6vuowhUDwzQ8LxhFgP4dhF/ieKFF21DTufs+n7LQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598548586697_1598548595441_0.28655153763415653"},"_hasShrinkwrap":false},"1.3.0-next.1598553835123":{"name":"playwright","version":"1.3.0-next.1598553835123","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598553835123","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wmX28RIIOi7OeOLYQ2ziENVLT0cywJRFRQh5Tp3n2MIcw16eayonfsORpRALcYQgXjMNDxzSAhH9y2jt1R00Mg==","shasum":"e25f9fd4a29088c27ea0c64e2086277a8b8138e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598553835123.tgz","fileCount":153,"unpackedSize":2390887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfR/70CRA9TVsSAnZWagAAWNIP/AvlSAnYrXQ0U029u5I/\n2o3uM67D+Ko5dKBmY1pGe9DOipNiXJpVG9JP7XJP5y5BJwXm4W9p1GL5xxHC\n34bd1ifWCmqrZqtn4fUr38YUrIbAB4L+I1q1dSzwgcdVxmublxNibPU4QI8r\nnOQDekqgACcRyUwpaOoERMyinHIHkfMLPWdDqjNVoexTShH2gU8bZxFPSg63\nYUUPvwRCqN/q0hBH/jTJa5233wxgRvQ/umNmUjqnDy6ilKt+RmDD1fzB7CDt\ndYaUGn3a25FuWJiTo+cKxMF/vXabDm5exQSQBlTS1eSon3Oef/cYHsv/X6bz\nRmfAJgHB5iEU2b4hAn2yLNv3bKiCdOtu2vXQFXhaIzQYgVzpgYt682gigfFM\nbJDUdfSHdLQdwxe8GH2glX1tOC3b0OGIcvcuRKMKXsAcJMwmluFR5NuZ0Kmv\nxUYgm9h/89Vu6fa7RcE4LTfDLlGhXxXSWO4rim2UnQK5UuDBNaqNRUnCXZH1\nC9fvdryVMkcFRquxyV+NW5kP6B9KnTT4KO/qiY3KitdbStHn291oHkXT7D2m\n1RssO5UD1Awmyme+6vy5vlmvx2lXMloysPdrNcNtOU4kp6SeU1al3DHz8/AK\n8kzoshlJhpxRbhlvqAR8dvnyDy3GnuV79CSoyCSoBtgiQp8TO7qx09SqPkZn\n9g/A\r\n=fhch\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDix2hqLQzGnYzApneuh0NUmuuUErt/7zBWmFtBieqPOQIgW3cPzZCCdH/6WIuZkPDLzkH05I/0qoldPprQM7ywcTQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598553835123_1598553843864_0.06283087977794466"},"_hasShrinkwrap":false},"1.3.0-next.1598571400771":{"name":"playwright","version":"1.3.0-next.1598571400771","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598571400771","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qJoDrx7SzxSbcpxQOEY3dRNvBnKpkmJZ09l28jGQUYln4WGrb8001jvZjJk/qf6eSwiXXL3NSk4eOx3oH/+tcg==","shasum":"f89c404dba0c2d40b3bf11f0e28a7c9b565f9bb0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598571400771.tgz","fileCount":153,"unpackedSize":2390887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSEOTCRA9TVsSAnZWagAA9pIQAJsmCEiarLC9EKn7kF+X\niS0OiJDvmwbgJf5Aitrwy0IQ+70kTvusFlsKM0B9+V0K0DuqedtwddFiw9j+\n5cb4tZW3CgW3G7UFaIuhNP6FBbKhsvoQMp75rHVFNgIUVQ4NETU/84+0Q1Tw\n6hySXQOyWhjrQGGAlgqWkt0Lri7nR4cQhSkX8Rf8vDY4rO9U3JHLW2VULwr6\nZcoCj1zSyhsLZ0w2ID5okLSnnlyjTc4tO7Nwkn9MGLKebXHjWGM94SiQaQ89\nvdBp7LmySH35ECa5Lv9l+5ytVArweJM9Egg9ctMiD38TsHFHfluQuHWJGW8x\nArmtKpAMQormyYT8yFmKjqo4yisZdCGPL4T8Y9iK3D53AIIaeG8kDJJEoQHS\no4MmVvSmxMndiUHo9ydssRiD51TbRDivYP99gpgYZiykRA3S7WcpuE7AnJHx\n4Jl8SxUIyqNHQhJxC4Y/PcFIzIRLJTpXeqdyKA7s+tPWxIMvBEVPGFIniZZa\nbjEuxJ/R5aArqZJmLYSbpHy+N3RqDc1ktPvkpPHg9a4MmOCzO+UnqvebjUdg\nqYTVUC+fGAQjvh40Z6Qb5HXWLk0YoabI0+47RLlr0gS91RFoChSjupNcdM9x\ngvM6bALCY5+bgRD72n1VZ3ydC3SrqvMgUyDQ445yBM6GE0SDIthUsgHBECJk\nCgtR\r\n=zpqO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE2bK4hBfKuxEXnFAN0xIQp0fQaWZc9wPmbNxR6uYEasAiBrMqLcRZmNkZNYGKKZtcipIA9P/u7RZuVRBmS80LeXuA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598571400771_1598571410395_0.12237197907640773"},"_hasShrinkwrap":false},"1.3.0-next.1598575740543":{"name":"playwright","version":"1.3.0-next.1598575740543","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598575740543","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fp7tNFpO4OfCpXriZPwbOq7nlHqHvn517gR8Lg80v7KFelvdveG7jVYEp6iPewHQtF0ZbP1imMl+rF7CB76Yrw==","shasum":"a13ef9300421b130d6693d9d62c0a1b0779f5018","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598575740543.tgz","fileCount":153,"unpackedSize":2390887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSFSHCRA9TVsSAnZWagAAjVQP+wYAUi+GbLpByA1jJxPh\nL343STy1K7zeJlqUxZiPDZm8RxSazXjIdzvwGObIY1WMk2dk8ht1icvGrJDQ\n7/equFxBBIGdd/Iph8tA9JEupUtEZUiEi7TMyh9KmB5CxQN90KBQsndoj3tF\noXW2UIGyw8BwqFcHNQjHNrlXPLj50sVBAX3POhpGU6FqjdIx8kmujsNZGexo\nSMk10huyCnWhzdjXWAbA+o7lB0WWHRsw19l2maM81WLCKR4yQL9VUHJ8bKaw\n1CrGD+OVu1o6bS8vAa9z78DQIFjEmJpqA6A+F3/YsLFtyGDZpsi1lAQyEZjY\nEfZO2iqL2/u2UeNZ1epwfQbMy+ONX34FiImOWkrJcfen+XPpAzY2fPgIZN9Y\np/kB/t9O/Qgsd0hmbe6zPG8QTEjSxLKvGv36z3w/4ToNMNStNEG/m9g9S/N8\nio9fKWeaJ3Yt7Uvzv3XBbuWHmgXxwDS4gE2XyMHGvdeTwhWFS8DbAoVGFBW7\nYoap/Nsh3rvDLMaDVwZvHkswLohE0YX23Cb+biAXmmXr0Cd9NM0Ce1ZBEXCF\niNzjWmOZjw1ekQL24igz9yuBMAzlaBwekLOHvMV9OHZnJ8vdjd6hd5rivCgN\nOItP9otoywu9D5uJHwpasj2irMPgWOKEig79l7d19K4paxHqVsYGFyfHMppv\nOhqA\r\n=Phca\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGuV+zrWgVX4zlYtTTq8Wu4ixnXS8tgjcWuBVT9Kk/8AiEA+gnfjbkO7GSnnNEDZgOd9kmD60Oi1f7rkJrIChOloFE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598575740543_1598575751024_0.9108144602668857"},"_hasShrinkwrap":false},"1.3.0-next.1598587846573":{"name":"playwright","version":"1.3.0-next.1598587846573","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598587846573","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gS3F7Rwemu3hgq7rafJQ9DZI8u2EGJn/HxD7+Knh7xEak9Bshd+lE4t1hIN9STjBGQ0lpZygarM+LDt0WAl2Vw==","shasum":"e4a8bf767da57747e6fde90abafb769e69ae52dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598587846573.tgz","fileCount":153,"unpackedSize":2390855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSIPPCRA9TVsSAnZWagAA+O0P/1X3NL0ZDl/+N9YrJJj1\nu5Uncx0cpcvgHdMWQRUGn5rNXqHaX1OwMQc1pRr1hI3wgCK9eDHVFRmxN+7h\nYLtBWhoS30iHjzZZuwqj+uhoBFMIDWHOcX8W4MaAPQA9QHbjmvojyxIq2Uco\nCCEDacbuHLXQCAhLjRPIW6tlIfLY2iO50hH8NG7/mBP9HlMC37jaeJssg5OS\n7AIbVpZT+Y9l60bppdibwfTzZWvm0x2lJGTUW3g6nb763Iry7oVpoAu+XC0d\nN8MyMaicgXGDWM/yExlslxfjFOqfB4rBWjxagewCCJWQ7A52yExZjfI3vMh2\np5TugPasOxisL8o1K+Z5YEc9AglTUKR/IL4gkndA8MEcLvGjAwEu8UO/Brn6\n+3vZ2xkrGuw/e3Y3S6mcKrwN79ctes3E8/xJC21Hi/pPST2iH5rH9549Cjji\nesPgrCx9OzvYGrCZNqELTIlWZkiei7PqXUjzzKPWhYnGlUTyAKWk4w4PCN27\n45xK0DTxDvTGW3GV/C6d/kMebx7rtel1zus7Zz5KoKR4zRDiFpDcb30giVKP\nRJqLMdrBwaR9lXYsdt2mLQcW84m8I5Aa2+fmhEqdsNouVivnuCa/ywEZ7sxb\nzROTdfnAXEqfRK7JJ2wl8NH0JMd32WXq+UJJ1SYwSEpirouXKcQlL2bgUQTx\niEWc\r\n=U0VZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHm/Gf4t55j5bAQzbw3TEKu/KzV9yhqGWo2IfBnKR1TwAiAv068u8lDm/FfsPTHvM0WUBEinVAhX1ovfRCWnh4jGDw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598587846573_1598587855295_0.8921956110385623"},"_hasShrinkwrap":false},"1.3.0-next.1598600132123":{"name":"playwright","version":"1.3.0-next.1598600132123","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598600132123","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/8koX4UxkVC/gn+oqfq2qOvB5aL7QI8kHR6pX4x5vcwBNBUeO94z5sZyfpDiDqhY3gnvX9QtOcuVZ3SH14t2rw==","shasum":"a0928fa3045168a0389d40b14996485f6929049d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598600132123.tgz","fileCount":153,"unpackedSize":2390855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSLPNCRA9TVsSAnZWagAAkLkP/jgo5UTupv159fyQvByf\nLx5h5eAulMAAxfJpVQ/hxsfsKTe4h/wWbyz1sGyRu2dNEoy22rLB4DlwDWI3\nKoXY/9jT56XniMW5cscdH+doOcJg4qQgrwMd6Fc0P3sKt90xxvc8JGUzLwYh\nXARP8CVOJ+8OnOSXm408ilkbMlNVAfpZ8Urxb/bkilvH2aa09zc0CiSPRB3B\nOupgBcIeKUHwVMnMgH3dRGZwpafQzWbtgsN6WTIij/lQSYIUjuYsRBTSum7w\nR7IsUnjOavDEfQinIczOYVBJHQhT+NQFmHJBSmDpBN+Lw1XdltBuOXpurKfx\naS8K4BZLRp/GbLM889ZYgia5tKSzMqoigr3S9K1n6eRKUy1Sw56ruSic7TCk\nGSV0tazlF3aWONIzhziVFxkiHW4uJlknxzlQ2P1lV1Z/WzPIC4htJ7JbI4hJ\njz0SKPoUO2gQX1CDuvzAfK8O2W6GwReuPN7rcXHEg5BriN/vdxYxTc0fXzt0\n3xmTE7vZkwHw9LRq9hjanCpfPf5WP3PxftnUNj9V92R6/qfp9xxJ2ejg7Xsl\nEYDVFDRFn5tghuIU44SAoEHpGA10z9UpFqhvYwyNd0HhXcq6O494xnARpiY3\nrOT6kUkd0yJP7RUhg3vSZIzXsmtTlQ9elVK/qxArX7JqddPb6pRMSWuYb7yT\n++oR\r\n=LZpn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPyJ8Y/Suvr0OClOohqNLUvetw9ctW0n2Ae3W37oIDPAIhAJ3AtaZ9AHP5kkLinIg83LvCVLpUbZ7UpJVBut3ATwqN"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598600132123_1598600140762_0.9229000450231202"},"_hasShrinkwrap":false},"1.3.0-next.1598613754458":{"name":"playwright","version":"1.3.0-next.1598613754458","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598613754458","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-bame+LtwmiYh2HP2ZPpJCz3Dlkgv+tPLPa+2O72FKyvULA+/gk4taUZnl3IYye77yEh8SVYyeli0nLsAzDRXyA==","shasum":"e7e90e4ce37284ee58d1c1aca921023fce65147b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598613754458.tgz","fileCount":153,"unpackedSize":2390855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSOkECRA9TVsSAnZWagAAV7kP/1IfISewIyOObaqM2oiS\ny0MzufrIYPmdI9NuPeaRz1hIW3j2Nu8WDI8jznG+FQab9OzDw6GRbWb3AbJv\nYV6OoMCW3f45lhfzhzd5ueGI+ztKthGPGjC4LrxlueZ+svbfPmiG2zdIvKEy\nDOVyBuclelkSkAL1qmLcZPAyxMQIMc8qa2z9A3gTPjBVadGFcOY49qPMg/N+\njqnhKtCb5eHpk27YPCZ4Nfr59fh0cEst0RhQI4NG434v29ZuC8hS6TY7cFBK\nrtrXsbZMSmJFON20hfjxEwMSafzeO1kmktla+zqpkUsZxDnPtWO8OmAMTtE5\n1z+s7p0m8yM1EIlehrzIS7v3bwrPc6qgnQrpdk6vvyLjpXsDnQE6ptdMZ2qW\n73+nS4CI2Hk5oo5hc6jCgyifM6yqK4fnX4onMdEJZnyMuZwRW5hxwQx4d2yQ\nB4daD5FqrUk7duKUzSw9iO/r6tbrJv4wuf2rxOgF2UJMOum/3z+zQ8FlnEyW\nn3DebozJKJc3FbKw7bFtJLrNS1W8S76rfyMQMhL8eK8ldTm4rC7JkmUA5qyx\nmsmJOOZNcV5nYCcqxg8J+kSDpqp0r9JmCVeiz1F5cb8QXjhPK5vjLQcYrgF4\nrGT2+jaqNzOROtj26AjpwKBh7fal7h66fkYw3QlELQ2pdh5tR4Pj9IjrvWy7\nK04q\r\n=p/ef\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClvhPv7YSoftAcJVzfk2Qwb4rnTtj1LyLaHEPzskdSPAiEAiJJ09H6+OCcG3chQxhI+dGQOfXWRo9aCfweYOEVVAfM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598613754458_1598613763230_0.9592952989735282"},"_hasShrinkwrap":false},"1.3.0-next.1598632813444":{"name":"playwright","version":"1.3.0-next.1598632813444","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598632813444","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-aeZ+DLtE39Ompf4pwIvrR3AHeKdj6SvX5rNFuPhLaRkoH0O9fCeVaNlSjWuufLdeh5Ja5Fpaa7x79s4KXvM8Qg==","shasum":"554f4192fd88507194da7e4a3fb5d698b60b2a04","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598632813444.tgz","fileCount":153,"unpackedSize":2390855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSTN2CRA9TVsSAnZWagAAPBsQAJjQKTm0mBhnS/Fbbkxy\n4H1/yWmJu4nHHjI0NIBEW9udpnN8DeBDBMde62rHYo7imDFFvlS0Ocypq2wD\nELwxzpNRG3lGoeIAxeZYXm5Xg3dnua1oaft/QXuHFXzJgPHUPvnYsGIDJDA9\nEU/nYDxfTCjE8ZZjmf/N5Esi/jaIhxl5YNW2OnafkQgj97BmSDVphAl8gOaX\na7XY0tmijg+9kBHhMsZCuJBL2fqPq8OJtgIBQi/F8BGAKAe22dKe6IwTPHGo\n0Er9IvhARRx1lw7cQNhqhDkSq54LT5xZz9moxxMCx0O8bEoIhFNK1tFhjEZf\nnH3kfSzIPGMlK5KaXnQ6e7YhO7GnClw/XwWqPstdJvrSKF0xaIRKVfsQ7CFl\nLAHrBlprLffFAlAfFQ9Y0M4fkqN+lDKZ4YZHY3xsRQX1RRBiRPfV8QpX8kn0\nZ6q3UIV4NM7ffyXLr9edd5bphsSrmZcGCXBvmywY1HIkN6zblsLzID8Mpyfv\nBHiVKkCobn5ce9h3qzQC197+A9XsPsRI1wrW/fAV9r5CyFhKhtOhpaB87hbJ\nFhwkYkJrWd2ulwOPKf2xF6UELLbzVrJjqitpqfRHyM49N7+Wji6VOD72bc2i\n+Zl/gGQ20MxkeobuUvpZp8jzw2a3tOz69OrkW4ASAlHrkj0Uecku6gj+2HuB\nTFT2\r\n=p3wm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBH2ltmO7D8O6Ybz0AMbwfiTdz9IfCwhJk9xrO16jP0GAiAFFNYaDmEBGsU4vu/tZwJugQ1mym4OZmB18DWzSNO3TQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598632813444_1598632822121_0.41526486704516063"},"_hasShrinkwrap":false},"1.3.0-next.1598634345152":{"name":"playwright","version":"1.3.0-next.1598634345152","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598634345152","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-H8vTHhfSpVQzWufT/oWf3Y+lr9m6pIXmWUUJNKhiUStE8JVOqXzNAGsjSLW5jZl/IXn9VTLJE5emFjN7kHbOAg==","shasum":"26e4a01d3421b99ca37199982ed3696e550db8e2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598634345152.tgz","fileCount":153,"unpackedSize":2390855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSTlyCRA9TVsSAnZWagAAJJ4P/RqZTzmX1jxXHMz4S7rs\nvxcn38rLL6cB6EjXer6xHfA7fGuSLLY8Qy3VeTSgZE3Gqm3WIKUHNdcX4nYg\nXn/8RVtgeN3AqhWY62xty44guCBin3ZzLjhXtem/OrzlbWJ9Ed5TvqcJe8Kt\nTIw3t1g2XKKufNs968L7c4t3+VW1GIe7Sr8jZ2ESiegcJjTj1nKVaDTd+rBn\nnIpeGek/c8nhYDBYYtolN2/vN9rJTPlV+nmOwLIZDDOi5fVP5oT1Bp/sEwyT\nz85HN2HHhkjHCB7KAD9gAgZV8XzN3jWX6+eofQxXnKhs3EzCprpIY/SSgrkV\n8R+xw/ldr3fnRUUF7w4A/lKgtHpwShp5o9E5zxtUZsFvdne0MFzzNtBKZP2h\nU4n/vcRY90Frsri5WR+oX/m9yWqy6jOchk9co6+li0eIGfPskT3qaq3mqFAx\nusa7GGe27NYDh0L1+iIVqsnDFTKFcU1AkAewmPam5D2GS6K/Vc8BJzmmTXPw\nhs8U6gQSrIMJ066k4HAdJifOpDlS38umAOhn1Nc1jguWicvdBmkQz9jXKQE1\nDkm1NPcnTqDwe/LfdP/jEjqN42Z4m6CKCl8KGpsEmw9QiHh01RPyRnafMEgM\nlSs6mlrEzuu6iWKguo6AknNRsj93pT/JqRghbM54ueQYCT3/M9NfB0HsO5Ms\ncHOp\r\n=0qPT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqd5dchjUCuWX/cg5kuTY5Ijku85S2zrS1vLUWxt5NBAIhAOJRjhWMl0kgpBrN3FtqaEWlY+0BM5XFtNYfSzLoJBpI"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598634345152_1598634353532_0.10333833480579524"},"_hasShrinkwrap":false},"1.3.0-next.1598635497283":{"name":"playwright","version":"1.3.0-next.1598635497283","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598635497283","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-U1+n28MVxN1u19V+G0y+sDCWPrF4JitqlncyHVlWnyCd4xIa91GgjWCL4m91z7iOQ3oUw14mtv/wU7kDCb1H0g==","shasum":"bbb29b62644ad19dfcf994e50ac6d97a18c6248c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598635497283.tgz","fileCount":153,"unpackedSize":2390717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfST3yCRA9TVsSAnZWagAAwU4P/j23E7FTtGsmxpt2rjbI\nJBTdzC/UzS0HmzC1F/YiP2+bU4hwaDO/pzo/UeBtqA/vpffFpRibdz7180Yc\nCfaE8BNX4wqMG8Jzm005liaxpZecxS9EhceBDu3uAUbLci4vzWhr01xNlpsa\n423kJNhGyYhQ3pTOsy+RDSaB8Bn2+YqQ+kSm00eHfiOYrVwVw8i45K7Rpabi\nINiDRfUPxDTEaRxE5S3Wruz9spx05pyMMCBkeHCCgkZKdilCWydBzAeja+sA\nac9MK/CzGTUoGzzBjU7QCfIRFPHgegg3DwDWUzXyfRNK4IbIAce8zHmNoaBB\nJ7Pzjg4tjysMRlWPoVtOXiDD5tUq3TLiNNDRwH4oOTlAXv9shHeBZfTI8Hkd\nh1ZnROB49TUww0x0m5vgoP0y3GFGjqOpmqqk+DJtLuH/rcUOeErJleX3/Zps\nuhbhri+tHJPAcpxyOb6m0l80cc9msEyBaTDECl6OCgFBdAp7UNqVieKYFcON\ny/xLYohKTufnWK0DfKn2RGHlDCfE0xsWDVgcbLiUSEaHf1XorYTNWZinDFcI\nlA8kg9fLqDoE3XV2U+nOPpFRB7AcJefVfcnHSj7Pi4nwdLOxTbbQSB1VOKwX\n3XGq2JU1SAdeO4yyIGv4bwjbnCQa+t1UfZ8bwoSzQqseEeOLBIJbXgKJN6cU\n2Deg\r\n=IHCT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDlxyjT1Xf2u6h7a6zfEAPVR3c2KL+ZElT5BTMsqKKYmAiEA3wd9jFsBjdcoh/lse3jzABFITPe1/rQZ+ImFrUt0bsg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598635497283_1598635505930_0.3484865565095243"},"_hasShrinkwrap":false},"1.3.0-next.1598636413536":{"name":"playwright","version":"1.3.0-next.1598636413536","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598636413536","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tC68Nt0f5Naz6dlY2p+A/9Ltw99VzPAgU0YuFoiHftc3/yAU8+3ojC7Q61WM6u4qsetydx7MRSTP6JsV4LugUw==","shasum":"b0b171be5c4f4401238b894028a73ffe0132dc3e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598636413536.tgz","fileCount":153,"unpackedSize":2390717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSUGHCRA9TVsSAnZWagAAQNIP/2RbSEC5kRVOI26+owSM\nceyBnaWBd5hSG6BD+20E0uON79ZlAIjAh1G/+PcHR+vDHBx1mSaTHNsb1MmG\nsWnLByKgnwP1hl+qhZDKuhdP3EVrN/LR5UE4LoA3XKs5tTDUQpdTq/LI3S5I\nibN2cnXE4h47yATM7dBOXjOepemplVPSNcRa31y6u7DJdRvYe71LhTGbx4rT\nVJOX5Y553Q80IMMQxCzidVHI1C2Foq+mBv2YlIEsm/595b8CizcT9Mg24Tgb\nZwA5vmR42MfUblBHAwk07DycFg6+qPDGv7K0W5SLKS6z+NpSKZqy6u3Ve6tQ\nxOKWCLE5VKEtWqimdtQQd2Iq9F7RMy4Iwe/Q6t693qBEdw1N3GerCJz6e99Z\nIxpec36Jnz9zVW6eMsLX1hK+p+07ZarGpfMuiLMEYgFBkItWdi9p3eZ8X15g\np+YBoJhV2OECL+04gFLILntFW0qsxOkCTl67JILXGxl72FWOaU9+YU6rJGbr\nqyXZVxOIWRtdjSqqEyEWvokAeI8odH84E53uURiLT8aNSAl2UojVfxw2S/X/\nGVeEgK8KgDeXB9BQdwur39wHwP3BpF+6JUiZNkBvV1yhyZ2dYHO/uqZWtQN7\nnFcmwYZVC6W6gZ70Wy09JdXpeJsD1nOLGC82A+Upa9Ad1HcQx/urZzdHmVB5\nxDHN\r\n=+Ct4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4VYpUsZ/y1xgauiBnMkD4f68aAy2ku7C8ASyqQfsXyAiA5h1QtXlrz8yHRlbESEafad5TJregrNZb/GTvxdmhuJA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598636413536_1598636422770_0.5331939557266276"},"_hasShrinkwrap":false},"1.3.0-next.1598637465498":{"name":"playwright","version":"1.3.0-next.1598637465498","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598637465498","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0GFmDsSqvQ7jPsjfTvCh+ITaRpm11s5KbyIpQPPqLk379CqrX2epbK6Ff/cqRJK0N8TqmqaSADximA9aqO+vWQ==","shasum":"849df368f950885033d38d22faa931450d1900dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598637465498.tgz","fileCount":158,"unpackedSize":2423686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSUWlCRA9TVsSAnZWagAAvGsQAI3Nx/c5K628csDHUBQF\nMht3Bhz+i4fBuPZV8HKOqGO2VBAuPI5kxIwcyhGyPlyJAlfgBJ8Wttg0Qio5\nKPP0TBxsihUYXPEWeMf70cadG1jDN454wIA+RKkTb1+tIzTzK8AaWqWOOKy1\nuKLMmv/Jf5A7ASbaTMGBYQMr7DdPm67/j5l8JLEp2TgxdG1zPNRdf2aBkciP\nuWgLoEul+BosbRp6pt2rIyX9+bL89X75ZfYLP+x87S5J9IN7y0sv7afy+81/\nxqDx20UhgVwCghIezWQZpjRKWxpW+Xnv0veKBBLIY5QTjcKTq6+Aex8vv3ig\nGSEU3q5996UD2BQggAg8e8soVb5lGmQ4sqQXu2UJ3yj9W6B2dzUrbr4kkDL1\nPyHygsw1UVPewR1hHWZREK1MQ+/737VULm7LitF8qOz2ohWjLCQGNw0Q4ell\nQABL7PJajG//Z2vEwytV88TMfjtBfoSIRFRmlMABqCFGWjmudYYKapR+XsD5\nBMTuI+mT+7Q5ZJ11tn89EPjIwA+XmE25p6mXfbK8r4Y23GgBu8NlO31TE7vV\ndrwxZIrfeqBjuGwoU9+zL5KGmKqD7Ek4iQKb3Js5/imJEDzNJjdQ7YYnSTfR\nS0AICwecI+CnmbHksb/TKw7PgLodwJJMgJRkjM8MVzq86Id0S6plDGsDar2T\nfhV2\r\n=JcDz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEVgIUlTZzUNxV0UUFsHHfJJwUtjLpeYHlSJcgAB6UfVAiEAkFObiXDZG1MJpLsC0qFo4BAy39+XBbTQ3WXtAnihGgQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598637465498_1598637476842_0.03585754387009543"},"_hasShrinkwrap":false},"1.3.0-next.1598639970753":{"name":"playwright","version":"1.3.0-next.1598639970753","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598639970753","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-B5yvK7UdF8gkyTGbzpC/OX+nk6KsMW0NBezdYNqhRAq9zFDn/t0UIpV/USyWPWKVT+QI4F+j19wLmxcBX9JDng==","shasum":"fea70c5bc066ef255c804d8a02cfcc694498263e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598639970753.tgz","fileCount":158,"unpackedSize":2423686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSU9sCRA9TVsSAnZWagAADmUP/07cl68DVMG9kop2Avb7\ngProli1tzTLvab0v7C5BX/nsqkoZCAKk66suCgJRXxL+2yYTAE+QoRUBN4jQ\n7c7PGM5Pv1LFz9YA8PRE6TMqAemG469LXibYFLLknRT5H4Abh5Zo8GHaXjwQ\nnRiDGhZgCvfZlgTNCXtzx7w0PmBY+JnLAqQa42NnMveZKGwjsRCE6gHCLfBZ\niDovjEehTgkp+6Rxf4XFtTSLnI4GAZ3XsVY8Yi+POmLom1XxT0XM6GixWQbw\n+H5tc43QPPvuhbAVcqYb9BOZp13A1njrByzBSY60mw6lCZ7YdG044odCCMB1\nv6LDa3J10T87aygJsuxiUsxS+J9aG0/pmKJ6xnxSNmFcnRwTdo3VHAS171Fc\nD+MR4r2RfRTq7atfSOQv7DyGZPo6QPvyMHuKorMNDNoe7gGfDKVD57q4CY3N\n3DXz6++eWKD1TUvErbAxiI29GZrV4JysApj8FzK0MtaJmpTnEedrotzqNnP/\nbS2r45+06X5Hl7BR50bymNhzBHmqFqrDnHH9TDY8uO3+LSEMkmtPg7o01eVp\n3yN+30H2Ib9MOPQzdOKHtE0BkSdIlxLtVWgw3dmncKMbM/flHO9s0TawWXp/\nvUj9GTpj7dqYu4MFn4RPEn0tdsZ0eYLT0atbgclhSUuVG9Y/hnNVpWbUDLRX\n4oV5\r\n=R9Tq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6qERmN5P8tLybVlvlzjNwdj6k24cQJAx01GIjAiSglQIhAOF+vIJFaG5Su6tZFWB4kcLk0bCgl4AjBJrxkYxhIYp+"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598639970753_1598639980332_0.36109468727611116"},"_hasShrinkwrap":false},"1.3.0-next.1598641659183":{"name":"playwright","version":"1.3.0-next.1598641659183","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.0","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.0","mime":"^2.4.4","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^6.1.0"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598641659183","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-7VbEqPunIDxSZrhfKHVMbqG6rw9QveYQmgTgBiNwk3FXlEiyyJehNhO0uyTlLyhKS79sL+LZzBjS3d2UdK5jnw==","shasum":"ac5f23b82f04435ce6fd011397df887dfbaefbc0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598641659183.tgz","fileCount":158,"unpackedSize":2423686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSVYDCRA9TVsSAnZWagAAbGUQAITM2s56d8TDt/zMQBqx\nJMpmuZyz2luZSBfTsFQGn5kppyBJqecqVNUf0qnczfHllkDHETxe5yU4FhsN\nrSQwx10jhouajHasCUUlAhVVBQEAxHgONZZPCwUw9Ac+IrvdUTJphzFFfGgc\nYvoBiBfnl1ZQQxkV0xV2BFELiCPzNeWTk5rqTMcwyT+TYauHNjutm3DLbXcT\n0gjZe3Kd4fpX7Qa47NAcN8LQZDAwIRsllRtLEuUddx/9JrgFVgLlw9yd0bg/\nbUfRgMnFfnZWMFFMwxgvrnl5nlO94XaIFbCwgZSSIxSjaM3O4DNxl+di3x4h\n3jcrAv0ZDGRntCRsrL7MmsYwAWNXL6w5k46Ouq7EWUR0nCCiTdLsJ1yqpmam\nq0Hq+nSEN8q9MRAdKwPNLV7okamHQIYybv9JeEDsVYUu7w1tPcifQAFGH+Ld\nD5c6hSioidVivgoa2ZTv4KKTu3HbtBeGN5cBZe3Mv8xr/rIJLX910eGklN+T\nHFMoU+9kPFxHOKrw+0vV97+WLA0lvEmDypCuSZzvvia9LpWFhkxcLsX9QZ/d\nelNXkp4QMiISAnmfcGrk8N42hrM+9MhtVI3N0qKQHVfIpK5W+Y+JMm50FlW5\nT06WAsmWWIPZG59NfsM6c+lpcUpx45RZdCnJhugSWt279vZCa7F9HYbcur7f\nqc+5\r\n=ujh1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyB8a6nfG4JM4tehEcehAGTKroI/8/4vR1J+i9/GUVugIgRHt+fXnu8euOS6hi96YlVUs5N8xtHq26Eq+wgvWYVAA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598641659183_1598641667061_0.5492985231482113"},"_hasShrinkwrap":false},"1.3.0-next.1598647557380":{"name":"playwright","version":"1.3.0-next.1598647557380","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598647557380","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-U6AnPKoDyH8xVB+cvZIKwOnyNUIKaxgDYMGU4jQX4bTcIJLypxKMfbGT61e7Mgvb+1csa+sYet8jJ/DoAFkUGQ==","shasum":"2241a7aa5096a7c787104a043092e8cfa67dcd56","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598647557380.tgz","fileCount":158,"unpackedSize":2423686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSW0PCRA9TVsSAnZWagAAZ3IQAJpxM4/gmEIg0UZH0di1\nZOkYOjhxZ2RlIPD6jzGtt8DQsZoMzBbsCZGOdjeFVwPvfXr/Rcuab1j5eL1I\neE/wFuDpLhw//wxrqTuBkKsFkMHZpP3pDnTeqWcmdGAv7d4iCgpeWymhj7nu\nsX0ny/0wY0UNOpJojgPUiTf6q2mVGuKK0tolY0iv25wnNRthdGLwgMqDV/Ny\n0N6P5/bfbkvgSNilAIjyWEtua0pyrnG35vOFPb0fx2bF1dMGWhmESSyQdktx\n89JV8kdlv0uBvVJiGvQI99IA2YN4W41pnrJounaBQulzkLy9BDwtIiOcQIp4\nVZvyBqxostJD8Y4qc9xSzkP2KOjNy2PaGlSs7ZMgo3MUrYW47A7qfIj0BCOm\nHCPmOCW+P2H2GS8y7jFC3QFoWy/vMxupJwnY+oPK3ysz3sDLbRGCEyW8g4W4\n01iadwjzEJJExdvB6/xj0Xh1S2snucNbgFE3S9+4xrGg4UZaCiGHQi/KyLAZ\nldGA5tVoad9HIiY33aHqgW9FycZDA3aZLXZlLXAwSiGeIqHdvCUIPCGEEX6c\nxwxgVCm9cdoAtSmzMQmlnOBY8NpZfMByyQyuMcT16E39Xbck1wsUtEAkxjhy\nNY+j0drt2C6+QTR3tQ1qYQ9nXT9Wzlj7YIzAxlDQutxdVYYT2jTDXe872VX4\nMZLq\r\n=fNH9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKG88RRqFmwuJ1SAfCCuz23G/hVKJ8JCaBLvPlcBFMpAIhAJR1roycB47m9KrViC4WmU35aAkQdBG6jYmk4erIpRb7"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598647557380_1598647566490_0.395930481762677"},"_hasShrinkwrap":false},"1.3.0-next.1598649294894":{"name":"playwright","version":"1.3.0-next.1598649294894","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598649294894","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-MvQG8+j9O7OP6HPdh8Q5UclyeFAnFre9vdZMMqh9WO/VcP/NI79BKsVPbBJ5GJzPNMvY6hWta58FqBWSuu479w==","shasum":"b99434edb7701f84f9f84bad5bb6bb88f8b97e76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598649294894.tgz","fileCount":158,"unpackedSize":2423686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSXPZCRA9TVsSAnZWagAAfGAP/0PDY3q0C+iuEufdMQvr\nchHacimQtJulLu9S9Ful2TKqobaYoPc9PwqS1kaHAbFOJYu+OUowvSp/gpSP\nDwZrItVQWUb5vKDx8yHtauLIdY5Pul235gonL2tg8RKHD1V5D/I9fuGu7HER\ndkSSy9++3nPDcmifbt0w+xIIV32wbCzzUEKffKkyjuJUiFH8vixGx6yP4G8d\nIcBo5SLbbCcv1trM2OGLzvT2Q2TsI7iureZ0HN0DRkqkXNR2fSFNBWywHXhj\nHPTEoMF0mF/Q4y6Bs53VN1mRn/RP/MVuaWUsUXMmdJRwhhuoClKrNxaAyHvb\ncW0OCMFrapccLBX3pXlA+/slP+3PyOP/MjoHrKBxYOvrPrBhBqmh00uzfhYL\nthZIpwfAnc/gdDWTd6+TOC9nbHbAoALkXOFi0TiyTLoBjr/YE4hZvRvkIF+d\n1FtowGpOWdxR4RCPj9qT0ccd1AcT52sBvwBQIQtvRdFdM9mqWLcTiiogpHWA\nIoYSiW8MryglZ21wZS2SK9exRdjLvIpQWXf2tS7vKGklZx20yNc88oWYzHUY\n52O0+K+kP7G+usj8Ck1W4hzOqSY2wz6OVGBX/ImDC4SBLKkmVjWnUQZuHeQw\nMTjaVctL/fxXQAxeYHjqsJhVYwo7q2AziR/khI3qe5LQIGgKOSre78KoaUKI\nJqg7\r\n=KUnS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSkFpFcBNg62PFcdwIgazdcazpzUMUPc8p36CJlHZVYAiAefxxJ2JlsGQTfvTaksA9LHBusAlQ3ETGetd7rTgJP4Q=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598649294894_1598649304833_0.31531583064235735"},"_hasShrinkwrap":false},"1.3.0-next.1598649619211":{"name":"playwright","version":"1.3.0-next.1598649619211","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598649619211","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-H6tCXkYby4LtZM4RPv4Wl8763+CX1SGKHCgdw+ygTpPru/DOj2ehGPVAO8iR7kxrt5qG6p80rZzLxiihcd1xYg==","shasum":"82816fb3336320b902405e3d2d702ed9e60b6410","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598649619211.tgz","fileCount":158,"unpackedSize":2423962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSXUdCRA9TVsSAnZWagAAT74P/2qoQfMj/3JBPcLqW+Hz\n370iK0SZHBeHP8p0X5w8Tsz3ujjYQ5wb8ipFi2jRX7wdKBfIWgsna7XiQjj+\nwTwbt5j7Ei9TBCL2f5zVim8zxOJhj8Syi0/hqvI+Icycq7rkMiBrA5ESMarG\nNO2qnVgoGm0IiP419n/83hNspOn/f+dNCqpwJJbpr4T9ppNWcrOm78YpscEn\njDIkzFhq9rq09Dhi0f2g2l9rVtQVBJbfIm69HoH8dYCoN2PAPx2Q93bD2Bb3\n38I52bgrbtApKiQHeJ3Tl0To/fTlt1/V+oXjCW9PAt0YEXPUpnaIDJBHEMoa\nMqkL8rShr824ok0F2k4k75605kWFHjIVuLG6edC/ofzk2bzcmv/XLC7WcPQm\nD43ZCGKZb8CdOcmEQKGERfOGpFQYfag/8L8lo+MdJdpeoo13zlqu7R6S9OyM\nfm9Fvp7FXcCyUTtp3gH3SPwLavJXjbgcPXzN6taUQBuQBZ33T3k7ntb5ljh/\nKRNNUs7uyP+409i+FiiKCzhf1yEhtZgLUdUTe6ZcrkQsFOWAOGyfj17wMK+h\nw1uOr5tTlwgU+VnLVUJgiqxUo2fzaTWdppJfS3udavtWEr3V6j+9cxdAGF+G\n6QoWJLpDOA/2P6R+QypPb25GQ5SQ2n8oWCQ7hO5OpaA+Gt7LxM4U5I1O4ZA4\nbJTi\r\n=cVrr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEkChFbHHtEA36ZQbuV6n3AZ6iSwXYUSXGYzQ3RdhYMyAiEAhpw6m6rAC67c0zRO7isacXT42FvlljsiXwFM+7QXXXI="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598649619211_1598649629094_0.13214473081729805"},"_hasShrinkwrap":false},"1.3.0-next.1598650514434":{"name":"playwright","version":"1.3.0-next.1598650514434","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598650514434","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-uG/ot2LRwJBOVuiUZknLzMkzNGkxuzeS0kauXpsUUXMOcmN5iIRQ7tTyMH/nfY5HjLGVW8P4N5n2pkLRYYwZpg==","shasum":"5fd955f1aa0962699d01b04b2e987283af45f964","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598650514434.tgz","fileCount":158,"unpackedSize":2423962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSXibCRA9TVsSAnZWagAATnMP/2OTVubp+cCEuz5P7zzK\n+Xmhq79qQyO+y10DnX1nHPQpoB4INB5glWJpUqXOM37dYz/k6l5ddZA7I8SD\nQCMm7S79gVZzdDsteOEe/bQmDnjqZ9TEM98Ufrd+PDNScwlMlUd4na7sLLmZ\nn1zYrAE9/yH4BWUxHZpwIes3TCnOXXntcWBjjTcqbwvLhmIuCSYuRUrQtchw\nG4mvaUG1Ivy4CbQnTkCP7sbRjNmnDiV2AV0I6I5byYQdsz6Kpy9jcevFL4xq\n4GmOTpwI9vTlMGef6FfSXZ4OaTXpcYmdH0OMMYv+vLKY4YnwiSsSUR9Y9Npv\naHBI2tOW2WbVMdYPI6aCHMfOlukHb4/EsjXC60hAkoN0AcujT71Idyc34ZG4\nQ/RItyDkEJVYnCSX8SDTebM5c9b48oJOOwCe/B2OkQC1znzT4+Dmhvg28V9D\ndnt0ELSmy8Cc/jwyrn09lXwk1BCLYy6qOq8e4ZuHcUjqnoDjQa15lSDvtABa\nuNP3DwKKwa8LPG+6PDE14BXFWwFhl1WIKqUhMC5wHRaQwJtE+w4/KSUiWbOm\n57gJ2O5OGi7A1J1wCG+nbMunz2Ghu+sOnojc+BZLl2eUVJUuVWlgv0J8O+i/\nu0QMY8n3q4MWYVOBusBRvkFMITIBvXr1DNKoyZgps6x82u8Pd8jP/1zMTd4q\nzwnx\r\n=+Wk7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfZsWlg6cBiU7o1q9e4Et3l53itHqNb2yvMxUx+qedcQIhANZNo21zHOuAk5xDjlJJCLMmJiuhfS3D8zzxaxXYh+s7"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598650514434_1598650523128_0.7453699247052634"},"_hasShrinkwrap":false},"1.3.0-next.1598654824904":{"name":"playwright","version":"1.3.0-next.1598654824904","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598654824904","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lFIxVMkYDmvPvbXq38r3VGFa9y8IYurghXdih0HFnovgK5l9eXQB/rcSqFXndzre/Fkafib1UqBoEkpDqoqf5g==","shasum":"b7a2f6c8de4232f8b7f1aa7e395cf319650f4acb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598654824904.tgz","fileCount":158,"unpackedSize":2423962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSYlyCRA9TVsSAnZWagAA+igP/jpmD2HD/ryzts//yHuN\nX861bjOYVO0LtLxeSqM1IW8vDJEa50Qi8lSixY+G1+5KHAhXWkLXBXHGPvtI\niK7q0g+sq3UqCLvWrwlStjXI+fGtRTusvFpdDgr+ngIvwFXCU43RqIPdA/Pv\nVob9GujeOCR4cjOwbcp9+YDBeNXwADHafBuoVFaFStP3vive5A4H4WvqIiCg\nWEWDO6D/1f4rf8syDgDgVhTPmlNYNCpeQX1igVfLQNcCKq43CMYXn5+HPPUw\n+n5aD/eFZl9BLPp8LaOJ6bj3hea69LgVQAhBPBf+45KrjvFcqqirQTu1iN7v\njljVVo5eRBY/LuJBiy4la3LzHEdWrffMHNB1QRiBEHH9YKYGzY9LuJBwVoCb\nCz94/1wjSjC6UvTiPTWV1SE6TwTDvq+nxWexMliwAnn7dWy+bP1G4bKgTGXj\nPiPVq3NCm7OtCCmv1KPBNYdT1HWoQK0bXm7wEqIV5dBP8M7VDh7Zn33Y+x8K\nOi87EOJiQBmeQt+2Ls8vdBueO5Ck+NYRvd2rGu2ADoZSFALMmQrnbS6+NiOy\n1Dd63mfKA+568SHQB+kwW29eEPOf7RW1z6390bQZ07de+slKO2gB1AYqX2+c\nEEoXTJJLqsfb2AGRkL4uHMwgPzSjAj2MNDITj0kPSTct+hQZ2FfMTTxUaIPw\n1E6u\r\n=o/6A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdqW4VMaRQFwHCTfePmoestqX7EiqIY7SZ83jp7iAg/gIgWVWTa0OWXPVHux5WnEFLw1VWWjcxzISCHexzgAst9ok="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598654824904_1598654833544_0.8100233073132499"},"_hasShrinkwrap":false},"1.3.0-next.1598657205000":{"name":"playwright","version":"1.3.0-next.1598657205000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598657205000","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-DVzBTF+aAlc2hraecxiWbYNiEzJD9lfcpd3GKY0RcATh5Zgmsiul3RNVISQjO1MzAt7iIex+VOs0YX95WJklQQ==","shasum":"ca76f724b032a95c3d7774f2204c18627614bb16","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598657205000.tgz","fileCount":158,"unpackedSize":2423962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSZK+CRA9TVsSAnZWagAAdQoQAJi5RC1M+SsnbmhnzwAV\nnIUohKC4Ocxkhwuqa26N3b5u5oOiRWi8RZdpmFohNjoQu3BwzynfPLpYPS8k\nGH7z1GW+DiGw0yPz+bPcrV7R1z3He5hixbIIHlI2iQ8XH/V+IfsmNEnagM4c\nMQhZX4ghx/meHGXF7q4y302vGvP7wbOLA1mDBxYbC0gsrezrNsveVbzxg8IL\nfkjxss7LXTXgG20Jbjffwu8byd/rAcCOK2v9G5Qfvtmtowepc4lz6nEAzSmi\nuonXS7TEpSTfeatPrUNMIVU0nbcQo3pN5Q3us5HmZJL6cyV9vCGHF92xVl3O\nRlU6coTlDblKZxOp7B31i+2EuFWqBDZZRTUIbs8svPS+Y1u5k03FOZqNPS9U\nGlvsJyizAEDna7pyXDGADHu8dapIWDtEMjADVFElNI8gcHZo6GlnCizLoRM3\ntq+Y2G4VwyLFvmNMnqJQfdF7h1lYCiMvPCOzU7Amu0DJwKBbhSxQLe64Becc\nONolERvnvWHEIvNje979neMHT59i6mkWJ/Ma51GU7pcCok2PuqfJkliuy0Lq\nik75IUxLqOkdMszSBKO4Ow9rhxthnVzS7ZRsHrAfkqv1XQ1s7VR7OGWi7dz2\nARMxPrib7sxr9LkUB8EZzDAqAU6FOHut6hvzxfQTFPO/BhyGtUONGk9h/v8f\ndM+K\r\n=0Ckh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmTnndRAB1/v4ANcbxoXoiDahNA7BsfiUDDhV688pdNwIgL/e8vJzVyg7a5R0SPTbavVfx6cIGdFgHYvddelyoYpA="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598657205000_1598657213732_0.5881692720162026"},"_hasShrinkwrap":false},"1.3.0-next.1598658542214":{"name":"playwright","version":"1.3.0-next.1598658542214","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598658542214","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-EHgCEOhAhI1rH3idbnESGjxKupOZcTPDOqcfGzw743l2JDaa/HcLqKZZR79IurOwDU13yS4TotUpfG9HOkthmg==","shasum":"e03696347d8ded83f036f1acd12685253e4f40c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598658542214.tgz","fileCount":158,"unpackedSize":2424010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSZf3CRA9TVsSAnZWagAAiykP/RF1JCpJN1lUmjtBXCGL\n1+ULcngLNqrxKsLpf1ebrW+5nwxR/EW7WZs2HIG05heG7v9aKFMtV45iOM2a\nfcHicVz2ikPqEd9RgiRtPTi8hT+AxUdxOo2JTL2VO+93AWAdDdLmqnJoDLRE\ngUiQyMLm1bC9lpgRuJjZXntNC89rUzImQKIPAZ1SUG6FddJS+HYIdIpz49N0\nbHTho3h9AaQPQB3XpxgcXZP5lw+VLAeMa2SVA8AMIcV8PYziG6pzppjZN76E\nxdctVKF3MQTtT8ngox3h09xOGSjXOlp5uY/P9Sdg8QjgQvZd5qi9xsIQzvbi\nEirdJ+6ASYpTxGOcC+NAjO8DOxpazV0Bk7zDx8h4Vbyxsd0pGKo6JaMEUwHo\n1C83gy6ji/Uh6c6uHjM7eRpif+8WqeN0519+0cE4X6CPl1ZzOpYb0zJr3xtw\ncv5UQCKpuEjzgk2cHsaF5mA5MnEfKfpoxo1WVJw34pkF0IB63TCWfyrT+QWA\nDADPV97DLhEoAgOfX4L92yxS0XC2Tc5d0PvwFGpKXimGYKfFDQxg2L26KhAX\no79vOCK//iOJsD5NmlH34Fuk5X9sGMJa0FK5NIrgOGY74bXKjAJulbnYMZ2e\nRUDSogULKInGktoUYuLeaL3FtsUXjdixceOLGCUJYQjf9s4ch4ISaroa5J9B\nbHt9\r\n=AcQH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAp5gGqVQJxytji8qi9KItGWQwymvGNi5UaZoRlik/KZAiEAn6h3uhjHgEokFyL5Ia9sZZhyZcjE7c43CENfTtI48M8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598658542214_1598658551303_0.5866329350415576"},"_hasShrinkwrap":false},"1.3.0-next.1598662636045":{"name":"playwright","version":"1.3.0-next.1598662636045","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598662636045","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-BzD7I387YluVIuDNAlB1o1KhqnR/fv+pYQOKqfujt8hvUPkx6os/KY0DeYIlAf35aftbnFu1S10oc9HmXFhTwg==","shasum":"3fd86d80cd06e6378544f64d339ade0e88e0fb36","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598662636045.tgz","fileCount":158,"unpackedSize":2397540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSaf2CRA9TVsSAnZWagAA878P/RdeXgB19GXVjPuPVf3b\nK3QxljsSivPamTxJ2CzHrVp3PdH8QGJ7a+7r6nRSH+qda7AA3D6PoA0zBuBF\nMzLerLTDArace2AvYqAKNQXK0AGoK+dAX+NvUQYyoGBTWeO1TrBNiVZixGF+\nHK2mR3l41jm9NSeN/gxCO18296DyVUekt3NWj7IiKDSHdUBuVzPqjjBAAg1Z\n8mBFnYrU2WgIga6K8OuOB4fj39uvQDPGe1H/lJpPw265rHEMEQsfl+64crYG\neeI0UdX9x33TaedW4feeFW4zzgkgrPYl0spHbL/i+TBVexDIfKT3EenTiqXe\nQO1pKFRcXT04okJV9x/xlRkoTit00vBw/xqQHhgHPv5VOex607DEeFJlN5bR\nGgvspDyRxHcSSkTXUlHJ0GYem5U4E9lh7xK75ao+UmbhXBsVXpyAaIEXxEu6\nNojLQb0qPy2kquaIS8VbZugmnSHjlfyZy5r1eqv0xzDW5nZ7wVBkBzTws+id\nduCp/UOHVCjsqXTWGOU8vMW/zf1iJ4NfPJnxodklrTFhCIofwxmyAJPM2nSq\neEURYPS2lTqj1z7Lx1C1uaGWGefbFYdDZpfgPAhmmkxFRfbnTv9aUVEQd3kY\n6tt6oCNem4aQxbfpy70+XhbXxfQ0XmAwDG0kP9fOIpI7mDxsOyCgodKWgv/w\nbaTa\r\n=/b8p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9+tfo8q6QI64p1IeirkUh3Ivu639goatNuAdMAWLR3AIhANYCJm2/viiER36G8bXGEwNsWQlU0pCB5HFejX9L6ZGh"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598662636045_1598662646105_0.047978611262171844"},"_hasShrinkwrap":false},"1.3.0-next.1598664415420":{"name":"playwright","version":"1.3.0-next.1598664415420","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598664415420","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Fqu54odSJGz7q+pIu4tt/WiWyWaW4n6w5zP3hoL6RJRxJr6gE3vbl8eitLlFwypeeHuJJw9qz48xc05W+AzbiA==","shasum":"17ef058e426deadd54edfb3b2e634ca55a8fc8d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598664415420.tgz","fileCount":158,"unpackedSize":2397540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSa7nCRA9TVsSAnZWagAAclMP/jJINDiWeBwkB0nzidv/\n+az7V0QoxRLylAoxWu0athfC72SqlObuxa//bGwbS5qdoFeMyiFYCBgXE3Fo\nVvC+1CpR03jwKtG8Qx7XdPRQx9U3BZAS/lOEGRgCdF1WIpGcMQAW67egB6ha\n5k/Bvfd5xGy/OPeXnunnX3/sNfLuKpB1O3oy/cEosafXnA7pVfRotVkKBizj\n+6Azw5ZZGFzjm/6zIaDU6N+lAuoKVu4ye945fjbvtTh5OaL3Iti/39t5qcV/\n1W32hXCjb4QvttzdA9QZ57vbBnl1VedpG7MG6t/z+v+rubu8hn0ckV51W4i8\nk0QJqfr0fjmq8lVwqTne99NptkM3NoCD7MK5y/vP2Z2d6oLZSlNoalydfoU/\njK7VsBmfpj2rVaDr2uC9kOln59QiGzk1lb8yQ/WjDYbqRxY87mlJ5o8lwplm\np1zyIrpX+BEWkVcErdOAIY4iGNlB2dkL15pdUNCZJIgWr19O2WjFqsyikPAQ\niWwX77zOpB/Qu8zAy/33GAQ6FQ+CK92ZdtdjwPlza1bAAZYgDJ7212LPrMa6\nuPhIPCylh7RFZFAKQkzn1ZnPG3DRVuFnBlCUJKeO2hk1dv0sENKgeBws3bcd\nIlxdY+WirDaFKHPrXXRS4HKJLCoNx57n6qh8odTO5pYrkf97Is+t1ShliNYj\ne9XZ\r\n=ksQ6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvp8ZRtaxzJZn3csrcvoF/9F1ynQuBTTzsEhngvAcNFgIhAMvK+EsSZLf22rWERAim9e4GEHOuRZecIthfbRw/UQlL"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598664415420_1598664423410_0.16733298467673063"},"_hasShrinkwrap":false},"1.3.0-next.1598668196737":{"name":"playwright","version":"1.3.0-next.1598668196737","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598668196737","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-MXJlDIYle+J4hBXpZwMEVYA0a5lJoswQIYmR+06AqGqrHWwkcUjgY2/ff7OHuGRI0/yWjilxUAZFdBBQ52uVfQ==","shasum":"f2b25f57813971a3a99630808f8908a837722feb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598668196737.tgz","fileCount":158,"unpackedSize":2397540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSb2uCRA9TVsSAnZWagAARg0P/RamEWwcttX1S6kRy+Pc\nFLCNY1PdjkDHzlLupTSzQBRvZC8/gWPSe2sQ3k4VB5Oy2YNe+pwO6iWTVlAt\nDWmkGUcP/0CVfdA0GotjdoKkJ/PtxAAi7JjVwcHb1y9lKY0lOFjT+nK/wbkI\nCjpQijFu5JqiekeaBzZhA/Z3A7LtjrKl/DOG/r8GgIl7ApBtU/VhZ4k+4yI1\nEHtiqjP71zWyX/UDQlygFryIUfdEoSDwBE7d6IR5IKD/AURF74m/Ml2CXAgo\nb0fa9KhPzlZ1hKxwBdjjboYkqDdNfEAA0NsMn7jV4lcS1rdeasnM0kZMSRmW\nFJASv6tG62GdbkU4kbwGE2Uvfhn1pcZL4m36eb5JwqtCX1StAx8Vab5uIjnG\nogOo+T1VbRoczYF5UZhyCoNrW0oXlRbBUN/JLLkCmYs76J9+X8Vrd/P6WwDN\nSHiJ/25HhVTgWPiyx8Ps4hJ1maBx7sDZEaw7aIn3AI9+Ovfy70vmODN/2MsB\nF2qM5oiyxez2dyZOrzxFi/OgZdJ/UknuLLclClMbQt2f4AURNaHsdxULQXpO\ntOdkzfukbBUNB+YCVBKMdww4/5DekuAt9/TvMJcDeY/s6OxNqXkftaUkBw89\nSmwkdjp8gIzQ1om26fCS4pPdr3sOPpTqfcltfrMR/XoMrLom24MAs3q6z2KE\nx2ys\r\n=7cxR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGuocHxkRhlCPLuXz0psI7YczRv45wWuG8uTjEJabD38AiEApE1fmkSQW7CFQRW+xIUFrlCrCXdDnolJfa+6G0QzzKc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598668196737_1598668206076_0.34656975729099493"},"_hasShrinkwrap":false},"1.3.0-next.1598714977010":{"name":"playwright","version":"1.3.0-next.1598714977010","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598714977010","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-510FMabVbb2EQREAjaAsxA2LVPbQ4LLcevG3UiiMc2yCe84j0UbnROVvk6oAKbKvuNxE5A+zM3LhAgYpHo8PQw==","shasum":"65541212d49dcf8d09723f560a312732266a23eb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598714977010.tgz","fileCount":158,"unpackedSize":2397540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSnRqCRA9TVsSAnZWagAA85IP/0q86HNhmiIjE5nO0xA/\nOnlGHWuja6ziCtqQe6E6qIlpk7JmTTNq5fKsAm5H3dg6tzhvxg6657iOYf9R\n3FgWG+TTl5l9UzvK1mqLDEENxK/WWX4aMEquGTH/F/4n7lRSRVbI4vQuiFb4\n4WtwAD5sg6oN6EgX02AEudh0WiZ3G7vu7QK5wvXzn5R/SJ++E5hUdNTXAP9v\n4nNZ5FTtwuLpM1cK+aC0K5GbXG7ulFrfKNLRacv84JIMXx/YXJw0X1VUWUEY\nQylgPYPGXWYt6ONk+fuI8L5M/d7tTawlqEZkeoM7i6CPYiDObDTKS/N3q5Mo\n32wSr6VwVZ5yxYRRzF7fsjShPUfcLStreOx9Q5eUtumntmFKJXicJV+Uh7IU\nXbGFqZhhmvx92TwsohIJSr4eYkfFRxAZmXFqlIjrd1/TrzkcePK7R+lMyfSA\nI9/F1C3oS49vF0SSA+rNvp3I9fvhD6k6JQjo+o/K3V50i+VK+Fi6iZiIeuQh\nON1NJMer2aQUSbiMKGuQhRMeLYDfGv0zOGhBC2yyYd1AW1uKgFbiCTJARXjp\n8imfpQKQ/vRKAEBwljXdidnUgv5LniWS3GTr7mg18AEMT9N1kTk48QvB3fox\njyKAhvkwMzTpk/iJ1TqAo3fcozDmJLoXBwb1fPS5gI0bcU7s7IHG+5iyZRVo\naXsm\r\n=KDc/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA6UED325Fnm3kmCeQBojuSPFLd6Axlx43jnpxG9HcKUAiBuXkX+38nCwmpqOtNC+UMZaRBQ9fgeBMpj8JKn75jXfw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598714977010_1598714985682_0.9952735201884302"},"_hasShrinkwrap":false},"1.3.0-next.1598888724864":{"name":"playwright","version":"1.3.0-next.1598888724864","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598888724864","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-psRi4l5HiDCE+NL64nj+BR1UwgJDX052KIt0EkR3DKT+pHFe6NpuWzpckcrlO+xZBNmiJHkrAiBIDQT5TuS2Eg==","shasum":"a5879868458bb761af34a3abb998951b44529bed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598888724864.tgz","fileCount":159,"unpackedSize":2403448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTRsgCRA9TVsSAnZWagAA14AQAJKyXmzcD7iPsmK01T+1\ncZvb8kLXAOgZmoF9V5vQA97uP0NAmqme6dJaXj365KBMfBx5u78k6yqT5NKx\nkM/P9/FJAQ+AxmxpV3TlYGiw5+dnq/JsKLPkQ5o0gqcps5hyJm1iT0GjnOTg\nFC9RlpQF//65oAJ3hehIKLYsQry8OZK81xGyeE1NDtN3P2439c71byhdNY1g\nR5gxJSqEKKhZWmD0WYoJR/AWMhe2L8pGx2r+/9Ne3pa9XklOFTsmousloXJu\nxE2+XFE6VA6cw9bNfHNssbrksb4vgVypp+hViSJcp+iXutgF3FkZQU0Ekp5Q\n76JA7oKSO+WzW2uACide8Q9U4DZX1IU53f7Mjr/YGUP9rjnxlyVor0T18Fip\nS9fhUe59hxfxVeiZ3jwDCckPUeid+7FbJw5kwxiwVYJXB3qPF2u1Miw2YF1b\naNqw8OLSLfymsjLzRjPKvKczCQmpvKu3wxK9IPuAXyauDx4kQDOGhyrr3q7A\n5JvMwWFz8kJw737MSV6rtMRzSgISJUShYq/lKgjaKkyTf//PYiJxCHo23bb1\n9EHY7Aj/8fuEQ6c1qzgEgP9h4e1aHCw76AGTyIcu35DDUgyE4ygqmBbNg0yE\nb9GVzVR5nFfICtqVoZArvNV1Yg+UNgbeAoclkH34dwl5qFcuAHT2TKpt15C+\n597d\r\n=Ldym\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMO4VrX/TpKsiKjK8AXlBXvZt2hNirvS2VD70heHHoUAiEA74Qd9KiDoaba1F2ye+FIMzntdRESDO/LO79Fb5Kxpio="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598888724864_1598888735613_0.1524798318924161"},"_hasShrinkwrap":false},"1.3.0-next.1598892864552":{"name":"playwright","version":"1.3.0-next.1598892864552","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598892864552","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fU2prYO2jk8+Oynk8f30nUqltQvyfFzv3Zd++du8kLQIlAdAuQuWVfBqo6GmUB25TUJRt2oZw3i15NFZ/0j+uQ==","shasum":"a2737640dde5610dd95c3b4a284b81077703522f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598892864552.tgz","fileCount":159,"unpackedSize":2403448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTStJCRA9TVsSAnZWagAAWmkP/Ati6MReQJXMq6MPLL3K\ngpxjiuzTInKQyxHLtAq3m9GtpJyKFopOWlxyQxiT5o6yFNpnsSUzHLClITW2\n5LK9AZ/8fUvNVqX0vVHsLyyyV8LaMV3ogwq9XZF+CxgcZxJpmhs6AxgX77o/\nnDd12vSpKrXHsIKO+MCwY99ADRwIgnkxi0JrJ+TtI+Ran+AYT/goY4WBq3pk\nRPrECjeIcfOesqaVH4fdZWeMCHKGm8c2PYclwoBlDigNj2DyHZK5ol3DYAYB\n2tOrlESY2TFlvEK5k5u7k7lQSZUk0kHk2Wr9Y8xcI+0SUnwjCHFL8Q3z3Bx1\nHo0DLV+R8mkR+hNPDbdunAxGVhhVQBJMKpYBZLQBbelKsReAdL+pO5hat4uu\n5Seq8tla4sELcFeUIhTfLiXyQcpAX5sOU38Gv9axS7p3QJjBvS37Fmebne3+\n+HLzDxjcFdRZv9p4xXNRZZ5CrZc48TIwgtQ2oflbk8MwPS8rToGtICgET+ZW\nd4ZnpiE0XlirDMdkQGhvk9WwQASNkMRB1ZXgKppMc1SRdWgTNBI4iqiJaaAx\nVK3lI9Hnzg8DWprKXKr9uUnC9XVqiVkUF8j+RPIS2xFXPXOM+Xk0FSnhhPyx\nhzLbxNqzoFATqkzcPxeeqge5ePe5/ClZius9SUOONWZsZSlD6YoDVt6yu2El\nUrg4\r\n=5Sev\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHGzp7RvLfmRL7dntLx0LUcBWBBxaO7KWuKjZ2tme+OAiAuzrlUPT76xZkI8AFJpdF02w58L+XY18eLtOLH0Bycew=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598892864552_1598892872412_0.41125626726811304"},"_hasShrinkwrap":false},"1.3.0-next.1598896035671":{"name":"playwright","version":"1.3.0-next.1598896035671","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598896035671","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-MDRxz5BzMmSCIUQlrEP40Qd2OAji6lj8FpoDXggxGHtpAjzXp6o/qh1CTGRTlbTBrNPdBlojHuZ6gn4gyFz56w==","shasum":"0d77f3abd751a6e6cd0a939d7fe7b4975f1770b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598896035671.tgz","fileCount":159,"unpackedSize":2403448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTTetCRA9TVsSAnZWagAAspcP/ReTDJGUFwGn7WN660M0\nNO4oMg086tBUv5eJei7dek2jsrN80uVSmOe2FgBvFE+pTX/kK1SzwaU2ZpBf\n52bOxuMtWWl1JIUo9EpXssmVi5XGBFCk2UQ0rTRrg6ERDZp4mFpFL+UCyK0s\nxO8WftfK6qlf5MRgI1tiCY8AZxcBF7KDft+nIsONf8aILT7kp/L04YdLX10k\nAdYu3NdAEAOoHxrh0CEJ3n0/262DYLR0nZVZPCy/0l4maJVeU9vTt6Uof60D\nGAfstNJ3kY5NbeROk5JifpBV+exq01BRB3IwdbZqNUv8eyUubtIKs75Y77KQ\n7YmhdAJMFVRfgS5SSYSHvKW82cNUzLAb0Ks8CZMg086kszXKcltzH1Wefa7p\nKLF2bwcVj+QX3QPMlzNcVBs6sMjkqDli1YJvK8RDYQMnVdX/lNrh3BhYyn1d\nZ5fa3wWZNaIRcO3jj/QCs31CTd4d5GEyHIi3H9Y+diXOTSOAs5fiF/UmonUT\nvN2HUMAii5MP8hWFTVFBffLIX8TIqb55FQIMh7tddZJB8PnBYtLM5pF54glQ\ndYmJzPAOdOtel7r7x/lErB5U5cGLIRQttDao5MNov7ZKrNmCMwcNUuTSptRP\nFt6ClkI9ghw12EuRsb7PC/XucVDfTj3uB+kXAh95O6PCy3dAF4nmx+XMISn0\nzCCP\r\n=y+Y2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHrQ0tqVCdhfQS3/81+IQDtok9BSm7jtH8t7QI9e2zJnAiBfitLeMVkGDv9SXliEVkeKPo7vUQLfkHfVtutTrbjlWQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598896035671_1598896045410_0.8210180807979628"},"_hasShrinkwrap":false},"1.3.0-next.1598905231974":{"name":"playwright","version":"1.3.0-next.1598905231974","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598905231974","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XmI5PeFVx3tBm7X3cBYsyBwqQGEwhgIc1TWp/V0mjDWryv6cJwYxRIAxU91851uDFMAy63lR13Q9FgLpMzdEcg==","shasum":"b8a5bae849639a5eb0d11adfc9126512c3667fac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598905231974.tgz","fileCount":159,"unpackedSize":2403448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTVubCRA9TVsSAnZWagAAS6IP/0fLRmf2M8keJs7p85ve\nXgy8IOOckPYf2/ngkdOfu3HW6S7v5Y//mxfLr6UzD/iIdN3tf8YFMRgUjUcF\naqQpfLVLO12v/6oTTPZ2zbLmAlr7A4hQ6GqwJIPhcz19BeDUBp5VK5bEtvVP\n0mHR+XHyqqSotgjL0xt+iG/HmvaKkDwWYq9AJWkxmhuNtsHv9dTUKAjG7V+1\nFqqHDrFn3uF2JzZlqTtN0dmpVjU7SGRgY76PAlXxzZuiWeNKwuhPzQOzxL/i\nE4vyFF0nWCUj6pKMxaznZrdsFsljaFHVR0HRfcbwwqSVC2kEqIS0WGRr7BER\nnJG0/gwJkle+BzFLpFCgN0vJWqzwVYZHaWOuPRgKHnm8iH572HKdwacAor/J\n5XAKqJbeEOAvLtFuqeoepIflaOCE9pH6kdJjAsjSMLaikSFOqSmndOPqvSdR\nH5KSsbdM9Zzxl6bn0+FXKk9Guf5XouH7Gf4IR4Jr2/Eg10eIKGEedBguGovP\nV6zbwZnNt5IrDeeTXcnb5OZf1DWsSim7xwshzC0aP4hzHBbUCOYP5SLBjwvI\ns6BQjLVHM6c38L/R4CeFL63jylgygVdxNdsFa/pLybb4w6N6+DuHwNOwSJ8E\nDOJqXjJ+1rtqo5Tt454s5KlYqi/FwPxkf2R8eItyRGIjAKXhD77iH2X+Mp41\ntjHd\r\n=bw1H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7yjc27clgfJ2+2S/yvKvgS8fOVkDXjsFFAmJjjkImDQIgZ1b5TFmlLvNQYKGfTYk3w8mH5ci6YH/TJY2OY7xh01w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598905231974_1598905242962_0.8600943784971535"},"_hasShrinkwrap":false},"1.3.0-next.1598912584128":{"name":"playwright","version":"1.3.0-next.1598912584128","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598912584128","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9OS5p7WS1NAlwSJIECIUjVwCb/XLS15wTzmRGuGX1/xOAaN1IkwQyrOSJF3lfmanUKsebmU8iIOce80HHFk6ew==","shasum":"e6a0d76b1c5d1f18042c3863836b9df5d0df3c14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598912584128.tgz","fileCount":159,"unpackedSize":2404953,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTXhXCRA9TVsSAnZWagAAG5kP/idGWSe+aNG9lrzBLhdm\nzC8RTYGsG9TH4Mcvzfi6ixWPEYiEvAm2ZnWT53lm01n4vICCIoScQqbtAxzx\n7nSr8sZxUkxC2onEGOnyJBJqRxZ4QYDLR7CNfT4IKA/Hl9eGfBhzSjZltTSR\n4Wv4L9q0w9Awp3KI294auKvAmveK6GyT7JuUa1zshy250IUZ0QwcOOyR3Zfz\nZ6S8F2wCzdoDBOjiN4g0GlJwdEGnRqUiofO1+N+RvSEYqKVYN/CSVbbBE/7V\nbsk73WjmGZsqOESiDqDRU74YkV8bG2yNdLs2HCNgF4klNvow4xJeq8K4unWf\nJ3yuD4NqGUrRna7Dk26H1W5sIyCajVkPDn0gTV6bC6EtBLJGof/rLD1XKZMC\n+8g+AkPQMKkdLsT8MWY/Yb6gGpK09OS9adjSZGJGZqDJfR+PfXBJUy3158yE\nB95DE6NdI4gytngIm0f3wx9H3LWF1T1OcOWKGNPcSU6BxoVFvm46uFvPrGZX\ni7a3mWrggr4fqVXPKLFnGND7TdvE6mBwpoDd3Klec2zhI4xJRaAZOn+t5g4C\noLPx6fEn4x2cB+17wD0hH+ulOkrBa1pG2IFHAN+1AbHZzwNIi2ANBTAuE0o2\nGulcS21gzPPQY2guXLk5oxXJgdb/r/qiqnhpHVtWL0blCEjT9yBIDmqiJnKM\ndNOD\r\n=8seU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhCz4O62isvDc5hY+eJnNaYIVLuCL5663rbmD9TGCB9gIhAITnVM0wc2Pfvcv69KUyE2nJwOYgOC1SiicffyuF8OHx"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598912584128_1598912596532_0.733436910462963"},"_hasShrinkwrap":false},"1.3.0-next.1598918523432":{"name":"playwright","version":"1.3.0-next.1598918523432","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598918523432","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-H+AyazieGw0f+fU0BBAzmWyzvGpd1jdKpPzUP52SkYO7ceOYRq1lHOSUx1JEEKXJ1JZ88x/LYP/Y4iSP9cISsg==","shasum":"b1543e63fe822ad7ce43613d9a7c17729fbe5c7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598918523432.tgz","fileCount":159,"unpackedSize":2404953,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTY+ICRA9TVsSAnZWagAAzkMP/3BQoR0MxAGc0CPVsqfX\nixTBkfls+9rwTqOk/QMlmu8DJ6uTxBJlHYt88jO0WkkDqr3PrRHz6AGfK62v\nL1vsX6NRNmsnrtZhW1m8Zp6ahQVhhzlWQ+ncEKBKJtLQainRjWTLuRTApPlw\ny+CmFTki2YQ5VdSwNJj3alX+wxkQCnPHwkBRcN6GEFTvpuTCKzLja1xZ9RdR\nUwST5HPvbcPnhERIDCCl73zwhnigNkB+2anAR+hio+QzFSBNET0WjY7jfDzG\nqskt+4IT5cZB9nXI/qz/EQN5eNp5ilXUUxXfJpWgQhDGPznz0ZFKZ32XsGwj\nDLu9988LlXexHmVb3zbE94GIMAbTyBZKU1+SdAtx82a4gq8F7kN8naO7SFiH\nc+k235w5JlcfTqoFcjenh1C8ZbvXDsO0UuS6iqzs60iOHIXm949clAkurdhI\naavTURLHJvKLwRqFxlDI0vkW/OxWluDItdxhEOzYCbHxo93gDcsD7HxbQ44g\nR+h4vq6DNsay/xFfQZy2a9XNdzO79hVT79uCc70dCGAszzkTbTuRQgmJLBL3\n7vjeFjF8lm0BWikXRmLWoiU9XfEYaCAOAbnFsvrUJvjoNAzz3i/083JTYd7c\nUdI64ErK2II3q/1+fAA7seXnN8jVzJn6bvhq/SesR491/8LL4e+4jKk5jgid\nYQQa\r\n=070M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE2DcsAVXKWJVowUG2DG8ZFULWaNKok1bz0BBosJLZ3RAiEAupwv2yM2sW/ZP/eEY9v5cD3l3LQ5rgZv3IHZvttS110="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598918523432_1598918535660_0.942377070874608"},"_hasShrinkwrap":false},"1.3.0-next.1598921133538":{"name":"playwright","version":"1.3.0-next.1598921133538","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598921133538","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PGkkAdrJ8WkRd/YlQWzUUxxh2bXtln+sG9gbZHBgEKKWUsMfF2OG+SuuUMx5OX+ALA9kuZF37BSTt714kqSKgw==","shasum":"1437638a059f2050d7b1f41cde73586165b6f712","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598921133538.tgz","fileCount":159,"unpackedSize":2405032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTZm5CRA9TVsSAnZWagAAwuMP/14mpDM+U2Nxbs1AQ51q\nQSHJ9/dknmzNpcY6Zm2WrgSvPqQgAjkHlfoTSIBM28BWxcB8cXkY5vMpqJ+j\nD/v26VmWh6/m50gE/xQIWEAZ0N7S92ovBQajkLUzUY0D4aXJB8A/4hbWTUvL\ncRx9huZQReNa5Ryf6InjgD9eUb5NaovUwLrkHtQxSg0AoLyEH7OKs4cIM5wJ\nwFKoaqW8sV+jiewe1HnYa+cPiRy+u3BUGcQkUDXnvLvsyyREGG0S5vFX20pL\niix5lXIBTtkICll3+p/GDhXHS1KDUsyelwjiWuYUZ8Afcw58L9FD0z60Ro/1\nNWky5sV4JfDt2jgubtaMXCiXN3WLxJaL/24sWgqIXF2RnNA5vJnpoLzTB28r\n8PQiozjGNT/LNW+hAHrS0Yhpn5YNbBcdpE9W35eTze4Qe2JI+3Cmn8vPe4vj\novgEMzImn/JMa3SvbKgzRwUGBJTBAfPJGJhL3AyviPd55k3uv0YbtjH4CsAS\n57FNu/Zo68P0oqfIJPDYDztLf7gZ81HWts5FRoIPgjm4kDVyBAZttKHw9+PP\noJi0/cWCvpeojyu+21ByGHB8X3DILv42AvZToWPWj9voiR6wq06TvNy/WugF\n+tjJHcoaqHCeOU/qIcuIKNInjBjl3IpXhdTIMPF/meoGXJ73YQ2O+VKGW7dV\nHZQb\r\n=HYLc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6jz8og2PJafmMRJ0FEC89a8uvk2XiwbqhoddlOPeyUgIhAMNlJgPkh/S5g/sObDqXqlUPTrdMNfzlHf73srO6gTDK"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598921133538_1598921144856_0.9460673940177065"},"_hasShrinkwrap":false},"1.3.0-next.1598985323541":{"name":"playwright","version":"1.3.0-next.1598985323541","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598985323541","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-SVm5UyZfuIneRP2UCSM0HSiOubyiku2rbg9BZ5IGEAfCTyOHNGtnv06QaY0GQdTOZY1/x9adcNprjcS8rDjP9g==","shasum":"dc7b37f9dab0d7a9c998c2fc9ce0d4d319a7189d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598985323541.tgz","fileCount":159,"unpackedSize":2405032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTpR3CRA9TVsSAnZWagAAgMQQAKFvBN5zIKAGN5A+ar9K\n/UnwaYYG3g/Vy9gv2cjNEDkm7ibzsm5wMtJ2x66mQ5tUJSHnovPRO504Q+u2\npbD1ZLx6PfQYIruBB23m23Cka8Ca5NM56xZMEQP/AO1HXopOhbt/LZuKQ2Vs\ndqVLo1xMQbPKDCIUH/dImC7KPyAgUSmmGDE22CvwBfx6UG0GssyjXaoccvZ1\nZfT6TtFDvAyDNEpngfdhfBN4Th4RwEajJhKxm5L4rcGPqb8Gedqb3sY5xaLj\nbUHG3hbMlrAfD7MwlNbzfd/vO96ZxGA8mLmeP/k11iGjDkmjJIiP/y3vebOb\nWzqGNR1Icd5cErJBQ+Iby8Y92VZDYeOEcVnXnGtFxcLjPYGdRtszsDE8f8VS\nuxXi5QjaROFt4x6YLQwc9i8N9UKpCRjHrbLjMzCRb3hFla3yXaWpZUX4vt1/\nTnYFQfbngZaL908QP1WlSk0JZkvX8qJTogWLtkgtXPt9AWXP6Ff4xfITj6d+\nMiaN5fU956LY5yLbiJ91lXzU+0MGzW+tEkC0GwtNtPch5K1Tw1sYJymF0Vxk\nyLKqbstMq/pRXalXZfDFDGAPNFggo00vwCwm5a+GEshnGvYXBKMLDj/fR2mV\nfMjNN1oHZLIkWqO4/6U3jH77pXwJzcMJby/8PIZg6ZPeD3UUf7hx4bSkvvRC\nS61z\r\n=rGXo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvFjMZKRRDZ9oUUJWMv9aPrPdh8Rs8m18Ne6E3wjxtbwIhAKm5ug6pBErO8AR8IJHGFzEkI1W5vN6zt4DqXFb+QeAT"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598985323541_1598985334737_0.7869979470121764"},"_hasShrinkwrap":false},"1.3.0-next.1598987234371":{"name":"playwright","version":"1.3.0-next.1598987234371","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598987234371","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2BIFY8I8Yn5JE9r2adx36xiPtva89FFdmV07fJyveeSxzARoRgFh34kSAroDFIKrtWaMJiYrHyBCVEfJX9xorQ==","shasum":"29a64e3067d29e668106d0f8dbf65383e57b08f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598987234371.tgz","fileCount":159,"unpackedSize":2405032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTpvtCRA9TVsSAnZWagAAoVQP/RhtrTCw2/NSUTpb6boV\nBggmo6d8zuvAHXPmU0te1F1JAPZHXERqjjrWJSuit0RcO2c0VuZBn341HtQ3\nxlBysIn86OY2uDPMjZPPkuIjZAqdHPF/P5Ov2HhuYNwcSJ08oda/LFbqbO84\nkgp8kuZOpG72hOw4WGQRfc2P6Uoe4yKOLB0yh2ttJw4Vp5vKpB8mGhqrbm58\n8+dV3cjdOEBN930cGYcGlJ9aIaY7DcEA3hfBDh41vd/JTdpiEaAQqc6GxXE8\nPx9BKRQhAyF6xfFbzLMlpBL2uKdgNeNs2OWvHSuJxIPFfZJZ/BGNeWvVVLTq\nCD9eKfHFfiSob1kxT9mQEr8Qo+lld2EyfHjy3AhTLVytVCAIwHn+/xDRNU2v\n0TQlu9DbbIoyUKbARaikxiIEFCQo/HieLesjgQmMoW5EXaO8tlfKLDyuGFC+\nwjrcG6+cR5aDHY7eI70vRkSgZjpUrCj3C3d90GKdfGcNexy5VcPHmEiuyVZ+\nCAhL45n/xAtoGa80ItzLORS8yWeHD6SdmaszIzZ0CLubgKPy6stVx+3hPtDm\nXk3/oUFzZO6ECSQZG2chK24SzHeAyELml40r0trkBektrHrnmv4TYMerXllD\nYHS/IwO6Sc6JDzSsgz+38M2m+PBr5DK3i1dGoJz5qF0rb/pUro7zPKKVguCd\nX7AB\r\n=9tj6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeT0iec7m8an57kdjbU+vbW8AMEgL5zjwd3dIQ0x7GkwIhANsmPoeBD6Nn19yXi4IM6MYZ6ocWzNrkjLuCf3tNzXlw"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598987234371_1598987244950_0.07868867596571771"},"_hasShrinkwrap":false},"1.3.0-next.1598995622199":{"name":"playwright","version":"1.3.0-next.1598995622199","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598995622199","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-B+cmfA9y7TwicqknIuh+w/BrY4Td9BvE7SoTPA62j3/sbJKswRBaQg+BFHucbCnvbBgUsKhh5wA3tTAOTovyuA==","shasum":"328802a1865bef3b0031834e682235d9f5214573","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598995622199.tgz","fileCount":159,"unpackedSize":2405032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTryvCRA9TVsSAnZWagAAPzoQAI8Qu7N/2mcBeAONi0Sv\nPmjK4VKNAjZFyHJvMmEj3ItgTQ9rtKGqAk0KorbvXfZiwtudG4PKQRGFlZKJ\n+4YyQHsf3eCmMrINjm+XGBBwALzzjcyYpEZ3u38fn5E8gI0tTWmscAuKZt1h\nDU/1MDOT8Za6nd9ooSFljsXej6eA4jhcA9np5Imm24lELYt+aSqwtcf1zcqK\nrknt4+yeLqHO+hNI0YpSPSql3Iwwc+ecIfe2yeGneQRaoa5DY0SwlcrE8nAm\nS19x/NxUc0NMwd3PvVNyqHmQiGAspMM/86v06CzGpz7C00AgXJsA9J3gaSt3\nmSOAF2HOcNFkPpOhzL2vNWxq6OYDzxWaLlUY/z2KcTumkNgFxHvBrok96xr8\n5vdk969TvtkmSm94QHVPiE14rF31p8w2ctlfpVbGhyvFbpvtdeiDLOck+oCI\nChD54v+kcikL2MxP0A+wb/pCX0iUi6peKxd96ZGz2DkVmX0puZIhzNiIA4N0\nOcHhm+XJWq55FXlzhmor6p6tmXnDN9ypOwGv/feT9BoKDxulgNFMj4WxFGXX\nxweDIXmbpHrtf0fqgjj8rk2P03TzCfSCohLGAjiaRj2C6R1wehdWi4+j+NPk\nitGhq381AlEEml4NPqmaMvH4yyLxtfsJQXUSZXg97n6jOxXCSPHBrqb9egD4\nSCFh\r\n=4ERY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC41W/UotA5oviS8M5aAfhLaCGTD/haRBQpeDiH7/VBYwIgHLLcOp8BBA9WRLCKV5N05qRTfSrTUiyHfp4HVZFB08Q="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598995622199_1598995630426_0.5299059905444699"},"_hasShrinkwrap":false},"1.3.0-next.1598995817925":{"name":"playwright","version":"1.3.0-next.1598995817925","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1598995817925","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cK5HgXbya+jSuxjNUtn9zjOWBHDxyTQE6NFCs+M0IHBsf5nfAEpNHfDr2ftubFsAoro9rZWTZI7/sIwAIoGUrQ==","shasum":"4b85c6929a268fe07eec9eacd7e62448c2def761","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1598995817925.tgz","fileCount":159,"unpackedSize":2405032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTr1yCRA9TVsSAnZWagAA83IQAKJj9pK/UC3/lyqdJkvF\nZvTe77Ep/rlH+uerxLkt4iH7RA2Uyqpeif11WjcbHHpR9+tsYQwNTO8zUilB\nJHOO1onKKSRK6kgbRjzm9l5JVz7kHq+HB/uxkMy9oXXN3pi+cJKEQ77iRojS\nKgDwAUPKovMp1zBB1/Wa91Wl0FXpqu1JzuVssdOujllF7K04pzeBl0Ns7/DT\n4kQMwSL65WFcl+W2ezyDWsL1NyLVppOAd/XVG1JVDtksRIiu6FKyW1xmr6hf\noS3DcEifnBvIiYsnHPkflrqPnlZGAygGTlm+2+xNqRkDMe9XgyQH5UFoZ5cV\nCcKwFGYtKEMJki/Wm4EAxGI+TE7h9UJ/JWgoGBP0tCaInu+lEJ7HS8sLXY4e\nKrCDPTGIsV+wSHMLWr83M/g+pHoACVPb8onKvxABWjjcBqdGc5yFiV43ID5l\nryC4RAhowZDAFk9ELUmXqQfwWkuEuAUdY1HBszMypmMjBRkQM6A7TySRJr8Q\nuCt0Hlnblxv0yA57fWs/FVaEuoqHCD00X0iR0UCaxEW3/NKTF+RRqbNPR+H+\ndCQ0l35kJOw8IwdgJ31sjjWu5tbMt+hIjUaeHlO3iScoIfS9Ck3o08IJnDDV\nBLzOfWWXF+ZejqAJZTn6yHFt0ybseC/Bg+0bMcS6jXVVy8dkET3NwDwBMM1l\nM8F2\r\n=NF4N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFeYw/nBkyhVeaVkC5OfZLuqNFWkdjrQtOT928VhCvoiAiBEvbdR9IwxGBS9igqQpQDyXrJGfDdGQmIztpWpCIDmQA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1598995817925_1598995825567_0.7815584135770259"},"_hasShrinkwrap":false},"1.3.0-next.1599003121743":{"name":"playwright","version":"1.3.0-next.1599003121743","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599003121743","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-GKCX/Y2sxWunLphbYTxYNu3+I1Y+TU5moNyMNsGXp+2PhLG4llDjvemzUIKFI4ZG1vyX5NE3Oh/5qRzpUnvIpw==","shasum":"b296a64549807745b58d3dab7869656863d74bec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599003121743.tgz","fileCount":159,"unpackedSize":2405560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTtn9CRA9TVsSAnZWagAA8FEP/ij4/S71pd2WN2oN9JZo\nLnf16mJQABQTzl2eZW+cbhefmYDevMEeHL33CfrMF6JiPN6W1hIWnc/9Fl1p\nGp9D0KawnQau9LRrk42LSsZxStz8RdL0asaLif95zdfFB1i8xNH/Xu6zLZYk\ng5P/u5JQPKOxX5IgOQI1BGFQH9zEnXBWv7QXZKGXeaLYcQynzqB3ipzAc5vi\nSqknymVwzzjn+bR79SEPHZxxXsT6PjlxcZfn3wSWVNQBNnfob4noGrIowMro\niJWWxfb4Ro5NpJgN86Scxs4/dJo4RtHBOi1iz4S2y4m0hlgTa7TGGqyZ9dIY\n48hQmvtIGvHiRea+SImjAEoI7SyUHKhiKOUJi9MYDeC+4cksAftXE/R2ACzY\njHm5USxadM5FSjqNoGNIZra34tTPm75MkynzsH4QB6MYlmTj3cD0EtuFWyE2\nyVGG8mqXu/INF5/nZ+Uii+Ky3vhsG/GsMGa1M14b5wYt20cRvIxNUTufS+nK\nEUt6yGch5HhKhW5Xbi2lhIICn4tq8Tt1AYFva5X9qU8+WoZJw9sN2PB16AWd\nNuwgoxhQLIUsXZJP8qVbSmUDM01goObm+qqbcGXr1G+jL+R2KpN2b5vCTq1F\nuuoomj0v4ndCOyKtlq2OjWNU3noAa3in5+9teXXyKhKQrt+z0GHULjbu8TEi\nKG9+\r\n=DiqX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKqrG1fT44QVsLGDB8yut2ut/kQMhleuqa1wm8XUMb4gIhAIoYmZAduZtMSocxMn2AJtA+W+Q/EJRY+u6Vux4jMCST"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599003121743_1599003132723_0.9052732299593038"},"_hasShrinkwrap":false},"1.3.0-next.1599003932864":{"name":"playwright","version":"1.3.0-next.1599003932864","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599003932864","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-B46xdtB9T7KMnWVydkGsp/wvpAnhIi90scU93VCf6VJZk6zDmvHSJTgqVN7obBv8Ewp+bhbVmgBGhvcTrjJLpw==","shasum":"0451a6f8fcaf383c7b7aa7b6a9a6dc8506faa05e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599003932864.tgz","fileCount":159,"unpackedSize":2405560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTt0oCRA9TVsSAnZWagAAnhoP/2S3z/Bc3brYRVIR4+xS\nXB1v56LnPiZhuse3DYDlTSlGXS7WPFnLn+dJmbGPXIgda2qEdUa6lyxD7drK\nAVLXybw8fONB6l/7aTf80cp+55W5nuVifIG1+GbsqKj9iq6uoAVg3kg5KlMD\n6bpRQNkjDvVBJ4zTOh3w6aA0vQTOYkapGhzpRLOAzA0PhIxDHW+ViD9KIcY3\nbOG6u7CWUzRwLhp8yIZBJSu6B9bmleV2iNWtAGEhi/jQS2MjOE21O63lwFWx\nbZWoRRlJW20PzHPXSZw1ElvxX4mMbl1FXPwAg+YJZQk8S5OJ0qPTn50SD7+v\nqhmGU9nxXdxU64c6w/WHQ03trNd9UyqkVfwQ1bet3SiNhhuxcvqTzmfgIItB\nxRxyZfSzv4qsBzrfKoynWQ1qPxjnAckP19C2U/YVa4fyUgcXPZq8BVUoMJ0I\nDfZgsWznhgNrUv818fHR6CvAj0vgDqw35/KfM/pgtODvcy0tJ6nXZxM5QQM9\nlN8tEdfO0iEzOXuXcHRpWos06BGiMIGU6zfo6/EHK4/rbCr+mM/23bn+jw0D\nG24vf/PP/AnqSFhUJBylRe9UF9yqgmmkzuEpgDwtoHBdEzgeVvqIB20by0QE\nqmfSNSaSeylezkyMJXD5/wnTmmslUH6KBLnuvkjr/OkBlu/dr4p+YYxP6CsK\n89sn\r\n=3UJ6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3man9cFKVElQMU3be5OzPPdzRWIFQJT8pH057s0S+YgIhAKQeSs4v3dh7NCiA2H4zR9oKyZqPbKbX+TufR9wC9pnH"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599003932864_1599003943342_0.9702339446486143"},"_hasShrinkwrap":false},"1.3.0-next.1599004411039":{"name":"playwright","version":"1.3.0-next.1599004411039","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599004411039","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ttPkatPuNQ/FmEtU0mQcNJ8Cb++b41YGwmCd289/FtXPqLr0axt6MuHqUQ2IV+qClHlaEPa2jX1PyZnrrLUm7Q==","shasum":"89b2966ceb159029e12ce4625566b57af966eaba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599004411039.tgz","fileCount":159,"unpackedSize":2405560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTt8GCRA9TVsSAnZWagAAhsEP/i16ERK1C+76nsYuoCKu\nNnNUqZmhFxU6IQfjCWw6YN/FrxgTubj6hJqyhXiD8UwV1HD80yqiB2rrhEBc\nIn9IvTxdkqEAkaxJSDCJeymIx0OQTzX8Umhq8J5yUnUPbu2c5kK5PBneMp11\nC4/nBuEMBikDWD3P1zVVy27/pDez/kQGt2mYSStql8H0VGcCBCH5swVK5a4q\n9Gngua9UwwRHIc/kH+8j6FQGQ3f67KZC/CmgBZpCXmWCrDkeF167hZJ+x0rx\nMW8hOEOg9oBOvuzF5w6GFapCAoA6fKGK+rztCD6CZC/1+Kf5U5sYlBwom/pm\nFHMHdzPFghfEhsnIY8vJlpo9/ye/iBbjxYuGaMldTp2gHRBHsEsZXdqzlpu0\nHoeTrzwa4QUMlt0WNi8MbNXdyqhbWPPS6jR2Md/geXSsPicsoKnekbe4AaoJ\n8jf/wQUoYsnG+7VWpDTByLruPnDWA00NMaGtT55d7DmKYmnWMF5mIc4eU50N\nsZV3l0Hb9NAylCsOP21OSo/Y9VkXGnpmiNtSmAZBGpCKAu5Sg9yjtUashWrj\niWR+EoONxggu79ZKR8pS5Dy0oNqvRbGodxUUuRavN7HYMWqCD8IZW25xgFxY\nX9t2x2DyE//xk1ucZKoQ6xN8Yhq85AiW7G3q5yqwExw5oOdUl7kD4GNRu3ko\n+NUU\r\n=S1tQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfeDVysjkIFvcpyqtqFlA4Xg3lQRkL4l67OKEHiuODTgIgAZMGHF8YB/QR6ab5lKqgPXozNm6z9piP5mWo+dVsbng="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599004411039_1599004421421_0.2414077603503859"},"_hasShrinkwrap":false},"1.3.0-next.1599004570693":{"name":"playwright","version":"1.3.0-next.1599004570693","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599004570693","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-RBqpzhZQapr30j35D+ASc4rCzcJ9K/5hWpt2C1E6wjxzFWtY4Qw1gB1n+iTf793UqatkgMYWLhaPYrR9Y0x8dA==","shasum":"f7ab183a0925aebddaf67d40ce29e8745ac8c4b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599004570693.tgz","fileCount":159,"unpackedSize":2405560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTt+lCRA9TVsSAnZWagAAJE4QAJdGz6TaDEr0+DcNXR/n\ncGgnF9iZKbgzKfqC8Wp4N0GKNYIxAU8B2LTT6Afw0a1a7pWwcYLqY1+9EG/X\nYjbqWOdBzlI7GD46lUr4kAmpcvS61w2UwbMk3WDN6GzblpAI9EW3oK4sh28U\nhTAg2ji0ExXgakkctc4+ZQZoB7FTp5No5KZpF+DyHwMlx5Ai5POS/DDoF3Ys\n55zVyVbM1qvvlvuCxY1UGZcgc7S/uQTsxMrprRP2P7nNGH7exyWrv2N8/C5v\nOWzn56Tdw0buLciyvseKCJLYM/F+5Ju/VErKNv4aYw4+g6SBpzPXIvqh8s90\nXW7/8/gPZX1E37lUfGIaTpxjLeZ0XfymNOLPNyLjMlk6OzlcJ7S1E6dDwoxo\nWGfxF6W1+VLwHaJJVqByVZaizstlBbjL+W9ui7bp71tH43g+xnldxMNYzlHl\nWJjFcOwMK5Yjug82/fDv/hptBA8JOU2dl7RCSlTHrNw/VQWjGMoq8XS8i4gr\nYtSqUz2SZpC3YWGmIBkhXIi+JU0iHf1HAaf+KGfGXrGLZfUInpND5pKzPXyz\niiJ33umZwFzXwnXE7SEaXLKIn/gx3H+2AeixV4xPS91RdZ3DsWSxp/So1wcM\nJqtv4pxHpEOFpLlILV6J8zcLblP1BM1xqHWtg+rc/5ILqxdCfieBdKG0jwS8\niEhQ\r\n=/twM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5K5vZUcjm6W8fp/6F6an2btMiJb90obG1kAPD7xm2MAiEAs2R+eGLWbmn4VAjSe675MbveZN/nmCGZvkHzrLFeyUQ="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599004570693_1599004581362_0.7615576391855907"},"_hasShrinkwrap":false},"1.3.0-next.1599005088626":{"name":"playwright","version":"1.3.0-next.1599005088626","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599005088626","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ChtQmI5wgM/AlTf6QHH518taWMicZ4ssSFK/mQ1ay7N4pH4qkRW8TyPqjA4L1Uhg3awBLZCv/qub8TqREI1FHg==","shasum":"1bb0ac550704c1ded16a0da1bb4fe41f5467b079","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599005088626.tgz","fileCount":159,"unpackedSize":2405560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTuGqCRA9TVsSAnZWagAA/64P/RnsWfARhnxUuV/GKlnj\n4CzDvFJc3PScJECooeulwLETrpzzt7DLiQau5e985wYyO2BtUnDF1O+Ih8WH\nxbaM6SiEc/wN1jWC75H4kT8bicBU7C0oCtWVo5JTpVFRmYIcnK1bX4N/AjWM\nWpDuzF2vuITb2TUtbEp3/eZL8gueTNV9J8SxjMWNC5PUw7Jtwiaqsx6g8exF\ntsQlUgsU8FVrLElyS++Pr5eavyNKoM4f7LaiqMF55s3cDhkAiPUedryL33Lb\npKTInZx1bkfB12XerDy2Iuaz0lfXTSqfca/Wb7MtPzcG/0S5T//hFdX3OHeg\nuqetwD2WpIxQx7IB6Eq8cakCXrnygZE8tqA95H+SFT05yeGVEAjHgFAwPMWk\nKfR/hgysvdDXe3ao+7a1rdYeKW1HlP5Jzr4Ih+2R1FdPdJCiFef7nnCkSvax\nwg4MJOGaYhmhT2Af7pArzHeW3p3/5wYUqCd7AL/b2WDhdLn8fgelUl2d0mnd\nF2bS0Jg37yZYW/ujP26m9UWX4AK8iyBCm8zw1xiPI3tM157prmggRM+dvi+c\n+I6UjDSGdTyM8PMGUNW05eiuu34b5GMXIGquwosZ8tAjH6oohYhqLrWe+OIT\n3fOzQgtF4AtMLZmeZjXKU5jW12jwO1Cpu17BJhIXY3xdi21dFTS759J+s/MD\nKxM+\r\n=zk2s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4c71JQ4ZnMW6SBihNuSYY6SuZDfsoFIAj2VYOvRLJGAiEA69kOjAP3ZjHtZPuzLGBLKK09motStKUHquIzhSi1h7U="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599005088626_1599005097463_0.3774818168707148"},"_hasShrinkwrap":false},"1.3.0-next.1599005764409":{"name":"playwright","version":"1.3.0-next.1599005764409","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599005764409","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Jiy8bD/kSU0HFOqDmlPJA0kNq5qbHE6J7Q1pBD3RzqGZsFGmygYv74kIbPLor2zmn55jMvjI/Q69bvb2VJzo1w==","shasum":"419226e7e46f0f42bb0bb9de1406bb39d2e269da","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599005764409.tgz","fileCount":159,"unpackedSize":2405560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTuRPCRA9TVsSAnZWagAAtyUP/0mb+7Y1c/WOwEAdi/ik\nVnkuBrOSe376UpAiP44oZNjaEGr3cR6qevdyU8vif/ze2Fr9GM1ozql2vUmg\nm+UKRhu6AbGUHQA7e4lecw3Nupwmqw4KIw6wsoXowydv27OreV4MIJH2BkKX\n05d1xjQE5y0BrUY4fKxzodbgyeeUoPaRkJE68FhCQZvCMdFcVUoCHeXtdO7J\npjChPjSwbNvTT3aPojqgU2tJ+jOVDE+MCtQ7CeCm3cjQuOObD4KcvScoBte1\nYAhj4F/b2CWMcgR16iX63O8qVfwEmNF+7XRqUPhM073feRKLjKNE84Hbvdsq\nplNWoUv95GrEEst45MoIajDgOWsoXwvRFnWfen5w3zXkLYM/YrS/Xi5fKGLU\nhEpIt4RwEz4oL8L0nTfLjzJ4lkUrmjBXzyyCF//PCggmOGT61ozRjnMQUKi+\nFbm+x2t5E990kr+EDdo18d2F3Hfl7BMEUKpevQUxc/Br88W0CqcNztEujrME\nmx/ED2ZsJABzPwTCNr1rdvB5/st99HbX1RLALTGin1nEhXnPp9vIyeYtevl0\nowjhvdjEAJP2hFrEBg8cdCjk0VWuijLfs99z3PYQ6h1nQu5BPeLq6kW6xBXD\nhDOmtzk7gbqx2ksbhHQzfa7407qkuJyiJk/k4s89qzy8tTMRs6RqfFEDwa+Y\nF50T\r\n=pU0N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeOW+nPP3idS3a5bSRgdVjOk31Zv4cSjVdcmfYudaESAiAR36Rxbz0Ut66VIRCgWCVDVLIYNQ5RcIZ+u1XslKXZeQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599005764409_1599005774832_0.7986538395111955"},"_hasShrinkwrap":false},"1.3.0-next.1599007533360":{"name":"playwright","version":"1.3.0-next.1599007533360","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599007533360","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nl+gozVGIinDyEKcqhGqwsV31iuHyDIIcv1crcRi071EmLgq5vKtf2Bh0EWpqeUKdNMo/zxA8vSnYEd0jijqog==","shasum":"ec042002c2ce337a588b2e3cde9f7c3b32e00719","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599007533360.tgz","fileCount":159,"unpackedSize":2405560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTus6CRA9TVsSAnZWagAABQgP/1TTb2YgdKz6sr7owkpk\nzi+GfF22iKKyTiG8e42Acg48ay55mncGd0AzvjMG5k1QRA2AkyYejAQr3tB6\nyI1H0p2NnDoSJ1FMOeNq4FZbw3odeBYEiRULOVGgDNCE1YZeRl1EmEBetBfY\noorN+mvNHTRvVGU/vCFVVVbw8V3Mh7hjQ1MMjQXyExOkI30Ek7I5n39SlRyE\ned0zlIqZIt9Fpp3dD2rg97CXjUfsXP63Tx/Og1YIJZGxdl9O1kKGCqeG5BwC\nls1WVC8WP6EoWLf6xW69SJbdX3lmhpe0Y3+QR3S61bAQahTfsSMFXPqDI/BY\n+ZsqJiUh1h0UXq3NL1G1FVGa8T5wr9h0yCuwIhsaNrW841IMHEHi3rCLza1o\nHEUI+y5BfKxQdUh0JmAdZw63dSzULqmafHdgGL0mtiJthb8glE5gZROENqpI\nBnuv+9ipAdt0YfpjLm23ap+V7OR6ioSbkSeBUZqYburOgJ4IcP07pKjU29ax\n0MYVXyxHrh7G8cgduM66LWYn+4Uq0+BwPAlDvtC82qSSaK8qPEYtu+g1tbpz\nZtptte6ng54k7QRU/ncvMJmP2BGcjNRWM1OrrP6WkzlbM4s9JcJJxmfc9jtH\nfzyaAqIpTvjum/BXTn1lnToh7rym3060LDFdeOZiLq7yTKX7pg38zJBSAV1K\nfN1S\r\n=9Vu3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtrRxFlsFHjxuIhWJNNTiZdaE+CaMjweBysDkBY8MTpAIgd6p0EYfVf1tAD83GgFlRVc/j66KtEFSlXgQeziu07zE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599007533360_1599007546064_0.01629290903587255"},"_hasShrinkwrap":false},"1.3.0-next.1599016545188":{"name":"playwright","version":"1.3.0-next.1599016545188","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599016545188","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vKNxrX8QrjTeVfxqNH6qO5kTKv9qQFucizxB2XcPL1VR+DYO/ZUZ679Pl0wktLAuVxudYPTZQ+eDJMl9yRqn/A==","shasum":"fa9bfb8c22fdcba8bae4e3da4f6857576ba48f14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599016545188.tgz","fileCount":159,"unpackedSize":2405560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTw5uCRA9TVsSAnZWagAAk38P/346EuBFVLW8T77iN1OX\nSNjzO7/7VSlf/6giCCK3RByn3u6+tJfURhYYyZHvubgbfKGf81nVBXQxH/KF\ncX0Gko/C94/oQ8JJgX9h/3loM2J5PV8xLzB0fLnLBgk7nC3l0za2h+EJOJda\nbG+Q++v6WZeB7sHcEfMHhbz0/wgy+X+GQGJpWVEEdfeTQ+fgI/0v9cuBqCve\n4KYC3SZ7uyu4ig/+uNOzRSnOc8Pq+BFOcENr8YuNBgIM/6Ld6u1xovChyh+f\nMKYqs1Z45Trc+M86lKsr4AM/iBlkPHXmcqFN4MfVczrQ/u3vCFizSsxPMtpo\nVuITtOboXopKGbekHJjbXEa+SgF2NMXl66Zd4pp2Nz+oVg/LfyBieC3n4h58\n6fXkMMPV6Dynoqm/UcF9rHOPa2yzYEcoA9ulrFaDNPQQdWy9FnkIjldgJaCx\n0edThZh7ElgE1qvEgZa8OY2ED6JPBCmAgVm8N/6msXhjlWopT4nqwdjqbH44\nxeGx26WHCfZGRK01bd1ar1LHHSvCyE4M7PTll0OE5L8um94a1fFAcpConKsY\n+t4P7PyB4QUwaELkCgn9av4B0Ao02WpdgCNnuOX5tpl7EgT9qacO9lLZEoZB\nxzdnjaO/3u3tl3ek9FvV4K1CMH1mUTKjQR4dr54SedYR/mWj2kkKOij/dmze\nHus8\r\n=DRWd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClD/Aw1NLOLSQXSKK3qGTIuOAK5HOqRAC0r8+sCh/jQgIgDgR9tlyZTzMtoQ4HpbsmxUiSuNqbOMqn5WeGzfZ2kMY="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599016545188_1599016557734_0.4370708963402967"},"_hasShrinkwrap":false},"1.3.0-next.1599061793983":{"name":"playwright","version":"1.3.0-next.1599061793983","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599061793983","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-T/JN8yX29aEfZXLxUWhBCQprkaCbqS5Q9+3rKibWAUWEwGhF1TnptzV2x3vJwzGirL29N2HQdI7L2C9xOcfsKQ==","shasum":"1081210385e7fa6f7494e223eb0d518a8b5460bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599061793983.tgz","fileCount":159,"unpackedSize":2406105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT78qCRA9TVsSAnZWagAAxOAP/3rbSXEPNPGp9o1DhpIY\nRbQhnyhnMVhagJTsKdNdXEy5yu1ivI0Dy3CrLJe0GXK+4F2RolTWbg3h22tR\nhQDO6Eid0T9h3evpYQO0mA9+li4uxVXeMYWN3XNZJ5Z9YnTyL7LKdnqa+nkk\n3ZTwpmpM6RxW2Dhy+bgQKQ5fLpFLv93j8agEXEHW+/Hv8m5xPyGQAE6vFbch\n6D+kpX1//AKurFnis1TyISukF13ZA8+Xk5GA+gs4Ezvralek0riFLkghoE5V\nIc4lbKp41hFfgJYAd//LeDgBTBO28vc+Ej+r1kpN3Bl1BTFQGISeFQP0TO0C\nQiX68LvvRzznYPNL3LWZlobjLPJZS4mpgH9WMJKNYp4ew9xlRDQ5eZgebcFs\nghwwho3Ud69+fekr7FoRUGd1YaslRoATaPay7yVun32cA4N4/LQqSAg5qYEx\nNbvVtTcij0ec7J3eHtsOp+xIWlfTQvLqsWe5yN3nRBrhpaHZEpaH/crcPpb8\nBQhp0Dm0b3lHEKYTAWvwR0u6qq8DU6Lf+lvF1tOhkbBJO66FUlhoyLhCs1Bx\n2UY+QPUsrB56c8TVhxawQFhwqzoyCjL0Gn3hr1MRnoVUVvIyVf9m0aKqAcZU\noMxRolra/UNMOIjBphVF5DFAyQdOsVJD60TNVT0F24jyFWounpQkfSNOtB8R\nwSB8\r\n=f0FL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4bJZUrc4yLsi1tmd0w3vJRLb7c3pWFltAcOtmv+mHIAiEAqfcA6h6jl5qJt71hPVi9OyGRwzny8k+KMchtfEt0bmE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599061793983_1599061801988_0.9927380980373104"},"_hasShrinkwrap":false},"1.3.0-next.1599067371432":{"name":"playwright","version":"1.3.0-next.1599067371432","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599067371432","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-mb0xTHyCBGDyXdPrgrEwy2GOeRSulISOkvvTDACQ8rjdo5cJ6ltcpRl8ozCrHTTKxoxee7bcW7l2932eHFun6g==","shasum":"a3f3d8f4778cd7b8c9f7b14e6541ee35fb0f1c58","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599067371432.tgz","fileCount":159,"unpackedSize":2406200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT9T3CRA9TVsSAnZWagAABQcQAKKxR5LWj4DevkAQnL6+\niMGjPcSqwI9vc89e1FtBxCc0WkRtp9os3PnLAn6CVBKIPIZKt/5IsTBGTOiU\noSo0qmHJV0rM2mh/CqQgiQWPHl+OEFhh3XRbwf0pdxi9qosSu6lvsx7o4p0Q\nz2cruAfQd8wIcqwls07qmWtwkcJlv9VIsIT3iUb008YoL2g53k5Zg+lo/Ihb\n6hbmY7nvVI1U+aFz3T9rA51dBHsq/94KyL70fpxL7QeADdTjzgZ3Cs2RnmTt\nTubbdxHKrLCC8r6R0AE+MGxZ/rwaGC4odE1d4Q44OCcFwQ3YryC2pg9dIdKm\nmminVhQTJypWbUhN57JCFf9WFbv0GO5ChbOCJK1/CkiklLR3kT8jME7Ns2Tz\nkNr5FOltzGv7YuVG9AuK5JB2OdCSZC5U3JtRFJ23qXsQH+kRyyHOqtMu0rrk\n+5d5GnjLF/fNe69jREvmjrxQeXc6/TNWa1J+jp9AYPH4u/NCPSy1HmYF38OC\nlnPVmcVHziCc2L1DMR+dZKM2wTOsU16DOwt66XQBYmK+gwneN4lsMSJxWouv\nLYTfY8FxrHCBx0EYMISqhQfMoKGEMoOtgO3/vB6cXFprUbbQ2EEHCPrf+FRF\nqrSiTbv1yrq/YexV1wDMg0nSfnMf4AGhY8CHpE0BBt06iIRxw1zoPMI91nWS\nL/kz\r\n=NEwU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCugv7caOfR3GkoH8mMF/yUQPtjPr9zFf+vXgByToYssgIgWdxDd8uGzLlPeVW/2Ls8gj1geoZ/WkNvAgvXUGfBr/U="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599067371432_1599067383030_0.9192934189083386"},"_hasShrinkwrap":false},"1.3.0-next.1599068161515":{"name":"playwright","version":"1.3.0-next.1599068161515","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599068161515","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fhV/w9CtUZ0F/yeDj9/fb249gI4pKenWiy/ZjDyCJ5snqeLMHcToXL3GW2vVW3OjGWsIrpaXvzjajnZttWXNHw==","shasum":"793e4aa66de64ad0e86cc9e0fe8e4655db4872b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599068161515.tgz","fileCount":159,"unpackedSize":2406200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT9gMCRA9TVsSAnZWagAABz4QAJ1JslJwbPeNQGj75/T7\nXCEWZFDrfueHGqwtHFpawmCbsBu2dTqsr0/99ipfRMlBh9BtkIkcGt0bmhuG\nEuDd+1xm1CCNaYnKw0izpKuz87U46kHeFz08ag5vs7AECAb3atPAF00cBCc1\nTZ/Lo4BDphFp2XenjR+4Jimmy0BY7MlV/FhxswAj4yV7Mb5PKSJYmHA/nGmG\nptAHkYWCgg7EBy9Gg4OxzifvnLlGWjkcOzZ/qqqoDHH9/fXrkJHJ6xBg4QaU\nKKmdBOsegY51YoThy4XiQsNkHsxJUziPZj3vUWeVq53SBo2LxSCdiMJTjTbx\nllwVG1HqeRYin1jTs/9iwHg6uqq71/ii4uWSECuJPOF6hnwgueLmWv0gqU5S\nzeFnwUKA2y6foiuArmxCJXbTRA8ajYye0eRESCHrxnzt+lnd+d9dhhwXc+2w\nZo4D7bYk9jeNlnaUPeUWmaQbDD2E7cGSeb+dUN9FtDM16UzdIKJ2lcBtO9fi\niA+fHhSrNGhiS0f+MeiH9zoO6Z30giCaYCq7gfmJDCGHX/JOJHmDk70QM1WU\nS+c1FhQIB1GqdOi+7WY0zDKXSRFrQuhaArFtNdRcSuqalbncFxfY4+OhjeSK\nfY0g8Ltczxa88y+iBQDwl9OpYQJ5Kks96m4XNF+gAR7umkoxMDdiGPwXMCjt\nHfbB\r\n=g4sh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDc39davfSlzglgF3OHyaMU2apFKCtYSpxX9Fmw3ZgB8wIhAJeV1Ti/vR/M4alDAjZm8tHrCnil7VMlMnj2tG/frNpt"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599068161515_1599068172177_0.4459153431152434"},"_hasShrinkwrap":false},"1.3.0-next.1599068572884":{"name":"playwright","version":"1.3.0-next.1599068572884","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599068572884","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YmfX2ZHZoJZ9K0nS/Gb6XAN2zj2rvRPPvFjxPPHRJEhLDdJTifLYYzGCKGUoPE/ZvXzH3MIo+CIVtVNlaK/tBA==","shasum":"e6f38f4c352f7ca4af173f661df35533a9a6d675","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599068572884.tgz","fileCount":159,"unpackedSize":2406128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT9moCRA9TVsSAnZWagAATtUQAIOehW3Ta58UkTXVcVdE\nD48+lE4Xoi11n5NYKRCZJnbPHcpUnZYviW1KrDhUry/I6eLi3QEXay2XCTz5\n/uO77B7IamvnBDnc9CAN7Iy5+DUONToVMd22tKtCqIN8c7V3Se1EmKMbgRp4\nRTYuFyzbvS9KE6aLBBy5RPsNar3H91BOHPmBA7YbZKhlPp87zL5cV1ms0fzK\n33O31CR0yL/6WlTJDaQ0/fpI7CeCCJspa6+OYh7sPOO6go39jdgBSjTQ7ZQE\nVoJta0XxP8NeMvA+JF8oaYzoWYJA7yc34F8MJy1s6utnkXgmEQCM2J4z/Dyd\nPi4AJKkT9it6wryn63fRZBlIue3QapsVt5PO9mQSumsokCnqC20braER62jC\nA7NuMlPVq0KiS6ltvqk7+oNIzBdH4aedw2T4Qzq7Jj0GKgyOsTS1wMIOHyVD\nVvhatDAeNyLwngN0r35czjJALT27TZaF0VoNIdPOPgLKZDXHFvMr/PP/+V9C\n+Kwdsodaal2duVQATucdPZZDmbvXJ25x6DqbLAcopAnILWt/ahndGNGB+ZMT\n9Vg0GvV5r/XW0KThtTwp5mKyJlXTiCy0eSGAAz+UZnM933H12iQjWZ0fcV2b\nWgWdkbkkw++y2WHlRPOQ4VVn98C0Y+7uUFKtNrv+zrqI1JeRlmJ8d9cuMgK9\nH84a\r\n=znmt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1N5WyuwpWFlXITvdu9nwPRYGKvevYamkIrvxFs69UHgIhAOvETh36dhFf4eZuekHcrJ98kRTh21CnwK49Yx4+Oygj"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599068572884_1599068583303_0.6887985445383855"},"_hasShrinkwrap":false},"1.3.0-next.1599071704161":{"name":"playwright","version":"1.3.0-next.1599071704161","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599071704161","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/Lq57a0mPKeTjOGhvqmX3G6supc41Xp9cNztkUSQGS/MRlB6G6T2Tg1/5/obJDzgl3o9yEf2gzHwPIxpBql63w==","shasum":"4696a7564d3a0b3dcb9cb03feb9c8f5f1d282829","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599071704161.tgz","fileCount":159,"unpackedSize":2406128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT+XiCRA9TVsSAnZWagAAy+4P/07ok/UHYmt5gaEfqHWJ\nZmiS5Qg/iTlOArxYX3uTdB2/aH9ZWGlwfZKQKdA2qTraFvNy2CrmkKZK5O+J\nKct4T1mbZ9AUT4Vo+Q24nuuEfIPVouPKjoE3gUpyC7y2tWSanPUfUWh9UyeW\nCDGz4yYzdtdguHp37gz7uYDTngZajrO/QvIHt8we3WA+08uWE6wyTofcWzha\nw6NF8BRwgxdkZswXfbCujCGxReLCvs0x2O0HHf1b2lX10f7ODhL6k6aZLuTD\ngTJEhDVec7dCtEcsFeorkbEPHAmeXvgBGWArvHsOuiuNpCHv3P3AF3w3bV37\nebvoDbgCpuw+Y+jFR3QpvpCX2Oy1SPsvuwO0vxWpZdMvlxPv3OHoeX4i4UT6\nDrN+G2JQd42/LsYbYxAMCYDCP9HULFfX82o+P9J9KNgWaUx7omkzri6ZmdZN\n4lRxkeTwCBx1CZG7nAypti9Zmg9aCCYTuPYh8mrNhvdfhLABJPZ74SdtVzg+\nYK8ZN1EuZVVzZvgubxWQ8y4VQ+sjB6w1VAAsS662qfS4gnC4Ita0CUYqOeRF\ndOYUwnlcO0F8nLBa1K7MHZ4nDm1lda4d7+UXWzXIEa+pA2vvMhlObr48oijT\nHcAOSSNLFvfzJsBgqXIR06xHVPxEaaD06RmvSFQF+P7a3GwZHToryP4dNh4i\nhJTM\r\n=z2WN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoe9PL42vhs/WMtAi7Tz9rIWP5V30ywXehotMZXrspxgIgElMracMbeJuiOGjD9oFWJmoqKMaCP6kzvx087iJFJ4w="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599071704161_1599071714253_0.1284530403922537"},"_hasShrinkwrap":false},"1.3.0-next.1599072514419":{"name":"playwright","version":"1.3.0-next.1599072514419","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599072514419","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-+xtgdskekAF5dJuJrg3lQXpeSEOGwMbgOU61kuZ2GlTFO7beapy7n9juOzlxKy6ZsDz1IhLk2RMk1HxWwOnBTA==","shasum":"2880a9f335bf38f4b75685e48621d6489bffd4b3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599072514419.tgz","fileCount":159,"unpackedSize":2406128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT+kOCRA9TVsSAnZWagAAz34P/0OguyXIXjnUDErNyOhW\nvU2Z/l1gtVrwp2v+FW+wa/tutj+TraXtJs03D/i0k9gTAvpphl630SKIJ/xS\nc60KaTeQxgy8Vi5YSfP+T33SXS99yKfYWI8BBYTKKRukufXTHa4zKDM2Qs8Y\nDFtxG3XGaNUIAMLqJU6+bGbeJ+BfRQ+pNPm1k/htoaJswcwfpVrJYzTjO402\nNk057a93pqbHiQzTyyuDuhhYEX4FhkJtwL3HIUWHIxYYZTwUs1TLn1qE/UPA\nzuAXNKipnGLwIHG7K5wSGSAUEAd8YblGa6nV1MAzSdAxRkbWBwUbUWQnH+er\nDKCVU5T1ES+j0VbodnjZDTou24EX1cfzzxtqy4kgiRNUS/CEi6ZYXzfdtwJo\nC21wXiZ77Zt1AmPydbo4Cc4MqhypC/W36xdrO2DWE1L2S9P92Awdyjca+58O\n4XFahlBS0GCceo+aztu0vwg+hFMCLuvG8sSok5qtR33+q7iIeUIqIKyoufPm\nsvYJ0b2pJtfVsn/izU9J9IhW1fc1F39C5/SSAAz819ZyqcRPZ1A5SP48KNBe\nLRyMbaI8uW535qyuaUEG3lglIO1KRXqSIqcniOkTfdkUy9kNfyJljdB/TeJd\nn1nM38pf2pO5KXwTLY1UuMCCdUzr5UsFt5nF/85/bXSDOgIuKbBiZaqJHeGG\nvdVW\r\n=TAzj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZPkB3a7zJUWjgFFGINfIkb2Al9tJThljmz3pRzAI/TwIhALdYPZlD0IFCTAOXgXbXupnPpOULJbR4bgtSpoEuGbwK"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599072514419_1599072526420_0.0635099325566264"},"_hasShrinkwrap":false},"1.3.0-next.1599076737027":{"name":"playwright","version":"1.3.0-next.1599076737027","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599076737027","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kGUvru9oSfcLrOT+IyhDuIY4zNEVjbPSVdsKgASpc0AHfOZM1LjtQIETX+8Hmk3f+l6XQoIvsaFaSDXs4gP9qQ==","shasum":"afe3286301405203fc04c7a18e99f4501bc05f3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599076737027.tgz","fileCount":159,"unpackedSize":2406465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfT/mNCRA9TVsSAnZWagAAW8wP+QHPTgiHUdtN6a4f9cs4\npR/HxVaVM4ymlueU4SNMss7VyQYwXIr888Hh6MbbEeJrPHLzo/GEtnLuO4VI\nei3NPpIBTOd/UmA6CLV8EsQGoOIfgoMtMmK4HwqQgaHChcosXAo6XaXud55G\nyYovewuMtTDHNQl3jQpNzJS5CI3fSazq08WiBWsRJcEI6t/BSEzea3UIlI5F\nFRY10u9EWlGto/nkHovivN+m22SwoiATbWyJ5+LAaWqJD8NRD3ryrc/vXd1D\nx+S+uA5vCDNHDaFlZAYdgFcgTq2Lj+AZuRc0YsZiONSIU9/L5PhRjqwyqiXq\nFkfWmTcPtNP4Jg4DLV7FCYAOXNBAcsWm41BqyCWK1Vr6VvVFLr+UE2Ewr1oQ\nJ40fs0rh3gQgWi9ciU6HHXpg6YUSTpnUgX4Z4o6sKlHF6oxGLui41PeHgWuP\nPnZYM0n9VjCMWU200SNXZOSCLkwE+sdgR8ToHu8MDd4gRxwAdWqER6p1Rik4\na2frWF+9Dd8rn09D7R6dzXuuS4+JOedEi+rWsID+GnteH7ykwDP0E/Q3qLGL\naZJg2ju/sZo7exSSPAQiagaOQS7kXwDITSHoLqaMa0uoG89+aDkPC88G8hxP\n5BeYoekZr3big/w34n0+U+t3tpcC/8cjgKmWnmAUwQRqJ4iyY4FvUtsnw2Eq\nEybZ\r\n=lIeD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuO+eZAiLUslvBkhhWGt8oNzerxn0fZYvgaATOM5NxZAIhAP9ywLemvFdVpJD6wbBDQqIn93IYmm+C0LFf9q/wdutN"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599076737027_1599076749223_0.8993191379008125"},"_hasShrinkwrap":false},"1.3.0-next.1599082198991":{"name":"playwright","version":"1.3.0-next.1599082198991","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599082198991","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0AeX1JkA0Zm3JR05LXbqz2VjZBrqnXJ3ZtnxxWv9jYA7o1Xmndi4qzlDZ21cc4woOyQxggbZ0Zr1FumCI9Nk1w==","shasum":"adfb2c3a2abe11870602caff1f984813e0921539","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599082198991.tgz","fileCount":159,"unpackedSize":2406465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUA7lCRA9TVsSAnZWagAA8YsP/izkAUGR3IvgjPHsF4FZ\nTL1ParsnybvsDpe39gvXCet20X1BGyDrmLkmzoBpiF1kj6/7q1No4/8lMw72\n2A65qIs6JhtDlBhzY9bo7O2d5LvxgYsJ00XibBu4w1Xabs2eXC6ycYQYjPjm\n7t/k7fsUrS61XyKpXVWA5Ix9f6wqMNiAOpmFBoIBBN+epjenenlrOP3I2yVb\nBOJFZFkYwD1py5sUnavEdS5QjhX4pwUBGA5QD6FUI5n8d8X7HXpe7YXL/KT6\ntMONpRwh7BDbVKd8/Pdt+VmVb0ctGuzcuAuqGoaaIPA2nSQlGqkEDJiLjWef\nbKeS2/AxpoA1Lq3bQuKm8XWhNLsoAnHfdBHb5TeNaz6VQ6DyH5AAS2UZxouU\nZk79ng1WxyoIRP2RCghNlfI6Jjy/dhLFcdtV7QkmEzOmSAnXvVCRozA7in6q\nQzrfThoAPzmiP0SgFOMmQRT+Zest5mbo/fG29sLJavDBfdPsQcD63voUlMIY\nf+qKcYp2+AV3rFJyvIMom2fPs9lMmFFpyZHmPUJF5weZblRDXAM4qP3U6d6+\nI1odjALtqo36DSCzuq3+a7kMtQ/dKqUPVanUkrAnl7OKVymTZpJVg/i3wPDu\ndVsrCVGVBzPdCTtV/MHXnC5xyfqhHWEg0aPd67OLipLPMEbepEmchGH258j/\nMWid\r\n=4xfr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUZkVzXLX+dgoYmNDuuZQnSQXrJ767LfZKk+qwbZlsTAiAFDHsIbpjx/QIq2yD9O7Dn68ErSg3abPW19icYxAEmow=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599082198991_1599082212783_0.07079565615324612"},"_hasShrinkwrap":false},"1.3.0-next.1599083028713":{"name":"playwright","version":"1.3.0-next.1599083028713","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599083028713","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-exUkMGvSwj8hAa1w6ett+BGT0pT+zSGGbz4lvMg8K6ilO0p2nhCs0+bD3/48qUrMoW8EgPRaDX/mDht83vCSVw==","shasum":"f0abadbcffffbbae9e3ccfa5e9b6bc7a69ed7cfc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599083028713.tgz","fileCount":159,"unpackedSize":2406465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUBIcCRA9TVsSAnZWagAAHVMP/1G4CqT8zV4pI+7WxaQm\n2sy4IC7U6sdFqBi7ByCsbmMRCsPNz3KVqPIITS9Tzd0MTiRLq7Vg9aZgsJ0e\n8aE4CGhtDYZbE5UThJWrf/8QtaeA1/iQw/Pl3xtBVvF8Og2wenUlViE8oNSz\nUbkccBr09LgmxU52DPr/AZKuk8dgrHheOz3A8V705X6iMFxafY2TZZavZhCu\nxNPDh+5yBLpXF7THK9HHm6al41jpIPJFlGYCAJ4NNZyI3vcHPla8kbk3oHy5\nj2vmLHTKoDPMAOSNPjo5KKtG0QYAxVm92gu2J1K29Aa5Qh9qyiesIPoFmJDP\nl9Fuep8l4gtWoyO2GCYWzGEbl0BVhsWBRDQiHwPLlDx2yT7nHDigPbiNmGvZ\nwhFkFU6snzZKOCc2taKI+kQ8LVhG054aa+1ok+2yPzXj29TPAYwE5Pvglnof\nDou3rRbLmaViT2nRhTjuCxa0cHCEjxYNQ/2D3TCl4LzEzp+Q8QTAOjxdmV5Z\nEl3HrJoQn9YujJ8owYNXP0FTrlJY7d+4Mehg8XyOoqqvAbiyQ1mUxF8W5Sur\nuezGc2RD/rlNWZ6mM7K9ga46DsBZW8V9RJqr9N8pDbZBht7N40OTiUzhDKCB\ndLC58Qwce9yRTGEHYtJLrrBvRy4lEUpvkY0JdCS5MAg1kQez6jPd1IA3X/Rb\nS38P\r\n=sUvP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHh4IXl5CuiHcMOofWKVBKDEFALRf2YtNl3QybqKcFMgIhAIgEV+8fTbOlfwZQOigvGARQeKZYYZkCx7M8q02HN07h"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599083028713_1599083036430_0.7437351278718356"},"_hasShrinkwrap":false},"1.3.0-next.1599085535285":{"name":"playwright","version":"1.3.0-next.1599085535285","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599085535285","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-a82TM4vpgLlJp2+OEx0Cm13tu7kjJJ7isSnavlfdDK7vqbKzTjz/HmQ+KlYfjAAHYUjJNeSs4TD8ARJKCU+eKQ==","shasum":"ff75c2d0dbba693dca0adbc3c7572f0366b1a232","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599085535285.tgz","fileCount":159,"unpackedSize":2406465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUBvnCRA9TVsSAnZWagAAe1wQAKGVIzx0k1XjdjtIjL3S\nlHujezD8BpgRCO2ZTJDWM80M67YvhmbHbj9G7uU2Op43qiEd+1D4aGIvDU7w\n8LoETRlHirbLPIjLJUYK+c8mFv6xe+EW9MB7Oozn8ORr3CZTlmCqVuDwsLCl\nMAD6LN4MfcTIJ9wwl+liz2oy1Q9L7KSgMf/B7xCzigbMgsw+CMqZHpiJu0AF\nKZxf9Idl6pqVul6PY+pZpLA2YDHy2bluJDrZ3OHMdUnyq/7AVeUiuQH81hOc\nSd6Fc7IGijPS6Y/RiKHIyETGGbUISeDHcRToK9iVWTuS/gtB5eRDdn8QK7Yo\n0+sf7PNjTPJO9Nn29MMFZN/fAajnPxWvJwb+ukpwHvLO8Vyhq1MkGeijVarm\nuxOhRVhZ1gBr75p/TapOgDDln81+NXudqvFNTgdt2qBal3OUVnjQJZiS4Kan\n2Gn50qWAdHYzTrarkO6XMt9INJavASADAF1nJF/JRusZHy14UAtJuL4RAC8q\nxLKitbTHt2zjbXTXa73V/7nFNdZON1Rn3Pl6ye6tLaUA2nXvNxwzZtIe46S9\nONYxUzNr+3fT8/mg5aTTEcDWRK9pYN27smoQyGZ5Il2ISrDKwPltcT0k0bKN\nSh6+vrzajE8GaThCPPxgJro5c9RQ5RkLdbm8SNSib2ViSavlwqjPJ8vFYZil\nilco\r\n=o05c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxXIihP+qprrGYzBT+tLhFbIcaYoHj0AS2rri365bc3wIgDiTh6RS9afosqsVU7ljQ6ygf5CCNd4d+TMtnBFU8eco="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599085535285_1599085542789_0.0981656864631062"},"_hasShrinkwrap":false},"1.3.0-next.1599087752803":{"name":"playwright","version":"1.3.0-next.1599087752803","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599087752803","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cIw+e0nGGrIGazZO9AgMOeTIgDgNFbQeGxGZo/XNbqFirJIQ7mxDIA3NYtO0xEx0J3ceBiw2oujuSQ+yetyqFA==","shasum":"98b9eba63017bed468ce73370e823344f527bb3e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599087752803.tgz","fileCount":159,"unpackedSize":2406465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUCSUCRA9TVsSAnZWagAA7zYQAJIV9KkpeorO6WufQHYB\nrSqfklznH1UJVMMY5AkmRohgKzln3XscgbiOnMf1JhFgx516zwocdtbqemVm\nyqeAZuvhNQR2fbA3ROHrGR61bXLZFOuthG3X9tbs5N2hy+5yLfQd7sp27PwS\n208sp1Cgqf2PZ2QYxACup7BMhdHt11jXHC0K1aywp58kZtEmlIyjd62JgKtp\nrC8o5L/Sz8W7B8HV9MmjV4DKNTIHskT2VDrtExSVVnWfXluganoSERDGy+Y7\nRrWOaSTJrN1f5//Uy4Lg24ZmlDrwunnphbNjjBHVqdG6ZBta/zTrzG36Dlf8\nCcraNJPKp0yJ4RtJkBoavJar7UY33fCC0WwB2gumt0ZgZRUURDIXrIr/8c+j\nimkIgX4doABeMFLXm9iQcjNnwQ8cRrK0oXu5gVmh5Zk6EFFn9hfPQUBkSpvk\nKx0a7mOtAj0eX/5nbwmt61nBs9EudV8rxV6BoqsSBGUW/TlUFasnIHifLk+q\nEzmtRwzjjjAJXsn/DMU66gYwrTCVd2TpCShTiWH63RoGJN8zz4ziXRJp3l04\nrz0jzLJRIFVW8F2w/AhmBs5kITUOOx8pGA2MLicW1piV1jPaYpYbfxMJfffc\nOS+W93hUPAkRZvfmmWcTEzxcMTFlyP2+aS/wqvL48MjZq0mJfho34naue0wU\nVeKU\r\n=kCae\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEOOwbNNMXNVJQBByD7PokBZLuuUyckW55Di6gSjtg6EAiAdeaZgFR/qx1ZE34nog7T3p5iS3Yffz7DXHILBQUPPqQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599087752803_1599087763814_0.1458508493337034"},"_hasShrinkwrap":false},"1.3.0-next.1599088659100":{"name":"playwright","version":"1.3.0-next.1599088659100","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599088659100","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VCnIQ0eLQ7U6MjOKqs3lZF7JHn7HqlJGs0+eXMzhY+iMimHjsUVIFRqm08rMhZcFBAOUWIAIt8TtFnndl4q1PA==","shasum":"480fa8f555f600896a748cc29e8a255640589899","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599088659100.tgz","fileCount":159,"unpackedSize":2408777,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUCgaCRA9TVsSAnZWagAAcJAP/0bKpeGJVwPRiKTWWMOZ\nn1iXY+eetwx64OVTZOfbDCJNmh1T7bi9okehP7CjlMZ3oXAQ++/lHwHDibli\n8HXHuF5zHgwtMMbTWAWQAJgBwSvI03Nq++RGu7SS1T3ZsPyok7FmvejH3E4Z\nup5Q+Y6R56Ovz++HY9L9XbbUVNT7f7tpdg1wpAxIj4Bt6y4b+UBbfDps8IbF\n1bDL2a6ZwvLbwXu+4TgQ6ojnmTclM7fexsdtuqU6Z3IeBHBCtMeXRHZNjaRy\nKH2yhcHGnssPBPKxFyU+2765b0Q1S0jy3hvy8XQo390eEkLzUH5PbpRsxIj4\nSMofHxNjq0Culy5mmNcnDGvUjyL9Pe6PPVxO9bLNwqGPj4mJhFRHz0EkPHZ8\nctfDu5rEdCbzfhW4T6FVK+R5g8wccqGn/4dmUiDMbXgRSchukCSzG82vLLRd\nF9b+CCwcTDzDVHO7M/9DB4FP0jnIS2/Smn8FZMyVD4D0cd/7IoTjzSoBwBUZ\neEWUi5Vgd2oB+6xp+mQ/QwCQyZ6Swj165J1mYVblNGImu5tnKvzZOBvT+tGO\nTD7m8v7hUqBEUPb/BMD2QjP0AhDYrVMEWkHfdfllSVQt+nDQZtEuVA9nsmpa\nNCe4J+tM5/Ao73P1vgJ0i4WuXOH6qBD34Np9AM5N2BFqhm08DhSCEeVOo4tT\n9x5i\r\n=TVZI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZ6hlwfCrb+wG6a4sPgLRZwGghpFEbSCcPgPbLHEyK2AiAX2q6Vjt/h7TP3LwADA8vwCX9PCH7n4FGmSF2tug36aw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599088659100_1599088666287_0.34480024698666"},"_hasShrinkwrap":false},"1.3.0-next.1599093010527":{"name":"playwright","version":"1.3.0-next.1599093010527","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599093010527","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-n04AZlccdTJxVSCFxpe0fNrmuA7sAgTOqX6JyXK5dz3Az27cTSX73tlBKmI081THLQMzERTaNutYSNN8i6WGVg==","shasum":"ba750e04a2beea56ab3e7d95f490d7a4854bd9b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599093010527.tgz","fileCount":159,"unpackedSize":2408959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUDkeCRA9TVsSAnZWagAAVR0QAKHaSiAEC+BAMUCNr77g\nwdND3WYd4Qm20e8B4QCND+tQzdoMOp2SJ+t+Lg8rH/JctikmTubQyMob32PM\n3XTc9CG63JAD2czcAXUxLzaaqSQ3Jl6lwG/vmqNE74TodE0h6uG9bwp7vV7V\nGdq61f/Yfrx1RojpIKIZbQBOdYrGAxLXqgcp4pJo8zGjVy2RDMBOwRNeEeNm\nOEhDfkpdspY2R6VzqMYOU1lSKCI5/VsMAi+1Z2kMCM9DVhv5wOhXnbh4YoLG\nSzhzz9/dx9uCXQKpgkwnA4gKhlXID0FjaJBFY5XeL5iYXp3tvAAUFyRF+CJf\nCqtOuyb1PIjgChOqDuvNBYxTJASXy+iAC/uEt7xezu5XdURwPk2+BfHw7Y6s\nj5QOWRUQ8lVL78+CoQTlEROI9ddGTyfo2ZY3Z5Gu/yhVh0vWPOPwYwAGhR1f\nxlOvlxhISiLIYdEPrIhxJizeKLVxscsK6i3+HJ2+pRDfH+wkR/8w/uTxXGY6\nujVDWn9RMPOE3AYkOO76pADdo7/s2WjnzLUNMYn3EdtVwTWRlH75KWPbCp+Z\nPjjOf/c8SmPVxa82lFUDuzpjfUaTC75jsP6c3CLJw8up0dpk4Pv3ifBeHjau\nEBtG0LkYZCeMOEFyRFy1egqA10WNWZEpZnvCHHiyTVjMap7namH6RX4NVjXb\n9eMH\r\n=4rM8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgVPcFSdUZRdpf6afIa/3+OpoQMB/dCjNNlbnu3qgA1AIhAP4KuGfPMMbe5ejKXEVgoXNPS8bf+mu5zKr6yylm77Fe"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599093010527_1599093022285_0.2719085438014497"},"_hasShrinkwrap":false},"1.3.0-next.1599093174376":{"name":"playwright","version":"1.3.0-next.1599093174376","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599093174376","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ByTJjth3AcdUooLggPVQ+tOVrWhqEGEP883NVhCxmzSuAXvFcBRQ0zzt3Tth1fu4HqowijFcXrg+J+pvUoG4ZA==","shasum":"98cbeff0673e44c4e589ef910f752e00e866038c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599093174376.tgz","fileCount":159,"unpackedSize":2409462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUDnCCRA9TVsSAnZWagAA4UIQAJbo79TlqZweMqHRQJYF\nnqmn6tdK8bkXp11lAQ9YQNf3iII1bKGjMPjCy3PeyuO+M1UluGYm474c5Ctj\nveP3uBKG+HC88R4BLI69nVwXxZHOkuIPez9TirpJo+hDIv0vs40YdwOOOKgj\n0FH8ph3kd8zEVmlNdAcR+O0WX2J+t6ejpDiIv45uc2/5s+aVYi9cBSrc602Q\nKZKRjOVSjKdnh+ryMSGIE9Oz6lRoqvVwMOZ3nMLXUfWn84gp5A0ZySbjLwpB\n/gvQi3Wt1CG5q14knFWCFUFCX9DT03PUipa3VMfcDztZwRg8u5WE7rPZhKi3\nHBge+Tq/JSLKaVOOEjJ9uAZKf/YDw1DkbIcQSCYlQqwSxWvlDB5h6BrrSZ+8\nY8vu70NoJvr7/Jwp919wDbz6v0koOFNUByCJr7TWaVXCCk5x8oV4bcXG//gB\nXVBDjZ8YPos8RQgKflegLtVZVN9Ec0N6RLP9TnNQjYyfqKgSwIxPhxcqSCt0\nogbTD4ZKnZvhH/DDknfL80vzHv27Ot1u7ypdJFUa1AUScwoxzrGmmhm/V4SM\nXYsDDmIvEHZjTuFnWkvGyhFYbQw9h7OAx77idvh+YiIzzwk5ZMxEYNFo5L0i\nTVqXfRwR6eDwzZRl0OFwYVHuYxynNU++SovGtqL2swaUROzewwEg5nFHMGBw\nhfES\r\n=Ypjf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPeiUBhWX24sD/Xfpr1IYFG+/QeJQPAI9WEeKdhpo1NAiA0JKVZa6b2+juo5gF4TM4X933dW1pcXsdTJCgaXzWVJg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599093174376_1599093185931_0.2666633757674264"},"_hasShrinkwrap":false},"1.3.0-next.1599095054939":{"name":"playwright","version":"1.3.0-next.1599095054939","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599095054939","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-uOS93GtIm4UhpW7yKQKMO1F+/y95Yc52PwF15HRl7S7rpHpZ0i5OK+Ko9XsmmCqt5Qenov2AFxvV2dFpwi37ow==","shasum":"2be00985b14a6ad9c41292b3765c64ce194beaf3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599095054939.tgz","fileCount":159,"unpackedSize":2409100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUEEaCRA9TVsSAnZWagAAwOEP/1QEVU/CzMSqnSBjr3yu\nw6+gwI33QxjRifqVs4IIBw62XJffZTdnlOKcCg7YDTLtvS8cs4nuXhPM+qUc\nvbOj7RV7gmDv7v2BakCB7nL0jH3vlxWOqsi6lyqK3YnQ1ZhFn/MsKPQMF2Af\nxdDa1kdXYjB8huamlF2tT0Pku+MBpyChOvGnu8M71gzVVxJhuNfilKCkpufq\nghp2UyjYMgQvsW+gCW3RcXSL5MpwIvStWjQ0tM5ekOu243jmgtPdDZRf/UUm\nQpBST5Kh7S7APJH1FUmWeJxk9nj/zt6UaPw133KQPG7Wb6gwdynMYCMPIpE4\nlPKo43tPI4Vym0JI56COaITAAa/qWtn0bk5UUww0iPdZ36MutRorblqfAe5U\nq98qM6VUsED0F0iAhA3R1G4XiPxgnjVS1c0Lel3xJJTffBRQCVtioR7fGVpj\nFD0FGTdPpvDaT8tcHSxe1sdvjRnDWrdgQYxun+PFY9vfCQlawrz6bFltLIu8\nSLvBO9+IY7WS4jjZwmTA5NUvlUXVz8Sdf7X9JINyOEpwSUC5FyXedWCf0Pbn\n1p1BkYS7lhaTkgAd2zf3bVIAhovtov4y8wz9wLqoCMZJx3PwBeyIZKy2mFAK\nC2ygyAk1z8QJTSL6FxTaaZGe6ltHQj5wyABo+gOxSi9ICxGH5gV2C+oPhp1k\nGYiv\r\n=O1pg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT9umfNC9FFLNR6mfhwnGkB6JCbuBl5WBk23haeC5a9AIgQGSMG7zj/9S2VVlN0dsZu/tKxJKXqq2ddD/KHXddYrM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599095054939_1599095065892_0.21112600512115343"},"_hasShrinkwrap":false},"1.3.0-next.1599095704890":{"name":"playwright","version":"1.3.0-next.1599095704890","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599095704890","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-to1QhmymCidqSxfNs3ugCGKPGAYul7x9R96TCrRMHnMhNsm4l3V8KLbXtgeo2bei5gzn/RktTBJ9f3NSowlCvg==","shasum":"48788179ebcde8060b1e382024f193db19da4dc5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599095704890.tgz","fileCount":159,"unpackedSize":2409100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUEOjCRA9TVsSAnZWagAAm6kP/2YtmjVsA1aSOrkKuA4g\nfNrmUr8GfD6F+DIJEdjT72FlaRgkaLFFkoku4SULw9cS92tdl6ZJ9H/kwvtl\nd/vTHveMBUcj4XxI3O30RSTLcSrTMuD3HU9SoV8D/tJKfTY1Lja0hATGk7ya\n17OCtv95jVcdJLbs1QOH9OWepm9b/vB6YpvYQV0h7YpLv+9BJzc8aW2VGdfd\nZPoMGhD6cwyczI0PhCLKXuSHtRg0QQ4YkzMUxKlUOtmBB4fONlHf3zGnreoX\nP7mongJ7cCoN67uorz5z5US1sPm7ABRir2AGQRqRpv1u5MxOr7tnRsCB3PW+\nYzy3a3FF36EmjPQCdsyaLa+m7ROP/kLN0PWOyE8ZM3t+0WcYdoQWBkEjFrFC\ngU09mbqHAjHHEm7934qNyvgdTbRGByZvaTUYCPeJvQbPCozzQFbPmBRAJ9Kd\n7DHTy2StqW9+ljbOg7diGC7GwHSd0w4nf6m6EO4DkJKlNT5neFpYx9QJeZui\nh5d+wpMoaAX6QQzcqzVWx2LDAS+k1LxZZojy+A/rCB7CApxTY5JhIf3iqndj\nl8VpxhtYeAR3+5m/mAyWkwgoLi6sKjfVwC2NqEO6D0CivfENYbwBb9l4dUHh\n5CH0rdqzS7ke5NgGkWcJzOX4pkHG8GGTfECLi4SxwJVbIXZOw7Z2ISFRnTFX\n8S4p\r\n=XykP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+QkgdTOPJOT9GBaFBBr87cGOFmAVAj1KG5d+5TR8+PAIhAPpAzjyfiZeGLq5GrYBnb1IKYJFi54UZk/kWHkd2SRdx"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599095704890_1599095714818_0.41817192394793556"},"_hasShrinkwrap":false},"1.3.0-next.1599107487304":{"name":"playwright","version":"1.3.0-next.1599107487304","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599107487304","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fEPf5CGjBYCmGjp8eZs0tdwmwDslG8Ajc6Vp1nxiI0b7L94eKAmyKgN2GVjVu6k/6lf1L5CoPmdcLIYYF7yzsw==","shasum":"54010e1bfcaf8a1a20616f6b6427f497463c8323","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599107487304.tgz","fileCount":159,"unpackedSize":2409100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUHGqCRA9TVsSAnZWagAAru8P/RgcY8zLY5Zsnamn7YQ9\nROOxLBZh128IHlwAjCAIC7JFNrnueXjDhx79jj3JBaUr5jMK9LBC26n4iVYt\neep7OzeDF3kZauqBKgF6LrireywagDafYpAVPVukDxT/9ewuE/tj76LlsNtW\neIUUVKfa6aZWxPuS7Co8hNfpASLToJYmcDBvdgoASphHV/bRy46+1kXek67+\nxKINu0L00AX/ZdIBfvrYqO4Le2HyYq2kxb9lEfVLuvAAT69lEgQ2gopOgBCO\nuasY8iwvYakxDxedlAC05xnsf4qpvO5R3U44scCmMN75MuSJpTByRh9BoqvA\niGTG2H0hTYl/uMpenEVaPulEJN91Kl2AofaUfqRIqVk3CiAFNpysWIStJuuV\nE+Gpl7i085NKdcUgxBhHe+8BwUu5MrVrmFV1OXE3CRbELVcCNZ5oQhZuYz97\nDHOfU18Vp+h1iUbis106LDWgJk9rZ8NDfMnIzFREFm1iQU2Vg6XMYX9Tkb5Q\nkDfKAOfl0idqDyK/zxW7seGbRC0b9VwcCsCJnbgJcUpb/t03vHs/+Cabc3ru\n6/BXcPqbiGEjNKooMBAYBl+qsEFPqCDBHN0bPa4bLZ9G1i/wimVctnSsvbZs\n8RCNAXkORuypKZ8kt6S9lNZFWlHcYQs70q4rwSnwxBkx6bZ7ishvWNhXJIt9\nm6ky\r\n=wCtF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS/0ardk6niPDHhCOWcvJXo34GJr6oAVpyS1AYG9mZQAIhAIw9w3eHlIhQmOwgJFvL6I2OV1qC/8hp7MiP8y+bV33z"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599107487304_1599107498268_0.5947627983116435"},"_hasShrinkwrap":false},"1.3.0-next.1599108335592":{"name":"playwright","version":"1.3.0-next.1599108335592","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599108335592","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tpYfY42E43uGYksGdDRp3eDjp7k/jXcS2ui/eGNce4mQxtLkLHsvk8Bc1Owm8AW2aMHGSw+JYHTRBh0tKMsiiw==","shasum":"2caafe419c6f46bde65f786860d12271f2f276d9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599108335592.tgz","fileCount":159,"unpackedSize":2409100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUHT7CRA9TVsSAnZWagAAkAoP/iZ/eALz9hlIWmib6x9M\nfs0Dxvk8YBgDjFb8zBR6Zje8aiU4n/dFIzcOz17+sbwK0vsX5r+TR7QUY1Ka\n+gyepgCk4BtcGtvBSQ3g3msYW1CDQwkJ4fKZDf/NgLEx46azqS7PLub3SuJn\nLtnZH6OlKbNVMzvK0dhpM97TMarnUPq9irpIoHdqhcEFEAsjl8Qbfg//K8KZ\ntwqrAxLjGt7Uz9VFdA82gR8kttuiduFhrVdKMHPu5sEfiRI6mU3s5Wt/vtch\n/DlAGRh4qEsRfH5NA7AYX4qxre0v546Zoc0XtCiKKaE76QJkyEe5TF2mb7/e\nc0b8AXj9HGBsr6g5k1LPdgibd9QK5CDU5d+LAE/la91wcGxDtEEX/r9px7kT\nQ7j2fdXmDSWJeIbLCxaromo7K1FAi+Xm3n7O55mjeolAKME1qNzdlfxwb5uF\nPnAjHv1BQwb//5oNLVY3uZ6tJWkQhPAxDhm+E4xp8Rvkhefv/LVwCWvrDK8z\nbPlCVEQ+GILzK4V5iPvv7Yb/WXyFWyjNKs5AibYqHXUrTNW/2IUlG8u0qF5X\nbUKsJAPyyGlkFJbMHv6JNcImpWOqhwyC+E4DQwV7X1ToTV+4+bN/Y460KgAd\nspuqufiAD9xKSG79Wy59CUn2//Pta/Nxi4C3zrftoAQ72ERwuY6vg5GwFLXf\nEHFY\r\n=JMTl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgA3uck3c7GurtK8ZInHIJGJjypwSo2yIDYTcbHFazUAiEAkngqUIIhHJmNmfBQVb/wkAtj3NCut3xoUDdbMaGbe4M="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599108335592_1599108346815_0.889660967361037"},"_hasShrinkwrap":false},"1.3.0-next.1599114295616":{"name":"playwright","version":"1.3.0-next.1599114295616","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599114295616","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-WFjnxUtLiOsRJMiM47ZjbcB2Iv+Hg3rmTdanwb5WCG6LX4+lADQF1uQrVlZaHnGK04Y8gH8W9ihVvwAXQbvNQg==","shasum":"5c4aef8aebab3ea2b283bc63cec3fce560a1da88","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599114295616.tgz","fileCount":159,"unpackedSize":2409100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUIxECRA9TVsSAnZWagAAyQ0P/3ZDOUzSxr/l5JfD80mS\nLmD9AqaeJpkInPh1NGMtOnvotEXFhFJ7g+RYZqam95jDyh7Wm6EKHr2X7o1Q\nht2Nhmo/4BUcnr8WkFSL9VU2bABNqMl2F4EQDKJI6AxjUj+pAIuWUtjlu89h\n1GHyhTwL37B7S+tyWV/ZkgoQySzILDMxUET08BXapKZ2EQYq905sFzaDpEVw\nqCsiOGhRtrTKoaixgJOyWN3SMcEz7l1BoOCjgMMbJppM2+poxnVDcnu8XIRw\nTvRhSw0XUG5OpTHA3+mO0IKlIR2sna1wgFhFGElOubIX1RmOHZYoAirLYI4r\nrj18XoskNbVya9rexgyDOO5Fb5SkthENbrL73wAZZH6IrzcA3qSHphNP3/u3\n1dZKNJkMGUGmRUxe8FdC96TdGGZuaoZNbTzjs0yXQJi0Q4SkJqPGvaWw09nf\nlEtgyV5+UNtEql0xOQ9cCuFn/82tosqutwlViUjWoAwuxzy1M/dm+rBs6Ww/\nJlIFN2K+MbbT431H9q/B1OhYeDYsfvQEoh2ykF/0sJvPvegYUQfcL4tQWrMI\nimXUEVA+tqxP42UlG4lKT5rNa+dx/ZS+BhcBP1mBrBaMgPzER98W3WH9eB7Q\nXT2ioeoMzMBw9UoQDm9KuUyu7DiMmN4VEXVB7wBX1FMzwrL7gC1P+T2n1Yvv\n+OYp\r\n=YFVA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHEkfTQXq2Gv4arhEsjeHUXLhwj5QNZiZ3yDZQSJWv96AiApH4JYqgyRlfDpJWQzZFAaZjpMW26sjQkSHwMrfwouHA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599114295616_1599114308208_0.9311400327745807"},"_hasShrinkwrap":false},"1.3.0-next.1599114915095":{"name":"playwright","version":"1.3.0-next.1599114915095","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599114915095","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-pBI7NT4et/8olq6pH4QPa7EGxm+VMx0wcEHNGvvwzXrlkevSF7LBK82kXKM5A5mY2DL5DqX2f7UwWQVpninVKQ==","shasum":"3c36ca19d58cc7bc39357e209193d0166d6a1ecc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599114915095.tgz","fileCount":159,"unpackedSize":2409100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUI6uCRA9TVsSAnZWagAA8lwP/35BVpUyu+e3+R/Ti28r\nKfhm+41BLF64om6jQT9wkU9Nf/u0Jc6J0P1nbqsjI/HI2EMwrDJMMqka+SZc\n1kmzU/oI9F5m5Dc8d3WIK9jz6UasFBUm64LAtYk+tmTo0T26vJVefqj1SkYr\nKGz6MqlvNTWKam3hp2Q3S3ensgXX6nYGU+IDuSAw+hRhp8w3HFVrnWUQsdrb\nPPqgWcasnhNQydVHmH2H+0PS/5VCGUO/9a11wEExbyucOArOZHkDGhjowIoY\nyvoxxGQnPAlv+Ty2SIpvROdJCy0jJ7Sgcnia3tre1hybWXkRIP1+TRB5SaYT\nNJSGjunl9flD0WJN+S5uiFy7m7mRh4G2ews26yVeIJKmoguRyDJlEYIqaD2M\nzAMk8OnLFCqQ2zVmpX4v3pPXb1SLQsGptf0Xbst/ItmjWp7DPbzC2WcPOf+y\n9FV2trTHtQYrm2efezx5sCqMAao0b6ZwLsBQgi/U2RVXJjBiQzmnAIh6F118\nY3AZaYAVq+VRycH4bGYF3hzsDyMSayahggPfJ3OQilk7Y9OJgrIpmUUhY7y2\n+NlzIoqAAHQHoDNkhcAIA1SZ+z5NuIjH+tJSvD3CKk5EWCferEEUrMTWIOQq\nFLab6PseJsrKMAigJEy1cfDY8me1IIuaiwyq4xQLz6ROYm3OrNUGCb8qQoN/\nYLkW\r\n=JHkM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0v7QJ0VIaIGs1EDR33vDuwzSrtYmv0l+JIrRJCr7KUQIgB/RD3ht6kAdtN0FSWfHr8oB4HX+Gs9LDPiK9D8xPQ2k="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599114915095_1599114925974_0.29385920892906947"},"_hasShrinkwrap":false},"1.3.0-next.1599115661893":{"name":"playwright","version":"1.3.0-next.1599115661893","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599115661893","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Q6sGj9xMYKNZKxFqZmoyhsPf7fTIDryUSAwTRxDrOIeZMX1CHlCpdLtQ2bTvMxJxJIgSih6lLRPxYdFhgAlu2A==","shasum":"40817f39c49998fd6859146217aa7b23308ee770","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599115661893.tgz","fileCount":159,"unpackedSize":2409100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUJGaCRA9TVsSAnZWagAAMaYP/2Yapq+KgmnyVUoZ2SpG\nPIOh0C/Jgv1E6PNlNos5RM1k2e+Ya0DvGK5OebeniNbQn+4/Tv23jowm/k45\nN/qmBpFWP2tOMvMWS0EVXxivGPiHsWvTaYNC0YROUXLThjzFNUF2TVtS2/cS\ndU/cIoItrY6k7S2hWp2gHB3lo6a3/lpxoLU+QeyeGfwkLLAdSiftDGXYtOhR\nt+sc+m+4r4SvQITR6InqpfDgxDyl7nLIDfXDXUdxWMp8YJt7UtygxDDoJGZ1\nfrntiUO0HoWXW3iuhoEqojZwkKL99IprZ5EexlBY93ioCinjRuoXk7FGQRm5\nwCli9A9rykOZsuo9CcMytvrbgM+oE+BRjPMxfjddG/qm7MHIm835+U2f9FNk\nw1mArAvcDRunJ/MW9/c0GCFBhE2quvO+de7YRAhYiGICAD2Gbv6G6jvxk4qm\n95kLgjIvmwx5Jy+6REzcyvgnsHyJl5x49qo0zd7Gk0PjPnX9bWxqcxzhX7Lu\naLiEgkanxvpvoyAAnFS3m4D58r1+/a+A9E5kxCJ99kGpnoFBu4sygwbkLN6S\nCtM7YLFT7nQsu8lEtOkPhAkzw5xUmUAprlrn2n4/7bcGFuTd9zRfiSsEJV+H\n0eJr9A5b5XTWosx3/JhpjWMm8SMNXkxfW1q4XgIFqQxAPeKa5uZQQ/I7T1NL\nvJPl\r\n=obU3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGS2bvWTDSDENva7/WboP6vgRl0madPRGlzmUQDABWdnAiAvFPpZq2CWfNlSLuiBVOa50YBpSoQFmvCIQzCdTbsLdA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599115661893_1599115673955_0.06782457157246102"},"_hasShrinkwrap":false},"1.3.0-next.1599151509690":{"name":"playwright","version":"1.3.0-next.1599151509690","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599151509690","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-RkhMVMOetrle3wjnlDB9yqR4Z3w6BYe4QVMGDV9+mUYkDCmWKrKyxtDGiLI85J1YTi78cu2xQKE7yYnt++dByA==","shasum":"69a3ababebd793bff88483025a54a5435826cf2f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599151509690.tgz","fileCount":159,"unpackedSize":2409100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUR2fCRA9TVsSAnZWagAARQwP/AsiMTu2fyAob7joizIe\nrtQvJY+yxKs3VvBhQArhurUXocXIoGlA0BOy6tx7EXBvVt1nb1b3x3CysxCD\n21XSrAd/dUootGaxtQZ6GiFnerS7SliuFh+jszqXGVOT6yLDcl/Pe6R0yFCU\neEZuTitLL0sRpDRbIaUR1D/x5q44I2nIEUf1R16/Vu0m1PlCoRpaI9CrfGDt\nv+SiQ5N1NO0NACYVYXUrckx5iZ1J+A1P0Mq10s9ObbO3YKlZwQGbWFbXH7j4\nR19IcoYhp/1LGasWKzT5yYZD0RF9+WIo3oVpPnadCXXZ/TaaBjqU7LMiRMhj\nY2RVAqY4Ggsh8HTBJiUlP3sbqmDuBDKt6N3r1I0+Ib+ok6vhb8QbONwRt9JD\nmtnTU0YSil9gURQ1hjgEExLEXTnrlzUg/fsGA8AEV/GrJfOrVFzRdVizAuZw\njxnPYx9wtHaNgABsxktVzQtiDNn+rudsA8uEV4fgp8blUHVS8GKuDQN1c+Ib\n9V8tcs/q8LH0zEMlO/R+UJdPyx16dptu/qH6dVhoM5QcSQ9tHlQuReFDUjGB\ngoMBmDPPmXvOj8QhfyVSEndPG5GuVRCz2KOeSJQe4TplnXGdfPPUAPFM4Rk1\n0ilP5SRtHlK3Sh/nMggmHdgG9s0GHjK2xuuHGd5O+vSSXnkLFLZN8l2GND5V\nvZeI\r\n=gFUr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7FUzPwZ+H1RbtICfA82regpVFgsBFBD799R6GzbXGXAiBAF3aprCVYyT0peizdeM2uxEIu6Sp5sLwHdESxGhUBkA=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599151509690_1599151518673_0.5267650862373039"},"_hasShrinkwrap":false},"1.3.0-next.1599152298508":{"name":"playwright","version":"1.3.0-next.1599152298508","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599152298508","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-z94cGyCDAQnJpxGB9YIdzz1Szl1Ab/troDMfPLLJkGHefl2m7Vo50bWq5P/143+mZEDbnMF+zpGHPu27fadQeg==","shasum":"06873b1fcf409b10b2ceaf7381fd6251a52318c4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599152298508.tgz","fileCount":159,"unpackedSize":2409100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUSCyCRA9TVsSAnZWagAATd8P/2hVNYaFv5Kg+u9euC1X\nRTcON/ziO2WSDQ5NxaIc+nN7DhIOx1T78cpxyjzHVJCgR00Vg+HC+d+AaCdh\nidPGPXMuGPl6cx+Pm90FSZ+XHNUlfKR5Oiafjhlzx85qAgP5WNUd0QqkibOR\nDOn9rmPm1jK6aivym8Den1lXpt46IQlF2VHWEDGU/qrk+BDRek6Z19BEcG+I\nelpSm1+/iYH6SlAfs/xrmOza1YTHd2syTyYtfU6GWlo3TwBnKC+N9PrzR2ej\nzoMV19XUCKH53pOej811FaQCHihDUCxy02UIUMmE+h0FqyRl1JSZ91iEK4Fl\nN88SeLrp7nycjOf14l3eCUD38jm4m2UWJzi8GdZe0pMViUz47I3S2VrmH67D\n4NZgC9TVsB7hMqwxYDGAMxh5RLF3gM78tqXoDljNpjNDzcSlpp2hVcUTmm7n\nGDb43BxHJFUp6OeFe38QpQwatiVPZUy2q1bgNLI5Bz3QX6Uk456r2PKbdrhB\nG2eVXd5EXEfiNFpS9rWqAb2qs/GwO9bU+EbE+J7FHZZQgLCt/qkHF8SG19s4\nRxuHRdx/c8ZtepIh5OzG/zakjYhWlDsUGu8MT7iBJSzfU3raruSgknUbzXhL\nuMXgDtwAlKekm1y/FMQmd6cQPi5+Uf/TvNAi9XB3jkm5ZWLcOFfMJaX65/JG\niFnX\r\n=C/rM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgNOrns1KeFjUVGy/80nSFotFk50hyf+NQw/LSSP5G2QIhAPK9zfbsqkSxJw4ECsvkkcV38stE1CHnyKwJD5iueF8U"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599152298508_1599152306387_0.15060368305101113"},"_hasShrinkwrap":false},"1.3.0-next.1599153074213":{"name":"playwright","version":"1.3.0-next.1599153074213","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599153074213","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-HwNEKzG5Se8CDiiRcfJFMnQsh3O/7+H26mYDoUBjnPf+YFJp52/LjZ2xogLp98GzaCnmGbGdL6+kYKtzSURlJg==","shasum":"1ab8c885a5ee2d2e4bf6485943be845a777f7bac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599153074213.tgz","fileCount":159,"unpackedSize":2409050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUSO9CRA9TVsSAnZWagAAbt4P/iIpeGFgxBse6tbhsDkE\nuR0ZJuTTER01mOmrKxTjj4/jSfwB/QDJEEy++E3qB1ap0SIo1n51ZDlmG4Dv\n8kZ9bVjT0o5KzFE40SXpt/nhIIZ85s2pL7mDIE6L00zvIvndszjteNw2iPY+\nP/APAhInTSmoNm9YxKK28bkOLLez0oMIKFlEIiXYzS2QMluzt8yYYFDehf/A\nCZ7q/e6QvpWh7Z0L1HckrxvMxNfVNqRRJhJUK6r0mFw5XGuy75JfLKHj/3Wm\nxu/FH0/1SB8ayyCwrTtVEdQE0yKtOBskUkQNyCENdwpkInG8iTEc1D+gNBrx\nLkG/DbzNHiYcPmelJArWS0U098zmHmacLPuJJsJqyjJuqZy0Y6+KzS1FzYgg\nOQ6q4OTV6+P+WMoOOlvSnJ4UGjDp+ybt1j6MHQ1nq6se26JEfBAQM9Ryrk7d\nHIfarsr2lQvqHAkBMZIP55MPr0ufvs6pnhLSvCeipvbfJfB0S7YMTUyPO4fv\n0ggoPNKAjJwPeY3lX2D0jAWMONvKyoLqEnbRlRN8HQLC9gIOwdOWH4yxnDdt\nCItie/e596plJSCP6bvczMxir0oCgOJjU0Kd2Z75BDvVxbUQ7qqWun7skT3A\n9JbnGDyUiNinfUuU4rx6oHM4kRJ6tGsxAWrVv0nucQXCLGKzFrJD5d6mbKxy\nv4Eo\r\n=vD1u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHWkAsm6rngTE8a5DuAfCRX2kRBucb054becyo90NgNAiAu8W7xvdkVNUipJem3onwOE956i5mSy7C0aaPyv4pIHw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599153074213_1599153084776_0.8501196546443957"},"_hasShrinkwrap":false},"1.3.0-next.1599159712407":{"name":"playwright","version":"1.3.0-next.1599159712407","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599159712407","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Q2CyN45Kw9JfdjYZXfb1ezTNvkAQpBkcba1GaD+u7+KrnsTEVJbeq9nPBiJ39d3KLUf33F/hfdgcTOGDt+sGPA==","shasum":"1471685efca8c29fa3e8284d77db3b6151bd9bac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599159712407.tgz","fileCount":160,"unpackedSize":2409090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUT2sCRA9TVsSAnZWagAA/5oP/Auxyc8JnPEuq3PC/0ve\nJZYS5kM8t1/5pwKY1a9yasDb4r8oww9YY50SiHs3tR8gTTc0C+slZf5jRFiw\nHbz0OYa/m83UlIHRgqABDYQHdMAX7DRP8SHMfX76HfIVu/peyimtulI4GtLJ\nVM6q7ahFPZcTN9Qqq29WXPjzMwo76NZSqPsNVIdoZw9VlsSBQ3LNu6Vuwb2+\nz0GvJc+9vmMoaAxb4gPAxCmx5qb2meZ4lZLzu4K4nNXD091CB8GQJAuW9g3r\nFE+i4iyUF4xATgo0720FwIdW6ClDlZGfKfrazJal/nkuiGxUry040UUZDaJK\nuWGn43DYzTQ3GehyrfkuH8ZN9YKaq5wCi/f1LJ0e4+iGsFikXTQ5Vbbqu+eg\n0zn0oScbA6QP7ygRx8C10fkOloZsp5B1+PIxiMjZHavZ/oONHFvFrt/GX92G\naH+gPrRCp1d2FW3QO+YM5377FK7o7/DUmXkWl+affECS0aL76KBv/4Lh2sgP\nmPOoU5G1Dg+HsLPdn/QhafJ2i8z/H4rORRJd7QQkBI1DYTizcIDreuQf7xLL\njAMCx2XuXIRhYEb6Z7hFh10IguPGP5+XD6+gBG85FhK6BpY8aMjwuBUv67Me\n+bNQjL/0ssZLzG1Us/S0Kiy2N8sUjYItDVkCO7yd5GBDkMkrazfANgdD0/SO\np4nz\r\n=UiUh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsJ5Zro5w3kGHDZpqxF9ddt9bDFtxkoqvJ8d7KkXKgXAIgdQKdKZ57PGNVUbeq1axXyeSbajNGSj+kXgm3ParTmEw="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599159712407_1599159724063_0.41653217172682777"},"_hasShrinkwrap":false},"1.3.0-next.1599164086004":{"name":"playwright","version":"1.3.0-next.1599164086004","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599164086004","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ZbXynPVoNPiR50l85oWErUEySiz+NUHS+TTSLcaMzhcKmJ2Pl8ZjJ2aKGcjC6ktIlXiPISeEysTX6fs9qL/Wcw==","shasum":"fdc0526d4bd7bcbb93d7c2e9f3acdb41b8d2f166","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599164086004.tgz","fileCount":160,"unpackedSize":2412410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUU7CCRA9TVsSAnZWagAAmywQAIdjBWWcwE+ixvckeOmj\nuCznd5sdDwZimRIHuEuW9RbImbfMcZO2aIppJ956YwQh9XSDQBmxXu36xfcg\nZnvpttv/F8wE3bNd4BtAT4u4/fhM1GX/E6PZIMBDu0HoXr/Dkev2JLy5qs4s\nBOvnYzxwnaQXrQV5ou1UDAa89+L42D/kiHGvYEzbxbDjCBUPbj6c5q/5oh1i\nMBzP72Rhmxl9mvMWdLhXPk46n6qjApe1K5lxajVrOpKOvFJ4KYUs5avu44xd\nLR2ORoZDv++rMvF4T19Bey+TEndvPWcgpL9QBWU6ygEhGcviElZTjE4Q6MY7\nBzXI3lJV0Y3CAoCDPr7tQNHcN0iReh1W/AEeMLR2uE1IdXYrj/dcvBjUJhCb\nz1VNCmiK1E+YsMbmUmKdiBd4mcW0z+jehL7rfJzVTUnVBsXjMu3xUr3w4/wL\nyg+odVIHyPqlM7CTLLPIKMnLTKnYlsQ0if8I7XWdN6xLQ1l5iiPIqZbASSCr\nhy2TdFOQgfEGvwZFNjhee/Xr/9AR1bH7/Jnsc535qrOnk0QhXQtP+BJgx/Y/\noJ1jeHcy5+R0eS7pkHFkX8gezyvEbDNvBXgYpUN/D2vyqnsOmnt7xJPrYntt\nGhyguMs3O+hcJAUy2mvrjC5IFs4rU+keZNmVJ7324ZNWiXwxsCXLIqPlh9k7\n+3pc\r\n=xEzy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAPoL7m/FG7uvwLsS0AY9js8Cuxconzu9+Ghpcza7UtgAiEAoR/6zHJHlkLFa+gvyNe9BkWknlo6Zt/Au6DH39qEjwo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599164086004_1599164097367_0.5828334866861988"},"_hasShrinkwrap":false},"1.3.0-next.1599177541247":{"name":"playwright","version":"1.3.0-next.1599177541247","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599177541247","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-zwDdnYxuU40oIkT8Rr/QL8t0j8jPUAw1RHOBQuEI8kZQX1tDA8RX8jjzS1d7q0aUUjMDuA/ym34OdbY2oNFdSA==","shasum":"5eca707ca10cdf99ffcdd1649ca90b1aadb6da26","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599177541247.tgz","fileCount":160,"unpackedSize":2412410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUYNOCRA9TVsSAnZWagAAMnsP/2uNZaE8BrNNd4yuLCot\ni7f/znpkCkKqspcAdVbaR1cyBIYlgaRHU/2DSEY8oLzmt/cJbmhJR6ruZbXE\nzmfKrPa065QyASQCCU+oCW2DuW41RX9mNpOyt/EurTaOC8njxbeMCakjCgFK\nGTWj3EuFVzWLLcBvXP+7frhMMhCeqyk52Bpisu5gZtRQxHmxvdoKkaWT2vuU\ns0ykAdcbOnsVKxYH+iySRuJRaD7yRLO2b4JzOXRZWw3b+4C7k3pqdjhLdLOJ\nFzgLRhFX3UzRyyjhYeTxjlkUCQNyU8/3lI5693aSyLNDbcTue01UEtMZWx94\nexkGJptYmACilCV6Pz0Qgj1FIJ8Mb2sflYxXDhLbBQwhkzz8RN8hV1ZcA/W9\nK7itVHdTisoM+vW7NCTKesMh/0KuX12kaxAaKIK1XIv0AOvbsH40lTsVplSV\nLZZMhfO+UDrUBafwPa7QyZNqMfqH+vfjiqi5D5FGwjw2Xr35otbD/wPZyj4Y\n3QeougXSwCjucOHnsUe1tix3MZ7y6Hx0W+7w+0qtvT8imdp7xN7RcBwheC0V\nfThqVLBthyySDAAGI6LqnzGW9QQPlXxLYDf8NC3P3O6Xw+22GW0qLftBtua2\nQETyM733Bs1XgW6HkWjo9fkjF0omnoHT1MMrosUMGgVlj3QxUPAwm+D6OMpN\nN9hU\r\n=isF7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx9uTZEezILBO0WP+x8qUYyPm24Lx6cVIrPjRwkfkrzgIgCjxCWgY4LQ+pMH+ZuYwRxPOYBCc6eHvUvyOo6TSlZFg="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599177541247_1599177549558_0.8692753997636342"},"_hasShrinkwrap":false},"1.3.0-next.1599196315303":{"name":"playwright","version":"1.3.0-next.1599196315303","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599196315303","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-j5F2LrLqazCV7hj0aCkES5qwrt6DmDZkoMLij3iKeJ2gGCvRl07eI996ksOgHY2M0Oyr6e5zRKrjKuH/I6YDeQ==","shasum":"eec67503c7ab16da4bcd21af6bdf172538ce319e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599196315303.tgz","fileCount":160,"unpackedSize":2412410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUcymCRA9TVsSAnZWagAAHNkP/RhdIRapCBxu1YgtQGlv\nCTKT4yULReOSedf4mPgP77sPMC10r0FDjSFQktcpLSMXbnQRc/33JweH9pDb\n7lxqnu4LoinGYYsIigo42ZMAlnFs/N/hLDMAJKT/a+w+fcfCeLeZW0Xakk+6\neSxeRPdBcSWCAVezWo8JgVbDSUGa50PmqSHdkNsqPanwVULLkplpXEsNXqLe\nKnj2S4sNs3a75r1ke6o6sgzSTuU8VkK1tf+nWhvnEO1YlTm7a6DCNprlORvI\nXKMSIyoctMlDRLJBwhHxi/X1tMyM3zb5E5IoQL85KcPyJ3nhLZXpVmdJCq4M\nQpKKU328M+XWqXr0N6QTYbqn5UTmyCNPm0bKkvY8tG4k/4tzhYw5JVp43N0X\nai3p1zkvxrUOJY51CxV5h6HLKqskQc+7Ya1BrBpdpTf1mPciW+slZZnup15L\nnBEKIaBqzNyJU1+IEy2FT5s0FdrXRBWgm85xgcsF9C9BFtVQYsEBhfzEDam7\nIyThhR76WknRgv65OnNoHN/N6ZoFZpjg0PaoKZZeHO+1f6RUzOzkM4ydTVno\nxJ4lcBkW3s/3cUZZWsoTvYQ0y9AVLwlrciyqgyL9dbWvkDuQc1m8hmM9DTyK\n0wktJoZxlvO/3/ukqmSEJPB60dpiz9sObkIeKwvdu6j9fRNmaBx0Ba9dx+PS\n+d/r\r\n=ukmL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXkH6k33jMNPMnVlXmG0lmpsU4LMII+rF81NGDdmgvtAIgCbwyEsAK4XYAP5WnfBGXWz1oN/MIuQty1xMKeW8CjPo="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599196315303_1599196326124_0.04000549768948747"},"_hasShrinkwrap":false},"1.3.0-next.1599201365599":{"name":"playwright","version":"1.3.0-next.1599201365599","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599201365599","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-s+E83LASB3GJI2ZyGUZC6szzm75LPDpTNFZ9l6DbRKajjCU+ji6oM1WKdtSc8CDa43sRk49AtvN7JALjH2KSHw==","shasum":"d0dfc86a3d099dda9716e4619d9eb27f8761330b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599201365599.tgz","fileCount":160,"unpackedSize":2412410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUeBhCRA9TVsSAnZWagAAHw4P/jo1xEXhENUTajbk4ppx\nT4QM6Sk2VvGcu4aByN17xNzlnQWWEUfsmP+xVNqCN5UK0jq2VfYVsC+iJhia\nq2zqULjVyhJEhLzD7uXDmrjjHX+FplQ0JhozjTiPD/yaufTfu2zLzQxHm71a\n450Fh7TksX8P6Xj0/Ptnjb1k4nLpyAMF3dzbc+vCtPPhl/Jn4ZjgC5+CkC47\nEnHkAhAEkneRLJAFp1K3eJnGPpGErsYJGyaHSp3KxNhoO2P5GETeZiicFhMp\notIoHaHdvfEKYwQIbwBFABItGUnv0EG8Zwe9xDS0U1DGGMDA8Pmx1HGEMRGz\n5a2lYfK4evBS4rW+TlNIHjLQmis02SVLpidelzsZTj16nbqodqFFR6FoSw18\na9/1B7+bnyote6EjSWrq38reRLemsfZsWtL4up9NYevN8sLn7ukrYkFYWlPA\nrdyO5cKxE0VSqojoGbwg0JoAn8D6su6GHVDr5601lqYQPbKwFpTAN5+GBR2P\nNqvK4B8BleVBsc91iwG3Omll6iuIRN3NsYXWRCqGyOvH2LxvdnaY32/JGmpN\n36vJ38T2+ZhdJEWqK6RENQbBtsjmmhKHTG6WI11WTICSh5jP+r8Hu6X7oL+b\nFegb5LpXxAynV2VuvO0vPkOSlN2keNNTFaher+PR0MLtD6EFaIF+yeVdQnPu\n1Vex\r\n=YN3p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDlmr+nEqDM9YeVKTlvY8LlffHDPWo91KRMtN7vo+DauAiBEfp1k0bmo2hMI1kN2rZhiyTexKI1fgPpJ6jc1UaQxuw=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599201365599_1599201376360_0.8472395530016015"},"_hasShrinkwrap":false},"1.3.0-next.1599205521241":{"name":"playwright","version":"1.3.0-next.1599205521241","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599205521241","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6Qcs9w721zZegxibxchiNCkxYOYVHFUafhugLeSLOEvt6lu1b5x2hB86QzZtsSXlCgvd2AMBdRQUN2gUSP05tg==","shasum":"e448e84d52121d01309cf215cf73dba3fc1b0bbe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599205521241.tgz","fileCount":160,"unpackedSize":2412410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUfCeCRA9TVsSAnZWagAAqYgQAIpsjGwL7lMNgbEjFmGG\nb6VCc6TBj6/JFUJZZW5gZtTOfwP5dKdGHIq7oZq+IdADQIv/uzja6y1e4Cck\nCqpPar/OP9eHKOmIy11DKguZvOEL/Ehsygh03Rx1IKn1KuSm1IVabxDyXsoM\nYIouIXH+ZZDFeELyRNoOzOy3HiAmLsaar0pRVlraiWooAsNTKanAen9AYgWV\nP7GgAT6NjENRH0ohRxZmKSy5+sPreewOBCtEw/nwHS+IUhdKU5dRdQUEcL6b\n/GWz6VWl5B6Cp09irySgC3T41VP0qUeFd1GRU7DIGGCR50VbrgyY240YWlxY\nJpKbrj7rd4PH7G5gtqQnaK0iCSnsnFD8td/UJNyECOpRVUFujKv19GkgMi4B\nYknei+om+pEKxEtqq95tOZUEagk2AvP9QsRljPaso6icjfAOuJve55rkD3E/\nko5AbEMMg+GrHUgKu34+EZp5hg6akBTWOt07sKFWPbCmYkw4cnsUWKznrMXG\nvDu7NPMhfkJ2Gz5NV1bz1ew/oqCybS5O4h8QxHfrtsa3iD13CktizEOLDzt+\ngQMEXmcou4Ri47RVcJuk3JRXF1GMsxJCA9WKaD7tfIZUBpZk6idAzyJBBrKZ\nPkBCyeCtPZrbaY5BSS9/BuUe3crpFupEdH4oHPK4X+II0tzHbSro1JUzpGg6\n23bv\r\n=HqhV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQUWmOLYUHTHngUx+lFdab7gV033yR1lez8Bh/tSPrWAIhAIJVshiZ+PAB/8B4cmdp/Sf2hafnGCiioA6T+6XTMrY8"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599205521241_1599205533366_0.2269002481710165"},"_hasShrinkwrap":false},"1.3.0-next.1599211243156":{"name":"playwright","version":"1.3.0-next.1599211243156","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599211243156","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-CtuIWCpIzOvJSwIGUg1IB6hky9Ua/1N2oX2V/WchlwzZvoGLuFV+dzXpMEzTsrRzMeVgo5tHdPlI2C6EAVCxtg==","shasum":"3bb3de8372cf897549ff15441a7b81071f8152d2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599211243156.tgz","fileCount":160,"unpackedSize":2412410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUgb2CRA9TVsSAnZWagAAYacP/1tDdpkWnL2jt6dUo979\nWMmc1bVR6/jpvs/fevbZHNrM3cAYKG42fslJKqc7vbMDR3Dj2DwaJV0vLQDO\nKeTu9LIN0qCz57BVeoqY89wQgpq5BJjWIAmmSDkxn4nKgyDDYwy7WJy5ERUy\n7n2fcPcWMaKhyqg2HZpxlQT123qOJCcvM2eZNwl0X49H4enWxVAZ8oFyMwn3\nuwQ0+tzkUJ9Rp0O+W33AeB0SR+sjfjHSFPyDIg3HawzB1MQJ+Zpx/UVKviKt\nsrwUzmDlJK5wqbmifiQol3F0bOrNZvNTBO4LRocsfOB2EVViPcfCTNIyVbRI\n/gfIeX7EZjE5bpehk4kWSWhSV0IbFIACoERA0xk0nL3KqyULK/XvaWVOf5dc\nCfR+lo7SnW2vgb+KPYB1+Sk9Rkmyu1RfE1XTimqgkdveKuLjKXQlenYpsiNu\nOs580h8Y131iMQuasmJO3m6hIISQFW2C0x218swJ4P9ABV4DzEC68/2+FBPW\npxhGooIyrMWwkqT0CFBhZH4za/H2xZ+ySh70GCdZD46ILee1Yqz/rR2z2jVs\nyWFByuCcQOajcm4LHveznd8ldcnY9vUXljt57tCjh8q/vPyGDer2ZcHFVT2a\nr/tyr6UTe2/27pxSMWvFpJ6kylRVAzEAOUxd+JroeFLuNXQN6dSusN754A5B\npwhW\r\n=UlfP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDybFFnNdvgp/MpU+ep6nxi2jqiXKBscTyYS9gGqW7K9AiBWkr7v2jLXos1vWY2gHdWGWpW6aCM8UcvQR3sgN95gXQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599211243156_1599211253548_0.34414204264001746"},"_hasShrinkwrap":false},"1.3.0-next.1599214585203":{"name":"playwright","version":"1.3.0-next.1599214585203","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599214585203","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ONzk3CkUTmMsqfS0zgwegPMA9oQpIzpepzQyAKKMHpjJS+NEOblI/c+Qr8Wh/Oss/zQ7X3lw6tkuzyUaWDnMbg==","shasum":"a02723e0bcbe51d963b8b16423b641de964ebece","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599214585203.tgz","fileCount":160,"unpackedSize":2412406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUhQFCRA9TVsSAnZWagAAsLoP/178QiM9IcOVlxgtuF7R\n8+PUlDq3dut2RIPV7fJq8dHTpQpHTeowOan1vYj+VWbCz56KLp0t5IQt0524\nNjQuvKXjJE6HILzKakQ9hzliQB9IlL8QKiZ+nWiKiPyUL3orpmG7OU4a1yAi\n+/cFD3yQ7Qotpe+AlO5+4XKmawG0ou4PrIuqcW0PYFVE+1ej/m/F/U/j2Nnt\ne6aa6p5VSxTJjy1PQLBUnrVof95RnUDF5dMs8BS1MDlcFrUuMfOnmsMCS14K\nvZ/JuEW3Mk5+b/H+SXm18B4/b6XtFNYrRyAIpoMgGl4homfJ1Ch3VP7gqCs2\nqT2dJAZqwTnGbEUXoUgNUmWGoRbR72uzLELO+YxD/GENxMLt2nv5b2i++fhC\naIUMpgQ8CUUOlsVyuhAuXDSKmIkxMUuAAdBlNtdFc7uzNPfby08WI1kHYekp\nPdVITdSQFggCOQofByRiOmyNZTYO1A6UBNCfbULRpygdrxoDe8NgeB8fHOeZ\nD0JQLzdvLX+2K1HkYoR6cHsOAxH0xz93+XkUNxa6XmRipG7QukaxcZbmprIW\nsX726bzMzizbdnJTLp6/cRFAS3mKs59nppIxMdWGYAlZFLsuFaG2/sIfpcjs\nFZYPUUSZ2x3BE+nWSGUbDCkiWKcMnsbFNqy+/Zu6LZhziB9ZDbyTyVuxYkXB\nmofE\r\n=xm4i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDtTFp2t1YFgACC/jUTu2vob3OxYuTSfCTSXM42mZ0yAiEA09Q/JBQE1hzHIaMZ8hngzBGwls+c594GzetezbhzIoM="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599214585203_1599214597163_0.24513852839400885"},"_hasShrinkwrap":false},"1.3.0-next.1599214778118":{"name":"playwright","version":"1.3.0-next.1599214778118","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"@ffmpeg-installer/ffmpeg":"^1.0.20","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599214778118","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nokCzqlNA2z4nsHhpS80pID3D9uxn39Gmoyi2CDvj4aZy+Tm7bStWxFL4jHRimBCFGOrllU+1kapCmMdlIWJig==","shasum":"11d0e1f56ece0a443c96048a7489862e21069a34","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599214778118.tgz","fileCount":160,"unpackedSize":2412406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUhTFCRA9TVsSAnZWagAAE30P+wblYSQXxSPEObi8KZB8\nKHsEAcUUCdxUJeuZiTjqkiK0CW/F09pOXxHT86U3lWYwnbW+4MALplSTWGXn\nGRL9CF2zcZh7BgaG4HVvuPdvR7N4uOZ4/LOw/VdKyyVjAkzjNJynTU7Tc0dS\nPBD5rSQ2obftZ1n/NnXQ7MZ3c1gfCVjq5Q5RWPCZfWIRYU/Z/MkamqTS+uiD\neqKf6H6s0ZpWGvKizRGo/SZcQkT1XFivmZ4lJG/bohoSCjEdIh8ylS2Kf9ti\nDTB6jmFjJIom9n/AlyoARIRA0rnCwYZFnBdgqzYpKo9K/F01TXM0idITm35o\n0F+GhuVEmXBIiLWoPgFFON1LSmtj0ZoZhw4f0M/l4saA1fzR5e13P22val+k\n2YsCMtWxxhS/aXYw7NKfhvf9rR4BcbFlzUCWf7ipDPyIGqZp9DJnMpjSKOC1\n8GLGTVqcqBKvJsxDFWu7mQprIxSyHCPcPd+y6M492DiAYoP8aTfNYULvfX4H\nIj4ncHz7TIYas+jU6L9edpcUYhqmahraHE3FXghieMWm5Z/TLa1DlZmIlvJr\nW+UDq/yL4GHW4gZ3fd/qGibK0VpdEqCPn2WKkAWwFYeYQrQdWIeP4Qf7+f9p\nfREUhFinUt9VxVRnI0/0LzQnFhMQKL++4PeTCVei4RkrfBnwCUilqynZPT2S\n55i2\r\n=kj72\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHRypCjSw6UrlX0DxKeF+hjF6lQVgF3iCWCrmuNAfKvwAiB0GiqcBybbHT0kVuPbieIxjX+91HHnYXBWVFThs0jRfQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599214778118_1599214788493_0.9290110736021342"},"_hasShrinkwrap":false},"1.3.0-next.1599218389195":{"name":"playwright","version":"1.3.0-next.1599218389195","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599218389195","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-n4YyGwfRVIvN4f2joox9E062KBIiKbtEI+C3X2zf0srJWQSLcba3mv1UJAQQY7JEQ/pNLkwcRj2jt1+wh2q0NQ==","shasum":"5f65105e825d1bd87f4b237ce3be02b97e371e55","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599218389195.tgz","fileCount":160,"unpackedSize":2413172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUiLeCRA9TVsSAnZWagAAHukP/2QLVG0gf04266cjif+v\n0IBOY0pfna8XcG+wnzn408Hgd4/Y1jYmkezTrThszB0tYYYd0A4gt7KIgnoc\nQHjgbVdmg1uM2Y8SFZoGCBKl12YDgRZ8PL/2NHZUtLEgESfRLq5895NJDAuR\nhkSSU51Vvfq54nEPh+oIRU6zq8uN5oejMDIA1asEUj87KWvSmW+gQDn3sUum\nXydrQ9LpDA5GnOZSnZvu5nFrGMMwwC9fBiM2bNmWfHEWIU1sZl3VfV+0/+2I\na0gi0ne+qim5LBEAv8mLBM/pfFTuQkdh41aWes4f3rqYzEGpR+JyC3+xSYOW\nxEz6XChfDBrKba3XzaXS8IF055gQhbWHYJBK9zHBsnKX1+PeEVn7mg/sX5bZ\n7QMsptCR3kPyQX5x7/Ws1O9J3O7DBVXpb9qFfnKoH4Uxvm9eqjm1CUEwW6VT\n7GLJJBbdcBKR13gjhBk0xaqM3XQWDKU2XJ++wrHOJey5CvQbOkvN/rWKcgIU\nBtI1jzlDXPWpyruk8AvFydqo7gm+DXXXU4jS6dBBCCl29bRwoyNbS5IMT+Cv\nbPfrwSEHvI5zaFdcaXIiz1I28nes8QvMpiHlKt/6jWT/TODYYMmQJ3mwoDHj\nX8uK6sHiJTDloWSvRde/zpNQilDhGtIB9RwnJXWs05TSc4NT+yA+Gc/gR4KA\nJWIk\r\n=EKqe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6UGVkL0ZrSzEDFXcbGxcdRp2iLCNlfMpniVP890rsiAiEA0AroM9Pp1zGGw+vIpn8RF3F80r5qO/SMEMJ2AKVoPJc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599218389195_1599218398376_0.08913941118662838"},"_hasShrinkwrap":false},"1.3.0-next.1599218722159":{"name":"playwright","version":"1.3.0-next.1599218722159","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599218722159","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YiPw8k1rHw+pM5bRvwVadhZWefZOzu57fg+43NCGqr6ilnY+2zu5Alw+xXMcX/u4fGdrFb7qy6xgS9uAQxP7yw==","shasum":"494cb793101dd65e3bba7996fdc1c4604bb6fe0c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599218722159.tgz","fileCount":160,"unpackedSize":2413172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUiQtCRA9TVsSAnZWagAA+KAP/Rk5IxPJhlpQ6Q2NTS8N\naHuHeY7FtLMEW9g97GEqIncufosxxhhJLg3ge09Bc2Jirfq6baJmy1eJa2Ht\nL0WTkBFgnP2DoPMi4XSZx6O7nEW7pUxd1piNucnEe8EACbMmmfiQOC8Wye4+\nlkM5dzg0RzeeeEPW9Y7EHLqqr52AKKysFK6c6rbRdlpJPaklNSlkO1JHTDml\nB4nXM13y3FJ1DZpOdpHyGoIXB1++83verdVgYkbRtEdMnUq3u4nk2/fDtuzQ\no5UgPMtSJt4lXK4o0TrfqIRkPV925OXhNGv4nVO8tJd00G4ovyzQh0FsF/Qg\nDOC56JlPRBNtXXPflewryGLAomvI3yP0j/guypu3pE3BTfsy3JwDAEF4IOm3\ny+a6d3gYeVh8oFbohlkqZD/Xvmlp1VT6TAhT1V0nLf4yhj9DycI1NPLzZ5rH\nRF9Hz2BqR70GWNXLFZrmDDxzGRU0hxuAF6XWQLxKLZ+9jEoFWtICLiXzHBml\n+ZcacrbIXD+rlhGKzJYq7b3J2qPkmcmOjRYZSSGHk/GfAapdJ4si+05df1u6\nvOvdK7nyGNaW4rjNPZIUpyfULQl6My8HUW/3ysNU7Ud4Nif8QNe0uqkr4OlK\nBhwGqGhHliFs0V5/lBiEUg7A6Q2Amof0XSNU5YZLe1p3QSSvC5KJLWTSEK/z\nBthW\r\n=hMzl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAcOk7MNvl3f3tanKctZUH49MwseBOixO1WV8tRy0a1AAiAivSPHPguMgZIg8D6+Q71rcDnbWk5LCmY/tS978+ifGQ=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599218722159_1599218733316_0.9711442644177464"},"_hasShrinkwrap":false},"1.3.0-next.1599240263382":{"name":"playwright","version":"1.3.0-next.1599240263382","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599240263382","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8fuybPv16Z7cwqaVsNlkQaXdeHuR/2nFbVLQ8DR5b3RtvfFWsjUlMobvEWK8BH9x6Ylaz+jgAksXV7UdVICZ+Q==","shasum":"052f059b2c0f76c291ea29ddc24fa1f9dff51a2c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599240263382.tgz","fileCount":160,"unpackedSize":2413172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUnhTCRA9TVsSAnZWagAAtQAP+wYmkfkyVwWBoYQSQVNN\nZn3veuVdrE2IXWn2/YOSmEOHErLghxZI17FEcQ34jqGZEGlRknx7C7XPZee/\nl/5vH/QutePuJCYzNfBGxjLpmc1qKppKuGQGJtMLV3n9DFVrpTq7D58t885O\nSIQisxeeDqRi8Cer0zz2ASWE/Z811bbnorP3UlhB0MC02rFpbQupTT9TRnX0\nanheOIgQ0bPds9pZsnihFt/g/e/zKipGkuP+Z6y5ieiIek85cLQYMmXx2ieR\n92530bKQ1y/uuFzD776FpTrgvkAMUqQhFIw25NJyZpjoAUUE677mCGPl2iRk\nRbVNHpNUffGH7x764/5sxtlfA4/9IcqB11dNkpe0FY1LLuEL+qa1ts6j8j1X\nCicoTlxFq//7fTaXT99QWBI/yrtvbe1p6BcpWrx0QUC/TH5xOxSoNrGL7ZCf\nJQTsqIi5CJlKmBH8PDkDTRnyzVYVtgSBQtfgRjQM7VLqSigBkre4pvqX+oWv\nemGTE0FDGQXq61AITx+SOCS9eBukuO5i2gHUsTr8ZZF83k28WDM6sZvrIXAW\nwvMcY3f4cg10+HDaBBucJtvDxp40U0TWaZJgeX7LT/G7/nXekHSxdteCyAuD\nsRaeHEVeMIUsY2ikRpItv9+W7PTH4gsQOHdJJ3m+4Y+hA63z61sK4/hKWkCg\nowRU\r\n=+0ud\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD75nqEUQiMpHJ7W71jFi2jy5mWciIFB2GwCQsuM6VIEgIgHJtElv/8nplbeLKgVcYjrd6k2IFHOUQp4noUEdudeyE="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599240263382_1599240275265_0.8711391090161718"},"_hasShrinkwrap":false},"1.3.0-next.1599251789361":{"name":"playwright","version":"1.3.0-next.1599251789361","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599251789361","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ucAHYkmaHulzs2bMCqCRHGjwdprVKYy7nj2MfHco2Ex+eFZx+PBcl7je8Q+UgDFDUUEIWfOJNT5Ons4em05hHQ==","shasum":"799a069551792d6ecf9a4cdc790c9828d38cfe52","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599251789361.tgz","fileCount":160,"unpackedSize":2413172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUqVXCRA9TVsSAnZWagAAopAP/RamKkprsmGEBopaoRAa\nOABBxV3qQnU7pLVA0pvny5n176YmWCCLH7hytVdrKOvHcLfhTe6S96qNmxUk\n12cVwOrunZyVZ7bfh5xIbOqbfK5d6Y3buT2MkraiuSZdLHSMbXLIjNcrF2ck\n+Quv8pgfHkguKSFOKo29Nbl8rhUmslPdGvnNR9yaLJkonAtrw3o8pMSAHM5u\nAdCBOWTZycPRyvW0PUnLDxpJqnt4+jMT/7tx2JrCKF7FzAUR5XRJcNSDDrSF\n6YrxpzjpJSkiQplkwD2rMH37Lh77jwlgZetHT7CZjFH8LAAWXQ8g/gK1iTfw\nFEH8vRrwnQL1YDA5jwHRq57WtIjGoKJInnIWACo93OzD524npuXgR2LJ0hQ2\nxdnTIxXe3F/TaDaNRgZkuUEM/DHZZ+V8GCSeKzeu1eI0FSYKJRsAcTLFMspZ\nQyKPKiQuTzZvQkwppRm8KarxQXxfoJUCuKYBbDdOsnAF2j4QP7aJCf3a2R2c\nopQEIgzxtkquLoCnJPG+gCz54QDinGhC60ZHFK29xJqdnOMkjJP3WIFsDIEs\nFSy0zCWLhmOc7xWHplcCzKbgSHVn+QgmaCfymoom3baEUhfCnKD3wGs/97CJ\nXSGhg7U3tY8DN6oFVhsB9PkiWW92Bo4zRf33I0MTPUvQQoV/zhaakuFTx62b\nfXBc\r\n=gJY1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFq2eyT/Vpyp15CE2FNlopNyvMAgquEtdNwERh0DRZPgAiEA+7l/dYr21gdcaGYY03/qO1SmnI5zjzizjrn3IB5l//c="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599251789361_1599251799111_0.2220444636046479"},"_hasShrinkwrap":false},"1.3.0-next.1599262434183":{"name":"playwright","version":"1.3.0-next.1599262434183","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.15.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599262434183","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-E9Xr3ThIUugzBsKXBRnlGSqOjOCLWqmr33J2XV8W6M6M1heQSatZzStqtSKc19BQuz6mzdsJB4t7XXw86kJjFg==","shasum":"a6b6d1952d77ab793e649d9d878a966869e4c949","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599262434183.tgz","fileCount":161,"unpackedSize":2415252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUs7sCRA9TVsSAnZWagAA2KEQAKPn5g5JnLkzCDyhQgLZ\n/mHbXV77wsJx3ohd1Sv/NCNoSb8P07PW9a8A6+1KDXZmZ7jnpEfKgFEZAzDe\nPrX67IOi2uIyoODEQutN+VAppr2JFfBpVWlwb+kXqpJJZURHm5B8pOwid2xW\nY+p7aaIXlAylz2G23Qu0oRRaJ5s1bl+X9Y0SEKyHfABVrWRMT46gvpoMrScG\nq9zVtqk9w1Um0nw+Z3Yq2WY2OPRcVpBw70b99ttAdfzFKpNgcxKiKtm0oXcX\n3gsOej+e/3U5wSfShcmOAsrn71QTex4YBJyIV4i03v9h4+1Z6NodpASvigbL\nAAtjG4A11U6BmFriAa6WVAzYb5X/O+sbDXo9gic3HuZi0v9fhJbIjqhS5Oeo\nDPe/qp5bqDnG/L6UKoEQ2a1cYd3VRqoLWMrnBDuuLTWyfY1T9saI/C4RapeY\nv8peKJWGQOydDodYRrBS/hCY1J+BileOkluP4c3SddsTZeSCl7EXq79JqpZD\n6H8s9kjx89ulUZB3KMNzqAJtRVHetMhzVno100oFndbsn7LgfGfBrIht5XID\n2cESk6WeZyoMHVbcUHZ+tUAx86YXo4jN8/dqeUIs7j/Z29NU/FF4Zs4/9TR5\nNkEdYvo6U9oa75ou63UewzrH1ErfnY3nr/ebZgbvpKMyR4TWlwit9KgtOHTX\npEhk\r\n=uxhz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYoM+apwwKxcQWoEoLekiyqNzvwgMRmlOHMLtRvN9HpAiEAvJWQCROKGcnfyuMRR+wIhby+20MLU2mFFeodD/Taano="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599262434183_1599262443443_0.10509951207761103"},"_hasShrinkwrap":false},"1.3.0-next.1599265233162":{"name":"playwright","version":"1.3.0-next.1599265233162","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599265233162","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gMF23iuZmFSlZrwxmedLlYQLYgreYqgcwe2IVZ0CyaNeJwJwMnrDf8rSCXNb0Aod6CtgKYnwdK7NhYNROdrf1g==","shasum":"99f5c6ccd7b5a7b4a0ea78bc3da9c311d92bd532","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599265233162.tgz","fileCount":161,"unpackedSize":2415252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUtndCRA9TVsSAnZWagAAqgoQAJHjaU9IovzdSuaLpZIo\n6S3Va+UNN41BGGnHxDhgJCrtWrzJfbN1Z322TnZfWLsIWvuIBMUcU0BXQ0KR\njLMJ9r530HIZPyd0ffwE0/pdZU9m3YDf1T8Rqu3Xw5lclDarsx5ZUdQsAwZo\n9z1/jPGJ031OefOPaooepMRhJMINY8SCNfVQHZtvNw33xHXjzZ3aX3muCnuI\nxEQm09ORDb+IHbU/yuY74T4cfWWu3NmUWjYiyfteV7mK30977lGFPBs//ddI\nUq3u8Dxz3YHf5Lnk41KrJI9XT9cnDemcSX8rboosGaZ9e1VslJc84y7BgsRU\nzouPkiDn7tlQmi3zLLVP5teMAF09VmfAj6V7KnYZRCBRdOFrqtH5kn9BlTcW\nbjG69W3ojSfsQBbfi71qNraUFvGGl3DxS3hDC+S8J8oAxOKCoHjteVLG6XQ8\nTNBIul6f0/PdADaTQ653SDd/WphDhzU77WvVGlsrqiukPNnUf4dYKDbZ4If5\nqgKkjxYQLEb3jH2hfxxxDXD6KvVHRRyvYcegDKoIT0w+83ArluU2AciAR+Dg\nAiKGWhfwcwC88jRllPQfPK/uf3OoDjFcsTX4t4HJk4Nb5dbagCuNbaOz7Snu\n8b9/Z34XxxSMnIVv7X3QDganOdkpQXwHc2cAemQ3+RYc/KCplReMxLenVJAF\nf1oh\r\n=bxAK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLKjgB2UNhNkIZl/71lXu8qvxzq8wN6nUUm2rZsQ6YVAiEA/QUTPAArhgyNKEdYk0wqn5qYGPadgNy2lqpRK63PDi8="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599265233162_1599265244417_0.748045377551424"},"_hasShrinkwrap":false},"1.3.0-next.1599284371649":{"name":"playwright","version":"1.3.0-next.1599284371649","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599284371649","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-G+DdPQKjGI1NffDpcODRkqQZqNu2KluruHGN7REwNNj4t4cWYP/6XStMs1FZLzWUawn7u0ETfSZWXC4JvBem4Q==","shasum":"02c0ace994eb265f6b275a56fe1bd116409fa967","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599284371649.tgz","fileCount":163,"unpackedSize":2425018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUySdCRA9TVsSAnZWagAAHl0P/2MHFTBuuVGmtxyTYnWL\nAxApuBixpAURJYhbgde7wJd3xna2J6AlwqH/L0S8Q9gxeims1XEWhX2JSuXM\n4k3uViCRnfrnLPJ2Zfy0TnvAAWXcMAEV65PO1ACPCYUOKgVRqxhlnQnMtBP7\nLxsoytBPbO8AyDJTD2ujoEb4Ve8LbWe8D1nqU/f2Ycp04QABpT3jpGPwH6w4\nK8N7upRdiX0oatmVNsBSr1DrIKVSAd+VNW5mTl/FmlkjsJdYI5i3Q5y+3/0O\nCuLFfW2Fc0EfCC0feTGrTgK7u6xqmwPCuU43skJ2/CgsHYe6DNGUN7eDUGh4\nJfmDMVhkAXLBdZFSXdtpv196q5a/2RdBOvBdDE2Xfeacsvef36PtEZoSqsnw\nT910W/cWaCxe3+E9bzsgNSBwe+6Pu8/XlMKSuGh70gVfr04QVtSr8yiHis6w\nomOX/zoJpZgkLtLGjaRged6pyeFLGeo48KKe1VXG6muCFslEAPJ3AmIfHY1B\naXEFtus1YkIfR33KANnmhMrghfdhlQAzHZXkbikLXbW2HOdb6thkVThkjbzC\niZCPV+Hm3IbK5nQQ9FlOKFltqWUqXEssBLZoxXbdqI/BBBnswBWib2LMPsbX\nsxSV9GAO25EXHnpPYyM+/SdI5oaNm21P+civasxi6C3ld/GMJMSMWs2ceMwW\nN5JQ\r\n=eCh1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECf5hsgyuqK4hrLd/ocG1dcSBBYQP+PZNCQJSYP5BSlAiAPUQ6Pvza6lMbmri1ccbjBAUBxIlojW4zk46DLmf3Xbg=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599284371649_1599284380435_0.5191826031226854"},"_hasShrinkwrap":false},"1.3.0-next.1599370823388":{"name":"playwright","version":"1.3.0-next.1599370823388","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599370823388","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nOqhXhkEE7TatI/35fR1DHMvU1g13LaALqvv230/ABY74NtNM1O7Fyo3B7ah53cSYI0C0uaXSeKEKlsaINDK9w==","shasum":"eb92844b0f4a0f452c1a2f735207b1e61fa9c6b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599370823388.tgz","fileCount":163,"unpackedSize":2425018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVHZRCRA9TVsSAnZWagAAxPgP/2zoDcEGvTbSvwVJepwD\nrwH98OezClFAwDiQJkVqwVILefL/Nrq84xFh15TtJRrO3p9FwORWpfSCmwfW\nkDtm2NpQwiSimvdecpF3Li8IZWy3/jrYU4i24fp8hwlIz6jy+DvR2P0cs61X\n9lDEXGVqYadvTWn4rTIpiWP2C1DViXp5bteYUd0m+cuLVWA0lUEBPbSwo/Je\n4Y4GE+ncPNJ5niYgl+mA7vR8bnPK6k4advBG+9jiuDS0KP4Hg6QpPxwW2kj9\n3yXdzIJT9PBTcPqdr9RMk08qxm/2J7BIfm5qUCqfxWjgHlMGtnGP/y1vYCsW\nCYjGysiAseboTd0oHbfCEKw0RwBbHzag8hk+4+6xc1GKzwsOih3GU+RLXb7R\n8Kgh6smf1/9bOnBcYYEaoUOrbW6BePAbCHvPx+M4pzUTqB4v7TpZ1mM/2rV5\n8tOkNkWSAIkQkag96uLvffiMkvr3oxLkiMivJ4DXhnP/jS1CV6KZYwlc0mw9\n+PhxoDjreiX7d9PU3nKIDZJ8twKuUSly5c2jKI5L8/LbXeTacUiCLFONUJan\nYka0eDYt0xylQv3QjbfikPAXrY8hu++paw30GwsMZvmQyEs3k1DF0sx5tyTt\nYu7ioUpxlxL6BIzAucjaaVyeuPYb0Zo02AtEP7Qv82l0YWedH1EIj/sil9Vc\nuDhV\r\n=G5d+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG68jYSkwMKXA59ZwA3K/YkIOcgnQWhuXsdq5ut33k6gIhAKV6dL0an1x6tdzd6WaUkghabTL0l/bxJHc1jvnnzx0z"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599370823388_1599370832955_0.9205479633315794"},"_hasShrinkwrap":false},"1.3.0-next.1599429518127":{"name":"playwright","version":"1.3.0-next.1599429518127","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599429518127","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Gm3NzFW9+C6VpWCG0z01eRUsF933lh2yvkQC8mYTRR+7r73ufCuw0kfcuypdMldBZycGGr7fXVLpuBE8CvkTUQ==","shasum":"5d0c3e2eaa4344d9cd777d6f4f9b9b823071b38f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599429518127.tgz","fileCount":163,"unpackedSize":2425018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVVuYCRA9TVsSAnZWagAAMXMP/3gJaYYTV4gEQvDlPeY4\nfSHtRaC3Kwq7EJrSeN2Ox0ocQgaZMsqTzKq1Qdj0NjY3xk1/WD1DQ7nmlMyT\nxCYBnQmJwwZbEoeOc9lBWhq7xdpM3rLUaZSWMmMqv2yz5CRCaQpc8Qbfjr71\n7vHcCj7eIdJcZBwucoBISwVCIEQYZ+NGm2cKqGmb8wZcEgVvp4jQaKZYwVew\nyMByP4KhGy45htX7p1Gdazf7S0sfMndNEIyZVwvPFg8sW2b8sfoJwZsHyUcQ\nplJYEerxK0HTXFDEHzrRzm5yt/RUcMhiyisVX1+e7sEX0ce+/ihL1oEfy9g2\ncaUsz3qfb5gSbo6ZRVmQ8Wa78VaXap7VuuSpDmi4Nf+jeh8EcbBwnSGk9YPI\nHg7rnTd7J3WA7/Vb+QiTwMJ0khKZJ2kCVtymdTJ8XWTrx6AlnHKeR1G8ucLa\nf9ylorq6V8nsLgglr1itH+UqGAViB2sYtUxqV76a02vKsCBnig1UHKbH1Drq\nc2xw6m8VEcx1p3Za0FsZlAeaEPQcEdQQISxohxZfkuLsbt8nFIMpZOkrUsfP\nI/JQWnQquXTewmo08Q0r+6wHM5WJiuVUepyUfTcLYEh2jxomYIN+7jYdXju4\nZ7OCr9rBGpF0yqikJCXGT7h+lnbYUr9Y/UE7PxqLkdRuX2aTfpt9R4mL81pd\nK4vB\r\n=p3Ij\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDI7XF89HkV0VB4P1EQMwOjenr8/sh403tOqjEnFcvKSwIhALFsOQaSycZV5XAHTcMaLMtA1JZAcE9MDP0SPfoE9Pjn"}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599429518127_1599429527444_0.8147718680981748"},"_hasShrinkwrap":false},"1.3.0-next.1599441702196":{"name":"playwright","version":"1.3.0-next.1599441702196","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599441702196","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-3ApOEX56hZnhhz63wKbmiEPSWOPPkFAorTXe1QfXIKIV+oIlrdZ5ijni7QPLC0kwurCZPEg4P2TMfOmalRzYJg==","shasum":"32d4d982460084fee58a9397f2bff25fa1eada1d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599441702196.tgz","fileCount":163,"unpackedSize":2429627,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVYswCRA9TVsSAnZWagAACXAQAIxz2+m27780pDkBvGoA\nlIVl7NviD2AwS7DssBk8MzTSyjvK+LZ85G9aIe/Ii2WOgg4tcYps8D2PK0wJ\nbcGKD4N5SHJEh0rXCR+RimzX1Ekx53dTOAqm3ijjOXqVCajs27PmbzvpLCW2\nKuNTfFiQ5n5WWJpyQe9XGUvhGgqghV7YAZKXsSSFpA+CffH4EKXB1JGcygHg\nWdMi81hq8Ei+drPVNQeYZ/A7/XCxb5GwHfKA02k896dLeLuC72mbPG/5cPup\njqvtY8EjRu7NoYMTQWH5tYBy4XtTQbuInmzn1yi7h+NRDpPPmW3c1EZaHp8X\n+xUj+SDw+SnRfHwGdg6X75/dQhZj6/6syQ84xWBfOEcrdD1Tyw9lh5yvGLya\nhOk9DNdiwvteiom88GLgS2WxRBUrlMq6QQPr9BX+Zf8MLebwgGd/y0j6REaM\n+vcqTejq3KvNueATelnWi3MTFKMZH9moMxYxZ7q2aCPPebdA9ZhyRpInN8Ia\nrVeuqAxMh1JWEkvyTt2AWbBGIbJubH5Mk5lHfX5RkP/cgv1JzNPhN6F7kOGt\ntLe/RxmB8qVn7v4yxxaRWE6PsYGKEgy9b63aeS0wjALPetV3nmFqMN/b0q3e\n/Umw+/mva86emULv7CjPjKHydtrfkBvjDWwRMOLFRlF+9Uo/v3MyjcNYx5mE\naZHX\r\n=dNSQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCypcRz/UYeHqYr0fjDFtIbkCynLTe6cXhAtWYD+/TMfQIgBO0aqRrRgpJecj2k0GsPyVHsG7XXleLY+7ncCPUGBtc="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599441702196_1599441711539_0.19321222638484659"},"_hasShrinkwrap":false},"1.3.0-next.1599453530390":{"name":"playwright","version":"1.3.0-next.1599453530390","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599453530390","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nBk4zJnq2xCjyvZILiOpXgUD05N8OE5tD57rqGOZ5pBKl/BkXneEAWU85CdOritILMUGSLosmqU6SKAnzV+q/A==","shasum":"1c1610a5313cddbc3ffa24e5f9e2c6173ea88e2f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599453530390.tgz","fileCount":163,"unpackedSize":2429584,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVbllCRA9TVsSAnZWagAAALYQAJmRnQBTnQ8HWtPKYj1r\nqKEsRQvWPlltDgQ7lYQURLlczyQOq38mJPgqwcCiyFar5NRC6IaJAb8bZOYq\nyYyOYK1q9NGlLV0JoB3ojibc/yiJFmCjNkaSPDHj1ZsRoFiujRpqvaA9fOrE\nm+gSkflao/1XFOKxdF9fhO0FwP6/42Ae4FxNxAeuAOX2L0IJo4bg3hpY277n\nfWL/HhOqyIPcunB8LFXIxAn7yzG6SKs/7k51s6LFViMQEIpTQBN18RD/jL4j\nJX+Tuz/02LHLq9PvMPtZDzrvEGbSKy5/SEHEa9/Ua5GSqsju4K+GOZYq+KQ0\n2egfbKeih69ODVJPBKNMiSKFNDOZ0Sv+GXRWyk//GMzl//FDmcpfBqEYA4p4\nyCOoZdfHYgbzx2wqHyFS5GFoPw8zub06bb3EiGycZXRUTyXAM+FeYVqdVnTO\ng3RalymPeTQ537VV1uf8JfBgCxD9BH+oLXs6/zVmkdKgAd5VrEaXgxlNvJx7\nen6m1vZJgxqfCHDV80Mn6V2B6I9lOGCOO4PYHx06Aaikhmbbv3kSFwg7/f6t\nB1De+aocijBiF3acIuFoS4PhUJAZxC+n1/GTGvvlVM3c+AM4zNjwBptnRlhQ\n2Uf9GGqjpxwDrCwrhV24p0Q7/GOegq4ks+zranS6Ihcfr0yCSTk2Nz95As0j\nytvo\r\n=PyRj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDMRKnrKU94x4IbL/SMrI4Y8ZAZyLzZ8XYa7Z5ajyO70AiBTH30+IV56Jp5M3z0qTxVi+qgzhCKB2PxF7QE7VDTN/w=="}]},"maintainers":[{"email":"arjunattam@gmail.com","name":"arjun27"},{"email":"aslushnikov@gmail.com","name":"aslushnikov"},{"email":"dgozman@gmail.com","name":"dgozman"},{"email":"joel.einbinder@gmail.com","name":"joeleinbinder"},{"email":"jc@trl.mx","name":"lostintangent"},{"email":"pavel.feldman@gmail.com","name":"pavelfeldman"},{"email":"yury.semikhatsky@gmail.com","name":"yurys"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599453530390_1599453540704_0.6664830789586069"},"_hasShrinkwrap":false},"1.3.0-next.1599519120622":{"name":"playwright","version":"1.3.0-next.1599519120622","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599519120622","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-hEnVroCWWElSXjEU2bDwkETOrlHhN0z4GmomMsdVnu3IrX66HSZ8epjCT5/F9h3BauJKoQqyTu3oFkFeHbVmkQ==","shasum":"6a8c710e81f3e748dac643141028896099118f03","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599519120622.tgz","fileCount":163,"unpackedSize":2430302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVrmZCRA9TVsSAnZWagAAfuQP/iTXybBfC6lXNPOa8mpY\nCYHyN/kDlf76USiba5pw/kkeyC7JUjz92QzV0IgMa0W/M5GhH7/QLDtmUgPJ\nGNbYZe9Qg7KWoILzW6+xojCbrGi+ewuGCNY64JED/JipK8x1yHCogmKzrvq+\nGYgVpuZBFGGg55foK7uK67dmcs2O8tLQmLejJrLepstFn5oKdmWCrMBxiwWo\nMLecrgtw5h1yKUeitzVxYQ4cq1uBIal7PlgPnjVTm2CdhX1xKrH83RCLt0kS\nmVB5RSKK4gyaigYaPQyg1lBYGPz2v3fwX5bkQ7ok/vo/+kTYxhvHSED5J11k\nkeOzXhQi4xDIIqeC4cjMSkYJRVHkxP32B2Rw8Rs9q5pfsZ9kYjR0e+uUCvWO\n5rGUj3zSVjFzJrQ89JAtWl+kra2A7DO20xaoXV7We58QqIDzwwVr2Mrhc6zM\n3Mb9UuEbzA69mmRX+0ugjYhSKyiljIJafNG+gPj+xBIBi1FtbOAJ4Rwn3cPS\n0TGou16/cAuI2HHF111ZmBtNtci/SCodDMe8N6qBqGI4xyc57IVOWefv7Ndf\nuxaerme58WrutiosMfVWqmTdClKjXJEOglRTZ1u64ZYD1c2tTJYFqgRrvpON\n/hpECARXOzj2xH4D0eFqDGx+WURPiGibnjSm8kgIW6kkWX3NSmI16L1D6DKh\nguvj\r\n=Uv0n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8wu/B5Nt05EQeXKH8Df889jNBU6nBZ6UhdML0j7gZjAiBjnl7cZdGMuD9Xs+Zx6XvKICg4Mnhk9xLGunwUrrA1gA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599519120622_1599519128805_0.7630261980492519"},"_hasShrinkwrap":false},"1.3.0-next.1599585741808":{"name":"playwright","version":"1.3.0-next.1599585741808","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599585741808","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-HlfbUHsw+9F+f72j/wUBtv/vi0qsaB7uhCWRcub7eUE04Z0rAoe5lodN5QG1jDFULvC2hOqdf0S1a4b9rlW9ow==","shasum":"969127c4e15e7341764908257f90a741e48bb67d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599585741808.tgz","fileCount":163,"unpackedSize":2430302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfV73XCRA9TVsSAnZWagAAl4UP/RcQgMDrQQtn6nc3C6rU\n4625zATegD/UQuVlJCBsi2NLRdCH9zEztz/lO/xEehZ9IxM/sVdeCHY3MjuM\nU87+Yb5Qkk6kGxVnK5JRDr408YigXg75EDwNUpMnkUD+AxOdWX6SN6JS96Qy\nf1BLmE4TiUg7CIsvNbXrCfzVapY2X2dNlaACgA9m81ZG5U9jkKHkKOR+CYVF\nunVKHl0w5ic9/mE86sUYD2zEIlApHA21HkemdIZVC2TfXrR3lbGdxT4qHJWR\nH8t4VTTwzAuav4Z3mj74RoMMpjszYSfTu+Dalkj39MO1QzPPZecaAu7WHMte\nxhxCaBnGi36BqUk7nOW9IroRRlhuJBBPXZSFASc0nqN/MynCKA9tCHoXFVXJ\nVOPU46Fi3gKw8+5qxu0FsAX00ewBICpv1sm0Xvz9I+6bAVZEhJYlEPUkvFEo\nVuJc1vzFDa2e5Yq+vVGegzeCW80NQebx9Ew1u1cMTLPGhk8Ve4IH1CdsEN5D\n/RW/mUAIvy9wmQfnDECJH96SkKvtw4N2hFEgekgpAw4h1rHYUQ3jaLu8Oh19\nHRyF5f4NU5vt1dtXDgtu+d4Icgn3pNKDlijk97FUDsgiTPJbl71ToiFtUuKE\nCVYcbwuXaWY5CPNm7Unvh7UeZlp0kuemgy5wlVsZ/yTLXa/VI63Jy+dz748Q\nmvHw\r\n=kgui\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/+WV9x/2S70BV0vdu1ZdCjHhnnqaRtb56m1v9pMdt8AiBwbRB11Qs1j73JdbSyp4U/Le3zkB2/TPknaFtM79Dq9g=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599585741808_1599585750900_0.763456264092842"},"_hasShrinkwrap":false},"1.3.0-next.1599600327082":{"name":"playwright","version":"1.3.0-next.1599600327082","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599600327082","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-OfPdxj5pMjl0njTFkfd16AEhFwaOG6Jl6nojmXSQZ/3QzKkZky1apGW4lB0fBiz/jKumo0dHUJapYDvat4Ktqg==","shasum":"de3d6d14a57ae94c50488916c52140cd68671b1b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599600327082.tgz","fileCount":163,"unpackedSize":2430302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfV/bQCRA9TVsSAnZWagAAdXIP/A6W8iZXIrl/55z/N5U3\n9IBXdiRkoEBp1Uk4lkH4thPpT/nBNdIY/gRjsuqx7HhJxN30//fUenHeBVPY\n7twTVO8JjUw4sfxWAOjAUTAtryEDbxV4XglfmvqGzwG6G3JvjaLOM9PUxHJv\nObnr1qR8ij2Qs2MtmoC1zfYtdzCOkJnp+lYBThbokm9YwQbED0JIw6wMKzyT\nNyQgKzxNYW2KdfNZs9PO4qJrx+cJCFjL1E2ondYjCPK1Z+zWFEVp4zu4nygN\nCq2QaG8TDby9iK5FMD7fquhGLXXAWOscPsii31XPRcccroXuUzhniDLjgNz7\niHoDhCAAKWZ3xWe2Cpy4vjEwqRBpSrFJEMeFnEFl7O+yU+NIh2Wl9+MXlUUh\nAhUgXH6FjNJUnIByn/HuqGZmNqDylQVITJFXu5GVj04REw6U8sNaTlHz7xSr\nqeNukldTWMITnVL40OYLKcySNCTXlgUhK1kdR43CpzljrXP3qJzKb7x4MtkD\nymUd+H9SMHon6FWXdqftUKIZjte4prbX1R4/u5Kt6B81yVPUtw2+5tKaVKKm\n1uo86YixfPWaMnecSqWcdhLKNI7lhF34vTOWDSLfBkasyK2VfN7iUuuKg3wm\n4ZiLq1q0HF9LlmM0iTgYQi5Vbss11JwTqvpHJz7SskIo+XgRY3cVfDX3H4WW\nXP3g\r\n=ITV1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhIDtmJxcv3ZFLEPQTGHpDTYSBj8FT9xiiDt4EoNv5jAiABmihkqWHvakME1OjJIXD3XzJQEnl4k60Ht9JK4tD3OA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599600327082_1599600336048_0.6057475703933481"},"_hasShrinkwrap":false},"1.3.0-next.1599603173494":{"name":"playwright","version":"1.3.0-next.1599603173494","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599603173494","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-FwtybXZc8BWO9+O1pg2pp/hkJFR2AZRNPtwrmUntfCapJB+YXbblRxiN5vgtWO+nQ2+YTJDbs60PKuuu/yaMOQ==","shasum":"3eb8d2b3ebd94312ab285433050cc5dad297cbb2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599603173494.tgz","fileCount":164,"unpackedSize":2436842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWAHwCRA9TVsSAnZWagAA21MP/jHiglWiYva7ZS+URaSA\n1R0rmV10OLBjWbn7Ukjn+zow0g2GzVzPmos3UVSpBqswm3eWJhfVGTVnxNWt\nAXnAj+3NGDA7rO8m80nSKswCFOfPy/sYnXhI1fYl26UM0TlLNOmnoSMHHA57\nI7V9Xo/v4IZqAyy4SMhOY0HYWthiuQGy1KDWLzrmufSVmji/Z1fHVrWpd8Hn\n86SENncUonB4RRP1wPAZ9R91MHLXCEg5fx86AhBzq6XNbXmscy+MPyJ3nmJt\nbhSLOadhU+ybUTLrJ9+k4DWOisKpvSo/Eh27LFHEmfX2m9WLvJlL6D3Y+/GI\nx92E1jp1V1NSTBjq85y2OmlloqiEHIEcWD/+vdkoSa/g6fn7XlK9ndSBXbPe\nbL+/P4+wRGTAH6lDPrfJLPgkyM2KN3nUk9+EIeV5eNJOdNICUTtrAWun0aMi\nFBpaYYn5YTmUKvqBQZFiydQh/OaiLIU+Wloi7j7Co1vyqAqtiegM6y4e26Sh\nhWxbbkQiNP+bBAG2W34EdK0/ZoHT0Ctix+B38RDuPbgBqwHr44wsxJbTaxrW\nPR3FRx32W+SAe1Amz3rEFevfJl2gNHo3dGph+q19PrvuEFtldn0jKcYJIJud\npfoTLSSM6wV+eB7p9aX9GE6gCf8VWi3jnd6V/dzn5DXF226Q2jaASF0D6u44\nB0vo\r\n=e9V7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDB7uqhNAFOV4c4oeD8dHPpiNJlUP/lNvch7CuB4zPmxwIgao1mdJBUPiRpYucueywM33SPbE8ojwynr1yZ1OfqkFs="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599603173494_1599603183595_0.22553944927173575"},"_hasShrinkwrap":false},"1.3.0-next.1599604882492":{"name":"playwright","version":"1.3.0-next.1599604882492","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599604882492","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-u9zudX7PAE58zUdZuE1I+rbUgsuvp5fEuX8eND9HO2BpjsBzIC7WRGapQqQDmHjAAVpozO+TdR/+djJ4cdahMQ==","shasum":"bbb98fef755828d8bf029dc1c25808f58d3dc5c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599604882492.tgz","fileCount":164,"unpackedSize":2436866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWAidCRA9TVsSAnZWagAAn2YQAIR+Tvjb2VQmad4nBcx3\nsPQoOv/qzK5hCR5gknlGtAuGVAD52exkMc9AzCjrL1Lp6AkwoSb+nF+n1nLB\n6qob31k3DV1dHhXqswyMk+gP0q3WXMccIrpjD4x3PVqaKYEBGRsu+GfA60P0\nUm3QkDEX1ioBLBicIxkni3lgX2r4mAhrwd6PnSs8/CBzlfxl92DFpyjQZ2/k\nj9BPBypfDYsBVZoF13rJ4c5pOWP5Od8dgTsNLk8pfxlubo7hvm1KmMUp5nkm\n7vdEVnMNOoI0WDeMc8iGul5wVPY/nXAWfdgHH36GhGmNgUrWkZ46/n1ljj4W\nPXrz2LnGaCs4pHmuE7LgpNDpp/7I1q7q2l/ehxOxYvRvvBzTOjGmWrQVshQT\nvPrrMl7PVbnqHyKZf0cSnBMqWpP+ZHUFQzan6bUzMn3cPjR/4+bKzCITRnWH\nP6b+/AlRLYu7EwUTi6HUmiI6/FsjXZsT+u834HU1UtY1KwIWwWd7mEAM2TD/\naZXZ0YGgMT1Dg0dbMTcY4FLpmheLMEBZjdTw0crjrfCF5P5iOLBVi8st1tNu\nzF2kPlvi3cChvBeUy07mfR75qNyienQtIkRKN/3pgHran4B2Yl6FgycVJBOk\nZAE9Qyu/AWWaOM9hS6ABO1XL1tmYa22r8sArgFukNkwmUHBVDqK+Dvm1L0kS\n92g+\r\n=opK8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeBfyqYk+xb3AEYz1QxWpbAY3bcbTJwuP6BqQABTJr6AIhAMoWtT9azBA555TVTT2ME1V/zZFa82zAIVlDmOh1G6e9"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599604882492_1599604892628_0.8571364267007617"},"_hasShrinkwrap":false},"1.3.0-next.1599606174214":{"name":"playwright","version":"1.3.0-next.1599606174214","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599606174214","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-mLbKtJldu3jQlkZcOLJVMvqh7RB9MHpDZ36BCM2XMhRFPw/oq5ZQKFE0YBtpTmbN1LCbx2Wts+gpaGBVc4f5QQ==","shasum":"42a0cb09c1318779ab54647d1ae73060031134b1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599606174214.tgz","fileCount":164,"unpackedSize":2436866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWA2oCRA9TVsSAnZWagAABD8QAIMBcw0j6ujRm7RxQ/Mt\nsuYScAYnDO+6YMFGq6dOdVDaVz/AJqoTVFz4h0gy+LvXQgmn+tjJlV4JNN7o\nUPkjjsFtbbTp/4wg6qvMMW2IBHZGvluccnUyAVJqXbf9axxAg3jdZheGtG3L\n79VLOnhU/p8M7Ua32YjYPzvdYe5R0bMxdVv2u2nlgV+xX7U87qvlpNfvthhC\nKxZr6/0mLpQiF+3fgvZ+vy6sw7JMfjTg5D+xdEzfhki/9nic7s3Kg4l9SA3G\ngqzbK+fHISpYguEsUvo68kd+I6bGGE2mTyIh7x1i71n5I/GPWyv2r4FnfNth\nx5b+0y71pc+WmAt7QgzotV9mBovoy91jk5G6hdsntAuQ4AEcR1BC91xVw1JC\nAyDw+aYoslBQd7m7XOsYgtOZJzQKAeAbgxLtOTMwp2fjBI9nbZ/tKMhDZ+6D\nH0k2PyhW4uF1hXW4jRQcGsJXuvrNtjSzIgIDT197Sh5+CvI4f0+I5V9Dsu4m\nW/u8YebBscRFO/BAYp7jW8xfPS6bDPAPLmDC5DXgTqWpiKiCzcx4z+aVtgcl\nPO4UwpTEIlVHVYuxLBe8TFoDBDKdkGrUayNlQDhe43A7ljkfFg2CMCBikDUb\nlgqfYqbhxEI0BjIXqj41MgeOJL/Xf/kFtKGmTpp6kq0kjU71m5OaSD5EfstZ\nLUxl\r\n=L+DO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGy8xeT45StDNumhr14FIBJVL5kP+0XCKk2ytwzID9jSAiBJEocDNohNIoIKRiQmklNC+ARvgMOnPh9xmHQoNK2qWQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599606174214_1599606183938_0.898285975554759"},"_hasShrinkwrap":false},"1.3.0-next.1599609772758":{"name":"playwright","version":"1.3.0-next.1599609772758","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599609772758","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5mbh8BQuTRezO+1GePyGCViPKBjBF0RJmJPJA+fFCJ1JJl4mv/LGD1tzZcZ3Hs6kK0O+YPp+nc4RcG4KIKxYCg==","shasum":"eb79dcdfbc082b01bc8f32f65f6905e042d20ba6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599609772758.tgz","fileCount":164,"unpackedSize":2436622,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWBu2CRA9TVsSAnZWagAA0aAP/RqWYCHHb/TD/11whJKE\nYQuom9cip9/aetRk2uZnmPU25P6+YvoDWnVC+/48GHIsL4aoNLbkNF0o1osf\nVq47JUAd9HQtLITAIZVUO7I9ee2n5ukRZkMvaIEfJuFal2U52eZa52oDUAjC\nJbxis0tcSe89DmCiqGbKGp0d8ppcDtzEPLK0vhUw28nTbxZu7wL2ZofvRDvE\n4Ex8CIaF7z/GyZQDSqhxqwXDz3W6u1B+CwAvweifWr2pIDSW9ZqsyfoI/TNW\nIP2Xn9q2wT/xEo4trrggXeNwZOri0Rz2YAk6MNGXqbXPEMteZ9cLvUjoFT3C\nigcI7nGKUmh3WPSFckCyEmXLNCwFoe9y81MGL9pxTUcQHQiU87pLQ7kijYsO\nz6KnS1AeDTanBVpvqeU9+4+KovJUgyoxW5gNq18aNdJZs9E68GGec1sDaqzD\nvUbSvukqZec1thBwen06nLVfOANNeuXPr1ByLGBYz0F1wbOXcmYIGyS+QiIS\nBjRObK2U6IEv1f2cGdnnpZod4xhjB6YV0TarMzbc1tVJT3HTNlG9SNrt3LMM\nvrSL+XIwcM7rhjYySzHNnE3OJiNNRz4cNGQDTrNNn2kB1sdHsfsWztKptbaH\nZ2xaQEWJYavxDW3fg5x4XUzHvBYjCRXjzW7OiMNQUtBkO1nQV+sCt+aizexX\ngKbN\r\n=JXI7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA+Y2GZ7ogmBSsMYqfJfUOSs2Y4tmYyr1gTS8g/IJPPCAiAA1VfegQj2up/fktryMTUsEnv6+Ga/y8e7ppI578Bz/w=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599609772758_1599609782086_0.5884258701757092"},"_hasShrinkwrap":false},"1.3.0-next.1599610063618":{"name":"playwright","version":"1.3.0-next.1599610063618","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599610063618","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cDssqcrmvlFE0iDT0SmZb2vNYvurQMHAvpyg5IPUgGvYgWvGDOfrFmnQxSQ/CaexgtOMuN47q0ax2zl2V+kwxQ==","shasum":"4d88633d3581cbe08f3a2425a6229fb8ad0d8e2a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599610063618.tgz","fileCount":164,"unpackedSize":2436626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWBzcCRA9TVsSAnZWagAAlKYP/3McYMOg/AlDN3KWn6Lt\nyTlQDO5LkbGmTiERDssgoBah0ZIOMGP3OVC2MlD2H5P8a1g+fDvC+tYHtXF+\nNviuDfjbAUelHE/0A9VgDWcm5ps23nR6BcmTXgyvL2NCK7l8ns5JroLY/rQP\n2OqSwLArrZjBzJagdQJZwe2oCVI//lZuyd4dTrlcNMEYE8ztLUnag08kLVqc\nXT95ZmZHu8zU894JgtskK17kdZrsipHfMQh/SUIzo1mDZ/dIldUu9oNsJ3dO\ndeYkgjvrGsmjYKGq1io0et2LfzuOlguVFjcXZ7UXCDCj8z2kB4Es66JFJUI4\nOSQ8hvGiApTYqCyfVtegSHG8+1xxlvWUFKWIjtBkaIGYoTyTOP9+EIqws9YW\neBSRUlFfqVRAuQTkGhnjiRLpST35D78hfLopLa+K+6j7Ny0hs7VQTvrZVn1o\ngy27CzOy8icTF51ydEiKdrofEQ05ChZR3ANGQUsCIov3xdPWTUZ6jd6KJ+9G\ng7r5wmdP4eCiAA/6Zkq0KrRaGhGpyvxu9MTNGBa2gJKOrpU+Usgfr9obkkHv\nCsSJN76QjIJoi6YWQ57BBxebRNMawucB3Y2TtlNHIgl1uxzgmV1IdJ5IvTdP\nMqkmjbSJvC6QxikAQMmJT2xNVHprX2OGiTqg9GpHYJ820jgQdKhoYovIIuWR\nzWYD\r\n=ZgkG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8BWGsrZbIQQNuR/q/G4bQM/UTWrCXEVP0wNUdyEn7uwIhANyHfjFaYXo8bw7HP8NgbHosE//wNluYigCu8Td96S4X"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599610063618_1599610073068_0.0392654881112513"},"_hasShrinkwrap":false},"1.3.0-next.1599610882935":{"name":"playwright","version":"1.3.0-next.1599610882935","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599610882935","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-RnunQSrvtvNF38HWmPqHHfR46ZmN71nAdeO863S2j3b4gMmm1w8kO+NlhQ3nsJZrrT/wxWn3tfkO5dYqBpLoeA==","shasum":"8979eba99a406707fa5cd688c214c0c3fe23cd39","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599610882935.tgz","fileCount":164,"unpackedSize":2436626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWCARCRA9TVsSAnZWagAAPCUP/27WWm/iJins8C2HlkfG\nYO4ZcFMyvJdK2qrgdgVNAl8dqBHra96W0wud9MA12/ae/mko7xro1rhxNIJa\nI045CzPYkX3/NcqgNV1tCLTV+3Wz6vk9JMnfInims+MPQj1SdszS/x8yKNNd\nYCcDg8XErYtcsnlgGCXTSDwnrg2pjAcwyWiY8mZTzn2vpWWGCufndrG69YR8\neUuoDHEZEct+bTgMnWYy66joY55glmWEfMUpt2x9AnNh6xJIiBd5gWBMoB63\nqNVAMpCLa/1rjkM25dCWsVbnUpW172vr9vgfVjFAo71X61kPMXorCA15U+rE\nUOmVVGGTYiIQ3eTBxpUQCbb4wveelLTBgBcK+Fu2PuQcIdY8+zTtsBsir5ux\ndHrmzhyd5UG8+LDEUGbc9XYOBWgDMviisRE8oBiV+9dtzfAGaWTjn/yNAkal\ni7Imdxu9elW2PSJJSwVo/FpF5lnkLi5w38qoSsJaOzT2nPBZupAoA7FDVQnM\nLKca9FlMz+UDlC1zuuHix4LgP5TYYgaRu077+OX3/f3QPnfDg6l/HdRKRka2\nmjGo/hGqytBhGuhojm3uD0/CyF2wA6stUJ1Vyt72cCp/s7BbCu4CaHWTDVMe\nYf8f9Dq7/BbzoRQbgpZHrWNvsko+L2k+jsaWB+LkmuJsQ5Zls0cI3mGmoPsU\n120S\r\n=e8C7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqufMsm7eOUHPpAcB4vOTx+LdFWda49A4TM5VhJx2YtwIhAKXeRaza8mqSTJwn+XWCJefCNct9Zq41OAi/mkdty1Gq"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599610882935_1599610894227_0.8530523389103899"},"_hasShrinkwrap":false},"1.3.0-next.1599611408173":{"name":"playwright","version":"1.3.0-next.1599611408173","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599611408173","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9p8G1+R/NV11L60GCXjmSYTP/QSUo99cL2rQYz7YRMSkGBSXJEzh1hiWMS4MitziHcQ+USDeFVyMqQcV3yZR1Q==","shasum":"a58e71a0a054e03f523288f7a2bddfd43b299897","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599611408173.tgz","fileCount":164,"unpackedSize":2436624,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWCIdCRA9TVsSAnZWagAAFFIP/j8IbIHjMWP+9I1dI5i2\nmicalVHoW5x7+QPtnMudK+23dMKmTWtT27pLZV1aDAMArYnqwAqxMjiUZ1jD\nMrxLJbFCD56Bjbok9fpAzeiW8LiIr1CTdDnFCqSiZBvCvvTeaJLt/GnvrN1x\nGdnLMtuA8zdaCPG76N2G+OMeO4EMy0zqBmg6KMaSiyklhYbjt6IJwiCjg45u\nDfx2MaEzBpAc1uPHd2Rlfo0ONf0tjYbN9mkRx7McRz6vrFz9MplV8IpPFst9\nM1V0zWoIfUn7v/xFTT17EVVee7d2KY4Tfpv45MPuPHf+InBoZWRfov/TlrWh\n6aAU8ERTSbChGRcGbRHijgYU+kGnYhDez+hAQ77YCO7XkvtdXC+KHMx8bTDK\nge/cFuk2Oq/JwyDZfNedR3JaaeYqLO0McC7nDJaxAREJmBfW902nutjEGpl9\nhb/CXTGVvakQOrY09XXzbjZfAxRNb9Wv9BOuLs7fatIiC/5MRG7Q/B0MtANj\nQ7TJHBiEUOo5etef8aUib+ajLABItlcFiA8ItRYkTawqviPS229tGSCnV7Ex\nDZ+Y677AULIushkZjVIxQGt64mRq/N61NKQzmdYTHxzsMSkpXV+frHPk6MAh\nxt2qT7ZojCyh6bP3j0cl/3jmSn8t//bDWY8UxMI1Xlx3h09Z7UaAucwDxvDW\njCtc\r\n=kjIh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXve4wlI1+N36+mY1dD2VYI3C9o50d7GuT53GMpVSNPAiEA5Mwj5k0Rn4W5ebRK3YP2qDFt3iQtioYfoMSgrTbT/CY="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599611408173_1599611420639_0.07305626819900768"},"_hasShrinkwrap":false},"1.3.0-next.1599612840481":{"name":"playwright","version":"1.3.0-next.1599612840481","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599612840481","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ZIpWkUecosCUTwM/MVjQQnvYQhAHWCfuzimAuGnE+imkjDsLshWQU5ObxEI/FGhHxUJDOQKsvVzsO4y9MBKTrQ==","shasum":"da5ae09642c127c67a45ad8252d6dd3cacc762a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599612840481.tgz","fileCount":167,"unpackedSize":12107450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWCe5CRA9TVsSAnZWagAAxBwP/37iz8wlGeRNZ1NrJLZ+\nsyor/JaL6onbK4kwp09EZ0/Gj2/6GeIvnZ2ugFBGVHdyII4kq2Tg/I9Yv4Uz\nSfeGaoAVhGHDHFx9E4ng+I1ccWB049XPPMxeflHbeASYh+O51SN8IUmldeca\nwXZ6z/J/h9vnOtvp1sUvVa2ZBHFE01GZvdQbCmjXld6O7JZbQKt77OO/e8Zi\nqyb9QFp7JepYxCDiZgE5HctN9AzJ7mN+C6l7IbDIVukiEztKHGCDnZD7zRkf\nt+sOiJstmX99TPwHz/I+qxyg7nslKqzARJg+Fu6pJoQyFZ9MilE0ONiffd3P\nWRRin3ACLMtThxIwY/sH0+Ax5vbXReNATpFEd0PDxGRcnMMRbIW1jNzJc6Jq\n09XaLIgU1GJOknCsMKSGTuCehUMB3ziqhzRX0W07E2BrwZ7zkRx45pUnkZZg\nBSU8ADMq8t2M7QrwYsDU2lQeHLJR42V5l/1tH5ZO1AfFRNOkwhYvsMlwqRYI\n+NGltV6mtLTCqvY9ZPGP+WKwIUVY0bMfQgw+A7p9eVveQdctNKNMfHJxlPWl\nwgnTMYlr8u1dDindl3GTRlD8aCa4HnKO7/C0Ps4LUjPROkYhrUdF9nNau1CC\n6QlFn21n3m+E6c06QTENPT/k5L4Z1xStsflKcdRRqhRmX+KoNxjgpcXvIjE9\n3drA\r\n=ToiF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5/demr1my4N/IJ7pNFcZuDyMhdTyifokPNRRNZPhuugIhAKBiSWGcQ0+PlTBBTRFYb1LJXMTsN37jUlg1+E7GeNe9"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599612840481_1599612856303_0.49471774574637517"},"_hasShrinkwrap":false},"1.3.0-next.1599620767628":{"name":"playwright","version":"1.3.0-next.1599620767628","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4217.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4217.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599620767628","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-t7K9/OMqaT/CmdAt54J1qxi6KUTKL4rVubuaimyhH4evpRbJ1LBg3iTngtHVA+V4rOex/qKknzlFsJi8BwwTsA==","shasum":"cbc8319e33ae39dedb9422f087a84acaefc90c92","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599620767628.tgz","fileCount":167,"unpackedSize":12096184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWEavCRA9TVsSAnZWagAAJEsP/R94TxywH4sRvI6j0Oov\nBT/QzKpT9iRGV/MMTpsq6vHbc8lYrYfTW0VWMQyLlTwKjbeFEcpKMx9rGxtG\nzoNe5+dXNwPiyFgHs6zKwB++WD8kiLtLVt5KyAMxmSCt5b8fQ2woh9U3C5KP\nfigpUrYmENF7PkEZe+j+RPJVo7UDZhicPXBUUX/Xsmaek8pEjUWfeqsyxzFl\nYSmFQr5CinXrkQsEqljy/R+az1kBRsq34U0zuSgFBKdj4OPBhIXekHyp/AY3\nUl4+KDHH/39gMGg1PRlOs/HazkggueTKbKgclBoVLU8qptIyw/JaGocGA82M\nZaVQYROlCbBhYd9bi7VKd4UhbZGrIlWoM9+Qy0wMSxL5J3VPSWDVOkwPuQNH\nGcZdhfVlpQEIrjY/qbIGquSVqff4ZDuKvqhlQgCudLHhkd1FTLfo4cNiBvE0\nyXywnAFQPmzzotraDA/3Syyfg72m9GsGbTNULbvYwFAGL92aOQpTwuU1UTmY\n6eCdU+voXpdTEbPtTECEfXC02E9RMgmzWPzXW84oEX5ZRcddIBRMw/8Nd7b+\nHWxv6Vug+YL6bjn9szNl7/ToPqv9Avg+0yL9/vw7va5NS0Lvt8Zxys3IjdoB\nNLf68jR92XMawClrXOYiKGdvehvl8zHSmLGWEpmMlYRiZV19Mh2h25IVsnV/\nLYyQ\r\n=zBgs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBHBmbuwyQ6MhMoM+PGyMojZXlTuCQL8vdDLg3stGQ5rAiEA38lHxkPcbPeaturBi6xbJpH6OwF6k2EjAuJ9k8KJeVA="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599620767628_1599620782553_0.4748682755862772"},"_hasShrinkwrap":false},"1.3.0-next.1599638423128":{"name":"playwright","version":"1.3.0-next.1599638423128","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599638423128","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xkgvxoGsie1GC9M5S9ijJ29W9eLp/spx2u3w7NPFlvm8OrKRY7hUsP+SrjU+/nXhjFvjJtgS9VTgpI9gSywYug==","shasum":"61abb8aca2732b7f0d94698c87f2b5fb93d19b20","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599638423128.tgz","fileCount":167,"unpackedSize":12104040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWIumCRA9TVsSAnZWagAAoTIQAJVMsANJ2e0MnBrPjG7Y\niTDtxD+XQDK6OSBxqDY8/tlUIYMVvdENnNurRem2VPfegZo57R6gFf4gZSNH\nfbuh5qZtqUW9iPd9NQptdQHWmH+3MA3WR4jChzgqm418UoPF2T8zp6qybUOL\nrAYMIkTvHFUOf/Px0aZZCORB71XugTHClGV2YGyL+U8Y1ZPplTKvrLHfhSas\nfgT4K+a2Fd9H5Q5eAtIYVepeMorQdAZU1a8ZjNO/fzPaMI4wVNCZ0DtpCnz6\nZEhUm9RItrQw3Qfl43HArWU5mbGo2blYXjnE25xxk1XmhCyLA6GP30PC1EZH\nNqHVV26+WcKC17fEL5IEYbU3bfyKvTumunQhFrfPa4hsAZbz7yLA+HvOOOsQ\nQ721Vs1EkwVvT+xV7j+Fxcbg88EaDvt1EcR1KPEkdDUzM3YKdQLYnXb/oqDr\n3qaIrF3l/VaiIaYZXik0eNBeNC+deWBkXRMN3KatYbAErCRznTF/X/SjK17m\nxdl7ll0YHR4KNZ0sDFLM+Asi4aEujAndAT3mH9Kk8AxsAJVg+7dvBhT2XCq2\ntcb/r8flkzEmNhao6JweCn6+E7ry8pH3jWwle+aHm+aioLqvAaPHxXW2DQJk\nVYX/XCc+8iISy0rZahGuq7w4YX8QKmWsnLZr5IIXQG2iuYMTo3jknvG6oziy\nkPNe\r\n=f1/e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBYhVx9JTQ0+nyZO6ws+PYeH+MbXVFq6nscmq6Y/ku1AiAJYML55o7mctq4GlGoEmJG+wlNVWFxrYXi0PYan7IHzA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599638423128_1599638437909_0.32210797107011313"},"_hasShrinkwrap":false},"1.3.0-next.1599646141993":{"name":"playwright","version":"1.3.0-next.1599646141993","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599646141993","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YoR7/qMOtWOYJdkw97nAmV3HHsXn1puaoQrQJsR3w8vI6yrDTUkVkaVhQ0DoFKiYFlrqOiNecoBVAzRpXcFT1w==","shasum":"edd987549e7e3944d3b787d71738ad6ed28fcddf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599646141993.tgz","fileCount":167,"unpackedSize":12104040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWKnQCRA9TVsSAnZWagAANxwQAKHPN/Mu5z8qKezrjjfi\nsYgKAJXghZwYR5Lzx0WMK1JcroF87Andf/26b6IaCReHf75HtQqoFra/3RPZ\nH4yIivhAE7O8EqbyNqWm4ZE0SQaobqZ4nUIfLqWyGDO78D4a/+a7okYzh4Mu\n8RapMYkIotMX7ZlmGE/GSoK2bVg2NAqZk4gRwdb/YyAC9Zhsi81MU+P1uk9S\nDMa7mLgSSEUej7cbwA/KnQnmsdlg8IbqU5zSMEnWsh17qiDCXDX4FO3GVSoN\navSZUyPbREUJ3FNC7hCIHUZYpxyR//jiQh9baEP4j0Frv+9BLD357jO9LHL0\nKD6OT3we15uP1COf9E6YYr+ghzIFC1AhJnpfPn0vP0pxPaq1clBQqd56n/ZJ\nO3DM0k4dJf5GLIgCsc7qnWMO4b2+9EXabj5y2ZEZQBYoHq9zQ8eXY05N19y/\nGGPNFJv8xt/Msos+GpLktTkzRmx/+b6bsUxOwx5ajhrLCXcR6FgVqOKFxBr0\ntX9bVOGLvuKYUDAMklULR1pynkiUWrcCBXmxipqZlwHiHiJTmoy6gnC4mokZ\nJqsaCB6kXzPZPa3yWw9u0uJuCWWw0uuYN8hPqnwVCVwBwlUU5YZeLA/dt0eK\nRV5ZzzkcSrNuXDybzlL4CErYW7JpMmPxZGXoJcnQWKBmMmbzzbmD7VYZKwQ2\nLQ5r\r\n=Itxw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5R4dzcCWsPpBHjEn+xyD3zNfLa/V3NhpLz9pPZxzPiwIgcwSuyvz94xqToTPDJnr1ffdsETJl5w/nMps1B7eZeJM="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599646141993_1599646159346_0.07643078614749332"},"_hasShrinkwrap":false},"1.3.0-next.1599668281572":{"name":"playwright","version":"1.3.0-next.1599668281572","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599668281572","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kKB0Sw49Eh496pUY8kmmMmowU17mq1uEEHBZ4bSspQRXEbPKeBGKPdaQO0tlSEncapS+jWIAQPf1dHNK9hmpdw==","shasum":"50f5c5807e20293865e3e599f6ebb33d37caf58a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599668281572.tgz","fileCount":167,"unpackedSize":12104040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWQBICRA9TVsSAnZWagAAatwP/1MeSSLUaG/xUWqsRIML\nG8bBiFodV7P6u09nM8TtSEdpmthKx+jsvvA2R0aPi8EnNxwzZMZkOD5NvtCE\njm764c3a58SwRiGaDAdA4dQ1YboEWPbhO7O8FTr+XMtiYmzEMi/efsv6tnYi\nHlMyKyBNYyp4UHfBlX8luAMYKbjEfJAUB6yGTj4uL3lv+yDYGSbAEN1xEYp3\n2QkVnt2knCBiNIsGQ69+guS0F+vYw3DiwYno7htphsbowdth08RCxHoiwdQZ\nnbFmO/iOKBZZIBV468AJMzKPpTGPCnYTlIt75gWpZC7eSuLyUkZBFUU8IaK3\nonnOYDbVUt93uDxm+Zvy+S/3f3TU8c4AUZb2gBTJ9T94tDGPocpr+Jdp5OOO\n0qMqs6J6YNaGucmNCxzD2BPwCrW9L+CD+q/eghmFGoTBSKJ0Fy2HtUaQrr9c\nt+X+JviklF7EDHnmIHqOD/ta8s9lRB5Qo1NDY21dPYVx1TWsEX6ofRxC92Xe\npO450nSeAarVyfVN6quEEKkcnFCq1aQUXnFQf15EkyTMWOaoPHZY7Weeemel\nqmQUMU/pICa9C7CSBIy2kQVMAViYSzKY9M9aUqnFdTi60pCcV3i0UXY8x3n6\njlhaQcMTg5fAtaM9/U+KgnMWZ0HIpO05AxQYyq+Kd3MJLX9zT0FUPfNHjKi8\njIAq\r\n=vy/g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3wJDPjPNGinqo2qgIAOxFybJAEQUuGyDvMAegwYJ6NgIhAO/rPeTCwdxt8b12r91uNoCt31ZFR8QuuuDf+10BwOnz"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599668281572_1599668296157_0.981999580793691"},"_hasShrinkwrap":false},"1.3.0-next.1599669520261":{"name":"playwright","version":"1.3.0-next.1599669520261","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599669520261","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Q2YskftJFRdg9oEc0HNYUVV5NL8sDgeWCRxr7PQjc8OcOdavSXgZd9cbtIh0lv5NIzgV+ktMPw/NO4RCMr3V9w==","shasum":"1f8e97cd5c17162b21113fa68abe4e7c30db31a7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599669520261.tgz","fileCount":167,"unpackedSize":12104040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWQUfCRA9TVsSAnZWagAANn8P/RttRXFlCDkUWuNjTT5y\nSmVi/xP3SR4v0cyGxFw1a/G1biVmquNjG49HdvX+BXOtVsnklEgt8Iu0QxFc\n/HPNSHgS3YFPVEoG3Dy8/1zfOJbHv7CeJ4oZ3DkYmu1xty9892SPa0jLZtbb\n9XfeNLu9bmHejuhThr4EjdJj7AbLVKkJCXm5lFofwD4+i8nn4BQSQBBvuiwT\nDMmtPOlXscph/Fx8H5CQk+3TjYIguRclx6rf2pf8f7IHmLtU3JkZo+nHvtOD\nMx4hRd4VJP5GFrlXpnoFRxWbb+rYvBoPNbJXslNIzub2jlHgEtBWjDxRO64S\nnrUCVvLsPE0Tl2+VTsYOR4H1x60T0bWdw7x2PKmXmb3v/Fz2JYRDkIkOekPc\nmOkAzZkOWFXbjsKFQUBhdHtSUiXuPPIpQNKTKcbY/x+MVmQ4FOPV9xMaRGJr\n+g7BwrdP0f4KJfSBJmVDF9ce9VaOXAxSNL2JyD4YhLqPjRYxT/BidpiWJoeU\nD8VjIV9CDetzQqDYdKmGgwHcuFMFhZHM1OFevQTLrTGCr1haj887twOS3kz7\nUWylkgYmqnI4vpbWCrUjQdOl5zrueKdVH5O/vbumlerT3Za8bawcEdQ9RVn4\nYnv6ZuJy23LMDnHwPG/Fz+BGB/1VLep4oYaW/H1WCdWmzC0YSOr6yZiBepBc\najZm\r\n=rMnN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBFBrXHRAyKPo74FTiklU4AfOMnVtbWk8vU9d0UOcJDAiEA0w6+G8HE7ED4fUz1qtNVzumpxMSvN96VS0NLY8ahMSU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599669520261_1599669535218_0.5585729054837656"},"_hasShrinkwrap":false},"1.3.0-next.1599670414941":{"name":"playwright","version":"1.3.0-next.1599670414941","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599670414941","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-TKTYG25E61BztrAk5vl9VtecykUDkTqOoEKSNrne66Gz1wtS1En32qQFbHWumUzLRXYyDzCmW1W7bCNq++IVHg==","shasum":"735c3f8ae941e7dd6b79042c6a9ed5c6942e3943","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599670414941.tgz","fileCount":169,"unpackedSize":12139129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWQicCRA9TVsSAnZWagAAroAP/1L2sOsQu5CoO6YQ3Paf\nM4Neh3olSD1GpSMAazqVTnLvLoCqo1NbUt9O5ZevhjIzOgu85SZ13WmN7PrQ\nkIla0iGzu8d/qxratugTMEVlJY4AhTLXLksGa+XJdtKSKW0s1pUgqgxHJin2\nDPtXnK91Dap80d1jCUAAikvPgeAsJuPeXQgMogAwyZKj7PjCTS1i9hh8aTRB\nYEJM4/QYQjdohcgXehF0vHzGWbCxOtqmcxcpTpeScjlxrdnAjngT0TyrXbT+\nQKe+a/5TQk68DIh8Yf2dB/rdlmoxfm2rM1u6+IvigfcHRtanwLL7sXZUT24z\nj4Hxkl+TNyB0znKatssA9iZWv/Gqi3d1spaxlvnZsfWzdoLZmaGIGDrEEM4z\nnCJnMOOt3QNGUGCDfbUHVtPwwy9z9OGW5kLMzDdESERaxjz3HcX9pbcRgmqt\ngpboEcPosE+YHV971Wo0UG86FX4GPavGD2Kn6EO2DzsZAokhf8Gt/zYrgcHf\nHpRgo+KqIBWwh8He1o69bPixQQdD63CeGoqMtmb4T9mqylfLFhXgGM3tKTyA\nWegsHK+ysHGQeozRCtl0TG/5/TjRLUzMscHHcsRS7uIuLC978f0nvIG9jp2i\nhnaY4UsoGJzWaNpzHzWUySJ39lm9G+E2zgJJHHQSVdo7HcYbrzqs4jLoxVZg\nuCR5\r\n=2wjw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyNaxQwQ5MX1PpwgMsnIcYZ5D8jebSFQVH34EbbpcaMwIgYQv6h4Pe9DX+5ccNwKSpSxGqYDTElywf9RrPFUwOZn4="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599670414941_1599670427563_0.8309684943370055"},"_hasShrinkwrap":false},"1.3.0-next.1599677101200":{"name":"playwright","version":"1.3.0-next.1599677101200","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599677101200","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JUnynzDVDJdQFHkYFzuNlDo2jzanKxfbE5iu8av0w3MJ8ae6+MKzIt5QnqPjb9RFwxen6pLH8u/W9opcmlK3+A==","shasum":"49037b3170d532c6757fefde44d784bcb24ea31e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599677101200.tgz","fileCount":169,"unpackedSize":12139129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWSK5CRA9TVsSAnZWagAADLoP/1ltJ2laI4rT4BJc/RY7\nlKGwsw5sypI9DDjF3RCwKSL6B9toHhWMDvlqn2ADJE7/JbgW58wbcre2C6r3\nwfkQVZFGxDEFo+0dbh2nBilwVfuNM+hgTU59Jbx+adcpGe0S+Jw/aPF+yrpc\n9e5ktYpnpyZ7QaLApO+ykw5Js1VCyaUyTUA3fHrGLgPJL5aT/pvKBrOW2+oH\nRlGEBHKv4QHUtz1lwafQLG6652vvhiVzsKXEbsmpbMx9SgGNdHf5FB6C0fS1\nT6khOe2aUCzwV2sd6S6dIsQNJzD49rLFp2cxTeYZreGscStpp+1CPyVh3Hm+\njjmxSNvrJBEA4AYFoWoFakBizHVx/cHFwnwFrrFBOgoh9yX/vjyJiZVkhcDs\nI5DAdAh78HyM6SfBH6AJYcTNQfGK4Z7ME0S+ecUP8TE6zoXe14DI5JSdUGbR\nu6nJetLCIxMUwkQYj+Z3hwYOou2iaemqMU+IKPGMEYnF5BKifMMtE1CWBIry\nNvIWYSRbvP+8rYNzuqsBEnNcAjLtbSOyiLGCi/5U5L43A5d71V02vlN6zRMx\nA4xjXq5eZs9upSgVgOXqHOIqIW6mwQTIsYORKlBQxEksYTN5kNqI5h9qxtif\nWkjbZPNwYiIALY7ZnTwiwcEbcwdLoqj+D8MKAeAWeoZO56nLqE4I8Glia1ar\nz2vY\r\n=oyiv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7h435pdi18S3s3O6FxgSCqrlinMOpgRwz3dyxtA50uQIhAJZREh63vHj5/FiCKOl2ix4yt3TBy1ZoLMdbqzSmHDGS"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599677101200_1599677112334_0.259498315112771"},"_hasShrinkwrap":false},"1.3.0-next.1599685315512":{"name":"playwright","version":"1.3.0-next.1599685315512","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599685315512","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-b8ksJmuzTVkyrQEKUFVA6VhfYpgN/nxIcy1JmjF9IcMoXI4/5MYQKxZx5Q5r2C9fLPi7OWPLA0eNdVNSubnvlQ==","shasum":"9b310c95e0002af68cbe06891da4d2758fbfbd19","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599685315512.tgz","fileCount":169,"unpackedSize":12139129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWULRCRA9TVsSAnZWagAATGUP/2pGO0+ZUGcyqyRX3S57\n3BOXVRV08PjFvWsuKWB732hJ7sKg/+vcGSFuIiBPLG4GPU5w/5Oxp1cMEBi5\nT/sCbeUEn87KdlaTPrAgELs1lzEARxDCyrsCuWCQ3erwBWvmQreokgSSdEWn\ncPdF+e6Jq0mulQQ6tSK9MpBp+PQBbAC0T83wNoRrd1Jei+f6GLALS8CNLw1M\nDZlKoMMIakjxA0lgCITq4UzDvAfu+LMIj+TfqEwzZCkcn6M7Cpf5XqaakwUz\nwwhgqreTk+GL6X7UqlB93qIXgdIxwkP1dbHODwG8ZPzzfpNZ/qAHZ3xRl+Yh\nQUXfDk/J7S32lAQ5dGFFMbjHDqWIbhrK9MFdMREw1wkDyY5hpHekl/y3W2rU\n9JFtlag8/P1LCfP9PjfVHrHGCkhXGyY6kayS7ojqDmNpx92vBafMIcrM+75N\nadtXYbg/iouGoxsDbYgHeBcJ81VrCx1Yii0nEnBBt3l0Z4hbjb37Bvp1gHC4\nG75ZZrmLtBJ9DDau1jvMemAV0j62dQk2HxX0pottd/DVsnUQFiev/3nJAEai\nUgbMs9a5yXnVsd5Nw5DE1tyzpuW3QNm2Aze0SMExdlObkbn8sImHpPIMoiMG\nTQ8XDyPwMx1yzNerleQZx9snnEug5hpr3WkXOo+gTUusbrEC8NF+C3YUum2t\n5L5s\r\n=P1Fk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDMBq9HDyWkUmzrdwnu5s4KErR+Fum/7aET1RlGjFjN/AiEAs1IfcG1rZbog6ayhY/bu+xgA4hzq+2ubYMlXv+bx2x0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599685315512_1599685328571_0.4459082695087222"},"_hasShrinkwrap":false},"1.3.0-next.1599696423951":{"name":"playwright","version":"1.3.0-next.1599696423951","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599696423951","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6HPv3qmkMwYv5YI4NvqUD0F3RdClgTZfEWcxSvETqSLGKlSnQRk7WsPyR0YeO6iaVMItugvCqdxhoTg+liWvRg==","shasum":"8cfc5d484694094a5cec8043f93b169db1498d3a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599696423951.tgz","fileCount":169,"unpackedSize":12139129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWW41CRA9TVsSAnZWagAAnsUP/i362V/XQLmriicxGHNK\nT4u2mOzl1Pzvau0X9L/Ld8X3CVF5Co2HgYAUUK2buobHBzh97QxkRqe01sy0\njSFc8zqY4kbgHD/NruZyPsy5HZqamyExxk0Q98HO9nGTjPrRmZW+iTQoFG6s\nrzfZt+O+2y8ZDTSttjru2zogD0EWq1+YsIHqzskp7xbowgN8dVpZTsl1K+OV\nV0SLceX05orYFX1BrQQHj4KhBYwQRqRh3ankVZN4+8ZgpLpHVkJgGP5E4To0\nD1HTIcYORje8pGV29rUF5N1aunsPoqAgDF0mrRqG3HC58wj7LEOdcBIe8j5r\n0Wj+wyKjqESACHe6BjjLeJLpdCjtqgFf2BAkfsED6lyWjzbtQ4U1HF60c7rN\nlSH4nxD/ll8aIO82I4TzM4K5kXF5cFfPTVmBy0woiPpuiW8MrJEab1Tm6i5N\nAPi++UMzyK9n/hNm78QmK49cB08j9x2rmdnlvjNkC1DJw4zGiz2Z9ZU8nOFn\n1u3GjHWeXTdfM/NiWwzfM9cNa5wfXAA1KOazIe+NyArozwVOk3uO8PqUy173\nX1RJpYacRFFlWaoKEh4BrL4b0zcV0z+TAU18SwEMbw1FzjOwVG4NO+8XBcA6\n56V2HbkgpMBD4qVCc60O2E6SwsVwMZMGceZCu89uOxVipE5WC/dkoVmKkk+d\nEsmk\r\n=kSts\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSlmnRB2qvpWIDT4PQ1XxuJjXnA1FzA3d2Byd33G2ibwIgM7p6/xIdQEVAdIq7ZatX+SAJZyXyAWM5QbZ7wvBePig="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599696423951_1599696436626_0.15402600460967109"},"_hasShrinkwrap":false},"1.3.0-next.1599696988013":{"name":"playwright","version":"1.3.0-next.1599696988013","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599696988013","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-53VtMxWk3B4Tawgtk0OCAgT5fMb3ZyocupOFEuXKryKirFU3YNyvl70SdDgrT3tKwFhUnYwn8zVXXcmVOYiXAA==","shasum":"e133ad0e20eb8574d3d3865fc769e0bb88ef8dea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599696988013.tgz","fileCount":169,"unpackedSize":12139129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWXBoCRA9TVsSAnZWagAAHIYP/jYKxuYXNrfHU3VdeArf\nbgcr+mWenEb5otfOlWhKBwGw3sfY0u/1Ftxw6D9lTrfYjAAjK6nGnNXDGhEl\nJN58LSeCLP/HacDXEOdSeXaFd3Yb09ePOEdH7tmAc1+Hk7AIon25h+l8CQtH\nLM8Emd4oAMOxVrW6j0op6ZkD6w7bi5LEFKd03MhPR+FhMJP/2H6ATTLfzVcm\n6tRMuuKt4z1lklMKf8qxdlUodQ1PulaUV+zwiDXcoBNt+rhEJhWJ0q1bYNwd\nIX6y+1ANnLonZsDYUwBx6dlxna8S1n4YTUQXYHUTQBDMJmOsFeOcYOY9YIu0\nNlA89Kwy1DNMxdzRJbZvwlbV95FeUxMX22NMbAS+N+YOZAXyqLvsAorxvDdS\nllcziNGbAQAbj2fhU3FGLzq4ANnMqYQmooJhrLJ4V/OsEQ3Rr0uFlWjxxjxV\nmLJTn/921PPBDLFB7ub75+VkTWQMFDIp4zURTEWLcA4VQJEp5WRKJwll86IB\nAWk8Yig+DXndwoT3koWVg50+F2r5v2VNWxXnzM1z5NxRz/18kkbR77831IPt\nTQjpucVww6taBQBRyxaq/Tj7Gzz+jd+euTI0CA3FzJkoGDn41Ak505VJuBqP\n5k1esoKXgD5wOXWauAln+uWytcNixZvWxaL6KukF3FfPKsVjZ5quBh4LHk9H\n5kP6\r\n=wvQh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOxzjNLdHUD8x6RJ3oGU2RYaZeWFDG+Pu7BsxN4eJW6AIhAIvroJZD4n5dfPiBFl8LGQaJJtl+ogpPC83HbUotbqFj"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599696988013_1599696999489_0.40234123615178596"},"_hasShrinkwrap":false},"1.3.0-next.1599697751758":{"name":"playwright","version":"1.3.0-next.1599697751758","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599697751758","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-puO03F/VeKQR9JIEu1s1BFrFN9N90UKBQ1keD7TBdhhdGpbWq+Dsh1uqwTWnVkGay7jWo6nyDm3i9wxH9AQL8Q==","shasum":"6700f189e6502014688380de5ba73db8212be9cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599697751758.tgz","fileCount":169,"unpackedSize":12139129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWXNlCRA9TVsSAnZWagAA3ikP/3qu5wS0x5O1rXYiWQpa\nPnKm1JP3QZgB2knHYO5N89hMzXmEBVC3nxQ6GDrRe5QWGoz/5vqS/awHEQYD\nz263BF3r3N+dzJ3zWR6h8hjraijjeKjRyUAdLZWKyrxskP641TQz4z78FBon\nZDkJ9n02b9xHsNHkx4Z2eieykRQ3A+IPO9ofkErWYyLJ1ucJDXiJp99hGCCc\nQZDs+C1uPWJrljD627phZXxLNwINBQEbDUadqjxo+A8IVHmLlCSZvFMYb8lY\nDL9Sd3kl20qxEhXXped8zmHjn1DxlQAgunx4JEMQKZFhmvabZkPGRgQ9DPy+\n1VJZRXkydASmVqyGLnTqPHEPsP7j+VPoOqfBcxc/h4mPJthU+cDFwO77K1q+\nDHgXD3yHFWxD28dwsyXTUScgOFw1EudFLvxU0gZQp3+2qT1fPRq13dhXz/D0\nOUNpGvNGCGbQu+1XpUSxUcrW0OGielNT9YJwqcC20NBBrVbZDWpXfIOHH6HP\nH1AuNesHhy4FEe91TeQgOMS0wN3rrFa/r0wLyefbXmsQHJJIbhnbAstmYzYu\noQage/yb/Yi21NCMk5f2paptw+6+JwoXzoDirwuYLCmN6LKb+XLDFIRPHZr8\nXgP2Pym2cPk5DJfj+/lwvY2eVUqDxkVDKnoi0SNrKe73zIgtjY1095NwIjia\n3PyL\r\n=2spN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ3zODNtUNcds1z+Y34Na2TfpQRKEh2ExgVIOk3a5BIwIgJmFagGh/qj853c+QjFCorh4GrNUd9mw0F6DMVMcirdY="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599697751758_1599697763713_0.08088695075813512"},"_hasShrinkwrap":false},"1.3.0-next.1599698102406":{"name":"playwright","version":"1.3.0-next.1599698102406","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599698102406","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0zBf7lffR7D/Vcxx++z/XMHb7TtkHbxB4mHKbdHKoMR7d73dqXU8pIOfX8F896ddBHLvBDwVcKIhZqQznqkeBQ==","shasum":"a7e969321ea38fac2c24f8f161a5938eb391974b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599698102406.tgz","fileCount":169,"unpackedSize":12139129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWXTCCRA9TVsSAnZWagAAbNsP/iBm2/ma1YpkvzmNorSB\ngd1N45qUfK6tmvSJkmdEBmm8Nl5tmBzgh3XI05wtcG5c0h0YRiFtnadK9Jk8\nGUuFcARSm6PYZYrNnT1J/4e9Nzx0xU64MJKUX3gMnzr/V2Nda0wOhhuawBAw\n4J3AgGjsgp88wms1Z+NhWqVu44kpp6Wss+Q15bwXZfmJ/w2iCIn2ifztiD7n\nbJ2hrb8NNccMur8lUFwXSmi3SoRPu44gT5XVydd7zX/cE+5kBL602yyy8Lxi\nVQJqm8LL2bg4rsqeCQdjvTPyqfkYk/bBvp+8xhijajJpgyLx1DhWLoS8MY+d\n/a6nTNBYLZAEay2ky0Zuj6GYbYKv717xLius6RICB8YyyvsRin/ZtSfbKp3P\nJgOCJyp3uqp0LYikoYgbmquRARU8VihYH2E6nmplT2r31fpRGCxfqYhDPPpg\nGc6u1sgPuxw38DL4+0s/YQH1roS8KqTZJrgBtp02Yc0zTdR7ypYaTkKxEKgq\nbgrQhG1Y9OQjVei1Ve4pOL2cwUBHVtlgPBm0bTtjMFvsT2JR5WgYtPtbwOa6\nraA1mIFFMG4w4OTI3+GVWEG2F7rDieuBX5S02JlPHFnv1TfKBdzYpQGoEo4x\nqjcQfAFsO4qCzJDVa6XS7+Rh0W6p1/drEgVGFtV7FwQxBw+3ix+1Mtd27JWC\nlxVz\r\n=3drZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC6mcmUuG6g0ebT6FQubPWr7AMsByU2B0sgEathKukuIAiBTJZEtTKFKFhPMpO7oJvzkTfHluaOgJx2uxB5WcnfbgQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599698102406_1599698114449_0.21433666204675061"},"_hasShrinkwrap":false},"1.3.0-next.1599702342316":{"name":"playwright","version":"1.3.0-next.1599702342316","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599702342316","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-LxIhIGI7P73AxY91Rkk+QDK+Vs0UAM3IRSvJYEFynfX0oiSAlfayTdVoyzLQwLBjPQzH05n8movSlcF7Vg2rig==","shasum":"ac76a914095999d75edfe1309e881bfcfc7a1b61","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599702342316.tgz","fileCount":169,"unpackedSize":12139129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWYVUCRA9TVsSAnZWagAAiOQP/jhdAQrisTtGxoowJDT7\nCEbWd9Dbja2rqT9tdfbmtVG9eNCv7yQC+mMo1qMi1Maiz1GD0RErD/9dQ+UO\noVZyw827fQh4K/M7pQsIZofTVKf1XM0cnVyNa64IPoy4wBRQYg4eVpgaIgNJ\n1x6x+PA8cBurPiJe5kD/w5P+yQ7YYNYVIJBlEE5xaV3OugviAd9fQM/aZERk\nnIjcxCqQZXeViOGfLCDNR1ZQ/Iqtdp1RvGmS1VGGkdnMPaw+LXKe9Is0wsGv\nxk8P2l3KbbTAub/kVp+G65cmWmsmnFyIm2/LoE7+NfX+b1pOiPYcGJvSHltS\niIJYbCWjtTv5nAAAaIfrCNIbxBfrJNmYprjKKgyo6GS6j+gePzn/fdNJ+0XL\n9E4HTDMXE4bHviPppVUzSL1hPcq9HMQQhqqHLVC/JUw8i4gJ7tA1/U7Lvfyj\n+nlqK46752fWI0e4E3dk7rhu7sD3NYdbmYPxbA6jAkPqSBNNiWvySBndSeU6\n0t+SmJqy9VuQbkfdvcDLx9uBVfV1Zywm/c6aqXbuwuiTq5/uiXMsw/oBxsdC\nwl9TBQkOEN2EPVJ9t/LGcXJ1eqddPi7k/WCQU+dP3R6F809+3yBkuRavOLDa\nvNHw/UtaQ0yoqR1Hj6XdPBC+b2+kmTbYWLKoRWH43GPJ4xGHfXZAu+lN08l8\n1X2z\r\n=H4KM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACZsjNSH9vUve9ecdqK7QDj6KFWIqVFvNjG1reWNcIIAiANaPKRUQdFWpPTRA4PRh8r5Vg5y0ve3y67w/MrzlSMog=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599702342316_1599702355826_0.5047076023497061"},"_hasShrinkwrap":false},"1.3.0-next.1599710774764":{"name":"playwright","version":"1.3.0-next.1599710774764","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599710774764","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-aULdMhuKMoxQFPtkGt50V9QtNcMYz7jD2p1gsCdTAa5Sa7exUw2YQ7M1pS6GVTlYTH+LuFCJk3nyeuZD0FuICQ==","shasum":"f0bb19fdf48bde838ef3b262c13b0070c6d57077","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599710774764.tgz","fileCount":169,"unpackedSize":12345437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWaZCCRA9TVsSAnZWagAAsqIP/3+pyGaMwa8g54H57uQF\nFPL0sCH5jL8AM3S0rqtTY5SBK0TkvnxoGMqFN2/iV3NXhBx3Et3mJUf0BI7P\njYOtTg88/ymHHsw9qgpaj+kHNNKqcLY/UupN7DeCIDI5/77U1GChVjeFF6a1\n5yv09qiIcOiQecAeQkFG7W7ora7Gna7pP/mBKO/YNKVkFSZiYtZUPjOHQsEN\nvWDhu1VPv3IQcEkNM/kJM1mZGiz2cP99NXRvivVa9Pr92zjBZRNyUvbaBzVZ\nObmxFKCemM5U4N11gwoGCQ2QHFOfOvTZ55/ENAHIf9vzMit63Vb3F3njdUAw\nDfBq+4/fx3X+alfbmgmzmSszXD/F9JBWdsD1NMPu+1VKQTfC/i9miDKXh4p7\n9fwzR6SAP/b+anSRj3wXmA7ApHCykWxepHHa3xkEXyJZHkjK6AILNpKxt2Yk\nMv/Q3pX6r3s7Q3cIdJsxc3pVweaNDaFFzH52W6KkGLHamWw8X8AKgSE3cOwE\nelOTbQtJpZr8RhkZKE5EFhIgP1gldbRZz8GnT65xYHSsOYSRm6+9zkghtnIq\nBmq1N73JIJ+rIFcRFriuOeF4+Y1VIG+zoPmzu0LMD6V3oP3flsPZCDKFUEvX\nFPGexR1dxg4HOM4eYrbz8pdpqYozzIVejNT629lgesJhU4oOggQhrb2kbyyx\nIQRs\r\n=TwEo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6JfF2mF9+A/5ag3lX1eIb6BwJSfsGsxN6iusW//if1gIgWTAkrb6kUmkg55IDcIPB+2QnxC9LWgFH+Cec0mhRRFQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599710774764_1599710786189_0.7897427058378588"},"_hasShrinkwrap":false},"1.3.0-next.1599723783956":{"name":"playwright","version":"1.3.0-next.1599723783956","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599723783956","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Zi5puIMXRRTik1bdC65sYU6Sn23QXWQ6ZvhABCl6L+rpCNABX02bL1NtNTn7W3D+FZiSJkkOpohGSz5LLyP1WA==","shasum":"9f0b1d06b40cfad9c8f564e55607b9cfd53ef52a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599723783956.tgz","fileCount":169,"unpackedSize":12345437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWdkWCRA9TVsSAnZWagAAIskP/iezz3Ac51bm0YJDAUUz\nGmuGEFVxsAxl2IXSmGU+ax9pfYlzYs/wDvEKKaH26RQMgavXXI6yMDI521mH\nmNFHdCQdKn+lp4bAJYI/9mjITM/vBRIj8QETvyKBLKzUqGZF/+8EqnGHVG/6\nV3HZpp4mpBXOjYzurI8KOrVAkM6ozRTQtxyhPLZj8y+nwWd1b5Nc/W/F1BkF\nCqP/NxxUxbiQXUWcMwlo4zsB7JVSpBNiLc34BN+C4J1CGewiAPRPhOsUAiiH\nqjwn0KSK1AwvmVBge2V6PlffrZkSH92F0/5yqc09EQE10bV/tj8PMtTlWNmj\ny3DzQwEepn1lqPjjCkLU5OOvJlt1dxCYwn9lXbd61oIIfhhXhzw/jbUWNTUj\n6UA4M1NbOA8Gx/yCtxLvrqyMIkb8NAoR3eeQp3AMxvtDpUU0wI+EB6fon0sr\npDEjntgrydDRjoCP5tRw9UkwkFE4uxmeSMN0eEKeQBPYNmtabNDdG1a4kkgD\n/EVA+MTbkgK3ooux3OyyyrHQD2sC02+dQrIsBP/Wo+0yfwuNCXT4wBPanZ9o\nII/25YPnB2kz3a0befiU5lvof6q7CgIowVq3LpSxBLAvVLAKqi7fQwOx334c\n0l2eNHHM+QkrE40ZtWPU6E17KvqCcPTDEIjR2AM6cV/xrafrF6NdNDdYQYc/\nxAUM\r\n=x+7w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICrSpAsZcK8TmEVrY6glGnsT0jGBqyI8X4cwtEs+LhVIAiBCIvh+yknXUHEEdvfGJVcnArXr2fHh4LOSYdTw09I0cw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599723783956_1599723797200_0.6668850800960238"},"_hasShrinkwrap":false},"1.3.0-next.1599756747260":{"name":"playwright","version":"1.3.0-next.1599756747260","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.3.0-next.1599756747260","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-HswMGAet6EVcqjOsiw+s2AQCNCurf+I7HcxubEk4f/7B36y1NdNof25KkIkTdlAOa9TXzlgQMCkvtZxCWksbUA==","shasum":"1c94656aaf5182a5f3cbc2a48ce5baa187a12607","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.3.0-next.1599756747260.tgz","fileCount":169,"unpackedSize":12345437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWlnaCRA9TVsSAnZWagAAI34QAI7vAwr+WTIGPU1MiecY\nACGmlVRLGwtM3Zglt4MoQjWNuUEnRnbkfUKiknimNPOOeDBqthbC0Y1+bAa7\nA6EUiL8FJqyZiG1FzLTKBeDmzz8AV7jobS05qd1HyhaJh8g5mw4xy1WWDRkk\nIlqldwKIkFj3/9adXuhgHmq+Bo22k+mHYBy3ZlRJElD24jF6Px0VEav6Wtrn\n4oBv9UpJ59H6RoaK70YrLWyDh2zxhJEtMXu89wexFmiPOjW7D2Ck9racjZ2Y\nG1UZP3T+aDq+JNOUZjlpxW0qS5XaAGw2f/WI75fNaFy7jyFNJEvxhpCOarst\nvvXDwKfwCzH94N0mclijWC7IJ+yzAUvYeQFGhJIity+f4WT6DwkxIKZFQTAT\nWam6ipzF9jKrnmDcQwL1jIAxMHJ6JJnNkoFwhq1mNe3Q/LccceY7cCQfr7lo\nO3AhpyW9bB3hma3hhex1ON5pU7UbtbES8JI+pMkpEQ2zVYO6AK8SXr/yZspI\nlCEKbftFHymFUkOSIKH+6oMdHkll3eDceA7lmMtWGGHYXt627V/1gWtcCgcn\n4zE03VW0ylPGh49LbxPEiNjbHOX2R73xsQAzR+mJCxLOcWReUdV69Qh5TW6v\nuXnDRWJxXHgentGhRWuog7zvqgNZ8sQJRgJLgf1Wm46jMdLNQFKIL1pvV3tV\nMwgD\r\n=9jhI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7FbhTIW4d8dVciTR3Z+Hgbwg4iTboGIUkxL3+JcMqzAiAdE/cIi3KDwDzVAEeZlqjIQ8HnQW4K3eF00A1kLAH+Kg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.3.0-next.1599756747260_1599756762133_0.5857074660757959"},"_hasShrinkwrap":false},"1.4.0-next.1599772810762":{"name":"playwright","version":"1.4.0-next.1599772810762","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599772810762","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-HuwNXMMH7tJ5KvqYRxSgLkIjymH9bb23psxwzISeTX9xEK6mP7gF046+vBJpq14NCu7tq+CW5o6JVY/1zwgNmQ==","shasum":"e243e889173ecf00cb1eb1ecf37ae03ab8a82119","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599772810762.tgz","fileCount":169,"unpackedSize":12345437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWpiXCRA9TVsSAnZWagAAdEoP/1ThpF308z3PCwjjYN4p\nvJQ5LhKItuzX3u3TqU1EwrVksjRaY5AggDENa2x+9IhB3Qs4iQbg5mJ0SoYy\nj9s4l6cUABiotgmPzCif1va/f6gzqLAx/L/9bxmDSMX5GEiqtESq4wveX+nb\nJ+Rcy/nRRpAoUYcRUPDFQ4ZuuUAoQKbMo/gxQ03aCSsnww+A8aZwHxnCXLo8\nbBNQi7q8axrKbApocovFy+KCGvbm34PWrbsN9DFDPGGreHmpn7OQyFlzaiOO\nayyo8vBLLqlaZZ36kPPkVG6DxvsfWaGxJMq4L/u/RcjDosHeNgmJmCCFDcT7\nfcMeeGg7TeJKtAiFnXi09/AicxWtE3E2Di4c9kceQ6VR2OJ5d9LDRguywS1g\neFGyN9jksr1Vkr9+q+Rqek0O5ZOUotpPRKQLYjCTnGAuOcXv8avUXkne0d0f\nn4dIom4LKkCqeMKqKzi5D41bhuSNlogJhWHY18zSrB6pEIoaAXdxSz4suWAo\n7wq3h3N5oJfdezKHoln4Z6toYKV7cqXxyjnhwKnyvRoq5E3CQb04YXqggUc6\np9/b9dpdRnG2Ju/ZutN+LYMeUHCY+IiJ81aUVAFOerMC1L33E4+lz2H3TN5T\naa9XBDKPt/2uGC9z78M2pPfKnq1vhhB1epEzLZ1D8xk1EFmsES/ZzXRTYXWu\niQwH\r\n=x4Hy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+laTLPyCsuN/g5w28pw2Qe1asBmcMPcvm/trqBDDT9AiEAwjx8kgeZpfhtncIeyH5VNYjKBfdDyiBHrGJ541uzJWo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599772810762_1599772823176_0.6954562913025508"},"_hasShrinkwrap":false},"1.4.0-next.1599773265948":{"name":"playwright","version":"1.4.0-next.1599773265948","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599773265948","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-r/Zlx/1zikHh0DcFLwSsEddhXwRIhzyshR+AoSYH+1YeEwLPu0t/GT/dcRKgG6d5tdykDj+JVngCmpqJxz5dHw==","shasum":"3dff444b92769cc3a1c55a7cd44443fc3df80b43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599773265948.tgz","fileCount":169,"unpackedSize":12345432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWppgCRA9TVsSAnZWagAAxnMP/1m/kzcCUoXDjDxYfSHP\nNBc5LK4ZWtA8Rbr2bf8OeNn/Twyj++ymTFa/4Qd8ydxQGpUxN77g/4+ygS1z\nmtuJSXG8caoXENYSMwKoycxzAYZ7pU1AwfevxQU/DADr4+n3h1Vjv+VKdEEp\nievCWHndhHcIzCve6mRLTT7EBK0TMqg9wpsSSrGQW6p4RD4tPEU/FZII8sCn\nlAf8K34hgABWX/8/60/ZT5ureXkntBgtWiWecWC6LJGiEzWxNtDuPs3/OVN3\nRtRj724zd16jslOvsQ2Cx9Into6CZa26N74CZe8J+2P3xpouXBscn6+leqxz\nP9Y+bxPDUR+B/OLJs0Qe84WPSML+ebQFwZV7qvHm1ip+ut+i6L4hMqIrYapX\n+G9m701bwR1zZ0EXGRLYkg2ZCLW38MOzMSN5XZyliveeanMAZlZgh2gNEVKx\ndQ6ICpJ7KPEoEu5Qi2hCofWmRlXoLCkgYrPya4icYjFIXZg+CETJt3GoNVzC\nzfaYqJP0FzLfch4a3RAQwq7cTPU1UsMiQhT4XcXIHPv1kl5SZBnN1DiOjlMb\nxwfJb1mPz6hgeqbQKmc6MMnJDAPbdsXwNpee8DaRwXRHaZohiwyLqKndd1Kv\nuuTM6uGZg0SftxYsubEGOFM8v/K1Rh+Q1gOBMWo9lj0bFyzwMd1Gc92Cb/tu\ncM2q\r\n=XRsD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICUx1eicyI+A50W8e8aR5qoIEQEnDFKrcA/mS5STAWAUAiEA30XXSwqIinKDpl9p7EXi9cl8Xse0a/mHw7oSAQgyO7E="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599773265948_1599773280110_0.941174693212198"},"_hasShrinkwrap":false},"1.4.0-next.1599774041633":{"name":"playwright","version":"1.4.0-next.1599774041633","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599774041633","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-yU9IxUK7kUdiFIeG4/1zuQYWd4gtuQH+crdSdXCM6vT0qj60M12UEkkNeJj/KPNQ1RXFI8Tw/fht5Zl7UUiRlg==","shasum":"50887bc5c6b20156554681c928223d9d1d55a77a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599774041633.tgz","fileCount":169,"unpackedSize":12345437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWp1lCRA9TVsSAnZWagAAwDkP/0ZWWR1uB4edpc7/RPtP\nfA6W5dWVXn3NTETVywoBntW4wlGca/hEkcniJ54wJaBAXthP+2A0tZHV/a+I\n/+Vyk4jtbZ78PxuR5FzBIANLKM+BrPG/GVjAJ4QBWcAB+9zYd02hMJc9reMl\nL2pQakVjGN2yZ9u1YyHUQ03bu+DAtFUpsp0gq+VWicUGsORKl+FTSNv/ilr4\nxvmhZ+MZttSsjjLLofstnnHTGdMgpDvli/8d0FWVJ8sZ7S1zdrm8Cka32AYN\nAfAz3NrDuX7JXxdfNdg3t6V0dX2q8RobrnzYLDVt5R9sdH7VLNtjmnN01f+O\nMlcX1fexediGOp9XTq1OC0S82LN8xnndouu05fRLDeYrcYnJWTgto5eFDxeP\nyUKw9syq2QANic6sax1ymfA6MaK1s9Whkpv1dyx6jbcNfKrJW2xn1Ote+mN0\npQRQh3hwUq0EJGlPGP0FB1tz4iMlOE8nxL8grVZV1SXD7TQb+EDtnJOvoa7E\nIfknPZvMXqfPxlnVQJB/P6vg6/SM+Ye95fi3m/gHQd95RCYNZ+lqlOC+2oPN\nC1kNPasKXuh3z0MUXS80BkahQuG0mNktLcTFRy9sZGHEVbytfQAV/v1aYfI9\n7SOHhcmoka6k90tJTRNgFDPZu8f4JNloAjxIEfL0F+0CDCCGYRGI26UPjJaG\ndh1g\r\n=/slx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrDsm8sKKUUOCCRr5eibs3O6VzgPdLi7Eh36fadqr6SwIgHVE/j+Gjctiu9veECF4287lqfUPIHeubx+sgtq46Jbs="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599774041633_1599774052329_0.8725244669417707"},"_hasShrinkwrap":false},"1.4.0-next.1599776156213":{"name":"playwright","version":"1.4.0-next.1599776156213","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599776156213","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-WxuQrcQbCVLZkBKSdjFOXMc2InHNl9V2HXkONd7rYmhzL/T/fIU6m9KQKQVK3rrSHFmkszXQME8Ub7lTR8n5kg==","shasum":"3748d1bd2120c57d4299f03a4c561d7368c8126c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599776156213.tgz","fileCount":169,"unpackedSize":12345438,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWqWoCRA9TVsSAnZWagAAP/MP/3kcHw5n5vyLESNtW0y6\nI9jeI6+rrsPeUBxcTsXmXxZw1wZnnWK/LWekHXE+ERfCr94oZ7H7RMVjC++o\n6GYtybz+NOJEqHrIQlDJjMfFRzcq+zUB3qdMwoS+PG9n6828rRWlKwHloUcz\nCIvCpNwLAeVmLeR+BLRe31OLD5k4se5kizXJ2nhPoSl4Jbklqlfc5kqsYn9t\n7P5HBEsWwtKA5Qbvz7HPiNQrA1rHAR7CS2UOB/LdVD9dxTuKKTjZCcEFuTG3\nrp/RL8JKKxfQzkEuB7gbgrI9dQJ5rZMgxiH0M5QI8HDcuBzQTGC/BG3GED6B\nDnmqsh/xbaWJLIr9upnDJ1AOaHW9KezhoAozi+Nhi7XqnN5xdrWnadZhnNaV\nIy2+cpyQ3+yjrnRV0Bvmm39YDhaRvP3HlyC6dbKVOFKvbwDVnTM3f67Gv82C\nNSJlm1Wr23p5xyt0uGJxFHJMuFsiTPIGKXmusWr5LrbxiGkIZEBGv2yAbepz\njsf27Ydrqf8HqJtTcXql/9GX47Z0zrK/TwoVR8aHKkgWRlNdPhxX4/BYjtGS\nhCl2xJpnqm1oE8ViTOQixhFa8+w6DH4w+c/OXFVRjEH0Exx2eF/2b8ZxtJpU\npQP3BAHDEIawniPEJKxfj5ClpwetV7A0Gk1eYXZ39hDl3GnpzzIeb+RySmUZ\nop1/\r\n=3n9y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKfe0zWkE8q0sa06h9+Dfa4GiKb3BAf2BG2MXuWidKdAiEA/ZfzlpXWI/fHPB+dzIL3VRm4kfu8ZpWnZJdFQCEDi34="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599776156213_1599776168036_0.17344959353544787"},"_hasShrinkwrap":false},"1.4.0-next.1599776227719":{"name":"playwright","version":"1.4.0-next.1599776227719","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599776227719","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lhxUrEC8f0B8O5EswWYa4ZWvU+X9dVDaa0s3q33+vzCT12sOsBtbAXR8abgDseCpr2A+ufKoTtW7eOX2VsxyWQ==","shasum":"ada51d8d7d941cea51fbf920ecaf70a0d90c3087","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599776227719.tgz","fileCount":169,"unpackedSize":12345433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWqXwCRA9TVsSAnZWagAAExgP/32QF/07LWas7YQVAMeO\nLKBxH8cyg0hfUA5hVI0iR9VU5Qyv07ETeHqKU5wYkaQ74MfamZmWi+kCE2Uk\nGzGe1yEpqTB6Ysti5AQ6WpdS+xk9oeCZmI3XAOftxWibZTwMJxVL+vlB9tzO\nqPCPc/CAxErCv3ZFUElrWuw9ry7iFfYK0JV28zOLCoUUbQNM01e8w9mERwU/\neLFi4L34UpDilEyBvq6lK23O9mQA6DzDR1nol/XP4uSKBmYAwmaXSegqrSkU\ndZp0OS6CwPxBKF5HsR7V8bVdJRs7Pz9fachIwvFxaY15YEZ2XkZxXEhLdu44\n4D94TTDQmSLEwkQXD4XDkVqNxlaQNNGt9na5noyuRO5H2je0QSYQJGEp1Ij/\nlTA6H3shPQlnGZhFXUL3ssSTPCoHW7zp7EwiWly7w13LmpVjOFagTWY8EWg2\nSMGxX3QX1vtWc9aDQeRvu++1gzy1Vx855nW7rBE6OgJEOjA+k2wTOOBq+Qdv\nrYkNufg/HM5DoPDk7TzFazCxgu2vi1kDIEoB6Zpao1BUsLrdpVa/2ZehykZy\nGrnrPl1m2UgQZUpgWTZD+EI/2FsyCYiFrEkzxjCsVRdfdG/C0zh42IceDIH5\nmnVkjQS3qMfdoRkh2cv2z/y9jsxmV0Fk+Ehqsr9zF3aPgl0+aFzy1vs28Y65\ni+2e\r\n=5aYC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWqUr/FMbjmoYf818Yj3lm959hZMSzguKbR6nTaAhakAiEAuzF2+S/HxabGh3ZRcGL1/LKdIYhxhTmqOksHJk0zZko="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599776227719_1599776239795_0.16306148087940597"},"_hasShrinkwrap":false},"1.4.0":{"name":"playwright","version":"1.4.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-x8aK5zZXNW+73QiEtyK4fK1rY0MMUpEsieTExlkNrBNF7DD6Qc+85oyp6sCg0iPoYkr4IZctFJdkMcECOTZ28w==","shasum":"216e153ce8935290cdf08ff73d075cfaac31b1fc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0.tgz","fileCount":169,"unpackedSize":12345414,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWqgvCRA9TVsSAnZWagAAWA0P/jUjTdBJscwr0jnra/aw\n/1eb4iR5gOVqcNKrYbgTEHwKqwhihugu3/DUDJXhGulWvW+R6II7qrhryHkN\n/0QEd4cchUS+4dBZKGi4LpOYA/eYGwz/RK34fHGH2jhv+nmbGe6Yy4Hb952t\nbi6jy6Cuk9q9NJyCke6FZaFJ3KeMW6uY5NY8vxXx6YzC02RgHcYm67ctHpRn\nd4fu0wjaDN3jrd2mJol4n+jLLOjCZ5GTay/XosVrfnrX7JLAFXAXSb0dZerq\nQgMpZkcS9M5YkEJ2q6YQIj16Q+hP19p4kt6u5xvOw11fcmepCWRoobCufIGc\nnEMm6/9yeuktDo3+PoDti/bSI7jakQM126fe25Jd4mjZzEXgntsbcSxo53Ms\nMajNOQlIG1cksqfcKxnmGnOYSL4RtvRZNzdtjbdgVMXlOrgJHzlCsvu6c3rv\nIMnVx1pqLbpTrLL3tXYyTYaIsbpLz8w+Cwl0mL5t8MRENPpPyJNpRGz+nGRy\nfnMoaVjVvrMC1fH+bat8dZqiyVndFJNDjpSPrL8aOKN3ZlKQxRVtGm3DRgRU\nTIo2/+3mHbyziMiiUPW7eNaK9R1GHB9E8D4DrJvgDFxMOnH320xMMfUe9l7H\nVju5LlpFOqKdXOjRCkO8a3qJvTWqGmile8BUA5plqU8NexSabCRc4wBFVb0b\nqmkp\r\n=/s9R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA8G3ccdIMLcYV4OfktbY7++q6VBA45eHIFLdvP/1SsWAiBnYC3mUhP1/VSTDqqvAldQZjKqaB4KNkQtNHnehxcyhg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0_1599776815172_0.1546616507344618"},"_hasShrinkwrap":false},"1.4.0-next.1599777364575":{"name":"playwright","version":"1.4.0-next.1599777364575","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599777364575","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6D5XlTH4Er9XiH19y0ay4xhXfsbqlsKTP1TFdpd3JZn89RxGl4dLeHki3nw5uGW0U/06+EK987KImkSXb8oh9w==","shasum":"147944c07fbc03f2edc3710e457090c95877de04","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599777364575.tgz","fileCount":169,"unpackedSize":12345855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWqpgCRA9TVsSAnZWagAAUMEP/Ru5A5BOn8jGsDKx6+pI\n9bb6jhg9EBOzDJsC6edft7SAMNa+A4ofK5LmvujEHAjd+gzW/n/5aSgcY80C\nvt+RTwEFIrHqDSyZ7inomnz3iUU8q0Xv+2g2TAGRX3J23OJQ2rk3GTDukOSn\nxan2Yk5JqU/MqXNzNSF+feAMCjXhMyZj2FRcnV8jsZ2NBwLItosNYtU6RwDC\nEO/CZb3+pQHxEmulXIJnVtTriEA45yy4rkFzrp/dHpvuS016Km4M3fsCaVxU\nsVnZoA3j6haqBfUS3XWPMen2HsTaanft7R5yIBgeKYwWIhe0TdCGAmUoE0AY\nMGNiAG+bvyOWuFpfkJ/HQ41Mtntdiv/vND+bescsf+BtjvlL+W78/oPIxi0W\n9CxHMMu99ErRqckZbBzGoHPyXgXFC7s53FkoJp+X8XUSRZQ5zKZcjz0AYKJW\nDHBwcauqhrqUgv047uOX8J+H7oW/GALK9dYnbNW35J+HozhqAf+SgZYZ4gre\nPIMsobUc8i0XfMDy4/Ca81CWv1sncFoQMjCm7l0L7uBe2tWFv9oc+i5KCoud\n4UHzIcdrNV3xQ0rzflac7kDeC4pyBMTHhKOUT3zly8n5oMY0e8+YsRYnDIZ3\nvFBhmdd0l8nxJjKM0XMr2OxixP9N+Xs2KOaVzodUx1gWvUAf2p+PSHZX20Bj\nxG/e\r\n=csvQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2eL+I8MSeT6kRoBaFmebG1Rnncg5MYFHADgJgZm88sgIhAMbqSEwBJHTFOQ3UL+X6M+FCLmpmSLz4WyLr96mEp1ts"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599777364575_1599777376342_0.9447302660760895"},"_hasShrinkwrap":false},"1.4.0-next.1599780126393":{"name":"playwright","version":"1.4.0-next.1599780126393","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599780126393","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-aMEmQuxQwhdTe79Xg9bFgUdOr55qt3BJFKHlFRi/tVWSc4ClPpAmnND8bJm5TngEBxY/+JbBNWfyfcLbYpx1VA==","shasum":"214db61ac246e6a4b8e61bd2f76fcf340510205f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599780126393.tgz","fileCount":169,"unpackedSize":12346221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWrUqCRA9TVsSAnZWagAA9ygP/jbbJMpL84N7Lrtk9KZ0\nM1PWstibtiY3PDJpmknhrEQf3CsylvHka2Con5F1jEv34AAe9vhucPLxI5Ny\nr6WjjLzUYuekAYxiRgdl1+HEtwrk8ulu1rYdqp8hxAc63t7w6QQEPBxl4DV6\nAJ5QvozdrXYuS78BaORmRl/0XqIHJRbeS+p/ryjzCAOv6EiXo8pbGPJR+5fI\nXzQo+Ngh0OXayZ5jjf/SvKarBe2nSIfLEwjDfdVo7BRRb+EMvRi3FYuz7Nyc\nMm+bxRs5rv80LL1l9q7S6XXVfz8bEqqFQtQgzpyjDhk28FsL7qg8XKxMw/MR\nNk0DxqVCVgwdy3jsFobBZp+Y3ArPh6XYcZk2ZvyUUvyN+10/CGnare6N8RZb\nmnsLK9TBy+nvwyjiLodUpo0wfeHociIJPEGMBUhFx1DUfs71AMTUXTrVTpAA\n5RssffxqbmsRGRdMfQPy3yBTq4SXw1QQfOa6r1ByTwBdRnbFWWzTO0Jv0cgp\n9aLnf4JwRzNj3WN9Hbi9IL1MBWe7aJKDC0lqIDZQEvFY6Q+U0qiJEuR9Zfu+\nsn8ijP/Wo8PqBneSD4d9r4WCsOeDuv0T1X3Afl9eLePU3Gu2mVXK9V25T5wU\nm0TL+VNo5t7ohSQdNtiQqOWP/BbppDUzRRJxCp6TUk4qJ8useT/Bck7Ic9e1\nxfEv\r\n=EKuL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPcC2tXgmjpAoDI7YMF8KOq80KBDkUJ7nmB7KU3qEHlgIgLj9LM+mYlQnJNDDwM9O7bAg1BgEVRLaj46s5mWAy75o="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599780126393_1599780137775_0.2196892598517386"},"_hasShrinkwrap":false},"1.4.0-next.1599780877737":{"name":"playwright","version":"1.4.0-next.1599780877737","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599780877737","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XdMv8rp8oT6G5NYrGfkrrF1S9p0+JEkzuWtRx7NuM3hUSZ9GrJqwS5YK/Njox1FERUyi0s5wMMLEs0AzglBKAg==","shasum":"44a3421fb368448802ed381b76cf0599bad56183","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599780877737.tgz","fileCount":169,"unpackedSize":12352483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWrgZCRA9TVsSAnZWagAASi8P/R3XZs5ym5DOdA6FtilX\nxu3oKhD540WFyl3l4uesymIGbRyR5p2zel11LMO4MVNulQPp+iFfT0WklDsj\nIfx3d+c5m3rRcSWscUygP5uNhp7hcvx6PuA9WGsJDYakJB3KgwN28OYSr7hV\naNT/gTh3jwBXXT5QO4yd76NW8exfzt4um6U16MM114BYXhJU56vy2zMIlEEV\nUCgcu+FrLp+5PH3ZB8O5frU3I7fPQB5057CIS1/DOAmKLTngZ3yvKVbyTeF7\nDwjnYTQ6St56CjIyKkCt1K9K+RiO3XMUae49V+vFYtz7xWBy/3A597GyU4mJ\nl+9/2EX1gN2fRCiR6+oT4r6VdcCFq3bhYvBFitk220dc/6yRK9xzuN851gjJ\nY43ZwPIdetA24wJUDFS+D2MhNh8l0zCq0bHYuFlfozzrNCBQWO034I9Ch19f\nyzSJO8DwUrphjWuOp1isEcqLSUwbtoKsyUdeiBRkgf7YXkur9Iv8uDThIgFN\nzWyS8Bk1y2xA+Ny3l1YFv3tKjkaFVo3xpmXEDoD76epenkumDCtScY2qDE+c\nBEMhpyF2X0E5kl6KpQeSGEvI54vH0DFJK38Uy4WibHvVrqzrGT0KcoiyPsvh\nBtZLnVquqEnjflKBqVm5KkrjR8basLVFjmIYIucOBuBxeiRnYXOmL4TMjSPu\nk/Wq\r\n=V0+v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCr+74kdK1OIbFJjj7s7M7pK73yys71S9uvCCOMOrHNvAIhAN47fUVOKmtpYD/KQwREnC8zK5WieY+Dt2YCkvUkwfWe"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599780877737_1599780889014_0.4192554441628118"},"_hasShrinkwrap":false},"1.4.0-next.1599781084572":{"name":"playwright","version":"1.4.0-next.1599781084572","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599781084572","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-TeVvHJzmDMRmGoyfSiLF2a3LpnEzUZtizKxwSSkpGPShxdTALEfrOODbSakZmD27KX90yIfTR2dPUrVm/zUcUA==","shasum":"647d2e51e0601a8e3450c3b816fa0b32f9f16861","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599781084572.tgz","fileCount":169,"unpackedSize":12352633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWrjqCRA9TVsSAnZWagAApbAP/jSQdsQydZ/x+lN0DLTW\nXx+UC9L3kbRhhHOOG52PGirIzRt7Eg8PJ/40FDpTqNDw1M2h5xMveAauQGMv\n/Taodxforx0Mqmnhyv/zj7T6BzCHr/Y+A/Bw+jT3L/n6ZQo8tUyEF35zNFwu\nYF+0CBv31LB+H8+mzoSiAOMauQN+XAGTwZnD3/7c/M5K/nir+Mj13kbEC9n6\nkjrUjBrucx5sV+2JgGb+BJFY7xSMO5osuOzMKIi2uqjUqv+QYyMtUNoUlEJy\nj/6hZ4Qdz/HWD6Ss2bQm46lojNZ7VPvb/BBWzvSd5X0SMXpd4i7lZkdFayId\nzqXKWG2X07XYIjvCAsNpVOerugHNUXWzv3pUA7kMt8mGbdT7X44J6kH3TjXv\nVbBmOwnb4WEQVTFEWJBm8dBMCvXss9sAJYm6Sz5+ph4zXgNSVQCJ2YPzQm+G\nr4N+uNjXvvvICBbwZZk7jYjsbv6DEteNO9tB1UKTh8Ed47g0bdp8Y2kp3XOY\nAgE+fycVWmq0l499X+SC8jolww4pX7mQIDZsYdeBrOPyDUgj1Im5oG1nKVXZ\n73MiE/KKd1sQDBMqq5eIPDspWPeKXJxuXiol9IB4k+t40ENI/yoIwhMTWtSS\n6TZy6gKdWjc/YmY4sE1CDIs12K5mVmEzRM8VGNhyg6TlkBj47I1LfhGS+RoK\nUF48\r\n=FftO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVE5IaT6iWS8AkBL2D/4Il8wwrLlsw3YfJq3BuIsQYlAiEAt9RwBM9ZTxyRXK41eFrTJdm1riEo8x49XQvNrpHRLxM="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599781084572_1599781097938_0.17546936783417233"},"_hasShrinkwrap":false},"1.4.0-next.1599786666672":{"name":"playwright","version":"1.4.0-next.1599786666672","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599786666672","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fPFlZu2VhHFz0+pc2ZQw5kbW3VtXbU/dyL3U/IQdxk+Uflp50Y7NakzBXMp38uzCpHql72kHyLkiwWAmfUOqzA==","shasum":"cb15921e9215e822cece396def6ac68d187bd82a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599786666672.tgz","fileCount":169,"unpackedSize":12352633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWs63CRA9TVsSAnZWagAAbaYP/2bxyDpmE1jnKp+QEcpN\nNGWS+BWSpXGlwJDLksixx34NILbZRGsGlbhGAcUTi4MwB+3WJjCHRaCbpgVD\n83JBV8vNjD+KW/LKIEmDq4QazglV7IU8VN0hs8v3LEP+rxfjyJWJzRiE6tgO\nxPEAYlaV+dNF0hREIvT7FQGkco7c1la5/YlA8YxHcXrkKLcxQw16t4ntIfo6\ndfU/8mPoVu6aktSD9s4FuAd7c8jKpOaE6fkcNpZOkFOdTZq9xJXl7MA7V+Rb\ni9cY65XS3NOs+kQbLgiHeaTMr6DCmISWEZrDoPs1hzH6E4lsYWwuYEzrQfWc\nghOLa9BC4VOHZ1/MWvh17ura6tskp92X/HDPoAqa+nMOjWj2ShO8NYFzpgLM\nNM2yR2NPrgsX1TyWABoMYlU51hQ0feJj3ByTCPaeK2/eWqxkTrWbaG2uuos4\nw1hzaYzJgulPd1vkOfVLs8LJC23Sg9LEjs8HDorGIxqNgGT4hcUmvVG1nHe5\nZz5JaTacsA3lo/ZIyOkvZKe+FyuNAs7IO72oiUh88TstUVz4pc1EZtU3s92m\nG7YppdyY4H0lgL+DDl4SnBgXTY5unQPDP1CTv0/gIDdOlrrGJOORM4RzKSAl\nVzOaIc7MyFELV9cCcP39+RuJghEVXdtnRBWWYVE43U2cyaDKNd6JIEows1/Z\nIfnK\r\n=kntg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA175fiktYGSvSbPgbVYDGrR+bk+8+nzLfgS/dHH/GWyAiEAwcrjBbwqn+Z+nxqTeMFfwlTisvXd62w0/XNxofsM6Uw="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599786666672_1599786678641_0.9232291510635722"},"_hasShrinkwrap":false},"1.4.0-next.1599791255263":{"name":"playwright","version":"1.4.0-next.1599791255263","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599791255263","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-N8BwI0/OdWwwcXEcjCDqQkiwb/1o4D8AGoALByOzIDh/fJUyf84V+3kOX/uopq7cv3ajUb6dt8H3Z6sXCiMfHA==","shasum":"974572c47cf85838f0f8e3eac1a2783218d5fea5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599791255263.tgz","fileCount":169,"unpackedSize":12353424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWuClCRA9TVsSAnZWagAA4UIP/24+tC7pDMS/MODtISUJ\nWbZupz0R9xgDgfdzg99lqCUoeIt/mlf47q7LKN88zjR9/wCWl5Jacc7NNnsT\npIcWpHCF90BSv9G8sgsF4aUcrVjNpPCufkvJRWLBCg1yYeMI5rrbYfRKJfbY\nde33P1VcHbc5EAOoPh+GO4sfpyMMM+01P5Cgvs8baksvApxaKnE004p6+Mly\nFX8w9Xha/mR2CpHxJdhLzGwuXFEFh714jqssLQtEisOnD8t3taEW8UfbKD1Z\nNrAFj0ZWZZ79FcqQaMiKlkpG3EHmeMrURrVdMr9ObhP26sT8HVgEAzX5IMAP\nqpH+g0JulIkP3xEzkCWh/hF3Eywu28E4ueLJI4UgVAM8w3540KB3Bjjdllr0\ndG4EUoDhUXH80qZ86Z0LvpPWbmUb1XtOV2ig+LgE/IYBTSuTcMfjE95Qr461\nzqIhqcsupnMmWHekgniS1pdzmbNnlArUOOgdyZCPeFguBLeA194DQypiZ70F\neB+IMX3Zum2JQMdYfyoV41FQk2ozacE7pJyX6jRSHLmVIBC6/lMtdnGxxfFE\n5XqI6iKlB5UJHa4I7zU1mRiQemRlRNnc71PYjcXrVXPdHswTiZXwmy5g1C7J\nOoLwsuNCVJi/42Wl0eLTg8WegU317+XzsomrjAmbT7k8vyLPZubP7/n9C5iF\n7tcw\r\n=wSL6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH9CrRqEMuRe3/0G2teVrf10W3kjaG49cZbb8e/Xc2txAiEArcuGclczRdQBLDPT5CZ/iTLau8pgTby6bMOMBXH4aEA="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599791255263_1599791268959_0.22260453653185408"},"_hasShrinkwrap":false},"1.4.0-next.1599798822847":{"name":"playwright","version":"1.4.0-next.1599798822847","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599798822847","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-iut/sSMisux2UxMtDg0mTMphvBYLZHsEFCSW87iwe0Hms9M9v8YC1wr5f979gKsBMEjAqyJHUHFaVg4tlzvp6A==","shasum":"9f5dc65bd1df3368c152a82c82631553df11553c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599798822847.tgz","fileCount":169,"unpackedSize":12353424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWv4+CRA9TVsSAnZWagAAGjMP/2rbVYBtPL57S6mbcA5j\n1a5S7r8wPUjPslskuCNcnPmnAZ/wYbufTI9HEUb9AiWc2YFYuxRzIm9zq9cY\n1VSCb6PPAGIqLV28OB5kmkCbcWuSEIEKS+P/FBylqi1G2/h8e0NQXwI6bKMh\nMWoRgUxRU/r851G2kMFtoZfy3rXNt3cer42hVkOzShjYDoyAT90a+imbRBLS\nvPfWU9TYSzwHmWwoHG9hE7aNV1RwoFuayL+CACALAx8CnnOpf2Txigsxvsd/\n86cQStbUBp+mUM/0UzOzGOAfgU7NADHN22mHL4ls9hdoFf18aKaQ/iWAG5+5\nHEhYHDztZcnOJHmL5ONqrZrz8aCD4fms3Mk3q25ORB3mIpwLju80r2G4DQTL\nfdixuIGkRNbRoWyxxwa6B2vm9w8gdtAEdYqDJxY8alj6kKjbaMSpWcQEBNxX\nPvmATLykdlNa/YqL/eHhzuIcwidHRxJSqNxMju3pwL1kN1qcDTOXnp4olJIB\n/w2bLU7Zib+BdsGW9Co3q8RWSuGUPMyMRGm/Curi+ZFpeJGgeNSoDh4f/qAv\nrRCk+Epjl1xS5O3B1nmjdfzKsNG4nNy/nNscwvaJ7CB5CZMO8WPoq51vyZRq\nX4hjC+gzhBvudSJQvhqvMTqezVq6zLouUqm5q8D9JlI74RbTyMGtRp3LQ6Ff\n6HYO\r\n=ohkb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiHveSx4wepUWKtnYKFr9hiI1YadOXC+8MsPOHFw3lnwIhAMnEzKTInybC0GyDAoDZiSCA2GT7/ERmbgxmtak2wAVt"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599798822847_1599798846250_0.03395714274165229"},"_hasShrinkwrap":false},"1.4.0-next.1599799450238":{"name":"playwright","version":"1.4.0-next.1599799450238","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599799450238","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tdYHmMjT7fx0hjKpsCKd+aU/0EhMz9dJgGzeylB+fu+jRkXhb4CpIFkP19AJIw45VVw89Cgt5Refg8MjjSN6LA==","shasum":"1206469481553e5e43f9576316ffd88c25855e3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599799450238.tgz","fileCount":169,"unpackedSize":12358851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWwCnCRA9TVsSAnZWagAAGEgP/1K3yU5VM9Ok89IdL/uB\nclXAJsNFm2JubS1ceYUmLSCsP6mYG+jWmLx0O7cnly439cDhf4QydejlfcoZ\nK4JkJEvkg4IFQ2xtkHRCgL3UNxov7oGLaH9QVfv/0ZeC4Khgw7H/h1//OCxw\nhrL278JQFSDVI3W8dcZD+A4c+kaxezjEnLHJ89LOe2aH/6xonN7PkyBaYo5C\nEUGubJrGoWRu+IhANjxUP9FNfRVQywXkhPCpgwGwaCGGu3iezIjBnDrFrsKd\nDg8YFjczi3J4ACorbTenhndJcCcJVAd1BXXDmMcK8faJvPNRXjMtRsKROM3u\n11Bd8BERpQW3JFsRtgtiGssnYhk1IKsVd0G8BFPIbo4ba8nEwZ4LNnGnkSNt\nWrQVHKJDIFnVF/DGvZN+lBTPhIAU845QBEt+pcTkuotW5DuQXWSnZnRnbYXB\nGtQo6QccMPWSlivXZpN8m+D9rr7xNis6WsYMhy3Y3Iyu1L9ulBvgRgqhOraC\nPzDESV5rozmeGiFYr/8KQiYnAsoARqEhEUkJ0uKCsPdHulTQysFZP9W2rdcz\nFTik1Vh+Rr9VLxEEFCkr/2rGZDQLbH9eBe0fFlGgCtu/WyS/3oQt2ls8SwMu\nN6D3rD+FaZP/UF/9fDEGQEyG8nMmT+KW67mWnHSKAPvciALh5rbOCMfFLO7B\nY58o\r\n=k201\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdGAyAGTQvgPxoKdjeTHD6UPToEDMt5jl/H8Xp+U4iHAiAuoapOjXFGAE/68z0QULTGqw/+9ViDIY1Oph6thHtXDQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599799450238_1599799462630_0.6648481899310823"},"_hasShrinkwrap":false},"1.4.0-next.1599843842893":{"name":"playwright","version":"1.4.0-next.1599843842893","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599843842893","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5KUeTknkA/hjPfq7n36Ngqn5r+7zg51XTpC54kHveGWmSklG2WVWbLKIu/0VY4gNl+H3qRz1jmrBdyx/GI5KdA==","shasum":"c7e537742e2a14f6da8fc707499f1157b41d291d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599843842893.tgz","fileCount":169,"unpackedSize":12358851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW64SCRA9TVsSAnZWagAA13EP/3TO1AfSVBsnB9WPkD5u\nQu3ZWAs5DN0PS3ce6o/BD0cK4lvFwAueq73bdY/uVwsX1SJhINnD9EJHCuOP\nCPauju44DIxU0bx6SDmJkdhoN9j7drMxC8QRvFgaoF/sENCwJfmnqN06Eoo7\nJWfWwFcWWiZQMlSJlup7nqu4+nT67BtQpQtMvaooo6Q/ZkAqfbzA1adZaUkf\nTBhg0HbC58OTGf5KkQAtSmSOeFzvXWF0WgDnhFN4bObpHHBUyh7sS6f6//fM\nA1izu45AdeCYEt5aTgNv/EKguyZswQlENb13FyDUcaOQuo5bt87aMtFMyc4M\nTN7oOzjk6AGYlH1jMIabc3xYQpyIWRPhwBq0FnG6uwujdyvasZqft7a8/yfi\nLQj8NqvlRXx58h2AGaiUJ18WXZjbFRRWTeDiedCr4osIzODFEvvHDsYV3uN5\nHJ1o0zY5oJst6ifkk0F0U30iZBGHt2VTsbTkjW2bGYgKPJf4fHG2AyOr37lX\nGoDBuBo8KnZgiBUKDVkBcCXEBlGjiDiyPR1ag72gYOhKU5ouc3KsEhU/0rXb\n/ztWr1QULnSzxbNHfw8SC3HADJidI17u7LCqSAlJ6H8rs+yrZyVFVAU9FWE3\nd1BjUFJNMe4DkJUmNOjLlLKy0w3xtEGjpX9RZrnBnmteitcwJaAAiCOKPn2s\nOOgr\r\n=qmtI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZGLUU0GlUvMkMtxZGwHYsNqJHYFgXJBc6VbXsrujW8gIgYA8b7azUWh9gNQxu5ReUP7vY/uPsmFbNd0Y9gQIJmJI="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599843842893_1599843857090_0.9394334909959132"},"_hasShrinkwrap":false},"1.4.0-next.1599849401727":{"name":"playwright","version":"1.4.0-next.1599849401727","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599849401727","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ip9l5zLtEeDK3G20GCxyGQzKQN699jBkatYBQdWa4El9HXla8M3uKN+6TLDT40YpZ3ULZY6QFz97iNHkt2X8yw==","shasum":"adaee0b3717b0623020a61780bf0c9215daea004","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599849401727.tgz","fileCount":169,"unpackedSize":12360746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW8PICRA9TVsSAnZWagAAWksP/2zlEtpfGpD3p6QN0rzN\nv+CmTyFtgOmKdyEN9aEp4HUF6UyEQqkt6bSaD6SeULyNcLYVtBwh6GFWNEME\njH/A/+3c+FFfVRI7ssZgtjweU9+ectvH302wgst4ru55Qv3NzEJ485SB4Kuj\n0wkWK1+ZjgJJptf8aLhBbRcfjoVILfvm3BbjoNJbNngp0ZYZsL2ZzL/PUVsw\nbNs8n6jUG6rAP5jgISwE3u+YHyGj8U36fTznIaN8Y00zhPM/Gl04zeBh/8yX\nBQAuoqQEjjGDAfBaAP4faFO3ITI4+uyc0a5TX8a9PEe/rlYmJTgHKmLEHJRP\nKfusRZbp7Gp0qIMpkhM6hOGJoVWF2L+/cmsIoTFRv9DqK19QHqjgrceyZoA7\n919j+9yEhBQmvZSy+f+iClC0VC2T7liKW2km3O/ZKFQF2iWDLAFRxlZDpSok\nJTq4mdJObZJWzeGhHn23iMYwOok7V0F2SBd4ET9wK2siTtGL+DtMaZH7bPaP\n5lNT8Mx+CgQ6mb4/V79oPhTHLKB8sq9aYxBRIFiBG0fzMTJol9kb9kWk08Xp\ntUz0pDAn0nFMCR7plkwNmYCkCEC8Sqg/iv/nn5+ak2sfW1ghyP9LRC7OK7VU\nB9KS5P+wMCLcKWHFjxPqCL+L0mSwBCfihIs7heihtfymq3CT7HZBg1poE2SR\nJalf\r\n=ViS2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAW27xXelSJ7iHEHA2CkpDkgc4XeIPGStPzbw2IvMzxFAiA1lqmuxi3jc7sQ0w4T9lU9ldfHQywarvcJ7MVM0B4tJg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599849401727_1599849415768_0.8703784509746644"},"_hasShrinkwrap":false},"1.4.0-next.1599852649642":{"name":"playwright","version":"1.4.0-next.1599852649642","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599852649642","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rqlNYuJCrdM6vdyuTnfiduRV/35HZgqAwkLT8fihGJqJ8BhB3TQy40zCOK91WrPwkEMEfN4Gc/XiwaZXOaqDTQ==","shasum":"e384e28eae249214d4b93283da40bf3c731f81cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599852649642.tgz","fileCount":169,"unpackedSize":12360746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW9B2CRA9TVsSAnZWagAA7VMQAJzekxtWs/uzOf2Scb/m\nazyQ7gf8R82xe2jAOUq3qGrSUq51+Riec7jr0tI9JX7k8ITVPZrySPZZRkRz\ntPQHndAEVaXLZGw16YLGu/nj2Ya28KQsjEfLaQYLisnq7xNYauq2WfgNiNkg\nQsKLTWnbP2yyisjpq/BbXRrmhP1Yv52YgWNqeCXt5UmiilU7fZ7tcOHnKI5F\nTmJzkrC3AElDYBv2M6vsD4wxN43W+8dlxOmh48f5zLfkwJDU0Il/BlEdGv2P\nz9juU2Vwj0jeE28l4qZ/ii5VPNKO8zh1iEDS6mUdzKswkjw5vKcaqejbjsbU\n1tgtjosU+RkheJg/nTBuVHaeCTpKTRna+GDdWaVON8NjoPEIThhxS0Chy32x\nmW6BA0MntuysQtNwWavWjeLukxTJCpnDi9AiveSTmR+10LFHVW3/3eRpkEqq\nLpBz++mlsiWqDFWX0RNyf7WFlHhvP4yhkLACu3CYVANkDFmhr2PdnwxoyOxo\nLgGJaRFHxfD2NPBdkgunp8rkAXvt9+o7aJc6ABNWrm8Dlot+hKvM5vs5eYj+\nETiv+8tq47b5+qKZOX9JHWCZrRiJNteUP8cE2EmBb4d+dZD3h+tX3Ionovtx\nELtzpDao9sqXf3VV5nDGTrPNgRg0iSx4xDnBkUYk0LiH8T5tO43PJeqNzjA2\nzxYe\r\n=SBu0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1nON88RRnGzncNfxKCQvkEezoCoahLGE3pZSX4ARbyAiAyRNsnFfcTpI/CazQdyDyZ0Pcu2/O6VZT4waJhP69Fuw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599852649642_1599852661824_0.36556342549505105"},"_hasShrinkwrap":false},"1.4.0-next.1599856220627":{"name":"playwright","version":"1.4.0-next.1599856220627","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599856220627","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rpLG1Wr8j2q5+bsoCfxyNrCvutVsecPeMeNfyTp9lB60/7MWHgKtqFxqUK0r27xDj6iV8T8S7drCAFz2g8S/TA==","shasum":"ff1ac21abb211224721b2141df4ea53b7693846b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599856220627.tgz","fileCount":169,"unpackedSize":12364907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW95pCRA9TVsSAnZWagAAOUYP/2xX4hXjxJn0WR7PS01M\nnl8Lr/JPhbuZ8Q6ibIepOgRUsJMIZcMfzIxHDtRQEOm6vz4cdl1yVeFEFtvT\nWoXTkOKfQ9tfS12WjEsbAX0gqpbyY82DPg58KsZVd3Ronl4MwQyuPLMBNNPG\ngmwyyBwL6SlkdYeGBwI7KfmY1Qz1iE/d5hG9mqZb1Ao3bZF//gmnvvIFft7t\nAetUdGKt9iBQKJ6/pAfd12Na2Wod7W1AFUUf17VeqM7bD3/1KDaJuUpz/yCD\nK4Q8umrYeBzG4CxUIiqDx2kY7puVSx1TDbUeHNWDRiUNdH4YBgTxSQ2Icetg\nHxIXHZjIJ/3UmD364D0C9jUxcV4dJvzxnKIWhryu4fnXCkPIoK2id5zd9F6W\nl1cphDn2h/QFTKRfQfuoRVjFZIH6KQhgIQ/47uOqmhHjAJjCB6uPgfGeSAv0\n2hfrEMG8wf32G2410VVsN9otARXdCAJSVH2GL++qdin+5oHwG7kGIl+nAZk4\nRttz7rtQXtr2XBBA/UBXDdMOYfsvOJ3UJF2Tq8wN/AUmMuAcl72hZtviJmf7\n7cvIwADdKQtEp2f1is66/i6EUPKpG0FFGw1Vi1XVBciX2NJOJSMhZZa0FZ8s\nfUgUDItIwZMlHYXkS6KskVMWOmpx953V9eSnKti+7yEmRh7ofQ3Ve0Fr1Rq/\nJJSj\r\n=+Abj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB3rL5JWEdfg+k+pwuhN4Qgh4ZGHw0Wrcsam75gvSNnEAiEA3zuIhWTJc6oW6qEx9m3FzaBOHS6wDiMpe3EC5rtv3iQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599856220627_1599856232883_0.8576217783529589"},"_hasShrinkwrap":false},"1.4.0-next.1599857445411":{"name":"playwright","version":"1.4.0-next.1599857445411","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599857445411","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-l8CioKEaOn5wnMaKPJkCb/Ib1hbS4ONP5FHEA7AlW0WDsQ+ajYSB0Tgpm1nWmjBHA/2V5sD0g2aYa/Sgum+yig==","shasum":"c7f621806df87353f8af2ad017e605a300536e3a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599857445411.tgz","fileCount":169,"unpackedSize":12364907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW+MyCRA9TVsSAnZWagAAyEoP/RHSREDwXC2TZo1AqQvB\n/beMZZd0n0AfTgFpgN1rCE8YYOjf3Lv/kJD+mJvool7lj1eVDjDnESCID+ZR\ntxbrkmJu0E0fHsq4IrFQw38PFPmDKoy/wPwp/OaKgfc0+tkt3/cH3pKDnApK\nxG1wRfRyCfmlPB597f3IQc80YUFj4bLfQMDhz8SlKb3LsRS2adaZKdr+0iK1\nnWEGvm2olAkVUIiwv06EUrhGhE1eArECFV9/aaTbrIPwA4ZIOh5sRIEqnodm\nlGj8DbBemk6j4U/82GJGd1jXY3TuSv/0RwaHuxuTDUkTAysCyAiLaDqf7PNK\nO6N4Z3HuiDSwOqUDjP/SNmQyJEXBauqWjfC3bh4LDLxpziGS/nwikBTkvvPB\nnW65Wo4yh9MrN9aZ1aAYr9AoLyB8ayTzkKJlQ6aOtzMqvGuCMr1NYQjJSOVT\n3lh7+ObexsjU8xcpZVdPX6SOP0yWlKR9E5EBsG2/erCIaQ+B9zyOh0f+XPtE\nySQP8dklPHaZ4NvyrKs59Dh1tAHjHtdk49zluYx+iF5g6lkHA/VkuG28nhSH\nhy+OA9iHhul8Vce1S+gGLwUTfdNBeW48LLcIzoP8Fa1ofrGOk/z8qtuia3y4\nEPQGrnuo7Jmm3rcix4gwjYy8YhM2Sk1UFDZoVNfkWXqhsYG7lggKz6xVhUQe\n+5kh\r\n=DyO+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKzlbRPgtwhAEKVcntKkZeA9DsuyVVrDgktGIN3WWo5wIgFaDOvfVj4fhB+cB9s7tRqIPFzzvRqgpFs9PFsqHssuA="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599857445411_1599857458234_0.08872798135318205"},"_hasShrinkwrap":false},"1.4.0-next.1599860560983":{"name":"playwright","version":"1.4.0-next.1599860560983","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599860560983","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1x8DT2pPYTq3SyGhj/wIhKXtRKdmo0b4iV4uNzl+4OKXruYFiFR+Lm0+KbVdyc5e0y2Ll7bzmJDFIBe/YzRs3A==","shasum":"be1ffca2c4e5d5d6cd2e790d529496efc2fdcb83","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599860560983.tgz","fileCount":169,"unpackedSize":12365040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW+9dCRA9TVsSAnZWagAANWsP/RJyc9qIKPQzLgcUyTod\niRYLWtGxZoUMjbFbC1lJFlOrol/BNiw3oBQIDohbEu4oVYED06iPEY+WfUg+\nM+zsRNUCvw2Q7gDSvtkQrzvEkwomIR1Ct3uiN/3iw/S3VNoN28ISEjlDI0Iv\ngt6Z0v9ghclPjDKaK2UJ7MfgeVEka6+qA7367rOoi+SUw/bLg+J7jJCLUrE8\nGrBlpCqgaKAysFyvU61UiZ/ti7oBKYA5xDiKoNPr1BUdfQvaOIAjPf56hbEf\nxaSEULPFPQIXN7ovKXyFCREtg5RfF9kJri8m0yx6bSVZ6QIC32800Ag+RhqV\nosTcciza8BQsJ/9isPeWTtAcl+asvOrE+o55G0K1VOXNtwknOG3PCXW+WNO0\ne83K9m+WKnNXwiySiDi7JLopOumNGavAbtXJBV4BsUSae5Li1eMHndTFO5MO\nAJMoAYekAt6txEodbZUYRtc8yWHEQCyTXei0yqhHWsvpGYnHVpqI86wWzsxM\nnquMhE86hePNssatJKMSDmGfufM0jNrSSBrrvLgpxM+htoSf0fRAjXisr1tb\nQOUzvXcTjsCKZYkPjwC3bc1Btybz5nGAbWtfQCj7qYwKIKpNJivVekqs1PsZ\nNBVUldxPnP3fKRQKdZzmOEuahIVQ/Kr4Gl7/sgHj0NCCGr49XETkjovcdW2Q\n8gnH\r\n=UaU2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDU1ZZ3m1YihFbBHdwkHuzGP11FYZ/7Vg89FkXkA6bDOAiAopnALONjwUCtLInjsKyOQnhkNhM3fe6XbMTxmLoUSWw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599860560983_1599860573245_0.663640617968696"},"_hasShrinkwrap":false},"1.4.0-next.1599862577306":{"name":"playwright","version":"1.4.0-next.1599862577306","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599862577306","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-f9x0XZbVpeupGYQPd1WYxbchyECqb3FgVJdJ2nQokc5DDdjoFRlXPxBhyJWetifpG8DW3pAZKP5FdjAtLZvGqA==","shasum":"1428785246a5aa966d53759ff883a10f0a0f6e1c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599862577306.tgz","fileCount":169,"unpackedSize":12367377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfW/c/CRA9TVsSAnZWagAA1pMP/0TsOIFKcU5T4fapas1k\nemQMQ4YqKBcNilU+feDhWs0GUqnKsnTFjV9ZNuynOWPNvJxZ10pc52Ud7YIn\n1hUj3nGr0VWwgvybzB02nWIqp3GwVJdJvZqISFRSGYtvUWtBW9UodpkBQ4fU\nsNMWPHWKdKEHwPvEMMznbabNKVkwC4gyd5pdQrTijwDWLLVX1A8cqcY51/Sb\nFddHcdU+Ex36aW2wDf6f8pcN42FqBG1hlkzL8G8Pb6lKd5KKCJo7ckVxSzWZ\nTLEnH33FfNt0+XGx4sM7O4AlrlrJGqe7pCF0h2Dmjaq81MEvs9tTLm1FlkqP\nQR9/rX1EroEJjznjqVnhnJaN5efGGW18IAX97I4S2vmaYEXgnK02gW4+7jGz\ngYM/sjg9z2J8Ru1MGEw9SAEYc3nE9uG26tssWoGupyr+KOOBFuL3um/hsTMx\nIbhO+PO+6Hx/pIwoyr9TcEcffmsxLXigdrKR5wbEp7IcmHkHv3/uWXLZyWm4\nuOHFKnqWivtWNMhuyYDqIPkI3Uqq2Z1FKFyrqDlXiLcvfyN92DOzR3FrC3lq\nnFt1vt+WcUqAVBkkkwgwSnilBNusWRECG4MyZGpaRjmewpq0/GcGQD37MaEV\niHr1rocXMLfuZaGAWSVqHoxNISc6gDYla4iCIVfI3AM1Ujw5bCfaNN0fo+7E\nYIdz\r\n=siec\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdC0ZZkwxotcrElT0lFKwmy6MejAFXpAlmjI/KFidG5AiEAg1Y7dlcB9o0Ffuapowm4q0H2HnpV+5aDXDDr0yD91Qs="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599862577306_1599862590510_0.4519606823700455"},"_hasShrinkwrap":false},"1.4.0-next.1599876035713":{"name":"playwright","version":"1.4.0-next.1599876035713","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599876035713","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0p9p8lmyOeerH+Vo6JyUd2wUIN3uX2gzD1asuCQz+ulgzslupLGzC2OReiq9AvKa6NC86IUW/R3vsY6QaRXusw==","shasum":"1ec76793ca492362b46a2427c1a726272bb8e881","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599876035713.tgz","fileCount":169,"unpackedSize":12367377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXCvQCRA9TVsSAnZWagAALbwP/0VcqC+E4CxAvS4agXvV\nFmBq9IjEnTK/nmkks4E9lfMGQn92+dB1Gzd81/HMhqPLp3PxsXiHl9a019ta\nXpkvTtAHRCE70kDntoSZt4kcHIrcn/gR6ypqJ8IslsFIVpPcf1EzGpXgCygg\nctRjq3Six/KMKh5PSMQQIaVdnmKpZBQJdoiDBrGKA3SjZE3U1PdfJfDjpTdM\ncUXi7xPrCEDQxT9GU2KqEBV648P+JgcvegxB+lNniseGvmrQV36NtGQC85bq\nofJy5KZr+3w+zzn5ue6V9t/mOL2oFAF9YcinK95Ox6Y41al+RP+CUxZHBnH/\nTbyBNcmHdknBX4bNASLaVmYBPV52AMCwAHaDNn8ofqRHDAQKbHA1HswvCLoq\nwQKok8+QHNF9xpXKm6HMNSD+0xnZAN8n9sbRbrpsWPqflhpKTlFXKLv+wti0\nyRWtWiMBe+DZ+XZOIGt615kZJ8Is4wRYVfLrj4zBpnJLRroas7HEUTvc2eIh\nAjgJ2Rpsc5oqbAg4zbYyoyd9AbiUGH4YdYQtugt1q8ZBRkbm32S7fMb0jZ4s\nGDAJxgsFds4od7nbMUd2gFKLfzsFBJJn12iDxkK+7UIxheIvFollufePhFEf\n8y+nbGI7DbRNaDLyBsxOnJCl7//iVoNcg5bqisPHQoEwAHQf6CbMNCAxwms/\nf541\r\n=VHEr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhxi4PBanI0fbNO56YBCiBaVQpXcanTFCg2m1+BD2HsAiBt4IMjf5F9KetE6RkIaMqFIrh8GDR2rUSWRvUxV0t6JA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599876035713_1599876047784_0.9842713279209003"},"_hasShrinkwrap":false},"1.4.0-next.1599892520007":{"name":"playwright","version":"1.4.0-next.1599892520007","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1599892520007","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-QXio8BoubTcfZFOToPxbg9vfKoqM6oHpalfEJcBAWbgplTEpSj/O2ZutepA2JvrCB9jM7dfyOi6aHpAFuDsgKw==","shasum":"f2b41741ea157b916d985630ea8aec01ac6e1716","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1599892520007.tgz","fileCount":169,"unpackedSize":12367300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXGw0CRA9TVsSAnZWagAA2f4P/3q1dgxYrW0W6rddvu98\nsRxPqGzkZG5mEA2hmIBKp0KDbAkKyUQpejuZ9zsaf9mkWU4T3qX8H0WfGz6P\nGcPTR2XkMbQuEgxpZt2n76lNMvvS244/rfTygEWSPlocK7kVIhOyRv4O0BHG\nvQGjEMF/DdJziaTzl7OdW8dsnJsHFHjrIoyNZjWz3HhfEPVYFQTQe6f0tmhK\nwoaiGf7arcpJCsAN9z8ij7suEFBdh2QzO5vkzWCAkuivK0UNc11pm++8YW1v\nWgyA5V3cz0GsxPMjln7CzBK1nKEnKQs5Np62am4+N0qEuKlF0D8YQEyscm1P\nb4+YybyY60Rlx2Blo11yO4yytwrb0OifsU8hnIPDsikGi5Q1aDSez6iAgQ0A\n9EO2YQ5mN3ZMfDGzvb/DRV5saiJLL7q7Cu0y5QCIggn33EU3y95NuUTT8JA7\n16kl26P7B3i16PkEHC00sPTrPW9ZbbD6p09j/9jN0yz0FrXoERQsZifUBvcZ\neh7vGhiDMgBN3orlNOXS4IzRwdbOropEh5knbw5GOeJX8rX9m1+4SO0KQH7V\n5IOdPAwxyhq8S+epbqb4tBN70BrxeKElGn6rhNfZ86AmQuu10dyk1WnVyj1k\n1+schweRC7wgpxJZZWn3PD6G4bWfMPn++XXMm91uWmQgcFgeteVv4yjZ03pu\n2Ihy\r\n=XYBc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6VabUgiJw7fNKinaF1flgVgxX+t4BSI6xhpMcmEbPhAIhAM01Ce/isjoFuD1/zPMZIElw6ksIc/62dfliPbH0y05l"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1599892520007_1599892531899_0.1218042891652602"},"_hasShrinkwrap":false},"1.4.0-next.1600095486146":{"name":"playwright","version":"1.4.0-next.1600095486146","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600095486146","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tzuJClc2ld/DcElLkOhlKS8+b8LRKDcuDFBmwcrOrrT8pgs0cxTvoe8PpJwezyj7Hcd3Uf5FLsNKrRnR4qVQug==","shasum":"18a2536385de9040afd994213f9c6f3c8cb03f90","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600095486146.tgz","fileCount":168,"unpackedSize":12355696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX4UMCRA9TVsSAnZWagAAe+wP/jv6AIT2PZb2hfL5UOOd\nxiGHPwHRXcwP8uW/znr8LnCggSeH/49ZqMoYDyWeYmk6SxnJh5fYFXI1S3xZ\n37qxu8Gh310WHev1r/4SWR6N7yGaJbavk4cdBAUdm+LVRQMv8tiHN+0ZQkKD\nklEH1uxRxF8osXjQeca3Hn6xzFNVlvFB9mWNeBR+5q9tSaSK3eDQ1v7v3g4h\nWRVL1+rDNJzrKgLonhHj9TvUbp5cr4tKfe2cDXSANyE1ETEhHrskHQ9rJRSz\nXc3yKZpC6LRsQyj98Wfiaz5bPT3biDyWM4E39XxzRPpolaLHZSTS5KqCVDzI\nH+KVd7le4AfutuTjUEiqPGlpe1RRWtJWqEWhtn0r65F/L720G3Izytrtzpiy\nqXMSzkglXgx7rlQ1mTVSetVb4Yp6OqZdOnyl6tbPmcWdRP+caJwZQfcnco57\ngksT5NGWDQPCPRzrwzmR039mnpqjLAua43I+U1THuLEzbnTuf30SEu9s+HqU\nIgPZj9/Em+6gZ1xVSX/l9ZAYKxE5vZjZNl0S643E2Js1jb98H8NCI5sGratJ\nB4KRbccJ/1pzRDT8eHs487Mriq0khuQGvNs0iRR2E7LViQWHSrMWO3mQpeeL\nZsUf4J+uaYpAXZ4YEGwdSLaF59mFy5pEuRSunF96I0wZ3zZWitj4uVMpxu1z\nRAq2\r\n=J+Cz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCN58iUIpVbWwUa4xt7Tp+DF8vpEBI9Vg1n09oOlXwOVgIgU3RNteloSG5gXVLQpRtRaqlz9wIQJfQPpXvYum3U+70="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600095486146_1600095499330_0.7957173384523852"},"_hasShrinkwrap":false},"1.4.0-next.1600104525074":{"name":"playwright","version":"1.4.0-next.1600104525074","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600104525074","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-n+MSBIBXQ6AJOmJjwOtJqqeoDyGnM1HWp0JYdcB0nPOt6I5ozoj8B8whK/IDEY8mj2+14SkcTw21uPv/IyQxvg==","shasum":"71d0bb856b3ae70de9609552d4d86ae761e6df3b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600104525074.tgz","fileCount":168,"unpackedSize":12355726,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX6hcCRA9TVsSAnZWagAA+ZcP/1bP2IZoWJmAD77eILAt\nqOdCaJvRmVHpbnBk8SQf+Eah/vomYRYPpKOL0a0xZLeKKKG+tV3NE7UUaS7s\nr07seTe8tvegVnXrveXdwRrFTJ0Z6NDMuXSzpiC1brOJ1guTyuX8flyljkss\nvm/zE0yoEiLbBmgrPHOkPsjjpGXrDlsyvQl2DVS63gvSPpynZ/Dz0oCvmn0I\nxl1ysabJvKALTcCnz9R//Tgy+zu1BHuRAeKJD+LzfoYK++LK10NPqc3BVfru\n4G+T11iTFjAQbZSBdfeKFD+/Esy2DJDEYt2vmxLIfT23xUcsid2FkRdLneSs\nbD4SSzlZOjju0FGxfz2y9lY4hT1HaaxZzBrNdCCMb4C2OdSh4VojI7kvnv4O\nensXkz7wDW1T0W9a1KaMqKboq1Ey6kugA8nueBM1VMzpEnAH+XyljhdJcVbh\n43i2Wkg5ZGqfbGSnju9GvpkRER3Ma4hZp8sw0BBqwoRd2sXZe366LMsfmJ+1\n73JCg9Fm9hNE29bsh/nHH/3a5Un+SMv/WQta2Mwn0Y6NvWMkB0oTh995uhEL\nn+j1+108edM9UnY8yPFVPymLqv2OhAVr2Srh/j+6YjbzvrIOoBhyOfHOgXRM\nILPQ+vsuRVPDSm0kJyj6TjtEx8Z1tlYmwQeKE7mAySISsNEztj/cl2GCZBbJ\n7zQf\r\n=uq4J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZavGLWy/8RjcAUvbz5SXLhXOiRWYfXT52d7GRUNbJXQIgHS/gdFfWecVmwAYbSKSb15hPQBd/EJ8msAnDXbQfyms="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600104525074_1600104539382_0.9577099842628445"},"_hasShrinkwrap":false},"1.4.0-next.1600105212685":{"name":"playwright","version":"1.4.0-next.1600105212685","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600105212685","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2LJgUBqQE/WI690/fLOlelTinztvn817RvzYipEh58ZeName5YYAv+052hAoIv9fkp99vQh1lJ5K6p4mPSOA7g==","shasum":"b5030741e8f29dccc0b70b65d07e8aa89389a3ee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600105212685.tgz","fileCount":168,"unpackedSize":12356068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX6sKCRA9TVsSAnZWagAA7JUP/0Z/1RI1mwf9bLT2fZgf\n5ivo/ci5F5Qwe5D+i4NFKWFDQBOB8l6lbf4h5dPZyYhgFubfnZCS2EFvD9hV\n+tcvsd7t9r/a2LKxRRfVSeiD9VYml0iOheF6PbV6Sso1NNkMqYFOIARasysx\nBbQpdpt7tfK011SFTmQ1xcNTEaaiaRllpXLzZMgyoI6F9NNOVrNyPYKMM7Zc\nPejjzHzRD9IkCmVq/118l7W9bWjh6U7QRvEXJkSickAHLhrCFxs904Y3lba8\ne+NwXsPQEXyRMcGb0dWa/quEBudie134z7xZ2rKZdpCGxV9PhOx0RB6KuPEs\nR3A1iBtgQLgvrkG7KRxtNU8a42WdvZigRAtmyUkMeGR/aoci+XwgLYi+OaNn\nGItW78JXt8cBJx6JLfyOFTybTrzdd+Qr+rj8k1FHbFFwpuEL1TkdQwHN+ztb\nQnhCYhmuhgCMJChzNylot02QZ05RroTdFpQmx943gcn4PDIjXSvu8/pqimJS\nSgKHEkzt603UARdJHEGSTtTV/3Y9FBsTL/+zEmNvLIUvbwVyELFmNI9WI5ku\ngqoDpyqULSSBP0rQiL5Le/Q1r41VVSSHWCGTuE3HabPQtX+vTkdwmWHew/2u\nk+NmA2Yev8wh8pfD6wCdH/NteKq16s3pHqM5wX/xyGeoPFCiXzEqVj7DV/9n\nZc9F\r\n=kTeY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjKPMMY08Ci+9m3V5l76orn7iOWB+YLbcoaAbt0l90eQIhAOZXprmN9DtxElU2wgptckHw9ebxLLfyIBdWz7qrl8TC"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600105212685_1600105225555_0.2814130438310616"},"_hasShrinkwrap":false},"1.4.0-next.1600119940532":{"name":"playwright","version":"1.4.0-next.1600119940532","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600119940532","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gY9lMfDDHMk8iGDz4zAK4x/UHiT3DvE0sPuDLgPowEp+pHf5L2pIwppwmwj9J1U424O3IYtXtuTJpmpWw4Euxg==","shasum":"318eaf64addbb9a3bfcfbf0c6a7c8d493ad8ac87","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600119940532.tgz","fileCount":168,"unpackedSize":12355711,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX+SkCRA9TVsSAnZWagAAJpMP/jujZ19VMkL3OnoLQphg\nWtpRA9JB6vldGSgaWS/qcXSHVpX1HGtcDG53FgkfbmnQRmz5dBsxNYFq4x7B\nN2wwVVr4qouYpeNhW1ryrifbb4EGunb3s5T9jQNZlpBKrfk5+poBprH+L1J8\n0J8/s2GXBocSOL/4/yv+rf+Bfgh16ICNU31XdAFXx3jPQAhMurLSq3Ns/bHU\n8/8x8RuPOEP1blOKQGxb+dG+FjqSAaoZmwzjOJTbWV4sb12UG89o7AUUScSM\nGkC6JsMRdBqIfmtLEhmD0aspGfQpO2zS39Tz6u4O2XLlak8eKH8Kkkiztsjz\nxq+Ys1FvMHImX2hitXh/RqjF74JB97dJhjJkUsVREJbkT7KnRoKIUFoU8xY/\nzkRsJTGCyddZcBcISzNf/6ijuYyONc9l6pJAzr7mWuZW031Mjn4O9mWQztk1\nQ3TuDovSs3g0xhpql1sE80wF5R0+6ArY0C29Mfl4Sov8jFu53rixHQaYM8pE\na5ee95TdTh0nHNG2Uyd0zkGKx4BRk9g67+9F7mZ1MYq9tp6BkxWlZoTHRxZJ\nMnzJ8BcSwfZQ7UkX3k2QeWb/Sn8WGweO/1Sscs2qj5+zklygU3Ys7SzwOYA7\nCTjlwicV6zwDUsNCDPt0Di3XNn+4OIRK9zeUiMoo1EP0KXIZba0scZR9Tjmt\nCZeE\r\n=FBtn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICMrGXopD9MtayUSaQTh38QUjvuzC/lKRHAqvMaLwK4vAiEAlsSGxehZOJp9PPFUa0rJ0pClzpmYyv3LbsB6O+jtdDc="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600119940532_1600119971895_0.29576236325339633"},"_hasShrinkwrap":false},"1.4.0-next.1600120671246":{"name":"playwright","version":"1.4.0-next.1600120671246","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600120671246","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5MaWvRUjVCdvei2Fdg9Cu5KO1HQ28FBuZg1gZ+OIUtjU/F7f8jS4ckU4BMA4Gz2MjgoQUuIA7kLN2/5eHWyaGQ==","shasum":"c6b6570b3f6900d2b4d5e609fb7784744f9f6c55","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600120671246.tgz","fileCount":168,"unpackedSize":12355878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX+dtCRA9TVsSAnZWagAAUcAP/2ZZ3OeiwDqx1KhlS8kt\nq9xeYKreJSpoS/Ai3tQJtBQ9HlIpRQNy48ZNZFctM/N65EXp+AVqBTmKiQsc\naxDwEVSDzn3ooWV2ii3w0jtv6TFxFTh5ZFRGCprkPpurl7Ws1cp8uZcAgSeA\nm68NBpLJdjUooIANZAMN3rf89b/Vgal/7KyJCYEfezw9XkOtXwcFK9wUVaVQ\nueFcfluH+NW1te1j6utICDjel1r0D1RhhcQvBdNHplxm1reTQWAKbVMZ6qPK\nmVjBCcm8RLSlHt8VrlLPN08C5tdn0ckZ7IrhG3wNAWSqs2N/tRb9DTxQPyhA\nTw45uWdmKjrwUPx8CKDtPA0pGTHOaVGKsgtS+bGdaO//E3UsA/Cjgx7jVROS\nPKGNHUfMO8j76SRuO6uP7gVekfsLTFITaG8mLlTyxNTw0iv7uo2Ua2+9ewOm\nTGeymqFFZus8XleFGZN5GN1sXjOn82GvEOYvZWuGT4IboBRYZ7NIgLEHQ1Rx\n0+4wlzd5JAkU6htaKV8ZdzGIXTqnMAhTDKqgfmf+4GpM2JltIkni1wx7tls8\njNX6oh89+9OucULHPDbSXMgZ9LV3Wk5xXiYZizBQ5C9gM0phciWXb3qYKuO8\n3hwrq3BjM3XOYlLTG8Zf9ylBQXAxAwiCJJA1HwIQRJEGKZWnFrGRaKK8L+d0\nNZ5y\r\n=RZwy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCg4Uc0OVmWsy/Eg99VRcLEsr7x3IqAWdvt3ZxIQTmN2wIgIQqX53U2Og6qvedTlFRJiWjxKyiNfEv/M07OJUEaMOA="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600120671246_1600120684466_0.7593604384986357"},"_hasShrinkwrap":false},"1.4.0-next.1600121217122":{"name":"playwright","version":"1.4.0-next.1600121217122","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600121217122","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-J4C1rH+J8rvybkPhG42yTx01AhD9K6bMb+kM3fQMl6UmodnKwdIZ2z1de4A7s/NYA7/N5+DEqCw0npZntMiO2Q==","shasum":"c24f224c5756a9ecef2b8acee82056b833143fad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600121217122.tgz","fileCount":168,"unpackedSize":12355878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX+mkCRA9TVsSAnZWagAA6y4QAJC5rt0XGzlY68xt9SkD\n4+FCNfzJWkYMFlFMjMEJYCuDfrHoBBK7MMI5dx7GYiI7VpCS4iGPv9BMJ030\neyMpLErLt19JCdHg6GAI/qrkcbf2nQwY938SHAA9V4fW0FrW0C0UlDTBVEXE\nCPuhpa+cEtfpputEtTbXMA7d9kkIQCwaePahNHzewQ5wsaWisGQrw4QGwYYI\nh0kccNs8iIGUVKv6z3FJvrDO6tXISrV/5kDsgG6JgM4gHFtlSOWNxETbP5lA\nGDGXoMx6KZ3g/NjOPsvyQk2CCsLUEUgi2LpPJ/8L+Jv7jYJsOw3mZJX26Bhl\nW95mXMVB0FtkSucFNGM1NdVtc7R2PKFWvzWkQRHfa+7K1OZWBYJ+295fvQBU\ntIAXbAmz1q7OwdQiJJpNG43KeNDCNSlpIvlEdpgrjcjmUJBUhwRvbXTIHSkF\nBad7O5oOtMuvG3Rha3WONdVAz/qf532PCUfW5G9v+y75Q0GAo8I3P/uuN0P1\nhX4+siCV9UfotCldxr80HrFhVzH+twcWvSjiAUaOVUlmLIQzWwTPsPB7gDz8\nGJMCFHKrwAdABBHbcTdxdhsHjjvI5Rl0+Tjqq8iowV307etxoNFByptSoVC1\njU9ujd5+ZgDg6x5aOQbCwfpidvoBbThL4qrDlum1hxzdasOeXXKuN1pIQ3G8\nqsQ0\r\n=eqMW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnOORHjG8Ik0wdtRpoPMVoFxiKKFqsPY8PMW/joVAYaAiB+iRbUq2HOR9gRNXPfBWkvxrJBbQQib6G5Z1/E+pAuOg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600121217122_1600121252388_0.5462697605426476"},"_hasShrinkwrap":false},"1.4.0-next.1600121343963":{"name":"playwright","version":"1.4.0-next.1600121343963","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600121343963","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-BRNlLep1DU8sF3v4e5cLdVOz+zW7hPPRABo8E6slbgFS0Uf+RsEzXip3qapp+VyNnGIroJLOxlTadhYx5vJA7g==","shasum":"fa574037e687bf7aecdfc444bf328cf537080cf2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600121343963.tgz","fileCount":169,"unpackedSize":12345566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX+oOCRA9TVsSAnZWagAALbkP/0+3nirS1qU9AVP+ihIb\nWxZs4F7hWCEK2dsAShfjgcA+v8HvnHNUnupPfcaHK01wVI/+5+KwHRn4MdVh\nvc3ps2mY9U7JI+q3ow/r1V2WLzrT+PfCkbNOxMqCs6xn3RKb5nC3GYQ7222Y\nps+Wyb0MAvuFcAKsiBrKUHiLysGf1jHVcMhm708E2DeCedFlT48mZKADcwRc\nrlPLPfBcKIWtNJTH8wcMQaHflD40U5jGdhpxurZYxwO+WpRrIy7+fz/683h8\ni/IQ/+nw6cUfCr2K8VrIFVmLGfhCWGvDN4jYil8pfqNfl0qRgTMHUln3KNA4\n7Aqqlgs9U/htLYO/WAyTCYgI6MBAvrGXSNsmY52Pe2F1EcEOQpcav7HCsn+l\nRlOnWNmCTIcVt5yEGISR6dbHSBEkTn0CS0JLnECYcirxj8RDUdGuQhyxcx6L\nNY8N3sw2M+C/CtgiFyzgS99PeSpWR71RTXIRk9GXGcyr48lTlEADGaE+dPFu\n6VbNxkWhY/EBdN3u3V7apCIPDOqp7pDBzGGsVec0EBMHvpSjXxq8bongzYBN\nOxmYP/kx2odYz5gr0IDYEQhWPXPTHMpgVy+MeJKU17S0Og1nybiQcTOG6uRj\nzSbv9Ylf+tPc/MMk1FBCZ6LBN1gwXjQLFzYQXoE6xLNtyBYmtiw5DXhkDEsg\nqUAA\r\n=vu0u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1Y8yaiQicRoPdt7qpizChdKDS1cYY/nyf6FM50eEzwAiAgN2fyBuGwahLCaJBTVLzHNHXup4esZ8XY+U3yqaNbew=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600121343963_1600121357776_0.22785519231631213"},"_hasShrinkwrap":false},"1.4.0-next.1600121707833":{"name":"playwright","version":"1.4.0-next.1600121707833","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600121707833","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KWc1fHauGBUzFIx5DB7XmHpM1pw2e2YjOA5IQpAlcGBLsjbgbJCgbF/pe3ZC7lcPRg3ylNsy29OB2DQE6wgxkg==","shasum":"ac535928fcfa0212f49dd446c99f990f452e298f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600121707833.tgz","fileCount":168,"unpackedSize":12355878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfX+t4CRA9TVsSAnZWagAAP3kQAKPSk7Xr7DfQxBf3wUJa\neowy5hFugMT30dEjCRZ3qw6RhYRbZJI3mwVEfamd/SFt1mfGPBBkoc3SML3e\nWqayUvxUsEda0a89/B7uOt7aAKYXMYu7aD3OOZgeDekPzYkr3XgL+tpTMr+G\nww2M4y3lTfK/mC6yVyW+K/wQa4bk4JTF7GuqToLD5MWAbi+5kmhvGCpqQ5UY\n4Jd3I682HyMtarXDt+uTxGrwIDE5k2iKw/YYymcFPKXX437rPvqhrj7TPDHO\nurX3atdOocdv5OTZ3YilXv4Nd6fTs19TPoTK8YdzGcANfL9dOchAkY4oyr0R\nfFdA7zMiJ8swEMtH8dK0Uu1onR0oybntj0m/X2fxDVE4AL33OXiSXWxC9Zkt\nmnRGBcdNpn8l58xkJIjtz38YYo6vHP9N6cxPzsxK8gfOKXamK0pdCXbAEBPE\nFyMQxjbAWe5cAsFvxJCFBi4v1FjajqXnB5FQbdQgpRpQxqB4i8XZ4PwUvm9X\nPHaetZTpXQ5bBXeCEz8B9BwC57kXT51ZxT1RLrRipugAnOPGboKXvAZkwUIR\nzIp9IwQK2z3G/yhVzXFNQu8OaaFY0xd5kiw5PYWCGtwwEE1mlUWoBEWw2X8N\nXOELtzuDGY8OARY1kKmMC8dWWf5ACDGGHiK242hZgPXj6j1O+jgo+Qtz8/C0\nvYq3\r\n=82DW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdKnJ9OIlabvgNRbNiG3vpF6Rr5IP8uTXd6QVa3ETxggIhAOS8hxyM8/V0CDOP5aLCEisWXs10vWk/IsZ9sX2rAG00"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600121707833_1600121720227_0.17175067915511089"},"_hasShrinkwrap":false},"1.4.0-next.1600127102931":{"name":"playwright","version":"1.4.0-next.1600127102931","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600127102931","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JICW6Dz99FZ6Jg5Qp9O37ZeXD4f6RWVXgSJhoq9qU7Gfk/P8lvVSrEu1iYMa49nBqg5j4e00iEKf6ZeCDppvFg==","shasum":"f722eeee588ff41127f70ae4d0965197f96e9f31","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600127102931.tgz","fileCount":168,"unpackedSize":12356720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYACgCRA9TVsSAnZWagAAIhcP/2uqmNlk7IodY6t4L2nx\nqCgDjvnVwwDvwao5REu5LTH2yoKh5Ep7QT3PerOhUe+Xfqi7SykYbXfucFf7\nS23Xu78BwPyHwZjv8ZNELuxJQ/0Mb3kQJyrt4rhk/Nxac7OMDYK4BwLPTCot\n26isP5mQhXPqOF+5odGErOsAJKX71dez8g+WTJ9aTHZIe2XeNRw23ALgLhZ8\n5AXy/qg4J3imSFUBkuHYfequDY4TW1Bs6OVn6pBu6/btbmWQY/mg1StO85is\nbnwZtWpwuoDVGcI3IvDtPvFm8JnfOvT1PG2UXSoUd/wIddCOG0vdEoBsEe+o\nfmWUpVfQK1BxXHyJekEZ5ci/dVwkDTTdLySykxgUUXX384DWsSiS8HKS7Z0P\nVWE3+zginIxHhU7fRb0Hlml/QdUGN303GgEo8vu7G+nFG3D0cofRNtQr2Sye\nek3mIV7PH6vJ0XvVLHURFknXrBZmTFUigTH5iYFaITIKsuqOb1jBfhMZlPMz\nUR6CapA9u+tEwjrLla/rB84+8C60/D/SvMKDRxrBgbVQoMykWCsNO97e7GVK\nsjLjNGvudg4bdpyCCp8SFD27ymHALSw+QHmJTPfI4aeD+JIWuYSHJazGMKLZ\nsKBWb/48YUIKOI2dBMOFXKg/FG57kW4V2FUxWnW6fCFwiLebjBOY1zqgp8Q0\nueBB\r\n=trSC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDWoAagSPGiPov5bDZZujHzGH4Rvk0J2lz5YzmB1hpLNAiEA6Oc2Sp9AZIBFVtJlrxFVIz+nT5qNEwWMxU96D89OC24="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600127102931_1600127136237_0.7407466903758662"},"_hasShrinkwrap":false},"1.4.0-next.1600130893663":{"name":"playwright","version":"1.4.0-next.1600130893663","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600130893663","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-g9o5nSlEDj45Z++6LHSJdoqw73Phf1aNle3ENsppFlm9rVaxIlYk7Dpn/9nGWgbZFUrOkqYt9/zIxAVSRr8fvw==","shasum":"2531d1e495991964f795b9650eec5497e1d09337","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600130893663.tgz","fileCount":168,"unpackedSize":12356720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYA9bCRA9TVsSAnZWagAAq/MQAKBK0vnEztCQ4XIWzyuJ\nW4MNKvdASZ8+Yr8tO9wrNxtEEYQBuCM9RvoKkzMzEQbI+F9wpR//Zj8jkctl\nWOEEbCAusqfj45XaL9GPQqZvd/7vb4nm4p8ZUkM6FCEb7V7WjNLhsblKL7m9\nCe6G81OpL2B8jfKzA5qdySQoNMWSb8cun+KCLp+MUxDiuGhNqAEv2S3rdHwZ\nzgzafD0lOdgdWrlaqaUFJTqiWKcO98fFj9aZm2rkqUzA9lqeCB9IEEFYet20\n4WxjhJdcDwRJknPo5dkELyy3XbpZQKjgSRlr1h+WuhIEfeE1bOkCJSOMVQCP\nW9M/+S+xsmc2qJJo1wPabxwy5GuX9jtZrIaa4HoBBxsnFXCQU8tQtlVCdm0e\n71X5Kc0ba/Z+anLYyb03XEloSPo7EcuOdrfFOznqtRMleTZsY8JojHNXtOaG\n6xBdnrcybf7JGyRsqMvBhRCk7clW3Vezzdp4i6p+7u18qk55N+V9cVdaYF4V\n5xr0upGSuFt5pkWtbKH7N2J6Hv1SMXlJktuWzdqc1gqoK5hYV9XZPhfkalIs\nQ4ypOD64/Y+ACD/wXunV+djlO13g2mv80xyaXOEODXcvLkugGyiBcUEtLChd\nst4it1bYP4MVI5yUokpc25YEvdY5sMZqeEkbblp1/BPpaNks88QieSXfNyWs\nWYwN\r\n=8wby\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB7XXHj7Ph2LFZ+V+fewZgftWngrHgygQD7yejolCs1+AiBfCcuMlRtBxOIkX2ndr1SRwdlKdGu7o2QOdxLtXNrPBw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600130893663_1600130907263_0.5108421940738432"},"_hasShrinkwrap":false},"1.4.0-next.1600134178419":{"name":"playwright","version":"1.4.0-next.1600134178419","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600134178419","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-7MWg5pSMCD0XRH5Pv6/W4/rw3AbBqAwFysKWaYXgM2UXdAtHNsZcDk8wjMjusJv2Zj2/Ed1gCMVOmxNxlYlrPQ==","shasum":"2cef5e223527c477717316c36b066710f651bfc7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600134178419.tgz","fileCount":168,"unpackedSize":12358745,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYBwtCRA9TVsSAnZWagAA8mEP/jEJBW1v8J67Z9ONvtTH\nOHmNE0x7gApG/jdCQ9953pZbFMdSypHBPuyrGXmDWtXYCYucXNKfjEzN2ygA\nydWVhC+phz2ms9tnX7kGxIGPit75wChjTc0QrjZL+uwOHnkgNQBzzlw/dMc3\nz2OjVI7l4u8HrHGD+U+pRM9wiTQIUt9yYSJp7lgvOmoA8eoh1rhvJVhjNqlt\nWK84YgjOOrGirXMn46Lqi3beshHk9zSqos+pnVCgPIXPKwBvFSk9IuIyvl9T\nW3J2PIAuQT1Ojyx8SEtjSqmHjtgYeARfjeoYxH8VVKEcKKruuesMLlSAYldy\no3kbL0YdrnTYDXyn6mXrIRrWk0pMUyE+6P9mHb4ljlTfTm0xWNC6xHLTiKvR\nkN51CZbYQIlQDHN7guV57etZTaOJYcwQMm0ZangIbQOXIrmezVLFUle3j7o/\nUeCCKjTdGe6PD/+GdUmarwH9RCmWPExihU7SdmviFlNgTQ4b6sVYM477fKAT\ntaliA5vMNIBKIPS0zTLWHq6e0mVP5ERNpfu2qfvV7h9XfSLsQsAx5I7nIPmE\nQ5y7CO+oSsSIU9VIBzZDLDHaNHGQ5rdzQf7mUbiWnfZMIB1KlCsnxK5ktYbq\nKcX34cigRUjQN479qZ6m3kf2C6JRhyGMX4jWt5hz/g6FhTc70LTtj0o/xAcU\nuC+v\r\n=DqYT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdpfbaVi3fHSXPsarjMxOyXYqCffXECpgQyRseFJ8vbgIgWkmCmY4bYMm2XPc5YKukMQ8U7eZGMvN/MQcQCQt9UDU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600134178419_1600134188773_0.9051226169625151"},"_hasShrinkwrap":false},"1.4.0-next.1600134279157":{"name":"playwright","version":"1.4.0-next.1600134279157","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600134279157","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tfiQP+2vxTmk4jbljhXB43rkDE9YeqBn/2bBH32MqQiP/+CHObkchjS6r7jhA+t/cWa1y6UYKsoPM8kTnzDQXA==","shasum":"30d76c24bce39d636189e03d39c31749bfc10741","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600134279157.tgz","fileCount":169,"unpackedSize":12345209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYByVCRA9TVsSAnZWagAAKgkP/2a7Eum1uG3/MSpKSPZg\n+hkdl/Sl97DxGkIyJ7mFhfiqUJ+caOXq+QY4aS76unDuYCkPSVwtNG4WaC1Z\nfyxSecLmWJkmyt/NWA9EOAXvALKzmak9UQ+OvyHy2axjzLmPBJ7veWDo3Bwh\nb+8hygi3JGUHojKU+kCW0IjmbbZIW0rNs/tz0fZX07Du/ZhCuaz2OHNEGwOW\nq6iNj3c+sPwSU8Xq6Glkf8kHLRV7ueTbJHRmMrQK/54jFYG/zrFKxMoJjG02\nJE+/o24fCWUTkxBaCP+cap6rDGqBF94SmPkPViVj9DDR0MDVRyYPGUJ3BVq3\nxJ9bIAyyG9eu8IOIOoJaQHwJT3FMkRn1TmUfcuZ+Gx2VN2/sioVgDr/BlHmP\nR1r6GuhLwiLbWRLw112mFrxBkLUhX9rK0qej42mwbkVrfqYd0JFMya9zjY9H\nL8w5nrlhMUIMggAih8d/x9g5+qzzXlvTjv4dD4Rutfn252n/P6rQq29VucZG\nCn9vCwHdOhfsYjEJqS0h1jx0aRlks4T+fR0/sDDD7V+hUmkG4uRgyCM8839D\n/8+T8ncHSmV2pR9NK1HUkFgTWjGDlTShZ8fUt0QFSBhb0A3y/uEnXZDIfwnb\n1F9Khs8g0+oRNnUSOt+oB4iYzemoO9ZOKivCqeY3kXZL9tbnYqLvlsuvtTv1\nwsVK\r\n=qv/v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAIk6vkAHKCZ7PDzgN2oqPUFNaJNB0dQnjzbSA39zBQFAiAhDyRcqD+KZ940grIyqyVxoQOvBLZOwZFy8axxDvc9Eg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600134279157_1600134292535_0.5389568754254932"},"_hasShrinkwrap":false},"1.4.0-next.1600136759862":{"name":"playwright","version":"1.4.0-next.1600136759862","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600136759862","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-uACCzmx4f/U7bCCo/8jnyQDe+s8fNtYSy66Xjh8OGN3NBltfw7Vg7YTs44cVr9+FxrlVumEEF+EPC5Q/PRyyVg==","shasum":"385e267d3eba703d6dc8f0fc904a53ad31740c32","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600136759862.tgz","fileCount":169,"unpackedSize":17880216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYCZICRA9TVsSAnZWagAAhBQP/iVcsa4TLB1mG8iEiurI\nrqymM0UsFMVS5sSBqkV/aolABA0pNv3GgKmv/Wo8g87WbtzIK6osmjJfLHUZ\nXPY5uTwX0qglSZDFSq1dmXfHzbx2yCEwtvfgWkoUQkqogv8I0uPkmOXrD8yW\n/0aGTucM4OPW2icO1fCL7PMHmav4ZNsiUUrXhTT6wetBUKfItsbG1IIL0bAc\nGs4+rgZnhPkmTumq8I60ZLKSDj+GwPxbtjCAajFFCqVEWPCwvtWdQIWivJsq\n28pnJwvbr06IHCe6rRAeU871y9EOiUNm2B/tn6AuR+N0VjWPAF79CTfKk/v9\nc1/BwVqpiaF00VNDsf8t27fQBJTjry91Ly+fqSEQGEtwVPw52Ina2K3SQ0/n\nmhrjw+jMkiLEh+nogAQnuf9SqcgmXzVX7jBgA1coXCIUc7Lfa6UT1rBWjJRV\npVZkx7pszk2gpx5g0w6r5ySJ5JZ60N9FUsekxj+DZj+eg4E6YiyDfmKQrlVl\nTlAL81yCLHOZjBMyLFFPYiSnp1Oh0/SmsZm2PYlVnW+bgYPNpcspsPccF4rF\nfWkw/jr1I0tZ8oLuZzh9JBwFBAv9o1DvKGitufTh485llDdF876sekwh30Tl\nUeN11OlpHoiKwg5yhrt2kAuqZZQqbM+YFfm4jmPOEGnv9zMHL5OSIrCoTJLA\nrTsW\r\n=aD8J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAI8S3F4WYfmg1GnW0QxzhNUlaTZq9RYAaxwTzcp81cwAiEApjbHc/XPhRAvwj2KPNyvBZEKgDFmcFn5GcFW0Xega8E="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600136759862_1600136775852_0.20083229600290675"},"_hasShrinkwrap":false},"1.4.0-next.1600143826842":{"name":"playwright","version":"1.4.0-next.1600143826842","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600143826842","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KAmjMJwwb+ANYaJv9v3N+b7g/m4gMe51jUHaeT5yfQhVKaBDwQns4CXBqvAbGBile5IBrr3UDG3PP2Bw5t93vQ==","shasum":"434c491137bea20000a3630b545cd7c0babbe4bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600143826842.tgz","fileCount":169,"unpackedSize":17880499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYEHhCRA9TVsSAnZWagAAeZgP/R1J7fxbN818QPlSdLvn\nuhuYMC6chwOL5BkkbIG7EzfcwM+fS4l2+IRlsdBLTY3IZpXjWi2iZxk7g7Xs\nSWvfWrCNCe4nLT7bH161Lk2Pp+CS3esFnB6frmno8c6W7+wq9huKHidnGk+q\n/KjQPOv/bZPE5cBcg+lv05jHqrWhTZacqCqP6fYpwpWddVq8CMZkGBWQQyv1\nfEGe9+EOB44SxG25lkX9nX74ZONbJy0LRF4Cbx9b5lL1rCB9+v4w0XsupACj\nIWGeCcpU+lwxsyOMYkPHE7KkcOhzb8j3GmUWnGbHhc8aLiAN6HXPIEG5fUqJ\nmhs09LDQWrPSJGOBfqkLmrgxo0gXeber8X//DNJyfHj2of27vu//l5CwA1Sm\nPxzqZOeTjlWFZ+HbhFJGYyZwkM+2WSpUpMbrD8ushWCOAh4+XKZqQKsQW1IL\namCVnxg2x4pOY+c4A9Il42bCf3cUe4mD8otNWZk48ygHyo+CbacWjnXwexqz\n3fnlXFZ1spJXnL6+icGtnOk4y9TAiHfUAl8GX3uSyyQgzPj4taydHbRX04de\nBuVxsMt2tH8dOV1JNDXT7oVOWyYe7OvJssCgTIaRI/Tgauwr9oh6DBoWsjG1\nOkDNuTzpCiaLs6mZHM4fwshY7lZx9r/Ekw69Vte3rr8zt0+dBu94uasOaYXj\ne3TI\r\n=5iIO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHjg4lAjm1D5V5j3+iNRs+2z8u43XYFx/KWfKZ4Anx9wIhANW0tP5jlE0VdQP2uyUq/ga1XROFGUp1QPTJW4cKYsHo"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600143826842_1600143840328_0.027430037310382405"},"_hasShrinkwrap":false},"1.4.0-next.1600188518640":{"name":"playwright","version":"1.4.0-next.1600188518640","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600188518640","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VdNNvsH1Dc4SneTwHM75y3ohQT3XmLCOqIFTsgPKGi9+uyJRWjxmmG9TViC4UvECkVFSirJBIcaJTIg2PamDIA==","shasum":"db528152de1943cbad1227080e2f52a642df4703","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600188518640.tgz","fileCount":169,"unpackedSize":17881324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYPB3CRA9TVsSAnZWagAAzD8P/AsxYDB4Nah6RQHZf5Ul\nEd5E1W5rexZn35LaPJkm95uu9xpWf2nhDreNU5enaGYfe5ggs5/igvyPiIs1\nIvqkRiOGnX0TBgrNrCdr8oJVsLgFQnWVJuf/X8f1P54zOufL9Lm34+majhJ/\nWEmCzylTKxFuZTUct+U/woXvmDvbyWxyg7DY0qoyK2RspeWq657owwkEv3F4\ngHf1ZR3Wq9kmRa1BOyO71icwWLF6tp7h8cKJSz0LFuFUqLYhTyqxq36e8Ksx\nc4xT2L2+N2r6/CadapaQn0r4EJJoa2E5VQw/uPpZf8idDAqTrbOz+yF+m3Au\nh5T3MaY5cJkJJMpP4yZ0qmh+7VpybJxxvi68+OKP0itKaR8N/ELUqW5Xfh+c\n3NLSHSsilS/v+HFA3/Gjhera0b0V/xRKJF+Ut+zmAJZc3fDN9/bODO6hqOaS\nXSudlJkxZUFR7QUvhJNs4kB93mDZyFMFRSEMp9V6gR9cT+EEk13bMbQHWZa3\nOr2sQCjS3SwiTVLW4/sqN9shQnM+7/Zah2xFn5KyShvqPQXXMtg+BZYMQu6A\nJ2VlRz8Cx71N/wdQJYXKEsex94+jRexiGL4zCZOafIY+MzZYuhMqwjlkyoVc\nf4CeyGW1SvnUR26dvQoBa2HxXLaroR5KtLtdTOUszN+m4Q+AvktkXA2tOHep\nTKnh\r\n=2VTn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICxnsu9RIq8zp9HxT4Mt5zoBJR1BZUqGOmicFJgIHB9EAiEA3WDgQiDdLXlh0ns8A1On5J/RwWExwdY8uTjuzC4oiVQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600188518640_1600188534713_0.4163860164699218"},"_hasShrinkwrap":false},"1.4.0-next.1600208608557":{"name":"playwright","version":"1.4.0-next.1600208608557","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600208608557","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-V7S9q0ahoFTvlFKrrk40CSK0MM/X602Y01GlXsRUGv8gCEYzolAqviuWPWJUqbkXnIJvKnP9FluRdHdwpwm/tA==","shasum":"f2898a2a3be63900caceb6664ea2af5e7bf99fe8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600208608557.tgz","fileCount":169,"unpackedSize":17881584,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYT7tCRA9TVsSAnZWagAAkUgP/RMjL+YKKYpMSt7BWfg8\nZ05A+Jg7k8ztZy8SJm6HRvgcfO1cwBFMxuWIC1izC8LrQ2wfF3r8RUdDyAgH\n0raYl93FcNwFNd2gmWNOyWrWhipPTanubGfA76AUvXXtJ0Hh5FD42IfGjRma\nbZAcMpQw7+ED/ir01MtOgAkImKctCuyrt+SDELtjTUkFa4Up1Lv7C/vw2rVW\nuz75bxgV8CJq7CuuptbjCNobBT/9njg6uXzymCPwlRQVGssYMM3icV2k4dq2\nrjQwRMVRxtAUmajzkE3g5CL4NGEDmo7DZ8fKLBN6jf9vXBa2b9Ewl+s4yR8U\nzQJdnepEem/3v5kCvL+2678yXl81zyoazsAEITMr3hau3WaRe40brvsMQkBX\nIqbCpnBb6SPU/gy7PrjY9gRDvPlgzNIsWtS5N1zxSD4+6UOFQqdDlC6p30o6\nAL3G0xYn5mWg7pejmCMBqdvbLDdA2IDgTzfw53Fzg7Gkhq1bUQMlyTnzPCUb\nRzjb8FgSx1OUsrNZPmkF1jvFEBRlLVZmrDVzu7nyPJEdsCLzTWDm+z0I6GU3\nZ7wbgUcoLK3CLpRI6yHsBg3szDHGBHyzKI+pHnuhf2j3gl1HHU9IgcT6D0lJ\n/Lq0w8iHwLVxvsSbudaMqHTcvw78PCTwiN8V0NXH6XEMHTBgnldoa7PaT7rb\nUBDg\r\n=e/e9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtqUx1z6jvMrr3O8CPY5ma8T3/JBorfYW6XotJli3p0gIhAO/IiVwuXrArxmHIXRNBKQQ0jxmX6lgAHAWhEszh7+Xn"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600208608557_1600208620791_0.6626425772267106"},"_hasShrinkwrap":false},"1.4.0-next.1600210914459":{"name":"playwright","version":"1.4.0-next.1600210914459","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600210914459","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-CYf5MvXzBc58lgKXtFOTShwpRE8FrhcRqG/q2q4TgFje0BgsyI0GIVDjfYjQKerZgOqj/qs+LSFYg70dsQyzug==","shasum":"59a8454df1d038afe9e5b6d0ad8bc40b7e6c6734","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600210914459.tgz","fileCount":169,"unpackedSize":12345239,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYUfuCRA9TVsSAnZWagAAKSQP/3O5Xrpgku5+T1x796bo\nFzrdNNs7NOegomzadqBI7oVkZtp0qSYo6e4VsOz/al8MmzI/IUNxGb+L7mWY\nWbOQDmKpbgG8KLalMwJTKZKyk9e1qe6uRAeQl/iUeY2ibiBoatb9qF9jYyOa\nex2OtsYujXcUC4k0MBYfxcflXwC1bwYfQGHG9S+rzn1Z7fGSjInWhSk84gaK\nXye2Avoh2KNK9MDg4mxXchIxisCeXviUq5oDnSguKJJ4Bw2Xwo9c/XVrzDFW\nzCWAM1WW/KVOEgAVgUOXylwKQ/vKfQFkk+xWm7vxq/7sqZwOjdeYcrF5GsNB\n3aKsBgKry03eQ6dT/p1Z58EGgMrAi9b5ENHgqk/XQZ/hT+C8x8h8vYICqtyX\n15jSrlEm8tzW6hnzQH39VRur1TmQbdbOzjg7Ly/N0KP76K0Z9KbWYbd8JN8x\nyeh4EgpdVgZMKHVuzllJNf27XLw5hZEMH/OcmXL1H+Lq9Cm7dNt66TMLdoMW\n6cDssNPgWcc8MfTFcYG5Fc84Wm6jmV8Oii5yhFsemxuB5GxQzjJwvIGhnSEA\nCzTI2OeLrIUX9s6crE1W41Sef9VinKs095KpiX8fwa8zwMM05gdmJ+UXAz/q\n/fugVVnGF6xFMM5JzqAhDgz9OYdnXnqHkiv739at64IlQj1GXCH25afwljzQ\neVUx\r\n=Fyvx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAKcCmvl9E1S6VBXLy+ZaJrMBlFAyHQFYBEQ/J+bVvPvAiEAqX3G0iaHnsCLgwyLRPPT/Btdn8L0L058IVcJPgdV45Y="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600210914459_1600210925568_0.6919651552405062"},"_hasShrinkwrap":false},"1.4.0-next.1600275993117":{"name":"playwright","version":"1.4.0-next.1600275993117","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600275993117","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5skoaIzSYx5MygtlQZBRTMEiygxL4GocpXmKSdP7WVP1Kc2iRVzwdJMeW/41QrwLR61EsBdh4wqOJchvlVK+hQ==","shasum":"4728e751c6d5bd39984b2c86eeb630a08ccdc9cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600275993117.tgz","fileCount":169,"unpackedSize":17881584,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYkYnCRA9TVsSAnZWagAAYmwQAId9Vio9wOqI+9lcr+al\nB8a/R9vW8lzXW7s2FS27x8tNq8YXVddpyx/+SFJ02iHBWwcQpg8xGHgeHjHa\nXZd36cjK+eLt0rzOTLKF0CBnTQvNbScDJgQqDtJaxqyUma/IwR6xEfl1T21K\nopAKTsK1qTjg5t+jWKQbeVSClTHRmYigg/hJA9FWyeBcqjnK5XVKWIRLfOcx\niw6etn5s2Q0egVnVL9uRVsS6rErIfNT7peRAMZZVGBKAnfLXGAWcecY8NJNh\nxAq3jw6DBdTZhp2/VlgYkmOXdaFNQ3zyRewIpepZ3QA8SLry8KInQoEisOKx\neIdk2lxWi+e1QfYGKDeGXjWMdXtaBP2vARLAzhsMjopKMgXiVo7tsIiCfWnS\niyHiFgCmT5CkSepr47+7UJeIwOav5FCW2yYQ6ycl4NmtA++9MZdcF8j2Gdy3\nFz7YXcE2h3oB3MeXLmMu30+5OeCGayz4Z7EqVSJn8xua0ESa07TRMsEEuPIx\nD9WG3j+pwhh9hhFJoiFMun69gwFmdaxT3vYgTofJ3MlskfwQfydT/sIOPTAB\nKH+16sHzz6Vnyobxqz9MVuA18MUnKnKVcG89YqlIM1xNgbRWNFGgT0CFX0HP\neo4f3DxItaxOOUAcvGo1JGA3kxuLKKMS5ikuUIPu1F3VA5QjlSApnz/xl+FL\nUtCS\r\n=hoy1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2w1t9yi7o9DX/J31nLM4D7zt0roLRbh4cskpTFDvc8AiEA3CEmDgNG/sXYkNwdMqZlCzvYGwQ4u0sAUtMPg4u7ejo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600275993117_1600276006584_0.8319264326618256"},"_hasShrinkwrap":false},"1.4.0-next.1600276269962":{"name":"playwright","version":"1.4.0-next.1600276269962","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600276269962","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rMOdTX7LYgwQCeqfS29enAAviqoYZlwzibcJ4P7onltPc4Ye6dH0zD3U6arLZ9siuki4rRrXa06NwQg9ysOHFA==","shasum":"04534af97b580ebb8f0702acbfa405860ed9ddf0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600276269962.tgz","fileCount":170,"unpackedSize":17866710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYkc9CRA9TVsSAnZWagAA3dEP/0j4xTmdmExlzSFc0hgk\nyOX07hCMKtfgp01HI4+hDcJV3QzR7F/nEEUdwSNmMlmuk02UuQMbbl7twrO5\nKgUCY9cBMsXsnRsorywP+h2VdNISdGYx5Lio6ArMghNtDu3gHZitv+yKYzAF\njFvC6t328ZN3a+0W3YYYytDBQOzuMgIf2iwNMcHQi2QYCtVkZkdd66MfE0zz\nq4GeounD2x4FQnzlq9AN8MkfR1wmtXSMvjuoTkxxT5RmbCULtf8beeYJjsOZ\nKnPodaGJOHbaFPFhMUUf+kcqQpzRaHsUUYkRbEP8DjivylONdoLzA/YLBCBh\nlPQ4L6hM2sXi26vByQoR+8HwxkypxxmhT5c6SxZMJt8ghYcYhiRZNRFDCcI1\nuAET1uMU4IBN0I1fp7uo2CdQT42ILdAmUief0sisSV9n4xDDOpkuLNer7Xsi\nH83XZsSlezCZEQmXGDiaSVoCpPkdYNE6ZTmwv3aoqYZ2R1r61wLrw/yx/Eim\n9N7lbJb3FHFGl1M7PqroBtr8UxfidyncDmOcOSb+j+acxPdZ5R01DSi80l6v\nCHgYTg3Hpc/LAIRFniau0CT8qbWUoz9gaWlN/X/3+QeI8lgoJy3qn6vS+oTW\n7KUfOif4qn/Y8f5kJcJc92rq/gfdeqxD6YGQAdR4NWHPO+1TrfdIi/0JYCh0\nd7sH\r\n=CYeZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8bHZSFXeD2bKpCcjtqiJ8Ww/e0LM6f9axFEx+iKBcJgIhALZASHQHqK27b3mowZi5hUNKJsDB6cF+00kgMOG2/ekV"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600276269962_1600276284994_0.7963289197558276"},"_hasShrinkwrap":false},"1.4.0-next.1600286575792":{"name":"playwright","version":"1.4.0-next.1600286575792","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600286575792","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qpdVHcMiw5uEStl+SkjP75VuDPxuEV6YL+XOmETU9nRdhLLZqaJEphWamqg+W/XnpaHWGTnV+iIbOvQOVHo5Jw==","shasum":"5d3cc55a42ea87e0a05ac89aeac8c175d348ac5f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600286575792.tgz","fileCount":170,"unpackedSize":17866970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYm9+CRA9TVsSAnZWagAAWykP/3VUgyBJPaiPhUDeaom3\n60ktJuaRVj7MBhwBV3Klb8INNT2hC5REYcLXNa0Fy1t5ILQDdANf+1rlxVeb\nCCT9A34hwHTFg4VDPllyWA8Ua5Ro4zyllWKCcFakaI1KHVn2MAEgdCerBtHL\n3Gd91p3YrFpUcDTMQynCyViLU8NX944i9XiEdxZL2pB1ubk1Fzf4KMSY3Ufa\nU5wtei/YUdyGUKk0BTrIzFBy/M4/72vAIsYfOwj+4Gp8MWIetkhcU48USqLm\n5UYJ+Q5VTZHUtq/xdYuM0PEJYNqejXGNVF1o07G14s/Cap3oF9m7yRlJvknx\n2OmWKBJOkF7OPrUlr0rOuD6Lpl6ntKODnK4j4POVrxO+j+Ho9Qs7m3vGZzbL\nyWjzvW0JT3Gc5axqI2aaNqbjN8iffYMrIc59ZQmqDT07mjnuMcboDMNtlbUT\n2tYO8yIATkAU/TgxedZRrem4F5SWU5/xl1/Jw4RgH00cPeE7nPOYCdYk3r9g\nS4J71dOTBLEFFHH80LWkOnHbiSMPgLFERA84HMMarsHq4jCS4cpxo2mrZvY7\n3qM+bb5meGk+djtlUxbQTXQPKEXmRx6xdLP7CpOGntZCXQilX7Wq539AFPgD\niJ3PgEY7mcPSRtMYJR4K69vI0hNp7kKRVfMBKmjLvo/o5pjMj5ehD/mxfQp4\nypk8\r\n=J0/o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiCj3tswvWe+58ItJ0Xv/R6gic0rtzYSUv76IEcu9C3AIhAMG/jIj/bvbFm8XMcl3dRUi9ak8ALeDTQPXoKekObC4N"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600286575792_1600286589790_0.29719307347229296"},"_hasShrinkwrap":false},"1.4.0-next.1600290571416":{"name":"playwright","version":"1.4.0-next.1600290571416","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600290571416","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-EAZOKx+Qi5y/P+Fp7/hPENry743uwMLQ5rOAb9XeuRjeVc4CA2xu+K+Jd/CNfjFct3mmjtNrMVJNmffjNiVhEw==","shasum":"e565fcb1f1c815520fe7f6133ea5bc0013e4d408","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600290571416.tgz","fileCount":169,"unpackedSize":17881582,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYn8dCRA9TVsSAnZWagAAEmAP/34/UBka/Gf0vPyndwoz\nqW5gs6Gq9VSBTlEMhrdmOhS8o31ZAd9kp7XMh+HeZ9uKFgBIcpI3QrYveiiC\n1aoBnnyy90T/wvkhDSE3P17wHpm6VpRO5TLIAhLw+JLXJzL17Byc0DjJyrsm\nITKbYsLq/maicS3sKdUAfK3Rxn0w3Q1AzmWc9ddEvNgqadzTfnhvfeV0YevM\npGO0TZJXBPR2lmxkBsvUizPi7KQNCZ1PboTeux8WLMk5VbynZAHk96XwIBmQ\nVx1cYG8+8C5iLR6HihkMV2Y/rh6mvBsRoyaLMqL0JH/TGZWW3YSjFVsjlS5q\n2WdBCbeoxJuCEwCzj0VnQN+k9H8s3iosFw0kvbJyna59jmKSgMcQEO/3WkG6\nh4fFjUqM1o18uTZhHj5abXYxj8BBnycNTP5MJJCyiBT05P2eSjO5YAZMwDpo\nFEtXBqJV6RyFQA1kqewulQVn5TvAlX0MovqDF5936KcG9zq7U4Hiobe3hHj1\nKXFK6wtj1Mp095f0FzOFV8fnQUvL4aP4GYxVfzwTW29/rGe/JZbSFuVg9cSJ\nKWAPoR1DYx2ot0T+XSkDUImP34/EJ8IxNhmanEI9tSgcPMMwWQ1bDIqDgoVq\nIDTrHC3HLxhPdu9hLfmXugE2xQOAl3mJ/KoS8f0XrthNdFbK1GAh8laN5Equ\nhd+x\r\n=mpk9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXuG5wJoAxUwzoHybdEqTYeQGuM0txMeUj+YpuSrH7KAIhAOAGhnbGSYWhAr21hlgCZRgo8fWh7qjcqHDt43toRHjB"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600290571416_1600290586537_0.2115324455197405"},"_hasShrinkwrap":false},"1.4.0-next.1600295361732":{"name":"playwright","version":"1.4.0-next.1600295361732","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600295361732","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ICwePh4CqXCiF9SiSCu0Ogk4Els2UjzEhPWxEqqp9b67xWaFHYy7f8l1pZqsw85l3HzDmA3nuCoffO80zhvXvw==","shasum":"eaa4acb5983002f3ced223a583d9f8e873ff3e84","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600295361732.tgz","fileCount":169,"unpackedSize":17881746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYpHPCRA9TVsSAnZWagAAuFgP/012MlzF21UocqNWGm8L\nIEQP43zDIEPleok9MBR5exL18taDorwyyXm+CfPaOj7J3gdL8d2f1j3jP700\nT2wxRNuP9H5TkgImAye6jmyrUhtuunECZPNrtGwM8sF7FDFpn7sliYMD336t\nFYxKCLyQ90g2777yWxaEJ0O+ezEJekeWHRCHGDpvTHqO4aM4AYr4Ua7/IMAP\nOVAwAlvwQh2OcRxb2OodMkNjLBiQwKEmgHZLplQVkSLFx5ACseoHMUCpQN4A\nI9TVQYi7p34gsr9dBuXHqY3QxClSBEILQf2FE4felodWOL7tYdjQRIXL61mH\nf2fLO5nNicUHfTeiWJRHirVQWaA2y6BTMhh/4l9Te3rVugifCI9W6ab2WE7q\nx0BZJIXitLIXsn0tn+RfVNBLD59oPtxZWB9fXKqADlYteGwmov6Zlk4OKkpa\nTrR9/a0qxqeXoppIYhIaKyVqXHC/WixPiPWgJ203J4rjz3skopafDBcXmf6w\nrBQAgiRMkMwU+056I0pWvfRtcfHFxdgijvuypm7MEzThpExY3PF6nrSnijzz\nACF1aXASLwiewMpeJy+wbtJKfSZVkB4qzJp+nfTobPr7aerWBlXo6VQkoca7\nr0KeSjNuZH52q3ZP2WEHRK4/KA/lJmq1D7Vg93FxuTR/1aJuY7Zx9QNcFG+y\nx2rL\r\n=5wo0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBloky5ksBPj1t25aVAif6OYyDCyYosfbfycHK/91aBAiEA3pwmK47SRi+bHz5yq2nt2vwYSJscsciazfRWdJG0h8Y="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600295361732_1600295375123_0.8568668798864354"},"_hasShrinkwrap":false},"1.4.0-next.1600297784077":{"name":"playwright","version":"1.4.0-next.1600297784077","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600297784077","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/8S1idRPJ6y1BXzGKscsRMeBdbvLp+dVpIHYS76bxENys84a9hudNSP0l0rhbl/lG4dWvyEuSYFLsVPE0j8psA==","shasum":"69ca3c3c0a84b77fad1585aa473d9d527abfe69b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600297784077.tgz","fileCount":169,"unpackedSize":17883231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYptFCRA9TVsSAnZWagAA4MIP/jp1ja/f6e0+z3FETByn\nou6CbuvpY3nUcg2vEX1yX959jdWaEMLYm9SGDZgRg8MeCzWQqsYJjMaCcEwX\nKwqHxBNVBCWduh2rknv5luy0Gd56jpnLpx5IzHjQLQGDI+HI2JRrrWipKJKv\ntVxuwVe4amOIrc5XAoDAdthfI0FasyfuHnCN+DprD4FblcNWDCrTIzA/3ZCo\nlgpDNL7cZy+Br0wzrqBnoSmYJUWV6pOpeYTWj/4WYBjaZScDZvRN/b6Y9uy+\nUcyRdau6stj86L4XzFz/rL06IhjboHK2kUVAnrKrfhZvdLIUFe5YLf2tgvJ2\noL1Cd7OsLtokwVpSkSIj+xXgNrRgQf125SkAYSnBfih1BWL0o+P7hCp3h/aC\no15yCej+YJvqLIMEr4V6395s93VK6fezY7rThgqVIMi4DuQbelybkXAy8WT3\nv6UsR+4bO+SXS/Tud0KgMsruNbwlk+1lXob7tqe4Gt4UaavJbSx6jPIzLV98\n3W+GZrP5Psy7Lp5SNY7O4p/xFHw6YE9pxtuXV1wsoJFlXynqXrU8GIxdxYM3\nnnZLBj+COFO/bqQ3r+KLfD5ZrWDuEwA3GvqU/osWMlZSU3Zzuje2UTeUD3O+\nukqlwCP9UZ0Zmai6+t0/QV5ILxTGV4GsNjcv8Yj996B3B82MWzysn4cbqM0g\na+eZ\r\n=TtKV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEGsmKlIvNirxrKk5Ia2Idxt57pCn/wNXKcWrPblp+fCAiEAl39dRUFwx/d7errsQsKPWIZZa3qEAdiu7e7myEx/Y0E="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600297784077_1600297797039_0.3148044768111"},"_hasShrinkwrap":false},"1.4.0-next.1600318113138":{"name":"playwright","version":"1.4.0-next.1600318113138","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600318113138","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PR+oUvqe+dCh5fTGc9DVS29Y/vU1zVlKnOBFTJuCCCbwgv7ru+3r0UKSJXb002UBDfP3p7HZir+a/rZvibijoA==","shasum":"c4b48fac970d3580ee2d46cea8ef4ecb9b26159b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600318113138.tgz","fileCount":169,"unpackedSize":17883231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYuqtCRA9TVsSAnZWagAAUWkQAJmA3aOuprpNnhwFsB2i\n5fscUwVZ3GLLG7H+LnN7GDqdfqTKq1elMjXvevBzCcqnVUuqYwRHyoCfN7E7\nVrUxCr40eEJk5Qng4yrWNYDmNSlTIQS9vrJsRumsAIbRSGPa4twNtW9ji61W\nU3fdoP0xbIkqprCQZopmm5edvajHKjgyZeTEAUK+DNa/opD/qOzZERdU0S/k\ndGbwR0oTWEXHTIlsfBw8R7JwcXP+2nd8N5uI38Mpo9JR1RkILIrbktSmhyQE\nRFq1GbI8ZTnnjXrcTZfSmpPGP+YN3V40583rmA18x0TdamyOsv2bwi0pAX8B\nGFq2SXxNw0ZxCy9wG7++93Aph2/vuTjUNu10Ys9gZbbOVe4H7JqfT0YqJ/RL\nmIUByk7PwU1RLGBv3VqC9RiuInejYCvYKh+8kfGPxFiOP6p9XNAXFnYi7yCU\nK4/FKZ/8HTfJxdb7w2rFQPrVZ0Yx/ouxf0nEB64n5u8rXv6xyIyPgWdbbR+A\nrAQMAiPyxeRg37OaT9E5vvvmmkU2RmTGq5hCnlHT1Wso++Or2wbPqvt9AYk0\nb4JtmQi3uAqiSakpVxu8ghgjVcTqJOSZkZv+QnMlfngA4zFHBjVz9h7aDLtk\nLTpp4TRjN+zwCvZDjlo03DKUITLdznql9oCpAgItHOuRxYG7VK/KA4nvADgH\nhbKt\r\n=Xi36\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBS8zahrvHfvDsCV3dIB88uIQC8NQrzT5m7nimdlCKDAiEAi2SUS4YnUTy/hTNcWlyAHkkyRNWzpQ9KoczOnNSiJVY="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600318113138_1600318124911_0.8413749027468882"},"_hasShrinkwrap":false},"1.4.0-next.1600320641422":{"name":"playwright","version":"1.4.0-next.1600320641422","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600320641422","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1sVJh6gq7OdeisYpA8aOaAa8J1+SQ3DrBxfSMgvFuS8rdyx3wVEiOxwODPGRfJhK9WDDzFPUDQ9LUxN0k4XPKQ==","shasum":"ed4ccf9b36c191536e9f5e6ac7206f05ab814d1c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600320641422.tgz","fileCount":169,"unpackedSize":17883231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYvSQCRA9TVsSAnZWagAAstwQAKQukjmGRtcjIH4M9LJb\nrq2HO0Vebd8LFOrRezs1sx22C2yaQW5rmydTDwkboIVIkD2eSWCQC7eV7GmY\nf3qqzbbROFubXjfzUxYYsA511/RLdbxLA/uWxVjn+y9S1GFuW7A2u2nx+eys\nnrgkUiQoORiCAnqpmPtI7loyGsHpAH9CVlfJPqgHvo3f/hKknZmHthNes+xS\nq/IvGb1OOHpE6eVu+g1oZSqtxyKTI0g5/ySAUZ+oMK+s4BZE31mrAA3V1SvL\nByqzwRzYCGPcIHqiQ6RzLqBSd2/gA0R4VgKj3UXRtZBqMNWWctK+yzGtMPBZ\n7S2xJwAIMM5m4oC/3du1uTh0xRfiEhICPRN2VDtGJO2WNwz+LuKrZGChKkwp\nxy/9cEUhNyVxzbquczoT1rk7I7im41UrfpmOxydAgL6yofKEPG1H6h572zgz\nUotrk/D49CwFORCtOROxedRsydRO/rWJ5sLzDv+0aJKUWK8fZKbBChtHURC1\nbXPHTZC4wajbc/vvwh3NELPE5juZee13baxcT+donhwBL97pz7wA6cAjrgrE\nOBG+qTfUTBc+mlDnfOS5N7MzRE9UZQrF1vvQwUdK8/rZKkJrFM93bnY1GQ3K\nu7/eYjGCoVmymGxuGX+Rnbt6coXP1lsgpW4HpFv0P3G91A7FIRYjo/vfnr3O\nWjGP\r\n=gGQF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9fnGKO2H6zYtmX+kh3r0KDXVatZYdKGUJJA6QZvBpJgIgQMuEPUuUAlGNf9LGFw2fKOKgLDZrotRPB9ROl48KcMo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600320641422_1600320655491_0.9821414177036525"},"_hasShrinkwrap":false},"1.4.0-next.1600326580921":{"name":"playwright","version":"1.4.0-next.1600326580921","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600326580921","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-UU/xjxveb8D0IYQIq3c6HR8nupJ/bWV3SvGjEwCy15HJ0wiVWz3w4xQxCnvDrQyKhgcuA4fkG2SRsrzdUvTGPQ==","shasum":"a6330f20523277547d6446b1135cd843567c4120","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600326580921.tgz","fileCount":169,"unpackedSize":17883231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYwvCCRA9TVsSAnZWagAAR1wP/0qwd+Bm0mthtgpLKvFN\nucLOGU2T+h9pFX0jUEilDvYXdU6VQq21qVGPt6gxp+JENST2lHCBrCJso+sG\nKdPy/bm7XfwvBMXD2lDRzu8F1Dk8zMNnUQXqhessG1MK/qc+M0zvIqaK6/kf\nfIMvkCannNmf2o8i5dNCuh/4aPo/OBnPJt+hh0aD0Fn54vAq5zZV8eVg09qp\nLp88b8Qv5WAb0NPebNw+Gug8q1SJ+PqjJge6plUgL9VpYRE1FBi7EnTRsli7\nwy7s7asFshm+NToNAR6an5ABgFhkN7srNiJllsKjTnYTAa4ieWwq0Zbsy50Y\nVqGusEL5ZMqfYuwDXRMn1DIwZwa79zJVPcMb0q605bz9EJAtAZ7pcffzIl8s\nW3Jpi6xvGFU8/uJndYkKSAwIqcNTidZnMS5wocssTqMgylgym9w5706FKN4W\nA7F4IoMR3hb7E8ce2MNWbK6pJpb1YCIqRYuNHZTyuDVUB7lZ49tArVrqtQ6F\ny1Jw0/AsvOxrkupjjb7mo8evS/SpPb6hbNpYjqNob35QO5ESOLmD0NOmQ36J\nOJF9TzdIuPtAq8XOqjGPi6qgyQslrEl/60jSMjTrQnZxk99fjpC4hPO9QQ/z\nuKyvgUCGcbRwoN+/1u6gvDbsa5+qaoORimN9dBKzC/LHsiMCRZy0jn5VdNd/\nB5+e\r\n=P/wP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDWUSnLMyD5goQc4KPV4MPFD7EZv2BMiVjVzduiWYRAYAiEA9jskctTqRyQZNzvCAq+ukARMIBfWJThr1nPdPAVBFj4="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600326580921_1600326593296_0.5955723926051462"},"_hasShrinkwrap":false},"1.4.0-next.1600360489029":{"name":"playwright","version":"1.4.0-next.1600360489029","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600360489029","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fnpfWBtlT437kqA2r8TmIKByrLrkzp2+rFRlN4D+d9sUUJ6votqkYhRYpqEmsHqiMl6+GrQ1VYOIQS0tCulFXQ==","shasum":"c1f359d8569236eee112d454d872d5c50416cc4d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600360489029.tgz","fileCount":168,"unpackedSize":17882233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY5A2CRA9TVsSAnZWagAAIsYP/0nLS/hPx7AIMlQIL56q\nhx1vFfIPlIOocHG5h9uKkY9boNFIDkFinE5BXrs+guJV3KX/hAX3wUwFNach\nwp5dCelOI/UupDc90mHx2TZZDuwUMk6whZFpdUsxm04e9TJ8DbRQTwoHSH2i\nfZ6Y1IFAxVCrc54ISKfXULR1ZqBlhkYdPmaH6Ez5DYqVHz2S7Z8zA8V9DYZf\n+p1dmyq2CKWZBz+XhRee6os2D295IA+2E8tL0xSjn4KRoIMJQsWfzEcMjVRz\nJFPJKXOYXJ14S8ot3qHkZkXjOyM3CThP13ZOtmLM59HLEaBTZ7TZGUoM/TCn\nXFHCqF9GqfDqkFs8GKQupA83T7nCsfPKgCOdDQGbhWKfmmxZ5sDmhhodtc6l\nm7ij8ImCEoL30vJ7K77C1BiBcsWSTr3y6/Jbj0sC9wCwIDIW9vw3kQT1jqZa\npephsfTGzHOTR/SH15E6Vk68M5jdzua9r4nO28eIzQVUaGAynwKXXjizE8vQ\n4V3l2cqeUqBAdEo3cRRJp+9qFz4ZHC73onMfOu2o6T8f/mRyux+xzPG73MeX\nEgEG4zCArJUfwntwwdkGy4cMM5wKVLL5TxHUOp0KlyHFdZ9Zfajz2O3rZN8F\nEUia0rMVaLc4Uf31QZlSch33PMGNHnIoKklXVSn3GSaS8gz6fPaYOrMpXOM/\n8Pp7\r\n=zB9z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICflRmkeuV5QSpuE79ArxQWhIvA19RcfPSi8FtkenmKkAiEAv5j/TVL4Yz+GHwE61j4dWiyYQfJcyHS61JkMUSHdiFo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600360489029_1600360501875_0.1052859318146917"},"_hasShrinkwrap":false},"1.4.0-next.1600367007440":{"name":"playwright","version":"1.4.0-next.1600367007440","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600367007440","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-K7ijHB519oWskq1Wz7Dp7aM76mb0jJ19v5kr2aalaTOqwiJBW8xglbvMTYfl6e14M2d99eJ4g+yZlW/7ZYwd5g==","shasum":"bcd5c181eed6c7710c6733c4f41193f233bddbb4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600367007440.tgz","fileCount":168,"unpackedSize":17882233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY6muCRA9TVsSAnZWagAAFWwP/25SdRrFBS+CfGlinGlS\n1wd8MiG8/Qd+OMzWZjafVBI5IhOGwI7uulLSpFQOEsjDwpHKkSvgI9RepYiT\njHQcCGd52QO3zqJ/I4H2dbsL6f/Caj7I9//cPsdklCL+efAf1qc6fB7qEM/X\nKlUH4CuRQX5jkBA4jf9KNCqE6H/SPpKWXCcwehy7+XZukMHWAzLbsoIgVsRj\nOLiu1kId597Wdb5uZJRwK8FR0k8nx7kVw/XFJNNAW4AEzp7CQjVraQYbxwtz\nGkhU5R8RHci6sajf0pKeJGocHrjCvRbe17dWjToudAEONhCzZZRjfSlrQwOc\nVN3liddPQSYSACnHrZjFvPnrbWSGTZ5q0n7pjgfoWkg6lqAfNcRB09i9RGtz\nKNv7f8vUyI6jIRZNcZyrwnjbB2i1LhJhL54cQnBYfJtYlAQr4lTCEKkbxj1v\ntE6z6x4aE4OCqh6RvK93piuqj2GSCUz6UgJ1Mpa7z2uAFUrVy5JofySfxy72\nz11eqtf/GMt+/rvUEfBn5Ph7rR8V40cG+z0LiJZXirjkGJ9SQGNQ+JHF2Qf2\nSQq1f321pTGd91TiJ5gLP1/0l7yRb3p6fPJ2Rd2dlIjgEockuw4UAU8I5yHU\n8cA7+dieSaRaIWfHrBZ1+/VxOyi9kOK/C/NAY3iNqGPPkdM9xQ1xd/F1PqI0\nR0CA\r\n=yAaI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7eeUJnfq0+Q/M77Th+40snO2h1f6n/sVW/8QIKfPhwAiEAsXXXVL3TT5aopEBHZ/oQ7mLrAGcjALaWK3C/N7a4YPQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600367007440_1600367021944_0.5613301565136846"},"_hasShrinkwrap":false},"1.4.0-next.1600447536777":{"name":"playwright","version":"1.4.0-next.1600447536777","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600447536777","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8BFsnyMT4t1L5VWxXxlmr1Y8tWq1qkiANA7NTafNVxcgjJ0RgvNSwIRULGwHD0cDqP3bUsqkhqlyA3EorUsIEg==","shasum":"ec147a7a3e73ac1068b1515156ccdbbd78583ec1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600447536777.tgz","fileCount":168,"unpackedSize":17882217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZOQ+CRA9TVsSAnZWagAAZyIQAJc7UKBJGTRnnqYCGmhU\nwK8MXo4UB0HAeGCS/+XZR1rq4ss1zeEeISi7P/tO6p5C9PwVtSJqqWBuocBe\nxJYIGuzuEt0QwY1dgzuXN9yw4Ei6vYjVMRK4L5Q3TwZUWzUVnM2wmjQnHEK/\nfOVN4h0AeTjdS+injrCKEApMwm5p+xgBl7+7fznvRYY8pJs8R8GecWN98tU3\ngPu/yeBQ8H/46qSVPuquxJ+lDObLPPaNNjt5RjBWhXZ0ZaHpmgOA10Ez3pjq\nc9xd3RdrwJLZfgqfcRm6FkOddHrG97DMcrOfB/GW8pddvA4H8SsSwwZjn+Dd\nbXR9tRWbPC5hrg3zZ+7a+ehtXanCTNDy++iybGO0E1LTdbl4/8l5ZDIo56mA\n4Bpq30rShd2LzzTBoCCp66QLf+5+1+7/1J/x89AAS5R2ClvrWL+DnBXOGnTj\nakE6Qvd8YEl7TZLRshf/igiy/bRXKpE95U/U+mGe+m7n0TyV+m++l++Tzbxn\nFj5QL4ErQqxd4Z0ozcsaSMyKM9BfPTaQ629Y4hjJwm4KCt4KT5wqwDlI71CC\nmTDj282MfvBsrWSmki1R1nFCWrowOudskJe8u5MEH7cIP6uCE1T5z0KGBCS/\nas8Viqy3l/VXN/ECi/3B2euXjZo1WaDuo6X9rEB7wBf5gPyAjJy7KKj0i+sN\nGfX7\r\n=3fsV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0//AVlsKjtXHCJvpSmvueUjPJZ0qTuOo7N+JhNqg2kQIgF5EDHx7H/pmfNWET545ffpuV3mRwQ7HQn41HYK5XBBE="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600447536777_1600447550118_0.1685869954909207"},"_hasShrinkwrap":false},"1.4.0-next.1600450158675":{"name":"playwright","version":"1.4.0-next.1600450158675","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600450158675","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-y8rlGub6swrg4w3+CtfG0GARP1mAyF/RAzx0v5cKK2YKURQVsA45Rbc0mDw71gwbgWQeYTGuaoUcxD0hcg9xfg==","shasum":"d184a316584f3c6f611858db1990144edaa0af24","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600450158675.tgz","fileCount":168,"unpackedSize":17882217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZO59CRA9TVsSAnZWagAA8VUQAIX17XQ+cbxWGQf5/SlA\nRCC7pupo899olDbq/if2mNUG8ZAFnqqoAtYOPy+mbk/bkRCf1Xh72CuVZdEv\nvQwPX7qj0OUa6Oo7jPEqd5DlaT64+pGgLzOEh3p4doGnZCVNz0frlA2EhQwU\npUmdlS8fOia59AeR/HyiLsLJZv8one6rDOOHGErNW6CvaRflhUy7C/LHJcgG\n0o1SVIzsqaKoz+VrEtmuOBH20rc99AG3IYml+GoiSnGLA25KMqiVCiGI401W\nseu33lPACLuYEQQ0KMhZwUgW52dRJYyO/8S18yXG+EFfJZTRXQlg3qKkOzgS\n7yC+iZXpaIAsEXaRygyfyO0iTyT2F7YvyobM331EegKbupnwFVgLc6roC4Dc\nVDz0YLJhRBlOh2JO35TuQtaT2OUdpzyjmboFlOZ51tpeZL/vNoS87sq4E5Bm\nEWXgEzzIOHohC20CfgHdOnn0cdm7VJUTDCv3/yVDagGXLdhV34Lwy+E8TVdj\nKH77RxCW6cSf3Dg7eq/yMsBgUb+Vz2VuBKKHaQvxGeVMtWiywiOg8uR8ZEq4\nPS4Ufboe39vgM3Ad5ao0EqYE+wB+eF2A+IOIKly3QsN1BnDTd/BVkRaTDn7m\nZx85oLKSqkvC4C8KJvxI1y2eFmoibN/nIGLrbSm/1UXuWlzdnxQ9jsIOaZBx\nQZVu\r\n=zR04\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjk7YYdR4VzfD7bkyUvk8qBC0Zn25UuCC2qBEhggJ+ywIhAKBs3fd6VgwgdxV6wCC0UB4c+2VM6LkM7Isywo8rx0XY"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600450158675_1600450172241_0.25965283029779207"},"_hasShrinkwrap":false},"1.4.0-next.1600450385577":{"name":"playwright","version":"1.4.0-next.1600450385577","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600450385577","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wUXosbpPdJ7CNin8mxP3mmMqtg2qs46KFMCJeXwlxy3Pn8ACPN/Sx41kSqntvh63PaZ0vwTkEJ591Fr6pj2/hQ==","shasum":"455a81964ac426d708844c8fc7ad05a5d2f1a5fa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600450385577.tgz","fileCount":168,"unpackedSize":17882217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZO9eCRA9TVsSAnZWagAA84UQAJSetoZQ+wRUrFb2icsd\nCd2H7gYJHU/bzMpjXVKYA8bGhus7KXFUzTVLa7MeP2GLOGOXfjec7zNufMuv\n6ztsxnL+ywL3kBFo8EZ03sCR14m8WRDrEz/ScbHpZs2fFHB8fjK9GaKTKXnF\ns0lOeeDJt0WJrEWM8vIqhMNIsTWfbei3Xt9mOgT2b6g8rt78euy/YGQ7VbCx\nddnBKaYsoXCVQQ5k1wAvdcDr9gI24JfkZlpXmzPcLdPeBQL1yMnm5/kKeYII\nPenE86ywiK+mNAfodD5qZx4X3GBxMNX40Pv1zAKtlAb/VtvHzv+jNMuPc0dY\nwTIMf3HDsbRe1oSYfwJzzuZZpMVfwCdJx7mTpg3E4sdE/Lu08R1iF3Ak4tCP\n0FwDrthUV3ZzAeDdjpxlt3lkwXGGj+EkaMoeQBcQ5d7QL6nxxFOIPE0ztulz\n38GO7C0x9k9QuE6J1yPVK7k+TyZ8Iya0HWRMJQJdM52USa8RY9U5745x9rpZ\n+W1eOgsprKlH7VTcD+HAvxPlRjHclsH++XyWK7SRDzJ5wsCgpwrDnEjbKB9O\n8V+fMvcGDLBTZpTGlDEhPlpc3lPvlFevzg0gOm6niRnSPABqHIxNvUDfndK1\njtR9qbkpTV/IjJMHzu8pEXhqUPo/GTKYf2iGwWe58ZI7bpnkLt/OKIxMuWgD\nvzz1\r\n=tZis\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuQZ6K+QgXVrVuM9odpDg3x8CCo7kgCKRk0mYraJh0TgIhAL0rxaddAp0sHmc0TCmLH+7CfuVDx2Z7IPZyNFAdHGoe"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600450385577_1600450397662_0.7757278428964138"},"_hasShrinkwrap":false},"1.4.1-next.1600455119036":{"name":"playwright","version":"1.4.1-next.1600455119036","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.1-next.1600455119036","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wrky46BGqOd9J74Vx6PrIL9Aw3Aac6yClMrTG0VJ3ia2iJAQCXUibiAcblGemlqr0bNe1Vrpm+sQ3a2v7RIFnw==","shasum":"d646ae9a4e218e944b8b5233a9e7e5b69fff391d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.1-next.1600455119036.tgz","fileCount":170,"unpackedSize":17866970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZQHhCRA9TVsSAnZWagAAHo8P/ixAWPsuPJ8UMR3I1Xxs\nLUykdh6lNe75G8JonBKGZbvl21EoEv8R1+q0SBuQg4X86A4ZnB9EGEV+TJKh\n3XLPoz6hkyZ4hZMtBlY4Zhh0hwZVGdc93jZA39NENVVmJ00rnXi85Gz55o7/\nb+46cjl7upw1f5qfegHkJ2aVhdZa7SFozzGPpmuwRiHXkK+BCvwmKpUhFVSn\n/CTLMd86n1JPeiOx5Fr+/eukmzvHMwbw8wQOID5YFCIhGMZz5k+Y/X8AFsiU\nIb+dCtKjjcvqNeaBjCso1AEGg6p8A6UfvpQPXHzd9+/feJBUhlZx8FhDomV3\nsVPtcq+xxHN683FSglLwbWM3pNwasZDNswhY8VqrjwLVzqQgO9yEiDFYvNzr\nvrxKrLUjYxoSD3OfpE2FLfqkG0cMiPwenuC/qD6WYPRKuQmRr1uYmhdluV8P\nlkCn+7pQegkRqVljVuah95mm9IIH4u+szwPIYJqXr73PLaVV98Ldls0VGqFf\ncovZKF5izr0dv+TARHumse6yHZIIUbgMFisZOT3JzAAquX+/vFd96VC1ogJN\nyCYsyyvW3TbHGUGVvhVAzUBdh6L2YEiBhRyxYvAZk4ZOh8KFK8k4lNDYFpf8\nmCSLjgkitGNSl3A8FBziiRHGpuhm4fcOAnQwNnTmtXjIjD6XeKbPI3Yt/7N6\ntOqH\r\n=jI9U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2zOz6EB1tPyK1Ih+mFSCUWzpBWV7L06dwBGslVCQRjgIgQMHH5lUn54yviuJhfZ8vmP+VGhJ9X8mkHsuDz2uflKE="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.1-next.1600455119036_1600455136254_0.7101528422494354"},"_hasShrinkwrap":false},"1.4.0-next.1600455371298":{"name":"playwright","version":"1.4.0-next.1600455371298","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600455371298","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-m4w3hc+vnrvKwZwGO1N7tonh4YPvv77gHgs2GhZJ58dSk/4NJncxXh2WO7m2DnHgo9+dc+wSpi6h8QdoYjSvOw==","shasum":"160cc3647de8195656b15af845b9a48213f9f72b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600455371298.tgz","fileCount":169,"unpackedSize":17888464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZQLZCRA9TVsSAnZWagAAI/IP+gJC5sIm3tFjxOSO9NVE\nLq92oxc7bgcnoCipOl+n7yR4vBG3OH84naqAdaaRH5TDmeK7U+83x7bkrXDG\no4gBEOixfkgpoEHjqPW4zRWaF0f2MwX8uC6t/MOiCSkGX+18G/UZPBuEHyho\nIs2AlI8UzVCWAqaMWGIua9AGvD2N5cn2aYQcCVRFE9ka3unzzKO4sinvrjTD\n6lfm1LQKx83XV56Gd4OQ2NwezY969RRukyugWrjE2Ki/EQmLntt18iwnm9/+\ngefj2g+MQYODGZrHlwONHGDnXhJnrww2VFzptBQUVTBZs8cJtliMwPy/Hf+d\nAe6b0NlGxn7+zhFBo2afUptJnP6fb6HmgUCLaNeqSGt40LTmgdFFN3oviK60\neSKEDrNzbZgoFXqmYr8QtJvIRYo5+5osHo8tk3aau5vqpZpdli5XkxFZJ6nf\nv9CyN/5JkIhKAlPfPQ1E2Cp0FX2V2WALSHroAPa6dHr/f8L7N9/SgbuPnRou\n66UU9mL6l1k2T11veWg/7nt+zs7UAJOe/d9hB0eFW1Gy4qmiK1Ec8+bQC3u9\nrWmbmX0hVAvISTn16Vg7DOCQ5v03iiqwW2JGohAhCfEkCEPW3YVnpnM88XkK\nJvERe6oKOb+mQ7IdovjHQ0E1Ausaos2Kj2soydwRsw/cjuleCUMuXIIpyEzX\nYvQK\r\n=PxLq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhKdCLbWK+gZ7FX8Q/CKXteaWf55mXnyTHezT65YcIwQIhAP5aeQ2HWRG8fkTYJ/c1ocdBTl31tvGMcpyDykz8PJLN"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600455371298_1600455385044_0.9344365744705494"},"_hasShrinkwrap":false},"1.4.1":{"name":"playwright","version":"1.4.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.1","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-AbrpC2QSHJ6K11+vUVV2AnwZbEKtDvhPReLw9lKSjWrBFkSHJdfzssryWo9YgHCBnY423NNuzkeDCI2pBBnlwA==","shasum":"18240a04e15d7582d78fcd6fa5d4b32985b8f9e7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.1.tgz","fileCount":170,"unpackedSize":17866951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZQduCRA9TVsSAnZWagAAmT8P/1OZ7ay4lHgNGn2JYYqm\n7bhWU1WPsVU+hklWqMQYNOdsQLMMGk57p61SPqEFWwlkmLxjE2YINg9yY47g\nHgaWwMOa44myk3ufRcUWAXd/5Fw29ejRuswhBX6cXCfgcp0Xn6fYtwUPFOfN\nPQTTS2exivhbyeLVYqkJsY47o9+x9ONefRw0gMOjzHCodTE5vAyNcFut0uY5\nKJY8fFM1XyaxkqMMO5raHeGvLRgs8NwCxdqE2xxrZ5QDiG4N+M2mvJfNg146\nMKdN3UJZI+WanGfiXkt5t1Cppk/aq6imSAX+9wHO7hLWyJZbmAumRC1zSJvG\nkd33S3G9BVHFICTixZkEIqgvOCjoNAPeQvIs6chMrWu7Ls6/XTCiH6xzkjUx\nG1mYn8phfb3v2a9GlRdD2o5/5sooagd0DN05QT5NYaujZoYolmpBF13cKc5d\nQwmzCDVzjNQnm10w2xQm6Zgs7gr01hnk7RPyz/BgZNxh+6DIKWtyVN2hL1m+\nKONKprzqs1AmhxksQNUVyMYnJvg3wDsecztXVu3cFb1gcFFdyVQDTYsuPmPp\nBsdZZBQRTLpLTZ+XrSHwnAqia96LPjjlXPGWqwwMhX0uaUqTWPDPdtFKaymT\nEc4mf/S3X/Yg4KPtCboqX6GEplrUCU1CoioVzXph/D0Qeq0X2lp1HUhDKXKP\nqCKi\r\n=ySsx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyGj0/MpR5zViUNlxn/furxJ32Douklw3USvocBjcX1gIgJJPs9ah289hKk6Ha6yGTvR6sbgKCCw2lxH5C6TwpBpw="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.1_1600456558028_0.6906223565158824"},"_hasShrinkwrap":false},"1.4.0-next.1600465995112":{"name":"playwright","version":"1.4.0-next.1600465995112","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600465995112","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0GKdJoinaoNoBAQfV6ntFzhmI0t7i9XtYzkiugkQzqtIBEOGNIRBcaRAqq6Rtt2lWr4zVGBVCfQM0SM0lbbUHw==","shasum":"1c5044c4068eb77cc756361fb1b50a4b5f45034e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600465995112.tgz","fileCount":169,"unpackedSize":17888464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZSxaCRA9TVsSAnZWagAAopsQAIZnnBc/kYGxPdTRwQfq\nmr0190hfYHbTOj01pzKVk3LFzsHC2IzrjWpxXCkOmWwgQ3GjhErB7p6BA4SJ\nToDSVucw/clepy1beU4hKb3fmpVRwUYUWpPI/7rA05sklRJ2mdNBOBCvQAWS\nuiypr5guRhsG440GBrtXVUHnmAFVZuvWvdeCtFoBZeOpr3fUjVEsIZjjLO71\n6ZZN8PUquTSfVZABBX/s59EP1d0oyLYsbtbt7dA4jluaOw6ZhfreELCCgoXU\ndNq0jkdJnVRGBuHvYOOkUl1WOgRRfK3d2VQGOJCCh3/nt99fj4TVuH/vSa+g\nRZZzUTZmk/S31jnaYPq7sAW/T9J3Ay9nfZy7+UONMNvvLC3pZmYgZKEwXHLH\ndJItLUSO2TBmaKAn6cFVpMoVnbDSHrReB7WGDClH0VBGpHGlmVO9s43Lsn6c\ntNe0BwlV4df8Lf/TayajAox/0SW0iFOYlz5fDu7CpE7g0DBvYvi6YVxMcgYn\n4bTuTpJlvhR0g3DuyU82+vNVZ7PSVNVpwGR4KF7BWwiLQqFXiu94HjQqjBt4\nrRCc93N5bwP2Yv5yA0OgLpnnXwPWXC+fKYDYuIW5ca+LKBW+bUcXgwKAtt2/\nl0S2yy/C79yOexJPnMqSNthv4cZRGJgIYRxphAHDoQ1vyEM1RuP60h4f8klk\nqmqp\r\n=kMc5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp4arcryV+TPkVSLEK2aXYdN4AW7NUU8brOXo/ai/cDAIhAPkxDlBZ+N5Pv9/brWFQJhXVy1R7I2QTQBb5FZyGqC/F"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600465995112_1600466009542_0.047014879350744554"},"_hasShrinkwrap":false},"1.4.0-next.1600469641985":{"name":"playwright","version":"1.4.0-next.1600469641985","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600469641985","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-J0phjkcYG5hAQNDun12uOm9mBmFHHGlUPldRhqLDD68CbgD5TqO8DVlnuzb6YpnoURoICUK2p+rPjBJZg9blaw==","shasum":"ec4eeaaaccd8b0bd3450834557a6cba281ef20e0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600469641985.tgz","fileCount":169,"unpackedSize":17888464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZTqYCRA9TVsSAnZWagAAuJMP/je8zK3etOxShCuPcNYi\n5iD/TKDlmwwyzGn5yXSINOgxV5Ktv5Mal50p+mNQzQIuejLE6R1XwYPGc04J\nReft2ON0ibVfK4NrvpuLCjC17wLM6FdPVgNgvqlW1333PIDSHPrsiY0n5nh9\nU+tz6pfDs5F/ySo8GG+KlYRLlbdU3nveF+YRCka5hY5bdy9CZvgyafXj1oJn\ndf36+meiD7BUCc0HtkVwZCnVboqUyVX8uGoxpI0345hjSqzKSP5IGcuB64EK\nPB7Jo14arFn8gG7p4MwptwqqAhw8sKkjjCm8/jcm7x76K0PH8nK7+ofnkD8E\n4usRd2Q6HaUFVf4IPgW5NwIf07UrCoLf0Se7WHRNuMtI95frvg4i+AGP2gcH\nxEgzaG5ItfFXAvv3Z+4oR+29Lki21w3A5yeFe+u4urpVVqCuG4vZ3oYPwd1z\nGo8Pl7K0lHc1GS3LLnTuyFQ3uiiBAKT78WYzXmnIAaRgeJG+NaQkVrgHQiEp\n8b0TcBqHxDA81HuT+w4VNlh8rTyYYM0R9uCei99weozQ5XaDY6rZEGJTB/CL\niaZfJPVyDxSZ7Z1adZcf4BICp2O17S8T8Q15X13tqq7ayE8qEIsIIMetTFGU\nBcYjaENW4/aaiGPCjZPTBY6rxB5jUGYylUNk21fjSuAHCyFd5XWV/o0a30BR\nLiHH\r\n=KGaS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDESQEBHDTIiBQXsiPC+ANltI2aE6hJk9hpsXxL2s4yNAiAgvE6G+2T+uB1w+u+lAQVVM92HSQ/08rR4ZtGmQ7SchA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600469641985_1600469655320_0.6021388229466109"},"_hasShrinkwrap":false},"1.4.0-next.1600475934986":{"name":"playwright","version":"1.4.0-next.1600475934986","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600475934986","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6AuuxXc2wDF0YbFdRxsuhgGB8tTfUob3dysjhxvt0aEixHTV+VKjD4AAa9JraWGxcEl01z9xpc2tXatYdhZ9lA==","shasum":"b45e93342fd152f27162af6adb2fc25ecad50611","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600475934986.tgz","fileCount":167,"unpackedSize":17874763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZVMtCRA9TVsSAnZWagAAglUP/ig91OB5Qgkb03QZwf8a\n6n79O94SVCsOs4Jr1ndvpIHpIqtvNnSPViSQuRKsOp0BfiDx9KePkkvDNfTd\nDRr9YIP4at3TPWPYWnW5XELKfwZT2Iu6QTJusq1vimMsqu/fZ1r9cJwzBbE2\nveDQDVbmxHohxOyiIaVpG5KCNDkhn2YsOGklJZ3z7u5B844tD2/x1x6Uhdph\ncO4u6CzUgSLPKgJyqFLouQKb0kN2wtSYQdTnlCniQXfx5TRjR4r7ajBbAN46\ncKI41Y1T/ZHLtXyPA1ltV6mTyo2mZs5JFr4RwsLk6zlMlise7/9XAjDyboUz\n+pFjO7/g7aNspjD5rEQLvGfX9i+6myP+slEgCHpjKBqxQY67KdLmhX37iP7T\nuXXdn4wzUxOnPCtHVsn6wWQZGLMtDJZF/O+y5nKS4x3h9crj8ukxhIze8DJP\n31u9oJl8CXM1QS6uSVNYZp0z0U/tOK9/uIj0/2PjOnabOeV9u4Q4qj5qeTKF\n7l+UBIWGFKePuO+sbh/Z/ekdggPfomRpHsomXIKMFlpb1zZurOFQuvHLnmgX\n4azsf5atDuJxMwx1FfHq9Ich3WOGe74jU7VwK6OEM5ytxznNWN2QxOi9psvd\nRQ2sZ5lR1VHCQqq+hilc3qTbcmhBpw9Jj4we8CUN+7nX9sLq3kEsr7eRqK6V\nVa9H\r\n=nii2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF52CLgIABqGNWdgg6MdSDs0v/aLzlmEGawu+EIFrqFMAiBiHtiodL5HKgBo7ou3NiO2PIXgMBGffO2WBPdocY8A8w=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600475934986_1600475948114_0.6977257753913999"},"_hasShrinkwrap":false},"1.4.0-next.1600649126686":{"name":"playwright","version":"1.4.0-next.1600649126686","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600649126686","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kBQEHniRuws8JApwvfTk9n8ZlC+zZBhuaXCzuwoF/r+6YatWWVHfEli2wgxLZQEwmjEXGSmGw0egEXtGdkr6AQ==","shasum":"b727f5e2bc57d716a1d29be86eeaa8f1be8011f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600649126686.tgz","fileCount":167,"unpackedSize":17874763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZ/e2CRA9TVsSAnZWagAAqTYP/05fI5/xFCQIfGPg2m4e\n3jgMogyqCfzBGtRuekYccmr1emNVU5drlW2kgKw+hAgxr5aiiAWz5Vb19AKE\nlWoPbD3ZRBBoO7MjIWiPrVKOBo02zKwYTo+1pmsSv6v1nawpz9dkYGJ7Ge9R\nRlcr13c/AeY+CuNv59LyheUnAMeNPh6vjjNyZ5KqMtoHHv7JFJTpHhCGrzUJ\nhkFCQzNJiTJeKs25M1ATPqRHJ11h7Eotw6FY9fOE33M39M9M+9PQR636COmN\n3WOU9vgWQ9Cv2oMcBtc887gBkVr4I0JKfwvdAIJoLCa0/GrRksytvuaoGvqc\nyowFYmidvSLnUZd4G14inlXRd/4wOTQufitciS4cGHTgdSMYgDlrzBoKqfPL\nCXwAJ2Fr+9JbvULbV5n/ecbCqaf2+uVbaIkv7QPlomWqDpir2AWoNiPICBE7\nKBOIy8T9ciU1DozOTsdazQyzzDz5EUY0fKjYpnYWmznGQxsbyUnr1ecQwUse\nvFAxdXkBJzRgy4Fp8k+nLAKTmBPXx8TB11lbtYd8dgRT8f4fq8jYYycyHyXu\nI160bmmZifaI98iSTNCkEXUI0T9J3eyQe6vvhfx9iVx4kblKsyrHqEZUSOTN\n/uDZaqfXkwsBaDmSTcH0pm2a0aklaCFAWRjV6qdkyamgKRvSAGiVu7plFFm1\n805r\r\n=Zdwc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF8YimadkJRXa86tj+gOhkqZd8V1je9f4mOr26k+GPqZAiEA+luLMs5+n6iAHW9C5fdO3T2EtzNuQjImIfFKuKggmWU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600649126686_1600649141130_0.4555924283922439"},"_hasShrinkwrap":false},"1.4.0-next.1600701724535":{"name":"playwright","version":"1.4.0-next.1600701724535","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600701724535","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-SwYSUJ/PP3ID5WvTcWvfNFe9gO8vwbZqQSo4ozPmEuTgkUDkZwH97qRHpZATd8mJlHOksR+aGvuxeLTZfboJ6w==","shasum":"5a6691506fecd3b0fd92fa1dfa77505ad04cc9b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600701724535.tgz","fileCount":167,"unpackedSize":17874869,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaMUrCRA9TVsSAnZWagAAL98P/1Wc0M0+ywpiL2M3cSQ7\nyBOISRjc7r8NcsqUnFPlWEVxa2oZ39Mx2i+vHc+HPSZdisPudjH2Ewak0c7z\nNfv35GpTbzHnLMV/fKtqOdwQ9gJCJ22n4axOuvNBUGIczusZJujegoHKz90h\nrosjepdbWC8cGzPZ1+AOgEEx7T8FUMXldPhH2fqfDTBRwBJAW2HGomFmUVHH\nwTs7QH1KRnkL4b7DmS6pWVRaIe7QCRWhJ8Sgdmmss1Hzc9OIv3KQ0rMdl7al\nRfqJMMdKVitDxEXyJ5At6v5iT3Emd8Wa7MmYDeYbIHzpdYQa98UECZOyEPxJ\nh2sOx1QaNhQB3Mk7RUS10S+5T9uYybT6Kw1FX/EILFgJviJhiJYUFTtJY2fU\nS5lfAGmhVy4di+1F/TrF+cpueeG2PFTjR4ebcS+FCio21sbEjRtNUmUKVc+Q\nm9gtxGQ7yzMH4JIKAdjACucYPjpMa8deUvM06BamrfGEUhZOECciadI4phQu\n4f5PkLNsWtcizm/TBgmnrLzf0OtKhqwnizTkjlJe6sMnRVCPDBsDLw0w8SvU\n9nobWvh1agwtlvkNqkLIlCD4jEa/HDTG1w+sr4xd6TFbmYoKYUlf1pUDV7oW\n2N2Pv4zQYm7lVMF9rYDKLQDA+pvUIWTHsYAZwbppQ1dFSjIhmwAvR7GCzqjs\ntBxo\r\n=4GZl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSeqAX1XJfVMmA1XSCB7ZYMk+aq+C5+frE89RG4ZEBuQIhAPNlanQcGG5fwuFiaLkVAkyi53JVPGX3gI3rwdFW3je9"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600701724535_1600701738610_0.08317367518222674"},"_hasShrinkwrap":false},"1.4.0-next.1600703380158":{"name":"playwright","version":"1.4.0-next.1600703380158","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600703380158","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2f/T2H4V6yPAt7JeQDH1/DCj+f/6ypT3e6rKUyXUArViEeBt4/DaI+4EbNqAKDOJuDUwgXYjOprYWL6Wxw8npA==","shasum":"6096371a48d48237ff9adb81b17be5eb40443b23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600703380158.tgz","fileCount":167,"unpackedSize":17874869,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaMuhCRA9TVsSAnZWagAABXoP/i67oQJcBxXFD7XA86Ma\nWRt8UXY5mwBqTJx8sv+Wc/6V+7KDl8R+On6j93gwBrE8l+2+ZTIV+t/zkuh+\nkfBeSq/+FwlTdvFhKDB782tEyyP59F6vE0KCVTLf5rbOA98fQc7GSaSXxHSp\nwwCbGNhPpiooPWeEsZSlHz4cpgKu8FLlf7c8mSuOIxe+k7CmFW9uIouJ0Go4\n529w/wnVu+TRPV8mwr08U/fgQHpMx8p37UES8/3i4HH5KGFZ8g8KzlrUgO9l\nWBi7kQLfoJ2oONdqmvcWm//64YCwcQxcsQ7fVbC72ox6iEmUWyNoDKo7/cuA\nnBpE1VfgPWhN+VbRKeixVzpmpSoHD3msb4YoCEmLqu294UrzENrFdWlHSCbI\nUUe+Z37lXr+jpxK1OlV7idVSsIc/SJjT9O6wrWczMByDlyVcFCedwAlYtLmK\nYpwp5/JpRn2bRzTdsEVoDnKqwRWvrYLtoOaThLDQh2SX6Sg2oEdOmk13Uj7k\nze7zBF40Q+lY4oBxwLxWliDslR+dV5oTvyUDqqKOYx7hM4llIwpba8hBe5Nv\nTW5DDsMecRmXfc5MPkxtwW2Vkv0KXtqNDR/6CCQtf+PVmWjtEPrym/F0KFCa\n6RAcTJp1L39sRLYhSirhEScmQqECsp2yfwm5Bt2Ao7PAkiTv2rWpu9slKlr3\nEVA4\r\n=mrU5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHREx9TBP/S8yyMdEPV6hSAWs70w96rkzTvm9lnoh/AYAiEA6xiD/DCeRTCApkAn6bHFUUkRQX89hGNWQSr2MjeaLDI="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600703380158_1600703392979_0.7717684721357114"},"_hasShrinkwrap":false},"1.4.0-next.1600703706404":{"name":"playwright","version":"1.4.0-next.1600703706404","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600703706404","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dSxpCPhzGKPh3GPciLBrvXQzp/AAm5WEma13PQZIfHuxcuEj+95gpokXLjUqpBXIdTTfPW61a5bqWAOIhUS5hg==","shasum":"1e464c6ab85ca4db9d8d9785164544c2da66fe63","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600703706404.tgz","fileCount":167,"unpackedSize":17914277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaMzqCRA9TVsSAnZWagAA30wP/2GLE0FvXY9lf5Vditvk\n1fr1QXu5yP1RfC0PGO73a0j4Ub9BBeNmA11NFKcpcGyZTOsFPuY270/v1cdl\nah77uf+us69suZyer3rfhFOl4YbQWxuWs/8974uerLh5wRZhslVxJnhcN1sO\nykjlxgKHT2JjvugbfWkshGSdNoHwHiHm2SECI6CgNCs7cRO5rXOLs2e5SNcZ\nexWY/0qgsPQ3SxUfQugP+WAhEfRZdWdYCPCLqwqak9e/R++1UKDVvPJTFk5z\nZ5dMWUlJeiM5JK9n+VferiMsIfzsLCDg6x6/gaBqAc5iTBRUe2e1EVgkYCc3\nskMpa6wSNkNEGixOSfOM6jshhHPnM2yJuhukvn7FV/MoylL5tnSVByAPtE9C\nlWRiKn9ZKwCDubDyQoxw6xgypjHD+zkNqNaV+C9uFAtzz67imgnfyjxXtAxA\nO1cShmapgm9YqPBZiDpzKHsHsfv1ex41BPWb8AIFtAhVWUBzMotAEhYB5Dr7\nNPfYNhf6sdRCBOaCAIKGd9XJY0ZYQOX5BDRP8TEA9HJet8GTFDc9RTVfV5ea\n2HOHnOHKSXqBFLjImBQ9RZz4fuO3UTmVgJ+/8z6h8I15qmRv6ZS8LL6lCzHr\nN2Gekty7JOG4li2KKZONdTjZnb5h/Ij+LIjcSxDuKWwgWSlA8Q6QqQdtgMDt\n66Ze\r\n=All3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgEvhUF/86/62bvMJ1oK9HNuuUTxvxHYYmjBPf/vHhYwIgURWiKZ2ZmIMXwM9MfuLEUBVsf1Uirkxu23G+UgVMruA="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600703706404_1600703721459_0.22965827021161167"},"_hasShrinkwrap":false},"1.4.0-next.1600724544289":{"name":"playwright","version":"1.4.0-next.1600724544289","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600724544289","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-mdTM7TFKcb2vrRyLERWUZZsBmcRqwIb+0Jq1Op/J40wE7k8jyxfuwUMtbQLd4TMV7+iyAhFiFajrKgTVzfl29Q==","shasum":"54459617c43c07e1de24cd84c8a8c44d03f3e275","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600724544289.tgz","fileCount":167,"unpackedSize":17914277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaR5OCRA9TVsSAnZWagAAN7cQAIOsLDMe7Gy2XnfwD4FW\nvXqQMN5pVSGo1pMBae2uRk8AwKv8IVTH8lDH0dMRUmRLAu7x4g0wV8Vf9CA8\ncBKHUOEC2tHYNpUG2x6LFhEmVsPKa4xvfptCRXewxHJK7VUqf6UbcWD3J6kD\nTWa14Dr80iy8S4v99PLaHbZW1qfWo6vRkprFm6HMgLrpu6zNKXyd54V+S3AG\n7xi91AQfefyA3Qn2rp7o5zKE6OGsahIwksl5WYaaYoK9wyGaxQ/stYaYp05S\nGAAwCiDBRUvBuhgxQS6q5cyq8HTuAHkHG4EkX7W+iXwkO7Xzr80UUSZUJ+P7\nhu3BHllSlSBchj6n3wvTrzXezlX0mfglVFo+2DL8jr3/1T+okbCH/L2fQ9GP\npvk0ge0G+IeEStP0Oqqdm3o/g5733fe/61fRDiR8KKJlV2Qem7L7JJy8zk3p\n/UpSYW7S8izosASvY9trgB5yULbhqm78F/QwpBPhR5XjzFITU51s+QjK+xqr\njLKshlDF8X7vL6GxZDkYEmebjqcIaCvc7AS0Dkx50mET8Q1W+OvEIJkKsG36\n7I2KTsRgGNjJJdTegVhBJuYkWJopGnmqUBwOz1F/7IUcaNkMxEgQwz1eOEP/\nBI8lB7jFYXM+ez9KFhQXXgSYgGrbRZHay7UpFWZP+DcxBrC0G4WitMi1Wpr6\nRVEZ\r\n=skwA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJph6Tgtn7CAumd/VYOC+IykEmjrky/Lf7gPlYCfv9VgIhAMi2EmHOViDqHNENfLnAJh0nTYr7bhJ2cSxVoPCGFUs2"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600724544289_1600724557980_0.160018650068656"},"_hasShrinkwrap":false},"1.4.0-next.1600725374236":{"name":"playwright","version":"1.4.0-next.1600725374236","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600725374236","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gWVJD7A+/4J3rH8uMvgxQQ0dPCgjVWP7WsOWkTY7EcH0WYIQ9f1NMvV8L/o1jLCJBQsuGv50/xGD5GMfMfQGqw==","shasum":"acf0d848d566635f5f39de12dd52cc3e4ab4555a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600725374236.tgz","fileCount":167,"unpackedSize":17914277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaSGMCRA9TVsSAnZWagAAqm8P/jlXx3whFHtkEoEB+Ot3\n3y30hEls6faSAnO+xEgAd4/GWRgGAWMGN46WCnlnqakVnWqbsxHZZp8gJgkB\nzoYTNymw5gXQg/tPPfajcmHiyFnt4WlnU/n6cLx/CNERmN5LRTUW+laNRcVC\nvi0Qo9Jv12f6tDvwkiqQBftBBXfZOVfr777Hhqy8cT98H7WMsCiOCIMWaVe+\n0q/0AcvKEe/OQvA8cJkIFbkCgyIvfhSR14UpKGvw/p1WH70a7/WRSaaZhgm6\ndBArVRWY9MLzHXN1zYEJTJbjZIhCNV8vj7wDdl5C4Oty+E6+pNZvVCF4ecX2\n9ls5iQusCOXoCVht77Uk7oE58E+x00MwrX4uNCVMleuJyqXD0v8VlryKVr4n\nfz0hb1YiqV8CeqWi8IvA6VmGj1IDzjEJYr1h4VWn1JY4dAbkH2QpVFgp2QAc\n55POfxBdp4oi7VYYtlFrpZP6UtMDfpIj3BOPkz+FuSUtz4X287PuMONiz//Q\nXmv8HsEuFRe7Fi4sr3ISjaRJylEErA6qd1sSp5VNW86LhwtA0Mm8JoiYgT8j\nSNb4yRkKWD0yImj4ZQeOPfDGk44xaXzO4gkjUdwbJufHUw8sNxjN/RT5a9Jg\nasE/qf5HOjJdkxjbEtpIsKS1AxgssTh0sgKyWPGVZsKcGLdue55dzduxC0kd\nmSt/\r\n=SQz4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkfIRsXsfBh1swY8EPAR59xoP80Se9TNt6YEIp4THDfAiEAiH0r/WkbjKske+n5WxSM2FlKufh7bTTQz2pP0waadSg="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600725374236_1600725387725_0.9061231421335545"},"_hasShrinkwrap":false},"1.4.0-next.1600728592140":{"name":"playwright","version":"1.4.0-next.1600728592140","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600728592140","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JS15MAJWFTDHVPDEGwIUK2iGQufsm16esrj2JPoovcFvUmHLsDbR3riUSZ91RQNWilo/tsE5bjFxNxer36bxHA==","shasum":"d9e8612163625e8ccda4f38c4f336be2759bf9ef","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600728592140.tgz","fileCount":167,"unpackedSize":18855921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaS4eCRA9TVsSAnZWagAAYUoP/2FFghqE1tB8WmMb9FoM\nI1/9gWpb8bRyOAbjZCZzpWjhtHZyZh7ClGbdQ9BBjFPQ0do3DHTusgoeQTZq\np3vrzCfXMYDGcFQ5IAY3eeXKxfRQqsMz1GFoWYd+d9PoJ5vibtP4gFbvClE7\n55MH8tHgkhIYuzE35d+OBai7X7d4dpF720MGosVJ3JwWz2jEruRHf7ZICCPo\nPYbd/bPnyMqiG85Hs6bAagS/vRBg9SO7/QqWpUGFxACUOdaP6IiohBGhw83u\nnn35UyrU2fN5hTn3XW1wpy1+6JHpk2sbaE5KmmKlGgl0Q6WJiNCQSVapoGU3\npwM3WgH2y734T/FrRLzQ7bgjlfd5jpiFzQaYpyblM90aYACyBNwb67WxPqb5\nKalgwYPSp8ve4rtb/5TNnGJ+dvXdkCVhm634OTfRTuBp8pu+HWcj7cHiVaR1\nY3GVYnRJy0f6V5O/Z2P1yy8nqz0F2U4gPWJJSuPDkPooYhn139g7PSXohiLi\n4ExJj1RzivVZ0uFoMqDvbJj1+3fNkEUQuf07OdZaGkjMtXm3zUkCxfE1+QcY\n9S30D2PnIlCKMwfIIRJMfnjIKguTHQ6UbDpCIO++4QX+mPUblKM648jVUrbt\nMZwQFagfgwx+6XleLQkT6ptIgcAafTNGjAtQIygsmzeRr0kC49TYCWSK2xXg\nbGkn\r\n=HUKH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDAJU9i997KYy68h3P0MTTsyufm+04gYcRNsUXdCTSh3AIfOvDjuAGKoxPhxf10CItly5yEynGkFR6sPTSNl7rxJA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600728592140_1600728605851_0.3850017020788685"},"_hasShrinkwrap":false},"1.4.0-next.1600728831111":{"name":"playwright","version":"1.4.0-next.1600728831111","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600728831111","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gFFnUxuor0RSN4EMgxOHE8Btzt2V4L8ucaBxN5e9FIVIhCU4IUSf9moXMy7JAD8D5qHJI2fpUVh2ZR7z24zNGg==","shasum":"8feb3f031cf1b0cfd5f69eac06062e39ae6b0759","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600728831111.tgz","fileCount":167,"unpackedSize":18858809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaS8OCRA9TVsSAnZWagAAX+kP/0lG4lVZNWl61nwtqI6c\nu48XAGP9ytEWWr4v6s6IOMJrM1gvW/jGfzJVGRyq6qUdws/gdWIkpSlPPa2e\nCtTLcHT6R/7cxE/agTggygr+Rfe/EhMtQ2j6SAtrmcEKeCxZZujRq2LHDPor\nsHPsW+HgqPlACxvBk1PqcbSWxAFmttZs8eudHD9fd0NkYqWgE5tFfp0i5Yd0\n7bbwd4u7WsTOmrCCIs275+Sx5q6lGGoOPM2ezgKrYJdzwtqwlNhOUp7V2Vw3\n+LbX6hDxoMz4cheQiqmZF7lbXqm+E5qvNJN6d9SId9spnyQh02NP9CrUszkv\n5HQGKuxfS5g5VO8TrzI+kovqChz3Z+pY7dPo92KMZRwXaVuZWFKFeu85MkeF\n8V9zastqX/AnWrK3rIK4Kuoxg0/dtlUYlcZX9rHHrriaIR8tpGHbsNTiBkzZ\nbUUX8te+BGEyQMwCaHoTtLa+Yg2GcIRX2tm7i0JyXng6RMprgbE5fGKOWOhw\no84Tb+FHZf+XJ3YZ1Aa+1CiBEA41LoJL2NDjrdKH0D/Z3UxSsWcT4BV1mPVy\nOHtwNes2lsrL+GeKKcaj2EvcZdb8tfP0tfvojNLyXaaoTv2xgI33KOCQArgf\nzDxhGqzdeNnOC4XemKXmCFFqdYz74lH11Si2EtZo39fzY3huSX0N2fWS4ULZ\nWOR6\r\n=feXO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDFc2C5mf+d+UCj3stdLY8qm2Jq2jLMGM6+2bEWcS145AiEA5m0++O9dxJXRBw5NNpHerW+UjoFkpeQaFkqUx3h5JvM="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600728831111_1600728845777_0.020021577095895804"},"_hasShrinkwrap":false},"1.4.0-next.1600729591098":{"name":"playwright","version":"1.4.0-next.1600729591098","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600729591098","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kZ4B64hmmpLBir6SQWf1PZgaNthE6H9fKftKYwYLFPmvw6NgNfQRxd+ptXtFBz6vOnl2jszQHx3I2/gBuE45uQ==","shasum":"2795d7840b7ced56e54a7d1c930691e64228f161","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600729591098.tgz","fileCount":167,"unpackedSize":18858809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaTIFCRA9TVsSAnZWagAAzSQP/jYekMivlGvZMNaEKHUG\nMyU0i5IyXY7DPDRxgM8Qpqzxai0kAuy/9kSTj89/b7otU/H/CCCxXQ+RGBFV\n0osG++8g3OIYmsJeTVEPFKhFdwlDgBrNI5+HF6H490INcjbQpLOIAmcBM9wz\nLxYNg3qcN2Xk1ZNcZqxwpDbbRRBdQIVfE1VDd316rQtcNfKJIfmGpamrKHWZ\nI4SfKEjp5LeYlpxqkMxTvy+rcarJAZJHl7vxX6PalqlngbQIRmAWJFpJ1y3w\nwvx0hs3KOuPgm4gJIe8Lbp9w8JDoKq/t1h8qWvXG85AAM+zFdCvUqASmRH0h\ng9rDMRKtUOpK0B4gNowZBXGudR111vDGq+RHi/uUTbgzNBcUc33sxawfw8Pp\nEoem8mzVFevGTM2Z1aN8t2Tko23fMVbwijen3oQ0oCz6RU84ztXEsKNFCNkS\nID1dxNVvvDZC+0v08TNWyFaLuPwdUiEAjvOiE7X3O6ScmlEuCnBBd//Q8PZS\nhklTDMle3JMbJpk9mN6aQe1PnrrXIhiHbHtzQ0cuJj+XfRNUjcDI05r9Ulw0\nmOVRiJ/mvXKYXZyTN8T9/h4KpVcD9glGvl3giziP4TEWTZn5eqmGhkaty1Q1\nBM2uqCna196Ypx4OmTVqiKEFTQBdt/j+7tRiPqeHNeeY7c94xZhhRMb5lEFV\nScrO\r\n=Pk7F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzb7YH3+iXBX8MX1Xy4aHVpszroX+mIGuphICRf6B2aQIgA8FRJsjsewKi4FNoieOab7D89lmlgw9FNaUT8G+fCjM="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600729591098_1600729604313_0.9185350450768934"},"_hasShrinkwrap":false},"1.4.0-next.1600729883812":{"name":"playwright","version":"1.4.0-next.1600729883812","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600729883812","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-BgKmErL19zIR7ZFM6WL/FnW4Yvs3A2KBap3Imyb2kmacA4eNWPfAeLwHmo6Xam4DX/eBEPv0pYl4b93VsVYflQ==","shasum":"54dfe108f94b43fd764fbcd265556c2977de117f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600729883812.tgz","fileCount":167,"unpackedSize":18859367,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaTMqCRA9TVsSAnZWagAAJVYP/0DrRUawU/d1Rya2bsfE\nT6y3OWpNlYvZTXDe3p8NecdlzXphGebkvpVwoxSCsuJOlgvYJJytMGTkclVl\n043C+T99Dt/uR2AFOEAMxapteD20H0KECdl0hmWSDKd+j1CdFoY1FLebHUQz\nfc6jFu+i3mx0X/QYtILgwokiq/NUGJYYgyaKu8gtTmiDuFrKcU+/XYUS158D\nSdU+lC88pPeHQewyevITUScem9hVm6tTZBo8+E7KoBFsbCgIN7zqZxEaDuKa\nC3LP7sFlAqogPCrSedVM+n1Aozs+2UcFYKM2TpCKvdjsTNGYiNXFOP8IANmW\n5wIp9AgeXutIdohqHfS06N4rcw5w2aMSFIVG21F75SkDa4m78rZnGltr6k4w\nDe7J0TVEhqBh4WUmqT47ELH5z5M3QEXY5nyMpQR15//jK/AhQ1eaOEMVoOwP\nMoIv0mwO250XpnUv60goCD7R0GPO5guT60vP0Bd5GTkHi9ef/CJY7oRK0Wkc\nCxU9HBl/HcY/GPwUc2nZYh1KKHUkC+/rc3mFU6DzSXTx/Lx6x44EJbt2HYJp\nig5CtuK4JNj5xhcD2xOAQ5J6NYR2Qsph8IJ+/+xY4Yp9uU+BRax/2vQG3Je1\nYBpavSkoeJzRH9By5BgRCnytXqYA8sWBRwBiIwGUSEHhzxw3g9IFFcC1x0co\nrnJD\r\n=RdID\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFsQ4gyoRiA8CO2J95NCEuu2rcZnho2le7KM/cO7ubRGAiEAhHAJ4DGunIq0YuNF4LuNAerBjtom8Tjb4Q0B5j81TsY="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600729883812_1600729897470_0.4271374335608049"},"_hasShrinkwrap":false},"1.4.0-next.1600736465379":{"name":"playwright","version":"1.4.0-next.1600736465379","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600736465379","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/g/Sv/gCK7SNfyIO2mZLa428vjaiyw8+1cb2f/02i7cTAexBBqpX4+IaxfOQxirxn3zRQwMhDR1GYFOXRlDQbA==","shasum":"53762a9e4acb8147de1b112305f104cecd5d64cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600736465379.tgz","fileCount":167,"unpackedSize":18859367,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaUzgCRA9TVsSAnZWagAAn28P/j4eSwJW5tMuv8eaIS26\nxhNmHrfGcXrQ0PuL379EZE7YLW5kO7lNLpDXZbS0IkMgNU49N5gsJ1F/TwGh\nd7ctzBY/GDQ/eLUMFwIbL5hbsyWaKV0I0F8YsWqC/l/TeJYNw1UZWbKkrhDe\nOZytcHFDVOy9sVMc8KfPMT+VrZJrxIfIlpvS6/IIAX0ODm630e9SZQ7O1jxI\nQ670m0fJB9HKK9QlwPM2yseedCpX+2Iu1A+xyWKjt9BD3z/d79zaNBN7Crx1\nsSBS/h8mNRTMrFmHqe25+4ZMELyVBcmtkzCM4PuVEmyug4K/MoY4q5zdhW34\ngfxQTosWF9WiVASGXTS8bnmg91H/xYfNLThjYj03ruxWG8SOcU9us5CKXWqC\nFlUKUIY2xAMDz+u9spur1nra7zOVCCf7Saxn69pe4/vPPFb1F8yFEV17+Dg+\ntHujragTqXKKUD48PYztqK3fkcCAPgXK1q1CsYtUsG5tkZetG+U/DQJIZZZz\nP9JFjA7SMdqq3fw2gsE7jkfr9qsFEmRhR7gulRO0ByowM9ianVg1dXJL8HBV\nZJ9Slu8luqD7aLmyMreVxWOJLp6WVGfAlequSkooWz2qQj0xpFJiwcLiJAph\nqRC8PucQsurSOKbz6jemDPkSwH+v6SAmTax1usAeucf0yjB4iYZIDtF6PrzK\nDEKE\r\n=COIv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOfnaChYHoz8QQs+fkgq0yAvsUsWWYcMBP5pM61V3RZQIhAOBmX0aFPzEpZuGQKV3IYfl73x6foExpY4mBZ8/K0ssC"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600736465379_1600736479311_0.5427392681202785"},"_hasShrinkwrap":false},"1.4.0-next.1600740327934":{"name":"playwright","version":"1.4.0-next.1600740327934","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600740327934","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-A1yqFIajxYPwg+qgczbvlgoacsYzQAtWguU4rZbsN+I+ThfoNNDQzMNFG6y1DGp99Czs8ndezZR0lgB8A8NO6Q==","shasum":"143909b2a4ae1eae274adf2fc1384a248b3b1cd2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600740327934.tgz","fileCount":167,"unpackedSize":18859367,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaVv0CRA9TVsSAnZWagAALLAQAIBli8gwTo48W6fq+say\nredL8dXyOktA1KW/BeKm3PcMC8f7+yKBCOPixpKt1Yk3F3f0Kc2Q+BINbJhQ\nXYW96gVlX9eGEd5K7jllwlZqDm+SPNmuxKEeNnR6t9t+86x3h6w+Jnw0GNDP\nRibRRRsB8tmRM5uJVRMwMSQVmE6CeSPxySeW8GVpQYDowubOuYJUMze7peIn\npQNlG+ipySQWgGdLdoO+bg1P+7paAyRMrm3krw53PgyCTI+KlhRSHOJT4g/M\nZwiMTlDA3fHhL1yx2KDpGRm6Qo3mEB0qj2m3x8jKpHXuTnJu9ddMs5vvRB5g\nADk6lZEyfH8d0obIea3Qos0+EUhP8HLQUaZZ5WKcBQo0DN84CQuf21d6HaXt\nGi5q3lFE5qfW2qOTtgrd7KuurkIbn1WXH+B4sRaDClZ3gnzCZJVmsxmAoMfQ\nSOA9mIEmHsyAgcCa9S8yK69e/8I+NnhR2ueiQaggJVymxmfYl9YHnBcI13cA\nbchi388fIfbnBlM3LZIuVgNuX2BDTnpM8XaPkL3LuLdJt5RQcoOSRJTz+cFR\nO3g9/FMwIjybqYMysnP7IRTapFyjaWYmwuG5Cixvk9raBUzyOj8pLmqdTSCE\nCNG9wfVGDYb1PBaI11anU2+3eE4Kbg0E8pGIgO6zB1n0mmYYec1UiEcy6OEi\nB63n\r\n=HWus\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB+imzwRK0e8tMZ3BCMvf5Rbym2l/O0aASyiNcj74OAwIhAKRmM5I+H/2xZvY5mm74Rs/mKu7zv4bXaCjT54tWhi9Q"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600740327934_1600740339668_0.23640846033359297"},"_hasShrinkwrap":false},"1.4.0-next.1600804342722":{"name":"playwright","version":"1.4.0-next.1600804342722","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600804342722","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-7BUjxWl75TTz2IbROQXldtdaUO72WOQo9F+YLiTUF7TMrbJMCYzBfxUOmo0EQB98IuimIpVW1zzUrsloxbrnVQ==","shasum":"627d975f8e11eb44313ce5f3dc45c42a2b1aa211","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600804342722.tgz","fileCount":167,"unpackedSize":18859476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfalYDCRA9TVsSAnZWagAA1CMP/0fMg0mfqvBde55XLOOn\nFHllnDxTrwXH4Z4X6N4KucMemm4agRZlm8uKWlfRDCSYPEY53Lpg3QwYp3aD\nZZ8vuP1vagVp2kKIuBAw5PHmy3Gyar7G053JjzUfKli+Kfzzetscnf7++UD+\nzDQDwMt+ODTWkWl4eS8yMrh1Kz3QzpFCc/0o+eT8mGkYo6G5AaY617ylBmaF\n5oUcN9AethHkUWI5CszJEPND+xa3CpTORF0Uru0nHzSCpNvI3PgTtSS5dxda\nykHgsnvrHidMw1Lo1lqFEcT+Ce6R7XZ4RBFAp4c5rIOuKCiR+iaUHWYCgTlH\nTcOyEYh8aeFeQaMOx5VY1bo2FTjK7sqUWfU+pS/dKhhXqTOV2YdXFJxqNBNH\nLGbr6JENIrE1PPmWa9fD6fEEJarHkx4GMZa/HUFa0A+dM39oMDnF/rpCTufQ\nrV71ay3AxTxCmbvEhbFrzNES4vfdITC917L67ICU4QebySYUA24AIveWX2tf\n3uHioFWUg1z4upBGrhn5Bx1yrnVcZBNWvShRP25Tijkx923HLB9EdLDdjGfR\n+kip1zlGxshQ8YmFsifiVS5GijVzseEgDetyLXsZOgkGU8u5v1jKMlkgq+a/\nVTy4F3+9SVIvVHHaQSRV/cI0muBg25da3wRZH6Vym7z7KYTzeEeSrpScyaqL\nz+C2\r\n=8gSJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1qusF8eq5Yxu+7cuI4R/MLGPGfakPD8k5twaD4x3CvAiEAo70+kI8Js8gTiqETFIfw6XJXfHT6wGAuImGR6MeQaSM="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600804342722_1600804354548_0.25199089162372235"},"_hasShrinkwrap":false},"1.4.0-next.1600804474198":{"name":"playwright","version":"1.4.0-next.1600804474198","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600804474198","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-pB/p0efRxs1Pms654KFJ/nmjwAJCXjdUNan01DHLNbRL8ZPzl/SyKFWvnCBFmjQJuV5QrzhClFCIMgk4qpsZiA==","shasum":"917377d4463ec93b6f6ebfe2814dffdede4b0298","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600804474198.tgz","fileCount":167,"unpackedSize":18859476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfalaJCRA9TVsSAnZWagAAmvYP/jL5agwOk6dShy2MZHHJ\n3Tj7m8Udhys8mDW1/ROkhWOY33x5v79SPd5lYXMQLG+zJtFAK1FOjRJjgviN\nOUr7NU9Gyk2XY1qAzIxbYeW1L94ho9DkK2sxP+Zbv1vqAGL/Gygg5EoDBGeM\nU4Eh8Lpz7gpEaBpuR4gZK4gniYDcAYc8IrQZboGPyDP7NFhSegszcBJeIhcH\nG0kOXHKBG+gLix9igf0S1Q0ZaeYZEg26WRUUMBmsRaiw6fCP79Mh69jB9w5D\nHQdh3lFVHNcEyWzpZiorniUjgOIz4Ik5JiLGcASIX4VjxIWZR1s31fTLGMX2\nP0e1f+3ZO6Z/UgtHu7qLoL/wgru9mwRPEV8dY5jFNsrPzI2SaZK25xRfF614\nTmqDRHRTqU6984x2CnFODVpA9uRjyWV90s3hnHpFpzjeZdfGalyjasmIU5vZ\n/vZXinCTYquQafKMyw0QQoD5N1CY6asYlpFo5VsT9berSmXK1IGNPleB1beq\ntqj+QrgdertqYcNuES3TFDxAN6oH7gJfNVQ7NMJGhRCiuO3l1RBa0m7QONi2\ncEkUHMZsKTdOVxZQKaw7GvtWyH7xJTtVKeMh0sFxmmi78yy7wn0uMCOGXElc\ntwCXZvyWMiK+BLRGl72brVxa7pd21SRo/NBcDeFsxIkEJyRkNNawWRy1vngJ\nt0XH\r\n=AIYX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmx0FfRYUtOdTA9btj0lmR1h8PgBekHtvp6GxSIYpclAiEA/QrO2Goi+fFCPE4RZWL7S2sPcw8o9yuHbu1i40WsAc4="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600804474198_1600804488603_0.9951648671440374"},"_hasShrinkwrap":false},"1.4.0-next.1600807667294":{"name":"playwright","version":"1.4.0-next.1600807667294","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600807667294","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-FnY0DGh0SFpKYSU6PsFqKKvn5SYLeZ+NotMDhR99t2XYhF2kjhhu3jY6Ydk5Da0c408Z01wHmJ2GrpU6/vXGDw==","shasum":"5747d43c19676fd4f3a6a2e7985bb35444e1beba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600807667294.tgz","fileCount":167,"unpackedSize":18860238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfamMCCRA9TVsSAnZWagAAQSAP/0BQXKeki536tCc1vW0J\nduULt/y7aqvJjwA+dNBvz6ZVtzG6PKiN8An+t64xbYVlh+q85rOIf/0zsmXe\nngrBLfnTop8QIPek0Jwl9FBoKmdzUSbTnJEYWyP9nfDL8O0RzZWzmUfqgIip\nJSDsCaU+8CLTKklkSwhJnO0NmrtK4bDE5tHACIs+kDVTN6d6Xq+gw2usA0zz\na8LlZjZKbbGw2UFptohEtpRzIYbBDev2DdL0f31rgIcUpm01nbe1P/fXg5MD\n4ZnQzNr9BVGyIznSIc1qCo91RcafT86J9SbzIpR0pXjPGBm8cXo/WR8kvWhg\nr6OSAb+oP2t1dtLGVw2MgdA4EE/tAMszKAZKkcyk75HAylIu7Bz0uSI7mv+B\nIjSCqBdVncpindeyQvYbVRBQyuumbmh7bVyW3noL27wbVS2OxJ+jH2OtVfCh\nyB+tJkJB+MSom6jYQ4rxt4svD5ttlQ+pbRGQC5LeF/4B3LJUczsBejOnRV/z\naPeqYfn9Xd13GKSbYJqQfjW0iYGnHRGdeRgO+rW5UDzI7eNkxYQL2Aehljc6\nfmmbQf038TNnsmZUUIaWdRtEInCId8qcYF+/jMBqhdi2sCkW14vaRRK55dP4\nKGWSktEWIdVqqxWzZmjJD3RzVpMRUV3lT9yRz+e84BrvMlygA8I2CEWRCwuk\n4OCf\r\n=zq6U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDl0dHrPA/fOz+K299wOqIlxJouS6OyDxmUbq8ewURHFAIhAPa93ph8y5y/Nv31xJHYyuxYYe8fjPRMlAKNsxrb6vPC"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600807667294_1600807681369_0.7593392095951437"},"_hasShrinkwrap":false},"1.4.0-next.1600817999917":{"name":"playwright","version":"1.4.0-next.1600817999917","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600817999917","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fO6d4S3XAGXoaeLHgu0ZoweHTFtI+GfRmheuRm2rIJk8evZm2vHS+decPI7gDOrCwK1BYFgE+tK7jflbwOkwqA==","shasum":"a612a8d49e593e87798476a0109a26e1cdfe51f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600817999917.tgz","fileCount":167,"unpackedSize":18860238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaoteCRA9TVsSAnZWagAAmY8P/0jAkS4etw5em4711p9c\nDqplEbaae4dI8o4ilHttpPgHmK3DW87e/Vss0lCSxi6xuRhxqa7r1u7AjuFl\nzXvVVqCITWb9kLDaFdDTxbhnK/MZ96WMqN5Qf2vml01U86DKKPQrar1IpS39\nkNW6Ez+rIJ5sUeMBBjasRGldpP4SBjRn/unb/oUGpha0TrEpjF24G+bS2dtr\nPEOiBUxVmVxxzFj3Pq9xiR0fXR4VBrf8ZP8IUzDxM+tnVOBRk8P7Zg/XJAkU\nfyUCmzhU7bhEXhzud20wUEsPO4WzT8rdyhqrrqKadPcyL9abGJcuJaz2idA9\nCQEXcboxDyoij9/hjx0jCn+c+TF/NPaqpp2p2vjIxTn2jngs1ZgJZarfV9mI\nP/B3+mlRepvLvQwb+b5AE5OdwjAF6E0xF8iL+F1cbky6xVTKTx1WHbTaJw2V\nP99kaRohHkhS4EmHQBlNJ84qO3YAOED5Fx+RVQ7ZODlbkgc/HP4ZUTdrZtuF\nRiB/bqen/LHZNSItmLTrtoXJRPD/q8jYlZqO/5hrbdVWs0KZkQNDbQzxgT7v\npHfRC6KNrTE7oW7u0lmCBt2o4cqq5YukD3NWywvgfuXEUcXJAuyxp0o1XBeI\nnKaiQPte/jtjLhO3BNRMkNSuJe3np0B5CQHRv1txJm+J9nTiatQ6uYeBTM6V\ndZzz\r\n=J2q2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9dw28C30Z/X+otrKP3orsc18yqjipJWCbr0vYrYJ+cAIhAKZHnKkG9XI8IjI836jco4Kn1GZMn63eV/5TwIC86nyU"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600817999917_1600818014088_0.8317530470539032"},"_hasShrinkwrap":false},"1.4.0-next.1600898059397":{"name":"playwright","version":"1.4.0-next.1600898059397","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600898059397","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-CMrRQks89Gm4FbvgkOrNXi+wl76dqb+ghFXL/m4gWYERiwxDR0QRjoOTcUmOqxJXe/o8z+5DxO7ClRsWyHcYAw==","shasum":"d623f610bdb65c4f4f58de214982d9d7c9b3f519","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600898059397.tgz","fileCount":167,"unpackedSize":18860238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfa8QbCRA9TVsSAnZWagAAM88QAKSD5ZRu6j+c4WrZr0IZ\nDStIfB1sYV3Z4P25AI+ECyAP53mZQ+S70rQPBHz1uO2Lt+BKHDRPWemYhJEf\nmUARJqdquP5RgAmOjEwQPzuQfvI734xagpR5fVhEvwjphfwXNxa2jGvj1LE4\nZ8IeU5Gk9UqsKfIbdlbFdKb6L3jgDc/8htzaHWrjBtEm2gzaRBrq9NnwJIAb\n2Mk9aJv4ssDbs+oB2WQFuE7FILSr68tN2LJf38ddDDIIw1hV8R68/0JJA81y\nPljEqUGQ2oqzRrGRuNNy+xde+7/9OFdDYMMX7KOdYdeN8S0w6uoVlQugWzUx\nLA6AiDFJQrgpzNPoPnM12O2ucenMlS2JNIqgJe1dc6RZ6hDlGZaY3W6i09hb\ny2oZ4msAdxE7LaeCgrPXiRkGCOP13q1EJOZ/oY8uBmWWwQ9jt/tb1OR4x7yl\nUCAcp9WTgJLtW2L/HZnf0fmQQQLdpSn7TLg9MWAesptfLtu4gbZX1hufqjVy\nbuwzfQk3IiF/8sZUCV1HqPEfErYSUtowHjwV22dMfXiKTpsF8L0ovdRaDrRp\nNq5FcRLapKSaPSrjSqFJmoHgmsgAL79PwAZDQn0Z4C0BiwK8GdRKKtCpbWW6\nvPiGYU5W+H/kb4xjwbIoidfkPzuDt+4R6qvptRNkOqFzyRRWvdDvPIJ3Nvs4\nhgAq\r\n=uSdu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpouo+jXyZZO7BxQBuzoYBz/KgbNgIrABXIrzUXGqJwAiBqUdlY39GKevDVa0wi4/4cue06JmvU29krmrj7DV1zug=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600898059397_1600898075218_0.46359678687770556"},"_hasShrinkwrap":false},"1.4.0-next.1600899188316":{"name":"playwright","version":"1.4.0-next.1600899188316","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600899188316","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1cy5le/a5UR52/Q4qCpNDa9DPvti8sJbQ9OpCpq1p+bJuZtt7/g3ZKM+8GH1ZeOV72eF1Icw4ms5B8QUT0ZlXg==","shasum":"4c4775162d3a99a7f1f6e59f46fda0986f090549","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600899188316.tgz","fileCount":167,"unpackedSize":18860238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfa8iDCRA9TVsSAnZWagAAlKsP/2TDkGlt5kRa08A8R0QL\nY3foQXEkCcCRvcx4S/FZ4yeUWarbMg1S4l7lywSS2ELYJAfm7ZcgvTpGbvu1\nzoAeNxOpXM/h+EHVIGtblkT+fOY4kv5IcV574+qFXew6vxY0+c3BM2BORTN8\nfQ/R4MK+L67SoMw6gw0NNaRreJxlgfwAKGvw+YhGwXL+Ik7YWl/jZCANlRzf\n8foFKBnKkzsIo/oIlKC+zJ8azbbrMCnN4zzEQianwnu3CYL+Z0vKMIyUnSw6\nWZI33iqoWrL1iFjCgsLTqP9Fs8Xm0X7SoYFh1R4ERxRWc20V8x6rifzay5kh\ndTjN64CbkpuTwkHhrJXFALD0Xd4PJZRVRsTb1xt26DndlGzpUbi6/eMebQZe\nX5qzbGOLLY3p1sO6kZtbYZOPZhhSSupIC/SHn8vjJ/vpIT56xuogAIJCZfgt\ns2tv1ASoq2UEPj/zxpGbRgeCr7AC7zVHWh7B3ouqGC3+DDC4YkzcfGstwgmW\ngjBJ/KhLXg/OZQ6fTLYGf5GzdzTnZORA4NwG8q1GaTB2kWIhPjHJ3cNmUH2j\nPGDJok5zi1kR/IU7YuaVATLcmpsISgzbrKGe1s/bSog7KGeJ6Mgt4+jmMV47\nFX0x66SjzJo8KZp0cCfxpOW++ZsZYKOEWPnDIac1wGJkoBYm9JbRLPOhKa3n\n/xMM\r\n=zebM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAu09dIEn1elrMhM67R7/nL72F2jfj05hUeaBYrYTX9lAiBwYnoAg6FPbL1DCUdnScrz/BT75cW+xU6ydpARoVBkKw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600899188316_1600899202644_0.6404793881842614"},"_hasShrinkwrap":false},"1.4.1-next.1600903717669":{"name":"playwright","version":"1.4.1-next.1600903717669","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.1-next.1600903717669","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-OmtLFTolfcJGL8o+mfa3LfYSFYYDAx+2NDQ1j+ko7qF/ng6f9hoS6xW0fxyOZ6LRMr/YG3AHUUfUjZlkS2udvA==","shasum":"2af1f5d39688efa4da07d59521912c3ed0fac3dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.1-next.1600903717669.tgz","fileCount":170,"unpackedSize":17866988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfa9ozCRA9TVsSAnZWagAAfMwP/AzhXUGBMb7ikoSEzJ9n\nIsJGYBq/HPrruxU2aDqs7SwfKjomo7QwmUg8EH7CdmrAKVXKLxymVKFfcizn\nrLwpjnzFPh8rCDBPxfpJClXAlaw5sFNpf/DWcMNHMaAliFLE3K59nEjOzGnn\nvVYjPTgKtXdX9RC1iDhYRpcWh7CGf0Dr3IyQk9ZYCCmjW+ZDxdKeXm8aBUUl\nj961ecSwSqEiakXWDa5hyuU4mVC1vaJ2cY8F5e+9ZcSfKLP789MBgmdnYy24\nlLP5znUN8ThPQy9PQkQ2lt7prrZleGVJo7qxcrMdchpvC1kgwvA28GUBov8J\niSH3kmYnttXHQzzRpdUQ7jT+vvyxMVRE5nSUQCC8ZfQ3QeXy0QvMpRF9BaJW\npmHk72zC03Rp++ut/B3rIr2oS6vn9ir5OFGoxxoKKrUahTHpCG6WIecIRqP0\nQdqcIhg3pQWX2rUFHzYq/4Be1IJh4e7xIftjY1QacSeZ9GYHe5O6Hvu2y6Au\nY5e1RUMuFqwu0vS0pwt1PB2q8HYAMGZPoPE1ztIKszt65rTnoqb2qCg4ZCoe\n087nT8fQwoJRF4ki9NyKrpRYJcEaDtwVuF06RSzUfx6BVWAxEy/tGUIPgMwj\nNE+CGmaudIgvGawiwJxQr5skKwersd/ZeIgjL92RBW5cgCDBgO7bL916VYr2\n9N7y\r\n=OoX7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCahcnPdP49slg1xOXY+ppO3BDZImHKTk9MR24aJ0WQnwIgDh6neEWjPPVmAyo2GpVkPaKkGIxgUKatj0p+TIgCAQ0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.1-next.1600903717669_1600903731048_0.7611240680558193"},"_hasShrinkwrap":false},"1.4.2-next.1600904063807":{"name":"playwright","version":"1.4.2-next.1600904063807","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-86.0.4238.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->86.0.4238.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.2-next.1600904063807","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fpSVX7N1cN6+2VmUpYkj5jjDSNJb52tDMjvRhoR4Gbh+MnBiwY+HO+DzX8fG6feBnFEI1qeyPCnjrkyiegSmww==","shasum":"ff3253154b1be8e4e9380aa668f7a609e5c3648f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.2-next.1600904063807.tgz","fileCount":170,"unpackedSize":17866988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfa9uPCRA9TVsSAnZWagAAux4P/RKdMiQubSKlCrI5I4UA\nfuo4AA06kqOv34rH7m+HzktwRh6+MalFQhOD2BOHi7LelfpbAbdXC6mKeXbw\nsuh81s2raS5cnMTSUFYp6zWLV77scgjZPcLRWXPPYMrftTBavujuMnafZJ7x\ncKMwroMqJxc8LuZfYK1okNJdurizEP6wPBDYZxoDX/s6FteFuGI0f3dM281u\nyxZa9Rp0/sgWPvKY7rS1aNmNDsaL/2OOBNkJbAF3i/7TyiFK9Xp2pHmmYbm1\nm3EQ8m7qP6iTkcYlBtFZ229svPESCQbGFreSUBSP+k6XNYxrwPtNC6/32fwH\nv+0XVbvt3Dh+8u2SfwMe6cLEa0aVtpEvHlnRbHTyk1H4MbxrMw9xlHHXpbDg\nlHFz+BsKWAyjUMyEME35dCblpUTnUZdEZrWmMm/XPBT/99bcT8aXVjR98y6K\n3uAuPlo1cmlPHzSEf/7buAQBQ9HQj28L+2RcTp18sXVOjToqeDPY+cNH/w9D\nc0Lqz1BjTwYj41hKlBKgtS2k15BrRhhw5Ti1Jr8LsgofX8zrP5ZutbOLLxgn\nnanXLUM+KwMSff3Iusm/eMpebpvdGGF6ak2sw66jep6IVpAmzT2gcQd47Nhn\nAC5tOGaykipatp8o9uHU9UDajNhC95+h17edLRYKxuWAsJT3R2JmZlV+4HPi\nD3GV\r\n=9/rs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIxyEkxb58tu2AB872Idw4mkZGItp9vwIp1wngNgOp0wIhAIEXi5E0RmCC9EK8WwdxNWBT4d6uIs6DMQvtJpy+r9xf"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.2-next.1600904063807_1600904078340_0.5318599659702536"},"_hasShrinkwrap":false},"1.4.0-next.1600924904009":{"name":"playwright","version":"1.4.0-next.1600924904009","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600924904009","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-4Rk8ffs4veoNnjL7ZNBlEYbR09ExPJM8hZN2Vjk9hcmvTlkmmJQpO6Q2ChN8vihpgNdb2FC1EkTO34J3X+EG2A==","shasum":"8034a03af158d8ae236a78c1e1be1e138ae15d5c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600924904009.tgz","fileCount":167,"unpackedSize":18854531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbCz2CRA9TVsSAnZWagAAywAP/judQ9zjg5tWOCwn5Ndd\n6NfuWWMXEtcPJYGGX+w/ep5pL1QLshR8oJDYhwoU0NFnYt9tA9szKq819uuv\nk5Tkv56uKwAuvq/p8+wh92fFVfELxlrv8CYW6GUfNQRn/Ja6+msitEXDo+lC\nrCbZx5Kjt0a/HwCfhe62dea76QPhk5gceUoVZ2nQeaIlrZOfQCpmLW4Un5U7\nCq2z8U50g/6JMKcQ2rRxNCyFSbWwktkcF30rOSY+HTZEFQR0jkossbqimv2T\nw3dIaTre8t+6sJKVASVxFbWGxofl8XVBYMhFgskGdx3pzNlez4/DVBBP960k\nLRmgZjWNSSvIztrD6xHW3K7A/wl2Q+HHXqUUYHP33kJDxGgos7p99fPSokdP\nvSMZOboY4k1z/kSa46KZhJLSdzUsOPKGUvWO1HY7Iw5Ko+u7uVg/2E6vbaRo\n52yOeupzCIylVtdxgLgwHnlh5S7iRqMRylLSBHBus9QEfIG/YAoDNSMWA7/3\ncX71NvhleHV600igZvr5Gv9TJATeh61Sc0HGmFwrdbuUlLunUvl52Xw2dDtp\nNBNsOi0Tfuofp1mtb3AXaMMzKhfhTJsc9iqp2eYuajOYEv/R6TrBQVHj4KSy\nxUKXJV/6dioGAO9GSFz3HASVAn5gdu3pEvTqs/XrzIzWOrPAugxAej+K9XKA\nMFHu\r\n=P+hU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhD7tHs9JYYHv25TlDMLB3BH/9G2Nw/ioTYICWHzDkdgIhAPKnjB32Ksj58dPCJxLMKtd3oFgBr6dJ/lfUYIc3Ub9G"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600924904009_1600924917965_0.6705453575397933"},"_hasShrinkwrap":false},"1.4.0-next.1600929113469":{"name":"playwright","version":"1.4.0-next.1600929113469","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600929113469","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1Y15nBLxoM++E1DAL5KDB1M/I7WypeHLfnLvRtXvXN78EmiVs1y58XfDUhI6CQb47Y1S1wdrcfTWhLFCvhsVsA==","shasum":"15799295a4185db06913b2da872d3d7a89c67e6b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600929113469.tgz","fileCount":167,"unpackedSize":18854531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbD1oCRA9TVsSAnZWagAA/HcQAI93s60rMtPe0guaNEQp\nSSCFeZmYNQcfip17r487ZkEOCvCeDPWMcjlETxP/uSf+OlKGlPNtoUsMN+sw\nhrGEggKMFhrshY1X3pL1pNd0ki0dZsTTQapOj3ysN2KxmRKJQPsOhLdJN5zs\nE72aD46tNLVJE9SYLr0LGjxGiRQvEG6YfpxxrlJm/YiFENZXWBDgam/Dc8QQ\n8enHfRVSE+7VVSPyMw1O4q+rYj3s8Zj/mW1yTnq5njONcnQmMiG8rRplMRBe\nK1/AneuwVzMBD84pHXH+AXCjWJJo2lMFd7KVWp6xQLl6BdGiXn48cH+1ksfe\nihY0Us6s5sXm6rPM1Oq3NdkOmCnOl7KyC+/E/Cws5W/fMiyQexSbABwVQmGH\nt8fYufdrMb4JbhU8h8n7ZtR9W8ZjifI6Mi3dIC4U4mnj30t/AbDmedhlhqmm\nC9t703zKhqsSYZjONW5l3U9dNlqXQ4f2C3owWjlbcCB7aQ4PQjElBgb8d3yW\nqIw2ndbg6AARxrdcW+MmnZJ3QDntM27W8fTJXLpU1GugmDjt4n1iz59/aENS\nDY/z1RD6+jqkuTCIl8eMaxTW2EbEPB63GEhysdpNwW8cUTtijPxOuX0kpcT2\nyXZ9qjhXCAUfzt6bCE5PqnZgRrJ6IzqZIpZp0Bbue4HCgsm5wnCbpqTgLqT/\nEj6d\r\n=k0Vi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJsYw1JYlv3IlRweLMjA4qlDVC/CYmtpbUrLL4m4DQLAiBk/2oJ9FXt7xajJBhYs3zNEi8aMFI60pXxtxh8fPtDWA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600929113469_1600929128051_0.7056852174580073"},"_hasShrinkwrap":false},"1.4.0-next.1600947628860":{"name":"playwright","version":"1.4.0-next.1600947628860","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600947628860","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6mDqwiXMuk4v2jFym06uq9uCIOCWaIanRE6m4Xo4MQ9qrZvoraIb9UslMLUi/XAmLugpzOLEFnxDbw+NhbbgsA==","shasum":"6a42c6eb4b384141233aa1dfd1f00b5b22ced2e2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600947628860.tgz","fileCount":167,"unpackedSize":18854531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbIW8CRA9TVsSAnZWagAAAEcP/jhXr6vdoIS+36tmNjpJ\nAIQzNiAxEQozWUYanSKZ+BfeFPGnRLukolY6ZnqfGuAoKLi8wsIhZZzx2xfD\nvbxjsOYi3djST9VI9W+W5WgObmmtRgNHBeLB2nfGFThd66PGzNrCVpRsctbA\nPG4YRCWhXMNB+DExBxb4ZFGKU2K062cY61R9JAewq3vK8P7r1fsoDq/X803E\nmFQDvFAkWuaO8KkjE1lKrsWR81zK3EJKp2r/r9AlrFFdUrrV//eKZBmV2IEW\nD4KIiSMTXz8QUjK7n/pXDy/QvoJy03j9g/NIajwMYykB3B8O1dpyCBIWBWh7\nAkE1ylDHAa76cxcjqUWvHvDWNu1oetBtTWg+AKcfd1n9w3BIEXTNXY0jDjhZ\nZnrBr1rz88oPMg1ByhwDGyeQBs9MKD62DA+Q2mWZksS//weXLSt8BvgQslPq\nwj3iXZ4pVWhec5OOiADfnbXqy4XtI3fjoErn5Z8vpl6Ph1oMhEYIJQeAuHt/\ney6GnIM61zf+Erz3PMc3qTxvly+D996jGiK7CH0uWCMTugMym2c7qGVpYcKY\noipq2TT18cYqnSnaa4ASceWn005we2HQXyGWcDF8q/7/72vpngms61aXODbm\nKLgYyXZtdRn746srRdKg5pBArrX3TTOmGaJKepBlTxzv1cuDr4nV32d1x7fo\nwEKe\r\n=Kck8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD42gx29KYlfPl3y8nk9UkqiSCrnXVAAg3GhqOHKIj9uwIhANtyqj+NSP1vBcMFt4xFZYMpCsI5wPR9MVcf9y/6hPIq"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600947628860_1600947643842_0.5258507717103158"},"_hasShrinkwrap":false},"1.4.0-next.1600962572946":{"name":"playwright","version":"1.4.0-next.1600962572946","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600962572946","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-YrW//UG25gT/Xl+Ip9NaLm2VkAY/4PJ7vu694W2z8qe03QMu8SlDTFC26Fi2IWOL3WLiwuPNBqv6UEIr2Pt+hg==","shasum":"f4f1b84632e753d12b5f292419c8c063ce4a5cae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600962572946.tgz","fileCount":167,"unpackedSize":18854531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbMAbCRA9TVsSAnZWagAAWiMP/Ro9GmY9DrK/LfjkeFmJ\nvb8kqV1WTGftNoNnIpWz9mmL67sbQspkJkvj4t18hTPPHzYW/zh5mE2ZXkkX\njyrcS10iHX9SQHA0wROCkhFr5u8U+g20st9aiw+3buBE/LLCmCuIX8/e/Fj9\nqh+7wEGM10WEEBC/kI4eu/EV8bGQj5ku0qXte6jJmG1Tw9L8SZsQ+28LprjG\nQRYtRJfqRbj7vz+vYCvOkiYDRE7fYu8UvNTN1EnUQskARueCzAXRZo7GDs7K\ngpdJWqkG1YQhtxSTnnzw7TTrexHvVO5Hj8hGmTC3gIEnP+TyXND3+mrBgf+U\nBFawyZC3XdvxOgvQihLfgwUhH/3cQAriGq2H6DrVIVqmYP/yC/sDaMlJf7XI\nMX1pugjKLhz755C6qKKNmFJUath4gCi9eWdmdXWkjaZMyR/afjZFXVYcnaCS\nMjxPJvMId2L5qWOOY3vmcO8fSETfsYU6jwXE5sCNA9TsfP4k9/QVKIYw4fPz\nfTRQso3yXBjlV8M78Brnqfmo78C+C3NE2l6TO3F7s7743/hOCB6W1U4Vn9ix\n1AOBagFGXEUmr95WmuTZwi22tuwtLI5lhOQbKVHZ7SQ0f8Dhw4thxRHmZnN5\nc3YzG5BC9xIBfLIKXp2pIaZSdtZ3kvIwQQoPQs9hwakp9HN0/3u5Zn3/Pxxy\nM+gz\r\n=/i2R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQkUA7ylzuP1CMN/PO6dq4Iy1YQ/ucfBx3lNmOwp8HTAIgD4i7g2HMcT/3R8xLbNFUNzO2oJIuyymd4MSC+XxzfoQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600962572946_1600962586848_0.53098989132741"},"_hasShrinkwrap":false},"1.4.0-next.1600969657354":{"name":"playwright","version":"1.4.0-next.1600969657354","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600969657354","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JM6oVwKDlCQQxPNVY2lfMz/ZOfYvrp9l2epn7zV1zEr7hMA/RqkNjghlXGzCRcaNvXMP3NR2/rwR+lZOVABqyQ==","shasum":"7f1f4c4e4529b75247ba0a6d0a80758831966f92","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600969657354.tgz","fileCount":167,"unpackedSize":18854531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbNvGCRA9TVsSAnZWagAAAMkP/1i5inZF3BOzSee0Zb6+\n/JN5oRjswy/BOG6SfjeRR28t3wQseat0pUd8GBWSeHENWZUEMKC6vYJzmFaP\nMU5RYgDVZlFWwwMmjHVzQ3jeiy3R/P9/P0GziILWgUhveUFuamOBLfX5eLW/\nFPzN6tWg1nz0ygHfjjF8BV5zG03iQ+4GUKE0UEOP+6enm+tCu2K5nKqKxmOU\nsFwAzzHjWDy36GVKd5P4fuCnN00/siUk2j/2ICWthwVZ/vogadJVEQ9Nw2X3\n6MtRINXwoOqz2LSWjtLU/bg1BJsROSaRDbX7x4IpomjT79oVsmPc6azmmZxo\nPZ9O3qSLVznSOTC5E4kG05m2OJMiKPKlPD5g8rzolL/+K04r35WMjQkV+B2B\nVgfW573XGDVVgxRMb2as8/GlK1UuRSzZ2szZxjoGd/EL3dat0TExQGi92Udv\n2bzTfs6Xvhl5wf2QlEwkbxfLmqh+lQzRpYCJeOUeTKcYq6VNYouiRQuxvSUi\nlqlLkxRKzkgDR4E1NCAbuGq9Mss/MTpl8vfOPWunzv1jdPJ6SKVAEZTOWZVU\nwq/tY6D5Ib8oCuRS1viSIfau/E2HKSO3DVK/lfAQ4fee5UHIYZ7wnGVM09Nu\ni7M/hHUAZ3y0zMz72Jbg9RTTQjjRz6nxJuAajfzK4F0b9EjvuOwDLUvoqygC\nK2if\r\n=PS44\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC3jCSKLCscxPmBhVqbcB/MSr7Mm8pqswQOTi7VT9tE0AiAwg5mwTroknw7NdYD5jWZOLw3MC53v7bLzeoB/xXSccg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600969657354_1600969669812_0.5601989536397443"},"_hasShrinkwrap":false},"1.4.0-next.1600972351156":{"name":"playwright","version":"1.4.0-next.1600972351156","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600972351156","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cX1C23uWCeBkqivgZTdXT5uqxgMpUtSHiAOLHndgyVPXZJ3sBqr6Xgcflbdx9q8aITj8ZjGvrvhIfI8/ERiwSw==","shasum":"d179ad8bfac900400e3d02af2f7be6b6420e7060","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600972351156.tgz","fileCount":167,"unpackedSize":18854531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbOZNCRA9TVsSAnZWagAAfPcQAJbekxvES+Bgc41jnRYx\nwAEa+RkfUzFsVyt8OpwToYTvTTpMYEF/bg4O02LqibQHHNWbw32ScLH5d9vn\netyL54oKH4DiNefDbptgpgFYw/+tf6BGMBPMYgzARAox2gjCyC2wNpDiRxJk\nUQxZlUHY4WjzFPqwxi24TxxVMFstqBeNzmk5faDv9eV+b6JfFI10SP6vWtkL\nmm8e8E8VS63XqSSQjEMGE5woUiFswkUW9oTmBXyfkpydnl9HFF5B8+vjU+uP\nmZc0OVCUMO1wolsg/AueODVvQCPRyJFm4EkrBO+UDfGGOuX9e6IESaihMbfp\n2NA/47u5Zl99cfC/KjOYT19wQ2JezqIvD5s3dmvCGDwwrd23l2zpfZGgChR3\nbSlBf0KJ+vJ+67ZtP2MxM1bfhP99Gwbs8AoVoSwtV5g7U1rqYL5luS4+CNeH\nUTwVgjKhYopeNoBYwjZqBa1/CFckk4n2+dZHQDVWdNcJwikavI3VPamz178R\n2cMQbV3tFL8Wh/YMmnIOhEsMU18S1NQeVXGMkNzJF/BlUmyKr0DO4GR8Tp6e\nVeq2WYM4SNxhtK6Y+TfMamckWQgxUqvW54O28E/QYggh6CDyDcsNfURWuAFq\nZA7CETrYZl4a3BEAlWuaKA9CueJLXuSDPuaaEjuHVamniU7cVjpWwPfekSIW\nPr7b\r\n=FgHH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD28HFAm7/7s5Qrzp3lab6dib1cVu+roEnvhD5CmSbVAAIgZ2MtcbpXOUT3b/Wz7tKtqIxWGOWcIDvvRrSqviFb22Q="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600972351156_1600972364402_0.9126778833792997"},"_hasShrinkwrap":false},"1.4.0-next.1600975115296":{"name":"playwright","version":"1.4.0-next.1600975115296","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600975115296","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ATsXH88Ebl+E52V2xoWOC0/ac4SCsrHllhfsBHjuzHBvIFtF6/8fx7qUAN60ZKiJBtQa1crljzQ3TkSPvo5qEw==","shasum":"f1d78f3b26e922ce1a8915e2312cf119fa8c3f1c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600975115296.tgz","fileCount":167,"unpackedSize":18854450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbPEXCRA9TVsSAnZWagAARnUP/1/Cqbja3q6GX9w09+7U\niZ2aZMdZVq7OZYBMLbvCDdSbsawdCT8rCW9I++oYsaCL+Uo497fHez78kkdk\nbkYTgIm0r2RTLbc4ZLpsr2b+H+c79BEohzfy5nP9Q+bvVPiaqbfn1kd1gxA+\nalVBiQOgq/LNaxvv+HecwCTJuu5v39M995PQJpY98jymHOR4Fj5FeAKuxNeJ\n/ip19qKQDxY/9PEOBLZWajMyD1BIBbZTZAg5KjysTZWv2e+I/VLMk498twJk\nyDmDLixtlE7BoYSumzvla31sYp6dGwE1clzT2c2/eQrei3/4eDctcLZn0ACi\nYcMpoHM8TqVCXAWfhhfARpL+NxosoZa64NqCYZ/yWm/alaeFC0w/IRHirFxp\nzwM0kJRoj/G9+6o43iFkorbRoIKKq0S91+TQWXvZ9wSJI3dUPCD7B5UxPmY1\nVDH4owEzZNDKHGbFZ2clrZfILE2T/yGPjzizOrRiaG/wNmO6ct6u1Jnd0Hm0\nOcsLkaLQQ2v9MqeGGEk+10viTeFWF5nHPxjglHGsPU8VaXaNQJRBJZ8gjx6g\n+p5DLYcPW77qF5abqD9dq6s23dXbjUhfE8gLMCnO1M6ZLFgAcKHeF6L7ahSR\nEyWkb10xGDuvyUrDO24ibGp7ss4O9umN2fXrt0aKn9uHa2ZEZwoGaRY7z7Dm\nUKUz\r\n=62+R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHiGsdOTt7VCO6zqxjXfbOjXHowsXJJVJgDrWevscbThAiEAp0PV6Aw+VGF8vc6zo2rFvFqfuS+A7CcQpWq0Fz6p5L8="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600975115296_1600975127128_0.9640860962772038"},"_hasShrinkwrap":false},"1.4.0-next.1600977963917":{"name":"playwright","version":"1.4.0-next.1600977963917","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1600977963917","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vyyEGZlfEjwKdrmU0s3/Us8I17/UNUZ46Mpo3Pu8IHGh3gQ4gXhl1xNKZFZi17AeXarUm3l0YMvZ7O7qxeZclQ==","shasum":"ce49663837e03d39cbc466fe46d2ed87533bbfaa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1600977963917.tgz","fileCount":167,"unpackedSize":18854450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbPw6CRA9TVsSAnZWagAA5+8QAJMn62f/qLfiLWrd8FOP\nuLvAmoBDKsIDQvDcDWED2CmMdelh6/M0jQx/aFiV0YCuvyMZts8pAY8sWQAe\nhPms3EcLQHo/y6LjFCCT7rsa2b+rSxUeztNuPryfaITv9Fxa4cLpGOen7wQ8\nYp8s4UyaVwwZjyK5m4eu1F63OwOVUfRChnwGMgNts/0VZCgutV17WVhx1TXP\n6n6VLYZLFwB5HGuvw8yr4zyK/iyrkm8VjFBagW71MokM7SRH7YgKj9TwmnRO\nkDLlK1gn1AH+CfZRjccS4767yirQffwX6YPBO+rACxq28v470vx/geNfcGs/\ncVcLO02RPL+7c/GQZxj07c6r7dILPdc9zZjnxZjPOQ+GHZIjrvHFXwDd6IXL\npScnfPAndMhj2W+V/AHIbPhNVsSIcTAKU3JBPtwiSJN9zWVd+EMt+N/V9uzg\n6LvuFkCr7AJ2wWCnkEU0J0pfk6THhCMoOvrWnm+etdE/314ow6Q4F7SD5SXC\noTTvoAej13U0YUsA508o1LQmGlgH9UzzF6lCVFXWwB3ksgyqyz7mWgwQ365r\nT3uYk4OgP+7OOmusQY+GgMrLpnBOSeDtVW+ibvY7Q4UQ+Ujc6CWgALEzxYpd\nrkLSlOYjGdpw9QsQK1v0s9MiKinvJpppMclePxPuRP6Zjykw4qWFTgcYp01Q\nm79+\r\n=oj5V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbmp1mqxlK0ENCvVpiSO+/hwHEGeQXIWwwoYs23HNWIAiBhapBgAAYwJ2Hft/MYHvA6G8rtVSe+SBrj74wjTJWklg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1600977963917_1600977977328_0.3668557013464897"},"_hasShrinkwrap":false},"1.4.2":{"name":"playwright","version":"1.4.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.2","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qiQHrhU4JBxup9JoGZff6hdFL2VrD+ae5QLELGHwRq/vYNQFeJF10Z3ENnQ6hWJmG+YnpfzgoBvX+cUg4WHwTw==","shasum":"84dac641ff7af9f465e367e01fde8a8f1cc274bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.2.tgz","fileCount":170,"unpackedSize":17866969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbSH4CRA9TVsSAnZWagAAu4wP/1FzhCUij4XdQVw4sKSf\nc4MLzxjQEp3Rd6sLf0OlHL8aBs/720er3og451OQeCAQf6R9AE5h2wFHY/di\nsBwbPI+nDupJdvEawmzXf0/xoKuXuz8ByBlFmq1qB+TkSu87B+7MbTDGVM5K\nLkkhFVH+ROU7uT37uJtdo/qmpTqevR0K7rkSzBQSl8mzJYFo1BT3AsFBl7VK\n0FgyxQ9jYubjaji7TyaBKHLPt82UMuK59ewGgbQLJXtv1rthQwfOZfHFd6Fk\nGrn/A3RmMseDSiW4hcRASQh9WbQn+P816ppTFgki9JwmC6F9wzg6vTDRow0i\ntfXQCBf/yx6n8yFjeAgWWLo9UI23xaq61JPmlnwCqXQwaWJpCq3gPgaDC2Xz\nFIasP27Idrta2Jha6hThY3M8FrhhIjliCEvzEfVQMFsUZq3ZfHXwrEee4rvZ\n6jATELI5b4cv9YmNoWt0xCT/ciDKBLGzMgcfxOd3m/Se/eiEpxSq2zKPDStx\nLNwUdAGRlPdwqjwjYAB9cWhXPfDDqO9aGcO/XKt/wNshSHnTeocG5HXg3No1\n6M8PWFp0Gexn+Slu/exatnZPm3QTQbsvfUGEVU6oESipNjREdsrxz6apwMhm\nZLGz2kItXg/Nt/36cwF5ItSr1Txg0Pt/jJdPiCAwPhfd8KiG+hyLQgB9AKP3\nLoHy\r\n=/FtL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCX6heTlL2uID725Sw2Nk2zy+2P4EiDW49472oukNodKAIhAPFYFahgLWMO5FgWzt17q3h0ku/MlYAyu3okfp+aOEDM"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.2_1600987639756_0.304190157876953"},"_hasShrinkwrap":false},"1.4.0-next.1601063652513":{"name":"playwright","version":"1.4.0-next.1601063652513","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601063652513","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6YAPgx7Zt2RsRQ9tJd75sNQXABT8qVOm+aczo9gET5h6FIQ6BmYmzMUdNJ4JICYLnlnb5DFBtcFgQZudP3Ti6g==","shasum":"0bb8b830f98f23a799c6d483abebf5387fe52e0a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601063652513.tgz","fileCount":167,"unpackedSize":18854450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbkrzCRA9TVsSAnZWagAA/d8P/RlsAWb9kqU+Lt+SV6Tb\nmEW3/CA730AE49abnhbvrk2XnoK9lieS+mWjkr/naPXaZ3yl2PKy85qA7FaE\n6bOkMAMpUPtOXnv03E0v55IckDWgzwmGguuI1nP47DIbaOxO30WcFzssrYLM\nQoyYr3ciDBTJdEg80iHhDoTsEFUuj5zDdSpP7NgQ8nKPpLBh12WBrY+LhZgu\nhjixW4h/f/vSjSheI3B6LBDVgh4ByaNksCsFbeSrQRD5IeTeLMS/voYDkp3n\nDObVgGo+pKmQBeo3UZpOFHmAPR8rNvFoxeWtuATTaQzAMvD4IJ3ZHAQBB4xQ\nj+4mnPKKCnxqnxMiW0pTDek8loFr/JdKtT1bWBa7aPCrOimMrvUbUY/l47UH\nwndaOa+pSsmF5cpZ1OftPsvK2TELoShPT3+k5MdC37Bt+lZ2hQ/q5Pa9UUu+\nA+3UR+QBx8wIhUZkYtJ2WOFWuY8RfCP2onKeUSHWfzmP+AUfCHaEdexRjj8r\nbuEhoHO3Tlf0TjbhbNJI8RDQl1kfMu5YKPMz6zgrBBOjCn6naxfwKiak2Ok+\noClREKq37lAXlIXliWQSa9ugCXeq+n4ClLzu+OpJlwt0lZOMN0Jup1DOLIER\nfFkj/GCHcIEBzFrw1IMK2Of0nyBhl+XNVzeaEYxbHRmxHXJ3GrMQC65yb3mk\noo3e\r\n=Dvdh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGbQEsO/q70YkA7YwkQljWNJ23KbN5d4HuNE/0LAaGtAIhAJ9/tnFPn/aZ9dPlnSccL2B/Z+ez3eryH6DIbkig8Zlg"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601063652513_1601063666409_0.5415488536957807"},"_hasShrinkwrap":false},"1.4.0-next.1601072875676":{"name":"playwright","version":"1.4.0-next.1601072875676","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601072875676","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-T5dNfEh9r+qsf3g2fsDfgEEbH2OJ4l4wm4eN78QY01IPhr4q/uc34KOirARWT/K3mp19UD+GM3xThsMPxhX4Ew==","shasum":"130c44e82954aa46d46a45af243e1067e2bee1c2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601072875676.tgz","fileCount":167,"unpackedSize":18860157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbm75CRA9TVsSAnZWagAARz8P/2RYzb79R8I8LFPkCu5O\n6cnIuqQVUZm9Liz/j2wFE0NyJXxGlblk9d5FspfmC309TIV3S9f7VNkD9qIq\nnJnLJpOJUjctbZLed/kp/2F0/Q+mIGuxOu/f+xRq+ED00610172wbtn8DQCw\nee6iC05tEK/2uyTWSQv0AZcQ7FhCH9xl85kimhkltQD3Jk8BQl+LMVsGtO9S\nmyHQFe1zOnURbDwkeZY8jwvnQjXZneo5TR6N1+A+tWEaKIGHIhbdSLuzNmB+\nzUjDlWKAxb1K6D96Flm6T42B0VyCyvBcyhyH1AArAxzaVeq7I0Ge/HwHneH0\nVboO+Pb1MZo8D3Hio03GqFhoJLqOhwucb4/EmKaGVX4JEJCh7Xu1so2NKMSy\nabIhE9l+hPivgrgwFnD34d9Mb5T3LY6x6mMsTd3v/gdxLiREZ9pST89jBN4d\nDe4fJrv7GNWVC/kt5L164ZOlpg6TxDCI4FmRaphLbGrgOC72VxhIS6//+icH\nnr/r60X0LJXdEtDG42vMY7+Jtb98sCxGCpBqtXpaK9VXTUU2Ph7AliYugw/7\nmyV3CGeBRL6vrpO21LnOnbHKw45231W6AJLL6bW1ZaxCQxYLKtHXtW1Junk7\nDktcDyy8qn615JOe48IyWrg5tl+E1zVcsFZ0z0zZYM3jb29Sd5ZA2WwZ3NKk\ntNgv\r\n=SoI+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrzNyqIHn1+hCTm1M28lyC2cXsvNYZ+rjwPSHEoCSOWAIhAMkyjvaqmPubi2R3cjAavCoiJgrSMZJm/yUt13mREvym"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601072875676_1601072888707_0.231980181686831"},"_hasShrinkwrap":false},"1.4.0-next.1601081821882":{"name":"playwright","version":"1.4.0-next.1601081821882","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601081821882","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rTPPT9X/DaPrXnFGC8ywuSFezY/2YEjbRTNBq7lINOCOzYJympUekD0P5DBlLPkmp4CNo33+IE1e6Ng7x778tw==","shasum":"1caa9796a836fa3e666425ee93a5aac24116f3ee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601081821882.tgz","fileCount":167,"unpackedSize":18860157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbpHsCRA9TVsSAnZWagAA6RwP+wdfIigQWjOK7/6ASz4T\nBjr7l2WVn2s+o4LCBDqpnc6xsmeUciGUd7RKMk6xNM+48XXPtgfSEu50SyeH\nYQn/2HJebFlB13yFpch52oitVnLbKtD2NH5cRCEIB2vPCsFF+594qOw2D9zN\n5dkXPQfZHh/uHxNyw+JSAlL5pxuR0igtMSv4x0x2Ks3azT02z0BkxGynYILt\norq+bIjDJ4lkf/REqCzxfNCHGoai8nhNvGER9DZg9Cpz5XlJs8Mqh8+EY5Hb\noBDvPHLUxkzkNTAKiu2k4Uc4wB55FrtjR3H3rDQD6I5G75fZXvKVlCJJlBmJ\nyxZySnV24WqrioIkhalCZYlzifM1IDk59X9JJcmC4x4yrDdcWKthXcNS8MnE\nN2CK6Rm8Nt20ene3nb+F8RbpGh+GiLKmDDZLSH4cjhvgpaW6xFuYbLsnQedt\nnAHobl7//gcVid3Jv1xYC27oScieFpxo+ZiHTCEAJvAG/7N1GmKbqUUc2zwl\niqui0ZNA5VDMYR1E5wEbWGdg0O6HU4taqmqYQ2T5JVQqgMCaCE46XBMZDq3p\nBL+5TRLg1LKTsYWhTPGomIsGctrlJWerK+TzUaTPq+V9ZFiQpTEhuGLKPlIg\n2F1tpYbD/VOwlnb0SaARsCdPP6ZtYCkZmKeMTdooPnUrAXhTE9066TjshRR1\nOM+J\r\n=eaaV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFv03a/AMGwYJFpwOWCp97b0S5YkO8q6meAsVpD68VnQAiA3FB2axqG/QXCtPCtrcjvkwgNuiuuixm5A0HFxIksyHQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601081821882_1601081836156_0.3330743389953359"},"_hasShrinkwrap":false},"1.4.0-next.1601087353553":{"name":"playwright","version":"1.4.0-next.1601087353553","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601087353553","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-APikYRGYOVNWXmn9U+mSQluNt614L7mLPsIwDUk93n+Wt8uBnmn5IorVQTRVTnaGHZ0WVG89jcD6iTCvhpLTnw==","shasum":"2219d1ebd1fdd92e50b7a3111f1e72a2d1df4650","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601087353553.tgz","fileCount":167,"unpackedSize":18860157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbqeICRA9TVsSAnZWagAAcgYP/15yzkvGOGbp3Os/noox\nuq/Fz533q061XMkPRRBcirdKsZF3zQk5z3r4gbhhABtswwixm5Zqa/Ogn80b\nCze8BsMs5iWyJIX/e4PZGIFpT7W/gHazoM9JRZsUjGavd8Um507Y7i5VpgD+\nWOHIE1rX4K1NnzmL3cF+so8Zk2/79YGfIFduRKTqVsRXdlYSeVbluT0QJKJL\nigqzEG/VsBpJ+Y67qiA+8Q7x3dpVkGD+ecHqRkI5/whmKsMZ5qxlbsfv3seY\nEXzMnyIQQnao/+ZVczgufT61AJfFH8R27XCxLli8K4rlPbjAvLAE5A6/Haho\nHfFcTKlBUNABRwdKfZrLhs4az5NPMjdLYk/xLGl/6rMAyYNnn46W5++untvF\nqFbnLs7z9/9314lyE0CArykW+LZaoU2+tJoZFYg4kJKFjXFNWPgmu2GqpcaO\ngUg6bhK815Pl0sk2ss22R8l0yKxW4+XTXnshUhvczIzLXX6n9iJTYHZRrVJ+\npucLSE39ndHrHgiTs+gIS7rd6W6Dcg1G9aVvcw54YsUp9BvvrFEmgekDDrvz\nKTwPUM3yag/y8xgmsszu9thfo8GDEKa9Ib0lkrDp2UcwhdIWDnndj4q2KbRB\nMqa538XZLdbCC3QBBS/pEzBaMrbfL96gT4ddLceW4mNjTEyP1fu26/0UmOpL\nFfDn\r\n=TbbP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIvGRrF497dQLxfl8rQhHNdPzwLExbxueTD6/fBAV24wIhAMbtrZIjEruTPzzQX/k5XyZwkBIj9k6GfdY2OoG+d7CU"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601087353553_1601087367868_0.48583611079237654"},"_hasShrinkwrap":false},"1.4.0-next.1601095558784":{"name":"playwright","version":"1.4.0-next.1601095558784","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601095558784","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dQVBIfdgdtsNBaCitkI20rzqroZXeYoXCv1YQcWIKiWdIJmF0Y+LPxPsKVzqIUcVkm82cc7ovJSa03zPyu7C0Q==","shasum":"a92cc2495f06de2f05c02320ba3c53337a9a2397","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601095558784.tgz","fileCount":167,"unpackedSize":18860157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbseiCRA9TVsSAnZWagAAk+0P/2SYnZicD3B1ZG2hs1P6\nkdkGkr57By8QCsHgfgxDP3PjVEUCsN1WEDcDL3ReSUvycz7WVy7hJ+6vYvk8\nUamSg/K7V2A4tFcUZusvaRv3Xc+oLlAACRUPd8mUEDkruSTTF3TzGb+mmoeL\nbfAa2F5YMhzxG++fcB/wvm9lO+Jdvp3RmuhAf4kwPCX1pNHArJNyk0x9m645\nAArn9CU0J0srOqtzR0ZBOgI5Bj/xVSpMn5Vzh3w+d7y2FlprlxFmSN8WSeG/\neFZYYnRn5wkN800zggwrDMpUegi8dlFQ+mfF7CarG585WoEQ6NoC6OW1OJIW\nyAOilLLRI1ymEDLmOy5el5zv0CJDUSIkCCUGVygqU1f0JbxvXSV5gtGcbGgi\nJUc3adjlAjjPji9wv4UsvSlGpbP3lGJFhuCzicw1OEGCGKIDixNX2uuE3BfD\ndTBQneHiWtAVsovOUUvSuFR/89opr1eMRDmxAkEBrbnwMbqyBY+gdcQCkbuw\nXNuNOdejOyiOxfsRcKP4MQQMit4uJhVKRhUyJ8RCtma1JRei2tf54EqnF5Vu\n917ivwO+P3U7Lvx9K7WKC7j6MkqNgMBhckB4U0VO/qyh2Vy6s1d5Kt6l7FO7\nNN3WlTeoGDsdSiY4PVXQSZ5IIAH2+SJcTJ7it9kxbmCOlhe+kWA2Ru5YkN8k\nxNuq\r\n=CHXe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFXyCGy3cTUgwvUkHHSRJNpWiJZ+WkdHt69GzvyQPLNfAiBRqtgtILU/yxlJoqylQBekZmZapwqqkTh5Ny+3zP/QpQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601095558784_1601095572173_0.9867733890096255"},"_hasShrinkwrap":false},"1.4.0-next.1601101957744":{"name":"playwright","version":"1.4.0-next.1601101957744","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601101957744","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JTQViAFToPI9Nhl+xjhglhZnWiuryxtgn/y3HIOTf3HuGfvpwUyZIKoIEIUCJP3NX602fuaFOvqAO7ZK7jksYw==","shasum":"335d6a26b40563029b8f4051538c777074d2f7e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601101957744.tgz","fileCount":167,"unpackedSize":18860157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbuCSCRA9TVsSAnZWagAA9hQP/iJwhFqEDwfYiUCUWSRr\nt+2zX1kTrO3pCKjYQdQpOGAf07OyqYq8dlpzWM9tHuKXFExIdDnaf/esd+tX\nlXHp2/soiJDqv4Xr3CQTohaRWA9Hh6urFtjpMukqgC4klAbmy78PfPui38yN\nldNgS1FCeqyV9jUk4cHnObNGlaEuY12nP17l7CnN1fglJPMJcZp6/xqWZfaN\nWRblND1/d34YfsLCG6C+j41/whz6L6GFIBkAq0W6ZLhQYaewFCdngc4mkuEu\npvDDk6H3/PpinMD8FFdtCZRjuGWIAym4WxN+VPaaOPmSE8dgmji873Lbgn3B\nF4NO3lZ6DoBPRTu+Y3oZQNze60L/pIDsUc6WRtxbGvt4yv4/ys57G6Npjsf9\nvfQhTtRqOThZymYWEMEoojkaqwaAKqik6lqr+FqIOWEgqhzl3exjWS5Zn1H3\ndmIfASBJ35xULwcQKmVNnJkOBbQrNbrKrTov7EZeVA3Oa2iH8bIMWaqNa1iD\nvX3In3aeA5aApDMgUSuE22jkWeTP9ZvBwJsT2hv8dwEKQ8kSfvJP5IJZhh2Y\nHYK8N2qzJ1Kpv6+j0GCfU6syiXVgSBH/jTpHWZR77CsIXyWaDK+8FFa0EWDA\nfknUKSXRjNbXWOhsdPoLDnXa123d/LiDB80Ji9UjgAQRZokFTIoajrjBjvk6\n+AFg\r\n=yvSG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEcJ9H5soJGg0a1oSgS9kyx9eEzezdn/cUFSW+AFcYVbAiEAlA4EgDPBFDLzRpNvq/HzwRZZCWaRYvh5DjKbGoxzxIU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601101957744_1601101969836_0.7740776243848053"},"_hasShrinkwrap":false},"1.4.0-next.1601143302536":{"name":"playwright","version":"1.4.0-next.1601143302536","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601143302536","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-m47xHzgMH08swzHYmkhD1SKQSasTiNvwM747Otz7CrLu5J5RkS6O0J/cD64Ropd65WtBTWsls7Kc0nN4UZCmRg==","shasum":"5880aba50240f48d82bb1d02271e75b0e46ebf98","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601143302536.tgz","fileCount":167,"unpackedSize":18860157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfb4IWCRA9TVsSAnZWagAAE3cQAJxEgwin+tnlH+Y+PwRS\nO51GhiKLreQNLbyFs71Pq7ZsiYmlmzp/PnyBZhnM/dWQdKHB1XUWv1acZnYE\ntcazytwzhA5do2N9U+YniECOjGCQjALT0oDssX+3Od/aj/TZrhQcN3aFr7CF\nBb8pKEeMOdV0DEKXRMQepLbxp8O6csxeLYNMWNrOhocN+/U6D2dHLbKM+WKw\nI6iNmFatGcdEKK7cE8KI+MMwhxwyf5tR5XBl1zylFzTxDxvRmDFOhsYLDdvZ\noLsDTnWjqSJ8skcOX83P9fXqX8Y/FIglkAQJexyc8Mu3o4JtwiF2hXPnHnIi\nxJSZIEQjiLgqGt2TNjKXg/uOJVRimSR9bHqcOsd2X0xSTNQoFfPoKueLXhVG\n4DDITZykrs9GRalzwCXiq3j0Fn3ZFxikCEAfjKqVyYgNMHroPKfZb5rfRkTQ\nXZgfE1iy7NDoHxiw8tAjBoEhestnZgVqRIo5jNcbfUl9wsLBAdIi+Gg7Vajw\nXAyOAl9ozBw1cjLvn7olaaDxLxdlXi5wOWPHbuCy136H6g5VC5EtzwPbrEqY\n7pTOB+9UBoJwuf6Fv6HWNQYT+P52ovjhoY6iGFKJmGhbcZnYhdPjTBVQA801\nUZ0AwxinHOc1ZWELB03Offn62RALIwqjKll7KRQTrBpeR88u08drWard02LK\ns2KQ\r\n=a823\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSKMQ01jm0X9SW6/kha5skuQ6eEfzHsmpNVEn9THUoCAiAyYf4UGS58fib8iXqAYC5AMPbXofYEMgXDfm9rzZ6Dzw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601143302536_1601143317747_0.7567161918711425"},"_hasShrinkwrap":false},"1.4.0-next.1601155092514":{"name":"playwright","version":"1.4.0-next.1601155092514","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601155092514","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-sk8rKtrUjqjnAX1Q2NTIugeFj33KQFt3isNnxzIqqNrIVPZg6C+lLNK3tB/bwqdyci2mFTvpYD0+qwZUSs+UMg==","shasum":"9c502e62f1c947c226b07021bbe49cbeddbbf068","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601155092514.tgz","fileCount":167,"unpackedSize":18860157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfb7AhCRA9TVsSAnZWagAA9WsP/0dzDHhquzC71SyzfcMD\nrbqHiMLbVqJcH1GMemom8hCUlKcCjzrNZAoGlV47guS6HmtgaA7kMV/vaAok\niD7w4tFGrnqIXWk+02R2NtbzscktJZbxXFqEHrE0qRQpMdUG5N5Is6IxtU+/\n1SDcrN/0otRWVMDO6O8opRZGuiiFtU3dYUVAQjFh9kyEuDvWtOWsl01gnyru\ne//XnjyyMJHs0+ztz+wUoiikh8erB+CQ6Fs6HiL6A74q9U5Ae5wEaWj2YPde\n28ee0kcNe6T75zKmXTcyp0skXYwJxFs/OR0wAqBWUNV/DVZsZ26x7slq3fHE\nK/9V3nkJ1MxpIuvobyXJB8t7IBdIr+0HCRkWuT/7gKgVjNd1oQSKqWqO2Abg\nj4jjT1kDlnQRODxuPaZ43Xdq8U6Wcen/ekOJMhdW6LFIAOvX/UuGXuV69Hzz\nDEDY49CtKrBhL89fVhVyxerUxRF6clZG7plXFKE8IHIxqYih6Qi1TqnSyQZR\nRdGHw/jcq9jbILPefZ5EYTO/eupmT0rTjgIYaPcbsDeMyjkVDD6XtmpG/X5d\nqI4XElGZh8mgDrm4aUg1OMezWgBqrPhAlsPaPJ5RrmTlPRKggwK24pRd3Cq4\nFFJOTajQURZGZVFSvyt57TJDFCcBn6bBP0/fN8dS9/5h38ql2NbFZQ0KfJ0j\nRseq\r\n=i+lQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOfAzgsZwZ8rWDkWRPZ7T/OTqJlFml6MK21G8PQKtxmAiEAyLZLZDdx93ce454+tHlJxB/zbq9csbc+7V1WqgOW7pg="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601155092514_1601155104847_0.6236947697611506"},"_hasShrinkwrap":false},"1.4.0-next.1601161680085":{"name":"playwright","version":"1.4.0-next.1601161680085","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601161680085","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-IpBNNG8vPVjm5SeGzzwCrz2aMv1K8KMyUvEsAYJnkDOwgOIVECtdJkM6WZmvIjw2bxS+QxHsX7mA9y42C1B+Qg==","shasum":"5fa96ce14f899e147883f5190932635d22092663","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601161680085.tgz","fileCount":167,"unpackedSize":18860157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfb8ngCRA9TVsSAnZWagAAY5sP/2oK6zdz4w4TkjPZj8ff\naBPgt/mDjQMPBvytJZ1eO+YfyN83xJBfGqAJB4MusazrMBCGFeeS9TmaU3/q\nLDmpvhCyo6KTT0X3U4O8GicURebLyxUQjkN55V/TKotiRGKlndEe5ObaFkXK\nkWpwYI7Qxpv0Un+iuvGjnM/zaeNDlmnHDpInfWzgWb4crgST9O1iSdZBUePU\ncFYyCUHlS3IFGwcRxOZk6ypZg6bFBvuHTd1xSB1+aaAbUoSdlSRWijTP6MhL\nB0kPjkgMDOd/wE/TzORFrt3xdnXBz8NU26ODGPrOuaggMw5GTEQ5EHI8eZdE\nyEItCDQxRaYkeEIcnwb2AmDBNVcNtoXrO83AAw+WahQJ9nBTaNaG/X/7UxYZ\nKWeB948Xrb5Y9aR+2rOplZVqkJkwierEfJ4uWCw4ZHQAeMYeQu2SRXUp6Ip4\nBjMm3dnRmjQtyxN+lYh9fG3b+GZDp5gGkSwR/pw4+fLHPQbTnLeQupMvl/wU\nlx1Rd02J1ZXwT6XyAHEwCZIbxvyqwue3S21xios9ZzAgWqNnMOZNEh+FPVhl\nZJkrNPRy9Xzego/Xpfe5H4brvL1hVWEi7Kfly8S0yAveva3d512iS6RB00MT\nR032VD/yhbmmkyPBgEwN9OuBXAXVO0sS+B3JMjailT0LRy8wxS4gJmVkJe4g\n2pz8\r\n=qWUU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDvOqyo5zV6KVaw3a21kxFBiJkaokk1h3owNOaBe568wIgf8NE1PETtsia41DvtxvWZBvegoE580XasY+o9OYmnfQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601161680085_1601161695358_0.38402946238458635"},"_hasShrinkwrap":false},"1.4.0-next.1601400749790":{"name":"playwright","version":"1.4.0-next.1601400749790","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601400749790","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-irx0NYQQWZAdnqk4CDfnCjt8HLpju+X+HXGgjRDDokVe8P765+tHwZdPSy/rl13ki9D+hnJNngnwke3p0gp83w==","shasum":"fba51f7158e7918dad864c365d7ff3ed46f95fdc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601400749790.tgz","fileCount":167,"unpackedSize":18860720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc2+8CRA9TVsSAnZWagAAxe4P/iIy3DTd2l1YCdDnobHT\ndd/1d76RAHj1MeFo59S7v4R4/cdVgbO8Y7B5JglRXkTKZ5dp+6Q6mT68pfEu\n98WhiJyVP1vdyW7bV+aOd8y+rkYEuxiXasiUlvKEC3B5lBJ8Ug3JnilS31D/\n/Ip6xEP4hbIYpmzA1NBaqxyEnQAJxm4nlemXC9McYwtvn+Enn6YUjPJqiH5r\n7MJFFPv/Z/KF0EVxNTI3oJLz8UIYRF/mshhLnkHOM6h4FRQsNfKlPeUJdGwC\nAuYrbc8WREqbNqPMeLYnUVpMP7HmIORt0Ug4uIHpZhkOzYsq/spFO3NdwBLz\nzYh/dBNCQGc7exAcYVEr9gtO9Sy9x53Ttjkuu/pbBIIR5bGlyUIWjl0yZeOz\nTOSJmMNobk909/gawGO0GuSmqHudUkwzu94tu+P9NefkQM2+mruJHVKEnw5r\nPly34gBzSS/VFkHlD69nHhFnCvrS0Itk2jMHB5ur4V233VaCvmrdPp2rtviR\n4ymJlJyFVeL6iPADFvacmlE1aYjfwRAew2opH4nFRSKRMzItjhs0orcyJQ78\neKiwfbE9LQALI+nVs4hdkSASeF0sc08xJaFrgUROe051AcLKaSCjbeda+1Sn\nVCifUa+Tlh3b1fbDd4vC6IXxCfxRYA2pCm5flzI/P0KO68r/PXZhHV0kEwZf\n4syh\r\n=uxLW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQMAJVjpXhiAjKF7YUD8X9Rz54L9CJDCdOgqs69haKCgIgXe6vBuPt+yWm2UuK9ZpyCJYFHOM4McB1vJdP4b6+Kl0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601400749790_1601400763709_0.861946306553204"},"_hasShrinkwrap":false},"1.4.0-next.1601403890556":{"name":"playwright","version":"1.4.0-next.1601403890556","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601403890556","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dHjuhP4UJHEL+XYLf4XRKbEfDa2ahJcUlbtLeTZaXwTgBHvqwpVm5Z1R+HLbVqxghB+E/qzRIwmppM7CYL0UNw==","shasum":"6c08a4bd395449652332b39be1862608002aa3e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601403890556.tgz","fileCount":167,"unpackedSize":18860720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc3wBCRA9TVsSAnZWagAAmn8QAKQe+qUNhMz7+ctr9iaf\nZQtYg35COBLFOJO8CtItkD63csNO9PH+POIYF85or3QsJCRvldVFOF9M97rW\n+ctfjfcgUEA+y4Egq86d1MqnHhSPQTqYe8ANbsqRM30c191DBhryToZue+p8\n8ZWSI8p83Yzu80zZ+t/vBMunUEOxWfPMhxJIMwEo0NyxIvssvRBPlDh8ZIFh\nkpOAm54CsD89PmHf3B0zm7LMoCHacUJXjLFjcEukKdOLIwFalQQvMFfLGcrE\n9MtHgRZek6LH/70RwJaQQALIrw+qzlCuQ3/8OFulBELuEhi0r9aPHHT/W01Q\n7kW7QdhJgfBiqJQfP34rsDaUOyEzVOMit005pOirvyXt5O4TLIDl1daFN2Mc\n3sNMs1LEsKV4VZU2NjhcxudumkBf+8blgkIr5D3pDYS/tW3xdMM3VzwQ5o2F\ny02iEeh6VzaDjPhfALhA3Kl+ebYXz5JHHQYsQWNhsb073ECIuiU23nZ+dNB0\nKJ6uhttdOZ670Om1Nb2QJ+Yri9Aksw4v6y28jgRMoRz9rRJjgT5QBOcP05nW\nXl00E56H6jGcdQ8e+FJY5byoOtHrEY9O6tDDh8kZngrsZ3zShXdLf6GcGv8x\n85GaKM1U/rWSMbc0jgQZhMQFmHMqUW2a4KTClTFA3uW96936gMNiWms5xYjN\nKbff\r\n=7FU0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDj7vbhJZ60nt0x6JHxSPjjkyiqD63WAD009h33hW3RAiBlxncH8aMnxL9nRS8Tz1bC8TyyjyMI+LjNovkcd/IPvw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601403890556_1601403904550_0.1145779314336759"},"_hasShrinkwrap":false},"1.4.0-next.1601405607548":{"name":"playwright","version":"1.4.0-next.1601405607548","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601405607548","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kOGCVNUO8FcMoKQGpMad1d/rasRFXfEtHxiAP8YZZN/fY8dSQWroPoBIPZkQR7F1GDlqhb50g3L3OAWN/pVNJA==","shasum":"3f9c4e53ac77966935412e85963ccd67b9c68367","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601405607548.tgz","fileCount":167,"unpackedSize":18860883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc4K2CRA9TVsSAnZWagAAQnwP/3SZP5QSLtUDuQf4bQyW\nLpObPoMzPc5Ux/LLHJBEuf1zEbGtTK37/qQr57Aa4sadSG/uS8dIMDfc175G\nOu1hjx04oBGMEm1wN7DejKKLwN+/QfFc+o6xTBTBJeB/HsxGWijcOuHKd1Iv\nNN3nRI2+sZn/f3JJ7iEvR5LcKe9x5uVliijuu6vwTPtUi06qCMUDHY851j4h\nq9lcrA347tbcb3BcTMP1fg+78EEaiBimI4BX/2NtDKRF0MU4/iN6Ny3UJUhp\n/bth1CBmgN3g7raPuhpoy9vJ8bpN+MFTPx5i4T+cvrEPLC8ZQQxX+58wk2pk\nbhqIoETqmY9M5WM6X40A0EZkhAq8ZzOU6ZGAZ8HoB2FgeyoVPX5nygAvGEfF\nBL3ogUjNaKNQ8PnanPJBs7XICYiZzyLFkge3wKaHzKlPItaxa/lTD747cqCv\nUnhIlbpLypDWktVWREicL0Y0vF7yTNEHrPUUbWXMQnSVJxnvuWYZGrYU5rKQ\nkFhsp76uIKmj1kMTseypjEw+kK9Q5hHFzuND7dYF72APaHKqV+QFfYybbQvm\n+T+fzpqg56UyjVsfkakayfuGs4IkwJbPngrA6VLyrwVQAv399CD3Iu1TEARJ\nh5p3k5LXYgrKOckJ8snH7yhXaGaTlhnwvmsokQ4ox2hsOkgqgMyvM87TDfj8\nG4VP\r\n=OnQO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ6rVZIYDwgQxV9orQTriNS0RFln5aNVB15g5FCFxn4wIgB39wswXQ5C2FP9F3JMfhFsL/syXMKiGeYtyeaUQjhvE="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601405607548_1601405621325_0.28774378783694443"},"_hasShrinkwrap":false},"1.4.0-next.1601413195500":{"name":"playwright","version":"1.4.0-next.1601413195500","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601413195500","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1HHwFDHf9aBkVn+TOtYaaStMDcrZaae0i5QuAMBgSo6+G0CYr2lbmeRypRjMe1fPeBI+AsilkV+RNscON+DKPg==","shasum":"48babfc9d5d98e244e4a747e7bc32258995b0f11","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601413195500.tgz","fileCount":166,"unpackedSize":18578746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc6BaCRA9TVsSAnZWagAAUGoP/RYczzF59M+9L66BLWdM\nwNRMKU80p6WZU9mJrf8WFV+BDepVRwSId1d0catBHiPKryGnt4OVmIk6ALhm\nUS0sIZ3w6nNVdPTidWa94D4NLFzzh8hPXaWgWg/Ug0tsQo3C7suc2fKhtTdC\nHn4Q9gSmH4Coyur8aESNxPcX9IGLKrbFpmR2uA0WEhcFHQ0KFa6A3Kj9ETlP\nslygDxwSyZVijmxBmuCdSXDtR54L6GwC0aKAkoFjupK7syMvBs4QqzKrFDUa\n5QZciHzn+JvDa0BW+A4Rc3071PwugR5bFkEUAtaIjd9F+PTd9OQQuZexwTBF\nQian47kBTczKIR5opsLCK8lDR9McmZJ7ascGpFltQaABw+dJnz4FPWSGgLwB\ngLR+LDmzS6k+lmQkz+1g13W7ycxsbQwZ5g2RjXof6HQCZ5W3BX6LJP6D0Ddn\ngBbzksZ5F6LuuXn3UkSBhuNEu8E/wjebwWRwLE4YxjBfO6ggBO0Bp9lbpRoq\nR3l270pxmmDjs7z6lEKpdo5KzoHB5SDCehjJwzXMw5gTwewOoGhq45kAhtbI\nwGfhV7oEAUNq5mjL6EpehM0DnG+jLKW3yjta3Rc0P+2Rg5oUwUsgwjqV5ZHJ\nSoiTcrB29du1i68sMKJX7woQjqc+IYd3xPFb+b7l8xwl4uwCxYCjuOnMLrbv\nzCY1\r\n=Vf3a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+NFfdZZ8MuoybSLY1E6WRSu5+szD4ZM6i1TdzZEnAXAiEAv1BnOqag4yB9LWBHrUsULEI6D2q6jplcXwa1OiJEkVo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601413195500_1601413209984_0.4826461873150478"},"_hasShrinkwrap":false},"1.4.0-next.1601427776394":{"name":"playwright","version":"1.4.0-next.1601427776394","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601427776394","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-R8jg/LdTkekRlkya6Sovu9lQPeGd0vn8/1nH4eWL8RESOLHHHFbePr1O5aFRNZvbpZ/YIjR5m8qD6l8MtIb0gg==","shasum":"b0e846f192904a29198bfbdb97ae169c7994fda9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601427776394.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc9lNCRA9TVsSAnZWagAAuoEP/1WSy7DgkJan/Nclj/Ov\nwe4JOZHWyUeCzbLgJNtOXks94ZXgIXeOD4i5HJ1YOMWKAYy2iEOfs0+eji7S\nnrFaH/jj1EVjPGv+Z4MuZDLufVdCA5Wjn0jXjBtAaQDhSgNeZvg2SL6R1KfE\nfkCH/DBwJWorS/CKDhiAevVMXV/tyekzO1ldczeXeNuMZ4aRbA3oNggJf29T\nZJljOTJvB/sqCdEK4Xx1D1hcA2bl/QWkQqMTpuZUpOUeWZBilYYsHHZphmvZ\nMvsCglBrJGK6d6qfZ5zyd5AJaev3XM9RG3Ace4gbepYzfP3F/oz3rPVkTVkM\nS5+mHsAnn61XUzwigb2BauUOyFmt7RLmxhno58PG+AhmNVGpRoaBuvaHpSFX\nAY2+rYzTUAs4dGH04jgtbmGKMeASl3uKfozTCWspOLScXvXJ6A4u3v0GSNDb\nk68+YZx2wAs7Ua01HmQZxzQZYd1dAIo6CB3udEGPbVvcRM57JByOqOUoGpEl\nk+ysIYrai1768V7+H/xXtRVXCbIW2/RkAUbaqDiSRc3sV333vqzDXrBngE4a\nmnQbYUMfKMUEnMZcN01e8wmbHSGnWJH/H86zxVuxdlk6LqPbVIDaQbeYaZVn\nruIzPSHkaZvMo0/l5MnPXBCxtLuoAncvQQiiLudPvqGKqDeFLnfRT70LIHUT\nQe9+\r\n=HjgV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDyYQ/127h4TiFY9ozyKNz4u/OS6AR2ax+XW91r/hGfAiEA0t2fYv+CCP+ZLBu0NDefRLMLEvzDQzfGAErep3uu4Ag="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601427776394_1601427788658_0.4907072034799942"},"_hasShrinkwrap":false},"1.4.0-next.1601430876747":{"name":"playwright","version":"1.4.0-next.1601430876747","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601430876747","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xYOimjhLDpsFSmuFd2i+WyciUoEjysSipHp4J6uookGySxBUh5c0qriLMRWbF0Mlc/CGpkoGoTI7+ReM4lI7rg==","shasum":"d2bbf321433b713574e553911c286ffe797c22a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601430876747.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc+VsCRA9TVsSAnZWagAA8kwP/2gUfFmnMdsdVqkUG7Kr\n2iNa0vmtc3O3ucgXwxpYqtz/GqIJufiRKT8IaBiIP1vulSFYqKbatnCfW0NB\n+5qu8DCmHwU3XqeXMZyMwhefDK+uP48IcN2DkCT1WTgmC2Y0kHmDSTMOcM/U\nH97L5JwDCoCAIvt2c1WqLVIidY49IlRulEGrTU24v5jvtIWa+MCdgNd/A2Qv\n743O1p+LY5j7bhWWcxHVAngefGNkU0fzKeXsZLP5ekRO3sWwD0HF8pHlOHyV\nwwEqMqgzHPfiLStvA9ytaNsVx/SFgOXfZv/njxhkmQZSaJxBpiDvq1zY5cR/\nW16hfNBBmdx34hkHFTAMIWJiaLtQ6onT7b576Kh0qvmAmAXvPf/UM+Dh68c5\nwFB4rD7hR/XfIFF5ZHH26+5OqxZkHb7u6xNyKsXzrdYPqkmzV9DKw6ulXMcR\n+plarmU4CC7gq7ale78lsne/vJL2YqdwP2e2bIPKe9dZ8grDx3mTRAxuYszv\naToN6Xadq5XY+/bK2nIfPtOR34EYmqmH48UOtAyziVAsxE81X6G/rB1EQvj0\nJOfMpUnDEcUKEc0DJmMGbTpzQKVWi+dMQU6pGL561EOBZkPkb2qlgLJuc+W6\nvpmxoCxBhRZNhyMZt1d+QH+kSWL67ch6bsJBWEBd6uyxB369emexjMu8f6mY\nDiIm\r\n=fejn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfMPMU8seMGxQal133zeC3X3VE/QI5M69Wj1a/CCHu/AIgW6BI7NeCezO1Y/3GaTZWmgL2xv6f16O2nXa7gw/1/kU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601430876747_1601430891866_0.7463312528380908"},"_hasShrinkwrap":false},"1.4.0-next.1601438955515":{"name":"playwright","version":"1.4.0-next.1601438955515","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601438955515","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PGuekp8kyeO1IxF3AELO5uDL/EyloYB3mbte/OgEckeuUUvsRtM1eEWFe/tltWA6vnLANxpx6rwHyk1idI/O6A==","shasum":"cb57cd0971f662ce7b3858fc50bcac5c3aa9c260","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601438955515.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdAT5CRA9TVsSAnZWagAAvSEP/2E7E4XRZWbYNXDc3v4F\n2D+6fbQgjW5IyKriMy2WdBWtlgTvnx6W/ogxKH03WsoE0aXHfSmhggZPKlMD\nAIJBf9saAarBSfTKEsIgA1t/Bv57+qhjxlAMm2FytwdPjVGIbe4XjNg8YqxM\nS2r/YkfE7dnKi9gfIG28F2SOR8pdf9tifPq37S+onHYnd8SFXR7FttUMv/pO\nEa2Ecb8bIgeQrkM+6dJB8BHcjv/sW2Eptkr7mY270Bkc7GprllOgjwwX4q8S\nSaTxjvfOblTIxTJXHcDNWlgVRWKGRvGm6n3Zd+FBAFUxaYKCoaGV77gJAwqK\n4B0hp0TqrMD4JpNQ3CWkUImXC5fBJgXLiugHB6dtK+3A40xXNgSw74XFFLe7\nbsvF4RK2kR9F07MRVDe4UBPf7dWJySpunS7GOAVV87YHaygkk+i/X8si3CbX\nThybnBYslZx9Hf11WpAmGc0jSF+wIn/D9KNpAWnx+iiVEBzAiFflsn8RQptT\nzAYhi4q3TI3Xw3LWjT1XWyXwBWCyRORYlaZiJ6jC/1dhUGmQNB+7HB+u3ntC\nBWbCY/8hpkAbGcplcUDC+uw/feYuESZKX9SxXxtBcfmvwN9CImt6vcr0nUuJ\nxrmjMLcS6BZBxdYch4PYxzYiHfmBbL6vTeeQSfP/TNj8ZaSfnsJnneAn/hGV\nF2cQ\r\n=YApu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDrQ6edMzn4ntGUGn2fie6HJLM2cDwH157ChaPh4lr1oAiEAzgcYQ1JMN4hQq0ISjsZoUif3Qks20DWaa9W71EjoVQA="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601438955515_1601438969019_0.8939281253180762"},"_hasShrinkwrap":false},"1.4.0-next.1601451522748":{"name":"playwright","version":"1.4.0-next.1601451522748","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601451522748","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-i6wR0JMEeyhlYNc0mpGxSX9/2eaJsC0HlIWAJcUwb9zuQup3191sFRnivJ+SGxruKTKI812LXfBShTU5LaYvYw==","shasum":"4b698495d4b697794ecd292efbeb6440046f3b13","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601451522748.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdDYSCRA9TVsSAnZWagAA6e8QAJQVfa0AmdNzoaexQc5n\n8nSpXbNqG72KjaDkRe9AZ/2FqHez41NfROBpsceZcp1If2GHv8MrljNcPncT\ng8/WBAIGkQP41PQdN1F2PtD1lSHisW9Slla6KZ1bJU4Rer4HeQE9MaIPqkSf\nTHs/sC5JLwxDNSEDBzQo6UjhtUO2fXoWcBqlXLDducXnwXc6Obdo1al/O4fh\n+ugZkYxGeJU65S6HcykthzI/t4Z59Bi28+gUYUUwti5jAJuqPyUivlrCzBue\nwkI4GUQlJx7rHNFN0zCcZLRpzLJ8o8psDjfKtF7hxOvUkwRxK7v8htupsGY0\nLEHSgn+hVdyrEgFxwmzrqGlyiSj/Uk/n+1s6CM9EhEf7wd9g8qYh3ToLWrOo\n/yJiVevVoPmktr0jTPpwi77OA7zhR+0LFYZ+jUDmCM2mYkNSPe9Cc89j93DF\nUmx3nMvqBkbH3WzoMcjOGtHMdWY7S2EXznwfNHFGSBntNmclSDAsYOf+wU7h\nee2BX4mqh91uFV9yVOjptJHqi9GvAbYouTNnVWUfzaM5bF3aKhJ++MRDQYZV\njB7KqF48OnpUWTNY0cW9Vo4cHTEUuZ6QWK2jgKmZHT+vFcVXoBBVpZdhjTmq\n107IA6NcvWCoriFMlpRFksS7YwscfUBhBawA9uRqn1EBqpD4KtqFG1IHUYrW\nfsCn\r\n=luk1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCf6ucr0k6t6IbdcpusbHPvCm2u/DJDBk5YanF6dJDAxwIgN7C8+bDcB0AP3WqBo9yyU7MycQBkcasFyZxeGlGqeRk="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601451522748_1601451537253_0.1784397932966153"},"_hasShrinkwrap":false},"1.4.0-next.1601457206825":{"name":"playwright","version":"1.4.0-next.1601457206825","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601457206825","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vKofmwm6546xyGLk1vQ3P2oyXHRwk5isVK369CNLIC1xa+PdqeBiOvaAgHrIX6UecGiUc8EDb7wsIVSs4wFaLQ==","shasum":"2f237b698460b0ce0b1d7b26d2cae112f8223094","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601457206825.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdExFCRA9TVsSAnZWagAAPikP/iuJj3f+xgvNjW/efvYY\nPhS7F2ooqAUM47XC32MBNtk6D5UWwmYwCoFUA2YkNdTbzOVuXkTcWzPuIu1L\nmk1vtjPJgxXIB6qfHk/EHbaN4kmWOy0ul/8dBZ9igd5ULpQDYnPpS1Kv0X+x\nUN3k7Z2+ssx9IMAtML9CbUU0mkaJKvIbcln44BpJEJx/6J0WLOVl2zRSqidb\nZhOe1JfEx66hmGabGxANkY20DcGdr7jSXiif56mZMs33ng4ru2VvkDIjyu0a\nLFLwF7LM2emSfdbw0snJ8uNGg9eKsancEzE1uXIOWAMQBttFYzrmx9oqn8df\nEE8mX7OOGmmvfWzKVcB2aVNL9ygUXY/C1pu15JLhOL3tcrppjN0CFZJJ1iKM\nMijGUlO9hIv+v1joyXkSvkpByFcVNHnm7BGw5aBhpwo8WC9XjVou0w6j6LYd\nifiwqBrpjpJUwWLpirWR8g1PthtIShPXZRdLymrFeA8rJ1BZkoIuzDnHFeRT\n9fLkLJEqa4aPKoyhPDd+PDvClanOOWxjn/bJFz95y2/3ELLBtEK0+N3C4q4G\nopEIyU3+PLYKhwjs1ExxTpeRFQ7ZoAO5a1pzKLItZQv4Whk2H9Gwggswi6r7\nsizvSSgyc9lD80iD9huC6XrN7TIQWou8dLduFwd6Jy4slQRLRAFa00k+v2VB\nDI2j\r\n=37uG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnbB7FPYCbqTMf3aE0BtiHCZ0laStplaXxuJES5vmxGgIgHvfOU6r3PdfQOV4YWlEcVHJ4lSjTFgiPctPBky3bM58="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601457206825_1601457221122_0.0729645504892873"},"_hasShrinkwrap":false},"1.4.0-next.1601464586909":{"name":"playwright","version":"1.4.0-next.1601464586909","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601464586909","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-FfwZCr05/1GElLxgEk64KcQ9keixl48yEJH/W0tjRl08YjIAc0uD3aDbpRg5C6svPfCOmJr13WHv3EQ1Es2pZw==","shasum":"f5f65b092217546dd93e1cfd2e3d81ce73e99df6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601464586909.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdGkaCRA9TVsSAnZWagAA+4YP/RHQrQ7PVU7WrYAqjs7I\n8eS3ewkYP0QEXk4pFT1nU+McPfD8A/GtbKiBcpDXpG5EordAbIVnmaJrRr5b\nUPCbcIRRCrKg1745NnXPExXUVYhloymYcVQcJ8x4PextMx2ZiL9HuzVSuNB1\njfJEI7PsdrOUKV1HMFkXPc2WebDx5dKPsTN6ayAvPptXqnfg/9Lo3M/jQBOt\nzS+u9uZKa27Uvvv/JKd4RqJlDG0MWJgkHzGWCvFgfWuTp6XDw1AIvn5fsHx0\nzNraDGRAZ+f2cRL/Q6I2EaRn7I1U9794ms9nwyoz4lbzz70uMbhQMOYcyNHu\n8Rx+iszmhJvCyyjIWpZw/DWu0nyXL2PwMWeGjCOi6CB0iRpW6rsdPK9THrRY\nDtVrhrHb/EXgg32ULNoCa4mqBHzHadseVqKwumNlrNa7JUkDsprEQdzZvWK0\n+4bDhQ+/2xfkNoYx5A0sNGEzzshDIvp2ebY+q8g2Vqbygh+MqTgCYwcsh8Bv\nBWQ0hV4+Ypfz/Hb7vykMwDdBPnDMK/X2szZKIfuD/8ssamUfvkIwOrRYIx0W\nE6xjKg4a6CmxkNLDeUVuKEmlPFrOF7Z2hoam0vE9lxPnAD7G81YCbUGnX9yq\nMfFIwkyBbdxRCf1E+cqenGAuSCvV+ZezFB1AF1LUG0XSGDW5bcsGi/atmh17\nqK/z\r\n=DtNG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTgvHqAsL+YqbEr6HG8u2eaiX+0mYUXgRaWNZuVfawHwIhAIuPWP28BW0pLxtzDeQlNvDvDbnn6AG0vZO8OdjPRBgk"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601464586909_1601464602173_0.8998340997218028"},"_hasShrinkwrap":false},"1.4.0-next.1601466240128":{"name":"playwright","version":"1.4.0-next.1601466240128","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601466240128","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-I/C2W1G8LT/vEXucatbYFL63ONQZjONWHtB0YAi74SHrAhKFn7DXEZloL9eiTjx7Hrmbtp7N1sYHMtLL+o0Asg==","shasum":"a6ac95a25dffcf3500ec6832e467e38c1a8d0533","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601466240128.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdG+PCRA9TVsSAnZWagAAM9AP/0PgZFLfctrIYyHnG3ZN\n3pD6VGt5noszLzQpOUdEfBikE6RbzORDTVdE5fiKJAX3N73gFW+D7aS0TUMr\npmvfui3OKca4bZe2XkK6YfRtdJ3zJ9QN524FpouymCBqe6/PGJfaROCdUY1u\n3KMCvy2Pu6Qxo9NnQ+fK1GoJNYyo3axLvSrWLz3WUesUM2E8skqCc/zdODfV\n/oz6I/aSyGzpAOW1Lw1JM4Jia+JX1slodpYA2uOmzgYsyMAIcHF97h/QRUZb\nCL1VlFD5Z/77UEHL18oXsl+Z5LcxGzV5CB5gEmP1fLfXlTImN4QlhXCmouKL\nqnzYcTLNbrJy5GMmcMmZvQ2fwyR3oqNt6S/6VCfvs8cyy/CTjXsZ5s3pcX11\nvEX7tyMSRy2rKZChOaLcd8cl+E1pGurwZJIjC9xASAKDkFb8NwS2TDD8LyQU\nVxK61vy/99PsnG/+nL/ZcgBqNEuKARQ2CbziGDp2TMQNvwMSVxt+PczH8Rjm\nJSiec+e9SvDD/ef+RxpoRQvbbY12qnTTBLD9FC7cBApypg31E97+lsvx79Ko\nqxsTq8sjsRV8utGR9tqGt49O9+Trj0l6w9Wj0zFGxWpVzQnG5rIdMMjnXCI9\n3rTtbhhLiIRuHnSJl6+wGh4ivQiwGesSMTkjARjnvkoWh5JbsT4x70vtvKad\nIMXc\r\n=+d0C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRLwEsVVZ6ehIh2ef3CYxV9f97jW+OIdditVohXo1AaAIgItWjlsGBtOiFji4Ud56+yLGoQYW4WXTYPXpegb0eKxU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601466240128_1601466254184_0.8896628749146109"},"_hasShrinkwrap":false},"1.4.0-next.1601478285219":{"name":"playwright","version":"1.4.0-next.1601478285219","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601478285219","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8xBRYONF9aGWt9idwrZI9jzxqozKykIbVcbolBtp9a7YN4T167+BcCK8hQJiK/pTGzxB2Lzst4snIl4rOY6gmQ==","shasum":"a6eba44793f2a0b4faedd0edf81ecdef069709f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601478285219.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdJ6cCRA9TVsSAnZWagAAyDwP/ijfobvrgXRozaNcNSU4\nlD0LS9JmllB4DuxTLqMOiQaK2zp23Q+jju/C6nTGvAITgWGU78Y7536pbhHV\nEw9gHRRbSh0EeF57lDMPeKnxzlNxUrBUmsok2xbNbV8A5Mn4jG+QnDmP+ccC\n2sbROPtGMwyC6m7F8kBNoZjyaGZI+OGID06Rm86eIlzZvgenYTyjEMbHAQ25\ne07dXt2hK7KFs9cJlPjdCX5gnwlK91tk9h/vc30J/DDi8VnWYXQ6eNfi47mh\nyUHIGFUvh9+NPdmLJX+SsvVIQCXZ+DytTYmS8WiHxdywz7L0gjLZtStBZN9l\niBDY3nuG3cGLv//KJKc3nQzUMM7FX8zJjqeiu2JsLTKxi7pIqKEIlg71C+S0\nKvvF4PRGcReSOnX5BVzWvhkpYNQ1SitsUtLGpBrhbkX+cM2DEbmXtSoQvWE2\n9/c5djDWNkE3j7+34ZGSr1o1NHcRvRhvwxc8qtU3Ve9YjdGPGCxq2HrbMs1A\nxc2bWy6+dmHi2i5Da72UghaocLHu+V7S/H+/WWmMsCcw0YTwcEaJSbpcTzo0\nWTKcU8IyqMJt6o4XHp8/cKxdgqhldMEKsrT16rf1wBhtjsY2I6WewK15KlbT\n6K2BablGyh9+MhxMhl9oJWm9noBIrecu9CiWbaQYf5kpNgP3skMH/gt2UuL0\nKynN\r\n=THY+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8htvSSR3Iz8BVrHs4nOm3TtgBThIBJBFHWomJMgJ9DAiEAv8eyTh1rdLWNK80GtK48Z+AZ7V3g5gPUQUwdDmq0iLw="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601478285219_1601478299287_0.9553289886956893"},"_hasShrinkwrap":false},"1.4.0-next.1601510088293":{"name":"playwright","version":"1.4.0-next.1601510088293","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601510088293","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-zvzDXWFW5d+1RUx3mi18OdnaNxlwo4jMRJxKmO0mn3AfsslBDA3fcPzSdYaMYmsTWwO/VTzeKy8TT/1R4hhB4g==","shasum":"c3a4975d79b1970ad8e11ebb1e877280fb5cca6e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601510088293.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdRrZCRA9TVsSAnZWagAAoM8P/iB7Y9mtkxrMBEFGaS84\nTl0BWVKQlIgWm0m9zW6SGP3xqqhpuGk2/w1H2h88MwvpQoJo3OY0r6labpND\n1DqvpzUJGAP4E5jgJE8ODkvBF0oxC37Sx6zPbBiWGarmNs2I3Ok4WlH8qtik\nEAsRjQTa5YhAhY4YhOBGiAhUFquTPU4DByxAjazUO5x4eXKe1h+sQy2Hu7Os\ndel54f43DlGPa0nCJcCc7A0/gyfu9irRttCLrdT1O1LAMY+tvhQMaDB/GP40\nEjW1oEJqyO5tYA2ivjHXhlnDWH2zqZIOtsHpQLBFqHUNWYM+JC3s1Zo6/JBX\niT1O8vaedJTgPrig3okHJsqIdmm3vpwfvClyDuMvXKtPHtYLY1Ly6wTAN0hH\ngM8BpWromCpPfdGl92VTbgibJpjKcKQ/PRC8X6KnS3ggd8k5cG2h+0XaOYnm\nY8lH6m4MBRUlVmCtuM1EMys0d+CFwc8GWNuglNPCGCLyJ8t4bNLTyhFZal9/\nuV7EjNxNamLj7caX3a1n13N8+Q0J/dhWzcdmyT22xUsSVNAq1oSJr8kpjQJS\nLMaWN9iZcWFJOwOS3S1iRQ5JAJORKq9KlGA9wOouBWXqUcRAUEywgIQ9vLLf\nHfa7/qWs/HP7q+DBUY2LG4fdylbwpl7cOCF6PDy3aTNQpt8gns89Bsx4AYWK\nO+0W\r\n=MPKf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAr8lG45KWpz3J8PlmWTDOik105MFIvY7XkBSSjk8G7oAiAzWpwRT4pdRtf1qNAf40f6oIsiswdK+FsOy2DhL/r9Zg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601510088293_1601510104158_0.35585776647362954"},"_hasShrinkwrap":false},"1.4.0-next.1601511906871":{"name":"playwright","version":"1.4.0-next.1601511906871","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601511906871","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qW/6UK1sCGniRf33lNYBY+TR7N2CssYItdoIbd3dBuVHR6ro4feSkZsKtzJk5hDT817eY36UcsaxIj+ofhSsmA==","shasum":"9f4cc3c3699860de02115985879133bedc44f751","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601511906871.tgz","fileCount":165,"unpackedSize":18576214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdSHxCRA9TVsSAnZWagAAPsUP/3ynvUyY2ax++06zk+CA\nXk4OP+IBQzKreK38z4XvAM+qn+fJjsD7+DcuMDAGDd6QtSx6CrtbDcCJSqR9\n4RXTnT8qBVsahgDSABh7XnEIlvN/be6UAPCPOJz+4/Vci6DpECBF3o7bEC71\nzDHrTOIXZIK1fEX4fA4Mij4NJwVDUURT/gFxhFGuWGSgD5gx61RWM+8WIJje\n3wintJb3mLCR+VpGn4+XNIgVL5sfCtNcZPOdkolbf0KgXQshzelCe5+D33xr\nLnR6jTCQ+iRU2AdRiWqYCMll7zqrXQVhMZamADHw2d26mbUBgW5HGi54LFho\nep4oW2HAFL7hY1GUX68vsQEbVjazXAr20t+esIiJo4L1SXBEH0GBrhEv5wwu\nCCKpi5LGaAocUSci5+zKE7P7EP/Wh0hHnCIWTsELWX0gljoXtN8RNr2R6bWw\nrC/eKbza863c/LFsOlxGljgMhoQdZUbEbwulLoO7+L3pGFnjR6TIH4sW3rNf\n5z7akAegSbzafR/EMNujgPU4wyhNE/qZbwamfl6NRUcb5iTRMQpmJL5p84Fg\nm8SLjnpXvEbObIxDJGG3I2/wXVliJMZ6n5Qqahzu2++x6nhU9HW1bY6Ye1yM\n/XSrOfALZQZABJt13cEu/WtgtyG5VOgTrdNFjkjtar86lMeF/JPspIaz/rE0\n0seY\r\n=5qzv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXTbehXzJA/vltXKHZ3AF/a5S3OphUU5fatiZj+umx4AIgezR9y1Zufg2M7FJ3oNT+HWl7d0dq2y7R3A461iGUGYQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601511906871_1601511920962_0.48936548343270414"},"_hasShrinkwrap":false},"1.4.0-next.1601525967080":{"name":"playwright","version":"1.4.0-next.1601525967080","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601525967080","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PfOvmu6t2YVvnzjS1r7iut3fGe2ztcoVnfHeDfFffzDishrEiBuC4DNgIF/1+NVa744Az1LdvnDul15FHw+2PQ==","shasum":"150eb399c2183e4eb780a50fb6070c7a6664ba8f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601525967080.tgz","fileCount":165,"unpackedSize":18576876,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdVjdCRA9TVsSAnZWagAAlYYP/jOhpgdmbyhazWETO5No\nCq0dC11eQsnR+AGZO+pntAgVz34kJsvM0ObnGI+WWzmqFAKYHwIqziUkTv3O\n6gQ44XpOQnwCbdDGQRGUm9kdwDfL7KNwzPxxB2d62UwKEZ7LnIoBQaQOmF0T\nG7M3zhr1/aR8ymEFhH1zduP7Ajt8cRof4R1x4Rgo8Y8GBv+nQfauzMNaMPPN\nVGXKORDHHtXqBeRos/93s894kk+VMkwOGMMR9A80Z/LyoTbB/r4BMX1CubTt\nEHMG+GKwiHIWAJxPSr69oOsjD9SOtRJQkbiib/SIISxC+AdHCiM04XIIS5wR\nLoNc9zHpjOi6Jzwyq91Z5TxXC7nHnjz6tzvKnr7tXa3rVEf1152LrTfVpdi3\nukCyLA04PWmehIss1DFqEhmRAIg8OsbEqCrUAmjy8mzI3jXMpoZ6JCbBO+NB\nhZhAqRpC8WYtSTHqVstcJuzVajlBs57MZC7viOJjc6JLKCd9okIiHMe44rxK\nZmioeMFa228df5r2MNcG0i3sjDJJAEch/Xcmh8Vf2rrM55rSJjtadJOpoWSp\nN3g2K9/JLcF2AqVPXmwP1jxYK2dKjBxqw9JpKf8klHZ4IAgMaKtHl+hh86Ce\n9b/7x9MhjmAgirQNu0elt6LRNTl5GMQhUZ86h/tNFF2PxCGluJ/4ZMuEnJYY\n8BPn\r\n=hah8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhfwQ3NJ3OqbyVXcJtgEp7jvHs9iHUYzuQJS4GcG9LYAiBweSjEYeqF2KPydQZiS8EGZU5V+7+h55zMAwscYT74Tg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601525967080_1601525980344_0.8597984944764523"},"_hasShrinkwrap":false},"1.4.0-next.1601535129550":{"name":"playwright","version":"1.4.0-next.1601535129550","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601535129550","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-4p53HWAUJQiBlGmLUKlXx/KH52wIZjiuT2z94ZwlIooYMleRHFtpf5vg6xNELv66zRcEmhrI2icSAIZjX5UZXw==","shasum":"df6cd14c19d682e1d07f5c442e8c4ac86d03678a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601535129550.tgz","fileCount":165,"unpackedSize":18576876,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdXyoCRA9TVsSAnZWagAAhp8P/2zbJwhLa2bHaeB9zR51\nwLsYWLI+ew1EQwSVIBPJ+ZcXGM7c5i9f8yRXRgtMKF1/i1xlfPXSkI9rNRoB\nSD5TNtVHiqGtijPPXpqNAkXYEY1ERfJNOhTWxbZ8gyS075Xm6eq5RdNy58RW\nFfGWhTUvQgVDYfOlO5sI2bAREoTD1Qr+gXOC5xr+ptaHod55CcGnIN3KVm2Y\nFL4W805QMbxfuxdulCAZ7fbrxVGL+MMXSRUGyqnrpZqlvfd5Czwb2xRn2vmN\nUvvezSu5k0/KP1RxYHhJyxh6i9Splf0TXRv4pAXgaujOXyLXxUm7ZjXxIoEa\njwOhateKQrCxqWwH8qy/vtmqR0+54aMNMiX7wsllwO+eMlzaEHUSracq80wF\n4715YxqTlKKyh1Q2S9pY16xesqQpqX/taMORLC094KKqzmygb0bnuHq1xli0\n1f4KoyjqhsZmySw75NlD+9dQdiDhUK1e7stuPVkUxY0gNjJ/+Xd5lpbh5aGP\ncNZhRi2smFg2IvTD+Q25He83oVMsNNEVu8Xw/9dG1XOTMEzWo34CdTDDj2lw\n76q7gFex9LjlCQrH9YTzeNW8ydKrfEir2A4TI4zLeLQUHxxGb8XzOFSn1Tia\nmIh1GrD1YNe6x71wC4ai6bb2e/SXiLiJN25R0qfx3dCzFUwYqRCxGDbpRIdt\nTyMm\r\n=o4lL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDwjrk1GeEv/0IIbZzhYfgmuAnwweStcfOnwa0RFgpEKAiB0/M9CSORDP7M36pHhMtttA1wxIAodnbQ74zrz3YI6BA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601535129550_1601535143233_0.9886046063507159"},"_hasShrinkwrap":false},"1.4.0-next.1601555567250":{"name":"playwright","version":"1.4.0-next.1601555567250","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601555567250","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nt2BPY/MaSju0gQ+q5k9LGvoRI1RDG8mV/fjgskmPPTs+g3n9Ha6ftagxVvMOmZssiCgnfpoJznqzMFgdhtB1g==","shasum":"c961af1d105db6d50de97ced2d720599fc536384","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601555567250.tgz","fileCount":165,"unpackedSize":18576876,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdcx9CRA9TVsSAnZWagAATX8P/jPEmGk5VenyUZ86i+s5\nLqo0Pq3nqx98alMKErQgb+PdyTAwW1Apo2rfjiuQSVM6YJMYWN2i9IYUz4mC\nkwS83EUAhHRfnifOugdMRYRA1+r18ZcRP9jhB0sa7jIw1MVtMh3i80J5xXa+\nbO8EWVlYaQfwDJslb9C17UmYKF4CFJJ/S/YKifJrypHZZ4Qi8WxFRioZRuoi\nmVHH/sRlDI7GGoErlfSTE3QRyb3eI1XToa8Ff6PNZ/BqSWVnx9YBuQlOu5sn\n5S6ZhidDZxEXOqeyafvtz/c3/DZsJH9CdJeI/dDNd4sP3EhhdEzrpBvhvaMv\nPoMO91/2JjVfwOYzbKLMchrip2BKGJ3QRYyrwLiVSB6b0pB1ahXt7lraMBRk\nGAd2ls44O5pGw7bBul/0m8+ZatKXxbVzD94d502e8lu1tmVD5zMIFR3vr3ym\nejbNovh6+aAm9Odo3tzC8dC8ByCv/8RZ2YP6YCN3FykiQquzYOBB0Kr6FG5n\nfp1pzIVJukwRs1QWOf6nHU66Ks7FhipqqcPGfPwWMlOeqW4l8BWOnagj3Q9Z\no9KF1iOBf6zoL5uCnERz1TWOxXxUz32pgmu6xGq/woKiZquBckJ4Db87zTJc\nlN8ld8bWjOJQzkvo+FfB6vAEK696UmIQAtc9AOgXDsxDQnZGmZRKIsBPU7mh\nxgMf\r\n=5ZiL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjBDqyOaVvIgrUwHh/vDh4QZ5Q9xoBU/cSh7SGwDTbUgIgXG5sDeegzbLM+RhTcVByRyRiIhpXKcwV63+77OS9he4="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601555567250_1601555581053_0.9559631371152106"},"_hasShrinkwrap":false},"1.4.0-next.1601575702546":{"name":"playwright","version":"1.4.0-next.1601575702546","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601575702546","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kaXh5gYyc8+1PBaPquoUR+HTlkJAB4nNDspZmTiSKOlYe9JcQcmQH9B1/NvBySM5WpfrtTFTXXrwXk5T6pCcdg==","shasum":"a286d4bd977f79b23a8dcbe02e5fa12abf14677a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601575702546.tgz","fileCount":165,"unpackedSize":18575472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdhsmCRA9TVsSAnZWagAAGXQP/iXerT2p/Ylfhg6QQf+N\nN9Yt4G2Ss6L0hTYf+0KEe/ILAqM00G9pjqnKR580znXqCyrsdNsJvcNhFO4F\nUREK2pWKRCqnHvKTYYnY5SVslD0DEfYQdrWsnQJeBlLLT3J46HG9gLZy56Sa\n+KYPdQIreafSkcEgKhjylYHrA8voxBJwGMZ/Pwfg6xw4BOE0fxeAjHp06mC2\nA8+W2NUnTD2XEWBg84JfKc4e1S3nmFf5BAPv8t+6dtInLlENPggxKuzvFpAE\nK3vdXK/+hZ8AAvJi0D7NY/aIiMeqAO2lo2S9CA/5/GN698j6+A+pXC4oOwqm\nlP62vAbRn5yNjO13s7e7RwV4TgDjYKIcQR2SID6gmiiX4adjPUuhiRbEv1B8\nnABqZGYxBYpTLHjGFBazdBnKNHyFtVREEJpYLjjhv4LaOy1H0rgyVpj+/DOS\nsyBHd60ccKJUBt/9niJnc4m3QClbb83H5fcvPNTLwlhWjdSrtbwSpqX2VKQn\n67BMnxg8uWAMAsOi9wgcSZcB8qheQSCBpAzDbeApAkjQgPqKTqm0Z1kAhOnH\nZcGPXE0tZMa5YYQaFZxTewAwv95MTZMJQ6lcCo9qosah9+DVgcmLR1xyQcCE\nD3ycmz0zuHEHYadvl/Mh+r4OPtjA1yLwYf4S4D3KRT5PjNu+29NtsSw1TOCN\nIqjU\r\n=AK03\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKNQkMWH5r3UzOFo0kC1ic4wdleHrEjYw+EGAFOk1YyAiEAyiMbT33OLBMmJFx0p46n9RKFYsvULxYmI2TPDFO4T0c="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601575702546_1601575717527_0.5682568147790068"},"_hasShrinkwrap":false},"1.4.0-next.1601581992734":{"name":"playwright","version":"1.4.0-next.1601581992734","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601581992734","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-gwWBfZ/cajR6DuWuSG03H2lbFr+W2zHAN4TZ3JgNOjvOZxDnuEInDH5CgFIYwGhdr9KTYvM/qasKatvyuXevSg==","shasum":"6b9b3d3dacd3402366c1ffe95a2cb3e39021d4ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601581992734.tgz","fileCount":166,"unpackedSize":18951936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdjO3CRA9TVsSAnZWagAAkwcP/1aee8JPiK0ANIi9dsDU\nh6WpDdBG9Tw95yaN5LgzEDLIuPHeV0CvyrcI47nJ1pnNmxBg2SS7xRW335QB\nyh3F9JXHcTB6JilCViWfR9VK7InXZmuMpYrGoUBokP6eiO0iK8eFQiZ1C/hd\nb+AOgXfcBR9lzj6Hom9z8LKEvdYNyoK1os9xro9YUmbvy1pZSvqi3hqs8712\nNZ9V/TLupNV+hiKfKqmLlOIreGKxKCmaeoZNZO4oHCEbGuHHpjsROBq84Eb+\njYeoNT0625809UVlEo6bWllWNTI6/+HzIy5J+44DM2Xfmtg510yTzsMw4D1Z\ntkHjLpq4d95iaA/Z5VUBqGalT+WelE1SMNnRoU8GdDOTb61fVlLAzCCXAInd\nJtl6KtLpiFSNgM2FNfVbTnYhBCrd3pL06qrjgEAvyBzy563FRKckvgF9GLR2\nABVVFE7Yr4cHj3zYPgrP355htXfdNVdr+AhZVX9OsI6b1iEqNiWlCUc8SH27\nZVmuaXeuNHiDKSeEGRabZ57eGpFh58B/S3FK+jwFLwjC0evZzeL9OdOhSkhy\njMayN1OowNUA9V8usUe556nPdiySNxbjqmjtuWgauHA5XTCKDMfop9kjnsyH\nRHPcRhIZP3G95Cb69Nd8quXnHS1mCkkXmStJVDn0hmn9i4T7jfV5NOhAMgvf\nZtLE\r\n=g3JB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcxDfoD6MJN3I2gILfKCiq+i5MrV9pUn2KLtZi7WCe6AiEA7JSl8jd4L7raCHVZjBnRAr1zZ+H51Oeu0Nh96kexvwM="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601581992734_1601582006912_0.301456888850395"},"_hasShrinkwrap":false},"1.4.0-next.1601584488728":{"name":"playwright","version":"1.4.0-next.1601584488728","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601584488728","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-BaQG193ebeoUMDFDq+EZZDzezDnb2tKKI2Syij4WpX9wmi8F00yDYKJc6e2OR1OwZZcRVWEXTlrx9qEV89cx/w==","shasum":"a7984edd69b211f4bae136dbcd78b50cc9ed9f73","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601584488728.tgz","fileCount":166,"unpackedSize":18951936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdj14CRA9TVsSAnZWagAArhUQAKLgFPxF3jicaAKsKJab\nAiOuUr6mOKudT25Glbhh02gBEmz/jeOjJZ0NVclTotFD0NlNqFGxnE4HRX+C\ne6CBPgl9L2WoD77VD9iX0zl/8NIwiB0FOXud48Uvnv+p8Dr0LZO5jz0vadkg\n7zzB0vCrhFoj+C8HZIIY5F9hd2NWn7gsb14RLg1zk6x0H5zj2afOdQHIhJvX\n8uu3ACgJOjRb7PZv8F2OLqMr4IvxfDNMrH0vNwjBdovkwb+t8WayEWCwkIK8\nmHXHNzEMevlbUdFX/cQUmhZ4hq0sc1UEH+QpJu94pGXDkyxDPfzA9Th3tGiS\nToVa1CvkWZr7tpVX2HAzTZjOUArLknmgNxnSQ3Uv6Bhwn3KUjzfKE/D5HFs+\n+i2YwRxeDHGR/GPKosjnfcZ7Fsy0cmO8+uCWRpUZBtLWtkom8wlNP/tGZ3+V\n40JQOqWRoudZfuZrAQyNjjEes9k+2I07dyK7MQ0gyq08lxbFX9quPed4zaDv\naO1fYJDlaIhZhzp4zKUGqB7c1y9TDg438KvQVNgQFCX3GA2N3tSk/DPZAlBh\nOmT5UY+qQWbF+dRYMDi26UCvSFS974M9emGvJLgxf1OzNOFg62GG95e94pZy\nWcVnfa9RPmQR4WnnlpfZBR/RPw8zqasNOK+5zCi8UufZ7wqg3+HotSFGSkxM\nfb4q\r\n=ad1w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBf3u2JNPsWUicJvtZxSd+8tzZ20/RI8DUlZnEqgJoueAiA/6nOuyYjuHvPY2BUWv3h0WAkP+Z8ZkX/EuohEBg6Jog=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601584488728_1601584504046_0.401620451473206"},"_hasShrinkwrap":false},"1.4.0-next.1601607485488":{"name":"playwright","version":"1.4.0-next.1601607485488","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601607485488","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9N+NT0JWoax+A8Oe7jgtAcUXbj7+lEvIcpmcUUP67KDYIBYM8okYs52GkoCXCyjt3Rkq6q7+wvG7L4X/xV7jgA==","shasum":"8d1cb764262ca50ac8b129945133f260d8ded4f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601607485488.tgz","fileCount":166,"unpackedSize":18952138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdpdLCRA9TVsSAnZWagAAgl4QAJdAssmE5MDaYvKBRmst\nMyZR6noTN8DU04KzTs+JSguDv8TJf0HH2/dCj268GNFlABrji3JuT5Ohemzk\nJ9EPOGvwkxEcJDA5l3nXH0uWymPBcVk5G7+w0awSqFFRfDnZ1k7/U0L88lgS\nesXq1FOaeTDgBn1Qmq9hAnoej6ahMDfwaw5QQ/e1U8OW89f8GgTTKCwvBL2c\nD3Is+b1DycDrJNt4IUv23t/TM8aMFWm7WfwOlWceqI9n6slOhkjypntTHbSK\nh2dtunPw9ewntyzneIeyRqSkby4m/ys3cLGhdkK+4D9BBhBlwdFTUXOPVHsA\ndCEtw/1fm0PjWH8N/NAv+Qq/T2gRtatkhmpeZEE5ABdRiHRHL0Nxxad8lsYX\nAe2cPBcrLhOSpKmhd+GV2LZ655y6kM0aMg2QMOW96tqI2OgfNSjQ3nAbpsOC\nwRKKHrpDXFzcPF3EsFW1EyWJT46hC6Kl1GCTo0BvU0nij4WCc8ddeMl4GPho\nuNT5j5ChM442k12aH3bKPhKo69dvbDiyW4+cvekIg4c+sy8CgQfChzVImwH/\nj4cll8vHYeja4VuaL60F00O+rBNsdavj8YRHGnCmzaC2xsKJaNCZcysZSsUL\nHozcSY/SP9kxWbiQMXzBQ5nCalSE2iwjU1+5XnS4sYv4DVqAbOH9CP1YKl1v\nGW5+\r\n=MbdG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB2YBsYg5i9jtQxUH2MhoeUuBl/jxgPG2mIWXZU6dUOhAiEA/Tna8clzlTBcO3ciCQmC4AqSklO4eFtuWWbhDuNx1RQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601607485488_1601607498663_0.36270347157015337"},"_hasShrinkwrap":false},"1.4.0-next.1601617766723":{"name":"playwright","version":"1.4.0-next.1601617766723","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601617766723","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-yZQKrYoEa37/fURVZO1qINavpAODW7y5Q6vnb068rIA9xrSRMJgNaBYeFcnipvdi7Tmi+ZTAaFHKuR9iGdowrg==","shasum":"c9c6690f5360f6b69ac59accd8181ee36a3524dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601617766723.tgz","fileCount":166,"unpackedSize":18957592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdr91CRA9TVsSAnZWagAAJuQP+wXjlt6j/JKNbE50n3d4\nRIY9MJzmgxOqKry92iDDNV7T9PKD6QGlnHr9SJS95KWkyw1Hey2RXZnoWzK7\neb4ckZ86GdBJxrqxD4Mtkf3E6aHT8VW7EZfFyCg5fBfUdcFh6VssRZ7W5nUQ\nCDqca2YsoXFH+8MHANvx7iZr8ya3bm+AyZKBRKjBoV5L5DfSjPzap1n0fFtX\nvcsTgwz7G3oImtdvzGmgE3gKnfRyo5e7BtZFNB7vVWevPJsT7VmyiTgchw9Q\nKb8CEMu/4dZ6v/nMIp62PJxGmjnx47JWcMJbEQhMDDL8mAAtPCzhPEggVRP3\nvlZPxCK5QEcltb87J6HCrh5tRW/G6kgam0M9kNXEY0CkWjO8VYUXpel0S/KF\nmpqM7U10SsNUOmekyNvQh62fj6nsVF+QonLM88Mi8pnlXABo+DG9YI2rSVi6\niVDKrynRvOI5G3SBsdbMQY+KaG2Y1rkk18b7b+aXOzFUVqPrcHI3qgSUSa4+\nriPurydpiLkZruinIHnRULB0XEtaTwKdjPRijM26/rm+K3qSudz2JlHFtfZq\n/osPAgSV2/tiogqViUh7V2CdLmAy9E2ZkdxQvpXcsKrpdcIH2R4F+Vyr0Wfi\n4u//6+vuwkAWoqFAfzuPQ3YKwERoziWot76KSnZR0/5nRK7oAy2OToj+8GCj\nA/v/\r\n=W7k0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQEdLep7jvj/jpku0Z9yZNOtvIxJzqW80r3cHplmoBZAIhAJE3ScNXAiEx+hgGr48U2LkTmvkVictnBxoO8QsKipD5"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601617766723_1601617780265_0.06137548379590996"},"_hasShrinkwrap":false},"1.4.0-next.1601637372722":{"name":"playwright","version":"1.4.0-next.1601637372722","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601637372722","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-FGlQo6cz3JsHmVqsEiBVkrkAgEygTFL/bkl/HRLt6Qt47u78l2xEraCVcMvcNx89l7Y/42UUyMaBVujmqgVpJg==","shasum":"48930ce3cb4bf960a4936652dd082a3c3e84e589","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601637372722.tgz","fileCount":166,"unpackedSize":18957592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdwwLCRA9TVsSAnZWagAAWU0P/2AK4qFkkM6SEs3Bw1Sv\nIk+wITGJaTPVT/0iryemOeF/pzvlsm+tqcP0tyGG2SZV89TLeCQiPSwnTaiP\nI6fB71R78Ty5TMvOU2b58yE+gBfo9VLVYAroPTmuJJNLPJ+uaOVkkW0HD1HU\nfjKGbdEimO+B9k4OwFKkv7J9uhbbqd/jjsI/zgazGeQX+8MYwelow8TUzAr+\nlRd0xgSvVJiQisZnK631V7feJsW5rhEyHOUz6wqM77t5AsNjNQUBREXRm3o5\nE1eeEJnQtZYfdibcluZ1duDZ2x91N58ND/A06n14PyUSe7iR1nWpT0fLkzcS\ncHn87sjw2GO40aX+FusHiSsH6yfxF4YXaPfPMp4etshWQZ9UjiWPSMceoe3b\nwFvP/PZ7gWhR01AjOM/ktdIMKJDyYfVw8tTTPf6nszLwFVmBizPufhgfPQMv\nR2MSL9+HwjEkGjk/StSN1erTb8uYaO0PpYrf+JwIkuFYVVHSYdzR/HVThS12\n5xF5D1LzGoRFDN8aVY7Z0HlSlajf4SwuENH6dPrIBnfw31mGSUf1hQC66KtK\n/ysvK1zuIrTYpZYN+mnX1UfyAUGDJorJJG534NP1rnHsNmL0dFBGVJ50Wx+/\nFCF4jMqbgS8fctE2KGnfjQKoArulrfM9O9+o/k1y39B1qu1hNKlzJKp4ChfB\nD7fK\r\n=O0p4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCR7eK+GOffug7z6LR5yCY9K2a3ghn+ywnBXVRu+FmFQQIgd79+FshzXl6yGlCaXlNO913kyBl9IbULk7dkupVkdrM="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601637372722_1601637386184_0.8467087861525868"},"_hasShrinkwrap":false},"1.4.0-next.1601656184292":{"name":"playwright","version":"1.4.0-next.1601656184292","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601656184292","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-et0lUyG04I+ClLnvaImn7a/yC8iWXEgI1OgzGIf39HWjyQDUsrO+yDTXobcnKYRGvrFE4CUF1QvgeVj2Qz92kg==","shasum":"14e97349219faac6d8d0f4c2dab3018d5f4ed947","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601656184292.tgz","fileCount":166,"unpackedSize":18957592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfd1WICRA9TVsSAnZWagAA96oP/0i4cijhpNsfh3+eAUL7\notvAvYBJriSGZYbGIEIIRO191QvS96c40glohxH+GSLpXaDLS0/yv+eUv93C\nE1QjlVgOyvVofSIsAJTK6mUaW5zMMcoBf2UluJ+0obO7+YAQlmqMerhE1CgI\ny9m+uppSf7iVFxILdaG3pik19Q7PCDqH7CK/BxRAvfXK43jD63TyF53t/36J\nqwUJUBFgoDVbFtOBe9M2jPbS5YvacDUaGX543FwLSEXGaVUUQq4XqLvvWTAS\nXWKiUErDR8eQmlA51OxhX6nYWT9MIlWWZ/+WZ7XmKbTdxS42qyp3XHdW+vlT\nb2AthN7IT1A5bauQLsxnkUy1bvjJY8hNocoyymceaAuuMln/b5dvfSqAguQE\nokWAvqShAkD0ODQWuYCS1JAee2pMDfTC6lAUYLwqO6LRTx/J4qWK/A/poZ1p\ntG2y1jIim6+Dxykb1PECiOq/+sk9C8mGyU7opfTbMSUnERCt60js+HZNj7In\n6l9O2f6Fi5Pbs71Ov/OIr/TMjMDpCJ+RuWq2KpBqi78Tq+1OPL7thZ5qbwfq\nvOUAOjMWGCGO2lgEFu9xsSVzG481azVM4iEc5J3EEOL0l39qEF3HR/VGiOQO\nXe7jfEWYtI1sqkWzrJiEu4A7PqI1JX25ZpAPmw4Vdn8JRyZOaDtxbMr41IjU\nhLc0\r\n=iqQS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC62InVzSbbvIIWVZGHvf8lH4HDJFmXjxBSmtJyagVlUgIgDhfrhTdrBxdk29G0tLOf3Ek5xsI8cWTOY0me/L6y+tk="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601656184292_1601656199469_0.30880184235562536"},"_hasShrinkwrap":false},"1.4.0-next.1601661818401":{"name":"playwright","version":"1.4.0-next.1601661818401","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601661818401","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-j1ehbV7dOs1eJK71EsqtyX3ioHQmIXlwIB9RYee4fK/gVpc2RT+1hor4vKl3ufLXmQjS8nOeQgyCrM6okJwqnQ==","shasum":"c02a9db239013bdf01a40e1a5be9b802533e80b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601661818401.tgz","fileCount":166,"unpackedSize":18957592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfd2uHCRA9TVsSAnZWagAA5nEP/iahCOdNJ2KVdOlPGunC\n4jgKMfXib/11fCx7UxopG4UfIbEN1K+FSN7lurYWyan7KU8JXLXyLqWPdCF/\nRB15M9EZU9ib4ActTNgRAZrgRUskLTVgq0hrZW9cYTc7VXW6paKaLp7lu5uH\ndArrHjJmdA51y04lhSk2D4SVCPNifhiqOprTUPmbWzZ4lRuZ4qFzQ/BR9stO\nWiSPEXebZzOq01T2wiwGUwwYWs1wcNXC5Zk01KrLyx5EGJebcYTiEckxNtPT\n0kxDymWkEIZRPc57bkExpcFOLogSLwXhobQXuYWSTn+jpGmQgIH1BOSgDKbz\ne6qT3Kfbv5em5Y88aIqc89P1atstDt/bV2Ff77gxtjUaHsNydWgxpGMVA52/\nNwnUgmsfObJBpfV0k6zbFkJUSCMZ6ICKe//ZTFkg9lX5ou5o3+PMHLqLC1oh\ngHyuQRc9heE2JkDWoqa6sJDPtvtGEh96UPLLqYQMIQ3MCGKq5v1Xo04xiD1e\nbZqX0BTSVJomZnl2hbBMzaTpnjDgAuRRpkRelrNYhmqJFJ0IF2PJnzvuaUBT\naBSavnkNUQ1r2Gbl7Vkg8B/VEO8lxs/bzvfkgMHuwjvqcoYiCmXHI5oZiWnU\nphccjSDG3U6nnGQSeTIvqF2DsHR27q4pV5wPGqnrCMJqYCktbgpJVjFgxg+W\n4Ygy\r\n=rGxC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNO3Y66wZPTsfqiQAz1UJ7/EnM5UjgbogfsxOCqaGTZQIgfqpExUppYUSEWsifCLb4AOi0ES6IVDqk2j/OJGpzQtE="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601661818401_1601661830520_0.46189863459734126"},"_hasShrinkwrap":false},"1.4.0-next.1601684336413":{"name":"playwright","version":"1.4.0-next.1601684336413","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601684336413","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2n+bk8T2Jpy1Hxq7K01exmRAtvoTlab/JwgMghk6c/Jnh6Cx2ZP4HUvW3RyRnWuGWCJhnFX9IIwfQhSVLs67XA==","shasum":"63d3a2d3711cb51866bb478d98e8bdd4c5e1444f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601684336413.tgz","fileCount":166,"unpackedSize":18957592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfd8N/CRA9TVsSAnZWagAAnk4P/jVXya9nclHPIqGKQvb2\nWVusS2Kd5KR0lnmdLh0IrIKABsqbogwAMx/+TzFpR6TAex5/FiJOXh9LLf0p\nUwhPtG1Q2BPMYajy4p+ovtARJprWQkVKEwX5Icz3glg7ygqPHu94OZeg1LuV\nuCPHCdd68kSdOG/QO5zIiYVDV8hBLvAf3bVMUq+1FypVP7GhOMLzfZFMDyH+\no+gDmJ3yHxg8L6CTgBliTXzxUB2c/HKohRKlZnsPUurRL3JQ+JAo2rBt5TN2\ndd9klsiBSr9dBHhP3QLlUJbOh1a6xU0pwrifOo1zIyIMlJR+ucVE51Spuq2E\niDYG+pROhjGDolOAvYzcAkCd/hp35ibRHkZBKw+ps0+bGOFU/VxP6n2ujgPD\n98d1wRuToeuXW1qAXkeqk7QYSU5IWZSzxytBYM8WCv6WdBV2qw3gajPvkQ6n\ngux/6XyJPbyU7qUSQiBtHm0ty0lqtTXe5AExIH3WW3SJVCSCWJk80nRLSwTe\nDjDyVxBoe8v8/9nmmO3dGuxslVaScf/CcxIVA+sgwbgg8v+CvghfUTiFgLaH\nZf7zSXDj28ssnP6fD/EjBJkRBqKnHUrZsz3PpoBkqzotdmazVAChF20f1jvN\nUps5ubJSTLBRZ3TSi1BkM6BdTCPlTRzSiHn/35VXWjuTo3OezNCuH/5NcrGd\nSdvV\r\n=6g9p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDG6RNt5Xz+h8S0EivigTzJNJ7oID5gUjy1yi8n9YxarAiEAwIZEY6rp1k9tXOVUfut9bAAAPcAkxXw3oVg6ttzQwA0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601684336413_1601684350062_0.9201202556444308"},"_hasShrinkwrap":false},"1.4.0-next.1601684995262":{"name":"playwright","version":"1.4.0-next.1601684995262","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601684995262","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-sJ02ZxQOUlkLlkZJP1hZSEDzHZlXiJjQvaaAhpHllFwe+BfukTMGmtLRFq3EusZ1AlQtFb7SW5/q0j0slku2gw==","shasum":"7c0d4c94b96ebc52dad2dcdb5d1ae333dc938c0c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601684995262.tgz","fileCount":166,"unpackedSize":18960148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfd8YSCRA9TVsSAnZWagAApzcQAJpVlpunkqvxDs9an2gB\nGDyxJN31ydJ7SvxQALbXrv4OLV0uqFszZGs5Nq+LJ2BlBBXSidsjYg49nH6y\nV/aDGWx+fodOMOYrQ8ljttCSwvKekdn8VwQtOXWV9PhREefrf6KRJeCnAtpi\n9/u/lqulXSuAJ/wRNiOVjogrcj75thw6x9Q9fJg5EDwHw7xJjsrqD0EWTZ5J\nOhRVvw/QN7rR61wQgO+A3kS8dzPY/wQnF4UaB0yf2/cRN0RGxnNDmlvJVl1o\n7F2aZyqd0Yx+QKx+33zcgdPzZi5n2Qki9qdAQyCvqDl0p1dranD54svf6ADG\nrpmRXMhzRuuc4z0WOBfQQ6glPrLRzjgax0kfDgpEeiIFFj5mFIsJcGUWzGmy\nhDZAo1ihmd4hh17W2ND87BBdFkovCGu9BnbiTRzL+0l0Mv8ROZqqKAFO+1Lv\nvOCghQ7HN1zS2jIXfg1TK9EHizD/VX4eZcclOLh9g+G92mIsZ52QuQG0R6JN\nWuDlgzBSO0+whHHdhLWDngjOeQrZV/StyRlGxtszx0t1+slk35xYsHQjmEIM\nbnd8VCI6YywPdYvXJENgguQNvyDtRJZV3Rm6LPWJNHpKlP3gyYWkAIL/8riy\nHAyYVsDNo29yD+7BZ0dE4hWqlJJNxO0icZSemAcESud1VQ6qYRm/zxneHxEh\nKmOC\r\n=GHP8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEK5/J6FbOQNFvLQVADU8W2kTSN56S5g+Uol6CgGqtPqAiEA7ysNYH7HWPd2kmwxzboylSq2uuKVmslnftM033q3Jgs="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601684995262_1601685009231_0.7563325571839443"},"_hasShrinkwrap":false},"1.4.0-next.1601691667843":{"name":"playwright","version":"1.4.0-next.1601691667843","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601691667843","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wvWyUPb/WSLCBN/iQNAtaGwidBhYxvLIMDUvSsFPAxzpoiL6Ge2Tt7PrclZOZ5EpeolxHcJ+QJCkkgwgUdCR3w==","shasum":"c86eee9cfb892297b341e0ce4fb51b7cd9259214","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601691667843.tgz","fileCount":166,"unpackedSize":18891891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfd+AhCRA9TVsSAnZWagAATrIP/2zV7PKqgn89Z/Lk9Qag\nYUgG4hcLPHsO8dkVggXA37M5c9VQ4+QNUn2a17vBgRdUrS6yqB0HEkXMfTpo\nzKxa1FrhYQPxdrtO88yPIgSb8YSqDSqSP1O7Mj8noIp+NeDZEM8K3PWLc1Es\nIaHpq199z2TxvElz8qc1JlB96gbEdl2weExiJ5x71ZfgsqNx8m/3B0s8M7wT\niP06bWieNU5nl8rs3LgDqATzlzpLa0QJdHHIj5OfWHOM0RFHsMJDgY3yeuBw\nJ2qP6ZpXXI/qekqcXtPfLehmcuPp6uOUSseDOUueYSHNTyanTvRE5kP3L2bL\nMbLkQ66cghQo0DfPlMbjiVFWUJ9Glkfvb3QKXgtMDxkZlN6lIeV5Dvgue9FZ\nHHDRTYkpxedfb73/N+RQkI1HAaEBnJGtC1+mfUehZ0J4adm3TwCsA/EeirBM\nod1Ahm5Cu0cQ+1+DNHALsXcCOj3WSHvehpxhDhmwyY03zL5o7eEjdojBSCbC\nwIpxiAJHmH+GIJ7EKMz2Ug3x7oyWtUDXPpLrS0xqNC6Sr8Qi99mtWN/D4Phd\n+r2wrLw7ukugZRexjlc6tRqcWMB+xyWzKVTM6l+3MeBqKfjTTmU6fVKF8ut+\nR4QmYaXlBIy2YwJKA1KwDC2CnFGAIDeoNxWuUY1PXqkmVpxuIa6KHzh+V+mn\nLxxF\r\n=QwGB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEPnblGf9LgVQ49Ym9H4+gosw3mupMa12CklEYARpAXAiEA5iPtikwPHyaD/+STcVLWcle5MXfCzS4Expae3KdqTAE="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601691667843_1601691680719_0.11218095428661012"},"_hasShrinkwrap":false},"1.4.0-next.1601860812493":{"name":"playwright","version":"1.4.0-next.1601860812493","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601860812493","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Kzm1T01Xgb/eoWDZNShSw9dA2keZUO8FpiRIDiymrQsYu39zdX0aWVhXu0x5xE5DEi0WBrc87LcZzYMkfSpsxA==","shasum":"7c6410ce3835552267770bac51d5252bf4e3075f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601860812493.tgz","fileCount":166,"unpackedSize":18892288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfenTbCRA9TVsSAnZWagAA93sP+gK/i+dAGqbEaV9U+G3d\nWra6eWuyJUVYX1H9ZERl7okzFPXpYnbQ06qOrzVm4Lb3lTkCqgSytMXVUDRU\nHOvcy40AVE3SKwIOiUR+gJwZ7JzACQP3BMhy8R6E1+F4WTqwpIWFKkEyiM6v\n8AnJ+g7xox5/Vln0p8COIVCkKCTWPX3j4FeswtVha/ZXUSLTpGVAjZ5ZBn8m\n6UWrtAmeXzQE5Xr5DD4j0afxVyp7Ix8M447fGyoseToWgTPXzxCNxagi2PuS\nAUbF7DNNnTHchAet9bhHgTm/QdbpF9tbRX2+ff8+grKQJ2G8PqX5TfJF3NDf\nYoHSNd7ZUt71+3JxBqKPdbY5T4Jfq2Irxf+i/WzYux42bwAiqJHrfzGRogqV\n/dZFoUIZwKswh3ZXr0B0oMrdYZxVRbVZ1z+fKl1pkOL0y9cZN0QfD1ofwVg7\nEMQN+f3xw1cl/yV1XhHTil+ErbSi0EI3zSaoV/FJ7FQ0acQx+OMEDvCD1IrK\n/7S9t/Hp/Q6RJI2ojekjFg5E8rEoTRguDYINOpo8+FfeWi2yWUP1fra+ibRD\nOZhvtESee3j1bjy6a8Wjet0FCBUiVcYBI/HNgpdcZrMKxS6hTIoewsvw+nZe\nk+ff31uHYifjNiFf0Ec7MUXDdcP48jejt5Kyrifwel8ZoklMuaEZhMH1WKet\nHzv+\r\n=yoqk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRAcOyFASjHgoTkKczuqvUBvHDsPIm3gT9LTXaCpiUVAiEAhaFrVXW/Azb9MN8aEkKj7MJF2Skqz5DlixThXMFgXAk="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601860812493_1601860826818_0.9066208694390496"},"_hasShrinkwrap":false},"1.4.0-next.1601897169302":{"name":"playwright","version":"1.4.0-next.1601897169302","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601897169302","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-8rUCjzORFq9/p7+rK0kkQYph7tsBKKFyV+7OOblDt54x+cW+60DLKts28fubc7Qjk7sFrQ8zY2aoUZIn6c6abg==","shasum":"4263e9a4239bbfc1389ba7947df0df4aeaa0f65a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601897169302.tgz","fileCount":166,"unpackedSize":18892288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfewLgCRA9TVsSAnZWagAAsa8P/1HYDi2uT/sR4KKN1OFg\ntMZJlJUPGW4AT2hZ7n5ZEiV8QZg6ex+CrrUHXZsLKgAgZvbK/hyXWaUT6QO1\nK09ZHNDZ0Y8r32eTi8g9Kg6X0RiqUZh3QJXDGbZL+w2DTQOMVYyqwFBtcPqC\nM3ZMfqXiUSk8o8Ys4a+UcMH1c7257IrZiyre1lbeFcR+OV17QmbUusm7tS/8\nh123OXEqw+HiwSkavVNIZ5udVqoGzFvt/l440kjeANi7IXhEmDEHBdnGaEU9\njXGQV9EDkHUJjnuLagrcKzIMQAVfmrmAPj0uGaaAjDa5V6fYTHK8otiwtwT9\nG4Cbl041C3i1OAj+vzGQOYQmvAcSnDEMAxBgRVp/TjkDeO4gHelKjFY5K/gb\nUsBnVnqpOo4OAs6Bzhm016/uP3I6fNggXIdX6DOni8JpQ+cSsOuZAy+uymrQ\nHRsI+Bh2GdvPS9FiR/6kVh3RlIANOevnSkOdUt19xV9WtmM4Zw7DsQ+nZEwI\nHrk6xKNLcz03veY5joeH6PQpERRlwIgN8q/m69n6mivZjj61JGYtY0IzU7cX\nsQYirPOK/Z7Ft84QoYNsIhDEsx80mEWcM0A2mTrhJb9zsjFyh4P4FznDOQkr\nF3wazBIoPBEBmzpmEWR9qD8z1P3BRv7Sv8GpjKzyj09CpgKA2+WuratfRN6J\n9qIB\r\n=BrV1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtL1/5B33//DEzWd8kd1Mahpj0wWP1AEJFR/oEGQQuHQIhALfe/p+JDmRl8xtfc/5JLJp1ogp/1DEf/j37ULENQboi"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601897169302_1601897183948_0.8754228736060756"},"_hasShrinkwrap":false},"1.4.0-next.1601920848357":{"name":"playwright","version":"1.4.0-next.1601920848357","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601920848357","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-x8dxD5W2qXMdFLZ5ULAIV6YGskCOmy865T81ochWrQaBMkJb8hUucYIwBOwBpGp2UJ2u1thdQr0conp2Sc0rOA==","shasum":"c0f09f2865d7d68fed653d9e5dc25a1f46990cb2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601920848357.tgz","fileCount":166,"unpackedSize":18892288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfe19fCRA9TVsSAnZWagAAfLwP/3yj5c9ac13Vpi3mIqmn\ndEskyLfnFC9uudonbenvgUaZejvD56N/7bXSzjL463xx183ZvczQ9b+3IZzZ\n1Hnu826j3A96OoBoF5cHjLyLjI7bUtEultouwJcQdL9wDoQ+f1uB4stkvX1T\nq1TLm0E4OAev/Vga2HnBvCYj4g2qobGFpIuEU/SHbFdC3mdsvHE9p+BJkhVv\nxgPjWTNasHehNYvpTh4SntwPY/oihLfvjCGeJ9Ir6WvEUnxrXMCcXHwJhtYf\nn0S23JY30pzwqno/6fz9AvghTnOPJ84RRhWaLynOUR8NfHODUgaZg8w/CBYr\n+hP5GBlcnDHiCUog4Xb3+lNKl0G8vapBobsQ1zGAud1JrSJgxXvzH+WBnavm\n4KnC7QanKi+ohaGeoqXhjE0nCJP6YBTb3lzE3DpRisjd/j0cADaJHacsfLL2\n2VsQkNNKC/m2d4EdOQeBVkLf7e2STPZX27yrua6ItrY/SGTXtEKyYyMW56x2\ntCWwZdkxSVlt0JgaWqFccdWPVd98t4gvOurcFR8ewUAIsHCdnSiHQmZWxSDh\nIl4OGyoAeBkWFDMqG0BB7yOc+HcSYhUrmaEAz4yfDb7wp5B+ojMABRlGsh7J\n0224iBOzko9XyhPh2jLSJaB3+I/PceRrorPXZU/0BU8yk/40pY4hg2lbqNmJ\nbIv+\r\n=lMAK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEZffo1gEYEoiavWsIiavwcDLahQysw75xRY4vXl3ozJAiAZuDiMCIQn/544G1LYuLR6WOBWnr0pncusdT1PEsNYxA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601920848357_1601920862362_0.6645228321018515"},"_hasShrinkwrap":false},"1.4.0-next.1601936611526":{"name":"playwright","version":"1.4.0-next.1601936611526","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601936611526","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-9EIpZ8CnufC5bsUnym8C7VsMpFI/j0ZUL2f6rU/RUxMxM6vP0BpBI31EfmHp+NYQ+acd1yNm3eJvVL+/JLNCug==","shasum":"3e64dfdb7738a0e75090843411771b61b90498a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601936611526.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfe5z1CRA9TVsSAnZWagAAqDsP/3Emh1GchbtyK7bdxT76\noFX7IdqKRxpdLPAAT2GCPQqNHr27ORjgeMiVLlhhIWYujo0YC2Q0jM4FaJeA\nrIJWC1fZlIJukTL+pt1fXphLlLUx/4vgHk7SZT9NM5e1lDQGsUA3fe4PaNbN\nWz2waqYcC/i/vGGWy1ufBYGAip6OWm2KUSlZY1VzmeLFqWHOVxSNT7HmpUUQ\nXC+r+4drUFpW6xIqrvHltRq9fNbTCuUlweiz0++O7i7dZPGH60AfSMTvq81+\n2UB82NW1HFP/YR2QmRJZ2oYzvYj5hKHoAjF63BNUJA69gzhf3WkqdKHvlbnR\nucQm2yZskezIhgzSNymQO7xa6b7li6XZbzOSB16Zk4YM/2y6VBewmS483jbB\nEUEchZB4YmWpmxuVdYlujJbOaDAyZfACcyBuSo/0Fmx4BN00RicDj1URu+gr\nKAC1RiV3vFYMIVmyQvDbWvNhOIfT2jChvz77nqjSIU4Sl5sExSJVNHwfbUgV\nYZd9mpse0YsDNcSgLhVjINh7gip2a2sznGBSrnsarSaZGdefU4i0u2Zg7i91\nIt4umycNjvue+TcNsA6082Gs7obrnJ1L8dEkeISRhc1qyrPuqSYl4kmU+efr\n8Ln359qz675/CCIvvPrq31ZfV4P4hm0U8mWRP4NIwhTnYZ+8kQ5Bv4Xjpq+V\naBQX\r\n=Gjap\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDeElWPGqVK/hotV7UfGg0sYwpEPWNwWfgwHUbxJW2YAiEAxLDg6e3UTh3UuEUKO6dgHFkAYXHXo0UFE79rr4MYd1Q="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601936611526_1601936628499_0.5257825257118405"},"_hasShrinkwrap":false},"1.4.0-next.1601942712379":{"name":"playwright","version":"1.4.0-next.1601942712379","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601942712379","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nwo3LZffYPOGTAE7DCTuD4uKauXWJWwf18jP5LJEDy/2WUX8WA6WMcLpVR+ZZHdAPTZO7HQqtYp7moB28cqZEg==","shasum":"5470f379959719510edc796890c1fcac45b81e74","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601942712379.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfe7THCRA9TVsSAnZWagAAqZIP/iBSpWYfN0E+Yd/IVTHt\nKc1YrXMk5XLpK6grEelQp3AOr2F3c8xnQZrwkYJged7IirwsY5sMKE2S9r4h\nmA0N58Mx6P8smffZKLh83LgkhFCIMnA+HdOyKyUNKUS3eqC45p/knpD2xCdP\nBo+ZcqZamuj8prRJMpvCnvnuQ72rvEt1C4uvaOgk5ywY0wvybKu8sfLxAzbJ\ndX9rgty9zpzyqFyC9mRnFVow09/3tiPCULbNFHipHZP/xI1vHaQfTGn5LWhp\nT1tdUNRAmzqTsjyKhVx3olPQ32yn77vF0u34BPuXNMaBzkcmpNMDdrRqyTpL\n2VrkAFQC6jgPsPsNRkHJyQEE1udaBIiBWRfqm46SGV1b1Gax/oT5yQF5RuV4\nZUpL/+m3NGZkU/YQ0zjRsJUdl4KRFBXtGAgXXLfCXfVyfTV8g3sLeP6GEqLG\nEjKRtLZZMoenl2W5g0o9vcT8PvStpMWpykSFZ4EKR4JC/IulpmDdXrggGIwY\neSR/1x6Xt1Z8hxBfIFl49Ga+yQ9GJxP+7ighiML/sZHF/JKnHAvo3NqT76yx\n6Rv+AEOt2MTA6C5WAG1CERPtJ3vom3rQHyN/g33XPolZitbajCacLN2gQ7Pb\nd09aUBE1nyec9yXyyNiPlvZABqQl1y0asVwjuRad0ANC47D3grjFrfT1nUBZ\n5QJX\r\n=/UP6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF04m62CNUCcJ4o33dCYy5GBDugPRNcmRSuypWep5XGkAiEA5qtyISEfLQgSv7XAToBvtFUjb16PxHDA+FaqxLTTNPU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601942712379_1601942726514_0.5660397139705109"},"_hasShrinkwrap":false},"1.4.0-next.1601959642881":{"name":"playwright","version":"1.4.0-next.1601959642881","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601959642881","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cmqWjJO2WiB2heRbOy67xCnVW4qRhJB8kS83MKN+bPTdCH6F+sVRD1PzxocuTJgWbJI4qyqzaHV5ds0Y8d2AqQ==","shasum":"6e0d7e5d7164d17e98284941e4d8ffe641c47176","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601959642881.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfe/bpCRA9TVsSAnZWagAA9a0QAILzv+rkKkzAGtmrrzlZ\nh4LRrmzGbnY9CIk3P42K/XW/jR5kLfZwbZ1FTeNqllwYGfBJ/17PNvmXrh57\n08k1/X/yfGJxOcoCwNH+jNsXXVC14dVDT+DDuaCDIKqkJItTFToeVMXzUbzJ\nI8W+qDBhQL0L4HjalnCmvEY1xk71WUWza3lDmyZ9nNeG1bCglerf5livFMz1\nzFMnQigNvzF+4KrNh39rvFJexz3y0yxwbCJ3lHvvqdfx9bSRnIf3j1PlOyhg\nauH0ylQEPoBKy4ktD9mJw4wTEETbnR8jJiQrxF2ST7bjTWkt+AUV9JhfZXIq\n61ig/s72NTyleJO1RR3EmU55l5HOwzGNBM9BeTOHrGysNVaZWYT1KKZJmj7M\nf3v/4LiZIgqpn3EVvCiDcRM/1sletDFCQr9iwj33wsQTsJDhtC0hBPELQC6T\nLp/W2oQuv3ZEejT8cwm6p13Hv8Pdzc+Iwv8NnJUQhqJS20/OsAxLnwAWPhlV\n/TQIZ9xU8EbmagHavpcOkGF8rF357X/HefqwV7f1IqrTo/MuyjZE3TX87qV6\noPwWG6LkgrTEPl0o0Fn+ww3ov313NUd8E+0DTxVdpxIYA3Tqudi35egH70LI\nQXAANVfATQ700++tEQ2TzyEL569dFbY4AOQ0nnFtiz+Ggcm4fdPOrOwB3xpE\nS2Xl\r\n=jJqN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWumyX0C8/83DgspRBhfsVAr2yOhJYS4lzWgO+mDjOQAIhAPvIhEXDEs87zB0zg4pGiC4SvcWI2UMYATftOjSkIwLT"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601959642881_1601959656985_0.7201354322352371"},"_hasShrinkwrap":false},"1.4.0-next.1601968645268":{"name":"playwright","version":"1.4.0-next.1601968645268","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601968645268","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vpDdKLmZpXA2pqCPK2dPm19GDeuOvcd5gp6cXlpB0Xm0f+gKCOXGZpnwSxD9gD77HJjUvEmDlvEgD/nK7Dv3LA==","shasum":"4fdab170e0a1e36c67bbea6dbc282f714bfb2417","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601968645268.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffBoTCRA9TVsSAnZWagAAxMEP/jC+lLPmOSmoLjXgxJb8\nWpUd4P/2wKhpdnForzWUJ17g/ACDnuqB4Ks4IsnZoVENR0RNblfL4fZS1l+y\n7YMfDP+446gKpOuvBFnRgz7BFC4JS+ZvsK23xlOT1mSSgVcDAlPIefVfhbPk\n8n9kWo4unR+dAU5BPYS0cVUjmV86GtURXtMxE30v1/5oe3RSe7t5LCMR6WGG\neNYgNxQNziJsbTh7H519kALHpYMzs67DYMSL2/RvmEtBBJj3aOB8ndlOrjhi\nMo007qA8rL2oa5t45Gy6NFPeL2aeKDUCCKK51g46zNcqYeCwJof+5WajeS+8\nLhBW50h7HGUUZYkB+GG2uqq3GgwOaQ/WBNj5qaTuY171NS8bPOIRjw9CAX5T\nWlsjFIlWf/3ecFSYw6vsOLfzd5+AIxTIVk71lnKvUG7DaXK7OXFKv9Rc6vIp\ng1Io2cYUdJP+ZOnOd8i5UqRby5cJgCWMqlLgsgSHcDS62MGVjhqsE4hpZyVm\nfycoX9amcnCYGIB9BZvZ/SYsmmyBxrxaRgmf4WK+DqwIYx1n0ilmj8nxPyE7\n3TzSAHV/UDMWTvrV4pPVsmFbUTPcTEe6ih28mtJInLP3FCI1SVzEn1JrBXzD\njPfMVI815fnif45hMODJHhZdE3IkTnTcgiOPoezU3xF+mKZo9QbysWJdmQlj\n9lkf\r\n=HoVj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrR9+DMdM6npyveJP15IoqoXSpY/0PAphEuDqIok79YgIgcYoJQM0JHjW831uV8USPlLpfFJOWXZNv6y5S14q1Q8A="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601968645268_1601968659161_0.9342923874556306"},"_hasShrinkwrap":false},"1.4.0-next.1601974526442":{"name":"playwright","version":"1.4.0-next.1601974526442","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601974526442","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VTeYiIdRmOPrO8OFuGoy3Dzy4z8fDnSagT7gMeEACAjxwFfeNnwjQ9UcHw2jUADe5oTFTNElNoWqaKl2ApZtCA==","shasum":"3bdcab3e449f120e03478911848606bee1b4462d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601974526442.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffDEMCRA9TVsSAnZWagAAlpAP/3O0ZmNMTG6QIzyOR929\n8nVPJwzCAuJiHEBztblPfknL0zBF2L/iJs2hnNFvCRy8J0gG4Y3LW0F4iF6/\nfgSfOynTieHhWR5ZZURaPV3pQo4+pcUBc74qcON+ALd0UQbQw1ouFoUuZ7Mm\njciWaQC4qGxz5rMMXTF778cSQFNkPuREUvbcwIsCBiBlIb9Piiy9Wk9Tux26\ntrOsrJycrBmlBkXOwqkoPomjuZ3vChjJd9Rq2MNW3IFPuvWNGB/LzcwdT/U2\nsO346Hy+DENXnkwC1gq8KcaSqABEwFdzoim1E4Vw7JjBRbCh2HP78YBxuwz4\n1a2HmPdPILVri34mKNBKkbWVE3mpdVFTZ+kGP6wqMNrcZ2vmzAVWA5JdnJKn\nzSea6eoD0PvyLR/8FFqHtkUxx1l3y/PEMp0SE8SNBiZ5zV5fikexiJ9ve/f3\nBXwGsrrYvRXIK4hdRYcLcBCFo9+sGaafUJ4yNPT/k10WzZpoAwUKWZUyrwhr\nDpplFKlqaqPUBmrANx1NiIwmRE92o+SwiK0t7La/lu4xHtzWMYE2O0+apkYg\nEJszQi9T8oon/8whKJXl+JC1Q5zL5wmcCSTL7Ro9dMgbPWhDyT6ySETDJOPg\n2kkEHRmPOTw6HdE/OtN26ktZPmcyy3+ZtPJ3MUkw6KDJDMky7ct9GNRyeN5Y\nAY+g\r\n=Jv8S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJKqfvqoMiRAu5spiyC0nCNrs+hpOH1rEBZo8vzRX1gAiB36sui4atpBFjZQOJ0GHGb8eY/vlTds2cmCASGclxk8Q=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601974526442_1601974540161_0.792895425776261"},"_hasShrinkwrap":false},"1.4.0-next.1601978748998":{"name":"playwright","version":"1.4.0-next.1601978748998","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1601978748998","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nG7oq2Yzmqqn4TQ1Ei1vSLKTYosnyAB2mVjEWK2Lga3fz43j+27/Lg7iPNRgGMyZVD3j6fpx4fQ8Cm99aR7lxQ==","shasum":"512e8b1a4c4a6099028b6535b5ecd592cc31cb52","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1601978748998.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffEGKCRA9TVsSAnZWagAALOQP/A7rESjc0D3+VJYOKte1\nrrWOiluElxx9ce+EwHIh/xWfUjuKPd1ynXVqYb693hK4UksZ2ikyUm2Y/JwD\nEQAZiM1I+FOv/XhAHzUzqQqpzZbMW5/XlzGbSwBx87gO5+OXVXTjWo6kXmF1\njxwIQV8N8EDyt7smP117ZJgXUY9bXVYHeWEpj2vAJvVnhq2bh8RWWwjRNVbS\nJeP6saOkvH+DxInorC5/vx3R80Okq/t9BADeAw/rKRjVJu/ksKTT6xZNAiOx\ne0/h/1vCfndS26qP1ybZE002sTssNg+6AF+lQDNvFHndTX7F8vw9+i4VosoR\nq0FqqClGiX2SyAsBuqQM8T5s9vNDRwf0r2IIQ1xCL+UYaAByrurK7GhMttEl\n0vrt02z/kSJuVqpymadwMsRkda7Y6/CHfE2b5u0FFio7Z2QcpBd2wTlIWHOQ\nfJ3J/moAG7PXRO7IqtweuX+5uu5rt44C2ePaA902hgatO43nMmFVDkumaP4z\nMpM6LjVW7i2RYN1HJANAIqDIdtHlEFjhEzfvA7YaTcPAcd+lGq42jLbD16XZ\nM0m8tFmVE+/xuuxbFsZkcCQx9Ac3++UCqKP9wTdjDU1DgxHIRpxRprkDFu/e\nBq0HXKJPgB1NodM0VEDYb4n0mCJdlGIU6P17cibo/KtCvYobqezOLxHu2Kwf\n43mE\r\n=3ug0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgX3ZlQrNT4ZxmHCNDkkbPxvD1PRjKR/86WIqxpG5NsAiEA11tuyHn0tIZz0XTiuONlHfVimH/sS6M3a8imnnFVrFk="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1601978748998_1601978761898_0.6275720858067875"},"_hasShrinkwrap":false},"1.4.0-next.1602011346425":{"name":"playwright","version":"1.4.0-next.1602011346425","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602011346425","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rFB0GeAIgLHhkrVBIxTNnlzMHVkyVt1bBdVeLKyuf3MrUTo4tAWrhZZ3TLzdGzFmuTytx3B1h9W+n+6c4z81Wg==","shasum":"65178cf84ecfffc6a01067dad190764863b569fb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602011346425.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffMDiCRA9TVsSAnZWagAABbIQAIYXKUYoKPnrq927+FC8\n2mkherOXx8+Y6syySI5gQub+ZhsErniNeCaEhJP2P9LqQ7Ou/Jr1MzzvGqKE\nUYZ+AI3pk8RJPT7WfVxiR/rFuv/ZTuA1pur4gkknCAi2ciC/qvCRZWszPcQc\n9SDqZOWnYcQzthSL4HhOGTy3O/MkMjRgcJ67bnXYvqWjoupVoVF8rHp3xKTa\nDYef9ZMUzU3nZXYvUung1pQjpmYmVlOMZbeNmQU8eabY1Ef/2bgNb/LoNfI/\nNMCcjF03Imi5BI1iOepUrdDFa5piAjdq+sPXUzCg7dM/DepwR790V2rFr71M\nHwZasBwpPrptCfpuno5HDpKT6B/cc+uHTCfWCTwe1WcqX30n83qbNylWBKz5\neA+R4ZhuxxTe6nTzNPK3Y76pi0+qhp3jmdO0Okg2FNSFY1tAsGl+WIgAOtYj\nvFD/qqsWC/VfLh6fad4g4+kH5TM6iC0vchC6gUw0CiLDlfNTqxVgfIpnFOaP\nTQ3lsxLXyllcJ5rn4UJy+2/5oL1CJNMTigQ7XRu75xJSekaOj0qgm5I1OcYY\nhSkbuyjAG/I3r3MnNM7RmNMaCSXJDArPZaGvriEPLwaAwK80czqbCH06md9w\nw9lV0XeY33BpKOnEtxxKu1gK6/D3Lnwr87rejlX/zZYs8xTKFhTRu1yTw+9F\nt521\r\n=R31Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCORvyGdhwVeubN+r6iZWwWgCX+FoZ0w2V2mS1uTkgsTAIhAJcFE7AgzZF7yqJVLfkJSNFnQGKAw6o0CHV9l5ACxquP"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602011346425_1602011361550_0.5413657352887598"},"_hasShrinkwrap":false},"1.4.0-next.1602020572233":{"name":"playwright","version":"1.4.0-next.1602020572233","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602020572233","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ljmxZWSmxFlV6/+VFagbXzIodD/q6DeNjormMIFnvwxd4QMYgXA9slrWqVr4i0AZp7q84/q9NBowdhCKJpE+SQ==","shasum":"f995f1b8380956bfdf12695a8a369d3beb0e8321","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602020572233.tgz","fileCount":166,"unpackedSize":18891237,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffOTrCRA9TVsSAnZWagAA2lQP/02T8Ajq9T5IZkZy7tZ1\n7pa2oMBLzwBQPDNOsAQchdtMymfrrtmu7HrmHAkv8TJsl/F0UlwshG6tNg5L\nYeDyQJpsNoAkM9FvT+6wmMk+3jcshsb3fSVY4KH1R6gHcnJ+L+H3AP4mVR1N\ngYhuxgdW4lXNKKNBQ2PuvgaS9ydbGGJ0gv89oGaADQMHjte02fU5NKyZ8fDf\nO8Gi81VtODlAwdJ6wqf9l20oOsf5ZoyhG0DnbC8t5uW/mR9VY5OUr9CkWQcU\nKYPt+V4Ey2IwqmYiESxlJ59h24uDNpkUANLNe2Aoec4yddGeksSDpUWVNXjn\ncCY5savSjNhF2Iwo+pZVea0uzWld1EoBmHwz/t+p9YYn8Na4MJ8BT8MQFO/e\n3LupCY9z7V2mRaCpzjNKaTNApWXJuc68rloAbKFBuFsm9ZdzGEhIM+BcjpCC\n8YIqsIAJdIcdfz3kUlB3dnjHm7tY9CUSgU3GPd9zloGkiR50yRZ7Pd5kPDc8\nwMr3rKjEOcaJ4HXRuWwfEJvXNPiQ1Rap7X3ZYxpSFec+3ow7YwAVpubufkBH\nnfOTIwRMyL56YsABQicN0xWjf5L5JscRuHmul69LJqEeqYE0y4g5ajL6xwPp\nRuaADi+bo0qzb5okfEpTOZJSYC7Q7RJ1jAEtXHNOAb+Hby3UreKni7pfN6BO\nyiJk\r\n=Fmc+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBJoPpkok32030CR1/kBsjbN/DAeaFc0sSzbDnDgREc2AiEA+P5nHBDdEp57hsgPX4eBM3tfKWZntGu7FTIHpJZGhLw="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602020572233_1602020586599_0.13584911031045133"},"_hasShrinkwrap":false},"1.4.0-next.1602024798932":{"name":"playwright","version":"1.4.0-next.1602024798932","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602024798932","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ew3TJTVXgI3euvLacxgyDA0h0lJmX0f3VX9oLYjL5HjTf/NmKIpzomcIZ4vmt60l0RAGxiRK8NHrNsBez8dUpA==","shasum":"ecbec954b03c5e8885bdaebd968c487e323ce9ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602024798932.tgz","fileCount":166,"unpackedSize":18891237,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffPVtCRA9TVsSAnZWagAAHcwP/3QEsv0CqwvkkOgOBdXE\n1/KMFRyPG9pnkvj1Hyao3Wldzx0gbipmmN4gEdHydPPryJDaecHt0T0vkUrK\n4bUAOuzmiQq8pL6KgERd7OvGOByWNcAhF7Jxc78cakQtBl3qEyBYw9jiWfCP\nYXm1/hwsVA5drW4IDdb8+TDum7AcR+4murvBhdNlleyBC/8+F4qVVJoSmO3U\nMFnXues2rXil0iygU+liVK79rfeEsMxR5YvkQpUmPauoguc2Dssww21XiDLv\nA/ZUiev+2Y8KGR+WmL1QYSF5Cwluxuwi87tAj465h/21k7F11BPzkwWt2n/v\n6TwogupQiHnx4Oe4BE+00qXQeGoAKcT9CNx/YgtgZ4E+pZ74BHxwr95Rx47O\nzY3vEbhGom9CmbjAmiVge5Oqu8WnL5CVHk7ag8HQzDBUrVY2oM76RA+lOog0\nJ1N+b7ojQU87Yz4eelK9y2h8fH3qZWTQHFvAzscSeSi2uZ54t6WyrpzHBQzo\nRjuijnXU0zXiKaIovYlsBTQ4UnVexmm2zE74MzbSCPXnPFyMvgpzTqNmbArG\ndybeQeeegowEtSGhVDIRprurJ19aEt/tM3ETH87vlmKfC4YZWol5qyRc3wUv\n8vcBNZGLM0wNDB/wimLkMMtjg4p31MORTucjkup6lrkmk1yxcFTw5o6KkDPi\nZMyQ\r\n=Iunp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLUCFnr87WY34t/q1n5Og94LqHCMkuRtL6Vl/sIztsoQIhAPOKzI/vi/0okXs7HwwJ92UZ1z7dX7xZsY4NF6iis4qS"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602024798932_1602024812918_0.5093621093826186"},"_hasShrinkwrap":false},"1.4.0-next.1602044310083":{"name":"playwright","version":"1.4.0-next.1602044310083","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602044310083","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qXAU3RULfoc5u4eA2SSWrlQFYVNLSBiKAZVfDMza374edBBDP8SHb7aYXDAJhRhNcchBGLVVq6U+HlNCl09c0w==","shasum":"79099fec819849a7536f6f60206a5d55b491d85b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602044310083.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffUGkCRA9TVsSAnZWagAAtiMP/iEntADpIXSLGH2NlFNw\nbAj3sKOOSt1qUXVY044Fp03ee1G3zCyIVDPuplmB8VhZ1MCGKfvwvYwjrdML\n0u7c3bVPqJenX/R3dKNiQKmQZSZ4h3wspRQ2KS93RQzcBp/QsmBkl0n0lkMs\nP7raXnzkGzFWysB5UNLZ1a7Cp34WIJupN57ChdWZmaZ7Eir0tQ7IHk/Qw4wh\nH2h/zm8T9rtP2ZRWFMZExUGAoGmXGz7WscAYTy76/dFO6MWsFkkZGpLocbQd\nch0VmkOCU4OXujGliGEd4L2ZwBer+zALB/df+ec0uaDgIk9H3WgAiWJYtYIz\n3zbNHICU0q/q5IRv95po4TOzQtTCSPEHkjTKgN20o2vqG0ea7WOzOKc0RJ/w\neEBNII+ghjqV8MjIB/1YOjoWnVgarimm3eKdBb1Db4M+ZmgFL4pCQSUAOtQj\nTgJLsb7xzBtraVpZHaNs5ps8067WyBxz9FdmEfTL85HBc499FzKC97w2gSIb\n8oMa3bPhspFJ9nXC6pLH4CFOQ5YDIx2n7kjn2iMb3C7Hy6YLigdHdJG5X9qx\nsTK7sEOTJZD297dpboFUM/21/Mvb/tapBJxgOm2jzyXCAsl9PIs2IfU7XGvM\np/g1krcPkxRKkagQ9rKRl2/qaxq7+XotYeCzxtjZayqpwdAr70gN2WguWXN1\nuPdT\r\n=W8qv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBabaGW3CirqP2Ntt5AlC/27QJAqwbGVqo4caqmiACBoAiEA0u5FvR5s1fs6O/LXsbSBNw3WKt7qGZ+IcTP8KNbvCWU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602044310083_1602044324017_0.4470107975182045"},"_hasShrinkwrap":false},"1.4.0-next.1602086815543":{"name":"playwright","version":"1.4.0-next.1602086815543","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602086815543","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2F0Yl6pctJXaFtXao6LhPl1WC4AZ+r7iFjVbP5JqkdEkjgQLswppo425rPypShfwsGprH91uWEGv/LaOMyFGsg==","shasum":"af19688107815c91b0c260bba87c7437c4933335","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602086815543.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffeetCRA9TVsSAnZWagAAYc0P/0rkB8MP0e4DYyUL9GIa\nFuLV8MWtNlkwwYcSFAYSWfSJA8N47UD2cLJV0zFCnoA3I4sa8n81nWahUmOe\na/CqfAmeBPwg7umvPvJve/tvu0kzT1mJ91eWmMovMAB+TFd0jxobNxZ/1EJY\nMZxM/d4eRpRTmTSX7zF3kKj3ZVNJo4pWgVVpFr4vBD7X8uiUU/kqaLf2m5kf\nOWKBUGKodYpDF8J/O6nEI2M6i0l2XvPKFcNmLuCXWH1oWYhsEmAF5HIqP5KT\n+luWsZCRJe7FzrYi7oD1cLacqiHpLADKKJSdoXSPR/+oM15c9krctKgGZ/E4\nZqYodf7a1iWwv5hvLHaAkjr+gTLRvxlXPVNHL9lPiDaH6LIg9dYa5QkSvSlT\nKcOIqymC2tiFC8g2otnCWXaM8ZePT43yAGRS+n6FaNL0l28mNI5Y2C/5RxU0\nMpv3Db7rurncnBAID1NtyVqoXOLGC+j6bU+onIR58ex4aqRAj6udGLu1ej5O\nmGS+vFO0ebIza+kRHoMeB72qUUDE30M6r1d4xsOey/FSKXGrnQmcmuX7VCzC\n2lf8HLy+gFvvM7DRZ5L+bsapfg6vzHckPG8XhaEj/keY+dSt+EPynWhnsxSL\nT9DhRIlmEhJZEy1aMYzSd1R0oN9Gnn15zTbttKbLsz1TodpxBwnRpl4vudtK\nSbgL\r\n=OKcV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCPM2l/cKViY1TFNP1X4v5oWzEj9Z0KkW+5dtdZyf8WQIhAIOelpxvRH13dgr+a3eF7x8Nd7o4MPzUTrNEoNVZ5cgt"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602086815543_1602086828995_0.09752123872136753"},"_hasShrinkwrap":false},"1.4.0-next.1602087910223":{"name":"playwright","version":"1.4.0-next.1602087910223","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602087910223","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KdeGnz8B5vRvHyUW+ePV2+2Nuk652v0crf+aUh1oLKHEI2YwBzMc4peiA9HPMLHUifitTIEBeokSHRfVpRqcKg==","shasum":"1bab66bb13e01c3e0ab3ac36efc54b558b75218d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602087910223.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffev0CRA9TVsSAnZWagAAxGcP/3h/AMJWeY+1HEWj0n2l\nzSZi8Jttt2AAYFFJ5i0dz/B1+gPqRA+4E5r6eC8SyHSpCHLqoOKmgImFGKPi\nMkYVgk7qX48J6GCd5ed++8U+5zbwG6L5k7xnsxHIMJYSSuyk9rPlxn78HSA4\nOtZ5vps8UWU31ycnPsO57ElyTaRCFwlJ6YmaNSw+V28/RvdEKX6lyPxrVYmQ\nz/rvjbux2S5RtlISzQiATwdvSmuEQDlOR7t2TmIeCHlcyu+UFX6cKDWyeq88\nuDTvTlFGq6HXk0Xp+CrlfytbGcmNbDBoTd66+W7Ocx4JrsEkY+4SCMjqHEQB\nVGBg9fekaK55XDjzaKPMXoQdAXA4C+JuY39bCR4eXQ/c/TZDYwUA/NaQU598\nNaXhsLj4XJmMPkNUTndX2tY1DMd624aVF64z3QupL4XYRW7bDZ6XGA6phtju\nXT+a8A3yV6JTQ8FW2MFZemapiizAii05DhOM9LoiRUOTFB45mbKyNJ4UJTvg\nNTmi+ebphCgSuNRD73OUDH/ydafhzKRzd1S/fz6dfXwmSS/uRXFjTlhybXz0\ni7+OPd4VG+eem13Ja3c/Pss0/6uAs0gRhsZDYese1HgbH8FINGIjL5BZFTHr\nqvt4eBCDa5VDxyGkOQ6CO7nvRcmq4kaeza8iDQKDa8nr5mWM/hR7++YuoEib\nFh+H\r\n=fu95\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBiytqOpS0DFtl/nUJw7/g3ZGyd9xiGJLjutpJpxvWkAiEAhcMCNT1Yd1SKmjMDypqXwSm535KBKQzPsNTC7AOpxEQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602087910223_1602087924118_0.2412339123720939"},"_hasShrinkwrap":false},"1.4.0-next.1602091572112":{"name":"playwright","version":"1.4.0-next.1602091572112","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602091572112","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-62X0V76yS1I8DVZaVqjTlx6cR7M3qL0tg5i43jNGFLfYE19Z+ZQLy8KPoL8GdFyFfPIZa1m+Ewk6MihJ4KzZPw==","shasum":"69b04049bfa516561da1dcbbfb094ab9154bdb5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602091572112.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfffpCCRA9TVsSAnZWagAA8JAQAKAM2uHEpe3vNOjCYvG7\niHJAsBl56Gz23sVnJEIXa7Cr+qCxQHgharIYB2BZQO3M/UzCTT2jJoOuPdas\nxhTnrq2BVSj9r0bR1/QZxVRIcMSIXqv8Z39GH9dDgsJmUQc+gvvoL0EHV9Cq\nLAQpoeDipKGAfRouhnl/Qj3XgKDOLv9Cr+/21iElJwfsH97VJT8qCpv2/aaK\nEKsZTDX24HHg8ddRPeoWv4djUAE7j1E3jDuCvzIIu5Zivmxouq2qIf1aqCVZ\nevEl7pBvlDYuKBcBXXzoGGg64eqd10Fixr43LElgUDkgmTZ+I5HiurKr5whs\neBIJZ9Mn2xIF4l5hKH8xQZWsMBYEnSKaOpjBzeotSDBI3yrw6DjkfvG56cT6\nZ0pkKUOxkM4y+SZgossYO6fUhnIIEznayGQaqODRdQ2w/u+hNtILUmAmvGdd\nvIb9rRxNHBU0Pdj/WPHvGsQB7jwH7oZfhcGxtL8uhlQUjAlRnm4Ue5B9L1+o\ng5TtMQ8c7PBK410vfWM2vO4as+TcvWaiDC+UQHXrQPS0Cus1Acfzi6U3nCHd\npadjm/w6O0boSG+DCZA/QCeDp7Qgms12Ipf1P8rFzET8NJPBEI/9uhegg5+1\nBKA7U3ekxMFUfKK0jxsVzohLPGk+rnHE3Sm3Lq2DhaEXk8Uznv6y9I9d3kko\n9CpE\r\n=LAdP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDndhBkHHUPZIaUFQ2Jzi9wcdvZQQ1mxa6Y+uhuQdJc5AIhAIVCxKGZlbEvkgCw6gthM2QHVmr3aHlKkEBTJ6mOJkIm"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602091572112_1602091586014_0.4979031286777822"},"_hasShrinkwrap":false},"1.4.0-next.1602094252123":{"name":"playwright","version":"1.4.0-next.1602094252123","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602094252123","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-iVopm3GNuWqWcqGnUIblromsR5OafJcG0DIi4MpyvjAECFJ3RwNv5PPtKPWhFsSqcG4AIzN5GBvq+5ueR0JrkA==","shasum":"9c02d8e63b2e2458f6642108b2465232ee88bea2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602094252123.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffgS6CRA9TVsSAnZWagAArrcQAIS2MzgWAxyRIAdPcIJC\nvey/g5s2/WhdNaj4kVn9qlH9N255T98Lj1e5y6ftua6y2v/uFrpbIdyzVTO8\nFfdBuoeJqZp5ayYBaqcx/ym6FUIlRBlJWF3Hv8jdJKQXQOpbGgIaibuuCf37\nJCxd1L1iMX8nPGTedGGAlbEoex/2O0BZ8gmIiSZPm3cJ2AKFmG6BhvkCzkL5\nWFGc4oohJwq1zQkrNFjFG0fX7ofrTvt72jZilIPdKBgTqniFiVSppCuX43YW\nYUJ018jzKDu1kLnx2uMzNkU8aBCUdJQKCDNy9zVPRTg3qgBxEyhPcK8L8D7d\nAMX5ZFBfsAkhlK/aClXSowBuDxB+P2n0uX2MS5Oy96DdjvPGWqeWz1uz4yHB\n8mwT3CLVyPyb8y4P8+XfQdXMPJ1kxdedH6UCtIEZfug5R0yVhsPIm+Kl6SPl\nTZd2dPgIGrN3WVtscxlevMIARAtf9t8LVMmwDPjxJ/nH6NZ7o96hrT71Ivof\nY6z+oSnMlZet22N2IkMGdXUtYej0Gdnda9W9qcjmQ4YF9gsOiRLd55MkmokM\nVOC2qTJOUYk3bpcaVEPEy0M2AcA7Ncs1FJgv19PzZuHNfrbGzJG6qyeVJof4\ns5/k0q909AOaOLs4KjfC+RZafp9jDXOInUq/m9mxAe23UGCWuyCEULyLmu6j\ncSGv\r\n=ycoG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhDpTo32wJkaNYb8iFydgnZXjeAh5vaZL2HbhB4sgA3AiEAk/2t/rb6MmWJwku5oXU+RTdjQhXAAJFXxj8QB98ur10="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602094252123_1602094265307_0.873216607344004"},"_hasShrinkwrap":false},"1.4.0-next.1602102429613":{"name":"playwright","version":"1.4.0-next.1602102429613","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602102429613","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-duW4odOcWVjiXUDR3hcZ4Qtmj96vXI1lo+lFkPTLpK1dwjeF88oI6qkVOHUq4BsoyWI4N+M2UIC3LtMjKFFcrA==","shasum":"69c4e9733ead4500005b64b5501d9c937cf61ada","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602102429613.tgz","fileCount":166,"unpackedSize":18892281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffiSrCRA9TVsSAnZWagAAmN8QAJa8HWw5rX+RGSbLLWq2\nIBEUrSR3Do1upW+YxcyDbaLnavgz+NVoMPQREp5k5Aa/Ig80bTEqiBy82X04\n57XxuvrcBWRZmxnIoJmnqTHy5TzOmAU4ReALZ/Nqc70JGrV8MoqMPBy5oK0Q\ndNzRUfv2LC6FaFyuTfR+d6iYS8o3830fBsYGpZohD1dn+AxBbJ6x0z9REqMa\nEzMYiDUHz8qzvMyyrCp0XgzN3YgNPyz9Kj06OMI+DOptr2uuAGZnSQ0Zv2qD\nIIFqQc4mp2HxC8hGK6SlGQIuI8HyJNg3Z8xLrrfbQ8zPDJe4J2ty58D4bxDH\nFeGfDcmcjOkbNFGmg3ij0GFgCndWE6kEX87Hiznt/6kfBdDtivOoEWj9eU3v\nVCv9AFBG19ZkpBkRKVaPBAv1nm+tE83Q5UNGejdDbhbMEaxHHJ7Iid427/fR\nmG3TJTzAQZw3qgmaOYEu/A1BXpX3UkmhePtRx/O2JZF5JimJExGSfu79n0O3\ny2avWQVDwWHGeq2Lah0ajkVsqE3eui8sQ6XhuMRRzVKLbOTSeLhbj44i93qh\nHjmyATLaIAtY/LcKXJoh9DlkDcGdpUOPt4j+0k/Ns7YyGl4mgwxNwnL5DQME\nbE3NQ0C/P/zApbO1/JVU1HLFwrHJdvNXhxysS8acDG93+WpjHLuEii66ahWO\n90df\r\n=DQmf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECN7tu0IBFylGDlxr2Mgb4VSPJHHUAgIu2IZt6lnLruAiA4gnCa9uR/xWzh5rx7ovlvEbkSsUrMI2fPefXRyCASGw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602102429613_1602102442638_0.505699465254644"},"_hasShrinkwrap":false},"1.4.0-next.1602102583828":{"name":"playwright","version":"1.4.0-next.1602102583828","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602102583828","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/c+wEbj+0WOrl8UgvhKIVJC5eM5Q358lQvu3LMrR+q6eTA2Z9Sy19nIBkj7EGBjY2021Tbirfny4YZte9Tvb4g==","shasum":"137a023859be198c1902230f225e80285c8fd94c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602102583828.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffiVJCRA9TVsSAnZWagAAGnUP/3ic2boVnAkBJ2lZFHhP\nnz+szxE87fMfb6MenafrKRmoewm08duNRnrJ+jwi+UaxRoXTw2q76ECZoxlk\nPiwOzEueVoXDKeGGraG7hJ1Ul5pDvKh8kqURgQi69VY6nAPyRfYyXUIAC280\nq9ABHHArmykhQZDfMO9hA+0m5bSMCIeA+I5vKRtJifLvAtY68eul6nXmkTWQ\nukvUxG9lvk0qUP41nruh1Sr6A3vxNU3xCJCRYOqXl3BxHZ4tJFVPFqjP2bRX\npV6J3o8mFyTkhpy+zA/5WPMgywYTH6GLBMw2l2cxEz4zvB55jlPWHa1/h8uW\n+PDiL5/SzZ280kDVgFIBAZ2Lgdec7ZP+zwPxnhHhhgPaWfGTBtjWbxNMih4S\npzfQj67JQr5ixUaDUY+OzgZGz+6yeXribP8CrANtpXHcY8p/mwB+TyGEHyjR\nyzgzzhLixRLZ3cZ9ieP3CDSLcf8yCsuKFLuBOdNU8zr+McgDVPmLaw5Al/eu\noeby30EeeJtIm5cNaoNhg3YAkI9Srb15ZNMGm4N+pWyNYNQCua2Ndke7z467\nwXQQD5oZpqdYfghBSBhjKtIENjsr70OeTc5nwo6yR11/Y0d65VWjyFSd6iyW\nF4QEMYr1n9JBKQwnLsPA4STE5VPTNRxNcxmoUXrf/Hr2xsRjaRmBgjWAGHHr\n5nWO\r\n=NdVT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgLM/W7Mvw0yaI4oxBcrQurQa5+P0GTzECVmsraFcVIAIgc4ZJH5RRDHv773rJMZpppYnJX8DS8dZz0Jeah4sDwdc="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602102583828_1602102600460_0.7876586956678777"},"_hasShrinkwrap":false},"1.4.0-next.1602105256536":{"name":"playwright","version":"1.4.0-next.1602105256536","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602105256536","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-OIW6hUPp4NejO6gatum7ZwmupW3VoH9a1ZT7ynGRFVDDEiGqEW/p9UvwEriEEx3DC7za6bzyzx4EggX7Y5GApA==","shasum":"955380c2bb5cd1507ff1ee13f5310276a3702a77","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602105256536.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffi+3CRA9TVsSAnZWagAASdQP/ilpXSmLG6vM0X7pB65w\nBZRGSXutbn+PvfMwkGgCpjgV7w5UTOlhiSbewMr2h4BkDf2tCs5C2TvFA8Vc\nMTJqA4Ck/3BZ8rY4V02QoEgwAustUzbhO5MUtKz6BjjIvFYLC+bwCykrRzse\n8C8fg8CcN6aS+dz3JZJHxQxrq747rjUEguxXR4aDhj6V9Ae1X3mgIFkNsN19\nNPgXomAxJetkdNhjVJb33V3zb2JcxNAbjB70f3tComIsSy8vujUKDU02IDgP\nd5e+L5JWL6BboWGebcopWV/usAfblX+0K/iseVq341SMomTVJNShTcGjwmRw\nSOokZnNXeuM+N4OPCsINsoDbcX5AoAUZH1jX+u9I5ilte1DojYFBLVCJrzbA\nH6h1vJt8scFnKTquECB7d9OeTAWGVNKZzjC98co3QyKBw8NQRWGT6jBwJUZL\npEO6yRJ9qDJLn9BRa36djPrS+b3hZBIcCOYF8Xlz6lwVWd29gKrF6S8w31yU\n+TeM7y1tVxJp7ohso/CauHDVLH7hOeNjCNgXJOS8x0LExePc8go+N/PLI22e\nTHOrJTlh7qLqwhmLXqH0VNzF0YfW46P9axzYHlItbo4tRXBmd7XT44iFgnRf\nkv9cGPbxpjfum16w/uoJnF0cVaBpoTp2OaEShj8ZFb4J6x5worIEt+Bp9HSt\nndOI\r\n=ni9n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4xtsQzD/JAh/8cSYHvJdUmJ550L3HTEExtyTrwBcf3AiEAhfOfId/7JiLLZpQ1gTMy73hm4M9uPsGIQrWeoJROAyE="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602105256536_1602105270794_0.2934864396266488"},"_hasShrinkwrap":false},"1.4.0-next.1602106614945":{"name":"playwright","version":"1.4.0-next.1602106614945","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-80.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->80.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602106614945","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Q4pjmJuCYa5k3RHvZg4RGL/RoMI13LFRld8C+YAh0d4HafgcsbpwWMylK1p+tMEic7aSDaxdv5gWAPN0c+BTeQ==","shasum":"7f2cb41ede173cc6182799b7857579536f18ef02","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602106614945.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffjUGCRA9TVsSAnZWagAAzi8P/2+qs+jsJQtKzwA/Ti1Y\nLG7zt68wQzyC9+mMFO0oToGwESCgNOCjKd1zxXkRZ35HVtXGUtiqDBpwlmaR\nmKneTU3E8E1Huc5Pun6xWZdZADjgEtUf3OdifHU+/MEnaVeeEm7by5cl+A8c\nPjFI/bacdTeolDBCRj/IwxZC0A/cLBDJfJL/bgulay/4csMeAiM3eyu44Noh\nYAVFaSO/BSex/l7mh9klLMMctHpXyJYNpSjA5aXBcbTc8V9+Bc8QpnV6voQY\noaN2jLXAOUXHfQwdBRrYQH0Sv9yHf/prljnkI2s8PUrdAonR9Cah0r8PlURB\nF1hoU0fMfB299zmRz66yjapBRQhGcZ3eQ5ca8sDdsB4VaI5cM1UmDV7Q1DWW\nUXcCCBnBHgriC4CmjC2eD+qLO9G6q1G0wxTPXexc3+bTARDgQSRYUPg7YOA4\nCfQbMBZ1wcW6TOA+c5sfOfT7yWlO39V5KP/NLy/SwYz1+9iLeaM199Q4USYD\nqtD4aDnvVJdQDbsCFIbwaXRD+3C2he43UdjabJwphk4zjJWqn7aE0VvbCpF7\n+lihtEKaKTgFNNm2jMuR4F7ex+aIxZLooTlnyNTbuayLLRp7plm+4x2Y9GG4\npfmq1JJUISzZeim6fXYYfGqyffCfvrZMK322UCSN74Il2PWxH5U62Obj+CWB\na04F\r\n=FwRp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCq2V2MdlnBh1QXzXC/zBxktV+byAtL49+SQRhy9zLMgIgM0VKxp1gck8JPHE0dIHwvdfrgHklUHsH0w05FFoqIpU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602106614945_1602106629707_0.18786039050129832"},"_hasShrinkwrap":false},"1.4.0-next.1602118085591":{"name":"playwright","version":"1.4.0-next.1602118085591","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602118085591","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ycFQUqqO1jDSns23/R/PMjtnB/U3EqhCzG0VmpjoXtFrV2U5cltOTcSkm+YYvk4g+gThEGwadPAuXEYVCFbAuA==","shasum":"faf201dbe6b0fcf838f0ea0bcee17f6473230493","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602118085591.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffmHSCRA9TVsSAnZWagAAo/AP/15MtVc8yRmmZmZFKLk9\n3eY/jMytiA9COVZpvspMz3OFIh36VBTbXDxjV8zfDR+pGCkDfZH4ikhgr7fs\n6Sg0N/Ag5KR9L/ZdDJkMrwReNDbUNZ+X9DtJqLQF3UEDPwnQsY1jX37oMfiB\nriO/0pZfgKeJlHdgwXUxvl4dwl98SzqoGBovDwWIGtCYegaYC9ZDzk/a8aHz\no/UP8a05/5pXoxA8h+jiDK4njZEQEr1w6M6ecpbxPxeGvwASu1m4sHxSGeqT\n/pJQHsOfn5jtKFb+98iPE+H91IC3G/VqRE7i1b5AvQJeIsW4yb39Ga+Nwqy4\nYTmgJTGGCsfJfsAOS0T+gOoACdWVbpwZaMsMxyqtWGwSSm1CWiSTpwMgIE8J\nrXJHGO10FUNguxlS6o1qRaWBvyc5sUQRdCsWAywsPzzDEzqyjHeUMP6/KN2Q\nzye3bqmdsz5EAjSmfQtIj+n6Ptsd3KYmy3Z2VltwTRGoIZwiMyfBbxBt4PZL\nsAaGJSKrhQaSPonld3M+QrQtS+mQ1AyzUNVLSjlLdbHtEJHDKMaLcP7tj0xA\n7HXG6eAmRj7dbVg2OOcyYKIsrFaul5MHnldnitGSzMHXpA9Qqdh+vgDTQT2K\n7E4mNLeVXcDkc23Cf596UKC/OhyJN5HUsbvEfb3TEtHkLqTzTt8UjNFjKtMl\nuHzA\r\n=LpR/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH11WxxHcvgoHFGORnKhUG3SmDbwWDYWpPkGuRy8xciJAiAjc+iq7FMLEq8KEdhwJGRFEVDgQidvACfXnZu/S/7ycg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602118085591_1602118097427_0.1151030657453942"},"_hasShrinkwrap":false},"1.4.0-next.1602175670002":{"name":"playwright","version":"1.4.0-next.1602175670002","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602175670002","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-shcch2ns2pJSpl9+VDYogQaYo0ds9m7wxntFrSE9B+7XrBT2HU3kN00yrX9VbZyN4D4bPBwxwox3ZLm+Evdw5w==","shasum":"c4129e87ab8597b5f1996f0973135945adfe1cc6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602175670002.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJff0LFCRA9TVsSAnZWagAAYTYQAJj+gvPUk/PHIxawagF+\niX8h/VZE/ksBuQZDs3sd3y2ds7oMRzPucFq7ZMjT0TB698UJCb/xIhg2MVPK\n0I74GdZslmDlVoMxOiKRENGyeV3l3TzSrnL1iDdMdoqIwp784FTrEECX1sc5\nGfTcDzUfH90lJwCY2hqpoh0Y4bw4BhRO8Qc7/zKBCXtuxGsJf3YhqMJSfaJu\nUj2nwdDUvI25PV2ekNrInDvaJhK+5OQVjH/uPo1JxoCIXqw7MiYSdJ7uXqRd\ndM73qbeh01TVO9kgETo4JGICTUQYbY3ITyTR8wmbC/IALudreRVxgHh6cP2K\n6lsP7LTZJIscLOR1J6xmRsjH/JwAmNuEvFnwzmrEoVBLx9ky2TRWD0n/hwa6\niyq6ii/J4oyuYLqfHRul+ag6+zOo6BUb4u8nJZII7j3THJyKwZX75/cSLOJO\nAkaGXY+SmECOvsqNgiPwVx8Aj8BM324qVTKqv3oHp8S5UdLZN6RmFfu5M1pt\negjchcFPKh+SQDgfl94nABZ5G3IcyaxilJkxDq/jMabfSPBOQle56Mt4h99z\nuZkdv8pY09vJQyOqh+GuhKOkTgg6PQ2LTXfX8PStTffjBpyCDoZABufetkyB\n93i0J8IG62JJwoExX+Ul2b0AlOTCMbXRF3ZcRV+6K48T3RwRzWxYIcIvzkz4\n690n\r\n=014m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKKKuvN/LEWRDlAxwKf2qwHlYNUR8SDDAdBBb22xMhZAiEAgTG2cz75/pudL0ej24+K7bpvzFyXU8hCeQTZmSC/C+8="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602175670002_1602175684752_0.31582066284178056"},"_hasShrinkwrap":false},"1.4.0-next.1602182727430":{"name":"playwright","version":"1.4.0-next.1602182727430","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602182727430","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-QqK7ZxO7/a9niGLoDzzJVGPN17EgXaynT3kdiM445u+XrTOPNMUHPCQthtprELQNF41opXT324TRg+UUJKSbYA==","shasum":"df66bbddcebbe62a650f2b35b98741ff095b3abf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602182727430.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJff15XCRA9TVsSAnZWagAAGbMP/A8Ucq+FgfptI16+3sLJ\nJtA3RXeOv2Y9agVX0/ubQzIcOQKNJaHrBrd2wdHcj6P/ot0kdcpfZAXjpH3E\nXwVIApeuteGpc9TYyUDwjNzRZYC73Rg6sj0AzKPGgw/dMNHtB5qQouTCltXj\nQ0MOyLFWleaKSunZ+4+h7YyIBCI4dk6iQixZ0RXS36HGX6BMkEsyyOq8RYLw\nfrCMOtsOQnDK4D1yLdQrnHuYCH61S+mS6S5jyOFh+1unTeloOB6FWWipoUFi\nXkYIEHTmjoHicUOQhkmhNmDDs4180sfv3p16NVPRJQzLMEFdlAyg2+k/M/R7\nFc5ocPS5Fesg7bm14ReYyR5SfmzKSziR7O2VFXrg4CEkHS1U7O1BZ/mmEsyj\nmxPVqYnD7WstVcVoDpcVVzuf1NnP8KQ20oJB2SFty/4lOxNWu/m59CE/WB/p\nuIUrK+MhHTUFe5ffZl+2gZVx9dMuVjy7kOA8jqIBeBTvILpIyebSA5I7zOjv\nseMnNdjWTlzM/8Eb0krxh6hp7ckdnmnXyj7Is+/ov0veZPMZVHrKCVE/72KD\nQlDC3BUCxFEvPV1sr+iPRnxrVIBZXLUpbJ+yx97M/60pOhUSuttyaYm0zTpb\nWI9wxAIKoYKS+iax4bE7IAqnvWmNy0aG3119lD1O1RoFDWQoNhDnIxaLH4N8\n6fvj\r\n=PDDM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGZlBWbZLj5WcK/NKeR5OCRGW53V+JmYkF63Ud2pyLAzAiEA8/o7NiwiQJLRpLEgNYYFEygknujkCFBovvmq38ECfDI="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602182727430_1602182742709_0.06117812653910337"},"_hasShrinkwrap":false},"1.4.0-next.1602183299041":{"name":"playwright","version":"1.4.0-next.1602183299041","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602183299041","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-n965h5XcyDXfLn0t7ADbBHfmEj48ke7NFtSb5vpsqvVBXSFpdeCPeSug4nL3PR1ANTN/FL8nyWzumZHAwHlsVg==","shasum":"1e46be789b451b75ca82723fd21f06c63a2bade1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602183299041.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJff2CSCRA9TVsSAnZWagAAUY4P/3Bhch3ifxaq1cimwBaD\nbvyVYT7Q+FfvV2Rj9GcDn7QTSU/P/u8r/BAk4GM+4XY/bDkH5AaGIDSY7KuD\nFnAxzknx1euGrJRpo7o96Y1csxJygamrTRMj0zIZoc3mbvHR8ceRMdlk6M3A\nXpdIgMeavy6gxuzlm1TTJe9AXSNSwhGLbycyBqn3XHOrEOTqFF5kQAUoUJhH\nsCANjEfvPD3z1vt+QnIoi3ZtiAM9A7AFsu0Od+ugj5ilhHPIFq/S8gNM4Ysa\nZa2FTUyhYAJxeWvmrqvyNE1AnUnTUNLwuxp+Berewp3qYp/C3grujQD993Ho\nHW6fFSzfWGQbnw2jCBfB+3ErswRT6IqTQ9pxHyJcW1KIlYXseHxlIeUI8xGc\n3YzYBidaO0bximzHfUlW8Z0LtzEGV1mXbn0+/AnN/qDLLIphzewTkP1t3SwA\nxF/2paZkftgth9NstTIPgp46XPCSnSKWLY5di2fBb+FZ3v1p3LdkeGP+zmrT\nrmT78guAuJjsu9yoDUJEOvaiHEfKsfRTtQh24tmKSNRBfyDSUEJBERCEbxtH\nz10yLxlZxeQIbK0oBSm91fI8Xq692YTLfxdP+ClnJ9sPFe0xzGcn8i1JDhtW\nu6KlUeNCZywIZgx3az3taKUVORtnwda1fzV1G9IZTDPq42LrC+TPIoGdfG9r\nMcNT\r\n=Lh4L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBuTe3TRzBaxlU0ewp7JtcAFaEH4/5d7UO/N0rAE3fi7AiBqw35YSRzYixCVj5Mns/r3t+YC8Fq4QOLHMvHhZDkKwg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602183299041_1602183312652_0.5697452917829127"},"_hasShrinkwrap":false},"1.4.0-next.1602205676622":{"name":"playwright","version":"1.4.0-next.1602205676622","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602205676622","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1wTfDyoMOJndfyo1H9qs1DhmwrXsr+TckYySp/M/t9qiLe3/nnfZRtOX+M5VCF+Mxm/JGIZyTLOIh1aCcvRrsg==","shasum":"f673227316e73dca6ae4df527a937f4790a83923","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602205676622.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJff7f6CRA9TVsSAnZWagAA95kP/2JERDiPgBdIVuW4nnBW\n6gwWDUBYN/hIdxfG1AhctS6XvGDCYxNsuAcxroAOQLCdrlVRNIajfp24mSYG\n95dS4ucF6bxknvJg736HZHEc78ENCwHruHkgtwjVQw77PQgT1j2TlqZ31pcn\nVtEzVv0Rh5v6KzoEAkeKRSIgRrstTW4JYBBTY7dszr4gO1ReUYoi+7/lEITH\nA2M8Txe1eP9UaL1Kz8/4EIVVMVkdRLBDDnLS+BXrvJu62o++rT/i6EVz1gqG\nX2VaPWO3h71kdfax6k/onAIWDZGwI4fzpcJSI9X2BGF3rqFF8xazn6NlsR05\n7udtElTCU2z/2tTf3VBVEBH2XhE7ZvDX1ag3c7NkwqJVN6DR9ue1L0fPDIWx\nOseYBs8tJ83EL6aoq/fGtU5O8euANpOK27JRTaPfYi0G22nX+Vfz9KfkxIpk\nh1s4E+sJ2LesxvacdMVnNx3j6HZAi6eADZ6+otkrBIyrMVtcnMxXvsKPzIgJ\nJUDoxWXbF/PIP3EB2EBMhCFuMx5qh0uq4J95N7+lQ70Y3z4UWmkHbgnYIDnc\nAlciUHpIm+p4PsA6iCUQbZVv8RGffaghjTjIDLCtWAfrfKp0ap0cN0Q9Xw7t\nSRk+KdbYSdyiXSTmMh0UU56e9XJYOlPzJgKSV1c9cOjWZhjOZIo2AYGiFmRU\nZ4VH\r\n=dQUM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAeXvm+etIUa9RWq2PktRDvBrbf8zfRSUWF8SEYpvXNKAiAL60/QDeawwryRqw7kG01JmPKFQu9MpG6zTFzQ09TXKA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602205676622_1602205689823_0.9888539969770704"},"_hasShrinkwrap":false},"1.4.0-next.1602219946954":{"name":"playwright","version":"1.4.0-next.1602219946954","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602219946954","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0AZGiKGQgoi5sAY5Zog5UMsQ8BXFZ/uGgctLlSkIRvlmQOBLyyAEaiqfE0QRGQHRy7yNs7ewnmhtsR42/Ut48Q==","shasum":"373962d3052bb0ef79a0ae2a884a0890f243008f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602219946954.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJff++5CRA9TVsSAnZWagAA7U8QAIy6rmtdjeozM4njhY67\nlac8I9ZbCl2JJV1EuV1FFLH549lmNhC0QBxHY8IrEJfeuHq12MABQerNNsmq\nBxi6J//SKa8/snBe46shKAGrrVmRbq51hbBJxbaP2MTfcp9NInRQ8xPYtC0A\ngTT3cHz0UPoJtloYFuEh14SCxATaR10PjbAHJQp30Vrgx0M7JSXoUOChunA7\noKv1VUV7sKBOz5BQBlaHLDRCkc33PedWnZwmQA/u+iQD64ZHbv5GpjJ7ATTR\njR26eYYmLV1au9FOmHWgRbgKbPZZKEAzQc+SHnOj7FsTBwZG7Xy5y+Vy5JqD\n+aUEjkO1aHlVC9PbceDgQThMXCO24PXf+yXJ/b/SUeMqFUhNQfcMZcHUgCgU\nsgW3Z1QWLkyXwQL+YwWM+v3HcZYxsxtxFUBn20l15L5na4xufXsFPYLwzG19\nmtxlLysc3A3GxOkm6unjQGRrQX1+1GSyeduflkkpXhp2twXYiTboSn9pz+IG\npNgBI+p/P7mzqsWECYeYpMIj66A1go6t2GPoZQ+0I7qxHXU7zkjscQ6EqGc5\nTioSgAWv9gY1TcAP9N0nXYm3uQ9/FyGxmwnhiUJwtlSmkecu5224UpFIjAHO\n3vs608OlPWb+T1dW/6ySsQp6KnDA+Z815irti2l626OdfMNkuLxuf5S0IHqR\niIok\r\n=S60L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPm+lw+6WIvCPHMSW1ihWp1XO9Sb51YrOBeKBjyU93xwIhAMlBixhdP7VAeILUcpGyT23n9DniJbMc5eebQxIx906N"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602219946954_1602219961175_0.5652816408227854"},"_hasShrinkwrap":false},"1.4.0-next.1602221421021":{"name":"playwright","version":"1.4.0-next.1602221421021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602221421021","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-mmeVNeBKGsNaIhXhnUV6quO7XIa8KZT/rAxwps5aHnNpMmknA2inPbPu/YNjR/6Txk7ZGRuhJHGE6XB3QU8nPQ==","shasum":"472a77cd8628d5e7d394b426c0498bad814f0cac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602221421021.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJff/V7CRA9TVsSAnZWagAAX3MP/0N7VrGXDgeGbCnmzx4R\nOmrC2gmhwQk9hbk58uYFxtuEwAFljHwkOVNVTAHonWt0+G1tjJG5gGJ0ymz2\ny8OanKlsViu3/8A1hdacgGSLmWxyob//wGHhhkX7B7x8X5qZa4AjidT+agXI\nD9jbGwW5JbgwTTfXyzMXhnYt0X/YvsVy14WvzfVofKIoRRGWe6kCC0sjhaeA\nCGdxrpmSczNRFwlpXqAUG0ffQJpTGd9wc3peMv1Z1J8Lr6LIYCmiEc/9o1Y3\nsE6HlE1R7XbnKwZOGVTPM7A+jUqu69Ue+8pTJAA6VQARcmo5idV54jBSEF8g\nXPi4AxlNXNeBLa1mrQ3pxhAQ7aBVL7kgx/NM076+iM7BeSC8QtSfGULOisMh\nZ1O75QxIAMMielQro1RGt/ftNOiTBIbU1+r2zk+xlsSm369Y8pZn+dMCL8g/\nDKHXAJfQPa6U1KQCrpY159J2qM0zmQFeWXSNkeHewIk0z3Eqis0QTcLW/CZ6\nOxeT+CFfdqeK9BlXMluTp3JvINqMoEaIcTclTBKXsMVBNJz+aQGlVIcOA35D\ny51Xm4F2jFsCnPKT9mc34ny3/mUJVcLcsFTuK0bbSMl+NRnr4vip5eYkKDwH\n4pRdUgU8S/HLARkSlJ47qwtf8gNXOffhX3iJeIMDHDOtjEz/HKzOoMKhLP9k\n/Drw\r\n=IGLU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbzghjx1OXacHuTzBluDxIWgx74WdiDsOLA7+jXkxQNgIhAK+iL0naSkIk9MYgsHdkzwgRuOywLE8k2ia39bjDbkT+"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602221421021_1602221434303_0.5026027950425165"},"_hasShrinkwrap":false},"1.4.0-next.1602261306397":{"name":"playwright","version":"1.4.0-next.1602261306397","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602261306397","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5Pfo9pzxMRaTwHlGdtf0VIuQQCpPrBTovujU6OI+ADmRRsQaUS/ypkOIVlAxPyqePhqXxwuVWh3rlffL4Q9pKA==","shasum":"705f3dd76799f4114875b6f8a0565e345f70978a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602261306397.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgJFJCRA9TVsSAnZWagAAd6MP/0awUUtyhg7G9lYyFCuX\nPtkhZQWPc1RLj30p83w3GlkMVIEpsolhedmyY7ymBkTOuXT5DvkGghIoBHyD\n79Ssj28EbQ3EF9Wnv3jkRV2GT+hIrr4R3eVQnNb6GgxmjHtwJeIAXM5+x9Vt\nUzQWVtBTz/uhNAc2BTcyCl5KsyjiJ+TrKDMGTLGAsQystbOALJ8pjYpP/vFV\nMy19s4/qTlJ8yB5mGbyShC8imCBToPezTMEg8mSIcfSYs29AJpmDgvb6e2+I\nobCuVRg4N33cLEn/hqjA7K+eToawktfVmoP/oGGkLN8pdRR/9DHXs6piJ/dR\nH8GT8kBXG4KIQGzBdENvA/4wVJgpzyUqROFxjutycMcaLdf6UtXD7MBHmajy\n4quEktOujVnGtTgoSB41Rqi41zWEShpU3zvOEtX1OoqtmvAcSR70C9zuALPO\nb+XkitFWsZ+u0a4oOWC2e/rLY06Z5fV0+rLKzuvHXnK+46O1KIbkTcotuV9X\naxub+kTXMFSJHUyyNljVKZb/E/qFYwx6W4zwKwgmFKVdnLpCD7Q0N+53VfuT\nOEH+gdwztCxu2LDBbgcL1hDno+OXaiVpDcowQzeayUF5B10z01Uq7h0p1GLR\nuVsNgsumra1ceu4xKCB0HiZMmzOlCLZyJD/xZj5WlLHEO4cgWl3J4vFps4lS\nO1MJ\r\n=/swE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH9hjkyM8vcKIJ+/cSyY0aG0YsmMus5RrZT+n2vXpAMxAiEAgXy+He+6AeQzbib7B+3TbmdvZs8HkQnXH+cQJ1QQBsA="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602261306397_1602261320914_0.1740862313893754"},"_hasShrinkwrap":false},"1.4.0-next.1602267320780":{"name":"playwright","version":"1.4.0-next.1602267320780","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602267320780","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qGXSBzDRJaMSDOwbiFBOkK0r7+7yY2hwGWA0+fnwGxstdE/kbpds/UCDzeTLyQW+/+T6QCK8aFsP9LcySroWQQ==","shasum":"229cbfcd58fc8128c22f0315072e76a8e356c624","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602267320780.tgz","fileCount":166,"unpackedSize":18892645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgKjFCRA9TVsSAnZWagAAIrAP/ird1oI+LLYn+9jHH3bF\nLmli7QDF4CDyQmoxtO/UL/ohMxGZmuaEqDLPrVcVb4hb0EZnvN6s7mzoQUp/\n6dCmjuZnad5iYQtmdT0gYj2xv6PNCoLozpAFtrKIH7HJ0PhF9RZMI07G1Maa\nctdoV+JlWQ/EzXd6sGmUfbos8QL6CnEdpbQ3eXP14NPPfCuX/O8b3bJ9+rd4\nIQiQd2uaEPzNmX5cKUS2UBR915dy2UQgsM9NOJeAYlBuVq/nuBYdSPVQ6P5x\nbyLDD/Zk264vYf80MF20IEM7PElXzQSbmCT2jaCrUdGngNxAHsCP8wZJ2K5I\n1PlrqBqzsy0KHbtbtcqssP16/lPDQt+QVer1b/yol5Xp7B9/Vu4iWWkDaP7f\n0TVODi79d+mFCXYwuyjQj8lu0+3KVMRuiMKlA1wMvCPhmWizVpKzdwHIpNCh\nRZ9pEXwNHFcbF3Sa1aqggF9uNutaUQF39VIdHqtfsEqfufqaUk2LgsQcsHPG\nEw7Rduh8g1ipaQoEO6hELVCuBUbCn/1cQqT/jeaX3PlL3ybfr3rZl2yh+tJk\nNdmZIHS6t1RXqqEAEHyYHK4MJeaZSEiWukNQ6KpVHzG4FoXqCK32oxSu5mJa\n0K70NXhj6/eiWqFDulbfXI0GvdqaKKf0bC2W1wdLI80mPiIgZGft9Yvici/x\ncWQA\r\n=dxxw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEKgX7fJPymd9qSB7YIzkYT3nSdJ1NsHKDxVt5eqf1R9AiEAwIQDNZUoiwQ6XtqBEo2z8OJSZJ0+t/TRDjOs+qi8YXU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602267320780_1602267332602_0.05156865682532508"},"_hasShrinkwrap":false},"1.4.0-next.1602268229295":{"name":"playwright","version":"1.4.0-next.1602268229295","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-87.0.4271.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->87.0.4271.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602268229295","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-SyRXMpH8fdWyI0Mwp7x3mUEw9ReRxYCv8BJ5Z1VxS02mBOiNMm18Nwz1YlMjH04kXhkhWKq0RXrDR7MemMIVSg==","shasum":"b77ededdf2e8a007fa84432b53e05bf955816d41","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602268229295.tgz","fileCount":166,"unpackedSize":18891918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgKxUCRA9TVsSAnZWagAAiCsP+gLsO0u94r2aCXcvfnEj\nWnKX5zkJVjG/cDdODqkoMveCN1qsdNGvmy6hxhm16rNLuu9Xvz8ctrdbXkF0\nipcC0Eq3Pybs+5DUAneK0OUZ2ToGuKmBNW99QuBC7dCNSzoP91D2cx9H5TgM\nsXIdVWDW9EbvFp9DHTByzG/d68RO21TFc4XzkPGvfvUB31Ql8dU96Vq78nwM\n1hIK5Y8A1Vj65mDDhIc4lgkF55ppCLBvAp80HFv59fMFYOClFb3soCqM7s4f\nJnn+TIk/ykTbXURSMJ3fTtnrhiq3o7aOU4SQvZniwu0HGJbkcZVLu16CXQeR\nTzWq28A6NRMTk0soETXA4PYGTe2yufQ67rMm/S/VUUudk1zDMUWQMEESZzai\n29WGn+o/fWQ3StjPjAtV5FSGpWPiZkNh284N++TSi9bccEBzqkf1AHRq8bLy\n8xAXtD0nyHp0K07zwTke4KOpDbjb9yvIwbu5+gQ08xpJ7oG7k8LrNe9Gq4qN\nXSzSF5ZHBwQNY1/5bli62KafsZG3762ozMBFVCpt0tEH+qZFKyKYCHFiVXLI\nIvTOwxTfijr7wQqFn5SU0JtVlMFV7BJlUzVQlS74MwsfUBNBrSzZEhqdwuJp\n3ITBaTU8WSntl8+p19sQpThZJjpH8PjoNAeC53c3h7LZHgNHRoRxjFTlUZ5V\nf0Dd\r\n=iey1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGItKYnP0KQf+n2N+Dg6nJof8RuRU6Yq3JYkF1pwpBCeAiEAh8d+MReFAOp+CF+jj5Snt0YfdJsw8mJZmo75eGhwlPY="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602268229295_1602268244210_0.6633026581210821"},"_hasShrinkwrap":false},"1.4.0-next.1602269246657":{"name":"playwright","version":"1.4.0-next.1602269246657","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602269246657","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-nbz7Bw3qyJUzrScNOWR3jfW96FZuJ52nhLGBNL0nqygcWEq68S3yoL40iUGx3EiszH5rnkRjjEFmfQeJp81B0g==","shasum":"c4595b82b99a052961bab427c8bd2e025728c21e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602269246657.tgz","fileCount":166,"unpackedSize":18895959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgLBKCRA9TVsSAnZWagAASSEP/1+BeIsI1hbt7OIfXlqw\n8A6W6BA3m5eRK49iDmRB8hklNedD+ez/msn4mWIhU2FNOLPaAdvVnQcnxqf9\nW2U3R87OaY0JPvLLfJG4qCcUMMw0B7RZvXqDMQ8QLwHCgJHXMyZ6kbIuqBve\nX+0bMdtti9EQFuwnx2pscLbSJ6QdFvCLL2xbYywNdcQfFQke7vPKBoKiw3tV\nReSEwg2Ezh8pNVPnq3P2eLRsiO+r9QY+WVfWeMgsezbIEnVg4TZM9Wmyjq1y\nI1iMZosB9FdS3FnDsp8P8Zbxqs4ktIDby2caKeGr3UsBdDerlu3BAdYnY8DG\n9mSVBwR/ojedlRdMcCLfVzWNimPQpnyceFC6aOfMpofrMGgz3p0S6FBrrnn3\nnB3GnD7xXlMQyKZnrFc4KQYPVGn+hFMClqkmfZX+LIqirvFkZTcHnZpbymF3\n6W7DYDz6sgzNUSjrGTPDeLYc9Ue0OJN5RaOzMRTgYcuert/kDllYEYMqjvOi\n3xGaDOokwm+r4wp83+aDVhPNKuDXz583RPA2TP7B4k+AFkKGWga5QfvgDhub\n78hjQmyCNJEVEiSm9pUBKw9/0txRzKqWMFekLexX7OAahpPyIbjjN3wf5MSQ\niEtIIummLoN3khS+5UzMTogvR4SzYMvmGtR6uGPAGcY72SMTS+FjRlx0HsLJ\nyPDY\r\n=3CDj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPQ1i5m6Nay4KPen2lEda3rhMTiw4C/EVb2/CPOIy+ZAIgBCZ/rOPrqAwN0rP4eEBG8458Tf3eg+6r687fDylGjsY="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602269246657_1602269257828_0.5513779531393361"},"_hasShrinkwrap":false},"1.4.0-next.1602274092905":{"name":"playwright","version":"1.4.0-next.1602274092905","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602274092905","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-A+zrrlKP5CL/zuJfSf4DhsgrKW/VCuIfresVyskD9gpD9DjOLBdGoKcaVrTRIqByDMEE8gNJe0zKhF+z40qqoA==","shasum":"eff307939639db3c06d22a8a640dcb91dd56be72","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602274092905.tgz","fileCount":166,"unpackedSize":18895959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgMM8CRA9TVsSAnZWagAAucgP/1q3dV34dlwkTXe80UzC\n4Bk4GrsF02y7dQT5IKpgOqSMIiH24Pi+bP9StaDjQTZrhs8K0i83lN59RFPU\neEKwdo0P0zcdqAMrKDnj7+WMrh1MO+QXBATvdB2ca0iKwjBPR29PCAfYq0qz\n9eIhtCHm58Px4tuhLGYu6UJbXxtCg/w9W2HAjGWHqeITSGNaMaRxqPRh5EB2\nWOiPl1G5DsF62TzhBtQAZYiBkEzXWYa9nk8hKb2LqTkigRUB1he0iZmkWcR6\n/6GkpXikpa0vAxCkSSFsNjfVBrkASCbsFKposmLAgU852Z7tUdTa9t1N7CCJ\nshSKoFk5zSbFvkdbIrKmWLKSkD058BXJFOKP0SAzftdsG4Cnfl4wmpnO/JsS\nsYDFWF37jxPqytkd20N99bTayRxFe5xCuZon0hIzygLoGqhX+CN7Ukq9Qb2e\nelwkwwVIToJoQ7gnMsm627OBfSUJKJ4QzU4c15r0kRfX+w7g/E7EgxzQG2ct\nix8VHlHeJL/Cg6rPyysZQ7PEWKt72WqLTd+27OZSI4a3sZQ7svogYPQgwpT3\nzO4jKEx57+UrVuTnJcmjxEVemOnIYctjC3x6rk5VGxGC9GbI0uifLoEe+GdR\n9bDTNVLL9doHu0k0mjYaC7x2/NzDp8jx5xwmKbmMxBxLgc+aiF9rV2bW22Xr\n4svQ\r\n=DAvK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCU5+QjNdUmn4OUHfS53BtVluC8D4qP1g2J5Rv4MGbF+AIhAPyCQL8skP1HNyl9ue8CMeyFjTLA8nESVC40MV4Z4M58"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602274092905_1602274107780_0.2618992955343704"},"_hasShrinkwrap":false},"1.4.0-next.1602284292050":{"name":"playwright","version":"1.4.0-next.1602284292050","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602284292050","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-yFsAIWC5acnPsSNE8zf9wT7ccUHovQKKtSN2Tr5IuekI077Yahmxtn/uts6+pWMO4S2NeVJOjhv6zpoKWpMX6w==","shasum":"084a866d0bb0aee14054e87d26d91b465f8f4702","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602284292050.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgOsTCRA9TVsSAnZWagAAQTQP/0gqq3nOkhY/83be4cUr\nEXNBRGdHcbFMS0sM9tiedyMbKoVcKVPIV05GeS2Q2iTJUIV+xO9C3BK7cSph\nMRiDRbk85rY+1udyOf6CbRzyjWMvTtaxsLK76C/Gt5L1NXqoYWLkugHrdj8O\nFje7LSePToy7GBBGM07fWEZbunKCGayz77GIZlvLvm5WdKaAbixMiR9lcz6o\nPjfSiGeG8lN/+NyC1BzU8xx2pFVWeDIUGVMZY53B3JceIj97t1WLMDNKxE22\n9BCydHIJ+oU1wlsegjAE9M+CfXVVzxDORAHGX5+9EvRRvzq6FBGgOvhW4hhM\nqrzVhGo2LyaxXCuXxreaZf/KhU2QIjKYD7igW6uxoGbi915/wrjocSkdZUMF\nbgcNvQYdgxThNDju0LSUHw64Ad4tDpWdRL98MgopN+07UlU7FHPIFUO33ON/\n8p4mxN1yyz/poMp3pN0w3vM1Rmi6tSVPQ2R3sinPAWcKQSPPor5EMSH2VzJM\nBDsj/XWNJYOGp+tIint/2jmfBrANUamEVBqES/mv6twJyDM3uSgFq/zX4B2L\nnYtzzOPefZJFh+sZDSIoWJFXwp/edjbMvpIVpiHKFfKqfmskp+E2UmkMQMdM\nY6zEkw4VUeti4Aorm00R2vhVwvzdIOgRI41vHCOKIT3X0Dee3vXUkv/XGMsS\nVMoI\r\n=3y9/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyKq29v9vRZrl0c/xOnIha7Yta5oYRcWhZ4IgPKSdMMAiACWsdrsS7yB3Zs+MitGv4fJqNXbRdcRKKWEABnap4qpg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602284292050_1602284306810_0.9046033662247686"},"_hasShrinkwrap":false},"1.4.0-next.1602285232813":{"name":"playwright","version":"1.4.0-next.1602285232813","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602285232813","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ViJlJ90ICIZTAyAbtNPJhSOxhV8RG+E1LpuAvZ/lR0QVwHDHbCllODEzZf6f6Epf9qhOcN4zmCdYUVfP5SpLxg==","shasum":"7d6e6caa4bb797932b2b4dc417b74a4e02a104ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602285232813.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgO6/CRA9TVsSAnZWagAAcyUP/iGlq9OQUDXBVCEoIhSz\nyjPvt4gGwtg7vFoBqwB+iJTf0b/DbX8xztXYb01Y/AP0rz5vHoT4j6aEbCeh\nhthJyrqiGlzDhkzCnshM8dbtZxtjUM/osX9koFcxbWOjkS1I46dOozGiKX7B\nVbDNRICwCLrcjRO0pZsBE7Avp+yBJqkLjcnF+v3HHev/k/axJrNjX0Lwj53k\nZkkNAA8+i4HsCyzB/nCNUSxz7xud8Te7CFg+HdLcBi6QLNqza2Hvfwb7BBt2\nH4uujtm7B+glNysQ9jDJQNDiXmqregCnPRvi1Munod1OAV+FQ0N3fc41leAY\ns6UFOICIWyT3GHBNWcWumepwXY9+pGC0wBLBnOijiD2AhduwqVNSXnBdqmgv\nbEcM2ntloforD8gTQGa1eKQ2W1myoUEE3JtJKRVoxbJ9ku0fialX1TLWSmRA\nx0NFR7B3BxbXx0ugERZty1MQeOvm7TPg5IQZNd5kDsrGqAdFrbPr/TXC6ukg\ngLW8GoZQemZsDnlWst8R0Kw9gG7lCHRIEhmLROl433hYC7FnjCW1lJOr4ufL\nxgD5euXDKW8rSI6iTpmzfaDgflA9W9z0G4ATubjjUsMVjA7r3o3yjCH2rdpq\npdCNz4efD3Kk7gEufyofqc2qh7291oljYH6VmTeSUmge+sgYhoFjREx1g3ho\ncDiu\r\n=Cvkj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGlgYDtQ/xVQ8OK8OkVxk8E+L+yWrBvcedOxQa34Lgo5AiBv0Styjm4Ik+lRpFiFgFYpWTF3qGZ+oZKXQ/aPdR7ABA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602285232813_1602285246557_0.7544017913533074"},"_hasShrinkwrap":false},"1.4.0-next.1602392011053":{"name":"playwright","version":"1.4.0-next.1602392011053","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602392011053","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ZhXWXNrGKrbF0OIoaMY1vX33SMkojbWYKYfvfjXVdjIAJK1RfNtNPUTjoEpnBeoe+FDHkMazopSkuUPUUtp8Cg==","shasum":"98e9eb971f14e747a11da599449c18bdf4f27741","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602392011053.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgo/ZCRA9TVsSAnZWagAAgs4P/juM9tuF9ZTIXDvAd+Ku\n8NoX3DpY6MXBZFypYN9gE53kOfJ2QhegF2jJvqQVRlVzh7XRlQiAX7ewmcFN\nzIhlvaXzJvZob1txXVwepYiYkIG5bUd8G1Fn/EmpZSfrjkamT6Opq6rym0zV\n8noamt52ReaC+74s/K9FmRM63vhRLdSWhqFcIq8iMlTRuHkI5FSASxVCwnkw\nA1bMQDYA/WUOCNSpz9IdH0+9ZCmSeBnOP/JGUN2gJbocZngvlwnRh5PvmY3V\nGJcPItWSovWP4DxFqB+OIg3ZBMVzpQInD5QEB/DQnSsE1nC6jcReE/f5+UxK\nBH65hXmrNonrTXHsyeA5Nu/41mGbabaqm1SV7h5wJ65ThcqTdLasrAfZx3tK\nTJ1IhcsJ0kL1gWOu038L7c8nQVpM6O3MKb2QEh4F4Y8Sw5z9zErkN1aFBmIL\nmBl7R6ylTdxlLjtTbZKu8ZFJWPBw3vgH2zMbXwIyLbpHDf3s3sqXpV+U9Kgs\nm4ds06XrTNduSoOx5D7Al3YOEyvFRoVzOlVcq6A0ivB8o++/NZ8iIHR0lAfn\nmbf5KrOKa7wno1OlEt+7/wUfS6BRty9BBtwUZ7pKf87A5if56gz99GGap5KW\npBrq89tfGAKauv7A1/MGMjp8k4L2lUlzuudW7sHXWigJNrAi67ePV5ko/NiD\nYpBr\r\n=eHIC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8wW8WXsZllRGRJRxK/2Yan+2MuMGZl40bxMD0/LofTAiEA+8eADKOhVQurR4yQC7b05CmjxuSCBbBiVZzQOpLtCSE="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602392011053_1602392024633_0.32847790305662294"},"_hasShrinkwrap":false},"1.4.0-next.1602519496667":{"name":"playwright","version":"1.4.0-next.1602519496667","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602519496667","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2I5ev7XZhtI18RDLtvBKFR7jiQiWHl0oCnArO97dv5Snim4TKKKNeCxZGrv5sp9ct+knQ9wGTujk3tOzLP+RkQ==","shasum":"f785ef82f0b4ac4073c23a32b1bb83e9346ae806","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602519496667.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhIHXCRA9TVsSAnZWagAAwR0P/2ZMaQ21oxqXCcAMG60l\nF14OdI5sjDUVb2Lkg9zURjhm4xtQveSf8uxiUhzeE8YPhg27OqBqcCeNTAEr\nVns54h7Wn6QJpFBeaG6NDS2jz4C6XP6AuZVr9lz9CIYh1Eig1BulO263v53g\nXoeqbLEV3p6ZJr/od8touikLt5yJl0izE7CC30vVEpw79sk9gfPST6W7I6nu\nptXSLDlBgLt+PWD8OJOkVtKpedPAwPy8FxFzOeIGdAt7gLhCST2xoCKbeD5Z\n3YFfj7Od9DwzuQ7jFApopzI9kB1OMfDgLrgwitGVzwnSUgPCwgkQ6quygM2i\nB4lbavW53/8S8BVn440b/SwZtyDlXNS4NQMJ8Aby2qEZVk44hRPtHYoiRKqI\nIkFUyt2W7T3FjpUoCs2jTxtYUJurfEquNcKkF7pIGKbmqmdkbihdby2+JWmL\nOKK074uml+FjYxHmjx4G1HbMgP4/MtAHF+Rc9iEKg6W8zwwb/W/eO/n8JsSg\nwdRymx22iPhlRztSqcecgf0DzY2X64v0nk4OTLp2rZFLallsKJAvIWCRcTr+\nJ2NgLDAAmhTPUUy9o9Bt99PfKhYz2RW6WSJKN+gsLiX3L4PAelhMCQ47DIHB\nKl/m2JJx40NBCYLafz8FdQuE+cztmC/bKKiyJCndTWGdX3kgCnsKBu5NJGwW\nALHg\r\n=imvq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpoOdcgQyPXJd79SeuenU5DH8Q2Pix+2+RRZQOfUMBcgIgEYqp9H1HHb9saHyk2HgVjLTs9ysdTfdeRNumNW4BANc="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602519496667_1602519510989_0.830734190852336"},"_hasShrinkwrap":false},"1.4.0-next.1602535879673":{"name":"playwright","version":"1.4.0-next.1602535879673","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602535879673","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-IdmOePnKvYOlFDZQ9ETIyptthVsldj1DfwWznMFER+xYn5WhL/n6VcIvdel/Ycy1mvDVCqm7ezbG27Ln3A8fxQ==","shasum":"096b287bb4e31b3131feb01586c9d0dadb9f1c84","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602535879673.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhMHXCRA9TVsSAnZWagAAnuoP/iR2R7FarSh6T0QMN+kZ\ncEod/Xm/wI1IJ8nd6/qjvbZSwayi+FctCy1UWRtLvug0RXsuu8B5FOLZ9/7G\nrrA1HFWAcDM1rSuzD0CQh81XU5E3QLLgKgEfpG/c4vzz9k9Mtsi3YNoNBeBS\nMoSm5OJQWWzmreXgMkKLu1PQQ1fMZjr8KfDjZbg9Yz5jSjRpVJGeuqHBkjDf\nOpCWUJYyfs8TjW3TQ4zzZSJT38wS0rytBwZ5YbTTkLryoq/4nxJjiK0g0cg0\nVtKQZfJ5UAL/x2IAdKsG1kGmtdsFukTh/R01QaYJtKwHHBbXVWCiS1b0gCCs\nKzniuhw4F3nWyopc1nfVDzoROo91kjG8X9XVPAFF7OD7pUYu6qepMOYdWtad\n3WqB9hp0CScXDDv202hyjhwo+W6TtL26Eg6b1DjUmSDbQR8tqlWrL5LxR6kF\ntPD00CYNI6DCSAOACAS3WKRAzXxogdqJ+Cpjije2/KgYF2CHgbTbDjsa25DN\nNDoWYi75jbXFLWOAzbDyZv6krB2XLKqPZH5H2PtAGtif48slyjJC9NPR+vQA\niQwouUpzPF6QKYnJ/tnWRBWZriSNgUO9FmAeSN+7A+aOXMOmbrbwgpwbWXAZ\nWa/lUZgVQm7ZLrumJEk11IATzt9XSWYjwxd2qSdG7ahWpXq4ROlSkdC1La4W\nntyL\r\n=MVxC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvrBhtaZXbx+1xSvy5z9lpnA6Md+KI+dShrIH8uuWcaAIgGKI+NMCN90H66+CgOmdkgmksVrzIXMFPlrat+Au2Jx0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602535879673_1602535894696_0.9006155597266046"},"_hasShrinkwrap":false},"1.4.0-next.1602538162833":{"name":"playwright","version":"1.4.0-next.1602538162833","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602538162833","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-18kbqC7S5D69aHW5RoA38fRwbjzVw5GZwaRwTWZQxzDlCJP1GmCliGtbBpRQNdTR6ec9GqLej3LfWdbjEGOoWg==","shasum":"a2a2acb1cde3871254596af15130381f48ce48f0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602538162833.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhMrCCRA9TVsSAnZWagAAXjUP/iOxtCnGdPdMNTzTEDid\nnSls+wjhYZ2Q1VKHlSzoZyjNr9inbQwFd8xwGN/4KyybnCTHbEigxOYBBG3I\nSLO8n2oKLKk3im/Hqoe+j9qrGWr5uy0mZu+h0WGX3nMMEyC3poIsdBdIGjEy\n5NQx0QBhgEW3HuVY01dznsZEdnlfArCJ+IXf+lJPSFSRVmNZSxuC2oVqht15\nrmbE9HixO2+PEYIM0coHquHIXQhSP26s23ZeUlEjYDYtdMgIY/LYbI8vSuQU\n8eiCVVZ20gBJAlbAbB9PlufA70cM7BHz0Ocq5l6nzrtXwFv4QUWLzOiUmF/b\niOQ00a9aKUlUL7Bfc/fhU2Ev21nDWFO+D/Gh98AM0rJPaDGes/B7UvZ40a+J\nye/PIYF0dpv5WW0CjxgEo3MRwm5uwOxMvnZqWzdbyZfo2HVyJdeEiC71WBDw\naMraosp2YEGDAMWGvy1LskSEzVO5eF0Ti9lEXozv13VJty34PHNHX18DNZol\niJpZRuBNW+ySr1m8J/P/NIThQ3m4DakP05JJpbhhZl7CtBh6apmAq9o+CK1l\nOXXjywUaj5/hTF46M670kj1aVZCZLjEX3ggDAFx1X3ujdCbbCw7KFiriW9D+\nYhWxELxjDpTh/XaQNan3nbng4+CAWb4r32JDTif2ZB3828QdPaX6j+J3SLC2\niLgv\r\n=k6mE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBeUibtz84DQM84DSBmhagLARuqOlTPtFYM9BuPeR63AiB4M5Kv2ikO9FQK8tNytWN87v4w/mYZL/A7iIbDlhnLLQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602538162833_1602538177308_0.625955357218339"},"_hasShrinkwrap":false},"1.4.0-next.1602542830200":{"name":"playwright","version":"1.4.0-next.1602542830200","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.4.0-next.1602542830200","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-GYoldEQ9CelTerZdRRujMd00O1sK5I71O6eMZ0NqxxiLvVNjj7yYBt6mdoE/ZfqqSXBka8IWz1KvzCmv93MFdg==","shasum":"5c32824f3a89d898b433d90bab62e18d8e50636a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.4.0-next.1602542830200.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhNz7CRA9TVsSAnZWagAAj1UP/RjyovXSYBPx/Ut2D6xW\ndycP5h9+IE8E1mHYDEStsll3MVZ73bLtSEzjRRySbFDq5+qtvJXokUhLzbic\nJJCdOpymh7wNt0cRZF5BX1fXq9tzlVlgR0nHWDKRQZrfmla2dGULX6wgp0sF\nqzWSSAoWX40jbdAYvoAf4jNzfjLg0owfHEoGNSnJxywQiApP14LSOt2S4ax1\n4C+zSnB0p70c4oQXltOtQmipipjHnyzYP5L6Fm+DP/0ZXrGp2plH1TBq2juu\nNrS5fv2QJvLXiXX/LAchiJdD0S/HFfBORBYPhlSff+XqM9aDaTxowbf9j1Im\nUeu1udsHdaI7Icucq+t93JYMF/sOHfsbG2Ng9zaUjvkWmNIAhzbJD/5PR3nJ\nqUUykkaLhBUxpARpyfX3bn6aJ9dZUh/JLvkZdz2c5Zmpxf9Jg5pXMy+S3cax\nk7wb1bpba9IJm/9Bg1oR5CTfCHvYBb0IRthOMSNrXTjTZdwcKIua8rs0Bdi4\nspG2bSHzyimEmfu3A3eYpKzwQuFVCbCt3Xrba6OFPZkNqFgGDLIAuCke/hNr\nyeF1NH7NbGccn2hWe/V/i8BBzFupQMe3J46dqRNt3GgSIRqhmKkgctZCkEGL\n1O18iQbllLHPgbfvDuRLwgeLnfdqFBKf21b3vvfkNOD71rqlgnX66F1VzGOY\nmaS5\r\n=8ezP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+X+xJPqM/FbLnwlK5ox+Kskdz7eTdOtVQOWlQf17p8AiBqcEnVd1iOXfJGwS2aYUqkULY+ogbbZE7+U2mKuBzYhw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.4.0-next.1602542830200_1602542842099_0.0032766537280741748"},"_hasShrinkwrap":false},"1.5.0-next.1602552164093":{"name":"playwright","version":"1.5.0-next.1602552164093","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602552164093","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-aaM+ugUbxhs5I2XF3m78N2J7zoTqZs6Es9pUpkrVYHiXiItbeAAMU4v1edHzl+uejuzwxcrvFkvyNuAGQKnzfw==","shasum":"1779aa9016cd6fca4f5004906d7f8003c8110bb7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602552164093.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhQFyCRA9TVsSAnZWagAAoxQP/1dqyU+89pjN+Edi6ifM\nkB9G1F/w6rraYtBQzY+Ie7P/QIQZcdwFRqwErSzSOc17yKhTkl/v7NmdwUkV\nHmdhcT6Ys2UPQ1CF4F7ye7/NLV6JLv1QzxuPwGniltnjvx8a6HPH1Z7V4PqD\nTmKdZ5e83vu8RxVl675jMkxd0xeWuZCvNYIrJCeehCZdroz35eVsdP6WJ44M\nGhaUE/czcngXSUwiI5SJxRJZRDFRJNl6Us08NDMRjw1tSGXjbr5LlcpeelyD\n5lNydsGosJhyHAY1Ge+3g+G5SZ0EL2jPzM0XJ745jKtparA0F0ZtHDROn54B\na73HWnnUns4Fnh/ZiO17M4QDX6sMpIvoUA54rbEbqSuPOU6q/AQxjLRHvzBD\nExfjV3dFeeCSxL07+ZDdXpPL0lDm6/wajXMtMuwyNPCel6t498Huqziw8WsO\nF3WNTbztlP1pieoeInu4boruN5y3V/jwFSfXX9/MuE2pwDav97Xp7Gc+l5wc\nEF++TvDwSNYekeXWReLC5mahdvI5m/8dO6vTL1Zl1O5MtmZLucB3IN9RoxuK\nV36jnXR4nxxONkij8Q1gx5oHeyrYjzQB6j0xV0JfkFjKF2Ianz54hoYlVkq4\nNFfNI9rNDLDHfagemtqsE0Er+6AoL5ahCNVWMQzcbFf32emkB4lTs/XfJc5z\n5jKu\r\n=dT7P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsFdQEYJxXnU9BY5yCMrvJGx5q5DsiYVC+0wa9d7qZmwIhAPzMav9CQ2C7di+IlqMhnyIhecIFALX19regBT0QT/gs"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602552164093_1602552177364_0.41022685121061864"},"_hasShrinkwrap":false},"1.5.0-next.1602552387242":{"name":"playwright","version":"1.5.0-next.1602552387242","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602552387242","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-pA6qEraEa60z4F24iUsP9T7cW3k+rn7c324xevBCO51kor221ucyPQI+I4P/A4j/aaG9kKDL5xKAD7LFlbyk1w==","shasum":"43dab849114c907443a932d6643b371accdc7c21","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602552387242.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhQJRCRA9TVsSAnZWagAAYCIP/jGHGR2fIRufxV2SzFum\n+wmtD1dMMETYQ4op6nFGzEDKlbFYvwMXXtu3hJtZ1WdisMLpbb1atNhd0gdd\n1yLaKVluk6CThwDQik7rIqFOOu3Vz1fHrS/3R7PqcZWkuxVVoR0ZS9VUVV9J\nAWoKJKzx0UNt89nvhOzA7DpqIXCsn6aX5JIrOzbQ9tNSrSbDgm/PqHM7uvLq\n81WtEotFKkQP5whgEkCN2mqEKmgez4ZJ5hls2qTdHRJ5DOMC74yQSd3ABFe6\np7VRtt8VIVuDOXZh6joCFYaxor7qQpeQ1sXDZQic2vWDhQOQsaGy3NvQtPmQ\ndjDt8wkjhOqC6E1rAKKjZFYi+dOyE89l1KlDOmP3JPxwxjaiZ2T/kzJSS3Sa\nJwZR/VIVajTRqdlLI+y8ZTKXMVH/MSL9AA58fzH1gcX2uQVezTBCmCHguvow\npKqvyNXtna5VBVECMGseywy6Rn3k+LYglPV0LQBEyOjdKJwfaa426/KYwVK4\neN1SdIwyNeYpyCwQGHb1/toOskbfSdDirFVUR2w9dvScedx/LhrqZ6kfLLjR\nSiTwH4tRPEtCOJ8Iojrb0InR70PbTxS+6HccVw4Db6qVCufYN4d/dQ6rVXuJ\nXAS/vRen9xKYmZcaoPKxbJgTIlanrHpusbzrzyB392QQmDomNt+dtGV/HEky\n5iKy\r\n=bRaQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA5PhaJ65aX4yGwOFnDkqbNsvuhQgkqsDh56zonOxjUyAiBN9v/tbsc6Z+jcuOJo9XjGzxPQpxnfbTfDGLuYVScdyQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602552387242_1602552400420_0.572882485562831"},"_hasShrinkwrap":false},"1.5.0-next.1602564829195":{"name":"playwright","version":"1.5.0-next.1602564829195","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602564829195","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1e47B+goYE/01lF9EPua8NgOM1oINw+HenarFBxkk32+kGfayHz0Fw1wdoBR2GZvIoP2aPgEyjcTrGrFOSl0qA==","shasum":"6bbf74611ddb3063cf97ab67b4b49bb3b1593373","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602564829195.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhTLsCRA9TVsSAnZWagAAZwQP/3SEWCDnu/9Tr0R9KJHr\nbJbVm5y85pMCNfZ+p7qdFkSJpY4GUEJ3nC4YrU0jOsmiwizeHB9ycTJk13Vg\nRK3sFN9pK+0SLguJfwIuya1sHEAQdqUaNxztF82t1rMilvnqx/RDRty6ZH6n\naz6vNLS15AdzArOqMBdJaG5GlCxFbiFV/pym1ZGwoCJDiymOIKFunx0RETzK\nEcYD0GrjTl/6Yq2ozFmmctuLG0bp63Ca7st4KJryz2wXfFsDkBNOR82nWp/g\n6OUUAslhXlNCIBvrZOiIa0NqbQTB2vDMKHNT70AXUFLnBYRqVwnKjposPFyb\nYh+/Hnov+PNqoTLLaZL4MHaufPbyEw2BuWd0j+8+zxYkHSC81VdrwBiy6MVX\ndNj42yobHNMrAMaPLJKM2QDS3wN4Tnqdr7SLNSwLI2MRnfj1ewyWDf2VlxRM\n56bdz9U5rM7Z7WEzXhQLqh8j0DkynM+EaCZbcRkr3I/oEBCP35R5LnUKD3U7\nyLJzZgktjfmpl0XOVDH51Zqee6qD3nDpXRe+Gd3Pfw+vD74zTgdN1Q7OCyEw\n5+eutcD+jFWCDfoklslLjkGmiDWotFz8ZWvUFw17/FhUIjby9e+cXNmVQS6D\nFQQOT4cSaY82y+z8+aGazMc0umrj5JB2GvxbDwxZbmHDi6uN/rLS+zxaiYY5\nW+RM\r\n=9T2D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiSbOIfCm3LAZxWtNaGp1+O7qxMjV8pAkNufDRcZ8jgQIgQZFjZE9meEEd9EObu7jQsw5/OWQrWstQH5Mf7bef1rs="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602564829195_1602564843671_0.21056209420036298"},"_hasShrinkwrap":false},"1.5.0-next.1602567394434":{"name":"playwright","version":"1.5.0-next.1602567394434","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602567394434","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-roUAbsAOWwLyNKooghsOwbmpWGJW28iC79zA6BMmeXN8RzA4SrJ9NflKZGBpevOkMd4Fv0p60KFWQGA8qCLZrw==","shasum":"193079c3a5dc0e5fa5f50f688deafbe2dc8a2afa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602567394434.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhTzwCRA9TVsSAnZWagAAg6UP/14oEPXzPBjOVIXyFXhA\nm4GapivId1zZn0Q/U6aCh8KXDvjRGfILqGrs/ZmHBj6Vu91sg0hXQF46hR+K\nIPRm+ayuvYSjMicuBYv9WrkWVS9JMb6lU+VBcR6JRQEZbpR9vewJNJR8BwRu\nVepP8zWmUmwChJRA9fc9vExT3irrY/u1x/Tbmzmf5X+xSWyfyuBaUBq5LsCy\nf5XHDQCoALk09HhDuRrQ2gKe1Yx3mAuiFXT399oeUk9ysZnIwY6O61WG4ar8\n7EqnKDSbnZkTB3OxxxNQT6SPpVXFN7mmgxg7cckMQzEtjw80cpH5vJKgWwgn\nvlnU9v/iYw7uD9Q4Xd7bkv2AXb8TLG/Vb43RSlAH22Cet0/7eaRCFZjCRPUV\nvnU+opHTBJIzjvwR/s8XOpXJ17CmvdOZ3kctf/Z/FWBhU0hQKjhQ1EVGGOq/\nKfAo7FsUEyu5/U/Asy4lOAtyPJ3O+ScBUbZqku7D6anoJbeJCb8IO2Ky/N0D\n8Qy5RSXtj3R+oYF3gR6JkTjM7/TNA/BgHZrAm/BM06McAU3Wqa/NE1v7W5Jr\ntMaVqu6xhgBq4ZBKGmbhyEKoYfaCWa9bNhJULxos5HEdwF2gsblP3pONEV2/\nz2sL64XTR7HOREXj/QNrkwp588clyNPg+uWdhDKwB8+oisVwxRwMli+yfrdZ\nbe1m\r\n=YIcY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4awwpUBjLQ5YRZQh2VkGkBiER3Z9lAqyRbhtLHu3G8AiBGum59NzzcrnXAfrbTKJKJhHKIv+RO/7bnK+gytX2HtQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602567394434_1602567407626_0.30167027390433"},"_hasShrinkwrap":false},"1.5.0-next.1602604894123":{"name":"playwright","version":"1.5.0-next.1602604894123","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602604894123","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-EKiQzKka2jMEt1zU1yuj3jj/dfoask+coMSqvy62jQQIJvDHUQjpK1UVQNgbfia/gEi3fd2UZRhit5/ykBZ3/g==","shasum":"ccc9be39da45906aca70c3b7c11b1c4e2a1de503","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602604894123.tgz","fileCount":167,"unpackedSize":18897547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhc9sCRA9TVsSAnZWagAAlmcP/3eExMkLzWLS8xjrXpUe\nt+6mWk6tkpjXKZjZbLbO3Xh/rIYnvl7qDD4Nh9IsdCkVydUhTk1Bmlb7HI1Z\n+rBotVxp6abeeXoNPsoVBwLZjMSL3AVdZckBF/ihULxYvKJYmWERaiW7oPF7\nESE9i2Rt5KIs42d5NEaFk7QQp5MAQcjh3lyad8BE5uYb5zQjDRXBKGu0TjGp\nYeHBXGTxIbKn/VS83O2x/qO4XjuJRH+PUKA5IctpQRno/TzBb9GNm4zlKhr7\nAa66KaeT0wzG4c0VGC4ijCvXv9Hva+gL/yjqtTSgIMCmyRiyb0hp6O4o7Inb\ngcWOG9cfK0JgRMrQTP2CLtsUuu1lHAjhkLPExrVAe01Kv6MxYgZx/Cu+anQH\nE/dm/dAuqwIcMbk+DKRCi/4Szmt5EcMERWdpzl3UuKRhk5m51KXNz1UhfX8I\nSTozX8FKEU5IsN008ncQmgXGKat9kVqbXE0PBYX+q0+SwljM5hglSkN2sZ9p\nn8zXzTYDXiMIrcufK+LvRR9Drr+csXsOcFYvH0FYnVJsgTtPOGPixDv/6Hqw\nwNygyglohnXQLXuySvLLmUHenJZQwiYuD0eTPcOzQ5VT0q3Zgpx1Fu5Dfkvo\ncVbABm3EWmePMBXCDH0oRLO1gCsrIb1xdAdwuH4dzAvQ1nQgojZb4mvwrZAv\nhzym\r\n=rqEC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDQW7WxhxalmwvKN2JZSBrTUrIMp90Ls7ex5fvQ1ekkAiEAv5jQ5M+I0q5DmBUscqbCQFudfBhenaI8NMlLlhhrVss="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602604894123_1602604907959_0.8085548355057355"},"_hasShrinkwrap":false},"1.5.0-next.1602606939387":{"name":"playwright","version":"1.5.0-next.1602606939387","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602606939387","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xNYKojJFfFCho0WKtXAEfFj/TlOQUoA5i74AxTJ6clc+TPWO6q6tr/kmBQEEEnD6cUUGpsn7R4a4VseWWGmchQ==","shasum":"a3175175213a100f9b92265fa073eeff0a2e1b15","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602606939387.tgz","fileCount":167,"unpackedSize":18897923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhddrCRA9TVsSAnZWagAALJQP/0f986CKhidAgidZuYc7\nOjjWz1OZfEis/YjX7z57Vi64hnsLDoa0dpCZBwNkJZ26FGB5Boh11hp3Wv3C\nyjWSaXw4JMiAex/4ZsmtL7RZU9a8bcS7h9tqsPSIEyhJllItQifwrO7qG2X4\nRojDsOdph20w4A/C9fA/fWWREGKsFC1FuimzFSsVajBdgRiCUShjPdY2By8Q\n9OLThVetXlPsJZkodW1RPkhSLhJm0ecvi0NQsDqeKhafzY1DqfEim3jJkBsr\nnTunkeaIgSmGLlwc3Ky09hpv6XEIW/cS4yoGXhQvqCPihf8UdW5oRP0Do9+7\nbm1nWdoL3Rb95l48r/JLZoEDRda7bZHGsWPj4okvVyDJsvLbWq2EGxrYwS/8\nSE8D+eozMjmi2/vnEX4/CVnR4H1dcSENXPfJjkVkiCKO17IMK/Dem0SLafWw\nz96z1kmj0xtowrl4dzUtluV3RQrm40QZm8oZ3Je31MkHWDJQfrTmZRXz7o4N\nUWf90ETnLJilLYJ0oUKa9/x8wLHcRkEDuqKqhG2F4pSEU6kttp31OH8tmgrE\nyC63x52OBVZgD6uOHkPs0HKdnrRmkYolllqmW+BG1AtmixPmOdxprpLM3PJ/\nrpvhABIPOzaTdL7/K4prCCkQ0pIxVondEujsDURj4L4ELrTpNZUF9Tf9mlla\nU0h5\r\n=J/gH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBWekgeF8ZSoi8ZkktpC5A34WiTqdj5gdgzAtHbNHCvWAiEAkIToRE9EMsSGP3X22RAqiwy/+u3AwyhfL+QNcvcHiSc="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602606939387_1602606955095_0.0408982965075646"},"_hasShrinkwrap":false},"1.5.0-next.1602614121721":{"name":"playwright","version":"1.5.0-next.1602614121721","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602614121721","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wQKe4Y/sKliMD59I2I2ABQzlZUcKZlPz5BtfWHwqGyB3iEQqrw6ljXqHPXoiZ1NShPhMrnteRs+4i0m7qLjtOw==","shasum":"8aa9c9784d3c62fa5ca97e777e340a6c44a09a50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602614121721.tgz","fileCount":167,"unpackedSize":18897923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhfN4CRA9TVsSAnZWagAAV9wP/203plkLO7BQeVpvGVB3\nh1BPatE6fdXG5eeZgP/QIZIrPtHovrZd309p99Y+/3AZyCQWZmprWxdq5IS5\nWv0J5Rf0VVfx0rMi3Oa7OMP7Nxtqqt/6/uGlqN3SVhXLKuo9xQ7DvdLWa5FI\n5jsGQlRGe3tgxlvW58j/ZD6vvQrfdquqQqzuZlNaUx5zkt6GCGPbDYo+3D9L\njg9H1lMMLRVVMfxaPi/JNkIiuzmvwga1LvGP041Iky5GzWq5kDLBJnH3cHRW\n3ZcNUzIwbB20tavWvq2BSvfEOs5LMwHLAzRLDNMQYMfN+yFFQ9Aqvv6Ph1yv\nmBDHUxU0PLsaV+j8e7zHn2gsD/Pvy4BuYfe+rXPGoHBxWvqDlFb1ZD0UzR+n\nsdVrJfEZ6CYFhzQoCKy5t8fP68uJHA/s7I3eVynXZS4BgY9Te8JnDHtPvnQB\niy4FrHcHMYo18hv7lr7LNNPfUdPhgZKu1jcGK86XfaonbVmXKwbgHbFN5fAa\niqQPTbaG6RDbnt4GqCRYi0IFzARTvHOZaiE81X8mDwonks3I98Aud8DbWMi3\ntdoSsUHSMeH1F1WL1XO1lvbxlAQaKBkHCcZsEPTiyTk0E9KIrbN1NR4WuG9I\ncfTWiySNrsO/y0gOWvgprt4PzDDXqfXPtJx/Q4EUF0Oyq4i1ClDIs1mdef3A\n41QL\r\n=+zfL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGeGfpGT/J/AJOEyVUUtWNjq6dSUeB4kfH6GI+U/w+K4AiEAoesoYYUv8S+7hAEtKsbzt8Uuxk+V0TJcbX/uhHtFTUU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602614121721_1602614135988_0.25966037464573044"},"_hasShrinkwrap":false},"1.5.0-next.1602614758875":{"name":"playwright","version":"1.5.0-next.1602614758875","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602614758875","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xhD88LVG7pNl4sk+7Leowaf7JMfppTEdXpECRWH43yE7zTYLhZplOz+rnf9tLfPTsSkZUBFzb2xtOyti1M2flQ==","shasum":"a5558839945c45497451c85f612c8323f37bdf7b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602614758875.tgz","fileCount":167,"unpackedSize":18897923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhfX2CRA9TVsSAnZWagAAYpYP/1FJCh2b9l4ezMJXLdPT\ntpoUJKXmJiCc0i68H48EkOkc5QbWNxlGow3RtbSbDKUw6dHAGG/fD4gG1Bdo\nMG9C6kJ1OAnosj1j7EXPPe5aQbsG40eQaqEBuyyKDgJggjenBeSxsdMRzQO3\nKh3BbZkIj1Y/42UGaWv699LucQCToWxiaLX7pOfNiKI2DbIUkamRfP7KqViX\nhEc80xtcVHq1eov6sQQnyKx3pUcOR9E4FtlAGt2/nyJRlZdhVv2gmm0zIfpE\nJ/LbTDP9xwiqgL1oSRWIZRlu/MYUuwzkabRSDEY2kg/hVR1t85tAwIrmxBO0\nCvM9UKzbez2rsqOYwe8hbsJ+hG7JnUmdMgJJJwDN/mtXZbDkNqTx81JzOLdj\nqAWE8U4ku+QaedypTnl0CVCeEZq1IyYPBRP8yjqPkaDbgKw392osR+lOi9cA\n0ZG3DhfFbQTRlefFcNGqQsxsffUxA8C/NIUp0McrJAYYgV4wsTDcBYFyaFjM\nihYH5mpy/18KMe/Ub7HAxUIbau6wyIBVIK7kJ15ZtNebJMnJVGcVepdIMn3N\nvYCLFr8LH1WhmRur+FYsDx+SFjCysDSEmb7SdFZg9YrDoC8gUeBbMwbuyu/I\nPDseuBLzWWAGDPiO5YgI7SFiL5dff66DcyEw4Tn/8gP8ijaQNpDL25PdrpdP\n6HZK\r\n=jfog\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2izZNaOlBi9vsg294OwyjfcXa0fuzM6qsf4IQir2xfAiEAuRs/qZVaZg8MWUffkwGZ7k0mEKppLFtXaND/l5N555A="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602614758875_1602614774254_0.25768948765054955"},"_hasShrinkwrap":false},"1.5.0-next.1602616819317":{"name":"playwright","version":"1.5.0-next.1602616819317","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602616819317","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vyCPJasBwkc2Cqioc7x6DvADU5WyQ92En2QDcU88TRr3Q+eXcivvpD04viUmyrpg46A+AZxAiVyvAhmtXtqVdg==","shasum":"600d3778b56309a208872d9e000c5ee2d886d6b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602616819317.tgz","fileCount":167,"unpackedSize":18897923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhf4ECRA9TVsSAnZWagAAbNEP/jrRAJQb+Ud5HrS1JsV2\n8UrK9L+OsSg5u1QiXT/A01PLAlaW28lvlNID/vMh91iiG1eCmS9HcVeSack1\nj0X265IHZEtIFGG3GZ1hNyk/P3HtHaRnrs/zsdwtvqqELUrMsQSDclZMQ+kk\nzDM5L38hjx6edFSQaofCamGUKmIU+z9oOXqpPgeXEnzKJPpx7BFH+Xi3XE2a\n6YNyhv4asiJ0Rm4cqhOxkv3F2A7ZjC0Ko8RWJjPyI+X+VS0CKsH9ayLD0Zpk\nq9Qt1W9wG7GE4Q/R3uv7upa0s1SeKjI/Qt0XKLEl/BTqKmq7d4nO8Y96j/Pa\ncx6CXaAO9W0NTrrRHItZpD5+LWrjv+1P/xI1QNBr6pY9e3rQ3sXV/Y6eq55Y\nqUoVXtIqAM1Tz5uWthg8wgXrojLU3YXVsHus4wa+8Fv5an4ncsk3uyn8+7D7\nyTWDmonF35qd9ru5j9wxo2ZK28qJ5tSP1pTU6kP6mtTcs8zf5M869fw0dRcF\nyVn0GLch0Xsm5fNI4CqYYX9MDNrdnwUPc2kidJA7/Pk+h1eBuNeSs24ae4OC\nrX6ScP1RLNX3tLvwpg2JQxaYqUYuIhHm3nSZA6D6G8QLS79UboXsxsdzl+H/\ntxfYXb4qVdW2pxuDt1uPgC5mJoIr4XJ0sxbW3/MC7UiFUbe6kFp0c6sIcN29\nDP5V\r\n=YIYW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKmf9wFFheC/5zWVvxYsEbTMlv2IpuObBRWnXBdmdfCAiEAsrfcdEXWbybi8u3zkL3ieo7cnsdmjnGJfZkqzrlXZNg="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602616819317_1602616835642_0.4465462061959018"},"_hasShrinkwrap":false},"1.5.0-next.1602617198311":{"name":"playwright","version":"1.5.0-next.1602617198311","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602617198311","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-LXNEHlxr+S9rcYdWXjVoFd3F4NnhjFmjFuOhH3a8eA38+GDVgrWk8dkHKxRgsACaPPAc3s4sA9laNKyg/esI1A==","shasum":"0f66106f68573945c97e4ad4caf3f1433d776c3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602617198311.tgz","fileCount":167,"unpackedSize":18897923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhf99CRA9TVsSAnZWagAAU/MP/034dTqBBWf1awZYzLRO\nPrQ57pFQSR+89t9787YMT76Kz60MFhJGRxSUpxP2G+ZkHRb3t0dK5pt8Yq8+\n160exqeL9ScJb1IcvAjPMDfapcBUdxd6pCBBpdX4+NIck8o7M4PEBUQMifdf\n3ymvjHuoclndZbB1Yz+nHScLAl075Vl0frDhi/qPlllC39FYtWwEDwy1uRrB\nAsiUjTsjY1E7/u/wLRB8hw+glBTrchdGbzTEZTWl5U6gV1YUL1GjCrC1akeP\nmLe50FYM2oeafhnzKh15P9k4O1dKo3qBjZLjmK++TlW9TtJZ3Q/WPryDd1Qx\nLg94+aRvP1n8ecRtqrGwrncX0KVh62ZcvGUAACeZJZA+L57vOH+C8nyJdhEY\nKbbeG99E1mWFQ2/tsQsZqo+MHWM07YOw+L03meWnCKozD49fFqD8qMnapYHl\nzYKhLQi+qe09g13MW1rVxlSbxarYvFGidorHZxBUE7Ff/0o3pMH8FroXPpr8\noeAuQa/mJYdPXoJzlhEs+Z8JmsCpykYriTOLPHwMmnnQ5xbcgKIt2lOKBkYB\neArCP+AwVkUPUm3k/iUT87X0ljxt1m6OrakZw8DqBDq0n1To6ruLmih1vgKP\n5P4VCT6ttKF9aOugzsOyVOkTpaLqX+ttoGFmSZOCeu/p0fZ4N2l+IgfnVAUA\nQOjC\r\n=/4NO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDekSIQYQ5cE9ma4OytvuRQSM6H3yTE2QeSJ4+f9sHelAIhAKvGzPLrhLVf4q9mYM36W0UwjLP5HcUfLq8onAzI+/XP"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602617198311_1602617212728_0.8643632660045439"},"_hasShrinkwrap":false},"1.5.0":{"name":"playwright","version":"1.5.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-szV0YksBqKQ8XTaDhhvwoA+0nBICj2GOe8ptesSpmUq8xXjjSYSJqwH2J7haYwY35GD9zzH2+HGqeObI2i8tJw==","shasum":"27f80ea373b9eec4f735973de4e16ba983b37207","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0.tgz","fileCount":167,"unpackedSize":18897528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhgZfCRA9TVsSAnZWagAAruMP/21nJImAidBKXZEIxojJ\nIBcJ9J8GPwZfOt0lNElVv9bPfhZKVQIAyXCywsfUfH/QhEDHPTXxL7HlEC4m\nZqULAeavL/YDukec5Q0Hbjg/P5LT0yYtY35/sADuK6Y25tbEjwXBHDnSxJZW\ngCz5Uxxd1zxGOxfgNFgA6lg/28NJJtv+BmT621em/Fad2A1YyQbrPZYCHWYu\nLWMxokJ8Vv1L+uiqwZWbjtDWF9VcJK5s4MbWNGKo7zlD/7pw/bvvhdQsjfYI\nPtMmR75gUobI8v1MsYfbfWVOHviT6XZ9XGiwtd7XaDHj5J+VPpU6jpARA0cd\nmNhd6BGMEsHedN8jc5dfH72iNZYHdPAjxsN9ex3aOZ903NzG6jAvhniwlsOo\n1K4tnbCPA8sEFKpQCPeOOCAOS86x6/MZE2Ihu6lkZJrH/8M8PQT0Zm/KhY2K\nUEjebVqAq6Ny/Z6ZkIGut/FWuCCxRxo6YGUUx/91VWUPoSmhw1eUEgE9GFPu\nYe+tMqVf0qlb57m4Ua9pMPhEfjX8LBLY0eaE7mm+sFMQ5QGloRFXfOIrMUC7\nQ8ZLz+86HELHqYnXBAoPBjSmbGHA23C5FrDnDWsPxVkZhCxt/a4o3z3k8C0I\nR2rnR3B/Kp3R8IiO8hh1p3hn/9oIrEThmneY1klGhXNlZWa/VeG6wUV96QBZ\n8GKy\r\n=iyX5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyZIfynaQBWOae1lHPK/WB3U4AmzR8BGpRGyrm8tF89wIhAJX/2qWhg3qxSHdJd1+dXK7zvFwrVcysPUrE4blJKflS"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0_1602618974689_0.8773231680611131"},"_hasShrinkwrap":false},"1.5.0-next.1602620459835":{"name":"playwright","version":"1.5.0-next.1602620459835","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602620459835","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Wp96HiIXR77UFkpoSZLlz4WDLKxAGZQ+Vbmc/GFA7E4UllxSzFWB0Y8xcbQu0KCC8XL20TfrVPFKAS4WWTaR0w==","shasum":"82c21316d244fa902b71ba102a399404252005c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602620459835.tgz","fileCount":167,"unpackedSize":18897923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhgw7CRA9TVsSAnZWagAAh/cQAIb02QshHWpLe2K8arIx\nMQBbH4gP/YAPrPNtdz38HDiv4WOMtUjYhgCi/PZGnYNr2aAryXeSL6se2eoi\nFk2Ls79ZjKh20bmhVt42HgrCYOGNhbxD4+mYntEN77GVWiaznx54BDE7syE0\n2Oyx+5hkUNVxIMnb18AHgh4+ZzW3wTU/2WxEJxtbA37zP/1uUO0zS78TobjP\nPydtxwnInhmnCujO0/NjSkPCPTk+mu2Dq6zO1ET/oIrLrgsJ9kFNxV5xo+xk\nFyJkAtxIMj/wUTLiGPxztax7g3Tas9PaZvOuoryjvK+BLDtrBnkHxdLYckbg\nrxS06iWVScLnm4Z9avJUJ/jaueeGRpfZ6ZZJi7Ww9XiHzcUCLVSumSlCS0ND\nLIgSbkY/EsvXflg0dkzwvuiyXScjwIW3P3Q8sssXe6LMqMiu51/QPSp0oIam\nqKhMKPiVbmvczptlKFmV4zNn78fjG/udmpZI4sk06FYUWEnijFqG50SJEDsx\nZ+78HHGHdCDQUZGoHH73p+z3GiRjEMwB8LsYqhqhQPHDpY/n9KlyOruIylVa\nUzzNqYLZ8ocVnXiz6EA9bt0GXX8D20LFqVp9nMCd18TXu11g5tiv+833MEcj\nm3I7AT/yEl92wIuR5F7wljxnU/wF0YzFN/F5cke/o0yd3X2AMPxVQ6Orvs5R\noS3t\r\n=E/WU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDH+P0p8DBZuX2Eo0434GpitYtJzFRj1P+39P8T+COnpAiEAnKJCZWzIWkW//YRshhLq9kNBWdNmU3uFzogGoAxt0gg="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602620459835_1602620474661_0.3297675606493149"},"_hasShrinkwrap":false},"1.5.0-next.1602652687944":{"name":"playwright","version":"1.5.0-next.1602652687944","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602652687944","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-x9kbInzCOiHIhTheAa8EgFgnqZulmKJLI+UcqbfTsGRj24LXhkx0qCV+9RKiI8MhAGtNTug92vXgu+bOvi/JKg==","shasum":"14a16fec465c39897475897592acf006acf5326d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602652687944.tgz","fileCount":168,"unpackedSize":18900856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhooeCRA9TVsSAnZWagAASDIP/007OMhbS9VCj3en2Tzh\nffaG0FWaVl7WOJQtLuxYd5VhNMS4VbijSkiemfcepFpDU9o7FzcOfajryzjP\nHCsNIK7S6mn8LCBw8mTNJbaoKzW2eWu3AeDVHmBbOFYDeKuzkRoVtOHp2ujK\nm6GfA9LwMKWyVa9VtgM5W60sax/ya2UH32/UgvihhyQn95B6HccUshbG8+wP\nVT1GUveRuxU1ATbIoHZIqmpbCcsEXa+hmY1Ldg94yyTHk/JPNC4+zEe5nTIh\nIBEEAsy+Xb4ndc61/KnaHkmitT9AovukDMfnfec5qKRPyMTELVYNybC1mXpY\nyMbAPkLKRlWfiBZ1ZEPOof8cwGUtlsCDFQcv0aXOADGGKvs6qVCQ9HDnoP9D\nBZP4lS1tst9jNLXgigAhFPoDwlY2c9pJZaQUxCoKKUUmB2Yl2wqIUwLJiP/+\n2W/eUGVyqaFbJItVmv1i/GijNK74oEbneQ5YZPOggVrf0RRXi68jXaUH75go\n1C7ZaYCFyq/VO7aTF6lCc/Cjki/mPokpRkfl50OqAHtyiWtZkIOfe5dDZ3bn\n5WOA+WaRJWhin2sPoOnNmzlzXYNFqPpbmNq1YbfRNaF1XwSqO6B7yPDpSJuu\nNkvyYWz1o4+W7j/RS8Fi7yyYUxXVIov86vc3F5teY4amjHQ1wgENajpR10PZ\nBH+I\r\n=DgmA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpcTiQQCVoHu1RJ2PQSkXWVEStZIwHTJviKVQkg8M7eAIhAJfAy3XHBcYOOFP0nPhn+DKzBkDEMKOV8DwbVwzqHOy/"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602652687944_1602652701450_0.668018739205988"},"_hasShrinkwrap":false},"1.5.0-next.1602654218274":{"name":"playwright","version":"1.5.0-next.1602654218274","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602654218274","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-hFiZs1DCO2egCv08R2yIkWy2kkdEKOAy27pDABOhWoBA7pvrwQhm7yfSg+opus2HGRLcK56OjkZvDWDkj9m4GQ==","shasum":"adc15be7df5278edc1f878577a5a41d8f5570452","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602654218274.tgz","fileCount":168,"unpackedSize":18900856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhpAaCRA9TVsSAnZWagAAAH0P/1bAf3nRqa9FMb9MG9Oh\nDu2z5KXwzwEg+1xrrBJmZEhegJbRpBVlXtSZKFj57Fhp8c6WH2vPiBdsjHnY\nE5r3LbWz+DB5ubjNpwOv79tzoRTtzfxfGXmQqdmZLWwhaPmJo48tX15VUOQa\nY9n3DIDZUWcQikLh+rn6VVNNHEaAaBsWqHl7Jy1A1b1enI2yJtd0ApNnFxpy\nd+xmtB0wi5fmDeX9A8UgAy1MLLFAIH/nqZXyDnZdp8Pi44aM/QSnj/lYTNAk\nmsOkLVdhgR6x/FmtHfySgMOz0hXdky66po06J7XWKiGJTJJh/ywzTlsrfR5R\nxk+6e5CRKWku+VHJT9A85UWTs3kVOWIBw3o4iv/OsiqJh9c8FzOkFsAA+Oz5\njRPpO+g1agXHen+4w4SmYtNyHrlOaN8GhEC5AlzRra8k6eg9nP4/By0V0QsD\nA9FZ/3NBl1uryv/pt8m+nkWtel17BuxvLeX6Pmm3iwz4rGvIzeM7bMvpEWcB\n3b+5etiUBgwvfV+Y/qsQUo8Jd+9+++Fwm/SuD0PJle+eRxDwqQ4rcqV4RPzk\npYkat0FNkti9ck1zrwzcdz/NsCDtS8u9O26ScFhw7SFcm+rMsN0U+PdTz5oh\nTyHl9aeAMr39SwtpgvIwt1/NfptmgaodaETz4AwzVHsXidwtmSP2WKJjyvP8\nNgLK\r\n=yy8q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEm8FHAQrtOBorhtiIotjIh7I4K8fTYcJ+y91VtnwifQAiBSqMKn+2dN4u6vX3aPubDJg6tSgKFLU7VHep4hnF6KBA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602654218274_1602654233598_0.6161420879720039"},"_hasShrinkwrap":false},"1.5.0-next.1602680104325":{"name":"playwright","version":"1.5.0-next.1602680104325","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602680104325","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-B5pAQNPiiuW2WRuEvsuri+2u6Itp7H0tAqwFYaWHRZB33s2CTcZwrhUFgYx6aaKtR3imi4Zt1jNEs8mfg3rnrg==","shasum":"23ed1b31b9ed3fed3b8d61c27ed1968df929b872","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602680104325.tgz","fileCount":168,"unpackedSize":18900856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhvU2CRA9TVsSAnZWagAA5gkP/1p1EBBzISJyXrwnvuQ4\nXS9f7vgjdKMq4hL2Avbiw16OTOhcpDceKpi3uHf8gGfXTMBTyoTlatxgeiYA\ncV3WbUq/WT1yyYpE4ki2ZbDODsnWUEEQke4QYq+B2jOfuJ85nHuBU2u2wpeQ\nQ6CJkbydDgmAwnIbV7ogknZ0qXERsoePM5SKaCv7DBKU8uuMcT3m5ugo1EwQ\neTvQecSQLXeE+XL+cd5vq4yM1h2GDo6MO51hwcnLm5gsYQuje6+g+ETbacyy\n+ASeD4km/H+pb0hUktHrlWcmIjmmu9zuqBg2vrJu7C+MUTsJJeorVGXIk4VA\nWN8KmyV18LYKtBQKDTRgqyy2GyUk0hBNfJ2i9TAFaDAF1X/Ma2GJJWqQvzOC\nklxIhQ7KsfIGEqlEg4uvdmWbJs2faFc1IltPtZW4WCOxnu9PE96NGJP3BzCn\nrBtFja651w/cyOybsdMz1qA4Kzl7SpIHoX/uQtpQBdfTcdmyBeR5eqIlxqAC\nY8ikN/4Ss6x90P5cDcj7XytpoKDJ+9MonljZxZH3wmerwhzXMY7g1cBPDj8e\nPHyCOGakJqer9/Vs2bvAAmx290WtB4VEAo4OFz2BTsLPAThurTPHI4XeaBj4\nbPh52waGF48esAz4GB1S9kJDwxX7q0LDgHqoODUIkKjQDb46JvfyZ/FWaySq\ntcW/\r\n=jx9x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICkYRNyWIYWtLOfegO8o/R0cub+kWYLlrzp8Ru7500xcAiEA+2DcI+FACI2Qib500LrsVuv3bW8yXZlntNpp8qu8mdw="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602680104325_1602680117832_0.7272232159064231"},"_hasShrinkwrap":false},"1.5.0-next.1602693509937":{"name":"playwright","version":"1.5.0-next.1602693509937","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602693509937","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-PN4EaCkeuYGi9LGSOGRejTWb5ozD/6/YXxP8pX2NbQBUpUmaI5K1nK6wckddGqMxiKBCQ5LwAIxVCK0PEOk8zQ==","shasum":"5e7088e0bd54160c0c27ec2528a24fc6dc8c975b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602693509937.tgz","fileCount":168,"unpackedSize":18900856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhymUCRA9TVsSAnZWagAAN20P/imMFx9Hl2Rq6GLbjbSY\ndhToI0d1Y0PQqTT1mZuIaAlNlOTyJl8a7wItRjZc5xfvkFDPe2Igcf888/V9\nqcXh2xVPtoZ67rMFsgA8y7qNfSSc96dD63iNq5Ic8+lisSaLVb9yoJEYxcg/\nMiZBEyxjZqweJT0FGp9Ay2ydXUGQIPTf3xY5n2ekBDU1L2cmf37S7VVzXdS6\nCi1F2DO8uV3TpLuee2GcLqLj5tqL1ExPIx/iAvsBKdhOQn+++2hA7IbPlJit\n6haoe5NG50XtMuw4UlxXFdeBz4ksox/eChSiw30wjAohQX+0KE7g6sKPLgfM\nHuqBDfVXqbqFrAF5EWkWVkg7jiLDBlzhFPFdgFAr+FZNzn7FJKY7genQOYzR\nqxpk59MOoftHaHnqu7e8smK3v38PvPwOjziDAw88T0+0wXfme9Ji9X3sr+DJ\nM3IBuja/DvP+Uk5EvV3hcapLiANQvALxekyhXEm/pdHMng3GnL9cBOqp5drt\nyCdDmTv7tZ62RUIZ6Oe/2oiiFa69LUcO3+A4gbqdQ66a5hm+EbTozMnBMx3o\n5z2zuTgSB1W58P4hzFL2GmAGkAQyOz3BenJbVos80kACybp5RbbKRl7vQXqS\nIN/ad4poYBjD/XgxSg2owO5ysaVuZA6hscuiC0hzgk0YW0namVwb9DECGyFI\nodoN\r\n=aqN8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHd3y7FVIj2ZqpkBShgIT8Rsjao5jjNb3zvZ2VdIWYwEAiEAyfqQNA+SM1oRVhxxKpoT5Q8ttt5+KedPO8XugIYFHy0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602693509937_1602693523932_0.4986234789560784"},"_hasShrinkwrap":false},"1.5.0-next.1602697077618":{"name":"playwright","version":"1.5.0-next.1602697077618","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602697077618","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wbJJ+9HHzkHTlwmYRfIx/4osAzpa1mPLM3nr8CK7Pwrj0atPKiEb4wbWcnIEZW//TkKrq4XAZbTZidaWB6LoAg==","shasum":"2c239a110bc92f378d745a6490fbe308d4ae8ef5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602697077618.tgz","fileCount":168,"unpackedSize":18900856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhzeGCRA9TVsSAnZWagAAYbYP/RiYeBgmrhAS9O28Wdxe\n7Mt+sQyInAdp7Sds2mxguhTNeiHCeXwd/ZISH5MAuSVHZte/AVvL/+GWFiFv\nfEzcEOHgqfWfbXOgY+NQSQ5FWAKkdiDjv5ODee7uQUTMOO4PYOXdOXNhyRec\nFArIqGcL81+MY85G/P0EdA2c2IhAspXpMQyz7nPshl/qV+y2tPVMhqGwZfuX\ni3516YtNA3StpLrVp5uXs0jpz/fQrB7cjrZRqH1EY+TR/GjpLLwzz25lZ6nR\nCP5uY6Hf3lXNsBnsid59kO3E8naGB0IjxNhevysBt0NS9IHoEihLkp1cyiAV\nUEjhU5mZmsInE2VxJaRm6Hvc8XqQVlod5EwVDk0hxN/xhuTOmySa60j4Ux4n\n6wVEfDf7C6AcM+NacqaaevosoW6sW27YJa+T0vLNRKCWUW6pytL2n5sV6dvy\nbJk6W2y6O7+igfkQWi6nX6iETnoBcMh7oXwu1XHQqpPw05fKWvsS9/8+LZY1\nCeqQHEzmD7xVoJhu5mU3KuSo84odGMoJYKyOhgAw9GkFKp4hdx/OEXSrdgTI\nlNtA0Jvr0BWxx56CBGTG1fUpwVpBdzyyswxtg66D9ymGDR0/JEPJKnxv0fo7\niqUUFZAuH1IXJvH3WIibq232EAXB+4czjMFf+uyAWeZp2zs3R3t05fD8KDGu\nUIZO\r\n=jft+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLyH1gXoGaOCEaoBblBRPcxIC1NJ1VAeChMLjrft6ejAiBoKTzVndthZ7oK1bgXVh1LnFUMSQhiMmxqLPo5NViTYg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602697077618_1602697093355_0.5535417619419507"},"_hasShrinkwrap":false},"1.5.0-next.1602697602857":{"name":"playwright","version":"1.5.0-next.1602697602857","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602697602857","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-DojifRKIHOQHLBcF7KIIotcwZYxFWHw+wzOq5HHPyBIEWH6ACRKtwwRZxoNAe5pCmc6P+PPdVlsADMJm1I0x7w==","shasum":"1bed34bc9ab762687796ce66d15ca379dd769f45","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602697602857.tgz","fileCount":168,"unpackedSize":18900874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhzmRCRA9TVsSAnZWagAAPDoP/RsdHw9IInJdOkfWGkCJ\n+2Ibtcw7HU2NcqixE0Ec+Bb+K7zE6YeZv+XV0lN276ytukng4rAlQssGqlG4\nNQUVRNf3sqHwR3Eh0fmEDhebvtUqbv7h+TG/XkwH/1xmA5nYDeQ6aef5F1Jv\nZq/sHiZM9l9ANGI7FJ7mOoNOUp0BT+yR1tEKOJoXLip1nPXZD9ibAUuynHCL\nTzFbQ+wq5Gt5l9Uhs3dzch1Yq4JAOoAr3arUOLk1q/lJdCRv+k/lgpt9MIuB\nk/FHlLvfjWx4sDrxqsB2GA3wqHw/VdHXxh1hj8iUKZ7xz0gb7ayhaIDh44sc\nc9DYYrV7Va5QXS7ngXbd9xF5HxfobpGxgVZWf1aOsf29c5WmhPJHjC+iNDDc\n59eX7Mi8WVl6PNon8IsEuRORCbkWouQjI1yZ30oZYEy2KKhTVQ9v+3hs69rO\nOvQ8KRbOVElYXBgFJt0g7QjKXUblrDsijV6CrSgEfeO/h4mU+WZtlAzQ5Q/v\npy2SVpxIegxWppblKnFlEcp8a2xjfKfzuH6sP8jUIrehkRCUT5Ch9qsIKk2q\neCdXheQCtwtSgIUrnPB6T0H41s0qFlPn04AASDiqQrsKfZjZUa1KnsKW6ZTb\nDoAl744YOHny+u2dvIHRvU3BLiWUIW/6KAHJEgp7Tdjsk15jdGNLr97sXQeh\nxjZP\r\n=EChq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrze0FSgxfnZ7LhU2jpFSyEhVP7kssLzvcSCOergM9LgIgOKebbKx5RNhStIp40Q3ymrVUuw6NwUp1j/YIwXfrMPg="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602697602857_1602697616287_0.23188175245397935"},"_hasShrinkwrap":false},"1.5.1-next.1602697676140":{"name":"playwright","version":"1.5.1-next.1602697676140","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.1-next.1602697676140","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-OOPhypw+r1HuWSS9fW6pF9CMrpdU48PGTj1PnbXmdfC12PA2w7JoJ6MeSOOlmKUuEcy5ClG6XO8DqJYR7ExK3Q==","shasum":"6290ef72cafc4b3b3094997abdd37c236b656bfb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.1-next.1602697676140.tgz","fileCount":168,"unpackedSize":18900498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhznaCRA9TVsSAnZWagAA1U4P/izYWZwtceiPHpdIaWpF\nOBMiEGCG8Ny9+3aUHa6Wa7xnZ7JR9trYmg1pexWDvglmsX8aA4CdFQgf6G5r\nZHl0go7G/l+du0PUhBj3SebaLBZHeWTLiwe97NVLCNBYVFZ9SFkeLumn/DAP\nupAAKS2nQfoLucFf3TKbt/9qiImZPv/H1oDl8tZGk+cE8t4IRoJkNUY4SIi4\nGp58Tf4yVkfFVM4J93bsPtn2aZVTx8YkUq9muu04tu3QZQf1Cvpl/fASoNC+\nmaFPfkgR/uq2euAqVAfJetZifFeikCFzoFDDS/F6D+G0Yl02FdwXVjjBtVag\nPthr+shNq5jAyZZZu5aieLGbGQ7yE8QuG4RAgXPTUPfYN3L0DYjNzvEJTobm\nK6T5k7neZOZnBLihOsJukOAV84wE6rBYYPHz64iz21S5eOW8ZMgiB6VC7Y9N\nYKw0/QqlbhvV3R4Vkox5Rykhu7KSm++ZdhYHH0qgFkefzE48YVvjIZZeP8Mf\nf8Vm08n4siRE2bBG/YtYk+T7JU98bALbO5s82LNwSg7Wc8iupCz+6x9xRL7X\nXX8LPQCgpqZdFj/NmFR4bVu16AvkI6kpchPSGeE5uM5XBFZFR5skqKH+M6y2\n7RTUZOaIMUims7tFxmPRsMv2CxlmfyCUFFdYnnQPVlqYFTuSb9QJvvB0GQfb\noe7C\r\n=qJdV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDofEoJrjdP9KGoeYFsP1+LPcc2ScM1I0QFXhaIgs4UNAiEAle2/4yYsecdVkPnIra5nGqCCokZo0V9sQICSiKzOuRA="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.1-next.1602697676140_1602697689761_0.7010519089030234"},"_hasShrinkwrap":false},"1.5.0-next.1602709974612":{"name":"playwright","version":"1.5.0-next.1602709974612","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602709974612","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5VpISaUKzJB6OXTeWdw9yQkT2xljm0NsPtBj5qDWkzDZLS/O4HgTs76anAChd6HIEuWWHPFRn8evSrXPcJL3xw==","shasum":"daa93cf38666a87a90b0ee1c7a9283083fddd8b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602709974612.tgz","fileCount":168,"unpackedSize":18900936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh2nlCRA9TVsSAnZWagAAgaYQAJTRVWS1Vj9+2vEWVvgW\nW2ndWDM8M66b8GgqHvQuIUtMiAgH5S5BkyVyMGoucWIDYUG0aiLaCog3XRJv\ny4GM83wAEw4BQZJDO5BNSlkvzv/gVqdNLgujziOxfK4ThUMzm3q8xNNLdrgM\nxUljYLXY/gzWNINGfpgGrRr8r60WRa5s486UDYFB71fNexLxjgvmeqFJyjgr\nepMoTiXdjH/Du75h8kSRVBbbi0NaxszBEITWNNwKhV9IEODfyvcIGZ8MxC/U\nIK1KrPRls+uzRfP3IJGvMzyNd7shvlFqQ6ER2ntUBgcqD8ENGAoV4NLHjJ6k\nTBeNCy0/jeQfsMwCAwu7rU8jG+vIqNmKbiUksFyUEZgbFK/Ejxi7Ye9NU7j0\neeQlFLAQDdCS1ZsQAlMZtG+JquWjZY1Lv1a3m0tf8hteDtdJ9UgSJUL8p9z+\n6ZzMWw2StS0lLdP28dBebixj3aRR2JM/6lx5HhvhMwcWvVuz8mIjLx1rGX88\n8XvaUwppcLRpthAKa+tXvLvng1/EWF4Yawq6Hao9miTLCQKWE4H2AZPDtEL/\n2wrFVTnV3dWwlVV+ShVgTKDm+CRJUDI9qcp4z/b+Dmmqvl4MLhVRxuEVhg6U\nPyVTU4JW21gYzzLvlDap3KboAYDvczy1b/FEm92H7mZlRYvz7GPthJbEDEnG\npCvO\r\n=+FRP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9WQBJii3Xv/YMND01OZ62G++9JTxZJYHvU+lg+k82XAiBziumhbjKRvm9W/SaeingKIPZyOqKD2bRB7rSlI6bvHQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602709974612_1602709988571_0.5131556018369416"},"_hasShrinkwrap":false},"1.5.0-next.1602713090854":{"name":"playwright","version":"1.5.0-next.1602713090854","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602713090854","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-UioQg9gVgDKF6kJFo3ltD8xu/DPP0V6v05AfFFUimQ4MFzpp8vtWTnqL2PQuB0fBZUM/kCtp7F6riK3KlwMspg==","shasum":"3acfb951aca2f11c3dcbe591dec83cba4e58f8eb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602713090854.tgz","fileCount":168,"unpackedSize":18900944,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh3YSCRA9TVsSAnZWagAAms0QAJfegjgeJhwJxfU9fMNI\nPKyn8PS4veWwbe9X952VlwgZNV3HknoiZRVVa2BdeObzDebuHw9qtpvJ09k7\njCeiqnmzzrNrkqAXTnaKLMUfIff0eqBBLL0ySET1x2JL46Ed6R8dzDAVLWNl\nq+2vYtLPcKzCCwBeoP6c08d6M4ehqybRJS26w/EkDueyH5C2E3Ch9og0eGRo\n+v6vhEruPD4Jf6ws8zWM77pBZWahSvkyIOF9mnNYw+7WFWpNpkXgvjydkteF\n26dKeXvejo4UkmyCmOl4bt8u4J4T5PT4tIAMsPOmRRpt5bV04M/xnn2FxLLh\nKXDwMVQq55MPHdI1lTL+fibyxdWVoWLXS5iqacJezd40rkX7ZynLwTO429Xf\neNPrZ8ZtJQqy+BA4yvtZCzGqHFY8s3FVOIJvBKDeTjudVHpnq36swGNxtLtk\nY5oS3BIDxLg4PXHalxHrFBGb4YbShvnJLzt3Ta2mrW/PiggR2NgTB32L2GCA\n7y4co9a/aNB/ifD8KWa2M7ua7Ydvx4BYVj1iy9yg7Rgw4y67D926qTdLpFmi\nlirvcXBi0Go9znm7b6totIoiJjies+Q4wG+iX48zVtdXa29DDt3a5TzCmbbH\nJk4mat8hcVbUzbvn7KxsXFEEnkcUvhz6YPB3RDtkC673/a4q8ErQp9xqd9ZN\nGzBT\r\n=8ZRb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqC2tr3rRIay0SMb1VDjAOpst8fXPvBJDPbfoqXbuglwIhAMCXAtOhupURz2oyDn4R9e1QUZD3xfplqhNvExrkNHi3"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602713090854_1602713106128_0.9685546758490962"},"_hasShrinkwrap":false},"1.5.0-next.1602713485778":{"name":"playwright","version":"1.5.0-next.1602713485778","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602713485778","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-unFvpNjICLz3Q2wOJfcQPgLfBBQakP6E7VCWgTHZ1H+0Ppflyw9KYjS6pEeEFw7BfHJC8eroNfbTZoOUxnnsJQ==","shasum":"47a410e93a8d245a72e98ec35063e4cd43fb21be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602713485778.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh3ebCRA9TVsSAnZWagAALZoP+gLIUjKM/wPyJz8VzacM\nWwaBi8oninBjYCAPBOpFgI/IT5CAA7afQeFbxRNVdInexyjDAylUuNQjA+Ln\ne+MbCemTm8mlem0r9DoBsMREUMK5yoYaghuGiLduadgE8V0Kw0obOtRBfLzG\ncDC86zqIDpmQZlePqgd2ayZa7AxfTgi++LVfDUNN1iBwen+IxklKVAgobr6/\n4gi31cnwb1od38M+XO3JdwpxXlvZ8E+npCsZhwD4961BlHe6+/4x1aCIKSje\nLZLz7HKfGjqxbf28Iw17m+yPG9QxIEIPSCxJJ8nnyjPZBkEwnGK0khFzV0AT\ndMMK2h9oEBf+hxe6+aAV6/eM+Lik2L7uHz34Z5DDkLmOC7EXCr7Q2cCR0TO+\n48k01ZzzcTExZlH9RdWuYooj8uqZ27Ma46LkZj7t7geR6R9oWuTU/pnPnI5p\ndPQo9h4PD2UPw4r+mY9muZTpVXBPyyhSIiIR2rfmnLXXF2m4WayLIb8sZ/tJ\nORr0uxpnBhZRH0Y6nHocjoKtcyZFqaLpXcjYAQK4GMiKiZz7dV7TI6rSfrtb\nt502z/sNLFHsE+K9BIqhFQlwUr41FNZSbzV+CAZ3e5ni3meEqOxJQowLAxR4\nTMwQH1IVfYZCuX632tFyVbhZw24np2946DTSDkuXS9x4CsMwsGyMPWG5nPYn\n96AX\r\n=W9a2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIERo37NeMJGtLjLhC3lR1HRjhnsfDjuXonlr1nctLnbuAiBaSgIBfNMXl1MZHOv+7UunR0GHFL0rk9UHzzFfaMfgXg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602713485778_1602713499218_0.3371236243378828"},"_hasShrinkwrap":false},"1.5.1-next.1602714870734":{"name":"playwright","version":"1.5.1-next.1602714870734","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.1-next.1602714870734","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ulsYURwdmpAJJ1FiB7UcBaypcJnDch7CtfBzJvYy9/GOiTD+ADAo70WMAbeyiV5471gngS/bXCXxgZjA5ylpfA==","shasum":"0f8f04181937891118ab23e2d85c530a80b3ae08","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.1-next.1602714870734.tgz","fileCount":168,"unpackedSize":18900713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh30GCRA9TVsSAnZWagAAG+MP/RowuN1r8DJF5uUN6vTi\ncJVGmR3aVFNwuUQKA0Qa7NAXgT8Mn+Irh+xqVG+8pPH9nowydP43c2arpOn3\nHylXDzcHfu7Hz/j75dV1tchgn4j1BcAfwmGVj5mFTJ+KsGQhEESNm36+GoXp\n19AfZv+wXa11SJlsID6WMImeYoz6HuOkfFmr1jvkpFfS2PHy2tdLFT3NQrWz\nPLADlS5Zokkivg7XEZXV+8dqAqYtTVhUPwiIourKl4SAF4GmzJD6Xc6tb+FL\nqFf2aYW3cwZcv6bbVXdNsa4xAkCSNIrtx7xu404BQsZBpyB971nVa5b5bMmR\naVs5b7c88dUditODO8h6VuvvFu7YAMQzYPqSTPgFBVBsCTKkSVooV7wjblSZ\n9eVSW5pLkR6raibbVsqOqfHV5xQHNLMlKjNykDPx3/ykRTA9Pup+JQk9MSiF\nTnDXJLIRq5Edm3SwOKS3NQDZjofWmv7NZbM7gRImnoef3/zic8BmVO+BbYvV\nQpqrD/t1RBPQ9M4MSH92r1KIOG3GqeOsQ+JADmp4E6taTdhPF1vsQJ065Da5\nTIWx051rb8iDxo0/3tsjVdOUeGBQUrjvSdILSkzlrg+pb3ETM/1h23EYxU2z\n0ZBD5LxGtZYcGme4rJsaX2B7CIFK206fLdw4j/OjgS18sOyKpEsww2UN30B7\nY/cz\r\n=EmD/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAGAgdvk2fo7Nz302WS5ofnbjbYMuPkl9hxTjxC37UcCAiEA7ANhrPC21KqlMjcjQiOgYNlNoslXXqWUGwHnujLalLo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.1-next.1602714870734_1602714885298_0.3525766146034994"},"_hasShrinkwrap":false},"1.5.0-next.1602717398967":{"name":"playwright","version":"1.5.0-next.1602717398967","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602717398967","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-MTgOw0mVc/UU/EZXUSyHJOHK8n6UP5m16caaLlPgrW6x0C7Pua1ffpsqheH04ZH561+n7PTozVVt36B6y7B9qQ==","shasum":"42d2e85cbf7460f38ee697588cef16b2cd1e46f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602717398967.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh4blCRA9TVsSAnZWagAAOIEP/28s7/ppfpByv83z1ABG\n2okO3YKAFw4+P6wOYRYF0k/gFSzd4jmZj4s4i/GvVmbc6INuFrZfN/CIqkH5\nSdbzFagogdkNcjM+Jc2HEmOoV/Sc5JIIdSzOwbbA2oZ7DH8F51PGPIzOzAgl\naumdR+mBRnZsOlElj8mbmHwEr7nUuul9dqXXlRUJHXmICsd1CrKpsno9VctB\n9Grv0fmXDXmsvZmznAQcBzqbSSXhr+SAIbtu1Oay+YbziL8eVgcX71LRdNHH\noW83qt0x+sD1z5qmd9YLLtdBNFZwqv3iOoTZ6uAlVitTCVEf43apm0dqjxJn\nkhZN5CS3D7WM20OsU1+5L24+VU6McBq8r1ZGHJ0Jo1i0S7uHlTqNDf+n36gw\n2ZWfA1jOEI1l9aspr3CbUF6wn4F4VUL/ouL4I1Bg4L7liHIE2thogB9lIhxK\nT7OSokRuCkZArijOmDiXsa1nEqiXgQxqPisNP0JCKHS1bkxJlgjAfsMdoKl/\nWKOadoh17IGSRPVE83brwGcFYNJx9VR80TgiT60Hw8buDzoV7qDJdPoC0tI7\nlTvsvU7frzPX/NFCBTknFHhuqAmMZZrnnaJ527K9TMyJ9YcU6wYkPR5lPLmO\n3oaHJoKLdBAaioigMciOmAUmOlaJfy/InFMIGdThxkEPI1wEPnOJ5RLG7V3K\nujpQ\r\n=/oTU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGh8v4KebSMiHvotiOfKvgoXDe3vZg+UJ7QXo+EbEMnQIhAKxDTS1iQrubkrZ3IVh39lMsyeNxEhMP0IxQXR6UM3mR"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602717398967_1602717412368_0.7214510652887038"},"_hasShrinkwrap":false},"1.5.1":{"name":"playwright","version":"1.5.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.1","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-FYxrQ2TAmvp5ZnBnc6EJHc1Vt3DmXx8xVDq6rxVVG4YVoNKHYMarHI92zGyDlueN2kKCavrhk4Et9w6jJ5XWaA==","shasum":"f5333cbfefaf9cb7213b0c9ca8bc9f3f18efcf16","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.1.tgz","fileCount":168,"unpackedSize":18900694,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh4qCCRA9TVsSAnZWagAAu5YQAJSm8qRqsao/ncn5btQA\nHG903FNP8K4c97pBtol1AEhVk7xlfCYt9sJvsf+eg3hIlZCsILMZ1km5vP9R\nyNSst6GtijyhcEiGVx9pk+Hk08Yp27FHQqlGTJAc8nNxYY2rnVkf3T3sMqg+\nqm/nDf2x54r1c9iixFdE2OrbqZ5QaNA09Kou9w54OxugHRM3/QHEi9K3etG7\n+n4Or5PwwkSI8bu+b6hgrPh0/hhQZ0g8CMYZGtIFWpWD3l8FQQkrc8t4Uc64\n7JNluffUAx+rWGLYh6j5hwIG+u5S2QFbKwx0vGLJdL82MR07q/q7spvRglGW\nKqanEHP1WW/8/QG6+ZqspN1Mc/pv8oj8VI5mUFnNBvJaASjNT5q+Zqb4u8Dg\nboZNjXwmvp+tr8uWLnuOjCmGe/bmcD7iigdUaJIZBBiAuVxsUv2KDiUSamrI\nODGpExtoQhCrlAkc7NpFpbrTo555CHQklS5QYW50IpgaLfSVHNms90AJ1LUy\nApk568olp4HqoDrYyo8x+HWPTpdeUggY0pcGGmu7NpqU3KLkpVGN1aWmjS1b\nm82o530tcgaWlom90wY7h9nRH27bcbgd1S1DJGdq8vwBtev9q30W2QQDqMPr\n3lfCKqcaXQv9dPKKR0/v+LQ2cK756nOFM9rhkIVBDzO2nUaEnx0qMxUzNepc\nNQFK\r\n=UFgF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLozpqkaa7f9FwiTGpTjkSM6+926OqmH3zyV5RDm205AiEAqcWsum3xU4lVidz0u8E8bszWi3mKg4yj2ImR/4LUupo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.1_1602718338110_0.7369786256878061"},"_hasShrinkwrap":false},"1.5.0-next.1602739732047":{"name":"playwright","version":"1.5.0-next.1602739732047","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602739732047","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ea8ICWyAd7cqg5GuIvFdsTcoI95ImCskXrGP0IqoAt0WydkmYj20j7swHIB4oTAXBiswErj8qsGrsQ2yykqm6w==","shasum":"f44105b25204f680128d206fcd9dda836cf1ce63","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602739732047.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh94iCRA9TVsSAnZWagAAI0wP/RUdNqMEXw+0evoSIRCv\n9FVgzuTiyrwZKepgZW9Jo0SmXNRDiEZJ/w//BS9IL8YAO2jH9gzaqPipCgZZ\n+nmsbqVwa0k53hfBAodzndMP50rN1IQxbClItxBLeYKPOmOguRDAIZK1LmWa\nHUJjUJHC+yiLy3AvgCcSClR6uLsvN1NReeDXnXPKkrzh0DQALEd6HlHcBebX\nIkmArNF3eTx43NcbAgaNIaIBDcj+xRqX42/dqnrlYr8cBlPvv+Ht48sjKqrh\npFaTu5QE3YyhVg8WyaKZZ812FgcwhiVeYU5AuWooYcO08QD/Zpq08yRSsGhc\nuymkwBGhuGo3URCikOWlvQEw0TOVTyWx7+4Ag2AJ5VN0DBEimoYr9V5X7bo7\nWO42Tk40fVS52GFtrYxULzL2ShWOb1iDH82EFY7cbXZy7i5lDBc7KIUCfwde\nI77UwYXZeQq8CJbbli/k29YbzMmowe/ZMxJxkqxUxcLIf9WGWIEl8g0wObel\nTHWswNVLPMAzwMWD7YZmna3dFuXqi12jqInJ1eu2Jy7Pb932+iPzLWb8p88R\ntFg+JCDPz42q90ogPGd/6ntnHT02ox4NaWi8LBtRrB0yNfqBYew4OcAqxhWT\nCkKF5WzNt0uIyG80hmgRUBzdGeJjuGjCLQjRswuqDCZ/uTHv1UZg8ohsZ689\nNefs\r\n=mdL7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICCpIsCALMwGyB8ZFesXGAyeAgIhOzxtt9Wx43N65rf0AiA3HKou0LrLoD7EGUKk7XqCr1oocfIS4iyz5ehYV917TA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602739732047_1602739745646_0.11648863206213567"},"_hasShrinkwrap":false},"1.5.0-next.1602757854270":{"name":"playwright","version":"1.5.0-next.1602757854270","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602757854270","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-3gmG84VCG20Uc6Fwc6aT8sYeT7jX+NljvcxhBc8FOJMqs1V/9PLJjgFzmko2IX+w7pg6mBrugTbn0y5qcYd7kw==","shasum":"098371b369292bee4ce798bfbed2f00c21c29acd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602757854270.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiCTtCRA9TVsSAnZWagAAMt8QAIFqlviqssKACqvdQP70\nhLv6hg+uQuIoIzNO7Y+lKNhX31jMYrrg6A+PYw0ssf2nb4ZdQTFTfAwvqZj6\n9TGIo4LOQ20Rbx8YSxRbXwiH8UZvgT6V5dtdXsWn07XPj7TvUdNnT+x2kPFS\nM7yR00WtngF4HS9UUpod/1LYrRcq5C7S3ZyXTYqt4w4Ia/ebYHKLZwUhpP1X\noRx0ogA5nCpcpKSvWl4nMVnObRj/yydGNjlTTihQcMjsyzn1IcvF/fFAKVPn\nXVUlUvSxiQG3U491O60Otc+nmCfQg9AkfYe6nyU06CAwTXx/rm4SEM8AeyTS\nWxiOEwpbDxAlLW8KtU8N7YBpxlmL9ak9uI+fb/oHhnvw9ghhN267UdS6pGCL\nryx9FxTj2u43f5IwQzg/l2++v0qoS4wLsxDXmcT32tDY56/CHgCpDtMJMJAt\nTr8Y5bOu7PKq5N/MEpFl3Uzar2Hv646OEZtZ/Qn0X7TTUZtBQfslri0TqQUl\nVfpTgIMgI2oKWWTXFLD5NBcEc71kMPjXxBpSN3wrTFDErkA6DqUZtuUx8T8y\nKZ52XpZj3ytk4ztRuh3KGqa5/CUgymtkhxpYSHiTIrBUFTeeUSKONC0l5wWw\nYXcipa35Dy0FR44vgpnEOakPxzHMUfi3pB2G1fOl70BOwLLfJ75VVOn7Xrrx\ngDl+\r\n=QmWW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDeKocrCQsyVu/InrPQRQ3mc8MDxGyh9if1CXUFn27Q0AiBKu9A9oJMGgFWgej0pMn/EwJ5Lu0ywSS0twOTmpLHVeA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602757854270_1602757868552_0.5610153913290612"},"_hasShrinkwrap":false},"1.5.0-next.1602777285416":{"name":"playwright","version":"1.5.0-next.1602777285416","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602777285416","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-T44oikbkQNa2NY+1VLr922iNQ0J1POqACN7NygxrRTvSavUIHNjyOPywK+hm7Cm/ZwAhOVsVbQ1TENgOOn0faw==","shasum":"2ca33981676cd326cd498518aed9f9c80165a8cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602777285416.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiHDVCRA9TVsSAnZWagAAHacP/jSZRPnRgSomkxVmMW7b\nZDGSnLFgd0indeFbgIhzNQ5RMUzRGAE40jLw24PhXEXTyWSeXvZ/0PUvN1kE\nR/ZYhEeu1J1vgm4f7ZWRCffwKTGgSfWHckTswZVLnWpg4P6Lc3r2lNK6YXrw\nZ3rzYWSShdipeCWnbVBimWQcfFIE15SNBEU6ZeeTl0EHjm3C62HiwBrSVj7Q\n2xwkshxyXLgNO9O0l+KxOyCy07XGN+uars5hUnNgTHSmokla82nDEzGBH50+\nUHmzSBEqv6xAxQ4R2KKcpmbQKQNxehR2OfPGY+ZNpckeLuFg5yAMZpbr9MMi\nlp/kiNFegFOrBh4sWfQSu1zUsPmVh+cRHZHvNiVsplLcmcgeOTuWbveC5gEG\nJvvYwVNVHTrk+iG+y/i+9So3Tn5Ez3D0Gb0r7omJwGSq50Mo1ep0dcl1/Rmj\nIWNy0cIlFXFdln5tiJ75iphmggxv5IGXpJpsCLBAB4zfDV6oWbwQgfVnqQ1Z\n06s/OmjqkqpqMz1aPf0jy29fHxY3lov5trU30NFEp/21neTEuwHfwWmeyFd+\nM+gHDz7O+9CblaYxLSbssdwrzj1rofwtKd6v56qIxKLAuC0/3ZZLz9hZW2L2\nUskDtVM5NfXHbIqJ93SWuFsnOMFifUhf0oDO9g5P6Yp+HwcV1GNuBhbh3+lo\nDCw7\r\n=EUQ+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGXzSnJFxVv4sD1CZP8RH6iuuS5Se6SszbXiltaWPG2gIgLauBATZlSVNWaIQAz9Rnfgey65nqDlvk128eApu/qg4="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602777285416_1602777300385_0.9602878925214346"},"_hasShrinkwrap":false},"1.5.0-next.1602780837095":{"name":"playwright","version":"1.5.0-next.1602780837095","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602780837095","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-pNQd6I8Y5RQT6oXR/DQmoodJofQbkRHpKi9cLPvFMRspXbDB3ntYejOgLGvvrIdQYrVUyVf1vpBpv3ygcFToZQ==","shasum":"7005bb126af91c77f91b85be171b1c4944d1c856","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602780837095.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiH6zCRA9TVsSAnZWagAAWssP/0adAaOPhX6CuItga9od\nFjVbSjBPtuevfIeS+64ZLowQ2M5pscTwPJcg9+g6ZODaG7cZhi9D8GKbq3ZN\nV5YLXaT+OLrpICe7jI03BAigoIduEUKugdWXggjk4/hIWfRWCz3XRMaamPkw\nIJuNbOqg6KaHuO2JnVlbY54d1rIOZd/zb5c3e/Bt7MIm5eeoaSNFQ1mnCg8r\nV7FSnVjXokxY+yfH+KMRf0tnxgG8cKK4baCMOT1OVn4Zy3vR/pcvRfPanWA4\nZE2a8cTOWkGI/izU3/PdIrlEr/5EWWlf+s5xJ93KE4jxIvD77kMkrF+JI0Ri\noZbJqmcW3uJ7KVBcVLlz79rUSxV6CR+fJ/dNmQSvroMy5Rpp1LRzmCN8v6oJ\nyemw/PJQNh4jP8BKLL2YggTGqeujqodVgjLSliu4fShrFh7fZKBOMpjnWhQO\nR6V5OrWljJj22LHteWHgDp34RhktAWN5Mlw4IKNKdj5A69A90SanL0NS43f3\nc3QbONK+yVa6jQ7DrQ0ruFf7eTYWyDrkOX+1Us0PEJ1d80P9MQBIfK+oXNfq\n6AmLA4wJyeJVcGRj1GS+MvRFBPsvOqwCPUpcgzuuBqVIz9f9sc1q9uI0DBVT\nAEkjuELUluwRCKTsJChtVWDGto5FnR2SLTWoon/AUu0cu+U/4/YdMSzMxaM2\nCJ6D\r\n=6jYp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdl4VtuqIJaQ9npjW79sntDjP7HiUqgnKJnWce6KYkIAIhANSh5OERKUff8gG8h/NA8tRN2m0PZEzvKsfHqYOZY1PO"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602780837095_1602780850857_0.3393996739992293"},"_hasShrinkwrap":false},"1.5.0-next.1602783231957":{"name":"playwright","version":"1.5.0-next.1602783231957","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602783231957","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-bdfjMXeNFH+PzXH9Rpb8GU7TuN6Da8mozvLepX0CMdEeHLq2JvB8WI8dGXFxgMNG2r97ymqfV2Zi4LboODKQzg==","shasum":"13a9d98ffd073d73fc759f6414ad0b21055ef0b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602783231957.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiIgPCRA9TVsSAnZWagAAbcQQAJ4oI8dtAud6VKpLuw8R\n0vtJ4A3h3UEaynTQwF1hT5WW63bkYYeJpE7BkQ8l+v/AcsWMmJpaR+VCDf0N\nh+CproZlCtIGzT4hpKm+8z6LHIqS5dyc0L7+GzGNc9rXy4NwuX2bRicTUhJ0\nl/3V8yXZA5nN+zF/HtBugZYN3mwtUHNJO4iA3yrpe2Osebz5zdXQAV1y22+X\n9iIicKIxhUT1WtpnACo+c4HDg8lh4NpPSgDB/HLTmYCRvuXfcMVjCZB/8lAS\n0cdtPoMfjREeZ+KD+E/CCSHS/P+k0/6JCJZ2eWg98HZVqyORDdd6CmhGtfkD\nrDlcszmSq+b42uFA6FwCr1/e1lmFZt9p175+BQYGxuox34S5ExbTw8Lo7nOL\nGXLIZV71gzi/umN3hhaOwOZ9OW0/F4aDVqzXztiNy3EJxI5S9BZMXEInFR6r\nUE2KQuxsqam+/L8Zr7CMEqr5KFUlwN75LNwyGhxIiSMIzvFJhj/srEt5DTld\nT4iqa4zdNgiQzTwGE7WTeGgcEuwkpG5SxC9cQX6zpsoO9J0AGKeHimuv+aNU\nRtRJchjOapGjeD5w9hHtpTZcFipJK1zakImzaY96xefG+V6boHPg5q396k1X\nQg6Kz3YsX8I61I3sKfHLJYwABcnNrw9J3AJXFFzyhtyuxkhgNXZVnfEgnWwc\nd7PU\r\n=b03q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFnxOyapHGRE0O2njAIM7doefMK7hk4jHULoi/Tet/yAiB+jlETUWXNm4kTi1rpZPfxHOhhvW7V797GbwiLBFAbvg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602783231957_1602783245971_0.4826226528146491"},"_hasShrinkwrap":false},"1.5.0-next.1602795082205":{"name":"playwright","version":"1.5.0-next.1602795082205","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602795082205","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-+2LgyUej1HZVH9AK/uiZKUU6Nd3hS15yTaZaNDN7vtH/fVINN6YuNjSXdc44PvyJvGx7ajHT9F4dFW3OrONA2g==","shasum":"5752a6096f77165015bbc2789b4f3740a6b9f92b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602795082205.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiLZZCRA9TVsSAnZWagAALUQP/0i2EumqFNGHCQlgQIIf\n7W+sz7R/04GoL4VYVulThFZrOQ0OjZ0+JIyuaLn9ZmgXn4XDclTS9GMHPj4E\narzwpS4sRb9agRAFwT96HQT+MDvf6WT9Wtp7IBfnAB5WT0vpQCgxKS3I6GqE\nlRXlcnHYz0KJEJRGZ9ySr5wm9eDcWhb0QfZVMAvNi3bO/mcZADxfySsz3Eyq\ngrZ29+0RCsPfgk5GOK6H0iFn9h6gxYXs0YjDLxRNMA4oFrWUbBpJwBeT22Ah\nr00xdFhKTzFrKozteK+yppgkHhnM6ROh3fznljRLQlqC3jT7bK8GU5p/nvIZ\nANELISWKjJABCE5kq4wpEah2oygtXSLSbha0CuAvshmxuCrhP7zwSe+FcVe6\nNK9gtx14bLfkwj7LTDC+ZrJ3ng7+EYND1d8lJ0cG3CjW7T94D9pYDkNSxcPL\nLiHjDjTIc6vg7JAjI1zQuXZ6at8dwa7GmC2LgIEfItKE0IpLsvksPH1B8dxS\nv+6GvK6XjhelWCsK23EWt7pCumD2458wEKekSiXNHE8fodNMmW8Ztc76VtAq\nkHN6c5k16wX8Z8B/Fc8mi7Dy440WpY4nOsbH0ZbcnDcVjoZDLZlsY5TFgwEp\nrKHLDYfSXuzkb6ze6Dq7kg6dwWpyRiXiVJJ3IJIVLka0jrtOVgO6VGqUIl3x\nE7uu\r\n=/hWD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICCxN5QcNkWMsXY2U7GEAUAIUvv0T2MCMQtaQb00oo+SAiEA3a9SBLN91p+rQCtfy1xe9eVv0/TImawcGgcPkHQGDyk="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602795082205_1602795096130_0.6910893868756967"},"_hasShrinkwrap":false},"1.5.0-next.1602797475811":{"name":"playwright","version":"1.5.0-next.1602797475811","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602797475811","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kYY1LJtCXUjwwtJ4kwgmQSA8+7By+GI8zG6sXs5C70n0i0Z8BMpkoD7JEqxEsCWI0xm0KgMTErU6DUuHzJkvyg==","shasum":"a1d21fdd6c61a41319497b44a2e95bf13ca26e27","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602797475811.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiL+0CRA9TVsSAnZWagAAD7sQAIC/qF5Mv9PIyvAZm6Ua\n7Vz09x0oinZMk/hKT0vOeTF1WmTfxTD01Q1CotaM+OFett2pO/DV76vyXTMm\nSqyg4BsLaofOk3v6Z8JIZDctx2xyviXb/FBWAWH1eROJyEnUeibvAAe4fMdV\nwY7uSfKWTXTbKrPBF1MChfERF4MsBm9YcNHgdqDqyIonXK+JkAWQ4MssaG7X\nSMDuctpTbMkVaUPdpKcNF4O4nsSWGZu9q8+Fkl4cLF+ZPF83M44ICCSED1/8\nSYPir96LbF/ZY3rV0KHsDeo9MWFkvalLfJ6iUQZDU7Y30JIFBKnZp93nGPe7\nEOwmEtmUrO7Bh0m88VFCkZSN6zqBWBxbqO7tbW5gCDj7XDm2N2WVURDA1FJJ\nReKdnKGEfDcZDnwgzlZAygm1O93SE97FnCrvMDM5HCDGE73bpZDifcm2p8cp\nQlhZTgSIEOBOh61BJl7TsNWltVNJb7Iw+8VlxGemuvR2z4DCmIEVYNzRt9mS\nJgz69ES13Au4JHE8F3r2Xfl6+wSEs1BeOTfJ1TmwhS09tY75hl8YV6EHa0V0\nsvQ7CDwSqVNefutef09bVPBygtk/O00xFpfdOREGBYq/hbmE4z0WsYiNuDLd\naqsayR8PDnAigsD99z869gzYn3k2fagvtrA18dLYIxXCojKTDMV54HlS+e7v\nF1Uv\r\n=9qqh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkf/rQvvGe3HlgaI3bZSLBXvK3er4r9xUETRpMOrUMNgIhAN0i6MikK8otCHqj5DdSEUTS5W1ionWst4OHkHHNbTWW"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602797475811_1602797491466_0.8197938232028803"},"_hasShrinkwrap":false},"1.5.0-next.1602837014187":{"name":"playwright","version":"1.5.0-next.1602837014187","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602837014187","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VzocDg1HO1aJOFmg5fPlNPs+x4xz3fhVbF/kMDZ5mpy9zL+X96wbDsfTL8IEgr1e8qPoqDj41VNCDram9sRbjg==","shasum":"bc1bc52671e0c4a1ef924c781ab41fc92b3d37be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602837014187.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiVolCRA9TVsSAnZWagAA+40P/ijO9dZ3MQXj8gBsgF8T\nEFuodzeP2q8Sy83aSMCVRfwZnYmyC5BBTM6K0zaSQtuzK3c3fN/qr3JBhcoK\nzEjOt7fVPuOg3QtLNsk1ldYivxlrDM+dnQTNq41t/GGB0ILCGlnhmcS7osTe\n+7HYI9uWKCPvMF6yDdpdZRO/KyMX/2gQqgo1pR8s9pfS703dGmXAPU+Mvy5w\nH9QVM39RVxMUUdeXxRLzMPV6vr222liBF1n+097coZWGUkGqLuobvn6zmw4s\nQfjsuB2Pv4awy++97q/RX2QtRE+tlKjJygg6oIxpU0jP5xQ9pDAklDXMiQjl\nPe4iN6cLfg88Wj6mtBggmjAoToe9/RnseEE++3w+VB7K/rEC+YmHxBcyABlU\n8V4TSrQZBsAnDhYtfv9M76A/x9iH6MgNfQz0ne9y2XCA1IlvTOIf/WIc1nGl\nr0wemmV76jSdgqoQJUpss20rIdJdc56UHByJRv+VU25klQvzfFCYVCIgLEx9\n3ExRT+MdP/QfTPJRPM1VFX4tmrCOhAZQJwbVSDy2z4oTu0hJztfGMZtAPi/K\nrLEoqZOoXznYPsZ/YJCZ2yzmq5rZJ8mN3Ul4utaBq4OGto5oblHsMyKzbw4w\nlSRY/vsccw2azk/JziMNuhDlQ5HFZQYDwzOSc/Re/ko5kaTqy9ZvLufnqb2X\n461Y\r\n=eNUG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDV1pCkb34Sueord1D+yhw+vKbmGTQdW35sZi248HrlcAiEAoot0DGlVcu9CusFTxOa1vOf6Q1xebaKh3xQs5tCDiP0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602837014187_1602837028763_0.39114508842389295"},"_hasShrinkwrap":false},"1.5.0-next.1602861464393":{"name":"playwright","version":"1.5.0-next.1602861464393","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602861464393","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-eO4HklmtbACzEJpX6dCb6SdS9hCSNRg8OdOxPIfSW0M9waViYsXaxkzQ8bCv7aJ7d+XEW9jtQLg1CUJjGE/mUQ==","shasum":"26e1de635b33d6c316d814a966149f7fd9fa4e92","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602861464393.tgz","fileCount":168,"unpackedSize":18901089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfibmmCRA9TVsSAnZWagAADoUP/1Y6aVBlZaBDn37nSdOC\nQS/VNufF3l8aqMXoUmVhw2zRj/uUGrl5e0fFAWzhWzztSxGH4zLMrFpU6CVp\nMTQVPfU+PZKpHSRuGESCQ8rPzbZB5Xe4Vrs6SxeiyO6S15Q/8G8SuGF8MpYA\nAKdLn60HxStlh0plBzd4yX+cdLoQ0J2l2WXpOwZYdO0ensbJCblUxFBgIzZW\nX2C46k0/w/oZEB4BztAr1ErgfbKeFvQ7IHJl40gnYXsB7n/VUPiBXNOCTKxA\nUK2nz+14bypqEPDK6A8S16wQIdXma0E9Z3BPzAVUIESDkZCvJKWIvWaXlD5P\nljC/FaUXK474SqY3/ZJiyqIp0tgKMCVSPRUoLsFDy5kzl7vHWjjtlr1y/eof\nOw8coskyyqttliUy7RPWyv76mtZGl4kwGVKKpINjSA07o3k/kuOHAa7Xb2JC\n/llyRgOr1S9JpaQgtwKhEmul3God5q2xfuxdNLcrpJ9qIRoSpD6nfvoTIhju\nNUafw7D0wEb18yCem+tPuzrWiYegfku5/RfXegw1I+/qlpbsxxyiPZpp2Okc\nd8EXyQiQWuKNWbZdzPHWXX1hi6xEGjqw1jegeXelCX8r45fhcyDOYcs314O9\n8GYM0qG56LcgpxMj1FSsK8wYipe9PAAq1vWYa2zHhbi6VqHn7bAoqflbWzqo\nP5S/\r\n=4ReH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAngOCYjaLg8HI+iXXU/Cl1VWpXFPbokQSdYqCxjfRwEAiAm7IerkCDy772t1REF8PJnB2NB6SCkKrnyJ64vg96+kQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602861464393_1602861478057_0.8691860102813167"},"_hasShrinkwrap":false},"1.5.0-next.1602867974353":{"name":"playwright","version":"1.5.0-next.1602867974353","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1602867974353","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ZYbYsCbxWSn0c2xx7JicOvS41pEiYCmeUbMkYKHmB6RMoKubzQqw0CfSNc0wTftt2By8RjqtQLudGsfj3rfHXQ==","shasum":"71a239033da3d0d69a92dc6297b3f419d950d0c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1602867974353.tgz","fileCount":168,"unpackedSize":18900543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfidMTCRA9TVsSAnZWagAA+jgQAI6ks2ZcLLNlDiWbB3G1\n4cWCJxut0czfwnsvi/YdCKPVlg+bHlRlAREPw0nEi8o5yThvugh+j/XFowVX\n7FQTIJKVM13/f+cht55QlYvNz7b0nh/X9G/iTEF/HEhl917PkI9zQsegWsqJ\n+V401p83cpXpkhq/5tgCeBIklwvYCu9Z3kUeLOA5k7MAwbT6IbIJNx/GzNqD\nceBO81YRIYbcAodXsqsvC/kkCvZ/GtzW4Gg1CNO+OJfOww8Yuf/oIBjnbDep\ngITl/XFu6d+RVUk5sIEBOwrxDImQV9anIdLt0284iNM5uvW+bto7al1miXP5\nQ12qMauf5vTcAfyZ+oOhZAndSpmZBZLH04SrKFvQj+BddF3oN5HybzG4XDjA\njvyddkak2Dz9NkHMRzJL1ajftuxa1waQ1/c/X0Ngmhci/SOseg6SVW6V9ZSo\ndYbcyn2seQQtur0xds0eLebmJuoWnmzOPJ2v6ujz9fGqdDtJNxHcKHvcEAD4\n9eyxs43OuGcGZSbkevMbYjUxyzx8/1TXSO1uSVH6xC4HFr66O/4BVM1w7EF5\n19J4RU1OQTYayJ8k25lBPIUsHfgyiCfzQ+E+G3JZ440TAh02tZaFhw3lnInz\n5TROiLbeYQaM5NVkPA+xMsVyxG+6SIBH4xLrBtA6aU5lzRcnwtAnr4ZXM/v/\n4Ipp\r\n=SF0f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYHdtazB9PD4iEb1PZzeabP1i5xZ638Ap9vp9cihc94gIgEalPhnF4iwQcqW9KfjefZyQqevWSuDY1z5rb9ayJguU="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1602867974353_1602867987058_0.9041066950104215"},"_hasShrinkwrap":false},"1.5.0-next.1603087355662":{"name":"playwright","version":"1.5.0-next.1603087355662","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603087355662","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-aeSZFo2BnBufa+K5j2LEQE5yFbqXrYPnpa8WKXRjK/7fLZDPWFjA7BGKwWPTZiCOB0NZhiQ/GUhodO275+juRQ==","shasum":"4468cc328260765e05c3c031987ce5a8b31e72b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603087355662.tgz","fileCount":168,"unpackedSize":18900543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjSwKCRA9TVsSAnZWagAAkwIP/3jT6QajVdIf7FmPDOJQ\nB5FmTFTyBVYfnuONnChCL7Tu9AZl2EFkQ7wDe71qg2qIN5/BRtS3E/4XSigO\npVEOq1UCYKA6fRDoH5+MnuqBtrV73kCQOGnTangTz7mFLoQIwOa+0S/gPXr1\nXo37yFH7qnPGbL/g4WHrTYNftuChw+VlpBbD1yT1c4RgY5dWbsFeQpjrdt3b\nfNySbnUXhdaENPbio+3aB9U3FUb+wvNE09hTiyQ++0QvXRLqke15aYj5Ok+x\nzaLUJeHGFxykqB3dZ/Ad4z9J1XiuoxIUZnE4Pp6ql0zE5QXy+YXwC6R5Ty0D\nwe5JdQCqfitHt+7blLSi2XDcUJMCGYf706OF5iXS3vwHXDxRSD0E7TWeS3L0\nDG/pKj5xvg0d5Bd21DHHaZawOOBRFNCVX9jYcCoveRTwbyIGPCPmVa+BDPGJ\nB99R9z8GryoiYB3jE17csY2MS99DsY7igbjAb6JPmNPDUa22Z809vw9EqxB2\nHar9XD1a0XjVt6C2Gp8vftV8/A9EcvXIw/5ibeNCBB4hW2l9CFs6TT4Jw6VF\nP0eEOcv4wFQZJBqaJRd7zmYuKv91LPVVTeKdfcyq92TfCooMc9VkKjVN4Dz3\niL6bdT2aGaLskgDH8SO7EmOCOhMSVZBudcukVyWvZoqZZJMzyUqDnZgRS71U\nCB09\r\n=zE8d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDhIN7uQfy1RMY3QZTw5IwAP+llqEKUxgC3cHsX3sd5wIhAOXrRv9QhvKwaeElhbzUwOJ3JW8AL/D//oF90fy3l44u"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603087355662_1603087369418_0.3609464904708395"},"_hasShrinkwrap":false},"1.5.0-next.1603087547110":{"name":"playwright","version":"1.5.0-next.1603087547110","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603087547110","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-w40lHa050tZtw0Ov0aDl9w723P5uLbRUZLGWL1kb7cLc3r/LlQlSg1JsroSQI+rhs2x0ATcGU1u9lryhEZKsjA==","shasum":"507dd8efd76fe7a0f6ef3e777acb099a417c3275","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603087547110.tgz","fileCount":168,"unpackedSize":18900543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjSzKCRA9TVsSAnZWagAA4cYP/11wmebZtRYUmaqIz+wu\nAqawNFDHBvgoxDi+W3Xop6XChkLmHrdgkKlpAEW4rJLGrD77O6VwO5/2xY8F\nKfT2ukCnkRH0tSfur1i7lxjDw7M0M21H4iygrHgUbni/+OXoZgHOoEUjbZRi\ncfsjNU0AzkF0kIOpu2ZoWIikI0i4jScq+2Bn4zF+fagy87H0XT0Jgx8Fy/e9\nIHc/CCHeAJpDwYPrlhMwMgk3DPNzi/qDa4nYc/9pexcsbL9qaEKtMo39x4J8\nf1xXpoKOqCfMvC5nHWsoj2e/rErWm2hurk5/N65+a4fcz/IGvGtVoRydD8/8\nFWPsgRxtCBuRUPrN6nSDF3HpCbnT5PlcjowTcxLTqthvzvICFJK8FGVfH/dV\n4bRCZzcvHazstdTRJFkqA1vf+BsSJTf5XbU96y0k3v9WOODArZSYN0vLiMFx\n0IBl6NT2bigBWz1V2bPbMQhy3J+ObCBz64nQIXZwhxqo8bP9tQKy+tvBEqh/\np7bHh1ho5S2iek3JsvW48SBWfpXs5rXcZxd2IU41B7d3TbANAs/is/d52UnX\nJvoCqzCUIvezg7899XOer/qSGWit3Yj8Nd1M9fFOfaGZlBvMW1Gm9mgKRktL\nnr9PmNT1d7hNqtiNGBNObki4h9HFoQOMdzR5SXkbShpKl6KF+2Wr7zO9EK01\noenr\r\n=r6l8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBzQ488kqr5HmdpKPx6TCJrT8YTqRy55ZMr/fYbmcxKgIgPwYuxlNzlGRJcUloyfeNJ/3qee5ah/QrSQbafyZGh00="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603087547110_1603087561634_0.7601529439316275"},"_hasShrinkwrap":false},"1.5.0-next.1603099576798":{"name":"playwright","version":"1.5.0-next.1603099576798","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603099576798","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-HS4kzYpuZKLyiGnRHl6kDnRl5OvpylObeOT2OZdvXbSSqLg+9Ei858rp8M4ZDgNSfadCOEHxKXB6wEfhS/5Djw==","shasum":"e0276b27d67e021ee33ef33478e90930ba0d783c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603099576798.tgz","fileCount":168,"unpackedSize":18900543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjVvHCRA9TVsSAnZWagAAB4wP/A6t/KUhXf+EaUu99RN/\n46kn/QcO56fjRLrO0ektsQI6aqoRcrw7ckY89dG4d87Uz7vYdMH+DzZj/5/Z\nAMuUqnf/ASZ9daGQoMxVkz+FxvD7T3phRNc0bMe+l+Z6wmAmxzOnwlPCN8Cz\nIppnsUh0e9D+Cpd40S5TmvPbFc0y2JRT+QW8WJKMveZgCb09RPxsOLmE3IHs\nkUoELdbZ+KvjhRXcoYrN7E1iAHkSHN05y0z82oOvgNstijM78nISO8HMBYBh\n4kL98YEAI8dYZpGWiia+fVbx9vhj8XRxG2FUVHc4I8Xreoz+qwm4Cw3yLjKp\nX8BIMOxFbYqVvAmHv5g7txLk6buyPofUIvjXDNXEhmFz4OPMGeJzg1H0qB4Z\nPEFCqzh8g+JRbXy6rlPrUfUYRR9R+Lvu1fhuci6unFhy8bkBfVkujylArzlW\nVaN8PQ3I0giirss7zTBiYM+jK0NBa5urK/CE88fe6M7SRm+4AdQKm8MsPISa\nOXw5JCfVJWV3PS37KRsmCsuxrBMoyg2Iht45updDn73+GWZR083X9+NTTTwb\nwL4leFXXvHn7eDUVS4oNO6+3WrLwkH/965hkGiYvDRMkXCr+IFE4YAw9m7jg\neDFf5dHVf7BPGtH9inA3ptTiWIdy92zyqGFO4WRTN1rt6t/7EOSlFDI4efSm\nD3uU\r\n=8UCt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLOUyF+sKAzN+jQ8lj0wN0NAYbYbS44uPlpgGptwhB8gIgWZyonnb/tdj4pCuWD/HX1aV+Z9tKshnfLJ7ND6Yc8q0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603099576798_1603099590497_0.21284465569322086"},"_hasShrinkwrap":false},"1.5.0-next.1603100221271":{"name":"playwright","version":"1.5.0-next.1603100221271","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603100221271","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Mp64MU30XRprdEkj4snZ/pGwlOGh7cjbs18M6uTGGy6EpBoYFFW9Z00WulvePdeuBPWofXAte3NmX94aEBTirQ==","shasum":"f3159070a51df07b299413855377d53013bfc174","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603100221271.tgz","fileCount":168,"unpackedSize":18900543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjV5PCRA9TVsSAnZWagAAYLIQAJS2RNVbS6JqLBdAXJh3\ndkuIIBUC2T8mNGhZgFNTb00hmzZaUgH8u4YKc3qYZrKPbVKpvsZW/U7XUa1I\nZ3Qt3dudWoXYf359sWbXwCBzoOqxPS2EdCT4pbr/ybOOHL2Vzqws9HeDT4EG\n/lCRh6G9ktgLUo4YzLZcK7ee3PQDIkDQMUTaH0sbFcsNpQvScwt22fvteqtg\nDpMUTBJm23mbLA0boABa4cT8uuF3fS2vMyUb+ukQccKbs5CnZAeQ43HgrQss\nK5xOzwWVAW9xmc24qhefkuM2H6a/MuimLxBp1tfVngy9ZzY1cLkm94HEDeE1\ny4VOhp7uovQJMEEur9BfjPgjGIxOTck4mNMX9+MMTunolV5MMeNVUH8XECAN\no19KwDBmmpWgRhIA/PYXtGvNnmTyCwj6ZGynkjWkvO1JLW4GVixdXA279dk3\n8yaRN9efO81CP6FtK3vLwuMC90Xk5jBtktX7CME/GWR5f2eMeq7Yg+eYSt8L\n2jc3m2nqBIAMs9z4McK7VXGGYNiCxcLUAlmHUJArnhOYEnX+zUuoc6X6DO0V\nr64hkrKA6uWXIrITzswrx7z1Ni8iyER5PcNlvtshA7SAD96YfQmNvGyzLO8Q\noCuxxvb2JZ1WYl+rlY7h3Wq8+rAsNEzskoiCW8eUg9/3DNMHEQ5hKchZKn0B\ndH8f\r\n=gmVD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVd3KyvIaqsKDjJWwC3oSQwAWMaIk2DjM9P0XapT9YXwIhAN8pjOk5W5Q3KwcSWq0l+srCbz77d+nyTyxLKpa8F10T"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603100221271_1603100238293_0.3017024281757148"},"_hasShrinkwrap":false},"1.5.0-next.1603101947028":{"name":"playwright","version":"1.5.0-next.1603101947028","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603101947028","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-3bGAq1SMLEdSJE7zlKOAmiC20e+JS1v/zYgdylU0MpVhiT8sd4V11oAd7CNuff39SpTJta0/0RC9eXR820dGvg==","shasum":"34097643d528c699542f45a179a426b1cca32a35","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603101947028.tgz","fileCount":168,"unpackedSize":18900543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjWUJCRA9TVsSAnZWagAAK0YP/3ziewWWgGOe4/az3sUA\nPl9mjRuAMdi/d0XEcrVx/6GMaVtbRYjP2AVzT+FtkOtCdMgYV62bzOiuKV07\n4zDUUt6Al3G6JHLdscfSSUwit8sLXuUMLaFzsg7UpYWPMWOcHHNZOeoNuAv0\nbzDfMee13abzSxwdUStPN3PEtojj1la6AVzTgdOOyeYfjyN50ORnaoLlQXtZ\nWptO95IiyGjGCqkKmZliimXWeFMyD6Nv+IgsMcn6EogZByd6eJlR7r68IX8+\nB/8oy1CR0vJ1OR/oEu+E5iywBzAmrCqDa7a9f3vNNr1a8smH9ITGbFhoZH96\nF7ozXqCW5WOz9Br+Mw/B69QhODLwF5AnEne7bL6jbVH29XImn5W27h6PwHDB\nnejdVlKLKAicKRDdwJaGp49VGbeM2C2zUSUp425VCeZE7e/nJCn689VfB9zS\nh09hh0dsEY9LLK5vdGmg3AN5A7mxIjdkk4ShQeVebIEMpnXeAY2Hm7d73JMX\nS8zcgbBHYDHRMqeI5j+BHED7YjJP7LA8onooMzwwCSyFAmH55oVzcAKa7t7n\nmNkTqFdMEiHjq6kMzC8BI5Zkai8y8CwnkWMcP8QNoX9TBsY97H9u6tA/yE7K\nGfil75uZ7eF2bG5w8iWS9G9iatOqFdA9aabRz4O9r7c5c7hhzw/FufpGtYd7\nugXC\r\n=5WfE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUInzP8PzipbaP2ir8EnipclWv52M7g+S0Uhneo5PC4gIhAO+TXNSShIhkpcNAty1XfmP3FGl6N0XYODWkfFBYVh3D"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603101947028_1603101960554_0.6846250541659245"},"_hasShrinkwrap":false},"1.5.0-next.1603124368906":{"name":"playwright","version":"1.5.0-next.1603124368906","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603124368906","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-c7cW/PNseOppJBBlahjWhZb5flOJzbsS0TKusmLkgtporwJI1w8nVnQ4hmikhfxxkDF+T2jDfT+BSm+37557Aw==","shasum":"161c541594b39cea07ccb2b1fcda2daa2847d2f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603124368906.tgz","fileCount":168,"unpackedSize":18900543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjbyfCRA9TVsSAnZWagAAERUP/RMgVl9CHn4EsnPsbD32\nYbuAWwTV7Jxoi3y7sEstN/FZ1VnMTxniOXYqOPBqDHxq/T1x+j+wgqCA5mJC\nUzfonO4n9TJ+V75eOaPpsEeYqabvPQEZU7zPlAp23P9jh2LHi2mMY1/HSzMH\nzeAtME4MIPNV61j4GdPklhZX95ieN7Yb0bTEsliIivxpyOki1T0bA6kRSPMF\nr25Prd3HuYI57xEQCMkwvi2bZ8NNmgbpnP8NbpSXenzFZezJ1SCs8epjvZkc\nWSksi+zdfKYbbJS0hyJPWr6H2DaaRCvhsfb95/B7vdqE6a07mJCUMVvdPBcv\nGDc7O7a53NogC/xA/n/0df7WMk1O3Slquq6Rt/T0jz5fY1I87H8uXwqtbMPR\n22n48mUiHCV9qHyqy/Z9aGamxIhWl5b7pBPvIRgbuwbjoFLhd9Fm4cgFrpJG\nUt3AEK+ygYkYtufdg7YA+Is6g5X6nIYhPO4MmEE+CLFkM1BlqaD8rOWrdIh2\nzpcuYZ+96Npj5xnSg1957rNcOgXFlIr4iMGvGu8eMUPe4vGB57uLa77pcs9a\nM1eIfF9oecdatr+3Y145O2Xb9kdwCiQlaWqfCs+5QVAQCBjVj0WVK4vP/KBT\n33yb5ZNwZKVAAcy4J8GCMmBdjO7hNDl1AS1S0DLxk0aUsYCuN2EuJvPgcdAN\nZKDs\r\n=1HvM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6LHdSv6gSwhSvSnHOfQk3bSXkmbYqQPug9Kyl0gsO6AIhALHIsCA7Ntrcr3x/zx+JyH9j5HIEdLsBhwX8ZGFmKaNe"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603124368906_1603124382344_0.10392227854768032"},"_hasShrinkwrap":false},"1.5.0-next.1603127076088":{"name":"playwright","version":"1.5.0-next.1603127076088","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603127076088","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/jbRRZCjGcIGYgWQGBuOSSnmCDmcFYG+gEV7AhI5eq6vtHKq0C/uf4S31W8roxHDk0YcgOL+qwhKZ/Qk9QayWw==","shasum":"a0ec8f95bf6048acc2eb29152cf41b5b39d7e5b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603127076088.tgz","fileCount":168,"unpackedSize":18901208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjccyCRA9TVsSAnZWagAA6UIP/iyNk/j4tsMIWmIz7/DJ\n56bb9D8zjutnRKytiy7fwUg+OjC86JWGiuP3VjZUu0ToJsJ368PL76bYDBpI\nCVd/4iZ0xlahsZzjNm+xilufVKm9GZcmIszzFa5kE4vXUS/gkii0jiVTt2s5\nf/rRLgB9hZYr2mMZGdk0keG+btP0jq1xEtqInvvdQaYhOjTIUECxsPW2kXoU\nvg6XUUAQJORHa8p54xIvBZ9S1udrl+hA8xxNK514rwAwhElF9GOQM6oz4YyW\nfyjEcxhqTFFENKTxUmg3xf74nKZ820oQdYU8AhEtOIELkaxmOh1uHHqPdG5/\npxdGm07OhvJJtDgh3u4hDEka3kb9e2ilmPOUjiSCQ4csc79lw8RZohEXyLaN\nLmbT0LtG677gvIlXOaxtTfOiF7Oao3eGCFIMkbzurLqYQkUve1O9HdqsWYQn\nHYwUsfw/DIsKlvykeh+1hyMLZOTb91C9zTuC38WxB1DsfffNCvYyuHNsdgyw\nFOBsH2LldoRZ0Nui7SMb2T1on9H1XAznnvMlQ8897/Yu5kUMrC2JPhnqsWqB\nyDjKyAW7vOBifOZRaJiXYzq2g4RTib3EgpN6rD1PS/YCYfwXdQC6qHE4oeYK\n+sB7zG/thyYiyXEqzzU9HJMaS2okx2sC88B8T6ToNNvZzR98rK8DMxQISgBH\nYBTD\r\n=P5yO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCbVMRJuMG2wOaSKMCFmVI1zXZRhiUxuv1YguHIluXLwIhAL+JCnjddpiixEvSEWupiGbW/O2MMRZBWYY9D7mEwDS3"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603127076088_1603127089905_0.9401752398856817"},"_hasShrinkwrap":false},"1.5.0-next.1603127413838":{"name":"playwright","version":"1.5.0-next.1603127413838","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603127413838","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VUo+x0ozZ/MmRwyn8QQqawDYzXgaYY6MY22vEzII9ft5avlpEVYFyr+9Uoj8Al2f5hl3ycIZs9ImptkBlWODhQ==","shasum":"51e96d33a1f29e7d7b042e7a844b2e1b534f83b3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603127413838.tgz","fileCount":168,"unpackedSize":18925605,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjciDCRA9TVsSAnZWagAAfasP/isGEydimMz/rWnED0Z8\nBRbUlaJOAhJgEqcMS1v6wj/tju1JagjXQDOe/96iqXdRjdNsffDyvvaT0X6R\nDVu/MNNH5vRMF4VJVEuGkeB/aNcsRXRIEQ/t48ZYPghcfP1wkOOeij9J0r84\n4uXz4XGcvD/Db+9w8lsZqUCIICPJP8D8JiC0c8xGAVqyTfN7LYmBKSuwIo3C\nuq2oq79uzMIcDBwF2iVFlu4eK8JXlRAkX7ODRCLcko76LwB8+yVCY2uL2lgh\no0jljQhFU3+L0o4iX7V18OulYkBAWch6VOTBsgaxYBWmfmlQ+4UlQFmrxwbu\nU99AJPMYaXG1NFe5C6eZpBHFhna3uSr1IWt/eQZBBcldTvDTNWwA55P7NT9U\nisQKWgrI2Tfb/Xpb/fUraLzSDh+wTZOyYggX8BRrLKvewv6xexoY6Lf7ue0x\nXtHowywh4YQY71cpYA52MHLt0u25mhFi9wA4MHg+LOBodllLnONj4jwu38+P\nl5fAoNgLw9tO765xQW6Np8podeySChBQL6tIX8OWOSXjz2AirR0UNReF/qzR\nj5QZMQ6Ije5Y1Ed6YkN2zJ2NcjcKIF06xNMjM49ChHblMoKcoDTIOtvrzaBG\nJyBkZTPv+8hPc0fPYKId2J1H2npVLJl15Q7epCFIrKnmVOQgeJbtZgVbmgKc\n67+d\r\n=Bgna\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDacGWazdMoO8WO6qFDVkf9+0RNb8EjlZ1QJ7nazH0XowIhALbVs8h4mPZbZMQJmnLlOUh/UISTb7bZWdvBkDZIdptb"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603127413838_1603127426816_0.45823495084265176"},"_hasShrinkwrap":false},"1.5.0-next.1603143443866":{"name":"playwright","version":"1.5.0-next.1603143443866","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603143443866","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XO+mSGGiXe9z6dvKSja5W+uyfiTv4biQI43oB0OAfRuVZ6+Rjk9Y3rKv4Hb0BPFhyoM+U38Mnx82DFGN1yaahg==","shasum":"976d9f0d77c268a14a045f86a7203af572847038","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603143443866.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjgckCRA9TVsSAnZWagAApz4QAI7zP0R4ljnWBKSKUEky\nU6HV+74ziFLeSywJk52bAnRfaL1sfD9ZOIOj38zIawsfBiVbeUuRh0ajIBHP\nKOVg5xr1jrsoAy+KFH1ziSFgnb3tEatAJESWyjKC4IRswea3lm/XInSB8CyK\nw9qnfn7a3pGpiGIHjE/IZJ+3eyWG3QoOlmZpaMh8uyIdo8EhCL/vHOD4crKV\nfkT55WCBEtxZrXOLW4vQBPw5DHU663GLMJirlr5XTMzrUViDrF6a/I3bqUyw\n8kidIKwUPSIgdJZ9X1MlHB/92gHvp75jZGkFZOgs9+gmGV3UziR6MyxfSGqs\nE8OEQRVcFSRCfl2QB7E5tJZYxdvUVm+c0D6J+PGgiaIzxfvTaNKuanhLcO2P\nnJMtk41A++k+3UomMGvFJFxrwh4TNnF190klpeX7WTO8NdSUYKqZ8/lLHZfw\nYS+2+jaEjoUg67EiFVLr50bJ4tFa+kG2yFDUJM0MNDvyWBWJzauLiqCZVxaD\ngqsWx1MbJPhqS2xXHDBFyS1kKd87uEMa5gY/cEPGWXRn3/j9xCnXoAEsX/0Q\n14UaN0WPsQZGMQdcmghTcBvj75Fu7b3/M43/VASSqPJryogWynLRhjphpqxF\nqy+40SQLzgEZKuYc3BUA0SMRZtyuMFIk0f/J/RKNzXTHzk4f/C1vv6U0aboJ\naJOA\r\n=YpCv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEfKdScRbQbqTxz3VmC1ImDl8pIfmVoGNabn1wWHVGzQIgCRAcMWj5JNUmFIfA3UBEt6EB6hCHbCVh+b3NUlYcRG0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603143443866_1603143459234_0.11854982977090112"},"_hasShrinkwrap":false},"1.5.0-next.1603154545705":{"name":"playwright","version":"1.5.0-next.1603154545705","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603154545705","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-n1JRWljA41ycuAg8bj4d2QElm2xW1u8TRoC1N2OR4FfKIvCA2eHDVGdpBtClP78hgw+aOupvJnpSX4wN+EKTgA==","shasum":"356a42d6ab07e610a9544115475e7055a5b4bcac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603154545705.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjjKACRA9TVsSAnZWagAAhj8P/iV/BTY1ohOdLaD1aXUG\nO5u0iRmQCLh2KVEQtIxKGNOmsV00umQqbRiljK/3jAWgB8F+K+vWA6+vGhgu\nqEcQz+CEofFgIDmKc34sZu/KfyfLL5Nmn6LZxDhXHQ34XCpuGAgGdMDDBSa4\nGkDOdDHlYv6GYhBnIg3uzkz6cqRjwAzjTxgCnjYJj427XI8II0H++MpT+olG\n6QyOeAbthgvSnkYE0DIOUki1Ub3jj15OegQddSNG+TQrS3+s25eiZPrqaRW2\nJ/xZW6XePcB96pfeM397Pu0TTrQm3bqJsdWJKKaDqVq/WftZHcAxOJ6z0GJv\nHm1blvUnfIbZJdmzsG+QZmhCbCFYpmcQ7iJRAyADLqTyUJy4F61yPtnmlbv6\n//f/M6W7J+h2kKxkkqhjA/huMyZZLt7qS5jp0G7rN41UXOr242eJmxU2iIvk\nUuqP/HwfmfTY5WbmH9dv2j3EsKd2rkJuXiNJZvjQPnr8yt5vKlAfoQEtACZ3\nq7UBxilrehXaV1E/XFKCG4y/1/gW9UJ7IUF4dHOXATnvOUQQW/RaJ02Z2wTu\nSyMlZ18+QqtyUfEMz8756ZJDU3fbX6OCbnhRYDe5eHzShnGIM1QpI/wvLc3O\n5MQO2zzxe7weIEQPV8gCzePNoNePGldpdalYGxNsSQiKiJgi7df3w2gzlJ5b\nOM/D\r\n=fbn7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUEypVyPRzTzPhBD8u90+lEcE8KQh7EdKYkUK2fhJkngIhAIeFEd1/n/gZK6W66hrtjqtuUQ7Mm+RKROM5+qqSiF5C"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603154545705_1603154559435_0.18703403578997335"},"_hasShrinkwrap":false},"1.5.0-next.1603157853122":{"name":"playwright","version":"1.5.0-next.1603157853122","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603157853122","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-X/pLw/MoYHz+U61ZXSfqwbCiRaUl7SdMPRZjaOVPJrawjBrPwH/z0SLxbk1G9HNXULGrM0govxWxM49MExbqGA==","shasum":"dab61971c4d8ecd1b0c3b0273c938d24351d4bf4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603157853122.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjj9rCRA9TVsSAnZWagAA6pAP/i9jIQgk4rNTWMC9yrAF\nudJQoixl/V3uloAoilY61ATTWbCBrKfYSDzO7bcxrnX3D0HCOBwV+kW3h45l\n+cYdGxrIEgqXD38ihxRjJG2yINSHq5QRzRRYXYBLzWz/qLHc3pH2EDYyht/q\nz/j+2k5t3WQ1P8SH8vE+/7ynarCyBibMwkm+4kse25lZw6NLSjXIvI8iPsfE\ntU82RogQ7sC0I7h9dXeCXMlQsjR5GFHjN8vK2BnCVHR/1WHXUFmeKh1hStNg\nxjy5gaAtxb/73ruvQngIEjgERj5V3e63/NSKScQPvDthRVoVPARD6711Ohgb\nh+ztZl/rHtBLgJ8XCGyIPSoGDs6ykjmi5srCOAHCBgq2YfgJ6pa5Kv8qlhkg\nF/Jq7l1Rt2/QyKcVkKqZjFmwZ5cs7k+C0wgWOZWwmWzx6eOxal7GSTwyidIu\n8Ux7wTxm8Z8k8O3koDWp2rzNnxIE9FBKGN7/1SEqJb2ovPumln6DI+3MDNSp\n5u7eApyg4H7/yMzX4IGOhDfon29nrC6+r83eu2Uxfz1mHpojU1KcjRXDPpGm\nYKiX1WFDPK6bprq7yKOZcTf1H3tUefYhIidoQD2mnC1EaewhzNU5LI7hCujx\nzwF4fSvjK7HDhtNNG8RS98hHZpmAm8BqMcINWXZipjj5RsRxS/KuBG59qOvv\nw9sT\r\n=cUrg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHTSZB7ZSakW4qkv/18YtF6kIfFxsMdwlBj3P74tdLNzAiEA31BhGRIsAWPHkItEa7dNqffG/EBqqQIa43Okbn+qJvc="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603157853122_1603157866617_0.1289148329176344"},"_hasShrinkwrap":false},"1.5.0-next.1603165335028":{"name":"playwright","version":"1.5.0-next.1603165335028","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603165335028","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dx2IvmaMR4kXZdfymU60bAsAaJa3aOfpDkJfQ50orjOP9sG3GIKrdEnIa5I61UAIPpJitL2zkayDsy7mUkJf+A==","shasum":"d4130f53a59b2672d28537fe106ae0bb4f481e2d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603165335028.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjlymCRA9TVsSAnZWagAABhgQAI1GjLCn6j4J7IWSMz/i\nEMK3R68WwE+zZIH1bC2Ld9tat3UpNo2k8lHQxDGxaZTx4g31Jm1mmrnHX4V6\ntsX5SpEu6OkEFk9uSL984+P31U7WE5s2QZ+0skAltTJJ3HCWtqRYz8EmciYG\naYvckAbRw1W8ii0wHL9BaJFiaSFdhiR4ZQj/Qixnm9in2H648iYYyK7uB+mz\nBsmzGKk5tp+9kLT01oPe6orNaxPytS/dCaT8sJGrkhIsXSuN6KhJ/NKXRvLL\nMteZ9FT7FPgKMhGPRsilUzH9Kui3NDRVLeGmCidKNDiHRqdDemdo70hjawCr\nSLbvMzs1wbLquwaUs7xF4b2Bb1WLPc8bCDQlClM1+3UXyWGrHvpKb/AkKhGo\nIPf4Cpkhjp+zGrgwGsPq7YPJyrUZDNKPpZiF54tm6fzFyRT7sFXYOkDMoXUJ\no+scg34pxuaVGLdF6Prv3EL1D8le7sMw9cCBc3H0tNto7ODGSPy9IpXbB5eu\nxxU8qzw370UCffiFY+20xbr6OBk1AmV4UiNLY3LOXd67UrMDKscwWFgPzg5Y\nmNTZrUYd+92bM0A6rMDgXYFOg71d2NaMgnv2pDUz/RM0lH08dkySmaw/17Dn\nZh1RdvjPz5NwmIca+eoQtNPbGC0N3BIFDzowrlJasyaXp9jDOaHAlFpGJicE\nrGn9\r\n=sknv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClQXXljuVF5d/nVESxfIFKocnjWEv0YuyX758G1so5JQIhAO/z6lMIupoSoJzqm7aW/oWxRifd3KdKRIGXrA8ki1pM"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603165335028_1603165349790_0.510117217683304"},"_hasShrinkwrap":false},"1.5.0-next.1603166879458":{"name":"playwright","version":"1.5.0-next.1603166879458","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603166879458","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-qxbr8ByAJ/s0ZcExGXuZ/hSxxkbU4z3DT2pJjKPE5YfBcnwa+WCBF7l1XzBSRA/3sU942TLxV42+nLsQHbq6aw==","shasum":"d4ee41b1c2df9d71fdd9b096f30ba33d0bb78a02","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603166879458.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjmKtCRA9TVsSAnZWagAAuBMP/36okCJOGK5SsC65rg9s\nrR02WGu4DKrEwQBrotNL3sKiYQK4sFnGHLAswQzINXB7pNgu6hxtm1oOtUCj\n+oZIocb6lMiHBIzRG03OxanJRHF0j/MaKtrfYhky6cmnd2IqtZe3uy8NMVpW\nCfjyZ0p/8gXBRjbOaM1dJp29/S5XZOVNReMqYhnBU2nFaq8xwfneUDjK5ULL\nxhIwxX09g8zJkGuQ/ZaG4G/HGBpT/ZSjlyVsu8hts/N4zCt7X0Z890j2Kt21\ncijVI/0MHR2o7Gs+H78ZUfHrKdA33xyra+WkAmWgROL3qWJrh9Y32EpkLrlp\nojau1wG444yN2ZBW1bRyUOciQ27RVNYj3ijbv4nUN4krlJAFmX42Vmo0Okn7\nJv3xbVFPLH/PB8OIvo4odVMR2cD3gv0YyXC+0dnyhNpaXH3GF/hQRpHg2b3Q\nQU1hl6GlSn35LEkUlinH70ln2XmrXmqS1krQrOx4poxsKB57GQ/lrC4AT8Rg\nV1WtG5ROyHd2uaYFqG2agmB315SF82R8h6yrpJaOyc0913Ce6n26k1K1BWyF\nq++UqXmsgodSI0qWMCAmDmLTJw5pldntyc4Hwck85c8seECyN+YUUwCVzEzd\n1UQiVy65cvAO/RYAcvP6xyeRy9SryNtrqKWKpMzqQjGccTHbQxfPfcuZhbja\npIWE\r\n=43jN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmlXRAXKgwdUmAXNxNLIO1tY50ldjzWWo+Yl3IOIp8pAIhAPOVxQHgM84EcG3SCWQxHp7GTJle4IMACgjKBMLgRs9p"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603166879458_1603166892840_0.17094500246728228"},"_hasShrinkwrap":false},"1.5.0-next.1603208947551":{"name":"playwright","version":"1.5.0-next.1603208947551","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603208947551","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-F3f6Nrcl9O5vQ1XOaRYb4X0z7q5HeVOczsO2lPq+Xc8xiaHiS6cuLPe8hJeK4X/k5qVjZ1EIXD+hh+fuCkrx6g==","shasum":"83d35ed153dd4d7a241841fb4dc4d8a38eef3ea2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603208947551.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjwcCCRA9TVsSAnZWagAAsg8P/ig/ng5YIcqteZ7li21h\nlUlpr7zoysWPbKbig8HDF5MTKktd+6HMc3gzwWL4jyKg7lBQh9MH6Vy2ogL+\nhTdL3pBSlxHlDzoAfyerBODEUPACcprp6osBKG49msMjhHFlJPl+WRfr70Pv\ne1GH9dSAX2apsATww61ls1Zz+nO7eTfYQb2Prx9NAxfp3UQFErh89N9b2gXa\nvTfpfSJQ4IU4kHYUQd/lRTYzlBC9RFRrHlowdUFuVoNkzeSOt5vMgpJB3gGS\nw+vvL/OZL7DERimzsIn8ewDsZpHCQ6UR2qln9s7d5vECjKrGD3675QgGAues\nns7h9kImfg9wHvQQSC5sXFHY7UhEg8hH4IfWFAPO/N+e7SDK/6rnSczcS5SU\nS34fuPh2ZfhZnbq1UNf6634tXJAnnPaF2/8hfXQnrfOeM3MVnTtpY80Q8Kjw\nFcF8+Y/sNsaqhlVK1LhYBZJFHbbsAeVMnLccltxEiZV2qE7LIVThXVeEZ78p\nkTQT8qbERorv3G04oyV+ARCAV85M2PwXJJc1lO+3+2mGaQtRiXzsUD94NH0N\nBZECxl6sBx8B1gKYpGlK/MQo6iIwnxyV1AStygwg5hB42uktf1jqqTh+A9bI\nom0NBbqXX+B20021E0cr8nVduUAA0FFJWdVPwyzeoAD8c1delr38HbvX0x7h\nylQ8\r\n=TEv8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+6KxFD1t5kjH6PlzqwgHVp0ypHPGa2R1waELTwHZf7AIgAfL4SqEj+rnUseQHlIYyesrpmwwILaPQ5xSHpoq1QwA="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603208947551_1603208961999_0.1906979463007985"},"_hasShrinkwrap":false},"1.5.0-next.1603209439598":{"name":"playwright","version":"1.5.0-next.1603209439598","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603209439598","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Jtv4TaPyLkaV9Ud3RyZEYnK+vZbxQUr2JbW0d+svbMZ+jKp6qf0gBVnGsD6TAsuxxI+2GWKLxQVdHbhvqJJ0bw==","shasum":"bce0c19c3da0b0991005101caeab51986e4253a1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603209439598.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjwjxCRA9TVsSAnZWagAAR50P/jO2psrzr5dcIYmNnfvu\nAe+AMe41n3PO80c1tBRvnihPmim23y8Hna2Pxa9zTXsHJqk5dhmm+AQCR7Ke\nddnrNnEpqMtbVlgK89j/v6RxpbhQ+COqbQvbH1pZdnOtQIdN7t6l3qZ5RqFQ\nVoEvWrJly5rN9TGtDjOebHWh9qVOnrwjHvVGMP125FB3bewPrwiLLxnIJv2V\nzpuaxjVoEttjqOCuYkoPNivd9TSYX3lOEfuB1qw9wvKZHsMqGjI0lKHGv+gz\nJzaCf9mg7TvcitgG0QrUu8hRJnJ70oNdy02o8dCL4wr+Df2rPo8KCuM6QhCm\n/nubPHCPA31ERx22P/AKlQUMHp0QT0C0rwMKM7DOzM7Bfw7pe00uqACS3HLv\nyzHBI395WrHsyLQFxco74Rmx6jaowsurL+PwIU2E+XV3HS+sWsKy8crAwG6M\n/cCUxfR5JBE0EanlfBPfFZcU40hsZoNSKyGsM7toMyFmYUz7W0cXIxGLTUSl\n76PZjWZo40SqmWFiOzn+R+aaZ3s8Ry2Te/ZcRZ7zLN3NvLwAppnSOjGc0ovy\nnMBu9g++KIvT3CAb9FwTYt/yeVHHhd0P5BVF2Q2YWDghWoA91oaygduY2Mxv\nHaU+3wYejqohan8reC4GMiyJ1ycNbIBZW66R4+OAdWX62ZowGEpZgfqqYNGO\n6FM8\r\n=IkNc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+CEVbZlcbr4Yj73zCZXZbL982CHwXXrl7gSz0dVKTMgIhAOBRYeANRS2ZDSz57QDs5758ev1ewxk5yDlrdzVNogK4"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603209439598_1603209457049_0.762629247795148"},"_hasShrinkwrap":false},"1.5.0-next.1603224760452":{"name":"playwright","version":"1.5.0-next.1603224760452","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603224760452","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-+gSFZA4xLlQLddsARmbtAFSVZD/hernzqOfNb/8Np2G5eUe3BbXe9Pajm81dvUkIHMM0efAdhUg/VW04KJf+9w==","shasum":"afb3fdc80acf95e78128367f79c684eb1b7a4ad2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603224760452.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfj0THCRA9TVsSAnZWagAAH8oP/i6NwYRHztrW+OM85atj\n9XURk6XL7wT52d2IM8zcWMcOTcVxcTz0hzWAIEdydpgTqNPovl3Q5BffSRhy\nYvY75BSoG1ed4S+UIESQnO4pWDwfquX90jj3ZR+0BJ6N1//XrkTPkfVYCjmj\nllO05oMg5y30bWLIrjX5DGB3q9EVhdSFBQ6FLqyfwDvy32WmQrTB73QTgLbK\n/QMBVK37SG/jYvBUf+HmudfDXKgGIWECrH3NV/ZO818xDIXWkS+YDg6q5Kp3\nHg6NZGvryHBmR44P3GCW29SHAiB5SfO5i53TaHVETTOdb60G7yhz7aj1swje\nBtGksjrHu7L0pGaWvFaNTPLlZO950yIxv2lH9OR5UIhAWf+14Uhvi3asKRpG\nQ5vEiEXyoUBnq3CnPsutZSKDWhMPQWOvnic8iIT0AW5Mg0ekkDT594J/VPRO\nRBFSprtfeW1Wfwf4MNQhBClTyAaZ9RwUeMNIQkqINSQlvriRu1xkP2UMs5OT\nBnfwEk7orz/9X037kBGlc/evc410pM3ts3GR0SqF9KS+ONLIduA4iFIGUjp/\niIE6WGlA8hzqxfBt6y/0FXAtIb9tuOO6ca3/lGlg037UWeYZ5TJCkn3d/0s2\nKue7XG+Zc16+xpeFe018kSVU3it6bXtFYU7z6w54RH+Wb0PDb/UTAVIB9Fiq\n8ecF\r\n=U2m4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6GEOF0vO+6T6iwBIpgLdjetNoB+q137ZuVypOkIN9iQIgRIiMBoZpojX1xl0uqgZWLKBEGZTS2I4gsS0kHnOMWeo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603224760452_1603224774231_0.6131237163229328"},"_hasShrinkwrap":false},"1.5.0-next.1603226545717":{"name":"playwright","version":"1.5.0-next.1603226545717","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603226545717","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rFpCufEPYWn9NN5sRKkDmxrMIOnH09jiU2iyb4RnBc84HByyHGvWtkZkaF2SnsUZ2gcxr/AVHr9gpZfimGyC0Q==","shasum":"877078c7ba5efe5e4668d10d580e0747175b6a6e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603226545717.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfj0u/CRA9TVsSAnZWagAAUtkP+wVq9qo0w4jIlDHaXVkH\nm56jvuq/EtF6/z6V3b/HL3Q1nnYcMWpdaAunCDKbTbgn1H4ykI/rHMqg8ai1\n5PwUi0L0V93CKLBEIWX2EZ0exdM5YSHWyS1MpubyCB6YXxvX3QG5cbj4VCvc\n1qAE8aB+WkLEnUFZqXo3DbfIemH/s055aquc3wmYMjPivYz/ToP/dSmce0gk\npMe4fG0TrUox7Gtj1ZixiuWbW5MEQD0m6+FB5Km6x+oB6ifLwK6LQlX/04Pi\ntSUgVAnw7s3zkVffGV7VqgFThRDEID/r713sgRuTUhf1FtpRwLr4RZKHjCi1\n6Sp7ULwdn0xtoQRO35B6gL6DpYvKBVv3c07oVSWnYOsOP8AjSvuX4XHK4QA6\nkmL/+rfJUgpmnzigMf1q0IhqjMD8hMjMerGJht3bR/VHdKBjY6hmU0PNmHUr\ntuk81E0OQyiHOyvR38Catk58rhVj09Pd1T1yR2HGDGb/zmXlR2g847EABDiZ\nZBBtOw11vhBWnTC3qJ3+yodDDndUHCJeuI3KzjzZwOPBIPjAaWZICpCUhhAb\npw0UqrDrdKdATNVHFFln6+dtp2svWFd1A4qFFknFVjqWOMycwQTWR435R8ba\n6tCAj5Fkzyd5OS4Uz2Nbkbyje8p/2qXlhWeyt9VOVf/53+OITsygMn7jx+Ns\nVYmo\r\n=8TO/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7cmlBUqtjwL3MNNBvxiSD9cU6KsG/JWFKDuCv8tjYCQIgKimkJyB4ofLCgtpmTYWfYD6fMhHDdCCwytKCYeIx49s="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603226545717_1603226558674_0.30145948387165733"},"_hasShrinkwrap":false},"1.5.0-next.1603227740465":{"name":"playwright","version":"1.5.0-next.1603227740465","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603227740465","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-+d7jz0vH6iq44ieETvDpsr0XZHq6mhufVC637KXK7FMH72v0gOHA1vm/RyNhJ/qk5vQKFxtW1ErjkxeAORtMIw==","shasum":"7c054ef86b6da5e5d45f511d5a1d52d5ef49ffd6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603227740465.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfj1BqCRA9TVsSAnZWagAAy4gP/2WK3QwOLVFwaPNk31ze\nKOfCYevZLtYDBSjudjOrfvyWkdentNS/sRKkULjHC+Z+4t9AaYSA6P535FBv\n46NXsR0MuVz1tYys15aOGe5RidQB10kOY9BmdC5AWVDYgTNICXMxZeQoIN2/\n0zvc4FWTnW3cyufgnw6oMv88WVC818N0p0nJgbAS2HtjreS4ceUwNcA68GRS\nuf6GwWJhtMTxDbIUg6sSsWOYh/GUqmIilNQTR0Pulelkm3KhjZeOk280mGKR\nrN+bvktdrpWY2i+8qj9OrSmGY9f6gYJBk2xU3xnGa3XaVeASQcu87v0YE0Ur\nGzgT9oDqJ5wygYVJwrPdLCTvu7hSYvda3KmmZpr7mXGQX6G+N7VOEoMng78Y\nSwi7XeMdiW5WLCpV12djtGg4l8FYr2axLOk+PMO/8PUxzdLaU2TLwtfTSXlk\nzazBzHaHSgSukYgxudUMBqr5G5uNQvp0sizNwt9CULv2tg6IWep/Ts2YvFHh\nypcVmcLecxVjAkC0lKs4c3yRiFySlgIV5V6aFoOZ9MvYnY28YhjOQFaWiSv/\nX2kHBTbHmoFYLjdxkZrDTbNirdTY3eKX5JKxRY6KyrFFT1GKo+YF7FoFRonL\nTwtMMt6stwgsJyrLZTamFPXkXuc4uHD3fzMxdlt/ObcJdiknbxmqN9fZ5By1\nXUFn\r\n=uvOu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrwo6ifbgWz0pBborf8PShRqQ5LsSPAbvzORmJtlpSFAIhAIPl+Q/njwXOawU3VWkD63kVHcYX6OMUxST15fpJr9EH"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603227740465_1603227753911_0.23150187686407508"},"_hasShrinkwrap":false},"1.5.0-next.1603237857495":{"name":"playwright","version":"1.5.0-next.1603237857495","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603237857495","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-o8nzvrYpB578O6eXlZRaictSyvqQ3tJJQyi7MXzM8i17qb5XKK55E/qmArVQqOFLGS5LrXDMlRaZK8DY3XiTGw==","shasum":"cd391d54dd6dd5366e017f8b11a861fdf0117cc2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603237857495.tgz","fileCount":168,"unpackedSize":18926026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfj3fvCRA9TVsSAnZWagAAfHEP/R47TOIgdeLIsaYnLjZe\n5ueum7Kmi2GaYrtvLMFLs+DWeaCECRELybJqWLrdvKuFbkte10IyGtNEntxZ\n2Sfh3NfmSFO6vzUDmU92BngUFOOA5ahPs0WauENO2KLQYah441x74KUb+HU/\nkRwg9V7RAPBvvq+6BlAXPMMlyDDr8crhbiXIgzMkC8Of3I6mUcaea7Puu0Zn\nlS6PdNePvMpXNMSzm1xXap8NEj3Sp8J/ph9gOmoxIKcM5NZ3GmZRF0YLyipE\nwJNFtaeJLYS/ZLAarEEpqbx7/emqF89NJyCQ0IYNAV98EZb0yWN9YIR9Hvg7\ntfByZLJ7wx+M+BwPitX20DD9k9gj365kzhD1ECOvph/5asWjAjJXVTOuhhFt\nvJqWGND5ti2lGf3W8Rk2cBs2S2ftVBgPQk6aoqz9EVpY2ixgMO9EDxdW556v\nz7C1eub4UrxhgETcoygLt2DIvw3uIA3zE96iF4XuDcprdbzWjgxYW0rDNPXU\nq2MEr7nDDQtVXVlFjVf9Ezlth5BCHGuIPO9wDDxJNQr5uu9GBNMzcGigj9O/\nI1hibRAIC7U/ecQ8ZPJwvXaGjQkzNOCiFW7mzhpEQUnMhB0iggRyYWjPAr7R\n9C/eG7PLBaWvc3DdRNIwuzj+1ImrxvbA4IzXtP7QCxUhdqc7fb3XTXg7TTql\n8//P\r\n=5PyV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSMv+v2lBeJKcbnajo73Ah9w2xXxARuVB6l1xRMMc3JAIgD6B9FXi8H5FbuX0UZO+Ooh58TRgvKk6MHZ+0aMylai4="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603237857495_1603237870689_0.647777424634238"},"_hasShrinkwrap":false},"1.5.0-next.1603237992817":{"name":"playwright","version":"1.5.0-next.1603237992817","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603237992817","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-h2HpawCYRDmmrmMDIU/IXECIzFQt3sY1gefXXEvPJga763ApBFOUc4VCEWArgqNSdPpWTLifncv1xcDps9jjug==","shasum":"7ad0863291c1df49efbd114f02be19cf99cead0f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603237992817.tgz","fileCount":168,"unpackedSize":18926028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfj3h3CRA9TVsSAnZWagAApXAP+gPL1L0KcUH1JdTh+Z+i\n8GKGXhmGzPdl5kRqzlKo1CkGkRRHdLmqEn00cP2J+gfMz9LOekE9k4LN4mWw\nZn/JU64i8jZzAJhoO2jw1NikOCtNircyes/SJQ3R3gwPfzs8pM7gB7L/up1Y\nA1YGfL5RkXW1LqDYnjk0M4tfkqxYsvtRlQNcEvexojQgUe/jXgtfPsBe2kXR\nW5yHlq+JJm2ALQkAS+jGmYO3URQsnGVB3bZ0MEpP74jLsCwUIVq6GeXFXfep\nxkw9yxm4E+KTn5+sOwsnLVnMc0xoCH6BzbbMjVbf6MPkWzfb3O6xIeZB1l42\nm0EWd3O1DfsfHWo5YcHpi6QQjszxQ7SuIKaoUE7JeaSmRne9xxXY+3uXUW30\n6UHaDtS0nEvQps0b4Qro++Nr5C/lMu+BZXQK6HrpZytTnlxmx9yQ54eWGAFe\nCPO8r2cSd/DiIH96GvLYvsy+suuFF5bXPMlLxTGqZWhHLB9XFRV5b+eBJw6P\nDDwPZ5ktgncijVR1ok5NlfpSPd04nrQ3flMXCTT/q4PY9DiR4wBGBT9HadTD\nAo1ShESFzwIZyGJFLT8y976SYuXrQldqgdz5lhcfVxNgLLBx1EZU8PgJSv9M\nemn4JNCZqhSagfa118sBXOtJmV22h6Nc3ygXeYG3OtiScNfvTYHaplbXOBiF\nllF6\r\n=AZt+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoDB6Lxw3lc16kS4PBthVXe3Z6FWqNOFsmB1wUGV5VTwIgMFwz6HU0zi+inUsFPXWloISBFeJKs2I9tSaffAtSBHI="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603237992817_1603238006702_0.9673152579209721"},"_hasShrinkwrap":false},"1.5.0-next.1603313846795":{"name":"playwright","version":"1.5.0-next.1603313846795","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603313846795","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/LtRkqlgtwddmqPXmj4dl2iCsuQZuTWbz8nXeRPosXIqHPqewJoko1QPztmZazEmirlCJC+BMP2ivCik4pE/7A==","shasum":"62aab9b98f8c47227fab35fd72ce75bbd604243c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603313846795.tgz","fileCount":168,"unpackedSize":18926028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkKDFCRA9TVsSAnZWagAAgwYQAJsC7w9Z8zgZo9X6LP4p\nhcGrLmMGoNfbUMo2G1/u/jzWdwsnGKxdqHW5eb+Q3UEj6YVhMp9jSUMxUtiC\n6u0MeHL0hKIZrjCocRvhclg+R3l29+cxp/+7kGJ9wwAbjIAEThHL4JuYb08t\nzXG2Tj1t3HBh6G+CPKOSPQjJS98nRFbLbsZxH3+ad5eP4vp7R5xRyp3uLOfe\nFxHku4uEist08kCf/n6blbcVEK/0KXbvP5RwYt87hQlXPc1lyudabT2+OY2q\nEYxoCmVe7a2rnfkXxDv87M3CRmi8TYroAS8WQY477JXehQvNZALZVdlFzsR8\ngwauYUg+Ru2znvKT8kK6gWiXyBazigADcvJYbmc1b08kp5n3AYRBmbz3/Obe\n279atw/jFG/CuSa4z4+xclyHxak48xgLai38Grw+vOyWwja33q1yYgi+Lxry\nnblli0jxc2knzlV7/heU8ch8G+ZOv4nbKD5Sx8TEX8+anOpxRVt7uAAKiDo7\nruscqj7jWQnemYbtj0SIKeznie6NC5dfbdjgjT+EXcOCFzw2Yux5JD9TpWx6\ncutH4d6SLIhIbVtoueBuM8gSMASmUuK67IjVuiyDYC05O+10VTEeV8IA9xx4\nKVFyoJ2mzclapknmUiGphU7vTy+keM0jc5CHSFoLx81dt/2B3g6mDp4QMakv\nDsv6\r\n=kbMj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGor0j7JUxDvBeuTseacl9NBTifpq1k66/rAb9IJ+lzuAiEAn7JMO64BgzSq6Zou/uooQ3kdcZj4i2wII0X8dYp7ygE="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603313846795_1603313860570_0.39320785308806694"},"_hasShrinkwrap":false},"1.5.0-next.1603325657660":{"name":"playwright","version":"1.5.0-next.1603325657660","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603325657660","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-7LlQt/ph10Vy4tyuABW90t9W1jGTrW7l2Tl/oeqMOoGxnzB5Uo0Xv0vVGgr0d1sfLELCrO+28YQUgJt3qCmZcw==","shasum":"012c3e2023259f1dde8da55f80b47512873bdf8c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603325657660.tgz","fileCount":168,"unpackedSize":18926028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkM7oCRA9TVsSAnZWagAAPHEP/Rnevyzf0K99vHM2HU7I\nVXYBIKWLWw3pkiSoFjE503mDL0NQ/BjkOhXY0GocJUW8xlAR9C3hvy2NBBUQ\nG1dylwy+VCqZj8TiQ5xV7kN8RtJ7Amv6HWD8QcKITjC4BHEyY9aVnLAH5Zsx\nqaelNnJLBgf3w1EfX7StucVKjJ7QZwiefXeoyIVgBrj9xYOXHdBgrSm1Dt4X\nJeWsuEX41eBEMJkn7jpDRRscu8Wo5Ki0dMMWFkG9KySZXNYN3zc4sPOwoU5l\n4MVVwPdDXT/F4V+S9OC/Pg0T75tGmO5a77NONJw0qJ20V7wF26tZRzQRxYxR\n3dmuD3QgAxJgFWw567sgoe0625ScSGB9DUmz7xlqLRtiWkM4ZkimhZ7REtHI\n3EiVrwaaiQzK8ZYOCW4MwWIL+MsN94fZRKeeh5q6fA/SnA9FzsLpdXMac5Lh\nY8ei7nuDUC+drHCCfpOp1WFDAl1fYgXzBzzKp7OllAOS/8B6IXOooqgKrYzw\nX6t0hfEL1Rqcx60EIn8Ie2Uf6cd2CfF377usC4Od0KYm+nYfLE0NzGhxL0kj\nKldCcXILXuKT4c/OF6x4YLlvngo0qA9zlTp4Xieb23wI6+IHDkAj0X4MsllU\nRzlcq1NoC1/pUmgltIKVTnvKZBxIhhgSTm73ZVWFoIZwy42aIoBalGwVfi/c\nSviM\r\n=4WoF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBO2pTN+p8158f9+BP15/5ddXq+DiZrkDMkP2i9urAmgIhANgTDN/uMVj1PjJbYMqlHOCNLGxJjT7p44O6xjEPxw51"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603325657660_1603325672070_0.8865048719541742"},"_hasShrinkwrap":false},"1.5.0-next.1603348082627":{"name":"playwright","version":"1.5.0-next.1603348082627","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603348082627","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-D+dTn/jTIIsV9bw3sPdI8fZGxu276xmpk6Oha0We5vywNb64AqxsTvfb9rNaUguITpGkGwP3UirjiwSSNViXcA==","shasum":"daa0d2b62611ca23f513034ff76485ca1698d64f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603348082627.tgz","fileCount":168,"unpackedSize":18938075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkSaACRA9TVsSAnZWagAAtocQAIY9F44V88uPLw5r90jE\nb/omUrmjgqYYlkXYY2lTSLrfTyhCw+l5P4CHNoCMvijFRmyKwwzuNyF1B5av\n/Zr7v0g1qhweLcMFbjVBbf3L5knmGwhY29fh8+KCUHwTGBEsK+cFrNNAR74L\nLDS1yYDcyfOlyzmUjk5HQBwc3Jj0XB/5uYzX41ymNTGi9NnZQEDXEqVb6MkG\nByc/F9pnYepxW3+/9EeH7+43ThRT4E5quzWYIkB7WSdPQnlpG1JgXbfed0Jc\nMocR50dgQS4QJYXNqJkEf+DU+E6Bkk4cHgyNjlvjnh5BRr5gKPPbTSMJYVCA\ni9okfI4GEA25juSnmeb8nvFouxWo+zA/57u9M71J6UMumiXb2/M48f7UZ7CL\n/+VGYzhCI1QMeGt3dWAEcksF31SaYqVMqJ4kIZA/YgbCK0EpHWsy4DCBmswS\ng++3cXTtYRlvclDFlIk77lNXKlEqrvQJfpcrnXOKIoE2H8DsNvKBI+Q9d/zz\nbmsGHTH/qQ6r9JALZuexzK0ex4ZPo86pKXzrJWlZfgM055+yXd/WPoqTrfEa\nYaJbCs0F5nEkn4TOZjU1usRqyz7nlCh0UCdF0vf2hecVVc9w1RgS2mrA6fEt\nn5yFs16UWyK78Z1koqqrpLi8ImzN4lrl/ZG69P3iJf38IRRuh++9X5BST9BS\nCQX2\r\n=uWuX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRnB1798h8sWBf4EAhq3mqFwCRAWafrhzJpllptfi++QIhAJnMc5UwTE335F1VZAliokjjJDdVq2PHs+E161f3P48t"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603348082627_1603348095965_0.2693437034026671"},"_hasShrinkwrap":false},"1.5.0-next.1603381870345":{"name":"playwright","version":"1.5.0-next.1603381870345","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603381870345","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-SISvlu1hzJ3L52xS3OiYSXaSdziwaBcVZaXVQQR4ZVs7XpWznREr+3i2ZG49zTpaJjE/shV2+oyo5f4jiwxILw==","shasum":"37d0445b5b9ae9bf8a79bbb0a5c2105f9a5a2614","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603381870345.tgz","fileCount":168,"unpackedSize":18939480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkap9CRA9TVsSAnZWagAARBwP/0N7kCwiZnkEbikjpauD\nCy19eohFLDdJK3iLAMfXbeO4+3njDggW7EmF0UZnbjtGYpSyIWTp59Iox7K9\n/OX0sI32gWCPge8AFxCiABerR4krWK5o0hyqhOkfnal8J795yC6Y+cdo9CC8\nkiRUvWDrFnqLSCuTrEmzCNSTeBYKJcBnZB0g9saY2wNdgnv3+WddgesuOoPU\n7Erygw/YafpQPVZjlEV5DwZELXppXQTGdpI9PbaFi4HAYoHYLcvyO/HV7x6+\ngAMCdsUH+ZqTsTVQ857/pLP086yRMO2l4vG833sRI1n9v+iw36T1gIrqqwtq\ncRdkNoWgKId97dnri/n1eclhr8GIjRgelGFV6zHMU5B2pdpO95uVZ0AOhr1q\ndRXXoe+Ht33a9tQnARablwfly3SzBfscAfpa3Ww+PWrbUNl3C4a0qi7q/yjK\n7xtp2nnR54Ae/3sC2gBU8rIx8On343TJ09WehpVWt7l6bkp/Nn7p3lTLh6hw\nFgJolFOKPZfRNig/7CVy0yGxn0LUh1Y0cw6rKmaAgP+5AQFua6rNGzZLyTgm\nnKxMdBbiN3XUr6S9b4DI6LJuHs5cx3Rm/CktW7NFohlqUF85cF5xaLfvpKjk\nW4YJzvHAsuQXP+enYWXOYq/joZ1+7lmifks9Vf6V9u3N8L/mNaaH9diNzVHy\n4szE\r\n=3AWK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBC3QHmThwas9gKm97eXfffRFCdBaWRx1JpOQG51DV2RAiEA4TXmPQ+3GVZmTIBh7VEZtN2Y87yIcxkidEokj0zyi/Q="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603381870345_1603381884384_0.9155072797118664"},"_hasShrinkwrap":false},"1.5.0-next.1603466248928":{"name":"playwright","version":"1.5.0-next.1603466248928","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603466248928","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KW19J1Uzrdg3aYRIhjUEPFE8f/daBPFZz6a9UXMgRrgvuYKx+EW4mq6YfrApOW9M7lhK7XTMcynOhZklFT7A6w==","shasum":"a5359562636b6dedef9170529959ca30b5e70107","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603466248928.tgz","fileCount":168,"unpackedSize":18939480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkvQaCRA9TVsSAnZWagAAXBUP/R2swWobP7gTUihnAMMp\nqjvSBH3DERg2r7VY7J9UrA1dpGUPjdFc29KEfh+xP2mT2bhHSeBmWy72Niim\nq1fM+HCKa3c/JtPKlUoonLfi53wjsoUo+H/tDdLfHxX5qqzXeD4vd7F8IFA0\nUAG2KdkvgeARdewhBa3Cl//vt93HKJWcQg+Jcqdt1YJudYIaFCe02yp9HnlH\nDEdZnwyPxWYcQLz+fU4Mcn13R6Q/ODGn7MELkkj4h7f00p4Q7N9LuBL1H48n\nv6orF8nK9iVC0tCjCtKZL4bm4tfOBEQRG6c2NJ4q7FRON5QpISXrgv1i+O9Z\nmDGnnF1N160+AwIf0D8eF3ivrGwrrK65NvVAVa7VFjkwdiXF4RB22ABXTQ1+\nbb8mpULJhX7d8jXvkwqo2IKssIieZ0LAkKYPWQn5CdN3nRq3OOyVPI70TBQ1\nWpmc+190jCjznuq8kYydEC68ijs7VpesWx+bwToLMF7HPNvmGSbypQs2Mmpi\nEdC58jDusP4AXVcbQqQ5PUG7CzpwcnlKHGu2dYfuTjUHPzGv5bhFpdi/isCn\nNIkXnQNrpKJIU1NgoaRO/1QAc/8cIKbVvhgGV/2K4IsvZpaCuijmOz3N/PR8\nvwoD3G9dRZ7CGykMxeuVg+2ogT9welOVHoJQThCwv+WxBxsAy3veWjb9vHqm\nGcxz\r\n=Ql9y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUOSSed0lZ84PJ6pKgGUfxuiJGZC31pyAmgFCTqkMheAiAcat8qOQwZpYEeoeWFNDPpUG2IaziU6hBFADKaMz6nvw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603466248928_1603466265562_0.6992483890620125"},"_hasShrinkwrap":false},"1.5.0-next.1603472813146":{"name":"playwright","version":"1.5.0-next.1603472813146","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603472813146","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-MnGUR+HShlRLCW2UDFZearsvzFsijmJQrxzGHlNQ+THls9q9hEyrFStq1wTk+5209C+XZ6CJl4i2tP3wF2LIKw==","shasum":"b82968a74cae594b7ffa18451ebe98ab003130a6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603472813146.tgz","fileCount":168,"unpackedSize":18938718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkw28CRA9TVsSAnZWagAALQgQAIfgO4gjjp37N23W9lZQ\nctceHFcBPNGfrCVH/HOkfTivtIy+V22tLVFoTmciBT45aMlowKF3RC11XRPS\neidTNbICCRGsInZntOFjTpBJF6S/HSapbu+a/oabBeYelX3Onk+T+07tXseJ\nNQHtcX49n8wD+2tPe252f2yB8ghUlLqKyJ7w5kuu08sgZ5Y4iTIdTIn4j6yt\nCT2gZ9JqghaCRUUIX/c+uOChBHvR+UMrMSu+UK2GvJG6ZbqtKIgOop/YTvv5\nFCv+N+gL9pUlRz/BDjwrr32k91dA6wy/+bV6M9ZmmZOBEfwok3gHxSIWgLSd\nrpjV8FHsiDxIdQZeWtUiaytMaUPj8XVXJ06i+eewd0CN4drnjzglCnaf5LZe\n+2M6aiQrnRjd+XcIkQzZpluMkFbNfVRZXq9daz5KG8FSK1BymE+2bBGd7hwC\nme93l9lMyBvmIsLGdzbgh5sX0U5NZgv81HmTCMheIEN4j6dd8WvJE3YUDjvv\nRe4kPq8BdqAYez2D8b+7Yp39ca69yhhVfqr+s52a7aeIQh10wW/6H2Mao32F\nvTwpZf8O73Ezx/JRAxO6cVzthtf6vW/l6HiekW5DTiXSH8xiXPVmbNLBgVgq\nQAyWWRxHyF6xBe7aZC8AouDko+Ph/2ivtGHn3wGkQILWa3f0olHoVNAKb5wf\n9l5z\r\n=SVTZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpM+sUQq3Ov8eOAwU1aAOmcDTFgbaR4CoeC2T8zCIchwIhALHI966hyt2kQMZr9QZj8khBwsZ2aC35nDCJSCJYS3g6"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603472813146_1603472827367_0.43939001039880954"},"_hasShrinkwrap":false},"1.5.0-next.1603474558538":{"name":"playwright","version":"1.5.0-next.1603474558538","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603474558538","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-J/7L+YKaqi6MY08xBR6m84oQGP+ZzQZ3BgFtTlQKPwqszKDfmfvP03fpivJ/VLsZ8bGmaQ1myY8k54q+7LvDRw==","shasum":"a65394f3ff9723688376562458ec51ac5bc81e07","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603474558538.tgz","fileCount":168,"unpackedSize":18938718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkxSMCRA9TVsSAnZWagAAvA4P/2tPvy3MEggp6OOenhA7\nddzVPL429pXuy622A2iSVqNSs8M+mm4x5JxtzNYrmO9nIBIpZBpsZHz0LjGT\nhFRZv2ae4dO5MfVj+xwIyZeVWp+nkQQfVtDYSkE2kx5c981KehOUhfefUePm\nL74lAB81xaFuG90bZoqK8APCEseUi+/ouVetjWuVBpYob3Ofy8kvbPSVdllL\nUjm4Y+gBYfl6O50X1M3X1EOFE2hwSYmYTK+VG4uwxLAaKQDLNzoXHzOXxhEM\nbWsKwh1D2oD2niy2RLVrfO7kay3VW20TsZ1fEvg26iYsZFJPcILoCLVzYN9j\nxulli10yEgUYLZ7+bhyPOyZLWapsRw+qBR6faEXGcoHzq/ZfmOzVNtmPK5Un\nn4XLFouS/qWds38wLmeTB4YkzEE1n435xPOhngwcmcneQTaYZjpWuESytyFY\nEMeyMxtw9xLgdV3VaT6AguMkY8QBgY2WBnWUzJNLn+r3tQ47iHQjyIPAy/PL\nKWhHGi5iJsfHGHda1IfQpVxj1NjBSAPLUH72DCQvgWoclZC4djdArbH8na/T\nAUOkwqeSJU3GYn3Ubq8OCxFxSwTDyKK0T+quMSd7eIL9tkXE2mYwgUbNeKkl\nON8etXMFImTiO4m2mZGcxaJfl4lP1mbkDfpRe3Q8WVrquxxV+wVjo7/Vn3kW\n2lLz\r\n=Kro0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnDysdztUiPB6ZdyvL2/CZ51UaW82XuuP9tuQlyATphAiEAwpEWiNicCQj5LjFmFZCUjZGoSgmJZfw7QPXiyVJvm+c="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603474558538_1603474572149_0.6815295881297574"},"_hasShrinkwrap":false},"1.5.0-next.1603474851053":{"name":"playwright","version":"1.5.0-next.1603474851053","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603474851053","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-4YwccsSYBG6McmZJeqsEwMvX/WrE6D2Luc2l/HaGq9jFIBpkC9vXXRmB18NpkH7vMAr0R4cjdH5XIOPlf5gPhg==","shasum":"8046637b128eb68838ca49dca162724eab7010b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603474851053.tgz","fileCount":168,"unpackedSize":18939028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkxWyCRA9TVsSAnZWagAAdyMQAJoTIXJBjcAsWnQ9hMXg\nyKpRnZSDav6jlAKdpoJZOBH8g0OlL8Gxt2rGzV+cjTBww5yRyyFnm0+u6lDt\nxtK36X0Amsmr76HVEQVIlQybHkk66ULyJdfF3WOoq9U+O+vFTD/MxQuGgwY1\n145MI1QiIlss4mcEBeNtcr9mOO+vLqvushYUCKwKQyyeVQXMGD3hV2gG0QAa\nBY42aSkGX/KkH1m+hseglsC+++6XOdzyG0IK+JNMm31/c9eZCOjXDfAl6mE5\neCa8VBSI2FT0yItGKDuQ2Hvs9gkWQWfd83QPDDyvuJj5vbU8LhidED72ngpL\nzruf2S4w6VRp4fKWrLCSTvx/d8mHmRkL2Kjk5TbfMWBGeuYNb3zsTHpPqjic\nVAGG08WnrHaOsHmF3E0D348rDnw6yJOc4FMapgErYyByHpneITnoDSn9R7nI\nIWg1uJpyf0x6gEDtss4aZ5OQUizsUPTk11q/QltqmjufYt3wtDsTDiBxu7fw\nblXM6Z6fpFuEctUTH/jiwcm8UZKPGBZuqbcsu0mFQ+OmoMhyC6+6gqIUKziJ\n4g4Iwi3XpeTHiXxofrEzcq2367uacltt71EdVKV3Z2qlepSKfXEpemirLZdy\nJ/ne9vGNhdoaHcC7/380YorwdqjY5avDefpf4rRsQ2je0G0Bje5dran+kFYb\nWrZ/\r\n=gOlO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUUOqH6u8YXQwvQ9IDXnrZS/wRjkrWGAs4sfezR62u3AiEAxPFY269QinOHmYpqcUWtQbnHC0QzAk74hmXVBqUPEu4="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603474851053_1603474865577_0.5305334875719834"},"_hasShrinkwrap":false},"1.5.1-next.1603475519841":{"name":"playwright","version":"1.5.1-next.1603475519841","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.1-next.1603475519841","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-pMF64+RqMwqX0w3FFaz02mzjUNMaIDZA3yBqxlwkwHUb9KSt7BhpXEw6EXzK/S32xEKWHbkKP2DbpDF6BAP+nA==","shasum":"f2a11501a47cb3b4643ddf67ecc879f557293bc5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.1-next.1603475519841.tgz","fileCount":168,"unpackedSize":18899715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkxhOCRA9TVsSAnZWagAAVTkP/iuNsKQZVVfeI/R6pJzF\nt/FDn6V+kQtn7cxddLYVl9288tYII58VlZunRgb9EJr5Ascv8xcCN1P3LrBf\nt5ue13YyrDxk9RsO1eXugIELdqXxIqwpisq+/d+LP3tS3e+EEMKX9whM3GGV\nRms7rlarjHa91oEMHczIMYSOZDIuY52PgTfoq1Qxc410nacxHwhiRCSJfcQ8\nePpiuthtIssujBSZn+fK38wYWncH41T//3iEJ37T1NXhoii8/G2tD/sknJvd\nIfBb7mxTUY7lH9hO+WmM/uCHIqJAOQ2IiIHLRt0ooCwoMmnqNpZYVptO6ZCE\nnP1zCoBMlQ0PXR6sRv96m65Kl3eyOXNggx62eC/y4wg9MzfsQefzSteA9M8j\nYlb13P7f5XkXrXqEk5lAXiDfttLkBEBNyAqUeZu5cKzfUYTggqCI0/xLrsKT\nl64E8jM6yI2y57DZE5LRqpvvkeGr2lg3zFcLbJ1Zo5Fpkm2Jo5cLCCghSTQc\nWiWXGNPJbS9J0rOGbiybm37eRpqbotIcpdTchwaM7aXKbX5sPxjEnVVbBIqB\nPY/MOPeP4TxAQbC3/feAxPIA79BUAzFU4AN0Wiz9nprb9I/EZIU1RY0zsv11\nYpaeO8ONNscxfpauqZZ7g/MLhjjAcrDJN1Zfezjd/YAQxmbntYNBzEiimO6V\ngnc6\r\n=Nx00\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGv3tRp1vOyYc5SrCV3En4hYfcPdpklosMsSTZZS/hRQAiB5U1/EN/W3YI4NQ+HftTYXo4uFeT6MRYVnYhuNv3uV9w=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.1-next.1603475519841_1603475533304_0.4109369557470173"},"_hasShrinkwrap":false},"1.5.0-next.1603479265915":{"name":"playwright","version":"1.5.0-next.1603479265915","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603479265915","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-aXvy4OimO2FYt0OQkhY8/r5nPyWffsv/Bj5LqdOn0svEyeOTYk/1GyIemVHSEVkZ26O6NEgbnreFzYDXgV2i2A==","shasum":"6ff3d34f8eb24880ce99c81fed015e36006f31c1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603479265915.tgz","fileCount":168,"unpackedSize":18939168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkybwCRA9TVsSAnZWagAAE7EP/1c/asOU9tCYqM5hB1pN\nV6946dO1sTKH21tpL/QRk8RxW5f87YBQ7s+82qMeMSDjnCIOFY20FnFYe3hc\nLfaCgy7SSkno1LQG1Ng1JfbspswD0N0FIyUCS+hYgiNqrZPiI0gSefBvwYVW\nAfOD6T/zJz6W8L7aQa38W2wLJGV8fCgDYIKiUwIb4MAE+NBGJTlWo9g1zG8Z\nrw5e+rU3GOh3t/hSKt7LCF1EG6uE5xWn2UUFm0zl+chilTNH+NerYRK8NLiG\nxeVr/8H0UZXyumWheKakEEwtLfXpqlygxyeI49eAU7k1EuJbg/Jzg2wmnMFl\nChxiQo1j197O1AD6vpPeEF4fX4Qh8kAABXHiAFB1Q2sLnSiGU2xP90lm7wqR\nG/Q2lnR5sAfjh4+v9uzEm5ogjP7U2k1h5ugQ4ZwSIhZhwGM3nW/owCpddf6f\naTL6ibsrCtnBXmFZDSPF+ay0KgXMzCKut7m89wBNrgnpPvTKLuLtUt7g0wLC\nyCOn4i9DgZLUyFbM0Yl3MILRpl+9eKcNnB+ScN2X9VFEO5q1+splE4Cb7DzE\nY+b7ayRXFz379kBFkuEj8Pq5gGStYCLklWsHtHtY6C26AjFjBVOWTFfFf72r\n+ZYbpl40+Bxp8te2eQ7UDnHn0qZb5T0EtxAltCbTAvT7PfDeqkNUoaiASB1n\nntHP\r\n=Mz96\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+6dMh8BZr+2EB+0ZMgj2D48NcSy6ErUSZeS7uNH1DuQIgR2AfX76uUoKiD/WtI2S/2GD2fWH1VpUr/4srsUfl534="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603479265915_1603479279891_0.25297320044631433"},"_hasShrinkwrap":false},"1.5.0-next.1603482118136":{"name":"playwright","version":"1.5.0-next.1603482118136","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603482118136","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-m/c4RDGyNVjn/M2TINPN+oplxDX5jHHGldSuMV7+S90IQZGwC4C5JiqqLZ7VbhU2EkYltGGBz87HmgQNsMjKaQ==","shasum":"9cfc91ccda3346419797cabab584bab6a34cb06f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603482118136.tgz","fileCount":168,"unpackedSize":18939168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkzIVCRA9TVsSAnZWagAAywwQAKI9jV7yfLnuMuNe5xBz\nRSvqoTlLnDYlLlvJwsLcgr2sExKlKViknHGNHc6ozjd2dKs12bVmKXSfPTxC\nvWIVW7in+pLGo71d07cRYuY15E3I9AEdfrLq7SbYGhL882gJN5O39GA+RNLH\nOrjZMlKPMMu/X2JnlMjWKc1Jc3C5BkE84dZ7Qq+sVgNtpWAkcdnQoPZqv7rm\nQSxmj5P2YlDaPsQRLevr8NGzA0p/CQ3J3PjJTSxFQ5bdapNOYTk4j/CShXOt\nPx1f5a2Y0sK3lhJ5xt3FHztOdTSRpPfEPp50XKlqtN2NFZ5tboxUDqEpyVrE\nIU0Vke++bzTOqzBE1771zwnsvj55q3fcNzYdObQJ24Ylb5giAuSsNxNTDLCs\nbS5hlJYjrZJVcvDBLI+lDqRyzBfhZ0j19M+ZffpMQLfZvw4A+7KzOQALeZZa\n6/6BWihxAvgEhwjey1bHjBNHRZx6SzDxDTAu/fmvk6grC9xpNcxHSV2t1Jby\nOEYDe2RDVEO8fpM3RfP0dbKgpJpdaneBtZS6I2Tdqy5cdyUBo5gA85ZpIk7F\nE+OnH6rGjtLS6WeHfxi5mNY2T/lgFUIegD8FmdLfM5kScHc+RiEzFOw7ArV3\nN9fYNDoGJeYJIgjIhXI+1lc4Wh8lUnPdzT2v2tD02mSWsz0pInCITf5R4sdy\nGZOh\r\n=LHmz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICT75jLCTmmouXZkg8hVx8TFXwPQyRqZcohr/APePtu3AiEAy3zGXfEvPb15muz4MCmNEamH209IymCCq2fapQkycho="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603482118136_1603482132659_0.7439785410483337"},"_hasShrinkwrap":false},"1.5.0-next.1603482373121":{"name":"playwright","version":"1.5.0-next.1603482373121","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603482373121","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-67CL8PJCXjbfdRA9q04Pynts1aMMG+xz1t/QVjfpx9vISha621SRxQh+o6CWCC6OS3jmyR2TjYZJlX7/84sZMA==","shasum":"24784d5d25ad186ba3cbbe7ce2a1cd9cc0133739","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603482373121.tgz","fileCount":168,"unpackedSize":18939363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkzMTCRA9TVsSAnZWagAAoqkP/38fcBW4gHS3eqDaMmG9\nJbQLpykGue7pRpm3bCOiNgvpEJZlENzK4gKrbAVqjqrN7D3ryNtDdhcJC/2F\nm/o3IN/f13IH7Fj1LTw7KcENfbYPFpnk9TaAOAZT0DKHorxskXqDeT/W/J2X\nz2csfqHj55X1teQbVKcMHFUXuRNjDMr5sbI/yIokSTr3A7yaG7ZA9nm4qinN\nfbzPCJuzkFG/U758Os1yJ2gfrHGsbJjp0ZktCm7bm0dqrC0lE/FAceaP0t+z\n5UmgOmK6MObt+NYu9ZbPPRGgRm0hACz7qZ5n0xTLPpKdmHCxZW7nM5lJM7vz\n1ZC8X3OtGyIWbuef/9QMgiGtakRMHlJhu+jG77Jm94dz7/v458lokof0UoMU\npUulV1nZRS5L3FyKQFpXpX15IaMFxyfpVUIb07Q4ei7ESYvPQRhYlGZvmVeV\ndPeh/cAz4JSNFE77hv6LqwPAHx2I1xPyDlv/fEDMzdscpKM9onK67UbM049u\nnliBXXDSxj2RhC0aXPsoUm44lGdG0jTROEZW3QtlTzpzY4cX0P07dKYzQW7J\nwauNBcwC3BYXBur51IZ+2l5BWi/4mdNMtH50Yn0iC1/PjZzqQxX29piQXrwr\nVhKlcKhsJcSQXOcwz3V41jX5lUSDdoYpyZh6fxkBTN+yggR+0utPcWb5zjeN\npoxA\r\n=ruXt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVTVHhjMq6vT6xgto73xVBz1qHH7oMgNoBpVsYJ4JOkAIhAPXBKwkGQ/cXWtHv2DGI+mw7kA4caGLbpRlERW3BJpb1"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603482373121_1603482387068_0.034162007099288294"},"_hasShrinkwrap":false},"1.5.0-next.1603494535996":{"name":"playwright","version":"1.5.0-next.1603494535996","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603494535996","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lhIjKq7QU6LSZE4wIEuXvJeMDd4aXPJNxt4vLQYXmYUnLaNnJa1mx42BAbPPruX4U7M34ZEKDfHhJAVEJL4BWg==","shasum":"e834c7bed6a25f2219d8abb47944c78e90470efd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603494535996.tgz","fileCount":168,"unpackedSize":18939661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfk2KZCRA9TVsSAnZWagAAC3IP/jFl2NJqbcaebeSbXw8J\ndiNooYy1ugJh46oUAA5huLOfKTpQngjKAj3iTMAk1LjBT9ZTn3ONxZJiAZw6\n35waDXhrBy4EaTPTKlxuC4BcTffHwYIdfC+QotIoQRk35yaPOIPsZQHxO+g4\ndVRLzpDmuVaQfRHUgS1s0794M3PBn5ZFrJC4st2YCctEtnfudIm9//zWLtvw\nsAeFZxFsfT1SRrS/kBB3TGwwDm2Y7fRIYk9pjBIIB5exy8ndL4TRbMlhQacQ\naBKq80FDLF3TurllzXZHD4WSnbaogUHkOAjVMXx81tSsWnoz82dQe5ADygog\nLKisw8w0Fciv+4qmSpITZtXR9BszlXgz+2tfpj6ZBlb+W1vj2gCLhW2KKEq+\nyAy+KLRKjQHwgQDWcR9FkeUq5VPzTcMV6EsxbB94DIGvBO0G7+Ttx66oCL+T\nQEgi0UdbpJ+MRl+gXU/mkGruBACs/6y6ugoe2fpmyyrCem88FxkGgDDVtkJ6\nIL1izeu9982/6gKDPDaJgkkI8wXstcHiGzFt8gHF2jtnmolIcxnBKk+VwbJ2\nwgHSulfc8o17rVO1o2I/MEfV5iFLspJWVuGsObpiDuebGWYLuLWAig7/QGRl\nkKx7dIW7sLZF2nsIgRdJjZKib0jFHa983k/M4WjlgP7ByWoR3RjTye311mqr\nAmkn\r\n=FN2Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFeRe1UWliD0aWpnKd7OnISbsH5kPjHzBzKiZHmrjCaQIgRafE/ARxF8+t9xp0C2lIU8R8nWC/ZMOYTQ0TtGwCZuk="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603494535996_1603494552427_0.4388325516166962"},"_hasShrinkwrap":false},"1.5.0-next.1603737616646":{"name":"playwright","version":"1.5.0-next.1603737616646","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603737616646","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/hIgEVu/UEItqi9pIMji622lbz0i0ZtZwtMzH0P21GKw68E/rmu1o2OxvvgHc+PmkQgqG02h88Pz9Mr7ScAUFg==","shasum":"014078f4dc85b7b4eb579d0070b8092eda11be07","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603737616646.tgz","fileCount":168,"unpackedSize":18939661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflxggCRA9TVsSAnZWagAAkewQAIwwCFnaBZZsSKdLMqNx\nufZVPmem3Nu7VE1jwO0UYMUc4krqxqTnsr/RoDIWTSPKzsN+/0m/wPSfOdLf\nUp1wVyBeCoY82PhBFDrSGHNj7CjwjtB6YOyu6UbY0sc+ivUclmpsjdZnAeoC\nQTmTLDfXB4HfhnwtBo6FN1NWcXQSW0YdYdXLIw+uBhXTQ/sVrK42iftmqZfG\n7eb6TOexYBJ1BDEWOGvVM8zDngwm8GhUvHZ8TY/TJxWjnMroRGH330vWz5Tf\nTCGeNl+A7UXyi0IyQIWK7bMeHb7gbWlXtccbdPBYiXzklKR56S+aL6Kl9NNe\noWP2uiBNKBFAe1JmMgBCmMAapSaZNArYc7+Z4heICNSEJMz+mEOHGGe3nM/c\noGp1ht1hwHk+sB6E4hUP9WFS0k/vLW2WAf/KyTfqynh8Se8rbAzir3L6XwlJ\nsZscpmxC/ukacLTPFA732sRbaSW3yv5e1ifHgU/YzKrS2g7Ju36xIMjb6/Tg\nfe1pDyM/doqV8aS99FjlZ5PVaGP/dsXIsS9obuS0ylw3Yow3IFtI/7jrNBA7\njPIW55p2sv2Kg9Cl18SbAxPo2lI1Bdy16fMLJDB67ynQCpALjBWSGHkRyEqL\nU7nji1Qf1muzs5oPTxyHHEgIhuu4qsM2Z4WAOw85kQnMwnkY0X2QH7OM4nZC\nOr+8\r\n=HNfs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMxT0EdVXIvXTNHG/Hgr29HGXIh7NHbrd3uMf74H6P0gIhALPFK/9tpbtOSfw1etDkU3u9mMPLUZoVtVBy+9Rfk7Cn"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603737616646_1603737631625_0.9918986073042491"},"_hasShrinkwrap":false},"1.5.0-next.1603742560901":{"name":"playwright","version":"1.5.0-next.1603742560901","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603742560901","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Gb/qNoZlPzIODvJmuq+qQIBwiDPpF8U206FMGfvfTxAfIdzQmsjNPo3VkIdPRRj//vcl86dK9o0Z1BM7Y5x5aQ==","shasum":"728042b7cd89fdec592d8f03698cea8f626025cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603742560901.tgz","fileCount":168,"unpackedSize":18939661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflytuCRA9TVsSAnZWagAAIHkP/i/EbAUcSVVwn3dYG/YX\nPzSj/C7zP9+cRG0Nwu9pSab/DpxorqJcaaCOVeKAI/H45xKriMLtrjzEIVT8\n11nF/tdzSxyrjRzvUhNEP2Yh+W0xE8dt09TZ+2fO3ggobjE05LRV00nSosVT\nA3UlwoCc3gWY7ulyWFisZmUqN+K2qEr0Z1q3jMl4G9u4WV9kG0HloK9VT9oz\nbPddKm1IifjO6kiRS/lesMsX7E9UHqRTkgg/5/p0gu2JgBgopzAuvcy9JNnQ\nnOhTTOFbVDrO3BPtntQPJVYMcAB1GT0rNrQjY6oS8GrNmB+YXvu3lD6mOc3L\nsJM7TTXi0/Q093eJmDH1APXM3DL0HPWbE6/fqWGTjntgEs3XdQ2hfIfa/QvA\nGmSwp7Kx9okEHi3mc+D6TMcGoUg8CwIMHnvpR6Z2PaSggynfJXBeB3PJ1HoH\ndizsvNN8TxmaexujtLJieJC9VRQvtSYfINCY7m3GN++k4zIiDxZtiHRNw5wP\ntpyEybzaOfbHFtmPeCI2dHDihrNrgnkzkNPVf4ys9z30smaKY3r2NpJkRxus\ntaor63PpiIUGnSr+8mTzudSusIACgn0eXKy1ALEYQPBlSvuNwDzHaJDr1t+f\ndpC3W7HIE9XKIQaO4a+TDjUUCGSxlnrNW5Q2KBnXQRpJMTdZ7kYr7gOmQiWQ\nLlLO\r\n=bI9F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4r5safD0f6WqJBV/boqDB9GfDb+H+eRhBDfA58Id2WAiEAjjChGE1ardKh69hUZRSUQqtrk6wPvVj3sQB86mboorg="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603742560901_1603742573034_0.15211317250898837"},"_hasShrinkwrap":false},"1.5.0-next.1603746452058":{"name":"playwright","version":"1.5.0-next.1603746452058","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603746452058","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-CDiIwt/xdFKaD00GbcD2Q/xURR5Dcn3VVeYueYeuWqqCDnRZvBVOhIT9xmFp+4c9GrIT40NYHpGHGSg3xqqs9A==","shasum":"56ef721e7432b14189fe84040a70f50f83a6aeba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603746452058.tgz","fileCount":168,"unpackedSize":18939661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflzqiCRA9TVsSAnZWagAAJjQP/3LqHoiEasX7iucvolye\nbLwsjAV5MW9YaRjooCMwreMH/oo4e00h0E5h9Q63K8Lmkk+r8WupyhNlX+FV\nj7m0kjn2YRi+JMFlvmI9g6YwyJyyd8hfIE4z4uJowrN3SV8qQL81GM7cVVZ0\nAgR88vnWZCYxiCwd6gxpPohrTdU+QdZQgvvzuh1G39faGiprDsMuJpoyMEov\ngKt+87Qe64UGKKBNES3RUZPtfu9ffXCYcVIMU9zqH9xkpTsdOtBWQdpbfyMy\ny8JlEUd2e8P9WXbrzPXjgNO6xXuhYbM6X7bhvxMClAotC8YqrBjz+mvgQBen\nJoSqWi0fDkwyj9PPEA/ZhVkvowTd2PX6Ofdn9PAtZlWMuTxedkUHxzBvi+UE\n37rp3tbIDfiMDp3f3yzKSIRjsZtB1qg6iFoCKi/jvVrPo5+1rzqiPvQXtDyy\n/vYZLYiQ7ahyzK1sVrgqy83UC912vTYzL2r9N8t6Kk/0YTS+IX5xIt+5kcQ9\ne/NInVTeqQHpUCoGPKM7wbwhHnvDlvhqp8WZZ5/UmveUOrdaSq0BYJ7XYl5H\nAKolnDpLY5RCigvALpxotgnZ2PbJu/6Zk/jUjyKGwG490Eou3L2RHKfUpc8A\nktdKuCaM1xErwCfGFUUdbXYS25EmZ/VRMrNe8sVBWHir1Zi+FrX9a84yB3/4\nyQ/u\r\n=eEGK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkyy+jSmKl2flQgjsD9tqgPg7klGZX0d/A1jhnFjyQXAIhAKFT0utfPfqFylK2GQrKmWJwTjDAhNXveWcJTGtrlhtj"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603746452058_1603746465235_0.5872142840236565"},"_hasShrinkwrap":false},"1.5.0-next.1603748047624":{"name":"playwright","version":"1.5.0-next.1603748047624","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603748047624","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tPkfuZswE0MDIYAY24uyUxduNwJ+81HbeuQZ18abMTDXqAKq0MBlSwL2E5tOfMoJaN+S6v4SQHi985Otx0bhow==","shasum":"e341fa7699b1768e5c58490f69f122c48d2cc94a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603748047624.tgz","fileCount":170,"unpackedSize":18956540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl0DeCRA9TVsSAnZWagAAA8sP/RuS0gAS8gbwKVlz2AjG\n/BpGMuYI3KTlCcgt5qZHx85Mkzl6m73LoMoz9TxzdjdKQM5WiDOMlor+Hfn5\n4JvrxfrRZtN2mXIPQVu/Bjy02Ybm0ob5AC8Y9P6MwqIRogk13L+YES9azL1k\nAvwc0QKLzUXzKlOq0oSzpQL8X31KDxTGl+Gac7XCB9V8PDG6rXt8bzpz4ySW\n6nxnonLvT+qd+Gi7BU66sp1ZPYiF0F16PdhJ/gb+OE4Ioek8luOCugweTjYT\nZjRyK5QOWHuO/1IjbqqSZaz7yoUIwl/U8lGK3//HFniYHEAJwGR7QH/nSthE\nRc8o5U/zA5IBtoWuethofM5tKkZiLeR8eqCDvYoIP5UDLI6fLlso+rkzV0MX\nZPjCPoClgAAODYPIWTTmJsY/MG93cil7bzyWMbIlEe4XvTxY9TXM9idjsXfE\nLAMQdCrRV0Q5LSz/iCcx7TyQV6i8MygG6eiughcr/LpKX97vPQRGtLM8xXLi\n2O7jwttw5sE2pC1mRy4E9Cc7YNkJO3mKnK6fdTwi042zQDlclu8rC9nCvCWg\n4Xa1ta+0NHcPd2gsQvGGcekKWjrpY6hhcgDplbgHjqJ7lOxn50SE6wkgY5QW\nqOi+WiQAemQEbyt72id62Kp2yXm5rSCAqsvEutptm7QdGXGviU5LkA5bkYWM\nn+ss\r\n=PA6v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhxfYbMzSNvViKVjkJpjQtF1ehhbwNhDv8FzpUjaHF0AiEA9rHFXkBLtkZaiYrz283gDlhHnCMqvAFlJ7oN0x1dyHI="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603748047624_1603748061275_0.05606066746842031"},"_hasShrinkwrap":false},"1.5.0-next.1603755982970":{"name":"playwright","version":"1.5.0-next.1603755982970","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603755982970","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-LSxq5JgeqNbXL+mmEl/FntmecOGRAQidTJbDKklSKfXKj/ZC+e6/aU4wffGQrHXEn0RSBQkyOfui/RlE1/XYiw==","shasum":"c350c13efd5582715e83deb7437ddc16a3f9e87a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603755982970.tgz","fileCount":170,"unpackedSize":18956540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl1/dCRA9TVsSAnZWagAAUggQAJhwrByGuFHqW7cw/Xaf\nCsrld3Mf3LyP9fswWuksqVzHTDkwZxbcvMReyGaMGkwGKl7oEfEHni4D2JKh\nBIt8BWpHZnDfRY7f22FrCSwf43TA4xMzL0JKVFOSpmTBV+Ljzb+DFLcpqy9b\nVe8M+RIB6XgkvgemQ/xDpl3RUw97HliLKllKmk1VuSDKf0kbx/110DS8C8ty\nIOaMsCDJwLyQUnvzAsaPKYlPhQk8PhqjoL8FmrWd0/X/rkbTQsiqJXbFGrZF\n2kwLPiji4lDiuxvpVxp05hCjJQtcYDD17tLQ1wYP/0HFMI6Q1F+4/SFjXiab\njYsUMWhI1wbbORYN375a4Err159xUjJNRl47cXaYEtIfurod5xL6hg3mr2zN\n8VrIa4LcnWYWCJXPKs1PFvXfapMGTWJKA3HPqEPnUEYSBD2Bj5nZEDkap9Gx\nwcMoiI4s+9btXkmdbWB0XzSqCD3e5cdhafUEB2AM+5nF6yy8fGIMIa1YYz5e\nGxPD1F93Dos2qyyioEhJgYOZBBsI5eYUqlm0E2/746xApe3QiVpshx8aYLNq\nrx62d4rKDJzCslPeHeiTaCxF6BKcgdwX86qHJguK72FsvUj9LmwrV+WIZHfz\nap3M/Pahpz3i4xLXzk25fIr+5VuDR13wKldk0ybsgh48DzgkBvfT1Amhpuev\n8HVn\r\n=8bWg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqjkf7K6r96FMBoFn5eL88jF+Kgqz4ggqHMHb/xDqh6QIgOV45SSz5NkHLojYfJc1Df+opoeqX1Vu9w932NeD/jno="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603755982970_1603755996794_0.06126385690696545"},"_hasShrinkwrap":false},"1.5.0-next.1603756835277":{"name":"playwright","version":"1.5.0-next.1603756835277","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603756835277","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-XlaVEhmj7zZvAfh7E/wVtKI8CrZe1xJhGXS1rJQ5slt0ZjnzyJrm9X4Q+rP4CorrdQDaTF82+WzVUhjELwGN0Q==","shasum":"dd2514e38d654b4e93fd298989c47a30879b62ab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603756835277.tgz","fileCount":170,"unpackedSize":18956540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl2MxCRA9TVsSAnZWagAALIkP/2steqd00Q65ibsRFn5j\ndsTqar3OtJE7mc9C+472NngCI624FtRnBXK9InMl8lfmVmcyn+s19zVq1b0h\n+3wX7ExPRzkU2uPOnunpHXk3Kd58xx4OyGMU0yjYVXsqyA+h2q3y5C11TORP\n9ll0YCDwRZIZ0yp4v+9Ih+mXr3kvzZ8TXXfHL/V7sDXnVS/lEEZ/brBsjcgf\nW9ukwd2XUiTL+WJkConB2w0Eb12MamtAzFZXOR0/PwLKYiKato7OtWt/tjZx\n/Mab9mJnXI03Ryat5kRGOanFDZVR9VQfmZbk7t+SxPHE0cFGguOV0snL//o1\n5csdUr7DzYN4zrsELHjiedRMop/1VrCsk2AZXFhSAjgkhisxv3R6jjWXKu6k\ngOhoPidVNuXL2l8LsUE76aEH9R5ZAhkK7qBsSSi3FdCoRhUwfH9a5tUCbpif\n1K6hG8HmV6Mb6pYCtErIBOLb/TlmgDTjE1GHV754dKlIPOM2KJ9S2IZ2LYC9\n+o+sZOC82BLux628sYcBSk+QGLOBqkTh4HYOh9kQVUWtzXNC1c9rZnf8My82\n5Qrl/IoA+egQDCp3vaaSh0xsb4KqMvFhlzwUCMWHQ2H0jH/8EPdcpSDfISv1\nb5CiqieoAglUgqz2TTjB6RnMuvZt+tpsjNoPieKhPn5SgazsPfbT3D80qtCg\n0i++\r\n=ai17\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ+E+0akTMRisrgQX6gGJxgFL3s4Tq8MTDULg7mPAsMQIgKdeOo780ADd0guL2s04HJut++CkY7BBtDaT2QNUfMps="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603756835277_1603756848566_0.07410828808109948"},"_hasShrinkwrap":false},"1.5.0-next.1603759343720":{"name":"playwright","version":"1.5.0-next.1603759343720","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603759343720","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Ck7aAZ/TP8a4SW2L7WK+v8su2k04BzEeMYtpp9rsG86QsDG6FlYYU9osS1PvzE1/LUIq4PqLgzC2E2FtbR+Izg==","shasum":"4ac80ac7e0b5dd339a8e527066bd2620df20de89","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603759343720.tgz","fileCount":170,"unpackedSize":18956540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl2z/CRA9TVsSAnZWagAALQ8P/3BL6izbEScvJN2rpb3w\nN+INEcQnRtvCQAI6KqZ88k0RRKObVz9XqU17ZP3Tp5BdZJ9nEwhL4VeiweKn\ngqjMYb8CmfPRkWxUvGIXuNpHrhDl9zzSNhMcgimBPqTQMKShifiOU1uTYQsB\nvuPuLDagULUvVhOUa9YMTBMnf4FXivWJFFbiBrCC7iALCJj+0hygrvc/tyKq\nK5Y0TNM7wwkDuJecr5KzAcXcYNiMRHOqVEUncs8cD6WWLggyWyoXYOfoxiVR\nO/2c7tkEp/+482GhGlnsErLYdlNfR+WCg9v1vM4q7bULTVe4zM0iIzX74Y3R\nn//9MAauMY6iCFrz+W8mITB6Xz4ujZM5OeKSR8YHK+SpllnlwhN+tDJvPEHy\n+qefTUrhouEumcDhY/mWLY6eBEzTx1DEAGCeNlGmRZfbSbY0YHJbUIDmQ4gD\n6zWUhoM7GCAU9+O8vfik6AJt2v1npIk6TmZXRi+d6Ew5C6Yz2yv6BoO+KSoU\namm0gYCKNDk3VWr0iW8Xawc4gzPwdXIV42hyyTkuigFCCfQmxbsiLHEpqCqp\njTpX5tpkr/dO0fNxIQDLxjsR9ZA2VGbv7/p2F6DkimfIT2nOmbLw8aNAWJM6\n7lCjh2Di40kKURpmlugH2cTih9pMrYkqN68sxF+5EQpfCgn+QrKUkbj9WGxo\nPifk\r\n=yE6c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEv8H8+uCvNFalDFY5pGISidJr9EONni2ctY2mOKLAuNAiBkkAFveAkZLHwzj+DhVC4Nfw3Vfh32rPKlLKzJiVAO+g=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603759343720_1603759356669_0.756175467086188"},"_hasShrinkwrap":false},"1.5.0-next.1603759738351":{"name":"playwright","version":"1.5.0-next.1603759738351","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603759738351","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xoFriJ3Z1+gaWhPA2GgBhyc+6w7bR2f9jdzywfoKsB6xIHdh7DTAIePcWG6/bSYhsysx3k2TMI0SViaiQjo8wg==","shasum":"99fcb761e52cfeeac19cad25c8795bcca2e83b67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603759738351.tgz","fileCount":170,"unpackedSize":18956540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl26ICRA9TVsSAnZWagAAeucP/irVeUGlxp8js8KWZEgo\n5PL06WY+4BFOHKLa1bAGqKHrruUSvJipKwJAFLzFivPDFEq6xeewnI1Cv0xH\neEj5ps3sSGuOkKUaOhF3XhhUA0zOvdYiZCYXZ4Ru0lzCPWgvPyDP9lxTvynq\ntk8sN0s6DDsJNTbDbyLR57ZkdnnPjoXv8i9ENPID4U77F2vtYUv/lyKvJYxU\nmHPlFmJZqLp2uwm1mnXcxBJ66eHzrV/W78OSyTAtZT1hZdOI4U6/KTdGzbA8\n5hdJfFR89h/jDFkoxSqQT4/RF3GtwPZjh/i4wlKvzmsQUGPKoR4MEV+GLh1o\nsHKIih0niQFTBJ2R6iJCQINQ72Fb8mU8v57WroBZlHR/+vWU0Uzy4Vaaszln\nDw4lHgyWY5QCiUSZ2DeGcC0hgLHXmch+Ql9U1ixH8YRu8nLaMNpXrEM+QsIR\nTdKJ/pCnDRwUuq0dx0qR8xkJ/73+uXnFr7GOOlds1SK8xB/KHQXw80ss3ser\nstDZkr6hMMcQj1nk90TeQXPj2WQcKP6eDPClJhkkCjeEyO7WMRdGbUQtRddV\ncDW9XpXqqrAL20zUDMLgJtX2OAoa+zejW5H2IwEtOV0AMcwOSvIRTvZShVqH\ne9/qKmrxhiTTW+VdsFS2p84PsUt4B78mv6mwPlFQJ7hVSyviIO6Tb3Ep9FHb\nacDy\r\n=rte/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB3N1QUOSDNpcY5TdHzE6uXzbncRj5CimOR7Ds0HI1FnAiEA5kvCA+7ydfa6Gj66RKq5XQQww/B6KL9VOIGCfDT3OQ0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603759738351_1603759752001_0.9360258297799959"},"_hasShrinkwrap":false},"1.5.0-next.1603763663850":{"name":"playwright","version":"1.5.0-next.1603763663850","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603763663850","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-UZ53COWo8e1nkCabIb450R/0gp9mFf4qtRLxzQrcqLk6kQZqouJ80E0c6y2L4qlt56AhRYm50zb8yPIz5YR4zA==","shasum":"4715b8349a2ad58f6d7de8a915183fc7ea7c8c40","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603763663850.tgz","fileCount":170,"unpackedSize":18956540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl33dCRA9TVsSAnZWagAAxwUP/iGGsDviRiTCda/GC/sR\n6y1G3emaKx13iRe2Ux3x91vypxRF9nt/aFM7OacQStmAWgQrE2/fjICl1wSS\n0H5ar6lNOS6F2PfwrrHkXzNdmBkQmXTt4JgfO9WtKcdANo+L7ZY0OSW6So4E\nt7ZYy9n0FPtRt/lFljSTuS7TYJjdI/MHC8lSpEdg7yS37k9sVENkduRx4y2L\nnxOzxRmNFmuUlb7Z60FC60mxeC9+DAcI33YwAVhkkBnF1sqnrehK2dOBpzTz\nwdyjQllyYxnxQbypSrisR0vnhF7fEXaIJ6elcc7PMom1uOMGDSNm9ATNGtsZ\njZV3wROYGM8fLrdPLD4TdX8dR0tojJAxJlfiwuUtR6a75id7BHE3tDxB+Nlg\nVbBZual8T5HHW12HRJLPfFbcY2an5GGCebF79RK9P3CBm5YFhizu/PiXBAab\nAS7adSHGnO3LoyP/6islNvdEXscVqBbkiBGu9nFIzkqt4/HCudzbEB7jH5Uz\nlTX8cLazEgl49tEnuRXbYnDYp1xQzCuCy9OF7hq8dOCHkdO0jDI1Z2FCgWg2\n6xbU+aHIOLJ31J51m+Sln60AQ0q2SXaZgFiU8WUjk1HORNg1VPpoEVMnjnYW\nUO8MzqtSCA7/AYbxiBgfBTqND6SWzRI8hv8+9RrNXdd3KT3axb1bX9F32zs6\nGFoi\r\n=xpDB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJgJYBUvTnf6ZMYj7bEZYaYRt7byAYHayQ/nXOBI0aLAiAFzoa51aWkHDC364f7eEq1MSNeK2El2sdzUCuHnT3YXA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603763663850_1603763677064_0.1779629230348947"},"_hasShrinkwrap":false},"1.5.1-next.1603774056456":{"name":"playwright","version":"1.5.1-next.1603774056456","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.1-next.1603774056456","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vJcaAQ4P/sPOekAJLakK5ThsIrWWxJJne6SpYeS5x9iah9oHI7bc2zmVEOp4PZfImb7COxP6sGGJKYAIMRsgUw==","shasum":"e78b585a1f6f322c1b02103c5adc061a740a7183","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.1-next.1603774056456.tgz","fileCount":168,"unpackedSize":18900050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl6Z2CRA9TVsSAnZWagAAZwMP/0B6HzX75L+z2tTsRSWY\nZy7sZXrTrX6m/YWfZ6utj2IjLnfQjkNjs5S7fKr04jC3X8CLjfS3ztsrr4sO\nP7GjmLhrycyQVfJ4PfeuQoAq0Jz77i2W9nhkfG8OX95ofemgZ5U5t5N7babR\nO7H3eUJ6QydgUoN5bSgGo0brrV40Dcbp/DKsxoz5AX65Z1Or5XggcF4p2FM2\n/8mvah+vy5RJReSgdfI7/y+nTsfRlF9qYiwEe8eGdU+i8HHrgu75k1txdRkR\nrZL9uFHAWhjNT2hZY1kE3Ko7htoBAGPTDvY2XTm0wbSl5NZcDfj3dsc5W3Ki\n53Et82mhGSSC6BBOEipnM2vaNkQ5mVE6swBI+5LmAmhAf0t0wSu7N49DqYiG\nqZH4EIlkU0/VSbWUjSQ1EJQq+8rqNi7eQhVkaKJRAFaqqpEir5pncd5JMuYT\nSlSen9J4gJDQW/flSHSYrwPkYbv00tYgc6IKkb7U8NfWo1uUqlIpHmse3tJY\n4OOb64jLLFrbzIv7qpxs3lAtx+JXMCi8KcxYWecV1qweTB0lLzpGp4NU8Y7B\ndKJF7tcTOjdFKe/t1z+djAV84rBmGiF8ZChwRNxleYh/3QClEWXsYvA+HtQx\nQ+3d4GeDBX36ORYDLpIYMUL22tCojm04MsbVNx0uLMU27AqE2j+V6kKmRJQV\nAjl4\r\n=d18o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKXujd1lS1+WRNsFA7HoWELR3LFHYj9gzK+E6mM7hvIAiEA7urtG0xD3eUYvJgk9Xb5iLq72/IrdiOtW1SfD1NGQEg="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.1-next.1603774056456_1603774069502_0.07386766238145803"},"_hasShrinkwrap":false},"1.5.0-next.1603774548681":{"name":"playwright","version":"1.5.0-next.1603774548681","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603774548681","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-t05iMhG9m/1W57WX6vGYGnYFax+Q/vVgWlub1++wvQw6orP0K9r66dgXNUL9RVrY4KPCKjFNht9QFYW4bETpog==","shasum":"e75be05d5404a661299170a0bebce6054fbb8b23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603774548681.tgz","fileCount":170,"unpackedSize":18956540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl6hiCRA9TVsSAnZWagAA3REQAJCOT/SKH8ROOCCGrpJE\nOQsQagHGq3N8039UO3ir3X21U7vTIGtEy0GzzMxLp74bg0lXzxae67UunzQ+\nqeYdHl663UJvvKRCyfx9nTmgumQSSBIet4jymr/84vHJcVJ9zVEexW3X9csP\nUlqL/6eKhdX2m1fuuYevJz7+Zv4EpiCeZG0uzJzeHhlpUndPuE6qsGBnCNJc\n9F+gimJHMRUU5wrd7eNWAX3hYnIvMDRwLd/iezdGQzIUJwtNBrAaeVVMjwf4\nxNy95rBjXywYIMpNZfhrTeWKQ8IiijbVrbhJZw3uwkiFA6U4qujk4EvjfQ5I\neM13I1HyuPQzu5piFU3hLhqvbXLt9BN3C/Aq5qVfKYBN6NhCr7EuBtLNQ8Jq\niIH5n2V1WW2mtkOb8rIkWfhSUelPyfxF9teUhwG9qnWE8PBy1P8FjlafgZHQ\ns6HdKC5eSrGm7YrEkBHOgjZBc2C4mvDM6WhRMKlDliJwNGKlnRjX1g9j1ao5\neOYDHrR2AJJV4APZmJAiRZuTor4VH/kRsj5Gw7GIy06/02QP8bR/lHKUJpEQ\nyMCDbQTItcnfa1wpu7pi5zKSmK9QFtQmLCBqiwVWlA5aw7SA0NHb6lssr+N6\nqWsj3DzFgE4vG36dwPevSaznm+iGhNnhvti638j55JtWQfMr1X0mK9BvIsyH\nI3Ne\r\n=HlnQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1gOFrHDLrTbLMSdd0MSae3I3Edq/sbm/E6ozrjdG5gQIhAJeIakpIq6BsulJgh+DEdxnLt9p16JKNH2VXXtHPrw8g"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603774548681_1603774561277_0.6895735686228961"},"_hasShrinkwrap":false},"1.5.0-next.1603775254750":{"name":"playwright","version":"1.5.0-next.1603775254750","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603775254750","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-eH6RcUN+TvjVXWMwTCKzA5lOekiIoD+XHJ1t1hbdwb1tzSSl1Xt25/Pf/j+vGVo+d9I2UtvgwtV4v+Znv3eZAg==","shasum":"9fbbb59df903096d9b902bf9c7e51f22672c0c54","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603775254750.tgz","fileCount":170,"unpackedSize":18956540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl6slCRA9TVsSAnZWagAAdJUP/3z2wctHsCkda80Za30f\nYaqBcCg/WH5cee0qv7b/8c1EUmPzKMtoHITUuJ+QfeCSLw7T+/rihanO83PD\n0DvB6xI1n7xNEjcYb5NainspbrZfUuGJcYV798B1Nbq1kmmehk4w8KPYxH7h\n9tg+1XhLQIra/cUJz48ELvpSdFzAjDN8fviiAsYGnpP+hb6+3diPsN9maCve\nF379v4xd7iHGmuECsQm4NsNlnFIwTSWS1wJO1Hvc66j6xn5LYN2KR/kkb1di\n8/9w8gJyhySQOo4XbubNjf5rGxvPD2hNCMhaMsPB+sbwsNQUSNP2d9hY76A4\nXZmY0gkfeYZPy6L4cV9VgwzNlMqToXvMfZd8iDeq4OW++UKBC41OyzPV11k3\npL6WaY6fQWl+Uj931gYn83r3DrUxjva1zQMgQNeFil1W8M7nwEIbD1wb23+y\nz+pMguKJZSrHRXP6+QCHoV0hOHxsz6UK5gjH5Sf5ChQTsO4G7i7Tuz6NO8As\nY52CmcOJmmKMPr5ijtbxwU65B24Ue9lgkUOURzO9oL26QJ4FlBLAt1xhxz6p\nyDEIz5iEYQ9pDd2PuUkr/VQqG4bSZEazdWE6hmB0DfGWHUQAmZswIs19OnLd\n0SUVb5Kq3ptB3j81h+rkLrWS6BYHLwKMh5yxtezJ54MekrhH8D205J09xP8e\nsKJ3\r\n=uI/K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXYyqTWUR9pmBfA4o3n2kwA2YvIIoJMmT7WsEn2JeungIhAM41yFWv7byE5j84z/qzwKW8OWKvpVNPMJDYUmyUNxHg"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603775254750_1603775268713_0.5377323965673799"},"_hasShrinkwrap":false},"1.5.0-next.1603776153245":{"name":"playwright","version":"1.5.0-next.1603776153245","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603776153245","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-sSsGCe+nPlfFn7R7duEOyc6W+4krC3siFhhoxDHL/hLMLZdZSTvWD2KxX7og6Gam71tK3GKV8nK0kK9wGuqnYg==","shasum":"d68921013bec278bece4fea939a149604c699ac9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603776153245.tgz","fileCount":170,"unpackedSize":18969863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl66nCRA9TVsSAnZWagAABYgP/iiX7VADldJcjpICI3dI\nxKisHMlkjx9g6XKUgmSrmIrZgMsYVPnJ7THQpQUjW+8fYf/hTxbirXgqKpjZ\nH1S152TQAMblMqEjBQPdP/NK1K1IN0XvhESXOd3LXPU4doWzHpARZUN7yenv\nBQ7jCtl8aUtrK0nuhdaKnfWVhiE231K1cE8kAbT4+Ci0hvIFAcdspCg41rXV\n96m652XPnoq1dyD15ak1SnBEUKm3J0XMsa3MH+0nHJtHcVB97KL4LxTVASK4\neZ8oVLI8vCxKrYWbA7WMYdiaZ8/7W0yMMx28ILEELzvECa32amllZ7sxFXhw\nJ5GHorwNR+1zxax/zJnnByWNKgBvkQpemKF9yEGl+Cr+JMyA7D7DXvGqVv5S\nTbJP8nwAwImf8uC/hLD1eBPPOZe5V/JK4kJ9xk/Pc5ExNNAnZkd16Kwk3eE8\nGvI+4MRjNk8/kp6FwgQ2J/fBVINXeS29BNZ+ALQOc2Nl4t+WEGDoNjfOeInZ\nYcJT6Bx1j4NTWHXxFgIhnAfai/zuZs3i1iZHR6Q5agpy4urwnnTD50iqdZiG\nP325GQhI39sMs4oAjj3pMF8pmQQT8ZAWsPygoGIIX/lFUoAKjmyY9sL9Dr0w\nZ1m8a0TrSSw7GuPXwvJ38BDn5CHUnl9DKIM8q2B4BQFqUic3I1TaBPDW+vKj\nDkCR\r\n=Y+An\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDCYLg0mkevZXQqEVunpb2BgnRh7dZqVGdtzj8z8lsYuAiAVgXdgJsP5HAbvz0FvzfT1cfNS5srS48aqpY7eYz2uHA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603776153245_1603776166368_0.21509757095871374"},"_hasShrinkwrap":false},"1.5.0-next.1603779020552":{"name":"playwright","version":"1.5.0-next.1603779020552","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603779020552","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dSVJtjU52j9Cbx4PvLVqKG7hDWgrpiJwPfllNPOwnBOrRFnnkmfWgEVFsDs5rwVz2/VKaNtai3m7XbodZWYgTA==","shasum":"3a1703bdb4a9e5bc20f3fd83c1cf8d815883797c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603779020552.tgz","fileCount":170,"unpackedSize":18969863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl7naCRA9TVsSAnZWagAA/XgQAJqwD1KS0mDze0bRA4L3\nohNCu2MchcDfLN/OpfXTbfbFWyyqpDKQrx0xg21Jjr0X3qy+so4SD5Tl52IT\n1ozeBHQmEMzr/eFSSnVvv3AU8QMjyr/qHSTslJybfGBCWmCnXPSSuiNu70Nl\nbjIgFHaDzAqh26ratk+a9gL1H50us6+W2iNRh/1pXkVrPBC32K9atsY7EGAn\nYoltCDMpEFJHnO7bSXlrpYiIyZDKBJQXh34cEANQyKshShppCDypMN5cA94A\nDPNeWSs2ea/YsqheDqtCK2APlK8WzkzwZKmp6zs/nVZyXRqLXURALidtbofj\nEEGstC2arX5TgBrfPNHvbTlAaKY5B65l7ta+6v8KnyzSQd7kt3DMXzTY83TA\nPO9kuCP6KvJRxCol4riCA8qbaw3lleh5nF2J/vz0p0+9cGrbuDLfp/jdz6nU\nkfmuSs17uoLkp9x60aIlYrLFdDrifmtzeX0F1yBDfYx6sS9wrHrhDE0mPx/N\n8fuplJhS6TFcwFXwjMXpYL+G509chijeN1KyaNvq/nAEGsZzul9lsxjOmNmr\njmGgpjoutWXv6+PilGS/IvAYT1bbpmhdhmT6ycYnE1vw19b0npaUQeDij7GE\n8ZJUFwAGcXQURYScY0bXkvXNjrELEf8L3F7vJlqDxROSm9sEX9E+aveZIcao\nx4cs\r\n=F79Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYntYzKpbei30mHHjBGeHZr/PtDORmMpB4ymtJX3Tt0gIhAMXS4OqKhjiDmA7JiMc6BzcJD1qdyndeRBbP6o81X1B+"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603779020552_1603779033846_0.3146017352493069"},"_hasShrinkwrap":false},"1.5.0-next.1603782149454":{"name":"playwright","version":"1.5.0-next.1603782149454","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603782149454","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-UmH/CS0E/NAA3h4KZ4Dl+Z+yWN6eAD20F49IvmHqSxim2MXnxyrVA23vERfMLpaR/wv4RQHoEhggksDTb9v2xw==","shasum":"ccdd82c05e5d83c59ded77b9c5b301d07fcef995","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603782149454.tgz","fileCount":170,"unpackedSize":18969863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl8YTCRA9TVsSAnZWagAApaoP+wYM/Qu/QbVeb2BC1Nmo\nPi7M2jPBKfNjvIwwc6H692hy+/Gu/7+FNAedu6RT8qZMZ/0mLCnSiT8PcwbG\nGBeeuX17WBEQOT9kcpOrKJW2KIWnQH3b4gmokwvsHdstP1ZBTtR4GKISVphN\nLb/6gYZ58o3J39086AL3j5hegDiRYo9LWVACzSL0fV4rSRsoWDhN8kEygDae\nh/s6MjAl5WVtXscFTNcjU8l9Re0O9DF7SUgrCooXb1CVh/R2Bw+qw6S7K6QX\nG/LceDr36KeLcbMSSeWkvDNK9Yy5qMYr/Q6A+6bGVkoC+bVU0f8Wg1uUbimB\nii8grblivZQl84yDThGXAz1X9NvwTXsH1FErjVtLYRCmb2qwnpUsXKvnjca0\nkXWkWBLhkF6Y43rhe2eXLMR7LbzPzwSoKbMlw/tSZ031VKGaIff9mj79Jpup\n8xKTSicqIaRe/5uA6YVtilb9BVQlT46D+wqhFru3vEnjgbFJURCE9jDdzKu2\nG1Q7hGMSDY2VNZFDnYGg7BSWhg1bXkdt8DL+4/b1leK3hfos8jI+WNxXwJMz\naBEGrZ7ShhqjdjOitLn+5VhMUk/y1XhWowjumLbw8RuycUcYKuHHQ1EUJ1o4\nwZenXhi7QXnHuXS4kClWbS++zyPcE+HbaogU2+mlIYUkD8DU+2dmztI2xF1+\ntG9v\r\n=LQjt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwF2G0DrBjqVDspaBxJAzdh5jXZnbEpniwr3S0komhtAiEA2cyaDnf6cyd1P7BdhvEuJ6tF6y3Qh5PpcL64QOGFf14="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603782149454_1603782163035_0.9272242022745798"},"_hasShrinkwrap":false},"1.5.0-next.1603782271135":{"name":"playwright","version":"1.5.0-next.1603782271135","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603782271135","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Lr92vhqIIcpiU0gj53QqRe2ol0G8W4CKUxDtpfZEW7MsDk0YKVmBGeMQoATrOjS2+Kd8ub7KHP5DLnFWgzn5rQ==","shasum":"5e81f160964b2722559da0d33c1dd473c962f432","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603782271135.tgz","fileCount":170,"unpackedSize":18969975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl8aNCRA9TVsSAnZWagAA/JkP/0UiaK55gKsonCtB4bVV\n2WC0uJDfJliIUJDeoBvA5aKnoUZ+hVAZd6XvZGxCu6FJKkzne+83HJ6kMbxb\nslo0MO5GeXW0DbBpvsnluEeRfNqNOBuXSssUh1MZzfKAxzLxuteBLPiC98mF\n4zvsbZh/dcVqTdoi1ZcyfpAusMT7PSMd3E0ZBH9dOQgVXm7IJDVbE2QH+gu9\nlYh+SqRxHG0Pk4tbbGOE1CsKKTf/HFbRg/T+ocgvcaUZFT74gsVSyyCTopTo\nKqFYM2W8GCJKbh72irgGMyh4DhjsPysYP2TMXqGR7MAeTbOj3r2w3Pi2VokV\n9IGILV2+3jVrmGSSRsKrb6M4IwnkbzrvuODSpisKvte9Vx2zT+p+4q1bi6E+\nLVsSVDaCHpV+Tc5Tk8i2iHcYXVrKLzmYReGzfEhv3I3GND4gbJGV8cZA4ceB\n9nUIUeV4duTex31Ucqn6qeunJVFY3JoiWcTo+x2CohDoSCKfuP8JSHyhoyFi\nrdgYGKtBjzKT+eUJpgd4Ih4shCbBJ/L5ijIrLEFNB2G+qzR9wZw5V2c23rvO\naT1uJWgavw9XCaMQGawB2mUx3lqeOpxfxhvZi9JksybXu8OVSyc/IDWoXAJW\nYvpqUBo2DsDm2ZXi7oyKibWT18y6JmIW3EQvbARoaN6NrgtPbv/I2/26elc3\ntNwq\r\n=P+s+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFZcrruGzSCl6O0ZlxDMOEddhQO1Ho1vtlbxF8WBOmv0AiA0YDrwOzES/slGGrd4WyQb0a07iZGuLjbiwU5QbVnwsw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603782271135_1603782284511_0.7095404174776467"},"_hasShrinkwrap":false},"1.5.0-next.1603782403681":{"name":"playwright","version":"1.5.0-next.1603782403681","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603782403681","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-eY78+9ar0U5YOAYqBAZ9T+m+IW0mLYpvRZbg2DDo/eV1D7MQ00lhDe3CLVNorBJGfpeAht6ZQbTpyKbqdnALIQ==","shasum":"1556ff103a680a72a91f58dd5cf6fea4b6bcc020","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603782403681.tgz","fileCount":170,"unpackedSize":18969975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfl8cRCRA9TVsSAnZWagAAQGIP/iEPhQ6xsbmNeW9875Fo\nk1AeOmUZqk9zkfcRK5Fdf8iPVe0ykiroBohoyO/0GAQKvGPkKMyussN7HuVp\nnZS0VtcB2lxBT0k/9KR8VD1UlsJY3h/jiYQrllN0pYs3zQkf9K2JzN2w2BCs\nJwTUkT/EFbPuo6Bes5jJVqamaLMTxsfjfWG6G2mvqkAmK83ByI82LjMGy194\nmT41PxKlQulYwIhwcikkXMyeelKmt3cYmUYfiBjyifMuFN/rlIEZYTRR4/d3\neQnI+kFv57fWNOsvIpaJjoA0npUkTYBo4Q86gEcB/AsBmmjvVe6jrITBNRji\nMVd3R54QS2D7Eq0eyQNWVjLhq8b5eRL/aFQjcwceeXrI4OA6W2x0kNbzN7GS\nvoOgM+ZeK48+Gfv0nG+iLb3Ua1WPk1nUGZ5NqkJtQNCs1uWvLEzR/tt/QPCu\nR9W1REYfGv4MCXzukY2D6ARzkXbrIcrIel6ZMhHQ99A39m8VS9mmvMFltkEh\n1ieuGQrlbhn3crfijlwAeUr84kAdBnyuNT614MluElS8OOdSw4aVx19IeIXk\n12iCgsnIaOzI2kJ5UsJmh70Xw6vPoIvZdclW1F47SWZrzZwqoEwLGB/P555K\nxkiJGrHk+YGpJR7Go6ZJpMcII4Z9BPaKgEWMbr3/f/N4uaMO4XgjrKScDgRT\nEnP8\r\n=gxHy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6X8sJ/gkfN5FcB8KgPF/h5kR2nb8w7w/SsXUCl50byAiEAj8uoOAPUf88MpcA284DdP4KFe5RwS+j438JmxRp0UkQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603782403681_1603782417320_0.44628740614520757"},"_hasShrinkwrap":false},"1.5.0-next.1603822295710":{"name":"playwright","version":"1.5.0-next.1603822295710","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603822295710","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-sryEbXchon7ekvJhPc4Tj2KXMs0OgUJYBMyZbTUhU4UlJsx2I/FFan6m97waUgePYAbrI/svyfhKNWVpk5EhEQ==","shasum":"8e68aa923beda3ebfacde570720cbbf9559e4ba3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603822295710.tgz","fileCount":170,"unpackedSize":18969836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmGLnCRA9TVsSAnZWagAAvEAP/0d3cCkXRJXK3jL9ioZj\nJT4MBt70pGhhdFx+lOA26cSHmDExIV1V93Ht39DD4yBLlxZVWj1tQ2mtQ2ds\nHT3X9BOKROCeF7fNFVFb/y1WNN2VV8MTLWgU3SdepinG+UqD4+SL8mx/NdAX\nJGmI30N6VPGt2eDi9cFYxngMtM4vRB8GTRIDvprEd6l8ywH2H+fYq8f+16nc\nNY86R0ZYPZKqz5MifdNjxf72mnWYtGFLl+iOZuL1Cj7JK9UWGxLcDTitZTET\nnT0YQzD4boDnrDjE/DQ0fYmmX+iA8l9rmur7as3ddXEy5EC2KilX1yAvaAKt\n+9KnjCL8HOOp43bflwE2LgRzXMWB1m8NrD9BX2RrWmuj8cWp4brLBlfhr9yt\nVNzD/MYkklFlsuhZDpVSu9busX5Env5lUuRcUBxpJlynbUHidgdyaUWLCEuh\nr41nGuPdE08dCpKQKJnQpoERnrxpUtRJNf9GkNRh/bV1g9HfNtsgxhS9W1DW\nle9WM3DMAOY/pZpfSzrSr52W5Sr3jEcHzIn6vyg/hbhL/u+MHSH0FhQZGvE9\njcAnTOH2uLGHpqZfoft9XS82tCoGVb7uC+DWOQyq2nxMi+yJf2KCbHG6UpF5\naS6YEXrgUdKg6WVnSgC3pBzabpwCH9JrUwTlE6VPGhqaE89uBOHosKiEQmtr\no6Rj\r\n=uqbd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaVSJCXuHpnr/SFuxWD7K9V9wyOU59pz48b6j1PeYGagIgdJI1EBFmgDtJk0wjFiJXRdHZdygF/9D8yxi4Yc3MS9o="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603822295710_1603822308987_0.878938826378709"},"_hasShrinkwrap":false},"1.5.0-next.1603823053331":{"name":"playwright","version":"1.5.0-next.1603823053331","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603823053331","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-seZzuOrkz0g4RGS/oMHKDpEhd0E4I0tnLgPp/iXoEDvUgmrfuicUIRsPI7vP2ccejwuZuy4rTm4ZzE9DCAFvmg==","shasum":"574b3ec5ee2c0ccbe0453b838e3ef62562714807","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603823053331.tgz","fileCount":170,"unpackedSize":18969812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmGXdCRA9TVsSAnZWagAAGmoP/Ar1uxh6CZg70Ub+rW4i\n+HczejufOdc/vXhaD3GIqRY6t4zH7hEO2Fesw3/R2jdneoIRIV7G99H3Itny\nKOlPma4WZ7VEcQZFQSuth2940hrbhdDtwnDZ0pLdI4A4E0vZp0ThkS1v0DIa\nTOlynba2eAJb41ugRKiej3uaIMpsRN2199fCAmnumB2MmT4wchgkeF+sV5oU\nbREhPkJTS8f57XdJEtDHFpB4mwTubY85s91aoBRsgz0ADFSsCeH8HQhscarv\n+TZroJBbTfbs7b7E/Jvekx5mSBP60pMu0TMAppDkz+Amho2vDZ6/yYmIP4+u\n0m6Hnqy9lyaY5zct1z8/B2fdrUWv24zgMXYhVvxNvxFkY++vl6fhXbIJACPX\nO2DiySRSpQI0whhSZIcv0LmI6Boo3TVOCfT5WH5SKu31frimJ2iHA/XPGar8\nX9+CHzZNcVB0BpMbGkX3Pl/bWkEi8LJ5r0KzLCUvIzdrLUWd1rXw0S+orOoz\nKTTx21GByf1sWjOW5VXkATOZoT8X988syogWfbLITsIbB16JXr2NpMja5bVY\nhiTRJOkmbKFXY/5mzhUgfeCtRfwvxYPLVsBaez7HsqdaKXZipnR+W6CQ1z6Q\nkHjihP7FppwSUPhC/WUluzGodkYwHLzw9sZNfD1G7xDrBmWRmUmZ9uxUzxDq\n6CXZ\r\n=23VU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgaeeONjCfOYF9hwDFOB4Gi/hmxZhypcbZVHQENqT6iAiEArKy4Ik0txYHzYkTArQOnmrgodKvdAou8Usr3R3fY2LM="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603823053331_1603823068332_0.5571968776630258"},"_hasShrinkwrap":false},"1.5.0-next.1603829806145":{"name":"playwright","version":"1.5.0-next.1603829806145","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603829806145","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Y+Lk3wRn6Bg0Ws0eKZZldWRNUYPG2VhabmxMYiWGM6dwA9qZjUrzQzAQ6d374npevknoUnnqg0Gmi2DKrbHlJA==","shasum":"0023d1776bf952b460fa9a967452d46c1650b278","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603829806145.tgz","fileCount":170,"unpackedSize":18969812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmIA+CRA9TVsSAnZWagAAhJgP/0ZdVqR+B7LCfchUWqlv\nEZLcEfmxYiET1D+HgaTgfhCsbK8g9wH8DOTRyVQiw4hlymSYgzG6rh5i8Qnv\nqCq71WnuhF4CYhO0A47Gb4CkstkmqQF0/BmMSMBxeJ/9nw62+BzoNrP9GiGi\nNKUFrejwyTLwi64hN6Wk1ctLZs8DvFTrh6bJDKpp5LTPts4b2Y46Xj9q47f1\nBDUSi55rnZsnP3jJEMQ7VZ+IgEqfMS73581fJsNQKx1gETzvL9fXhhc7d2yN\nrO2loC4wt9AyGxnJOP7KVzBGQQMj4ob+s6srH3oZmuBnBW91DZgwy2ncWLLT\nFnW5alYpKvqRJ6MQgVwSO0xB54IRy7ariU+i/7cUxmrfO95ZkTR8CIxa3GIt\nF8IAKjepw1wASovM6qN4+lt4j58Kkh8RNRTsY+p80jd8BxcOadWmxqPntxiy\nhhWcmuE6QokfAz92Mm1eXnyk4rmU6FuiH+kCuTWU+VG+M5g1nc6PUMNR8VSe\nN9OS7d2L0kKT+Q25SiM53aLiDDxHqFPho6ZNeVYn5cw3Voo69LSwwZwC1XKq\n5fgmYlcsjtCZA9ZoFIZ7TFDFbCGvLqFABrSFU2utC8SBqxB7SUXhlvKG6oM9\ntPMKXox+Y9lBwn/pWaVYhFQIpC2YuLFrHFmxYVwb517lISqgiEy3xxHDmMcI\nlqfh\r\n=dRd8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcy/f8L38gJzHv6+r/knLdhiCROS8leq8FStGrO67MdAiEAx78gcRbycWDUiewFMGYy+Ddr1uq5eTg2uzx0oyqgghY="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603829806145_1603829821701_0.5329640508264439"},"_hasShrinkwrap":false},"1.5.1-next.1603830636096":{"name":"playwright","version":"1.5.1-next.1603830636096","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.1-next.1603830636096","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-E881Z/uPnMKUUP0DHSiHC3G/b+Iuhteh1M6ugKA1yNMGXGsd7OVfHgGQWORmEMMMqwWsBY/lE960gKFYJ2NRzg==","shasum":"440606f82ecc5618c4d13cdd97296e60b5d567c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.1-next.1603830636096.tgz","fileCount":168,"unpackedSize":18900023,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmIN7CRA9TVsSAnZWagAAnbwP/j1112eI4+tvElDHBwvN\nBYV0mrKYQHDIV/fiehgb/ec4O7JcOdvnOj5SJqkysW6mqav6g10ifNFvJ1Ni\n6OTP0+aRNuYtJXBo2e0k/WrpzZ6tNQmlXDmRbOO5ZzqjRldf2TBHnMM/n21p\n3eewh2W8Me9t3g6WzoDbklNqSCFJ770twqwnOBO9ioxqNVOnnrG36N8Tv7do\n6B+rV/b/zPeyTdV3h9gBdgDlYWBGSLj7hIRtfmEqsjheVxUPhqvhsJF0R3vZ\nArc5oWjwIY26LxbvMI5Op907dVICK45o8x7WKUBf5UP/IG+lOL0I9dAI6XWF\nU8eMswevnfSiLI8H3lM9Vyl/d28A/ncUGzWAHkPmljn6dOJ8q7Hy8xXPWp1l\ngO42SV9YRXTLRKbmWq6HtVzcPiltlgtIv2vip5NkoMQ94npVccop8TUGxJC+\nP6Aag6luzB8uh3qBRGGi445jVpf8lRTPVMLjBBjc+hyp9lEitGykkMYa+l1M\nLou53/ocd5vfiwD3ienRqE1MB+P702V+ydVFNC5oNhkxrb+G1pkrGENtn3Ns\nQx8WxAfvNbMKoOOt7LWgtEFxpyc6dBb4K/PhXH/RR+3Ej43fWESR/A5jAOBl\nlHwF+uHdrWuUwpr0MuDhFW/kI9CjErsFfSJQNRlCZGx5qhtWMpm50Gkvr1UT\nAwJA\r\n=IF45\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYAGp3AOAPE7e+qoY0TSp9AUM4v54p2D8+HtfFCQkGvgIgVOSuMtLns3u3beGID1v8KWlJD8iKsMbKK596ztTM8M4="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.1-next.1603830636096_1603830650992_0.7758811375152579"},"_hasShrinkwrap":false},"1.5.2-next.1603833673751":{"name":"playwright","version":"1.5.2-next.1603833673751","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.2-next.1603833673751","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-bpCm139a3nIf8dOSE8dXa1cgNgQ7QFh4I3r9skj5vIayN/1hkSpo9lbU+xUZjR8/o+yms7vrBfPIpcbv39jzAA==","shasum":"5dcf133d8635cd22e610690fdb967345070ee48c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.2-next.1603833673751.tgz","fileCount":168,"unpackedSize":18900023,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmI9YCRA9TVsSAnZWagAAzAgP/R8ohWI7ALyPwd/ZN3Yu\noOwQUSS/0E+c78VW0fOIlDPKWXV4Clcxs/a3EYi7meR4eVB5Bv909rcenvd2\nrYSHALX5ih9lbujRSlH4srozI0S/TpS9X7F2Cev0JgZSYXwFs0HgUcvlL2mZ\nHFwfrzKxuoKOBxcMnnJxIrI8k0TYyzve1ryevZROWL8doqL73NmYX6H0KW07\nfUgOGh4SUqgijXQ+ncYh4I5WZ3WD84I6uvvR0NQyGdpfmfkYIAyIYmKdGMrF\nN0Rqh7w4419PBIPeBeFolw7Eg7jPDPYpjM/3IFEOe51CFwyFaQiSi04Lv/DS\nGR5oN/2IKWU32hUzSPXuqm+M1KtdmHJfas9OCYxCOltblGwFZMj16KiIcG6C\nFNGA0FP7hTUbshJORJUX5f7HS3nYKJkcsogDW6qD2X7GF4Pf03H9NB2O7IrJ\nEN3iUA/3HEczYEPLD805m6gjvVNfbIkSJfAS2sE3qj4AVzQKnnoDe4O6qOu8\nwjTtgECDEoArN9xx9iyy1Hc9NKL2ebuwRAGVDjSvHLhC7bzvkAum1wTYi9an\n8E0iyjYE0Z1/0aDIun558m7cdtusdVhzPRilEgZrt/ScBjRPIiIU6b3egdNJ\n7WN2fpMFUDujVuTs08vKH+k+m2I7JXR28qLB3wIr6PwhDVoZfwZTOaGPpEGH\nWUI9\r\n=VuYB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCinA61c08PilQOK7SqUFrw4hnDIkavTPCBOOxfwVUaxQIhAOoCvHr9HZa38MBw2X97uTes468YOzeHYQP5hl+XuJDu"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.2-next.1603833673751_1603833687726_0.21619935733660145"},"_hasShrinkwrap":false},"1.5.2":{"name":"playwright","version":"1.5.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.2","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-on7IEui47bDZta0txL86QKMDSgjbxERkLc5N0+lU2zajIfN/Ld6vMl+xiROEUPlT/QtqVekq9pTDGdcc0yScMQ==","shasum":"e127142cba86c918fad9f68315db5e79524af64c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.2.tgz","fileCount":168,"unpackedSize":18900004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmJ87CRA9TVsSAnZWagAA0LIP/3nqfsHY/5ajltVpRmaf\niQYeqBBNkEd00ZUV1/XLh85e34ZDbRECPfCRPK765QiX+QSwKJR3w9V6Z1T0\nOmiRjqw852IMf2ui1wOMwt5g6arTGDBWviP1DhwcuNO+h/FYXr8QQRsHoCMW\nr03JcEvi01MTC9cwaOGLpGPH5K9CJdjXah+hYMngpjpXNZz3QtVM+ogdo0IW\n0s93MowbEqFxz3UVhXi3FtrqoYThYCrmmvtN1+6Y1kyBjh46gIVHIViOfqfA\nBgL4OEFGqu//D+s4SEkYckCOkSPLdXTeFzj1036rstsZKCfdzGCq3mgYOvzP\nWvYja9AOiYDL5e/TuangJ03F160sFatphGh4hvcHR2CzZdymNFjcmNAGTHaO\nO9tNp0DZznQ1Whk4lHb2zR93fp1XxQGbCvo3Uu3yzwu9hhr+Vi7TlVB+IGD0\nlHgWhg4VkRKvhJHcddGdtoL079sQZfAs0zEREsYqvh2xHuUUjB3sXx7OdJgH\njvg+PCUS+QA2gIFVawvouRsXzncsZGscb3iey/MhY8mynxGCwHe28neiieB8\nRFZLN8dUXetykHUgLOholiCaXRTUgtqrTbD1MzJK4U1hsHqsrIqRgoInZER0\nRSxmFjeH+ha2YicW5hUgsMXzL3378zx0MVLezAXWxSPQVbTmfTtGQKEoc1er\nvV+o\r\n=gwjK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDzjlve4rJv5xUAKdo/JyWLhwadIa+CtIOS5CpRgD3J2AiEAjNXngNgYeqD0H25LBJx5JdUh0MQqzMEIPbFhSZ2/SjQ="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.2_1603837754280_0.8005931379963929"},"_hasShrinkwrap":false},"1.5.0-next.1603842319218":{"name":"playwright","version":"1.5.0-next.1603842319218","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603842319218","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-o+rWEzFsILtxraNBWdQ1L+ywecKyAJfReMWef1ItuHFlNKLPnDyBlYZ+M5UBP9rPtMS+YTonzz46h3uXKZpytw==","shasum":"b1a9dfdc21ba7e8c3fc7e1759a0baaef29e8b2bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603842319218.tgz","fileCount":170,"unpackedSize":18969812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmLEdCRA9TVsSAnZWagAAONQP/02TveXIubIFcby+ALJx\na7VFq0BeO/ajZniTubnIoKrY9xJ7s0T0BrwdWsEH7YGLz8tOh9FL2DVQ3Rv9\nARmSCKI9IMd57Z/IQ2oo/QH336GSEwCLl7rOr4JRv/BpUJRodZB9ulXwrXXg\nyeA480HRJnnM9qVx0kgg1VTVfTFcP7bnnOnqfE1/Tg83GCIlYjkNRzQ1+bkc\n3aDY5ydUjhpdx44CMzMDSTr8Fhyn4B11P6y6Fcfr1H2zzj9lvQNSkGKtq2Yu\n1aniJtjd5E9ebT9KrvSc3LYjX44ncFo6ofB9lUTUH27wcUrehaZCLhRD1MkK\nLos9o0O2sKMjLKAEPmly0Pzhg2QnVpNh4Q+nPTOzzgkNXOaFBaGUZZBlulKd\nJfcJJyTlJcwz6rK/TZAseADQF+WBr7rVoDFRLUNc4w2utiHwQnJ9oFCRjKCy\nVmQRbKfHsqxAMzmiU0ezcNw0rgvclv1/FC1KkYTkjxbpFgxxjZSHcjdet8z9\nSDK9XRc0MT9HKf6sbXT2he7K3e4oUH9a4U2mSbAW19fC5LwgJJ8Wigz1Xl74\nKvbgRSGQkYMHl0rw3PnalZg4vuetGHBevQjDCYj6FrMwYCDSh5Lm9RE8qmO8\nepM9dF49TNdv8sNa3NU3i7eGNOHZPHHm8OcJe6/Nr7xaKzdWvcAihvBKFXBe\nFwqK\r\n=XVUj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7JBz0uQ06iIoRRVtjmOhyOsqAR63kuQRLzSZxGx+E5QIgCZXpRct5nWX3lO0MW9OnyG7sf/mOKo4fGL+B7mK21dI="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603842319218_1603842333027_0.02028046272063322"},"_hasShrinkwrap":false},"1.5.0-next.1603907834797":{"name":"playwright","version":"1.5.0-next.1603907834797","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603907834797","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-IV46bnJ9lUa/ukQvC0V4omCNO8plMPkl5HB4zvWQaWv+uZ47JuLHUlvm53xWytbQlDhJA0h7m0LbEoGNUvP03A==","shasum":"3c5a771c221d9319fa4816ba02ba3b1d19fac5e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603907834797.tgz","fileCount":170,"unpackedSize":18969812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmbEKCRA9TVsSAnZWagAAfZoP+QD1p3HxWACFP29b+W0Y\nmuLj+jB8CQj7hkiPbCBoxTvShRqK7cDVeCymtAFnrppD/pCeF3yafsIpAx/D\nAuZrkmodBSnn881971sm8V8gkt5jZlVFmE3gpC407rLaSv6xe4l8pf0x1Y6d\nLMqNOd3eoSyqyy8QVFpEhOSA/kE0asY9yIPsUY34dIEoEpugEOVqXNup2pps\nf/lPQggpcrDaGRuawyQTd57uLsIq3BhKOXqecr8VAc4xK1FNd8gLk4hnHI4i\ni7SRHyo3ZtgzxX+cup4AoTUN5e1GZEXqODt99jjSVQLopTTV9eqPnOLpDVhl\nOY7B+dZxwD8E0AQ60UIiZf3U9O5DkmDz80ntu0SUHm15RiF4bpm7HC3jw3Tt\nUt3WrSNjADM9d1XYTGJLQxUFoVwmPZn5GsHOn0pZu1C9E03r9YTL+z/46hHZ\nB0HhdOLag5WtFkiaeaiiU9f/5EeZezixeQ7WR7sSP5Eg85yoYnMfjlAPq3AB\n3Gw5H5RIVYQEiTIgrPeXHhHeunVMlnhQfIVPLog/Ktx6z9iGTot3Aw28xIKa\nYfstP5t4GKc66UvxJq/WPjbxzoRFMmgkXLCdLEAErU8bezjuFthiGwAGgLFl\nyF7xfdvVyV2nFHB06I01psV8BVdLuIqLq31aBVMFhL0GIGKrAzrWP6Faf44t\nEDF1\r\n=kf0X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgZeJrHXkoXhPz9oOvjV0zl/G78+Mmep+T2fDcWdcx2AiEAw2Z9NdANdkbyYNkCZsIn4umk1EgUYkmbP1rE66wbPs4="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603907834797_1603907849825_0.472971808944052"},"_hasShrinkwrap":false},"1.5.0-next.1603918082127":{"name":"playwright","version":"1.5.0-next.1603918082127","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603918082127","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-6OGtVt4QT43cd87ix+kbgnwVV69zicNNawGc9r08uH4mKvKzxhUvoCaL5Cpn1D3gE4Whr4uAyRNgvap+30Qytg==","shasum":"877eef99dc436e4a9a06ca2ba217a4bf217827fd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603918082127.tgz","fileCount":170,"unpackedSize":18969918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmdkQCRA9TVsSAnZWagAA7HAP/R8pjDp+LCSJyOgp2aS7\n0KeGehVye9MPaKclMTtUwLdwXcxUaNpd4UsOyfk9UCZA0EBROTtIGFQ9tYO4\nc42WeGZRE1FHNOOO3vIUzyPvUFJAeHdsjiGuiSMfSUqyjZzIulQNDOXp1BhV\nxS0QgM1GJYgto+bLUSdWL8XSJScVeKYapZnFtN0JL4xFN5TflNZN/1H9Io3S\n6T9M0FWp169zP+PfOgqDc1Bl2Q63DPZN8oG7ydQDpm5a0nVZECva0ROX7acK\nH1wTODG0omK/L30sc90SoxDOB14fXTFARFtVZpgXWB7FC2v8N/S7h8NM0CNO\nehkKUkguU/nDTdiI1giGBJzLgRvcN43SCFHKpG0N5Dv6p3l2SwXYMu0rYQzt\nacLZtGzhlXj+Sc8FUIDQSoUI6DBopTk+ckgpUVuUmQAmy0HwUbSTGAGBiqjd\nRG4iYp8lWtIPkZzYzwuU2DmpNMGs31enxLum7fj1SaHs96naWNe+cJuCRcvK\n5MUHoyouG2m/3K4ugaV6pkZar9yZrf6idDxjA5YPQ64QyWXMxs8b1IXD0Nmv\nt6rUZKZVA1izNJsOGuH2s78n28Cmq4rEBolFrKgHhX27enO/b6msw3hLLDMO\nVsEpA4Dru2TFDk3vBE3HMr36kGDgb0AOtww3AgNbv4DyQ5Tho+whKQY289EV\nH+by\r\n=LaH7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCk3lpRR+1/LbiO4jjN4wZGsZqUK6JdnzwMJLCuFxGiwAIhAO/zB1XI1cX348tlaVrJHTHrNE6IeFue5sMjXHJoXL+w"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603918082127_1603918095984_0.3076024773449122"},"_hasShrinkwrap":false},"1.5.0-next.1603921760661":{"name":"playwright","version":"1.5.0-next.1603921760661","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603921760661","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-BF1i6EqbV0izyP3jVv/YCmZWiACTWkZUtrYjx2FL2XGnLyeOIVQ5AeV2rHuW6DzahS7zylxgwu/YW2ovmM3hrQ==","shasum":"79a6b9e57e90e0aaf6d70e578fd2e8eff3d45dea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603921760661.tgz","fileCount":170,"unpackedSize":18969918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmedwCRA9TVsSAnZWagAA0YoP/0GBJ7XbCk3Gd7q4kDsV\nwbcptWTwuatoRkzfohmZVAo6LMzPISzS1oZ+qfcA6CCHohK/pJJYogO0eZpe\nkYkvR3GDPH/tzAQgD0IzAAS15/NBN7LCTsspDLniVbsW93ux/DZityb+nS3X\nRtOKOTiyouTd2mpccpyiYLKCAwp5Xs38IkoL8dZDllFXwX2dnmG+y/+yFIN+\nNQM8sLNT2FoQUuseVY1n1fJ2zAxm7nJg9hwttrfiwCPLXp+X3InWqZCgNRu8\nnWP+/ESdklpqOQM6rin8LgkLI2qNr8hp2HVsDypfPfrt5cwy/42tdc7tdrTy\nRLgGRGCYHm39bAxrtsUzLycfS5Xzo6xZnlSKWMfxPMsIcgB8QEHkJHgXkRHV\nsrFI6H3T7omEOAc0VhL/9xKRGBnLuwmRTvQV5QHVOI6TFfFz+LnM0OEIv1eI\n2bXjfsE4BMB6T1fjoejt2bMSXNGgQSGsF3newr6nqcigbf47yXHrgPa8sQic\npiYqq/BpHiihfljAC/mfA1y0UOKSLflnsUukfAxe6TtbYNBitIe3NUYCM+Td\na3B+TuHBKeURLB9Vwf+KgCbHzMHGgsFX3qvzk1hSC2l+EzxRvWIO/ctXyQZH\n1u9zHrU5z/4q5MeqPSvvlRKCQN37rdKvQf8s6iejsLYPTdjWrbSWsuX1bshb\n1GMm\r\n=AFdM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYDuztITTRp/lzi+GUQ21uW6Q1jg27osiPCGQtSFcFzQIgHx9uDr92auTPy9jcvmU671OhvtwNqbNgA+vakMHi1Ao="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603921760661_1603921775881_0.06811088421697353"},"_hasShrinkwrap":false},"1.5.0-next.1603925710895":{"name":"playwright","version":"1.5.0-next.1603925710895","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603925710895","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Cj5Ifu3iEoer7t2NfoYLKlSO2EzXOVrtutWkf+xweUvG4/lz8tk4oTSS5K8Kg61Eu/CMh+PAXU44YsPxRyJoXQ==","shasum":"b81c619857671c3ba1e210c80e4953f3127fedbe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603925710895.tgz","fileCount":170,"unpackedSize":18969918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmfbdCRA9TVsSAnZWagAAuaoP/17GdRbAdFzTwzS7HGJW\nHw4iQi25RhucUkqwHoN8qG70QsGTepwKdd186PeZGU86IjfYCfgo9MwMajBq\nCoxye6ZYGw/UN3JZMV2Dno9edxnx05ijfI1qFH/nD2YPtY2r3jI/DYTbSpB6\npF1Uq37gcJXYZz58eVZjtx1QKtMhZN7gYyYrUthZcZXshmSNyIs8gKzPdkHC\n8ei0P/4oGQ6+Daayq/ZYRwcNk9n1pl4bP2FEaPeAX0npJrf1iNMwaQkQHyA7\nmEjzAFfvawgd+B0lloc48/w8JpYbhg9eGVaNEaZOWBhGCb2YQIj0zuuv9KEj\nILELevRv5VUhJhY12+bJxqbTZ+f0frYLRU2QjZyCyEgzuTHIEo6WawgmwrxC\nhMPmU0b2NeN6D3fKuFeXjkPndUxvuj+j4Fog3iDaytl0g/HJHlsd3lZjB/uU\n+KnvB/Ddkcvzw2xhPKKvDK0Nsa2mRROTGPMVaLc2CFwenwUQo9/2X4peCS6p\nlPs+wyAE0IxXdFdqbjS0xwn8RofJOAEVM7z+DpOgF5FIKTTseuy+Z+bctFFF\n6a8wFPVWYnEwcXcheDL6Z6lXm48+bQxo/fn2O2n1NGwNIg9f9TIN9r9DD5h3\n8wNcXn3li/EMTTUjXwq+oN2OVmGJuzRyNNUfU+ZJW0rDHsOoBu5eW/zEGHbQ\n1S+l\r\n=UUhZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6oexeQMWSuKs+Ol18JF4t4uqX2zMVL/8BR6wt+b9bMAiEA0LH13ylVuu6vNIMS1ExeXh0ahgPev71n8gZfCmCiA2M="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603925710895_1603925724395_0.06350465452509813"},"_hasShrinkwrap":false},"1.5.0-next.1603926030124":{"name":"playwright","version":"1.5.0-next.1603926030124","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603926030124","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-cKIbnwanOFqajW+zD+uRm4/8Fgtl9LnRGIrEgUQ0penFJV7ZEgrGyXj0ejeO7GZxgj/kwMoYuwjmFEBHjm9JvA==","shasum":"2d7820fc5d060e15c15a2dd0160092c9a4ec57e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603926030124.tgz","fileCount":170,"unpackedSize":18970134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmfgcCRA9TVsSAnZWagAAx+EQAJmWOq7ya/fMXfTmxnoZ\nLWPBUgcwqWGU/acwaHWk2S/Kj2QBBxvbggY5SlP/xeH1EZWPchGSIG63+wSk\nI5+sxbVqqmSHnv7PPe4IHYgCUtsStO/5rdaEoonYDZSkgNznEFWbJtAfChra\nhWawi774WZ8neYL4UKMQQtMxdXb6HkE/WpdOFpTQqfjLOVOJaIrFL55KLCdo\ntWOyWxYgvsPqHfTN/T4dv/HGZE6PaXGGL9jZX9VXboEpbJTYqekyu1hAruYq\n5a4ZrjA2CzBhCHfFCNgdjTvjYE2+olZCYWv1pbK/sdQkAJ5PRR1AEZ9rumHr\nFhD0Gn0Jx0B3dT07QufCttKb0QYqgdDPtgaT091m3+AnMF2eNMvFqL5xEYzA\n2Dck/33AEL3BI6HbwJHPMyLHDPpBppi/2iUaxC1/gDHrswnENTa5ERc2NW8Z\nZtvcmzjyld66wOQF3gQDwK92WQzGMq/vZLV7soyy4bO9U5qG37gV7UdYAIQG\n01i/kmX973ZGntfHPWDxOE/urqsHV6TzJDDZ1SQDV3lyfIPkdbk3E9XcIZ/M\nl7mbEr5Cls0eFpJP+YCwLDds7USzYMWL/boeZEoKbtKw9p7rbYfTEHf9sKwl\n9FHdG/dyXu3FSbX9OmxfC31neoPEtzMFgWVVY2c1C/Ul+KRRyspjl0dyWVOE\nIMSn\r\n=2RcV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsCLZlNHRVIaUUGdHUXwOE+reqV4tRNqMgg1KxGhi0zAIgZbz0NCdcqd1cX2T+ACA1B87yod3rYZ7xnvce+lijzXg="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603926030124_1603926043518_0.3690779642616615"},"_hasShrinkwrap":false},"1.5.0-next.1603926163258":{"name":"playwright","version":"1.5.0-next.1603926163258","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-82.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->82.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603926163258","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-h+lf1U3ANq1moGj92Q963It9932KhwGqQqbXgU397glF0n72EP3hAI5gJj9wnmuV+9xB9NIJDQ1OgyPXrdRFUw==","shasum":"a01469718c9e8af1d93a9097d75f50fd528ed65f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603926163258.tgz","fileCount":170,"unpackedSize":18970134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmfihCRA9TVsSAnZWagAAGL4P/RohEJM+wXly1UW9AJmK\nEyoE6wHPBBQFbpZHRFmBF5fT8k3m/RHVJwiJWu+vLaY8+uXWfcly5lGah9C5\n1iSN8UkaETiBFOzG48M/9dVrnT05c0F4noNfOpYQWjvtkpTz6pY3madsVgmG\nK4EteH6h5Bz34EI41cc+hnpi2YsA1OJbG6+UOC3+hn290MKBytL9nLYLLCoS\n57GwhYClTSPl6LE/+G5wF3/UFDvawLwn+A1Tdcu53sLBwfOlKkzArhOINrUX\nDWXYgPKweJS/V8cBAT1rXxQXcoMVde1wiTtmkti/OYutSWz2qB5Lje3Db9UT\nlwe5mbzzfr3mtdHmZDXVHzX2sR0gTBt+Jmq3V/fXdbz7a4rgfELfCbHaTtrz\nAK3a4+Quz98X5iM+R1vBawSp1c60Q3hc8lzu6DVLMWw+7udBRFtaUUor+L/k\nAIianE8LegAbtIRfSZNhWt/SgWJ8beaerRo2uvuS38f75EFFh9AcB+nDnItN\nHMfci59AyNiCNpmc7yogQJKH27MAde2m+nW6ZQgOQ3foivxofAtHhbhgaM2H\nPTr4d6Oy8/+mFItzxKkQplgxgIaConSfUs51XGQN3soj11SEicSaDa6aiZzD\nP0GIclkb+6dGEIVv3vJHvyrytlGCkyMeeB/+/f3xsm3VI94fBye0uf58AIoS\nt6Ro\r\n=V+dX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEYPrCVeg/5y8mQRJbb0jPCjhYVQeFr9NukDjxGRPLIAiEAyNULJTQgd4lmPIs/uTNNFRD//lbgALz0v+7n+KdnqT8="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603926163258_1603926176922_0.8765275398289316"},"_hasShrinkwrap":false},"1.5.0-next.1603998405942":{"name":"playwright","version":"1.5.0-next.1603998405942","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1603998405942","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-RyIhUMV7mBMrHtDMIelomN5MiKIhU4hruU66kzZECI5O+AEeI4SU/yOzvXizPSaBbXxvUQqkf8nNrllUZthmVg==","shasum":"dc0bb32e561c8d06524bf63f42e7b6c6775be158","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1603998405942.tgz","fileCount":170,"unpackedSize":18970132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmxLWCRA9TVsSAnZWagAA7ekQAKOJRyYYwrmVzycuETJn\nZZVC6A2Bl2Dys87/uasMaEVLUBsB/DFpfRsGIJWdlhS9bnEYjAaPUz/cQ34r\nXHX2B0sZQ8MTEKcpBYhYeVYp6pBOKrluZz5zEqINSqxHgR/zB7mNQ6VhKlIy\ndCD5ljUoj3U/Cvj1kjPTVeyDTTMM27h3lfDjSCQwAfGWWt7q4CE1Ua1eergB\n6ShpkaHfDRYp8llA+mM4KVyGHqejIPyfDkEl6r0GbBRwe53dYsU32DiWFqa4\nuP/UKd0TEFoIfAuoBG8C77+F2kJR+36tFYA6BBvePQxvUZfnSEIbYiaPDTEU\n/k4lLccCua2kVAKVQ3aCnnyIpF0JbczdVFXYahUxfxCCzFZqtw5pbKGouKck\nj3rpoYhMJIuzPoNI/NuI1sGd8YEbreee9ey1TYALGE4sHV5Kzuu0ofJ0e0GU\nVvp4uAQGDhojpFbSGOLZwUnu7NsJ6Nph44ydc63tfS27AT0VBG2jGgqMfNx3\nnvEX8FBES8VK19z5S85xpfWMoUGIhtvHC8a5RR6DuXazY69wdX63c2bU/k74\ne/D4mSwxEtj8WUS3MGyECrANB9e1+Xs05jGk/DBYx76EbgnE4/nn6JJASYAz\nkkXYyXUfvT2l4YCvWzWxYYGs0B54BKmYeH/fkxRWlcSMd2aBT4Kat9CkAWZU\nlPp/\r\n=wu0T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE+uRfXNZlCHFAKkt2lw0PUY/yYktvonneMSEzbDkCsQAiAt8ILvI8CLwFaA0ijIjLIrtRj2gV04UO5Q6e6QMrRAKA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1603998405942_1603998419595_0.7884934787686528"},"_hasShrinkwrap":false},"1.5.0-next.1604013309987":{"name":"playwright","version":"1.5.0-next.1604013309987","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1604013309987","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-veanaG+EZrGwDEE8oGh0IdqJA4lv9HYEB56gwY7318857esCMPWFGizB/Ep5Iba8pvPnUzL33kjIToO7n5jahg==","shasum":"5b555a55a6a3ec4dd15431661c588b0f151410c1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1604013309987.tgz","fileCount":170,"unpackedSize":18975855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfm00NCRA9TVsSAnZWagAAb+8P/2MTkICxYSI1krfu+klB\nNekJ8GW0p0CSJ+oaQ7djx+Gk4b3VSELbfA+3nhg3uqrW1LQtMq/aehlfecw1\nkl9oH8yzTEGyJXo9FIDcape0mcXAEjO+6N7ahBToknUVabZ2ywKGjk/HCtbq\nah158Ue37mlbS4RaCtaro2L1eJW7kEoD3/1IT8vYmgtfO8OO1Kldiu+m/Wrv\n5RRT7eZ6oYsxWa34BG00gA/cXbP9Yht5nkpKMV9cWWPF3+fXnJ76CLrnIdfx\n1YfJt6FXbhQ8L509j9GEL6jLhr7WAoJCSHHheE4S5J/gSvb1NrFpj55V/oQt\nSCZZEYF5U1N4SFszK8ejBny3cX+SKyjRChXdKPm2iqBDK/xaxF+U9TFETT5Q\nx6BQGfDIjmtLUBPulyQcth1YgMAm4AriOCoXjN5uDt9H3osy2IfWTJlPJHEk\nwoihKVQDAeT6qDl+xWSObhnvUf7INzldgEK6jbEaRNi7AzW3tLnJczgya8uQ\ne680ccwaeHObNnUkjLPHqFL+76jvZ6/wG28nG9ifMx7AFbnsWSCJKYIr7At0\nA/m50TWlKtPcD8xYFa27JpTlWuvo1UBEhOUppAbol3xej3BWgmK5KWOpDqXc\nWOWXtOlb6O7MFiNsRbtaJjJOQ8aSvYwEHDKUS9TOBwDWoDr4pBC5HD7G9Zmi\neX4F\r\n=ggux\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJnK2L7s5DvU/bPBLVYdSubDLiZWvqg2zWCbFNkwlSgAiAa6E3U+SvWbZmr4A8F+c8IEslYLC7WCuTR9zE5fWJ+bQ=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1604013309987_1604013324299_0.09565551096929004"},"_hasShrinkwrap":false},"1.5.0-next.1604014572633":{"name":"playwright","version":"1.5.0-next.1604014572633","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.5.0-next.1604014572633","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-esy6oefnBBajvljSdGeq+wcGVVbXEs1yX0zmtGsFVnZVaiIi/0jcDdAhi8Li1D9c7f+EZ4pCoGENyOh78KSkZg==","shasum":"bf15f5daa442ca0b3304967db79c93105cad3dd0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.5.0-next.1604014572633.tgz","fileCount":170,"unpackedSize":18975855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfm1H8CRA9TVsSAnZWagAAPbcP/AzLE4aKIfUUbiv6PFmB\n2oXJPQE7vU/qErcaMy3X4IwRNOowKWsWTT30o03apd/99Kf32LfI5Qu6maIh\nB/d/qNckqQN8Ct/A91/1GpommrBYRgXpF5qnNi8DXhZd8iadpeqhtydXO4d6\n8Ubncjo6MH5jhPm3Sf3Xkn3AomcSk384ogkNnxNFAw2c2c2r+OJjaPgdCS0L\nKHnnUBNxIUY3GAoAkU4VEBm2PxgSuYiapU7oFK2f/HL8Tr8rA/eMVawnQ695\nAkzGMHa+FRgmwTo+/QVV8lieiSk1cXW+Ki6OVErVTplgf32qhGD5lWSr+srQ\ngnyPvCtx3I2a4DJz5pvBqtbcgrGScaPuXjwda8nC1lFWEXDxQmgSupjNgLSU\ny06PWrxdGsNlTfZLxgbiCHpooHow8Gj7M44/Um3lL4FtjsajaMDdVcDapB4D\nx4SxkGbyof5EgOetvXqojE2ghaak7LfjF4t/AWMjlwkhjdiqIDrsVEuIwsRk\nUh5EJAvEBx4oW3XCXVZCOcKgz1YMQcpeUnGp6ebaOlARrdVn4867R57JrXMc\n1NFFT9wtJ+Lsanvxy9Fh3rgRrV61YQruqF3rKRgOMhyYwX7/gRxj8KwZTDqP\navciA1PC8+juAYSFj9gkHJooxM79nY+rjmi98fZMUxKjywr3vVAy3y5XMujA\n0j1U\r\n=INW2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkEJwvTIZwlT0qEO7sh/3Lnx+RzWBVMbY9GVmbS9+/uAiB7w7g3xMbQshWWQmxCKAa6sQQZfx2ozNF2f6iyg3VnMg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.5.0-next.1604014572633_1604014587845_0.009109783136168392"},"_hasShrinkwrap":false},"1.6.0-next.1604018890865":{"name":"playwright","version":"1.6.0-next.1604018890865","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604018890865","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-DvqWK8vUkzelVwn3ud3dCKuaD2v1At5mDzaT8CTFsdrCWKXzpZ1oCg8BtjDdjROSeHLPEQznxlHErv8ovqEwYg==","shasum":"25df88e7e6dd6d5676148590a823dac8db31c2c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604018890865.tgz","fileCount":170,"unpackedSize":18975855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfm2LaCRA9TVsSAnZWagAAPd8P/ArX4Lvu/8ptZmGZYido\nM/xeEVIi1jBOaW1EVI0IMfP0jvQPBCQPuW7ADVH+3UulLLYA2mMvelODpwae\ntxXZCuSweSJqLyjpbJatdSB4et6fgyPXmn+7dcQsU0z5q+ULqyePwZt2y55w\nU3zh9Gf+lv4whS/m3MIlGHcKYZHXDp4+YSN+Z5Tu5AEtyCnHZ1Ad2NtovEV4\n+MdyBsmiVy28JnRbRBaNJWbKbLR0eXu2wSbow5OaCNWmklDKrNS3ldUn6oHd\nSG3AveaY2ME00sB7LHcx2XgJvQbgpqSllbY970mIiR2tIGOiQPOSYEhfk201\nTkKVUHv3gTkVY5oFMWLZqBq/aDIZGFPNF4+pQIGvyQ/CI2BZQ5YxD0fz3C4U\nhUHfFtm15OJgWb6jz9eEzlr+Yi9R21/qMBmgetTClyAtBcbbDRSgiZ5xYM9t\nLRRMu9/CuopPPZdLzW/thxofO6ZAbVp7RI8yUFfQ7bHgAzFmpI/M76ZbFAj7\nDIjaw954X6V8dXL4H5StRujcMAORsOf6uap3HQjCj17v8dOD+YusVDyVNz5r\nBw02+N1sLkiRI9psMweHSVMWCTyic7XVNof09TgYN3DGPMGmSSgaQMN52eY4\nZcMKg6VlKcXodq/WPrWYjmyMAqFatXjftTX2gHNvFNfGNii3f0SKa9n2Dvdi\nYwNb\r\n=fk76\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRQ72ZqV4yrEcHRpp6GqkoM68luJWosNW8Cv6elgkHfwIhAJl3j0QE6foYwzrhaX+P5pxJcBV6Ech4qgndC82JF+Jq"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604018890865_1604018905327_0.5943796899798444"},"_hasShrinkwrap":false},"1.6.0-next.1604079389424":{"name":"playwright","version":"1.6.0-next.1604079389424","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604079389424","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xFDGuE5erJejnuvzi53ymltfQms9/3Z/HDV82Dimuz9vw7ZgdrPZ8Tw/KoFZ3kxXR1ukLANWZy+W4wOplXAGtA==","shasum":"5934c9cf6774f97576c8b0ceafdb7e4207e3b808","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604079389424.tgz","fileCount":170,"unpackedSize":18977268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnE8uCRA9TVsSAnZWagAA6cwQAIZs1GcfAdYis4trOiYF\nOVidnU6YbBr33Wh/kcZC44Bs0LdnYxGPLV994xCagqqD8LyYrFaY5klGYyfF\nRZANI9MUwPQe0QAE+9NS6V7GgwQhTLJg29nOKCR1rwLQpI6FB0dFt+KRMcFY\n1+d95DhHRfuR1PIeUOkS2+Rp3k3th73knsICqFtPekTvZDVQujMhp/CSp9jM\nfZkDoKGpFh4mKMtaRuA2Y0ZZ9WVK/XFyVUJwVkScxNfCMR0fh2v2a/eDp6T0\nNc5vHFlooffqf4IhjLQhxmQXAZYRK4M4EAT5gDu4QWDuoAo0cx9DlgAf92iE\nmGeCwfeNCN6Skwbl0Nbul/f+zPxl72gaCD/Hh4iaGBdyxklyE8zhOn36jFto\nmWGdbyFN3kpXONHpyJpe8CJLsxc03RO0r9Wao2053DVGW/yHEM5nyYgvP/SF\np7vbv/76l8KQyvoUn+k3taRV8OAxJYiUrqSxJvuQzgZC1uggEHt+tc2+B7Mj\nnUkYhmwem3hAfr5UkKuytRayt1bAPM5bRIexcT83T07qx23hXDwV3TjkzI2Z\naczqoRHrx8wzp+cKrsCTi0/W4irBChXyTe/PYAkKMj21KkKV4d+ttI2kxVzt\nyCyl520c1aOsH5WRd7FgMDPDOuWBIL/89aSUBcp9BvuC7AoGZRrA2d/TZkjn\nSEBi\r\n=c0TL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK+lBHEn9am0UfZ2sQ2PLsjz71wGtLEvGqSX0IHkPRngIhAK3YLwTr5vxoe/gn1SZn4X3zDcynCYeY6mEFzLNTfXxa"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604079389424_1604079405277_0.7491503008638012"},"_hasShrinkwrap":false},"1.6.0-next.1604087072812":{"name":"playwright","version":"1.6.0-next.1604087072812","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604087072812","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-M+Ju6T1A4abRWeVts82IbYw4QaSCCk/zjR5NoGT8GKVciQ7m2qCMQszan/HSWMX3xPre1p2td5R1htEilbOIMA==","shasum":"0a03829a71cd6d3d0a3d116d49f91fb6d1d823bb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604087072812.tgz","fileCount":170,"unpackedSize":18977268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnG0vCRA9TVsSAnZWagAATl8QAIKqO5coKmBr57SBmh55\n4n/L0Xs3DDr1oIhBiqOt3722wYvs3208Yf1/YFnUzvBcyA3ptFfZbl4Wvlw9\nEVR6cZb7qkUNSDT6SWlEh7k+0p+E22ymBplCq2VOoFMOOUky0ToRi5jhQm9k\n7lILxAjIse/mReLh2npg8bZ34NmuJGh5oceJ5v0czqH86VEzNnH7i8/MjMjM\nkHgT2FeL/qh5ur8BDS6a0ntXPmjlr7+ipPOii1L0MnQtiwv7s+SvyJd3fZiG\n2AoUl/QTsRxtlW24uWlxsq5EDTTjwoYxoO3TeOO9xD5qF5lR3sGSlZ8VPv1U\n1dLHB3zAmA5U9ckPHWTCIAj03ntD3H8FP82HfGU7AmRFBQ2d4xzoLmBqLt/y\n+4w6iy0INEyfKnbGWJOkhX9P05pE8rE2aZL7svTyq1ChRkYnrMwVZutVuSS5\nGazfV2DWZ5vxvy84s08KXAXFs8hZa8WB102T6HBf3+tJw/TqCJftWBiYDXwI\napTdSrt2c6JZ4dTzUzqKkXT0m0bDDMUukpjvEFI+0MQlBhhQdqhgHNTWbKSo\n7R5NSnq2J1HCOrj7his0aiRUnu0Fg4XBBMGl7cfe7aTqNWAhITAxZ0RUyEZi\noZ/nEFbIyPp7oN+xSoiWYITyuq1OvDI8HNP6+hoIiYAlgzgbcUZLUoa3GP7Z\nW5zz\r\n=iHSc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEaViYPspL1A1aqVU0olPEgw5nTj5gFaZ0S2zrsbzNW7AiEA65obD9GPmYGcJ0ipWiMhFhiqGSwSp9vRb11gVR9fDNE="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604087072812_1604087086662_0.6713669522667156"},"_hasShrinkwrap":false},"1.6.0-next.1604087279768":{"name":"playwright","version":"1.6.0-next.1604087279768","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604087279768","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-xOlOf2ctPr7mvp8LWWrfkR2/s44S1mHEk2TUTJ61dJ9wN0CtDUkl2XqqKNeBMWaIlPLVx653Fnlq3O2sUbPYGg==","shasum":"c6dd56cd4fcda0a501a4ea061084bb3c5888b7ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604087279768.tgz","fileCount":170,"unpackedSize":18977268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnG39CRA9TVsSAnZWagAAdxgP/jfa1N96LUdIp2DaMlA3\n18EJ8dkczLsEsO5F6kvxYB56QFv2FxLeg4jNaapRyb9ik4cIvcOP+8Wuizxv\ndXfoz6qaLWUHi4IsWvfZOuBfYMXfJA/ahDGwE5Pb/wIUkOVTtYEUPNwchdop\nN9FalDOiTBRy3g56fMgdr3x9icWlwProbSqcaLmkVTcZ/rVq1/xPUcXgnPKf\nhyXywdySBualsVa4XbRIRMIAhnCNjtwrvWnyzefwZRZdcpic0vlQ7ohjjKJ1\nGGchOyJU+pa3dmxexls7A9FvFLpSbNVqzTGsEK/6rE8nFjQnMHgNFEuIAW5d\nEIMjqrwIqrHD1fKn5uJKxD36/ghU3wgwriudQp2850Go9cTUAQoyl+NZorBH\nsyl21qO5O670m0qzwxDKCbLpeYXmsFu2Nt8XBNm0BliXJnkgmFefoaocuHfZ\nQtoR/Drs4DrEXiG2xIn9yCXNIwaWG1C9zHzGDJ4m2AzBtzsBw8mxL9pQED02\nHmjK9WNtybj6MbAk1jXj1MuBVfdLJ2c+kAqF4jakFDUN99OykoLkQ8dkm7tT\nRny1gGh3SwPYes+iy1YQBE+R3ZDOg+J6JuqClq+s2orb3weddxPBafrwuttk\nP5/ptk37U2O075CxhTJl+6xTgEHBQsoaO4GeaJeX/GgMYIz3c1hkcQypzb/A\n+GKT\r\n=T+rs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYaAiYSFFJSm4d/3I9ausPlqw2v8OnhW51BAmFMj+gmAiEA4D7AjAT3FxcrcxtYfPTzVMjmn2TXsouQVAQ2iwQj/9k="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604087279768_1604087293095_0.8769748587051269"},"_hasShrinkwrap":false},"1.6.0-next.1604090471094":{"name":"playwright","version":"1.6.0-next.1604090471094","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604090471094","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-hP44NHEAxkELsvTQpuKW9Jx99P3k2rn5gsZfc+qw41uVQJfsvsGJ62M3gczkxh7HfcFq6b+X5MEcjSoJH37GBA==","shasum":"73993a3d1e6e1ca8561b8af43d23256bcd4144c2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604090471094.tgz","fileCount":170,"unpackedSize":18977268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnHp2CRA9TVsSAnZWagAACe0P/01rn47yX3ffJAO4KT65\nwStpXUfaQcWbvnpBLh6IOuX2giPwsM6KBOkNcIfUoZby2xssRLVOy6Zr8oZb\nsCsz9z40bfIi7FBuCBpxLbq09r+dfOPu/0OnfLn4LfZW+PZvt4pXldj1oS3/\nXCq7cNmUzsh59oUhq3r5ADeWhHQtTrv7p0pB9NTPUlxseswJs5yTRljaKtCe\n9t5K0Fp3jD9nz/FC2aXj3PrY3HEm8N/4g+fDXvuWmGOxB8abOpEtk72OenJQ\nmbz33sTnVm4gC2x757KweDeDbDdfHcLBpzeX8RQnfjTZPA0RQ43YHVaJYTPV\n8edDXOiipBjoNHSlKg2ptPfrNK3+pd3+9GWwQVpO4ZXWPzQzxPDftb8/BibU\nzyDmW3z7RI4Lm9CDcA1c3NqNyOf9N52XcCkb+2IG76A0P6kEKObHHkMhAQoy\n+pvykqSEBIXRy8Ththpc248ysWBbFP1Jd0BoBnA3z48zk0cnNqYpRP6abwvM\nE4Dj1KZyLrluRof0zsQsFV4bLEO7Dg48uFH91eaD1WZxeEQ3T80OnjuomiW0\nlC3v1olSNSj2ApUTS90/YblPpSQYP5PCuACt0xfVVQfYkbPqHiuvRhu5XpNc\nCznj9FSfM9ykiQAXvQoJShzoJsjdWPsw1n7aDVae4zNJb0qE/Ag6+Wm6Wpqi\nMqwu\r\n=ieb5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDmgc9t+Z+fFIecbDEjfkNJxqMxntRVBwex+pnJXsjcNAiEApzst9s02BhuaPlQS5Fy0XJOUPhNi0iUDR0b83B53vpc="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604090471094_1604090485486_0.03336219821921871"},"_hasShrinkwrap":false},"1.6.0-next.1604094577517":{"name":"playwright","version":"1.6.0-next.1604094577517","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604094577517","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Y1xdBTXV9eiugsng5fnCG/tya5qA5NSY4T88FgJo6eV/Yn1yBDnupyipjeoAk4R6oSPhkHW0RUIu8Qq3k+2n6Q==","shasum":"df6a6c31b2fe8c4aa0141e47049d00bf3ceff88b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604094577517.tgz","fileCount":170,"unpackedSize":18977268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnIqFCRA9TVsSAnZWagAAPRcP/0XfSdISPx1Okj7BeDnS\n/yH8JMBOWM7qXZpOlxFaY/YIuru2WJm4YYOaE5R0w524u2SRbFTKKHgg/CwT\nfbdjGUb6wdjnUJs03AgKTIbX9L8SJDwLOF+GJqe3e9b2Pnl+Ju0ihNy4xCNl\nwh1KkEEP1REcSxyIkiyqvqQCT0/WcjRsSb0aeV0l3Ao9WLljOKKn+gGGMBH/\n3OFtmh1c/Kt6SRObO42FIIlshx6YJwVstDxidC9wgxL/KojMnuJPfhxtrELM\ndppUWN3zz1aqMzVX2dae4RC+mVhiDm4y3VaugRQOB+WTW+DTaK6MvTbbnZIb\nqQudF6x9CH/0cC6hHiIX0ApMbE74GexVoUA1theKFBXbUXHPnWIZA7n044Qe\n86OGe9F/eum9/++Dcq7eey3+TNsfI0i3KWHqUKr+degWHTPwYV1MCLOEbMI3\nH31cma/ZZSNksg57FQQOydIb1n5P9PN59IXUkwsT9DN8CoA0QuPQTK2t4h0E\njIyOoXQW2jNemE6gpAVkh9zpcTyTwSvuxjIJDDzUXNCb1slQ1ojCLWX36F3o\ndnqDqYwaOGtRuEzEl2nnHNcyALrCLcBL+c4Ey/bAZLX2d5nxdWqQbTY2gZh0\nGCv5J8t6KgoaFptLUpRWwSUhQfcOoyrUjE2i3aVcC2XZ5B4XArb+mLfOVN1/\nb55d\r\n=PHwC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDElaD72h8YhwWKzmF7d+e+eRNHr+GQMLvKHFLW6Im2egIgXQRYWowneWkURuJEExsXei3amGBJiRGtZsKeREkXMKo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604094577517_1604094591579_0.17788376436230924"},"_hasShrinkwrap":false},"1.6.0-next.1604099897983":{"name":"playwright","version":"1.6.0-next.1604099897983","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604099897983","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-VxcF1LBnMjAfGUlBr4ff9QKqoDtfUS2VrvIZwsmijChNFluz63m8uEQSKajzXlW+QHLzpQHb+AIl3uLVjCczRw==","shasum":"f9fd0b4c3b59f7ecd300c08ee5aa6195b9177d28","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604099897983.tgz","fileCount":170,"unpackedSize":18977268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnJ9KCRA9TVsSAnZWagAAsg0P/38FuPsv1JNkiVO/gsXR\nln3roqnGXEkkCDyBO1yQhzy9wKxaPZVHPnZMsyMiqAvpjSMsLgAss6V8SO0A\nW65ruPdi17BtIMl0KGlLqHgQNu5cjBpMnk8ofhVhEov4wq8aQSYFLyEkP9FL\nP8KpZKVhdWxCZDheCwFtzfOLyFhpC9lNgdKV4AXXKHbnirZfy13bFQ6MK7gF\ngyLbgE1Z3YkoSgt6BCD88q+0ViWcvCXJ9vXGVa0QQxHeSIvEiWZFps5cj1qR\nOodJS2ZdJ7yVDLPhoSL5motrEz48L9mnwcYDEXT3UwZlOc+sQ9yS1824+9ZP\nxyYwlnqbYeLcXkuZETXaKdhNafj4YY13rsQyvq/qXeCYwql1C37cqJoF/YPn\nHvOUpCPAgNQNMw1CUuWcGPvzkzDVRqF7U3KHHdG4qJBoo9YmLlHA+uArXdt/\nnvMDzf+g29e3qJByPmKGFeZXACOUCsKMads6gNWsV5Wnin8/jPoTrLHp7pPc\n82SPnBQ5fOg74DZq9A0cODn1wsw3xSqCXeKDK/eKvKiXYRjNvq7tZXihQK9k\nAygtWGHOfwd8bdp1KFHzhRJwzEunLxWUK7P4PotInTNyPEGUn65YF9Mm0Wnt\njs4WErHiYE0IYbbZAczalFpKb5jbgbt5f6GAlvyyDnuPq5FpUpLO0raI6sTT\nKd47\r\n=gHg2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzpg4MALqFsQOcVk97K4p4ivJMRC5zZC373BkHstDUGQIgOTAEs97tNOhvpJpCcMFUTX35cBo0MvcmB6WOeyYlY2U="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604099897983_1604099913882_0.6281999403122362"},"_hasShrinkwrap":false},"1.6.0-next.1604345898278":{"name":"playwright","version":"1.6.0-next.1604345898278","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604345898278","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wbM0BUmeHfx/JAVJFgFXApDFiGerl85ctEd82JmGSoGeTiRHcN0v3+C6hMdVVuJ5C1yYF2wEKp+PEgSpkGw5xQ==","shasum":"ce8f3ff14d721a29521cbbeca0bb1677046ffe6e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604345898278.tgz","fileCount":170,"unpackedSize":18977268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoGA4CRA9TVsSAnZWagAAz7YP/3brFaV++kh2+02xLnAj\nC4+qpYw11PgJfma2e/5Ht7UNR8LVnMma2Ai7iVWayJcqL5MW+kiOaAIqydse\nSnnQ30RleUzCn4++2vJl4w8kKdDcIDakC3Sz5/Zen5TLI2oBN5hX5VSaJlu/\nMVXRvq96SJyi4+4toY8frmED2wpW1YksQvuDcg/LPHRr/zDjF09Mg6be2yBo\nItqVgmMKBYko6uUMEqbQAJInZa8/Bl3eRO52MlVqlJOsBIBmT6XlRL07o+DB\nmbVFAAQI/xS5JRmVJ65Er6EUSkSl56df3icgqGCQk+zwZX9eS5MCR83W2KGG\nCV6b2ZXkAOTbYoYyR0VkbYh/faLBZBw4rxail7jUih8Av28LXojlh35xcOjh\n8976ZndD3m1Obn8HAg8NzyHr00HAzMj2G5ae3dQiS8sDmV9z5hYdzGmOUNKU\nMFR2+vFvdVvxx/OEmprt+mNBltfJ2KSIn3nNBfCQB91mJurzxL0GBoedjuZD\n4zwZHwBoxZk/F4laoFKU9lHch/MGq93xI/c/dJyqSNM8L+9VQBKYjqgCfamn\nScWM91H5ZWbmHmXstEDqOPbo26d0yAK7aIMi8VihKY1F3yaz2cZm7jRTwrDT\nwmTqBhYmMSsy1xEaIQgLW8fOJkdUvGlBbseFuuv5e8njUVhljbHxVOv8ZjZk\nTMyq\r\n=503M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDez0gLcQ6xlkl/6vJLHFAaSF0IsFBfrRrmDzsyD81/7AiBu8XCdWKB7fltzvWdcUOrgj5FxURtrfY/+USLqslym+g=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604345898278_1604345911809_0.2443175559794264"},"_hasShrinkwrap":false},"1.6.0-next.1604350213419":{"name":"playwright","version":"1.6.0-next.1604350213419","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604350213419","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-wOrbOr0c4qDUjjVs8DG3cg7XfeWG0cLnHMKn38tF7dAS6EwetYxriRr4hJqQki6A59TjH9xsrm8D8IdLUbHV/w==","shasum":"919188adb0959ef5606d2bd38b729c497b112b55","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604350213419.tgz","fileCount":170,"unpackedSize":18977302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoHEVCRA9TVsSAnZWagAAV8wQAJBHp7ZZOTDlcYQhKSmB\nq2fHlvOJuuKQZiZB2z+bkdLreUSgrZ6i7B9usLsLYMj4mp2RNrCJmsazbJhK\nOmZ2RZ/u2AM4ylSLthbyxUbVpNeW1MNg9vlYdW0uwEHpSQ+PApTgWo8H4JcW\n6/+7OdyI9D+pRuEflMg+L7vqz/leD/9Ip9iG5cRLZpFfmH1uOBUjl4RD0HWj\nJ2qgP/i9utxpyMRr5kx12ut+FY/qUWOvnaKam6i9ozg2qZgMpyumkAhC9rGL\nGbdReqyHuwwOyCdS4JA/vbGUL8q80muLmTpXz4FjjJ/l600fdXWU8brjJtyo\nHt/jEldA0huk8PDPfGJvGqwnWSsrzl0D8L7dkBko+lMOKs3eINBTq9MEiogs\ntRBguEWneFLpPh5tmPv5D1U22+tpLnwAT3l0sCjguTEjwSSZaGDOIqJbMcdi\nMm0/31Ac3UE8O/kpVWeKEhfJgJ0T5TRuxpRJeLj9D0zfoMfSXATsgGgRg2Ck\n79md4g9JcGqyZhsz5PY6oNCa9HtIcK218DO33QHMI9SqvS0YCMtF9lX7Bte4\n3dySjd/Tr8OwstXEp+YWzR6KXeS3cw5YdRZ9b2NmUtxxEvj8XGl96BbLWfjS\nIi6GKpAKRXnoxmoV7BSMBS7JVW5WAvj0hgCr4Jam86kz28hKwfSNvQdA9R6x\nxWwP\r\n=Q8rv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE8qcJEfTfMf/eBEylYGO3Vug8jbpjtJ9UlNuCiM0WmHAiBfAgm1OdPW3Z01qTNkYg7tgSd5rqUdxmBFqGPKAzRz5g=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604350213419_1604350228439_0.6398112095230912"},"_hasShrinkwrap":false},"1.6.0-next.1604350952367":{"name":"playwright","version":"1.6.0-next.1604350952367","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604350952367","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ytOZGU33h66Gu4xP29UvYOkxjGxgU+sFFRB3OLsTL1P9N0ov3kdl2GP6dMOZyCmtrtNvhizwGdDhFz18a0TERA==","shasum":"5e002940604ecd9a47922eedf3e5bb8d49bc04cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604350952367.tgz","fileCount":170,"unpackedSize":18977302,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoHP3CRA9TVsSAnZWagAAnYkP/jLaEEx9kIzZvMEociRO\n7HqF8zghnJfiLOmRV3s77gYjO7pXvIbpdbbmZetLdvjK8LT5feSjSwJ5r0Fv\npRXJfJEZEuPN9QaTWYi2F9f5VEUkrlSLnhny3bKP4SfVnKCB0VDnguUwxkl3\nTYtScn002AjQvud4JxPfGY+tLNoSIt1UAExdecx/vrJt6oRodQpVVpFtHu90\nIgrafCsiRcEB5EMkk/hu79p0ERHNnHqpuSFFCaaSLkcoNWnIc2NoZ7wV7K+V\nqsO/IY0oq5tRVNFlOovn9ro7IwR1tPbLUBMAtIxpoRyvJzbzJb5ng6JS0ZMC\nRh2lGuscrXUlT8NyB2Bivo0eLQvqI3LCV3sZq8WNK2NOYnMEIK8Wr6ui4DT3\nUpQJvCpQfOIvzfAjjGyzg/YF5YsdlYeCLRYlgsDN4Fy0vstgAtjas6hjOUHh\nX0L3Pv9UQq49hknL1VrwcPo2ZRZoPm5NflQO3UoTamYM+JCzRpDpLZR/awt0\nUzrj9AfCjE00kt8ZqzwCaWNV4AhuEV87Lj1fdy0mIemAfEdPRovOHakpEP2y\nDIadvRu0Ib+UiiC5yqIR9aQIe7rtOpkAsVRZin9WDyGixMPsVOeUhRhwL1OR\nhdLbcp7EzUmffMiZZhKpEteW6dJIItz6X0A4n0l1l3OGT2MKA9XHRE0nNQgp\nMuh9\r\n=Z6IK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCorUVaiTyYOh/2pzIi46FXWZouAvEUBVithJVNQBBsAiEA/mzowWV8gpWEKXITX2vwhdzPlnDIqqmZggryr/KlmKo="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604350952367_1604350966336_0.6563680016307916"},"_hasShrinkwrap":false},"1.6.0-next.1604351328220":{"name":"playwright","version":"1.6.0-next.1604351328220","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604351328220","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-CEbIEK4UBbXx8XbgPCjnGpvJNAt54IxdvD4o+EUB7qz3HUOouDmrQ/gzXyG5jZr0MlS3xl6PW1WIPreFj1e2jg==","shasum":"0fd000304c26a3c195d189fbbb6ba9e90a5e4972","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604351328220.tgz","fileCount":170,"unpackedSize":18977102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoHVuCRA9TVsSAnZWagAAKUUP/36Q6sSvnakaeH5B+NYb\nfl7w4RT/vO0JT9xTzOR8/ZJsoBY5iwGU9XDD5a19QD9cEcUXbeFPw9Fb4V83\nU9pNGBKi0NHBtOEjtT18kLFbxWlxMgSxcJRMd3S6LM+9MNRGjarLbQMy0Y1O\n1SZkk7hlNgJCvKCPRd/lmKhQhyQ3FMreMHm+6s637NU6gf1iTAlLazVlnNdm\nkBw7uA4IvYr4Pa0xD26Ttai/9j91Wwewcl7tJ/nsmBsV9rt1FgtcL2wO71h/\nrYh+KAKx+PrP/NEmBA04kscPbWQsW69k/J0ambv3lCDZS1fi4pvxzztp+trR\n/TqRPMUtzWl9f4dtAUo3eG0ve23ocuYeUXqhUouZZJL3MWOFMgfr4fUF9sHA\nxfkrE3xP48CF9GFLzgi7/kkLMpOI6wnNIV/r3vWcKleQL9LGlUXSxCq2h3ti\n48DIjVoARXJAQhUcMGExGiqhs94WRyhRQyVmhVGE5qPmpYxMliOLV1v+2XLT\nGx6tm6wYmNwxAPmyDFiPTV3XYZCW6XCjkdhE4GFIuSEHhIJZ8G7c3XHeNMMK\nl5s5w46RlZE7GTniI2lR4QRMVWeo4oDhqrV06V0nWsWklx/Vyq/XEWCZJSXW\n6iE17S10X0MOmVykCohiT+bRS4ZN91Ap8QwPjiCrMUDTprkYbhFeumo9XpUO\nvuK4\r\n=F+as\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfq/+OtkdTpyPsqHB9SLZ8uNedBnAYAkklEJc+8KCXZgIhAL2Kd2B+1BvJaHmHJ6om0izqVzehA1j8QlFdu+cD+bWT"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604351328220_1604351341389_0.8758464067641736"},"_hasShrinkwrap":false},"1.6.0-next.1604353250286":{"name":"playwright","version":"1.6.0-next.1604353250286","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604353250286","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-0s4keVAoiqCScH/AwSVwE/6ZkXKQoZjDRfQbpCYPMcXqcJEJ2izr26ltojVe/S6NWk6MCm4E+yaiCWDnm6yDuw==","shasum":"f080a3f13bd3d157415427b5d9148e18800ea483","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604353250286.tgz","fileCount":170,"unpackedSize":18976890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoHzyCRA9TVsSAnZWagAA+ZkP/AxSUgmvqKwFfrqtClvR\nSjmq3lwP2IOXviuOHJs0iyHoWU/xes6z1A3ma2kgixDGdRt4uJk7Dhyn664d\nQjFCFBNknPvtiMPXuCsWT2fMp+dz06ux/APorjjbki/DgZjjTHtGHHJ+io3l\nM9hqCE46TvDpsD1cImjB9Wihdv/7lVfPcOO2C2A+3BQ9znO2YnRB/87uD+nN\n62MlnBO+l72dzsSii0xEUe5zad306dEYT399dMxcSQH4anU3Ka0JHQmAaLjk\nsQIj5vKijQ2c8sVxAEF82ZCiGf+gY+pNx1dM+j1LO086BAAyaXcXuhsXGvJk\nfZTqN399EQIqQQp043Rtsgl2KUUvvAQVNZt1LkzdmDDPbvLb2J7YkdGi9Hwb\nKoWbzh548RtVx9gAZparK4Fvt+BaTvWQmRtHckpVox039StAL5ZLtvLfqfnJ\nIQ1O1yncPokCYyaSqQEhNl/tJ4vaQLxLO0anv6cxnBvgGU3r4dI8karrbnc8\ne7dbWW5HAA9BUd6bJr4jwm9niCrxMFIRSlmNiW4w+nxVxT9k7ijxzcf+zGlR\nZwe4WzuOJKJT5MkrmUWXWkp1qjn8eQjiXrvIEaC+qGgbh1JS5NqLGBNeIsrw\nKECe0aMKHWaE+q4c7cI5fMyoJpW0zeT8NkSXkaaGr47dmD3P99ZWt/JWCmGP\nP5nz\r\n=UPMS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDaMRmFeox1G7miPpJ613kKVo+vZJb1jjhw7LEPoynOrAiBLVLc1l4zNR1/BuUr5QJPV86pF6jwhL2y2jaU21apdaw=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604353250286_1604353265375_0.7798682859532258"},"_hasShrinkwrap":false},"1.6.0-next.1604355180033":{"name":"playwright","version":"1.6.0-next.1604355180033","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4287.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4287.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604355180033","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ibfpQ5+t4JeX5IWJ/JqSs8/q5D6y32hINDgafXkJSVYyxZkszcl7IGxlxFDQsZytw6GH7Kxp41CBXqkUnHlK2Q==","shasum":"ac78854dec44620420b73511acb8080e1edca829","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604355180033.tgz","fileCount":170,"unpackedSize":18980883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoIR7CRA9TVsSAnZWagAADO8QAKFDUfjNjrSeHzfEMpsr\nEcZl3acOGU1YCkCZfEXhYycO5DncwSn47JIn0G8nhZF8wIJ+wj76qeHpnT5n\nyspjaP/TAw7lW9pP3u9PKbnWfo+7CjBzzS3jr0UeaoYOGi52YY+Ad1FjfhqZ\nUs0PjuxXFsXOH18Nogo7rzmnSBqC86mZnSstAfoxZK6Ho+Cvx6FX7raR8N+x\n98EMiNAROEGg3z7Ml/y/mJBSUVK+Zhpuuva+gHwCqDboPznvFXsatkAx8LG9\nfIw8jTdezWqG2A2OcI+FS8bHSqfOUQrZgz4SyppVDLOd4OiJUa+wS7kKRGyu\nsGX+EsdfB1nWcwZCJi2ztFi/rQ6DNeHuiQgOYHcJ6KGshLaLGRJ6F24hiR+p\nFdTdlQ+6Eaw6MndifCPkbz62J1GzMqc3I8XWWJm1wOuqZopmUKJ3lfQcfEIP\niNNcd9VZRITSy9+TFEaaUDVcZGEGTtXaGv6qZTkxF8Q141w6iwRjNQX7A2qp\nFz+DXJCVPWd5nQzy0szvkmiAz2W1hXr+dOtzoblQNl6AKE0r0C4smEiotoE7\nfQvapPmesdgah7jltk2fsgULPIowIx3M37KNvvg2qAOiHqxPxczU+4cB+MxV\neRw/acYOmge064XmHbtMEYJTvcZeIV/Z5A57cctzh3q+1+eukqZUls6YiGOw\nVWDb\r\n=jkyt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICQqBgOAG2+ii/yr7gKrFt7RYv5JYl0n1LYqazzdY6SKAiB7VT6LooqBJQZaYjvVo6galxGgqeTOW7CWkmEhEhT11w=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604355180033_1604355194920_0.8452310325394821"},"_hasShrinkwrap":false},"1.6.0-next.1604356576502":{"name":"playwright","version":"1.6.0-next.1604356576502","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604356576502","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-u0/N2yK9ute1klgImp7lzcheacDoNN4TcT2dDPuWMxSp6RzVbdhWZQJDgp6whmrdujhUfOD94CD21SnYPuE2xw==","shasum":"c1cba3ed8e991099a3ce0527bbbec8c9c6084962","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604356576502.tgz","fileCount":170,"unpackedSize":18987548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoInuCRA9TVsSAnZWagAAZEMP/RUHz/YQlAujle6FvrOI\newZ1Xh9YgnD9PHuOFJNgiiIz72rfSadX3+/t0C3HpGbnKq4HUyx98g62aA/W\ncnKYBOug0SLMHAwvqpHjpYA4F1nzibylpiqNuYXAcv2zswjfrSKJJ+tF1xCK\nirkevyZVZGFx0H8IyVsywSd/mwRHilfGtOfT0/EdP23rrAqtrvwQd3RrDwo8\nDYspVClm+KnnkWQOW8uDH+V+nTHDHo/yA/Bdx/uBqSfNrOdjBCZJPjufmCZ6\nzTtCJJUmqcskD3tmVmV3vBlTfUIOxICEE4Mb7cHmFFVvfik6OdRPhMq1vkL4\nQKEuQDcNF6KLywmcDfUXoNN7AuqXbe4l/sLH/ggmvk8P9KYAh7NYVwAKKXyL\niPFhFjYpH3HDHgMIKNX7+/NQ+jkLYzUVKRM8CyZtJvk06XPq//84e/5+b9KX\ng009dgMmDj5eefLQ42ut/50LFLQdpxjeuf2ZnHJvEShbg5/hQ4GMwg9N/L/Q\nvrwycHxy0DIJmThCuh+09NJqggZLs4gj0sjT5VB/HreZurBxSdadL6fKTHWa\nSTU6bT946GcLRhEKn8HtmdLzXMv/gHN2cpos/0cDXziP2D5jltZyLUn5V4AR\n4mKhdrmGz8thC9vjEWuFPDoQSiHV+PfxzvY6s3Z1K+fmdjZ7jiqOSKjeGSUb\nUBJM\r\n=HlLi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4C1m811SDWnGcH/FtESOCFYKowZm876mmRwKxU2mZ/AIgQm3ScpcpxMTFf+JgUU4X2BnTM90Eb5Oam13Na4dYYmY="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604356576502_1604356589634_0.1603526042100556"},"_hasShrinkwrap":false},"1.6.0-next.1604363004235":{"name":"playwright","version":"1.6.0-next.1604363004235","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604363004235","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-QrqpD1lyQ21mGYVsgHKo5iLFRL6hzxq6a33ZjQl8wQDxQx3rQS2yfY3uPhLpJhl+dZnZZBW6C/pDypUeLQw3rw==","shasum":"50274c5398570c46085999fc1f910fd14ea5f2f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604363004235.tgz","fileCount":170,"unpackedSize":18987548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoKMJCRA9TVsSAnZWagAAphIP/1V1q7SrwbYs22ZJlFrs\ny7lkXTOxu57Cs00A5vKZjpx98BPUfyk0iaZJa3gj53lVbv0FwfS8s6qXmcgj\neJR2AMQGF+Y3ZnSidcGBHolyjyRS+dlCvs46r2llu/B6D94womp9vrguUzjH\nRzD0a8vjdV2L3J1x3a7pjbPLWC7zSpBSPbAMZ4qJ4FIK3lYx6QJxf/GIYikH\nRLaW0pReSvEHgd4MaRNLTEwjmkogYKrouoacP0Itf2YkNXmOXPM4ogvbEw69\nCeQGkT7liGOUzygKxfOdAhk41XWlhgX6Csk9XwhgllYlLs9iO8fgLHeo1y32\npQT27t1br85fAV/J6+WCeX5WNkNQdU4S1P2vtpyf5jg524jz6+zSjMxCZe7n\nMyOt12rxNQVLQdESAznjvovitNzwFd+g1Ad2w27osWyyk2u02ghGiHIdUFOJ\n9mksFFaaro3Qh80O7uUZ2U3jpk56s5h3iDg5rJ/nTeKMnbTYvjJ+zZE7fYZD\nVI8P3Bo6MaIm9LfToLSXNNu8YZvVRuGXZIn9snkkFAxcf3vlGgp7CfvC3MJx\nw3LCskvPpvL+Tl/qzxfpSgTNVuOvB3B4ASWjYVqrAFFCVnH39xpImEhf5fo2\nR8Rge8A6j0eXJ0Suq+FNcT5oWgsLAZqOHmtLRusyix/pNRfYDjFEImEecMBB\n57V4\r\n=FPx0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYQTZKJ+I/9zTt4Bb044vqGNJnZ1qdJeJkdJOqrEIX7AiEA529eAGUzDMjI9I9aEliFB/WgEQv7MmaeqTivXBqh7H0="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604363004235_1604363015939_0.02055518038547799"},"_hasShrinkwrap":false},"1.6.0-next.1604367121136":{"name":"playwright","version":"1.6.0-next.1604367121136","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604367121136","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-RIf00RHbOwg3202hdRW3X+47KYEcXwXDbF1R66UTOoo/y4OiqwJ5ln4JMGO6DtEpPFMECCQkHkdzMaHYnDCBGQ==","shasum":"b18d2be9e2a6048b3d8223e9e192b584abf42dd4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604367121136.tgz","fileCount":170,"unpackedSize":18987548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoLMgCRA9TVsSAnZWagAARbUP/3Mjz9aC+SgTX0mcDqQB\nA/M7NhiIl/RWu0Qn4gqdypTvaeI1pOpwxXXv8e/Lw9lFSRrsjgRUa7wST3us\nzv13ggVjHMCPvUQM09OATDNz51/QCvgPpsnOGKFG7qZGB3BKNCp+c7xWKoab\nxG3jihPi8bAy/sspnG2RQh8SjeIxDeNvVGZfXlBXxF0JrD+lyKffpHgvinLR\npcT5rKY2d7EiQIN16G9LwtR3KY/VbqTxIEHmNTJGpVPB6O5+3nIEtr3NxY9Q\n1yPcuIPfv8eBZNy9bWWKb6/cMhSxTHrJRfjclohM8I9GNt9PdRsRm/fL5LLv\nRlr3qEPOv33S+lyzFyYgQefgjQPaCcndar0bWHihmRbZg/2mB3q2fSnyzzZn\nM8nZmfXap4YL6libacUJM8tpVEugIOvk3LVmXCuq6WMrkIKSWDUWw42VqX9y\nVwV5R5ouK4YMF+X5yl8wwmQ9/5zHrQ/5twp/XdhebDLQK9nWm59ORO4p4z3+\nlSXNfygFl917R0zm4C7zT5LqHXbwJ/n9N13E0mPM0DLc3M4J5SyqSddS+b+f\nW3fQ12mbhEkBOjyjlxq5XVk4J0vY9TVxMbKw++b3KengD5Z5sXEwToVFv6+k\n0tVe4Gjd//3Nz+cFv3uAxLta921NJfCAUQrpMws/NnO7Xo8Avn+k43r6gi7P\nAWhZ\r\n=cwhl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7Kn+g7EGPUu+GM0OFP+kbRssYPZN38ACX7ur/d2F/dwIgVWORouGw8YSyfJ8k8xUs4VBwFGiyhZxnHWD1zWBVT0g="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604367121136_1604367135641_0.7281265731427016"},"_hasShrinkwrap":false},"1.6.0-next.1604370589377":{"name":"playwright","version":"1.6.0-next.1604370589377","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604370589377","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-2algc9sFIse22EjYyyDmPtU8qFKupDJNLyNdl0jIXZ9A6USANtW61iMm2nvT4FGO7MCt03Ge27ukaxNzfhR8BQ==","shasum":"f54922e688b3356374352b2a48d63b9bbe6d32b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604370589377.tgz","fileCount":170,"unpackedSize":18987548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoMCrCRA9TVsSAnZWagAAtEUQAIhpPUNVQgggQdBJ3Kr+\nz2rNA9zEKClniQuBI+VBTiq1Wn8gw+6yM6fq/bZdKARuqnmU3P5zXcnF5krQ\nX5uxQ5tDqG6CmI1DrZcvnHv+qFXdXkSVm+G7g+Rv5LGYeFdG3sW0aCQvSiKt\nab4Vyp/ZxmEL1ECz9gHdCEkS7iPbhmidXpLCHqUzpKc4k0cTHrd+5ZYzW1yg\nDUFa6dOyM9GBTlm6LT+DuMIVGR7P+GIso8YMefeFpEpo1weR7tiYYMWyGqK3\n8Kj/9b1hVwUlA4cjcX35Z1F999AAUuKRNPGG07zKWrNeSIuvpP0iesWBc2Lw\n422UPefYbxxiDZgdIV2BIgVeZOCeQL1GAcO32l1rwHgmMjZJxLRHhoUcsFwu\nW3b4kbXyxaymrpYhK5+fp/eAqFulaNyZd2r0CojHzx1wws7mDKwCW+JWRQCI\nuyKzoNw/xP6CffktW31Fee0fCUMErm0pFoaAXXQyN8Z4AccK5iybcW335xVA\nKV48ZYduwKRoN2ek5LWNmYEGLrekK3Ce7Rgh6pl4+5cNHMXfFgTqfoKvmHmA\neUfhKkXGtHP4syDk0nhFZSmLiv1Wb7MYUumTj+m21pevIuE8nZa/PQezzGyH\nXlQU9xXbTN64XiIv7ZaybBWboAyzaMN1mZVs9z+xtD9nurjdWI6Wu527sopd\nXovw\r\n=7P1G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFqQay18WJaCoYb4MjuOqnI+cmhasoVUeOpb/c8EUG8AIhAMDaxlc5v2VY1n4KX4chR5KU/N60yEV4VFHOY5VYtdXK"}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604370589377_1604370602283_0.9616064032505567"},"_hasShrinkwrap":false},"1.6.0-next.1604370816246":{"name":"playwright","version":"1.6.0-next.1604370816246","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604370816246","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-KuUKmwoQo1DhQ062/aThIYLuRlfZp4yOLHjR4oHAJITpl0fvDCvsA0zitl7xKEdYo52mHeoM7orJmciZs5QDDg==","shasum":"882a6df1208d9c70191e04001795cc079bbebb3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604370816246.tgz","fileCount":170,"unpackedSize":18961170,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoMGRCRA9TVsSAnZWagAA1vMP/1pquIC0iWnABxY/yp0I\nwWoaH4Sp6M/Op013dP3dRxQoJeUwCTX0tYjBQOyqwi/s4yCtcAUgXlkUfQo+\nV8slY1VjSH0pJZxXPf22tVcBKAgSUd/KqcIFZ8odm3nSp2v/0+fLrNyxHXZ1\nw2gQKbKpN+rNRzODCv0C1HcuoZznGwS3fZu+szrmYMQICGgJsnkEA6Dmf3Ub\n3Fbir0GAoJrqqSXRB9ob9Xus4LFzspzkYGRiI8iaZZoocxEffD90jHGDZvbg\ntDwj+OFd+AN9uiSNd59YRvsuhtmOScic2jlba2G9jzrPwnxCgTPvjfu8DS60\nAJjZlBcxK4OkPaCnLsyPF/deLvjAuj5KTddAKezPIUlAtGHhu01HuxktC44r\nAHX+FEx87PISKcsabfdOaXdu9CW3alnW8eIQ3nkJ2VkyXOS1BayrIw8emNAw\nZdQsOH8qthiyVuZPXg1MaZl9ZBVFvxPmtn/ed6IwKJnwsr0ijpPbSOBEDo3k\n28yjJYr+O6jd00dqI+q5lqlnSzUsqBOYs981dG7wnBIXsEWkAWd7gmhrI6/z\nvbs7sdtGjjqGxlnGgdFCUVJiCu9R3klfr93kh51IVDCtO3PNv5PRtq4t/OB5\nG7XGrJMKWFFUwLIl5HHtde6/2w0ZB9vpadR7mNUKazulI4zkuObPp4eq1cgl\nrJOr\r\n=gFjJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH60mliodA6N/5OWHdVlZ2/58smIb3JQTB1qZe1lxxJuAiB47yGUrkeIwripja3d3mhqrvDiZaABiBOJwvFvFcqSqA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604370816246_1604370832228_0.4982570950543417"},"_hasShrinkwrap":false},"1.6.0-next.1604375030788":{"name":"playwright","version":"1.6.0-next.1604375030788","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604375030788","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dDAN5zercsoNiBLGHAvemvbmbAuwDkDUrwXmPJEBO0yhV7IrJQK8+tR0EV0qkA00t5dQphgjc8hbG+sSoaQptA==","shasum":"211009353444264b4ea43934fee3abcb58c77e12","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604375030788.tgz","fileCount":170,"unpackedSize":18967681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoNIDCRA9TVsSAnZWagAA+nsP/iV6Hhb2LfWI3E4IO9Ts\nHUFPJRhaJ9gSrV4MtgF7pky30Ynn5yaZBMcImskKoEspW3UkgDfH4vgpCCVU\nbDQ14mcnixEbvMEfsmfpUhWzXbO+G8Lu410aCYFJ6xhds9vl7jmdQm4ASyQt\nkSuDWNagAPM62Hf4lv4ygMkdrytFd2plFM73J1IkyGWphNpfczOGwuL+2SkL\n1a4jjSV+1Uhr2d9c2qbjqDvN1gVKANpoHdJjRRCGElrN+lqMEazIrASkNcq3\nzraqzlHwXlJrSplKze2+L19kC5v0FWRyd5u/rau8QcQg6cVEFEAnbIAU1p6K\nlpAMg8tDUl6fXo4jU3mDaNmhULeX35e7889GFJbi5Ycf5mOX7pWIvaYf2lNc\n44jSwait5Cg8SLLQqtH1Zg6QcifRaeBDSlBoXsmG8BSc9BHwPaBY+wjME6DK\nABxYIn14GF64/+7+KozK1C28abnwEcXgc9kNxilM3u8x3Cmnx5Ja4xgEKnEL\nALvXuOhza1+qLfqth/fkzD1CckhxAdKz0TxftC3A7WvmEqCkgHjVSsc9ePO6\ndfF60gDVeDdTe1YJN41iKt6hf/Fs6gtWViCRZDGyvEs7idfDN2EBF/0pKXrj\np6cVQLorcPUotp/PUi0Ryf098ainY/T0T3oF1tI4pMDTTjAn292sE5/jnnp7\naYac\r\n=/WvN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFiSs8Zl60ICl5fPje6Um5d0qyERdFnque3vK6WsDPGjAiAqYxlVvJmDaIEhXCFxN+FeQQFXm6TICowsKMWlS3DKdg=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604375030788_1604375043060_0.10101521143891734"},"_hasShrinkwrap":false},"1.6.0-next.1604379778790":{"name":"playwright","version":"1.6.0-next.1604379778790","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604379778790","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-1GE+srRC99R7KKwNHJhisSlwxEauinUq6HDLBG3mCzcrXGWZkOgVlH3nKF4djFER47COkcd/mdJo/62oh9MAMA==","shasum":"2323fc7f94344eb336af850c1f714f76b498c5f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604379778790.tgz","fileCount":170,"unpackedSize":18967681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoOSRCRA9TVsSAnZWagAA7zkP/3Bl4GjWA5E70ovlu4sh\nR49AT5gMzVsu3sjrhDqY25+uI1aYfAipalz+M+UaG0jP8GU2m3AhWMdAZ+jZ\nyd52SeLByjCM4HGAKFvvupYgpMocM9Qo8dlhFDV3SQTCOXxmUH042RgF/ZGh\nAuHvAASs6ZLx/yq4Yc2zHtwYOlyiicBMTI/VgymMDAqt/cr77f1Evd6Mds9P\nNaugdKDVlRbtHpFDoQ2cNNodl9L5aTrCOPinre46vPLxVGJohPDzbBNGxnja\n5v15nlBt5yvWoREGR6yoA5PET5clUsdRHoYDadbSXGkLTfxSwy5xtkpBf1aa\nQO5PZ8hGs4DMTw+2BFY8zXMkSit6sVDH9OmPpP1o1xUsYQxh1zPQzbDoQm9v\nbNyJ6XF2UeFGT6vZSnuXOK6PJGuJwIycl/o9KMh4mx/slN717FXqcOc9qtXD\nZiVjJybZ2XFyNiBPaZQMCtUIJ7B8g8/Y3rGwB6xFYFtAw+CxhJ5zUeqRUZvL\ndhMO9HMUvr3rK26ipeGzpG5nCeMOogEiRPZuYiUgN1gYVx30RmCL5j7BPgNS\nynUaTNb8pzWioC5eBtiPkjSl9bVksOggiVO4hPt7gqT7SlwtFYC8qaCkpjH1\nW9CnWmgppsX9CUrlTMx7FllryrXYQZfkVPxAFi7hyXsKxWi9OReZPIZRtPXZ\n0uy8\r\n=2IdZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDg/tfHtA/Z7zIWxRmW30TmBf2teTWjgA16e/gitaSwgAiAYKFc0RHHcmu6MPFWoiTXiiw5pDbQnNV3osdxpLmUqHA=="}]},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604379778790_1604379792424_0.6168326111113196"},"_hasShrinkwrap":false},"1.6.0-next.1604407132436":{"name":"playwright","version":"1.6.0-next.1604407132436","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604407132436","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-FM7vqY7Bp0oZzEB+0KtJrYbLT4K9PqN8AO4woJRmZeKx+yEN581Ox074SoUCXtibhfFgTXhayM5oUz9lnu2mDQ==","shasum":"d272fc646ec9d28f6b60e5cd6b5e2ecadf6ee18f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604407132436.tgz","fileCount":170,"unpackedSize":18967725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoU9pCRA9TVsSAnZWagAAgCQQAIbSvYxM5vcsD24wIV6E\nakuXLZdbCwYu/4idBN4l6kKOZnHAHeyq69nOiKGDpBhuyicJKxvoKiISDXKO\nqzoZBgwb9wJdbPxQgNKCG5ymoCKN7PFzgtOgdf9uVtXzWjXSEZYmZnkdtEHA\n33dvnv23tQtDVvL1rLcQl26ZNYTF2AgQ9M88IcnoZGFoWzxr1JX9SfJWmZBO\nT+xvUF1el7+bT0akHB+sePGvpr615mo/ib/jL8rZHXyQHFdpBuCB7e1uH5Eg\nyAGQbueqFq21E9R+LXXGy9Y0WHoKp1cVGUq5rfKwPxJUAo+xpT4p+Hkz/cLW\nRSAd8jcJs7bm7ooogcAU/PDRjrB25jwjxmGHfClY2y6dRWvo2yg90I/3ZHxG\nz+jDZG9sg7C0y1K2c+9G9RF3Npm7D1GrjuJbcEmCFL4x8D6PZU3tjSdtCoVy\nLlAsU0cIwtro0Gk1qi+s+EcPVDcLIyReOJ8UypomvU6I9yRlio1JA2duPcH4\nK56IG0Lxeqzao26P9XTLEtvYnyx8U3xFwwr+orKNZbDfMiwHDgfDfnLmCOd9\nSPLEI7xBrW0Od6aFjuoOfE4y7mhjGAjvhedx2bkjzVU2GSEbTcQ5tRhu8DSM\nNiyEchx6P3jZfcbVYNrvBOtxVLVcPFrDepYXIAozboPBNhP2oykBjNmdVDH0\nNEzE\r\n=gtyo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/CHMYoiQ8mRatoO3O2avE17PSa4aaJbVhq8n+dUTnUAIhAJYnBXVh84ZhvzZEAARCcXi1p7dWuMp8MSRhAFtQTEtF"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604407132436_1604407144957_0.5642005295716299"},"_hasShrinkwrap":false},"1.6.0-next.1604431974611":{"name":"playwright","version":"1.6.0-next.1604431974611","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604431974611","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-374gYN3oTIfP3/aovgyanBSNj12JVc0iYITTAUICJJ3g8wR9zjjnJ8OuwrHhnYeyU32ZCtB/d0gpYSug8Fd05w==","shasum":"6d455fe8e07f26cda152f5fc7fd2c5529c3f732d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604431974611.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfobB1CRA9TVsSAnZWagAAnp4QAIQ/7Y6igEGqFvGEYYNg\no7X7oV7ifRvgSqKPVFFaNTU1kFnYLkcmD24Mbmgtvex+Y1FUgClWf/+2TYgL\nVRtwtFAbISJLFx+bUIbtSLGfoxABlULNBCbkFQ0w+blsie77RrxHJvvAXrbC\nY3/5yh8bxhBLk5DbXrJMhRJhKd2HbsQ8BMwMOOanEzaDgcgyXQRWRRXQz650\nqChYRBwZG3kCWW0jXlZO8PkbOiDP7PYb/d5ZIG98dCBKBE9FEjiwOtliSdmO\nrqb0H+8A88IuN3tQvA/lkIWmFe+EvvWWGmzDR7VlzHV4do3Pv9Q13own71ZL\ncHUU4bbEvYRFhXHUwyXdfx4Za2ujfEKVNLHRxAfV7rMUmTGIt8ODnHz4DKwX\n2/UwWE9M29QYYDKBwaf1OSXfc/pyVmePPNIYyqDFCFuBpsmyjnRRNql8iuTA\nt5h1OdCZpogWh5VknwdZ8djk8ZuaRJcjEiVTis/S8ImNVa3e4cZTltf8aBP+\nKYw8Cvcex+6gnInlUQV8EEsspRkr7Kn+V1z5MxglzP+jyqoXn+UEK2Vovede\no9BDjCsgmc3iX5U0oD/MLMwXSKOHjdVCNlQZQqdo9qcs1K4uwlb3u+m23f74\nSD3TZNCwiLVdpbsVbSlfH181n9ew3e7ObEoxHK2zNuWaMiBu9S/IkiqbvyVq\nMo+d\r\n=gOJn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlP0n58FpbseaAquvUkKVXNquyYslUFvoALHD7Kyq4FAIhALUzDkYa3j3yMQfKOfOkQ0teOzY5DRhhEafYjBUK3Epv"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604431974611_1604431988507_0.6910745802049412"},"_hasShrinkwrap":false},"1.6.0-next.1604438335710":{"name":"playwright","version":"1.6.0-next.1604438335710","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604438335710","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vtKUb4xJCSMszcw92au7jHFIXa7cHJVhLL6s45HAlCdyJ7vmMFEG8AAtDdKs1HsMvMbzK4834yFBZYXziGRM1A==","shasum":"dbba4b237bfb45a44fa5a0bc2ced8790e19a6408","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604438335710.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoclOCRA9TVsSAnZWagAAtKAP/2p+CFrij/ZNp+rJVL4I\nUlJjbFho15d7MYpw3qACHP0k2K6lI/wvmT26f/m1+Ofs/+7SBXP/ASDL4Xx6\n0i7at5oID31sJ/FWlswTfEBXf9ZxJl4uOZFxhXKOPxRAuYxENZDGKrMCPRcL\nROrIWj1dlexH+2Vwy4Rgp40mhsN6ChcKfDEpHNs5cw9Uy6OcDkfthLHSQLFO\nezV6kxwvuqo5wUSJolJmtR90d5f5G6ZzAUCDMQl270lYjw7jLbubjjktAPws\nKPPjzjJ96ylClfGNVOo1fL8dcK1C404dbRyGwXwf+cJ2n2vPRyDOWCFhYJzo\nPSYqOJVO8+FZZ4BVRLdhhWCLagh3qSing7DO5WQMgL8XU2FWP/0leGswINIF\naRAxt9WariiT3yAt3XS/woZ6IA9NyA6k+0dI0EVOEchgKf6wPcVKXAXmwS/9\nfNiDWf0atvdLX12DeKryYZ88WjBfAEmAnzSkreASmQLbgIr4MaR1cZbGimNT\nZozCv6rvLM66QDvd9vw9wOswEmzR+vWNMQiGjhOX8od6p18iTrfilNSCvr0g\ndAkKhWN2bbRzUKjj6DLl7ouJIkb8jU9yM3geyZJNwJ2lOoJKa3laxs4PZOi9\n2RZZp9JDb19xbp93lbIs+V0/FlcLW9/8q3YNaLiYKtyXh8DtV0EwATA1X4Tj\nFqpS\r\n=XkVs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5WgXEkxMUs53c/V0nMT2DEXgmojbscbY+IjEpyOOdEwIgJRjKNulpT5U/GJ5fnS5qgwtX/90wXCDZS4LeUlmwl/Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604438335710_1604438349593_0.35352740708009"},"_hasShrinkwrap":false},"1.6.0-next.1604442905543":{"name":"playwright","version":"1.6.0-next.1604442905543","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604442905543","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-W+UI7wABDFqPLCyFvHpXeVySvN+XI7p8BNbuSmwvp8RuH8OOr786VyBJDYhrF5LPsIXHAibPKKDMUo+h5fC9+g==","shasum":"f37f5e234b606d2f54622208d3d9ffbd6f3c64f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604442905543.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfodsoCRA9TVsSAnZWagAAcEIP/R/PrpgcZzJM/u+NU99U\naQqSolEGpLTj5laCqmtQqnFyeimHDZVpxqTRSkSU3EKMXlrijCEiQPcuEQk2\nDczI3Ns+FarTqVNTPtZjOEnJyAwwesUmbTsceqSg9aPuQSZX4hOsyYgZcKXk\nicIsQUL2YtWY/zbdecdtaYro71z9AHflwIFHNzj2V6OIBdJ0l/j6/Jv9Zh5c\n30vmRN0+uMUihw75Izv8eMC1cqne+E5b6qJCmUW4n1L4G4NpaeQTyC1q2+jB\nTXXVnOk70ucd6KIBsMwkuTEeqthFp4nVDz0L5R8nGTjOYR8biY/q3C+xR9pN\nvudrODHvFJLK4RyNDNwzWacT31VDFGLKuED1u9yXD4YNAAQR18bGg5nPECUl\nnHHljAeRaZgOaFd8fQn+iwdniARNLZcR3J2fC39wnEOrIN8xV+h2O8ozIEjB\nQGAyTVm8epTyggSPdgcot08PIMkzKPR0zGluq1kLK0eYV8TlfOBmJhuqjpOr\nET37VaEXQuvrjZ1ZRk5DEHEVBIV+BuRjfkv3bCmoWmAijJqN/y0c1W3Khe0X\nB+Y0V00Z1uhZjTeSl12Cj65O0XEGXEg6w7VY/M1FIX49vJzFt0a9+XNpaRJM\nOXeUXzHLL9egVjnic2WKV9dInvUnLHVRnYklzlegS12iQP5tmYznh3Ih1SQP\ngDwe\r\n=fEjh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8NsIH5I57ImDE6nof7uyUylJpl8MUyuGBnDcEt2pKjAIhAN28nNEdUNEATwW0qmAaDVbJNiO2knYdO4svQtn1x3At"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604442905543_1604442919645_0.5406380803487745"},"_hasShrinkwrap":false},"1.6.0-next.1604444008055":{"name":"playwright","version":"1.6.0-next.1604444008055","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604444008055","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-WsVK+SFfHXxFU//nXcMi+C+sYCjrkArykl/VA+YHL4ogTnqJx41IPNrsLoz58GwxQUsgV3vWEsn+uThcTHBxdA==","shasum":"4af7ee1cae7e30b5169a989a3add65c96a5fcacd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604444008055.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfod92CRA9TVsSAnZWagAAF6EP/19fOG5uy6F9YULH7u5+\n/bHWqTXchdoOQkKbA247sq6rw5Y+0KiwBETJuaL0xrXlf1y5Dto9Zwd6+C+m\nyh8Wd6nuperRTd7wKQu5gP/1Y9e7JdTYLaX4sbRiCUSR3PFUYQKZH+9JWm/5\nFyzaTE5tQb3LiRz64i89voi03SgUy0LkiahUF+PDQoozBOpNBo2zkYPCg56L\n/GuTkQY6n762ZubR8MTGuq2SrIEXrmsX29HIGjmZXUI3LJ6XUECxQWY50l2f\njtt/OEN0e9Ecp4fV6IjO9fxqj9yGqRGgAgDXe2QUfg9vmr8YdDc8Fk9xA6sH\nhWN5lUTLlHgzvVoW/qPUBAWqs6S+Xhpt0CxwhQMTqcL8JKT4AKtQAcT50cw1\nVRwSBsAuvVET1b0kwX5DMXzXqCBSL3Vp3rymr2gF4eDssO4u2FX23B+pj5p2\nEJDGNyPsy/QV6bIihVPxuimr2L08pMdnazJXT+obp+pxVV6MBdo/funX7/Jg\nVOIR7AG9L7U5ExyOBdjXeFoV6OZCnkNn7lldjUVV+6auX/5DNkJ71ahSsw5m\nhOUlTXIHvwq+2ThwN2bjADApEmjDls6i6fUqRUU/tvtmlLcYx2h8zJhyquHM\nos2V/ZsULd1Vm8PRDDXecnuBUeSYzeXId3+cKlf7hW4JVjjVbZTn7UWByvC4\nq/oD\r\n=v1PG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAKpIZt2QXmS8G0a331Nst3+nSGXBIVUFgkWfTiq4hB+AiBbBE0ym3AxE0QazZkwVdil+OA/3e/2L+0fEkXSDwcxmA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604444008055_1604444021401_0.8208911690110732"},"_hasShrinkwrap":false},"1.6.0-next.1604444190264":{"name":"playwright","version":"1.6.0-next.1604444190264","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604444190264","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-CpLP25+MXybWlrIwEDG+6yJPsRvqNzOda+y9jbOxdaYd/YUzhDIbwZP9w4WUMxhQGPQQM9ugGgIPCfBQtz+2kg==","shasum":"a415d31219a0d9d760f14d40e211b71be333cf0b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604444190264.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoeArCRA9TVsSAnZWagAAfKoP/iaJMxhT9S4duaXLvTgu\nLAuSwZ6ySHAnbjcGwQ4+ZnAyFG0OqLdMZnGdYKITI4/LECOC2RWbOjWg501s\n17tJn8fZs8dK+WTpjnRTjtxut4RaiGXlMEHjhWDF7IEhuHbKOQEypDv9PbV0\nk3kBUnSEvE2UkdU6U2dmsaTWzIp8LmKi3f3m+0pasKuy3tKYmilRPYWdwV2A\nXdRIEbVUBIVANG3iYoSPcGZqDvjexMtImzgztzhrPr7hteWuJJdP2RSzmBMF\nDJIylj+Qun4euXgERXia/MfSNrr8lEvMV1wEcywg+yJYJzyxQg5fziIyVrHM\ntwftwj3Jl347cM8v1kICejmleIh/uFqMaZ5ttr9PwaerO6qSyNSHAkvijLmL\ntZGMTtqgY/d7OS5ICixF3hkQILuPFeX5nrTgPeQ+E+X078Ru1Y0B771fAB6N\nv/FIkkoxfAji1twnn2pcHwL/Sd1s8kPlvtZoA5xFt5uz7xhf6Hc6nOYQUxXD\n7N1peohVnhWrdGKL0vJ4Vgp70ulby2RRbtbAPX+l8rmLQc2CCf4a0JAzkAUz\nZrcrxZjSAZ2XGo/ZOHXdWVP0un82Xz+4J7MTkjDSd1aAQ/VELhxwlgYKW3bK\nBcWN61FYcnw7inXLfsDzpoIMcG1xxABu1ME73o1kOIfIJBd+8si0osIEIRqU\nbmnv\r\n=mD1/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf24+ZZ67Mu/XHJ5yiWyLmBVFqzhEA+6rNSVrgg1lKQQIhAMYmbvBxt/q8GOyKWjWCQBZ6nLSjRWMy0LZxDFB4i/ay"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604444190264_1604444203058_0.94012890256266"},"_hasShrinkwrap":false},"1.6.0-next.1604449454516":{"name":"playwright","version":"1.6.0-next.1604449454516","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604449454516","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-kmXrHb5iXa0S5xubsDEGEiUUvoxFB/Lk4PtEbiSXn6yS91iu9aC/E03ixy/r+jZ4hnWALyJkhnOFcIjKDJvVAA==","shasum":"a89d0c1cc3c082edab675da3aa80fbe64eca6782","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604449454516.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfofS+CRA9TVsSAnZWagAA6r4QAJ2ZzALzvWhnAaRfW7y9\nE9wTYBy+vnhbLdRAEQGD719tUBLZ8MibhcOaoFSfBLSfpjv1W9+c2XBH3B76\nsxN/kU6ETgOOKcU803lxyhY/gQ3JVlwoKUrUkvY647ebIAodAMR+rua6TrcV\nrZSll9sbUvD+5CTgkh51QXqmLJpnyHVRZcWs+UYIqyD/qeBSXk+XFmgng1gN\nntkxaUINk17qeUTDYGYLI5CTOXz+zyXQlhKpTz6gj5FweGbIcV/Ei/0fNGsc\nj662X8XXi6F7PS6l0+n45GrBWC81gpE2dSljW8KHBV1CWiw1NWacVaDpvvec\ntgbj2REAC/BYueMxQ4dRP/IellpJvtkFH/5zV3YABmhprV2M0AiPIAznWbiH\n3UEDkiWvAtpGHxmlPp7oTvWS/v469ZhitUd6UmLm94y+/f7iWqOPHIoZdRYa\nFZmeKf4qzUuNTbeUF/9H+GK98cnP6urPEjfqgDp6YKdkns6cBJVyMLPOZY3t\nGubePzsBJnzj/6oxZb5mBKyBhnB+KD9fia8lCWRBD7YMb1V4jZQ6CZtKYmFw\ngYT1IeAqxl1eFJju/jmYTF2idfkKw0HCtCh11B5hTiNx3mXezaWk4b0OYgOE\nLojnsMZ20K2h6tfOfZj9auhDaJIHaXYALR0eOnLS9GAbj/noSxeSoQWl0Rv0\nyarI\r\n=wyoF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiJY0vpq1GDqqgQgVlkcOEp2QN2p+QgfY2TA5OXSZamQIgavYTjJlt1lnKtGYK95bzVaC5sBoFtU500WjmE3fRqDc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604449454516_1604449469319_0.2674451330170924"},"_hasShrinkwrap":false},"1.6.0-next.1604458657431":{"name":"playwright","version":"1.6.0-next.1604458657431","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604458657431","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-vQDiaJgH/XxC8iYBi1VB9mmDdMQIbR7xAnmAnXh3sK3yZZwCRisGY5YkLUxc5NZv5C5UJ3hKB4sLKLyFJc9WNA==","shasum":"ef0f99c3e27038947336a24c8093a8fdc32e2cc0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604458657431.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfohiuCRA9TVsSAnZWagAAB3EP/00Yxx9kJbVkyxQGTQpH\nLBh68KXQW82S/oEbvPS44kM1Cah4RJF30ZDWv5AkX0pnZht8kMEruwel6nsY\nkvpyDmShiTjU3rFmoSLaIXwWRQHR6enr5U2clFDGEvaS/L9UWWZKZmhRU4xq\nQbR+oaATb5DYMZ16oyq+z3O7vkNMkpvEA3oqsviMjrzSfbTsGWTN8iZeWTzi\nZ1+RTYVGXCIrtPmQ/xBcoKxEJH92QCMXmfhtwO6Q+gsmtZ/DPToBrjrpI/vz\nI/+jvBo62IzCvnhj5AAs/o6+D53KQjsh/XnXSCxUbTfNt2jWnV5Dn3Yq1sCQ\nSUAyO/8sKa7fXsy0m8vXVZkxCYWdAG9aZIUpaS4RLKbuTkojHpt37s2t657j\noiZ13fAbEa2dSag3NeVha2rmCP96hYfqSmnRrd/Zdessd2YXRDPAnAoUUCQg\nNvBLa6KiHjNIw7Co/xJz4dZvDN+dQL4WneSw64rYZvYiXeQGbOB1iKGGF4wB\ndID00QdQvazs1uRylPfqAgrlk3Rt0WsJbuBdoR9f0piA55q5sYvN+QEtl1M/\nIeJavqhI2wxnLuKqNEPW4u0U234oaLl7qX6hs5EyyAtbkxZMb0v2WWbS5Y4w\nk149+SlivMj7nsGQz2noUGlP4n9Eb351YUt/PWPqhUSC5RIfNzNbEOF95w3y\n/dyF\r\n=HzYV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8DuVw1mxkj3XvEgcLK6pzUjKeDTRs1JspWyr29udtfAIgdQSIqsvhj5vICTcvBi2RqfCX+QVUYgzX151puQ38feg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604458657431_1604458669459_0.603579333646941"},"_hasShrinkwrap":false},"1.6.0-next.1604458863005":{"name":"playwright","version":"1.6.0-next.1604458863005","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604458863005","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-SwVPo+O7PBH4tmPH/3fgHuwOddNp5mKvdoIDrm1DfwZip1V0DvKRz2PQqTecfhlE2cyaNjCxVIiUVxNSD4r42g==","shasum":"11205ce15536644dc2a7128f56308065602eab75","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604458863005.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfohl+CRA9TVsSAnZWagAARx0P/3DL8aVlhopyhnHKEZ2r\nPeCyMQBGvYB/mSU2qocG4x2Cj/qphUwGhmlXQWP6atT9Lu998MSnjrij3msu\nK3m/SHy1chD7FDy4yVAz4PnHSUOYFurI3RHoxSUoDhUexwgiRntQHgzh6cLr\neqRtlxmn3d3sXd+Kwu1FX+bbAVJ0p/Q5gqso7efMqX2amExnORKGxcpgnTpg\n2324V7CfZDAGf+d8uGWR+EBiRlZQpdZ3wb6FpDkMdU9iWec3zfYGmVcgtrBa\nwofZCcIv/qMty2WbY0vtN8L5OqcdvWRZTI0yh/AueA+QGGfdT1G88ORimNp6\n33b9mSQzbeMwHYshdIG/C72iAKjIDWSeGhdqiSbCpoo1Zk6HReX3iay4atBl\nI4ABaHgdcephIa56pPlR/hj00Luu5Ta+gKwikcAF6D/j5vKBuSsYmEsmThOJ\nGPkJoluMj5SN24hB0OUnF15HYFGEE4XavFhxw5dYtula/HJ/SlMmHcgaEmC0\nKbQlorCBruIU56CGgc6AVEfVPYBHtMXUoxYZHj3UQh+XS9kk3ZWEJSxe383w\nE7C+oFjtOJDVLbsSDJ+FAghDUvVC72tpKKilbn5hO7x0V0Jk2THiVnPTsspo\np62AF5ACT/KTvFAaiELrPlNv7ZTV6/l1vayECyxvv2M27GbCDJZ2VZehXl/C\nv5NV\r\n=deKy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaOag3eAJEKtXp9vQYJO2MD8xwida8r8bO+BojsdTzNgIgLMxWqQJeZGqYnTLrhlH75yRsZrEJgJTnMPPTmtRIWdU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604458863005_1604458877253_0.1627611506072737"},"_hasShrinkwrap":false},"1.6.0-next.1604504226151":{"name":"playwright","version":"1.6.0-next.1604504226151","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604504226151","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-MZw25GwA/nzDGZsqrOnZYRG62KMVezEVtmuL3KyzZlTkS7NmsEs18qhpObSUlp6miEHf35xU128rLJ3QtCoPGA==","shasum":"10e947e05f5e79ca8d77ca3fe2321a5a7f8df83b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604504226151.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfosqyCRA9TVsSAnZWagAA5uUP/RXvjhlYohZt4LmGR9KJ\n6vHQnQqhCRFJLiCMud9L0Q40IAZWhX8ycpfp85aYoG5siv1UcQquYhQqvDNK\nTMefluIqzvEQ3zgvB6/h9T22MR9UmeiD9w8uGmMWjQKAL8dx+QGdWS4U7e5x\nFXCZApu+H3flrmv0dhWe0iIa/rDCrheTXC9aAaOHKdrfKRmvz/kKySP4b7D/\n8cPR/Sb5n5hVmWSfRPXcPPvJISzkmmvovfS6VxBJD9rOJLpEyW/GGfKHSOSI\nwFiZHkeH67PqmvayywJrx75EXbN+b7nNgsxT0m2xcCDeWhP27ZOfkYWrZzn3\n42YQ1uPW0T2IIJVFFDwJ/6rtXs1UFdifBYBWTfxi5DWq1iFbmvKycpCfgTum\nfr1ZHKwDIELsW6p1aR4jHGq4GI/tqE2HHPtxD5LNtIVDYUOTTthmQ3lW2GJ8\njEc6WlRnyJCsoKUHkvc8mmbzdCBlhfEwHPyVl3ggPwHMpgpG6tz7o78wfB6T\n2xoIIm/TQQo27Kiy/Ct2uVW/rZEob8eUtG6nrDQX8YyBVhHR34p6uinfvHVs\nOD3qpZ7bZjPEIoUdp6aG6k07oUA6TzAjV9fYiXfhnu58kx/TNO3Nx3tXVsF0\nCLqSuGr/cxfxF0fXeyTupPhoHbSleVaHGxW2g4o4B0i8qUHe19EY2Y3UlX02\n1GBb\r\n=MFgf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICURZB73SHpVzEwrRY39SdPsCzCdhrSGxFYYT2E3JO06AiBoM4fzGHvrlDh7OskNqrMfHAgrMkyajX5eA7YSxetK2w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604504226151_1604504241156_0.6914592260018997"},"_hasShrinkwrap":false},"1.6.0-next.1604504458977":{"name":"playwright","version":"1.6.0-next.1604504458977","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604504458977","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-yPQJ2jF5ZpITw1a3QJnpTNAvblK9MFflWWyExJodi3YwRPhw4MLOEVx+k3xnaDcr7bU/PzJCX6RHC8y4nOpbfQ==","shasum":"7ec14d399ad369810e3d2ada8c93f9548f6a93ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604504458977.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfosuaCRA9TVsSAnZWagAAKgMP/02Xrv8aHi8EcOwEU6ZN\nmJ3b4q7nF6uf56GPK/nJRT8GguHGX2KalT3X+owpn3OOnquGs2KbwM89n8B+\ncFxXV7j0VTfTSzG9CuliVCWIcBAnVtgyw9EQKZ8FsXgj/Cwzy+bnDUzOYAQ1\naMxwgcTUq6dEro6jo45BTqLt4vmqOMFB4haqJNNtbgEw+gBpegcP3+iLX6ZU\ncYsvkmUt8V/dN8koxSxb1BLL6Bidem7LazxrTTfWz//bTnQ1YLIUrTOls6vd\nyP/PcXaa+mMThppOXoHe5ApKBBCytuA/OKo+TP5y1neiwmqAeIkHtOqKWTtf\nDstx9qdMqV3jpfOIRP5e/y/sRygFB7FNwkj+3c305ojjqYxxCb6sz0FLLVpg\nsPw8Wr1VDZHcrW4r033gb/A89dI+XXTu9sejfgz5WgnoywWVTCPsQwZgs5dj\nMoTtsjyHmYyeeBB9uGuW9Di0YjNOJnIdsXTiNO4BmcmxMHV6IHL4sJthjmDR\nnhW3bt85mXQQKYS11eBPsMY6dKaMI+lozu/aEBr2zBWi0Q9EXdsJ9O7N8Ict\nxI5c5RcU989R3QZrWVCGi/NywjrWg0ah8P2T0r71KsFuhSmTqQnqQwt304Qg\nbrurSem0zz2TbIe8+ArJbHHp0pBshQQDC6za1jAgLyn1yErrpAwJQrYhBOwr\nPPMb\r\n=J+CL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQlupfjf6L0e1Qz6updZip4AEEMM+KN4Jo87nSR6yMigIhAOtrNuUBROg7TYj6X8hNCiCmKaS7JyPg5UJTEv2RnDdT"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604504458977_1604504473265_0.9380285617991679"},"_hasShrinkwrap":false},"1.6.0-next.1604511976624":{"name":"playwright","version":"1.6.0-next.1604511976624","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604511976624","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ojVRsXtprCB7qBLJX8Tkx8Y0arz8S4Jz2EF0xaVeiPwbteF0AalGkvTA0ri6wjzpeWSHvUMLFud2jxLAxUTLog==","shasum":"6a59b8c2403e3996520598c2a8ca4331f2fb53a7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604511976624.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfouj4CRA9TVsSAnZWagAAgr0P/RFi/289fDGScygXiBIh\nm3ZEvWR9ApZX0E/256Bl8Dt7orS4+pntqONy7uBiCuPVJfJYwcxm1jmeddU8\nnrPif8IQ1VlLdfH6z9BuA0uMxhAOZHF1UE5QK17ZzoZC+OmpiTeDOYli9ygF\n0RQq7OKfx15qjt9u3V+M5iVGGv5dv433aVnc48jwZNVh5D6sROpPbMoxFw+z\n8xuT537hPEtlbEP0LEGNK0B9/GKyOJyc3Uk3GJye0nZR4/7ql2nffWyxiRSC\nWeiF927eFH6SBUGMyB/Zui0F16Aumuldh4/jda0RAEuzbVKhLSp7RDTOW1KL\nYx3vn0G2wGOdircYu3HTkDdxOocbupmbJyLecLyP8fCxm5aAD8Smvd1hoQVs\n51FLKw9BHbb/pKgx5u+cLfO6QBEIIAbM66Urclc5fPg+f1Ot9UdXhDjgWcLy\nOIcW+4GrMGIVk0IPJBkpgm0PsMEqFkmuqg30F9u9/PeGA2krIsBZtl+1PqgA\nS+/7vdZvwOBNXGaLsHJsYvaHQ6EyUDSomYynSGzkpgGqyIFk/QoNSLDdcPNQ\nbfJv9EQ4HVxGQqZuJUeaYJ7AN/AQ/cA1J7K9hj6qv9VKMEFVxyequuIwImoQ\noEnCzj5iUluCOrWn0aJCAdSpIv2Cy/w2YaXrXMpQnZMONUBGsT/rl5i7uOpL\n/0Hm\r\n=wdaV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWb4Ld9M5kctRrEC6+uvSSF3dsGkvc/nmauaazTgtx2wIgDFzrmo/I+1SP3Z//PhAVYMtkfYyPEVfSVIoOPag/Rdo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604511976624_1604511991551_0.2609429739305036"},"_hasShrinkwrap":false},"1.6.0-next.1604514370393":{"name":"playwright","version":"1.6.0-next.1604514370393","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604514370393","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JQA4idHgfgJIVWxLa3cLTpycjQKl2v1LUSP6JXWK7GxMLM5qPtc4UC9zFIlKxkhDOude43hBgcUw8dnDyJmHwg==","shasum":"2a7755c8a0b1ef6d853ce58efdaacdb4d59e157c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604514370393.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfovJRCRA9TVsSAnZWagAAgqYP/0S7dP5AKtX2IvjPChtw\n8NODE1zE1P5AriWoVF1vfWDUi8wz+qb8jQ8rbmLghFcA1gqWRkG5WiOCA16M\nbtymehOYNZhaZxPjaf05821aa579nUx5kGs/PJ8xUun54tcmSiJ+59FgJdGM\no4Vj/sPbizfIfDYg+xavgmWPOF+1L5VPf25P+7j+AfmJ2ZKeMQ9SbQEGRD1/\nTKjfCj79pJH1zf7XUceu+7eapmBCXloEgWfyBOTz6oRlfSSiOv99X2z4IVlg\nSkBh0KmfIgkQgKi+Wm4Sn0Aen7zhDDg3W4Q/xC2pHljYwsRPNGf41C3dQmXL\nRAPLj+qX8EOZ1IAPX9TwofH7tV3uc1Z+zxZKrBbyUg+/ZHNRlue+PrG6SdLN\nCzFM4i4otigaqoRlRitpY2vYIx0n1pX5uCk9aitRKHyj/0AdPe5HUJthMXrU\n3I6RKmTn/K7JYgTHMF5LKYjJNhs/KVZwSpZw4hvNGztPn/j3C6Nmsdr42t6n\nY/QL2IVIcRmx41cC6IaweB4P4njpyffWwNuGZx3D2yVzARnuhI4bed0oWp2m\nMXCk4teYy/hZx/Yb7ueNko/oA7bt+A/b+O+AnQYRlCJOD8FJyLaevWqRKn7J\nN1vPAhiXCphWTGqQRje9pnvDRigCAIicZb2U51bYKr+yG0Dtmzj1vII51o23\nj16E\r\n=CJeY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS3+8PBH1uchrXX8Kpsa0o1m89uoUQPCMffTXKXV11VwIgEkVXKRgTgBOKrKRHpJwfX59nAHTTTnaY3xGV86s4WJk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604514370393_1604514384341_0.6404481181219939"},"_hasShrinkwrap":false},"1.6.0-next.1604516539153":{"name":"playwright","version":"1.6.0-next.1604516539153","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4314.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4314.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604516539153","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Yk65wowAbKx8V8fml2PP/HQCfAfYCqYOy4MHtPIcHGhh/1y6stvlOXjnMZov/g/g4410vVdwlgFT5Rk2GF+LNQ==","shasum":"02db8d0899e36ba36793d9145fc32c19db5263be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604516539153.tgz","fileCount":170,"unpackedSize":18968084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfovrKCRA9TVsSAnZWagAALpsP/2HLWCw2SFGe7SQG7+sj\n42o4ANOBP5YpX1n2Dh7Eq78/F4g7Kd8/tG6EG1IQ0k+fMQ8NhkJuePbr3dbj\nAfX811tUk2r50oe0dHB5wyRAGr16T2+U8QXeSFJ1ARWkCciucch6e8z7J7k+\nsVMw21P4GirPX4S2+vmj6SxBSkKC/u4LTcRJn+BjLCXLMPvQspA+p/dKed+8\nYFDWhoexAYzyAjivpvps6TJnJzX+XVewdKHszXkSukc3+LhLYQBvEMdMRs5L\nrggbF6HBPRpPwOzCgYfGks89c0r+7PArJciO5YKk5keQERSPLImSCoRG/ASq\nbUmdp73Hh4u3Cyl4yuHdhAx13yvveZY19Gdkm23aEVeprHNSDmROQaHiK6jT\n21mxTxGfw8+1N3JdZoTDn1vAtONAHx8Oe/pXfTLki2/Vl6u5TS4q18DKH3R7\nMCu2BelMFazSRsvpOEp8dysnYsGf32bF+oOpgcR5rIJrDpyxubup6FzJhvnR\nGv/wKYDK3Akwg6KFPX7Nx3Vg0SRkbWuDDxjvqYOSkG+vT3dKbpxo7/cbvBsn\nKYCoh0jTvtBd/gXVqNXFXb1S7cZtrkt4RXQK6FkSmWFp1X8H5PmZBmm5bjDg\n7P2XYXbxDYLzrpCYIEpRk8tjlQF5puzmi2GTQ1Jw9agP8Y0JUykiaAscfkTc\nW3mM\r\n=UxoY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRbbaXWpXNMuUpj2T9OUVSxW6cdaHRUPAXsIIYPE2GJwIgDfF41J6sJMl/FzhHJaQXyS25W4SU2UBuy3SsG1pJmOI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604516539153_1604516553321_0.7771062044329644"},"_hasShrinkwrap":false},"1.6.0-next.1604517936339":{"name":"playwright","version":"1.6.0-next.1604517936339","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604517936339","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Ciz1DONg8eqvDJ1R6/DnTixwcbHUG4ES18Y/mN7U6JIP/tSOZERJNPs/8Xb3oj2klIem+lIybxHJ87b29SEgrw==","shasum":"75a49c89766328eed810dcf907154aa12d4c3d7e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604517936339.tgz","fileCount":170,"unpackedSize":18968109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfowA/CRA9TVsSAnZWagAARBIP/R8mGBEMoed/r9QFGcsK\n5qhXsmaNuM5XhHBoNyy6teCVKa63rCtP2lWbR0LzRAFaZjG/z2xxTBFXBOOR\nfTKaVwqTlem8n+7ogi49Oz7K6eCWxqGw++6K6BWwuePUsM1/8vEQBHfHiaCg\nN8ILV2okm3kALy6C72g2RqdiO2W0qQkkY8SEFcFTuEOX4j7Ti31NWMDfre9z\nzH9Z29fu+9Av9Dy2bURTmDm+3UoYd+uxNDcPHrmgbsheNorZ1ChHuhan96xV\nWmSAwmdaUrl8AjhOkJAICw5Qv3jQl4vpUYfQYN5M9DnfOIDaGH/69WrDewVE\nxRrnSKj+hPpcJnXHvqHK8wlCBJU8kGQ9JqfLxpRYASuhCHOv0huQST5+w5YM\nempuQRdLmIK2hmpLnQ2lTt1Zcs/6/RVBmF5VPdKZZQc4rfGcHr+86j8FBwI5\nLlT3K8WMjiMakwqgQVqn+lkrcnc6P1SCuz4RiK19Q6PmiAg7oS5Y7Pe1e9ik\nVeQ5ctd+scPDAvHMKQfcZ4QwaGin2dfrAvJm60xMpwcPyWdKm6yBZnvNoYi6\nlRC7enIBFUG4TY4aWQkv0ZGya8S/NxQvpvS8qnOSDUvx3gO245IkSwE2JYcN\nSwAh1RZInmpHEQPPt1SciCOGsPdEID4+xMZMpWGNImZD5tVcwraY9263h7Sg\nYM2a\r\n=oqQF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID14eKsnDrWFEa04R37DVNPFIInRXZ3ec1drN3MGzgZwAiEAiqR1hM8kurkLKl9M4VOrywX2QHySwqhShP3w5ck3Z6Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604517936339_1604517950810_0.291748677971031"},"_hasShrinkwrap":false},"1.6.0-next.1604525207093":{"name":"playwright","version":"1.6.0-next.1604525207093","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604525207093","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-fnwg0wuVdZ9Ug43H08iciWKH1J3FQ9AijscwzoZ6KqnWC+YCHlkHEfRZdnI+Op/DiLHABs9OowVU5qWsaRgtuA==","shasum":"e8e8a8be58f8fb9f474e31b6c0f1d7c65305b5de","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604525207093.tgz","fileCount":170,"unpackedSize":18968109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoxylCRA9TVsSAnZWagAAHkAP/3uIxapU5V7XGQyRRzap\nbdzNSbg/Wj6vp6KjImGFYNNS6qlCM6OPseXiE7a1sVVrFJQcn5cnKAOgtURi\nwBhfRKsJxdYEVNAlePDHCdAe4m/x8jpkLVQGQp5qF0lDpjoLxKL2h1Okj5Js\nTB36zW8n/KZi06pPRCeF4YzAdThpsZcV8oHtNwmu9kj8bfRyKx9Sjt3Gj2V3\nUZqgsE67Xy57wzdsuZGEfdg3yxFHBnPKTM9lwDyYPM33xJuOVCQK/BWf4VDj\nFHHvsxRyLbBzGcXOHrOpuk1DceUx8s/hoxYpqfZ7tGiIgJjrcemEdqVdyc5M\n2xYF4V//JCej65JAZa37qEqccBDsdUQ0t4z/9z8qjZmQVBQVAhB+WaYYIB6w\nToecngEa7hEbSMip6tcMIbImeBnVq5X70J1qaUfVoeMqRKxfN2FBYYNYJTRK\nTOwrLISNXvmWCjrpLDz9SzbiBdw42yDQtwXgPr/7l63s5mcsxRgSnKy0EDjx\n+DQSip/EEJU+XGxCY/AWGCKiD0FGwujSggrKQf0TR/MMNGQAboNDoN2zM/gk\nri74zNXeJlvioOk6pjb13zlzE2LoCHx4DHXK+DRaHrilWWiNcLriyZFEdMzA\n8gdb1yFQdE1GoloJogJ2kJQc4NJyGgnksgWWoollEcllgCbUp7OkZ2sFupar\nyA6G\r\n=HJVg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTLJKJb8Ldxx4HgbnkJNFfvOzJPJIiFsVaoFKs2BrXvAIhAMvbFCjoaYdJIJJ0zoA4jbjmhjYcFoD5cHnfvt3Xkgqh"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604525207093_1604525220327_0.1082248395707539"},"_hasShrinkwrap":false},"1.6.0-next.1604558680157":{"name":"playwright","version":"1.6.0-next.1604558680157","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604558680157","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lE3j30ZX0s1cgC0VDzRYSclvzljdytkhyVka25/v3/z4K096YOCjLTjsgWIWAqTsf2SaeSPQRp4Zk0hyLDhGwg==","shasum":"d8f98e33c3dac347a6e0facc1bff6333447ae06e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604558680157.tgz","fileCount":170,"unpackedSize":18968897,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo59lCRA9TVsSAnZWagAABjQP/ivpZmXOYo1MKb6fX/Xf\n1q8fDRajAjkc0KF+y+IsvC9zZ/NKhx6xFuqJ02zz2AShrh/5L26113P9IHCt\n9Tka4Z6rvZanqC4b0+2eFFsek2l3xvXPyU3Y/MR96GImB0LTGV2LVI0u7NTG\nb+febiInEuAM8dH3Aa6xvi1g9/uRSksPMlWWYgvYtDO7HtmPIaavy2T2VtLH\nc2p7+uGDAYj6WFjPEMXpB2qta4+HoRyACzNeAELCfcTc+Wh/ohRL0n/FIyEY\nSJJESShVqegh7gHamk3yfYRdubDMhh0aPtHbOStuXjPC6qlBV5R3fRYJ7pPM\nnk1r7yYgpVsxTtU3YKeK7SzDoIHoSiFF1YQ41TLvWyc6U5uOY4pfM/Mdm7KA\nMG19Wd9mBJ98s3kZ7pYfy+RTh3fVQnoAVFIhmgLMM8+myV67lnJQ/kP+KL9e\n+VE98FGPJdUkX08fTtGejKMYzHFMIyn9CMlcWA0Jl/SPibsld0LGb2dtXEOf\ndyUgEKfK9q70BaFQTgw/7HCPl+5I0exbpWPRhUveNnlORlYgLdi2q3qBDZ6T\nRcgOKPQCO61MRCRV65zT3Z0r9FordZs6rcc9MT2pN+bliUpVHpXJ1YzwQnY6\nssun9c6DV+dNZvGsxLWJIcpzw2cS94SCrpmoTIvhC1E3qvSZ41DpnsTy1yNF\nInP7\r\n=g6eT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbLPRm5MnIWSRTuc0EpohKon/tvXB+C3AUSA77vR4FSAiEA/f2wCVAmEnDyMchoc6SzCP91ddoZPREKkNBa9hTvJdk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604558680157_1604558692940_0.4684879909111539"},"_hasShrinkwrap":false},"1.6.0-next.1604566252790":{"name":"playwright","version":"1.6.0-next.1604566252790","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604566252790","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-inyZnO7bO+maBDaiMGSgrqyrE+Yx0q9Rl6Sji6dLXbqdVYu3mOzdhtXvw3tyw47fPvn+LkAEj8AzfPRhYmff0w==","shasum":"785518dca765af9f82884626e82bd836d7ae710e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604566252790.tgz","fileCount":170,"unpackedSize":18968897,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo7z7CRA9TVsSAnZWagAAVj8P/j2aSZO06M1ZCVAWPzHm\n34GuYm73Ej+Bh93VHYa4larZh94Y0IaIVDaTWDytgak2k+yxbO6Adx0xBkF6\nS2REbzlICNXI6Svp2swy2T1+g1YR5IB8JGvAEPVTyw5ZDrJQwQWERllO82oZ\nLHzjO/+pWZ2UIheDK/Q6t5vvzcYFoUExSP74/BRc88X4hbmsrduQI829yw8a\nQO6+SBwP9/keCP1Tn9wBZNPUx1vL0X8e05vvHPg6VoU07ax/OFJYzZ5dq4Fe\nPLqar/2AIqYUsSzXIttAHJ+1/hyD/cPT8posvqwlOBYbloV1HWOyFKBrPRy7\nMARk3hK+ZbQwpJVYMQ5lAR3ipgrpVW4ekgSeFVa/HAC7gmO7DI208bp0qYXG\n5tYWXUBlvzNIjXP2PUd1xTIRtx7XGKxi/QZZFJNDWu5TqQ1b73jJMU6c87dA\ny242H/zGwaU65J9wohbn9Ui/UDLh0GJdYOA502aAPIZqCy8sFWjKU1m3sxQU\n+lJjJAXV9d9X+UFuK30mXkIVWSboi5FHD6xcA1WPPyL357exrg9Owm3Zk91D\neEloBrMnYHvkvHoKRAogcqJh6CT3OFcWVF/3ulTDFELaHQ1bwV3pTSm87zRA\nGt4nw9V/r0oqgVCQUsxfXmNzAWqcDnefPQBj2Vue1RZA1wROerQATBkD1EO7\nMRa3\r\n=hQ4X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDevR+8cVY0twhkb9fUYPIYVEA7XZghKIKakprDP9tOLAIgCNcfiDzss7qamj0VLsqkz1YieW6S4gUaVXOoOv60iG8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604566252790_1604566266861_0.2913839991487843"},"_hasShrinkwrap":false},"1.6.0-next.1604567020618":{"name":"playwright","version":"1.6.0-next.1604567020618","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604567020618","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-70G4Xf84YA9ewhur6IObrORIzUGExPtpHFsfMQd8261njwNZ65MVxuILhwDJXKLScoWZ9jokgn74ZavqN0EM7g==","shasum":"8f52782a6b4204ec9be58a99a1aa43714572ebd4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604567020618.tgz","fileCount":170,"unpackedSize":18968897,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo8AGCRA9TVsSAnZWagAAnBYP/jXzhgdxP0eCBh8NIsBm\nsTOdfYofBjeQGUUaNf30r80QNysN7p481eB0duiZg9QwqIVSQmWyUIS+Xv3N\nn4qJX6edYMG5Dd+4rp2nbZ4/hM+ifK17TAjm320iLkSldNCH59zFhlUkvLym\nSTq3QPWwUfUkS6NbM8xzj+cW6M0uXsxhH/s5G9qWfEMjMvJtDDp+lkBiafeQ\nLv9OQVmeiv03BLiCIE4wPN7/jdPw98cbVx4Lg5QQp0wStLxBdRcr8pJdBP3t\n1ig5zUpFG5foSb3+40xbV7HnErR/MhdenzduTxIuDbalHfR9Zz5JL+dTwoEv\nkkwyO8b9tJS2ODsFPKqeMoInuYBsFlq7iHt7Ql/b98eSITolFtL/J8Qv//wP\nFlrAOsIJUmAqPEMsZsHvvW5qSaNADHI9g1/alUvQJer31ktxKS8omzNOo/Ix\nanYVF+mQ0eOyvzHa+UqB0nPHR4xeSmo92676ywGK2jGTnC3NDJeO25bnxJwO\nxw9JrnoUwWxC28H74USxw3AkZLXq929trGegZKApwJOC8ECXy3oHfsQaUy3n\nW4s+LwwLlYT/bLVsBrtzEx7bIrAmGbGfxg+Q0H4aL4EdpE01thpB1s5dnfYf\nxJqeamPR8Qt9jgLrBy8pTQtvUpI4BR5mKSKcs6jE9AZ6fPkPbVaDy5YQLi+C\nnXy5\r\n=+fPs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCR1FXq7/Sg5T14WAB+yJoAKUci/gZpJV91SRt+E5p5+AIhAOa8q62pVLXayw9/0MnA9xwAMymvGdobFr3H2twlUf7X"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604567020618_1604567039606_0.6205673591644643"},"_hasShrinkwrap":false},"1.6.0-next.1604570753207":{"name":"playwright","version":"1.6.0-next.1604570753207","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604570753207","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/l0/GsW44jD/O9Ve38hlOenQoFXZSJGBTko7o7tpNJvY76GCWNgpCxHXU6xCwx8Qgr3NY05Eid1JLzI5ri+xIA==","shasum":"c05b278f9ed093f1f4828e1a1096b3f69d036917","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604570753207.tgz","fileCount":170,"unpackedSize":18968897,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo86QCRA9TVsSAnZWagAAx4IP/2aHWcN/PjgmMKWEGX5M\n7a152XzuOZ30ClMLUeTpHyt/DEJ9XDDWVeH4rJIAfSncVsTNWPcC3DyvYbHH\nJQDUWGGeeK9Q/PshlrBOR53KqJEY6wIl09v9rbJV2KCk7tR4UbhX04uDS8WH\n+74mVP2aqsyP/qaCpT6ZPSh8W/z2NxYQQH4eRLQG9OzxfHEQskKg8ZuEPyCQ\nVMkKmt7hAYcMeyPHdVzOByIsQdyPwBUmJywUt9kip4eExp1o2qOmXYSeogK4\nMjDqMFLMdmzsb6aE1p0btcCTh103VpCR/GeppOAdRXfANwcSSZG5O0UFIO/s\nWbrNcH2X0C9uHMNexcKc7bb0axN+b5yDemk2p3Fi1gikuOyvwpkXikRwhXrt\nnozm80ziOe2C/Hm9t29OoJP5qTp/qSZW/XH9g3MkTT0OUOxCk4O2sQD89dzV\nGQHTMsh9ZkJcudLL5TSS76/eVqowrZmFZaiRo2bU/LOPhkFbtcw3ZgoJherV\nrPJfI0p+sncyD5dS4X+2G2kgl8PPzfJ0WEPcHOdo3WrxHBtHkVmPImshiEGt\nV/hTpJRTnqLOfKQ80/sPQV6wfTAVsarLsXdtQkkjbN6lJXpr8Z8ZfUscFCxN\n+kuNMhKPUDG+/d3yw5nFM9hCIJUv7sHp/jcTDrm7U41vJ2ybYFjeeSpGfgKS\n4MT5\r\n=EMkY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBEnvDVpw9NSgd6rZq/uixJ01kVQ5flpyLQoLN0Y8EiAiAKSwNJktatHTxps7pqhwn3GPhp3ywcr/XyWHMxagpL1A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604570753207_1604570767617_0.8368759604657889"},"_hasShrinkwrap":false},"1.6.0-next.1604573461636":{"name":"playwright","version":"1.6.0-next.1604573461636","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604573461636","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-i+0I1aaIYHZQAYQOZHz3ER9vRE5PYFxyw0LX2mDJHVHzhfL4fn5as1V7woRzYTCVPMx57xlCpa9aS6cJ/ltpUg==","shasum":"c10c7bf364453e871bbfe82283d0f2a86fde0214","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604573461636.tgz","fileCount":170,"unpackedSize":18968897,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo9kkCRA9TVsSAnZWagAAAO0P/3f5L7S1a2JGUlaKqo/R\nhJYnzRlBPZ9M3L/LleRDvuL/AMeEpVoiSj4evCTnhmEsqNI+K5VreaTZcqPS\npY9xXOBy9iYZArXglTzSiY/eEe9847f4Z4zkBS99hwoc8rx/O+H6CHq3iRMi\neVf0G3PSMi5Yh0C0WkyloND3Ts1QYpAkULrD70/Rbnw+r44nYMbtCgIB60VH\nvj4em/hhaD/sYkXo5p39A5hbG37iQxzw1NGlco7ZCtttNu4z+6HMS76msF+L\nG8f6q74gIVswcwiLur91tncHdSevfIOVMmwFy9O56AJaEZZqY3evBt5oEcHA\nfY/9qPxQpSi142XUrdQ3aeqgYc1+gz5Jvgxazg9VVlOGAWuRoAsjRXQZy0a5\nFJDrcjmoKJRqzrJlRsYxmLOmKUdOQVhCJdPwHRRjiiPsxnDxz09I8BG1sT1R\n5DVUPjecKTQcI6ZsojtjEtkS3uSebYw1G3ozy0jwiRxkuiaS4UTEVpCf4JAj\nlfEZDx/R49/x6tWnI0SH8Q+stI+j3aPP1tgIdF1DqOc3NdVB/n32XXupu9fU\ncwldQINhjcAuFSq12kCx4L4Wtze+bH7upmC+3VXyFhzhszJWbezs488Y1B1J\nwg9uBX9U0HPSOTkCs0CVl9Xcf7NUDsrU/tqgRZxpwzZNPGcbftW/RY9Ha+s9\nDQXH\r\n=iS2x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAkL0kVo+UDbzFnwtIyKOMDwUnzFs0+070btht+bR+XgIhAOJgiZ7Clb10UCEYHtYzD5N/JxxvBG5k3oemvDuYeUAy"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604573461636_1604573476156_0.315331968724909"},"_hasShrinkwrap":false},"1.6.0-next.1604574942387":{"name":"playwright","version":"1.6.0-next.1604574942387","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604574942387","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Q2Tp3Zz39QAF22cSYtgyR7MbO1agVowjfEb1CR9m+e81Y+SZTJIVFrbtECaS5bCpXiHrLxpaTvAhZjKTHLvbZw==","shasum":"2a8512a18eeaf41f96059b0e2507137aabb1eb88","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604574942387.tgz","fileCount":170,"unpackedSize":18968897,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo97tCRA9TVsSAnZWagAAL8MP/0T1YUF6yhaR0PdeTGEy\nkprMF5nGsnAcGosz8jTwFZEZe8JfkKcOV3tsGevG+hZ26/Wlxp+6HHkYrTkV\nNTiKIcE0GOoHqNi/3pCy57tnwUS7vfXA3CxJE1R5Y791fAbADEZCs8WNj47X\nOwVqp0tFepwkJqk0xcqN6TjTKANVG7E3v3h1m9wRIybWaWCHaq64UPHYI6fV\nu6G2B5IqAqB1c2mRWHXSC18BYdBDS7iIeCh2K4LYxvl1OVjj/NPdBeyFmB1C\niO4x9yMSXaLBpd/xGN9SQhR+fVhFKCm7z3SxzCD5qs/v9FyZXsQS98UhBVsK\nKhcp0Y4s2iC7mdMFid+L1IR6TRvEb7Y2v1zt8MWiQ6XlRGQo/gcJ/h5pg1J5\nKS7USgCklMNl5BUi6tU6GC/jR6BRU/e8G/Q91TfwOOXWmE7ZpxfVK8ERV5nE\n4+/oT82sif01HQkahuRh9zhQDHkLlbqguLQglscgjlKcqbc/H9r/LylX/zzG\nZTrwz/0HGFkIILRfhVTaQ2ovHjoHNuhCdUes/+4KtVBjp4pFcxRnnadlpkW4\nBSeZOneLADfEEYGSTBqGXaoWPudBFB3ejo2T4WvWyYV3xTQ4qlFaTWOBwpXs\nzlqB4rs4cnHNJLDkxUxxzuxtX4nsq/HqCVKmKf+L2EaFOScs6DJdxWTN78sz\nHFzT\r\n=QFti\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC24e762J2j+vEpDMzEsRGAGC60sf/d9YoZpn4Pq7EhhwIhAKpvqRUUw2Kr5yhHtTjEwBjkWU0YmvIb0RJioJV0i8sR"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604574942387_1604574956836_0.23923280463084962"},"_hasShrinkwrap":false},"1.6.0-next.1604582698696":{"name":"playwright","version":"1.6.0-next.1604582698696","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604582698696","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-3mEe0zwJpY26A2S09mh2Z/Kp/t3+8JIqdqkVry8UYrM5ouMPp57vMmLc3wko5FghFrSSF35Rkafz2ur4k98kIw==","shasum":"bc63f826f46b97c9674384a1a1586ec0707cfa65","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604582698696.tgz","fileCount":170,"unpackedSize":18968715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfo/06CRA9TVsSAnZWagAAK3cP/jeqseDbTGplAB5Xj18n\nBlFG+hh9Cje6stkjjvZow4ra1eOGhZAPfGQ6FTjqwhT2Z5UqfKrhKrRifGPL\n6w1ToelaguUq3PNpVLpXx2mR34mCG32ORtcwQW0ZokxmcIGdBQaMBVMabZJ1\nnppaa56kcBrmZRZBsbXlqxniXh47EeSXICmUeYnT+IrcALCteejBl1uKx32d\nT4NUY4GdOTSdWf1Vx6XvujhZcKaCeebGqnmsOIIdRY5ZaoEr3pA9eZXgsotM\nSlR2JsS6xjIj9vS8wG2WcKe5xvKR/NhAuqIWo+blCaFRrfJ34GlFcDxkFiTr\nKmIsE18V7gxH6J5wjWZMzHbERJn1gyQ5QzGX2R6M82y0rcRaiyO6iUZw5ZLb\nbytGbji/IHwm6qNiIzCg2OMD7WlX3FDC8LX5n757pcSWTde1pWsTMybPHmVT\nBhEwViOs+2WSgIs03kpQGGv9WvNr7rtDq3Tky34UvbGqkCvvvFj6Xuwc5w3H\nd5WJRehClFnG2qkQB8WcvlLQr+vZgGBmCBUo34LL7g5IuJn/XDH1K3OIKiEM\ntt65km1zR68aC69dNQ7Lv13Jcp2Y7TosXa+AelFe5ja6MVAWIwhS3GpdCWu6\n9JNytZdLlEP1YF4siZ+k2sFpx0YZpPFRt9OmBGrOlIVts/C6IL/MR4p8j1Bf\nn2iH\r\n=zbcG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJkkKDvKmzq9hjt1jjQcyojqzXloCaDVA+GEtRXO+cCAiEAjDJBFoitbbOxBQylyE9P2Dv5IhSUnZRXeDw8l/Gqi1A="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604582698696_1604582713872_0.45900519884519686"},"_hasShrinkwrap":false},"1.6.0-next.1604597249602":{"name":"playwright","version":"1.6.0-next.1604597249602","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604597249602","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-QFCmgpHGIHhL+kwSFafkumAAhptxifm+Ppb5a+HOK/RGDXQH6QGonjhlvVPMAwoY4p7HaeF5GuyceWWxRxSgMQ==","shasum":"12dc4e2fae96ea24a1c5821f4e83112e5483f2e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604597249602.tgz","fileCount":170,"unpackedSize":18968715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpDYPCRA9TVsSAnZWagAAajIP/2PNB2pF10y2KjaDMgAC\nfIRRyD8aIFBuU3DIQOBlMDF2of3nhYh+dUPqxAZSl9BQTv2EoLCCE15w63+o\ngWJ8YZ2l+ge5JUBeJ5yB1HJ0cVUbSxhepY+mcNqqqzapTdlmp+rlFSavkhzg\nWjRw/J574CgWjhljXYeVe6AS0PXYAI8yQtNKz7klpJv1HOZhpvknwwGrAdOX\nnk5a7tmlCH1hQGu2D2/NxOhla9didsfKMk3Dtg4qP852DFrCF8f+bu2JLmn4\nBbJ4ifaHwv88A7rnjLU29f5jFnU5wu8dBhmrHxwRkfrekPJAswf1KzAD/y7z\naaJk/Yy+gmfvPrZWd1iVG4EPLZ59Vc0FBzCFhy0mLW1KBNMCfGg1CqOMLeyr\n8sukYvTbwjS1X1jmmhSl5vJO/loaqeaKPzLpQDYT8A10WliMP6Pc1n20Kzt6\ne/6q7siXr9jCQwiiEOW+iy9SS2JhOlAs1q9W8hkDmv+xYVGu0ZFbfNfzIEp+\nP2FZKZHXpNUBY3jgGJn1zECZ0SjNGUJCruDBbNn7SKo+DW+j5Ohc9cnFqu2U\npc3+AwQe8xs/xgrfEa/ezZn+fM+l4ymfSJxAE9ZnKKr++y4qPI6o/Hh0d1df\nQNjztbgHHqRgofI7pHY/G0xNez4e4dsiXij11b3kkOxcJt20sZFdnu1SGAOO\ntosS\r\n=AYqq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBU6BClRkPFqm7bPMEL26Idz/0dPG5nPEvrWrprnIv1jAiEAmdjjg144HxJVi2l6Oojjg9pZ4KHWXj+2WIHw4sKFBZk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604597249602_1604597262607_0.9066714488509613"},"_hasShrinkwrap":false},"1.6.0-next.1604613519926":{"name":"playwright","version":"1.6.0-next.1604613519926","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604613519926","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Y8kf4SdbTUZ9cjsnLtR6BmZb92bHaRZnalx8pblP9JvPnLqwQBB73RG+WBuVCp8rUAhNMQ1yHd5Mp3kN4zw0rg==","shasum":"642d9b34f27093357f2cbcec9f057a3fd790cb9c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604613519926.tgz","fileCount":170,"unpackedSize":18968715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpHWfCRA9TVsSAnZWagAA67wP/RmPNcaYFVqIkOqpmIFp\nOJ3S1ekqU2vCMHfEQX882cKQB6E66iXPBEf2pHQqn13P3kYpELOtdGdWIpS+\nVIxAbVv1WNtjZNxOmdL/zdcFXwtR1dtEW/fC6hGYcuK4mIUyAGdEbDT9wDah\nQ9XA1TsPW9eK7myQfDz3Rkx0gxDMUuyo/Tt7mDQAa2pUxrC1h/oBa8QAz2rD\nfL3LOE4FYCxXUBZilaWpZhmFPsh953zIu8JR9a9ZFuZ+uUtHCmCmOeTxJgpy\ntMKiWN3Zdda/9zD0hlqakhkQNKgNQ5ldY9i+P0xzWokpWrGsTMN1dtIRecSL\nDbJtYeXd0de3j3HPXSE2h/mR5ywNcPobddyHmjomS+6qgf6K8jTX1ZYQUJ7j\nONf/gSE1wmQip+itepncW9xhr58HUnwjmHScGX00X5PjHxVAq8vlTFMUxvHu\n+m1QP2DJZcjcT7GQYvmsZhhlQVg1k/JX9T746hnP3Mj8W9ScLbhjdQ9seNeK\nyCE8Yi86Udg3Qh1tkn+xR7Eqdf4U67wXbpBaHcgnqm9ddDXoIn8eKv9kCEyy\nUqtj9GFlN+zHsxijitZxjbiWuKoT0/5PNkCa6ovY3tI+fv57p0izvBxuu3lF\nlm92v7f2FEcNVNyCjiHLzZ848VC7YcoJr2rKsvQi8o6Pk7WS9y6ExpyiaVGq\nwWBz\r\n=m1Wj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtFLo5DbRDA04ajCAMmVbGzbKWLp9AHLDY2vwVtzxiRwIhAMWRWPIa1/XHLQ0cTZcgbMEptzOpsvqlbOT9cq4DWtHu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604613519926_1604613533794_0.8666887327787689"},"_hasShrinkwrap":false},"1.6.0-next.1604614707459":{"name":"playwright","version":"1.6.0-next.1604614707459","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604614707459","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-WXbm2X9s3P1QAb7fv7uqFbT2ZyGhYqzb2hiPe5a8lPehqJDM3AYGC9kK4/HUzi0iArX5bePA49xKmwa96cx3IQ==","shasum":"3f7e015f6c9b703c81efe442d343b5cc9a4542d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604614707459.tgz","fileCount":170,"unpackedSize":18967051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpHpCCRA9TVsSAnZWagAADVsP/i0+fG0HrrNlq6EN3jt4\nRLTGRM9/pveCZH4EvU0FXtjomD6q4yxFRI8UNG2tFobuI7qiN2UigpWOQWDj\nkBwIkg5RgBWceoEpMsJ+hHGm/qDtgyUxKIENjLW/1KqJkiVPurHKHwamTxJY\nZPHiZovUwFSrM0DLbQ/AShX9H0QIciZAJQXkkXALFpJpGOIjk+wAs42XkV2W\n3tOyjMF04mbaMXiDOUrk7e9dEoBrfyBXDmCr9YLuunKfNk+3rvFd8TYDt8nz\ng6Wz4MLbE7O26jPopCjHh1NXauWhZfjryjtee3Xek2ca8wa+/tEuFYVhVAcl\nntbLsgS1iVCea6qqcLYiXntOZEYeZcAUF9wYyCrbRraQH48Wu9w/6hCLEJv2\nhppiVnyXojKqEEwlpGxkwoHkhMeGVf0OliD/H9ux55hQ5pFlSV87WEboEMCw\nwl+V17y4IjUR0LyStJaGT/Z6W2lCQAj001RRoYd7LOo0UmXSSasJKw22icd2\nvHVIPabjrzKIZTpYHKRFkAqUhk78+tm/DZCVHQIojaD8YewUxPf3hBZQp5nG\nk+U3sxLKWnRvRI+KECZ/MYle4ZJwYbXanG74xevCkscnE8O5MoiNqDWBmzp0\nh+QVeFcsTxOXMI+Q4fd2EVsHKSoeyrHCpsc0IgVk5coAjeG7VyoTVDgxyFG/\nK7GA\r\n=pbFO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE5Ny4vpyg9UqQ34tTVmyb5GrEHp2lNs0zrZ18IjFPVVAiEA7xZJ5cvlTyXsqxKLmhAMEyRDQzvGZI6XZ21sXIlYxhE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604614707459_1604614721904_0.5123456581985788"},"_hasShrinkwrap":false},"1.6.0-next.1604624014221":{"name":"playwright","version":"1.6.0-next.1604624014221","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604624014221","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-DRYrf5pQDRBBynPGohPJB3Zff+YjbPW/rZQTuHfFZk10oRoW2lUcwa7pP3ywRY7SbdeRceOfMrX0udnA+RmaEw==","shasum":"4bbd1f6ce8a3d9e46a953373151cfb45aaf71491","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604624014221.tgz","fileCount":170,"unpackedSize":18967051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpJ6dCRA9TVsSAnZWagAAnr0QAKCZOe9tfy3lasl+OlHf\nHyEUgoSn3ooYOCNaX3oxbGGDiKPUQ+RDvfl1axtzsloZSe04jYk+3QtTCcWk\nzqKWXLMsxeWSMe900+RyDarZNlFsev9khzO8Dx2IzajZ/I11m5R5OrRXf0Tc\nriqdZQ3faLVxC90G5jx8eIrC10i3/9jz5OZLszXiMDJsxgCtp1Q9tbyl2HuH\nZihYql/0de43wpVWcd2zJxOLNWltx9wJeC/nIkc6Tw8Pts02PPupi+mwdEe/\nZ9bzhu21lif0dx/q0CLMxtrT2BaTq6Jb/Car4TJnNMpME0TeHlrTTLyM+OYG\nn5IkSe0SztOEYi6FuB7QquLFmN50kpe31jejadHsyNRqsdRVpFB5d06uRASk\nNxFAOVrVxizp4Y4t4ak1fyjWWgAJf0mvyTQmg62eWDLUbdvdjVN/l2QPrqet\nIbvgaro1qRhxmwI4uPRuXVxRssKjgkKAtyHGowtnbCKMq/99Qs8MR2QWkJLk\nXkbE+eljm0DSZP0Mnf9yq/tK2groDglN4WMPgF926zyn0wTApuux1HzwmutE\nZL1sCko1hIn/vlUVZx8rj+BLDBdIzyqqrONAuppLnaGq/yIB8DPTdzprDQHY\n00YwAVkPJ6YcXt+uI4nwrOq83OP/ON7RVNV4y9GfheaW8DUyPD/5U1TeVOZe\n9PH9\r\n=zBV8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEzxdtfZfxU4WlAvO/7NgEHMl7kvzcaBmlsy8vJiFBhPAiEAj/SmQ7o7mLtavQqvOFXLlza3CVe3jz+XCTzUpllE8bA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604624014221_1604624028780_0.5723848972536616"},"_hasShrinkwrap":false},"1.6.0-next.1604627072033":{"name":"playwright","version":"1.6.0-next.1604627072033","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604627072033","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-6zp4pRo6M8FWFxhs6s0C+hzSVT8srW9is64ut8w4Y0as9fiXu3tq6xSgwsYvsFKPkxt82K4LihlRG+xMlnSlCQ==","shasum":"41e25e8ff524eba5a0674aca0bbbe2e49e1c7513","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604627072033.tgz","fileCount":170,"unpackedSize":18967051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpKqNCRA9TVsSAnZWagAAeI0P/Rktx1DdCjleLz/XwxN0\n93DcLKEx8xQXUzDl4fZcloXZQIMGQmt1A+jPD+seT8WN9otpB/R3DNTVG6t5\n3YQx+gD+aXb2HCjupJFn3uZSYLPVlTqahhj61cNo+6I+SRQm2uDUksEwcBjG\nZlMIkNcLzydSTf3wpA+dPmpTyVWAorHojQmU1WaoSFgrkSU8WCMtLl+WqP2t\now5rb8NIXKPUCYQzCV28admLSXzgAIqpIoJfoylGcHvvI/DzgPRyfw1QEFt6\nf7iY6ts4Dnb03NHq2v2+XcyvlfcQYCS5xujw2oioRmfT7bbVsq2i1LBi4X1e\na3Qa1BBNkwmC6g7wFWKBy+knjtgihQ/ioNaI55/CVoNhoxluhi9sxVsiOSE2\njxWLw5tnj8sOMfS9dmhftQ6xzC23/c8SbX6FRprN9d0yxz1iZTOGo8Q83+g/\nlJC3qXP7+GZLtKMNC1DWAIv+Gedy3M/K6XM1v1YnsTN31J2M300qK5ecidp6\nMPgaD36zb09MviM9UZ1rzFdnwO2ibyW5pv36FOOGoi/6cpUJKyATdUuG0720\n8c8hGvKBoaLh9wuODS1OqZka6mh9gLKuICMhZUygf+dXX+uH11UPYSndZh3a\nRbyikx5kVTiJdhb7x8GLud3GdzzitXaxLWAOd9BOBrnDobsuOMb2nCFJwB1h\nyvRU\r\n=NkM2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEi4c1J464TgpH3j51m+AJpoC36/zxzX7wYz2LDzdh5tAiEA2Q2xI2S6rEZa6sTnyXhFUYpERGkvIF20AF7Q8hqcb+w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604627072033_1604627084384_0.5638640297029192"},"_hasShrinkwrap":false},"1.6.0-next.1604627875630":{"name":"playwright","version":"1.6.0-next.1604627875630","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604627875630","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-0Uj89IEGav3IeNzsNtf7LY6DyGvzJFc9qrigFnwhVtOTUcZpS56OCKlI9ztoOYeUMZzyTq47KxIDcyjkZQx9Fw==","shasum":"32591cee58151a039c199e839ef240fd1f38045c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604627875630.tgz","fileCount":170,"unpackedSize":18967051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpK2xCRA9TVsSAnZWagAAcRoQAICZcYjsvQWiztNRSfxz\nER+3cFX/3X/jW+fYhN/SQxG01WTB4X3kwM4Oqc7oJjZ1SkDgvM4GZzdUL1at\nSUD2mZ77SHpGJfSl5fDsFzpX7xg2GhhM8GwB+kayVpRLrOJZ9LtcjvQ2uaOd\nMQIRAEe3LTk/AXt3qFhe/dUTkefR9/Q+2fY93WKBI6EKbNLkmqgJ+mgelJqp\nA4gEF0Dt2ejL9Eqqb1fp9xTGbEH4i8UAxM3pRSa72ZMu4ms+SzP+f5ltd5gb\nYkADIvB8TTh20Nrc18UeobscrxkI7LQMPHeqTmtWrw+c4sO16DdO0v1AKfKD\nNxaX2fXCjP2X5updXuXazU94c/7PLuew54Sohu5S9IfDOKcBZE3HPn+p6mYJ\n8Gr1N+iNT5bzccVOmx2FCbUPkNw2ENutlvuXFTyvPp0I7M9j9SrIWOWJzVRd\nXoqnxkEkcmlrS3aYQR5++GJiWbfXwk7NF0bDe15e0AbJ5g0Zn+xDvt9o8U2g\nQeMg9ooJQV4ZooxDoN3RQhtyYEPscIFPSX21lP15IQRp/PknFkZDU+Sj41On\n4hX0bvnE1Rz0oOEy6c3XYzST+HrtoH16auJXJzAbwW0LZEZh1Z+GdH7h2vUV\n9CJ6LgsuH4Hbg1pBpq+FvF3DCtY1qr7tnKsuYC4RxyVo7K+pSSbHG622ckK0\ntb9J\r\n=fuEX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8GH5BxM39gScWCkZDYQbHUxoztWlOgNzFLDxzwfK8fgIhAKTDz3bFj69H5PovRER5KzLSb0NZRTmBBmkPa077xlAT"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604627875630_1604627888658_0.13744690105157953"},"_hasShrinkwrap":false},"1.6.0-next.1604647172433":{"name":"playwright","version":"1.6.0-next.1604647172433","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604647172433","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZYf8XX3ELnsTUqCNshv6VpKvPYvxHVfvxRvoAw4OMOrf1gA2w4htQFQS9wxgjv0dggyDNm8xU1zbl5J3CWRtRg==","shasum":"ff2acb9fcd1b15cb5ee68abdbfdbe8c184c684c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604647172433.tgz","fileCount":170,"unpackedSize":18967051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpPkVCRA9TVsSAnZWagAAOXAP+gNtlbjp36RsZ/tqtKlq\nUmW4xUAVqwn1m1vWO9NP9/v1rPFal2oJdhxRRg31nGrjeDfWBPxyazgbaI0X\natD8MQIr5Pcp1eO0rZIAlwAVP1FrBEE3sWMt6GPec5ziPnWZnwg7HQ0aEWV/\njimAfv28WWjxMQ+2dxdbj95dQcwB2LoI8oa43CVtdaaO6amXUx9BHmKvUd51\nqHRbTlqyNqK0+d1zbLcuzIxYz5JLbbontZNSmwon2Zn61yh5u6c2uHA5pQvs\nEN0UmH8oEsJMfL+w2a9JKTZXgX/pWeTmP8lN0wBYw870BhsdV7IL4nb3JCDA\nPWXHKzU4HYJPnXVc2JM0QJY+dqWw7lUn5ZQJ4WkSR9X5cM7SCTmon/Yzh90E\nIiOKMSJTV6ZiR8W3ca4jwQImq7DjGJtVpqDzwxl24N9CnglxcoQI0rk+dgYE\ncqBJPcpLz4aKbs0fC9IT7MBlU9IzRRca22VDBTExfQJbOyLxoDgbf+ODr8QI\nzKbtXyUM4LrmnoHaLpFSWBYrCJBOL9/MO3YfUYi/HpuMtsAfMkHrnyk4qBr2\nOyt0sRZkGbEUxp7HwXYtcLri1k8G4tc2bq4ZV/rtvx6JtMf2E+xoZW7yHpWW\nsvNJJmoJ9Rl8DMHIHKbcWCU8yyvN2RkLPeP5Wwy6F7qf80CaT7Vlk/v/x3E3\nSnm3\r\n=wfBx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEwTUINFIbd3eL79ZYbXokP1wgTeVgiubQ1IMKJwleXgIgEJEXXElp5EKVX8jHdePA0DUOOMn2eNquUik6ONb80dg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604647172433_1604647187627_0.013920581824623302"},"_hasShrinkwrap":false},"1.6.0-next.1604690007234":{"name":"playwright","version":"1.6.0-next.1604690007234","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604690007234","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-nLZ8JqweNNa2l4KnBzkZT+42V4K4W9d64phA7Zbs52MMayfB+YeQymsT2lTsxjWUXsO1deK8x23gk1TjyweH1Q==","shasum":"dc66911bcefafb181d1ac6d863f29acb224e64dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604690007234.tgz","fileCount":170,"unpackedSize":18967051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpaBnCRA9TVsSAnZWagAAFD8P/0+MkZaNuIskK1LCrBdP\n52XNxz4zFFJsk8voyFc7D8fpmfsv0vspLFieklHs9V1iSiFud7tCXLm2+Afy\nvSlZCPU0bXiSkPcK2/pUqxudrNSMJt2KmMQ9wPyMkDWx/WF8sm97Vwk+Q7Kb\ni79SRVbd2HS6u8xMgIEphmE3oPdnXAZ64jdeGGV7xmYxMcAA9VAIDICTYe1L\nLkHBTsSDN5cC90Geye0t2YV0L/Q/QMHMY7Jbdfp6G+r5szBnRVHz1VU4zWXc\nlzAoDYtcrzsgVBQGyp/1nojQNkHUJzJyKbpCLdPCmOb26/SEsbMQu/ZPxlS/\nAy22XoD4FgqB2hrZ3brzwBIcdN/vGANicdQkz9+x/j2R1qJJ01igiinZ+mFP\n1SGyvfI5xPWmNjVv6ZaXWuy/N5lJS7zR8H/QS+Cq1kp5IBiiP/q5EyvOsoze\nH6tV4VsF/2zP+LQj9R69fBN823bep9WKgUQMvfP4U6ku02/DY0+GYLmbeM/3\nFDUMGNk5TYSBKeyUf8YYasnJJo/2XYaPqjOPyh0TsIWaVubqVxxSMdvQfEHx\niRl/BKyGtt9JfpoLWvP/8AiQ2PrYuN4lsbf04sany6rW/0qYxCbGyr9uWEGW\ndxuZhA3mv/8nGwLf6P0YSFH9CHwz6X/DHgO4IwT458voQZpfrBGzUAZuu7Gc\nTw/4\r\n=Kvxs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4A0sGI+z/Ep7um2kOfCnR/t97yqNR3QoSPWUg83sLgQIgI4smFvYfrvRFpMO9jZvqq9LtzN+dUpAEwIVnTjA5iFQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604690007234_1604690022743_0.21453591219489776"},"_hasShrinkwrap":false},"1.6.0-next.1604691766673":{"name":"playwright","version":"1.6.0-next.1604691766673","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604691766673","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-DEhyZsUuE+a/cXosEQTpt/kxYzPvXPyn+wq+7J0epT6XYBeMoyAaJ293+G0iNGfkDbmUURx47JmFFoTalONiQg==","shasum":"8305579e0cbb028f06f436dd689d5060c6b7a4d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604691766673.tgz","fileCount":170,"unpackedSize":18967051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpadFCRA9TVsSAnZWagAAV5UP/2cVKE7IUWu2RXHb+qnV\n6VGnMCAcGqvBicdpwaXT9d2aytufjMc8JPbRIzEuuWpbZQiY+Z7+UlGjWEzT\nxHhORXVAYKhDxWvhQtqV1A+KG6WTeLDFWMlsYnq+5d/uZnUn4RqyMS6Y4ljF\nkBg+IDweaQAIRu+1voRUEiUg8bgTbAYbrE6vPw7oAI8SKmooywfjfLBS52J0\nJvIHHyqn0FQ1e5yfH04BCzL1hDQ0i3UP/V+EEQCa19n+NnNIw/jP9nedRilX\n8xvuv4aKrciezGoSsNAHW/IXh4+XcnztHYNE0N9XJ4tvkDnxTkHqRCekt/ob\nftBDgem66xYeJxK9+dzSPIVrURabw8UoGW+rYgnyLhXS533ryiHTPdM7KfqS\nfrAAleMn04h6AollD3Or7aSrS6PbrwNLBUhxYYweiKs1Ck0PIepgL/Vs/Hcv\ndfhzhjHmU3VT70ljfwzhzUz4JAH++kIyP3Li9Se4LX5qgX6NUeiV92GU/5r7\n/tNs6qINjnasF9baThQt417Cp0M45AADLaS74tklRqPLZbEsdYPSVxjXHXfR\nF+3de5/uadUs4s+2B01jIatn1CYwlGCkEnpVLOi/OjWkMc2AklnQML1p8WGx\nTD5PIZEGg+1LnJ/ZG/EghwD+Gxe2PmB4bIrBK9PeiJjcXNJVWtwSsyhTR6s6\np7zk\r\n=1UiX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7vaElJDKqGBgylsP5xM13pcUiRlxeFAVQUM2GeZeyEwIhAMD59QAPerJvUdzgnyxHDrAJ0frYgjAlud3RD8J3kNJC"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604691766673_1604691780389_0.7294738360500048"},"_hasShrinkwrap":false},"1.6.0-next.1604694738089":{"name":"playwright","version":"1.6.0-next.1604694738089","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604694738089","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-uqW9190FDRN72DwXzU49fvyWR2jFgAIsls0/Bq0J+yBkGqY5aIWbS9u5yaBaVqhRUja86+tTzZD2pahmpDLSDQ==","shasum":"a90ce6e749141eea00449b97eb4406c7a5e33a14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604694738089.tgz","fileCount":170,"unpackedSize":18968409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpbLhCRA9TVsSAnZWagAAGLoP/AxOkoa6+Ol1qoY0HaXD\n483kwjvsBU5OjP78qGyN9sA9MH1VOMmz28mzXhELENaE4X/cstDjXcif/M0q\naIJAFK3I1zFm9P+TzS0dBKZ7XG6wl2+aBeIhkrFCYA3sw4/y1sg46+2/aQJl\nITiow3Dh0wtZ1EviLwdoU9vyrjSdao2Jb8NtAb6xLYqq+OtQYV4tj1s4zAvD\nsvDZK4BZdx6FSJVKKfPsg21PKBY/oy8+X8ubE6a/Owe74hoHR4fh4Qqkvym6\n3c0dKXPK0+VHAepN5GWdQmmE5TcHgs5NuCWVyIWSvu+MvMyFZ2S8hiBcZmaz\nlW6WCAj4CPIjq8YjZoAiLjI6OcGas3BVtseuc4O+i9YFueN07S5Wv36oBFaq\nD2hzeONkgWuxzmEAgqdt1q7GOupArskEDvP4eW6Tu6OYazh5gpmEKZk8xc1P\n295a+FLEeSyrj9hNjKuJ0faBquHjP/NCy8zI9jL0CV85uY7FybmfvUocwbw9\nBBCD0IxpUc1zDcRaKcBIneum2IfvMk/XFIU9D9veWm+KVlO2FI3yIHQIXoQz\nmSEB0ffRNQ+X9YElDNPzUrVhsbxWHUY4Y3nM3+PAgTrKBsBD3HxgHOZqhd1M\nnJ1Vi+yEHWgLriE4u+tcyeOjLLcdwb0mL0hRUOlB/mcI3dYmmPzHZHKRZGxm\nOYTd\r\n=C22x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHQ63Q3K4wliXLRQN6yDECYgS6ttx70pGpEz243kvF9gIhALfLscpA475JpGYmdjrSVW3qXPtBjamjE5YDpadRcQa1"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604694738089_1604694752911_0.6964005876931907"},"_hasShrinkwrap":false},"1.6.0-next.1604698752941":{"name":"playwright","version":"1.6.0-next.1604698752941","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604698752941","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-CsSKI6V+xkLL++HrlOUnkZs/o5bYsGZGIPkRwo8GMnR9ywisN1Q6fki0nkYnW4IfLyGDpplkeNKDXEXIHY3wjA==","shasum":"e3323e16f163cf2669f8a6044517cf75ee1bc5de","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604698752941.tgz","fileCount":170,"unpackedSize":18968433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpcKPCRA9TVsSAnZWagAABIsP/0GTW1Z04lJtgctKCTAv\nBqI630f6DvXl6ialrSTAgWmM+754rqXTjkeRh36D3Oz3JXpKx18PGMSxBt2G\nlkBCrbf/uf9XktS+PsqOY6TqF9dp5Q8pXM703wJyIYmTh01rlr7jCfOTXD3y\nNm1VubiMdOzVSBFy9+nNXC0LzovOeie3n6fIHhIsSnruQE52XI3NWCRguMFY\nU4AqUDXczr1STB2+7f2FA6OF3iw9C05hIiDq9onAMX+zXpeoGXaL/zHH4PHV\nR6D6bhT/ugHmDG6nIhwL++2C1SijuxOxTW3hWNxdHTgxGzYycqwUsfLO8wT7\nbV/LLU16g7rcfDYUntTGHqc9gcv/pFfNqynAZk7KIxPAxe+Y2uRnMcOWpHGM\nfsW2SBL4cTsgHhDnawihHlzCXCMtARo7fvi8NcRYFFbrSOOV+DHd86D7dZSf\nDBZZIthv5lYh+wgnCo15fYepqanXeXeBaNs68sBemaLvoPmYfglApItZeFK4\nVkWVyKEhdm4vOCH2MsrhTMStnJsX3RQVRWOzJuwBFXEozmVDYrfGZIdqqmq7\npRSa0SDp53kPb+EKkw8ckUqmsE2Cm3TrEgtskHfg0K6BDCheLVz7+NVFqqHN\nwkGZ0ZMC008ugBPOcSTiAju7ksFkamwEjNmamKm3A2apHiVeIXeN1u1OoWn+\nMfaZ\r\n=WM5g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIChskqoevu03a/PmDoSd5zh3lpOV3GfWVqbikFQpKLv8AiBqdA9uGIDf1+ldoVWwvSMNah/WqaMHgF3rsglEMbygjQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604698752941_1604698766608_0.20997173601138353"},"_hasShrinkwrap":false},"1.6.0-next.1604704189053":{"name":"playwright","version":"1.6.0-next.1604704189053","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604704189053","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-G5kFKpVTujUhv+HkYD23YesozCay7IXcT8bBV61FW4zokwpkftYif+b3IOH/KOCJHx5cMcGClEpG+8yV77k8XA==","shasum":"a22334754d07024e7e3f692dc57bb6090c914c81","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604704189053.tgz","fileCount":170,"unpackedSize":18968433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpdfJCRA9TVsSAnZWagAAQ6sP/AughleVANsbekl6MxFO\nT1Xv12jVRJejCbrFnGpCNvGm+Sh7QkWXwcqt7VGCaHJkN5EONTAHZ8t38QTu\nbB8Ee872C+GUmCf2E81RkQibSZHxus8eNlApp6Xm7XmVn4ZVdsa8GyX7FpQ4\nb8D7bKRT5501I1Gef5KuVUNh/ARbWnyqJJ8mcVf+Te0IxV1aQwzXUcxXq9ro\n5axaTukAKkz+TlhLFYk7KJEr80yK+i1A4aFRdQ2BeYgTLTT5PtB5bSDegc0E\n3+luFeuCkKwu8o6ZoJjaqe+W75lRPBD0Ox9mjaJLcD3p0A7lRhCodmWxe/dS\nRuh3v0WQjqM//fTd3d+ec2hN3kqoMoWdoRLT0zJFCakntMLVU6RQ5ZbQYKLX\nDpMibCvxFWexpp18ZNtgKSHd/FTV3ySwVMUn6F+e0/vM0T26Rw8X09TXg/cG\nL96D8GBO9uVdepTl4dgy4Hwgh/N2bMhzqT5xGxc4X0ykqQDtEbLer5XJ7tfQ\nw4ZSKIlQpbRX7wkhKnE0DPjKZwvjrrX8ql3P8g2i7wBfHJ0Dn8W1E/P78mPY\nVTqNZ+QPZuG6GrWtFDJxnW619bPehZeheoD/9Cd62hyLmEC1ia07TCCgJRvU\nEYUXgECcxA4naeNZS2e5Su2D3v1F4R/rPyFV08lZAxGn4/dNzUsO1Em1+mkj\nGxd4\r\n=Uirw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEehaSJaM423hckKcZir72cGBl1lZDQ5diBVbDJxJrZAIhANVpBintl9F/5xy8c+e6WASnEol0J8hr3OBm8YbE8QwP"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604704189053_1604704200595_0.06552536291496946"},"_hasShrinkwrap":false},"1.6.0-next.1604709207505":{"name":"playwright","version":"1.6.0-next.1604709207505","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604709207505","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-HEErkLhTrImFtCPlICpZ1Q8f8DJRMvWCRNBIH6MW6vE+0BZyKJ6uDB0OHmmJTo/kPb4EFT+S34yR4U8jqu0KJw==","shasum":"42438f37ed22c50226143447b334bf002378ca00","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604709207505.tgz","fileCount":173,"unpackedSize":18982204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpetmCRA9TVsSAnZWagAACZgP/3ajCLl73x6ONm/snn1T\neIvFeExFi//Mj52uQd7qgUERs+SjviLIXPSOpHiR/5CGMyWuROQlDS3VD1dz\nsF1kZl4z4PqHI/I/LzcO7x/15LQZnVnqqskxzg13WNREoCgci1E/VP0PWBxa\nD492vv49wjyr/TnzKyU6cwBKO1ERzzEIptycrWckUaD5C5qT6TNlRaq5CzL0\niWedXU9uiWq0gJ3eIuuS3Y8yqt2eQtvS6F6RsRr8cW/Jn28SsU+4T1/APLRC\nGkNLu0nv6HpXsDG98pzHgvaqaSpD7OAqeL+LV1lDFe42c4SYGiOScFBLzk/n\nkC4oCBp0Rw4uv6ZKQrqwRb39U2M6gQlTy6RSfd30wv9izf4GVxRNqqJ7xbkI\nkUwMHwMoB7C3fp/bE2mJahDLEPFgsKeo1qN65aW+Q8gFv+wPGUg25xQhSc5I\npgdXqNhClbzVtPT5Zg8OX7Eq+rBdGHD1GiknmSZxLspdtgoPPE10gvuaqyf4\nbqD6vjsxGZ9UwiHamef/PX6Lx2aR+PJ+oUrtgwRTK/0nFdc+v5wm4a/3zNKv\nUufQHvX3MAalci/NMcTJEmWb0CzSJ1pOfNW3/AuFl9VlepXLh+CNhF2ZIHTM\nVrZzqvDLrjFU/rWsxFcA7kZ/dYLc+d+5IbKcJh67mMy0/L1jaIb0OBANZFLL\nJU/Z\r\n=V55U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdGJaEVeZms+zWnhUIqknhWvThQvPzLkWmQEI0vmLlSAIgWU6mj22S9aOsEH8Pz8NopCEfzF06Rh4ScvgbKn4ma5o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604709207505_1604709221000_0.35790561981042224"},"_hasShrinkwrap":false},"1.6.0-next.1604802196731":{"name":"playwright","version":"1.6.0-next.1604802196731","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604802196731","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-eV0OXZ+y/k7+OKBkk6i0ZtGjiwwgsRwlVYg/BcwW/xYNdsIN+tDlV3WazGWfJstW/Gi2C4oFiSSiKN9a2k0ciw==","shasum":"304e85b0fc98e227a76190d7a0ed9ef37129ce88","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604802196731.tgz","fileCount":173,"unpackedSize":18982204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfp1aiCRA9TVsSAnZWagAAnXUQAIRyzf0isPTvwVagclqR\ntjsCps5ZInKqNcwmSVwSYpkRHV8DeCTG/eAypc+sBRzQmMgCzMLTc5MF9Qvs\nxGfr7KfE5T/hMpZmuRk9qHI0kZAnItMv9GZ7GDj/bxCprfDdKJ96RifeZHhm\nI9Hgm3Erz+KnRP05vJaO3mx4XdLdTHAD0gXwd+UnEvKFmn2S4ljDk7PTkDVm\naiy09LlQH1k4triClkRllTAwdyAS/Mwkey0xb9PUwbWf7sPdff19x6MSImjc\ni+Jteesk1jzw80h+oHcfAVgcjkT9ZSmF3v9PjhHqLzvSP+uZssgY95Xr1gr/\n6v1fIHmlIOgSUag7OdR9PZUexJCDZR6SUFyP9bDLWLyyxhi0PJUDiUw/A4O/\ndoQGs78nfGjaigO9WXzBj0UyS5V6BedLozbRxlXdC/aEYdyX+8ZM6jwjndCA\nisEnH+rG36vUrXmEQ5DxRcrA813Xpi3Y0usFbMYgohVlnp2Uxf4awz6U1hAB\nnWYxz8Ch2uWv3Bzcy9Aojsx14s18bIQRV2fAWMg4w+mAOd8815q83BAHnhIw\n0nArviBzpGztvov26Vb4GQg57imtZ5Q5kyEKJzsnWS46qULMwxIomcELFXuL\nZY7gGI6GpRJOcPrj6pX9QXNphbSrTD+fZcI85I8uZxoB31mhWVdatxgE5z65\nyaEE\r\n=9Lly\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDl28hButQ3azP0Pftih1exNwvOl/eTe5cpM5lwLx+MpAiAgqcbTgMas9VaaV+pTHqBUkWqNGr6msqiti1pI5lVBhg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604802196731_1604802209734_0.575883872189989"},"_hasShrinkwrap":false},"1.6.0-next.1604943090584":{"name":"playwright","version":"1.6.0-next.1604943090584","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604943090584","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-VPYz2Fnt+g5YCkYui8lGo8FiGaBBsbEBxvjDnuATsbX44e6wJMzOkgs7BJms1YekXcYz9/Yubj96NfkRNV1OyQ==","shasum":"73ae13f4dea530397c5eb26cab14858b54364a39","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604943090584.tgz","fileCount":173,"unpackedSize":18982204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqX0BCRA9TVsSAnZWagAATkkP/1kj/DkFjb+N5tII9ncr\npknZdI+PyL6Ly90g1vEAK056d+4BJXTjxUyDvjiTKkaTol7NU5PngEBhpxzl\nZlesG2LcirayaiJxP4wzZG/tSgkJyJwGO5tfXg8KZQzaUKf32lhQ24wMNfFP\nlTlNyXnNLbs4+chptuyId3oZkhwdRS9Pd+6/1+AHp7wUUNvjQPO7euxRJScl\nd3Iy+fD7hh7qBgJ1ZvNEaLJCt7N/6X/RPJbDhzY+hz96GXKQZ4A8Noyf2KVV\nBSi1aFE5nePzFVadrcL2mqAK5Fjq+7ZwnjX60/RzvcOqRG2Q73jTJUNhuCmJ\nkoRX+K8Zb0fFXzWaydOOlvy6UOGUu8LGrxORyqKeh6WtcCnjRrBiOMcQCxn6\nbearvbVRhFNIJ/LP4zD+xZ+jC3dWEN/w6UBP+XEhVAlq/S046N/CflAGFjZo\nzvLNpLWOL/ySGNVwHgAHUD9JNchh1rABsjLJSdNOjx7+qXOXbM0PX6/OjDsn\nk4IILTMHT8WMIvQzLE3KjDoAD0eGUi1EKlDOCpaQshCuK43kQvqVHWDXQvbP\nahULbQwKpM1k7Kys6G45+23djbEUh5Nlaeb4Osy23fF8+Wf0u79psNYmAq7Q\nFrvJrdXR7dWKbMWwksMGOAje7vBhyzhiPNWnYK2r4eFTpoDPixgWaIIuuipz\nxaAZ\r\n=Wi+l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDaIGtI5cfINZGzmKn2IxNjvq4t4Qv/a7P9HfpXBnYBuAiAspSlS5y30XjiI16GOhKdWDvIHbsVdqo/dFMWDMpY1gw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604943090584_1604943104488_0.4523993685444907"},"_hasShrinkwrap":false},"1.6.0-next.1604950360086":{"name":"playwright","version":"1.6.0-next.1604950360086","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604950360086","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-hE1KPw2Vr908E0G3NivjLiVA4vJBfaf5M8b+MVi7kiUDY0fKzr21N+oOBTpEPvT1N3fYbcXSNaJatLjSVmuATw==","shasum":"5af6ff7b78386d85e4770843b339c571501187a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604950360086.tgz","fileCount":173,"unpackedSize":18982204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqZlnCRA9TVsSAnZWagAAeK0P/jYPCC/weKl6wcWQnvib\ndlKOOt7p3OEMrbTiD7nFqfBIViH31egTExvHSGhjTMCXUIXbUEAKsOmKbdvh\n8gN7xe9IPOXU9L1vM6zsB9c+HyDh6q1oXSopZNuccAmiAv2N1v6QpSIrcmP6\negcgTo6tDVOer1F7xteXESf/K+XwYGd/BxBnRwSm+b1ihHCNPor5pBY317kA\nq8YaZh93juFXRKMNGWbxrxDg+T4Fq/QzcyYpNILpQyQHEwddGmtVk7SSn0+w\nysgDOLkvnQkfQ3WdIfNurTcGWW/jZO5FBcWYwaDulRX4b6k0Qk80SVGYHu87\nG6dk4sGHcHd0TlIaTSajBe8knA/y8LHB1kTSg0+88MnSSkt16GW916lTUzOZ\nUhg59zU+Si2+peUjwDMFKl8qViCp85Qwc7anBBl6eEFe1w86qlXFrg+vYFID\n8IFvV38D6/ZR9Lxwy3lycHF2dvI7JP2ryD/J0sO8I4tChHk/PMuaVm5UwHbO\nd/4lGBnyod89CgZgSjxLGHCvsPK4+FixLbcW1LkVG1kes/puyFDo+oCWM7kV\n5Fi05R9CaYDMT6vwrVu6MpBivgZc92XU9eftETYREOY5KOr3E2RG6sHQVbHU\nDu1YlfsbbZ5Hk3scpLmboy1AvFOAAM0hSQNKpXMNAZm4B/6F9SHJwQw1iMoG\nyWMx\r\n=t3m8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSkQa3lo9tyWod1nORT9taMIffvspG1pQBNvdgSd5DtQIgUMmC1aKlw2tzxquAHWDNyQ2sNSMPns8wb7FvAKvzuFY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604950360086_1604950374698_0.7227780397508057"},"_hasShrinkwrap":false},"1.6.0-next.1604967485608":{"name":"playwright","version":"1.6.0-next.1604967485608","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604967485608","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-OSJuX03oZaVg2Ra4Dw0THCqsvwuBOSUNdZTGlNKhLnvmW1cGjYfbhasuZpNDEos62MPoMU5ytcmk4pKFVxWfkw==","shasum":"e5c0126ccf63d2595c3457cf620b1879ccea1248","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604967485608.tgz","fileCount":173,"unpackedSize":18982204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqdxMCRA9TVsSAnZWagAAEuAP/iuWElpAs/6l/q1d3cNo\nUbzsw9vpCI4tIFLrC6mgFEIWEdcwhwGBA/4ezpXuiws2z3PXNmrkCIuEgIlq\nHfqOEO5dvg1Od3N8vlXoIC/ETACJNu16E4tXimPrkBKUSGVHW8c5G5ry2eZn\nBKcu6nGxrj+A9ztNyDBhh8qJnKYqjRDiA/V7k31zQKF2wQcrEJIyfx+lEoh6\nDOQesU00RQdmw11moZYCaaivrT/PYYM6MJzmVTzceLyKfQhKEee5dJ5LpTnk\nQedK+Qa5SizSXfbrG7TiJ8YBe2Qq42+ZPVmaDOUhYolieUw3Apqu1pwSzFRx\nh1rlWeXL9g15RY0QOVnDloDd2akvj/b2dO87hWO7cwdepIlJVgGOEQqgwkby\n4V2T4QMVzz2FSPEvEQUSxPiJeZ3txBMMsTdCkv9fWqfOy7RlZoO7MSXqDq63\nTQVoHUannjt6DfIdwyZZGxc2qp7P/bLXUlgFg2GShmlxBLbJZBoYLW2JzZQ5\naBFP4RJGDuWUVZKeCHljp66Skc9nJ4oiujyVOaj+n8Y9lBqsmvAw7cpuwtvX\nXfoyBXbj9U8NYYbomsToG3GFASHcFUkiB/Wak7FNVp0BnkPbDWcZ675WoaIH\nC2x1cW9XALB6SQToyV/z6CP0MaW3YuQZDXHYSYDu9TeGkHv4pF6tMTsn0jmm\n3JDt\r\n=W1nX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC6vGv4zbYfoZMfQMfxSeBD/MpWVIqLbNG/inTtU+7KgAiAcBdzoIGiEZVtL3MKq/SlpNkLM/pqprE4qrtwE6MgmyA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604967485608_1604967498825_0.08671724604536868"},"_hasShrinkwrap":false},"1.6.0-next.1604969360811":{"name":"playwright","version":"1.6.0-next.1604969360811","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604969360811","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-9xrhRofrAWfIWylE1+X+aFpw+NogQ0jrJWhudJ7WxdegAUhNMGHT3aXIzjsAaxZ9U3sOAbWjL2h8+LCiQW5WsA==","shasum":"a7452e5b07cfdc5e1b5b9b21f79bf64b03d67329","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604969360811.tgz","fileCount":173,"unpackedSize":18982628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqeOjCRA9TVsSAnZWagAAd0AP/2OTLVmT56uhvOzQJSxn\npc1qga+fuxdPNg8yRINi57DHPyAN7wdFg0ozMc79FhuHe/MJpq77mNSTt/7t\nGfAW+SJIgdGe9kyIJpOl44qqnraBtIaIW62NA5B2Rxlr7DMLnR1eE3vipNo3\nDdCZtHrzcJLWfYPpe3qM5oqGa8X4ryI/YU5+JDfDnJNE9Sd5VE2BnspFxOJN\nTsG1uACUFCUKvmL+AusKQ4KEeIIOYf6GbZwQi7dCkTPi8IrOenM/8YsDBEfo\nC5wp2N++PhufP3PCiCBjmd4cOIuvGMYPlsqbLD8DCIdKZKUc0agMkKVH3plg\nynVfj1AdNo8p5BmIH/NaWlL6DAGUdWclthZmD7MSbGaIv7mNKSzryBJC8Kxr\nz2m+LQXU4+0kEwomotvKpZrQSUWN9/wmVbAfUGHd6+kR5NI0Dk/SfkC7P4BS\nfj0qE652/pWP9G5XhI4KI+QxLZpANDC2YAbmbaqwvq9Y1CI6CiwrIN9sTlPv\ngShNdtr5PvZDPnWFy7xSncmM8XFOORK6/Df0vj77cIsUfiNHoN9hnS23R4h/\nuT/qIoZtD5Z2WC4b77cvlPISV+ChCyspWp/EBIrta5vL740Jmg49AHYI9RZE\nbJjAPPJomf+I3gUmAuuiEoC/WbiK4PDC0LpsI/Rt6yB3e2JcQJmcm6yAP4zx\ntTbG\r\n=QWdQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvTrj+TZZbVwBwpXQfFEbK7SnLk9DN1CVGyd1RAIMJ0QIgGhqIyPOyDdUBQwyoQ7yQ52uQ+LtTehlIdpkG6m7Np2g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604969360811_1604969378105_0.4063828829397311"},"_hasShrinkwrap":false},"1.6.0-next.1604982598660":{"name":"playwright","version":"1.6.0-next.1604982598660","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604982598660","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZUUqwNia+hT8RM91bxXaFEDYO3LeelOAhkH8HCHGACnsWkIej1L0t+fEUW9+1ry1Qmmg6g09dJTCD7pOLnvoXg==","shasum":"f63012f0a377d4c51feaa5799eefb758b349d2e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604982598660.tgz","fileCount":173,"unpackedSize":18982628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqhdVCRA9TVsSAnZWagAAVaEP/3oW7XAR+hG8PeYM9grB\noEGNHLoENTActH1niEgBU4+ARvmzYoZ8Ybye227cB8CEgMnt13QTNwkeJYgl\nloos6zJ+PNVIFf9aeyBQUjUglS6V4MXh648Tcu3uaWQMeuZLApJ39/ZcSKle\nGqOZDPIDwIb4wSAWsl0eXEB/l5ofCQ3Bi8T0c2FyYdW0foEHule6tFuGlhsz\nvveCUOcVQZ6gsFRdHNEh+37zBdNr7ogmutB2mGSGA0m+vom3E3rke8FwUGcm\na2uUJjiAQje2PRkZyLmzgObpMyvZBDRx9sQs7uWX1AOQJsV7Be0e3RV6YktI\nDiFH4j38ugYg8c7dGgIyNJ71mteZe8AbYCZgBUiac6CzDst7X6MsDa82Lpx6\nZ9LTeCvFRXkpAJ0iWKmHe5INCKPgJ0eLM8LAsH3t7hFAyJa+PGkR3IqAXqqP\ny7k3OeddntkG6SQC7zVMe3Svy876tFwvqov+e84xqxeKtFff+Ck30taeT4DM\nPUjRfVwQnlQCi/N8MZ8z0aiopZ753HUMNFrzF0wVuR/RbPXQJmttU57sQhBk\nCQVzv8jh9IUqEwaDhCzul/BPuUWFbR1pM6buRuPXHW6EE62n0i2KG3IjlxTN\nwwpXioWfRizBqqZrHQKjBIAX7gqPAK+MnKrzExZlkFHQTYTZo6mZV2COl39F\npR+Q\r\n=/mt9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEvTKyMiUqIMObsVqxHmYWiDEgPz7gdC3bNih0wFOgkbAiAON6PkByHgvNwc3DXVAVTqF/91nSm+yw0T9LuARyniGA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604982598660_1604982612699_0.3625779385701029"},"_hasShrinkwrap":false},"1.6.0-next.1604989930114":{"name":"playwright","version":"1.6.0-next.1604989930114","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1604989930114","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-DYyzv9cKAhhcfYjHJLIQkFhN/A87+5RQ7XKN60Fiu7kaCCO4K+XYKI+5EYbRuOLZboEu5R0fMANDgZW1v9/W/A==","shasum":"6f9a337450b3ace17a53423e68ff456ac3dfa195","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1604989930114.tgz","fileCount":173,"unpackedSize":18982628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqjP4CRA9TVsSAnZWagAAOy4QAJWC/5HPFpr8M881iJzu\nJDklcnHOYC/6kFwPay77oGJcHWIjMbdmWiVeiwdkLb/VHjiL+Dz9jD0DhcOy\na/gq1woP5CwLGuXaaTXSxjtcbU8R4AA68FMJ6g5aE1xA1tP7chXV6AtDXdFF\n2JAjMJgYODn54BuCntb8UO1m8w9qL6nknH+12fJ0HOamK0AbaRr7fY+iXMBW\nUJamDSnG//EL9YwSCCgBbPq8XsdAIWAtCTHJ5Mhc3XkdPui7dH7DtEhBWXpM\nbOJrv+4BCJr0Q9r2enS1oqg3XAWnJcnThbkjqsRyc0kRTeAM8mQkfBqu/4F3\nFfP6bzhR9y0rwu/teUQrQNznuRY0Tx7q26qCIHNnfz6prQfXj77wficfhM2H\nE1uUVdSVQe2qiJpKCzT8Bt6ZGg4FhPRJ+mUd0J2ieFqpuv59AEr4NPTaDM5A\nTCdNi76+XzskTsG6efOlFsZzwXcDYBW8oSZqSFnNRebc1Iy0fI1UdJfhWbtz\nS1s/qoOAZweGxYuElBxyFSCgolPNkOAdcj2P3wBaP3PJET8i+KfdrZNOAm+L\nXBgNCEIhq5L+ECp36G298Uj7BKKBe/kLBdco12EPnPhOYGclZf0k9MW7qQ/C\nkr36SMM+kXBTOHxq+zP8pT+Qahztv1me0TDrsS8aIEIXGbFG1xBf7Ntzrb2j\nfXU1\r\n=VgsL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICoGzD9Lc6HDzCHHxppuSC8ABqhL8LVuYqCozvfSjg3IAiEA9Q2lFXljQrKbxvjl9lf4AaVYWXNL2q/wgB5TkV63qdc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1604989930114_1604989943482_0.6466964288569457"},"_hasShrinkwrap":false},"1.6.0-next.1605029612275":{"name":"playwright","version":"1.6.0-next.1605029612275","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1605029612275","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fo7pd63bkU9PCxdS8yLqLYFBvb6SFnSfAn+Gm12yi6hU0QSb6k61YpwxEDOTZ7xz+4Pq9jaCHXoLnpu9HJdfrw==","shasum":"0bfb4a0fbf98ea9239f67624d294fa62e833de73","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1605029612275.tgz","fileCount":173,"unpackedSize":18982628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqs7+CRA9TVsSAnZWagAAENcP/32PS12VWmjR1DtJyouZ\n/ncFSbpffWYyjPLt5kq2y5TZTNnFdWbjGeowfR6Ei/8wWOIP4LyESMiekfMa\nIQmymlWnsTZZYPY5RkOYKqNsl1J4pZTN6WYasX1FbIq/lMfm/p5YV4oqOzf4\nvSyMY87MAxrI3aQnl/79f3oXy/6CDTJZZih1GRrypCQPA+51KkBIIGtM4VdZ\nPv3Xo5olpImChVAjsFnG2CYWEu/x2F34+2XPQD4UCpsklPk3SWdmwGieCT3b\nZsfYFD4Kd/lXucjTOWLVVq/qIqqh4/yoHkLH4ynd3RXs+uYPEKcio3IWvPpK\nja2I7Op4FJ4GbVGjK8M1qKlJUNFwisv2pveHfBj4yaR2mGkJo53jhhKPoHI/\ndGF2526z4lMMH1LZXbFyEFx0ylH70ASNOVjdVcAWTYVChOIRom/SWKaCnaIk\nxP5+2pml83jZa5XxXHc0ubJ7/cprnBbKkQULaDXW1y9E41n/kLyALkpHB8M+\nSRZyxHgqHVkpOAuxj0r/SqxsHIbjagWXNDrcAQad5rajm2eErVR+5BtoYZhJ\n8DNDCO92efSwsWvdzyQxvb+hhPGWvSu8swfV5uvFcIW1OdcmAcubWvdU2n+4\n6+99McIdCXwGngeFkUNdqvz8WVbkkvhLfFGDj7J1VYeIEa49kZU41JnS//+w\nbM5e\r\n=eX9B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAf+YnjnGL+S0jErQvTYidIfi/Ppy1YrYHldOGtSgCCCAiBlklqUNa5sJx3g5ei/wWsp/n2UtaHU2Lr7TElCl4YhuQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1605029612275_1605029629530_0.5887715831959612"},"_hasShrinkwrap":false},"1.6.0-next.1605048563081":{"name":"playwright","version":"1.6.0-next.1605048563081","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1605048563081","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-FljbBolFFZpyi/8W7vCVIrNIjrF48aWOdvrf0kZBCguq3cvpPUX9rdr/0psDEHAjAGEHkZlGnNSClvkE0FMU9Q==","shasum":"d02954977d07731c5b7a8c0df8c092a2bc62345c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1605048563081.tgz","fileCount":173,"unpackedSize":18982190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqxkBCRA9TVsSAnZWagAAn7MP/3ugwvWfIXgnI+W/NC/L\n5ktRBmNGpE4HachKwuZ/g26H3oEkqhecij7BYLscy7ddkGZdZ4Ov0ttH4MZH\nErlKU1wYfvd2hYElMIuSDoMhotSHFywcuGdx9mb+Db/JCDnGgCCagRINxlAT\nJ52XYEvbupg0RosKrVaPskOwI58PFJqKeylTJlI2f4M68ckVC1Vb/xATncVu\ngGwuj7VcNS+TWESSH1awI6OLgczli97RW1Shp1XWcMgZgMMdDoF7FJ4bSAts\nBTXUtv2Zea4wFQeVR/FamUDjphH+ciKf2+wojiPLxgNu7pjAkFudGIMWES1R\n4k2xpxurnKsfGWh2/MbXRQxJm9yS3hPFyfNnCvXvX0CdxnaIv3sHRaDUnj+/\nTyS0jVG073LUvN2diSY1yz4tS1+jBN1pCdOV4rEW3ucj+OEwoKazG2vCDGX5\nDT8cQYHVREIN1/ddE9jZv38Eo9y62UiRJivqV+4SfC8YeMhwIMUXd/cfh04e\nX5ZcsmQmI9YkYxbWJXkoonfp4X23SzUTo71GOsIRxkveVKsoJ0aVPQdAUdYX\nDU1jAoapKEPEMSNvBKl3X943HQkmB0jp00QsGz/JSvSph1W2UTb28RVTU/Ba\nV5mY/8zkfvfmO9t8xSgYEB7T5dCSzhTNB530p2OfoE5pItQhGnCkFSMMnB4B\n/tP0\r\n=p/T/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC242VAUqaq4dQqqruSH6W1ZorXiS+hijvv3GXtvzRSbAiEA/lp1kTD6OvwwrPkWaeCVeT62stnGzxHIKgiL/rj+n5Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1605048563081_1605048577020_0.8659940750239683"},"_hasShrinkwrap":false},"1.6.0-next.1605123661119":{"name":"playwright","version":"1.6.0-next.1605123661119","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1605123661119","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-XRT7NBH9Ma9PwRdRspTLPmv9zse6oKysBkS0uhY6l/SRskw3FwvVokrY232cjPWG8eStzoYiMaix8QuvRDgh1A==","shasum":"51177df12ecb29d368d0c887824fd8de994e3683","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1605123661119.tgz","fileCount":173,"unpackedSize":18982190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrD5cCRA9TVsSAnZWagAABOcP/jdQnP9/NVKv4APxBYzH\nyuEL4osJnI7R/nBYxBESHI88h/8fcLF4bTFk3Cfbt3un+PpZTXjUJUKOcrG8\nC/Ic+8RnO8enoqcoi6EaZZUvgprWZaJJ+xvUsZDMe8S7eWyRfByJGI/yUh8G\nRMEMpqzuRlpMzwSNvcPxuspMC0hpaOvBKs2AibByBoTcvVNIYEL01N6j1+Zl\ntEB428ks4vn/sh3S6lIXtd5Fjbi4R3BZ5DlvTu+5EC3wxMUOfIUgjJfgPOgr\niFphBFWeju5Fy2o0PV4cIndieccu/rjAnrD5tmqf/QXM5IthGHkA63AhcoIl\n6sbCAFJ0gN8p8TuDLcvn8fBLNymO5SdYxV/y8ZfNfFZxZEOnLHnhjbgeIzZA\np9VDzZIsDxykiwTpkKW+JlagTm64qsDorUwSCeSFaVVAhjlCJSAXGefRXbTa\nM+vSxRt9fGekb8IJSDbXbS5kYPnf1BbcoSy6NjR/nQrDpNf7DTAh3r8ZxqUz\nh6387e0h8DJRilPWOaunLeqTKNB1Csi+r02CMHnIOdHM2NCBJSZE9hOFOIrr\nB+FeeBvVEPhXZtAhf4OfVGqjWcsCbJNVJCXW4OUhOYodpekz/145/CvSnZhT\nVYsApYWMF2SHwzjZvW52TdItrEDJdBH2AXl7jiyBRPw4JDDtIvQ/5IXdSC3Z\n6o9h\r\n=cpdj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFJTZVivilW+ueb+Vz/nFjw/LUzLPU4+75oubapyGp66AiBm2fImhQ/7KG3Np0yGFO/Y6QAcjHUlB3HlKSmgZVa4ZA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1605123661119_1605123675715_0.2920171395921245"},"_hasShrinkwrap":false},"1.6.0-next.1605127617349":{"name":"playwright","version":"1.6.0-next.1605127617349","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1605127617349","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-CMp9eAENkvGZIR9S4YbR2ISDbwBeFQkaHbTsb8UvXR6mAp68Z4BOw5UioDiNAQVIc4/VDfYDmvI2Raal/dfOaA==","shasum":"22e6490ea7e08611f0a96aff32261664e2409082","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1605127617349.tgz","fileCount":173,"unpackedSize":18982190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrE3QCRA9TVsSAnZWagAAcr4P/32Dshj55mMHTEA41wLi\n0V4qLhTO/22Xw6shzoscoPf0sty1Bp+kfgoMNvAU8N+r/kg+UJZpjm22dcJE\nvn9EW26YHyAVICgniTk0joim/GKcJxftXMA4eJ9b/T2TqFgXZtUEke8NWtDM\n7Qzi9fwLVGH505TRbcGX1c/Q6hfLvIIZJCXXRGj5foPA5vhUViXIPRHQzxM5\ndKac4fUcqJ9oLwoa31yTs+b/x9HzLTsYwh+mwrb94+ABgw1F/uaOTNLHShSu\nk9oOgt7Ap1H9m0bZPPc4wtlP29i2FTQHe395ZodPAIVTSjZRw6SYLpyJvTob\nwM1nK2CfVQqp/E03SpBNQ0Kj/Ryt09eMoEGcfDcHzCX6M2cmBbIEZ2xOco8Q\nhQUV35SPpNxEhDiCi7JmwlnYhHvaG+E4YAG+8HOgVdhZG8q/eDl+MXvWf1mP\nM2UlHUOw8Mw7hcv9rNHSPK9T6VavZ6ONFrjRkaIB13FpN6YGrmZylIg8IC2S\nlPMF7R9+6rM6Cljy/Z78OZrkYFYrRrc2z5EJIQJBcZht78JgToaCOXktXZHF\nvLaRyyFYf1Dj3oQE8lZKQxNVXMY75I/vC3Y3XI5Kj6EIafivv4OB2DrdhMu1\nsXOyHPQdqZdK8YgMJmAB5D1E/UOXXHRVwE2tkDi5vXECWphAa72WO43RicBq\nTTbY\r\n=GoJ/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQA7F6e/mv0vpUu8cyES7FBJsjRX7+sRZcXeiNXqP4nAIgL7gjvp1/3bLrH6I56KvfqndZlR6J4t3GLJSO4jjTALY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1605127617349_1605127631691_0.5391868115668363"},"_hasShrinkwrap":false},"1.7.0-next.1605134378929":{"name":"playwright","version":"1.7.0-next.1605134378929","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605134378929","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-u0Qb0mlpuLjwblPOgPNoo82NqkGCKBPwuVH8uOFFwUD4Wyxs9GHDfHP0s9lGlvh1G7+AowfdsH2752xLG4vVxw==","shasum":"5bcf94e198eb107458fd7fd12bef0039584651e9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605134378929.tgz","fileCount":173,"unpackedSize":18982190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrGg4CRA9TVsSAnZWagAA814P/j0e6k7nMtK/l6r8mWn7\nDAvoD9A2WPLO6jUKdDMmZGylwKZIlxXISA/qfrHVzd53E90ywoqfZ3qCbXrE\nzwdXKRm23f5VkXNKALKCqBt/ID+IPUF2OnT70b55exixy864bcavd9nSSxc6\nDTRhOBAj2QuLQnLaUFhB//RQfbHzuf4gzeGepmtATfLZvVNt17lZzwQallxs\nSniSBAUfvpgoUJ5ecMzscj7FkpSA3V/ezMBL5SmWY6eQnwn2CkNm6/RWD0LF\nJHWKeWwcdx4HcqYumQWG1W4EZYMgAiW2xqVy7OxCKoktoOqBnBcOFzlHaJPj\ny6Rh4e7MLLv8Mkb6D4IYBB14JJUuSttYpZrcAkzJ3GUlRiabRlhqoFcVvSRS\nXlmLSnEscwAk4d+sLnYv86iGeb21BslPoy+8r78aJl1bBVTzkz1Iws/eePsf\neLgyIsbdtClB6YlHY0vuTJrOaCHKnC1cQJbAahs/xYk5qKE2DnaAFllPvkTp\ny/bmH5/EHaVN7gE8t9EnHUXpxxhr/SONGvhkPw3p38AweGGERIdXX/bDmlum\notSuUoPauIyWyWG8cKtd2ym6q150lX0MRGnrkMCPH2ek5KkF8Uvd0WrnbrXf\n+/bCLw3xkNMndX+P+XRYwaXxdmGiYuV5EGYwVJ0z8/LinuCH18vlhXbFi+kp\nxsdY\r\n=jn4Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOX6TdEnapjwWNoZ56S/7GrWNMfqxEK1QhtsXUJu8iNAiAOXcYJdHJyv6++J8Uj9x/AM5eW2KzkJgXvt2PJRKY4iQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605134378929_1605134391647_0.8890493911567898"},"_hasShrinkwrap":false},"1.7.0-next.1605136447807":{"name":"playwright","version":"1.7.0-next.1605136447807","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605136447807","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-K8bwldVBW7FJYXwRVersqwgN2JihK+5qok6OyYnp2xer6UlszOh+4koXtqSnrGV0QBKzHeRqoouPauLFxqmTqg==","shasum":"d8ad530ef1d62f691f5af19bfbcaa58bdc8abc9e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605136447807.tgz","fileCount":173,"unpackedSize":18983050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrHBNCRA9TVsSAnZWagAAr6UP/RuQjx+FPUMKHpjJHa74\nHnKusXi4VZ2pPbp8JZW2XmkPV1bJVu8Ywd+34gpTueiqa6usP0ICf/78f/uH\nU0Pd5kBfXGc7p0j+zcMyX01DkjzBY2XyfLicihjEmwuRulZx0rTIdwhMWiM+\nN5gpZ0/7SkGrxn+0m+9il+l+atN+nSXCLXQ2GX+GVcAAsnCfuwnNWOVzoAir\n+rXqGkkR0p20TIi483nf6ShHmuH9Vy20jmefyHnBykhqBX8vWjlkaQDFCtDa\niqN2MtJszjMYn9UjKuDtFKaINJ0VJw7gVcvSjbAfT3G1xwZAfQIVSJ+egmEN\nWvEP+cxWy/ddNnHQc5/i/3JMULyYgJV4za1TNxiVmUAxlhY5SM5oAoup7mNv\nhkWcWAOVWSs/A3yAKgMKyMY1U8tH+cxMq4cXHR0gs9W8YRn4ivBrpFiWlvub\nXRgkwxXIyp73+E2yoBGi320TUhYBafEastsfZtSQmcdJ+3xms5EPtbL10S6C\nzWNjE7VDL4Lzxx5F9NPBsH7sfTU6JzNrBuWqXUCK9n5ENedVaZjSMBJ15bap\n60z30QX9BXMQaQOz11C61Jb5M8i5YWI/XLZPjywQK1RGmu6grT6a5INddY24\ndrVkaNYmZtPWNWLXUXSXp9SlANO5GEuhDdYnCHwuHT5id1V7vfdNvW8Tk9fn\ntVN1\r\n=oAta\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwaxLh0fi5xbaq2Cv6Q1GSiXztr4x3H8m5RBm8vXBDkAiBsQ19/lBUUVkPfYvYUJFHMCoDACnQ4/qac8RKWRjprbg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605136447807_1605136461018_0.6012212689074581"},"_hasShrinkwrap":false},"1.7.0-next.1605137718393":{"name":"playwright","version":"1.7.0-next.1605137718393","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605137718393","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-hks1TDEeU5cj3CAYOMOrIMFfggIqGMNfeHMTOMOH7QePpr4J7nFm6cLeagGZmWpLyMjgdALoQ+TZJfmPFbaF3w==","shasum":"71fc1cb679a1ac067acfc183cb7b9ce264bfa9d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605137718393.tgz","fileCount":173,"unpackedSize":18983118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrHVGCRA9TVsSAnZWagAA8CUP/1bhXXawyBryzD2VeOBz\nSPWsTVRCn9Kf5ro0n0WBlQPcVx6FLFWMzJvBzmNWBZs8dJKQNxztjFXBijm0\nTH+/qjAt3TVnRxZiTM+/KxzzLeF0AEEXxWyFNVZTVPb8NXAMjHLSZh2ZrF93\nImLfmgx6ixnVqxWRC6kXqmLSaScjcCg+EuwD2OGHJd3M+qAOzPUg9WDkdfVp\nop7xzKymoP1cOu0lzif8VNAcrmF0E+Q45STqd9KPA7EynW0VtIwUB9ThqO1a\n25iCXdZduT5RFGwkDWdPIKHg6IuIYJokD9RKSulvZmOeEYGzQRCg2rIUd+lM\nxomFdmRD1SEjyidQXdcrZPmd/yO60DEl960uapnl3TzyE3ueAjAxXoqzen/x\nDR5xDWlCNMV4eTgtg5mbx16kz77W25IpykhSHs6UwgcquubEVwhJV5EBgGtn\nfmnacnFM9Zxi+JqDvlanAlVPSeMcPnmSnIpRUNm4gMHfK9bG8DTGfl6ph1Nn\n2D4dz1SEg0w5l3H6IX4Po9cLW/UjV3VACrcVyN0/cagis/yVjO+oy9PNuojA\nzvqtrAWaBdxWBcqrnLZN7AO2++GD0waEwPuEdoJ1GfQIfQswXPFpmCxQilAj\nkNGYHEIGI3q1iO09wa/TQ4mJkbg32q83JTcvUBq8N0HcAbsxF+lTMWf5w5K9\nNytb\r\n=8yoz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoAgNz/43KUouCbN+K2VJtcmy3M47BwGTTEpbblWSCewIgZPWfGGZpMu/23wqr1XWkwMfPeKVwk/WfkH/CtKAqH6I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605137718393_1605137733187_0.09165462145700598"},"_hasShrinkwrap":false},"1.7.0-next.1605177306727":{"name":"playwright","version":"1.7.0-next.1605177306727","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605177306727","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-GgO526gKATjCXWElNuKoJ76cBUJpvby8gXJt2v5C73oND18TClQvKQYvcKUca3s23wsZxkwhl8UDtnFKvZ30/A==","shasum":"1c48764c664a6a90a3c99088177a31953c530d99","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605177306727.tgz","fileCount":173,"unpackedSize":18983118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrQ/pCRA9TVsSAnZWagAAlRcP/1wR/BTgxK9oWEFS5hNs\n+3HCdM9ksoVGIyD4i0vTlGA1Ez+rxiA8YBHsq9/dyVYmj3056ZzPsiZY3Fm3\n+8XC9QE79W+Z3U/t6h0C/ILcBCR1bNsZH7PEenkLKxVb2l9JKlb1wYGqc/L7\nOZSj1vBNggWX86eHBrlXhQ/EPV5GIBQoaxQ3MrwUAPtXKyEDn63dxtpgNf1K\nPlQwNz+CfArPyv4RCS4iEtamPStFM6L/Q3EVBfAwJ+bonJqZI7XchvD+u5GL\nt9cpiv0tDQOPjKhXTdTOwX07xWdjvBNeUSOhNkxUDV0sNi8zcbcjHzZFSxJY\nY2Rz85GQDd7pgjiKmfAPMy+7LJA8XPqPoe75FdkmcpWQAppHkRpWN9oiuyAp\nnwQnkBEFXQYCVlzqoe7pYRlS6yg5NKwvi3rjN78IkoaiGpjJKJ3FLZ2pL/zl\npFUeP8qZ/sZhOv170LBbO/4T2g/cZo4gPNgLQraKbM6nZ3eB9VOwXHFR5r+g\nXJ6s8wb5KYUqNUkCgKCMYumt9wAtxbb8N2ymC6vXFXVllGNICfC8kP+WMYe1\nK8cyt1/DvcpzOUj5zJjC1tPnp6B8dtqOPQJ1N/K3wDmT/ZkSGSFII0NmL1Wh\ndoQqMLrurV2nR0JEY7WUhwyIcFPGGESZJgstrhU2toPyWa/wKMEPfT69eVPV\nWQ53\r\n=nxwQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCevEcgLYY8Tpe5u0eciHzSqXpUbyE7g78Ep841Q1SE5QIgJ57HXbkrA1ZzlHOJWKr7LC/sHcVDXQQjeC7x5IUeQjw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605177306727_1605177320668_0.17900255765289663"},"_hasShrinkwrap":false},"1.7.0-next.1605202549103":{"name":"playwright","version":"1.7.0-next.1605202549103","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605202549103","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3ABfIMfm0buOoCsOIef9TcErq1+9/EkRT5hwOck919U5U3DrieWAlvR4+06ITIcdqDok/JJSiWr/pEZlYqSsDQ==","shasum":"d5c35a300d085e497ca0ea402ea8045579f48e6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605202549103.tgz","fileCount":173,"unpackedSize":18983118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrXKDCRA9TVsSAnZWagAAy4wQAJtRXgmHF25higjTjt1I\n/vbKxGTkDapGYLRu/cKZho6iwYQ18bWeawBI5whVXuYnOteyaKObq86ZOQax\ncmvwK/nByF8iSQ3jLeUXnPFT5bPQoRVu9YsTIzJL7PY6BOpO/M48ukX7dUVc\n1Mtxag6dfjVFQxkzYpg+SZjWSiCVhWo5EE1jDAyh433z0TLNErmru3LRXSq7\nqBr50hSXTxA3vxyJG38Js/BUbwxEkiLO9YjIAvdMkFoX32JK9VJ1JgvmSOvN\nCz+GtUglMfmIJtvtykpexFdnOZiZsWS0yyOan5abwTMGkB/forNo7aCZaAmI\nnKl/D87Rnla4tXm1LbosT2rF3Nv6rRaolJoSirVgIozHLoG6zqQjg6YueBqx\nlg3MXhaaWG6mgH4dPQfhQK2NfbZgECgJ1iQSIB+sjgAgmXg1GcpTes064X2+\nUC+4D0Sh3lrDalzFG/7xC6osN3wMpyjtXnq4gcMThBdEWpP732JBdjuwTGZU\nkeERbq7Xr825u12LgvaZ48jlfkq/wsIIAWxT5Mgh6oySBMUe1Oa0w14gt3Ly\nmZOkvmSoUhP377WfHcgPcutBQuxjVxtAHnXaNj+IQ8scw7z4i/BHbmcyLR+E\nXSpwiFfnK1w4/aq8sRb60jFcgahJrhKyJoac8WMTdmJhgmAOTEIxb+oxCkux\n7J/+\r\n=1ckO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA50mZHkaqETwOjbhDq+E7BY3jv1nxDyGcqqS2jtB4jPAiAzCEaxW9r52n4OFnzK4fbwJhuqRed8xCfbSbqRi8B3/w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605202549103_1605202562417_0.08998705481265312"},"_hasShrinkwrap":false},"1.7.0-next.1605203593743":{"name":"playwright","version":"1.7.0-next.1605203593743","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605203593743","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-cWoXcD0jXpB5jClifk5Ljg8eDoZ3upZxl5rexjPofhWW7LVGcEU1DwjnYP5+j5Ts9rSGhzv6V9kD96DSpBunKg==","shasum":"bb1d977b1f05b6aa8f5984eb54465d4cd867bd41","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605203593743.tgz","fileCount":173,"unpackedSize":18984440,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrXaZCRA9TVsSAnZWagAArEsP/3K90ErULNRdHqR3+zYc\nu4BJP5zq6Jn3vhSSfib7FiFsvja9OzPi465nJO+DItN4x9c5LPslNIxx5jb5\nXOusWzoOD/vhmP4fQOnNWcbylHOULc+jNl8LOYfoNaooxrt68KWg9Lz/9BoX\n+o95ceU+EztYjCaiqeCFWpiG+1bholiwhGw+hjwYUaijEEzwHcWf3UEYG8QD\nkc/JdBMgpQamAf3TDm/Iol+LUAD2jLwkhYfCyI0uE86maqj9DWzqRRIykCVo\not70bZiEXVgfBX5dMRE4E0q4CvOTANA9lIxEA/p47A+oiVBFKszij7iYf0eD\nOUaZlg2zYrsRS1a7m0YDZihBhxbKfbETfUkk9WBPFR5bKvugGXwIPvTEDKP+\nQu4WLr1ugBOLfOBJofrUyGg6+63Wx7xXkRjsL+82DhOrxMZBdoFac5Cd+8A9\nIjjOIOYF2xYnBPphtxnbp3VtyH5kpkXV72zjJ8WSNOoeQB5mK4xgIbdnOJQl\nbBH/rexmHCMMvumN+HdJRVgHOJJNrIf40i5T4fwwkPLcLTs0kOcvcXgzRGBi\nOMWUG4/OcUt46cXJ9mTA7/4Kwqr9z5187AqpA07R4kFgXPelqMcnMfmcLIX0\nBeMUp9v/gCD2wKP/vz3xo7IivspoOoObKJxxIWT2EVfYHmtE9OIj01NFv222\n4PT5\r\n=ZR3X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIERDrwP8UsIsoGorIOf3BeApcgANTEP65o7r34gmHFptAiEAwg1Vd/V8NUUP5Ox3kuRVVcRQ3+bGXqNCfdgF6sXhaFE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605203593743_1605203609230_0.2552637918875491"},"_hasShrinkwrap":false},"1.7.0-next.1605206628995":{"name":"playwright","version":"1.7.0-next.1605206628995","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605206628995","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jD63iljSITFO+49fZ84LjJuuTAoHmOpFEkxmO6ZtnDXO4l5JYf8uXApQjC3HAmKN7cbFVZYp65fIQVCwf0hczw==","shasum":"9ee8e31dbf2f8e472d8573b5b2d71ff56efe1c78","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605206628995.tgz","fileCount":173,"unpackedSize":18984440,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrYJ0CRA9TVsSAnZWagAAxTYP/jpT1xEVBp9YnH45U2tC\nBPGoB/MXGaE9StqbZVdZ1BvKJI5UwtlFgxDVlVKXfSHyMa+HhGzQAcBHXYu/\nxnqu5xe7x1CMsNxcRXjLGcVt8jAiI24eJfbPj1cH5mIp0czmcD++Hv6F9loX\nI/tjR+D7FZfLLg0l3mW4//Kj2uNYU8wq1oMCFACo91ktznTOVPU7uW97Xwri\nnpfExZ8+hlCFjBTd1tlJR4CmB9KCNqsWKyRJGwufJ7mlZy0NFD1DKJIb6XvB\nmYhNG/oD0wVdKGTlOoR+Pq1Zgy8m+Na8PWpNVckkcueyhX4xRT8IorDjloYm\nmQ1bd5Y8ORpv8GUVdl92gh/jKDpJreyJC26u9dE+rwtdt7dSdkzSZg9FHf/Y\nBhk8C+8/UOiEpUK0ys3gg8zf4XGx2GBA5gBECi9q9gZUKHf+ZtYFIJEAVYmV\nL7ld0ZdSntoGUWFwWEHAoBbuP+puPaE8q2jUKXAv35/EOo92auT9KOrIKjkv\nckpWnVZ0ZVl9iHmkmgo5fqWYcLREUJc07uknKrL0xmwHFl6zFT5BKLEvXs6S\nDK9PxY2tYWfDPRUuc8O/spjrMnC3YQwitt8BUCqwTVNT0/0rs1awPEcpmlZ8\nSd0VEL5NLRHhSdkZWdISgWqu6VGIn49qlMC80KJ7nopVbB7y7Qol5/Fvk1DX\n6uC8\r\n=x0pI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsflsdUZmN9M4nqnm9aalnDTbuaR5ro17UG4C1rfGsYgIhAKzHFuc6iv943K4BtDPErwud5Z8aujuShHA24g4Idvjv"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605206628995_1605206643400_0.8655354215990205"},"_hasShrinkwrap":false},"1.7.0-next.1605208353387":{"name":"playwright","version":"1.7.0-next.1605208353387","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605208353387","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-IZP5zW2raWePRWu/DYV2ac1GXISJPxkds2jCEcdb1dVJE2lW6wmn44ERJC4yjhwgS7BTXt+V5F7kVUpSpGjSkA==","shasum":"0558583e85d3558d3fb786c0136abaf87c64e77b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605208353387.tgz","fileCount":173,"unpackedSize":18984440,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrYkxCRA9TVsSAnZWagAARxAP/iwMkvBSb2r5WxOCOBzC\nbpFURfp0kuWAeT432noqji614dCpxYlsKgpQWEqcCEFE8Kh4fCt7rksuAtDG\nFeOfFjpumk2RUY816sswFxYHTZDQTCmFsq1iGog9k1ftt28VaHoc5zh7xi8p\nZFfxY1SfGsgk3GRjBEbs5a+nAcR8xqqmLV+1Xk1Rf8JSS4Jw7sREX8b7d1Gs\n9Genwao4bSjMpNIsIKIwpp708RIcSqKdrVAWgIIXJrmWg64stUPnY2XIHo1T\n2KkYbtA88gfFrHvDCaot2rnMQpULje5QnuSQ8oqhXROY9HqM233R7p+z6l4u\nObR8eS1uHJPA4pb7kl8ZIKChlE0HMFQGmYfozxrnxVkwpNBD1F82jTRKfRpJ\np36BfikETSgaJP3ctFZ3o4CJK2SrFmpmjASwf0lfzwsze3HIlrUlPdopWYlH\npMZuzNilcIuHfJL+9gU999QO50CugAO+5Ujr/o6LXcvhUmcDq6gZJILLGMyM\nRXYKlYON5pPJFBPOHCsuuL7pRjaSElV7V8nXEtaQD79jbqdREPSgvQNNWFSO\n7+tDm6XgX49KLKU/tngZlZ469f8GWDggsb65ZHyF/1fLsJytbFizljiaP7I3\n1f9I0ULxpHrvzEk166UBcn1DUG6t3jm6DKBkCfw8To2TzX4sli9fOwq7LThl\n0W0V\r\n=c6t5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCB6DbnF3Yaa7NlEmb8287dZtJpyGLOO0gJmPT1ntsZKAIgMFI0xKBuwJNbbbQlltcdHQpNDmsYLVyfOIXMz5vLPyA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605208353387_1605208368774_0.789413356616198"},"_hasShrinkwrap":false},"1.7.0-next.1605212413854":{"name":"playwright","version":"1.7.0-next.1605212413854","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605212413854","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yDwLNUHWm0eNYPUdsEHO/ye53Njeb2Yj648mBfKICu3oWsOcXBDK2IFqGzBZp9Lke1EvhJXYm/cy7h0PoD2S4Q==","shasum":"9270d2da1557b303630b546238c983995b780986","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605212413854.tgz","fileCount":173,"unpackedSize":18984440,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrZkOCRA9TVsSAnZWagAAfY8P/3/sU7ClHa5SSkW9EzN7\n9MaOtchMMSXfGTLrzi6kwFC8EQQn1SZ/XMfcgRV9K7v32jhIV8DhWWfO7A2Y\n1nxrT4nrzGlrR7fPCpLsi+uYR0LfOQ07k6cfFyB0V1yVMFA0w+Ggz1BG+QA7\nUbY7xSt/71CZMCLtKDbtqns/xGR0+dvFSa9MbSGL30316wbhjbiFv6smDof2\nxOz8PBiPj3s4Jmvj3HYx9Pkpa7tQ+tUV9qNDBsD+lw54k43dSD2jynFTNmS4\nEYDqzGNYg/S5UOWr4kH+H3za7WeDElHq0XpYLGUgIwvIA6NUep6Btiw0ORiV\nAuW9D99f6XtEiFTk8kh9YHHaTd92Q16AO/ZmabzurYp/lcZnoDsVropm0g4I\n350qu3TqXTS4HW5LuxerkKbMUjgAASWVcmliU3KKBTeodKn8m2SJUm2h4s0O\numpLmUESoqRAGH3k27Lr8BlHRpMdCZ7F3FnMVttZd47DK50s5KG5FcMOgaoW\nLzFYj26vkDyNPUfwdiTQJIxkn/k4bT2HOHhBxm2NjRN+wD3wsf8HudXhqiF2\nTlV1p431XmeUi8EwrPZhXn0c4R6G9jBE1f2AjTjMfXdj7TpiDre+4D/jNfPt\nHge1fmSlp+5bbGiE60c+W33GOfXLDJ/703ga4kJzcipg+hh6Frq1ythYxEWI\nMGFF\r\n=u30Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSJlRIJgYLXvkUA9NkKiAtjIZxA3K9sPKEOgIj75vRhQIhAOx4/JU7x2n48HYJ3hKTiDZ4gvXzPpr5UKnXXdHB+ivR"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605212413854_1605212429115_0.34067443724440394"},"_hasShrinkwrap":false},"1.7.0-next.1605213795196":{"name":"playwright","version":"1.7.0-next.1605213795196","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605213795196","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-gWwoQsd45CFbyi3B8rAYS6KsgI8UaNjFIASfCFgi5gNZeWFK4UVV7yAY+KrpnKTg5dvWKvm/aQOupyURiriRPQ==","shasum":"2b593c502d2d97b63c0f98bee0fce63e278dff9f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605213795196.tgz","fileCount":173,"unpackedSize":18982799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrZ5yCRA9TVsSAnZWagAAnZgP/1WzkLfJQOqra6oJEZim\nFZ1n1v5KhCz6h4cgCcmcg/9IA0wefze4FzIyU1gOMMLlYmE9E9KA8iSjQYaJ\npvSmWsS2KMMYNmL8K5DJdauLEjAGvWalg/DrvdVbcedd0TWAKBvvJ4OmzIrL\nGAwtvRwlBN7LqVVwEfa/HctO+uxVDUW7Yrtd/cND52zRGSB6aikG2o7Kca+0\nbGoAYTWc7WDKrbDQGVX4OUdePY3tIkd7kqaTmjQlzbED/HJ+0bg118hKMdwK\nk2zmNJ8gmw43uh1M1UPMEOyqaMXcQzer/ErbSjNgvvZ0csPw+DcyzsXKgT5Z\nXbCVIpsSn6ttjCWp4bl1ds8w0Z7XpOW4hGGalFkq+S6yv+X5PBEm4XBApb/j\nmUzsD7xoz/xp3rrBua+Or3av/5IquXPpL/Un7XkfGklk8lXYwwl3jozBSqW+\nqxlERyrVgx+Soe8rdfSH9rsLR7miPjd3LeDKCw5yWbCrMwFi0q0SUwlTUYJK\nKPDr3BSu1syBJvGwnqPfibwzH3Pi3OtrkSs2Q2Kc5UHiSYzYJF7DNpL/gR4k\nwbhWY+oZpXVxxSOAl/JMLUlDB/QEecUI2H/WF9ZRvd8zW+J9H68dtUAXTRll\npNp2QTksIIatviEsIG4k0CBX7fO3FOQxwLVfgSZK2m7ECNZw4phG/B7Q7W3J\nt350\r\n=9zhm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENnMQ7oB0VJhseYX1pL4ItmxxgZ9tJq8qvRGTST0ifnAiEAtZCVetiCe+f4xQ8cwvJLoen0IwRvsNSmkQGUOZ3vP3Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605213795196_1605213809451_0.925861692356676"},"_hasShrinkwrap":false},"1.6.0-next.1605215489244":{"name":"playwright","version":"1.6.0-next.1605215489244","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1605215489244","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3rwsMfRcnbrnENNlQPs33rpovU3WJ8uhl2v+nVMbQbMPRaHkUwOPXEBKImz/Zta2OrDGBDy0bDpcEiM6F0orCw==","shasum":"a530f2fb2b207ef20c7c83955a4723d41fd1fafa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1605215489244.tgz","fileCount":173,"unpackedSize":18982190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfraUQCRA9TVsSAnZWagAAyXoP/3/w9YycwXFGV5qdLoAB\nuuUR0na02/U/LYqHmeSEvuk7Ialt49sb4WuU4jknsOATmXlHt+H40oT7QSNw\nBrF3CdHk5v9X1vEktvfffo6wbaxQzAEFcDhKUOrrYnhsKfBPsmQkAA4T2YYN\nj8mx3q3EazsrtRVPR6V45+Jd9aLnaOXddUljh9EeYaWm7b5Y0ZSLnOsdHKli\nvLny6b0D6z6RBhy25yQRr73BAPjnmtzrM7+x7jdosWG/b4vuWWZfh4VLsq7D\nJew36abQd1Oz0f8I6brD/BbkFOitg9iPgibV4hT8vyHYSIH+naeMYGzuWiIZ\nz/HfreyF57quG5PB5F5Vrj7JHO1QR/Yli62UYgBRs4TrB/z4LVpFu25NGKWC\n2bmJK63QZX601rgicdVVG9DWURT0mgdvjN0M4/MSEopcGnW8xVtY2ATgzAdm\n/7qGodEcGDdslFqHpzmA/ywy0frXQQsrGSdBumBdoaLBjlO7mQB+W7h8J2J5\n0oekWEEjn/rhX58Niu9uKoi/umyLLgIOgSY2oF7aDv3bE1izaLN3CSmkj0wg\nZDd0rl1LmSDu0fmLzYWswXZB4PX7oxbqwBb0a2PMxZi1Lib3SeRyE0AXt5Ib\nkT6GX9CCLZO5Gyybdv3LqzV3ZFOuCCaywiMzayeouALzXtWtaYDfiYYYgXhu\n307L\r\n=A9lh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFJdq0b8YGUrNLy0+zyk9n2AYlBYIxsb9V0SweWegAHXAiEAnMCfq9xuRW56+T9WaXPCyJfww82mAQu/5aTqz50QMVY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1605215489244_1605215504076_0.9239931696976014"},"_hasShrinkwrap":false},"1.7.0-next.1605217583334":{"name":"playwright","version":"1.7.0-next.1605217583334","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605217583334","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+6SbKRfhom1KaELGZKF9nA9U8OtDiztZZ4cdXJ3DCU+dai2PZBpaOLcnJLCSqEMnT03rPs9osIZKzdijRZtYFw==","shasum":"0b89cd9d88ffc8c02f510ee12e6cc6c8a98369b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605217583334.tgz","fileCount":173,"unpackedSize":18982932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfra09CRA9TVsSAnZWagAAi+QQAI/BK8IChFN2tkWfRMw0\nO+7xYlWwmh+vizebjoKZFagV6nUFtJEvcPLdHSL5CfENkSVZL93eVQN3PVwf\nsWOy4belY7LfSxKo3tRccxtgzw5V9O/nNcvkE1uxQD3BEuEm/hryEYKDPqoQ\nX5ZQ4gunie0UUPMfntx7kLqJfPRGiz9E4dsgMkR6KQ5WV+HD+CVc9TGmcd/M\nDtBIqInzkN/WIMVhMsk+QricvGFUzkkt4BqQG12rClWI6V1puFOCowxZljty\nrY8AM1jhnCu5t5vamFdtI67CcWIw9JEoHLQhaG+GjLvZsgzrcsHE3f0rP9Q2\n6191UyV5p75nEEAI5rPmInasAxAwhlj3nJcHyWfeYFK20s+mxO6u9uDHdLvc\nTS+qEmKZJKXT8qmQ4uUV/0CnMoyMY04RKnhDijoXUAarCodrjjpuuwCJ/uae\n51lxFmujlrU5meLxXuYmpcyZG/bDU/PB+GCNcX8GNDS8XqpQjo/ZQU3iYNlF\nzh6qtzIcvWUglQhP/0jxbJu+qRdxdZcaq2v/ms0NMqsgjk350Q6JpIZ8VSeT\nT34BpR5bzWNrEqXfkac/zIGJVkwM4PE5ovi9D54+gc09Tn6egCrTju52l9xQ\nO2f12KftMlg7ggqZWnB7W3TcOia07iXd47pqqvzR2gWf3ibrjcpW37H1vgrx\ntHaS\r\n=Jpzw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAnT0V+i+dc69YlAcBaNBXGF9HdxrBkiMd1pHwaoXqKAIgOI3f2vVNKLdQmuizacVuQ3xbrn8ETPJTDV9dx9H0Ph8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605217583334_1605217596474_0.21779867508310935"},"_hasShrinkwrap":false},"1.6.0":{"name":"playwright","version":"1.6.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fzKoIfIa98ffGnxTHoUgcb+iDPGkJF1OCJEL8in9NbDIyuEjed+gTlIn9X9qWi+RuEOJqrJw8bsG7Yi+dghgrw==","shasum":"e73b23562f899be618d4b9d204cdb259e550f831","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0.tgz","fileCount":173,"unpackedSize":18982171,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrb2qCRA9TVsSAnZWagAAkf8P/RnUAhnyKzGoJddD/h66\nxHGExcFokK6iHS8b82145qLko+eENxuJI5zSejhs5zgIvLP+Eh5BNaoUCK7e\nnC24LZuFTcLhooPEqHAaoKju1nzdyeDU/tCrHFi871lrZ70gbE8Noojp0ogF\nADyaVkafJdSv7vko67V5Wf9xjelsDrTUkGTEfofTwhtk1GleTL9Wn4zpILqo\nKGa977ErR+nq1wbRjOPwtMK3QP/O+2M1sJmBNBN3IKEfbDWsUOFUiuOYRxYJ\nqcIzGwglnvlJ4OasIqACikoYwtxwSpZ3BxKPeJ8O9mrL5V+RzXFn+rYYgmux\nqGzC6+J7O/JYMlQMUHQVLgSKlLioEr6uirH+3zvPosth4sYrG/o2NwQLlXwD\nYqHsEQ6q1S08zWxXkEuaEL4mv7kWY3d76NW5lA4j+l7jSkGR3N2NhUl6/Xj0\n3troH1o7aAddH9mV26on3WdhiK4tvcM18wVrzaZU/qRVVVxcYq5Lk4NCbuRk\n/Ew2FEg85w2FNndP4Ik5lp3H/zdr5jw5u6NNQN2RfJf6XI5iad8/fQgLUfs1\nAMTdOoQ5gSxI/orn7wboPkFtSecCipoKJNWnbokH33P/mIEAKLOGTOqn+T4i\njNDsEv6bUxrtDWnD6JK0C0aerH6U9EzlEdbuu0/cdi65IzOyLNpORqqdoO9U\nau7Q\r\n=Bs/2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2D9Ol3mJqaLwjF3CofuNp4rxKNuyyVXTNQcLoUhutKgIhAO4W11XPLuzOii2zQZy7q6lHyVooRV1eaG+PvK1gaCpx"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0_1605221802134_0.9220775460420598"},"_hasShrinkwrap":false},"1.7.0-next.1605226555954":{"name":"playwright","version":"1.7.0-next.1605226555954","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605226555954","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-sSIGpBzcjci5HH/rHlNxcjAcWGtb76zCubEz60Alw+772WcC9ulIw8qGMEAYloOcWQhcD9v+32Pgd+8wPO6c6A==","shasum":"bfb221ecd37739fdbe12944224984ace13e10530","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605226555954.tgz","fileCount":173,"unpackedSize":18982908,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrdBeCRA9TVsSAnZWagAAvMgP/j0NisIH/bJLN0FRew93\nThqXO6HzV42BhzSZWwGD68cEYHiG8WmZO6xPOYQPxqR3f2xDAiq6ydrB+kKe\nUoI87euJPeyfiV3MQQlx77k0lW78Htj5mfUMZE/O/oI3Da2Vy2AiSEf2W7fW\ntWUGQJQUFbDrrRLnJn8+ClJInyVBxw4IQ2xmiMHYqEAHtxSkeNxc3xBRWVMf\nKRrQlf2tDodcCFIhL5q+lqxHjFd650WatM1vtMBgpLbmoAbhBpOhUq69Yfj3\nZmKkTuYcnz71LYnTlotEYpLmAJ4r+kKC0Jnz6LVc/9/F05MRoV449fAjJn5a\nMAJ0A9X6Vl017u8NU4t+JlK+xuQoGCswsaP6i4Hg2/9W3ZdO2ZL0mHOJe8wC\njp+2xegzsKxSIfiANPQWxZmhib4BQTayw8jG3n35Q+66ZPl5hy94GhzRw1QE\nI3MRrR88RLgy5GmBEKnHCccTcgv7wrtkEh8BBCjwlUERqV10nX8MnA9Gv1d+\ntz66QVgUdNCi3pJ9HOKuqhTa0tMGoPfDSaDIAuvUw/8h8WIHF6RJ9mPKk4xE\nhgbfqa4VROKMVFvTz19cMbmX3h0mpvXREdi2IayTSNUJneWIua4kFUaM38b3\ncEp6vWL5NZ4pr7rafyGDBCuYogi1scLP2ZlXMLVGC4kB0ZXFxB0M1JefVOvC\nxhzM\r\n=oQpV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCDfU4jUWXHi76cBR24KdxDocNVfND3zXoNlfANts9AwIgHa88A8nsj5R67vcLgJBlMgSu5OqLFGsx4XO9xQPRrrk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605226555954_1605226588920_0.473776279669502"},"_hasShrinkwrap":false},"1.6.0-next.1605227311592":{"name":"playwright","version":"1.6.0-next.1605227311592","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.0-next.1605227311592","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-BgPA8BHzL3CDN2kRlEwTNRP9TLmLbsFFbt6lX8b5YiiRKJo9I8ATGsVi5L50pAt17xw9Br8m3KHYpxpokUEPHQ==","shasum":"34fce896d482c8a770438c0bdaac505d6eeaf699","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.0-next.1605227311592.tgz","fileCount":173,"unpackedSize":18982166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrdNACRA9TVsSAnZWagAA3BYP/ikC9lWz5/5iRgoe9oE2\n2iyi8xGKqB7zljG0t3TZ/f9wYoWN2YxIux81iPJ4rfvwN88wN7oCRLxlCAO2\nqmJukFQdm3dTqgmHr0JlYEvY2tTSLnntP9Y8cyh76QPZBp4GArA0BzE8fc1c\ngSDz7a/CsWGetdQeTLDgnSxGU/CUJa9ZVmdQU0F4S3S35e73FCq7UGXp/fKo\nUL2u5YEveUUeJXN2UcKdHtLR/OuR0729n3UnJYV/MNpDTA+F0hRWz9wvevSO\ngF/8eSKuCLFsFQDVswEYYZLKYslk6xGrAR8Krh8U1osKiW/lw32AhlzIBRos\nCpyA2n8l3xzFq8P6Uo68Q4Upw0Y3+9rK+VA/Om1uRf4rnrDugyL4pc95Jvuz\nVNIRqmGTOZn5aKvb+Qyq7SJCJs7vJ05sPfAg9GzhSPB+oAnAxZSoR9s8ZKM3\nkptKbbNQybh5u/ToTGRYDdh7feCmcqmVGhbNRcvfz1LragNVXp4l0MYj6yEe\nNoOt2iWqFlt3df+dI2i4ZRwFJ8is6GrAN5TatowNSWiC1KPdoarqkei1Ykkt\ncxGYALlw4T7ToT/DhnwlsK345Mo48U/FmxfqEEBT2uYmj6zIi21M1TsabnSs\ni46ELabV+E7WTBz6kkhh5Yjk9xuHnakyfZsFsPcL7txZiHOb/mfnugwU74xG\nnBrG\r\n=WCQD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4ckw6Qw8Rn2wCkqZslabnzorInI/kQMJ9ARaUc6E+nQIhAOv4tAMYnrH4fiXeNGIS97+tA3A6wz4FLvi9Y3AJrEZJ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.0-next.1605227311592_1605227327017_0.12619979951159954"},"_hasShrinkwrap":false},"1.6.1-next.1605234638027":{"name":"playwright","version":"1.6.1-next.1605234638027","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.1-next.1605234638027","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-QsGXZw14uKtC3b0fD+Vgau64cbXznMetVyVRj8OLYubPJRo5YRTrmX/qFCAdtuw6ejqLq9kfUcpXQ6R4T6i3+g==","shasum":"bef2f9513536fa48c941ea7acd526075a2e54934","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.1-next.1605234638027.tgz","fileCount":173,"unpackedSize":18982166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfre/eCRA9TVsSAnZWagAAAEIP/1APmP8eO5d30vw0k00s\nTCkAeOdDcWZwiSYAsWswbkiEscQwP7TUJqSyUNNbxCFTpLYXa7l9hUzBQlyi\n/EW7bqpC3aAANpRXlbABDtob6jDLm7sQaADs+bOVFp6Go9xgok22w+I6oVcR\nD7UWHJ45QxxTS+PKvvcNLNTCH9Qm8EJEgBaufRAfmlNtRHinmsoRJrEGeZfW\nAdIlZyxbG4Pg9Dpbr3xACJQRVFEsJnIfS1KDbKzTbtSUjzQSkgB9sSGFBzl/\nKrXvmCPIlgLXIdbfX90f9J6tbpIUB6SGVBiUqqcCpLXESRYcHkBDKrbfa8Qj\nKFaDqagBzsRq2WDSjNauZBUb86Rs6ClS2AL3pYjmkQRMO0yV2v314yYmbTFQ\nA1hJaRzGwdMdPEwBEIshrXeX6zg5IJT3rWd5RnC2+HPTvSJ/dGOJ5QpyTieJ\nlG4fuu11vt91rhHbDAVVK14r/mTVSgiGpeP9TTLykeyXMB/MT6svDQ/aHjLG\nbugm433o/aaqBmfrwfeN8QuwegbdQV6sqUOb3F9rVZJW5NN7dvAZzSU32zeo\nZ4UfwcihUO44w53oygv07lxIrlin53NrzXp+FROm470BuMJf8kQn/OWsIfBW\nF9GgpCnKtBXPZctYIJFh+pYqAkR+5hPYvpFbn+iNq8/U336MH2bmSDUy9qXy\ndsvS\r\n=yMAK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBCcr/KVayzDpRJ0jcQteaVbnou1QWFDWutSQq3ftGTgIhAKQme6xRtrPFMhVkWtvpO31wEuNwosNqaXZeWMzv1BNB"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.1-next.1605234638027_1605234653797_0.11751165885304782"},"_hasShrinkwrap":false},"1.6.1":{"name":"playwright","version":"1.6.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.1","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-0CQdAg1NbV+ZXr7p3E62sSPRLO2peNAFC7e7NXCXR7Nj75b9Dmc8lF8bevT7eu1gbzo0ZwtFUlmAGLZ1/W/wVg==","shasum":"0afc0829139792f6b944fa2a1aa91231fc32a75a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.1.tgz","fileCount":173,"unpackedSize":18982147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrfWUCRA9TVsSAnZWagAAQ+QP/jpwKNNk23o27HiPhD1+\nnJIZDmpcMs0HDdg0agrJMKOkF5dxmZtCUcSykIvZQqXQc23lm7FO/PrJkjLQ\nptgqvgj+USk9ffq0Mb0nM23RxAnIEMhA69byXhRL//PzuN4Fx6VnV8jstWCl\nOQ3XsCArnCVRYQ1AV2pOwc1vmiXZ/9WF+SqevdHj8GDBhwbgiAgQgv/HBYnA\nRB10A8L2KI8qTcygPlEaobLWvjwD5nTOCptIIxxyBP02r34XIodRrbkIycCp\nqXKfU6hWBAGnCnLhMlErwlGak/JaJ+RKwktN3iaBhdC2nyLs+hC03HwKBIgl\nPXVYghyuZRI2WZmSZQCOfHkOswbVJep+ljNleGvarwYQ2S3ub6T/iYyyfh53\n0EtB+TQDr4ow1ccjtIC/ZtXThfXk2gDQqvUoE7qR/KiTKtUucDS8Viv4hOZL\nwVdYJ9ehtFAV6uritz7jYrQgIK4vGPHBl3wcfIJaByrSbt/GjQMFmQslrbwt\nJcZodjgzvjjTBFQdEHW8sroaIjKkmwlz33gnr4TSPM+ECDhP5Qwh0mbX6ANp\nV+K7jZXNC9Z8tprfLUbaSxuf0e6UcrQUMy44OaQE5ETZ2w7WbKiJQ0dW8UPM\nb/CQPlNhLGM/ORM6R3q5+3OgcxUrewGdVGw/nJgnyS/4rhlilrln3MgUnMGH\njDol\r\n=TOis\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCotMJJ5ToQagjYcnLd1M/eZxkTNhy75mA9s6ek6VSA7wIgSsyg+eNmKgoK1VSCrccAjExkRUWtjTZuEHDLMsKbQIk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.1_1605236116110_0.8662091234840978"},"_hasShrinkwrap":false},"1.7.0-next.1605290682762":{"name":"playwright","version":"1.7.0-next.1605290682762","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605290682762","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-RuzHJlGXqdBwLXyjH3dpIBZS7dHBB4weibSRX/FfNME/NJ8MVzSZdLsnOtoyRRNve9oJiATDlCY+YtlKipC6jg==","shasum":"694a66f66f2da8e3fff35ee0fc04ccd9c240f515","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605290682762.tgz","fileCount":173,"unpackedSize":18982908,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrsrJCRA9TVsSAnZWagAAXicQAI0dXQHXYkygTgG6+WQS\nWK52Nulrws78lm5Pb7Lm9eBYGBuroeTzfRmNNDGBmsOf+uBzcgXbRmFPldQ0\neyj8pyfuDq9rTAUd6IsswA4EuvRNJRDM+bXxv2elqCp+SzGG91KGBAh3Arjf\nCFmJAApfrc4hZcDOFeDdedzkHIjnZUvyvtfpUedhQuS1pO0Sdzh1YkWAVAlY\nvUmz+Sm0cIu986tg8AX1Z50WCpChUSkPb6iXwfLdm3Mb1cL7b2SxaU34MbvF\nUvpaYQCbnPbi3Wv5KLOEyIpMu2IcfEeZKhr7zhPmG5QOb38jq15e+ci1Bqky\nieLmbk9TqvsynpE2lJfetn0jYLMiOr79IO28Ix6S0YEOdquXVbdFc4Hv7N8r\n4YKUF+3HARvyMxms+sgXS4UD0WtRjmefweYCvTt1RtGTbMKe4wpP21rGekdp\n2NsH6FaK8sSqt3sGKLN2IkWl/gjAIOQEDfdIQYm9xJjvJ3B5bB9LaIdJn5bp\nZzJ1eQaVoQ24FMCw0ZqkfeeKvnZQCp1wimAXBZYwt3umRjk2p73Dvp5goTET\npcGzp+8FNOgZQIx39jprCdBPvu36xSdUerPGFRhBOuxeDn/0AyhxPvZ4GEwl\nTdrbJQyPkgqT8i3wHAhQF73tX6RMCYOKHi5N76HlclgswwyZCIKbZp52FeyK\nRbUA\r\n=kUu+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDm3h4J4P/Bkis0ilVZtfZGnicbwMDj09FynSpOrdaKDQIgFlHnfAS8mBeu/P7xtXuM+t6XFSCkk0IjgDqsWmMgPjc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605290682762_1605290696430_0.3493670128892541"},"_hasShrinkwrap":false},"1.7.0-next.1605296981516":{"name":"playwright","version":"1.7.0-next.1605296981516","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605296981516","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-tEgzwpiQDqiD7YpX0FiVicQ4U+fkCgv9+8bZmW69qrNmnjgjUy62scCXMFCO94hQIAqjwPmSagnf4uuVLh+72Q==","shasum":"5e82339c589ef93b0ca5e56abe61a402bd4c530d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605296981516.tgz","fileCount":173,"unpackedSize":18982908,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfruNjCRA9TVsSAnZWagAAK2UP/10I6BhUsOsO++VEPUel\nirGnml1DW9flZ2nb21I5ZMmkF8A/Xy7Wx9foE4kw3qobw7i+lQiw5oz5++vZ\naOHKT0KiMLJLgHGb/uuBsjn2ROxl6LwOKdg/rpMGxHdgzRhNOP0ACwYyCdkx\n319X1SiUwYgajvDFd55eM/Wcdvc54QgONzYdwBEYLoGhuF/4mdkJRRii6Pls\nM6SmGMSsRS1Rgt5LKHEz34yI/cjZq8AHGKaaQamxccCpwqvXY7SCcJzW848G\nZyydCgKs2TJTOgoQd+vs4Z1aAulpvtcRLnAaQpxKXLsvyAyI18NM0/qEoRVu\n7vWX9PYNRH+gfSIQUNNLUVK8slK81Cn6zByckrBmKAMYjZYbthy1bWPviEiV\ny1/P7lH6VY+LT0xQ98+VhYo63foN7NQWwnSSuJ6HD2G9tcFkxY36ev6Uf/nO\noItJo0OUm3uGh/Yvu8sFextp61EPyMu5A4/ifD4r3ZQAP68F4C/icHh2v7E2\nWVOr1IadY1rP66ORhbP7UxuPSxW3WrBPvAPYKS9iOFBt8D/VO/YzlsHIMxBA\nx/FqOG+wBwpoRmgfo9FHZR9hayABCQE9BQF0iG1rzy/8DsseBawhm12J1/9L\nkZw1LC9uAVy72ysMIeMPMLVzQ+w/xr1eYwJLO+CTYMyuvzBeBEoiGAck79Mw\n172a\r\n=QuXW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPK3dkVCgEZ30U4yKOlU/1rFIw/itULlbS8g8SFnAjcAIgQq8HbrFfy/n8iUE8vJzhOGFjFgTxdA3fl4AlAoC46lk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605296981516_1605296994274_0.07125446532625324"},"_hasShrinkwrap":false},"1.7.0-next.1605305111464":{"name":"playwright","version":"1.7.0-next.1605305111464","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605305111464","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-sKCbYBFfrb060k+OwRzJC7x9ObPUslgcmilSfXtcCgojXfzQHaGTrq3rz3Qo6A5Wtjg+Al0zgwoZSEQ+MEdB4Q==","shasum":"f446eab8de40fe94789540fbf37b142e03a718b1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605305111464.tgz","fileCount":173,"unpackedSize":18981490,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrwMnCRA9TVsSAnZWagAAQcYQAIVK6iL37bE4DrLcSfq9\n3WM5e8BP+Zyb42PdZUSmIt5/CupISmz237uulDIN6HKJXEcp4sYZgEA0OhXO\nuyqM752kxKhUzq7KNacs31z3IiSRU9bnoC4L9X8UeeoVwJcpQGzqyqF7cURS\n2WmGhkPp0ll6TJc8dKAgOaaH0UAoHcWyxJR4e9b8+ueNLZX8JZK6x5+ClCu1\n6gLfvJF5GIUqF1IXg8rqWQb+5wDUWrD62vhOTuJnNF0Yc7g12JV44uHQ/EgB\ne3wVRT3NjSc9cnROrt0LD3/l5xGegWk1AOOihb8wGx9Vol8hMXI/h4SeqHzR\nqbNBwUAqAY3hEJLta3UnEoQNOErMx//tIOtH3GJ6GNnHFKNiMr0m+k8c4Ixv\naFPFc9OShtm3yFBSjrDXUStxbdoNtMtZygizKfDOFQOwRQG2E5rSrKBP3m2D\nrswoC1dKhQdbJ0e5s2j0YyDgBfoDFUJqxx5uvxg8OO0NyUrW7CF15G0oTRsZ\nAhzAlw/csIm6l3Oga5/c6aESN2hgMNxztQp16lGH+NNkJIFRqH/sQ0AgCMDv\nzdpTbM6rbVxnzpEN23mmJ/l/BtB4PgfdGQGi+4czATsBYsHDYtISpMr8X9qc\nLkgIlxzpnR6DkoxNbW0dm782hVU3Dpuc0nL2oRHB8wX7QKbb7+quPRPxEowk\nIdOT\r\n=aARq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGADhAaHZMfpriEt3GO/ljOFts0RPRd8QrDqxYHTxBvAiEAyf7JygSweRC0H5+AC/PglGjhjeNgvBUuyVmZBm7gZmY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605305111464_1605305125295_0.01053050652281251"},"_hasShrinkwrap":false},"1.7.0-next.1605305543987":{"name":"playwright","version":"1.7.0-next.1605305543987","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605305543987","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-e5UdMV83gxtww9IqKVzzsZ1GIVYp72O/vvFmnn+vtm87EieOG4AnVNpheMUrnF2ZtGiRwqDKmevuo62apKTvhw==","shasum":"d3793c45b258ae92c9c3123f3f55d588ac550637","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605305543987.tgz","fileCount":173,"unpackedSize":18981492,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrwTVCRA9TVsSAnZWagAAzKQQAItmceJgYPIBs0ByZVbp\n9pkJlgCkh40ezJMzyVyXkUEnd1/F9tKC3sPhAzkImZGvRTSYRZWPnVOnvxMj\nt0wzdgb+rO0iA06gAS8eFF7z6TbJlXPHLtnjrYtzKiw8n+az919FzwVFyne5\nApyyFldbjAL0H+PqzzeR3j5WAqTDNqTSsi6xpOqR/7SMLA9PUT6+pYINGhDD\nmB/PjL4A89biDA70iN6H7AdF/vZIQQjfbqOskf6VyFo4mZeFsvpJp6jQWqG8\ntXJDW4BaNne500UEO/KSltBjOpi96iPjPadsGIvgs/YiqNT11UEJXvAJySnM\nysri8Je6tb819vDV+6aA3N2HAK4Sx6Ij6tKidmdOHIEJqlyhhDGtaYmHFONH\nNZkJz6xE3Kr0mepiptU+6/p0reC37i6hrFH0iTw3cS8XY4kO9befO8Suupli\njsXug1vcXC+K0KSAfaUzXzeZA8400VoRBBuLULEjmqhx3zUn5WXAtZs0Rd7M\nJANPuIMS1STE5CKckvI2tTzxVWntxkOqQ1+wm7Fq5Lbzk3nn2fv08MCVuj+Z\n3c64EXb/Ya2TB2Trf0BSEDU+S5CPQkZvMzCSyxz2J+VZk43Sk89k94VwuT8h\nWdyBAsMt4e6KZDBRe2dUcU+botYkUk2z/758Oc/DW16V9i/Az+p+WOi8ErsG\nhY0A\r\n=7NqN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDL4xpLmhS9nY0abu3iPWNHcC+n20oFT3xghQ/I0VoVYgIgEmK6mvs7acR4IE+9XRdbjp6Uo5CcKeIaNAD1f1ELP/0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605305543987_1605305557145_0.697156361373189"},"_hasShrinkwrap":false},"1.7.0-next.1605306417215":{"name":"playwright","version":"1.7.0-next.1605306417215","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605306417215","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-QkNObc/f/5ZTZzCAOcGrXU9oTBZAaaIl9Ltb3+ho+TLVCekhYbJ+xlj1Wf3npOy4sF/isrqTUBIcm3OHr1cpwA==","shasum":"4142e79bd55e17e0909ef3f66c0ca7378c78df6b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605306417215.tgz","fileCount":173,"unpackedSize":18992443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrwhACRA9TVsSAnZWagAATokP+wXgpoODttrlwFIaUNf0\n+25LBD0VM+apw8Tds/ujSmDL4cmdIkx7GXS2iVmumJIQNcnAUvRxsMsbIQF+\nHTwui5mwuQ0FoEZpTforoAheC4/PJkrEos8QetktNzqu3oSy65qVBu+9ySCw\nyHlqEhMVoKiOkCN7hLk3qcLNSR4/RzE4xN2k//z5oYdjOqK9YmrSACPSrq6l\nM4CxdjJFx+86fpzXUEcQ2mxHH4XTBpUbZBeRgaXgpgao3UO1TTpGofP+g8FJ\nTKI8PrZKwbUydPlBitkLi0kxhERVVsdfMI1cykIOtn6NAXlmaxCa6WSAH3PV\nzUHXKf1U61LjxH0lHEkV0K2LAg5lEwYvLZTSv/koEL1VU5b0xq6KvaSlQO8i\ng9S4W2+SbunNJe+LtPCfHu8b9TVDIW+tXTlQuVBPu4GpCXJKPHx7N5rQnHxf\nXMxPorn8dvbHry/RZ57k1HfnkaYW8OgzYpilczU+l9uznI/h9ZoB1ZJAVNob\n/sbHIIFpvS/bTIikwNw/Pin6hp/0owisWh8uzqzJIIn0ubvDLtGP3gJ9R0/l\n8ioW0Bl3Z5kOd54+aE2GsZWLafUTW+bGGuY+lkfJ3XDz61eeHL1EHKaZ3UGO\nrjoTdGjB7U7zo/fw+g38/BNMW0ZfdrRd/Gxmz35hXrQP5q94x7UZ7NlNzj2m\nnNjq\r\n=ThiT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAiifACJO/pTYQ3UWmpdrHmRktiKkOf4TMuts17mhI6AiEA4d86ktdbAJWyvwdijuQkXcpn9NgmozXZE4UDwiczfa8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605306417215_1605306431752_0.4142893775682901"},"_hasShrinkwrap":false},"1.7.0-next.1605307823154":{"name":"playwright","version":"1.7.0-next.1605307823154","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605307823154","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-lKXD7wfRtlymVVVQvrr5gUPkUmye8Su+TTTOPVgdZmfJ/DBo3ZY/i2aFjz77pc1Q26WVyj7Qu2vLI4+1k4OEZw==","shasum":"f66de273a06ef3512ad3f9b172dcefbbc54d98a1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605307823154.tgz","fileCount":173,"unpackedSize":18992104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrw29CRA9TVsSAnZWagAAuPUP/0uVu8JmOLkP4Jksz8PE\nuxZYmvZl/6C3lt4FHYdsAK4a5EnXPWnAGMxSNDQulxo/s8l8PWMArNhTW7yJ\npiNdLy+1oqk7LHY/Wm36TdylV68fXj7Jx8kh7KRbKrxl+kD5xLUj1Uhs54Dt\nNeGfra8l3IU8wWPwbHdrafmROd1g3GWbxEEaHSNPxLopqmV3FgbxOJTH2tfD\nqfh0+WqP5m+bxd/cKJkT44wxIS9pAKiTvD2kY9tENzObLmv42EJ6QgOaxfRP\nJfuz+4/QOjrlPougexowkNHU9rrVm/gEUQl70buYVcBqibjdoepE6c/PS/y3\nYtMq8hW29emttHpoijnrE4H8hbBffXjhVbz61aM98bSGbE2iEZ9nGx4feJ6e\n1hrL/S446VMjzrLaFCp0cDn0dOq5OPbgjT+Nffq/WosQAPMcS/PnyiL1v8gU\nd4hS3C3xn3tooNO881vr/7AGJdgFKC/ofzcBW3zjneUzf3bJfXOzhRgX7GMY\nEQ5Dv6rH77I8d4fRstcaZg0RAEDwDEn4jC2k/pfdwDZthV7krzz8p3wpf70i\ngx13tjMnvoSjnAOWf5GgFUUbGGdYFrJDIoDRe+hQ1kep8ymvHfiyWLVs2inq\nvD7H80KUUY0UDoOrxBVWKBe+NysmgMpRq2/o1ZqS1InGc1NV1RDVSal2qj7/\nd39e\r\n=Y/I9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEj396e0usuSDAMaK34OmjUQq8BxTequxxQKbaJEYzpnAiEAnMtNa2odDLeSlDpot7qTXjeVVz5aZEMyn4iXHgSh/Ng="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605307823154_1605307836969_0.726446730142972"},"_hasShrinkwrap":false},"1.7.0-next.1605307997928":{"name":"playwright","version":"1.7.0-next.1605307997928","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605307997928","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oqYSZCAzvZfx9OQ06X+9cGzaXaLuaTpAow+1Zqony03hAuqOQlUaSuTSwks5BHfxvEt6LN2YN+Hek9oczaiZ9w==","shasum":"a04036510e56fc01cacca3f62fc24ca869b8d746","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605307997928.tgz","fileCount":173,"unpackedSize":18992104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrw5qCRA9TVsSAnZWagAAXFQP/Rbk4mcCxlbUgQJyCWzA\ndXMbW6Js0IqC+oweFsKRKaaZE4l4api9AwjF67X5IRGbg3ZscXOvfBrIlrKB\nkEccxk1TmU7A8fYFbo4w85Ov7kaV6j/omp4+0goQnrjA+djAdnOoUCYzQNaO\n0DURO4y3w0IDI5ud1s0b75mGhlpUmM8zpCoGQkvQ0xDXImBockqwKJDE04ZP\ntanRijN1Cnj/gL6qlBRqCHTRw1WbyRDMMZ1kGUBmWMNiszP9H3jeUTXp8ert\nrgfwoJim7e+FxQmt8AqrtBe9OiQBjKHOQLxAcOuDFAQPMRQTmQIQmosCottA\nCxyG1M5piwPawiplBLcWP3Lw0liXkF03TmAcJMKWeDpjPBuCzOkFE44r+Vpf\nBYM6+tMfAfy0+M136MnBd/JsXYVXe2zJRCTzlYahX/99hpBCMl8TzETpZLcs\nnWVPDFH+QAqI2Hm82a7pTUM1fOLE4YYulMxEub8vLJ8mRoEjKbccQCytvxGW\nna6C+YTO9+LW4878HsFZsdLTUkwKVDkYhd3bcFKtR10eQ52ysbdJFmdO3bt/\nSHDLvlYgyDQrzasWl0eZWWScmB+lHaSj2Syr74kbOQrVTMiEvvLPEUW8lafx\n8Da21s6Z1fMXZhlFBkQRggTwcACKlmWn2zQZDSAe1hAySveLv0CxKJc//Vv4\n5V1H\r\n=Rjx9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgOlsYoMZMjCxHBNwNoCYTiftJ3DTMCJEs8Ifmv+rIKAiAaWuDdzK7y4ClC2hARugjU8+kZypicQf1iJTp13DfHnQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605307997928_1605308009339_0.07235261699469131"},"_hasShrinkwrap":false},"1.7.0-next.1605308289770":{"name":"playwright","version":"1.7.0-next.1605308289770","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605308289770","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zmxs9Fl+h91Rr/+neoAx7vKAWOAnBGve9IbR/InHhaIZcEm3pVYy8rX9K5vGYdq3ZEGVFFkIlmEQF8u3ojrLrQ==","shasum":"bbd0704ee7bd462a9ded65b9b9bf666e6b302352","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605308289770.tgz","fileCount":173,"unpackedSize":18992104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrw+XCRA9TVsSAnZWagAAnFEP/1OjNBSKlnDf1ceykCJt\nU1U8jmCMsadViwk9j4YLc6rT+2kWIc8DS4oYPw+oEQU8vo8Fs66XIS9VCKON\nTbbmz+bWVyVP9Q6n5iO3L5Z5uTsmlJVcOUX491MpIYMOl4JnlXMtHIbW0akm\ndjAIYcD57aJh6tihsw55bXhjgLqHfU8vFH5fucUCBR2HMxCY+agRiSIGKrUw\n6vS0p0KioTwPfJmVCLmDFiTZ6GAff+UGrCOQVVKwAlEhy9aGU5KQrJiixcr0\n0f0zuiThpNdP3egPyYA+GLF75hTXJPAMFfAQJqEabd/iZK0xzX8YX8qTAFxM\nwwZ0nCTrDCL2D0TcqyseJazev03YYyWzRYd1R8I9FkEHQ/r+QMVikB6VVDGE\n/94+g4A9F2qAHmCiuB6P5EEM3Z8km37U/1W4HmKAcHR/nnsCna6DnzoShtuD\nBgfxTr4TmkJ5XtX6mvA44MviWXid0WzofEj5gzKCbsMeTHstQLAJyn15LtNO\nJ9Nb9/A0hErrV43uFO5BN5XWxpVweRVWDKTJKEhLuAcd6aMDBu77+KH/qcIo\ni29TFFF1oacslOtPvFN+cF19TeYDk14Ih4Y4s+5buptflAnDSmkwdo+Pi85e\nir1LjdUutgvizNrht+OWjlv09xqC45m901tnD3K4aT7bSuy76ptbFO3CM0P7\nbV7z\r\n=ZQOg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtKcOMPdkVWAvh8NtnXm3ArNPBGD/sqJ5ACFGmfCBtEgIhALWnEUg8zzvAEcOp/LZnqa2WlFeCNaahw54AVeS7rNLo"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605308289770_1605308311049_0.9420995573859445"},"_hasShrinkwrap":false},"1.7.0-next.1605309807310":{"name":"playwright","version":"1.7.0-next.1605309807310","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605309807310","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-EQpzndMM/+DnJXmtsm+/P2V3Cup0GZXlbJk0W1OXHKAGXNYZMNnzi5/DJGz9M+oSlw4mkiCkhzPaYOysoU6Cmg==","shasum":"08d81ee7fad48162be89a68256b3a887bc20337b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605309807310.tgz","fileCount":173,"unpackedSize":18992104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrxV+CRA9TVsSAnZWagAAzNIP/1JBOF1UzA9DLXE8CyyZ\na/FHmXtJXICWrNxRJdCBYyWXzeIawdIMwkzeMBG4+UGkvVAfi6xcx1QoP9Jw\ngSnP5mPLk1nTpkbHZEu1X9QUwefuyJyfauy/o+YOc336LwqSvBtO5ptL1LXv\neXKoDNf0pBm/VR720bV4zWrpkA2qxXLLUUPTX8kRDul51v353c9jY05XyoK2\n2RevHt7c8ZI7mwa9hw8lsx9oJyR/dknkdyi/SQHxaj9X/Sl0OTDVLEM7cjN/\nWJZC4EiPzGOn2jMRdVfXVUcLpgdPBbxhb/+kOnhIVqqohKHujWdVUIJoo3uv\na9yOLc0zLYZn889snMsY/DvDt4+4ObZTe2jW/SHo9e9lbw92dURJAWQctnzx\nhKXsbQfyKzieGn0rorki32fUZRjyqK+RjkknOPbzjLocQX1nsNeCQDAAcJIa\nZikJLSEiUnjPXs+GAFV+sTTwAdhYBpkPpYhlaOFPUkB9Z5wYq8ACwr/LFkCx\nDL4XGvRYkB5f31rRyxlzw1pWs6I8euFsbFCXnKpOT7D73CXIIGWg0Jt331CT\n474qfu0XmHtVYLfuVttZokEqr3a97dfpSaq2/wDYOzCNY/em5LPfkNtwRnXv\nz1DHJlj2JgtoWx+LDKHVJJ9ZRRWpdfLSo8N5DOUNqKfkfWILetNIp1iz9uiY\n5M+v\r\n=bAWd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9uQLiSCwO3VeKqUXlj38LLux7ZBd5+Sh6GkCKZxGGEwIhAJgkFx20SJD0wSP+eVLtjghsHhqYyCCsu380VZMeH8T8"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605309807310_1605309822093_0.5587785313702962"},"_hasShrinkwrap":false},"1.6.2-next.1605310155974":{"name":"playwright","version":"1.6.2-next.1605310155974","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.2-next.1605310155974","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7gWyOBChHNInRAy/5URxM4KY/HSCMC4fEJIGWJRkNMilt49Jz5kg2HdRCm8j+vvbZ2YXqwbLgz4Dc4704nhVkQ==","shasum":"bbddfaa4e788c5f2279624bc67e89bf662b81f7b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.2-next.1605310155974.tgz","fileCount":173,"unpackedSize":18980748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrxbbCRA9TVsSAnZWagAA1UsP/0mqIt6HitGMrZjtNXpz\nQKGjdUtgyX4J/qBJcUBoWY4QCRLJAjU65g//2F0+GfqcHAxYGu7DgzjomNMa\nNdycHqPSKbUHfnezwqpJxDiVWNpxW25bgZiktjM3LAg9eZOPVFerWnWVi2cw\nKHI4xFwWI1PRmapXPgHIt/np+duYe4vUyoisMKJGDt/ASH5dbj0fs5f5qLtb\ndLaPEDm7C9ProOusxEWvD+pJIGOPIcjC89hj5z/CqgqPrQaroIbW/QCnzQgR\ny9iGlTZrUVna7nmfnqaGJBPs01ii89oLx8NsQAGUVxDtCaZC/oEZR37ikWk4\ntcBztGN989oyDiAhUaF1x0FnzySAoN9tDowSremhrBqO/+XqCQsTSkVwWtCv\nDldAkZrhWBtS4lMusXfDxrhL/fQbjGb0OxB/yClYIUxdoOI/LBsS0ZKbDhk1\nnFs189vRZ33LkaR3u0d8QmNnONZFxtw/kkZRa0ZteclNb56+yMLEr2i5RCJE\njpKt5eflrU7wLu/RUHoyc2UNEUgf5/6Fos0PKVWwGbLQl6jK0PmgZCZ3SLi3\nHXvq9psP3fQCiSVrfGFhSpURwK77XSwdi66oMsSrQvmmG1LZYe8Ad0gglkhX\nfOsnsSYFmRs1fu5rkZhWo6QJ429pu1DZwG1nh37TYuprvLgADMucYb8KS+1Q\nUv9f\r\n=+83Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBh55eM2DQFjA5xr2LI+HsRQ+ANvpb5AofK5LO0aeQ0AiBzbcJml1NlXMMQt1FpWNc/YpmWBvF4LgrK7ke/Y6PlAA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.2-next.1605310155974_1605310171266_0.8678975303329857"},"_hasShrinkwrap":false},"1.7.0-next.1605313873086":{"name":"playwright","version":"1.7.0-next.1605313873086","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605313873086","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yVoPHrKtaotBW6EaIgO1tYX9BlaNNCKF783e1Z32QW0pEKWXHVsuEs2zH6TavvbXDKRHCmFcHxzIq84veMT4SA==","shasum":"b02b133190d9420fcae6f7f71ffe09ec25e0cc4f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605313873086.tgz","fileCount":173,"unpackedSize":18992104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfryVhCRA9TVsSAnZWagAAZRgQAIE16zLKjTbH/sVlnc7m\nh8h9kica3ocLy1L21pPwzHzmfSkF+AyRG+qMR7Axg3MzviviD440E6lBznAN\nUl3zERJRCgYcTuvrEQIMcox00lNbCbTzWiNGKMZQFy14Vzf+OSve3eCppCBj\n9QkXVlN94TBTv53Trpm+/EUOysaXoRvE6GvkUTfIdDMc4Hzlx1wjFMKrMth/\neuA1Bwu0WTa+wmwCORx/xPTJjcC9lfAhBJxRN2qOaFrSh5s07YZMQWUjwIKA\n5ne97ztshW+C5tElIVRpAdtZSH/FrMw104gV5BqoNjvf83miKoLJbRrmk1QB\ni16gm2Ef5vZiP+cNM/P2dmCPie7hirYaZd5AtIocQQ+3sm4IjyC2pRq/TPe1\niyoN8lxsWMdU97VokqX+bhmgWZ8KWKJ9AWUHYpQp6JeZXTY3bdTQW7j+RI0p\nciKIK1YD/IGk62LWM/7WwBtHjo6Y+aU/k1jL2vSJDFAhoa7DxjPEWnFiJMVs\nrvovwqA3KcEsAhK0k0LVaKvx9FaMWYfsxQXp1rXSE/OjmtD1aiJULttclAhe\nfsnIMsWXsLF0PBHgJLJaY61VaIawPiq0xiGK/te09vrODCnFMdo1pPzL6/L3\nTt6SkjTmHLV4eXrYwwF8NuNnaWYimmlgb2eLYN3F6yp9o2kGf9oQAOJ7e6gD\nHywR\r\n=FsLi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBWTOkPTi9+y9+wm5f5+KcdoBk8GSNHEIk42+J7mj6jAIgezzwCL6oXXAKzCJByh2x+8ElEFLTjdYuis4l9w8Hqdg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605313873086_1605313888481_0.3584762178980405"},"_hasShrinkwrap":false},"1.6.2-next.1605317768784":{"name":"playwright","version":"1.6.2-next.1605317768784","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.2-next.1605317768784","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iWsUmpT08myhm/P4W5LeRoDNrlPZOgEquYBlmHQgG1UaW3lg3ezqdV0C0R5Xhv5L5EiGBRhRMHLDXbfpMlgnUw==","shasum":"d1b3869eb87a2b4837335518907ca9bee3fdc379","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.2-next.1605317768784.tgz","fileCount":173,"unpackedSize":18980748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrzSWCRA9TVsSAnZWagAA5MoP/R0sTjWEZ/q87I2irOFW\nfFVxYj526AXTyRPRGXbJfEq7KogAHc7hNNhDoWY2IB+ElQP0Ii0ZoYE7jQz5\niKZlngk/NznR07yDKA2syO7SKCKAtEVoRAH1qB9coX9uQ3bJm1IX4ERBUUiV\ney3wocucdkJG3CcrxyAgLDe9qaosQ9JIsGlpWq7TVHO7Mpf6kgm7K18IsBka\n5tCCJc9E9PKP6ixhkErIorY6/WRbrHxg5wKyexKt+9cU3XK5vM0pEHS6BHKW\niEHZDIfSs4qMd0ZfYGhEAv0PAs+vG0krPOapHFnqEWVs47chJiqeoz/oOXHV\nyfAs+gCgUAX5aSdo8ey21Do68brCRM/WILy/4Ow+mr4rcCgB/HrLO4pF+Ei0\nC+IgOsTMn3ctGmne8/WHwSnEI2ZdYiLnz6Q0+zrGg0fZKpnAapT1RAGnqS4T\n8Cvo2GZWhbvwLASLVIFfIydtzHc6Q4unlNvLx/ff5lKEJWfRAOkpoE/BUT0O\nKsMOuwEmL2cAoeCSaUe9/O+OIjZnv2NmHChlHROJhLlbqNz+WNl3fALKNpXo\n3aNOVb+xFExzbyFy/c8RxRi+13PMyAfopIWGpRXCIt28o9jdsqURtn1sJ6UI\n3C9nBHEuLZaNC9dQ9cNVGZNNWK0HHrIEgIJMknEvF5GMQ6kboH2mo0VUFX0D\nmd6d\r\n=WtKJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBreFhib5CH7h6U/yiAopUgBO1cx7HCrbzqK8ymzH+CgIgexqSmT+4IzIBQHLeyJhvuoEXRYwX9B2+rD9J/8PWO0E="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.2-next.1605317768784_1605317782047_0.37441540601392775"},"_hasShrinkwrap":false},"1.7.0-next.1605537457775":{"name":"playwright","version":"1.7.0-next.1605537457775","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605537457775","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-4c3SDWXBLG6fgOTucbM9BUSxZpsIPivu43onS3pWh8xg821JRoBwJDRsBPI+w5NypHzDzerhbJRkj9lOM4v+2Q==","shasum":"04c50504a21eb3e70203bcc0cd92301ed30a2d58","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605537457775.tgz","fileCount":173,"unpackedSize":18992243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfso7BCRA9TVsSAnZWagAA5/YQAKMi8+RFzGQaba2yV51/\nbdvJ9nvrFmzFxOP8gBehW2Yw5jGA9igVoFgZLIju+3e9odanct87YO7MLvf4\njBzH3cwxLlFssCLSHrQg3qCZ62eV5hOgyNlzX6+715/uTBvValL0t6sU1OWs\nPHBdmL3PMbCshq/I1zQKJFTFih7/69du60x8obed4k4dnhfRBQ+Kip5q1NPS\nquCIMuB3pN/Sen9igiiB32KrYALW3cpFwQrK5e3DJLIk8nzK3uUOPm0GTLUn\ngJoaEoO24dChBpq2sDG6NxnZqA2ho5pE1pWM2ooCv8M8hqdoO7mf5VVWywnx\nqKpsiCupHdfqGnAyFrlI0ydlGJULA4o83mTxUPSUcRgiXV5mMUs2KKNcZMPu\n1SAsQzjjrNS+wxpnIQwzaEwoCoHW78d0UumZYnTMc/AscluBgZVBr1o8Tri2\nS4aNTa/1F8OYAyx1PyNgpBra7SOVdDebG5oAGzvv/JNeYRt5N+QlqJ8N9ZpZ\nHKA8yPqEJjNl2KuDXjRVgS2Eil3bN+FCo3/yZzkYseIcGOXvJoUtZNjQ9/oF\n/g5rZ+wllMGlK4H8BAmuyTtZnc6n+p2K0h10BphJKt+MuQmsDEb3KAaYLIhp\n7UNS2ENqTyEaxJ1ni28ryqD/5yJtp9QfZgRy4kdQ6ihsBwCIlg+uxxg+iGK5\nIg5Y\r\n=2OS3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHC3jUIenUsiXl4q7AB+FbqacqEOyvrKBHQ8DFowgTVnAiEAr0ZuILJzGXd1QWBiZNDIABjr0lBynhC9/exg21vwjUY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605537457775_1605537472972_0.5438768229658086"},"_hasShrinkwrap":false},"1.7.0-next.1605549666732":{"name":"playwright","version":"1.7.0-next.1605549666732","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605549666732","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iuKw4had8iR43Y1NeZY3IMhOdxBo/188MQj9CL/eAZYG5n6fQKJAhNaVBrkC27msRk02QGpw7rrNcXZ415S7mA==","shasum":"50b4dfa4045bbc821ae6614beb9672affb4cdda6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605549666732.tgz","fileCount":173,"unpackedSize":18993062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsr5yCRA9TVsSAnZWagAAj9wP+wZZsw0dlPz4dbauUNxO\nfAnlDlcjCoVxC4zKqvzCOp46WK++8/8xrY42NZsSk4pWthMIuUP3zrUtuUhA\nPVS/YEj+I284bAAKHgfiZSJU4+4OxwpOP31mXgiM8S2ZfvKNAtndAThAva5m\nfYNSkKiWZefGE6P8E7QaBIF7t/c03Iyk+FHCJzp4PW0kYYLZ3LaTRg6MZHZl\nwr0hOzHaEU2KjE2dQ8VmLCsysFvGHbFE5v0whIXkPfs6ddY/Kkw+GtZxOvkC\nJCwLck1enWIcZZP1rR6fukqI2pqKsKQ+tn9mhkKfAtbU0oVo0qSAig1IusjS\nog9eJRosNy+vtYDHoicHSIG5O0ie4XOAIjcrFd6RbGzyhvW4fRx3/hWc1z+r\nyoPqjIWqV+miV/+nyVMh3cBE4tkvDQbbOpQiNlrKDZyNoOISqbBQ4yuvWBoN\neEDxFPgWqb26bs5e958luJ47XUdEJVSYryG/4/5fOAq/LK5d44hpH6s/b/+5\nn6hgWkBbb/um4seK96Gb9PUwKKAklVyfTNb/zKWtLrjTWqLyb9HSuUIL8WZU\nflPCr35iKeiYLu6ebOL/LphgKVdA65IRjhe43ZFlzl4FyI5iY+8/Av+zoR3y\nW+RqsLnHA7CfaCPhdRtOU9tOVmFb0zn3cl210PG5gu90rtYhMQ2t9+LfbrJP\nki11\r\n=gMm+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzWkpyOwaD5eX7YX5Vs9nCzv4QGf/W+93aH0Eljqr5ngIhAOWOGxQ1OD+JF6p0gGCOpp9r5leue7cko/z1JMOROsVl"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605549666732_1605549681373_0.6125448551183017"},"_hasShrinkwrap":false},"1.7.0-next.1605550680087":{"name":"playwright","version":"1.7.0-next.1605550680087","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605550680087","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/wTFxv4hvLlkjT7A6LvCDCIaVhFkaqIfflLJGmtTMl5QNNqKz9sX0bCkpnF4XMLe24fkfWIELS4aV4EK9eiEJA==","shasum":"38f3e797717940c330b87afb5af7d0be9735920e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605550680087.tgz","fileCount":173,"unpackedSize":18993062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfssJmCRA9TVsSAnZWagAAg+IP/RHWqSWr7DlVGG/u4DEU\nuzu38qA1yLqMnJfr9cixumq2d0Qx+NZ77AI0Wi0voHOxcgfv7tTQ1ynDLRcY\nW/ZewbPwoo0GhbXGZINk3fQ2JHCPVfG1f6LjBkROSWjQB9yF9O2ibCS8Bmrx\naKvXE/iNdBq4sd2eMERRVsqqZO3+51QMnNkeQ37TVVbZ6l6oBEjJKqUTKP4A\nNnNrcsC5bOV9AK565GLeCoKmmDxfITrlfyr6n220YJzgz6LNpEkl6LL6HtCu\n4a0aKBzh3YkvTuQ7Zn+keAxb6QsizJxcyx3LR+x0K7WAoqLK5igKo3crD850\nEMhWW1r7+9dxj7PR0qGX5GVauNehp8QMthmyL4sJ+vN5BnUn6El97G13OFjr\nQ9QQnpbPnppF9+y8jR8GOOgcnU2H7TQSdLBuIE0T3BRATuZVUK/sZwZg2hK8\nT5V9uewDmpQEYAsfRXycpouFAr4Az33FkVaLfVC4mv8wjcm3CHtAPbdfLIGQ\ntxzNBPvqvy3hMOVygkBktbziAoQhtFrvce9clnCDflWk8By3olsxqCr+MPYU\nnP+5QCB5GgefQKI+LFqHsyX5UEdxsefckD5y8sSu0kSg+VcYwqcau8H5ryAD\nWyNRtT+bdb/VkXxzBS403prnaZBvVd9t/pML+7bJqURuWthr2+1Maezw3Zi7\nHCSW\r\n=H0Ee\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDWciRlKP22E+ScU+nOviA/W/KIvyfZRMWJD7YmHF/pGAiBXGvX1x5S/PNlvfS7G5LC+XmiLSMMXAMqDSe75ltDNLg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605550680087_1605550693751_0.2212465208708474"},"_hasShrinkwrap":false},"1.7.0-next.1605551352624":{"name":"playwright","version":"1.7.0-next.1605551352624","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605551352624","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Gag4loQtApQE0hQNXW1rXaA7BOfG/pQOL9bwXb5OKKmEkj7WytoYOaUF0090CR7kJrQCn80InUtFWPMvhyAyuA==","shasum":"29644cad3fb8ce24807bb8b2feb6a6e352ff59ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605551352624.tgz","fileCount":173,"unpackedSize":18993252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfssUICRA9TVsSAnZWagAAX+AP/i9FYv/z6TRdDICY6Lby\nBQHFl2Cp/X5kaROPNT7qz75dUMHKXjm/RfyX3TUkdNHq5AiWBYnQou+GbDle\neU6oZesq8UfSTpl1Y/GfUNg3k6nt+7LAc1omLygbQMhHXYcyPRBQU/VcqWy0\nucrSe6GRlV18r2sE4jLflQCIqDVvK8r17XzhNwEuEDk8SMKBtKrJp8t3qaA4\nc6pFAOZgRkdM8hpjPdr6oNYevJ/oQgQaQZMblVcFwbdvZln3tJf4Vajok9DD\nsiUSFpFDRlxRdgr2b97FXKnYPScazyecZegomGB5B34hqPSHHQBBTiMrKkNw\nPmq2H3psK0/8fvhoLlTMfGKLP98kOEO57bJkGhrkbfIbmNAniWadnCbpwjCy\nfw9N4d1KQTxZ2+zc6pmoCkSe0lYCafHVNEHuzpgd1Eayszr4Mc3TvEans5iX\n9ahbfvkYGdXodrwq5r/6s/YJpYcosyYq44/DlD/Wyoru38GYEaGZT5XJ4SEu\nA5sI4Jw3VWS8Km//KPcSZ5ys/7wVk6lBRDcqIBAjyjGUJ3z/Su4NYH9DliUh\ny1mGoFOq74+jr/SjqywxCZl7onwDQi9ZklQ7oSGN2dW8WRSpxbP1R/1/sfdh\nHcI3v7MPLkq4zo/AP+bChWzSVWkSoxqYCeJ48bxoqKtht+9hu1j1s6wAVw63\nFgq5\r\n=Bkbm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0szwqZPceSHY54T7t14OTZxAQYxBWLw5p5J+3UwAkjAiB0tF4/kZLMMa8eX8RM/9HPb5KNjF3MphwY4ik4Udwjvw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605551352624_1605551367227_0.46240222328180325"},"_hasShrinkwrap":false},"1.7.0-next.1605553750231":{"name":"playwright","version":"1.7.0-next.1605553750231","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605553750231","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-TxO2YBXV6HCP9AM17TvQ/kDRtPcvKTZo51XddFmN9eHWpgkODn5YUtmdh9j0GYB6sKYOjpqg2OrVdrMHYu5l6g==","shasum":"ddee96d3581bff22d76eec94bfea6ecb8240aed6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605553750231.tgz","fileCount":173,"unpackedSize":18993252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfss5lCRA9TVsSAnZWagAA/NIP/2QJhJapuZttjoaiFSod\nKphMuDCHJdCoJ9PB5N2C5PdprLDf9rIEDnhZ6VkX5JMrt38XoSkv2waj57h6\n+yyepxDCUnw6WDyxW5wQJibKNHFjVSpiicBqRWY73aD1G7sKqmfrB/71iP++\nF4Bvr0HKSY+xAupG/SoRAifO5tw7r3zOYDQbterl9pIvAgWk5FUfNkgycRuf\n3wTrhSDOtk+PNHIiQZuOgfyoBUY2iahjT3AexSjk16vlKFLm9xRwknAh6gFb\nQsV4UT3yjhalaTnNQYsyDYaX4PRyXEm2KpCid/nIA/1Q1O4t4I/PFqh6eoLJ\nl0u5GtTD/i8DdqE927asbRerbaxyULUOm7VG8/Y6np8Qa6MqVwEbu4oY7N16\nyUPNFkBQ+pdae9Iv3QIIAynsTOHi78qOdRr9bWr15umvqgwbFziquAe8Icdo\nQvduwksMGMN2dU+Gep2QhL4sMCZGcRvWyT5CD73CBbENjJd1o35gVLG4vjK1\nQuS5rNuf+u1x+epx6lb5RNkPi0Emt5BLW56DGhoHKp7fTemEHuMj+tuvWEdK\nVdrWfL4PmQdxqf0uzqfYaE1QDK+EjYvjvs6N0aDtBVg4Zsc4wWEpm/vpyhb6\nq493Q2khI7YmHEe+8J4RgML4Gmd/L7vngZPQ1BFCqtsGANEtqDZRtAKh2M5h\nUcsU\r\n=+cyD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBCRXRo4+vVhcZIdq3U8pG3kv2dh3lxuIE9DwJgNTtQ5AiBCkyrHYwoIh8yCA5GmRoiKIHRXBJfEsaV9w8G0BWoW+A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605553750231_1605553764614_0.02735195908236321"},"_hasShrinkwrap":false},"1.7.0-next.1605559582349":{"name":"playwright","version":"1.7.0-next.1605559582349","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605559582349","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iLoHgLGp9UsnrTXfvWGS2EClV/B3UlzAXPtaQMj8G1C11ydDNRWptwcML8LpVfWGQ0GRGc/Y/tOEGK6DXNi25w==","shasum":"82ffb46600ba4c499c41b5ab772798bc5439c14e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605559582349.tgz","fileCount":173,"unpackedSize":18993252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsuUtCRA9TVsSAnZWagAAawgQAJ7L8y7O5nmZzrhn/T1/\nLWqqwcyRLbTbolBARB5iQl3gjTSyvyJcByGW/RFB3zDZ8bfN3IAjI5RLT5wF\nCMDgXXvaCKGc317CEarfWvecQspr4hYTxJvJHnE49hlkxT7Sr6KhK1TyU0Jr\nDHvfLRl24YLrKj8gVaV80isOmCJBxngRvYmvUqwLLNLTzdrPjotUpBbYWwPu\n4KipN9EpWIuPMM6lYIRxf48bXkb/8yQbw3Or1RGACBFF954kg3/XM+YWmCML\nOKnoBuKhaSehr9cfkyjzH/yJ3FrnUsoTIVDjijBbIM4LRnJNHlWLE1etL7cV\nyv52hUw8rnYR4Z/HNL3JhbvmFx8VNzInK28hZBwZ+ZIedBFHkMX7TcGbDIrr\ndatl6up+uD1jryEVa0hyHWMHEgkLlKw/TdQ8qjVFbTYbiQq0RDjRrk++vP3A\nUGkxPU/lybmTCXO1xDGp03coixoYvBsfCrzuF58q+MxK+4XOtvAFiAipXVOH\n83/lfJhXoscYzrkKcxMPc0VVXW3OVyPEfxzDdQZnDVuVsecasWm5AedgxKD1\nQu8ye6i82t0Ku9/iJrOztbVK2sGrGqplcYvMVG4km2dD80/5QOWys4ZV//Z9\nb0BXD1ZMlXlgFuuxpiyezmC3pfvxu0mucBgOhEyUR96PYBbsG78VzjpNdcdI\naEf3\r\n=yl1O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZU/FxqZ5F4ivA29mcl5AHk7jgkv1bpXj1y1GoAfepcgIhAKj2jqqsADsBZI/EjDgSVaSaMqA++xVL530R0GvynGbf"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605559582349_1605559596295_0.6282585655954571"},"_hasShrinkwrap":false},"1.7.0-next.1605560696101":{"name":"playwright","version":"1.7.0-next.1605560696101","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605560696101","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-qF8k3zfRMY8DUyiEGJO6QmCywi726J/ougjlySQ1CY+Ji2AoaLpFloYsqX5MA2vucIojCpYN9/Q/vxJzsdZUQg==","shasum":"9ae18610fad8d42ba1903aaf28c34c84c1f048cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605560696101.tgz","fileCount":173,"unpackedSize":18993252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsumGCRA9TVsSAnZWagAAgX4QAIWzpNRr7z/kVGZfOEs9\nBzz3OmJYuCG5c5QVziLUweWlXvphB1/h1M841QudUhQI5/+5MOwvIz2ehzUO\n7qwssbukAEAFJ7eBzIE0uJKQjNl6jqckD7bSHji6GC1Yzm1jUceTBiPUppRh\nXlgjXHPa0kl2JNVSgJveJ4R5VnewhDGcSRfZsZhYNrT624YfpZkNU77cIGBE\ne+Z8jrt+Fv8M9F+agNMsSPpWjX6l+x9KP6g1owTZFOgHTXGepL+W81UJPvhj\nA5fJ2uryvy0Sz6QNF8kj5BrTcN22ZFTCo+VSSqWvecNt0e5GmrX6jBueRM+Y\nJeoVgyV2SVEQV9mQK+aUhR+KO/OYFlbeqf5XCbHnhJmzW+ifjPZi35aT51mc\nqb//liGOHQTJLIM6O4oWIiZgA9/+WqG503fBvwc6bKLDHkWCfQ705gAqCXW1\nLvVtQHRpZZmkjMj6WkXHZSDlnKYauCo7Tz7SOn/c2vhv8pbQ7Zf5y5eGThYX\ndxMQ3Qb/eRuKW+eQhgcU8mqtT4HJDdkL7dbZZ25AftHzbU9tVdQGQbMiJbA5\nxPYRynq0JNQEk3R+RR60L2XBvwAuuuDaejTYgvh8p5LJ6MxR8DDEu1gyoCaZ\nb64UdhNp0XcboCmNDgVJylyrgELP6R0RJ1dnBAb2+/A9OVR72COIH6g01d55\n+tMY\r\n=/zxy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZEeLd2pcqvTQk0aA0N+NrtP7VbQv1ygSzvWPk6B0C6AiEA9Tpezxou752dtGGs3GSBDm1xCaGqFi46DXv8j50n4r8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605560696101_1605560709586_0.40090531126333695"},"_hasShrinkwrap":false},"1.7.0-next.1605561513300":{"name":"playwright","version":"1.7.0-next.1605561513300","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605561513300","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZtPTVQMw+r0HpsEfsishjujTs5pZ3nA4LO4Q6JsoezaDR/ErpgRqQH4DD3B5ZJ8btIozJ3XI/p8Fz9PR8/Zhvw==","shasum":"01fa25be2ad08c7ce0be329dc68072e53dc3ade0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605561513300.tgz","fileCount":173,"unpackedSize":18993252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsuy6CRA9TVsSAnZWagAANZMP/3e5olZF+VPPhjdyUcbT\nqL0McVySN/W3wDUk8RcYbpIpOi9XWuFkoArmc2oBZ80zlbaS9rJP0EE3hpbx\nhEJ6fGGs5PVipXnpBcr4qEWLdlzaBHaPPl8h5Pja0LsBCd3OoAirlfXswgAH\n7I1YThCIdQpAuOgEmWiAM6cGcRMna/hHLuRpmjDfQrp+xGXR+wyyxDyNcHgy\nBaKocijzyGqOWmd0OedQpErfXD0uDod/PIbTlpZIdjWrK7yThzQhilAgNNQy\nsd8GCmD4+7f3NrW00JoL4WzViYgvDBZiIoUE5/3J14zXxom7SDQhYk9/qlya\nu3/JsewuEF4ACQi//ifMIs01PvtFNbWcRmLOU7eX3o5arSk6k8owLwYxnuFQ\n7OssXyVeW01ksJU0c62t3NOM/2iZSeMZQiSGqhl/SzWeCJq24cR7ugHY9k3L\nsJw4Us3ciPJt9+Zkdq9Ahzwim1cTyDll3mUPca/RiwmAnd6k7ejgbkLnPbic\nvKvNZ7/mBYqYKKdoYoIgTlyyNkHKFe1dUnOuCSPooNdzNMCgsRW8qSnnKjeG\nsA3V+R2PXyYdg82C9AND/KohBEKtfZgFi5PkWe7rt+Q+u/R5bMaKhuKdffbV\neqJDUPlIG5iUuz9xC8gVDdwmPlyqzBrrvHuWwwb7ZJc14CxfV6FBl2ALFs7/\n1r1N\r\n=uK3/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTVeuu70C8wLQRof08lDe/ZT5msk3/Ejh5UkuXtyrzlQIhAJBvLvc8fQeEXKiGJoeDkFVxx94CkDynmjpL4CK+GubU"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605561513300_1605561529402_0.35212013935453856"},"_hasShrinkwrap":false},"1.7.0-next.1605564839236":{"name":"playwright","version":"1.7.0-next.1605564839236","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605564839236","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-pD2/kBd6kOpoj8+AxzOef0WBqqNwF+gEpx+/yTZ7eMpqFhSpUhO14XW6iHUCvqMqMNrnpAM/vpzMyOylyQulhQ==","shasum":"a14b0dce6de66291de46de29e4f71c39776f9498","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605564839236.tgz","fileCount":173,"unpackedSize":18993672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsvm2CRA9TVsSAnZWagAAqDMP/05QH789ZpAyD12wv25y\nzb7Ycn6/wFpkyFz50i7berrbXsKlVpTNsg23V2WkhVkhq6SfjyWM150u+J3g\niI7PCOrlTHRb7VxYrn98Y3okVu5uAODpztGlz1X+1haxiSulz4JtFbsJs/Cp\nKdExafkNV8wqEO8L/FdAio3lPmq+R4Ja/oAg1soMfD/SpL8dX6Rf5J/RZGir\nCpHxJ0C4xVheqqh6YxjKlhECaRrAjHEJNakAxY91tK2GnWy26ZijUVu4C2vb\nLnHY0jFfCRWB7p1AQgAoAmsVzzifROh7m0izeSxu8BMdT+AHXVgHQSfly6Kw\ngopTN/elDRNCOcHdxk3EGA+U2RzP8AjWajw+0XTzTugZrE9Z7snrFN+wJYn3\ne2Ig1cmaFjUQrBVf9VUdexvod9UxZQcw6C9QiqxPw//ql0/TGT4AGsbx35wn\nTM2PyUd/XX/ZafMmcQyZsKLmUJJ+bOGyO+krXFAo3P1Vz1FDrkQYdAJ7/l9E\n2xcRY89Gwjtny3qIZAe6Hju9ITpNmMHLt4+dR9i+s0I0h8QNskuWtcVuCbuF\nVadjjkI5pDLuQbMFCQW04oE/Fc1JzLx9Co+zgqh3j6zMTqDGm5oUtm5dJURq\nxNisPpPT9+m+FN9SF6w1bVSaF9JUpI18U7uZjvf5dLC8RXUZGOM/qMnqR67x\nDXWm\r\n=E4Xj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAv8SJxbRWW1v8BlIQcKs3SXPrzf4oRnvTRwZXlXQatCAiEA8xooEXT1TmR2hc7CcYW+43oCZB88V1a6MoByl/AtcFo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605564839236_1605564852907_0.926863954739636"},"_hasShrinkwrap":false},"1.7.0-next.1605565691858":{"name":"playwright","version":"1.7.0-next.1605565691858","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605565691858","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-y+NkpaiXvnJF5MdpIeAb9lJmBKwSWw17IVbscbDueEoAsfM4ja1Lz0q8+mPtNjKdB8l2IQ8+bIL+8XjA/AKoxA==","shasum":"4c33f3f399018767fd52074535b7e7d73eac2a14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605565691858.tgz","fileCount":173,"unpackedSize":18993672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsv0LCRA9TVsSAnZWagAAfl8P/12QOhc6EIjpSUfvtCUZ\nGsdjd6J7ifU3W3qypGYj3oBhuFGwefVBPCDZ+Zxru0vH9JrAdaUSofaFoJ13\npvwSAYFKpybcvIOsj7i1Iqcd22VLwLo4gp00JC5kie8NTDAylSmMgfhK99eK\nzWffFf5VVjA3iAtgPle/t51nZgyKsYjxyid547xw6vKk82tFhwHZXcptQOKc\n0aQorhINMJI4p9LRPE8Sdy+9HuUKYg8K2ui+kk3WWGAM4SQOfHrY7QFu/uZ8\nQ9syk25v0pYSlvMD7YzDrrEdA1D9olJce3QOKTYBwOluuIg3mx//JZyLQ3xo\nAmwDxthPH3dRlhtJUxaaD3OUfLEG0A8NG7B9afBkLgcv7seuvO4IjAIf6hrb\nOydpK7rYgqpGZXoRLnORTs7KxQyR1rjAFvQozxnox5qEBY5i5toHIXP6PcWU\nYkhOMbrNSAbDb8zRxAQZ8MPRQ6MOcUPEWbwOhsKSmW6MjY6PhfaMxvr+qpD0\ncWbCrcPa2m0rQ2fyRZGE79bSDc5SjtSS6RgbzYYexpRa5uLP4RjfCQoJou8/\nuq5dLzzqNJw8mrdMbuuKS70dsB8JvsUuzI4V+4zswr6ma1hds5+bTQBRIKsF\n6ka9sHP1G0f5MOuxSkzDHLHpcf0qHxkEKGzSLjFtB6sNf4Gln09ZpcIYlCDh\numCo\r\n=XkcR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHA9LDHlgX11glfCpD0iRKConzD3Z8z5+TtH6V+szG5eAiB92RRKRwDiASYoF62wyJCpE7zTv6x3D+iSy60S9PFbeQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605565691858_1605565706443_0.9615386599615641"},"_hasShrinkwrap":false},"1.7.0-next.1605566029936":{"name":"playwright","version":"1.7.0-next.1605566029936","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605566029936","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-h1BQL45cwdr+bmms6MjA/+ngCMXAx+0iaeysw0lkR6SzqXcSH8hYP4hFimHt9m296vrit3xeq/EJAJYusGBFvw==","shasum":"a91dea0a9469bbae9f35ff64bd2c337754b025d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605566029936.tgz","fileCount":173,"unpackedSize":18993672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsv5dCRA9TVsSAnZWagAAlD0P/iwDP2xjCSqAHDAIXYOu\nx/NsRmO0lavARAPuZ++tmx/YmLYLG9l2K3lxvuX1eSyMk14tHht2R3AE/LJ3\nun+RaaiNXff3/EdyuJob3n2Djz/R7ua7aN1PWvbg58Z0nkAjnEaIUU7R3I2B\nsF7uQ8vUfNpQSC3nj6mGxpSrCR7iTIlVoypnmt447KSdMRUL0Ri7uJTADtks\nozwcZx8xqQcVW9KvCMG0iMjxX9zhJjWiYEj/PI8eGhcno8bN8BUMyl5q611d\ntHlTaVnqg46LWyQoYZJtEWf034YfRtNN7db4O8eQNCEVHI07yi1ooP7bNJa9\nnO9DNF7qj4xj2WfuND9xVPaq2DD/Nlw0QFJgTIfcj7XGjXwd4A+ZkBrs5t5h\nt3OJcWwU3zExOcB9itUjBP4WXy/TrgiXXtonNcUePq9XaAIhOBLPX8PAj69g\nl72BHed5LYwkyXFrHN0fWaosbVnaA1RVDC0AT3pUIdbrxOGWqQ22NLktigk5\nnygEuKiUJj5p4OIkuV5j2obkHNUkQaMeOo0plrbDPq8X8PT0dW31Sd1KZH1e\n5j8m2cULT5Odwox6QFXaOgnSWpgPzxQXEjgc62sDTR/P4QDSUUdWb/4woYYr\nCA2ucfIHM0RcVbrOYZWEP9g+K5e+0KYxrdze2fABU3YzQERjVkNL5rr32c6U\nO1jv\r\n=dYcu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDF6ZS2uOCR1/cDdoNCZDdEDyoY27tbo1BTxbpGJruDsQIgEqJiJ2pW0l8RU0a2896D8C9g/rbytHIpBPAVDb4kJQE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605566029936_1605566044969_0.9351566526342059"},"_hasShrinkwrap":false},"1.7.0-next.1605572442758":{"name":"playwright","version":"1.7.0-next.1605572442758","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605572442758","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-RttClOPCGUcUDlszwj1YkzLie5wW3Ey6PQW+qtWEZzMuLG4woFdGtoD3ME5YKNR29OFc3QeSPexfL75FpDUaWg==","shasum":"8bdbf2a506da17d907e70121d56e2ffb750ca86a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605572442758.tgz","fileCount":173,"unpackedSize":18993672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsxdpCRA9TVsSAnZWagAAI7UP/3FCea73GgfMVxYX6WMr\n41COwedYnYnFIKliUJTUVT/0eNt9WBREb9mQBTRt5I/Mkpy8pRhNzxn6kC+Y\nhPqaiHZ2Z2j+oIwcHexT72+zHNaUxbYGrj5KEi7gxkSBYbDYEhbHQp84kg+7\nXLFf+ZkMeIi1V5+9f8SucMe7AYT7UVDubJDsGKL4mmyWhm2ldz9Ww6S88VEO\n1/7svp2cJc/ltpHNtLX5BwK6I202es09RAvLpvn1Hlj8bjfB2iFVmSOuQ4yK\npYgpRFE65IYtwv7tH5sAxXAIDbF18Izgj2+hImNeI4iRDMi8KivieU3kD9OP\n9rUKu+J1DTURGYEQKkFv4LPEaGuC5w0Juf37U44P4yjRW70extFNe0bUDTbf\n1q/NwDFBPNu1ZUnMXOUHcOQn0Vq4cGJqKqGGc72ln6lL85skUZKvcDGFRnVs\nUDfzMfBKPIijI5hjGAUajc80jPhebRp2kGbri5cupmNYjIJ3sZq3UNBJyXvP\nKfBSZiUgfIShqoYGOVi8arPaFUX7cpBgqzGDHWaD7UK8XeFmsbgC0BKKXkst\n8IaXIn9hjjgZvdowLPj0lVZE9fKfWTN6CrfBMZEZiALkibq4ed7oIBIEegmo\npDK8EV7UQtwnB5xCaunj2PJ7MJuVNrgvttGKeD24R7x4Wl3jb2PcxwATGPGG\nVeSn\r\n=KrG9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHucF5wDIuXo69cV44pm1INkUEgkQL6Y4Btc9aBIDJ9AAiEA/sE7944IMJD8ICnijI0s59GOwdhtEQaqlvPM7xJzVKo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605572442758_1605572456527_0.40502721785127793"},"_hasShrinkwrap":false},"1.7.0-next.1605573954344":{"name":"playwright","version":"1.7.0-next.1605573954344","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605573954344","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iNvuL2QOcGHvdR+XbnsP4T9vdWC19haMPAlUEJ1f+y+Lz6TsNERtL2ZXABYZ//dD1sI4vnP4cIIx4nVb1dnFfA==","shasum":"4a3d54ca872ea0d075a02d1ae607b9edc882e30e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605573954344.tgz","fileCount":173,"unpackedSize":18993672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsx1QCRA9TVsSAnZWagAAcu8P/RWPKyJlLpOq3Z3Aa1P2\nu0OrSunamexDGsGyNlrtCQuMeToHR0r17t7QjIKaPSUGHWjYIU+18oAuuwXE\nLKUnhNkN69eqb+heWbkJM3sf2aXsxSljBc2yk/7NGqteevVy8Bhl2/QZndtD\n+sSuETafHR6GlE78Zydl5qILxxVNEe4tbq5HMDXd6MY0IQuSY+cLSbjtZKKa\nxbKnYMXhuBR+1s2UD1JMDERDO70wW8EcLrRHgSpd5uaQIQtNwPGTJJrQ1wYK\nXVk0wgU68odjNlD1TMTTAYr1rspAEyBgB5nLLH3073TEr6GCcKHcFsQksNQf\nUAt5Rk700oTB/cupHWw9QWDAKSKTaetNyZUwN8TcVX5GJmt9s0oRv/SEei+c\njjjPTuKlIUL6HdlFRA9zWbvnUpd7WpF0cJu2Obp8p2o9mIxTDN5t8U1XPpsA\nNStxiBELCO8Cr6jYbJ44VbNEEAeh8X5HLbrS6pyroys+iPAd3Njg7+43m0Yj\nvil5eAN5FeN5Rc4UX3hlPPEDo+VIngoF/hvQ+44I0IELpcCAr3FTwf4ONdi1\nRfWGPfj79jaQIrgH81rfmqbkQGUcYQx92m8LmuuTHXnl4XftgxWLlfccBv6T\nYHjTvMRKlmU4Sk3SIIRUcr+ypLIgv4jXl1xQyca4nnFq+MlCDSVQg8CBRhWe\nwWff\r\n=ta2x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnxvcuyQTtmKyIhCQrFp1znfPbyx4JezMiibL8WD6ZXwIgEMOQ3/uqUnx6MvHEFxdNZB5/+NlDb49rY22JuvkWbQQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605573954344_1605573967295_0.041405938366783746"},"_hasShrinkwrap":false},"1.6.2-next.1605574338111":{"name":"playwright","version":"1.6.2-next.1605574338111","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.2-next.1605574338111","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-f+kW6/jHXkfEBjP7FLsRxlYXQRym8BYcHkXueCBcZQ2opFuPqbJtYkDDfkzphCPaIbuXkWzcvVmwSNeuHJIfRA==","shasum":"c931bfa5a1b2de22f0e47402fc794fb1c3f6bcad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.2-next.1605574338111.tgz","fileCount":173,"unpackedSize":18980881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsx7RCRA9TVsSAnZWagAAQxIP/jIIsLgScEbCDVG4GRVR\nhsVDv7RndZ1kTHSILyBk7jkTagvfrI6JWUmPpokmSx9HvrIQ4C3VylNkOpy/\nYpfuC7synb61uJkzdJfNJWfJGh2eaMayDj/RHIlDbUBSnTUwlVXS4gZ7i/vV\nTPpCmqEKwGEktYYT/6rQyENvVu/j52QYh2zYYqxEXBmnk04hE8QIas6jAGw8\nOc43vbO30CrAySv/D/w+5Lq+r98qmMi7lqlQeBxrHF/e9qd0yF4QoXGEo3I/\n4DyDGPAu9ijoCxzf6hRjHGIKj5wXFlt1IcoPcXWeWagPxTYByYqcBSW0NlxG\nMQIX2e1xYOna0cAElofZlg604xEvNNpV2+TU/OuZhdeoGbKHsxJsUwhe4QVl\nNeVuMUH1MAEE3IHC0DtRS8h0QgMKdcutIXbzekv1muNZHAsi8a2pomUx/cPN\n4C9CYWs7wpuhRKBWYUJuTlkEYwEZ+qICeeZRELwLFnlLHiAiUr0+ZYqAWDx4\n3SggvJNu+z8zzCfPbN8hqn8mXyZBBJ3g8JmL7bQHbJi/Rd/cATOyfeLuqFuN\nF0GTMAlw+dlLD7z0qwQidYVAp4DXS7ywUoMjDvM9bG+YD3fOPNjy3fwEymbT\nv1vFcIqUU+X/0+QCTK3psedwRvoLIGBawRxUfhWiI1S5GdX5Hm/4/DfkMQ0M\nCeBt\r\n=QzjS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK5mV0sxg4v7NqXTbFqXtn2wBQ39yD6/6msyM8i9dJPwIhAJgQGwqejnhHvnYH7h4MlNzD2fTIZEJ51b+4dLQsOc28"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.2-next.1605574338111_1605574352079_0.5950653110184723"},"_hasShrinkwrap":false},"1.7.0-next.1605578746309":{"name":"playwright","version":"1.7.0-next.1605578746309","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4316.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4316.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605578746309","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Hj4tZd31XnZtfD8ikhW0S4zI6qRNs2nKrcccDDBOUgaDbRoVy7w1cszUPuxmsublGUBSmKtPsw3DPGpx0giwFw==","shasum":"a31eab98d4054751ac26daaac04ecf4ffa4e0b91","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605578746309.tgz","fileCount":173,"unpackedSize":18993672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfszAKCRA9TVsSAnZWagAAnb8QAJ6tZLiC6MKCwkImLJAu\na3G5UWge2X/gsEt0SnV2aAtKhkai62lGK2rhRKHQtNKsP1xHmgPlhGVP64wW\nOf+ETqHj+B4Z7oP29UtVU2KRwdPr1Kkh0GZh2ZNmynBj7L2cHylq/+V+9+3L\n1wmi8dv3Hm5Mt/b6kSqZf8YMj1YRawDNBoXSwAcov9DeIbFK6BpNKt0rR5a6\nuwJ5DEJ5IFOadpq+u2dts1xXI1q31CBTd2WD2OP17ZnuXFwdwz0xnVhiOb8R\n32mYS6iIZpVI0slGYXjx0E2EUeJwydweZRo+tsccFehNX85mjxIxrdS8dNP7\n77Cbo8MUjY5Wdy9bGXsXVqnd2w+RiJpnF+C4iXdDtQv/NwIi9NplRr4gspdV\nZcL88Hl6NDUuu6ciyC3BrjqutDIMlNxgV96KBoHncvO6VFbqo+pLY26cx+RW\n0pryh5+aYDEKvXu7fx3utWSY/cDGPtzMpBhr4XXGMpSNravOzpHWeXWrLItb\n4297/+tazf02esKmZamESBzM+ryD9KpmoNeKMNNxF4+K2/ubsdyiaY475QfD\n7YXuNYZvtyIKgLJJ+qNClxzoRMpaVmqbK+Zc5pXherMPirjv2Boma3+W+FNu\n+JEI3lO3aQy1C6v7nAHbCMkVhH3Dz4LWYvS/Mo2amBQYFIwv/QyqmT30LDUl\nDmHv\r\n=IqkX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4kANx63DHpMdqDdVcArUT0l0GQN8tSXnA7tMOrAAorgIhAM1NdPGFVzdl/3tVDxWNeFGArKScIQ4eou+6RaNub4kH"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605578746309_1605578759707_0.6334674260451296"},"_hasShrinkwrap":false},"1.7.0-next.1605581873574":{"name":"playwright","version":"1.7.0-next.1605581873574","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4324.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4324.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605581873574","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/d+NLCILTcpCwzeXsLnIQJSX+4WKnrC8M4HgLosAX3akHlqoqGwd2yiCimp503oLYRNvjVRNrn4mWf6eGxGddg==","shasum":"b4839cdb718acdf36c36adc5a690e4bf95af12a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605581873574.tgz","fileCount":173,"unpackedSize":18993672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfszxACRA9TVsSAnZWagAANDMP/3XYt3oYTeFQLiQEra5I\nc/lnaH0NnyigqORMHpNcRQ6mkmo/vN8XX+r+ZE+JqptCMDzvWC1cFtGRxLqE\nlqRDWLd5C5Su49d+UQSLNOj6b+9oeSrj/5/ifhE2neO/rrYhgGXXxT3E3rdG\nPQsn0OKJUdG1xnG8iWHmrste6J4k4L8ZuemCAL15Fk5Jhbkj6+3U/seBaieD\ncTWoIrTb5uNU2BxyBxWt9js8dsjIDcC+pcbjKtEpgPgIcLQGi+/wTFae2hoA\npf9T14mJVM6XtXvWtZ0pp36l+GjQwmtAcjJlbx4ZWQEVYpdLsiViVWhauSGX\n4/i3ZkyCZJgln9pRntpbnbLP6ZoPniPgpGRqokdKewjuqEfeyUqlAU4JJ3H2\nO+TeAKVcP03T56J6x6ZaOpLq1gG6lf/fPtQdSptz3h0wgJm4qM4w7wss++kb\nG/KuVB3TZ6HTms1cVnOJOB9WmrZeLoi0gG2IYoyxrM2VneGH4czxgvLGC5CB\n3dpesFx7vYAzyFcPVLHo0wUzvCldrZNJ6yfk+x5pUS3GRbsaXzW8zL6YZQL2\njd4I5eafE92HeD/rxOP5FH32x/hRD7Mr3cHuGzPIEiurV2LceaI8NA98IZv+\niDUdDXwX0YLrIw/u/5ELNTRcDhjNzpqKXMqcWbvipHV/yfhImQzP7PuHdomZ\nS3RN\r\n=4hqk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxDanR+QQOiFFSFrgM7yEQnX5zfPef9D69X2834Ur0KAiEA++7peDP0f0lhifuH3oKI/lbHLdfO4UGSiomAC+Y4h9U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605581873574_1605581887419_0.1586190480947609"},"_hasShrinkwrap":false},"1.6.2-next.1605581963923":{"name":"playwright","version":"1.6.2-next.1605581963923","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4324.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4324.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.2-next.1605581963923","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iaDHmBy7yIsXWG5iITSHzNZ2MJoqzcDT3JNk6SQX+czmseOHY/qiYsmJUkectilAB8YEs+nqqAZNBG9N8PJgqQ==","shasum":"5812555549b901c299f751b5c5c99769fb9d838d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.2-next.1605581963923.tgz","fileCount":173,"unpackedSize":18980881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfszybCRA9TVsSAnZWagAAD2sP/iWIXUfRLkhOB/UR9rXj\nagj9X+7FYTQKRsm3P8775+qR9s0nn9XlHIHPTA1tD0/cwDbzaOJoW29ESRTJ\n28URNeR6reSVTYIPzBbkVc+yk/gLKGKBb0IwCP8AL8UYJkh0hgjiN6dEeFQV\nUdNRvRfC9t8PocMMDe2Al8Do41nfj4ip+k0tWhaJH0bWU3HYU3UJgEAVClFP\numkFLNgcxWpcFW6inaciIk+jPSJALaDe0CXYPWfdY4Q1dEwewwQfQjRB1xqe\nhfHnv23OR6f98K9BMKtxyHQgVZ/k3NdFlXHFQ0VnHn2e2PyBJ6XlbqHckr3m\nNtIO0mXDyy6//+qoyvztxSm8h3uVxYg+9Aywn/vzkN3YtyEUYnoGR2Wwz2zJ\nlHsWEh+kWN8IbZ1w8nEktwUTCbfJyP/qofyAg8WlefoCFR83d+Pz2Z3Y4YbY\nYUtliNarNbkA262oJC4MSUZxne3hyFC05rJ6oikGMUbkdfaIWqnOA79HN3ef\nkBIxPRhWsne0J53R/GBBRdk7MfDLXu6riWPi0lUydvNcZYnpg/J0f4NBtpU3\nnW9W+foKWXxjJ015RG0u645vTEIv8AEgSAqohDGDCDMdnkjtii4XiD7KmVk6\nYbvICAjjUVmOSKfgHRfDFX/nRaOREGbudY94+L4FLm7YtloWxe4AonhZAovT\nxanh\r\n=y2fa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGowc+nc6aNyspbRa1P0pHWdyEavfbAPW/8l4isN5mciAiBFPsCY/ti0LOWABcyTBcduWZiFizwZ3fdk3zhW5g9wrQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.2-next.1605581963923_1605581978593_0.2860515725546806"},"_hasShrinkwrap":false},"1.7.0-next.1605629483910":{"name":"playwright","version":"1.7.0-next.1605629483910","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4324.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4324.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605629483910","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3JkrwCrebuA7n/0utE9AADnbbahe5b/KnD5FmVNwgbUgbMniHVaoLj3kMW06K2Tj3U40I9LWrpgv1yYkcTutSQ==","shasum":"2993c7e3982c967a29814b3aebac7d3dd1d1e4b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605629483910.tgz","fileCount":173,"unpackedSize":18993672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfs/Y6CRA9TVsSAnZWagAAiIwP/itA4hfOxdy1GDItouiq\nb9Aqfl5k9iMzKu5/cO9VpdBuM9B0xj4Kz3XXSh/P2X0lh1s1FfLJGHPBAXDb\nP6EEChZBbxcK/Hb1VbNSfFDDaYswTFWyp5kqiHUvCx0UxJYTHbQprqQcwC1g\n9YSVI8s1CB6bomgS9+B6I6HJjuvjjYUH5AZIC6JB87d6JwUmf0o3NolNLVBb\npzs93wKeZmynE8smu88mJX966dyUuOgqxsz/p8KggkBoKPOxy5D09U0dJFRr\nacA11cdjgkIqenfPngKtI/kCrguz3DrbgZudu3H2/uzNIb2ndItaqgSPxj+t\n8geH8i8HuoNIsdHUQuxyb2XRftNmAi6vaKEu7IjSfWUIXP8tIJPvkstLivwi\nSS/0LB6b4ixW2bwXIUb++6M2wVZuTPu0djJCdYL9p4KXLvZfY0Y43BTYJzXC\nmBoY5q+ywwhdYvZpvbSGPkoMHiq9qBFk68BDY6wPBfej0PhQTFfiSrg/UJEt\nIebfndJTE0ila7Zo11q3NY91ZryBhEPkQ47Mm/dM+F+6Cl1vInrigV0Fm5Km\n7gYeF2CWAAVzd0dSenWIkO0klofXu8eiH5o3D2VpPDOJMUFqlwIKl4QWXJWD\nN+aO/0jVPDCHedddKmStj83cmzW/CZ4jBd4nE9PmXFL50ng++6hm9JGPhmOm\nNKMO\r\n=3bQ5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYr15yISyOkvZNI1492iKQ+Q9AL/y9GaWnVhhjB7DusAiEA96VBgq+a7bBdxLagvNU+J9JmjEML/27EEU0/dDzZOkg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605629483910_1605629497673_0.800026189346271"},"_hasShrinkwrap":false},"1.7.0-next.1605636075056":{"name":"playwright","version":"1.7.0-next.1605636075056","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4324.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4324.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605636075056","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-9nLkYXrIvB2zXnU0+R7W7T6g3mQYD1+vhZrmY/P7NiPdRQh0ibopiEhonoGQJzEkQdB6gLmMVbdudKp6CIiRrw==","shasum":"d903df4cb4a7da74542ab7640735922c6c55b252","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605636075056.tgz","fileCount":173,"unpackedSize":18993658,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftA/4CRA9TVsSAnZWagAAzrwP/RShZ9wa9HEaYmVxC8wg\nMaOjSVPLjp29cwChonlagzLgIDazLp/PRnvEEgdPF0CINM00vqW9VM2XjjVa\nbq3gmbqCqcKlBn/wiVDFUekEw2xCHoV7aeMxsSLj6p0iOoc48Y+RHCYvJ0HP\ns2G2IbA1i6gRvEVzoUYtrGFfM6SW3UYJyZF97c3n1bPsOQSdgJdptIpyGCu8\nAKrP0ovj7InCJm32H1HbYwEC6YBsZm0XrjePk199JdSVJjOQeRbbbzi3uGIT\nn7AKTjnRnxNrjF02UjEuus9lraRk7Yt5kx4oNEY8SBHPiNGcOefWcgdaifQB\n/UuKRkliNcaMKExJvFUb18QHWhOoxNlhBlr/qjry52og/GoUqIMewyeg/cUe\nXWreiWfSkug+q0cp+xvZxMKkd9qtg8YdcAteKKw9I+LEr1eI5RXyvrPoY+Ff\nyaemEZLyBPl1suejt8QUO758kazdhPTXn6XgOKJw11cz2nY+YDOFQb3FI3hm\nfxMqLVCey5VWNhizsTUAunTC8pikqhCKXw3l3cEYEXrhY+l80nxvJRj6P2Oo\n1ltQFUNc+dyozCSy5iacjx/SuE9nA4vWY5mSfA1wt6Ck86tHXrDIi8oiW/D3\ndW1fPUuhAvwBeeZkrr7QTgjrfYNYyVlj4KHOQcH0yu3ctYbrPtvg5x4gtd39\nSuqd\r\n=yCu6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOMHc1m1sAQ4dSQNt8CeleST4QcCpiNAugRe4N2N8sEQIgTa6zrScAFAce03LeLtj+ikwg61pTSNBX3hWEXVtidvY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605636075056_1605636087275_0.7260413154647798"},"_hasShrinkwrap":false},"1.7.0-next.1605637580878":{"name":"playwright","version":"1.7.0-next.1605637580878","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4324.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4324.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605637580878","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oww8089qaBh3cv8yts7R0FCLm1+PZgU3GoKgX5Xyx9lgiOxLjo/4/oIY+mcBfTwEuIvEeFOeyrzVl1EhhbF8Ug==","shasum":"6f8b30494431e5910f2d38f279f750976ebd17b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605637580878.tgz","fileCount":173,"unpackedSize":18994252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftBXdCRA9TVsSAnZWagAAD8YP/AqvNvzjVGS2Ka3GrQUS\npB1RwPC3bsL5I3nNfUuU8PDD709bhEInbMKpSUk32GjHNNN9CHCAigYc302M\nc9IQf0p2OzHAvEl3Y+x90jrbClOFVIQRjey5CdVAjiXvBKX79DpmAer6uRzM\nRAag6Im2hbkIPTLFgOxAtfZbBRuwVgmnCXGYmqNYi7ZFWqM63HO+CJSlAeME\nOhrmIjd3WNNPwU0fOBkWfS+jbx1VbIbZL3slU1zHI0fahyEPn85XVKzs7gFx\n0FXHKNcwdQQ/1foF4g+3JVTH3i2YO8nsYbGT3cvQa3J2ZG1Ek8UV74qHCLXh\nzx3kLoapoIpNby1UswLq+sfbISbpJeWzYhA8m8Vrjw8ao4gElvw7i6oZ05b1\nh8GILDajn61H4YdOfQ1dZ1DvnKbFH7Ld57CpHW4gnD8bAl5CsWAl7j9L5edo\ntGstLIMIuyL4sGEldvDSh09ryUXe9lO7d9MbT1fk9yPIsiiY7liXgAqNJ8ad\nYML7DM80qfHEaSI1DZczljQv/B7bN/82YbXJJpRAjFjk443dnTtP6cicFvSM\ncq25DXXo0nKx4RrkiOw7mGJrXVfyCvR2KrXCjJjTwaVMiU3690gbap/Z9AS1\nwTnvalJxi1rrFhaCxXrq0l2DxiopwHEpSSMKyp3vEZbpdk8v+ZljZ+M6eexU\n/RYM\r\n=mb2R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKdjkwcZzt0Q6KxPDKTEtIynG0lNGspsmBsFAXoDOZ3AIhAMvDNBQM/+yx3Epg7RkGi7u6eLaH5q5frhRYE4o38j/F"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605637580878_1605637596280_0.3381918496532117"},"_hasShrinkwrap":false},"1.6.2":{"name":"playwright","version":"1.6.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.2","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KiMmQuANG4O/ozpwxP8EwBBap0/liS3+wwkGo6nBJ4O4951y4ZsRPR1dqwsMOUD9wjsWf3ER+bAmQH5XmEO4Ig==","shasum":"8631aec4d16b081d8ac414637b006099814a69d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.2.tgz","fileCount":173,"unpackedSize":18980862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftDrdCRA9TVsSAnZWagAAjn8P/iaP/G6yaqz3WA24esuq\nAVOe560h4nDHC8PHEZtTZv4vUsJgcrJ0SYWbfbsnUryOw+ZJOmhYsmDKRNMW\nP4yoodAoj1Ka+oVwx2wOBUEmw3GgNay6yRE4LbZT/ubHXNk9OA9AiptT8ZYP\ny8mn/VUrnzbO2tND8jxzEgTJLnr37+w3ToAQq7/6snIRsYTpCyIOWeCnk/Os\nuY/bSZyFXzzlxwz9BdHXNla5QhWokkAKUatK5/6tIYG0bI4gmcSjeWvLNilW\nDnvLX/AGkYo+hejhjVZTU47a8Q1FA310UxgWe2xFlu7vUqg+XFB/EQi2VEAX\nYyEAUAkc2Wfy76bHKkfjBu4/qsL3uqEXDvoRpMzYYfppq9rGhUatmNbj6vHo\n1+SLduuCVNr2diMOKtbue8+oBrjWcfhgqceqrDDa2DMH7exqiddnAfoEIMHv\nN3Hfv0ywTEjLESFNk7OE4x1estyDb0M9E2+b0ZNk8rqOmdJTfcmodA8OQ8CB\nKIk26mKlJ8JssZkzR2u6lNyBiUKV7wyyA9pg8Wa4o+7XYahuDPtDxIw6VJzj\n0SvIdsLrYZ6D4yJh+IG2rWmnc4OGUPXN0TJJZkMfkW1hIbnIkzfPH6clNbdz\nQ17PBOQmxhfAf4WeTNO8E/0Xznm6JKzxJH60sYv8XuYznpE/PS7lOi//Fe66\n8J1L\r\n=ypyq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcrQzY6oWHijKeU/HZRthghJ5jqrvBiU6JZ4me9JmCcgIgZSlkhQBOSw7d0JzRhJRyWCaYOIuCtCOyk5dlXPv8z4k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.2_1605647068808_0.6574453029576917"},"_hasShrinkwrap":false},"1.7.0-next.1605658305138":{"name":"playwright","version":"1.7.0-next.1605658305138","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605658305138","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+0zISZgehK6m2gHbqzeyGQlG+mzwJCy/QLDh3oF5qirwumWighe7nFbNPbiYadrAYWCgY+N9Rhuf/jtSlBKN6g==","shasum":"9dd1298df199224599f2ccc7e4149f34604b1082","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605658305138.tgz","fileCount":173,"unpackedSize":18994252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftGbPCRA9TVsSAnZWagAAArAP/0tyBt0tfNrxfQbmL+kq\nc4D5giqRh2ig1oLXg1OAf1wq8rChwGIZIixduwB2u5Aukz0rAZXjR9hqSK3I\nyOF6BpSeny/BGmrjtHu34/fTkRG5nqQ14hgzEugva92awlgjyyujaST2kZr1\nE75HLMgN1BCSKs6j3vigvgneTbr63QWpLQpHbWTrfyKRExcn8Jfbq0GNRTSL\nQaLAitnrq8gKH0t/kdhMt26zr87hdRYqVILIVte2Fq6CtjjR/4F2Dkpm+ezH\nRvdBzf0eyguqpmm3yVp6ogU+y+itMUuHNuhnL8IRiVr8LQr8LK6d1RjH1fR0\nUqW6UctHnCZL4StznVm6XH2ThPlgTz6ifMkuq1AW0k3VTKG3txEbmSZJobG2\nQ73ItB4hqV8ACHwggffSzJgi6G1EONJrtTmSIDwHW3SUrTwrOfMRd8o++H2i\nFoTZCW15awsOiRwhcefDFR01qj6dM96nMjAIv9mMYfx8l51jTIEBncN3gTRn\nqYnd/cdWkXu5JSniD5dbDcFFL6AjC/qNJvBImZ4PbXPbQ66xeGcnQ5Y9eqoc\n9HuZ8Sb8aV4izJN15+Vn/VVSHVxTO2V2RhUzC1uQ/EUSXBYkws+PatXbt7t8\nG3iucxVrZ6niLoAQaCsgj3Q85IfRFV6UTf+fBYbVNyJYSX6UgciW7wK1XZVd\nXq09\r\n=T8HJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq05YyCf7kX+QXcPjVi1SHbbO9GzQR+nzz22rl8xENMwIgWrWx4DksUh7WcBOPsDnApOEAAz7bg4MtQ0EU52i5zH8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605658305138_1605658318405_0.9993952747217736"},"_hasShrinkwrap":false},"1.7.0-next.1605661079361":{"name":"playwright","version":"1.7.0-next.1605661079361","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605661079361","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-BA0CaLITKIKQG4KbXy0f17d707iy+BaGml2smJ7kFibTdtWdeswr4zL1rxEuLIQZZgdHDiRH9S7xX/QSG/j3IA==","shasum":"c00bab239f0ba9a1399730d81bccc3cf5602ef05","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605661079361.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftHGmCRA9TVsSAnZWagAAccEP/3lBpx4nixlMSScFRD4f\nZoYALN6I5H8TboEaw5/bvvLhO1vjxq+jpuRMW54GmmPYgwPTvm7oJttponjc\nafurUlzd8MS+ffBOM+i/j7r+0r6xz/zKBwm6D/k4EOSaX1Zo0mdNMHBJA/qD\nkvtB3Kc0rlCI0zDTX/zv0BDkWrIyiKgkAIdle8uq60unyKySezhiWa7OyKN2\ntx97i/G11kQcTMtJYW4vPNB81g9s05lcxz8qFcsjS2RHeASy24fbYBn4UY/T\nbJTEQ6/Q02CwqwlnFukepO2KK3ZZJi3arT4uXKNktjvMOf247T5iX6c0lMFM\nJ+w+F8kv8Z5n/1i/9mBMsmNSM7uMjoyDcmKMnuZLAkHpqc/StdfLj84g5Pon\naR6LFZBLg50qHdNMGfi1CZjEnwMx+OzADHSrxJ5R8cN2e9Hzbe1c5Kng6kPq\nJ1TRkd5bLdre4UqdX/6fCPbddSRc3ztokVI5UMu4w7R4XaFcdzhn+9y5kJWw\nNikOe50g7SWxttl+fJCTmm6oAWSe1e21iyCZ6/azcDxTQQiIPpAsdvXoGFO8\nGfxncbuo4zwsa8VL517920qsUmalftUy8pbp8VaYKJSqkQKMglVSg7abSZD1\nOfHankNDNk/heFtoEEKDWsfRB8jDhHnGNdR/UlsDXhRHoJRWCeJ//i7OVHDM\n2tVq\r\n=U13i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8GriIqC62kEbw9wBVFH8hR4YWqvmaNKS+MqqdZjEsfAiAkRC1WoKNWFa7AGLTubtYySv3LlBVi/7CGUKliOj7sgw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605661079361_1605661093350_0.36156596659538187"},"_hasShrinkwrap":false},"1.7.0-next.1605670954215":{"name":"playwright","version":"1.7.0-next.1605670954215","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605670954215","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-voM8Yh4DL6/fCC3NKR5fn39xdcuTyP4M25UC+fO6/5YxPN1iBCAf/dLBNC/pR/m9DNmBXEtYM4gv5LECvLcTLg==","shasum":"825daa39a5dcbd043b58c74c89e19d070df1a427","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605670954215.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftJg3CRA9TVsSAnZWagAAvPEQAIA5hqfhIUtZQcLYufoZ\ngENiXq24Xu2iVyU98YI2jk1p/unusrbpyj2cGb0bzcJ9yGJXTtMR+dmQUiFl\nOQUBIdk0X7JT+1DKH2xlMPFypZhZRdkPfkln4dbp0B2OtYZNAFsHNkhSqRkz\nGspDO5pQVsjabHERE/GiL2ZKvoYGy52uoAxnIjBIsUQm/wVwtfyxU35O1QP5\n/u7zDsZAzqWJoDQ1Tb9EVsDwQtdrUdGbJ2aG62eztBSPP78P5Mmi3X6n95/+\nOCD46SiMgQUw27woUPUguqjZW1PRuksAUigqKMuXj9SHGXpluV4r2dZqajUN\necdH/XwmUyl240dyyqPayL5n/MDax32cG/jel5UpmrgJWQUWwfdyLR/GDQQu\nHJezc4J+QzRdUZzxd+OHl3ZT+Ao8//U48wQg7BL9PxePKsuFoGxfT+JI7fUP\njvULGB/JigndPYNvW2ehj0dtwSsi0M2TK2IYMUuNKYAJTShs4NMhZl1HLBBm\nZ97e102Ev0xfV1iyftJESLApnGIVBu/MRobiwLBbT3XI04ENZMsRZDsnqUeU\n358QX3Dxzd7Mqx+rJ5zUOZtvoHY4G9+6QOen9LAUJI8vZmivkXdZ8gbvD7ai\n2FNuZBFtxRLSQsugET3DQEFfpFm3wRHkwygJcGutttockFifK4kmix1QBG2x\ni8IG\r\n=tMbg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFl9hWHfU35Zqa9gSnh1C+UHb3S0MgQlaDsiQgxRABUAiB4EArv5Jl0znHfRPHFxeVDodM+jREdxA3D/whZH1Pz/Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605670954215_1605670966971_0.07993277527404485"},"_hasShrinkwrap":false},"1.7.0-next.1605672207334":{"name":"playwright","version":"1.7.0-next.1605672207334","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605672207334","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-l+3+9aPf1btErMHa35kyzJb+5NsQpxlJm/2O8RD1qLchIIxlV2GDzKKkUrI2z6LKF6qAxtKEqOMmweNS4MF8Tw==","shasum":"27d1e9baa3da8cbee2ec7a5055d52ca0e2a11194","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605672207334.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftJ0dCRA9TVsSAnZWagAAMWMP/i6NzrY1c70gFtwu0JRg\nEn5cmXaKPGIk3xrN3jM0yBvt97x5SbTuAqZSkO80HUQa6ZjFEq2zjFS88anY\nWNOHL//5wQACAxprlnS8MLbacWgs9AMxfk9mvQr5WDFPtMB1s9hm0TfCMQIl\nQErkMxLkhkPWLWG7SckfbVzaxM5zRN87/rmKXLBZxdH0peBqRcvqHQv8Qvap\n6xE/Gu0Y/IURb0sEH++sP8oN5nokquBEWWz0ifgi5672KYBRnI6YPx3/QA2g\nXt45xm5u8EhtrkXnvz0hLZ8WW7GpeH6oZjXjsdttH0sEeKmxS5KVymSf9ZLv\nKLz5gmWKv6TeFHhQZ2fGI0VJJsvHcY2t+PN6Cl2Mfg+3FnK83MQYmeU3I1O6\ngUoQwCmW3SNjR5/29lYaSa1PZPvur5Od8YkkAoLjE6vMuiPPqO22kLFpjC2v\nU4L3SQP0wKj+sTcw8nRYGM71oDOwkezOgag44E+xybo0Uv5TbaNkFgrLbNPA\n4hgkmCfzpXEf+N6QyACbMpRdd3XtKaKQFI5lAofC7vEC8XIFfqoW7DAnhR5w\nS9t/SGua5n4pSwO8qzdQYh882QTq0thNbRQ2a4pjDLmxLg9g5MHMo1p0HmxV\n/XzPf6kbysp0J5IQz7DWj3oheBbaT0qm6UEWUswFvpnAMtizuFHtIHd71ipg\n5RDE\r\n=1JzR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHKOa4R6+QxKkNUq+F9be9DPNer8cPRdFEmTz3UQGxhQAiAjLlNppVS9PY+hXZuLCRLyF5MR1C/nbmk/XKKc0teYaw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605672207334_1605672220696_0.42760220289696815"},"_hasShrinkwrap":false},"1.7.0-next.1605674895141":{"name":"playwright","version":"1.7.0-next.1605674895141","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605674895141","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-tZZ0/PqTgrs++2UhT1FN6qq2zF/TLgtda/Kl7P+vx6p5Vhlqt5hjSbQ1NoRANttuYUcB5mslASOoVqDYpy1L1Q==","shasum":"31c50661bd601608fa353ddde1b5e25752dc0dde","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605674895141.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftKefCRA9TVsSAnZWagAAL0gP/RIP9u+10ClgZ4VO/CJx\nAXGPuaUWzPOA2PwWFkoOXbTKnC6MKIZNQx1wXyheuL29JDsct9XI1lE01g40\nOox1mCVbNkHpfVYmDmGyuNCqlkbzfW9Xvzn0L+I8VieCCQXuvxgw/PYDVEvg\nFTYmAHEwoz9vRl3ASlqrRSIywXuV+6xTYlAtijU3rgClVjlVxHVwBvS8zSSo\n+z4wTakUB3lwrHRUkoBFSm0H8uWnZ5xVY9TjLfNItPYl3UZstn2ScRS7ru8m\njnbq6pIT9ZNbjicSB3qj5+44T0TLTCbbVgtsjz1+2IhnlTZT9Zr8YOpd4tOs\n5waRfnQrruEh1ezgCJEh3YIm5+liTpMMTnRAMwmkwYXWp9+6M3RzhPEL4K9B\nCvEikZl89ggLVQMfTRH/dOFnL7G68NEWhtPQ107ilm9lKd70+qLu960JHQJr\nC1j0eJwGjFnOffqzLwM2GmR577bNKqTQpYkjJF53u64Ua5mH0O1HDXKCiPAa\n6nEpoGB9F1yWV6W0xoLdVN0oZcmAIiaXYa3w1O0VAfaUtGVnfFcClGaJuHWB\n4RmBn/RPZxqND6DXnd4smO4R2rD1JvZO6iwECls1/KJ1X9duFki7tjS6z/mG\ngrRLIzHVa7L1QRXyul6GNmVgaq0mHSAdnipTbxZXekK6FdRwpOUe2o2SZQ/r\nyAMt\r\n=NJmN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFkKUaBn0WFuZ2l6DGZYyejZLwRvVWchuqUTTp+TjmG8AiEAz/QD3Cktml01ucs2kaPAUIw93dXNxfHoPh9q+xzVLW8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605674895141_1605674910572_0.8581403843644937"},"_hasShrinkwrap":false},"1.7.0-next.1605675968379":{"name":"playwright","version":"1.7.0-next.1605675968379","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605675968379","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rPry1yV0aHbVcd7F+8XO5s3yZdwhz9ALJnF1/ntRlSlNBGYReR5fB/WXmILSHYKkDRsnUKkF8SGAgYzUOMfxtw==","shasum":"aaba1ec8030397ac3d4837ebfe868c8fe0cf6cb1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605675968379.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftKvPCRA9TVsSAnZWagAAsloP/i1CNPF6Ahw2S83IgkrD\n/AzUBdJu4okbHOnTFkQw1DuDF0/Er57Z30DDRkjzc5jlTy9hl6BOI8dyqvs9\nspYmdSYoxPOwumsZqNqK5/r+6CK3RBsl34ueBr/Uq/eTtjMQD3usqm7j/VHL\nJRkHk37Gx6hEtbg8yCN2KTLu6Kg56dQttefykT1IkoIWQ293ufQt+XKlwXqr\nvD2wCo18ORR453kMig8t2ep/xFWQ95gfeY1pICMCaZIROI+ndixpRlXQNuGV\ndNP85SyCeKeMPheEqmTbwjgAICXyXLHHX8KAA41f7YBifXb/+plAlwJspoIe\nAq4a9/GIc9HjiQXx9qT2Ekv7e3mEdHMUEsrEZePeYg6RnsgqJjXcQ40EQiQb\naVqTaH9e+RvUrN8niPHXYKz8pbTAN6jYVblFmvwOaANd8as2nrV4L11Am39K\niGxrMCc97G4P7Z+l89UAdNYxDWmTrTv9EI1UCSFkEtO+LroHZFmLiGIaArvw\nm0wHST+uDRj7BwGxe5FGJS8sY7as9mrCjbInaj8Cx3MlsLUCQiZGVKWJTBdg\n020M1kInYgtJTLey3QTNlcxz4fSSLMo5TsqVaeEX7dfw9FacBMhiGDxwL6UM\niB4Fo7IIh5XQ7lwXSEytzqpUHHorJoJ8zOcIuP57oef/CfEeYRtTvNMFDLaG\nTxUe\r\n=kWYS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBp6AJxSI5AxaoDA6umb9mXEUxVEZrng0946YmNWeD8QIhAMYUdcQ+toUySq4A+U3RHXi1GDYzMmmqJMwPMWQuaBwz"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605675968379_1605675982727_0.5277231160401361"},"_hasShrinkwrap":false},"1.7.0-next.1605716504082":{"name":"playwright","version":"1.7.0-next.1605716504082","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605716504082","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-2xHUvysJgxJdTtjr6ECsVAu61YYssOdMftkqD/d1AP3S4htDYvXdr7nXaPNEbDhS2wC67NM69kKuGwIHFbY1gg==","shasum":"90279e017e89dd7fcab9657e337b36d00eaa0a7d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605716504082.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftUooCRA9TVsSAnZWagAAsbYP/ilcZkMkmSG6W1BfuP7Q\nz32v9NwNCnywA9i5X5HlNIW6ExKD4xrHAVGXeWTMY6eJxbQ5plXZVj/hPFkj\nXSw56GfGGQi8P/+s9jNHPf7RI+QF88jsV+PxIY1ik1Pjm4ZZe75HLXgfvjZy\n6FF9m0aiWW4v0vFT1HEAnUlproGCJ/GIotezM3HQl+pvuUJV3+Btf51ZS+i0\n9hEsTYlEfXuML1GXJzzhhDbSH7ex+jRiu43fIlyM3CwRLssEVOu9/7fWIJUC\nf6nzpmAPqvVxiR8uOlSgF0jl43Cqbl3vbcipOxJ5pHfXqus6VbN07eL3fB6R\nJI4aCAY6mOIe4oJuDFSO5g3mf9Q9+5CHMHKWUZTaXBOZeQ10c5AgROKJO+Cu\nQdWVq5UADFf3EuvUizNQTDOjVjuZ7KlwelrWzKYgfEaIThDCLoB914wYRkTj\nRAb4xaqYg+ZLtZOsxwgVlZ0RmzeztEyXOjxequreOfMNyWp6EJY2j4RQWzLa\nylkTf26l9p/q1/i5IFT8IKRTy97VS+klFEB81jkjcOPkkzXIMmm321sDKQvj\navTESKCqxlbLphGXkhpnITUsUNJ0JdttHnZsUHhfHcL88jL2TZUW+biJ2J3U\nWhKocTzL8lz29g8PTtwNB9WLGeY9LsrRz5N+xc9xeznRzJGeVMr0u6zgnzMf\nxFWQ\r\n=RHTM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDopdLHeaPpBdjUP6apKfZR0h6YuVZDw1T3imnTwW6afwIhAJrCFF/pMDsnD2eGe77su3JGFwXK0Tm3rsv5MRR+PxcR"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605716504082_1605716519088_0.7686870975861373"},"_hasShrinkwrap":false},"1.7.0-next.1605717385119":{"name":"playwright","version":"1.7.0-next.1605717385119","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605717385119","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-tj6/mYq1wiHTYmPudw6f5ntimp+6agPJYwtGJEAYOFZ5oVFQvvnxPnebP8MGViFFEGDDIhdrBnkbk+kjgf1BIg==","shasum":"2ad128f8f9f53805be23edbd3eddf22321644cde","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605717385119.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftU2XCRA9TVsSAnZWagAAqv8P/A7s6G1S5ed7GCznsmCY\nWTV/Eqf0dNi+HGwQS1A75VYJv26P0VtuRyl4C6IJZn3tftJdda5jukC1+kh7\nlF0R7jPa0y/fkwOLqtcAKhHWskHRwilZLkfs7/iuC8YS/TjyjCkKc1I8jYYI\nw88oCZCdvQA141t4mr1vsJa2f22sJococL4vmpnOUhdUHxgfi/BRieJUaJst\nXugxhCFJCQ1WDapRnwfPQlpphU5wR4hPlBfFWBSGC9+d2AXQw/xC4d1jjiLC\njFAM2JwG9wUGFSYnvforp7OpIcOgbuPpRA8AYfnwRbWy3v6dZZ7og3hfb1j/\nTRDq9L0SosRDMaAt0OsG0LPIXKyEWXHiNrmk26+XdZm0TpqbeiVfjkd5JDnP\nRJn8b3b2Ps+lyxQRbaRskMQam74wXFSoKwOQIQ5qvZCotMvBmu3viW3rx5gu\nmbSVpHDxxZQJ501sX/7C9AMR8xdsOSKRXe+5GoaiJCaKXpEIBByAFAtEElX/\nwxFGue6fF25qgOXOpgnUVpR6fUNzepszcf8zIVanIqHmZHKTzLLU/3qnENCa\n5f+hSbQcwig5HIRaIQJ3JL05Conw0fmGR5xlqpFLuYbmXsTuWvnNvPp2hOjO\n89yF8G0rLZMtlKu1+rbS4mIzj0mdWqCwhmCEp4hYvvdwqTKkPyLN95p7ZlzA\nRac2\r\n=j3DL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8qmMm/2A9L3Rwx36YRCoPo4JrdYe7U9WTqbYkcPLUrQIgP8rpllf6f0iitatpi2iUMWPiXbZUB9c3j4pqWeEfx9Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605717385119_1605717399311_0.27864186104832345"},"_hasShrinkwrap":false},"1.7.0-next.1605726276901":{"name":"playwright","version":"1.7.0-next.1605726276901","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605726276901","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-VHVxEUTPS/EZe4Puh1RqVCuenbVxau7YCOCzOzvWhexYyvZAKi51+yKILRi7Z1AiADJyHRk157+BjNd8ZnZ4jQ==","shasum":"0b21b084e4db8e49d88611146e97dda6feafd4a7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605726276901.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftXBSCRA9TVsSAnZWagAA8UoQAJsML4EI9efA7WJ/x5bi\nKTIxAUkLPgm1BwMR+mY+I9kPthFi4iZCgJHUU2EuHy218nlrn9yR50tiE8Sj\nKiJL5ib6IYAyRHdbVjqY6amqhaLaU4AmWf7BUqCAiVC4PRHqvykDwzGNJTTc\nQPYAcTNj/I3twPpimSEmDZK+Idk4ya6oRjw6gra5/OpbLu6SoKINx91wZULI\n83VPdKq8N2o9ZClPZji+Tzra0t3m+zSva5rFYTQI2XSRicQdj1gTIJ1HPUma\nPyDrTBx5WgPwqrX0R+iH6hE1VvtNnUfNuyV83KaTmuW/HRrzkVP6zI0zmaJZ\nyx8XIhA2kvl4tDxsXw7Vocftcmi8P7awBja7GOLRxu+g+1Wiiqfd6Yk8Xt6A\nHA/3MqgI33NxZvfwNu3GwKBq6utqWw33X2fU96tswAuwsp+KYFO4SI4r61C4\na0j2l3POfjuiD6iF96o3+Gh2HkIYyWUlw2BR1ZOvYsNNQ+vT7iiNDe+4lF4F\noPho8gon9CUUQnQpR/buFEciYg/S/NeFosrWczfvObnIDAXKFQHhgr6jiOU+\nKiyNF7fBntPilz73ODVlqNwGSZ3nBb7MskivnnnEz4l7f8bpwe1N/Ib2DRCQ\nYNlGj8MJCg5IODy0UXUMo3t8taTx7vKUTn46iYTB/oK0+6T37HRQNljxDcMX\nDPZH\r\n=UH/5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRzm9NT05lI4M8AUm1klddwFkBSC/gQTpxLMgx3qdC7AiEA+KXhKOBfrGdx5uEU2j2FCOczkTDiaKdRs4/ZeywyDsA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605726276901_1605726289798_0.9546136824024452"},"_hasShrinkwrap":false},"1.7.0-next.1605733552772":{"name":"playwright","version":"1.7.0-next.1605733552772","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605733552772","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-cRoca5s9Zi4zISO1bt+08k5htvKHAL7VP7NQVhhSUKpMBRJYuacutqXplFAu+2rha7uP3VS+vb0Lw2/Uk4pSoA==","shasum":"20b52d8c58853dbf205ede43112ee74abe79fab2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605733552772.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftYzACRA9TVsSAnZWagAAHV4P/0ZiEDQZXge5Zpy6EH4p\nXCqbq/dk2a3I5GtBMDEB01HLbz9lAizvO2gNzyTS+849uQyQpV2dRSmY2rfl\nghU9Zzcf25RTA+YI7q64t1m7Z64TLRmuEA9m0ORU159A40M+JglUf0KsoBFa\n9aLPtUPV1DvUZX89FB/6OxMMUM111lzP58m/UHzpaXK0Sg/qzpYB5qjS3Jf6\nmBdJ5EMRUkdT1HOmcZ3FVQDr902muG4iperPQwRMNwQ5fkEe1/KMpRvV+7Qt\nC1laG+EAZvq32qwLYgZtEiD/TRc8nyI1V7X82Kbd7kf4pZMX0xgV40lHFCk6\nac0DIEviSrxQB6pFXoCF7MMBlxIb1iRBhQRCXpMKduOAAWn5LTFHQRWDyk+E\nP/6nkpi2OTmOBCbto5OuGpJMjksQleN4aAceW8cU4nphFEpbD46jndFXgikt\nY5vfVEbf2fLY5QqJ0PBQrLNbxbTt2MXsLXIFzfDc/xaTwr/a/iJXDW1iB85G\ny4qqtJQV/+ktkBCtU9L9+nnacOresIUrhNaz+Vsoq4nCP0LBawBdT1UxfPhE\ny4nf5olvtKUkrXnH/rrBshC1R3DtBmu4DfAqK9SfbDrWqTteRagFN7VALscP\n0D4SvXPViF33gz9MchXhNKNytmf7Um0sZMlqh4OkyfDHQ0DTRZhSpK+hProU\n+Vj3\r\n=BGIM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHyyRezhLK77B3OqiSIbKF9skKgLmS/DsGncrTRXuoX+AiEAq6ERs2jpStmRo4Yg73kYPdxqFo1qS9Qu0gBOZO8SDDY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605733552772_1605733568025_0.7141410685691734"},"_hasShrinkwrap":false},"1.7.0-next.1605755493362":{"name":"playwright","version":"1.7.0-next.1605755493362","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605755493362","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-x3ujgzd9OFtBKo1nXgKpqR9DQMhOCXqEsa86nZ25U1mz+w/9VQXoF/EC6EzkejT6kxUWhVp6ZDuuinDIlN/x/w==","shasum":"4fd9d6657bca438af9382d072e7f8f96ed9f27f3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605755493362.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfteJ0CRA9TVsSAnZWagAAx18P/jv3fRTxC+rcyUrTjiqy\n1ssnmO0LF56WEuzF6xUNAJ0w+mQzwicbUP3vJHEo/vb/HjP8oI81Xbob/cBw\njMAKrzrbPJFXlKu9B6mbRSU71vtR2BhaS4RV8vGk9uvbq1j/RKC8hOA5cZEN\nAAIj//egdZ1B8P+hdRqUeTUi8K/G6i/E9qsM8Ime7+Grucd38tuLfPm26Yx/\n+DKCND5RE73/uPWqgae4hGzpeWjIaUWlhaR+x52/LE4pZswCyj+i9d1EwHjh\nl0joYLW2eBy4JJd5AfsOijDVFbkyblpgqo2iwaygEHfPxMKrLeabyweeWoe4\nyAAeTAsmCExr62eaf4RlYI/ky/CWSf+i1Ztaa/GFnH6o8fdbiiVZd7+Qmq7T\nSoeVq+stV4YBT/HT3Fm9nLvvO2sNxkc5Dlzox6OcyWqVq7i1OzJB00iqHzWQ\nwHf8ukjgZRfNlenuiM71yvtXIynbMZQzQWpZUlnA/Xg8ccK6T549h7+SY5D3\nQTAuXVHe3QaTlFrOik+KOtVMaOIfRQ3Xb25wnEQVXnNPMOpjEvksozOWOGNj\nrbVX8UOfPutgv+0WBZkPlTM5Y4f3Q27hsvJfYD+LmSWxhSYsHz7b4wUV9A5u\nHJdzVFjzqV5S5hC2y/1luT5KxBUMJFKnK8hdAoACVro5SWQI3WTc+hVkfo54\nH8dc\r\n=6sed\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5LEbTBYOjhP7g0QYEWsS4k06v4jPte6mxSO185741pAIgcEz9SRSKzIj/QL+KHuviQ+FLbcoA3UnAoKLGhDkPhDk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605755493362_1605755507849_0.9499315887985496"},"_hasShrinkwrap":false},"1.7.0-next.1605756970645":{"name":"playwright","version":"1.7.0-next.1605756970645","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605756970645","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7cJZpuPwxcJ23DWEQnlJNcZKYgAIS7L7zNGFU3MZmqRX3+lg3TXfxU+BJMu+LoZvGO0iewC+b8ZHarrF82+QJQ==","shasum":"c6bd6198c6ce701d2d953118e58eb35fdf0eb4fe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605756970645.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfteg3CRA9TVsSAnZWagAAZy0P/21dHN51utnlhIbym/RO\nIBkv3Ym3IFn0oBF5xq/W82jfzVEZa0kbfzDBcJ5JzNklhoPYIzsYg6+4juew\ny2vd6Hd9RNr+nKlmsXFTohk4BWiPIGCYwSNPjokmq5ZfoHeB2zCSbaF5uVEa\nyRYN5owocuE/qGHAcTw7cp+45K6Zg3KVuokNpXrQOboOjUdUhSoCXvPubnB6\nNzxlhAW26ngQ0sNqT98/jsDcGCd0+jZKn3kkiwYDZBwNQCOHALGmbPQIoQH2\nI3puoGKFfSrJj8PR2/5ZiFLcH/hnurY9Cm6MW0Wbdv3o4bbM282TXtN7bkza\niND37lV5I41evKVjw5KykCF2fpznzXVNvZdp5PEvQujuV55BaDuDt0uHbJ9I\nCorWWV67wquVBA5UFO6tRnHSv4WD0Vv8TDubQ3WVaLQR4V+VokN+hlnTnYyF\nR1kZeI2R58dlK7PIHndjA6fPjj/l2urUUJOCjatMCgdaaq7w16uJbYqATBaF\n1j//+7BZOJxm+XO4sFMCm0hxXskZElZpardCnDBEwcRnyirJbPgOtivbrJMg\nPRVp5CjWpuWPx4TP7pPm4zR6+7janaL5yYXznnojLUarv+Ig3s4wlxo9A52S\nMLkJ3vMupb72VE/lJM1jmyIsXLoMHOYDetNfqL9brxsDbjiYG3j/7uoOBUNk\n05hW\r\n=Zx2I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwRv0tgTLlpgZuRdgv6Nj8C04ua05nIMiO6095biIdsgIhAKOXNtzgLB0zmuxLWATbO7zgFup6nnbbOFtZL6aO3m0u"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605756970645_1605756982368_0.5401972853916928"},"_hasShrinkwrap":false},"1.7.0-next.1605803181890":{"name":"playwright","version":"1.7.0-next.1605803181890","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605803181890","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-T/yQbYOJoPOyGREl7KwCs/WycBLAnPYtZhRwn6GVZMikW1bdlUfVYvDaDlDuLOdyuOKYNyxVmToazD30uRQvOQ==","shasum":"3ce4332ed06ba63971b9cd7abba3271c0bf0cc7f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605803181890.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftpy9CRA9TVsSAnZWagAAoU0P/3cagsQ+c1LUQINOXwx3\nAOBq0YucNIAIIoVyKtp64w5UB9Cv0S6VOtUf7kh9nnNDYv6hybdueeCQqtV3\nVHMwCVoJIgNI4pPmeDAFiXUtik3LZX5JSoXAYKoTQwSZRWgyRdSebSvjcgtD\n06NhHnk5FUJMd7HngNxIRBuzJ7TALcZZpFz+qxkhaGzYyHd0lW+bAVveJFPP\nyhvpySUNsDcwJ3rWEEjxFvCaqP9aCrdB204dkNYTfuXqpuDZcl1smfKZYWMq\nOHyFHeOYecQBPOVyhEsAvYzn1mDD+V77GdizRm8TbVSKifwLNQe53nCjiYSd\n37sP/VG/J9BQhMQr1LgJD6MpPbxlGIUAmmjSD83c2K9CY2FuE3Z8Jxl6v3Pd\nXj5xYsjkmo+caTq7IrIFqPQngIeciLJ0A8hMIqnbAikR/oiQGSanK4oiAVqr\nr7J2upAvZLMvo0+SIcoYX2lSHp0T47JYoc4bRRfndaAaS7ZGBxJjQcFKpWF7\n8PnTJnvHiofh5grnMTlolFMhBlw2flJKB0FaKSq9FCghnocf8jU+xrBLpGIa\nt09JnY/+2YrBuXxJGDmufT1Ls3iuMKTKL6UVtihau5mnAPIUK44YONHMu1+3\n6btu7Rvyam/wA16SICSfd2TV1bYwu9C013hk0Us/GDEdGA+ES2mVJTL2SM0i\ndk92\r\n=0sHF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiZJHaq4CT21EdR5yBuF2U1+iiVvPTDBKV8XVGvQXfzAIhAJBjMeLfPvXsn8mwoCW8GSvbKs3H2URSr7GP5t7gPTjK"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605803181890_1605803196657_0.13989741248821885"},"_hasShrinkwrap":false},"1.7.0-next.1605815953912":{"name":"playwright","version":"1.7.0-next.1605815953912","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605815953912","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-//SrzLxiAcQFJ0nToYYW26weMcXj5hyKf5/lcpYxE7NMSmLwGBaThnEUDB8h6Z+FDxkNbdxemE8IUddD1Hjy5w==","shasum":"a51554572a69191c2b59b6c419ab4a549cdd51e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605815953912.tgz","fileCount":173,"unpackedSize":18994401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfts6fCRA9TVsSAnZWagAAJsQP/00tRfQwwkeRSmZxGhY3\nU4bcEF2cLjdMv+SNsi1BOfYps6uejlqTYaYdOMC1wMAkAJZQPEMtQwlL2ax8\ni7Vgv8XA1QmVN96SsE0AvUyR4RyMTTYG24amhQE2BQszRRwdGYSa1uC2d5kG\nTuEq++e7nEDXVWvgk6uU2xaLDG6C9mAuz8jIQ0xyjzuWxBcFjRymRY33mGFu\nHxaulBoFhGzAs474c7A/KtocV6I/WM1uOC9qXNDtbEWPtGRgQfx2J3EMSouL\nP+aalvnkcKeglLHJtpxHb7HzaOkSMvZ63E3feeErNANYyHFB93xEEpMVcKI1\nBIfo0jEO/mhqYZCzFa9kbLrf6OgIWsCJkDu/ITn5BxMImdl3RZ9p1+bL1Tt3\nwtZMd3lo02UcaripYzi3ewL3pBXtySGSBTD1wtQ4P3RdfHl8JSRXu5a+xy7h\nSh/PF/xoh/NgxWX0VGob4ayUlhb/ORzzsesdT4Syd1da1UkP59kRWxxaZDlV\nX456seWM/cgs2eBjH6oTOWQ8TvGCyvoBizMkGR+QhzZIQSWsql74BSOVgW6X\nxRW95RFBiAEFzjexTA/7zsKvWoueBILi2M8EIr/CD7RFL4a3TZJe50bI+Sdm\nXNlQbDGSndCGYiJHWFApU5N4ex7CIf68kCGleJAgh7iokYe62u/yH2ehT/bk\nVU59\r\n=T/ou\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDE6De0FsJ72gqjbSD1MwYlDTzQiu7H6JHBlZbAFLOd/wIhAJnTz6BrTGVSu/7VwsHXoooD+ixFLBT2EZuPBaXd9PiL"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605815953912_1605815966476_0.5305486906990682"},"_hasShrinkwrap":false},"1.7.0-next.1605816755076":{"name":"playwright","version":"1.7.0-next.1605816755076","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605816755076","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-53noLMwFThkXFPFpxzoMioEISAuaKuB5ROFliNNn0AxUbPn3b0DviQtmgM0YJd6EKBZSxSdDjvGb+JvBP9u6FQ==","shasum":"43bc709635b43f83130adfbd7efba57215719ad2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605816755076.tgz","fileCount":173,"unpackedSize":18994437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfttHBCRA9TVsSAnZWagAAZTgQAKGQcfjdfoutCU57a3NW\n27kWy+cc8C7WeE41ncWFB13TDqinVM4VT3EbV7TlR7RsBSlaWAXRHdXgsE7M\nLYkylZCyoAyLxS5z8Nx9VxwR9upYboJUbOwxkx33GeWdI6mklrgD/u+ZkFg5\ntmJFTV1LvnNDKti8s4RxscFIVLh2lK6ON6XzQj3ljKU5BGDmbq1fvmQ5qgNx\nqumaZYpM64ayvHVuPUYyJVFxIfX/Xe4RGIBwWYmxoGAISwyuWOvnLnnBjFo7\nZEmtWY2jHXxMHFdVB2InACYdEFAxctrqFBm6RAK9/kDf/sAWJjrVbKa0TIX9\nedPmv06nMCbnz92gUtC174X4bvo4ORt0gUYn38QbsmiDHeRnMBkjlbfHRDa5\numEzsNF2ThHkpYoOBJ1FkmRpD9PrXrlmKCIKk9mgGKpjs1JIQocuv3pWOIpL\nKkLqxrpkcR5l6fAtGi6XGnt+s/MbUbclEjvqQc1FSjWcifKf0wfhUrdlk6wO\nMJ54RuphZlsZmpOUbIIlmaBAPwVpDVwuSbSy4NVBRlzj9ZH9IzI0KFqxTECs\njf+zIL8kA4X1Xcl5xlI2C0+qfn6k04n+Sxxftl+CKuOnZWlyP3EBTld5vq6I\n/o6cdcbupgY3XsAXlaJyzVM2RKZCoIJQN59jix/TKnbpW7r78HHqxsGKyal8\nJFUu\r\n=GFFG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICf+gtn8cLJmdx+s1CaEMS/An3bgkNf/6GM8E/X9XT8pAiEAiBzwfJXK169qAYENwyOEHdPreJtdjyQBuQQ5iRzBgwg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605816755076_1605816768267_0.20698307324301246"},"_hasShrinkwrap":false},"1.7.0-next.1605818753333":{"name":"playwright","version":"1.7.0-next.1605818753333","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605818753333","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-GcOPosqSpxmkJTSTFyVxHI5ZXKv2y6VAqe3MX9ZKa7vunVf9v+0BLNaHHKwztCFewUNOO65c4LNtevLcR/Az7Q==","shasum":"6ec7f6d3baead41feedddcc23cb432e274596582","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605818753333.tgz","fileCount":173,"unpackedSize":18994437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfttmPCRA9TVsSAnZWagAA7/IP/REju2DywUHaR0JzvSor\niVZHREJxiKQx9KvgrTR1yZ71owLOxO2Dwbxxcd6lFoSV48aFWAy29NR71Qcb\nqSqaMykkMd+3ew7UuDuie+DNjMcWeuguBx0OgLv0n7Ea0nDfXhYozvD22BB1\n+85S3lF8BdmxB4olJ+CGR8N0N6q3hPMhUm3y6Weqj26OumJhOHmx+ufUwh6x\nhJcTPBXbn434YgzQ501zLPBSQllaacIaRebG+obF40drfGyoTWkITxptM1hU\nn2tsU/Nqt831eQSoZkq04ArnePyCGEMu+NhyZugVvchQUN1wHI3u4SFXw9GO\np5fbfb8eMZiy/a1lVCxZ3U3Pfrp/oJVUh9FPubWvIYZGiN+h92F+E3M6naXx\nDaFscUXuXn5+ci/ShOkq84pCrBBdm+upy2J6kARUnwYHIOyMDItThGAtWC7i\nWT6LRixazNbfgz3Z+jqfJm5QY+yQ8cOg2EZEF04d2VMxzI/xMNdc1d9X1R7r\nvDr06wViLlqA/2Nkdo5VLVhCoNX/Ieruz5X7vUSiqqyA5m+sZAdf0RaVUk4p\nl7abAttPj/OJFPyd+vPKgrs9HHaAlKkPmSmMbaZzDvW6sLh2tVxzWaAI33vR\n3B2Cd0nI4+ZXL3P91jCtZfIeAmBAMdHxFn6glRpV1wTpfGjac1TT1an1uuD2\nIidX\r\n=uD+A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9Le/Wjds8zR4X8SQHHqF2VxdmKGexhWIBdSU0BHIfigIhAIhSsNHbCzT/eXUe9lbzmpSK3mqHIDe5e6GNReurbi67"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605818753333_1605818766233_0.6433165730571087"},"_hasShrinkwrap":false},"1.7.0-next.1605822364912":{"name":"playwright","version":"1.7.0-next.1605822364912","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605822364912","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-TySXAHTsUkSfjV6MGN/OkjMb596qVBfBn2go8hy/pMEZe/J2qwivm5fRjMLZCYK7+8aQmVX5/OxTSo7xGW74EA==","shasum":"93b12b5ff6aadaa9b757804abcf0f8d786ae4fa0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605822364912.tgz","fileCount":173,"unpackedSize":18994437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftuesCRA9TVsSAnZWagAApoUP/33g2QPl0RmQtR3V3Jno\nrW2XJ6EojIIXi4qIZTEGlmmXIgCbfNOuRzJR2XAx1hcSmLaq5GodunO1zKfT\nnxKnun+tOJ4PAIFcyZXip+kCLJItjc/UC1jJJhhK/EFjt7kRMp80Cib37Gtv\nuqxKuye74l73AggtwHZa+Ga4d11/iJ2ixO67qR80ItzYdI/deZD3XP3LfUFS\n4Zv5jlFYkC4Pa7p8jJkbfiOOiIMZ9hYFZ8H9NgG009LnuuIlLC1/ypF36Wi3\nxonVPbLdMZQHEiNiEBZhZzVmaI0HzbC4TYcbNFCU3TIE9bWNmUxHunSfB0oA\nsW5t+r/auet/lluu0Fq5OQSBnZYHLrjox3rWWHsqj2dEyR9H1g1Leg72+93z\n/ayjCMeid6LjZct+VC6lQz69tcgT+CZBpWH4fbvPjQLOG8726hJnTOkZPTtT\nmiC+BmNTO7wQUfO980U0Jkfotk13an3Lu7i4bSWkZ43LR5Qw3/e6LwEYmmzd\n8xar6QEP9Gc0IxcAinQdgNHKa7HnA8rgy7lclohBtlGksmnbVTMjtzx0sON2\nLtUiEFpVhjOCVyYhxROTX+kwoB6ICAQNFLJnMvTVtHcxFCrCTHQb7E9Inlf0\nQsN7cSsWgzqw01dtd3WFfMnztHiwNEEI4OcQ/azY4vuuL9ZZKo/KHEDMkztZ\ns2Sn\r\n=LYau\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIButDXf8JLMw6tpMaMrIw81ugoqb3slGXQCwUeGTFWqvAiB+bijhMODcfNWg+cR3pmYtIR/8zhEiFVmjTDVvKe2Uow=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605822364912_1605822378586_0.971854065994129"},"_hasShrinkwrap":false},"1.7.0-next.1605823051704":{"name":"playwright","version":"1.7.0-next.1605823051704","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605823051704","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-cs+9Caqa2K0QfLtyphY14M5TT2TojjhavUTaxnTI2oPo8AyhMM5bUxXjp/ouNAXPUOJ5Tgt2KuLYZILWCKbv0Q==","shasum":"ba7ca4b0903c0d236b1241dc3eafeca609d5d8e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605823051704.tgz","fileCount":173,"unpackedSize":18995747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftupaCRA9TVsSAnZWagAAFeMQAJwoZBRpyMmD9/v0FjiD\n23f9/cjnI/1CAuGSERVJoDeaLMdqfDqRQEK+VKq/EhyQvoLnFrDP8UYMJp0O\n+ZBVXEQ+VOIknTPoHHayjhdzwh+btDQEuzqoWLfdlyW/MLqENAnU0mJYaA7V\nMqO0fq1lhP0qInR/7jhYIPAEIP7MzvBTNc1exLca5kBeSWt7La3//DG1Qhju\nPDOLqx+hoSzVHMUbHC93GpMme89vcQisdU+bIXkd+EzkI8BabbGie7cI2Zys\nUJDR3C4y61DeEBGyj8iPb+/OHZyLB/qhBFxwWujE7Wog/nFngZvhXoND10Cs\nXZIfDRgC/g7kSQE5ZKDHcY3qAy5HN/yPAcMEO9nz20jQRR5F/byMXz1JWzLu\nMQ1a4xsA4H9WCdlE3/nRxHhVDmCFJ1IZ2qocZCE8M0a5iKlv0N1BUu48ERsQ\neee+IXBEQGK2uCj6++4o6ilkMFot39lshNYyzyZT7OVlJ8MRNriTYn1Ei9on\nBz4PWOzEEDfKzKANxLSVQEsSbSHxEmLPp4lgHRAG7wIouSnghryoxhF0R6Gt\n2tseBihCSQErBUJJV/OnPjLqRs+3ARpLIcWyef5UwGZczwHU+06wNY8ZwrUB\nMw8F503Sbtj9sZ0O6hFVmKl8LrFdysBpnHPakWIe104ygMz9WXNzKqPB6Wwd\nTb0M\r\n=azyn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCr4NnwyPL71ug9ul5rJ9Y42D1IXcY++5b52uYCAXc6VAIgdHVL0p7bvlbsGPb/hS2qH7SRo9p8buahrpBeuMsj7jQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605823051704_1605823065279_0.5440769440165323"},"_hasShrinkwrap":false},"1.7.0-next.1605842578394":{"name":"playwright","version":"1.7.0-next.1605842578394","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605842578394","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wnd7nPfQvzurrUJSPDjg7c3ePR2lzWvFwSW9EBLEKv6ILU2pnSsLD/jzu7fSO0nDaDJ/eQ7eaAufSvBgSlejGg==","shasum":"a2dae85862c02eeb34f0af1eaaf5df5987512f80","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605842578394.tgz","fileCount":173,"unpackedSize":18996023,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftzaiCRA9TVsSAnZWagAAmhsP/17rZUg9IXr95/otplId\nyjd1Jq1vNsDNjIUd+9FmrAwUMxGEPmjFGtprCZzkMCy5mnZhmSyDIs7zVKZs\n/uQIGWRDcCJBghCYo5P8J0Lx7P8iWtPWuqeuq4D99COQyYpt+q/TEFi6Qtaa\n8K/LWuuqMazMH9/Ea6Robh10bSkDsqpPpW6NcWh/VqezcNcWgD5kzZbKLJBx\nxVf0t1ai7LFRHNRRoleOHpQGSlszs508fJHE5Hk1nqLaNq98GAW/h18xOran\nzTY/Et6Tj76gunhJeG+RGMEbSQqxrQ45Ntw1IIn7iwsVMs6GcpgWY+ohkn0x\n+h37kMQ3xmMqQILjMNQDN6xcyOMVbEnvcJ5jGL4jGbHHUcRKP4ZBUSd55sMm\nU5zJI/5JNJTfbRFJKjUT31oLfIQZ8UUR8MBpV7tjbLzfwdSUqE9RcPo0O+O3\n2gZ3a6Knx2M7X3yjsvSJRIQzTeIcgI8lhTAuUCeIDQSR60n7zKW5j2U2qbS+\n/OAB4vrQPd0BU/eTRf2zNX2K+UcCTVo/cjTlj/ngYFzG91TMJQ8+5X2b80+Y\nXqwfC5soFuYf/3j0yA4E87yzdW5FS7+ygk+w6oM2xcPGBDjaXLmeIXRZjziX\njc+lOAa3M2JWtkCeS6DeBPbBZIvALrdvQEGYHEufTKzC9cTgCGoC25E17Ynu\nelOd\r\n=XnEh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5kn4TBbvmd4riB9VWTQJcM8POBXRJ/C5ZF5QenjKySAiEA1AANZ6D+r3PQMForxr+Hyz/WDLmKq5BZcIbWWWH3NcI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605842578394_1605842592722_0.24384653229788578"},"_hasShrinkwrap":false},"1.7.0-next.1605842915901":{"name":"playwright","version":"1.7.0-next.1605842915901","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4328.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4328.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605842915901","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-IRQMLRCb4GjPvSE4EFYUiAhRGPLJYvnNIPwKZm8Jx0X0i4Vxl/56iM0L1L2YwX+9Wnom2+xFp6amoWWR2y4ErA==","shasum":"849d7f9e743df5fe3811f037ffc4dba49d47bd1a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605842915901.tgz","fileCount":173,"unpackedSize":18994603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftzfxCRA9TVsSAnZWagAAODUP/1x8cc4cjGgAfPShIJGb\naLwpVdfenBvUGxb4PJmDRGaA2Gq8hrDy3qHrEsSCiz754GZqxaYrF0E99zkq\nb+lFkuAKEaWqgUknPxxnuBRmukptxj30mdDal/rC1oPlMX0vFmPK3W2ZGu6n\nPoQ8KOSSmLRv1PpxgppQFbrsPlTx02oACKR9RfCMeiLaJobgZrvZxMCtjQ/o\n12nW5UEjUKN2bla89Q00mihC9j1az0Z35QT3da0gAm1rLxAxMqMnrLeLDeaA\nv07FTYEHRljVGp8iexKAtenbHHq+qhWG/YgN33SlEykpeT4EOlNh1YxU1vxK\n02ysa0CG2RzRWkz079tF+cwWq0sMsmFQAinHKF1hL2YxfXLzRH9uP28WpC5c\nc90LDP8Y1kp0eOJ5V0f3lhNz2TLA6f+U3ms6smRqGKIIICU6DxJuvQuNZ7ko\n5CGCuWxWG2OU7bmucWQvw3IDO/RZtTVOn+cyeyeZahQkdElr0Twf0enTHDe9\nT043kyTWr5aGaMi5m6y1jyu3uhL8thOblLb3Y8ukKRc7ttSRdHkzFT0g13J4\nWQ2ER9c4sv+6ZsAEaPHH/K2Ege2duw6WTKvq0N8iNxIfCVVPGtBkuikrOnKB\nUqja40LtIfTZNhgd9VhAcP+fTPEL6IwT57Tpg0NzGzvJz90HCSlYm72yXZI1\na/KQ\r\n=psyM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDIzQoVN2L9rA+heWZtoJ3+BLJ685xiF7XDD8ezZS4kRAiB1fRgXZXn/mbg7wR86qYgS64+Osqz1PDR/7+JVJW1WRA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605842915901_1605842928223_0.15893924067133613"},"_hasShrinkwrap":false},"1.7.0-next.1605888741738":{"name":"playwright","version":"1.7.0-next.1605888741738","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605888741738","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5Ph6s3z+rMkkcX5wYvbOAJiXKWF7qvJdKQDTwrbpOL7tbnY5OYbyKuqoQM6fEuO6GJYuBekXpFdQUSM0d44JAg==","shasum":"ee76d4c044fcc8fee8b594570a40b68fcad9242b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605888741738.tgz","fileCount":173,"unpackedSize":18995949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJft+r0CRA9TVsSAnZWagAAix0P/j8Eyp1bwi2VmkG2Kf7E\nWFcEYy7jXrH4MWQ4CjAdKpl6ts1vneZW5oO5kcgQBe21omtFaGlels9zeNNU\nvLdhhW0p5s7IHtdRBCXyqBwskAxOx0nRxArbNpFMUD/W/wV4solzE5hNUj0C\n9Szbly3U4K/WEZhWYDPrgru6RxwVuiVlKqjPAm+qy86N9B6HYJC2FW5xMXpw\nMFmVhYmQLYtWsbfu35g6sea0mutqEq/M2X4XzhYIpMcqdWbpZ9OP/RydIJf4\nyB8MT7gyVa/ESMsFOC1W0uPShmwep+DXHbCOaMGXUX3tl1ddzbAx9IobL9Kc\nfSl2Y1bxfw12qNXaOEvP7FZ8a2IRonATTWbvvTp7XsTmCmi5wPDxDTHQ02In\nVwRZETHJrLuRr3hQ5pyBVkjYktmLQImOAbAhQAghwstVrlw3DzWJcLy1dyCg\n7dEghqkkXVN4qrjtd2Mbj8f74YHDYFyU1URmybIXMy9Yzkdlow9n1XwEKAuf\nt8tzE2taijTQEbne2Xc1RGUDKGstyuG4ahvhMPz3t71QJ29BhF41ne9G7GtY\nWCFiik1rYdHR1SMKBpul557ZO6A4V6Kb8xCHh8NJmhbdrxJnH4Qc8dlWcVc7\nCl8m6sG4wJSCNYe4MXj9a9ZyszUhRGEJiRQ4lYzMqvKzXP+ZfD6dHHXl4Kds\nJbl0\r\n=V8UR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6tL2wAiR8GFDf48964cPzCXbo4dGqTgjli3ciMGQqywIhAJ+EYRLrS7S4XfM5Dih432SuKDHs8bB86TuDNcJsAkje"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605888741738_1605888755451_0.10231018318982188"},"_hasShrinkwrap":false},"1.7.0-next.1605898192832":{"name":"playwright","version":"1.7.0-next.1605898192832","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605898192832","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rH9NvlQuJBXqg8zbW/aoTJuIVxtsUZ1/YxU3mxxdH5NFnDZFV9wUdO70WJ9fbRCMCVOJ+llgV0xDKTCG3ZB1Kg==","shasum":"9de1146179dfc487df65bf86f5a8ac88d97ee139","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605898192832.tgz","fileCount":173,"unpackedSize":18995949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfuA/hCRA9TVsSAnZWagAAVjAQAIaqpJjwBDqEvZBrWHVD\noy9yN7OcQ4Vpyfm1+khCS0h/Wt1lRnW6eBkQM6daiHzglhP8ry8hXVBbKvIv\n/hxb8/ml3ATuNx3LQeVvVuPspmCg2JjG9Xgdwh9PUbDVF6qtwY2RWjqXwnp6\ndtVHwX2RIhlt++YqaJ4ZpJnCEvDYbfYKZrAkSH/nq9oYyFGMtneZDWm58FSA\nyek1JasUyR8/GtWVb9NVMl35eeap/+h50XgvF0sUpaXS4JXY6aAWY5+k5F2L\nsQq5XZDXtXGLQBSQhJvRHZz7//iGO4LaGBszdEnLmZH45AyQKGoklIUdnuDU\nuCQa1Q9Q072FR0+sO7E5AjErIn7xqGoMGOUg8sCnV+7d3fhimBsb+5XoKwFd\nD4JPOCLn2jjvO/RPPxNDHxAtEgd2O/ro5uG+WWByj+1C/v2bbjBh8JxkcA61\nwE486xVGJbn3GcRtdNTp7LDABRHzG9/rzUSFAnSAK53jhm0Fz9tNlO6JBT3o\nCQhDY1h7YVVooU28aKRaAgWX//RA5q3krhvns0uDpTlS4BLvdOZ3CWS9qvhI\nsCZewrMWabSTbr0ToiiR8eV0RFCeIQeZThAGKTXzunPItmwWZyZKEL860MPe\nKjH2tJ3GMJ2b2rezpIVtuNZcXHRGAgfSrgh26/HlQ60HB2WyPnVFilFJ3uly\nTvPG\r\n=5v1W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOMIea1PZpMAUXh7rYjee9k6Ki5bCd2MbIktD6KhZ1VwIhAMLiMQv4m6YlDs8OqpPlLW1U7qVqm0zSyNhoWMU+DTsL"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605898192832_1605898208636_0.040918138646172775"},"_hasShrinkwrap":false},"1.7.0-next.1605914491942":{"name":"playwright","version":"1.7.0-next.1605914491942","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1605914491942","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-aMuOPucsYIMrRDyrHWVfoz/jc69wll5BeOhUoU2Oin6sD8NlfIgxR1OgR0+cIFj4RfvkQpoFUdtro8ctFAJdMQ==","shasum":"656376b0d1df051c14862b2cb7e48d6bbb855513","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1605914491942.tgz","fileCount":176,"unpackedSize":19002206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfuE+LCRA9TVsSAnZWagAAXRAQAIL3DYOSvGuZR/F0gOFE\nJoiioVP/dsJnkPg+d4RljB6MN9hLVVjXIOytX9Cu2uyvPAMqnjFSkVzgGi+c\nb6yLghuvWDTdRxcpuiIk8okp2V3I+9wYc4WdiOC13+lWl1OXgJruYVdgNwNz\npGoeUR39/ZMDtyD5NknXnNHwN/GXX7+Z4oLLSBXx0vY1jt4HdzlTPXeb0xeW\nvlCIlckxJ5bArCxVobC2+6PIBuk7yyZsitVOnEZICVfr63wd6UQIRMhFZlqK\naUBQhomPA+bKiID334QUU9oNBbZAOnPwnKtWlfQsscYPbtdZE5ARpXomJ6og\nz34lZ6tOkJhc4Eby/EhGdlrHUZZuBNGiQ1L75UjtumEuNQZzc2VHHD+F3Uk1\nG6pEvDyRpGGP7BCdGXUP9znF1GPjmcdSd/Ocy61C6H6VrgkE20DvJl+5hv9g\n7aICFiSl2i5+l/E0xCzvzKe1t8oxN9QY2DshObho+kJpDAImXH+ga33WpjQM\nC+nQ+Sr+nlbatYGVhsDy8U/s68jIYVwkBidBFUPldxDPuDGKEC71DNp68Tee\nnJuWTKEgFbgYQp4Jz6PEPy+LVRYJYwFDnjD++MID0ApTlJTxdYtpwn11q1w3\n6Xy8FAqg1KKbUpV8sGQGFXYzI+b9EmY5lqSvw5c1KIqvT6nnhz0ivPA7s3+Z\nWUWq\r\n=cPBy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpFit8jU91sp0zylrRgiWkmfmhSUHI/ltqchDsk+/aXAIgJGlBWIdQ9x88VtXHSaY0jLRDkG1yxlMNuQIPUYUx3xo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1605914491942_1605914506213_0.13488424824764467"},"_hasShrinkwrap":false},"1.6.2-next.1606021590899":{"name":"playwright","version":"1.6.2-next.1606021590899","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4324.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4324.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.2-next.1606021590899","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZsPe0mTaWAgl+6onEtUeuozufkWNdT8IFXUPVWIMH3LkO0e49dzUQBXdtDEirUYTife1aISYIEIqdNo6IZgwjA==","shasum":"cec0cbcbe21026cb55b0797be06dbaeb35022780","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.2-next.1606021590899.tgz","fileCount":173,"unpackedSize":18980917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfufHkCRA9TVsSAnZWagAAFqwP/0DveICk1IpHS64O1NpY\noZE2z1qrZVKuWX+YY0e7udru+z0naiS8QOAlxCj4CkS/fXjUIHlAPFEGzWvo\n+h/GERRTag0p/ZWQf8y4/CRN5KWzwjvIqcvdKoI8exlnB7VseCTzpgh/++w4\nL21xJGnQNdP69kveyBKo8D8S92pPhdmMEVsihIYZl/rqVsKANaiBGeCJXTvR\n0xTn+pm7HrD/UWuJTGxFsyN79HKCTRn7xMtTaeh5VfgXv90c96prKjC2FiFf\nZz1zHlf1c7lgmtFdNbZ4Yzay/dsD2p2wkSI/wp1wvazW6HkM+AJ8g5z1hCiN\nXqgnKQ0v7Fvrq0DoO2Ug6LmwwImAFe3co8wZPZ2VWMxZX1xKMVkZXhlx1kF/\nOR19xf6VHCkHU2AImlgdx6B9i55q6iUYlQfPOOjBrhALvjqWWMLmmvs2GMVv\n/Mj/xjrZ3NJ14Ppt7RqXTQNCSdaemkTTaxqQq5s6nAnBMf+EQJO9UaTYVbm4\n+HtYLq60312wvx4UrrTpEWWC9GxaJMZr1qTAUgUWtuUrOkWhvHo3v4vlQxCl\nPBw7qrYdnuduUE+ctbILRz/XU3fRkDOYN50thTx0LTM/K9/fqWjctYOY1422\nOPI030Ux5ih4nxzjYyPePgyALPKZ4dBYe0hz7dDdBH7J4sviXCQX47NDRAj2\nbGCh\r\n=RndC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUrIcIeQ4CAB7xLjT4WcEpysuZ5Rg/pzgFbxM/9tgjOgIgXXB1bVFRh3yLEP2F9w+hTELrfLifM+q+9Ye3omumn6Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.2-next.1606021590899_1606021603282_0.20134208694797984"},"_hasShrinkwrap":false},"1.7.0-next.1606172731960":{"name":"playwright","version":"1.7.0-next.1606172731960","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606172731960","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-D9t0RidEv4ywvaNmMmWEn7LTaBx9/UHK9IXjFyYP5o5opBtF/6CCUkWSQutYBQFMm0q1knhBdu8o8K1GhmgWyw==","shasum":"62de1d6bd419eaeb2fb3be076fdb2d343062cb06","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606172731960.tgz","fileCount":176,"unpackedSize":19002206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvEBNCRA9TVsSAnZWagAAlUAQAJnKIjNSKx37W0kT5Bqi\n+OZ+ME9WzwsMvlCCs8xHsKMulyfpycUu8KtkkeChVveStPQhhEhwbs2yqYdC\nzzZZIb0kyEzo/92Qy2EVN3tVMG9px2iYHxSKxDMD85uYzgbTceqCFW3dVYby\nggxHfZWZshxtuhTZXKkJTxRn60lFd5hzHqg/iJV5ZdQ4JaRrB2pFu5MXWZT/\nkLvgM+/+uR33mT/NHrVBQB2J3P65vQFEhiMz/3ZS/dm0W7TGRaQ9ovbIjEkJ\nOuF7cCmOuG21DeEejn8CZyfbMnhsqLXS9nnlPe7/v73GqwjHJrIytooB9xkp\n3SWkxhaTprkrRwQAzWtemKBvUn8jF8Ld3k/m2lEv1jpOZ6IlMApXmbIbMSbK\nSnBcPBbjsn4xKT9c+3nalBoqnFkato6UraRuEQR0Xl+XQ4GXNFIVFpB8fc5R\nx4u7LIlEotuNMGS892r3IGM8SCteSYM9y0y+5l3FIhlM5KIVfYr42J0ywux3\nXi/Oj2xRV028itvIGUL2H5ymlELahfYgONP2slr52vyJpbj84sUj3P9jGrIr\n4mJSimff7vnnB7eIWPg31CdB7nQEuHZg/0H/JLhiAci03xN0Kl+OXvb8O3wz\nSGDmjRY7Z8HhlKgVfOb6K/D7qwaiLIc9Zm21RUIiCafwzCffn+ceiywvAGAP\nqLs/\r\n=an0O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhi6/tdpNXigP2mph91j5J6ccYI63bp2WaxspYMKe0UAiEAoMgDWcp60EcSURh5UBIqHRUJtFjfxXwb7kgtnRfN/Cs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606172731960_1606172746054_0.6773320288970874"},"_hasShrinkwrap":false},"1.6.3-next.1606173146445":{"name":"playwright","version":"1.6.3-next.1606173146445","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-88.0.4324.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->88.0.4324.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.6.3-next.1606173146445","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AqK8g2Ah3tDX8q50FIf4oM4/1a2cZC9C+NGs4glNzOLswadjvEHI1+yXIWpRt20n+AkLbtbupR2YOeBN6hZHZg==","shasum":"0077703fba4b0649b70a6ec1f520f0d1ed97ec5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.6.3-next.1606173146445.tgz","fileCount":173,"unpackedSize":18980917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvEHpCRA9TVsSAnZWagAAkmYP/j9HwGLDlXLfH0I7ALLs\nAVt6pEhR31mMk/VQEmf65+QvG97setOjeW6Oz+rXv4sAXraPzm7+6ASTnw4d\nopFSd+abnNsHhjpI2QxSs1Qdapk5WRnToi8Jvy7O6Q2WPflY8/+Kwcn9Xb9P\nSOaNoQS9tV9m0hM9sLSFWji1ilSXW9BWBxwl38UH8bGX09Xsy73haroA/tvz\nmvkBf69vV0bkCg/OrBpuFhX/VWz/tDy7G3lSHDM1PQWA9ZBUEbY2cc0mG+bn\n7WnKW2cay16s7dTZMS75vg6RXP96bROai0sXUKgypEoiwJjZWx3WN/+Gu8Vx\nSmEFW5HDlnTXujnKir5IXkKDRMkZU1K0m3k7wcxjyUGtG+CH8QzrBut/ttIL\nzj8hNTmHDtkOKuZCGrC2/XGHKd/2U+OE9JoceIXA40V28UwXClpJIE5hWn8Z\nksm9rVxh6fTmuB0TgYxpkql2Ggsiy7XK4u+cZHShHHP8di8xOrguPSCoG3W3\n0LIl3Zn8QerH4fFZcJtyR3KoZWjZ/xJSCvsp1ljwzb/p4FTLNbfgC3yEFnWS\nL0bMWnTcfWQcX1ah8n4raCnosPMRBhvaW9V5ZxbCdbuNpatJB6wvtIGsW65k\n3OnJPdzCRjEb0dmmpS8G/W216dQ93T6k2nRnojGQDgSeKANoaR3AhngYMhJO\nr77y\r\n=eFkE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFZGQTWHqREL6Yabq/vHlxzObYIR1Ubg4bOAs1DAXogwIhANyPijBiZM6xUN2Xs1rm6rQOucq7fKhEkG5RoN8u67YA"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.6.3-next.1606173146445_1606173160363_0.48437095876477887"},"_hasShrinkwrap":false},"1.7.0-next.1606173927761":{"name":"playwright","version":"1.7.0-next.1606173927761","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.0 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606173927761","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-z4ikElftJ/J+5KxsxNY6euLNM2UCBbLiJ+6Dy2x3nW/gYSPrnuXlMnCBWegwU15VRk9EPk/cusevZqY+hPgwVg==","shasum":"c88b32d174d8be17a5addd60e72ad8f0ad48f300","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606173927761.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvET2CRA9TVsSAnZWagAADgMQAJqD/hjN7MlNF2gqIgkw\nVI8LVs6rCbddrsywc6qCkZl+QmXj5X0x7llSy5Wv2yQpLYarV0vLQ++3A5Hk\nvaqHQvQ3FgHArDy/Agr+qpTpDhNWrtXxYD4i6uC986IEnAVMoc+iPthqMKN5\n2ZPPk6gLUMmgOySXVnVhHfZi9MLM9bzpbEMFxVAvHv1XBh9ikbky5pDkmIJO\nZsCfTYFwxS0NCVX3dvENu8gvNubaoVJKA2vxJ9lxEH16Poe0mX6qY2iIfq7u\n00q1X7Fz0zHUtPIl28Etvyjz14CRZz1j+XZivzDJw20Iw8S8HaJsHJgUDi4h\ncoE83nKHHKLLflcX8KHPXzhKcEUwnXRV1mGkOexlJgVqBjpP/kYPklaNSlBw\nsdS3uKb4Crkb+PIhR/yxtaN9rse4kMo746mZQwxrBEI/LiEMx1HI220uiz6X\n2STzItk6ehL6cJbCLvnQQBw+GrCREUptNWfki3vdhfcnYP0UPvRUgDkqeIyu\nCXyn4q0DsB70ZmZUGp56HA1wn6jqLGXlYF2LNKB2z3EdSvGy07+ehXCRb76l\nu8ViZemXwbMQ8KpnkfrudwzTSC/OC1lb6/1IZDi/gEhryjVPNYgLzCMCsxz+\nS+Q06omWjPbvUkG6zebRQRtT4L75zyyjnRG+rwCE3/QsmSSE95C35RqF9Zu3\nRXuk\r\n=R+gC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiOGZ/wtNqzE4RUoK3U3xe2c32bhX9GtMWRzY8Wa4o3AIgMtDGyKAnrk0qkBTJfRWuZLyGz++cqCCI1dqErKGhwW8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606173927761_1606173941510_0.6163057211706191"},"_hasShrinkwrap":false},"1.7.0-next.1606177840091":{"name":"playwright","version":"1.7.0-next.1606177840091","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606177840091","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-XdzmYIuUfhUeb2ZGU/kcKhwlSQhTOEyqnzqJwY/gNBj7NSc4Iwq0pDKkYRH5HwxCwENerjtaJMQP0pflwzLfyw==","shasum":"24562b516c7423ae769cf5a41c99589b4ef989b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606177840091.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvFQ+CRA9TVsSAnZWagAALOwP/1ebME+sQoTVxAiA2ICq\ngl5LQXldkgHedV4sZnr7lcu+UjAwJRgQG5zDYDsKYTlwGqPF2ysD5v63lz/g\nn5vAKw2S0qoGe4XnKIBQcQLQrVS/RP9RYonCcKLTdmd5YZvU7FBi9M1yZIgN\nWt8htSXTarTEuUd9m3gkqJ2kC7SfmLNwyXPpmQqoGdRZOwNNnlTAnL7s/V0c\nFMFrjwsecbC8KoNin4U8JmLIG7vSb47WARvNeDYdefusQUcMGqFeTrM63O1U\nGEahnHIzXfbwYoVfQbBkNH6QWOEXYzeaEbbhPx2OGdJaWuIO4aS6DZG2qPS2\nsH6DrUdqb8OFRaa6aecaWav1HqjK9dyCY7SPP24Gx/v9I/L1HO1nLY+mHXux\nlOPvSK6EAkO+B327ON1fndQ5MVC3hTnj4/p7a+CYI3GqCeYTMeiantyYeOZE\n8zOgfQvs628gbvlUoyjU2opyU/oFl8M9j0WmxnsQB3Vom6/q7T6T5Rzl61LN\nsJ3gXtqFeihCYAWD5LZY0cT/Y3uOYC0R4W0R1pyZPbG9KBzRB4UkhISvpsb2\naBMC0+8/RF2W4nTUVf9VYrX5RenBob3e5R/OgZTNqKrAQ8MkVgLASXlb82Pi\nm271iz5Nh4mBFV/tdINJUxVur5XJ4rrxmRopkYhxQPaK2NKjwXZtatYK+aG3\nQP+o\r\n=HD7u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDXGeMv3XT2SajDpiGWPdCT5q0gZWKlQ6Whvjki5gUMgIhAOEebszu5bl2mk/os2ix7TO3qnXNQEWE0x8z9CM8eUKW"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606177840091_1606177853551_0.8465558375326214"},"_hasShrinkwrap":false},"1.7.0-next.1606229563961":{"name":"playwright","version":"1.7.0-next.1606229563961","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-83.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->83.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606229563961","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-nFmPu/c7LofaKjQuyxleTgy0QH7KEfxiLDASm4lgyQcTEV1kl8fuKBLcmZOfMTY8Ot9Nv6cvGOzWeGpS6vvUxw==","shasum":"ec48d0f1f616ab4d5590dda9dc390c128eecbb43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606229563961.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvR5LCRA9TVsSAnZWagAAbTwP+QBj8uk9/OKYkQKysYyi\nz6AB1SFad3bLvZKxItf0rSoiAsHAniJYapiFtNPep9d5y2Zy6m9NhcU6EcXv\nUH1kv2rB+ANPsO0pJ9/AgrMnyrnZPYwFBfA/vJqeAfsUKxTSKEL7/svfmwN4\n4RyfANtECepT2Nd0uk5RouorBYImmATMYxwSxQOUj2Oa8kTR7v5L/MT3unRq\nEzkpurheKRGjJ26Nhm5wubL9ikjYh/N1U7pDueqC39A9a8GdEXsjxWaLMHfb\nm0RN02TfVTxz+pDpXrjIiJYqRSbmc6kN7IFKuaoJ/Nc/5725j9JRt2/kzLvP\n1kH8w66P5EGamL8yhQa5LHrSf5dGcCVDdHm2ZgU4/dejxZDpR7PXtPGsaHHn\nkQXlhGxCUjOm7kWiyZuaooOkGiAHTSIqkw+rwjC+mANUjhfkCCN2rnfCYdw6\nKwytdwKW0/evTVQSfTi7NH5nyIvuvMw3Imck26txYIX/JdV1mpoyvOFGcwWX\nYH/y8VINSTjSE0B/oEAj7bXvBiJq9kldWG6ftascCAtHU4kVGmnrLkKPurhY\nMSXlH7Kmp6bxJL5oRw4Fq1C7StweSd3EWpvVEzL6I1YivtbKxf7cLpvnZ6MR\nTUN7yrKcwDAFxtFUm0qEKdQOKjPCB7QKv2PT+9NTWyPQhp7sh9RyASZRKSt+\ngDT7\r\n=Adih\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFPKHJaOXwncwgRgr5QHWD+rkuhYNhbbCrxmj/Y7xOCCAiEAwoSls5AW6hjjVIaHF0zIzxA/ae+hIO+B/fNTH/UgVIU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606229563961_1606229578320_0.16086233246787796"},"_hasShrinkwrap":false},"1.7.0-next.1606240470911":{"name":"playwright","version":"1.7.0-next.1606240470911","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606240470911","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Qk8uJYO00uP7qeoZuKPx+NWi4BQTB+RMU5xkGl66ld4HOcRCInJDhh0fFZJL4QTG1YoCjCUY7MII9uZawsMOxw==","shasum":"4938661760494494469c8668023812c0b5729245","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606240470911.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvUjmCRA9TVsSAnZWagAAQ9wP/0YCcgD4W+t51HhRXO+a\nzYHAx6Ho58V+mDLIeIlUXzQJP9DviWrM9I3DGQkUNihDyhuZYV+pedIqRoJo\nbshDD9M4honZ4qM839jV8/x0vYaTBlF5LXR9T9Ys944GnB1NrRaul8Y6/FMB\nFOkyCnaEiDgX3YPDRgrujqq6IeyH2sFo6wKB1pk/EOgR4IqtNHBKg4vuQPsY\nCeUpl4KNjA5+4cJcQ5QFo3085fSAu9ThH/JuAWSOmNbhNPnxw7+qHSqEF00u\nFdz9x7+Qojvuh5c9J+/a0mxe45702lzwxKJhpELRQMJEDRdbxciPj2VFXVpj\nvcdBr7n0/R2DrU63U+/d9FS60RfeoU5JSlBvLhGjoggCBrms8Gk+dwVZkWFZ\nca8271w2I4gJpvKVuLLVmvr/G8UNOLqoOKUSBJjMs3N5+3VI5gmm1rSW2vJe\nv62Da2tXTjXuLmfTcCAOSp5CnbdKIwFXLX78miR5vGqpRiMtAM6+93wdckmN\nn7J350tMUO3lEcKVfRHR0KVhj+xyOdiGpRpOz7wIVZL/nUEVySH9Bh4wr9z0\n9fz4iKzOU2IHF1IrCvai+p8uN6//HHcVojam7KFmgSo1KPTDPa/JYYwXX4Bs\nSHJ1HybwEVRR4P+6wUlN1ux91f479kXOcRiTTK1+cT69BUHcwYYJbraT4rBK\nFtq0\r\n=t2Ot\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBLVrrApBJUsDrJz9Rr5Wz7UmQmZKVwQGexSCIPzTZ4AiABy9rvK3bSzJf0Po7YgrVH+3etS9j+/nO2lpCgthtm3g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606240470911_1606240485878_0.7363898233797312"},"_hasShrinkwrap":false},"1.7.0-next.1606244758747":{"name":"playwright","version":"1.7.0-next.1606244758747","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606244758747","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-BGGcu2dJcwMy2qrWXZN5xngzWKr/F2sOwCojytKzueVgLfHoaLj5umDKilDw3Lc/9pZ/Jo/pKJ+PR6NQyXi1lQ==","shasum":"e8f480a38a01610671ef9ce06f15c729ade1a0cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606244758747.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvVmnCRA9TVsSAnZWagAA2WkP/3bmd+COS5E3j67k0woS\nYTimATxpAvKb9uhxkARsVd9+awh2L6pTA0v1iB2OKWRPdVUQSYwYm229Z/Dh\nl9Tl898xOoIRm5bC6WUSSRe1Vds25k9ui0bTRO4kpc/a6vJVKJ/G1eMuyLwR\nExYQAExWAMBbCoEk2lA4LME29WTTP5ia/b2Tz2T4vJnFvJW0ycUsGKnk7kid\n5RRlnuvilm73e6e+ZJG5GHmCCasOjSSW4XP7uD9yHSIeVv1dlFneLlO18R/Z\nWyh1K+6h8FmSyjHx60RCONXd28+0vs6sbtyDWbe8bGZjR7RSIeModAFary4T\nwJO9/JhZnKS9XWN7TBtsUWCi1glUt5CzR5nyGqHgrZYy/JtCTqdGfjt1biJm\nk2EwWU1uiRxjzzdEEC7g86miwqZzDcQKHXssyoNdhuGPxS1MbpyIDaB8GQDI\n2OErXNi72GfW4kosWswcFNfj28w2I1PkxmXAA/6cFOTunqH7COP1C/HCfKtb\nR8M+xKZyezCgS7CEPZQR2FJo1h+tImtub3xKuCPZez7NGraAVzEAiHxFINZT\n2iWFYTk/drlMA4I9O2bbhV0f6HT36WtkuS5ci6DnHo4S2+3P/lfBnRQfzalu\njq2iMCDggstwKZdgAfakujnesw3tB1tylTO7w2isebRFKVw3qFuZdPxmxQjj\nyCu7\r\n=4SGh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLaephI5W3knDL6R7sIicOgjYIoCIKokwCxwG4KxsEVAIgBnENqk1g18mgzhTl15wb56K321r7q2D46URdkc9JsAU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606244758747_1606244774264_0.4603141792554759"},"_hasShrinkwrap":false},"1.7.0-next.1606270612048":{"name":"playwright","version":"1.7.0-next.1606270612048","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606270612048","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Ur1n1N8W869Dhyl+jUAY5nWuKEGy21yc/QMTP3oIm0DuCJN4MIZ6rSankxqyNbhmn/WoY8fkAyTDnW1HwQu06w==","shasum":"16ba0f61e615081262d6ac364dd2272f165f41e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606270612048.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvb6jCRA9TVsSAnZWagAAzCYP/2tNZlSb86BABPkYsrga\nvk7LTEBsoB944ECTHB90JHIyKgnasy/3Ci9R56+vF1cR1AgiVoTlZH4qCNE0\n3oeJdH28FLAnhGK9usI0A0nLeow4xXp4zkEbKo50x7/Xly8PkbpBahSuYg2i\nkgZqfuscCDWnjl/rhKgJthv92Bw+vB83A6llOo4uHLc5UiXMOc+neVZioz7K\nxHiLcRWsf6mJ/MUCey8lcdg5LtQk4sHWvM2hhapEniSpc5cjbF56gEJzdcIo\nKfbcmrNZGb2YciFm7Bf171hKtrjKeJlOwGd58eNy/HPVIhBSkSwJLczrr2Tv\nb239Vm5Xsha/dhZlJlIjCZ/p6A90sTFAVGOoJeAup1cdDSvWcqyLMANyOC29\nsK5IQZu2x7KTa8Jj02zh+MGBjryccJmjh/FNDEJKwJWP+zhuqyvIK/2VPcln\n3p819l9N5d8J7v3YZMfkd3wIT1czYs5gjQfAuIJ3biCTRMSLJA18UvWDi085\nDnDsgVZ4C8e4HRvyoYGWKgUdKAtFVLvFZT+DTEQHdWLnjJMtXFo4JvuRBhII\nslxIYPVAzCgty3p/3EO0G3cknD9+TeR7STWMOAOkwIEBeOfor2hTeeNlHuMu\nR7VqcawRt32SjSLu3mSffM7vrZPHDhrvzknEnuR1qgHk+Uqp2oukMX1zOzip\ntmY+\r\n=nEO+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxTYt7yzkKJ3Ii3M9dMmReI8HNHb5e919lLJicpJzFGAiBglF/y5oztv4fyjnN7Cv7uYEzXnB9s3fk0rNWqUcQ01w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606270612048_1606270625923_0.38368340912201937"},"_hasShrinkwrap":false},"1.7.0-next.1606303868493":{"name":"playwright","version":"1.7.0-next.1606303868493","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606303868493","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/Qjvni3VHPOibYCoXmSrdS96xsscjV77upJb9KbnYjEroro4oK6TEnxLytgj4fzbluug0IOGqrTabPSzaMI5uw==","shasum":"491fbca2ed53685e3b5e603b3e2ff35134f92871","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606303868493.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvkCKCRA9TVsSAnZWagAA93EP/iVnoNkHqzFwbZp+wPYc\nldlBwlsA2hU0QDM9niQkPPQrH9YmW/MWdlgiyxQbC4DWvxeiHItQ4SJiPEQ2\nw+H13F5UCZ/EIZv7lq1q+76eSWQJdEZlZ03GyEWI8dezWjdj4pYbOSPy8C1U\nurjeVj4Bg0MTtyIZznUkSFucLGBzm0Vs2yke1bN+v1rREBjGjm6jackqpl+o\nbv7HuP1xbXg3gDyH8vgubuuDLFGssrTtyMx3lLuhcybN/bxFfOtyGykw8+Bk\nt9AydP1S0xwyP7sS18B7kkyhyoNQoxOiMIkF3BdkFh8dxFNU4VE4tqF2Z191\nzUuTiKMiIN/jUN02QBOGVyxek8aTEtoYKj49whGk5fsWSTY0tDGjaNtqBt/8\nG1xm+b5X/BgUHyzgkVyvKJB7mG+NBdqcPbXGDNyG2PA1GtyJ958RpwUxEpJF\nyyG7KvGLYiODyeNr7mC2SF1Q+v6UrPPyQbXiFIcCUyP5O1XzBCryEcYrBk8d\n2X2iKWrrGJxRDGfSHmviQZME0Z4Ngdx9n3tauFKWUwdcptGkiwSMjUvJcrS7\n696os8QG+pwog5aqbHnT92rcaUPaexUAhZaqmZ21/acSgnphBVQFwfeTHieR\nacxZoSS+YsLNX8y1s+vdnEvMrWlvL2m2kVHyJe1V8ZPBrjp63id2xJVms44z\n7RWf\r\n=XUSq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2cE3c4vQ/+TRuIIFkACYE56+aH7M3r1AiQ+ssFjsknAIgFM9ftBVArsmrhlmH9Xo6ZeYiYm1Iykn1s+HjNBO3oTE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606303868493_1606303882107_0.8729665398606565"},"_hasShrinkwrap":false},"1.7.0-next.1606304976258":{"name":"playwright","version":"1.7.0-next.1606304976258","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606304976258","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-s+ksm9pDUjQHxIAr9SZp19XgOB57wZoFTuH3l0imyQd2d7wYlx8JGdROXxSzJsx9NFoe/vQ4z2U1MBVNKk5mWA==","shasum":"9c4cf358cb17ba6c31fbbcdd6901c8d083a1673e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606304976258.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvkTfCRA9TVsSAnZWagAAKCwP/i4BH4w814q4dB4aPQXp\nNqDyXuUhqfMMt4fFBNj11B4IKvPnjwAWKgsMgoVeeebG4TfgahnrcnwyK1bi\n2CQ44QmBSf+yz7qtsDdwm2pzy8Hg6kxgcIcdlZ6+wjuLzsUXo8el2QuQTMcj\n3GFcgXa06MTxmecsDyrUsccoiHbChmjPCW1gvHqSa/If7TlNU7Chmo7Ghy8O\neTCtpM1vvLPTpVfdiU7MFPeKSW7ayI1xQ3QFXpbkv8npkxH5o4yfkUKTHUPo\nrMemdDNe3SFhZw7lH3ECuZ/ywRr7X3ug/Uf3HA2mAjzvZ3+FvXFbfurl9s2f\nKX1H0bpYPqk6TuQLn8g9A8DEOqLMrYZxFFsnATyIDvXXqGFGqx0M2+dsxQx+\nGX8PYyruWFbZGC07vfIbkfJv5bLWOoWeCrtytwpQfoyR2IhsKymZhuaXEzbG\nERrJ8yqrAXfx46sGmZQib2PrxYjantd21LQvAiqXhV8BIG6xuBTdZxnyXJat\nUI8tVobD55mM0Pa7j/ABy26OHyLDQKsmlAKgH4BSxHA2KLO7cj+TLrMQ9Wuw\neVDkxPLpkgG0JRwYOq4KeJ+VQlMn7qmG2S4O6FnC8mBiyjDemENKpJisO/Sq\nRkYFpYFszrZnLG3T0mmsJnL/d2YjTS5Q2J6ImKvRHEVNEwsnWmiM3IaMD+zH\nRxbr\r\n=ozVv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHEErHMlQjHOluyKqnx/8lo8GkwGEncUcd2e2XkNgiuKAiByj1yUF0g8kBmKQJFQPzHamCRu76AiVSdjTO0elmWhFQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606304976258_1606304990646_0.43528883635053917"},"_hasShrinkwrap":false},"1.7.0-next.1606321631660":{"name":"playwright","version":"1.7.0-next.1606321631660","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606321631660","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-el0FrFErUeV/33QvGo3gEvj2XvZWLckDbWzJfpN7KvXYq0djPiLJ1zh+2v31DjpLTjzSKDuMBr9xL++6fikcMA==","shasum":"dab467f86b912f7851f6ba234148e8572de0a93c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606321631660.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvoXtCRA9TVsSAnZWagAATSIP/1rJj0pcj5X8OWDZ1h3F\nfju86eivNgj306vm/VrXcNpFK4yzs5xFybce+rTHhPseHF3UkJMop4CCyaPe\nJVA82BFLOoVPffVA+zcMEy3+Oyo3UGbFK+tyrMA082vtJpCdAkuas+BFgP5X\nIHxWd/jYljzzGjBVKqy79bsjzxQ32KLSfLtMawd/ZBL1kext1Ee4uo3Ocvfi\nv0e6IjYW2bbCFoQmY3Qlc1JlCc7He8l+VZb42pnyjFQusZAJCD5BRhUqq+0E\nO7Se5rZoRZGJWhRYra55Lbs81N4YiBhJG38nu3DEJr0YffTfvYVbM85jGk4f\nGf3SfYHWtDZM/2KMdvAQ29bQCoByrF4s6pHerEPz8DC7ejYLfn3UPEDlY89J\nciGGg2lrU1KCXoAdyMt+ufAlviRElWNlC6gs/qfW/2GbbmNCYoJOYuj8o+3e\nEzjwhyUzdx5z0e+YK9IRXUMKZaJGmIW58V410ik0O5djbyjMCZrAKW1ploMz\nlaH0iMNUAJL3qlzIPyKGGK6jWIInfvx7ALi++gWHCS2Bs0zpHjJnOeGm7MYX\ndQXIkNiy78Km1cDEJ3/ZxCrVxqu4GhQcgPmlxVwn4X+3ObznGM+9Ut6FZJgj\nD28F5hHygHa74Asb524M1r/3BXB92ksxh2Omxvq5ii+48IcmIW59H39NygdA\nEhVk\r\n=h9S6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfkCKJvsrsRElBUxtHZin7jvmOW+ZEbCdvG246Ux76cAiEAz1bGEFdZuIGSiJ3KWSEZBdza5nUanXUZV3Yh0yDX510="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606321631660_1606321645075_0.35694160507443695"},"_hasShrinkwrap":false},"1.7.0-next.1606322433383":{"name":"playwright","version":"1.7.0-next.1606322433383","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606322433383","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-PzLZHOsSa2A/0exyLreRhYYHcwZU24mCqHhMozDpNvpKnyPAIQqBQAjv0euSqilwzblS4efVqnvva5KhpiEsug==","shasum":"0a044b2f25454eb3416d620dcc6a0d5756e6e4ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606322433383.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvokRCRA9TVsSAnZWagAAnbMP/0nI+yMcxaVYsIa5RuJj\nv6LaFbljsz6QB7uEraRz49T+vcqV0iTCUpIYvtYGzkK7YwTm4xW23c5XbeU2\nrVGSAI1e/ADT7RoNiXZS8UxWme/8zCvSK68+5YOl3f9NXhYjZTsPkHgCr1qi\nORkqXe+dFUtVk69M7J7rJa/C6cc/RfVb0pcPFSfi0bM2zUARjDz44o6DtZok\npLh73cSkCun/wcD+PeoNr9MWr8r+ZtAxShZ+pj2QKjSvu8OVrTFOmNIZPmeT\nlE9gS2ezT37kMi/9y9ZBdDWpYjB/9RlKcuyN3EDyW8Tk8MqvCVA9AtSjQGJk\n6PKAr5wuELE2R7T/ZNIuVGff3c1rLRxrqCXIUGSKdqnlqp76tMact9ndqtmu\nzy2mxTmlV3wye0xNeyQjGzpUmvtBcB2n0rPXaD1A9mRorcrDBvp5jSh/YVCf\nSeZseGu0UjBiej67WlTljdeP4cipFzusk3eD7oNOjIGQHQBqDxR3LtDlYT8h\nIB5cycTMhnhuFZACiIp9Z05QQZV6r6TC03hIDV1kKkFOcaRCuoDWcm6Pa4vI\n+xITUqVHLFHU9Kgt1AdICCdX/dlXca+o4XuqCvMVHsBbWp4KC2z9Cvapw3zW\neA47+mC2M8E0YTgmeCWgdfbri0jZF9TOPeRjF6FRP/1bd+M0iHl3S/mxJczt\nLz5F\r\n=fajF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7K0m6c8c680FAsWItdpMGLPhi5Z+m/YKPcu4xX1533QIhANUmhXTCEJX65yLicvpTm0tOZT+F+biN0g7Kn8DshHLq"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606322433383_1606322448485_0.3709396799100382"},"_hasShrinkwrap":false},"1.7.0-next.1606332867472":{"name":"playwright","version":"1.7.0-next.1606332867472","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b3-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b3<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606332867472","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+SMQJDMuG9gHQNPooopeDXuLmQI+Z4IqU8d+k9ONvBvj6hAlvISjoN4B688ZrTQMHGZJOvhxd01XUILwVZ05NA==","shasum":"84fb6459e4a42742ad154d168a9a62707825b360","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606332867472.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvrHRCRA9TVsSAnZWagAADqMQAJyuKs503YWc+6RirOmD\ni/+gf2egX6hIqt2KjErjnhKvA6GAmvPuHi2uzd5AMrEV+EFu8INh0OKaZCoW\nkM2x1X7WTZMEVNmDlNuMjz6JUDrH/E5cCm8MT1GCX6v4Uq+Dqj8fZYgI9oFe\nT7foSuxQTU/MMvnxk+3brWJ73sjfjwifFzyckrF0jWI6EyTYac/Sg19mBtBZ\nEzUplfP1g2Npte1mbiKYrdTQWtTjCc8CZGYT9OY+d2EtD0IlEahM4jmpijkr\neFDdUHygrq7F6dGEtLy1wL48H7CXAuT92T7FJeWSvsFkqm/1fH4BhY3Sc9Ui\nXPzga86MuQ/s+MzZQaaCf65SgJPVBqfHsgUrm67gLHLmphnXesl77QJbW/Pt\n6CN8rli3Th3kYuXwJ+DSWktdX+HfdtrqvTiEF1EcHi05cNv8juq/hr+8nO9Z\nVTVAqcYzOMS5rxlnaa5Q6yhnYgETNRwmNzPfK2ygW+0u2hYRPipNmVKfVhjA\nmXVEH0+B3PF7n3WJaGOakmhkYMbbrbzIkuqNOFi3IpxNgIm2OHCjb8b7wpbl\nvp6I5wI18ER2T5SKbtoPSc9hSSqYJK6mYhSGoFXIOAiZ5QeHzEUlovumuQUF\nxklCnUk7VghK2tWE0bMSvB+GTXaOEVBZ25BKwj+5SfbtVaRew64GVJHXN6OJ\nVzPn\r\n=30cH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSMXPCzmYVaUeb6n6xeXUWFrbaLRqmWcEMW9Vw+3IRPQIhALksDRU3enz54wOz6JbBLrwqrXCet1w9JyDZTjDwqSo+"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606332867472_1606332880594_0.49872125242764365"},"_hasShrinkwrap":false},"1.7.0-next.1606345016646":{"name":"playwright","version":"1.7.0-next.1606345016646","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606345016646","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-e7fPV6Ktakc3pCgXbBCCafvZRWnterKaI8EzuefD+zKts5XAsbOtdB92KevtcrkzY9X3m2txbq9Hnj7vuohNsw==","shasum":"fb93805e9e88b5b00ded0bae1988990dbcb827b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606345016646.tgz","fileCount":176,"unpackedSize":19002552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvuFHCRA9TVsSAnZWagAAJIEP/RdrTx980fFFH+a2LW9y\no8yCpVBIPMp2r9AcfUw58U5UHcvnIvSg0LuqRaPAFBM/A5iOFuuxixeu7CE2\nUfm4cjv5UMOvfpUWiHiueoAQm6aBED1UP4I8+byYwWj7ldmP/taLKJ48SrCH\nM57Ta9DYy9SO/boX8F4/fjYdIV9qQRyINiNUr8GRt09MR66kcmoawt0jh+4Z\nYOkReHgUfpO6YvxIF8il82NYZGvc3NUsYV5ppOcSprNKDCTMLT1Wk4i6dUyE\n5bowQEnL7jflWIiT2PQvtxl+v2fxvR7WvVRQmo5DTdC8Cr0H6NnfibQC6aQT\noQFFQaeGH9mSLoBAknutDnh1XD8QhNNtKTbMqxYucYBWCBSvzi9yZ5wp+ha5\nmJoAV6Ok6W6cslQyTDq8Ub+wGx1Yateo+pOR+NU6UHlSgHAlk+KCLYankl6e\nFe5mmahufi/QVA5IRr8AXFwn7srHjSu+GUg5Yr2WJh9g8OJLBaDwQyZ/Nnru\nuy71YaZist8+ZI0/3wpTkuW3CyBWQORGa9SotvQkJdFO6wkOMCPiSHk0qvjv\n3SVlbpjSh99btBOGBzPXTZhvdL5a4ZG7d+YwqAQItuoJD/4MUaOAGGfwrHRh\nC4qDMZ45lCGKIGhwtfRdT2KQDNiiPbx4w3c7JnIPLhOyMI++88/CZPL6jMhg\n49JY\r\n=skok\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbVgV+wJtJY3vNd1dxrKGxqZuM5jIQSsWkuwlt4VQRgwIhAJPtS4lx1I6PavpaPVApWCN5DWdbClDLJUCeuYFrC7uF"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606345016646_1606345030728_0.9618494031471618"},"_hasShrinkwrap":false},"1.7.0-next.1606404906853":{"name":"playwright","version":"1.7.0-next.1606404906853","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606404906853","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-PdbZCXjnqSeZQ/QlHR/JgFyNSHcW/zVStta8ClI1zUdk4tRAXSUb6Ma06zt9SAS7nBfgqiE37Xt91r8E7xqIOQ==","shasum":"3cbe76c6f2ffbed570472e0bb8e95283f0486742","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606404906853.tgz","fileCount":176,"unpackedSize":19001899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfv8s5CRA9TVsSAnZWagAAvZgP/iYqjg6hEPhkrVMZu6FY\nGugHZx5qV9qIZVCn0y6+CaNKUwneO6sQTQiaJupG28NANPXC6c3o0cbQO6Yl\ntxrdfQMQaQOo+cw7XsvrUW4YvlVJ82bwKvC/QF+kkYxTmvtIKhg5zwOdrX5N\nDat/3xk/yuwTwFruWZJFccLE/Dn4w4oJuTV87BrzDF+1EaddZJBvxZTB140T\nUODVHuoXu8XGfi6v/AMx+BQxAZ8aiEyEI+luAfSFoxKz0yJDoxVn9K3Kk0WD\niqRs2k2GWOOArNHFwyMWkoBACS7VqKomq3I5gaf/07oPw+gY5/iSrEX1kGPg\nApYsVoNl7vL+uLpxUuDWieI626HoA2GDxxqKTUnoqY36doe++KCh1LjlSTOR\nlTTJunT41PQYR4uPuuJzIKlZ/ZSoC07Q3IEE1EZn7QtGXW0k90WO02/dQEQ3\nZLeD4VSwBlLyCRDlNUIBoPsH8O0HJhNwGyg2gWdgiQiBjw5VOEH9+JNVSAx4\nUhrFI2xHhy6dGFhSrzWYkJe2GPeU8f5Lz8DtSz6jkpB5aK18E+wDav1Rjnbt\n2njIhqEkH4cNea0NLQhS3fZCAa85cvagUZ+uY+4GUT8s9YmZeLHgA/VnztqM\nvLyT6pJYkJapyLcikppvNMbzRNGVlKBFACwCMWqL9mG9oc12GKWnxeycoC5j\nCwGm\r\n=q455\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb8fQMmMzKaIGKW4/QDF2hrm7M9+VfXhSeegsJE36AcgIhAMf9WrTlwpumVlcnvAoWvGRid+vWoyZIBLim3Wz0Qq0J"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606404906853_1606404920201_0.760839962894015"},"_hasShrinkwrap":false},"1.7.0-next.1606759582405":{"name":"playwright","version":"1.7.0-next.1606759582405","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606759582405","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-pdMTz3ckmIpK2N1doCeJxsTeXFJvWmLrU5LWT3MLpkthg7VzlZxftwcX0ieat2JzzlQc1sNXAHfXCNU6/himBA==","shasum":"80769d63a8bc691f5a6de25679246106ef493d3a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606759582405.tgz","fileCount":176,"unpackedSize":19001899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxTStCRA9TVsSAnZWagAA0kQP+waJgI16w/2rws87ly5a\najiGPMWYaAT/F29aDGkzhFegZrInA9a/nUTMTMLqiaM/FH4LE9iwZgrJ5JQD\n6jnrJkkINfgEWbuoJg/JrgKbcOBWCyKjJkcnSDWsD3mSCeAifYNsbAjSGNRD\nzmBZtT4PCADuQk0wz73Qte4atSvCzEztfGfsdUmGvrQng4PQzjtXoaEIeYef\nPDsJKdeeuPEoqxI1plrDkUViyJ3iYUKjrZIc6fffvdRxzn5ateP8BkEQA1EJ\nSJq2bgD/QOPp0fZKjsQgsPG1EmK3BkHqX40fiHvXiPxKs1r8l5P1sZNhqRDb\nHN6xHKQX1J9tvewo/MpZCCoG1C8PFU1MDchzwbObiJCGpfhHMOmToDI20WnM\nqtg4ei4lz06Q6KwDrLwkJ6IilAOfbzzwAki5UCBRAlZ5GfMiwGrTBifXzT44\ndEPyk80OKHt56hcu/Eu4jRDCDCVKFVYdBGSeRjP+lBZmV3rd71mauQ/uibt+\nhyobwhxOdi8zbVZQ8i9UPT58SH+8OSnWykqciUVnF2Wj0gZCB0TnK9VVtEzV\nOSFlKmEKhMp84eZCVPNMt/u3h/cNUxsUsUoO31MpuzMmktUerw78sfuZAFob\nhWK4JUnqNUqCiPq5gnldvfYq6YCbphIKXSvIcjutEPqjE7vW51ap8sNnR3W1\ncx7t\r\n=j0d6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXvHg/fTRyS1Es8Sy2uTlvN1u8ZcPi/yGvxoY4vSKn9wIhAOCy9vh6s2y30vxywAd0nD0GpemcF2gfkU2MW734dXFy"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606759582405_1606759596410_0.2541856375927771"},"_hasShrinkwrap":false},"1.7.0-next.1606761431827":{"name":"playwright","version":"1.7.0-next.1606761431827","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606761431827","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-kLwDdL682KFVmowI5bAc0qP2N3L8PH+HO/ezihZ5vzAEX3DDBkjdnxVgU6bo6EQWufOXHLfUq4fdwvGZ6YXCnA==","shasum":"992ac289785cc07b85b12c5ca6fb87259bf8470d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606761431827.tgz","fileCount":176,"unpackedSize":19001899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxTvoCRA9TVsSAnZWagAAoLcP/R/HXuDVadbRy/F/O49F\nkSF1nKUVJk+6UHLAJG13/+ElnSsEJTIySLXx0zxdcSNi4OKZp6mGaaD9OFI5\nRDs9p00ncdU/2uFisnOOzO+rCyjJFSPPKMpA1j5/0MH05iX41DG0T7rnTXKC\nxX8qH4rUfAQumVieETeP4Pdcf6gl7D/C2gpE1w2qTphxQ4mg81mB78ZyLGH6\n4V7C9l52a6kyswTZ3afVo0hynvAFr07JUpfKYPw5l3LuKhSCTN1DnSpDlnqh\nGu0qWYYDDdJYa9v7vbaHC0xvTlHs29YkmvA7HFcG9sBsgF/2BoapI1dCFmT/\nUIx9elyUteUCMtDEVXXp9UOLQ2sdnuscMte+nbFz30oUfj4kgDnCXZ5w3rq/\n1tP29Fy0rBRpfeWnF0ATgDwhyOkWXAg7VmQ8uftRTplGUeTdzd5cRn1M8h9B\nGawbM6v8fkYy8+PVQWjmcaqP7LYV7BwisZgFcwvo0Lf8Ip7K+/kgwTsAyD0z\nvZbehLGy/45uwHvt4TxjB4BD2lN39vTvm90AH3j1q5XuVz1ehmBES2gjqSSY\n5i0uHifl6ihraaJj1oqcmLyOBWiN5fgtMy2YLJFfRkgAaAxN/Z93bckga1z0\naxa8uJR0C6gInBiYoUZWcKWdefKZ3kLso/htAfXuunNXnBYreugurevkQk2D\nZ7rm\r\n=XHnB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWdhLg2ofEZM/OirlViC/IbfCURVCHUG9nAP9/dUgVqQIhAPRrcg5u4hw3ENv03LI9Ne3g9o+IU447o82dC9ZAxZ5J"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606761431827_1606761447343_0.6371307324613615"},"_hasShrinkwrap":false},"1.7.0-next.1606762418912":{"name":"playwright","version":"1.7.0-next.1606762418912","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606762418912","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zyiTtO02ThREA8e4BSPNE+J1QTmXTU5FRx9kzqpK6VX1emh4wY6KUyg29iYNOz9SHuJGxtx+Bm7lYcW9oNvlHA==","shasum":"2ae7b5ec39303135db8ebfff952a116665b892dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606762418912.tgz","fileCount":176,"unpackedSize":19001899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxT/BCRA9TVsSAnZWagAAYuQP/1hNtEHFof6opwfFymJF\n53uhYk1uG533yCuLvSjfes/QUq43vxEaOiGDwowk78IaJN8YS45uwDanH27Z\npeGz3uA3TNe4iD38doG1HmuccGZhQ8eY8gBtEouFqWhN/t8KhfnvRQO5UVGr\nzrALKEnP9FU3Wn0PNnT4WAD++oHsQ/dmULe30pNZpsLMHNUz4g9Y0kh6YRTI\nHOnBytS0nDRd6cfGssczRURgC32ZGS8fUXHpD6Hvt8KsW0raSx8djYFHtRff\nUtpNe+fqH2X6TvL5+0MM7wRPINg1UtegrolAQFYg+Jlnt+0hz/PB+z23TITr\nxlTD27X5jBt0x/QyQnHgCfIraZlhc74gq71x7ANbdgR7PeM7wd+Uaz+W+IbE\n6D8wxlMhWdunyOcC2eHF1Pc1aMDZuclvURZPdE080aVe8ZfItDBHXJntxnxx\nrVarsA7pcoeh0Ttpkri9yAoBkCz4JbmQJvtaCASJEZAJF35QzimOROQLWYVy\nTMsu3QXf9pdXpQiLy3NIV3RuyiLVl62J2Bf4wrOp/ZDytFBKv7Qjd2/ixWRx\naGGD4QpmZflQibRI8kUHPWSIrStYJ/kZXU005ZE2rTtukJ1dJEY8RtEG/9bs\nAQsMywydL6ZKI6LmE7+HNB4hAq7dmsQr1AjzisvIq1StjNtylEcpSh6fX2JA\nWVaY\r\n=89nd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE498s9ktH7DuqQ7cbQaRj3uXaV0FSaLv5fy8L6wpg0NAiBLe/qb7xH5AUwo19fbOeJqec2omM57To89dW4WLSuI3A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606762418912_1606762432440_0.17854624390650353"},"_hasShrinkwrap":false},"1.7.0-next.1606777154994":{"name":"playwright","version":"1.7.0-next.1606777154994","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606777154994","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-SehOlKFOrnlRywP+2LeQWZEZAPKyMJu8MczzQrwyxI4ZAZu6jbnOdtsBtYbD4saBm1C5DlgEBltv1bxPboxnbA==","shasum":"4a4c1b8836220c370204b0d34b62d450dc56969c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606777154994.tgz","fileCount":176,"unpackedSize":19001899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxXlQCRA9TVsSAnZWagAAAgsP/A5rb40B6rgkcnVocuT5\nh4FD7CzPREV+kAJSkxLfrmu/ZyH7mxQTJqN+GPEBVtpmbFhGwxGb6tiV1Jhk\nGWqs+vAQ1AEh6x1Ytbl505Lzs0s46OdzT4g6x8Yl3qNlcJtg+hDx1eZRKeBa\nhN0NuaKCyz3K6TXU61D+0KpVokcFu4s9HTK1SOetc5qrmHUbqfWpV1ZsOW0T\nI6n0OXz3Yt8f9Yu4Sk3RrrrJz+UD6SMJHzV/vrjSkw/bepFd+Vekn59a25wU\nXY8y+cGqzj/FAjovcB+L5Gn9Hk59HKrSbExeU+6JeOz1r5NTZ3VZWWUsYt/c\nVk1SBpt8UojwQF8Vy/TPmtMyDEz+1HmLrKc8pojQHJEFIQo8/2OHV+oda06c\nHX5WIUkAvZF1/lkV42PIb4d83Dlglu62cFTft504TOxF9c2vtgO7BRjDoD1r\nPaC+zFZbM1PJifQFQLPOv6CKpl62wCg8/tb03Fz4ZWmDsf0aHIt4LQFiJ/Gt\nlo3nQQZ42zoqTmlPf6FsVjk4ZzFAW8yRZiANcIhdm+vXFudaaCRXa+qkvAFL\nK5Ngl6CvJVxsRpFUNZPKc9aWXKIQv+pua3BrhzEn3mGGfV996PA9dEL2fvp/\nw24YYbQxyCmKbtPhHujAM2YLoBRxDKiqsRT5OvWVzmOEzxTWTnerBIVTCTTo\n7WmD\r\n=hBoG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgHCsZt+MtOoyOV2CgXSdebaeweeZlLX1BuALHqYtK9wIhALzomheBFycmFqxUvGjyR1HwFHCpU/yQrqdS9vvq5gFY"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606777154994_1606777167834_0.6430151544489735"},"_hasShrinkwrap":false},"1.7.0-next.1606778815179":{"name":"playwright","version":"1.7.0-next.1606778815179","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606778815179","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5yKsZTSuCS70vj/j32R/TthFqkYPy+HCtdyaus7zI6P7LC9qH9XK5RpPhkojkIcTeUe+PctFe6ZxL4VNl7urUQ==","shasum":"6f7ea81bc3143d6e48d2bbff66385f5a19f6190d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606778815179.tgz","fileCount":176,"unpackedSize":19002230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxX/NCRA9TVsSAnZWagAAUSwP/RwEvfRnqtYAVDTXATYj\nFfnoz1pCRYU+I6ZBFhHnhIshx1qY4Tra3e7693LAGMrSyXVSz5WOYmY0Tr23\nEH4yQa8BhW4Hzqr1UGA37ZJZZLVugcidtJFQqqMB1Xdc04ok91y+m3ysZRur\nfb2Rz6989OKLUe4a3L6n7LJm5KF9ofmAUdllN//Ej/UToiGpO099iWyGUv88\nfo3HOV8xI1BOaP02GU7oqm3BVGM1DpWuVTrSL/T+NUi9nsFwNm341N/b2xR/\noBus7wUAXzGY4qARoInikOLqSwU3ChSlOMU0D2MpupcFkpdUH92Wao5uuhMp\nbIW5+V6pDUTRNWzXMxH/WMmMfWf6FofIk3kTIBHz25NqnKGYxXK8xh36EmWl\nokaxiIGjO2jZ0KS6k3WKEcG4UtNPQEI2Rar1DVKI52x5LlS2B6pgm8aUZdLA\n0+wGnpGIlB7UHWN8DlrW1t+Ld4XAWZbA0reEfRq0y5DcFSFI7H0wQ/xFvKJg\n2STOX1cTdh/JSfOMkEtef7NKoGxqAhWEqUeHggN/TUCtkNb/J6abZkAtyK2K\nlZY+7CzO2G+RPOhpsWSM96PmGewWsn/hMItmkltbiON5ph1oJqNipAuKTOdN\nq2q2V0wpr/OZchNdXDp57Cc527eThjsrFf8ppY9fVg/HwRvWZ6Adnm5SQ//w\n70M+\r\n=Byq6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDlN3kSVEVnsl0QoWskLAhp65vtIeLJSQrU571jn3FG4AiAXS/krttUdfc7Tj5foA19cMEjeL58co53+dPLtWfyalw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606778815179_1606778828937_0.17695586971533306"},"_hasShrinkwrap":false},"1.7.0-next.1606782855121":{"name":"playwright","version":"1.7.0-next.1606782855121","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606782855121","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-VLpPGlC4yo0gjWhQfCEsbxM6GhRTeInfFADrwUCjP9RDa5t7nrtt5ixk+pp/Byrr3FedrumHio9tVnVKnQRqOw==","shasum":"eaad4fc7895ae89d4b6f44ae5bbae67aa230f2ef","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606782855121.tgz","fileCount":179,"unpackedSize":19049936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxY+WCRA9TVsSAnZWagAA+OIP+QCUqPw3r2MbwfjytVkJ\nSM67RPO+lY0ps9dLhMwgczoMBT93VkJbLJ5NqhCIhBl2ujCYVneWLsseeOqE\nq6L5URpwS1r6v3EAPP6xn2R20ZL0tj0PTk6vlJSnGni1bkAPr5AaY+6peS6Z\njN0IWHHuYvzgeXMA9FT2IseTABPf+hLMmOoNY28n+HNFmLm0olvB0YcB7c+U\nLYj1m0Qwj9BhgtLPrHdg5cy4NuvnHH9xmJcnrMrRG/I9SNrD4h7J5dVzv0Pn\nopwBw800on53PbqsuuTwunN8oTx02pcbiZjBVodTRCoU4pgum9ppCkYRDg7U\nvzVf6O1nqZnY9yiWqJbcK2wTRo4LMsnG5Wa6wnsi++QGkQl0oN5yHoP2A1ds\nOa+/ccVhovsFdCOrLGp3+NYTEHjcsiaqm6ozVLaIBs4+ONv0rTkKWUz1zoMd\nZ74BkARgVXZHXKlR4et93bHqGnjbHSmQ1jkn7a+2rFZ/K3ZwDvyIpiWhjrQf\nR8lEYNamZCplh3AS7iJ8ImdocHM2BXP8ybDcBd7jYgnAhG5AsV4idPEYLMQM\nTnKVY7J1yIbehp7/tR+INmy3y+EgqRRhC+XIXbrdsr/qgvjEOSUE4DcBa7cl\nElzseZI3OJW7g11a1xaO6dhxeZxougCqRrIpaLvua5a6HI0OsF9jGRR+6Mz8\nTydZ\r\n=shq1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdt3UTYOvWDEzB9l+uFTR58PpC3vHb289rO8dwhGI/+QIhAI3+1wXywRzduFJdp6P2pWBvVTGgxH8S2NQcWNFwTXo7"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606782855121_1606782869832_0.35491360051609777"},"_hasShrinkwrap":false},"1.7.0-next.1606795798646":{"name":"playwright","version":"1.7.0-next.1606795798646","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606795798646","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-LIxE6r5oQXKMY7IX8eleTZ1WSgQtRlAbwXhVjM8Ej0pw4czEr25p4FqvXu2UYGlj1GOQQ31O2Nh/EXrzGgnmWg==","shasum":"1828fe54703e3399710a7f32282a10ddce47394d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606795798646.tgz","fileCount":179,"unpackedSize":19049936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxcInCRA9TVsSAnZWagAAHekP/jMueI4hplhbpR6Sxnb4\nmaxzf+CPB+k1oeZ1uz8gatRsGXX3n9h+HrDDvFeEYhRVM+Ktm5aoFAwEc/Sz\nOHvWmOkwzau6lz3b7t42y/VbhzHAcGH9w4T4yTSy8WcexTC6dK55XXyIFFA4\nkB+e8Gqrx5pSVD4KlcBxmhp8Q6/yd4f2S9tZMKP93qgn0P+K/sODwHkkIY8+\ncH59AZYslIqDRNJX0FbcLoYTNi8RVM5XVBEgbVh9zi0Hk1R9VH6Y5dK4iM8k\nvg8czTR+uxMfC+mpeIRa2nZgYcFU4KDC9FKHMAowPO2fsM5txKX4uEwpiuz3\nS+sxX9jYaZh2nmgrbM86Gkifg26nLW/BB/XC82FwuKxBmMqazWWmiPFToVkU\naOQXol3WHNW0gI8TbHBSIBvZfMVeSn3mL5CW4UwF+snu+RBUSBGdIOyoG1lz\naSYu4zDEt5JFVEE2p3Jc17SswK4O6n32LkQn6Kh74ixCb8Mn0WjEy/Ugft1V\nKIAA+DAGYS8WHwUF3BNf2r+8Kh0MjdQlZsM3+AN2Vv5v3KCCVNt4jDOlGJET\nj5KC/pKvMB9f4SP8l3XlVEQZCNvO5rSl3c2s28tfD+LyJuXlkUpMdykaokAb\n0OgaGI7QcOeZ/CvOJdZIxqIl22iuPuUh+nRHQuGXdOfw3RQuUhAVZaCLRKtd\n6M8p\r\n=HbLw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJVZE5yL7vIk0zeNLlReuDZID3cRuqjnDvXMsJAMH9RAiEAoQ7In/XqMjMdpa5biSt19eFpHv//RcW6FEqhfgsNKxk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606795798646_1606795812179_0.18888968104984794"},"_hasShrinkwrap":false},"1.7.0-next.1606829330233":{"name":"playwright","version":"1.7.0-next.1606829330233","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606829330233","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-U+6eXO7tJCYBCvtCfZjGxzIPKwsfMYbhsr6tBf8nYQT0m0LSJ7lb4PQDjZQu2iuL86PPsj8Hz7tXlIRwj4to0A==","shasum":"db2c0cf5494ccc5070ce390455e25b9d8c9ecc92","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606829330233.tgz","fileCount":179,"unpackedSize":19049936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxkUfCRA9TVsSAnZWagAAkVUP/iAeyryscSVBq+lDpFma\n170yahavdK69WowCq6Sky0ACVc3lPkZv5ud7T8XmQjZKCN9GTSam7Gk2anb9\nOdC/izKJo8UBZR8Kh5Zc2yzcaUYQWiDHccKca59DibhlFO6Ixz8qTB7rs1gB\nBqO1PWx4qOQ10yO5m9fJ1ds8vqST9JcT0m3krMFSqKZvX8yTb1+rdpXI3wne\nYCR9WjBA//wqPRPd/K53ZOEnuQg7FfrgXvIFpms53zV5CvDTgd9kt54XZqpd\nc2mF0kLr0JdEOo6C9rAWKGMww2knDrPY7XEMdLCHVDWd1ASufJPCcdmHo4QL\n7VjTX5gKYaKWs/HPR4qntMAhc8R5uG5hmjc57v07+wipZJjn/kf7ygZurgvl\nTJB338YNQAv4ZOICaiiK2LXXhIVLMnMuO1mKMrAjRjno1BeTWeB3GmjBkjAy\nZ9KsnwlF5zARJucnel17qpEtATPH2UaADDBrcrSZECuusovtuSWN0enWn+IC\nyaaxz9jEt1jEqxWCSxRzgHpIdO6GIq9d9k7e0J/2psMDPPSWBqBLNLc+0JRa\n/y9ynxI+15aL+ApWAcnN3N4nSE5wQXT2nllSqdz9521FbLs6Zswlb2TWbDDX\n1ZL/L8qcxSkMF2cHbC6ckcNFxNMpXf5HLzt9Wt8CFVJ/DAQafoTTHvAboStn\nzWn8\r\n=dzhg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZNJf+dTDXNQ9MHrH8bcC3HWvDI4lFolinxLdbl9FvmQIhAPVHPtIV9S7Y509D+Q2AND6k22wrrQ0tbxt3a6eFlj7V"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606829330233_1606829342645_0.6893511179065313"},"_hasShrinkwrap":false},"1.7.0-next.1606862542748":{"name":"playwright","version":"1.7.0-next.1606862542748","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606862542748","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-XJokzdzMyBFqlYWvAa9bcolYHwA0zW+qSKUHfHz8fv2q5Rm6DDlDhpuDPHUqdcbyTjMrElCTEgOK2pgITPo0XQ==","shasum":"9bfd4a12b28a6fe31ef974ab680f025f2c6b5dc3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606862542748.tgz","fileCount":179,"unpackedSize":19049936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxsbeCRA9TVsSAnZWagAACGQP/29jE6PCKCWvK4idoIxm\nvO7Q3UHwyvxF5meX9hZG06PcOxcJ+gfxTkyqhWXwX5NmlTIxAKAYlMx0EiXa\n2oZAWikO5LW5mDwhcUcEp+8DtcFAKyeiINR6daE/tjlk88YcfscWiox/TIOO\nnKTzu3ugeCxS6EkBZul2g1qqQgnZAWaBf9nOdx0oxW+5j4JjAYQc8PsGj3B3\nTaUQM/Kh2Hrlfb3TRStyZRvZsP3we4VsDJgCXmhxh5vBLlOCbw+oA//ckF10\nrudjmWvCA0if6pqZWSHyiEcN2UKjW5cYJrPfo/hEik3VVdxfSpqIUCzL4yYL\nmF7wlf1WgnQ3bV4DMLOVUSJwC2rCWkjcd5h381dWFf4IZBebCT2JojXclfxq\nMxhKciOK1+rrJx6cTRANDxtfWOcf5gag2fH7yMSWpOl/RvKGKcy7v9TbYxPX\nOyVIaT3eYatyxEyQXT9kooYd1GOWQffjafIKxVRKjQs/hzFVIqtmHRbYPrpT\nLl7wx8TYCRMYiAph046/r8zeRK6vQMNb9mhQBNUevs5eIlL2JaNOMTwiQSmI\nJoN7vrePb8aWA+kUXMDDnQQLCUN6+KHgSZ5YR4AmpuxNv2FUDTRfnPiPZs8X\nEEJcC6eUiXykSUZSS6XvYVGrOdNnRXaOF0K5qtok6kEzWnQXwMhZ3ERAvNLg\nU2Np\r\n=Fn5a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfGuHKZh/WJlf8VAMuOxNlakA+rNx2L2CSDrXc5zPGawIhAJBhrWExtsPIH8/hV4j/tv2BpyvtI3aMHoAFC8SvP4iZ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606862542748_1606862557527_0.5029242666353659"},"_hasShrinkwrap":false},"1.7.0-next.1606925905854":{"name":"playwright","version":"1.7.0-next.1606925905854","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606925905854","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-XHymXEdalso0NAtYclNpAHIsQWbY+Vqj6P1643ZoBT08mu1Rdw6THeKs7+JlrXthxE0MkY/kM+AhjWLnGs9BvQ==","shasum":"3bb1405b98cde68cdd370b6280384308a2cbceaf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606925905854.tgz","fileCount":179,"unpackedSize":19049868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx75hCRA9TVsSAnZWagAAeX8QAJr2ln6WJT0rLR4OQxZ7\nHqFbhqDgRGfeYfeE7Xcxx8fC9Bu9mzFkeZrtwJ3ixAQM+KfkgkvnpJKOuA73\nts3BVJoL96yck98nSxBOpn7GM+rRGp+iT7Y4szO8TthOMt15nSBa9C9zmDQM\notcG+bqZm+9LsePquA6+UpVln5oykWQOXL8dQZw8X1ezOLXOAFeaUk0rq8Bd\nEfcvmdV15lVNmHwRv71uKhN3PnJKI7ZB3hW9zD/xRtjueh+KfWn7NPiZuqZl\nfwaNZW6xT7rmkiLEcfvz3NRQ5WMwunV95dyIvGUV/s1d+drIQ8Biqc87KNLQ\ntnrFKyvtiyeEgHerEPWcyBM2z+DDf2dtuAEHSF3DvD3XyOzzBt4+EpkZBISf\n3jWPo1n/f5tlz4m0T5Q6UrbVTLkS94rYuqeubHdW8sidhO6m2VEssHN/RsCN\nBMU1y0gROhr3JCg/TCBqktBPeME49N3W8Y6lC5KOlGzZBZ/eyxHRuI8dARY9\n9JfH6ZLoBh2Iw6SqRLux88gPqOLAvnhwkhFR/61t+UIrjgCCYUYa8t2dZ+6z\nKwv9oFyOwDgLH36Jf7mcA1yNWLiEvNBC6xh3Uz7ZoSBFopmnLk0Iu18xMR/h\n5CpJz9YCCCtz+L5my8juFiUZaWk71rZabnWxhYQ7lTNzO48z1GtJtplp5Het\np9xG\r\n=d1mB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBEFfn3erG4ew7b6F9Pp4fke14WSn+8d+hHel9vinnMhAiBtnRS35GoA2yjrc8W2a/8h6IxCD2lEY9o1g6lfUDk72w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606925905854_1606925921079_0.5173836806318399"},"_hasShrinkwrap":false},"1.7.0-next.1606936522560":{"name":"playwright","version":"1.7.0-next.1606936522560","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606936522560","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-JKN3xtDmfALrHRNJZ2jMsIWauvwZ6TvisCBF4Pl87Ez4kwDdOu6Mn4wIP4rYENPxNgAVn7FMu1zxztmx9n0R7A==","shasum":"676a251055cb98d041c68bc7ab929081f602032c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606936522560.tgz","fileCount":179,"unpackedSize":19049868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx+fbCRA9TVsSAnZWagAAU+EP/0EDTUx09tr0xPE0nCxm\nhbjHbTAf8gvj9EX7BIRrLUjz9UI8d+wFWzgUNxTytacNCU2uF5ZCacD3vjVK\nEuk9my+k9uketvJLIT7QIfi/t2YSCwslbiyTs3+FftWZP7XuB5omLJnQ4L3d\nOBTlzftb6TK8ikWSMxK4SLxdgqqTuMNq2ceSdTWUqIvbq6LPGzw1ACrZYn0Q\nBLcUDuDGE+bqEbCKbDTvrpT8Dcx2qx3vkBTN9kCTrlTY+6l5cUrTtlRpLvQe\nlod8C/IFc9othBBBxy0PAdNrBy2nNFq7Fi8ptasUigsJI93psh7513YacSf7\nKfMaB7mTXbc4QiVQ/EAj4wP+z++IzLy4K/ZRnJInGXmXKZ9eDyQC1aNrHkNB\n+2BulbxSbduH5jYTCUKHwphVeztLKb7UHUpS0Ev30Zor0UD9kL992VTYkRfA\njHgg3lEZ6pBv4dap0ZPfhtWtyGW9tsyd6rwlnkYrXWIChyvsdrYFopNDrCQQ\ne/AAuFBUwUhoRQ+SOShjy5RsZ0KhcTZvuvJI3kSQ3mouC+uhsFIWT4XLOK7H\nYS7f6ZpXHJFTJwjoVkWqsNQ8dUlhLZvLQY8FHAdMdbGKncXUEhjgJZaUf8AM\nBRQHzLnB9YYkLweO3Ig31x/1V9rv2kPUH7AnuXb19Kh/pt32GfBcRrncJnMI\neBKU\r\n=55pH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMPc1yg/6xi9VIjSnLlvgfDdGNnF6jCsNKOvIVlCOQpwIhAMYHfgt1RFV+LiLrHhRs5GhmdBlc2e/1Uc39HWFDxe7M"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606936522560_1606936538748_0.8900169863749712"},"_hasShrinkwrap":false},"1.7.0-next.1606945565891":{"name":"playwright","version":"1.7.0-next.1606945565891","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606945565891","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-E0A4YFuqmHU1Oo4wKlPhxljBojPYZJGHIYQDdJbEZfXRru0vtPepFk+qjEyQIl1FTn8ziJaMzfLNm+ZUnScnjA==","shasum":"b2b36da9d9955edd09dded22be959149e25ae1cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606945565891.tgz","fileCount":179,"unpackedSize":19051211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyAstCRA9TVsSAnZWagAAg8gQAIBhlO4IPNQqPAXm9JzX\n2o9kIDeRBkokZR5KIpo7xDuJhpWhZOIVYsy2IZAM59uDAT9p8xQ9ck/QbyCx\n7XXzEdeDRBuSYshQtsOk5JSDcZbFDv2SZyo91Q1rFViPAYWRQBKzTbG+L9Tl\nS7HGzxIWqaXjpwfa7VnrdVFN9ATDlFmmfGpudWIS7Gs/n3c0dp4AEZLCUsOT\n8KerNW7lfGp6pAJ/FJnZJF5N1Bneh05vW/yak/6PFW2oa3cbBIFsqetEpEdD\nhx0/lC4gnXBCeZN+WPis3+Rp5YS+yEXB3iL2/lsw1wSRF9vs9l3mGOgB1Bl1\nXnSzgjLI3KplfpJTidNAh7//Wrq23Rc1tBXT/3k4NXHQcL8Vdwr3wMT7tfqy\ngas93WDoXJUpV4YwXn31Ths0i0BLRN6erSEGEWuLZY2TGsi0BEXSFiC3f0Jf\nvVfYupgoly8MqngSveIpH05WbtPNAbOLs/9W68mZbXRITlO+xfCCMeYTlu86\naDOYSkbFzJ6ZirxK7higPwqXslSD+dH6oWQgj4gGaGo/5vcf4WXdGp64mzsu\nzyHhvaaRMaI8P0N8CVFW8JuR+zCMondowMwsXoPxX2qZYEjkp5qK8kL1n2Gr\nXvPFIeNOPmdpE00xMuiDsyW1HA8zY5dxTzM2pipUC7yVPtvlh6eiIjGOE9yl\n7iuq\r\n=dK8n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDv1fvnejQGALbV9+MmtwKvkdkF0GtTlb6TuyNMusQfsgIgT0cnCCxU5Gbq4Z7qKLw5dHuDc7IvaGmn42xaMr6BYX0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606945565891_1606945580068_0.9552798478681859"},"_hasShrinkwrap":false},"1.7.0-next.1606945973781":{"name":"playwright","version":"1.7.0-next.1606945973781","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606945973781","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-PHE4LR3RTPtLXnvNd/83DkUPrRhy/i8etmmgGLYxRxpXD+qkCOc0O6KUwbm1RlCsOi/b9tnmPbt4MkuQaupDSQ==","shasum":"be9cc2f33bcc7727c146bacaf1e5bdb4e8ff673d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606945973781.tgz","fileCount":179,"unpackedSize":19051211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyAzCCRA9TVsSAnZWagAA2KIP/iiZr6617PkRROUTRXBO\n74C9g6i8rx92W32wakKz0s8/iuD0oanZGsG3Rfi2aWRltQfhSXvUVUl0fRa+\nw4mb7/b60IthYVk3Jd9YmEM648hcBdFFVv3Cn5ly4Ue6yn49sk1La3ZGRNPT\ntgamg++MEtP9N9W2qajL4/ZrXqSNFC+reQ5MuztrYPiSthM8lfMgzM2m3UGI\nB4tK0f4A3jb/hi8T2+Z8N1sViGjZoVeFW2vruE1pAAmfDDMF+chS0CTTi/B6\nFj9TvdSzBGArWV5+8J5ZHUuVrGpJbmKoWx2OInySO1lEyNZX3iQALwW/wVXF\nLN6aaIDdNebR455Kn5oYJhoqasF3/QHI1sjj4cc304pTQvHzv6SA2IOiCchw\nodftMb3E9HBLIEvQNYxi65x0e6P3AXaEyjS14gqsU9ZnQTfE3V+JWp7uX/Wn\nDfPpsGB8zIsUv5+Y53SUR3zYz9lut4w/s41hV5J2U3sjTL+WpOFJoQ84p78w\nsxt1pLmRxbvew/+aR38Bdl4uVjFl82otjZFLxcENL/jXFTokUM9pnx0sn1R1\nbJDjcYBjXLHJygYzTR3mANfCqNdxazCs8qIvaiw4XBNOMr2zObZzvJH09tOV\nAMJurit0myXTvhNPzy1ThR96MOAEtO7ykg/gmQlg9rBGck9VlNXhiACWBDBJ\nBkgh\r\n=aIW1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5lW1n+GYnJ1wqxbebsmzYMrkRn2bE1Yko1B93Wc6ZfAiEA7/F8404nFyyKON1kODFM65XiLqvn4HyqoV+pMBxeI/M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606945973781_1606945985631_0.9126726407575316"},"_hasShrinkwrap":false},"1.7.0-next.1606949135693":{"name":"playwright","version":"1.7.0-next.1606949135693","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606949135693","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-27scbpsX8BbXlc5oIq2SLOKkXfSIRYsffgO0Oflw8A3x2aPDKaO5ny74sMqhmrYGMdPe/m0ESUCUBtWpDjjOiQ==","shasum":"426a42e4bab6454f963c3f8ca53782256c402b0a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606949135693.tgz","fileCount":179,"unpackedSize":19051204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyBkdCRA9TVsSAnZWagAAKEkP/3taINosp6kIHRnr0TNH\n5QxrsbZQZGY+qbvQxy1lnXrhUmgSjaa7O5KgVJg7u3vo7qgcJczcyy0y2Byf\nuy7aVYvWadTcUsHuYaVIvfkXLXJtYf/LZVj8XxihDk7wnpk1ifendTIphEMB\nul3cNHqhKJRxq9GGPTcHZgYTG7r5bEPYk4KadTJHg94cU+H08Oli/Qc0oMQ8\nSQ2RbORthpDp5twFnAxtXPbBml4+4JQ8b3l31v1c7y5dJdq6iFcoSmlwDNu3\nU1ha47DL5h1HZzF8zAOmtWTBs5BgGCuC7FN3G7fq8kTJY8eHKiQE3VnK6wyZ\nMNdfBPOpOwU1AnegGRB7Vib4SMLyDH8W5btPe1SM75x7COd1KTLtc4uP0Y1b\n0s6jwqTH2Uph4sjvcurQTE+wav+WRJ6rlGjRa3cCYeoc74/T891OJN2X1UrO\nkkhuEtCl8LODHYWUouXmx6codcJOstHx/fqxfQy5UKyJBFdTcDu0OmJPxijh\nDH+XZd3jNRQV7MoGzwcnlIt+T5XtNskiqEKxUZAoBZb564QWMthclg/MSMza\nfQQQdjNmxJIR8y+6+Q9ZjX0miePm6RRdUjnHPIq3N73Prib4EnbotO+BoWvM\nHBCtmF0im5SmUThYMIPUsLcauo7YTWB2SjQvDEpblHmL0Q+v0cUMldW8HE/n\nX37p\r\n=AzNV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfnvAJDbqtRX+mIO0yvMeLVYw1O3IuzSvGdAmA81SnkAiBVSGekFh2vF7e0YJUmcWalCxuk89ANC4hNeSBDoV6Nng=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606949135693_1606949148640_0.6083996945432826"},"_hasShrinkwrap":false},"1.7.0-next.1606949298827":{"name":"playwright","version":"1.7.0-next.1606949298827","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1606949298827","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-X0oW335nUzAqtUupusxeOuu7ApEq20WubKbkP5ySpkADYClyxVRTViLNwE6QnQ89GUrz8dSw7aRGOZGh6UyqqA==","shasum":"51fb7d64a87be02aa4d447b0fcb73e87a4e788d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1606949298827.tgz","fileCount":179,"unpackedSize":19051256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyBnACRA9TVsSAnZWagAAX18QAJyjzVqBMJQLtfV/ds6P\nL0CiyxcEMXxJF3RBPKG3/HPZY4bHIhNMIMuj7xrLibYT+5Arqs8Clw69C0Pj\nrcMurzdpdbf1lqi5zqMN6F0u+gw1unrz1xGh/V+LDwG+O+Ffe+/VxYTYVWJF\nEg1mtN/WfNXa+0FrU7wMA1SaEId8SgIK20nbM1ZiiIRWhOW7VpoluxyIzcur\nejl96/FGvHr7BtV69LHVVGfQeLO2Mq2KXBNuUixZk0a/fbtu3kUp/CQjzndt\nnDtnJWkpBgAW4XYpsjtYYmGcK6800z+WHRmaHcKoKQSb4ABbi1LUMWIstRYs\n5oiOkHCEcn0fKZUOXTeViVvAGDH6xlavPJmkwKZQDDsI5tOmkr1A+uyvSpmJ\n+FMxTJUF7FPokJOUFLFbwqQ5coy0x4afLV7pth2itCRSFW3XVibBFne4u0LV\n0GcHz2AMNSrHnNh9SEtYxvSnorV32eT8dyW0363zlusFXTTaY/p94LxWDbSY\npzqGDiM1ymtJyEnOCU7G3h62MBX1+bHs62e/S313Do1WsrpwEAinMj/EDBON\nq+Ueau6YZYkZNVTSD6KmXRtW2zjMvgBmBY9Qf/inTw+/I+fNqq7WjwA609Gu\nbkQMmmBHe7gUehfP1Ci5RlFp2JTrjfsNByqBdi5mXqgWfok29l1Ilty49nlO\n1IJ4\r\n=4VVH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5Yjz1Nv70nfclwSFDv5/PfpVyDlIp48SZW4pX1DYlewIhANSuBU/reYdvpnTGDGcRy49zSFLEMgDTlqysA9LgiZ6o"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1606949298827_1606949311885_0.16475742941452975"},"_hasShrinkwrap":false},"1.7.0-next.1607011851659":{"name":"playwright","version":"1.7.0-next.1607011851659","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607011851659","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-0OxLaWP+USdA5n8WKDUdK/Oz2f3zUhgLgMbi+pdp3k/VuCzM+9v5Qv4WggEZ8zw0JljNm0kJbDNK9rUzvcUdLA==","shasum":"c637b0eb4241e7be7b1d7e6850145ea63514980d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607011851659.tgz","fileCount":179,"unpackedSize":19051256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyQ4bCRA9TVsSAnZWagAAXyIQAJruv15heeiFw0rtUYPN\nzadtw7lre9so4VkWB3hlDpWfTRVEUqr6EGtLHz8IPHQvhySgXJpBhW/fRDem\nAMhnLO8z4DSrgguYo6vlxC29jdKNSx7NERVhSCD+vSZFBY1PIn2+Dusj9biG\neXfUoLUcdllY0IpkmO5RcUpXv4mjF50uRxM/DESyacK098l9gihph/jC1P+y\nJYIT2GfYVv6tEbQ3+X1bmR7+PGTH+9hPn4T4BPhDlPSPaslGqJr7RqP/zRda\nD4naGoPEh3rNwGLiUV0EsT4gojfiilNizua6QOrPDMYiOLPjuHk529dQQbxh\njnvU15Bnv/5OYXPBNT/ZrUNgfNM4OfoWB1HLgFZj8yM5tKTi29h53XtgZAQ9\nuuBAx8mdqrvlDVuNFa5cEj5ohPGDa37CfZg4M9U75++wUqFBBqFnFVbUZWTL\n8OLaddpwI2N3jGinNdIWy/+UgEWZP0kQ6M8nk7HDm2K0movGZJsLKfqlK2ox\n8rmzZEknOEc15DWbdhNkBebXqT5d0Qe63KtIhADpihJP+ToJCIBxhg57URqe\nnmWKSfYXMn0hYiPTP7Y6TFE7/1PacjgdfOzNsZ2gGz1aZIMDdPfQgB3SVNvA\nBLeCtXP1dAUT3U1Cse3sfneZfdPKIE8Se/DLhVTwUkKumqb0Q+aRHlRd984o\nbbkT\r\n=INvy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFKquQOpScV4ZKsQ9+Sk7uor95NNQm/g+aFERyFn+qNHAiEAiph+uMV/uS219S+Xjg8rsERDcqb6s7uh2lC5HUFWxbQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607011851659_1607011866466_0.47193446687670537"},"_hasShrinkwrap":false},"1.7.0-next.1607015662972":{"name":"playwright","version":"1.7.0-next.1607015662972","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607015662972","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yeE1xR0Dxf6swn5InXiscnsPX8yeHvsVaJllfIbsU7vTOB039kArTIVsHNLuACivOq/LQIenm/st9EArHrYiYA==","shasum":"a0cd7430897463af63a91b55daa36745422e3794","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607015662972.tgz","fileCount":179,"unpackedSize":19050223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyRz/CRA9TVsSAnZWagAAfFUQAJ9Mr61Sz2Kvf0cNZVB0\ndERQwUKXUvAU/J530PmgmDJb9EsvyRr4URCjk1MqOc53zflXpVo+sOtCNQQO\nm0iupvd3+hbJSVYDGYpymTGVPmmUcYQFrxu4hX06mFIrejnYjsO/k/EKK8UH\n8d0wiuFo19vH9QIQruc4M5SOxkVTtt7kUgyvOQU10fPIPlv7T8F3/rH4I+4/\nLEpKr7Y9n2fYWhRV25XHsP5pPiXeQ13Z+hE5P/DLWOfy7Ix31Yw0vTz1DZvN\nlmxuVXMMCc3vJXDqiIqarKcKgYoxOs5Z8ci2gm/l+bEUJxHguXLo5sEqTvb9\nYiEHkV78P7hyLVcPcj+B2o59hmxdiC35OtrjWJ/VlPnA8+yShajAz528L1tv\ngnJJuQYXTBV8x0cmoXq/xOG+jo5Gg1YEXtwggRY4kRG67v8Y85/Wm4Z/z+AI\n/vU187TrxgOfpnAs7Zjl3teP+THgdIMInkz7VrIckKUnPCp00kSrdeesNsET\nwRoEvm5Td//XhiWVMfjgY2+VJVSAZoZZlWLnuE8XG/KgnkBvqpyIwYHclRbY\nhqrozrgY3UgphHufzi2liMA2Jv2MxcwS/WU6WKZ6XD5r60rsuT7x+RF+EzS2\n+eNOfsUOWs8MvcXCJtSKziNKkFp0i3c5GEnZ74X+bfa0FiIEDzn4AtDXJiIn\nfWlI\r\n=AjA/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX2pRnBKxoyFvKcnH+NcAmY0zZ/wWra1ZFYEIpWws/GQIgF+YCVSAFeAI49kCu4tms/Thr4hFgy0aAcjnHQ1jMnOs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607015662972_1607015678824_0.19841445641724142"},"_hasShrinkwrap":false},"1.7.0-next.1607016226459":{"name":"playwright","version":"1.7.0-next.1607016226459","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607016226459","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-DOgh8PjFlrnNfl5r99KjhvgWjmB+sqgHw69DXiSNpE1w9KLetJdv8GcVJRx4fTR1voY7At5uktdJrfthMl494Q==","shasum":"ea9a1ad650b2825014b07977091c153adb1efb7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607016226459.tgz","fileCount":179,"unpackedSize":19050266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyR8xCRA9TVsSAnZWagAAam8P/i7ghMipaXaA9dwbTCN6\nitWICUIKyeKMMju8gGGrn7wHxVKotSTC3VtYnn8gqKENA5kTs6ist/j0ph8R\nusI5csXKuslCFTT+8kxkOtEvPla42nszYUGA5JOi+KiErUc9jbmp43UukbPa\njG/OH2NAKtmatsnIQYHyDzWidS71KvMYLnjZyIsXmjGequ+wLW6vKbE5M5jJ\nVCiQ3tZdtqy06fiyAMgej5+6FL0cvYvytWiAh8vZxb9JqbQHl0Gp2dWsqJLz\nPqzGYzTGjd77Tx84YEm1FL8Dzq7TYuOz4murZw5k91vglJFIKgocxs8j7rqL\nwnTKERh/NrCGwSozYNJ+868VkXofmuAnOoH/I7/y/2U9CGHMUEzznVUQQL6T\ncZpbQM4PVXjPl3psaVabiC0gIYvxEoFpKn22pQ8nofSB/qZNv4UFcow2/Qf8\nnS952k28aNhFRWDJ69YtNz0LrWaEqgJl+R2baRB2IPr+/M1bVxZ5ta6Wq3Jp\nV6iAaE1iRCLxbvqcbY68UejfZgRsOnTNXU7+6bIfLmbghXX77SKi+PM+e+wn\nhobZMH6GRp55/TcHhfa5YLu4EsRYipsMP/lXXcNRzMJ8Cscv1hxLSlmkBsgL\nj3pF4zCtvKkph4MtEF31VkY1Ir4T37tY0LFkxPU6/jB6ZTKpFpmyV6ztQKD2\nJlsj\r\n=ZU+R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGA2nR8vYcR7EL1RWrTfZzTp1vCd+EtIW3QjhVaiNnu1AiB+HcwueP2ZTEYhOWuekZBU7fHVP4Q2oWOk5LcPwHqZag=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607016226459_1607016240396_0.700076458755541"},"_hasShrinkwrap":false},"1.7.0-next.1607021138716":{"name":"playwright","version":"1.7.0-next.1607021138716","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607021138716","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-piF1nzsAuOk3ZHrpTZXKBDJ9gali0rkOhoIygSB0bhTSSXVK63VUN9O39Npxg71XeqTryJRFOzV+VeFatdeDXQ==","shasum":"a1bfdc8629327911951f19915b5f8798fdd7e5b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607021138716.tgz","fileCount":179,"unpackedSize":19050266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyTJhCRA9TVsSAnZWagAAKlQP/RUZXa7+fe6YrID1jNl2\npSWXvgDK9+ZgMeIVcm9Tx9ovGW/+KU1MwxAk0gjt3KA5Or+ftUL3N3TIJcz9\n7h390nMyZS3W7NlO2dikFPwXpivU2DnKF7HclbbDRnCuc+HkHLGJMxMI2Ppc\nIo2c3Z/YhrdgycWb2qjQdm/p/LE3SK3WzONaUgyMBQLFVtqVM2P0tW/uLgCk\nuq0rugoeLdaT7yiOsJUtN/Y5iJ0TuLX1idORsicEQRMUeIO8wWOoxufpfRNE\nTC9TqWhUMo9pHq9lyCe4+KbXDsBfa6oYo0eGRHiLF6Bkstub5oOm/MIxTQKo\nHGknWu8UzwPWhhWs3n4mBk1HlG0N3OPZKYG+erFH8PzO1XnTCkyPht8uUXY2\nPRu6cMDVk4yIV5zZhv03vkPA8jIDhxVam6SCsax8urM9UbaNs0so5f37hfws\nFapzlqXeZlYXFAy0WCfASOWYmgNef0T6VF+aSCe6R8uy+B8BMb5WSnZcgOjc\nDh3phOw770Jo4b8iqASMA8/26UpImGswKKLSv6gOB/hkSISru1zK3tgYE432\n7gBVyhlEQOqn/BN22fSPJ70Wb8Lz7GbILIrMx9n1WF5xANPuQc7NM/PRYtCm\ngp1FfhhNd25mBUkNphkGt4jk9bn6VAr8zIKK7jl5GwXhkZVz+GuweajqWzry\nuqQt\r\n=OAwa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLl0oefA5vEaEyQTT0iL8SrC8GulUbu7BLibDi0dVPOgIhAIr170sq3W+ahpt/jKNXLgwbm0sGHM+7eZKKPdlLZs9n"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607021138716_1607021152150_0.9816989902058422"},"_hasShrinkwrap":false},"1.7.0-next.1607022026758":{"name":"playwright","version":"1.7.0-next.1607022026758","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607022026758","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-JaybqTVWsDbYM0RrApGy2y0VlyvQrmRlOmlP7IJvQ4TO0kHvE+cUEniFhI2adDORG2GRTjs0dg3TFBwHeo70vg==","shasum":"62f1b33ca35ee63822c2e488d16addb44e915f12","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607022026758.tgz","fileCount":179,"unpackedSize":19050300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyTXbCRA9TVsSAnZWagAAHK8P/iEraMjw0LMZD9Mt1mfZ\n50E9GJAHJ9889yXiVccENyPTyAhy4+yiZPaAT1Ku/tUMnlYWLMjuOqhaCNQV\n6TB8QlwapQugarc7TWOXoWf1qcDAFFXGz3t74whRqwsaj+yiPPfG4ZNaUxsJ\n6SOzfbUrsaa/gjI2S+iH7Dkj1L5DxaK7Heudln4G5LmmJ87ChZzb6ZP4pzcL\nX15j7mHgtM9gTftrZBXD2JtMjqvhu08izThR7dSYmOfShaKXHlZN98Tik+8j\nt4c2pvmIjpkYaeu068REx8l0eG9Q0ciMDmc6ge6HFv/ZzZYGQhDY5swZ+HoM\nz5Y9OSarW06hkGwJc+ST45UHqEwZsFu4YaYok17mY8oJq4gR8dErz2tsCNiq\nkDBiVjI3bqPXu/p11AHBFty5dHVX7LIhiXG+kwMwmXlXU9zSVTeTMvzMTdp+\nmRhGeEThW2pAOlk1ObGH7zoWeuEObTwNfd+z008YwxLqajWj+HJ4U7mf9MYz\n1QrQhcqMJ0vJ3+rDIGqytcOq+1UHdEfPe9CuZPAbmDn67/fJ2L5GpMqitdEn\npEfKPhsLmhI9+eASFDUXRFTx36IC+ZvwNfD7JZ+zBGP9Vnb4bGTmsarxcs+N\n290q0g1eIfK94j8BtIieXpAeWhpkryyDPS289Gz6c6ADntfORPZDaX/ZRGtA\nD+tR\r\n=IYK2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm4112zMv73f7MnJRs946fvfPCokEL+R/Bb4fCt3CUQAIhAOZW4x6h/hIVN5FymgTFm+eWAuLzgBgzJS/S+Nz6Vd6V"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607022026758_1607022042303_0.904242660282476"},"_hasShrinkwrap":false},"1.7.0-next.1607033561101":{"name":"playwright","version":"1.7.0-next.1607033561101","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607033561101","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-GwH7y+KoNU9VyXH9gmFB/0A+JIKETPVb+eq/KmwaFedvls5HtTXZyxh0Wp0lLlElGbYiUEsipi4FfIYJAUGASA==","shasum":"0a628a9e923eb86e63fddb0fb5289aac14b7a477","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607033561101.tgz","fileCount":179,"unpackedSize":19049370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyWLoCRA9TVsSAnZWagAA48oP/1f9Ks0i93K2ce/8kWvE\nAKSjxJlfvBfOumix6QBPeMo+uUWE1UNNFP0nP496oTU1FJmjTEcmdYC2abGB\nmi+zvp+8ZtSQmbFvcAlHYQC2eGGc/sbwHTIcRTU+P+u61vv7IXNiBqLwpLQx\nwk7lseCYs69Ko/me3B71G1rWOW7QeSmXrTBWR2ZJWRv+KmfY+jm3biHdVtg+\nQQ822Izdx53BydttTh2BNcuF63UYtx+tZ+ilxvJZswbG6JEYu14Iq9TdEiBv\nB/P4z9KMGNUtVD6NsfcEboOhlAPgmUOnglZOQ2814LUpLbc7UsPM0/P6Bk4d\nWSh/5UbYrhdJ0tNT5j7vClZ95ougQzFF+c676VtHdehlkwq2r0XJxeljiEvw\nP/Mz+n6lyqNGHoMDzq/3Sl2pYyYhCXBJawnqbpaybVzHZXw0DaKrg6YUlJTq\nYbQTjVV7tlM1lKAQuj87gcA7MJ1UZ/frpfBx/YI6DydDzVRl8ecJONg6bggV\nYE135VWa9ln/D0cCczdoCjHf6jk4mfqMSORwWXRV38CPBwk3rft5chNo+kE9\nqE1HZ9/nLtyBBM0PoVCKgCiASqvl/ensAgtgz9L/zk1ARL9er2iSQH835wQ3\nutZ2x2AnfX3l2JaeLtlsOtifjZZ5n5pW1A0mGNS0hPQ+ord0LqV7ycZycmZ3\n8Q/l\r\n=SxJV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkbBpPey191b82/DrmjqdiRSpn69Z+U6XiW6hyJALs7AiBSFecy1lJTDRuuGJRxadRFZ/N3NrbycoY7TeWA1O84qA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607033561101_1607033575760_0.8346981947277228"},"_hasShrinkwrap":false},"1.7.0-next.1607040272341":{"name":"playwright","version":"1.7.0-next.1607040272341","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607040272341","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-pu3xPqV9EVw1mJhUHljIWX1qcDs6WEZk83kNh8PFt0LmPiN/JqF8PfdhUI2BYMpPAqDpNzmkCDj5pIqBG5pgdQ==","shasum":"7f34cd7d73c226acba9d928f2899e692bb23e957","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607040272341.tgz","fileCount":179,"unpackedSize":19049370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyX0gCRA9TVsSAnZWagAAhxIP/jnT+Wc57N4EJK1xYG5p\noU5Pg5HghddVNHXsxbGjUXhKbDq5A4uCyNlxR9xt3Hnp+jLM0eM9ODF+XB8L\nC6ak6xS6SBT7QnKd0uggD1s4rBOaVdS9B3AF5MDF27/xnkBE6aQhEhTudw9P\nLfrffN3e5++6ufi7/NWy9hXZpKgfleG4j3/7+O3xhGi/aELrDQK1jLO4RkFe\ncX6HCx5JPf/XE5ZlcRfutAX3elTYwbkmdyB5lqMcGklXxaMj9xzbJqWvw3gZ\nHWUSdlduemDR588ZrDKroa6kq2aoO+b6ctjxFBValbnK8zAoK5DzWygnkenE\nIDmGsUKnUN78yYsFz5jnc2zSXpqi2IgYCSTiTAqhsCZFY3I7yjfIwbJOgRsL\nVTRN3fnFsqlL8/Rh+7GCd5qiXJhzNBI52hBAjrzGknCGYZnWTML+QVMDQpQl\nm+UeZDC1drWNeFNTHYVXGEhOj0OBgPMhb0VrsxGBeL2jTbM4/KpP8IuACpsm\nQQE3IH/iJrmO+1IbV6+O6cwTvxp7/rR6+O5FS0daP4exeUtid0XU4trVvPKS\nEJpB82piZbO4YC/0gh9fcG9mvt5MlU+MyomyVu5jl8hDwd7PNtYEM8Cqf2aB\ngFCSjn3kwWnkp9F+Kx3ZFqh3nswpNr51rBRyIcH/W/gFMkzhNtZn5Box+xmV\nmNch\r\n=Y72N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4qUA8l6ihs2n+sAJnJL1l3YE7bapNIiIPtVM/AVs/RAiEA183IQI68yZq8P3z3y9WRhVF7wA0GfNLcpmKB60KVTO0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607040272341_1607040287064_0.5815995737426365"},"_hasShrinkwrap":false},"1.7.0-next.1607047655367":{"name":"playwright","version":"1.7.0-next.1607047655367","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607047655367","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-PkI7H1dpX8qPOQLg0KsU22b6aA40jfold4YhinZPptdocOd/bkymR+aDJihr/LB7SOzKDKdk/h5RtqFrfwUmew==","shasum":"68f8f19e5a98d592e6c4b626f9a47ffc3ea796ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607047655367.tgz","fileCount":179,"unpackedSize":19048898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyZn2CRA9TVsSAnZWagAAJyIP/Rx9XpT0tofFaKRGBH/Z\n2dBB0OJplGAsnESYHngmT1VkocNeNQYpKQszzOJitKPRtPVqd59VUZNRtk7A\nmNyU3O2oGB9NXElH3v0xw6ZvOwjaiCEPW8emAJgS7hn9mDQCkRS9B6pJ2aNe\nMGioDVAERBSvMqdJqrg/02kHGYkh+/6pqnwHYWdOGDyRN1p8XLywF1XsrCgp\nb5LkcEfZkNlWqD8uHPRrcPYgr7E8bO7ekoJOrBu8T2KLvWRRYxJXRyUyx+2e\npxWG8Gi4tCrTW8ICqtO8Cap8eFeYl8nlFzIc9BTobJehsoc1+84iKctOmur2\n8itPXcvElD965s1Grs+y9nULClAFTD/0PApuPqjnnpdG3+PGNRPU2nYY5BjO\ny4dZLyD+Lq3jdca1zo5XYFWxUR5U3go7ePhLw9uVayaox4K4Slrq+0T7YdmD\nfC7bJ7Opo9CXWpRQgYkPQtH9OoAkwk5t1W7+KemfgT4U3KK+klqIG6DV1Lp0\nI7A4TtbvfVM2nRbgPt+cbw1YxfDEM+XSm+Jj82U5nhrxJbn0UN1DwG3T7CU8\nBDWHucbDxDKIVJ3LaIjOVcN8xcENzKcM/KEG9fQzEeuRYrvJcjC8HBNpDJPp\nZWNxKki5ZmWPLRxcGH5aIKXF3B+s8Wd+itiblO9lb0BG44losdhtVFcIul7w\nvoyD\r\n=uLYS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpn8bUoFVi4yGJQp5tz+34oFCTqiHldKJLVlCZAY6LPwIhAPO/X6l4i+uKfq9J58pRFLlQsbjoNXYY7R7HSgTzah9h"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607047655367_1607047669962_0.040740112082750635"},"_hasShrinkwrap":false},"1.7.0-next.1607063453599":{"name":"playwright","version":"1.7.0-next.1607063453599","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607063453599","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-GmcT/zfU9//wBVPOG3zbgZ1LOfMA7npT3BcJs+CfG8pj1UWfgt7srdb4u8Rl4JR2BCnwuHRtpBTnwBt0a5FBqw==","shasum":"9056d8757224c8fba281cb13630749a90afedeef","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607063453599.tgz","fileCount":179,"unpackedSize":19049020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfydetCRA9TVsSAnZWagAAQHYP/2baayp2eKENMNpwqMqC\nSMg+j1gs/+0fm/Jmq/JUe2V/AgtkPIVaBT8902yUvpt5fRafCgAOQUrFWk07\nbOB1r8U+Ec1bnfpzOAYmhu8cXm+qEyhkTNZzxQno9CbjUUQiL2eUOSezAj+B\ntc6AuAl4jVcuL9OqCSvTwm0brdJpihGBWbeGNGWdxaqZg3E9+179HbQp/CJK\nFgdJuZlsrv4laiv3rj3lBhKJ42ES/qktRH7yCVIcgpBwTcBE3vnxhJ6nYDix\ng24t2RYhmLwvCXx0Nzl1GLrGqlDQjwM+3Q9HZ0oHLOKdwTh2ex+Wcp7XdHWs\nSy1bPN7PwmOPHOoIDM9VYIWH4aEASvP4+NVxW1/GjaF/TaSPvbAN97675fBm\nr8Wg0U+LpNGtRowIeg78Vu50EqR2uBbtubFApfAcqipSILk4KY4e6hSfie6C\no9W+d1fbmj6viHYLqCtN0I7KsT2X9X39g/Qieq9mIZRFbWTG7Fsr5xnysuGl\n8kWl/dblQ6fDv7aNEoKyQIf/azY+xXp7bxV3VgIDAIbZQmH/4hIgWhKBZ88f\nofj5d5pucu7kJrpSsTtUN07oEr1syVv95ctz6yjkyVuBAr4OWB+/e3RLbiq0\nLWLCtBAyQx/5TOAm0AXsZD+zq2Og4+LMJr27AN0ffICkojSbqSJEo0L/LO1A\nCG/B\r\n=GrE9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ/yi59iePgYs5Cn7pK8Xb6zyS3/we264DNrMVKv1OiAiBvtPXQ53BEijsFHzYhohugbYYL+1mGYB//BAnG1oW4/g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607063453599_1607063468620_0.3266741683381664"},"_hasShrinkwrap":false},"1.7.0-next.1607093595283":{"name":"playwright","version":"1.7.0-next.1607093595283","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607093595283","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ITNxP2tQ8I7C9fttMU5VFHNJlD4+q0lYgLimZDCvEXPABg4EbIEDppjS0/mWQNyP0HpmHUTX82WY6vUr5z1+Vg==","shasum":"ae3c162d28ff1f94135230c4763ac28414e8b6b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607093595283.tgz","fileCount":179,"unpackedSize":19179604,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyk1qCRA9TVsSAnZWagAAXoEP/jvc2qjnyWSPpiPifVeB\nVkhA1u+P9dCTsFPqwyp6KD0sGLBtiqjY6euuCTLL7iZ5J6oc8MHH5PLzxaom\n2QF17AMQna7s5xTxgPm5aRxwvjGXwumdKwhBKla9JWoSYVlNc/wb77NX50fd\nNLaQt6WA1ExMgV3tZaadrEMMddRUfdeoIsCPPiL2LdWZXyTjhPvsnfchZges\nXcbPMLFz+E9gzA7H2XcCc2SJlovnD13U1qc2ZS5uAkztj94neWONv29ggrMz\n5txO6hSJeUa4sfap1VjjQiQDVXHhNYr94nCc8tpnhu2lH8a65LWJY34l5hiC\nelbNsi7cClXHS37uvB0z8DY++vp9c43Pxmrg2X1w94BpfwLWa+LZda9ocsx8\nF6EHDHgYVC1rpgV6StEaRletcDX1tZCpAPLO6cFtgdaFdv+3iUm9V5eUOx77\nPXDFNp3BSVAzdCDVT2WAaSfzoNecCitExqP8xsMv064dVuvFNwZO8LRflzBS\nHUjBxjRG8sNYB5iZStQ3JdnJ9Wm4sYUS350teuIuTCtyL9BmiqrB9aMFiOWf\n1b3nouflzMgrM6WcSU0zPgHFWwxmY1Nt71icbfmAA2pduHyxp1hSUPRS0XsE\nA+TdLMi2qx7V994WLfNDowvWoy/jUI8uv+4oWx+aZsBY8udDfYTtPBjd5Cgh\nUkhV\r\n=/U4s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDI156U3eCDfz5xy6znhP37WQ9wbgZsUMD4RyPy6ihsmAiEA3Wu7PSARxDeBF6BJ7Nj1giBVsPJfVH7b4gOHtESl2Ks="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607093595283_1607093610138_0.1779994792186408"},"_hasShrinkwrap":false},"1.7.0-next.1607102024120":{"name":"playwright","version":"1.7.0-next.1607102024120","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607102024120","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-cL3F9c3zcRnj4AuIaz0LflbicTzVgetnb1GdtoncNwqc2gkCVAOEJJinB1kaUe5P7+zWJOqsH4JOfzALUiU8kA==","shasum":"34478c7df4df5a6c8540bfd673af521292e16d9c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607102024120.tgz","fileCount":179,"unpackedSize":19181820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfym5WCRA9TVsSAnZWagAAlwgP+wfukxbZb4SoVgqNiqyz\nZW3sBn1eQg0u4m55LUC2dn76kzVybsMoNPkIYMj8l+xEZKjsw1WSFR2l+yc+\ngBQO29JaVz6sPcR5Z2Pe4xxr86i1c/CrlyxUk5fvHwWEMUO/qm4YNQSbv7qs\nOUZsMLdSEzih2fyHSPsveg0WGHY5fn5+q0Hjxr9YLL9FBzsY1J/IbIvU0Ikj\nxK+5vvHEdVLETOC+U/+vfVZAbs4q9ns9XOXv2ov4pBxLTbp083UsmjxmEBaW\nWaK68AJHZPYGNKNMXFxRwB9CYHzEvqw4uply6AwWvwOSj9xTmZdaWA6oY4jN\nO575PCQLLu7twRGJQY/H81YY5ge9C9Bz/LqNwiJThG+xSMrmSvc2u5i6f6yJ\nzez2MkGNFvKQrTgFfZyeNUkWN9kgRzV/POz1vuDFKn0P458wLdlgY9n9WTV3\nQEEzJCDuScMLT/geqepQHkX7sTOFL1eebnLx+h38tn8FXFuou0wpZzPhmrqY\nCP2UCWi5JKtMU55nB7FJ7sP2PBp6CCOjOKsbNyogeAqOi/T7ESNI9paiuS5i\nFEk3kgkTw0PSYTML+XrTKZhU26kJUMJFFAmfSUxe6aw1D3Cv6f/84dvmChgy\nhH/8C5hRcMyO6YdgYgGbK7miYDVVbMj3RJ/7gqF+765bo9AuP4Cj5HB+in1w\nh/0F\r\n=1YiD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICirntGofLe6GpPf3lRwvJo/WA45COEHvHAl5UYjwu2LAiEAnXcaa1C0WDIw8+1HCzW9Jt1fRHvG3G7FrPs3ZmTdnTs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607102024120_1607102038030_0.5361518877095721"},"_hasShrinkwrap":false},"1.7.0-next.1607105766956":{"name":"playwright","version":"1.7.0-next.1607105766956","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607105766956","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Fu20PYoIpZJwdyPwU2NeGIyzRtK4Jt0qswPxgy3rnw26VwSqBXPj3kmuhyVpRzE2BqQc50m58qSBWbyEx6m4Aw==","shasum":"1dd09d1c3377a8b8c4a8ab1841ee2bd25229fae5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607105766956.tgz","fileCount":179,"unpackedSize":19181820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfynz4CRA9TVsSAnZWagAA6s8P/0Ig51tEFDQ/OCucWv7o\nVowmMdyHA5YIrLvjzLtwcd1uSLrjFbhyfB9Xbz2o51Jt/R9+BGHtnE7CX/Tu\nVKZUkd3rdYQhGJN5UIoRPwhOnSmtsGHd7kNydQkGXgqVcGLhk5KgiGZfkE3g\nyWalK/VkE4QTv4uzzCliG5JsRD3mkXMslv9ZNojPMmejzIImbbCVl+NNvBLo\nWJ+DYoj7QLriGFbNbYStA+spF29TgDbEueM578EywVZEW35W/jepToz1jTV9\nF6VGKj/y7BEI1Et6L7n5l7cHA624TWbSMFRoCbvT8CQbqFwObU6EMuGRFvtQ\nZYcL/bEzgDtLKOEcODzvr5OWz79DO+jdA8YN4graspzBV+iLPPnYUarbtOIL\nIy/SIOCoL69ym7UhtRHUXj0FhXdSye/k4EJgJ5T2jbIqm7hyJQsg+hfex/9A\niG/KcKBxEyTU8UW2U50drE75cm3sEtK6FmufuAKdGBOUQTkEFlIBCpt2Oci3\nlFFrn5ULl64JunWBStNxDMHqaeXgCyMeA4KxrBWyRobF43g64ZtiHTiy1y17\n8SmfnM2MTdnPfaHcHNn7MhSZyYgMI5rdRgxrluZgMU+uTotjQKwqn38P5y0t\nT/GXfFXRtXAOluROsztUuz55fMrek1R4GoH+Fv9ciMQpT2pRZZ+zlbZwTeES\nFiOM\r\n=h7ae\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHfCzhgmohj6bGL6dK3WYKDStntdFdQ5SplM1ubtlcTJAiAZmQQRWNRqjO2Q5yFbvMW6SLMfmb3IyGyrzzpNWsYEmQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607105766956_1607105783456_0.8541880947986709"},"_hasShrinkwrap":false},"1.7.0-next.1607109079067":{"name":"playwright","version":"1.7.0-next.1607109079067","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607109079067","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KN8vBvLY8tGSKkbc0jbvNWePkn57inr8uw+n7FyxYKczy2CH/RykBx7XGnlDwkP/stZiEFABe7txfKXKvniCkg==","shasum":"b0f92aa58df6d42cda455e8e9769bf5abf853c13","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607109079067.tgz","fileCount":179,"unpackedSize":19181814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyonlCRA9TVsSAnZWagAAMmcP/1cp9z8bcSQ7Xid4KsvM\nrgGVvGpAgEyiUvwl73Sgu/C/ndA4nDq1iAoQF1ec1elUXyD5a+LJI8QkQNnr\n0kdz6AMpoNp41D5KtLOaJ6tMNehoGDBepz3q6GBgPQ+kH+PkYXn6zGMTBMVw\nn/Ds/KZtEomc/vpORaLOswXhnhTRD0HLJroRUCkgxYd+ANdRe4xQ4tPaxSzT\nYfb15Ohr+acWKMD+jk3NgCaGNiu/R5veMZjSUb54Kw5+qkb+VqCuOS2ljMfD\njpExIRxH3cnmkfrv1WqpTg81ucei3Qs/ySHJxAjnNFkDfxI8YWV2mq53VnZG\nwerqWZCLj0gHC7AVTxV+Q3BjhwL4mG66Zl5uHRZXyg4MTrJz+EKDPz3p7R8a\nGsLV0U9347UjVSvV2TBJA1liEwtkMa95MqMLOdjcXHulXSO7ryLm9gcdXIvJ\n3VSGijhsinYRTUoN8x+pxmsPYEYExbXnLCnwXSgTRONGU1ZZCsAr40eBreYL\n5w5VJT8bRfPUwDke9REXuGIrPT0RgFCI7ZwNFFaDgNbjQOboVyOw/Xv6iSGe\n6QIYaH3DlF0cJhcWGxDlgKLXz3w3dYs1zRJSpXVg6PYTDJXSyfVacGldGURX\nXF2b9rDxa24dHKyU3sPgV3VGxxL8YaAL4b+TPNyGrBQK66OruxryQIltTCKC\nlxrD\r\n=yfwc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxoUyN0IkkbQg6UuiLrED+beEPgNE+T7WAhDzixIKCwAiAdfqQijLQXwc7xvvMmvPzNXz3bFOCbq4wd8W5x2CLcNQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607109079067_1607109092793_0.7453572549740188"},"_hasShrinkwrap":false},"1.7.0-next.1607111460129":{"name":"playwright","version":"1.7.0-next.1607111460129","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607111460129","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-nAg5gycJW2OW8ISF4iCGZSMB79OVIFe8w4dpS8pHl4hKDUYsBPkCzm3Fu+a2gL9Sr9EZvN8AnppWvCK/S4luNg==","shasum":"2df9fb7f157fb9ac4e324202160c2bde91a17a9c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607111460129.tgz","fileCount":179,"unpackedSize":19181814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfypM0CRA9TVsSAnZWagAAYHEP/jiLS0HWnnNsHzvElBz2\nryngCAWmZg5VSfqE5X5l2sLYqjhPEZtUC0rgf/r/h4c9wun9TEDDSPxfXH+v\nPaUbnXFw6nihTFvahxfrETetaR3QVaa51g2zOwXseRKika6a+sJnwRuG8WeN\nweoF78yvWcbGNYUJRKHb0KA6AryBwuw8WOW6Whtr4xaOGDpZBkgH7ma1WXE2\nA/qwPYSeaN2k7JfKwbvzjRdC4Mr7vYmB83+ybU44eXz0xfMyH3K2tJIxNp6m\nJg5CKjh7V4JNJaONM3rY90lWX6xmcb7Oq3tkfBbkB/ssuDthRbvwyDtq3SKk\n02o5Lbk0IbHeBBOC3ZeZoS8rjtC3gbhKhTMeVsEas+65jXsB3ev7546HO1CW\nOij/inF+giSQ+9CsoMzgQafLyKOyW1HwSL+3Hc0FfFehESPZouSqgiqx+wYS\nRLN1NenPWSpHeZw6pKrMMKccrPSmMqHw805OLvIz+kshcEOuQO8aTtICPvT3\nzY4RISmjwl9HGc3/mJ8HJ/fTNUWP+X0b+V/2rhFnM1ARtWPMJY0jXFLD9Q9J\n28ZEMt2BDXCxUOg4ExOtV6hYB7vFfjTb3HhLhmiQ+1kVT1VNwDkFQN/xuCA0\nQ2C5JbxJF2sUj1rSJ2XZvSvBdU5FI7gigiujC1ivyBSNPboU6X2lZNsReXVs\nfKnx\r\n=SvKz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSb8HqTH2cAxh9PrbT1L1T8TB8xx0PYuAijSI4nbMVeQIhAILvLy2248/e7cu7HdLl+Ib3CCWWHPAO2JaOX1M8Vt5e"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607111460129_1607111475171_0.8245035512378447"},"_hasShrinkwrap":false},"1.7.0-next.1607113069133":{"name":"playwright","version":"1.7.0-next.1607113069133","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607113069133","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rnPKLnJo67/CGf6JbyjEuDBdhgKYPTGPiR/kh/tl2Mh407iek5By4rX1B99U9jYYMUzPBCSikHWzDnIaca84KA==","shasum":"7271a0f06f54ea6d97c91846d89d17af3c691f7d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607113069133.tgz","fileCount":179,"unpackedSize":19181814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfypl8CRA9TVsSAnZWagAAd4gQAIEiTW6V5+5qAUTbNyla\nWujFONKtSzNzcfC3N19pKQ89dFDtWJC2a9g8XdxyKEY9ai4rrsaYOwIK/njP\nEsrnx0KSSqmMuhB3xD347VNteZuwBJy4FVKz659vF7Hud1hbO7HvLdD50h76\nLEEFOJZAWAqBmLTKRKY+KIsY6OGPFxWrs1IL+29rDxc3pcXyPXdxWVAilYZl\nYrqn/V3+zgg4W/6uwYPTjS7U2GvAi6qm5NKFwWWVAq6F9BdzT6aDVxRgQxk/\nE+BuKNN6301zTPKkuj7hsEYRotEThprIGxMwDw/d0Q+Esc7QMSmw3QEDRBZ2\n7Zen1f0VqNwja/gzw83abTCNlDHnMiC1c2eYrG8l6MXToSP1XYg0NxiIIKwq\nhQyYsf/64hH9wUWl0Jkmsn7/Hg2Bo8J+7jT6yJKs7yoS2a8n+2kL3aGANfPr\nV1IN9HaU1H49LfHai3WvApyiJDFrfsOgu8x9Au8+/g3XVGvrKHZ+/U5/JyjR\nH9Tt2T20tXzwEMcIXDn0G461q84P9pUP8dMtYxIQfGPHTba8PsFrwtN5/w8f\nwdzkNejWufybKdSnTPVns9Agp6MNPfyFGF1G25QqBCpviNZuFrwBuTHS4Kic\nY49xB1VRX1uXm/oMYw2aSb/SYCi6R7VqGKrH/7YKaEMK37Lk154CXxYqCgLa\nm7X0\r\n=C70F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8v4RSHDogThzTS/O/KKgXoobMas8MQ8983CJ6waAMBAiB3WbtwGtbKkJnWtNZDPd3pLgu/W+j9Myy0Xgko5uuXvQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607113069133_1607113083716_0.6112516352368158"},"_hasShrinkwrap":false},"1.7.0-next.1607113552431":{"name":"playwright","version":"1.7.0-next.1607113552431","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607113552431","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-kWJ67UqKHqdD4l9p1XG991inikRNIDFhF8+Iwl61tdE/P8CPFMdpBuU7nJ64XciQWDErHTTkwlFEUS6VH2STXQ==","shasum":"a11d49e0927747b62ccd8d87c3c47aff302871ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607113552431.tgz","fileCount":179,"unpackedSize":19181814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyptfCRA9TVsSAnZWagAAIcYP/jQBh8OZazxccaqScI6Z\njFcVx5A1LPmuomRcfw9vmQfKuOsLIJpk/evym0ubdXdeiKYByGbZ3kGXtUpS\n+DQqB/kblcid1MlAe+M6fWr10V27XNxMqlsc26UWbmmnxhUkb8CErs4h+bJd\nJ40OYKDFnuhgWdgVOcXKmMv3Psc4QOjv1VUFHrravkiYvd+CSby2vukaxZXy\noiAnvrL9SCJaacnuTpcgANnPwsJRXQWwJ7HupNCdbFZE7H0JrnFGS/2GGnz7\nhIh8oJPzJnzUOm1zA4XDQr1mjgrgxktYU3dVcbD7RnPbeUDo5P4eCsDGPhE3\nPThcz18cTIpK12zuTeCBAacbUZzyG54JC9K6CxkypclhErgatBXd6/NqUJw8\nXL00TIk4Grm9PhGW+dx13yQtbPT/H7HWbU7G0/jxoU3wsnYXT0K/rhicwsF0\nYCryL9A7ZpQuRRHdit8qccjGASOGByXHWvWDF88x4wwBT9eTvMnJigArS2aQ\nssoZETcLtvWFuUqOBC3xDaJ+S9TDZWsUO/eLA6LFRuO5FkOHIV6plETw1mCl\n/Iv5cuGHdJ1y81jZFFO/u6gUxOSBhGE9Zi4vQnvg5HYI4IzZ9zYOe686hd9q\ngcgCNFV3zdqo43jDn5ibezUCZ4x3FfEZglrqyenC5c6fJ57OvIy5No1QMz/r\nsCmf\r\n=aGc5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwiGtwgf4Zi5CkaXn0MKEgH62NA7F7XUkZf2yxegCXtAiEAg9dxVUMDf8NiSjbCEf7k5kKdE4/Ef5Ih/MH6B0a/OL0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607113552431_1607113566482_0.04175196290919714"},"_hasShrinkwrap":false},"1.7.0-next.1607122229430":{"name":"playwright","version":"1.7.0-next.1607122229430","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607122229430","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wSR4kMLS+8hML2UWcOghGPHkt+SU5sob2rPbttlxwMg2gfn5ihaS2rrPZKeIQ6wzjUE+r65fnZyaATKpk7u6Uw==","shasum":"37ae7252e0fdabe49aa8ac4a3226760ba6c01392","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607122229430.tgz","fileCount":179,"unpackedSize":19181814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyr1GCRA9TVsSAnZWagAAHp0QAIELbxO95aSE+LTlYQop\na4olMbKeAsMMwy9P70KmYNCtEj5yTDdcFjr7wC8EJ/kaE9iRBFQ1JFIQgiKy\n+p94KQtIHc3aWwzffPd7cZLHZ7/IjVkfDII8eGIjHSctkVybhEnAh27JkG5B\n9CRPeLF+MXAjU05ysciFcyWVkpZiebws+haqxCbw2WDkXbzBsk7rhJS6bC7h\n29wyDWxHcbm37NLtkT3Pdk5h0hTGU8Tp3hVVG0kTRfLaVBRLaLvka8UXAe86\nH09c4IasHhgVS9Gnvmd/cM8Wbh1CJk0hUfd1ltoiSjpnqzUAgqA7ohz+a9D9\nuqerqbfbY0KdKRGcB4klUxckPaSOJXT2E2QVja37ijsHK7/XJNssgqgxbPyw\nXtIRsBvEr4MeGj6ayPn5q2TS/JMalslZPWDCREA3Zosx9HOvA2ZYyKKpgf1v\nlYMn81+lJLNDbFvas69d2MVv1ikJn8YqPWFREH8ylvwSrXh/JtRwAbOkdjh/\nGA2Or7OwJxXkF3EMAx8uuIIpID0pCntD7839xSzbjWG7fSpmCwSw9v97Bg0B\n6ksxwtRRI5yHdW1dGeSiNp1M6anmgb+7FPKOjpUd6YYdLGv1aypA6+Yk30LN\nQyBIHEweDUBv2xRZ5F6oRUwaXd6LrDdAYA09v2Edxk8T+Jw9d/W9RCxUrbAt\neL/R\r\n=oKcH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBPiSolOBi3a/U5nyUPN246BV2D7LWYZRg7YeRKIBznrAiB8GHK6sHdg610DmD3caj8+IaIzP2/R5Qp6dYw48FL/pw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607122229430_1607122245432_0.9821003383863205"},"_hasShrinkwrap":false},"1.7.0-next.1607127296447":{"name":"playwright","version":"1.7.0-next.1607127296447","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607127296447","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-hvm4FKCdsmzChZdIolpQwa1kVEWKJGldRqqxYx3/zQFm14TTnmiO2PGUKPdkgmueBdr6ELQRKZv/w85ZUjFsSg==","shasum":"5cb84bbc74f4e2fefcea667aaa25577e19a70c85","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607127296447.tgz","fileCount":179,"unpackedSize":19181814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfytEvCRA9TVsSAnZWagAAqX8P/2GWHdmng7UZQsMPqh6y\nKlciTAkDxQUbJwOuPZaSrSUCQebOj1JCKrH1b5YdcZ3p+b21zGyQglDspCev\nrZfP+VEuPyLgvQNZZbhvJkWx5369yop+W93NItagf4PFju8f9pvSTW8h/zZ6\nF/HQbXOu/GyjLYfZ1vVzHMgTDffBNdJo/o7BKF3kJ8kxmrUjb12nn11PAG6J\nCuYVrfqExu3EwODAPcI4zi/8O21qxBqgm/y36Rj24WcN54R2IcrdgbcsGt4O\nBd79q7z5stcMZKAWZfxBNk4CFre4ts6SYR2fx/5ZtLKVXTAtWoD6Ir8LXX/C\nB5fd8hJ4y7Duu+tggcL/Sm+h1jI6j4YM/+5exMPDtQzKEO2H3ffBHuPE97/i\nvost6CPZspuaSEIkWp0T1VVqhLcZIePJOxxJ+uCNtrcyaDQtI5QahAjnuES3\n+cCkxKPNkeKP9XH8ZR2wc3kbawMFjhiPq2v+SdSC4YMtOdp6owoXQx8FziCD\nMo+JliaiVQg6SelcK5HkyOGeJ2GCHirlxpwYjRJIY0kOP2vXkCb53Tf/HXFT\nYxuQ6nfICq3JsTrqtLxj7lOfQ9BmZuFStb+/NJgSUmuDCRr1zRhbhsgFCiqE\njls9XyIE7qXy7ha3pBhHWcYg/j3aiuj80kjJQKuY6N3ZMgn3wKX3IkII1UuI\nhDe9\r\n=tEJ8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmEWidmMdMkNXvYpNsrazbbbYQd0nnltuqoHGQ3L3oZAiEApW/LFrCu74K6nfSZQBLOVbPYz0lJKjK697UL1WXIo10="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607127296447_1607127342544_0.23691557931729457"},"_hasShrinkwrap":false},"1.7.0-next.1607132845577":{"name":"playwright","version":"1.7.0-next.1607132845577","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607132845577","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-N3352Umo+EDaZaxFQ71Dybr+hH1nWNJoqYyMQ/TNMklILWUBNSubGLih4whhVqRTIqFeBkHowbriQSGUz23nAg==","shasum":"602a5849a6b027846409bcc3d886e2435b47802e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607132845577.tgz","fileCount":179,"unpackedSize":19181814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyua8CRA9TVsSAnZWagAAHUkP/09oN3CQ7sHhCkDIZGtH\nXa58K2pIF1dGwDoAt1vryqnRnwwgMit+DZ7xaTHLlg3DAbjeZDsFZvpaSDYR\nWTu7U5XaCmHgrV2AW1EpT4RSgrEtn1AOGVPekgvn0f3H1pGcM15rN7OIdWVY\n0z4SM2U0UEgsaT6QQ5GWfFM5NS3hrDXEzV7iGNU5g3I274UkSyKiCdw9gfCA\nDaAH3yqWkULn40UVjNfKAgI8OzIApcpKeVoIcRNbKrIn95aZMTLqqHun9/J1\n7kCkm6Fnsx8NspwkBezdjb4Nyk9HxNeUY4BRnzvjcr0fx5fLoi70TQrMGPuY\ndwiCtNlRw2TFugYN7SWLi9yxqSMHsVRmk/PB6FW1BUQH01iEt1rxYVgXLqBL\n18MezcgU7XalNkxXgAmkgmmiunFK64dim9ewWqjS9Hb23WY+6hheQMu9RVX0\ntzTRQL8TYAB5qdkraDcc5JHx2SyttZVa2wsSlZX5A85djU0miBGS92e/iDKE\nUuoXCKnat4pMQutOiAweTB3WQaArJD+8seUr5Lr1cEMrotnsfYcEcKhaCK1P\nOz6enFU1h1DddvbRjTbrv9I5bah/NNK3J4Xy0Ar1PubYCVxDannyPrA9/TeS\nuqBqX9la30L3yqSex3VHuwJfQOYpXWXDO5G1g8VhL3kWSFk6ktDRWIrJUlkr\nLJy6\r\n=bAak\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBiqJi5zFPF6KnZnp2a9ueTuCsjg9E4A4c0abPL8LWxmAiEA3w9p4plePTrVEL0+aD+DECghHEwqdnIOTRAXPNMyH9M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607132845577_1607132860106_0.9225304877392502"},"_hasShrinkwrap":false},"1.7.0-next.1607134074367":{"name":"playwright","version":"1.7.0-next.1607134074367","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607134074367","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-10/gLPu9qpSbYwFIvDj6pnCimYEgQwqwrneGwEWabLlnTJ47AFIAkgNem49z0sh2MiJWawRokigvNyaWyniXWQ==","shasum":"04b3f68cb83de0ac210f0c17c370a3dfe5574a1c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607134074367.tgz","fileCount":179,"unpackedSize":19181822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyuuKCRA9TVsSAnZWagAAAGIP/iUu91vZljdCnMU+y7xG\nUsqPHm5BsWY9xLUq4HlXhrfIanpqRAlN/I3TrRHoR7htmq89QteTkL+EZ+wK\nkVOTk2A+2c8b50GbFaRYLI8vnfpTP9c7hAGrzM0ijyNCTiWwb2lqgjl/XwP5\nxa9buo4TrgNnd+CZAsEdKV7j53EVFeXQFPnFL4Pqy+LomqCfxVa76y3aEfxh\nrGlTo1ccOTPFT3M+rQNyJd/qFbJnxvPcc0/0ZJrSNDFvQbGcQ6rAd553LSot\nSz/Jri50/dsS4eaPAixkhLQ/0Pr3jZcL6YwNpe7uVYmsA8DwWOlnNc5la2Rc\nFlK2WETXpgj+zTJ3oEyPpy8lOJuRWxx5D7g33JELHmg7TdadmICGtIJsznmX\nIioyA8Gb/3ZBG1WZjeYa8SOuHWMiIj0H+NveohPF5FvHKAEqeFCMWiGgYQdS\n5C1YrA1P59Lh2ud/02uD1AoTSrSF/Qqhs8bLl6cEu30BmTLsVtnqJvvDT7a+\ndoRBbCc+WCoRM/cLSRVPYWa3v6TqxJDvzmh9WECwb4MJ6/cdOeRVCpC3AeKi\nKMWH12ZW/QKfchVFtQY4hzUO90xtugCjFZ/OursqkdTi3V7PK6YbFKvzlF0s\nvJzN6U+KgQnhO3S79soU2cDYWN18hy/9TAxW/8jG5NAs+J2JON0q1pYEhRtY\nuPWi\r\n=d/3M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDZS+uucdH+pn0tnn4IXEM2b+08VkRLBKfiJr9VyG/4AIga2hIjyEx2V24Mq6hZ2C0JWK/Cw+sRE0uWhqb+368MM4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607134074367_1607134089858_0.6593529444204875"},"_hasShrinkwrap":false},"1.7.0-next.1607136556254":{"name":"playwright","version":"1.7.0-next.1607136556254","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607136556254","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-WA0ExuN6PmWMyaVbOhsRoprYq9qXguYmWWInnWy5v9zhH9s+rWEzwLV8gM1LkycdyhxCDXZ/jQTz39yzMNo7Zg==","shasum":"1f86826c8f939e34ca8fdc36c29df5584a72c77c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607136556254.tgz","fileCount":179,"unpackedSize":19181822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyvU7CRA9TVsSAnZWagAA3mcP/jVOD4/VbRIZulkdJjXo\nL6hnD3OY4u3aqWjcwVqGjsPMwDT54ieXOYeQLd3VIBhmrYf4Halp0i/q/5Wl\ny9ukenOWEgVbtzErFYA9qK0qaZkxOykIMWAn6hLgRfnR5pZVp2bY4vtKPSLK\nVxc3ccaggPQCh2WS8pkjrk7Vk+vdmN9tGpSg55NzhS14pcqeWCHX0nFa5fkL\nnLI9HugRX2w66BndeGkGI3ov9Of6RCp/QLfsxV4xFSGGaPvvsm08Da32Q8b4\nZuznLA48wvqEfe3kqu2r6UAlPrU+zPTF8flk7aQMAudbq+Gl12QazlsgrQ+v\nZuBjatOP27Qcp9hyy17OCy1s9LdFxHCMkmntNC7iOB3PNRXqZKbWJTjJZjoM\nVB/4jGo6liixnviMaF3K6gTBqr6GkqpGRaIZaQy44iDWKJM1d0npSrjbyaDE\n6pG5nbqMGBS5H7mUU1zn6cwvJyV3vm5YLrG4XgM/pszfo6py997lCcjum0NJ\nYO/IuJIW4davMl/rUwAco9YkoEKNRN3LtQFv/N/Bx0P/DzUHj5GCzmdcjs0q\nN6Q7n4jgmPrwYFXvWwfK/FRQe7HPmhwVUGX0B6TZMedqIbaYRkv55qE+X30D\n/BQWibC2S0UsABuOlDoGOlU0pYV2kScUomovj5OfHR000HlroytFEGV9Pu8X\n3HbH\r\n=jO8q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCedfOfv4VDBN/ezoqE+WVBr9McvbffYS8249O9k5oOTwIgfSxDGIlMYmNWixfziIXpk4gAU1g1OYZM27lJfeXvINM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607136556254_1607136570586_0.8497287699767448"},"_hasShrinkwrap":false},"1.7.0-next.1607144192248":{"name":"playwright","version":"1.7.0-next.1607144192248","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607144192248","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-8dAIdKaiMg3jrRq/a6m98HrLKiy8lWt0HySeRgTgLZvBnk9phfEVlyW9TTsPjD3XGKhKnjeuPXLHYRQ8PPZJnw==","shasum":"9ae2b17f8518a41712521fe0476bba82f9e8617f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607144192248.tgz","fileCount":179,"unpackedSize":19181822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyxMQCRA9TVsSAnZWagAA364P+wbu2OByPrJZpXs1NXIa\nFJk/XvdRzObwDDZgWuCXAPDBs8/o1ROc3rN325UMoEErE2hvZgfvC5fvymdR\npLZZHvUdjgRIZYoHYc0UZzqxfL8znSY9iTtLUYUx50Cg69r4iRxUzIArCYxv\n5wkQFcmDZhxPQ0wtYfUsZR3kdSgIIARVq/1jtlLlGONj6t99xqv4RgChsmrJ\ni2bHjLySTaOZEozP8brw35zq5f3c3GL+pAtIQgK/LCng6VNCqNi0BG5jSyQn\nrXe2CFfvGbSf2YxtRAqi/xWU8Ca3UT1rtfNuk3c0aBCTyqefZfEE6Ffuhl4x\nJqGke7c+vSWzIN8L4ldGy2ch/H+HRHcEtKIn3xTXDMGrVlFi/lnBljlz0rQO\nJiO9f3lpedY1BH8cEsfQ1P+BmzmOC85lWUqP5z7wzK+Xwbq2TSZ5ZkHTrr7x\nqh8XzLn3aPY+NRCeDYjTKGjU90s7nG8vVLOPgJp93EGgPQdIKWJhQaRKsaRc\nKd7scd1vQNRtjYpy65cOA4xmeaHDcl7eAKxwAukc8siQXz+JVXxO3/P0OWId\nQtjB0bNekXSBCfG6LhkWkxR4rZq5SB0PPG5+CeJcR+rBKcWSM8h1NMmBfFZ7\nSAMe79nRgxC+1XkXFo9sDEh7lY645VCPLAYuW5BwRiZWZm6BrLHdVulcSDcE\npu5a\r\n=2QMq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmIhVCRPsnpFnYsO4DQdec3tZNES7yUgRmzD/F42Lz5AIhAJHJpnsi1/177zjGX2pKKSGxzHp41Xz8+rXy/+W/H+u/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607144192248_1607144207299_0.90699380632758"},"_hasShrinkwrap":false},"1.7.0-next.1607211100261":{"name":"playwright","version":"1.7.0-next.1607211100261","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607211100261","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-9oIX3YFk9A+wvwI3xrsa3v3g5afqBX2KDztWhWj+Af/Pfj+ns0WO4We7LMhIutZku89JifxHp0x5YVNBevpJAw==","shasum":"3642dbf256462e4836e7feac769a143e29e996e9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607211100261.tgz","fileCount":179,"unpackedSize":19173889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzBhqCRA9TVsSAnZWagAAV2UP/jGG70lIjnaWPMAvWgNM\n0QTP3m6J3S3GQztp5rrY78uHwXrC2yicHUEcIzP72/l6oLFWUKuczfe5dMXp\nt4w6nghZgjEHtgfT8sl2RfnZ/otFwx1HI8OsjMbOq8myye5EeDJrr5YdQv72\nR2tTfbi8jI+ZDUF2tdIAfoMfEyxMai7IIcpFeGXXMpBpbcH6HMgilfW0ND+e\nPUIt8eg7W+P3GKDeYd+Xd0aWfhDNv/LmeZ0gr0QsF4vPNcvZHdwNpE6R8+8G\nATPV0wYjpvPFjAe1w4UsFPjk4S/vSEyEHwjA4JpceAS7zOo/3kZQfqoHovps\nXUTlKFAr5hm6LO1wFc4JUPBf2TNkRAeuLKsN2xMXqKiejMxja1VkMg6NfZBY\n9VOuEL8GGLNGkPDmlomXzzU4pdSSDVeFcnhKRv7OJbWMvN5m/cbQEEnZVIi8\nBfL+wn7p4IyrDoUlHpjQaC1eZElFV4nBC26id1E5UxPppt9OxEu5msJ2u8x+\nwAwu3SM5DyZma8GSkfM3PgguO3R+T3KsWoxZUNtB/AWhIk3sPQkqXsQSHMRE\n1FrIaJdAQQTGyxpRBsL5ivccRmsqa0ekAJ6w41zKQOEgPtIxgCFbMB/1W0vz\nt4YMyLE0V+AtJ/aofdKlBDgGeiP90ui/i12i7RB7RidojPMsXoxNgHxbRdU4\n+m6Z\r\n=7Me2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHQSljgBzQ0dTADvHLIyG4wfSq8ZP37kOoMl47rJwe7+AiEArl5i5I2Lr2Hmd30ifhyr9mPZMjDjpaqp2R2kQrFuFIg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607211100261_1607211113972_0.7281436486091315"},"_hasShrinkwrap":false},"1.7.0-next.1607232089155":{"name":"playwright","version":"1.7.0-next.1607232089155","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607232089155","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Nh/z8azT6ln71a+GUBipv2CUVZvUiTpk+Fg6P9LFNfytwzSLtVrWsI4/rZ2I3NXNpD2AcI7SyYC0V+mjPos1ew==","shasum":"d494bf029a565b1a753bea1462845426d23140b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607232089155.tgz","fileCount":179,"unpackedSize":19173889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzGpnCRA9TVsSAnZWagAAVZIQAI4suG4TFoWLuhnZl3Qv\nT4Kst6vxVuZUuyMJpQuE54TV+VEx83ckWD5cic9czF2hBRlTX6DrNU+gXlze\nsxehwCji02asxR3g6rB3etsv3OqCalwDuUEAAvpKwpUT4tyL2AyxHG2MVU8R\nF/JQCpRERE788Jk6F8kf7/dkQCjNUBrps3678nyCmPDEu5fD3AO2qvVvCZrm\n8SsLgMcTInrzmIOCARBw8i9MnnaKCE4SHDi+WsYialhMabSH/bpJ8q0MEjUn\nmVQVyHUYsLNLyXvBJBYkQyl+eGF9EXub93Tm6y5wfW9eY/UlMIFZVdLPhMYV\nDEd3C08BbOy3TdCJqEqKrsOtkRulsZqKKH/oATpmZa/NVradnvv/nZSMUGo5\n7jTS9M2C7k4LNuObRf7xo/X4N2yayIgKtQKb9CtS8msRXWUn5aRjfwy0RXjm\nMZUCj9Dne/560lyctaRfsWFmfsBacXL6xDP6la6cLH4lTt3P7B3H+V+Vlyvc\nzDTBWGfgxNOeANw3vEMQtlfARR2zGAh4YI3ljfD5B+fymBjYJKSSO0UhS5ul\nzjoCax+exhrTJJjaHiCXrbqyXBXEg9dknH/uwi5KT4TZI7qgPL3GtCfehuT7\nl/f5wQBR1n1vhc5gfEX4PeuHY1/mO4NzJZH2yEwnuwjMvisNrvTOYKGuUhRe\njBLm\r\n=Gt9Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAI0MS5mZ0VYQZbCAU48wggX+Bd7tJSa7xz8X/rtKZfGAiEAk6bSp6fL+7v8W+aNIPKqPVQ0ZJgqX/136ek5dapgXn4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607232089155_1607232102331_0.9902735367848965"},"_hasShrinkwrap":false},"1.7.0-next.1607295981958":{"name":"playwright","version":"1.7.0-next.1607295981958","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607295981958","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oquuuruBgoCqqO02+dCL2iv0MY8Cm1YKakbHyyNEYJ/dKFIT6bq/hdbduLfYho5+Ckl3gyB2ax2E7yoGpgfByA==","shasum":"f7c8277e85d48f4d761f6021f3e3afd366d5b65a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607295981958.tgz","fileCount":179,"unpackedSize":19174552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzWP+CRA9TVsSAnZWagAAVYEP/0ZMMbu3XAS1PD9X9gF6\n0ZLOKYNI+2I1E/AQQGR6eYX2vd0/Fc0T6qzKqK7+mKz6FReNIfR7Vl0+8Lza\nCh6Eit3J2m+zW4TVv7j3q1lkQlN2k78v7ePn0q2GNThKPRtoA9yJow1RT+Tn\nfoz4oModErLkw6bAOHcyBb5c5z1oTrZtQJXEppze6pUARBJcdFQUfVdvVrQ/\nn5zKg//U9f5h0mXPyODbZ6Le2ic7fGQGTV0hah4ZKdCVDK6yXaWRJZIgUq+a\niGRGBQZp4A0dgCjkGejZ/xmXq1BLZ4y9FRwK7HPkxJeunIpCKA4Ir0/DtFeT\nv3P2ohYJstyQuT725vY3zo0/zrQD1Kxr3Yl72HmFACaTebypq8LEuRALBq8r\nlPQZgoQgM/GZpA1HNkY6yO0aVMLZLjVckB903ViR/W+Mi6exLnDSD2gyhRdP\nvqpuL0TflfXN2XDCOR1tPUv1hK6eiuTR5xMmDgUV5mD4q+5jkdzjl95J6Jc+\nR747wE7vZ3unmLffmPHseh2eEe0NpWBZorkRJH8p94CiuwumfrxPY6mbZdLQ\n62FFM+yOEgBY4piv49QoDlt+8bQQdA8ySSrJcT/T4V0fMUcKMo8SCFdSdUsP\nokBXTIGMulxTvX/qrMBBSkNdR7nozJ2vuwMkKs1nYpQx9kcaqk5UVUjE4e5n\np10R\r\n=M2Nn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCamhS6/cpN51q5zyeXcGQL572mP9TtyL7UJv9LKahYdgIgWQJIy1bfn7/jeTC9aDVD/2y2LvsU0U06u3T/HEKiUwo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607295981958_1607295997595_0.5209323861709796"},"_hasShrinkwrap":false},"1.7.0-next.1607307985581":{"name":"playwright","version":"1.7.0-next.1607307985581","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607307985581","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-22pHnIrQrI3NXnkb7eJ+JdPbPrO4P0h1QuZbxT2x6D//7vsaW17icp6HuPCHmWpbnHIliwjBIQjWy8OD0NY5Iw==","shasum":"e20954e2c777c832dc9223cd8779889075a3af6c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607307985581.tgz","fileCount":179,"unpackedSize":19174552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzZLfCRA9TVsSAnZWagAAodEP/R4XcPxlINZyzLCuTz60\nXQlpDHQQTbIyWwCSKRUC9Kn6jEFkUNSwzDGxS+JlqMVb8tvfb+kMFvf6l18/\nTJbCp+YI9b4XBq6euLIpYn2Pvs21yT+WXX7pth2zIepK7dnm2trO0xeEdxwE\nF1VdmqbSxcLKLc8Nq0aE90rE3hgBiZ/pWOmvR43zG8WRJx0qVJSvaZDvh6xu\nL3as+autpd3pJ3bUUoauS/GL44K0D1cqJkBpUpSPN2jgb/xTwnVYcJvwkq0f\netNZ+x6wXGXE5ytCz05KAKJDeC/1wbl3zIZZmf06Oeum3mCFdFyNDC4C4rG2\n7R7a6bRfFee/y1tW0C5JToO8eLxSWoFNxWrTXl3hFjdLj49/SAf7b7/doVT3\nPNf1a2YlJOHNN4oRejo+ttVKNGmLpb3T6wFdL2DHRjhSsEB/clPLQE3clp06\n44PBnpm+TrkDmjf6pys19IVwaFEg+a5b4/wRlFE7OV9z1SpJSoCmnbAQ9kmR\nmje5fAatGHoyL44Aods4unBRDX6XCUU3WWI9xJngaADrHqiqfHI4kVvJdBfG\n6erdvFvsB3IttwtOmpjlq7MdkVjrBq6kIMYaOrUs0BHp7XBL6JOsM03csX0z\nuxZLUY3Y56kaAnX4+2HB/fS1oSI+r4dZFHxuGBSl9ruJ9fRV9kP7JTCcowYa\nUA34\r\n=DDqr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBbvNSIFcREE3XmbXf14cACXT1DB9nEcWTtdf72fuBaAiEA7K2kDoLhOVYv6YLBaVhwJt7Elg301BepLPc9bK4R7AU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607307985581_1607307999059_0.05665237212781915"},"_hasShrinkwrap":false},"1.7.0-next.1607359464524":{"name":"playwright","version":"1.7.0-next.1607359464524","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607359464524","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AmFCWADfNONlAwaj55Ml3AVmITt1qDvVl/0fSWoyIO8Gi1VgjjuwTwoGmONNrcUUbemk2y8yih1Pme/yM6BWMA==","shasum":"77e88bbe6a8a9f1745de681c4c2f6d90a6dd3966","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607359464524.tgz","fileCount":179,"unpackedSize":19174552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzlwBCRA9TVsSAnZWagAABOwP/2hI6wfwgpLnmZ0Q0tRG\nX4QCShncmHIBRwNU/RUq4NmyVxEKUOTsL53lZUftzsf69rUtX/25K+60L6n2\nhQbsXKrxzLr+Z6X/RWSnc9pGU/MnOzN256zj6E3Wz13SyUGTJl3OnG/2YNuL\nWvVjrP7ZQqT4gQgFZigBX4ZBggJf+mcgSOq+XbfIEvIo0Mp8TT4gaKUKoHpr\nY2046PJ0z0jTPM3VxtOIQnz8pKnNAybXQwICKzmMfMW2RyejM0a2HAa0CKYb\nNrPutBsfqQxYcfeZ8CDQdC2z/4QS5CsD7BythM2ySTMrwuEfVhHtL3BeVl9M\n6Mv22qOdH/GLn/m9/I8qOwHvb03LQlEpEURnBDTDGD7LIws+d/9aR/PdcjRN\neTZBx4rGMR8D8I06nWHmao71wV8HoNJOZrk/Y0nDuoyZYRnysOE2Xxl6254L\ncRW3bOUO6pslxWRm5VYxyJgLPYZlvNnCe/UG8rrj9dcQkab4nTCrJD5gSi5S\nYZGr3vf5Qz5dCteJc19QvfXVnKykjAXoknSAoT3HFW9Y7kLVytMIoPUtWBwD\n+mxb+FfprNDDUUPitZd/CLNPg2TskqEguSY5dw+8fj0PcDEq8p4W4tBfwDVt\nvQDWX7XLRYBLu7G+QW6K+ErDF6h+P1G+8E1jamg0ImoBzoXHoKGcMxTsgpIR\nnPco\r\n=3huV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMvK/hF/AOZlejF9VJxiX9cx2TuOGSys2icO0JVMBtEAiEAsBLTBwjWrFxuLsL6MKDvALPjpboTiL2hJiRv2KwXoZ4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607359464524_1607359478439_0.47087416714864117"},"_hasShrinkwrap":false},"1.7.0-next.1607361837668":{"name":"playwright","version":"1.7.0-next.1607361837668","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607361837668","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AherPvBPmJ+ws0ry4yx0DTxJLMR1eYI9zpJhYWcG2aPpNNzPqyLWtJifonPLKERbceiW/goqk+n7sCH5JuTKDg==","shasum":"3419f60812eff42ca41d4143bfee3289b32cdc6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607361837668.tgz","fileCount":179,"unpackedSize":19174552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzmU8CRA9TVsSAnZWagAAy58QAIVG/cP8vpME82X8yScs\nhqi3NBGsWrK4IEVsjdf34KlOVMrtdO2MCLYRmIuiHG/3dnZRb/exq/Ic5G4+\nUXapQsnOiKMp6P82nDdjmcZ1cWv06SEwI1WahKiqU9mOiNpLTp2dIPohneXH\n/IQYi/Lr4lvlLjk7aWVHdit2oJcC/dHWEp8mQu6HmyqA//7Nd5QtxgaNTNLl\nv0l/bXEPqGgo7mcp8yo7Y5MIKMtzCfGtQu+s8PrJwdM7gGZBU99Ob+6SYIuo\nwmZG3SLbCBnpzQYM31IgY2RAxn5zZZNy4+258zI3PvgCaVi9g6SEmihj+41n\nAc+mZ9yZILmaQxHmvpi5WUEx0k8kkcU5BFy78cO9HPWdqKWgDmPLG4BdjSlN\nhAE49B38V60heYLq3bbYlEtqZG6OulrHmLUj/Gwh7htAnmbKyptQIGydimIK\nkG/Vytsvk8nEQrYPyq3//olYtI+Q5d5TJkEsRCShZTqrlcyFEA6aqiH+2iSp\nbO9Dm1BsHMuKeywapgDb6BpKdNr6yKoUohWl55oUns7/Qka0lteIBlzx+Tez\nCnctUMKsZQ6Ccp4YQlXJk4NZM0tZy1/r2eA+57sqFPwlREYYxN2Hw6qV6P6F\nP5y1rjJoONs5aXeZPVThXrB9pR+drwHkkCaxkd4QM64b4EQLnQub+bQAMiPJ\nfqLM\r\n=Nhpd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGDIw6vROyn5f6QAbVirDSVPxu3AOOgOLRG6nzt9Us1NAiBLm3QS2AELp4Ly/I2FTCfVa/Wg3dcT4g0aR0RIYVNVHg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607361837668_1607361851723_0.24038008409994638"},"_hasShrinkwrap":false},"1.7.0-next.1607364764450":{"name":"playwright","version":"1.7.0-next.1607364764450","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607364764450","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-IwVePd3Dr4jChb8Z/ZWPAwsiJJuKm1NO1zDkeXNus/pyblG6/bc9bej5bkrXfA7giQNz1apZDKW4gAEZ0BFYPg==","shasum":"35dbbb3ed3c4723733bde9d0247fb7845572fe47","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607364764450.tgz","fileCount":179,"unpackedSize":19174552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfznCqCRA9TVsSAnZWagAAqfsP/jCuzOck7lwks0uFzd69\nE0ZF8wOJAxCUQ+xvi8rbebhuszmfDclOCPDd5pUdFIwudMQg6+jRRIP1RC16\nn1vZCCEjVwkN1OMQ21ME/kOzcKXit6cM+e+L5LmuBRI6FLrX40ig9IgYt3x/\nBidPEBMBE25OM3/vCaB5Yd4s/Tt2X3HPOHIbpOVBix7Nqd7cIIMxkTqMIFsX\nN+uFPtadMWaBa2zx5NoEjl+WXhvBly8caqYZxnR4DNvNOFYNwrUDJqH0MaaT\nPhijytjDd3W8Hu4CWdNgIWPPlBAHRjcbGm92a/rVBjsGWR+4op31xTU+uRy1\nMCzaym1g3zZJsHdkLMQcXYDGWX61JVdgtZxNF9bZtCupuQdYOE3I0vKh7s9P\noyf9KU8ei9YmJhBhtUmXPPZHqfPbsvL5fNxuB+NRQ88uXbRaBwXmkB1BjaiU\n4g/oTPxtRZ3j+7yNlsuRiqcjnCezvQHlasiDCKJsdonQppwtSjVzquZZYvP1\nk1VuGqdeAVD+yZCr7D7914abK1LE7pGjC/IoXwIWODTqskmAY4LHkU3Eiu7b\nNvtzsN1SLskna2DP6htLLR7jT8M7LEC0ZnuXx6zGdGtatNXkWgEJt373ixSb\nsnLrXvZeDPV3YQ3i5Ic5a7qSaJvfYrOsyiQSe9NX4Cu+Ui7c1Cfw7n7Q3vrc\nIlJa\r\n=D5qD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBwu4+BVUJVDN4Wql7TSJoS1lZ5RiWMLeyjpqlUy7XH0AiBVz9q8oFtyuxyd89Yj3d8Wvny1XbDOEqvlIlRyTWDBuA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607364764450_1607364777482_0.8241827852756909"},"_hasShrinkwrap":false},"1.7.0-next.1607365809266":{"name":"playwright","version":"1.7.0-next.1607365809266","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607365809266","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-NvPJboYllYWAwpoCx/EwCzS37xeZRJh5ixYXRopSlm6Cy2W69P6BFBxsgn39m6lug9Vja/cXZssqh0TUWp5vhw==","shasum":"3bfc432be5cff7bba51e69141844c36efd3903c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607365809266.tgz","fileCount":179,"unpackedSize":19174552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfznTBCRA9TVsSAnZWagAApAQP/1HMN8HsalBjx4BiPwK6\nJraUVgrQewP2AgNtJZxnFB4IKHEh4yGwCWDZyDbjsni401mng55a7ldqXz6v\nX+S8tnwEXx2vvBexBjF3txDgQSIrCn1IQ3Zr0gFCkKfcbKGEHNzjlwTEbZry\nZMQpa8jMZU7sVcNsxMXCabgI14E/zBsx1VrQs134sORdNaJbydqMYZ6idFKs\nCpS7DCkRgruS6fddo8gYpesKiuClFTFy8q7NAYE96QkFaeRVrZb3B0lNcyPG\nGz9bSFZ1VDMXw+1OH5WMFlz759jHUTmhL7uoZVXX39kStyJKeAM6gJStwRB4\nw12Z1e6vyfloCR47GixQBjQ1ego9GFfEfjVNyjg1hbxiLRzmYRsRE06HBgOZ\n2TbjdtcVfDEPmztZ1pxBI4wHzMpe0tBBAv8mDyiwSGY0MCZwOxk5JGeFlubp\n5bjBOE8UbBtf6622Fvocd/LMiz90b5u1qL4WjUaIaCUNUq6I6Eo7EH+g0ZzD\nntD0X964g7Jqlx6dijf/q9zzkrduM7Qj9sC6I29n09TCQQpEGO99ilOohZjz\nRZJxjsdIHPdrUAUXJyMD4atfUkNsInX7aHgFMY/IwXhbh/sP63eYxZ5JlfXg\nbRLP3JxuzN5B7vftm7oZnA6tY+BYgjYdj9k/IY+u73/kwzkxqliSLwc3lGfk\nJ8vC\r\n=8wNQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7qQhiKngMALwSxOhKpn5KOqdHkkxblVj1LS7YbE8amAiEAqrxFn760+U4EIRAU8ZHFnnQqtcNVZqIOt5DdWTfoKjk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607365809266_1607365825024_0.9394402148636563"},"_hasShrinkwrap":false},"1.7.0-next.1607367613009":{"name":"playwright","version":"1.7.0-next.1607367613009","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607367613009","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-2c8aPtNhdNk3FfWCZPVlzTHXBGuFLxDOo7C2INwQgkAFFChtjVbDkykTLDlC4P/QS6pDIU99To4ufhjT9O40tg==","shasum":"eb81ef937099666d3c48241a0efa90897b4d17c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607367613009.tgz","fileCount":179,"unpackedSize":19174552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfznvNCRA9TVsSAnZWagAA4n8QAI3cYNrwllo4ClORspAC\nas9vbuOvUlZxnCz2LqMHB84on6pwFDqOXxR3Uq9jJVURGKwyOojVD+IxyAxW\nTTf5ikhw+xNJYmxwEC2csLnKxoZylVAaNVas2Ic7+4g+2JWkZufQiw5TN38w\nr9mXAW0VnqizRkgCY3s+4u22H3QLIphZFMskjTof5SlYDUTCP/DCjL5f99c0\nwKaafLe3fMTC+A19LzW3ORIe7nn0JQ7qOGtf0LG4k/vmRhJ2mhyMlAve+Qh5\ns3/CcmVVE2peDl5osbsfP/UzcEoDFeLGkg+7fXZIwrFFABQn544Y6DrLyijN\nVMO2HnGHjpiaxIbIUzZla9lNhSnDwakAiY4fmHI/IGbevqh/bb5pQ3WMnAje\nY5zZUhDD5XY6KKXAh4tpzE/AaHythp8DcopMxa9s7cx+ZZvQXiW4hl5T9akJ\n9tfzFzMId/9/qCTybsl6YhvZxJYUkBEIAnpXIR9DVgh27dgSxVBJ693XzyWs\nIRlC4zpKdHoF37C+tSW7miWAr54cmBTRfcUxqtMBclli5txnXXVC3hWrS9Is\n7Ji4SPkK9+bskocFee1JujwB+sr8z6Tsm7pW8TOivHcdJgwiKFiPYl2Xf/8B\nHYXjHQ2iZmNl3vrYtOomonAPJdEddc6Jr0sWscSmv1/21ALPbbm7LQhH2uv5\nYXk2\r\n=FjSi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDAaHiqUXK7V3P6Pa2tMkMk9Sbd6kAATMBSlvRnq2vGqAiASaGaD3BPmevN3TH0m+O8Qw/m8GtEoxEwiMQ1mJwfpiQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607367613009_1607367628800_0.39501716799806164"},"_hasShrinkwrap":false},"1.7.0-next.1607370264409":{"name":"playwright","version":"1.7.0-next.1607370264409","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607370264409","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1FAaDxzwyiVUYHWpL57Ri7ORXKoy7KFBeibF6+pZsmTPqYz33Ohw0irNZZ1S+UPDZKIef1F7hALBn1Y+cihp0w==","shasum":"44d1dc05855fa18a27e9690d1236531d9ffdeb23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607370264409.tgz","fileCount":179,"unpackedSize":19174552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzoYoCRA9TVsSAnZWagAAZ1cP/0zYqEd3DdKos9/W0K4G\nQb61z955NR/GoAimVIDOETDb9Q3ijvLaamXKD8tGj4Cvay+xxApcTVPOHzsV\nub5m+dRmijmRFL2QLYX9pm4RvciYjnKEWmpoo3jmgN578IS4e/1WgelfvKbc\nk6mxtBQ1g4B4XcUbvE9vsHqs4y8000+LiKAIkbyY4Bdd0SDqFiJJz63rj6X/\nKFwzHM/VPNHZN4oPWDzaRJvJbVgA79Fz5R+F8U6zbi5MDCx/W+InZ+j4XA6d\n+GhpA1vjYUJ+8RNKr0zsS2ExDgJnPjgyyET25rArQ1qUs1tO1EKZd/V0CXfO\nPxTbo+KO4q9eOHiIqzRIyUpBxA3UQw3sZW1d0FEGjm3Lt86MS3o/rhrqLKzS\nGdt12z2auPioAbbYJ8u5GVUhjuGeZS3xTdEwnCu+DDV5nQHfsg1foUNVGIeh\n1ZIREvJLMMvF2KP/jgST9emCYLpcxrRR6DJ8MUL1qLX31ovkbcs1OF5a8wtA\nmKRUZZnExsmGEnxjGeqNU+vRqzZVIAzTh8J50tFkb8WWvxAHhOo3rYaXX8/N\nsHmTxaWHx9cCSAnduF0Mk4CzL+abKYg8gwEOhM75zvWUqKbJbdJMuBgfrsGr\nd6bXQFZOyjy5wnf9DQUqCVP/6fgq2m/QSFTHs8YKmpik6OeSCg7jrwTf8OWK\ng4sX\r\n=s0dm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEuKWYXTt8K/4IB2En8eY/FTnLXjL4rNkTVnxYVwFYJFAiEAsBrBKBgzAdsgMiAbBi9dtQIuYuYpFLHY7Tkp1fL6urg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607370264409_1607370279777_0.04921896031256856"},"_hasShrinkwrap":false},"1.7.0-next.1607380339854":{"name":"playwright","version":"1.7.0-next.1607380339854","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607380339854","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3ilmWXWZdfm0L4lavyz5wA6D8HyqjwbxsaQpRAJrS7R5Cqp7+GnzVzVPxJCEHltP3mBdtU1NVQ/bYgcKl9CcOw==","shasum":"6a6fa47c00917d892de945302247d7a00ec857a8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607380339854.tgz","fileCount":179,"unpackedSize":19174552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzq2ECRA9TVsSAnZWagAAODEP/0feqr21RlX4gXBb8QI1\nKtFP6Z1F9m+yRENgfYOXvTphxRymEgGmHBOvzruAR2odiUfpOhdMZuC3Yn07\nrWlarQgjkcxfzwrAGIQRPETmKDDrE924N0jFmIwPHUrz3tvPpx6v52ZWHaCJ\nUJuxCrNMMgWEYI489d7uVK9EiDiNXQlm21+dxrNyeVGRErQKVOUCKzQaKcBA\no5LCPCrKTLdPG8egbbjUscHM/h43HQCVG1Bxl4FIiBHZ3LMEXILWcE1sxD2/\n0X7+Hyqmxqmgm9BTMpSzqiDeVa8vbCtC2RkU89qpdeknWbHGU+2rBrpzlOWL\nGxravmguJmQXCov3GydSVIKpa9kaJWXFAENljeG3yyX0kAYPwUx3v2NyynWD\n/C4MYfks3tm8vvI52+umvhSGDSHZru8sYwtgAUhpC2WgmAq+XglL15Q6IJ7f\nDElJtyU4DF5pIk8+yPMW0vTn3qYrTf9Mxh83Ytc9uyCxFOWNGbuxSpK324z8\n+qzsxnsXU8vqKgVxYXj14KpUZJfZ0Dg7y7gic/NXeRNrf0t4iCnseJhQpR/w\nXeh29Z1nSf+vL8Dty9s2u/2bUbZ5MiPeFWM6a3hMNMU43MblxdGFPtmt3Y/e\n9R9x0B2HET+UzAdXXCzw0+rVFfz2x4GFMvU0q4wVBMZ49fYOntbWJ6MIqU7v\nHaYK\r\n=ounv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUUukaEDG9DpkOnUXukvChnI5S3xHg2gGRkCYSPuXzXgIgPC1QyD3nOJJ7ZbnXdoMNRMo5fwA7K5BvKcgkKtj1EaE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607380339854_1607380355844_0.7809208883625478"},"_hasShrinkwrap":false},"1.7.0-next.1607385217481":{"name":"playwright","version":"1.7.0-next.1607385217481","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4330.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607385217481","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yL419SxM64UiB+438wJHCDMl+tXx/VrFT4MoPiFqyXXjnYeVEupwWq5NmK2r2MN30PfJN8/fCJX3L6WIzeDyhw==","shasum":"5e8dd3e522bd3859e2d0fbdbb755e4358a22d373","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607385217481.tgz","fileCount":179,"unpackedSize":19175097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzsCOCRA9TVsSAnZWagAA3iwP/2pjYU5knaJqk+V813Gn\npkFcwnZV+Vg3eEdljQckxNcTBh9wP5AXlEcgzCd6eyHJscJypBeMFFfy/lGM\nfAE02rb1bFGRtXskkp4Gqj01S9OjSdjtkiXw8l9xh1p9/IUXJwwRJA+1k7p3\nER18ffV6TkZezA0fkruNJ12NQb3son5TMLCZ+hiP5nOvMPNWqNlHgMvIhhnl\nFnjCju5g5tDbawcNtI9+6leBQrEqQDYv8O3RnWcjklLJnPjYUyyhDBZn35UG\n2xyOR2dXlwiMkkKVEGZPGdl8wHqr1Y++F9wo9BTSOOqwt+Jl2EI5kekpfxKX\njccz2cQKUVJ0lNPSLybWhZawT9S0EAkspFg5FkkcXR6LLJkaGBK3ErZgXTXq\nTPGujqVQoZvhNYxtjJw1HeisnDzzIK8cb1lGnbuNQwdxGl7cy/e1ivPHMlu0\ngOqVVfJuTSm0h52eqUUTdExOAk9EolmiJb76cz3nRJNrFt0KQKCCUK4oE54Z\nYZM5rD3589080tcil1Dcp6jY+K8EMSokd7luotk7fkZ06yiHaIVS1GOGv0UH\nTZbNORsmdehpg/I5hSXA/PHBhdT4zaFG3M5n+MiTzzG/m8VFnAPHrY9gyQLV\nrfPn4eDMp4C7dPrvW8aVyEnPK+AHnJFo8V100ja4dW1k8LJ5YM48f9EUOi/S\nyphf\r\n=BUiW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICIHWGPKp9uQx0nE2XRWcWYSJ48XEwI4Ktr0kHJ4SklsAiBGmoeUqHSxXj0OUYUN4fqD6+A3xyMkjScJqk9tGAVpJA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607385217481_1607385229787_0.9549616949812518"},"_hasShrinkwrap":false},"1.7.0-next.1607385441915":{"name":"playwright","version":"1.7.0-next.1607385441915","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607385441915","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-xUf1tGkn/fbpzHUeM9JVYuUPpi21WTfyjJI6U5OOvYooVwmAUSeL+jXAwxWrxksiDZhw2M9lUkstM9NFQGChcQ==","shasum":"64fadc71d9ab4be84a0fbbb006cf616acaf0fbf9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607385441915.tgz","fileCount":179,"unpackedSize":19179775,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzsFvCRA9TVsSAnZWagAA6z8P/0NjVrmsJYAgFM1Q5A2j\nefVh2I84ISb3ckbVW+W984SqzsRn2m5mfkMiC5CFEiQE6Ooi/M1lEeCNJqTZ\nDOLFKWJjAf4O//N7mVTvobJeLLZbUcNg57iZLhUgKwRPcIe/t12KEBsA+vTO\ng3+t+dpV8iw1nGZxNQWzqGfj0wHRtAB+9j/XNeKRRYO6h2oHnOkCwU4JHGhh\n2rfrndDR1a6y5/78AURyidS2PfLnyO5sfNLFlRxZ4JcTb9eLtreXrxjSYpFD\nMuXbYbaYaod8m1YIiJlsk3zOIVBcUhS8gEC85JotvbjPP/ZA1+Yb919SPS5Y\ntudNaupc3W0yZv8IK3+leijMN8uNIeR78k8lumYUnY1b45kIaX7vBPz+vS7V\ndMEPlFlN+OMqo3/kapTiYp+uMggnU9qaEvCUDjzmf/qZoggX2aygG6zdhn5c\nUU7/XljetKykNDwqCQZjLY/+nOe4tLj3VG7yNbJHX4zXtwmZqUMJfgvKniEo\nJta2hneM7lcDr9dzoZJaw7s58fkCie5UzoFoB0iSR3tZMNSMvif69+A8vK/6\n4V2RCu891stVzyUzoThNKcXPiOPk2cXPGGnrNZvHwMjMFgzx2ZtePhvKA6iq\nDGhnLQCw3ssfMFxMbBexyMuC3yWUmWnQUCAutlQcXtZfOaWrSIPyrmmk/Ios\n9NgP\r\n=lTdH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB35wTcr5JB3CyzfiyZJyXZuXQhm2ryeJJylR/oYGQrlAiAd0chz4ZXqqfNgQOyNThIntCysykiPHjgAlnX24lVlEw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607385441915_1607385454650_0.8758773603987182"},"_hasShrinkwrap":false},"1.7.0-next.1607386176842":{"name":"playwright","version":"1.7.0-next.1607386176842","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607386176842","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oLY5su2Xs30hel2WQvJCDUNkl+r/ccM22brF0R4g4VnPhkFVCgl1nLR0kAdvcAKJ8ftWs3mBsHk+LMf0jXLIcQ==","shasum":"840302fb06d73b9c052a326acbaa552f37247b21","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607386176842.tgz","fileCount":179,"unpackedSize":19182856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzsROCRA9TVsSAnZWagAAFlMP/iu+bNACQqJX4g0QrZar\n6ZovgCibwh9XLMeWaV0Z1zfcqBPua8vGRHP7uh5njSiDVwHJSc4SHxgUMrFC\nWlIFWl21PaYjjSWQFJb+JFKbNYntqn10a+ULMAUQvFBk/HIUVmzXm8PcouC3\naRVOQZy9Aq5GASXq4a9OFQTQUZCwH/HHkAsJwESY0aPboWUdSQiGQNpkzNpW\n8aQlPEjcP74BoGhz4zF7M8AnP/6TK/gbyJfmkK85Li6CSI4bXs2C9QH2ApMK\nTZESklhaJYGWnKfALHYdN9CuCCt7fPBVl+uyMWRP5Jct3XqZtNM8ApXdJVvS\n765SOCF+x4mdHTOVQMho7dCzvpMOA3K5me2sxcWt05IMuXBn1Jnf6iNjeRg7\nhjKCCvjMUfhLxvnsyOO+0UetpjbNN12nEmb6xfpY7AHpFBadHJxgu2ULc23L\nhdecyZ9ariLm6QGkxtyadKN3BeWG8j9XIQ3jIUUwb2ST9IPdKJh/WcVd3xIa\n1fVBvsr87HjUf3t6CL+SaHa2K1G2YaNeAVBNsPcdwP34icFbJPgVHDeFDQKi\ns3jkc2ctbRLTHirEz0zWwJ/50g2v73/n86xkyfeADJb0ex3T8pYB4Q6J9McQ\n7mrQ6YFDPPqFlVfdEfwe7t/IYUTiHyVruE7ixQUsXq56ExKy76vmVtgg7/PJ\nVPEp\r\n=7UJk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHHjlfJ2xwI5hekO2AA4C+VUZJWP/EO3QEnTJblfIyAmAiEArg1AmCrS88G7gnCp9OF92vdlBdG+eoyc5TSDYD66BIE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607386176842_1607386189921_0.7273383607447372"},"_hasShrinkwrap":false},"1.7.0-next.1607445658705":{"name":"playwright","version":"1.7.0-next.1607445658705","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607445658705","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yVanKjaXwMi9hsIczT0SHqP9aXFAQxvWzvspiikm2p5mrfXcVO63gGiZEYGwSGlA93h7hb2KYJjft5U0UKYEuQ==","shasum":"715ae45514d0b3bff045f8ce2ca792b4cbf11276","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607445658705.tgz","fileCount":179,"unpackedSize":19182885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz6ypCRA9TVsSAnZWagAAZ8EP/3yyHYYVje5I+rIYb0Cz\nST+CiCZUyou3bom3SMOycG8ETT18Qlc0oievyuct1bw+hYN2SQxvGIYHoOoL\nJvRqdxsKVM2rVoauJFYsEd6UXygu9Iv2iVzvfv8D8zwqiKp197XL0S1dYTnO\nXgW4sB5sDwsz8HIW85U/3TvG8ZMX+vvmRcYnwXLgKog91Xl25Rs+f5NaMmJd\n3Qbdn+ydbybo6UTXnMX0OU/imsAxXyeeWsdBdibX1jVStX0/Nh0Kgm8mlgPQ\nV1mnU/YAo+ZkfggWW7zZBi2MqNWmbmEsFgaTNEqgtHYn0dBPWaA3APPi8K2G\nV5F+f0DFQq1Yb2V51GDP0yp+eI2j3KIS6ypwzXh8t23kVphemTViGL9lB1Yj\nqRQ2aGHtddAJtqdJIkGCUqMDISCjvFh/vBoz/K2KBY0st1ia7SyRFrlfU9q/\nmS7Di0yoH825oVyulWn60blJ+HN2d4pU06c9lf0nPu2yrAmGjd0yhBF3eDvU\ncYy2zgvDq+gzOp+fVhvYruz7XbjIHR/Jn8nDKkENkImitDzBBr6oW+0rfbjc\n+BecAjK0ntfB/k+ya2Evz4ojG1D3U8G5g+Q7mAdamcJbYeGlCI7HpEKczVJj\nKo4NfTth6h/gxEo0pthCqM1j57JM6DCbuV/L1RHtkck19MYLNqOeQhxYGkeP\npbnS\r\n=ERKd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2hpQLNimIN0/kdKjnYgD+yQn/WFAaNhRPqq7FdJZl+AiEApk2RCoo4g8ITZr3vd46/ba3ebQMLuhk/1/xtZl94OSg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607445658705_1607445672961_0.3336145592456179"},"_hasShrinkwrap":false},"1.7.0-next.1607448795868":{"name":"playwright","version":"1.7.0-next.1607448795868","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607448795868","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fqomvjGihgmflA86gJa51ApqliEJZ3Y8zRlOv8K9vng47N4UY1dxQrpNoeP3jnc2+ueQbkHTCiY1yw6jDKvK1Q==","shasum":"774f2b569be4a5b18504b62890cf55de9edf57a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607448795868.tgz","fileCount":179,"unpackedSize":19182885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz7jtCRA9TVsSAnZWagAANj4QAJWeu7lyuQ9Xu1VW+/xO\n/kca+MJ7E/EC7IHs7HtZJ7XMzo8mKpulIU7auRyZSvsO+3Gw10UyJfaE4XFi\nWYiahuVgIxwodBrbN9sLGHx6Obhy2j2p1cPyeA+oUA/36hDTM29eVRRzTIk4\nyHYN3gwuTi85B7k3vjcwzNhYhAwzYzeq4Z8F+wI74LQ7zvMJDlXX5X4yePNO\nUs4ag5kAJRdFIdbgvSCuZ+SO3I9GBDxdWtMwRy6PqTJPH50IjK4ob/Zutrbe\nF4k/4HKkBqNT+XFrjEVzoHjY8zFnuT84d5HE2o3nhr0FGsDyNjmzfi55sHnD\nlhRePdF6gppvgw/q0khEpdYe4VKI6/LknEEwQc373JYEXTTnOWHgQAdvplTX\nyvPmNLhohwy1UVPmsg+CO8bi4iWhpB0PPGBidZTVFaIQZ4/rGeo8HsgZT6na\nS7o7bV7nJNf7H1++E2h7anaZRDNPyRTEbOeCAQuwqZp6MgoSKlq3yLelzrVk\nV8jFkh0KC3OeDt+DrvzEqew4Eov4JuIxtE8JMrzNUcFbkQ3jsQ75R377Kl+2\nkgNOf8J6NB/ORkOFJ5fwBbx3Nn1+ITOLe/ZWp0pzqf/sOuYgU1+iC8uOrTJb\nxLDs0Gj8CYlH88X70GSg5gyFyCaGA4rBA83rHsLXlDF4W/8eVkzMkXSgy/Nv\nRHik\r\n=3be2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDho4CM+fXQCdcSX5a6NF42orLtjWIlvngiyta7Ok0UoAiEAkiPWVtO1FPQc0ZT/0OjiGrJfm9E7piTc0zNa5xAOGWo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607448795868_1607448812466_0.0968979841015214"},"_hasShrinkwrap":false},"1.7.0-next.1607449048582":{"name":"playwright","version":"1.7.0-next.1607449048582","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607449048582","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-9A49TlWio0km9CIomh1Uc+9ODVUZxWzp+QbQRVN+50vzDoh+lJzqpOyQTQGXfS5CTR6DDo/IsRgF5H0fClLW0g==","shasum":"de3618fc39fa1fc46ffe1870a67d19bbc6451e27","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607449048582.tgz","fileCount":179,"unpackedSize":19186058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz7npCRA9TVsSAnZWagAADa0P/joCX9OMtBu1fih0kEFx\nnn4OoHkXmRtsXy7wZSMdI+1feAUacS9mZRlBDRFz5dhxQHeOApfeN8mzelyf\n+nXmq9UPyvD1qXcvg8UgJ227aR7OBKJrIttIni+ZBSLz3rlMyaJ38sFckM7l\nLXsuYSpSoJTxtncUvsoz+YHQu+NaB8ytOfpBPq8is1c7NghdzBStZfumkopG\nbQqXHNoISqposZ4FieGafL/+jRtx7MaYSfh3pskQOABPZCq/qvuRv35JiRwW\n1rDoxVmzMWxGcZbvdc9xbJxmd96D7tt2syLcM8cFF/C4mYPV0FYNQUco+XdR\njICJPW60yITyUnbccXzRPNGClJ1/M2QcYvDX83atYyoXDCsWO82d+JcBgrx9\nPbN23s7PefSJpv7g5+m6Ye4zfQjcySdpRDSQaejQkJPIVKT2ZJ7UACJAKl9O\n5jGcSUMEMrLS+ImRGGTyN0XhYd1o9K7meSBDYOzsWTweCcpk4535XXO9yLjx\nJdcnn3V5G6w7HGmG7OchBlt0zXIGPcc2W+7zdLaDyuYe5jC9b+N2uEM+ZHra\nKq+HKIL9+QEIahoEMfVTNirMfYan0uiA4OJzB/G51FLriWR3ONEVGWqgo06G\nL3yeMvLnbWBK1nTBovQ/Hk/a7XSv5LOY3tP9Zi+52R/ndNDXBfZk5o221s1O\n5/uM\r\n=n4Ar\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCY17E75/ZJBtM8dfVNCAhivRD0WZSRKRt/4j1ETriBGQIhAKftCwe5K41Ski9pO9MyTkPU4t0KBqFZCRQMks4PUSV1"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607449048582_1607449063949_0.237462404464315"},"_hasShrinkwrap":false},"1.7.0-next.1607449257128":{"name":"playwright","version":"1.7.0-next.1607449257128","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607449257128","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rudLsaCAKNklYm4s0LN+cqwnbEhZ5fmRiC8ItpFVkb5diCci58820qavVGfhPDrqmZtdirDjpGFKVmIJoS8Qmg==","shasum":"9e954c566731650a45ad179537cffe3b08a95e12","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607449257128.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz7q4CRA9TVsSAnZWagAAqtwP/2L2Kqztjh/wm7GC7Llw\n8yoiR3ZbPsHBHGwSQ96Xuz0sAWjT8/MGD3k7cKrUo4jDGh7HsVD5UEwh5Ca5\n2Dq8vUXVShnwiEshDoOtR+9onVvVGbLimSnTRDA0WYAEPJPxDcNQ8GhWu41+\nGGma0p5+vSmaKdGYNR4Ro9NMBk+uMj31m4QTRyI3Y+t1LZFCGJ8Lu0Cc9gyx\nB8vJZIdc3GkVVJIW07DGRM2Sbq9rGWmc++XxnDPXHGP2LKmmo706IrjPRq2a\niaUdAcrrfh8Xk4yjFI8nY1Knif9WzONuCKmZt0OzI3kDms91DP33az5Iy7Ug\npTmg7vccNG/dJ4eTsB8lgU67y0u/xATpjfO3axN+Vmnz7B/OyRiGg9klCArX\nNWSE5WDO/AdcCQ3/+rVxu+CUidz9Zt9lHp+pL6fAJG2AojGqf6kMQZ5CDlSL\nPqLfSgTunz56SSOeAqFR/vucnGzZ2zyck+Ew3BHtNIk3feGheyPd/uSbAdJr\n+/D4s2BQoq6mf9/UqxJH+yz03rXJSSEEgD373uLTbOg1TirkR18PZ8utZE2A\nCgfrFpkHlPuk/vX5l17Dldwy7TMUR6PON6kbB+p0GytFbc6pSEHE4bQKY9Z+\n0AuBaETa2GNUwjPHRbwzlYrUcHdvc7GE/zwLoK7LK34QQvAzWqCBBTMAqq8N\n9RW0\r\n=FlrJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTt5RrZsUfHGZYCWkHBXBoXiuKz2CT2kQNr8asARrhMgIgCUysPDl4xZviNwHDIXer0F4tzRe/IYrNs3MkyqvG9aY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607449257128_1607449271657_0.15875165671257574"},"_hasShrinkwrap":false},"1.7.0-next.1607450524882":{"name":"playwright","version":"1.7.0-next.1607450524882","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607450524882","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-F2wmHPLy8hBCDw17QZuq1L4sS7/FbWuvBmfmkvYwpEb5BmI4ksiV8Q40JA42gGgzoHlSZaDmxAzX6Rb3CFqYeg==","shasum":"f5d143198f1a87e4baddb915f9a9129b26dab2a8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607450524882.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz7+rCRA9TVsSAnZWagAAJZ0P/2OxiI6ltJJ02j0wxbbE\nlSioooJWu/gP0eJoeIP83dwl/GbLgX7DrbWIotaXiH1XH1fWkWxqCkmrv1IR\nSVP4q1/vxdMBdJrSz2Eu0gwDEYcZn35i6Ur9VNr6IsiPPaF8KY9TnH6ywypE\nslyy7duvZdmabzFyCJflA+6hBCSY0lgihktpL3LhvXKGYJMWD+39eX8G2NTl\nBJPPnrj3dBGUuNbXdmssD3aWA8p80pUm249RDHxku6vQJe8L/U5llGYlSUJA\nkuiT7W2EqNnFxPub0fP3keTaSiNjMRkajoEPZrpRvfNRYopIj5cUEAiQ9jgk\nwBn88rgvwCoIAXVmlUDaN1Fimxa2B+dCFBi4PuXbaVtjst6ECrXmS/kvwzn1\nf39z8p2FyndHfzofyWexeUJKGOvQ8RkNlbaQQX3HXYfGHL7osY3ppEkrTvGc\n23cWoYiEsQuY9hGL2kAL5sKyD+rp0U4a0h64mS+xKgz6T52CRVAzdVxTfQDl\nHbus6usnkt11afWBkeHyormIeA9Xz42ex5H1+gRY57lsoj6pbdFc+pPxRMYX\nobO9jqsKZnJxQsjmm17R0gPeJfQNT9Qz0jFB2SfA8CstydPYZkZJkNeAV37S\nqETz3dse0/go7Ps9bNmgq828CdOzruHS9PbwPfxbMsdIRd5eRxIIYKd2oKWB\nNf5V\r\n=HmrZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYUwrSMHI3mlXrxbdvO1mVj2AST7L4M8QKTHAEhBQgJwIhAMq1jaFRN4em9FS/DVYdAY5HDKn02FQPCKb5ctmKGOgp"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607450524882_1607450538573_0.47102720345242477"},"_hasShrinkwrap":false},"1.7.0-next.1607452139371":{"name":"playwright","version":"1.7.0-next.1607452139371","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607452139371","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-kq5BuKDQFPTYhGWMf1ZOpf5XEE8lhiC0R8YMxV58mwbmL2fhZ+OBMvDzU31QbmxrPjPVyfopqgCJyl8Supqi+Q==","shasum":"fa5bede718cc658881723827f3372d477b9ff71d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607452139371.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz8X5CRA9TVsSAnZWagAAkfAP/0Bg1jc5eLO+FPM+iV++\nG/lCFjuXmmTv6r+D9dDpP8flWhyDemwvAy5uJzIqqtoJol3u4A3/uDFkuhtS\nfBuJOSYlxBagVNnyn3N20VnH86sFQMQORc1c+4gs7bpMw2qn4QUDu5AkOyyz\n5h+A3Bk+rla8jgwo2funbfogIqnaD3J2/fBUjAnAHi8CUrBHNMQEK0jYysZt\noaRQLx29L3AhXAK6Cju8YoHtdY7/3voyTOkXh1jSsVBEdyTlCO8SYTYsSWHa\n8Y/c6Ii3SBDUhmLPCE87WdG8Zpt/iHhG+nsVd0vedzyE6CR0/HeXWy+hQzCh\nCPM6DhwuEORCnUadMoidGqnzI1+gleoC1WMU5WJG9L99IWSokxFiz2d8yxE6\nmhce8NxxvyAxkGRltSQ0pzjIzMrunII1Sxi4qcKaK2Oxh6R5bh90oGQdZ1Rf\nIsabcKafu6h0G+dH0so0Z16URPV122zhMpfgQ1gR4DYsr6pIHv2MG7TCLOks\nYhGuMRnSHeoPsqvrjvcJQo76nZ0F65w12S2E+K1XkIQ192oVdEznZM3bBH9f\nUdj8clf9P/pG6SbyqlmuJB34JReA5oAejbz24bOLGJCVgvjSjiFF7EWhreGU\nt8YgySf7h8OdiK3mwJtcKbbSA+XkJW3FU9ueTulIMPb0FCYr7qkj+2wqpyDO\nkkCo\r\n=83QE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEEnG9Zn/2UIjZa6DTZA2MK/6KkD6SYhODHaGfX9pOe9AiACd5KT0nnSempsc7/vHFSfJpvMOlbSQSFfGBNHjqoqJQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607452139371_1607452152897_0.2637444965729028"},"_hasShrinkwrap":false},"1.7.0-next.1607452899273":{"name":"playwright","version":"1.7.0-next.1607452899273","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607452899273","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-4OytxC59kQix4W3s1aq4vPAyhx4gicAEsqdsU26op4K9rbljauLuhTS02/xWCAcAj+nIT0qK29ynYuKp/scdyQ==","shasum":"ca55f4848a1475cb8b23e717c4ae39cc442bf9b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607452899273.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz8jyCRA9TVsSAnZWagAALC4P/14VcdgU6lza7pxHuCOu\nWlzk7qnzuCFHcC9yLLBueQbqklRRvUZb0tECk0b4Z5knXzfzIK+cZdpeZhjV\nyf8ZB/kbV/0qSPG8SQyhQFkj/aCymCm7VLAOcpyhEHxUXOMZJAXKTWCbQT/s\nGHD1ilER0qB4f1b/fLmk3rmhsRo5bmRfxD/kcHvyTJ2qgjsDbalXnnTVuNKz\nBbb3n/0HSB/rYOiass9uXVjWAWwI3v5y6cTEpbFfUHtPvKAp5NyCKOhG6dt6\nesulSD/LXIhaPuqPErtli0+OWAXA07Ao3nZFpTuKSVWs9XLGf556Ey5sec5U\ngTx1H1/sPthQt0D2kKSh8pJqtefVII+aLkf1Fz+6pO9D7l4uIHjTlEgW+F4c\nePSDB1e4FzOu1HDjq9vC9iwPykuwQ6j5WgyMrrMvLDggfCvquXZg8YoVWpO9\nTpLwBmISl8WP01jm/5Kqrbl6HTQHoqGSS1/elg2YgBai37B58q7N/J3lMXus\nZFs7PosozuU8+60NDi5t0L4XuVqjA1OiKPOPy9oSmmoxSYU0o1dvSWaIxayr\n+EfLJS0ccGyRf2VajS1uM9RvOiJJxkmbAv9eFJu7mIx16SvLRwvbQwtRCHOJ\nbSgXVGinvgatit5a1FThrQ2ow82feSGFNuZZyV7mWatzbjmVMNfghOZ0nxEv\n/RfR\r\n=Gx9G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjyFwWdHNj4PGRfDTBKNOaKgTz+TaFhf44a3E70HiY/gIgYLztYPz3beAjsGDNAHynFBgte7cMagok8xLxt2BlW3I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607452899273_1607452913318_0.45039174379520985"},"_hasShrinkwrap":false},"1.7.0-next.1607454334180":{"name":"playwright","version":"1.7.0-next.1607454334180","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607454334180","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-9Alt7Gev2HLCwnFJ8jpKSweLO2m3a6D7PZSlFY3ClfspZ9d488e7QXexJNrArKc1pekjFpV7ycPVJ7aohZ2uHw==","shasum":"dacf8b65a3dbaee1fd50db2d650d6c6fb42aef37","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607454334180.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz86OCRA9TVsSAnZWagAAFpwQAJDG22IZ7B542it+je6w\nmDf+cwxh3D8AGK4B/MPC5beq8mdYFLcQ2beZqVuNQ9e5258dEDLLsBTIWUfj\nN1csg+9J+WnAOh8EJj35e+1yHVPcOBPkglRwK/0ZRjQ9QyY1wSizrLdXU7fX\nSCssOQIkkOXSCvPUG5HxKUSNa16wL5L5cLfXP8uVOCgjgWj6jEmciFXlexBm\nQyh8e0ZrGP7LuSBimsDEFSNTE9s751XDSM62MdljxYAg03NXlgA3lagpasjG\nEes7osEhlmj52F959iVzDUJgN8BlIWyrPFrqfm9TwM3QVWBx4qFqwJjtAPhw\nJXSzggbMar0K93X4HMmLnWwaZKN83F5ly+tvbLu9KdCjvorVHhwf18L5ma4+\np+wcf+UGAelNRNEQJ/jTj/TGy+3VLhao1bEl8j/DM7MS9qVgjq93QSqu2Bld\nXjuoDfD8dqJ0iUGi52jZws4gprUq+YNze4cW1LFz5Y5uz02jcrg8W7HspTZ4\nLVb1FAVvxc6k3MfGtnCRg8ZviupvP2J/gYYaPKKAwMSIPbKhlXO/+fOEvjtD\nUU21KTakrzLYFSTLrwieMezTiHhwfWSIvnN99zjPn8cuWHh+Fjuljvd8S4A8\nZ1LHIOGNLLDiyccByMu8FbkcWz8fqxk6zG3qTt6SEHr6bL2LymZJdC3hq/z6\n0r72\r\n=9CmP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNWzvZrH36+47gsvLvKxpkUIulDVFdw2R62NJh5Q0SXwIgadnNB5VW1BuCoEjf1HyYZYwJofbAPedg+zzdg1BBBv8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607454334180_1607454350187_0.06838092912066984"},"_hasShrinkwrap":false},"1.7.0-next.1607474103140":{"name":"playwright","version":"1.7.0-next.1607474103140","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607474103140","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-y3LEREIYFCuUm5Yy6feQb1OhmDtyuCmmbsm/pxesqs0+wpeBz3HYirHI7E+TW+GAsnh8PvwVuFjUIp1QG+JVxA==","shasum":"80170e65d3907ecd5cfe276cf8b53d9d7882c1d9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607474103140.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0BvFCRA9TVsSAnZWagAArNgP/38tU7ps0RK8EuB/UyyA\nfRBHg5ALPdCh4JYRDQmfWYgtX/ShKG2XzTeRZQg1gIxLTYsMaoo0tMRy6xN/\nS3DnUKIzXmXp0Df6MYGr6eYX9SicksPl1xWY4NNzY2ADGCgXvFrizXnSevR3\n2Y1Sw5KLAgDRz5edWsOB6I0wkP9mqjTs6hGIBZRE49nirBtO4rwlJSibBTN0\nwgQOSrNADqmz0Ev2kX5/zWL2ujSTRK4T01b5LvMPDfqtZd+uqbEI0G8q2NJb\nAPDJ9NSoJyi6cTcq3Wd41HTAQ5iRErA1M3TCC1caJoZWBzDBw8amfq/0j294\nWuWSHx9q06VjBo8jbBw2AfV1xXMSWftaIfhxc4O1GTCMa+SPigLNEz97HK9D\nF/vlUopvlkxKQcPFHFAKjrR+VdyPRgnuUW2ywQPu9iQjihTrw9mn96StvsdW\nITXEOHcb7HZKnQYR0r6iA4Zvn0FnSejkFcbSo70v6ZsFjnD1JJfXXiZcEAtu\n1cVsV7MxhdofqxEKH2Rp+p9Zbo4RsG+OakuXNtVYltj1tnTTULxLTx3ZwLUW\nmVrzAxehokEwEVUV9TXt2kQRPEzT+ipHJMQmnwrbDqceQlNWFU9ykjNAGJp3\nCrmhQPwS9qUTKcVh12soFpXWKAbRngTLWCix+2PNmHD+6Ibz2tGDr8qtlwBJ\nhxmC\r\n=7pYX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICt98XnoJfFwk5VoRvrXNPYT2vvSDtxvUdPbkopPYf1IAiEAzWc7VxgckMa7/GAo5IpAOKUe55OwkkTEt5nI2mCmTk4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607474103140_1607474116724_0.6818981944295104"},"_hasShrinkwrap":false},"1.7.0-next.1607476687683":{"name":"playwright","version":"1.7.0-next.1607476687683","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607476687683","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-HI+i6YDzUXmvVD1JvAKb5DKfdzCrj6QTZexcIbjO9cC+0dU3hAJzcVyycukozlxm5zufKs2Xcte7D4vx0BDMHw==","shasum":"e29af04a54cea52c709230de6b1a29df3eb5f87c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607476687683.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0CXhCRA9TVsSAnZWagAAF+AP/3anLShUdInJVLs93X09\nwwB3cU/Rnmytu2mmIIuEcvTHe2NLtsBl6dcbMK0NOUUAe6VAbPDNjczUD6mR\n3tUxsvXy8FzUP0B05Tt7AAQ3HZ2Lm0I0hEW2BGHEhwspbS98HR4s2g9YOU4B\nkdGcxJRvJZB1qRsECBG0xXtPCN9x2MGGDZRou48pycZZyQI/j1l7mNaeUd/h\npzngPRpDddS7bcpLrG62dmzVyokgkVt28Lkp/+lwYhCJs5dXrl3eqbz+luZD\nGUHzvbI8FpVBrUXPU5GcHxcQQpbdMcbAuAzfj3pmEAbMrJHBjneta1Sl8QoR\nw+DnMzWWpR5ma87S1Y0UEyeGkHj+oQXDU/JMdz1wr9O3H2cM3h2CXs+acgUm\n2OVQz+KEIIfd/eimqEJQ0UH6mLNZZUpC3PyfnrLsy++iGW+yGMMWvuvFo4op\nieIKp1t9vi4FeECade03hoJ++rVlxnPXKfY203J+e4Cep+01wtFFUcrwkULP\nEJ8qpweKW7vLd8uvs7a1w1xkAMmzIW1NEdYCGop6jlgTnkPLXqjZBa2TNfr5\n4zJ1xCJSHncUkd/SqLrHhTZrYYKWcwmdioNPCOQFAR4HtaW7CYDVtJvSIVoq\nHExEEMs3Olo1tB7LND8K8hxOxlQTZ0khKNMNgkq9FSpc8kflnxlSGlekbpD5\nEp0G\r\n=IbPh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEyoQ/h3+orMkuf61K4szeMxHHDwluUXZjzXib+CklF4AiBezRQVLEKDMh9hLL+41jbGEvr8CbPQeJrvxK7ARmpK8w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607476687683_1607476703986_0.6024642681069909"},"_hasShrinkwrap":false},"1.7.0-next.1607481242744":{"name":"playwright","version":"1.7.0-next.1607481242744","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607481242744","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-k2GOffNA02lp1McXS1Q/nSDyhc58HP6yD09vD0gQDw72ROmZnuxkUhDqjCovLVtLQYdw9jGJ58uiCF8LL0YTDw==","shasum":"f15b4280606b0fbb258444f8a3f4a5527aaa84ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607481242744.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0DepCRA9TVsSAnZWagAAbQ4P/0Jbkg+BStsyHI87bGN/\nX0DK5sZRReJmN06oPioascm8+wCpAyP3/4fjt5NQ+MT6g0HSgJW9m/9aAEwM\nOXaRxwTW9syAi57J22fKT9LfUopw2LUdtSSZVldw1Z8sFWujphvASgNdbOwC\nUKjOZUIP6tFk/j3eppvG2xXxFhPATuHdZmd7JSir9Q8145SlRXajThm513jH\ny+ZDFN8NfOZQVVE/hh7sp+gE9NsFjaa/zGAA14+RGRzSfMJighSVr02VctXn\nsZHWmwp/OK7IG8n0XdvNRJ6RowX881SFF6dk7LjHckON1hySKNn4M85DHq3x\nZ9oR8vFw5SEFPccsFyOt4ybolv5KfqdMJXdAcqitDv8XQjOobjAPXQg7Yqss\n2xAFz8LQmL0bgp6M4msPCcN+NFV93HUlRYp3q/jZzGZo9WSi8DkBdstiggGk\n+0X8aXI0m577jHABY9ZqyFVJKp41Q4j9djnfpXPE6hJOsQT1hvJ628blOoOS\n/aAE94UZbi2Vlb6YDa0cp54oMUxclce1uEtMZI0TIbVsnVUc8nr55A+Cfe65\nxXnOHeUfgZtI3bqZuIQg0G+gTEDtI+3LerHbK6/OAaN/cwQhDPusLTIy0hfS\ntQrs0NHSRSdmyYbyriXoZnQ7XzSP+z8UdTnOo7ThY9QyNKoxvdCg33601sfs\nZ/qE\r\n=Rkpn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4bPeS54t0rWyzs5e/zREHB5w+LT0gZWukz95jVynCxwIgTuXeXhEYyP3w6mJ2KdwNUFzHkdlf1pjKxFPtdx71JZE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607481242744_1607481257116_0.7209458484651021"},"_hasShrinkwrap":false},"1.7.0-next.1607482080186":{"name":"playwright","version":"1.7.0-next.1607482080186","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607482080186","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ChN5Hx4CHqgAKUHKbasTsCSJSAgzqWiajrUKoGF9adXmaGFoz2gDT+eM2wfrbWM2za2sKPzLeH33Ejp93PZ5BA==","shasum":"a6e50eb628b0164d7cc30e54e83b30025748109e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607482080186.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0DrwCRA9TVsSAnZWagAAgtIP/REvu3tOIDWBwljfSx0w\nsgYBow5z+eG91sIJft/ATtzjfl1Ci7cC4gaojMUHcLrH3HWf4qmivt/9v1bE\n5MBEde/7F6/Z8MIXwDZtQMO9X23xkaY6PuCaplU0boRJjnZ56WhFovjf9LIK\nGetEW78WcnTuzNgwX6m/KeSC7IcyQO1an2KiWoDzajA9HxLtc8Xz8ax8coZ0\nFkfiZ91ipmR+KoPBbw3SNukor/0NvVwO9hiZP7aiGGG6ueR7VxdYtwLV+WSy\n9E7C7jbYmmp7zqA7vlglTw+MJV4+zi+vnjDg47OrxveWXZxMDrKDcsjo/NTU\nwWBge8g7g5F4TIDaEQSJIJ5xgkaRBJ9OxW4Wl+J15ifUfv8PQNw/D5OmbWTG\n93TWK+PybqqGh9VrU6rHWkyt1xbzLe2L6vLYHl8B0asN6S/lPXA60IYc4ld3\nMlOyV6EoEbSOhp2NkR9RZKo/Jkth/ia5lHH4aVvxj92H6jc5sddp/oulj6l2\nayenlMnxyBuIWUTIbWVvHZ720a6R7i6NyXqY5rHFFN89fjMZHfnBHOxN1tvc\ngq1yuY78ud3cN7ppBKW6C9bsUXASmTHWLfPrSY38jsFcvKZqNaSBhOEPEgFm\nnXHnUAp8JDp74HqePiCdhbld9xNANz2qSCasiagmxEYymMcEBYiDHAmB2PSo\nYNoB\r\n=6Mei\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRWwgJlUGFwMf/J627Rg4kf+B+HvV47O38Lct6fit+7gIhANGIWBaFEh51eGW6FGbhNuBC6NdzKMtihVUkZHNLJlYx"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607482080186_1607482095420_0.32248093624258956"},"_hasShrinkwrap":false},"1.7.0-next.1607487467282":{"name":"playwright","version":"1.7.0-next.1607487467282","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607487467282","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-vhSJupDYXAFM+O18tAnnho+YdnSVr276twUAfYJZ6zzAxs8MGJtYo2aQDsBLQU2sEvhTqqNJ3ecXUA9lnX31+A==","shasum":"c6cefbf300f1a18b814c52d3aa6b4ec7940cdeed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607487467282.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0E/7CRA9TVsSAnZWagAAqa0QAIxiQpSv71OL3MiZhjfI\nr5fNlj0FFpvzZ+B+lTq/PvpxveNggpxC5w8eoo5N33jMjebsOQ5QZ0oLPctG\nca2UppiydKlnhjIB2iG34tau5XVCCYcRKhvLoH55tEtfz2F9+Oyvo+of7CZb\n18Z8qcMYGJT0q/FiZvMBhpmabk+ElnunqlHubdqBiUyQQim+zE4ppWBe8Lyn\nzRppVZ1tzvS0couGcaiYI9BGkzXmzTTG3fab7CPH+Q5VcgQr3hJtx7f0NQ62\nA53tIsgKsU6lWSN4jR5UGQZBKhf26qHVp40SxA3l++Ys6EfG90VtWc1Y3FZu\n4P3L1ckw7idGJlF55dyJFIcWSKA1+xt7HyMtjnOecTob58F6BXHdYnPOz1hq\nEx8T9nPd0qCmTx8E5/jHhVeot01gCbKAXGeTHXMFIx2fk/ZZo5QabA9gxH8r\ntE4cqEjKEH8qWovB2x8fEqe3flJOR5Xs3CXl2GAxrfmdntfqvk51NVjViHwo\n6cN8gEvBo2r++yu62slUaLbTsWzeMvCdxyUQRI4mfR8ERVYyLmlaK4UQiICq\ny4TAFEUwUtcRElsznt/wbhD3N9XKY7n+v+neAmSz610+j/XPwhlUyWGt5trk\naMXzAeVYzM6B2YuNTHr5ADBgID4rCfNcy6J0v1HKcRXI3jMnF2KLfzrMdigL\nA1Ck\r\n=8QXM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkw9HanyHoYNFT8uB6BrOhDTBsv4bxAM/tJNOjHr+WoAiBnhlCkwk9PtuitBMWYAJOROwdpBfaRkWUTv5nlb5mL0w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607487467282_1607487482357_0.9408400293635355"},"_hasShrinkwrap":false},"1.7.0-next.1607493211324":{"name":"playwright","version":"1.7.0-next.1607493211324","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607493211324","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-xDxDgk6QIF8MIJz0VNt3RKoZik1AiZHNnezGtYLRti8pi0RRBWHUMVhm6V021B7tbwfkcyn0GzQMLsGSQnGrTA==","shasum":"b9aaee53129eb8da189461cb9521318f66cacd31","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607493211324.tgz","fileCount":179,"unpackedSize":19128977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0GZqCRA9TVsSAnZWagAAYHEQAKISRxX6AY1/dOzvDQfb\nftSLOj/vnVPIvgEGI1GrEOFP9M1nQFuGMThMRh4RqdOTt+yHEAoQSdWQXAY8\np7uuOgGlUoQS8kGf6OGXL+43qP4Zj+qYd6c1fxA2PZBDIc8EkOBgqj494n2C\nYJAOZ3zw7Eak0fN5lj9dgMrYRhscbEY1lg+LwkXKFEfOXxP/6Uyf41VUWW0p\nHcMtXfjASdoYXooZDPHXnTnPHFIdTHhM/7rx8TaHkE4hJKC+Fh6bbceJvSSh\nUVKkbrzsFoizLV5R4LD0SGg6YAicGjwwrAECnSa6ifCjT9KrBQWgywPCp3/O\n9k2pgmbnDZ5BhUcApiugUKkbyjkdzeFKvXvwfXGdka308Jh8PNaOh839oSWQ\nVssgODJDxe1aBQk4QjGiqEliGoOGb0+4VZZaoTDDqaaCo2Jijykv5Oj/Xe+1\nHvHlHLi9M3h6BZNaqcFfN6pM/EzqCCM10jJVJe1jfKpkQMCBfCRBWEYi0eLM\nlurYkQ49hJt1+i67hIJ1t8gKf+plsEVQBFGlwNTgLDMiXd5D+yB/LKfYCYCG\n3KGRE17VCXFmt6hwFd9uExHBpfLsZbNinNw/LAHtBJj2MEaZpm/nseZE8pfp\nLCI754wLqSbovjIwQhKE2CbD13GEx8eaq9XiJH/czS1qKn2JaIdiJH88Tuz/\ndVdM\r\n=49R5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhrPCa4HVZSsQnPBg83fgHv6VhruBisQWz55J7l8LfRAiBE49PL+8VBWSbcgyR8fGJvUpAoP8ULzoaHX/iOqWq7UQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607493211324_1607493225516_0.8276544017132763"},"_hasShrinkwrap":false},"1.7.0-next.1607533624800":{"name":"playwright","version":"1.7.0-next.1607533624800","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607533624800","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3tA/Ji5PtqqQxl7y0e8Bi13A3S5z/7KLCAqXYto54gDFS9x6I2/BbtiFj2hrXIvpOTXPEE5rMjrtDfYPzdwosg==","shasum":"beeed62723b6869f595f0f10c900e157433064ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607533624800.tgz","fileCount":179,"unpackedSize":19129298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0QRJCRA9TVsSAnZWagAAQgcP/j49y3RDXvKXit5kbezJ\nnxXxtO48wdv+/HZ5k/QwwIaA8JAW5hTFcgujJ+KQbPMs+rNsK0+ZYc5JWWIJ\nJrDAjmNeTd//7cXeRhwsicJJ9f5QQvXpFiZw+Ifn1keESAIXRn5NgXsL5yX6\n+I+9r2ZuSWIUZ8CduJw1FYF93ec+jbZnhpnHv5pAcWIg/zTQfr8GcMAE6S8V\nFYE7gcu9OzQiFUHrsMUbYbwaOUgoyRQloM7DHZaADKxw12ueY+Mlww7FUfAp\nWFMV2j0pO+/H023+4TVzDQf4pUqz2ov7mAlJc+WBvmVTCMwz1PLsvM1khQl8\n8n8mGgMAc65QxuqEjdAoRPdFEAMh+qkDdnNIswcxqcq3iQz8oXafGFGJsQRL\nFnVkvj6bxJB+Hfsmp+/eg1Y4i3vkPCwH8Uy1acAqNFJJ5taO1816rR75wpzk\nKkW+2hAclgq1rbRgGbNGdzTPiMBUnaxDukdxEqq0nAUGTK9Y9jl1ll80GfAQ\nV4AbiDNmI9kWFDH3iYMlDDHg0NplDsLk1CaO04WURyRgsuSNc/0AjTRcV80b\niuay4OHeb0WXFleUWeSt6Z+yUatOM/TaXPtVJNg1ZHt8osEGJN7DNO1cGzbU\n72Lkeu2bfu6izkMriI/O4t80M5E91Dfm6wYmH5zCEmSxKrqiJ1KabxiHRJ5N\ngIF6\r\n=iUkS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHBNpmx7Rk7hD6uPygWa14g52BsMsCvSNVo3cOzyw7tdAiEA/HE4hyhYovmlH5QGg4I6R4SgcTWI2RAuP9dTem/GnuI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607533624800_1607533640447_0.5213945928020589"},"_hasShrinkwrap":false},"1.7.0-next.1607536287465":{"name":"playwright","version":"1.7.0-next.1607536287465","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607536287465","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oqGTh8zO7M634VS0na8Mc7nLALPkl9xSDFMYKPfz2xdhY5zWJo5VKR7rYtZ6tSJuxH9OCVICIyLFtccjf9rTPw==","shasum":"bbc57f09c96071c2fd67924aa065de153858289b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607536287465.tgz","fileCount":179,"unpackedSize":19129298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0Q6sCRA9TVsSAnZWagAAKWsQAIuhdNFRLPoExIfz/iWT\nV1a2TnLUoOag79gkYr3BtD3yY7wrZyC3KXINR2c2C5x6Ja9qkj44IKUaQjwS\nLWXA7RtjdOX9ijqlMLHpfdgIOppm+CuAWPH0NXoYsdkDnlRAAq0ttX5JAc2L\nTirEfzG1i3axkWTDhHZiYS5q3WnhOxaFiKp2/8sYklmNjrTmuOeZ4aB6pHwz\nwcDN2GethaRes6/5luIctn+Tw5b140MYl7GvsgNfxCDz9FigH6QJhq2ZnkXG\nfiqOqYrdzrQ4wNALxNB1MpbDNHfGkNVjSrbYxXf77b98hl+D1EYYw33BWdy2\nprRC3Kb/UYiEBfZNQCKKZEFPVB/28aUDtb9P3EWiIm4SeOnkvd5t/2Fdh6p+\nIElK2FS/mOHIZ/H1XHwlfPqJjTnY6dWbqtbaSO261QirnwklQni+zejNbcJc\noRt7qixZwmnYSP00RlB+5smNyPt3SR8VH8tIu3keqDpIyZv6OMJRtr1duLu4\nM7DfrVesDm+EY1pvMsmCHSz6uXkrUzyiaQlGaeHk6nOYbVHjzirT3pCb6ruv\nvzTNZtIx7a9I9p1EnOcWER8paTONh0c5zl7uQO+ffr456fmcQ7I2c1rgUeAh\nS3dtgsj4k7Xdw0K3DNUKxaxFDOY16QZ5g/CZc0YeVvG+cs0a02dop0osXzg0\nHquG\r\n=/dp/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsNUWS7Islp0i85bBmu98JXDCm9iKZm8jiY+EGAh70RQIgBUlWA+s2ETB1xQ9f4gcUsHMmLF2jDqgVqzcpEoy2P5k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607536287465_1607536300131_0.08534601775812645"},"_hasShrinkwrap":false},"1.7.0-next.1607536603703":{"name":"playwright","version":"1.7.0-next.1607536603703","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607536603703","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-vkkwmf9+DrUx+zBQq7nA0Lx/LZAr40+72a7PtMLQLMlwy6N2k2aGaSwN89X3upbjyFDNHPZlL2CUqPQG6FAaLQ==","shasum":"a8e90c15f62d6c6d6a9fc5bf013110bf7ec200ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607536603703.tgz","fileCount":179,"unpackedSize":19129531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0Q/rCRA9TVsSAnZWagAAzJIQAIhDT+t8m/4XCltH9ayx\n4KxGgMSKFuIR4USY0XnozobmVYyYUAgj0xirGfqZlwoovvGpNaQsgcZIE5uW\nHS1nbuH+JYgk4Qj4aWAPRWByXIZ3Tb2bn3TfY6OnBfQA1OQ1cCeSrNizEs9Z\nYX9miCSgMwO52aHa4+3drUSYjJlLCicd5RKFmWqL49/B/+madyXldSFqzLfS\nNJPmy+M13g5fAHzbLqzGk55eVypBbch+anGmllam3Lf9CN/THCdhDpzeIHDD\nPmhnDVusOCvo39EqFgp/TfLki6y3yjeVGqD29uHctSicjYfgWx8SXL8J5uhD\nmT2flNuswXmlN/vP209IUFPLFHr6mJVRkK7YFnhNb1ZkXeN+21ClKPlbLJaw\na8OkP9/jQoDfdiDyWRajtdmhanCy2/2mwnmLxHM2L7GcdhQdsS+HWAxraEgS\ngMPPNSy+ZQOreK+Kwd6ZK/0Fq/bJXnAm3zl3stNBUp3q90G1zMc2djPPyR6L\no8Oc4wxc5xtej1IA7LKZrdql2EHrN6Y2qD6t0nJ45OIDvVKhtISJDQwlAEeP\ni6eK9s/M+Y9+pxufQvIlHlP6+pk/0u/gyKmfL94+8CeR4vg5WmmImvwceQqD\nHbJC6xZ16/JlFnpU5dsx2EOu09capgoUpNt8DodyHimM82nQSU1RWUFqxCHY\n1tHD\r\n=Pz4m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8S1G2OjmqUM4oeOWhs690fJ27n2+SswQ1ho181MuL1wIgXwpSMVaT084flmf3VgXGwapu8ZYEP93DmPHMxku8xLY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607536603703_1607536618747_0.899772601436015"},"_hasShrinkwrap":false},"1.7.0-next.1607548223939":{"name":"playwright","version":"1.7.0-next.1607548223939","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607548223939","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-GYU+HtCA7c8dCiwpEF+w4oJ48DxcWHuFQTIP6Mk9UQhDHWfagNclnUCjW69IaxXWnC5hDYWDdLJVc03Pq1fDWQ==","shasum":"a5a21d987197bfb7d70e7e643d0bad738d0346e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607548223939.tgz","fileCount":179,"unpackedSize":19129103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0T1NCRA9TVsSAnZWagAAgaYP/3FfSEihsEUrQmvbyogs\nsA+3UWDRJ6CAXr2Up19DHxlXAFGRu8dJJecliZsP/z36R7mnWAIK/c2VRgBi\nDqU/hvuVcw8o/jpoHu8DXzkQ4K74BiiM8g3ZWEMvOvW26zmbLnXFjWTw/qGy\nXkdRF8CM031FqT4qrGpUcQdczBr+kZKe6Q3iRa2eFw/7RihDzMLN2mvNPoK2\nG5BoGMB5I2rLMP2yzLiufT1OaMhD1MMDHTBNdBgLRZ+8ZDisozBo5UmsjfKL\ncbwQb/ik3CVnZ5LpEKEVsGQ4BN+RcDNbwVzbmQOgPMTOtqNR4jpfBaEICVUz\n1y5Qq0LUyMrjlbcl54RzAyrJ/6bDoRPhqaUSThnjh2KcOjZjsa7K0HsH+yz7\nPxa0MFwluO7OaDlVjnKf0rWHPZzVpJxnwyQZWxgU+B7ASxbRCl1kj8ZN16iZ\nhUZMBLkPplPiA/GoGavgtrrxphB0NKOd3FmoBIdNeUTeSkg7cZgiTW9XREUm\ni0E6di+rSso0VCwuDriTj98IBMeUxSZli+NigJplgOFp6Dkh4tUYlVksoFfv\n+DUVNnLFlyWmK9QbJH+t8BNwWT3P488KrAg9OQ9jryzLIs2vp4cRkl2EqFxV\noqYPkQY/Uh2e6JOUQECv/cE+6Q1mk3968j2rIeToP94BpQbGA6bLamgGvYP8\nJmZ7\r\n=rTOe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpi+hckCblk/y3WUjKCWfriOFl7kaBpEa213JrG2K6WAIgcNhwP/qUNT7NHCgafw2LE05tbCH9tZK61QqoscEmp/w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607548223939_1607548236653_0.8375646700554771"},"_hasShrinkwrap":false},"1.7.0-next.1607555323249":{"name":"playwright","version":"1.7.0-next.1607555323249","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b7-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607555323249","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yXl23Bh2OfoGBaZAKOe6MABFPpAAFRkT3DeSKP5JNCneM1f1WbZzoXqsb8UgqYVvEi+ZIJ+50Ql6WchB0yB0DA==","shasum":"e4f4d7fe7ead005ab99505cc637f436744410a40","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607555323249.tgz","fileCount":182,"unpackedSize":22114810,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0VkKCRA9TVsSAnZWagAADf0P/A48Fsw0vtYmuHiU6lFA\n13zr7undwCbvrr1WsDiQZUblke7qCUJQtwMYeZLgJCpSyA2ofiGcIVA+q/qG\nL+4iHGhRQTaUYHXSYGZzdcntGvHBvSgwIMEPs8qfrF5o0D9sU8zqtXjlwZt8\nn9rJe45fUV0/W6+wQzt23cK3z/CzK9zxv9Cyh8kgiktTQbP8HOC8fJVpSl1C\nYN4TAPD2P9nBmrVlCW5gM5NLOwmIeAIPVyto+jSOuQXrhNVKmazfZ6kw+S10\nwk176AX9Md9aobRCHfKHUYyIZ4OOu48Nv0jz1aiJDadeMktrLfYY30PTMs0p\n1/XlWu4pBM/n7uxAhEC7QaO/SVdOqB0GH/RFqTRBsYJmp1jWAlDtlkATyJg/\nk0t9Yflpwa+7qb/91o4YwtdMY+Qkq7jM+XOnuviKWhfNTqb22QDy8MvWkAc0\nssvm1MuRMd81tO3zS91ZNaLZPwSNLatZVhGBkxHmD9IFVIx0SulcytJMorsH\nMtrqfMV5OTWpuZ4IzVbCCdGnKYmSqN8SHzNwF8bgof47usoPuIUUn1mgQ+PF\n7K7kqnHiqNwhBj//zVjOgRKI7NoNM3pQ2BOf8gq6u/c8B5u5DWaWa3cVUCTM\nx4q6qlW7/X7hvrNkgzerAw8rM5rgeMhHlqX6kVtbpxoRiRKnGE3+H79lawzz\nCdfA\r\n=rq9p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAl3VWSWAYMIzj7g067W7Z/3Jk2lEu9zgAlpTgFOEMbYAiAi5IM/tJHqKMWQmodvlW1fNmBkr1qN4tBaMl/9KxXCRw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607555323249_1607555337089_0.10012983872808379"},"_hasShrinkwrap":false},"1.7.0-next.1607559064024":{"name":"playwright","version":"1.7.0-next.1607559064024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607559064024","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jrfHPWVdFmJ2CmvdJGvoX+qAJuXk7Q6eV2NlzryObAyHqqW/opdhmNDNkSuC+mHlRV72oabH3tKezW9NNCtHVA==","shasum":"0a7e687bb3d46bbfe5da344ea50a3c222c938a95","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607559064024.tgz","fileCount":182,"unpackedSize":22115068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0WeqCRA9TVsSAnZWagAA3j8QAJRfSZGY0MfgEaLCeWwf\nQwbDclolnqvVTWAVJCs3UzXa2kXthHThRP9wEYj3vwy2qVpUrX1uYUp6TecV\n22tavOuhyj5QcsdyTUSqKkNg9+I/Rtl/MwgLY1ioFAOfSHm0zVAtLNLqd2p9\nGYPdl45h7PD7+bXtJpuwWz9cDTZxlCDOr/SnOtWIk0aYr913/nKHoyEK5tZg\nptZEjsGrsLGsu6qD8dgxeQNGFzqjZvpyiYrmw/0EogqDN7DFf9u2KiHdtQHw\nCZ28h5JniBd7VefJxObLgvgwphw0H1dxtwFT63V+TP3nXUV5ZTmvM4HCY6u0\nFq9TPcOJnVz4/oZ4RFR/n2QDBNOUSJeQmVjgt9xZRU0UJD7F3vaFt6Vnvx04\nLhdgvjweZ9FX0GwlwfsKmnKEM3MRtRYLM56KAHfQyw4IiU5XrJXiARwCQs+u\nCPbmhBAGfG19R6K+z1955wu8zYL3+iW7epsM4sftNc1yYIKh+xfg1/leM+Y/\naPmpBMBKcCYwKRGUZE7QFnBkZCLM9W9os8Q75RA0U1B6uve4VuQ13HqLok1O\nW1N9SNInJ+dxARfCGb+8BA1ZTYoE6d1CzuegoGlPkRtHBJMPM8Jf5ihgyCUt\nVf2oaygTDHZXruAfcUzBAdZ0Cy+MrJ/KtuWn++nQaoXC9jylWevN6YDUKFRL\nxZKg\r\n=Jv2J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOqCd5JznVV/7pKonzujCKvwEhkuE5QBXAzLlzlz42LQIgdYsWmlVFmmi1MJPJTCNFgQbynnl+YCkC+Yr5vJhJNNE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607559064024_1607559081601_0.16644786617811325"},"_hasShrinkwrap":false},"1.7.0-next.1607563051542":{"name":"playwright","version":"1.7.0-next.1607563051542","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607563051542","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-TMbuc1eVrNOywElZN2o5YRweeE0/OCsnga75rekKwdMyIELy9O6L7l9Ktj2EMMnOcRCrEFmwsxMcVrSSf8FXDQ==","shasum":"9caa798c0833cf8eff0f0577c49abdc7ef04f1ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607563051542.tgz","fileCount":179,"unpackedSize":19165267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0Xc8CRA9TVsSAnZWagAAnU8P/jGCLI8FbGx1nABRPJpj\niLRpnLEPqBnajZZLU3hLUqKa7Of7ZbKWc3fnsPZI7S0uYW/VG2bPshAqYYZd\nhefYBo8aWBYlVsDAN8cuca0aF73uVyPWx7kzSdP1GoNfr+4bHUXM3wU86UBi\ncruS4PsRzdC7NBc30Ky3t+cs3jnxrzFmS6EfYEoh1qe0H108nyCqadPaO5RV\njDJiqwsm/D5I5SWzBxMVBh6phpNW7AQOIkat2v4Mng5JGISjrGTFi5ZNvVoF\ni5PY1uatU7MO1QLMkeZNIFncWB6IyjG5sLrWBRW78vB9AW4XlwdADR64lktH\nhKjs3UYAMI4mme9w4CLbujmLxBViOSZwAHe0OULSl69ZpjKd7wKtmOEa8Jtk\nnEpPP5n7pw4fvb5OTTAS9J8YalDmVUXXZqlisJu1NU+na+6uegbO7hxffUT7\nwwqfLhTrqzpn73/C5UFb+1FFNpIv+bwJldT2A1vT2SNd4v7NFyAi0K61wisG\nQIMEYKwUW5mzReJLz2mq5oQ4rRuZF9EcFU0X3NvZC3EAqlhsjqfumBXZq3sh\ngDHdq8dHWxmAY8elx5dObKCxF1UFAMgW0jXYN4n/4PV5olD85fPsDMCfwMED\nHjaXVUFm5zgtsVbMTpdudzl9YFhWpJ8Ukqyp8oj0iNq5Y9xLE1IZtjNcTQbK\nS4Bq\r\n=z31H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIChUh/2+IX6uh6DLBtF7o3Eqs8PeQH+D2qzUZG/rfdcBAiA2kTXTqI+G664N/2KBWuwp2sLY6T4+oxeRVG75daRFHg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607563051542_1607563067289_0.8208475150080363"},"_hasShrinkwrap":false},"1.7.0-next.1607611049855":{"name":"playwright","version":"1.7.0-next.1607611049855","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607611049855","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1Txo5RPOWTnmRH5LfRWhaMd8OAdQkys7Q9cFG2xRuhkz6SvkEUrobHtt1ri76iG6mEtFpXf4KaQJp9nny7ynIg==","shasum":"b376c53de88ac7662947bf94d8a6be026314bdde","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607611049855.tgz","fileCount":179,"unpackedSize":19165267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0jK5CRA9TVsSAnZWagAAqVYP/3//FJ0ugbKdJHPre6Xn\ng+tTOh0kEjoTj5N4ANgLF3Da6pfa7bNnGHKQMeDSPKmpbM0viNwGw/vsbx+X\nrhJAeKRrl0464B3TYGPKBh0SjPwkHVfxgK3jFtA/erqjZ+CQmi5nY3trGPA+\nAxKICwyO2QbCx4mC/s1b5E1GHpxXm2BfI7gWBLTH8OX3uD4DOSv4CGj57oDZ\nNRX/8v74BokAEYPBDmp9GJfRQ1ebTloxtXLkAiZvYP/lmGGg/x84ixRfJh0h\nrrd+QnNISDc2fwgt5enaxrEt/IPhJ5eI27tmB8VlMFZ+en1D6JU2Kf9vFuj2\n/ZOQqdvLCzRcJodF2qEbvR8JCi/EI8MXDWc0f//U0EAimRAXPeUoWY5E1DbF\nmNipblW5y8CRfHnd0K4x8KeLz2vGETlxKm44vuBPjqdfrooydy/l5VgXvF9O\nBnD1TTcFImgnDM6Lm59OmPvTeUyrOf4f2Yzlwdo1Q059Eqm7Aq2numM7ceqA\n0qCoT4IBChJtLmvHvQA4F6knx2A7LesdLUVAvwvRl078s6LJ0EaofXb3sk/9\nSclrF1IYByXLy/hQ906x5etH8PoGXH2wVN4wwyDd+VvphyfkcxU+VDb6Az5V\n4cehjmaZ1Wg8kCN2f14AYDTZ5cZAx5EeLrGOKihG+SEhk2TYi3Hy3Jl5eps5\nRrEv\r\n=FtZ5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPaTts27jCHAAEKdeOaszoFgkxhuk0gVoNhN+BGzHQKQIgKixJ2lCKRvDMMNDZRS81zy6pzWlti56CWv1YpGIvWXE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607611049855_1607611064095_0.04127125065788406"},"_hasShrinkwrap":false},"1.7.0-next.1607618764856":{"name":"playwright","version":"1.7.0-next.1607618764856","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607618764856","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-klxFIg9JODOJz0VwY3AhukKPt8QlyoTSyGi6TuRGVVeJ06kLW0gNGeI0TYmLXouXaLevwILZtPJ+dkcr+dRBCQ==","shasum":"bfab6105e4ff388698482975506bb48768a36719","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607618764856.tgz","fileCount":179,"unpackedSize":19165267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0lDbCRA9TVsSAnZWagAAQmIP/iyMq8OcxUAtSTbFufFA\nUv2/h9tFHdegpzy0C5oYAu+fRNnP9zsINXSilXXxBWeWfwQoyvItcCRHBe7V\nXMNcAm2NOsrNQ/Frg2vLtUKr3o4PTM76JQYCG4atocUe93PLNdzH6sX7NwX4\nJiy3MnWM39y6LoOOzV32hM7vhVeu7ulL7CcaiSu0Btjj6FL2KtYqAllEtNN0\nq4XykUZjflc8xgsqk/QoZPNUovyxlzMaccfZNJ6R04eZ9xwZRNbnFmwvY2b9\nF1drveKJdXu7sZ+t5bT2/vtmGjiUWJdH2gVbMvBDYOK5eYbYCxGp3PSlvAOW\nGliiuktwCPtjs83RvmNm/P8RSfm161fj2KlwgAkri6l5fCH1j7S1nxftyf+9\nYC6nFm1rX37qHGtsA6F5+xydm8lEwfdTBhHTc659UO8vPNyjS61S+hjpmtTY\n/2wpt1XOeU2TvOM8u1LAuyPfl0WyMD/sGwxKro2PQ4jXALE/lBEx+BDShzG9\n5IRg7k8jpiZwDB5se63ubntxpiHnbwzX6RWNp8azGDGVdHh4QEMy1r3cpoTq\nCuXg+hWye9IUyG0q5D1k+3puH2IAOIfPfi5s+XeuEPf/ds1Yru25wEJdiH0y\ny7Xof1Hp7wVnIM26Clfy/+mXwKU/sldPoRwaS6aRSb9piUa5MQAsPP8nkBuM\nSUdQ\r\n=nTaM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAeezzj/KNDc91Ao9E1kjtE58MhPElOzVhX3bBPjQL0YAiBXmeSfOboD3i6pfoVf2RFJR2NugVLmhL2qAHFf5Bz/Xg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607618764856_1607618778378_0.20359441830466873"},"_hasShrinkwrap":false},"1.7.0-next.1607622568996":{"name":"playwright","version":"1.7.0-next.1607622568996","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607622568996","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ie/cjwDz9KxKZWqAbX8uHusKvRKP1je7pMooH8ivxzxmQxTyHEpBHY0qsHLyLCVwms9KF0ELC9cdDuwkzhUleQ==","shasum":"f6445daa023ebd6b437bedbd6d0d30192f6ec0ef","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607622568996.tgz","fileCount":179,"unpackedSize":19165267,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0l+4CRA9TVsSAnZWagAATKMP/253jKGiALfvsZ2IwJJQ\nicy3PI/Mq10VvIW8xensvH4EP6mVW0KX8cBSe77Qx9RBXygH/HKpDZzw9qcm\nquWLaJQVa79kxw6M6MXy1NQK9QeejPR1/EhLzMRdB3k3/dZ5I4Cmpm2xtVQp\n+3LIKX4GDNEc1JzL1/Ud/owQt4l8HorXyEw+L5hCgATZYEKmPtyMPlBUSdDo\n6rkYHLyI7bBMaPqpAR1twEXo0VzowIittXk8vzWzW+pfh/F9iheqZl8W9J6s\nex1K8z/+Wc/Mtjov2EnsXKuCAlMVXkAsKfi7s4vxS2EsuM2Vd+E5S08oyyaZ\nNXvxEAAcjeEefiv3BTI4vcIkul0+cevXMZgobeIJjyiSUvmMmiX8L8on3mUH\nfENhFlCbUr/R9I/eyRaMHIjZOuP5tGvhKWT69MI+t86waAE73nY21N4GcVEc\n4eT51F0Gn/g2zyVlEpxQsBbuQe0iFnCxjdAC92YCrPrswGpqPPHbfuGt4aAi\nd1W+4Y/rvKoBibG/Noioo0G16i/bTr/Tdc/abE5zXfLZzuEWdZV2R0YFHSK7\nCJEbYz6kH7mUb0kNKyr/X2DcI8ba2V0Ax+jpj5SNILtVTUaf9QwtpqdtyaP4\n+kPw2YOqJ0xFZvEyQjUGJ0Fyb9/gPpyTRrOb5mgJQgR0dXYSQOTN+fNMggXz\nmrDY\r\n=k8wy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCovMU0lzNd9F1CqRACuJrdSrk5+jk2QazecMNmN/UQpwIhANZb3ZCL8Ckp08ci8pqJgM1QcQNPcGQ621XM+hh+QU35"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607622568996_1607622584038_0.3423759016159704"},"_hasShrinkwrap":false},"1.7.0-next.1607623793189":{"name":"playwright","version":"1.7.0-next.1607623793189","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607623793189","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-T2mlPexNKK/A6pswQh4l7tZr+hELPMQ603stONdxXccln4vKn9qZ3cWPrOu+/r+jGroEeStT9Nry2FXaHMtqBg==","shasum":"51cd8f35e1c7f7fcc463b96023c94597e1b2017d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607623793189.tgz","fileCount":179,"unpackedSize":19162127,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0mSBCRA9TVsSAnZWagAA+NUP/jQQkfHwTQ+yuxRO6Uea\nSnwLQIvi1CCi9Fzr0AJviRG+etbdgzcW9+9wU4BwQ7B+FHqJrfo9YFB7EkQE\nM+eLWKE5QvbrnuORZvuzYsLnvYvwgF5KbC+57fDzvwMUlwYr+F05Mol5TbrP\natC1yIv24BN7Meh9iH1k2h7TocO02RWgVVPp91SDXWNdKIsJnJwglZvWWd2U\nJYpk9YZJd1Vt/+71G9iPvSdDEWGKVBtLqDnk97ZdiQW3/Eyhh4bSxV0QZOkJ\nHZAmGJq+GTjYzohKJaLTgiJJAwDTCh05wtOrL+8XJAubzQIkeBMM4aJRuO4E\nnY2bEVkVWEhhVBxhb/GL298BxhMLWt4kEA/Yng6dgfKDakYlUNnNWvPYVkuJ\naDFN8cV3vzZtGFgNnJOvt6kn12+auJ3J85v9reUhzB3HNIsPhVE+lEMOjrUm\nskE02dHjcSj6my/jGsZWmu1UsgNI+6jYhJU91zPCefOoJNOfyi65MukdNA0a\nSQaAPWZgK1PhIfq0ZHY7XHhmuvGCVQ+/W2FH+prKacgJ3rr19sgenAlbt4AS\nEG17nhg7QLaKTH8JEenywqBJsC9bY4Bo/d0S/h/WmWMgpT1MutqrnWuQef9W\nZc3TWel8GGXQaW2qv/yUAHVXnWEqnBV1wIab8rW5TtYdd29EZ86ZW4JHxc57\n2g8p\r\n=Cb1v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDk1OP8gapGEyaf0pJPIE6RH3AaeUA/vixzwxPne6cIZAiEA1sBMSKcENRLMgkNY+ssJCnMzCLOjHNRNnZD5ruuOCHg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607623793189_1607623807960_0.23821394141915864"},"_hasShrinkwrap":false},"1.7.0-next.1607637332000":{"name":"playwright","version":"1.7.0-next.1607637332000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607637332000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-XuRpTx9kfGkkmjGUzE2ILKIkCJo0onluwwWe04Tn1k1sh40SaZds1DYINivUvPyGnmwjGZIqGjdQAqf9ojYmsw==","shasum":"6b0e7aae6431a3c295242d7454b1b16b399cf5b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607637332000.tgz","fileCount":179,"unpackedSize":19161331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0pllCRA9TVsSAnZWagAAkn0P/2Z18eV240Vvkxwl2+1U\nmh2kc/McKT5jDh5VvYoo9I3x0GGdTn/iz0a/P4oVGLEHVJcE5iNsnvfEVlhA\np/88WhBP4dJiK3oxlV4vWz6XV/cpQuBvTKE/aHuiY9KlAJtP79j/g2ElhcYg\nx/ttcFFCxAA/1oYS5HhRuuMqbkexstspRF7ZY0WEdCHjVc9134Vp6JjBGJQS\n0Rn9iXl8OZFArAvj1An1BkZ+gGDmBYRhGoBbE1dm/q3z+FVmy+Obq511WV2k\nDYIU2anOgmdcRGcGtC7UBtewZiDUG2oCCD5ekjoAkYXVM2KAK/fm80HP8qor\nXfTsu6RHDhkTmIWyHU9Yej7RiCRmmT0qyWbGJyLO1WOpaA+JOASCbdPmyl1y\nenjgvYLtwuH57uZbs7d8Vja8NyU1ygo93LiNhqWOKzv+UbY+1Wi+RcTKSE5D\nyfczqc5VrDNWLTTCG+bm3ulzgbe34DwFJPx+CIU+gjlXHxKIZgJgUqWFxcqX\ny850vqzPpNnvON0/KwKigJJc5r/3Yk3fxJcGEhjwj+3QvE5l9X7ZtRKbNqNQ\nZAD1LyVNrQfiZL1zdcrdkJ3q2sGykXdhrFseDwXaTPIqZnJ3ytlPg7Nw2bXg\nyWkQ7/PKt1OSEICHbDzNieDQLwsqz+FJg82nO5mn8wNucD+zJ0KwBlQ8dILE\nwHmA\r\n=yvj/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgVzTHEQLG1YiSoARRmlA2fCUTiwFcaYhUGmVohmJWgAIgdvPzUynrKOqXPbH45tRFqDe175BC9ZnzYLgpD0cyU9w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607637332000_1607637348568_0.1328462532994683"},"_hasShrinkwrap":false},"1.7.0-next.1607641487085":{"name":"playwright","version":"1.7.0-next.1607641487085","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607641487085","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fAeOyjfSuS2H3zIiSpSXxPqN2pxfRbguhFpUCpp0D0nIUBDgPXQeB+1h2jrmcUWNJYLFT8BotSsCKyjxUffziQ==","shasum":"c9ce957f5bf8cd778857379f7883037def0ebaf4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607641487085.tgz","fileCount":179,"unpackedSize":19162497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0qmcCRA9TVsSAnZWagAAlsQP+wWANuMfO7q2w8/UBQjY\nD5eXWtW8moqzlMTDn23DLJ0JioPrua27sWdlVjN2a8RKK9fll7LIrMKYBVgu\nqx+8UlUz//cvuQT/ddJ90DN8WVPRSbax5rxFWI7IZ9/jgINPWKxG4bTOFN1x\n4HcldyQ5rMOkOyE4aDpqeI0ElHAfLqJKsZJmtgjYORHzZykT3XaIJb9B0acv\nJDSefAc5LXOY654cmnhnnlwyDcwGh2rIdbFxnaG5W+ZyvmWOKnv6OfZWa7Tp\nJdhwSvq6sylrHydGGuSCnHy9YY5owiaEyukgMmTWKkDe57/gEUwfG33UgJD6\nAnyPT3Gllj6lDP9cDI1cvlg3QToSH9ufPTQCiTkvbvkxXrUMa/ZDxijonOHX\nDR3lMBAevUkl8U6nPORnkyFr/XgUKoNdv47XESu77gdOW82yurPRXTd4BCTT\nVaJYVdBw8Vm27y7OcaUvwC58VNCHDNGCBLkNLgLiZ82/gwA922RGtJS813xf\nQZcktIKyYFoaxpdYFXM93fxB/uMy6iJJBqNzKYnGEKMJNeryrGixOpd5QkfY\na2GqHp14EOwGa9fxY5KTGFvQSk7d34R9d2qzhUun1ELfg+v42HLSLHQZ8gRr\n5fgNvzCl5AuWPttFIhJJx3sKkRFMC3meJXM+kSOXQ+IYAxdb6Vr4NTqeNFyA\n+Hxe\r\n=HhoU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaUqvS9wkDjJMycL63P5dyPQtKrvdG/2H8XM6PpwquzQIhAMmVsWdhZ1QRkf7bhuqKVqHWB/ZgfzISQQZUxT2ggs38"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607641487085_1607641499615_0.7475116758015061"},"_hasShrinkwrap":false},"1.7.0-next.1607641636196":{"name":"playwright","version":"1.7.0-next.1607641636196","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607641636196","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-NpnPtshammgc67550JKbgJBAQsqtMiuWjew/IUa98piGgXTrpck2VsVGIEz4upcCFMDRiYKhsPV8KqbGTEHr1g==","shasum":"acd49e86835afb64fc390e7236d90903f212f969","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607641636196.tgz","fileCount":179,"unpackedSize":19162920,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0qoxCRA9TVsSAnZWagAAWvMP/21gFIrpDuz409fmu3+T\nt2aIcAGhUAlH3UQaD2kLJIVjyEjAY58K20nVDNZC20QCKV+7RjaUyHvPMXWs\nz1xsDAb6zP5VQlESjGt7fMHH54YhoBQ1HEmNETuQ2kAUzOkoIVOF9Tcqzi89\nOgpW+XiAsl9eQuypRUv5MdCOlJMFntzLyScKKLnaOqHRqgyJodujQJN43q19\nW+waYGse2vQSbV4D91g0wcaIzLNgMSrZBfxHgSylQIO8sZbuSzXaCyJpRmyQ\nwNZQ7e6reOvnN5Rdsep8bXxPUTjz5O6GQK2FEqqSVVNmxnpEZtY4gFv3BDv9\nn5gad3i0FjYViKKtiQOViDAc06a4cBWKLf89rSYVeSXI/ASr9VYGikYrHxBd\nY/KUIyvUPH1umLzQxl9TmAkK5v2NlHWCuhjcykc7q72zltArS7nMLzispDtq\nlE3Mvh94uQ/ifHMiYAM+am+hom7V3ManRc5xCnw64uU1eAE7TpKgB/NbMYkl\nhYUYYBoXMS1OQDk3/K4yGrPJbhFsVyI+QS2GsjKaxPf88g6/uik7WPT55DCh\nSYg0e+XC7pAVGfZofHjSS8FLwInISfvsWicyVxcI/8A9TR3cZTBpHbPDe41+\nZxaRU+kChzG1cV/K5qGbyTX/RG+kkYJZXtC4MqIkMuTGGfkzTj9/H/TMJrWI\n8HqK\r\n=0Ghm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUx+SnjD21TLJhj+EVi1iiMll3ANscRJbI2zVS/FcXCAiBHqsuNY4I0syWVyEWDki6qHlr7L+6DFKzF+K2Fl6aCQA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607641636196_1607641648883_0.05410073850679287"},"_hasShrinkwrap":false},"1.7.0-next.1607647153752":{"name":"playwright","version":"1.7.0-next.1607647153752","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607647153752","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-arGtMIpShLTt/QJLzKQRSKV/NX81rDJRABPQFtHDRkeO2Q8U/9YzMyfz2lNtYQQFZfYVx+kgb/Xb9KNgfRSl6Q==","shasum":"81604dc58e57d746b1cf4a3ff07a2ca228cdb331","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607647153752.tgz","fileCount":179,"unpackedSize":19163576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0r/ACRA9TVsSAnZWagAAxzkP/2/orNzPZALZ4WtTsZPw\n0vJUrZ2TNdLemTb72OU/0Q7Atty9iSyNAFJtRRMH/BCNLy29hdN2YQMLw8/q\n9OzNHEADJJQQe0LMcfXGMjEl3khW/d5VaRq5MHBJwNhRMc18pMz8+dvJpSo/\nPdxfgj4JlVq66+W3pkQI9y1tIPTJzuuGQYm/GSITy1JoiPoOSMmHLo6Kjm6s\nXG6LCIlXhC9BFeBV5rSav/2OZqpTzNNM4EGMwKTHjq8KC0wcegkihB/kQPGy\nE8Pk2gNAUSoypTlFQ3F8o1IM+O10J3fY2+pHTLB5QI+vQmgIcMf9ODjXhbcw\n2VBuFkzwuYr+3kmLC8KKkuIYNZ9LohEe9hGFyETl+bBGu4lHb8TpTfLNRYQ2\nOrn3i3um4LPS51rvrmuUdJOUIuJWUXXUsBrxmPaDMJ698FmXq2Cd85RwZ7oQ\ncjdBAqrfrf2Mlj//GXzBq6FlZydQA7gofMbiVhdLr2JQdDjlBkBfrZSoZJK3\n+PvbDTvvwy/bUtMlkLWNe5XBMelNFRYsqld3Fs3TJee7jdMUNaeHoj7zxuMe\nQ1Eec8uX3iJoD4mO2k8GLBpgxptLgqFzA6rlN6aujBNHPMmKN9a8P3/iu9fm\nMe/w5/78JaIfy4RBjga/ovCz5KMVKFgn7FRUkN2uO0KHRGtfIfxyI8xr5i1k\nW0O8\r\n=vzgM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9KWcbY+AvSRC8OfbWoNdlEEDzlw6xPtpQJc5Nn0BjoAiA+yM0Mhh21XOIqfKNb3IxdBbi3xkW4ARA0kwRsHt+Msg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607647153752_1607647167471_0.03564587584739454"},"_hasShrinkwrap":false},"1.7.0-next.1607663475518":{"name":"playwright","version":"1.7.0-next.1607663475518","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607663475518","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1UbTYXgaZMip+JHJUa2JSUibT2iTtKfwxoF12Axj0A0vsyj3pCfsnDTaS+4oQQ9OPaI32G0xzwghBOHb0FA+5g==","shasum":"616a0f5c48ce79eb24671ad5cba206ececccd621","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607663475518.tgz","fileCount":179,"unpackedSize":19163582,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0v+ECRA9TVsSAnZWagAAwb4P/1ctXYZS7p0MVi8oO5oG\netjxFmCwMeXKU83hmcfRG/lrs2AciQCjdrflHwva9iVIgemgtGBJvdVmHO2z\nNroyT59HkHyF9m19apLiGVmgu/3n54VGocjJbYk5H0eK6o9bIhLA3per1Abo\njFOhCi5h8D0+oHi261/QBiCaBGnrj/t6CI9gWYqiQdOLqpoHVu/tnIgvFB3r\nWv+Y8fSX6t4my5KgfwPpUNvCGqLP3LaZWbbPv6mSQalo+IYjnPDFQa6xmFBy\nIstmg5G0cVKVJsC5F9ZSNumQ0cB9J81FK9f/Dsmdkt41erstyecNnBlCsZwT\nKOsE+8DplaflGuboXuyyrBEy2FetXtO2SbkMSsStN2TZvOuSMvYiU6HC14Xq\nO8vxnfjwNZbwluM2IEkUKRtA6MRrlvoppjvTN+2lSC0dobLo5VDTCwhcgZvw\nQsOX1OJl1uDrXxh58G7urqp2X52NMu6y52OEyDCU2l2BWh7fZoS+cEx7E7Ap\nKvQ8utZHEXrD2qMScCTDRHwo5e/C63pN4Re63a3S7YVvSEQV7raGnSXpPUXg\nDvCCuC3A/GvAT9KWo6AqjeACpuxsinwSiZrUbyxi09EVfpcNudy/U6xbrVZp\nU7JiBPF//4K173YkwqjJFhn/HIFUUC7y3X4fxXQSAZOkHsGJ+SCIhcxDVGoA\n/gSo\r\n=2BNX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICag2owmBWGSpz5JK5UAzfZNFAN8x3IJOl87liUxxAdDAiAVIsTGr8Boh+dyAnqZJxJhVLRqvPwmsar01yRHtoKSmA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607663475518_1607663491565_0.8435581377483188"},"_hasShrinkwrap":false},"1.7.0-next.1607757477917":{"name":"playwright","version":"1.7.0-next.1607757477917","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607757477917","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-xv8C8YE/U2pXKyxz2KtjCKbx5LkPdUkQlFKNKxMz2g9vX33rkCpvG624xs8+R/qLsqpXvdSBGiH5L/GCN/sfCQ==","shasum":"86e6e9841f3e27fd8c227e8b939ee32914759a22","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607757477917.tgz","fileCount":179,"unpackedSize":19163463,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1G62CRA9TVsSAnZWagAAUCEP/RiXJQhrMxxjrv57EBW1\nJWAeFLY/1U1Z6P7C4MI56xWZLSKASs6CBl9pwmlw0vuri0N9zSTy+6d5qfPV\nORe5U9sBnb+/jU58mBgnxQkaOTlkwtvMFb3WRFLZdI7ScNsxOyjq1Tc37B6Y\njxKgI6RWgU58KcJbkPsDAnGBkrOCvmO9rKuj2v8W7RY26849f6+wDlwc+lXG\newN18lOWhk6MxPPe3aPxkJV2vBH7fyfk7UaTmAf+Opr4l4NHHpp9dLrA6J0C\n7ZTxWGDg7rJio+pdN31pBS1OZzl3ynT2Fy8ASeO59vj43o9NfleGIbdEJGCw\nB6BPde3Sxl2JVNLWkkKIQD+GWhv4cpK35Cs45ZQvaz56JK6MBtZL01NR9eoe\nF/TddhQWXVjt/8qFrwylSywA/Z4uIwr6RDirjsoaED6tPNBoXt1LEBhKwk+0\nEeCtTx1xSQvSYrGCN6i5Rxl0sINYJFe9uSew1/4BtfRHMSpdCQ4HigPLcgFf\nE6h1aOQeKgR5IZxegXweaucr2MHHgKiNlb9t1T8Aqbjf3FmPSgV4GdXBprQA\naOPF9/7nlYvtHK7pSNpqqEI2RCj0hq/DWGCg+REoxj71AhibYbr6gete14G8\nR81eC0+E3mYO1qHesZaLfAgMG/FCQhJGEijh5j8mt6fXzPHAWgkbkic1bA0A\n3nvs\r\n=gp/y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD76jzObkF8NaE9e8h/3iAYapzNu22kky36kEG+6VMBIQIhAPcNE8mt6dOSqkXVgDIE2KohZAmmYHHoOJ3OdVFxbnHz"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607757477917_1607757493683_0.9341105836591628"},"_hasShrinkwrap":false},"1.7.0-next.1607758693964":{"name":"playwright","version":"1.7.0-next.1607758693964","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607758693964","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-U2t3XAosbWz7gqN0BIifK22jIeY4CWYmgrRTv6G2FWp/DbaFSkmTcFHg4zDBAjIAklWeumJYn7taIuFby08b4g==","shasum":"0434a849eb79ae08e69ddabff818a5e8139872d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607758693964.tgz","fileCount":179,"unpackedSize":19163899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1HN4CRA9TVsSAnZWagAA0sEP+wUGVEOY1LmnwW+BW5QI\nUDpPauFavr2Wapo4Jgyp9C0pS2CgV7QZEuE6O6tQjSoq6GVP+N5eE6iQvIEh\nxQhxFnIyGZZPONAgErFut5DDNDbET0I9D31IK3Ir2VJsR8jwJszO/WOZP0Eb\nEyDcj1K1Z2S6EPGXzx0yBk4VGUmtsYyQS5FdLydg7UdT7U9XHxjEPxZVdGNM\ns4pinFkGS3kyz/kOnLQQlw3r2d2zb2V2Xmcd2NHlHFi1PBfF00PG0x41hIPy\n90MjXrJr0xykrriVAgryywShtzsTrqsrHo/qZpp1Zu2qgpsRvHc4jao3DMsl\nTbSo1jp09IDRGCIvpM43KBI0yxjJTP1YnHXyf9RRWn8gU9rKeNp8iyicKm94\ncVTKDKPj5t6hzHzqXW3GwRDlehGVCFfjEdC82Vw1TEyoWA4Ppwae9Ki7X+SP\nhHZV7FhffRo/kAt3bGKVZXk96Kw6bfqfDsTbZXwxKVLiNIMc43ii9Nt/OABb\n5xr/kWiw4DGiByN7RcEvSfrokVJxdJJiJcMWfBJpGlnnt0LgIgpG//hGIevq\nmS01uAdqg6CLV0kme6ZcE69cjjX+sMJxleO6H0lF2ScbB0B7UHbtXwA0+S0A\nZ0Ab3cBiu/Pn51QCnGsGrnyqwI+0eH3j4TidEcUIEYzOrCjStcNQ/xcScSll\nqpWf\r\n=v25/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1H0qFy3hbstyNK3RxUHzIxbbaIDaz2oLuO38EuaCMzAiEAqW2dH3t5OPEGtbYzDemrUqab3ValDsppPOVe1aFnIWw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607758693964_1607758710446_0.6313283160635716"},"_hasShrinkwrap":false},"1.7.0-next.1607764823024":{"name":"playwright","version":"1.7.0-next.1607764823024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607764823024","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mz2cLsLpzjg/AtV13K0sQX6Nh0HbTzSdY51BHmwqCiL7OlbonEVtCQgSladFldHu41n3T7D3+KIgaVmNnY8Y8g==","shasum":"f1a8ec4faea529967dd09f0d7eca747d9bb9726c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607764823024.tgz","fileCount":179,"unpackedSize":19164475,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1ItjCRA9TVsSAnZWagAASFUP/j//TDWAOz0dStT9o+Qx\n3ghpFc5U1TS5G11VbtZFrXQma/cSt/RNDFqo2mJtNdGf3kHW5YyPPCLxaAg0\nFabLFXhBUmmjT0Ggnwu14l6KhVn5MhnoXqL3uk39oh9OyW5PHDFxl46/VeyZ\nbu/88TCxWDu3BoFkdZ4gzwcmlwimSqeHKdS98ipSVOcPwoyJwpCWdTqQGmWv\nVtXm0fXfaZnYIddLTE/m++vBqONu46ybpE/AcReChirRAfIR1btaStMBr6rE\nSx78P/o4F44+RU96QS4mpHvdPCxxb2lDDtx8BA8JyPscdSv5I/m5Yyhdw2ys\nplUATIaqSUi9ZzM4TznkfxqQdXP0xipeZmBqG/FG1CkWaGTXAGPXuqDNXvg+\n9mwzqiVyt5G0X17A0K1NR67x6f0xmRM88XRVkT9HXeVHMadpyhfy5ErBxU5k\nLZk7ecTMY336yGSjo1agbx7WEfragME1MyUGjyDYqVufXpHSf1sGQKEgJ/x7\nbNS+NlDRvfWnhhDK2CEA4NQrqOqVs0lQvhzqeh3aLvQCuxDZohF+SkFzMp0I\nXndJ9XSC/em+M3Pywj0J2rQQjvjz7a8SoK3DYzOZFCQnK5qnlbTHQp//PUo7\nmUu126rpE8jeLL03gJitySohHTn8W/fsRe/j2gZ19rDkL5TkD//c+VKbX5PH\nQxHy\r\n=ILb5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzK+b480TZdD9KxLf0uSQ3UUi+jM2iIkc2dBx5Z7FQ5AIhAOg7B7QTtc/mm2Y34/k8kj0GY8M2swcC+wgl8AEAlIP0"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607764823024_1607764834648_0.938406234024552"},"_hasShrinkwrap":false},"1.7.0-next.1607794710811":{"name":"playwright","version":"1.7.0-next.1607794710811","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607794710811","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Ocx2ZBwOq1sYsUt5X3R3qqPM5sxyq4N9KbzHpkHcjfpUDPPZ2pfqSYJ7TMN9aVKvBWUya27FS27s8I/MHbAXXA==","shasum":"024a93d1b009ce6dfefc5496c038903ea0dddd9c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607794710811.tgz","fileCount":179,"unpackedSize":19168155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1QAkCRA9TVsSAnZWagAAUOYQAIHC8D/mLXIAfJzIryI9\nXcssIztgu+4hg8tBaqitgMyZNv2MHXFg2Sq0K/EP+29P/G3hkPm3djHt463q\nSqCYK9wkRTUXe3A/3TfYUUTcifayKH+Eae4eVASYGWDR4cllRrp3CV2tMGO2\nr0Ap8UDYEYpLzVV005f7wIiC09sK5nGcYQylaX3IUPedJv4R5gdihLzZYhy6\nLZ6sqmpg4535JJsqX9NJsWIZbv+N9qSngNYbenZC0F+Gk+eyG8PKj9wN/NXw\njCm9pUF/oI+r5Y4ErUAXhYvWczKT7PQX6xvjY9UkwJ5IRvqT5FQbU/P3LIsX\nFFhUa2MDr5mkezkVZifd/7d6qS3OsYDU2HIyx3MlOVaoWxc76lyIbvX0YvZI\nirQfnWWJiKLIq6dGgTfKe1ywuQIk7fpQKg2/Z5w3IlaLYbbFMPdi8wGR6u6E\n48nnGel9v1nvuWTObbhWGkKAkDgYyLdMw49NplZJduTp5D0jvoSkaWXMXbp6\nRC69uzTnRQMOmFioNbOVUN7gU7jqTwn+3BXmXva4NNbasz1SvTgyPlgYHlmT\nY1HHkOwxysPEnjggTvwnjaSCEmx3qTONtAvppF+iY92/cQMKWjoJ3HMEr45Q\nwkBLPhH5tev7ALIj6DctpwOBvh4z1SoNE0EWotjlmQPrOqy6bmD8Zn/mW6o6\nZRFQ\r\n=K3E6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKv2HrBrmGsM6kZ+VtgJfVs+GFPaTPdaCUR7ANRAb5dAiEAwAmvBuvFCu5zgID6v893/RnKxjiKERwMD4T0wQi172Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607794710811_1607794723560_0.5654787325920465"},"_hasShrinkwrap":false},"1.7.0-next.1607876180561":{"name":"playwright","version":"1.7.0-next.1607876180561","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607876180561","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Sc/cAT168DgmDIzyxZo5/J2G5fdNUeQ8Sx8cpTro0JRqlMPHrI2McrTxuT5GCNytCuDsatUCzY578kT6yGunnQ==","shasum":"a954a37bfacfcbf79ec4184ed561a3355d06252d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607876180561.tgz","fileCount":179,"unpackedSize":19168757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1j5hCRA9TVsSAnZWagAAfdsQAIDYP/jnoBMfgQyNgvfY\novlepcbS8OAlWV9bTM6w0Ls8tDJjA2UdFRQLq+n2yCv5M9u3SsCRmNMHV/DM\nv8fJMUQM4qD6ibOt8I0nvuCsM9bB7qYLoHXDfqsoMBVumtBQVrH+U0yvnVAD\nxErpPBWAZl8QvKdOvSwO2KHD/tS0GXqn6zitMzSVfyq0xDCJp+PbY7Ngyih2\nmLhnDRaBM5UliJ6F8y2zxq6oqhOowTiE899l1H0d8E/CQoX0Jkp61USkJLX3\nIUUhFyCfF8wRhQOOvbOx0yFwoJaAu3t6nQ5VLHjXuRNnq/9uS0vJI7OQkaY7\ndGFFjF/ndIiJvPM4pYysrmoVa2Xf7PdymOWIRWZmvob9z+qz94n/xYppXTDw\nxKmK2D5bwR485SToo3CUiMELPzFKC7z9lhKRrdtzOUvNVxxGGqE2bcpYMf04\n9v7+tA1o0E9LBjNMxaAqx/r1ftd4WKAhEitRWKtr6s5KP7MAUXsf29QT8e6i\nz51YTn9d2ul4ZmECeny4qwOsxodmEVLUiUVbfPBcn0c6ENwtSjfxpVl+h4sg\nSfVtbOdxmKdBDG4A9EvqK0c70BhZ93244M3T4mFrS1f7mtMgRVHD9aCh/ift\nYt6HCwt8sVZX2IY5hffiBmLAJPfJBkkrASX+TDryjco0ROIJ9jDS/b1zGo6U\nVDwv\r\n=gLp6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEJOkzcQ2wKAAGZ1IveG3oumiurSCwLA5xPbjtftrBCAiEAh4Hz5t2VG2iE99VUxt8RmAuq6BCgVpBEA9DLW+BfhZg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607876180561_1607876193143_0.087431626891884"},"_hasShrinkwrap":false},"1.7.0-next.1607877346171":{"name":"playwright","version":"1.7.0-next.1607877346171","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607877346171","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-UVmwxvtQ9F1Yu2s6m19xJUT56rfUu/8/VhWuV3Z2LvHtC2a++ZD/bSGCi5cv7jZziYTJf/CqEqNvB/1umrWniw==","shasum":"e2748c97dd6c470d2d969ee2237c05229ce7cb5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607877346171.tgz","fileCount":179,"unpackedSize":19168812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1kLzCRA9TVsSAnZWagAA/f8P/AoCEUpEdSB/ntBSa8i1\nVXdv7RvuYeg9ea2jrhLjS3KVym+R1Yd066Y178P09avR/PTcURuxzSdfyunB\n2undkZdcKCjuangP24iLruZejmijZrI9acs/l+t+tXe9qsipjiAP91X/Qz3o\n8jCYwntmP0Tz50cnAgCcZHDnxNGfvHXNRTSRzrCtYYkZvpGxgrD0DJ/rmjvp\nJMOp+olpTQuBGtMqS5c47837P87mJx6kSx5rKnMsOuHoxGxodgpJ92Y9kedg\n4f4+4OmS3Ybf0HxDPhyfuiuz9oyCa5nOQyb3NvhzHmWFAql7nZyPUMk5bqS1\n72aHgmeSqtw9qilpKtWKAJr6+d0xMaOp7d44NP7kU6vTqnxZ6eBYNUPcQoIP\ne1DM3EDytr+LaRHMjAY5djvtaVEFUtRmM2h/GTqxsg/svsnByYnFv1E2a1bw\nTVnmxaIiWmi5oPA024txturTzDkhdUL0qSm5l+11bq4Rk/6/e7w1vBpVkjic\nMPywdKhXx6lShLpQ1H6egexDCdrq+yP8OrM8db61xQrvx5p8BlIP1XiMOTYE\nxDm92tEn97LznoEOhMU/xOCUADfmeK+r1viKQj/DllbQzAdG/e4dKnAf4epl\nHrxXBKatSvVoH3iRkxoMW2Nd0AoRzBx9hzIEpb3oxyuH96HWwGmfIo8VAHIl\nPl88\r\n=5JE2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDi/zZIRUnAS08PDTpSIKaXReY4m1O/O73Tq24JITc0pwIhANX/ZHIdGR1vi5sOavmV2wRtzgbKPAxX5IyMpoWg/DG3"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607877346171_1607877363222_0.050844873968871385"},"_hasShrinkwrap":false},"1.7.0-next.1607881089551":{"name":"playwright","version":"1.7.0-next.1607881089551","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607881089551","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-E5QGVeKL6Xfdj22aqbNTLtLzCs5ZXeO5OuPt1ovSlebxN5VOL1we05ObLXf2B1d2/4GwjbE5eqKMWxG+4kCqGg==","shasum":"babfa947d94be22da92082eb3e7cf7f410fe8012","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607881089551.tgz","fileCount":179,"unpackedSize":19168812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1lGPCRA9TVsSAnZWagAAP10QAINjeiwFkGfmCMzQw7CY\nhGIVtvdiZCB35XNM/q1u7dxsr7nVzOulfu9DppbCbTm3BrVcZqCcTTc08xHH\nzBqjKu4lh0OzrOGgdFMt+931D+qEm6rbExdUseeMPcyh9SVBN3cGJqbj+EKi\nkwyuBDRcT8VkfYBsqOVLB2Fhffyn6xJGtwZOfE2X80UqToJ++uzI+sUO683E\nv/a3++Qlk3Ii8KvA4ABsmvOP6Lp7IPRdAFq8QeZDKL7rRnwPmy992ukI8FYH\nOHgve8eD+xPW+Rm9ynYppFDCt7YPlM9bjSu5YEgTUjpXGPRDWwcLFjhIRJRL\n4JGM6d7e0ZVljIqNAi1fqlE0twnCK4Yly0B0LbEeMqoRhBvYfnQmtvWUwVd2\nNGC34eOqqxSOPJeljRXkUv0Hf63zKgVhb8QnEpDnudsamDYJpfqZFCiPfFWr\nWhA4Z1YT0G1jOzO6AV1UK8sP1++l1FMIeFEtfHVJL3c6FPMxb6DE8iOikxkQ\nU2c/RW2+w0ozZttQAxDbLSOOV/PWorj7Zi6VVWXhLI/a55Mxyg3eR9JDXRs7\nKfj7J1zhOI/C5NjZPTLw8KghZPbBSrAaHl33Z//Y5vDKxs9GFqlzNfnLK7Hd\nO1w4bEXtif6i0i9vh2p7PYZs4eDUgFWgBsAM2p72UqA0EKA77hqJ9NlJbXtw\nmrC0\r\n=4dcF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFg6k2EliFsn4msTEnlTfpXl/RgVexxhn/IoJwZmwMXrAiAdW46lW3Ufwsran5d9XOTjtGegI9cjhoD1VYJXcbhv8Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607881089551_1607881102927_0.04579993919366632"},"_hasShrinkwrap":false},"1.7.0-next.1607897766438":{"name":"playwright","version":"1.7.0-next.1607897766438","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607897766438","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-vOpsAVcNy8qhg/DDMrQy+eBA2zSRRBkjayWkciD/oyK/rXbnn6JYAIR3dMMy4m+M1wzskYSpSxOLZeeinyMGJg==","shasum":"b689073b970e446df77e0490575cc08ed552f469","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607897766438.tgz","fileCount":179,"unpackedSize":19168812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1pK2CRA9TVsSAnZWagAAvYAP/Amx4RBgqIEklqEs8eZO\nH0zcglHGr6fb+/RCL2jglrJ3LV5crWk8jvZHzjTPW+LggJ3SbO40VnsfgqBw\nNhsp0hsBwqCSZ9/a0y4Prt5pStpclZHHSSaC50xopsttRHFqulatyKYq6g27\nkkU24G3cX7VZs9EAAoHOzxrITjvTbL4AiXE7fHvuKqtz5orJGEcRZ8AqEvnx\n5+3bI+NMRixPQEp+5LyPIvIQmELSX8kjd8OaYR0J5bPc8AqXR+q/oNEcZtYF\nEnuTopTUxZPTnVkFyH4OFI3e5/89Lv6ttsaH1dA721Lzz1zeJUVWPeNwMKM0\nwk5M6Pe/KziGi0LpcLBbHw3plBJbnBkGxSS9+b+cg8zYuybBHp+XXUoeNYVg\nNE+sVh0M120dAja5m9xXRDpZE2Nmqo123T8/gEyR8PP3QCIo01kZr05MdWQN\nEQ9GD7wnc2T+5GDvFHVyn718+5MOh9KxwR13dxR6whDabemBZskDupXSI5BN\ndd+F0qivAjOublt+SdCSPEpowpcu8A9PjILT9BEYxX/GQ5+bVnX8sX8fF3GH\nU/iGR0wELuZ44ZYCL1V6Ad5mHgymzy0BEgOGSoQV5RLq7so0jSn0V/bmGH5e\n7MEoxw7Lg+rb1GJxMGxineyRJhwrjVNNsQpQeHeukHbX+Ccc+SGt8+92YMY3\nn8rd\r\n=CY/+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjab9CNiU7fRQq9wBF6HNzmMLc7C7AzmCRz9uvuStMDQIgL0ll/z5b/QoviMsvI4A0n196/8sXkKh0jd0D8GRlNPI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607897766438_1607897781424_0.683186976539436"},"_hasShrinkwrap":false},"1.7.0-next.1607899248988":{"name":"playwright","version":"1.7.0-next.1607899248988","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607899248988","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mE/lJSOELbp4dD7HmaltyyunxLZKjwS50OKvvNw7fRprz5/lwjsC8oLDl3Hn7nZbMSjZYhJoh9AeSgyxmYzI7w==","shasum":"d07b30c33beeca23d30950f3353c81023160f602","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607899248988.tgz","fileCount":179,"unpackedSize":19168812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1ph+CRA9TVsSAnZWagAA6wYP/0/8FY46UmMH8cANJWM2\nZ0ptN6A3PFZG+nUYv8nIAeR0myJeF6pCQeqG3As++mD9nqMtl3oiwQCl7LDt\nIE4oZR/fidJIcQFTGXpOCK/fZeMCK5yJH+FRQl+Ll2du7srKMf6ZiJRPnWNS\nsDC/xRiZABrvvJFDSZeTLLN87dtUR5eMV3RoR+WfppteHyyy5cxY64M8wi3A\naprbgI2yuebfrlaUdGWWjyPYmBIOw1g2hGAkRqz0G73mcVSg2deYrg5yZmot\nbEasjiwicsbP5a3i5FIpT3nTw7QN5/EQ61k/22I8Y7eKYdLPJW0oshCiu6w8\nwUUGARrRDvwUnQXz8TWGJcrb1SveM3uu8usg5v50qApL+cGoWV3Yd7OlJBgb\n+0qMlXHpHkd/Lvf3hGs+vbFlO7DvLRV4G/yF198HWJajL/CMkHA1ldKQxou0\nNdFA2513PtIk6hi1UCCBKCPt6WUcgvoHNfIe2EV1g7ABwaH7mx4FNz2Wz4Vl\nMtRzzcfhUNb8dzjcy2o9sLf9FrW7rmV0j3AWWh0ixwHs4+HKsp0eLlRf3+Sw\n4qalGqmrL3XvzbF0odXXyLGAiLw82MfBrvyp8nhfSfRLgfRBKvv+n4fqcusa\nNT23rOAUwvKr81+xjgQwjgS3DQ9ZdrqKKGn42iWe/vDnKALUPf2CPgH9CoQ4\nyjUq\r\n=l/sY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNS2/7dNKDmF7QzZnVjlC5Z3hFWkqJ6gpoPE+Jab7WiwIhAN5Sf6gsno/hSjzaREO4ThDF4mk3MlUXmkiIXp4sML+S"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607899248988_1607899261593_0.879663058578317"},"_hasShrinkwrap":false},"1.7.0-next.1607925771638":{"name":"playwright","version":"1.7.0-next.1607925771638","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607925771638","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-tqTVVrGkyU3qk/Nmy+b+K3qe5o43NPHTliLR4TI42Q2fPvkNZP4SYV8l+v89xvdlhYji6+6YhsIfmJGQH4ygPQ==","shasum":"7d0f4c37405d5930456332827f21bc62f2ee9f57","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607925771638.tgz","fileCount":179,"unpackedSize":19170548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1wAcCRA9TVsSAnZWagAA/8cQAKTeOXdNZzWhOLYeRlad\nhg20fa53wKLJQy8LlkdxtRiHVvg+a8o+AseAKR39d7naqyNaOapocLc1Dkrt\nMs7NopEiaEQjLvMz4IzYONMEoiF7gVD1hgWNbmtP8zXdl0H7XOc6Z9pab+6T\nLA7AVLKL6SS3U7KS+g0BwaDlodH2SBYIrh8psykcAAXHnZRn09hvFIhai7eA\n8+npWZgwfp7rem2GLemL9JNHka1njfbp3kgzB5x52Vld7UT/UMeVJeu10aXp\nvCkBVY4ZbWhnWGPFFoTYLsh8n45V752FzbL0AAN0dPkBYDI1gso55xLy5bT6\nqJDbp0sinmw4QRfslK+aIrvMiitvrnWF0TBEB7x2a4ueCiqTsq9D/sKWus37\nPBB+si/ClOGABn6esUOut8Xq6xmJdxaY0Kwm5Xs/Z8iNySeqgw6RkXhkJguC\nyqqdTui0mGNSokeTnm+o9KvuIUCkUxmyH3Gd2GB03laBaKrTLbHZHs2iYqdP\n8b/beB4e6ublZmLnrskGWRnM86ZNSNzNRRCHxWPds/e0LIJQ7/pviYwZBccs\n/ITqs2DTWMRzlXu60yhAMoAa6ZaDG/rfcZv1S/r1ElBrL5BFPERadOX1NI4R\nLNVvKmCenTxu1pxCcqjDCpiftvPA+cuKbo9ADpQZUcwel0YFkga76Fc+/XMb\nLabc\r\n=2y4q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcqvRpSOa17WrkoSb6UXFazhWaPBDmYYqbVatSgBnaFAIhAKzHB+LxOLsp/XBSnE+4nIy3aW+tsd286CE6k75irCZr"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607925771638_1607925787601_0.6578203910578986"},"_hasShrinkwrap":false},"1.7.0-next.1607927691625":{"name":"playwright","version":"1.7.0-next.1607927691625","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607927691625","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7zQyoe704vNJMCINj+/sVqxVShnke+IZ9xLfUzmCv7NSlMkJXB59j6ZgZs1xLhUvp4mI/r8F35/p1wuloUkIUg==","shasum":"e00339349c01c3bf87eda8f809f20cad4d6421f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607927691625.tgz","fileCount":179,"unpackedSize":19170357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1weaCRA9TVsSAnZWagAAfIUP/3lfytw9Q6lPDajo7hBn\nj6y/Aei5TmxKyV7pzEWqvNpwZLaA5hTnsaqagVrPb5n6iz+W0s+oLpayfgtp\nN83+Eg6rzTqf6SHCY37NX2lF9W21znQETW/oMpMDYRzwNG6ggZtolNmWBheU\nBTGlc1qKpodhvig7xf7HkaKHOQzLk8Vkc/qOfkm4o9wzJPkmZ+UTuTMoCwZr\nbTPU6ToRNoJ2bSn2ftUFGszlTFOvysfF9LIAg8g2oVYeXfSCi2HM7aCpJoO3\n57lK9HICDr4qa2ZtiKRIoMd0MVgF+svR3E+DQgDp11qhP8XLrVHZE9bHNX+1\nGqsCWt4X0nf+zMY0MJNE4jSAiLmr7zt63jfHkOx0uXFHkzYpAdiplW3OuhRF\no0GudYKRiYQoa9fXW4Yu1fLSqqOThbvxFsbYIPMYmNUAqZbE19wz74Vm5u2M\n0A0+FKVpsEnu97ckPX+0VP+rDq7q14Ilcz4zhBxHkM2Uesow5YLYFy0gfk/p\n1D7lQNR7P1S02vagokum+NgW2Pktd92WYBLc/dQvKWJeRw7tKw/exHWok4iD\nQxF8hcQVDtj9fi/9TvaRvjGskX5n42TPcp4gWr8KbL2oL5tTieL0yrIX7f7s\nV73HiHWiigaiVv2xIwlnXU92XmGQjedmCbGoqO3hv/fRiJJzCLYf41BUFTM+\nvFZ+\r\n=TXzp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt/tSmYWGnXSnIwK715XVkrDKztPI8uCGvdmOsSDZVeQIgEl4geXUV7EaEYIOlrgXLRztdo02svdqgVLlaDqzqJgA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607927691625_1607927705419_0.7833407174742288"},"_hasShrinkwrap":false},"1.7.0-next.1607930553532":{"name":"playwright","version":"1.7.0-next.1607930553532","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607930553532","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7Ngjl076qQv/i5e5KGBvtXCHyC64f3I+rKCj9YOySBh1wDOO8//c6UyaGPWkKuRBgA6mT9FVePaSJOA3xc1bAQ==","shasum":"f5635def0853ae404e4c0c107e04ede1d4c863ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607930553532.tgz","fileCount":179,"unpackedSize":19171131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1xLJCRA9TVsSAnZWagAAfxsP/A8mKPbdYDMdRCtfWyjP\nCwjbv3CN21d/kLyt8HXizD3q2beL9FVI6AjqLTTmvLjIEhvY/WHfiF+4AUkx\n9Nv1NTbPRQA5q1BXI3b5vhjLX1ju23067DxaZwT3nEs7C1dZiZRJ9FwxZ0qv\nfi0zFw+U39Df7Mzb190ELLvjzbvK5O1qmHxE+CVgRyIViG6dF9kCdmgzaV4v\ncHNipba7/8/DsuE3lCgZUGs4THtBGHEnr94Aw81nRTJ/oX4EVZ5zkUwDP4uE\n7pbMfXvQobaSGUPxCWKOWbF4pNNrDQtl4TbsMstxNDc5DC26dFUsstDs6mBA\nFzDTT9f85WxEO9zBmYGJYUrOGUu1m+gYHp7O9EGHF4CgNOoKdys8JYrNfJHq\nANqqJcf0HFERWeSW9rGgeb2NtJwDppjFmaxquzStzt8jXpbev9vp6n6EkSp6\nqyVAFpko16lo/iQfnqu+yQN0xT9KPQLqzt+ys50av+yMlmcQu7g3EOHW1/em\nmIV4yqnQpH+7fphsjU5TJ2dltOtKPgErnfopCAiWiYnGgVFndJsKPO0EN+qp\n0f01ksx0hdnjPPUXLsp5645Vg65URw5xa6vQLkMAHVeXvxXWzUJ5JvTx75gv\nlKtUQh0Bq7eGVP68Ix0+mf2oPmFzZ6OUa65wUMIW3hVBGLzt39fcZ38O60RH\nUQxZ\r\n=WQhK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXsNpF6laf3fPYunjsj6VZX9n2k9T9hpZ6dEyuVyZZsAiEA7fVWTgDli7Rwa4eG6D6dprgfliIH7EQvHtJH248WLCY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607930553532_1607930568475_0.9231990741830169"},"_hasShrinkwrap":false},"1.7.0-next.1607962374360":{"name":"playwright","version":"1.7.0-next.1607962374360","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607962374360","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-lLnf/qbjWa7mKxpM6GZaZLZwOPuHef+uRBhjmef3Cbnho3k/5ljolk4EnwZIkEPqsLNhWdG9788kPjm6yguwnQ==","shasum":"b3cda7a83e1725b82330eb60e6a368146bf8c2cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607962374360.tgz","fileCount":179,"unpackedSize":19171131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf148TCRA9TVsSAnZWagAAomUQAIVjU/JGKifUpSZyrlyK\n+hJpdygR5oKWCe3XkbgQQ8P81EU+tWCVfVlf8juvoV1GPY+BHq8Fgj07UiBt\nPNesaQwigF2bggzuiIPKXJlDtgTM3CIJT2kux1EQ9paTm8pTDIvs0WbvD0xt\nW/oWGpV7o1v3lMrQ8OZ3PSM3PxbnWQPBGJ04ABk1VtGmAq5mh5Jb4IHYYav9\nDCm9w3pdjap4vh333Jjak5GR0cEOvp5aqLdgUT4JJFGkwq4vA/PD8zMHV9w2\nBLH1tbLUKW1pnygDMdDPNgZ3H5REPF0r2sOY5brUiPXHRLM6DHWMSPgpn34c\nxEmHFrjrJmWhjH4idu7zqJj2TE+O0kPxsFd4Tb3XLvwJVc1QKTNwID0hgepD\nIC5Av7aB10OozEl4NQxTa/v9CP9fYkY/UiABqGm7HDfLvdadsu/F/UGLtP9D\nV+FiF46aOJWcObTOVXxDfM2gJfbsWFcpeCV+S6NaGQTVUK6DL29VdSX1Cg22\nX27wTbSYZOW1YxUUMCSw+bwWR68oXihR50YIzU3KRmGHZy4fPccqIz29okJI\nnegjqyQfKrYf+Qas093yItjOCM+LSUFc4WWzwxICt7EoX8wzuz1dUvEk6oIn\nFW7uPdZbzBprbQ6AajL5jwPSPtCxemaDG/JtK2I9cTb3SJ9q3HbCAkBrfyM+\nYGQr\r\n=f1oW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDusNHooBPdqObAdFJ47MtlyRWHzIMM8OYZL6zxCTJhUQIgV9IUGe7UmAuXWBjAEorHAHyWsDDTlZF+GDyOQNHoCoE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607962374360_1607962387091_0.15682714923818075"},"_hasShrinkwrap":false},"1.7.0-next.1607962731553":{"name":"playwright","version":"1.7.0-next.1607962731553","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607962731553","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/44mAh2OuUKx0x/+YNJHdhSRkgM/VmT8mrKs6q7AK3bUry+0GeQtrMhOdskP7edO2ix7LvH8PkVFUvBzAjRmoA==","shasum":"b2cb6002d8dc15cb28b597f5a2cdd15ff9ea96ab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607962731553.tgz","fileCount":179,"unpackedSize":19171131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf15B8CRA9TVsSAnZWagAANuQP/jEV9bETIhWo9/NUBUie\nMFRwCxdzgqfEie85y7xlWaKblX9bRoZezNcAIOrz3s1dS9fH6JFn5kWNwznM\n/qcCqu+YW5swkWnlR0ubOa8cpko5tbOBev8c0PYPjUmvRwwOBobKNLLMgO2h\nIdfX2OMxB2MusBkSnJFASgp/hLhKSLO4QT09B79L4GatUAuIIvBy5/BwsFi8\ntD7Ru0TyF5xeMmCvVF3DATNmNtHl+dLXvsh96iQzJOYbQWz07Skx7OzM/QxJ\n5bfuPQsUYYfbmFpNoVysjpmdsNDj2AdujUi7zi4pjPVOCsQJxsnL5J3ngF2S\nqCPiib4lKWRf7Wu53PerSqEw4/wql5nBBp3JQ8qn8ThBSp6OhcBET6J20ZU1\n8ktoiJ5B1Yu2GGOSVpKTQovUTTM9hHXBUcsAIN3uI0Nb+6ylRgat2uoEwpmU\nfY2hnsmH9b0QexOOL1yoA2OGiM0CxSI/VRLuKoZ4cT6UMWiqE/LKDRHckJsk\nJTZRAYSAI/HKTXk6E8v8gfuM+8ZfoM2b/3YGMJrHNDNx9v9JVEMVp7Yl+rwC\nfPbJTbriYyf8ynoMAba1f4MBxY3TgBeA42XBI9cGXcqsAL2nwMMwZQVnvD24\n+LCJSuZapDYHFHoAnUKQCxNEXqokZWsIVhATGGCroBKN6zFBENbVHEdWtZgm\nI6Mm\r\n=Qsd8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWhhGPnMgHed5/I1DeL+VyNlL2ZgW7M5gRXQwAVSIA5gIgHzuCJkWSebrRriG10IrzUYQ+FoMws+K6Mt6UxmtL1KQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607962731553_1607962747384_0.1571207626170088"},"_hasShrinkwrap":false},"1.7.0-next.1607967103675":{"name":"playwright","version":"1.7.0-next.1607967103675","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607967103675","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-PFb6U6UMm/cJoCAyvgMaKUTnKjHvX9SfJvzE/FtexlhZXat17DTJzOrH3z+MawCad4y4LDnFsb/LIJeOJXfs/A==","shasum":"0dade8eaf3f2b0213f5886b55ed73814450c6808","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607967103675.tgz","fileCount":179,"unpackedSize":19170107,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf16GOCRA9TVsSAnZWagAA0t4P/iLtHqKs7ocAacxXZRa1\nSdCssiTkCh4k2Y8KOELATz8+FLLPKtjhyyCT44Z/YULd8V7gj0FnT56syHqa\n0Ua6wfb8eUylN0RUQP8QyXnGxCVP3ZCOrwIwREf1LmPJD27l92Ct+2ebt5/D\nxXy49mlAFZGuhKEGKQaI3Oa/OpAVpVttb55Rg7oZRQvyMGSvwAnJ16/QV33L\nEEPrQekvRF7amM39Cq4BNnwcGVMSXRzLbzFnsXpOW/pQ/6D68Dldc7xOghDo\nBki+HRnr/VrpDI+WJv+Xvq+G8got8Uj2Bq9dylxewL0W8AXv8KI37Uxpl3gY\nz862ShGoSTVhtg4FQWIV7O5x/suncl3YpnMYDzTlPOi3PCmY+OQ5BcGdubSE\n2q86N6LK6gXo6o4FQXVM7jrhaLDZ1cev+gml7T0jZs5GEcM8jzKRg0bQpJ83\nVzzVmiGAf49gafzwR5ZzQc53dfEkTUwO9l+s+itY1/aSgmvQ31ZJaYJO+6IR\nuQ0RUFoQTHIW+V0AQ4+j5T7dq/Oo++5DXEV80l36hh7t66UFeWwnHuX4HrGd\n3qiI0dlMDkjoRAO7pk9CXuQenA7KPUWt/xdALQEhsInw16B6BInsjgSUIgRZ\nNOUV9bn+hXIerjIrUsjugBQOzXoh66/US3QSehhl0+RvJ+90tVQiyBpNesD7\nIeUe\r\n=mV2r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+5iHuLRI2Y/i7LbpMVcpyaO9wPRD4oud1ZM/n3Tzi1QIgZ9TxxNn8XgJ34XArCudIC7c8vBDOENB1mpLRFw1sceI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607967103675_1607967117854_0.5912006531377176"},"_hasShrinkwrap":false},"1.8.0-next.1607970656898":{"name":"playwright","version":"1.8.0-next.1607970656898","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1607970656898","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Y+3yze8Wxcs4L/d81OZCQ6+ajpz9lPEsmD9AHfjfeUkrsObiVRZyy/ebzpGMBWkTEppUlm6869PXBiyYqQ25Jw==","shasum":"cc8419b01a678ae86c9145fbec5867b84fb98f68","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1607970656898.tgz","fileCount":179,"unpackedSize":19170107,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf169xCRA9TVsSAnZWagAAFPUP+wQrowyXSI6TlkBIUSI/\n6GdMcuJzt+mWKHEeGUXO8PDxVuNxk3aJyDrKnNnZXnIsFLRCW+U7mpujuvg9\nEbL4qvdhv4xdBxiWmKmtxLmRh9FAc8pFvp+QbvBAA5tn8v7Hb12Y+DhTlfH+\nMsIItITPPiuaUFbIrSnyRejcNIT9Cym8PFdBfHBmHYOkDqQYlrdJFuiRkn0u\nUOHr2NAjuiNP1mV+W7x4T3t0AnfRa9pCiqstRc9WmKekKZ/voePtLFUjDOxL\nmKIWd7ZCPNzO6lgv1jvRnEOO0KoIXXqSAR+KWXdmyskhukul8WFUFi1wykCC\nBYnIREeGHBvW+T6dovnYeJnPqxqfRYIjgZ3s0GDZI7BzSqk/R6nuRyChN/r6\nmGObLBC/QHILKJ+TeWqdvo2R9xSZi/wqfThknULWwFSm9sGQVoQ7zWWJujBy\nESg+2SmPO2WwglmgnazqMuPdqSU8jC04u43lfxc1WonWr1Q/BFqsPqSibDYn\nUEvchYRmG1m+CvYk/dQK+ndz+3DSjbaBZcyWbE4A6mOR4HD4NizUxRyCIa1v\nmeHGZilQ0P+v+a/7c0fctfJ/I0ueZ/REK87b3vVIxv/KtuPVA8OxyavBJPgU\n1Gf/DQLoqPtotjYcMiHUTk4fZui8UmvnuInp3BnBpstptNHUhwBQmbGaODRp\ngdg0\r\n=WWx7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRt27lUZk+W55dnMR0p1oBBl9oko6fghLadcoIi4F+zgIhAOOYtvpl6Nqp0feuTUqE3pRm9j5KNKJ0b36DtOFaGSG/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1607970656898_1607970672951_0.4379394667383292"},"_hasShrinkwrap":false},"1.8.0-next.1607970762273":{"name":"playwright","version":"1.8.0-next.1607970762273","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1607970762273","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-IuvL9k3XFYfEUPuoqS9+PZC85eai7bm6fBboj7hkFo872tlyD+bUsuNNuCQUsqtkrmblhct6dc2gCjAg8Eenjw==","shasum":"142c78bfa8716c1bdfdc2ecac8bbf2ad87d43f2f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1607970762273.tgz","fileCount":179,"unpackedSize":19170107,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf16/XCRA9TVsSAnZWagAAVNAP/jNhjTiwuFUs3ZgCkvzs\nTZpGvTa4bIAS3famD5eInDzjJsMAIQrUhy0aMie1iYmJzI/0jBBXacmvxV4+\n+XroRd3dwPVEsYa+xpCXmIS4oMvVQqo2VuzRSnLmNaPdc62YNylOxK6Qkyav\n8DCfYLTxtsZLWkDYrix2LZMBNF0V0CzMkALmHgZT8KZpRUH8vWJWeCpZ8kzG\nWRiOdDiNDC82BZztW13lMpQiQfMa4UhOoQiRVBTwpk3kvDELXGlFUAw0LdCq\nSF4FbGMzzW8hwhdAwVBgrxqRtykw/liUn5GzZXBDQgRiBww+WCZVPUuv3C0x\nAirij7QwO1fRntap/O8o+OB5SOwDD/rYe53MW7NopcarfvYumZbgmAE4nGv0\n6Y/OlPDexl5hDXVgLEvFQHDkPAnL/9+SV6PH4a/yF5opvUn7Q2gW4b2+IDi3\nMxBPF3+fb3gMVKjCoVdMKIFKXYHVJdapQ4RVZwHw7BI2RGO+y45Xex1QGdmn\nWRa6WNb519YiDDFzWT6A8KJ7LeM6NuRTMVdDAQxsfi+DxtB3MXhJgr/r2PnM\nLfoJahtBYwTI2ob+j8Ev/ZHCp83q5YTGpduInMYli7ud81UMo5jCRUKWwEk3\nP2fk9Hlv9awSYo6Xx7bLlY7dT50CX1KK1ngLLGPdNJZoQyp81Zg/6rkv9w9Q\nhISA\r\n=2DP4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7CswwEpiz88CkeY7/dp2MSj0UsNDJwVEeN24b0cgC+AiEA7ozMjeUM7I7XyLfhk/ObdgB4pCUthPNk1ts3tZAfA5Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1607970762273_1607970774984_0.025389119383851577"},"_hasShrinkwrap":false},"1.8.0-next.1607981803965":{"name":"playwright","version":"1.8.0-next.1607981803965","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1607981803965","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5WFIjKoxzotYbUgya+8AhQsN60s5jFDiktQxu7vS4BVjehxsaj5R+UEWWDEA9e1NyAFPv1Z0EYTo/hGLlaxh8Q==","shasum":"45ada2f4b1cb1fed9a94928e0d66d868c7c79694","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1607981803965.tgz","fileCount":179,"unpackedSize":19170175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf19r6CRA9TVsSAnZWagAAnrYQAIq9tD4L6TafO+klZsK9\n4sK/sjYkyh5/QdYpKJTGVPQIKcO5DcOKUeohbNZxZj7izHiKSH39pMg9p9KO\nKBelKw0GKCIOXmT8lQbrUhVaCAszXXOY7xb2w7y1Q0QegNFbHMI9QI1dZVXW\nHDytrmoGrYdrm8ozsWLE7TX0MJ3q1UjmOYCWOmFPpYWAESAfyf0olHcCl6ny\nnyp6vCaJNRiU19hAQR34YHm5tGf7SLXlf0ZxuXJ6k91SRGhGQF+TFA9oZ8U2\ncIyhXKbRtFAiwaeGq76mLB1aRklwpxSvWwFYXFTFfFwpI8n9vs96QBBUdbBs\nN1Qal7b5SBz/W62Sd8rf/LBvoQ6nxxoAnFYK0EEX6CetBX641Jx5KpZMvUW8\ngG1j8tyT4+sZI3EetkC7bm0dQ9r/6n0H9x5VFRfqUQ4xvwpee12c9z/orL36\nXEJ5GrVJaAjAaKhHIvhzS8bYjfGY/aRFd7Cxoq/Z07g/D7oTlWhnf2yIxoaX\nfJLlqU3lFNgScR7vIbEHQJJqceUhxw05Dkox+S2rDKG33B3GS0nIzh7XSGn8\nRGTHQvnH7JjIyLumEWaVE4s6lny3/HXi+42r4CSV2YCc6IxYDlj/FJIMe0pJ\nTjx+6U0/xKwszw6QNE2gD8OuxPYF5OBViyvEadgndQedUW9L0A02atb4DpAp\nfMo/\r\n=VJzn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpf01fLDfOb5xCGRr+SQSGlFiGIjc03iuOjC6xtO1XXAiAkLK9mQH16SwSjk5ZukmVTRADzQwiNREQ/sNtWzpVdEA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1607981803965_1607981817559_0.6028896583810155"},"_hasShrinkwrap":false},"1.8.0-next.1607988827826":{"name":"playwright","version":"1.8.0-next.1607988827826","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1607988827826","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-bg8ky5azn/4YllL5SQLbxjO1YkoMKxSOGYb4gVe3vZmjVEklhnpNPFbyRiTxGsvBdjVNDSbOcppj/PSSq9/RCg==","shasum":"ce5e6698d99afd5044257098517e77e6975526f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1607988827826.tgz","fileCount":179,"unpackedSize":19170178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1/ZrCRA9TVsSAnZWagAAbaYP/2lLizEOgjjMYbVyhMCB\nNpjgOOpn7o6m1w1HYxCiik3F3shmNwMLtGU7oxjescmLSTAMZ4FWiNJrkAqo\nr18tvykvNySsiTRnu71pDGBKaE5m9NeV5ymWIhxA12FQzCz3XJyPdAmMEEva\nu/4i5JrF+DI1PZzIzkpTVi7J9s0Qz0UUsRWKyufI1UfT59NCFGTBV1s8q8zL\ngangNhXKf0/sEFRXi/BVxmd4gH7uGa3fy7FuYkwWPl5KW+9ZB0TfXJiPoKhU\nGw1RkEdC+186iyI3XFEsBoVd/+cYECaoYuV9MaZ+vRJtEw63ZTCQEuLqYsLs\nOfsB0qtyzvE+z7OZshhBcwyAAEMnhl+sFQMGe9sKy71ao08a9KMe2RI7197Q\nvXfmiuM++ZKyH5w7vteCZd9naI9n9nJX6LHEMBVGmiO/KJA/ov+s8hJ11rwo\nKyxmTV9+bDE3pu+NT+1F6V2E8hO1+udIs3Xj6Cku4xh0oaiAIAETdDB3/LZI\nY4lHDzWexQP6dZ12gsQ4XRREXWJO98C/woQ7/tahQbapzIvSK5j5Pi85WYZB\nkxCdSK88vBEJu298JGobHtBI+C+chKfyzaDH0potfVnXbk1hkoK/MzGunExe\n1bktzkql6MS7ELwd2GrxK3WWtlLwGue17KC5e+MpGf8pdjEZvpnOkCSK0vKk\nrtkN\r\n=NEyT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8gIWlGL8C8Jhto3zAL0Y8Yv13M/Y8QmF76i0QHG79NAiB6vb5repqIef/lDlxr+HDZrFCuRXhxRr/4auj14hZoHg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1607988827826_1607988843010_0.9080661428107457"},"_hasShrinkwrap":false},"1.8.0-next.1607990741526":{"name":"playwright","version":"1.8.0-next.1607990741526","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1607990741526","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-9LoNVYDby2wan4Yk7gtwgJu1l9fYnGqMyr8zB+cVM1ryDoINjOIRqzd4lAcIIxkgqjUxH1C7iM8/imSckNX7uA==","shasum":"7bbad996b1f1c8e683cf7087a39478825f41ef5c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1607990741526.tgz","fileCount":179,"unpackedSize":19171998,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1/3jCRA9TVsSAnZWagAAKVIP/iS0xJKtCXTNj2+Elt4S\nmWqNzPZGJiVAInF7drzF8BvWnYi6bVEZdJbT7byS0VboO1rByzIqS/7BaEhW\niVGoeYQp4q8sYQCFflNBzKgfHsRo39eyseE+llgh1hPMegD2PeCoY6l7o6R+\nF/KKDYzj8dOEnlCTm2nY5MmbtzIVH4IiCjFmzoclPCCFbE4eQ7Qcgc9VwunF\n+ZSUsEQj8ogEcx0pCRE7RAEwGsU4rubBl2LaPaCic8iR3xUOFd5MYR4oYDv1\n3TV0gsG1dHjxBGlerdxQpuFOLsWJvVK6ELQLPhxLXdVS20mkdN0Ts5VZfIup\nrLyw7XnpRw9q/GEwt/WCJpR19gMvFKqdrR/F1cU925fA3s+6H/W6a0cxFAE8\nIHdh9R5aBGEBHEKPkysBPEvi5MMZ7Db/uOKK2EteX5EZ/VFjGfK898tm98Ka\nvUN8k5YcCSsq6gTXOpYyzPVPjEgZY6ZGugcNLHQsvkt38Wdnwx18Sg50bC3Q\n1yXjvl4/oe4rHcu12SxegJSsMkcJINhNKnT/amTVbkl5zRhkvVquT4n+XuFA\ngAyIkZFU8fGJqe/TtrYLP//WkrsYhUXoUwW8QSpG9Wfq1lKyuF/ADZIeQcdk\n7gyRT+JbXmY4c+GOiaSV3ywHt6//aKJyNkmkY08OeEHiY8sWZ6AWzIL3EoDj\nvM/X\r\n=ph72\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2UXQKGPt96ZHinkm3kvkwKKEOvitJt4cV9PbQ8Xa7QAIhAKiajr3dzRi+clPBODyAae7VbzhZ7+YWsTiOxJpnbU4k"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1607990741526_1607990754548_0.05864661583380504"},"_hasShrinkwrap":false},"1.7.0-next.1607992610201":{"name":"playwright","version":"1.7.0-next.1607992610201","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607992610201","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Z9v8ufbATaB2XLrIdRzA5CYp43VTJ6PbbWraH0+p2VKFg7s9IrxHWdd3KtLdzcJ2NkXun+4/pwvqQfGOeb9lPg==","shasum":"8584d2787dd7f4a17a0a41c7e91df14813cd7447","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607992610201.tgz","fileCount":179,"unpackedSize":19170107,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2AUvCRA9TVsSAnZWagAAMgMP/1Mu5B6YrS2cXb4XXI45\nIWcmkLs54YA8EmS90GP14oNyCuCCp7qYiCHmgHkyk/JTOa1BbFOb5PfHab5P\nEenLhHzutZ7NhwF7olzu6H/upcLqBBzzaa6QY3SB3xWGiNDm1Qr+t5P6rtBG\n1g42u2vRRk7ow8CdVcvtXfNRRpalXGYqcdbBzwKTn2/ibbf6A/WMwwZzZtFq\nGKf1vjE4166OBo8HeQHKerCLRgKmJH3zGTVcY6CGMdvs91o8ETtPDEMcbZ5f\n6beVMy3kxwR+9RREazip+K6NiEQbKJZSdOxD4YIZwGde++k2iv0sWAuGcPkC\nj0bZhCnC7eZBescM6RDq2s+T4c6K/qzJ7WX5EJykbLc8s6r0Hezbu2CSL2RA\nOgdBHO/cOtd+1++4RrWThFFpHs/rWkT4c43VyWdfvljOhEFNJ/vFtX2/mynr\nj+i4X/DGJ+IkMFbu5ezqiB4hk9NnlTZNOo1KSLB9wRnKfMVyef9T/++3g8Sw\npgU9bk9fyi5cjP9sFUIhV9S+So98m48zD7ihnduwJikcf0czN8yeU2osoUi+\na2h7n30zhCdWMhvJQbtFOS6pqJKcygFUMjOu7Ea6/OzVuZhI7f45DmMCPnwN\nTL9cLnLToWOmE62RcjDgjRUwfAe/GQYiwQ2UlXn4bAa91jaSuAJ7FCKvx+3q\nM4wT\r\n=/WTL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDY2g75u+JuNqVRRSD+Xf9fJYObmcQGjK1iCHmwsZ6vNgIhAJlnCgNtYdcb9lD87rPOiTTQCK2tE4smY4s1Ri+HZo6a"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607992610201_1607992622746_0.5059373176252984"},"_hasShrinkwrap":false},"1.8.0-next.1607992962397":{"name":"playwright","version":"1.8.0-next.1607992962397","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1607992962397","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-lXCAjxwSuIJXGpelpuUIgYLJT2C56Q1ezgdnNNGXdGqeH6qyw4AqJYslHJtWg+dUVGaIKYhFoYsxvwnVU/YpKQ==","shasum":"b8bc531ce590fd72d45aa1c35939d3be5d72eb66","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1607992962397.tgz","fileCount":179,"unpackedSize":19172626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2AaOCRA9TVsSAnZWagAAnecP/3yISmsLri0nz+rmGUgf\nM852nUwG7Esp0bfjDADjuOCsRmwkyVYk24/BbBU2yrdrcuJTwJA2iwNXy0of\ngTs8MQ4vQdXyChiPPx58UYfxkTFJ2IUWvclqCnj6zyW3SCZG5DiwBHJCfSq5\nxATOjB8Xevy98qubR8yo0iHe1waM5/9D4dmiLoisMvPypJCCEaEdMi/z3bTI\nnBCNwMvDsygHA1wjfq9s4qxbuLBeHO4eMS2t4rmYQwiv2Ie+AOvrtGkK462Y\nFrofYesFEoDhRghDP7QR90sU0CRZ7qJum6+B432gZKCxMjSpW/zqFiWi3+yq\nIgbA9ucJONynM0kg/lf1vGNkme6jWWZ97sKF20X9afJWIG3naUVtviIiPEkO\n1YreA56yPZZ7YJPbLdfeqibEBFXfnQx78kpZgHhKgXGwmyhBM1/jjmmlAbXe\nTqGnaHAPF1susUNRrIwH2UCmm3hvvARxKIdS9mjQeMRvs3wuXaRdBrO1Tbtt\nG1Hdi/Hgob6HkRsp935ILxAlKmQCvSh/kki//f5mfFaUmm4N51VNxcinzumj\nJ6WqAkTL5c/92zAldIJyjWcPMbsPYbyOFZitLiGPEC9aBFDNzdYRyub3JJ7M\nZT6r+6Zwi+R0xc7gCOjKapFKaBHHxrEqkIxyOVUN9S3VUh0x5c9y5WHAj+AY\nJKR6\r\n=1oiO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHUL7U/EmkfFtLN29VxvxQB1YOI2O70dQcc8M3BK0wn+AiEAz633MhuYBhf9r9GimEGJMxrA/b304e7CsJrt8ZiWXnw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1607992962397_1607992974265_0.8915226790834168"},"_hasShrinkwrap":false},"1.7.0-next.1607993309811":{"name":"playwright","version":"1.7.0-next.1607993309811","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607993309811","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-qYRqfJEMYEdQgB6hLCf6+HuCTrdbbNedjhS8n2AlCUyag4FimGcO9Ox1egFkV32nxIDQqGndTDhlfXxBNK0OXg==","shasum":"2d73fe58221a6966d55db45c24ba40ce4079ab80","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607993309811.tgz","fileCount":179,"unpackedSize":19171927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2AfsCRA9TVsSAnZWagAArl4P/RB1L1eTqNLEmPg23Bad\n51mBsez5qUnEWfYebWT148plAUhToyWJt5vpiErYVQ6OzLJU6QLpqUuBVblH\nStpVg+eNnwgRgWjCeXP89boDG8eVhH34hz/ak7q2vY2w3eQJvR/rF4fy5PF4\nvXchuJIZb4lM+8v0zxlG1M5ObyKVoLDUEwZWDoUMaUbZBCGq9HYp6NxBlIW1\nVli2Z1d8N/WVlE2gZ5vdJjf7lZiYOmkO+w1rzIbA2IpSWhXPosiSplmI9pJW\nEawFUlc0NIckvjbBb2OQITxrTWyfsBf+bIGcebBFX5V+HsnNaea5CWCJPl7p\n0jA8lfQ/YV2ze4oydoTrs03BwSTffi8f60WwlrfWIV5emDCh80R9cWrmbeYP\nz1wAUnbrLgi94VyLlFaF2gZdPWxQPOWuEPe/HYeZkYuRGrBgCo7G5g/KxaH2\noRAkOabhHGNFfc8oqMMf7JuACdkdzZTH+EOU3pgNF8VMKvi7vrB9Coffw7bG\nQYguvNMMlpwgOTwjSpioj1U9FZqhrqKg0LoPtj25iTuBpPVH6q4GSi0Hjlur\nlt70SGPJYlUzyfrSjWm5MO4dA+ewPQezCCEt18Xh5YiND1AZOD1B81/+o6G3\nDyrwEklEedoUSZWYFWZz3Pub60DZp/S2Lpn/JJQx9aE1m1j9Y554IM5FyO5T\n5jls\r\n=KPsp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF+w1FqoOyzCSjSyK8NXzdxQ3vUaKAnx2P8QuHKTUOAjAiEAu4w2UeS6dPkFjklqMpsRH9P3VQ287GZI4fPoEgBDttE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607993309811_1607993323933_0.3687536738544377"},"_hasShrinkwrap":false},"1.7.0-next.1607994464309":{"name":"playwright","version":"1.7.0-next.1607994464309","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1607994464309","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-qSe0Xy95Z/i/38rZStxSQG63XmMmQsLFHvxT6/L8ijYMCVo/lfUdqDGjtXsuKAym+xdrKlgG2pP7KuiYkNLuvg==","shasum":"1ac73cecb39523b35c860c6acf58f18de0b831f3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1607994464309.tgz","fileCount":179,"unpackedSize":19172555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2AxtCRA9TVsSAnZWagAAXv8QAIV9ArZ+JWXl1BvVNQQ+\nZczWeMqDIlMhcopUQfWX/IOzqhfus7ENlC1N3yCv9xylizo31pwCBR6dQmVc\nCzC87zg4neYdEQfNjnT8+8Xukn1OmBTVxOJqD3XzBGqILhCVoNeq1NWACgBN\nUJj6bgi9jWzaLjwPM72MIrK5gucsrj7vCnkAn0lshv/IHPUFxapdo76SG5ZQ\n3OXDlBlE8OPORe6jXhFfizfVwQC3r9z7YVyDzvjdU02vY5ESrP2VhPnS+FKO\nH1WU2Sea7Fi7/T+dDSxrwu2mdfKbyJcGnla/vecPMuaHFq4TqalJ/ySMv018\nQAI9GgyUVF19P3hFpPbKf1mZeV6uYisUmvY1mikzGBzh1ox8Qe7/IUO1vIKL\nu6gWxKkpK76AoLm0dE5OPma/KIkpg5rnOrsxvRH+QqytECfqyIoqwDG/Aqts\n8l2uDQWt0Xgw2eXoB9craXG4pLYMqf+/X/MigklGWWLgezK/Wn+TXPPc0HqM\nl1488CEoleWS5KzLHG4ChVd22Y0o0/jWpIwMXFV1/NfQ37FihSxjwXDKFMnG\nAEuSNLTJg6hLb0OcLa+f539sE+A9D6zDv2gnALcLh8VuqUexrTJWBx0FZ2vf\nUnMQz6PW2QxNWRUG7Ppc9gp1Ff5hsSLpYJVvjyp5AtpwvhAAfl/dvmTfNamP\nz2Pd\r\n=8u98\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEs2xnrq7xlFk8Z3p7m3ElJG9344NCxYlEEAbE1VVataAiEAp7SZJzzG2xnKhPakVY09u5q+IBZPMsL+R+VXu7PF7U4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1607994464309_1607994476814_0.3872199167811019"},"_hasShrinkwrap":false},"1.8.0-next.1608000060809":{"name":"playwright","version":"1.8.0-next.1608000060809","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608000060809","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-w7KjXuEXsgt+B2A7CathHzGe0zF1Ay0kc3Zjr4Dd0TCWfpcqcQqfJdZrs2nS/W/go2a3n0HDsuY48W1dOVT8nA==","shasum":"d37f377aaed729f8d21c2a80af1fd678a62d260e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608000060809.tgz","fileCount":179,"unpackedSize":19172659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2CJKCRA9TVsSAnZWagAAIosQAIs6x4S+K6b6p2pLBYBr\n9kGHnMz8k5c0HveJ7KaS1pI3Wv+d8MzTQkfppnX+8oMJpTdSwigwu5bXo4+d\nviRwPpKqbbAbYocEncgIBxxFJ3ujM0QU30yihMjo4tU3UmMSO8FbC80ctpGr\nSI+XDQ34X+RHQLHER3u8dsmUrUMJQwK0C/+Fw2HQZLC+Fm/yuJnlh57nnIGG\nk1ZsUuwhajmh9QgREMzs3dcSr/Eq2znHZtCaS+bJmpIu9d6inXxyJIRI+9Ne\nhObhbS0S2w7qIZROF1cGKqlYHqw75DLBOlwEmsOlSeag57KK8d2WGfblL7MG\nhVXEsQNyB/c9R8o0HYtVym02kZBJQL07HoL8uTXnJMDwNC+4na705eFEBspz\nV0p1PEWaQbjlSkkM0waF1suq2ZdODUg468XzdtcFcvDBbpiz7gUoK7p0lrhj\nrS4W2dHMlvPWfjZc3Mf5pVNxk60cs5JKRQEw+eUA3RiG7iBFOPoo64l3nYCm\nXSFg5bFsfAeiy0MnADa4QNuGCZ+vtF4gl9nLg9NdJzIEgm1fhCaktrkDosbj\nL0EJbxiToekUhdhh+5M0yj3sGupT5yBSeTjCp0jgkouLigS1Wzvfd5t8F1Ws\nfxCcXVxB7Y/w+3ToWWg3qZqra6yOzVPi6jG+Q3HcSVuZwlF/g7niliGGUXb9\n3m+J\r\n=QKn7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJkHIDGPpI4PoID9TmTu8QNa716cHGlTyUrl4W9qFzTAIgEMOTVqkcUosbF0B7WQ/TKNz9LkiXYfpnv0Qs9ECCe3M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608000060809_1608000073159_0.11007725119903755"},"_hasShrinkwrap":false},"1.8.0-next.1608058261773":{"name":"playwright","version":"1.8.0-next.1608058261773","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608058261773","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ccJCyNFVGhZoOpTnSQwW6T9sDlFhYX0qgTc+xmOVx4ruOmcocqHJrAIXCijw4MuVRPRCrcs+Dte9ca4oAJtLVw==","shasum":"337e37ec6f5466010afc7eade8c72954339745d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608058261773.tgz","fileCount":179,"unpackedSize":19173805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2QWjCRA9TVsSAnZWagAARvAP/Rn4HSG0Yy3YxEwi/CKk\nEBOln5b9qqgMlmtK/rre1+mqJXwT7CDNbCWovZ9Jp2GQScsQm43yN6FzooAS\nHnhe8rBMZGTuVzUXc0BpulS9m3tULr35PPOUSYHP1MwmalLdLji/UHmUkmC+\nRVmaIe9hczO/TwyCaaAsjpENnJR9sVvMJbhRGPfaFjubmARtulRHNb9PCAQg\nUJ6vuef8EgrSGfkOg0P1FK/H7cGFTrpEyRwlbgZGj+e3lnQRHZyw4kq+ZNWX\naFFrGwSept1SkmTagLQ3QzTW0/tv5pj8jy7ChigA5lXfmljxNS7ovxnigT+i\nEZ2vb7nP449lKbWqtT1bp6I9oUUJfoizlqyT1Osef3N5eEx1DL2YOo8DFxA/\nEGJCBTOChDTfinx8D8cPVhZ/edEsMNN6LY4GcKsAgi8CveNUO1FP+wcDt7l0\nrzLU3CyXcdP7bOJaXDoK7q8NZXDe4FuJUFOH7IG+z0AdRraqQJue9VFeEiNQ\n2kGmNn1o+yIIAlEdqCCijY4spbvKcemzaLG9HklSH5MSttQQkCq3W0KfO/zY\nRUcILApBosOzHawCUA1hyUcG4BGy7geukher6jIlkE287dLZAPWSyM32UCIQ\npi2SQ3qK+aifLECFh9u/2KKJ0kvKU5Bu2jrwjCrLEoCnJK5NeHavgfALnw7T\ntmwS\r\n=PHzl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsXgJ+ticIqwQjXwjAu3uR2/o5HAGh6MA5ihQMomwb4AiEAxjpABxbhfZRJE3io0h8XYSmCAFFmkuFAL2ru6nZs0Qs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608058261773_1608058274395_0.018583588860447753"},"_hasShrinkwrap":false},"1.7.0-next.1608058598043":{"name":"playwright","version":"1.7.0-next.1608058598043","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1608058598043","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Sf7N3nbH0e5AReFHw/FykqSCHYJiaN6xaaD6TRDFykI7LD6/nzGLn8GLu7YtWjkrtYZOI3+ljFgAwVqUcxnXOg==","shasum":"f403f40fb241a88c68d538bc6be1a4847f823b7b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1608058598043.tgz","fileCount":179,"unpackedSize":19173701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2Qb1CRA9TVsSAnZWagAA3aoP/RW+XsxQYeVsjPQfemvm\nUZKl1tbBPuB2o5SFjs2V98LGAF037P6ZBXS5Y3XhYKymukQz3ACmtC/ZADO4\nRXwDi+e07Jqex4U0jynpwQF7oJVH/ELVBUqJ80zs7TMsa2KXET3/fVxeXntY\nKi2g2L8E6tdIzEn8pAw+xLaMNd9uLJUvsSnW1Cv/VCamO/M46UeFbfaKkoGv\nvrj2wExSXaPXLOiwyb4ohg7mXlu11tYE7jtYASDH6fD2zrVDI6H2vwkF8vsn\nu2ecPdJgcZqeiYBt8b1HKUSYZ0i5hh3yzDAyd6UnSPJcXEVRKh7vD6Oo9B1O\nv/LDnrrlHU5/o6htHdWmUcAvl7FyHaceDCWG1SxoIrKkoeqBNiJp3z08IVoZ\nFwZ8UVMVkDyco6eNwjLrKbl2C7kcP/dOKDiXwX6lVQKr2HTgPIko8Ae4+VLD\nA+b5lYqQNshXzo/XkSJ7aGCL7omQ2ByxEHpzdSGo3PfCpp/i0DhYSd7pwXWh\nZzoxZmSKIaQEoWHpFpwh9bRh92zUIvHz/E0mJ9OD7CfoZK6x5r/zFqlYapAq\n6hskeBn4iiG6/ZBG2N4jTvo0tdiA86MkxDod+UzkV8mK9YoM8OKlEePsmjA4\nMpGsf4nnBdJbcx/y0SjrsMsJ75aYmGyBvDeQCREUf8RyOgAj6hkwBJ/h8onI\nc2uz\r\n=FT4W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNmkgHeztsLfRVGUChcoAuqycX5lngp+Yww32ZoKIuBwIhANeBYwpUQXxbq0Hz6F1EqX1kx9H3DhQaObSR57UT3OOc"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1608058598043_1608058612332_0.9298405561836118"},"_hasShrinkwrap":false},"1.8.0-next.1608066170624":{"name":"playwright","version":"1.8.0-next.1608066170624","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608066170624","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+TeV3aiqauKm9v2ZTRIH4hH136AX1ABE+dwdpDyYuoeqm+E6mgSxVoQCU/tOQTN7OLvcGR6BKZ6XH2LXKwXn4w==","shasum":"11ea99443c956f6be2942845f932847dd6a5b5ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608066170624.tgz","fileCount":179,"unpackedSize":19173805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2SSLCRA9TVsSAnZWagAAhfUQAIAH/QwOdvMdog8HUoKz\nTGtlYliw+TZILTHDSAseB8deiBlc61c5w5zVhfuGMRAs/BbuzlPEB6DGfCRs\nt1MUhfns5TEjvkvW+4CT6FuA6Dvo37Yct3QFxiChj7RBTuyNZov8hGf8uW31\n22mcf5eTzFEapbcBKnfPvQ+w4nWHcLYDFEpTKsfcd05MtzY8Hjiz9zRRSiGu\naY8YdNlgehJQJV5i84+P59lqY7GgHR5a+4kw99Mf2Pj37DNNzEINrDSmw5aS\nBvbKTD1xOcw7W76iK9XnDeneJ0PF37Uu30sQs9sdfflh92Ys8CMU+rZ9KdCJ\nRPsSQJ0p8bQLpexkl4ZYffJPW2TR7RD+MBx0mULAXkFp25sXwhUyFWJ22EYG\nMvEZcByXNT4SnI60x+ZjobMIZV8LT7ECtJrlYHP9kYkQY3l02VDFmlEFn1cj\n27p0AdHuNuNcT1+J3Xzl8F49+J6fRIQVGI1M1/9QIcl+QKeOF/Z6CaKora71\nMXB8gSZml+kCc0EN8dILeQAyeeF8NE1TCU7QXOgJRSVVTKCK3dWf1m2B7kQ5\n/X2lMeynUjGxkoAhDjljgK/OK5r/9IL97vM6PV80+OlrHN+TXy/gHM+N51jF\nVnJCqFxAyjtQFRGjwP+u1jh0IMGk/rwP+kgJ3A7YhzixIfkpjyx86vQRzxgG\nAhr0\r\n=cNDa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAPcrJvpn03tzw8bHSeFWu2hEdh5ewBwtEj8DrotdqmgIhAOBTBuJyqSl4BDhKZ5l7cNza4KllLuXopIo1qbiMkKp7"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608066170624_1608066186034_0.6788317860310136"},"_hasShrinkwrap":false},"1.7.0":{"name":"playwright","version":"1.7.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yHf4lySomty4wtWetzXu71zswPOBMHnCqyeGM3dMRObuflyuIUWb0/U++hxZnwHCkyS1H8/1+93Rjq25Rz3IGw==","shasum":"72a836dcdfa5a99cc36981eb2e86abafd9a30ce3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0.tgz","fileCount":179,"unpackedSize":19173682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2UI8CRA9TVsSAnZWagAAt6YP/3YskeXkhL4XFsnQmdgX\nj949TfopUQetb/6bydVeLLNLvGyJmyxQtdBukLFm6aNzR2wF5AWbHIWUcrnV\nPnzxZZV97eTFupaNDjnc/jvcD41eycX8pfElKNnFepX3I3y9NO2me/xFO2RM\n34h2OGToerzq1R8148wQyvL4YnrYw5c0rH6FnweKgxVzYlFTGGDqGgmNb2JS\nILVxUK7ln4CNh3n2n1/Ave436Cx4hT2DX4hN+8L+hoOOJKKXQR5DtE11uVTm\n8JKI2A/HG6Vv5wEI4BdcE1Fg0MUEkibDzZi+JtiZxiF3FlbIdvnB4J/Dgo9W\nmvhcvxiHB5a35f3LzazTZah1wHrbJc2P+QAHUACXOM8FuasTVKVkXRBx2eUm\n1AciaWc5TD2DbKdUzuKh8IVtMRo9R5pALBhPef3FWfthB7Kwejn7zNVF4sgR\nOKnQ5b1uFGJphBY4DB/tSIXSU4CTH5kP5vfUXC8rUE3j0KkRxRmqoTwJm+fK\n0UZf2SDFYvJ8d33Ka+7xVRNcI9aQr3kxSIYWUyf/p7CTamtvFWv1GT9PVENk\nJ6nWoAh1W3uzKfUoX7ccypSXUKQZNRk33gMERgXND5euy5UOHrB31Xqf9Osh\nmuMqfu9tK2CsC8lsr3bcGJYKpL3Gj+NffEpYakydm8YpylvVnUoZZPq+jczJ\npgry\r\n=I85O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWkrReW7FY4gB8vLnf+klmhQt1bykftlRwcoJIkcBBegIgAJJsblTPjQldckcCAtb7n7bfG8jaUBarsxs9MeRBr4o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0_1608073787393_0.8607631927366628"},"_hasShrinkwrap":false},"1.8.0-next.1608074162414":{"name":"playwright","version":"1.8.0-next.1608074162414","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608074162414","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Bduqa5nJD9PSlL+WYqTjYttQA8k+CdewVkfe/z+LLcwbzjtxwhP7f/5G7YL5PoUb4tQ89LMrtRJAGiWEOtbuzg==","shasum":"9121391419399a0c9a573f5b0b39714187eefcff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608074162414.tgz","fileCount":179,"unpackedSize":19174650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2UPCCRA9TVsSAnZWagAA4OgP/1ECvBgUiUVm9DP8VCPN\nkxhUB9NOY3lVMN1n6p2XD9nRsO/ddmSkMfNGETw+LH7MAoMS+GFadIuBr2xm\n5X0EupoP0JO9y9pzY9HJzvqy5V6cW1W0IpsELvmv4e680/m4Gcf6gN7+sxQt\n3nJIZLax7LUefq6cWxOVekv4Qr1Ckz/dPHGUkd2SiLeYmTj0SENm93IJI2TN\nU2Gm6QnAwqypj+neSI/mq+rMa2v44c800pTp8EnLARuX2rqIlrFq9pXzsnQs\nYr7Ba61Fvf/zly97o9Xh2U7j50TRD2kCZAA4Wc/DTALllGU14rTyN0PdzKhI\nrSeA/FQmFqGmJoVc/UUUSvbNvMWj4PZdYiPLc9/ElM7jQQvCPqiyEyGX0piP\nCqLTSDNUhAK3CSeY9bKkaYAF4LzPeWcu81XukH56g+ARHvcxFoZtr1rGMKW9\nBoUaBB7fUgsGuGmfTc7epGvJ5KruS20Ln7V90i5PSJPsCM1+mPqQTgesCYa2\n6pW2HxiNAScP6ZTOFVdpWB6jXjn2TlOd9+SIBIGHIBhqcC1XJXucfojX35sJ\nL8jlp2T1wnJJOe3GfbWVWbmjSt07UTq64ysIEGzRy0HqWR+CNM/bWmsiTyyk\niuGRaxS7i84U9Vxw8wDp9mlxJJmEKdysker91YvM+BcJDFrgMyQYzzMlbwQI\nzmFq\r\n=9gA7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuEdJD/GEVns/qFfYu8HBpYwHvIrTnqorqZN9RRcBh/AIgcSeUeC9EyRMK6DDQU58qzM/Ovd4ZuBN8eBMAmWdeNX4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608074162414_1608074178110_0.9759288922219824"},"_hasShrinkwrap":false},"1.8.0-next.1608078590761":{"name":"playwright","version":"1.8.0-next.1608078590761","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608078590761","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-2bjdPPUjthBSydTQQA54Q/Vm1TiHk9iez+CJdbA7BUhM2HQMhgNIYuB5JxmHnJHXwg9xva+LS2Tr8u+mDws2dQ==","shasum":"4b44ee745860799e828f43c46d29a5dc3a4ec6e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608078590761.tgz","fileCount":179,"unpackedSize":19174650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2VUQCRA9TVsSAnZWagAAlUUP/jbkZUdPYykfkDj6gr2J\nhdjFznnr94k9vx8/cqM5U03o0Skd+uX5elXkFzyhRmBj2jW0aRVvSEM4q2nY\ned6VXoQdMt9wAdhTShBZdWW7+z9FQcRJUhFTToe/0EokohUqpmvpR3pUeGNp\nUmPn6ap90VJkYCGH4JtujX76Rjt7kD4ssLjAsETru/0AV4Pbw2PL1H7RWB9h\nYZcrgXSuksWCWocd/xTpvem4uSHT+Sm1AeDzA4XP+gNtwCaWI6OWZBDY+7oA\nCWmd3icffTBV3pv9/Y2j+95PrdSUbTP39GaT2h7Cdk9m0MHvmmL3Fq4+ouGx\nxy6PSugV8jh5beixMgmfbr840Btw0IkIGepdKYMILybae4eWQiGzwoI3FoWq\np8/gfsqYctn3CRAcxqZv81P9zyO8m4ki3GATirlNHmU8f8M4OF4UpsghSDbO\nbrXL+8ix2MAilX/ulwT2fV61IkTUEoWriKTEBtHubTaAXbw1WobVEjggJMJQ\n2FvGEeAfaT0GYsVfuqYs7nBUd9+IbDSBS3Q2iLHfZm3EdfD+UcpYN+uK14Tm\nZ/c1s5Kd5BUu9gPtam84/xI0dJT7C8SGRcf9WU6qMqW9t3V93SYuAzb/6dJU\noWe0jactFVX4fE6GN1j6D6Wppt2kJTkM4kTOlM+3PlnWx6lbW04b1b+vwskW\nrCVs\r\n=Ctg2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMGmWeTMW0Ne6shSEm2Zyt79OFddMKme5z+VYkMvXEkwIgeC6Gwoa8c78x/0VJLAlL9j+jICP1m4ZnpJ+E0oVd5mE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608078590761_1608078608040_0.2188408748414079"},"_hasShrinkwrap":false},"1.8.0-next.1608092230541":{"name":"playwright","version":"1.8.0-next.1608092230541","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608092230541","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wlGCFajWYtrapHc/cjU0ZakDejLHw0CsC/+YRINiuO9Bh1Qd0114Tx/C+Vo1p20fYSA01MaZl2QD/axcjhpPkA==","shasum":"d0ca0259a1c40e2d25df9e4963b0e4cbbc380dc0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608092230541.tgz","fileCount":179,"unpackedSize":19175141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2YpWCRA9TVsSAnZWagAAeBgP/jTctG+pfn7bxZQ4riIT\n3uHb4ml3wX2HGJwewPeKB0myTCWAIfyP+uBSCtfy8tJ1UZ0umsiKMiGL2uAq\nPUOtyPYwLNcpVIVUuxEJWTdgJtBuBwVI9kT+zZEZpd/3NkY54KzFPNxcBMMR\nCwobnOxWiugBBxk/ail3Dmid6dcEEzOzKihGV7qvmqaiQ+5zCY6v6T3O5I4g\nIOpfJNMLr2aCNa3As59TgDGhswMX2icR+bg+VaeOzeHmYMAyjrBmo8MAx+xP\nTJpjqapXJc2qes8dSrIxJVvNV+DoCpjehn5iFpcFvkk5MiUOwW8qz+C19/De\nO31WjWBlEe4WRH77w5D2SE3J8HXKsPoQfc5Y7Suu9F51Zq+FFxKzynqpl2c6\nzmBl9lDEfzoXf0EMwQEJbdqAkains3uP1laaNLJkU8U3YEUlVsUJZKpO4rvG\nys8PLw5nnMuigQrAS8uhd8D2he34yX9YhwJN+0FhiqFxj+XhDbaZOC/dbOTB\nj96tjMtrPXKfNxRJ3VtcjjXUg83rzds00iTYrdiGpS74g2tsCMKap1lgrips\nz+7AC9wiEjnunjeOS8fxdr14IEwnJjC1jmc1CQw03+ABVgNRNLeE3TdrbKaP\n+5AxYQdCjW+a/XdA8FQCZz1LDtaeRJ6aeKKhvej0T6edJKVQyDFXC1gxn7+g\n9noH\r\n=6dUW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDd70ARw77VxfUijtwB9FMlaR/wJFioCYYgaQ8UjfC/DAiBocdvYll/bJqWyklJn5cOcA9Lejh/YJBQDyRuTcHQ5zQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608092230541_1608092245434_0.9172159548349719"},"_hasShrinkwrap":false},"1.8.0-next.1608102583276":{"name":"playwright","version":"1.8.0-next.1608102583276","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608102583276","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZNsKbNDmJ+LYDR73hqO2hdu7Gc35H3l+LEdDdCQRqJY3g+8ukVf3MAfMw4l8Bqshl3Qsq/B6Wtgp2X093Oqf1A==","shasum":"fcc385743446c7bf787060587e49f6d6264e2062","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608102583276.tgz","fileCount":179,"unpackedSize":19175141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2bLHCRA9TVsSAnZWagAAwZ8QAIziNr+BOe/cllX9iCGJ\nDTEGqICcqzWr1pY2mYbuUeta3PD7LDVVP8ffFyOgiUMB89zodmEK4MkaxhgP\nx2RgtaXCJPs0PZ1xWL/uc2Ke5twU7+7QrW6d1WcsUOcwS7m8x3dcP805ILAa\n1B90QsiNwnaly1yyGbhgLqNrpSveq0MxdYrtv+6ECpGUegvNgqVKMhmJ6phT\nIitUeyoPjrOEQH6E03vjsge7UozVZe2ybhph7IkzSyi8YqBDAdPo4jVw7PUx\nUPlyEs2tCfxsAt/TIHizFZI5U+1vmsNB2cFTSW0Tc8G4a3/0WC/6ucc/FFOe\nJI1FGrDAMYrwPFLeYfcqhVPgGosyvVFMf8lXWkrqKT1Z/H0ZOvXgJax4Sr8w\nEKF3Ml3pzyLp+YBLxb8dsfmWQ3VNXJFBr5WAcI2hkN0NO66xK23+MbjgTqkW\nfe75SK6e+D0x2emY/kaZuDJDMKv/HTiZfRCPeirS3Kd8jLoLqks+e1tofNdD\nhs3JfKbP11I3xf3lY8SXPLoSi9FOPlcT9l+aNuqedvbcORrODRBZkgepTSTi\nAVkNNuT+Lw7WWPgxAcBmGCzNITLrjXfnp6Tm850Sf0GUflzjNzgBDgboGFsv\navotPwatTJMBJQyZLbOM2NIkeIc95xHHHT5l4y5xpT5dGiIeC24d4Pwooaox\nUKFw\r\n=azFF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfp3lrnFFzamtlat1ZgKcFjbCeqSOSAM3ETda5sUot1QIgNC5PVt7zSN3sxQIxheAHIS33Qd49RyvwT9dpf9Nq0sU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608102583276_1608102597360_0.6241238947989873"},"_hasShrinkwrap":false},"1.8.0-next.1608132638894":{"name":"playwright","version":"1.8.0-next.1608132638894","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608132638894","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Cdm+gW7rlRIC8P5769BWsRsyIAUG5oXEFIRoo7bFBF6a2PJEXnKjM8Fm+rS2xfHAxymdv2xwCqcAV3FG2dVDcg==","shasum":"eb81cf5a70ecaece7785da6ee8070c1ed4233926","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608132638894.tgz","fileCount":179,"unpackedSize":19175141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2iguCRA9TVsSAnZWagAAYBIQAILPPeDmX3mFHKIKhsN5\nCHh3bhtgtaYtTGKAYpG1oHVh+wTUZqu+5z2OvhOKxwEesPcqNX3TFLnptcvf\n03YU9kzzFgaNRtE/vVEP5Gtkq329+UizcTyG/6MxiTkyeOvZu2aiIWdXylN5\n4l28soDU6zZ9l9qFtsqVOAx0MLFmSxDbJBmhlJ/xEFShv7q+v96/STHjz3Xt\nMhEOIqpsRa5QsfoCFRHyzBS7vC/2+yV3udfNfnFOHLAnu5A70+TVdSHEFhwD\nzWsF88bZ16DnYgckRvdCISbtkeIWwsn9IAcGdLqyWuUZukiZxS2xVQvw4egG\nMYEyqwz0SsHnLzvazP2SQppwvRV+7x0A5lS5AqyOxFf3d2jAKTI/bV+wvdyX\nCL9m8cLhv7szPi/NbKqmHEvL4F/RdDFscq8ggM7t0WgsOLsLWLMKjBiURp0a\nnKYoQYMlvvuFVnp2ABoTsi6x3ArcHMiRS7Q8KNpHSX+xtyj8uKGxLTbfg8Up\niVqj0hwstNGSC4lpkP8ruMbMzBrQ4Om0frqkcCTClVTZF69VY0ZYaUcZ5BLw\nskYiSqvJgFcCUvDwgqMynje4Ip9uTfRyse4BH3IQrnDzCRGQXdHWhShTliER\nfcuBr7XqAvVPFhK1jpphRUbCz6c/HSumqKvWvaNk7lQe7EhoEcR8LfY/VJ35\nmYEr\r\n=tlNM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH1V5ldb1DD5QCT4H/LpG9LlMqm9ICJbizoIxnonevuIAiAzIlzRhyeUrrjaNPNzLK9cTrzW5ivs6aHSAAp9WV5J2g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608132638894_1608132653081_0.03256330334300728"},"_hasShrinkwrap":false},"1.8.0-next.1608139364081":{"name":"playwright","version":"1.8.0-next.1608139364081","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608139364081","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ORPUol//XQ53dDW/D1jvmy1H/jqTOknbDVWI4RmzeSmDWZsz8AhClzG4Zo7k6TPGNDT1ukpgjlY/CP0DU09BxQ==","shasum":"44149609ec465046259e61fab9e3fed4a43718ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608139364081.tgz","fileCount":179,"unpackedSize":19175141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2kJzCRA9TVsSAnZWagAAAFMP/0pl5Cii4YfW/prUUB4V\n3FP0oiP1/5dcm7QYZxj5CEdrXwu81iYw1+6sGPIozAL+QFp1Gah15uX5bpPr\nap0EcDr0VnhTSka13LqyMZyaTU0YSEjfwz449k1rHn1Jm3rQsBYtxaoOxIJ7\n0R1N9SnoJG0VlMKZpqR2+u9Lz3rB53BUgeiTyZf+yop5C1lUdL2yVbi59SB3\ndPuifmlc3GP5oAp++DTzKfkL3skM8wFkm7AEYNtbTYAsj0NKX2Yf2YQPrAr7\n7n9Zf7x47SAeRAe0bKVBNn9wmSR0N/yXX7pePxkkfY7Dyj9DyNzbbeeKD8xa\namThj9f+4iNCkC/ZTkcyipZFhP4juMayRPtlf1QiA7w5b9jJsXG4nqL4A2nv\npHnu3wm3Essn50pVGoiTwyZdC1aGqPTm7whDuC1Uf7nLcP4O4fc8bqdrJX/Q\nfYbGlkoYIHgHNTbzUB2Ntg/NRLUbWFAzk6EkSNzU2FY4C3UFCjHs4h8CmK+o\nK4aoMKng6cfcPMNsnPwXJWXsvY4jlNfONZPTiO1EAkQDkaTrbPYAht90lv+p\nN/EONs2vL5vRjD/BrkGnndMBtZVz9NrdJuSpJiovszbQlrC5dzqjjy10yQk7\nAVZJ1iW9b41IFN9keEU4LD0nZwd9L031NOMuAYp2TwT4w0kRzRVJ8vdr7W5w\n5pxq\r\n=EQLr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCU2rb7Y60rUA17HCnfOGU4SlnV71Y/x2jGZTRHgV6ZAIgS14gKPs2zXuXIF3nFuYgj+Y9ou87zFg4icSJ4x8FO0g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608139364081_1608139378115_0.2905010896523399"},"_hasShrinkwrap":false},"1.8.0-next.1608152128607":{"name":"playwright","version":"1.8.0-next.1608152128607","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608152128607","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-xw5kvylIih43+5IKMsjesynZF+2fmLyvPlsXenUw4xSZaDBGee8s7xLwApwe8AFjNoakthASBVevRKEYAfxShA==","shasum":"dd8ad22dbab17c66dea41f5a26fad37f41af82d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608152128607.tgz","fileCount":179,"unpackedSize":19175141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2nRPCRA9TVsSAnZWagAANzwQAJfgWJ9DLAuELweg5sga\norzEY7INipw7i6UitM3DTkeqAFGYs43G137u7x1HDc2t95lAI1h4nkaCaZ7g\n3rsfdXCl6ZRJUxRV8zqqRHsrbvMAifW1DNSUFe+0bcAH8Dz9DkVxriiSHbC2\naxZ5Tx+8TpwHXXZ0U4XNi88D4IPGPgQ5oq6KWa35VQfS/XZxWxf/+jLLDSeW\nGWRNhXlkHYCDccN3Y/6YCb+2c3QMM7DlU1NM8g8FIye50Q2m4KlE/HqS5S5d\nhxgtKcJkh4MYSDqvFy7XBc+1OZQgf1+B2WT+3NnOoyUtCrDfYwMy7O6+jYJH\nGWlp/pycNQnzGO8cEDu//kr/HCu2029zLB2PPmG0cf1T12b0St3cEMOqg2zZ\nZed0D0Q4wrQ27He9XXU2Zaqn762hQxe1oYlZMl7AGy0aHh4Mno5U4qABIGlp\n8aj1ySEC/6hivG/D5h5uosrjHuOML/MhNrGH8xPFBO284GT4JVDgLFRzVpoD\n63yQuWLuZa3btGoRTwo28XmxU5NVBUmW+XOj0fClmrw8G9Sdv/JptsTZICYq\nJmSHOPkW/+SGaJkQftyQ9jMly6urhl8jfrWZt4ey5i+B/SNLNxUOJe5Yn45X\nPHlNmS7MqbRjNQ3itZ7gXykrhtJQs6le3c9l+wD1I6DozOV5mNGtbY1UQFeK\n+YuJ\r\n=2Qi8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5290MSYQ0IAHZ4uteHJTlUqljIAhqUmWAIAC9AX9hNAiEAwMHjuXOyMOjuCpsqjZSk1QquVj6qZo9xCHdg8mUh0kA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608152128607_1608152142921_0.250154841989255"},"_hasShrinkwrap":false},"1.8.0-next.1608157445015":{"name":"playwright","version":"1.8.0-next.1608157445015","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608157445015","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KdSCvTyqdGGUWqRpVMc/rcR/zr0EZ0B62caHJlwgG3PBju6FcF0dKL/X1ptVS4fMk84cElX3KNpkebK55kNwBg==","shasum":"3a1a2f4682fb90d3305755033a18e1fb3139a53e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608157445015.tgz","fileCount":179,"unpackedSize":19175328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2okTCRA9TVsSAnZWagAAEJMP/A1ZNolpEE6hTSGb1Kzq\nXqa/FRg8tSpug2yFKm9hvck5JNald2xeuEopSfkbhgwDOr9mBfq3fz50IpvH\nmMK+61XnFoVYGbF61RHMaLb4VxB94JuaKNfgPBYgUBq8wXoarDm0XOR/Xepq\n4FkMrOQ7cjcgLMZNZyrGgG2xR7EZN2D9oKrqHxPY3nabGoivS/vBB49Zr2YR\nBTx1PLWcV4sugct1kAFjOdcLcWYl8YW7s2NpQjKHMC2+Q4qBokvxSGOfuepi\ndfSpzy1Ftl5/D7UOpEGMbJluDcxAoaTrT6SyrkCoHEiLf5cVM7TMUZtAQySh\ngyZL3q+1iGW8+tNHlwptZ+7AqvzSVyo56X4LxnPBS3jVBjEyT8WzDDiqDtgf\nrQjPmTSIehP2b3Tkatlkzl0Aul8BN2OW8WD/ojgG4dBFqVaX+Y9ii9KTC30e\ndbFlPGeYTS1K1vkI5sYjVA/F7gACxBr4YPFV4y97ZFqVCcMOyZWYFEre88gC\n7dWEFOgftKi9ElLlz4dxc+h+0T7ubxSGmfV5oxLTCI9K9y/X+cubGrJFaZ1h\nnkvpJ/T6PpPLA5XW9Dv7hueGsS9cVawZlLCNBRutB1M0ulrNjyXnoFInuBeb\n1GxBtsiWSBXsX+fkF6E94kavUSjtGpB6rF3F8bPcxeDlt8j3uvu7U3D4isb+\nrUkJ\r\n=8ov4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGrjrDCVwuV8aCON7Ugc0ADIi8LHLPryd9YfbHWTPYvGAiAviEUWkoFJxwk6exciGgV/QJrWrIbdtFQvuaYmJS6zAQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608157445015_1608157459187_0.36567896588563853"},"_hasShrinkwrap":false},"1.8.0-next.1608158219690":{"name":"playwright","version":"1.8.0-next.1608158219690","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608158219690","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mB44IbYwj+r1hlu1E8UVdqkIwbJBDYndkh+KWROCUwXhCOu/k7IsiZAeZdIYTREZhDX6YgW2OhGMo3v+7WzS4w==","shasum":"33e4d08bb84733b7403ab4192698818bac2968f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608158219690.tgz","fileCount":179,"unpackedSize":19175328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2owbCRA9TVsSAnZWagAAqFQP/RqqldZ9w0ktU3x968P3\nhT+TDQ0vpBqllXPrCZGjsHUNwg37dQ6ZNquvbVxLzE2zVDt167fMFQXWAPmL\nj0D5LuyejvSipvp4e9w2eyEbxfvarsu8PEH1msPMScdbR/aXS51Mzq6PcAnu\nMNX6+loqRLGc3atiwCM9adAilg7OnqepvJ/S5tIIN+5KWV33wbx2kFdYa54N\nx2R+DDqs7/edgTp7KVgO7wZl1my5iGCmW0eGWTFLNM4OGLEuG4BVzfrtD6fi\nFLLHgrUMjvCtKR6GdajS6mzaMqUldYiQPh9dM96HWk8lNo9Sl/ep/MS8pinm\nuv5dyyaluaXaNM3E2JSw1MJKkBwLOrE6UsDkY3h0pzVtRo9k6Z2Pa9V7hPEl\nPliZA787aWyqPGByP1dxr6//ptPeOOmLiWmAHTLxnCYLeA0QGSFAKtJKxroU\n2w8xumNbHsgsPzbd7voOfFW37ucZpSH/TeQp+feFTrR6fHTAoGHwerUdM5ie\nEQpGUGYrlBHkpZ638YBCIKWKREwKWWqoZXwX0wodi3G8oDqtzFgt2E0aH9fX\nvd5BgUUk/Y54L46ySam2vEyS5RvuZWjfZLofTwvW8EmYXsfVMn++UUppeGqH\no0B+97tuF7EunmWhOSGxQtXw+/NijpSW6oHplX8wyb1ZPQ591oBN6Jgs1O19\nJG/v\r\n=kwVw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzZ0kcgNKu1l+lRPXc3qoFGN+CDyxICfP8Ni0i+cVaqwIhAJCw9nfd5vAvP6emURpEP+dPJszPJWJ4zbOXtpgAMAuR"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608158219690_1608158235030_0.37423816387708975"},"_hasShrinkwrap":false},"1.8.0-next.1608161486387":{"name":"playwright","version":"1.8.0-next.1608161486387","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608161486387","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-uilxvXtmUa+IRQZPvkONWAslv/YhXVKIS5MhyqKXYoExg3/c3vfWc/neOViI6k5hl+eV0u16Owz4e55TUNOfoQ==","shasum":"1a47d9be306e2a523157323911ed150a0361f95f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608161486387.tgz","fileCount":179,"unpackedSize":19176289,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2pjbCRA9TVsSAnZWagAAUJIP/1Q9LP0mvR1UOsFQNBVj\nk6ggbKC8XBjoNrmjB2Wg+5kGXyy0E/NhfOMwvmArRKvjqUmF8NZG/6DLSilO\njp05xBV2yCHTrmJ4lXVZq5e8EtSRjruLJL3zmVxLfxNsZ9Xcgx/8AGcD0jm8\ntT4HxtIV6eVTs9BUfVcQ212z4z9T6QcMEQHz2YmgW+hXZZ2tBhugKSC7k78x\nPT4Y+LwzyecimgGrXj4u3Y3W8T3gw/g/qx2GdXKvbEbpxz18xANnB7mxkSFJ\nL3zm7gzEgecOaD/+uSQ8qf22oPhw/hn2wpOmUfhdXlO39D5ITgz0SkSDrah2\nknl2uSwIxSlCG0Opnj4urnMgtvCE2DpH57zlepJRXZBG3wQg4c6UZwq0sSob\nSc0esbB+GdHNCLScG0/KAsjx5sydMtzKL3BM9/x66hyCc/3vNHY63H9nuEMe\n0AO2npfkPeafx9G8dt+dpNqqg9EDhYw+z4NnwatBI4r3smsvZzD/keJQ+QR8\nF9L9Zc1eE/cJ6klK1FiJKgKNKFb/WqRDf2S6nIoDoqQkh1RPNhOyJKBF/6M9\nnY+DCcAK/UYSoO1q86SjSSwRt3zQS1t+rKj2tnK2neMFtn+6C7lPXB2WSNDg\n31Pj3a6t0c3o576IPHAp3OZPBc9WSJEcn+HzQUbIE1mxGLj7TrwJA4yTAGo+\nncKo\r\n=ipzz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXDUZFriZn18sX0KEqQ/0WIm+J/zF0gXk2DertLuOApgIhAI0DGAieB6mTO7Lt4s7QRNOLXpivlGxZOZb+yrhYZy6a"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608161486387_1608161498552_0.13373902288784145"},"_hasShrinkwrap":false},"1.8.0-next.1608214898071":{"name":"playwright","version":"1.8.0-next.1608214898071","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608214898071","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7ZlWxojGWjje47XYvspmF5BgO/4vuSDo4tKILPSJwYPXfzJsqf79y5b9W3vwmU4+xV/GK1eraXj1BtyKsIYQjw==","shasum":"e4672ebee0e92af267f54433edab86690b4f4367","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608214898071.tgz","fileCount":179,"unpackedSize":19176958,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf22mBCRA9TVsSAnZWagAAiEMP/AwuZ8wghnzpA3Aad+PE\ngM0YLuzBQiuDnsvvUMABni/H3e8e8Geg71e3P2TdTA3M7kI68d6P+4dcr0fy\nxgEWbWlYgcY8777AOq2+bdOXRY8/HiJ6gTQSSmCb0kXEEPG/Zyq5mAz7vNyO\nsFRk+eMIxX33HMp7kE59rOI7dw4k/aPR3lUuMyH40virmJXwjzpvHr+bnIaQ\nDJAEbhscdV5mXzE9cpK3bINChxbjbi+9pb2VkvC/UCFFi2tptiHeS+7y5KPl\nJIEBTOV9zy6sj5KL1+TOlLyOi2KZqekN+2sLWiBxdiCUloJTcIYpS70x1VFu\nxZCXnc0t27RxRB4BFLxdeVTaDwwYYfyw+fQPNpDWH8I649ttOg/C2U1wyWrH\nUU3yythwHaU2Oekf0/1assA8hOAGrpfw5BDrA2kMPhP4ZOByezK7wkvzjOOJ\nrCFKK3DSH20RGBRByd7hM5diTIrCQvNDMUosGUrnhTU+kVnwIURnMuQZvpfU\nD5RGyzxVjAzjmyTY6K17Akf4p3dXXrJgGUlOQ66rBL3D2BSZMuN8O//Ll1Bh\niraODLZ2vrgb0HDWjCIWfmQzSsdhTlu+6Hnfn26oUbjOZ1YXGg20/jdDXFPK\nBys9GR8XpeDHkRIIm4WbAjhkh9CZlbUPm8SWdeIXdJeiCYEA1Z9jAXiXf12P\nsOrY\r\n=AfGN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClab5J/W1z4Ss46+Iu63QasTxQkuhBWyDBUsvUMlV1bgIhAOKvgcdpDgkltzNAyfDw7i0WjYApUvkRHEbkcAC3L38G"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608214898071_1608214912410_0.891682426288914"},"_hasShrinkwrap":false},"1.8.0-next.1608253427383":{"name":"playwright","version":"1.8.0-next.1608253427383","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608253427383","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-4JG/jYQHC9eG71iP/Om1wveE7/mx48QtKj/rlls3lMev0ICbOHPTa/Y4oP06lk9D8sYsLcXp+A2pUd6xMy3jDQ==","shasum":"32e44545364043d8ebc441e4eaf2e4993a242a39","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608253427383.tgz","fileCount":179,"unpackedSize":19168742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3AAFCRA9TVsSAnZWagAA9P8P/RijWpFT06k4lxfJ/vyH\nHH2CMah4strQuuucqmDVSCnyV2qapPbeqRu4D2ci4jDK4OYNEmVh/4QUhS/g\nmXTRBPb7LnaB8mbkckORPFZuB/kARUjWAI4Pdj6JJuizR+lQqvAqF/1r5vah\nkCqZERsCJqP0iTm0S7hEP+RBw80yPSKuy4584pvfBfcD3lgK1vED0xZ/6BAc\nDXJq6eLi11qROfvppirvfqRPIV3wyfbs22R4/g2gqX5jD9MHj7iKtWZJ8JVf\nag5YGGHp3hN2eV9liy6G0lDLnHsxqFx7JLseDe0zGqbyXm/Me1kjVQ5bbbq0\nrJf7KgFL20rIv/4ThOaYSeWX5Kb8i3toJvq6c8jvSsP6svjRGL+aQ8Qp8oqh\nlKANmJsBy5gXjJ+1LXPQ+SVyuWdc+hBwUYtYnav8eT+WX+tev6ayEnxdWi3c\n4Ki1CSMAZdLbPAHeNTzak675YpahLBx77F4wQRxb5QqBz9OM4zrWNVwGMOJH\nHUlRNbmUOlUC10uI/Z3uvtaWYp+NV2O++FLMYwBvvPRsUsUdhgdyeGH+Ng15\n7e3IDNnmIjlFvu/3GAwPeIw1KDUZ7XOtIIF8ES9N5xD0STJ1att3VKhmOiEi\ntw45gRjvLTEMwdHTiBZjEHn4u3k9RslXjig+h7CBRCAtqof5nNqW4spF5pSO\nsMs7\r\n=LOF1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiQwfnMO5F0EMr3UNTS/SRPnC4+7uFwzPx/NAZCUTdrQIgNt5R7/Vkp+ftlpV6bgfBxa/7+5oGVSHorjUdYgppvDc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608253427383_1608253443922_0.012944266647197056"},"_hasShrinkwrap":false},"1.8.0-next.1608257447936":{"name":"playwright","version":"1.8.0-next.1608257447936","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608257447936","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-CGcdLR0AANZPcyKpr60byvaaRhE1bXROTHlQaSMbwvcmIu6cRAaQG5jjsCWDRk7OfNmac6Gxeh8DJ/krueiFlA==","shasum":"bd66b47e74623463ad5e8450785d76ef2ff9ab84","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608257447936.tgz","fileCount":179,"unpackedSize":19168742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3A+3CRA9TVsSAnZWagAAomIP/Agj0jNdPS2JISPJ3UGm\njKyKoazzvY7IloAds14E+cB24PI/MmlPJB/PtJshBq5Dc85X79m7lVYrJPpy\nq5sp36oVTiuWRJ9IkPTKV/fS3wGGpkYVG/b9mtbhFEFMVppuFkF3pax1BqeO\naHYIi0zxQlCm7ndTXmF8HnwFFzvMmfNBZvpNlDaxWN1aN1zV1CwQhT2ICTqY\noCgEg2+5fbnW++GlxE4G8KbwFnIU/dOy6mvD5HOQp/pf5Zi6bjavOZPwvNj8\nDiBEUbdpJLirxnLUj3yLqR5w9bQh+PMdgnzS2Qqzq+3/TJenUuklSGCoil+Q\n1zK4uDt/UvXZ+0Xa0vJ176RJXp82ENNt0eATZ/ROwW7b/4Ka4ESj0UASIWTg\neYVzqOLb8I1Pj7k6CIbhTgn0C17IdVgSeG2azgX4Zh4Z+FkrutME2Nckzt3G\nnALNag4Yt3PmKfBZ50jT29SYbnUQFAf0hYYbvSTQbM7eY447ZI5MJG1hdyjf\nPV0c2GLH4Hhdv3cOf7fEXNqrcQio8v/mduB/8zjf+ZJNttmiQxGqROtAUv8n\ngPEdtZbo4MtblAF2szCSoKFIj43GJ+gguh6DJZVgHxToh8+rm59f7DfOIFUj\nBjQXJUBmPaDQRygKPBPXbqvbnFeJQmDWBcJnL19NY69d6kr7hPnCOJjFDB46\nyKNp\r\n=KSKt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb/5VB9pZUyvJFKj9OMPetoxLM+5U+ruuFHTLaPwmZjQIhAJx8Lph9SoUDmkKyX7OWurZ3WLMCvp8iZ6m9piMK6jPG"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608257447936_1608257462496_0.37760300165389316"},"_hasShrinkwrap":false},"1.8.0-next.1608257610928":{"name":"playwright","version":"1.8.0-next.1608257610928","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608257610928","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fbs4iwK9e1YJbSP5n2m1yppLrNC/KDOvOGOAG2zTsJPfrXxn4ccjS6c6UK0UvLK5cyAXqgtVvk09sCfmS7LR6w==","shasum":"f415bfc357d394feb2239fb7bbacd02b5dc59c1f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608257610928.tgz","fileCount":179,"unpackedSize":19168742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3BBaCRA9TVsSAnZWagAA/YwP/3umica1TipDQbu4nZFQ\nBGN6PDQx1XQdl5ysIq9aLpMJ+X08MPagMPapk4cw3ImR64AXJzB4ld/nicOe\nmQL6LTteSppo8zxbqb+jtDe+khUQ72U5AOvWK/Pg4c5qdHyBTcQDyy+pjHFf\nWqZyzGBA/sCCpQPh7V316yK4iXIdd7neugpedEMcraeBSGvvVl2hZAi9qPs8\nQ/+l7KaHUK8NRPESXR69P9cM0oRtgf8Lw7A5G/yuu257oRf73dsigqZhHjSZ\nI70a7+rk44BoSZiKW7TmW77oDNzMyw83blJIQQahcw2HIrpxpVVNjF+p2MjX\nia3+IIxUwSDEcRWgLkii7KZFTFvDQbX/l+20uO51Z58pWnrI0hcld2q7I3KB\ngvG2AJKRgtoQ7llZI8Ub5jTB8Hp1LeYsCNOEXXEYS70HHjrzeoyscnoLSKJg\nwLOulRAY65DJhaQX86epIqM2p/7C+3FInuHW3TiGRDIIlImKKPwUGu6hv3l9\nGlfF2NkxGySYvFZpbHp4weR1T1b+MSttQjg5pTPePNECxLfqWI2rYr3jA+J+\nN3NYqtbz/U+Bat/iPFgQS4fjX3pU1NiNJEC9hcXuzgB5PlARHAWqH2lIEJCN\nMyxHi+U0H6IDHqDX9co0OqM1cPzJBT3/hv7IiodDJC2MidRFIT46dV+6i2KV\nDUyp\r\n=elC2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgP/Eq7gp+ptin9uOxIxak/+8t6OXbtf4DlwPeyUiKFgIgUZidYvJR4IqjEcHkgvNdoegy75Akzh8spkfhzxH5cmo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608257610928_1608257625618_0.10752890452501762"},"_hasShrinkwrap":false},"1.8.0-next.1608258717962":{"name":"playwright","version":"1.8.0-next.1608258717962","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608258717962","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zW9F/deCsFS4C27h8fBk+3FDcfP2WO19ROLKBQwP+tbzUW4+WmE9qgzKXaBWLtShhii6TfBu11VXI0oLDQ5p9w==","shasum":"8bee13ce02d2a1b9b98d4b5d241fa2b0ee3b0387","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608258717962.tgz","fileCount":179,"unpackedSize":19169229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3BSvCRA9TVsSAnZWagAAtGcP/3OUoVTGxNqLWhzTwNc1\nXFaAOhnDhx27V261qEFawpJLyTcctfDG4koS+W9/s46q6rzLGeUer9x7AxB5\nezqzAUbNrC/FV5Mhn9/t2zkURDhnT+TsvPNLEAPOCshqZwgx9kg6HsxlFrc7\nETyAs5myRruXKeTV6Ry9okJF4aJn6WoLplWFn29SfmjgpePPOjytL0kRbnpy\nPgMfHHr3VLfH0DepqSPc+4n++ejsvyxtCzgvdjCFzN1yp29oO0841UJG2Cq1\n/PU9QUL/n++N08FPRlfI41cHLfkGV4VV/qSuSolNXJIgpZv+Em2sadg8Ya4v\nTOzpEvGkNKL70mpzrkIAgxpER1SvU9r9G5ZFpjavMP/xeu2NEPhGnwI4nt8H\nw5eyujuWr0jv00BC/E7OVIZb9XlnJmaPjyDnys3pUMtss/15fx1z+9C/SO2t\nefdCd6u7EvWQMJrtCCY85lxx511AthjpJZx6gJROcfJ+GncsTB1wRRcunkmK\nxvm8w7LDg1WyznVb3X7/jqHODlPDwogCKIHBjfw1Z5sli6hPKo1d7RTvc1xr\n1cRnHa1JBXRLIMMLRlNW3ixEWa+SAgl6qnppTmULX6tUC35HMWruuMWh7YIO\npsHZAknfSCcBqvMKWhYn7LxnEt8iPCFFD0w64vP4+Szk40KDF2T1Jgdk0nCb\nbvOR\r\n=kQdI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfv9Tsuz0e66FazxdDUVQzG3tDjpufhcHQsqgWPK5FsAiEAzWxzXEb5WksrszNQWNRO1Xq0pyQUwIT2QBYAv7h6Ato="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608258717962_1608258734331_0.510193547497251"},"_hasShrinkwrap":false},"1.8.0-next.1608267826725":{"name":"playwright","version":"1.8.0-next.1608267826725","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608267826725","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-NdwE3jyVcAiNP8pRl1MlClvyjep64PnjHWetpN/5DqzQNkOkUoEGXuRj69VVrYLFkTMMl3O5o1zwzpStmNERwA==","shasum":"6c3b92fddbef9f64d3d210126ac46fcbb4beb479","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608267826725.tgz","fileCount":179,"unpackedSize":19169229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3DhACRA9TVsSAnZWagAAyOQP/RaqwW1NvK0FN016HKtI\ns4YCONRnVAuTpKwFBdLeejfS9M1WWXRZs106vuWSQmcVtH2EqXqk7Goc+ady\nhHC/pcri65oJPOsquj7Bw2mC5APd5ZphRbeqIQBAErz8BEwjb8vP2ds6W5vG\nH1UmvHOOlnrWcv3I+/RcdKLUK83tbypGX4AM8Z7nSIUFFFhA5URxe6at0cR6\nD3HBqXQQPqfjpag4BPRSCMi4bIhuZmMHz3npeOinDjzA0AcXiwQexpmp9mGM\nAPIoFfC7mnzrCRsMICFrSCzlGK0a4lBHc2tzzC4ljO/xQs+f+OWXCiopYTUM\n2v6FbZtsVY85kFtu2NFpS5kttdBVGWuFuCGKvvVwVBAzRE5P5zFs/NKpRZaR\nviU1+1GdStSgTcQL2lMibFHgISNbW2jZptzxhMtYS4tB3D/nnGLbm0zj1epl\nHxHbzyCJIS7D1eJZuHLNWvBCvRT2Q/iy2s2/IKS8ANXtG7T/d5KAwHQ1nYSV\nHup59pgBnW5uhrjNag+taFWenPOxOC0zQxoU5xjIH6Arn/fjKMQ8VNQP/sya\nyRUatwcol2NuCt/BrgptkrmIMb/dmaaoUNrUXwu3EwLNYWCs7lcYeBSQuu1X\nBNC2LBtCGm+r7TVn5jxdsJ0RKxBBXiaWsz+iagxaWpXAgj78gKWETXq0WNxI\nqaC4\r\n=qVRC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH3D5Ldr7YqMGFtCzbQmerokseRnvyjRd6hST4TpJqAKAiA0uWrGE4PU45oL5h5W+WyQiD3v5E8gL0D+S43BeoEaCQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608267826725_1608267839617_0.6568778435347673"},"_hasShrinkwrap":false},"1.8.0-next.1608323403293":{"name":"playwright","version":"1.8.0-next.1608323403293","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608323403293","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oqzehdNOFhhnh/vv5146GZpOXMYwP4qalVkG5qdNFqxweYw8MGR95z2LD6TXwQlEx/69tosAKRVSONcWY/LZnw==","shasum":"e7f38de9b0498ca7781373e7b0f5253d70b72544","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608323403293.tgz","fileCount":179,"unpackedSize":19168816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3RFZCRA9TVsSAnZWagAAGKQP/3fMjYGpoB7JsQ1ts+Um\nIO4cFg1K7JZA1B4sSgqljSse/xInBruL1VfHYpYX1tvTJ9TuaEUSQIpB4j15\nmpcBcCQa84F7ml5yx+L3s/TQxyeH5MBlLmxyvPicIlrBj6ot4SJSd8PAgOxb\n7/3ZwpYp7rFGwLLptcqNDng2XqWrjeaDTjs9MiIFNqRi+xhobZEQS+aa6H1K\nyskWAhp1n7ScjiFxZMUzLxuLqq4ZYj/CUi+fB/GGiOjoCvfL9pbkyLFRzF5M\nnO3dlzb6JwVJKXk3OruT7boecGOytu1Ug1FWNg3ujx5acd6mZBvb2WOU+rTz\n3m3NXpxy3WE8fTovN4rkig3NdNPvM4OUVXZqa/tsD7ZL75HaQrVenXR9VCu8\nDsvpSkrQRBfUGjfkFYE7KZen9RbujHazvqSrErPbMPHYdDwFhWqg2DEIOqmz\nVVyqAvNilMSu9uq/P6tQSRiYOPO3fM0a/0uTt6MXQ1CYpmVF+xCvTgWnns9O\nuRF7RB5gNtCNsfTKrad+Qkf2MGJ5DKX+HRzX/f2tNCbKprfAyd9SUAYJQcVo\nsu/YOlmCfbULH+5iuu0L89QQow5Yif0PNnD12qN1J4kn0Y17COQSTTChuS9f\nVMZiRrAgtYPIXv4yjIJjxUs2SLJR25ZDyusE29SIKoNVdfXWkVmGlWyAhXs5\nCVQa\r\n=pjU7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFL+qI1mradxWwINcAjICsPSZTn0QQ0hgcIJnPiwAXxsAiBnyuJiUwM0m0IWCsuB3ul69XFJmkeYikESv5X4UlBzSw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608323403293_1608323416499_0.41363295187190774"},"_hasShrinkwrap":false},"1.8.0-next.1608331692456":{"name":"playwright","version":"1.8.0-next.1608331692456","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608331692456","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Ua5EdcGWzd4Q5nJP/ICdyK7X/ftNx5Q+iQT23B6H2NdAcFkFgDR2hPAgMR0/gwRHFf/nzIWBKM4YfD46B+Ytww==","shasum":"0c23d79ca2b6d66a805ce35b3c77f55178867b7a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608331692456.tgz","fileCount":179,"unpackedSize":19168816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3TG8CRA9TVsSAnZWagAAKawP/12knAbmnHEkiQMTK556\ntjEnq1wiUHWrr0FUHv9HJGLIrQvLEscoMcfVTCVRhlgMvHnGd1bc42rGmXhr\n5/3/4dSVW12r7A2Mp1TMwQ/9/gIvNo1G7GeClAn6PRH04Eb6q//x5QN+Qbcl\ncXTDyvkq+NNsJtwwBxa3MdwcM+M87qNVNUfkcICXjVKwwHP1yzhM2k45zXak\n4y+492PIghuNwOweXw6+hqopdSPqXacF6wAOZFazZLWheQnW8cFG0ZwQnseT\nk/jHtxPCpZ/WUKzJSpuMl/SdqkEurlLFPPzD6CYQo/kd151aBf0e4Ks/RGva\nysRzcOUedMX/4TtOQ07bIQVvk3fVzSriOH7Ccot1xJ6F+oZqCtcxBtc3hNkL\naQgidJaIAyzIR2ENutQPfdCnr+8LBUt4uJ6ssOWDuh/d1ZjYbRN5Wjf+N3Ko\nrrqXN5yh/Zxu8PY0/eaRNO+T77j+ISgGVWBffV+K8t4qyPaMoHBCiV/zAwFq\n6TAkbYmF2FEqsj+D+yDbDA8AQft5JbsGnfm74Wq2H9BXHa8Tipp6dnrtltyu\nTZW3uHQeb4keGdPSReY0G+XgUkSkUDAVIEvUh/ZDzOIINCl1RUyGi1RhToJg\nXUMAuzXoHoULixRjk0lXobRlHgypGs6mBQsmOeTBDMJEsMiHf5I57g9g7aRN\niUt0\r\n=T273\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHupo8y/A36oCOu3qk8iSyoADmLobrPFOAMmLZBHF1TxAiEAs3oGKmCS1cds5H1TMp/Vt7C09oIv1HWIon4ZRkNttXY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608331692456_1608331708221_0.05859384620882402"},"_hasShrinkwrap":false},"1.8.0-next.1608334408046":{"name":"playwright","version":"1.8.0-next.1608334408046","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608334408046","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Ogm7n7rkF7hiE+h2y/mAn/rFPEHNPA/a1ZDMjnkBnBVzthXytOxtGtipR3KvWAxCYdItF9os81FnqVlFubggXg==","shasum":"4a28a39673c4f43d2afe6f14dc0d96a12f8a5a9f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608334408046.tgz","fileCount":179,"unpackedSize":19167935,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3TxUCRA9TVsSAnZWagAAZ4kP/3Y2vaQA1f/H7NDOntbP\nz3c96BLIDt/mvEhHkBktg9oQqiuGIb2m7fHP5cye4TLLiSleo4AGjgO3DtGx\nbN2iQH8M0yMsNTw5rgjS0GNLB9GlLKpMKrzIWZSSPw8RVKqzit2wI823BGHS\nXgVDK5sO7F3StR1Bqd4GbgfMBk/5Ln1UOUd9JlDTyfnxtb7BD9wBKgIY24St\nLA4Ut6I3Y8wo7Ox0HsyAPTCR7OV5ojxgN6Cym8XR8nAqFibIT0sa2r4v+w4l\nSZXFaFTlJHUBCdtNvq7XHbcnhnclIcTzP/ElwVUFRs+p1orfCuiZztLVxDm6\nacciYl3NpquslU+4pOAzCtTorIqqCoZFfTBRD85PfPGT6HK4fcbBXQjfB3pB\nITubSF8aSakOZBTY0pBdt/nhAk5THDItuaDuVKCzL2T4tYFqFk0rmb35FuCB\nJKcv4kC33Rh9v6dh8OexGz7WSGXQszkATspk6GZ+IwWIgqyjntbI9qvVHkht\nxmRFk6ceHYCQV+CBkY9457JqHwRTSmWI61fIUORa1z2H2BWB3EalbF58y9+g\nozY6HBYEoc+/b9qmGY17uZaF/xS0WJp5o4IhIzN9ISKYwupRFT79zv0oodZX\n31ZO5Jjm2s0zHXIO4zc9Tsg7q6glRg7l4Z6HzV85tNPGFg4Fcoxq+9vR0I0V\nFhXz\r\n=lRWu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEjWMy5guw4bxWjY/7pC53OeLuI+5bl9tMX6fLls+eqKAiEAo+NBzLV5e80xgdJUjGlJqbaAn+vIT7p4JFYetCBQYiE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608334408046_1608334419731_0.6088111293701444"},"_hasShrinkwrap":false},"1.8.0-next.1608409424791":{"name":"playwright","version":"1.8.0-next.1608409424791","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608409424791","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1+kJWB9mMOanpNfRzUNdZTNmvFx1LjHan4xW6cR/zS0KnwJRYDwFOMkqB/Q+XA9jgsDjVHRvuh4hNF/fpO9SVw==","shasum":"d4009181618a9019e191327cc41edbbb27079770","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608409424791.tgz","fileCount":179,"unpackedSize":19167935,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3mFfCRA9TVsSAnZWagAACHUP/R2cYmHu4X5te/sRe3p2\nKfDJ5mhVxZEPo0hqpsIJ6d3VEjq0SfgPZlWvS8SsP+4hSCbfX9OcS6u+PCTK\n2R/ld6yqO322X2ayAFe+g5xJaiTZhV+EbcgcBYfu08j/isWkHSkOU2LhRjgt\nEUq0wqafpGHNKEEOPwhWr5Lha2njI/kEesiCG+FYsei7XbkwO6B6nJvlaozc\nqeXkns+YxRxJEC5EW81snjTVWgPnfmIVIWV0KKzkx68dDn+8YDz/Ff1PYO9p\npcyKMCxrrq4zZekRsCenYw7Etmw89QhXy7JZ9pLA/KFlWixJgFU/o2+9IEmf\niuvF8aJhe+dZT3I2oVdZWMMn0bUq7AobFPX4QFP6NBNZ9oCIUs5ONLt1ywwG\nxnNwe9HOA2WfosIMUY2Af4teO6lVYFnm9DkktEKKopj2GpqHKDE9hC/c0ZEn\nKMP30b25UuJhzqC4ANft7wE/et13tHfDiwavjClV1FJxfc1qomiivAopI8eO\nmvQJTZlw+7K3HCdLB/3LAEkI/BgaYaCtRPivh03+r+/4/xgieCEPqXbuXh6n\nq00D/yGrzQwryOdLlsEuP39B8ZwBHjAGVC6UQzf6Y7GFApMkqBpQPNJ3NOBc\nrbA6huZiIcDZ6HKG3SFJTYEQFvZ9YXVqHY1Hy+2RWEIMhrEoxrXI42ZrmSS8\nfRoF\r\n=mbGW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkW8VoaW1gUT1JRRero6nX27bFI9CZMQiFB+vV2uygUAIhAL3tPkeTCeYG1KmLxMfBlgADTNfEGhZQEEgd8Rp07p0T"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608409424791_1608409439034_0.6814159028541646"},"_hasShrinkwrap":false},"1.8.0-next.1608573651594":{"name":"playwright","version":"1.8.0-next.1608573651594","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608573651594","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wj/X08KAz5PRZVN1m9rhqXhTmPolYXNAZ50laXgXPueOxAd1oysC+wl0bUxISSrK2ynjOgmIEqM8R2lDwJTuEA==","shasum":"3f3d6560acd4fb1f243592d134f82b7615ef1606","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608573651594.tgz","fileCount":179,"unpackedSize":19168303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4OLkCRA9TVsSAnZWagAAQ7wQAJ27P49QsJ+pBE7Zqtas\nKwtcOK/ZHTvJWlxJC2SiGPiSu0F/rpxaJZNomrHkIGgDfyko+MBUqJRwBmjs\nB3HmpNn7nXmfQuxBqA3KrQ7IX+hatoQRpsQQgfPjG9e2cL8COqrVIDzIfNFT\nUHgUsV1eahf1YVRb0ds4Uy9XSxQ7u9R+h617q7xoAUwTrFzUDrolwgKJ3iFr\n2kfoQ1qlonLvLwABqSYynBRiAyNQERTdToW0hpvZAMRcbYQx+OHV/arnTeT6\nz5ZzoqFJ6uoggxuaMzUWAe5RDEeQFF8ubgETds6LDZps+RaDb+sIBcIPcdy8\nwxWwSDJPfjjU30NExNBAlTawfrWuA7Udn6zRI7wTr5sh0Fvn/eM9884fcb/M\nCNN9wipopPzevdfOvj7aGewHct8D99kIVYKBcHvvxNqzqUcF4XRUXThmmkRq\n0aQVqI5HYZpcGHG/+tlvCfp7g33PbTwBnpoeJz/kpQ+RcKN1zvGQ9JrOo5W/\n9GR0wbK2ZmE2+KD6O2PKdg+ibjjFbScrx6ad7CW3L0tUD07rV8VhQdQ3Ncu/\noSlYdSYxJjuOqZgui5R4h2RGKAMvTJqNOXzUzV0KR+VRe5KIeIquv7EvnOfc\nuKcedmzXkuKpyKjUXhVbf0S9pi7Fi/avAcH/VXDRqDlu+KAmxvmCsTERxeKd\nO/22\r\n=RUxs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCngwtp6KeATdtYfm8GqEDn8EDk7qzptMemSYk1tf6EgAIgNh4O4pNuNp6/Qh150/5CXBXwcKMS2GedoAEwUPa28yA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608573651594_1608573667682_0.9558370801305252"},"_hasShrinkwrap":false},"1.8.0-next.1608580147695":{"name":"playwright","version":"1.8.0-next.1608580147695","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608580147695","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ymNC1TJzQA/P5tVfNH5eZe7ujcyujY5p5VJ330F142Exu5kl/znaHva1cG58aRVxxl8W3b4FAVY+pVmuz2k8pg==","shasum":"908e3c058669eaf02e2da3d8241cff7da739c34f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608580147695.tgz","fileCount":179,"unpackedSize":19168307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4PxECRA9TVsSAnZWagAA4RQP/iAaqxEa0Wm2iH9L71lD\nDP07kkFYqXp3G+GBnCt5BIjrk+o+URea2rQzR1yj1cxmIfDADr/7qTAup02k\nUJVPGWA64xxQBgz/7hC1ehCc4CmVEj0TVr7mOBeLp78TJXEcfIfHO1NF/QlK\n9/+tHhX7b58SdRFD2GWaBVX9ikSxdIBpaRYYWRZTu7eXqiUOx77M50MRHIjx\nIOXUpqfHLTfjLE8X/hldFaUCXg8HUhR06jXLQNHHeDSt4IYOA2QmcOrmjezw\niqQ9tZpDBV+0E/lSr0h0puRMySDw197776D0OSwd8wN8QXrmmcIv6mX46jbN\ndu/lpgCWvOepIWF3MNN0jP4ib8wbKIRW28sdVLmG5b+7JflQCMFl842ZdHuf\nYKVSJPZTT50H2K3VO474k/WWYBXaIxhFKeJJrcCdNXLGEbVJGDEPnT2eYtcM\nxtiOYGUIvcLyhVFZOkvJlDOeSjOzYpBh1eAvG6GYJ6EaS9N+Uhb9Yd8+FtZH\nD4wI78cU/cW1rkCUwOW5p0UiFbOKXBpow6vDzsiXHtMJTd3MtmEcSGjVBrg+\nb5MMgQb2kGmXuQ2fEwniOm/LPUDxwPNWw1eUpIn5vxpunCB8JGhrAeLPEp/I\nNC+nCLSqdddxlkU/PHW7aWQTsPP2KpspUuSevX/BRCk5nyqJIczyg16p+/OH\nVFOI\r\n=4SRV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWvWuu8VqwxZ0npOo2Hn44XTRpxE9XEThhNn2h6v1wzwIga9/5r+vamM+/NZqtl8oe9Yt6FO/u3qSurbACqlP10tQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608580147695_1608580163864_0.31187795273923147"},"_hasShrinkwrap":false},"1.8.0-next.1608582809707":{"name":"playwright","version":"1.8.0-next.1608582809707","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608582809707","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-pSNodax4gRi5c/qVAjDoKzGeT9QYz+H1UFgJjmTTQeN6ZyF2bFso/PvHeV1YcuEQkqHI2q+wKcvsLJtewMwrxg==","shasum":"19f83e68b932019cd62e466133743ff937a8014d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608582809707.tgz","fileCount":179,"unpackedSize":19168300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4QaoCRA9TVsSAnZWagAAQosP+wYPIFhtS+5Uq2tQ2L/R\njNu9+0HDqCeScygGT7Gly7obNKd2OOLEeW/bTtqs8vWXU0kt4/WQ5uo+BodD\nqcFIVe5TZfjmVVOQQkuHZ4uwcWn2TLx4B1TplaHoUqOiJkQMyEnYyuu79nsK\nhmyhm7+d8gIO/j2K/o7G5hK0E08laZvfxi3+hPiLcztIA9QZU7sTNq0TxSVF\n8BkJ3eJM+lw78j26nnK3s1HTmu/F5VI2Kif+kOW5UNyPlxQmYFWmY9F9rqGz\nfyq5DAHU7mxrhNPH6vkmyLd0CnQawob/G6fuPPsath7eyu5GtyI8pdpwKc3O\nTZgmBmjmbpAiU6E6xGzazLDpohdXmC4Z5KEjhR49t9vpYcjEW28mFgf3RxJr\nAFlxeOHgvC/URZE6uq4mOsPECablQNXpceupyBexITttrzuQAVBPGgmqowqS\n/ZDhEfPHtflHSofFdg33wsEFRLwfcXAyQBJ/z9GNrapzpFcsBG5ln3oN6XPR\nA4HgJmdz1cG2uhoBXhI4ZEvHlV9gP+KDlZ9/4G1EyjbeipGrTwuWmzFDxCR6\n8nYrdplRmJYxcrzNC4E01etRu+MMWQppmVb7zCDSzyaf7VSSW+5H0KijYr1M\nW+FqCa+sh30wRYDYzMViJZNaQFeHIIi7K5G8WYFNEdjc1Zsflt8FQyNlDLbS\nk79Q\r\n=FXfM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDl6bqYtxEHPuNlqpCGQA4C6CTEzK70iIn/Ch+ZrIwgrAIhALSmw4okc79Z5IYm2rpOR4bkgHX2TlCCfLwFYTVjBs6w"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608582809707_1608582823998_0.4244141396054759"},"_hasShrinkwrap":false},"1.7.0-next.1608588608521":{"name":"playwright","version":"1.7.0-next.1608588608521","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1608588608521","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-60mnOZh6OR85nCPHI79lbhuwF6DFKi0Huz2oyzR9lAt5x0cE16One1klwVybjc8yu3qoerBxmCbqLEtHdZ1FhA==","shasum":"b628467bec37e13ad841687350b5c7e4814059c9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1608588608521.tgz","fileCount":179,"unpackedSize":19174370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4R1PCRA9TVsSAnZWagAAijEP/A5tGZ6e9P1AUkkZNXbm\nvZz/YOxa8MJ5Buj0F0XddIVO+DKofGoDCoecMZxqo500vmfr/WmrbDUhnU4H\nUpGmArBiJiK4O/XdT2f6+pJbyUGLzy3ruPW6Qfk9fv//a7m/oov5PmwcHUL0\nktjIlHp87nspLdCizgmNE4gcWueOq5DgXWRzRkgIVQQsUBhNxgOXSX9UQMR2\nO0vnGQrHe1q7b4Hgbbv3p+y8sxATwp0TuX5mRFzfLoPFmcyDBIYup5WgUVfi\nD27RiMva2Q8VWKvlZLgk5ne/K2EiH9BiKF2NL1PT2KQN+9Eg9mV4Cj62f2dF\nrxtkqwGH/S3DB8cfHTp2LYqdhCi/cAwfKCNyDjakOOLDtIeeBrmv612jyCdN\n07TApuUjrfS2fQJtTOa5UygLyVaNB/yHx7suQYuUD8UrVKyrlf+U49jPFIfb\n2msz23HZLkcmo0HOTk2KQF/yXqOWSx2OtzLF4UfWpkrjcFz9ZBjGsJzEucs1\nt0v48M8aiErWlSRfvxwa/BNt8WIHx5OiyC4KQlhhCvwysA8xFW076Fbn2qu2\nZqzvz5h+PEWAoKF38Df+HdbweF1dqWTUYXXNt4nMoj8w6yx+1HIAx4T9n7To\nXscFysPFQRi0eZKWVqd0AFmz48mIIh+8Dr2iFXNVGDY2m0Tl1aPYNNffdNSV\nbCgD\r\n=UwBN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB3vc3N1ltLcg+ZoTCYz9h9IS/jSadleswNOSB0Tv3fWAiEAtzGN2fmqK2f058pHE0FH41ZvqsHtd5kvGUqpWyhsfJc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1608588608521_1608588621674_0.7520126744105833"},"_hasShrinkwrap":false},"1.8.0-next.1608590463551":{"name":"playwright","version":"1.8.0-next.1608590463551","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608590463551","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mjZnLYD4I9nQlKzR8LrVkqfnWnOmZL74GJxqgCMPici8IjOTJP0YE2BbmyCTcCUEj+fP9ZSuMWYmMKDIe/Utdw==","shasum":"63691fb0d1a0435f69e98a53ef34d305b3fe0396","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608590463551.tgz","fileCount":179,"unpackedSize":19168300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4SSNCRA9TVsSAnZWagAA0ssP/1YxSQHny40DTXpMi7Cl\naitvduK5y4rBJ/0S8vtLmXeDhtT2k+yzTvNLafooeuqeHgbhTLV8fbQ+kLZX\n5RmT/cU3/Qhwfj15Hb8nzf1BwFWAjrRoc0fYg/QjRArSKS89o8dZ0xM/EDbW\nNwNXlYglLRQx1zVJRV8hm6zdjw00PAy61SqW00e7zqBI0HiL2RS+Ts4IQEck\nWB/ir0BABYPpYbNqzQ869dF3y8xBSQuF2GjOOoGuBufkSsZnJE2pZrGiqSuH\n5IbYyeZFEbSwVJUeeGhhgYZH7LaciY2O8KSCHOCF9G77qlPANksN6+pX0Z4d\nzp93o4mFG0wfaYo8VVkKOulJSGFiB+f4tz+BITW4k06r5abGAtWQAIBdOJZg\nfMicCbgz+Kmff++i8JEfbX5XvEhug6q6+72IUjAXb6zML5ApsPGBANNjrOIY\nxr5DyTDDJRLhSlck2qO73YSd5k9R3yekUUvihdLAgK2MiQXewPNU90sJbcJ8\n/PS0Jmg4Ye2+WcbSBygPBmNIsUTwO+3V/E6ZHDecaq6q0udyyAlplT4TYcY5\ngk5BlEU+yPfjQPuAxQ2VUFbkE6VzMCDO13TkCVLQtCoi2Gvve2HFd/DdPydP\nP3+gIjskRRp+N2OVDKJF6phua5APFpztUX1N2SWviS8AmT4A7hOn6czzNvpZ\nfx0d\r\n=o7WB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/QfhXqM6JqUjVMJMmOqHEBK980vsWoUXJuPiMNrruTAiB7EnejEsCo2jZ9UwYVdSf9KRzwW/RMmn4pDhDLbBlUgA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608590463551_1608590477195_0.9189687175085164"},"_hasShrinkwrap":false},"1.7.0-next.1608590916323":{"name":"playwright","version":"1.7.0-next.1608590916323","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.0-next.1608590916323","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wTgtvR7sbt/btIkNlu2+7isI3DhBz5qyEC5uBz+vVIsYb2/GXcrVwFhnMTPZrB+i5i8JQLzGbN1nM/ZQfzf8WQ==","shasum":"e5915707b3cfd429d1f8247c3d3038957c68829b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.0-next.1608590916323.tgz","fileCount":179,"unpackedSize":19166154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4SZRCRA9TVsSAnZWagAAFzgP/1srtY+k8WSSM2LAB9nG\naLef976/iGcyUOEQoZjOu+R/O6IsI1DId8KYD5DwG6KIioOQdJgiZIQzB763\nlX/mBfaULSsf1hCfddWzKhMh3Z7e0m9lc4tr9b27h5WU2KTBZySbiIQISoN+\nOyoWKQbN2QhZivGTAetSb1oXRlL6fn8ygz0HpWDdDID9/9WIdrZYPmW06L4G\nB1HudsqhyefRi89zdjMbL1y20ir8Psn8QwtZt7QhbaU4aGw0pGEgUfjj75WT\nOgnyIwNwTOntiegjEF+hZZrqbM7RWQlNqnMCAqjBQCcDIUVWwVidPWyfRqPv\ntvse37HkBOPseEGIfEUEdvBi3gpjvwH1N4ff/w5Q+NkLUBsfaUb1jgL5Nl/e\ncgegi0+pMpjRGDoMQbJul7K0rWd61JntN1Ft+JvS20SFLsa7cX6bt/lfJmma\nwOQpKFQNXEk+wMTv4cASGpKBb/mi1EzbqlhjCraZEqObBRh5bduUvvW+8m8f\nbo7Uwvi3PKRxAGJICQeKdbotY3WOoKlmXuIOuei1rlEjmO3sHxyhPIT/wbgL\nT3Vkf2PoVDOPpqKRZ4ijX3HDC30QH5qivYEfyBN3bDc3x3La5aQ3TaGqOHJv\n0oEtipzzi4oSHwwaipkPRGGTUmKwstK72mRChd722zdZZKr3FAzNnowTfmb5\nkzwX\r\n=CUZm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5UtnGP8AYhwFdxCS0cPIYqJQVLvmKfYcqTJDnUHY93AIhANK1QJMMPCmjsOy/I62KQM+kzxhvdaeTuHxgn/0ty2rl"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.0-next.1608590916323_1608590928822_0.07500141308150066"},"_hasShrinkwrap":false},"1.8.0-next.1608594972517":{"name":"playwright","version":"1.8.0-next.1608594972517","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608594972517","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mvY654iz/9WWE+2xKlPscJsJjiz9bufhS0VEnzB2ArUqXoea6ph3qHBTfyiHJyMcA7S5b0D2jolP9Xb1FLaYBw==","shasum":"688d6927109079c46fe14910c828bd151f357ac7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608594972517.tgz","fileCount":179,"unpackedSize":19168300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4TYsCRA9TVsSAnZWagAATe4P/jJEokVgfMJkYfOkvdCN\nUBdbLI4sAaWZgLQZBpRQoSyHc6Utk67gSfMn1F+2yDp6VGIhZxcJIdlFUX/p\nELscRfIiA41iDSziKT5dZeachOppGLsHsgCAuFAvktZv1UEum2+6vpr2iulq\nnr9ShW9XQ853+g7ZZveMCtX2+Q+kRRywzRbrcsnFowE+Rw3ezj+mwnKuVOXX\nMd3kzbEDokSgCCJVxTKG6TsVNw6Iw0/t5DrGit9RI2qv9P1vEAeOU1y2S3mq\n7blsg7VUcxsB9guFIG7803ZccCMeym6xCAN49OgXtFZytEEtiFxd1iu9JOhF\n3nZhaARmT9uF8QeBH5OToP/heuN+OD8J+NbBLSkZZGCEM1q63ltqI3jQ/8SL\nDQp79kkGxQmiOTJr0hdxBvcZXU1RWAMKVAoBAxnBckHSdm/igJfDt7F+KvpI\nBQprmWR7Irh/dZATqZ5d6pzs7rpdfYlY3Oh4pVtsHfSlLsuaeL3HdjPPEk37\nccmZKDDHbmiMgR3KqcIWPnhxTbYiwFM8pBKFddqXTuMBd5CRVVef2hSHoFP7\nh18QRx2XLtgY1433rX62S6GCZIfs6lGsjGOiMiXJ47lJTort9XFEMrv1XwvA\n3ZelbSxSiAlMWNXOWNzjNGQxy1UQk/nnVTwCKSZNYRBhQIq+1mmRFHy9f0/Z\njmp9\r\n=RbKw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMGvEY6B2R8iSopefzGvWbvMxN7oEAaYXwhTR7BdmSlAiAgKJmydAD+mCJjDsIOc0YdR0ISMqrasBHVGdzL0Chv7g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608594972517_1608594987838_0.9593390837978237"},"_hasShrinkwrap":false},"1.7.1-next.1608595600968":{"name":"playwright","version":"1.7.1-next.1608595600968","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.1-next.1608595600968","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-LC/V90fObFRgDV0SbNDBuduQ11mshoILw8zv021PkWCSWlWITLAeT3dODCCmL6mkxokCVSZzvG0g2B1BdxD/FQ==","shasum":"95875bcf7d4d181eabfa82195b6373b38b044394","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.1-next.1608595600968.tgz","fileCount":179,"unpackedSize":19166154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4TihCRA9TVsSAnZWagAA4/YP/1ha41fpzMmLFk16IG/I\nx5XaVExtZZAVGhxdwbEF9MxN4Y5mvuAr/UG6GutMRZb5xKMb6Xv0q1HSgmgp\nZGtEOB3S5aW42fmBFH/t7ptG/KL4YALdO3D7yJrUjbapfcmqx/JhU8ASaviq\nntohncCMJ6fZLlAFYcrFrcNuI9qr5x54T6ut3YoVRtrzYvZz08G0Sm4OvdbG\njAyftrVY+NG6En8fnBCVRCYaJjNSMa6vJHoTzErQhY13VBLuOR3PfiQVIbuz\n8GkckGuK3LcjufnR52YuGWXwL0eiqOg52Kf042WqaJCJsXQNEDujAJlKrctl\nckVYmZuEIfS/KfMe0EKJPpcqB1VCDdh3xYH3MsZqAaSBguibAnwfOsEuqTc/\nI+SE/kmQnocEo5VjDxV+PUoIPNd3tfai5iSaaCaa10LD1jPQK4OHoAQV+mD6\nK9laopg9ZS1jSHCfSMLU2gtyNXyoNSqOSWO1QP5lPvW7D69Dx/eUpZxXhrbc\nW74EhElsgv1fOYjwUHGbNP2eYx5i0MPg5HZ4a8pGZu4asCKtZmi/VnRfHRb5\n7N9hembftafrBLaXtNrZ4SUBZKG80EkW9bveEr+oVAUJnJoBLvlyxh/9zvnt\nbHxEvJZx6RVkxE2Lr+BSZUTPhz0y3Uz6q/NPgh58wvUF04DxMVUl30vkh9Rk\n7q1h\r\n=lVob\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHG2pbWdHE959gulSvpjOxLVkAuv2mpDYZUNs/pA8zxEAiEAvpwwfKgE7kyJWc8wlXjjO1llLNZmyxwGpD+WGs2Cg7Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.1-next.1608595600968_1608595616013_0.01953600784208387"},"_hasShrinkwrap":false},"1.8.0-next.1608596314330":{"name":"playwright","version":"1.8.0-next.1608596314330","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608596314330","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-EhydAqjHhRq9wLflM/+FZnyDymnd42s9bKFFpBidZMJWF7tJum30y0g6chvnR46yxptmGopzwe2N05A0lF54yA==","shasum":"c57f383b8597f24228c52ce3ab23852030c84b5c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608596314330.tgz","fileCount":179,"unpackedSize":19168344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4TtnCRA9TVsSAnZWagAABcUQAJs9IFRKdcZP12BRQwFE\n5l+DOfmW08ljUEvl/5o7j4O747rYXhltucJ/QPMVTmsZ3124lLGatwJp/zeJ\nZiEbl3C0wCg7d50Y73WeXui9H63hOIrc9Y4zEqqQUtRr0WlVrujZPBG0XAuT\nZ6VxQsyi+7Hw8HlE2lSsSlC715qn5BErN1zDIpVv3DRhiki6VtT3gYgaMGZ8\na8Dph0epGZMb2R8JVWnpHON5RshNnSe3D98NZiKvdLdUwvwtM+KPfpxDtDxS\n95cC2rAVEA5/HFpZcpWZ+ItstN96ixw6u3YRWrczgvUP3rENRJ47euijbfhv\nOR/uoV+t48+HwXyOV/hTziw1oK/j3WEPqDt54LHe8WdY8L5hbm01qrIdpG1q\nKe8RX+BvNzfHYgQ930qyHQWp2ZYJVchaUv3NoEYeK0RR7TiAkLcVHvD79tWW\nMC0heKeBe1Igs/g4hriPWIbYPkyNEfLF1WznHeUvN+Iih6bdQJU80ISyrEAL\n24QEJIrwdifqGvEmsNRiMmSqWObWtiVHUfeSH1+G8sjq2z0X2274jkIhvaOD\nlEX1H30MB3Rsa3UgwbCZpweKNKjuVngPrbzr1b35AGeMY3x2nO94jGGI/En3\nsw0dsWXTzLq28Gh0rF5w9/v/8FvdqpVuUjyPl+ZXyYPcafbFDNB+zUYq41ks\nC3r2\r\n=3LUN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICfoDvLsNu92ebrEsl4J9YMdkuXOfb8W8K9nyL5w8vtPAiEA4WyVvNqoHa7QcwGeQNbaJPjF8jX5euqZOpvCCdvOWOE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608596314330_1608596326229_0.09346007808309786"},"_hasShrinkwrap":false},"1.8.0-next.1608597588593":{"name":"playwright","version":"1.8.0-next.1608597588593","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608597588593","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3Qumwj/qBDqto0eJ8RU8ufOSPFX8tCyEoOmdb6yugdkvBpb+EX43Z0gZ2boM+k7mMe2ualSrt9+k4g+uIUDC0Q==","shasum":"ae7a83835b1d5180db63fb352b10c8018005120d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608597588593.tgz","fileCount":179,"unpackedSize":19168583,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4UBhCRA9TVsSAnZWagAACxwQAKM24j37wPRlzcPtL5+w\nMikbmXM/gFkPrsVoqSRkLQ3vr/OKq+EA/dnJSzokZYxBY26hu+q3o+C/bsq2\nGCoMWLPaLPc4KU1HZIm0RdsS8OwASbVYVCeRAO/vIZVAcURKpXNDr0/0F3qd\nnHCda8GyQzwAt4N1sJhgWnal6QgSzQTuyOgR4ysZ8It91TyW9dI3QMw2/r8I\n5wjw3kCSKhFueyW3V5lRquiBrkRhybdoMjsJ0dDTdyZuCQjcYKVLlBd7wKj3\nyVnmL0Ik7g595bUs3PIkmInane+bD1XfJ55CE3Ha2b80CAqc17/ZkQEZf6DB\nfLJl53RaBZPeZH19D+Lbc64dQtQ4bsSE/ALeMNYWspfS3qX7XkJ9tEdWxZfz\nLCf/wg2zGK28agxF52Lvp9xEF+qodWy9RpYsyHVwubMqKAL+mE30zgRIEJSJ\nL357XUtKiAFIjiSFmtoWkkVS8IGZyC31l9ljyCFrujw/wxebIqV/396p7VYp\nvyLdKr4tjpv0SJ3dw3P7MP10TwYUGqRTogQF7n3og4WW55d7zkbS8VJfcXUb\nDrrbEQhNjgQCDjq+u5WHhrhqShByeeDTLanqZNgknp3vs0oecP+djY3h4nFP\nRddQsc5PQ4G81bCm2UyJj6bu+a85UV+PiVL9bfrTgPH8aKsPBQB6eDqSFKqt\nAn/S\r\n=erU3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG4vdgz+HnuwCdz92CULCVkSearKYW2pxlcLaEUf65bAIgErjM+JHVlY5Md53gAch1dxFROqoL2+4mlAmNvD1GBYY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608597588593_1608597600755_0.584753342977"},"_hasShrinkwrap":false},"1.7.1-next.1608602762905":{"name":"playwright","version":"1.7.1-next.1608602762905","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.1-next.1608602762905","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-uBsVWII9dNVa/jL1Z0LG6o5HCs4FSfZ/cZM042z7kl1W2VWcCSne4auyb75zPv4Do6alFyCNRZFir9OUX1h80g==","shasum":"bd032bf55330575211e776786ef178c307a7073e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.1-next.1608602762905.tgz","fileCount":179,"unpackedSize":19166393,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4VSZCRA9TVsSAnZWagAACm4P/0mFdUPqpyHWnRFjEj2b\nL8vbBLzifVrJRkCtU+Mh+m4mOWnZ0FmTpWaV19cBljiwmQ+BKgV+R0+ml6wr\nfakvQUKhveedDCTabl7FPtvp7eOoq3AULrSXeZbCMjI5v1/8Pjmf6VX8JLuh\nr8kwRWj4P5UqvU9/ogf9aBWu86tEsayrUzrpaaX2mThLwgTdrbm4lSHejHZ+\nRDP6kUvwVLvYfaX2GZwGXzd7dDq5QcYoY+3AlkIxw535eSOCNb0srUa+XKal\nEV5yjLY/hmmSLlS+WMyA8CCXL2VFcucIzqpDUEpEfC9jkX1Gt3Oo83lntVCr\nxpl4M1WcaGlkXZHV+30Bgs3cIjcZfYyGRquyiXyrPFynU92hxPTsd0ip9xUO\no5lLCDb1k1bbD0WRG6vpKVi+ZnMqf8AoU/3ZjROE/AWlE559xHi3qk8pmNQw\nSG/j9nqWoYjCc8S1p35deSJS41BeUFQ6IU6An2nTZWbqQri4l/bJpcoI7K6m\nScDjz+iwCuC2FSBVjxJngV0ZXIZ+Gi7GFC4wlL+9F63CtjKLAis60n6bbKiX\nWEYZEaNlPNQVpM1AYIjQl6VVh4AflWznput32f8eGzAAZC1iMcOUXWaOjY2o\n/Rvlp4ndW1YJG3i35vFF356sSGmOSwUdhUO4ZuO/bumfFF25D8WTFDV8ONyY\nA/uS\r\n=xSIq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbPnFrioBUy7VVU4mJ2jj21Lfh35TNynZSOlVZxl5FZAiEA5IfymGuLit/Aajcm1QzuRKN22KSvY6jLAPqqJALkWJg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.1-next.1608602762905_1608602776927_0.28588149043145816"},"_hasShrinkwrap":false},"1.8.0-next.1608603118992":{"name":"playwright","version":"1.8.0-next.1608603118992","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608603118992","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-xIpVANz+fL7j2i2OuO5tcGc4FWYAnzz0ujFqCicmg49ap6sapAf/2QnI89hiM11De/AMyjNsI8guzzRVx1gOzA==","shasum":"985d04a046edfa3a151751ebafa43436b99ea7c4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608603118992.tgz","fileCount":179,"unpackedSize":19168583,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4VX9CRA9TVsSAnZWagAAahoP/Ru+i1EXhEpgfYSbRlK0\nETgkB1gFZfExoKG8uYoDEs9XLjPZE57gw6JJWynRtOtmH7prvEWud3mqP8Nq\nUq6NE8vCPvzjT3Vx6KlJiwpVcFC9kUHRHXKGC/TZMLsCr/keGjzEqWhjemAb\nhSZ7oAtp5/cXk/ub4ySYqf7JZUnLuDhkfcIOYL39JmXbIjbIUPiMI8i64eKu\npXEvtpnJFQAIbAwMOtnUgJ5Xqr2pfGSg45zHV7DkjF+tLpRPr18KcYdyP8ey\nKuPCEUUGG1vFBq3KDBu/X/gYPee3FyyaFtRvBYhDBG0/ENsVx1Btyd4gA8h9\nW8Ysi2JLBucwhiBwgyTgJsxZQ7zSB/ULGeK+Y/02dbnjjbxz6CoJozsfTbYe\nbP/9uxd42li1z2cefOsh5S3Cl7vO+wsfvldCc91ReKSRglO+qLx/88ptE9kC\ngCmA47yUjIKWEcmxUnvyQvFXRcmVotv5e3hSH8SS6Y6UEIgfw+UcYMmz9lA8\n/EZvZgosgJ6cZ4UGCmjlNmNE9km6v3B5Cccx0vBttUzbh3LOgOytCCntbOL6\nNIUp/exk1yfaJtadId3fYDuq/qeoPJrBnxtF9yxqszhQ6eSK34FwhSypRzE4\nnfj+J0dIPlzOfAZtIufnI5DhrEOhVlpvi/T7ciZM0F1GRiW7xZeop9vGMU3w\nlKDq\r\n=WUOl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICck7nHHVWyoMBN/bTO9mSHKrO0bB586qkoMJf0vMRbAAiAuRAcKUvCD4cogRIrQrpkYVdjrrs9OctlicCOmJKKR8w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608603118992_1608603132962_0.23987871995708687"},"_hasShrinkwrap":false},"1.7.1":{"name":"playwright","version":"1.7.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.7.1","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-dOSWME42wDedJ/PXv8k0zG0Kxd6d6R2OKA51/05++Z2ISdA4N58gHlWqlVKPDkBog1MI6lu/KNt7QDn19AybWQ==","shasum":"841638811bc39eb2fed792ffaacbcc959a0aaf5e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.7.1.tgz","fileCount":179,"unpackedSize":19166374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4j3RCRA9TVsSAnZWagAAmmkP/2mVY5cEgBPKrgY1QUNk\nlWawb9HdxaEwPfzo16IV8MfE8iUPjLu3mOYsDTbb5T7Nkk7Cbo0zJmI7vHh5\n266MoBS99S2DEG6b9tPfpSuKNPU6/KCmZsrc2+CTSd+T5LCyDwuy6O4zlSHp\no8frY3QkQ6l9xZnXhoVot71IAmQsixWVQv0osHALVMkk5OR25CN7pDj6Jlxo\nXoG6gpPB5dsJdJMJWD8lVRi/j4CcUT0OUcVAqt22sj4GiF/+f2s0CnMoQWFY\nWwT/QNiXce+Mncr+g9+OZcWjWlkrVerQ1IddsNIw70z07uyjJQRHPFpRjfV0\nASLFeVuENHbo+gLAOHpiOiorxNZyVqI5xCSQM4HoqxeIgC0Xe/8N8kCyW4pz\ng0Olzj1buQinTYslcypPHK8zUBZBF/hQV8Tz98S2Kckmyl7UIkTX51VfIh6N\n4ryOjvQg5zcTL0386KZm5kSOxnMd2YmDkKyBUqxod8g9h+nDsW5G15vhB5vk\nRIuNPnDuoJ3ajz1t6lqld2u8ApzpNlBSR2qhUltRaM4bO3T25rVshKwvoalW\nx6rd1wXdxgbKuu0hCF43Ra0LOLinDUjuI2arxqX89qC5CYogjDX37Mbo4G6z\nU6Twd+1c5aT3lCkOBYJn87Mxkttxl7LbZRPwzvN6NlK+bGVGMJQNyAKdK26U\nm4Kz\r\n=U4a7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHb7B50iiEefoxIAXqSCK7VMBbr71JqsZeOO2f1UkrNRAiEA0rwuSApxHfr+9f6qs7hsySkh0i9atwesjsO4LzdbPuQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.7.1_1608662480156_0.7138119261647424"},"_hasShrinkwrap":false},"1.8.0-next.1608663788448":{"name":"playwright","version":"1.8.0-next.1608663788448","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608663788448","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-NRWilayLhKTbSUMuo05ryxjWIyP6nXVvKfOPJAoAMpssFNCHlMIKcmdeBpEcZcRvmbVztbfFRSiGgBsXjBSRow==","shasum":"15d5e4b31cbcac46593a44a7047d605e75baf0ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608663788448.tgz","fileCount":179,"unpackedSize":19168481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4kL5CRA9TVsSAnZWagAAF3MP/RnChCF0Y8ONEmBtyHZh\nuNfFVuAxJRCuVAMFvBNeVhcvxVN0ROVG+x58xfjjSCG5zLGfSrZcu4MEBRH0\nmNRDSPCNyKgGK5/iNibeI1rc76cVj6vSeCeJ29ipKMMyGhUOaaI1CgsvziCZ\nxJpOq40qlcrqMJWE11GhbSNYVeOYxL4nXdt4MOkKuNgASxVRnUbADB/mfj4B\n16Aols6ogETxP8c9h2WouDB5TWEmV8xyNze8IeUnFTyK+2sIJdb75kpXMBrW\nMdYNOi9TyOoivloHzL1flFqSz17dZ10yCISxVOyJ/m0ywInH2DPXJtarClEm\nsJTE2xtCK7c/wmvzPHzfMdUpT0wfjZFXP/PTfk4AGvgQwiIJGiwWJWNlYo/2\nVFHPz9DHrOdtJhZJd4iAGW19pSHzr1aVryLAwSkE1k6Z9itt8BnG79e26uFf\nvlrlr/MvfXVZ3abX8YcnFOHHmlImEAP9TVZ4oV2YjafGgzy97aukidXxDnVk\nl6fPjISZwhUI/Kda9iHIPZmIr8i10ZSmhc8WjxCcfUkC8otYvkrRN1IUgcFB\nqAwZddFomQ2SQ+jWCy8KbOQAM1Ry8BkRlGUPVrQ4M2Z6kk2O4hjB51vCzOwS\ndlOhTN9fua6HLEv3WXRRWr6BmKBQQlxfyej83ERNENZe2AY00MH+0329IXgo\nN1UO\r\n=6IvT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICCKA7JW9dcVMAbESFpVwQGC0xeZXXnoEuFU9fxf93scAiEAugHszQu5HaxNjBEnc9qFd05C0usKuDmNtYTJvgXaDHU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608663788448_1608663800475_0.03873357439189018"},"_hasShrinkwrap":false},"1.8.0-next.1608677772089":{"name":"playwright","version":"1.8.0-next.1608677772089","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-84.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->84.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608677772089","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yk/SpsrVh+sV9eAke4wtA5Y8/l1ZY/D4MTGsRzuynpIzhD3M7cwfet5mWmIJY6rCQTnOWg/zaB68VXoyXoWV7A==","shasum":"0c51873385d93bd0593479fd8f71f8c55044d8d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608677772089.tgz","fileCount":180,"unpackedSize":19180795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4nmbCRA9TVsSAnZWagAAn8kP/AvgMIFzQrInD0/F0e4y\nTie6lT480E+geqVitWNwtn+nFSZo9idiIdnbEczXDYYZBAIsVJxfal3f+TbK\nHXcbkeYJNrKguQh/C8/kE/SdvIxhBMD+ed8ioocQCK2vvG6Chi4gp+ZkSAr4\nnpfS87OGWDuzV65VqDjH0yS3Tdr5m75fSWN6cLsHf3biCkB5n2n+NVH3rb5q\nkMs8UWtJSgl9xjkTEi33g6ujLYIF1BfmG+0pI+H7gNdPi0yorxR79821J9GL\ncjLJjBpqPe+7smv6AiOqNxPQ4AU//VtzbdMHUAlvC9gRLNyQyGu8hUh0zxUq\nYM24Sy7Dbop3+KHUVaegV3UGiUbg8A+E0foqCawizsx3auEAn5D4dusWZ7gQ\niCR8MBmIqKAfDH1YsEGvfjjrW6u6YtbB7kRjx+jtoKxgMR/FXNNWYKlZkd2X\nmgw0Eyc4X1jvEmu85bhQcuGhjf9MdJF4KJECk4To4vlT/yFaL06aTHfURVh9\nK+vU2HGtiEK3tbAHUnE8zv0GPS/j7m3S3NhSzqjwgBaZ+pQpK7NCDD/9Z719\ngYwC8dt/kvga16zszGuuQg0jSdvykLYO16ceDDw9Xt8CdnP8Ij8TitswDmDb\ng/ZaZoe+E9vJ+Nm69cCWHP9iDKwGVNdr/v1ca6NJArO+MCbwhRQTetY+4FA+\nlYvv\r\n=IVHi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA5iwQ1uXeMuIj7sztijw7vdgoxJkQowP7ZdRKu6aaHMAiEAwktpLZLlefsF7BWaD3CuHPE4ZLXP+SDIUE3XIAYcgdI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608677772089_1608677786251_0.7213074382610196"},"_hasShrinkwrap":false},"1.8.0-next.1608688515907":{"name":"playwright","version":"1.8.0-next.1608688515907","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608688515907","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-su8TeL3QC3D4Q7LhqWyfp/4b+lpHNTiUCuXCe73LdLfy3H2JXwUQqjq0smMZZhGmBszvsDeTJuujghDIr+Hm5w==","shasum":"ef1bfd446c690b195c0dee31669d455bd407d424","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608688515907.tgz","fileCount":180,"unpackedSize":19180795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4qOSCRA9TVsSAnZWagAA0ToP/RMuP7c+/6d6aLOJkOn4\np6P9BFml8zYePB4i4yccalxUgBWxmigJe4AoDiOggm0pFF2/y7ay91kOklRW\n/ZCzE3TOJL4MlYavghmUD5wo6qEqkrZrV9Q9TOT6Bvqq6qfC1TDi93WTST/R\nGL+mx/Y9k0Mu5jDPR9enRZWzgCiC8FpjkPotg3eN2GUBANTN5w7IBchfzB1y\nWFKYo9N/81Nq3qBfxp/BBrruJmBx52CtYEw6AblniZu1p0xuI+gXWq8wRRaQ\n9ty/FXlbnd76Ol2vt55x0CXWVCOG4Pw4HkAcn5BMiHzQ4CijXPj+q2IfDGUI\nEKYECXe0f8EiWwyKgV61f++AFHZT5nooZxZmCA2bSTU6jA50H1tN6v8oDdSU\nFdSr8s+TQILs8A/+iIPtOEA1PuJFdRB9dZpZCYQVRpGz1GTpQESXDHnkV3KC\nm4AmmVGYI8VjU8NNzwz9/b1AwY992UbwYO6/Tmp18AkOatGmNG0EOzguM3Ze\nnvLeDUFZhvu9fC/SdbbnJeVmTmJsAxDnZMWw/crJOU8mCDj9t9q5s/7Etsk8\nuJnNYpIN+q6E5rJ5xpsx424aTIfHH6DSszcye8jvdM834fH2VLAJLUKCA7WS\nS1QX8e/bwsQwbVhlO6ETnZ5af6xUSWQ8rCmiJN9oGK55qn25hRk3xLLnl3D7\npabO\r\n=vOFq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFogPvA4dGsr09a6UOB6BDyo05NHjI+4pDyECu7mQFPHAiEApZJKH9yGGcO8vRuvCzKltKkqjZ5YtiuprXhrPUptnu0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608688515907_1608688529382_0.2875579570557061"},"_hasShrinkwrap":false},"1.8.0-next.1608739639762":{"name":"playwright","version":"1.8.0-next.1608739639762","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608739639762","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wG0w80V/rS7Si6TlwKgSznVE3VO6jsBVfGjyYz4CuQWwfu9v8uAZ+9A5AYoMMO4egpicMSxczYp2vpparBL5bA==","shasum":"5ebb1bb73396709f3e955c7bba0b6e0cf4dc41f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608739639762.tgz","fileCount":180,"unpackedSize":19180795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf42tGCRA9TVsSAnZWagAAxrgP/3Ym+Apl/LTcwApi1GEK\nKlHUPzZowiKnSAvcvtLE0XEwffWqNzvcW8ID0YcIfLJ8aGF6S22iQLAfsyn/\nXPvCnMEWJZ4es9OO/JC0G2q+g9KFg7C3VG0saI+ZAjKzzLInluaxUfZdGt9N\ndCN7mDoTG2dxDmt2Q/kF0VJCzkUA5TmLxQQxjSyJ1mG9zBrO0wegyzFUK9s5\nW1xsCiXMhxWYjqaMrQCq12GgYfbonFzUHehIPZNVSTawMXbZHNGggAwBNU6f\nHrAX47KsYqXj1roCCUcXL+IHa3fYZ46rTd/1RhPJ72Vt2eTJCWkIt/4EotGk\nXhMxur5Fw9td8OZp/3VjxTrjIOEVgQAsZ8FV40nFPHaqsj81Cx5Jv2EwC6Ih\nVxKiZ3PJATHliEVk0lS8RgTtAMv8GGfRyXIiuLXyNXmPrVIJqH6CheXvUThv\nEGGXUAa33bKoF+zsxD5K1Jkm2Nl2X7CogFnIApQfC4A1HNmzJB3FQ9YWN2Eh\nP3jBWHDKCmDsKGQjmAs5PzOAAvcRmv2EC/HPeuCE+KrD9FFBkb8J+ilEvWfO\ncYs0+SAM4ikQhEBwsG2a3ncDj/996oARsWc3ue4nlRTO4yALPYu9YLBdEe1x\nsUOw2Kg/b+Jt4kywaq6BgOYLrBKrcBITKndshoddTD+OrNviFqeDpiZs9+V/\njvIG\r\n=PPMm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwpmmSic43OiouqWEYXJqcG06ABDsom6wZ09K6MPsueAiAGCjLdD4WoSQJLexV51fshZEUYBo16r1vpUwNzrs6iVw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608739639762_1608739653926_0.11129978011623165"},"_hasShrinkwrap":false},"1.8.0-next.1608746109749":{"name":"playwright","version":"1.8.0-next.1608746109749","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608746109749","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-q3Ru6GKpJQRDUnLihMIp+eb22oQJutKA0FMmAGLddktGE0lOLL/iLG85qJo+Sol5q+RuKMeUtLQMDfiaE+Vslw==","shasum":"d8816884de1d7f4b6de410f092857a613bf07054","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608746109749.tgz","fileCount":180,"unpackedSize":19180809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf44SKCRA9TVsSAnZWagAAGvAP/01wtMbkREw3m4R4BLwI\nWKjXQhdJbh9VZj1wQdDfYSswip3Mjtw84Vor4lrERQyck+b6sf+lQGnbSG8o\nDBBzdxOayKK4mTQkUh/if/smkkSnQ/Gt8Zz9rbUEz4vTOA4g2/Brb3nWMkHS\nukvIsbohLMqN78rWX+0gPsT8teiAkrnM9RMoViQm8poTFgLrD66/69JA1e/M\nfESMS7qC3sxoH5A3wlKgl4gpFBExLzO7QEXFNoHXSLReIid3knSDxgbqpbdq\nh3kUmYm1Dq+q54cdD03eGL9wwvfsa9oo/8bvdyXE6XMceHoktlJFFCYEcI7Q\nOHB8pBO52HP/Y/eeKdEPrpgsefkx6+8ja2L899wsC4hXOBceLW2EoDLw+OHN\n+1GZRjCPw0bIrSTsqbsxdnSibKc3r1hRiOnBXUB8TurLVx9fjc/fqt1JDHoT\n705bIElVIzxr+JzWyUciV5f7Q/hkEn1egJaWaVMIF3Y6hoBM/nmXZHx6rs5X\nJdd2uUE5fCiirCEsWS5GPia9/hItLUC9ciUemrMiacZdpL1N4nCDoVd4cwZT\niWF3B4L2jOQMiLVVr5KNBS58kWydZSwbhDvF1U6TlYOuvarg3u7ZhcwQh1mk\nnugttZ0rbrukKDexui/iMDLqToB0hYW2tT7pBm9mJmp7jXk3rzZuUVUg6PLh\n8jej\r\n=CN9m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDG1I+2wHTbT9t9ka/Y6GS3Hh6XexreoyhkrfvgKT1q/gIgdRrSdBvRt8Kvn6yOTc6U+YtX/bFX4dxjY/HUwhNBBiI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608746109749_1608746121876_0.15132924074801601"},"_hasShrinkwrap":false},"1.8.0-next.1608756387315":{"name":"playwright","version":"1.8.0-next.1608756387315","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608756387315","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-IfOJ7mhcLdciHIg1AzZdBWrESaKTa/u74SbngGXVgPMJjs+vlAHtekkA4RSrNO+uuW0LDiUqk3pO6K97gu7ryg==","shasum":"a33903df4386c040800a2dd3b65718c257cbbd4c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608756387315.tgz","fileCount":181,"unpackedSize":19199995,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf46ywCRA9TVsSAnZWagAAilAQAIC+7zDmqXUQX3FOWJxo\nS/CRtdBRPmMqkQluzWX9IgWtcueNwFtRwVk2joKOqWTs3vjIezhayKUkfsK3\nvej0kKhhWdeGDIwGsA9QUQy9iuV7coUDQ3yUKpUiWl0VLfMCkpkdPq9kJ/zx\nmrWSRblQXDdps0Zu5CzQ4QbhFIR/QvR+R1GPeObmsbevtQ82BasCI0m42mul\nbyPvUabZAjTtE93pvUfrSXEseCkwAWIh/+fKPG5dJEBJMQic+a55Cu5LXozw\nXlNJ249eVuTf+Xz9OdfuiGZxrs5nNS0EfkkYexX72y+0vR6QxhsCjLErNJLu\nCrfHiM5ZDrACKxzwbpqsA6JpCOoPyt79UGfq+hZriRQxbguUG2jtVNbJ5BLJ\nozPhyaVHLa1jQUrBT9vm5++R06LCd7FzCPT2mjEqXYAKgsn2sJLytZHxx8+K\n6DBwlsjSP7jNLns+G30hSRcUFG+Jz9vW0B7Qgv3YBYdNA95xkpptInw00PPY\nYc+2Hqc/w/rq4U0hGMS4A69qtmgWXq3+g4nzzlBKR9yjl5ufOOZTPD1ToZoU\nOH8S97hRsO67J/6whnt27k8j/Nn2Gule8a/sFdN4L7ZY/vMExQU5LjiS03V8\nRLUS9PlNPGcdHt1YDo1xDjXWNGzRP6StDqlIv/FD+GSSA9C4Wh+EhDGhVNFk\nW9CA\r\n=FVtG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBnJ7LnW6ZNUJgITYKL4zgMQRgnHK2rOrZ3QfA+fqJ3eAiBjiH9w5gLLY+TXN438rorO3fYVKdeKglMaH1uE4KLtDg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608756387315_1608756399620_0.7023152162409854"},"_hasShrinkwrap":false},"1.8.0-next.1608761843589":{"name":"playwright","version":"1.8.0-next.1608761843589","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608761843589","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-VubHXCbxXLJLEjB3p3p+TTl+asd6viy6+JvRI9dW3Y/eUNmuCfKB/i7u9kqLmABANjv5ZNLeeJLk8FUDgf6iQA==","shasum":"59c8bfcf9028dd0a600a87862fd71b68cc264c7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608761843589.tgz","fileCount":180,"unpackedSize":19198550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf48IECRA9TVsSAnZWagAAHtwP/0vM1Krm24HReazr4Oux\n7dB5duUy7XTmKtmQB1A6eccWyp56ogAf2Y4pfyxdQ7VeLY5WYJ1Yo4OKECzk\noPCHZJxRuuSjNXRTswZeyGYZG2NXSGRQnMNEiyLvyDII6MQg8nDoRfZbKhjN\nstpgNtnWOn5FbNce7O36/3nfSXnNyKn3C6eOLRX292Z9bG8mkdhPbXAQU3gr\nTdu212HaaH5ejJDwxqYoXBOpWQND9bbMrPVKdg1zfZIWkoVzVnfc719H6xtL\nh2MIxOY6n/J0KRBu8fpXDOkEyNojWriaVk8Z7DRWw1OS5MeAS8pNo8EbFm1E\ngE/6r5Mq7N69KUpQIC19kKaN+k3NqsrVtNZlH09PfissHrSaLiQ42FV16ywR\n3ntfd9lLaijFpE4Ct46L0/FkJ3ytDi41Rd4V+P5zl5AyiNlE/UFE39W+kUgt\n5lrZ5/W5hHUC3UlMbnZskHaTpcY2M7y+E3IomqHSWWuhTRBUiWxUQf3gEqYD\nJ1puWkbGRRF3/3mLrxguG0YQqvoK2SyWI1pBfddHTsLWFIExPzDA7jiNDo+M\nxbx4jm29Kgl98DhB/3D5QGkiLHelY2fCQeStiKTOPi8QpQURsFK7c1h+lUsf\nThikkK7WS2R/iM32W6kL7nnL4GdTGz19wFuV4ea5uPhrUZOVvVUfZxF55Qeq\n0zT6\r\n=xWIf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChdDVlIsaiKJtydT/f1mYbxGY6kuG8daC68NmHfEukRwIhAIhZ/SJg++TIMLPVq6rFtjLzjxBe8AMKU/KWT642rXIH"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608761843589_1608761859249_0.3169314592635375"},"_hasShrinkwrap":false},"1.8.0-next.1608781065195":{"name":"playwright","version":"1.8.0-next.1608781065195","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1608781065195","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-tgV6cQ7jPb/T7CuqGOesBqvtmvSE/aHuSYtip+5F1nU/MMHLmlnM8rIyCAyDfvTO0RQJhAftJ/SWc5tiu975PQ==","shasum":"5fc952d20193e028e91852305f97f01d24ea0e5c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1608781065195.tgz","fileCount":180,"unpackedSize":19198550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf5A0ZCRA9TVsSAnZWagAABAsP/0wBXDQSPKVT+PbHQ+iR\ndncb6vxd3LMHL/KmjseQIv5aIkIl8c2LdP97Ru9mghmrzI5IfR4Z4fWx6+ku\nEj0c1aV1HPJ/a6sWCD0jJOoNGtS+JB9upILaHRyCzDCxHCdWMAMfHDIrxC3I\n0hPV1B9pzH8op9h8QjyhKxA4qi1NcZ5rcvEK8MmVGjwvGB1ZzPvUeW2pN/4p\nRrp/WlqyJL7VDkF36rS/i3brZ5BzOUNwjDy5F5YtN7KV5UhauA9zbFVOLHu5\noxq4038he3IDJBM+llZzLUN6vPF6O/zWMw/R7Jl5JC+nFwnnibrKLwlcNhJ/\nmXHTKrtpeYBISrOzrrxMKYDc1Md0jAyy7sifzcmtpgEFFI/K7vbuo4VWqatQ\nNpeZSBqvzzYt1+FoP5oGvIGPwXP7ElN8M1gkMf/FWQL0DOjUERBvVTotvHlb\nytQgu0j8BB+Ik0QHAy6odVBbNctrH3JFxaDnQRUflUgmBt7Rebkcp+pk/n4Z\ntk60nPMzIBk4COyuK5yaizKCYo6lc2MPuuDPvWnBw9VkR9RcEbZMWi9QuBoW\n0xS75SQdHC3lkcB/iEyX3awvXwaGHZG+Na2upFpc7iCBxYB/4sk9Yg2KDOUC\n8+VZr26YIKSYXaKYf96tkVYDD79uRLplECQ6cbpqlkJj8jBnoj4JBPmM5Lsy\nmofQ\r\n=dyyC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEE1gm6X+nWeG8onprmQRIQxxvy5rKOknKd9vwz2wmGfAiADeV+J71C5rqJp+MDzgqJjMWDa0QCQiioEWQSyTW3wjQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1608781065195_1608781080648_0.5583096483132195"},"_hasShrinkwrap":false},"1.8.0-next.1609019614138":{"name":"playwright","version":"1.8.0-next.1609019614138","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609019614138","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Fdc8m69iYTDYjUnzdtMFYfgrut5QneTe8d/Nbc0nBWd5TN6U4mhZF8zWk5lNzBY3YAtEvX0aDThtyfdd/Yg31A==","shasum":"c38e16424ac21be6955e6b46998f68803dfe448b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609019614138.tgz","fileCount":180,"unpackedSize":19198550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf57DqCRA9TVsSAnZWagAA+t4P/AhRX9NvFragsbXqGFmh\noMrCOTejPEYra7QfGhKDNF6b8CYYwNMZpmmKveYrZV8TJeQ2XJWFMQ2h7YAa\nYID1/94bHluOuDsAbS/A6IDmBd96TcnsOLo5T0jCTMwrBGPGJY4mPHuZWCW8\nohRCLc3kgbya+UqNJDI8WHoX44AYdXCoqHUFb7XdX/gW3kx+oqn+IlKvfx/g\nnmCbkUULzthA9LNA8MnfFE5wtHQkvjlDsOBbz3UUQNO0FVTBNiUesrVL+4qy\n210HVAGET6/w78PSM1l3Ye+lulkkwnRT8el+KkPz6zYoK5sd9m6Wx10NRzoG\nfwdoJ7zom2+F586wASSl3WJjrjh3AwQaX8+H65XcHqdv1p4RfZyuMrTDLsum\nVeCwSgmJ91rt2H0I8dPqHNn8V9OPJ9e1ZIBRMQ/Z9OCv3t1mA8/DMKpXFH/U\nJhblupnEKKVYP6jRJx/DIYsdB9KG075EuBBLxTQlLmCTRk9Pb4ZIUXcJLQkO\n73Cu9ZZRpSLxiXYM3zoF0YChvqrcr76zc3MiQ+XHKtkuwIG6BpMRC7EBBrpj\nelLm0d0Oxy0PvDhIWDHv45fsg8T1c3YpTVoy0IGOHyMp6ZvnyGwvRtAL1HIJ\n6z+OCtFmINhchM+yUQdE6thk7OaEvSD6i1rOBMd5fhVDlHZSI5GRmBr7D8YG\nH3Xg\r\n=t/n5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEy3rnXhglpP8VRxfl1e+X0fTHaDGVW/eIi2GlnQbLdIAiEA1+vAN199xADF7ymz4J8k3dFJiU1jS/KksIfwD5py45I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609019614138_1609019626185_0.3236347464365896"},"_hasShrinkwrap":false},"1.8.0-next.1609022054118":{"name":"playwright","version":"1.8.0-next.1609022054118","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609022054118","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1Idm5ESDjzPvaTj9+JfmaHd/+Kezvk+3bylZDtpKy/Pz5wX0vYx0W4xLoX+rVYaGfKrXMzWE/HOuSsWFf+aLGA==","shasum":"b321ab9c53eeafee834734822974aa6c6f0cb9d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609022054118.tgz","fileCount":180,"unpackedSize":19543285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf57p2CRA9TVsSAnZWagAADZ4P/2bRo6LDzilWd8l9kZoK\n2xm5YaynoGFH2fgSIQ1koNvwNnDQKaae7J5IozqCG2vDEw8l3jAnLARaUq9d\nGN9Asl7i08jIEVIFEpyI7E33TJY/FmnItD9mJsDEPxVUczGKF5dR4DIL/gmX\nXS9qnCtZ/CIz6m1HUmeN3P7kqZMwHpiaObZamXPme4HhGUQnTYNUM2FZFcZx\nOzjaneG2ZmMTQ9tS6nKbzHgTMt+cHv7A3OcShJrHqh3a2N68IfkH5VhStDI3\n8Gr3LoeSpKEiSm5spGPwJZwvkS3p3trVvWFFRwC8y1coLlV70/Yoni0yebhj\n/mtkW2bdUTmOQHrRw+HNGI5Qla07tuF+bdXvXyzF28X7ACZFaVROCG/cRYSy\nF4Lm0aVbakzMnx6gntjCcbrj/njNLME088blWBH8sbTjkO/UsfRioAfrqcOo\nlr916Z3l1jM1q4jIRgP18OFiN+2aFqyoFSIFbRYowJlMM6XhYNVFzJTTlYYm\n/sbf4LB1rgohJaQw3bZHf0iQwPDB+rhlFJOTOrm2NdKXr934VeaUHLWaSd1h\n0OFUpuDbxumqmCQBepO237FtkGraMA3MyypOp3wzvMvHzNPYx72DcfvpuG+i\njtovfV+MEBLXID2yPrKVmPH/Md+ayandYkhFsOoPSqxwcxQAZd7N0Av1ft9t\nVeHl\r\n=xjqD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkr43Cz0tKZjaqciglJnIqRGeiCGWK7276lUi2bLFIJQIgdeYv72sEqFERhkyJJTtxbilhM1a9l91mLrYNh/a98LA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609022054118_1609022069939_0.6839146524766344"},"_hasShrinkwrap":false},"1.8.0-next.1609025707958":{"name":"playwright","version":"1.8.0-next.1609025707958","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609025707958","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-So4elc8bxVXAiXG4cnnbApCSpQ+4slv8PfmuqR/YLyHciMdF6fzblznbpLaWVGCXKFHehdTuxzxAGO37pGgasg==","shasum":"d67da51298e641ab1cc3206fe0cc7a7d3a6fe225","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609025707958.tgz","fileCount":180,"unpackedSize":19548899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf58i5CRA9TVsSAnZWagAAUvsP/RTJzdh65AIQl45o4Zyk\nrQ0+r1XYDH66tsIOqoq56a6u7RH98KzgrdkrE6bW24VyuSOWecLpWtdwMF40\nUMLrOTZlTdxe+EhPg+vbPqyY9KQu1DJzL+EqLd0HO1IKv/afjwvy1M0wvvl5\n2sBoBgOD6NZQriFiXYwSfP3dL4ZumsbcwHwGEAL9p8E/ZUlpmPzCI+z+l7Nv\nynYLhSuEYnEORNPKcFwXhNSdGB4jB7SqL8xKoPv9yx6XK4uJu39CqEyXH462\nkEC7Nd2O2loS2lTa1RKE7xu5ZNbauwqo0vFjBIrhwYXtsFut2j0zyqoEvxaF\niV8VFfJSA8QN+rZ1nVZXqdk0XqYlKK4PXl67lOLRmZ1zTSV/UhPKhRvDIbn0\nF02GNgPoYOpohSgR55Iq5ES0BQL3Xj+BZsMukoIj7GUhwjmZZA9qA3zkykQ4\nXNdar4BgJljoDZF5kdJxyNIKd9wrp9wmfKrGTZcGd3vZ6jnP11YlQ9MznWaq\n+mjVMtRk8Dn6p2eNnAyzCYCt7cOxg21eHkOXbBeUBH/8mPpcu0onO0jt3ikm\nqCfcOWNievV6y15CY26KzGzzjUPHT9yxhqA4ZfobfkvH0im0QAfXNxQVTtCB\nmjPixHpcvybEHAnDmBRtH8zcWoyzWLuCqFJ66squYDqDncbSmodlbMYJQVUj\ndtKv\r\n=fGDy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhNANtkuYO+McwYGDR7I67Mi3xzNFsokGFKNeAyCiCIAiAOBAfIvr/A9Q/ZBUVcIdSFEannsiGDWjzP2No0PxEO3A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609025707958_1609025720242_0.9368827108503406"},"_hasShrinkwrap":false},"1.8.0-next.1609031286354":{"name":"playwright","version":"1.8.0-next.1609031286354","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609031286354","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5vE/TLfYpHTySTABJSI7jSIkuzvq43EtSU6prevlYI14NpsKpJXsuaWLrh56edcIU96bHAOHfSlsQlV1Zg35cQ==","shasum":"ff1d89426530c680f3db4f7b517dfa4dc7810f06","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609031286354.tgz","fileCount":181,"unpackedSize":19550038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf596HCRA9TVsSAnZWagAAJosP/1PzbMkoklK6ZzUxEyYM\nSTzoP7XTi5S1P+TRqsIYi46hnMyX76lHfj+0IDHZPQi4/4xmVPZ/3jPMl3S/\n214Y5IY3phjoo2W4ers5Bp0JShBlCeUAMJYVTObUwwALrimZiK9qS9jt036t\nhk6sp2IMCy/rzvGXHH9jQ0BK3A+3qGjuQ3hpeQ1iP6K3WhhJIXX2LJBI4Jxt\nlGax9gbq82Hlie8j+2Zz+s/7YDrL9fIBmSouvXeZ3cxDFkgelt+hdx8aSEWD\nlBrfZCkMFkguCnvAeWmJ0/ef5OaWATeno8yFlm4ibzPxY23Oox3v9kDWa4Bu\nL712ljGMe3xaxdiztadQamkgcgJOph7DIOD7pAqYjYFCQNqsgEjUjfUJaENH\nvah3LziSqWDVKaM4QHBnMGBYBy6NjXRCuK391+K9v8CBVU61hhA8SEcHNm1G\n7v31KJjl++PqGvjOruBj5CfdQ+myIrDgjAoTDVf0LPzTdW/dcG7fDxzQmdnI\ngQZAxuU0rSit0pbIoDg3OPDDTQXVjehkR3+0xD50yUUJ6+nzjZKC6ZUd4RLj\nfUhK5M86SLfTHjkzs/f/K7EozWnAcw4nIv98c+XiC4ocL0nO6c1VjJK6TF+r\nZMlU6g6a+uK2YskP/yzCDBYFMl/clA8+fTZ2Bs4NlrFWGlXVF6G0EdthooCo\nIWUL\r\n=d1C9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKT+EEu28hO3YpCFmIyFR/ZTNQ78tS9BXtDBexghN44AIgL47KLv1EJunJGp9e/DA5ofwcHVIo63OOWl8dvz2aL84="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609031286354_1609031302461_0.16750035297019994"},"_hasShrinkwrap":false},"1.8.0-next.1609043265083":{"name":"playwright","version":"1.8.0-next.1609043265083","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609043265083","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-IzyQs9zvzdoJgT3g5jRZ0ZuXSnDziplG0vSIpF8ytIge1hVssvrV01b8jyajdmZayicHnLKn6Hn/bFZroWZk3A==","shasum":"c191ca68f1cd31554e3f9ef9b4cedfc7fa78ff64","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609043265083.tgz","fileCount":183,"unpackedSize":19558238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6A1RCRA9TVsSAnZWagAAsM8QAJQF0q+CYNnip98r96q9\nBDI+DiiAIMsKMeKUT1CdI54TIIXBbamDYBE9YvyukRb8olhujxuidZevTv1J\nf1NeyoxI+13DPFyxfAt57U1I0yEaEOa3wByEFT4G0h8ccQYi7WoCEYqK9rFE\nbApMweYBvL2wlk91RaKpIykZjth4aQID8V0DCXNbpjtMfZ9TWc6CIwxjo55S\nu4fV9oC+xghQOlWLlH5qHtjYkVUkGnD+Ymw1imZejMt/e0D3acOhtuQwxzer\n2dABFKZWhmuodPcvrNftMfRxGJEkIMawdTiOFvC4DVr1I8ZDplzqq3iDefgZ\nMh4rg8fflDOGJcQROMxIppjMJ4ew9hqTMs5Qrpiu1td8BPTLghV7g/HO0I3t\ng+ObTBBM59lqhXGw2XNNkFTS+UdQXqu/a/CkYh5JDYioIb8Oljlip4TszqgV\nG6xak326S0VTd43qweQwbI3bEYM6GglL+OfMWHkBup7luPKp0yGn1AiAyO4S\nBKpK7okfrcQTjsfzADUDG+qyYQ331k3NxQBDCEuj6st3jxypFuBUr/3BUosT\n3H74dKw0IRIC9IEbf7jJffCEzdV+wV5w3m/6ypOPRIplM0knaC2csSx0eikx\nSSjHjYTrHvL6KEkldRYNvEfxXSLMaaIWrMaBVQ5Owd0OAGso+fdhva7Uzw7N\nkTpU\r\n=JAGS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDI7zKCx3eYHRxY6jZRQjtqyr/HdStGd3SxlBNPaNzQfAiBdSbYacYFWy92yWp19yw4h/LfGsq/j6uYYelcAY5HS6Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609043265083_1609043280490_0.9181934051716534"},"_hasShrinkwrap":false},"1.8.0-next.1609087451261":{"name":"playwright","version":"1.8.0-next.1609087451261","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609087451261","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mko8lxAk5HlCLaOtBbdQVVF2WEew46lF1aKuuNzQ/GadcWMWhaye+9nuACktCro/Vd+ER6d7G1keT+nrjiWz6Q==","shasum":"f50ee1820fd4ae3acceea86a415d3e195d673991","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609087451261.tgz","fileCount":183,"unpackedSize":19558238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6LnrCRA9TVsSAnZWagAAxZMP/jLtxKExYnu7eNCsVKg0\nVdjUhRQfsxVK1fe2dTFcOjcpHoCcJ4lU+UkCFqhFdq7PDA/OGxCkXAKOSsvi\nS91+tKlA+IZYths+rv7/VngBOwB8n6PE5OAXV6YxzdAb+sV9+AngWG/6CoF1\n8v61RLRpTQJKKoH+H6H6uGjQDs9MPcCN+2lQU5OMna3aznpcdIeDj+m1ibuj\n39fQzQH5fGOZ21gmFGXyx5IczHW+ZM/CYyNW+bpHvR9R+QdiI6tRx+tb9lBf\n+WHcA7St8f2kSG0U8xoJ4uR/ViVjmG4Ns6+CdAsUKhSrObkMBC3EACkdDJ8S\n+gCRS9S5wq28NbG+J/bxRg1t9m/YQP8fCXatiRs6AtCXSn8Uq7qeZW6kUaWk\ns7laEGr1S5A8PLP+Z0PTjXsvvR2C3XfOX5Y9xRFQdtNw8SgXiyMmsRA05cD/\nTeX2vrcWsfWdTmO1AGUiVzyzRS2xIWLXxRK770nglVCsul82zxQVWx6peQdj\nGYQeNmyte5c3nT2OiBBd6p1QvQuo+o/cCFg1IEyU87oufFrn/YUpx3KD1J6E\nZynhOM9q6SWSypv1jr/pHF92le00qR3yDptysNziVMudveke8oHrk+kVurer\nZa9AdGmsOiWYhCEmGm/w8AWKhNDf9pXB1bAC/ZOSiASt+ZZrEuvxxV3d587d\noV4f\r\n=1vav\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSqrr5FM03KS+45XWqgBJZl48RX/5fXvzvj6pjejkODQIgPXRp7SWlwRjTx47c2JIduONVgJ2jq5ul4l5nKPNdkY8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609087451261_1609087466301_0.6711082732678162"},"_hasShrinkwrap":false},"1.8.0-next.1609167924364":{"name":"playwright","version":"1.8.0-next.1609167924364","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609167924364","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-58x0E0JaAQEuvL/2cNR1BHWd833EH/NlMZu6fHx+5nGh0eYa6OlyBXtWLUH3gN8W6TUUfq31r4i9WpER62c9Nw==","shasum":"a19a7f1ed0f40fe97f481d3a2843e40385db42d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609167924364.tgz","fileCount":183,"unpackedSize":19595604,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6fRDCRA9TVsSAnZWagAAZowP/i/VQclInCcoR+Zb3FR9\nePRT0nMt7v/8Aj3y+IyQWWRQtTJB9kxM11gVVBrWtX73WM0VVsSr6rfBGJjk\nagJYqTixfNmIuvmquskQ0NfsfaN/Rgl8mMyNSFzUNUkrhwA8BwM0I66c+l+X\nuCwRqqy2U7PbZEWgO1/lNPGN+855R4R4wpr7KLjFVq7a8R3zj/Sj5rfU6grM\n610XOGleTQdgZzIqCV4KQZGEU9fevNso7PDWL8rJK0W9f9lyxF1PmLuUtwjy\nCHOOOMAjMQOK3oKvezoj1foJHG8dc5EebP7w7IAozWd7mTNRPjiXNMnuZbus\nVSro1aPvOySEFggcZZzdt80QnOvowi3IbfVl4SavkEsejYgqXzTT24tyXfJQ\nOTku0K65mYwfh+QExjTQaZpV68ewgyo2koqqWvrQnQFszK1Df9qYmcElB0kY\na9+w5YLdyOR/xS6rj70rd3VpGjuiMeVN0mjzSUqFpV4de5rv8a0j3cg7UAdQ\nk3AsBcLSbKqnN6R1FLWYVYpEg/LinUzy+YYCWVQJMzmINs02iunlMn85rF5P\nJWizbX+F0XPNGgMz9FBcdlboZ0EnG8kBMG8b+TtaXl9wbJyMAifog7ok69Dw\n5ucz8ftpGRSd/Nlk8YD3uSc8nMZADm5PhGbTg2fBO8sXHdz+n5fenZYTDyUB\n5Zbd\r\n=B7ed\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMUVnDBczEymMw3otLSdouw68JfBsosv8tniFJQqwr3AiEAvK3Yb4N3J7v6PCNepH9+Tvdrgb9wwuAyNt//IssdejY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609167924364_1609167938255_0.6365551512989236"},"_hasShrinkwrap":false},"1.8.0-next.1609181801072":{"name":"playwright","version":"1.8.0-next.1609181801072","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609181801072","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-RBv8o90xNUE/jy4MIkqkl+bRUnV4Ya7IyKr9JbSIilTkEZ69QHaXcKTCPO1CpnBF45cYJS0pGQX3NM/HeGKMZQ==","shasum":"db351453be784338f29ebf9fbd8e223142175ef2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609181801072.tgz","fileCount":183,"unpackedSize":19595489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6ip2CRA9TVsSAnZWagAAjhEP/izk9/Yqa54CV2H4oOld\n24D5bo44YHpJ1L/irSgyh/nFuu80/uw/ytxNT80XwHKNIQGXF/DroBo9jn8T\nDGWiC+5cDugTY7eyeeY1XH56MYzWPseVt/Fhi3I7aQOXTZ7fOsqXjKjclO3V\n1xJk9qdZStLxNPU3oAuC4TKAKp7we/FYnTjbrs6Pkr3sNsbwIBI5EO3G+1f0\nhpuixMYOeBH7M2hDRb9vtaEnK+UGckHjafaVnG/7HR+EpTKrrv3KQvnMAnfK\nlDZqx2LtLnnvtj1L9n0YfVW2mIrFYTmJaUSloF6+6DJ2jkqv6pSuPXIetFke\n97eROXYnfN8Y1y/T037jrTxFZAGCU8Y9ZE5eMNjsDji3JUzCsHo6z6rgyn85\nAXWfv/M5lxt2LbAmq5fPYJ+jac7Ka9BeIVPMFKLKZm8YoNT0wakOmLp+exEe\nt20P0b94gpzd3Ey9YOtL1mWNHurFsMvHhz20jY+GSeRZKovuC3R8SwKmCKpy\nSagtGkE4btgNenJJ9rbwQMN89ENUGI67dUbsrNl60TV43MKNTRPfWe/bz2Zc\nv/pljZ14N0NK4Kuz/wwq9zXTXlm+uABkJ5wkf5zETyDjvTf4IKRHJ79Bcsed\nl13huz/2qs8cE9yIOWnZTy7Zb302L5SnCzw2lRmfJXWsU4J6InhK22rtoBOp\np8JP\r\n=Dgp3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGfrs+D7LszAjDkznoSDKIyy60OpQYg/fV8R9XYBTrIgIgUfhAanof7eqM+tOGg6O249gNTNhcA0fIPvSfYUdQ7G4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609181801072_1609181813655_0.052952887959610395"},"_hasShrinkwrap":false},"1.8.0-next.1609183020182":{"name":"playwright","version":"1.8.0-next.1609183020182","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609183020182","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+w1l7NH4woxL72HV8OQLWgIoBYAWqjHFYVBbPfyZwiunDy/u4GXq3uQAJSt7SoQhmDiOvmwojfUfHixu+EQo8Q==","shasum":"4e046217d0a0c935e6cf93d76d9a67919b757075","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609183020182.tgz","fileCount":183,"unpackedSize":19595489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6i87CRA9TVsSAnZWagAARq8P/inLmHOaxIEm5g0qdZ3B\nSqEdQ0z6QJFV9fIEecaGC9g9tvwEXmw2QHUg8aUCD4zPL47wu2E6Ldd4Kydn\nHWzG42mOzhaw9BsdVwLphowjcQGUbtTy/K3E7+kWKrz5qp49aYQg3uJphKCW\nwk5wEkjjN3LCqrfVPE45n4H78jbsFPVqo74OhbjkPey1/DB0aKmzVywjfb7o\nX2F2WlgXDfqjqXD8X+rYwhPTcrgECmL9g6we/I3OfUmfwqEPYD11/3K3y7ni\nTZNL939zvjJWFksh/hMlm75J3MqhZeF14sSOKfILuoBMQYqpRGabHL91gMSa\ndxQoLYeQ3k/wb01cu+2xLsb+EYBjDuvAWKAu9PZCZRRwWPXkia5zNyG2pU7Y\neQJvu2qD1QohsoX9/sRuz7F2FMqMiOsHNnNeokDPcA5BPo/43xd+w6JaX9aO\nGQV1DzHeIOPAKOJm/J4KtmATl7vkUEGWuZzfk4rZ634TY3BpnOZaczKuaPsE\nrahXziMXbkak7igO8BsRgz/x7IMrk8CcH3Ozeu4QbKm9RBcTI2yjkkQitOv+\nowMGe5fFdSLrEvKvtNFqX9vTZyaROF+0Leha4fO4sZfK8x4BGE/wMh3L0X9f\nJ/Q8pYXN6mV/UeSzPbXtXl5kPcpC0Y1AtJng0raZ3xeFUivmxPLLCGM9+egB\nsoda\r\n=5q5M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTSnHG7G7CN1PsO9kGT2dExWTajdHrfZ1+p9d4wfSWnwIgWuoW4ZXD1mfAkvWIvkxNAUnXul6w9wWNkuv7YkddnP0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609183020182_1609183034691_0.2805786266903232"},"_hasShrinkwrap":false},"1.8.0-next.1609195932746":{"name":"playwright","version":"1.8.0-next.1609195932746","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609195932746","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-z3bMZ5PbDq4fQ3WgtDw+iwfsQrN6sNKUNNuK5ksEgw0W3orZ99pcF0YTZiKMCI4/+++t1bQOBubuIDvV0q7M1Q==","shasum":"dedae052ef420d173c7f6b8cb30f14fe030163aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609195932746.tgz","fileCount":195,"unpackedSize":19719123,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6mGsCRA9TVsSAnZWagAA5uQQAKRnqQuUQ/vU9ozJCDS3\nNTXxp81u55Yg74Vfntvt2d3YA5cbPyDQrXmlAfEuBQaDjqrk3FdEzwMN3B2h\nJClSMzVSPeYlPMvLtXC0XdN0kAjwHhsUasv7Ux+q2y45ROsa7B2J6zF75G+i\nA47RI/OLq4UdJjtNbwcIVFjHHm+HgcP55HdrOIq8rRDIDDXqOetYMGNmUp5H\nbjwSEzTRkCTIwnCq/TwhVk9XuC7FX7WNUvxzUuIgO8Fgr3CzJCO2f4HWBQ6S\nhg6dUlqLWzUKOeHKsuaDZzAt01qWTMrMIqszQNfyCTmTf+3oq/PVvROa+4XR\nFjXf8A+evgCRGK10PSeQor29XQblu/VHCBAXCqHGhzatrPMJofT7H51Yt5vu\nW8G1GwN5xFnTe2IGP8a5rpUdWZ929B9/LL9BnG5VxaF5WIyrZAOf6X2iZyMQ\nXRGQJ6rCpeCS1UJq9LB+8ViwroDidUCkbiCPTtrl8Fy6m4cvuuctSfTBqCQ6\npj81/eYpnCYwTbxOiDEjcff4oEH2/M0WWpVUkVhBZZ2u1kMlTRtOBDg2QwNZ\nB5DJa7ZsD4VyWeAl/lcgMZwbsUdzvO+Drdudx2wiwisEFpEvnanepLzquwbO\nAnAeq5ZotPevHfPvtfHgBpmVuUknrmBA9O8abBxe5Sgn7XCXB64TXNNEEpGV\nDvSP\r\n=QlNp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAiL0pT61g4O1oUiGn6lfSSZDzbDxs1APXmwLKPDYNtTAiEA/vCnuKuG9/3CIiraNrpbeo2i+hmVHxX/2UmTanL8vNk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609195932746_1609195947888_0.32182164951641945"},"_hasShrinkwrap":false},"1.8.0-next.1609199174887":{"name":"playwright","version":"1.8.0-next.1609199174887","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609199174887","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-MQQHTbaaC7Akh3t1cY4CBpvXutLTpfsBStDEiWMRioNz3tbhVwDyrY+oaKVObldcYuaTMUFeY8ljT9duunZeGQ==","shasum":"5bc261bcb7685d5455403f1257011bbdd1db7a5a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609199174887.tgz","fileCount":195,"unpackedSize":19719022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6m5VCRA9TVsSAnZWagAA9SMP/1s5pmXTkMg3OKC/ewyM\n8Zs0y5h8PiE1y/pAXMBCPCOq604XwUx3FKYoRaTgYBAblScZkoGRg8FaQqoj\ncAaMGzgoFZ5Q8A9MhH1a6pKWoS0eiOzARMcXwyT/nQG4+cZHL90iKVvdcABE\n6jgsCGR8hQRkFq3VFrSSdaM52TjsC/VWlNxfNfMS6zL/mMF3KpxVzm464uKV\no7B+CZ1WjkB8hBGR78ZluxVBjemY9B/end1ppQr5grNgrpUJUNgaUkSj1BZN\nL2KzPB5YT00LGhkbxKJZr/ytL6X3vngAkcNpkXMVohIkEwvNTZCX6kjL8qlk\n9DkSnI2Cz0Z7hzvCA2bazDqKfSVl2D4p1r0Eb6erGPxgG3ikrilP3F+vO3e1\nHSu/3pKToDcUpGF5F+e9UbQY0JARrNjoSly67jrtBLeIuLkO2y0hRHvMRGYG\nfXn5uxNLybzihktAexA77/NB9JcGO5Ra8fPV2VgHRQI3SuKcWV0C7ubPHwwl\nSfDNjZNiMu9uBvxxH13712PJcI659rpNrkxiC6d3kH6LaYgC3FkrYLXF1AXT\ncmbbQAzJzJXA2TKptaDgiGXpzJYIkCbj5pwqCEBjxeqBLhK04ie1qtTafszK\ntdEfWTRwkg8FGESYVjWZYSuD+eKMS986H7LH3ixXn4gM0q6TRJVxdASgTWCs\nepLY\r\n=QVN9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAoboCH6qnwcjKq/+nPfTvaQt+cdRwZgIIRHN1fOPFr3AiAKYlRYDXpeNvil78ggllQAZVX1xzxJkTvz6N36JsYeWA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609199174887_1609199188794_0.013138511890616877"},"_hasShrinkwrap":false},"1.8.0-next.1609201266539":{"name":"playwright","version":"1.8.0-next.1609201266539","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609201266539","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KPSQXnHtpv+QaR4+EiilFfCD2WTCjagU4mxhKoZkPvfP2cdTkj6cLFjTMS9tCqH/3634H0YMlXcEb+ypMZtGRA==","shasum":"254f852dba527472f3c687138e1f08cc912d5cb4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609201266539.tgz","fileCount":195,"unpackedSize":19719022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6naCCRA9TVsSAnZWagAAIa4P/27RgHJmMuWXvP1jx9+J\nObIwnVHCT3Yxymmc3JjiFYYrw4/UayHUVmUi4M5dEZcrtnDelCm5cfToA43e\ninnf1TDDxa9Cx/Rp+8ljE6bNe/S8yNZP56+MrLDcu1UFLaOuhs5XlWjDR4nq\nFz+54J6lOOwgvPhe3V82K8yMCtwicqN3+vdMn6NWxQR1om8b0/aUzV/dNeKB\nuBeYlldwS/DUNTR6JqgAs4L9B1vr1mSbae1XdqWFV3zWsBs/4SHsLpTgTQrZ\nF5DYsO6jEu4EkUhfLqr8ClB1jVZC9LFEjVWSyzuPxm4UOBkbGitL6Ua6W2ka\nocVrs1SsFfJmlKdDbolPYBJOekaGRX91tx6/85o9GtFMMnmuemm7F2QDWM+d\nc8FQFMwYJumaZ7/2GWL0Gyu4IQqlHf2gcBZ2FULsSUZZ5x0ecAwJT9MuZc31\n6T8usZr/GCwb9hQE+RK5+TFTMKSOGn9/7OttKZyBePOBAIxOGs90tLGEWvJx\ndeOviZHAOnKReQeNLqXiIgfcRIZQFi+fuVOxgPPjHmRCqTobQr9K6lTYn+IJ\nMFrSPyTVh71RYjB3RTqjTdSOm/zMWRKD8xbz66Y5TOdYCYoNSjAKGjLjssVf\nzKpwO+o2/nlYTh5VnUcw3xtXOiTRrxCmybRgc3xGDq5ImLNoQSz5CR1foQ7o\nENlH\r\n=dAaY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCljdGg3FOxjbFEKZLREYQWLjXmvPc5dXFMOiPoi8mXCwIgVOREQdmDJ4Km3BGFCWmO3D2yrw/LBxDG4fg1V7nGUVo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609201266539_1609201281324_0.24606529567503488"},"_hasShrinkwrap":false},"1.8.0-next.1609206070220":{"name":"playwright","version":"1.8.0-next.1609206070220","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609206070220","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zAWrXjmjhKYi3Gn5UYKv+gR59LKwEZ2iC4qHrt1L7uBAft7x5dGvISiNlZOq714tXJXPrat7cfrhN7Mi7S6q1Q==","shasum":"64d4ab174bab6a9922d8e7bbd5101b086db1d348","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609206070220.tgz","fileCount":195,"unpackedSize":19719022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6olFCRA9TVsSAnZWagAASboP/21rflzdbd+Vm23RMpW4\nk5n1d8VfCA2iisBR/JERpWle243clQz7QgTCoChfp5e42+QQMeOJwKPc7w4I\n1+nttccfUJEgr34wjEQvzrMUUseA6QbYVPP5x8QO0gfjlnjAcYPqgpD+5rr2\nDyjTimqBrcYGoh+IMKMssxMAfI1SeDeUnjQpAMOMe2GHOePBaF8gDxYiCKvi\nN3fgS5OYiBxtQU1+wLpyYpjwT3o62tpdWjEeUdbabvMAlVItTbQt60HNq2fn\nRvJm4UgappjbGLq6vjXlegswHFTwg8TCXLk19TVBxKq7pttwCvOXQ2c8WhCQ\nf38AdI4LdWlV9QTZnjVDpIzzCTh33SH47aXnYSKe6UZ49+uNbldrdS7ZBvD4\n5PXJXYRoYDu4vxxRw3bQN52iQWGRVPi+wVl/k0zDkY7Ris63QMVQd5tc89aP\neZecWrLr3HiaaYUHiXZcSgjx9eOYn5Xot/nDDulWenEIk0TT0PCOtrWF+zYv\nCvBvWWt2wDjhQsXwZS9Ssby6B5xBlkEPK+lbUA3lm4ozJgpy2g+92rR31xOC\nvHGfr7/A9xQGCJpiHS5IYb43Pu/Phx7mf8z4TqIEMIw084APXvKDL7mdJ+qA\neNV5QN65S846SRY63hNROZGvrrA5qbvlKkxPJfwFpk/JcTOw2UfBb/wrav8v\npZGp\r\n=R42o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnb6vL5IAiiECCbnoKVi9aM+1qVhXwvXVyvaurjgn3lwIgSAEGgZwx9Eoekc2TVpzKYLNi41rKm5waSG9ds9PAsTM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609206070220_1609206085148_0.2617323506563458"},"_hasShrinkwrap":false},"1.8.0-next.1609227871098":{"name":"playwright","version":"1.8.0-next.1609227871098","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609227871098","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-LBpEswGX9r3yQinI3YttNPqtC+tf142afCvNBrPyQBkaeimBEdVAcS47ZI5p4m1CnJQCIrEcepEYjUqScYFDJQ==","shasum":"3f82cb74026d5db62bb3fc52224fcd85abd14336","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609227871098.tgz","fileCount":195,"unpackedSize":58259425,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6t5yCRA9TVsSAnZWagAAbqQP/29fJBvVR5oehgul/FkW\nW7WWBBuzguBKTp4YLCSdofVkNqK8dlyzDca82MryI+y7kBu/mQhQ6gH8YrLU\nilU789CXukxRQVZCgthcHypUNe4U4BU6nT8vVhuNAyihe2O6iojienNLkKF0\ntvIIVmvS67P66q8wr2PuOt/LrCrZrUJW4CWPo35LaDw5gBxq9HhfG/6+9F7u\n8xMXYzX89qK8KRuUC6j5ozVhDxmgRfRaPirZNJYrKm+rqvOUSPZGkUVUm7BB\ndQwe79lWIfMAJkuOvlevqUD+Po6bPgeYEmCDgUy1apeWBhjoEkCPuxQpku/g\n2ZaG/IemHtYdDpXxcmZLEOyZ57LL8xvzTxtDP2ceYLfqxuu2gNhB5VentqJI\nx/5wT47uJMo0BIrkwcev/tkT155CmHcu4jwW+T0gEpeCBVbhqfQlsLLDS/wU\n0W1KwGIyrUYNpyWMJBIWgAMvHcYHfcHKSeJzifJ4smEHDFjynnfTT4SwByYA\nFw7aQzmjp8fdG58Kpsi/G/GzCxhw5YQ2zeTjhzzwhVYeWx3gypOEyeZFj+uA\nv3izwX0htuNkRDfzAr8cCn1ZfY0EVqgFrE6WGwzCFLUDXmhSvJulG3cUewdR\nkaDXKdtKJmSkab58ZUxNJlydFeOuu1h2x1jvp8tSmnUgcEB4+S3tKzeV9U6v\nDtoN\r\n=JwDb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+zvQyOwK0M4ufdprYWki9ZnpYcjKi1UpWW2L31XHSKQIhAJe+HPNJ7AfVk/+3Mn1C6eRhxq92J+Ml3Rag7Us1AOU/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609227871098_1609227889572_0.25988378995191574"},"_hasShrinkwrap":false},"1.8.0-next.1609261191458":{"name":"playwright","version":"1.8.0-next.1609261191458","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609261191458","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Ojm3BTXY4FTZTqi8vbx31kI/cRdvo5JG7UQns9siJcNJljTH16DcVUKmAKpWNuCYIgW8GHn3gaDAqeMuO/hFBg==","shasum":"925f0fa1b813e8bf46001793eacd6f6474e6e8d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609261191458.tgz","fileCount":195,"unpackedSize":58259414,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf62CbCRA9TVsSAnZWagAAk+QP+gMrQTwTSTjpg3ZBD/O4\ngMX3JsSuNSCJ3eBZNDg/BZKqvAq8HbJ9RsF20bpBDAYBsEGa3zrh7qttQ0fW\ns3+JnFcCoKGCDWDIO3AMecIPWExgWXixinW3yi58iqI0t7Iu7MaCUjLHHrrt\nfBFJbhWgz5wM1Fr3o4k28wzXJR2PPgaMm/kIzTDZfgkrDDAkEUkUojY19LHv\n9B+mPR+OkyTbwGsTdOBlwCgAtr+HA+n1cwi7gt8Sh46J56ZonnV8t9Xkm0x3\noPNrJUFXZl2M8w0TwTkOt35rRDKbtJ5YZOjpu2jmudh/4dMzA4DAs2QkX4KM\nDgrcsH5Ok63F4DOOSEwRjXgyWiRZU7HOyCt4B5e//MnyH8LejHdmB4mHPS5g\nqQhdI4cuoG4ARe1NQV2wwL5tccQSYIJ7S5JpSM7dt+NJreQEK/DLl/yHJqBL\ntf9N7Er+YUxUWoYFuMqDripunTXvKlGBDY9eSMefntB32ho4RbOIpurBHDkn\nvSWaJ3hixD7LDYrQ1MVd7+E/BNKLyeuzmvf75/9J+lY3O/3DZOlU/iZUfEIS\nilOfhW6LFbIESF7LmCkQ0KrYRJad5MRWTgoC+mC/djgg33O205rRQzW1pq6L\nhE6EpRMjL3c7nMHQ9xznFTkUEfq2KmqlMe+YWhWHlU/Wb3Fq2mYouwsvErVP\n4KXP\r\n=ur/s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzzgswXheCOfdiMNlkv5vzOOjbD6pghvzGPdJHtBMKHgIgOCqkbwnaFBkJgXGD6FoUIsqURPuyV/v/Ln0zagdazGc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609261191458_1609261210345_0.5049918256080317"},"_hasShrinkwrap":false},"1.8.0-next.1609264893753":{"name":"playwright","version":"1.8.0-next.1609264893753","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609264893753","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mqevTA8Sl26en/3jEI/vhNMNA+cG2xTNiPYrJJI55TNcrGajWsvVbY2Dm3w3jd0xARTn0YE021HUkslOSzFsXw==","shasum":"64e13f79ac78e6c3197cdec8113e5748da05128f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609264893753.tgz","fileCount":195,"unpackedSize":58259359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf628UCRA9TVsSAnZWagAAW4IP/26GG4ZS/VHnWAOJHzXD\n2Q8zOPRJ9wOyO4yrJMJQCZv1YSBRAzc+6zYHF42mV5RqtHIKybAK4jzw/Kgh\nMePjuTlBdHS8/7Rg5OWdI9h0ttsSEC3hd5B0xxK+V64HXcoDev355ZtmqnlR\n9zr7W1O/PGabh2q+A2wGMAYh+ftM4BvDv4mAP1Flj0s4seCb3rcp+DZkXJ6U\nynV0LTw7woEy25vFSKES4Zd+GMXK1AX2tqi28ao/f5tVQe/F8omQoRGV+PCa\n9jSyh40laGXed93J8/tLVo+yepyUkEKTHzb02IJb+SXZ+nYI8cSHk5XLRTte\nVVk3laTEWuCZTWTj1xZeMw3TP+lLnJb2uCfuiWjP0veD+dkfGCS1RqiAgM34\na/fqwy9ey7/UAExgvei13M6yHEh3PS91Z355vDvR4SoSSNMokviSFgCfVzql\ne/q9JFuMTvM949/uxRjIykCdsRZtRJisf6dXoTFQUdjhiyy+HWSR6bkXAM4a\nmerC25JP5qrYjKcSu/KLq2exK1gQcx7jBXFslJA3/kJiEN4t2RdGqpBYjjps\nWcfHafqndNmA3Ipxtsu/LHwAjWl/MxDIeg8TMigWiTukQ3kM/4uhnmHHwE7u\n53m9UuyViL08Rlfq7ER0wHR5gJL5dFzXD5IzxRLcHj8MYnjwkqGxMRwyrvMT\n8FEJ\r\n=dfia\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMPKtISj8r6dAUF3+h9GkDHZmyoUHd+a04ap7tJ3g8kAiAlLcw0Otcuou8Yfe306GyUWii/5Qg4Ql/mBNS8abJ/XQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609264893753_1609264915529_0.8875054454625699"},"_hasShrinkwrap":false},"1.8.0-next.1609272885864":{"name":"playwright","version":"1.8.0-next.1609272885864","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609272885864","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KVibgAIscnPhUUZmbzBVtYB4g3+g3NqaPtaN4vvAUFH+ht4gpKTq4Sls2y1Ou0hihB4Pghtc4Que54pi8D1VBg==","shasum":"d82180427207d94d0a711dc250bd88ad3ede1b66","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609272885864.tgz","fileCount":195,"unpackedSize":19696312,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf645ECRA9TVsSAnZWagAAoUAP/iIQ/uFTZkQTTqcLj7Cz\n7xnulUf0abWXQ+2SPm/QZ+ZMngGP+PhPB7vE4laN800Qe+zLpCUb+6FFkHE0\nyYoOn7FqeFZ8uwmXXIqjREnR5c4BkZk8s3E76Nwi9NKI+L3QflY+vV41a3LE\nqSOGdGUu7pIy36XLeYC5ZDUoh9hfwUgFUyqU+6+d19OKjRlENx5owsZrnRwZ\nwqa/wrFwcd4AkbA7Jp0CtrlVI0/tyaAPrBYjwVMnu4syYbX7ZywNvUnaPHI0\nnCV0gnm31CwVwk128CRsr1srNQke2aapRLuFKEekwAALMqm5zTayLXJU8tK5\noEnVHqfAiMNv9o0dMH/n94thSZbmxqMqOtorEpsuODp0kgc4QRJUQla4SBwU\nHFwITSJhhyTYqAIjmgYyu7jfnsN8tq9y811BDk/1nNFonDlLKWKQVQtrHso0\n8G3NZvNtQHcvBzG37DGUZXxCWWV5Lo87avmiAY5j9sFdlsJ7XaZ63N+5wySN\ng/bt2ZWydOvrVxWp4csvl7NGnRJX0EAN4qHdAMbeJZPX4azcjytAiN9nP6vJ\n0ECNrljuwgsC09nL0N/dKLshh0zxmzrTwKs+E6rr6jO2AIBzyzMc1yOpVbIT\nBzxEINc7Dr37ebU71buzWuSCc0wELTAUh4R1FB9aR2zGqk8vvsV4l4ybCOqK\nbqul\r\n=42d2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+rVjqqyKV0QG+Geszr6DkAMHWomzD+qb0man+EMyC+AiEA0cJr8hvIi7Qyr7IOv1wWdYqf6pB+JovhdXdbast8pyM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609272885864_1609272900177_0.07196485590386281"},"_hasShrinkwrap":false},"1.8.0-next.1609278700638":{"name":"playwright","version":"1.8.0-next.1609278700638","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609278700638","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-eQjx8I2UlIDecki52s5eGV+M2BA6SeJfzYmNdjj632cYolpAT5gG4IkFw6PWG3YZp5c0oGgYuv5OLGTWiTgdXg==","shasum":"fc43f874ea9de861eed4cc3b56a1870afe6deaf9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609278700638.tgz","fileCount":195,"unpackedSize":19696312,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf66T8CRA9TVsSAnZWagAAbcsP/ROz4gcB5nJoZ2deSYUH\nrwUppttjHO1MLc/Y/7Bl9cTn3tfC+fhsBpdOCGgPN8BuseLDes+j31oYRKgs\nkT8IMlld3UqPAjD7yfyUJzmAlDB0QzptNZ2VmGbRyzrjE2Udf3FonTm4sDli\n1g1IA33wphsBQaubSxQFgXY15p5zsdF97PD+TgX2AK0djE/hBxo8YVeBL3yT\nUrbusZG2Qs15Q9xVrVtnOGileARfxnltvNilJm38v46F+NLvmU0HDOl/bPSA\n523Z+ZD9rQ9MNoCSF/1Ith4WXzO8qrCc37DjL8jZKZsYP3rsUC6acF+9jBZn\nc3vDs21FGfNvIux/muC4LHE4LkCgf3P954oieQ94+XX9pmOKsf9G1McmJ/mp\nMAyJeokZFPORoEdsR+s5QuITj6R5xLkviYwUcTfFrdfYh1W+i0pIJo/qu+KF\nkdhzLgFNfe/lMsMP8zAICn8yZQVXkuhuwpf92xxfb9d2PFAnTe2ryQ6Ossy8\n2FPLaIswBWfRo+dWLD6JP7rYiDZJ7+KaUnc0g8wmN2Eozt8Dv5DXtqBQBj/U\nGs5PEuXeNJAWkl5JhYHsXLJKIYE0FS7C+xpq7KycSmPzHtXS11cjXM7xupAP\nLK+EPlCqlsQhC8sdpAmp2Ds6mgmW5Yg12bcm1yY9awazZC7kmOCMmLrpga6O\nzFXg\r\n=GrbP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHKZOIPab9c5H7ksd+N7Nl+FvDZayBwHTWpi3bWKsR8BAiAFgYvvCDmwXbGX+apJ3JdI/P8IF5Oo6EiS4/lltIVvkQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609278700638_1609278715253_0.7162172707353127"},"_hasShrinkwrap":false},"1.8.0-next.1609292210255":{"name":"playwright","version":"1.8.0-next.1609292210255","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609292210255","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-D7a1q7VP6LRLiGFckLgWi1aMSdcE5xIPuamqae2wP1kAhtkU+88TgHuAM4VEZbkd5vHKCJKdScog2hC6/uskVA==","shasum":"b20875c7db6d3c8ea13c3db63042cd09f1c39586","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609292210255.tgz","fileCount":195,"unpackedSize":19696312,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf69nACRA9TVsSAnZWagAAHTEP/1U3owSDAXiVMmz4wiP7\n+3LL8AclJjU9BW6Uf6rhlZk0tv6ycRAE4ZgSiPj7lxomXjeVqZpW9EVT++Ma\nsGRnx5dzNB3AoELmDTvmFJ3Fke4ruMFzhP5qQt1pjaiHWI1BYqHcDSwijyFR\nsmNjnRcBQMcsL22/gJohpSvylIFKkZCQ5dBTTf9CZUdRFKzwGNtQFsqQYkSX\nhm6C8bPnPTh6boemDJvAkRgf7rKhViS8LW5PY3yNnwN6EWAPbHLu2bInS/Ps\n2kES0QP/bWcYLgk/aYzgY1jXKUSW25hpUt8I6XchWwQcHfc5XuH1UE7pPAq2\nYRnVDebUO0KLaHdAXBmaZY62cVv9pFWjKDSd1HyjSDJGJTKXoyjNjYMSRfZf\neCH4WpqRwRTxGe0ElB0dPkFGn0Xcc5Vk7L6/54aSUIS8dhe+L5VP0eLarF0q\nKlXdfbJ4TfCcQS98SXWjtu2nX/GXxiBbk6itWYpgPdUH6OwSjKL2Lyr4LSr2\n6WDFwl0BCrVqiM/eXJe1FZsNnrw4w8aHUK4QRq8zBdbhP6JuuueG9AmMO29G\n4p/F40K77o+SBUA3I0snH3EX4q0pOkK2A2h8BgrOebSqn2v3axiuE+wuuKx0\nv4dZ9SQhfdcXi6/AQvDtCPGIasimu2xzgCzJCj4x7oEilhjy8SpKQzRga2vK\n1Nou\r\n=uJT7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs1fqZE0xqrgj+IQdVruIsNztUJhPxG6y20vp/O4fVQQIgMbeJWCYF7AAJCQ/C5bgQb3fswo9M30FYEs5QS8Xvz+I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609292210255_1609292224160_0.3768016077514369"},"_hasShrinkwrap":false},"1.8.0-next.1609349889666":{"name":"playwright","version":"1.8.0-next.1609349889666","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609349889666","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-l9Mp6NUtBHDjnPw+FfK/07FQjJ4dI5C1V/ttsjr+ARJdi+IdOhzV6Ei1PNE4iKgRKADnlP7x1AZM7/28iRYy7g==","shasum":"204f600c0e97e89b2e08f3a83f6f22665a37dd57","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609349889666.tgz","fileCount":195,"unpackedSize":19696312,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7LsRCRA9TVsSAnZWagAAr2kQAIiQwieON4xWrraZdzy8\njF3RRuJiInmG/xwCvp8KPYYH0bolqbNr0Tepg2IkXzl4ndYTFYxTbcYJAyc+\nbRAH7NaJKzw3WfRYxVmCafsuZsTvT+07TI9PKObDmfj8uSez+Q4pIKCA77vX\ntnL+RPbWufGWwOJh1GxqjucPnhsGB+yL967S1I2mMGe2wT+CWycUZlWoCxLS\nzEEnywH0zKxq6gi6elKPQzFycMBHXNkj3AanPnsLQtHD4pjbacWwlZU4jzmT\nqyvUIB6Jt8FYCHrsc/QA/nw+0ZT8yJs4ykNpAc7HOd2FCH3grwecZQbAAx75\nYWV6vZDAOBS48C96vO94KISB8OkyYK89m0Cx9+A3IkSFxi8zTFb8dXfP3/Vx\njP99SvHPn5m82yND+/extSlhpjCZGUTmb5INwy3EM2ZRaKCDMZyMh5iyJvU5\n1NYRVO7hbVQAnrgUl7o1C1i4uxQ/p0dvv70e/m2YX214znoqus8XDZpCoQ/2\n4U55tHyGO6L0jBgjvkbrOK7sNBeBnye49Tt949L+kPLPIPFisa2rOIWsBTkF\ndyN87mfPjK9bDpWEBBMyOv9j6UwFvD4IzTZfF4w60fbYjjMRuKl2dkst55Z1\nLLpAkfcYhw6dDEVuRvE9ESnizx7AynN0G3JCUX+aDPHxh47bCG041Qk38Rmr\nVcil\r\n=CctA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF8TIVChPdHWlGHONMy9AqAUK+QPXIu2fs73oEPAe/r6AiEA5yGIApWABmy9X0/8EKIjJrnDhiAvk5m6aC90bt1Y5OE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609349889666_1609349904233_0.24034053041571912"},"_hasShrinkwrap":false},"1.8.0-next.1609380399073":{"name":"playwright","version":"1.8.0-next.1609380399073","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609380399073","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Y+IKX8e8T494WyqEYTisuHVaEMKlJ3fuglYFXAJrdkgh9FfaT+fqXbUhAwM+hhtwUlQq/2N5zt/GagT1d4v0KQ==","shasum":"3d60ebaba995dd0e42528ff7946b6945629f4914","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609380399073.tgz","fileCount":195,"unpackedSize":19695458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf7TI9CRA9TVsSAnZWagAAxMoQAIL8rFwb99d66yNib0sO\nV9157hjPhubUcafA/p1zQqNkE5i5U/8yveXpZ/Gle5gBfnVpQnmeO8KEeNI5\nQ0WAzZRpVQncgVuKBy5nAp2ZuMv7YL/rUJwXSkuHjxr4bORmctHjaOiz4Ish\nPyoSypdi5OcGlgjSdZwcsE8o1gL8hDcC0OeFxoh2hbmzgozG1UgCbAkqUApL\n04JTuc4z80chK2ExnpM18dEp6q6MVzvkS1yY90dcbvjnNFOM/tGPTcBp8UdM\n6Q6dq6NRePRuoF1rYp0g6kL5iwPnVz9xujEs7KW1aHmWKkJ31sv8L6xGMvAM\nbyRjgI/V+xqdCI4yf73iLqkrAkggJjTZ9LIDYcObZM3gG93VMYA6x4Ugz6oh\n0KS2zBzUGa8NYmAyM5FUrLr9Z+5/9QQTM6YiWo+2TjseuNR8jJQAlHG0uBfV\nbnMtZXRUvEgBXObdGvbsyQf6pPFreYsT6pdGHrQ0Lu5bXW+g3Bb2zr+jrSER\nTb2OJeR7uoXK0L3kavbPtdKI5Izmym+NI7wtNgdRmdwcNIqdE5P0nrpJ1WpW\nZka8xNppmEmxx8h/JMRfT+lYGv9k7hkNYexhCrY1ycdyNJCq8Y/sliTraZW1\n2BMFgkruPT5NCFhqGHhVdeDjtZwXV20Yee6lRxBTMDECz6tzpGscM71D4wB4\n3q7w\r\n=VWcY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQWCZ2DfsbUKdHvHdOK7jGgwCR0/GCBOCNxTxugRqZ1AiEAwEFvPZ1psXNJt8UeNPAxkuONWJMhov7wncyGsPIZegE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609380399073_1609380412756_0.3527376366662913"},"_hasShrinkwrap":false},"1.8.0-next.1609543169656":{"name":"playwright","version":"1.8.0-next.1609543169656","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609543169656","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-MlzWP0h5eiZzZbp8CNYzulizp8gjdCncAoQN9dmoHynMoRRxQsIMR7tORpDjPrWG61o2jrJdq4e7HNbNSat46w==","shasum":"ee769f50670d45684d61def8a699fde5a655bdbe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609543169656.tgz","fileCount":195,"unpackedSize":19697462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf764RCRA9TVsSAnZWagAAxEIQAJAGxHGG/D5q9Q4uy+tH\nBU4eYVuFv5UuVTlnFuecaXl5E7v+ZLOU0iAhSCFn+kzZmv398fd4RcOyBPYo\nRyqaRZQMUcJP6r4MpL6nwl34fPzoCucBRuWuxXo59l0tBg43iQ4DJQjNkoqR\nMjiDwnhC5kz6CL7n/3R00KubP3/2xgwVD2S+91llCFvM1BBZ4CJC4CpWXcHu\nzKyC9QjFDQriuAE2QUPcr8ail99QuybGDAdlyx5SzUEIdABmOsUSkTbLib1k\n4fzx9V8dWRqy6xbeTGNrFCrw6eywsGDZhfCHcwLBbGCoxxQSj7fP+YocXoWN\nuMPaBKpmonwj/jPPX3bIvBubjim+UkJ2vDitQcFAaz1g5Pg/xTBE14AAZQiA\nCqzSL/iC3BoUQxUVgMN2CwLN32g/oZ/rsYxvLzgNhoAqKTcuoKn89zJp/Z5w\nvZ4oZcKz+WylvF26DqzT7BQiBWBelfw0Wf61pj7bkIyDwe8J6I2Aw+er9D4+\nBmiVHuyz0RpvK4imoUmB3l2Bu5XtabSw0zCVdj3TQUlc7l89Cnv+T/PaIiVu\njK7RRlJ73+3edysKPZIDlKvZLjyhMhJOdSp/UtzCZOEF65z9bx61ubJK7BeD\niu1zMiZH8KmzGCusnFrtWJDyZWAVGHmalgoEB/GwckYOprxYZnXF2W+1Pqlk\n7PtD\r\n=WHy5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJ8IiHRlXG4+c+d5ZXeSKoKXJXwhwH0Bo45kUMdrPsHAiEAlCP2Pi/31QVYsGCHYx5y3tOW0ymBK+iBnuBS6nW+D4s="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609543169656_1609543184500_0.36766319470302267"},"_hasShrinkwrap":false},"1.8.0-next.1609692561730":{"name":"playwright","version":"1.8.0-next.1609692561730","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609692561730","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jvdfekwK83N8EIyxcAC/1U1jyJzYZGczEcq5HDnrEMnfFMC62rq1Ru+uCYSzNOI0SNAoLhT96ERizNIpFSVjRQ==","shasum":"17273155ef01c8cf02114e5f55fc576d0a8cbb48","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609692561730.tgz","fileCount":195,"unpackedSize":19697462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8fWgCRA9TVsSAnZWagAANpwP/RYGSLBMEnAt6Kb1zDxZ\ntw6pFjT48pe6UXRaWIiIHucQ3RQIBixsQcxsVCMjHsAZGeP0OJKdCIB5lTat\n32KkHBO8GOV8lsYCoQeXzFwcuf+U/a74p4nyPILkBFUSFmcrEEBdT9d61kZX\nlqORqi6p1VV1KNQ+DKDAsWrImb5++RtlPcC0arc6oRqFFoghLFERip0xHwfv\n5HkBTihB4rkL16lMlLlMTZTcIpbOT8vwTS4L3r9cF2h219Cx2M69694kYJQT\n+Av12ARK/PxrDn3tj0oTNWe7RcsYB2I7ARRylt1lMX3uWZqW0U0IgSr80GA3\nuLseq1r5Gvx/DCo6X6yull+p0vtsVsFwUfeFAsI30r3lvqm/jA7hRtOMo4eu\ntF09T+SJfMQxImB3hPRkrtT9pR+LYl8+ixDWla83CtlyunhHkSIfvtHJ2FC5\ns1mbUGpiJi0CWePrfVwAot5XV52xqvPhjYrtiO1YkVJCoMVKmdXewJl2VrYD\nJKeeJiU67iZ8JrwdFw7f4FaDRUvQv6VMYpAjTR4onNsb5WA4znp6BnQYS3A6\nZveFoF7GHj02x7Ze/YGbwx/+Qn4OlPx19+nygSoxzBo+Nog/VOwHEmBL2hvQ\nEETaZvcFO+xem6jRaiasCMJimfyUegBDQ+FPreorpADLZdRl3OhNrSfzfoH6\nnY+Z\r\n=xvuX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGgcKeySgjMil3DDop4QV7iqWDyi7lCajrTaN4/ZFOqKAiBaTQxDsRatyXZN0nJgFAc4mqDClqaZ7AD+kJmaAaCkSA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609692561730_1609692575733_0.09785132050760903"},"_hasShrinkwrap":false},"1.8.0-next.1609786292297":{"name":"playwright","version":"1.8.0-next.1609786292297","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609786292297","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ss7e6SwWY8kaNBCYceXdhR38uhxj7RWpomLpD821eP9Wgn0uqpMzgVmkwfbDkEYdIL1zXBIV94PcAbJU2POzeA==","shasum":"8085760c0d01d84470841633985f174d5580a00e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609786292297.tgz","fileCount":195,"unpackedSize":19697462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf82PBCRA9TVsSAnZWagAAUh0QAIsF4G1KkHZBrhMyDU+t\n36SyxH2FX4xHjQWihJlYK1Cnv06Ea86qrODOsgOtY6IDXcGPmYxCQgXObGJH\nRxjkPtcQE29vVwrs008Wt1H725Kk84WWClZ79fTviNmF5wKC9j8XOVCrn7uv\n+D0DMaQUy68zt3mrgBAxHD2HJuPeXCvys9FvrDAWaAy5CPnHsug/A4bFr8bi\nzEKJZccOUw7RxT26tgWaCNyZNA9F0s7ywWtpGrb0Gmavt05a4fMJ4nucU3Zu\nHCL9TzBOGRjFoWrEdCOR++e+0FTT363xnSKJR3x1IwzIZZqwbLoXqjxChaQk\nT4CoC8LmWeloFubK8dJL6tVqQYFJ4RW6vQGu8nsJyV7gXHRijjUeS6DkcFw5\nyJrDdO+T3MHhNEBIeqKbxKV3qxF5OsvUdn2uDzm0VJWj9e3pspgkLUb3kYsY\nKV5wMDKGF/DmhsdF236pEw7sm+rhTdZDtexZqVT+l1p2WAz7LBVYuBPcvtEq\ntRlvyj7EHfyhIMBBve4Jtg7beO2i2mwtqE8FQRmz6B/mfWVUzGMFdOEewAzl\nj6pGmaNgsItBU6dSTDMBWfBBYuXD9EBmPooFtmyVH2sOV+TmLdyqI3A+tDMj\nDVVgTe1Fu52RW2xsd+bdRu96xkodAG1wZOMly3bggrfEwVPd0IvKetRRsw2E\nGjFb\r\n=9hnV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFVyANDzyIePWb455V0+a9CuCL7ZhYpoL9Nj+SF3mKzAIgP5Hf+aepFo+2yncxViK7JCSt08unqgdMh9Qkl/CpG4A="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609786292297_1609786304668_0.6776411450850728"},"_hasShrinkwrap":false},"1.8.0-next.1609787026234":{"name":"playwright","version":"1.8.0-next.1609787026234","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609787026234","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-STs8nskQy0fR7ubto+ltdhseBcBuF2othxrkUT7+Y8lQaNcKLMWMz92xPMa/PwZrOuU0/EClSI7Tlw6KH59aSw==","shasum":"f95dc9f12f131d850149e7008b6478d1c35764c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609787026234.tgz","fileCount":195,"unpackedSize":19697462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf82afCRA9TVsSAnZWagAANbIQAKTfLM/IUz2I5V2+4ZRk\n0efFHNadN6zNV1n06zUwBB8rElMVmx4DPY2ddLztKwEu43j2Cl332ZFy/w97\n60T3Wyvf3sq8CktMbB8VsW3w+dedvcy7X3YtOWq4CkXFboreIv9Duj/4Tw4X\neZhrrw61nZ5kTDD2rXd0E9BLc/LKiE6VzadlVU0IbHmpT02QaoDaXFNeGveJ\nFFHTjMxSW/E7iuryJz7eeGPWK6Vb9TgHDDr8ZuFrCMDmb3bKkmvNBjj5zuzb\nuXKMSTMda5uiAB8zS3kf6lPnFMvvJl3ufNZb7JkX4gTie0I4XsRf2qs0WMdf\nZ+mLlfGhP2gewPLVVSGYR77Ma6nVRTHXjaPeHdKy2jj3d+QBtcC7pSk/ekxj\nX8jyEFelNzRd7bo3prJgDS5SxkWU7ibbNRJrn16Z4RcNv9+LWpNPOUHR9DK9\n5NjLzSX+nr/1VbJ9qbw4BrZJrbjD4FQLwuURfsI4QB88gzoWLqGFezMVLhXR\nvM4ChrfLM/Dd0/ByZyX6WSCb5D4Z05ERcax3zHSr1PmHcNQE7G3XPblI15sH\nWgSKUq4JoC7b4FJS+afKS0J9I7HDvWJ5O/MqG0thXMOiCgkup3qnHxVglExc\nXpTM7N4tEYi856omlSqthc+7zMo8rlol9LKZEcQyInM06w1/yi4ij7MSuxuL\n/md7\r\n=S9x6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyoHtPq2pQSXManeGTnHgy+EHMcnmcJnSg8Pck440FOAiBXuhW4Wb0IIhEUt9JzFpDr0a1Ow8x7YzcjfEj/RMr5Yg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609787026234_1609787038565_0.34577177972977013"},"_hasShrinkwrap":false},"1.8.0-next.1609787562000":{"name":"playwright","version":"1.8.0-next.1609787562000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609787562000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-CK1xHFEET4Fjg2D3sVmHQE1Qdzip0q5YpKE592sUfsmcClxYNFa6Zjnm51VYeMo3I8jwhHesJRNTlWpQjxdgxQ==","shasum":"e85187de5acfcbb14c03e2b8c192d53391fe6b93","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609787562000.tgz","fileCount":195,"unpackedSize":19697462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf82k/CRA9TVsSAnZWagAAlGYP/1MnRswNaPy4aMNwvVZE\nVzS2VTeVxMEYwBEleKMahBvdX8MdwKmRI2HF7pJgYZAIuPM50CWHys6bblFq\nQK7KvQwCW/yCmv+lYAHXDE4ZiPObtpgKHn0d0OHOQ0fspCEVEAgm3Xu8nVpN\nLS4/P9jIUCn0KxdONzyKsZmnVUOS3ygcntN9SaBcCLgHS2RId1A8bvXD7Pee\nb/gQEpfCPkCOd5B8iYHbsyIGa7FniC+LRYR3X/rSARJrqvh5OdUC711aKV2F\nSWMYZFftC/H3lvhqtyAq6lvnguKEGnIhsk3YH5p9CEM11IiJ8Ace+pCLyzOB\n5HRdoP+fzlmig5CXS7qEIhGShrQHMhYlWbQ4kKsUb9BTdBgTUQKofwNCA1Jw\n04y/Y2q/a51Yc/bIRTXcxx73MXofRYG21RSlahYOBGX2NPIyaUAUPQZGBPzE\niHBk7Rg+1sqg4FMQ9QhjbRGeyXy/cWtEbRUf7T59lpucWugGYxo0f+3lwgWS\n/+7I+pz7ZZA216Pjl5TSST5SL2B0IobVA5H4lg5WQnyxRhL89ajP2rFqFzxc\nCWl0VTYQdvBGKKdmzMHw9QARrJ6UKOT81iA/jhLKo0OEYlhwK8dc0ZK/0tFb\nhpPH8D4PBTLECORAjaIwPF+e4DucTur+u+IZ8SdB5JuEZjSue6tqhBIkSAaU\nI4yP\r\n=Dl/l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0by/nep5e3Y0rh/uCi2fOx6hWMsNbkJXv2RnvUgrwZwIgC6FFFcEQQZbE4jlA30C1vbO2oGqhci1V256BD4t7fQU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609787562000_1609787710838_0.30342649359056395"},"_hasShrinkwrap":false},"1.8.0-next.1609797295000":{"name":"playwright","version":"1.8.0-next.1609797295000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609797295000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-2qEYcAnDeD7wt6VqtDGYC6efLk/TdALrdZtDsOhz7MOzRzYsS7XEGzLh/khQF2rpgHWAN9EBh/pRrKDLNGMHow==","shasum":"eb8d5e5d6611f1ee75c6a6d69a04585c110cd2b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609797295000.tgz","fileCount":195,"unpackedSize":19864179,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf8481CRA9TVsSAnZWagAAIbMP/1WQBAI+Xl2R9D5m0rEL\nfYZw2g/xQr+J5yBy/ZL5kspmuKbTDvSoVZE06xwEp/8QsmQenaVoqrb+tVQi\nkxLrB+zAzQJLPiKQMo/s+v/EilLmP0qxZ1txVVSViKbyBl5jvFTP2WOsVju/\nn2EIDi/apyYkGARcir4Gxc9/EDfWhhknLLivK+k2Ox0LVAPrZj3RduA8tN7X\nR94A0tT/MMtnkTFaXzHruNSr8thKGLjPq/NJFCzcEhAKsshcyXprVKIMiUs4\nbeV4JSX7UeP5VKlhc1ub7nmj6dCjCqxac+iRDLoFCsKNm9tl675kEJfPH41Y\nUY86PmqAb/GzdArhElX0nEnhzEx1k68YWkJJAUKhH5W/9UszMCOsqONUaSD1\nvZNvYXyVQ80hIbtgg/DANneOjdIo09pLtUabZ+FlygPTqPVU7AOGsnSS4D2H\niaFOrUwMGK58bipJHjrdW27aD2U0Ji1ZA+CKotqEhyd0A6Bz3dngQGn2K03b\naSZJluJNq17isGWIHXyEqj24loZhVe5aOSMEOUQUfffKSe/+4XMRnwVt6DGs\nBnJmEiUd8PAoFmpm0EM/JEn1rA9KwTj80z/cQQvDAF3Ep9iJ2u/nbL7+3dMz\n84MJhKpmkdaMeG7IkhKvmkom2BcutyBC0Jj7KpDEUgCBdLfTeYeAc8iDj7QU\nejyF\r\n=g/jO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwpvilkAN1n86LIvtgfyfhbEHoeyqRNqVK9f+AsSDI1gIgO39AQnt9XVx6UHyFD9K49vwoQt4bqQsi1K8mI7E+iWw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609797295000_1609797429069_0.5276669900443975"},"_hasShrinkwrap":false},"1.8.0-next.1609803151000":{"name":"playwright","version":"1.8.0-next.1609803151000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609803151000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Lg5+Xm3m5G2niYORJtHbI5qmomoKJNr4iN2aZt3yKkt57VPfQ+ebKMGXnJW12D/gj9YJWmh70SpOJxwrbEyggw==","shasum":"0bf92dd007ef1463cc5912c6ce5c625b5f84879b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609803151000.tgz","fileCount":195,"unpackedSize":19863751,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf86YcCRA9TVsSAnZWagAA+LMP/iszvWP0PXZCXMQve6di\nZbhCqLrFB6Fzi1+MLf/MWSW+zNJZZzZT4y8RlFH7Pj0txU9PQ+LaZqwJbl42\n1K8O1lE1kjT7fiWn84iBUhq400sLA7AhDmuQ4wCFoxZvyzLhI7eh5PP8EfQc\nISiqMObJJ8a1ywAk7XBMLfx6AnbdMaZB9yoio0ae63jmjVLL8FqPvBzMkGyf\nSX40ZFGdA8uht+rRxJ/UVOLtg1e88dl2ZrbBXwceyW+4vZJH1acXjsb/RfOe\nOTFydA1glFEwxHGTh4ilC6AN6GSqXVXSFsLeexiBxu9Bjw11BEHPrb3yr2QZ\n75EmOEsmnSsg8aPrVoxZE6f4Kbesw4Z08n6KYEWXsTUhOJiVmwQoaD6suu/A\n9MSsmUhkXmPuOZ0cXrJ0E8TLKnCv13va2JMQxd6ySFrxWtS+NQ7p0KqMAMTb\neMpuFofVvKJiOIiBf74ihkFEB1Fl9RA/WMnE17+HVtHznBLBRR28LqtkjHLN\nUIwq2hJEItSHHhUJ8i6MV8T2bLmXbxRFGmnzrwP4VtZaI7oWRUeWR7EU3bAz\nH9hv0KuB1JvTxR78/EkdEBLhrhTeMhMEXcKYC2S+WvzqFtvOUJ/6sawHj7BA\nevamjKGGdS26ClJ/LV5D+YiXjIqd+KnEszddi8/1sCcRX3Lu7Zv6/NTMINHU\nBMS7\r\n=NY3e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoVsHuqdssQD/ny30sJoioxkzeFSToIAcBc28m1viJ3gIgMsFg9oMhXbGo8avqesSr87759bMrWUdHZUM65lcGeLc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609803151000_1609803292259_0.357692450840994"},"_hasShrinkwrap":false},"1.8.0-next.1609811963000":{"name":"playwright","version":"1.8.0-next.1609811963000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609811963000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-W0hCF3aHFoNsLrP+XrmqiaWQ9tFGe9pySYLG1zLziZN6slqBds9efN9klH/jdq+//SDPfFN1emWQrQCa8Ur8SA==","shasum":"da74ee5d4a5e56bf8964ed72d74f46bc94f74ba3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609811963000.tgz","fileCount":195,"unpackedSize":19605073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf88iPCRA9TVsSAnZWagAAH/YP/RnfRm4zjeEJVwiIURCa\nyEvChNz8+/z9Fw+kmDJZwI1ml+PIeyhCw1QntjDjvQmrr1vFjgvaGVXlRcVW\nUnrSpWwYoWn5y64x9DoGZ6q2c/ETjTHUdIeFDjSrH7dvtXO/mUBXAkvtrz2l\nrS78ucma6JGIMZ3i9SMGpD0zGANKvwx1KRzobMXlY201d7nweEQWqFB+fyDn\nyAFIP27f0e5xKgCZPJVSF+TKWnaa6DeGcpWaZ4qy/JGlnLqLH2h6/Ywf/hP0\nh49nu01waSI7U4hs7p8rdD+HrzrsCS6PAhS+2iAo/y6KrrWAnNggUnN204hK\na9BWcJTASdQBqHszgB2/5qwpY5bEb8IqOOi1Xe2qIh0QZgIK1Jix4Z6VoFFy\nPRVjBkma0lWjzY1uc9ND5CCMKxgvRNoAz+HCxmYjhl8eeNXsKwEQL4P8JvF9\nnK4ik6/zjci4kPJEZNr3lJsFMU1pAy9UPbIzvQDpMwu7NEWKSjg7cSBKjzaK\ngQkuy6nk6w9YR4Ij3w5nwBoLnz4/pX5Yd9dx4vqU1BrllgZ6F2726bsiSB4u\nNKLJc/+pG5Mh7V3ZMfspqMqO/uzExkArcICjG7VX3XbU5swWQLmsQjsq+uQi\nBBBf8tdfEZs7011ujVx9doLh7L2sGmaq/0WE9V7ZQwyOhC041mDCwhDSkalT\nU57J\r\n=cHP4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCmwT44w5iyXaka6A4jEhiHG/tNwbRagUk3PI+sTYweAiEA9bn13kNiYyqI1lAMl4cwTp/Hln49zlLl7kLOpKaJylM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609811963000_1609812110388_0.47132647865747"},"_hasShrinkwrap":false},"1.8.0-next.1609857758000":{"name":"playwright","version":"1.8.0-next.1609857758000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609857758000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-gUTspESFI/raihC8ooPZeohggZw8nDegMK9N0S5orcLvRjxAadsm39ucuVq8TCbDRU6GJUV+tkSKb2USyMfPiA==","shasum":"34416852f572ce3b91a45b9620df9dc163b6bca8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609857758000.tgz","fileCount":195,"unpackedSize":19605073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9HtyCRA9TVsSAnZWagAAtHMP/1lBFUettMEzHFzkZWrT\n2eHH9n/nNziG1Q7rjL/u19nC8WE6jBU8IKKjB5bE5M8QFSaf1D54sPj5f0+E\neJRZbxJyUY3W2C3cH9pOijwDYt0GdTwfL0gzKD/6GJduI7JVJGREZHshDjRb\nMZC9EVc4GuDo7HGKgmppXqoTxtRZARUmZgbbWeT88xnXhwTBTasxQLCw/1UH\nXv1BnWWdQbugqJyccSGeU7KHWJb4v1hvFxz2yvMqzDPpLOYzXXXntdePWzJ/\nFyf75uIkf0FRAxZwzk1m5yIw93/+aEbjZDScNOFTFPNlK0exn4P9/FRIOCze\nO8+kZmiah3jyXq6sPCaTJKrGYwHslN8SmqbIMfHcVUkzMajZVDPskTvVv16g\ncwo96LXryfwmFCMSEmv4Che09UeE4/nJ592sTSVhdVbkG7RZFqn77hqajLPr\nP9m81plLau/yWSPzQ/2krwQ+mcDGedxwrrAhzdRF+5gk4uhRAjhZei6b0XWR\nj7/kIMH78lCXPa0BorT6cL/pAt11p7QHYPgMre9nTgSDvPUoUsrGKx6hbKJp\nxI9w42c7Gp5v1qAAZCFwZBuKLt2GxE1A8mhuQKBzJ3V+LDIMRd5ZWolbd1F5\n46aCk1BrXkQrMiOk+Drr9UOXs0nO4+vDBhr2lE02qvMwaTz151TXA8Fkv4qs\njwkY\r\n=B3U6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAFUhL76f8rrgRRAD/0zprWD9ZzUzIW4YB8uZJobQ113AiBxP9YQBTkR/BP8niig3bv3KHtQCIsbnac4ug7/zcA55Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609857758000_1609857904906_0.41023867414626136"},"_hasShrinkwrap":false},"1.8.0-next.1609866793000":{"name":"playwright","version":"1.8.0-next.1609866793000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609866793000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-NtWAaSsGw6yEMUKIMEosxiBUyEdwmlIw+BgLWC4VsMmOYW6pF+Rr0E2ri/X6JFw7hQS8Nhl4cM8CWDiRwo/JDA==","shasum":"48ede356fbbab3408c62ca343621b9cf90f618de","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609866793000.tgz","fileCount":195,"unpackedSize":19605073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9J6yCRA9TVsSAnZWagAAeKcP/jUUkq23S+0fNGicwoF7\nKbTmfDsuWVxCQt9I/eK9MbUoyVNx2Z1HT+UHhyZ75av5oroCZb4NfdJkIgN7\nFXKval6NdgptaPWsEcrUWT7SNLR/7SWeJyeyGoYdsCDRbGkEy/1Il9OScI7v\nNTKlbrz1cYN9BKqsBdzUAAfskxjxa1oPkMWAMVxWCczjPcQ/ovXPN96Bi2N5\nyrwc8orIial0xoCx3ZjqN5u0sB0Wccfx5E/GhBTFyrVWC5pxsIvvjL6vkd4o\nwa4SWXeze1zAglGDp7pULXqXSft9F6Zq79jEYBvBTEPbcqbpeFcpeAVQzUbm\n4FxPRm4gsDY6yLw+mfxKNl6h9f5TaBABUqzQAwFDtOERgh5IWIfzrg2o1EFa\nkXgCtpquEZHHuw95mfblpiuz6st40vv9d20kJEWAq2cmwMFeyDXLge9syeJ/\nLAWPKr4txqFw2KcW9Aw58ky8DqDrRQf2tB1Q20viG1KRZC6Goqbnmgz+qvxV\nRFq2e3lqunhJ3A1z62R2b1adfcDnpzsCNf4Y7t8EdAdnjQ7MrSCB8IwUuG+P\n9LukpDQeCmgdcuBIY2CyrZELARavlNKuugRNIyTm5NWN9IDBAtyRrEZo+DXE\nhnTUcRhJ51oRKigR6jTjyGrB8HA8D5ACqjG7tVYM0ae7emCJarXa4U5jfLQR\nommB\r\n=Ht0r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXttLj1+3Gf05zZOGi7LGy1JjKK2ZM5YvRP10B35w5wgIhAIpOkgD/uxxM/EgUUNnlU+zL5RO0+S0IpOSDcsa5J5eW"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609866793000_1609866930040_0.1707128034647043"},"_hasShrinkwrap":false},"1.8.0-next.1609868569000":{"name":"playwright","version":"1.8.0-next.1609868569000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609868569000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-t9udad7su0Mpx82VALSPm6e2jduWIcpS+HncLgd5ucd3QAX/7gUELb4V+PyUy/IXoXi0kutW/VfcAH4H717aYA==","shasum":"5defefe727a83cfcf569e1cad7df86cab52de442","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609868569000.tgz","fileCount":195,"unpackedSize":19645475,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9KWxCRA9TVsSAnZWagAANS8P/0ZtNBmGORJw4PO3kr78\nsFPSEwyK2pnNRTnY9JFULKYd/REiHcYgUD+sm55k0wFEaruZt5dMfJDvGLo0\nNgGUJgW/A4J6/H8xVaRpXiLLsX9niAcSSvRE2klY2M/9TTGeLBik3U2RwO4j\nVU66J8lqn38PehaTp7YDVujtkWzdHixBFNZwLRhknfyiFuI44jdC3ozynBRN\nK5m/FJvEsvw2X9JxoDT1rUIYZPn83IKFfWhOo6Zwv8EmqGqCve+MTcovounS\nKTTjroJNk52YNZzDf7jxeex31u7XaLwc8NuMzT9+b2lTvbACIBBjI47AdXTr\nLzIAZNJZRAHLfllSWX7RfYaCjfBaExmwG//cgLrxojGY7nTQJS5KVCT+lHUY\nXGddIrS9tB+eZp+vbSVq2kSD0m5FkD8QQkeWVqMga47eLcPZ9Js6ttzLL7tI\nqvFoQvd3EGj2CesApiqlzxnyhOw0FCqa5mVXsXkA8DhHRMzdc/kjj8+qRTeB\nFpx+Q/mYC8s+B7eid3l/M+w5uMJnlHaCr0CtHhdZAqOVis96gbr7FZ9+dznk\n1eFcX6sBINNxHbzO0ghwyqNKUE/VdbD4CG7QWwKcYNoy6/fviy3yQ9nvL6na\n1af+v+FPf7rKDaeLOOubSZpvx9vE4uN+04wS+hmdNepyDCnbj+uCDahw0VFm\nIZgc\r\n=KvtM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjV5QU0WUF5kF6kA1h6XMygqQZtq1SbhaOg4GKPh3y3AIgWxFzVpngPO/KDN2havoPURqNq/Sw/IzfkLlWh7rrua8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609868569000_1609868721280_0.33791216704841576"},"_hasShrinkwrap":false},"1.8.0-next.1609872770000":{"name":"playwright","version":"1.8.0-next.1609872770000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609872770000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-F5sFtW6n/gXMQ1BfRT7oL9lV//1gyTnunI2D1ZryYjGK2wpHi7kOU8vJ8DWWmQTnxJ7vDP4ZpOxc/7yFujBtMA==","shasum":"b20877cd4f318be1bd9eedb2b001aaa0a7f57ffd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609872770000.tgz","fileCount":195,"unpackedSize":19645475,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9LYKCRA9TVsSAnZWagAAfOUP/20oozozD5OwMDPbqrvj\nqb5TnsnR4tV1d0Ax+3pEfRoHTx3nziEOSYZUAbltXC6JTcc/CEFgNxH7Mli+\nRcVG7KMmxl6IL3lBH3fn63eEKCyC6x1UgYECzwZxb1nW2w7xLRtpUXh0m0us\ntBW8rZcMv2lJ/kvHDUU0P2M0zT8T3OKkHVnqJ3o4+THGBs6dGZNVgXQaDCY0\n+OsYXyAh/Z02sYS0wYOBMeBTAKc7I8OAUzliuBxYzzG6d/MLK2hp3R6AJziP\n8cbxAb0Mt5z5tzJtdqFvjH2liKzbilZl+POg0bwJo2GKEzX41L+R3OcVkDCq\n5KqiejpKcZBDE4Z0BF44PRhBuBpkS/rIFqUjSlVddHELzbg3XduSgUYGaTnS\nZq85afz9/AZEArs2dtk767nNUFcGtF+ksRoH/e1OGEE9cAgA+OHegFzmKmbi\nv1ojkSvZ4sD6gkp4/legm4p049c/uNCNA5RMkzZudgjyzrFpPCd4E2Qup5od\nAzqHTkYOD7DIvoMU1Nk8oB2p2bCgMBtQtf9pPbiXWyCEnbDJ9FaQucKJ/KXS\nr9roK1WGyXe8YqBDH0jn57UVw2LiVICjvmWPPoUqBQmCOgD6wi93c1gB4r+i\npxf8aHx5WMMsfdq/UwfSFQbPvMmnQM85o6Wtm/zEUL1fwgH+tJw3I3Xr8sFX\nYZD/\r\n=kdIV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSVsuDFgv3S4uBJmDOWL2aOin3jNzQ99QWSHNbL26ieQIgUebsLDBCqx3zw2WxkgJO4p5nu7yQNw9zHKxS6LMR4qA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609872770000_1609872905019_0.050322217919798184"},"_hasShrinkwrap":false},"1.8.0-next.1609872962000":{"name":"playwright","version":"1.8.0-next.1609872962000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609872962000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mfR6WD1a+/L6t2LVMjnR4LecRIQ00rLPARZ0PnQkVO7oLJT3Qz0l1kY7ixxHKwC7kgafDv1+W6y/ighHRWqBEg==","shasum":"a20b5c390070430cae08a6fa0f0a24a2d71c36b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609872962000.tgz","fileCount":195,"unpackedSize":19645507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9LbSCRA9TVsSAnZWagAAuy8P/A5Al/Fjqair64yVW8oP\nApnM6oe6kn1I1KQqFDK6OFNRxEY49zkNij/ICGWEV6m3VtOb2BHZ1fLdXdWU\nxnBPuq5wgun7LFTPflAZx+c+kvQouQ44QOc6iLwI1apm9bCjCiURXqT/1SwZ\nh6FVQXcj4Fr4UWe3c1nlROW7yPvlt83i70eUEwxV8FIMALw47OsTFw4phi+2\n/x3CshZdY29ZXME6JyFnParMNXyc2xfHbCXypG1SrFZRj/MDNqpfOxQiP19G\nWmx9+76q55w1dck2ClKn2K8ML8s9A9ly65voCo9oT2ZCq45eJK/UNkZBMOoy\ngt60kDLQRFnJLjGQAklLWoLZuY+U/YnPmmM8GfdpmFlkGFGYN/66qzKu+p5o\nm+DPeQuXlA4gILv+w4AWtjMaZNqw2UJhWke2ZR9dnDmnu1Yu6jXUvNxWzTZe\n+RqRaxbY2P91vZSm340McMaQql+WnYboKK2I5fJ7Vh8zGk7GzjFbnu4A5D5E\nNwwo3dF/p5vmSq3nQQqmrkCKvke7v6lYwOIeGUoof73qc8AG6FfaO8LOKks8\nGsXro/OLNsAn8+69DMWIerBogE3iKqmDWmVBIZcVL3a3M5EfVbJwuYQbcg40\nc1ZtC4dwmqLvLizTp2mrOIkpVLxC2ybzSjVa/15xZTw0Zm3aCAxO8Lc+gI2a\njQV9\r\n=hhgW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/oIJGldnH3jWdphe8ryPj/8B7nOQi04/9c564YfAw6QIhAJWeYGvcAsV7HnFGZIDwnd+srwtau+6HKbBuBc39XkVv"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609872962000_1609873104725_0.9440312363381458"},"_hasShrinkwrap":false},"1.8.0-next.1609880932000":{"name":"playwright","version":"1.8.0-next.1609880932000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609880932000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-aMnwxM+V1fq4+k+VO8RhTTje6hk2HKOmod98rcDesG1sO4FC64HFJDWd7bsiezHmnHFmAqFvMoOvAQAAjuFK/A==","shasum":"d18f417860115ad4e506f79a7e1a5ec773a0bae7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609880932000.tgz","fileCount":195,"unpackedSize":19645507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9NXYCRA9TVsSAnZWagAArRYQAJPcDTBYRj40FrnVfCeC\nM3TmeLxYAcGZVb8EJiE6Yt91tPRjD6yBPgphFfFaMUw6xpN3umt7mj+GLOAm\nbvd4m6bkBdl05Xa1bCzyxdOTixZ8XCzwbQwK6eInqpj7zmVU+w65dBN9aGrA\niFpsJbI17a201b+lDhZZLnu8GgL707MDJSJQKpaXHhAUINiz4rbMPkfc61pD\n/4kQzAv4PIudJEhnNldwmdmVfFlOeMG51CBYf2RkwcaTeneHuF87fNfL/DfI\n5hfZ4jlB9l46MENBJIf+1iWAV5dhoVHRBnVcOp20t6EUkxMp5qIJJmuyJVa5\n8KHJr5xu1gCaNG10AGIKQKLRnlekH3zvb2majx9VF4h1VVYfjdfxjZeTVcjh\nQofmIOdIkp/aRwpaPl2Ajq3DW4dWe4ITHNpxxbtNoA5N+/STwX/nIBursweF\nakzhxztqa0OSWJaEecckGVIWYKUj01jS41NINiU33RIMtkRebK3scZgEpX+5\nhIWZIy85RC+YI9luxInfYPzYjwop37mHlztKmHNJDIrJE6MxQzZN94HZsVjn\n/ntqeB2kLw2KEiOO4cWzRN3J+NJ5jG25cwFWT4DJVQDDrI3MMv05dQ51NeiD\nNsz8PFLrlMLf/mSMA5T83ILVTb63lRyJXyCaO3VzsDFMtescFdXjLGMX176W\nt1yd\r\n=Ule5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2A8+L6jaJkpqfWWMGWhhvWhXGS8ki9qxpT9kKaiLbKAiEA1x3S36kOxUL3GOIkzZwTnEQFVsImE437ygNynpuO0/w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609880932000_1609881047403_0.2656751364795822"},"_hasShrinkwrap":false},"1.8.0-next.1609881862000":{"name":"playwright","version":"1.8.0-next.1609881862000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609881862000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-LZeyC0v9Nosr6+XE7rpZ/nUjVTVQR7QpHEDJM6opP7ZCnVdHlYhhuWXiUjlZgMjc1ZT09Q0kKqymFPcDS2zR6w==","shasum":"e344c02f93e0cb734e2558ef24c162b36807cfb8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609881862000.tgz","fileCount":195,"unpackedSize":19645507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9Nl5CRA9TVsSAnZWagAAqEsQAJMmWUHuVFSbQ6qwq2av\n5kRkVj6rQWdThqdzPbgJkVEgnt0cbErSr+rpWfhc5zEbYK6pRTnZUBwIOPX5\n17PuMAVSjqU7nwKqanliQ5BmhD/eKQyPG44RLrd/lSPtwneLENLpXqVd+I1F\nYOpW3i4ICPHJef3XCDQTcxtsq+9DUTboe9HAOnuX9xMPvobQ+P1xgrRQd/qq\nXCz7SkCxYCLOj94FSgLcxvtyVd0TryyoTK9u67yAWGE/MpouygZCsl4tVdMN\nUaUBSjFaQOvMtKRzEyY38ewlec3087rRsmkPnXpDK5SI9QohH7zJs6S5Hrff\nCRbd1pmZMzZTNcDbvThh8rDbeRv2nNnu8j+PnKLD1PC1D44J8amJhGRuO/Z8\nFxTfU9/z4/yGAaevtAgUU+G82ZdnwfF5AbZ0IWzzLB1kfjLS2xdycXAAgjtf\n//dZNFssjg/k+HfyzYnbOiU4L1lw627fxpt7Y8qRwkxx08jMbNlc5opbi0qg\n2nqpYQlPtpNkDzjU0WpPgKzNbf9OeX8h/UNi8GCBh20qD033EgYaJauUVSlK\nuMlXeIKJ3zyhMiSMRqPr35GG/V4trvMsg9YysI5GFmwI+yetbpSzI53PyYIX\nszn/DP6m/AbeV59sWWrd/RXORSijrcLv0h0yjHv0vsoarRww41z2cLHylr9+\nd++4\r\n=TKFn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMuQ1TiupMm6DaiK9yyrFvF8APosuBEE0SewJQfyMOjAiACNvkMkp0R02m7d/p8FsudVEPEfjmXwEMu836TL8PwgQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609881862000_1609881976742_0.701180154548986"},"_hasShrinkwrap":false},"1.8.0-next.1609882842000":{"name":"playwright","version":"1.8.0-next.1609882842000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next.1609882842000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-cc19UkduErmI8uxYU6/kJGdoDZxspp0TwA0OhPlJN8rM9WRc/ZfPFSQhq5L86cMkzq2WWyPXOGCvzmOCsLyJtQ==","shasum":"ec96d26e69dce724714571f828371b2022c7c541","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next.1609882842000.tgz","fileCount":195,"unpackedSize":19645507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9N1dCRA9TVsSAnZWagAAR0EP+QE8i7faeCVmRFeXdF+Z\nKZzA/+BXQka+WfGf7JHnCkvW8qeSK8JQVOQpqeRC76tuVV3bddCu0Qym6Huh\nu5BnpySwT9uL+QJ5JA+1rUKUHqFLCUHeuk3RiG0aC/FBZzcwpLkjCO7qk8ge\neKnHm0J2FJ/yre6GnOUkI47MhFoiJdjZUGF53X2BB4WGsBENg6dx/jKlYvgo\nsviOzjsBwYS/kPNP+vjqEfaJumDnx4Cj1Ir1LQVsmcgVNhZLO4WUkJ/KSevg\nsFrJQKdJeXb1OAkoGsPJpqDUjKGmrFQqq1eyK/IMCji4i8la59pFq1obxoGZ\n7SsTjqK6kajCqbBD0mXLqX+57jh+wgoHl6I/KXnMZmJZnCtjsusEZt/ZQDRI\nAZXFfJWLmuWj+fkFofhJsU1fSmskDIRZyabBJq7+XtWHWgsjflGxvgSkCqGg\nZ9fmt3kM4myeur8oju0eZe8JudQh7xJ5Bq9oddhL/seNU99pmEZB9EFdLFNG\nWXjHleh2ItrWXbYuPtlmB56+SWhy8w4v1f4URVfzti7dSiOxX/L/i3WwcHSU\nsOtf77PefH+QpURCggPFwPbGA1R9eCUe7tq2QdxcoQLb0xYv01fkAs2dYcWO\nNmJVLB/x5HE/bvIz8rYdXyUxffoc1Nvgmaj9rRQVsAiTkGYYNBEoIvCBF/Q2\nmz4/\r\n=3g/V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEKUahMNmsV7K7qVTX0yoJqu0PZ8fIrPZtZFIHvaiLgsAiAyDrbE6W/XX6xKZAabD3cluv4qJ41WPSwJc3WTNvjneA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next.1609882842000_1609882972615_0.005968073912141492"},"_hasShrinkwrap":false},"1.8.0-next-1609884287000":{"name":"playwright","version":"1.8.0-next-1609884287000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609884287000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-L3m0EleeFY7/a7X34RuxFcwWp3awbM/IYY/ESbjme9k2mAPInqOschJfIwS+wG6s7uGDBORVp6nw0YwDvCbikg==","shasum":"0118fb8f325cfe70b199c25dfc0f4cb7195ac0d2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609884287000.tgz","fileCount":195,"unpackedSize":19645482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9OMdCRA9TVsSAnZWagAAa9AP/jguAyYBzMgCCBO0R9qN\nBNB1pFc29CRg3TX2odvwBeSdrQNCvdAl0qd+6GXGqJ4YHSf3jG/+jg0L8Nwv\nX0BNv9mYoisABeNkBKsZ5PW0byQ42qga2kCU1Z4opMCn/re8DDNe8Ln0XYRT\nuIfVGUs4kwOkij7Ata7KWBiRSs71zOI8IBlSPjF8lJJWqvmfKfsA/7TU8dD3\nzPLsMxL/7wRJmKFHjzisTvx406ig8uNn+Om+WeJZFJ4AKPUARn9aCLIAkKZH\nCTTajv1oP16VUOLbsxT5YrDfjPZCsjTJDlGih7e7/yUy+KCyGkiuBp+Q0lFO\nGgQZRf1I/croEMEqC8HvHF48SiPmfxzBKe6O+XoKBS4ZP9dQGB1HMM7/Ok5W\naBXCiYQqySHCZs8Zn7wdRYsYaeUQ6IXhjQeiZuPn7CkPDghOhPymhO3nYwqA\nO3rSb7IaS2zbhlkmCt6Ccr5djZXSoQgnt+PY52JfH6/HJJoDmQPJywzsCIcm\nSY54KgjJ0lp9h3VVjyF9f4DUf7UnaNcuDbzlNKmLXd2BmieE7SZIgSMdLvys\nFFKCzgM7JbNO0q2KVf0ZQ0g6/7KAPgmoepItsre1ie6aFpG+O4kZ0GGwP8wC\nTNJFJV/JwJuY3FKKa/yhrWg2e7Adudunn1d/+BHmEyp/z4ySyOtpjojsy0w2\nsxsO\r\n=aXcG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBHKBKfwpuYdh9pRONYrlN4Y0KCYZZlmLZlruFBgqzQAiBkR5rILpmHOJVLou/J+F7wXMJq6XVvEUr3s/3PVgSdqQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609884287000_1609884444418_0.6202594906354164"},"_hasShrinkwrap":false},"1.8.0-next-1609889125000":{"name":"playwright","version":"1.8.0-next-1609889125000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609889125000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-b5fk1erd2fXJ9uJJov8p3GqHkNxN5ZxVpb7cwLHHmAcDVG2xart4wJPZopdTJHR++BN63E/JoymJGYqpGwIeNg==","shasum":"65a474f4a64c7c662f0c517024852b542d500498","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609889125000.tgz","fileCount":195,"unpackedSize":19645481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9PXrCRA9TVsSAnZWagAAuM8P/j3kxmEnhSmJTy8Xawfb\nVchCxXZDt6zO4ZDG3Q2y4OgQwxEfIcGCvPATRkuljHtyeHRMBGmgcgT7/OCP\n7fY+UttWx2fqCwU+u4FHRCLOM33NPRb1yTp19928F0Exd0SmFD1/CYti5JGG\ndpkp4a1q2zGFugrLajhJHDQIKIwlNajcqygARWj46asT0XrC2zoo5DlB2pRK\nSQK+zkdUSa7IHoZKuZwbnCL17DM8B3p3sDQrKcGy+5D5Epe4FNdvnktZouF9\nCe6jEiWhHk3HLiuzlmaUqCk/UrrJ3Fi9mHV5OR/06MsZD+dfevujzeTMkK+O\nhzT9t8/N+U8n3FaVJnJJVM68y2fZPvzFeAczr7BstnRU50F2GljeQzpxjmwk\n7hrt/xetLtWENrPet9rjgTvwlRpf93INqtYhhpK8l2iqXnjRlabbs1NnMsAt\njZSqDb0wCUX0Z7Oq0kb8Bd5JKrfHPz0TeyAWCgkGepGaJ9H4DY6HWg61mxJe\nMEOJXX/HSr0+Lf/aOWdS7XtQkoT2Rr28/jfI16DBy2d4AIDCIG95XlT6Jqe3\ndp/gD1RLRWttFPyCW8Lk0Mifu2DNZC/6l/bpP1T1XWySNGNpxD7cQ+SwW+Sc\nooUYaSqoKK17uZMJJq7dSqTAOHVywmQXNn5DGbcllcvpjve+ajUJ9b/DOXEF\nbxls\r\n=0N9/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDVDqUOOYitwIdz+FI2CgJhW8BID0TEYe8jtQbBlAckAIhAKLu+tuaCqLt3wFfNA2mkOfmGVylMx9ZBjrv8VvQPNZe"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609889125000_1609889258020_0.13580977623834878"},"_hasShrinkwrap":false},"1.8.0-next-1609890568000":{"name":"playwright","version":"1.8.0-next-1609890568000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609890568000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-qsCTU0nDA5QiNJEuh11tJI0qosrrfqQwbiHqZPLfRE7IwyUH5xVqBcsOZAVcHgIsA5H1CwDHCB6W2mI/o5BrbA==","shasum":"48d9fe2ae8e52bb25df9b08a5835ba55a828bcc5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609890568000.tgz","fileCount":195,"unpackedSize":19645481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9PunCRA9TVsSAnZWagAArKIP+gPZ8NM7II0VbCqG9gWX\nzPfHzM1zLWswCCvReKsQHjaHR+bSd/ruuO9DMpQH4OUa8UipJVXdJDyE8ZWv\n5NCTuca86JuuZNtU5fjsgweDGni6RqMRzS7zVk31o56IQ3KH8YE6Y0kUe+jT\nlOBqu5x5c2fpp/2qXHmDAfvYkF80mwIRuzwNaKMhmZ83xxgkolnDuyitZCi5\nIyIK7UFEw6lLtkW71OrMBMOClnvR2OIFAQYjklXxcG78092+ClX3R1WG3th9\nrnRbcCEgdDnkIaam95ldib0NMByM9++xpC53AfJX5rax1jK7+qUUCEtmi9Et\nrzHPyMKIYNbvaviW4ufVmk1nrDNRS+5EiRzctc2WCeog2cQT2d4QvzWjZugA\nYtPls0n4+/IPO9qr971JlNZnI6fpaomXxWf14lMqVnz8hkmCK5hAMsaZ/MnA\nVVUp4nAxhX04G1MBsZYhiXcUdt4T+YtM71dsLH+9hhMif0wux1PPV0ROgrM9\n7T3FPC+ry4f9qAZk9wu+fRUR481RGwRdbHyLAoJJVZ5iAMnBneid54Qf71N3\n4qlyd2c8FEIxvGnbvNqeEBEd2pKmaTWoPo2nAMJ/0cwbkN6tK5zSu6fAu/lY\n21AVoR/esNE8cBRkvhmFgml+A4n0UA8WC/3qIP90pHo4Hcm4dIFSWMh3FUcf\nSpnH\r\n=KAUN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhf2kusF6x6TqtBSTFI8sfuBmap7qWBQmCUEpUu8fDPAiEA8lMcYUPR7iY+n21nkFQZ9QJbCSarxTnk9ygAKDb0S3I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609890568000_1609890726521_0.556888697763475"},"_hasShrinkwrap":false},"1.8.0-next-1609891521000":{"name":"playwright","version":"1.8.0-next-1609891521000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609891521000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-VWsE1cGSrtq6KJk71IJjr+g6LfJBfm8ahPnI5jnp0G08WMUd4YjDZUfODIkfUBbw4uhnpU4rQwVQN3X2/FKdFQ==","shasum":"4cf4f7757e9511dd5c31d0f8f3631fb484a1d9c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609891521000.tgz","fileCount":195,"unpackedSize":19645481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9P8zCRA9TVsSAnZWagAAMfEQAJDWor02+FmREXD7EDqX\nzmD72+YcmRY9bFZmDFqPbxC0T21Pq92yjI1/sbhO+i1H7oIHzsVCSIZnVXVM\nYu/zjQ2vUKZgaG4JZqueLFo/2hfezT4GVT78DZOpG6rXFcL1AJhWWyIzJeeC\n+6P0PxjqCrGyLS5RrGhXd4UIeQd9o1KE07c7uVJvtu4fLyYjv+6FRVe2s+As\n21slhZM317pajGIki0t9urfXLLZRvNFXjOKBMyJL5t3axPwrymk6ySVU2e2A\nURfgRNaJy0ebfrUs33ygNTq6U8bebyhc6m/VgGeUEucoZA5bTxUiPZFdXeOC\nqhPJbDaYhTE818KSAMv0czp6Dm5dMxqZrRxxhtuVYeHTLvAjo3k9EcLHjKA9\nvJLxABQg6QWmdjr132uXkxJTwqkg49/YsP6DpeZgHfkb1SRwJFoSABRvPyQx\nJlX26BQxbGrwN5KsjOAy4WSFKMFQ0lzkHaN4BF6h+eXLsuIODc5pIhBMspeV\nocsMsskccGzcvZcF89U/EaXDZf+YNn8UAFFP034xHR3kmQO2+msbcRIXJhCA\n+AT8JvjPZg/liwnu5+et33F90+06/hsjTui5KY8DNzJ8v9xP7V7mHJlWT+ac\nwV+jtcaGjnNPlMAeIVQLReMkVddou+uGi9/WIEdXpbsjKrvjlT7NL2S1u4ze\nk1hT\r\n=ZlgY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDS4Y9xmD8OEfa8ogiC42Jq9VlMIl1Un35g0zLymKVVUgIhAMsJaAy59X1+UJWPGE+wl11iXY6Xpl1fohyBfLUGSxkM"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609891521000_1609891634658_0.8986118096986828"},"_hasShrinkwrap":false},"1.8.0-next-1609895143000":{"name":"playwright","version":"1.8.0-next-1609895143000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609895143000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-MghEE9QRzhB0BVbCqLmI7awLLJ7OJMukSkfECF99yTX+r/usqMtpcM9pklkHy1gEqaWxsiaF8GCfxpPR6BDRew==","shasum":"b4cd9207beaf8f55d0d92c632e941b014239b683","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609895143000.tgz","fileCount":195,"unpackedSize":19519293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9Q1lCRA9TVsSAnZWagAAXsoQAJS7+pmvv8yWDXfme38x\nXNo3Wa0qxRDK+L3umCIY76ZBtAlIARASa+P3VsHELt0gZsmJKQHIvVrodnqB\nN/TVF8wxryiHncycvgtCW55MUQTat5xBVCOingKm1SzCYkL1y5HFhZIk9647\nl+1U/tw6/Ap+lqYMfpVpo7H6003IY1EpcAA9o83ZRSWTZmvqcsaN4dY0Vn2g\n3JEI/oKZ/gSP3DQa918mbChFG4g/gLYkMJ3bxQnXkrnSoatYwEIBEywIfcLV\nSVjIiieQCvg++1D+B9aFPz9kEJiUVVaNXL/6xSHljSOj9D6kUSuN755IZDI9\n53lxUpxPP4LxUymMJUPZIHvYkOUSlMJtV56upvx059hMn+9bSAmOxpskWtRG\nSqqsn+x4sSc7LA/ExRd8sRk44LngIfLkh5bK1GiKL+a4TbLuDee2sMcozP7H\ny90hLdqe5eHmPPVIyX2wokdwXDzqYPK1MqraG6pmRVKKwbedvegX+LNxmQot\nq8bsw22YAppEI4wWWd/s54ryoQrr2zmilb8sMDhXURAqc4H1F0hP4Tek40mb\ngsx5GxNgKuYtqMJO5OcwKgZuZxwaItMDT6Um6aFPjCF6uv0IYROBMV4drCD7\nCZLWl7ZWbK8iIhQXc+75NO05/XUpRMKLC1rd1pPQ7JPNL9CbmlJ3x1UOjmIY\nTV+g\r\n=bpV1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6saB2WwAU0Q7YLN91T4Sx/BSnb29yfgtTYswQBGH5vQIhAMjQmIWE0Ru6wmebcOZou1yqvQ6cAM4g0jPIhMlSvBU3"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609895143000_1609895268455_0.8033398652704677"},"_hasShrinkwrap":false},"1.8.0-next-1609907510000":{"name":"playwright","version":"1.8.0-next-1609907510000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609907510000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-sS9NzqIcCRJgFf7A1KekFxVbgZ0XUBttCPrMZiTTBjAmpNt31Degvfk0xfziIuNNu7J4dEZ9PYeTPurJxMC/+g==","shasum":"9f47dcce08f5992ce714bcf4b238ffbe73aeb356","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609907510000.tgz","fileCount":195,"unpackedSize":19519293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9T2sCRA9TVsSAnZWagAANP0P/1Ic2Ub2+YBBIUE7dM0j\nETZnzrnAEa5/CN16dgkqbNx6NpCKrl3vQqZKPXyZkef65w/ag5Z+TCaUlMYU\nf103X9mt66QzPCN9OSwsZnMDLML95HJU9nGYCfkHS2l98e79NJZfvV+Ukbo8\n27I+9q5epqXO2HRchAf9gcbLCNnmTqS9myDQvVaPmwU4WWKxUtpUSTUvRwsL\n05rE5jNlnbN05fBdB3xDNhxmA+aVxCy4gpere8CLX6bipZudwkpYY1pOLO8s\nSZ+owiF8y+YXPT1ldE+1HXVXaSqNBgmNwTJEkvJqKdHEF9fXAAFr/ieQu0uW\nSUMOhc94Ww9IH5IQQpQWt9H5sg9fhBqwtG9r0Es4ibvkNq5F+TZxW+1iFHr/\nBvkAgC1wT7b46YWg5ecy2B8wLno/9WjtGwY2LZ+rI71d0jkxSE4hxqJvlHCj\nMT1mv3I88JsO6d0+8vtaFem8LDOdx5vzL+vnl787RB38Vtou5mWCLpH9rSBz\n60ej+sdkRmDxIfv9Q8xVokiTlABEv2yVJQqY7hq8LuRCW+Fo1d4PFKbYnjfT\nWZHGu9JteSUhITGH37L01rX3o3WOBcNs8BD7QhRx4DVYNjPmd2tSY17l0ebP\nCfhQkFu6rLVvLqWpFPrToKmiXrPvByyxqcLJZjm/nkQtjTmshJBYI3KDRO6P\nGl1Z\r\n=Pe3+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBnNDh2sM8OsWuLKUUI6TH5eRiJZo3nVUONgs6LQDr6BAiB4uxzz+FQIq9IPO5SzWpPLwxdWlrW7gbKdQ3Ja/dvhnQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609907510000_1609907627664_0.45365323067676444"},"_hasShrinkwrap":false},"1.8.0-next-1609931581000":{"name":"playwright","version":"1.8.0-next-1609931581000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","highlight.js":"^10.1.2","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609931581000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-vtm4ToWiDREW4f5rOC6KgMmPYhdd0oOUwInY92qxMqC1hANFy1o7t6NuwMftOs4FBTKZ2VT/23o3RS7D9PvHrA==","shasum":"4e126000ee79c6ebaeff4c256c84162317cbdf56","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609931581000.tgz","fileCount":195,"unpackedSize":19519293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9ZvFCRA9TVsSAnZWagAAkoIQAIvcbstNh/cbDPajNQoK\nezz0TVivh9lQkBc4yunPSjVMw5ttL1R171WshtahtesEGgcbb0YajZ9R0jr8\nyzz3QaJ7OpdJ+/aic4mRXTeDVjUxbFlJGhFDgcP4k6xrAfWj+2PPSB2TP/5U\n/NwQLFDLsbb6O/Aw8bhGfNw1OjXhSHfOo8FDzbtwum5sn+M+EBrSmJ7+30tT\nsUMBSKvfn5FLV4KFd0WSESJRnqhCxY1lGiPjYRJaV6bA3XUjbF6EtGJK4p1L\na3x0v/vNTD0+k+ZDJPmz8thEdXJLjFVyeVMBZbwm4AS8oRy65jg2J/U2ef6p\n8aTJcoSC16pxnELtRn41gjrNHQ/BZ0RGZifIP4VCFHY1NiUWczXG6WwHNHfR\njMSEUFh1Ls4EvwbaFfcEoAP5bpqnmIJmtnJsRdx/DZAg0ziPkWW6Rttmbiuj\nbHW9qNaBqF6+TEuaZ/dv6eRdat9HD46c4/C2SAehzoFZnx0KnyfE38WwaSqF\nFJpTSjZlgU8vSNlloAe9ETzIWnoACxDX+6oyvb5i0bega72DqWR47ekZbHaq\nPmhSSsCIg5AGJynmg2HYS62RvZRZVqQQdL9Dpx9IsA4+ziLeBR40T+xA9/4H\nRiRUaJvR6PyQD3QImQ5TWVZ6q+jkFvbLMom52p5LzHykN2tziI+1828rHwT1\nimks\r\n=/oBu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgk2CI9sD4/PDVBd2pwQvyaPml1WLe6XxbViudJZzgGQIgNx5e7Nzdu2EVjiq4Jt+FousEyXAQYX4aRXk2woA54Gs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609931581000_1609931717069_0.6523689086846527"},"_hasShrinkwrap":false},"1.8.0-next-1609954302000":{"name":"playwright","version":"1.8.0-next-1609954302000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609954302000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-XClLgnGLOv1W2Q6jar08LdgW1mcW3+3Z+A65hjndqVWTmnvgDZCFnOxoSJD4wvd03I4EhnYYXQ+A3gHGviRilg==","shasum":"3ec53d726e54687e0c305cf4377d69305e299a47","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609954302000.tgz","fileCount":201,"unpackedSize":19632308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9fSQCRA9TVsSAnZWagAAYfoP/0PhYHOBjhO27q/DxS2j\nYKAm0TYcifBAXi1LaBDpTEkcGe7K4xk9q4qoNWOQAiNtjNR1nrv8QbDjZX2E\n/PRRpMl18w8peJDYYzIKYhOqARI7DP+udS0Vs49kL6Z5IVf7l60SBQEyuN3z\nDh9rRvTXbdqk2QDLlojdOOjw6+uzb2QtztFmiRIhIxslykeeO6yufkBleLs4\nwMd6Lgs6zzaYhuBuw3CK6om0/tsMpfoHEJrD3ewadNI6LoGEJOARHrXp3rvi\nYaVlBbTOh4Lv17iYtIjA0NnTPi1NCqjhUhCYO1tSvZcURUXH7kqL7AYxlb76\nO6uyHWvBAj1SmZ2OdJssXkATB+nkgwlUs/9HnuHq4TqpPDRXaVTjYBwM/z92\nRKUcx0OsswnewbvGQ2rrN+exZSPq2LwSTGtdUyhuqTSZ+yF/Q3ldyfOHTS/6\nEYd8R026HZOg8FmMLjvTtqkI68uxO65Sqp5E0SrMXhtKi9hVDR/cqPEYxE4J\n+t0eyDRvY60/d4yYYONJuEiZ3CtwYu+RvZIgma2Wqxxll13Ueyu63xTLrDst\nYZyq81JCr0PlBMcxT2a2xm+SBa+tnhpInopIOZu+nFwQ05ErFpcqBXpiZZzj\nyH9dcFY5My/NM1oub3jfTGwyXsRB51tyor8lDyC+M3ohWlli2zFxc8QkQTZw\nssQt\r\n=xV8Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICId5CGNfaSyfM33xNriyc78G9Go6ZUVeq1TjeNP/TqFAiAO+SWvzbVDlNHZqyLCNKz5naoVEzcZEm7ItkEhTHZ0OQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609954302000_1609954447817_0.21054621954690877"},"_hasShrinkwrap":false},"1.8.0-next-1609955195000":{"name":"playwright","version":"1.8.0-next-1609955195000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609955195000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7iS2WLuBLpiaT8lZPcZNI1JdE9uO5phhWTsRacRSuzuI4CDkjWZLJ5R0yQRnkUOGN5Tbz6i2Thau5vA3VaF2rQ==","shasum":"64119eb981c63fbdf2dfa9ce7f054962b524675f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609955195000.tgz","fileCount":201,"unpackedSize":19632308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9fgFCRA9TVsSAnZWagAAi/IP+gLaSCcW1UrjXRy5keKA\nCC81UhnnLFWbfwHMTkcpIx/CFyPJRhVZyyZB/Vy/h6yL849Fi4uIRxy/DYTd\nKF2d3dLI6h+APLgwNYHzwDJ6H4sf63oyA0R7pMt1mZLZNaG7vbounsVjUoL4\nUcSZ8ZWsciFDtw0YwilIiuwZzrfmyixP1hj7ZGjz8Buux8Sl2/F1RkCaKm2E\n2XvUS9sPuP1TKEtvcFw6nrS38BrfcIlTU0MF042WXIIclsC1s1bdEL4tVkqj\nonnGbRSG/8Cq8PMX0BGEnuimOOllYtNrjU1yXICCTTdQo3JpMEPfTyQhNmFB\nf6YFyqJ/r5xdRgmc/7ktNABeZ20ENBibnsp5WmMheHkQDSELbmBt0XvmQ8PN\nRwSf22oAQE71cYP0zBFD3M8v+mHRQtcgoWD+FLWm6nxU8iFgwMDnAMhjZ/Nf\nS3avWMbi3XsHNgwxi9NPuvKPmaYdzjzSb7n67+V/ZHMLoFDkKkGEwS1zH7S8\n3lVhTM+dJvYzXAgpTPvRDTE1P1P5NhfSzgQk/ukOks5pKmjmKrAu52kRCHCd\nIkZ9QToWH8U9wlJCZPbustVz9DkfaQ8zaVQKy5YrzNZTf4kI+1yQjK7i4yfQ\nDx787izOOIWFARNEIr/J6GZF8Bc+FXpQYpKKooH4kBXpTb2jzQ8ntjeLn3Gr\naXMn\r\n=MnGr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/fV60b19i/vO+/QUYbMF4ui+GPNMcm7G1cl/BZ/LD8AiEAx7iAGbpE87EjF8h4VovWeqop6u/gDk652aDO1VC7hEw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609955195000_1609955332317_0.49391696532528906"},"_hasShrinkwrap":false},"1.8.0-next-1609963169000":{"name":"playwright","version":"1.8.0-next-1609963169000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609963169000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KoA/l5fi+H/sCbOq/2Co74dg32FyFgv1/PBwwyDD5uXBPger6NCyE189ySQExHTT45YcUsNeGkjzT4YjWXZk6Q==","shasum":"e3003e4efe8d6cb6cbd9167416449d275e08bc2c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609963169000.tgz","fileCount":201,"unpackedSize":19632308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9hdDCRA9TVsSAnZWagAAGJYP/ipGOBgjy7W9WOK9ZgIg\nSxY0Cunt79kPUfhdojdYW85WBSaZoXP/6RdEUW0SdGJeT04S/7YpjgnIiwVd\n93llPFUrHHgagFUH1nllhDnrUgd525oghsBELbZhIUDSn4dNFK1KQOgKk9Zk\nDbZpK1wIz8eTe2pT5+AWWNg4W1N1D4C2HvxKae0EMOnl2Er2jXCs7COajXSP\nl3VhVb1cZ9gNV61YJ6k5Mh1VY91ufK+uClL2qqjrZSf+HTfD1qhPUL9Sbd9a\nVQbv/B/nfieW3u0BFlvFsV638ZBOz2d57cIpLJbVl3Md4K05I4GTfAcpl2ae\ndEKqIDBs6axcwh3qFMYSu09fknzoukyhriHcmsSm5gff6hHAaW2tqWPAdn/k\nDQaCtYSqJg5wtKIJ4UlhHbwiEjbHO97ebZ+zuNJOC3Y4j9TDGue09voAnxkX\nu+R3l4jS2BdgXUTIErHlJj3XvxAIWKXpeAIy2Jt68mXJGz/xQqtOnMZaFOCo\n2l84ccV4CXiUWOLCvZ1aFfGfEMb6yIVSyJ75Lanrnuo16K62R8z87+K9P+B8\nhzDz+Hy1utXjoVyNPSX9FpFnzpfiOiK5NyIgERx0FivIVgRy4FHJ6JHpUmJX\n2hcMTLFYY1P+HJMxyzPJn9JpooxGnZVdINGhXtxbrJVXw9dcTwH5b/BLKy5G\nAdLp\r\n=+r6D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfz6tjJe1J4nmmF3Xf1F5CwoBnTld/H4m7n4Y/APQdYAiEAsV2nntk9uCSdFdghXeXfnV6Pc9lAW1zcY2Ls04fPuGI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609963169000_1609963330648_0.2803309885398053"},"_hasShrinkwrap":false},"1.8.0-next-1609965677000":{"name":"playwright","version":"1.8.0-next-1609965677000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609965677000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-K3QC+No9KSgZFfy8Z0VR6zAJmKWZI+Vh+vovZMtWK9ZEyFASYjeaEudQcRxzMqtD8pREyicd8FXBK2PutDMTqw==","shasum":"09d1a36724d7d60d12fd2f9518922903024379ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609965677000.tgz","fileCount":201,"unpackedSize":19632308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9iEGCRA9TVsSAnZWagAAVTgQAJtHrusDKZU03nLmzlT4\nfdg9zS8AnDBvFFEZtGPGRO2124PRrz+UWTk0MYNFgwvelETwPqVgpvxX6j7D\ntZmUmnydBRYMe15Q62q0npJVQQSHmNzWPAM9+SzhrG4sA3OI2fuwlQysuUPV\nL/ZZA29mUFoA4yQWlt4jiRBRPTwwcNVTD0wJj0m03FYBM+AmzAuHXN7K1X33\n8urqYPDljW+6N2MUbl6E6Jdzj/rLuL/AqnKoPZpD2t9sAQILMua50I1reP2t\ncdM+TMv8hWk7T3t5SMaLjKNClUyusHdmULKDpdfhc25bhBVD41a+5gRCt6aA\nk5et/D+MCqOUEwvuAC3USnEURTuZ/9FTUKSksU5n3yEnh/UpPsnCpP2Wpnoc\nDcoP9lOFvq1EOSK/sAIwjE0GbdIUPgAy4KKnf68Fs4QAvDeL5MRKRaOI53sI\nP2iDyJs1Xpu0/ZRcFMjo+w7emqr3H/cum94fnP/U0sGX9s2YWimsvFK1Vwbv\nouco1MQow4XAk9WDPU8+xe/5iD3NxN8jxzf7TJ0v01gYia8vHIJ92mn7sHIq\nkT+6VOgLuohkGG95ga2VxGHR23svUeXLDCT/pYYsfUncJmY2vx8F0/GJ0Mef\nTej9OvSJBLNXdXl+U+pYdYciz7P97wKPaczoADoQzRSEue77jWU5MT5rCzhE\nQC1/\r\n=4zuy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3Y5qz+Gv+Fzlx2bkcECE3rI3+sl6IHv7wdPWrs2APyQIgb+gV0XYMDy/l7Kt7zJXjSRRRSodDi2fQVcMVtCC2Pss="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609965677000_1609965829373_0.7543166326380182"},"_hasShrinkwrap":false},"1.8.0-next-1609969454000":{"name":"playwright","version":"1.8.0-next-1609969454000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609969454000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-DNZV8sR2GiasEq6JEwd+/IwUK4KWws64CUnzH3z0yEhCYmq04UYCnEplbbU4uEUtCwojAtkEEyM7E/oYdqg/lQ==","shasum":"1139994951060f997212466ca0354ab31abeb2b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609969454000.tgz","fileCount":201,"unpackedSize":19632308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9i/ICRA9TVsSAnZWagAAPRIQAJXym0+8Z5C5yKmQ1pXx\nqxLevsKw/nMXpgB2+2WkbN8mI4zUtXD09Qq74IhAyrPciChx7PlWxR/KWjLx\nb0lV9BkA7/7+ffPinFpDV13dVL3EdBBtmwyqvZq3Zuj6Xs2cRTNgNC7d+H+m\nyed1GUUN2rovqMHG8GwUOGlI8ySem1IcBXY7E70RfZunFUiGZUG1LE0j/prz\nEZ5E0yIJD9s6Y8I8dCsww+AQY+VvkPXz1PYm1H7EhSrIIWnqjLR3fpKYV7ra\nkzBCy1WrMHEbTyxuE6rggdYhTfvZSHdm/di0LWCp0DM7YsoN61NqyEQRtdOj\nKii+WC0q9rxSgxMfonPA7W57vCwNBO1gCNoMR/410z8MfnxYN3dSq7cFdgLj\nBM9NJ84E2LqUmrMn7jcZyD6mt+V53Kh7JrT2Xpe2KJXQ4FiKoJmsbWNsb2sd\nG/Bs+g4aDNctBAHdKozGsVQTPo2H6c+vItxs1oKPVNU1H4vdGzrs3XqygFZK\ncGBNgRM1auALAAL/xVxLwcVyTiLrsb0GO3Wohr1qIGvGULQYrvegk6S1ddv+\n2dThR5C3+hnxt1/0K/P8z+qiB1wISKTXlzpgeZqR4xOtjQ0/kKvNkfoV1f+A\nfE5C84pviSvYtOt1JX/QjG+3CbwMf1oUQcd1Um9JVSp24krToyZDQGzJ7A0j\nctBR\r\n=qPFt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6J39rWlsDIc6JIKAYLT8dT1UpuO9u0l97WZstzq/FXAiEAuVwmGX2Xlymwf9w5GMdkW0M/APKUNycLzNJhnOzPzdo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609969454000_1609969608058_0.1545531007717169"},"_hasShrinkwrap":false},"1.8.0-next-1609974508000":{"name":"playwright","version":"1.8.0-next-1609974508000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609974508000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-MZk9SaziKA04sgkV9A56QTqH01e5oSdmdoemi2eGXg8WymXJuJ9SBxrPkYE1P8n61+Q2ABOpL/m1wSSA9Yxdqw==","shasum":"79aad57446a5b50f4cd2c96fdfee63b7da698256","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609974508000.tgz","fileCount":201,"unpackedSize":19632323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9kNjCRA9TVsSAnZWagAA74YP/3udJKltJFXrsbuMZkeJ\nBHQuxzRI0ZgI3T6M0+Zg/9xgb25tHq3tCiA4lvA8ddzPBKYxrFj/F5N8llqg\nZkARHKVWKDekZXmC38F3kfKQA3W+/BXX8HwR8O6L3zQozuMUN0xwmc6fc6LY\nu4nItR0CRScQC5ZHMh1DerXw/QPR/ggVqUYZuVT4VnD5xSlt41WrJVQSwuzP\nGDgFBfrvNE0M3ecei+oA6RHNZTmxKq0zMel9PReIeETDgBvB689nF0ogQ/k5\nSiS/g6FjomhI34jth/ZXVgdWhwMwemoCSXGXmhUlMqMgORIWsEYqHeAHT5mX\n5JOSMO/hnu8DT/HVSFqaZsUyIGffI3448eT9gl9o8eroiH+2it/qTaT5Njv9\nigjbu2ROoi1PIybYdMV70O9iMOwaLrIg0rReXPg/VOl2NS0idY7/7TVxMQW/\nY5nHdcI92ue07053Fo2+8s+RE67JeX+T+Ryz4FTf9+9yrK65nHJ2jB+9D4p/\niUWFl464sF7pwHqZYpxzH0tN0nx1z3O+wJfD0m0CdN05v26rpQt8MUlwCRiA\nP57SCEi+bTmnBDQa3Z10ptvXdZP7smM2YMm9U/msanc/7ivSlNp1eaXdY4qN\nizgFMGAeg0flnd+FVll+lvLJZ6VW/B5Q/4QUDKMWmswI3p/zjHsPjUETE0cw\nfVMn\r\n=zlyS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDap3Lml+jCWeDGkwfWeCKqe8EEQAAzGv2O8DoM2MTi1gIgInpx3j8w1rx5+FdN4L8JUJotmOkQl/CC4HTmeQNoYRY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609974508000_1609974626566_0.8918553217690015"},"_hasShrinkwrap":false},"1.8.0-next-1609992171000":{"name":"playwright","version":"1.8.0-next-1609992171000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1609992171000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-xhn4oSHowyuYp6iRdDurIcH+8XmLT97Yca+mSTggaiogmHQCx/3Y9z9oijf20WKvcWkFbUBs9kww0TUZkjUewg==","shasum":"1e85338b7d940aa6455708a457205aae97fd7457","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1609992171000.tgz","fileCount":201,"unpackedSize":19605318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9ohsCRA9TVsSAnZWagAAubEP/1SIqwLQFUAS6DCwtqUo\nQbAn1ebcnLBJtNM1eQUA8CSSwHNM1We35sYjoj+k/oEHZOPx9WdKP8qLpl/F\nMoh+fQdASD54Mvsp/Gk2Mm+B452r8ZUT0VKwJjPgN7f49BCcgTPbpmX3kXoM\nKbppw9MV+OaecfPstinf/op9b/WY+dDw1w0hqKzDCDankwbgJIrnsU7ujfn8\n5h4qDAraLbgamysET60P9886SVJkvRfY/Q9a7xu1eEPq/wwNLjHkCewj/ild\nDg5K1jAvgJY9Fb3Rpjv4jdbm3nsSfz5YzR8HtH67NYb5/ezB9C9hHU5NbElD\nsGXs6DRa/3LfKjdsegabpw3VzLXqdL7z05Pm5WvvC+Wlw3JPLDw0Pilk56GZ\nuNiFitB9JNV0ijn7jpxgK2UT4IDUPLeJEBOyPG4wQJBAexzHwCwGtjMes3ke\nxXFtv9ebPcVQCr1eo+yzbBJY2JvPxYquSa88wBCTIzRz7zUauHTsXtdXqaqS\nbVRmflPnuTxz5ISVIlcfumKIDSuLQBMAEXDdITK6/MsXV54y3RTowwao8Xt6\nU7Jvny6hMgvUtHKeEweDjjJ5YlTdHMtzGEhZzBSqUGMckwzz5OoFM0UvY9ay\n2RGC6pTwrFyENEZEYXSZEoLPo8D1bt08wjYpsalhZz53cGslbsSCZIGkxW+M\nkQz3\r\n=A9P3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFwfzLk20hhlzmGN26b9O8de0UX2Zq4CUu00YGHTrahAiAavvs0tTGzsyaGEL22d4zMXGNinOZylWFD9y403vwS7w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1609992171000_1609992299995_0.4982968013487088"},"_hasShrinkwrap":false},"1.8.0-next-1610046700000":{"name":"playwright","version":"1.8.0-next-1610046700000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610046700000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-GG9KUztq1BfkPyDn44mHKyzpEUpCc9Oub67d3ZWu2XIrm4h0ClBjnMepNvWVg+EnJYJtt+yTOFehqDMyFFRpKg==","shasum":"3e13e49048a568265c2071c64eeed58325d137a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610046700000.tgz","fileCount":201,"unpackedSize":19624915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf911zCRA9TVsSAnZWagAAyh0P/15ZrvRhBa0d002yiaTz\nHrxVNcjIKHckusjqGc90hRLJTVCmB3H0SznXbuXYgLR0DCaXOgDcrVY0SBQY\nzxpuQytLSKBaSdqHvCFRtiEAgPZk6ziVerlPzrt1GN1ITLJh+2jzODhEJLp5\nVOrr5G2Tqu/5rBzNXnjNsNHiknr3jTH5SrMv3Jz66D6++el3AkdSkByTHD0E\nen3EQWrT+dVEY/AOlaPc5VNfq+SFe4VsOUv+iW/jda8WHTtYSSwKYU3rXSAd\nMO4IhUUSOR5BDiSpWhoOp9h61x8o12mzk2Pq6+bgzxDxwYFGx9f6n/BCfCs+\nFP4LwhSxjutopcVR1gJhtkgfxVL3RjkfEaOLCXOEN8Kg8qNctPaU+GMuUfOg\nwyR/zxqmScmORwPFEOKgt+rnXvmUr7l4epZvi/5HdeQIrpDTNeZ+k6770yGS\nP+YHath5PUE04FO73I7KybP8p+f83rkEVrwLnQH6vyVItEWYYBP0nOZht220\n3PbA18pH1AxD/ekphgVPkv6t6J8SSb4m+PkRQS+c+E/jrsiq61dpkAK5NThO\n16XVMYrRGr99g9eTlqpyMc6DKF1JrUXFabHb0c2mWXkJ2CrUbto/Hrp4NLkH\nPeRkqJX+r/zd73HBwmj699UyEDzEvgLCOlFoslMun7HF89iBjKv14ssHypHo\nHG1F\r\n=fhGi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLDNn+muib3EilCh1OQUYYwxfaH9+lzCq+/xGddCuJqwIhAJZWIzXH3w4URzZH6mdmsTnC3e/sUz8VFV7VurbdTIZP"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610046700000_1610046834578_0.1352498745673032"},"_hasShrinkwrap":false},"1.8.0-next-1610048765000":{"name":"playwright","version":"1.8.0-next-1610048765000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610048765000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-LpbxbQxSm6THy6f8mUHKO4kHQjGfTc18Ph9+UIO1+EZ5/VADeHLMFCHefrZMQVdB+nqE0jLUyn3HEIHbq1VxLw==","shasum":"1e528dd83e7acd4b7086ccfa78ba839c6f6cd0da","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610048765000.tgz","fileCount":201,"unpackedSize":19624915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf92WFCRA9TVsSAnZWagAArmcQAIARDaN3w/RmRCCa7cX2\naxnCemM/0dMc2QtVZUOQ4cBPycF3DCL8iAJFOHU5fulup5tdWEl8X03LJEKQ\n6yd/uNU3Me3EOtfu8IJ2a8jDFbzvbmYKrPM++Cl4yZ1dYADNmPYjIlHzDv3A\n8ZFM9fHhKquOzrYx79+atd+TyTkb8N6CblURZCkhLjLd3qSbpFjRKAUAAU0E\n7CJee0vdFg/h5xcMU1H28b3OYaC0UmzDidY0UZsRJAYneFzIgNQ65mfl0XCY\nwehZc7P+mBQq9Y0w93yl+xf746XsWsnpy7p2ponvIZuWsOv0o1RLxyBIvFCw\nfx/YYDT2yOkx5loYehguY7jSTrq0T6O3hCKn/1t/6kzB4LrVUFedh9TW1w89\nNhEXqpRsmJHWhEnC5HcVDSJj+w4JYigvijhWyyKoBIv7roLcUhT17t6FyaYe\nzMPJ1B2zoUAyodmPC9gN6k63jDdF8nVtcYcMhp7Aivn3nRF6BFfLV7hwDo91\n1KuNN7jbntqYEYjd0MxDf1xdkCe3wLhVO7VHpbx2RxlJO2V/1KVRtQ05SOze\nRlZG2Ppf3L86k/HzqvWtnt9MHH04AL780R13zQX0X1AX06YWbwQ2nuaibIE6\n6sVLxSktiLT3H+vII32rDAwrdmmoH3g2r10nYpooMGDOw3faS5GC+JN48BhW\n90nD\r\n=Tx67\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVCpMM8+B9kIUYfsPPa3EPlKyM02hwqZSvoMbc/hlFywIgQaWVi3TtG8PUldyo0m8x0qyEPxXJF5EGV3Z5QzeRW/U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610048765000_1610048900630_0.544612537975433"},"_hasShrinkwrap":false},"1.8.0-next-1610054794000":{"name":"playwright","version":"1.8.0-next-1610054794000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610054794000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Pk3mEZhu4Iu4qSOdbhbaxCpINmaSVGGR7NI9ShP6sQWNAuht1ivRunuNXl3YRO+of6WnNQTmTE1HBIMSW3p7Qg==","shasum":"dd3d360716db27c9c7667dbb3ff207f45ea2c6b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610054794000.tgz","fileCount":201,"unpackedSize":19624915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf93z/CRA9TVsSAnZWagAApysQAIqGp6Skv52TwWmTP64r\nTZDowkYm1lbFoQiVp59T1KC8o++pNDZHnGCiSl3PDkPPPENPM2CWYa/LbSFQ\nz/pNgPlkQeEsZukA5w2qosOVRfmqWZ4O+dhldaxyZO9JuTnoAf2YmcxWzsO6\n6Quw9kKLwzZbGFK+427pEFlfzpdjRr70VO/bhi14WMDqwgPFE+USIqiDlvmH\nUhVLIffVVVdgwBG6ZgVhXW9+cGKEta3UvU61BB5/I3lAlepoCN/D8ZgCUvtr\nrWj+j8nTwsR4+QytTJznd+lzGlc/AgftRndy9quYubwgdu/kLq26evW5/Yrl\ndlgsbUvbh3Se/eY9MSnNrOBXuJ0hdFg4nJmCbTxkhxRP4quHGxzUeGLdOqfI\nBr/u0Ma4xSWWpycmTpA0eITUw5QA02gyjFee8Tn+hNCh4KsQ52Hz+3NXMSd4\nhUGs600aPhjS2tlXHYqriF5bjhULjKNVntV8iqR8QQLOWWBb0+ZC03QsJjUf\ny/bd3eqA71oYOLuL0Me/XH3cJXAJAUCCStsRIlkzpJprQV5CPI5W2/UkvinQ\nlRQA5WJY+s79g9V0KAwgaGwvcuBIKXZxRqCeLF0VtnqyWmXYs3pbdb1C2C0g\nPo3ouepbJW08UvrO/Ud7n1ePGXILgUnHQTfuc7Pr+ZXPC6XBEzpRpO5P8YvV\n7lma\r\n=KDBA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGKG4DOGgzAojA3n9mmrIEj7uBGVpJFrVAx3u5K5+dcQIhAOHvLaoJIieSdTQDhyCdJTj1Ck0uFTzVtazmev7Gpb4v"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610054794000_1610054910698_0.2917639589601013"},"_hasShrinkwrap":false},"1.8.0-next-1610057579000":{"name":"playwright","version":"1.8.0-next-1610057579000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610057579000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yOO80Rn+XjzNzYd4vj1gPLt6qwvNV9e6zEraAdbuDEL4xlYlGYh54bJaRyu6pkuh21Aq7xILlM1/SpdZaajPdQ==","shasum":"5c9ba76acafc3302652a1dd8a6e830a057c46b86","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610057579000.tgz","fileCount":201,"unpackedSize":19628615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf94f4CRA9TVsSAnZWagAAJ2sQAJpkvG5Ub43O9kCpt3Xc\nMrLN+1Pwy+ihwI98qGqTDn7M1R3tVwsxuNbR48MeoCI1ZB5Z+qycbOn/iVKa\nWWME0yR0lb3N1xlvsPecTGw869BnFRU1N/UohzdTlNomKVSvvE65g083bOJT\nZCoFLAbFWzYjPfLOE5Nw/r4JP2kIOgD+Brdry7J8tnLsJI6bxympl4CaTpTS\nOvrUEWayq3h9ibbYhkUXTlx04/6V3niCktCz2GOI67KYjgNbdsqAaGmi7eXx\nnkbw91BO8E6iUsYAALXNtKljxoTB4oZ7+ELoxPqjws0gLUjDxyQriYt7CQrK\n8MDxZvbs7pSFiRlIKEX3tAWC6u4pq6uUnrr1sGF6BnagEAgHT12CH+ROoPtp\nYHR/N0mntL10R6axvzf7wC2WEUORxQETPDWdkWGU0FzsmURb3u1bXGAu9NIC\nZCQdtyQR/W6n8ltJNYSJ4Fv2I+GQBbGeGMY0CLbqiil7LKdZ0eWlsPyiUBYo\npucq0ExFS3kY0unY1sUWJezzRysDNFZOF0Ax+tSA7RlVHZE5oR3SFTPUWT17\ni9TbBQ7p5m8LIIyPx8ayJWTbR46XKQpwkrwJ4tyvf6c4oWxs7HZk2eyaFGiY\npWnuNXH6+YYPE8OjKzmOB/RRXn+oL5U4ABWxG4MEA/7vZ7Yzith7l8g04m+f\ne8+h\r\n=PZFf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIErBwhXXYb01eGDoZQ8QBsOYvtykFbhVJQLMLPY7EwVIAiEAjR5FPQV29qCC8rgUaaij0jd7R/GCmM7TLvfvR1HBO3I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610057579000_1610057719887_0.6919377572124892"},"_hasShrinkwrap":false},"1.8.0-next-1610060049000":{"name":"playwright","version":"1.8.0-next-1610060049000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610060049000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-V4chUr9X2U8kmbwq9ovYo1PO+Di2zNKPjjE6RKWiUMFIi4tV8Ow+0Z7EU15P4kEoQVHUf8rvqnKIJyy832ASyA==","shasum":"fc0458a5a5dce4e35316f88998630f083086c04b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610060049000.tgz","fileCount":201,"unpackedSize":19628615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf95GfCRA9TVsSAnZWagAAGaAQAIMrPFgNmdxbS4dSUcg/\nv6IXyyRDTwE2yEWWaGMGKrZOwgiPd7+P0+GmitCqwPpsyRXcdH16Ya8UOWmE\nsAnwjZQSOX7ybmyIZxqHNnKWopauZjvgY2AG2CEg4Ba6s9Zwrv6Q+IW9RB/w\nb0SE6LvuVhb4q8/nWxbrq6QCMXTkl1xqVJhv9L1s7l1e3fSREq29s2Mr6RAI\nc2vVi7rIMvmZIu0tjspGpDYthCE0SrDSYt16UJT9ri3lghNwjk/E3jy9YDZQ\n6f0WYlvapv5CfYZukjIhhbiYB0Y4jv0fAiOdlt1OsUzfqKDXbJGdO1KATGvq\nYosYUXXNJmag9H8NAiqpYUbZgRIOnEkArhA4zyjWhOCLe3rWRljfix/XJzYC\nZ36iUwDQmb2DTGsBnxqf+NUYNa+CO9INKVwKNjj2Z7FKGAT7+5zOSkcgZSKY\nBP5/sZb5ghSQ8WYHVEHon56rX/g/2wsCc6uUcd5oY4Z79wHZI3oEeLBW37Cd\n4CIc9m1ZHAfEIBz2Fh1c/Xystam665rrz1yeZmpFF9CMi2IsiNomjoemii9r\nmB0Yr1mLuDeS6LvI46Sw6+OlryeQ55TD7OlfLNNSKWqs1g9hMZFcR3W9/wSW\nBvtwVaUBiDh2pr1CKKZxnvtsunFzH2P22ocioTWCboKn2MGi6KIqZkkalEcZ\nSANa\r\n=qX98\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIT3uYJptsm1KzIxlpp2MWv9Ju3FMyRUr7iN/4d7PQ6AIhAOMuSoqAj/mI1mPXMVWMXYjm4d1L0lmqvfrUi+mAuOPh"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610060049000_1610060191101_0.0981655740563423"},"_hasShrinkwrap":false},"1.8.0-next-1610060404000":{"name":"playwright","version":"1.8.0-next-1610060404000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610060404000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ezBmtvM/uep1TeK2QcMS9y/LEM+FdLooYPtpymyg8ISCvgXjFF7lVB/2iBB5oSJbz+1I3xLBSM8FDJajl4Eewg==","shasum":"ccef45dd0c93fe060d45e43889b6ced8bb630a15","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610060404000.tgz","fileCount":201,"unpackedSize":19626735,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf95aoCRA9TVsSAnZWagAA6TMP/i8bgXRqACGPOaZbASDs\nm5R7zyHUM5QUBpsEcqL8IvoPP5WqJ/+bgKMcdKmAn3DZjZlkUm4SUDvmkXjp\nKIaScr/VTTBWCWxeUkLgLb577xntuD/o6R+N60LvUha4+XK80B9+mv5AN4Zr\n8PlE/i4IXGh0L8KDoGG0yPzWbMKWs5X9tEeXdeeFH/np354tPUycwNgX8c6B\nrkA7ubgG9j6cHfr8aCRbz2gmwrq5Sp9cnUVz1O4RuqFqXM4+aOau0s+4d4sT\nRnmOHaQ9FsrQH0GrN3JUXosmzXZdsnORUUJsxV6zC0cKURMBa3xlCnMJhzoQ\nFZ84EhdrDuUtGz23E6fCTVPlw4NQCHZG6/U8CTVAXPifWRpsCDcAgXZENzyU\n7vlCLa2hdq316EZke6Qp5x2Jnh44vX81d9htboubQo2u9FoLvLpheFcMBXLc\nVzHuoAZvzq4wlAY2oMS+Iif55Gc+grjDtOxIpnWppbLdjOghTBMHLQ4SBxMW\nP6b17UFXnryqd25XoNXXOJfwKyUo6LOcYH5pEHGxctcOUATK6QXgoTtlZHK+\nbGfxQJ7iqqIyN1EApq15TxfR2yzeoQ39QtadEXvOr6TH4WKa/+c4WrAJoQ4o\nSCpzL55T8KruD8/+GlA6IOjZ6H4AUXt78SFUAmlOREkzGjRxvIajheVZy4cb\nxTkz\r\n=ZTCw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNJp4RgbwKJOWflfKEctM6jWzv173Ed7Lq+tytTvFoSQIhAKEuyPU8NDbbze7He6EbXncK+kQgIZ5Nj4eT8DUocXlb"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610060404000_1610061480115_0.9028785286711523"},"_hasShrinkwrap":false},"1.8.0-next-1610064745000":{"name":"playwright","version":"1.8.0-next-1610064745000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610064745000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-NjBw+Zyd9qMHKpQYTzox1j+BpHuLXfJSZVPkWbZ0pNDNynraFR86sGRWkwM19VnR4WBtbvXEM85TBtsKYCMqlg==","shasum":"fe07420a75815af3953f52eeb9c68edfcc85d0a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610064745000.tgz","fileCount":201,"unpackedSize":19615587,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf96PVCRA9TVsSAnZWagAAakwP/1HOcZcgirWcLInYyAjJ\nKSnXUoam18MzYG8H0dfIQuKfqaKtqPa/142G78xXMJLOsrDwS9IuOKjzLkVx\n+gpkY4kRIhokcV9EzyNcYRUOYkenlU+JujsiaURWiWbv2yxbPA4NdH/PF2Rv\nVfG1qFSt9R028o3jgGvRGMszS+bGCeuDnWDnLpma0hbDHfG7Lso7DjLvhDR4\nxHojpOjRI4KqjTEkPfaQCGHViW2o26SiAjyHVh0euve0Erc5DdxdsPCUE0bW\nnQNunuxchEyVEDWY+EaDLmWqij6TAEfHTTWJMG/U/2H6Ha0kt2Z5fmYRE9lF\nmnUmWO0aaO0/4QhQbtNwOr5il1YK4QQKhuPCXEYtjdEdHOkYm6mEfBP9l0Te\n+FtRXlwO9sE1knwZ4stOv51xcmqYy2K/3wlOuVmYZ6IP9/NTaJHEiLl6tPSR\nKhwQg+lIKTpwxXs1z+aN5Avu69YQIx0w6PJ55ZmFJ10V1J4TEtA/bf2rVGqO\nxc3ZqMTCCwmULRlrIlUOLIE4XNJ0UnV13pdL3bgF21gqWK+3Xi1ZZaUxfKya\n6AVfaoKDnNZ3wnCKvKpXVpa5Y2nxdSvXgdfNI9d4Pw3Q1rTjIGlavB6GAiID\nO2IPJl3vb2v+mBcODLi88fdMXMhJ1eH03ADXm3YEG1KBqnjfBqKxaCRCdlqs\nZlPh\r\n=5vVE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOVA1DF+3uvxW1WYE6eaI17GWGKUcj3Okakyzg4G8BgQIgEU/8aGG5G6wI9O8FsuCb1X8E1N50HS1OncapELsQCmQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610064745000_1610064852418_0.6474466916208534"},"_hasShrinkwrap":false},"1.8.0-next-1610064934000":{"name":"playwright","version":"1.8.0-next-1610064934000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610064934000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-B6Zzu6IFWeZhjqKJYghts6p8mEnojPBTgfEh3K2/Mmk8if1IpZOOL4hE5KKEATZYr7xGL2Nh0tHEvuODLoKeMg==","shasum":"176b3038499a8dce8c5ba350296419daf53e1a0a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610064934000.tgz","fileCount":207,"unpackedSize":19862149,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf96UICRA9TVsSAnZWagAA3kAP/2geL8k3KDa7620Ux1BM\nZUTzp4WfHADOYgJLqlILoGJ80O3uxuj/cbPEtsnfVQxZUY8B3XHIDXO0/yIN\nhQLGktEEgX1EOhiTX5AGyRisDmbDa/qt+mvA4SQZzKYgXPdZzYy+LS/rvd7/\nQk0i8OUlHQqmCfkvlqHfnBVle3jitMHnE9al6V87gkWV5uhEOi2pB+wTyBn0\nXidum80luvAlZo9RJXPfu5E+NKjlU77VlSYkpr4ckpkLbRY5gR8nZovA+Xc4\nhc9mEDNzN9aCPmFT011c3NMER0eKdqwkOen3W8/Ujh6EbOFSOX668rcWTTy5\ndaEQKOd3HwBXprtVc4JGRBjh3xdyV7/TDCPkQUQCQ25oqyVSbpEIEH6m64Me\njtufNi5DnWbCzJ5MDwuNzezXg+Zp7DdyF2Yw839YO9wLMcbvsqZILbAl46la\nUVnJDB39qzVZpR7vrhBdHRj/IzqBvxfbd5uTF9fqxVTizfVayUhY63ftWKfl\nGUxWKsP3en2IRzFMANGDawbiYm5T/13eZzX8LMiiBsLzwdZ8TQQPkky5K+z9\nkz0bJWgh6S22AgDMKBNIehDkjBQxvY42LSkkvtnQBPKLltDGsrQxG1iouNVx\nNHMOnBK69brDChakDRdP8xeGC2GViWLHHGlU2EFsmkpOei3YAHe4rqTVYEh2\naJYF\r\n=OuRK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICkLIK+CAMNZxe3uwNww5CL9Ing3uts2v3BncGX5GOI7AiB1SJZpFiFKyxZBmVzlnu0mHXff7vqYUS5nRS4uHGMPog=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610064934000_1610065159429_0.9379459387282234"},"_hasShrinkwrap":false},"1.8.0-next-1610091473000":{"name":"playwright","version":"1.8.0-next-1610091473000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610091473000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-xDiN9TlolC1RtWcrOoq5i08F96njmMwNSYGhCKyUmMDgb0gPVKgFeqQePPzjt0ErUMK9we53Q+q1SEAd8KWqOA==","shasum":"83fd7a485ab3c020f3d38602f6465e3570841704","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610091473000.tgz","fileCount":207,"unpackedSize":19874153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+Ax5CRA9TVsSAnZWagAAJe8P+wQTRlA8RwWaAMP2XtQL\nWzBi4xd+2tSoBg7WGIwCoe/yVEgqfEZfd95U0eh8WbcZa8wOfPtyYWFl9umV\npPKT5E5zwtXr6Lj4EcTSDYhneVkxU66hrv7sXGJNAYLOzVTn5GctloHbJTj5\nyHeeIH2kpAeFErxNVz1JWbsl5a/z8m0vH/ZrFLH5gxCRLI88PS/Qqm8Kf5n0\nepHaQx3NK9hcwVYYbdE1flIoB0ISwgjpt+/V5AlE8zExFA1PAbEM7hmyMmh6\nX9/91sOf6c/4Gp6Ja3am/qirK6M7KeLOLcBS0dm+9wJmg4XoTK8EQ/t+H1D2\n6woHOnZvL65gWdZk6O/6MYhnOnbwx+lajvZ5fTQ+An6/OwLscwE42Gd6Uxbw\nmog44f0fHMzOQqAV2fdYi0nB7bBzAHSTrEyB3EFkRMWt/C38vSijAx4tEy1b\nlYh+uqj18omPwz+nSQLBMjPHnfxJOd3m5vsCjDZI8dl1/6qAG0YYrhjGwZ4z\nYeEIDBqhcpnuu3SrGDLdFBbXoFZfIMvvBtPe/SQZmW9AW0IEXfhqGDgHw5Wt\n22fJiGu4B+6mzE+TYUakOb6XOEG95HoUQnhiKT0miZTC/xf41aQFOmBCxg+z\nd0VTZRwj1Gs6s8OGHl3eVTs8Xylsm3XbyET9grKRmhALLMKokxbvIjsCM88A\nB1u3\r\n=+/Fo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMg04KrVYwJUALREdPSL9ECbysAWAd8/xTeuPbdrJo5gIhAMuoHIw0siowtCUgRXPdNIQSTvm7niw7RHc8aX8RvuYM"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610091473000_1610091640490_0.3709425591603712"},"_hasShrinkwrap":false},"1.8.0-next-1610114679000":{"name":"playwright","version":"1.8.0-next-1610114679000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610114679000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5Wdo3Uc/0pDbDriuqZvNB9A3KNikMpJTi1Mj/tYqO+WOX+fDGjTHPPrMrBVmYMvAGSl8b9b3L8fjub7I1crx3Q==","shasum":"805410067ee309a6794b4dc28d71b0976d8da626","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610114679000.tgz","fileCount":207,"unpackedSize":19874153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+GcACRA9TVsSAnZWagAANX8P/jCpMzykWOB6Q1g2Lg3N\nEjp964p+jdKZmJ8vQWC4n2kLeK+NykpFjQOCcoftl1eh1Mx0j1rcngYqIQw4\nLaO5c0OyAV8ovdFCMQzJDmNkm/qjvErgMOQ5rQtnWRif9e3Pf28a1xza5geF\nAR2B7s1eKByzgzh9VM2w1vGiUbNII0nwdu7ASAUx0i95Kzrsu8gXKCiRGmTr\nfv5b+FTv5uLq9p/fKaaJx4VfC6efltuigNO4KNOAZbdjWAcYuB/QrAFr8g/8\nwP5sbwBBQOuJbzLjL2EcLJr5yhYRJOl6I4np7oNa0xsCa2ar6bRjQwIVn+Xo\n3ys0r5YTRIniaihMCtOYtyUlqACfVbu5TJWvkdaJOyn9yzDFkC9udz02wKAI\nOTU8NHRXgA1itIs8Titqbi+qWeb1L/GrMvl9TpCjuikVzbNAAeQgU3P7GdeO\nLoUCZMIkbZ/kroOkIL4kYK+MrYDgKzefOX0bFgikmio8inYxUc3umYYZw8QY\nkikSyDGy8jCwHGLiy7jvZ0nXSHMJBoaCU3nY4rYxt0AXrO2ddHMDKOf//t3r\nqlmmgUndcABq4twqCV1a3Tv0Jf+sKpOfINskY8SkAP17kRjPPzZbAQFZtXlh\niQhg0F31k6eK1TC5Qt/OxN3gRMN9vl+Dx1VD49EqucKb9TBLVZ6p3/U4ekrG\nJ6EX\r\n=fv9E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAMnGDabE15w4FbeBqoMpqLaWjP7dVTYCP6KWJrWRddBAiEA7UxH9R7YxlFhTQNTU9MQ00fQFJxry9YZiLG9+Jvdwbc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610114679000_1610114816049_0.31371268286142096"},"_hasShrinkwrap":false},"1.8.0-next-1610123973000":{"name":"playwright","version":"1.8.0-next-1610123973000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610123973000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jVC4q8biKjnG1cjaawQRegX8IEDpLPjjSVUXY/33Z03O9CUHus7aXOlEgkTz6LOshN7AXHvsrDJLdHGA0KmFaw==","shasum":"e8b6e798f285bb8c95ee91ac23c69fb1a5f03988","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610123973000.tgz","fileCount":207,"unpackedSize":19874153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+ItTCRA9TVsSAnZWagAASUsP/jZ3fMyY6LTL+5JnO50u\n7lKGx9Xzy4dF3iGswrmuj1qWHF/VH8PO3EUABFVXoMmWvYvfF7deUVXg5med\nFKFwN6wiQ9i2iiz3QKNAAKM3vzd6CnXLBN95QZiW1tuYDBtlzZ6+fh+KFdi/\ni1FWKHtiXiJIkKWGPRzBir1apAqZAvB9y5wmxTqiVVexaDyKmC/Z20kuH87T\n/rtHDzU0JQfTmAanld91ztcQ+LvH1useFgzjaw/wdrHs7FbBkhh9ha26w5kJ\nhbQjMNQf9z/Y1OlYV1mSq0Z4GFDoLK72vUhN/zRhHTWpAWbWD2v251KXPEQS\nZESOqTWGtHh3Q8r3A2D/p59JE3ELdxRRmZpUokd85HARu1wclLkUJ7w02HSi\nRxBtMqgxDm5Kiyg0+iogOmD7vC0nyT9jKobRS8QTjiPgUYmSvufB4xv4SNsk\nwK1VYdOhrEOYrjn5YbTvrnGOtXw9Jc1xiRfuakJCE4AhfjDmU1raKnedIBOS\n+DahL4b9A3ZOM40ELFy1dzkXubTZdc+Sue2CGktfdGP3QfawdSLV2+UV2sC3\ngAFgf40pRJTNLwbi5XZfuBeZzotfRWdL52sSbVGDnlhwO20wdQYcyoXSMDD6\nYh4Gkv3u5e8+NfLh/eXvYNLOkfPVqgIQCswRZHKdHPsYv9hgl4/4rPTFYxFv\nDxbS\r\n=DksB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcIXjQFtJMsFdo/HX3yTVu88s7DfZbaM/7TgLrRmv1RgIgN+ToSdxnmmpLO+UldWcbW02bdOOAcFxWsO/zlOSgIOs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610123973000_1610124115107_0.15432163779634145"},"_hasShrinkwrap":false},"1.8.0-next-1610125974000":{"name":"playwright","version":"1.8.0-next-1610125974000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610125974000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fYNZ5uW9CBkGJ2JLWbPTzvgy7a9jecEktUjVyqBY7ge0xpzAiFhPZWp4G6xR/s9Dccx3oEAvzmSVNG59viakQg==","shasum":"530458272916594e91a0a1d55318f83f61886cdf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610125974000.tgz","fileCount":207,"unpackedSize":19874153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+JM3CRA9TVsSAnZWagAAOFoQAIPwisMzLG0MgEyiyRDa\nT322bCkAYGBBV9v6z8Ltl3ZWDYXt4+Gd4+ZKOpOVhPRxUbkBTVOU8Bm31Pxb\na4LdW5uCqT/pOgxOkyyHdOqzYMYMZPR+lenc3ovbabcWkg0APrLzNf9/MuhF\nJ8QMtJRIjcuo8XyfGkb0/t/91T7fiI/9pPt3FJumkmdqssrLeBmSF0HmHprw\n/euP2TE8K7LdCaLH5RhNDzm/TY+/s2BVzY71miohD8rcY+bOsFBN0UjGl/3j\nGUJtJHoIEDO54hDb6KC6u6e80YFRSSFZvm/ygImKk1nA9q2p1XyuqyTpz03D\nH+Jd7pwajR2J64cOLQpzBYGcqIrVuyz7cmyaNwk/7xmL2n32RldVx0ZatxNL\nhVFHQSOxcoTQt3lSGBz1fLvXlM7iE5gUKYhKXfmGG5AHXmNLC9XyJB7adLb7\nvPT3cTirNN7Hs+gAoNOgH3A2wvr9TG0c68thtfPEBRxO+YUes0YBxd16mXGh\nJFs/W8noTmp23JJEKqTA1XIeH+0QV5Z+ytbVb7lGDxdGCBnwcgrNRNfnrHOK\n8HlbbcwUknYL4RAbUZpNH4rhyL2magKesC03dug1ZEvsv+9/ArTSSeAwATMc\nXyAdlZHj107e/2xMbVOuK3FAVFMf0+vPafnqr3GSJi1l/2mbLo1pME6dtdjs\nNzGr\r\n=5F+P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKAtM8r6AMh3rW3KXd8+etQEFc8sxBzK+aHCZZKmQ9YAiEAknmRYlOPpCvvGlTXYJJjXgQel3V4tDytXyUFDfutN3Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610125974000_1610126134614_0.6704545305993426"},"_hasShrinkwrap":false},"1.8.0-next-1610132364000":{"name":"playwright","version":"1.8.0-next-1610132364000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610132364000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-l67NklNn7MTX6oT5UdIAO5ula3MTfFJPFfHu2Ojvf2t3/iqcvv1pYZC41K05g0CPNp+oZe68OhjaR8bh2BgPIQ==","shasum":"d4c11c9bf1f911cbb4bd1668221d14adadfb34f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610132364000.tgz","fileCount":207,"unpackedSize":19874512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+Kw4CRA9TVsSAnZWagAA2AMP/2j/vzl97+4HpStKQsYk\nI3ukvVACph5ExyB67PV2M2JL9D/kwt6QNtkFEX+R7Hp3Vziz/vgRqlktcJNJ\nmz6A39kfPjYZEwFKSIYhqXmv/gkF4tzY62PJe9jAqkY/uNN4Hh91zlP6XJGy\n2EwI18VQtv26N4zgj4TX5VWt61LZxAcKd8nlSIfXsKErRLt6wfGhA1deylnT\nxtHipkeOOVOeZdnT+Bmmg6BRD5EGbx+W9bXMPlr6RmlsiojZT8XcwCeJVvab\nJEfH+WZFR9i4BXwDnaVmIUcgZRxxb8BdiU5cSFWJoWJVZt+7kgdGmKaROJX+\nw6UhEPkqSBOKmUn9LNkMtKQQ8DofodMERl4AP1lORCDFzs9im3ic3muVzCyb\n6D+WNw+OIqxhpeIjXLcoTnjfr+EQzMHS8sIH+Q2oRBrPpAMxWrPsEfc/habw\n55Td1dcign3V8DVSIWI31t3uoA/NSG8Vny8WnTGZIgICXHaELinZeR12ik9H\nimr6e/jkWmz7vo3qrrCj3Wa/9ZDJaboUSjjfujNz9UqXYo0tkJABTT6BtC/F\njJvjS35XjiScfMrRb6BVXs+9StOnxdejrYo9mj+fbx0K4Ey8Xdu1PnzITmpc\nrE7oh4DTVj1/byN6t7J7e3FW7ldVr6++cf42Dbc+ThV6xHaA0qYVg5pskCOn\nuWG/\r\n=7m4v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdsq7XlwObN/Id90G4JVeC7hvpjJFT3TLgBF2TOUpsbAiBWZh3x5rskTZjET2GeogloHv7HdI9zagVgsgMdH6MEXQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610132364000_1610132535390_0.4332170899117269"},"_hasShrinkwrap":false},"1.8.0-next-1610137450000":{"name":"playwright","version":"1.8.0-next-1610137450000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610137450000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-EYo0N9Iei+w/8ed8/R5ZQTkEIhYb3lcqp69Ri3tMCc7YSmG2KMnESbpVUhTwsxsficgji4G/LkO7a/QXDpXWkg==","shasum":"42f46317deaf28e2ac8726208c918aa79e3d519e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610137450000.tgz","fileCount":207,"unpackedSize":19874512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+MAUCRA9TVsSAnZWagAAH/EQAJLA/898026P9/gMQYZx\noetzyRPeN/tPzkV72PrK+hpyfuclB1TykUfstFDqqSkBjs/QqfvMLlpLILuP\nDWdFtz649cdhMGxohkSj1oXcO2MyCw6ZgMbo218ckJ5wPJRz6XR2tAUuV3n2\nVtADa9Lo/r4iVoGFHjRF53lylcIR56rzPzX/1FHRbzc0mEGv2Up1OyEWCG/9\nD7l0cEpIFQWT2sBP5SVZH5IO1FOGOKc6+mFTTgEBypeSFhxi1+Bkra05+eKa\nhaIg06NhL92cVTW72gvmJ5zoDwUdmRumzVelc3vaxP9dn3IxVxkP3JnlUDVS\n3dh/f05zKlXWvX1zwKVtTX+noH8/GzP96pG6F/gqWVDrrwF0caOhi6U201mY\nr5HI+s3UH+KiZ+OAA4YDqxkDuwi0dnMz9vnrUGEQdhaLYGGTLrVFqE6dD2ER\nlG3KQJMDELhvO+59mXCGvpTC9n3oomGgjIWPpq68bgV5RW65PTAFdanq0GpM\n36UNYcCY3MyrSgPk5t0JyXNoVdSSr7uSRAP/dsSEdbYWTblxXH9ZlgjlkKeb\nMai+Kq9/+VD0CAwG7gtId16d6FvS6q5ZHD+SL74ERT4EuTfCOoQn7GZIzf48\nNkfx/sJoTkRzcstSe99Tfn3lCgS+Z3VsPEZGKlbcN4Go2LG9S4P62J6emgNM\neo8I\r\n=Tfe+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/SfWdOvx5ot35/syf63iwzSw5ffJWQ3tZQafi2QDVuAiEA6iTv6Mr2ACpV1+B+tHMT8ln378VM/Qr27R68hGP9io4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610137450000_1610137619838_0.9056658035722296"},"_hasShrinkwrap":false},"1.8.0-next-1610137674000":{"name":"playwright","version":"1.8.0-next-1610137674000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610137674000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-r92ZjMffp+Kha1mBX4V3tf/8tqCoGym8b25I7FANeNxLaBRuJgkgymtDq1mHG+8lWCFa/ESJ/Xcx+TfCyv7lyA==","shasum":"92cf20d2522ac15f364219ac6a9cfc929c57e284","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610137674000.tgz","fileCount":207,"unpackedSize":19909118,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+MEECRA9TVsSAnZWagAAy2IQAJa+nkDj7ZNg6iY4Z4QB\nNNTSgzFI3zFQCHI93XIeCnRwbEdN5bwBbcVfr4pUe2OvHUxSsDDjhu73HsQL\nrmddzP5qcv/SxQoHTyOoq7BSuuIROcpTlFzPzdyDEuvcZTxfe2EU0Pc6YQSZ\ntlFHYBmEu4KDiEhhC4NPfd5YOKq0ndyAIV/ULduK4VPhrFIrbaTAZco8nUSM\nihM43YK9JT2x4s6DL8ZEdPYBQSK0OBcUseDgt2SesgvDXBu0hEE2b/3Xkgoh\ntP3DFLVlruMK6reje990vgCXOK6wr19zzB40j2HvGiVS/7t33Ptl8vEzHY8l\nAo5UQeKgGEDHfchJUttaZXxGdzvhbYCWPBXiYHZSF/evyBNSPyM6bS0KnXiQ\ntcVI8l9QuLY3xNo1K5ChOsJ5PPJisvm8yKXxVLSXxB9+IAnJLXNZFxCUMjiV\nvuU9HUWk03+qOqlrle0NeV34FCwW3F0M36J5ZKGjk6SiOEamgt984/TjkPzL\nc53ji5oRKnDvtKvMy1zUaaPlEhSqtY20Kk+RrK5iYxpvXvjzrUgAHIRFMsJ6\n4jQk3L33wi0bR7hZeHuvf7uRHrKT0AADX/K6/lh2A2a2WPCmX1i9sH13F4nx\n5dkz3VqXkW52xykvVQJR4QR0neDUlb8lv4yKWP7/vrnwW6Yh1hxCjaIhnaJ0\nOT7U\r\n=/SQg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9d6dYh3pt2aPv1L2s8BFKAfiQGPTKFHYdSDP+/iUJWAiEAgBgwuULjKFtoFjQPj7VT19ZdbZAtvbYnj+hxtb00Cls="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610137674000_1610137859984_0.9622567839728247"},"_hasShrinkwrap":false},"1.8.0-next-1610146303000":{"name":"playwright","version":"1.8.0-next-1610146303000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610146303000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-T6djZ6KNNKGYB9qD/odNxG/gVmmxnj8Wc+Njyc+BqQScqBa69ENB2BFSTiWUZzlstG2SM1AJSDzOWVbsZE09qw==","shasum":"37ee0fef6039b3f7cf79a8c6d13e35eed3bb1366","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610146303000.tgz","fileCount":207,"unpackedSize":19895809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+OKfCRA9TVsSAnZWagAAGCgP/1KMJViGBEhUvtmyzk1C\ndv7bN8eRzRDRJdIkXicpy7Bx9w6TtezJi+Yqmg7niK81lxjIs7IG+8WesGBM\n2pX0NSWLRnzRva+NfyMpQ0O1Jix02iK/JopC/5SL15XJvgkYsOQR1v4FbEpU\nEjMToHbQ+nlwXS1AbqDPv34wL9tp1oO+8vkAaOvnTIL2st7GDJTMq802MMIX\nQsEg8RC5Ji6YbCqVNguPrZC4ImBF7JM8NYvn/49GQNaGkZVxM3GY4YPYxz8r\nvG81a7ASQ+8VUr+SgnnPiA6XGjE8pcAFUruTKc3cHRsg+mhOU9UcyV3Kg4vv\nnKMPLVilpZGwOSdc97wGSVnPYmJjRA32oXSMXokZ7q8+cPeKWOB52T8y9a1o\nuLNAzzAhdOKU8Q9Qv2jHagsK2bXLXyKX914/E9DHkwd1QNunYf+horle0u/Q\nvutCIdydfr7l3OED8/wbQkwaHWdfKzYBc9AUT0moughAunAk4/AV3SDFSllB\nza5AZ9jhZYkTXVFi5+T+WPFQN5SpVFin1yHNzgT08y4ExsjkAjqHuuwJY7RE\nAtkZa/A/a5sJbNbmhxrr7KZtqvZiZXsYmdGF6pIbDdppSC4kcECmR7QhYhJ3\nxIEIFZLoeCsMtaO/guAw2h2fxLCq8DYi5/4xPLwGdekfJdmhCs5Ik85KHGNJ\ncBOp\r\n=i17n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICkkyFRs9fhZeW2fc5dpgAZdrd+t7R1SYHqQ/Q764l/oAiBLCl/OAgzWY78O5ALFAPBYToy6nRm+M7tOvABnCxb3yg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610146303000_1610146462644_0.6185835422208308"},"_hasShrinkwrap":false},"1.8.0-next-1610146814000":{"name":"playwright","version":"1.8.0-next-1610146814000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610146814000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ayMFZUdV+dMzFacB+V7BUoiXjXlBshLS1SZPBsUfwOg4q2ghcf5y9TwEWoM/W6nTn7YgGb7KN9Fy8JuCQuKCRQ==","shasum":"6e14584d951a9aa329b18ef2fa7eef42cb6a515e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610146814000.tgz","fileCount":207,"unpackedSize":19940031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+OVBCRA9TVsSAnZWagAAQt4QAJqxut2N+bQjuyZvprYe\ndeIOz4rz/at4RTZC41OOY7WH/reFkokJ4V1KS7V4nE14LT0p4VNin8LZDv0M\n6ZqQwepVVxxblIAWDIyzuufznm58cW1pgsc/A93ByCcX1rP4Z6K1UaBAcHvy\nASnkeq1ViT+QX/m4zxcyaaMN1op7WM2WkfHexoXYj5OoCYQHEeAcOnC75lvM\nQe6p+sh+//AwQDW3TxHm9lYSvqaWuyj0xoT+oWqyKrVt5PukLo4ScO8BA+Qv\nFVTEpT8b4p78miEeeCvNWSLUcK+i7KxcYGaGTMlAjzgklWm+DBXSCSZlxE7g\nEFGjhzmOG4BkzLINhKBzDQ5D4umg5JSZt33aYmdLUp52kTpgnfiJDMTpA0aX\nOepkYcm2ar+Z0Jbin0teX7f/KclJUYNr/8wwQp+r6WzD+GAvUF6DKQlOi0vm\nwDM6VJlGtVEdx+FJDWDYsgTtuUa5d39Clgq3knWJFvjMkkaJRNDd14NSZAGm\nalbOgE5uWlgc8JQabIXOp4+oAwtTXmeEb31oiB0xDI7Ivd/Epaj330MX5jM+\nzeLKIHtuu2g1bTzR+abA9oQ/iNNXZYtuONig1OWVkoKnudJUJNqbnRP73FPH\ngKsJ8mk1EBh3HjA8yLqmkyUN2E/0HF5aYn2YaD/TvkRJrn2qdnztx5YVG9EO\nWCz9\r\n=daU8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2UHiGOGZ5d4dwJaGHk7CwkiKhZ+09ZeEkeIFT840wBAIhAJKloeaOsAeQI6xQpZCI3HLuYXgehrMW7rOteyj3tdMl"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610146814000_1610147136568_0.0003005916863616509"},"_hasShrinkwrap":false},"1.8.0-next-1610149328000":{"name":"playwright","version":"1.8.0-next-1610149328000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610149328000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/HJoaYS0BwBcW+LMfwratST9zHPjMJQAxE4d2xgD4+f3mF+wq0r9jys+pVoUHBiKIJt9Ul6bBNRLTyoIdp18Vg==","shasum":"0ec53ca559d6cdc2502dfd0406e9e9a0fef8e747","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610149328000.tgz","fileCount":207,"unpackedSize":19940304,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+O5ZCRA9TVsSAnZWagAAITgP/3ceYxVBe/jI8AZkYIbr\nbnAiJy5cDExz5RI3BYwR6074GZNELeZeNE5e7Mil23pU5BbdREBnLEdDdxqP\n5p15vXhvLs0m1yAzaGYrWPZQdhZBkNkj6l0X3huf1FwiPHO31J/T+/oF0ZS5\njE9ZXEXm9We+VGUOa/Rv7/N7HZ0IF5hZ3OKGIYv/Y2PX4+2HCpCemWL3X7Ti\nObwGfbBHhTDlu9uVwENWvJeqVAyHwBO8o1cuCrPrC6SG4b1+Ea3+51A+fzR6\nKZIiqCukKXjfGH+0QWiNA6S+GbH6YtGqgGlCY16pPtVqlk5cb57llRvhxmHw\noBEpFh9lyD8BFIIv77qS8FluBbAXiEqNY6VYM+rI3tumgolZ4xb7+W4aA+TG\nVK7GRP5kIEVKnCSQakvjub0SximpMEwaflKYrSk0wSzCGVtDSY0iH5yNucUh\nRtlHmag645yfQ2cI1JQZvIEmidLOaM47Oc+M8yvFGwosZb4VxV44k2DWvW78\nDic8gW65Iu2oGQc/4c/Yp/OMuqLgHjjqbYpwtrMHzYFwSYIHB3KG2Pk4dteJ\nGH73G3K8sfSKZWWKAx+qJyJaXKOFpSrUa8znG5acBgWscCS53iZ6nc1TIYpk\nd+mFXfwrmWtDnpRQWBpD8/U+V6VsdWfQHenZZDRRbXBxKCXwbTlP+5wE5pBr\nn9LP\r\n=gmKl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQB9uQF7Bdmsy22gf74f3p8xe4UieSutJduua5mXQTWAiEAl/dNKSLFvQw21xFlhlqiu6ccTgS07uBQwhnzCZSbbKw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610149328000_1610149465214_0.5547012314578532"},"_hasShrinkwrap":false},"1.8.0-next-1610151305000":{"name":"playwright","version":"1.8.0-next-1610151305000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610151305000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ib6GOfld+l9wrRrPzKRxgQ8mKSTr3Jt6jex83yrQb2c/LfPGrl+BbYR0rJdaG2phh7lRl3EMuDdxayjXfGeQEA==","shasum":"b93e0b5fa230937a63a729600594327b09c228ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610151305000.tgz","fileCount":207,"unpackedSize":19940874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+PYPCRA9TVsSAnZWagAA2/kP+wXCkYgOsJSPQuX1JZ5b\nTGFM71P/yrsVRkLe/1oleIpl1UwPuwwOH2HlIof/deQRGZ7J5DiDL1xZjORQ\nKNmpzy7Z9/rnQ1slj6zbYB1ZfNIVzGzDv02KdHnL4XHN2P2zP7jXkXw7Rq7Q\nw8FIbYOr50+xXKTNcQzH9mT9EMyzoLEBQMvO73AC3ot+ssbyopzcRtPh/iSR\nCuxE6r/13tuqRSHz/gZgUk7wu1hNPAcg6xxU9NiK7kkTyYjhuPz/qlb0E2Q0\nNeSoTUQLTf7RVKf1yPom5/Gvi/sTohARR2CCgoQbZHNXrGVAAMFYxIiz2nKp\nKii75Sy8JYHU+DwYYfBBpNYhBI2GFUlAOdvv8qG3X5o3EdjfqSIE4xXV/Jr+\nHggnsZw5ycKto+mK5p6l4pvxk8BxCuTF4gNLKWhlfVu/F4zMpX6V83qb1iXJ\nnhmrLL6ylew1/83In9jmvcHYjjoofq0RA9PKYhNxbRVurQmTbNl+lOieZIGo\nIQKHKhwmEp7X/7jBRqtAA1yY6AbsOuaeFYeFIxG9krbXu7xaBsQ8HeWNXbXt\nvN8gSHOTJxCEPnPp7ynhO6bY+aJ9H2A1TU0jetenhlJD+4Rw9SQeO5XZQ8lg\nENUNavZ4IRK5UFxf7GhNEDKSikolX1yAuwYgHkGaI7dVKWCxgJQhho61JL+L\nVsGI\r\n=5QI4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEobShvmMU911FjgL/g6b7UHN+2u+5lyvveZEa+CHK3EAiBKQ3pqdHm79qsXexQ3HCGhlq+EtBATYx6nxlMWItFBMA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610151305000_1610151438868_0.02810064311130489"},"_hasShrinkwrap":false},"1.8.0-next-1610151474000":{"name":"playwright","version":"1.8.0-next-1610151474000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610151474000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ii34wCAc9FbX5vNU88m3ap7p33/0qvmwmNBaz0Vj0jsbvg6dl21raKGOF+fUVU7GJQw6Q/NGzVMJEvKhmhTz7Q==","shasum":"be91033820fb8cc51ede253fac7485d746b8e569","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610151474000.tgz","fileCount":207,"unpackedSize":19952229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+Pb3CRA9TVsSAnZWagAAc34P/0/Mwv91IMNMrPX0DDyW\n89sbwY+I6Vd4Nn3b8/HxKBDDpTpcn6Eiw0hsn1Ny+fbofWr7VSU5nlOtXrm2\nERPO5ifFt/GRy3XDgArRfIGiU6Hb4e068fPSDsqFYR/llbd1FaOsnR/O4HEt\nZF+HrHEw8kW8fYFpIoIGyYZErDOhYzIGQ4JggEqgQSV9J33yOv6u4MdAmgh9\n38W/on7QMuccatsUFed/yiXR+rI+UM0MHRYYs+JfbbFpahacT5MEhEJckihJ\nnTvDkHj9mIf05OW8PGGvvqMwNi71PxBMENDrQKZbKDEW7qEahs1t9/+5sKqx\ni3LGfQAO384qQXzQyIh3qrmiwtvg74voLaHJK90zZF2hlEuiqbZjwmNwTHeZ\nWL4U0aLto0HnoGL1dKEvrDsbxlJvlsgqkFGWqA74y24oVBAgp6LuhAjNT09N\nmFfbmvhbF9UOOwrynaEzF498R3JFhsq8xRBgRvX2LlK00sQgZJVdOMBqc0z0\n/Ry5z9bO1YNVhIUCo672DhWya7MOwBUvCu2NtZOiyWkCEDimMeWQq/UF11wK\nU8YqwWpAcSEL+wfNbXWUt6hIwfH6MjvbHT/UuPvQx4C+rkfRIWdDSpsjqqw1\nHOJTT8PiemjbKllMHcXvZ6EkQ1Yr2+7Lku4mcmLbUwkvYolnjqp8nAzUi2Bb\n+F/w\r\n=TBhK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhu4BRfz6CJ8TkjJ/0Tv6WqqAtMeydX2xxUGZcW44teAiEAjTzHBnbfY+coKEouGVRPip0l/dQG0dezhg/k5CWmvnM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610151474000_1610151669706_0.24439568269331158"},"_hasShrinkwrap":false},"1.8.0-next-1610152612000":{"name":"playwright","version":"1.8.0-next-1610152612000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610152612000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-o+FUmXdR5vgjE8Suvsu6wWiRcGZS2hwVFZuqZbHB40bU8jnOoU+IwtGersRCXSWYSh2wGIWU7ySDHfh51J7wOg==","shasum":"8f3cfecf6b91e766efffe34ba866f68f7b790e9e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610152612000.tgz","fileCount":207,"unpackedSize":19952229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+PtPCRA9TVsSAnZWagAAaGEP/R/sTjmLeWR0iGEcwm0R\nN2oQI6PMO+f2RtV6G/FBjoyKreFEN4T+nk4w9fMJ9DLtXPXP12f+W3N7IMg8\noFwrJCMwKLnIAjSwzPDqfxQp7PqrI2S/0Us5mKdNGBiu91o2Njt2L7za0Fn3\nQm12HC+thYk+CJKLnnqnsE/lMGf+GTQ3PdEY0iojf0zUjcWmgxeLgFXu/0f+\nKxuoyzLHpa+Vh4/RX5mJLWYx2kXb7MLAzQnPIXD4iM/i9EoG7XqLnAXJCN3t\nhZlqmtx/0k9S+BRLg9f3qCundamwaoHPvwE+b6nBxMlhLq3waad9lqAMSqtO\nvZSH/ycpC4V2tkCs5lYcE+az+qY1GX/0/PEAObaIwRVVpyeozM5HDCkOlYwD\nmEhvpHQxoEJuVDznLcCJZJ2SxTfiV7ei5o9V9H7c2KvxhhM3+iMrqZRwAvQB\n9bYOSJ4EZl0Pqdb3hCTObwUeH/hTMaSdwZuYv1LwUPAVTXrjGc7TPmh+J+dX\nCnMgYkoVxp38rH5KJj1gVsGMmP+H1tXackRqLrXafhR5DDj/kNYy+xDnRd0f\n+9nzZyOvtmHbXTwQp56wvDCvHO6NyMwWA3Bivut9vHZKDl+EDQ8rY4M5TG4S\nBI0GVBjxEZ6LzTP2zS8nDDxvvYN5Vz5LTBePdDd9GL9eN5yA/SmNdbD0Ava8\nBQFH\r\n=D+4S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQDgszsgCvRcW1ajTn2JA78eS9LPi7HcneKUt0GG0m/AIhAJtbUSVA4hGfxmA1fhDcuZ/BHwdc5RZ7GQ4XM7LJ73oR"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610152612000_1610152782800_0.46818483496574337"},"_hasShrinkwrap":false},"1.8.0-next-1610156177000":{"name":"playwright","version":"1.8.0-next-1610156177000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610156177000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/6+DEmHg4ZwJG6u+IjL5IrMtiST2ckRTgHwGDbN+OCbXykuTNBZDWFAGlAkZoOocMIA5aqcYXpum1JpZ8Aqvvg==","shasum":"ac64001a091007f447178ea895478b1c539536a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610156177000.tgz","fileCount":207,"unpackedSize":19959404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+QkvCRA9TVsSAnZWagAAQZ4P/3zJ1Hhju85oJtfNrM2Q\nLNb0WEheQG2hZwk1EKcQJSTy3BA5jV4HmTBw7o21HQ2qOnhsHLNMrZA+WCaY\nV3uf255gFVuN+mruknrcQQAxyHk86kVQvr6dZcwl05isJfs/hrRY21fE7ZGW\nrMPY24aBrFlPe/ITp4VboaTjaoORwxRBK6x773mlZtigPLD7Kvqg8abOZdBZ\np5CKRUc4agKLPGhuk/S6/m3H2QS33vVsaijSm4IboOMHjVAvgZ7nUVcCzBXD\nDmnrQGLuE/kIUFEG7WkNCoIfqFG9wO3vb9NCwE8Y1Wzd4AJMoujnWqC555rO\nvUG7spl6tOPyCwtrKsJTct8L8Yx5oxFwLLTN9igW28t/1SBKLytfRNxRg0iy\nRZmjGWp2achNsChsgt51areq+XK9qWXmkJr7m3/INtk/O8u9THS/JiEkO+r4\ngENFFXPrJ7EnniYC3GMVwX/ofN+Dhh6qN+of+GJuIMpEE+iVjx4J6YjvfhWO\nvOZ/asLWS8rAVpBkPfH+1O9tclcTbOmcXjMIlDw88T69fuql6uXWB6TMfG0P\n+HbHQCWHm9lN7ksetC/6v/QwcFCr8tuZ+OqR+rR/sbDN1WHk7lDJAhvFCUjQ\nE8X4p9gEytRgKhl4Rrw4L5BUrCzVLP0zmkd6UPlFtpp88X9RsoawAtlsRxoN\ngDXo\r\n=vDXY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfugcC/iVMbMfwPhW4yX1qvHwoUTjjqPUc+QC4rLl91AiEA4BIetotihuM4oa31Z9vD6wD/BQzQ1IfNbXxp0yPA38U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610156177000_1610156334572_0.9290973239138594"},"_hasShrinkwrap":false},"1.8.0-next-1610226238000":{"name":"playwright","version":"1.8.0-next-1610226238000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610226238000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-P6nqzZYgBLHaL4AsEgeYIuGJS7xkName3xBUwXGg3WQMZopIWtgXvghm49zrYE1EX5+69IPmKxR8PyGEm8Yp2Q==","shasum":"70fe9cc709daee4b23c04ef25762f9fcbcc1c9ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610226238000.tgz","fileCount":207,"unpackedSize":19959395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+hrtCRA9TVsSAnZWagAAXs4P/2PQg30FLJmy4JlFORIk\nY7YoNlLfaC5jZQaSxmsNqiZ6YL9980BuZ2iy/QcuF9wZ5r8cOsQZoVQOV+UU\npLH7hhtEOiOKKuwTR9BMscDb1OgjUXaK3tVn8B2PEWdCfb6sDm3FdtAbIn1h\nLeKT5DrunmZ+hpIWSN72LBo7jZWYzSFAnsS4Om7U+kR0kSJWdoULIH2JewRy\ni7BIeqjW03P6ANPTxXtfbEJdXhR9zTbmqwZOjMyCsBBvP6mez8rH1BcI45p6\nSWqWYRVmZKoYjY7UFOWtd/7vIHP63bYhxGXQXq6HxV/RHYD109IkM8sbKjm9\naVb46zZGnjnQ9HTT5oKDZGW0onjzDGPlGEg94g7z0EtecC+NeEuOqruOA2My\nMAA0W2l/UFXLW2RPEVbxeeMTgHD1RhfApSdKkH1oc9aQZjUb2j3c4Kf3lAD0\niRMI6tDSGcAJexLGhSW031kxsnrRNvJGQKZNGbc3n5gt1vYV8vpAyGKQihfH\nuj/VKmO+z4WDmOOMpOzRTGBLtNb6S3K/eAE6S1db+B5W3wScvnzEDVBpAJaN\n275bQd3jiccEq8wdIQR4EoyELKuJNcSVt186PJQl8zgE6q1viIxXqo+LxJmK\nOcTM9sQT1jCYlDs+LqE9Q+lstQ4YpCrfub8f8YenL19SaSsa7fLGmGAYwZnD\nHMxo\r\n=JyWo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaUi1O3N0etFRfFYU3LTKETaW1lLDX2gSxH1NokDRo0gIhAKev/y+cnKpEO6rLf/g0FoQBcVt62yeGEP2JNgLwzamx"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610226238000_1610226412972_0.9679036236809493"},"_hasShrinkwrap":false},"1.8.0-next-1610331515000":{"name":"playwright","version":"1.8.0-next-1610331515000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610331515000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-pFxmSxLzQPNokY1Syjk33bR4Wt5U793eKN9MfzLn8PcFC3Tvb8YCrKEc/eV8fpTFw3A1w4nZNhUxMtzrQ7xUJQ==","shasum":"3ff906bd785e355e1c24a831c3707687e66a8617","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610331515000.tgz","fileCount":207,"unpackedSize":19967733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+7YPCRA9TVsSAnZWagAAl7IP/RvZyTHUu61PfLSCCH4G\nhPN3Wo1Vc90XDmbiVZ1zfTtMeoSV65LnNlvmOocAjAxJCwWl90oGqXbFkCnJ\nzD7R1dckh2201YNh9ihsURLjuI1zHucHEi4NywwuOkQo49tttrepmFHcn/4t\n9RRf5oyYjtW6RCSa+YhXrDmxaYUYg3jQvCglRMEXhHK2tRZFeAyB14TFe5qA\n97OvpkFgIOW6rqUwGAbXjIcvaxMEWxxQEyYRu1DnklDUZjoUlVDJLXRvFrUG\n4pfDzvUpyaUFWt81TA+bRZfsi/cX+qe3Nx9nrqtuPabjaRFvmMWZrBkPn1s4\nbHGlkjQeCNGpOzfCz7x+zIUaA0SOLsAf/tA+EexvbfdKWN1H2e2axGKTNKQX\n2QaryNZpmWuTdjW/oj9Kzjn6lIUn9NVJkrFsbWNNVdrfU16TXnvMgxAoaPn0\n4YKXtdRXXoKs/YLP54yPJ0mEnN/7odWCKo+pyGbueMu+kflF8VPRAdtKBggU\nZMxftF7YUYZNqNR7rukJQrykaqujNVp6Cflj/+5UWOxNORUnJjUmNhw2z2En\nSePF6RTf1BY9Hv5/UB3IhB8uCD4JFj45ErD1GPt6wBuxY1vYN1qxgOETqRo2\nLqIbt/jtz2Be9XMnlyntGH9Pq2h2sw0/FytlyQmNKOSkT/tgzH/B/P3C4mqo\nbIdb\r\n=4Kkl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAggd1nZbUOWhf6tGFDRPsSvqXV/xHxjIlTXwmG+cyyxAiEAlScoSUUwG8v9m4b5zSkjUtiAFSpAs9cCsOI8i1qHSx8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610331515000_1610331662393_0.1868716066004339"},"_hasShrinkwrap":false},"1.8.0-next-1610341252000":{"name":"playwright","version":"1.8.0-next-1610341252000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610341252000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-DnHB4KqxJ0e2PxC0n+OBhMCBvxVTGDktvHnXVtK6VB7UV1TFPeRvT1sP7lj2CxT0eGWZIA6bRb7JN0+yQEisSA==","shasum":"2bebc59e8db55f7eb21b9ee0751520a8205c7903","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610341252000.tgz","fileCount":207,"unpackedSize":19996787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+9wfCRA9TVsSAnZWagAAB94P/1ezb18yDE+N+q8+Rf3t\nmG7Sp2NJPH3fEeMLl7q5LrKDnF6phga1t5SNcKvYGhy6lraQaelDZWL4p2le\n0KaExb1nykXo4McwrIPXo1GEsv9jcDsMsR0RWcjTQp2CeJUZv7spZV3CYVIY\n+QHbxog0EARndA5jprQ1xciQeyK8WYDDEdtTwXMDOytrd5Hg9VoAKtcaSEij\n1pjIk38qHu8EvhAopfURPz7fZoZ+0jx0yuMcYG/i6gSm5wG7OgMhTCzzkJBe\nCvKfkMmfj60Brhz5suzx9kXZ7KVs+/rYE6S+4LcoUDGHt53Ve/R/WPA0kl4e\nwyylPY6pFThUKfRRCd6ttNSmxZm1nny4llmwr/4Pz7bMAl3erfrmRI4BB0Rt\nRFbzLyicLGYVW8trZ9AfxQ/hYcUHJv+j9UUebWkN3jJ4yVdTDEur0u4+pHgx\nzNeoVaqZGDr1+4iNOm2SOjTwmKbtzSA1DeK2OFvMn3yIG2RAmAj6fUOopRPm\nj2TJdfBpuG6OQUZW9jZcwnKZ+kK28gJLvUovhrBHYU+3SpLnrg8TKoa8Uk97\nN9B5CD04RGRvO2DKV4S4Z9EHtByrejiFE3oWOLVWrJNb9uMCMQA0w+Jx0QK4\npZimxTe/LKCIY0mpSgD9bbtm8aVJHyJg4D54arAbleSOcSWuGGzsmhn9ylS5\nNOQ2\r\n=3V5E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICR0g9zGiRq4xdfK7asTuKIC2/xjyzxnXkhg5fz/vEVJAiBVl1iCg3zCs0qUSvhxYXwmPrX1jDrosAWoqyFFq2oGSw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610341252000_1610341406847_0.9596687526785532"},"_hasShrinkwrap":false},"1.8.0-next-1610386489000":{"name":"playwright","version":"1.8.0-next-1610386489000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610386489000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-P9nYvPpjpG5T8qtXaApKWV8LjtSUUGV0IczdasBOHZcmvBLj1vx5D7nrb+Y+iQcWpSb2NvVc37FZs0CpvuVV0A==","shasum":"b8be79c04dad4a8d47c119e94825512ce950c4d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610386489000.tgz","fileCount":207,"unpackedSize":19996789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/IzOCRA9TVsSAnZWagAAkh0P/1ty2jW2zlnf40NryPPz\notHkUfpFrQR0sraJP7JQT+ecbmlW2xiyyhfVev5/zm8Bd370mF76kUmLn7xD\n62+STf1W8VkxJqee3vCYMR/6FbojyrAQiSG7Id2kyGd6lF5pMeUmYcuUizjR\nugNTySDR9ok1gpxfdI6Oo2xwGKEY6y+DfMh7pmBRj3ZftO+G3hN9nw4XtUjh\noFI/otMj4jgO5ceCYDad8POsVZoYX8WslERYpdzbfNn55Us0iOvlvhQXfbSz\njiNY3lSI9ZrYQAI9R1qj12dZzMGCOmhffez00zUITgSwGVjN2tS/IhbrMl4f\n/owOtjj/5oeUEywgoybRk9VMyIJI6WiFr8YThbG0EO+RHejDpI0gSRfyz0Sn\nLTm+nY+8KdQJpd+PRXYhrsW7i7DkJR/ATfwWLjzipHbO1kacRQ7cPiPkBCqE\nGEFkzzuQkk7RboSLwgQKV53GER8aEBzZSuNdTP+yJy8g/AJY4QzDkqTEWP4B\nlm8cGSBlIfqYcXI8EfOVBzger0WMOtl2r4q3OitG9HZT3Bh2vME5Gr5BHHCk\no9suHwBY+UrCi9mk4iAmw19hX1lhsCmKKXWD9hCvajcgzeO8hjukAQ/qb3fY\n5m+COoIW3zAN5fJ20yTBBnJDUd421hRDv2eIwrqzycANN/7336mIFnPudCrJ\nrccg\r\n=jkHd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB4aDBqs9XF64zEfCCrJwRgAkS7ZvxjFgpBNwpX0hffcAiBj7Uaz6RnixLCSrtVhGq7I9zLGMWb8sjw0xSjIRsPM9A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610386489000_1610386637161_0.7601857358300419"},"_hasShrinkwrap":false},"1.8.0-next-1610388225000":{"name":"playwright","version":"1.8.0-next-1610388225000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610388225000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-kCkW0HSBcip19htZ8U93NC9FdVnK2Av9ELHn7fXeWC34vwincF1lDRjKn2qopwxHLLq7EnJ4N6Q0/x67eLzozQ==","shasum":"09841b09f18a3e586ee292ba7f9a5d3159a593fd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610388225000.tgz","fileCount":207,"unpackedSize":19996789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/JOcCRA9TVsSAnZWagAAaNUP/3Z6DP5Cxu7hmyYINDZG\nFkvZ0t1y3ZEMEFuTko95tptyUy/U/ER0zDTcw6QDC/MGD4RwiDvpNuGL0Blo\nZ2VoZIISiIyk3IOR8K46ftBiKkJzfJCDSFlYCSX7AqxFK4m+Hx/9q7So+zm1\nlDgADRKpKcj3aTk5qOvxed5bMU79W9E2yagqn7oBpg2xiPy+eOtwUrkEX9tP\n/UjjkDiWlex57w2e/mNbEF3qs+v9KQWFpXfu6vY2Yph/+BpoDPaT20zpd4NB\nIAcuIoU2C9e0KDZSj30Ym7xFGbpbLQJMWS1yBclYMxN8NUj+eENVSrP/SR3j\nKDre9qgyvn7FnhM3exJGC07hJRmkWoktoqkr8/Q+6RvdyYjFfPLkvbGRXf0Z\nGp58WD3g0Uxjc4Nc2HTXjVpnNHiGfquFk1hLCzr+0peVYN8BdEtgvmPNRVTA\nqPyPlzUTc3hIeHV9Et66vNTS6ELK7gBEamsu9EujIf7DQ9oXQRL2XD74TfJa\nxbhEm91d5RQNfn1TvX7VkGr270NEci+Lj+SPap4DBxOPpFCRbosOBNU8Q4Lc\n5l9+A+cYyHjcYb4Poq7DaDiNIuY3Z3wZswaQfJtE2fMd109HjB3TCmdTTrkV\nnZVzyHpq2jABz1+HJ7vBTYErKtHe/w4WSI5KKoN/4IFQ0YgPhrZhMEwJ/8Xh\n8oMR\r\n=dR0u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEHGjehPUs4fPZMqL0Y3o911AQ/KWkTQ3gOpl1JP2qpfAiAN23Y5PLBfCJ/xWdYYIMUDk2M8iovR9SyLv4f/zMQKUA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610388225000_1610388379363_0.8554561411015709"},"_hasShrinkwrap":false},"1.8.0-next-1610391607000":{"name":"playwright","version":"1.8.0-next-1610391607000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610391607000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-iNJu4jEhMNrtgX/TUD8ynWXUfFqz+8OytU+y6NLufd3cXpNUOfypRffal23mS1RwD2yMdlz2KgyVyuBaY+daJw==","shasum":"4256c1feef1f12d57dbb915828ca795a4b549f70","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610391607000.tgz","fileCount":207,"unpackedSize":19996789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/KDZCRA9TVsSAnZWagAAscUP/07CxYziaSBqxwXjVj4h\n3KAMJ/VmP3xZ8xz30A2MSL3dRtux8jMUDsmjeHbd77ayT1RCvF/Eb7aQbnJj\nEY+Qg9rAxzbB/zKhS5U6f3LZ89BkKWJDwINMEwwlWCn4RxgLrqVxC8yDqEMv\n0mWJEIycXAO7Zy7fPvQkDMx5i0DAsuj1kW3sLIDQNaGgF2NOGzsoj8esZEl/\nup1Fs1BKpyO2y4bR9eYDw5liwFNdZYM0vKpgSyjgBr0Z7eoZJrupLBnql+oi\n/lymoH0Vk+Q7LhEVGL/WqLPimGlNQnmKfKrWbFemZ4nTtPV8j9ayIXxamdsx\nTx2wWq3h4lIzqYzJYVGRkZlGa3WzV0wf7UlRzllh28NwVkHN05zzUyR5Y9fe\n5iX4Cxv4R7CzBoWqRm0afbs08OdIGwMP0yQrH0txqMx5Z++GABIz1QQ/jB3m\nqPnJW5gc7etd9P9L+kDGSJ5G38MsmeLoBMXSqNnWDqkNggHcT4g8RBQWM5Kj\n+G2iiR4+v/0kqCSN3gXuYpR1v92iNheLxZYX+JaEpw6pBpdqRia9sESVXW7k\n5zVoWF5jsyycRUs6pT2kT5UsIaw3IrfSwCfzK/lXGcYDskAEUVHIab44YQ3f\ntuGp1HWk6Rg0LlH6Z6vkemZ85cM9JI5Wyhi2nzbrvl58DXbJIBwB0q18PgB4\nCCWq\r\n=ej5i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZLzCLeAhyQE5I6k+rebhXEN7QnJzgSFe0ecO9eYq3BwIhAJaIzj16rzZQ5LnokfZjpnNnoe7LtOnfiKIvZYzQKaKZ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610391607000_1610391768872_0.1912390752799802"},"_hasShrinkwrap":false},"1.8.0-next-1610393454000":{"name":"playwright","version":"1.8.0-next-1610393454000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610393454000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-4kVHdbNtRAMXqfHPyu6nbnb9qbz6kqSOou3lWmJTrU1ePGQbn9uqNJnTtTybYmAsQQtVFgEQW2K4PmKTamfM7A==","shasum":"eff36746b8e2c74dbecc3f8a0f0c48bded39b02a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610393454000.tgz","fileCount":207,"unpackedSize":19996789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/KkBCRA9TVsSAnZWagAAQ+QP/0HmD46UY8MSVH8BICfq\n/yW0PjJSw81WWzY0ZG0PppRDKKOjjYM95yxcOkglPrnpUf9U9AXHySMEALFh\nQulO6omf9N3SrAK37jhliNODZw9dKuJB+vsM0wWbEp4ETT8iB5CrMFxrvlG6\nhVWh/WxBF2Q+wKXjtrk1cH5VJMSvnveUrc3qbG+UYzUCUoZ3oLTQWJoXzCJQ\nblVEvHQ/0jmnr0uMVY9yaik1QowUucy48kJYbw5OJotCsipJML+mTjf+QdbK\nTd6zvzLS4AKAqKJI8a9uWYuVRDue1CU4WnO88XMWWhB63cgcONftrMMtZVhu\nmEmmOP35/55gpDcdpB3S7nbd0D7pMy/8GoCnbmjb8vXvO7TEMIF/ynVRqiJY\nzTomNumSsmpEmoF5FZ/4HcRmaoQECFPSeurxr8sUt4KN6+YbqVXiFAOWABEh\nnaWo6J1idd8w3Ox54jJhBlHlgiRrrUa/UUFpqQDKhp8M5vv9UWnW7C00s54F\ngPVIl7orjNkJgNXJZ0CoP54/NW7lrjTN75WSj6IfnjWa2lM9Bhh+ZYt+DmfK\n4pvsQk04FNC08rIWPDRm/bJWMNl0Vmtl/D90YBnB2/ebwurZdDBQIRUjCRJw\n+35lFOulLKAS5x/z/BBu0kBVx3qx+GSDzRJCXsYTbx0b5eyP1NbT1gmxpEET\nU6ku\r\n=n7sL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCf7GKMFWREG222fkyfgGeyo9D7w0ohVjYv2Bxn0+aPwAIhAJD+gMqdjOi/fkxc+f1Be9hiZxceFXibTAxnRONOWP8O"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610393454000_1610393856699_0.2568343274729432"},"_hasShrinkwrap":false},"1.8.0-next-1610400995000":{"name":"playwright","version":"1.8.0-next-1610400995000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610400995000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-+NfbCX2S/zWauFgSBQ8F/L0IXGfGm6F7ScPcFs2fkvm4vI05rHAHH0pJvxvX5Xn81EwiFnJnB+ROGTYnRuJy5w==","shasum":"78b38412dbc2d04ac1d2d789ef2ecb61e5d47a88","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610400995000.tgz","fileCount":207,"unpackedSize":19996837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/MVzCRA9TVsSAnZWagAALBsP/3T0HbusOMVy/sNmjFO3\nEo56HJsT06Ujpy5gBbF7XTpNMQX5CHi5JtgL2vUIHaFd0BNSP4DAooxc2TJE\naHd2vhdphnHYAwkjQrBAfBcE8ssTNfU/X2Jv29xWG10+8X24AMg1SHs0C/XT\n5sTMZ+8+O4RU6S8vZ92fVAVCHW1cEAmC42IsQ6OLjs55XE1p9QJFNBCP55AC\nMBpKDrWt4CcKdQroAy/FTf6elnyMYKw3g8Td04N5JnjsSw/m6VGicfR9/4Dm\ndk+wzzqtDyoXSleEXkh0pb3OeZETroh+eg1zS5iMwptZJlgHwSwOBDKyL9kz\nqDjYlrBxHIiB++h5BDVBRS14f1eR6hNc9u4SEl/i6aWuRGsJfpghioduJkPc\n1b9cRgKWBts2x//dwvzRFy93M9aG/yIG/2xax6fLzpzYr4OH13qVF7bVR06Z\nTJY8mVxQsFJvoa5pdf59pd+WGxgQz2o+iq1S8ew7ATwuWVAEojXh6xQcUAPk\nazo2z469HC3Bo5P/xNPu/HQ08TX7UeKZFKvs4Xndq6ZFhctewQBzOEZd2c1X\nfBNrLfzHzjkR3DJ1FYsIzqkZwwraMMpPMWe03CtB8YCHb1BKcDAT5G6YTjDC\n4ra50sMlPh795+lA6YrgUGEDZiQxw4UAb+oLOZ6817ZQ1lpaGz0NOohuMCWH\nN0yf\r\n=UrPI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGg+zOTwTUP869HghX486T8roi8ttNnjgSGZL6BK3YZlAiEAqDngdNTKsyqWHq6TSIrwHAbIcAXbZMPXYEkdBLvFjvE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610400995000_1610401138576_0.333314961787899"},"_hasShrinkwrap":false},"1.8.0-next-1610404206000":{"name":"playwright","version":"1.8.0-next-1610404206000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610404206000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-y2d7UkaxyC6z0zuBRjXyTNzE0tj+MgawA3Aii0ANNMG9E0Vl6ZaPpZjlENz4c5JvP/ElCotH0qHp/iYTE48Nxg==","shasum":"5df90872374ffa2ce9a640491e94396dba5421e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610404206000.tgz","fileCount":207,"unpackedSize":19996837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/NNyCRA9TVsSAnZWagAA4zEP/iy7GdqHjcY4L6WkptMH\nNRUAGS4lND0+7k1m4aKTOZH7fbkjPd/R4rXPPNl+GNS9B0pnjg+HLJxOzZAj\n3mDfGlFRDxmWCuNxpIUq96ji6XQM8gcD9t5GCgzV/BBSnazeqBErEWHNpurJ\nb3z7/Fc08nX0jIISTsKIKHc4iWqLbbiNqKYeiWS3l5T5JagtbRde/0Vg2GVk\neMIJjhiQ+1VijhgaOFD9T1xHPopkM9VLJGm3RB9flUv8nXt7h3HuyfyLg4Ut\nsuqpPHojHZNbJTFSNnAc2G+07eXL/713qo8yfL8txlRbDaJ2VbsJjKE7oXIJ\n+TaxBViUNvmTfKd7w8+USL5H2292hzEhStaNTY9ecylegYmLef4jx59WfHcp\na7yRESvnaph25NXj7Tzlx2f8mYlIOZJ6XLUyWD+mEB4/5X7xkXXmVS3g5hyX\n40mZuy8YMMx0O9M+5MHoh6dxUgpgsf0Ektmcl62heVFXI6lj9ymWjJktsncH\nVhanPT4ojKE3XVvrEEBpdI4UNntKOx6+/Ke11xhk9TLBD9XHyfN7f2iuBkPh\n9ex0qdOTJ6bc9fmt5ruBP9nht9NpcLhFBMIHg32HUANMD45zhqSUFKP1NIsD\ngvOZz0d+RPY067BBy2BhuXRK+vmj6jQhVcSGt37GnLliOgwq2YZ47b7nW88f\ngxSo\r\n=Q/PO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkD9IH02eNdCosUd+BoDD8XtUKIZdez2PMb0RqW7DFwwIhANeRJ0LzApxeMuWRe6p65FrfX8EzcTtOsPrvbys6s8Gd"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610404206000_1610404721400_0.41962925456658917"},"_hasShrinkwrap":false},"1.8.0-next-1610406089000":{"name":"playwright","version":"1.8.0-next-1610406089000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610406089000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-VX7GHSm9g3fr0g49poP0b96IThpPCnBft+BkJqOjnAqO4agT8oINUaU1Xzvqlr66l1zpvPhmhFiT/2gD9ZMcdg==","shasum":"2d8d5301585aad370c9f1ebaf732c5f98a874963","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610406089000.tgz","fileCount":207,"unpackedSize":19996869,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/NnhCRA9TVsSAnZWagAAbg0QAJx0/x6vrHw+8x+t+XVK\nmJYBkk/ZssKn3MXxJHP029dCJX8uv/7r6JP7mcjoqRSIPJaUj/K1pgzf8zqO\nzwT3O7cHpP9XYvuHdDhhN5YrEOZ9UaLb/a+M+pJKL6PVkOwTJAK7iffmFeLh\n1OsrA5xvRNu1/3io4hVdTVOjkFALyRL2R21RC/qsanAS8yGhKP/5gJd5wsM5\nUxmtadCctAJVX2nNZwHZwR95fGSTpkDyH9XIX+x7BrsQXVfoGAG/Dn4IOv6z\nVODFJ18ptnYRvMPCU4LefDeOGS7vCf27WGCu0jtDSZHJJDIUQKfQtTWlgvUo\nK1GnOoPwixqtWxkfVulMObp9pYHZfFkQyI9fsRETucUkjsZB8tHAAXyb5uth\n/oTHmoAF3AY14NaczFue3iYh4YI+jsv8iw8E1BuMbRXXHy372VFHOgWBS1Yw\nLQnykvxwIXf1GbQGqWEXoujLxa2F4/OEPlcIVO/aezzBfrHBIdniQgOmiMh0\nOjyrsxYrBw8xGI/52CVi8kuvHfvzrx/vbrhkGNq8A5N0cJJ1WJ0P437lj8YM\nG1sYf/x6dWzctWfSxJPnAMqn1+/HI8RcuXsw/tJosBMju4ie7jowpZygMv3y\njYDaMZeVqpN9Gj1YIk/UkWjDKYY8fiYtrud5HyVk4W4x5EVsCEe+xPboOxcU\n4k53\r\n=cD2q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClm81ilZ8xjYejKqnfTtl/MD/DrbtCR9NP8FFnppMTWQIhAKMRvHLG6Vf+CzvXKz1rnr7GZC0Fl+gDPZPXWbbZ4U7i"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610406089000_1610406368644_0.4075427563242695"},"_hasShrinkwrap":false},"1.8.0-next-1610409021000":{"name":"playwright","version":"1.8.0-next-1610409021000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610409021000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AaUX0pm2W3s0qm2HaBALnVlP5GxKhntZ3olgP2aPOG47N6unQ8Q/puTGrt7BaJmCECGnPzKg33fdhJRhfktNeg==","shasum":"44b6b68c070703f4032b212b4cde6a91cc325b5a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610409021000.tgz","fileCount":207,"unpackedSize":19996869,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/OTaCRA9TVsSAnZWagAAIccP/2y/b5dKLy6Nb78e7r5w\nIBjppSQLVXuDfMjxwoYZy0yg8PKQkIohqonzn0Yl4AMVM5dFd0WtzOifDcRp\nAyihNj/4aZjb8WHktkwojfmTLFtR16J/ul4i1I+LTIVRFz2sw/WU/kNy60Fq\n01iE2DGAfNNTwSQBZe9yyPtXUgBYmfdb3h2trTfSl/Izfefqo6/dNxi5ovZB\nxRHM5mMcDVZiRKaKeZW9SGEtVcKHMGU1W6clmWzxZI/waYwUJ3pVORB+yNIr\nPgD5N4y41cs3hpuReMOpl6umb3oJXwrjnQBStGPZZdg98AvvqdEzW80VAnxD\nF58R92aReC1/EssEmIbDVzARa7rYm0JGn5AfT0oTCOG2xHWMJC7VYsG7+xPQ\nZV5Da77RF3DAuLEUotvMS2e2+byTAg6XOJppU5mYb97ff9noCHPIH8huxZu2\nSIlNjfyPTcA/oCGdteCSn3rSgZEiV3T8hYtYPEmVbv+FynJp6cDnLVxrG7yY\n7Yp0xDsK2X3lMHqFFUqUAi/NP8fq+ywM6VfIpffS3jOszwYV/XUvzM+ukCmU\nIM1PA/x0wBfF3zOzS+ok8fbtCz3Z05doLHJn+mn0h+M0i1PV52UUYmrAWHzR\n37EWDFQ6Pxf/kVP3q0EOO5hGq8FvScnqZzdJ/hnq8Xg6ovIuraNDkD0bQ3Tn\n4uNo\r\n=qBRX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCvPJmrcZBQYsilHAHFrcesFzECv/BnzTi/N83nNm6kAIgQsr8+XeYPQVIHGoejFQBi0gwFaiL9HjC6HkDF48PckE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610409021000_1610409177226_0.45651071440266056"},"_hasShrinkwrap":false},"1.8.0-next-1610409225000":{"name":"playwright","version":"1.8.0-next-1610409225000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610409225000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3nGP4yt2mgO0qVx4d250oMzLL0TKavjbw9lVqo14tm0S5EAm9f27qLHEiyK7FyUbZju+M80QSrWlvNZ95YIpnw==","shasum":"7d9304b5fd49e87c1ff33528c3db56cbb2e785d9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610409225000.tgz","fileCount":207,"unpackedSize":19997117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/OWrCRA9TVsSAnZWagAAY9EP/iaT10feWybz40QVzZpQ\nrK21xiHdcTYebge6w0ZRISzY++WAeRC0EzWX1aWXvCE3OpdtNh6hAu3S5v0h\nWpojLsDQk4Qll1Zw9J2GW3qyRI/fwRlzUCqIl4fAxdIPqeuNfIDH7wK/Q14B\npVPUamJ1Dzf6y3qMXD05OCykm5MYyS7MakKzaPxw075+utuL28+JUzPsEdFA\n1Vo6xk9/bgm0Po8FUXUpZWhyT3aFFHv2xmNtWlBi01aOlX/dgPaxPQ/wgAjU\n3J5oLZOUCIKTTCd937KvnAjBUbVnT00Ai5ojNaGPZ8e2oECU1tZI0qNneMYG\nYHq6bxfQicoTtR2r9iWJmdpoPSYglDsY2cj7WcvoImEihQx2vgbgXfIyEHlH\nMSzSCDKUfnDmnFS5G5K8Q/C8arrfJ8RWiAAaeUa1ee+N+xMcZlPpizDMsOOw\nJRl9ac9UXW6ebMToLDisFmsCdkPoai6MgyxZE8ogmYRQgSXjikFmr+mnvhQV\nK+dHnw5FSCjZg/dcmFNZKiudsj0c8y51fQxte3rqzVdpAC9OS4GjRdQJkFfT\nCYYYy1/xuv4cuRVgkKjGi05Lbq0VBr26rb63dVqXAFU1c3+Vn70wGWpNiBei\nIc905xpcB/RoIZAV2cgSxiD7pV9soCTQD+a92of1VtoK6VwgpaEww9GHjyZS\nzr1S\r\n=Gzwf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaTBBpjjnENouNoEqfNgjDGccqYGpC5KGPxQqGyqA1oQIhANgD8JHCti+RbCX3M0CdGIqB0SpB9cgk3SVUTlSbazjO"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610409225000_1610409387123_0.5846976569532327"},"_hasShrinkwrap":false},"1.8.0-next-1610413079000":{"name":"playwright","version":"1.8.0-next-1610413079000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610413079000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-TBOMb71jS3pjbE4P07iRRNDxQVOXZmLp9apfQwr1tWBQAb0SYrRR7cxyVtK19iKfOPePFV76K6kn7e5/Y67kMg==","shasum":"7bac0838cfc5cecec003c1b06c6224d49effee43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610413079000.tgz","fileCount":207,"unpackedSize":19997117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/PS6CRA9TVsSAnZWagAAUJIP/R7E0wRIed4Cg0ILqrky\nXM4HF03wxQZLPANzwRtgaTthJ/q2zKzRqV13uuRxJCCUuM9jlfXQQfsIB3mK\nyJgOiHUzFg+ZDqwBeXIZAhJHGeFtbLIx7CoSnV8UABbQR5vr82U24pK9U7Lk\nxVYc775c745RrO9G2Cv3q92iu1qzvDOATpwJ0MJrPmKJjNtJayfavOo75DKP\ng7l0RE6kMsPz93WytimEYtU04r0URI79cxO4UA6iosC8X5wYhSqO8B2LhTvJ\nTcBRVuFFRpkEd/MSs6FHuoxi1pKsYlVoAeaLdEsP40qtAyAZJ+eiJmL1EZ9Q\n/lS/f2Im9+65iB0h/I1KuYXRT1HB0t1id9p18K8mC098QOKtjRSY+J04SHnH\njaaOWa2m/dgj77aLRNxzHBSrQon+Qw6YyGi6bN/+zy/FewUBzqjLDh+hrwc9\noMl/66S9EFH+lJip6R04zZZrSbSY7cErXUKw0rc+ky84gES8GtgHafHnBS/t\nzjC9TAtKDjB96e4aKGDqG1TDCuyzeuI5SwNp6T1Pwn17p/2DFqUzjnAO2VTQ\nrkkHwdD8G/1mZ6M28ql1j0siBk4YF4xzXurKe0/bP7ldp6+R0ZTjQjDmnoZm\nZQa3aBmNf/LjY92iENvAsX/lA8dDB7NFjhcchMGal01FsLOByzZvjV37AivB\nHadN\r\n=Du+i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE0nbA4seSJR19KnNujKkq23lLPmWpZQwAjRtVIbJRv5AiEA94TR1rOqh2C4uhW3yy2nk6hUlazs1wWmgfcqW2cbXcE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610413079000_1610413241530_0.5341126599238661"},"_hasShrinkwrap":false},"1.8.0-next-1610413464000":{"name":"playwright","version":"1.8.0-next-1610413464000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610413464000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-xQH4AzLtgPLpTFAXlnIDMEwSWcFPZ0NnR/1Hco8NKQit5RmDw+3JTyUlQwUHGNY+UZPQE2S8L/2n50dRIVsg/Q==","shasum":"67409c3cbd8952101149679f8ecba66b2fc8def6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610413464000.tgz","fileCount":207,"unpackedSize":19997145,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/PYxCRA9TVsSAnZWagAALKUP/3xHhyiDJboNr+Ihu6dy\nqShBpAuta/+lUI5skHCeY30jv7HLu2QlXjfAquaVKwv02XC0AeoeYHYTFU8N\n4MqJEAOw22zip4d3vVy4nGTXFZHuWzbNrnY1hciFX7UIaVWTZXFTviQfMTAU\nu5EVyjxtE3eaN3bH3OrSqv+Q7hO1q7mmM9qB7/8Kuhmp1SKovR29hfpDOoVr\nNMxV7L6eRBNh5uofU92diOX42v6yysz4G5sounzlcSUmlwNDYmYUAkvKbytc\nfp+bCY4wZYsQjtk1NXfWLIGuF0tKC9lzlbKWMZ3OFYJ9lL0jIj84XbZLrGTZ\nDqDkc/tDdWyHtZJh0GFWvRFb6i/EiH+1Y0PV13XIvydv69tBARn+bNjPiSct\nnWi3DHFT1OsJ8mkP/eB/9vc7LCWfAs6uBknnoVvkKoBBn7gpg0DuSuwrh3ul\nLUKtk+h3c8W/oHi6nY6IFjnJSlCN0NKsNfseHmC1IMH6OE0TcU+vtsCqeul/\nofvIjZMvGyfbpG39dPIEf7m8MTMQm4LMlrABfVulbe3kcWcYAvLG2WasUIw5\n7s0HOPT6QnPU/iEirLxaODkRi1WnQXIPxMIHzpCYyWkbCVgLL4VxdnJhlnp4\nMXaV9WCVasL4WxPeY6wY1pWWBLwJGY2DHgnKaVaKANMkxKcGvbG9knydqujT\ncWJH\r\n=P04N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDC070b4QZqid5m6wVHG73c5WYWnRiN2g9goVgW6fGG+gIhAIdVMnSQsBXaGYU9K4MUkX+k8MpEZWzkcj9AnVFZ3s2V"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610413464000_1610413617085_0.5514857066903733"},"_hasShrinkwrap":false},"1.8.0-next-1610418341000":{"name":"playwright","version":"1.8.0-next-1610418341000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610418341000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oWzRJPvCCqaCaYQWgZax6W9NhLLdwqVv81mIkkFdtun9tvNoJROfhHmZJY+BJe8xpgGrgezWSOZ4svxDlzXuHA==","shasum":"8a581dfb3cfeba12a11b7f7c3049ab618d5d8ddf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610418341000.tgz","fileCount":207,"unpackedSize":19997139,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/QkvCRA9TVsSAnZWagAA/5kQAIWL9+MDLzmucdDlaVcQ\niqzTzsB57fx+KnFa3ZePdslQWr2YMKAcUKYLso9j8VNlaVDP97cRV4+8/66G\nlnjfiI7ouylEE+Jbt9RUAi9nCCk5mo3PsJO6EphguxmGVIXcQ1mKazyOEfBk\nNmUQdNtJftRWVCTBT0ex+w8Ldh101jC2HzyoJ5rEk0Wkt+VD+S/UU/XAS9Xu\n0cHgltmgBWOi67kVwhMRD4WOulVdToL+zh0pB6rTCGcsu/z1e/9WOQiIA9At\n9CZeVGBO6sz0j1T6WTM1ItffDyT+XLKsnxwCu/O+wl88OicQQhl8k0h4epjb\nWOR6sPVInK+O3zcsFjlpRqmYE5HSRWnTYCDlFLmB9QMCw5vyEcrtp6PMosOF\nT7EV7/08R5U2aMyzcjGMYrrM5+V0G66nVWZ9uCjxpdQ517TzVa+BdPwzPKjl\nq5/Een8GRxXfzhnJ+vrVi3o3lbOKSN+MbMV+lIdowxAOWwQhmIMdqbolyxml\nVrNBMIwgSLw+krwVzxJjNsoFm6cbpUQccnDtIUFWgJkpfSt4zZKGbuefXF6U\nY25Qa7Bw2V6oNv0StjNzfXWjfVYoYfRRe8SSR0RUFnqO7PN8zqNNXi8uag+g\nuIYSqJkHWQrCvCrLXFhZXP1MTD9+NLDkMM+SRtvHw5Cav41ocDYP9FhRkGaD\nv09N\r\n=FYQL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCo4JyW5Z7DoyjKtYul3BkKRjEg9TRj5EQohvKJQ5cjlwIgLOBmq3H1TCHcfBaCmAiEeo8/nvq/tU7Kyl3hj4zTtCk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610418341000_1610418478688_0.12028525212507835"},"_hasShrinkwrap":false},"1.8.0-next-1610480237000":{"name":"playwright","version":"1.8.0-next-1610480237000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610480237000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jLwM8JF7w7bHQDhaBRDrlt+6NcaBPb4afiO317q7OjspBS4j5TlkwK21a+RiVSKioz6eT0SBcA4vPJk4purl4Q==","shasum":"7fceaf4bf702e84c8bfff8af9288dec8f47327f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610480237000.tgz","fileCount":207,"unpackedSize":19997139,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/fsBCRA9TVsSAnZWagAAO9wP/2Won1nS7dwU49yv4cHX\nsCVt9FVGkJskZupyQyYvNl+zbUSs+RTMyxZdhlABumKktC64DJkZ7hBY00Yr\n7BomryHVYdy18ij+tv2A7TQn0y/XKbOO3x/MFWKD/b3S+DctdB8DfwvOPaY0\nhHBweiSocavWmVFwaRrRcnUcntMkwMCxzIO3eGunAcchRVm9sE7ZoGvEUg4Y\ndnKWFQMAdaypE4zlC0MnGbwg2LGGo535ihTA+ZF5p30/H5J36MTwMYl7iVB4\n/JMajN8BVezwOIuPXwZ0EVl4qFSeo+ty2CxjmOl+vtON0o/TendAJoqXodpm\nX5YZ4e428Wix+kpJHb1S4QkO2/j7ggWUnkHv3vaL3f3vEndvIxUubBQZUblE\nl9KtVMGXz1T/C8vddFdSeTZ28SEjUFOIw/Exv+bPvOwRXi0NMkO3fPDT5pxz\nKaUThDtB0xfbiaH7lW/AJIPOt5xJAIU98vutvHfwBC2AxZmj6AhiGwS7Qekx\nd5H1Fm0C11vZXaOZ1BkoMSPkviu6OLfKBe67b7FqpQXg8FhkSZrR6aNhqIIE\nn0ddQ2f0QIMAEpkAp6XwRPn+APwNnHQTSQXKzf0h0BKzYBTZkPgDNp2YG1q0\nNifH4U65FvlnPu96vF5QZIO/bb4I4kDyc6BBhjYIPOAJa9eHNB7BhS4PI1cl\nrfv0\r\n=je9a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZAQ7bY3yMS+MXxByUejuG0uTOh68bMydcriD2EhRzHwIhAMrVqg9wBkYwmI5hlNEC/4toJ+UFN/zk1CbmlBJoLEU2"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610480237000_1610480384126_0.8788624976414143"},"_hasShrinkwrap":false},"1.8.0-next-1610482467000":{"name":"playwright","version":"1.8.0-next-1610482467000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610482467000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zA9qhEbYPQx46ePvZlDlcQdZkd6Ic2Wpc6kVx6UkGz8CNvhPmNJYNaGLJ7EcOGBXZT2+pixyqbcnHbwxZFSVtw==","shasum":"35f10c120e05c7faee4c20e847ef01c364752fb9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610482467000.tgz","fileCount":207,"unpackedSize":19992208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/gPECRA9TVsSAnZWagAABDwP/3bTWG0q2bk0FIzn+eGG\n5svjrmqq2LeVRLBS9zElSYJNIbopc08YvA1M7Nh+2zeEyaYyOvrbPxuu/u9p\nE26JLX7dsbot+T/Z2opBlAj6sKNbXnPjQEGLQkfoTF1RFZYvyXJn7TpfHI0V\nyk0BxRmuolLF8p9LrK21okgxlA4g4wetqj7r6TpEbX51J/MQt3iIFKbAzhHy\nfT/aJ45jyvUINXyOfl9wJ8pOmRc35lAMKxcyfNuT+5BbkX9w3kXk3yX1Lfie\nC/Q+JaVjc+MPVDvMXusOIMkkGJewTfA7LSd8NMk/yxauaqDUTYdz7koFRZ5G\nTP2OvLET5A2VHlH2U834b2yoBlNWK3cYgFOKSHBq4GFjast2Hsj/TajOPEaw\nzqID1D9J+IYBpGH0M+h0oky8dIG45cm9AX9Oxgto9QLnGR8RdEljDbqbWlVK\nPnB/bdbQLrZdTwD7OVovj4I94NE6q4SAhsFRsrOdEXI/EGu+fgdVEXB2VhP1\nQhLFg0SCzWDFmJCRO3iv9VjGEEVwOhQcZTjLGhYjQ93JiKGnryL59GxFNj7M\nqkenm8/LS22d8Myni73DOLcxaiHXXTLERyfmVJZ/J2J5PaLRAaJchtYBm1VL\n0SM9VrFWtM2QmMgmlhDe3+0V61jga7T6wtbKH6E2lvyHIac4Go6V3gD7RhvU\nbgi+\r\n=9GzT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID2WUqHe4yxrVchWpakJT92rep1dQLNAKLXPCCP8pLBaAiBXIEcVbCciV6UVSOh6Sf4gsdHsVV9xUEAYaXzj0Pfy7A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610482467000_1610482627254_0.09985528554811607"},"_hasShrinkwrap":false},"1.8.0-next-1610495789000":{"name":"playwright","version":"1.8.0-next-1610495789000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610495789000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-T1Sfie6S4evMp8HG2SaU7wOKfIiRkCqmfeHY4gFKUuW04amzEMiFZK/kHwojHagzmCHujQfF9xMrOgOMiguWOw==","shasum":"083349c595bfc425b538e932c39fba071b462e76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610495789000.tgz","fileCount":207,"unpackedSize":19992336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/jkUCRA9TVsSAnZWagAAzYIP/2M/gXtKUlrxUuNshTgw\ntHcjvC2zdfSSWWjcwIeHAXB91W/n40sIA4L9CMe/Y59DvE7ct8FGKbePGqj7\noYXpTQC9y5dt8Fli6nBBvoriMQXbM7CrElQj4WS+UdpHjHGdfYHDUQqmnoEV\naANW0R1w8BybQP5iMYujFDOXIAViPkWXPlebU3gsE3JkA/qSAKW+7meDSZ8k\nBFdCS26KevWjvARrFgPssCz7F5JBhJj9FSqrc+dVA8QmDuPyZd/ctCazbwH4\nIsrzkRuzjC2qqHL0hC0C8IJU4my+raos4PdCO85t/mAqpIDDE7PVyV6vbWCG\nO4OXu2aPKeaNzTLQ40H1HHTKMMVOL5E38ecRhhoQO6UZrd54Ral6GbhK0+9L\ngyVl2VrdJKFKOaOGW9BOI+abnGWhlN4IcqTu+nYshiWEuIs85Xx3+B/8Sgkx\nP1C/6XZSqyfOA5nCHcDP7Z9Nlo2rafK9ckLgcN0KkvBEL/dzXMcMYQseWqUe\nhBSoUHHIS53dcr5Z02j6t8p5HM01u5/8RrJn0Z8pCITDXvyeQp/YUmpoY1P5\nMclpF+PGDB7tluBQ7VRXunKKp1Z20sMsP58oWEZG9ZBpdQfML2oD9m77eZko\nlfS2EaRGQHpzqQgyvlGXnWf+zFxJx1+n8ljrnusd8lTwyhMP7dRUlEr17/7M\nEJV1\r\n=y2Z/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO9vH0vBAjAhmuUn1Tsx0TboK4oCA3rh0CRksavjgXCAIgTb8pyMN5aIYLLpRIfjfXayWikh7cXrKp8Nk5W3MFjKc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610495789000_1610496275767_0.6643764075546692"},"_hasShrinkwrap":false},"1.8.0-next-1610501508000":{"name":"playwright","version":"1.8.0-next-1610501508000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610501508000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-r/XTnQcOI0nbvXKmz3xeoKsPdHPB+e1kIRzzR6Sf4XCX58/R1Jge2MUvq3HUafag4Yv33cnOMZiehUYR67Q1Wg==","shasum":"8e19ac7daeaed27dee99481b10fd761191e6bb5a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610501508000.tgz","fileCount":207,"unpackedSize":19992336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/k4JCRA9TVsSAnZWagAAK5sP/Anj+hBGs8mD1xHffVpi\notM0xegBdKszoDFcQE8+YuuOJrgwP1adyLh/0SWV7YJ2XRcgCGxzL9HNBh1o\nZcFDn31rAX4jm76jKlLVmeJOicffAt6IXUxxxc+1qDGkMFbdXSCJ3gDpkAyA\nkl+/5a5nxQ5YWTKSrDrK3IHonA/VubkGfDEC1LK9blc73CEBeqyvmpf/fjNY\npG3OKrrPYYEo1+9mAehXesXDECNkD3gwCQFCk7ESD1FJQwI3XYcnvtmetDYk\nuDJozABY/zgE//2Avh3zhFRBVJ2by614BKyvfECefsITrHIf+2xngameIFpE\nkL7tsvnt2ehSzXHsYxBfBgfBo84bKseUjAx66OAPCXG5v7JOz70P1FHOYBSo\nKEcbPce2XLjhbbXz7e3JVK1hU+Da12vYNx9h4b1OkvA96LXW7uARUG8w/WNB\nycV6OOnVN8BAZC0+b8kI3A3Xk2mMVf/VLfQGMXZQEmNMdqzDhZZu5+z/pLsm\nH470MjEtuPCANtnCDxwMXcOaH7xefsCT1jXaD3qV/FTzxlzkz80qJpTVZFxk\nac70j64okPxaLkiP3ZpU46r3eONS+dCeRwr7SP/ikenXbQRvk+xrpmhEH3D3\nreh7UmMuC3vJzOst17d0Qtyp7RCnvklCuSSbN5DYRgG86oVRCzgRYl09H66M\nOpPt\r\n=/0ub\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGx3KSvyMOZsTW7qnssH0Ia4lezEME9pWl0rHxu2UzDSAiEAo8FgOIoVjpDSZlwLwjILPMXkTqEzjh/MGHF6xMz35Fg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610501508000_1610501639272_0.29844154987105975"},"_hasShrinkwrap":false},"1.8.0-next-1610536538000":{"name":"playwright","version":"1.8.0-next-1610536538000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610536538000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-lwixc1zPQp8Gd6+aODE4/qoVy8hB4Ew0H7NryWZRkKhKvrMzHqULC45rX+tRVXaCJTehfF34dLI1ByQHm50MFw==","shasum":"149274fd36138c3756ce7700def903e4756ff443","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610536538000.tgz","fileCount":207,"unpackedSize":19992336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/to+CRA9TVsSAnZWagAAaIIP/igxWUZeZBR8DurWaD05\nnwrwTGWai5Ay/0w9nJ3i01dqCfyt5bOOx4KPuoMNpO66KgXPj8XyAZxBkPUD\nOXJdXLM5t96idesAKCA2fLzQ94pdhkli154nMZWsJl2UeFuTVfbMP3nJzNQh\nMj47WMTm4AhXGV+YodGVA5B3/hAY8oko759WTzfPr4yTo6sNzsjDz0zrDtxS\niNapUJfs9+I6+IDacBGGb0xqAUZjR+l+Sw/PKLQukVzAhxWbT6stclWA8oO9\nypOj6afWiEHBxPGs9hU2j+MCLdH6eTLQsTP/izlubFLBAMPXY/TqXzdT8J5+\ncypTZ6DEU/4KoE/5MgZuB1W1chSNQQTCVCYuup50VFL4CYZ+6RylQsk/mn+i\nEwXmf+tLOIaMudrhCzKwFWiXV9OeoO/mNNmU30r7iXHyJHTz8wQRyb73OcZx\nQjqWTbdv7lfyvYt+1uGy67R/kPYDLpFVs2omaqzTeHlLDmry0u5eGZKZcJ2O\nM7tqs26APfvuVUBRwErEQ4INTMlROV6rlaOnIfSZWnLmqHwohnJWS9PK8CrV\nUbp49FTt3qclJpYUe6xPggI6ldWbNqZY8Y8nBtMpHDYHTl9NNEo/ipe7N8P6\n1mohBC+GJ6XEnxJlgLSSCaxFHZYp5rcH96BRKnodSP2rUVYNpCS5z5sNVMsA\nU/YK\r\n=GrsQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0Fo11iHLV+iS6SbzBmEgE989Y/8lRzMXgpFnAXJU3uwIhAP7VNkjvcO9L5WUK/S3HXcU4LTe8ICYYDzFdScN2EJTM"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610536538000_1610537533177_0.13254773291743804"},"_hasShrinkwrap":false},"1.8.0-next-1610557017000":{"name":"playwright","version":"1.8.0-next-1610557017000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610557017000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-DiW8GfbfURlLCbL3j5ftM07KLPUNuY18MCF/njiMlbbXycYxPGtrgdzwa09mixUJVqAhAOi3FaqSZTsFXNfFJA==","shasum":"555782dcea598f1f1e2136ae92ffb779db385892","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610557017000.tgz","fileCount":207,"unpackedSize":19992328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/ybnCRA9TVsSAnZWagAAKvsP/ir+2fz7iBxvjGIj5aBZ\neaIr6WbiijmPbbdD4aUgW63ArXk8tV4FDCfakQ1lvoafPKSfG5mmQsLsIv5K\n98DF8EViSXq0bnvTsJbmRBtoW6fm0ibVG5AhcQqcr5hZwrBO09Qn7TKjgrqV\nFaESeZWFmKAcIaf4MUvc58Auio6xv4cXh01qua6REJQpy44bjeqOoVrvPna2\nHxbxxjLKsPdbRDrFHu1xBdxgxN2PZstnT/i6QhE7Buxojeqx3hOd5/A2M3xQ\nIllyvm1P5IS03LAiLZ21VWgcDz+u3MxVog69K8kxJa5/qHxjnWkg90O0ET2+\nNBY4NDqhQDHQ4musiwViz6FyxRZGqgUVaIjYVi80v9ep4u7X+rx1xdRtb8XI\nYQTuE62hnWbjducflL0Qd9vz4Cp8viQj8Sy0FDcwXkzgZRtkD760LeAeHAG4\ncHdOeYzn0g6RCTNwL690FDiRkzfYn192vZ2fP1xGI9cOJG73/b2tBCqfaGzL\nBj523DULe0scd73xnjiKNFckvNBBB041piu1l7V5F1pbmGfPnjJxY+T46c9b\n4QzP/WhuKWfqWWSRA3yDr2x+4NUJ8Jb3t648L7QMYUFRCklNKeokyeJlgISC\nuOU0pa5sYOvvKmKNkG4jDe0wMhHZ4wqxbMOIdVSOfofhmWeccc8nXh1OO7fh\nbXlO\r\n=EgH7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGidnzHKp4tbNo71BpKbdvfETrLB6v9a+Xx3GQSPtalkAiEAinSAjti2Wu3O8F/XBA3r+YJPyu0gcA2+S0Fus5op+lg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610557017000_1610557158789_0.19740454664576768"},"_hasShrinkwrap":false},"1.8.0-next-1610568494000":{"name":"playwright","version":"1.8.0-next-1610568494000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610568494000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yUbnJAxtgO/U/Q2bZ16zy9W2ZlNzRU9WxeW7pBFGAuztbHkhqy25qEYAOkKqZugsQaRVmDeVoMI9Ko5K2SVJ4Q==","shasum":"cf5ffc0e90135b8ecba9e3a37f700e8c79620942","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610568494000.tgz","fileCount":207,"unpackedSize":19992345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/1O7CRA9TVsSAnZWagAAQp8P/3prSy2IAWYEJSCD5GmR\nUxF9mpJ/UbxeV0wHEf1IjIJ+KJFpmdYCmhvOdJ3HvRXd4ltKPpHlYADuawqg\nVbWsUZW7qQRYUyrqlRyt2KjVfxzMkUvZaoqnXhTTu8lUvTs8KEV2+x4PlVsP\nqed2vRoUg8nRNhPmab/OB0k5NvHrRhL694G+QQRW4KgxTryI7DJZWr5JFIg3\n5Zm5ajFx9NFzwn1IiGZhD9hX3avo1mcgbu8MxRh0duWjSYVegd9X/IaqGv+h\nSkvr8mQHqu5u+aSb6U01JdAACkVp3NyagHXOoIhkmoIbrdvWbm/NzVBMx0ws\nPnsgXv53B3PsCeb52aF6QfoCZrS3U3sHodBotK/qQ8R564dSd+5sKpLhTHFU\nf5i7vUgNT4drvfEvkVgsL59yoi+DR0lQgxka7DarZEWNmCOeXDUcb1HwJzNv\nD+QhnGvivNUXSuMJ++W0LKTJAqaLSCU3xlP4poGUziPHp9ZEcJljN0xu8g5l\nbGYcQx/jrICSzqOoNjTt1weipMpOqCPS7mjBoNH16WkHPrSOI2jKD/DW0Gip\nTJ2vqAQXMSeRxCZsMIViw8y8/frGQ9w5DigcjjDyCH+HEEBF+q8hwIo1+6v5\nXKrirOaFH6ytJu3Fr+ndUcpuTrG/OUguYm8w8c1lUxu1cFSBApeZzkzR+pNm\n/Vsn\r\n=pQtU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHR4raGBI6gw7Sw3Wgor2/19OPrJoJ9V9NP/+FASIR5pAiEAosTwqnA267gMpU12SisK5BXcRGFjOHUcjT44Bqu9Pc8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610568494000_1610568634444_0.718037395852551"},"_hasShrinkwrap":false},"1.8.0-next-1610571123000":{"name":"playwright","version":"1.8.0-next-1610571123000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610571123000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-9m83dX7AVcy1qvFxM6NZidthpiPcCMKX0LEcmqj0gj6o2rrbD3kEibQ2bzVAfX54D54gBNX/NoIvtav9+RnkWA==","shasum":"6c4c6e50dbf24e7f8377615b212b1dec5eee273c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610571123000.tgz","fileCount":207,"unpackedSize":19993446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/14ACRA9TVsSAnZWagAAjvAP/RIQWBw11Rs1jw0c1P6P\n5zkfQC0a9uQsG870uVM4nbqFxZp+HRsDKSPHYRVvj1y57iyXtrx6ITpF9a7l\nCng9KL3VMD/TXs+jHSr4qsbDgL8Mo83BRPDMlwqA1t6Gcy4gV2YisQtrWUwq\n/4scKHPEMpd+/rcmO9nHX26KM45gRAq+vOc/POZwyvaOwx9G0RcOMTk1MBqg\nTg13/rxL8a9Wq8fH38HrlOlnyykGZZU75bjK7yRzUFXiFGxD5Firf03WfvzH\nPlCzesF5daeHtukiNKfP16v1Ye0Tph5vjuYtCu+VXiEoWHNBXxhDVm/p2NMy\nrWsnm/r+/uMv1cQm4bx7oWKjB4TQqjz/WniDEx3C8pP5bBciQoRNAvmrBvOD\n1LsFFXyXWy0Ysd14OSRik7l6QBOBwDkGZ6xgcWygyIslI814NkjtBlKol+i5\nXZCIwYAsWNniyL/0nvVQR6jqBN6aTYGu/1jAUsR4oy2+shemmOoSqXMyAIgx\n1VeLlBNLPd1Mmqd1Sfufb159YaaRL+469PAeeB0yeAj61oT4y96uqGSyKaSR\nyWr+FxQHf2ztaVWjxeSOdSHi4M2q9a7RNSo88jhTn0YncuDH5MNJA+aG9dgR\nf94ghZUz7idi/sTnhxTz8gkgFZBSfMf71/59Ty/E5DGN+rzwl2b6+XoD2jRP\nsuCs\r\n=/JPI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlN/ezc0FYDliD8kw/LSvtMQT1DggkbpJzaFF1rSrL1gIhAKXeN0k6HOfK1lldfHNgBL7ae0CHxU0UvrndccjmxDfT"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610571123000_1610571263501_0.3927436695261597"},"_hasShrinkwrap":false},"1.8.0-next-1610574969000":{"name":"playwright","version":"1.8.0-next-1610574969000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610574969000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-8MryRBbwWyN293Iqn5az5T0EvZ+qhPIb84SOeDA5458Z+HTJsbIVbpzs3xKJ5Te8qcV5W5azntDmT/+OgnMy7Q==","shasum":"783d005119fa11e93d75eeb2240b778e987b34cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610574969000.tgz","fileCount":207,"unpackedSize":19984825,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/20PCRA9TVsSAnZWagAA8QAP/16pDE6oEkcRRaP03rKm\nsN9pwl7Udj/mMj9qlg7QjXNl45ZUEQe50zka50d8+VNQnKOHO71DXFwjyfR+\nJIMOijPbVOA1Sy+Q4FZYxEBDDZ58fF9+BS7XosizZ++jtj5KS/mdWsAedFU4\n8ubAgngllb5SxsH8nfp11air3sFgEt0r8jgGlBiLyj2XdEbjcm0OgaYpARJM\ngj1caX+apJm96hg1Wc4bHxp9gkx5aJI/UBSfBMhRztztGt6SjG7ocsEhIMlr\n+lM9T7GINdMIjgfstPPnLBQ2cWtb+qu0LLTdOg6WZ4rHGYaeZa2yO0+rCGjm\nnXjkMPHS3NhnzTMBfX/szBZTi/Lg0w3n2o4WapDLe9oCH1qIDpkOzRgsCxC2\nqnsLEQ3whGNSV2I5MG4eOMQgYJaCMoGThrZNqqHKUhqB9Z3Zahw70LiEQkkT\n7xBbSrcBbNViNGaLtoLkoF0jUlwpAPIYUDWX8WI2DlaMQZ21xEOy4a2nEOu6\npyX2PoTea6Y7BxeD+SaXXl2pRM8aibY6dJq9Rm3uYEGcHmCZeNmc/WY32mu1\nVkWS+fDTgNUhuSCgoLvE3szT9wM1LiLl6HyWVy0W6gmwhHkgoD4f1hdPjGnq\npuXY74RuMy7W82wnoKr2YWmLzDhLbQG3hXnBeB0uURD7kYdPelxBBMOASJ+h\nCjyP\r\n=miTR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAb7UMZt6p9fXpL7R4I3EIzTUUb6C1AyqHx+IW0r5XPqAiEA6Wwe8qjr6LZ4MV9SwmdWLkrPu8oLlj0duggOuA8R24I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610574969000_1610575118778_0.8411027841448375"},"_hasShrinkwrap":false},"1.8.0-next-1610576742000":{"name":"playwright","version":"1.8.0-next-1610576742000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610576742000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zxXOGDADn2o1brnm3I56pweWuSDLUbAD8EG4DhxmIzqBhKtW5gpvNxB13g5O+u9mm8Hzwn6BUq3ysXB/w+kSDQ==","shasum":"a7da1468acf9ce950fffc10235aa10fb1b41140e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610576742000.tgz","fileCount":207,"unpackedSize":19978824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/3QeCRA9TVsSAnZWagAAcXcP/0aMqH2oHaxywG/xz+N4\naMba8FqperW7/HdRdAAl673k0iAiL9gIvkQ3s4AgeJpZXwKWVWzZh7RjGOBx\nFY0pZ7xVrl0rSMcB5d3zXjG2sOj/S70bjUG00d3FUXBUwxNJHzJZpCjh+il8\nbn4WZGfxoeA8MQYyqtgdieQd44nEWCfJeWjVbACrz0LcgW17T+aIVPjL0hlJ\nMqgmeMekY3gaZTg6q2k4cmOevlscPyoKmDREkhvdytqJ8vTyWpayvGy2y8Vf\nPIOLnzAhPUYlUV0dwjmvFlXm+e14wz7VARYRKIUuHv7nsQ401q2JOoDfKtwH\n6ZoZA7Z4ttbuB+lq6cxPIyvH7fjba3eZwLGHhj6vnrFWL2yLNBhnSoDr8MtC\nAvOzbkWSRpWrpIFBB6JdaxdFlyv9fN/4JJEgenHUDZQvn2KWAJ6NO1jMHx9v\nelbp2Zh5YsRJeP3A8Fy050XjmIWd3V5LaFweDVS0srGl/UKFrSJ+W5mVbO7m\nHQJoNda3XlmiQ7UVPhPiXc7YFP38AEAaUfVKp0Hjq9e2qBw4KdsorJdc7336\nk9R2MnCKjsgIsaOS+VwH5urogMUN0bvjWB/TJ0luWQgKH6mpDEiM0ov6g7yD\n+plYwnjG+D4zCFwjWZzNCGrMAO6S4gffZM9VNkNNVtizLh6xZ1p6aGNoEwQ2\n+SKg\r\n=mq81\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+NzrxtibaxKlujtBCLvm3QcnXUGU6VQDoJzFmYrQXsQIgFdKUGdMxU1OUIC8ex2vXGrzVgMi9+Bck8uYxnISIr3I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610576742000_1610576925729_0.8741045129197405"},"_hasShrinkwrap":false},"1.8.0-next-1610586173000":{"name":"playwright","version":"1.8.0-next-1610586173000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610586173000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Rno+vz2AcWjJyrLR25Q+uPixC6Q5lIN8/B8PlxWQRUByL4ZMSdXth0NwOOTz/Fa/rsnbJgGe9fAkEUIC3vz5nw==","shasum":"917d06bb203f2c75755776c36507661f20ac0524","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610586173000.tgz","fileCount":206,"unpackedSize":19975430,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/5jhCRA9TVsSAnZWagAAk9wQAIto70ul+kFSoEUEtnWq\nMDy0NLVfO8kiUB2Vls80UucQRpVOsLaq2ZZ7Wa8wlSqEC0MH1ad8+7QghTH+\nAWP210y9xihrLoScwgS7IEinYcxwVNIyuJybwE4uziNweWq9Wj/e6hNVr1lE\nIZHyJJpYhh+3O82Ynge78Nvb6NVosz1WguYJp624X4Szi/8tE37usr6nOwcz\neBVHJj2Q6T58TJXi5N/vwSLgAxCBGAK7DcsD4T4tRV2350H2JUDzFHXG3uTZ\nuBFyTKLExUHfsEwiANtguGBJZmIXaNSTSQwImAo2Vruwv2H3N9uPao2L4s0P\nmhTKkrVDj+N+RWt6P5ohuxULIZJTNp/tCf0TZtrtfeapeazF48rfg3mO5fv8\nVBml5fK1/E0wRZXQBeXAao0hfPp0oC+WX8SrhMBIe98GVzAxIvLTWnCuspot\nHfBRiRGzoCykCrRpTwk1Ph1/BjhWdTLVMne05G9hA8k9ENwv/Ty6n/FLc3t0\nd+zfBBOq0tC4aDxf0k6YS1SJLI6/OfGWA2EIV9fKyOpWj6nzLKwXTadGYz5l\nytfp1+nVsHvQ75WVe+noigQGOw7PmhDoIjdMUjz+YwLzrVymIJMG+fQddIsK\npS/fWNqufmvve95tFgTyKqFG/eKSMhYm1CuwwBZvGQPDJfgKRIsNlDIHs+8l\nHbE7\r\n=JjwR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRmMunPIBxbVSPVulDzckqdhUdirtN/IU4MdUvKWAbcAiA4y8CfSQabVfGAATqx48R3ByrtQcTRIpm9MYSZ5ssEzA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610586173000_1610586336321_0.3579939725352512"},"_hasShrinkwrap":false},"1.8.0-next-1610594490000":{"name":"playwright","version":"1.8.0-next-1610594490000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610594490000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3HW38Pf+gkBjxMGNxCQ/QIvHDP9FtqHZd13m4gDpshKiJTFcJl565faBviLLjPbrzOwapJB4LcyqdtDTjrp90w==","shasum":"da32e22b2c868c9f258bbac744bfa1840df12c85","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610594490000.tgz","fileCount":206,"unpackedSize":19975141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/7laCRA9TVsSAnZWagAAoFMQAKEdFtKBU2SkP8jBTZV5\nUTLJEGSwfxzM2e7G9Ikcz0AqMkODOglXR6Jhx8TaZgGnPQ5KKpEiG+n6BeUp\nMW5KZ0xx8TkH9vlqUYdSCsToFjq+KG5ESZRXr9eRFNvh873yKrt1w4n2/jLH\nAL1xplL47Gz/PRUjNAvox0D4WBP6F6mitxxj2wlPKSgGTi4ar/O6OlB3BRLc\nKaXtSGXFk+g/mzTdcKOUsTkoVDPghocPdcMVAq+uqo+IVQluHbQ/1g7GNkGa\nMxGO9720fj+bAN1efzdxeiXvVeO2yiNtygAr6eQ4tk2KGmUMLeKp3UPRlpVp\notRI1kRKNvwZsokwbew2eE10SjZZwo9YAirLMvYAKOV3V/p0OI37tv2b+7Wg\niinW0x0ssyVWAFE+oQPkQQcANsjqX78q7Aw31vAgBB1cbkuJuEy14LT18hym\nCbx/L75M0G6rqaq0vmf5SEes5hOUqk6/d6yEBwQ5G2O7Fma7PrngV8w4Zj0D\nlKC7nc5YQr1yeq/th4yKSQCdIKILoIhK5RwaClWi08WzKAtCvS9EwJOJDJDR\nT39SULV7zG2Hyt7JJuzknRPWf2fy944hO9rwLPY65Uf+qnJDsqLXin3wVujI\nSXXrY4pRAJPASF4sJIQIFcCpvU0V6j4PCNmqFsu5XdKr925Wt2drlW7ulP6X\ntS7T\r\n=Mtyy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDX2hWVrVngbPfF1Z2+DeRaOHg1pLmUlgauc2vxclsRBQIhAOeDiSuY7MWFAmLRXM7u+bhI3HuO0q7jHEE6VwbbasVu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610594490000_1610594649461_0.4508438043733529"},"_hasShrinkwrap":false},"1.8.0-next-1610600615000":{"name":"playwright","version":"1.8.0-next-1610600615000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610600615000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-va2tGfFMN2MJhgm1qpU4w/c7DaU8rFPCm3jsE43IX+lAHgpVNqcX6ru9QPpgn5NrRZpGvIpjkmfZaJUPZ/RoUQ==","shasum":"be3be618556b4ca5f45d461d2f5cab492af8f945","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610600615000.tgz","fileCount":206,"unpackedSize":19989920,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/9ExCRA9TVsSAnZWagAACsUP/j+1ehLy9f/IuTFbRlcv\nUb1L9upg8Bnp4XMb0JC2oeDCytRH7kUSZjkoB0vk/gxelgGLKtMcuyakLK2N\n2mj5Gb8NwxMeb6zxGEY99XjeLH2Ld+/LtfX78OUUSuGfyZhnSu+Ae/slbfL0\nTVzClQ13eYCeFV0oL1n8NikyOLQKamodhG1ifs3uAIQveSK/f5qaFCJUhkDD\nSwsMQl5aJDqnAmIfe+jAP3ePl+LvQI6Fqr2TyEezSiGIknujZkHONc4NuiUq\nN7dB9IP9Zf2goy4yw7WAWi7JLVZsGdx8qwqSBMDsZ4//Qw3OSFseR15MKP0A\nVvt5unKrmsG5TgFMA/k+HOL6JWFEBLYdb0IQJIiE9iigIx7KtIiBZCQ+ADn7\nscwA6xvWIyZVs5VvFIMI/ADOs5Zr68YkM8VNtX1qIMAz5xv7jNRLlYUdwUqN\n3gmH0AA1aaV7JunXhu6bEFpdfE49RH2Ul2RVUYWezOntJtc27vTSkWvZrWCn\nxWnP1hM/b67bYiT6XEsALkRUeFbXIbOUZCQHEWwfwc+nYl0JqpOjCQw9fafz\nzNN+j+v2Gpx1K/nWcF8+0IroWKEdcEoNY1HABiNjRgUfOwodhwx0FUWKzDlB\nYn4Cf0IGD1E8noxTMp6Rs8HX7v89aeCVBFbQVAtFw9hlfSczDaWMMyo4WVLh\ngn2J\r\n=4Ugq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRKmxwFZ320LwoIMMKIt/He0Bqfi1fEKYQvJJryg0fFQIhAMLZDE8rE7DINFW4Icy3cnzG5WRLsJfGnThbhkgsvKsh"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610600615000_1610600753239_0.8847395717481632"},"_hasShrinkwrap":false},"1.8.0-next-1610639336000":{"name":"playwright","version":"1.8.0-next-1610639336000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610639336000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-Qp6iU/IvcrXbLqmLrC3OeezLgQoGAi6MWyBcpJsDPao1ZD+rwP2x40fdZ495/rIr+YP23bFpbyIK0bHo6h6ZBQ==","shasum":"7c3ce5587c9fee153635ee0813a23e3f9addd1e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610639336000.tgz","fileCount":206,"unpackedSize":20027466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAGiPCRA9TVsSAnZWagAAGrIQAIw9EzwQXQLFqX1pgnUf\nXpdHqLaoCu5JDw3gkE50/5ZIWjlPXNP9uZK3N4W24Cij74+0QSy+oJNvGHwV\n9QtfggDVeNngYuiGW1KH2oD390gKEQ8b0inHmVx8a3MBjWm85O2got+1YXwD\nAmBzDygv5EVolPS9ferB/ccaldbh0Sgykuq43y3rvFJYzwu109wWcZCulCHo\nQioZ4cqM0g51bExS4wBiWshFN96l7frUGxHfk+D59VSbuX+T66Visk7nwFgs\nogCmXxBA5BE6rcd6/U8c8hxOAP6RiGGGtVL0INnJ2/L/nZ12Uv5BJ8tzgVFy\nTiWOsxSSNsGMXAKV6qNG9SG5cH4rMP8jrlIsCPwiWSQGoA8WO7CtI0g3OIFo\nNf7Gveh2oSOgwABFlW+l7zwWgn53Cp/yXncIFsgSVSkFp8nioBI9X43H3PXN\n/knekpQuDfH8ONd+nbku+3bbMyy4eITD1qXpqdwwcPpufUJg9Cc55fhNbP/8\nMYTd1ao4CD9cmpUZ0ma05W1uHVgwJ123o5DbUqZgkk6s6VTlX4It49RwRrXZ\nGNfEtq2M+Ui2AOrJrWXPyZpRewDZxfPiXVw1eqWCgpFB6GYeYZnCZBec+M2S\naBpDXVnvV3B73WpBl41k2wthPtOeswx5Vtpo/+mu4XlotIcJI+BV8VaMdnoX\nld4y\r\n=DG2Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnfrFuNyfXUjEqFZNjT2BT4UA4OeTCkIyorLJ6pxazTwIgEb7Wm92kMAfCcyO1pymm8O9iCVB7oVkA6PLI0HQ/INY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610639336000_1610639502293_0.016975500798540377"},"_hasShrinkwrap":false},"1.8.0-next-1610649822000":{"name":"playwright","version":"1.8.0-next-1610649822000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610649822000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-bS1mWpaWRTqwYJ/gzvYbLQ5zYFyeXhLSfD9/xNV8P0VAwn7oaZ3XuLF7M17GbSSYz5FdRg4Fi2MFNVXU4MnF0w==","shasum":"45d469fd116c05f4e7948957cf9f207f8ea5c389","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610649822000.tgz","fileCount":206,"unpackedSize":20027466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAJF/CRA9TVsSAnZWagAAEccP/0hAqJL8eS0sMqFs0SC3\nGrZVbg6vP1GT6xndyILEgTW6qdhL93YxXWHSNbowJlNh5TjLTdmYxWV09GLr\n/4Okg8QrpHaahbYsoTWBiLa+tJTKGBO0zFnmsZOGiiIGKKJR53GhgejCQ4kp\nN8pFvxr2Qy8PAs8frL0VyrXQXnuCqrLe2hkS3NvDxRnHFanV4giMZ1//x5WL\nEGACkazH7pLxaLGYA6WHOjBaHf+rg88shh1I2VSACf5h9XhbE1QbzLfEP5zQ\n0dPjPmuxxxKInv+WtRL9guGt+9iT0Zfb3r4HJM8INaCTSmXlLk2Uc4Q1JQeH\nRC4MOxl+k50iM6VgJWhW/Up8lLiLnlnP0IvgqFwN2Kl+EAaubrwDOV/kEPQe\nFJlvBqyx7r6EIyH17fOwoow0ek+nmGjcN4M/rYyQy4rD4fRKogTIVZvFxfHF\nUNU10pavJnLjasEUGoXFm53PMuIklvTQQF6M6CvSsKltffhgyD5o44yIDqDQ\n+0uastqncoxGJPfIL/SqYWGK8JPrKW/22blk1Rbc6z9rxr/HYE0BIM3/d+p8\nbXkzoIIdcsvBK1jkj+kx9Sby/AEbrGq7XqDsvUUTBV9JfigCai6KMjl11zfV\nM5R7Fc3tbudwXqEzTB6UX3vuzYLC9Pfy6nBYpWLLkjpOu61uxj9cmH98fS2z\nZ1Wz\r\n=Vbd9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2Zm6kblmNbzFQblNiPfhVpY7sTZGtk6cCnuhE4i2wQgIhAOdlbEogcxVc3f3XsjRxWQLPHg6iv4uD9LKr7SgyVwXV"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610649822000_1610649982474_0.07352949537234221"},"_hasShrinkwrap":false},"1.8.0-next-1610651384000":{"name":"playwright","version":"1.8.0-next-1610651384000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610651384000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-uCrz1snHo7Vqj4VnQfNrGm+S89CrPk/qAyYFo90vPjXH/oVoJtFcaJru/zETYADbU908LBNxnQ18u/KB/JOJrg==","shasum":"48ade81320bae5dbdcfb7ac57be0d7e1046939bb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610651384000.tgz","fileCount":206,"unpackedSize":20026705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAJlOCRA9TVsSAnZWagAA7x8P/2MwELP+haKntml0gGuB\n8MdKWJbeBHhoW7jKYk2vkv4APTjgjsov9Sw/JIbE/cpRyZfhsTJrrCKW/zat\nqn9ImP/j0vok6g9sddmOib2uYf6PvxEwFM5I1X43rx7COW7dYxWAFHQlf0Sy\naRDVSa0uSjGVdN8u2x4OH+lTyXOM+6MdnZBi8lGwKS2e4fM8swdHb9OfIVBh\nPFC1PTEUkWu4RZ3yIcOZdugH7C/hvYc0R8OCsH9xIQs5NWs6qnzAdbH6aLJL\netDdwku4yIgqJ2d6qWn52jzXlA3thrYM53fUBLOUdxjaQAxUkWfKm+UE8HJy\nTYyAdsrv+96OWex8+wLS3BD0AuuZf+YTBDb31/TXIP/p3T3LagGMCqScfp1f\nwiQQPbtIVq2LOUZGTQoP4X/v0egp3h9Gjjs654iP6nmGG8Nj9jCWjZm3GrIw\nKN/Ez7afO0pGpOOzPy2O/sCJJwvwGcfyit/kVpm/ZcHEQaP7N7QR8jNTDgt+\noW2kOwFVvQ88CU7Eh6Js/T2x9AYTuZzNeY/duL/l3noNQg8HTRtRotPbDoDJ\n02FQS+RFrqaSJm8cLo5IYJuE+rczY7UfkBdcvKooz5QD6lI63GltUdDVhmvZ\ngelskGSyIlKeMSyyZaL9oR59548vEJY2xvK0lnGmQfeQ6Lpwtcf3MDzSqF+7\nSGyz\r\n=lTnq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3VuQ6o7Om5UAq87eIlo4eA5PrHm0ZeiwQMFCM7nOg7gIhANSpuSK+c6A5UySxT32a1eW8xET018GOfWhhfW1zX7Qz"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610651384000_1610651981221_0.7022204404344254"},"_hasShrinkwrap":false},"1.8.0-next-1610653509000":{"name":"playwright","version":"1.8.0-next-1610653509000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610653509000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-IF8KhO2qk3SBqZLjd343Ld0JcEiReLFHcMruR/ayr+7sZvZ9Ejn8Gf17YZ0nSztlGH+l6oa5+idQXyLe8PhsbQ==","shasum":"855f07688818214c42800dbef60f76cd751e6242","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610653509000.tgz","fileCount":206,"unpackedSize":20025794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAJ/7CRA9TVsSAnZWagAANaUP/ROU2OQZ90IJHFK4QIfl\nf+8Omcgt8UauS20GNVx1hC28465dIGb6NS/4wmKfCMqWy7a10JPW/rIqXsxt\nhE72UmHmSFvY4A/1yytmlnC1/6EyXa7ptUGipF7mYiCjI607au92jgPT1z0x\ni6i3ALI0UCU8DMkxpUkAJFxApJBoBeNIcFSaMzwH1EdxFlTgTDs9MsUDG4+k\nVZyNgMWnebbvOtbKdi1kRnCjIb9tC1j5H61p45VSKJuaB1d8r9nFcQc83DTm\n0VdhFQpgOr5jJGcg1fdwLtUdozb5viwI+bmudWWJ4C/Uq488uFVZnF/B7K9L\nn3gFJkgAaSuD1dk8poB+GRmFpIVm86jOLcoq/DOg+Xnq/4AYZgCtX1sS0jWW\nCGu9JNesuOI9E5CQMcYrp+cF6OQaGITOQMHeTXTrfSgnF1yqyPpdm1XQNdM6\nVc402BPNv5EDCiymzsynlhs/qbtNyG+tjBfg0pA0awPritjitWDuHIIpV9oC\n59jJqdu9f81lxDTVhzHmRl4kICg5aMY04oLYopR4bEUWzvOeJ/eo4frQwS6x\nzA2HhiDHdTRmbu81OEurHTctTonIT2UbnYLsanAYPvJ7wawfcied2xjCzZqR\n89Cjnzv8teJWeL3EjbfIjNX8KNRwIOCkl6dMaWySt2QP/yJgjq2wYAN5Zx+J\n5lfI\r\n=e2pn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAttC1iYMSrENLoKDG28xLsLy2jqeNh9axivlNi1eLZgIhAJHD6LLuAbXCf3ZT4Z0RFjD0S5nKXCqqVnFZKuYOwJT9"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610653509000_1610653690651_0.6103897461727308"},"_hasShrinkwrap":false},"1.8.0-next-1610664019000":{"name":"playwright","version":"1.8.0-next-1610664019000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610664019000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-FRNagG7frkzbwRR+UYBqGoOTfLcXLQnRtYbmLzE+MfmlHmH64aknxllToRLbMUfwi48S/2128/xkEUdIWWmHHA==","shasum":"cf6f9f0fb2b4d9a3b71184492c932476125c65fa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610664019000.tgz","fileCount":206,"unpackedSize":20025814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAMjjCRA9TVsSAnZWagAAFzkP/1DD6n3Y+RL9QUquh8BF\nYnYz9NNNwRYwI1oaPujVqTCTHG+3DkXXkZ4H3zzUGSHS0wQLo+itBsCwg+ED\nZX7YQ2ZMHxr4Yq/bl03laRZV3/HJdoj5rfay2dBDTwREI9hArELjp2iIDYDB\n4Aa8qmCVuy3ZkTGzQnMU6GsRqsVuonGmYUbuZuWck38jQjMBUqAhkTIjr0Dh\n4lpbqSZw5ks+2Y/GWJT2C0PZm0sn/S8O3MS8k8tfsZIIY7mURrWzMuEoPEww\nf5Q/beuAWl3HqYmdDJjRiOSqM9T1TXUQAJ1mdVl8qJvvRQCy3RlAQwIf/5TI\ncFC9daqbErpAbKKSr2JqsdJ8xywDs9VFmQi9RPZnwFFf5oos4ZykK8umoHmi\nTz0p+tdIGd3eTGEXe8UVTOf73CIb886Ft2dFnxSgdfiwuE5OxsuJDBxggHre\nKUssjd8Xs3sdGRKz31EmOzvOvxZFn2KXnqa4DF3etkUSSMi9XfA34eO6e/8C\nsrOIcgAdcDTbYjNiSPq8zoaIa/cvFeDfpMCLRtfwrIs4sXLi/3Z0CoJYDF5n\nXJ1AYa21I+WmDsqLcUVG1ESS77swrp/ksxabw4eHRVA+LluERQfQBKNe6oaK\nwY0BWw0ID12EV0WWskVVsW6alPZUaNJSDcAwgvsfnky1GOhznqBRWKyVnVB+\nUxXT\r\n=9jsD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAVCJv83Q3IWLlK/xjrOe+hf64lo975gAK3oO9aWGX29AiAKt5IB/UGlPCIoi5xqlxhLL9hqaPhC8UzJT+j0Q2t1IA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610664019000_1610664162465_0.813960209744331"},"_hasShrinkwrap":false},"1.8.0-next-1610664917000":{"name":"playwright","version":"1.8.0-next-1610664917000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610664917000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-8EnnxYwkJ+txm/FPTXlJ27b5I3ZaFfSIYH+MhzQdcAiO88eW7EJiZIcY8iaBzPzzQVbpFuRtr3dZ1vcV8gF95g==","shasum":"ff6a1cb2aee0cd052a5f6c788222c8d0e063e382","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610664917000.tgz","fileCount":206,"unpackedSize":20025819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAMyDCRA9TVsSAnZWagAARwYP/0SVdyX9nVnoY3pPL/OM\n83gee6GzJpjdJC2vVnBJrKCtqvXsM1/nNqpzol8iIHn1r6m2ZBJYJa28R9RU\nfeZDL9FrTLGHMbJgYz/0eHyBwFcxfTWBgURpQpsHQ1wyQGrO8XgTeOdjFEtr\nEm2qXKQ9v6OAW/EQJ1aRaodPcdguxXU6rZwX55LVNM27lzfEMNvLvRWkczlI\nVicp/wKO3Tzza5JD3ptPaqzg9+SMK8fcm7IwpSLGYY841NJDTYrnxU7JGoqn\nbiZIOrAnuNsRnsu1P36R+eC5tABCLLdoF9Tg0oagfBb/90VAsSloijzLNMCQ\ni6wGVVAwoOrb9EH2SfhT4e0kdd46Q2zBoCPz9vZa+kBhjqaztFplcD9OPPCx\n3WzChkQVZ/X2pNVoJoBYvnJj+eSePxZp+oZFOvV2q94wqPXTq3RA7KpTchCx\nwhbiLbwdXx9tlMxHylByxbO4jiqO0gV2w36RbfBSxyaaydcoRp0zTcAv75GW\nj54id3PiO3QWhvN0jmOF6drdBQbf3ygO7176zSt7kOjeRJuKfYkex4S4qVYn\nTqEVS7Vpknh48Y6vKIy7udtJpmJr3ykJ3ASfq0+uaSFualCl1j7IrViA8nNI\nB57HhBZkwzrsBSusgO0kszPqepqvnalX6IZODIAlHtikZpsM4exftatyZCxF\ncIn/\r\n=/yv9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwVAXUx6O697WZPPHbBdYYgQN9HfMoGvSVEDoLvbcc/wIhAOHmsWlFksxrDZ4mX+9dp/U69ZBBL5NHxVHXG/eJvHAM"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610664917000_1610665090587_0.3566684596698739"},"_hasShrinkwrap":false},"1.8.0-next-1610665299000":{"name":"playwright","version":"1.8.0-next-1610665299000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610665299000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-vWL7SLnet3oN3ClgG+7jAyjzZs00duFV8U50rFz6WaFHBXVGhyeu53bCZE3gnhki9zYdoq10a4n14aKYi/IlAA==","shasum":"7d02c5ec8e0bc6a706cb47585cadc861068b4df8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610665299000.tgz","fileCount":206,"unpackedSize":20026035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAM3aCRA9TVsSAnZWagAAh7EP/A2l8mOm6n/rFwsbLG0F\n3GrJK3Pse6S0NJWpGsqziGpERNWqYUv8Rrf06Q/iB9tfio0TtcqW+Hqj9DIj\nAGr/GRZuUY5Rs2Zj4HYhe8RiROIsfT0jaayb7vUm2TAS28tF7/N//y//GB0z\nGh3WusZr0u1Bj8Vx3/Hwwt0VP95SfwUakk/HkGamiNJG6mPPkQRd9LnUTgCy\nMGXFdmwQQ9M4igMeep5GdMATI8Fr6EI4ItKXX82yde5MuchdlWlkLvD+PzS/\npqMcg+VjtCmhSznoq99NjGT5G57lSB622NbIN56h0DKKEbDAReIAxojyot/n\nXReCKpaBWPQZNDF5h86zz5DG08t6AS1WJPi4/vnJMqJg6ue56JOzxHPdwlcK\nELCo3rKbjTGfsb3rMMPFKZhS0BW1EI/Ug0zhhQw9n3U6onSPRnoujmqdOCh3\nGDgJZLS1fHx9n+ICw9F/R/hxyTQgopCJJNjnWtNQniEo//NE6lxLRExWi8Sl\n0AiIxUkK1uo0By8EysBSJag/dv7nXX0WQn8UwVzihEHMUE4jxw7v8xaaxaji\nJBtPh7EBYuJM6eGnUHWKytycg7ZggYAFCCWCRgFUXSOz6/zWGwrJBoLm6X0J\nR4NUgOsqxbAWHE0BmKCl2zscG1YlOFBRhhCRiLGfPL+u3tB4CXQ2ANrOvG0o\ndxiU\r\n=JnBy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFg+tSajmNRBbsFH3dT7uAuYr2IQKk6C+qvHdGMUTxCvAiEAo68ZsYykFnpa2KRlMVJNJ/yTPZKIraOVJuh2SYCejoM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610665299000_1610665433749_0.3065583351201191"},"_hasShrinkwrap":false},"1.8.0-next-1610670074000":{"name":"playwright","version":"1.8.0-next-1610670074000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610670074000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-LegTpPnD7D4yd0vDub02Ugruvqr0MevT88hk+xLCVHH6q7nWLtbS5upLZOxbRB4PvPTo/fpxmpUQmfzOkseAgg==","shasum":"ae72e21f5373cf001762b4939c75746604fbc898","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610670074000.tgz","fileCount":206,"unpackedSize":20026035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAOClCRA9TVsSAnZWagAAKfQP/ihAQYkIO7HisvG9LeJR\nJydIqZLi+X0M7qoih1tL2/H8QWYsxAeu7Hp1IwyQSj540b3mcovbdNAAZr1B\nSSmJ82EWptxZsMobBeA2Cwh/DOX8QYk3KFbkzi8ueA2DueFUFT1tIHwDeTYt\n4tZn1fKFy4Lu31XJbafiLv0V+bqBpmf4j223D5gjqBEoKHmxZVoHhjw1melY\nsgPhaYIJFYjGxGUKYuXp5ZpLLo6oQDceF5dvy6katv4gIvFgB9f4IvlUW3/9\n0ciLzUBPYVXj78/EakyjMX4Xg6+47CM874TdzEZHm74XdD4XcAnKKgqvTGeR\nkAMdw3xR1EA5vY5sg56URtzoneQxPeovMSW4e6qH5hC+EFS1meduEG/AO0mC\nM9KV2feFq4hpDEGY/Z+7/WeMHusijVb8mLxOCdin0wPkhhXuUhmH/7m7MN6G\nyKKR0sl13INFAZZIoOZIK24xMzsIm5KpVGc5VHiEIC3AniUCDZzgi8ZWjmTn\nuStM+9OSl4fvVcxB2uiuy01/PdgLMuUpaITe0yGHjaKTs1zUMPc6HfeGObs+\nYB1sKOTcHNYTKB8MzvaPqdGNq4OEwGfjKdRPzytQ2/PNxe3sMz1UZQULSarD\nEPNdSZh5P0/xugrNY2rrIyQoCoRyub9ytmpVb+7aYTQMS0bzei1y1UNzld+H\njyTW\r\n=uDhv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG5vnhahoBzG4YKEbvbiiAVGpnqkaj+sN+6epbJVnuhlAiAPsQ0t23XQR//F2vvrCEmjP/KcXuq9uLyjrgYQyLWJ7g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610670074000_1610670244324_0.045362792245993155"},"_hasShrinkwrap":false},"1.8.0-next-1610677142000":{"name":"playwright","version":"1.8.0-next-1610677142000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610677142000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-U7qT4Lr1cKxhJhHAEZfVma5pFHyBEIvPowF6BU0iBg9tacZZOiKV6fFEIg46ns05h/H99UPpE958lNIkhX7nMw==","shasum":"4b8683603ed4412da50df5cfcd02f8d8104e3f45","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610677142000.tgz","fileCount":206,"unpackedSize":20026067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAPwiCRA9TVsSAnZWagAA+y4P/37U3GO9cPKH3mZLuM2h\nMmvu/2AP+c6KXb7CsQM6YxDkMgH4dKxFioHoQGIBFe7qHQSvgrjYFBKqudlq\nyJ6P6bBGIK+ePg2BN0sYK2C1KX7Jq/Tqxhm00TpPc8fUFOntpRUEwsZ4jg2k\nlmNDh9c5R/T5E0cWXTdZ+/GmlhuUtDePpFQp+py+zmLYoWW3fWED+tXqoeXS\nh1okWAW7oF05O2F4cwVqdM7V/PrxsSV0hzlNiwXR2XG4p1gWDlpewzPsYcff\nZ5IunI21op1sQrr2UUkP3PhSw4Ie+SVQScQuzAgeZL2YLV8BNHReaU2QY9cc\neMelggM4QzTUoPNFZ/DNbu5cUHimKaWhDGp5r9ZTN/JEZf00SFa5CoHJif26\nWzq0my6rGXh5GYTWlqWp72EDGW9lKgzYcfMnhXprYKutVfd/2sipa7w41eDG\njVRyafLjgcmYD9wflqqfhZnd38QlxQtmRu0OzUpFG7/qHXx+/i/H/avxUrMf\nXx7QRN0X78bGgtbbJ68V+O091TmmlHnaIv7j5ZIbMkpFDN4MtXEmhYYXsncB\nRIPV2DENeh4uaUSAmS2ZaktbTxnPfR2rnZXeKSGXbvqmEbtG5Y8TdtI2ZigA\nk0RXP1QhK6jwDYueNAKJt19DN2fkNf5/AwhOkSaZUmpAhCaYOKGA+Y3PzesO\nRSRY\r\n=eYyL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGp5DPG4ntfkFzr0hb2hP7MtDUC6gIX+IptZNQ+f7+0GAiEAzWZCgNn7adg6gZzYjYXkI5Rw72XWEYA9nM7azaw4+w4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610677142000_1610677281780_0.09147660653668743"},"_hasShrinkwrap":false},"1.8.0-next-1610684162000":{"name":"playwright","version":"1.8.0-next-1610684162000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610684162000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-zLBU/9Kr4CXO6a434uZJr8anlN40S3YaMZD+v9aClkfIi6poqK8j4p3ZImTS0oD00YgzEBrapiaBtXdEt5XS3A==","shasum":"1e3793525efa816e1d262603d3f2aa06d1c69778","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610684162000.tgz","fileCount":206,"unpackedSize":21094551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgARekCRA9TVsSAnZWagAApVQP/1aLf2MlCNWIkuPsbRiu\nXVpnHIxC8IyJxg0oWdYD0EIAOiDPQkrqPaKPVHUTOyrYV3r8Q5vzYwpCQ92Q\nkB1AOse/UC3WCrLk7gdw/ahkcvFui6FttRj+VtXXAR6ZuH6S11ICmqHFoUad\ndHdiFJLfASrzI8WmnVCkepKfyAK8t31h2hazb2HxnJt3+yZW+I2EniCw8Y+g\n4uKRmIYbCNT/ebAOqc2f8y75EYl+RpxTKT4mix5d+QEM2tx6tqNVyBjzbQ6D\nf6xZGKOW5WAhu4fuPDLYlJZxOF2RXy0qFvIipjvfgcTxGQ4N8l43AxLQd+97\ndpfGLCBfHzwQxRvyX53zEtJN4PnDVW/Z4S7az59YOuGbRVwysNbpgBVwsAvD\nXgvHqObOa/PuJS130YeuiAoJCMapPOU1lwVmOugJ7spB7RGy8pohHA7Y086N\nxerbQxCkEY1XiR/doQV8QEaIkqTHleXA89XlBU6SL8ZzWtxFixxcsbVhCn2u\nFsyVn48YyWXaR+LUWngFCQ1zaqzI1b3zxlu2nhHEJtUe2Oaxx5tMK8oV/23g\nFSILV1AgC0yVKcsBukgLpTcqaRn0mxeYbRqN30RMOCshGPjgE77LtJjimpxc\nyfF1ov88VQ2uxtoaAVYuN2fL4qaTSGx9l8Re8SoBafQwOTt+LhLAugGK8A2B\ni343\r\n=ahUf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCf3Kk2NLOP8AdQf28NpAIqxEg9QR9aH3OR+uU+49pLIAIgPazr8DGwCgX8k3u/7E6b7mAkETj0P3wfav6e9en1B4o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610684162000_1610684323745_0.9034384449764998"},"_hasShrinkwrap":false},"1.8.0-next-1610730767000":{"name":"playwright","version":"1.8.0-next-1610730767000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610730767000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ftYjdwxtNZ19CD31IcdXPlvRTZuDof8OxgxiYjmbmF/N1teoyuA5qnwUWRCyzz9Bpjd3tV5y2on58CHY1cpkCw==","shasum":"85b4ad063136ae254b34b0e1cf4e4347ac527546","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610730767000.tgz","fileCount":206,"unpackedSize":21094551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAc3VCRA9TVsSAnZWagAAEykP/2jQ70dFkHWsnC+EP2g1\nVooWSCuX7Ka6GePzerfdGTZkOL4KS1IeNwvpJmGEg5y4yRvggijN8573SPfx\n+hZGoYkoFh8odi9pVg+MSIKyn3fhSPSZArDQ2kqYrczo8qSAeCFyw+deBkUJ\nR+27BH4y7hsesHSNgKZsesCX8M11npvatrsirLc+9ACNgyzk9mCcLNhzbUja\nH3ZLN0dkaBOa2LkuyU1TvgBx9yaU/bBT/5emN03ulH5ceIrDEpwLLYbhsGoa\nRJdxrgPKlUmSLxmUsRj2ctiWf07OVEKmba1wtuzEIQ1PqJlVBvrDQ0R1bDnb\nW7gzii2UJoyPck8vUC77O3sy3O62123hID+5vs7L0n9hpmOwFJIP0vIfFatp\nfLC+IXNV9stX+aTRRhAYbnvZ3mYO+BF2Gx5rCh+Zve9EpWOAOsTIliwJQO8h\nvtjvgp6DhOmEd7glPa+Mj095LXLQ7tMexEoca9jy9MRljijYf0RI2m8Hg9ad\nAiiZdOREe9ybzgn+7lBtdV/fRpk+c2I+CZY4Shrgb/UKV28jMzUSPOJUdH1K\nLhmzX+k7QM8o2eenrzFREBL7a36XmepBva5jJ6N+xTQgKeeOxY90GNLaT7gm\nl5JBfhUv6CwCPQDSMiffmSrWXjl8R0XshKRgv2CaX8ME+fgb/qY1LLic2KX5\nuQn+\r\n=zkHo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1YOsI7b9oFGmeO9Ata1sETU14S2bTBcUGh45fu63OJQIgMvMNRmb6Q8fhcbDPodEEqMr1p+Cu0yw33gM4zcxvjkU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610730767000_1610730963903_0.4283528928574112"},"_hasShrinkwrap":false},"1.8.0-next-1610742610000":{"name":"playwright","version":"1.8.0-next-1610742610000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610742610000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-CnMjfMXuq0QotAVuNP/smBEsDcs6Jnd+7vNqZrZpNarGX52kPdSbm1NiJlvjuLt25TeIK8QwWRde/QwoDGoKew==","shasum":"49506da0f9fbaa3c1eee3b4d19083f4236fbaa94","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610742610000.tgz","fileCount":206,"unpackedSize":21094936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAfvuCRA9TVsSAnZWagAApPwP/2kjgWX+Phaecyts9be5\neP0TTPYaPNVv3MX00SpujzD2kg883wUsAXO0vp9DVU1GB187QWweTTBJXGU0\n5pFdl9b7VpedsLiEofuaJCSUmpCsVMhbpu8XqHElnjFdBSIZGy1OnPHvMRlh\n/IknQsnZZHb+RMOhckOmqKDGVvJEBt7lIl+5STfyZ7lapgqksaXFcglDrsU1\n58J8EtW+PzEMaONuh08E9dXsRdTpXK1ZEP29JhxALLoUdK4WnRRgg4qQy+MI\nSiiikZGeHr1u4Rt+VZoa2SAnNS4jUNL4G9ZyfNKTpXrPYZpltif15ysbwvhJ\nghsLEm8XlvQD8i0OwO5YIbX6tDGFLgnzAS51ZwIrsV3/sjiTz9g6ioXt/6lw\n5SBFny9iA6s77YwtRDfjMifTneka9jPRJ0VjRDdElgB1KY/09Q60F+DeLdw0\ng+3lLyAGD9erEMFimwaGJ8FGdk7baJlt5tLDvPaCX7a3g8R+eolk4FM4dIgu\nP0/BRPnkdbolVfoHwxlvXel8x+YyEJz4Jc619KzqmdhHxapU5Uc8E7gjeZO+\n9OJDyJ4607+ZJ7HglXCaTn3SSR1Mjd7+lU/FfFhjPhtHM/NfGVCHG7UaJxld\n6cowMTPVP9zvJAO2XnlgyCpqEaPpQ4dffrlgLAVrThJ1A3PKjqUD4VkR4AYK\nWNBL\r\n=MZ5I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXmLyRTGTXPKTitpkXIsuPbrnhIbo9BfyVReEdSW7QfAiEA3sBFovnc7N8K0CmBUckA3cQ3JdFHaVA/BkGA5JwA/+0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610742610000_1610742764808_0.73597590462847"},"_hasShrinkwrap":false},"1.8.0-next-1610743985000":{"name":"playwright","version":"1.8.0-next-1610743985000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610743985000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-Bt7ttrokNSlfk0iJW5G5wC3lCs8dgJwRUtbIc+RPNLJe0syRuXzN2jgKsPuEwNykwhLQcR3hf8G1TVwlY1X1fg==","shasum":"30b1cf079e31937fcddab53c639b1025bc9d2395","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610743985000.tgz","fileCount":206,"unpackedSize":21094936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAgFACRA9TVsSAnZWagAAsU4P/AtPwuEODjzanPndXHTa\nIpPhCCox01ltbmRbsDjfs6u4bTZ2vFc8+5yZLR2eEPpw0NdMbR/O842K7iz+\nAcwsJJHFltHAidLehJlyiI6JglDz5AdYn7Szg26S6dIkNTviDGS9VKR8OBgb\nxHD6JJMrQVcF4hGtryMPFAuiykTvAvLn7cqWVbxP4MF7OLf8zgBgXkLg+mJO\n/etfUTHIbGLelzrwsjUHMEzGNcUvMccTSPlgpON66MtktsljO17PIfRxAxKA\nCqYfMYQpKx2e7pLTOsr//rmDOmklsUSlXm80tn7RBDY2gOmD11uNXOeUux2u\nlV1NrKYlI0vGuTb8iabZl7fr2w5uti2PtmW48gmx2NN0QicUdTkZv4LYgRd6\nLwlguqHqijHrihgVHE7CecMZt33VtxCPYyBHJnpnX9rnAmNEMoymFRKy1nub\nHFRuOmNo250fRaD3oi3xOgA7A65DCKrBsiBY/fulr4Y6gN1Yxlul72v8a6kk\nf8i91RsRC3BTO2z/xBcFm1D/F3Da4HF/dY/a1pXM2kIq65xc9RYf6XSUsb0O\nZlugJGkRPTaIn3yRBRbBn/ca59p21aeYXlNiHHBl1km3Igv4aHY5B4Dq6703\n9NFzMOiq7CXuDbsiB97TWY3q8S5jpPF/hAlw66/XmjMJia82d6Z45510jU58\nNOq+\r\n=ji3f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNMqWwjjriaq7nth/Vx0OUUUSAB9+C3hjMvs9ZnGVtzwIgHmEjcTD8tYmBR5TmxUayId+OnqwqIh3eku3TZg+02SI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610743985000_1610744127578_0.8112184264852624"},"_hasShrinkwrap":false},"1.8.0-next-1610750628000":{"name":"playwright","version":"1.8.0-next-1610750628000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610750628000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-q3onGrO3zfWBRP2ab+2N1i62ODtCSnX1jEu93gMxx/dCBirhqc6lQJFVkkLIcMSBTuQQrsIgtLqBByF+JUUQGQ==","shasum":"fc44bc235f4b45f2d53b679ceaa6413e38ee144c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610750628000.tgz","fileCount":206,"unpackedSize":21094936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAhspCRA9TVsSAnZWagAAKyUQAJHaAnsyHTJwawiopEuO\nvMsAbHFgfmGrfm0Fdr7yJQb9VdesrHfH56dww+9A1UZ6WTQTgI90jKqmhG6Q\nS1a4kdsecDv7lA3Z9Xi6WjgsA76EIstjRggQzvCyO6PXRkmpXMXFZ8LK+6aT\nyKbsD6rfDzCo8UYq9EtZ+LiOr7gF+VCbYCfSao8orcxvmiqKYzEZxX7fW4eG\nVSPtUednmaOmoy+NIopxOxxpLrS+q9YiClu0u23cGgwZ8bLZy8T0HY+oe8aR\n/A4zjRrQU7AXzoIKHmUj+PCFef4QuTHbxfcGRhkB4yYdXpCubpbEAA++NZNs\nhT6juTwjv0iI8uuMXxHjP1/zlszDjge7Tzy9mV0LbT51DzOt+X2hTxU+lhAn\nNIVnJ/+M1SAwp3tUNsc0XuGt8vIdF5uFW6AXWj7Coo+eMcp5zUVoqc7pxYSd\ng7FhYGO1w+yfkIDH8eCigfH6Hde4gXs4OsjV38Y/iyVQqM3P2SLd7+zE/ra+\nie0v5MNyxZMC2gvfV3+b4INXeT9V9C3ilQjQfXQ8acDjsc9cQTX2OGv9JuHg\n8SvgkdEZMfB4au9h+JYIpjYHVjbaf+1XZf78UEc6uFJPh+xfSgKcmeu9Jcly\nYNdZqsC+XRfQaTCEZjU37fewwVvgRufzPrGxHkOhl97eJKYKoMnk18a8a1+8\n8ujx\r\n=RVEc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyMAa5IeWwKfRiDDFmRCdwYyZq0jSmLm4wTP6a0a8XoAiEA1ZUHdO1O9mtrJi26xB4BwnlL4VhDC6vxaYOSQyHtBO8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610750628000_1610750760883_0.43128586155859483"},"_hasShrinkwrap":false},"1.8.0-next-1610755301000":{"name":"playwright","version":"1.8.0-next-1610755301000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610755301000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-vBTJtQH6pWDmiN/z6squcSgTYGOZ5b/Elo5y5zApcdMJeQhWz5BKcpH3PExsooDPW8w83QysuHEvT+6pOjv0Gw==","shasum":"090215cd1df7ad7318c9d03918ba2f6a343878c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610755301000.tgz","fileCount":206,"unpackedSize":21087034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAi2OCRA9TVsSAnZWagAAvR0P/ixWd7OYt65OO4OroREe\n9POG62QYxIzxrsL+0Rem84sOHKDatUcnO4v8iU2jksvbIJXSOLxI1PzXaPDU\ntIdixDqcnSateU0Lh6sf/0WeNYntni2yxsPHMaRBApvTQ83KZFTdC5nBBrQN\nIVBWDLjHJgWk8V+ETM0Uv/M1kGlkWkm+l2eockSUF6fO+h8Xj00IsL7TTmo6\nnMd/DBeIUCDbFaE892rOmpUOOHpMk/HuLIMX0LpRVg152Bfq3NGxFQHKJNCQ\n1gKvJK/GNAWZ+3qTVVOa34glwCrO7i++bx6rEgEazj/kWW8rKpcqjkxWboeX\nq8bdwAPR79+W4Y3Nu6qkcf/8kzHerjtEHnJ7FrYdCh3PAXK/SoNgeiw8Cgv8\n4JZx5U5VBDW7yZ9R1zaFTREdnYZeU3QyNIWEDOS2xKa0ThLxGr82xU1wOkUw\nh087TV1JfEXD0byJ1tDOfdar+kF62pvSbBWq8GYrd/IruiWob+GoBFrMHrTA\nIWm0PPcuh/BBVwIl+yKlCfWK1EN/kSFShyGQOPTM12Wvq1Dyml96T7kqJ036\nzgkSCQTzryLeyajpLigBytCjnW7tBM1voxNI65p/T582982i8nhQ5dukwTQk\n1rSb87L2RCSCozCG2SzmJ8nC3E62BYtgkYQatisyTH+Rl7P2RdoF5JFUq/wv\nn2Xm\r\n=6LzT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUeGWNlFZAMnpNLZNBQfuWC49ilqhFnl1rIoHD0vnlWAIhANfKb6flbyiEH9k4OMnH5MHeckl67mEbZRdmxmrhbPVc"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610755301000_1610755470120_0.158641057464727"},"_hasShrinkwrap":false},"1.8.0-next-1610762359000":{"name":"playwright","version":"1.8.0-next-1610762359000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610762359000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ixcGAOFxdtB20a/KETus5464vX0j75qhbPKbRrD3QdfApXpapzhzczKnZ/g295e9y/OwZyaoEju9a+A0UVOJgg==","shasum":"f09d6f714ac4d750bfc3e16e6737a82c6054edcf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610762359000.tgz","fileCount":206,"unpackedSize":21087034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAkkSCRA9TVsSAnZWagAA8AMP/jytykNjjBQ9dtGJYae7\nrf513Ka65jrbgpummaIkAjUOu16UCDfky4Y9dteZke0SaL4ikrr8ZM5GgVrC\n3AY9phi8zwu4OmNZE+jSrDd05vfnFWAJfiAcxbqwRWxnJvHrwLZllR0JIqRi\nn+YATqClrsRkwGfc2vpHdQViwYa1RswS+N6u0Q11a2egsRiWooF4pLmJMcss\nxICJUqMg+aMO7Q9gWA/IeQk/znuEnsfl9t0uA4OEBKkRBcSApqgeRst0A4/M\nIG18rupn5/RtbyhlXhUi+Z4vuExzd50SQHFuHLCsChPEmc4bRE0e2VUOHOtc\nzguFEVSZ5G/y2w5LIqxBajzgv3cYcLPMqGDC9X4kfMMa2gALqzfw8tyl9xGm\nnMxUyvbQT/9sGNOjIIx4j7tMQJ1bl9sBKfUX2xECs1F6Wzhoj/QDVCkRIjPv\nQqE7i+YwgZOcNoZBitl18K556jz3sWV7A0mi44jinyUmY/sLtBG+ocTsfH/0\nu68zrd9a+pMy4z7Bdo61aBkdQFh64Hx2//CBJXkpE5HGv2Dysmpg7u2PJDiA\nebbD+kNAxz+zu1cQcxoOUc5woX4DLPXZfzAyJHvSfklUEdgsv93xubTFq3Rl\ndOFqCOkDvr4NvWX2RDmyXCdnJhmrfqchVuXAvxc4mQbsjVYD2uNvTdfzP67q\nUMIw\r\n=bDHv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRRsIApqYtJt3ypcnhITxQdUPJKbcnZkPbIKnX6FY73gIgVD2jmERBHiXg1IkTchMLpzvGAwG5YXbVqibPKWVx5qE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610762359000_1610762513910_0.17597861566640627"},"_hasShrinkwrap":false},"1.8.0-next-1610764255000":{"name":"playwright","version":"1.8.0-next-1610764255000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610764255000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-o5u+AO6nNbRue/7lHlwQJjW5XqrXt4X85Di7ti1tE8wKDgrexjy4VRnCiMs96fnC7JGM4vkvhQ35zln4eqDVTQ==","shasum":"cfc1b393ebe8b9996196cc79d248ae12f29ecfe5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610764255000.tgz","fileCount":206,"unpackedSize":21092117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAlBiCRA9TVsSAnZWagAAArwP/jGSzMeDEbXWie3G+l/4\nOibzHXZGOD0AOGLXnNAwb2SazV1YlaCbuh8NlIcLPfMYrLyvUe9TVQw/pdI4\nfUSkgc24/uhjrY+xyib0VFPC6jc0HBMeUv8ckGIaM8mTWCqIjyKpmMmwfaJn\nABbQ+Dj57ZVp7bSJEqM3jJjaI0B7zYQFq/7gA0Z/f7WtI5oDL1zV62fs0udn\np2w8FtcMl9Q1RDhRIug9Ox6NmSe+I6s8GBQ9zIhlQQliqOtwppE40nv9oZXw\nrkwLVFAYRwokMUJ5j/0UXMtOuR/s4zgdCpjQHTtRD5LqHQhx0AvwUM8LV2bj\n6Lr/LGqhusWsaCF5K+et4kFj6FaBXvv1PcFeXA4K7UjfIRE+AEAL7l838c0t\nwvFIBFvcofvneLz18S9EUcSYsh+OsJU05ExTlo7vDPGiFjwgUuLEBpz6rejK\n0f82Z0wYkZxa858KhJ3jYoGNCt4IsTTfCim/7OYVDoHWwTI0iNZ63NyyRw2d\nxmZo0EJILKsRGra5PU+361/7nksK9fMTrT+1UTUXR6/VsAWj3hPnXCVhnxiT\nNktjdXxHLAYLSF84xjT31BlWzK6alylzq1vRZ3s/CSZNaqJmtO4sOCwa3ez1\nwUCvmPv+E6ya3r5frrksZ4ThOgiNCmBlVeAtQZ4XEZQocHv4aoahAuqQSZaW\nh9bY\r\n=nKOi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBsHGGNErj53cPjSqr/WELqGCvq/eBIBB6W0u5P59NMdAiEA0r75Elm4AUHPL+nGDsB97rOeGLLdkhbd1mZI+54DMU8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610764255000_1610764385227_0.9247362780269741"},"_hasShrinkwrap":false},"1.8.0-next-1610765784000":{"name":"playwright","version":"1.8.0-next-1610765784000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610765784000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-gXCP0boZt/N7BVrKsUnyqhA8MZ2OnM4WYFyH1Ve29mELumVe+MgmcRaZMG199eGNyU2mX6XzVWluCX6f9Q7G5Q==","shasum":"a56643fae419281edd9165c6843c7d30edc1b539","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610765784000.tgz","fileCount":206,"unpackedSize":21092117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAlZtCRA9TVsSAnZWagAAu0AP/jLgf/U8rz3F/8z7Nntt\nKiWGSIwsS7+ppfbQl8PHG/b0TlArJSNZ5oG0Su/CN9tY1rveZXxuag8anas7\nboNBk4bC3lQpWG/+4vU15R5hWB+owa3LdidoCJLTJNFMRGzfw7qeuvY+sAW2\nCUs7sbDwR61nrFJZBXX9BRtMpeBW01/ZlWBwC1TMPXSuNZxQWqyLMeKZXOjT\nxMudERzL4NCBXinuUZdLK4l0acahSlATWjuCYqP4wLyslfvHQypfKP1ci/kS\ncGC1UoIaLZjovvfmMWNUW5irOP6Gx6On8huJ8Oa+KoUnqB5zDQApDhAiCnoX\nN9n0zOt3NDOw+4qWWS6MT0m+FASIugUZw4c3C4llRNWZkQ+7ZwSGsxoUCvZa\n+qTSnBTLngXoaks1n5dLaYh1qc7GUvlPfX96Qj7ORy1TdN89Na7R76UC4L/r\n+RlFDSMgmFHXTRXOHn1jeooWeEH+IeF7Lc9HtUx/3gQw3knXnc58Ly9wIbAR\naWySxHwh4v1/9ZYhm/PJbr8Te6ObCOXMZRNYeetDQRahYuIHfCQUBteD//w9\nsIhM+K+WXv9VWCk5XELVcM+3efE/UJp1fk+EDib3hGVN16rHt0u18tRr80Ab\nFPh3qNOBP5qKwc271GD6R7amiss6T4GLZjOjg3ejkp/yBmdX2Ylo49Qe5qoL\nE4h4\r\n=NNrd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJJPKRoOIe1yZpKjXOQgIFAoYLLoY6yMdaPyysPM5xLAIgZJSmDIWoaTSf+Wrz0ARtNabwjrG0tEKmOAjtKd9gpvw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610765784000_1610765932749_0.6888925834032087"},"_hasShrinkwrap":false},"1.8.0-next-1610808160000":{"name":"playwright","version":"1.8.0-next-1610808160000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610808160000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-/oPU6dQvJb5T41t527VbsqHz8ORDdN1ONYcKwGbl8msfGTCQ4AvUuP/qMVAX70LeHH6De55yFt6Azn7WN9anFQ==","shasum":"ad5cf218e285e6abbc94a1742958e43f6b326a8e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610808160000.tgz","fileCount":206,"unpackedSize":21092117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAvvhCRA9TVsSAnZWagAAd48P/3RgijstNWwk6Ml+Xbeh\nrOGjMbTCBz7x+tjW0Vkqx7mvZhIIRhR4Wf4cJNnos8M54OAKUJrXnZyJk8dx\n87AKKsh0jhwI39xldwM+JHpLPi2UwvVX1o/EqcB8gbg6rvJ1jFSz/bah9zVt\nb1LsWDnWGf/CSDdVNXmlE0v7Gw/TVyxd3srUJNK7FqfnwPbQgwaVry4Rqiwx\nwNsyCSSSsMZVkrOiUW4mIFxQplUKaCPO6h8bmRVvVeAn0jRMiA/x1WRmCCM0\nIyIWMULS0oG9ZRq1HNSLMHhhEBAL7Zo8AzkjVuhcMUZZjGLfr1sCz1J2uqfR\ns28l5yjyvqcew/t2T/dXSbnCWzwh6iwtZBrstl29ELx8PySeIfEpWSHjWIgW\nnx05nCiGCaMXXrSC+jw9aXKsAT00YXzP+BjmKOg/d8HFGbK0YiGbzKm8mUkq\nJ4b3Jm8STcTfQkRcm7r2AuzY12GQBja5AJvloHm9ZSDn0/RXqk7CHlEPYy37\n8nqoK9vaGwyb1F/iP7REolmEMafoEqscDFSooYHB/JaQP2zROZE82wsdswdX\nkxq7qivXRrmUx5U4pOBVCsk7Zpe7gy/AYdHZcCL+xkEDvbPykkNR9XQWTHMN\nmBTYuVy2Djo1H/DZJNBd83lSsGqch64cqroOqXwjEs0hJ6m7Mi/JwAT5mJZb\nXtMZ\r\n=8k93\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfOC9O3DeImg3lerDQELQvBlFU3tLtmQM6l3TXLG1NCAiBLlmkcTXzFX7r7kADjYuanbEy7tLpJgqUi1j541vsJjA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610808160000_1610808288346_0.47989863596473725"},"_hasShrinkwrap":false},"1.8.0-next-1610836633000":{"name":"playwright","version":"1.8.0-next-1610836633000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610836633000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-4/QLvdQ3BQKNgYB/BXERXBGWur7jmd3gdxpGjKEBwtRm7uiNFU99rttKR3hwhVpG2m4NZpxuGvqmLLaoHp8UCQ==","shasum":"0d4587b352e1534e94273dcca78dc487e7518ef3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610836633000.tgz","fileCount":206,"unpackedSize":21092117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgA2sfCRA9TVsSAnZWagAAoeEP/1xaEjZYYruJ+hZEF3qe\nUHHO/9tvTP5m0qypKn6Um2iuVir6a25jnbsBRws9Ps39zGWwRDglDbM44qrX\nqtmtUz58gUoIAkINc7mSuHuwX9/MCAO6KAc75H6nezw7uia5IXVYueegNQR0\nURpVz9RCB3jaPs/zNdU+Zsky7AUUmauPgYWCA5o/AzQbMGFF+N6PBY7D1W1s\n8QFMN5MbMvD1AW2Q8vRx64ks9UkDgRKbEYvnGAHMpOoL6jSVYKM+5lAyJcrM\nZW2VDYCcizSf2xz4UH62YsgIRrJUMvC+z2IZVyovc1juYQ+CLbWJbN3Hyho5\niJM6xtuDsbQksgCnx7+Pg+xnuaYVjdampZcMBnZTqpgffFJMuxwYztERxAyA\no//wGADf2Eka4WSoddcQt01TQghwDRfX8DteSyFOR+VeBA1EGxHFQvLHp77I\nOKHFY+AmRJDR0tfMJVWRQRyvCc3c+qE9axcNm1SsH5ENpLwocOifLdkxK7yq\nJuOk+EDK/082EEBXBQFUhf0LsYDwuAahEDx2Sd4dt5DjaXDHlmJ7eUHG63XL\nLiO9gg2JkuJxulW4GBlTjdkXFgNN2FUcgCi21C0FDeoe7fPZaghU+hBr47wN\nFmFvQZLn02bShG/d3weIR2tDHfnrhNkRMY8EOFog39XZ1fBBRsTUcYbxNkUx\naWYh\r\n=fNMK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq8hpOFuvo1hGchdhOSG6nTJq8+zu/xCL4WTBrszC0OgIgflROlfjxIRmPE9Rl2qFv+ne5KZcjC8D2jIBT/TKAQsI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610836633000_1610836766731_0.1507677731421886"},"_hasShrinkwrap":false},"1.8.0-next-1610914160000":{"name":"playwright","version":"1.8.0-next-1610914160000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610914160000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-AKEQJ7t1vLItHTq8c7OLOeTJ8kru4yPISUTkxUoUVY9DjzUGbnvKAmLsGC/VnF0uel/QAJxucLVMGU7X3hIUag==","shasum":"54c2bf67621474fa1dca2088aece0b428439f464","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610914160000.tgz","fileCount":206,"unpackedSize":21092026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBJn/CRA9TVsSAnZWagAAPqwQAKLHTVYMLpy56KB8iN/P\nvhusB61Iy9vdh4BpZBtk3+e6MHldyyOcQ3tuj4gVYRiwgFk2sUUhCdUHmw5E\noRnWWeDdxF2cz3aSwIJ3mJbtj8SdlDdLvclSqhhRGkt3EXoQRIOn+pKa2MUD\ncI86OOY+Mu9Fsz+MLaOcaMDMXngUq7TBQTYgnnlZ/pV0chT+IVFoSyuStaji\nUokkQb8eM9RIuyi5gtOjD4afreBdutb+RIWorJ4ohfmFSk6yu9rfq1d6hfRH\nZTGlL/ZbwWfGD8PZAdj0wo9FXPJHultyK8zL8ZKshwvQKMVIq0bDD8AQ/xvf\n4SGba5qeLrgxqtb//NaCPzc4pShJYodGkME2SP5I8anxZOCoQ8sFTavq02sb\nE0ANWZ99ZzGqYPVk9V3QsiBNNQFMns7vrq1bBwj6zI7oflzNYdO0Ur9fD2iJ\na1B9M32Ga/Tu/MFnDGeChbf4qBv2GtrhYv7BpF/36+I7Tr9wvCFLlVjU7Sq4\nnJHlnahH40ZfBnrMCxfbjg8mjnDj0IeTm8gPKZUkR5oXRC2VXYx5FQqYuoTP\n1+zFdxCf/G51O/8w0890sDnFyHXZ/pNO62yaypip64ftoaAQKEC3hKXZ4iiB\nZLQJL8MOiPQuHasM9RnEbkcll7kxuXoaw3P/HOX/eMaZHpAaUPfly/xGqf+7\nU+JQ\r\n=IESi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSVAFwlrkgMqdeaPMAYajvVKSmY88tg6BqipTFWBKvtgIgLWSZ5Hqt77nrjjrp41/qGzK49tKGbqhcxaIo/1CzUVE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610914160000_1610914302276_0.0642497722023172"},"_hasShrinkwrap":false},"1.8.0-next-1610915139000":{"name":"playwright","version":"1.8.0-next-1610915139000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-89.0.4344.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->89.0.4344.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610915139000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-iOb0mWnQbon4+Usy9S3dXDMgYGuWzJP3Qr3aXS04QsZWOsvx71XV5zb2G8NDtWSTq1v2DZD2huHHBfsY5ktdkQ==","shasum":"90d6a99d0037669387523c540f98269259d2a401","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610915139000.tgz","fileCount":206,"unpackedSize":21092026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBJ3aCRA9TVsSAnZWagAACnMP/1oD6yuzQ0np4CjROaMk\n6nYWOKGh+QA8Yxluu6GCM/74kkF57Gw/clnE8iVZ5hnfp5a/GHs+SBlg/uDx\nuTEYtIg5AebFXpcPUK36TkQpgUI4gHZHgFC2wlEltFfyRZbtD+TVohEF3UdI\nV9BMY4LypqTFOn2V2wuW4x5KbKYSFchoR1Y3UHYmrXbRRRqD7qNPhAhFyPbj\nQTUBpVBLOWFpX7Q55/VjcUtf3UfNnxyIS4OG2WktgxGOMfwTGnZIeYwBDMoD\noJIGbdPEkBFYxjn5T5eUZ18PSE7TMzKfQY0odq0W4Sj6sqdOtLfcuie6p2hI\nLzLm2Kj7E8DX2of7jkt7F4+Ha2Go0UzWjBnMYpnXpD/AKzlWtY56OF93BNH+\nHPff8ebCtw0PFjONopzv0/c/6dAJfpVxlzDvhTHDUqE+4whn6jsdT3eS2wuW\njh0cqhcZZE8IPi4myKz7lEU/u5+gk9LLdxIA7E0kSGgJxg1JgsCJXQRlpGBg\nqdV0EYDzD6Z2aAtuMvETYAe91A2xI/xVtd6pvevNxjrKU574Ucg9ZXpSCyQU\nIMVskZCx9aEfCJeaKNCmRU5lXcqS5J7Wu4odpkeobXN5vRpvRpYWC1ThSank\nctLli/UsunFSMaxf8ZWbRJmQ8xA7SSoz8wUZ7PKxcJjcO2vzofVtAFpsSIIV\nEFYJ\r\n=pUWZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHCm3BxUUyF2BQeMcAjsZa4KY+CbVXh1ooXD+SXybRyDAiEAoumKMqB8IKI0tdqDC1pEQsCxbF4cyTO6EzKIR92slpQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610915139000_1610915289712_0.16480219195248935"},"_hasShrinkwrap":false},"1.8.0-next-1610946580000":{"name":"playwright","version":"1.8.0-next-1610946580000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1610946580000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-2o9IyNSb+4MgVIqzAWy7Z0cvSfF4+jgkn9yEIG6i2iIsFj9vXv7UZSuE5lQc5ey+r4+Mo1m44QWADnK/pUxCFw==","shasum":"74c97e16bb1f3b1ec3526670b6780368ccd72bf7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1610946580000.tgz","fileCount":206,"unpackedSize":21096274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBRidCRA9TVsSAnZWagAAo9sP/AtbYqdtVRnUUH8CjH3J\nNSbTjHBsl5aZfDf3p1k4EF4VNQlJvpLZNZua1V7UZRbZ5+cl1C+5jCOb2/ZE\na7onAA4nsfjLEwgBVlp42OQ59LGXHi61rp71yFUqjlYJtYO5hoYQ5XhhMMrA\nSISA+CiD3mim5OGoVc0ouyW0mOYHmBD2dsexFa3rqnS2AYMWoG48ho7oS/7w\nmDq5+GyvIw7XxUnSxGuizj3qhVQOfGBN0uMkyl3mZ4CpDXeSBjYh7x8vqCxN\nhaWPhHgmV0FBslZ/BcAnMKnkgSNmVZwl5wXgZiK9JF51F3SjTBKhkoVf8D1B\n4Ij8gNFgDWE8Cdg94WlOB+ItsycYzGf7WI4h/lblHguE2cdF+9Cxdd3pvE0M\nvbJg/xlZtxP73zZhqEUMUhBIiqnfJBQsmzguDt6f0idmhqeGgzOb3sKISCbP\nbgRjQvN22/lE5T9oIYxMGJhB+JSMUEfPsBy30qJRTdYUp6iX2ag06d0S/veh\nGqMfy24ndXHRVj1RREaZEko0+U3+q4oNeNUeyXgbyTSc7Kve2mZC3AU7wNr/\nH8cvbU/PLg75tRxupK5rPtJ11S8EB8D7LkQzJ/Zdsda4m4TOFICo0irnwjvs\nk2OI6DsQ0LVloYdnpP4xaKDk3czV6hSswCA9qh/eFjKEJYfr1/u4FtDFAxj9\n2KMK\r\n=xPBs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxQfsV8gizU5r0hsmIVU4tKasQokeP7POMrW+LU4g2AgIhAKr4WgWdXxCVDQIc8c92RPiFAvmu8QlCebriec4mXAR4"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1610946580000_1610946717102_0.060531625107443254"},"_hasShrinkwrap":false},"1.8.0-next-1611031213000":{"name":"playwright","version":"1.8.0-next-1611031213000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1611031213000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-5iabEi2xLS8Lc9BWAVmwL6fvhh64Sd5U83z2LQe10h3hshI/ExoXICJZnUE4uKnbHPkjeX7PomNBS0LyqOskag==","shasum":"92d26d861f860a7dbce6bc69241fe181a11d7ee7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1611031213000.tgz","fileCount":206,"unpackedSize":21096274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBmNICRA9TVsSAnZWagAA9TYQAJQ9l+iQl9wkIrCTk6Yk\naweGMf1RxRDDV5xFmpkEz1ms2gkZHJ43N2eFJA68RRqVRJGwUi7dUKAWefQJ\nmZfQXJBH/4Dq+3bcyZ/39LeWz1aXbv8wuyoNDZEUZwAm3FlWLLc+GrYc8SPE\n0lCnfGILpddaYwC6rEs71mOKAp1JerFmXfRFmxh4tmg5JtKXZ3+TlthPM1+u\nBG0wQsSItEt8rf6w9QPp897t8s5NRjBE4vQMQQvPN2TMXQREYQxUzJ0tIwAj\nTE2Mj33QwykZEgif2HtM6n0f1ynIwNXrMPxVpp9Lg3fmI8QkzHNDwvB9iPXI\nk8fGoHeeKjulf1W0vfCmE0JbqT+tiLQ93psHz6E/2rGyPy0vNHyIN5VW+Q/v\nZMzamv4Ev6y3kueCFatO3tS8Qi+l4mw8ZbEsBskKHWuWt967Zdr4JopQpFtX\nWdBTU8TV0DdbQIRd2DYexGXnlNihGmoWzrfErhqbePQ+3XOz7yOrEZlp/K0V\n9sti7+tJnkboxGa4z2/Vbv5Cb90ydJbpDtp9+FOkxj0/tEstP5BYdCghVsLK\nSxoenhmzEjIhNHdnp7cCQCPZ49ghIICPoJEE9e8jl7uAdKJVrBWTrERAUOFd\npMhs9EwDtDgRk9j6WVigXwRCnuwaMsqxjCKhT2bZYPR8zw5RL3+1IeX8ZmVA\nW0lg\r\n=izbY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE+GTrKs4Zh4WO6Jb77s9M90zRhB7UiIlqmwVWlfvXvIAiB3wu6kE22ZlNwA1Wx2OKWeoMbB3ZfOg3nQpHAMRbfJAA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1611031213000_1611031367758_0.9288383422557787"},"_hasShrinkwrap":false},"1.8.0-next-1611032356000":{"name":"playwright","version":"1.8.0-next-1611032356000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1611032356000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-sAT3LgYgIYD6bjEwQgFzCQw24C/l3PKwgRVZel3773P/hvGU/ZyYBkM4SySJRcZRe1YU824uzV/7Q0MyNCZe5g==","shasum":"0e441ee1bcc1f9ab6bfbb938eb623a182cb3eebc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1611032356000.tgz","fileCount":206,"unpackedSize":21096274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBmfBCRA9TVsSAnZWagAAJoYP/RPDXyclkNrRSMlN+w0K\nqgTsU2VkOSVGNvfkcCmdV0YzvN/20DEPh5dMRoZvTlNf3rOyDE4SmNIJnmdz\nvhM1x0D4wtTVd6q7F5cjzAx/wjc30t5ti2sbr4o8ukTz0Dpq1uRSbXNVxnaB\nFTW0f+yKiWD+A5jfCEMDHA0BJ+kIigyD2c7da/kw1jRSLPeLaAq/EBoF+p/m\ndPNzefYRvtlsKlcENTt0cgsHzW6awQ0QabeCGsenAWnsXOz1XhEFj5iXuB9s\n8+WUUt4tuovKFG6rTtwTZkiwsmj+0M+a+UmqrsnAcU4Fmovp1+CXwwU6Biti\n450ThnPa8kjOZ7qzZOawlQBjuiK0ZCUdRl5Ib/60c0XhUG/ndGkAV8d12hcp\nNvR6kXUetn+FYze6zg+zeKdrYWQ8dWQFIoH1kQki5c+SpIp8c2xJajFQ1lre\nLA5LxtLAvZZOp5AjOwNPJPhgWfiy7nKrUMmF3SLyLXP9+3R1iC4ph70FLQir\n6CVJZCulKstyDslhEF76ov/lGfLOTfsr8GtdX4IZKDVDI2F++L409eSX6JUh\nf+GeBtOoqaIjJVgARWV5UmgcItW8vgFr88GsxuZ8iUz89O2ZirCXyzvDyenM\ng8XH4VtBVZU1LPGAR6sQrHkm/hkcYEzknPs14IaRPyTK/RO1jc0WMd5N079L\nQlGt\r\n=Wke6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx6kIdfvVMTE9ZgbUCiAYwZBbR2SP0/eloUQE3e0JHaAIhAPwmW+CAEu4mDoNobD3qhNUwdTW7+2GXvxu0WZlBKC+f"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1611032356000_1611032512770_0.759907085466667"},"_hasShrinkwrap":false},"1.8.0-next-1611077434000":{"name":"playwright","version":"1.8.0-next-1611077434000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1611077434000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-7VDbB3Zp7FXhcVpsHs7dGINe8EwFg+/exNMpOcjtchKD1IeGwpJSSYCSbgLQTdF4voiBycGcqCyB8VgFvhSOcw==","shasum":"8a34ee711dd01070b8a3507a6f281e9bae72bc42","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1611077434000.tgz","fileCount":206,"unpackedSize":21096421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBxfHCRA9TVsSAnZWagAAzEYQAKUdfoquiY5S+byF/9K9\nHB6wtpFADPmv+EGsEBU5JMudSPBw6OS9a22s8Bf1hV/rywt2DJBQeG8F+iku\nslInC6jc8iRzqzstSF9obwmtqAW9gvHTQT7GtL2iPLD+K9oxFnhIzCapJ/Aq\ncBrQ+au3C8wWbeuWhrd497o7FjtsoZri0yvjgoyi/qQSdFZUNlGRrbqQEG6m\ntyyB5huyBjQROtJndc8L6hhZYQIYmg6IJaQinikKP+RGTWkFXwGD9Ovoon2l\n8oxk4+SB/lFErEdQpdJESVU5jbCkVpILrW/D/y2OKV3iXg0GFLqzirBGZVJO\nlmR0l2QUwCsCQUKJW6t2ggbu+c0WJ6+VQyxDV96E7YSNE1OHidAaKjJqrdIZ\naX5kjTakxxwvIQt2l0R2GKXFObVnY+1pJflpy7coAEEcTwkbJyDUTcM0V1VK\nKbJcN8zjF6/8CteQZbWOwq28dLp0NfS+rvVwFvbnHmGb0QfCzKLdEg6/daR5\nGbqmnWywKjCZJ837g0ulBDIZJdMp3EqLb0wJiEop9fB5hdaToi8Qe56uSVhz\nBMswBQtIKMT0XOmNildKEfwQW/+4nvOEcWiYZIipkl+FNjr8zi9J3IKn6h+b\nsdVm8lQyxH4gCA1TQjzpP0VU4BMa6ndqs74PRf1hwAhQvK61sxsqNLo0X77s\n1LZq\r\n=2m4q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHKgO9sOoqEVTM5Aq/Rk7BnnIWaIa/jcfILexKxHxQHgIhAI20vDznMFVU/hWa0L2IwZVvQ89zg6/I9QniIsqkjCqi"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1611077434000_1611077572927_0.07326370598553744"},"_hasShrinkwrap":false},"1.8.0-next-1611082098000":{"name":"playwright","version":"1.8.0-next-1611082098000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1611082098000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-hn2B8S1ytLQ+wjVtPDnU2GNitmTdy23n0X7a52b3xrKTMiQBC1PE62UWsQj9Rl7a8zd+5xoKcZw9VDYiaygIKw==","shasum":"cbd82dd898d45019beaf2d1335783272eec2f4f6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1611082098000.tgz","fileCount":206,"unpackedSize":21096421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgByoYCRA9TVsSAnZWagAAeX0P/3oOuSrxVt1nVBtWfua2\nMPMB2xLj/UvqRq60SQP7UU9ooA2l5pWTnIk2xYOuVtcg5BOrUlJUNdLeFesV\nOLlEBkXhQGx0VKeo7NyvEIQm+PkoGuDbwzSZMfTal2rucDaoCU75bdgCL2Cd\nDOviJC1aTvZjjPeYB6Kiyp8DY8jEv3h9II56vNhcRg/rrcjLDgSsW3sls+NE\nqitrvtuHtFaNWH7uWVyEdmlRF1OY2HXu8EmwN2vT7i20yVL758WOaPVRY7ru\nbXTMDbV1r39hsfiFYb3IB8zmYhQ2DTtBRgVQcZTlVFocjafnK2pFD+HImExm\nph7SS0Wi1xhGX995JUU401YMOUJZmEeLcb0isTtoGTuqVeGsDKE1wSo3q8c+\nNQwXsrcpCBp26O9wqpMJeM4cwDbUO0oOBKmnJvoB14HtKAAoHxFtNbFK4nr6\nEwryjlpok9bQHNgmq9zkvO3SMnuiwWxc7p5w7kLNpOweuRw/q4I6VBzhQuDQ\nhlRhkk9k5Wz3V/gu+xF2gwwWF1jYvv5r3l3sjbexU8Sz/WLMYqLEi6sC/xqx\nY7eY3ReLqL+OJvpPF5U66Fvg59cRrJKhsW1sQ3nqJ2jBFglpwWYI+qBVSYLc\n+4wi3mgjfktuyWWLB2HFvg8jCHRko8VnO/anIWt3vx3xttx+JleYnWWDQBOo\nnEOO\r\n=EmX8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhR0df1CYAYVn6/6nAZrcAW1nDZAYPW2cEUQsj3MS3jgIhAMvucIub/sdiYblYBCecZziDOpM/WFpUUXYAwPJgNVoK"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1611082098000_1611082261062_0.6612390864828166"},"_hasShrinkwrap":false},"1.8.0-next-1611084425000":{"name":"playwright","version":"1.8.0-next-1611084425000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1611084425000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-iVfo6+LUTgO2cieIoNJz8MtW96LhursPwpTk1FijMS1no+03NUla9O5aTNo9o6xHSPgSJb/U6U3S3uj1x/7+eA==","shasum":"f514684724d72dfde2ddcf507b93ccf97cf7be03","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1611084425000.tgz","fileCount":206,"unpackedSize":21098153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBzMkCRA9TVsSAnZWagAAGL0P/0pH+fiLZUphHFe85RmZ\nub8TUb/jekOw6CHQoK8VPr2GUVKyILW1oy1CU1jSfKAIjHcvfzRNkfaOl+uO\nFaLoLcxUqw+Tv6WV5V4kh+iSCcRJoC/2zG/Fbc8pjRXFZ3yvF0mgDEF6ADVb\nvyp5NnUDVWOQsyxZpq6jj63GjCkjXeRG3mRagssvggwgowoFBD+ccoilECly\n1TszfLXdy9Bsnk6gOK/T3l24dtKKnSwZp1meDiKu9rXmDu6h08JAzM8HOHl4\nfCis2PTzKSTmdmlxIq/J99WAp/0kbPTcaQl8/o5ZFTt7QigQ1tj0G3CRRFKK\n2paXFO1dgFwgTtad68wDCQpfMZtUTOX15wwCDHVTO+vi4eJbVZ27TlEqgmD7\nfR9ApzqwTAQr0/vUpja+d14VcRS2hk4oiG5gZCSyIW4px1vI3MFeu4Vjd3cd\nnajepkOMeiUWCwk5lKpE13kgO2HEwoVGrXp6rrdQAKoWnNOmM+OG/fATUo99\nNFzOc/e3uXgqNRmkj0/RWgdfQP+oV71VvraeEc3kU4WGVL6hioFY2SOxqqj+\n9VYvK0jdDCXMNg37preNU68OFcc1/HW2zRNlJhCQY2Xas/xJth9CIKkf9Me/\nXyA9U2Aw0CBrN7GQUetVG6IocBKJewfI15RAzUVuzEeMimPltyCkxs6B5R1n\nUyUV\r\n=OCFj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElLFhYPCQkgXVrAMax+DPGYEayOLSYm9qcB19GDHsyaAiEA94KKHg+bM5n8lPdlRw86DJmy214PXaqLyGhRWg3Bjw0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1611084425000_1611084580093_0.19669555779941916"},"_hasShrinkwrap":false},"1.8.0-next-1611093761000":{"name":"playwright","version":"1.8.0-next-1611093761000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-next-1611093761000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ql6tfe94iKRCZFvU63rdMCF1oRAvgRz5Dd707+Z7Rc/rr/bsa+osmXR1rxH6kgRSfSiR54MTixBMKA9V5dEG6Q==","shasum":"fb2e176c6cbf38e9fc19797c7e5df7bf3360a3c1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-next-1611093761000.tgz","fileCount":206,"unpackedSize":21098153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgB1eZCRA9TVsSAnZWagAAh4QP/1qHC/0ZbiSUoJs2My92\nFLEvqES6MLuQoV9E8DYgwdW5eoGAPrLvrbi4bNwR/9qTLq+mQ8OdRt3GxCqI\ntq6xJYc7wonW4OmabsTmTo9fAwhqhB2jga4s4V9heSyCh+ADngDDS46fwQwi\nem5ARLF6d7Y9MCXP3hFGBb1Lq44ygPr8KR0qSqg+GV4Or49Jb2yLTYUSELcM\n2bV5I8GT04kUksJkXbsa7cqbC9DQ3RcFK/KlxdSmZMMr+bVza3deoVjw9jMX\newz49ZAp0m1ZTt7WmhQBHd0aSIrdnFrMB5OM/sTLMFwULCzZIGFoWPnX4Qij\n3MKqxJS4/0QDId3T97d48tfMAfjArK5Nf2IQoY+uTW8cuEbHFx4pLvVKcua+\nKD8YSuxH/jcfRwAyWd3xtVAuWFMEK/bCAahgfhaT7/eykOYGfzhPgJj6e/In\nbzIVDk5PMnw+jaB4AuWRgyTWtKmleVg51J4BEcaEbZG0BQ8oxBYWOxYL2O6z\n7AfJl4t4m58DD9Knzv5ZhKb4JjXcggcw4iMcFv1HcgwUyTlz/AI7ScbdgbYb\nmodHUxgai3plqKT66zbJaQ5POYCYOoqCrmobtLnpwb1M2aZndJU1PvKXKl8N\nnDxhqvfC9ixd3RNoVtmAuerKyGQAs3/wQW/67KbGgRlNA6wpYvbg7FfbL4Re\n09e4\r\n=RKu/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDxRa3KSO3bQn70oq+7miBaMz5ID9YfxBd92VejIGbSZAiBQgws4raSDBZYvQ5UU84CpPqkfnSQhSrbgpbZ6mmYZVw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-next-1611093761000_1611093912478_0.13848689552016902"},"_hasShrinkwrap":false},"1.9.0-next-1611095396000":{"name":"playwright","version":"1.9.0-next-1611095396000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611095396000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-VAje7ZUtMvh75QbodFnxQOVds78Z+Ykru8aZe0qinGvofKZiX2JDwfZhUGZJzx5XW2DcOodhkrH+LG7UH3q/9Q==","shasum":"c20910af59cff28742b3a950cb159063093c246f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611095396000.tgz","fileCount":206,"unpackedSize":21098153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgB13wCRA9TVsSAnZWagAAdTQP/0FeSwKoi0ilMEa+h2/G\nqZxY09CzeksCVdhSMC49q2v6KJNxtuCsTBz2a/crRTdMAg3Wui9vcnF81enx\n7zHWGNE5hkKaRFqsal4Ovqxb752tgLfyLLo5SlhGI9slS0VQxtCcxQUWA0Kl\njfprEwaJC+jK/QRkQkdwcD5yv7f+Tb642yb2ZxB7IZfIWkD797kyOWmKTiKR\nhlldJjaKOTDjZliBRFRQXuJm19YLB1Dxe0Jd0YI9bfpKbeXPN0ZtgH/TQACi\nAEJoRxb8FnjKiOMEkAlkEqP79ue7R6HBJO3Kz4QeitDoQQYbLRnLA2KePAlE\nNVw/xypnEO/oqkIt1M111SHvWg07dJVmuZ8xLnyH4PDGdaCljznBMr9uEIQQ\n4AXdJSWDjZNA+L+vgKsaJLRXb+GP77Oqw4Ma300wZZh7yBfppt8lRbE3/Aw6\navoXXtsR0eevI4gx134ROuUyO1GlmgxjZctnpFBVXDwKmRUUswiUrZiHJLfr\n2TI8a6XpQCEEkHymrc3c/C/00LGnctvZg3Zk+FXzuq61BjciwkgPvVKwDFmz\nNVg/Z5Zx1zSu6HeFJnEcEJV51LCljJveePLkKhfR7dvAP0oQ5iAKD9+zv6jz\n5ZpEKfG70lOb5xnD2hutnj4QYodep/Sne7ctRSzG118uH4Z41zDayf7BtCwg\nGjtn\r\n=aAmx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpmA/ybvrm29vm21h89ltspF3mUUGVRMBM4aciE2euZAiEApK+b0EMuwJB9BxXXlQ6O4QP+6bYefZpK6OOgF2XrAgE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611095396000_1611095536104_0.4043815796418626"},"_hasShrinkwrap":false},"1.8.0-1611096027000":{"name":"playwright","version":"1.8.0-1611096027000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-1611096027000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-gTOyICbe8ISqtsmseb/5YKYEkxNJrdkx6zQVVnIe9d4WPpJdwQ4bgNk1VUBKFUqUBraW2QA7YaY3scTS4Rw3ZQ==","shasum":"1af0e7908cd47054146add49244047c65887119d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-1611096027000.tgz","fileCount":206,"unpackedSize":21098148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgB2CjCRA9TVsSAnZWagAAIHkP/2cNsgKJjOHa7MGjA46I\nJWrwjultRSdXRKWGou9681IUDGmCjSHcf3K19VpBNKGnwPEt2ukQD3aOaOYx\nKzTtiPT4bY2v3m6IzBxERqgvM5px/jqa+SVyKVqpkhjox/Oorm6LiuM3casd\nV/mlrjzTubUJ/9y+8BEcCeOemQAMkPCKaabnB1lPLOTaABFI2IXBhl+P/7jz\neTTYnLmaoMVFhOcI0Txj+jYH5zSFNN/q7sNqSvPwqISlYT92RCVrzsUT+lVk\n06YXYkDusAxaiQI37mv/ngviQQf8HeAt3vEGONqdh4+yOa5Ea7YTmIxDLUn4\nLWlyS7sfdAw2bQzowaZvSp1lKvGa0oBwaH0/pHqlibUJAnu8xPITmKoA3yVd\nvnjCgmDlcO6fR294ykaxtN2IaA6IIpWjVycCiWjeQ3gH8PgqY9sXlgXd1kwa\nvfzMb7OdR4qcSdZ2a/AyUlT6Ijsw9w9V/nRauWSP4X+GrgR/bSYwVibTIlYE\nZSxZ7d9SP/U9TK+qJtjJBy2Q+G8dw/VHcdF9Wb/prtTtdCWUTuYB0G/yoHoJ\nhh/KSpmjw+aEuHxNgGU2Q1VJNDy9kjPFnYpkduD6nyJ2iHkxgK3yvs3GtbSy\n3faSWdNlK8e5ayOUmzLpY/AVxkW2RlUHTHAzF3pkBh60dS3hGwzTiGW16wMq\nxElA\r\n=dwQx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCP8LpADFbIxCzi9jEWkqE+KlupSSDZyvd1W1nszO3vygIgBT5Hzy9bci/lCy4Ju0DeguHS6ha+LOtg06QpMNI32zc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-1611096027000_1611096226401_0.7448997698249566"},"_hasShrinkwrap":false},"1.9.0-next-1611096326000":{"name":"playwright","version":"1.9.0-next-1611096326000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611096326000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ZYgmZrDTU85luIMhfbV5leSOyagcEnscylEWh4LiZ8juGaRJxNaa2xOlW7fBVHpMRNVIqIShkoV/estGOscqcg==","shasum":"2a81b129eef43bdc8106812adb2604de6074075e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611096326000.tgz","fileCount":206,"unpackedSize":21101474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgB2GNCRA9TVsSAnZWagAAODcQAIc66rpP7hGn70Y+t03l\nedEEdCdy/YM5x9q17tuRR90/2rNVi0jKOHjeBqIex3NLU6WWR5t7OF8BWRep\nKjedPVPwCCEAl2sJY3fRhhmC0LoLOQyCH1K5j1HcHz9bez7BPPdyTy2bdchN\nQzrxmATWqE7n6NnB/DMCzUViww169VrUdi2VQA8beGokSDstzhTuQF3GcpB2\noJNR2qqxlGAw7yGbhFqvizISz3t879TVceptivitVhJ2xkYeURKj1wy3AvzY\nzTZ8+TE+n+iL/VOtGTfFY7h2zpfjBkblty9DcNFzEb3c2pbFbRkVuUcNASft\nG0jN7ijPLg/74n6UFcsTJi/CjlVv0tp0NgrUmaVkAaA+ZY9J/l2N7+kAbNcU\nYV8JygWTuqStdBmvB3ohgY6kWaXAf/4u9YSXSp0PKDOf0JSZ45vD1StmbZmr\nBQMVGlQ3PTyf0TjIl3/n5A9HeVW7Cl6cb5rzsqr2Yzw31I5AdbiyoUz0ZP8G\nvYG4NV1mBfx2C97twK7FZpu29nnHZ3yzevfWL5MajsfseGfVEHm9hfA5IH1b\n96E0qHrEHOsDgEpwzjchmH0YmLYpnC25n1YkD0jt6XbN5zq+7gpfAFTUYH0p\nNz7HLG4QFsKeKV2ZVWqk5Rk1CD/Sz9saW45AQLEEKu0W2pdTc4klm8rAkQHJ\nJmv7\r\n=H8i3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCO/QOpS974oFS6OcxqYKm7eSiEQf/aO3fZXreWhtB1LQIhAP6EIUyto9HPR3KWeoyXeyU6HuSNdyuCvZhtQBsMQOhm"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611096326000_1611096460931_0.7510770690901716"},"_hasShrinkwrap":false},"1.9.0-next-1611127085000":{"name":"playwright","version":"1.9.0-next-1611127085000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611127085000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-VrIcRSe0YjQTcRd2pnJtrTL0JL27I7SLjbArjVLIwYNk1JS9ord1tXT3A9EHoU8FpE939tO69YlEIihZ28MlcA==","shasum":"4ee8f190a9b72c3bf8c40c17b89c7feb0b8546a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611127085000.tgz","fileCount":206,"unpackedSize":21101474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgB9nTCRA9TVsSAnZWagAAhtMP/1XPU7prz91bDT7repcK\ng+1czoBxxYv6WU0vEYW+uJbPXFHPXqtrfYax4nD0jQK4N4zHu/wIC8SPGHBx\nS9DKqeckI+2pVTk5BqUdYpK20dhR9QElR0AA+aK9HT23iTLlRHG6CnRwyZdR\nPC5AI92zjx0qt9sFqi+4q/PxHQ5XEIYQhxoM2bpgxTOz6g8+0VKtyopl2/hh\n3dgxncTvUDTQjNczYyxTMOOxA5pwF87fonpDwaEBGRX1ya+sLV8XhNhlCtkb\nr4wKa/lMX5KjHFJRz00sfEPbYlnd2tZPHtq2Xgvm4huP6sCXxT+XAch4n7sX\n0oeeiQcLYkngJ7BGBgYP0zUrFd/tsvOVndGLOkTq9ugveKfTs5ziw+sOQogP\n4zizPmj8kd3iRZW2PuMzcNPReJAgA7re3KSigFpDMsXYFnDXrb9VJvvGdtvL\npIuRC9UzFFVA6xm1T+qJG5rA5gSz4FXG0wu+dfSr6ePITmkhsNrMcOnYg+Rj\nFSqg5lC34+RVIIDymki0pHkzcH80s3YCZvP+8XXMDJbBtd2Yd29Rlg3zfl3o\niR7MoBqj4WddLmxMnYj1ngSAN0mVpREGufOeOv4KEf+3F1xtzAq07AeD4Vhc\nDapXgjNTP4Y25JplTMaIFk+PMDF2Lh4wEOPPPZApmVmqORnGFK+i0kANiYj1\nyc1r\r\n=9tVj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzBo5l59ffH3Gn0IeANp0LV36WkHKBsHSmqG3MXgZfWAIhAKEvBR5qKE8gISOG09PfMTVrRqzXwNL/5IwGrSxXYKr3"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611127085000_1611127250300_0.30717548620237833"},"_hasShrinkwrap":false},"1.9.0-next-1611159159000":{"name":"playwright","version":"1.9.0-next-1611159159000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611159159000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-42cbmOJskTXD8GglCW32ox4zE8T/WA+FSmKYQWfp1cLPvH4USR2WgKr4iUoPxsC8Y8p/uCG2DAY7OFza6NKuBw==","shasum":"a2829baf6946de1abddf667fa984ac14741e6823","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611159159000.tgz","fileCount":206,"unpackedSize":21101511,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCFcmCRA9TVsSAnZWagAAkbgP/3n4rKcUQIYU00zV+63y\ncXz4pE/p8cOLe4xOx9T4LJc2vF2pgwbSC6KDPmPXD/lRz0qOP+Un+Umr81BW\nhmcTzN7v6L6cgNGsbZHkySHjV8bkj3QfRHMCusbjSULpL3DHhf2MNy3iYb5T\nvvabO8EyaK7JAVD4vl8RXJthGIs9Y3+HqPUiwaFaVCd4xcLRFN13RJlD4Iq5\naYsljkjHJiqajxzwpH9FQbjxmWRK6kChCBGWyKJSWjQW5IPK6Vd4Zn/i+Xy0\nbpds2Tz4ZhAdyNsDudhsOKNI0nJ//2oAZABswJqmwj+4XlNXHyNI4lnCTHaQ\ngzz/X8jJA49VBC1ucv9cQBDhwe6MhCiFjzdRRMUXkpyiHctx7xEtNksSZaWY\nlRP6pLAnJdJUKcIALJvB8ECiCwEwuHmMvciP+ItjApOGbAdWzRJvGPArhsdh\n2LhJg6DWjc9W5w5RF6b4ymRNT8gyiLN1GPZsTRzx9mHhlnprY0S9XFMclwz3\nv7EvwzyiLGgePpddieryz09latSlaLFioXV23GT7aPEVCgpIJKtMqQeZsMXL\n63RSNriBZkI2CBe/mqBe+dxkGfoG9QXMoBZhscUvMHNp+koOYDAGXx3v29oU\ndfcXnzasgjcpwh6f3hpZ5HJ+Op3b1BhsPx8aEHin4+QoQcGzfwFlp8Jvvfd3\nZ8vV\r\n=MnpV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqXSgp8kW9co1UaaY5a5t5PqFgmKpEUEDaMQ4HHsFZiwIhAOmVp0pqq2e1mAdMDfuVqWRKmJLNZOvNMy3J/N7liGO7"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611159159000_1611159333355_0.6804191586624493"},"_hasShrinkwrap":false},"1.8.0-1611168053000":{"name":"playwright","version":"1.8.0-1611168053000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-1611168053000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-P+HuujVUz+qfUESqMixVXmqkxdtgyz95FKbfAz68tJ2fhr40L9EkDizopk9B/tkoU1KecHkWJ1+nTYuk9BlOlA==","shasum":"1883f07513775a62c83bbbe9ca38a660a44e5a99","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-1611168053000.tgz","fileCount":206,"unpackedSize":21098185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCHnMCRA9TVsSAnZWagAAdEEP/06lUrQqsdOT+fszWihk\n4rtHQyEKj3cdiNiosi2rSlOKoIDATsgPU3bIamTKWSD7TMorLQ/PELIGTDu2\nAw2r3z0fDuUmz52AdEHzbBjQjXllR6xWLpYdHW3kmw63qq3fWdFbksvYaTQB\n8lGVIEhKv6C3OCVi0542wAd+qVTYhUnPNXdE2JK7ex38/WkNyFiD+PPwlX1e\np7Pb7tTCXoHAmNIQOGGwelTaQyRCv13pg9hKo+YIK5fV7HZACXwXC431QSCe\nz6h6rZRuVSq1nc/MO4IS4l/gjOIHJF4MMlnND8hS9mpkWclC5mJHhKZEpt5u\nMziFK7mtoAb7mxYZZs9y7c1teFwdJLANuyKbLvNBfsOYQJ8SJ0FNSDH7bks9\nMOxLHJlW5W7Pat+L91A6k0CAmOt3BhVDK2wJGXkZ2AEtlEkUnxR4zYZ8ee5Z\nCzGaHu1CbgW+dE1Qi5molmewTkRoTPo2yHWdIV62PEEcumceiIr7UhtgMRls\nNU1zfQ2t++YxcUW2R1jqBoX+uE9bzaRVbSaXf65wR9zlKUDHQg0zQQsvcmJ+\nV/MKE1+PRFE6BY70RVynyxjLCNvJz3vOTh5fi2otw3jFQokwI9MAo50Y6pyt\no1ZEXK9o2NC2vJRSTP1mUmF6ARxVx+0Hhrh1L3YgJfnimQzRnlRg6/2wmGlT\nuL43\r\n=u38V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELgBXsWxwbv8EONWc513RdU3Jjowp3k7DLxBuaDt9NCAiEA7oaKBbEUZ/sT4ffXZonxUUCF51+whMtunS8i/itazok="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-1611168053000_1611168203356_0.20474319773482974"},"_hasShrinkwrap":false},"1.9.0-next-1611178683000":{"name":"playwright","version":"1.9.0-next-1611178683000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611178683000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-X9u8CYJq3xmHdLAN6urejIFj3h9QgjDAmaORXDTbrWPNh6eBvPCRy/fcc2jgkhqHWncEYz5+n5OjcAUfASDGvQ==","shasum":"47c62b7fef55eee75d933bd92153eb2bfff51385","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611178683000.tgz","fileCount":206,"unpackedSize":21101511,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCKNBCRA9TVsSAnZWagAA3L4P/RfQxTh0v4yVwq4NuBkq\niHRq2lurFSAEKMQsmlrV/RU7VmgbyWOG7hx4UJm+/NXJZeB6JkQESopkklnQ\n/BnFRuEH6HUjnw4ws0PAz1Y2pHVRZlR0dpG3gI8F0QAQhFmTjn4DsCtFN2T1\nSmCdvRkRJv944yHtdVKIYgmRQfIFbzLF+/FZG9i5Fj5Pstk7Hqm6g2gFy6jK\n2pZhLUEcWyrpAAszoKwo287YidKWU1oqTTIPiOuPO8mpc0+DAvvm65H4GmV4\nu7KokiAjkDZ14zqsXWU7ANk2in77m3kY+XxNWHnu7f8Y7DBd0IJA/wi5FOgF\nHFx36fFjwU0VDYNiX3Sgj5n+5J55dyYcTPXq7Yly9GFyFYtLxeyVLh4jEMus\nOhFm26hfriA83hyf5rLHKNhDaF48qxYuoLkmrZtpAb1GOLM9evkRQuQktkyW\nhXoTH7eCQnHef5CaLzguRjCBnuT+KzRrKPeSyzZ7/ckgCFUCe6208jlz3kh4\nitBQNDoPHMx+HGJoIqyd0Cds9Vn5XAwdqlS81l9ipZFZEZHKsZRNIIYT4Gfr\n7aw+Xa3ra6EcsTtql8XWAH/7jqMB7qKH8KeeS5o9OJXn4GuZ7Ktw9TzFIoyV\nwblr6qST+bXLbe/Z9yM1qC4/S69/iXNztn0XDnLygpYQ65hjzvA9ehA64a26\nxg6b\r\n=zl2x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQkxc5BbXrd0XFCIAhxVHxJxPfL7aZGmcBHlHW8O7EjAIhAPeQd94AV5ZLzJQO9WuhMn6VACKfa7upahxgwfq5BNWO"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611178683000_1611178816418_0.8648014491436362"},"_hasShrinkwrap":false},"1.8.0-1611180882000":{"name":"playwright","version":"1.8.0-1611180882000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-1611180882000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-v/W36Lp/d/5MkJuj4AROrfzvRO57WfC+fTtaJCKXu4zgS4C05x61gg43iBQVVDXRhdc28vAzaD73MJP2ztEt4w==","shasum":"d0cd538f7377cd726b60a99fdf9a6c707a3499ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-1611180882000.tgz","fileCount":206,"unpackedSize":21098185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCK5WCRA9TVsSAnZWagAAfzsP/0lCIN1E+YmnJXgPfgpf\nEo6n5ZEKjj+w902jou9LVqPIz09embMSUos2h2n8U5LKhV4R7ZRqxwttgtVt\nI4mPvz9el+sK8IX6sCvphT9MyR/8JAj0vzL6R5eq/VFX6sGWsJMkDV9vzLIL\nHlPGnhROYA1VqIhglC+iTIyGvajk64oruWxvUzqRhg/03DevWUrpG+PvJZw2\nNoz8Qo2BPw5hgIgTxXCVBcbE1Ps5mZLxJHnegfowZPXuz2YDCLLacux1cmGl\ns260UoZyOwFC+Ru+xIpPW1dZbIuhyHkAszKUwvPQQe6Me0ClQPA/ihcywG1t\nfGPba4tktMKdf5In+pLEJEne2xbT0ILjlAudEXjwXkAq3xcCJRqxPx3k1nOM\nsUtojlnyNmzps+Skha6Q+9xY/fEPaOlDrWzQ3fdrlFtqfJqvsGbHDIBIxU5H\naTIn29VObtC6hmuHxJX1eeugGhv9mlIxMnIdsiqOA5ngmhOdvuV8sjrTdbX9\nGmwqfj1RBU40pgOlp4DweAqY+mPw0X9VTt4TG6ZNYQy6bKCc4rHCb9ijRKCH\n+ErTTXAoO343nhokDQ5wn6gk1RnlKczM7goju6yWFtm8MMxlCRedfEW02nsy\nInIjrsPj2tZkHBxg3HcgH920PDOIsfjiUxLaB9YSEXBBu4iWPwByteq9ETjw\nnIzy\r\n=RDK/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH1fzoY026OxLfKJ8+kDeTaK1xAywLYUViAdFcngyxGQIhAJGRr2z0rhl2aID4KHRx8RPGs81f36Bg4bL8al9GJxWd"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-1611180882000_1611181653266_0.21758096562103568"},"_hasShrinkwrap":false},"1.8.0":{"name":"playwright","version":"1.8.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-urMJDLX92KawbkWKrt3chVVBPQsuuNwlS5St7I5YQENXAEItoyUqX7FjiYaoPgXifKqe1+BKC+7pBAq1QUkgSw==","shasum":"8eca2250967ee892b9fdfec44e2358455ab0f8e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0.tgz","fileCount":206,"unpackedSize":21098171,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCLRgCRA9TVsSAnZWagAAuRMP/RnMS0x+yKHJilO4arn8\njEssvskkO/6rGDaqDR7fX71W9HETvVJfHdugCIB5zpRdmCe3DS3SZE6wQMNl\nTJ6RqvvhO+DkK2hp2zNHVdsWfIL0uCZXI5FpDw9ohCE7J9sHV7EhfCkVtIsG\n3PzSXVIP782Vc+KGnS+ze42fK9RR2r9BnO756/zyVf8uZM3fRjkJEEmrJjIi\n6WNrm6JNkUG4Gnai/goPLirtDpZ0aT6WQT4PCb+NFWnbgoVeaVOqd5EEdQfm\noGwpwUipeQs/VyBY62OzoJCZqI3jUz6AVKAoEJD4+afCJnawCvULTbbgBo1+\npNIGG/iLOKAx9aXfmGtaqKulrfCC8CJ0CN+0GzuqvhVWuGFWQJKvdW3l8d3D\ne3dxzcGo8lUAhzs6mMjdhnDMTotLzdORT2keVu1j1rpfVe9V5dL9oUTZf/BO\nN7mLJSRug/rdeEbakCYm1NLqWElqlUvcXoBWv7ryP0lrYwqDrVbANNRHxBs+\nEufEHnH8CkfXZV6ZVcyOHQ6qogspS4pqApZYM5UDeTk/HLwlGP+dQSMUSgLY\nLUmPpsSpG9qc1KWx1h/hhzDEOvSr3GE2VSsMbum8vaU+H5WNFG6htfidEoWw\nUOexNWHCkHmEYemE/OJv+z0j5AABgduidqRowqgwrtQR7GBStJRP340sdAgg\nedv3\r\n=8r97\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdKMbJW2LrCieoSoyYodWIYub28BqptEDsm3tQNx4qRAiBpYwX+muzIKlYnYsMkq8blf/gMDzwD2kBl2lVGUHwbDg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0_1611183199934_0.24951183673390975"},"_hasShrinkwrap":false},"1.9.0-next-1611185742000":{"name":"playwright","version":"1.9.0-next-1611185742000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611185742000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yORtmxch/NRvfP+ikY8iXKWRM5koqpM2kLPR4BabgJlSxJ59YS3LQ/dql6+/YoDFgu1JzfUac7sYKCULWaXlUQ==","shasum":"8d3ed7e5baf768e3a35c15df0623a78ff703132a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611185742000.tgz","fileCount":206,"unpackedSize":21101511,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCL+gCRA9TVsSAnZWagAAtQUP/iUBjht4E9k9CT5XOJab\nGaGWy4q1DClJ7pvnQEoJOp++D6nM7opUELT+9Ib7X2mxgr800FNqbiNvrcfs\nwCIvKgvHSvqAS9axtbhpis2oya01crcSWQVC1dlog7VeOe4ci7x7cHE7f2DF\nYedlKTA2sw8pV+wcQVhEp7q1NozOIreKPhTXHKAA+wV6k+W7J0x8f5wNTdCH\nvazrCuM9KDaNTFRjoiwsOQYtr5uGFr3z6htFF6wOClCO4KSGGt0Ah7NNIwRE\ny3Vsp29O4tc/SPXF9R2iLzmzaDHQLgyNvV8XyXmHxZwKGOFukqV/Fq/uymbg\nsN1GVlVHZu9kTbdlHyMxIWQqq78YWJeFa5GP54uli4QAf0lXMJVlyNZxcxVB\nPj5M8zqRvB3KpcKvRRJpC5tWW1kWjD2fOSYClcS42ZuFppU9ns6Cq5ZwUckX\n43B65zNiik8v2HLdWOo4A1HvVo6TUpu9EIcEvR/8oYJVHKinJwiv/qc/1bjq\nN6McHYGE6jS1nM5vzMFqD6b+CUnANZ7JqSMduYnLeRZMk6Un7tsOD1Zorrai\no+kwMofYlwWEGlGSDE14TdL461DQv20QyuFhDwRN/Z1uVpjFONzHh9lRZiZH\nruEii4STxtzaXr3xOtcIWAI92Ky+cHCrKFwNP3Ah/WpNKlsVErOVVQYYBvta\nm6+J\r\n=K55a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEbXwBbX7RMltO82TIjzwartDTFrh1kgSpaoMjz7fjVGAiBC46xtCNXOpssHxSSLUlx0ww0vXCzXtDgO4CNRljjEBw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611185742000_1611186079345_0.9445062912888591"},"_hasShrinkwrap":false},"1.9.0-next-1611186200000":{"name":"playwright","version":"1.9.0-next-1611186200000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611186200000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-chuONagKvIRl7I9mlB/q0AAGtGkNbfHP2SV7r6H9YSgHyWeHU3bLkRqOe0bOA8HLEKXOsrZEYvTnT2P6fwUWsA==","shasum":"6cb994605985fd7fae4438a652cd291b2d88177a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611186200000.tgz","fileCount":206,"unpackedSize":21101511,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCMC5CRA9TVsSAnZWagAAZJ4P/RK6q4WxgxSeeokNyMpY\nHD7MUu7Ng4FP/I0ZUTQskfETyeFGY3w9zvY1YJaY4oOtEydo3dCv4Lv+SLwm\n4W+1Jsb82xeYc6VE4yY8nbXirmrlbrA/IJRpuj736rSDdx/zYH+yjDSQn3Hk\nsqiXy/ih17aiPPmNp8BO748fnv1tjTHdfaCI08kM6PJmaS6bBE7GqIixYtLB\nvkxWYjhX6I7CE3gdPLEUAgk599S80Ss3pndcw9NY5t2IfVS2rr5msVbZ6AE5\n0Dks8MtczaEjeFffPTxHH6bUUfY+RZgKJ8q9ZaCPxTbyw6z5y1KRiw03sDjM\n872GxzfQ3yW1beeNg+csHTHiepOQSmKdvilq+fcMBtdsgf/E6fGVRyRLdfco\nJgxgUhB+8xlfcNkWSr91rYYqUK/Cmz+7L06StMUovP7aAi/HvnqG3+QFQEMg\nHJZGI6jAbomha5t38CmMo+vlQmt1OV/WvS3gs72gOj6k6M7+0YqOdlvftXWy\n5wjeK/eLwUWwn2jD2sADqTrW+0H23x4yPAiqEE1jhvyJwxRrtkY0TbOxLcMR\nH4KB58zgKfmI3IsYX1vXlEu8Jwo6/Xob8mov94iQQuP16DMsGqaGy2GlEYBh\nhmozmRJpRXluEEzqOyRvL7Y9NjKAxiW4zgd6krRCikf9wTLKkQg1WmuVr7Z0\n/+eZ\r\n=+YWB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1hzu8AWBUze+euQAIALw+p2rEGHhXLLYxiOUvaXrqjAiEA0BR/5MB7GFMfpo4z2p/9RuQEv0LbVzNK5d18PWh/byE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611186200000_1611186360498_0.6155239679088345"},"_hasShrinkwrap":false},"1.9.0-next-1611186359000":{"name":"playwright","version":"1.9.0-next-1611186359000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611186359000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oj18CvB7KXCeS/UpNiqC9CdRtH8+ErH+44DC5svnf7+q5t6GIg3BOCiQA4wqDJwo9fy/ttxGZYp8pB7iqQoZ3g==","shasum":"11bc3e0bc83bc7ef451d249e75ea854e08520e71","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611186359000.tgz","fileCount":206,"unpackedSize":21101511,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCMFrCRA9TVsSAnZWagAAWs4P/ROVqI2nxBTXDHBZ5Mwz\nCtNeH9nvsBOkVGro33AhtF3wVCDhZjSwDcrmq5C9/m7prYJAVIy4nFfamNXb\nY8vJRGLW/KE6vL4mHC/pyWSvnpqtr59mCcwcwXrmBd4P9anq109kDKNS5IVG\nIknGqPNV2KxHyAB66F97UxhoOjW8IUgRFezlEkCpcsDWwkjYnF0GwiDShNMd\nSJlrzPNVcsvl6C5xsv1Vc5+/jPlwXtHEH72RgT9lcnH8smId7ZfeqTS5Xt4L\nI0mMtov5DhE0Yws9foxlbOs1k00daxFSiotj4QSYLYir6uSUOxvqELOAHzqE\ngC4d8jsrlK72cbcz69kE+p+zI4u3LbxlOGzvJS6wNg+SW6uLp/+5Cd3qeQmA\n5NBv/5def6N8mkoi7MvaWnQVcbcG4kAEVBnesRrAnU/vbXZFzWWv5ETXiKND\nk0E9yPC7/gg3I16ZadDavn/yDlfla/GZ75dfT839vVPsNIjuT5YSrsD7WgBe\nWsd3hVZuWbPndoqLydx78a3k5sk/VqhCLdxxjduJd2TLmftl93GyBOnAmZde\nLG8u9m71eW1eY4BZNglV0BBfqOMIvccRxn78MAeS6XglebSVsDWW+4ykTvoe\nk0Y0eC4hdIlxx+9Y0Ui5i+Pa2qqA26oIMRCA30JSJOFgiaDCkO8HgMjojUYv\nmwt6\r\n=j3e5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN9HTPJxNRtKBjbcmn62q0ELYeO622XvUGK0v7PKqowAIgBz+0xt4v4+RA3FfuYoqEOiscwPZAp+idEMOKB9vUE1w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611186359000_1611186538271_0.31397335623219114"},"_hasShrinkwrap":false},"1.9.0-next-1611187586000":{"name":"playwright","version":"1.9.0-next-1611187586000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611187586000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Er7C1a4h11UTRCTn//syqSHr7LAVIVYem6mOmU+/hphmwwkpey6kdh4fhf2ZRsde4wprbzm4B3vfJr5Xs+3jNg==","shasum":"b96475c40b4b8f2ae0d50ff94bea55703affdc9c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611187586000.tgz","fileCount":206,"unpackedSize":21101511,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCMYJCRA9TVsSAnZWagAAmX0P+wc2EEVYtztffD/LATev\n1zIMNR1c0tz1aWqCDi46sc95xDUFSmP8/56Unx81BXyVR+etMEW9Kez4IZhx\ny5VvCiv3PuZ48uT7fnGSefS9DFFT2xgUE59ol95xxy+QX0UVIHThoGlyFeN6\nZQx+r1BZalcW6+LFtr4x8/ApFIVrnbIYBXLrNB2r919yPtCd6BKruIcqCz/S\nqBn6kdEkDJJVYcQkQdX1MlY1SMJI5F7UVXd+rpAcMsF7xT+rqgtYWCF56H2U\n09LfqrcZeUdsjqOrjnHLrgUTqf0tsjA1JMESfN8MP3Zr8az4wNT0Lax5z6oM\nWRhWAE7z59ssEP1FXlA09g5GWhUYiev3KNz21tztnGboUAAaLkaopmxxNe0c\nxdQzAoNQxRUTs+RQzLMuxaHhMJrqfXQNcWQfI4bzaXc3w6HZP2rqNWRaprEZ\nbN8cJWjwugDVJ7aTceboHNWg12GbDUq0vF0KtO2XULImaoXrc7KInHzXl6n8\nj464i0FuxYkmdcu4Hjr0LdjAaeP8+BkhzxqtFxb8JiMrJnp7QESYEPlDWWOE\nIkejxJp0AmpOuC2U8xhYB96vENhILe/HrAkbQsmETsgD1VBs0SFVam79fCwZ\npE05+X+RO1O7XgE9TISPhXPjMD60E/Gy9kIFB4PLw3ssBvtE8wNJL2+GQtaf\nDfRA\r\n=p+nU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1d6Co+bYSGkhu7EBOVPnpCmZMnaDZFJmSGnSQFkTxmAiEArRiB/YP+vjK67SZWZ2o7g7suckEdthuh2JgpAowAw+k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611187586000_1611187720767_0.5570323487704738"},"_hasShrinkwrap":false},"1.9.0-next-1611188341000":{"name":"playwright","version":"1.9.0-next-1611188341000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611188341000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-F4rP0AftMuvtrWqlPGlaDxhKOGKcSYCEVdvpC43+qn8Kk3YNqlJSPYzZizLAMtpI8Wjh3El9Cn+9AXB1CNwcgg==","shasum":"8d021a88de4ad2bd996ef0c0741ba01be209f9fb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611188341000.tgz","fileCount":206,"unpackedSize":21101970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCMkACRA9TVsSAnZWagAAf0sQAIHGcyqU+mkj5GKaFSK/\nSiISx3+a3mpTmTufM8+8qPEPG+tCcbumbawN7u/x9NuDZIRlYpHYzHlYzieL\n4DOTXdguMswyYRdtlEBljsZDKvC9BwcppmDvGdjAfOzR6bqw2DfALudkkTdg\nNCjehZ4NgoWlw2g/8SeMpSIUoRCiTJgu7UsGlmIvxdi4ds9s+byxx/jCd9JQ\nuqwJ7GyVLGvCuK2jfuxo7GUS0HkuXnwp3mrnjle6pw5Y9knuLXMlBOvCRhfS\nmFO/yRVZSM4amjWPnMVy5Cfis2zE/xRdUGT87CuQA4UA8wa7Y4+I8JDCqgE1\nfclYrQBbR0WzE6Z7LEKwwn3e1t/b3zno8oUIiKK8VAS1KiazDWsSuyAX8Heq\nXeeeYtaScJn9IJflQJ6fjW3nEMOLLKr9UhmJLB3HcUazngY5NVkl8WLNfF+X\n0RCjUEIQYd7PmxWj85w4hG8yzGcFqjMj6V/Ttq5MVADSMjOLsZAL2wijV/xw\nwG34BzBY2UfbeZf2chEijmSIZap60UpoJSv/OYeb5PdINTvGjw9BVkfk7OHR\nxIsCX/seJrTjGo3ouCqoV/q2wo+Y/A2O46xusR0/QF/yLiJ6IyisBuZjX2T+\n+gMonUoxi1u1RQqBl4e2ylsYwBFTVKfipPMK7DJI6/4dSKCRs1MZy73Bn8Sr\n7O9o\r\n=TYaL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfGMHqEW7EQNjjjczY7WCcLDKgU56qGlCws4RD/xjxNAIgRYlmquQzHFiO9ldvTcRwkg2KkL9oym+qaN75X5OliPE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611188341000_1611188478804_0.6683019678481894"},"_hasShrinkwrap":false},"1.9.0-next-1611198983000":{"name":"playwright","version":"1.9.0-next-1611198983000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611198983000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-N+vtZAJcuLdhlBhhxRgY9gEl1dDkO9ECkJk/6t0/ThxvTl0vjqWQgThQxbFk56X6ddUtlLnQ763pa7pyjPQ9qg==","shasum":"2f5f0f2eebfa488ee7d23bc907ba00346b5d1663","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611198983000.tgz","fileCount":206,"unpackedSize":21115456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCPKGCRA9TVsSAnZWagAAM94P/j66J1IxxJ4+gKjutfoN\nPekq6HNfiLV93qDHVLJ3FfGDElzhZ+LaFmPn/4L5PfLOiH7jUWCLFS70EfRh\nHZatZey9UBkShJIVwxotVemDM4KtR0V1DWaEik31nOgH7YOLi+6EiF4PZLNq\nSdfaj9/Sy6DNYXM1NcnxK+U0a7ScEnQ3qgXgjmSMBqpcVCBLZm4PpEdfYEQv\n03aWbv2uEn1NCjd64IJ0yvJ7NC5LtT7KsyB5oLny06UMtiRAsVU5tTM5kQ29\nTTSJI0O1H838NRU/2IiX68qKWXDKkCCGz89PjjExjQsBMGG174pHEmumzpUF\n7vxavVlnS5jxLhh/fZhGV5s+IV7S8gnETFmGQ1SJbHbUBxhi8GqjLfHTPYSr\n5/rAGe/bm4k8wpM4N3HgjrygGihM9+dLffDwif+QLyzK/DIbR+1o1ZTLJQL2\nq46PfDH1m3YnYF47ugy9sRb5b3y9kZR3TyX0Wf3k+JcnvRpii4uJxl/bLzbf\n66L3w0X+IepxQRTt2pbyIMEwZo/IlWBioZQN61Sp4q5VOXTPgitJC5UQMOvi\ntrZ+NxZPBJkw+5fqmOWs54faBS+lVUmemwjUQECbjrCvtzd22yKR+zfqzBeo\nGG84AtbZdoowoU+O6pk5V1JVqn24mNxcFUydjIeitfppHUrqwtESvkRE+OWy\nH6l9\r\n=8hVX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEpII/ZUFr4oNu8sjI37l2t2BeXwbJ2Pv8TTjNqfIZ/xAiAoFNPcMuL6ZWzqHts7QU36OaIfZUsCYUo4YTLydtmhzw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611198983000_1611199109719_0.06437537369295931"},"_hasShrinkwrap":false},"1.9.0-next-1611205589000":{"name":"playwright","version":"1.9.0-next-1611205589000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611205589000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/Y8jfdLSea7VHZ5BjUx3JRYs2CZ8W+QzfQ8GwVWgFZErfRhvbbwNHbQvGYHiEE93YAhQIZaS4Abz2HxULUXdDA==","shasum":"ebc56d5ad64f0a99b77e40ad24605bd531339046","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611205589000.tgz","fileCount":206,"unpackedSize":21115456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCQxmCRA9TVsSAnZWagAA6hgP/RrS4X97GUvFZ+pJapoT\nBBMQBC/+c2fC65VMaLZ1tI27Wp+KqKnNTvo3zHiAz3IgXEbAVMPRz2IqK7a5\nqgquk+GnnQUHJB9jCKG1wN6AOQ39lAF+uZ8vyzCo+xfzqg1mwMhofQ6XTJKK\nWOle2PSWuVTHc4m7UUO8j/S1AJC1DFm8ppDuCHn3rWwzA3KlN9ODBFAi9iR0\n7zq+nYKLrVBdm602Ps/OdvCUGOf4v07TinS0sM8QoDxyszgex2auZnPIXFK4\nrNRhnD9zqtkuUk05a61NZhuEPz00Dnog8m7wREQ4JI9fa/OCvRk1pL50PxOu\nNNklFbbN5QRgE1ZPrUXLj1vXdh9pBG7cYQ/sF0gGJLf9FGVDQJkU4cHcy/KG\nv6LOSqn9VUQtY+AhCFavyNA/+LbdyOVjJFlTI0fWvZtdBJlcrEXBk/WWjnBs\nBRUKE5vH9O2QDXcd+r2i0gfnzmKk8Gtt5qRuap0xBPOblVChwfetqrlErHaM\ncI2+reYbvSM4E7tD2hx9YnYrPwU5KPoiNoOPe10YoGamiShY83uG8WGWOyv9\npDnXT8+VNb23cYj5x/NrEdin04Vb0pdB6f8EbPDNyQpkGjh/LLrsgWobYEdu\nmB0pE1MUPbXhRZslLPK5dd+cGEOWtLtd9BqReyXJu36or/FY8xnDghlEyphn\noypK\r\n=qYCk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrT2OmRE/9YJmBQRkriUpTvu6JAAkIbFiiuvBl77isWwIgdlvjzOLin/G4K2zy1Zu2GbgSefO+NRbN1xuOt9tJcwU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611205589000_1611205733352_0.5319437952979558"},"_hasShrinkwrap":false},"1.9.0-next-1611233697000":{"name":"playwright","version":"1.9.0-next-1611233697000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611233697000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-oce/MgfehH+osB7dwNlAcdzzojZOknDGyhnWpGQq4dK79+ypCciG3grei9/1vhlCBn3huFCZ9OYl+yZn5pXgvA==","shasum":"10c8b2e0f81e5d8a3e69134a510925edd1246878","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611233697000.tgz","fileCount":206,"unpackedSize":21115443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCXomCRA9TVsSAnZWagAAMfMP/i8ckf6S8HFXTAm3mRuN\nys+88YSyBIw4ZfgCsD0Qo+waW/A18p0xAuBvAhDKHdkn0y8uya++LdDIJLAa\nF4Z9wKq1eyIkICY/iDT9g0tt/TD+/Cgds24Rb6Y9vvvtpxUk53t4FFNFkaKL\neIvMO5xLYAgDYr/Y3c3QgtRzvPyD3lfa66nOierrZ+TmYzriGpVkxD5gTUrB\nuJhgmTJ9BiXyhOfGJOfGCruphAVM8swqUZsPaCZJk+zHu/6a7o9NYLk2mAtR\nh4cRLn94PsM6HJLVm0w0RSYXzq3uAaZhu80aZal/MXKQYDJcEtD1SM6HqQqO\n2on/zwfP7aiYuf3c2BW6SLLNqQ5spf+cIgjHTSeksuOXWOoyddd/pOgUrmOA\nTrm6NoxW+iwmkwksTR6RVSJge1LzXGG7trbhLS3yZk0wpOkthtHMRlO+jbJd\nYUGXyYX8ms8perTcYTonTc/yFue41X14NxoNwyZ2G5Q5VghykIcIXPO7IlQW\n8uoyEnxVzJTghSh5yZzLncZmuTdYDdhDB2yCLGN+N2m4Aekxfhlys1SjFvAF\nNa9kxURKkUT951UIhTnwD9DN18s+rTCqaYnmSFJOYY/TgvWQLfETcI6w8Ma8\n3oEmFJs2dH5doFJF70WZ9g4eFE/qHTg24IVTmTbmQ1Au3GnDuMq8D497MX1G\ntbqS\r\n=urVX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbc/4HMJjmDsVWt8ZolG47sNfeSWRH9cbeFsyG4G+dCQIhAI7p3kJEam0LTGay//wgDqKn0aJLIPYKC/8NGkadGH0q"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611233697000_1611233829346_0.35758999384467716"},"_hasShrinkwrap":false},"1.9.0-next-1611234741000":{"name":"playwright","version":"1.9.0-next-1611234741000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611234741000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-hGviOQqvZeeqkpdjouuQFROUMXeFg1u7B0Sku24d5CbLL3e7fLAqiMCSb8qMhiAuyAKZOSp/5uM2pfj9vWvgXg==","shasum":"abee2bd6b09876441790bf1ee8324526639835f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611234741000.tgz","fileCount":206,"unpackedSize":21115443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCX5WCRA9TVsSAnZWagAAlAkQAJdL2NYFpRsCGufMhSuU\nNDNWUMLZ1Ea2oCiSovO4Xo8ZkEkILjsStAYpbCo4pOGskmCcYt88xIUctJ3X\nRZ/JX/BVFHDmklQbAd/qHbxpXS1Bp9MwPRvwlXudEKzp6CpBR3K0hJhMFi08\n0wq46FUIK8A9J6katRNT10Uqbq1W0GXeMuppyVd3QDTcB9jSpxCfZAAOrJhM\nDBGIoA4hWy3PV684EuG5yqRCFXpdMGgJtseUrPvtFJxWBK7MxXlkciso45cS\nDo0joxMfnrB1xwTbxhKkjmCNefytkOWfk77Pj/phgdxd6yYzL+keggqBSILc\nYyQCspdUBHIGEHsFtjIFklznVzRQ6vx+45R9DYSweyb7tCqek+3P3SdjpmSl\nKmKXLFGPZjsBIJrBlRN+qPeQ/qHx+OK8USyZWwlAgopsuPSZ7hQSebOiXkvi\nk9ftB7qVdnHOgkuZce9se9LNi8Al9PG71FQJbwEdHAMPli4T9DU8Dl+PPorh\nvkGQJvNBiRqCKg78e6hPA5ib/TPgg4lXa/JBBWrme2i+oqEtnS3u6BaYXNzf\nYOm5muWCQaEwAPAqghhJRshSvVu3R/KffkIcAjG/8kyL3+NiQFk4nVCD4mZl\n5Y3LcqRalWcJHxOlniadjD3Gyhu2oWJwWWFWHSEu07wTmaxm1+NM1Co5kOhw\n/tlT\r\n=xHPG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpMGwd6aOJsFimCaRsPnVIUABlC1b5GIWHrdVfFjekUwIhAIWHB1maMW1pc7+He2wveIEUJN7WN3SKxTMio6JoA6Mr"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611234741000_1611234901250_0.5168920297198321"},"_hasShrinkwrap":false},"1.9.0-next-1611246541000":{"name":"playwright","version":"1.9.0-next-1611246541000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611246541000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-tlhTapWVUbV8kNEDWkUJwTGC6fqgs23g4IemMCV+s+P7U3dSgdVI8d26VP3jVYUBls7Hc1pdal9NozOGRg0uLA==","shasum":"4d82265fbb1cd3f9bfeef22c94843c23d9b55acb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611246541000.tgz","fileCount":206,"unpackedSize":21111088,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCax1CRA9TVsSAnZWagAAinwP/jiaK/ldDrrNyxHN0pVq\njZTto2kHXGrzELHDe9AUfq41ITLOsaLE4daEiC2rpEpglspANWAndfQ1TRax\nrFWPMnxFL7KtLP4OhA7hkWJYfKvt5Ec8VyQRtjRZ4xPvC3QQV2SNNKKgFXvp\nitNxyUybottB3Mgg4ou2fEXbFsCQGAq8iIBmQ7x3yCBXytsMPlIPkUzMfkft\npsYPDyejcD0PAIpix4doJKk9YpRDpI7Z3ciyXUd8WAiR4vJHFtyCQz0wOsrb\ny9PYGpFmqE9amagluvgNaADwm+6p+eihprIXP5ZbTaIrdv0kiG4S03EuypG/\ndKR42iEVEdmCQhml+pPA/2T3wjdQdNfpZt98sJwy26e3wDLwxWHQ4YTvlx0d\nLRKtjKNbpsJj2sSncVDT6Ykk7kuQoPEpXFfvgxX6xQeAT2ClMg8IlR6MjpZv\n1PVPCGNEN9B7Dl8Qzi2BHhkk86RGXvV8weL2sRbJi2reL9Yu42nCBZ26vWuG\nU/raqzEdmtVDf4P65NfcnLzY7aI/E5fne1JMHGxMsgGjNe3R13hjVKg1UbB4\nkkS2AxgSUr1Rq5DkBqVWDPRw31JUl2JyHwlTS8oS6S3KFwwjHzPSStGkoJiU\n3mX7DTLatq8UvUL8t3g1wOq5eg9XDsVsfADXI2gfZrPCr6m0Ekfxx80zcmni\nySML\r\n=4imU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDX3vXjokZKwmKNM6W932jjGuwERq1FdFD/BGSHBQmpSwIhAPC9oFE7ec8ufNzpLMXvLJI/y9J5j2mTKWBDxjVTUfsV"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611246541000_1611246708762_0.31644533423561927"},"_hasShrinkwrap":false},"1.9.0-next-1611268520000":{"name":"playwright","version":"1.9.0-next-1611268520000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611268520000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rTPkxzW0BAOC3j27mXLQg3tfNmeu8ZQBGhY+nwa8gPumuCQnx3gn5faYXaz6FGdh4KpTba6CQqTRTwXQ836hnw==","shasum":"dd5086750ce5f7b6e7bb48c5bc1057c2ddacf6e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611268520000.tgz","fileCount":206,"unpackedSize":21101055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCgJcCRA9TVsSAnZWagAAE1YP/3luhyTQzdwMd7yaJdQy\nw7Nfo9nvofmFsVmTJadXVX6eUPAYC8gk+q1jP+/HDm5sFIgYAv8bkcQyCVtd\nD+XVlNGkEhyvARzJQUcNaSrGgz4yeBTrr/TdAuqYByyjb5eDmWuHh0ogfnnW\nNzazfGjlgU6LkshWUayZLARl6Me91PTyoEmqSI0V2WzCWks/dfiOdtoyicpk\nu8CGc2h+f8PIIlv/r7/kCnjUk4rtfu7trGC5A9xnumO9631yzdleJekBpwIB\nPDOR5XrhbCsZ10BOBo43QuwRKTOOHSiV1Zp80CBsoOLzM2x6cilO/qU5dQuq\nIqoQ/RtMaUUgpk8oiX2sOYr5rUe80bftrn4ht9GEoQtWUJdfVbpy9v8wdmma\nkKZge6obLGYZdAheUDioo9fHUQ+JZFbSTPAt+oo3Pp0MCHRD7VmNXGwXazmG\n5UHzP/M9SP6yETxLTLOR58m/oQYA3rCGmaiNAWnxqEP0tbKzYf437BiVDUUW\nRMIlh6k7EvDyLaMtXPe5cHijgoCy1Bj6lKmESYV6dyskJU7vd2LQUadTdqXS\nhQ8b/TRiECTDVMvbUyREFmPImjU+IGHBqpWL9z1Goc66QY7QsmjERpt5BTVp\npkxN6lFMK2Phu8Fp4V7BK0eVSJ9vbYrFbOrONwtCphRFxY8QcZgsNuehkwho\nfLUd\r\n=br4A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC7ItwB/yppvf1vy+eZwc+AV6R9kFKn7gMHfY8ZQjVNlAiEAwVJFTKfS6wIBSzqQTZovxHQH6UB1puIjqI+zGFTwcX0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611268520000_1611268699189_0.39352717505419976"},"_hasShrinkwrap":false},"1.9.0-next-1611276102000":{"name":"playwright","version":"1.9.0-next-1611276102000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611276102000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-6gGrHuHePS2uu4CL6f7DokDzZFO9LQBJ4pQDQ4W+7Z2KHAr60gz75TO3+d052CXUbLzZ+2eKKZtx1WK5jTB7Jw==","shasum":"fcb97b63bacf25d56cb3dc995d53a7c1f383b6a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611276102000.tgz","fileCount":206,"unpackedSize":21102211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCh/pCRA9TVsSAnZWagAAflQP/3RZIrcumzFQiSZVrCVJ\nw1DNu1+hzpm11I/ktC8czuEyMnKpth+1puOZVM+yjbgs9bA4PxGp0mZ3fiBW\nnHkLekhmk3hj8SX7IbKfnwfohdTNMmx7Zhp2e91qCrUu6vECTrZKAN4ylByk\n67e0KGpQycwXShVm6aygrMprt0SI3Gfl307WBHyYJ727Vhv3aRm2d+ho8nWg\nibfVHG6t/b0hLnNsaL/WiJD5Ew3YTbZPBkczv1p+9Kn48hDBT9723vSlx26s\nvIB3glJBAmqkcC1EDVPIveeJMebCDwu+6sT1JlavvT28ZroX7ZAHKxfXmC9p\nO7ejFuBGtZzYr93GctaWQKdeWPZBUmQcWppSsIV4BPU56gR1wGx1lNCy3WBG\nVuO+uw+sEKWe6ZnB9djXXwl2Ib37DygWAmmie6RtnKynEfNcDauh7Dm+GvaB\nVd2bGIKO4hHTdQunx122qYxukgR0B+ow5AgOBErjmoFAVSBviucUDVn1xJ+Y\nbUxFtGwi3ryxmmJF5lF67yQwNrXHJqVNdyfIu6UrzWK20iNz/W3g0SWaWpZM\nRp0amvPOnVGPi+0a0Y8s1qYFNa4HpAaZiZ0wFu37u0HtXuipKGJu9FMjXpZz\nv3CeFSpiuctChvJdYaxZJnFLntQRZIF04JqN2ONNNbl2CTIa4fI/5SvS2KEj\nW1jp\r\n=VZkc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF7KmlzCYOUkt7WvDPlUzQbGWjA0qGrbYipyJJMhE3a5AiEA+WZbBvrUji5VJ0j9BtV2m+EfkE9zQdgnbQ86SBrkHfw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611276102000_1611276264317_0.6919693641720845"},"_hasShrinkwrap":false},"1.9.0-next-1611278599000":{"name":"playwright","version":"1.9.0-next-1611278599000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611278599000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AfDE0XYp7/PZVmynD0awIDYxXmNTXDgrT/3h6uCxn5PpDlbqsbXlo8NuOd1zCIYktn4hmbWJ8rnkWhyA/b49Xg==","shasum":"187f93f37e3309a658f68db75126a163c5e1bc14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611278599000.tgz","fileCount":206,"unpackedSize":21102211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCim+CRA9TVsSAnZWagAAnJwP/3Mo5vq2/prcGCVmeAQD\nM5Uj/MCoWkBAexP0K3O0T4Ex6MxsT0aHQsxUqsMousSgI53jwOVF3QrRh+7L\noMf9r7Tv9G1e/gy2t94XYgTYwun6lWncA+uItZthJ8zTv43SssGhM1lEopFL\nxLDpRR5h1jJdvyi2Vke08R/7mbgH/wsonJBBtkmoCy62/9rGqs+4GztD6ErV\ntkEGOPaBoLOcE3Q9F3+7/TdmmYw9+aTKY9/s6Y6F2Z65PHzsO2Z5/BHc09O6\ncRUSZT8qFJKd14z35GkjHg7wB+j3MA+Q9MeaArBLeXqNsQlS0Ttt4/2dOsDv\n589JpbAopnQ1uK9IAUjKeXP14wxqK+qr2i4pGIXbW3K+dm6D7jOBOB/tuW/1\nYVLvbhD3ZfkVbo/szByZ13vUjKckj7znfugyA6Zn5iPQP3KIBiwREl1i/hvB\nmcE4SViFrNxHxLKyHj+wlb15Q6nK08oqD1iFK76/0kTHGCZMQWY6dxrWgEE6\napu2VtPcFKylgpeda3Un5ETo9PgI9IZlzFeamzQ9HO2DPdxpkd0I3JafKiah\nFPJSx9LTKNNBdwnCkqR/wZ4y//jM7VfOa418ndM+92LDkqTLjw9s2NdXAosG\ntzs0sJvn5qejBpC1mNUy4TPFt0F3lOoOKi2ruWKbigC7UoKltI+q42QCrtg8\n+Qvv\r\n=s15K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHVsRof8Ax109BfZcr05sjoqMwI2tRx2HNCpQTPwuHSAAiBGm7SdNhfv+alo0M+NJifqfSTUS00AP4ODRUVS8BJS4w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611278599000_1611278782193_0.9748425662285289"},"_hasShrinkwrap":false},"1.9.0-next-1611284432000":{"name":"playwright","version":"1.9.0-next-1611284432000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611284432000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-P0wZjHpqyFSoJO982RN4jrFwMKZOfxImQjUKhObchx2vO6frvrOZI1XCcL2HF3MUZ6S5oMRzlC0Y2D9VLwWiGA==","shasum":"2020dc13c8bda2bb4f7c1b6393ad6b2338164711","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611284432000.tgz","fileCount":205,"unpackedSize":21085424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCkCECRA9TVsSAnZWagAAdE4P/3yrWhAA0qNcW0czva3k\nM/Dup5z8XDyOC8uyVdtSdMcy3MPSJv2r9SyXOpT8nD0zh7ZgGw4+sVCLea2N\nTu3V9y5L7WBJalTW/j3kx1nymaVnV8BOYkMXGL6Xw83edi3O93MVAzHjqAE5\nzBNnY7JMS6Xwwj/SOWGH5H3eF6FNJ0ITc3OJ/J4Ftq21T28TXkBttn9O7x6Y\n6eGUValbm1Zsi/8XysJ40v2EmKEgasBBvPRvHzOkzNe3p4hLJsmMeFPes5jp\nCiBQApgY5+mkaKRubEnVxf0RuXD52YUSIT4bEn+uUSAuyipPhsl31SAUJosx\n8zlFzOmYmgd2ztJDoroefhRkTvi7Kax1Qmot8mqH5mkpleB+DRDTTp9edmgf\nRFYcwJcsry6Hg6Qj24i9g6Q5Pqb9dyQZBBtiPsY4P8KX0j2pKwDfL8Ji8TM6\nZK7aMqHn3tldySTiqBlEyySfDn93NRKu/VaN0pngrF5w7o14s74GNpkhNJZe\n0QZrAvvlT/gOnr1fTa1iVpbxzn8YIiqKz5UA3n1SfYGsoOa+QxGL8ZCNNPyp\nMYwCUFpMoMMnKDbGT0H2A47YzEfoWfdrHgvuQdyqGFbstARWoB0eHB2NaQk5\nh5qj0sp/O353UEkauvqT6U+na2GxR/tu9WEYTJoZPcBPDtqz9Upo6pNE5ZrP\nZ1/T\r\n=enAP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICD4+Ws6KvZyL1teUAmxsjS4J1165pmz3nvEpCfx0yIHAiBZ0i6+N14/oLvWV01wl6z15w59kiJXaitP/qGMpSc/lw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611284432000_1611284611678_0.5290345070520825"},"_hasShrinkwrap":false},"1.9.0-next-1611304060000":{"name":"playwright","version":"1.9.0-next-1611304060000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611304060000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-A6oy+lQqQI+fwdsnIKM1bte6WXWcmZ3zGXzhMa28ms9lDVsGD21+P1ZyNYx7EDquewI/Mez3kvhEQnTSLJg7YQ==","shasum":"358acadad382ce0128ea40742cdc0154e8f65f22","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611304060000.tgz","fileCount":205,"unpackedSize":21085424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCo0ICRA9TVsSAnZWagAA3zYP/0pxH1JcnGjBDS/ZgoNa\n/uMSrvHoBpmScAF8pjYDZsCAZRep6q3APJ6dC4MQd2mS3liPQqbwtjGOVDrm\n6Uv8rpEI7sYAS0gB48ftEmEp8AcBxpc94QE/PrasA6o96wrDT3KieWFn2B93\nID3XCcpFi98HBZ/7d3Hglg/M0iVmIl/pA0ZXSnxa77CnPebkVmCUBTRdv7Vo\nlZtlNyK01G3bmWl/0Z1354igUl7pEwckAeNxrHUKa7HNsmrXM+b4sULbgJFl\n9+VFfj8PKx4EmsQLOjKJ4gUURRAgvZgqzxv8LEPHHGHRUL7LLk/7JirPigkr\nebaFwWoceYZRUAstCuOM5ppmkNmkN9FqoiKFUaW5YYH8XQbN6LfmhM6EoGxl\nOyTRBop37kYr3JH/iyrL2HGGknrLxLHcG7N7QMbqx79xLNYTNF30vGNr8ZQG\n0J0meyRGuBoR145W3iRouD/nwc83EDPyDNpHCfgzBkaErYAuvw5Emn/3vz6M\n5QhjC9Ai817TLbbEGwn5vp57U4CJul9RYeqOc1jd/E9hlCZfOe19vkgpr+z9\nEVOcb1UHxzNgf655IDc1I5KO17TlB8gdgEHz7MdOBoEOrUgCGKAdPUglo0Zu\nk9dld+1tzVpow8s4N4Himx23wfJL6dYiZaZnLRnvZhk9LLlO2j32dU8IZz9r\n1z/z\r\n=rkDd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXIOwAvTnv0HkQtI8iwmGl517n1oOgWCqzpKerXiULOAIgAK7063515pKLkSLFSb4Ot7bsqAZv/4LgDBKGonlTkcA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611304060000_1611304199039_0.47227024737430234"},"_hasShrinkwrap":false},"1.9.0-next-1611304286000":{"name":"playwright","version":"1.9.0-next-1611304286000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611304286000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-MMUdOEYYxpe2To3OJj1aWEG7NF2WnTxy7ajvBIWVWWfYNQBpwONfv/9c8VO/Rqyk5nVHNzCP5iCK7gDG4pSUOQ==","shasum":"a778d80246bc80e96dda49e553e9b61acfa72e8f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611304286000.tgz","fileCount":205,"unpackedSize":21085424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCo5uCRA9TVsSAnZWagAAaiUP+wQcTPsgl0xATTHyuVzC\nLPG53n9bUd9NAxkWkMbyyfokKCSjwOG1JaiStmDXKOnW+tqHMNdC5Ise3uCr\nn1e4NxzvKcR0JggzcKy/5i2u/UaraWyPxiDjIsQc+LI5q/arh8Sl7Ug5rl9i\nHDhwcd6SqCnuIwW6BOW8twfr7krAnAmy5DOf++rk7p46TZFdHEGkzgRPcze1\nbJsHhZNzfnFyn20elolzxu86o/0KLNnayGhG5sf1g6cmHlLZRDOtClHri0NX\nLQDi6gLck17FjgoH37cKO0x6TXZP6/yPxr5/NFNq6V+JdOHadULEZK+EXPcQ\nnUORNMWpZrYclcxtu8GybjP/FWh8y8jwxKpK+ZwO6237SJXIGby3KgW281Gn\new/k/gz5Y6h6Mqw0G7/6r+FfJ23KiHnSUJCxWjgIdq9kOxcKbAKNNq10+Osi\nis9P+jwhtBfQAYaQAWMn5YX3LeJrS6t/dBQNAiqjCwBzgmyhQWr3Qu454Hh0\nSFdPczaKUjcO9iGcLhdyHc0YO+ar3MBy4TF6ugiIXcidlQ9YszYNUfhNZxax\naDsrDZB+4UuT+JO6EM4OaIftoqjgfm5g/+wcpZHnkfidbpUt5v+A6/8gegj8\nOj/XiUM5fLXKcjF9rCBEs8pjT3x01Dbxgel72cjEaaogXbuSxE1OT7CyWb3c\nzW49\r\n=uYyw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLtvMyqC88irPF1/nezJmWtVS3qDHEDINB3l7WGgQzwwIgU8Borl5vIrfpQHX92eBlKV/WTQ7T3ADy+AgUBrZfmq8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611304286000_1611304557506_0.42205692061271893"},"_hasShrinkwrap":false},"1.9.0-next-1611306392000":{"name":"playwright","version":"1.9.0-next-1611306392000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611306392000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wDJtAxm2C6R9AfplwoDdcbJWUJl6Gya1+BAq9ErPCy47pmakAbPMvyoHFrZBIS37+2Wc+MIZ01VImf3bLiEA7g==","shasum":"9490a38adc3e6437eedb85be6be27e8e5ced9b8a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611306392000.tgz","fileCount":205,"unpackedSize":21085424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCpZACRA9TVsSAnZWagAANJIQAI2HbAnpn+ypzvlVNeSV\n+mrs0I3BBsjHEf50mNuWXSqVioAIn2wmtNCD6wF8/6VHCtI/DnGUfXHE7VCE\nIAS5Qjtfs7wk0KGWMd4FZ47qC/3wNUc8L8n4C42f6s5eIkpiEJd+KGPxSQ/j\nYN58a+Qdfh7HhYHqTHU1PWDuV9+o5S4QtIU16J59KM5hnEGRDqEFV/JkzmYn\nS1JZ5LJ7yi9+3B9Xhw9QqDBCoah9peafOIFlvTElEkMpQnV96/VQGsU9+n6A\nx8OspNSDDtmXKGmOYM30rFEMRTPY+IyMsHuvywYUGpgXJ72vZRob9SGFypo7\npqM8M+JGBvK2GcM1zX6B/q8qSSfq6eaDcGDKU/8PITH8g8cWkfW2n8fm0RLW\nElHemBgkqVf81EEcy+fKXFtr6afRi24+mqrVxK2Ez9oWmp0fXkOGJI1SeqS2\nLssylO00lX2mQHmBRMfRlmZvBu+hkfFOH8Hyxd8CHRntqlOnkc7FUb9pGs6Y\nzZe7CtzUnDke/ku3Nqgl6Anl5TbfkoHFu+eowMhvsijXG6vfyUiQrYUrQJ8k\napjIyXLtE2EiJv8DB+9zHt6YOvGnaaNo52bUZ2dztsI4oHIsi/RQnAE87bCx\n+soBRMEyg6cQAMOTusHD01/ZaeqvBx25nKKYDMXWubXcrK/cLa3iW4qhRWuN\n8LYv\r\n=Oj6f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICoxufR3NvqKgweQQpx/m4IvCPxx1Oc5QqevtQs3bueOAiB1E8HJG/bP4QmCiG71L0jangxsScXORrpPvB1//nnuog=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611306392000_1611306559793_0.06233957106988486"},"_hasShrinkwrap":false},"1.9.0-next-1611307591000":{"name":"playwright","version":"1.9.0-next-1611307591000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611307591000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-N12NPX/egX+1+/Pq5HyyshEkfz0bJhht2YXhBhJJDZ2J75If/7TIa09FUsNiSA26Uo5O7cmJhPdpTwX20UKY2g==","shasum":"a7e638b494dc3d0c1d3bcf45e913109c7d5be79b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611307591000.tgz","fileCount":205,"unpackedSize":21085424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCpr5CRA9TVsSAnZWagAAKNYQAIcddXfa7J75UQZPdplA\nRpmSCVRWZ4AGr/rTPa4f04B6syacOcWFQ/lcrR5dZDzrZoAODDRa8TdZeSLN\nLkKAP06oWYvcFyDlfnkBV0f4ch4x6I88lYGEd7KPwxW0yCKaJ0kSkPIBGr3O\nD4gD5fL61zWsehPVxiQxBiuCP5stXs/ke70aEF5XmabjY2bKnoS26sqI18RA\nYi2I90q5e16K0ZztJTaiSgcA4m/GQ8uUwm5HpQaaOxCznlw63uPFgESIL+JJ\n6t6+XJQRLsutLGnr3Flcn0gs9xVDx0uV5PEpI+QnmG2JqLt/T6OnSMgGj4/k\nuCE456icY6BBBHsk7OP4iM6aFQ+yww244LOtlodytCViA+kjWzIKZZW2LpWN\nsWlphamz9kaP2m63lmE4PJmzN22ShNFNRLmvp5dOilw6rBSheoGoB7HsMVlJ\nb8PqJi+SCEj41l5ZwDBe1UEGQHIvWybzMBEIDBWtUE9qeRJff+JsVr4zfxBw\n/ji/ZaUmsVYB+DhtPz8eaa93Mb5Mr3VlSUzTFoF4lZFJVcQrcsJinmrJi0+D\namcy9mYfznoK9aOEuJfKQME7cJ2cMbvQKDAAH98DulAtqfp7zJ0c5/ffO9sN\nvnqK7ahTaOXzvWOoAUMkSe81SpXsKkMjGOdUG51bFftK6SaIAGUEJInQ3AeP\n20rL\r\n=K8AD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDb/IwSvu+I8bvBH6CFmpaBHy+rx6gD/7nop5vFOapWjAiEA4EMjoArjPdXzNh+w7I1LdW0iepayGSKUjTbac3YDLvM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611307591000_1611307768820_0.6792528982857571"},"_hasShrinkwrap":false},"1.9.0-next-1611308472000":{"name":"playwright","version":"1.9.0-next-1611308472000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611308472000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/R42Df3FpoFsnsGdyyLTpE8w5NsNa/I5pdbLz59/gtoILyvU6RM28FPxqlBXbZ7VYgDvtRFkWygXwbFH7O99lg==","shasum":"9987c3cd06c5fcb261c55de249daa17e7c6b23cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611308472000.tgz","fileCount":205,"unpackedSize":21085424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCp5gCRA9TVsSAnZWagAAmP8P/19CklyBQ9mMv+lMHmOM\n1B1R98h4es/2j8VzDDISxuDwZDCseX9u8DCYWmTtsdzasE9CC0KkikqAItfa\nuw4ONwzAT3LHrH2AvV0cU9mDkfPF9phy74+/ZftlPdcWhNDid1+h2GK8Kovr\nMLqBT2dSVOGFDOWWiuSGUPHfeNeyblGgVvo4gzcP+a1qy+jsMyykdpBXFm6a\nGsKgRAAGk4t7UQkbOKPoAIxe031VFqUovq3au2TO09hVjazFfCCPoz/keogI\n+aASqg3DAxKAvsEA4E3S3PrjtuTDR32VWi1BYppOS79owY3hvA5da6qi2RSP\nCw0dN4WsRB4/m9OjKqOgeydJHNfF536f1M7sjduyk4+BQ+qtyqQhCjukH04F\n32G1rqtIttSu28+TGpWQfY6JfEbLe1lJ09i8MfxfEuVB8HaQNHRlRsKnyyeH\nHxlRx4543SwXtSnHVKn9BpbbiWxpSJjAWPuRwkWfVot1mhvh2fWAlo9iMYK7\nq9FCVpsPLhABVVWokW9PQmxF5/jE1ylGGp88MPHr7TrakfJ3IAP+dT4ZbwM1\nAu6Wwwweh1Iqm1TIk6dSIw/ZXw0eGUhgVjtBlblBUXgtoVT5u2G0KwEYpXPv\nIu3kTssSwu7boUiVAPIGarv+vhAVK4nAnzosvgAj2WwSPVHpU98tcz/T4Dwd\nbMBi\r\n=y59A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVvC9dMSeCjOcPbj+WuieI5CbCqnNZqU4qwrqL7OXEQAIgatCySfG5JfLZFvovXvotQRRMV2+lS5I5OtIPEtiTyRk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611308472000_1611308639854_0.8069409006324397"},"_hasShrinkwrap":false},"1.9.0-next-1611319644000":{"name":"playwright","version":"1.9.0-next-1611319644000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611319644000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1SL+u0y1CfWZ33xqXZh+RiWfzYBSrCORMph34512FzoiAEcyASlyr/bGgY6rq+cecRJGD9NfOHOKSaFJshusTw==","shasum":"7416e6bf1695bdec0812f46f7b9a712aa324455d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611319644000.tgz","fileCount":205,"unpackedSize":21085424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCsnrCRA9TVsSAnZWagAA+TUP/0jOlqJeXjSFwx6HVYLa\nTo3q1QccU2T0lKR3H51ue9wIzpricbp3CcssTRurLC1MU+GJWUKPWmfxJPrW\nPv+mTWCaIvNrSQ1ocd0YCshTQzXymOPW+LuHDfs6SbodUhbTx+He75no4FNN\n35yMxOsi4ZgXG69POm6Wy6TRVHr9elrFjacEtOfux80h5d1DUHMo3GmsA8xf\nwLnjDqA3pId2nuZeehsKdLzyxo5xTITgOgDI1em++CJgWtRRF04LxIop94i7\nLxZ2iF+GeJh1mVWTei2e5W460CLOzUp6JtjCOzbvewnBm5g2kDbrBNxSoUbH\nKKdCuQXvIWd1288TEak3fyK/WsYv+a0jQRXXu0ISvWep4KdkpQZ0xwPgrQu3\ns14ZIJbQF0sVdRDz+qYvfNz8UNoxSJDSJ3BNb6e/w8oL30SbyAL6AmfXdop3\nD2k2imbTstbG8RhumvElMHmvxOeCXUIdepeQCQ2iHCCzoY5Gr0YdQMt+IZ1D\npFHwsj+mfgV04hsge1rml+cqYlSj22/gCsQ6lnUoST06MzvLg2rHvIKRwR4A\nvX8WKuy5jl1/mOQfsNaOyKwgmyaLS+cxV+EbyKMaAzqYRMoRw0aHjSs7gFY0\ncDasTTVMifI25BYhB6aZC+dxhMlrEluhR74UpPLSbMnBXvpBHMg9L5B/qvsr\nD8Lh\r\n=x8jd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYLXzsO55Ertyy91Bi0yUL+C/NIVIFhb4pZazTllcliAiEA7VO3AIkh3/0iQhvMobIZge7j19Cc0WLPPCa38oJGmyg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611319644000_1611319786732_0.5011650904607743"},"_hasShrinkwrap":false},"1.9.0-next-1611327119000":{"name":"playwright","version":"1.9.0-next-1611327119000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611327119000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-cnLTc1OxNaHPm8rxdQEs6S5kmToafVFIBYPJHIIBc1Gm8SDYEZe0x/YfB6u92zfMdZrjvXjzodvN6+q4AAcY8g==","shasum":"e5581e4307fa18e0ee2c6671f464a12e23d2d4a1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611327119000.tgz","fileCount":205,"unpackedSize":21088786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCueKCRA9TVsSAnZWagAAnxUQAInS3MgX9i+QQEZLbfif\nz1yiG7xRd3xhzu/euBVr5YmQiv+/JOLd09MrprHr3qzEJKRuBXSUedBZXcRZ\nVCC6yj6IWjXZZw6+zGk7IWR9e/m5lZ2nkXZoruiebo2SEjQM46kZNaKTAKxf\niBhmWmLRqTJKE4ETu2913pMpKpoQyt9XmPZlo03y/ww/tiM/M7VJWMqG1NhS\nqSTG8dA3qMbRHiMn2mEZ1KNmZDXGtJu7zigsVDu1zS2W6mr4ZWyxgNahNT0s\n6NrNInTd5OuqWrJM4JFLwkC0Z6vhGtRuje+z8eu8svS/3F/V+9CtgAzqAr/s\nHcUd5gFjetIX0N+TzZ3HCp98bF4aLtHCIHVVe9lMstLiNuCXc3Nah2kEQx9A\nBYX98tQ4QKVvglNcoApqks5x4y9vMXSDV/I+oyaAMK+wGpY9nj9u+uRFNK3q\nKfDgv8awDrwBtw+ILZepwzHsYju3hv3Bgi8nGqi7Xf45LdUsSm295xHTaDHe\n7QshempU2yfFtp4qi9jmQo8kaDo2ySc49oOUfLn3rVhQLgVVwvzmrbKIpZlh\n6BgGnF2a7MeTBTohPe4jY9UlT55lj6DBy5tmpBs9baNwOq+e6pxTpxcaIf37\nnhKVYKIIqOQphSFqZb0cu50NX64ktOYoPC1hpQMWI0kFKu8Pz4v6pz6Aefd+\nVjnx\r\n=srAA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJQrHSk/ywcw6QKtnAKX158G505aZ07uALakb9kx64vAiA0TsNMmAuOku06n1wXI1lr4zBl4Z5nuhuiWngnfr7iyA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611327119000_1611327369497_0.5491765272722899"},"_hasShrinkwrap":false},"1.9.0-next-1611338311000":{"name":"playwright","version":"1.9.0-next-1611338311000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611338311000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-uesEVn8C3S4zht8BR1PpBM85wXwl8oJ3bv04iSJWJ7qS4aDa0s78PWvtwiy8PEhxC5yeyk3DFEZqOm3L8BfIQQ==","shasum":"8524739d427ad45ddd390ba5bf8511064592d567","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611338311000.tgz","fileCount":205,"unpackedSize":21089963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCxLrCRA9TVsSAnZWagAAM3MP+gL3YO4OZfKFI2RsfaJS\nPWeOiMQjKDOl4HZ+2tNjzV2FnsAbccK3bTl6YsCiAdhF6sWiNJRTVjM8StV/\nYNPmmO0Ib8LyCWTr8eJcUob/gjFO1oFWM5O0NBd6qxS3WbmFDjxvzMLUe4a2\nCUWSJ9l5jERzcmsaWaKMoXUfCcmMS3FQz6R/lwcktAJY6B1f/dioYB+6ddUs\nYw+tv/h1WRSgBTj6UvkEXP358GBmQQI0BIwuSgyWjmyS6KU4utdcw7RZbN/r\n3vIJoFobuf2fKFSjlhSWrihzOO5HuJyV9dFQI27oU9sbv8T8NlWmC18P6cVa\nligb0c5YFYHJwtvi6X6PvtxUyKzQCHYLkURpnC75Skq/tuK6QHoDiuNU51a4\nPQLr5xRc/HnBfBjhcTnjgxB5Tkvu3y7kG2HfZiYMXPxdyJ50Y2upTasEn7p0\nxdI2KDnJIlIygVfkcySH8px/UVuntmVxOxO2tBfDZpk3fpDQ4JlCpi259+a6\nBsxqxwAaUvDmq7qE0spxh/ttgKKIJWr1a/POoqWWpYTUmr7R+7T5JG3igR1Q\nEecA1H0zKalSbiO58aov0BDH+XeS7h/HHERMp6o93zAHbZgg4vpz+K9oVG4m\nH0E4jiyZJ0/8lD8oUblNfm/1HJ2aQc/ULEupV6GiCefd/O0EdmElkQec+Yoo\nsuTw\r\n=SZOK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtXtlPgqJfL/oiNUJ46UKWlb8nMM98IovZcmFyJxOVDAiEA5LlLKI2zGAHBk6PFRMfBP+Nzp7EoSTX2h2NPwzoPNMA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611338311000_1611338474360_0.4068901418213733"},"_hasShrinkwrap":false},"1.9.0-next-1611342560000":{"name":"playwright","version":"1.9.0-next-1611342560000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611342560000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-zMYUjX7BiFOeMipvt/M47ohw7uAajxQS6vpk1zH1JKxoqxQAckiipDg5FziZfxJFRf/uEloJKsPPhh/CFIoY1Q==","shasum":"6d4b839f2aeea62165bc53593ca2b23cce8d7927","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611342560000.tgz","fileCount":205,"unpackedSize":21089965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCyOYCRA9TVsSAnZWagAAZccP/jmaOrfxAMRxc4wWYmr+\nGSCEIBGjkse/QRB0+tmkwmEFmKozceVcKk1/lDTgEcBLQn3AsHkvtDOzJukV\ntBnYSq42guTot0TGlEpPuiSEmpcARb+yuhSgTBVg6FdRPSIWfwpIsHRV0OZz\nR3ryhw/0D2tN0vg1N0Xn7Tk+sbDuwYicy5mZQFnWVe1FaHWBgF9Xyhpk8SiA\nRlBBuRyHgx0w8SD/8XvB2CeCbszpd5ewwKJG5AnhCfion2G8ZyNbLjo1NEPe\n0VfXhVKIsN4Io8ciP4UPZZNg2ZWXSV0gR8595XN9yQiChKNmEjp/YHaULdzS\nbuIiH4RwzPo1Rqedk4YaHes0JZ1/s68nHyo9cWDe4uSfhkjru9iYAoHTqf40\n+wWL7cbYZOHOpNLjrjStcqY7k1CgqfpfFghnbjCg0ihocb2PZxNFh2szY9gw\nUPebDQVfUmkohD3XW1OLnbQ03Una9zG4o8g5ujiUi+Xac4n/h0h3g+lpgXGL\nvk5D3Vznch02/geWi2Cp1/VxzXjRnITk5z6lo9x12JwYh4frlCLgpE7k+xqm\nqwIx892bTKUHR2ltx1n+FibtKEzBxD+SNz/hYkJvAmTy81vtaExX0pdgCV+2\n1EIv8lbvYujlzUbLBQq/DdYKNBvH3RQ4XhHJJ6yytbWFtHoKlbzzfWwK2VMG\n1FPO\r\n=ci59\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNjXDKAoVZcoKxVXR13SajkSN8T6+LbFpnXYIl7NJOWAiEApcRsm+NGAUWZBZmCCRd7K0hw/AUnRsQyHkCg+2ozKSI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611342560000_1611342743777_0.04082558608610687"},"_hasShrinkwrap":false},"1.9.0-next-1611355284000":{"name":"playwright","version":"1.9.0-next-1611355284000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611355284000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-egz4CwcDSGtEggZnTE7GAowCcNd+I6Oqypz6YczQ2/b21Ah+lJ4Zj51l2zs90Wu5xagM82Jm95+srouV3q2eXA==","shasum":"5c799b08b2ac60c3fac70d25c8f2cac47cc00e95","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611355284000.tgz","fileCount":205,"unpackedSize":21089965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC1U4CRA9TVsSAnZWagAAQpkQAI1qrQTuBpnE27MK1LX9\n/hqPzN2sFh7UW00GHuvn3jeQzEn66LvJtaVe/12aKwDuaghmjRqa/V7kv4+t\nJDhdG4N9XOTf3PXoN93AgNDcEK9YEwWx6wXMCOm5HY1vKg6w++0k4c3P3htn\nvLk7Rkdhf/CoFB39czyGAiIUXxXZO+Q4KvnoXyt+R5w/Jzh9/KnTFXUo20LE\nbI06lbBIydpvMNs5kpBPGG1G/c6x4PX4mtqS34NaF5kR4QRs1hInKLVmKclS\nVtzEG5kCvOsFTvnHiOk9MvpOzox9t1sPDxKbQpPyB2piswBa7KVkPD+9jQ6x\nlj+tf1AKUjU/ILG5vaTa29fE6lfvg+pk/3pWAFWnxTrGjI87YAxGAdC2RIv/\n6dq4tzMrEJfnGvjgNyMjN1K5e6f4pva88rlB/AMbHROJUQy6oyVDc0tsHLlv\nnP9OkdqlrsjTqLHSQ0aQwXVi62+vEOkuuTCKc7wbvLtzsiTYVm38Jvt2s5ff\nZEtgvulMXsVx28G96QigzEXajCTWkcC77hErZeuOrohQRz/gwSldQV0CUYEx\n9Mn96yHNA+8Rb1MrsatUI34qWtS5pK32Qik3lBqYGWXk4uZpatSGikUIy74v\nEzA9whyUNQ+hykNFxb37l+Wnq6110jgssHlUoxQIuzvqijaifugvFM4GI42g\nBS75\r\n=zqFC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqy5rr6rWepJ3iqGam1dhVjLaEINfOGdbr5mCpkqK/LAIgUy++U5wru6jU+JY9JegIoHkZFwoPXEZKcaa/QHyOHpU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611355284000_1611355448008_0.16000856346330616"},"_hasShrinkwrap":false},"1.9.0-next-1611357839000":{"name":"playwright","version":"1.9.0-next-1611357839000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611357839000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fOJTXQQtqzyybsYcvSbw06G6Wk0dSZVb5GluvcL6z6+1WuqaZn1B7QBwqiTw2D2i9AhgycaUUjqNH4Lsjxd7Ow==","shasum":"6b4524bef1e5b0ac2623a779937a8ac7d5fff4b1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611357839000.tgz","fileCount":205,"unpackedSize":21089965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC18iCRA9TVsSAnZWagAA/rIP/2LGWc9o6TkeM4qvPqfe\nGjy0ViCEXSqHqh71D/cr0m7Zifiy7J5XXGuM4wzEP7cOXzbSPOoPu8aUuau0\nDly8kE3AVWY6v2fNGHv0oXs+qWJLWuD/gvSzlMbWLv6TJjbRyJGLRbb3kRMU\nRsFWja3Fwhtubh+bAe3LCvA7jWWdHWe8ENX2KMDrmKAP9XiJef+ZN3/f1uym\nTauyhnsuODE8Ma8EDqgCxfH2jlugwPUm77YJarVosmMH/12jBx3Shxsi57mt\nRVKIq14WTT4jTADL8OxjVOPvWVhpPQhP/uvE3M7PzLDbI/4NTH+PoAu7jXFl\nubaktMxJFT4I8lNBOBnx2R3blpDnCJWARcQdBVuI6nE6t/5j/eCXq28L+nZ3\nq5KbarqXFOXL8vMf/m8fiXAoMlLTI26QFMuBhfVzrmmYtGMUmpfadFuy5jck\nS9SPVQG4eEMtVc141suxk+QGXCAWuYFXs1aQj7SaNy79qYzhyGciBhEP2OcE\njXTBFNNfyX5I+mesmT6jqW4C83amUFG82enLgsNEjCsPMcTVQ48dPsWvTPVj\n7922VzW61N21R4EipHa43Hxr9ZKgG+KR3stXfrDeB/8EK6aM89qZyGkWmsrE\noBTB4qH1+26pOra8dpZ+2NFulYzOG+5bwWt4N44LqFTH7EMGLUGucwSxJsBp\nuMm/\r\n=QtIN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0v/y8i/JuD/+8ykl+PWhYs5tg1miXlgSjHQahT4mkaQIgepQ5xnG00Nrw2q7lcCsE0YfHGhKu4BdhItmxGynWeME="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611357839000_1611357985182_0.9979340897036413"},"_hasShrinkwrap":false},"1.9.0-next-1611359933000":{"name":"playwright","version":"1.9.0-next-1611359933000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611359933000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-eyagJ9sTC8eFy4AtwxR+ZfdzU+hh2iXxLHizkOkC3knovquUCrkCH3EJvUJP386s8WaPc1HwLuBLl9F5tM/4kQ==","shasum":"ba6380c04b609c9715eb46775289032d8b4dc62d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611359933000.tgz","fileCount":205,"unpackedSize":21090696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC2dnCRA9TVsSAnZWagAAjVYQAIlVqozXWkuSfS2Joqt9\nmSG+vOVA9us7aSrp87RdC//IxUz/WEcm6YDHv/uJA1Xswh9xyc8ro1NFZ/mc\neDDj5F5W+Ah4M5QiMjYq7PZEUVaqTbjZineNlP6JU+tbmYOIbH7aHZ1UYt3y\na+APYq5s2vFufkcVXuI9TI9eBbBqU/p4qvVofDSUD81vuDaqf81ZRe37j4BX\n4HfNg6FTr2fSBN2zCOHnK97fBEcWQ/XA7TqEcxmiaQCrM+QC2/wcSBwlPFU9\n9ToDUfVhYe6pqonUd5GFKWDMJWK6Oip5fCqUXj5yTGr21mwLNcUqUDIPLCy9\nkuUDHvXKquXA2mPhOVIr4jT2zcekUJ8aigvHDEEiaXIusdItJH4DnHMX40DS\nTlLCiAm81vRfIfLDIG1pG2pmigJivt8c22c6oxJjv7sW2bnRk652EYV/cJsq\nPDoW5asn4F1wkm9/Tmd7DUYASi+pVKXJ+129G0EemcbQa96WW6yU64FGzR6a\nBvQfxLT/ru/Szw564M40++rdJRgk9VVyyRA2sE0XJvf8L9sXao4pRT+9JQw4\nnQD6CEV3xhm2a1l96VpLFerTXcga4UiyzQn3Ye1oJ3N+ejdlZ4QAVeffeze3\nCPPZxMvPyiOMxG2Tuhrl36NfrFSaIu4rCNW7qtl28Px0UJRcFLQ2Au+JkJDr\n078t\r\n=qDZV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQHeyI1Udk4nJhb5HDv7af/Ux0CbLwKyC9vRGs6pQUgwIhAPLmrA0cM8+QmGJQKMEINhNc+uj9xvX6sCo84uKZCfVA"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611359933000_1611360102246_0.5168843751874141"},"_hasShrinkwrap":false},"1.9.0-next-1611360601000":{"name":"playwright","version":"1.9.0-next-1611360601000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611360601000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7KkOl+0saFyZ0X9RQ9PfACau1KN2COu356KZBO9xhLexgpEO7Ww/Kk5bWdSoPvEt0oOjLQbUZXYKpRFaliD/xw==","shasum":"58b007691bc6cf729de8e71d4b66aa1c1c0a77ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611360601000.tgz","fileCount":205,"unpackedSize":21090696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC2n+CRA9TVsSAnZWagAAbPAP/1q3wAlrMVVH79dTZDUE\nR2ogJEZSDLhgBc+QhE7e13yPwChB/6v1Rq82Ax39I17BXWYsLBMA8sJrqEvL\nh/LomkiWTv4JTr6LUCOHC3lMb0IqZP5SiDGdxerpSmNCg7S5BGJiAF+29G0C\nO1uuQ3NK4g4NmsUiMgE9v5QeaZ6MGE1Zdi1+fnpE/Ljj/HUndhbfaQjxrImF\nHIrBplhVBXETbVJ8LLMU9kuInMzkteusBCgQHLLTM4IYuXJb6Q2PM/kMmhRe\nAxFp/jj/9auWcSUAm+O/s7zmHD6BX2R1WlP92tV2c+IRpQjEVpvs69QwSIyR\n2YC3kRfSn+XbJw7h6gnRG9fi46zpTuueb8RqAMj6Ct7oNnaFnyCo2YLKecBf\nTlf7KAOTdaMwAzgmabjTMlsuUmYRD0/KpyH0SBORZohEAub8vHiA3B6uPBEH\nFxcuVOhd+Bqn9zg+J0uyeethV/Phxe9hQpwCoopDpXuh4oCcJx/TQg3AL824\nVNpMos2PbgXya4ba1lNVJ1VrT7xO5CTdwFfmydY8abXnbTW4xDLKqqVmwuA2\niIdx4tnYOd8Wyxt4u9o2ycdCWW0d3aM8HjbVKspmk1o5eX+cpVRTWvCJVzAS\nfjAQr+sxA+nvejLNQY6Dm0dQILDl8p8LXEIvMVIzsBrfqzxJpKciMRf/7XID\nYP7d\r\n=BQou\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaz96lfwtusQ84HvN6udjVnXY3yKTKw0i+sogKo1LNiwIhAKHyNWDfW51Opn3QTdIZGyRWCv8Gatsu3hzPCjmp7KBh"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611360601000_1611360765242_0.7029164482250136"},"_hasShrinkwrap":false},"1.9.0-next-1611364177000":{"name":"playwright","version":"1.9.0-next-1611364177000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611364177000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-qS1dVAdH6zXBqahWRwbNyUE9Wu41pfuWNThCz2nWy3GB7cocRgAxiLEwncU91iV7LRJG6tcvIH+u1eEbY9iY+A==","shasum":"40a3a058e96c2a98bbc9b127109d1ff93d367893","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611364177000.tgz","fileCount":205,"unpackedSize":21090696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC3hJCRA9TVsSAnZWagAAigwQAJmmeymO6uBNHkL4sERC\nQJCJvELPKpfJIg0BHSxn043aabt4bimeUoCW5/8Qi4+mgwDwhvdGdUxqJfhl\n2SoPr9jEN7mbklZxJXVBYTHu0AN3mOLpRmjMBqXYApJRRVSEnxC5G3YEfvjJ\njTm3rCFk00FdNIQEGtsUXqESKyW1CSkl/GXsimlW77wtc3wjP7M6vfuuDhaS\nC2D95t6+T9bGJySTwlsZxQwcJwEFHE1C9T0g1sjUnd58JuTYAPSGIWmf0mBN\nlvNPdzdAQsddB1RADOJUADSoXn5VFWN8wY504xtPNHcs980o2zv8blDF2ZqX\nZ3iT737L6QJ8UCLfVzBk7Dm2FkcFSL7RWtVw1yj8bIIKzocTpCXWrjaxMxAC\n6giN5Kx6sLqHWDDqf9WRlTCzFfW87gBqMXVhXY1pbkXEKaLp0nvOtD2f7wLK\nEsxQhcpvE6YIMDnMgegBDZFropKMur018EJ99geCTrxbr4M1sR85wg19hfvf\n4R/i3QPuCCMFRRhRvS+lTSymPzxD/S/f09j8jkkMq18Nqb9Er3XGKqem7RT6\npqe5XH3mti3Yd9Cz0Vu4EtCmZxiLotJdM0Y4RcEZBoQ54zBVlIcv0ykp6ts6\nkypzA59fWkwrYXP2Uu18V6h57AnCmhtIQNx4v+x6T4AopZ2klv8z/pQGtkgC\nLOAJ\r\n=Y56H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2jV06qo010cO4uVIx7kKzfOUHsdmVY01ZIz8uFFyapgIgRfKvZSWLnMi55LTRVzPcr6WLEL1363WGjRji8ojlONQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611364177000_1611364424340_0.1238527008217174"},"_hasShrinkwrap":false},"1.9.0-next-1611365280000":{"name":"playwright","version":"1.9.0-next-1611365280000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611365280000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-RVsZccnZY2+80bfnovrbIY4lIqDEPhxeUAaRpyis3lJbpTVwlH7BO9qIB80Myig/oFwu17thlFKMT7/9eiDSvw==","shasum":"dfd259d9993778340fefbc2e339eb6e8dc67c4ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611365280000.tgz","fileCount":205,"unpackedSize":21090798,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC3xICRA9TVsSAnZWagAAt7cP/1PLM8H68Yt8ZEwxElrp\nRRUeM3KCw3bjAeL7mUVsBSoWjxQz0hYGTARjLBiJmFcf4m00jnyXfwWbnZ5X\n6PLPaoJMCghfZDGdTZzOEK+X5PUK/BeA1yOZwN/He9FanEi+UjwMzgLM9TQG\nma/X5UFhe/46Gx2C/VgSsF+9aZiVbfx4Qe+Sn0if32JqUBzRdzMbY/ClqGvQ\ny66T0g7tAaeDkMrDZupgX87UinKF0GnEK7WURP+CY8LgPKX/QHMesuDsVMXp\n5DhK2EDuf4y9e0Vm6qV2GQLtTR5+qU+wo5uLSkX3RUiPn35igzcEqaNzUzYj\n9G4dkQ/ozP94xrkCusUqTN+J/ACvrswpjONfb53YD2TJ6B66KxIleQXygmjb\nnCbcxl/lLwTEXZk9yuvi2OcR99uTorFNmGyh2bT0uR3A6KJ4qrWAXiAMTLiv\nTh20OFawzFvP652qbEjQ6dOBM6QyvRCL+f9EVavnSfKcQGOKmZnkEcx+Z9WW\nm8RZ9p88J1A4Fvcl+3sfbDt6qRRnabU3+XkpPYioCKAyo63jmufdZV811Cvm\ndeOPTf28yF1rjJQm8YC2f338rDMR4Fk5WsZbceGmve2tFx/DI7O6adY6TyXM\nJI21yVl5C9XnH8qiN6Lfs5wrwXctqk9kz/dMEBKr/Y6Tut01L0CJ0y5Orm3E\nA5MY\r\n=wpRF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1/GrSutjmdpVw+2VAU/XpIaVo5GuHa+gSQt/6oratngIhALpsIVKSFbe8ft/ZbK/ptXN1TuQNU6NNYP9/fI+C6ou9"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611365280000_1611365446801_0.9951002397356092"},"_hasShrinkwrap":false},"1.9.0-next-1611370022000":{"name":"playwright","version":"1.9.0-next-1611370022000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611370022000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-A6guwjViSuAsAOB51hdBwtm8QBSk+p+ShVdHtmjym/00T2dRwGYJ/CtaNCMZ/u3rsjQLzA5Bi+bDLqX5s8nraw==","shasum":"765d05c4a48ee662668f73135624478ceee8f903","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611370022000.tgz","fileCount":205,"unpackedSize":21092807,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC464CRA9TVsSAnZWagAAxiQP/jU4vyrL6V8w56Hnr/UP\nJOo+Sf2tKOi5yvlcHNZuHF4MYo1gy9Jhw4hoxouGQ0IDmT48E3poapK6klru\nxl0d9w3K88zUWBeeOUa2WNXeft4ZnCaixOWlpNXgB14ZuS9+hoorX3mTaQra\nGt1hWy2vRu0Q9lqhnbtgQvgmOtD0m+ErLSaujrrOqthV5CQfPpry3DLbPKP6\nDzNVToBsdfcV+F6H/r7zjJ0wHdHnXoKyck9EJNBoZZJlEUZF+NMskQzm2132\nq/892NcZeAbY06gsndBfJYFIhFMxOa+HixRPiYb1vzX++pYuGIWos8bnf211\n7d/sX0P34gCSu/A74eiuBJ6tUmufSXccxkouhG+f+89UPC/44jENx8TKQvWy\naWB44fCwnedS8WN8e+6NSKELyQ/moppWZgulSYPE+MKcosZKNFE1rpHMCTns\nFDhljp/KIMqVQQaCe0EtpHjvbYNuAsZ7wvwn4eZ2ZJ3dUlNO+Qdg5Z9F7LPG\nCDRfTLqVn5ch/w/hrusg9asxPgR5j7/VvJnvuSSsL0Lz4/tRpdfDKvZgD3aq\niXOP7JuzK3Egm5rWlStVtkWALrieacUambfamz+4VpSBVYbwfwmTQVeDF0ut\nwS9s4CjiRe8gtgAIy1VoBWGQrGmtzU6XIYn+6AGrTua0T29Acddrt/1ETjur\n1Naf\r\n=6Qd5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXl9b5yvLrk6TqAd6HPgpAjEdClHazo2xkiywY+jbCjAIgC1Mr3OlL2lc4bMAL6bVJpNJxavBvM/C8UV+Pimaxjiw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611370022000_1611370167789_0.24582135277827022"},"_hasShrinkwrap":false},"1.9.0-next-1611506651000":{"name":"playwright","version":"1.9.0-next-1611506651000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611506651000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-anmNfB6TAZ8nifzgpMwPibUEqkiPm3Y6t4nqjwFxylEPMSQQRfAu0FcY9UTD8xRiWIFocg6sD69pSiu0D/WaDQ==","shasum":"d5616b1c41b687968329e755410f83e3a81f83bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611506651000.tgz","fileCount":207,"unpackedSize":21169848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDaSSCRA9TVsSAnZWagAAwF8P/R0p8IRONPYcMLCx96YP\nbepP8vaCtK8MIcNc31Od0mnn2lYvGXeIHSp3FphaeKqjd10C+TCz6TuXVhSm\nia9T8Mvxr18nHyxJelSkr3mV76xJaWu7vmaEa9C4V5b/aWX7nCVovpIYAhYR\nNLDPPqGaFwEIGLBXzX+o801mz/dOui+FJ6Ao8AAmDJYyTT0OHpgr4qTFv6vT\nlW+Q0Q92o9sLSF3SxrZsy3mhdppjZQpRp1j20jmID3zU6hziW3NHTLP/KkOd\nFAjZhvfLqYjqDiikmZsgDmPEYg5ukgierLp0nVyjfGeStX6FatIeEj7K1Xw3\nyp0Y720IkT9g3vLFc2lxcoNrYAWnLgpd966MXgPZQxNqtOdifLUMt+6FgL2Q\nQWmwrpry1L5CPZlkBszlwRIQaRWg1SElYBwcd58koVWIWq5HdjFABF3tTNwN\nSUy+uW+BRE3jxVWp80Ang9448cT2wdgfZoIsUonBZse6lJYj1RrmZoIcqiUl\n+3pQun9hszIYjyT6U/s+m6yJGlh9X1fvT8w2hImwqgAZPntfDimBlGiOOa3t\na3kbVjOIntcQtrMAd1lHIy2jDTG0FUc5gQX1or1LrB7JRm2Tmuy/mClM7GK1\niPiG+gRuv/3uUekORzpcOjToYgh7SICi7vOwtOIHRrPYl8hGEszGBf3ftABg\naP8q\r\n=fjWJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkKweu0SbNYJOLR+xWF7ZYazXxVp32L8exXTXT5eOzcQIhAKjr7vv6s+MASaY2LtTRVJgf58OeDOejqr6hmgAZ980A"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611506651000_1611506832281_0.6475482857728811"},"_hasShrinkwrap":false},"1.9.0-next-1611544879000":{"name":"playwright","version":"1.9.0-next-1611544879000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611544879000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-UuzS7k8YwGJaVepb0kdjtxeFy+eEOX++FNizqihlESHnxnkLQdyTDuRPfvWnH3TVQjo6Z37vcILH7o40OSKcIg==","shasum":"741b29dd8cb7a8ea1e5b52d48b3d61d327a0ae77","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611544879000.tgz","fileCount":210,"unpackedSize":21175199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDjnbCRA9TVsSAnZWagAAGI8P/2kVlcSAxIQDAP5Zhtkc\nb+ntXTAoGDDMCOtbe2QFEAMEwTM6mIJE6iHVrSQ7fAd4Eodb2HZoDqhfng30\n0MfiGdQey33DG1+IJQli/o6NOjjhf4MwPcRDC0bAypT3IfNwCtjQG9LA6hi4\nbBnW0KwdOW2tbAa/kmeTWHnY2aeqe1ulY0rTLb2Jju6q2sOuIsJ8S1Y6uIY8\nTQPkw6tUhV+9zudAp9nYGTGZ71KVJCVsPa7TpimFlIAYEuxje5889SRK3EkI\n/F18uyvO4NV8wTPQGkTDkrLTraSwbHZV5YdsvBltp3LwvqyBd3tKqkBbKs5Q\nXNv2PoR6s/1zCrC90bLxTIF/kUzgwUVrJ3AnaAomrGhLqotptMbvnQbjJEb0\nZ20JG+PGBYtJ4N4k0eQ2DIm1m+vSaZQj7cMGZBoFecQZiKLbTb7DlPopGMR9\njQyAaCRmdN3k6z86xdSdf04ydwe+fWibCTXGqSqTLzq9rYlqH2eddOkThNMf\nZSJylbYMVLtlddP9G+YmbW99asDQ0YzfhRpWfvIyc1xCI0b95eb5Bbwzh00r\nOZ69IpN8HiRswKRnXXfAPB4ELnms8tAq7O4+bI5XiEdDWucaYrQpoD/W7FlM\nOLBrleq+2rSe1KMnPsLOM7iBgQcSQzhsQgSmqsTzvjcuEEkXE93050iQCpX1\nR9rB\r\n=vvJL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXEjBGyilvrYYxkPJoh0eOiBLXzOJ8nd3AC+sggoa6fgIgP44Q9FDZNkQ5V7iqfPHdtbwGvpOgUQamCvwmIzaG2qA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611544879000_1611545050293_0.7336763885091198"},"_hasShrinkwrap":false},"1.9.0-next-1611589521000":{"name":"playwright","version":"1.9.0-next-1611589521000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611589521000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rA3i9ekgTw+O8izR6F+2Xk2EqOmUWryaTfXX8AHZA90Aq+PvVl4DobdaQRGY8PUN76r5elaQUra6T1gvmFobDw==","shasum":"b9297744e77f133cf2669a38e1b2b08b4e8191a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611589521000.tgz","fileCount":210,"unpackedSize":21176133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDugoCRA9TVsSAnZWagAABAAP/2BMnp1407tmbHZ964Hv\nORSaaRBdsRZl1pjk686/tCsPtTAE9o497h+qwcTV78ujZDV4leyCrmUu9yEs\nYF3BUbr+ym4teaohJn1U1EGRk39ylv1T4NrY96HJ/ClJVpoomxKz/Z/Ng3fB\nJtZcQVZUbhq3g9YhpHX+5OBgfqMZFSE1cSjvI8IKRqCdI3ndhTS4OoUGntGE\n+lA5HEPFe3QsKJq0EqGy0g4/E4njkRTeYkZsWv/sQ93drsWgeBYlOqBhiVmf\njE/ImrSQ7DuhpB81KCI6CVu618JNBkypOrxpha6SkS+CDTHu40tCL+S7H1QH\nbd8GHQHJgrNQpBWCp4etvQmNH7lEaCA1N10HVAMFQ4ZRozUE1lRZmFoeAwaK\nhJm11S0SA/yUXxUfYSJg2iofSaFpuC9dCoyb7uUhrInVEeh3QHdhMFLewl7I\nFUJWlNKpHaAc/Vd3oeioqlPWfyY+P+z+DQIP4JhfFWZ8ft9JxLzxg324htBZ\njEWOIAt5wKk3tkNQGilIXvjb/9wWdNADD25rvnNGXzxTrjkAfZ5TBLbu9/Mz\nbe0TNuvrx2CJeC5+mXeG1MhtCBHEywBp4Mj2Jg+Pg7xAZL5IFduYCIl9v5lY\nLo6G1PZ29MO7AEipA18oNzRoVmlZXURJ553t8KD3cc8R3YLNW2loM9lZfV3G\nUa0g\r\n=BtnQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNSL/64Q0eyu3MKEnZ8sGVf/1rDDiOSrKEsWAE3EhlGQIgek4EAKTI4s7Yho7XmiVNDz3K2Njj0mrUBe0gDOcdqD4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611589521000_1611589671643_0.8878082300259282"},"_hasShrinkwrap":false},"1.9.0-next-1611602828000":{"name":"playwright","version":"1.9.0-next-1611602828000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611602828000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AMKk7rLwQ1wRakS5cDW564vUUWNTz7PBeU7vqFayfzIBRY1LHxd158TXXGeUiTrya9vwGcPU5KrvU7jvEsiF9A==","shasum":"520b16a740766cc3ffe99539a5b6cec9c7857584","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611602828000.tgz","fileCount":210,"unpackedSize":21176133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDxxICRA9TVsSAnZWagAARcAP/iTfU3IEwUriqs7iHc3E\nwRVuybzzt2iOSxDb1Fug0YUP5KoOTaPQM9/d2Rtsr8KPWNbnqpagpOimBjqK\n4dsD9snF+EuuZEZIqTiKZp+Nl0BXrUUcdV/DbKO546wmbi3OhmpbgoCobFuF\nSS+NhfPQQdUVXC3YRP6b8KDXWYxLDdzpQohqw+t25QhUuXoAHSU2GZHqihCa\nh3rmUdianxOkTlDZ9cV7PPisnDYq1+dGyVcx88JCoQGJlmHIpraposBC9Z3g\nwwE54JFsE+k6ul7qEr/W+vIpFYb+PratKS/kz4mgsDDxR3HU2Bj0JRqe8Ozq\nj6Vwp0HdOFsR4ONsY43sqy127tBqxm7r1EVI60q9BOWg/lGqROtzoT2SR08g\n2AMert38EAe3KChO/irhSjAdCjsCkRsS3uhn8BPXzMTtwPPADCp3a3lQJr+x\nuLGZsafM8f1sfOY+nj3BiHUIvkYZj7337XzYRevjdvbOCP99URcfMNE5TTe/\n5Hp+uSr7ZVgRsEaEALo72QWvVaDUAEoMeaJa79CrfVoJT1yH1KcuJiy6eRKY\nsfP24+ahbKQrHby18eI6cvfw/WRmTrJYziXli9zdHAUsk69EHJyRSIdeXmqI\nimLP+8HfDi5/DrbLfyS/2s06M1fNN3iH5yZ+1TZHTT5WJBouOcAYJznRmAqk\nL3oF\r\n=dFpf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoI+2u0V2w4dQ1uDBCyQu5pe5elp4LnSf8oraJEPeCagIhAJTZJ8mqNE1jv/Laz885gzt3C12bkBN9D3TdWnS0XJ1m"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611602828000_1611603015538_0.0005876939840070428"},"_hasShrinkwrap":false},"1.9.0-next-1611610819000":{"name":"playwright","version":"1.9.0-next-1611610819000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611610819000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-CiYFGlTnXUtBhAOwaUxCBMxki7kLOH1Sne3K8NhER3c45LeF1mBNEXZDd9dHNjCTsLzX+xuSizbbCk2SAaw1qw==","shasum":"9b0996cfd01c0a578e7bc79ae43cfe40c1b1cfe7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611610819000.tgz","fileCount":210,"unpackedSize":21177626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDztWCRA9TVsSAnZWagAAttsP+wS1+nS0eXo4O7w9B3P2\nIrpLn9CZKxjgi4QvlKVaR53XkCt5qijjzZzo6bwfYvzHTnLXFtcROXkIyU5q\nDtpy9R/8ofJRrgA72ePKRoFnEzNSqCMzCjn+JDQhBzyxVYwU4BbbIhe6Inu5\n/hek5NbLHBs1PXlbieEYn1dYEf9EjJ8AH2TNXElOseGUAHbiRMSGF/GfG8qZ\nlTpiyPiqXDXbxvyTi37JVFctj3uSI4trGGf+ACvSNhYBLtE00pMVQ7am/E2x\nAlZn3B3l9cOlTnGAI7JyUdLm7GfYv5Ov9ySnuYAo2Fabbqj2Clr9ZhMkD/SC\n1JstGVBPBJjrrJYsVP6GmoPAqMBEIle/APv5qsUDB0Z7jX/VR0zZ8pwojBLK\nG4/lN66wGd38T5lAGp0vQkwoMoUFiT4LZkENCkBCeAh8MiBxM2h6BoNwem14\n7r9jV9P1zp5nKzYFvMQCm3ZkXBuKVkM+gEgcSYYLwpujtou0OjZkTaQErHfe\nLii2Fc/KEca34zKOgJ7YxXb1FEo+7C6Rni6TI80cDKw8VBeRqruy+iiBdBrU\nU0XZiUsksN94whISMBk+6XcY+3GCpKoFt7kMDtdQM44JPp5XdmIhrPwGI9DO\nRm8Djty9x/Ur/c7jTOAnubmmohKe6cfu+5jeke15wZf6ZBT/SOvhCYawX/Z+\nKUVk\r\n=5ivV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOBuWWZF2pU8Q2V98ZubbeBwfRLRVW9Cti0ogBmEL+/AIhANhzaTaRoBCZV6slDtJrPpENqPNHlpT5J8RO8xY4BFOI"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611610819000_1611610965897_0.11287973739486712"},"_hasShrinkwrap":false},"1.9.0-next-1611612136000":{"name":"playwright","version":"1.9.0-next-1611612136000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611612136000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-XJZZe+tN8k06rtB3n2xXK0UjPgrwZeFoD619U/iVM1jOIB5U5PJAFHy0QiS4f67cVnlxCRGu/RD8iz/S6TF11Q==","shasum":"6d0ce7ca8e84e825e096b924f0803c26a96f47ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611612136000.tgz","fileCount":210,"unpackedSize":21177626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD0CSCRA9TVsSAnZWagAAKokP/iWCSfMvAsankd7s41Go\nGBxXTtnswAR3EbDnLoC51T47mzqYNInihgCJn32KZ8mzt1bc5mNEA+E+Qc0Y\nvoxtRZsbXt39Yq8b6I1AcdUan9FxE/fAGRKixYO3As4ZRitO+Rd5j3Qu1M6y\nsnE4OXWCcCzdDAN7yv9eiUg89DX5otTWPpTvXIGshj7AZfDbzmYtJ0Y5chAh\nCs6B0etcq3H3Hgx8DbxXi/O8UUSZPzqmB8sy5Sr4PNQTNlRIurACx0wksS4t\nkTeyY7zNRL6UVS5LJuS26PjSfek0Sf5/Td/RwGcCcY0erYmQdXbCO0DktjK/\nVrh26vk7gMD+gV9kTVCxs+6grAoy32nPXEGwrzs0lMTh9eKNzWLJ5qFaqKiE\nLUbNwZmVadMNZ/B7ibIp/Ls4XrPXsv9ohNK3Bvw9LuBa9ZyhRcENOLqo1S0B\nOV1B0m1jT0+FrHwua01EZrfbPoHNSzXwlMiray3Wd+BpiM0sqWX4nak5dibk\nrjvV/L3lw3jFLC97qiGNvSIf6/pyC+dQcAbaKiv1QaKC1CtFMGlNRMkpROaT\nXIBGowoXb6IOQHu2HPshury80bdGQihcivrAmFwI0enJrvD2AajCRQIZYp/R\n9hdHhRjX5QKVNd0PE6AKWqaxFSpnyt6Cg1p3J3Tmvj/+aunbzv6rKjAoJUX7\nUX9o\r\n=qmAN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY1fBeRevIZ8Kun809G/+aIoZ4PWqaooLxXKH5M/QcFwIgVfnc+hJSxc6HSd6IC7RF2i76GakErnHsIBunKbmpkEM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611612136000_1611612305309_0.6915231253181595"},"_hasShrinkwrap":false},"1.9.0-next-1611613147000":{"name":"playwright","version":"1.9.0-next-1611613147000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611613147000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-uBX0j/fwQ+ZJ2BH+yALuS6pKWBk6D+MKfa4pzdyhZcQvPn3lLLQeL43f+LGLPNUhWBHke/dwRWzt4c++cavP5w==","shasum":"e13cc8a1e6a8c3f08eca56df3f55633ca41d22c9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611613147000.tgz","fileCount":210,"unpackedSize":21178211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD0RuCRA9TVsSAnZWagAAfMcP/RxOoVy/jIQ1YkNS2P6x\nRyf6scuUgzQqxCB5NXUkGuu5ERNwlZ3ibNa4IjeydbWLWD3X6uhc/NzxJbzT\ntZfk4Tl9/+LSNMQAJoqyKlgHKwNAHRiZDjtpvld1v1GB119qxCfwSG749Umj\nKxIm5LpFHEnAl0qoOxYPfby05nhEJYVSrxgkPTP/K3NjtzrPb2C7biFVpOX6\nxc6Q/oMHtO2fgJgoXtkVbLgR683kH9ERtsP2jvUkmE9RuXycP4mYwLGLSsHW\nUYBSmNHpDXY3d8DE10jQg13aODIe+ipMVu7SPKOPDmllXR6mqr5KiN2/1N4q\njB9vAYImxCqTJfI+Cu8wYvt/12KXDy0Mg8HCf7oiw9OSH8rAUGaDGOnpIw0k\nRn3dsIQH+8tZ9Xxu/DfuG/GYkCkIi0H6SZmdieKvvkqisAA691NoC3OvXu0r\n2WCCSTLfu+sPUlvrtVJLxW8j7PawPS0t2kqRhrZ9MpzJcmAW3T/fnAtsbcdt\n92VLCvbro0TJ6zbEPcUnMA3GKttB0Tmbv+cDYhmwIl6qeInSZFv6GkT8BnAp\nx1ts/KcfGROOrXbzjNhkJ7QM2CC8FBvcD3WIakgt9FzZPE66pts1iZJEyOE6\nH5Ah0++1ej2gV+JUeMoozumrkNhuEKvVaUUmVJoK5RXRmOh4B9jLalke7Kcp\n+bHa\r\n=3cda\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyA/UU2houn3mzvCkOgUbS7EdXxT4cSfnFj8Kq+90ZCAIgKbRIasGFgSeyPDwFHSPno7sqrZ9atk4Sylzg2g0gplk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611613147000_1611613293855_0.428828292207067"},"_hasShrinkwrap":false},"1.9.0-next-1611614991000":{"name":"playwright","version":"1.9.0-next-1611614991000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611614991000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-qRdyZq1DT1LsnNdWkmK26WSCXZJ+dav6KuIFqDtUl6Sw5v6mo4znsYioLx7tmYEtetd4Q8EBGH7gdwqQ34+Jdw==","shasum":"ff09a368e79eb9c428fc364f5d2b43f6c3bedde7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611614991000.tgz","fileCount":208,"unpackedSize":21205628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD0u5CRA9TVsSAnZWagAAl40P/jOoIN7Olg76EhxlJdZF\nkbybGkMBwof5GW5CDk7Y/uC3prE3367tHRZc/h4XB1e9iJUbniuiqJWTuV4K\nEkWZLN9bKfxK3TaA43n8kyLRpEGfokyyIczCDaqxejTWh4lmr18/gMuAkcN7\nLc5zUF3ek34JgprBfZ6+yvdCTTGEE7sbD6KBmBOkpCneGNwnE+P8kBUQnMS2\nFcEuUzlQujjxcyDEziFq7AtR+s4Iuma3Qk9bg4ppjJXC4kVra2AbwqquinbV\nSt/LEd2Kxpkw5L7/l49eSOUo7PrR4v2ZCVm754UXHqxpCC5qsFTwdYnGtjV0\niAOQ8pB6wTJSc1GA///ybXTX2w7WjMW05o52IR4fX41Qqs2rbhMFKVwrIvhs\nMBglyzPSRshSjR1PIQe4wl82hMkv4jj3jRMl0wXPAXVKlbH0NwEi0oPhnRoA\nyv6QnT87SabjZcZb9i9KMBlD/UZwSCX1aAtiRxBhG7LG8Enx75pFN3irqhru\nvYeuNgoamkkx1t8DkAJXCsVBJKzPQz/42ozGIPmAz4rHuqCsdNNfdPi7sO1d\n69c1snxdzdWbvCjCVZBSpDaxyukqtNHccA/n5QL4ZyNrPzMw0gcf3HXxbHLg\nuwM50uQvg+m1N6EFgFgu2yjk93vQnVx+FRn+H7fsnr5jL4y0/wDnnj6FKMtY\nCo3+\r\n=w3cH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnEJzLTC2GxWHY90uEw5X7IBc6h9HO5QxnaVMCxifovgIhAO3JYEThkh9P9phJv/NTlk8770WtPjAdB/spqHEvwLGm"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611614991000_1611615160725_0.9346007771033069"},"_hasShrinkwrap":false},"1.9.0-next-1611621453000":{"name":"playwright","version":"1.9.0-next-1611621453000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611621453000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-51EVBaOdbuyo1icCJ81AXvtg3ctPZ+3zBiUKT8tKH0Mm1KaaGcVLPXjbcZcetlIr/bRLURsOZBSHrArNliiiRA==","shasum":"15fbc4d814a1b8cda6b6cfa85304d17cdc5c378b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611621453000.tgz","fileCount":208,"unpackedSize":21204633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD2ZHCRA9TVsSAnZWagAAvhkQAJZocnLoOXOEwqTia5RY\ne3y110/5UeRYcAqST9U8QRNKb0+HABCnjLvPQFjaBW4Wo/xW6vWlb5aN9gwk\nGqjppzgXSPY+4g4i9VFXBpKE+zZmQK0oTiOa2tYWPiLgJmDstRbFA6D6XPT2\nXQfTt41ubvGQhXEUnSRe1+/vLtwLLZGYHC0UXRcpl04QzWX0qEslK36pFA/V\ni9+3HH0Z2PxbgtwCr3VuEY8kqQe70o73ZKMGyhDl2OQpPa9J56BB2Q76E3fe\nbe7NK3ptSFOtlyfS5T5E+up53Vct3Hod0QnypQn6UfYCmZ+Dw6kdMFjUph5V\nMCzcn6ivwLt0Li28SLkaL1ngeLs0AYKzZDGs4SrMI29M8LIP92EXkIZigRPn\nSJONsbGCPNzseXYfYWEjE6xDCshqf9oYklpIMh2RTCHl/PIEPBg2R0KSMGwb\nifH0YUjSNzb1Ek271GZ2Eu65cNc0ao6Fge8aOqXX2St7Oj4IqoUr9YH5KJoV\nLwoIJ+y1ODDJ05gz3FBBFmFGSSjGbiFIxxOgEzDlFYv0W/LFNLOoQ6VwfBOx\nXaFaqCCok6nnMI+I/XD2wOJg8WZjbhfjxpujI7czZY187Q5y9Ov0AsOVDJjS\n5rFcy1zCvI9TkcFofX9xlhlk0F+Jic55JFd/uKoKdt53NGYXOtKCwWMRb1Pp\nE4ou\r\n=XJM5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9jzVbp8QWM62S3p2AiDuBQh6U1KWoQdZ8SuHFuzg9wAIgfxFtlsGJvg4CPBncy7xWcbkNeX7Di9YM9na10ABsKPg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611621453000_1611621958538_0.32094603399152133"},"_hasShrinkwrap":false},"1.9.0-next-1611622427000":{"name":"playwright","version":"1.9.0-next-1611622427000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611622427000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-RpGg9z0LzdH4S6QuL5BJD1Z/+k7rBSi1bAXTAalLh3qjuDgR79gAoyJC8rxU76a4MaDG65E6HZ85RbTqugZIEA==","shasum":"a3fed45b3872f92307a39056b25ea5ccf23f064c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611622427000.tgz","fileCount":208,"unpackedSize":21204680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD2nsCRA9TVsSAnZWagAA30wP/i8iGuA/CBO59fDyOu/t\ngK3VAgn33CfhVaHwbbQhzH2oiw1fw3J8i1ZNy6tLe7KPIX7gkRCjPfcnxwnA\nq/R4W3eBkhinz+l+IqdcvGJep+CudABD4guaYphE7N7tt8NspyVB6PVb771H\nsUtkmOlH13+4tZyGDcE9b3s1lBO6Km3p5QaERR4sbeyK53z7p7p1xqzJutXj\nHOiQQVQRaB9DsvLoK2VZcvY2NY+T84qSGyHZHFi3oJTY2SFQUuS7QkGfiPh/\n5hhAHq3T8P48Iq1Mr46r1bZwsIdA80UhbXNEjdOkrAZr1lKuywr6njb8ba0P\nv6Nurf0ATbpWsVLHp+wAeok4xLF9KKIKKdrBr+o6C0Lzsz8v/c/Du+mXlCNh\nSMucaZeoOr8WLxfAzk5kHuRrDo0LT0iMFjny4O4U1usteSv2SWqMi6YhSfpn\nsHeVNvM4i8yTrQeVO+98+w1q8DuVxpEDCyOBLkDuHn52d2JEcno0lDyPJDxP\n4M3VPuMIxfvGuvfUNgYlCHljDkZ50fwFhk+7yez1PaA1ihjjGkz0I8OUM1o7\neZgueZ0beD7+2akb63xvzy+Cy2Pz5c1rgAu9xCHyjwI5BtKnCPiS2HMbdYie\nY5KOFAW/0Mc6YxAL2c+AnHyDq+/r7WkqRkBBhqQXPquxSKLnMPfSJETlJETs\nbpM5\r\n=IikW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZmO1fjmqTz8+SlZQ9vR28u4jZ/XokFpvmnIZ+6xaJIAiEAn44mpqe0sPsGqEMln/eS89ryx5sFW1vDlef/u/ZQ2JI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611622427000_1611622891651_0.37078837606951454"},"_hasShrinkwrap":false},"1.9.0-next-1611629086000":{"name":"playwright","version":"1.9.0-next-1611629086000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611629086000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/NNekBa4xf0LJryawOcTzT8uXIPP6kp9EIIn8mEWVy1NfCK990nPa/q1YDYZzCnOfZLlJXW1PzpvJa7JZlo3Hg==","shasum":"883b1fc679d10cd243c27369b7741b24212391db","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611629086000.tgz","fileCount":208,"unpackedSize":21212736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD4KxCRA9TVsSAnZWagAAO8cP/jO2Bk8Dot6c97bLspKt\n1q8cLv69c956BqNOuw3/zoWCvHC+CPlYgOAIhSuG1y2oZxb7w34yEGhUYW4f\nCj9YlkIbq24Y/2hEGxqz0N+PxXFrXKLVcQUlEAjmq5S78uqOpM9p9uFsN6yj\ndGKEY2PcGMBALRJP+Oav7Db/l7yVbpsdBUozBkmarv1Qs7EGrsd5IX17d321\ny4LIabytcka+/c0I4nCZ5a5lLIWFmJj+rlQ4aj3SwTtF1yeECj7/NjqmP/r9\nUTn1hqo4VHkwrnxYlTwW4eT7ibLww5lCRS98ilElQnyF+hDq4UMqSFdfoKjI\n0BHkcXhadW4D6oqodNUyhyvOpRbEcflF0X/FQegt7TTzNKQL/9SoNOJJPnn2\nnTpQCZ37HMS688wLgnFMXtFGNaq0Sl11k7NRagW9Yr+VJNXwVnomG/astPxC\nnxFk2Hnyl638fx2bXYXyLqf1ZKLI93BrX8QQAgZNMWE80S2LBHjlNDO05+WX\nyz9MIc03t9vL61E6vl+eGJMAdr0v7ThxZRAecpLNbeUGoLNW1BXkEl9kRZCi\nHzHzRLtoHFUDBup6jVGLkK9py0mhTKhqh/N1RyT9odKIBjQPZpwr2F17oxgU\nk/atCyc1a/tNa6n3xuCb5U7Al0udyHMObGB0o71Sr66981yX7sqNKeoGdZtt\nuXGz\r\n=mSX+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZ0B/Q9RwGu/803ZkDQR+y6W/rrJ0BbDV55iFzEJHNyAiEAoZPYZc9YBkCBE/Qgy5oa8JKomOZmM1sFtKzr/VLtc4M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611629086000_1611629232412_0.38468831501252465"},"_hasShrinkwrap":false},"1.9.0-next-1611682926000":{"name":"playwright","version":"1.9.0-next-1611682926000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611682926000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yLSp9rNjV6LkIV7qX6TstgD4SAstZbLQ7iyJXbFUtYYKIa8B8Nt6kIHjRhkUiaILVk454oxgjLczRhaDqNXMNQ==","shasum":"b2071dffdf8c373a9f87050e8d4ca4f0210dba2b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611682926000.tgz","fileCount":208,"unpackedSize":21214119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEFUVCRA9TVsSAnZWagAAvWYP/j1Yn62IO6nG+Q3+HZii\nhHNI/b+oI/tz2WGPgdz+t601ZMOhBM3JgqsuyEyIEOrVTu9fwJEybrCW3w9Y\ndCtnC12HZAaF1SowOi4MNVTvobyDJ2AkgTzXNPNuamziMja8TyNgUkDsznVw\nscQbK9RFpgLyOaf+tRNZvlavKD+pZ77u77tByjiEw7nqE+DjRKt7SZlKWT/s\ntgYlvLRhmgyBzQQ7tZVqass5zWYH3/SWNI9lCt0VpQE6q6Ye73e8NBZakkmF\niWZb3AQ3CeFnsvRZP0olGEB29ZbJU4ggPcddcZPfSLcDdsHIeqMQrP22FPou\nnOSaLWGouQubLzALMkXVHD1cpIYWrFK1A31gItWtTnQ1L+pVVnFi6+Zh+E1H\nCqUQo9gxouqz8T0d0jwbdLUGmAvV8yYOZYTwM9r6sIHe9Ha//oCak+POrGE0\nqR+Lzae1ZklHt8rUJC7MsAcDE/payqM56/1oNHVY4VSuldhJqYuOn4OX08Vz\n9IvfgfomcCLWAeVq8QEkCQOT7S4f7L9X0bdkaGYuvOX9kdW6og7MUfgb2SUb\noYiQut4/1OG5Y18VccqVeeqwIUwzxjzoKTOKh8Amy90vZtROJr3qU+D7A9Fp\nBhPCnjBta3+oBSMo2KgO0LhqjFuwRbq3GBiHcXQ40J2rh9aewxup9auE4kBx\nhefO\r\n=8qcc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsi/evdSndhg/SpB+5GriwfapAIXgwHlezXpDBdsQ5cgIhAPhvlRYrcnkPEOScmzt/qHr8yfyp3Ob0QvMZgHhpDP1f"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611682926000_1611683092767_0.7359780584963989"},"_hasShrinkwrap":false},"1.9.0-next-1611687965000":{"name":"playwright","version":"1.9.0-next-1611687965000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611687965000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-rXsfgzZogt0kqTKFDa7SmWztcfCkEe1zBKpb8YZvekMy6AmISkSY7FMALQMWG6o/ZWu0REAfClr1BcZPs2CTGA==","shasum":"5da3547f05c03794a537cb982165c21c0ec93c89","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611687965000.tgz","fileCount":208,"unpackedSize":21226965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEGi8CRA9TVsSAnZWagAAr8IP/2wfJaRW33dwxkt/C31V\n/58EzTmrHDkFTrxU5UWuca+FKDL3iA+s613vSo2kMUIdsPlgl3s7AectQatF\nYJpDg95Od7rhgBkRCN234tcAhMytG3QEwY4n5PfPca3wEESqLdPCkZ4XW/Kr\n8EQfP5R2hsRbiH3zjrlxbnulgN1MdCOChql9IabQ7orlr9QFB+qS/bueVinq\nFo85qlvgYIzpthC+LWe9/5pRzJioVuphs8SiyyRYBKaw45NrtjZI3DlRWwXx\nCmVF/jeM9M5uY7shQNTe3dnW7/l5ybmweTE7Oc4NkTQC4/xI4AOeLOQ1JzxY\nu0mpLFleeZztwScemwI9O0gQiEby2E+VDWMO8uzYzlHdCXT/9Oq/mpSJ8/ma\nV5xgEEG+Vd/40Yg9m9nmt//OFnASQAKnGEQFd5GkgaSJN1orqBGSYyLI8TE4\n6O2zqbuHNi42GVTUEzBxHGVbwQ9Ng+YR2+G4+r3ynS5itRW8DdEmpa02tYMf\nJ1bibQqc3NAGKIljziXF6ZPoJEa8fW2IIUbZivdn60x9W5UE241M9REQgWN2\npejrW/BpeH6Mbo7I4jhIgyqo7wgkn/uqEUsd2dcZg/CDzg9V0EmM0ODldezC\nUORoBq10Gxie1cPrmoE/Z2GfyUKZuJ6MOE4ObIXqkCDfgcjOnmOjaO6/gGfi\nutfi\r\n=4DzA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsbFYzSrRA+VimIrVfPTsSVN/ZUJI71gB1aQj2ZFgd5wIgOmKckHbxX/9vkIIraLReT6zrrIpkeiKmwwV1mXJY2Dw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611687965000_1611688123812_0.6101001818842002"},"_hasShrinkwrap":false},"1.9.0-next-1611702557000":{"name":"playwright","version":"1.9.0-next-1611702557000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611702557000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yS4x9R+rYGhqZE9NNQa53jEpXkk+6spzH+d+WoObwhRMe8K21RPTmBcbPuCqN1+advWcFgE7VrFsPZLj8SLUrA==","shasum":"bfcaccb3c71a6bee258e006789b3f05f8f1ddbdd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611702557000.tgz","fileCount":208,"unpackedSize":21229374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEKGrCRA9TVsSAnZWagAAoPUP/iRvL+ebmHDqD7nt3Bgr\naS6aCQzLINOi/0fLnOkDp3bZ8KR6x/S5WPoWAVOyat7l4Ubyn80ekjJpZMYr\nszzQ18z4iyFn+wQ9yuJ7v6rMZ4CU+R0QXEqysqwwH6ITNLuu5s/LA66/mV0T\n938p37gkdYIEPu3H/Ek+dBAA8ygzy716E/fDP9OHJUxXlLnly9Vb9X5IdwwO\nSgQXMXtCkD7YC6Ug9Z1NIyz1qASrH/T9OnnIFsvip0bRAMu0mfOezYBGKdd5\nTfL3dIQhd4/KIS0Tk6ttpXSInwd6QiO0SVUb0beHvhVwwHx7Jhxph48W4VpQ\nmbwAoFZVTo4H5vpdYd0YHYJ4LXWNghUU8bEBeteXsrfEK8/1M8exPW5svisa\nCfONK5SxaQy13nX5Zsu4pJnadoQ3530cwrEMW3UfiMQtgYFVThyVgQQOapjF\n+qvC1uhQPcQ9M0hfx6ORRgrzmzdxXu7Us/HAbgd5dquZ9Ij6GNvTm30EPpeL\nLk+7orsb2rdYYrbohocvTXwROq1jLbBp8m3lWvE/eYY0tQq9B7sEjpoCa6JU\nXayubqEydX08OQJwSErJwuB9V+UbodStQ8dU3UDj8yICvKk0G6X/V1h9aXwH\n9xOeK4p44YOd2Bw8EB9HVOMI/M0GNwSjV3n5k4Ob8Y2/pyCOQFfPvU3iomCP\ncN4K\r\n=1hJt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJfmaBn4un1vMdnWsFP+6HfLJyulmiVHWMnaljbo7oRAiAQ/SWD9MNk57m+igG4YYgYF+catrmiWbEEsB4KthrR8w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611702557000_1611702698894_0.48760034680832187"},"_hasShrinkwrap":false},"1.9.0-next-1611765755000":{"name":"playwright","version":"1.9.0-next-1611765755000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611765755000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-umqxGkPM2Ii+Jy2GrdzaQi18fliy61kzzTN+bcCIj0KfwOi61XIjkD7OeR8N4kMPjRSH5uq3BAaGz/42Vi0YOg==","shasum":"35ba84ea352e4a99ed50f054badd588c0160078a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611765755000.tgz","fileCount":208,"unpackedSize":21229374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEZiNCRA9TVsSAnZWagAAC3kP/0Q6FqyxcDwuG59nUHuZ\nYVI7gHK8nU8u20BLsQAsFTVcaSQzRLPivJypMF+q/nn4wx7um1Hj5hWKu6oz\nxx9Tp+Y3mqdOyN1+qwAeaCG40zmkYgOcHGqU6CyGzRsgLLr8I0y8LFrXpYZv\nRs0ZPHWDzsbesqX5yU01Ylt/c8SV9cX6dfo//dTtvOZnPqmgoK0u0HDew3iP\n3P46lmTuNjT7b3Yybd7vY8+4PDKw0IAT9HFAKs/dyt6rFFocT0JR7Y4uVKrR\nlud3C9UmqB9NOOrLE3WC2kmmjIuCsxrQDQ6DX7W3V1m0EpB1Lr+KjXFCFXJ9\nQ/0roPa+vl+/FCMQ2V+cmRKU1wQXnpUh56ilPkk860Go899TeJYOj9tFzUlY\nRpIsjGlNp9NEmOsEtB2rnh8LQIf8TrbNUK4hZ2saJhv58lkr4umF6tBH9noQ\n9D+x4zMtWmckiq8AzLXJlGLZ1X4w0JksYje4vD4TDX+7+P1tWnrMYnGXtvy2\n7KkGURj6OsxCNDKQqUfUyBAsTwPsuc8s0wTNqmNaiFk+0Pwz3Cw1AhHMzuVf\nr85ZRYb8ThdE59ZPerhH4svGJ4ypyFUHZ1NQclOKwDih1hP3HMFagTPxF5jv\n0J1gAp9Zr4I1ROdIBSvFrLCTWsOUE/9TGLpxnYP4aXwxiUnZhM8LZPfbsRa0\nmSJi\r\n=cXCI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDggFtHD5DOMSEOCDNQ5RVspb1jmdb9HmCcNSiey6ANbwIhAKvQ0MdCi/qv/wy8g/SbMJeNEGqZnzUeAPg8TzW/OaBu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611765755000_1611765900283_0.2776709846010146"},"_hasShrinkwrap":false},"1.9.0-next-1611766311000":{"name":"playwright","version":"1.9.0-next-1611766311000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611766311000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-PEjFtjO6do/faYAlMMjPRYujhBWz1oWGD2DFaQb5RTAdO8sZ7oDt391RKLQDcI48xO5gLOEgQ6kd7CTqXfrZWQ==","shasum":"6f455bf9db0b9b8fc2721d868e21c96a2194a380","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611766311000.tgz","fileCount":208,"unpackedSize":21229374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEZs+CRA9TVsSAnZWagAA9ugP/0/jDwOfnGIhMZnzx/Fb\n1BHWYmMtxO0fEBGwxwp59fUhMDOCdZvdnXOWF9KHmDBOSXLLiER0kPOmKdx0\nDgMKKSHPeSOUQbnxDEHJeX4vpJMxrHQ4UVlezqdgSaIFsi7NwVzyJKUcchby\nZtwFobdZa6CPh3SJi/ZR+zWKyqNAOhShHQS+uC1OG2GyINdm8FOQ6PVc21SG\nnBnkr/PzftUrcZfldS0cqIcO7s1q4J6JDXOlr+Xv+lv4TrBh1h8ckQdmJqMT\n/uihHx3ttWIl8I2NDqeghxKyRKv41JmFOTn3dQiFtBjwUGpY+MQCU7L88Op7\nxBoGemFGt2Ekwuf3dBlO9U+HmO3acn4RXInDEPPv0S9MWQb1wCm318S1z2zr\n0/VrjMG33f3z5O0Bc2AJIsVGd2kNw5waUmBJDWm4mhGoDL3O3YBZLXRqDfby\ntmZBLoototvmdKWY+3+m3XDlVFwjvi5c+rtwhWIMqgkFj1uuseF+iYhdmm9E\nzajxVNh/lIXTfdIKRD8fNrfmD6NQcO9oSHC7jDuA9dnxoQ41YrJw9dBJGXQM\nJOEd1irok5sBxmTfct/5gt4LWWHomGblGe8lP5nbofIOhPot7c4PwEQPnnhz\n7GrUOaHVq4Xn8ORZfTv9eqGIHC9FSCVXnxnx28d0YPzrb6TbWboxUKBdyWAJ\nWAKY\r\n=7at6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc6qxC9QEEZAm6CRcYFMOPdVnBm4rmkOTwddMXohHMlgIgQ15zSqyVfUQPsE1J8Rfx20ZTi/kWYeWbSbPnw5Al4f8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611766311000_1611766589348_0.6938968462080215"},"_hasShrinkwrap":false},"1.9.0-next-1611767131000":{"name":"playwright","version":"1.9.0-next-1611767131000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611767131000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Q1YKpAhLD2FZx06nBIkGqwEoda/wN6a1Lq3wWzI5fT76n6G/Q1tii7WG84T4iWwlfgGO0o2WJjXHfnog9nMZdQ==","shasum":"3f6e2fa76a487d25f2be532368fc1d79bdab9b1b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611767131000.tgz","fileCount":208,"unpackedSize":21229374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEZ5ACRA9TVsSAnZWagAA2WwQAJPBmobhLlT0jK4sUrBA\nqZvtyHuWutujpZ2qrTJ8MTJXqZ1FEmg6GId79I2mwmgn59R7iey/l/1YArvP\niBMvrcQODpkaCHUuuyjhpM85OQrro56C88AtLTAITEbETnMnNFcaevVY1+g9\nCsxPPdD2G1zthdGte5J3SUJjIFw6IhCEQpZWUfGoY9GEt2RcDJhhBhg54GDA\nxRGrC8fMJK2+6d42jDtHfXz9RNOH6+IXuuGQ7suvJ9R4Vvb19+UIqmFoIk2R\n0p+usBPoHlmDxn8H3KPasrGI8ICSDrgAzimhisq1aCNdF2x2lPvDHYRzJrYm\ndBRn2CjA+CYxNRxES+6ZiP27mnOOu2+lSx8DIIGcgfFGWV1yKCEvCI7O/lad\nLlszyi6R1UKBqLJGfZ4J8YDsyLhDgK24W1yA56EP40qrM9GO0u8oRVlpV739\nMExkdT+1FRfIjMfQx8MZuCFua92D3t8nGUxBR1gmXJuJUTHoRnBK6lMaBydl\nLVfzH7yalZkZd1EqNiV/Wjc5M2dAoXDauntIM67drAm+K2VX+FhlQzQUdmib\n8atEB19yGCk8dAdUqhxKWMpiNus5bSyK3RjWe3CP4dhfWxe+DfkOfvmQ3ZsF\n+oLgkxlXKF9Jyj/wPSj30tre98p3rlPhXf7RLrVvSghsIIniI1yTgRwlrHs/\nMC5K\r\n=D6p2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEj1EplcKHcC0f5U1dYu1d1r5LGtecChEkS9lHRFRbvSAiAUIHwz9zWHzZ1KWxpHE2fTDeR5X+s3z5Xloi3tsi9Cbg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611767131000_1611767359887_0.09142169270309441"},"_hasShrinkwrap":false},"1.9.0-next-1611770206000":{"name":"playwright","version":"1.9.0-next-1611770206000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611770206000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Wm4UJKg8e3OLsDNEm37PojOroNqHurFw0ENSkn8umlolO+1BW1PTSpyoRSSyuDFuC9WquEOF9LqG9B+Ol3hdow==","shasum":"6df437ea24e08e60c907ca5c444555fc99a4f728","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611770206000.tgz","fileCount":208,"unpackedSize":21229374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEaoTCRA9TVsSAnZWagAAhngP/AofptXfZ1qEvixgL8ah\ncVXK4JCTWO3tMbqplPp5Aaf15O1+C11Di7MHV+kUnVD79palsqHcP2maYmxY\np+mCABipyt1WmNFztRXL3oBQgT+TmLP+s4PI+iSLnktIgDkSt9JLcmD67EuQ\nOVp/p7dTt+nB5e4WYWTEk5eDnVDkkqSln5QIi3KCc8QuZr6uYKblk/M0/kxG\nAPJBGaHhKG2iicketGU7fvNLVSdS2Gg8DdPZjBlXtIS8pGPvKq6nNK7ckACP\n+7OWt87PQmiR3cHYPBL3gGtBWNXFwse06WuJsPZZH5HYrFH/4DkiEtNcIyzi\nVw+FwMiB1UCJDMIn4kNk5HcZj9hgN/66r5Xd6LCcf9GYkqd5fxu7qbQeKiBX\nq9VsaNgpy3n62JQN+OME51u2qTQiWm8L1uvdtwNzi/NMfopRyLBXTgx1GOIA\neKnyDLumu9uQ8CXNPDM4qxbPWOiElMRWVbL0It5CRt+smxKpIf6oaW9qxlkE\nFQVmUCN+RI4Plv7UR5RO8MaFIfghjR0n3RdlxcRNg8NmZd/gz3fl+J8C4ORu\n4Vqmo6sq3CFt+zT/4C4B9Kt5TH0mY3flO6fU37Tt0Sioy55EXRzyHWlyTkbw\n8zGTP5mCp8tMfMFbLf5ZvHjUD3SWrt4vv+mVDEy6Tw7q5MvxCEM84+t8YBYu\n29CL\r\n=LeQ/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEvzYEzz/gwMXJA5ifAoQfABmYotATRbaVqpPYvkFIJzAiEAg0oRDVxhlGxPsApzMQ+A6UMtpbljCwOSNSM8bFe2C24="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611770206000_1611770386987_0.21927684436722594"},"_hasShrinkwrap":false},"1.9.0-next-1611774665000":{"name":"playwright","version":"1.9.0-next-1611774665000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611774665000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-qEs8WMrxKlNnNWSpH0O2WoC2IIrguObUxh6wGc/S3ZTx3MZ79cn8t68ty/6HxAxXq//O+pQOyG6eAx4v+7IIuw==","shasum":"85855d4bb503825e49b20522432978d867a5286d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611774665000.tgz","fileCount":208,"unpackedSize":21236606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEbuDCRA9TVsSAnZWagAArUoP/i2GmdNIK1quJ/jfwYjm\n1WtAy8Kkjo0VSudRPuHmZeum6Zb4W22H8jda/FQDJe9mqLcqu61siW7ddWyR\nAb3alkhlp2E1+x0nNx5OBUg8A3Aw8BHbFUi3IjKplnpUpX87jCSZsMZsl72r\nUWF/M/IFzgTZ+m5tYrnHXohMmCvlez2wBFtkpf8KjEQz+90rhAx4llRml32c\nv2rdu3btKDTfiHFcYxp8QZcPPhYV2jeqRGiR5Zb8e2W5I1z111XpU5S5fkFz\n6uaEhbqHNGeetf5gz5B7JW8X4SsppAFh98K9hqOh5AXC/p4VBt32bZ8KhhYs\nzu9SG+5S8erd2NR8dJgBWBD/sZXvUbPq99CiPAXY9RFgTrgEX/P6R1Mvt5vU\n6AWRrQp5ZU47qi/4aixVeNc5b3TiuYRyUoAVEH+3C6vWJJF1VaR8AJGnJeAd\nhdQw6E68tqy/tsrcU0w0v/325eWbYz31k+FekuGGoEOacuhkwDFuCFkJDE60\n2EmbvxSEfXUvk/1SjMFrPAJ28WTdpOsJ7oTFVQTnRRmogHHwkmEzdZf4hL6x\nLMfpWWOh8IjQypsIddCBBSDOvRTNsFl0zctSPh+6UEfr0C1W4aJMXBKsIojJ\n2SkqO9Ajyw/RiEs8U9WleSJJzbvFcP2Gn1hfeZlM4ekpvw6SnfwuxNieFhAL\nOlHS\r\n=pk9y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTBlsPJdyve3dyBAnAXTzl7YvOLf2ocRaZTcTP3tgB2AiBoGi6+KXzwRGf3gQTiG7+ZcCWpRtHVZ5KiXRK6imVHPA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611774665000_1611774850794_0.2814044975321399"},"_hasShrinkwrap":false},"1.9.0-next-1611775894000":{"name":"playwright","version":"1.9.0-next-1611775894000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611775894000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-XOO4zXAj5lV+WoP87CcrErMnvZbKtndBvz1vlgmHFvOTGwacU8hEs99KPVQyoBZMVqduovWaneK/EwhUXI64UA==","shasum":"85629572079607746549aa8fe5541f68f68b2909","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611775894000.tgz","fileCount":208,"unpackedSize":21229374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEcClCRA9TVsSAnZWagAAJGwQAKUJhPhc5MZN4CEfkPez\nurcPaTzvOuZhYx8qaUJH1OrXCUGebYBXVr2M7ooZC+klvPkPKrj/HZppsHQm\nLPZqBDbXcfbl/rI9aeeJsV9DrG+nW/xKAbS13M1B+RlJJx5jyWjudV7St6X/\nqATnpZ1vS+0ZezQDo3bvWBELi2GHhCY2FRRcVcutr/6e5wD/8NLXIV2szfWQ\nvrtnjLWpCDDbZy5FQagD56/lgCkEJjWMEW9L2rGQLf9bSPWMaslypAHwXjjU\nYeT2CN5ERics552lbSCsEamrhjY+/XSkNccvpflwejy40AfIPqCpx0LTG+lL\nGazPJYnnw/8GqvZR4A3EBENAtJRU0W4jjjUwkLkoUuQYKz+12gEynJdxU9oi\nwygngIqVcbkBoze0K9v8+AVEOYMP+WsSd84JSdFCqfjncBlLgSW7sg9VnmeO\nzhfHad30ku9lxwfSuuf7i9AJjkDij2ZYkxH6g+O+/BfCCEl/B+Ua0sUoYjhN\nwDn4nyE0PEDlBYjDtJtt8imCSqWOov+2KI7vt1BDuy9sthio4oV9w1c/g2j0\niwJYqBwbFd9nxsoAsesEaM7zoqdXvKGjJBw4bEF8CVQsSqBQiwxLwl9nOQCx\njbnOjkFyg2tc5TlZHtw/ioaqUnqV1FVcnl5oM32lhM6D2w2hR+iRimwnzzjW\nliS9\r\n=yuWl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICMgOK6mTCpWyYYQpig5OzyMKVe202taCpmhwjnCsQvvAiEAqzdUGQ7e5rl4irbFS1s6FdOvlTuyIZif47pW5yH0iEo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611775894000_1611776164645_0.08819474414357531"},"_hasShrinkwrap":false},"1.9.0-next-1611782376000":{"name":"playwright","version":"1.9.0-next-1611782376000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611782376000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-wBfpP0beh12jMYaQoh7rwtdf+huMuLutwQq7HltJnHbqZEUER97UtBW6BRtwIv2hjg6FJMfXMT6G9++U/Ugg2w==","shasum":"3094c16942c922a5e8690dc456e6eedac5d4be91","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611782376000.tgz","fileCount":208,"unpackedSize":21230439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEdnhCRA9TVsSAnZWagAASKEP/3yYI/Ie8B9MrXM3Z01I\ndQUQFO96bH9wKheveor4ArukOir2/bBRSNSv+QOU5Rg5DkYxiy6T35T2UaEk\n2+4d7oIvDL3yE3es9X8iq+Ba+7SAFVcsBh5k/VAmPuYlRYbIbZuvQhf+bnsQ\nOMBERczkrFC9faR+7qW38c6H6eFmQoWt2rO+KdyPd4cLKuU1RRZIPK+a28Kb\nU4/Ow746o2z65S3BNiiw09M2QnHkj/FXNBT2+VycgcG4dhQBCgFW9jEGB0aZ\nScmyFBlxSSiH6NRMHK/jmqWFD5SySxtv1SZR2j6YO7cb3rOxYLluMRS/sSJo\nD3S32TmPg2HnjIi2DVzWfcmQgnCGHbWzg8MxXU5ulBRU0gjSAvR2xjiUyia8\n0o2cPGrfTLPXb9OrU5qYtMf2ACpRCCfwVdtjo47tYG8GQnu9ISkW5PjXxM2c\n9eg1+PHxV6pMjlKCxcuwCzboVBMLmL3ZpIjvGe7oKgaTcpudar6s48GXbZvx\nu2Cn7SSLVehYe5DBlVys/n7IJwjVC0ukfoad1lbVjjVutyGzVkTDaGvhuhVt\nrfLIsE3zQRXSzz3Sd+6hvSFD/ki/8UOi8ILAus8SZ3LGCGOU45/NxY2QsdcE\nRkA4eugJsajGjDTYmRfPWE5mEv4jDUnDVeeh5KNJzRQno0mjrEpoxQCEGa94\nR44/\r\n=MKqf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICx0PmulS+4TR4jWT14wBZgx0XV/ujmVB7a6X8mPlQ1iAiEAz+ey8ixYeaQQgnhv/gUkZ6CAHDpll4rt2KFDjlKfwWc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611782376000_1611782624854_0.7997129632374738"},"_hasShrinkwrap":false},"1.9.0-next-1611785977000":{"name":"playwright","version":"1.9.0-next-1611785977000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611785977000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fbOXvplON/SWuJeCgcL6NZzcNKlP4beBuHY12+YY1mTkT2sU0n231/0vBBAqN89TuN/syfVVlyOFeNEOBIo5tw==","shasum":"065d0318c6b788741d1a26db2e68eaba8c87ffa0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611785977000.tgz","fileCount":208,"unpackedSize":21228896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEeeqCRA9TVsSAnZWagAAmkAQAIISILhPZu+YKSSP/A3D\nuYDeXsJHRKpflxJ9n4v7KhS9LUiti3SKBl/FJHGmAPZx+r9UKKzeNLtRJ/Hw\n9fZeE2Vw1jpZm1dNbnP67ByBVy284ymWYTEQzM8tBKr+/nlBu6hDzm2sgEBO\nJsh/a1Lb8FfV8Di3ydYJEttVnJQoqPDGvtOLWXpxZoIbAGqxWghm7nRaxqY7\nyuF1aoXIy6j3v7XDz3vxK/hLCpBs+Ohqn3lyxqf6NFeGsjUdqMaOp27lDJ8w\n4HyVy61fqMa5AtVX3yZNzIO7pxG+Ej6GzrirfJF33y1GV4/9xD+2aK846mwT\npY5ijtrpSh/brXABfpcXURvuPVTV3a9LQZIPl065PjX+j0U3Ltxitrg3t2KH\n7D655S20IwyA9yLxGKmj1daSwS5DlgVsDln13inDUcEDAU1UK15Utc19Y0sZ\nk4S9WcXSFXxywAL1cOFg2bsiDGd2ImHd82i1XGAmoYXz6C9D131/gb8w8Nbi\nemv9TbWc+o9hWqM3rMTN1xq9H36JyNVrgGpsDY/oluRkA7Eh+rgJVNtC9Fh+\nmPTT/q+rjC6w8l2/zU6sU3zMhic3GV0TmZEEOnBw2Sct43BgY0NAFYv3v+Iq\ngZHYFeb+kOvm59SBKQV3+ztdwQQaoUfUFB49LOofrtxvkD6Vh5ShUGKQRIv2\nMbna\r\n=GfIR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4OHF4OwNTFnCkKcEVhykJchS25pEBPwILce1bHSVYZgIhAOCTB92Mvs6CEyY/51RnII3XfP+AYw5G5GjiDWBwwrOZ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611785977000_1611786153671_0.7242921466544792"},"_hasShrinkwrap":false},"1.9.0-next-1611791848000":{"name":"playwright","version":"1.9.0-next-1611791848000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611791848000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3zH8ugJOB5hBkrvKBXA8PK5virE11IIaf3r+Wx3SB8O577n7FLUm7qJ/ygfGV6jFs0xaMLACSzaKDV7KCE72NA==","shasum":"7c9d813749852c992a3738d1e73784fe98f6a7cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611791848000.tgz","fileCount":208,"unpackedSize":21229466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEf58CRA9TVsSAnZWagAAo1cP/1eba3USjNQxCipHwek5\ndJOMj3RTbqu0juz0RzYZSI6F2v3PhwS0+7nPNb7KobjSHJf/Xos2H9aQfs+P\nUPQeLyT2jPkkHuA2GjDqK7V92hoMZGKzdWo0j0GPVD//s0tYj6JKyFPJOwY7\nppmcuPArEngOO7iRjisDwvo4++R8LHJFysYXfS78JHLpYlDHFP9dvAKOw5Ji\no6OHTVoGinjgIdwBqf7koqR+mKCXWJYiKJUE8+NoSCd3t1OkO8GtDYOO530A\n3QOD3VPxVlVS7hvggr/jiaVzVHUsuq4OrFPJksqnSzl8kjpaR5qeZxuVZHV/\nqtKhxOcU0JA43qqpDyvwQsZJvo7hz/Pi8lgi21ERFVKAblY6TgGvTVN1zsRj\nGbdJE1UDGB4N31gISo/VDJTnYuwDrjiXiqR2I4vzD/HI5WfAEMH7KQFHwkQe\niiEt7ZovGLMNpe7YQbch19LDrrUPpW1pYzZfh2K77xlfI0XGP46zo+8/545Q\nPO9g1WPsfYhm9qf7ibIlSCTfDR0BlD5jq4GdKFd/61MkTL/jxOKzwRPHctWE\ns2Yk7cV+x5v2NdRHJQQnsSTzySKBarXpgJMRbROda56ejbeRlCysiJUc/Yf4\nBYDGGThLR8mQ9G5GCszqU2W1mtqrRPHkD2QWjD33WBRAxaf3MrEkGNI0es0Q\n9/+J\r\n=EZHr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYvIYI+1+peH2wfjXSVv/r6cNGJ52+oDqH2ISxpn+JPAiEAv36+AhWxx+BUdfWMoPiQYFws51GUqPy/7gA4ELK6QdA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611791848000_1611791996199_0.9260038280992993"},"_hasShrinkwrap":false},"1.9.0-next-1611793287000":{"name":"playwright","version":"1.9.0-next-1611793287000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611793287000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZsLCheFuvexJ3k7EEEvZsulgxnYfLSzmTd/Nr5yLm84Z7TrvgdkS91uhHHyAuPzqJaTOFcim9mfmsOkhMFCxBw==","shasum":"d56d3ce9a8055f78a43621a0d170529a0548f680","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611793287000.tgz","fileCount":208,"unpackedSize":21229466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEgQ7CRA9TVsSAnZWagAAc7UP/3X/v05fz4x9b8/DAMz2\nUKp52OmOBud7XloygYpVKFJ/kWh/izIcXuErdWDmlYOMaQOVjk7aZApqBoVC\nA9cNOWNuFUKFdCEmVP7bT9PprrGPpXgcpkiQ84Wz5N1eJl2uphio83v5MGxD\nMPwsQFhS5VfFkWNWdPpop3lPzvYJ5I2FgS4Dq2/FFAV8yXDpixg9QGLn71t6\nTN+Fy4EQiLSqsdqQtHpdoeWPbiEIkLhs5F9UXDb44Mj38imB/kybDauSVjqb\nsJD+1yYXz/RMRgiLEKPVCrndt1yevrSEqlSN2PYxCktcz30N4+m7YIlA+MI5\nQ4o1pXB27TNgr6I4W6IBHCk/IfkvMNXgFaU0lv4C/RRFed0YqXJ7nuwvZfIw\nQtfhbOluJr3ObUQMUM/wjS80/mWlQDXERDAL77Y39/9iEfWD60sNpZAATqMj\nSsrgi9Or4BnhMBcV2AQD8C1H2W0+kfCHY5DWWxQaBQWcCaUfr6p+qFvUy3Ne\ndWuBxhDP3sinBvo/1hZBrU70lPeO2hta8NFlIWFGUYZiz5jBa1Jwecr4HXtW\n67Wfh9MoVb6jnf/GVarmUN52GN0XBnmgUhQovejd8PVCX0a5L53XkHMfoNav\n/SGlLF7I8mIA930VcHT9t14lC4nSkgoK+MfCJ6yvA8KxghWuuSj+lZxh50IF\nTwNn\r\n=xUDy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACsgLgJJ00Eldl2cb5bN+JMfTmyOeXEztL/ox6T46ZuAiBgODhASfSQy0k+OaZ5zrBPCCK7SuTGn37TI/n8wHzAsg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611793287000_1611793466284_0.9786409733180452"},"_hasShrinkwrap":false},"1.9.0-next-1611795729000":{"name":"playwright","version":"1.9.0-next-1611795729000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611795729000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-tVfTKfukzXCCUwHPoIE8qBxzFjNTn2wkzwIyDA+YYTEPxa3HsZpo116v5srP8Dc2tzZR9rf/vIbNtJusfJya8g==","shasum":"376d61bda888709be89f031411172f726ee488ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611795729000.tgz","fileCount":209,"unpackedSize":21256918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEg3ECRA9TVsSAnZWagAAku8QAIQ859xogkdGrUBZDuCk\n82lBLEPMdEokuLYw+RMQtKFQsPV58BAR05Ygwuv3eGhZzhwlZQHXObFKp/NV\nEWV09YROWkXFcB7j6YyrnqBiQAmBcqx5r/WrIvrPsUCA3FB1a8mtcB99g82t\nMgbG6hXy2DbO77XrRbMEerExetV3Ty9x/XhnWvRuRGqFEkRmuG/JMQ0TveML\na3mLfioUvgdhEqnwn1rYmG1ThyVJPKypNK3C/CUYZQs/f1eaox+WItrGD5f+\nZoz4iUD68FvcoutJEFMIDvvu+5W0KW6sZJYv3jMc4Po8M87aO65IxLptrub7\nKrl0YF92XTGVkgdvDsXI062ikPnUgO+ShKwmz5uxCtNQK8ODha1Wo5R1ztOs\n5+xZCT6IYjkzRgDMpuwu1tdOiru172T/eBqidpCMBP8lUQJkXht3kRrtic0n\nwOGR6tpldD/uVb3/nG29q9pvM3arN7VHW+IueKjO8yH4CIO6lihNeky0csKz\nASnyjvHuNWtryF6zAF5Qwk2vUHPpC1vgqItvfgtF0am8wXreYStIC41AxneT\npb52YnRDwlepcjs7y06YkwFu4Kd4YGrzKX6XYDG1yE6Af8ChiTis78QzBiSn\ngvDbeu06MC1ATDzEsZxcvTnoj4Gl+zK/8X4zSRs9CRNTi7pkZDoQVs7pfVfL\noEFC\r\n=3dT7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAM1ehpGqD+pFpRd7kuPHh1r+r9YvX8LIN3EODY1DfG0AiEAlxMTtm//IHep5PVyPf64riMTNn4Mixbwb4RdBxr7VyU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611795729000_1611795907443_0.27457046985130185"},"_hasShrinkwrap":false},"1.9.0-next-1611798327000":{"name":"playwright","version":"1.9.0-next-1611798327000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611798327000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/O/HFFYkEn3YJL+3zNLeRdLjMnnMOii3h4ydJVNXOc9TeAhgmO+D86LqeTGOgyKBne8H3fqiyv7U5DhCAet2ng==","shasum":"82799da9ae2611769eaaf5723424cd2e2051c26b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611798327000.tgz","fileCount":209,"unpackedSize":21256986,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEhgACRA9TVsSAnZWagAAT8cQAJOt2Xl7t1FReMxdqvWa\n/Kzz1B7bTDVWp1a1Wwb4bO0YOWFemezAFJh1zgppNeDg1CoAlfiBiE1CJpyM\nCE1IXJKwOmdRA3Kmmw+3M3y58/Xo1hxQhlBTLwFdSWO1GzVUw5WfhHlmctoU\nYHNpJQe8OWcyiaKD32i/yd4eoOp3+RpKoFzLBcIPYKGrb//ZoAeoojyd+3Wl\nDUtAqBeLuPGcoQu1P+sXxFytLSnA+CiV8fESBgFRyJYuyX2kXk8F/QfQWVr4\nt/3SNZkT0Akqo+G88kCWU8Y/+P123HjHv3fCgcc5wbFpSbe/3qKJvUNKI53M\n4E8T6YhQBid50zIrUN0pueL3zEapcPwzj9ZsFHXsikdqw7XRjFu8vtXz5imt\nXSoGPcBBXyYw+ElXSFNislKN7WGG5mOBMNpvMp6R/xjbtGCk0I8J71AgJ0hf\nU+VWHi0abBAXqisw58k0ELVm5jNb6LqhCrnG4nSyD2JIA74Wi9VIU0NX5/Ci\nOqmTzFWRVSeN3m+4HRRaSlvpM8Ya4gh+na03MznQq93IekNP9bjt6E1g5Kxv\n58gEMZJNBE6qt8TmK9r3NIXL5/v8Dw3HY31qvzjFr1757nH3YXRlWEPSUQs+\nNDWQvt43Ug8Q4lAsQMrJB343lGyIwCgR0mcwBPzCcbxzp4KoUyjxBods/bLO\nQAtB\r\n=ciLj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICwPLWhMhgV/BaE1SJDajQSdzctjipfC6oAGKofQpMERAiBVcnewTHZKVDiLLcunXchp/ckiztZmQj2uNG+R9yt36g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611798327000_1611798527885_0.5913093926203863"},"_hasShrinkwrap":false},"1.9.0-next-1611805371000":{"name":"playwright","version":"1.9.0-next-1611805371000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611805371000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-S7Kb7d4zwfHWpaPE8sXztMgBhEFpddJsxYZn3CQrMc7PZE/Mmu9M4izAwIcEtT0GXmUBmpcuLdfHChyCswIapg==","shasum":"63a0cda91ea64408b2a64a5f5cc3badcf240083b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611805371000.tgz","fileCount":209,"unpackedSize":21266636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEjNyCRA9TVsSAnZWagAA8YYP/iRTGgOkzf+bi6S+VW94\nChp3psgOAYTRnLxz+ZvFL0NbxDpBCzu2JmvT3WGyA5UtngOXszqyFuOC6EKM\nk1mBBnUlItTu9S0OmUwbf7jkIXGbLKVThrFNiy3iPML5yfN60kZkVWrcZFZX\nuyZDBHklUgpycOuXHWPyiyTG0eQ8WUHKpUl4+n8RL6P86Mt3082ZIt6ZlLol\n7X6r7tXLq04Y9ixrtQqlPsuLz0Q31LucHUpETmW+3hKDRysvZ1vBXNEFHCcX\nh3W6SbNOyF+BXI/Itx+slyCkTAB1t3Oq5r7N4IYAA+OfvjtDWoYa8/FyTLCC\ngK0FsJzAA/9VUJUjFXAegky3Db4PBbF78LOycPvLE/DCmAP02OHC30OrKx1t\nZ8VBbTF1L0PrF1z+j468OFxNfCmsQI4Q71RIQhexRQfrTB90zYinEiRZXRHj\n5+zjl7MlPo3c27SyP5peLiWJv9dU/ELLSR8swHWIlMCrRf7nwTijQXj66Qcm\n44WWq4R4yYGw3SBpNsTEj+x3MwekpPuLDaRyEAeR7UJg/QN9YGzewX73PqEa\nss/1nZzVAZ1NiDjRbvqG5oXCUWKq++gWxI1i0vc5/SyE/+L15ZlRW+EW/YE+\nTpk6/bhqZh1bqqwzn5ghn/oD1f9Mbmlj1u45fmKwRNoUEdBeFQOLMOnh9kTC\nkFR9\r\n=t89/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx2uTpUwbiU265ANYDpHCiqFtvKZBypRVU9DZTU+1FLwIhAMzgfocaqoE8Mxb/PTDsOxrH00uq2k9WEmv3R0pU7WTd"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611805371000_1611805553580_0.551140763417626"},"_hasShrinkwrap":false},"1.9.0-next-1611815545000":{"name":"playwright","version":"1.9.0-next-1611815545000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611815545000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Ko6tRtTQ2EnR4zYiWTR3EGrG+1DhODQypG2WRlocTDx6IKde+9Ljz/w5Ud+bxdj+k9Qc7bRxIhP46cA8SwWWow==","shasum":"1fd1e77986f0f60b22c6cfa5148f516aa786355f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611815545000.tgz","fileCount":209,"unpackedSize":21263932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEl6TCRA9TVsSAnZWagAA4/gP/jC3tjdb+3NPey45x3Du\n15npd3WT4eGJ8sr3+KEYiZ/B/6qTYZ1gYyK/kZMRltB/jHQ0u7X55zcGouQm\nrfQmHY1pluJ5Tjw/TgCtzuFsnUgC+UX6CNhS/gDV4zc7UW2fFqIxWWYywSlz\nY2nv/9WqwLNhtfaCGBGrYRE02fYCA4aHCTY8h8ZetbOs+NX7N6ERVFDC19fR\nmcgfAVs4HoOXae3OV3miIiofWOnwLxlVjZ43RE3VSKmTZpBRJjWdvQQfudaU\nwD1h8S9oY7KzNE+QVDU1CW4PCzAV2voNnsPn7+q+0NCdAq5DhWskYIeHzJim\nTlPhhu3Z8iOfnzgP0UPYx2pUiKFCexfS5LjPRfNEWOlzgy9rGfVh8zXs/9CO\nUho4pDex7R7f/gmAYd7gcAOfwe1LNEEBAVTOz+NEgtlsvVc1gHVPRVxzS4Fj\n0yPlaCNz42EhGg3EQfnIzH7Wh1H4FRr4IRE1ZPrEMrSiEgZH49QHWfniUCH7\nhXfzGZxSKivu0igXjlxQsflQCdg5yQZt37MW4qp8jNuCpox+pkImxcG4BAn/\nTfnjuZKvbgLv6K2awQcY5qUPJAFcHqxhWtmkorPDKXhnbAbyg3ObHy/yPUCn\nhH5teak15vbF+HURfx9UJvFNgUxJaB5NvBDlvCd5J5ZmzzE5Waiyns3WyMOL\nSLRE\r\n=fw46\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA6tC33rsN4qlYNhvntMwccuAQC1ldIUymUlLenHAbIyAiA6qZBTIaZuEoJuJdlMY1nfpgMS10vMJHURsvKGwERyug=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611815545000_1611816594930_0.15540399511139746"},"_hasShrinkwrap":false},"1.8.0-1611821725000":{"name":"playwright","version":"1.8.0-1611821725000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-1611821725000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-WwEyKU5pHomNK5+gDg/913z83rRtV3j+pmmWX+10cEje5XB+5F6AcV8pwjP2IX/GwwFb9o+LYHx97dEbdipkjQ==","shasum":"91c92e4ebaf71683f2a3462322be53716d5e92d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-1611821725000.tgz","fileCount":206,"unpackedSize":21098916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEnMyCRA9TVsSAnZWagAAbSUQAI6g9leEf1uX23/jUWS9\nIw2uzGip8TNzBpH/Ki+bwd6HkmEFdNM1EJ78Uwg0/Vgu1m2FldJKrvifZnzT\nRpAq9D7EAEmJkp2bt+UHYeRXd/0lVJBJo19nyuZFpv8z4my0nutn3POcERSr\nEydsetgi3625Si4es2IjSlCjXUSoOwUepD9UM+B4cX4MU8f4W+rCwA8xQSIU\nc6B2rsfNzIoZCppawUMQs4dHVRIpf0rweUvXJOGJG2iCy/YYQEZhzOLGdYwt\nEtHWFR+vQFmemlveJQ0T8KE/C8eBjRe0XAFohwdC/AuwxmDe51xJlnJWCKf1\nR0o3JWmguUjCGy5PDQ9DRMq6CZ1L3tfEQmAzocXRgtB15IQ6xrAia15USyrV\nonsoDJ0a7fYFHCoKWnBnhGCyaCMdE5zaUXYLzCwlhUpMVWqUpFFQDQi+/spf\nKPH5dB/4M8eK4cWeAAhsB/EPfdI+Gu8Utmx0GkEhAesR0nTNijXian6CgJRj\nCrUdcOJqL309odICt1y9F6cAQT9Mba3JFKyTHJEfxzKpIxld+OPkNcBSIwVE\nU8owVkxjMj55Dtoc0HhSDNIWsa6lz5EicYcEAF2Ga8zqnDcREaOh53f7lXGv\n528YrKlUOOdY77oK+uYRFxurlcznTNLz6V/TMtTq8zwhwEjZ3XfltOuEQ01k\nTGhg\r\n=DQNu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGq9PsZ0jIKNOp+3wYNra0dGWx2SwK793QqjmyvxFfpDAiBrA+fdzE7CkJ72idvqEK9xXUPqE8vnOliLIVpefQoCmw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-1611821725000_1611821873403_0.6209397427434944"},"_hasShrinkwrap":false},"1.9.0-next-1611822019000":{"name":"playwright","version":"1.9.0-next-1611822019000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611822019000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-bv2Fo3lGsKoRPJD55TmmNHeXknxVz8oFk+G2jP2bDlyiUDsBufMKR9W5KgbDP6XPE7ksjrE6931Fgp4EPf82OQ==","shasum":"71c199556baf92ad6396b81dafb3a0c7b9b4d475","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611822019000.tgz","fileCount":209,"unpackedSize":21263932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEnRrCRA9TVsSAnZWagAAowAP/A6CEuzGVbT75/VgBgfv\nH+zhthW69OPaw77GBh+p1kZpNh80/TWwYqmRJBJ+hfP7oYy5vyi8pUMWL4TG\namxo7tyJK+/w1XNSWZ4IkvR/Ka/dbxM96xRCbg5Jx46cmocfJgoh2t4y7Yl1\nYD30IFV6GDAsA7gKB8JVl+uwmdjnnAwImCSOrezHt4J76J5Xl5rQraHxgXi3\nQtoujK08wMOJud+wMmQEoiT+uIPkIRyyurHR2eaSzIOawFzYwK3NB6xDyz1a\n3Z1q+3EKoTDtKFuUIUFnxv9+30G+/9vddswALRsgZiFxPglRqaItj8OMP+6H\n2V7YCBKGLRcCeSJNXsNBx/Pkor1x9+aW9of5rx4NKNaAWCIKiuuggYPB5b4n\ngpmDgQrEScluniVXW7sgmwahPkv8D+jLe1ggENRiOyWx24BBYRD9TKOdMxMF\nZnqXWDfO7me/ImNbYzHPuLMDF3yrLj9YPp0vCW0s2QrnVv87ot7AcVtrwzRd\nFyqZDz4tzriMM8kO+YTZNpggJjZ8LbH5FvslCIEZFSBgjFH0hoB3EV8LVLzZ\ngzbi/nP6QN951J61UINEHnb9pjC0hQjzael+7wGDzhoeA8QBO6/MrkiUSPF7\nmPbtSmHnTm+l94aYzd1VYFx0Gra8E/Q6Q50lDi71+vMGZftlIbtZkCF/Wqzl\n/I1I\r\n=5GFs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICn1zHiVkWFak7a7EivCeCnWZtg0GwbjhVtFzuyHlEUCAiEA0YJtei57+qZet/4MWWOjY1Nb8tCaQkhqjmkJ3kK0hGE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611822019000_1611822182163_0.6844114851902217"},"_hasShrinkwrap":false},"1.9.0-next-1611823116000":{"name":"playwright","version":"1.9.0-next-1611823116000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611823116000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-WtPMftOhRKtD6bn19xivE/c4FAKO0Y23Se9zQLDEybONiwSwUdyq45+RcGOMFeMZB3m42i/by+DOfjHClqMfkw==","shasum":"ca644a0cfe2523ad9d2e7ca5b36c8b7e0d427878","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611823116000.tgz","fileCount":209,"unpackedSize":21264497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEniaCRA9TVsSAnZWagAA0FAQAIEHWtI4DC+jay8ioeaJ\nm9j8w7aG3Awyh3TRQ5pZqZqBVIEU6NbyZINVxVNl8kHJKIvnCDXIikzVloDC\n3/VQPaFa5x1xoBGyYhyGD52mS1LIbsKYacqcKXAv0qHUUAAvvOVj7xhChiIQ\nlx8WDT9HByOVjnRv5BR5Ilm0iX7XSS3Gvl8HyoWcKxDwavZKxEPCiT5ekTUI\ndsKNKjgzxW3TSAC6w+0bTNAAUaIJCiacTz9uJgkUjbymn6BuHuzlpIXVCE07\nRotJ0/uGixaQAPhexBo2iAeWOcaGXZ24RBZar0Fq5NbG+f0RnhR2fr/gvhjm\nih+0wm7q8TzBlLlYj7W8k+/lpbFXCCJ1EraIalb6RxyDo63BIg26BC/EKgyo\nvejsQW7MfRbSG/nd9dsVtKyN4PUjoaInRAECsbMsI3kD6YeF22oo+LBXw5y+\nd6YZgDqxJDBNsyJcfsirY7foNR+19k7eJWRqV7m9QoepBjA4uotexDdP+Xld\nSnJ/vnIeyTgdjy8aHikh8T6/Fn45SfRiRmDwBjPIUASoAY0H0HOvExGUj9Qe\n4ZMC6oIG9AEXGX4LqOChPl8poZJYQCmiN6PA8fgPLgzsXGGB+6vMwix+22Xg\nAtD0kgKHhXTzBflb7ovpguc07e6z9ZBAH7j9WlGr2vRnwdS+gVJicKwPz1au\nRCoa\r\n=JAcs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqqpLvAEUf64xuhlSpO8ivIAZp1Ooqr72RngcmpbX52gIhALN4DVVxG20dCTHNj13OgwkriAx1alqXVY/zYersBEbO"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611823116000_1611823257450_0.3750145136489862"},"_hasShrinkwrap":false},"1.9.0-next-1611825540000":{"name":"playwright","version":"1.9.0-next-1611825540000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611825540000","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-pwyHwnWw5tOpSoqBgw/yxR2PDncrWaqsw7iqcWuC7guPw+aHjyDiLYfkat+sVhhgBWll3Ha5D6lhZiL+kU9veQ==","shasum":"5886c1d876f16f6570cb7b715b4cf45d416bc472","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611825540000.tgz","fileCount":209,"unpackedSize":21264497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEoI4CRA9TVsSAnZWagAAnmMP/00PO0Nlnp65OIIw9jAh\nl5USgFiBmFMLhDMkLxmJqLGHwMUnhOMlKRo8ysw/fKjKkezCIe618CuWwQvr\nCEyWlrPsumLegFs8tNPKF1i6aDdk1mFRyLP+5vT0FojhTf1CmjgcmeqIuhy+\nyt6e9cbnpMmw+a6FuMN8GtB2l+GzFcS2+QfDWbfTI/7l1EUbWnLzenCWM0dm\naotMJ6vKcVVKo1zh9tqqoAOMyBCJ+8pggQBZMNIS9gUfqGNp0kqu3Q2P2d4w\nanxna5mPMNPca7u0VTTl40nLMSTWqzACH1+b5o3NspsGYvx8yl/w6vVzqrXW\nIpOYARqS6GZqJOAgTOGhIIyMdeYLIWj0iz5vT6px9WRCD7tVpdFRh2LpwCoT\n76vtCj29GSaD9/bISBEGA9IKvZjqUKTCGGmzgsx2mcoLNBenhN+0zK1XGmqU\np0+NljPiMh0qXN16n9cZev37eTqLAZZjom9C4ZkI6znYTtvFKUIQhd7lqw7e\nqzdCyiPc2ycd2rqVC1gu3m9QX1Tsmd+RwHI6MeGTmlsByIisBmMlcTwavtEx\n82jBz0m54vzmox1h2HeCFqJ4sLpbh+vABjdz6taqp7VXshf2aep9f/Ih6wSI\nt1Z9zNc3g1jjV9eZJdYJBSagsNz2a632J4ZNwAH0f1j3SG1sLshWXSGzZuAy\nJUnK\r\n=CgVr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChrTQq1BUsOtelLLr4OM0JCn+diS4qbzJPbHYBa1NvagIgLIz9/oe93T1284xey4Y584nPxtXatPq5x6B222pn7Rg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611825540000_1611825719429_0.5977422022934558"},"_hasShrinkwrap":false},"1.9.0-next-1611827034000":{"name":"playwright","version":"1.9.0-next-1611827034000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611827034000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-R4O7bMUzisFGUsybmGcO18JXlufFBug+efY88dGZg7I6S9pVxzotgc3LDXzCeknpLY4OtdJJtFl+TmLBznajEw==","shasum":"6fef5053462f40bd4e630ff02454d21abe3446b3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611827034000.tgz","fileCount":209,"unpackedSize":21264497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEogfCRA9TVsSAnZWagAAYtMP/2KyOYvzavwO/oGD9v+X\nhDFzIU7EF1TJc84W9kBy3NsnKIG8I0d+SQCEjPjuJOJnyXLzOg+008tqqLvT\n36TSBnxqi20kaCRgxow4aRSNG6k50duM7qAIdy49kwmWzprdT88U7cOVLDjg\nbtbLHFp4DqUMQTGQ4rk7LRJxBMqfsywJB14ypZIovhKbZJ87rArBjVJ8pnQ8\ntBW+pIRhhkkJjVOxlRCXinEYVYnuF2mrCweX8kCdYYHxWVYwfAf2KADSd1ap\nYTyvPN3gATpuwRcBrgXjdGm43MO/bIepR4lQ9gXs2aKHxrKi+Jelc8PQ86dU\nCh9Oul4rzICPI6UZwZHsCkvVehmdKfYWzF4YGvQTddSXNC+FxfB4sBMaMFlM\nJB1b9Q9KfInbGBFb6t8rKYLLDcne4iZS2P23eieskBOJRIgMUSlb+uI20CfL\ngerjUP4u4sQclrsjL6u8MCIrioSePcdKF90y1u+Mo7H0Az/zld/6AQ5Oqa7s\nY0/rT/afwYwFI1xYiExJxzFBQ2XBHu4fMYcalbJv5OLraKpqmeWnCR99nCWm\nXLUFUp8dmfUKKyC/bdQvT3/RGirFET8clSKAYOmGzroB8VitVEzgTUbGWC12\nz97wyJei0uI+aZ0gvZ0zNia5TGzVRvdNEF1V5MwgcCgB3Vt5dsfav/Fjx0Vk\n0ia2\r\n=nc9I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEyq/scuP+A1ytfM0ObA9y6HqP1W7GHlKd3b6hDjMoXAiEA9LmgsMXrjdDQGFrvgd91VNt6j80EdrxxdArdGSjgVnE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611827034000_1611827230365_0.5371285417738696"},"_hasShrinkwrap":false},"1.9.0-next-1611827805000":{"name":"playwright","version":"1.9.0-next-1611827805000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611827805000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-6KFC5lsR+wzjhsiWr+4nS1VU0nPDiNGmvXuiK7zbymZS9LboLa2qUomv7iHF60todi9gK+f00mmVrwakBERaPQ==","shasum":"056727376f2c7343c5ff99d397c0d594728c7c54","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611827805000.tgz","fileCount":209,"unpackedSize":21264497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEosuCRA9TVsSAnZWagAABugP+wUlbbJ9q9LjhPban8SR\nQ7DUDETQVwfBKWrFRnlhYg4hmdJuNFNqir2qJ2uUn9bdmoGGi70bk+JO3zVy\nMhG/V/24iQ9lBvIKooP8Q7Tuj9uQEdBp8ohEPkpzz1Djv1f68+0MvaVsxB58\nbvehFeAiWSTsnFNUaT2VUCeBHLgTTo0orIB5NgOZ8rTTNZaBHi4QBwXLYCXn\nqdIBBUA7pPdJHyhv3GfKgkdnMgZqTFp8OaDiLFqZpkX8nTrZZW6nu23Auxqr\n084R+EK41B91mVlgxjA263mL/JvJQH/hQyfqnhSOhyq153qKWWmISaOwmgAB\nkenvstUEjJJIMyQ06GHtXgPZ5pTMYasbVshQ7H7hjOX1iXmGW37Eh8ZWnYoa\nrg1XIojgbO69uqGtQwNq1NOVweVkoV+nurS//g/c4wrsSqN3wN8gRLCWOuwO\nblvqfor0S1zjADlExznaIUDJkTuWM9NQuPvFpWhX8lBP7YMpeB+MXH/pVzIv\nT38ALgCtmkGoq8ZcRXm/AX1MKYw1lfgCH9GkuFvLfSEWCbLIgY1/iRLr9/95\ny+r4hWiqDjvsqIpZ3JOfqfmUHk+vj++Fmlb28065O7KLotbsARjdbOQUbDR/\nFfE5gZVMDmHmFHyESQaphnn35HNhCSJh/jPfAHJRNqfpJjGcxFj8hvfQP/HL\n6prk\r\n=ik5t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnJj+K9+g2vF6MVufsAhemRHnHMnoL2bhNRthuwc+9nAiEAj5aEi2LP9474sWpn1dbXRrXpDM7eypJAOiOy5WYVB5U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611827805000_1611828013817_0.8451325331030812"},"_hasShrinkwrap":false},"1.9.0-next-1611828923000":{"name":"playwright","version":"1.9.0-next-1611828923000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611828923000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-99Uuq3R54xmJbfos1Oq+IeeeiIFWfQjZioCuk2z5tuBQKwkbLrKx5EicFOjAJbp1TRRpUl58K/vFMwO1cp9BzQ==","shasum":"a246350065dbd600552d1016a9eda85561aa3208","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611828923000.tgz","fileCount":209,"unpackedSize":21264497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEo+qCRA9TVsSAnZWagAAujkP/iL60jaq/b7EE7WgFIWz\nAoZIubepVP0QxQt5r9xg9flYGvUDSBOFqDp8xxOsiRxCb55kEPdwLM2Qxf31\nWNgk5ao2UBxEdkvmN4svYDdArEzA0R+jodwYB9bLLxiWoz7HesIYzTf0mLxy\nXybTcsgFNurVpmpzRMBbexhcRLnfYZpi4zL0xemxXi8hSty4n/bCcCrVSKGQ\nn+xUBrhAex8alzqCORzBhBUel33ws2Cxd3zv1J5yhAgqT581KDTZa06Fat2y\nFIXD3NgOBOAQa71gSLk5ScuU5o0hvohbCFqG4RgF1Sg7wmZpEQyMqTZAsLLo\nW2HLgQ7JCNkMh52AT+q0crHT5oBzLHaVn4qSoLQAFJJoAIEfL/No2516bWhp\nFxtBDez965P+4x3zonHGkH6lfqfQMOl4kr2miMYYft8gPF3Sq1tf0mp1SX5K\nWW403H9T7edb6UvSr6UtpK9/edevWHyoq5ozV1mzCtxmO187FX4+FMTmRg6R\nb5LxqWZpUpaeblnmcTM+wkjQFAD/8t2Bu6W5DKRf4J/b9GvBIaZYSqFwqDN7\n/tObbIve6DnT9shx7ikOsm/XmWgXPKFSEzM67HQ2aFfMRV7w1tU32AUG2ddb\nDxkhF17hpQaSm9t1FDTwqMyR0v+57lCIq3WLcvwucrrPgJR1z3dyntvG+wtb\nmMAT\r\n=G0FV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjQEw6HZEj8sLDMST/M4QHQJguxHfP55Cojic0tnu24AIgdutKgRhc32uRXsWe76dC2Wcnnnd4Cz6nn2MPLrmGZVY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611828923000_1611829161621_0.7074953857758863"},"_hasShrinkwrap":false},"1.9.0-next-1611855200000":{"name":"playwright","version":"1.9.0-next-1611855200000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611855200000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-bxA2QhHyM3GkltWDB9NvCvE7zITqmFFsOtGKIn4V39uMxqwDY934y/y0HeUOokKcTkuUk6zKxXhm7/6pu9Lwnw==","shasum":"9c184e12b5f8e007740c46ee034e83c1bac8a12f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611855200000.tgz","fileCount":214,"unpackedSize":22363054,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEvYCCRA9TVsSAnZWagAAcNQQAJRqdH4GqGweibtojc/s\nxaRPHxAVxWRwy7vzgmbc3BZAHPj3OJ2h+L6Ie/zDIpn9X8lM3ywmPYkhw5nc\n/DEL3HpSRhq1Sa8h0fQyuQ1r7T6B5jtF/AaEK+NU7cCzS7izrUJC0pTsL7Xt\nWnqIj8vFitjBmg3IFnsaHvincaqHI9E/qyNN7SIJ7TsN1fdA0uO5ZpA4p7dR\nlgAmnvflEkz/mTsayZGN5cC6Be5kxewotuJonGu6MZEHTP+HXa8HHXx872UM\nHHTY61uAC3PnfgKZP7SlPirqHaGX+j3JwoWLGn2Xz0pmYUrZmpI4fY8v+IW/\noo+UoAeiqZniqapyGCPGqrrAPX6e1xno/RQ7c2Rf4Dp0kVkPQZHDNf2n3JUq\nL9PP8JGpEpU5HBJWbk3KDKfXNmn5XpC4cFn8TSiRWl4mPEEKx2/sVWOiPT8L\negOeIK0ZDs/yHdlrFohFKxgdOsyYWF9ZXV59mVAz2RdvyYUMKosg9kPuft02\nVqTi7wRH8FD3b2Nzi7IVmpYaMA4cP7Oy4rG9mhNKJLnByIbxqHF5ldFmhChk\nq5k9iyfJQgXMrYCp3FqdJ/GDyKY5hXUZJ40QzVeI/e86e+a8zxGA9JvOQce9\n6G99koGkj91wbV4nIGYkpY8nQx8rdyumfdLbX8lT8tUk/L4s54DlxBJ5gJH6\nnBF4\r\n=Ah/q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAOWB7AFC7iUBdDDxfQGz7CHRJCUO5wwd9l6d3L6iemAIhALH6V8Bbe+E1OH+qGjRgaQVcRhzgeBgxbb0LcQQIMKe5"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611855200000_1611855361243_0.47274183281494797"},"_hasShrinkwrap":false},"1.9.0-next-1611859857000":{"name":"playwright","version":"1.9.0-next-1611859857000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611859857000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-J0cTbmlGiOsgw9WKOVfupfKzyFQfXIFH5b1kIxQ5OAVagSPrco2FfYEvtc1d7jbdwqvh8Fif5VqgsdXM2JsnaQ==","shasum":"18c664b5feae69986103d64f47ba2667fb24b5ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611859857000.tgz","fileCount":214,"unpackedSize":22363461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEwnqCRA9TVsSAnZWagAAAxAP/1q/H+Wgt6D7uFPveRz8\ngz/1WKTwPQfqL61w6MiYPWNlI4xbefmidsctW10QSyMIwx2Qha2Xl9stsc3l\nHQ6MFNWLKo9o+1MrDABqSbByNoxjIoB16fye6WDR0pgi6D56cTG51TC2DlOx\nsWc7Ne3vZThmGRB/mVzkAXCRvjh+z9tabjnpcimrkisqkmukIVtcPS10GS0v\nZlK/TJ+rwPzbTirj9xGvlt1WlSCEpxkxC2S2sXQcm8nrRLfQT6KSYq8x+lOY\nJBBYElZ0QsrhjRFdfATRFaTjux9R6VvUpvUpuI07AhqHduP0QCVQ69njC5Hs\nYlOiGprlY5YLhU8p6ul1wOpmTT3owXK6RAO01aFpprzB7bBOre5HRUzclGUj\nvmffouaXHF0J1vSw2ornv1DV6gJQ2d5dMWi8WpiWteMEQnyqYgHZjboWzaXk\nLUir/dLZlG2GjkM+3KpOkr2gzizeqszwDpdQeuOWlYo+zHsN201DRvmzv4ei\nNpe4NWaLIW8215gBRutfqoNajxLQYRpxQSDBKM3ZyFC+T09Qhm2hap/nVAbo\npc+7YrT4v8BB+s16gcmBWeG18aQG+CabWVObZsCR1RTjT9wAjhNfF4ysKO7f\nzZMysnvyRAd/2gbkd6xUXdnrQpL2zhFADCTS8bruwpM9vJlvLtEmA7OSu8Ks\nn3G8\r\n=wre3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuMd0vRYNTBE6Ofwg/IajFU0n7mSNtPsh1aYv4K0SbFgIgeFFR6lxL7xc60rfMwVSuZwBzxBpD7ZqHpaGYCEq6U+w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611859857000_1611860457296_0.1491161264605403"},"_hasShrinkwrap":false},"1.9.0-next-1611872710000":{"name":"playwright","version":"1.9.0-next-1611872710000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611872710000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-0hzRdDLvf37JLSEyK35YoOgnctwhjFH0hxCSrEvqVy7RYrCzQVdOtaUSOSgYv5F8l7pgC1c83WRfFdFU1QC8Tg==","shasum":"315f7ac45eacafcd692d4f8b996722fb234f1b1c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611872710000.tgz","fileCount":215,"unpackedSize":22511557,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEzqUCRA9TVsSAnZWagAAwJgP/Ayknwbs2sX1vD7J2PYt\nh9rlMAlfpw+t2cXKCkAKjPl+uF/vpKdz357LWKhcdReXXGAjm8x2N0LI1EQB\nVVdlsT9nsDBvZThESvlh93QJ7u1r+v7KY4kpfskgUygqNBEzr32kxwv+AMGU\n72PldnJ7LhrVfBngRqXTekHDE/nr7BpXtAXjFZtILsRVthlDpdKDlyQDuU3g\nNJXFNMhJ08tecf4TuhwuNa5vXI0fpP4vJ7s4gRg3kS+IiEWtvO/q3Rbc+tGk\no64kgFeh3AEARagzw+Fx8zCNbtLYlGABUPjo/UHKk8t6Btf8q8HlTbqSDn3X\naNAlPL3hngyMRreTUo/AoUxqHZLYWElBF2TB9Z7Qp4ekIXWMgoj6+e+RKyWA\ndfVyRbw2nJDULuNaUftyWWRg6k2LxuLkmzmqoUVLDxrNVanrpvCe3R1RKZPa\n2mmW+v35HjFZWlkpPQqAtYclhcqS66HlN3A3RoGl025exTOBfsAjuMz1tlNJ\n7wthh9Q8MBQrXMfjfLka0OLDPfZVXqW0C1Y3S1xmRhBDYWeTtccK/0wBIZ75\nCKOqAshRvBL9ANiFavg3n+zyzs9i6LPAVNfc+pih6OrVW09SC52tyrHZRrwu\nQE2SxFZZc5xPiVHE2GcaJHStZ42/0+0YV49lOQGMnm6F6LbQYad/QPQZZR53\ndiGw\r\n=lNwq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH4AWRc5sWP96EzRZczz7dsJelrkFGBKT2cuZWlfLcbZAiAXUNIfcNqKfEi0dMkiXnvFtcPdFfJs3siWvh5LS/Vb9g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611872710000_1611872915832_0.37655431668089534"},"_hasShrinkwrap":false},"1.9.0-next-1611875360000":{"name":"playwright","version":"1.9.0-next-1611875360000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611875360000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-Sc9u4qXoIk+ivGm3eQWx5N1AiYxZOfb4hVNJu+7f6pDgbppxq5ImU25FSSKFbDYn3XoZOEYYYPK8CR6RRDqhhw==","shasum":"622ab427313a352e63b8f260cbdb2411c27c26e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611875360000.tgz","fileCount":216,"unpackedSize":22513014,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgE0TjCRA9TVsSAnZWagAA1hcP/0I1lnO4gMV/+tcRPeJU\nP686aEM+4z8tcZ/ztby8nuqAKDxEcIWrVomRYi3t9hMJGgJE/4iaI9xOqQEz\neMVkUc2vbtCZWiZ0shNhC0P74DokD/adfX8XNA1RYR/ZeYQdyq4GSNQ3yk/K\nHTyWIE4ma8iPSA5cjkjSKY7YJSYWHkjSwTtZ8PFzuKSCQ5Xg/id1stI/sK0t\nuNh/FlhqbxhZZOfXD6UX2gs/a13vvojxbsh95KhKz7g8RId+VIRZe8BlSwW+\nyAOQKOO5rY6Wp6AgugYnIXU3+5EOmM+69ARWCOkWiqCcfdN2q50fiimrO3m/\nkMlYLBC/8SrbVCKKbDJluHVnDU5yqi9DRzD9xegQZXCAgmRQpWNh5+Fw2oa9\nRZ/zj/NiXNJCe+jFwE8kCwMnRZCI4tfEHAr8wbcnBZgu5y49ezVEjpKZi5ED\nqEc4IF3MexALCJatY2Hv02vxI3LGx0qYuVsQjT609MuVpTzE2duqZ/Nu4HKr\nAK0bXFg0ZH62R2e4o673wFxo6+jKIewqVAVjpxKJ14a+nXpyet+EhSma2pGw\nnA+LmOAfLmh9gYByn2LVgJQtjDoCxqY1/IcCnABvOOV2NLGFSKECz6My7mpi\nDy/JeNpKHAAtlh2i98oIL3m9dAfnIksqS9nKyMuOEdiOx44XJVAqh417brMo\n5eLx\r\n=QgpG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICcKKZC03L76SKdy5li7LmSrv3hE3QmcBzf4SuE/LiRfAiBZqQuJVNxANwQkHTF9YWBEccqcxXlVn9P6AoX8ZeZu7Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611875360000_1611875554566_0.6474699114034959"},"_hasShrinkwrap":false},"1.9.0-next-1611875729000":{"name":"playwright","version":"1.9.0-next-1611875729000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611875729000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-kByzfvKwdccrng3uOhqu2WFFYKEbzVt4PhXOaAIShcEVuD6ZnemYztUKdfV5ufJ7h2lzwgdo7MDalR9cEA7phw==","shasum":"b36ba689d12f8f90947c0d2b47e38abf6ba24799","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611875729000.tgz","fileCount":216,"unpackedSize":22513014,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgE0ZYCRA9TVsSAnZWagAAjjUP/0H7Cw46/5s/pZFHXaoD\nBUDfpJla0RswqfS6uC7xqsjfiNmWwdaiUuhKKVMG9WHrpzGHoElsbugfRmyi\nrTSNNQRFT10624xakT+K5HSkNXqR4Bs5KWrrqgHyM28Drj1rFOLLOKS44ju+\nMT7qpx8ybsItV+y2LexoLfkDXX9qRa+GJnDLOQgfj/Oh2APQbflA1sO1TDo2\ninIyJwXTCrJhvNiyX89H/OG9gJcldm/in1wMLOLZt00EPc+SCEJMMAo6QdMH\nvi8qowl480iD4JBgLk+INQvjk1TZ+gKqlL9Xsyrzq/juVsNlukZmTcKaw3aA\n3R4J0OLimJ4LyIjsT4IJSxyhzSN5g/Yt3ZIfH2KwCbaB+LiQvUu7U5L5yeOV\nI6wbhXvA58VLVN/tm3sRIn6MiAODlgXd+vhjd8O/EXGnmPMq9NLjNl7wbwyN\nP7v1PlFsRCkPPUxrmn3y9kYOrYAzak1iv97X1RFsha0YgyjlWin/+eKfAHdx\nGLx9SUuoosNZKa9NTAO7sNnBpiyeEpLsnNGqC0PDkyYyyk1zTxyHe/8JxLP2\ny/hdGunI7OmC2dG4h1OWjepdaMkgGd8uOBWpbjATk75GU0hKbBSfCi0o269D\nBnCaQE7Lj70OUlRpe+pmSoKr5zWx4Q2krlVLmVF7k2h4Ym8DUF72xVmdgLSb\nv/q3\r\n=9s3A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7njBE4k33fVKA2KLPfVQfiVArypih5Bq58irGOQ/psgIhALXVo1Mj87v7vMdR0mmlnE0sktpuer41I8A5Yd03tAG2"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611875729000_1611875927736_0.062155084708479746"},"_hasShrinkwrap":false},"1.9.0-next-1611885101000":{"name":"playwright","version":"1.9.0-next-1611885101000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611885101000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-qwvvOYYWbnevBr9o5Y9XnT9mt/e9ZoCkw0iWBlj+bkubffakedH88XwQ/8WfIYuNTNIoR4W9IQPHDovVtOfKfA==","shasum":"66c224d135869a7f4051f5999d3bae4f7268769c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611885101000.tgz","fileCount":216,"unpackedSize":22516633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgE2rgCRA9TVsSAnZWagAAlGMQAJHdYbLf2j6p1PAyXsRt\nuyYbZ1GwGXSXVewdVRKOlPcXftSNGVz0EYJC0BjGNdD8Tpt0pHR0EmG6P10+\nr904niappHpTZKsD8oHH8Ay1aVKb0B/1CJZ3qfVeTjJTdiEsQLgiBw2Hvwoa\nr6Ryd4+BZ8KXoF9pX4NUHV8UueHMdYVZA6E2nHE0FwaJG9wEG9fr9eg+DSod\nglVjPCT3Rkty5x5ZYhYilYT/yk/ohbpGDwFywidt7U915bK3tzbb0szO7dkM\nb0ZvRHByq5l8uHAJJ/TFlhtbf0Udmd2iTMmHlilnIJriyvruupmpWWl10Pb0\n5UXlOhn+fUM32SxhZiqdN0/boJIJYqLn4vcRg4P+3sc3a/LAyzG5sFyvWQQr\nHvQ/rFO3YDSudgiZCacgHrKf2fmZ3qXae04Ia4ahFhblQBccWc4gVzq1SbMk\nTsoH4t6Pe2V9X/esvb9jmfglDkSoN5YtOCvGC6nstLvae7QDbMI7daRhriZQ\nhWgcPWHemrcxMgwTwvnoMGo7g0yPbwV+LP5r2PLItQ2vr8phJ70/9KDK6eVq\nRJJlSHcS8Y/HY7HjiRs4/SKc0O+3uBj6L6fVkeBrkhTFJpdP8HY+CU5/+g48\nCO4MnR6uALiKz3vlc1M2ts4B+PdLOuNwJIbDIsunM6QvFVjsADFOxaXRIi8J\n2eD8\r\n=l5GH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNAgIoszPNX0t1ilzjgVXd5iuixurbcjdANRM5WeMYoAiEA4jmep9jGlOGtWMbuvbkbXuFw4GGhBm+YAhuG91hwFK0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611885101000_1611885279207_0.21970657112905245"},"_hasShrinkwrap":false},"1.9.0-next-1611932277000":{"name":"playwright","version":"1.9.0-next-1611932277000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611932277000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-AK4uyuoPeMME5syjBKJ7WVhGt92qyuosB6d/lzBI6p7mwo9Z0zNFP18OHZFCPJtcaqT6j0CzFMcI5oDLvf1eug==","shasum":"06916a51c64ab32bf28fe12c26f02c3c2e0a5a82","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611932277000.tgz","fileCount":216,"unpackedSize":22520727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFCMhCRA9TVsSAnZWagAA3dQP/iD3QoSxjV9uXcMZjzj/\nqw03r/bcO7esOGWZuwuuS9aqsuwjQac4FTNsfVOdAuF2X00jGBHGzUavEV+S\np8TlDKIZkjGUFN1RpVzL76Av0uKDpLRx05oFmczuHiGOfRE6kJw4WlQwY9S3\nxIPkb49SnCSnxa6/hvs33vX1uIc/tp/p++USA54Je5HO1sg/WWHkoDlQV3Ck\n54nV+AgGRrlF3wuqtUNs8dYRqU0eIV0uIb5VcLbgpp2v20u6DCCb5ystqVGC\njm1pacrJjDmv/9HovZDDkQ3vRN/M+55QHK8o2MFiDZcLY94QgllmDUUjASNM\nZYTAozXcH9zhI4U90frKD106+zawYWC59hxu2dAtwZ79dquncDlTLvnl6zAF\nV/zAy+JjLivbItMcgcaDn2FSfN3EQrRye7ex9W2H+8txzvaHNLxGxkYjPAmE\npYOOLxxuXhL6UXQNN6lk94CyEawQfZEwr0q//qtzKonp4nlnR/0DBWHTa6JN\nXu/lmj+BMR9W3IA3INR15mnkLOd4GDtn/HL/DqEmpCueMTRSu3zeXi/a5KVN\ngn8N5vwYe6Zh/W71OWtVCo1UTcRPL81XPT+o0FW8KZUzmwUlDSIKP4MXPMMg\n28WnCugQ5cokrBEg++0ukRGIPSdkiyA6tM7Dna5qLmK2+tLDbwx51Z5/8OZF\n7gPu\r\n=NNfH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2d5P6453W7kpF3y/636GFhtZkJAMbsT/hCH8CLrnw7AiEAtpMFHknqaD4nVXbaVCDr9qIeQVxg7Er9eb/HlBEuEqw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611932277000_1611932448335_0.6071332306742789"},"_hasShrinkwrap":false},"1.9.0-next-1611947302000":{"name":"playwright","version":"1.9.0-next-1611947302000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611947302000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-a6yiHl5+S0E2E4jxAgCe0a9u0rBQ9NKgudcdjZzj8DmpKgDw99O6lSfVkDJtvVux8syPX+QTLHfQqeFm20FTIg==","shasum":"878e43c6f911ea2802a49ec8a5679168dc1b1934","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611947302000.tgz","fileCount":216,"unpackedSize":22522317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFF3hCRA9TVsSAnZWagAAbjsP/j2l2oMY/nqEupxuu43v\nb+Mty9v4WGXIWuH/DI8WD/tiZnbntTxWG5m9twD74oNY5rqpTvkvXhTDXqlg\n5/o9x0nSEkQqZuKtTNBKqczTcorCaTJpPvin3QaqLPUAS/U4m/d3DrwWeAIv\nIv7tqvVNL/uyMWdcTBw83NH9iCWcLjx3KRfq+FwBHwPBvCyPS6l5faTf/gxO\nCGRqa6ZhTepNmg+sIacZZxP2+5T2nyX8uwyirYQSAeqfa7Yh7TrX9ue40XDi\nbppk6jHEsThNJGKdbt1e9eslRwxgl7Z1McPlXPXM7b3ZxwDPDE2EZUbHsk4H\nG2q4Qy2Ms59EntwHb3QM8zO+mJpJcRqVMDCj+iTQMWGAm4fxSuLHPIBHnxpH\n2grwg9Oj/44JtydeAVLlIvssK0t8VY/wiFSWRTdwPjOfgQ2C1JFhs48m4iZw\nxEjAzV90182D4Iw6MXCOZgqqPeDu0bcuFyYjtmBhk/ueVfZq3qbhcakwcDDG\nUG1aT8lw5OfFiSLRzrinpgRQM151G8C8qX0709yTzEdCp9bIP8Un57YNBGQe\noCEt6E2WONjTLZ+urTAEMRPIkHSyzc+y5rFptqQHTJieY+I95A0a8zRaZwmy\nEgz/lcAkdBO9+9CyNY3DvJS21h8Lt4gikgnXOmgkryv9/jyipAmiX4y1+7Eu\nEkPI\r\n=Jv03\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmtxvLqB9hgCmzK7xwE/FOOiuhM1q0PNZH3lCl21aYeQIgOtlTetOdNZF27LGt2BBsBdN0oVUl5grsFqq7u8+voXE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611947302000_1611947488469_0.3337765315441441"},"_hasShrinkwrap":false},"1.9.0-next-1611962678000":{"name":"playwright","version":"1.9.0-next-1611962678000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611962678000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-cjUuMLobJdd1g1t2yKnE7dS4isXmJXc5PulKIndkzkxobWN7Ej2QXVerASqrlEvFLUILXxE+iUigOesveMElhw==","shasum":"29371f34cb0cf94dc75e835a8b65d7d05b380b8a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611962678000.tgz","fileCount":216,"unpackedSize":22525708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFJnkCRA9TVsSAnZWagAA4FkP/RGRMdn2Y4ssTKJxdzXf\nHSIYshGjVdS6iRsu6qQoSfgl86Zgvz3FGG2/EbG5qfr4CcflO2/iF9+XWXwd\nulIAJ0tk/fqA2B6//IvR0cUuiSd2JfnjRB9+aIUErEAn6Su6cw96ZVHj6AWI\nM/cVMp+wzc46Zzid2rrJ+hKwBP7pVWXkMzk7G0pAER4HjSgS1q7vMRPpyuJ9\nKyyDDcrD2GAtfCjsyRZY1X7DIbltPStwXqVDm8KRrUYcc8vLLQNTQig8VSu9\ndpjak1hslN4aAQOzH8uECfsL1IB1t+PSZWXKne7AnOBviHiU8YHwsjgAEs7y\nN21CNV/lNeMV8hzR3DNISAsaq179aq9HMC1pfqhIDBXIXx+UzImtPwk3atb6\n1/D2muGp9jApkqIEbKw7d0ivNQEt/K4MThYTqZAd2hiX/BZY8Wc42ledkJCm\nim5md04ebfbHVM+J5twGWEJi4SifxtwVLHz8bW32Rvf7H6ZS1D3NJp0mio/b\n8IpBMNwKBCNnOG6GNcdqRFrJGcm3cUt6Uoso0++chXTapvt/2bOD7aDzR74s\nC/sdyOqmLC4zq0aBt/KauFPR8RwMnmogEwzLE/jXsvzcSce/xCDU5p3XAqJm\nEDKP3FsOWsoHNiY34TxACgt20rzdqcm8a3dYGN6dhr2Z4o72zw5mSp+3NRiY\nOWQJ\r\n=9a08\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHIRQFjYjSlnVai/LOVC9fdqmXIV7g7Wm9ImBry35obOAiEAstFYfkI0PqT0G1vhomSzpDcvvAp6KnjT306cFA0L4BE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611962678000_1611962851384_0.08912422309636403"},"_hasShrinkwrap":false},"1.9.0-next-1611964937000":{"name":"playwright","version":"1.9.0-next-1611964937000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611964937000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-vMZi6w0H0NLNRP/Rtmnk/nZhnjvDzub0up89c7kkyDjHI8nGzWVTcXtUqUzKNGQDuxhzErx/czKJ9gNrlwQVZA==","shasum":"88ddb1468913ed1f8a321589169c304e5fd8ae76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611964937000.tgz","fileCount":216,"unpackedSize":22525186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFKLrCRA9TVsSAnZWagAA34IP/0L2khZosEe9ZDLtUVtF\n0PmjqsTlslIYA7bHeCV8A/B5JVGfTYBcDod4ecUaRqoMPRd5BxI+8LRJRoav\ne8713aO3TXEFibSup5EkxnNaUhrVrOBIoZu9Y2jVWsl6GB/oOEC459Zd+TWt\nrwwRSynNk5KB+m4DagQvQdxL1tINrUGf/rzKaQVvkLqV7rIXXQhSBTIo10qi\nTiW9kB1kcJYCe5e6sIv/DoQZleIBfwxK+PSCAanq21p96XXDXH1EYokoN73r\n70un5tvSxKAB7ZMpAH3Y20LwLpkOZt4TPqrqJvzx+2qF8tze3Wnd4veP2Zk6\ncaS3YSmkRFCy3GL15idgVoOkhCcezSzVap22/4IAXDtahdHNtoA0xqJzD5dK\nIvCWnwqIJUwPuwq/IGG5I87fxvlvIJUXv1lUcGc6EbQOxVrbOdAlk/+JZZjF\n3dlxp7CoLpvCxd/W8ZxVRLae04O2Yj9UqJdejDQIU+wkfC2n+BVS3IcNpeHM\nZ2w7ye1lsUzXPG3aHMpzyo/Fn/xYES03BG6bWgnm1s1iwnhWgZ4woAcshDkW\nBEcz76s4mMC72ngmkDr6KC4FkQqkx1dPWDkguORa7t6KGwM4ucOZhVBbj/Wr\nITV8R1oSuqMpoYRMM4Y2RBiuqcFIUgc9rSBqR7lDXAbFhkcrDPEmDs17X9K/\nTt3p\r\n=eFNn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWy3bRVoGjDA5xGMd31bU6uwZr905Mhv8RIqDMoThwWQIhAPEcJ6TNTv5OOyhPhd/93e1GX4bpanNhEKEpWAerrY26"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611964937000_1611965162441_0.5913608717491912"},"_hasShrinkwrap":false},"1.9.0-next-1611976525000":{"name":"playwright","version":"1.9.0-next-1611976525000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1611976525000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-Kh0L38zwWBLUc/3T6tUef2Jm9j46NoCBBMewB0gdScntUeYu4Lzh4F4JktY/7kgZ5vfrhXUNLPaQ8470glrubg==","shasum":"bf03e5d29ce9ebebd6b3a81822d46160b2d390ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1611976525000.tgz","fileCount":216,"unpackedSize":22525516,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFM/pCRA9TVsSAnZWagAAUAEP/AshN+PL1ZpJvFodasKJ\nYnJ2c0bliQM+uWLjzi39B43xROoAKhZkczBoLQ+hTDwqmR1mkWLe7czj7UjC\nFY1ne0v7jb1zHvmPVToom0zI9du+JYjNz2tNqGvnupSnoOUaN/NG08Nc+rxN\nIYWiF8QsjyOQvRVvEJxpeyd1Bk93HN0l0BL00AB3/Ln5FdE9H5hVunyBiCIv\nRy/G65kY3gJr5eBGvAkrJxC7iafyuJbXYiMbADyKBa0lnNqNd2FD2/LENb0h\nK83jwEpTvUlJKGo+UF/GF9u0Go4TrYLv/aloJIMl52XAKD86mmzZEpnGDMsD\nEY8C+aRJBGAauBKXXJtgYVA6njKwOcVhC6bk/pjG2YEqQPwoZj46uxSRId20\nwcDWvbSfBtfdLnaZYV11IV4H6esma9PR/ZF3TSDoVWjerkj3h3HRuepzJR+7\nOUr8qybUTV99BVTTFjAzjPVRd3wUD6fIpYRvfG0NR9GBBO0ocIiOtZROsEIB\nAUVg3/aRhdcDRXGuAsiSIXNUnyYDxo7DMOrk4ChYcgPCa1aLOogbu23M7VXI\nYjpXAHbcjL6gqcphSaNdI1+10iqsSfRTbCPK/mSljcviipXXQ+EJye5RMMQm\nl/MXPixl5L7rZs5uU5jMk1ol7BfKupX09jvAybsDJYdWNgzELXvTcuiD9vEX\n9EQt\r\n=rZRf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT3ExVSa0nfYiBMe4wlMftNYhph8eZHenU8jh0CVdJOgIhAPXHHhopg4w+o46gIJ7b03Wg6BBLtBXn+Eyx2/M57NAp"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1611976525000_1611976679989_0.6725567606522367"},"_hasShrinkwrap":false},"1.9.0-next-1612073756000":{"name":"playwright","version":"1.9.0-next-1612073756000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612073756000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-pn75WWM0TWidqN7osDBEvGXZBq4l5XCeskCstlK/v8IHBnB3yryVCOpRixsbbIvO2qxCSTOnUL07zY1TnyTviQ==","shasum":"b6e0d800c0267f5e29fd29ac4b2cc83892879ce4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612073756000.tgz","fileCount":216,"unpackedSize":22525186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFkwuCRA9TVsSAnZWagAAFPsQAJgbJCjq4Gcez5BjqALW\nFz6UxgRn5bhw+rR86YaAuOsMVnDqfNiqw4BfJvoLaBC8YlZa5QwiBtn1VAwA\ndNrktMx20ZppPUTpkjrJlgCVa0XhezZowpR/kOpe0ooiypiCQSuuroO2qVJ9\nbA2aVGyLYpuM602XSHUoHcY/NWx1GJR3u6ssbb5tEePPDMm+x4TpfF+G47M7\nB567IHnRNaABQmQFASyVl7aDfqOABJRXPBy27ZVoiHy6tIesHVKfRfayYM12\nX31HQPa1SflOhpTjza1KsWbX4SO4/2zafLe+tdWMvpbq1b3vBocq7KHidyww\ndXk9xuXF66vHeyrry38ju46GnJ0NxHHTWBtqpkDcFnzZSasL/m3XFvNXUdGW\n/1tj30hYTDuhZ30IgL++ceaesqxU79ND2KLcstTOPPXw/KY8Yh1Ai2X2auSt\nuo3inDrlZA0YfPRynz3X81+0yc1WZVB9czSl92S5qr6WS7s+LbqSsIrDFGwj\nCtV+6fy1Bn7wLCgDfM8ABOrmVfqWxwS7v33oDlhiU5rgvfLNrjJYge3vW6ml\nu8ldlDpPXrJ0arQmEIMyM0A2gAGR4bVvwrmjsjmlxvkeJwXIlvAhlQ/Lycur\n8tV1i9IHT9735x2q/dvRUQIe+W2bpzrmH40t6z5qle7oqxaA3UkEHUw7c+qX\nzrsK\r\n=LrMz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBq8oszn0v90W28/Ka5So5Avb6avBOG/uddl969rr2ewAiEAts6stKx9XaLshpeq0Uq0jGOPMntWc3rVdX1P+Dg0AbQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612073756000_1612074028887_0.7337529501795153"},"_hasShrinkwrap":false},"1.9.0-next-1612139833000":{"name":"playwright","version":"1.9.0-next-1612139833000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612139833000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-3A4aUGBLWB4dx6lLPbD+mB6GuUS4IyY/RTGeuDbHVuqlLvdM+48ARZprX4ek9dVGmT6BeCVRUbh9rD0zZj1iPQ==","shasum":"3d68fd6bf539362dac3c89da058bce592f934c75","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612139833000.tgz","fileCount":217,"unpackedSize":22510899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgF03zCRA9TVsSAnZWagAAjYMQAJWCcfP2PS7wU+2DgZMi\nmg+QrkOUPtgl84CmdSUKKSbd6tyJ4y5HNWK3tkUDFehdJ7k99yrfuQgUBqTv\ngfvuZpQMFY0IBoNMU7wFbncUoQcb+DJrGUonKNVsXMfLXG2Ex/5MwxAQQS73\njq3k93bHpBNr7hIVrlBzDAlgBKYZp2LO+E1RZgHYjV1x5ckCnXIcBwgJEaah\nvpGdhFg7ZWD7f02RfnTxBlI8eq98VRiEm/CcR9GqUzEgLQc+/ZQvvli0LkoB\njYgAt4IYSLM9qPWiAsCdKFmjzzPf4QKQhMqa8lbtzQElMCSsslCbo19psEFV\n6ypxnnG8YyjhKBf40mz653JpBXNmyvq/zK4aLLkYb9dbN2YQFSmPcusai5y/\ncrcaxLC5529eQmf1tuKOL4WfTuaPdj5k34jNcCbYT14dBzmjYgY7dd7spqRD\n0XNW7PsEPsWnrUcPxOGw4pe9cCFgtirjlxvdtLNbmO+x5UAOsDgYOhthYBs7\nQ0f5iSEsBj5cSrTuZ0+mghfq5x2KnbQqYA981PnpJzp0mDhUifDP3CU4Ha4l\nciLvmFmdmLzUCok27pWplr0kfIE6rXTX68UrLnE/7cBc1MuKK65tc0uNUuRc\nIARVpCLLjVpNMQQ/cfPB7S0WgHESRtSlKuYnrvhXy6Z0DyWhbPOOqvkUDbCR\nfhm4\r\n=nRER\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRjdSvEqNZlg0yjXXCyUt4ON6CgTfDmb6nSvNJZexe/gIgMtsdplvJ547eBXiRQ38W4y11VzYvzyG4i1yHF7dgG6g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612139833000_1612140018154_0.6469582437589432"},"_hasShrinkwrap":false},"1.9.0-next-1612149620000":{"name":"playwright","version":"1.9.0-next-1612149620000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612149620000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-yoF7OOrUOM+T+kBQOV3LC24gTBfgZ3zEH/AmYX0p0jaum5zbhfEeIz0rCW2APFZ0ju1lY3nONrS7BjFaDXicAw==","shasum":"fc73424ee89a17e295b6fe437d6ec4169c5071e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612149620000.tgz","fileCount":217,"unpackedSize":22511505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgF3RuCRA9TVsSAnZWagAAMxwP/i6Vh2DHFQ65yXU6u2uA\nQ9ophG1jgi6GnSG3B43AbzwME7u5MCihhhf/mjI1dwm5EGYshqx17jxBmCNe\nuodPs+ru24xhbh/anLf6JAGATyUzR/lROPyPkOAWEOHhECFk/Aqlg2kfgRfO\nOBGtnMDDJPFzqmypYMosQLRl57H4za9p0P7iE20c9Ph7b25SO715BEZBY2g3\neWyFJUnS/nJ7Qr02IjPhAgyriY1a0WhINpkpGz4wURHc6sjCM0uRpY1hv5Wu\nJJYr9uBVq43pJh1coi0yaL7lDqKXTzrUQ71YYWBjC2Q0G4qGTmHQHPzCaHSF\noNSlPaxP+qTieD8Gjkibtd10L7pwG/6L8EoEtUrTnJuYJyKsBAyr3nXSUHNq\n55nu0JjfaXiwBCKex7eCKQLlrKE19tYUyYZk3tpXtOTouv2o9gRpcR0Lb6ht\nrZhRmgXvir2tKcrI9V6tm1NI9IvJXmHNBMTrsgIbTCWdmr/LYnSLwTG6+UKu\nYLwwbiAa2YtXNZZnYmY/IYl+pOj5aXK3VMvbI3Ag+Kk6YWH/mzgws7I7we26\nY1IdoOve3MAtOx6PSDnxDRXt9WuihxaSoEQdm6ITZ20l0Prae3mOTKbZorCr\nve/4k4WpVuI+FA4w7kH/ZMXuXlFVJzdDw4grHF9HEw8gGP4fdfEurEu/zQz7\n8xCH\r\n=nqbU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMm9FrdrULnRqNZjdtQJ1Mbz+EWcRTRpYVOh64gsybMAIhAO1uQXIuz/5nF1BGs9iwdyPOIIiOLvTWrwy1eEkSal/8"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612149620000_1612149869351_0.20093998003247848"},"_hasShrinkwrap":false},"1.9.0-next-1612179031000":{"name":"playwright","version":"1.9.0-next-1612179031000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612179031000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-LfGvrEs9rKQp53udorj5w221w4UsRaNdYEiuikusi+TdUZhWpsIf+WSTeXvnzRlpCF3Tyu6QA3c5c/gAvZh7Ag==","shasum":"05c07703452f930156bf1395c4c8c8e514554b48","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612179031000.tgz","fileCount":217,"unpackedSize":22511505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgF+cjCRA9TVsSAnZWagAAqkoP/34bZOA7PVUza2Z7C4fC\n3zo6/j93ckTjz816Tpyi1jwkqfHjsOaUSlbGiaPJYxLQA6VA7R87UH1UyzrQ\n1dRVKG/IawxvcW361hDLKECjYUrsmmg6fXqUMMuRmne0AYdAC6bms71uK2G1\niqJkYHQcpsHzb4TG80Z80RvG8rU3GVb42LnVNNN1A2hiqxA9HzQaGOC7amAf\n1+DtGOPv7ts5o+M2Cya9Y5RfeHx1ba+Bg4y73h3juWJ1NXG3SouLMXBOjRhZ\ngE4DlHRFcefTuVAsIdbtNv9hu0aoLtST/sRJBkdSQApJ0LHHur8wrHWqm344\n7q2F011kD+Qz5aFphTGqWW8o1HEtOo5rB7132DVFsQuONe3khI7mMeRBYK/p\ngAoMyA0K4mIqyoLEjPbgt3uZRXSgEnrD8Zl2xkXZ3Ukby/7T9b6tWHhGDdqn\nM+inxo5FUxXqo/72UYhGCADGIcIK1mSDH4EDaj5qftP1vdhdXTp1vv2ivHWn\n+Z/H+bgIciiw5qOEmgeM6axyDmtNciOiWzMr1hPjmleLARw8hDcApM/fl7DD\nFwattey3PZYwgsmlzq3pY6HHA8adouuatDPGNb70CBTnIfVmzoFJ3/Ipo6me\nLeOqwWtLd67NhPQjBhbcK9LbFjx3B1FK9qsmQtEvSADrr0q70M3SaH9gnfVD\nVBoF\r\n=VZUo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKOLUi5uGYFkYgEG+Mi/DcTA2XnRBtE0nhf9lZY3nN2AiEA8VDwUgrNcTnn8Oui0EsNhJd5rrwSe/EBDMA5JaDzGs4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612179031000_1612179234163_0.7835736145840249"},"_hasShrinkwrap":false},"1.9.0-next-1612200622000":{"name":"playwright","version":"1.9.0-next-1612200622000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612200622000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ZbgYbXTLXtr5AXQQbFK9ALwK/ZO211CQ2OYpIjf40Qv4NoRQzcgXdicB13IRN4s+q/krQQqxZxZ3+oNCMEp5Fg==","shasum":"4383a83dbe0f716344b67d920aee0ac0f25a5f67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612200622000.tgz","fileCount":217,"unpackedSize":22511587,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGDuLCRA9TVsSAnZWagAAcdAQAIUBez6msuz4Ir2dW6Qk\neA0SRAqEv+aHfJJ3PxSNADzroJihqMJwS/zXc1rLA09WmwrCIiiuIvWfp9tF\n9nC5nw4dqLFU5ZVv+8lSbHOl+YTjAq9pNE6HAiyJTFCtgRlJ0SBAVb1817Xt\nwZyFf+VYI/jny1tmu+MAR95tO29vdcQIpMulLByQqAZrZ87sMkKVa9YnpRZk\npmIA/tVf1XG5s7FrCIYjo8uw/t/5ZALq3JaUF0MmxcEcBIaPVFML1jwt+Y+v\nam3u4iHEjYqcZBNdU4H6JexgiCu4+ESh1gM7bsXXLLDmF+PskMhHiJqXpNVa\nDvDnrhL3vqgeD96OknwOckM3RsUFGSHu3TXTZZQ5rWE3hx9ta6wvT5yelAj1\nqsdL3cUxCjec/qWCu69Di+Bj4S8602+zKpNFp/LS0nEH6B410DIS6iHJFREz\nPW6gdErA+WgO6fNy+LXXXkEdADk1a+pmIxGTQtd2JiueeH5NJ1PY0twqFmCu\np7gDGgUVhhOoSiV21KoMsQbLdf2dZTxiR18PQR/Jk2lI3R85qnxlktz3O8xA\n9DGrFoCYzfckqrGLEsBJhoJOfmuyCXaMDJNvnnCk7PMxTkiAvRO0NHbvklE+\n4G882T4m86WPWSgXYStbW/rizj3JQO6ma1PdyeflO9Ti9ohhg91+kzEtsrWH\nOAIt\r\n=PvDk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtPr5TRZ0XVuRX66cOL01EN+qBUyej58eVD/zedRm43wIgQUIPhRa4UQZeFClcAi8FxJrXISVvdBwXXkAfIa5vZmg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612200622000_1612200842517_0.9799705863488204"},"_hasShrinkwrap":false},"1.9.0-next-1612206793000":{"name":"playwright","version":"1.9.0-next-1612206793000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612206793000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ftuGEcJGTsQWFXQUqkcM5XL+1tmDn5KVxMd+Ycr2oFUpxzZr3qDjSSRyCDiOZ/G3DVnmgJZQ5ejRQ8HZiCKmLw==","shasum":"a555df2f3eb2bbcc2fe65cfc18d0c92326a09ab7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612206793000.tgz","fileCount":217,"unpackedSize":22511917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGFN2CRA9TVsSAnZWagAAHBUP/iWAkzpXNU7KpMm1Xklo\nIoJ8L38ISP7tF6wo9QIPg10fgnmhAQjR0/K3d/co41TTav/nSj6Gvw20hf1h\nNM4BRF1cAqoUW+ATDYqqC2qJTZvmxsnktQknW0eoyBdFKLzrJjBPdteLDKmL\npsSPe1pa2Jp2zRpLefsNgm0UiYXsfOslAB3UXJjptANekXNLrRwPVnBI3JtF\nwabLyH9FVWr0NNoOLvF+lu+bn77uO4VsWobHTlCHWVM6giyCSt9uXu4I13c2\n+WT7aGgNB82xTMiDtikujsErq9K/enuQpApkxMCHGjOCpQYEPA5cZD6FCA7W\nnwpKENjsBtcdAv2tIcodSkKyK4hexkxQCUmUXz6/IZ332qUN59eVCWU9JUr4\nMb1CM8OSHXvCj3MTdNO9xJAFxhARwfR+ZpWYORR7nBRejKy2na4j60RWDE9E\nuk5KUehHYyBLkLiTw6eHcYZKHMRJTnUs24z7hslYIq4kLkNQ4L6OOBs9BvyR\nJusfWDje7HnOffvpWijb8BcxKddBFPR1RAQGWcrVx+a4aBlrw+4o68pVtJHT\n8RK7R20GG9r3I2TY1R5u0vv6F0ElX7XSl6Z57j/UcEXEWJuo/T1BFuZgyeAc\nnYkwz14jV7xD+hMlL1YiJ3g/8Dqrl1lc6tG5Fi15m8uMq5gZK46/HnJU1x8q\nUGHq\r\n=QyH2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAh5A7SIkyiP9eCcbPWD3sHX4kdb6sLKwcVIDbTE7TaWAiEAqfC3S0b5tmDAqBol1m6zeuKY5U5mNMReLpqGLjf+nE0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612206793000_1612206965910_0.7834898653768541"},"_hasShrinkwrap":false},"1.9.0-next-1612208823000":{"name":"playwright","version":"1.9.0-next-1612208823000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612208823000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-FSwSKtBxbpvmrdUfMnAomxW50ynJZwIA/+yot84Zf6qEQBicKT5RyS5c35unZfbKuR739ColaSBE3sXIQYFQFg==","shasum":"2c0ebfeb85a48184da907eadf9767b37f7922a25","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612208823000.tgz","fileCount":216,"unpackedSize":22529830,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGF4yCRA9TVsSAnZWagAAThQP/0omd2HozHypOIRrVRGw\nTpAYIKKn2KiSqzC6lqcFV9OOluSmiC/RmdBvLiXez/FFWfVAK6nQmXAuB2Dj\n5w9p5brBd0dQk/aCnMyt/ygH+kYaMKYcOJfphFroPTrVXPxxamwDUYVXPJ6f\n8zeysBfN7FtN4dNe9+1lalvtRZO4jMXU9LRwMELrBSFIObgMNVafDCBFvn+v\nxvIsyrIMwtqxNP5493Iz35LEUrKTa9fqpi2E+uAz2iRCFhu/eo/AyfOM2YuN\n1uNDJ1UhuXWB7RvWPk+XkBo9OBAff/CEICQX0MTuBcef04OL2RZ5OAiX255D\nw3rJWqgCmUhw/Tsczb8cO773dAbv40Eo8o/wQYm/T+DgzNNWHPzF6fNVLYMY\nYQ7mSiYqxIYqqCYokU48wlas3SgKTRdJp0ZLSQ8gVA4tTJ/EZm6Pa/sTIBtj\nbOwzeur6oHLEzbi3khC+od4M9wZNec8NNN/KhEJuW/NXH/us4E2pi2AAd2VN\nlLgXNQXVogFjhzlQbziuukrZ2UGdDqiCD487PDADRoEnkeqNEPtglg8MBDrN\nktFP7hUYr7MlnYb1I0VHCUYpvrOHGqIfDLCZzxLc/quUsU2i2lV8w6WU+0EW\nRs5/5WVY/30DdAkNMy5Ca3Y4uwc+JNIerSLxsZR5YeZCl43+iWgWYTvsvZ/f\nxY9e\r\n=D4yN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCKwQIaPw6OOXEZgVgegwbVwao8EknfVbds4wt4VhQTwIhAK4tIxNteb+3U39ariHAUUSue5zSp55l0DMMS+P2AX6M"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612208823000_1612209713424_0.8305930534687622"},"_hasShrinkwrap":false},"1.9.0-next-1612209901000":{"name":"playwright","version":"1.9.0-next-1612209901000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612209901000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-W22EjzTbuUDD3I8R9tvvUClKrdaPHKv5CdH7ktyzAJZkv706ndcPfHrwM4uX+EjbpMcqq4ZTucQn22O8LUVpyw==","shasum":"10657a487417fc3353943a8bcbb7f2eb82da0b00","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612209901000.tgz","fileCount":216,"unpackedSize":22530142,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGF/pCRA9TVsSAnZWagAAclQP/iikMtswcQl0iw9f4Pcj\nd8YWrb38vn2wFWSynR2xxOi8FPrloy2/7nO09m4FNMZiqoGWp2VZA1SMJ86e\nwHRnDe1tIwA3gCUgA0MkSSuAEjkuwfuVcLvAdFha9R3EQb32EgS1dHcZIeSS\np50r15N6/oBw/FLVq2bjEApmdWiXudDS+W87p7QkMovbDfh1kNq+C5GNQizk\nIVguP1EncuJtjS+ZTPI4Z+rEXsUemKjsyMb01GUb50ZBRrV65Gv1XqhxTLyv\nuQo5BYw1IcHfiLEVnYrrXWQhqQSUW3kXHzFp1l9dzCseWE+SqcLo8jGHrmOJ\n9Iv7Dxo2ApNvqLY+2Ipx0I3E8hIhK72O7YWVw+2U9yOboY4ALvQLqWRXIVVA\nfMvEK36seQ8HDkyB3wkV0/p28SKZSZ0ScXRjWxrXjEGHTPDSNQihgTBVup6X\np+AptbAhSwY9YVRKYKJXhPwE33c91UTuospRzudlgFAp/DOM6HqrexMhbV5k\nLt+o32aLC4AlvVk+LLb3T+SDEbM/gqxySHHaFi/GzNYVzJyto44EdrxrWk3C\n6q4ycRJxhR5p4UyGgPH36TuvsIxM6nmZ2G0XZSLO9OF7h16pMOmAtSNsClp5\nzPna7aByjwXGB0UdVD3uxxIJRlmN30KTKdVwsmLB2l5xI4iO0BGXVOX9Eqhx\nI9Ca\r\n=TfJX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICdqIjNd1gQZRTWg2JRJJY3sASS5mq5x3c2WZJY+RttlAiEAuyJHBG7I61+wG884JuHD3+u0sU/XCFRdabOyc3W+5nY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612209901000_1612210152286_0.012932985532342789"},"_hasShrinkwrap":false},"1.9.0-next-1612221837000":{"name":"playwright","version":"1.9.0-next-1612221837000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612221837000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-U1eL5wvO0QFz3Dhm/eSxY153d6WHbrOcN+wvHON3dUad73xBW65i/Wp+MveNWb0ZuOp4yDuY7cZn8p6QctSBjA==","shasum":"59178cb52593437a0d4e5719149eec3cf9370449","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612221837000.tgz","fileCount":216,"unpackedSize":22530922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGI4nCRA9TVsSAnZWagAAZaMP/2iSWXdKco7wxrgtq5j2\nn/wIHA8aTGZ/8DFrUKRLbnKADgC/qj8/x0yMij6Z9T5QqTfQRXDn3/RCFo/a\nPzKoi0tbEiNfql6LZhWBxhV5xKLJKNGURUoxa4bbWXVwWOQR9bgfL60a+b5/\nALzJGLm3gUn5Du7q7qgWW7qaC9Y/oyNKMkdumR/1SXcysi7QMVwNbls6snw3\n3ETxcbxcxCbHFmMnFLdW8p8v4riv2vYLT5mg8ZAcZxtHpzQ0v7zBU4gF3JuE\nHeGt4+UzAGsVtAAcdXpUkxX+ot34OOukVOU1XCIrKPuvKaDyhkVp4jXpz10O\nX8Y5wnhRsc5bC/LHAXF53a4DexliXPrpOFSsylHV9BiWmqzrGA6CZs8P60DP\nzFCl0OYrQRMnlqt8+uc11c9Fbl3ODTmQdltAhBNtq68OjqKSe9Gju9buYKug\nJSTsv8x4nnLmZTLb84/EWvL9EKi52RKVBjAwxXfW+8G1eoyhpnN6CiuVUCPi\nMJsx453cKSkfX4vC6zQ8nTp4/8g8wteaiIvqYhs+uBgstey24RL7Phu4LGuE\nkOoTDX4NSWtqzjfB0/IIEnn+Mdm3vu2D6b7tlqvNWnH16T9t4y+ZyjuGHZzN\ngGswarcbiHeclJBuNKR0ScdlZXmNmrHTw0FwmZZi8NfmkKdtRFjsWT0at8nL\nF9FJ\r\n=b3ck\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkz/ahCqzV+GHVYdhR3Fwy+Y06ZPW+VYa+oq3CMVcHDAiBndbxz8xsbYfWw+dC3P+Osi/SdMO2AFlb3zzE6UZGRNQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612221837000_1612221990745_0.17069358810553825"},"_hasShrinkwrap":false},"1.9.0-next-1612223411000":{"name":"playwright","version":"1.9.0-next-1612223411000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612223411000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-CLQriwcVzhKwrJ/RlTXcGlzT7Dw5MZlXYsOZCyBywoE2P4yzDVRQG219lowNHWm6uPfg3JF593Wb8ZAO9GT/YQ==","shasum":"ac8c418aaaf4f8cfb49b6615937e26b8c8ca4607","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612223411000.tgz","fileCount":216,"unpackedSize":22530922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGJR2CRA9TVsSAnZWagAADd0P/j5rb/0dEsOOmQ4ig0b4\nW3eXGmA4ftWMk1+fMBDO+GgivUDdfxo9TKzdjTvDoYIrZ2CDmAm894asvh5J\nxalmYh9Pgf3BwVpb1WL4MxAr3+YqZpwq/WP3icGjNAXn4lmwDjmoUbA5eBSX\nGYJB+AIwNjW2vmQrkix/GA1NM7Idw2U0/0s60KQa0feNqsVqR7yKcFb1GXu2\nyBKLFC4DqtHrNVp/0mp8xP1quwjUTt8+vsbbKTpratpw0mUCwGBXVTH6UYXg\nODy9YNxuUTSm9nq5EC6aQOIrDRDq0G3C7XG0TZD2lEmSPeIWTfY2GmaWvj/t\n8vDBBJKWC5hsMlqjhlLB8ZHP9JBgeCnlHUPdpPYgsWuOgNFdCw+f7WBiMWwo\nXzCFZlDwY8n92zrdVzNj7H+qguHiZfy/cr0FdbHbiz4WIBi0ltxRaSYX2z9G\n/ytcjS80TAWwdh8+kLuMUxS+hBKIRFVZ1ygZxKRJzIefLjiBgj2ARBrN63LS\nVjkodHD7IfoQ8aj6TmYjAgVWFa0dQ4qpyWGeNmXqbZR79rAk49ppZT9ULhwA\n1k1/59KbaOVlfuf6xJq+FWga1ZjxbPiLCCvwR5AKBNdPrN5UiPO7L7Raw3xx\n7FukX2pUgwLoeG9eGNZPnOercoPHF6iPKefyczUT44eAV+o0HhQsLuZeektX\nbCan\r\n=qb8K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVVDO6MTzbSyV7IrAoNAGNvNJV+WKJuWl+Nz0gzt05NwIgGHVvOKjpr7kaR7uX8s5NXXaE9p5Okkx6bvxAgK3PPzY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612223411000_1612223605579_0.024379145651940437"},"_hasShrinkwrap":false},"1.9.0-next-1612249013000":{"name":"playwright","version":"1.9.0-next-1612249013000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612249013000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-a++3BsXXYdTdJ0afeCr1TOy6swi++2W7kuyxNBMTLTXnZT/ZzljOBUGLhjA56oYi+x12kzyBs2vs9FilPvyGqQ==","shasum":"a4ca36bfa2af16bfc6ddaaec0c06dd3850f208a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612249013000.tgz","fileCount":216,"unpackedSize":22531085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGPk+CRA9TVsSAnZWagAA+bkP/3yUXsrGyacLgFELR+N5\nmIPLDCaYeeoywiGDG29KuQoaoTfjtnvZLQ5ekmeiREoWVF1j2jD+fIx511Qr\nJMdLty/9NeEp/9TDN1FvUnX5s6OgtNXBnmUKb/pNZO6/axDj5mf86DHNLOab\nWX8bHvuVEND2MKVDmDj1KXCl3Z1GYyeRQQT2PprpbfzAYQnfINU3dw9wkoyN\nYyJG11elMbBBt/xb5PPYdQMnxMYPGYwZg7bT1JegUEn4k9vptNSSXadgnqaS\nny+cWJCCWPrumaUIhYCbt1cU724sN6uuVaAaS50Ppw6/I+tcU9QWZruIahcJ\ny9gue/TyzSWYE9ceJ/sIluqTbj5emPdQFTS0VgjSnz+qVVJ6NGXeHmtrXIG5\nVE0JNVv8wWJJAz+ypgLjCY6UPD8MbwSyB8vKf8VpQf3Ek3Hd1QJfFWQlG9VK\nyhtJTxRp2uXuF857UF84YFfYhoyWCLVAMjKA//nTXPdd73ycEgQUYEDScT87\nyZRmdl6wU6JxoWS3MeA5aBzKjxkhTK4Qucd+Oi5Q0hC6G6x2BU5PbA85APYB\nMs69DP1jbLBg1XP+nZUehGk8ObJQwwJgCIIeJFKFFmNSXU26Azxthhfrc65K\ncfGzHRxHXJCYxRTBG1miXGcTVWHnGBO01CQ2G0QLZ1kN1zpVVf5/lRLSybE2\nDYe0\r\n=pHJ0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKb5YbqGg9tGjUflUbLahaq72JUh2qpYTQJP+mhTcrOAiEA4Wsb5qtEV6E2oJ+H5fBpxg2bGgjf20+hPJAQzMqB99k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612249013000_1612249405255_0.8635391400703063"},"_hasShrinkwrap":false},"1.9.0-next-1612290102000":{"name":"playwright","version":"1.9.0-next-1612290102000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612290102000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-xqDftniLqpnLWQkBZOD7EE8bgFn73n3Hj9Q3M5bRGK9Rq8+S+vvpygBcjismNjtbGbmJGJlGcUcp0MjUMf7psg==","shasum":"6cdebdbdf8c2a89bd011753f2d10478b3944ce0b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612290102000.tgz","fileCount":216,"unpackedSize":22531599,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGZjaCRA9TVsSAnZWagAAZPgP/j2bjVZ+ZHMrzyiMV6Tx\nfy+WkWHGbWufVQvtOYVlNoLXH5F+5cGCU0easXsUExZKyORSqIKlqhjlEIeK\n7Zkm5CBs38D0uyb+/iQA8FCOqtcOUZruU7DcNlosTSBvYznoIL10e8LE2HQM\nhaJqrdN+kvG8ZiNh7FpTtMMSMnNI3rleKrYMoaZ/kDPr3s+g/myuW3pnlxK5\n6Bhi8htOtQlZxAD+Vjz0wpyiXDzaoeXgwxQWAKnNrys1yIL75aYzmv0Yh+eQ\n3Y+us5BkJbSbfpiytfDlZNWIi8bK8H/V/LZXZ0Sal9yXczZ15hsY4O/eqKoF\niEmS0fb7WZvuSNyAutakxqDiDH7ZMokl+4EaIdBVh5OjAo347+nE0S2CyZ6e\nucbycPK6Rn7E45n0c5Ryef9lsXS9oIwUDcN5ncKJvbz/Y8UmJl3t+cugTdJ1\n3FIH7o7DW70AAwczDGmINFoajUQE5GiAAXlKh5zX8fuXujPHJiEW3XDrDV5Y\nmT01ECH9tsxPT4R3LqED42kedTEb7SgN0rKa9t9mcNVO7k2q0gOAAESLYqKB\nV6BGuWKNzF+G8oq7sRrSI5ynshiQQZwg8DBb3mzB17K662oD/MzZ9000rhXC\nUOXlggOsOiNSQrw68rYqgSxh2CILA4v/SI48O5DdnGrlKEtliGimJEj5Pj4R\nvLJL\r\n=CBFO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ9kKLuMWVDpyXeV4ajCInnMTPRz3kJeY+14ppj6ujwwIgSMTFPhIXbpUxamdOiBDo0zy+nyHqIVs0Ahk/t4808z8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612290102000_1612290265244_0.29973928937495886"},"_hasShrinkwrap":false},"1.9.0-next-1612291596000":{"name":"playwright","version":"1.9.0-next-1612291596000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612291596000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-0ibrV2lsCc2WCkGQrEV0F5tVMaEyIkcUCiiwlSj7zBM9k1VsI3T2hF27Lj9IdFTUPajkA6T3PH4Slhds+ODjIA==","shasum":"307658e47afacd4ef0fa23d949ad522d7b955709","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612291596000.tgz","fileCount":216,"unpackedSize":22533672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGZ/sCRA9TVsSAnZWagAA9P0P/jkBEmw7qfpndWccEbpS\n6cQu8DqVi6JPJ+QimkOTz/WyHiklWv1UjtvL8osmA77K9GTuNBuc/0GXis0L\nCkjXweE1wF4QJSmyB2ilrNRqYqefwN/SqUz/LexdvvhGdqhmhM8fH+xWbbuc\nV+0GQY0I3By9aEoQcpakJhUTNEOaWpDwlqDByZFR7bgsKLrQZJx8rQRqa+Bb\nTdMmzEyChRmDDMIbK43e3q5/h0v+SUbPMqihkSygig3WS7fBMUkzjvLpO+77\ns6ToSGCSDdbBVItBQY7WaDQmaq+zOpk8fiq11pU8zOS/B3zEkWpR4R6M0dpo\nGgwBM4P5TW+y44QTnqUC2hcvJXZIAQ7YmxU+4/JmZdd983UwLZ+wVUQFmnMO\nL11yFCco5p3mWLV2xQKwarX/u3u/J4p4fZuVV+uceta33WUDLDcCozsVogIl\nYvttwJJCiq+czQKlxzt/5Wif3se5uAu9/kZ1QaeL5QyQUBx0kLHPZaN5e/4i\nFVbm4QCdLkBhavRdleBUc2AUqAcQ2rBNnIYbfd6/uPBfslok6J6so4Wbyyub\n2yel0VsPKu6UsLIatx4lIIAeCh7j02DpRRSm6lUzhAWQgAQWr/oZmrO3Ahaw\nHwokGlgmu31RYgqwDelkkMjoAJc8lmVta/Cl6lt3JN5Nbk9qzn/rEe5GDwvp\nJHWz\r\n=Nk0y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDADUsuoJ8OMy9isP4nA7OziRsqjkLzp7AJTjM8xiddoQIgYgPccgnAe0DCnN2StDOZtYYEjN7hz+/zAokve6KSUiw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612291596000_1612292075294_0.7124328634313322"},"_hasShrinkwrap":false},"1.9.0-next-1612292242000":{"name":"playwright","version":"1.9.0-next-1612292242000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612292242000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-gyjftaGLrU7OiGB+9pVuZvFkPyNqZRj4GE56FPAfUIL10A6V/I0by6kv5CeQyJCFBmwxDBYHQdmzkom1Hg2Ugg==","shasum":"804f5fb5c9074d53155ba46231c3abb41da3bc29","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612292242000.tgz","fileCount":216,"unpackedSize":22534733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGaIICRA9TVsSAnZWagAAAlQP/ipB8P56Soh1RedMRT0I\nd3/yh3q8J0svMwnYHXX4Gy50wtJsa6WURvYbbulU4rpVz1HJMPi08bh5VjbS\nVq2KaQiT0VOtbORBP4XuZs1GaBA06+WgU8D7tz5SBgBOB8ZBcjuX6bMzfJV4\nknkQ9HObjS79Qb3V8qP5H9DUJ+OEsziIMS+L++ckbi2l1LBmbUyQnxHSYEdO\naU0Ls8XQhbVbmA6v4K7+i/5dhix1mQNkx8amQN/5KsN5N2wdXuKZ8CmKGTGx\nt39DzxjWC13o3dQcN77VxJFXWSGuWV5FCOqCvqbKy9he9qBmVzA8cA3A4DBC\naLEki2vmfdEUy9t+AzY62Ry5Nb/MLM9C7mxWuCMT32gFVSeoYTaXFIlHciTH\nJvD8HiH/WRQpRFq49Wsmi0sm3dN9z0NDd6doakbC0f3zJUmCUPaszLlSH/un\nYn9O0n/DMA8nQU2RnXQJ00icEPbNXt9TNPHdBS4WgPKO/m4tBZI5fKPGQb3g\nhGZzICdYBVAzqA8kqaDT2eJCklUDlAnNuTUatjvjRt4YFHRrV/uvCdNCKj4n\ncWbv9H+7VDyPnESenh3GstYCsKt1nAfBlEbISQ/WJGh6P4A8H3k1ca6RVKao\nKK0k1U014CYl/0TcQfT/obp9A1SPfiewEPGlK5vGK6M8Bldoa7kR6Ye2ru7R\nk+Eu\r\n=enZ3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGT49I5Hmi1MjRs3PvqfPzEie/NQEfG96qe84Cu8ZxkSAiEAuiMY2i6LbVIP1HHkT8cLJW47NFSukEvtvnjP+fdU3HU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612292242000_1612292615234_0.0579452676450769"},"_hasShrinkwrap":false},"1.9.0-next-1612297085000":{"name":"playwright","version":"1.9.0-next-1612297085000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612297085000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-nOmUvqomaHxsh7RyMNyQsxoS4BOGx4930+O7U2gcORB8zp9qXn5xEM9wU7Qg1A15QVkhRmRBGtBw4Ub3ltQL5g==","shasum":"69fd06401d55aa0b59e4608a35f5277369f2a875","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612297085000.tgz","fileCount":216,"unpackedSize":22534729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGbQsCRA9TVsSAnZWagAAWGAQAJ9Ib8fmPCzzTwr3huCk\nnfYTQ+riUPDWJQfTR2fDB5SanWdDsKTO6ePAYpxLC0HnRXAOzLfKiycm0lQU\nAn72VhtGEybu7X1B4OWG/pYqvPVe70pdPTCvhplVH0qpnzf5KMycAT1fHvCy\nQeXUyhRV4w9QqqVibnGNW+RWFqebEq9Zp07VGZTtCRLPaXvf+KEMGoW1xs9i\na76qZTSdXgzStBKuhsCeLAsOoHVP/amHfMJtaS5iwKHve/8RU1/YJw/yy6a3\nMvIR0HCRSDQzgrH9vEr8c/eZiXXZzgkPm62nz/AXZtaRtVDSV0EKgK8QHOaK\nm4uNx4MicdYbAFpwU9S0BuRZKidposwvCvBBbgLiRtDYYdknOh8nWm3XRkB0\nDyilaIy9lsZEvQ1/chbX08CYMIfGSIfc43lMzb/JXAiCj9+Qz+oZhV6Zq1T2\nrFF7WpqCOm0wkWfk4BONGAb9xJHZ15l4q3WuVbh1SXQ5o5tkZblSluZOex5t\nw/KsPpCmzqnPRcP5/wdwFQMYUD2BUaQnravn20+Chk4hN8vPPDHVQfOKuy+S\n/LAm2wIdF+puG+2+ZghZlVLEyVaQWSqj8PCqyLD7eRFZjs+9LUtFdELn8/1w\nDBdrr05X1MEm3iejaTaXWH7IuTvmC0HaAqszI4c4VUUPEeLn2wtOqlhde+RK\nS+RJ\r\n=YErK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwoOYFeYIFI/4zM2qkGi2RQ/JIrye1IpEYOCTbZv2RvAiEAzwIhy802a2LnghPeCXERo54tqg+knDsn7DysTYzX3dY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612297085000_1612297259118_0.5678049757658705"},"_hasShrinkwrap":false},"1.9.0-next-1612301321000":{"name":"playwright","version":"1.9.0-next-1612301321000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612301321000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-VkrIqllehh1UmZerw02NQlrdlCxATgHG49IqHMk9Bktr2+HZeVlxStwf0SRd3IplSb2xa4JGjk7DPDHb9OTmTQ==","shasum":"5ea41257e692fb2c1820b6461ce9ca3af40bac2c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612301321000.tgz","fileCount":216,"unpackedSize":22535159,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGcYACRA9TVsSAnZWagAAvu0P/j36Q/7dODxaInn0RDp/\nQRmPG/wH3Qk9CbnYGkMe+jS2PgE993RVTjGTHOVuw6gzEmqEH2GAvw7gOlAx\nqDum0B1NiVtojpeimx3Es3Km1cxDMQ+ZI1ofoOQMa1eNpd+w6dXKb+9MeFbz\nZphpvkCEukbt3O0DIb05SGwaFv7rbE/xU++moFNaITMMxDFtReTK9XySd3HZ\n0v6GS34LxupiWOn8gjjlAU7xJNzPAcB/iZsjEc4HB+V/wWY0ShhGxje4p3M7\nSt1cCX790Q2NiYLCizyAVKptjLjaZjjpdoUIpMZhKgGHD/xmkqTeKvgwdCG2\nzTXzRgSjj3C/uikHHm6aRI6d6gPSahpFBAK+wQfhHLZJPHzVdoMgnFeRiLwU\n7t02iBByWw6O8f9PX+F1OXRoV7oXO4KqrNGUxNwwPqWGq/lpTTVAPNHmjHzl\n+xh+5uAStVtlJT2xm6XtZtKO8MkOaG8FdbB06d6FvLWoCpdYnSaBbKHBganT\nF+DVsTGEoUv/vFWL8Hy2FpHe7etdY59T1f3ZeSk2eQ00IDWMLuBIuvxS463T\nnoWRUuEngnNp/lydJcd2tKftZ2nLwWllcNBgZlBZVOOGYby3WajiY2ME2UtQ\nQ7Ru74hha5cmzg56OP6ts50sicsbX30QBY5ZV9tSZjald7W4Lu4WeX1yi/Yh\nX372\r\n=7U3g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWJOh079lCj9LfrNKf8RzZZXk9aCYZxeBSumn7SRpLmQIgCEhvQapgVbY6m1al/STHC4mcl4GH7gnbBCeI9AHu7os="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612301321000_1612301824075_0.9440064930373708"},"_hasShrinkwrap":false},"1.9.0-next-1612304751000":{"name":"playwright","version":"1.9.0-next-1612304751000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612304751000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-wDPJaJjNYKj58ENtVXOGfW2P4RIHYJazcfzwtjqlz96ADAVLsmoc79/QqCs6qkotV5ZlVtImff+bZFe2T4qTcA==","shasum":"a95cdfbdd1d388b245a1ae680d8bf04bb0bc3f2c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612304751000.tgz","fileCount":216,"unpackedSize":22536664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGdIqCRA9TVsSAnZWagAAlcYP/2sATLGoeOgv2q6filo1\nJTwefYKSH0KegvTOp/5RiGRvqr/jlchlS9nvfWuq5DOwOmaW196EGYpn+Roy\n652Ucu7sG2jO8zPcCaZr1lk2kg1Km2i7Ev+juXtUPQC5JSr3Eh72TuajuCCo\nyP9kXKvHa95VIPb4L1V/vib3OCnW5VD+zBBef9TFm0qcojDi2GcJk/5nATFW\nvFkn5wFsf0FaTRZi9aHLY5VFaPEUTq6dEMdpyuQHm8QHxQs7Bj9cKFkhV8O8\ni13iOgoHVlVmoU3tiMl3s63ITzGZuyKNIrZ9Zxbkva7y2yXDDJfW3ZMixtGI\nLHKRa14eg4U5Ldh7kiA62x6QZwpzjY7KS4G6TiiNUtLVcFwhraqUtBlYLId1\nQE1XyNK/2crm70Fx/3Ot0r+2YfSdc1Y9SQi7Du8WFVfRLv1oy6++R7dXbyHQ\nURYinIkPTvWesqNXs6qS2cGOcWGwmgo3EW+X3Cfx/k2n6BpwUh47BzJqUeQO\nYSwTfRGaFYaKMeGk6SsT5RmNlQV13nBIyGCB0cWqF5QAwhqmHAKj2rnygxg+\nnU+eln9xoF4Kq/VlgYfM7gl/1mpkZX5I8VQZwn6qOKAd5hlKsYznd4HYg2OD\n8tbgsqDhZe158jKbGpt6A3UTnpzQwr8SU3cGcDrZroSu2usMobkSjeAHJuIz\nPY64\r\n=Zc1W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCo1YXI9eaE9cbWyD37WdJzNwcsBSVFwU+XlIe5ZNob4wIhAK5cxUXqnK8l61XybnUFxWLp+o3qn6j9InSVdThs/mMT"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612304751000_1612304937425_0.9902874361683089"},"_hasShrinkwrap":false},"1.9.0-next-1612308035000":{"name":"playwright","version":"1.9.0-next-1612308035000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612308035000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-1I1gWbOWmVcyR29KORpjoHQe71hZIpUuOOlK7QPF+w/Rk56WLVGZQn6Poyfo05UF6tGHqkRX1lTI6fhcbknmmg==","shasum":"60983029a2cd014b15495b56685d2370b6db33f3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612308035000.tgz","fileCount":216,"unpackedSize":22536664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGd7pCRA9TVsSAnZWagAAktIP/jkJuuyEvkfVAkjf7WjO\nIWjXRkCDGaPGnyFVCoU7wBT5fQNC6u/GAj0t5k3kt5e6iqUbPwNRV0vp9nfR\nUGl6KfNPKNHQSGY8E7BX7HZm626E0qqKJFpKdMr7Jdn45tkmuUwbwQeIdrGA\nW2nlsIHeBNpXdEL36Assw2+j6L97HBI4tY+OzlAwO+NK+uzDEInsTrPG9SIU\n2FhNuKjo/yOfkxI3a3nx0RPuNX3OyG//QcCE/v4VFgZX+0XZXQwnPU0i1H0F\nDHh3WFDWrNGz4NMuS3KCBfK0/wnPcLMeV6AfsoslxA6UDeDz9Zn7ceNbfg/A\nlEwe9BMLwV9og4lVLaV/FJ2XAFueRBUdn03PryhVg0e8Wa8h+/UiIMYil8sr\nKwx7PlONWYMu00XtJFsJ6ahwzy5/1rMHpvttv6W6+sIdLpzzeENrUIhv5VtE\nrM9tee1HH8uBHm3+RiB/mCu2T970ZgFx4PyNYKKwmh6pBU1nmNW/O97UMT3j\nepGnt21rSbsyRosv6rxRhBv2sK1ptC+rHu9ISzGk8qrPW5R0TwZ9+NUTzraL\niFcutF/Vc8N7ZFrwlyRXzShApUtdpPk699kIGLtJUBzjdG+wnXBALcwm0MZa\nvzmjgfis+V/hk7nm6L5G7Ukq+MtLd/0GeGVVnSs0XhGOd+u92uwjgruSsCnR\nfyUS\r\n=uG4G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB95+TyM0c4j+SYX2cBAEK+eIEt+/RXZp06De/pH/N6MAiAMSvsolv1HvApYd7P3OTpa4x8/3gDvH3OhxcGdWvePXQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612308035000_1612308200591_0.7395796656092164"},"_hasShrinkwrap":false},"1.9.0-next-1612314879000":{"name":"playwright","version":"1.9.0-next-1612314879000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612314879000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-QXGhpFYC/8AJyrpmAg1OOI8uZV0iWvF/MN31fQNuKHmLrw/iaT01sAO6h95aopStQQg/kPvit7IvBJEp+LB11A==","shasum":"6a41c6e90f00ce5b4bc7b37acfe51f37f8c6fd9e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612314879000.tgz","fileCount":216,"unpackedSize":22538261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGfmgCRA9TVsSAnZWagAAV08P/jw1wV+d6Lqv+zTNYrLw\nfycYJK/h0xjbjPcqqahjlalrrsMhPLdfQwF5QM6QIusbI3OBy7OLR1Lwxe+B\nrxbE0paEssQiRLCTZkPHtkHX8D3ywZhmL7i4GRP36mQyeYadWGKvrajgcUMQ\nw2SIac/pnxxcFT7shuFStCPjO+2Y9wssFO/nDLTmAMSFgF13zBO0DNVuM9HK\nWBP0dFW2al02XGmYpiI098toWCyydA2UJDlbVod66pWT6xYMPmBx9IvKAlfd\nbamM1lY4XaYaWeDD7vuA43zAN0AihcgiQE8chZYLF6dEWdblXmP9DezMPLC2\nrc1Pr02b1roeBSz8GIhCidWx24oXZbc1Tc4LC/DSSrwK8nfqt1uJ9aFk9/Do\ndf3qAJVv6/fB+HGMJaN9qzYXEr0LxGOYuIMVoDrHhzs4u6tj5GXhPhgrh3u8\nUEwfPkiGQ5+GPABUI5hzbNKrIectoWb2OQtQ8c1zBxFQwbE8tcw8Pyysh5Dd\nNdddVs6EZqj/UKl81GrU2DqfRHlSSLuez/LQf7ciCYjQDTzHJ+bx/9QLaYCJ\nzZe1HjqB/59O00e0o10KYYqaYc+g9N7Eg4UZmCEEnWFXlTlhGIqDUjwTEz+s\nFCSAGXOwKwdEIVkOYNIy/+Vlwl1Cr7Qph9wyeePk7+x/21pO/dLodQKtW6Ih\n55Kt\r\n=O4UA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXvVpzB/8zwzj8H8LyTe0EFJJHJ7/xiPCBYykGLBDfnwIhANGW1m2+PaYhD6/y6hbWYN+h8hezpOMad63cmrSyR/Az"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612314879000_1612315039804_0.22927300062580858"},"_hasShrinkwrap":false},"1.9.0-next-1612316912000":{"name":"playwright","version":"1.9.0-next-1612316912000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612316912000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-cII257rKUp3LrY4k3FWl4edWcCgJS4dpnYrATIPPmNjWHFrt2w9DaJvWyOxN1+LJjYVeQoRpf/PS657L7Wxgtw==","shasum":"4ad9f006b7068bbcbf010c3cb590b1af4b4414a8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612316912000.tgz","fileCount":216,"unpackedSize":22540273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGgGhCRA9TVsSAnZWagAAH+0P/jhCfRvh7tNOVz9YfCdX\nbgpVB/Kn+aH+qEw7qfm4WUGcM/vLiCh43epiizuNJpDDfscbGk+lpr6VaYiK\nwhfTZylkwijhZznIlZi3yny8M4W1V86qMf2s33xCA673RU43g2PweuwOtPN0\n6obKBsaZyy9NVQ5sUQruweZHUa2bs+MLx5JPTNjFc4Ghh3mRNk6IKsNeMpH+\nxKI+VVCuSGcU15oFP6wzMQ/ahqnTEmpznQqoUgn+FkyadNBm+abI7jMuYdlR\n1lP4l4SiJLRyhHEnE93z0HQaPfI5HtgrjabtWfByoTIJs4e0bH6Ojwn88Tgh\nJUydWhKECSOxLZQaaNJAGDjtFtj6idV+d5fUeRFAjqwDcA7d5wuGiBkplKzA\nsHM4Ly2PXV02k1SDk0bffSorPn1CUmQxxRhmV/BS2+7/9b3Xn+pKQf1BKaIQ\n5ozIlUmDnavPQsOQE85YcCfx2SZDNfhBQRj1mVCrIf+MCflZ9UYNsU1dAb0Y\nQD5qp1zBZ5LZdAEVkvucISaSsDwD9k8dgVXtL1UYX3DVVYsM7bJgpiG0Perj\nTnTpY5bmMEgiqZXhe18ZmoO3G6PMtjg09NXjVA9wY7WNPnz5sgmj9dltkMh5\n9swTv3jaLNkemhdYR39UkEmXLJPimEG9Dpo5J5QzruUD8FvpPWIdIEbYie3v\nUs7A\r\n=XEmg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYcDtaCt73kmMEQf55/nZDcI+VrqpSoQQ5IWcRhkXZ+AiEAjewWBTUGotNpZc1YrkJzVRAmYGPHO/jrYr/Vs20CYro="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612316912000_1612317089128_0.06999344382570749"},"_hasShrinkwrap":false},"1.9.0-next-1612330512000":{"name":"playwright","version":"1.9.0-next-1612330512000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612330512000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-YAi36sdCA7dFdjur5d1L2gy1ndCcN90SEa4r/f/VNw3PRnJl062F2upu6i2JSZKA7e7aeBbtFH+AZuRsDcz+ug==","shasum":"1305f30eadb179a963167376aa273a5b7ae9bb4b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612330512000.tgz","fileCount":216,"unpackedSize":22540273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGjbCCRA9TVsSAnZWagAAhzwQAIFckfOh7IWs+eAXuDub\nh4ijx/gy8U2qK0JsafjXTSiyCAxJrmgC/rE258pveMoNH1Ov7h4gkhSpO2il\nHreuL+hpORt9yO/o7rsMCq6Q8341+iNHNUDHyFV3A21PmH3oVC/9aSHZFtWZ\nm5i511v9DTOpu9juSh8Xoz2DwB+ooawIFW3qDA1sPcVeBb4CV2iQH7R0qKcK\nTjwUtEHLA+1t9FYHB9N//DlZtXjo+sWVnZ7reS6UHATKkqeVd0/MDXdw4XGD\npfrOYFcTRhwosaGLco4XTKuzINvFmzik9pVPgnLj8g+YqtWJh6YDCo80trU/\n+Qhb2tMXwW8B6Xb0rpogb6qCgRwuHP/zjigzV7dzoQjxZq0wfHouChEed0hK\nrANgqDlSTtQXCHPJqFRMYLOrzhC3EEdA+3bth2k6gd79zj14EZKLBREIw8W6\nNuQq6oPTviaxSNmnvMuN01kZuD+7oeWmEbKcKewdLEGwvxB9Ii+Os03hJrUS\nSWxK0cd7JNbU6RmC6o2L83dJdVNClkwb1SO4ahrewMBx6gdRu4YsiD9cinxh\n6SJkmc8YZB5d/hEpMDzPGJ3EmrDJZ5NtylxkhbyRGZfhtVV0ncCrJnPNEkRC\nR/vLstnUveRJ9d+rhInys3HCBDyfa0s2xsZdTBddAam1MTlnClKBcnsYvq2d\nY9iK\r\n=MXfx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5qbVphj2R9qUlridLKOgetzV3jmT1B4JTkAMpepl4jwIgY+3CmNcQbKGigiInpKmzEH0NGqxxasagGyY7VqaFo1w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612330512000_1612330689648_0.4723413623219792"},"_hasShrinkwrap":false},"1.9.0-next-1612331603000":{"name":"playwright","version":"1.9.0-next-1612331603000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612331603000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-eCwthJRRBm+BYrwAc/+5wXWAkd/dlxkYI51FeWQTbpiwsmvkgAzGZa+JS2tITBoKNxc05vmFVHJ5qpRfZnroug==","shasum":"3f2dcc27d174cd2404b70217c6ebb4c14ce65c5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612331603000.tgz","fileCount":216,"unpackedSize":22540273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGjtxCRA9TVsSAnZWagAA6wcP/2efzlZWLPBBtFl+yXWx\nFlEFhcoHwhGFjWVwtERDEsJBGQKOHnbOkLJGe1dkoMPNARkTwhXE72eDfBuv\njPd65Fqme8dfY/vn9y0sSjQFOHu8DbYtZu+cQci9RPK/hV72MLwujgB1y+uw\n/Ze31EDiXwVaA4dZof2wkvs/IfdUkLMN/sm40njw+Cu7M3h1yZBqRF9xGMSw\nLq1gHc0qE8z6XCBEwa1+b8EHhOIUeyrUT7xwRubAQWDfDDhd0Lea7jP+JCu6\nEEZiwAXJ0zjPW2yIZfnAxaiYeJkzhaOnyXuJrNBMUOBU/hK2FUbUcfV1LFsj\nxApNEnnLw0iogpDL8c0fpP+CC2Hcy+JGR8vh6lwJZfmz1c/ym4d5xYu+iqig\nMezER+08Oai++4ib/Giwbg1OZHfWffeIV43cunt1u37ELlT+O0HaMtwYafR4\nHLoVcDncNbgeHDShPGCSuGbx/4yrVBWUfS5b1OYRUWnX7ZpZdOptlE4QGxsB\nqElu7Hkpp44fwISHkrFicO7iHRuaBURkaZs81u+MWcs7pB9/rvs3RtAmAG78\nVRAzwQZecsLAMEWQPFQ7pzyipm7ZE52aoIZLWQK4eoFRfMdEPB7sCVXHo72L\nAJfLZY7slueEOGoafcmEytY8i4HAPr9wNGx7+WdIw3j4fO2UQBa9nS08/QrQ\nMK8J\r\n=3//x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3UfMa3zeBcrEQogFLu5/EbxxhfSfYtbBXcfyyXZPo2QIhAJf8lMnWbE5A3rmScLEyvVTHxbA2z745fYpLQl4I0QO/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612331603000_1612331888652_0.9459508551119029"},"_hasShrinkwrap":false},"1.9.0-next-1612332234000":{"name":"playwright","version":"1.9.0-next-1612332234000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612332234000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-16/HQZAeM3ZKka3xokHxvpryhH5PeFZUUUu8E3Fju11ltLgsHK8InJoRxBZ+ewu1v7vJd20QKA7pi0bJSGDk6w==","shasum":"c2b1c2404756d4acf4c80a573474d8a9a2e7e088","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612332234000.tgz","fileCount":216,"unpackedSize":22540273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGj2BCRA9TVsSAnZWagAA3TUP/0oWyBt5dW7UpeF8NHUi\njaRGmC3iRC4USgtXjqa2Lz7cLvQZF2PxFWVZwObwknb9jWiniUjNvZsBH2uo\nEmQSEc/+kEluuxBWDm2N+Ig3/5OCjHZiKay28A0i6GpAXnj16AxLWG5yzN1l\nld1UFqnndX+bxTClDI8vrbDzQWNj+Dj+KyOg7YibNxOXBBijq94p0laR37Ie\ncm5rFxr25v17IhPDn9xf/APH9z5tOz2ZYe5T79XFvSNmGU1pCi407WHfmwYb\neP2jitTuyu8OhihboxJ/KZuI4EYTzBqj1Ncyf4O8AUoj3HTD9wSvMmycUEqG\nWBckZ6UVDwB39jRXq5v3ZJOfUQ7WAnYTYRrHUH1R96rtXzPP/Sz4QMOBXDGB\nEY4Y0yb32Ue2CBvnSiWh4c56XKeWZBvRKl7rSqgUGRtsiFveohP81JM0ee4J\nsmFLpFhwxW9RKrkMmrpA0If26y9+NwPnBt16a1YDLvN67bJMZa4ojUCxhksp\nOJk7VBPvfnhBT9oxJOQlL9rKc0t0Y38GswPcoL7KkuEN4aaRD7hyBYB1wW2I\nbmXdioSByAAmjOJhult2gmXIO6VOGpHXv4G94mPHm/Ba+O21VFGuHiC8Pon1\nwYJZGgOJouK02Sy72Wlv83S+CL9SoaYkvTZT3EuZscw5yR+qft3/RUQZvuTo\nNPMA\r\n=d7tX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/MFfsy6PHwJ0VclI3IOAVJ5nVPR0oXiQVjOCU9ebGJAiEA1p2Re8Xplt5v1GeBv9Foo/mBO8b+9tCNXUACuh+LwIk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612332234000_1612332416679_0.00047715870768660906"},"_hasShrinkwrap":false},"1.9.0-next-1612335573000":{"name":"playwright","version":"1.9.0-next-1612335573000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612335573000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-+XrIruOm5eaWBclg7YoAtDE1oFpZI9rWPSwD8REZyAIwf0u3QP0oFadWrClUu53Xt5rYHlB/2yjN7R79Lef+uw==","shasum":"5fcf956ac992f5690f17ce67c7b04b3a202e1c92","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612335573000.tgz","fileCount":216,"unpackedSize":22540273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGkqZCRA9TVsSAnZWagAAnm4QAJdeu9JYFrO9Yq3QFKuO\nOztxOCmLO/6vS7M69WXb46UrnylV7KL8FUzdMv3GYY3wLR2fh6DOgkOvJmWU\nd/pQMwOIVfEzJSqgH1iLZkWi7q5QtSwcBZ718yX18pnZPirx0Mro+lvRa9Pv\n2/uhr1PeLY1K6yv/pLSZMkrPoD72+SDvXUQmYLEv0KsDLAA1eB7cTIfhwWil\npd6G5MyKaFQ0vWucWK+lVWnvMna/zb2PHjXcD/kPSwQXbsbyQir/tu8TbxKa\n0RwxzUHz1TdmcELw11NXrnFH51N3h0Tzfvs9kEt+e3oANn+KFyFYsYhIv2md\ncjyto4xGlbigp7VeXdpm0zPNUEnusaVgHnMng50Uu5bb1znsC/DYZJlJ7rBz\npxdu86GIjZGfUdhYZCvqchhl8AIf6s5gGD7lKzguhCbxW1VAmNcWYOyFmR2k\nzJUzjjOo4QDiZ16xWvMDHjqYnjtpTH4kTgtHsOwworC7xZnyc5RjS1pZoS2J\nfYDbgkXF2trPy/G4gFBALn9PjPCXRaQeNvQfn2bOngc0wj3NpCpJ5qxH7K/R\nwov3mxqWy9LnLl/qAcdONxHVgwQda/fAtD3xH0Wtbq/aiWLNcdlJwyhCSl0T\nr3xhD5fmyywXQN0ocsCjb+kMInZVyuM7FBAdzvlLR/vQp4gNxrHFkli2SdSo\n+tTu\r\n=GwvQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQDcy1ZhyfMHpAVc78BJBgqQP1KDEYlDXVGmWH80tJFAiEA5vh8KTqLytWaHUAe5fKiKphbIeDRa/6XchcDGiMyXBQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612335573000_1612335768905_0.45932294912698723"},"_hasShrinkwrap":false},"1.9.0-next-1612362929000":{"name":"playwright","version":"1.9.0-next-1612362929000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612362929000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-jkx/tXSvMQqH7fCwJY9aPUOJ8AvWPtectO1vauSPYO30eUk/maSgrM59FyHx0bItCYVaxhdv8YO9tU0NDPsQEQ==","shasum":"f74448c6210db7f2c769f29db9649fa6bb07b10d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612362929000.tgz","fileCount":216,"unpackedSize":22540273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGrYSCRA9TVsSAnZWagAA4FwQAI0Ovty1GqV7vgTF5cHd\npx4Lv+8o3hknpd1eV4dziYN+A/luswE/6mvB+w8GYh8q7/kiHvIFnnf3inSO\nER+0YaSUHxB/MA/3Oqpo+kwszx7Qg16+r5axepxl09Lc1xYe2RGjNenMjdcO\nyHTOpwFYksbvnH5BoOSIoVx8ecrhQtuHYWx2kpzUFANWQWUrDo2YdBX/HJvt\nARtKA+s8abSIdLValGRGivt63CIJp3YrltFJEqwNiPHB2yEL9iJXKDvny/6s\n8PLccpAT5+HoMtfqeUJ0YaIc/jFhqzPSGVx/Y36spizMHAFFb6PLl3Yxr1Ai\n0jCQNscNMVDWaHFPiUTT3/2heAbxnbo0onBsypKStQUYcm6RLXizwr/SOv6Z\nTt9+91AwU8VE7ydta/0VlEFrIH1PItUTP0VEpkw13/u55tESBDEV4lwEsTge\nx8FBGyt4xYGYElHgYgNPUEhsrjn/ubbJJ62BvERWKD111Du3fJRAHbyWd1Cr\nqjGiQM1uY/4j/IrL5ep6M/DR+aUDaWb4xRMu5uDxsvTH5EH7tnz2PS7xUNOT\nWW4DjW3ZPNjLHvojyXPWyRHq/H47jeIyUHtXlzWtZ7GeiooIrhfVqtWv3bFS\nB4m6ssYv5xWZgQVzEg2cqfEV/K6cc/+GPqIEcC8Z7hsZ+m+V5dnFOYG3W5ug\nmZCv\r\n=vouN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ3MN7AZTnFqoTilpCVJKIEDb321gC3OErG4iAZB5InAIhAILW+EquYzveUIGlMSRor7CdpxlmWUtXdt4xVx657On1"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612362929000_1612363282142_0.4564489256115012"},"_hasShrinkwrap":false},"1.9.0-next-1612370872000":{"name":"playwright","version":"1.9.0-next-1612370872000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612370872000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-3iDaBOtr1SKmaAxCTjh6WR24v/mceHg8yhHTVxq8Q07dJvJkjyRI58byIYrtYSIJBxsLldP9LjhG/niJtYuKDg==","shasum":"a38128d0aab776d294ce7c55d6201f4ad0cf257e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612370872000.tgz","fileCount":216,"unpackedSize":22540321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGtR6CRA9TVsSAnZWagAAgB4P+wRKfGHXLC3x9YzvjVLs\n6ZWytMN+QiZoNbD7zvhRo3ii5UG/tb/UXBADks0r1YLLFh3sQ3zeNlIZsWFK\nImF9524b2J6cxI9RLYS90eQmmr/yWvav740Itw8ayJENMO23MhC/fjarCZP3\naB3pwJOLm9VcPLatAMiMWZ/YLEJww0/52tjV0FbswF2YnPKp6w9Vq1qSYYuV\nooB0ftGWBZepdYUtBy70ZfFC6dPI8hge5Ic6wlbPZkVUGybe5TAsMBAiavbU\n12MkLpiiAWAKHrWpOeZURxNPN+NcH3yOLBiPv1Zos5aCX0KPJw9sI09w30LG\nAHA/SFSgsu5lQHYUwvW17Hrgl4f9U8u1hAwNYQMUyb52M2MfjmkQpxE9f4nS\n2o80byIOA3up2eLdzQIj91ufluiAy19fSLeYJ5mdB7myhEo7FFvHBvTKs0+6\n2hwX71HwNP5FmHtasZijrlukJ3sirjSORnNucjwxiiOp7C3s2CYLU1VI2cyP\nHFgBSukLw4JbaPZCXkd9URXYZkEALXdRt5HYFVWrqrPUzYrKXlZFkxuWXIMN\n8DegGj+FyeZjD+z1N3q1OXi56p0ynEcE5tSOe6xCsendhx4bLtfIQ9aahR9t\nmh8s4+IbhAJqsWp+/ME5k+4e0AfCOHAiGdN+NFxF+eVbY8Riij7z/5TrSq0v\nsu4Z\r\n=188O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7mpD9bBgmK3Fi2KxsAiZDNoC5ZTU/fIKtX6G1mbwa0AiA6mD5NIZyjPHinZivSPlO1DSyYso8CQeRzrKJZ1a3MXg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612370872000_1612371065647_0.6795765455071388"},"_hasShrinkwrap":false},"1.9.0-next-1612372751000":{"name":"playwright","version":"1.9.0-next-1612372751000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612372751000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-jM05hFrRts9MkvZgjoXxNEWaXQXu3SAz0wRhotSXjF2pZZzv+sEmITwksnCmGzTnurE3mMWtDsI4rOhUGsEK9A==","shasum":"6cecb96a1086a3be15ba086005747d55c6fba96f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612372751000.tgz","fileCount":210,"unpackedSize":6168090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGtvOCRA9TVsSAnZWagAAUOwP/0KLerLdRGmEs6TjDiAn\n3FNlzVV4iolpufvPgz7W8NLrYW75vWS2NI6yf0q5gzluDUGcKKVm/u2sdMDP\nnQ3h/RCSgHTp2xMtHd6Y/AMOjDY+FOSl6CAAmuW7AbYvRnYmJauZpcBw5Lr0\n+PUGJUelLorZJAUsyqoS+d1L2MMm5MAzJkjawh3mbtMUFuaaxWGj2bEMMUoy\nAXUjPVDMZLCySAxcUrY1YBUgh4qBoi3NagiHZP6hnp8eVtGRxwESQ80toutQ\nagLRluDLNICqpt8KAqWRjApeijgVwAfmNeWu05HSB+196cq41U8+SL5BMJ+Q\nQVodrkjhqd0vMMe7ewbXVEv+XVVnNdId6YeuLLcfHtMwLMOpUpRcF8K5gemB\nD8SNxa60cBy06jdUY7a0j+YRpfYYqnWqiD3Uz7HW0npLz9vcuYKkFE3GqnUf\nm1Hr4yawSNEHe7fesv+h1aPAUqoJVwUBPFIuSMYWD0vbKQuIh/LacM7dCsml\ngVSq7Bu5DV6bIUkqQL1mHO5pJ2Z7wiP/jpwIFfW7aAEX/v9TTMHMFIVe6Poc\nFd4l1daROdkMgnXvzZjQk87easKJd8WYm3r3mYMqQ8V0f32ks31ggkLm17zB\nFF9BIL8vuiODoiwgzvx9Rj4bHHDcz2mmKpf0CPKIZ3fHjmh5gJG+pqcpB6h0\n8TRs\r\n=ThP7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEu+C45zesM7D5iW/MxWSN5mimKJZ7bdxTpQY1NOAb36AiEAlfUdUKhwIqRFp6Mw6O0Y14JeBGj+rMRKspyIDQXFWR4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612372751000_1612372941850_0.7371931250584738"},"_hasShrinkwrap":false},"1.9.0-next-1612374635000":{"name":"playwright","version":"1.9.0-next-1612374635000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612374635000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-aafgMrgXWCdMw9nhWNE6NZytTfGuQbZ2puavGzs6vlmeTsOgRl4VMeq5zeCE7rmN2aek1SS4P+VTeDfnz55Deg==","shasum":"926abb4503e21a89438bcf834c1c9121d3d2fb76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612374635000.tgz","fileCount":210,"unpackedSize":6168090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGuMQCRA9TVsSAnZWagAAajwQAI43fNzUqEhqbltnHnD8\nhqt48HC83EMqe5bKCOn0ziLVGK45YRojRYpf/06s83aqBnJTpXnBnZJsdt0q\nEd0vpI5QPMUf/NWhCl/ErUBL04i6T1Xx/XQFmnPt4SwHlFxH7jvAlSKT9rnY\nt1S65/NzUxqUDw2YduJY80NWHe1VPbM66o/5TFhbiigEu4G+6UkBUfhuYHUc\nO2MDnumqwKc16jCuEw65hHpD84ByfPGVz9M5ZL4rXKQtIuz5fWqA1GlxHJOI\n+e3jVYLNfmbYlAvUgF15cTX27cp6S6zQ38NNS3GUz1Czcke35nZjZUJgzJdS\n3Fr454xBS+kbZ8Yj9da3saG7Z8257MdHgFtbPevG4Abiz1zF+6ww2dhpsgwY\nUr8/Z7kF8uGtEW0Ci+fsisk/FXbt4vWhm1ZWo07NdjZUKrMkmJDpp5F5LDQi\ntuLtAV0E37cZEVN0YiN3vRM2YPXA7/w1GhaGyJDCqttZitqmUmu0rEYRu9LS\n1RipjVWiqLXezJ9ChAwDpE4yoIwfsafjt5AUMB1L+o/2Yfn1+8DONQexfSPw\nm7ndSI2TE7cWi8HJ8n04xaCA79sM2bX0x9Qzhof3qWrqgSngRM3cRg4OUHiV\napWvFxFjFqEEKbI0FoN7gcuI6PDp+vyWvnPHtdYcN4Remyo6eCe/4WbZXV43\nUB1T\r\n=8CUT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWaval096q9FJbD8hMQw3mra7feLeuW7Qi2LehXrszOAIhAPdz9PnpngrcaHgk9Q+ll7hrjhsM46LbZ5GJW564y/fj"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612374635000_1612374799372_0.9229966516477366"},"_hasShrinkwrap":false},"1.9.0-next-1612377285000":{"name":"playwright","version":"1.9.0-next-1612377285000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612377285000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-rAm7xezp8B5NhUglDMbz406UU5imD50GhfizNR4SoGQfW1CEQ1XVZEgyt17SdD8WpC8ZVXRLh9GjeoK3ooAssg==","shasum":"1045a22b32a79dfe74105553f3d19596300e592a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612377285000.tgz","fileCount":210,"unpackedSize":6171636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGu1lCRA9TVsSAnZWagAA5hEP/iiOXbgW0vBYN9m2BDev\nJiQ3tI5AoPjvFV1HdAPLpuCLiCUjKVjfxjmZKty3wmoxEHUhTijaXOl60fzh\nT/jjkSiD0MxnN9kTck+GcVMK08u+5OswAbqWvdFqxqNxhnot0Psn+sMaDGTX\nAfW3t526Iv7Pg32tFgW2zcTogNCM6efrgS46qAGHX9NVHsDyi474twdc06NW\n2tmJWryZogClJ2DxcLi/soeyyihoKowsJxrQulTosqBcrIrI1mN1Jspbmt72\nKYv0B0SY18PvQx/vgEFuI5pdhyram/yH2seUEm4MPQOAUFrGb5gbQgv0qp8t\nXGjNEwJVGbnzhOmV2TN01IfN9WNtb6/1Kg+xXmKEkW8GryDNmHnOJqtXewFv\nUdUlVTbwxg6VSMYrq8oeGjXwmm0XMiD4RIgHM+Eu9YPKafPeenlivkExgf9k\nmZWjElM+hm0ECDLSJk/NiAYYRWO9hcC73SLgvbpOdoK+0OPT9XCfUrk07Nyi\n9x5V25kqYHMBU0m8qH1p9GCtAB4jjjCuFTqZEc0Pqt5dR5HIP5qEGvVWxtDW\nam5ijOt+PleG5oN1s27gJqCNFfsTv90TuLwJ032N4vCFNis2a6mtcQcaIXuj\nB5icATEnCsJk8e/u5Zdlt1O9L+rzx9mWR2RgKTW8tvLvFtTbs5TcIk7+eAKz\nLPCE\r\n=wbMr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBwSTfQFoGUHKaEz/7ybfgc3Xoahs8OOMj9lGC+tZqjFAiB/srtLWRiAInPEfabN3+CCaeEel6ysQcOkNfIyGzqIMA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612377285000_1612377444832_0.574406698965856"},"_hasShrinkwrap":false},"1.9.0-next-1612383565000":{"name":"playwright","version":"1.9.0-next-1612383565000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612383565000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-xmIDUliJD/qCOP7ko1g5tOVwq9/EIB8nmqEDJZvW2dijmOs27+Mwzs80ks7Ng4xyQxo7RuaY8wAJAxkSKm4Drg==","shasum":"ec669ed12e9456af19f8f8a292ced301ca67947e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612383565000.tgz","fileCount":210,"unpackedSize":6171961,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGwYcCRA9TVsSAnZWagAAkEAQAIg/zaz/Z6XF2BLM8IQZ\nqwm0gjOiJUCKg4bEgZVAE4VM0OnjDv1tw5RN9idD75f/kOgBkBcTtEfzCQDN\nWyvX30R9f7O8nMTdqgdV1A34YpwBf7c/PpRb+9+eQLtjzYpqAdjPkmdVoELW\n9kYSXaKkw215sj14ZH4cxVBqXNplW5IrJzSzlAOcVTmsgHAJWr2UQ+GyFIaD\n28eSDoUMVEZRPkUURO6Mojs8VfNDmKC6p5RGmKAL+BH86uYxaRngEnVYFksQ\nRfDpZlzRWELOq4LQldR0NEMbQBmahZb6iN/0bZOWmMOUaio0UbqJ9xHEae3U\n2bwe5kezPUUuFMblOXL2wrLvXHHvx595uApLs6gl9bfPy7JiN4/Xx+alg5Jb\n3G0893bvBW1zF/N5yji3GS1zF7pU/NFs8guC8zaTaRE91vViccV+aP5ppsSL\nM3Y8ddcji6qVUkQMbnJK0Kj2un7PHYN98AmYYn3WkaTk7PjctvNmwxed1ouz\nB39YaXD0MWZEYEFdFb55C7I7zsY4A7yv2qbVKj5PRchHhQpTWOg9r6u4VEtB\n0+5tyI7SyLowFREkMvmJgM4mAFQSoFGZAo352AZKJ7LeBoMlSCXf3zm2Ak2k\n4siguLpID/vPhsekQ2w9f0999lFGq6JrqdMoGQR19TK7vjJrksFDUJMX9PeL\nO8d/\r\n=w/kW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvUmAcaFWB/jGA3N2hvbtY48AE8cCHtQsSa+V0Eq2qaAiAAjoGslM6m1lJ/QcdFBIqzMMoV94TL8ULGk0g04Lq8HQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612383565000_1612383771083_0.40747131482531773"},"_hasShrinkwrap":false},"1.9.0-next-1612383782000":{"name":"playwright","version":"1.9.0-next-1612383782000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612383782000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-AeaZyVm47WYfiSp2r+Ic2wbqO9PK6RJzrC44l74TFj3afAAIuGfeqKwrR2qnCRah3gdAA1KnzFK0zR9SqjhL2Q==","shasum":"062f50f0119350fe288a2395ec5224d0d8aed84b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612383782000.tgz","fileCount":210,"unpackedSize":6171845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGwfiCRA9TVsSAnZWagAAXfAP/2cLdqyPJRj1czJISfN7\nuN3BZQBGHJ2LOixU1xlJuYinroKVepKWuAGuu22DlTE9bbwjaLMRoBSwVQul\nk2ZjLC3H+nZh7W6OyfbttkBMP0xF7lXWDy+l1kbP64uScVBz7dl6aiAAZ86f\n1xome7F+fKRs4lHswZyot7eg17QHOQv7+5+gpAH5Uk7Cg4w+b/n3OHIz2arL\n9eL+rq4dashs0eFJDeHK1t91vS8xnBpBqmjWiCcRWszQfVxYvPxPvgXN1tFm\nCyXPHwNVbNv+KifMOyR5cgv13jUeBkLitlsPKMU54jy34MBvHBQIA8KRdnzx\nuoQBsmqHEDeTSIUeCrWNomPKNbR85z4VgDK4U8fK2+kWt8NAKlQ9Q7MRZ9Mv\nwujyzMMHdDdTdnvg1V16yqpl0oGShwkb6Qiqsg8C2FO9qRBKPt5nTJcHahIg\nSLgoetjF2E/X0X8ZR54xd1LclmU/r3K3QruP76I/+cgyt92mKOmZ2tchlRDx\npOfAg+rL5uZxvPDgRx0y0Z9E1nEA3Pamsw8BH9mBn0Ns+s7JLfCwYV4BDwFY\nPjc5e6pntZxavyP28bGTwhbCt9prQsoDO5wfj0+rL7BLPV0s2cpjYcihoH7/\niZf/jf+ulKKVuJJgAmM2rgRFtbM/s/scHw/VKoiUHRZQWQW+lUG5YmdPXODw\nCx1r\r\n=2ENf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFU8+h6irWjtd4IJv2krqGeJ6/JzeiHaiapU/gYsPi0VAiEAudMPe4/Nw1qWMmte8CWN2+1UYo6uQc65EYM5umm7/ec="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612383782000_1612384226188_0.10636298656216092"},"_hasShrinkwrap":false},"1.9.0-next-1612388026000":{"name":"playwright","version":"1.9.0-next-1612388026000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612388026000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-B8auMbnETtEKxtUcThcLiIp3PKAZYBRVPJAIZYIxzXbIn1JWI1OPqPCDP3bw6FqYSk9RFx90Dyoje2zcjo/0vQ==","shasum":"85af8d8ade85345a46ec7e645d59de8d134d7173","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612388026000.tgz","fileCount":210,"unpackedSize":6171914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGxf2CRA9TVsSAnZWagAAUFQP+gNlTZ3nIr1DfF7S9Vz3\nHc/4IEjCe4fFwlJap5D1XjXviOvf+wB4L6TpbAo1jmzbA/6/Uk/7pgvqOn1E\nGrxeWj3dg9nnpcLc34k94FfMWMqZ1cn9RB2HefDn24eP+Y4S86zHzpHKYGln\nSeVPtuK9JgOL+2yjrfDenfwG5oCdWMzPF5qXlX2ZCaog4QpDm9ZYHK0ooJ0T\nNLcHn2uf9sDjxwjiYyzIy/PtCbYhf+uDXLPItUdzDeO3t1c/xnOaOs/dwt+E\nE7STATnsqC+WWzcv8aoIoIw84ixpeGsjMO3Ma+eTahC43aUZuh5WjVqT7LIY\ncqCVLtdEa6c9sTSkvPjO7soK+l9PVhcz7EJ6Poz02m4aSWrp77HKyu9B2KlG\nBKtSp3v8icKfJ6EAjf8KPyHCh1w75IUhuzd9iQqGgGSnbECsx6yTwJRjof20\nG61lGvebu9taSvfRmBBCd0YOmLpKyF6fN0SdbBRDoTT2oUh609lQnRrecZbA\n1ot9UEPiGdxidrkA5Tmzkpkt+g4GhbR5ys5frFLJ7RnFWZFccAb6xGwJNLvI\nh7BlozCQ8xlv45ppiICv1DFOKeI2V8E1SpxroIqbcqIJJtMXeI+F7QDgNtL8\nscSBeerKMLb9/oWRxAC4VhIo1upJ8FE9PlfPh15HZxjfBlMMmhQmWkfoJlYr\nnqbR\r\n=lz5y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB7CXm0jhdWw/lDbeLQhnl4UF7y/efzXXdwrbNqRR7a9AiAWw1qSOl1ssqzzWPN3xxEL1iWKpH/fZcxMLbJq3v2yxw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612388026000_1612388342041_0.35690274089354435"},"_hasShrinkwrap":false},"1.9.0-next-1612389189000":{"name":"playwright","version":"1.9.0-next-1612389189000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612389189000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ChSgo12g6jA+iWmf9CXAhF+9fnrDyfIHevu23DLF86wtvyKoAbEp6pigBpFc3qkO0od3Zbm8kEYLjiPASXWPNA==","shasum":"c6b083af630ae8a424f37ce3be0143475f317dae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612389189000.tgz","fileCount":209,"unpackedSize":6168427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGyN6CRA9TVsSAnZWagAA3goP/RFVhDklUGILOXNt2jun\nIKlW/yRujwSMckhSjm+w0VzwGNK1bLozasiTeWD3zv3Iwy8c91BIOqJKfO6u\nFpNtXactNn9MMNmP8MUODyfwiRtxKpA2BtD2RCUhaf1D5WnEo4934fyCaauw\nRX02vHlHHFiv1/4amM0Eb+4HAI5svhZBuH47TquycWlmSu3PGhv9tkeNwiN6\nZjvwE0fo6kCgw7P9uBPX0fPkqf4rl3yfHIDk8tjc0Ymwfpb36BBrQJoQFyic\nK+Zw0k/dhM+glXWU4teOVjmIjftHmagLCwp7yXil6lkenQu4Xti54RvXY2ow\naR+bkjX5d/VxD2LQxPsPaKUSQ6WIktvYIFogJw2MhMc9ZP/B2z6zXBUTvoes\nuVlcf2tL1NfVBxiH+KP+6PeZ+qSAPmcajg8Z5YqAUTclBouzN6RsKA4aWriw\nTfeqME6DbZBOqYX2kHebg/tXdWqJSq5zhO6oIVhX2DgGe/m5jdyDKDa4daRR\ndUKOAQvoe/OzY2tFs7LXo5KTU6bwYNEbg/CHL/LAFTfEt+8JxPjGiAiwcLZH\nlZSUxJvFRkcgJmjvUTZx7poE5lUAECOhLVMQEDI8ruWac4SJ2IaqvJPB4ICh\nQHOGB+zOyO7EAtR7mTLI8lzcr6lFiEQIpJZVVNuSppI3Kxkn1/B6vl7JfUJR\nkBHE\r\n=Egfn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtMxFQEwk0OGfo8D5eXOIJjkbr4DbHUytGLAT+u+xrrgIhALtpdKTF0ZaC4KGT3mxAT/Q7d/q1zNvkV1oT1FmwU5tG"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612389189000_1612391289580_0.9682794315447285"},"_hasShrinkwrap":false},"1.9.0-next-1612392977000":{"name":"playwright","version":"1.9.0-next-1612392977000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612392977000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-Ir+lnqNgONo+hFMB+8v9thZOQX9rntzcrnaIYj/LsyLTOYc37cJ4TE/JWDvryxUtbsIItnlVV957lhqYkE++4A==","shasum":"2a793bd3889e469475a2b941743e5c8bf08565a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612392977000.tgz","fileCount":209,"unpackedSize":6169035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGyt7CRA9TVsSAnZWagAAF0IQAJdaN7tw+TTz0Ga1+Iqm\nSVyFx3BQdsXrXMmnC/4laBV+oysh3HSPCxO28jP4XBJtNesNR/7rUo0d9kQH\nkqCdXTBmcdc7OfM35w9WFqHoa4jW4zYur32sPZl5ZIImme5JLJy6f4tNEQ0W\nSQ4B4ikbIDhryuDlJwKociuigDXG1gWt7qSMYVYBQMwKaDPxmtUbjFsmS0Me\njeFK5Rywc9+uW+TfJCuuh1ToSBLhPyAoebP8dCJ13GuDIBj72/VFnQhOM888\ne2mpThEvg3LWltTUe3d8AH8YpNnIWtVNuV9ulwzj46tlrMVMoQvY/bL4Uk0x\nvuj+tMqcJRGPKoGqP6U1//ja1UZg+Y5G1TYaL1ZPOTeUJ9ZaSoBFNanDWLrH\nBMy+nS3+VpO9LwZwgkoXozYlyhctkVOMfj9PkVsyM5PgY4ouql4Ec1DenIbs\nWkRASJZiYHFCEa9eRhMA39EC/4p1MolhLzC9HYJo6oIBG6crx8KefPKLAzwG\n2s8MWpiIkriirwPInAxyzuFh8Vw4fkAWOGapNOG9KwITJJk6cCj94s0C8cpI\nC5k6AheFlpF9uIJ1BUWDToYDHg0KuUR/wyR1BL1LdI9xkPu9+5HVdyJpqRHP\niacVfDGZIUUvgCALtL2igSKvoBKbafnwW5W0m+1GYy3BHRFY5o+fTgdMpnkW\nVmp/\r\n=NIfn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsx0iYUTazjeg/AMa/Ag+jjBaoU0JRui8r4hY+ZGGKOgIhAOIEYYlZvQO6/+mKtZ9j+30qANIXEaEYaTtG2Y9U7aYg"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612392977000_1612393338741_0.43153070501393387"},"_hasShrinkwrap":false},"1.9.0-next-1612393342000":{"name":"playwright","version":"1.9.0-next-1612393342000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612393342000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-2TJI7ijkTzATSmy0vixQU5J6BcxvXwR6gE0aCPQ+Hx45jV9Xfg54H8nj7f+RD3Xvf7UxOuKNzlU69EUT6uEg9w==","shasum":"17a28bd977132241494c45b0be3b720d9ef5d549","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612393342000.tgz","fileCount":209,"unpackedSize":6169166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGyxHCRA9TVsSAnZWagAA4FoP/A8CU7gCO7IMIeN+ydBB\nGxEfwkZ1gDRpD6uW0RatHHv0ttdSOT9vl+MKGOQ6HWtUH6f7QxIXWG7f7EcF\nQJPrjDYHDFUEIGoysfQiXxwZjKRwkARhqZ9K82fgHgGRW5EmCRj9Sihvp2Y3\n3ERdgrgwIF+BYWfD18ni/uTXhLifCR0u+xww1Ql/mVOfu0d0MjTjFT97rIL+\nr/RzvFiqaE7nNzjgM04J4KgfG3dTn5icjjW8XTJ4LmuxMiSoA5MsH1FFD9iZ\n12+75lp7R+gZM1TBVoWqWy7h0DCRIJUyxsg1y0WN8h6XkyS/jre41K7XpBH6\ni0aQCMowX3cOiR/CeKSIQOATWLHtgoYKTnzrNXrdqNkW2tgX8RSJSDcDKu/N\nS7HPln5yBs9GUOZ6GKbrM697+yj6LzmIapYXN3oog9K2PqxLY91hVj50bkfP\nUyjVmDbe1Za12hvSnAiyC+DN9sf+IBV+a++xarYrwJNKsNx3xsn8QrUOTx0W\nPot04J1h9tx2PcTUIP8TZ3bfLGA2cD4fNbrxmFk7W2cyMmwsjxOcysgUEUtY\ngFcreIthmjzqK4TrrVH2zsL1OqrwdvtbgvOkHPmRvfhrb4HHfs2ST6Bz3EI8\nCzTjIU+0Y80nPfzwvk3mXAatswjekbJSTVix17ZJxoRWMFffzmNOXGQtSJ4k\n5kmm\r\n=UbtS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDzR9oD0Hrx4MwPbn/IKr8nwSCuRbZx5ACJ19THshBxBAiEAsjv1LS5Gw8LsaTIRmURFwld9UGDnCvlWXC3dU3mViP8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612393342000_1612393543176_0.2332258553195159"},"_hasShrinkwrap":false},"1.9.0-next-1612396494000":{"name":"playwright","version":"1.9.0-next-1612396494000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612396494000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-EZ5jLss10VgFLi4etGupq4PmP1VCz4Z3HcZNopUQy7YINW2uMa8NzbW/dRxS/J+nATkIv2kWzdi7znnYEnmBFA==","shasum":"27f2a2a0a8e438a88a222062d77ae113306b0553","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612396494000.tgz","fileCount":209,"unpackedSize":6169166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGzicCRA9TVsSAnZWagAAigsP/2yjLDznyjyP6IK6hb8y\nzymRBNPSQc5Uv6EW0jG2wBQomVIXFVXovNyMpy5FbuQfYhtFWUZ2XrQ+ywK0\nz7nKSIseKwOJwlHN36EjzhuQOPBKj7K7L+eK3UbO+BtWg+2Tp0ZR2+wGfk0M\njlWQrUJeWLb8e+XMXKPK4D4COMYAdvVpQBJW1u1+aa9/Hshm1kLLWtaw+2Bq\n1pTJ4yBeRNSBqr9iuN16/t/H+IS6flLx5+15wTlT7NOnmd2CY4GC/bV5XMoI\nrX+4deYY7rWWpIjLzRB2+ZGkHf88/RbaurwNX5F1QxvTPhp+cNI94Inselzz\ndreLjkf2tvH25U9OafRRjzYk75z4oJuR/bsGCv12xwUyuiQoK+HgYohg55KI\nQYB9pytE1paf3lkfuEDtc+Mf5099yIBQOXxE2Hf/5LnxI2OKHqFfT85BY5VC\nmN6L9AukpeP7YK96bXq0XhSmIrKb7QVzTBH8A/t90QBd1/Yja7/jPBsNQpGi\nI9LKltX2UMhaDcbauyw7561L2DhKmgbwDXfsCqcGDtSGrDSveYbwjghs+MZ7\nDOq2w3g7KfuTDPVUWuyzrrvb2Od8a6ORcwLnMriS6Nqaam1Td0vigGwpeX4U\ntlpG/Nu4fJQXIwtm++iO452xpX2HfNEx+CmaGo+7tLuRH5bPrsLFcejQtg3q\nAC84\r\n=7OQ/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLW1jZLovqiSP4EKs8pVNBCjU+xfFHtCuOGTT/O4lShgIgOjJMQfrQ6cJTnz7mtxTK7LpRDIulLYzJuDnoe74sLhM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612396494000_1612396700155_0.18992045680952563"},"_hasShrinkwrap":false},"1.9.0-next-1612396911000":{"name":"playwright","version":"1.9.0-next-1612396911000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612396911000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-poNO+tjcgkX65Yz6XB4glxlRfWsHdixt3iGKURYyTDcuiYIt9AGou/v87pzCvS0qip0svl//93JSphwlZl3lSA==","shasum":"e5f32494de294c3fbd91bb76f39eb77c3da8585c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612396911000.tgz","fileCount":208,"unpackedSize":6168326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGzoKCRA9TVsSAnZWagAAIsAP/3su5fIXseYkDZJJLdx5\n4Zkui7sDGJERY8Z+ZfJPtQyNVb6remGfOvo+n0LvqYuZS5nUtMz5BhOoIFdx\ndq98tXAfajf6irfbXmtgIUOu6oXEOMp7/VWO3+4B0HqV5UpkL7CKquoN+ecA\nJ2ldr4NLb3mm/mLkIgJHAETQxOCN3NierqVvqL3L5zF1ch+FebFv9Lfa177Z\nGzO1VrwOinZpusiunwmDgCXrv+bVXqwaClKGHYhkT0gPyqWyGSNvWJTnY7SE\nvqZ7Goi9DlmR5I2BtrJ509BvDVUReDez5Qq9Ieb8Em8DAkn8o8iRpmOyVM2g\neknPrcp0j5amIZ9OMkADdmBzR5A3UBm3m7HkGMDIsE5RCQYQX3RJrzKQ5by2\n+79xbC38Zv0uZPVaudi8nJ+GTfweIx9mdLRZyu/K97VmiLRGnKXE/d+LMp3v\n8pp3GsvIM4It9unpjnZB9B4e6OtyvYJF8wxg013D4aWbY89pz+1dqLExmSFE\nOkAB5pk6NNImu67GljfWmBQhftKYk2E+A+uZDz/2Am9lPechqtBvzMUMzCS9\nvsDz+8zN1RtAw3fc3qW5cykRI5b0dszkP9IDRbby7M4qf7bwLfQ8FAXRDQC9\nBng/v6QLEya0SRxBQq714jqETscWMhXppflBQ1DPmPj3FzSpRSk5PiUAy0sL\nnH3A\r\n=2SAD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5i2ZeIDVDh4hjrEwzwDQJnzWWbNJ0THCL+qSWa96AlgIgY0a/hn01kkycf0wDu3pq6x41ACewhao8sc/bKV1S1WM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612396911000_1612397065516_0.3733683904558587"},"_hasShrinkwrap":false},"1.9.0-next-1612400196000":{"name":"playwright","version":"1.9.0-next-1612400196000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612400196000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ZrTFMsuCnlP4/1eQYe0XuIZlUm7v2vkCGPMojse9qusyRQUsBzpAJXXTfg+BDyg+rZbbdY+/MSxFguRxaRhgxQ==","shasum":"01d3d47cd44437bc17b35bcf7ad3290d2bc96a2d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612400196000.tgz","fileCount":208,"unpackedSize":6162293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgG0e+CRA9TVsSAnZWagAARAEP/RlT0a0RXRpX0tD2QWVj\nlEkglljiSYtKP0QNR/kFlDYUlM5vP7F0wqE++0OCaxzJ90WqE7CMQ/W6J4xu\ntScUPeOk/gv9LF4DlYAJKXfyY2H1h+KzEoaVQNEAssYYGpAbBixAZ1CWQfOs\ngChLDeLIXBT0r+vVvvroJyWWxyGcp0iX52dbXhfSLVyItRCWi4mUmDB0Gh7u\n9V1N+xp2OEZ08ELSAUkxvvoOZUvcvORRmcX7AJ0oTISdVX7sAi4qLvEiKTeB\nNetLcNC508H3JgNRZqa64Z+W5ulWlftayyCF+pQtwceHmMXO2y9hciE/Qlc7\nEeQT6E7ZGMzaqa3hwSnd44GLvk/19Xm+ta/33pMpFclOC6WjX6rmLc5Y2GZn\noL4D6QpfkZcilmiWpM9bMdGwxHaiUt8ukkQg7d34oZReGs3+Ca0tgNPAGeKu\nUySqjIk/e5JSirhMoQ2eXrfYd1kntd10m4SX+qYK9BIuD1KZwInY7pJ3jAVw\nsCeOEZYCj2Uzf5lGfV0TnmuMhhRDokCpwwy6GJ5omy7gr0G5HhRLYGRQfHse\n3GIr7eJrptuugxQEn5P8fzID8S3Eu/ND4uYuUSMmemGp2Ce/JEzbYiSAl+gi\nSPWAcoA/bmnsbihe1b5ktZ1s5StRldehLyfTh4T+NWXF5Q4feR5npduFyU0S\nYXYx\r\n=UwgS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAssRl8sAZJwRtqarHb7PT4Kp5DQEzhESvAeF13Ay2iMAiEAilwNPaQxfOj8YDOALQznMAssggICAnlfu7H7VmaUGyc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612400196000_1612400573942_0.05757944766035439"},"_hasShrinkwrap":false},"1.9.0-next-1612404655000":{"name":"playwright","version":"1.9.0-next-1612404655000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612404655000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-DgrtXljdyJOZFLUT0qhapQetv8LgoHQJaG7V5pn7vWvE7CAE+pVEZSYcLnmxV2yVBOrvQ8t2zb/LtyQU4yQfMg==","shasum":"783f894b32b63ee5a23c035ab6758cd11f13be22","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612404655000.tgz","fileCount":208,"unpackedSize":6162293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgG1hvCRA9TVsSAnZWagAALHcP/AjRELOjwBhAxbJ9ze1j\nnn4BKyFbuVx+UZOaQW78jUar6zjeEnVLAm9gKpfCLqikWttbARb6JKoRjhxz\nn8M/gh+HVBOC2Ekm7HaWwi+vG0+NFGf1CVDOQEu+qqnGZAOjHG93poqH9wk6\njpgh8el1ISYQaLioBZZyAuks2sIib6r8ZodSnfSJMk+YmVodA9RS27/Bx6uO\nbwQ8Vc98yT7AF+vIR+NsyC1zLWddY51BlEQLYwj6quNTkgk10gDMaN1tvvc7\nKKoaK+2sespjASDB9ZIIF+Q4EXCUwL/EDv32SrHgzbaUrBHum5qpFA0A/zwh\nQqXr/YGDRPy17KMRD70Vrbw4G6kc8gu9/lXCyaDxS7VZeUaKf/Pt6KjJJ3EL\n14X26yiksEAdNOmES1pBkSM00nBRzFC3apU2AdbWMyjX3Dfw5xAttopYauAD\niGAzgaE7rZoKN90SJHRaUofhUdU692w3lV95x5LdsktJBN6w5RiiJ7A0sZu4\nwWy54flz/KoAuUZP7Jwc2/HblJzmXhPRmnfk/mWAQier3SaGiA12DpmqQRjn\nKhnxqA18w9dx+OhYPLj9zY7tlcx8VU27s6f962QS3sexISXFJW1kzX03ixzU\nW0kpKnycg3DgvAngX2gnj19oO36cV0DSXj2DzGavUO6ySB7kb+KVak9NJP5W\nn+ji\r\n=I+wP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZPczbiJm1zRure92vGsRKPdJ1pC8YJlXFcStDoNt36AiAzBgSIjKNr7CLiz1d91qmuNh67OjKJoOIusG+Ny7ZTXw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612404655000_1612404847103_0.958919942601216"},"_hasShrinkwrap":false},"1.9.0-next-1612405506000":{"name":"playwright","version":"1.9.0-next-1612405506000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612405506000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-s3ZFpPLp2HQbDYEoXCBkETsriWF8rS1WHHfrFCDMuilXgRuHEb+KnACrg9IedkNL5XTbtlJtyDTZASlex5hu4A==","shasum":"fcf44aa8d523bb53a720d1e06dbc77524a04cd49","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612405506000.tgz","fileCount":208,"unpackedSize":6162325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgG1u6CRA9TVsSAnZWagAAduoP/0nlAn5/1kY39AgyO+6Q\n1S/12kqpvllEJrz88bwNjsH7Hoi+K+7DPRN9FCBu6es8c2PmtQWpJVezG0m8\nRC6ZfVqfOam7PzvKlDGXiVMdDRUTqAJjWnyF2yqVTFjEzNjiuSIHSqtUDZY8\nBBtX3PsBxXHIKTOu6oplUdIwJNKc+SY/oP6fhANXiZvNh98vniBz1smNASPo\nPZxOd2/sq0ILlLHeRebj6zHQUCUQFyFbirP8sUHuP0BCAkvAsJ+4s5+uQE4J\nt0aWGSE/U/SxOLrBulqzqlWTAkNZySu8rMCALD1RUsO/uLGyLwp+v83liVXk\nHPn/FFgoD49/aks5jnk+zxT+oulnkJ7OJyz2zAiyzwTFuMNAb7RD3T+2RC/n\nLXtyxZkDg4rcGPmcAi97pKEXbsD7PIVW0csjljT7aS56a1jnzOtiAj2giK/z\njqkPOkXKnLFy1VgBP6JGC7M/ewt3u13Xunrg7WSricn2W6Buluo8wdUWXhA/\nWXm0fYZTW3TDDPJy2ZxAXdkIsqPBbeek2Mpm2hLSEJ+2YCNBPnR6THY92Rgg\n9dGKxsKbEAsJarapYyXMSae+dvnAD+QsGjK0Eb638Jqrpmx9W8ZRBz1MzPsg\nia8d/dvaSfvTrfFv1hgZX2KywWyFXj8Kb9PQLlZRDzd+q6xlajogLX7CV3qD\nWdFI\r\n=uRJ7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtZuAasyXb1LndVgmRR/x26Rj703OvohTKDQO/99rCNwIgAdRSV4vCwNCnQl6+HNXxpzAAKZTJqvkVjIwxUtwdLig="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612405506000_1612405689540_0.582235673075775"},"_hasShrinkwrap":false},"1.9.0-next-1612409770000":{"name":"playwright","version":"1.9.0-next-1612409770000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612409770000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-mRnvDlsiqoTu41nNk2If22G/984MH0swgmeEoja9MWfqjkWUeYThEDA4J7+mHZZKwgM91V4ypFXPTRAVwD3L1Q==","shasum":"620b9671a1a730ea45ccb5041c7c61536d068e28","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612409770000.tgz","fileCount":208,"unpackedSize":6162325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgG2x3CRA9TVsSAnZWagAA5JwP/21PZAxJBLq0GtRaVrd/\nCkcBiKtPOkb1xG30HTJqsOd+xwrth5rRRlT9xvtJMJaEAOdbR/pCOqsgdbqb\nkYWE2oHVy4pFn8OUCLY/iKU9iEHts6aWlMj1Z7vqR+eRgFVvfboC41bHQZUv\nD/bDJC8U1JxC0r/inaFmSopf6iOZIQMDHLvRy4lwPKDulBDc0HF4yPeUJBOe\ncWmx3yO0V9KaNHao+I0U3pzXPgx5F+cCfp1t/sFFMfaWPS86f2KJHsyACJVn\n4U1VnLVsnwjwD/Xf+gCcLTfTsOV4wIfAd5Zy9EzTTnPDFDUBz06t04/NEKEB\nADw1FcrbMHXRAhC/hppDU5KX62A3aRbtOQuFwcnb8TtD/mCwYQ2JLlZG0YAO\nW+Yjf3IalwFgGFHy5aKrDybNUNvNT4ddIiMZdFjEK5Zcxo4CCEHYdUAuuAhh\nOTAZmudpNMFmJmg46n1QGHYu9HIijQNX4MYtWm0N1469we8u0DV3RtfkNOqM\n1tpAqY96hqnZn6lcjb/XFFIgU/pWlf1/P8ig84CLO33Z4W9AOH9ZVfcZd7V6\nVKLlHQC7PjRQ9FP5qOEydt/ZjcCa29ABl99106JCSBVumELl9L1q0ipsr64q\n9zvLti5ySCUi5CTH2aLNJbpPmZFiozMI8Qf/9VSfy4FLBWk6uAxQmLIyTxdG\nqvxy\r\n=SDjt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQEUCC/TJInUUlDy94e1oiKmvhYNrHQi26FntexfF/WAiAhNj1JItD2+nuMsCL/rFkN/+kghQPi8S4Kw2WVAri1wg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612409770000_1612409974445_0.33387801748695134"},"_hasShrinkwrap":false},"1.9.0-next-1612414787000":{"name":"playwright","version":"1.9.0-next-1612414787000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612414787000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-xikj+dDIHS9BSQROhxrv7GjJyygbH5zONv6Yt/9nKtupbXLOo2+0QqMUih9pv8HIOxxEW6aU8vkbdf1qcUmt3w==","shasum":"374dad60d25dc82404858f0f98714e6b14113aca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612414787000.tgz","fileCount":208,"unpackedSize":6162323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgG3/dCRA9TVsSAnZWagAAWZwQAKHBb6UAXXwzc9xa2WaX\nVJLAiM8UZ39nZlIPiUVhBI14EuQhvyZB2r4yAna+dmoHQ/LdP/s7Ttxu16CY\nAfJRLGiKRNnTuuTNZ+cBhmWrwSZh+z+mEbN3fxDZ0sEa9QU7xaJH5DCJMUWm\nEYGKv0bKeudsaIUwWsgbKWYcf83JNWYYUgFSpdJBbDkchMxEr09Tl8lI0H91\nF2KJdU1j0SxIVkYNp4+cdiED+sokadAzAzLTI6XNyWw8mttGrTS7h/wY6czz\nVR+AeittlEemxMl7emxU2rVSpqRD5BahaCkgEkawSSKFt8ohqz8IGAGly15G\n9yOPSTtPa0Is2RAJG29fbvNcz+85rDkysHqtKdexjdBEHUokda5OA9M1SqKl\nOg6AN2Ui15tUy2dUaKsNHlstm35JI6kHWDA5qqa2I67FKSaQtPNdkHMmTZNG\nocJvUrFr42Tb/Ur+/hlg9ob6cjOtF6gMABqKOnuhPt/scSouZ+69Vmi3jX2b\nWKlBfFYFO0WYgmYL2K0ulYbp72Q/2h1zWkDh3ghMNbI2cNYG+T10munOW8K1\nHrwur9qNGQ8K3l34ypIeqn4GjG7nD7kz7LaaqaZDmWoiRM0Yl+rJInFa7Mys\nxBIAYqmJQ8eVaEtB3zEnWTSettm7mc1h7UiYvkZuj3Hup8GV9R1hSr64klQb\nGsrt\r\n=q/hx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDojrY9JFjsZrvoflKEs5OJoZzwo693hWXfzuREOCLKhQIgY8epOTBTf4oV4P16PEtF852FX2QMSGAr6LihFbH7/Jw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612414787000_1612414941044_0.679989675373116"},"_hasShrinkwrap":false},"1.9.0-next-1612415709000":{"name":"playwright","version":"1.9.0-next-1612415709000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612415709000","_nodeVersion":"10.23.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-F7VILoMAVW4q2bzFo6VGDa12OlcNZA+Dd5J2WvWbiXF9aLOQpE8WA4I5nsmsyJ75ktcUCzZYzInqn5jY9PFOAg==","shasum":"8ae60bc62f66224b2cc61b0c7f8bff40d07f7237","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612415709000.tgz","fileCount":208,"unpackedSize":6162323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgG4OPCRA9TVsSAnZWagAAKaoP/2Yo2AQilxs5rtImhvYF\n9cF4t483UUSGXHPYWOqbeu3/fLCWvOn4GjeTYOJIcSQFi92NHJ5vwIKcvCpT\nttIf65BwHSofeqZNdBCJp4bNpK83PFpNfFViZHPC1E6izonPOTz+WdYK+f5i\nzPygFmz2nTFrdDDZkXAcb5MYOI80p6Pmvf32Prj5UYKVHH9WhVx3rR4d71eW\nAmcWciPA+O26xnktbuwjRIpuwwbLxSDOlq/x7I4zHmr0uJRU+JPOT2gaFYxb\nrt5IvcLm9h1ooCSx+3eatyBR0xkrjLGgzDGfOmNJ/2Z+XxZjKDyFwtbsq7TU\nZjXtyZG3NzA95bzumlVvGT2K5o2U7pKtgYZfvL7IbgrTfkC0jCtqaAdFFmJp\nD4PghnMqRLazq4sNEGAuA18wQwOW69aGL8A0AJZj9FTJbTnT5v5Vd3ML5cvt\nqxJfcB5JonbqyGVZaPXY4MDo1w3sUfMgIHmQTGCPeNhNdf4/wDIT16rn3RYS\ngiEtH6QE3A3tM5E4An2Y8T2N+Aj59IPdjaLTm/ax6oZvydJovL5zjjyomx9C\n/6U3ASJBl+iPGCuKGMT5uvbtPsetXHx38igT9Woocd76mGa4O0Bf8AGEcXia\nNr60FnAXRWZcCqvA4aNvJMgV4unFsv6b05v2eY2x+DmFPIX1HsthaMhJ/0wZ\nagRa\r\n=5PBQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSJZ6N+sktttvyRGvRjRWSpoY1ixtIgbP8vmATl9Z91AiBpsTGi4gd4Lybb3ucfb6Oa5picF6CjTuhPel3TSJl/IQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612415709000_1612415886907_0.8088700982432071"},"_hasShrinkwrap":false},"1.9.0-next-1612445519000":{"name":"playwright","version":"1.9.0-next-1612445519000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612445519000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-1VvqB9Vn2Vs7cG1oNOfvKL0DkXOYPpzg60MSp1kTvvdQMpSt7xhsFXvWnytXKutRvJQJiztuVlF9GcFhdwgN+A==","shasum":"b41e0db3c43b65d3fd58322506c1307a9c90421b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612445519000.tgz","fileCount":208,"unpackedSize":6162323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgG/gfCRA9TVsSAnZWagAABucP/0plOrkRdwZ9Oywz2GGp\nKgptJ6/hLJHSU2SgGXUZH1wgLf2DRfnfVdMybPy3FN9NASoKAeT97LoE7rFc\nQt/9pilzIrKcLb4ETdWSppdW0HTQzgXmlHkd1oWQzUPIJpl7rul96Hj6Phx7\nbNmUtsActYrUoxOmkfCFrlIViB46cXBsxmf32ogV4AFJZNMSw+nj+T6HZxNs\nGYB5F8+YRDHFMt25/Sa03fWIyEN8+gZMyhXoJX7TUbmnmrBeJnKCIetPGBTz\nNzDTeroFABCgCKfgpFOAhNHhG5zM5vs9VyID3ktSr4w5pDjtHiXEZxbs+rwR\nBBb0KROtoYBh08zMnEi62CMZ3TqTyVs82YvhjgRNKIt6DK9vRWRdyAuSqSyE\n7oOCJZLP4MIp7YPuYUP3PCTfQjZHzO/Pf6y/GPwj1Ufuxq+a/Yrl4jl1jB44\nP+4AHPb97RyeJcsYr6Q5qjQk7z5zPsF5hgWrVAEcjw4R31I8Ry59bHOKJrGr\n2thyH6AxeYPBHLVSF87BLxR9yt6rZCdJIAQPNWtPGjlHcWS6HQFE62kwThYO\ncp+eWkl+pv1MzUWOJT1xP/1u1gR96LVW2oHtAdmKRA7Ngr5Af85AEY08DhJF\nFyWTQTGDutbgbWf38aVf5CVGqKjuXk6ROhb36whL8uNgdgsZp8K3+hgIWGDW\n62TW\r\n=/Cxr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQcob8CDVLDRM8zGi0cAjair5V5auP7hS/AvmlV+gQXwIgAsqY4fK+dxfqB8wfnDPmbU1TTJWZI2VpuL1vX3OUnBo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612445519000_1612445726606_0.6723979227798358"},"_hasShrinkwrap":false},"1.9.0-next-1612448693000":{"name":"playwright","version":"1.9.0-next-1612448693000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612448693000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-REDHU/p4m+Tux/d+fs47hYLi7dcgmybBdya1oYlk90HPMWTHRABeafLUdIJJrjfTRq9PdzwEizPnOD+QVi8gVQ==","shasum":"96ea043a4b3c55c5bd9f229ecafc20b6a8150f91","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612448693000.tgz","fileCount":208,"unpackedSize":6162450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHASACRA9TVsSAnZWagAAceoP/iZWlg8ImeO5t8wT4tWN\ncFQ2PXkVroLGyKXJfkCOcdIzjTagEF1E1DlScglP3NV3b0R1KWOTbIG+uGqb\nDPTJd9IRmJmX6aurwvB8O9RMHCn88nzOYRpFSXgFvC87FTH048J1KwHt8W3g\nFigE/ygMqSpSuYFZCPnkrO5qjaAzs3zapXgSLnbV5R+P955f7TBOov4762Ph\nIGCfKy/Z2DxNgFWVyqnbkT9+FpkRsacndGI07MlWynAACI26BtPBGBrzY0ZO\nRSKChSWlh2ROYNC0Xe0cXuTYgeFw++dEwZgUHxedJ9tl124jtEUFwCs3ZkAi\n8nJfvG/oN3aiSUqJh8b4Ho6uCVwtkKengPfx3xzH0BoUdFLXT+N6R3OijJ1x\nY+y0k1DyE1zK+XVye7eyeiX8z9c64zANzdNJYvHkpogxwimBE//ohLfzUURK\nd9etUfoJ/6o1k7NiG3Wu+iC+zDsbJrD2knyFzE0mWgXnBaPo/SOcJf5XD4FM\nJpnj+TtZ48tnLo9Etkdopj6Oav0hdVa9U/srcF6TEQ1jUpwiL0h01EaqsQJ+\nW3y75poTIxuhmUEMpGf9Jx2yvTOF8OQYHzAZuDrL8ENhw7YB7CLT6GMbfVuB\nbsv2+4M7oSBLlkNh2SXpllrrJHxHcb3RfY2Tc3+oIG7OEcVSuqnsmk23lkMG\nyaFn\r\n=gdI1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSZ8WHoHkmOGZGvRI42yb2ms00+yyYHwwbraGcVHumAAiEA+iNiqJdhlqSAnx6i5DinpFI7+vxOorkQWY0egtjkaZw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612448693000_1612448895339_0.3021433854088429"},"_hasShrinkwrap":false},"1.9.0-next-1612457159000":{"name":"playwright","version":"1.9.0-next-1612457159000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612457159000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-u8JrWvm4rVBA5IDR8FWT2+XcwQ9Ur9qifOLllObOzH2LpAUG343snbYLqnI+fRjy82cMu4F0u6SXXnmhoIUvnw==","shasum":"bdf7089ed5684675b522cb8e5cc8b5200e261443","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612457159000.tgz","fileCount":208,"unpackedSize":6163169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHCWNCRA9TVsSAnZWagAAbCcQAKSXjuMyQF49GvxM/SpG\n8oh/JECYSPOGC2dnIBnOACrXlN1bt+uCzB/jwUHRFXo1Z4/PQi8AXnoCWj1V\njPfzwF6kzVnRi4wUtvDsZK4w84JF6qB0UVJuDRAfFnFE+rqewZwKTF/uwbu2\n9H2YocB5fh+etXVuLI/YW7fM5K4VfHoO8f4eoueHST1XKd4QS8E6EqkJ3k0N\nexnd2ncT5LVrZX6AogNnAC7jy59Pc1tUDpvzTg31YZP/dr7fymhZov/cMyTI\n7wbMXwd/40l6EEw8PO8qmgwgTwoQ8O+cmdKr9wpvhMbHeYjSezUo7PB8Nitj\nwSflO7bfcdw6F6TrHwPFk+r7bEK0JCuy6AJETsvDj+xefvNLIdVLfN7ua5oU\nHhfpE7SbwMDyZcDQ7jewXjdS7ghetMeHCl2D2NclFnrvOjVK3klUkgUpDKiO\noOiw4kj806O3KNYr4Z+1pP2MrzGw0iQEAZlT8JXOgdmID//gfNXGlXdJ8pPn\n445xP6WM3CMDF4EZZsG8Qv+O+SWIhEXkw1L63XnEhDZOfhd1TlfZCk+uwmED\nH6mIZObWyuaBYlH5tDHYHqoHY9k5/IYv6kRlubGEoaDOgAkQeN7J7ebgM4K5\nD9IFblP3r0nWLGNM8aSt+byTAahI1N9otHlpUo94m5/IJLSIk6Nk43c8+Vit\nxtm1\r\n=E+R/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBJiz88P0E7Hhip3N3gXRSguTn08T7ST40Ifxz2EPrMmAiEA3rA5FVhB3j503Dnx3zEud1B7PJP3QMiuK4yUSnq/t4U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612457159000_1612457356787_0.7077711081135567"},"_hasShrinkwrap":false},"1.9.0-next-1612457580000":{"name":"playwright","version":"1.9.0-next-1612457580000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612457580000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-UZQH4ld2urTPwQ6Ch6e3hfPADsQ99gq346YuDf+FUck0z5R9rwVoF5zqhSq993mtsXUjWrtB/5KthrTBzQJyMA==","shasum":"9d0a941c4f7d42d6d49e261a15fca5160d9243a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612457580000.tgz","fileCount":208,"unpackedSize":6163169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHCcuCRA9TVsSAnZWagAA97sQAJB3zU8PnR0X0nmlYCRM\nPolywYj75HNfXyhC5soYJsmnVuJgieSEX+Pa7hEORMuhhxR1ueZunIvNTRAn\nM/Ee7l1n2CipkEPq/ufXI4jTC6lrBmtPZdgQTc58I+cGT/m5ne9muA5rr655\nsiIXkcHx/f8KiG/NQ40t9d+dzIF9jXjNHJPPamlvoM0QnM59ktSZTbfm1pZV\nMjn22MjJFdejngK32iJ19W9va54caLKXlKL+lsMmFthWqsl5V89f533tML2o\nidewN2XIuJYSPLcl7bE7zZ54f9X2sFLjB/FIszX52aAsgzGrmx0SmrKjiVYP\nQy4PTrkEM7tWJUGnqQuuHyQTGxlyOXMra9Pe0h0HzaIR/sKT8c/du7HKQZNx\n0hOdHFcrp0tM1BzEsyLF+aamM6feSobisrxyWLNcJzq8FHhGdCCw6lzjiGHf\nRK7M7cVjv3g1WOgybTxN+tZpOPyVsOKiuBcLPODSmgH4C1I40PpLS4B886Nd\n28B6fWtSCcUfdqSTQwqz9HvhE1D8xE3DDGbFGPjSSAZ5TmBhbrhe5nKhkZzb\nIOkcFELJOB1oJRnts41gSc4iGqzn5ownJR877UyjqlUmFqmyIJzHLKM64awp\nhPYtTyYDpw1NU+uiA/LdCJmQEujcWa2qtw54JKtlS8lqASXx0BASfS343MPV\neqz0\r\n=ok1O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuD43Bvp5RSJPqLSlQELNQhhnmwzN3cvmwlcO8uiqwxQIhANvSiaaKd86x/wXoOkuVPcwaTPfqzdMF5IiqmHGhvQit"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612457580000_1612457773520_0.5088692298613355"},"_hasShrinkwrap":false},"1.9.0-next-1612462778000":{"name":"playwright","version":"1.9.0-next-1612462778000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612462778000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-GQ22hfP8UxxSNX0VZYwAfhWMLRUUEp9RFMMD3uL07pdJ3D9QMMhMyAtBbaQVMGv1nXq1N49uzFHg9wKUwSHCUg==","shasum":"63f3dcbd0b7b170261d3693b94bcddf856e8813a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612462778000.tgz","fileCount":208,"unpackedSize":6163169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHDvlCRA9TVsSAnZWagAAoaQP/iNgKjeHuoDdh5E0D8/x\nbtrUiOkjN3KwTCIAsrBl4DjQfXnai2O5/+BDKH89CaIhTxH4pzDcOd2NvlL/\naTg+C6/6HPZec4LILLpxZaUfZJC8OPkkWzfNpaN9SOt+jqR3Vaqgi6nwT8bo\nUPw2S34V31HBCNb2AObjcQwZpuxquPHuSUFKdb8FLuCWlku88HtrBbVzKhOh\n5pmCNz1Bcsqy7ygA8y65pNJwhOV0SZyNDL6MrV80GlTNNqicR7r2cfvAFYw1\nxA4ychXwhficmadi4qe4wgaAWojdDwJRI/YMibzmku272C9GBCqrCsjfQm3s\nyKk8ymVZeZUyISiqz5XF0HVreZdT31Cz7VDIAJ4vZgN1eAPAwCEia0ocvJPb\naEBr1qySdWp/S617gXlQSEW/z2J3DSai/KM5R+DblIxeopXGBc5lnWVreuCN\nlpFQ7ZmRWCRfoid65HQa0d85IvdkrO8XC1Rn3oC5/+ay3ZSU0ph7ydSc0IB2\nH148u/BdYKXB6GFWB8q7C0ygyT/eXUYv1R8d4tG31IFLsYSU/Qut+vANcpme\nnFLOkXjEyMHUcJi7PoX5iJZ0NEz/UfNOLh7iJ9hOlr/EvbrAxCncJN3gtSgs\nhFTDYWJ/TxMswIQu8DRmj2k7V703U/esPAHClVA1ENs80fKkRrEhRx7KXn41\neUgP\r\n=NPcJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHz9ZUZ+5LOYmKiQ5C9JI06Z+sR0VzLATkc7UfUCy5xeAiEAjtn9hhNpwZ/lfCAHcxo4tVYlwnZEr5R9hyv03nrJAoE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612462778000_1612463077241_0.372456866157876"},"_hasShrinkwrap":false},"1.9.0-next-1612463649000":{"name":"playwright","version":"1.9.0-next-1612463649000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612463649000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-5oMDsVZA5KuVjPDigmng3rOsFrb0Z8frtxfuhUew9vnzrC6i+9xCWfoccXIlDlXlgsb50dIb8jbG12j7KIrnWA==","shasum":"2bf427b09e69e3bd6e11ad178e2ab98ad04a50b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612463649000.tgz","fileCount":208,"unpackedSize":6163169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHD8xCRA9TVsSAnZWagAAY5AP+wS18suIYbxtgsN7NiyD\ndP6J8K37I6AbQYt2DFLIUrcpH4RGkAwQCfLqhMDvByo5wUSJHbBaL0fCY4hL\nPjgqxPVOUkhW2gjHFnvNhn1MiJJiZ3+SXNJBt/s0XSJDTFsaryR16Efhz6W/\n3IwM5PDw8/nE84ln3UeiHe7YfSKQGFHVHsJFN4OEu9Zvp1Ua22FYSDLpK1jo\nKjthvIkfIY7U5q76Y/3bqkyruDaGS8H5Drdnbstn1LXcK4TtxTVtqzBSar3g\n7Spn50wfwZ2Zu/Fi6bal2Tu9tm5Yu3BIvaobknKstn77GI+zFcI4xRK6CyMK\nTjJM3FDYDhaZV46Q8g3ptcIpFSK3BbxuFXGfaiF2/8tBQQ9+zjC4KPgGswtL\n7yvVNJezdw2PKvp4+QbehcvIfEPtZavIPp6EENt0LfKJtk1kbzaSupjSf6Bh\nhVotVcdpvCE/sQEGXmAxme/HAL3nWiM8wPzVHjOXlUncaXFAH4pAjJX0Fe4W\nnQINS8y8dIFzC2+az1zOROxnPaHCs/lHkiVPTNfzSlKZaDI78TQIXMfBiu/P\nilFXyOB43aeTZoTEfHEVPnWsi7X0gciaI81fFMrdZG0GtYomjQXrxAcWUH8q\nBzc/XIO4hC+4WzoPVHs2GQDYQynsWeRMcs++XW3r+YdNEovqlcWkoTBEQbZ4\nM6+R\r\n=ILdb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHOqPY6hXHzLGEO+0vdiEZJPZoPV/UYYVH1RqOboyOzxAiArRfi/W/OUn0s5p+XURWbUzi2jz04JUDeAyes3gojMcA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612463649000_1612463920786_0.9977838759741844"},"_hasShrinkwrap":false},"1.9.0-next-1612469524000":{"name":"playwright","version":"1.9.0-next-1612469524000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612469524000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-NLhAaT/PiitqoRHP4qHJEa7aFJLXlVDvs/PY0HXrnE0ZOzaBmo5POLngyeqpjuRtgYx6nbWuXHfA6NrswuNkzA==","shasum":"58acc498dec86b48cb02e370f81cda7c09be4fb6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612469524000.tgz","fileCount":208,"unpackedSize":6163169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHFWxCRA9TVsSAnZWagAA5tcP/1JeuZqKwyw3UazpDAgz\nKKWAZ1Gww5nhoNAzKsObi298GHcpUif88xcVaq0WA7+ZhfZ6eeEaGWbOIIp9\nyi+DPfXZte8vr9BGug/DDuWlmTWktqHkBCCFyoWX+Yad0Dn/41GwkZeaet7E\ngrPY6gQoKD5kJ922Cx1qJ/kWsDGLda+hbOyh//6uDF2ICQ6+anddFJG6cgvH\nfcCQ/cOZ1qS2cELPuiQ6+y9413tmfXTZnk8N/z2gLmMkX/xnqWp14E3zIE88\nWeq1mnZ1+8YwB+VgdTnyfq3vOau/EyUr4hmW6GMLe8iVVkk/H9pTWR4VyXqu\nVWxqteP00F+NDcbSHxJ0gR5GOtK2tvTlsHITUr7lVWw1axW3aNXPNrgvBKKi\naB77P/0dGemi2tRTgrXfQZWzUYuHlQGiRC+LkvyobBvHlUNZnFZnVT7/bCnI\na2Tn/nEb8ASqAaoGVHdtOdK+2JrTdnwE7maBRy1thIErJ/GjXS44HlyRhtM/\nV7P7hZCXtWHx9U+3kAf+OrrdyEq1spua/atJBOT/+5JdKQC57wupylSSAARC\nzwgRT7LaRSWQa70BC27X6CEZGrFa3WM7eFLtQGGj+ag28CMB33Bn60NtE0+T\nByWefx8NiGmue+PQnNRauk7ZwmdUwnnFApNMnTsruadelCe6yJniRCX7rRoB\n5331\r\n=SeJt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx5jLBH1zEce7I3JcyIxbZO54aDUwjn38jIjxCk+05mQIhAJCRY1t3LgTRLAT3eZ5wAZfp9MU3fhDQDZ4tfP36M68w"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612469524000_1612469680402_0.4582959931621944"},"_hasShrinkwrap":false},"1.9.0-next-1612478513000":{"name":"playwright","version":"1.9.0-next-1612478513000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612478513000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-zl8VCYBSHeMVqGYT5hwX67NFIUOpnWCVTiqLKNqx+7psEkE+BcGwRd/AifTZlirdoiLnr3sZOtl86124yanAxA==","shasum":"7534d1db3b3b18fc8d06268440935e502e9c3bc1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612478513000.tgz","fileCount":208,"unpackedSize":6171307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHHjHCRA9TVsSAnZWagAAb+AP/j7sjI+xqg8HaaSZLM04\nHnF2K4ONl1Uj8aFqvQ5IgytH8+DGmo55JjhuXzOJ8dFw1TelEg7ipDoQHCzg\n9QKgzm4kqf6yslEzSk774R3iydsBn2oVsA2wo+uViwlQx/Q87AjghQDj7swJ\nWk3mrbMdl2k9adgge/zq9UriYkGhUKR1sjqjRReS603UMyOvtFqsoHIGvHus\nBtEzVYTJ9UgL9VoLCExOn2I5O0dxCu5Roi4GWZtXKY4pQ3tdPbWFZs0e3uV+\nsayhA3LJCVpC93diJS0qytrNP9sRrVB/HNGHuBrXch+6OfkuhZV5y4hJPSlK\n+EiB+kdCsXa5XM2/4OLhUtbD0lKY1/gSH7qsEswWQhlqLsKDbfv1UAHv9iqp\nt5reXTWor3sdBoNUuZkEgRdjYbyubt9T/BVIeI3vNXbRjZFkT/HQC1SZ+sRz\n65aHTwDjUAYiwxNI04BPVVtAPWjyRH/TaHkvNz2WOwZLYZbpkOuOzgn073pY\nyDZ0GrmPkEmGKW/zJK/wwG6IafUx+kOqlOYrDOMmGMJ+uENRHhmFupw6mMP1\nxtHdaoWirzEgS7oBIg+DR+rbbjVPy9iTP+g38/BkbPMYXWcQDzCGx/tStMZg\nxThL5cgFY2++BCyD6zqshiiBX8xwU9VZOI2fzecSzimc+OVohbXtv3PZm1oL\n/jTu\r\n=9TcU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBCxRQRC3GUGbE++7fKrLcMvJARVH/YJ8R3gGQ/cnKKLAiBOCzBNx0Fz88OBMwwoz4bwyYuiWDpnOjp8r1hTMC7aJg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612478513000_1612478663271_0.3140865555540495"},"_hasShrinkwrap":false},"1.9.0-next-1612489495000":{"name":"playwright","version":"1.9.0-next-1612489495000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612489495000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-8+fYRejU/Cq1UvsCLb9cgLz1Z8ICXO2tmAyS9IRaphPs2rIrxl/VvrRC7pYS38NO05ScnkJX3tJk9qiSV29pag==","shasum":"bde703e660733cc6533e8627bdf9175e0ffd4c37","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612489495000.tgz","fileCount":208,"unpackedSize":6168288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHKPWCRA9TVsSAnZWagAA5rsP+gJw4JK24uMx/fooBGIa\njH0JHB2uT9JKZkctMuaADYiDC1SqwJ5SuRpAh1vAQRiNn/zDa373zCjM0fXZ\nCWqFaukseeqPACBmLjp/Z+W93ocj9I6NHT/PDT+7oQpatdP2ebmBlmNmLhuy\nOrOEj9s2v1VUXERFkvcFC4Vf+t+FQ4lhqHhtUjATMxneCjJAKs849Ryr9TFp\nU3AAwr+RZb0R1PkiLuENIv5UNW/rLCaT5z+70udEPqAN054Vy2ID+G/LAeLY\nnVfj9qwK7VhlSPnqT4JYSN2ykTxUxB4Jksi7IJZ7KtJ3RF4zmWVCGDzfcF/L\npb9WNYblo/VApHb+/k3fL3rLzMPNd9m4Otti2atXtSi2El8ViApGP0/vS1O7\noFljku39X12xJJlUE9j8i6W1GdIWATcFVj4p3KbAXhSbxadIEZ0MjL6Ugybj\nawXKRzhh8ITtMHcyxEvvd391CUmtNRudogGVd3Drwje8YtzonqkRhMgPc4oi\ntMeGVlQ4nESV4vZ6ihy4ThGub3061T6i/Y9XtO9BisFVGK2cYfqSMNFcWUdo\nSIjMTQBBwTP4fZtd0rjV4vn/+3kN6S4q/ArULektZg3/tvvn3m0gMgNsA/QP\nB0qvJGB7nYIzPw2l8qqmEz69sN+D84Aq4B5Q7NfqorilSvPB+99DK4yP3zde\nLprs\r\n=SvR9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE/Gfj1SD3k/yr8I+Mup7JiDrrhts+zldP4UFFhcMUr/AiBvPeassLzQ+1TDqdB6ziROozWGRSftMlbKiysdiNHBkw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612489495000_1612489685615_0.8332960614094429"},"_hasShrinkwrap":false},"1.9.0-next-1612502114000":{"name":"playwright","version":"1.9.0-next-1612502114000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612502114000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-epYIMJaRot5TeL8w4dlXAzNyklu1XB5Lfk4lLclWYceKGfdCXWUFWq7TUZn+bEEOd88g9m50FogbESdOVMIV0w==","shasum":"5aa466103801ebaa8d9cc6d26540553c65ad7e99","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612502114000.tgz","fileCount":208,"unpackedSize":6179976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHNT+CRA9TVsSAnZWagAA5dIQAIRUE/pozr837hTfL8Hz\n4AU/zctD/dHw7zmwZ3yDFBY/57dOnFoRorjrxv/S/NJeGxxPj4ZvC2bjSnOM\noZatgxLRd6qh16BqL9ChtYB8vqjMWE3R6CLuyxa5Cj6VbIQjH3dUpxj2SsKm\nUJsDRWffHHo1yjWBGjEsya4w3ZPS9gMmJWflyM/4rld17zkBM9Xh3nnD677w\nMEEnYDlhWxaGkqy5kMlEGlC3iiToNR6owPoOAY06Go6ad3tQm1IcQt184jtR\nre1D969Y6rDYW5ot+YvyvYxUSDLmzCTUUvhGL7nL/8js0gDggju2jx3ZoJKo\nmR4xXQ8y+kwiMAQmkg19D72zyJEY92VqK439N8M2TTM38QFqTK6MHeSgLmgk\ngBwAYq/4JZ6KgsjA1LewnXFb+qxcLsV0b2hI08ADfd/QTAIOYCEkd0n6t76B\nlXOV5XT3qZXWEG5i97nF3MLmA46QPUKx+umHHeDWe+y21VVo825CM5QnXUfy\nwTnDQFb+WdUdNDl7kjXtuBveLpIPuYV2r8RgAbBHUz+WG9ofv8p6b/DbFENb\nPN0W1oL0cYDokyoLadj2IKWNH5cV9U4a9WU6+4S8nwPCzdgemiilSxDQu7Vu\nnSZZ/Tr162Ydi38Mdx2VTQ529w1ZJx/JgBK/v/C0Xj1HGQcbXm+WbwuGQjJd\n0yqL\r\n=xP4T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpiAHaCZ4VRAw0Wq1Vzt8KoDAQjP6UngZlkOdIED1cDgIhANuw1T3idFLC4yoyd98G3tDCitsU85YA8A8A5xlyU44H"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612502114000_1612502269054_0.6289793036226006"},"_hasShrinkwrap":false},"1.9.0-next-1612546743000":{"name":"playwright","version":"1.9.0-next-1612546743000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612546743000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-v5QWKsGNzraUOVt9K7g4BsG7ZYOkZowgp2XDgx8fObAU6eRn4vItBSz57PDhxW0gxrg1yx15p0HyQxIP1aRM/A==","shasum":"d30ed5b64f09bd68177d61f727ebbe9ddb37029b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612546743000.tgz","fileCount":208,"unpackedSize":6183672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHYN7CRA9TVsSAnZWagAAa3gP/idTy8qwCq/ZUHStR2xv\nQap8CAMjR/jiONQ5B0u1FS3W2VaMYHcmALTmsy23FYKlgjbOW1EqvFk9hYhQ\nCYZ1O7T/tGrHW46iSbW6Cy7srlKSJiLNtMOITNXvGn5ZdYMvqKED9z5C02Nm\nDq2INMg7C1fMtXjA5fWe7kfRnURb5T4jhB6OWkEk66nkzl2VjS4z0ncIMfrP\ns7CuJ6fJ5ggbWkJNIl0w8m+LVRohal2276XaZR0d/lZ8EUxCGdFKl3ZeujFy\nTyYvNuN2BVQZmh1R5utRn2ymqiB04fMICqffhSYuNyledItF4THSKiYFpAbh\n+OGPGfb3AjygyS3MTYDlqZcewJy+SCUmr5GezXZEJ/8hnRhssSiA0ztrDqwb\nlCFp56pWAhaHwvmUgMXRhQyY3/kdQJYrEIv8RcjjqgYMLJ3e7L7SmEfZq5/3\nyHb04Sn1ggrp8ZQ+iVn0PEN3IhjVORUNIMEdWz0YDM6Lbds2e61I4eNKW9Nu\n2Y4iygwWSSp/Mo3zwGiZqgovhVzAo8HchIiKRsNT6+8fsnV+/MyMdhkmLS3F\nRP/HabEZ7ftBvGyq7HXmeCRR2YHzDwDUyuer9gVNZF8pCcPiaM1olmsYtESz\nZDQASKbCGKnkUSJ8EWO25lQL7mB9xMGUzw88DemRrUIk0u+OB/HWf5gaHb3V\n7rdF\r\n=Ydvt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHz1q8QX7YW/ErH1BwJ05LjAtjQDOWujspjf+xg3uQeZAiEA7a4pQMTEKOWye/uNfssUn0dPmcvHU0gVCoeZ58eSNvY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612546743000_1612546938790_0.1415601546163925"},"_hasShrinkwrap":false},"1.9.0-next-1612553444000":{"name":"playwright","version":"1.9.0-next-1612553444000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612553444000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ktvhAQBOU0TWKZV1z+TZl2oFETAvmm2kc5pfszKQnSLmC26AwW0xkTuugotG0+aoKBJ2NB4+3dHi/IEkz0EXZQ==","shasum":"08d255ea2577d20251cc52db8f14c29089e031e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612553444000.tgz","fileCount":208,"unpackedSize":6185242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHZ2iCRA9TVsSAnZWagAA0ukP/2BhwZ6Z/KOQn10RzGGn\ngPJXQ20kKqETIOUBgQHJwDYc37aX35EimO12yleQD0c+iPENhZQWSvYgv0s9\nXngPFPkYEJaE24c3YpXmQNIFx8ALinbmeaeF5CbJcUlMx6sPSq7HQc4elzpJ\n3a2bL4PYpNjWmJaD3XyV8zO/hvGb6MvJX0ybI+ErJwSlZo3Y+vfYHvigDEB4\n5pTd9eVwqDuPjrFFbGwUXlGhi+vy0C+qiixEHWKlHMwW7Y4ayKPmnLXgqzn0\nCBX/n3+FK1kU3ryoZTJJw+LzHqo1FT4fB6np5M79aLsX9jQcQ0Vcc72Bjvei\njAT9fnxU9KcsybaIrzZEOfrp35912FxWjykbXg3/7gpduEZnaIdeckJROzF3\n4ZfzeNpljbEXKw9k99NS4IaDHQ/+wdiAfwB35+7i5vUDOhgYXGZjomiXVftp\ndzk4iD9QwKuTONVNZxx2G62Qk4An/IsURjHWojJzjJ+qciJ5SOyCulPUqgb2\n/Qm5nyHYc7QM8NAmsbzuDd1U6/23AE7Bx8Af47xBY3+oKeM5FtGi4V3BMDbO\nMdqz/vO6FO+yDmRjQgNYs0sy7XvgwbGeSsk6xqa1yCXgxtkhDYl1T9WfBunn\noahgFnxBaobAdC/E5Q8zCi2qrmJ6qWMfuQpTP3+SRziJULRyymnKdOzb4zW8\n0tBO\r\n=OKgV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID70Rb9jKHEV43ddRx1NFn68fJr23IHbdkJcp2iZrm4mAiBTXwMgK8Fasj3F/LcW1DObPXgFcgf9pSV1C6zhwZ1Dog=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612553444000_1612553633486_0.14280688727628288"},"_hasShrinkwrap":false},"1.9.0-next-1612558605000":{"name":"playwright","version":"1.9.0-next-1612558605000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612558605000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-8NEWna9uJS5Uv57kqhPpysmmKvJjTDRJqLUkbGbqYoPLJMgBeEJUAubEPKowYpgXgnilT+/yClYLBnJDZz0icA==","shasum":"e42f880ad1fc2f0ee5fd8988841b133c6bb73246","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612558605000.tgz","fileCount":208,"unpackedSize":6185098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHbHQCRA9TVsSAnZWagAAHAcP/A+jR8dIKcnwlbwhlM9Q\n77Z3JX9+OyWDytfvI95lntSA0j/iwXBGyEWjXlITE8D6O0nRvzQ2txviO/Qs\nyxT9ByqUmN5am+9D+ZEfIgh5YKLo97LIM+PYzY/uj0fMapUVntmJEBLxXnNV\nBTXX/wz9zc0uTTL+zu052uLljnY50Pdzp1/gOVNjriRWtm6xUP0GtYJQ/zpO\nxKCEvHqAJLNLqsHE2k64ORORtMi1skZDSQipbm8BXaHbrK3CmdENuEiz4Pvm\nmmifX4ULSzR/qbHlNItfRaA6EzG5PJo3vJ7DVyXN1BF6ufzTUNUw68GNU0K3\niqNyr3952u+ClBU3IzEFrmEnbwxOOEL8nxlXg+ZCc0mdOwwFKvug7OQbPhPC\n/I3kjwGdmiTudu0OApDCt5h0R+7kp+dYPxa+eczSEZ3b/wKTFQ+kT5xeabgn\nb9K7MeHdmtz6nWZ7lC7v50nnhHTlrx8QnYy/FVCkPhWq0jJp8reamxQ8DxRT\n95lVTs8O6MLK2JiYWy91DWiMXGjgekjLf7QOiu6Mg8i9Qq6lHhKF1FDMobpy\nE7Mb09iVmWK+ZLYLfbDS8akSshdh5mLJ3+x6Cyc4Bnhoh9Wy7pqu8bAzUdQ4\nWss27803UXsVaovqVHmyYkEnPMyR8qmvIRgGASO8MKXY9QUAOu9hbrQI/ZhR\nxE5e\r\n=TXZA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqNLkemgNs7qIwlA/s0kILJng10KVeSTKMC8/iTRUB0AiEA//I/IEr36sdqXd4nxG/inllZJgT2nXU3v3YCe8UwsBQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612558605000_1612558799830_0.986558905113309"},"_hasShrinkwrap":false},"1.9.0-next-1612563867000":{"name":"playwright","version":"1.9.0-next-1612563867000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612563867000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-EZ/ZDOUlMbjsZp00fdSWX9cz0SGkoBOfq+QD9FN9cH0e0P6U2liiuz+m6AaxYsw1vHZ4FJpmKdqIPUIwlUqHoA==","shasum":"da34ae5cb0fbe1780e2616418e9479653c30158d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612563867000.tgz","fileCount":207,"unpackedSize":6153840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHcY9CRA9TVsSAnZWagAA/q8QAIzNkHeUN5AHL54fSubB\n5jW7DSMBuhmyrAXsFC2XNK1+ZhEueI97HvQp1+NB2RZ902SWCDEyDbi/kISN\neG69Yq9oIM13rzrn3souMOZEmAKJ1qm6BCR+ItS5r8WJORk/Djs5LEEqobbC\njA/vkShyR8Tav738QBjHA7pbJ0NDynegwwSUF7UOWQPa+Bd2kW34qKRFr/V8\nEHIBKmwG2n5l/IygIKpNkE+K971a8sUgVLFdE28nKO7Eyd7mEAca4hi/v1Kk\nrIUnAQuGSqpQSpb+eMqY/DK5C/DyM1sr+7QtjnAFfpUm4aNH99uj/H0rNwPR\nFOLZ4Hse1S7Ihi1EDneoSoPq1Orms6TWvLoxByAUd2QLQSV5+GrCF1KZzH0L\nSz+2/Leh01beOvjRBv+/kAXdcGcD1di8XfrbIQN7+HarshUKmtawgyFwYsoa\nf+qAOfN/vuXdR/XAP2RopAv0YKVBGv/LobYvQmlQmNw2+jrwVjm6bCDXoDWB\nNLi2jGlG4PlthFHHDxjX9GOOKnsqJ7K5qF4U1pFudaZU5lUEMOCWLnuDa2Ws\nY+7QCl1Pt8tBOl48FuAzUzrakSqZfEIRyRnY/uRjI4tWcch4yiBfs4OyEHsa\n/yuuZ6GHD59rcuipXuMWyggayQKITn8TxkaRvA0sesWDT0ht8sxpxrLXfSwM\nbuD3\r\n=B3+x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/DL9QgajEk5HYCZWEQXDGSJx6aRQF2EqIW6z83Ev5/AiEAluSci4c7N5OiEK8NAkq3mhsn5OP05Oqo2grnJvAgbgA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612563867000_1612564029073_0.34251480020355274"},"_hasShrinkwrap":false},"1.9.0-next-1612567728000":{"name":"playwright","version":"1.9.0-next-1612567728000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612567728000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-JBrtsE9f7CUudbqylhtOpdMr7KLX4bNgZUAYM3YBVQyl/Pd76ASg25iGYa0J9ygaMpufx1cmN0Pgf8x5ZdZpaQ==","shasum":"6650a236b7d4f8ba83536a8a303837b8a16b3ebf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612567728000.tgz","fileCount":207,"unpackedSize":6154149,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHdVjCRA9TVsSAnZWagAAijYP/RTfJ9II+815JLP7Zv2H\n3mxY1p0eQSaPJwnsbzXd/uD8GKbwqC/U7h7JOvqBCSogro0TfIm5cK/Bvg8q\nmcOws9NSprWIb+XZeqVE3veyeTI6jddbPnEgyeCPVnXgwI4qAIia4vosbZYF\nlUJ3yrIabpmvpP0py8PKw2mEcP23RIkErDgfb4RYwox2rDynf18SyzhNYQ/Z\ncITy0fGe6QSDlhM5SHfBwZd5NVH4lE5axk60NFfNhOBN4dMOBh0kE8Mcgbln\nRSaOyLWsRB+1PDsf6ibTBap4KHIERYDGowfpjDADg78pE87z8xjXx4rmTZME\nAXTxoabxK2qhsBjT1V0yRQhLk4OX4r1VTlGNDsRSs3YhMOXr2hdd4y00stBX\nx6NzILDXEFrqd5G22i2wYQmtTuJxhCFYXzkH6xyBlLwXVQMO0ky5/6V47gAE\nkOtb+rkhOwlu8FNO/2BNas+4Gpm2IsDlcqDojAa48RCp/JLuyYA0v+VbtDI0\nSn9dkwRPyw0hEGTNLXGBh8m/vLT1gkctDMJT3PEc3pxt4OArY+EChMpjwVyJ\nBtwQe/71j915QsC4mN1GViEIQBCWFVUuAoU9gQd6WzqNtbycgyeEiqRXXDcT\nQHnaQQWE1HEI9hz6JrzLP0SMghT8IpO+tc76NvdLEO4Q8ttwzIzSJfArkABw\nxu9E\r\n=+/Vc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLqKK2VmNJosxSO5oqmu2qlMfFgzQG1rU9k50Ca0A29AIhAK8pD+v6VlcqZqfxfwNpLWkXutiXm43yqecKmUKzGua+"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612567728000_1612567906191_0.053956239583841326"},"_hasShrinkwrap":false},"1.9.0-next-1612570428000":{"name":"playwright","version":"1.9.0-next-1612570428000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612570428000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-e5pWcPyqe39lBf5KicYuneJOpEpBVMFnr96VirHpexuCxIy5HO22LPP4d31I/HbQbD+JXf2Udi5L28+tJ+GtDQ==","shasum":"dd0c4954ffd34e3efd367d6c17892fa6358fa5f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612570428000.tgz","fileCount":207,"unpackedSize":6154305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHeABCRA9TVsSAnZWagAAKGQP/AkMuIseHJRYG7/0HQNf\nPJvBjWrzxoY7O5qpCCK7YnE9wJTDAtLS+SEy1yOcuNQalj1D6D370GPjFfxv\nKer+jKNdl7jhJg965rvdNjDf8LONLp2aXnNJL5HageG2EWiow43fjdT7/5Ma\nL3JZMawrXzl2nBWUOujldC/ZrJxnmFUC4CzJgqWTWaRI7IX0LpVB0KrPglAL\nLvAS9jn5AiLZbCTfbyhQd3gy9D2HNzgH0eZ7NWiK/QrYj3vhf/lPZrDhqGcq\n7Khb0sRQvE4WW1lkNBxf+urUhq/x7mtV8RGanlbe93IlwhWqS2JQe7BPCt0b\ndWfDcl7gFDjd3TTceW+f3fiFowdDX2s5839BOyK1Wtke0o8IojX7YYIAWMfY\ndC1hmLf3ZsuI0DFaLNHXBhoeFfzlNIzt4yItZ8SPE5FEZSOVOUPGCGBJpFcz\nTo8VqxrGMObQ5ZFhQptPkkEGYnEsgjR5t4Vo7Jfs/OYTNX3NkXxSJQhCmEnU\nPhBdh/VCEoaeQMzd6ms6v+UKJxM8xBASjW9bZs6j9jmfetQhAxxrLxhW4akO\nd2RcUF3+rLlAQMtzComuI1N0aoCtyvjoWbXT8UMhT+t52IvptiEvm/z04iRk\n2CL/WsKmO869Pg+3StnhEGoY9dy3CzGjk6fJjJP7RIlxLAehnpFAH091QIUk\nWkHW\r\n=Avhc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtpnV0kj1aTxFfOgCfIy7gyhpXG7RLNlF4TY1b1uYXBwIgIby7Mp72Tp7ZRVcktZ9l2PBP4g9i3zvq+cvALTGB5EY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612570428000_1612570624755_0.7121599473861715"},"_hasShrinkwrap":false},"1.9.0-next-1612570749000":{"name":"playwright","version":"1.9.0-next-1612570749000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612570749000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-3EBYCWbZsqrh1KhJLq4wl50d3/pfIDG/p4jYrZc27dU8nrDcXvLL4ckgXScr1YbTHeh9EaIUH2YSCIL49BKM2w==","shasum":"44246322bba7fdd04d0427387290617839c2387e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612570749000.tgz","fileCount":199,"unpackedSize":6163402,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHeKfCRA9TVsSAnZWagAARR4P/jsacbr1X3D+etn+9O4g\nkJryvP5wynKJScifFRQB49lV9B0n7ET6c9B0ILL8p7P4xeNIKjMJTXaxfoxt\nSO5qBwvXz5/tF1QKgvmMpYg2apdeqFNluE3+uzCObNc3umlxaeaZ9mLHtDrh\nDyWsRKA9N1nrp040LeaQD1ZBclwBl6/6w6SwWDlFovdBOEDMDQwkCbVSJG0i\n2QwBMoIdoSRhqMVVjw11Czvty5KuRWB0uFVDKyc4LBLY4qM3mf5EzO8Wmpc8\nB1y+FXbPyx5Qfar9O71aQGTw5VYKkYC8L5H4naa5SxkYaSMIxJvuDeonLVcj\nWIof/hPYk0gHbaSIZ2v2XrDC0KWVkfdoNCg2yS2l8+vDysNTbPhi07Zb8INp\nUakvofXAOrPxD1EDtbLDNbg5yVJbo7qSXqeJxvMIu8g7HrsIcUnkgnBw2PSd\n+i1mMe7KluJp1hWEH1WOhYp6HZKoud9/ud/WYmOUsT7S7x62M7Ut4fewoxdZ\nG9FTcNGIRbXzRnSgJB8dK6LwHt8sRzu+JCjeK/ganGNNoHKdQTfTIWLVyLCJ\njTQl55tQGsz7rmJpUVk/2uO3Q0l99oDkSs92r5dNi4Y6mdaHnMesKtNUuMjp\nRKIitRb7dPlsLVTVgV5VuiOkTNnd7sUrB8F0098pEF/hpruRo84OSAYMp6y8\nCSgm\r\n=D29m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICzBx2rzdSzsajC6RAvUPIAPu5c0CPuTUZgFL1JhibXVAiAKCCW3cyLlxZoQfrJeAEEIBxy1yXwbJ6zXP+qCoZVhTw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612570749000_1612571294498_0.3524926825424648"},"_hasShrinkwrap":false},"1.9.0-next-1612571533000":{"name":"playwright","version":"1.9.0-next-1612571533000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612571533000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-riQgbR8IlTy2SpEesft+Ztwf3rJAeY/4EsmP5Uhsa5ro0IjuJkhayIHM+bHwOc7hpJC2ZK2AOugMAQZOpYoX6A==","shasum":"fa412d670b803cf1ef829587691d953f90d941d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612571533000.tgz","fileCount":199,"unpackedSize":6163506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHecRCRA9TVsSAnZWagAAuDQP/RwIHyRQ7L3ZedHq1guw\nfl7OJBhaouLuML8Qr7X1dMt/ajv6FmAEjuuuuneahjHHSX8+boF/MjlNfZ80\n1/sbei0id/3qcipaAgJn31emPzCtk+MDJxNmAM3mPJe+BhEb8bTIvigTYmE2\naax3nN6JSP3qKMgsRqSSREqJKSCQgj4A521mUsJ5qgERhGpah1RgLOuJkTGn\nWIQwgfJmOnxQAVk5Z5oidZQN+6qMoPC+EkSxe4w7OUnzdNCZCMI3jlqcwtPx\ncl6K0P5LF+PCwa11wp7LIfuWIFmsd1BQTh/XZOiSyMnMrkpuAyzzDMKoj6bZ\ndyKYyr2NzqDOB409XAOM/ui25N8pkZYUJ5xLYzCE+jnj0XrUaWJg7GIH2l0Y\nftrbnE+/wE/sHZ2TWohtfyp+QgsyLRdOrl18CHiTgS33m7MK2Bup4GQHdCaU\n6+VGIOMRsYu3ND70NSQnkmJ5PlqQx5dkYkrKeq+2ETj4FCeit/95AbZV3UBW\nYenw3cQeoBmjueS+mZhwV/pFKeQAyuIOCnETtDhZj+yMORLhwwLVbF0b2Uo5\nIKwK5kFk6Z9YTBwYqZPtI1ogo0OU8ntuTIjBMkjIKs/TJ+8MMIVmib+l8Bef\ndXdpCGDbQL2xvIQSDmt0tJAlZr3S1kAjia0UNLKMDQWo8544ZEuLHo8Sef+k\nNYzv\r\n=oBSy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtvez03rcMnj2agiiyXP8VF/Xe1dX8RGiq0h/NEvbHJgIhAK1yhq32j/IbK+rstIhqETCNOP3B1Jvj7RBYpebVfVT4"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612571533000_1612572432939_0.2647474729777006"},"_hasShrinkwrap":false},"1.9.0-next-1612631145000":{"name":"playwright","version":"1.9.0-next-1612631145000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612631145000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-53w3a1EsldALD0tlTE9HLEgQBBPjfEz/s/zc7yzP3Rc6Ng3U/iLpavG6V5KiUibMp99dSxH5aLWoqvudZH0Dng==","shasum":"217dbf226f19354d04758d8a36ca10257a109d80","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612631145000.tgz","fileCount":199,"unpackedSize":6163506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHs0TCRA9TVsSAnZWagAA0vAQAKAZMbMnE8MvQgPwS0A3\nQq6UM4OMPXDcskHSuT6L/fobNGRrYptrG0NROXZZ7JPmmIkv0DhTlXR5akZR\n4dz9BxPBwCoBTLUe7V87N2Fc18cshTWKkgWtiBM1zY337pu2veHNrRiHTFze\nu9vpPJLHi47nFFSRFgZ8KPc72G3/ia3ILY9eoG2bk0baXxLdy3zBCax4ULLM\nIFN8+RUDXgUa2/84N6otAFmCWr4L/ppL/nSWaSCI0KyeTruFlsXqoMl+1ql4\n1T79R3O+/NXdD93pEDQtzawqfC0iPJOQ6OnIRzDeGy4FdbyUk/pJcRRvg3aq\n3q0jRa9X8N8AWUA85AVUjl3bP99lcojZpgZK1xzXWJOudrBXeYQIRCvM4cHj\ndwohyq6yxM2Gox9nGBWTrcSqroo3vcA5LAIb6l5pbbv+Jz3FU4MDYL1nuLnO\nibnNgFH0eUIGao5TybdfLx2vPMiuS0KllYluKIDBfDj5q1HmJVl+HWXLEEOu\ntmvXHa4a1nLfpRFjLOFu2taZT6vVM2f5dheL2lrRv9Qri0fN7ybVS8SMvw7B\nRkBSiwPpeYMldru/nV/shqwOX8PkUMtHJKuOA17y9lHEhCdzqKv4CXk6fzTL\n/k6BE0JEJaCUoPwd+R22idr1ix3vr89Uf3SZCPLNvzT6EW1TI5VGa4bzRQ//\n9b6z\r\n=J/D/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGyDBRmUNPDA4xN8vG+RfqW3l5vnc1m1CA3Hq12hWmKAiEAtIDOYu5Wca3/JKd/R1nQFIu4vC4QteQbVGEvSAj0XAo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612631145000_1612631314749_0.830423913097345"},"_hasShrinkwrap":false},"1.9.0-next-1612652221000":{"name":"playwright","version":"1.9.0-next-1612652221000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612652221000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-nK13fOIT+ejdeMdUjcZTvt9njND2xlIS9J4PWx/eJ9QVuPRCA/ZmWDON78QlXvm0FqO6aw+jSInGbQzg68T7yQ==","shasum":"e4c4a7ae016c0f05e10cfa633a1c763672635d94","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612652221000.tgz","fileCount":199,"unpackedSize":6163506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHx95CRA9TVsSAnZWagAAVHAQAJSjnu7gN1ROBf1OWN47\nv+bc05V18B8oM++SjojmXzsQn/tkQ3VwXXNnXuTRxdg/gTn0HuiaLWZVVGmO\n8U/4zpyRFFRAXo4aLRLJ63XQibIrz48sg4Pf7DEScH+3Y/Qp7DHkuC8aspe6\nGzFxNuGqYoe0vWXRIUJppoJZKxU9ZHJUQETNrC7a3cVUGgrY34MRHxMWzmo8\nznoS7402VUzQih2HdctiTTPthFCbWvkmtQ5cPi6+hYfbiQG7Sn7YYaVibDfi\nIfJntbWBTldZb18+ic/BIbbuE9Muecma7IWPwN352NrgCD8cVyxg5OJBtm5v\nIcq1E5R0GkYczNZS3iiXZGyRIQOqk23KfkUqHfVa0kBkLBa/MEgZYPc7SAbM\n4/z4sV7gCXaHnsmMB3uFOsy4UN3w4HRE/xhvJLaOrfXwpX3AJSimAewEHzwB\nZEnRtMtoONaBX95kPsgu70PpfSOAJJpWOjUlS2pTAADHPGkAjvdVV/pI0+m0\nG+jeCXM7ytx9Fo4LuteOfgLjGhmhys1+ocGq2RYj+ljvHfQt4vRlF9hIwkfw\n7VvCDb5xoAJ87TE9oj+QlxE22cEGaWCnFT1C7yAR1idTF7yGyO52MQqOFZRw\nPmSeroKX8F37E5vRgiEC1XIIZIn61aBP/S/d4PpiArJqrt0z4g7zSkq8VpSe\nfQP0\r\n=LbUJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgu9CRguPxJ3VDaB74lbGYQ8kqPTN19G1qUQads73xIQIgUiJ0zWnQmw7CYjmQ0zXgH0zNJI3AUmzAk0VTAJjwThk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612652221000_1612652408973_0.47953027460463904"},"_hasShrinkwrap":false},"1.9.0-next-1612674755000":{"name":"playwright","version":"1.9.0-next-1612674755000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612674755000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-vzc7BeKRHAyCMuuAcv/ePVace/4Wu7AJKqNpHFshPxgcZVesCDWvt5N4y3su9lKNYls9RfHeqPKMO2GxDn9AwA==","shasum":"1a409a0c418a9df8dbc8079bf86b29b677e471ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612674755000.tgz","fileCount":199,"unpackedSize":6163506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgH3eHCRA9TVsSAnZWagAA5PQQAKQDCbyAItWHqnUXLV4V\nsxG8IXFiWQW0gGwby776AMFutnBgR/Jej6KnZXwFw58DYG935m6YqHQN1hhu\nw7bloAgI04wzCUR258xkD7MroYKSUpt/78ASXlxaeuDa7YkKMQiBmzfJ3Jjt\naxfIsLZRFIb3aG10lfhm+QJHFv5mxgfjrF/JUz3c35ljoMkM4t8IEGk9AJjp\n3yBEn6mXthpFzQOwXppaOL7KjMHpQ5ch4oFhMGrw6jIddKoRWaS9Ah/XJysH\nPJbF9NlUzVhVcmILTRGbw6SAPuwbBRbZBcRVO45ZpK1vJN1CA1BxL/XwNHgY\nZx9oHAJqx8/ehHCufTAfycdaNHZRu4Qe5pvzHUiVszQPORT+EEMw1WEkPtti\n1qzdm40Tc7bd3HiHZYrhle3AUAcO/SY9zT/DJB1sdYG76+xRPT+EnIslznr2\nkgQ/6yRTbdx64zkIcesZVVQmgq+159QXcMqDrg3AnO/n0P3F5IHo7mdRn+B9\naQbNrQQmVIXl2wz/HuUDfhoZAuyuQSpWP1TCICNILI98Fm1J0npqr1hlcWPR\n3NfeWOw0lIqzwZDGDgQBFhBN3P6Hgrr5SqZgjFvjBTcNt/MVS+4cBQwN1pql\nsvsjsctQk9o+rrJ0xVpqFtXQGVGYqt2iVH75UAETKdIhBW95M0+hceOBxbJg\nenKW\r\n=Ezws\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqWRreZft+3gVoRzn14CByLQWrP2SfhCrMR5Gabd5GJAiEArFnayin6s5+xUh0mlp2Fj5p9cLIKshYVsNTeR+Fa8QI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612674755000_1612674950805_0.2872520110010417"},"_hasShrinkwrap":false},"1.9.0-next-1612770850000":{"name":"playwright","version":"1.9.0-next-1612770850000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612770850000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-g4tfj45w5wZS9Z+rxOFcyhrVpIZBeSKjZAmuCt5Jhw9PWB7PfLn/2Yme1X1wxELCQWUkTYj6d/wEXiCaEhnwbQ==","shasum":"ee609207ee020db307c533dc3011c9f9f7bc49d9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612770850000.tgz","fileCount":199,"unpackedSize":6163506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIO7rCRA9TVsSAnZWagAAIh4P/2hI+AXuYASP47qkVG96\nMUFVr475T+0vMmPakwSd/jjuwf/6G1ynOrgHCMQnTvjGhP0rbvD831RTLgv6\nRD79jVR81MTAg/yGQq1deQvMbq1aMc+aSqUo5r2yRZnI1gpMjzbUJWWCIs04\nonrYzz3reQ4YCF4UWw+UJ1/ig/k2ymWUraQzbmfuiiTx1qeXtqFtSOIjYQxS\nM4DEXitTQJLM0WH3J/LE6ZxJ+KS6+PsG70ci8sXUxsC2lFVEME604CjXZLCz\nEhJNi/bnuV399FXFjnrH3FaZgAxGhHhC8s+dCIrmoKGDkEUzstv+aN+pPjq/\nPdxK2YN2IjVvGAMwKVWYeu3SYKZPQyFiXPAMl0dMyTOeb447GMmRys8i80R9\n4kf7Sxdey53Ley1nvQvH8QuRabd4Kdedfv0y93IZ3JOEW1fG9HwdBRrJPqiV\nWt0fF4FhIuc1l9XDhs14baum3JNzWlknkhrJQ821JcI2j58KLpuI+ieUVsCI\nP98SvjjVChQgptEaNbrqcbFcwWu++x+X+suBeSj6LKiKnHdCoU0SXGw4F1X3\npOBZlr64+Y6Um5Kmb2BKu79NXgIch2qUqvzYEew1rgAVBuGei/PTeV54vbI4\njIpT0GBvxbByUEOcvWiwU1Ly4l+CnjGL50h0tx4BTPiFjBN7zpAzEP0/zyoG\ne2Jl\r\n=EoLF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYToCr/EyRXHba8UNrp0XlUSn/KWSFpEYpl8YW/A+DWAIhALUmBoWCMX9SAPSAqpbP2ghXXFoNd+wGy41rGrkrwr9W"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612770850000_1612771050613_0.22937250588027647"},"_hasShrinkwrap":false},"1.9.0-next-1612775010000":{"name":"playwright","version":"1.9.0-next-1612775010000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612775010000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-Wrej/JK5v4TIQ9iYjS9Gyp96uzLtspbZ36pRyYcwuOcV/bUdCcZczjoxzq2I9VwsM2+Rw+VivU/uHkzyagE9dA==","shasum":"6579c364dc20a0cf1a6dd610b961b8a42cbc5fdd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612775010000.tgz","fileCount":199,"unpackedSize":6163506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIP8UCRA9TVsSAnZWagAAWOgP/RJ4kyxqKTO0Y2YpBH7e\niyFi/QWg1yRKlqYzeJPZp2R8gJkbDUcfsfxi61t10dIY4npsTV5CAIukCbrd\nrZ/sGyEuKQsfzZ3dw3ulu6vm3pxfg38yxFVL6w2/sPaudIMSstcLt3vCNwnZ\nQH6eLOXejIchbZQ3UHvxCYKKr+Shg25BlacEvRZefiE4JVfrAJaI6J7wKgam\n1SrJYAsHshqmxpQdxaTVcO1XwH7TcX+h6mtzLPqBfDX4ewZs9aJM4CiqNffM\nYdmQrF6JAGVi6KSPNO6D4nZFi/Iu7j6YQXV8L/5S3RsOfrBzV1xSLSr5eTPs\ngR8ndpfeyaMTl8OoOJeo50l4pOEn2UEtVyBLnLutHgRg4yxSgSZMtJ/7pNnz\n9sYShSWuW2IWfyNfdTIPN2XoIGNIe8gJQSbxg+bBfPCvmolZF38lXbV06qKU\nCDOItP1lzfE1YTqkvxTfCOy4tPAUwfKc6eJjnE+vS5bjC0PlCXFFNGFsPIl/\nfMOBJzoGGW1T0hZC/jqeuJKFocuMlrfiVPyg7my7j4K4WbiPVJ33YhCeXjNi\nmJhLnTXIpeun+mp8o8Gsmg7VwK9MQHzSieE65VGFgI5igMJQTZ9k5CTQ99BC\niq/irO3lZBMgl2FAqR0IdskZmPCiDr/Xg+hKCWrv4jvZq592H819blLYobUZ\nGjel\r\n=h1zw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7dSp8AiwgTVclMbcSe7vt/XldK7KXOj+TjGgC6tf3IAIga9Y7YkhSz02XljBUxdZdz2rA7wLwJZmZLczMyDDG3Oc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612775010000_1612775188072_0.42741154705719353"},"_hasShrinkwrap":false},"1.9.0-next-1612801374000":{"name":"playwright","version":"1.9.0-next-1612801374000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612801374000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-v7Zl6TdD6beohEB/GmBpG5BTB2UTgvPSz1Ml4Z76fMClxHPJE7IWP9SDZIPHRFUIVXDNqykNUd8b9aouywvLYg==","shasum":"3f233a6f8b7bd6de314d46aa35813796cfdc7b47","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612801374000.tgz","fileCount":199,"unpackedSize":6163552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIWYWCRA9TVsSAnZWagAAn44P/0r+O+fk7DjdLGlDLZce\nmGk7EV28fzPp5sHypYpOSp8OrdwHVJapSnUQ3Gh0ER0XYs+j9QMFdPn/nb5M\nx4n98HHwym2p2CXEw0TXl3OuEir6C5Uf4AsMgO4VC263Y/Ij5CDVFewQFa8o\nzE6Fts5SasKNGKhrTDQ/6m0fiOUr73DLPNuXGhRAGy8xU2By4ssGW/1KfENv\nb+xxznNLJvX+9jQ8tOtcKMtpGRldPVQP3l2ls/CfDvkwNNpk+tghJg+eip1H\npQLtYMxqExae24FJKL/aIAM8bof7j4k7Az1wtAopG5dchAdZ9rqSuDnKZdOj\nIcQejuEJJCB21LBiGRFyAAjnrrW+bT1i3MpcrlQWokD+dtYY8xcRf/6HHIdB\nEHN2FUEysf3lOFPq0UNMhGeRFcuybmveAyNACkS+5iK9KUZsbkZ8h5z/uqqP\nAsMRJfokfCQ7r+QfkJOV/jdNcpEVDwcRgx0QazHc/hoL8YVonJoS/F0TO4oK\ntUHsnR8uoCj7axuf7O1gnXcDRyOl1MOlO6S0bSTFT1CyNxqEfw44qEoFNCSv\ndglLkCIDKREi+mmx1EKv41jwa8SERgB2kfNKLTsXiQR0oCLSXsc0sYzuho1i\nfZlmwTeJM16xkotUnglPH3f+tVz5rSBuT5EhrZ7l5k2RWP+F1Lzs0Pl1U2gE\nHOaA\r\n=EevR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfQlcDUqlgKDZQe7qVII2FWYP/KU4wjKKpiUtKoOyoxgIgTYJZLfliwDCbiv/3CISJaIuu88o8iCYTS3/g5nJVLtQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612801374000_1612801557930_0.37017835999921966"},"_hasShrinkwrap":false},"1.9.0-next-1612810805000":{"name":"playwright","version":"1.9.0-next-1612810805000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612810805000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-oCPY+hXrZVNyxDA9lamjhzo3BHiDoqe43VWrcjeDuC2yjOu2uWOA5eXoMnTBFMqor5T+UdIsx6L0J1wBAXh54A==","shasum":"a6b2cca91e05e1ef45f94d3179f2bac440a27531","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612810805000.tgz","fileCount":199,"unpackedSize":6164098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIYrrCRA9TVsSAnZWagAAD6IP/jAp5YcxcBAJHboROOO9\nT6N7dzGXLI8NSmEeSI10TZZuJxTjCN/OHgC7mGwsmDu2z2crhhTluByKg17w\nuPGxdm62L5ve27s88SgaoZ608/XgWMiRvtr7NlExkmV1eREMwk3wJOfnpjML\nIJQFrKaihej4RdI625j0bWZaym1pXrM2Y9yJsprHqX+Ag8RrsqiBp2OCGjfB\nYcltlEnmU5Hup0YJbjREo17iDcc3E+bqFcn8JytZBi2zwSajTq65vqp4vi06\n66hgBjNzhMWUeYUNCELt7ou3UMFlEccJn3fOVwt++wpFnPVzl1Se6f3gU/Pn\nr0ywbITI8/3G1UnxTBd/yP+sIToLAKty5oW+tfAscMvxPJYIt+jRZGjWZhYH\nEGMBRRt2nPX5HS/zmDtqRKtmcqkX9Jq9MAwSfPcpEDKnKQ0EzbwPF/G5JRmD\nPvvSpErRkpmwzCuI7dQGxDOl4mK8hX+4Nmtiw6786p60pFVzb2LzKSQrFIkl\n+vgSG1IPrBNgkIdV64B2WFsYij6zvLXo7OZGvjSKtKNVfhqeyfdiiVIvQ+lc\nhvEk8aR8l2ihvkt/MiC0AaLPwcUMjMkui6pS3SLdc1PTgYX6BCT1kCD1ZaT5\n71IVZhpAvXQuUwF8o4j1fOCBksG7ELGSWyIQP3M4mUEoUGYbYJyMB5HST/Lz\nSctV\r\n=Bte/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBnLbGBg1IgtTSB8FVokIWQKrlCm7fDE4BLo3GAt4JUZAiEA4PRlVdUx8fmL0fEJGcZv7fqsV1jKEU9/65j2N8XoJlc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612810805000_1612810986710_0.364136482334543"},"_hasShrinkwrap":false},"1.9.0-next-1612814305000":{"name":"playwright","version":"1.9.0-next-1612814305000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612814305000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-9mv35TA8zal+2Va/lMeVKSD9o/U0HSfeEkJMMxkwAKedlndR9/grdjBYFCmD+vtjdp9BWpzViVxkLNS9vPaRjQ==","shasum":"cc0f087520e7aa87fe4070e89f72a08b164d357c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612814305000.tgz","fileCount":199,"unpackedSize":6164226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIZiRCRA9TVsSAnZWagAAmNIP/jKeVt4LJEQsqw3+bRh0\n6jviwBaITscMwiyFC/9nTZJJP3PVX/dQyESCuWYK2NkaxwDqO6vQ7XMs7ibm\nWR/5exCcnIcuAL0ErwlbR6r86IjgEdlyPXvbN4wzelV+1nOTspsvxUuzSWrh\nKCVNcjCwl9NnEwWLkLfbL1KaZSd4ageMUBi9POFhlLrOFfeDOC2ExaqLkMb3\n4kCdWoUsEC2lzNFX4/poyWhutRWV0ISDzcXY8BEILkqYnfh0dcMmC1kd0Bwi\nRNYUF/2m8e2Gdfdv2WxkZtFviJg9bXl5w6Kt4BYUZ5PYz4fcJ5emug9vN9KB\nVRuRz8v0AqT+M6v6h20giE8z+MBc2olXydJwIC1BZbjD88MEQfYTITkMNJqe\n0s6bMCs1pfi9pNN7Zj8fbZFIAnZVyRjoVIMd1SOV2lyCuvXzd6jUV7BYjNO6\ndClKTAySVMiMj1XtN7CadADRLbA0JDbj1jidPSaQj2p4qafe+fpHoHjB8Aq7\ngF4HzYX+zdD/hGmOM6C3+IbnKvwuQtQdk8LaO+ILHrnt+wMnTSQsoscGWLiA\nQ3owy4Uj25OJpXr/m1LDymMG8DZicpZ7gKGzYwBNlSjXrNwjtXxbmmE41zch\nPAoXfC5diZlQOvYGkdDevJcQ/cFYhBrJM7+kuor4kJDRAaqLGA8lvcG22k6U\nDiwI\r\n=0BqG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtEePdn6a0QPRzYdqoI1VvYv/yXDxICobJLjIOB4y2gAiEA5CVPnrZ0qCMMWOk+CnK45Y0+0S87vFOx5UcoM8J1ejc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612814305000_1612814480474_0.5625591167148407"},"_hasShrinkwrap":false},"1.9.0-next-1612814865000":{"name":"playwright","version":"1.9.0-next-1612814865000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612814865000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-SzbqbsjWwEYQQgj4/Syo6SUrhfqpzR4ly58WfwLG98Q4opCwpmuIxPyzxmHW0daM1QwfzUdKno4JTD9+YSU6tw==","shasum":"a6bd74f7ac8725ed704ebb7ed5d347324cae7bb2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612814865000.tgz","fileCount":199,"unpackedSize":6164537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIZyQCRA9TVsSAnZWagAA+esP/1LuEOry/7j6oJDnoQQM\n779w0QcpTgC+GjwGQZee0DKo252iDxgl5yDO5i8roSPbxH1EItnmLtZXvqHH\nQUebQ3+KkUhlPVr+nB20mh88imE0ZqsqSnLzGGeLMU3vxs7Blg3seL1sKV7w\ni25ax5tU5sgoBJOtbTiNtNCqa5Fa4f89WSgXobVpKjKQjcV4we/dg10zINge\nxpai1WMAKg4+6tpsjP9pyJETSmPRhPHnd8GBF9ebjYyEynW87eVFw9XeAnZ2\nfLaqzv286WHifRQhrHxNFORJ5FBlQwMNuLZ0eQuU7+RhbbvQ1+TsoJ7tZ1LD\nNNPV91oFrranIc00rEhmefOi9U+SLfq1vjeRmUzdCXw8o3PSWbdhC98B2HON\n+XrjxdWALLEmevxQ5KIgntoP8giZCNtONV5YZ53OS8k7h3P7GFPLD4c97ZIK\noIvYV+ae9A502j5Oh/c4ybqTNi7PgwJOKwCojn+v/H9PqWSZqc4nWqoWbxO/\nd94WWbESPR1SSyQqJoSDVDKvCwpnbAHD+v8MGoDjhWyYIJbwvEL4TzFJ+YJt\nYbV50QhBPX36XvRS15z30aSVyFby/IjjawBqqBDu2VABn4drmwFO4upvlEz4\nIcF6UxC/6GcQOyeTnczL3/xCLhkBP9ude+ZmGX0O2GF9oaTfK73nQGBGJ8Hv\nkQKh\r\n=CKhH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHb9GpvMZ+YjBbuEBRleuMPjLq16e9XDJMpklCmWnvvsAiAeG0pQvJSv7B+TEpQs7/T4OcUBiPi3OHcWbojrylZYSg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612814865000_1612815503573_0.4632452415667587"},"_hasShrinkwrap":false},"1.9.0-next-1612816037000":{"name":"playwright","version":"1.9.0-next-1612816037000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612816037000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ycnv5TAnYJ/PmObuoJVquFU7DtiApD/1lvu0ixqBMJO4oUylP+80eSTGuR+Qt7/cvN1UTrDCthBZGOO6dNmvuA==","shasum":"01935c77b428d8ced06b0e0c59196059b9a1141d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612816037000.tgz","fileCount":199,"unpackedSize":6164537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIZ89CRA9TVsSAnZWagAAwEsP/jBAHn4cu8BFPbL67nXz\nd7cap9OSl56lCOKpC2JH9cLkMcUISJpC8H4vuM20Z9QiHbZqpomLL1QIJ9kR\nuPfiJyrqtCUU6y1Ecedr0lYDG84cOq1vVDSFa1beKDdbGUkQld6LTQHbvLb5\nIWw0EeQOtQ0wAfl6LTXPoIBfCxvP2n8HvRqGoFSnTuHRMUX8C1uD784XVw2s\nDYFsPYiVhqyiGcEylZE0cU1BK5dLw4teBAXCPkIHDK8Mc6VLIe3Laxv09NJ1\nOelbGOsxi+lIXEf+iNCXmuHchQceYcPwlG2zJz+NwfvzJ/ydRm3dmAyUS6kQ\nY2wVXdJgro70OkMLLrIDLHpeaoeQgk3NjZRyXhhbwsTTP2F516vanifc5Ydh\n4xv73J+eSCLPCHNxl/iwzXxhXULS2Kd+eyrq8T2PFA/r3/7A6IsG69tz+utt\n7aI2HRa0H5UB3WTW+sbJftp3NpW/T3C2qArxJjSwnsyE1PcVNalKXBuKhsIO\nP1ltmjj+67TBy0AmtdcifUtzTFKa3iTogJTd6/u1bpqXDU/kR4AFFU8z8F3U\nu8z4NgIgq4Bc7UyMi8/Cema20acSjojH151s6C4epdu7g5ngK9/s1D+NTCFL\nkaa8YsZJCH4CX8sX3Ei36ZH5cGaM3qw5LTq/sw0kFAS9inwyFA+RV3y2z8xT\nfbaW\r\n=3iyR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8JNySjZ9gftAJXwyAC8WYA0zqmeF1XJ8vnK3DPt4fDgIhALxbSOAPZURgHcYn+D8PRNtSt/3M0+XwajZ6GvCXIAex"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612816037000_1612816189221_0.718391792672741"},"_hasShrinkwrap":false},"1.9.0-next-1612823945000":{"name":"playwright","version":"1.9.0-next-1612823945000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612823945000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-b4oTEXoN/uPN1eTaE6qMZ8im03FU2ucSySMVwcP1OmXUiA3qrBcFUYUt5t1ybZyzN2YBburOVCe0DoP1c36uug==","shasum":"91d96d9fce1dcfbddb9e6189854d215d832f2e68","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612823945000.tgz","fileCount":199,"unpackedSize":6164537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIb4fCRA9TVsSAnZWagAAgM4P/1v125z3posmiudMGhia\nCOQGMv0sN3NDiLTwSPk09PlgaB+oU+V0fFRWKZAweHvdAmIlKan+gFh9gYoh\n3w5O6UUOpNgkG7/LstUQufon+kV2l4h0DnSaIhLeGvtmv5QSdd1TQl0hko0B\n8uiL/WbmnAbhlD9ljZVBuqGRYWOmYbLtceuJ9zXNFTpzCZTpW0h7vno+BlAC\ngxm7agDlBi2uRa6rfrIsERm5f2o6E0McZCRLL4UTl912Fl902mElKTpuIPi6\nmf5fEfwcE86RGxyPmHzs13uQNlcfYq6Sk4JbiCGj/owchg3jbIxbYnO04qTi\n4c/PyYNIROsykuhjdfRF2xlciFlCvrws+o7GrHREudDEQr/YM5P4ytw13Rn9\noLFSOOh1amP/TLZNJzWKhKW6axj82a9s4CsxikEb3321YoS4iIiVdXPwHTpg\n17qMm8UpO74EI9KYkmchTYNxWDlanQcV3iDE6my5qz8yqfwKke5sZgHJvdLF\n8hsT3EJ9lz+ja2oDSs/hfzK08kCrBofC+MD4dLITqFCZVSh/BUfqOFm8kmGz\nXHFh7rwNevcdjFcgvE1LKaNwCGut+XtNfvc2dy2GUqU5MX+AXjlspIkfDBcz\n44VSk2tuQftg7OghqtRxoQvuBlU+vzdXfaxqNfFktgtCihnicBn6zO55JyTy\nCPFm\r\n=jF+J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHVdScvkUVQZ33DreEYVfd+NJNnmh4jAIUpaSiKnzB2pAiAzj3qiG6CpYoPZ4TJ51F+xMzVWYKfKob80ABa76HAMAg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612823945000_1612824095048_0.5488848611652184"},"_hasShrinkwrap":false},"1.9.0-next-1612829055000":{"name":"playwright","version":"1.9.0-next-1612829055000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612829055000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-n5sIiYewbZaC+kwniOYogtdon9wvmmMT/aUARfakgeQ2vPK7Zzi/jcOoh7bnyXgMpX5qXCAMyiKFwDO1M01bWA==","shasum":"7164651653b87901ee7f1dd64d4e9f35ed92730a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612829055000.tgz","fileCount":199,"unpackedSize":6162390,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIdS6CRA9TVsSAnZWagAAfScP/3GOoeyJUnaFr99M1sMx\nxXVJ+bOf9HA1ogt+LKQgob3kBuvHWgKNdILCnsdfTC0Tql+fYILU7Mevw9Oj\nSg6IdoAfF6k5zE3Wy2UagzgOjTWb71JHLeonN3qSWKoRcrCspfCT0Sv3Rm4h\nFLWCHVZVbpr+IkkMAaVq6RWzDO8ckYUwtfpDIGafdzWa4oHSg5NH2VFmuPLe\nYS9vLLr3D09DIuJI/4VySNqSOAuLs7qt+nuDuARI0SaPR3r5/luPh5mmZs12\n7YOBKeDWXMZrvpxE2y9aDZQR/PNWFtAAmHg3pILDUuldsoRDovBq7QCHwV1d\nvgpPtQr79uIAuJ/SgbdgIAOGi3tR2u/2vDDuD1qDPqrkrw9YpBjXJCZIR+pY\nts+zc2rpYfFhU/nL1DVboubv+h7e8U7BRrOFIDkn3GchKY23unXv4FQUrqra\ntfR+L4TxJf1+aDel23UCHec0SXMgAxjGGgLrwhkFomp9/UCGyHm/0JccXXt0\nr1mqryjid5Oge39R/0dPDDXi10/V4wWXuj2a43oHMOSkBbeQ4XNh7YZhlCQo\nzEX+lmOwIMk3U08nfTtU04MCKKXeKupdwL1WktnuRx4ejTg9IvT79oTYfKDz\nRec7AHxEXjoobiIH0bqBM8M442xmXO9feV1B6H5WItYyQG5j6fHxCjwZ5Awp\nAegY\r\n=/upr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDVzltkFc0VAAEt5VFu1n0uOVfS0ItJjHW85P7FhtzmMAiEAi6wiPG8HRCaHJWc+ySp0R/dqUCWmaXHDIu3uvOlOltM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612829055000_1612829882268_0.1578970090567522"},"_hasShrinkwrap":false},"1.9.0-next-1612829977000":{"name":"playwright","version":"1.9.0-next-1612829977000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612829977000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-O8mROYBU414vWDhEj5TUU/2hZjYKKzFAFUKjreY1fKNz2rj9SEaXfo9CLHhZPTyupINnvaIjFTvXFRyEJnHunw==","shasum":"5a5dd3faa91dd361bd87295950a58587b0c59248","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612829977000.tgz","fileCount":199,"unpackedSize":6162390,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIdpyCRA9TVsSAnZWagAAruUP/0fdei5Af0TzERrpVHh/\nIxpWuYzLb9SpC003fwanolqsomEXci6vr4duuO+pPQJY8LMme59PF/OKI+oZ\nQG97Vk0rPlHp0rFdOnndKG4qRJX69gzvn1ZyW7shcvQMjoqc1jOnhmQOvdxk\n4yS5ucd5a54HSsjTpW93MEeNGMmkyTcvFzKIz0u4cf1ruFcH8XYtl+jnZy4k\nDjRN2oUDKXn5CXB9mWuaxS/4NM/zMefEjfu9WBnJfJQZ8DTUSvr10zVq45rO\nBzb+PX4mznrimFwx5VOrP0hcN2xz8L6HCjvUTvIn4kfaWa+JB7nqxVX34HWP\nV0eYYzF0+a0/5sNfHZo0C5KsdUMs6YrurQhCOFoBLQrix+bd3XylLieUBAnW\nK0TvkN/HSgqH4hsTVFeBo/JsOUllk1CEVz+Bkg4uIqVmgrLfncs9XYgLG6Gr\n8c3nHmbPQ+7SSMTDXoAvirHb+dx2N5pjNSxlXi9UJlbXldiTpKms1eVk2kly\n27UxgWx/cM8sl2yfxwgoVcie/yheQaQcFJCxgKVgTPNphmIX/DVMsNChNKdY\n+nNfr44tCA21Bj0teU/2gsmcvvKjUq0eAvYOtQYdi93hGP3t112/QrwYkZ9+\nBcyzjyhhfxxosAhA463fOBgt8J6Jd4wRr8/aq7svW5q2lYkWYU+e89KN8sd+\nCN4Y\r\n=0X0M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpEGIxLKTBwPN34YAexCTx9dRtO+uG0Ni51751XUXx+gIhAKFAmziw//0Y9/bHEugRKUXa6s0t2su8HRDBn8TpkTe+"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612829977000_1612831346017_0.6537460807940108"},"_hasShrinkwrap":false},"1.9.0-next-1612834381000":{"name":"playwright","version":"1.9.0-next-1612834381000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612834381000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-PWMmyVfu7u3+ZsCIGu3ozBZJRPu9ceagu1h8SRNz/Sjtm+aw6DyGu559hozv3/ozYLMa3GOtBnENGnfYPubEzg==","shasum":"4ee490f6aad754012fec8da3a26ca6211fe92b6e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612834381000.tgz","fileCount":199,"unpackedSize":6162056,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIecICRA9TVsSAnZWagAAaiAP/3llGj7u4IDZlNDcr9n0\n0DlLKEaRDrQ+5E2RFleqAwhU+lEpfukjZtvBUlc2L1dnFdHayABCy5w4eTTL\nicqYJUZ1Y4Lgcuv/OXxjOAOYxvUStKp3hWSiBjfkzD87auSNLQ/i17PJO/fr\nPQdLEfPISVRPgPjOZIAsbtgetTsUsosy0r8qcuX7wrR3ARhkt1yt+Cvu/wvQ\nXRDuJXvs6P+fvyhC1U5AndPvVGR7qUDD438BRhkGb2hWibZ7lofoUDLH6FtH\nxE78+feSHZljEE/fiU22/Oe9bp3AwWZbjLCklAprVxdYe3slp+oH3G6HabKN\nQ0AaP5Mqc2Om7/JPY779Cu1hryb9CqzLFUiaoL2pCnXc3s2vvBCvv2Fu/Nm1\nZezwFIZhNtjTT30zdr+ja2dAjLn8CRYRJG4IowhCgFtIeuaihe7mL4ygtH4n\nZZkScD0qHNK8FMPhIp31fHSOghTtC1udqk9o+imMduv/YpXdhqVNCCgb4oX2\nQnblaj5QeO8t5iMjwzEqwFrNB5AtJsWZk367kFVRKulKGqLcvhU70fbSfLVE\nUhZWE0odAaPrTewXlN3a44AOYw37i8hUo6TvLub8bBCoIDJ4Syc/lM8u9NF6\nudVDT5JpmFQqYYT/twRjLPc3/F7tJ35ffCZ3g3i6WDk6K5UKuzGTu1aD33ry\nnrBA\r\n=VtqR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUX8za8DzY7b3pcYXYQj9zf/57EANfJoSMmNHHICBm4gIgUh8gZFwafcqJR6v6GzkDlGK1u+aLfO6u9dUtOktEyHs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612834381000_1612834567697_0.481296204171618"},"_hasShrinkwrap":false},"1.9.0-next-1612836447000":{"name":"playwright","version":"1.9.0-next-1612836447000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612836447000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-X96vzVFWck+ZEIHToPOVde9edNaMt90HzwmO73Jzr7rEzk/nREbGcv0FhyQUaLfTj1EivNlsLqCsQgCqVE4w1Q==","shasum":"5b55be780738ef654320356ca03fa238b9d0f5eb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612836447000.tgz","fileCount":199,"unpackedSize":6164046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIe9CCRA9TVsSAnZWagAADMIP/AzfchHXvPTWiXMJv4Hz\nds/Roeu2f41jgilh6s4qWOt8ZqD1UGmPmbnR9UCSBsUVyxRymumrbFpgMxij\nRyjN0njHqpf8CZJUD6eLzLbTKQ0iDydC87g3zq2K5xyz15lRF2X7ZjoWv+Ib\npY5vFkuzK56RqUEy8y8CAObgjlkT1zptphPQYoXYDmESnJwWz5F5zYtzuI0E\niXrEDEExuhdbpjuDpwyRW2ZAm9ZOFiad5Jq3VRtKO8q1wjpCu6GPreeeGCLJ\nK4SaRGeWywj5Qc27wlOjumEsjetRwNcle4XdgbzUjuHidlqDXIDwNfkfZW9K\n61dlbpHgM5/ADDWNB+2sTCU+uBmHe1u6yUnidPP54YtyxZ7fjxo45hWZup+B\nEQ24qIl/z1X674FyiymMnI0uuLD8/TFi2NvVLHrwA5BVO1LcnbKOo4OkIHET\nf0jY0RvVNteU/CjVlRoEbqPQVmkisFjQgiHA1SY69mSIEOVRkUGs+GYuKajg\ntu5QgI6raPY5RmF8rQa4NX7MXrQebjxl1M2A+lgGl7w/iDBOU2TRT9whEeY6\nQ8+X46cxCba+vVZb0tHfmfQnZ7BgZhNwnvWhXnI92GtPm18G8KGVl5PmaGUG\nCenYXoP+i4jwgtBsMPK9/IIHkvRbi5IFnaDAqSBbJM4vzbtMQ7BRPM717I56\nBDTO\r\n=gYpD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhaUWzQ9ydRaCAr1njhx0wXtKHbWUchnKLYqFnWKNqbQIhAMb4y9Q0zl1548+0JKtLX4IGdoxBGcvKbmOiIk5ZgTpT"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612836447000_1612836673793_0.17400351568112793"},"_hasShrinkwrap":false},"1.9.0-next-1612842671000":{"name":"playwright","version":"1.9.0-next-1612842671000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612842671000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-p2b3a1/QK+QH5WbEDoIBDHYgHjhvNNAfmR4ykSYnBgHEB3zCeB1QEj5cqVZ0BJh7fFDhBcqSUxEfsfwJqs8ihQ==","shasum":"932c8af00930affc81c0ab5db14d7d7482fc78ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612842671000.tgz","fileCount":199,"unpackedSize":6164046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIgf3CRA9TVsSAnZWagAAGZAQAJUadFFZ6DaxkvD4IzEJ\nb5adv/s+oo0WGddLSbaID4T657eXgiqyNZRz2jZ2lPhBsg1gxQ4/UYPJoHxu\nZ2spgXJrg8g05TMs85wKCStgj7D6M1uh0iOfNOoCwdtT6+gGG1uBAufJDGnb\n3U1WG/jpMhLhnAXHltD4fzYLbYdmsftVjzimUL+pH/gmFtxwkLyzVQzpD9rU\nvDTLswQqdZ5PhzKvw36YOOnPjznLVlfIda1tr+ncHUfr+8nIqOjn2eY5oPjh\nuvguk9ieSGJXKXL4WozZt1B3Ei6THmBsjPFznnJFBZqblDKy0TYgd5PZUjkh\nSGloaKbVsgj4IR6FH4LkOsf2LYQ/9pGG81muIg5UkUisIxTf+2DYcqF+xEO2\nGIjs4CW4yAnxXxTJt6dIli6Tu4/5kYs3e0m1tsg1BFI7YKrC76uRYu80tRin\neEKLe7uFxGTboMhLJicNxyVk/ys9dsrNFL7DExaFCUg9OTj8nCpmuhkSE2RH\nM8DBInTf+YMlxamj+OTX4c76jwhz/7SEleCeOOK3FDF0a8Nfdvd97t5eVfKt\nRu3lkxaZXLLqZYUy83KDLgiA836qCrZyo88I4Ue7cI5Ld4IbQKNzeni6vWPV\nrVx7F+x5mSIgKVkXmNnMw2noR6ZNFlP7Y8aH3Sz7xdS2ixmEjXA8yJ6Ma1fg\nUoGM\r\n=C/cC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlvezVXJobmiSScTsYl6Za+/qerr5mRcbNLzkVVmlIBAiEAu4+QAR2wQvig8A6rZYUhxrPlpFWVvMeG/facHCpNimc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612842671000_1612842998670_0.4808195798395578"},"_hasShrinkwrap":false},"1.9.0-next-1612849997000":{"name":"playwright","version":"1.9.0-next-1612849997000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612849997000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-OzPol3lrvf73NhtSc5nJERqJR7kne+yn4WAmzgZ3Epa9zGjd17RMmt7DIKr9KvimiHeXt6njQZb3aYjRjOKsTg==","shasum":"9b4c1e34db2864f78019c8d74dbb5db3aebc2e99","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612849997000.tgz","fileCount":199,"unpackedSize":6322434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIiPmCRA9TVsSAnZWagAA6zMP/39U3wUkHaV5rrCy6X2n\nCAQvEl3vPFJs30E40TNa96Y4bN3btN1WLmjmySGUjgoiAoJEkHtT7Wi30Z5D\nMp/jLZP6aWsGzmtOJxO3GAK0Mrn67rqGyVo2KZTgvuLcOjyrzCcywNQZgU0w\nLHifZ9M5cdwaAEmu2iFeYWnKROCy15gGnsLRgqueE+j7a0ICtOp+m9nAxARP\neMXPw4ujr45beHKXv3v4LJFRpOCmne7CQZxwTwNoqHB+ot7yDdV2ABBvdar2\nnW/24UJhze/4jDECVPXu036mXhc5ciZT2rkr5852fHpSRf8cT8ttiy0M5kxJ\naJwlFhMs1OxyBcWLW74FePLX67GzLena0K2YwaU0KksZUjRSSeYxMASh9+tS\n1X0WFjSrZBOt+RVyWLLcKE0PF59XAhhlohRNLmkM+A2m6nzHqSQk34B0bJ8C\no/DxQTKwraB9Hn0irYXSbvxbrGMtLw0xfcwJN0akdSCL55fnJVkvFxLEGvOY\nORI+9CPsp12iSA1uHX/MGazvknSunoJuqwiK9yqTKGzJeCg792pf+oMWKi35\nfPLHQjGbASn3cPJ7vZPw8erLnpcgLkbsKpi8661LC/NWhWm7SyORz1IcAOED\nC073Ec4Z2xLooq8dxlWEbY3HvKCfTTq2vp5RMh80ofvl40WfhmHbAkh5FFz9\nJuRR\r\n=e2m9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtK0IdeuUyS0MuQyu6/Z9koABfyJg9wnlRbI24+n9R4AIhAIvfufjDPf18MfhQ6IpVljlm18kFanCEVxLMxGsf36wn"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612849997000_1612850149671_0.49005247961415677"},"_hasShrinkwrap":false},"1.9.0-next-1612888436000":{"name":"playwright","version":"1.9.0-next-1612888436000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612888436000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-L4Rb+7v2t32udcYKtXi+Lpr9QIb76Gcde3M8Al9z7DrjJVbIi8ZRx9zVT29ZfI3EjgSSMit2BIjoTUyuFriVOw==","shasum":"85f443dd3025c66a4546bf98e44bd6d008e0a66d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612888436000.tgz","fileCount":199,"unpackedSize":6322434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIryuCRA9TVsSAnZWagAAazwP/RiDGGA34oLLiiBfOMKc\nrxQfbAE8OMmWXvQHDJTX1QCYd67eUZ7AY84CPbSxYtOcyqnJCFjfv8Mv175y\nIuXyvD1cPeT7PLxw3vDRZg/QEdY6SWRy3bpnskL+g4bAPDo/ExVF1YG6W1Ya\nhPBLVioJDl8RdhvfgUd6DeoN7muJqH6fIV1bsVebrTQMJcCfKHzm1bxtM4dS\nrxf5XTRZ44YvQhCsNIiBZ3vgrQGbxYgfgnz7zYXazYjBoy6ZssSLnzypTmrD\nZZTWR5GR+PjuNjFC3IHU6lV5IaLOmgRqGEDN/nl5nesnEeGlKPTjXRtuklpf\n2rfqFl6Y8Fno09p8PVsV/tVFHWxR01ST06gfimSGvG4dMepkAjD4wZH7d9Az\nDOVU2fjT8HnAKuSSHVWbY5eyyr/mBQXN/v+tK2tcRtTVNymz3WeAfSZx3odx\nNdLThVeud4JLz7gWaHaEVdhRVYA65d+n8whtbysDHYulaONuMPfkznY1nlL8\nq9nBYccrtU0hkRP77xMU05yq28o4DeejOJV2+lJykFaWrhihRQE6YrfQtFe3\nCWSZgP7JEnvCzzDzRXFumhn0BjYaeShGWAmWcgQ81gyrsFzQ3wJ6+0VfMkqn\njYbDhCLu1qtv9/ld52H4FR0vvZ+PVy78eXh30/h9vTOYt1+bQslEzkgrsIPT\nSIgj\r\n=qXob\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9JYzEKgxNTgre5UKZiDMxEClbi+XuxFWfYluSvdD5CAiBqJh/CKzoWi6ppGThuf1Lqvj/vpOpJ3z2lDlks9qLoIA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612888436000_1612889261515_0.9703301096833257"},"_hasShrinkwrap":false},"1.9.0-next-1612893653000":{"name":"playwright","version":"1.9.0-next-1612893653000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612893653000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-e0Gao9Bv5kW/TQqCCMkYmVAP52rQobDnAi5SAaqnQ4B1RbqdsXDcf9qQ+fY9Pekht8XPUxJBYEoyBR45ea1eDg==","shasum":"08be05eccc0f88bba891d1d2d48854a4ce486cfb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612893653000.tgz","fileCount":200,"unpackedSize":6326039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgItseCRA9TVsSAnZWagAAOyAP/2xzfZNIzXHr8itxlSpR\nU6PHBcoQfAQqrgtDBMnK/u70HvbGpbOcHxyucMcPYkum7KW/1JXbji4KpcW7\nKt2OMeWVDnkUHuet3cxvRCrmObyRFLIoAwox5u0K8WssA6Smbgh8wTUPa/JY\nBswufYfTCySX3g18mOgRcBb76reAJjWbHNs5iQBlhTpx0OO06GmKo7/A1RK2\nIQSlRXBij8Z/NlTGb9pEr+p5zBZ0+wUtBj2ZPb7/3hYOeKgQVeDt91HNe9y4\nyzddiaIQJifQKppKcHHgIINyVKS2H38mEH2CzQ9cOdhhsZhGAFtvChe6asDh\nH1VhHxpYY3ZhdhmwF1qXwVQtMUOOEEC1Cm3FD5yBMWDyC3YAEA/boTZFChh6\nq3bYTplsGvz2mmlGZqwqq9ob1FCL9DW4JJqc4vyU7ytWIPb+R2YNJNw7Evwj\nd0AtfjdmIbksu1DQGDySq9dPb57zpxbaql7uIiQEokxq/z/L5ka1ObEx61cx\nUEr86W0ZxbP3Z7bjU6XPwJ0Ppd0ZVACSPChWdgi0B/X4+IkgMEUwjXaQkdVV\nMI5PdvPrXphYq5GJGEWMMKk69sABAhRIqOYwRl6SDYdXtOVSfRcvpIYjFUnp\nRyvWMv+GT7lKD0cg07MoBuqkbvLYQEc2BS7eYuHpCvtr9BbRM4OpJmdhpTTf\nEqfb\r\n=yQx3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/0BrueNuUUZQs5V15KCOW41X1TlBp6TCQT8UYB+ymSAIhALzh3dtJ8407qDa9egyUWC2oIV5Fg4uwBIiupW9FOGKX"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612893653000_1612897054187_0.2701063604335525"},"_hasShrinkwrap":false},"1.9.0-next-1612901508000":{"name":"playwright","version":"1.9.0-next-1612901508000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4396.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4396.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-1612901508000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-sp6f6IFZyE184b27aDnusc1pkPKiu8VFQdI9A51hjco2oxhyIKORIQd4j9jiUIiuUqc679zBHTrzOnKlijsz2A==","shasum":"be8840c3fbad3d6761dc354d4747ddf3ec598cc6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-1612901508000.tgz","fileCount":200,"unpackedSize":6326321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIu/aCRA9TVsSAnZWagAAr2EQAI5rgysQyrqwuF8tCAfk\nlL8u2W3N3s2h7sGuKncPT1nLzaunCGy/XHuLucLmJsXgCytUQjRaDPvKVpJB\n8A1BqgNJK+/tsr71bxd5fFaHuatNQekTs814Zg2InYx+LMBosFWrCETpkZVB\nMs37rMEAgpcmnXEZpvfNV3wc7q4iw7beTUCUOxxgW54VODZUrVQj+gP7gWgk\nTR1VcGwSr4cqttKournMrOQV4Ngi3YQzeWBnXBj4NEGLGuV0Ev/90E0QEgHJ\nAeWZkAXXarj53Lb0I5w3jHbclpRlNi+gLzFQpJ6MlAYouZuxY76CDvDHvM+e\n2MZh8mMp4LGN/j57tx0Pov7a1zPn2fZyi174NxZbbH6QmvyCh2m9aYDiFmxP\nmPcMFpzHvQpRyWsAQIuz7D4IhHLBOXptTHs5j4iEvDbXOfKPh2EhWf+gKzLw\nOOZGvzGjTWBuDdq5fktJP37Yd70kL7F50RodrG3Qc3LAo0/1tMJlS2bSrPgm\nMCYckWfl6XMEspoAs+UYf2vpE3TowzC+oxCt1hHySYj4M8JG7ESm01AuggbR\nuEa58ck0o9Qj4pXMt2sZyWCcXOY542A5Q/cPwVVGTJcw2Hlv953LiyMsYhNS\nhtfQUWnrplsYi+hp3aUIg1djunblkGyLLxB1q9Ajg0DcYhiIkOGls/6cCkEo\nF5Ib\r\n=CN+6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8IU2PJ86tSXpV/J8pgqfN9Mt8T6ozlkAEbaSFP7NUTwIgEXImtWsnim6ftkWWQV5CDLtkMx73dzFBQJRw9QcDBlk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-1612901508000_1612902361605_0.9406424715263608"},"_hasShrinkwrap":false},"1.8.0-1612983896000":{"name":"playwright","version":"1.8.0-1612983896000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.0-1612983896000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-VgSPbu9zBNgFrDHXXEQn5PsDxYNXcDemi+7pDw4G9ogdEFIvzFPOfBzBn6+tCvuBZfz2IKQ4yio5MJnNkX1rvw==","shasum":"61929cfd79592bc6461acc22ebab9821d6f330a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.0-1612983896000.tgz","fileCount":206,"unpackedSize":21099419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJC7/CRA9TVsSAnZWagAAAFgP+wRLnIB62OagUtlC4823\nm6eKt0HEPyat6Y/IOc3c/+ldcwKvLD942y73Q6ac5WZXI+g9NVahed3AW5d2\nc4END6E7enNUX/+UDCLFgvGdTlr/AUfUNoRCLuvpIltBgJRxMWLzD7M77QYm\ntWQfkm9kEY6NaZ4WS4rG/1edELuyqLlhN2/q4TRMx8MUVZndjXpjCt68ogfk\ngKq/ySEFFE4w5LrHU0sJDJ3pWT72/vtTY3VOt4xT8V+qoimD5+1PnVm+Cg/m\nx752xgSZ0KtNV6vjEoBkIqtfNNwRk5X5Z6q8rql3Bw3CjRc9cO9j+QE9H3MY\nM05SxOvcDhVDDfgBNkzvGBrK4yiwd9XedLEAjsp6RGjEVHFiFRKnajGntWGw\nrUd31+AvsKTi7k4IHmYsl5UrSjhBQXL60dfqKk+JyDKBRYxLh9hkf9zs2RkE\nuEPaghmHRSnd0LnM422FaTzxkloKbeEN5T/prLJiO4C2+/b4VNCP75ESJWui\npYnsi6jj9P0/sWHQ97B4IIMjfJpa6kHJfiSzmB1OWCkPfSGJCcy0MD4yAnE7\nNqvm1gKjycfZ/4xcydqNseHOH6dNAvBKXK19BVcVoyg65rHYgdMXK3u3TK9e\n3G8VgIny96cMcx446S+d7tOWl+j5GyhD/eyS+Qc4ybcHC6zxfRw3cGawZ6zV\nkIQx\r\n=hMZo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAy32lmO9kPLu5ewLdN3+hme3/HL7tCYPQ1Ijvhp1g9EAiARtn4lGWDo8A3h+YKdP94q4m78k08BwpH36kCEIU5zkw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.0-1612983896000_1612984063041_0.7885141588953872"},"_hasShrinkwrap":false},"1.8.1-1612984833000":{"name":"playwright","version":"1.8.1-1612984833000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.1-1612984833000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ARFMKh5FqfAE4nX1ruI5G4Hf6wMI0p1eNoC3lQN4jbyLuk8/TLhr+193RgTWDZU8RJGvwf1Y1K0Qp6aQxnzYYA==","shasum":"3de38842709d6db88cb69bf41d6ea53bc88166c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.1-1612984833000.tgz","fileCount":206,"unpackedSize":21099419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJDNvCRA9TVsSAnZWagAASm8P/iRHszoUH1PaDWum/fz1\n4ok0hiuaqI+CIV4aE5djJW+8OCePAl3YWr14kICP1Eo++F+yBmMgeagROOiy\n43EmzxGMEdVaVy6+LPA+AXLtec+GbBJtxoobwndFSdx7I1PKicG7MHyFgcsk\n71CUEgstjbh0ZXrs4ucyySxYt9QNNusw8IWpziHaRif4GnkL33BAkG8VMFAv\nAY6KdnAfGs9l9Igp4/bGQ4RHLSswZuyVm+TYV9ZdEfgDP2Q6ZZu3cMN1Ddd3\npMVfjkpNnQvckCM4JBUEUzYGTEACs9pFxnHZSMISy4S3qQe2O25kPqU3QJTl\nHmNnp3ozuqZaMqziRsbTod2cWizfjyQJ4/UdxEQj0+YYh1JVw+QEAvl23mUx\nIf/u0kiciYAG3Zb7jodX92rHkzfw1mgl3GVPipd9rOh7ZqE5ccVyEEnXStmt\nWhnwnH5SQMtuLtPcjEAQgqUNHyKs+gDaX3ob7ZECSxC/nnVPPF1ayCZzDe96\npnX7+0QkqmFTEP+vSKnKU/QbkMFE8Ud1QafEalNXkI5CoRc4iNb2jnVqZk9H\nS9TLLBGjm6KJJSKWbNGFzQtF6ydsut9PmH75qgsR7SYnU1F6GSz3TIw3wSqz\n1G3brIGQceR74kLuev9U+/HL3VNm7SLkgd9NezdYuQDlBu19+8smOs7nd1e1\nlS3i\r\n=pWKn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVmC9IR9ZOQAR+LngxZVUMtVKjxrO9XaOziquniAH93gIhAJEUQNmk3DixSGnAJYRkISnZt4UOgQ29JgLQ6PvcnRh7"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.1-1612984833000_1612985193061_0.16861809038814135"},"_hasShrinkwrap":false},"1.8.1":{"name":"playwright","version":"1.8.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.1","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-nmuiDEDwB/SdAxiZQS5pLqPS3XXN8OJ1LKvTSiAbJvu+AUf7f0RD7nuq9xB0C08Emd6stx9yBMhANvD12k/+GQ==","shasum":"0a26035d1b5f2c31d9a4da09d649b4992f989d1e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.1.tgz","fileCount":206,"unpackedSize":21099405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJEYNCRA9TVsSAnZWagAAmZ4P/2Y2Tt/mZS+fopLnG8Kf\n9VG8Yp5uvsbpPIzUAIx7gzdqzMAoxtofFd4IlB4MzsiN2REv3SGU463Bh4e+\nKfxX2B4dS3vWOQL1Wy63MzQJSXMG4T7H4XPxyzu/bFzTk5UpYh65OpVLAGAH\nW0XLgm73F7nZvX3KQX0Rws0PYRaOGWo5COY/P4nj+6JaViu7g+ChThc3Oqof\nTSXg/1978fxu1yY3gqBLAp5BwlpSbAF0U29EOUvwDgkD4kTNs0irb2WGCvyu\nZzAswwur6xXdcIMfxIusWJM3xOIQ+qMT/ZMkciwZWe4zAEQPyhsEXPEJyUTn\nIpjpe5zBSHOZ9syNcDznsllcwSXa+w1xuHE7mAlBWPBDS49GB/DPD4Ow+8eA\nATK8dt5ppngZgrz2qDgyvUuSNlBfUE+OZkJ5APgtso+i/5Um6Vyz4JTafnmR\noeqibEotAfbOR8WOvDFAld8cbroonIZle8rocmrAomfeY2f/BxLUbm+fc6WM\nRTv/S9RUxsitmBHoCC8ZeU2k2iZ6QRdFJalEvDqJDJUUKdSMXvmtioEMDLt5\nN+ot74nB6yCfjmk2u32c448QCP5khVEx054NPN2sjAlE9ziCRhHRTVtbXcn6\no43/k1r246Q82MFgVJUyNqVWPQKrqS7MqqxESx3ss4u6k4Oagkk8sdVoI/Ah\nB2PN\r\n=Twth\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1Qp2I1cwA0tqTbOBPoV0b0Fw7FsmFbeJR7IgyioheMAIhALk3DAXu3tt7E7fIX/f++WTNMNlUa5DXMHDoYRQPwv4Q"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.1_1612989965140_0.16005121171696812"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-13-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4399.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4399.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-13-2021","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-nGpkU+cvSqLRrhju79YBdmUHmmVt0JC7gPuTUCBqvt3iQTStkyu4eP3JgAFZB1Tm+wrz/Cb5Y2Miv3bOhO0q9g==","shasum":"8625b853538cecf70738cf8912225cb3177c7763","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-13-2021.tgz","fileCount":202,"unpackedSize":6486408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJyS8CRA9TVsSAnZWagAArqUP/2WnktFHIljqftjsnNAz\ni8S6WGgIEqXqAnFr/5o289lvNmtoCiHkF6lNaTLm2TahutgYTvdKv6zlKCN6\nkwyKfroftPvYdg31Ws6silPBBHIKYGywRUG9/0KN9kRaa0LNUnMbb/1L4N1m\n5lxjyWNrKduhB6XMPedeWmYSI7vt9RSRwwWyqs4S87T+Iy6ughzfj4481e0H\nDTbVSEM0wicL6yIJu8ahCZ/dWK6OUkposmW1uMvC9HV5yXVpdkYTElGDlccs\nBupQQr17FIGlIkYF21oEqJ0+W+2DTWzwfIiUeFPzjZK5LpvCUcdch2G6+Oko\nP3wl++hNC7/CMNc6TW8lpYAj/0/nZMNRwWek+54iAke8l+HPyqHyNHi3Zwpk\n1OyVKEfvLIkDMBDe7j98ROsx0ENCtmZiS4+OqpVF1p2awj44xKZM2OJrvdLA\nDa6Wqa+5IfBWF0Az+vXbVSTwXCQH/wS7fDD0OuCEQNFaIu+NgxHsvnjAwFpP\nRSiv7DFszWUMLaGvfr41q8OJaxzlL2XjV6D9sPYt7AzzqzjjmZF3lwRwr308\n4qTi8GZeIJwy88hL1l7mNBsT2arwO6CkAhfnAiFiwdWP7xMj5e2amIu/Soxp\nimFPHVUcN7LEtyzkfkGgszF4KyVZtxlkMRo6COfa1lRaOq6KXr6c2nIkcXkO\nxyTt\r\n=bfJp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD03FCocDHaPnRAO6GyeCC4f3Vpych77YibWeBVUaxu4gIhANDVsxXwtXb+viHNHzEoLVGEpX5UMI7nbZ0kbVlnbnNK"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-13-2021_1613178043373_0.2995276799359754"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-14-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4399.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4399.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-14-2021","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-UYnFkgr5ZPEKzSXyxhQ+30G0Jv/WIeZODhCl7QQwB+1OLoy6E5kgJadTSrLMsgqv+MG92zDeKIJY9p/rIEMmwg==","shasum":"ff6f7e88c21bf71bc847044e749518d2ae9941bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-14-2021.tgz","fileCount":202,"unpackedSize":6501101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKHcJCRA9TVsSAnZWagAAhOMQAJIcx57B/0WvMRmXa7cs\nzxGf0/7xEu8N3wbNIeb3Ah8xm89ruckD4t0RvD4Jp2lKxEfNjdbofh+DVHCP\njf+FCjX5jaDQjdvN3hww8/1U3gLVVUZJhJrzILTfOeJ9uT/P5DXoDQUkAnRF\n1Vlol8chW7CFCpHFyKd2Y1EbLbeZs3iJLYok0De8/I6tVVU0aHGDPZJY23Ox\n/zqVNNVSBzyEDZY1carYvABaSnSM8gnBo4BYSnZt0yhq2z6/sDJ/4UsU9Y06\npyBPlTZ/IbIw5cUkHA+wGTxyf9LAIQOCRLKXIkO+38bEupVLKb71mde100ly\n1cXRG3iqwLbzAUBsKNz4/CzrrtuF6S1DuFJ+1wkufe3irQ+VkNr5U0H/nsoh\ncxLp+To461YIOUI29vYYWtZM6wCsqlptP2BbDuwXvDFaUIzviB85YTCUB7TN\nZUaohOwjwZdiuf66Q3VGt6twTLYLtvv8V9UukbD8vgAP0Nf4P0VF82P0RQZ2\nBhTGmMX6PLVnMU30AvlRHuXYT9p3dJrV04iJONP39IpYA7S/yvqgvce948YU\nQJ45G8X76JwJMELmxqGnxJAKUxiniKBWG9zthR5/oRUlFaohYyon8E83gNbB\n8N5Lg39ddPLuI+JyM3m8OxAdx0xNXe05ael//TVwUv9JhTGB+sAq/cANxuLe\nikIO\r\n=jqzO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClj07VKNDWSrJXkV91AqDNEcnajJT+bNAzDv16CWpNiwIgCxTPjhq0fCveI3SwiZKvueiQvMWB+lVQSDmvTVnUMYE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-14-2021_1613264648953_0.03681127159624009"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-15-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4399.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4399.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-15-2021","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-vvhL1qvJ3gggzw7gHfApFTHYmLvM9uBoZHIUvgaQD1/rEyfS1kjLgjLRgaDozHLtCS8KZ/GUxDYcv47g5bZWNg==","shasum":"6c21e4c56ee553734aa2ee5b0dbd7bd76baae3b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-15-2021.tgz","fileCount":202,"unpackedSize":6507851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKcgLCRA9TVsSAnZWagAA1W0P/imMhAXVqjUcZjnRIi3s\nWNKxesTj1MFwtVA2jR7S2ubsgVonZvDPDagzZvwkemmwTg5id446vI2/WRfh\n6vUSaW1XWtWdaxmgDgEofdNztTvFh12E7HNvVlBt/Ptgo428JAfbsry2RvMp\ncRd7JSuxSljhlQiQ316ReY7NEs+nfaTP8gmSrrPBUkmRSfQh5ZIxhZlntn2F\nLiF4oEE2iC5V3EzP/7UrLYVCFy/BrQwJ8AtKPLdwR3jq4rdi2tm/G3OTnwTS\nKkrSl3RYxMIVLoIyUwjHIdarypxEeHfhqeYN8WegVSvzqKPJxXuL5aKNtVfR\nhe204ciXVq9bU9kq4A/xeiMydIk7SU+s47SmSOSLrD3KHCkvqwVrQzMTc2G9\nxIQTB/MRnlWvT2YWIiOw4uXSwgBpssU5hsVCjPK5l+ZQNV4Jmwl7Djnp0fz3\n8s3DMujbm/ID6Oqcp2tFt+4sRfeazCpo+oGTx6zzYFelIJNMQFXgBrdLix3F\njRaFRYV32EYJk//oQwms1rGtLczi1KKl/hfywI+Q1QFUe+euwcadiz8192fu\nwfbwhx/RDW+nf1a4P2agZtoykd74X1XQXWyZ7/hTxpNIRWHQARas/1oEyDOd\nevbBD2eglMQ5Pti0JDUHm4KnstWy/8OGzuY46IwE9RlLxbZrlEUG6n6BwvLx\nMhHc\r\n=vNWd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICocOM2S3OVgOeubM3zbm4i6e5gO5s1JvR/kbrMBCzaHAiEAp6iwHSULgKfoWR6cKqiC1XPk9WXaN/HsdSSGzL/LsuQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-15-2021_1613350923028_0.43035719909792247"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-16-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4399.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4399.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-16-2021","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-Hh/QVSvqpCFbIQ9vwYxG8q9gsFn3YZQ4KqDx9GrPGqfpZPNASeD1wByExZK0mOosUo84jEcF0JYad++xfmqjMg==","shasum":"7c4da855c10074c26de520d6471dbcb81236ad46","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-16-2021.tgz","fileCount":202,"unpackedSize":6508308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKxmOCRA9TVsSAnZWagAAas4P/AmbWfVLhPzJ7ihm6L/+\nhJgWZQRtL2W6bgcMxwA2O5sDI9LWRlRer0tTTnuVRf5F31bGd5ZRQOy7s8qA\nWD1pIz4mAJHrfhOl+2a16VylA54i14rVreFF8geYRW01Y7kp5WEy/MFlkWQV\nePkaB3BtdGS922a8ysZAkRlh+yWDdHwXkWHlEms+YzWaTXskaU7Xv30L0TdI\nk3Gz+d4qnT9CN6amdhsC99ARfFrd3knNpffYzmrN+Gx3an8JyKKZR+b5mXPF\nLtFB8zSsH1mrpjcS0CAiMUSHyy1vIrtWs5BqqEQBdGYNhr2L7PGJSrCMrHve\nCO59Vkz6yHwA43BmqtSxeiepvuxXBVjUzruEFIQ1WebbB4OH3y7b4ZKZBK/1\nomt+cS3qBYt69RjHEmdVLJ4yJOqZuf+5PhyGxV6YxzLHPHLFE1+bVc37wrEs\n/9W1M7ZRlKQPjFN5EnvDMl6QF9Uv/QvfcnDv6hwyGUCi5SOjz/TxR1oHtXGV\nR/ePRyN/a13HFBGNcdcLEHkiuWfWgv76YmOPCo8Jn2Mry7x4WI0nRuRsivA3\n569Tnt0qRSl9OV52BfqcPZszFWhOCt4h7LDT5NYDK7vDlsjuAW8pPIPLa7IF\nIaoYAFxPMw8kE3hcntgFXpFVkZGOnA9yP+Zj/Nx74tMKdcduQMUvOTmHM/ga\n3dQF\r\n=Qx35\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHcXBZxsWEe5vNKOJ16648Ip3PfZTjmid8+3dOGiFS8wIgG7daRpNKWAd623rNeNMwvSOlpDPIRcU7CrINJLjRXF8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-16-2021_1613437325695_0.7625517506801125"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-17-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4412.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4412.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-17-2021","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-mxokkK4sweg95DehrKgcKJGgxXvtRhNpmg/5Y4I7yvFDyh21wAEY/X8cZH8CVHkev7sQYZpju+VVpHjjEseg+A==","shasum":"2e254fc918f318c2f19b1057b6f0e49b373a20a8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-17-2021.tgz","fileCount":202,"unpackedSize":6510172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLGruCRA9TVsSAnZWagAALMsQAKQiv6neEs6VQQm/ARrt\nDX9+bcLnEQAhQ/BzqRh2myVLpsNR4I1FgP1IOUSj7WwxXltCA9SmgB5bWvhG\nYZbBWNB55l+RntYxHbA7C/S9QLlr76jpZ3BYATJCoMbwxtSgvy6nXzIirZQm\ny99mD2u4EubJcEQfqKi+2oACePp2vuKkZ6EdQoAuqcbx2lum9wOBJxQNjCEr\nMmDe4BEO/IxUwB87u7G6zMygU4SkhBhupU0Gi1nFQ0Poc12pCtvnNknWTE9h\nQXvnP6WH9a3WbvuPbnYJOxCLoGKe0rJpXEqWVE7UjCASGBOPS4s/SFs9R+oO\nRQFYVjsMUnJaazlvUZlOn0HXLY+8+fMLNNXUOFyk4Nubw2Lo48y4E+kWBx8C\nNflr8/vmzv6OGLXK0xnaF+t9H5QJcNwhLaJdZeEiB4ZokDvRXbmVrZ15oPgm\nhXBvKnYQE8nP9OggSe9HhBUtYFKcIo+HI4BiaJkdcO65VrGT/TDYYNQ7U5cd\nrNm0BSeAD7tL6a8Q4u/E0hdZggJE+iCLK8f1LdJre1nfcvBK8SPSpVFywwXq\n/GlGB9Vcgj9k2X/TYbzSzR1/Fq0LDtjMdj4uGXrj2OTmhujl3KSSIyEGrEeC\nqVwxh9OGKb7a7lkTihkb+UGvrHw64gPYb/PpZoCxN1WPJK3Hahzk76Xj9kev\nImCh\r\n=rBd1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICgZlNMMqfzaE9rSEdr1OeD1rRurhucSDw6hBBetbrM9AiEAw2Ir68l4K1qB3BfdRiL1gZGbbiulpJTaeu43dGkKt3k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-17-2021_1613523693263_0.08869520850542711"},"_hasShrinkwrap":false},"1.8.1-1613528542000":{"name":"playwright","version":"1.8.1-1613528542000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4392.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-85.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [![WebKit version](https://img.shields.io/badge/webkit-14.0-blue.svg?logo=safari)](https://webkit.org/)\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4392.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->85.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/#?path=docs/intro.md)\n* [Installation configuration](https://playwright.dev/#?path=docs/installation.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.8.1-1613528542000","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-5JjecfT7mohqCaIiJxuAfbfeR6bvg30hWtqmNXSSEFUysV/2QGqlKkJOHo21FFsRDd3Cw71yWEkiDOjsw0KMEg==","shasum":"37a54f4c710168c13b7fcf27f3bebe34475c28b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.8.1-1613528542000.tgz","fileCount":206,"unpackedSize":21099429,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLH5lCRA9TVsSAnZWagAAjdIP/AoXkkGiMKjxefdck97i\nx3Wa/Wza1UOYKnhMom4+Vv648oxQeSydXMTjjOOo50ivFxUXtrpnkCsUVOB4\nMN0x3hJYd/gXuuOn6tUQMYBRqXoiJuqf/RjPic55z8YNnIhXhv/K5Izd3x/p\nw0UizBrzu41jy3AdUWndLmMK0yS+gMfP7B/grl2EwA1WzhV19fHfMulWHeVH\n8ZdajhguSohEarWkTh/zjORvjiW8fuaTEjf34rBtno8eAk0/HCQU9FyVPRCJ\n2MEqIvhXGd3uOp9uZOtMR24uF1cbcKpH4d68nZC458a4WlabFCgAsJk3lkzG\nox7/KWT+eV/GG41GISGgpmAsSX+vzNThKiHDBMmevMCYPDGcMxEi3Z4AdJSw\ng4q5Yn4b+9mw57/TsMfXPI2m2DYTHoTRsj/L3O5l6Fxjhl7HEQVejAoabeYr\nNTtQiTH9IokeqD6v2t+x1u1x+6hAa9+38CcKli882w/jmYVBu6TOCTRFjyJd\nK6ss07BLm1NdWbNAa/wMDQSPtI9nVr+g56OtxJxkqcUFHdxzD5bJvSIdyQHn\nsiuL0QQMQjiXSQ2tVpqQPO/GlZ3g1LvaxLWLgs//AGbP1lE/0hUOXIF8zCEP\n8n4c8SDXhouE3/g/w6+7POzmbamPThR4MshzRf6hasslnGTIY0++GPfcowsh\ne0tC\r\n=lBCq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrob4wEUDmud7G0Bta/zbydVERDeSP2qzrkmeF2S6OTwIhAO0r63mep08RJozIoxtCx18G+6T7kvIIXnmHruoqZQTd"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.8.1-1613528542000_1613528676325_0.532746677009895"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-18-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4412.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4412.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-18-2021","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-G6hfSae6Q/mWXX0N/xKZUsdMJ7P536HrGWHAv21GqUCI23UFZTXHjRHslmbHMkoSuMOsGfB1UsbUp0HmaCbntw==","shasum":"1fe8f2dea1efd82a483cd7af08eb0d436c55af07","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-18-2021.tgz","fileCount":201,"unpackedSize":6517252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLbyPCRA9TVsSAnZWagAApu8P/AgiAfOWiD5eHaa40pZs\n2wwTfwBOpYR722G2uyCT4qI/Au/NdDcxI0nraofl9mv6QYye80WJqIlksJuT\ns4nwZgldM63znAl8Qw5K+PucDoobbgwbiAIypDHusZmTpabvQCA0uvNPr4+a\nz9u8TsuQYHpNP0KPSVp9REKA+X4OcZJUuEd6ELuLPn6V0U8vVWtgAqFMGYDW\nxLF/s0dgaD4g15wny7ntxGvHLm45lI682MGWVVacek45G53HgGBm/S4UuR7F\nWhG7QgF+ElYPY6PmdMVktL2PGdLktE5a+mj6JeK6VPZZSrZsaHhukrsF5Fen\ntaiXua0gUjDDb2TeOs3xdBAm7xuu5EbgcsqzxVzJW5KhBZfy8imeahyrypU4\nA0StECeQzFT3GnBiCP+S216L/tc/dvDZMjc3EOzI6z+K1vclsCHcPPao9p5B\nEOM4tSyu9FNBM2ZNP1smRRcm39iXMZEjhdRtaQydzojpEqyGfgsgAZXRU+fM\nhkZf65KB2IAJqWQ6LGPC4DRfwp5xBmGpieIF8SPHio3YAnTRFp4H6ZVrghop\nsPzd6WKgz/h8s1UTtSpfnaG2ZivtC0LQ3orInicMsmI8bLQ5QI0Z54oLZKue\n2IJ3rpTSToR2C6kmiJZvuXNS2Ll5sIlu+VK/0Hm439YLBlzbbafIIrR8qdO5\nH7Sy\r\n=iO0l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHGOtjDyHudk8x9RFTVqgU6UZn6Gm/eC5c3J/wm+/ArPAiAyNr5c5McCCXEdhnNFXB1VnUDcvuh0yReOb8n8fFBqAA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-18-2021_1613610127088_0.5463644198497855"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-19-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-19-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4412.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4412.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-19-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-GEtTL6zpovfqFM6vkLTXfH6a2SQxHlUWdeySNg2hxUrAjCEfx14bZ5pS7EMdWPA30PWY9NyVpH8+sN1QcXhzXg==","shasum":"6ff40a61e8b349a144c4a938f627c9cc66135970","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-19-2021.tgz","fileCount":201,"unpackedSize":6528208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLxEBCRA9TVsSAnZWagAAZ1IP/3GOadoHpajTsO3q5WBI\njSfVVgMzXD0GMy/Mu+6bo1y33xjcXR4vwGrOUhFcZC4GW2OapJFDwcQMhdNF\n8H3/KBaSUNIocT+K6mKIiOpkjDJafIusJm6e1dbbYP6XTwiyO5lOOdH9pkNL\n823Xr4h2sWYgLvraDOIrPUXD9s0lzmfr8cHwWNlPG8i6DYky60Wqz8OynBJE\nGRg6MOWflew0loCA5qp+7BoCiz5en7MyupZA9ufCXU6sGZPpJpZzkMibxNqy\nRZRkDDYXuvEn/ugvU/9zFxLi+x1ysnDGXloQjZXIEiU8vKfEv81CKbXMrCfQ\n6OOWiKiki1LMvCcxKFHFP/pCFZ2laZLMWgsOnEAmBa8vhATjzALHaePObvjs\nF5D4BRwAsBerczCk617qe5sVYzMzWUjf76XmAs7Vj66fLGUQVuU8ZD7RvIsx\nzsFGWusGzqH5VbjA/1//uQbyWxcwnn8pr+xoYQKxct6THZ8RL7ekCCR3ilvr\nX9K0+f4Sq83KeT9JjIEiwT5bIo0f1xWROg8tXBl+5ERoQqnq6tI7RAE0Rfv1\nfzJ5hqa5fPJFLZgCbrIXsp4AiOLh8YcMOZuBJVvmK85nbIKH7xh7/a6pmvJL\nyd9XRwDytAoRDsOpXq6tMRNmuRoYJMlW1PNQNRhq0O4KVBuQ8DJ9BlyU+oPN\n4LT1\r\n=Wbq5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHjATjp3Zg2yYlED3nCTj46hURepnJuByhDy9lsjbDmYAiEAnoY7fk0HJlGOQZe2KbKJD80tmzRGaQkNczpz91vQX7U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-19-2021_1613697280725_0.06472337648592297"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-20-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-20-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4412.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4412.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-20-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-DhLiYm9+PItWiXDvYv/djWMmIIDLQY2oAxe9X9FOAZ55y+Qlt+29IeCHQRlq9osvL2pynZJ1AvTQiAOriPE7Hw==","shasum":"aac73daf785da176af35dec3e4e0882edee58591","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-20-2021.tgz","fileCount":201,"unpackedSize":6532875,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMF+BCRA9TVsSAnZWagAArnEP/0XB+ttXEOjjxXakzKxo\nxhOjXpMHUXxFd6O3+yK2XPMMumI8Mb+qiEv8DuApUH6IgfLxWtfSdGZxbRYx\nM4aehiVjKyS14pt4ITLmsE386MtjacnsP4QCQVLIOkq9lvmCtRQX+pz+7+aD\ngdZ206gUCwRwK0bKUMGp0lOBDGcT4e6afj7x9V2cHVSmVi03meE1PTJMeAhy\nB+dyP5C2KMv0lLtU40db4X9UkRcTZvZNoXSvDsQ3ZtcG/S+BBr865GEBGVZH\nA/hPUpE4xoU1u4pf/m/6bsWildMsfrZJC7key039w+MeeKemrmhY0G9kMGh4\nUD7CAhAiHKDdp/WTZ7xSUNm1xtufnd6UFrg8zup0s8azYvYdNT2NuN/ljTfs\npR48zOKlRxxKGxn9wkVVdMpC0VgxXGWi3cT1XXlYL/cmBLLkbCEXDGmuE//D\nXCNe15WKPEmk+dF5BAXrvNqDDZ+Vulxr+KJiaFsq5lLasrVefAsu6e0rMAsu\nO8oo6Av5itp71IcKlt8eiikkbZe/dwMYeKKd99u8YvdGpVVlNrfGJ4/lOad/\nJB65k/+TgM5WnKYMrYpFsLgvZEYDp60n0nM9WOEf+1b8vvxn6swhGW+VSjok\nCLpQTovt2VUiAVUnE6Q2nQR3nfGHlmR/b2pY7F8gncollX36qTVWdCBiYfI8\nbXr/\r\n=fDO2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDMdp5LnKpwtVcRGWIgpSTHAuezwCgW7JC8xBCvwmxVeAiAZ0NHv/JozH+qNXH4usSlqP2YiQwxbBQfcL9a6bKIUPw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-20-2021_1613782912548_0.7456308079775615"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-21-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-21-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4412.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4412.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-21-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-K5jyhWxpJ3sa0yAKOGtZNGBot4acogXj12+zKyHduLxmbtmQ13hdcIU4ncsZEF4bZJM8fZ7pF3bj50cYvUWQGQ==","shasum":"046968ccff6481d8ac972a552ea9b61adbe4b60b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-21-2021.tgz","fileCount":201,"unpackedSize":6533454,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMbHICRA9TVsSAnZWagAALHoP/0YIXtwg4Fw9Z6TpqzHj\nGmTQnAHqEr0WE8TRnMoPE++o6ujwRvpKgA+q6O4IZKyJ1768Wgo2s7FUTIqg\nbMEgilTFxCbz4+L/UntdOCaMW+4kjPlLbavuxSPpIq7ubhC54LxUht3mcXdE\nhewzDXlzkIvefL5hkClM/52y3Pr52M8oBl+JehPrP4Y999qPo2bOMQNXDK9j\ngL3mTvLw61RgzzzHlLViJy1fifOOL5tqJh4aPH9Mi2BpQHHN/KGlOhelUDfb\neQ6E5eZY+Ij2XLdlSXrjn/P/7UmKX1ZmkM/5LJT2tW9JF3mVSKvF5Ksn1GLR\nP1aH22E7zYIpTsEu0bnhMowoSRTw/EKJgUCGalxrewz6ZgpsPBRa1x6oGTUz\nn8P/PVHFCcjnYox+T4Yk4pBw1ZZjyy547+o6AlX+duQ0cFwsdIMwt/S/1V8I\ndG1xwLP52NeJCeQy/HYfM7OGQ7cB5UAfwGx+pokZ8NvVhRMvDlf4dNnkb6fU\n4euNf7W3VVgqLQuEZTtTavPNQ37H1Xi+okyJZw8GldZPCR8KA0d1HZxQS5sl\nxmq3P88/ca1fqH5KcmqbmFJc+BMGRPSJ7VBOspAeh/gH4Nq9j4OuzD9EYm98\n7r0+gI7zX5H55dBMjVK0zsus6Ht/0zw8OPt8WEMYcn9PRuSmm14x1IFksFNX\nlm3q\r\n=x7Ix\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBgmLn3TpQ0I5DB14y16Lh/ESc5RQyZwv2A7sXpQT6rgIhAMAMjDEaO2tlRnBKBgNe7n8JtYKzsoUrawvXTAL7QIY/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-21-2021_1613869511580_0.8159690676621645"},"_hasShrinkwrap":false},"1.9.0-next-alpha-feb-22-2021":{"name":"playwright","version":"1.9.0-next-alpha-feb-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4412.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4412.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-next-alpha-feb-22-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-tNPJx8lnYPejma72iqYvEY7hcWNr8Y9W223UrDw00ECTWDBlRB6j6eGnXWUMs5vM8rjsNqZj1OueX+uRTwczSg==","shasum":"f6db764eff56553e5612f147a92a215d59a895a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-next-alpha-feb-22-2021.tgz","fileCount":201,"unpackedSize":6533456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgMwLmCRA9TVsSAnZWagAAzzsQAJvImscNASBXOn9JPA/h\nDft7e57sitBeZYTUkrdsP15YuplrNmX3m4dnYYaW0BRfOJk/c9fKTa+GBBKP\nY56XvA1nYlSxtZvZclOTvZj60B6oA/+vLvXHDVcyzsQiRkesoGVD66T2eXVp\no9rw6lb9EipduG3/Jri4VUXi7vzot4H4qIawUcbrvRC1J41AADF0YNwLL2/z\nClgwAzbKe9/SnTX8zUllmwcYzUnTptB9YLfV+5L/2GsJ2ZR7oKHrwrluUFUR\nz9Gvbo2iYKyYGFn9K6OckpQrfzes8vJd0JAy29vuvE8w2lLvnyW8D5XWMKTJ\nXfHv6OOrlhOkqP6bi6eI9Sr+QfU0Xudq8V9p7l3dDIdREbnrpLkOQXQm8Kcz\ndx1y9qtz8xImFwKyL8teymSTo2CEV4mp5u3YAUSA2CDu+PjQco+2lRdd52y9\n2TRw/Fg5aylJBpXWxfvuD2T/9PN2WfbXUtLdQ09fs395BqJT1OQ2AdTv+ILC\nbv2pP35BvYLM02ADWCIUBVvNVgv3cAMqla2B8RjAN+uiOGm/0M9osPT7gEbu\nALiav3yTCmhg8uKUak3l5DrYa2YSNP58SZ88+LjC+OljUIYN2Tk9/rmnP+oc\nwp32NWiN4SQAMXQ85dxbYCFAKOp/X3AUydiAGAXXAm22obHirsqOlyxCZCTE\nfxc4\r\n=W/Lp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCA4XVTwZohqLm0wArhqdC7Q6/P7mMKyVH1+iRpAHucAiAdSGLV3fIIQBmGOK7EmbxDuEsXJscUzwWUj3T3yGrS6w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-next-alpha-feb-22-2021_1613955813851_0.9558322476908794"},"_hasShrinkwrap":false},"1.9.0-1614037901000":{"name":"playwright","version":"1.9.0-1614037901000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0-1614037901000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-vpW6cnT/Ry2MJtLygRZBVWsOS5+E5EThb8IDYsVcH5zOyGZVJojpS1Q5sEkrCooPQYJ/hggijNDYFG25qvRsow==","shasum":"a869803bc2ad9f7137f296214673d45a8f0e2e5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0-1614037901000.tgz","fileCount":201,"unpackedSize":6526611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNFEgCRA9TVsSAnZWagAAOlcQAKCi87CHfCMeza6ctdUW\n00tglYj/cng70/lO1Guo8B1Fh2J/kA8lRTIiA1W5RtTCcWoIAAJbDOjSgdtX\ngpUg8tBbyv1tTX/iZjOXXdkDXmZjVrZYLzBTVK4vihaQAF4Clv9xHa39icn9\n9QcxC1zSLDZD9jdVZMt6iVJ1KrzJdapi3tIU/eDSULSza8/C6GLDuzo2TofF\nibH3GhW9169DEAqi1ImnTi5jsFg4WiLHXxlbYOYPg1Qqqt9E5mA1K+dp9yIr\n4yr2CHlbLCRbTCV/CSiDqapfZVGdfLONwW1HXwy9FGjNgAG7aWFxQzslzorR\nDeyNkTU+G3D7dIQs52UQQGuV2AD2qX3GV4avWMgvMyWiUFcbH3piaz+xRatH\nj+4I+fW44tw52kFlNwPNxgDWHmEksr5fz6rhKDxgg9kAYxs7+lMc5GJa6vkA\n2UsPUy6vs8eVmUMd6EY0vmj/nzPKypJQm4aBpfPWo9v44ztA/OTUxcjMEYYK\nml5Tbn0V2JyvOxUM8wzKAoMltmn30isV0Zr+TUokcWVs61PC3k/BzxPz+9Sn\n7yiCOsG21oS77eijuorPd5wHyAk7n+u93hZLF+uXfoOfxP4zqxl306XoFXXt\ntJXL+yTetdsAECCC27GksH1ztmYNmJeLWRVY4mV0Rt8rqKUahlBzfp3BJH1f\njCIv\r\n=UNyA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1DHfGaxnAiA3L5nyZVrtJTyXVQZ9+bORwS3FXRK/ihQIhAKimiUuDj2m/z5HJiEoSqLLNfP0b6O3eM4T8k/W3jaZc"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0-1614037901000_1614041374808_0.38229873934868785"},"_hasShrinkwrap":false},"1.10.0-next-alpha-feb-23-2021":{"name":"playwright","version":"1.10.0-next-alpha-feb-23-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-feb-23-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-OdFPGxM2oJXIVHPE1Xo9ji0ybara0aYVY76+zJ6CLqhPxlYlFM9sxdHAq6jNbdUnwuV+YiyusjPU6e0bx8C9tw==","shasum":"95cc6744bfe16c5f2fffa973babd71507121b169","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-feb-23-2021.tgz","fileCount":201,"unpackedSize":6526621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNFr2CRA9TVsSAnZWagAAy9EP+wbKMOYXH+4k2wcHAJtu\nCbP3NjYAjoq+nqvJEtOD3OGUqDmqyx8fROpDifl3HG4wECWNWsblUa0Y2ed/\nk38HOC8oSkC9rIkEKgaHxlrhVXT9knC9ddj/mwtrAhVfcZ++zuBcFj4yYUYk\nPY2e544dcU+2uZq5jrkTg8h5PsP3Q+kSSexkfvDIvKQwPgKGdzWaX9Wb4nSY\np7gqHfSZzd/zeSOYDTo3L+KsV858tB+hVFYZw4sQwop6dgmwBHQHIlaaZTtC\nD8Bm53KNEuzgf93dOwhMcHNw3Pe3FyEjBSLOIq9p/YK34q1uy9dwInCovnio\nbXcoF4Jp3Ikz6jUGFu6+tq5alCs408/1uKr74wKmqL/n5xDA37nU0AYs+ySf\nrTac8gYyS3KIL707TpjMrSZqaiIKBAZcTKopvE3cWo+Ade5us6DjEIHKxex+\n8roRhjnB5WWMnkzhB4lDsdd4giMRD4wS+Iciw7UU3AuaG45QFYcvNCFCWXYw\nGliirlENAkQt3NmnY1Sowe1P5GNt69u8ZPYBbSO/AByOmTwhuzjs/4V7l79i\n4k+7cIQ5tnocLurgaiiA2ViQPjKHr1LH5FVtBSdoRQN/C/Ld4vEp2T7LSkcS\nI3vGJ61exxhrRtPICEBYVEqp7RO023O5whAyXehMrQEebZ5Y2vLRYTDMe1cn\nGRbi\r\n=JRRD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWAd9KkhfLKrZZHzs1OUH8Dg4EjLAirvX7tCHlDsgczAIgUVB2aoWXzRPEzBMl2xtCt8QZBBTz75sTOygG7AsN7Hg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-feb-23-2021_1614043893938_0.17949843840520385"},"_hasShrinkwrap":false},"1.9.0":{"name":"playwright","version":"1.9.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.0","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-vCVPCj6toZweLW2wz9g92FpsmKoLljz6ql1MeqBcVDgOh5yVR/rFdFQ6T+Ed1sqkssaissfSeZMNmTodQCsK3Q==","shasum":"7876f005b7be08419b03f14a1d9c1504e0db6d37","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.0.tgz","fileCount":201,"unpackedSize":6526597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNaxjCRA9TVsSAnZWagAAoWkP/0bEIn4uXTO7Ufkx49cD\n7MDlNJ+BLUpUEwvcwD7q7NcaWpwuOFLsyrZDxUcKt5YKOA1vPzZmAAj411rl\nDLV0hLpPczFyHqzHKfPm1u2ANv+AyqNA9UZfENdSnDw1pj3wKmih6IfSVZ1W\nti2Ze1TlBDtBBb2D91y5M57AVuSWrVle0klMN2orrybOp+VDaQfh/u2hF0oC\n+cXCK1YrmEV/vxnMnbVF7Dn44QV3YYOrSVU8gJ8FjqU/l+Z4QbGVnNj4SIlr\nXC4ieCxOtbD23zlrUpnRKT8D/8be8G1Z7ce385or6gwnxiUnpOun3SsVOMMd\nTmDzN5EjvD+eAvx5E4gSKI4rjFzMZIYm+fYTb+nxAa/8wZEd0v2V62WKqKM1\njZi44UAHRocYM28lOrv9TUeWvkQdr+yL2qnTsO0w3OHBR+XEhplTfQdBaU5W\nAwbuBGesOioW9Tr+hOY2j/kcIXcDuNBmU/kFhiYtOSHclkhKwbFDaLxecEtt\npOWmrHQqGIFOSNOqiMMCdqmA+eRI/XftMb/sYgB8jd3b1Ben/Q3VNaS8AIZh\nnd4f/Yx3Z1SNjJRzRNY5HORyoBP8Q+sz2fIIGnBscRaE8fu172atXXCZr1ks\nkFxNS599XjIOzF/DprufxidYQ/VilVQJ2MBn7jDLDvzvX4ZSyLcfgTIXRjLX\nHXMW\r\n=Zx36\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmoiMewJ5L4pEymkfM0xc+JILhzM341v07X1nFKRtOPQIgNH/ah9tsWkQ5JlE8uVUFBTs1C+cuoyjHM0w+sCZJpa0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.0_1614130274848_0.5863399247485592"},"_hasShrinkwrap":false},"1.9.1-1614187757000":{"name":"playwright","version":"1.9.1-1614187757000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614187757000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-h5o5mxT7dfUDTCuGL9cZE+zUw9GgPP4NFbVRL6Mla6RQPRS2CWxwATG4/Q8d3J9RYsEhrebh7j9lHm+xqZTmmw==","shasum":"2c74555f3143d10d870fd6278f1db890e6927ac7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614187757000.tgz","fileCount":201,"unpackedSize":6526601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNo3GCRA9TVsSAnZWagAA6B4P/jno/+qn8OulOhWWbhfq\nKEs/U32HUNBLJ1LM8KwA09Xc2x1eJfiauasEZBuolxkuBb0nN2VNEHtEkM+j\nfOk/APGWI9Y13bZy8QhqSEJImWnsj7Xhwu1DX3pKB4K83dSOjXIZHhJhQm1b\nrrzZ2gv1Vyy7tW+fORnor1XbMDX+f5yi9ppv79or0jdWoU94Lm3+ry/XZcLJ\nOVHtp+kX+ybdwG5fiC/a3sZDKbCqJYo995h590bb9bINAYoaRpSvuCeLz36G\nqNU0iZbZ/XjxS3l7YmihCjt/ekItssYMIDu8AglgJJ8dJxGh9bngqdEeZOA1\nnQDi0/HBxBldjISo/C7mOP6jQjxi5XJJ1nCmAJ/suwc+rzzCmXNIvW8xTgF/\ng9+oe0azN1CURox6Yd27UnXKbBOb66Pxrc3V9rniC3MEcea+TqF0IiKOaUKf\n8+tWIYqitjT5A890ipTgaFHLAaBk6v24FAUoTSGQPI9gZeBNHGMC+kjOvb4e\nGzJ0FpK+aGmwCAm9EizhNmTsPkDsCQQqlVs8JQg/V4tS39oYe3h+yXvryKzG\nI0x2IyPVoEiT4gW9cgwReChWOSLGlI8kSl+vx3KuQm/gEYqp/oNmtWA+MvIn\nun9p5PcQxt2YKSz9lyWUQjmvsMj1mAEfDJnatKrdXRtd8sFW+/EyT08Kgkql\njLjj\r\n=XPm+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnVXla1c9Sne2gOps09G7lbfX8oVyaX7Zt6CCHDSMD+AiEA8tC0j6M5wfVawJdjAO2htIR5F3uleJJ8eD9iHxPfj0g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614187757000_1614187973534_0.22795513185631688"},"_hasShrinkwrap":false},"1.9.1-1614201887000":{"name":"playwright","version":"1.9.1-1614201887000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614201887000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-jzNBf9z1j2pZdsWV7sJ4HQPCksiBAGoUwE9DBGaP4xmvaom2X7XwIlK1udA2eTaf1sChRaRMe8ShlcoDGDWSOg==","shasum":"9a22f274ff7e9613bf0fbc432d3c169211c8a461","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614201887000.tgz","fileCount":201,"unpackedSize":6526817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNsWwCRA9TVsSAnZWagAAPnUQAIo9B+FVS2bDqLfy/YxL\nCxvEZ0sbBgfzLhrlyg4rgmLhWnaiqQ3O51lP69I0f8mcGxkDFB951WBKQjbM\nTCmO9LAnIkmjIyoDJAJzdZ3Ev6hLhXIqSBZbvkNWkqzJaSCnnYQKCUNmDWP4\n8qgW1eXkj32t3Nz63Z6SgbseF3g8zLI3lWXlwsUyGRLxa0K/tFp+iY9UfcM9\nqhaA8krvcXIZihIMp6e4r4Ec2riWmc1ds200VBg6Yse8vgeNB2JiyI1FymtD\nywjxRFlAGYscEUUXSDolBZeJVuT/F/NSIlTtfC/9mLEWLSNVrlfTsJz0KmRV\nKYFuZBgBeuw750A/wA06AtC6s9de7JJJTsg70jY5l6TBdZA/Q/8rVs7Do+RN\nbn5PmjwULgYCrVTJiEJPZiRDdaMcpl+H3Ssoa1utIZ/+e5R8dcQzeFy3WjzR\nRZ1OnErHdmhJMd2qbHH0H/OevXApuOu62ORa3UKOhX6E+upLSf2NYK27/m3K\nEvBZDCxUdkPwINeLtZtChLoDBPVQ4PwSgnNT+CC/uHjo9a1EHWTs7v7QFK2+\n2IXVfBKxD+TaSTjfR0ZjmzH4CNsU49DwJxQrULLlVtRdVvpyP5Hn24fDjiWk\nvgSb0CZpPMC3+Ts0uUT78rv54HwQS7RyvqEG6RQy6dPA9O45rPL3lm46Xb9/\nEGJs\r\n=Xpah\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdTHeCaS0sNtVFgxiiXdVkLsZ/MGy2Mx+GWlid3monQAiAMK0eKLyglsl5Gck3zdlhjRkN58UdgcZL051tJeT4hMg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614201887000_1614202287452_0.5472980969974472"},"_hasShrinkwrap":false},"1.10.0-next-alpha-feb-25-2021":{"name":"playwright","version":"1.10.0-next-alpha-feb-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-feb-25-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-UkkUgv5j8HUKP3VMxKS/ePALZez9LPRCdb/xWa0wAKhNHzYy8Qlz06YU8cXXhNmVYLbMVJH9IadkbS5noQciOA==","shasum":"11adae87aeb10c000f393a8894389edaeb5c41cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-feb-25-2021.tgz","fileCount":202,"unpackedSize":6528408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNv3JCRA9TVsSAnZWagAA6lMP+wafLvHum4+qMu8w/UpN\npnFe+YkbgiCnGIP1M5GB5g3UlGoxKxrhf8qE9lzRwQD5bSClQkSfZsmLcBxa\nXADwE5/DPtKJ3l45M66OSgQ7Uzpy6C+EXXrtOrxPxMEzlLaIxyrASkZCPEI6\nVS+tcYcQQBBjxpVoT9MswRruPB7OapgHWfb5CKhaTQOFZnFhM47VNabhmyeZ\nVQAari7ZmYXI/78Lr317T76uajB5ivkLpa7PXz27bFxTh89Py5ejbi+NTvaE\n4lASOmmKotaSnRsJ7NBkMWgyetdmmh/PGpnlJftZIIf+FPV5X/VmciPFL5LZ\n+bFLVNtPEzyTQN2Kb0RZVB07alHp0qmGQShFXebFSJx1Ixx/zqXfWzOr1nHP\n2dwhQX4OyU1/q2OE8BMfOM9cwTybnwt5wRFtdvWsH/31om2+uuENzOe4g78+\nTFL1d6etAP0IVZ/9/E+3ChlPL1+ulPS+HwHtfJ/ucYTTbwJxldnWPk9pYOvL\nd3CpehVcVa0Cj5oBpByFoBQzXFjpEGdib93cVPT+1aiENzS7ebYXKTRxasrP\nNYMH2w2jxCATLwbBUFoG4/YVgnLLLPy1/tolb46ghoHk6xvB2lmmafyKsKKD\naD1382OVMkpaFhpKGW2sBEcXYfmlVyt5N6Me0q7drGZ65NyEQIobhJQkl+WI\n2Eje\r\n=fnMl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9KJoSr7qehs2nyH8z4m9+Tgfe1S9mVULPHHkdOHQ7BwIhALQrFvN9zscm130AJ3XyX9osA8mtJfjzI8S67ozDiwyc"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-feb-25-2021_1614216648571_0.8242007187146971"},"_hasShrinkwrap":false},"1.9.1-1614225150000":{"name":"playwright","version":"1.9.1-1614225150000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614225150000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-qP6viW+8AhnUeJ9nZS1+yCVXin7/QWdB88r8TJ81ouI8UKyUpM2m4i+7bqnV8LimlCdwJfy0H1b0Sqfj5E+D0A==","shasum":"7932e117ec766748ac0406b66d30b725e89a66f3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614225150000.tgz","fileCount":201,"unpackedSize":6526939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNx/aCRA9TVsSAnZWagAAdOUP/0eMZbgbnQWEN09f8dF+\nw+snjt4FoAnvvTBpQ+Wm7D2DiVVcQ4qzXw2jDwMZpVwYiyvoiRENX30SAAzz\nBwvDe3gkU6z9NLJXUGxr86S9Xoef3W1JzxLVy2C7O4cnN5MIdQTnzt74JHpv\nsFSVVsJeiNiDlgB8RMW5kXaxFdBZpCN9S2+YVsTdu1Em6nkBk1wCxX+qE+H8\nptkFfoTE+0ylVt5D+CBf2O+lJoc00s202maoIBks8lq3fqHwyknvxnqgXl0k\n+LdGDZPky8UgZMcyEFwHLLSgMxXIU2PoRqtyJOrKMFDjJL9q8ekIDrUuEFl4\nGKoIyrH9xWKBxZDEHtGDpaqPRSk5FI6TObCOpxoQ4FpFGHcJnvr7HmzeJ9pB\nWCKl/p3Z219Nfg79PMi4ULhrvWeyHEBv+ERtwk2NBqYlmcp07pu+pMKlmM6M\nbnw53OGFNbEum/CJxFXNKoEcoZxDXXq3QrphahgLuuUnsq5fBpNLp3T4y44/\nmwatkm8CjBZsdB6FcpQqQ0DzSrBfPwWsyGTxR4iDIOBM+4T3xYrZ3BCPmdMo\ndLagDZiiq+kAqqBdbQPY1yY1FBl2J3QfFk1hbsGhCzQSJ2HKcLvhLQzDpv04\nlM7OCp6rjRyfwzxeSDPWt4CspZtRagETa8xyGztm+iqcOOzCDgQPDkhWa2ip\nI6iU\r\n=lJC4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIPU4j1SxwQK49+OEBhiCYeim7uluy0PREb/d20RuvIwIhAMnxyG+Gh///svg0yFc1eMa3wByKX3oKp9Q4wgQOKM0p"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614225150000_1614225369578_0.20161524237488226"},"_hasShrinkwrap":false},"1.9.1":{"name":"playwright","version":"1.9.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-bZXnks4UGJZoqja6TqVEUG0IQ2liqYFcO1R4lT43aO4oDVTQtawEJjS+EqLYsAuniRFWVE87Cemus4fRQbyXMg==","shasum":"b4db35f69076b2dc91e347e58d81f2f391d1ed49","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1.tgz","fileCount":201,"unpackedSize":6526925,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN8UbCRA9TVsSAnZWagAAlgcP+gNei50dpZdsmGEebUuM\n8sMYYTWCdqZ/Yit4LlpJsMe95UYzZWNkiE8nBwSYNPPfaWq7S6fS1zi6BEKx\nwxKPCOiN8ag7is908//6uYiYojAYT0v72AjqotxLg04Z4DF3KO76snKMBQQa\nwwMo0bIAt9DtcJRCiEAC+pAR4AXMrdGNX9qnxN7fGHmqOMmLOZfNaiy2rTbg\nEVTkmQZrkMelqyjIexPSg1uAzSuTE4r/V8xgHNR6tCZm9JTJ5+NGlhlvzv8f\nBJh4sII3Y+b6fltflhvZrCk/y78DOlCjY+ycvWk9hdJGqoU/qC1q8TPYE7WN\nZ+j8cwR/gd99mMYzZ1/7lAMjUh0axgBEq6to9I/S7B+uKpeLpjharoVh7vZ4\nNsQ0a1+NrixnnzKNBQDyOzkoZudalMNOp6pdDl7Ox+gsaHAr9Duare1dCNxb\n0kdQRPX5Co5Mqg9ufn2l97lxR4U6pOSGDXnC0n0jB4JLrYkewWKvKWrQkh2f\nuBXwX+PFXw735hK6z3rifmz+CdpFERnfi1UXzBjL8qlXc7JJYz0lkmZK5weK\n7PVc9c05vckbcpIq92qEllbfPX6bgir3Jx69Rg43R6Y1do+PyaC503fIL6xW\nCfxZx6HmTgpbS+99Ztvlr1oubzHVfPPbLPicigDfSBH+fPp+C+8eb6xXoj56\nKJ8b\r\n=3I6l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTwTZNkNUKcZmYu3l7RsWtYHta6hrNj0qfRdK2hECijAiBVfzVX6ssOKCrHzDorGz5g81oUSYiwoCzQ+TmAdoE/zA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1_1614267674052_0.023279750041184544"},"_hasShrinkwrap":false},"1.10.0-next-alpha-feb-26-2021":{"name":"playwright","version":"1.10.0-next-alpha-feb-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-feb-26-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-dPCIs2bmS+v/DnVT6DgXbSLqVk5z+n7/uaQ8nTE6ju6NuB3cVHCX08YPVIORVT4R1M1xiysFBa3IWMjZUyENpQ==","shasum":"e7af88e4248e9c3267b3467475584f5d4ad40242","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-feb-26-2021.tgz","fileCount":203,"unpackedSize":6521696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOEj4CRA9TVsSAnZWagAAqBkQAI/GU0uWdCCtuhp7sBos\nBzwJhaArD3EkuCgWMOG2VWcO0/q5SiVZPurxg2VLQ9EijXOANXzAZE9rE/pY\nGKD1jNRrute3h0RSvFcK0lotVzPKmE6AkYEEizKjCtDM3QWEvsweBABYadlC\nEo6pAJB5UMhapzZ+HF1x1I8Tf/DuMldlwFPT1XIo9cTvAqKfhWZ3gMY9Lyt+\nvcd8GcqELxPv5eG9cb9yFQTwYMqgt02tSHOfM/Lhg5sDxKV8xsXu0+aoijsT\nvq4u5vNoYWB/JedESGKEoClnLqQZGoX4iWbctxDqI6zsc0vneF4cMY6nROUW\nhomtUhUOvtNFR8tVySnhOE5VHlfivMKF3DCdnOMnrXLq65UP4DL/n4Io1t/m\nhbFDhDW5cigWDCxw+kUggI+X8PHsjMmYkqz16sqvPGrUOO4uZz6hEHPADN6s\nRg6bCCJtiemH8kzgit4RLZ1VRzG8W4P/VBm22Z9x9TeBxcemQsr/6gHenXPV\nYVl4o9AONCN5m6mZ1ZApUabjn2rtvggXOI1XlrodjJyLv+HaSBWk33Mlwb/n\nTH3H8Sb1oT7UznN/l65hSv1zjmSK+K9Xv+xVrXus30ziqFtt/HUZzKi9QEbQ\ntW+q5L8/+5l3cfBXI66ROcMnGVFjKyQz0yvFaUP+chRH3AoZACAfLyRfAxO7\n5KhA\r\n=Scbq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6ofr4lXxs9dyIB0Qt7497pap4Jlf0IBrEgt07TdkJaAiEA8mhPKKXWh7d5/9FnPCClMQTZkmpJ1tdPUe4zgfFO0J0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-feb-26-2021_1614301432070_0.5870959879231952"},"_hasShrinkwrap":false},"1.10.0-next-alpha-feb-27-2021":{"name":"playwright","version":"1.10.0-next-alpha-feb-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-feb-27-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-DvO3hWnptwRF36cQFbPpcTfLLo2gm/Q6ok0pFdPlnsyeoU7TScKvv0DZihfC1gYgoZi05vzo71kgKd6rh1S99w==","shasum":"df41ffb3e3d5f73116c944679b46792a4ec89d13","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-feb-27-2021.tgz","fileCount":203,"unpackedSize":6559448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOZp5CRA9TVsSAnZWagAAxAkP/j5zBjnJkFPim3o2rcec\nPgLWrp1zOv2oQ29QoJx5XxtVHMPCtJ19LaanVhR06C8JH27Lc+LfEBAY6Bsa\n4xtyg59o3JiHXAB251dQZWsvj/5XNeGCD3paeMGgiW/5kxGOAet7ZR/996V2\nlGQ+yWnf+573NZR7VyliYs5Fvo0JZeid0P5ZQLf69uL1eEQhGN0WC2bcOzAH\nEdReDx8UdY6+vOvckRZ0bIg7VjY3wQeeZQEf6GIWCTamJAxujPvqNVVQWHHt\nCyzBH76XI354tcWB8kpMulNW7Uqtxzl5Bft83p5r9IuvYgy7M6fNwZvdanLI\n+7lBhZX3gjyCQCFSQUCj3QqouVlW3dSq9loCDJi5kskcSX/BF/1lWSzcRMOE\nrbDcI75v26Pp+VS1mA3nzDjxiuh3r7TIqCItCj4ymk0cAnl64VK4IxTWV+Gz\ncrhZQ02L33/KFmq5U5v1HKc+rk3qWJl4goadNY3kAYqIhPmKlfZVjRW5jlR5\nPSD6OLw3j6XuIyUE3QOib/9nSqKexAybb2T4/AlF4H3AfipwENWUovR1ciuU\ncuwAOzKHj4yR2uj5UboaTTte0Lbe+9y1d8bI5yEpcmITx6x5IP4+EGfRUQdm\n7g3oxXfLtJSpDHHJycsDFsxbm5WgkR3113D+OZQfk1E0M6HqGuaulJdevGCY\nHuyt\r\n=bu1h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuzAPIru6xnW6GlPo6NMqjE1fb9oZUgEkhsnkjvZb6/gIgOCJ0e+F2X3csMSd+aQyGq7fAKIZFQXUcXV42pdLTg8M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-feb-27-2021_1614387831620_0.7824466783902966"},"_hasShrinkwrap":false},"1.10.0-next-alpha-feb-28-2021":{"name":"playwright","version":"1.10.0-next-alpha-feb-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-feb-28-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-LblUZjnPNrOz/zMZonirPUq5sM8syQeSH1faT6A4qK6FB0BQ+4TQBqZI360UI9NbeGP0Tp1FmnflPx1Ed9YHPQ==","shasum":"50b9908dead26e9b5f25b610da56efc494f8f2e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-feb-28-2021.tgz","fileCount":203,"unpackedSize":6559448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOuy/CRA9TVsSAnZWagAAlw4P/AkLd8MoceSb7DrlH9OP\n4Vv+8RVDqGOpZV6LQohBM1x/2+TymvXfqoCkJLjzVWf1jS4mgr07vFxT4RnM\n3ymIACgKZL1/CYkbYdT1fxvHvSnuKsGkChHZseQAnfW2WjAWgcDwOJq+zRfG\nDNUeT0O/QuPt0SfX/BrgmNo82ys4rDb4kOR49gpWf6D6oHGgwkhQNxRA7Yix\nq/b69/vSE4wdElhrXsybeVqXOp3r35aJBxL+0DPzO5kSulEN8pNp5YtCbwvt\nJsB/CqHpxssgFXFMnvz66xRQJofPBf6Yn0V428sGtzqHxob3J1qPE6t3Fiu5\nTRcm2aU5u+AVbgz08LJl9gnYEnm8F9Tcg4f9IVTmeWKQZePrXRV2Ma38qdoX\nxolrJQ7qWvmDI6PyjIAsroPPLnD7Z8kuQFm54P0ItFC0XZHykVPivk9X33pu\nqoLZPQNk/mpJ+RPc4Wn9Lu3Xq3psDH+r6//5doSPKPsyHsi2yZ6mPFYwQAMB\nLGKBSe4nPHjtaufPmfYs8ucupBPL9pOX8RpyZ6UHOkT00JnI0TzXYlvCWuXj\nkVOUVZ0EFLOs8oOxKBn7L/Vkv3e/CfkkJJPbxATDLfWrFm/JqTQaoaBt0Hr8\nGWUY6BwP8H4r6c6m2txYGW/+B3LbfCYl4XAoB709hePiFAjh2ve/Gr1MUj4B\nB8/7\r\n=FY9/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1EhNLw+jhqWb3xHeEA3WnIEmHUDZ0H35k/fsaHeZIqAiEAtOip6xAZDK87cCdismDwn//hufTzqkUxgflKURXiLns="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-feb-28-2021_1614474430694_0.714052524601011"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-1-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-1-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-1-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-oaERaC9wh6eAfSlIojfucb4lDEfTtXBjrQ7OP/UhRe0v2VxK/BozdWhp7aPXeUhLTXGPHQ9Lbmg48z9vO7/XQA==","shasum":"3c8092922b9e7c561030f22f873a9da7b2d453cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-1-2021.tgz","fileCount":203,"unpackedSize":6559447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPD5ICRA9TVsSAnZWagAAGWIP/A8NInMVNil2yWrCPdLY\nhtEpsX03khqUR3wbL9gbb6WxYNOUMtH5lbsjGxtkPkTnYW574YAD5Bg5qjh4\nWV7k8/s/mE1W8IBpN7SR9Pe3fB23U7MKo5PSRia37cAJt1e+8fhYoEDqFiHD\nxs1oilAAC8vSMRm3OAH7APAwk6EjLjDJZEDwQj2awZF1J2rPWbG38GslGwsQ\nvVwjgzSSAz0adf7GXCoMTuSrY244PSKVS+9NGsOImSKzJLby1bMMMiwKN7Z7\nBzj7I3k8rTGQWf7JfcLZFlQp6kJ5basn/P3v1AZfgLADw4D8C+h46eTcqY2Q\nRCdViKC96ec4TwwSIXRNuHzZxPUCYyZgDqL43EMIPc73Vh2crariQinGlee3\ndvCz1OIzH4WTitoSkRnnwh3npaYJQ3sf4H1dRlrvXXEYsTwq6ac6iSGne2fR\nGJE/FWtQOnZbaeFAU93Ggx1kPLSpgK/rgDsZqTlKGjLHHjQeSG0fs/2G8lkv\nHDF0vtYWRzYre5vcZrbGCnO0VVwXaNP9VimxgfaUyzHytFqFaXPEVzLyuhmq\n0JY1I9ZspwJ3jztgTtyix9Jv6pQeM5Xa50DIgpiJApfKzwlPkWq4jxSGbh78\nMoMw7udTbXPqCITTGpnsvvYij3cjPdJHp3NFBM93Q1L8oBBlErdKmdxK0S4K\nA/RP\r\n=5IXE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOultcIzRUkvLnHkdbRDCSgc5hATiX1aLuKJhLq4+HVAiEAikEYtBom5gvHtTiu0ZHXF4j5Njnd3xTO83sRwLkJmMg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-1-2021_1614560839293_0.008134136347431875"},"_hasShrinkwrap":false},"1.9.1-1614628267000":{"name":"playwright","version":"1.9.1-1614628267000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614628267000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-nUVyCTqNgcqVfbPVACXMB4qeCQ/tV9v+XviT5F/C24dyrabZQWJhJRGeywYqa3bNoom52Eq2CVaHtZty+zHF7Q==","shasum":"313a64f3de1b25380922e1cbde71ab02b5cf5fed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614628267000.tgz","fileCount":201,"unpackedSize":6557874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPUZMCRA9TVsSAnZWagAArE0P/1DPMryBgf6x46qSxx/2\n80bcyI/mFZ99jimJIOVAgluLou4DRZPzRHty3phm3ukCnImuVnYM3yzQISNX\nPIzHR1NXsQW95IFPaa7H5sVnJlSZ6WSsC6ErhObDk95QxwT4ggpbPJr7uw1F\nSNvjolJ46q7Zf/SnouBBpw1SJd+cSNU7vlFV0cxTCkt/L3/92oHYyXHYnOqw\nNNeMp05j8TcKtVOQYZTdqQe1mUC36y4mVf4XUor9hql877VdDgAzbhlsofa5\n+AFIe/ABtHPTWp0409By1apGIPl5phD0xmUcJ01PLHLDX4ECJodesEj51ISO\n6RYiaYnKjRwuPboOAYqhVjJrsO2EolzX3G6P4US1yG+06jE3qo9xLuHToZaM\nuK4T6OoT43Z/21tZsviAi8QCEApikphZrRtSFtbij+GloICJa/Pq3KpCoWyh\nrYQXuFYcO6Qip0lpSs8n+mWsjUooMTv0ISLJvPDsv8KZXJTUCzuW16+OhNm1\nr7Pp8+2fQhTCAMWpgx1OjY241cnHML+/zeYiN1Hj+YWcalhU2eiyTkkfTKGM\nz9b/Cu+kynAO6SGUSPeBbAyRrp8frJWyYIq3K5oBpuHOi166PWbJYPazACC/\nTouYig9lIBGHSm9HgXHZWsh6oxY8RnDTxfBXROAdO2ftPCzZeriUVHEPj8Nm\nZNRL\r\n=AHAI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvk9e8lFxR3sZiV4dCPzDnGkW6mTlu0HfOmv8tvw9tkQIhAPQU0j5VhpcPf+M2K8rhIqgdj+DZ4JZshs5l75y7X0j6"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614628267000_1614628427304_0.9470505154834521"},"_hasShrinkwrap":false},"1.9.1-1614629120000":{"name":"playwright","version":"1.9.1-1614629120000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614629120000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-eC8NifiWDhU0VZ/WHqUnbu94BQmeAfFL7LKQIqyRMyTkm419aoebNHYdcyD2kfeSvtdOzUOiEo+JsWB3tfh64w==","shasum":"c6c2d19a47aba9d2c41d7a8d7776e406b1d0d94d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614629120000.tgz","fileCount":201,"unpackedSize":6557874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPU45CRA9TVsSAnZWagAAfewP/3nMV3gATKA6ptUXFyUg\nBHFckgp2Ft2+M/6Onk81C8u15wuVsWFSTjxKgMXGve9w/qMd86UF749F8gkG\niLVY6rsFM7At7qIhRtZSrwaett8pU+KAqk+bMSS+joXyBeswsFm672R+cC6i\nHMPmvoCO9SRZLGe3l0XbssIXUfXziDN3GDwc652+TssKxcANrqoS4SXaKsCQ\ngZqpa1pLZi59VAG1PJI//ZvA9LmlyU6/nOElGLUxBeb9VhOho6S/MPBg8BpR\nn+nSzYoQg7Md50Vl1A15V5atrTWQB/yUx/npPWnVQgoEy+S1iXmeomHv+Pa1\nLv/c7PPK9f8czO9BwyCGneMs/mU+XcD/m5LOSp1DGMKy0nRJ5r7bhRs5c/HT\n1iOTEg1anNXEI47VxrwjL0+Y39YJzV5QDXA2pn0SOsWTPgqU0zht2nI82CI4\n1D3fl+ZSP2vJFbHAHHX49UEVw6LY5Tmb3a08ftqAOCSDi1HyvLes8H59OEKd\nGDnd6SqbDA0/zLOCO77LN6WdtEwLwIRoO3WV3h0jbQc9EyW0tLwlqkXOUm/k\n3AEGBeyWZErQo/43rFW7ph2AD4QbMIje8Uu9mYpShOgrsD6MpaF87HGWIUFv\nyHukvRlnKGEpGbXwLNPu0V6j2YomZol7/DkmGnfyeQktyAM333+z8XBVxGCV\nVYR5\r\n=v/mg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCg3I6YnNDaGSNyT83qrxGp1fOFaC2rcmM7B09zoMvrDAIgEgVB34u0F8+/IgieVmWkRKfXuuAtuD6ML3TeY088JhI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614629120000_1614630457280_0.16151556055987615"},"_hasShrinkwrap":false},"1.9.1-1614633211000":{"name":"playwright","version":"1.9.1-1614633211000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614633211000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-FyvGhgGyNMiWu38fLKm9my4vjsUWXxY7xBvlWHodDn3zKjJqn95lBI6azbQre59YxbiyuSPhBCdiJGwFpnHRIg==","shasum":"4b016593de000f266915b028951da3ccb9f61089","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614633211000.tgz","fileCount":201,"unpackedSize":6988323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPVnYCRA9TVsSAnZWagAArNkP/A8PdnF5Im5VDTBoDGRY\nkO05JNgdJawL7NZTLQPr2TMTbnxyaJ5xrgG7jfbY3N2f32OO2DBZhNAuvOU5\nahUNqIBAjsBUEx6h+NCFbDd6yT1Uzo5GtBmVZjIfCw2buIJBiQdwy99CD1bC\nov+oVyzuEuTEO6rraSC3emtQEre47L720g0HMg/41CMlVZwbJf+MAXXKlP4V\nIIFPJFyZf+jDHXjymTtMCvIga7waRWswinGoOg0e+jL6XoIUz3Jgyfx+WLiw\nxwuKZVul3DmTEdc2S8d/nBHjzPlHRHwIAGU8KGOLmOBNj1/Pl2x3nIo4mmcd\nFVJSu2tlHAmXvFHwdtLyqtrg1VSC7LsBNMOP+G8+r+BiEvIOKs9yYHQZnKJb\ns98f/nxdMQ+jTPk8dyoqR9gyxt9eFce5dAc/xvgHQeKKQWrUHSFNUTnOFZA5\nUqMUHQ9Tr+S919xqgfDJWfzusSZCcXFB5idZjnwWPk0QpckrS/yq5unwANSu\ndcee0OQYhTZXEHKoGv0XgLn58bFf8dZ9NICsq3r6cv3eKyD7xPIHfqzGFoto\nW+pTdedB/sYxYe3hEwTej3tx90Yb21azlPUBYpcf17ekp7qV0iOeYbzIVYz5\nkjZ7zRUK2QVik1PhrMl+7myY4NBrMiCt0bzZn/cqRy75VUSBPslWm4VT8+SO\nLzna\r\n=7I43\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoplUttwfpxk8crBwqt7ktzLHhK5Opk/pOTGEGcy7yDAIgdyGHBJmu+Iwbyr1rojRDIvA5msd9D2UxI8l1EB/rqb0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614633211000_1614633431616_0.10462671457425654"},"_hasShrinkwrap":false},"1.9.1-1614634508000":{"name":"playwright","version":"1.9.1-1614634508000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614634508000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-UcbTZ3IcrVqCuDfHo9GC/Ju/uGfgMbvXJR8yZHr9Zc/4StzUEXEaEzxrAX5ZOo/K49E5af+cyZWrkx2dZGT1Yw==","shasum":"5550a3ad6ee56bbe9a7c810731ae472139f78c55","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614634508000.tgz","fileCount":201,"unpackedSize":6989339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPWPUCRA9TVsSAnZWagAAYGwP/jwn1Vwz9gdCWnLGteR0\nTnFOzb3lx25ZFFU2aVTEEzuAICUJsYzqjVHLr0cOqpnVdye4ER9CrvhuSlw1\nAk3Q0iJtccmGDaVgI4YVnGf6LTwdf1Jx1t2W91yB9pJKU6vhZN+vSXU6NOvf\nIkKYMuB4e5RU5VF4NYc/GgCPsis7u56VEUOjoLPyU9z3SBkSVfHunrR7EWqN\nxk6oW4JtduuCyxIo+KKScqQGO86c8T9n+LfHR92mgw+2ClsL0EtO9rQXisIq\nbGSvKjtm2DvUbyR7k1iX4/NNSX8IZRcG1wgvxzCKzV38b4ly4wx4qa4L8tmq\nn33jTx+21ReT8At70nKt8xKpShtxHQ+N3SBepr3ajRCCGrwUgjb8/9xedZ4e\nmqeBZUhJD0pWcVv2PsIFM9s6nGAOvosIuTsbUcw2zixtoAbNBWT3GnTxX1b9\nzihdgr/SJMRnCEUrhBDHkY5A67iL/ijgSRiHkpEWrdh1AZZGmZ3LeFfkZyai\neuBl4ZCWEr7kXvpPY+XjIvLDm9W3Rc3afdRWQFOgujFhhWZSNWd+bPvf8xs+\nr46OrRle3i1TDvGfUhnX1Kss0vnZQni6bn6+BTtgwIxVOz0DRcUvXp21nkUa\nJbpkzLj+TGs0NZmMpb+2192wx75qBA8Gmc5VcZ8oIPx5DzS1PoBa3UycxhBu\ncYdh\r\n=AE5o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1i3FbAAmMym+KnOFhgQnoH4wx6gijZsHzrN9Ws5N3RwIhAIsp/1jsaHaogaFA75fm3OUp9eak5qK0iOYnagoEizIu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614634508000_1614635988175_0.5776306141342016"},"_hasShrinkwrap":false},"1.9.1-1614640598000":{"name":"playwright","version":"1.9.1-1614640598000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614640598000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-pVJgMjtq79jd1m3tuxK86h3Nv2JRRCc7vwSdN29W3e9PFGmJfeQfK8BiF6C0h2lMzU1u/YlD6AGADwLCSw1s8g==","shasum":"6aa9c7d991ae7f23ad20b387b5958f10baa7ddf9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614640598000.tgz","fileCount":201,"unpackedSize":6989882,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPYARCRA9TVsSAnZWagAAhgkP/2jG24+33MUMTKLCVlVd\nv2N5O/HphpT+52651vdjgWs1+e9igm+Y4xlNMLslIMGRBninkfx81YE8m/qU\nQ6j38Ddk+MUZalCSc/PRhLBGJYffkWuomSWcfAKN27jvhsrtQHR7msIyCXJS\n96tWM77DeCy4C4CNg/KpI+d2yAEOu7gtN0IwEtbTAyaRN8KO5kSFe3FUoXDm\nxYxwsQqQ0YpspWVUIGFm2RAqjEZIT2gk4gz0tK4yHr3yX4NtyffHNIiPniIY\nrnNLf/saJRyYjhPXR86A7Dzkjm5IQvcuN3MdMXVhJ94aFULU+ooVBCVZlreQ\ndDaXI7YjI70GtVletqZT/XPB+Q4p2MQk57lvv1bdmAJcrFDtue3B8ROmMe1g\nPwb3mNQ75UfPTflCGGJb4pzyBhD0G48AmcM4y/wQCSTjU6qvYok1+WHDx1C6\nHMK1R+IU3jvIMqdc6byg/ZdewWxN+UbOPh524d6YJlQBPBQdSDtIBQYY0DtR\nMUNkxhmeOPtJNNpOW6y0CL2lPYFGQa/jcJT+lCQVIu1IU8KGIf2XJn+7meon\nK9/gQRxu1XZ9dL2d8DfvGkAFsfCa/F+U+1EHhTm30zCY4chmeu5/nRmGEUSp\nW8c2w9NbiPizvhpRMNAyQoeTF8v8M7TNRS6Q5nEPKTx+aaicljJAmny6ny4W\n9fHF\r\n=R9xo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICRYvDSrwUMRbt4phnBYQodiCKpcDfKzVAasr9G4Igh1AiAg+shYmziEFpj833G+6YlSdgksz6FFnypDQwUK9KEeXw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614640598000_1614643216281_0.38450006738064424"},"_hasShrinkwrap":false},"1.9.1-1614654987000":{"name":"playwright","version":"1.9.1-1614654987000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614654987000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-VsZqtsEeVmZaHKeZj4EmJb6vT/cpY2Cmy3M+kKYcELwb5HU5E7HgRTuHR2QULgaE/CPzUwoGXE6isfyImnPtQw==","shasum":"069464eb35f27d80e98f03eb1819734b90373a39","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614654987000.tgz","fileCount":201,"unpackedSize":6989943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPbQsCRA9TVsSAnZWagAAMfAP/2W0DucQaYZVKicFUFYl\nAfirKN7snmcSYYIvFXvQDwnE80N1MBbhyfSLKiXnEnd4Fzj1FhaQU1cs3r9w\n0aSLnEGdbbshMwAbc0gX9vlUFsaesihHkGElhdb+WmY6yYO7VHFC7BxyG1x8\nOsJjEPN3QpUTNXqYtzffAVnvUwq8FqhKaU70fRMMnxDt7z5RAaEjsSuiQruR\nRbzAM1BbrUwDRRReGj8ecdnhT2hgtBAG8G20zq0C+8jvve3UE8iDlMo3CK/o\nt3P4Btu8N4u/p+UP1s6CYy++eOlp/BIAhqh4wTaywWskEiyDR/zlTOlfr2F9\nPGMWia51Dswlf2auTdIq3/fKT3f/D0hg5wRvuiRZo4yxmqkliGp9gdfT2UUH\n/4oFmp4dyvU20keYdhmVtL9nfRugmFT5oXizf33wcELniIvTkqXITEYofe7I\nGlVhVdqZ9a2wbj3SYCQjDZC3Ed6AOmEUVot0NOAWu11V6P7E5ztRj+01Y155\nt2FWQKkaeI0ujLg7COhC+lREjyQMBGzVs8MxNAoV4ERK61Dfj+0LYTFEPmaW\nyOswusI30l6lS8AYLxaiIbHrvLWnTpfA411KXVNW6OCvdMZfdMQVReRzx57G\nUji439TQOqUeCGgp+QU1RugzFuwhyvLwkiBn2qKz2Nq41I5z3c4UcLZdo4K4\n8Biq\r\n=4b/E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALTW1RJCONMOjwqOcup4AtUIibvnn92RpiX5v4rh90pAiA/vL5dZ1fpsdv/Z/rMAGRqZfl/8KObqFjsnwgmg805kw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614654987000_1614656556207_0.7454527287314219"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-3-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-3-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-2n4M4D8UDX3miL1M5oI9z19aDk0ul7dn6F2kMO4Xoi70J6/kxxXN8Xt5n1lj8n42uTb6LHtfDg7/cuKV3rIsAA==","shasum":"1a82147b9fc906201a320fd152efc39c08cc655c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-3-2021.tgz","fileCount":203,"unpackedSize":6997259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPuD6CRA9TVsSAnZWagAAfFQP/A0eFakKNPQtzH7Sj+mG\nvEDVt3x74OlJrq2ds5GknYwpfopmOWN6Qrr65dALfmnQVT5Cj358+sV4mvX0\n7v+vxQZKAs0ffwzo/8qCKC3nnS/C3n3+LZogCgCY/x5aH1THCoqXotedrPvx\nkaqGKIaoezmvAPMisIiYj1yFxdD9RifydaUVpn0zUSmTbGhB/nBVd8A4per6\nMRfiybwE/2vOD4zNe4sr4UUdn5j0Lole+AF4NYktysUfh6mFhxI5mCZnE9yi\n5HXHqbEc42T+eB8h24LxWkVjnV1cfhcJLbIo/wVYW398qJNeoKWh56V5HpLN\nmSlYPg5cDdX1UlQfb2/fjp0P8iNGf7Q73ECxfxsZQqZEn+qEU49Tat7LPusx\nR93veDyEmYvZH4f5yh7kUA/Dqh3P367dvOiDNQWburvrDjwK2p4q/F3izAxH\nBGXnJImQUAhIjvEtJLShxBqI6BLVWYwQWH3J0r9fS2j1nkMWA03E4CyMxgSe\nv0GXpsrV5wOgbjQekSvFhiqjUICbBnW3gKellI1BjSJsAsIRLYxiOVJhdJLY\nqwagYvwqBFL3qp0l1xk5asDp/k/JYCCxjTnil4GJOhcpXS+L0CbdIzYbhVP4\nkrhqdDY+QzC84SFHdGZwDdP10tePZFkk4UA0OOGpGr3cu7fcp5ZNPt6oLNjH\nTpp/\r\n=ndRD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAiFnTzah15ME5T0zy76Wb7XUU1o2tWHDtEVXUXX3FkQAiAKJ0+cWwf4k4AU06tyBQyCp6QyiMN18JbQjkzyLJQKsA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-3-2021_1614733561392_0.6763239876999008"},"_hasShrinkwrap":false},"1.9.1-1614734424000":{"name":"playwright","version":"1.9.1-1614734424000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614734424000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-lj1iHVbN4a21M20cl1KRMSYMP56winl8pxLmQt8lt0W0WN5m9ee2hztc4xMgzVnYlYayPj/5S8qCYDmULaCchw==","shasum":"0def542e1c68c52458a0bdfca11452dd5d8e5d63","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614734424000.tgz","fileCount":201,"unpackedSize":6991599,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPufyCRA9TVsSAnZWagAA/d8P/i3dm5QC0GSVBb/cU8W4\norU3t5tqns3KUlf9LtufFm5tI3eyh8n8hdRAbzL++bOc5QO17ROUp6/2xZcp\naDyXFoAX/zgx1MpVXn+1wTKsBj3vo5b+/swOlcCzu7jpJlho++szV13Dpq5z\n/W1UdvCHdNPVBic+M2qN4U62MMAYypcnmoF5kQidswix2ffobQNMHcYTpAIu\nH5VolkTNpQ9cSbQzwAIdkxNjvV7gQPoO3fiHEyvIJJCMEg9jjznR/nLeh8au\nlP8uKiHbYmYEgpMkCEPDksJHjS553vx2jM1cbOEOt9nt1vwLAOQADy8PpOmg\nly8L1kHIeBZP+M916vcSAR+diuYkBZBOw5ukHpKzBPX9SjCgidZjIs/CDOyH\nYUrQaB95mI5fA5vd1oPTE0Kgk5D5F3Aa3kaT1077LgUWwafzjt6ctRGI1an0\njjzd9MsBZ4HvSSzqfCFIFVVKnohKUqpLF5nhuDGqHw7KvrybRzkRyyih3FFW\nR7Mqm4WNzhyF+RueH7U2H9pv+Hb9xboLEiIsBLO9RP08K67qxPYLoZ9oDC6M\n/8Rr1Re9+wufto3DNlB4oLPN0yQy3y/xjbLJa7kOuIvUvbzWC5CoLyd3GEdG\ne+qoDkxinaFpTaxNTWsphK5upQedixOz3hnyCWvYaJgPhROCKJxY/yT9+eeC\nPxc8\r\n=8zBj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPfBT6lDg0QiKyota+S28yJwo/jMw0rkvTZ2KDhPbu4gIhALcmiZa0njU59hzhdHimJQiz7enh8JtRNIJMOTMKVK5M"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614734424000_1614735345518_0.34050210443407036"},"_hasShrinkwrap":false},"1.9.1-1614808864000":{"name":"playwright","version":"1.9.1-1614808864000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614808864000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-TwEOq+B3WIMvq1FGw9YVzfogSt1mmR53WAaT9G6PlvIaCUEI4HF3+lhsATk3y9VUCqtJ3UqE7+OSw/+Wfc4X8g==","shasum":"7d0839e2ac4176d4f67f43f643c90445c9ac0ef7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614808864000.tgz","fileCount":201,"unpackedSize":6991599,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQApeCRA9TVsSAnZWagAAJ5sP/jZXgvdzDNX6da4zJU2G\nCcapvSGvQT4ad/ihqavFzuKQdAl3GKQgsOjVnr+OkLujaAiorbCjPjNVnmMM\nFdEf4O4k+u7/seEZGjAcKQGE6demq7sQ0A+VnZfccXI8JXliARDdZoJxaSMQ\nu7Ei1xflnZsLIiOXBQaDZsq4DCfnWtQ0wemJlFwTlcK/wwgp2eRjFn4Gq65N\nc45KtLs8wZuzIVu/0J8OxAc9Hqfdzf/gK+ud/91grU118RnfrLtzGo7mHbS7\npdX9NGlsCmX5tL8mM5Rx6XhR6RInNhZ1hG1ICcMT4PtdBSaCS3hpcR7gGUt6\nFSo6SimYVZFIX4WOn75qhG2MYTPZpigVx0MariXmmxhCd/U364hYl3XdD9jI\nEvzaBzNP4ryzcAQMrxNoyUpafkGbPVZmv7i+D9uMejWZOKy4J3h+JBBWzBgu\nDkLHsoKx9raN4EoZXyyPPHtG35b6QtY7K0XCiqagYb6T7uc0Z4n4W66FdNwA\nSEuGOHeX/PtdJbxGd9hD3POhUbj4ZGb9y8VUv2zg98nqzwMA6T1dQXHqfRVD\n5nq75lnB4cVZTOG5C7HVctzf1PVqKSPAyvZMvKYrAkuGHxHvkCk2o+PKcyZx\ndfT30l3NEex110KTyHRqL0AD3B5JmENu8nOhQUXosHL0lDTENe81nVQdzRF/\nPvjz\r\n=nNc6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaQayykCLcqBx2wkdJYLl506IBKepFRNFvrM35yVVhnAIhAIFq9/phXM2xywLM70kCXfeQ1qxW/Dood94UPnNsO2DO"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614808864000_1614809693273_0.07836249936347528"},"_hasShrinkwrap":false},"1.9.1-1614810608000":{"name":"playwright","version":"1.9.1-1614810608000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614810608000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-lw2St97lTsCEeA2ZTNwIQqirjzco3df16gU9ypXb/2zy8w5QWO/PzrEv0aIEMpkfDbT2uOhM0iTs6N39J0Worg==","shasum":"638b246cf426f4cd422ce17ece7faa6a6b013e3e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614810608000.tgz","fileCount":201,"unpackedSize":6994626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQA76CRA9TVsSAnZWagAANTkP/jSPopeAY+bq/D98tSiF\n+NLW0KyGZpKhX5nKceMG+cS9K8Wa1AmgiD3/NRVQS8WUPAbjVBcKpjGv5sck\naDV4V8vCi4P5po4j5Qc20EIBXifO39RcOY9Xk54HyCqfkTGReKWqGfI222cr\nRoPo9q/7NTrWSIZurtsQ9oZkDWzoqMv9Z1k0I6wJbt+nrvzMUkiXm/PjR+Vu\nS9+gvOWD23hrLizcXLocRUNI/CPze+XAwBvIobIig6ZgIEokfDmyueqSs9t6\nKWLDgu4ywjLt0WTGM0h6ZnVWkzjnuiFRrRYM31hnaaCwfj4MWf47+JMXsBje\nQK1vMi6rcI3sNzETAJSxodJMADzAmgRvVgCpIUadIPVZiXWBAJIRxS6JncsS\nwBCu+Y+jS7F0dO+Illazj6d/nHtVj6eQHFjlEF1M/M1PeNvQFRgVt+glw/OR\nDmcCMXTR1U9TblPv48/AcWLbdoc5Rl1S33nebwr/FRJKjuaOPkFft49dg48v\nxRUPnOkzgfrIhuFDlLUfLih9h9EKbTN2of3LLn4pLDbuYGIZdWVC6aWt6db6\n8OmS+XRU1eHOo7UO08S7vJaZo0dnEjlbkijLGfNOyT8WF+AgqOTQWCE9x7Dr\nEm3VzouzrUGGRaI2ddEAB7l4f9Cx8ZQIjnGkPsrKjBnW7VNdAyTjmdKTabtx\nV8Ee\r\n=rKp2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFtDAF0M+XVh9G4ifLhSPj/N995I/QsbIdQcb/TUpT8/AiAXe+szoNj+/kWe+t+RIhNO2E9PjNnqAlGHRSzDpOXW8Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614810608000_1614810873717_0.5824240933617926"},"_hasShrinkwrap":false},"1.9.1-1614817648000":{"name":"playwright","version":"1.9.1-1614817648000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614817648000","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-1nFL3ldBeScypVaJwo1exHEXihstpeOX5rnet5dyt1Nj761zuS6ft2jsWh3RKu/iFsUTQfbIYaPiC5DpI/wSkA==","shasum":"e91cdcc1507b656eb55a91ab7f25ec2c83282b52","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614817648000.tgz","fileCount":201,"unpackedSize":6994766,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQCpBCRA9TVsSAnZWagAA1Z0P/jKvk/WUNoxjWmSOCxhX\ntPutkLzvC6tFeL5S3b+nw9kFLlCxGFAcOGWPiYjKbRmaG0d5FwNsH64HgJ0n\nzeruscBkDK4tSIOjUSKR4CpXMU+mXAi+aFIxgUSfkRGwQZDHSsXUSMFodV3v\nzFE7mn7GEfs1Qyr1LxBzZ+RIIrFyzMn7fa3bZzwGy+slBCE05EDGvyOgf/oi\nVrrgCf1d3ARaWmVTIgdxK1FvD14uVd+3p6vFhYDakn0DTAI7v+d1EJt4ezwV\nSBqF6KCzzffH+jUWTFuFa8Z3xNRTR0dQ6qUmVi/PBAgHLgK2+PU/9Qhp3fWr\ndrIUPWFs9d6a8/9dfr0di3Zcg/uqgWHfCqdZnMKO/sBVKkTu7oQqL5xdMgNn\nSxf7ec6SSAZaazQWs5u9thzjcHanxrmyPboJ2nKUNSE8/sl1tkauKvwJLE8/\nudGdTDTMZxw6EJywLLlkxo9twG9jC25wHghAe+8xOsjEZBlk2Jgjyrdc6YrG\neGCDvGxRGkRB54M2Idg6ZpDhlQ7ylPE3yqg5jh4Nq8Zs+WWELkEAZrp2GQdL\nApIlOojLTUS6tCAPdTgaedyVO3q3NVDhlUeG/4AQTBxGtNA1dd4LROgZexG9\ndVCuc+HTCMuhpmNW0tvP6RRtBEJdwTqwYd4cIoauwy4m8/gTnV6luBaa/b+f\nGFOA\r\n=d4hv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBlJno4j7AqVWI337bIOd3LZF5TmuBDqhP4l5pcJ2IqQIhALXCifIQIJw7HnObWpjcrA/cGf1MwIDjJkN7dsSlWN2/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614817648000_1614817857252_0.2210617519289153"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-4-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-4-2021","_nodeVersion":"10.23.3","_npmVersion":"6.14.11","dist":{"integrity":"sha512-pP+B8Pfe5e497uSEvzNphTvxC8rzAahN1b3GTS5h6GgMHDkg1/WrkXwrCdffs+iYyDzmheCUErfl8n0Qu4TvhA==","shasum":"2003df337a8a7e2b194ba43c2966b75d95751dd3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-4-2021.tgz","fileCount":205,"unpackedSize":7034287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQDIcCRA9TVsSAnZWagAAvPEP/3MUJ5hcZKeWkz81zhst\nSRoAaHuKlYPsWPQ+VUw2zFjMbeUhuEl+cjUP9v1ib7+LEfBkEYhujF+KcWm3\nBzpOsTdsUeTvcWsicTbTv8/S7AKy9sG0EUKVZS+4z7Ss0A8AqBUfcnCKNuzr\ngAbuCp6zyr525uiK7k2R5hIpfqf9f7oyaHwQ9QsKWR+f3w5Mn0YgmgBStT9k\n/FC3zEMJyjTRag+26fz4R7ax1jopgVLi1r3dmTfRiTEgDotpnuxYU2J8xGTS\njyavF/PdGfLc134Nn6WLdG2RwSv71p2HDle9fGmNNHO3jHvi/Xadm9qxTY+A\nnUcvS1CJbsmWezdi7CaCkt7q+UXEuNU2Y4IqICSJcsB6Ere4LqjHcgwN6Cyb\nVQygOgEScuCl8+i+np7il5f1EgZYGJ4HOwmJNZxXeAPZnD9JizRkUpmf3VRl\nNUXqaBDyq15MGVd3m1jlL6Htn15D4zp4ZmOAbfxwX5AXJUlax1qKexw7aKaV\nwYfoIT7Ltin/LWHBP6xsTflkIc7oTZ4ix0hHO5xILOnXUGehGf7SIwSkCWn3\ngVNcNPkN3zB4LEHJFgvoEcbLLMl6fyMOHsb1zFZUr+yJmBE3F91GWlHGobQx\ng6GDq5VpZBKd3XmTcXb0Koh04Fv3j4X0xzlx1er/lVsPF8T3NmUGI2vVPQ3j\nDa2D\r\n=uU7m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRqBF1xNgQolUFVP5kQmN+AMrL/36GgltJuClimw0xtwIgULLNq6qPTDFpft38ffcJ2LWNtv/CBx7xyGgu0lCk9Pc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-4-2021_1614819867594_0.45412076392618905"},"_hasShrinkwrap":false},"1.9.1-1614885198000":{"name":"playwright","version":"1.9.1-1614885198000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614885198000","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-pxrEGjlBvXW8ORVv9Xu9wbQi4XEykghrVhg40cfcNfG8ftM21U/sUzIxz3Z+JD7I0B+Mrm+E4OM0JsBZwSGKKg==","shasum":"1b8818c6abd25d8e9814e514e81cc5bf486144b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614885198000.tgz","fileCount":201,"unpackedSize":6996204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQTILCRA9TVsSAnZWagAA5wIP/At2T6Ag5zAkWHr/5x98\ntoJzjc5arZ7bW/cZuF7JvQ7loS/xF5XH4AROK5QX/QlqagSVIwDUuVJa44Pq\nrDiB1KFSo0gJ8XaDBjU0Gm1Re5SI37MfvTXBVotWZmjFm66UbW4i97y2ANuI\n0XQ2FqbzIjxR/mWDNxMPsEBIC/V/Kn72Wc9i+fCS335j0PfgCPz/peStZYPy\nig7Qkf1fGzFWKzQcSHvv3WVKYGFlcA8bgvlJ3dkV3+gIdYhRjLktjlqqee+g\n1UDkHaF4wabO6jStj+qlwqCcWwQKt7RoQJ4/ExvGAV/9DGSt/17Qh9ap9BCC\npVh1TwtfCq4RvCmmmnM/vs0Qys5/ICOakqyPqZ1fcbwpeFXSrP9I5GV2UMGh\nwmdzReJrvWNZguFUgzYqbexetAlueqP1WQkPepEc4CFjZjOMU0hQ9Nifuxr3\nW8d+WX3ExzfYuwCVWFD2q5aKJl3AR0AbGcXlpBbljpwHAypZIPARsjyxWhfM\nts6M0Fr1JTMrYur9xKUN0+RF/pRruCWubzYYS1AzRONlv6gul/unRJRXsVeJ\nIVeMfhTKxf5HfmZu1al2u1IEBb4ctcRcMj7et58iYwovRky1VUCanPZRrFyU\nK+RcT8E9gIjlioJhIe8F8BCOWwgDTnPrcREeP5RZOxRna4RMLPDSdrqQt9Dp\ng/Id\r\n=4Mee\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBdwwr4zSGDMxWMMMaVXTqBdx13jw5czBHVcTvTwXfH4AiEAtJHnbEyGIgNWV//viLkh7B/XPaJvYFFbYxWhrdEi52g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614885198000_1614885386882_0.5594140766790514"},"_hasShrinkwrap":false},"1.9.1-1614893264000":{"name":"playwright","version":"1.9.1-1614893264000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614893264000","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-kimB2Osbi0mW/6N2UIKWK6O+htVnqSlbEsb1BEftOcw5YRhiGSl7+yhBYbIyYKOCqc8G6oJM/4ulE61WZzOwYw==","shasum":"2cb2d8f4a88bbce6f4668a5bed8808e3254138eb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614893264000.tgz","fileCount":203,"unpackedSize":7024327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQVHjCRA9TVsSAnZWagAAYuYQAIQw4yEnhS3CzwIcpawQ\n8sb7cyPnGS5r7M6ML9u8C7z4i+o9DVyqZKclTo4bIUKZktVq/VVWW5ZjI2zO\nHNLc4FZDZ4/1SOnV+OIMX4tKsxShhQAuNuzEI51/umSKclVm8vJ+fd6XBm6M\nqGvT40ykYZZnwejb1gfxK5edRSlT7ErukOCVJded40Ec7eb2wziiOHsv2UMO\nnUAUt96ID2csmBe5WhqXquQBocCVqpVBMUKmmQo6hFQCC/fDBjNTsY9NFH32\naJPHwKQ6SAg7nhbC8wxnEVVUEx/rdx3fV9NCZS8ugfK/b1zWJuFenmfpoixl\nzC58X9POPaTuKtW3/gctabpDIHB3P0eNmoX+XbIF9EDFHkWMpzMDLvpP8TpQ\nHvtb823QO/G1dFFgslSk0fXMJsFpmSeflzWyLzQJ2eDMVCyqfo7CgnwF+wNL\nLUpCmJF5P3FKFByaWlHwM702+7ktPk2osurNRHMj6PlF26ySW39z46MTUBrR\nVmkhqE4JwgtqXBH+lQ4ggMOysP1CDOPGniyUWKYL/R/24cNE34C6ScaM/xp8\n8iaIw9xKKFThK8xy3mM3365FIe3mbbCPWcahLi2sO5v9tMw3HHoOi9PBa8Ro\nGUMN4DWNyNc9/YZ65dXF3K1ADOpFC+lpV0QGu6lGy6DuwkRb4RR1zywK8ME6\nnbmB\r\n=yr6P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8hkATwZ9ans9P2Z1aqNNN0tLlvXgf3Tk2sEGKDUOw1wIgBOhaBo6kF/vk0MBfjPnlPKijf+sDdzp4Q97Mu2EW/Pg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614893264000_1614893538657_0.5054321039990248"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-5-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-5-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-5-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-aN6CcmRt0WlFiUbuJ1ozXgEdVpDF4NWIhflf1TcZYs23T+KLMnzzMiDGA3AEE6qy4NJwa6ibNh3daOHwd8tIRw==","shasum":"d50f89fd64abccc3d2841c5610bde570fa48c3ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-5-2021.tgz","fileCount":205,"unpackedSize":7037626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQYPuCRA9TVsSAnZWagAAMS0P/Al62IX/Z8dWGhmbF6qZ\nBDegmuX0CcaeRGFCVc2NFD5iW7TCDP0MjiAOqNjwn0NlqICqycTqLbbWsiO5\nBnpnU8AIoKdSX747MKCZQoeJ+65uBXQJZAUistyQ9hcA/cvWsYvgU6KUMUyt\nb49mrf+GD4i3Ytm05r66Tzg52Psn+5QCJXnkPYqv5RLcvxlgApnZZksx++bb\nZvMRuKUykIMiWQc62ezKsILctbMzEBNccrrvjiTB0OfTJNxlU9zwaot/E6tI\nfJT3bAm5w6Ct5zA7HfTGHKHLVBj2p6FPwQcwFf2DpblQ/kYoEFF4vz4G6Uz+\n8pgEnX/85SEvKL9bfmI+IF70AX7PzLawGQvEL9obCw56qjDAiKh7EaoApD2h\nf3TTac6zBEEr+AUxtM1Kq93PTxx0e1LLelyf270AmflkuXn33+9MvtFWimCR\nOOh7uPj0tmID6U/7wNtbdIeEiBuEXNTyCBJtOU1aN9s6ehJcTenIWzVjI77R\nst+RkBRv2kYQjvdE2lh6UJ8WKxSL098jbE/2eEAXXP1eqwoKBhDl81SuXTYS\ntKLNSTujH2l9oGddgztnSHerbjKFRYMsTiCv0FiiNju5RkXEFtjiqE7/JhMk\nwyPmBXq9+guOuQrGDd3egyjGtMiPAxGajvcATPXL2+PnYkKq3q2v13KX43U2\nLjGc\r\n=Ra98\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4IUbnR/E/N6u/U8JRuJsQfNjLVWw93lzYFmfUgDEUCAiEAm5rIpmRNWYzuhbRMVE1cBGipApdItKE7i0XhVNp6Ez4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-5-2021_1614906349866_0.2201050035496066"},"_hasShrinkwrap":false},"1.9.1-1614982623000":{"name":"playwright","version":"1.9.1-1614982623000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614982623000","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-lvTphdaq2gcNY6gaaQPwj73dPMCQuc2LDcV7lFjGGlONb+jtQGlPXCW24NFc+jq9fmaYBMEA2gQ9SlKaUdVS5Q==","shasum":"58b89437d09aadc97ef09ad7ca48f1c85da1c82d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614982623000.tgz","fileCount":203,"unpackedSize":7024269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQq6aCRA9TVsSAnZWagAAmwgQAJWiIlbqlTPEYaaogzPx\nH90rc47KVL+PxDe/4U311NAaFHx0IhBOufUj7ftfyk9+3HkNn3rZWKqd0AYp\neS22geT6IKXvxhaWiA4zWO+Fyp8HvNebr9c6WMhmqv71rGTSCW6lkkiQbYnI\nVTWGVXj2k+DAbNVE0uiBoGoJ6j94RlBuRsaaXD5xWOLtZ/Pc7LXqOu/4zFBU\n7dTGswAHLTXFYSY8st4XbYPjmlZhSOoaEXioNvkQoQ8FTjxwLfw+TBsCveDE\njogkjt09oGKQDOmZoDzBKuZy4ji+LG3TDaC0lui5ZfFVH1gB58PGCqzuegrA\nUOBTNXuTM56/5Kj+odGBZ9qnw9gTqGiiIo83HLfKQwH8R+blzpla9P9qyGeo\n4LQEdk5ZkywLpGNzwbR0qaFdjlcg+C+B2AJupUwmWn6YPKUDpoLlwvS7TGlC\n4eWEIfJGpeMbPGPbFUnyMGkgktCAhycRueg37vIk/yA7GCV+lnTZ6236jmkN\nNm8yXPdb3KJE+cEzaLpXJnDbEwvpTQGfzNbW2f6GGJIrRugGXaDFd3RU32yM\nbg9CpuiR8aLcQmtP2F5urR6NigZ+lURuEGYGmM7h3hPf2ZSYpPt+Uvp7Jz6u\njl2DnnPLhYqkD4qxLTij7ZWko3l6EbDSKDKUsm9nUg2xHSntrVH3dkHUhpSM\nAnVa\r\n=Y3Xb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHfjHWEba2WyTYbL7/8mnG0IhkIGgcd3eWyoBb8Frn7sAiEAnZRgVy+2fp4E6vKSXtLW4qTOmmk2UnpA4oEZ1jIAbUQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614982623000_1614982809549_0.39481348217392576"},"_hasShrinkwrap":false},"1.9.1-1614983396000":{"name":"playwright","version":"1.9.1-1614983396000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1614983396000","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-SxxSFbHGCau5SIg5uO1jC0mHkGv3+7nw5i3ka43KRLv7oEhH4NVjYg4zCzS5G2r1/2pVr4AZfcetZcyr5ThLwA==","shasum":"8135fd52c74542195d0c77663e2bede1d09c7369","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1614983396000.tgz","fileCount":203,"unpackedSize":7024254,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQrXKCRA9TVsSAnZWagAA/KcP/0jWuRDIKYLqntuRbgOD\ngyWdiMIqb+kdjX8S2dHxTh6xFZU/DxQi817fJpZigNS88hOSfMsgtnbxUMRR\nr6soeQiVWEMDAeg2ljU2uRee8GWGZYrtaEHTkaaov3leyWPQ6/0uw2RIZhkU\nU0H6gZdRewKLRMQsgudQd0PJoaDnSw66fi4RPfcJ1tS21+IEdf3TaK+UeVsx\nGrZGW0pBKL63PjUFnAVdXtLHFDBFGb8LpqcdRJUDk3+w0SxIkGN5jKNvB0Cd\nxBDAbt5lu1muKMvihs2EnSEKqxoxzFgTf0DG+LbKRDK4LYGOz11r+mQCq5p6\nrGccazsaDbQiFHvXarIjptfI4I5+p5yHAXQ0HxPiEAAjsTb3TClYQPAOAbPK\ngK3umYgf2EwNoLcxGJu68taY42ZEmho6Rjs//xRNQxm4DtyuyY3rQHY63Zrd\na5Quim1uYrE8Psdp0i5cXFaSWgTqS5LYSzxkU5ad5QoAj7lYNzut+JGM4+UC\nV8QJyRXbGOUe3/i5A6yD5VDBXBx3VkR7lBioJCCB1oMXrCUjLoABN0Tq6oPU\n7Razc7zyhBUd203lsCoUaSDRKs3XbgEqKGKr+5/YparrO4ZyEY7zsjoNs1Kj\nqcPz4ti300U6odwbXHejXh531Pd+RhGTG+CpLGTR5LZpH2AXakRoPdJNHeSX\nHl0t\r\n=9YUh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHpXUWODFgXGilDzB2oRKa0wt5+Lpm0nlitaSW9+xEXyAiB1g0UxeRRCfKMRwOU/VK3bpQ7iRIHqIFx4RaLTTWxYkQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1614983396000_1614984649634_0.2928104207858009"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-6-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-6-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-oEGjOWYzxU96D0U8BIp7c4fu0tCFCw04ikDMeBSiV/JWAiuw/h8j0ZuUxxKZSr4AV/suj6uO5bHF1b9lv8FrsA==","shasum":"54303be694459ae658036b2e8471b1fd9136b3b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-6-2021.tgz","fileCount":205,"unpackedSize":7038240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQtVACRA9TVsSAnZWagAAYtAP/jA0qwWrPohBFmrWB27m\n4zVSn03VszsedbFVQQav974EEg3momt2TCaRFNb5+chmefobF0syOZa3Tc0b\nCY+GtTDuAohuIeIaKUwSfhT7+5zy4G3d4AhX6NEtAeTPE2SJVF3tVAIbeJR7\npmz4k0wIYWx8A5fp/iT7AimpMQ834He4KDkavfFeKsptwz/3eVlftIUVelFs\nvdcIkKz+k+IiPRKtkpAiIQ6DOyliVlgN97iTieT0i+A/h1HwFLiJmqyEee9k\n/oV6mjsl+YmIjRqh5NBWukUogkgdMSlRJUkNJU5aFcg+MYEWzcsX3Xr3nSX5\nD/WSjAvyTO8c32sm9OEA+4piQMcD10IKOVTJL/st6OudPQQGP4gAnbV4a610\nkMW+kNL2FSvoESpd22OpVOhBWQ6N+Nqx0oJwmnujaaylcL8pqZXzuwr9FO5+\nsxR5rK8RPSEBRbQtEyNztM8jdTCR0r0GdZuRQSjyBfXwl6olTx0+S+lBoLdh\ndlpW4zNJT3hEWsktpaYpdSuYo3MS/sIUpx5EosbWqa9cpmyBj7CGZwvspTbO\nbvtz6kg8H6Fm+7ExBwMDl9aEAGwzT/LAlFjDg3VKT0inT+HNFmXwhdPTr9vw\nSz+AUQtqnuQPJ3DzuqrObzRr8sjU+G3+jtTsUt0pM8MvlGFfVfJuwdTnH7Ja\nl0e4\r\n=ZrPq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICW/P6/RjdaHkYSkngsW+2zgMLah2X0x7o0123sgihy7AiB3TV22fA4m782wtdsb7kWIgvQxgIAHt2MTLIDPH5N6Fw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-6-2021_1614992704158_0.5317053770279163"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-7-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-7-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-7-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-wpNDrBj9JflWs91dhu2O0jZolz0rvifDC350xZSuChAGnBQLTUj6vO1aNGodOSD+sYCy2IjkrZcuQ0qBozeCKg==","shasum":"88eaad530ee10cf6ee72e62af0d0ebe22f8c364c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-7-2021.tgz","fileCount":205,"unpackedSize":7042223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRCe/CRA9TVsSAnZWagAA7agP/i8ivqaf8Df0R/4Hv3Ts\naSaBFhatlWhB5lrsQ01qyswxRjQ9Tr2I7mmT75LOpbTDla6HFpVhzAp5TdO+\nsWqFVNo50dZQ3Kapg92ONloWNxCZM+vtwhT7emL1jDNeiPPy6yAlIq6i4HeR\nbhaVz1jv7yA0wZJGlgFBRhv//clZgTXJiWb1tXLf0OVlZDYSjLPJu7GdMDeR\ndFZHnvtvBQUfhfu+MDiDSbXiCI9h4M8So7hqlnVSYqUVDB9gv0fH8ks14kaL\nwqjfmlfADl3NcyLMRLvWZ0JsciBGK1h7YQsBg2vVsjowOM23k6GldzwVUf/O\nz6BfcjC4/djEoDbW2W226vlyaZBf2o4ZCohNTVwq+vkEVj1Js66R8XKCxDq1\nJN5UE/HiyF/xjTzzVPbzZaWWooz10MgwxgL/L0/4oancqnfwIhGfS8AoX/XI\n/ersukb9dvU/svmWvY1MVRGTmNhhk1sW2HYDPDuoMRUyUySALfPAW9Kk0zRo\nGAeWXsyxBTQj3xBgQ0vOKvsDFqCFA5lR+9qVKUSSNULDgYZSLzfDOUWe73Xh\nSG9+lXV3rOBtPwDNw1Bzt7RDkRmYdrS55/tOOVT4WtyaGHaoSfOpEH5xgzV4\nYA1dvVZAr7xiMu9IuZxyzWikVoJvgs1geY7RyaQVW+Qn9rW1SwHOxzyypLqp\n7E5Q\r\n=DaJ/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC3KjZrxYu3cRNMrX1Pc76tCjM7j4KsElB/oJHdCk51HAiA0b1oOqyIelnzVVA5XrQ5DwUXSnpNAsBd6Uag2atgybg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-7-2021_1615079358836_0.549595259613062"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-8-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-8-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-8-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-VZMcAEAOISXNiccMTD5+D7L0XlihXUXbebaFZPDIyxZGUcNcg/qmtP9zDlG1pms3tchS+902LUSy7jp3vaeUqA==","shasum":"6114aed4f5ec44ad24f106bfc137e86232e2b684","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-8-2021.tgz","fileCount":205,"unpackedSize":7042223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRXiqCRA9TVsSAnZWagAAoXUP/1azXsFJpb4Fj5S5bSl6\nrcry+vd3zHfJ6HAbKtn+cTmMkwT2jrwPCCROJ+3uSC0m0ZMjfuWwqxeCmY+w\n8rcNOAmHGFITe9lhcKI2dKjGR2JUx39Us7ePkQJgbmrc7AyzxmWt4KHwzraa\npIwtz0jxVh3cG2uef1bhwdxSJHhG/5f6rVWgVMfc+8OWy/n+OilAWU8Jl8eU\nH2VJFWsjRaYdoMAn2g1mrd5pKvGZ6r2gkF9KzE9Z9qpfPRfNXtf50nWjeTkF\n+ffauvcirJPzum1VGpiymOvGXFI0ofJym3UFkHRpSIh/eVMEnVS+dnw+InK/\ngARes57PHit9GW3ppjOp0Gng8TF19goKEpy0enao7j+TAvQns8W7EsJNFpbb\ntJPaRbxQxjg2kVZVu0sLtshwKdNTjmI6nvc+aKQbyCAq3K8n0NzG9dsdNpsO\nPNeOhaKrzZ+dKFKDZDYYiYeA/DVypolhcAGxh1JrYMCZJ5fD3Ep0+J00yS/i\nxyV+MvvkgNEPkgCJrt1jy6C269fyvsm9DkPlpLPWas9x9ToE0V/niw+D2BwR\nNvAzZqsS2Hjim52d6j9YGsNL+6UeeoxX5/8zB6CDh8R2kRg7RzdSSw2RkPqQ\n7adTqTM8lXpERUjH4xsGvkeMqqsRY7rUcMdYGturhLnzQKG3o56gsRP1PxmY\nB/Ry\r\n=kKLp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpkM6jV+8JYzQludkXYF+SfL7PL34kxY5NuNIQTXoD9wIgSF95wswrz9Pz/23awbmhxGXGfwlcQ/TDthQ8xVZJ4oE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-8-2021_1615165609543_0.21817787236275654"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-9-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-9-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-8HlhIy6dZ1WtcfnkDZWgc3OVas5zfu6rXywDEryw5dENljJ2PNNn6ZPQ8ODaBVN4fG3sbKVHobDAoOYNBWXkUw==","shasum":"6d66961606cc21574ccfb93b19da6cd561e485bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-9-2021.tgz","fileCount":205,"unpackedSize":7042220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRsn6CRA9TVsSAnZWagAA70cP/11s3WQbIi9VvSiDICq1\nHEGULFXTP05zQd8HLnZiWLTUhR5MWFx7RywXwu/Q4OwDNtLQK2k7sVCrL70G\niC7mx/QKPAbfALYqmQP92FHjKP5BdvMc+8HG+iMe1CsIIBGbtq9rIbB6bPf/\nZF9Aj8udE7oCygnM8z4Umo+6+GP6P7VfnbQPBdBHZFd4mlspa60D+qNy0STi\nKLXQO3lO9+Kyfu/Jb3GFOTKfNTzGGsPCXxGl3mAnIQtwDLqmWvbt7ey6MWyV\nI2Sg2DssemhII36hzj8mpOFSqiQJk13xvcACO0tXVNjkD930Lw4YeJ8LDkKN\nxWAyFpkWLz3hNzxiuPVZjOgpwvYPBrxR8CzgPTzBiQHvdZDRAPG7K+fjaR2o\nYHBH3yxvIGJtnyPiHDr9EFPTlc5+UB0Fy3qRN24HxWpun6M/Mx34dZJ23AYI\nmL9euEmT6UO2kcfXkVUL0UltNhgtVf9RV39gxmtmUTqx2IIIBfFCMcbSlXXq\nVrlDKv0r1CVvpqcCkphhSn41Du7TDmL1JifUstCC0fnMoI8LfcpOm1973XKN\nRoNJ60+X95+oUP9M+41kcJFYjhb/vIeCLYCxVCjoiI9jYwCH9wZdr+BfzJgv\n/jGDF8kXO5zMAAxWjPFZwgqT50Ufe9S8IBzRctU6V3OnvIewAzjB8BQdRgfO\ncFCo\r\n=d11q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbiWxyeWzXolo1WT8RbnT96XDgwfgbJKK7YzJkeSaOCgIhAIx8lgQC/ukqyOIGT7wYl7LtH+TL6XHEr0Ddz/oe8DQ7"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-9-2021_1615251961947_0.6251338956301813"},"_hasShrinkwrap":false},"1.9.1-1615324434000":{"name":"playwright","version":"1.9.1-1615324434000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.1-1615324434000","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-pD8Ixph+JlSSNRHXryDXJCDCOUnN19v+trLX57vnCkGhV4a2vadzAJk8l2yGbBFQATIYTHcoShNGbjKsD3/x7Q==","shasum":"ff9893a9f5afd2a712e63e4e9bdb57098523f790","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.1-1615324434000.tgz","fileCount":203,"unpackedSize":7027533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgR+XlCRA9TVsSAnZWagAAVwAP/iCGCJ1dwiPVKNks8Tnq\nZLfomm0+iufJxwmx4YvS1IJ2AYgNJg53zCWQGIYjsYW+Z2sHerJ0pf2B26h+\nRufI5q+grFrtidj+M91FK2Be2IIcRx07jvuS7d+ZaaIJUl1aSmNPeDVHEe+M\nZYOlNn8S7bt/Ax0e7A3HSy4CecoCabY+m6pRBVBunvO1/xRIr9+JoQCYCufO\nLAWU7m5Scgf+Ea/5mO0+3hnGh5D6Ea43bgr/NSKlFmngEBfLm0I8pFRz0quX\n+gHLoXUySdJ8hVlDKzAQxRtr0g8uysvEwyL/zdaa3FZdIO9xaLYFbZ+Atv7Y\nC5uxG2x4UgRhbWKk58t09gQStdrg6Nd3ZIgVS4xgmKgRcmfamts6mMUXY0gU\nVbNVj/RKXY9hQh4hGOklksuQHwyao7/e/2HAj7zbW1QGo/aNxZIG3KD9XKED\nPweWn+mJQq9K36FllEkVN/nstZfeddufOysFRD1CB+YgWiOA1Lp4za2rgmR7\n3LSiZGtp3z4wlBj7QfqhqIn6rjcJSgif65ZbTvBv7uwctKAHiq1tN3QwBVPn\nBHCT3kK8L6NaofKjHjDsrpZS2D0890d/LhVZWhh84n4hQKzWE0N5S5ZIVuBC\nIrZz1n/7FoZMa2qodBWAFD/0w6tLsxoDbjWFWoQ7OYWGqfd8peMYvUVJw7JO\n3V9Z\r\n=pu/y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnahyJ42ZWwMvat+wXT0iX8yN2xKbAPq+SD67xxacBAAiEAuuel870JkviFIen/4JhbrPwN7aRHct+wFDdU+2+FguI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.1-1615324434000_1615324644737_0.9457790830174104"},"_hasShrinkwrap":false},"1.9.2-1615328067000":{"name":"playwright","version":"1.9.2-1615328067000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.2-1615328067000","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-ezkASL8LK6ha4aufTospc3QQY80GTXTPpB/GQscFBFpl6o0va7hJOXpMQXfnOmns3JD/PyNgKApg8GBraHi/gw==","shasum":"7b2d2c7c2efeb443dd953b24e5eb9ae7e2048a97","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.2-1615328067000.tgz","fileCount":203,"unpackedSize":7027802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgR/ZLCRA9TVsSAnZWagAAQ3MQAIYT/aigqxoJiRr4ty85\nKkL1tO2cAlQgHl7LnO5fE7EylQ+P1Sfy+JLN728N+Y2xioUTGXQ9Z75SOqF8\nI4jfeLDyQUazhXWoLGFyjKv3QaR+IqHN994kJs60Kz3GDkjtdzM2t2tbq0BV\nRU+5AQps6qYnKL79tOHVe0mK8f6HC9GLzMllwUut8eZCqCBwLEJkaA69fMNs\n9WpoozYgWKFARIDrMCA4Qgh10bH3oWWgMeHUh9nwPuET86P2rSRZcUk19FYY\n4HHl94f6VKEukW29nJO+XtVLnn2DzjxRQ+VTr0JTOlB3t32fBtiwHAnztG+v\nwRB8/AU1Bbyr0S3yqIq6y2TtLbTD2niH3BWe8rrsqsSM0mhhsnp8TqAKtRIU\nq9aza/izjJ9FLEwRxiH/B4nCLtby+vYuGnYK9kn1M9uDhENla+7aRiX7XYDt\nsT+jIqmS6il3/hltoZWSkjiZVtSfCPL0hqxkqML/n8gj6hGVvz78ez6KLeUY\nKqSlzz1zwqIOzl2ZKu2+Wkck8YytOQx9OO7i3vu6PCJeHbrnyc4FISfwHVzH\n8nADUxyrc7Js5DylG67l+T5/+Ts9ue2ReYV1hgnb5Dsd7nAIymHf/sr0MBwi\njKXUyPvF2KdAc0+IJsMRrl8L4pkqwXQh1m3bRZpuIL+e4Shjp7A5xbJln+sg\ntgSz\r\n=IEJd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICrBKQYALAGfTIWMq7P1O0fmB+GuNFLRdKgW+8xVSFFGAiEAlZLiqSofFRUCz29YQkqVMnGnuK3wS0LrXz8VzR+0qSM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.2-1615328067000_1615328842358_0.9131966747682321"},"_hasShrinkwrap":false},"1.9.2-1615332311000":{"name":"playwright","version":"1.9.2-1615332311000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4421.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.1-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4421.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/#?path=docs/README.md)\n* [API reference](https://playwright.dev/#?path=docs/api.md)\n* [Community showcase](https://playwright.dev/#?path=docs/showcase.md)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.2-1615332311000","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-BpqEqzpyM0U1UXREZYBMI0A1xSpRJc7jB0y5z8BRHOe0RGw3oCKNbHv3O048qY8cZeWc+lVEFlP/3eyY2ZXCeg==","shasum":"31b5c9968eba8c73466a3dc61390b95cdd2cb0d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.2-1615332311000.tgz","fileCount":203,"unpackedSize":7027905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSASaCRA9TVsSAnZWagAACZ8P/1i0sGvj3QZz9ork9k5p\nL3+yGIjBMA8nKZ+s5gAXiIWJVE+xUeMm7il/BDRbmgHA4GYILFoLPcxaW0jQ\npEbY9wNWehfnbac1jg80iqhMLWXL18Wpg021V/30V/IcxSSQoVLeEIFr1KtJ\nBosnoBn6q87Ady4IOaLzI9QqU+4PhVitjt0dGGx5K0AjQSZfLZMRjIE5ojO5\nPgtU+NeSpTJIezUA6F26qkzXJ4IXr/dR2exLq2KCNcZrxoeFPjx3FHumHbWZ\neOK5fpaOmNzSfuppguLwGuFehWiOD/WFAudeAVPIIZQr8M45rf/Ua8QNfprT\nbTiPQyGQOF0K/R9cispCoNkXEXwvYQkSrUJcyZLtxQXhcuZs7rclLEBK+jK2\netXptqhqg50lg//rrhRfK3Zckizgnfp5BPmlvNUvIS8zx+86VMjn+O5h6H85\nF57uwvmhqlv8zOgMb+aFMX6KUpl7uR8AYzTTrZEJtU4AiQEmrpZ23tZt9MrD\n5MytUx2dgMjV+YB3ho1L6IeeJbu4XT9Bhu7eTlm5uE6CHHwpPj0fC5/FmUoF\nG9Pe5dmDOmMyOxOhVo8LJJjSOAo7Fj2azegq65PlZ/ViTyt+X1tSIpXj5Ui0\nu8SYZDb31wpzlCT8phvXXXrUwVN0GHcqN795+RMGDnFbkkMLFyyPTv4ATQWq\n2DLg\r\n=b5hE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCc6XBs19go+3jqK0518uGs9IAQmt0spWD3bhwx1EyFLQIhAIruNbW7kDUzo2i7j5a181zG7mYXYddY1rAF5H7/sIg2"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.2-1615332311000_1615332505286_0.36220599243709306"},"_hasShrinkwrap":false},"1.9.2":{"name":"playwright","version":"1.9.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.9.2","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-Hsgfk3GZO+hgewRNW9xl9/tHjdZvVwxTseHagbiNpDf90PXICEh8UHXy/2eykeIXrZFMA6W6petEtRWNPi3gfQ==","shasum":"294910950b76ec4c3dfed6a1e9d28e9b8560b0f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.9.2.tgz","fileCount":203,"unpackedSize":7027891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSBWNCRA9TVsSAnZWagAAyioP/1Ivj4dipFkgYzDmAqdL\nG2EZWuZCFO2Tw7ywWk/aCcrtbN2hv/abDwR7qVsHTidYj8F0ebDK0UReK7CX\nFjxnZmt76VcWEQlorWr4xv3+gNlOcj7wdrtimYHYwdVjoQijfrAkDT9TWBGg\nzIzjoyeKIA5Qz1dKwQ63XND9b5Q7oHTK+klm4xDsCE6P4vC0FDB9+Ui0Y+Gf\nbyxwdzhFfYG1fkrSvSIbMvEbHw5PfvrHmqqcOCa+zj1BC70RZ6H/PkIKAhzO\npOdD2KnGCzuhk+NkqNEo9fl7Dnj45uOHe4wga3HxA3YviDJYAIYtf8ITNs6v\nuycLNhA3JXMhN+IMe97vZTOr+LW2NoILx8dsI8GldnXj6LP+1touXacmeDy6\nKPoPRRWhm3KtW9ohNk+iaMRB+0eGyz0adSeiB9TzFaejdOaUZt0DbnXe9A/H\nJWV5OB16r1UQeeo0AnOlNiWrmKN4hoXjT7ipmUT/MVMEliDlYHgQHONgNexR\nCTCIPX+wPJr3egFdbDPebQKbUn4bIVADrwfPBRow6EyyNsYkzLCr+7+AFyOD\npnuIkp+lYJDyk7jIfQnWBN3AaSfjzybiYp+hHPeyJ+9rHXacHIbG7K5LBr1y\njGk1PahDgil2JnRf+7dY7QtXPyIIMC6XY5J5mUZ6rVznkDWumbnOKvYPTphl\nSltM\r\n=rPbS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7uwtjkfIDK9/9SAwg2Zb2kNveCf6V6waooEWVJnTg1gIgeWwTIM3cy1YJtEN/V4msoVxfnSgYpR3qI2GgKsa9mrw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.9.2_1615336844844_0.49684033547611905"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-10-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-10-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-QmcCf69y6j5IHTdPztl42uht1hOm5WVyJ2T9axCiiII0lYRGhn9rSa4EcJRfHWyRHxiQDcMkxhkZY9+CzKGyEA==","shasum":"294e9fb27dea7f1ecbcd132e0896c794208975e9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-10-2021.tgz","fileCount":207,"unpackedSize":7043092,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSBuWCRA9TVsSAnZWagAApBUP/itowZGzmsBC5j6qqB/N\nnbBqjU/cgc+AyNTEYT34B5mlTIEWqiNk/X8Dv83peHojgVXP39FcZbq59Avt\nkLrrNywVIo10kaSg92fmp0Q6uwiKBMRYVLoz+ojne9vjmqKuM4d7eGotu1Ox\nupy54TcaY4eaB4YwIghDFfddNIESNhv0B8b2/UOW4LldZT6aq8/BT9tP4kco\nKHa/vP8q/MZheG6V/l7ANCE7FbwpUqSRgTmltjZlZXWiF5e3gHgc9hF43Plp\nAu0nwwaYhqv8MCiweLBCjuNqUmW/PNMNHhElSir07D828cwRhNCkRWLQRoXI\nABgrRt54xcFq02YHF3x7P+WBFWsuuvanAQ0zBE7jANCm9y1hmIDjCq88xlqw\nisqw5mH51QnNEnZ7dY0/u8cXIaRE5BdJVQEVz+VOEAx32wr83tZivZUbllLf\nLlet3MRIxGXD2r8CxgNFAKNtqXNNuDDZvAGXzv3Qpscqv9R4zZpdyyVQUmNK\nRIcc4ne2f9HGDzy/XI7xztOAk647jZLziZPEBROxwv1hZ9h8W7sqSbSjUxtn\nyhbn1c/ow4qp9VrYl6VtmA5NLk/RoWZ5cwYePtsvNK5d+n4mxb0e6S3HG8i0\n+WiBFAouUjg0yEbJm7onj2Bqpbnzeqnnh5xRmm0l41A50fTE6jjXQZZMoosR\nSPnt\r\n=PQg7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFLoTrI25OtQ+S9ZJwn9jrAa31qp9mrQH6hBCwydRT8GAiEA/pIRYTnGgeKyzAVVObncqwsSy2FjwWCobw6b0Cy2PbE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-10-2021_1615338390145_0.1997863150264989"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-11-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-11-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-11-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-PN6JgpOHLYzc+EnUrS/cfY8KcRBzIoVEktQPeFX7bwBIOdTbTh69MmK7Aa3XzBAY5BrOlK2ckCy95qwVDxR+Fg==","shasum":"ff9b98f45c7a17333ab2db280fda75fe3a95fa8b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-11-2021.tgz","fileCount":207,"unpackedSize":7046325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSW0JCRA9TVsSAnZWagAA6dkP+wYZTtR3TWksLILR9+2L\n+3qSwNUo6qTpXlLeQi+BnOjC0Z3dod31VfRry3jDhP4TfW5zffCeUvqYfCmo\nNkDabmI20+DHnhawrYbv8pZkvEli0t3zehh85u+wfkyjZZxuRDLHV8W9ZTNW\nbFwyVi/VuusNILA5M7Rn+K5WSk5JaTWXo10/xG/ZuJV2+HA35QZ4kGTdKw1x\nulaAxTNcrGJ1XY6QPYCUjul7CLkxUmQ1jFkUobqJS+xm5Cw0BE8EiZcgOtZc\niaWoB6CdCcnzHobHHjnjaU2JN4+MELJirkvBkR9+z9VyPjNmikjxZDHC5nmd\nxlGssaq8/p0SwOcTBGkERU4FYfmhEV0wo08/lvN+crkO5zzWEMxeIMQKa3wj\n3RACygxJSD9e8lWXwKySN3z5vkqTk7r3ESJK2YsylSTbYw/AnQtyEteqEUJk\nLgIUu1qjiZwo9l0Ggzr9EMAyk2Qh0mCSqr5aki2daivHFJDsS5kQzvuQKuyO\nQlHUvnBQ7Fw2bVTkcoymjSmRtxoKFrrGJ5w/iySDn/hZ58j5S0hkLRrtuoa1\nYl3Jc4jN9h2IWM/dIcg2F+OAPpBABySoJ98Alk1olDCwqKPRvMsBS5yJZNgQ\n/EF8Jm07XS3SQcNV7/BNSeq2WMG37SLB4MaFPqOzfP78cqSBzo/lawq+3h4h\nchm2\r\n=Wj57\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG4HJ5K2ZQj1laayCmOSFOhpTzAV8/Qx4qqfU90JN8dPAiAK3f+gir+RSZqyiyPnafHdxmfxznkaVu+VKkjzMY1QZA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-11-2021_1615424776763_0.9045072742366178"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-12-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-12-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-12-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-yqT/pCPR2mdgRswlk1a89RJdMDoqMufE552bti1tpuWEz2BnLICYgSuPdEFwxeQu0JiGyLnMS8lyJiqs4QliXQ==","shasum":"7de02455d0646c1bdced2e70c3162419346a1edd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-12-2021.tgz","fileCount":208,"unpackedSize":7071840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSr7cCRA9TVsSAnZWagAA4VcP+gNXAtxgopvhUpsZc5Gc\n6KlHDeuRqzhx2Hj2ygP0bYQy/lHzDSfcEi7fhWySIKA/7n5Ve2XhsnLw/VDx\nLT1iSx4ze8h2EbdYBqU/7AmsjLpUmilZc8XqhB/wfvTMxpEUiuZJ1KS4Iji+\n4BVO6CJ1mPNTCFQvuRIEZsr3vUhDBT31PJhTSX8XHVNHixkMGBfTFwsf0V72\nIfUJxD/jRO1dMD8l6PI0mLlqk9FdyEhBewPxkbAUjhiEviX+cHHuTjmtuZGN\nW8YhtXzr+sq1Mf0SH3yaKGxNdRf/mSaYubqN5UtGfv5lh5punXWZ0yxRPysc\naLq1W75ql1fuOSxTUHCUnTjKIlAILDgY/OrInJBYGjYt+xSYWQDsc/RLuAz8\nP+5nR6kSKqyArAhdNGpp9eJarYtO9NxziiHQodzTD7jSlHzIMFcjaq4o4X5v\nBuDO6etvrvglPzvaoXFsEaHS3+4rCAHyq5fVL/pBMQkKPvg8pDtV2kO0boNS\n70vzsijx7SgxshKtFUb6Bz3qX2vRloitAvZ2k87YJClMbASB86GHaEiVtG41\nSTIYfI2qKMtA7UlfM7dIKWjswSTPDOFIhlB4I4/1Ybp+gqOIAXS7zmbuVGbw\nArmSmolrHlZOHV65ulIeR2h+HwFzJ9Iu3KsOLdJhETtq0C3iugvR+N5Coluu\n1vD2\r\n=jPFk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTIAzWuPMeko94gjfnue0TeKUOPGTxp04iIhwlxnCxGwIhAO0v+b33cAkOr1UJHae/HKeSiMWPSdukEqrjBIfB9kEE"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-12-2021_1615511259034_0.9099636459656146"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-13-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-13-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-nG3MUNNnmi7OsGg1JBwtXFgC4NuS+YIBX6zusFKQbjHTodelJY2F3Fb/ZLc0knsKbG7ahP3thhZyhNO0oPX5dA==","shasum":"ad2d6d7fa81d34ea81d0ea5c501f227806efac28","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-13-2021.tgz","fileCount":210,"unpackedSize":7081321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgTBAMCRA9TVsSAnZWagAAhZQQAJb8RJ7ECEO6xQs30j++\n1pW7RojF7JxxsG/vj3U6soUl790ngm7YpZa2cHM366Bx+8xic+izKv2W3N9w\nePRfcDU7Kx/Jrg5Dg/K7ebbDqPtQh1F8ZQcmuLJTAW1tueWXEXe2OnKkKzt+\nY7kNaAvAtW4Mo91CqIrzBhDlNWo15FqbbElQx2r69UbjtXg4Lo7DFe2K9Pz/\neDGkABZ4zsUKH0tXSVbu7oHYHPFvGZvOYJN+Yzhm+MmhlSbA0SAhl2ixj3nQ\nzvsP+c32hPEmk3S+S67i62I0k9WwsYghziaYGy7CjIlPuGSMcZwlzh4ELFGi\neyVwWrbF5FYQldtfMVuEH5UEpRgywrHHImQ8ZdXokU2WkkthE7Gr6qXtRDow\nitlVxEhOV1XYDx4fgoa0YbQ2OhCi5YipnDbJbDhd5C17Odh0hUkcdIirDtFI\nDCYOznBmlPJ0+GcvxilloyZeNgjUbIMdh27VMrqUx56nUu0vkPruC0/caQ3K\nYhDUdLIUAyTbDE3J193EIjnCAuYtzMAT0ul18q3nafDk5AbuKM/K6SUwzhf/\nK+SWqKklht/32bdhXMiqqw3yIxVwyAB+AywgL+MbWeFASj5WhBSv7MspT1sg\nbcvwu1Su4fGKerM7sYzSi0qefyKZSqT8jeM1i6wRU0m01oqQHiCl3emxJD+5\nPAW3\r\n=aEYt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV5jjH0jZjS+DDDLj303CL7iI93E1xWyFhicpOiQP4mAIhALO5Ah9bxosyLJyGl0m+D+XQmr2en875dLaoD/EUB/5q"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-13-2021_1615597579444_0.9361527864549049"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-14-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-14-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-Xzf+DdF2pMeAopdrC7syj6NmEgqSB20eeOFV02mjHCy2yf1KGET9ON+4ezcLfQWjKZT8P9r4XSDV9cQq39CzWA==","shasum":"c12a353ed93dbed5beb37dd123ec8478d911e73b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-14-2021.tgz","fileCount":211,"unpackedSize":7086787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgTWKHCRA9TVsSAnZWagAAnQ0P/RcyAKk57IS1SVOfzsr4\nnLljnKIyfVT6zk5nKRRXTIuvsndTjhimCNTEUqL+5cIHUddq63UvwYqCQagV\nUF+EDMxRbOR9xqzjya+weAVn8DeUP5R/H0iQaYM2cwrSERI28ExX2HHGOdCe\n2w4irZHYVJcvNIHFCu5zxBmyidSx16Aj4MvCv17gg2RSIZQcfImMLpYdOvQH\n8sgd98B2r6cd7jH3fDIuaiX7aEyCTncPXEjHDgHEtAV94OFWafffQvYAJZv5\nzCRbOehMyg4MpPPElLWgeO5ubGMcpg+X7ZfA2XWArP49oq3gGg5dJSEX8mxh\nFR/KNB4Y0l7Ch1R0kGzvCb/ZaMyD6AQbMZkToxUS0ru/Rwkj9UXxxbinkop2\nvuWIuj9xzTQznQ722OnyITh6+fclyxTs6wDrF9q/uJlDwNvysaCWiKOxMi/R\n6S2Od8Nik2/NiHYV8h9QwV+W7sr9DuLTNdMFxheGKnQ8Sa0m7iQXrkr4qwxa\nsL/YvA99MXcQ2ROhUADUhJNaV2+1rQm0osbeabFh8rbsY0lX7w494G/pL9kB\nsGNhqZBBdat6zqENJyE7BllUqVy8IzCYloBsWpZqK0zcKlEMBmmgX6RLk2yE\nrM2RlJZ/gJytQWJpBf2r4N+CpOpRjtiJ7WJSx7z3VdO32pRmrETjV6DtxBCh\nNeas\r\n=9VHd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNv9KeXQIpE5XAW01gUJbOL0RqTFYM4Icocjn+CloIJgIgGj2oMUXuVKAKuiye1W7kol855ZuLz4hU1v1A0W4SO2Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-14-2021_1615684230857_0.3049190021510215"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-15-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-15-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-2q71SKmFX0iMwzCwxxUE+Ud3Hqxws0WDrAbITm3rjYW2L6yNBOybfBkjbTid6XHkSgORth/P0hfh35/+O8Cs/w==","shasum":"10c26d3de23e7f3645c8d93fb913aa9cd947d71e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-15-2021.tgz","fileCount":211,"unpackedSize":7086787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgTrNlCRA9TVsSAnZWagAANmoQAJf3Lqa6FlRJff5iJ8Xg\nGJsB2SXvW+c8Mi8ewiTVZXzSXB2C4l8bW8XC/Delx9jW1w1ze+pVASMePETC\nvbK2V42ru81Ail74xwiIof4Cc9J5pYAXyUR+mRLA4Xwtq0yvhujSGP7rmPiJ\nVtsmqkemNUOOpBtPA8tmVkM5NR2XNsoH9/AgOZOi/5D6dmIzSB0nqk5OUmT4\n4zXZm3+yz7qtAg4gugqVXv1ljlsl9apXepiA/iZWJfJLnJeZ9k4ynWeu4Vkh\nxkky/IhiKUvRo+XSCuU5E1ktp/f2blQwQMK0E1eLknoIhfB5gptgfwoXQj7a\ngmFgRsmtE3ufeNVPsjAUlu0NkkvdiRhMLQXvEF/LWnK/EouJ837lHJ4xUlsV\n+HVRhEkT5f2iI3NrHQ2/t+qVWSs2gxkuT2r4mJYxdeQTgyNYUDFYls9JKhJA\nd7iunIBmEcIKHGjqA/YebMAP0uXjEWkWIUZAEeBLnR40wpGgi5SiRhOdnF3Z\nlSVNshDYWzLujv8b0pNsNv3Ne8ugfTiUJUMik3aG3Tmj3Czp4NDsdil1L7WZ\nHw3DjMnztVGJNqfACga//waMUho0lNyhQbFDyxikTcDqm1MfLCIT/G24pOv2\nZQcKsLMqvOGT8jVJP1ZYTzhC5I6+Rclo+wa7irxYtxPCto6ghdzpmCSESKlB\n91Vv\r\n=yE4K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEUKtmwrV/co8emnK/8lmkUUV5Ylh9bnykk8hqlhVU3AiEAlhMc/sAvbN3WdvNQDW1gYTgc3fLNYwciuRs9irZybIA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-15-2021_1615770469041_0.5740908072273343"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-16-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-16-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-DjIlk8jDczQWpSJoiQ8wf8eRjmU9bng1a3sbT3l7HqKqCfQoxJI5cz4kcGO5rRRLSt3h8gacwvs1WR+76nkJTg==","shasum":"a9f463bb3517d54027d03276a738454eaae02233","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-16-2021.tgz","fileCount":211,"unpackedSize":7087950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUATOCRA9TVsSAnZWagAAwtkP/0eVXjVNwasTYoHJr052\nCBkH/wDRRviQ0hSYwP6x3d0awfIkBDai1V4GSMM9tUIPGlsORGI+fjOLF65i\nTs9IW6b6/dNSFa4FWHji4TgxP6cEouhQAMi2i+Gufh3kyqPVIbpjoY5o7MoC\n2hvhhMirDdIWDwpSR/cP9+WLB5rfhRHTTg0VsNYWeuhEK8/ITLuvXrKuVjGP\ngcxgJ5FdVLvSgTZ3hzPLO4dlbpzeUlUD2f24IvhkV+fMBVdYLVHR7yk5xTrC\n5ccONXEJs3XWCrEYJpksqWX0UBsvoGPYh7VtI8PId2xx4Q8ICu9en0EqIuRC\nQz0gAngxwfwhPzbVjY9axtmROd+GtNiy5Qr3xinfllSAAfqoAMjiIBn5LPcU\npNiH6p+5+dtwAZqYmj1ccyIz3/lcmO5mup1P7XuMoAXmOlGbDnni1BVE5snv\n76vPQtV1Zkht3wQ8fb2PyForgsV0F4swj5nF9kot6sQOkJDPg72Hs72DpRDO\nsUCyYf5EEtDB368bAZ4VTq7pH+pOVqG815EOqS7GrqwNsKEEj+5tfFWwBJb+\n9x4RSMlSdYc45rQE7ZyGOgxn4IbHtkUh7VhG4st3G3VJaADs4DuVKw3rdWD8\nl7fwlXVYwGCj8/azihFn61X2YsnLzCSmYS1lvjKg++VVS59uv49Zr1Zg3aAV\nn2Dv\r\n=+iy3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHdMPyV2AEaENJq4B+pgN9SPM2ejmYir3lEAEucCm7ccAiBtBHpso+gEZWd9Q0KWq8XjseTkKHpww7zK8BsY8jIjfA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-16-2021_1615856846044_0.45756737949477433"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-17-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-86.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->86.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-17-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-mugL1vw0ovgAXcT9CazqOkMk0wwjJAxbe7LEhp9MsBZd8+OS2BHp4EFJWZ1CQgPhoajBplPU09UDnKEHWwa/Hw==","shasum":"2cb86a830ce35e5ea2d0ae96802aa3497cfc656b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-17-2021.tgz","fileCount":211,"unpackedSize":7088001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUVZbCRA9TVsSAnZWagAA1fgP/1mkiZSbme/ZRCXlJq2h\njKSGAE/FEzRrPNLMxlbxh/NXBsC1GfcUmDyFdhZhICeUYyNi3xhMg7cxt/+A\ni3Zkeyfw5seq4t8x8RG/Ame3VJN/9VEmhbhpqeITfXAwoqsQLEAFUEGyYPwV\nUQyFQDeN2r6iFopAXJiv3jaKXFmucTTExC5P8dxOFzq8tbM5rJFGROosfg3M\n32h4mlup8GHwpNwIZIlygkgKJGbOOoqKtOKo8Dv7FihvliyZs552GPq35TNA\nzXf4IrQ2z5LC8pavuK+mn8aH/7tVsg4ytU2j5yplHNTV7/VTkmw6Q0d54HU0\nTaMS+SAVipIgMc5OojGWHO25kER1suoNIomM8eWzKleIyraVOpz8E2fdyaWR\nxQROX60goCVyd3qNyAi/3tMcukOUk+O8nqdm/AugAeP8oGIN2PY9fo7I2rSg\n+joneuLUtiUoagNvbUnt0PT+Wtnr+qdjTsFNVCq49gKpNqmaTGFKT+cHiWHO\nZTXWl4pSjheWz/WZOG5+QbjvdKgSIVI0U+uDo6Fwyem7nIc2V56+Z7eEafm7\neM0J6bxG4cHq71fcIp4aY9/DCj8CP8vEYxrtHENFldWwEmdcinJr3r9ISZWm\ndwsVHHt2ow43pDw5HjiD7wdebCoHB9H7U2Ho6ONeKM898WmHLNDIRW0gltvo\nOp/u\r\n=d9ZZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPjf6V5oLwBdZO/lkviqXMqb3goVqL/pwa5P9OUlbrwAiA/vmnv/0zbX4PGBPbTli71lEz+xOC0Ms3bhKAbjy0i5Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-17-2021_1615943258769_0.7579934810104918"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-18-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b5-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-18-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-6zDpFdDPMjEwg/D5LybCX0ptUcE9O3CS/ES0+muRB23whP+CwWZSTx7KzEw7Iir+ZfUhi+ZW9PGGhoWRiJWtvg==","shasum":"f615528bd718a1c87f42a36a5afe3033447f7281","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-18-2021.tgz","fileCount":211,"unpackedSize":7092425,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUqgdCRA9TVsSAnZWagAACBAQAJ2Egu8bA0bYFBiL6l/N\nvGw4UEbZpo0d6iwfRNdkwWSyaVvYg6cyGsRqa/oTV0rLsuumc9FRofAjw/mZ\nRY0tbyy0i35b69t5bJS5wUYWHOj68aeMJhGHD9qy3Hig130yU+k87PkK4dz4\nIVHplqIqveVP4D9kVLvCalpGug3uh4vxIECib/ievjYf5IXKUDlIlnqImZ8m\nKWmuGyOensyufEVGYtepbu0GKinnxuvhrnuVdQlgrOBJV4lmtb95QFPlcZ9A\nhSdP+IkLt8YqKqvxT6tK+CopP6LD3pFIHLr73gtQ4jTUECD+mijcNYsIK27i\nfW4rnF/KYMXcR493utQUGozDeyuLqEDZUJn5exWGR4GTruoQwyBC5wxTPpwv\nbENXvL9VEPnu3XtgOBfEATgGLyhUINSx91QEDZCDtsL6Z7xJEKFt+1QZTKwe\nduNwZRpxwOxsei403GltOV3llP8KmEcUPIigYmeQZvSdDQqDtWzXMA6d4a4U\n+aw5BId6CzQp0yYs7w81b50tPxxFTldPGDPxyRLXZhiPKu6Uzt2kzDb3xmVG\nK/o/+s3z8dA7OVa4FwWcWrQPTLNhGjUC5AQq/lKefCQoQZ9grco62+a3zBKZ\n0kXOifS/0Q31icCRd+XqVkk1nvKNfyLy2xZJl2QZ/ZLeBgO8C0kaxRs+K27x\nxsMM\r\n=G3Vu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBsPinW7zGUxMrP97IOCZQDu8sQKoYAfp56jUqI/ATkIAiBx0KJOWi4llQn11yPQEdtqBxcFqqKbOc54rzZ7kNP2xw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-18-2021_1616029724808_0.9154281555960115"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-21-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-21-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-21-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-oeCUAcQvyPLKzyWLXPqUu2ZnEpP+VhmZzAQTQwXA9i7n9/xWoHoS9BdkUUX1PegvAMmYZwyL0XiNvtbU9z39Jg==","shasum":"3ac32a064a68e2faeccf10fc3fb8855e0ac19825","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-21-2021.tgz","fileCount":211,"unpackedSize":7094191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVp1sCRA9TVsSAnZWagAAtuMP/iREKHFB2F70jX2RCVdJ\n4gysxXgSKclD1w7xEvEkJN0u947a3cszrbFFLWnO3tDULHKfnMYZsE1kMPWL\nrt1fMqVmYPImh+rN1BSxunRtgc7uTYW4gLfxix77WJYbdJymf/Hd2EXX9TdW\nNtq+nt75zlMEW71pN08d6UrrG2GT4s1fSFu58g/8KWqovfHAVn1dcDuWdgWl\nIcG6MykztnDgXHs2dWmEzUtW5BKy32uxn+uZ2njluICr4h2k15EB2eMSHIJc\n8rnOL9pAU1N/UNVLgibGybdQwu3lud0ufTPojoIl+KdtYyhBBuMhpA7tg1TX\nMDvLtp96SufrKj1N5Sdr+dBgOFPWnHypdTt9v5GipX+vf0CRc2pl7nG13gkQ\no8ABYECzpCNVhn/WU8FROALooCkhXzIohaXBqmyFRk8EzGyx/egDvgLNtJlE\nQgpuSZ2SEIxdRm8XyVOlXCn5nsbfoI8OcjDgTTlsDvcoXAZqM0Mi8r15LNSe\nDADVKECjSJWsGwWE1iZDe+1hiQaX6WH8ZnGLenjfQvuKy2WEgYbKH9o0FnFW\n4uJPQ+sfL/QtwxVzeieqkFOvGQKhXNG9wTZcpNbX37R0PSwi+CLq+e01UpbF\nr/cE1BXe7BK/l0mpFDPDYPZU10fR4vbf6Bt70Umd0lk+omUBcaDoZCM7gFGu\n+MMC\r\n=QxhH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrjL1apym1S6G4nHJbPR3VZyx4hoXxN29FZENq6droDgIhAO/K2BUmCnw2duncFu2EVWIKw+LF2DbJJUfiHKjgJQpj"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-21-2021_1616289132237_0.008908198232280728"},"_hasShrinkwrap":false},"1.10.0-next-alpha-mar-22-2021":{"name":"playwright","version":"1.10.0-next-alpha-mar-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-next-alpha-mar-22-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-j1yZwu0P719S7sAqt1ioYDpwh3uTLXhrF5fTTpKNUhjGoiRaFna2sLsB7CpIpwT8/HvIctpy0/5EHLOOY1Fizw==","shasum":"dc45e899cc2e35430dca714f62fa2665fc2a1d30","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-next-alpha-mar-22-2021.tgz","fileCount":211,"unpackedSize":7094191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgV+5aCRA9TVsSAnZWagAAqf4P/2lpjuSHpJKY1qmaw7gm\n51k402xYgacBokBbYQbVgSxAkWiARcRYDDbku7GtElZhxLiWFjsW+Z5VytCq\n7uihNy7F0CdFt/0mLAx17RZg5OHMl4cA8M59TjTDPAJcrFRnbCk80qZNjF8P\ngEHIaHjJHSgzdLgKAZl7XBCqxy/MbK66kYGsDiGgpFTA9i7TfzoTGirTEPcI\nQ1WMVIYm0sdyeXcUeXSre2Xyf4T+QIYCr3d5QLM31IGv5sdvRKToR+zc2dR0\nCR+ZaN3ZzqzkVgVYikwWpOyWdXZ7Gu8XHQkP8+P4eMZvt3WMbupJCCtAts4F\nYg9wO7JjWH84LHR/b9isvWbzL+rfeUWQUCVUB/slHYaNJZtF8O+DUuVbjc2z\no8++76N0cB/rl5/f4ktvrPU/fBxq/GQojIHAcK68NaCBSzQtYsij/F4CkTUA\nCwmVq7rV2c0llHVQuyzhvCnKiPgxjycLxZEjnczS+Gdm5ZDGssU/uos29862\ndMYSVGTG7LwaYv0kPuO0pHFYabuHfJBEAbzVWDOlYMabteCKCIb5IqfbQajy\nQL1nQB6wagaD44oeWGJ0O+EdxzKtCmlkV+9HEUMdydU5LQYXsG4zLWJD98Au\nSLZmnlr3JW3nTUJHG24/SPA7haeSysyzaMTA/Z/p8qisDIDGWPuxazdYNcmq\nxamz\r\n=k51b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtwxYgN08xGCVAFvgRov/J+sN5mtqwIjNMeG0Za7dC9wIgY3CrzZv/GwQBPzUkYYzC3HJY5RbdC1hYWTIldxG7p78="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-next-alpha-mar-22-2021_1616375386254_0.3947611680119294"},"_hasShrinkwrap":false},"1.10.0-1616532968000":{"name":"playwright","version":"1.10.0-1616532968000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-1616532968000","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-LRsaIRZD9J6OXfBel5zJKkRhzhfDIRaua5E4wjxAxAr9asgL2zeCSDjK3pDUZdqBYeYsRK0AX9QTTmGoyT5AwA==","shasum":"8ba9fb9acfbd301b21533a1b77b81731d67a7e38","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-1616532968000.tgz","fileCount":213,"unpackedSize":8455700,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWmUoCRA9TVsSAnZWagAAifoP/ig1QqzhsDmsgOjXTAEq\nZ7hbM3UabwRMXTm41xTfMZuBz1RW8r1HrGaEecAqx+Kil2zeCFN4ERACIRfw\nYapSUafB5VEHZ/8bvEVbtFwWEyppUBHZeGGQSanAQuDwVGWsPqjuDyJy2I6a\nWEThYi7XDMvVAYHQKg+HtmJP4rTz4zrQcjyyoHigemBAIZnLGqUFvNU3W6Id\nupl+QHILYbxZYbvbm2oR1u1BkxEVpakGam/h+aivmbMyFz5CaO8AHREhsDJx\nRVam6WoKK/CicPXQY/lU3h5njICNP6On6J2RtFZJbR119RtOh4RFWa2LkXNO\nYsGFyjUdBRv62zDILq/oNaG8V8xDkeyUbEMc8UCNlu+6MWPPbrxEgfdHc1+l\nEVz8VmHEFwWXgZCkikAdPN+fBkM7vrboYTR6JzPXYVpq0abH5kKpzAEH590D\nO1zOEyYheis83O2Lg/VBtstg9mnW+QkS+FMVH94/xXCutAUedZoo6Bkr31Lt\nb1LUMzy2nsF3GVtpycItN0Ywtr83jC+b4gIWvjuMFEvFSdukWUSJsucm6tLe\n2QYt/laowrADTbp7Ib6EcclzFLt7gpDd+oIoo1Nz0tDyDMwuLKQZxEO1E3PE\nLzwdf7vO+2EJD6hop/ljerTHcYnD4y+bPZ/p0euJlhzjeeJSPYXm8gIYONoM\nVcpm\r\n=MY0d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHwXq34YDYwTSFZGyJwhUyIhVT2HaSYFhidrLIwy13ZAIhAKlawBf7MI/JCQmbJR7Xewz5wChfrJXEKb7sOcOb8IWY"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-1616532968000_1616536871888_0.03929291923901168"},"_hasShrinkwrap":false},"1.11.0-next-alpha-mar-24-2021":{"name":"playwright","version":"1.11.0-next-alpha-mar-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-mar-24-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-MKXxpvv9e8i1/spfc19ewWSA0aS6JKUz+Zjd13R75ND7lVS2qnhJakHxqNtYRXblNS+1ivndrdu59JhsrEGV/A==","shasum":"3f5793c079ecd506e134156b9b0a3fcc6f1dfcf5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-mar-24-2021.tgz","fileCount":213,"unpackedSize":8455709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWpGJCRA9TVsSAnZWagAADC0P/0245PBmNPF2ian5TLPW\ntzbXxD8Q/PfdB2UC59FgCgzzapw2yib2aQ6VsMITkjGbG6Rcw1gg06Z+jorC\n48cPooIAtJHywUk0ySRVzN1ytJynOxLxvmac2tzneotDcE1VIgCHHg8PNE64\nuFRUKdYcvBIpEAJD1OEq9yNflVgDSej+6EfTKQWZ86Uxyo3ge/OnIP+weoGH\np4ZkHTXJcoZZiSuqApsZCG24UJ0WgqlfA/9oUHK/Gp9U9kgz7s/iL52itCjq\n8onHif/IX4ResVyM5MAdXksoVNfsl8GDqApNo8EJFet8mYdQhmazTmVtrNAB\nGd+0hNHF2Sd8IMLl2kzWND5KGl9i6kJwk7sd8Jbie4fTuSqzBYQxaknewQkM\ndf3MrdzgfsRQHTV2tD67iuoCm/uSomSl1BGrxOJkfzM1dvmY8mq0dhMvbN7u\n745Q/69flrEibuZJ0M/lY45jiO1/a6NypnObVhEgKexyKZ12KKMIiDEIhGXJ\nWD7UQj+YzObJGrDfMuAt8QbNNGINhPLt2qoaJQKMCdTw49ggzfJIyKCxpI0b\nCgAcYLVlFDl2BgfU3UhvSm6LI+2USbW4IBkTY5BtccX1zXk3oZdVmkDfgzjd\n8H2wUx93f8Q/AbhGXwpSHm/ngdm3MsvzoARuor4Xmm3L3DIzeyDbvJkd7z8t\nL4at\r\n=J1yM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgTjrH/vYTbK5n3k2bZdZ9OM7VEK0YUZ07Xi4hhCc+wwIhAMIHNURr8MORXb+HolF+fXJNG5DbOwTojs1E8mrIEWaK"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-mar-24-2021_1616548233232_0.8056722784168178"},"_hasShrinkwrap":false},"1.10.0-1616563674000":{"name":"playwright","version":"1.10.0-1616563674000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0-1616563674000","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-gYNW3fZg17+k64pv8I4QzSkwOaf5MqxmXFfSo/vzNty1hFcHs9TuE6yQyRvRBB0I4jza+P7lg/tx1GDApoHGEA==","shasum":"d39eb46611e2065acaef9ab549c03ff318bd535f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0-1616563674000.tgz","fileCount":213,"unpackedSize":8455700,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWs7ICRA9TVsSAnZWagAA920P/RHwl5jGNbPHI+ArryPr\niv8K0/1qfRmTlIEvqA7oj0mhzf+oXNb+K0onViYwImfTj3oZH9jT4Tg5jUWx\n8EZlX4I4/mzMYR/PnAkRzbx6YpZqzezDiol77rVDmL0dkNFt788P7LuVJBUB\nbwDAapjBnRXHmM3IMlpqLyTK2o1DDLQQPZDdFp+Mc4LjVYVn6CBCx2K1TgCl\ndfX30sqBAMa+15RDoSyhrRavhzcLxi7KKCCzu/V3/QHvYD3aBps3SmOs2v4N\nvhSlozjP4dbpXOfLJ2tuU6zVcvgUvCPooqOujDvJcYt3hCOy7/yys+YAlwFV\nHYSDUKWJB6MyPyT8ZwmK85SzjdPRp2iJi9NGZjv25FlY2ADtAVhxBXAaviys\nwJ7vZrVIADblKWE6ckW6GnjvXAOG+6hYorRO+PptaWHSx1pGtk78tct3WsQN\nlujFZ3QrXBZIWeKANpOn9xsTb3/bvRkE9czMhzqUsTo/PrF5/PsH5Dg9wAJ0\nRFjPIziGPtf05YNGP9cy/1x6zUEA+HE48pQ/N7d5I9pZsaPQ1E8LtxnnAD3g\nktjWB6CuqpfLXypu917Uehw2EydeTeYv6ePFLEK5fiMr5YHMD/6pOQ+SMIAt\nwcvFSUdShY1lch3XBuZV01Bo0F3jrlWYv2sHJdjlZdqzBJVy/YtT1UEtKLV3\nRYil\r\n=UKR4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDVX7OlnGyBQ7D2VvpaUdJ2Hu4yZSgkjKemISZLIGVmbAiA8rWRkMIKcPePFbVvMpbUyXmpPiIrZ0JPuHAywqEbHNQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0-1616563674000_1616563912133_0.7700926873901748"},"_hasShrinkwrap":false},"1.10.0":{"name":"playwright","version":"1.10.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.10.0","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-b7SGBcCPq4W3pb4ImEDmNXtO0ZkJbZMuWiShsaNJd+rGfY/6fqwgllsAojmxGSgFmijYw7WxCoPiAIEDIH16Kw==","shasum":"a14d295f1ad886caf4cc5e674afe03ac832066bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.10.0.tgz","fileCount":213,"unpackedSize":8455686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW69GCRA9TVsSAnZWagAAW5gP/3QmcOKPAd7iL3vs/FWg\nOcwZ1uE3JFD1dERQlPp6ELsOyFPMhQa9A42bsojiGZ+E0oIQNHlFh2cOZ8L2\noq59YGXh+2qpjrYb/1QV4GUzT4elXn753QMXb9naj6S0EgTrOAjsVrRn9Jmq\njRbKZ3XXzZJPXz/tL6z256+9HDRuEq7RNqi6QgsG1XNcYqXTQaYMlivqY+Cq\ncQw2Bipc60aSrvGtvNCwK9dY/6h2LCpznwSywGzAwjuDjOAOS75fwsXaMVAY\nV03ukwaYW4WuZ64F7717J0EZ4rDfl6IMiDkZao495BYnYdMeh73f7SlYUFvV\ndrr8sSLTpnwVOD1ijdM/Zy2JumOgkbiCqdAIghBobW/eaAtp5Ibk3/+5HVzw\nVngR+eHkWItaMYGLw5of7yu3x2BEFhxaKkzBEld5XdImN7Nc0oIGShPpDjyB\n1O4qZlQsNTOHpNRddrl5/7dnoDkgWU8P79fw/yhMMQxyM0Pm3aAI4nAFCue8\nm+kMTyE031yY0+WxiTf19pmVqmC7qkqTR52SX99lw2hGU4lWKZlUzQG6/25U\n/MhphBOcQFwgXFqiH4YGheFmGHdVKnxmFMQm7kv/+9Wtvv+81h/IvX/wLdiE\nUUUt6uAlSSHLp4ujVa66NG51rptbGl4ZYZOcMSHq5Kj/BwaOgZfgvFID1cq2\nGMYi\r\n=8t5v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/UsMqyOxQYFNbqmw50Z8oWIjgs3rA0Er3SaMw7igIWAiEA3dzZgeWoEarVC08wX8TKVV+QaCtw2CC49jhL9Ii49lk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.10.0_1616621382211_0.13340133279987354"},"_hasShrinkwrap":false},"1.11.0-next-alpha-mar-25-2021":{"name":"playwright","version":"1.11.0-next-alpha-mar-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-mar-25-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-jO/Sj8sm5KV0K0CPayH37GwBI0loBkhLWOMFbtu5qSoci3Rx6JZZgLyq0NgtzQtvqk78X5Jaq2bzZ58Cqp2mwg==","shasum":"de325bb5b60898bfe5c5fc925da3c861734bf314","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-mar-25-2021.tgz","fileCount":213,"unpackedSize":8453646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW9kNCRA9TVsSAnZWagAAm34P/3DiElNGmH48MaKOXhmW\n1MgreP14TN/ABpgRiCgYYOXrKIE5DkdkG5JMrQawvVwFjr8Ko+vCtp5OfpWz\ndxdF78XJxBtBPcgxc0HcG3RwESWQ1X9sDCaIZOW/OyCrzOjRn9Blwoqisbs7\nZj4jj6OgDXlh6qm7KfxLfTrRMeCjohXQAnI9/s7lYHdjyZjT4bGQ+2u7VmxQ\ny+3gsi3RfcOT1py6K4d5KHfLEaNflja8kMdVtmxXSKCbKADhML0wny7BQFyZ\nz8k8YzEjkow/OSY5NOCIHCAJQkhK8PTQa8TTQZMJjCLpMZkvSnH8bAcTKQd8\nU+yzf/gHo2vvm1/WlkB2VhSxpMLRk43YEl3sAuZCUcb26NSgRE0O1tP/WwWj\nNhDCwSPNCoXf0k0ZnYfrKAhCNR4tVmuYxUFWGH/l75jByzwUb0LIbXeT5amG\nSIy7LkcB9u6rQmmT3Z53XKiolCHRPGNTbhNG7SjMVT9SZ1OSjIrl2UsvqDw3\n4x3zLhbJhSuiUMNOpgHjesmpcWbPi0wZgODaG7E80tWALtDXXMYwwWuWnYvT\n2fiWjk8HnfiSF6qROjNOonZitWIXHvoKTC96UW8bg/FfWI3JP6Jfgq0i9y9O\np07jbU+PMiAh4xffz9ide8/9yq68ge6xDndSYwoKTBWLWTa+ejJZ2qNBoRNX\nRQKC\r\n=P8P4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEimPOosOMYohD/WyDH7/ZRk/v6EM0R3tLRcJo1iJGw/AiA/kAEEMVRVHg4s9QofXqDFNCc0Ug7AHsZybVHVvsUDcg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-mar-25-2021_1616632076518_0.7407062758144958"},"_hasShrinkwrap":false},"1.11.0-next-alpha-mar-26-2021":{"name":"playwright","version":"1.11.0-next-alpha-mar-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-mar-26-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-8KQLpmIpEEQlL2NgqzhpeiiU3AuG2ukePH9hRU0IDilqQfaG7uVIZRD9DPBiqge/eJYMTSnj25GqwIGOyH/wtQ==","shasum":"58aae9eb851ca32a133cf82a11e3eb6f5b532733","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-mar-26-2021.tgz","fileCount":213,"unpackedSize":8453204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXSnrCRA9TVsSAnZWagAAI6gP/0SIu/ihCJpvkRwWgVPP\nJ/ssraV8a66e+yZYyIm0URy58HOS3RR50/aBiApIs/dsPqlfOeFYpbYnpYxh\nYZTDwbAONfSKGcyMpNp7Elv9J+GRkXg5otUGiN7OloYQyn3ErSnt7Dfbj/n1\nEUyy5XZRKZo56i6rrO/DKEeb/BNZ1eVuNovFteUJKcWuSnE2If3lduqTXrg+\n5UiJ49mlRif1Xd7CfZ9mLXOaApObvLbVbyWkaiR4PpQh7UEwRzjR+1RQ05Ix\nFezXBa9eHvTEZrEI6Z9+qZisdTD10nkFnWLK8oYOs8sF0ZdpFmppTg1VuzOK\nLaVFdK1CT2zzkqoceKswDb50RtlFKCvahL3NUsLjjQLGlPJ95mk0UUmYGsYi\n2FSjHL7utlLSJ1Y52PeC1Da7pIeKozMs8JyGXcTs4QM/kvf19rLsC+xE3cDJ\n3ZkBHjY+FYOvOSNuMe0Mgh+m2V9KOPGMBn9gsZNCwtqZ1r0osYmwr4YT2F2z\nHnegNb5Ti8GDEF/tCw0PCPmu8Cv8O/46JRaZxdipLNJg+VGH0qb9fBZGOgTE\nH+jTNpC2b1FB9Ck72ShZIp91mEiVkUumP8gjeE38f+BJ2Nz703ph11oJrn+b\nams8C0oh5Vbt6RtEpebqdlBJSohLXKZ+1UIU1kqGq1iKRT4cHP2MVnNmAE6x\nAcxA\r\n=WcZ0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUDfitidGZwFIPgVCcwWBwpUyPfAnnCAI53/O4c8bmlAiEAtjShAhWzQLaXiT38+afiefAQn47ScZx2ofsy4s8oUlg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-mar-26-2021_1616718314701_0.4690011745889624"},"_hasShrinkwrap":false},"1.11.0-next-alpha-mar-27-2021":{"name":"playwright","version":"1.11.0-next-alpha-mar-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-mar-27-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-Sej+5lCCB4D66P3mXeqM2SvXjsPjpCEyjKZAZ+avLk0fRqU/75UdUmhCZ9NKkLi5rtxQKdCHieV3vyfpPY+wQg==","shasum":"e8283f83d7cd828fe54372cd52f59e3165d39d91","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-mar-27-2021.tgz","fileCount":213,"unpackedSize":8459428,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXntkCRA9TVsSAnZWagAA5m8QAJ4ZWMsrptZlJI6ga/50\nfBfGOCC+4O5bNv9WxXJtXzKCRQKVxA1pQstJX+IZrXG3Qv6BjE8CvGCZxsPW\nsO9WV4VwHjhn1o7iirkDCJqRG+Xz3gZZV8pIg1CeHxmM8fxbPIMoDPo4OgUw\nRkIUZTcNVWtZFJGlowQp6zoekrqW2JO3N2NOUn3grW84FhneeTCL+X3Zwy8Y\ne4GwmiIOm/pFfEaABix8H0ME90fZWs7Z9ov8wWp1BG5omihfCLBVXl2QSApE\nNp/VlvJmIsHH4ZGDneQhrByl0V3E6Xa9Lkk6mLrCN346FlYPi/T+JTWfX8Hf\n2ua0z9vBgfdduM4Dr2NDPtlaKZoZ69GDB1QLLMNzrgraFEaq9Pn8DFq99L6N\nC2XQRQc8hKmq88+RCnQ8kIZksW2EQrWP5+USVWikfpce0J7HneadfHDGUWx6\nCTaojggOG2LxE5DkXF8mtlHiG/R/bTMDTnm4m8T7Y3vyXoG52keWBS5frCfu\n9/2poyAOtfiHNDZ8qQNO05Vae2JCvCtZXTIUx8v2btVrwrI0I9PPZHmKcgDO\nIAPQ5Cit0YLxBdV4vExgkCiM8I0rJANWtXJju7VtyJCmoSyCMp1zt9lwUG50\nHWHc6eDtuBT1b9bW63kE+nv64jeZ8i35WZItlFeMMnK9WFhtH2KklDHWyWii\nKmz6\r\n=DZXH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGFnvWK6hzVsrLEupueaCW0Ie3wNuHG9qjkvwuvgD6IQIhAPxd6pvHX/jZNyqSpobjmsKZozJNwENTwbMDtC2dKRxe"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-mar-27-2021_1616804707550_0.27706972793218787"},"_hasShrinkwrap":false},"1.11.0-next-alpha-mar-28-2021":{"name":"playwright","version":"1.11.0-next-alpha-mar-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-mar-28-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-hLO4EArz430h+r5G+HVHuMd1+eX7ojybFZ0AdfejDp4BACJutcXnhDn9Q94CdRyiEh9Wvo3TI95wIGcoPwRoOw==","shasum":"59baf1f2ac6555f664c969a8e1052b5fec46a8f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-mar-28-2021.tgz","fileCount":213,"unpackedSize":8459556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX81ICRA9TVsSAnZWagAAhZAP/jIWgbZ6z3fn7KYhfs3S\n05O3ze/ktoNWdRfCnFf1cWl4i7XFLhkVIvB381A6LraRgKxmRVbZNdotF3+Q\nC0hOPBWLfOml5XQgJWYn1eftWjalOhitkTYCJBr9lqEdyA3gWAP/PD3e+ULD\nbzFONpT7JuKBO3ORMJEJsayCMGZN+ENl/Xz7BPBkv3D6s7t/vR0/r7J4sYgV\nP/BUJMvwSgcKyqfk4NAvDs68pHefQ4OR+oXQV5VI76UscTvn521u6VqewHwF\n/kWiWvnhWV51cSjsqdlDRxe3OLBkjvMeHptk8rAbu3EZtvOPvrtkVocpOeAr\nIxZ2XUjN8RYW9D812ojIpjDs3DyxhhzK21I2WpjpewxNwyj/Bh1N3DyGPTDw\nEQeFEMWSlmsGukk06IuqaxO0NIlbt7k6QnewbCW2j32tLnPunkRhPkCk2W83\ni+SjknXqFz/lbBpWDApwlKhukOwvsC8cil15fTvWsRS+wB47DsPFbmn/ATDr\nEKJdHzVStbOcUPQVU010KGfqhs3b+8h8VH4K6kiQmYXWD8XHv6XIIEdii1VB\n5S7rSSJ22jACjGJdX5GWmkILfTTpYElJVPZ0l7lM49hsveDTKBC4x18YJ0eY\n9++VqaihaIzdH35j0mtlocKl28/ePKWzdYUWovFBFtVDms0i2iaRbbwOR7Br\nTHKc\r\n=a5An\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ9lw6WRMs7BdtwBTUb4xHtFr+Ihi8o1nbFl491fyW9gIgcQ0PNr7+1n1iox0Yjm93ODjgHUjznrstlwJAAilmEVE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-mar-28-2021_1616891207717_0.17879614505305952"},"_hasShrinkwrap":false},"1.11.0-next-alpha-mar-29-2021":{"name":"playwright","version":"1.11.0-next-alpha-mar-29-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-mar-29-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-TDNgHGL27/WtBIyeQYeewwCvUkfuTrZt1bohvFl75gsz56BevJA+SbclKRappmeEGH5Ric/Pnyi01vdh0Bnd+w==","shasum":"f3cf2b0d320c1cfe3695fab3e40ae4eda6b4df5d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-mar-29-2021.tgz","fileCount":213,"unpackedSize":8459556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYR6tCRA9TVsSAnZWagAA+UAP/AsZLX7GmjMGrt3zQul6\nnk04bjzRhRSnJJl4Y9Q56vwaVAtjnwDNeZ/mF66cImugzCuzyJnUOJLJVsV8\nONAXL/6hDvy8XKIhbLkwVLDb/zu84nOvItQaXtjpUDClCfcgMajvUITrUMSG\nbFNrZm2mrjpbgpl93ZyWknB0PbXWe8gxZEz/vcp0nBI5TH9EOqp+GjrHnSvm\n2JoxHqvbkskW+zD182/Gd7q1+uryVEUlgyv7O8KA+jFBaRJcBZGi4zUNkxgG\nEi4VjZPFZuHEa5BvajsBIE1L3LP8WVG4XfAQH1AUYdmzwE/ZIVeHI02C/jC6\nW830ACst+HOSWKPSyjM/3S5VBihBK25beqLf7q5z9CAYzBmLxQoktNTg2Z2p\niGQNa2r+dkL+O252D8hWNggf2Qdi4X8r1g5N37218XmNyPpEyZCUcPLQTpAq\nNrRvLGBapSbml40OMjARRMuI5HDqPidngOZT6tJ5z0hOs1eL4nM2GUL2GuKD\ntRe1kBcyXTwWQetDX7jpFqSgZCKRfMsqrEaE043NLO5R4Ma9E4jKqaeoHt46\nkxrXE8esammdNGSQcv5yqzc3DqEVySaT/Q4axp5I2w9qa7MRz8P+Vp7Qh1q/\nFI0M1gNsFNq0eOUkZNERCPvNA00N1PlvSpnnXUurYyV6QbpZraFWWtONrDqt\nHgQf\r\n=z2/F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwmmilOoBzodXFn7FhYLo7lepqTH+3XHyxuEGFdzdE2AIgGENd9vlNXF7NUNLw9Alqe6fxADCPSTrQYz7oQS8ZuQg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-mar-29-2021_1616977580562_0.3313272094879163"},"_hasShrinkwrap":false},"1.11.0-next-alpha-mar-30-2021":{"name":"playwright","version":"1.11.0-next-alpha-mar-30-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-mar-30-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-+3W8uCJRHq/KiBTBYBTZrso/zQd7o3/qnroe6YX9YyqYlxW5Sw767dAX4fJsDK+DOLTGcyFckwD07/xe44rggA==","shasum":"5c125bbe4fea46095a2f10a8a73a23a4af07f6c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-mar-30-2021.tgz","fileCount":213,"unpackedSize":8472072,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYm/ZCRA9TVsSAnZWagAAUvcP/3AuoJhfySK4HNyOu4DM\nkHqWxGs2xgWUMTab/Fv3kGq4yhYqvsb+DMkclbSgVDw7sbwhrtv23FxqG4Io\neaU524kiG3oMweUq5qCIshNpLhb5m57BbXxqopwl+Grux2bq7CgurM9/k3zg\nVgYL03Z9yRtp5za9U2l+JUWZzJI5kece1Abel1vHK4OvlGHEseL84kYqZKTn\nQkuIpUBjR1oMhvIMzVfahtn7a3YwUtebTM9fYTnUOGgnjBwspeAEatbeEzoD\npl1usr9+aYqUDUeP1G/D7fWWkk7qQDxY2axjprjtWSL+zjwNklGQfkvHdNZL\nf3G+unV+tAbEwHGmd5TO/5L2zzjp0MmeRVdkoXK2vg//tpJkI/sXC/9TqjX5\nhPWdWG72HwtOXpcS3x8GV0Kdza/DegSmsDJrOlH92mBaIouh+bdeM5oDZwKG\neDzvzo7oHsrEKWdpaFRMJQ3r4cCjkWAglsBWWITGNGYx0O2fe5nelDHFwgeh\nCJEItfjckyh3aUXCjuIUueKC4rlTKDeYbkX3byymCAE9AO+hRH9MoUUfHkYd\nNhVRLrjE+C65KzT2wjNbnCPzPrm+VeO+IOelHjOjVn4VuWhmKDiwWRHpshMU\nNJkuBtf7cELQv14n01eX/EqFnw6o+8MOeJARMlpnSkkWmxaJ8mF3zBE10zft\nFOBH\r\n=Clhu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMTl+u6TUBR1flEh9Agkr0lNmzOquyslLC0v+u5meRrAiAtu1xb4ZCLuDxHC7ow4xM5CN5bZS4LuYoenwfS0vK9kA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-mar-30-2021_1617063896951_0.19722713117358648"},"_hasShrinkwrap":false},"1.11.0-next-alpha-mar-31-2021":{"name":"playwright","version":"1.11.0-next-alpha-mar-31-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-90.0.4430.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->90.0.4430.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-mar-31-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-iwklh0F6saCJwEHrYZ5333p9Ea0dbLegRO4OWLVf+6xZEYEUkGmQrICPtNeH+CggdDzpFKHvJXe8wHGpjoKfwA==","shasum":"fe9e73561282288412987cdb5e1d6eceb388924e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-mar-31-2021.tgz","fileCount":213,"unpackedSize":8472290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgY8CTCRA9TVsSAnZWagAAo50P/25odA7CHthLo+0iqzBp\nBFj1Et6XIp1S3O2oCYCur34JZUMyxjyFiAsZreY0zW9rnieUMw3mtGr/qL+G\nO5Ix3AhKkF1Q9nM4CIn9z0WH+Zzz4aiDbxrAh6JybI18EIjsC+IfSGDvKTMp\nBJGF1w01WnVs3W/OOtLzrS+OzumR6zE2KXfsenB3WaWSaLIKAf1mbSmgNnlv\nzO/jxvjmQsAGd0Sgl5fmgfLrOjul6OlRVBaxawovaLSpX3dgfgQKF5x6Ox+N\nQpkvRICaxNohkKlYmyvFf2fj1Aw+AafZ6lU9RIp9ds934XxOb8MKZEUG216e\n5SXFxRqE4XfTZq6R1MUYKtFCT3iBZZrbc/kHTvhgZnjZXjK1ceZjfSrEzkwQ\nSes31OdDSW+afl4tv1DKhRgNflN9//aV35Ye6QiaXHLA+l8CdAE/+hO+/vbl\nde20tx52i4yL0djnphglw/g4IVMiwFQf5ly7KogvDfkerMacdB/RqCyOoe4L\nR4Nv2Ww9vDJa6vUYmV0gQw/Pf527BNrRHxCLH0z+CPR7vZpdCKsADrb308G0\n4wTKpVO0UbqtFrt45bN6ANToTY98C1antFcs7Gm0kGq4q1gsQj5/K7x3be1P\ns17fD2L1Wp1km7BRA+w+1RlQrjvd30pMhrq1CNbh0B6MmaXRQBK/1PQzCyNc\n4hLR\r\n=1Vt1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAluc5KYZMBtXcvxb0EDHgsX+jlfNqFJaYVgB5ZDkvZaAiB0Ov7qe/S97mHFv9G0N0VpeQWYULBLpAmqVCfhWlOjCw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-mar-31-2021_1617150099283_0.13902140955939357"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-1-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-1-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4455.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4455.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-1-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-DanL5mYCkBlZRM+CgB7elq0jjad/7dHipZcBAImGwHr88cRxihRpx0aFs/GenNI3eI72LQuWXW5HkgzkLaDZzg==","shasum":"1a4adf7917b4a22f65de51f02a6d52267a78a5b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-1-2021.tgz","fileCount":215,"unpackedSize":8501235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZRMzCRA9TVsSAnZWagAARnYP/jAkkECn0nYKNxwh2lvm\nwM9lB5yjL5KDuW5tVZAq9ivNW/0rtHfwfLRL/ZKrR4Ps6qYsoNirQQIhufn+\ns+R7L9dtEoGoJ+kAXJuGaMdkH7JIntekMq7W35n8RQOtpi2lYxCYaQRCCrbl\nldrdsDbdsXpPPW930rUxeu40klDt22Z7+a5Hn4j+8B/x58ZknLajcHJS7eiu\n241TlLtwPP9f+EeCj4Beh19F7wsKlQI4pqUKxFFmrGA2jMmZn3b76byfRsyC\nWWKsE86JhJPTsEGc/x0O2mI5H0XeNJ4RIYymGCdvwBSJCEDJfBBeDk+1YVHT\nReReo3+1PjZ/sKov9Tb6Yhn1xvYkfQpUrqKfmKTyrZY5Dwe/EPDRn43OpO9G\n+49y/uoaMp2W6JF1DgzUtMUik82h4SpdYALzYL0pEe2fS9DxnCPe+uHVcSN3\n8JshiHCVVdxKmk6qxj0GuhI/Qdsdh50nhp+DfS4cGqiAkyWFCkeVwzJex4yg\n+aqqW7tj5bFRXcdxOJKGg5JsVTJhCd7X+c8+1xbCvyEki57Ogz2K3nHWlJuk\nK7axAVJEBFAUf1vvKH7TD34taLBQrINWT3kub9XAp3lxGo7Ju0ysEOXt6qgh\ngPU6D08bZqBASO3WqR8PO4yX7YsfdWIx6MJEpTf5QZKmJwJtAlRFl/YH8y6g\nMP2E\r\n=EYQG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC0tJGT4g+c6RKcuZD+OtHPa2Yg2Cy+IPjCdy1dkR4CSAiEAtU9pGO9fCN9DFMbmBv2WDiyvhkrA5whIbgucGeY9OHw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-1-2021_1617236786305_0.7952845629054679"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-2-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-2-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4455.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-87.0b10-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4455.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->87.0b10<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-2-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-yy4z0iXjy4lmPYLMaM1Uiwad5lgveH8bkToc4qeDu0jpiCtcVKQmy92D8oojnRP5jnzsy0aflbctsqzA1YPQyw==","shasum":"67978bdd176e98739f75a23756fb741e078b4d92","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-2-2021.tgz","fileCount":215,"unpackedSize":8501297,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZml4CRA9TVsSAnZWagAAS8gP/i8oJ9nXth8/bT39mViE\n3TkvvKiFmHUhEmUOv6oToiREW1Y0l5nBrx8+b9YRKR7KxO0svErDiquHmGiP\n9O+DgYTBOGUINJrn8Udne0TxvUJ8hTCb2eE3yS7j/IzaxMzsheAbDQlrUTGS\nw3LgNp5o9r06F7avtIkcvLY78s4oVyB53k9wKrBEMSef7PyZ7I56kTEBOSUw\nwen05Cmvdd1otdUGDagIbEIbXb9Uvp59vg43ANsUKJH9oEqY4Of+w3BGDNBV\n+GnxH3Oq/bFpbu9T8CXiZjzX877KPEl5NcnirtXnSQWdG+FsWvPlN1/RKspv\nUx5H8CW32ta3syp9A0JIsMgYs4w4nVOLG1J0ZG5DRpsAZjXtSXdb8wUsqZV1\nTx01rTLPqwVsVKsd5iCGgo6bLIml9MOfz+WV2htzo8hmgf4e1asV6hE+hfqA\n3IHMZbtjfBbZgSYKl0KBexoYGyNv13SOJQO3KcbkUGkNAwjqQYEdIoLcCa0x\nau/0OwqJkxFESSokVnDdr/QaYYhh2X+uDgYDr14o9mvwsl/DRdNUT0VrEz4O\nyAX6cpqbc2fip+i06aoUvBw1FpVxU4vSZwwgT6mQz0XLNHaknIaPMq+D9v0u\nHHe0W5R3przR0ZdFJ55VPTjdIdHQIaLL1YB0TUAfHt804cc5OarOiTFwnXqO\njedq\r\n=GJ9u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID2OS6Jslmyjuer4atC03ihbhq34rAkOmoaFgL0SHHDTAiBislj7YnAaTwEGe8o3c14u51h3NU3ZT91DU1SyAibzSg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-2-2021_1617324407528_0.4232314733307174"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-3-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4455.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4455.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-3-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-0cwAuD6jznp+iyFjPR/1cwwJosxn9A9ofcX/RKgrFBsI0fT9A+2t2z5+MxjsKPISUPNiPGppPj7X9vyDP6cbXQ==","shasum":"abf7c74c6d40c4efa54dabe804e8cde7e1687e10","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-3-2021.tgz","fileCount":211,"unpackedSize":8482814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZ7YHCRA9TVsSAnZWagAAMKwP/iDRfmFiF9nQzG1OFuJx\n8mTkQggp1CJAusszkSDmDf5jOcGz9GOiMTG7Izqu7kx2Gho5VEvRoKqViFqn\nIi4pCdcGqiERCkcJJE1tbI6/xkaPHxORzY/DGVyfuXRDWMkasCHthTkCGflW\nPvRqkqjS3vuhnVxrI/B0uhibJawujpZjAb5abvoNoG4SrB30eyQE2FpZOpXu\nNkGcWJe5mNCjdK9OGYsch/fMTfw2btJNEmh6PeR18oJZFIaZu9vvs8y/6Daf\nykQASuJHjJvFXh1tfCh1mIvWYcxFdDJRmk5pV5fEJ/BI8vzlAVDVZQJmY6fp\nKeLfYiy+CmOURc5hLRN+aTjsFeXNDrIUHsy/3tXbTD0u8BmuS8HCj8SE9J3M\nc8ih6q4E55NYZ/076AQgV6OZ/FUyk825oKRBG7k0H+nr4dzyHint+V6qcmxD\nJxUZXshF/2XtN17YadbA13xaDLkSnDBYcVvEZ/Oeee0mGipEavh/6lkApHOG\nsr4s+euaUnugSPe/GRRlA+of9yM7XXhJCMl8KmtQybkV7uaB59yRVLzxjUW0\nEW/D5ZFpQsojhmzCmjYggMwXLMFMob3veD7KvPRdbKhaauJoPVp0UnW6bCfX\nHLI/CSvtNnNEjO2wb6QQAKdT1U3BdpqC/Sr85LbNwZy8QQNP85VzSqGBrwpb\ns3HA\r\n=48lc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJJ4PlCzAwn4h1LozxEHecCcVr7YmN+In0ebmF4m6Y0AiBaJW/xlXCnDtEthzw6U/Cp1VBGOUjtrFsq3O6aMoYgMg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-3-2021_1617409542809_0.8980180207186528"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-4-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4455.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4455.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-4-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-ASoIj4B51BzUgfrbXK764/x1IY0LNaDlRSo0a+Y/DIp2BBpCoWRQUv5KijKpwZusvORbDc5zGBJ0l0fAxUHiwA==","shasum":"a6f443f6be2399d5357ff021b7dc6cd1433a6361","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-4-2021.tgz","fileCount":211,"unpackedSize":8482814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgaQfjCRA9TVsSAnZWagAA+EMP/2/e7OMTMCOxt5XrsNeq\npuHWIDxvK0ndquw5LMT78KfJg7pxQJJ8i9UJBB6Od37dfyVPgG813TDflQ5w\ndhlVCXiRYrfku0vye6ZlmOqIG4yGEipXL+/anP2x2LOp7qkTrYBIjuDITXT/\nQ1pHLKWXrgIEJ9I9DB8iFxEXOdutbTnvEeF0ta4w0K0PhhBiRt5BXu++LvoS\n7U9P41ecXdKvyGlLUdbHCNkxsshIXw6yVJoUijMkyYODr7Oh//Ypg0oQXsOa\nAZlrlPLQRPwVfweaRktEzLjmzc2V+/lQ6yP+lIxpG8V1Q6pFlmOZd0X14yRc\nSW4OiQzPS5H3h3cSBQyIvO/fvRiPlfz2Biu3L5+oGXE2JIJijFnTtOijDIDt\n/LMU47Qd8cZIn5r2FyNusEziR7mipzxkmO8jE4eNcYjrxnCCFauW6nCG3A/j\nM+6wHvxJ/9vajmxI9oFP/lYaYRKCmo03UdPAl5jf4Z3dx/Klu/PdPF8l6j0R\n/wRJMD+xw8ZtMbSp2PcCgo0FTq1YmyhSxb84hND39HJk2CvLPAjDUiGAR2yf\nrpZTq6EFvSqos4h//apPNgEL++B/eeVP21Gm8f4pQ+cvptJkRcT470qH6FmC\nDwvjBdTsMXOaz6ilisD9rMj9BTkiDT79+plcHg9D8Q81pTNKtNmoBPNev1EN\nMH6y\r\n=1P3Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDa0dTFahqFYWfzystXssHQiBs9xBBh+cge/4yj1cohlQIhAK86B1RtQSmxrW0qc+TTyAB44pBc9NbF/CRapABIdTl9"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-4-2021_1617496034740_0.6803855290177827"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-6-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4455.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4455.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-6-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-VcR/GqOVFUg07iqxY0BM0ILZQqEjoR7McrsVCWM7TbQ23Z9MR+bKJmESygsGmQf9TuAy/Je4fpWmNMhZRCPD3w==","shasum":"fe9bf3a263cbe71aafe4814baf9f8f92be9f5fe7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-6-2021.tgz","fileCount":211,"unpackedSize":8483190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJga6quCRA9TVsSAnZWagAAfAgQAKLtiV2784sCzFSksgot\nrSwDz/s0UoFyHp3pHIT7VgVdsCaYueQ4lif+7JDbKLR8wLfgTLtdONNpZtf1\nYnRkhYix0kuZlajYU8sgE80kYVFrYqVnMHjWQV1iSTwsLbdRAaXZ8/bF4qOR\nNrWrYNGpwPXI9tgLO/3bbyAbRwq7Q50QR7N5+/U3HodYb8iJTvTcwbGbi642\ndTi6tcKY8oeQCk2XyKr5m1GbK+l1B5Bu94jBp0wxbK2Rnfz5+CWMoyn/poXo\nIqOpLHKkNDx5KgqGZGQ0dHjY5/fvw8R6F9lC4jSLYmqR9+FgkW1bWZbh4SoE\nn16KwxTU9Q5K0cU0ISmo7RYx+UsYcW1hO6CpJF5SOuZaWPpWzgBxP25PMUan\nhXLax5a2wzPcJ6P74UmdKcADgXlbNsit6OeYupcR9PN4eZ71xrbnrlTpZV/C\nSgKErOGmtxekUxKT63X2pfV11ZWcOznPItk4EPejD1mnAbyMJkMVXPGf6suI\nQYjAu5Hb5+6RlBRvzWShwywQl3GGtuPaGmlPE44vwr3o/ZjP5C9msQT7QQw4\nYNtiaBIepN7xhmzUrwgOst0ip3wKjID3B+ATzsQE+KpULmGp+wT6a/079i0u\n2pGmnRLxhUZGcCLzkQE7U2Armg+t2PvQHXyd1oe6rj9lFqxsDB6Xacd534jk\nFDyQ\r\n=HUHd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICUTMqf1CtG5r5QT/BhSC5ExxnOQYT+0SldWtMlYPh20AiEA/CBnzlyfgiPtbtpw4AZ5nG9vrNZvNS3t0nv0+OTWWvY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-6-2021_1617668782184_0.16897907770944864"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-9-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4464.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4464.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-9-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-61sTSE2+rbTFsR5vKVjlc0nsBxJT+eTDJGP63BychquHY2wQnvov/RuPTBwY8t3sU/YEvDMJLWcPcezdjaIBPg==","shasum":"d82de1d944c6629a4d259ed0bc5652faf9e36867","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-9-2021.tgz","fileCount":211,"unpackedSize":8505121,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgb58HCRA9TVsSAnZWagAAh38P/RyUttkcg1jNNnAqpNKJ\n486HrFPHZlhNbyGlEMvDpHX+QJSI8jhcefQdoNdh2NrhQRYluLdL/Fc1RlhA\nHMxv+Hg9NoVL3uH/qb79dG1MTcwVsv51wVRGVlllTuF4dnA94pBbc/KqAYb0\nKm56YEompniSyc0WDdOguBFZ+MJf9q0qJRMbPHchEoV349/xVtHMIuatg1D4\noTn4mFGmHKvTTaKTszkz/vy5W4yuyMWOJ4KWtw2+c457fH7nlss2aoNR9s5N\n805KK5CViKs+qWTZL1aj3rcvA/bdnB2lJtxdqlUZQk+GxT1tPUnmeIOx12ID\nxV+gOiGL0cww5M2eBsAE9G/iKigDwLsiXMGUl2evQG1LSshRdMTba9qpv+Wq\nio0Uv4jRbHkInd+QMDhhXaJfgJ+NHxUwpGksLBEs2tAASwPrjRyiYD4O0LYn\nHmqIF1ukEVpa/FoeuQX++F+XThCqlZoki8LJ1GOakvttwV0KPvJ8Cb6+dmrk\nXU3edy7PmD8jHww4STdKTYVvz1zfexJ1w8NBr3ytqJ0fNQg5c1KPzuuoDl4I\nByCBUf84rnmuCtkVOKuOUyDNi9WaPy6LXsclm01J1cqcDptiFGnceJ6eFF6j\nedCand/pB+o7eA+eZDNBG1FBmf0n6mPoA9tF4jl2ZyTZBPCpmO/hm2NlTdCw\n8R2/\r\n=kq1r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxgH7WrbEVnq5OVq3q1UiXf1AnaRYprtGzGkbzn2SSDgIgaepN5iZ3mPSBE/q8kCX9jwzDX3f+2w9Fmv/qREj7j8g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-9-2021_1617927942538_0.36727629205195145"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-10-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4464.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4464.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-10-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-+7chTVOytZLU6D6ZGFeRmDizHpClvPNIJuwEvovNhZG1q2aEIHy18yD5RUmwhcO69W167GdZClq1geKFdra7mA==","shasum":"aa43b2cdefb433cffc3498335151e9fee539dd21","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-10-2021.tgz","fileCount":211,"unpackedSize":8505934,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcPDLCRA9TVsSAnZWagAAzucQAIVTWURS0qfb9jc5/Njo\n5A5z5/RF9s/DJl9gdNIoXAYP2v4P3o2qXzYNIGnK4uz/NFOK8ZvGBgikNlIM\nH/3nr3/f+Xo1zTmxxJzJtjH7YU3H5U59fAKUjFUNZK9/0GieVb18kvGnkuvx\nIq+3lKTDOe/cyPeo/DvbQyymuAsri+FQNZORUemSMGglq5L0zGCPHyskOhvh\n6cBc7XqLh+egyRE5RUb8PLSLY7kwTeZ+XM8A5AImsR1GbQdJb/vBHMNjzTF/\nJ6gdoSpfzWj61u12KJdWYwNfN8t97+/B8V/DaCtoInR0f6RMz4oKjfdPPwYC\no9x40G/Wez3ICHUbRh1T6azMLCQEZDMPOzAXaqpELUoUOSOFZ6A8/DT+4JRY\nxJUTITBb750yKHONKP5rLna+WfOesxiGleUH4Xwc1n3wtvnldvndrCbtq3/X\nYVUoDWtROLRHqfLUFT9W2CVi0TSWnBT/AY/tgUPJ+Ah7bBmoSHwfcekKuxqU\nB/eShknLhOYIfapqJrda0vBs+d2rFhRChj4f0gwv8Ldt/AeLkB9dR4pkN3kH\nLd/anCKpRe8v3W4gx5stjOgPZvCJafIcdjZzVFg7+8NE61EMU7yO669bmW0G\njGxzp+hX0t2vAs+1GfdwQnsKARnCoGv8hrYALCp3lEBmsFZxD9D4+vl8fQYS\nyRtc\r\n=7NkY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyEgrUWaHt7pEn3Lpj/MSBaPHWkCrnD2Ug5qJWvYl+UAiEAxIXkJzTsFvUUwqoPVpTN8hqxtiGvbqwpIQ9kINb2fHU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-10-2021_1618014410545_0.6250852584829463"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-11-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-11-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-11-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-U5dr6BcnhPdWcCiSsEyqfJxHbrykudG2kGpcj00lD6pRQcBSiVIuZ58DErgUFlTLL3zG20TfOJ+osPdFg7hPqw==","shasum":"2c8c80f0bb8afff63e9b4963bbca39a94880259e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-11-2021.tgz","fileCount":211,"unpackedSize":8511186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgckLeCRA9TVsSAnZWagAAwbwP/1/OzrQ/SfltwgLzNKgX\n7lKAWWAfXnIHRwMfvwXbiSz3DRO3c+zY3id/P41pr6jZWg508RHj/0xmgH1L\nEfOyFWdOp5aL/qqb8WBIvV9PDtJ88jSQNuW0fKSSZaKPnrDmn3hUHK9tIu68\ngN8iQL6h2FZTpWY7QUtoF3aNzOU6IYzB2nr6tDq8aZcs7uZQlHvdJJS+AIjr\nh0ZyW3ZKVHqbm1v7Xpd/i5WEQqLLkz6iJwW1TfH3Ytjaq8zJkMn2UCozzP7N\nbcJYhR5CWEQrEfxpXt1oxLR98RGNWPUH5Kq4vwhRLe9I7r2mBgO1o8WgUZaY\n4n3NVE17Dp4kXBoMjLCmHXZMT3Fp9BdWSZSWKEC4j1oVMZKKtZAt5HTo+p5j\nOZTrF1J/q6K31Uo/1/qpYadbSHNLW3VPSXKgwlFgGmYfXnHHnUOcUVlIfhBQ\nYoyXAOv/uUghMPBmmSS+H5LMdimk3bnWavmVpPt/enezo1b7SJAoaz+uuHZN\nKPgDcYIky3tdKZdJDZusewcQviU7BQQ8ccwtFnHqc5TfLr6aYcZ3k0+pfISu\nDr2aP+kAt6SAkhS2iaQwRDY8L1HeOE8fFsTiRdROgG5S3+/g9/vpi3M9xQM7\nNiSsgfsCK5uIX0H8W5Bd7LU3apDFS68KXUSx8iNCPwNq79tMR96UXr/ECRBT\nx0pZ\r\n=Thib\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDccvf2ZTgGMIw4VS2hdknRP5ZFRfpjAyPsDqZPcinAVwIhAIySEgjE77lR9o6zwb4ifrs7f73cmpyhssO8ovZcPxd/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-11-2021_1618100957794_0.34378363782591737"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-12-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-12-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-12-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-hCfWxus2gsk++5F33MYfuQUhq1e9ITYHMblIkfp0jXIyjH6tqY6lJGZgx6dh+i4I60KUtvliksMlgv2u7SOqow==","shasum":"184f016143bfee0fe2a33d347135f6b3b1205a1a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-12-2021.tgz","fileCount":211,"unpackedSize":8511186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgc5P5CRA9TVsSAnZWagAAq4AP/RMeGqNvseIohIpuPUtE\nQ0P6ZrfnhaHGlnQhDqMqFm9L10PXG8Alis3C5O6XyrC7/2GojudXPlVExaxr\na4iu6im65yt37VPMg887FO9me/uF9eCK5Sjsj5PpY6CXp3khHYlWcZq+hsrq\n0RD/yPYYk/8hqUl5zw6ISUdpSIgIeL2HiTtj6pVJRvWC0me99ekHpNI+LK6X\nWIrtPxcwlrzXoT9i1KgGl5D6IUr5v5fAy4ecqDLQ2Yhsg/Q2/5rHeeM2S9Pm\nJIRpj2VM8C5QQoIt1XOSEjzL/x7L+oCu2uUKIUfW8pRXY9NzI/LnDr8PL46e\n8m0gJWPHsYxx+J03oSnhZVUtJ6uXKpUlptm4MzWUwo+jd9+jUzxoJ62qJuSL\nrUNGPJ3ydjiOFXldgwlg4zGBZ1Qr8cNAxvRHoUzZlVZWkfq3nDIy40MM9V3L\nUeSARmUqaz+7zP/+Hc6IK7d8S3P+RBAKXFqfV9LA7x3WQ6N4BKGtzELoOijq\nHTMU48QNOZSeNEtkGjD2e5K2xpgvSNT8rD+0Sb8i/vvdSXahxwkUGXSLJDL0\n+xryl3Q4qqDWWejHkEVcNxyD0epqKfmUvHIrbfkq+CoHX1Vr6DnE5n3CPnSe\nSUKSPiXkoEA0Q2ovnSaJ3sG7vUKw5fB6WCFfy6WCJnMJdtOchE4Q21DyipAt\nOCd6\r\n=FVXP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFy+wxiHHCrtdMfz+B+svVleR7/k4SVq8hrWjIg0b3mAiAjUCMahBxGR2V63rWfeRS/9V03lnwPSXIYvI7c2Ex8rQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-12-2021_1618187257203_0.6055381551497847"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-13-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-13-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-0aMrEvCUQ+W6f1zUyRts2dXl+rm1ICD57y9duwvibhV3gqiSxH3owQB0EGODOpTMPCP3c2W6FcQiJ9hElBbuig==","shasum":"f8398f3521cfe044389e3fc9bf48f14784789225","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-13-2021.tgz","fileCount":210,"unpackedSize":8516109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdOWsCRA9TVsSAnZWagAAYmYP/0frxHP/TACEhs7sLS9t\nASpRSvGkJvrbBdnRTDA1YJACjfuR4Xt+/CGekETMOarnxpwb+g/VT9qS3yXi\nNq2fr8zbIpF+e2tZQ+xoJN+jGjFSr180femK9XLUoTbKQBqW7d79UkidOlUL\nLhGX29ftUHSHgU1D9KJeBIP3UQ24wcIZ7ArLorEecTGs1vNmvnM4C1toEFw3\nizigaKJtyoiDt7Y0oTQhAzvxB3+qWQGcPrfsFQMbyQeXkAMG9C5ePzNcAQXo\nWRzCakuyBpGRRuzsV79+gpR7WuCFq+M6XuexWcaTVyHiVTFQzxutX2vyVSE+\nrUDYHgzMiyTSTtLl7SKWXcsC3LLT+rq0rHb3ntKuuzJ46/NpZPVr4UDocWQI\n+fX3xAHZ5L18XFONQOv20NOWSYok6VeoLTKlJCprsaP1pvjODQk+s3Pz4t/J\nkKFOmK1CeHRszfFDPBtHQ4nfDngB9nJrPguUJg10NDNyp87BVWUf6u2OFOGd\nEyXstU1TLb7sWTLTaH0JKLclx0D1Iyz7KVIQx/WrrBUBsOHuAIILQeNLGr+m\nY02P9UCW3Q4qz9UxStpJBuUJQtNeV0DxZX8PmgQelRVIk1NY8J1zmnySd1CU\n3rsOhovIzvTI0HsevpARJwAppykgZ/qT7olDL2NLUCh8y/8yQrUer26X4GxP\nvTE7\r\n=llLr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4qkdammTsVzo8WLxF04PZ+prytYVfhomXgzEGJeBLbgIgDR6woZPsWzdWO29h1FTKLImDQmHBtsqtWlI9yExVQk0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-13-2021_1618273707603_0.6374719957958952"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-14-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-14-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-JMrv9/Zvdh/W5NcHlYcZB6sRbnPTO2IQGFvQpgJpuiRJE4dgG43MopNj5POJRsPsiQrKU09ITp9+s7H13SXvZw==","shasum":"85d5939cb03194630371e162b025f41aabd7ed5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-14-2021.tgz","fileCount":210,"unpackedSize":8516109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdjY8CRA9TVsSAnZWagAAK3wP/1c0Fd69CeaJNwl/eUos\n9cm0ypqOg7MBB1ALVvbcBW/OaTpxHN1qkSJLKQY3tN2QBnu4J8HQB8eDps+e\naoSeM6IcLpUA/TVN3/jwxAirsI6VkLd+qTk8mhM2/TPDGPmiIgOm7R5vVn9v\nCicD9Dgx9IHhXjI9dYkdDhA1jdGx2k1HSGNX6aLHTLlLQZX+ZHHWiSHaqqum\nnwzDDZoPPk7NLKe8IhFuYsS7e7dLHRJE+diR9FvGSDJ2l7TU5fwcfdYNRmMJ\nwYdAS79NGs1cub+DrTlLSqIh56dlJqwR/c4qleoUpMqjEjWCYb+pgU2kXp0b\ndja++s21SbA5HyT6m4uOX9/iiISvD+ZYPG6mO+yGA8hWfD1GdfCQat8n8xvf\na71EmdO5unoGi77lXkcETxkBkPIEtB3hOr8FkMgAXx//YAY3t74rmHuu4NqZ\nmLyvc6NADOnp0tEJcfEhm4fgToID3c5cy0LQ1HFoZX489eBn/MrUZCLBow2t\nujIJV/aFT9AgtU7vVpT3DZeppCom7oBwy70gHjn+nngvm1B9/WJQlFRDnsdl\neZBNxTRBKK+DRJdPnkFa6WOf04aY44imlr7tciIyufHmtpG+//imO26t3dPT\nfbv+vPNf5t7V6rPPqKybLsF4fBSbpssrlkszSAx8uK4AUIYXBSQNjS3gGOC/\nKms4\r\n=ExHC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHRtmXYjVivWwuM4zIijFApAko/ZulLF4i89VhpkyXqQIgLHdR3u455vfNBzrMKstq2cVhw5z9pOHPC6ZZz04ATZU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-14-2021_1618359868175_0.937838200122288"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-15-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-15-2021","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-5Mjxsykvhd+jAr+gjkFz5feB2svE+1HIEs+wapmtC1iylhRAN5bUE8lsqaPqEaLCitWPxH2d3zrAn9ILD7k5RQ==","shasum":"d3db1b8ebd549797efba5262fe7908e6d2106fcd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-15-2021.tgz","fileCount":210,"unpackedSize":8516109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgd4gyCRA9TVsSAnZWagAAzW0QAJfpjGlt0SS3JNI3oRwV\nvixHAjnisVC08MIGaO01a70vONzWQUOCmvNx5o4GwxZeKW7lf9WHSbxLySoM\njUwOwhHi8YJNLfrvj/DdNIdystE1xCktuKuCnPLuItk/gKOgv+7Fw+qQNfFd\n/hqfJB+h1wAN+XdlW8rj0U4mCNXGgo7Y/6PjfvQDYoYnFLHCXUvq3ndcYOoX\nE2hRGIr8wjZ5nxQ1OR5GUmGmyM0Vw3oTM7K7ew/vio+7/AYt6n2vFgCirHjz\nDMR4fKSyw2kwD+9JOyYu901Kk7UWBTxLAoFZL7klueS6SvzLnRQESdINcicm\nnDCwGJwKI17zDQZBovYBBpWjBcr0fgZ6nqla8EwUaHN2cbQ9+gB89qtRuA0w\nM35y/OuuUZX7qK9d3jwlc/59ctI2/49JQWIMwqxCP6VSremeGH1VW3VdAK3U\nBYTVVaV4KK+O7qwIsaxdDqWQW3AdXmTI18t06vmNRD0aw6twK8zKLuoPVgf9\ndVjJjIDpndpDhJjpOHX3iGC3em1B9L+T8ysZxBjq3aNj14qcSV5IF/BuWw6M\nARooD2iI6PSs8zTw5BI2osnJ9//G0hZA5Y3b3FbvvMVe518nCE44aMAHacRh\n1VPHlfZCG2W8m9k+HCb4+fJZEbSP0lr+S1nvVmAln8xl1K2h1QQ7IOaXhSdv\njE8u\r\n=WMqy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEuil4wIxOrUdZ2MDBKzlou05Sh1yREbNxSqMd5FFYUgIgTKLr93fpOTK0MQSfpOQxK/15uRDF3oL/XJG9UVSDRFg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-15-2021_1618446386013_0.5213317215231652"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-16-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-16-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-c5q3gMabM/WVVqzmr6n0oAJAy/4Fw/+n6IOXa1bAJKGijXOpbguh2au0jkHbkZfVQi0HjmM+Y4EenV8eKpgCqQ==","shasum":"3fe4bc2dbce882f4d6f207f6ba4e5f2e4654f9e0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-16-2021.tgz","fileCount":210,"unpackedSize":8516109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeNlhCRA9TVsSAnZWagAAT2cP/Aj469+pIJfzlFT/IVnf\nYNyjN2QPxNFX/14Ao0Kslcg4s45KbB+NDNATLcTr9EclgTUwhLn9Y4eNXxul\n9r+oXRi7aXNZkh8vBTvwhRxhPkit49FG6BWmkxkyhrhhBp5lWLMF4f3/3jYY\nmx4uHeW6USvaYqK7JX3jswy5Couju8UgrKFp2kLLGBMy1s2Wlqu9lDMl1/hX\nrj7jguiEKdagik6/vNd5vmcaKXjNueIfgV4yF6IR3YyJK8dgClXr8yOJPMt/\nxZEgnu/2Z4QFZ5VxZxCmK7Pwp5QJ0qyZZ0q4s5hPiAwEOAIUryS2A+k1sg9w\nyOLJv6DQIxot/P2UAQsm6O7kpTUl7d9c4yQ08wulWh7pL/QxufdI2Y4K73ox\neZCVwlXAbWDKr56u8oqS81cfXwn5RHBakckBW9JmugxdZfGpwVPeWUSUyyuH\nLr4ogvL3JeEpMQr7ceALH4MQ1NcLRVjc/EXPVHR2XvjXWVnVb67+p5lrYTCp\numiEbvnDKfkznNvgjwWloH413yzafOur6Qf66Tf9uNBHwxuoKgs1AerMnIIs\nNVjmaJtC5p1L9kAFo0EeFLEjRmgR3zjh7IozTFTRdeMkYkyBBoGtbeYQMn+Z\nT3mrQkmCW8FV4UtOjlR4o32IkaItreJs7BNEDG8+S1MAxTGynum10G8fjpKX\n3iqt\r\n=RIK5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHnmn+vb76TxDtIPTSJNRQxWGPjAh2vsKIPX0ir9iAQAiA2VD3ey+GQfUr9ClizrWdsRHMOUDKHmUYVQ8vfIVG0AA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-16-2021_1618532704852_0.701276584268675"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-17-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-17-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-b243unZ79Hl7tun9RYDtJzANSGmErzow/AaEauJacvmv+RtFLDXlRmCTtlw3zlHiPsFba2G7JwOBzEa8NqpmLA==","shasum":"71bb826dd7b63a671b1d91089ab15c01e1199fa7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-17-2021.tgz","fileCount":210,"unpackedSize":8516839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeisWCRA9TVsSAnZWagAAtlYQAJ3nABrqdyvda549FNTo\nn/gthMwdqQnfro5aRuV+zNunqjwaz9ODFJfhGuuujSc4EoNtVhhS0m5bgJZs\nvWplaBxXO+hSETNsm3vycdWLPzMcWQGmR5lJYsb8qhiWGzHCgez9VdsbsjOj\nWsG04d/6XVzEjuziJhmylzA7BpAH2TD9Ss4n9ZpyLRfyG9Z89EQl3+BDjfzp\ntam//nvFhBwD4VDjc586fEE9tTYLBngHPyccL9GXgCvmqv02edCAq9aRJjbC\nwkDYhpE2lnW7KYqylevh+YgtXDem9NHw/zQprifMxv/1HhKN+N6KXhY0ZuNg\nIyTGnJAHTXE4mxNl9Xc9r5uFqrXvbbkhFtfltl2Qnzj3M+bHmFmGQV+nzyFC\na5OeOBEq6Y1UlODoGmpR1FVtgdbruGse0BlZ5dUbSRqBXFPwH5jHmhEFyCl1\nSoZhyqn8kdBy8Bygc5WUAZ2b2oHmfua1BO3U8eRf9OBGGx6Orv5rMKDQvjm2\nBipUf59PZ/sbeQVNPWLh7QWJNfn16uqYqEgfmfumPl11mZ3ku4z8uqqSZoUi\nHR2RmPU5Cu/Jsa/FMCRNd6U9bbAcNeFUdQsNV136IfvDF3AEZP/I5VivXUbL\np1plBNGYQFw4Cz23KbFk6ZaxF0teI26CZ8IRmFmDN19nLWKvOtNJknArGZOH\n5Ldp\r\n=pVnx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHszVjNINw42aBxeMTBanpPivJq/S80MEMt1qIqIUlNbAiBl4tuCZ8WGxXUvlaZKyiSTBtDEd/RtFH0oEicfdUFZOQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-17-2021_1618619157559_0.7231808454645778"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-18-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-18-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-R0T5A/gVXrqCEj6xGrYnlG1cGmDrhOBYEa2+0uBAYcug8tCqIve2E3vzZiI6YxQZ6TNvcHhd4ukTRdWpFvrZFQ==","shasum":"72c22950974127946e785f3b437ecac9b03b65ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-18-2021.tgz","fileCount":210,"unpackedSize":8516839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJge3y5CRA9TVsSAnZWagAAWUIQAJWtQUxEK8HH5Z1LVENu\nBuEL6Ti+B978Kc61HhogmPLL0v1cPyZ4dakIxw7JZ6Q0nOZfyZmlE8ADEcmz\nxws6jFdZZ6Jivl3hw0EC0QBNP40Ha5xTxtbTd9PCC/TLUr0Rrs/v9A2eno0w\nP77V0mmJy4Oo6YkZ8z9JRmT5ylPdrjq7SdEpdkxohaFG4ik09HwELGEa0Ofc\n7Zs57di5oMJAu3yQReLysQX8dtYY2Hj8EGuElJ2FVpg8tNZ0EY0hSPLUJOY9\nppB+j6y+A+dqfO0adLQM49LgnN8awkej1VQmOKQJQt4iGEBKUXWJuowO41wZ\ng4NQmC5FndLMUIPBEvvBpQpkelc89R8chyxSInidajdZ+REfAOlneGww67lg\nNvMuF84Is48nHTe42KG9xOitHVL7fKXQ0NdtDrDLV6OhZ4XtkUSW30cRrRP8\n+zvko7T2smvdGRtt2s7kQBANJvg382DIVfVI7q3GkOBW80dfsEYkKEV1ceNQ\nu+Q9y38pvEwcg50j9Gy9fNsnB1MkqvDfSxcQUqzyhiTLuTMtipgdQ3QbBm6g\nJWtPdGVsDRSE+AwaaYARxGgoUcowuRWSjo/WjGdQWMORokH7Xz9fho25BubW\n62b0nsVCA2Mj6Lq+sE9m5h9rY1EaY7yH2xyk4kw+SKmAdz0PYhiNgGfHZIOv\nmqLO\r\n=NTIX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmsJkl/WTe+HRFgDCDBDD+i0SuKRns9vzhD0FwBz8LiAIhAItcM1SZ44S0YtDcabTqcH+4Ip8ZoOPTMGMlII4yujKz"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-18-2021_1618705593163_0.6929621385827496"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-19-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-19-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-19-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-3Yrmp0X69an01cxh6OY5a6O+nivV4Q2v+E5/q8rYzTW92T0L/hPOQOKyR91u0cKYObn/0aT3dKbbGok8hSkgew==","shasum":"98d7e553b172c86302f0afc9395473622e2d1896","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-19-2021.tgz","fileCount":210,"unpackedSize":8516839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfM42CRA9TVsSAnZWagAATw8P/2qGIzapOzOSrv7KESAA\nBgY22KaE9cnvkMwHBbFJP6jSxP9zW0IffsYaV8tmDh6OYHWdQcGm183pLciP\ncAFzbyEyUSYm/KMXcMf6fwQMsrk3BB0pD1ilH1RU8PtQt0+ccSJNf+f7U//l\nGSmhaixoZBy7r/OSOtv9HuOxJSqlx9KeEcRhkIx0JJa0pmMvEbQkiiKtIYFG\nViXq5B94E63v5EFh08dgf5cuCyxUoaqSDNqfUjYvLOJa+OSOQDSAZYo6xDNQ\nUBRnbzQQozNCDJwljG2DOI9TX0EuIl0I4oz6OGCyAAr7vham6Tn6BLeYv6hm\nRlzEVr+GlNWvdDd7e6+gsObcou2CUo7bmTiqO0OrP/eJuiw+R6sMQAkiHmDR\nfq/A1UgcZUBJbgtz2ffiNT4lVqVLR3ozD2IDEJC81wXfOatGfd/6UTDDMJgB\nkf6PcEDhh8f9/4ieqxO+jUYlV/6egv0PRS1GMr0QIU+P0QqWqUrObtjCRqYv\nRfyqh47VPX/qMzdZ+a8/55atAUFSEhSp+T1Z/eXAGNQjhmuA44bVcTqBxuDf\nSli38qzQUWMPMsq7J5rMu0QpLeVjSTstzqsrDIEytSW5xV6pA2PxENCSzvsl\nSFBGbXvsgBNSGv5sxe7cPCB+ML3/gYzQ5cAOnVtyYLqnweREc9xw4W1FfvFW\n6ShR\r\n=p1yu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+XAos1/o0Ggbr3QUyQ8VKE/WVLLSdK0/U8BRum5gh3gIgNd49SwQa9p+kqyl0cQDt/4sFI8YOJDcXiSTho3WDss4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-19-2021_1618791989552_0.2969111774723203"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-20-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-20-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-20-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Je+wEJ37hbQnlysaOgesWhzEJpvJ4eoT0vPI+rslvehNxL5sRjMMskFJRHOfDmzuH7OMeCHdi2tPBg2Nmgf1Zg==","shasum":"05598e0c21a67c707fd2df3f6a25b6fb0b2886ab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-20-2021.tgz","fileCount":210,"unpackedSize":8522425,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfiCzCRA9TVsSAnZWagAAwXgP/0F5ePGtMSO3lT6jnSb0\nViZhGYYxFtU18FwPCox0VkqPQOO6DCamJISwg7D+C/uJJJi8exuKyVy/8KLp\neJHasLcgXb52mXjr+XR4tFwgngT/9N5oXT+su+ERfjwR2TvUy/FwENt4RJf9\njJXuxEPh0a4XknD0WgVWg7pT1y0JT08q4SzkRYaptyeHvqWeZeVSTye3lNSO\nApQZBNOlm8+ZtRcaKyejdKlNJhnffdD0sXWWlOXjKtCUL7K+PE6ULTcziR4I\nxv8tvwoaEZjW2FynRkEt1XyN3BhTjI4/AbpzsP/aFcNyuzCgnIz2DoPE7qrE\nNp34CZgT9AbbJovqtkImPWMtuMria4XQ80OZa/MKKCZVbTGCG5ws0jYslUiD\nbxIfEwBZDGtVeBfv20hfG02GyNA/MkgqT4ApNT86VsizvqhpiOxOWUMOKvu6\nIMgb10wecjgM/wjSAEzAeCI+u05IvSIZ01eUEAJUnQmpLUNBrPvNpbR68HAG\nYjXwUmsYR/HXsmmptSJz9qP3S2OUeWMpFyclqidt0IHjEhsiWMxPQgCf28gZ\nTpn2Z/Pjaxhr/bcaHMXnDtxoTmduOmKv5i2J2g05Xzdr8LeeuMGd7spqr4v+\n6ZkzroQNxMkI/1h9GxsN75wHzigQSM0ssDZd5/BKGRpCDFqY/yOFZNL7KNcf\n2uXi\r\n=OF7I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDlp3aUYme1vj5AShDbD9LgfehblmnW+3WWjSg/V6qk7AiEAgIj9R+o0B+YIO8jugqSVMCS9bIxl+MRz1RaUDkE7Keo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-20-2021_1618878643214_0.9079930148135709"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-22-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-22-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-IBl5ti5ST2dT/5UO3tvteE4Jcr8k+jAeH4ARS4RunJF+fa4UjFvMMXvp5DwCDVGmd6Z8+b726YymM+At8z3Q/A==","shasum":"d666f3867fe330dd85fe67f550fcc914905c0de2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-22-2021.tgz","fileCount":210,"unpackedSize":8550007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggMK7CRA9TVsSAnZWagAAS1YP/jWa2W8MPEbB+sOsiOei\nQbEaDRamkVixmNxJ4O8I1dRitSt4Z9fAfbFFioibEU80m2cvfHWUaPkmRIO6\nnfsH/LUoS8emBcj3TBwNtI9DyT/vcvXjJ4Jin2RQF+KXYgEEICmUdvej4Uyw\nSVcH2Daye3mbFn0WDXPc0LSxb8AJvt9gAPlwkeJDZHGonBMeYAwmuo/WxOUP\nMIw8eBmcYLWfclkOyKvzOUAszRE+tr/Ih9somYvhwYjfr00bo3U7OjwMQSTI\nJZDq8MeNtuOYhZTiAhuxnJcWN6DRfHTCAEsFLZ58FVJJB/YaS2t35O0T/KBc\nFewKfrVY72LhHskLdEhWCohYGQpQ9cRLuiYi/xZOKHUnDsdHO9XCW6mTMq4e\nHMerkZBkWzZJipqX1/eclDw+CJlViAezYz99xYMQ2NiodyW+8HN3y23nEWiu\nkBUT8GEOgG75kRzpOLjKXAV0hKkGU4nriA3oxTAW9A3BeQPHVHhwWCrQSSll\nXCwejdLjVmGy8OncLd8ZK5EPAxpji6rHq0i+BE/0PyZxf0y+qngcIsHDhF1r\nJXpgu15J43F0rI0kTwGJZdsb6a2JKA6X9h0hFThsTrtT6lXHCiqZmZFTwmi2\nVuOyutjOGMaY4W9Bi8qAh4xC71u7rdvfKRwm3VQTi7inm2fJKu+yy4ZTeG7v\nRdL/\r\n=nhDB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA3qjhoo21NjKiKC1TiJqirKz/mVWfL/lh/RFdk7zHd3AiEAyb/873GgNqJu4WJCp6GGdpGsT8yxmV8lYU7sYu/F+eg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-22-2021_1619051195293_0.91726541517318"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-23-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-23-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-23-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-14G8STgYbpOhShxtar8RnRfwOcVCIlVNRYzwublE2zu92i030vw2YyEi+8OfN9UMggySQrAWvX1TWZsVL56UAA==","shasum":"2df22af2c4c526bf1570735738b18d96f4ba4af7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-23-2021.tgz","fileCount":211,"unpackedSize":8552935,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgghQlCRA9TVsSAnZWagAA99AP/3P5iRIgbzNMqWvcP3Ag\ni9dLThMoAnxGpVTvDAI2L2rKzBZ7RLClb679KsQlJ5dzAaseYKPoF2RLIJp6\n9tOy+AAH0nk8JshfZHIq7Cog0oGLa3VK6/qSjVaaZIRXC8yhvsNcqhfl1smD\nkQvREdGH+yVKt/ERSiyqNV4v91uY17KzahG4YJa/nFLVrDXt48kCzP8foIhb\n2ytL8oEkwqufgTHwUBvo7kpsHGEWoSuondvvlA4c/0BFVhHYo7avEf3g0nmf\nw2xIRw5gWwL3Ts4OuWLcjFnz27MeKeOGmY3/l4oIQlgVhMDmva7i8z1QMLXR\n5QjgyLIPzIg/8Q8qaKaMF8o+lMu/Ekqd3TyVPUVNN1f2GVs3hI9DX+uunjH2\nJSTgyhwh783E6sFX7MpeuPT9pTenrZKyFsXpPkjb0xw5kP6SvYaxD/cMy1Fb\nenmT8+ZZzXL+InVsnHxyVc4o6VEZHvpkauKTYhqLonsV6O3JbyiHUVp/1csh\nmfZlbEt6mjB+uHnHCde3frJVcGIRUguZfB2OW2C0lMeMk4DOmAheAZW4tVdu\nr+SMJ7DCoON5ekMsApvbA028VuTt9Es57ZschSpmtg3GdP4ze/y5rYPLd5mf\nAth4UmqMjAjkqCCWM6F9DR0DghxXmrXBKG0mnEjz+Dm8iKfHGD3aEMmTaK18\naR6B\r\n=+6xy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBojDhTC7Ns7v/6h6xHplsqjm4AzWVm/28JpEgc1jPIKAiEAx5lFE99tranOZpvqsEJDuDjEY7rVK5/zxLqwpylQ/ro="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-23-2021_1619137572718_0.760818799126652"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-24-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-24-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-JwDaad6cR60cFDOn6IUmwddBL479cLxWTk0gtRESlJD457uKhYDCGxDUZOEvOvV2EznzU+UgMzVciwLr0zUwCw==","shasum":"d765176ed9a2fefbc03e218a2c7f1ccadafd8e14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-24-2021.tgz","fileCount":211,"unpackedSize":8560628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgg2XsCRA9TVsSAnZWagAAaskP/15EWyDt2gTKTD2R5fk/\n1vXE3QMZFsz+kcLsidyDBF63wbf5nVL4w1xDMDJUbzhaDB+HktgXLE09FW9A\nmOtyqw4EKukQwcLWnOLkpdkTItBnOnJONRvVdYiLMfRibe3vqnWz1Z2zCyzM\n7AEy8XIssEIvpr/YwpXE6tf8iXQGdYaOylqO0nEkpEfSWdXNoq6LTHoA1LB6\njTSnl1bakbdflkV+miSLQ7Lk7gshZahTqDLrhRHGApWV8Ws6WXGbwzKJiD3w\nwVcz/LOS8KPwdHYD8eEkFnF+1qnQ2Z6A2rxwM3qiQEGJUOK2aFfvQMaSYxRj\nP7LdMR7TauUc5aOqZUp3pwge96LPfb9v7gKYybtYF2zSxlFuc1o5x4K62fyw\nF+6FEUxRqlfbAoEtZPA/x0fFnaYuCfDJzioAy3ash9YsL7hf5AgjE5WMp22s\nVubwYtb+LHuEYAsvgr3M7SuBWzhjgTiBCvPvbY5RKVc3l598kV5YhraZwCFR\nNRas2QVwRgEV1n8gaHgeEYj9Fiii9oif5S/g4gOamBpnKq/2pzgyw/patsQR\n6xCrXs2BjpKCg2iiO2hGxZI9DyJB8zUdmcpDZn1x4EqtleOfbNlvUuXPn5PI\nBk0IwPFFw/k4wj8LAOGNP2teZwR73V+Zz3LjwFPtBXsY4sPZZDVpLVGH5u01\nkO83\r\n=DmbN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGr0Izto+x+xj1VELfoHb8CPXtskFB7Ymsip5cVMeGLcAiBRPWGVFmL0EHkDUH1+l4VjKLWJ1E68MlU2Wq77tfkx+A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-24-2021_1619224043483_0.7230889624953138"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-25-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-25-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Qcr2p8tPBMaQXpX27gzOUjpwRdwJJ+KbZZyQUTiyjPQvGYuJ/DH611d4jhR1oxfmmM3IBhjSZw2Ei2GOqeaPCw==","shasum":"39773cc472b5f7541471fd1b7741941bbe30d01b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-25-2021.tgz","fileCount":210,"unpackedSize":8554928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghLdmCRA9TVsSAnZWagAAjPYP/jg7A+AEhxywZm18eDmE\nDPxBwweoEOYBVMAB8kJsiQhe9M3o3qr+tp7oRQUr7wrbtNHGvUOJlO0A7r4I\ng9qKfVeLxc0Lienas0htInrYdDGGwWVnylVAkat5/xnhDd31LMvwFwZfCya0\ng7zQMBxeji5v0rZZM70fpreqe9NM/tqQpQQc0hEaECp15R1q9LQok3mQAtSW\nBsxYvAyR2rymyMtgMPkxIkav+/mLz5R/Ot+Leqg/u1SrwMV4N/Lka72qVO1w\noFVGx4GLmytPZaY4NJdm5XWoB/zojA1rigECI+m75e33lM0vc8egN6in7+l0\nS7hKhBUYeeYvjoIcSIkMh38lQ/1x55AFrvrjzXXOgJvPzwcFiZF7faxHYunr\nj1MS1fJ2dkUGYnKyW63YrtBq5lC5uLbPHygTYmxFL/gG7BwyTZ6hMWc7JsZS\nNsRE6tOpBBVsYReapV4H14PtELXM7ruc/6dNX3DlYSBSdYUUPGCWS6L3qKIR\nUqU1KxLTfKZK67C+49otx4dZh8zGUtgui7JmcYHg/mkNo98gV2sVP0T3JQOs\nKRwRSVkluS3jBXtOPomzZnXMFUbcZ9y8du6Y1sH//H6etr4gqs5xFCXqWS2L\nKCIyW8/3A8ybXnlFcA5PPMtREUKzD6iMJxGT+24+DNYnDu+jLqT8OU2qQnzG\nw5YI\r\n=ncVz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICigO9ibpmsLmoow9B7Qq93igUd8kFQ4rCYZ8ebw6UNUAiEA8ZW1rllkcMlk2L7kWkpuBYW6tT8G/vM8jdOh18hTpCk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-25-2021_1619310437555_0.05103545964581313"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-26-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-26-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ktmIkq4HdIBNXYaKnuu1fF5g3LQrWFsgGPvkyBHEP6ZSbDMOY8rujNjpjssN7bf/A/SW8wxe5CNJlyg0PGyXoQ==","shasum":"c499f6742373182dc1b7aaaac273a5e9fa0fdfc4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-26-2021.tgz","fileCount":211,"unpackedSize":8558103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghgkQCRA9TVsSAnZWagAAfroQAIOkAL2UFRfW+YjO1JVC\n9WvcGHsuq+4okEQNYaQnwNnfN4S22BGdY7tEKHyigX2ePaLKQOSVqVAJBfea\nVH85kec/Pqh6SJWxI5frcYTJcEcDCaCQuBE5j3gLQMM0xSctuI8xT9assl14\nXre5b7rxKQzA4fJwxHklTZOAdS+D3OqfO/CPDeJdOu+mwa3gCnyq+xl/9/5t\n3UM2vTX/RM8eXGCAcQZKB2WNxwaKr6Ti19kMCQD+DKfqWUZrCBFQUgKhdLUY\nuAUhrqj6BCWC/Jo2iezenazUuw0yzobcQ97P6I1imhAl/dvEQCxf7s/qKV8T\n5l3VsHGaumpu9wLIZyGLjWqHEpaqyXVWmuI6BuqvAOoATZ4jH+C4c5I+I7Sr\n6yHh0liX+hTgoLh0Neph48doqU57Y7JdmvCRDBTWhaH/K4T1nks1eK1TQenp\nKyulAcrtBcHllw64KvzGzPoLwQzANi3JAeFElR9BAUZBxtEVNgQ8nQCZ6ROD\n8lh/JOztdWfCcyCvVARpdAA4SQaS0e2of4F7xSRkduYFH6RN54ssaa/4HQNI\n0vHk3ByNCWFC8n97a3D5Z6ZNDdf05atuI5f8nqMoSzbaNitAwBGaz9HZCiFP\nft95LOuQvcDtH/aBO6TO5awEoxr9H53nBs1NQIf3+mmyOTAlD4L/IlKlVq1B\nk+iz\r\n=zQhW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHlwwuIoyt9DNzGOcMM3RKAAS8KacB7viXOjQtWqGAKWAiEAkpnpZ/vL+1SNrKR7FdLeZ4vvy/St61MAyekk2n8iQwQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-26-2021_1619396880116_0.9469314439084149"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-27-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-27-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-hbPZPB98IJiT13BRHcvnspoixaK9cjsPUy9hWkgFGVD4frQcL1mOHdbJ/hXaitmBrbemjXk4xBPpQnTIGkjVsw==","shasum":"7ff5c3c6bc8d677f0fec3ff221d2d0e786bf1bc6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-27-2021.tgz","fileCount":211,"unpackedSize":8563976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgh1o6CRA9TVsSAnZWagAAZQUQAJpCpSy4vlOXz1LnUifD\noxRZT3BRen4F3DHhQKYFsbgnqHE7WEcwGzWkNmKzPUVPE1KQPum1hlfx45ji\nxgRwwaRDrYHXVzIpyg1WErqmdRbeK1i555+3LPmaiB/3JMNWaWzhZXUevLnA\nGthCy+3T0dd2NzJX/msnTtnvUrdsPUgT1X69WRbKsm419Rmknc47QFx7U7xa\n+K8PgUDtEXswi6QRbbUrfCeCVxEEGwrjyA+yLOK/CZ4KoXrN3Pw9vU9FSubY\nhFIVzbylQP5klrpZC/lrwDJgoJQQOjWlmUIRdgbPed35riTRFCfKu//K3Fgx\nyl+PSAUmGFDV+f0gcAQPVCa6sEapp8kkVV9UWlG5+Vc6jwwaShYBZwFLbLOg\nnadBXasdsTsiXq80PH7LuKHuOZ+GplASWf7l/YCUIv1jZp59uOISUdBWvRs+\ngDMbdkvDrZEUh73SxC/ecrpbNHUq1va7DK2b9+N8+1TjamYlTNHMsnfwa30Q\nHCi3pNs5Fv7G9ZBNigFEn319mvPgT7WmoAWFvo0w0b+3TcztK93mZAoJMJph\nN3B4LsXyMI9MGYKnDRkY+dRylmBv0FDUkIAxSre3Vf8JeGaLhQ3ZQjj/UFm7\n36VudRSxqM8qJEFN9v+Y82jmZ2ZVSnIp5yGowSdquM01bufz77Sh9tTyoljm\nZIP8\r\n=IhF/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDX/X9PgGMu1d2lRFgK4lcr2J9HazlKq+hwbKdOi3BMyAiEAlTc+53XgTfHMRJkk3mBylIiXp+kcQ1F1ys7FUG9c/FI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-27-2021_1619483193844_0.9806022524568012"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-28-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-28-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-JV/NZWGImUlicy8tLC+bezRs/oOy60kYubPzEPfpOzuKMMclKWXhCtfu7/LSq9f3OewOnKBhM8vBLeqOFKHdbA==","shasum":"c1a828fcc3fe5b20b44eb8131954e8f50608101c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-28-2021.tgz","fileCount":211,"unpackedSize":8564312,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiKuiCRA9TVsSAnZWagAAolwP+gNL+ZI5V2LmwCqJl1uU\nq3W3JsDNa9UOcuJ2oGF8G04/NeHmypwDVzl6s84QZcjuPjPbdwMaAaFNF7Ll\nQ/b39UC1V5vX8157N3c5e0DcMud1u+OFd/DC1pIedATZ1sayyXEsB8HbslqJ\nbByNQ3oqGyac1jFTGNBy7ylnjJyuVsEn2U8YPxvKIZMCSsjHmAJlB456SrDF\nZplDNwUnmiRt+RjBecAQWArbYhnnqTMdHxAG4nDOEJW1I4E7EtRNEWoy5eKw\nzbOP/V+iBhPPEc4vxzA4l38mjMyVqz1a5ZiOjK1DajiRsDVqWFoETLtJIXGM\nKMeksqRZ3OHWnxONBT6ndhasm3RrqJye9L0HTTCrR4BzL6OPGac5PSgiLzuU\nt+QoVIZ642NO2aYovvkASfv5CJIHiLiZQs8fuM813+RAy0ox1uM8gDoZygEr\nrUpy68KZyzX+hqlxBPzIRl0TZh8kaoj6XlONSRb/7hazPR46bjHljEWNXgY2\nwnEKvbfKeMsE7znyh1R2rJihDUWoRzJdEp6b/OLhey6sQOqQsEUZQU+O4SRN\n2Gqp4zpaCmg4SSQLe5aMUC30W/zEVdsheHvALPM7DSznE68KlA9pnVS6LqCP\n/XfSI/6k4vJ6IUnjt+9AN54fT5wovKAF+hj8yCjZBRxq+rBF/WGxBV9yZN/8\nxdf5\r\n=J5rv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSKsXKT0/3J2HOcYLZGlpxJozpPaLV+uyI70pW2+PzKAiBP+RYh1QpSgLtTWWZ7XkOyAxvDREUVNwK903tsOrnX4g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-28-2021_1619569569334_0.6848064292865352"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-29-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-29-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-29-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-8m4WKqEQIhsxJPZVXYm7Ua8JNUB4chtl7dUSui3uWoxpik5cIErfskQ7m93VUndK2pYgVVkvn2wyPNPnkcio1Q==","shasum":"0edb18d1961e7cee7ba0c7918f5b88aab2f2ab69","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-29-2021.tgz","fileCount":211,"unpackedSize":8566259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgif0MCRA9TVsSAnZWagAACIQP/3zRthieBVS6SaP39Hpa\nC3LPQ4dp28wrgW7emCS0W7JoZDDHdsEgpbx7of8KyzXx/nxDDYRhZC2za9D9\nSXgo3cBOZ7cM2VLbzCcHKkOmTcwuy08Q3B1sP6Mx4fnnBqOlKGdopzWaahoH\nQgdP+tfEZQuzUEKNSvVNat18+XczmHIWF1viWnGm5FbH1vQJ+PdDfkd/Jvbn\nXQsiO18qylsv1b6WonvIg/eJSRiyEuGQ/oET8nRgToOfh6BD9aiLJpwjR1HH\noyuWrsP0O9gTjTNY/+88hrNa9tRny/pvsK347YSxo97BGnWm/0mJFfqRfK0b\nBuseSe/P2SD3GoXkJmFfGbaoGXAgvYkgYZcdgMtXJps7+gDfQSEAajoroZFp\no+nYZSXfLKsWmfHVgbAU5odnQbtlYsu/9XMGM+gFv5W91DtDypSWtFrKWMVE\nWGXpi/ZMbSUZN5o4l79gi0MPqMqDdFH4LTm3lpShZwjtsDUWdEGasO6z6kjA\n10yGtXV5q4nHBCmkLrqAvBHg0YonWbKJBoi2a1Cm033wE9xS/mW3mrPNGaSP\nCG2zsSkeb8h09rTG6ZkTDiyzcNaEMno8oFw5Jj/mNVLdglzAZ3dV9BDWoPkr\n0w/PEQRNpEotjceUGelREXif6ImVDUnM4oHrOuPiMAkxBqSiY/2XAc0RIiRJ\nFGZg\r\n=j62d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJg0Eokylo3O2A9UNcFKPj/VmlL8kyz506Ej7aqB2p0AiEAjNNsBYIkkhd32Szr3ZLWpNH2pdUWdOPX4egaVXkdRAQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-29-2021_1619655947804_0.43304375513562454"},"_hasShrinkwrap":false},"1.11.0-next-alpha-apr-30-2021":{"name":"playwright","version":"1.11.0-next-alpha-apr-30-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=10.17.0"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-88.0b8-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-apr-30-2021","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-pvH3r2Gn0w+dlW2DgT+qcu3wkeJcjjUFF4hrUW1COnrwMDtPs7bgIABpYPsM1ur/U5pNWzytjqdg9hdazX85+g==","shasum":"4a2c90a7610fe4fe9098ea983f85a8d06dac7430","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-apr-30-2021.tgz","fileCount":211,"unpackedSize":8568463,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgi0yfCRA9TVsSAnZWagAA0DsP/AzXXctN7fkjpsVEh4rA\nPKDlhI2/6XD8/cTujM9DIxvB4+MV4L1Moj3awD+eIFY1SsNSzpfKwmm5g/d2\nuuQ/Qb9DxdV4QcZOmT2YO4bXqIc60i/Cx5w76orFLKzlJuYx2NPVoZI6qB6a\nt79K7NilO4xTqQaMuz5ZZ4pweKLkwwAKhoLkcnKscpkSiOfP3M36OfRo5XvM\ndwUqalOUdMezqeey0tChaFWG67Mim9Tg3B7A+Ww09P0nKEaV+PAYR9ZbagW4\n48zBOrz7xNp4/IxCxF2Cw08e9hQtpc9UtPwdDrlWCwtXIlatJwFHXSXvTG/U\nYncJDzGC74HGVifLJZbGN7caeRqUy7xOGzd6DArkQqfG4XjjoBB5uvfFs7F1\nlmX2/ExNdD1m9UM+pAlY+FkpRGKmzfi3+pKu5p8deagkPwAdrl7IB0tPKOIA\nly1faC7kt+tJFFeuioaud78TzC4l459fzo8blPPqguyrmZSl0y3AOmff3S9t\ncwUAbIcciIK8RjykFBpJvBJhmgDl13JZ0Xp1BIfmxat9kncAQ5hHT+ZHoIwB\ns37DVK5KNYhZbAheWYjl3YPqmJbXtmRbqQtBUDA3L6X13ztg54pjozw38sAq\npZkID0b7GH92RK/cfms9+GGIbYrzYJDngMiQLOo0/rML1agLGypyYYDzmkqz\nYBjG\r\n=yj+R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHydPQYg09vfXcxjyz4g8BH9RwMLgNI1AKvGgRmmpXuhAiEAqn6nSOvatSNJlbC/+XZ7DMPScTCqKyyhkk+byp2cz1c="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-apr-30-2021_1619741854963_0.8657362290122645"},"_hasShrinkwrap":false},"1.11.0-next-alpha-may-1-2021":{"name":"playwright","version":"1.11.0-next-alpha-may-1-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-may-1-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-SxV7+3W5XXkDRv92hBzHatZT7U/jbP+c89WLa09wb8VoOyzKbMdECPud934ujMKtpHQSO2bW6dndmrJ7t6VeGQ==","shasum":"a1a0f1f74039d056b57dd3f3087be3534937e368","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-may-1-2021.tgz","fileCount":211,"unpackedSize":8569099,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjJ4/CRA9TVsSAnZWagAAUBYP/0OaIODaqrOW0Y8JzMht\nau+WsV8Dyx9jbOVQQL+XEPhOqXrdwljpPAbZg2Juw1nYpjJcbVHSG32XwUBg\nAcC8Eai5+sH/PMMKU4Ey7qFyoWaJeMIPHNLTncfn+w0V76ZM+UoKty6eGVqx\nUoI0YdA4DfizTm94AhafxTyo44uyznuoTxYHvX9paoI4IxsqFJOYTXLcPvxq\ni419jH34WzLiag5GMnIFIcok0EnwW50hpinkE3uN81nswtZTxP2obXjGvjm6\n2ja1UrpFd4+eVX5r9ULnAKMe368SSenkQjWeYkmwRjNIZ+KaA6az/+dOFeic\ns85hxyD2dhEgDkwcmmvuPQBdZJThNEQe8lo0UTUYAcPSHHwMB+H9ROzdaZcs\njeHFbOSwQ2nOMk43xRxPTIG5k+XHMPMJbDew1VIexPMGxffxc4eeaC7SrOul\nk8ZnyrED+zDaLAc63SW2dgxIV39xECe/HCVa0LLBgGe3JEeQckAO57Zhxqlx\nr9Av2Px6Mk9VhEYJRpnS+kmtHvYur8nw2OS+6Ky8N9E5Zbb/ogdFV/Fuhat5\nghUGHNx0dYLJQo9hHQ57cWca0wqttsnwdDe0JS4VgKL38AGZ0LYnpsQQw1LR\nElxeMTwm46qgmp+DWH/B068af4mPVBcEqenljbwxAhabY3i633WI3JVfBW4t\n/861\r\n=k6KB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8SkQU/MvZeeIT63lsXfdbOjXv8B7JuEldo4YGcY70KQIgcZ0Hj84J2PnJl4Tjx4hNs8CXS8o+N+FRG2g/Xql+1J8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-may-1-2021_1619828286991_0.03337441520265494"},"_hasShrinkwrap":false},"1.11.0-next-alpha-may-2-2021":{"name":"playwright","version":"1.11.0-next-alpha-may-2-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-may-2-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-H4+KM+ra4vomA9lQL66zEy7kN0ydQv9dpwO0H3riCsVJRV0TzKoVaMPiEreQZLHIU+Ibz01AjgZeObemnJZzNg==","shasum":"3f639c70dd86d0cb8c4c71c9ba695a165aa2fdcf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-may-2-2021.tgz","fileCount":211,"unpackedSize":8569458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgje/nCRA9TVsSAnZWagAA9lwQAKCCXs3U6dypu1qRggkm\nKZe72004XmbjlK9O/+2Xsn58cd/wUYwlj5aLP9jIWCIhCOitBK2acwsZ/6Al\nBWQf0OAbL+v3M5g8FF7RwCxqGiuKTT+w2QxExb3ZYgSQLOoDQvxhZnYHhW5M\nzQtkGc/J05haguE/zjKpRCA0DpK9CX6RlrjEPAUO2ZRHdm4r5ZNpHhWAIvcv\n3CQ+2aMNoGdBWC8dx9QtFS8ao24EgicplAbDoQMfdGb4f6fKMKxaoLnuZrmd\nMtJNZpI6JsBRmhO3SFCLVfavFWeBC9+INPlR0fyRmQMtV7rio6E3Ho2uRWpG\nrQ/uJFL1/+4nRJ+zXgKD4+vOCZ+VinynAV2GBnux5Oh3JRRj7RWP3MVh6GL0\nMSqOIfsXbofsGrV07Lcirtfbc4OFykleseywENeFt7Uqu7pSGtc0jkqi7Lwz\n+KF7MoYhLGul7L6gmY+Au68a03BF4+PfqwnLDqQIO8vyjzE9aFl1B+5Mlo4U\nygkxYiR1BGv0AF0DYLCt3l3gm+1aZF0O7/uZ1G8CNfkEaTON4OhE/Thn801Z\ntySQliOX4w+SHF5lR2+POW6UgbUzgo5yobvbtI5K1wLoUMfN3CESVPAuCxPu\nTCVsXgPvkEXEeL6KOs33OxiI9O3n0rf2oRxI/TyQ+52XELGF02Ak5rkg4FAq\nnBM1\r\n=YKiS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQxug9QOeSJP/UDTyaXBaPW7hx3IYaQEm0mvSyXVhK5gIhAM3TtBzK+Z/XkiYUoLnTBen6uABCt2p5MjTNMyvTkdpJ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-may-2-2021_1619914726267_0.8163177657830936"},"_hasShrinkwrap":false},"1.11.0-next-alpha-may-3-2021":{"name":"playwright","version":"1.11.0-next-alpha-may-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-may-3-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-gxnnC9PZi4hjSHs8SF5jKAw18zIE0/6Xp3JJLQBwcSVfWvnkYk5Rhr2geWzoWHVSALrD7huF9U+LVp/i+WXCAw==","shasum":"f7c0fbb2978dd5e40239bbf38c7398989f30d517","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-may-3-2021.tgz","fileCount":211,"unpackedSize":8569458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgj0FBCRA9TVsSAnZWagAAY+IP/R64HHspwTy1s6iqtFbV\n0OnaflA2+SBmirVSqJLF81sPh5hI9bFBFX1ylEirLmRe+kAK5yD/ycjfE1CC\nUEQJ8vNeD95/+ocVPsoAyVO0i+3I7/709pw4K3Yh6p5LfE0BgE44NXzDNGof\nWk9X60vHWMiqNJg2P5kZwlxpX19eAbsipFTEOT51IRrjUGfqW0YIpZbru9mV\nholAJZarFoG557FXHv8AABAQm8PjTh8Pj924/ixI9kSvVH1WtYhA/w1lkhGm\nykkiFoaqcTZ4qXismGFd391HVO8pxTBxiWEoKNg0LoTiFOx4sK4nyNKWTqVD\ntTmAJJYUpoaXU/tuZHf2npWocbAeEhFXEj+5/V2OHLbxsGSTVO2NOVugvtdN\nujoBcyBTv6MZ+dHh0bBg9fiWKfAXGiEq1i2UbrIw9KroHr7BJE1lNTbzGTYu\nlSIg34fZ/jpkomLLYW/hrJZgz9Og2Zoaxn8pnO2rtH50puas9AHHulZzFx/J\n3bNM0lm98htwWIYE20edkcyWGG7MFEr8o6/VL7eXZCUdNlbYVLkJVc/on+4I\nvhBp4HfKvS3Ll/gcTlfrPXTQhSK2t/R+WTMyZ+LbX2EUddt7OhhnLMjxfMw7\nsCQG1sGXZ84m0s9HvnyyjN9aC7UTKbGQfWymIidGrZb/CElpz0PosROmvAUz\nu+NE\r\n=uigh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwv0o1GUIZr6VSg3yj4fA3W0vltO6DpEKX4DQs9pnwIAIhALbhxz625hkLG14MPxIm34lMavbN5ra/0XIUdSmWkWVO"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-may-3-2021_1620001089294_0.6622742540889317"},"_hasShrinkwrap":false},"1.11.0-next-alpha-may-4-2021":{"name":"playwright","version":"1.11.0-next-alpha-may-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-may-4-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-/8vTy+5HgXXil8N4in1YSCLqjJg/+m2q6DbmwHoqn6G0qqbvxqkaj/O+nK4ts+vLuCVVnCA/LVmyq/A0DPWFCg==","shasum":"f7c01829c50f9db096623ed5d76cee453fe29a2a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-may-4-2021.tgz","fileCount":211,"unpackedSize":8570534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkJKkCRA9TVsSAnZWagAAF5UQAJeCXYOKzSztIkQ0+xmA\n0VpXuVdEjPPejjT1bZHBj8/Kj3/6B+adU1S1ckUfx+0trp5lTQsGmskm5h6k\n+IRGKTnmJFLBNT5SLCm6MzMnkKYlehnz0/gW4wF3imdRXhWgrL5uURWktmLy\nGbhukaktSsT2zZ2VFX3CYIXvyPB8JALTtmR2XnkHjwefjnESUAXegJR8KLxX\nPo2X5848jEukXLWLv4LYenMg3ijNvJBJtlcxU46JONfq13YUWH68ZBEDj75G\n4erghjGj5vPlAFj3bu7jvLjv/c79GTyit8CHJTtAtzsI74p8vOALd1JH2afo\nHihIVEIEVewoDurq/JrC1gt7bQRR5cY86I0NXxBiTlKXxJ0U1uG5PJLyjpkn\nvTPLdPf+gccuLZR8KUR2w3MPlyQnqTcz71MJEB/llLwQnOZwj1EgJf2Po5S5\nQjwR/K8ry6PXdOntU6hAUfYmUMEB3ANxaOOAfl2zCIH7LJceqBFkm8DaTajH\nHqJJERZuwgwsVFUiOMJAGgp53ASFkHzsQl8BS3sEIhwaHzZ4/g0Pp9Y3n/kl\nwz+mD7nlv2vGoVFkjS58U1rIKWsQuYEpSUliJheSfF7CBGhkKBQe86Esdmqz\n6tc3Qo9+WxwaDIPiEN4Pw3dTWR3jbC0+SvdNBjag7b8SXpro3EVUmRZjYaRX\nuFHn\r\n=bh+r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEEy8l2+p2grRjQis+P3ibymRnj8oC5o2pw+26i2vIJgIhAL/50v4GRksGnHfl6lu9+/byBVZtj7d8RjxZCl8YvYkF"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-may-4-2021_1620087459584_0.8708657478291604"},"_hasShrinkwrap":false},"1.11.0-next-alpha-may-5-2021":{"name":"playwright","version":"1.11.0-next-alpha-may-5-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-91.0.4469.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-alpha-may-5-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-RVZ6QvWFWea1GkKj14tmdCE/jKmVRdua1wshUcLkAIOUD63U8Sm3NceVwLU5d1jrS5hLscfnNy+9o8k34ZN3Ag==","shasum":"39fd5ea23c66ae2a7eeb2d60428867add98ae333","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-alpha-may-5-2021.tgz","fileCount":211,"unpackedSize":8574151,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkeRZCRA9TVsSAnZWagAA1BkQAKKj3hRJys/rzUqXgtiO\nTJIt3FH5K6MpmL0Dd135WZncOCDquGZtwtljIeYlVPW+WeNLYw/1hspO9E35\n51iBoc9QdCQWS90uvQ2Alj6PGlDUEDy+d+mUqG91Ema1Wf6n7dssHRQIfgem\nh6RFahc4nBaMooXAsPEhEks4r0fDPUOfiHBqGH5fAA96G71x/Q4xg7bUmv3L\n+8fu7LBniDPxOxAvicTOW3h2apqlj6wbRAf1H2GTGmdLkTqsVWqiISshbgoh\nruRwi0ebh6VO9lt4x99xzp2saF6SE7cBET65WEKdybt2bZ4tkdxugsOb+HDu\nhdNYqiHn7SQLuKCP/VNKb7PcCyCxEZufLWBwcSgB24Q7XDQmF1boYLaC2hH4\nJx9p1sVUlAwySPmuHpZzxrq1G4BB0lDgjO+QaZXnWCJ1/Ew2muonXracx11f\nSj6MX83NbzlKt5NWyCtXOj99LRJkWgEtgxbbizWOs4FWAkwSEfzPMtwMNV+U\nzt7M/jcngv4qmVIdhpFrgPsDN+jxwMC4mINzg9Z5//SiJoHc9h9L7ch05RkW\nx9uw7MOgXpmpFAvWvmmr2J5O3aDUTJeX3NWf5XOVq0F8TwwVfWG46sKHzfqB\ngHGIC8qRIo+RVk6bZuUY/WCeQdHu9rdmEBi0wcVohpEc/iJVQDj4ahGyL3y2\no2sC\r\n=EelP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDC19y1cBIFiyKx3c2Xpc9tI6xnGpoq3EYOVKHKtC1jEwIgPsyk3NQ2LeqkyIzhGYBKDHhbny3Iz3tGbbCtoncsDzM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-alpha-may-5-2021_1620173913156_0.49125548753264603"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-6-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-6-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-NJSO8XZ8kk7/bmu4mL4jqL49QH4poflXEFtkOZ7lg4ze07LE/GV1iatuXWbNV33c9jZhATemusirJ566XEuOaA==","shasum":"9c1eaa83a7544f8c79948d04ef016b5b909b0b00","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-6-2021.tgz","fileCount":211,"unpackedSize":8589197,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkzWhCRA9TVsSAnZWagAA8CUP/2ZumTaM66oZ/zUBdVf0\nv50VK/ejN2D8Ia4tI6yEhEMkwqNihrpFYOOMWrHuQ3ovPNenCZ2GHuM8rRtC\n5nrrvrLuLgK4zPAAKIGhyaqfJWuqjNar+beStIIDLi28K6eWNkBZnH4lSPXe\nlhYXjJ1yp40BJGbcAGFl68xHv9mK9qmTVV15mQYraSmSxehK26VKwLGXTJFn\nzSmTMIaKaBuNytlbn80UFdu64vlvuFZ99wEdCK9Adp9yai2ONOyCW5v93OGM\noQs4RHnTUx/yVwWuSSJKVMOVM/YZHSdSkpDs5gmj975qvdlizTVr60l9FysX\nW2rxetjHrt/hkZZR4OqWzt0P5d0TyBGGHegWhvdUKxzInrWAzu5VVGBXtWBa\nThM5YIY3EAU83BBme3MwjrnT3eAb2/U7KJPIdByuI1tal8+KvOUZuFRw2Y3N\ni9VQs3zWqfzKQAVuwVOsms5pM1PO6JWq/OToffDLzj88JXD+5IyKVPbPB4u9\n8bXYGA/ArQabjBlCVwUiHzBzDar+YZmw22URXqioSoIQDg1Fy/vxmVG976i+\nuMeUInDZe0mXN+2TPUM7U9d2Sh4t3gaZbbpxXGs7Rb46vDzqyqssA0s+8DS9\nTew5RN2syJU3I6XWMf2v2TSobxiGEmyMZRMx5swrdrMvAKlN5e9hbqnM/LjN\nhTxz\r\n=mVQp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEEB4bDgDPo2YSvalHK4YE/G1ZYcM3mUnDKaCwVQO4mBAiEAhlQsKLwc/ahvYshghDH2W+pvc1j+whaNdqNwGZ+UPv4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-6-2021_1620260256908_0.9478673837491385"},"_hasShrinkwrap":false},"1.11.0-next-1620254110000":{"name":"playwright","version":"1.11.0-next-1620254110000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-next-1620254110000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-/yVzLQyG8Tfr4EVtgXZEQrY3m+NP1qGmAjUGlNs6oK3jkwjGgN3pwpIu6y4MsYNAMEO8MFvBdPe23cud2USnJg==","shasum":"e9dcbf4c0b8b2564d8d6ffddced644f8d097ae98","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-next-1620254110000.tgz","fileCount":211,"unpackedSize":8589194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkzbqCRA9TVsSAnZWagAAFqEP/1MwAAjvb37stqp66Gxm\nYZr+4Etsvh1W0Hz0IQtwVCQ/7qIcIrGdWMONXuHeUgvtHiZt7OSZ9y7R2aEd\nA5XLj25Z5euTp/Yoxjp5Zf4SQ+yPax9/95f8uDCAruoKInMKVK+6czkz6FmQ\nYeuPvpChCpbMkM4IF0wOBhJjttGaobbENO99bT7dhYSNyT17JIDpHaS5pcuT\nnQ4VUKKNr+I4hcPKvaIrWQZiiK0q1utIEfuxl+DsZABILk8WRzy63oFIQjyK\nzCapwLsnR8EmxCBZJU0Vk551JRVXFBxBkE+lAvcuREzmK7ZZ9q7y9PynqEgS\n+ZigLeICcZssnkgSASuEvN8vMp3oOJ+V2KGX5lI6DVTFoI8gWFGpGVK58oD7\nrjpBd+CBesH93OFnZzgFZ8xt7pjlH+zBL+aTu7ImgAFwD64QPy+xKZjMDpOO\nnWUEH3Ou1XRDfjzCrCxwa4iH/mcFOI27LrSypiH8stvO2Kj6kVKE0Cza27/j\nuDpciLNddbCc4hpIR9AJqxIhB0Jh8wzkTei6q1JJNzCVUAxgZiU/aIkj9Apl\nYeS1liybpiYyDqZUf4W8RQznaI1mKJX8AQlbpJOmPzJgM1IyaWTTZT99jKCt\n7Pd2rN2bbDU+A7UmCL0XU4vXKgG8vVftdouiTH8pqKX5Ria22Qy2razPTZsj\nJY/X\r\n=8W7d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBz+pYV2LJbfiGCt805v5cvBTCACVEoRlP/SNKFHFrM+AiEAqbtmZQ34MCwe7CAw5zamoP19Lxv6h9kMB9LHmv/7yio="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-next-1620254110000_1620260585480_0.9737570671225484"},"_hasShrinkwrap":false},"1.11.0-1620262237000":{"name":"playwright","version":"1.11.0-1620262237000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-1620262237000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-2nDUEPfgzsa7zcbyYxPc/cBt0e+WoO0VZdL2oGBG9/snlnAMcBsnnXJfNXRoARwbRoTkmobUibtY9InQIkL77g==","shasum":"4e81d7530713b4f8a588c2685c3edc631ff94399","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-1620262237000.tgz","fileCount":211,"unpackedSize":8589189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkz4uCRA9TVsSAnZWagAA6HUP/3yp69AYBsInqCAzipRV\nXMbGBoQAerr4HYUmYnDhgKwppMy94lS9bqLO709QMWxyLb8qEmf9Flq7dwNc\nxbbYt7CxE9bg4xzsDaIu2mzLRr99f2qgZCnrbd6k+PUw2bojo7cdqMGfQbZO\nXNa0UqyD/CR/81ECiPRYoBIHoLyw8q0Tmtwwkf5jjQVhj44Gj+322i3SljBs\n3BE0wEbqkKElIshWKhDgyg6znTDX2qeoVkVm1ONaIO8o/aY3aC0mRBZm9zDG\ne9wf+MB9AJ/Pgn4YlCsbBL+VA5LebhjHLOYWMU2OW+7ErUyRiiSWov5bhnMt\nDdUOJuSTUoYLhTTH4Oeo48VPvZC6m6bFtAYBi2Ov737GIoYxCCzZ1CdIY5UM\nhDAX5dQbV836cOU4ldifF/G2lAE/OuELQSNPgDLfBJuNvOtIfxMjvIdnc9b7\n7N7mV78QXQhftzv2KGErkczOwdG/MROsMFh5gNJyn6/HR4FbQKbjaJc+RiXK\nCJ8sex5NAZcwbsYStkJlQ/jzmjxRQshsU+md9O2hAfSIAsXTFj6blTlGWaJF\naj3TfzNzeR29njdpxpRW0hF420XPEulXFLrCEDMrGe39REiO4AiT9a1+zQey\np69hwdK0Fa4QngDh7G+c1ilTX2csY3cugxhiXHXGiMDlUaytPedsm3WmWC6M\nFLmK\r\n=0Zy9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF0dR/u3mRdG+HOyfP1WpK78X4AxCH+nKxHCuylGTqnoAiAa6VkxO6MDNO7Nn/QTzBUslViVAFEfkLTiIxeXq3+JIw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-1620262237000_1620262445203_0.22578870511912963"},"_hasShrinkwrap":false},"1.11.0-1620331022000":{"name":"playwright","version":"1.11.0-1620331022000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-1620331022000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Z1h0dhiwh3CxD6Y9tICGuI5OuLV0rY7Ityg3LwAJwDfpdGDD8KUn21BeseY9+/5DpjToHPfLVAuknfkS/Y8JCQ==","shasum":"f4236a3a75fd0aa642864ea20f912956a381ad95","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-1620331022000.tgz","fileCount":211,"unpackedSize":8589512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglGPnCRA9TVsSAnZWagAAZJYP/RjFADECrH8NmuDJFN2a\nnud2CoG6zz25svVuDbgH+j0Q65xzlBExLsQCKzEmdU0zJzJx+7CIY1LMthKK\nfSca6YPzh6e3mrpVNdNnwBQvGkcFHZRE1cP97WufsjpTS2xF30jGP79fhSUH\n3HucVYmpAhgh9qGvzPhJxwINx2QXKq00CGnB3bluG1+HUSMSbUIBZHzYZbWu\nX94Eovrvo/ixMKHL/Lyg10JUNiaV3oXzRciPBFBWb4HlHbjdnT8VIZ73CC64\nGj466q/6JYcKOjv9+HVD8h6NWm8t8DujgtYygZNQ3KO9devKrWHoIbyZPMIT\n2pimbuqzacvXoQG71xoA6xLCtsH5mwpngfQJJjVBKgYQ1xZrufbqayMr9Ahw\nTLqnd1KlNmz2BT5FYOmddTS2MkZ0dsvSwtorSdjTKCYC0Ju2IiLPOukKhs/7\nC4hJ70GGg9MCPg/B0CVat6Iq44/RSHDHOUuA+mJ4nA5SbexX6eAFxqA741zG\nZvXFm5BGH5iZDoLfSirycwCz8AuyjE1vhO2FWvpFcFxjvqDal0pDQTY6rvKO\njILQ3ilbFNf9nqCN0kyrfEtaES7qVBrgZLcyUG+RgWHEISbDSAl8QOAz2vJl\nEU6HkuXihkFFboe6L5WUON5kdq72y1hK0S/tG+UWLlG2YCLGarQqoKQVDLV7\nUc0L\r\n=XOHN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6+1FIXWzMndQ/wWO6FZK1PM8xKDXwJiWcCAwgtxA6pgIhAPGn8quAt6G5g0YsRyI0dARLIyViwDOFGtJRaqkS13sT"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-1620331022000_1620337639160_0.22852104646699423"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-7-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-7-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-7-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ZWsHTfddhwJcmQcY5sj6Wu3aLLmKzB63P+zWTKYFXh+IguygTUu9ifdGTTnLT978baydgu5RgQ8lg9KKc/Zkfg==","shasum":"f20077aa9830667db47e9e270ffed25a8fa7e91b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-7-2021.tgz","fileCount":211,"unpackedSize":8599657,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglJF8CRA9TVsSAnZWagAAxYEP/jXEtHq2rXpDh53YqSzB\nuAjEl27O0/uVFC+4yj7PcaEyrzL5cYIc4aqfz+VRf/UXM9WY1vCyIzijV2Hx\nOWCEbUoF2xEy+/zcjOY954CQETjLWo6uLUduTtb3/dp5r+Jobh/isTt6Y+ne\najRde2hhdX0s9CgQRpJAUiebSdBgopAjXrVNgKgwRsMuGVrsdnGy2Y2OGyc3\n502qxRBVTmVITPlhZm4QoEgtySF1XZ9egEVOoQ8WlT7pcEKI4x5Lu709JERt\n6u0CGbeHzoDqasoKBWZ9wsGwKf7xYPzHpebqjOTSIhXCZbYWYhYU4Kng71YZ\nczVQZm0QA9ECbrWQheexuDbbhzQ8XBf838rYVgqRfJZ9JSi3t3TGXHlGeUuT\n3yOs3tLNB2esAs+7h+0oEWfOMI8O/3ZOBLAprhP/Pc+6EkiM0lPaRnLPgeNU\nY2HPp6G8VgE59fjEkq28QnWDHk/ZZhDnPJtKPZ25bENeM3FkV7T7bazzrCeA\nhTmcpitdCs/WKzE5laHVCDS0k0jBUWiX0XPrD6IcQWrJcOA8JZ3MWEJRMSdZ\noiIDuHw4qKyHueOnazhgZkZUKkJyH/ui4roeqwAyQldKtLaTSP0XHu/AfhBM\nW0vDB5lBpbyhPJqlKqfHE3XIXhN8s6RcsrHD5hthiw3QmsY8UIYmqGrdM1GQ\nEpTr\r\n=Kk/3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOIfCIb/rh8PZnDPcMP/MFK9y3DCpguEahwqLtn4kr3AiEA6+hd+M6upw9WUmPfDSxErfpqSCP1WNPJ1XPyEcE6xew="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-7-2021_1620349307928_0.7175733500185524"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-8-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-8-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-8-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-u1zdTFeemCw7O0R9uLXUaFYK5lz5UbICUG1BRG/2ZIK+32IX3oLI84XXhzT3gse4ElnHXUTN3VbSIqXtxFfR+g==","shasum":"33db9024bd41b85153606fc6877ccea2fe1dfa84","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-8-2021.tgz","fileCount":211,"unpackedSize":8599657,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgldi0CRA9TVsSAnZWagAAD+kQAJt60PG/FNUZLo41Lfo7\nSeSqDQfy29ppVGaoFVs0oWMutDasMU3qeRA5D9J0malNgr33TKtfRfPMkI8g\nbQLp2/7J/41Hpp4Q8NKtMdbS/8K4En6Wz5PGz0Rt90r9Pn816cC/zmc4O/BV\n9aQ8nhTZQ01QIBggaJwuUNRFrtku+kh8eS3jhEZJzVW58x4JGxPJAibgPngr\ny+KyYxP16NO2MrgaHc+jzUPKeWEcMMhE7qynvRPrV8/an580OqvbujleG8F/\nDD/CWGiOu25eZK0vAtSTg44lrZcnRgEf6fsuqFk6ZpBSU3ofacA0UlKTrvgG\naWP76X9W2/rtPmY2JIFjohDbVJ9N/6qrlrqXWEelXLW/ZS6yomSPqpm2kcw7\nRxSRCTA8ubIGCiOrEfsp9TMd1XO77MB7cw1KmuwkDHhhkIqWXn9TZwX//Yyl\nkT7fb1IeoErZbUF6egTKzMuUmr/jQ/zy/fmqS9gyHk+fBYghsCon0x+eixeR\naEhfxL9GOdoB0ZHfTrZiMBgw3lZbbESyiV0xa1Hv6Ex7T8EyJTu1IHY3VxTE\neoBC8Od8A+VFuekik5CCHAPDowWQP5aMPQQBihNDUxOnqUTNbKbgvUcbrfv0\nqDL1YA8zr140MohzLBGfOm8H7Eof/AONaIsrwQqHl78/8Cd2TUE/2aI/Q3oO\nsxS2\r\n=ZFvj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWNQmPSTdpGUIRtX/zvk1djNiFySC6xPfj80LRBzohAAiBmqwcnuhEYMZKX8sN8rvLqzl7sNcd2CQv4+5tj9etkPw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-8-2021_1620433075751_0.5046758733233383"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-9-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-9-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-J9VW5ClbOzPiBvbjRcT18+QE7xhwk9clyDQ1Iv9UtufZMuSMKdXxgn01HW7s7U15fX9a+vuYNK3tetkrPW5gPQ==","shasum":"59573aa7cbc9d79cbcb5c5a1906151feb7c4e530","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-9-2021.tgz","fileCount":211,"unpackedSize":8601446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglyonCRA9TVsSAnZWagAA6w4P/RiqQBoGgwBpLMauCYSf\nuWn45z87jbuJnL3qT7AZxWVbyEpwlAoaZ6ZrXAaLlPSW+cvRyCxei0lNUs7F\n3et6PdqNMQqR/Zl9aYytqpjGTAQfZerB3d0L8OhhmLsiHKhi9Nfkcs2rtS53\nJgBh2C7jqcDIleu24IOgJuvjZcaLIFVeRyw5nWfOC+ch7G31Y6ZaWdKPHYKw\n/Ei93qAuxE7lIooUP2hAan7KtKHevw7WIoBdQzD/L1WkGEFoE5e3QcTtRmUx\naCbIrRTeoDf42NX3T8K66v+Q2v1FYDj2KqdupEKnrcUJUxz1BpCPtJaphX1z\nUQoVZAet72is9p0ta00KTcO2WynFdFjjlLfkdW8MvFYZ9foq/+q8caV6EsTD\nO3T/vrXnC/JiFloAZsGyBubM80epB+VdYnQdl+Gk6bques0GMq4lFbn4cqoA\nhre1k9111tSdMMWeNz9rlQyWN1zf53qxNez/bEhtKamFCaaudGK5LBQhgbhH\njw6PR8/muQVvztTCogFWpQrUteR4UeVeCPOteLeSFu6nUuiddCTbAR7gmb+P\nvDUfbr0STg/jl38EmWboK2atEOHU53iqFinLI9IUwUGVgkRRJoV4nLzzh5mn\nLqMBizVc1Vz1//3UsG8xxYax7GgAEDy9vyzQeBL7USfcHgqONkXgouoEBUIH\n9x7p\r\n=Z636\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtbwgz6fFia9ZzkNX2DLKawC0ttnygV6iIcG7y/j2bcAiEAhOsitrSo2VbDfEU7/LXcyPEtCxUe7DR1+SCLBsdxBHI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-9-2021_1620519461477_0.8724311588312799"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-10-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-10-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Lq9u34WcckZmQvtkomB/eiwR9CK1Oh57pyRzYLPLlI+zl+EqhQjUqmaZ2vgOlYQd7077dGlwPAiB8U3IdNraRg==","shasum":"42cf59b9292f3e8b1d162299fc3ba24ab2c276ef","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-10-2021.tgz","fileCount":211,"unpackedSize":8601459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmHvWCRA9TVsSAnZWagAAAM8P/0S89PK9hSBtM6WYJrpx\nJsaDdXq9SSCxqpMP8wXT9/JlFuhtvgQS9QX7KZF9dEEKXy0FmK/VgdP6COCO\neP5s7hMYzifyuut/9up1gNDmhQ1CxrmostTqjbAq95opsUdStsbUjeblt9z+\nSdjfAWVF2jdeo0quwxfo0J9Y8N1bqCO/P/frD5xYaZx9/CwYyXXZCStwITUl\n7MdJnHXjN3KkhFZfXySoLjtbUo63dRyWmOVS2rbLfQnEivFwf+lr+874/BdF\n1vOG0jHTSkp+Y3WVb7/T1ntvFNcJWUFnhH2f3NrMHJHMGkmK6kB1kh41cyBj\n6taK66j7pciAR/I72HckLb0EJR6gn2EVJBqkDyJi4bwwyGKvD5vdcB2SloUr\n68UJfgTRn+NLlvw+PRP/baiWOeq3S88eHABTsI0wQfGuMOO7JzA2FYvAeTjP\nQkU55ugavOJEBP3RQp72nDAhsMYqbQ4CNuK3EyZKfs14WAi2P+aAI09LSfol\n+6SZpKLaiI2W0fSy/fy8lAx+07xM+vFHGy1kMFCPtQkOj/6sGynQb22ZSl3D\ntg7Tbeh65DtQSoFCZKBGE9reO4guGbP6+uH/0Fb2ruwgCb/LSI20Pj3hK8WQ\nYcsmk5mXj7/SsQYNHGnkkvGt73EvuSed2BdrvEwwuORYCmOPgMr3Ni5INHCX\nR6vJ\r\n=EbVu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7ohu8eEb5gdy66iwrqjHHM9bK8toaN8zZBB3qcEMV3wIhANJrcvLt/V05zQJo98rjfR55mTaYfOg5PTuqDOK+c94H"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-10-2021_1620605910310_0.09888968496298811"},"_hasShrinkwrap":false},"1.11.0":{"name":"playwright","version":"1.11.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-s3FQBRpu/pW/vZ/lFYhG/Q3WBUbT2rvMgrgy1PHDA7QtPN910C2rj9Ovd6A/m8yxuLnltd/OKqvlAGevWISHKw==","shasum":"0796cf08f4756e8187e01c705315d8e1fb48e25f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0.tgz","fileCount":211,"unpackedSize":8589498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmcDRCRA9TVsSAnZWagAArmUQAI0Zl+IvYCuoruF0H2AI\n+BD5AXMDcWKM1lRMQkaflBGrxjuDZTfjTsI0YclAJCPM/CKPcPkgAs8eiBFu\ntRJ+pdcE3AW9OITRvuoUo6AWcFab8Gkub5Prpq0lGqvsePJpTJNrnoEzHl7A\ndN1kzILB/YYw1gKRKw8+CUVwSBaRNBNBeIkSedXiOSBhdke0Ny+wgje64P2F\n8sdHhYWavMRUqS2GBY2dBdtlfJ/7dhTlO1MWuHCvO5iJpHeTJkAyKaTWdZZw\nisIj9uqkL9rQBYsRXYSY8JXKlz7LhY8GMZ8TSdPdJ/8h1y0xRxYxRFtKM1h9\nv2dXxuFy62x5V1J5Ht5g1lrqgYV+f1B9dFiHQiLSTRQ7LFi+40Hw8NPAYRSW\nCacdiYE/gzC4TfiDEKVt3dgqPdMrZiJAq4JgGIHN9q0138AdZ6Udq/aen8MK\n7rwJukTrrrKXdvdDp+jiAxYVF7f+mTpl8Gqj1URd9WMZLF0+F8L4EXMRC+ge\nROXva+NJnmD4oLgXUAD/5IBjmgkv6Hf3Lcjsp/nAPYjrxB9bmBClFaJ9RN08\ndbROa9HEaU3Z2cVDP4A0/wd94s4rYVCBlHIYqHcowAtbYY1oPMFd6qWal3JG\nkhmoe3B3uBIwz4rSX3FFjTOu5Tv8K59QzpR39YOd1/uGbaTWya+Qwv3EUz3X\nGR+3\r\n=45Ex\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWNl8pWuRzItwFHISUmPZG75yENbkUcu6f426X/K2WJwIhANrO5UFDFQG5p1JOCkxV6YU4DtlsFNVDrBzeQmyTM2Z7"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0_1620689104587_0.1194513334791718"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-11-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-11-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-11-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-BknY9YyFl1tqvy4Z1zhvQ4o8uHCL8bkU0YYTxROhGCtrms1dSJZEGBZj8Eg99HloNYYORchuoqHc/DQiF4omew==","shasum":"b64059d3d955a4fd4b3686b992371361c4f5c784","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-11-2021.tgz","fileCount":211,"unpackedSize":8603835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmc0xCRA9TVsSAnZWagAADOkP/1+TH85AgqlxoTdxTEo+\nSIZbq1KW02nxtiQ7AWYAngSCoHfrfvYpiM7F//kriUA/3JBagr/P88qvwNOK\ncMQGzWNsynOXC1AR/tyBsBWWM5jmsCFEIrfd5p8jgs/5GaEoSwwHGetiohJv\n+2UfQlpaXlPrAHM5WI0B2Km4llHSjqaO2GzCc6ejaEYc9pPc3F1UhGjJoILC\nALAl4uP0+4v0Ve1FslQPtdDB0Wt6RAifxU+MoICZQuPPPEbIcA24h8yU9cK3\nAMjZvhTNKxtljLD8VQuZjEo4ai1xkY++2G2bb2VKREyrbFd0M+TUcnHJ9M8+\nVg46tVrraaxSbfW0OrMICYJWxgY572ya8v/+LDoM7ARMwy8GYMVBof0+yrMJ\n1c20qlJE3zLExcNCp3rouPi7tjVho2+nZ7AyRbZyylYlVhOkVwHXerOSd0O3\n9lw1P+Ofj3WhMn2LTUdH/6bv3K8SlJEaupZgYNf9XrDksUuQ5RgpqrnhDYhy\n81wzrPltM7kFnjGTH+RdelT9lZA03l6LGK8QdQlTUWIPTSFgR1Wp0dzQT0fj\nM8D0/OZyrm0e74XjjR5CN2/5bU02zuVTKSroFJ9ury9sGZ8dhUFE56x6/biz\nVtFwDkk5A3gKozUKpfaNwTJKAfL0/iXcMKo+lNQD0br73i3ISJZDWmoZgax3\nhCKA\r\n=9ewA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdiHgZuXori5f98B0NHkdddDGaj0nuYnzEkxrSCSA2UQIgXVY6lXIV4tOPtFPGSAIPkU3s+nLuR/0FpfHOUWfhpeg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-11-2021_1620692273040_0.9486437527039941"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-13-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-13-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Cv//umLUWw2pCZHktlteNtkAMjZhbsn34oLqxwi6dPzm7y/pJJyWOlpxyviEdqAZS6M8wwBBCaoyQkFDIZByMw==","shasum":"71b52a3122a5a6cdac3046e4cbfdb215c8bbc164","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-13-2021.tgz","fileCount":211,"unpackedSize":8625377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnHBhCRA9TVsSAnZWagAAUzEP/R/70uengUs6PEWWWjzi\ncu8o8s+gHSqutSzLwUyMk33LY+unF1KHJm4NReWts/kvVnRyLmzk3+Na5R6s\n5LuDB75jkuI4ZHAlJyAVudbEU5sP+sy1nSyxQbsoXDe5gZOHj754sqqi0Rjy\n9r1rG+kOsHgdjgl9RG2w3LFETxwZDgY0P7u+5XSycAimMm7WA02/JmS7zlHH\n6VS0YBMMAjl8ORwgWDvHvAUd3yTbpOsvngJu23k92cJsHLLGjx9YbkQQcI3+\nDvqLxK/vQYVPvRDhHBdjnh3PE++9M4LgiRykxzHC5YiZi9w9RUPSCL30Th7g\nq81vvUpG7hXdoZMf+pts/p80XRXzy+vp0HGFiIAaaE7+b7yTRQbSodXlDCM6\nFENtclcIffXOsmmzUm7wqYcEM6GWxo7GKUz+YNhDlyzgw4CcyDbr+IihN/g9\nCjqNf0e1ptkXoHm52KOmWaX8no8QnH7PkkXKAANbpfWc3HhOHTDfVukktjC0\nY4XUs0WeWTw2u/qFtDjFvAQmbEPdYrYrmsBFVzwd1ekSj0WzQ7i9hKox4Q2I\nPrmvGgAyo09NqBff+IP/8TNr8V+X6wqQ4VkZ87hFBz8ios0Z2d/+eGSeFP9e\nJZ8suO/kijNDcXXyYGypgWpMM+rlw+Hv/3urMYiNAfy40pTdFxIbuh4+MVLn\nSpm5\r\n=ipW0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS6snYmSombnSpAS98EQWh3VSli+3lSXqC7mc9bFQjIgIgDWM8WE28/5ZM+8zlP7l4PRw8Hcc8sPzYPkDw87UuEm8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-13-2021_1620865120436_0.7141287459784218"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-14-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-14-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-LxTojBDmX/46aHLwnY+dFaC7d3+28RpKKDFhVk08XGY2HVUYFL7jKm3/Jr8C7YHXZfc1+kOwke8khiAtwINYuQ==","shasum":"13c81c68eb05577292ec14951895d34d3e990f96","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-14-2021.tgz","fileCount":211,"unpackedSize":8697549,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgndBzCRA9TVsSAnZWagAAdX4P/i5SK7ymSeLSfYQpXU2r\nePeZyTDQ1qpYbq1w4EkTxU4907KlAmcSrC8R5Fb2bEYs1gi+EsO1C+IG7maq\n+IB4/X6kqt2i5O0dkSrOwYYDo6zPTBKa+sd7pzN1CEE6i3M1Y6wLpAR9r4Lk\n3Gt6mWEjCqvoGFD0tgEPFdH7ZEmPx5j9CT6d8nN5KPTyast1flgbnWO8zbwm\npiDDf47OnNBGCk85S1u+fjUEk4k2vQl5VBIU8sYVGP/tU8qlzHB0UDv2dR5M\no5nqYiIhVxqISBc0lPiuBvLitVu28rh0IBySPrftnV08uNvOTxfFopoKCzUc\nkJQ3/ftmM3LXCXoq056fd3Tcg7Ll/biMG0tWT2q2wyfIo2qFNL19jFyKxpvk\nzBkFqwGO8YRv5GgPtPNKwLoB8CP7mTQpnXlAY/PLU+W/ijpl9H9eC1yHXL4O\nsWsPBG4NzvGJwah8sNGGRammnME5th0KADIjCMx+ib1V2GMmi+ES5FI0Ixq6\n5XdJeeWJ97sKf3h024auipNDadxj83KprLkN+fawKW04PWT4qz1IwN78j8jU\nsUloDwZ92TO9f11W/QfyDyRf8mg89vzV4gmHeuBlsNv32HjZgIya1WwVEkVc\nEMU0uNjh8PjD/vJxCyqYR71qJC3ClZ4xmxqSD/JmfJ2KOJ2hH+uLb8Qrdsmy\nx+/K\r\n=LRGM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDewkDcJsaGZD8P/ClZ6peb8FiWCRVuLJQD//WR1cWGJwIgJlBDmHlcHJp6FbdKNJxqOVOXeFZBbf/v2FBI79HQZWo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-14-2021_1620955251091_0.7038220073500006"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-15-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-15-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-6BnnhSACscefG3bAejCIhC0fXPj3cQ7U2xEfo9DJtGBFOGxKluV2j/6MPVHr29AXAFP4smrP7o7h34xpzL3/Lg==","shasum":"3f989494ebc3671e3e6312b5b5692d895d0d3758","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-15-2021.tgz","fileCount":211,"unpackedSize":8697248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnxNHCRA9TVsSAnZWagAAFE4P/3IjJzMtTOHwn3w1Qmk7\nWGBEQlZGQtPn/S6WXpBMnBRtYryw0JvhBZoRAUKA7cN7Px6tF4sefzx7x8zf\nrATbcs7+Gh6JxcBQUJ5opqH5j7xQ3Ll7Cm2RlWF7N7iJsRj+iA5eAHqI8Hkp\nca25/wwNVIqHwtQLSkc0ZQ5Q6+mpoDQS+xvMNt4DIJizQtXBs9vg3/WQC+bk\nF037aDhZ3ZNwAhdsT5cK+b7J4KxWpAZcCHhuxL90ybNVy2H/5u4ZQyxIU39h\nZmT4fZ6cf3uvKfOMjITWYz45zcm5mP7HPSsNoejWX0byGbChwln3QEE32VZO\ny97zUlPVcb/YsT4PEt2kz/qxEseae2ziUY0rPWcpf40MQ8HK58YdnpDuUzSx\nuDIMWi5qa9yk17F6yL5vJchMdcl6NKMLz/5vgthigKF3mm8USKwksKZ/mCZJ\nNTB+jLS9/iBM6LUTXWyqD87VX9tHt5SI/EPIzYS4uiK3+01QjzZ5dmbTQSYu\n+CRNlE99KaJP+i2XW0IdViRRuf71u69H+IAk1jVFDAv7hBWpCI107OoFKgLg\n26YFvRdgfq35Co+eAh4XqjN8qVzqTWjVqPI+RAE9Sbc/Pb9zmzHkjQ1wEEfy\nNORnxXgcZIa7pqLUdNSm1YwwV2BPIvxv375/sWegv3nkYG5dgSlVj8Acno75\nqPuJ\r\n=mInH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcJW/8gPtG8ys+U2irDpP0FuATXn8iLZmw5gmjIdU36AiEA2l1Rdgrh36VGTFfDQF8dnB88c6crKoKNmFfIhxxY1GA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-15-2021_1621037894838_0.020678601571204602"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-16-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-16-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-V6DNMkdGcB0ZTYyVVaE4VJtGsF7kJLqbCRs4KHJFnBdWqmIbsdobReiBRT4RzygaXtPJrGMppOlW8744taugsQ==","shasum":"88f90e178b0eaad1ab350eaf8bb1be139e810f7b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-16-2021.tgz","fileCount":211,"unpackedSize":8696649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoGTICRA9TVsSAnZWagAAqNoQAJiUsY1RXLmrt45UbrYn\n+/Y4t4Sd4p1OKEkMc34V7IOOi4yPlGtcO3xmA2cj/kSNQx6Z5rdvW2jYQe4j\nbHiaTV+vFZ+yO6mcdAir3jJ9quaAPWQqoLG7aVHoBNTufoDV3SrvMGkEAxUv\npiPxHrNVcwbrkOMj2pDLXJprvFA+/5acTds2ljmzGp0mopXEE2WJfr2zwa4b\noHipGYOoDPdb4TNtlHBzSjkWP06T/YpAJwUWj96tCW8DJMP0CLYj47NEVeMx\nyhhqbmRTWwsH9fzFErg66awMCSAwjOgwl39F8t259at+YMZR/jEZTsDNu4W9\nKRECxJSppMMMVeVguHQmyYVY2uqka1rp25CBRZPLSWr0AV/1qi0VLgkUuy92\n6PsoyJizkk2Ayov/6JjV445Zv3Ayabq/SNWLJRFdcia7LQQu943DLXjDuiBT\nfnYc8qxqDbXryqUCnZEIT+QaIYegjnhtebm7WFFBw1oydBzv0fvK5i/XOaxR\nCS5gLMEkbzEm5bFRY5d1mUsggnInWbymPTCiKRDNDvnl57f5f13j0F5kJVOB\nFJhLSC/tO1ZDkOspXzNuVzIBxPAHIH2ytIhfd2L1pb4hIGDTZliRAlf9+bS0\nLtpkcp6bj+hpIe6pKdly8/HYnx8HefCvyfqNsiDJxxVfOf0biV8ofUHiS2Ft\nE/sY\r\n=hCwv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTbHe1SlIySwC8ckyWBR/q5KQupGawe2NpDqh0ab17cgIhAILEc6+xtSs8uoRLf/m5XE/YaXtMTkxq8sELBWS7iv3j"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-16-2021_1621124295675_0.07803912849184691"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-17-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-17-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-u8NuqRmArF0g1NIyOA40cBwRAHXO+9yH8KZBChJzdnWVkOjLZ8xLcXJH9dEqN8aevHMHppHc13TsljboP0K32w==","shasum":"7a7b971bef37ea2fde719f7c483b0bde766469f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-17-2021.tgz","fileCount":211,"unpackedSize":8696649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgobY0CRA9TVsSAnZWagAAr1MP/jY2FuHlT3hQXBiJhFES\nLIO0XvW62gsRKSB3uTYx/E8w2Y+Eq5WO5X9HV0W38hYLbGpEiRyd+sKmshCq\nLT0gaC1dQfxQ2yufyELvEBveGZ11Iep8VOAgvbF0g6du9NLX2H+0C7JNOsEf\n8rIBNj4UExEnQvyNuW9Vt35gUOz+0h5hJGXYfLU1B5VR9I5A5L5H86wSqpay\nqYour30CFV1/QN4DItMvIb6a5ZCjFoAni4qETz2EF5paCpjtV8qClIfxxijS\nntkiWIGFP1/vvSnyK6hwmJwVdDwmsPiNSp4JKhLgm/ooVmq5Ft8wRRXOHu+b\nUDiavCPPGzTtm7JXiX8EUjjPqulYEBmuurdjBj+JfsXnGB6HLioVgqVenpeI\nRQWI1Fu4Wmg/JB+t5lS9cCE47vOd9gVbYF3DG+Hd5gyJYGS30kG4SI790YOp\n8kG0FKSKjSEciPeOXmQqzPqnDIjpPkL6e0ObMy3bkSIYIMFnqsyRIQwLYGLi\nGbkxA3gHOvDFBWvaqr9nVN1ZSsBH02e0+lQrP2VY0Ku+RpMSun1lrUXGP6hT\n+/sdu7AmASLu15RC9T66tsnf/WjW3Z9nLXGgv5vSxdSFXJ6xCSfY4tSs5ftu\nE0s/p3VydJQ4Ougd6710ZPy2NzsfgoqTZuOH8VM5KaBzXqzMHieo6HGysnRs\nIDum\r\n=c4QD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgZ6IdOFG2qhu5mxO+Rrc+DnHjRSMB4TPhMyw0Bj4PmAIgGGxnQL+blphiOGEd7cWsfBpbJ+rgDDwooPi4Ana8ZkQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-17-2021_1621210675165_0.10693894299180795"},"_hasShrinkwrap":false},"1.11.0-1621290396000":{"name":"playwright","version":"1.11.0-1621290396000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-1621290396000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-vfgerqeW1m3eX4E4wSvsCmjYLlbYX57Ms+msJ9jMCD8lVhEDGiJzviMr8skDuj3TXc2SjHzpdDlA1VwdsgwJkw==","shasum":"bd4934e6eac955a82cf1850b1915b9f39a30b824","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-1621290396000.tgz","fileCount":211,"unpackedSize":8590291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgou4sCRA9TVsSAnZWagAAD8IQAKIytnkRMQ1vNRs7n/9A\nwr2l/8wudNvJ0Ur8ravi7RyGqKUJWUp0j2r9wuSZA/TiJU2k6faTwKNH5Wgr\nU3D4GfwaYU6yTkSf3hssESNXHz72o9n2PQIwyOcKI+quSKL2XHxoKJm3NZN6\nTTnBIUcklCtvFtrP4uQTDdtBnfZaB+2+JHHtAm/c1yfeq+UpC27TjQN9wCNp\n0VjorM5SaxzuUh9JYkdUh0tyXW17SaGjArWnihqvzv5FqOMd9hU/PUkGm3yj\nKxE1pp5z0Rf18wcN4hc7OftdlqtKa1Q4Vj6f+YGTO0vo6bX8/HgDPpGvNCfQ\ns0mpjSYRaepAnvdBTm+y2QwOgHYQBdTeg49KBTBLDq5GG3ue7pC/KBS9oKrD\nqSWp3kVmogHUi/PrNdfQ6bH3L0gE4PbauzlhoghcRTZ86rOgsNMbm22uXu8p\n9A20Zf8cpuiW0Jbr3zadhGxeU09tbtmWFlPbIya7P/jPt4+q+LtL0aVQr/jn\nTYXJKS4XRBkmuMFI37fRPEeojYg6/2W/wJfnUFO1n3qV0855HmwRopTmBmAC\nmNtr9a0PtrMu1oLYN9ARqbuiOp9XG4qbH09wY/ILoKqY/qNJvfj8z4Uj0xml\nCbOQsb45RlP3jZc68hPKXc4dNFHhb2W3otmV8fHmq1VG7Nya6JWwTUGXG/tJ\nDI3I\r\n=V9YS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0f6OgIjeZSCzLUT25YN5Hmv7qT1Pd4tf+Oc1KVxNy0wIgAnIcZ5vxn/bv/+GUBjDaEJESVR+3OKpeGo1pBSNPAK4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-1621290396000_1621290538935_0.45776331073037646"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-18-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-18-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-pQHFgyTSe0dnW0ISySN4pW/A5rFpzqnNT0YNdUw9+P+nQ5qkpDBZREs0QDqQ/KKzKeCzJErXpEC2P4CD16p0fw==","shasum":"fea029ca43533614c54011bae848bc083f7a22ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-18-2021.tgz","fileCount":211,"unpackedSize":8696911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgowe8CRA9TVsSAnZWagAALzcQAIcWFFSUKg7/Szc5QPAB\nJ3ieVBnH+9QoHQ1mpUd+m9stxZZwINQ2N0ubzwiwNRaLhg7uEW1e7NGyXDyt\npNOQRgvJ5LNEE5R5GChhADjnUflpBOJChtVZ8sbyeIF2rEd9btD7BY49D1Ec\nRuKlkOE0q3qhjHCikgOh4Ew3lcBDzoVSQAPG5/nwSr881L0dnOlRdZt3lWRq\nRV+BAvihMWQc9Hgrg1rU3KBKjsPtNGwGnp1QOWh1tx9higKusYyXaw7WuFlg\nRKpXmKJDhuD5zJ8mgw8SOqwU14DAxdkvPInfSOI9Eilmzz7t0gygEmBb+xFo\nrs2wlfYoWUex59pe/y+MaTk7tju4bTnNb9Z1z3Gabmn1vO7P3i2TSv6AGNi8\nrdeE+uoJi/8xtGP3BTI2wNpq/E/z8APHkuDwrRAffkLuosACy9r9AkyRbqKD\n/EC5KrUP81sRkN9uD9FUKadB3jM+gN6Hd0cJdFobuxcCJ1JgsO4Uaji6//4R\n/kRy2SRTx5DVabQrpRf2DQvSX2cI5Fk4lyzWwb8MQLN7tH2NVwDcMiPcMjkk\nlopTOtgvpjkzeLOTHdZyjzPH+rvrEnFMgQsV1W+0LKuZCp02+z+8o8nH6sd+\nVcZBvXAuhHmSQaTblDQj5hS+IWS3axs2gkon+iXZszdDy3BxBZoJvRHs6GRg\naiEE\r\n=p4y3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcSjkBTYNcHYwuaVFFj3Olw2guLD/g/Cx1nwve7znOLwIhAP+8xY29jhAtUcusyr83hCY+aWmoCCNw5/UdoQJHiLRU"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-18-2021_1621297083748_0.5959940350295048"},"_hasShrinkwrap":false},"1.11.0-1621329286000":{"name":"playwright","version":"1.11.0-1621329286000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-1621329286000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ACXTgynDueS/5fT2IuuCfrYTHvRKdjzcgrO1ZcdkgCwMEfDHnAsSX03Tg7JvZVfauAiH/dMyGa0dtQ3I+yfh+Q==","shasum":"ebd0aac8862c11f76e51247ae37b083acab4699c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-1621329286000.tgz","fileCount":211,"unpackedSize":8590291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgo8QJCRA9TVsSAnZWagAA+D4P/0AsMkyVEcbjnrcqJgnt\n9Z8h4GuKUXlihTT04sDjfkICu+GDnbCMvtyy90yFylvNzEXv+Cx9gDoce2wh\nU7fAQLN+O8H9no7Q7ZkYG2eKR/v7RJ23vJ3NfIxeC9pmr6+s2SY9wW8urWYr\nK/Z7yFvoslhUYBzFs2ELjaKxq0F269pkKduCpquUWRU/LvF+zvOoSZnmLnq7\nh2P0rgHTxXWHaPojX2kJrhyCjjKiXuikx8MOA1Ezwof+Q/l+tOc9Q5vVSX/x\nAdkbmJMKTgdfW8BXckgRD8Rl6tJwoHBT7R1zEkTMs09pBvx08odpn8bacJSC\nxwot+APwzBG9JgfJ2BqnqgbdAo6yOjnnYXzhyuwSyeQwec7guBaEEtqVO5tk\n+t5siKxZIa3oVKBW8luR1/3kzjdAe4V+7koAsTcI3q1F3XhnqK6GL426myPP\nrmV6i6Iyeo10kgmmtjn0OPKuiddaStqweZ3qGEktzfoYSivwsPZSUDyDNL2y\nOua5biBPCOn/qJwKVPTlUH5WLnUxND7qjJ3GTSuQmJZ6gObSWCkAteYnjZDP\nwcj4tFQ/oInORzukbND6SEGd1COW1e2ZIb2sS2NnidfBniZHjHWzokB9JYEZ\nLT9N/ufX61FjXaFoaClVuoi8ZK8xde4+llcyK5FCkqP62K3kgFvozZ35AuZo\nnXWj\r\n=kHtn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNr1Es6zSlRWy0rmMRlrELIKpqK15DKPjtsDHPrUd1AwIhAL8l8Z931O0Ux0sEI2q2EZFJs5gntgoyWgReeIxXzIGf"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-1621329286000_1621345289029_0.7893179946989997"},"_hasShrinkwrap":false},"1.11.0-1621402998000":{"name":"playwright","version":"1.11.0-1621402998000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-1621402998000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-GCgXs+FGTQTDS9K+VezJ4CttQmYmEQrFlKsLI0oWlYeHCqMuSkAlFUNeAgDfQYsiSjJzV1LpjuFSWEDoPi+XOA==","shasum":"dac45104b1901cd1e8da7d2d5d4d29b57c212254","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-1621402998000.tgz","fileCount":211,"unpackedSize":8590476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpKYuCRA9TVsSAnZWagAASTEP/0ECPneN/n3RFvRsj5IN\ncIzNAiwNtZ0SZJomuZR2bjV7w8fY+9q8q9aYY3IOVeNMFBRdM8De/wtMGKzi\neLOW9CUVAiX4uGZdDwFyHjJjle7WcnzdhfG14s2FZNYFDlX/Yq5YXdvx47n4\nrbP4Fs97xmrJ59ggkSwKmv3gvEKspiWCkQ6R6IBTiBGhFodZkiFNdwFlZaw3\npWrUkiT/pzvwMaB5qXXU20U4OJSQQsadACykRWiYRBgnIiC/1hfrvOUuV5kA\nUziran8QCSxb32TpjYtV29hqLmnrGM67JhNZBaC3UmCJf7PS5rB6mvsvvqow\n8QjqMjPEKegqnXfjtmhB1m1DVhGtT4+L726ezUttH+tLcYdAFAdNG3bo4w0I\nlCZWlep1u4bmFncOxPHxqL2IhCJpLee3aNrE0eklCFEnDoChKPMUa2hLd5tG\ndYN6dz23g2BdCMk6sVVtF5TRvB2sq68NESQBH8usZtKxueutAn4HsOuRX+mh\nyz2/brZ41BYZ0vgfCJosSrYY8UcGk4ibcROOnJzCd4scYVG0inQHxOw/4DU0\nf4DBx5yzwBT1vucTdOuFkCTKK9GzcSICu3681dQmU44Y+YJ+SxxZ8iMqRAeo\nza63MSUhv+O9NWaiT5RdQ+UTgRXhEjMBxNYVdUf+sUrL3DA1UNoaTM7wXt0V\nTUJe\r\n=U9q/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgE9v/hk2iIkRH9KfFCau/05MzNsLv5RqgazIAdJrfsAiEA05EwUdk8U+7smT05YMHUwLIKreKYJOrQFBK/y5UFaWI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-1621402998000_1621403181355_0.24718793176135878"},"_hasShrinkwrap":false},"1.11.0-1621489435000":{"name":"playwright","version":"1.11.0-1621489435000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.0-1621489435000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-XyeWt+6m7UYuwU6VVAcP8H/fVs+AkYoGfg8nDX06MSjIzLa2ZCo+7i58Klmo07iU5s8aBqETfi7iSYk4WKGJKw==","shasum":"e8917e9fb1915a2e968929a6924846ae1bb2aa51","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.0-1621489435000.tgz","fileCount":211,"unpackedSize":8590745,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpffICRA9TVsSAnZWagAAKYcP+QGjbEa0ab5F5QVCxh58\nUU8MvLJSMAVcQnOnGfqZHju0Cjk6nQCK9UYZqgWrqKSk6DffeNCMdGnoCtRa\nMNBcZdy6WIjVA0yPNgWXsJ1yETgQ1CGXeCBTvYN/yOhHd/dRUhREhleuv7/a\nDzrVCWtt3rkAfBDaHvWCW8H7agpYiwjVjUjCT+GCxTAsz4/rGKZTPkGQ7DY2\nfQ+VbaG6tWCtj6CiBNcHAxEypZ91hFMR6TpVER4sehHki298wBHxaQa7fPPy\nvQVQCM9gznXnyZbUWLRDeCjfCAUNjjTCD7nGADfwbLfBAxNTDse12xajnBg4\nk39Vko/qDBuutSn0buX2pVB9OhQh1MXIJMScZli7iK8a01zPgB77dwSsr3eV\nn/q5+knbFJ5AAE3bSQ8x6q1SMLsbDtZgam+PcpRHpy6qbaBONVy1Z1dxuEil\npnM5kss9HiXlyJyKr3nW5vYdKClacHWEt+/12BRmsIeMZIlRbNmVR8MKF8/i\nlSmistXHEr32Pg3Ejmaci+14zFejrCqAv9RJLCmGkOjgRG2BihMR6dCEqHpI\ncq4oePP884mlvIrffQD2jM388tQYKMS2SKdLlN5Hb/gXYus7Ttw5lWdPWZVT\ndbDOg0/lu+o6+Tfrbh3vAKQaLPYUgnGYJtnZYFem3mdd3EfoHpv8PcjQvf/D\nEDgU\r\n=NVFr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKDI3SUvQxEvm2LGxrbsxZosBEWty24GdjtupCJ30mpAiEAjN6xdzhxKz98ykCIZ95fiqD8FKeYu5jeyDZniM3WY6s="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.0-1621489435000_1621489606701_0.7294353835632921"},"_hasShrinkwrap":false},"1.11.1-1621490832000":{"name":"playwright","version":"1.11.1-1621490832000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.1-1621490832000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Fum6bxSvetJTuEWJG2rWcWGc90/Lx9qLDeGpcXJ5viSgI8r1bL1SaB4oryQ95VvQAeK28m/IQZa9EkG7qzas4g==","shasum":"5d95e251d73bd7fb53a7492c97ad1b1da38c35f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.1-1621490832000.tgz","fileCount":211,"unpackedSize":8590745,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpf06CRA9TVsSAnZWagAA3GYP/0+8l/TRJt8zqnqWfB3Z\nVTBbgEtWENu4nVY1gYgtvbYQANyR+7J3hS8Gs7wyIPCp/WOK1DPzYnPKNQFa\nl3uWXrA4HqBCShJf0omw8dUESiIPlpna5dPtjQCjj5/bUaqyHQYObVpdKB46\n93sJd9ZLOCdHNyra17kCwo63sKamRB5cz5d6XU9PuWv8sCncb/lNts37sZmR\nhOY+KLhcXpVeq7bHOYbmYJhA5IG/MWPqxBgqJb5m4muEmEhShYS1+pzTtt8k\npJ+0pOCSF82Z/gc4/mFDYZeIRuNtPsQ8NyTGQjSP4D4qUCJ2wwtoM9EBxCyf\nxxuf39zHsIFlbzkl+vEeE8SxjhSFXqCh8rFP0+ispBLBzFsQDmuyxzwg0ccf\nN3J8kSI3o5ViAu9JS17d268KIsHidxKHtml5Dpwdp3YkSBBcOjnOpqebl9zq\nvHCR5oyUum25lry5dGuR5f16pEUhpdVTVlEL3G4GK4UEp0Lr8Pkm/H0Dt+s7\ndOUgMPGrmwZPAG7uMK4FIMuazy0ljEvkNiwTq2TXjr56oDWTzQCjT/uooP3m\nS7qX0ea3E9Bf4yyOL1zdWx/eZ155WSCuCwbfzodikx+MkIzUG00scEyEC1Pg\n7BF5UanCkOfIJuzxuPaiemP1rsHuc4XtOKTtGyIBKRMJ+TlhhOoNOIRK6Duk\np1Ow\r\n=Nfts\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXaHaQw9Rs6atng6WZTclyioUV+ALrqys7pbEtxZBloAiEAxvlLNVDvW67RqFb7dGnBWd99Z0xyeLnu9Rp6vCHGN7M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.1-1621490832000_1621491001230_0.7999575215027066"},"_hasShrinkwrap":false},"1.11.1":{"name":"playwright","version":"1.11.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-UuMrYuvzttbJXUD7sTVcQBsGRojelGepvuQPD+QtVm/n5zyKvkiUErU/DGRXfX8VDZRdQ5D6qVqZndrydC2b4w==","shasum":"c5f2946db5195bd099a57ce4e188c01057876cff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.1.tgz","fileCount":211,"unpackedSize":8590731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgps7sCRA9TVsSAnZWagAALlIP/0rZeE5dnxpGnXTN2vJU\n6oCGFBaZWANGVqRUk+HFbUTARFLghKOK7t8x9PCNzZIt5xArLSnX0akwL+o5\n8ZefzmeQnpy/tyqIVJQPPsSyfeDQ6FWOvCZBaCawAhNwG4BZnIxMNsWrLGZX\nTlNLu9w5owly+9yo07VHec0S1oB/O3BhALTgvZeOYnwNyiu5Br4c9sSkj7IG\na3e0mhAbwNdQ8dMKiHCkShsLCVEMLHwot4QdgCJWCUtY2Ggrk6JdpTmWQJIB\nd24UkWaONWstPuZHOCpj6M0jsb/g96eCbLtf20yEGLM/06b/6yyGS5pONEym\n+PcrUfMo3cTccnIug//3hTaEUOsH95nvyXqFx1ElqnP3rlJnb/1kArhzEqBg\n3Q+k9Fm9U32DB5smavsozNZ0XmX9AJXPdCuoCzU3GFaK6Sy1GqklpCIuRSEk\nRG5xUd5ExXOopi+aSpRBqLNrbqfzuXlvp5LCjJM6I9bOxiNnMdimsvm3n42U\n2xVZAP+vWyzDPpyvBcsXVnijnJ2aBUqPbJownHlwNiUZlgJoecbbX2aAivMT\noybqfWyjJCuu36S5mqAC+D9qTe8uWltR02BblT43nmN0txorp2pGeq0Fjx5j\nPuWHQaQe7tV+IoZ/m5yY9uRYrqT7epWaeqKn572p68hH6NtTeUMgHuOAYO5e\ndIoR\r\n=+MiE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwtuPb9qQaDlJ/BQe0+YCc8uOPMe4ooZ7NkDvmUKRxFgIgbC3AQZ4aALkEdIvlav7kCNB0AbS5Z6L4Y6zhqQPe2SM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.1_1621544680739_0.9966388086905629"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-21-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-21-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4500.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4500.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-21-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-bUe9FPOWV+QVtXiLQrS/WVZDfgu0V9Mqj48nbMIIGzQ7im+ByJkanWrUVNZ8/1tuHtojV5daNoPlUH+15K+nlg==","shasum":"7f48d6b63ed60c7c484e7185e26fe2aff5824ca4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-21-2021.tgz","fileCount":212,"unpackedSize":8712019,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpvwKCRA9TVsSAnZWagAAgikP/RZXxJPQPp1JofEsW9ZF\ntXbChMqs/CxGRghW4pCO3Ux3g0tHYYlj922mg2Lec75oxRUUbk+OoscAHcV+\n63Si0soJOUjemc+Fb9vE7bpbvRkIbkcBzaliKAkg7rt1mzTSEut5aO6YTj0X\npS9KKSpFClN06hMvsUQgDEZWJ6ifkygJoLVKwmCOL9gm0CbS6LC13XyxO+jW\npJWu/8UgDv4ux+8c0e8UDUuIZcwMb9j+PUEEe8H++biMCl+9AG4Q8BNHfKYk\n48RUB8ItiKZzrJWZGBxJprGNfCw3sRUMUU5t4Iv9Tt20mIJyhH4nqSx7h6l1\nLAIuAD0w0GQ/KzAh9ynpUDGu9wGCOsqDjlC7GHIEI7PVi8kL02LKrouN1h3W\nAEPeCbrsa8LAvV/dgYCvZPeL3doGH4EFQhqeMbQj8z2m0cnhHXVYmiS1AiTu\ndHFTQYl+e1I9gJWrwIfn2KV3yvFNVPBdibtvT9dp3q6CEK1S9j1ID1+MdlDu\nwLWcslvPXaXVDrqNXV1zmVXs0UevZaF+xbYQHXRgIN29A831Q9T3IyAZHgPy\nc3hEod/yEkxFsoYbNtiDvYGPH4JGLOqT5yh1Lac8K+2XlX0NraHcQMmMpZ/R\n2cxseKStjpVxZoCg8NHKBH/rpnP47PaRqoGQECYvEM5ky9bU9Gsdhd3PDus6\n2Ozq\r\n=2Vrw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB8+bJLztDS6DqV9bvivYZZ5gwFPbwP+djaCVfwh4T4KAiBs2tL113sL1exTwLlxIAalkT/EJtTXk/q0g0WvqYqYMQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-21-2021_1621556234068_0.653033124490092"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-22-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-22-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-XKIHyW2AQeRCxIIcAHwbvBpKTPN/MtKqzUrFrel/V/k3f7oeSRfg81eSJBX1SiC7Ftk0RL/01LlEPWVjTGvv/g==","shasum":"b10b9a58b654275e9073b61144e1d72540789793","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-22-2021.tgz","fileCount":212,"unpackedSize":8723249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqE3NCRA9TVsSAnZWagAAnJoP/1P2H9Z9NvQcKlyvpcu7\nstlyp0isZS5WPdsTBhnTe0OD4Ait3cX73XCckPGp/5bYYzP1RDNbsYtH5tjb\nAWqjMwyvcWcerhSt2v2fH5oYI8TSqTFXKeLHzRo1UcRJ7oy8fzWdBdx9y+Ct\numOo/eUwLqCaQ3c7uT3iSqIE3D6AB8wCWTCI4qExY8rjDyBP3uIdbaJTO+I8\nzHgypvVWyRizIpUuXsOSft4p6yhl7aWAiiuIIqed+fnOjcWgoJaSikyjYegB\n4MkpWthboCF7B0biqUQgHG0azVzge9RJJ71LVLzJeus84ICYo7wmk6RZ3VO0\nawekw5rTJSet5uCNzuWPwBbmKbPV158mcZPbwbh9HTDhA6KCjQmM23NJ5qMd\n1ncoJkq58iDf30djJh5DBYtw5f6q80KItuMEHpFNWliTx2UuzAJbUEzTElXL\nILBPH/oi/QUPZd251vDL+UcKt0XH1GTqGcaiwAY0CjI//qdcf5J8tIwBv2h2\n0JZxCrsAI/S4jZhOO/aQUZxNH3F2fmsyXRtam15DLXk9nDPRg8a5BOhZ6zTK\nN/akRoeOvr6IA1swf6hnFicxiQDaQERXM4IYhdG+U36urMPAiOVw8FPRG8Or\nND3Qhv3nT5l4ygsljXX3llwHT67yPYWa94CLtnf1V9SyBgoc3rHwi84044Gt\nOTUX\r\n=RKUg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHo6tq2eW9lvG0WZTXannrL1woqbIjQeWtOJDVsFW4unAiEA8PxzDi/VcOjRRBMnUtAX7m8TgT9xl7jzAwnG8bPP3M8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-22-2021_1621642699983_0.6129563115447325"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-23-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-23-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-23-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-eQO3cbl1BV4Zl0OxgG95MvPVfZ8Ch2aRtOSbxfnoNhvSAo5GZ5qqEdgzT53o/nHkZr2t9PV9Bie+AnnlIgW0VA==","shasum":"477ca6fc41a370567a5d7979d71ff19a6175f4a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-23-2021.tgz","fileCount":212,"unpackedSize":8723855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqZ8RCRA9TVsSAnZWagAAvP4P/jRAHUGbPM+pg/Jwzv44\nuwcngsQmQSz9ZHnH9xi9IWRqXrzyillmYcYQE1XMrjskasNdqqYnVvBiPdP+\nSxoT8p8u8ko6U+3g6wM6UTht5hKBuWB0X25hb/D6iD+Z8IPbaqs8UB8lyc5k\nRwJWqDKtR3T31VH+RSKMMf6LIHHsCsGQ1jBnSRcqCrCfzKZYeS11rpJ8oW3W\nv/jTbc3gPUxnFLh1ohWFUZTqZJkaMyJ7RuDnR0wTugToytjmh/0BHkB4LEDU\nqJwpT54i9C1kPM6+if5CbY+yzbAa6fL3/apTMtHmCIexh1UGySFrvlkKKiL6\nxrtIB49kkSJiisw8/8lx9+ygTcykQWwy3ewNAP75uvMCuPG9WmeeP2fNfUS8\n6r9SWl72d3WhWq5RGUUPmug802V8l/2FKJ/MoQROIftrSWfW+55WqhPFf9PC\ndq++BLMw5TYn1BsHKuy/JPTSGrMZAuvNHAFesms7lR5jBpiOqhi8Mpe0x+Ox\nZDaVhaBURlGZvYmoSaP7WaldOSKTafYYIEG0jmG4tZoVcXhruA1OgnLhyOJj\nrtEJpCfRh34vuMGD8CCQwPXkse554K9NH8DZgeNtHyDvYTdAvzD+Eva+jcus\nxp7B/6o73fv5SiT5KyWIV1Xywc6fpUHJM5nsYU7vTu3VOxaAYZfQQh4C4Cte\nhMNX\r\n=HBjv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBAfhE00f0UOY19RSFClIAmNqKImzQ92Db4X89BOEDpZAiAsS9EDXu+Mv7EsuV+5DwgPglHu3CZOrrBfCpEHPLDAGw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-23-2021_1621729040444_0.17612819177945638"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-24-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-24-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-z6UgPno/Aap1tpZveey6bO3pjnTagpnfKctlhUzcV+4+aFze/xu1XfPizYWTawxMV3s0/NN8TFkC4c4nG8//dQ==","shasum":"f84283f27d38324462ad59435b1012131fc899cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-24-2021.tgz","fileCount":212,"unpackedSize":8723918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqvC1CRA9TVsSAnZWagAA8ogP/2f7lmLeNw7sYPufunHv\nx81VemxeOJdOyZLYtzSsOkQE4RC2TLAZiOakk06dnlmae+SdIxUJ7cpn+L6U\nYg3ew0C1NO7iZVdI2j8v+tATwLaylOWY23PjlU7JwRZwD177llyv2XijS25/\nvWSdEdaIoUobtJBqE/LMPafGonIBnCaJrwYbWA0X0IM5DKd1aM8BjMN8f71Q\n5/OKR8gEpTkKcRPyRc+MN1BLft61Go9rNrnS5JHsFDjfZxokIamsB8pSJHrT\ntgIuxqOVKAoCMYlTwTmO28fVMogNg7UPbViDrsg0pv69b+ZX6jYdpJAr1ba4\nr+59rAokzsozt95zpWZTVyUggVfnTt76Q9MA0QJj5mWZ1vCipVX7/o5eh77O\nw6MkFkd1Yy3U7Mkji4Np0tfjZIRBQiuK7sNSvjgoiuvc2xMrw1+Ixnq/49kN\n4g9HCxKYfiqvALWcSyjCVMlsII4X59gelJeXFGGbKyZdfElR6uX+5mV14Bvf\nRGmF0uvdRbwOZ9d52dYjdoWF0oNRZv9Wtbd+OLCcWli8ZPIXtW8Ilp+gJLRi\n8wOLGiPVOvXQtqkWkh8UUW4I0zWqNzXMbmBXDP5lRcMOOj6KYhyXgtFyQrFI\nz9EypZLFSHoQALl4HUwTzxR9asT2uSW3mkhfA832wIpKggaFR8+OsCQMACma\n8t0n\r\n=3EA6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDdeqqZsS5Zs/uAkU7/yusCuphnKmwR58Vr8aGMOy6u5AiEAovLp2Mm4vuVHS572nIk/ZquphbrdtZiKp6Az2ZdATWI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-24-2021_1621815477159_0.002761806656474075"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-25-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-25-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-f0tMd32TMJAbt8dtV1zW/v/f7dU18CpxkuN3Y+JilU4wxZp9ypbAAhUSQuR7RM3pcZPtdbbRjpTQjQaU/bGb8g==","shasum":"34029de55ad60b4691885b196e3adb0565d02cab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-25-2021.tgz","fileCount":212,"unpackedSize":8724472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrEJKCRA9TVsSAnZWagAAbj8P/3OvHHHouXy5o5Vss49a\nYyAQ2OZjCXhX7CYen0cqwZg+vRHOo0QZU37hBJJT1fapvEuzTdACLIInhTt3\nbeVQBjqR4+c3l4Y9lzAZMfCPvZ/muFMKg9kOsUnimuAfFTVXvGMg0zDhRFN+\nmYqMUEctSQlNFwa6KTpAKwvSuOmfF+pVsL5AHqEIvZA2+pHNtIWiIp/HzVhE\n9NDjigGrOexlEESoMc2ALrLgPd6WU1isLxI6Q9GN36u26/SN/LHE3m6mE0gy\n4UnYFZYZq+6LDhh1aqxNY1FKvFcsClhybRY0fVQ8PJ2niro2owxnM7/L7Arx\nurdjLiZ2Zm6Yx41MrwjqnYJSCx1y68ygWfr+QVrVmpf/9EHedFXD8AZX+zI5\nDg6gqoiOZD+EHpcurKOYn6MTAP/JLNvEw6G12YiJw1njyR0j5/2ErMIen3v9\nUXMpGP9gAmWCKGGw8dOHpQS1suFMBpV66rRVgsTvh29tHdCazYJK/qXoEXhY\nj9I4KkEFSZk8iFEwhd2UvRik/ih0pkin1BOueYpl+pTpZXQgV2CFcuGlAOiM\n96nPV0SLb3LNGjA5liIj9oL4xLwWCQPJh0W5rydP/YQxit5Zcw+gRCvCM8OM\noDm/hi+MjHRvtCbtSmuq6uq/nn3C9mn1Jz0SkcLxy4N71cb15XPqnNWPMIh/\nzrsI\r\n=OIM+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxt3BF65bFLmkVs4YbGeeDvxd7nsX25V9BT9PaF83zAgIgLCruT6O0X0/BRLBjmJYUwc4rWOiDzOftCz4oBH0J8W4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-25-2021_1621901897644_0.6223461104361183"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-26-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-26-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-gljHrLjBja1fmt3aaTjIG7zgULH2i0DgIb3dDlMILd9fVx3JIiw5N7ihJVjqYXJIx9TgeVgD+aGUp6DdKja3iw==","shasum":"87bbc6c59c9df2e66b4bb49e5418d5d610ae2584","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-26-2021.tgz","fileCount":216,"unpackedSize":8749408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrZRMCRA9TVsSAnZWagAADZEP/3hDvli89JHQNIBNMTj2\ntqigqP+ilSbVhyxDGHzW+f0oGSmjdbbMNkcAEgH0ClNo4EGaoflTqXm8Wwzt\n6d37iksHPSoRoMdMwuEMM2hAC7nPoUZujNra+K6OwboOEk38YvytcOZm9QD4\nkZetItkB5kLLBngi78759KKL1MUIAB5QEEfmcwoeFs5O9asOSEkCGOa+j+n2\nGVchyU7p9u7BlAduVR2Sj0Xi+tHf88bM0ELOmC7z4odU+cu+i8R+4bWV2Mo2\nw9RHHuXuRo4+7vBcR+8lEF1UQp/9Qm+GKUVD1jbEdg/s8UjjlHhMq91fg43j\nSpFgJODsaCrkjMFDDtaqAvCCWd4iYtBfPM/mE4t02fbd9ORTzW1N00aBLHV3\nDYak9EzSkQnwsAKdrOQZ0T5wVkorncSSCNx6BH+AjhHLgLB+Z+sz3DQvSPT6\nh+HEOaZAmxRrjRjgoTDRJfor2KMwyYOPpZ+ZoGBvzo8oAp3okmFG9mqzWckq\nYuqgg5jtVF6+n/at1t7g3hlzWc4y3iNYRf6JUD8wV9BRwMkOJZdc0KVJOn+B\nROXcf5mPykGqK2mWDewO1xgy3GQgr5lNhnUvM4d2VmdqVclsHkpZCt+5wiXL\nmSlpiWLtWzaYvr7CPu8pXY+M7GRWgT4go921bnvzz7too4yCPi2jgCp+/ccm\n5wHz\r\n=Jhv7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEn8rc0PWGwerRklsPPM2oNXlTX8yPODrerih9L0CrfoAiEAzuPCgmHOJIiBmVl5GQYxrdE5TQW4LNNUVr3qBrzL4N0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-26-2021_1621988428043_0.4843164645040854"},"_hasShrinkwrap":false},"1.11.1-1622073148000":{"name":"playwright","version":"1.11.1-1622073148000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4498.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b6-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4498.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.11.1-1622073148000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-KYNs7kfnX1USkpLdHjZmx4iejJfKYeIau/Q1hA3BHL6ymcATqbj9qjwWTiYmMXB083j5RueptjVR9MTHYf4bLw==","shasum":"91803373e024bc6e14f8772bcb3069c2ce3e5554","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.11.1-1622073148000.tgz","fileCount":211,"unpackedSize":8590275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgruBhCRA9TVsSAnZWagAA0+sQAIBu3o6spJivSheq3ols\n7FN6bQgpv5JIUrWRhsYH4RwP0nsNFVo4aK+Ihyf0MS9t85GO5CQOpacjwB83\nfdCrttAZHZp6ahkNozydckXyJFack8C+x6MhCSVvdBQhdCezaD2jykAH77tg\nI+ZZPy7xeFUCHq1AmC6fCWL2DTjBdeS6GpRLKycLIMkemlE0v+DzXl3VY4Sd\ndNJgDEfORFqUutUNgmSi3l5NX178LU1MkKHM8huoEslG+xrCmto3rlCH/998\nATBvwOM3EbYpCFuIlLb8yycFRpWNNj1kUj5aElwDWfIIbgn0ubkj8g8+FKaz\nuUeYB86XtTw1R1LJ0pU49gJvjcelZOhfoukLo4ZXDKkO/IXYIo5qdkR51MDR\naXohn7GlOqFfPSB6mlPe3TDAKEnX1BKwTgAvyVIDPhDpf7eIygZAHJuX1rOX\nyF355CvjrGAhiwJulbVClXbDCHOTNnQPIXTxFO1AOWdO8sfFK4CtJg3EV3XG\nSLfHWa438hJT6PhxBMAM3Tqnq0X0v8IRRtGfwSW/hBvjqpGG6EckSroe+BbK\ngH5HiGJlr4tvApgibZmS99R4yTlyoS1wSLBASy+MW9XYxoyj+ko9H5yWiHaM\nKmjALfYvn2AEMm+tryb1zm/Z+sRklYXsiV+wMJ/cOfCueOI+mTUaaXcqIqCh\n+sBT\r\n=gkX9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFvcicFiyBEnVEoBYGjC8N3twlplGhukHBWFphVymYumAiEAw2CpXSEmALnBY7LMz56ezVnR8SsugJ/W0ulRc/cY/Rc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.11.1-1622073148000_1622073440616_0.9615951382000065"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-27-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-27-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-sXTKMqzJ29iUBBkd7Ffoep97ixyiOsh1Xriv+6phWXxdgzu6VLzDAmVkRzTGHGr3sjaqU962R7U6FyM9bXSk3g==","shasum":"938602554343e42631bea93311b3afa649a76f97","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-27-2021.tgz","fileCount":216,"unpackedSize":8755913,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgruYLCRA9TVsSAnZWagAAIoQP/3L97wQJP6hTfYz/Bz6V\n+4XzAaQ79aLJbrjA7t8KIjsSg1cB9kG8GZJbnVV9yaSOCPqyhVGWyWfWleKf\nsG/NWkNER3cRO0wKlUHwpGumYWWVdKSGps0EYYiQt5IL+ktHpQTKVgwbd4RB\n+sObsKKGcvam8nmNZD4PHEzTUIwn1SzzukOpjpGgThTnhm73fXsTAlgKHUUb\nk8ZMiibGzfEAPTPdW5fwfAujSeOSYaMionOao+e3Wnh43D1YCbiPLDlOtxlB\n2bfo/fNVEtsHizOdWEZM0ipDFOCE8e2xDBz12ca2Ox7eVoZxZxKhPdyL4P94\nWGK2x2bZQj0wCRrBFN6pAStrvCukG4N8qKomqMHQ5N50+jFixrPUcXLbQ/Ic\n7lf32lwM4SE1aMpvepP6MAqeaz+ccF1PIMwdqsZa+YJPQKXH+zYgOAf9tAsB\nEy5clwNlJFImP/M+cwcaJvBQCCCNV3WFpc2q5qTIZmXmwCOQ6uH3h4Nsmv09\nAMyrHVvWJ8eDpNqwOPCRbsluV4NRvPuZEBluP0V1eXUKr0A8v9BAh71IeJan\nQKD3nmM4cV/De90klGeUpUYYSKEx84TKOdj+THKycy/ZkA3jbd9i5D/XPVoH\ncItIGo6pvK5mGuPXK478STTzKoxpMzSnPUuwIytHEv4JzcZ1LkZdHPrbMmrk\nz1Hv\r\n=rUMf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZ1nE4s2bQjF202hD40mmNYi7ChSWrZwPfUmXC3s2QJAiEAg6Kf+YipTZvC/yjviTI52+FzjwAlZvPQsu6wtDElYtU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-27-2021_1622074890440_0.07686922967684251"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-28-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b9-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-28-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-VzZsFNG6gl/Ng1MzUSgzJl6kgqGUZxNkoNSagatNb0Fvq/oUg29yLUGvFgGNeEXZMub+geZ6SHgtR/UQFWpAiQ==","shasum":"5fbdb0f9d487d4166ee09526c44cb544f9941101","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-28-2021.tgz","fileCount":216,"unpackedSize":8755913,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsDf0CRA9TVsSAnZWagAAj8EQAIaPzPD7Fn3Mxg6qyCx8\n7nEVkaVcB6v++mkynvyvFTpOSkRBl3DkF5T4rWgWjhO3LiMU3EYTkMrTJ34I\nWYeVeGDaL6DxdLVZL4LO+n0nF7IIAkfZAafpKh0I8RE7aNf1fYKjgIhSMOEU\nKiSJlFwP6KlSAcKp+m2k0Em4Aw8t4A8dz5sF2ELAVGM5yqYszRrUTiwXHqzM\nx0TlkJRYLpRxohfAlHTxpO2e89dgAEz/q7DFGXAK5AWf/HuUzvdPMvFq9zpV\nc6AG4Z/8rUBiuoy+NHagox8QDFPCnw1V9jSqb11ooYTgkmY39QZxk0Ndyk0p\nlWANgIw90c6w6seUzmbZPa6UWCCPvg9zCx2Roi5DEcb4t33eZBctBdL/YA54\nNGFAHG3rOjwMub80Abh2kmuHi6/rbzDF178MUc4ToCazOIeMDHLksfdpqkJa\nh6uLQ5yoCdtb05Gkt5qHEvbdJy3Pk56bTzyB1nKS3tEvBtwOrskjd7iKswkW\nXTsWFba+mmTb5TEyQRykRR/KCOCBc4GVgt08mRDZ2hQ80FOVu+kUAwvODpMx\n/pc6EAG6rzcDHG053JQ9MUx+s4KfbLeraS49Zgd+JpQEaarZmr0VH3XlP26g\nOF3+/vsjg4UM1VsHs+ChxScFjbvCWwXJo2c/EpvsukL0A5xaSQr+2kc0T9px\nn4Pg\r\n=i3Ry\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBhC800isqHtG0TxmeJicduaYdxywdtX3lSeOj7rV+nAIhAJsUY/YWf5DVTFJPiuPLTzOsvxH3YpjudEBHc3+tDRsz"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-28-2021_1622161396052_0.30425544282079287"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-29-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-29-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-29-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-eeqz7U/UCP6hoZwcqq2GRWEXIxq44Cab10ZDdAZh3/thEjP57ZZoeaw1TpHgYaTN57nzkPf+CoX/aDYkv+YEJw==","shasum":"bd84e4c38a0ca5b928bd86521c722d8f151bd3ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-29-2021.tgz","fileCount":216,"unpackedSize":8755915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsYopCRA9TVsSAnZWagAAo4MP/2BzFEHyjHwW3VnCYRUn\nRDYBYZC4qQRaA6OMDZX8Bq081zvac4G3Vk3n6ufw5LM2eglJownD8gDCMSIM\nemXltboYL4au4XWhLqqXvnu7Vuz/kD9fRKrrzDKGxJK7z5Vp86hzeq6xPSnz\nImWGGZ5As2LsejB4Jc7wY2whoriecftPe+tbiETxbm22mvSMdMoShlGVKnOA\nzGJ60DNXCdZih90MSNLNaJPFObyB22woh3CAqJtxqnYaZ6SjAEn6mO7WVJGF\nkXDVTisQSpdAbqb46N+tysRaW4qW5SlpSs2zQfBYAw4qmPbTVDlJxbXIBtLJ\nOu58mCPxs5UV49MrcUIiq6Vb7msJdvFf1zzrisZswP7OCrKPUELkm+NQ9W3M\n4m4OzFyM1+jAtKmq0BUbWfWAsOJQuMl/GXZGeTiYllnrNn4fvjw74H9teo+Y\neyzKHsITR4sjR3ne58goTmtd54b4qqH3Dlk9O7hPw+WU/2abvcKEY3pxc/X1\nAywyc5wdkoaSHam8GK/mG5I3fxNzHW6tp0gKAStf61SrjvlfnEd+d7yleVnY\nI0Hx/Cgh/D1jGfyQNOehKkQ7QbeLCH9R9VDSkEfkHyF4rgA33d64DWiSDPSY\nNHZ9GteS80guXkxhQIqI656l7gLpHoVItJCMLsEa3CECGLCqYOZGlu/FDkRg\njtJ0\r\n=S0dX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzsWDnwAGAswPDSfT1awL2/17h9TJOm+mKxRWP/1YGcQIgI4tPUEpU1zG+yerKD9eSWMKGl6D7MSI//dZ4l6QE0nY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-29-2021_1622247976773_0.5053614519776801"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-30-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-30-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-30-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-2ZGoLsMjfD78uyvpEsozJcNNCZ5YrD6XYuJHO5CJ4GWmYqwjn6Ix+zzhG8Ifmd2l+kgwYOdhnH/5KQGkNHd6Mw==","shasum":"964e5fc585e6e33abf5175d1cbbec05cd70cc967","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-30-2021.tgz","fileCount":216,"unpackedSize":8755915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgstv/CRA9TVsSAnZWagAAbKsP/RSOdchwFdu0jFHdv/qA\nJAm7Pu3XaLcjeF5urMMy6KMi1Enh28UHAAt+QrSehtJSPAH/4jYFIV4ywG6u\nv3F4yIU+s5LLapb/cVSvFQdvWDq+SdwB6WUa6QHB/DwUBYN0oXndDR7KCtez\nxjXEijVae7DC9Um1vw//4s5YzjC1C8urhpsgkNvPTUb9ZpO5lZDwdMqhsySW\niqYyBN/d58RK5lA+JHRozrlHW1T0dx71zEXHn/E732oaPrk/n6qs9zkBaPMn\nPfxDOUDk7+pS+D+5Hn3+x/F90uv3VMCEMyX821EohEy815n3BHaLR3tXe+uw\nZZowdnFQtXQfZ28rCgAnaDFxCyvXM8apNTBq+OFXNc+0XhXnO0nNVc7fq+m4\nKUp0sT03O4Dknf36Y7uxu8DYS1HmFf/5p6kXO0N7GHuNc9nJfXEZIgAoidTT\nEFkMr3kcqcp3Imejx7eYFyWOhXUU5+9X3DAP5UbWFC8wGHnlczr/T/EK3nxb\nilYG6R01SwGwmxf0hPDtVyyFmKMoOxk81lGRNTg33LoC1loMCIbejlkDw+Oq\nClv2W3obOxfPbuahUXHNHLbf5f5iifxu4jg9Dgk94cijhENJzGKNQKt/V28G\nZo+u/aKoXH9GoQ9tx5aNeH6G8M8ICM+yGoUTlXRsGS1gYmvntagnUQ96DFVm\nlNQA\r\n=DDJ/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBGygNlOg5NEiY9UwFIi99SQhfy8TY4I3H9XEobEuMNdAiB6rQnEWLceTuEr/n558cBA0xBiSA5I5AD2gROwn6ZnrA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-30-2021_1622334462314_0.4302181964999203"},"_hasShrinkwrap":false},"1.12.0-next-alpha-may-31-2021":{"name":"playwright","version":"1.12.0-next-alpha-may-31-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.3.1","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-may-31-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-rgKLL4phjH/Nfdzzm+WZ9Rn5pK9mzGiWSjzXC//z5HTJOD7KkTlc4eNeQDfh2Y1Xu1HqtBHKKEQzcrtMJS968g==","shasum":"0e73269bc5ea779eb4ebb1a85fef4dfd44f26738","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-may-31-2021.tgz","fileCount":216,"unpackedSize":8755915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtC5XCRA9TVsSAnZWagAAqhcP/2T7Fu0KRD2x+ntpD3Pd\niqMYGYMaez5EnLChTCj5hAiPZr7gjphECdzJy2cAJZozDbCdyE6fGZ3W9XAm\n1Cs6DVJBI30dP7Mb6YLFbkEeemdjcMm1RDNL1NFQjrQGqZxgRja9dcJmQW2K\npDZdfQXm7m1eVklyj5r29aRqrKy+kHDLKy/3cow05vt/qSrNECI07dFXOFbb\nRfOkZRI1toT4OdvRhnFqBePH4by9ZNdn9+FbYu5O8sBfrDl42z1cRYM9Xr5r\nP4IxFjcE3Y/UpeSMY/yKo0CNh1A4uHpgzyHltCdkR0z1lpoEUuCrDnXj3Hig\nnTwwgSFlrv63tkZmILYdQv7YUC4DX1A8Symf4O8E9FTFgOEt40cl6iEV6BLy\nDv5/6ale/UYaGbdsFGa99H6RP2EQmrMt3/b5flnemTxazKmWGCOBk7zqN3it\nDXPuKBuTW1cSCxqvPsnXRMdLr4ZaNDAPkoL4Ecs7mzH/PfOUko1CbF+9yWXi\nzoBpxnGYDYVRTTkd9vQiC+wN6KoBh2yvBOHgjSWUGolhEuYvP3n4ldHYs0jo\n3PvWflTvuuR2D2cgAGn2PUZoWi3AeKzJyvCne4E6MbcQTHz7EA93rkYWTB3+\n/6Nw8DyX7PtO4Yj3yENpmac7DSdfBwZxDYyNosJvp71qi0lrTYs3RPJGlHBu\nHxCu\r\n=9jun\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQww3tZbiPFaGcDVhgVZcwCvVhea/QaOi9+ULgDJI09gIgKOmglRUQLIQ3EXfvdB9U82hjRTwCAs8W5nc8skylRgM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-may-31-2021_1622421078605_0.00018326021517789393"},"_hasShrinkwrap":false},"1.12.0-next-alpha-jun-1-2021":{"name":"playwright","version":"1.12.0-next-alpha-jun-1-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-jun-1-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ws8EPMndm9UzACLbn8TG5+lecl39znqT280uF1lmy3HuTrdb320E3lARyn0Fm+2WHcowOo+T1PEl60vcrL/xJA==","shasum":"43ccd27d44399caf0f192506f792feb69bece03f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-jun-1-2021.tgz","fileCount":216,"unpackedSize":8755635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtYBqCRA9TVsSAnZWagAA5EgQAJC8p0IYPnhCh4g1+VSp\nCS9AMp/IqliL5poGWEHYRKSWehX9bBmPhCPlJ0XPfRQngQVUECMfzoH5+7tA\nTZP7wPKokNmm8h1JyKEQqRTfs4RbheQs4Tmygbg4OVFz8c3ZwyNZigr9uiAX\nIyCuea2FtwW+OmJv5+qO7zwGR5x26p6Zaa9c3c2DXwVcjHdjF9GPljBaihbb\n8+KifIq1SsgzHl6+835WJTxbZAmM6VC3scnPxfyHpYw8rzBS4OYwrqdDQwpe\nGRW9KFhD0L7oq9vn//C3iRyzojK3A2untduApq/fBg3jia6IR4WaLny1E5dG\nDO7578wn8+H2lYON7eIfDrQ7/KT/Wh/VKnjqVp7HMM7zEhsOELVqxzwr26iZ\nJzFB9u1SgLZrs3/ksyui4CDGhKp5EyG9Fl6MMZ4b2U5gqG3wqwaVwotQi/fR\nFyEhUR4oMCun62p/d2f/xLVHOiimPrahQNOYPdbUL66TKAgaF+zQ/poYyyWl\nbMruFquGAktrdWzwfUdRtniGbVjzo5OrLH7oD1zS8qzDvZNwRBeZycfw+7Z0\noG5LR2P8hxPtddsEfWRnht+tMPqrJvoY5AGn0SxPVm6WozT4UmCvwbsECeIC\najv0jxTQCRWfSGYSbttSAJrAQigLC9oli+SQjYRzkL3MPCckag4SUNX9fqaG\nnF8j\r\n=vRD5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+FPZqYegTl5NJzDY3kfB12MuXMrGQFIRmAS/34obnlwIhAPiEGrKQUYaq+QbAKZ4bhMiIy3OYsHRWlbKEa7QhMTtm"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-jun-1-2021_1622507625349_0.45664431081420265"},"_hasShrinkwrap":false},"1.12.0-next-alpha-jun-2-2021":{"name":"playwright","version":"1.12.0-next-alpha-jun-2-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-92.0.4513.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->92.0.4513.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-jun-2-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-oKiJFisrfG9bzwMtAFDqLMj4pJ/75z2yWzwCxSokTjFDxTpgbXnXfwpxHCemaxuzHP4ySINv/UwPzQenBouLoQ==","shasum":"60ad4fef3cf6a74a6ffa0fe7c81f1d81e77b0956","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-jun-2-2021.tgz","fileCount":216,"unpackedSize":8755898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgttG3CRA9TVsSAnZWagAARwEP/2ssz6t/zXOGW3DRhqt6\nD+n1slUvPcMO3S4Sc5VEjOX+FhbUICNW+T4/N0c+KA6bHT0soZjw6MCkn1Lt\n1QsP+m5Xyd1rPLvhhR9zSlBVxJb8WvcE0RqdQ3zYX581WfGzg8rbAkCLjfzK\n2sTWlMHr4Bujz8GrrruMU6s4xdzHhkAL6RyISiZZAu86raPdsNmhOkDagsGa\nsliemfN3uoY7or1DhOrhADeDxXPGkrkU4vpZKG/EbeYG7QuY7pxQispDzj/G\n/YAalwEsOHvorIREV8ihkDLhPG1xCKKaESjtzaeoBDYunFhFZ1bbUHOWoVyp\nmUh/am9wbSH92ZQM7fiKLg/bk9FOEzW3lbsWDPnLIKTzdUv8fbd7BDBAJSwy\nN2qNT6bFvXxK5dUrUXYgCy6mNFdw/A+Elw1xzxQWoIMjHOKQudX0uqojqye6\nQRXq6t9XrE+ktkCqIND9yAkKjNXz/hLHoxDtOzaBr0qD3bGiVE+kxLfoqwvH\n5T//7mmV5/mGZexysMjy3mrPskmwR4gx0+yMFvRumG7nPffT+9qWIZOz3uG9\nWCrpdABSHXL/uBBPmYoar9u6Jf3vHGYL+bO0+fsGSTlC6DVwca/QiwCF2jj2\nDRjuDPv/ipgpFuWiJzr5LqpQmThbARAaxUZSSchrA+WLZNaeEhEJLwpzDNAz\n5zt3\r\n=TvNC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGrCm9wkVavbOEYOqs2ctlpNZo5gIXbg1wBimC1/uf0AiBkbUThMflobSPxvPChdFKEAlN+BJM9htmXh5Ehr2ROLA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-jun-2-2021_1622593974541_0.7396460711131576"},"_hasShrinkwrap":false},"1.12.0-next-alpha-jun-3-2021":{"name":"playwright","version":"1.12.0-next-alpha-jun-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-jun-3-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ARy5RyuivxTSg0L813Fe6AKD9bF4vtA1VS5nsAZqfljt0wTCjhod7Jv/JFAd1E21dxsp+6rr5P7sfzfsNuyMgg==","shasum":"30fad329bcee11fd7a84f0048e00e3b7689dee00","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-jun-3-2021.tgz","fileCount":222,"unpackedSize":7409500,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguCMECRA9TVsSAnZWagAAfIMP/1QanaovaR/ScPWY0r9k\nIP3IZ+5bPkfouj2VutFovlU/vtCrcC929esAgwf5GTuQpge7DJ/PH70fzJI/\n+iDoghNIRKtyIHj0AOBmHOLvcp64YUSmW7y99z7oWoTXKietJEurPO4fIYN9\n3Ml18Hdg87BzfRRrMdx4/wRqer1MTDof6RjkZZ3+eHHKgRbk0m5u9+LFLR4Y\nJ97D8G9ReUhe7b5nkyX2iVyaPOB2dpPx7GaWYv5PchUF9cQl5Dpz7XqwIjRE\nbfZcomV8hESu5hweRG/7t2gk1aNtciQZ4H8OK113V4JXP+7gLvIb4/1BNjDl\ngZkain6gBGD2uOsAcy/6vmZ9SWsWAKsJ0/Jay6cE5+uq5GZGXNdz7a+4a7VI\n/Gkqava22FlFm+lYiuyAs3Tr8fQY64cgxvrrt2MUXLJ9AlAWlG6spifro5SG\nJ/2oqmF69hRtOKPL0Glm7pm1ALUfymbyoujZ1ziyAny/jDw+h5jwsYMhs5sg\nBvWvrfLcjdQsI4UATrlUgJ3HJbtLMg5WiyAGqLfWhhgLF3jUPpP++IwgujFa\nPCnBYJouXR9VCuPxVbammogjqF9fZGew4JiqWAwbJFSKKnKS1rQt5IpnZt7O\nRsX5n2E7ymgIMo54RBntR33k0cfdcvByltfmdh+Qpg4i3ibgZ4XeRAXkjGcH\n66Fv\r\n=0y/j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDS81aXZuRLheSi0b9jRjeU/v5WDjDdfM/kVYP7YLeHqgIgcYks2CW/SDrYq2yPRL6JiDCePOXYLHccZsrfep17o8g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-jun-3-2021_1622680324729_0.3845491933464027"},"_hasShrinkwrap":false},"1.12.0-next-1622757040000":{"name":"playwright","version":"1.12.0-next-1622757040000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-1622757040000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-k6WBomqGhZmuecOQfKAft7zKApZAsQJzsTWcWY5jdggtt3h9T5aTFnat/FNa8WfXOtzXDO5Z4FSJQcn/Ey0MmA==","shasum":"09cbc78950315da0531c417b72e5c6c02184d0be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-1622757040000.tgz","fileCount":225,"unpackedSize":7427844,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguVAuCRA9TVsSAnZWagAAK+YP/RBb4RYV7vw6ZBgi/2Mh\ncWvxlf/9Xew1Mf1e2VEgNUlCC7h8Z16JYqIMnaQrUvJmrgqTels+qpjiiIFc\nkrVS73aA4jtr4zO7ei0LWqn7BWaBT9ACUyLxcltx8DjeykIHospYbtSprwIY\n/dgEZUvMQeh4copQpVq5EW13fT/o0GSQWCw5n0NDLTyTYEOpcPgqcqDV92WY\n34ugq4Shk6lX3UEXMhOobNYWQ9dqIKLLdz6+gVE1YXdGM51xlZ0d5hnn7srm\n8Fn5R38B+FAlbEbXMJTl9PpKsbI0H3vdX6BpqIiln86yvmWuyGQ3aYVO0KrE\nRJ7/eut+xEW3NIzcU3NQcRrMc8vxvZzgzu88pIUmEhn8AAZYZOUCOgqnZuyG\n9jSohibikPvF0w7w4KnqfSPlDLRuX3xuy13Nc+e65kwf9WHvenazvg9Eb0bt\nuwWqpZ0VWlwVMy2RCptFl3t50YHcecJBm53NK9/Y5RVEVJ/O74eZjCDVlPVo\n7ACxoq+3csJL1+WtUVXvjej6wd4a2w4xURpVKwu2RO5RiwF7s6PvlMGoCzOn\nee26uV5wJ57lVp+eS5UEIh6aTomvmxr6Ls+c3ayNuhtAlPbsVNbg81yi2nUR\nLprBmK2CncscZdSWG6Y2HmlVYGbuJgVUa7xZsRPXjolJQi4qwR9WZfFIRgYJ\nwlef\r\n=W46I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA3Mvyqr/LUQZfpfqE0oaGaDscNRlDaQt6OUEj3+Zjs+AiEAl8ypG5EAHgx6jy+M/PdJtlB/j4feenvoCPtHZ85E9M4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-1622757040000_1622757422009_0.1963287119252508"},"_hasShrinkwrap":false},"1.12.0-next-alpha-jun-4-2021":{"name":"playwright","version":"1.12.0-next-alpha-jun-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-jun-4-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-pFAC7F+/UoO00G1EtYLwKzw+lck7k0pHnAGAEScAtkAA0dFTb7mT6UcRQtbWxWqF4WXvoQlSaDe4R55x74anSQ==","shasum":"8b5f1476e8b094ea43c1a25113b7089d43b8e127","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-jun-4-2021.tgz","fileCount":225,"unpackedSize":7448153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguXUnCRA9TVsSAnZWagAASAUQAIXmK9nw9YJNffK2tA1L\nfdQICgG38+VTnGNVOR5bZwMYOYQvFYi3CV8cbK9mRgSPixDxmoM9PdzK7owW\n/hhNk4qMLNF3o48VrJtMyamFQg4DGZ24kLxnXONaolX631Qx/xkganEzrk/6\nwCl9i7xbkJ9oOVgQ9cg95jzJ6HveOUp/Ln9V8RjUf5pTpi9OT/Fdun/9Rq51\n/j1yUq/W0oUmtYBLG/Ggir3jnUQYAkmUXgKedTA25xyjP5sSCRXWXobv8A7M\nGKeCwEwe+IcStf84HNhGezcHrjRVfWjSDTlitHEvrnMccOyDgT9lJmp0v00U\nMnUlQbXQzvWt6gBTEZpLDqZInWFHKLrF2r6wJlHT3eQrTDY3TUyVr+n896WJ\nFJdO3ONPWbXV7M42+ttkHm9Nt2H5H0UU98/Ux2N7n3thofOZkV45aiMNXuQI\ns4FLcebZiw986ezNOC74T8ehHRw06dqjtegC7Q4zNMNEKJAnWGQAqmqqKUjf\nXo4oVwVu2vkOUd5JKe/IzwtcxU4uESjq2VPUdRp7wk9KKq91Ti+HxSum40mU\nn02+85K6NDeENnJWOZwzYH3kXHKyY2F23aW5m9zZHDpfe/eUUp1/k8RPWv6d\nrCCvVow4Set5pkk20deps56u/8hRixG3xEd4nEp1Gp4Qxl2LyGWxDVFX+cjc\n5FLi\r\n=M6mq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB517cJpXx1oUicroBYLmoM8fD3hUhn1QEjJEj1MMFEiAiEAqxdljCmyl7MaHG7EFyBI8t8GtaD9+iZdJUmwWBLs2Qw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-jun-4-2021_1622766887550_0.18804179743388993"},"_hasShrinkwrap":false},"1.12.0-next-alpha-jun-5-2021":{"name":"playwright","version":"1.12.0-next-alpha-jun-5-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-jun-5-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-cBoNnafoB3A/T5u1EY+FDOVQ/hK1eNwXLdVv9y+bWrKOHIvX0y/iCpPzMU1RLv+k9aVZhLxD3xYzn9nq3docJg==","shasum":"44cee2db837051e2497d067a865ee94666820f7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-jun-5-2021.tgz","fileCount":225,"unpackedSize":7445612,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgusU5CRA9TVsSAnZWagAAlo4QAIYBdD8ztjzt+5j0l6dv\nxJ/Y8CdQpDAktSVbJvXeMOIv1TkcwUxJG9YkTl3DIQWNGqP0BQP+A2pIt5zN\n9nW5FWIE6MkIlkRxMDuFBRUzJPF7FwgLv3OR6H0so+s2noAgQhHB17dkdu0a\nZl2hONHzn8jf3PGcUVVn2FUdS+bhmih0Q2DWy6IK+MsN/N0XvGFb6keWQzd5\nsJBb6sK3w8bEhatvrlMS/gjXODWk2yIsGyzuPXoMNdsZBGVwaxKOPNzlBNp5\n2TBAJkxQFJM+TQyRmEsQdAMuMnnDM8NKCafmiURKfNYazfoZqeNkc50NMMP/\nh2wevK98fbTr4n+KvTxJCP3sYcqI19KkB8WdTVee2HYx337gNQXPIcZ30gMF\nL2drw0CIfs2xZeNZSxghw6cRLuvxdm8gBO1EON9w6zZ0AHxkuX8t39z3cB27\ngwWr+xKf/j1Fy+HjMDbs8f+sLRBCYvZdDh7KbbzTb2J6j53wXVoWPrVb5671\nArjQ7mrmwn68rqdt6kRsABLhLiR4puHJJpcC5AFp71HvsCk7unVaqPXichZU\ngVtDYQFfUVsTQsuOkP/HQzelL+A9mfqgD9aEx+dT98SDPhU/zgIvmHrCjaBc\nUeIkAZI/p6WywO44UqhOhBUgrePibyp1dIwL960gHJTodyF6qpNEAAkk995r\n44oa\r\n=hRzh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUcPpG9D09ym4MqgYGS0qWIYVd1WktKD5lix3LSkziNAiBuaJp0rXpMj49+SApKmreAWVbZLuk8NyYdTLpkU2IUNg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-jun-5-2021_1622852921149_0.4927626685203499"},"_hasShrinkwrap":false},"1.12.0-next-1622928816000":{"name":"playwright","version":"1.12.0-next-1622928816000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-1622928816000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-4jJZLuT5H4Aj6VT5Zk0jvHt56F9Y6TT6Vz2RxEp+k4rFyTzAgaZwnyrfwWcdyhaswe4jB1mJb5rUYEU3RNs1AA==","shasum":"9a11e2f41a5a07812fa810025461044146d8676a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-1622928816000.tgz","fileCount":225,"unpackedSize":7445881,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvAC3CRA9TVsSAnZWagAAZqgP/1LLpCFcgqxLePRe3yxv\nU3BCqi21rcULMbBS3quQiRHEiiV1SBEW7X3NyPwGaWKgf9BmNU+t8OWqKECU\nFiDLqfVyXvSKwuzftBuDEXI2m5ZqspQ7qJcSLfe3Dheld2yG0zEb/dumrNWE\nsfxNGQ5g8yvbTMjka6QAr3mDLos9mjZnLIsAadS+t/W+fg+C4bGUFwcLTeae\nzGQAjP+W+ZbVA7mvypWdZqOx4rtmtzD9kLPkY3Lg6kwbCV5h89PeytU+4TDq\nbdpmbQi043HI1kOGveMemchhVEqJxT3x3gd+GgxVy5ylRrim/D4BXtcGAcuM\nk+k9ZpxWnNy/wALozVQT8bYp/y2BWFQ5ZQ9f4UOMpN5C1RQVK5rNRsUy2Fun\nxAC6soSfEtcYHaLsssYlAkCs7c2JUXwndxcTQVTsLUeSV2296rdO+oDTb3kq\n931Vjp7erZ1tx9ouS6M9u0yF5R1YhFrToOXGqpodbHqzr2/ns46U5Mnyppxc\n0mfvLqbMFGoEkUx0StsxfNZW0uxLsRGRm3hKWk7LX15Hmu+97CaINsVr1vYX\noTizK0TmjYVo7OgvtLiLR892lEkn9PsrtvNk4Qjv34lMR79AMkTJgCRivHRL\nJou2T8Z9ETt5p9lsXnfVDjIfojWcJhirfg+Q8gXgGp8nByk1R4fhffCdjPWc\nsfjI\r\n=eUL8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3SmHr/06reqKW4Ao21gKxawN4AnAzw0WNzPIIRL+QOAiEA/c0oqTvVk3LIvggEsHe5FHn2WgP/S6qvyIJ2sdg5/gc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-1622928816000_1622933687474_0.16485121247491952"},"_hasShrinkwrap":false},"1.12.0-next-alpha-jun-6-2021":{"name":"playwright","version":"1.12.0-next-alpha-jun-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-jun-6-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-azriNVsgV7cHaDPV0y1rjbvpZzh5Tr7uY27CBro31rkT2ADYn7fw1Q6FghYkgMudFBqNidKlGMqPMv1buEVSUQ==","shasum":"2627e5feeb98682b55b449d28f903eb60e3305a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-jun-6-2021.tgz","fileCount":225,"unpackedSize":7445884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvBVpCRA9TVsSAnZWagAAi4AQAJqoFTDGF+vSB72CL8JH\nulPnbhTc/kTZO0hmveA1vnLRKZBTPNsfk5PQZi3CoBHL0EZXtpIfOg+ewUuY\nWnmCiFyH5LEXoeGfVs+ekuXKXZsukx7n/Ac6k+3scfTunLpaYE1f392c9KyJ\nz/Wcjp26tSq4Zjk2iItuf2Zlr9HCXX0Y+h8XvXueV5glUut3UGgcK3zeLeXy\ngjnkHaNKflmxwuGy3bzMQ/LzzNT92/xwysQaT/+Me0X9rVBPbAfjs+Dc+fn8\nHCs/NOc8n/aJIPIa4xOa9d0iKYvgPuX4mySYPrR1aA0ujF2NiCtRygr3UuOI\n9+F/SBb7lNb2Zcg3BWpApxvaA0mWFZWNHLOPOZexxznRk92nKARam1wx/xf2\n8vprw0tIjYLcvDZf6kwyY2/xpTKCxXFc+hmoK9hpPPPvNrFuToSfBi54pkmt\nxBWlFPctkYkSZuM+VZD5ukHWtEQCulsNi9N51XhVP1SFmI3w2XKC5fe5vyfK\nAQ0uQ0CFw7mHS0Z7BYeU7x/cfPpL2vQzjfNQborjZMKX7nvztm1qzDa5m04U\n31wOrGrNHTHtTtbKGpLBQKCA1+f/ZKG0RwyvWNoXKly8rGBoE6SkcCCU797Q\n65P2rC+HRcBHb5PosipGstLRgFDWSAWZyTupntvwHIasR776QOWhUd9Az6c4\ngjxT\r\n=RU3F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDnr7NYhpsKuLwR64n/bBBmFUlAPVTOcngLa+62xeUH/AiAqfDK8eAr9REKwCPuVn8QtWMx6UQz84CIkILM3FXAm1w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-jun-6-2021_1622938985351_0.6213886808303046"},"_hasShrinkwrap":false},"1.12.0-next-alpha-jun-7-2021":{"name":"playwright","version":"1.12.0-next-alpha-jun-7-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-jun-7-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-wSl4lOKSoyvG7RyzM7iOQk4fMPoMb/NSv3oI6xI7QxkhtqiNIJVHvIAHI3w+VwMlBGdO+AmePQOf+EclTR2BrA==","shasum":"cf7b7785802e0edb9c02608875f78030d63535d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-jun-7-2021.tgz","fileCount":254,"unpackedSize":7715826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvWa/CRA9TVsSAnZWagAA6rAP/0xUA5oOCAdamNRsnjRx\n5Ezi6PWCElOHgF26lkt8uaCNaTcwS3kYSF2nsupskxLTH1y97xXxHXwvfNe5\nrsHkJx8Aj7Qz3aiK2BTvspnY8Msim0/4JFQ6P+ImoHznI68O+5RPh3tofVHO\njwW1zij5bRFTF1Q/ucaqlEVW2XxjLfVZYwHcJZnOK2QfX/0S+w7t960gCVhE\nzVUQvMHqKEOldX6Da2qxoX3frX1u3SBpMRFF27CBWRPsSEZu+3YlW0OytfVt\nWVX53hwnuFgGtZzYqlOo7zOk3O/WSQsR01wMlK8ZDeehbRExogdPEf9LppyT\n3+C4fsVgz1kiFvbCN1f4XYHiAUTcDJTbJEqiPa3JlAw6GswtEBAONRcCc6GD\n1Sd1eX93mya8mxHhP5qD2JCtWOfokUBGuj2oTvmZr6jeBiuU6JcMp7MTgKZF\nRyzqDIDOuDHLs2wtkQm2Q/M2T8EtWKhKMkUx/yaSD4l3IibWkwk5HNcMvPIs\n1+TJAIA15oQbZC0u+gyIgaVlrUbyerY6b5ItGvQ58Y88N91FMc3nO/c9LxKa\nVq3ZHKOHSSqy4LkdAsHrIQewnlWf1ali18MRKDJISvHmeHS9GVlPhp4QP32i\n5MJH96BcrYSWG7RmjO69dsQPj16MdM23erKyCLBQ2nmaPI1UvRL3tgTXl9yu\n8pqz\r\n=FMpU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFcPTNvzq4dPrCnZOQVTaGcyrARgGye0eHfM8b81X4eAiEAxTDSG11oiXUKyRKKpgU94LEPMAla8c0oacQOCphg7fU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-jun-7-2021_1623025343157_0.02236686419308964"},"_hasShrinkwrap":false},"1.12.0-next-1623086854000":{"name":"playwright","version":"1.12.0-next-1623086854000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-1623086854000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-+edfrRkGNA1nW4QRnbRNS3cyuwzOr1lTf9vBezZTe00j97CACLZzgkWl7zGrw8eEcvcuT6Lk0O3BgvyWDF7sbg==","shasum":"aa57bb55538a3c3b28487248e801bd3adafed7f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-1623086854000.tgz","fileCount":255,"unpackedSize":7723320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvl/CCRA9TVsSAnZWagAAwBIQAI0mljIi1wCbSxjG2lMw\nLhuEMMoUfWe5+NbYJkBb8MKM1rx78sBFG4bps7sXopTKPpSzaW+MzSAKycS8\n5W1vevkzffB/q9CXRiA+nE8ZTq5Rv2bYhOXgPKkOYhG8WvUrof0+TCDBTt8m\npT8sAIC0TvZutzSc/J+kAxwJqT+KxQZECwbwM9wEEs3F7M8TrmO7TqEeirvz\nOwfQIbWIFMA4otQnT0y+5OvNVJJnubequPc2yo4l9MCy3r1m0Wk+H2eotNzI\nm21isCq554N8wx3bm6lz14JiJB4ITmZp72ujFyytXJEpICqvktbWXSvIVgnx\n7aqDOJtKvBXVtnKnCWGIyclSzXWq4TK8vmRgyxjib9Te3FRlyZ21HlBO6Jv6\ngVHzZ8vULV1MQwfletC3QY3DtgxK5dHmhrtpnoA6oGn5jn5Z8aLx7dpEkw0k\n18I9pMmrWz9UV5qUmKg/VTKytNe/QVgMywiKwlGSC/6h48dZD5C1vzWL1ZGl\n/7Je0QWXEyoYjApC7+KCjHBCYzBksNPrydLxDVcMk42/47WNSZgVyPWyS+JK\ndkC3KhoKSPGVeDznTcfBGovGhV7J83TNzTJFyA46Yq8coMSMzXqeCWhagMTM\n2TXyx+4Q0wdujMS+h9vuBQsrGHtkS3kGc06KmrRCZ3PvwZ6fasafjk/BAd6J\nN5ZZ\r\n=yWNR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHYGvEL9oVaDFTR2Vnv+UWvY6Qx3NarW5x0RmAmEA+2CAiEA8qIrPtVts0yTnlW6dqcxkc50MmnajPTQYNcXW1jP+7A="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-1623086854000_1623089090043_0.09418517595407239"},"_hasShrinkwrap":false},"1.12.0-next-alpha-jun-8-2021":{"name":"playwright","version":"1.12.0-next-alpha-jun-8-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0b15-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0b15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-alpha-jun-8-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-UAhcsCLULApWrocqhhuDlyIaM9TZWuqtfLIL5x8Ty9C1Lux3Z5LEY/m579L6lbbDDrG2HRzX8RrS2Zz7lI4c1w==","shasum":"0458ad0cf26e29d95a33d5b576d0c1b9ef91a374","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-alpha-jun-8-2021.tgz","fileCount":255,"unpackedSize":7723343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvrkiCRA9TVsSAnZWagAAr5gP/3ru4TkXiisIgJRogGWm\nkjJxVcpjI3zPhyp9sH7XDIAyNJhHkSMpbSFEwxdaFTTldFpC/2t4SAR7qMwA\nnhIZNSmI6nazvVMtuoXot3JJ04Fa1QPl/4G9tfsIbvTWOPX+rTeefHW2xxza\nX/0PdsiVmOVZ0laxJz8meu5YvO03VTx6WNWWL1i6rovsbma3UlTMlIw4s0hk\nN0fL20ngX6kQ6ReYLHPJfDuALN34bm7LPQgDmFFl1BGLXDyJ/qX5QchNfm6n\nJggcvDhFnOgo/TLJd9RhvTjcQEbA8nsGKGjPOyVEyR3NOXN47vbwDOJtGdAw\nq304eyrN1gXCOuDHHZ8s1BL5zSp/7s2ah6WZUH8TisjJsv7/dTLrcvc6LwEw\n8dNblFZODPQ+SMyu0TIA+n7SYHE5pZ7Ij79Caee0Uv8WWtaIMuKRiLCcRdXB\nKzJFZku6JPnMJaR/tTGSHi0zQqgREVuGA/eCuVdXDnqPRWcSxDr7Vcu8Yzil\noNIQogP+y95jBbHrCBZibb0irrdlplOqg2uWp6g5999tRQCg5NnTFE3spvbc\nGS88T324tbCdVd0FEtqoIOSujIBprMNkEhh3EANgj1Kmr1t/WsYfPXGEklnF\nPSteE9T7mJJBr8i72I7B77la4gsfRB2mHajrxrhWbN0LeJF+vGz34Ci9tJNS\nkbQp\r\n=x+cl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD49V9XGzbb0UkKqafL/8X7MMXH4ddvcN94Qu8kF/3q3QIgatd2BJqsdJozgm5XS7z5UeVphCgTTXR176Nuh+IbJNc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-alpha-jun-8-2021_1623111969954_0.7616944703176012"},"_hasShrinkwrap":false},"1.12.0-next-1623176527000":{"name":"playwright","version":"1.12.0-next-1623176527000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-1623176527000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-HUqxmhx42kUELuFo9bmdnPxNLGl5rjnbTWTHi3Rll2DMw6D0BpnnGHn69SBJEAFMQ65AuufmEv8A/8OEtARegQ==","shasum":"43cb554b77e2456b69ecdba33fad3b32046da2cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-1623176527000.tgz","fileCount":255,"unpackedSize":7724349,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv7bbCRA9TVsSAnZWagAA+OIP/1OiCLmRxXAsR9nD7P//\nLxf5GYBRlYSC8u77KfdT3zJh7e8iuO/vqt9YBiEhAmtjbJt5Uv9Zi3kFkaO5\nYRRVHndkLFaf3hnbL1PMyLRahXs96fV3UV5+/8lriqSpOJsLFvE8g68UVkaw\nyTSHyDz5VMSgMeo6lOLP61vg5khv5mpCPJwR5Q7h818FKxak34tIbUBMP3J1\njQs4c+ubO48Jz1AIGdVSt21yqG/EppJIfHyYQ7wt/yIoIUGu9cITvgcPoBlX\n33UTmKQ75QjuCw+gtQfHKh0Ljc66TQJE4nOAH5YWkJZnUzmtZWLd24PrMhVN\nefX6KpwXopVRagTsbewN5TFnpHeD19ssmOEzOOt7HMwRIA/3C5BWkuqjl1I5\njtxVTeoi76JBbwTUYKgXeQ3TRt39MQw4k2eGQWPBmF4lKJp/f5XTKPFGHZFA\nYllo4VJrW3d4g16EC6PjEi+KDvYl21eTROo7Og2V/yfEEASKE8XzTe5JjKGs\nNCpUiXw3XuwHYWUeLuCg5Q617oxPN4rc/km5zCRJ9inBh6mJnpOi7no32yCE\nfw9mNKjXdTgZoXI/JTY9LN09Gk9k/E3SseF3JUP0wm11fdpC1AU6WkxzKGKM\nyejcY0a9+9f+IwilEwFfI5o04CsD3GTiFT6KP2PbOByY6ubpVPSPidOFPikt\nWipp\r\n=6QFG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByB4VJM5kflG1CO/pp4KaI+aatCAfLEt4NP+cntyj05AiB636YnlSRBtl4nRAvphQeBUbKoa6vM35novv3wcNe15A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-1623176527000_1623176923308_0.8471772808121609"},"_hasShrinkwrap":false},"1.12.0-next-1623181472000":{"name":"playwright","version":"1.12.0-next-1623181472000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-next-1623181472000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-TK6oOGvP2lZ+IMYioj8YsMOg3YDd+TfOi00B24zrczPIhRFxifcs0ZmGKNdgG/FQoOCuY5BfgqAcpxWHh2yAJg==","shasum":"9063b444feee9231e93518551118eeeb2d5af33b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-next-1623181472000.tgz","fileCount":255,"unpackedSize":7724349,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv8kwCRA9TVsSAnZWagAAsN4P/0iUuZvd4rSY69aq5vTu\nYpknLTgCiQLbJgG+7QeMXiqbaKTvQMzSWcwcZ0oTjxAjrGCwk9Wy9vrg2+Kv\nLe8grBZ8NxDc6xTGdCdbDF8GmWJ9jdH2CTVIidCSOeY5s4vHLV6TEDnQ2mSZ\nc6aesier7GXCQdH0u8at7vsuR2CtBpRKDLKLMOqWKHL1v5tpez4soQ39rlNF\nJzC1EvdceDDYLnAXkczMPA2dfzdjR3DcINPF87qFE22lQ0vaBk5JQ6b9iqen\nzDTVTxPOT13UlvxYJbA4x5DDjfzauAiO33xyh+kBTdileD81fskCA6SshIjg\nsCYG94ASXM9GuLZrY+vJcKXY7myHCq1fFPdlYQO0sU+a/LDYZivy5DkQP0WI\nF0EzW5iwSZljv7/Nhs1q+dBG9LYMyDnCI00pb0H9XVR0gEz1vhUixYHp9aI4\nAmmmpTyXw/UxfJWgWBwwiC1dYJKjGGuDfLUO+dn8p527pOguJX/Fj163wc+D\nkWmjc3yYOWmbGMtT9c7qAgQfu1PhpfLh2xpLKZNOtVyMH1aEpd+hpHasyhMg\nw7qyVmlsfyxcNThK/Wgw80ctqt46f2y7UIw16toHNDY5CQq162+Nr6Ulg4UX\nOsUgfpJRC7mzLaZdh2OKKqcA9R2uNTNH2LsseFUjLClxlxZJNlAbOv4482wg\n1/VG\r\n=6abD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK1YrDTYYYq0Oe7iYmAGI/E1Cggt0Kk8clNVaVKDrhmgIgeJ4Lx08FZwcLkMg5cpFmH/j7rfEYOZ8tcr/61+GfCdk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-next-1623181472000_1623181615851_0.5601665432292076"},"_hasShrinkwrap":false},"1.12.0-1623185968000":{"name":"playwright","version":"1.12.0-1623185968000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-1623185968000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-2rrdOvKBcGZfHpGrPAv2UXFOrr/qNQhtu6KKPGf05t1sOHfRtdJ7/KqgYJCSSUalbi/cyVJUFyBSNo5uSK1Mew==","shasum":"642e1701aec45136472a6273494d7f14487b4d7a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-1623185968000.tgz","fileCount":255,"unpackedSize":7724344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv9rYCRA9TVsSAnZWagAATZcP/R0ldJNbWv+ylFq312hD\nfConU7HEdi7BenxslyanTSTLXkzqC5zMd+hpgl3uHkoZXR/3Z0nbdzKqRFF9\n/AaiRwILo2p6tUe4MEnRdKG4HCL5Tlt5+2U1kaLjsnHbOck9Ux+VC0Ov3o6w\nOkqM8ahKFmDj1TrE5pMRix8gVohtnlglH3MHoW3tyZqAOXdJk/AULhdrAqqv\nD5orBnBWjSYob+hbF9Vnfz6IuWR+qj9nvqYYlYozAI6tLi+WvbXILsRbQkk6\nXnzzz+C5faY4NY38qg/xfvo+rL6mLCw3VWzLVzqU0g9ui8tMt7BjmhU5YJUY\n1cHe1W54ZqjC22KAFiQTWy+PldgHJG8gcnWtnHnbO88JF/lVygxhAkZG/V/S\n8sH6AU+5Jug383PngN/Ak1OkaxJEeP15noiAZxvk4wLRYPRoL1Me/qRw34/i\np1dH33h9xsfictjOuhELgKIriVHWsYO/3KM53zDok1VferPbcG7onOmAOjHk\n2D22ooJUf6GHff99l/sEeGcXquqce4JBA3JZ5M7x3Y+gpxCAsLo+oeh48rJx\nvmQFWNJQNNvkFlxPWnsih325MAL7xW0k0gjqY6FcD0tzIW/1Esn0sVUjJ8Yo\nE0fydja2bxTEuq5il3rJWvdOsee8FWsVcLRuxtHZ/L5cbCeQz1X+r637fc2D\ntUhl\r\n=W24G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHcnThSJDMAYlQPhSEwbrZ8RXTm+q07yBRBOgmKBCh0NAiA0WKLG89o8OqAW1MH6TYa2PzDC9sE7Ly6PTAKU+oogjQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-1623185968000_1623186136226_0.6787755194920941"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-9-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-9-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-2GAsJtvFxMoV589kb2G8h+Rsdg/7dMhzFmjxQO0qK8+Geoi5YTu93Lk+ZlwlRrCch+e5NNm9uzsL7CbvpRo5DQ==","shasum":"59ea116997ccecf81a23ffcad3011c2b1f819fb1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-9-2021.tgz","fileCount":255,"unpackedSize":7724352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwAjHCRA9TVsSAnZWagAAofAP/jr5yWChM4DzzYwkgulW\n3oSPGz3TcyzyMeHZsGawIcbzU8F32HYRQPFtpzFsHvjpvrRJmlSFKfqjFQp6\nji4fi+WaomDJTwXnjQVgkJwtMpaq7A2nwDpQWUf7aAkfJkRqqxqbuet2GMS4\nPFdzYyzah3t1yuedYL+0muBde+BL0fVcAvtaGrzwGXRC7qCkqnxemhNNdjmb\n2QtFBl+6vPJ5hGDRCdmXmr4QPs0lHcUP8jnmUmtd6HR6h34XAIeBPkYCC8uM\nB5+gyyG094Zx3A+PWXBzOxI7ozMJmsS9qMvG+tPLPTXtLh9d9/9eWjaRyhRl\n9RFJVnVbunACn6Ezzi790Cy18S2G8cwId2lYeoeNKOHkg6EJv4kt3VMStxfe\nsfh1F1KyEnBV6M7s2/RyACZpEcqz9gGFnBbG29Dtaj5+2yMi/tMUy9OpVa/n\nl/bsRC63gIfjjih/fuLqUXxM03a1quBI+z+PdR2NBVGsmJ502GiFgxKgpUX6\nHbVV+KT3tP0jeI1N7vpzLIbrXSAYsoaQW0Vhuagky29EVA6tIb0FkhxOowo0\nALC5xQ4IdN+DppDKVcKKJSdDja+sOMQM5VSDjAvaqti1X8Q2IDyxp9wHSRJz\nqwuTj+GuxdB1bVsjvI6TWsfNE+vlRznVbLGEHuuOHsB5VQ9IfONLAhhUbn6r\nYmr/\r\n=+94z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiw2xO4vvZVj3ZR6Vt/zj+YUF3J/bX4aJmIa4VneacdgIhAInNHl9vV+U1tYa2cx7aLOSOLx5ZXJ2sAld2krsGuA/W"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-9-2021_1623197894931_0.8262970850151103"},"_hasShrinkwrap":false},"1.12.0":{"name":"playwright","version":"1.12.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-FrR16vgaTulbs6cVr+wTjj6Dgp5ig5nlGZ13n6RolmyiIkXxXL8O51sVz6Fbhwuup853RnnGIRyEOw34Fx2WJA==","shasum":"906b9dac1a2c8281235c3d7f53e5f3f40374a60b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0.tgz","fileCount":255,"unpackedSize":7724330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwBNZCRA9TVsSAnZWagAACvQQAINfzqHNTcMlDHEbGNCc\nYyYUP2kTUTMQXSZSwJUuQIGqVm3/tGtWG7YomQt0HtC7NUSYA1tYeV10byN/\nSnmA6QSl88qk8HQBSULEPyssA8xkKSEvSTzvSTwhzwlN5eZIgwQiJCy4k3vw\ntB++PQ/4XGoroXdC3wYViSQnODN3U93W3HMjTZJbAx2/Ct+FWjRx8He/J7Vk\nEHsj85im7uotC2vC2u+05EZXbLOsavkgRZt4rNQxyXqizewWV2ShiUnmWKii\ne9tCOwP2jYZTouvgNKn9Mw4CMDS/8rQ1xvxDDzrL0cZZM7awxcOHh/c5Wdf8\ny/gYDpbXsDwPaMZgPiTTq9bjSlWFYcedl/Aanu5iS1ZnINO4bnwiyRcl9+we\nkWeKEKlOqXVhmHMVPPPnSSXNAS80D6iC4KhNt2lE5fohhgkFiB8rT87XZDR2\nlhKYn/L+W1vrkFRth6VCq4mIQKeyWu9kOKLgnXLNgcRxtfg/aqlkG2ifgpUb\n0dVaGEL3tNpvjmFbIwg11wHzyuJN6+ghA61/HNG2TvbuK7IlNelKEBBqhvXV\ny8AMWkZyYewVVGqUR+luDpCF+SEB3U7j4bUDDP+lEAa4oRw7K7Q1weOl90De\nYBZbhadeAbO4WYMEcwW9+Jpdk3yHvB+2gUojtT+oMYczFUVWtTJyydhV6iQE\nSiaU\r\n=YuA+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQuVo3AiyKdAAGiQv3PiDYt3a/mso4OYP0urcNphQwAwIhAIoy17w4nTIhpI1QefqaDUdvqgnX2BpabgpIh2QV4Bnl"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0_1623200601716_0.0270013994005478"},"_hasShrinkwrap":false},"1.13.0-next-1623265195000":{"name":"playwright","version":"1.13.0-next-1623265195000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1623265195000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-iLNXr4aJaroUqBzGlGYFxvXHu9ao1uqCcTkSH8TcAzZCJFPC44gkIMa9IWnsluYjLpnYkkekI+uBFQqfR+QCzA==","shasum":"e950cb2fc36e555dd0a4489311d4630698abccff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1623265195000.tgz","fileCount":255,"unpackedSize":7724828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwRCxCRA9TVsSAnZWagAAw3QP+wYZu+h3yv0e3RmXCsPX\nC1XTqRqeAWUAbMDZQR2yBncLzKRVes2meYr/3z+qQ1VEY/nv6tbKoHbKcju9\nWSGqTppXAbloSymRvAXK+4FhoPY3tCZBRYqww9db+uUNz1oHJRC7ANMIvfRb\najmGSA3SUSh4kk7/g2sqNwVBXwdPUYf9OKDVErb6u2hlxcW3bJUH8YpX1Zdj\n+AWTSBUvFqySjOzWsEWhQBZ7Z8J2vOayD9Ag3zaxP6op+sUmK3zgjo66Ru+j\ne+J2koMJwuCqltK7j5CBxaQW/qKFLbOVzz7kMoKh1eKpEMtNdSkinT1Btjfg\n/M0tKd/gDlZZhEsuLF5FrOH4iZOukH91M8DP3Bwou/j5WQr7i0xhYdUJbTcv\nwmaPhOM/zoE2nCVKuLnPTLyBiKeT/7fVNQoCaUyt5PQ8LXfwo8MhcTZe9fOU\n7A9ze8rPHZIrfHoCwgceS2ADb/sZI0h7q7sYUPA2kgF482hqS98UhiDtzzQr\nT0zwAhfxTkGLJeN+ra8etx0bsJcIJsyj5o5FTwK1sSQ1DQnyNR+MDT5vUbwh\nrE1JJNQsQeIyPVMGo7SS658IC+c4svN+4AUsouib/mM6uQaw+onJ9P5rrZLJ\n9vmb7U6V8ezPQPOfS2dLhkXkqYga89Dy+FiIihp8Tawd3Q8eNZE+qO6V54LF\nDvdV\r\n=G9oP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFdph6WwMsu8uS04hxZaQ7vboIuh8tvY+/uvMja3DqODAiAdjaOLhgxvsgEMXRgkohI+DiXk2Aa60Tv/Y3Q3YYBRtg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1623265195000_1623265456847_0.37785155794437975"},"_hasShrinkwrap":false},"1.12.0-1623267207000":{"name":"playwright","version":"1.12.0-1623267207000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-1623267207000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-1M91p/oc1EvnPfzrpd+UWXei1EaLJ2nquo7hWGczr5HuEZXPDGKpgt1KmDdiq4N7wkD/WSaO41GZP+uEqCf/VQ==","shasum":"2e381d0f319382ebaa62e29ba7a342603571c68f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-1623267207000.tgz","fileCount":255,"unpackedSize":7724345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwRg4CRA9TVsSAnZWagAA+kAQAJLl8Sx5H1yVToFapMo/\np61H3Qpy545xV9tZpbim2GVxNbeARz6Sdg2A1D3cVShkGq1zjLA9yzlHeGfC\n99EGoCN177+fmQmKBcdEdsz51lQ1Y0prGRPwE/l5zHun3u8eyeMdzrZ+XTGM\nGfeSCnED7B9bx5qd94aEbqDYjTx9wdLYADEy75Gj9CnBrWEPl5BzZDu3P+q3\nbknO/tPswmetKi+iRHI6GLgzgBVfM7EOBRjyCgUe0EhZxsmX//eYvmz2seaW\nUWdJayAOFOAw8IyTcRP7b8Z5x+SKUzLRAj2AGH2c5UeYGeVpYbCFV2CAgX9G\nkSuuPe6COynKcKYB5fNY8AxgHb74ikOFFoXhxhPR0MTPWfUvgFg5cUWopBBD\nfu+pHh4KUqyQMtgyePFASV79/YGwG4RwVr+IvHVQ3nKjpfzLugsagqy2V7Mv\nWO9DKu3q7eBjJ+NiOIN4jzB+nhKc9djSw10R4x07pOViOoa9XRn9OheJTs2+\n7D9/GchSLX41sdVRgTJo2+Oxd8zRGUlkGMJleWRxeJ+Gxqu3fa3DmKLiWJx0\n3bsJpain16jApfpkCK42QVXcgbvj6jWVNpFndJndHRsQd+bo5CZQKMQu9bXV\nckFqLBopkV6wpgGMzFb2JqQ0Ha5rEdmLL6ZIuf5brr7eiQgjUyeTQy2in4Sv\nnBaK\r\n=J0Bu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICbEbDA5Bp8N4ieXae59yn+kik3VxPwvCuOEJgAzLorPAiEAjae6fIOzcDGBRhgQKFJZXZwCtf5hWaTBtCDeW9qV4GQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-1623267207000_1623267384588_0.8690618180503582"},"_hasShrinkwrap":false},"1.12.0-1623269188000":{"name":"playwright","version":"1.12.0-1623269188000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.0-1623269188000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-WDEWRW0FA9vr26wBUZwqLeBDxNqf+AvxdsTnKOrqw3++Wnhkd+2p/q/SDjckcNcWqdF9uqKu1N13uvQ1wow13g==","shasum":"d3690690646413d8855e86d944346389d37074eb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.0-1623269188000.tgz","fileCount":255,"unpackedSize":7724750,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwSAHCRA9TVsSAnZWagAAKlEP/RqDZwDtm2mgVQTAjDOG\nVA3ydtuDYKMYfBTTGOUpYPvk7GEHNoO1GC4td3TVl4HRnI/xZWmMWhMJ/Lp1\nvhA23irY8sHp5QR7bLoOKt/TWyk31s9NlzsGrp4ogjySTP5iQ6J/GlSf4dog\nsreaqMuzlLRV06cI1crkwt+6nxO45XYCrm1QreFlcTVOOKJm2O98U/UuIeUo\n7CoZ8PgqkjyEJ5F6l6hRZGXwomi/8nYjs29yhfIOpyB1r4k/4+5DXNBTTRf+\nrPr7rgfDMEsSddWbTMwNm9tX9CG7G7jNR5KP34U4XUiS6dgFaX6GvbTQ353Q\nczfEyx0crgCkznqpuf83U6J0WgPS4HYe7RVX+zFq6uqTIIpy9zTZYLQ9h3ud\nm/r7mHGcg61XNUbg3/1uXn4I85TAZXO24ii41NoUG0JPHTwkrChM9dYEyBeT\nl4eW6It0OC/RFTcx3+SvCMW5Vxyv784ogoRTjMUVuLCTTJJW7hXYE1vEmrRA\nJpg0ugylo0IxKavrOPf+WdMNNjAArl7M2aD2DIHxNDmtvoFpiCyAmdT5V/At\ntLLbt5bJZiZOrTLWroUkzMGq4V52LsqjUI9aZDv9LFd19pyNIMGnxRjXZwM7\nNXdi9EHrRqqRUTQadx60P9vXSt24NhAokv479fEcbn0uBoT538TSR+mM1oGA\nGkPW\r\n=6ANs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHto+NPGL1VZ95gtn1DKi6joaBbqCe+CimVD31UUG3SEAiEAjlw4WpfLCPZGS7cMMhpJAJ+QVeLUlwi2HD9aGJ7vdqw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.0-1623269188000_1623269383431_0.6198203579062738"},"_hasShrinkwrap":false},"1.12.1-1623273606000":{"name":"playwright","version":"1.12.1-1623273606000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.1-1623273606000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-pjEVdGiE5DtD49mvrYcIYndzFgSUAqLTVfzM4o/8vTieSoqLq3Cieocl7XqGPRc85T9y78aIR7D+BDDqcuRZMA==","shasum":"410c06a067e8ee886868f2c8bb3d14c6a19d8fff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.1-1623273606000.tgz","fileCount":255,"unpackedSize":7725645,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwTF+CRA9TVsSAnZWagAACAIP/A00TPK8zY5Y+x42wz67\nBecHN2IDzfW8xlFI6vBwsGvLYWjhwBxFH6wiUD1aL7rG9dVAGlpvpEHo2/rt\nXAdiApiJxfhjKt6j223YpM3Ybb37d6nP2txsfMaOXE8oXz0Rw3ywQUhG9RZr\noDW8VfT+OM8isXFN66Neivjx5jQHrDDMNE96Rrmp1RD3oqECHyCpK5k926O+\nvXrQPG+ubsurUxxGfSYqGHd4YIHKYZjit5hDbXhCKAG2vOPsPN5jT2Wl9cgP\n8wdkHhUlJ8o3zJseKI0bA08jttbnliEnr57SJFHMFXxvN8wM//3dALJ9ehz4\n/hw7ESr7WmcvkV9KelQSsq5HMsQDuutWAu1mRvys3Mv+Wq40q9K26JFO/EDO\ndIpVFtZQL0Cz1MvAkArM4RRGYzQyS1jLQ83I/Phjg393D6aYdS0cdkNFujzZ\nT31BQ/5ACwL8bhND2M12zwEvvScoUR1CBCvTQYnzbztwlwAZBtDgiaLc6/tF\nw4lk0746sXH1C8Q00IvqGxvSdo67c8ypCLyg0F1hWuWgVDc12ck/JdlhfJSo\nBFDv2JTPTto8B54OyhBGCAfvuSaOlaYMhY7ldwRElvT7Q5EInzeJCfl8JZWb\nO8hJBl6a+8OoVQhq2M3X+7owDhU3lmC6EhNVl08Kqf3Z6WJ3EKGWTHThUrN3\n4lYs\r\n=LAXd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmgAQUBTjupj+cZ+SQNOpeFoodBIEcPTzZEZB+HCef2QIhANS7bQI1Ud0zGlsVVlSfT+WwySG0PkGx7qm58wEKdkih"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.1-1623273606000_1623273854019_0.25690258092172047"},"_hasShrinkwrap":false},"1.12.1":{"name":"playwright","version":"1.12.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-n+L93YSy6ysWsDdnr9NgB9HnIfD33jDvSgB77hIhFKws5ShS3GhZHNZBfPDYdSLJg8IN99656ahDRutbAZ/pLQ==","shasum":"afea5260ffcc30b39ec17640c11dc6a117dc4ce7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.1.tgz","fileCount":255,"unpackedSize":7725631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwTrbCRA9TVsSAnZWagAASgMP/1pweyNIAhzzU0gvl8nz\nQGcOkWeAlFKTZOUvaiGk9F+bee6VqV9F9YQewefbpN2FZi3CAezoVpGKmxh1\ncOCrxx2Hu2LAP4fiRDSln8Km3Xbz3eESrQE0vpy4ZtJVsN6NRZ1WemqOkhoO\nghJ+AigJtbveim4AG0pKdroUkPWnXLG8fCsjXTk8gYQJ9skuIH4fH9B3QSMn\n20xEox/ih75jqdibXctG/T8zSkmzZqMW1i2Y9o5cEBptt84jLylGt27B+76/\nEuBXV1HjK+RfRHcOYuKBVB/7f0Ys8SWrBhM1KLLqLceOqmDkf5sbLgJjJAfg\nCls5QOLim61HWXLTjUEoxAliaOsNLbWKil9BkoJC7SHFJs/sOz2WGRM24uEa\nT7FdEkA1XoaFoV2zKyt8eBf76wnyZXhiDdFYpsAmDp/qg1zia57zNR66A4OI\nUuhOEHs0fMXB+46IzxOGFJ8LJVk3ve1poVxYhh08OySwmgdXQGdUjiRvXioR\nITRd1Zf31qCBM159Mbq21WnLZAfa1rxHKFN3g/V9ULrpo9BNUQqcYLEzKtZg\nyCg5wiXHqkEraFs1E/qnMBJ+OIYF9taarR7Yx5ZuFyk2zSk+g0S3BOGJJESP\nMoJwme+bBciN5kdNCY43XNHN+1GAsptw05EeHShh6xsgp+w1sPmJSMI0KY7y\nRkRI\r\n=BN37\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgatZWRJYVeaReqkJtPPvbmRr3eAn2Noy95Jflfj3XGwIgCGQEe20/T8JN4xtEw2+zVsE9U2oOVh9zuF65p0ZU/a8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.1_1623276251316_0.24533272505793202"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-10-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-10-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-3wyfNV/n1ZXJPztMunmpcgHJXDPIMRoMd/iDMC8yUA4LPwE/JpmmS6NG++KDmPDu7P6HYOO4jGzM+SXdDRX+bg==","shasum":"71d73ee330ad9fe354a5b59c19947de17ba70538","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-10-2021.tgz","fileCount":255,"unpackedSize":7726019,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwVpDCRA9TVsSAnZWagAAF9oQAIQPcCAJKkDitbY8LQ/o\n2gY0ULT8Dz7nKT4E4Z5VT+OdkgLACKk6Qs3TCRa4KU9DK0DNDwzCHyjMcFwK\niaPXrjff3v1VDhe5ncKDliI/LzJ6NQfSel/Xnp6FriGZBVh4mzvdSQgvWSC7\nGU43ZGf46mkge1QkaC49wgIrCFyiXTqAXjkBWioYMsMcCHxEWIDD/jAhFmdd\nxJkpPKls5c7qddEcfFOtPpc1XRJgQ59PZtNiRG1lwrrVJWfw7eLXubbzorax\nLYjIX+F2taoAmRDNwtMxGK9Ea7W2pXBDsTS7aHe25qF2H7oMck0Ih2quZVjL\n6tQEIjumql7Gcva8i6Swuq1DJBoAa0fh5Rp1akn0987UcK6Qob35LiVhnGP8\nUKAwB8w1GpeGQyg5CUzTqWLnOJ4TNi/lSKoyY+mdt+0nxmgozhKwxIAG5cM9\nipIzNHne0EXwkfUxyUSPKbXlymoJPrSr1/HnwkxYe2NG+e5nEdbKqeFx5wNW\nIGVZ92SkQcK9XwHrKm7Zh5SZ1EpQcwhG715yZYgxhUMQtNhOcEQ6Fz0GFVFg\ninRj7MhpVUnEoEEcLTv8L5VAYQQKchHi8TypcwtBAs0+NOLEaA7YUcDANgPX\n+Kb+RUofYNJW0AagepkdQ8EXyVriq5xRRHsHiZlPdj3nfIKUQsvr38vC4+3b\nq0Zj\r\n=xiBe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6mspZTMz1O5d6o8iILqNnk13mBzmDeJA0BCWGBGpvhAiEA/rb1dYj3HoKZW3sFIpMk7bffUcurhWNu5XF6QRIoy+o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-10-2021_1623284291059_0.5278725032518665"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-11-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-11-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-11-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-aUdAaL0WqvDVlcnQFpx4t0NgTmwsWIW6jLiz9gJ+Pdr+UeVm2U3umBU73aFRnG65d0/jO25o8xL3JtKdY8n9LA==","shasum":"15976467115a11186507901b4cd6a9c6d74fab20","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-11-2021.tgz","fileCount":255,"unpackedSize":7727529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwquvCRA9TVsSAnZWagAACPAQAJAgsq7r9F9Z05TNKzuY\nkRgfe8PgKI110PDBj6uw21FTASFzd52RZG4C0b5f0dJxnTHPgEjwByAkyaWj\nAfdOIZcUXmQ+J2hrBxG7sEZGPyfVraA+MkKzVYkYFq9211PyovLhZ+bLmZMh\nYM7TvpqeJe4jUCMB/r8qijrkMRl4ZmZiFQLd/PONNNVLDYv4Fir3DvMHWaoe\nFYSiAIVkLf2rhYux8RIt8VwQyI0YnI/dOyogXu8cNjfijw9KXBH+KnFDX64E\nAQ8NCZVGXwQnCIpzCo/JY9is3eDFm96Dz6NArMNlyMNl9faeBBIV8rrGuWtq\n8XM45HyJVQL6sOP5yQmXAHSHisXboEKNCgL0TMJM6Va+JeC3pwAGybhFYcm1\nkDPJpE/yS15zkRx5TiS8tTccCOWBPyw+seXqtp72sA1Rw9gU74yjsTlP61V/\ncFb0NFxVKC1HQSehhS9m/g8v/JNtS3Q81eiKYyyn9nKYOP4YWs5qCTpZ+1Tz\ndDmcnRyGAmsCkZKqiUi62GPHxm7M/iJjAVWlTmzDtzKPkXxGuTTDVhLotW0a\njKjGAEkCSaqveF0uo69POL3Tli550Qr7H3NG1C85E24YH9FcV0TqM+oNMQ5o\nOr6jRPwkvzMJRRQFiRu5V9Q8h0SuBnFqyq+8M7luhEK+JAhT1dDKHCTo9SdX\nNB9/\r\n=HqS1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFmP1PGNfPC93qkOb8DC7UERLikkBFPRaaRPWFW/x0PAiBUep+qcr9SJBGVyJt+tBxBI/fScJImCb0fX71rE3eLnQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-11-2021_1623370671347_0.9911707106625658"},"_hasShrinkwrap":false},"1.12.1-1623433278000":{"name":"playwright","version":"1.12.1-1623433278000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.1-1623433278000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-F8ck+OyuSBpIAoyhB+FChZ8bk1b3sp2lknBSO+HlJiouGWkiPbvEEk7sgUFkJlCOgTzK3bPVY4hOi1FQuS9/9w==","shasum":"de4e752a6e28e73fe55c81dc3f361f3acc8f9997","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.1-1623433278000.tgz","fileCount":255,"unpackedSize":7727035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw6DRCRA9TVsSAnZWagAAtqQP/1lQCvxSi+gfE3/KcjZ0\n5yHSgbWslVIHj0pL7kBzS08t01Av0/7f+jQOjBPJFzcpkVaV+6vcgWbA4BiX\nZ/e1OdI+HdYGh+8efbuU+4/dfqWN0LUQr3ab64rix4AXMX1Bzy+N6oJkl0Bn\ndOqnDZn8kGWWL8VUl39wtg6EgcJUeOZVqEhILhYWfFXXSjzLK+n8QKw8Exfp\nUCaOZfRoFZKhhwPOfzeetBYv60RxTkbbqKj1kG/nujMf2/HTTI70Df/iJb39\n6xEbaoTLW24g7ImEZBqgtMdCIwBP7Ht6upsxCcu+GjXdKnslDazO4TZZqRxd\nVZGMRqi1953yx81zP/Z6Vi3P+ARqTNwQ237tIvINc9++9UNmnenhuXpSSx0v\nlxYd6oOE+ZXQfmylS1+7blA7P47/A6KJ7JqmPqzheR7lFlWJsP2qi+VsZ8fv\npGMGhTxKdh35l3pARv3dPb/kSaAqTZzOQS03uUaqbbqFgXyt034i+vs58n2D\ne+0sAQuwACr93y41seYJ8gv5z/6vNYjcBZwKD9du/PM2mbofOIPrHnYuUNlC\n98SmKO79j2ZnhPKdtc0rjac9HkDHQKO0ZaENC11eC7t+bO5eqJA46YzneVK3\nFLMvEAg0Ngl4JhXf0KymEE3vSJmpZB34URT6LZv6imm6PF4muwJFIydNGBaG\nW8yX\r\n=8oEa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6BFo6zkNfJlkfCIfIDZlOtyDvuEMt17vcWKb2Yypv9gIgSfMVjU/fqQgAOAj28Fq1RTldzTUWipZun526ziBtGWg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.1-1623433278000_1623433425638_0.36651068434348155"},"_hasShrinkwrap":false},"1.12.1-1623434427000":{"name":"playwright","version":"1.12.1-1623434427000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.1-1623434427000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-8ORvmrF7QCMpvD+zrStCwdOv8Sh/EQOF5yMx067wrjkkq/urQcS99UIBswgIC9BsWzrTGi462b0NL8jCL4e9hQ==","shasum":"26b76ac9a0c5a1ec1e8b8d8564c46bebaa35fcd7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.1-1623434427000.tgz","fileCount":255,"unpackedSize":7727786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw6WBCRA9TVsSAnZWagAAWL0QAINu5buJRrvV1wuLCV7/\n1mkJVjyhekCG6I4tRKI2XramSVjcQbinGgRMQyKfoyibjueaUsSWN5qrovSu\n9HT7bhux3/+AF9R0mG9WMxJt1XRlPSXgOgMdskdOUBwTC+erHZQtTOPLAp8O\nQU0FSWoo+FdoW49ddkAhzOavQ+S6yDV6rJqzr7OeeKMpMzYKY7tBhZ1oP0ji\nGF/qnmYLLZfihqCl/25ZJ66W2V76IcIf9zTWZlaDnupb738JAUhY+2F2e5GC\nF8Ssx+bvU+E10j72EgrzP/TbborgY3uexg1xQZxZjgULj2paSx19udx7/sIl\nUHtr6WWh1iZe1eb31fFbv1quA1YoR1cXAGXm/37WFqBKS8vyEl8I6W3a6l3f\ncb9hZVP/beCQG/uqX7uHzDNq3iRUNVHyFlcK9qbmqsE5UbutlfPEv9EQbQzV\nTbacDo0zc+jGAbn3qA5cHawVD3tK88XPqkVovsk9ZtgXSb/sH87hfepmULWy\n24scaWtgXkT5mfLDBS04fCOxcIb1skMJKQ5z+jN3YNK+4cZl2xcs7axjwKQ/\nYF7Y94PuKiUhrsmRQEfmjyPBuYyBS6N4TjkE/aSWWUQHuaHW/3z0fgDPzw6W\n66UYng+r8yS7XuLfZZyoCqyFFvo6t7CKK6/KzjGWn6EyPdi9BfIu+s6rEiSW\nrzuW\r\n=5LNB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDbJWdePaxpr9NoXH+XhRJcbyLcHmbM0TIuLTZlVR7YWAiEA07WIlX/4pRaOX3kn7UemLN8Ww/D6suYbwVBP8LQlE+w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.1-1623434427000_1623434625353_0.7273122089935149"},"_hasShrinkwrap":false},"1.12.1-1623435049000":{"name":"playwright","version":"1.12.1-1623435049000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.1-1623435049000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-wQfrXtAi+S4vHxQGltP+aCGw2P7hgtqn6fyzp60IFXseDMcnZHtipuM6J9Bmf6C8NMFoH1ekydas2XOyqBc9Iw==","shasum":"c8d0880f11ef8fd4714245c50e1be9ce27f4f385","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.1-1623435049000.tgz","fileCount":255,"unpackedSize":7727786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw6gpCRA9TVsSAnZWagAANH4QAJcfGmbVRJ8DoK3FiPxw\n+rrY5bk66NuEMwn4DWZ0OwI646/Iqf65eOwnbrxDL/2h+QJ5XQqGXeN98Dz8\nXnpuA5hGiq9nKNjUPAUF1zbq5f5kfGrSDVMUQV4YefOLhBVkKyrSfgxn28rR\nxRljAsvHKakmoDXwESWAkqZxNQvsvk9/IPlDtW8mVLp5ey5FeMdEqa3HVF2A\nVGwBQXvS3Vi0/aCM2sTVdVrjAJJsCkY1m9OuHus994jhJGQbcXEwaYS0W0Td\nbP1oQewOxSAvg0zlaviEPf0eoj2JhFhRM2ZPOQkajfUEc3Kg54nfATfZ4a4N\nQIHiTgDCPymkq1dc3w2lWnxuUx7IetdcyswphkdjNEho86eH1Z2ma3TJ+9Sy\nlrV7ENvMAFgnkJJe9kWrbJaseSvAzQ8PbZFHZvP5CCOxSLA0Y/ZdAHgvWEXk\n1yHX6crCmzEUkO7l5E+aIBCuNm/1GoB594fy5oNV0VoVZShO+h+cJLsQhX+A\n6Lk+yQF2sBRoYTx7fTuF78EBnSfhPp4107EUFyzRCeuIiPXOm6ccAzLjAEED\nnjO2/Xvcd2rvA2oVxJf6i1T9/ZFndZcmXURSlzIdQjCipLRjquqQD4uBawAA\nrgNuYJZzn4+o9yjCzR+K69S2oH5FO17sYKDVvmbSgHeZfYTVv/ZBQGpes6Kk\nYKJs\r\n=m7+T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtQ4kO8Fozwc87Iuk66Ig8X2NztwzCwcTnIpAwtv+fNAIgYiKzOSSJlq1BzZN7mQ78K8ebroDDT6igkKFUQRETgHw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.1-1623435049000_1623435305158_0.3060607685732999"},"_hasShrinkwrap":false},"1.12.2-1623435892000":{"name":"playwright","version":"1.12.2-1623435892000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1623435892000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Z5yI5dLRhBy6fR/+oq8n5vp4GNBFtoaTXPb+94V6iEVVw/N99LCnaKxyaZFE/kcL7L8IEb7xXCJYtXboMSjz1A==","shasum":"03a53d897f25ea1c9089a788095b16e72821fde8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1623435892000.tgz","fileCount":255,"unpackedSize":7727786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw66bCRA9TVsSAnZWagAAxgAP/ismcGPU/bOYRGujmMXQ\nTO7B1KXb3UTkZF8KwpLqOYr+ahi7zMdBNRpVa6qdBME4FvCK7hDjj10MBLii\nfhXKOa8nzjTmfZWswiyEVphM6jeepWZxL8NhZxOYBco7BNJwfRRcGr/ty5BI\nzIDt5nTy2kemH0zVpWOedZazzvjiuklwITREnR665Y/4IRrw0SG1QwEdPhij\n99zaBH0AwRPjpDe++wzyiyyLhJAYZmLmk8e5CTVuOaTFhjOm/+AXnWxTVIhs\nBtBuwsBQT1fi/7cClaeo4YUXMYf6gCNlftQOFP1bW4RqcwCfmsPNhwwdjA3c\nV2KRSsycBFFITVA8DdXon6/No/7R/xVN7qjxI5/YZzxsuU9n0sv7K30PdxAK\n5zNVD6OjZbgukgMmkLEHFxX+0r9CqkFjQM2UxNIEtblcvthvcRqE7RQokzws\nhvmGY7+/eTfh+MRhhUAwU+y9g15ll3vTo6v/ZBa5ldyxUBI7wYIf7z7oIPtL\n7h/JLedi+/8c3PSflzDDjkAOueIFeUmvqpPw+UF1Aex2o8y07t/Bmzw8zMCP\nPwCKtgyDlJJlTZeMFh1OpupNrFggOhdy6rTX13xS9n7zV2BBgY2yQfK6EFzP\nChu03IbA8HiWUwAQ+g9s3JdALWVW14SAoMbV07EMeL2YH3lWXfItu4nG49wn\nanQR\r\n=2Lo1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDYCWRjF/qtyzxxCouVmPk6fkRaCWVX5dEflYx24jBfQIgIvkIuw+8Gto163ZY+nApBQjh3t5IpIm43RZPBUBIdvk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1623435892000_1623436954934_0.6894678937503742"},"_hasShrinkwrap":false},"1.12.2":{"name":"playwright","version":"1.12.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-tSZGeILY70T4imhCMCsvzhoaDm9baosIG5fQncSWprpjVc/X4yYdBQCLBMvOi98H50hvu9fhgy2hpsgFKCsUaw==","shasum":"a484447177b061dd76247734fe65d77e3fb139fa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2.tgz","fileCount":255,"unpackedSize":7727772,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw+rdCRA9TVsSAnZWagAA7NcP/jl9zC1KKeqmGaip05Wm\nX5J6JvmGLvxak04zSPOml22y+3VjIKZyczvMm55A4x9onX3BRPYMiReJAbwx\ndLCFfrvZn9FmqVmfilU+2wAYViB2ww/Z3TMCYkUZY2RpHhxaCWzbqQwp04CL\nuGV/7Pq4EhvIPZsqcZYT6Xaz6PUvgGV8euGovWLI9dm2osbQsH3ODucne2ie\nbg+19O3QI7LMuwgZIeeQUBH8IAFazM+jzCAe8gzGyJnXT4hmVzP6R0kkR8l3\ns7byhmU0/tY+GNWsA7GFp8MLD1d9aiZNZRLhuwxqD1ZdJlZki1qgBE+d5J9I\nhlyBQ0EpNevXRNAiFePLYTcSCxWlRtcXfSynpqCn09QHfa0WXjJ+i6Sy5YdL\n54TFXVUGsXubOLqRMuqdDJiQTaOTMC1eoW2Hf3lXDI+DNhLbjrpXfVdkyyC4\n807re5J3k+lNWyrBWRChgpbI+pX5fXVnpVlsgcWxIaiy/7ndv4BYKA/qheGp\n7zHGvqzWZHtJm8pxZwmorQxfGWS66smqaeLxxGRS7mCF4VEKi7EddxlweqGh\npnkKymAlfxXjXQOkYW0vCBop8X8CEkXMEUM3vdzaIB3Eo8i6wFIAEpUd2Dz/\n/N6zksHmbWjR3kkBpJwMRZvw8uqEb+LDDk5MOssrLMxFrU6eLH9MU0MSQvHD\nq6HX\r\n=4g2w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHRi7wjWMf3AHOdS0iIX5b5+MmjlSQ1Cz25GhDgTLBhAiEAoqr4IAMp90UcJ6Jrx04ffBbdjUseHzAiocRKsP17ICs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2_1623452380992_0.3237342224983173"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-12-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-12-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-12-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ApHjr78nxjMdsRjEo5v1JsXB8SrPGomWrwsFiGYKTq7AzBeAMFgUGBopuIriJ2W/cTBMrwfU8AD8B1XTvxDp0g==","shasum":"0fe532f7d512e7e0a7eb92144b5548a56a7f39e7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-12-2021.tgz","fileCount":255,"unpackedSize":7727397,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw/0eCRA9TVsSAnZWagAArQoQAKChzuO3uuSqkoTBOeAB\nXpV8O/XO5ucHBIrBsl+jSEZVjNy0pOtV3g2drPO9l/4SwHeP+JesQKfP3ouD\nx00bqO1buDWLnp3r1M02+7tN5lWKBLAjDcFSlczDYFMgT7f+DBUGGmofagfk\nlFPP3M60wjYb8uQWbd/C3m0R0HBwYwVZnEVHZEbMvbmklNg58yW/vkhD4XpI\n+vNuZAX+qttVM/iSlSI6J/h09NjNaDQpCaohoXLMyzBQTrapOaJsB/qWxwIn\n7Sua+b+PTfvdFSLHnrAyHXTDrtuuhuK0N1/4IDJgHm35S/hyLuGd989Hqzia\nDebTMaGt5Re7/z/Qy5oB/a93fyiQakWlUL+45NzHhumOhkGok8YZ4hW37dT2\nMIv2YnDCiMX4m0Z8o5rF6A/kSWzVRLCiqjMG567lvV+s/H37J6kqfkzq8soI\nOd7VoVGAFw29r8HF7TcRFFuRqGm31PqiDIEnqIwAlYGOQvDTe/QktDPyVPKp\nirknAw0/ljkW/nszU/Rvu71Xa3WigzABD5Xf0sy9Ep6awoLvvNKX02iEsm1w\nO+G6PubuOtdzxENMeb6+7J1N93IYxjMpq6jsmAZp+VdQOmtzGa0cQknMRcRc\ngDbyzbeq43AMDdLAgG9JYRXPp3hyYs6WvU4Xer3njqWOGBjgMIwpxQKipysq\nboS7\r\n=JxtN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMSq9IID/gZZpEccp5jMKxOoUX+euQKpZ+pOkzkPBpUQIhAM7gCM694vgYn/Ao2pHQB6ozVfT8E32RT61rr1Em62Yi"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-12-2021_1623457054650_0.37769939753634896"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-13-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-13-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-rwYoNO8UNNEAP6+sBkRDGHFnjg3UW9ixIxQuV0pXCIf0tJ78MAVeIvAH/SYejEFw9Xg7TQHb5gvwNuFbOquZIQ==","shasum":"29a20ed70c51c2dbd430fb2092551828caa37246","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-13-2021.tgz","fileCount":255,"unpackedSize":7729218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxU7HCRA9TVsSAnZWagAAqcQQAIdL9VCaU0w5tXZG/nHy\nTUQ8d/6VfOItnhYSoDaS/X+2V1W9Qm9aT+qO9VXk6KeeVsR+dZ/iYLFBLWAd\nJ5ykrtueQvplf8xGEId/AuVAXIj//WwFKTG8g27CItULZvNWFD7CQsiD0Xko\nUmPT9rKD9/e+Kjwk0mGxnatIMgEhFxgx42N6OZaDdM/zSEAAMzVA6TmbzMnE\nQxU3Xy3GYMfKxTlFGXMxNGXo9FhVpK/oIHjABIRBG6Qmb/l/TcqMl9+M9kz3\ng267cSkm8UD2Eerq5fdIAbVxqZ2Toa3GARNrI0bZ8xN83bm2K4VULxc2UMY+\ndqK2mmvA9qVkTrmjcppXQtrcAFFV8uJrRTSMuJdG7sMMEn2B5D767hortjS/\nfctZJHLznxYkU/fe2oSRrq2gaar7kDp2OPNk6p1vLy1NDkmpRzOLhBfJ6feu\nWe8ecCWy9KsvO5rHEpEfffkEphtXYhB7tr9Xg4Lerqah7d0+MpDMsOrfLTKw\nZD5E01QRCcHgl44YpB2sKcRJ3ZegpUXxSz6gOcxWStGlDqskJ+VAFIses8b3\n5YwRpf8brg9xybGuwsrnnH3jCNkOg/4atsddkdwfD+1HG/nEHXp3/322Qfi6\nrVLxqjc6lcGWWpHVWn81n27bws9vsjnwJrqh6U9gTYqyJi+rg6TXNfpaUWYr\nevxV\r\n=6hjt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGURbNRoBrgjGAjUE5sFduuDXQYlMp5CUCTG+673sbsAiEAn6NDceKhdADPA75Ta9AP5bBAHmSDZ3aU5wFT1EaQSog="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-13-2021_1623543494638_0.48401393206692567"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-14-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-14-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Fhy6ZV8tbYcxkQ5pCbdJ4mjT0Ofy0I+/woXCXJWe4+PO17jofkgzNqSBUUv1tsKvdEDPZu/qVIJZCcF7M4NXnw==","shasum":"bec8b873ac713a58d72c0b08153f2259ca1f4bb8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-14-2021.tgz","fileCount":255,"unpackedSize":7729218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxqBECRA9TVsSAnZWagAATjYP/04BLo7xZOk5MpzHbl2v\ntIo9MVzjiOzwxPLIMhVeZNFCTXfH0u1zn9hmIvhs/TE8O1KiiDsYpZm9d32A\nERacfuxIvuNl7z7XD4CtT4jnHjNHeInEftgejFtWWFfht07k9pfll+kburLP\noembq/uL7fZ+xKj2c2yGGToDnbeujeqc2K3GJKnZCKqKlgYuYpRTFFH5pVNg\njzZdm/7xEIUxaAsoOc0NwfRtvRHTSvl8gAbmueaCY2M5MdQKsCgIOfJS7F9O\nT4kBe+vpDA5R0P51ZRu6UKZTHPmY3BWdUwKCFiMd4oYrJ0YZDC8a5VYSzBfr\niiB29VA2/0gU09+6d4SoqoW19uW7T1S9fDa/iKmDwC0ViPrUe/fkfF2X8jAd\nK0xZGattuAfaXq7nrZVZ4tMJbG9+hoiwOGAEWeDu5vIAGIaXiE27CDYE0t35\n845X7vea/+WOdXkPahjQ08dEpoY9aWJhUCCOKU00iLw+RuNCpOpUDPROSLv1\n8ov2KqekY98AqyrdShiG//BxWp8+9UELJszTon3Nq4Pgo32LB6jab0EgaeWv\n0OVxqy48O+gYyklodRA+DH+h3hOY5Q0/+q30SQ9d2zXNdu43hxYVhnK8yI/B\nOqKTQfa0+sCoK6lGrlp5v8HAJYBeQvRJ53NyQbvlHrr8KYhFwP5mm2/ETZYA\n5G+V\r\n=RR2O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiwQJfdynAQPVHYVW7KkSAGXRdP99wQXZmA+ZWBD3R4AIhAIvJntRhrU8k46kFzuIhMPjjk+UUdoQ3M9Iv4Xt2tuRh"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-14-2021_1623629892310_0.9944204205837177"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-15-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-15-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-NUKpN+tBjEPZrZUyXQCC07bIZoqd7EINSGtdZ1jNsLVWK+GHs1yYQnUVbiRxT8VxcGnplSdVYHJiRafjjbp/kA==","shasum":"cd8f4bd68bfe24e131c51d8f856cd8086ffd0753","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-15-2021.tgz","fileCount":255,"unpackedSize":7726899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgx/GyCRA9TVsSAnZWagAAZQIP/3k5rF0YitwmIXm0OD5+\n0s2UGG6cl24bpjoOcxX55UXVQHy/k3ws4HW+issvQtqVNaUONezOsBeaoGMX\n0kgUH80jRC+xWe+684NN0W4BsXTO/wc95ZaGGoXGwD/qmTltg86dmy+4dnyp\nNCU1sg/mAUByUeowWcJ+Dy8jcUuYPQwDipCKgu8yBXM76aomVQt93lfTUrZY\nK9kYiV1NpQzYi5nPYv4t26Go5RfZP6E09yQtpChviZvnCDFmoDUWmj3vP8LZ\nEAQuz2T2zOfkkOX8OXFlHhnVT3e78A27GFvPuZzAnfbahN0W0RHFnG5v4mtp\nwHfUXHZzTppGd7TspntJCS9Gli+ZPoXKYSjIlGdOoSHIjnkSRnzwAWT2G2zo\n1jKh5rKN/fr45h02sSZNh/ajHYqimOAE4nsfiikpnfqTacPdgFpWgencVcnR\nQgLqMpZyM9IZ8VHtLX47IM9wDS5RJ+86weiUqCQPOMvbUQnVtLqJiqkkC2EB\nadGZDRtEBcsI4F6x175bY3TPUIgk2TT1ymR0rX8Dn1D4EcZAXh1eadYo3YBf\ntTtksx/pMRw11A+NlVQL9A2dTbYyN20tTYLS0I78mU0NseCWiMQhPwRe1O4k\n3Q5TRtrOGqpGM3heBdERRLCek9QFCx4CEKlnTsT38RQTqrQtxqCU+Kr0q23S\n3OoG\r\n=gGFX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQsLVHEZEGpMln6eremN1SuteDxbfM8W4bLR0Odp/ZWAiBlZG6vLx4igThayfJkKV83QQnIZeATYvUbqhON2mEfyg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-15-2021_1623716273651_0.20135513190770937"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-16-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-16-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-xcgsIki6CDJRpLwsryOF9JcLZmgnjQNIxOhTI1taOvDITDMObhQT5QGOU2MwEyGv/WyBss39oLYdlxwvRKbxkA==","shasum":"998496841c2c3858f93908f5f71997dfc177579d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-16-2021.tgz","fileCount":255,"unpackedSize":7737077,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyUM/CRA9TVsSAnZWagAAQWIP/1j/j7eQBLBN96Vu6zzC\n3hKifvWsBbP7E8tU2MlWDU1OSsNKKdhv31KO0m7rvGmiLFtoTeWWUogAF7rw\nBBLlqz3WuzPtrk7H/rxqw6IWbJ4nK0qjqaVEWc6wsGk7aY5SoGucsfvhnBcX\n7udh6oQUIqCMUQhv5r0z0PnH8T1uHG88OU520nOXhmWLuSEYnXtdzaBYrqk0\n0x3Ej7Xkj/KC81lKujFJYzgdVuitIuokQJmclS2vAqzjW6KyAGB0R3ScEQDQ\nt/WDOcfOZNO30h0/oqneYg74Vg46ezWwB3BN1rs6471JKGbVgI1dfiXdHMiW\nhYumR/tBdQjC8HcGAUK798/Qt5x3l9IFZCUBXX/YU+mwSGxy7YfdpzU7+69N\n430qsiIYb/7KGvJPKvMzrRATzJc65OloAhRF1YY6REg7i3j6M2yPdy4rJucT\n7XdnqQcWWZI8don9jEh+TsXZYo9F2Ew3RSfKUhMriz1VRlQOE1Qg51eoU0ty\njzfgByzc8KVok5g5lGdeOR0iTsXgJ8lxAFayO1iEcD+Xo5GuLqSVzP+/h2H/\n823Y0pc2qs61GhlytjwHNjVX5YA2o2iVPsge6urYyqYIV5awsKc6s6r/90VA\nS3kXe1j15M0z+ifcrkrJEBdiKPMamJCdyIexaYAq1jh36d798BxvUZEOKWdt\nTIYG\r\n=K0qe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ3j1iLmI7bzED8PQo87F7C6L0OVeara+wYvrNc68ICQIgRjUI80+a/E24DqXfpMIf0fxB4jgPb86IkguPyXdg758="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-16-2021_1623802687205_0.07214822002806298"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-17-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-17-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-zFRc84NZ8SC7cZgZHssfgn61wDV8othso71CL3fRAusUSnjcdvqlpkYjieb/lYDn6rA5K2zlnvBS1YCtxBCtKQ==","shasum":"4d1168e12292a666c6ba3598e394869408505580","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-17-2021.tgz","fileCount":255,"unpackedSize":7741320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgypSwCRA9TVsSAnZWagAAKj0P/20hTIFRb1FQXE3dCp+U\ncm+sZ6SjMPQlSDBsJ/u+FztoIZBWfGFabp0xa9ywNBucYq2k7Nubplqmv+IZ\nD6xWXjzhF4rbGZ6/NOA1NpDqwqfh8VHZ/3UKCPLwv2tAgiIULdA8hKi6RFok\nAyV9jNqKCVYq2M6DF41eAFLu08gVx0NWyrWvd4XixickVLghVBehH5JSGGCb\n2TU0lPvcW5DosE/+GzGEXkl0mvqext9nqHBkaL0mIFboG9IWpbKu6S4f5M2L\nskUs+Bac1YK78iSu5YEAx4mPR7Q4tXYbe/bggUFPxIhq9Tl1MESz/9IiKmUg\nE+8P5PKMQH3xcLwFMUGU8xOAzeRLn8S5/+ujE4tN+WcktmijFyaEHZaXFY30\nyReeF4NquGtNRkZxJgYmnQi9PE6yS17b/ND0e+iqZBlGKxVr2gqme7LQwa6O\ndlDDat6SEbCt4eKrOfZ7mXvdZXTH8tbGt9IBdudLfPATbjyT92f/BThn6TQW\nOuIFdVeW5RM1XS4uSKTYeZ0/bZxlUkiXVo9O9Fh40OCJ3rGEjub9YabzclIS\n3a0c+qTMVy7kutWdj7wx+ufheKPAhHTx1p06MAOOk7EnenHZ5rTJNqcjAtbq\nJUvjEx1wqOVC6KxQLJAA8Yqv7F/55YeLunQ/vTS/o7UKzIeHYFY+6Mm0YDIx\nx3d5\r\n=3A47\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGE0nohBYGx3yoarw39c4rp2CiSgVr523Zq3aMduAAUdAiBq8XoB8vWElH7DtKqPJymzQoYZHHnBd6LRXinBA0eV1g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-17-2021_1623889071628_0.5830155907624219"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-18-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-18-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-HQiyoywTR1mAzJcEr5VrqcCj94hMgxR8heDsUQgjbUmQxikqcstrrcxASYvpWtv2nyHcKwrXVE4ZZPpaDZePjw==","shasum":"e3b955fec87861878d6fe77470c9d2905e7cc497","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-18-2021.tgz","fileCount":255,"unpackedSize":7747969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy+YkCRA9TVsSAnZWagAA59IP/jL92Ds7i42wMWR8w4b1\nUFjW+sDSsz0QRGrJl5uxysuUte4ZXJydmaccPyXYxmLu6XDYxiXtTed3hb5S\n88rSErWbA5iw1Qgu1A2PL8MO/5SbB2PgTWoqUA3Ow123n5IUDVdoF9sm2bzY\nmY/NSt0qp5QECCaSxTluiV5mDpyYcYBCzWIuQrnqzD+fuTI5lH4W6BmDBQk5\nehpoonh+10ibLagLDiLWzzAR1TgtJZiPIrEMRRLsL6qich/PkEqZDQ2lI5Cq\nfk17hCw5IgaSJoy7q3htdCoi2BD+LA0e+/TpiMRuKkWVEA4tSIwEEFJWrGHF\nyRxK3sUPwzRgkfeahF5aR51W2sMHbDBDBtuMKVrnwtrXmL39z5OVi6T2VdKi\nt+Jbu8jCIV6StwsKhrn8A358UlQ5DAdYs4owkujMjVnzYFsr1xTLpRCMUFTO\ngAyc1nzW/3rLnj9WikdnPZxEdNy3idX5U4y86V1VCfSHmWtIiS9qbgUTH2g1\nl1wlqBUJOWKRb9Ydu22yaYXWiA3SgITQ+a4w02REikDWZAfwxsnXxbmyZS6b\nA4GKgnQnC/dlM0sjuQfvju7lO9eYTEnwYwhgPEO/L9P8Q+maDED4VfkxXloE\nwNJk0Y089wrS+GUYxltRxQll95Sh3T2mvO5SG0ADXAXEMRUQZEDPhqxJZ5kg\n5E71\r\n=Endk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYYIKA4LYKvgau1bTS3WdYowRKykIxYjPn2l95FgGoWAiA/kiOS10+RkW38iNb5eRrmMsgQCFH3y8JPwBr8642zhA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-18-2021_1623975459513_0.0028402454559959267"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-19-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-19-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-19-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-v0i7c/NfLz1WsjCTWz3bY91n6SZ2xkHqomj5h5DhzQm5oe4M5JkvEUCYA2mbNGzHyfLtcCGZQ3Rok/GB1+CQhQ==","shasum":"9da3d5f9cbf01c80f18ac929100d83319b2b7c58","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-19-2021.tgz","fileCount":255,"unpackedSize":7756949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzTfZCRA9TVsSAnZWagAAKS8P/0RXs7AyjDjWJJwCLZQ4\nDvSTOu0P7NVJ4SAxSJ+3zRoUXFmZDogsXdEFfDSYuOVecyQtKWHVyJFSmQX5\nf2ELjrwjAvvf0gZeQRKQgUFSvIfWaiAEOTHjLrhVKSH8+2FGLhpnZ496UKj5\nr1uKbVD3D2+affo7Pe3ghmj8r9DnMPG3JNR5fTLaVKZP8vGjfnNRtPZ8ltTR\n5AUWqYTeFziDvgyX17p1vcpDcHxb+6kyJs1YtysymXdxldzytLMfaSpdv4VA\nTeQ6lBXwhgHM5N2zfzlz/uDPtZrynI5A1cSkUac98V2JIBpMSXuEG76q99TA\nPSIlAhvxMyuwLkFihP+NDNCzttcSFcDdJ/bgTT6M1xUrw3MBpBu7Sx6Qd3EO\nEafDyolexNPePef8mVDKNfM8W+t/Kc3zWLKhQEmW7587IardS8A7HeXLrsme\nRmeHNei5Rtdua3Vmng7jLEWNuEoEhOS+z/23Ddt/lre9Vumzdlw+/EJPt0Fa\ng1JdhfL+exWLDQ5MDiBOtY6sGJeAPBo3/xzCLJI5asB8wvWHSWNAVb8IXJdj\nH12465LsCzj1TiHAe7ZWaKJnWfsRjPmo/PCaKWlskUC77Vj1Q+JzvDhxziff\nWOucI/0pQCVi+RkIYTBTh51O9/OiDZk7IBrW3ms5q7vcJNogBcQqyrAA1xBc\nC0u5\r\n=YHXd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbArHqNgX7sfakqg7l+KEvJCs0IdqZlVFR6TUzyWjtTAIhAMNfHcTiyMAfH3A3YnTAY4N+9BgppgF8RfVvpJwMiteR"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-19-2021_1624061912637_0.5541006994363125"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-20-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-20-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-20-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-G1U67xko0nOESrsdQKhSmFtsQl1L3vwqssJVHA3rLvnmVY8ef3oc7MwumE4FLiafirj9/Ja/7a0i7BHbusrhHw==","shasum":"c7fc85b99febf67c03c768ef0195b40cd923a467","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-20-2021.tgz","fileCount":255,"unpackedSize":7758241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzok2CRA9TVsSAnZWagAAbBwP+gOoSY+V8mi41Q6Ilseb\nm3X+eC3DxJx18Apca6JD/xFobUCBnd/dcgKqbltOOzI1xxeAzVNj5ebmt4ws\nDTAT5+vL7NQaUNFnulPY3kKMFnK4tdWK/ugKvdQVFMbqTmq9eFI9ShZZDU8N\ncOpiCdat146D9VhOIhW20RgDyQt8Z0s/L+ktqnM61eHM0TNA5cpn4CDPHJzX\nMfopDQefBxRJsUwr2YAij+KZi9JWe8butI86ZBTH/h/J2PMoDbKLexwdTtcr\n7oJdryQ21+eGUL6Boev/tclvcG7Iubp9lkinp987HjFJGydqOIMwB2r1WQ59\nzEGhnfVrSt1gcHcluqQok77l7HuXZNxj6y9aobbCxIIVVHuXz5Jkn0x1ySKX\nQr0flJwsuxTlUQ+FKR6FbItFfsa/3CHdYRDKiYEkr4Mx4WXQFTcX/Li1/VH8\ndtnQKWLyyr9yd9gKFFARn2zs/zHhD6ppOTYQWNbeb8QrKm8zYl6bq9pwKDuG\nzt+JCYF2z5YENYiH2A9b0M4viTGGmrbaMg+YRjN6YvGI14SPHoIkAlZcIGZ8\nvdhfSgMFoaw63iaEBBzC0XOZVXn+dMqv9opmCZye9sSWEqUcALCe+4ryefow\nYj+BgccFy1B59CYpwJpWvTpGJrIrJkDdEMY/GYVw4mH0cn+rAKT7O7sqwOSs\nMftp\r\n=fcP4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeKEpGgv4b7ioB9qsLOa48Pb2aZerKtkwFgYqNN4UmLwIgcVd3Vgnw2eeNvseX3hd3OmjTXOSGM5oXcERsiQKU5wE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-20-2021_1624148277944_0.20376058875515946"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-21-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-21-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-21-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-tIV61UG3vudFqu1yizyha28vsj3+RSR88k29e08mVaGOtAMnFwWm6Pt/dsTbQ5hcEihADtXVCIfQViIicAtyLg==","shasum":"d741d967bd5aa82ca2cff1cae92f9d5348cb4050","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-21-2021.tgz","fileCount":255,"unpackedSize":7758241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgz9qxCRA9TVsSAnZWagAAlr8P/0Fd6ZZj+ZQ1CzXfQA1/\nHF+WG9yFWLJQLWHuKFX5Iq+E+rs75t3zNksZpq14LTT2AcZZpf0l3PxQHnV6\nsMj1A4NYLoKqkLWjIGlFx3f558jI0hc6UkIxgSi1QEMxBTwtAaU8VM5sofG+\nqmsW0UBmnxBml+1r66Yg5dNOquVs7Du52CY98/cz7sipw7qSWEpPStaOura9\nkJTY9WVaO2SMist/ymYI1SLk2GLOcHqpCMlcj3TM1QT/x1qBPe/gQUPgLRwp\nDA4iHpE8XWllcEQxjgpwLF2Kjmxg4gwW5jvP6EOesMpX9ZZ9pHaamKn4+0UM\neox4bj619yhKU17SBDFshRmcyYqJpEWuY7xKsBWx/Cs/0ORhbTneTnAi87CA\nN9cML3bNJvYMIPzgtD6sIucx88XE3p6RikYhAKLE7CwOvGK0xAPr1vJjsbux\nqaX6xBYEGfXgD95mWWpEiwbITkAnbsEaJ9aaJOwnkrcIwUhV+QxmSPT18iU+\nojj5V+RKylRm2tpVArsoKY0E9XPKmGpmdeVi5sYhAJV3zHqdQqTZbWE8Kt9/\nL+RQvBwb77S4HyV/XEreNN5fKJhqVdfYhxYryJ1eiTjQ/GLZ8jtdhscr2Fvr\nKw67vTB1vkf/Z3otgIdRLbEudnGD8IYZjiqCQA0Lv/GKyrWScutAMHn+EHXG\nKe1e\r\n=vg+6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFiHo1Zv5fitb5DVkgmgiPOReWySX3aWaoSwXKmkLDWdAiEAgCqwperd5kujoQP9F4vNrJWy92KTRozLEpglObD3x7w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-21-2021_1624234673029_0.6283555315289295"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-22-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-22-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-5Sm4mxMNuoE5uFC4rs9ulLZ5M2rnIMpHJgT7FfCP/tpR2ISNd3Jq4zpz5OK5sGaABaGiuUSNOY5EnBWzY39MTg==","shasum":"8e1f6491b95fd24401967e8e4b4e996026d8d565","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-22-2021.tgz","fileCount":256,"unpackedSize":7761915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0SweCRA9TVsSAnZWagAAm9oP/1cQXoPkdZBSryPqpMFp\n6K+ddMtVde864ttP5Zs9EwtBxadez/bYK3XQUAhZWArh7yNnUR5F+xNkxeTg\nz8YV+OXVyrDhHE75RUd+CdSVQ6ZRs0Mn/71WMGOARWftxdM2BY7IN4tQIG5k\nipYlhhcwSPdPQnoKpG6JUO9MTAhilsUovDUY0CAZCAB6xikQgwAbp8X3jJh3\noCm/fEvrUcoGMpAWFw4WDMcQG+HuSgELWKQaN2QRNBrEO0q8Cyltu/6hQ6s3\nmcu1rv1ZovdZ7vTygpcsmBpoGonHsqhNl5qjjuODg88uB2AgdWbTtZ8miUKg\ni8BjYATXu/SBt8/SQDyEAGbLxxI71yxelZ3tbH5/YYOa5U8OwIhQGr+dJO1g\nkLcB2HxMGnYOAEZfmV45887ua+Bg0tUONA19eoSPImxB8ucCNm7nU+Jl5F6L\n0XrHfRRMUB3hTaRdKzSjwjkaDpYVNa0OPFCR64ysRU9pUA687JM5Pd7Wb147\nVI5RGLVrZyMyFWJ+XTHUfivYyFpzef3ZlTX4+cq8Q8rdTjBZL/+ll5fo91mb\n+NGyM4qaCT6azRLk61V4DN+zkGkpo76dLjTgcybFx59HihfJYkWv4K68vUPT\nDB6kF/xe5CLnVO923XAjo1oXaiDoBnpC+r0xOF23CaPBVrTVtdCtVAIKol2S\nJJh+\r\n=WPi7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJoCyTcfezvRLAq9jZ6ZIBCyIPN9Katp1245piZVwcYgIgcHCtm5FCTehdAkd2pFrIdl1+UGn+rBhW4Z3r5u9Zn8U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-22-2021_1624321053714_0.8249308029303624"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-23-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-23-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-23-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-il+kTOg8fWoIuPYKMhavSHWAr3ha7ENgXewDjI6yrbYJhIkLnqwXbB1ZYHoxAZeuJIdoJx41fUyKD2jsCKUs0Q==","shasum":"0b29a9d6e770168dcde96b5c1465e108a2986293","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-23-2021.tgz","fileCount":256,"unpackedSize":7762335,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0n3MCRA9TVsSAnZWagAAcn8P/ixGYqq5QGU/357PwB3E\n+Queiaq5Mf7VW4ZRIOP9x6rZESCkxMQl/XfJI7+ioGrxqXR3w9/XUDMl7k7N\nBADs0CRkIxEgwg+F7hgs+uTCD0OdOXsBVrypi8xfsTZ9qYUS2lnFOiEi43kp\nXe1zP1FO9dwONm9AhJO8o8gymAHxnSq6IROCz1bd1pKyXf28BSWYAsNiK7QW\npdytvUIn6CA0j9MaLFo6DWEKFzLfe05lSCX8s5Tn+pWyphY4JJw12lOAuK2y\nfj8IhvIovqzpiiBxroVrkAWjL3g4IxDyh2rJ1gDIHVbbNKmQZBeSnE68LWkN\ndSEtEgxQnUEi7GYzIdpvNav+g82i6rIgRBQSnSDAiSKyHkhtWdBEEjiK6vUb\nIu5edFQDEB1HynjlrCtS75I1HTunGMvjjlqnm+mhL8N5QcQPc+zh4r41IHkS\ndDp3F3bfTIdaXR5uZpUBn2xDXnQMADb4m1haSfO5bg/JcrxIVFvdEo57QfAg\nVRFs5Dfo02QBy7l3ibJbV6nNwvgthbTuj5rikXEeEe7j81HqqeXcFMdV9z0c\nNy7tI9Pz2dwfb8JiqpfThM/FI0+W0g/gl043uZEo/26QgDFGjM/sbS4y78Mi\n9mDyWvdqZd8UwmgXme2ndB3D/gHP5rxwipet/uKR/+VGOoIoIRJT+hFwZHab\nHcoR\r\n=KDgO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2YdtYxC11EiwpSk5fWCtayh62ATHBx+Nz3M4dxLJ4bAiEA2iAcUT1YCtUZUykU1M9ffNhxoLwZXWzqmZKmea+eBXo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-23-2021_1624407499725_0.7904812462495001"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-24-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-24-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-RVh73bsMh0E1sYYQ4lCdwM0M/Jo2zJtDGZmA0tzXq7fm+dX7zEsK4TQ0rfSZ3oYFEn8SOZvOKXLBtH2Ph+ih1w==","shasum":"f8159609e78fb391680562f24afcf1bc387949ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-24-2021.tgz","fileCount":256,"unpackedSize":7760611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg088LCRA9TVsSAnZWagAAZEYQAJCkjj/BF4kUvvAQk9bP\nwyRUa3FDLdeMh8w0Ga4cXMS3mHR/kUvZThjOmJPKg2SRgXKirgvPT1EOHSlW\nWACFcLcX67LBzEjBG8/tJ1VA8iyPslwMYrnlxh3UcrCNF7v2jIqM8nCkU2tJ\neR+W7d9XrvGrxNUCbb5vOfwKkSb2RtQSLArzrKkPvC/spTr4y+Pcpfhjiuk9\n48pQgfIx4aAEuOFb/ng78jU8eM6XwkNpy3QSvBnD3kmn9/50D/BCd6/ABKHT\n+gNeNjuGJGXUgcv6Lym7y+locTm22M8IB6g3GnBtv+VSKIx8CpEWwZ6d7ne+\n4S71ucwkxy0UgbsiOZuUBX7SIgrq1dY/Ys3tXImUWRhtZCrYHp+F9hFOy8zQ\nWeEmVKyncKZRsZU9tGU4xS6nsUQmbfnJRvuCkJHd9FitYK8fwg27JbfWZipB\n4QiL4hL4ivvCI6YOfifbg/So2y1U+fJgiqZ3uvsGSKbf67w6NOYntNDgYsn4\nBlFuHiqIuNeX1F2WxmR2K7Jz3ckMFhotY1tZzebJm9qDdptgaOK14zncSDM/\nUIfDMiXSJuBWdd/xzk/LEfD7LIfoRKLx4fJJzgQVeT2kJw+wiT7Kcgr3liz5\nYXmfdU40kH7jro+P4Ud05xo5rFn9Sx+OI/FweAVZvubTl4dZdFJnpJ5WG9ft\nxYWY\r\n=3dce\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEwcH+58c0ku0JJ3x5jULQ2nWkv4P2YMywAbGCYlDa/zAiEAzHp/DbLQxiiNvh2oTsFJr2udvb3LSq3Q+KcWV0TlpYM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-24-2021_1624493834691_0.8808642321905322"},"_hasShrinkwrap":false},"1.13.0-next-1624521754000":{"name":"playwright","version":"1.13.0-next-1624521754000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1624521754000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-/vcqCZVmYCT3ooJl3CxMCvTSBuu8ACZRtqiSte+zaXojZ1/iGSHXqW04fH7+A6VTi21qvRU3HGQ2DlZ+ci8xPg==","shasum":"ff0e88f1791739c30130227766f1b670bdf579e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1624521754000.tgz","fileCount":256,"unpackedSize":7574652,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1EOmCRA9TVsSAnZWagAAtZUP/2bnH2/8NFtIoyDGY+2i\nWVxamYeeD8my2LpMTYfm905hrCYyZnpIqtYkC9OTL/eThBYSNCVOOs7yLfDI\n6tZmac/+5ukiRn6N5ZRMWEBbIa1gediqLARqovGTpNbYoSFZXUrr9P7s/R14\n/QH92own13Ydvd4oIvRjlloOSpbUEflf23JOCpdn0vhCSM72GUCkZLI5pYIs\nAb4EGXtxLYHHmAy6JkqMjIoN1Ilroej9a+ojAtyFHmhEZvduf25CmjQuQfdK\nNfKVXb1MpRM+iNlfbdmj1IHXV2TfMMYnnv3+ez3OZKlNcY+wppkDdRwrvaCl\nAQK8LiYNpa28DNaDh7MpPNdhTldtvcFd4KRE7WD/GzoQtTNehhlVpYUSCRb5\n9trGp0FsjEJt2oU701YYl8n+Lu5OATkBNzRr8LdA0INyDvA2bGYInsJ694t5\nGrJFhytNddJ8B+4cunbN+FOpT6/m4ytgx4WpocTMbFaNLpiCszxok+yJkDTh\niFzUGQlO3AcJ88FtrmUorMOHjvscjnQVSzzZXT6GU86EWbcYMpdHFB7hvp+a\n/QGxLp+A/Q5YDdYZ97O18NVk0l3N/sC9Ba+T9zsoYPIL0Z6Ip4sbqhIUVrgn\nWntSsOB3QB1vCQpLRcfCkRSZgwyOOR0r4B/gXkmi1acRSA1znssx917YSqvO\nTMAm\r\n=2JVM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjYrwK/YAFOE/O2dKBCuRRmyCXuRK6x5gTxdStg5XnfAIhAPuV/+3SCHiLcwg8TxFaMDbGbmmwvNCrMKM/1HjRCnts"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1624521754000_1624523685871_0.7512949813445247"},"_hasShrinkwrap":false},"1.13.0-next-1624575246000":{"name":"playwright","version":"1.13.0-next-1624575246000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1624575246000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-4DMexWJ4g4K5B6b7J/BGjCbdDP2pGO0fu5I6Pgk24hysUAGwtLnnzCRRGwxcYSbQq8dgQ4xHbFLvOSJ0wqYAZA==","shasum":"bf5e131fe65a066852cffa6ae66ecea9ad01c93b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1624575246000.tgz","fileCount":256,"unpackedSize":7576630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1RMhCRA9TVsSAnZWagAAem0P/0UzNipwpW9v+rvh3dw4\nYxXSEztU9KpxWj8Z4gLAQaWwdCeHBBnrCmxbeZySUHlV6qdBlvcp7NVOKTmI\nl0FkxKcPXVXzvLYyA5v5OAAwSlaR1/8QKlqlZc2LugmuYS9UZ1D8grluxGll\nfBgCyakS07svCFvuZh0i2+mEULtF2SoANc/3ElOhXqE5p9YY4k1/vC2alSrw\nY6+ReUKw/ESAlcz/CVbV2Q0Hk61gkpD+QkGHd/iLP28yWxpRauYH2XO9XeLn\nB0BZ+HFAw6nk0ipe5dnJmnt914e9F93mYoTBkrCGKrLgUTB4j50cbo+5BCfU\n4GmbwcxIDiQph3SxwVDhtbESnnStI6JU5rDzoASWQIAydycx3VR7jfTLlsFK\nv7qmKhAwaLxbv6l60qjHdThFeOpULq2N4gEcTBOK2mp1Zjh1S/PKck2DK0za\ndN0670YXKHaqafakgdmLMnv2d5TJEdSijBmDA66ISZ7ziVoJxscCvtIx32Mu\nGkSm1WKHbaB9aflmlDZRSmjwhqxukwonCNU1n0lr3LyU6FsnkxUpUmr+1zqp\nAamOPOirmc0BsYJbbnrul+cRP2wGYnp++wzjqBQwc6LEAZUytGFKIN8fyQdn\nYLrPlXnvLda6qk7KTbzeeBfN/Nuz0W+ykadEH0wKh5VuzbDAeFUYlG22drpm\njWsI\r\n=SHBG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfoz0qU7A0RC7McgP0tG9XJBe0gZpaXOxVsOHqTPyiDAIhAJloNft1kP9XZ7ElG66XxrPrWRk+6zZUnrlHdqipB8Qg"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1624575246000_1624576800557_0.22836247530712006"},"_hasShrinkwrap":false},"1.12.2-1624579911000":{"name":"playwright","version":"1.12.2-1624579911000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1624579911000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-oLuHfnjWZHAz/9GrD2ddEOS80OKUU/WVpPgKAr0OBA/ggKNFmHAEPrqfMpkerDcpvYdopmYLCGJMIemXBfriLA==","shasum":"0e2bcd69d330287e195c1d70ef03b5a1e2df3a33","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1624579911000.tgz","fileCount":255,"unpackedSize":7727791,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1R/qCRA9TVsSAnZWagAAoJ0QAJdIEtvTzwHmZnX8XXqc\nnImk9ciBSdSyu6RSwggxI+OP4s13HudRPStWkfICH2sjwWdA0C4bFLAMDI4V\n3/2wr2R3PHg8/VtoIBAjxudpfwJXcMhIYsj+8tX9H+gyL5bYUePpXvexkw06\nTWSik0i39Xr41qnozsbFivQ08MYRx9X5ndRA1GH/02cSJr9UkaFv4Kfcmubb\ndsepzV09uyy61UBtDpFo2h3iPaaTg5xSQaHT8lEL8Y2bgvkUpclK7HMRDfdi\nRX8Dy7CZAY2nY1CXEerBwFOPpMPZ7nq54q6YTJEwCZjEzpNKcRP991sbsClb\nNuq4x9tZyPLSOu5cI7GOOOOuZiwtkPLEnxwIGV0dlEI8XqOe5y0lrcKA09Jj\n29GQM5Y7aWlU3drl5ZZuoCtQo8MmYpje+0a+H1cuqMG4moObS9zvcDj/Bsd2\nCQ8eRs3hw87Wxj/j9X8KfCTlSnJ8jF6AqQDPYmZDtrh2GHm0o5QO+Lwx/8h7\n2iwmepKROKKPMZRhnTUoE3mX1QIRDlxwVE87Xb/8RHahjQUPIRoAQBg3k8f5\n4wCMv3oaGlIaYFCl2oQrGkfI91HhuzJ3mn59s5tRUfSJ3wlVb57iUOzmPqvZ\npxAWi18FpGk2Z52ZnHkvEY4lyEWLp57LwgsjC5eGrsCNlRaMEvmzF6m5oxZI\nI8G3\r\n=wlEi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2juVar3caHHqRQNDU98gQTEfk6EkUXcMiIijMFYHYVAIhAJbhORuim9QRsMHTyEpRr1QXo9ApOU/HN1dGr1FSMewG"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1624579911000_1624580073961_0.8549574362139405"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-25-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-25-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-/EqajC0zotcbEdMNcGl+2C6mm38e4rQiFMGndyeNwNnQVCWFB2WHrwdDU5kMAoq4AjdNxw5jVFrr0ngNhLqWng==","shasum":"a23687188051dc296c273284c6aa644afc13dd1f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-25-2021.tgz","fileCount":256,"unpackedSize":7576634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1SBfCRA9TVsSAnZWagAA8vcQAI1yGIZgEveTiFWIMGi2\nAR27m+E6cGYWmhJdfvHyPzrcPD0aMdBbtzK5aAPqUuHiUTfZHrz8TCu6y2A1\nfMhfHlchIP6joXyeUwWMQseCVUjkvqvv5xbcMfs0144DWQGDgnpABlycBUbS\nIodD0ACw53Sppu1TXEtvMDQqxxccZYnGu8SC4liT+71ajY5XUpe91eRX3K1J\nayw7zxK3aWNzCkrwi9NiGFQwWHn9krVOC2eq7aJ2Y5xpbBjs2G92qHY9+jRD\nnDoeej8xEFiA1TM8MWFa197x31jmr5tFngDCJcK1/j2Y7zuWhGscPNVNHNaY\nvOzAPrJ8sWEgixfDBHfKo7hNjwbGeDdvb4O8Lctj490VVeovBxVaoTyT/La8\ne3CCR37mAk9fqiBM6pLPOnlZdc3l+Qxq4JK0n4CXlzOTRowGzdn7SO6fnmNU\nHFeGBxgewSNzc/Tw44Vyp+hMh81LURFxuL47ga1jJL7oGGcKvSMGdPQeEhtS\nRN3VjKEUhyh6DFL7oE/lXlM5wsgDc2kzQMp+vHqLj8STwDI8lzbJURp4v1/N\nHJBovmeNb8+xq4Bep7K9OzM8ljY4xb2qPlcS5fDfoFxb6BgFWS0BMBh5bOMD\nGwPfgUeWuj8zXCeih+q+4RtEnUqpsXLHgT/VG3C1mdz8LSjPlgyQz51qk149\nnDA3\r\n=Ae5L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1wKxMst3lgnJlwXrtK/T4QKFhtrgr2NYmSXN0fO3sFAiEAxX0CniaDO/Wa8tKlovHPv29pDls0DDuh7DrIfx99yOw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-25-2021_1624580190538_0.9795536188877956"},"_hasShrinkwrap":false},"1.12.2-1624580296000":{"name":"playwright","version":"1.12.2-1624580296000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1624580296000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ennlgSDxxyjY2/YUD93BOybeRAvG68Tx81VrGqLcCP4oe5RAtYiKE5HGJyroMu2OBWeNhZeg0j0zI8jUjrEHnw==","shasum":"681add4c10d66afd0bf23d35412b0926d2a7c656","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1624580296000.tgz","fileCount":255,"unpackedSize":7728257,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1SGHCRA9TVsSAnZWagAA6I4P/Rj9MqlT4nBGE4Glx0ss\nZ78knYj4vWfHlKZauq/gQBm1saZCKT3C6qL5n2V5tIMyWJxpMwnN/2qs1SwS\nWLy2IpxfoFQxdhOTj6e4qjydCZpxbZNJyGGbpsWPJDBedq+hcaS7nXTTD76n\n2WVxK5TTdqtzPIZgvm73R8z+zZRnAJxooB5Bk3OvMIvXpDZ9BMn9hGEQ8cMT\ncppFdf16mQ+DPTssggia3qIJpYLjjEWQTd6mgIAa0SreMDk3OXOyN5RU5Bhj\nddKY5JZ8DhOlt1m0BRKAYo8watsL+NLhi9Z/CzZzJchOGrKKsUaX/UaYCQHA\nc8uDnD94xQUBhUkwI11Qh08GPzJudihsTzyw+WwWe7JjxCNo0GVC8NqNqB7G\njQHkJWAxzrdAYuY/y0Vn/AI/hfYMwVN0JupKwBxwK4zScLjL6IYk3UB8+kHh\nB2caYhrV8XmLF9RU/l4+WcaSuxc8ey87tRC+0XDrpOQESbW/MrbRBIFwoQrM\n9y6PmWwoK5nhGSdUlsDAZC4w7WtisMrRE5ZGDMm1UFg/POk+DCQZM4iHU+gj\nJLQFAJz93qM+G8bjY9Oax0D4lKfDlR1sGA2lp7Lb404g4IQQNME7IPuoXykU\nAvMVPr5etEtIAQTkF92vphoqfSSN7zUbBg4p8/PcRtquCadKXExwJbYCJKEQ\n2M+z\r\n=Fme8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHOdzlEUCTUS6LaPmsvHfwu/peRqzcRgkGd7X/GaDflHAiBltDgnA0hh/csUzXBI+IPHnJIgNkX6vZZOH2BSmdDpSw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1624580296000_1624580486698_0.8133181277246448"},"_hasShrinkwrap":false},"1.12.2-1624580978000":{"name":"playwright","version":"1.12.2-1624580978000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1624580978000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-eTYIfedmdcjeSSfFB29u4v2vRgddjqUU/6xkxrsEApmcZmytPgT5lEnBO9HGkeT5usOrktw3jNCaRxgb7FbMQQ==","shasum":"d3a389b742813ad000a90f10ed98fdd9a9a54292","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1624580978000.tgz","fileCount":255,"unpackedSize":7728255,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1SQkCRA9TVsSAnZWagAAKfsP/3KENO2hbi9qsF6kK5iW\n6sC7eku61E1+vDYKJv2K3VfpW/Ibj/Hipi1rf7LQHB1H1U0PpVBOymdqRHyB\nmJ4+hd0HrGsibsrjsjJhw3eW1Xwyv5e8kP2y8eV5xs1VdPXn98M623RHwg0l\n6Ulh9GgegBbh/Hh67geiLH2T6Ks+eMFTvZi+UoVbszw9dI4/P9Ij1O/54sXd\n9FznCr/MEkQcVc2x4odnYOmclguNPCtfs5gVV3h0CB8TX2UYfZHWPMuIDLng\n4Q/fnhL5k3NeXwU31Y2m3C2xqDsLPngPg+J6mSkmFeCrTivAXuRxDxMnjYID\n0N4HuUrWSLBVYV9rCjnAjWDsEial2qXaotLBdRqnxABYofyJH4fdxvOZa48F\nKxe7sZO9iDgNTdtcAxcOCdzWy6wTemvprbCPEULkz1DT5ISkI5hUq3+Ant4h\nCMzP/54Gu01dKIPLWqxuqezrlADf7ZMi4aW9SoqGn7M7B1kmJEVyYTGJb20I\nEUojf4XRufTc9nbUdL3rerqv4a2TXJm/3BIVDM8RKk/tUyBkazqufdnD1j15\nLA5cw6Zm5DyHnM3c1rfr2YA5E+DPgBuDWNCfE4Gw11y/peQOz+l9AmTdJDz2\np2xYiSxkTC9YH7DDvfeiQd6R0ufi/EZafugviGHqPS/qflv01c9lLvbqHvMa\nJyl/\r\n=ma4X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAD7ieHFUto7kBL6MuD2BUmRq/2LCj4bsJCNWGSLXsrjAiBcX2AYTCq7+/FEfwk4Bh0dBdE+uWYzWv4ldg+8ftO0mQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1624580978000_1624581155424_0.5196322360410504"},"_hasShrinkwrap":false},"1.12.2-1624582752000":{"name":"playwright","version":"1.12.2-1624582752000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1624582752000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ePg5MT2+ZkQjqoR3TPmugvO+9A+ZrSr0tdyJ11OC/CjBrfdBWEWwUanvJrwuXhL7kCS2uea4AG/+CHv6rcTT5w==","shasum":"911bdc1753c50aea25c279275d72137001211454","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1624582752000.tgz","fileCount":255,"unpackedSize":7728739,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1SrtCRA9TVsSAnZWagAAFC4P/AgYIQ+vAr/PeI658L3j\nwvdayXSFp8r7fk1dAWgA/aUmqTYsd4i36dx+IqVORo9zTWURigMDfVtw9bN1\nkEgVwHDn5qKg0+XsElLvgtDoGYLMy8UK6s1OeNuluwCBMeD+zVOLQ5z7eoeY\naOIizPB56YDWUS+uo6x34AGO4wjXGm3eADV8Rzt2psO+T+bypnO0M2upLg7F\nBFQe+U76ETpmW6MjcqA5+XnRRKA2sRWvI89cw9X9ndJlLmpHIS5Mtv4e9qVK\nyOJdnHvWzO4/8Y2lsfdj3hQiDwsJhVAv3iyWZE+DfPIDQxT/R3xT94p5Z4+j\nl5KC3F1SF/sI64fs9kTEcf3pUgdyYgaImmivqULTI16i0Mr8rz1F6K6U/xk5\n8HD9a813Sn5p+iBlithsC6Gt407fZRN9z1E/nlTUNKQoaeg+GkqfGjRB4qxm\nodHi+t9rqwsP5FeqDCGWRkon4b/SJ74SBCs1OFuVh7P3NVLuXRma1UrH9Zc9\n8Hy1pcmDRxw1comSDcFShSXSVsN9by4TXlRv5NhiCd5zwlOuNajfka0P6GMZ\nbObwkDz8ni5hUlqkflPz22l4W+1DOVfArW9wv79UvlX3eUz41uDkGdBqxCXY\n7zN6hBG1B0BiiYQmQOIs/1C9l3MHbgfo66FpERZvCs7EpWilWuplKa8A0C9u\n1Ttf\r\n=YMqs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHsyJCgl6WhAL2zSphYxWW8Koy7oj32nq1FghTR1jU25AiAKApxcF6+o6a2pc4lKpWXD2s4C5EF6TD+PCpCGWTG+KQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1624582752000_1624582892953_0.11927310405103375"},"_hasShrinkwrap":false},"1.12.2-1624582975000":{"name":"playwright","version":"1.12.2-1624582975000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1624582975000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-NFITEozBVabBlF/8Fk96EzGfdDwr5MUBvXT3Ko9fP4PVGegB/JPoqug5haUblA1RS6pmAaMc6BD9zGU4rFrLrQ==","shasum":"114f45dae2bf2de6d885a4b4b6e6e4638e6e0463","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1624582975000.tgz","fileCount":255,"unpackedSize":7728972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1SvyCRA9TVsSAnZWagAATz8P/j0IPassXFJqIctmYzgI\nxvObdGlN2kjY0ShDslmZ/lh0uR3/+utySd1pewjf9Wik8eqhPiOUcKzObgTz\nQSlqXzql4IhlJiNiuq2CcyGCSdX5kbNmp9SrrOeOCp12VnZunKDYonwJm1WB\nDTZLsc1vXd+Mf2q8pSqPtbW6DeMUetEqmtJTdYbZ3lVbfvcqtiEP4PuF7SW2\n8Mk84MO6tGTGHr9ZnLDMMbLHE3GpAiow60wY2VDR2upuTiMXqyHIycMxBKhl\ndhFusxQizjYVlnNqSAjurTaaLC6eoAz0m7vmSO0qVzBjdQvRzgsJ5LbdSRqZ\npYohyf2cDS9/Nsv+RMpw9C+Ikzz7A8gRqACuV8hqglGLg4C7AN5d+oJ9ptrO\nKKBXyz9M1FYc8OmKyTxt4Qle12n7vwEnSp50Wkpfc/+0IyT2huByoeNHgP2L\n/RL/Ul78iD+sdgf8W3lI1o7axJz0nHKdTk1qyR88t1MnBljMeGWT+FWoYyNB\n8jl5tBo2XN6U2s+IKA+OcES9afLFGUcdSHs1Dc4WOA6qPy2HHt5pqF4u96c6\nH1FIpz2DKr8S50pX8YRjR63GmfumyrDHN3mhe3mmlFiEPIrmYQCD4qp9yugl\njzFEGDWia5pUvL7A/7/V6HmaT1dpG+0BabaIgo88UCghNAL4j9T4QLE1P3N9\nNhcd\r\n=0aqK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBIxelRxsKsGKLe5U95TEkGyplZkU0rwZ3uITMcmAhRyAiEAuyN68FyVNmmK0fR251lL0FI35ve8SJ81yycH7mVkvno="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1624582975000_1624583153917_0.07338058973046113"},"_hasShrinkwrap":false},"1.12.2-1624583496000":{"name":"playwright","version":"1.12.2-1624583496000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1624583496000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-kaWij06rK22BM6otpixTZDKh/J+7SzkoLWiGE6JBHIfh1P/3VySlr1HhWBwM7hAXyQSPTXRbAmq1w2s5TDptnA==","shasum":"e9af4600cd1bb54096731f5f66cdf7b3a0ba14ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1624583496000.tgz","fileCount":255,"unpackedSize":7730603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1S4CCRA9TVsSAnZWagAAsBgP/3pp9ekoFcKQaIJVuHJT\n3Hb8QCF/nmpzHILRJy9AssPHeHfOQYO2yiFj71oypjkE87GviAdHTqYsfr3t\nAPv+oLDbV3H0TTqd69INZllHZFmhqiud+a3/OoV0lQKyPZrczKWKf07nvL3+\nYwzRO+88qYbahq2TowdZGbyKKyQdFopDWNq8oeSHsKvWnwU8eoFqv0l7gU/q\na4Yus9Ql6g6UaTsXlOunoIjURbdW+fxXHDwRBt0VGxBNpzlYxCnDUAw7/HEV\nPFOTJwQ8+/O5WQkSXEEABl8/qhM2CRZcBR9b9n/KU1phkPkuYb+sifrWZfr4\nkywupSXPAzYaW4V12Yiep6+OZa95sOjIshrSAtaM3qYdo57RMihew4754bMk\ngpVUioU0Mx3+PQmf3bg0vE2Dq+lL1MM/p3AQwpPhA910oCCNs0exvQvoRgSi\nDmE/yPltRT9dei/bAqNwa99sC4YTReuU5tL4zGZmJVAoU4+yjbpSJBbmOvQC\n2z6LK5myFJZktzxoa4FYqFs0YUdnz5WyWjYbttSdf8P+mRw/okZ+P0Bx1bNS\ntv7cSBMovcKHBuzyVMkpeWOKa0xaunMhF2/GcP9QhyKHTL0HiQaUoVESoRHD\nHC7EqY+tighYBih6Co0i/sWX+zOzOP7hSVmyTIRg5p9sXhC3koNefdOXKEaM\nS2Rf\r\n=85TX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIASCF0VSBUOxzPT797rBhVdYKLur0GDdVKgbdqEBIRHbAiEAoW7xQHJrUDGlfEbALbhfEdsbG2cBOZwxXrjCS0Kdi4M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1624583496000_1624583682276_0.6366107484515053"},"_hasShrinkwrap":false},"1.12.2-1624583755000":{"name":"playwright","version":"1.12.2-1624583755000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1624583755000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-RQCqwyhAwHpr5zNX+3GAzBOZTX+UJY72ap7zx/9gXZGeAPHkaSLmIT+dVGK25ECWevaafBcoE5TAFThCXwuISw==","shasum":"979937281bd33089fc0b32e227950d7d99e16331","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1624583755000.tgz","fileCount":255,"unpackedSize":7730610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1S7kCRA9TVsSAnZWagAAO30P/0ULFpKoG/+MSDxw4fmq\n7cNbbh2ltpgABvZYniWQbqExSEzklucrvBS7dbXahTt23FDkJJVM4+rqS1Wn\nucxGplhENiYF2HvabsHh1sKbjyS9zkZch07d2a6usp51ig1C6GqgJvfjCAuq\nnIvJZqmZs9mHCRqOF4VrlZVKRyfV8wuqyTKde9U5MxSCTrn9b8v9dA5IjPJc\n7eugL5vwbo3jHNBlCZPNaxkUih3j+9l5ZzZnPXebOkw269/zramBo+4YJqQ8\nw6i10KcAV0X9d734AyygVyLdKS2Lwz/fbhUS7dOYz3HKzH0k2Mkp7VPmMBCd\nAJER/850cchFtA2RKVg5p+QKhdfbY00/nX5EKreqi9E+c37GrV+GUdpooiCu\nJpsUQD9WxWwekr6O6t8TY9Hm3MR6p4J454DS5fvUFiYbtwSplLVrasOb1U7k\nGTxxx/hYstXvofHv4AtJHrv3f4DicvVAY/K8C4fFCzAntWn/zkUmc9K89Krz\nINX2UozcI3SzOpsZIJvdssQ0SuIycQErkDyJRTLsWnmG451XPTTDNgDhUfI+\n07evIdgxdWEnw2X/qprxxKRYRYo4Uq4n/iEd2lIFQ8Va1UD2lRBqIFhB/CKv\nd6OqI0R/KNJqN/cD2U9P77228B2IyCkDDKPdU+1MJ3N+vORBAVWlu8LGFIxr\nhk3n\r\n=tut0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIMbb/UDfKCKP6XhyY/dtr6iLQd4f1g/yFCK6vOgaK/gIgLQ40b9bJ/nukjEhZn+vpyYwDTGGrpIFCddpKYiOSB9E="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1624583755000_1624583908155_0.169822789757744"},"_hasShrinkwrap":false},"1.12.2-1624583947000":{"name":"playwright","version":"1.12.2-1624583947000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1624583947000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-aINAk8DCoOHtbpM7w+u2L78Lnzt15AJrCPIJmldgiZpE6D5qEbd6lyBAAJQwGI4DJdZtbnlwM34RELeJvv32rA==","shasum":"4c84aa3959fe4402fb7e501db395cc2f767177de","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1624583947000.tgz","fileCount":255,"unpackedSize":7730862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1TARCRA9TVsSAnZWagAAXLYP/0bsLCVYJqsDPDM7V//S\nJM+CpZnmgzP67WeeFnj/sP8ETp5j2oqQxxU2NNESaLPcQ47YvUZMADPTsf0p\nPbYdkA9V+wW7bg94EpV9bcRlZ12AGlzYoNW6VYBY58urZ7r1ou4yks1/0c8z\nHsRMS3bE8WT7ns0wg53g9rUcvtDNGgjpXKgAfW0Xm06hkY7RePo/es8gMfpd\ndwGYSODEg4gG1u81+cChnOBqTPgKyRGDeFdJFqtlgYSawNNJ+SKTgjm0aBsk\nYZZDa40TgEiAmso/o1yw0IVpuP0DnYigrFUHA77Iuza52krygraOGRIE2uAx\nGhoCvb149KRw/0FbRuPqrUBGY40KXsjTymWWm+rCwy1aBDlqHTUfzm4/U8im\naaZnWazoih9HpVUz5aDOqT83kpzxDlqIt8hitOWz+3ZMwr0cVJSYYxf41NOi\nBrLB5eBYCPl3W4eqC40ogUEXT4DZDVOwxEkMF/n5pzFhdDWpoQUI5FLFLXXa\ndHZbLBkbvg+i1rM2G+y/PQ/cVguXwT0cMqpRssYmZG5FOCoGURIuDembSHxI\n+Jg8D4yGFsh+i0KP2GKAhQLZLxdeCnO/OdZrSUxsvTSolHokRK1KRwMXs1rq\n6qtgdvty5bNNBLVXM2tScuOQbbBehHpN6JA/jwFcn2C/fujd34tf1ZHiKf0A\nWbV7\r\n=GloK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBv2GDu5u4ilKsxnk0ZuVTLcejJ1Yj4CeH7zW4PfWDGAiBDdvu4euVQ50UVe4CP6SdU3t1idnDtGYeS33mceIH/OA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1624583947000_1624584208855_0.5220215178543703"},"_hasShrinkwrap":false},"1.13.0-next-1624602481000":{"name":"playwright","version":"1.13.0-next-1624602481000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1624602481000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Oa3WLVNC6Xrd1ZYtR7fM4lNwDfhseEF0xTF+cu/0ig2DHUT8ckWS4r1bOpSjp3wKw50vTfxrBOXavMF6Ywsz8A==","shasum":"8506141a1f80971b919092455916500878074d29","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1624602481000.tgz","fileCount":256,"unpackedSize":7576682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1cgHCRA9TVsSAnZWagAAjAIP/2YjtfJ6buvMEDfP5FeA\nZjLjX0ZcYjz09vBPo9iyZW2NT54r43oclIH817wuzzxEqLJE0vNOkOIBhX1w\nGiJ1RkAbl2BasdA8lSDqUCFAGb1Y0ut+0h+oX+h5Hbd+rHIojHoe5vJkOxBC\nM9KsxfO1Yg91ESLfgVcwnQYTSINVuCEBrC/U9mJLxypCLGwTDCI1K9DN36UP\nXglj+y3z/k+6yk6kt+jkx0/Xo3QDi9lXCbuccwtTPvxVEaK/YFMID3vIi91H\n5zM3rdN4/pXSlhVnqlWdh9V8IyyOwF0/j6v6eoHGsM0eeXc3ARJJvUqtkiVB\nbQiPchyg9egNnEymWQivOMTIRJmLQgvFAU1YzUtwlSW7EWOMuuPTMNwgCOTA\nWlVlDT/Xt8jGG91pucCqPWc69OaXPn74tINQOHRS6fTTGJOAUpmimrD5737O\nsAMrr6BdAg227Iexv1F1bSi5RAk+iVwY/5PlgUocnN//0HCn7Tsi6q4rF2k1\n1tnQiytAIj09eY9wOieXyK8s4QM/e07bEaWwo0AYmIaOAUCMFpcFw0RJVQ2g\npAVxyuDfPoIgbvMEMVSsiXrfVPSaRvbqcVBXCtJKknz9I2/D2DR2jmpf7EUX\nygFXZoJSSeOiu8T7cjzM5hb1TzqLhV9XJWUdHl7YsbThA5q/iQwskjff3lQg\nrNyF\r\n=q0KS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm6swpRjQAUWMIv8j2CcCRrpcHlZ64qWbIoNuqQWOf7gIhAIIGia+stKpDAIBmzlRw7IT69Y55t76WVKPPcX5TBRwq"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1624602481000_1624623110281_0.6260713782887912"},"_hasShrinkwrap":false},"1.13.0-next-1624634859000":{"name":"playwright","version":"1.13.0-next-1624634859000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1624634859000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-5QkuNd7jr9QvkEiOmK3kv+Qle9xG/2sZA2NLMl0fC0ZKkNc179GVr5XNibqw/mWCjJMT6YoZkijzkAjmdq5u/A==","shasum":"a4f57ba97c9fcc9a117fb0091f687e31ce539460","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1624634859000.tgz","fileCount":256,"unpackedSize":7576649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1fZwCRA9TVsSAnZWagAAisIP/1QpwDMF8zIQI28+u7Xq\nwoQJZmASk7v8+ekKb8tTWr/i7wkdzhaEcemCE4M774xg/Ay7wN9rMm8PGdvo\nvFwhyfpJrlDBiX5iASHx/y8JhqJ7PQBInqheRbDJ5hWLZUqNBI5Xg8mR5uPC\nghJpnRet3IgxRo2eJt3B/BLMaVuZHh3hrIJUexf26dq65LTUvYNvs02h2YhJ\n5taYyUStDwofWYg3dQ2vh128FUQJyqsDtR6arlLF4EUjgmlZZAYBjMLk5jFq\nm0Fcfvkp1DTkmQyEOnaGedp/SFZ4fDKfBkD3DWuwy27AiqtxQ7lm3Y9hhry4\nUbKJiiXuZaeIMFcR99F9LIKHKlrVrO0V5Qhrk+Z/fHadEF/PH3KFNDUrSViR\nfJ2OgrGlH12s/h6U+ypY6fD2lzqVs8iCc9VFwX8BdFN6bwRvl8UHvyJB+v/7\nAX929vm8g5uzLjAynJRehwcRG0NqEq5yamGrGZokqhBgfpCOIVT4RlqkEcoY\njH/iuT25TIx9M7lewOLXW/ItwJapuF3Z4M3IyoXaYTSXFbS+WNCBfJaeapXz\nbB1JQCATTYXSxYuU1d9E2VdtdRQToJnKRhXKK3JKEJKkgR63TtTXc2Q7oWZW\nR67/xtGGZ2J59cy6KaQOwSFrFrF97NXgqCPenHNGCRG2y2wVGzCHP/Yxzjck\nUW6w\r\n=Gs/X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDX3sicEV7Uw8O2VX3e4GtuP022BKj8ZFHhe9fcIqp8bAiA2eiXmk1DmUAc4OqeMZKjq2CZ5GCmyzkAxOdD9IFzi9g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1624634859000_1624634992274_0.178141354972692"},"_hasShrinkwrap":false},"1.12.2-1624645637000":{"name":"playwright","version":"1.12.2-1624645637000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.2-1624645637000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-UvlcOG23gN1jrXxQ9KAD79KQRf/8JTmtRDS7oWVZ2NlkQ83TYThc9ZpvVnwnXWy2MrZGMXBo8Yxp7q1sPDD16Q==","shasum":"a4c9ebc62b602b4f229e62a6c975194882668c5f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.2-1624645637000.tgz","fileCount":255,"unpackedSize":7730895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1iCwCRA9TVsSAnZWagAAS1sP/REOnx98t+vvh9XtBuCe\nSi4tb2RSL7OslAuaTlOH7IH6XvulkLbmuwWsS9tY56rQ2+fRMryrmppz2Xv6\nGhyVFA8jBYcE9iGHNwtDLZXToe67A1Klpl+mqgmwqmXkBYISGgeyyiYNg/eQ\n7X07NJwKshE1+XCiBgfIqiYKNDVdqTAqgzPPinhqDEoLVDhf9GJjRI/D1oGN\nizGN+fy5qwuLOfXAalSqHG98yToYBomY08zwZGp9y8/i8i5OqEM6vjxasxxx\n3F7mY/w0lF8p29qgE/GvW1aq8dYqAA53fwEhLRPe66w9LOa78GaYcHlAq4+w\nhRRuwtar5ujSF5ShUNF7IojlvATF4bTFbvowHR0qJeH57x+7KLj6Fj5lFlkw\n30cA6qxasLy3sW21BAERqnPwMPlCBlgG+ApUjLlrwGUcjZ3HBSJEkujf0IaI\nU4gAfgkxTlQ9xlFWdg2xWf+BSPlal//fNsLmSfFjyds8TDwaVIMIHMJkGfWh\nEkCI7hf4pCOtjuC+58XDbAQydWMTIHaL2QYgVV2dMtUZMAT2xtP5uVRqyryg\nQDETdZId0/2mJgWqsKhDw4MA3WH590vNOnlRhkBEMgJgh6677VlC8DUsqNt+\nSTycDPWPT7Woce3DOsAGBgw96jwukx6f/1bOV5TJnmDGjdtMr/JjM48SIM4q\nK4ES\r\n=bO2r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXfaqiUsyHt68+HKyoxvKeW+k9xkefR4K9hnkxf5Y1PgIhAOb/ZRSR+RGTowsH0P7rd1dsmvTZmE2edYcFpb/5fxfq"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.2-1624645637000_1624645807895_0.503320880102397"},"_hasShrinkwrap":false},"1.13.0-next-1624652839000":{"name":"playwright","version":"1.13.0-next-1624652839000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1624652839000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-/3zuxzDNzV/JEg0c9NHNxAQ1FrAr19tgbsefO03g2MgCG7sUYG1S9Ut3X5Iskoam9EsmnrSlSD4IbPL7bBCSug==","shasum":"fee21538d685582030e5a46cd54a83cc5d2e128e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1624652839000.tgz","fileCount":256,"unpackedSize":7576649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1jyyCRA9TVsSAnZWagAAhWgQAKBC/Cb2zc1iPp43gWqn\nVfMG6wofaVXJtSzEJKlLWqDBCK3nvB3TOVo/M3LwHTf3Y36LYldtSJZLRz7t\nQsFaG7klxpIYTYQxtyi4WNryVsCsU26Bi0wVVMWg+0yZp+o5+PT+Jv0AEoO/\nc9ISwyH5DeMKXWyX8MrYHtmhShwdrr99S7DTlzOrX1jzzVwRBdo116NROQBd\nMOm0mEA4I9jO3+/+RThgIDAbWmZI5lUBOmLwOo07TYgGME44H3jdogc0WY2l\neNU89HddwRnxx+G6XO1WDYnhu5k22zs7O89+DD+tZ81yn0plI9yoczl4lVT7\nz1xDtL17epGGE/WURntx7TLFRYmlatQSExJELS3z8HTl31reCeMomr7mWm6w\nhjf3pdoz1+NiklKfeVaFy/PLWof20qRMuP/pJLvpxGXE8Ua9JLzCpNb7fPXp\n+sLrIdmuSAQ54kNNe0xaJrMe0IFBWn7D5dSVxl0+s9BM2JGGrwc94KuOllOV\nLuzuh77jlM/T1MSaiOL6cIMbNyJLbleSwZrPr77gyqFVGxucZ22oB+JSMvg+\ntNphxE2IcEVAohgq7xBWRZ1EskPpIxJ3r5ZKxbHufPSD/8pW5egQQZJY4b46\nWDcQXmqsB1kcytABgUCbRDDYNsHPIpdj+s7WARFP1Q9FPh/3SxchNBqOQU+F\nWuHn\r\n=bKFt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCO5gut3wibNaRyxfqNdzii2HgJomrlgXwkk04FyxJtlAIgCG28dxJEF+ufS7HimB+0q/l5pPSZbCnJYLAMxjQMuKc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1624652839000_1624652978077_0.3157046738818743"},"_hasShrinkwrap":false},"1.12.3-1624660499000":{"name":"playwright","version":"1.12.3-1624660499000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.3-1624660499000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-pTyKXSOTlnWG1EuV5TZZ66hdGKGJdUYjseHW2M2V5Y3ka/mrAWNPWDIdbOO00gD+R50ZFD76H/qUdnYH70eoWg==","shasum":"d29905edd1fdb8b25f42ce2afd73511107012cc7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.3-1624660499000.tgz","fileCount":255,"unpackedSize":7730895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1lq/CRA9TVsSAnZWagAAZL4P/0cPQkrdMhzki3TnVOFp\n/2LTCF8aYf4tY465bjOkxRgZ1SSESkBOzamyJEpnp/Nvh/9QunJbBKtKx3Fw\n9Q7xnd9wn3UpA+u9rncLWMeqpvXyabhwtpQo08vmzB+ixwqA5hkCNGI+JIYG\nf6jkDxfz099+7FO4iJPx9JgMDoYqTunYrUrjMeX9uqEC+r0K7s3yUMjIK+6R\neCw85elgLNq045F9yGuMs0tV0d9sRU/daIiXcENk2U/VnNrSe9/6UeI0bf1h\na/EAhYCiosPKru0zThc8QJZX/LcJKMIXFBfTpo+7qxyPFoInL2IcHXRJLh/3\nEsl831eF0EyA7WSS/Xx1l4qkkMyOG8m+WSXlwheEK6/sRGSJ/43IEWMJTd0h\nFjXO+4IzZX6dm6HWxehIwTiGgNw0DqVKFWcjrJ38s7xkRn1GpwSKJlI2zGTg\n8Y+fkeS4fulCw/aioOQphm+SUbvyLP+b90CP7I6R+WbuzF1//028dSKpzwM+\n/4gQZJk+90d/QNIa89Kn7Qkyk8wZJ453UhJSNPspC8kXOYhygmU2zWTr1w+9\nzBOiBztfnQ+W0Dg6XBL7SSgYw7e7IGYTCnXJKhOpL/yMx+sK6frrANd8evN8\n4AdQSNb8cVl6ZptIH/VgfhdUT08WzzjWR11buORmGTTamn3Wn5tY44uER8F2\nJaNv\r\n=OjJe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDg8y63AGBSDHNE9Q03LdvxKthexcK5CAQwMN6JqdIkkAiAIKeJuIQTY/yuNeZsCYr22dvzgWyLG21HtP2I4h3ZyZg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.3-1624660499000_1624660671176_0.006684238542456589"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-26-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-26-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-HKy//jTz/ac3Rtrf+wHhjGysjoQwLgF2+Z5cm9MWmkoq4ks/1FwaGQN/rU+6nPa9ZLyrRnhwF0I07RlSY04ccQ==","shasum":"2d0422257fb987126cb9d03fa944921b4d74f3b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-26-2021.tgz","fileCount":256,"unpackedSize":7577338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1nHhCRA9TVsSAnZWagAAZogP/jXAOmruUWeJPdyNxFOy\nGHDbFfFjIykDMma5hD13DAvigS6ni5ds2HkN3cH78FCsX7g08UCCtslw46RS\nqNC8vtPBGiJUHZIhmPx3QIP97v1xgdk7iuSyBQPtbjCTFc3OnELoCV5VKfnp\ninqkjRnfTwzUgbL28Xgm+KAuZJgLWTY+HvqH3L5Q47npbipY+z2ReWInpnxq\nUz5E2F1+87x6yLyBAVLzyXhKpl6HN3QE0hSgFgg3xMBz2TpYFa4fVyeEmS48\nQzhFGQKXHREKkmYBgy1kmf+n1BkIiLDZ02JbDVJZKUetljL0ZOhrnZ2w9OyF\n2YHG1yPzrSCnMsjEa9or2MTMFpS1U8+8lzM5NvElW1WPQpYuj+otppC6WYIu\no4R8j/KvjtgHBNcZVnpvPcE7xWdbZYHQmujkU1No/Nh1OZoB01ekqVjkOM2I\nEno6cg3EnvNkTH6mc7uCT4biXkFT7gqqx7zM8N2Wgc3anLBkqx24etiKNuHn\nLRosdgVRna4/ax3i80P96UqA6b0eKHY1dHEhY+5N7xOXk8ZNvgQDN/skjE1G\nnG+l5YQI9z6oag/Z88zCyfFhmgM52ahGI6R4gNUyr6j0BcSD+ROrcEdw3VyW\ndWz59UT9kJY7M0MjT7dB9XP1x8hxhkwB1H56lyplmhn2J/Gmg4GYd6BFI4zx\n54rA\r\n=aK6r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDS+eh6VrWuBSM3Z5TwiuJ9/h1SavoJSrgPx9M7ICNOmwIhANj8bE6e+9WOfdjo6Gj8RAZ5MpPEWjoqX33c5C22v7sH"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-26-2021_1624666592831_0.06726220907925984"},"_hasShrinkwrap":false},"1.12.3-1624687819000":{"name":"playwright","version":"1.12.3-1624687819000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4530.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.3-1624687819000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ekCsvQofTRtVE2bw4nULXT0/lNDmuiiqnsgdnHNs5ca/smf11fQg6xMgq+zY+8yfFe9x+sMsqyNMUeOejJZlPA==","shasum":"af7aedc26e9c84736a05081f45bfa91d5c7a13eb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.3-1624687819000.tgz","fileCount":255,"unpackedSize":7733936,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1sV0CRA9TVsSAnZWagAA100P/1jPxxeZrteqL/NVbX9f\n16lyP42Fd3c9FW11uke5gVy9gTPBPKkRu6xZjrxoL8E5TIplri/2/h7PRT5c\nl02iZd/WtohkUrOyAkxY72+RnkOtV+N7NBsFJr6am0Yoz+kYFENwfDM3Rmxe\ntxdpPy31LdfDqW7uvdvy2DaaGBEgqziyfHguEHWs29noPutijLN8xsbZivGf\ncXN/nDENKiyaKwxoaI+aD5n2ciZ+DuyDsywd/Y0IasdhijG9SeJmeHEuNpAM\nUyiRcc5RUnAQHTHah6ojVEJl5RNICUTpkcYl9/pG96RhG+wB2vwU+DJjgNdA\nbfOwldYICdSSxKFCfTk2ckXQ5N8FjHiWG+Pk3ogIuq9VQqwO9iUMJUxCU+ST\noudJ3Vxu+CBsbGtQwInkjSnpNB1heawJHLPaLwa+hjPscZ9VQQhXkVzOO6J3\nA1UrqntqHt79hBOlCRXX3IHWb1Ueje4pzO3K1pqJQRj5h6p2RiqHqSJ0+9fg\nuDglHrcoWDTp0NLSdlMvwwCvzpBvSey6BYgiXVlDBn9hq2h6qsY/a7dJ9ylJ\nFAhPRatbm4fbmPZRdTCL8Wa6EClurCQwNkww3rKEy3id4buOTaKCawSnGPSQ\nyUXRPetL0HNepQcynn24In2JvF8Dk0UrjYrJEwVwxjeiYE9RI86yAi/9mUgL\nUi3N\r\n=brm5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMQwzc/nLDjf+IWxtrOI8GLeTEcIU1VyS+SwESGOPk2AiEAsk0UWSL9a6DCtMYOi05+Ojpn5a2Hm8UlBP/zkGBMWAw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.3-1624687819000_1624687988298_0.6144005339203578"},"_hasShrinkwrap":false},"1.12.3":{"name":"playwright","version":"1.12.3","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.12.3","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-eyhHvZV7dMAUltqjQsgJ9CjZM8dznzN1+rcfCI6W6lfQ7IlPvTFGLuKOCcI4ETbjfbxqaS5FKIkb1WDDzq2Nww==","shasum":"113afa2cba10fb56e9a5b307377343e32a155a99","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.12.3.tgz","fileCount":255,"unpackedSize":7733922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1uARCRA9TVsSAnZWagAAZUYP/1hLXsRwRr+DQ+6mKdmr\ndyXv+plWWhNq9uOfUflWc0ytDriIwYKSALblqdb12zyYPc6TSl+uaDCC0vvA\nE3EUkX5K9JTfByFA3pBWAIzVvDahyL96lNDpbZeACzf1kgNeY49Ib6ZnsDFu\n+Zl2bbOj2AYRtDC6F/FM0s2Pf25zlGSVYAkUnxzBaDesuCbJnwmTEnTO29bO\nE+oGXNl8uLu1QC0LavVTq0vZVh7S1WjB/rPgbyKVrEjXrOarMbxqNjwrtq48\njidcUn4yVivj+o17sT7LE3K2sRao2ZgoIEPH5qnyCDlBFJRYKzk8Xx3AEtUQ\nJptJ29uURKUpAJoa5LwA3FepaWYGpzH13QQXJMAqpSZqDOrorgUzFokwH+fM\nTWKpfJ+YMfcIrn0KnZuGvljJN2yXLXauFP564gNYPPoGdiD76ob4zMJwIdLH\nlrh/8D0EwOXW+v8wB1bL3RYSIMQHDfGmo/u5H7Tru4wrTH9jZAAEDJxGrGI7\nXtkExHxJ9R1jR7/61vCMn/JkMis6C4BZdXLKztNSF/KZ5s3m4heGhxVHu0ri\naWs/1T9EN4CrmvpFDxYbjWbICivxFT6Ku31ju8Tyt4/utcw9umUuO/3ghFM5\n1Bz8YFGwY1rVbisUb2DN4P3N6jzbk/pQKek8rKGtuKqugDMRCij5egF9G2EL\nty1L\r\n=sJVj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICNvcOVLw4mDbDbqgFuG2MXwX5NYKeBXoowCsabj7TjcAiBwKtxIrCcQMUq0n6rBu4GyT/1Hy13TwpzPdZgonv3N8Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.12.3_1624694800703_0.7658663016009977"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-27-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-27-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-XXGnIL3B+lZgVDyoDHMCLu07zhz7Pyh2WLh8Gb4xCkftQlTE5qvpEeCG+44zz9zRhxhDKQeC3eni6ZEgxgc7LQ==","shasum":"8f8cf08e8b8196c4be79e7833208637d5cae4c28","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-27-2021.tgz","fileCount":256,"unpackedSize":7577497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg18OmCRA9TVsSAnZWagAAB5UQAJS8Bh4jOqLgM7Dwt5wt\nXS+PU1lW7VXm0LmlGAoHKvhxci4sO7hXGszS5bs3N83viZmU5wVDpjQvyBMb\n5hAmcUM+Bh237jMzDM/tGJuUdGMSh9cXKS06t7xZxPnilkdCDDVnHggajeS8\nTECDJng7pyu7o2QJYYaer/jUWFFntc1JCIJYgeGEDjkslgCAKCphARtse/mC\nDze0xMdYIWALL7rD/1fwhbNHUFf50Wv4nt30EcrrmEUOd3HSGGaEwFQBIrw/\nUfXHBTWEB3jvOyVZ5oUu/3HwgBs/ykKVt05989RKaaXxJg0IRgvnrn/JHAqH\newavhnuXxbTZRZyEME9ocaB4keUfiCeF1+Sa0GUF1VzrnJenGjIg7olFiAQP\nT/yPkj3Sj/m4C1M3XhfAgUD9TaxMkPR+Feni94SXSxrViA40T3zylZ3Eopby\nN5o0jnr+91dxJNzHv96om8Of2Htop5/BBX7qCuiPnWnRz9PCHdUbUUMD6VT1\nWEIhN8KQtq2rmeCMbQw6zJrFRoSNdnpFymgrcm75LmxeiPEBStmXdQS0Ij/J\n2PFRn+d6n9+K5qZo3va/EaCqMyp5mn199WSkINYXUFj0dZvlAw+HIVZFzU0X\nPIplk9e7CnwkQKFVPgkEbn9umfxwzLZc1s4S9wF81hIlIrqpKbG9zpx6lTF3\nmyPj\r\n=Hasa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUEB8jWwhMA5nbdA0FKVWCkraChRErqw96fC0I7OSDTAiEA5j4GSPHjvc3rCa0e0xjrJgiTdXg3c2R/RoRdIpEecFA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-27-2021_1624753062180_0.5094414232176643"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-28-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-28-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-BQDIqzaEjR+u3sl2nEy9GGLOvIQcfgi3jqtfdOgWZIPXEkU22iIZHO7ZofBoSYvy1j/NVronJFbjXepeyF1gIw==","shasum":"5a745d2c8d540f885d1d73b25b28822d4fa80b02","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-28-2021.tgz","fileCount":256,"unpackedSize":7577497,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2RT8CRA9TVsSAnZWagAABG0QAJmoxbmjAIyrmeSED7yI\nIuwPaDTNCepULdWcPFK4srEAwy6FdYHgC8svC+jCnkgWLFpkuj+53+Y9yuh1\nvNpcnccZLAVV97dwcRVzJh1Lotug3uPaMcqU87ZZGaR18mmZzt/SD/HFAzA1\npOqFdmeyosWSQUfoCKXhAv+YAhsRrigQxM2hz/64y41tP0iASgbDsXU4UYVv\nDTStx+8bQba0ghkgBUbdkGIArxlPWvpgkjYRErBUHIltNK6uq5Yjbb1vD0gW\nQFeoVjbGMCEqWi+9/GN4qV9CyKacPkg0qTV3isA+zzjJwx7+DbY0zZpnnc1O\nH1pQCYoSkoStNB9Hz33xMb/KnnXVk9tIsdZBHMa2osgunE0/BKWk1WbO+oDe\nSqLEm5mMbrjT4ipBxKWxnYUfUMEySXQA2QXhLY0htnWG1nxCtDfEz8nrLbdd\nCx0CwsZmwxZTNSc76cc8nGPWAS4LuB0oGopxugXHQQpRIWmiGgbp6m7UalP1\n+kKzN//9AwUxRQzIgLKve9sp6cFbOtbvSWLDjM82cJdthPk9pPeFOC/QZWMG\nXaHCUY//fe427PfePXxrK0NHDuY/Duj/zQTltLxuLecM9i0eEuJmgx7GbKgX\nNMkov/0EB8X8GwX/5+f0shJnM4MdL5RbR57AqfxJvclTrjNICYpnPbHIjXZ+\nySsH\r\n=dyAN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCzSHbPYJ3JqfGArcGsHXxOeZPl5ux2eVFd3kNUNPEVAIhANjA4rwJKXkKoma0rEjdMF0MsBSZTVjVn6WhHZcpUFUw"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-28-2021_1624839419483_0.316649009517767"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-29-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-29-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-29-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Izv218kQvSAy3KnxSmEYNVTfSkUpmM1Hp+FzN9z7cmCO4xsL3Mrd9TUJcFBtmg10gLBMHNVqij1pn0cxHCRoCA==","shasum":"7edc2bd0e2560820e92a5bcf532d2100490e33b6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-29-2021.tgz","fileCount":256,"unpackedSize":7574430,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2maCCRA9TVsSAnZWagAAhuQQAKJe+cFEr+1IocpiqSFA\nm6iXqWFLeCUvvleAf3NIMu1t96CcAbpr2lHoN298Mbz10WMqxtXI8PskOj5a\nAWpmcuoyEXUfhDjHvWFPPnJupp9lpDlSIo8MrtgSCnpUt0hZd+DQK3gj0mWW\nNa1W94A97k6nE3ajlBrdBmTQlJr3kC2rAK4fI5pwat0HxCdDCEjvSdZFJEs/\n+FBy/iPC3Uryimi9px1r7zo+9Fwp8MpEIFgFzIiqGQ9yddKQSdBq7qCeDMUR\nImptqMozbM9yfzvuYiILCoV9jV9vlkJvOoQXN+M3LuBYBShhs/9uBX7dVSxX\nexSs9DpfBChiMpBV1ZJBri4J+UGwRmamwhKaGcE6X9o6/g57idNJ6HSjSGXJ\nSxrG0KxOxw/DGdzCa2cCGuOXLz4tDw3Xu0rUaAr02I4xKosUsKIrPHboBU4W\nW3QINmRrFZE2mYL5er7csewYEzBv4GyUbCIP8BXzWd4CTLFnMSAvOIywthx4\nMVC5r/r1hEc0rxYrqkUS9j7McQngt19nIS2xePnaII3ua4hY8VSrh/gZ/q5U\nW6Submnk8k0Y11DNHCvJBMgXuWZFTWgiun0RFwpZnTOp5B5CMl3uv+mT7cgs\np2KEFLhkabZOfdK93i+/vIe003ydHjPnzQtfZRbuiYcKr32JGenAZVgM80U6\nTwD3\r\n=fzpG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGZ3QtPcB161P9pHj161ZqA/XTH6HKtSG839TCxWmF6jAiEApyHk4Y+gosuFAXl79eMRoW2sNw/l2HAhOodWCUtziBc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-29-2021_1624925825576_0.430833341876101"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jun-30-2021":{"name":"playwright","version":"1.13.0-next-alpha-jun-30-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jun-30-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-wDVj1lXwV47phPazNSKQs+FlvgOgkzhyH10pkIddDmKSLZFCnP0cFVepDxvgbC/Z3c45Oe6ijpa3x2LPtEQXDw==","shasum":"5a7e339a102373edd73dfe11365e8b8731dd703e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jun-30-2021.tgz","fileCount":256,"unpackedSize":7579064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg27fgCRA9TVsSAnZWagAAIf8P/ikfnqFlRGtQN3i5v5Pc\nqroMELPHU1LJ+jaZ7+D5nEntwztGjPV14hZBzgEWMuvAsha9+ThIDsqWsjjk\nC50KVU8xgL18FcXmGfuFa7pv3YXqadrpVtwxO8cNYIBg68WsjyOpVJIBXhZV\nC+RhRgobs0BxlmLyuYZKcW9ZSi8JG4Rui/bdyAdvTn3qaZr6gnwKU5DwJdgy\nCfBfLvUQPLjhdmbfw+Q98lFkVzoSaWfsg4Gq6vU+LVvejiEDG0klXEkI1cQO\nz7Vl+fDd0b7WZoen/B+DD4rtVdJSVKOnCO3M6xCM6iS/OPH21BO45hpKI/K1\nZpRoQo0a1jsGsM1zvZwffs9NMBV2q7E6G3mdt2T8RxtfDUDys80kgPHXcQqR\nS+CXjqafxzcGbVHg1SmoldEZswCz3f3VhbE8m5Xg1HeaZPOgEvzV80qLSBmh\nuEvHzVuEusl7Qanh0jvz5Enw/8BgGVklL0AMk3q7GP1BCNrDliB65h6ESUiz\n6T7MGzktJzZ2/3ClzXPt/9g0oT7T/uG+4Lgv5G03VPpVGq/YcLvarBiWFyQb\npik87g/IyCqqLbKcQSQFCVy39Gx8ZXIgs4dUOdANg4cfIC5wEw/72ZJGktR0\nGuE7+Ek8b2aGc1bFMTl3zEtP+o90gOCRxtbKoMnFQBwYO45ewAJnv/2MIzZ/\nn84j\r\n=TQBS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvihdsqp3Zk04JAOAvQ88B7x9bp+7kFx3VR43V7zoL8gIgFoLkIGAsc3Eb2XBVnrkvsZzoJbCINxUBWjvzWcg7Prs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jun-30-2021_1625012191456_0.7628458141387504"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-1-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-1-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-1-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-GJcUIyOY3Yt1TIV/XY+3l7s3OOpD6npCUdA0pnixk6xaZsejuzXBz41b2TPN+8OLJurJOLfbS4CnHkcP6SHhwQ==","shasum":"921fc865ba468e3755a00519b9f39ddeca6abcf4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-1-2021.tgz","fileCount":256,"unpackedSize":7579431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3QlaCRA9TVsSAnZWagAA7C8P/2/IIZKbXrgCaQIMVR+P\n6g3fmu5YYwqyYNrVgdovfPmBWmGhOHMaKpRnqoICW+bwg95KqaBTvy7qMpoW\ngikKCeFzb5V25yliCqPl+CCDP4zi0pHSQJFPedI3JmS1FiF50x0POaVHpUVh\nTo136wx0/vScfpz+bobzX0EjJ0wVOa2fBz0XpL2RLOImzaaBGWMXuwyhxZWE\nVsVuSqUWXW+DtwJnW9ihFqPHHAA0CKhDS8ZdNoDVl2F0FSwrLDQyXZ6ja0z2\nukTrGGRW7YrKcB5N0kaTkcU4Eq3v/u93v06KKcJArY7yfCiyCTpAORt1MK59\no6YShqXAeOPkEQ9lS3hKhKVt2rc4i4m99+t9cv0dDpysm1d7paht6+cXFMzz\nVE87MZVl/ix7/vJvwrkMZv8tsOPKLkTIqNT09TuunaA1dlU0iufEOj5tAB6k\n4x/X92lJHRRdG0vQk8YOBm141UuFthKdaMwxdK0c5QWOVOZsylEDqpRP3bau\nhSs2OUBtzV2PAADBK1zvlAsBCWAABqcbG9cEnFE8Rl0AyYbWfCRl0LHnDxmO\nMGqEXW1XDtDrZm36Nq0eH30ujgCVylj3YzP+cVFfg7riWzmA9sfFipF06eAx\nUTCSRZdSVIyJGaeWd+fBOEcDBuu8wuRHxPSBTNkAdFSrHoTqWbacu1ZTLVtx\nzvYH\r\n=numq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6mev3sD5KOtf5BdG8g70VS0gG2oGIC+rgHP/iEg8F1AiAhnW5cTKO6/u+CHBZ+TnEPvsKRCXggh5KGKIoG24CJIA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-1-2021_1625098585976_0.5721424068099688"},"_hasShrinkwrap":false},"1.13.0-next-1625160362000":{"name":"playwright","version":"1.13.0-next-1625160362000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1625160362000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-NblNLid9IUHG432BlwGnNImxPke544ZMEuUCtirPga84zP5xs6+BPbkNnkwOyedmmCpm1+eshzvJgy2nSC5Pqw==","shasum":"c3ccc9b230669244dec888b74473788a969a3a47","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1625160362000.tgz","fileCount":256,"unpackedSize":7580073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3gUCCRA9TVsSAnZWagAAiGAP/AvdL0r8G1NRME1mZBHY\nFEpa6Yy6jl15Gpk4eFiYI+MjXJUp1IstW7YC1fkbA8Ov9bX1tJsxSC93BI1w\ncn5+Gmk2w587wFvYH7599kNzFMfIWsKKasmIgCEXTxDyR1p56VsIlLOaWSnE\nxmRuwvOl0666OqE0obMm5k+LkXg//BdN4Lpk9qrY1OiSGa5qKzBGVcEJ2Wxm\nJl5Cst4SB1oZOQK1BrKsZ8ToJmlYDIG5osVqOqarxP1p0iuK7ci79/Y2RK5z\nu9BEO7wIAuEajWTC14RyZnvKFuCkZZYwJWyFntgqtRBawzoa9VTZx6c3EI7m\nD/BlTAKzwVJ/ZLCl627NR6k5TVZ16AsLkbV7NKgli7vBQqh9+780ODniJovd\nlb7LSo1yNkD7YoxFrFfdkDlXjzk/8VsTpWpc/H+w0d0J2l9hrZGMJXI21UBe\niDfCDz3E/MgwW837U3YkRICZYTQjC/SvUP+j/3nZxQWL2XGevzXudzhURG0Q\n7HXMVHNsRQu2J/YcCKhnIaugeAZM3x10OKqymtDUYm0OeQADwFyNoauHI91W\nGn1333nTW+TwD/Xh7VNuW0HxJqEVVxhnKtcO+CKZ45hwOK8wmXghKEUwJYdf\n8e78si/ZkUJ8HOT/voDmsy9SobPvUTS2N4Bs5RmNLFGlYDOKX94DF6aEjfpc\nV2gN\r\n=/uIN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHu5l74iQZ+qDNF25fa/2SESVqRId9uUvO71HGOESAIkAiAg3tn112mrJzWOtp2+KZFhDKd10ZcAiLsG6eBmgmc/NQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1625160362000_1625163009965_0.8728282523751298"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-2-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-2-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-2-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-oxtdK6kUQ63NEKDUnGv5dErTL42oz5yCiX6Hazf+1cnk9k/WNXlGTEpKTCgeGId1jo+H5XRSp1ZKFX0sFMzbmw==","shasum":"83152cb6e021f330a912587275df7c439199856e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-2-2021.tgz","fileCount":255,"unpackedSize":7590756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3l1aCRA9TVsSAnZWagAAGEkP/0XLRabwXeFNLNYgMwKu\nYdcK4K8gRmFPPai2SFgK2qLPcj1b4l/968qcj4tUXKcP8DCT6uV4KrJjJ9fu\ngDSY/o54Xpvstww8jpDrZsgSUuWs6hXRThJDQTd1dy9LSkjabF584nl6pC79\nMHhk8vembWhRia1ZsmEVxWtIbRDC5DDrRKrGwssJrebHou9qugyHTytxierW\n7LXNXYW02JArfEGmdqzOMd0E9TLPoNc5uhV/j8YCP9Gng4D8VG5azWWG+wfP\nSqq0hDDg+HVFqKSCEXJZCcvHQ81uW6WEuub2E2gBE4L70TtsVLjI2i+DJ4Gx\nH5GHumZDblf+C45gGrghh6PrCM2mF4J1WXr2mjhmJ1nLyT956OQPAx8iUIaG\nynofK6i4iJ6WBrmWFxpcKdoVc+qcadkBk92NJzKwqOdrm7KEWV1Icj4+xIQB\npIGhgDEl9C3oVp0IBpRAtuO4bEdCAy3BdtM8Rcz/Qd4ZkpxhkoTxI6VGbH1w\nytGiNJDSq6PSnMHKBamQ9mpgshbw+Xo5TU9+mo1zACDJtIUvPd74wqJWwrNE\nozrWYLJlSTPcRjmiHX/r9GbnqjxW3VNE3X0z8Aqhx1B8sgragGMsZJ8ztcge\n8jITudx+oqUK+5DrzjRTCRx8E0wbUOZPqV7uBPSvbjnObUrkb3lPu85CM0Ed\n1o5u\r\n=Z1Tt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCei2gSf5WgSXuxRGO/WxYiPrzil0V1VOtfgJQY5jDO/QIhANxd36bcyUfkz3wOP7kKjPNgw40m54NREE7iD9yf7kfA"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-2-2021_1625185625921_0.21031898984402986"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-3-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-3-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-tINnbqsA7wrdDn4gZHdcmyRLMedRQLszgUh8DTyaErZTQ0OvyMXJVmZHYtnI2Vfv8QVZcetmzVOFJ0AzjPzFow==","shasum":"be11d2692b5a496818e262c01f7005b40f9cad6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-3-2021.tgz","fileCount":260,"unpackedSize":7617991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg36xfCRA9TVsSAnZWagAACSEP/RBQI41/N1ynNOxLhj2+\nzjlRVvYcbEdSdMxLAvr0vbqqEzGfRRRZm4L2Fnd4pocd3QyxDbkvxYqJ8mYd\nJAVO5gcbq6UjsC8sHe1s8Qv661N2lR62mlaK7EqSe1FmDI+Dp6N2cqJvRQSM\ngcRVyAfW83GuV4t5ZtmAReTnrAXCKO9y8pFZpvL0tF/+VBsX4PJwYsaMUkqf\nAi7M5/MMDjh5BputTPspDGc82FPSVND6pFd5YogqQwZGkT+B37K6xq5qfVSe\nk040RNeTFXdlj8w8f4TtAvnwTKzbMUpCi51lq8E8OfrdndCmKmNgaDKabWX+\n0xn6dkPB0dHcgUbRHiW94gx4iodib6ODMDXOzEcG7FRrzf7rPBnJ+2zrVnjg\n9+KO6q2Qqf7tLdAHliBzwNH5TwfMt9/JFSfUF4yAc//Nzmw/UJB1o5fkRRkH\n7la2SKfy6kcKn4doUoCfvDuXsWoYZn1j/kauJb3xQeASiDfce7ll913nDaZG\nHXe2jTOJJNdARYdSdtaTBinunt0t2PAXjeHCrwbnJLOJyH/b3WU7nozwMDgT\nEAtY4+Mogr1xaMsyxcWBQY8WmikjDw8epY5Lzpbwha9rwq0rPnDWLvmndSx3\nlIOuawg8Eb8gdiJYg+J0RbEnA2SPcCTSnDLkiseZ67vrAmieqAGqNIr82DOt\nBfhG\r\n=aKCi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCm9a2Z+ebfa79o038gJHSZfU4X+5hnYi5H2+kGAT6RUwIhAJ8F9AOExgVCwO1nkDF5kgdKUZyiRPA3p3RAQOj1Neg6"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-3-2021_1625271391162_0.7338008234334887"},"_hasShrinkwrap":false},"1.13.0-next-1625269509000":{"name":"playwright","version":"1.13.0-next-1625269509000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1625269509000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-R+uni64KqY8vGAuwt14xwYDcm4KT9k7R+xhU33QgZu11LjV0iACal7PjdvbFGYf47tm1RJZjFueLSs8ihRWLfw==","shasum":"591b408e8880f90b01a0b040cd3e2bf0fcdc2ecf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1625269509000.tgz","fileCount":260,"unpackedSize":7617988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4M9vCRA9TVsSAnZWagAA2WcQAIcCVcidMDtWWjJtUsD2\na8643v7Ow4YLJEYoGQpqCAeRuP/4tV2MSZ+sglFUiTQazi0PVgRuv+xf0LhY\n6QtyfePUBUAgaTMkIcOU5VTmON8orQSuhc0LqJH69ZG1MNQ+K3T/6Ra+y7QY\nMH6h1IeIxeBSxg/OmJRhwZim9fy47h4uEnE0JxwnWCIn+4HiM69gsbgEClUL\nprTsbe25w4g+p96/glL3gObazYQvM5dwZVYf+BMoNgAmYJz0g1rJ4XU500Cy\nOD0O71M2xaIoVWj/0XF4w3in7EpRz+qR9CPhlzSDP+QAhLiljgKJljmwI4ID\n8pbYiPD/8WXzx90CvGRrz/uhCvXVR8D89M3uYxMr2UvlLbe4ymWDtM8u6EDa\nVcVTyVGCRr3jiVt9SS84F1J/c73otWuoxcXNu5nTbi1Y/jFihNbNjWHfV8ur\nJMCZBv6ixnOXkIhaeaT7BV0lHcwAa+xtLOkKPhbB1SvCsH8N0ANP456Q6lDb\n1nO3RGnOQp9Pu6vlmlIbzZaLV5WunzWmCFMjqes35Fwq9NmKCbBvtnFq8N+U\n3PJViz3iZrWytQZC7OhTnBKRuzsWGoyB4OVTIZbaQLPgnLNRQkc6XzTShSUX\nMk3W2Q3Sf/xJyhj6hOJ9lP/Aw4jVCKrVd4rmbIlyUYNm9HL6Wd2ChMnx/G9a\nhuTs\r\n=gZWg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQ8aozLcNI7uqcMLzqch56r41gFERhY/NNupVfS8hurAiEAlNAqnOkRSYcbUs65NxhtkMn57lWmBDxUVCXSE8eT70U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1625269509000_1625345903118_0.20841261486066043"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-4-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-4-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-N6G5LAMmTUiRjRB5WVRhK1uJjz26N5RFM3ahSLn2dfIikCDkAV1jKcb12x+CGmzC7HubeUiQNJfbEIwMMhEtSQ==","shasum":"998a4009134d831701a8e1a69a909e1a6502e56f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-4-2021.tgz","fileCount":260,"unpackedSize":7617991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4P33CRA9TVsSAnZWagAA2fsP/2y4eGmMOVXIUZYIA5RD\nPcWUag47gJvjfmdodXNMApSwRnyrQqoQcDc1E92+rv5z4yanTTfKN1w3lj0/\nfM1oYGCyyIgQxvCwjleQ8m++ypiRO6Mg+QGXH+F93Um5MU9wt8WZBlLrE9HM\nJh0AhSmj1gcmMa6EBCLF00EBtlfqteSsOyKF7xZLQC2dC3DPmf06/aNRsb66\n4f8eJWwnNjTCBxRfOjju9oezasYxilCuqzAr/PxIG6zkSIGKezXs6086rkHm\n5XarezSM+8lMNklnjUpZIUUFnzPldfvKuZP6ommbiCGLRD7KkukOswrwZ/wk\nAqCjbMWduBRbzTCB9ZvJV5wtc4+aqv0Tzn9uKcTmA1tnEIlSxLm9Az64wrMO\nTnHFnE8T4VYTKmmaNM3JddJZm3EY+QnwaMs+PEfYr/ylgPy4DM1sW8MZTL3e\n+/TLiT3qjWQV9CmPKGxomr1KxvLd/+HJAzibspZOJTKZUO1XyA2N5Ggn8HpH\nRmi/jYE1L694dLvESeVE4jtzxBy7vBQ2Szi0J+Ktu19VCFDQZ2eWALrBd3pa\nyudn/XTyqnUc3KraJXqbQsG4JYvNdoA4Hl38UiaaV5I4F675C4IsvcrHiZ6y\nTp46ASZ5zFNBCgRPXsPj3QQrmXiP15DoLPqem/KNQ+UscJHfX6cqaelpHusF\nyTvu\r\n=ZvT3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDOCR51+NKsf8dK7TK7gsYDjIFjg6BOP4ruPXgJTKkCtAiEA+fPrmjOJfkdN1LmuEdOnN5j+vjYppuBVWYrP9S2nZUw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-4-2021_1625357815079_0.7565832155500463"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-5-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-5-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-5-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ZDxK6liguolLQl/gfmQmcdiU1pO8vqMzJOjUKhLWZDFLSyIUpw5ZkFC5sP5CS+Qa9Mb03qNek1ZL3PGSjDer/g==","shasum":"d3e4bcbbf007dc0155c05d4fd5f7c24c8c9a08cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-5-2021.tgz","fileCount":260,"unpackedSize":7617991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4k9vCRA9TVsSAnZWagAA070P/iAqFcsCH8XRPUcQ69Ee\nRvBwR9wI7dQKIhZ51QVXDDv13erO7yP5OXoo8GdZIkKAMeYUHqa+6u9KHtkS\njWOGZb/ml3PTZROaIeezVlTZUKd2LMzNmfPqStR6HbGxjRxJgRopkcw/MYaw\nGO9TkyPGvZ4xdptLifZLK+hJHSc/+5YMXtzTPM29JFs/8p9ZIM9qPqTZjt/G\nAf7jvPH5sUKN9D7AqYLmILNlboXjDE+/dZzb+QYIQf2c2J22mwHGLmL2Gf+O\nOR2Ak23X5NiRhMY49CmB4H0fqyjiojBjh+2wmfjtJ8bCg2PMNf6nsRQcJxKB\nAtQX8iWRxu+Qon7F3iLhXNDIUonzq3okF5urLMzAVlajbdpAPG6wmIvpvoDq\nKcANdvBQsNqFAjO/5bVmBIco18sZFerlmupSOuRqwCgQIhmHoYz+VAY453DC\nM7gKwBuZFVQ2K38qSNYOm0RH/XFpUrfgI9lwaekk9CQzeaxMqr1di1HdsU3Q\nFjuUSzEUsVmYPwNkf51PaP0SI1t/+qjo4vC/xuGtlenGCB8AsLpiNpYeVTWN\nPgClflZKZQjrGmpDy2/lbnPfOPiZaHxnPLu081J8/rLFqX8UgPwLeVx5dy8+\nVqWqUFDir9UYvk7nxIfmUtGUKX9RjScfGwEqMX/bFLYzJ9IjiSkpsIJSG9yO\nzPbO\r\n=mGyZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICkqQKiRNB/nN8oiUWCUI+rgci5Sn0KIySOyDx5MPDDGAiAKiCBUZPX1fbPsZKkqVXurpTuDvjJY0TmopaBTpKtx0g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-5-2021_1625444207047_0.7749993796278922"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-6-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-6-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-NTfrcGsSeWl4ovHRDB2alQNWLgAEHRkiVvIGLtg4ecmxWT4FljqryRhSZG1kR4USdKqBdmBz5F3QXCqIfnWihg==","shasum":"907e12bd4a165b128ccd21b3adda880ac69437c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-6-2021.tgz","fileCount":260,"unpackedSize":7617968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg46EHCRA9TVsSAnZWagAA/c8P/30F+1lQ+E59y23U2raV\n94zPGukLVn0jDeOYF1Y2XgxhA1YLwRfpU5uYWWouWYYh1hDiX7HChygOJ/Tj\n+LUtqAQtc7q0PUc8j0d+ewT9cJgo6oE4D9qLlL5Bj9OmVpEpBegCzOHsJcoH\nmYTomZdTghlBLV/pZW6EnIWsGsEw2Z42O307kkmly8DHnuZ1cs7IixKigfId\naxhbp+fqB+jsFw/Q+i1DyBPxmxHGr8ubxx6M60sEv9xmcWkzPSXlVrW/FgpJ\n4+/eCuuxac6PMIXAnHbf2yJfeUPUVHTj84THeT4ZCLeZxLRSKa5Bzr/5GFhY\novAfmAH44QN1Rjn5raLl1OwZuQyKLoIi7vghJEF9w9AptBLJo8T5kP3M/AsF\nCrJYcKdCpYV7Hu9jioKB1WgVHY60Tuc0aEfao03DABysVzErQ0BeBvEvETzu\nszT3zl1FORAPOPc2rWwQL4+SA+aBtdbqgc08/J2KsaRuInLOyus9uSGVu+s3\nLBWuuT8SnuMBT+2aAF2P1xxgWiPPvr3vkfrgv12115nQeGqf5lbwL1yEAJmP\nA9hymdhaS7z6PAgVYZKQNiz+ekEIdp0ETmzGi/C0EMeUFme+iWiwxdrGOedT\nM/OsHpxN15w3l5FKmAvntGfekBnrva/QqjKN0I1idXq2ASeaH31BXtsaMtSe\nWNs9\r\n=HeY/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDr/Ye7pg95jpmhnOQFMngZh1Uz8X3A1JaNGEz953rWiAiEAyP9O5UoiWlby0f6EfMy2AkbdWBxaCQJP8Gf4+9eG8as="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-6-2021_1625530629579_0.47577648729855593"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-7-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-7-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-7-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-5h6WQ3d4lGMbmoMDW1IpoLKVgtvYz0ql2PMWILIYtsSOZMtcvYuZPrPktLU2QyVHaxSedrJ+VTjOggEmnixbUg==","shasum":"ec3ff80ad879c007d53a1999f9f02538efbd2504","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-7-2021.tgz","fileCount":260,"unpackedSize":7624105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5PJrCRA9TVsSAnZWagAAYKMP/09dg7FN8UBmhEd7yKj6\nFTcF7xsTC3XlmcCDwNc+bLhvLmyQuLb6VjrEhYL12jj3irNzgfumvOrjv1+u\nfR+9IixNEfagBP4cKHmZVBcYmwx/2qpJqFNXk53z6LWAcvbslEM2Qa8ZTdOq\nippIoKpNBkcV6vj3g0noLILrP3ny1tbg1r7P8KA6RcnhMSsa/mFH7GzqTi84\npDD/5ouRHN3tGeUOiuZ5cWdbBv8VBJD8+tIXfv+epf0J3KTAxUIlx3uVJ/zI\nfwwxrCLwSDpJ4HxmtvII1oJbkqrUF/Tzb62Ljhx5ZWflScHzPetyVlyiBUSR\nsW2DyDZo6e/GPSxI1Y+g2VCrb+1GUbcyQzYFmFKaNr1SEjJMLGMhs6xnNccG\nvPskgtcJwqLAtDNVQqUqUDGbkIRCe1rFWo2N4aYYTKqQzPJ2VSm3FjZnGmAk\n7w28oOOMwx+FH/KEaFUiFLOVCqrhCxaE96Op66Ti27VSpmu5OrJ5pfsx7JTK\n9WO0YPjpLQccuy1ankRvmxKFYh6Rg3NMzRZalB3pE0lcSjXncTaJRHDEWNr1\n4FUn4OavzLmaXIPZaWT6+c/UOjnRYtJQrmXmDB2e3cu+iCREAzAs0+EyjwYh\nee1d7+a7UnZytORkkRE0ZLHQqJRN3bbnT9C3zRFR/feqQesx2pvoAA+3jW4y\ndGzU\r\n=XmRX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8I6GQyQluvqzVIL77IL9wZI9g53H6DT53tL9Wu/1s5AiEAyzWVw5RQw+aatuh1YdmM2VYt77BqQcrCNtUiMmhrLr8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-7-2021_1625617002805_0.31005449292720577"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-8-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-8-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-8-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-lplVU47PVcPIHRyo/cgeMxIQkFuCfLv/xtE1ETYHZNB34V+Ex2735uXyc+E61tlD/mMgF93WeHUhu/DcP2SreQ==","shasum":"621263d8d0ac10cc9de8d2b4161499dfcd0a36c7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-8-2021.tgz","fileCount":261,"unpackedSize":7633332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5kPkCRA9TVsSAnZWagAAUrYP/RJ93yXiyUxgXvGEyVeo\nMC32henK7KjVZhI+cBD7nF+VXkLmu84np2xNlQkruGbnsbXbhDfY1rqH28Rk\nfHAH816dtaB8ivUVDX8cN89rsALQof/SA7il9hLzlPbOCTx8vt3PSM6UclQV\nyqmGgZVfxlzlO1AKL4MEijmkckyBt9TcfSGdzf4+1y8AFf6BsUeQv5CeQVGL\nsP7idMtIsEJRiA6/CVnYQwY8FrpFJp7qkAkZxmBnTlAq/2yqdTzQnlVt04uz\nvLZ2iNAlBoWJCrt4DOqVlovmU4F/BKQ62DEnkB1okltPSlWn7cMmrOFjPQ64\nARWsUPNR8CgYvuExJVQYxT1ukPxqqJ28lDSjrzFdatfQUkvKbueFll27cVH1\npubrTLJPOCzAEtbeFSKSLrN/TJxUOj5NYA/CGgaoAz5jjWxFyfoF7XURu89K\nqhBGLh/TwfABdCgwm2OhSIHxN/aTuZSr4jkQzjH8CReTMqInQMRXzoMH2248\nFJV9MjeIEPvuBokGEdVp4jk8bdnSoW+5Yy6weZvllIT0GIw30eKibpvOyUys\nqfoiSod1s62GnvgaxW+G3Y2pPR7lxMv8jnHvnNUXsrlmjZjxp3tHjYjGd5TY\nGqtK0stDLLpB4aZ16wTA6UlzfS8mlEy1ZcRkZufgW2jiJhUxDsvIY5I8ywJP\n+FBu\r\n=AM+d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIPkFwjkc04auioroEgep+CqMzW5JUIG3rhBpHU0cQqAiAg9iw1sOUxl3fi5QnE1NOQ5U7d4YKy2Hw9P933xswR2g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-8-2021_1625703396193_0.4944741014527838"},"_hasShrinkwrap":false},"1.13.0-next-1625762188000":{"name":"playwright","version":"1.13.0-next-1625762188000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1625762188000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-sKHds8U4bdCkKvACl0HVffQHewKGEKrQ4wsHzQDVtzwXl+Xo029BTB2JSOOJ2wBtum9+sSULqu5FC2HZXX+AWw==","shasum":"6e3a2727350cef792925cfb040f3ec91ea8a3b78","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1625762188000.tgz","fileCount":261,"unpackedSize":7616845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5y/eCRA9TVsSAnZWagAAvbgP/1dKnTqT965l6/BE5O0S\nsz7GDEzQapgqTi7aQGdLBtUSUzJ+P5dpiBnPpTdP23qgL1Vsek0wSe8M1Z5s\nyEj8WDwfRGDz8ATDvaTRFUKLD2+qrcGXlyyOLVatngN2NdnJ24PxLO5ffXfx\ntBuOlrmthVNGhS8lh+0SaoS58VnbDeSPppfudpkV4uQfuE3jiCaiI9OnVMG5\nJ+awewQq3XH1BEQ/wvEww/2xcqSNtBTkSdZEkgCJ1BS3+gjI9hGz8zVmIDdi\nnyHHRuG155IOuQV6M9QSduH+sxj/u+2cSgZsW4lfLIPIxymlCRB0J8G4hzuv\nUUIeXJZIbAk197bBxK4nFqfLf10mvpzgb+DlvMfYEB+1en1kHgsAft7qwpLX\nqv3RRZ36E5ihPT9Uwatk6i9Ba6BhYCw1KLayWqHDAjOng0IsHkhgDUveUtae\nr5TNLksze/wfoyDtoN121nSxwRplwLKOwzaXAI7PnGese+gewMlh4pIlKWrt\nwzndHwAEg20/z3VAcomkLxP3dQHVw+0sl4njUreVJVKTZk8/W0WfFtyzmQb2\n6qnek3anODHp6scIz6vE5fQYhWJUCOKMlFzAlmhMbM2T62BhNvuL1LTR16Th\nnjcGF96yrpub+VZVBcZrk8AwaJDJHxazrVLtLEieA5erwiFwrNJTZFR/YNSW\n655U\r\n=bjGK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkKSB8WvS3ZACJ2ebhdzmFk0absHT7gS3uxzXN92LJWAIhANTzvxHuKR8lzXHnqiRWWXs5f9gh15HNmn5K8FHD56I0"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1625762188000_1625763805613_0.4797907304571851"},"_hasShrinkwrap":false},"1.13.0-next-1625774143000":{"name":"playwright","version":"1.13.0-next-1625774143000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1625774143000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Tlbvq8gMzxGdf35OVdEbflj+7ae8/esTEON6eNZj33pzxtOfahryDsyBG2OqT7PN5Lb6pDg+9YOotUoEvY4C1g==","shasum":"4b7044a1e1420d35f6e29961fc7384e0bc9c13fb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1625774143000.tgz","fileCount":261,"unpackedSize":7616852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg51i5CRA9TVsSAnZWagAAO7YP/3aPns8NQ/iV8AVfSktc\nCxXf/V0PNf3mOLc2hMU74k4X2ro7J9gGngTuEKZjDzT2JZmCWl9VBGn/k6OS\nkxmSfd+E0VzciLGQvvsMwyetUMo5QMW814X9apKYgLvQp/niGyD9wLfrbcxM\nAVmt1jxq4gd5tDPUFYqT0n+v25Ss9Y0M+VYuz0nNaIgYQO9jHOJu4getXuHt\nQbJJL0dEgtAFypbC8bpwwSbQ6dzkSZHwJbH+B3i88qy4tCKzuc2Wea1eneDR\neEdE/0goDKV80GfdhPF1l5uoCy5JJCiP+pWx1sGyQExZObGyf22zlmq30RRV\ni54ZDyXAfhiXQdGZ95zpbuAkxYDTvm9ZBvp7rM8ug8ZvOMNQ4uVPHzFMrUhj\nxbAvbbEHwKJF0gdMXyjYzDBGh9IQSeAQPG8IVyKXEzrgx1rs3e4kvWp3OQCl\n8+eRxDpjsST2sMVujDLEi4QGFqpr9ejqgUfia7Nv69ELYJNK+zWziFwkhqof\n+8ajnUR1hhUdM575qb0lYYijMdFE63s4q7a3e6Ek7zVF7FMGlazsG84XJ8s+\njmV6OSIYhzP7CNcqGJNLC17xjetG/11WjHsY+DM3bo2RtFI474S2/GO7mHDa\ny14aujg2yq4bVMQJf7r7QNuZPZlcA+BN64CnGOY6XpKNBYWrxzCOwUPFyPzx\nzHgH\r\n=GyVR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjDSJnyZ9xyZ0sFjVpKSsnZfcgwzJMgQ2M5wWSh2roTwIgdKduWgWPJBQxHwBPX/rzG3dCP41VfmLyeX7xUO7qCL4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1625774143000_1625774264980_0.9981604641364374"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-9-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-9-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-i0kholvM3gsz3pdJ4yxSKgr5GagMHQ3x9D/qDCPDjpfrcspAj6rWfPUnO4UkHYJiP2LW5En+P2aZXCyxlGb3Jw==","shasum":"222fdada512c1af27c099fad3c303aa645b2f346","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-9-2021.tgz","fileCount":261,"unpackedSize":7616855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg55VjCRA9TVsSAnZWagAAttcP/1AKNUaSAR8q1bW6o+7O\nywxFG82YjBF6Q+Uh4lCOg4NN4oWr92KOJaqH4Ca9GARLgU8mao77VjkeFUgf\n1Kgdf/zSduoICrW/rPAEMODlmpp0mKuTAG1HrMHuAQ3+sXjIeOAlwqNNqknW\nzwIsz+njfbgHto4VGNB7KXqw9oYrG8c9AvesLM5dA2PYnbMk4FAGYhb98441\nnETLgfDh0Jh39gd0UZtG0yZ4upNMp7K+Cbpvat1S4Dwbvdi2uOGrhSaGE7Ds\neLL0uqHh94jIiD/rJ2WRdhzInrANbAyBFLqZt9xGA/pW04+iKl6gywvphW0T\nsYip7+UpzAbZspD/8to2mm3K4dXkInCHZZiUhxIueKmIo63fSuHd2CpipB03\nooLLV8xGJOFS9qN/xGSsLz12OzDADad2J4UKN01PDkeY33TI8sIXlVE4BokL\nF+vJeelWY4XNMwtN64UR2rmt9pP9V7hEeeaVkvq5Xdrc8YsFPuB65FNtTFSk\nCBPE+bGlmx7WHaDQLoDoJbFKUYfWiOuRY9xCj0pnfT+vupX/5hNAxX6ZUYGM\nBWmyA44oYLrW8JSIloTxEIotx25pvS/IXKdByPao12QEevo46242OzM4i3bd\n9fdgm61077rQ4bJOvL8brGtMSYlT/v9N0jXxmAYlmd3DoCpZtvRgK9gcTs2D\nUlXq\r\n=fn6c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0bnxuYEHF1CFTtA6SlpVRwN9M24WH/L0AHfdPEFVDzAiEAzqKgHjD1Boh5Qb4TPygnzZoyldUdIjHMpgiuV8i6u/4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-9-2021_1625789794956_0.22504644181370526"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-10-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-10-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-SFBqyHOsVvgR7h4rgyB/gLYODQ0TyQtl5EVbN9XdLXH3ZF/L7OdTnek+pN8bsBjqyVa8K7wi4X3twU4lJWQVcw==","shasum":"47d4929c86ce1e8a69c64990ad368259f8c9476c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-10-2021.tgz","fileCount":261,"unpackedSize":7616384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6OcOCRA9TVsSAnZWagAAnMIP/RdWo1leDjwl9ZbSCGXQ\ngqx1K3WJ2G6Vg4U8UrBVuA0F5pG+FnoA6LPxY+8s7B0iDPIo4NRU/8oUbmf6\nmwk33Q8HLnZZD+fHM30u+ic1YjAtQSpYjxUiraHKpTSO2pJkkCB4aMRh9hSD\nqI0Kba15OFWjWDyDAwHv164CJ9w6Ynco39p0O397l1RWGhy3cxEhS2pvu1Nb\nyMsnYIdBJf2yUu64JLiJJveAg9FqLqDxIT6u66camOF6ZQ495koe2gOLejzV\n5d7B14WcmftxhU7LLfNrl80cVXZZ/itJbNgCLylydX7GeeHyjdagjDrnicpt\n2kyTGlXzTaAtN1HJp1FChUpl32J8pbOdlKUSTiO8nmS0fkeQxoCY9KGQcKkK\nIEmxLmUI/prIt42RDKr16njyeuFZT2eleCBCLASelXivYgl5AzstSmF35GTc\nezhMkffS4JrkI9Qd43KrXsM0EKsfdhakfnuvV5GZGgMOY1VMAtm7broMcDtQ\n4OQcQHGDRVm2MhJRJno1PbZ89RgSIMx8j6VuhLfzPYOb/QVdSuLHPwiHjz1Z\n8AyE/xSCfxnfa3u0laRykuzA2bVMvLg1+cOgFTjHLxWB1UJmKaefZl47wZ7g\neE2bcHr/sygBhHawm3M4YUb4IdEZ9/QsdObKR+slqgd6XmoBhMLpoCikHnY3\n6iY/\r\n=mHDZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBitSfpdN+Pg1NHQa6fPi/BV1AawoWNUK4bzjMzrycxgIged534qRg4c6Lbb+p1ykscWnVCvvtae8GMk97/ihmNQM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-10-2021_1625876238078_0.6450037403477789"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-11-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-11-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-11-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-RirpR6XXgeTnY3Qy4Iyh3E0iMTWy7d1EX8758HMuJWM1uEIG/QTLVCRPv8RgDa12WlA1C5islk25nj12VSxJ4A==","shasum":"4e5b929375f2f4a1359b1518caea0f2aba24bcac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-11-2021.tgz","fileCount":261,"unpackedSize":7616384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6jh2CRA9TVsSAnZWagAAXjcP+gITMuHg+gp6BI9zDa56\ncvoEbl/bWNQvTwfaznOXq9o6lG3W8UVov64srC6RvlY5H03oSs8u2mIRH0GS\nhsACdobZ40sdDpHU3igR8qsRulLvaKJrVRuJhgzoKV9rV/0Lmx5uBhnK3slQ\npfDqbCwa5YionY0rQDERK7bobjCcX54JmRcQgA8fVeaRay3DAA3WOCq3OXX7\nSbp5CLd2+FO2LxbYlTRO7RDFr1OWYWwILSjZYdrgaXnrPjc/HTwMghBdEGL4\nqQjWqJJi5utFA2uEbiSruQAAqaNLVKWWczw64N/KQFz/CumbjYadSDpHQdsa\nkLDJycXY4VMwdnh+3fx/p4DYY/+1wN2JnyQWJwyIJsrIvxXngXjLAW/ASaht\nZxQFsAgSuVrPQcE0sZzfbccgBD4OjlTILVyLtVo+KHykVRUzMNjKti9CTuBI\nZGAJFdBR+zje2aVh3urqQSIlFIqKXe+/oxDvezWEmDtoK7l8CLTqoJNMrSbe\n5A71t35vKQLvgiA0y0qif26Lh6nNu9SFXaSXpdMFale6MKovqzyLVuCRsc4W\nVghk0jpRklv1ffMW3NiUtPyt5pABZGfc5B9CrHJFcIecm3Cf9VqxbxEcLyee\nfGBmsiC64WL5o+eLWuiTj6jzNglQ/nkMCuuS/lZmHmWELFC3x3HqCzKd6urM\n90Je\r\n=/3vE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx31J42nFUB4h4jaSwy1qq28TIO2xCHCYStVQFyT9e9QIhAKEqz84/cWM4IkIWb633TTGlouNsTMxIXM7P9JcOORjI"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-11-2021_1625962614259_0.3354640852198465"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-12-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-12-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-12-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-hDKl6t7lARUcSyPgTziBmwCWy62UUZot/6uTfErY6bLEfxcSsqVF1By6qWmEE7CE7PpLOgjZVa3B6hQg/Trkew==","shasum":"f46c628f00b230b935fb1010814404f11d866880","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-12-2021.tgz","fileCount":261,"unpackedSize":7616384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg64nqCRA9TVsSAnZWagAAsHoP/3ktN1+Ke/0mnkyZ72Ft\nDzN1+uYOEX8dSTmZSQNXtMo/xpIbVsPkCr9YPl0pSjnzx4qJk2IvDX5IzWlu\nsvbkZ3RfRpP+eOoPq0hDkSMwYaomzC1YGEUvVOcN80JwSHtfoNvthM9zj4VW\nzRfTVOK74FWaPVWRxdYB7kxk0VnR4VGc22p67U2jbOpQRYflgUNxuQgLu6s9\n+2TtTMKiN2vDxHU6DB4k8ex/zenzFAKP9vdgixoForjyzr5d1xTvz3Adnhax\nEt+6PaOmc4NItdrQZm2GMaJL6AMwrgvPoscbrCW/WqAuVKsk0syuxKohsT7E\n3abvnEf1gTitnaWqrvFEX4Ph5XS5vvOK5FZOjoit/msRt5BHPHkitTFaFSNy\nkX/tJ3y4eg1XRsTqkGzr4culDkm2IEOUD+0TAAlHxOelwB+jhDGlqy533qvM\nlpZL4J8c6Mo6KTR0Ifh8gUSWqLPjP7JIIrMa6fRmGHa7CDNLQyZXBBm0SuGP\npUorokOhPg5clomcZ1AyISMfgtQL9W72xOZ7Sc1Fsn36gXv797eEd7W8Oe5T\ndLPn/Ex7YgCaKyORZ9XqLKqYsEh9jzQIuoQaBsCxUisx5axR1FHJbKAAz7xG\nmDdfA/TD+003tlDtf+AICj1oxHnDmgxpkSlXfTsNHnvZUAqO73+/9W6+5oJm\nJuIv\r\n=XnCL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYkBY6u5m/fPulImIckpNfXudIAHBY0IDN497ERToYqwIhALWgr+VwSJhiDQrWZVz+aXj0Ob1mR08RCFroqMhMruNT"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-12-2021_1626049001896_0.7251505400826417"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-13-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-13-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-JSSJLjxrQ9kBl8Es3kf0xwN4lObfOrX88mvWd6awxBNdCdLVBe9D4eWy7bpLWgA6J03j0/Jxsf3cxbx3W4EmRA==","shasum":"17232419cad20963555b8041198074f742aafac8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-13-2021.tgz","fileCount":261,"unpackedSize":7616652,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7NtPCRA9TVsSAnZWagAASuYP/1PqhGkoYus7bEQRXJJM\nTFwgJ2AvNHR+wEe1GigSLM7amV61kyZy9OM21/KD81LtcPAF5OQKX59TcEc2\n1oXKfVMoMqRjlqusSTOM5RCZiSsnTiSBeqJWGqVnq7FhmkQCdVtcSZwwcxzj\nT5Aj+ZS1hJqOFaXaW4CuXv7BUmoIR2y+hdQuK0VakJxl/g+iFCQHNgwDCB3F\nHdYLeGvi3l383Arg2aWl9EKIwW8vhaTZX8dPXR2G8eLeHquBdjbgg8Q7s7Vt\ntG+IRFA4iZqTvqlosDNFEZVJ4CFdop2bGd5R4w8UM8XivY6KuJ5qYln3j6YQ\nK6+8526l6ZzpR3NSDH/YXtCEBDgPgDEMoRm4FcXcLq8gwGPozMxA3Qmta2hK\nyBf4UhJvSJCAjdBE3RXtBcR3r1ikGvSh5GHVxNNTHBX5vWmB+eUXIwt5Ox/+\nuDGzVhR0JRwkoO+OMByyyX3CVdsaBciw6SYgk9AK2NIFCO1jbXA4NlfH8HP0\nT6a+8uyQ1BMMBPdpG3Y/12jCuAXbcIh7KoXviyjEwkppmoR4rw75MnEdsnf4\nd/Pt6vT57NfPQ0r2WrKXHtwpGf7n0N2scPF7oBwRB+6u08RxqSw0uqK6tRwR\nApWnyEzeJ+9Nt8h57m4aBR4fiockNJsdjxv6SwIxIktxGANJPOvnKjXheC7P\nCjaB\r\n=qNng\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICuQwUb03xCEiC99N1tgbz0ivtniwmW1Ne8fhEOtbLOdAiA15kmfr2ipzsCpXLYWp2fx1QhOWhhzBh0ZWzLeMaxfww=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-13-2021_1626135375277_0.17516261414621992"},"_hasShrinkwrap":false},"1.13.0-next-1626194864000":{"name":"playwright","version":"1.13.0-next-1626194864000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1626194864000","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-XYvfD61+KPcF2BiXbemWbTwyM44jiQjmFuF6LaqwCD0IMoH+pbcZYtSwCQGCHTLCnVyCH/NiIR0PJ6X4DZN/yQ==","shasum":"7dce9b0531372d3896c0e3f7374b3a42d4aa2ad4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1626194864000.tgz","fileCount":261,"unpackedSize":7616835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7cRICRA9TVsSAnZWagAAwSsP/jwzAzrfaSu69KYdHh9Z\ntLlS5FuvXTclIugXTpJOZ2/nCpzKKTRcOEAfI7tBb9kjS4eZMsmGnc/NYuBL\njCG6nGEfx1sXoar/ZMRMk2xnpkF1YTcrIc+hjTaSao7Vd+9B8dPCcCXFDHOZ\nvDAEmLpKMBbjQ4mqVkLgxxUm2K+GLdY5TXid6KtB/Zkl09mk71NJCH17lkF3\nFwe0BbqW3xvYxjxqRTvbjQ4F2mL2yFzFXCaoLDYU1vambHzvgWWrkyyW0Gwa\nmov8LYJwrholWdj1W2KTdZQB5Taypu3LVeLjJzMDsnuKeLCp0QhRt5s9vLG7\n7eHHqR4sCaKaKWGSp3eqek0+7s6Yz3wUqdZi/58brW9OCbviFSPTghTLFGsn\nHTieT0bIxE33JdjxNlIq/pmLECiaxtGYj/gPYr20CmmU1B0E8gYc0VkPm4jI\nkXVqUFdxsiieqSrqzeJbYEP74uU79ZWzGG+OAZz5hzfKEIVOeJoLFiptqfQm\nq6xcW8Vgps/QUPxEbq7+pZlX/nMihhSC812xC6n/uZ7ZanOj/1hBkMB4MDcp\nYqBD/PBxxMrpxMJ2tbRsXCMAjYnS17B59ni6kt+dgS4V2IG1iKKypXR4seKn\ndFbVKEGlMOY8uMcTzmrPk0iUPZLFc/Z3Z8vDjI+YzwvrgRVGywa4tDkx2jQP\n689+\r\n=wg6U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRpQoldMFhOMGDxsUAXliyYrvMtrvAeWfvUjphmOAwewIgDMIZv+80tiWcRKeICkZ9bY4YGhTyx7ATStD1qz285Q4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1626194864000_1626195015775_0.06419573040514348"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-14-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-14-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Y1w0R28uXJhe5qXtelnMi/cq45qIthN5pk50aAvFQb9SVuCjmwQvXaRKWeqQTv9iS6Q+h2wnncOuqBJKC5Wuvg==","shasum":"5c069a735bef7073ab973ec1634811e44749f0a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-14-2021.tgz","fileCount":261,"unpackedSize":7619175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7izKCRA9TVsSAnZWagAAOT4P+wdDwlUR14t8mTMDVMT+\nhoEERwLoAXM4Vvek08mSQtEMJ1ZGGftOUdQ8s9kYj7J4OUyMYef5DR+HBGvY\n4h+bdpFMsyqJS+c0754Pj8NlMn7x3GOVAFAcbuGjgw9sLYkHBefaBW/GOxZd\nVqVkp50hLQQpGb9++hkO38fqOp/xrPHzQGdICZNxPaGyBvUj0Z4rioqBbFA7\nIa3bWdB+7AvdbZbMwQy/2gipIHRIMFMckiJU0Avz75tu5vVDGHq8J5UL+CxA\nm3hBAmaAy8RxTFO2NaDomSxIDIXg7Lg+QiVAjwMpw+pCFVVz68KiCTRFwTyh\nDRR7UU124iMNwFuIeW+Q4vBxM40PyN93DVP9szWnpSksiV+lNxdaew6yvBmd\nQzYiCbDl7SWf71sFvB6G/Ah4Ab7SEGb4EOi/LryeDdTQJiKKBD0cHw1kv2p7\n1lfW8XewrsVdHK8dgeotyiT5eiDsBwT43fpXKrWzLVY13KtkB+2NPdMpteD7\nFu3Lz6do8t58ymjwzm8glxkUVuy8SLerBJkdAGlPCR0XlZaPMh2FUflys7QW\nSztJ0eVFjY3HOerbQ/J5Fx8DNup6fxjqRm/XB1YIB4cGD2tGZGfCFs4HU/Br\nCM161l/Gxg/tYzyHCuf974qJGuT7svS8h7ooxecbpdp5ckLnGZLlTXZGPwL3\nR4/O\r\n=5V0I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcvQHVIo6Ct3gjWq4mkcQz3Djt3qfpCWl8yPuKcsdyWAIgB3ZLzVHAELlfRU+mRykxv/xcF7XWllccBP7gP5IDdyE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-14-2021_1626221770306_0.425818538208218"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-15-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-15-2021","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-bu/EyTQhr1XlRxAapNamjShKFoOCcajoPL8R7mEylYrRIJmKp7124dPAWLHVAqF1ghSNySwAyuifwp/9zHbiNA==","shasum":"984ff48ad5d5da096e6e0af46f359ad54b52ae27","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-15-2021.tgz","fileCount":260,"unpackedSize":7619056,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg735HCRA9TVsSAnZWagAAVr8P+wfwKVXK9hZ1lL6DPvY4\nrgyfZ0XBPBUpjkXLF2DynwtbfXsmwZU4JKWbCsxqbSQ20frgSjiDqlRWIFBl\neVTZBMbvnq3gDQNUtJme2bQWi9zBP1l4EAz3ZFEWGbJhiExYb5X8md77Lp/q\nypuOHGRAjxE0pbe6yF+1kwVJ8InggQbgAdVvJu697XfEvTNKTs/57eL8Rm+a\nTHlZvCPgiIqWouwYPksyzjG8+ZPQsPNkIWb3mBcEFlMwlBl0iw5RZS7PBCR1\n+p/RCaW9aEwwafYJ+WtwW0AyXYqTSqyvFD4mWqPTt2/LjgvLQ1tosJpfeqUt\n+LWkpFYQzEyBOk4fjFwOADFHnK+tvk1mga+XIedeJjuPSoEB4jI+UnsCKQ9c\nQLYufWQnbE3jq65CshBH43t30Yfr8mgdy5DqnsV29MPVvUCMtyU46ltUc56J\nnYFEeyhkEcfxNLqzOG05OadyRVG6FIJodWQUZa70ksyhJla2HxTmphOTSXXV\nOrXX0wlg0DJq8Vl8bf5ZuUyVcsaFhRFx9Zkh/0TsuvSJtxxMjeidE5uYNof4\nQAX3UMvhgZ6RxH/wsK4AdHV5GYiLS553znv1glKfzqmOoD46h6qxntGe8pb0\nzXtzQIOTRSek+Vk3K4ixU1lOBkqrvqquGioBGkRQGSSIYq3D+Ff9in5ZqmOP\ns5lR\r\n=uJC1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIS2QehluF2nDAc61RCqQ87TMXkBsaquhlXEa6Xu61jQIhAN0Ik3ImQ/KDPTf1sIYdaZX5iLm6El2H4TTmPSoPYaZ+"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-15-2021_1626308166795_0.890719126587014"},"_hasShrinkwrap":false},"1.13.0-next-1626331329000":{"name":"playwright","version":"1.13.0-next-1626331329000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-89.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1626331329000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-8sSKY7KlqavicIi2ax+JiVq0XHNw9yvx1EW0uoaQ+w//6QkaXIBI+RIxFvIG6MM8MmnXTFWyIdEO+LaPou47Hw==","shasum":"d09313ebe52b5fde251fae0381c4059cff1d228d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1626331329000.tgz","fileCount":260,"unpackedSize":7619274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8CgjCRA9TVsSAnZWagAA054P/AzF9L5v4Pfa4X+XwUqz\nTSTIh4l1XQ/XSeQ+yIY0kfDVAlQZDa+y0J+gtsosEcn7E1sViP+00Lywy5wR\n68UCl9622yRnoU9RU9nXcKENhoN/36FuyG+YsbTAwesmDUsM9fg6ur9KD/rI\nMUcKHBTc6NF8c2yZDPUusmiWQeEmJ+uhrRWCe59nKslwXY11d7EY6rZtQ2sn\nET/bjoZMwWTdtAD78yi//its4HQHkl5UEMmDdgkJCgXSlXAVAdYuvwIBzmzX\nSsyjAxxPSqw5ltOag2cdqkK7Ptl2kYY8djciAIg24b8k7d3RVd+y3LTURD3g\nA5fnYdl48MHg2q3uJJ/0OZ6A5XQ3TqrVr0lAitc+Uc86njuxyXCOFTe7BtR/\niVA7Ma9b/3kP5HbhY636V8x2aRQShEGFJYgg+yfzQHM7mU5fb11u6Y59wmF4\nkT67PLzMZauXqcbMkeY/ei2xiJRvayly4yk0rA8qsAlhcKoXNiMngtijtIa4\nhxYjvsyhn5WBaNOrzVgxmqTwiB9Vfy9UabxjhgqQOpHghEp/GcVxsdLuW5Eg\n8ykYIbyc3G5ysHFwN2jci1yOIXcmPm1CnQSL3hhfXYwPRdzvCDQuLIoPJ/+A\nVUOZQD6mNB+28HVddcIacpI9EhGhSHpUz7FnQjUo2uqjUwfY4HbyR7BaHZsa\n4TBI\r\n=TeDK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBQy9xhOlLGBzwB8cP6kJ+qL9KHwM5pyL/ZKcboH/ztbAiEAqG1KZYADkHaiyYpMbY4keyq3HIL3VKsIi7Am5KrFquM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1626331329000_1626351651482_0.7350273887942491"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-16-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4543.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-16-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-QVtCKOP8jtywWaPBhT8dFjm1hBVHQZ/a7eKpqM3xoYvFIRG4YDMoYFAO7tzjwgcXvoDdKI3dGaP+oAe7s6NVbw==","shasum":"5f188a6ad1542ec61276bea85355fc402c9f27d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-16-2021.tgz","fileCount":260,"unpackedSize":7622625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8M/lCRA9TVsSAnZWagAAjKcP+QB8hYbvtKR9DXjPK+cP\npoLot3ig+R3nZqmMvQ5QN+pSB1AyROJPobHN7xy/wgn/dxbFX+cVEVKcBpRd\nS/zZcI8Ugai7MmX3jQPLOAJthwU4FBfAtG9pLtZVizJUqzwLrnsZ5i8+Bz6E\nB9FxSAPM3MHFbtwV9Lj31topOfREc5tOFBYMxOpfwDsYcqtdZs7Jbu88+wi9\n7zw7Q5SjBvmaUBaGmvEJ33uu2bZNVW7HQxXpTHn/7A21sO4BNVVcMnpjIO1D\nN9BrIpLTwaDJUGquWx0TobpuIg2Dad7r21OcIH15D6N44D9GKLE29cOt3NWn\nFhfhOsbFH1bA4ffI2icfVuAHeXdh3eYeGoQtW/wm8eYHkIg5E0XouGz6Juqu\n+WTDuGjtwIs16vaGFppJZ4D8FybiznIesN1YlYkNTmRnkfAAkheodJhokWtZ\nHZaY9eWwx37VgIIfsdLcUXTAkI3UwUYLO+DRPFg9dmjVmjb3y/yuRFEzxiwL\ndKxsRPCJdmNeeqWVLNytYOuaX2Y6ZoTZRSj/4q7KgPEYbqU9CFSScbj7Oe0e\naXLgpVHK46iwgzTN7zymVYnw4+RE/DpbB/petU4sDFHsvnA1p4rs1cvag/+5\nzb4kYW7oM2wEzxpeh4ZOnj6JHX8zaMVFRtSaGUw6v1unhi0EYMdSjKhszyU5\nU1W9\r\n=vXYA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDNJ4fw/zd7t2pKrFYbdBiJNRXnIdSbXTlI5ARCNwlEAIgZE3/IuqsXdMLDyFORr1HJEwfvSl7oVuE1G/S70XqrwE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-16-2021_1626394597438_0.20140265166431037"},"_hasShrinkwrap":false},"1.13.0-next-1626468517000":{"name":"playwright","version":"1.13.0-next-1626468517000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1626468517000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-KMT7ZurbZvxxGjg6bWV+q+SVzLbE6zbQNaIbHCDjOask0bts9o+MztFjUYkPWXQXeiFDzWP7OBVGNv22x0y0tQ==","shasum":"452825cff4b0dfc1e7c1af582934df76f1bcf4ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1626468517000.tgz","fileCount":263,"unpackedSize":7634616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8fx0CRA9TVsSAnZWagAAbfsP/A5rJIbfMRc44qF5Lm/w\nXtKYWlvCxGvubq0oJjXvmLcDsE2iwc7kxge38JufuznR16SgXVyeKLgLQA6/\nOwNQXUUw5e8dhVblasj/97xBs9JIqfEg4ZcaR0oP7v8U60aMt79lnh4gSNWr\nl/jAIBNeP4l80mhZx+MtWxZ62kQkk5eLg+8lvcE1BJdR3gjARrJs2Mx1We2O\nUzyKcq3rQv8NoIJU1QZVouvbKLi4n2eBQST5NY8SJ9IqvYVFqSPEP1JpdGOh\nbralW7obFKp/SJmjO2Yf98eYcpsvQNinWRV4i2+ejLBFPX0wEvvopGjYo4Ei\nN1Nwp+jvD26H01MvZ+acxEgBS7Oao+wLgeUo3k967scpIcq7j3vi2FxTbh73\nfXgpnFUhScHKvh6pbjF2TMe1WVSp0AaoedCOGdX7ksmNA/G5+QFyMu/KeCFw\nBw69FA+x9EWV2GxzAs4HY+WOWYC4FGbAQNqr0KoEyuuVYacias/brYID8/P8\njlMUr81FvP3Dy+oDI2WVErYlOPpF5PpaUJYx5tKoBSTayAtFoxelb6+79ZcM\nVPZGmkwNTt+tixX1graUNRTDPe2Kp49L5ff9oEgJFSjdiI8ArQmrJG2gm0p5\n0VKii8nNHIIR1+vmZlm3LW5VRPFEqYDapIaWXQuuZCo6JqnlGuC4cRBbsZfP\nc5Gh\r\n=C+cM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCqTlRI1201po9f+6e1kxO6H5vUal1w4eHBcN2TNayVAIhALriE665v1n5B09w0li+6dg+ury6sA0Pn0AjFAqW/23f"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1626468517000_1626471540584_0.9581016276762901"},"_hasShrinkwrap":false},"1.13.0-next-1626474230000":{"name":"playwright","version":"1.13.0-next-1626474230000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1626474230000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-+Vs20/jFUwaeA4tA45r3Aro3PosGpZCIf49io2+OKcHd4jJmr+JUvHUEWnoflmuGpOhIDdA6Py8ITtdLXAz0gQ==","shasum":"17cd7de5dbb9881e85286d77d308aed53de7d6d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1626474230000.tgz","fileCount":263,"unpackedSize":7635242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8g5YCRA9TVsSAnZWagAAEyIP/1V/hat21ieAXClBj/ro\n0mc6LIuqpQ9FvMdFe/ez6pAa0Mx2IvuYmzqkorrMlhH3lq10PqV4pVhMfWFg\n3KMTmttfWU2yIZgxLTNuHHfudPcEC4ji+Q/mEYFd2SEwcDJi2poh/v9nXEn+\nZFKe2sFGrjrWGojrvKrJQedaZQ33GiU6Su8SeDAWLsActwOB4hXmH3x5MgDp\nAL1pa5MOyYzouS5rAh0//nxaB5aZlyq/oST/sHm2q6/CWHV2EgYwOEZYISCT\n0AIdLWdxOQM1iZsPramn/9fe3196aiAAseRyHGiNKdKXouJJH1vTK1XdVRwC\nAiMLFz2UjixQ6a3TI2pePh2Q5Q8khw1v68i3WCLe7CmioMBTQrAt8pxVl+hW\n4MejDBkhEVNymjXUxwOO0FWfuxF0VYRY5LnTblBvMWkjVtAkphTD/vkPYSmV\nFZHlw2vjJ4qhY9HxItdaucMY7nIDKn4I+qGhKbeOZu7WALoO8KR7Xnxyr4Js\nAk5NnuJn169Hi3kLYrUE2J4bpz0ghvd2gMZJJ7InyLqmDaJiGmjR3PqfQDhX\nS4cBf2YLEdAFTmOn3I5KHfUtqurFna46JQoqM3PXtXfTISt2MhTxnsm/8zGB\nv2WZ1dduwj7VCmx0f2xm4yiRWW5QrJgHOoMf8QtbYj5qtHC4xJQspHGTG2+r\nCvcm\r\n=qzjI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbAXC3yE8Xj9VANQoHb84q8CFdomlOHMB+w+3noa1fXAIgHMO6hgDSPJ/h2oyw/XHQy++6+/9Mv3fmyFHGqhIIDjA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1626474230000_1626476120102_0.3052955745280874"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-17-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-17-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-mLnmOS9WhX7xTqfTfrWHr/bIwaM8V37SlmgQIGrEbBLeTsjmajoY92fMiAFDrRX32upBgkuMY0BdLy4KrzHi1A==","shasum":"ca1fc47bde498ac5561a90b0b68814a0de72eb84","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-17-2021.tgz","fileCount":263,"unpackedSize":7636205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8iF0CRA9TVsSAnZWagAA8HoQAIeY3tz4ru7WPY9cvq+o\nC3hvWSXqXezellvtaMi6B8ICsfL9qrHDRGAtqLTNce+9JOUHO0DKaDdgTcSw\n6bpH29NNrmpsqbny4RuKb8kx2kiVrmzD26+pjqxBpx4q362udKwb9gw3vBnK\ndznafgiqMVhO3ozlivHaVWcBYMoYPn2CZxPEZOryqYgxl2cF9v8VMSgPyMBZ\nqtTJpjEnrxX7Hdfix+uJQXPeF0W9MvoeYIwFshKC+SsMRmzMZBA7oukGG1Hv\nHFvX5nXx0PWtJ1zTGV8lAxRreZ1lhwmmwMS+sbZH7aRie7lxkP8MJCIAFOwv\nj3cD8HrsJ+uKhb1SMga6HaC++vaKDExW9fDX6mwx6vIXo2YL96XOTPZWOhzN\nnHLWQVrtwSjl/t5ajSoXzTyzwyuGxoKMhDqEoQcY2tV8xj31fhFjpIOiwJhE\nAYF1Oc34qxmf53QeK5tQAbtyJk6YqZ1i6zGCRpjBbZ/yDkL70nRMdGhoydzm\nzaHR0WWFsPwui/CO2IhVlCFuAEiEdjXTTbWdYRzLh6badwf8ZKEs6WNZ+Won\n37CU6zzzziFNJyDZVnH6hbEt4ikMbVyVcwUkUsn+wyi+2XGs34ajTtYSOLLO\ns5RYVaf+FY4dSeRv07VXRuET0tEAZiakeMKLC/G3MVypVCJVXKdLhiKpOeuA\nLXdw\r\n=Ft11\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICfLVwoIdYIs+c2TF925wv/QDAsVxf50il4Wa+2b8LbOAiEAsh7qfU6L9AU6xLtCKJfuBgrn8maKtoyVAlQH+dUb4J4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-17-2021_1626481011874_0.5984822194603796"},"_hasShrinkwrap":false},"1.13.0-next-1626500095000":{"name":"playwright","version":"1.13.0-next-1626500095000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1626500095000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-tkCAHAKubMXqWMgEol4jJMHuziqeW2e3/lqDe2/58OASj80/Dx9vaSmMqOWCejnpBrKQAOnAg//BzQ/Q/25KjA==","shasum":"afbee07f0780f45e2c2862dd828907f535748c73","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1626500095000.tgz","fileCount":263,"unpackedSize":7643444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8myOCRA9TVsSAnZWagAAUsoP/R0uCAOxyY3mcSJlieAQ\n+IMrganH1aDiijeQY5DzGCtiTDiMswwNmvKnZj2SgdANUj8B58miqWlScUW8\ngZrquZso9speZoftwq3k5TUOSjEm0Z6hLcZ4lHSwlWQRjul3luNN4/GDKZdd\nrBpXY9OYuhNnk4lLE3Qv5U+a/FwEPKIIkShySznyeqrWOeln8hfWLTKiuZs6\nXYeFLwJQvkjc+3YitbiQfchet2L+UzWOXuNO2Mk211uWSoQ0BGo4ijz/qtL1\n5h8TcebJIRDlUFpAEmno2XDH2cZyik0p56joeHQpUznu+lRFEbEzzOjvlfQZ\n9sh1Wb6qfsO/fAzVKcUSyX93bJCREcMmvU5NPDYtfcNn8E06Po6Q2nhXeeEB\nOtjjOcQCl/LT3yvvJosRjUwK1kurdbpK5u2izv5GLtrH7wSn3TPjYrTwpPVC\n7Qo6C7rtzbHLb6j7gRGCDqKnPEFOrUBQ1kqeCZo3u6FBsC703IuPhnKHOgg6\nDJO81IOe6bQPGQA5VpNnhqL7Ve1ytt8GztBQMIuI3sOr1OKVJhy9dXHtT0E5\nL7C7IgY+mdpdVzHud3xHsQwePHIxbnLU+koSl/zSXlVg3k34QxCc7VECuisn\nzzCTsIJMoO+K3PGKyke2Fp2xseXzCi3VAEY+wp0JEeENm6LMsdRHZrcTkxxE\nuWdn\r\n=UJvE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUKeUzsWtypvO4GkxX5pzmSbtgVwCCoArmIRrXtonoRAiAV8GW5Kd5KnwhDIp0Y96dJy5dZ8Ni8C8xKP3HAQNqhgw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1626500095000_1626500238560_0.15908885231534686"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-18-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-18-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-GBdXfyg6t+X0Z4PMQmRtSJYHx8t+1qfXB00AuMJZtN/t//7mR6+OM5prC0TUYw7D3Jfy16BAotJN3s/qCoTX/w==","shasum":"3e5b269d51738b82320c8ba75e8828d9e1258930","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-18-2021.tgz","fileCount":263,"unpackedSize":7643448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg83MLCRA9TVsSAnZWagAAc3kP/1F9yS9a7yypDXDmGwC0\nkBlG7fNn3oi2+BG1gzolyPs0KF4SpGYZywEyL5zUzGtJz+ltOmj6U2kYAfQ+\n4w/TOW5uZn8zy8PGxRwnD51TkXug1W27Tvy++qDuzXCGjF5DHBTQY7Xk0ocB\nqPELllc2jXx7ofBik0SXBr11BdLDzPLa+UlkezM62EX+xk9OhPoUHNZbZRtL\nvRrhsxXHDM7SINc69G3AAviCUEZIWK9UvsO/gh0C1M4nhHJcWoaIO9Q0CaA8\nbB+qPCC71/ln9AYeHvXmtFM4j4tChQH4GtIjg5h4Uto6hfet78FWYLzddWpj\nZVYqb+ZGXWk0icLIUybn0meSqphDeukrk+ZaxedTR3iEMuE921xIq0VCaVU2\nvKWdEcM+7ZGzy+Fy8QnDHzOIMg9xPPDvH7u6JncjHMmHJZlyQ+6WFRQYT/2L\nPQ1brbL1EbIuP70oaw3kJwDa7/0EgHeCiU0VeU+s1HToxtVcDAhoNYPXZ96h\n98mZA+ZkuV2GPCH+70Gp4Feb3G1UqZ6bQ5AX2fPfLEeKY+95yNfz6CQouK5Q\nVyVIxKcj3rGMj6bKuxQm6QH8++GuB++wNwx7k1QddHLFt2F0agH4Epv8WMDW\npncN2rizPE9f48CWOy8p2RKyRz3GrojsoHE+7BtWWFQlxFti3COBy5duAca0\nFe0B\r\n=f1TQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQind+0TLwayKWHBLd35C5yGBCXAVVPMc4DVx2L4Bm6gIgTjBo2AJfLgFGlGNFDUa8IDvSRA1FV8jmsTjl9yxfEVQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-18-2021_1626567435195_0.6907005757540672"},"_hasShrinkwrap":false},"1.13.0-next-alpha-jul-19-2021":{"name":"playwright","version":"1.13.0-next-alpha-jul-19-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-alpha-jul-19-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-4T15kjFtB2O6vF43EbYJMFmnCNHCsjMe6YT+FQdMGwlYketXO1zKtEzPHLW9Rt3mmTd74lAZlPB1Re4fQ6hyQg==","shasum":"09b678e0a0e564db40663bfc23146dee2e58d45a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-alpha-jul-19-2021.tgz","fileCount":263,"unpackedSize":7643448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9MReCRA9TVsSAnZWagAAJx0P/1LNrEYAd7NXH9TsycYc\nBEPb11cbQllFhub2AsHJd5mBqUw7+ysJlNhV/JpunKoqM/zXlCvxw/ckoSwq\n3stEIdPqrJoscmi/23A4Ompo3wZWa6GaA9rUL9ZkKlmniL0J3ni+vIP1G0OH\n7ebRyVJYl6b2qXPa2JmgDKNqv1IcQG9lxkmb9pzR294C6WwonxesygaZcEFp\nVpbHrEptLgHYTvFkO4i0PoZhcruM/EzRwx2aPjGb4/S/J3ycYE/y9nhhv8LJ\n/6/94t4/8vYhnEI6aAuarAUjPLdDiltxxslcc8IKiuluMfMetFucOwgUL51F\nOBkHydmqj6PjYqCV7mjIGqreJFOXLhLVHPHIv+DZXtTPutH95vD4rL+R1iJ6\nr0vfrXYjyGxfZ031XhkY5SxduGfqYKDv2oc2y6XjngMlYBAkwFizR3fdZrma\nRy8O73q2RUquJ7NVG+i0Aq1S3mptt5lTlheVbvtbYmQ/OE3ZATiKctaiPiSy\nbPLCWuBDOMNYLa598O8f+z/Ox1nB0pzsDqCRiMCjEFIbgBNWBV5XeYDB48RM\ng7FwOu+sj667vrZMxKdsI6qgPhW4ZoxgTfkzreEpEQsjYXgkR+Ic/YAGwP1i\n15lWffja5ljH/5I4VLZTgoe86qjbk/CtUERsvB9ECWbtHpWnBzDrrQORGzhS\nxWoV\r\n=vpvM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvw5phl4qs/9itp7aTtJCcHYOIehGQShnHmG3RNlMunAiB8UXBds3GdbAF8+Tk9WzFDvYVDNyjM8sKO3Ga/SmgRrg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-alpha-jul-19-2021_1626653790278_0.2522843810117015"},"_hasShrinkwrap":false},"1.13.0-next-1626706866000":{"name":"playwright","version":"1.13.0-next-1626706866000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1626706866000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-/EKcw7ZZUbLKzjcDhtg907OPC50Y4I+1oYs141M9UI5VS0UxTOOh8pnJAqPbvauxku9N90s82+bIRsmzS4abuw==","shasum":"3413bc9e5793ac278e964283314214022db226a6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1626706866000.tgz","fileCount":263,"unpackedSize":7645370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9ZcKCRA9TVsSAnZWagAAveUQAJwk+kZ0mcLsIMjRL4w5\nhIXT7V3qFdMT0HJx/otZj5IBNKSNbnALhQp8GcJuOfkdBcQ56zwtULiICd08\nplPCkCar6dH2Bem48+KNDSLtAq1GQeamK6WrFBXB2CA7G+P5zwgFn2A7ewtr\nKgFRFocH6+SKb/SAHgVlBUhg8b0Uusn8Ta3rAdiU/c8K1ieOsyRCL/0X3l48\nLYvF240+W3+/GHSrviDOdp5PzU+714EUppxGQbHBMyS71Ec8qN8QFdJ/RkvS\nPZpwkRE2TOpqd9bVtqTANR2s5K6tZ9tYOPR689pJ+lGsW7a8lCfeAfY34UC0\naooaEzLzyCxezO481AWP8GnOcQB+Yc6zfR3soW2BD77Ag1V1pAzMg0NKmRzr\nLeTj56aO/cicMR1DJMn7L4Gbmx3+yca5RtvlWX1tQJPQfzymBmFKLyG/bGDD\nwP+PDgYSPoKm78bYi/9QqCSE6QaO1NKJO4as/za9T8gZSW6Ob+f5Ae9r3ACF\ngJzgeVT8XRI73OdsLsY07iZHRu96Bq0VkmgEacJxe/Fps9MP/Jxst/7dnD+d\nfCkxavZFEAmQXI+UqtowxFL0+COUGhjhHbs357XMxhObbHIYkxAljMpTghSP\na6xfnOmaX/x0jfu+RKPaAz0B3iEM4l2C2hVrG7PlwG17mrMzl190PLXVsMyx\n2Huh\r\n=hoD5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+kYisEZETMbCTe0Utkj75i4A448GjqeFkCbX+/rsg2AiEA/MBTFbw9TejsztnmaZ9We0SL5t8rnyOwSD73WdL4Klc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1626706866000_1626707721938_0.9151939626763552"},"_hasShrinkwrap":false},"1.13.0-next-1626731788000":{"name":"playwright","version":"1.13.0-next-1626731788000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-next-1626731788000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-q9VoWHcvoKBrJm3ZgDeqnyn5KWK0AFo2EutBAuMgXbyPvfsZTVp5BsKWcFTGLy0STM2hsYwISDqk2ZaZ0Pglsw==","shasum":"c9294736e94781c753015cfaa85f43da1667dc23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-next-1626731788000.tgz","fileCount":263,"unpackedSize":7651004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9fjgCRA9TVsSAnZWagAAhpcP/jtwfbItlgZsKE8D+tDl\n6wT1uY2XoL7e7zqIvsSCJV90AZ22j+H/S2rC77IFgUltTLXmGSVYiUjEwcqP\n4LIPF83uo+Ufjgpp+y4SPOR91D1mc5XzYlMdKIo0bcWEZG8YICgnvK2pZCFp\nR+z0arecrErNvvtkNTsE07DLSpbxSWVmGoCVXTue+E2ryNhdMj+CY9Ucya8F\nU92v6vBWP50wQVj8jrTH7YMTat28AdrJI+PnUV9cUa1Xcyo8cy9hzuneswYH\nP/HGCQJAfxDsVosZAs2cVUOGwt8Hl1BZeFs6jzTVidSl5IQT4VdRlB2WwI8r\nPEljM6tXg7CqwQsB2LUJFiNqEX+eCr3ioLJLyneormS2tMPJWKnNmeThs2Di\nkK2yWU9aeNWgs5ZJpaYkRuoeXyL7UUnHtJ+N+pdMaqNGs4wNk5snXals9ykd\n3qpTqNoMxeH1RcjykU2gfzQzJmOt0GPwhVGIUXsNF9Jdz04ERLKYguVNPeYC\ngLQPRSK7icO0QjGY0K1m7KDGrDCLrae4ENx29DxGaMuD0kkX7pf84djHIsvi\n6U7IbupXBFp/5oQPeayGno3MfeM2y/O0R6Y1d5Ir8ONd6tBAoM+4Vl7JpMmQ\nNtQ6UBP5AtKJ4x4ooRPex+CBvjUiRA6WrXkTBGrZkQJIuMQA9YtStMXz9kbo\n0PxU\r\n=qe1F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT0kbxjVClfYgrLCbGR2ry5fJVb1ID0idY/Z9mAqy0DwIhAOp+kItf6nuR7OB3aQtcja3/tJMbZeMHipX2oPDPniNV"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-next-1626731788000_1626732768600_0.7425931463704152"},"_hasShrinkwrap":false},"1.13.0-1626733671000":{"name":"playwright","version":"1.13.0-1626733671000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-1626733671000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-gQqIY5IFxxalEl81B1xIxkEI3Ws80JSkh999MrPqLfx0ZaIsFjeYgNgolE2oWaDN08RJwJKPDNTiQ9UkTi8QWA==","shasum":"8ae7895f1beca37a9314ed5b24e935d9810a47bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-1626733671000.tgz","fileCount":263,"unpackedSize":7650999,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9fztCRA9TVsSAnZWagAAc7QP/AoYEQpCmrIUtFWDt4aU\nakvMTETVAk0awKl7HUcZropeSZ4uzeI5XUCayLObJXy0OnrXMvvvOQsMbpCZ\nYubMTfFLA2HibViIKQyk0SBllF4Hw2FeM9yOL+5bIjiM2NL2mejt11pHLaLF\njm/nrK7TCJG8THT3ukk+aRgoFVx5bSHBt2he3g2sYMRepj27xWNhMqQU8VH7\nrcL+aIiJl5LGnvZVkHPZqjn7NLqDng35FweWutyCDpo4HSxx0GWAjW47L2d1\nqFusydgnDCZhZEFqsouLKScyFinQ60VFZdqCXlLOxo6JMaykey+MKvPq5uV7\nAlUIQnUalwXnZ806jO6J5Ew5NJ5sAu/MWlgMc/y80el5nFXyhB+BuJhfOR4p\nXc+5+CvOQkMQRrEHHSiIkYn00FjhksrpXkTrXTlL19cFgYZFUVSm51eM0Ayz\n5mSAZ7on+7djmoPXYjXTyn9Lh/QuBsApsyPeycB7koZC1KHGusz7il/ESa5z\nr/1alay+ywZf0IXPio9JkaGvJ85Nn6aEvMO/s1XO8nRZSy0yMwjBZ8Wwzmfj\n87RhE7MGCSEkMQhGIJblrRXJYCZe9TPs4ZdH5fb3ddAAwVpTBq8D8wJCNJrr\nYzaCvjDyXU/INUV6RmJcJl0p0JHsU+u1pQl2UXj2cMFCElm1qHHgJGlPE7jL\n0jw/\r\n=wz3V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICCjC+TM0uwoAIztcCzlRujXgdV3ICDI8hzWwtbF6PqZAiEAw0GMgdda0GOypdcPOCGrkBm0PRNae3d7VkdSFRlGB9Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-1626733671000_1626733804805_0.3237501275137893"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-20-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-20-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-20-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-yXWA/tZfa31eydZBCvgFv92TtaIITk2NeOtN/YMbLXEOXosSw7E/c4XZXPn3LtV/QyAtHQgo5VaiRSQCnVcLQQ==","shasum":"ca8e1d01129f6d28d1489d46af635474aff2a19f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-20-2021.tgz","fileCount":263,"unpackedSize":7651062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9hXkCRA9TVsSAnZWagAAJCoP/0xT7qZSFeI3lHZfPLOG\nTkUHgATf6BiigykoiG6OHmKNqqE5hjycVPdMvFQdJYksoPNIe5HjcK8/rke2\nwj/0XswMMXje7M9lfQPYJqjQIKqBNu6Br8p0Z/yleQ1MLxErLb43h9s403cs\nwJMzeScd+14okWSJdLK2VNn1B/lcU3HAMXqCa1mHaLwmoqySjCL383GZZzxs\nM9K4qn6fSVZxo0b91ZO6PI74yz5lQM/c2MQYASUSbVMWgsBW2v5HZ1hyKO5O\nXtpyaOuwmUWnNPqITLxByQbpbmFCMtIIHp+pXnrHoKXi/QNxo8nAI3t8zih/\n9CzxqFTwEwBF/WUiN3bRr4/5qBZSkudsddypaQCZQt2H+mAk+2qGSfUYzfjm\nMb6of3gVBCaKc7RwJF3UL0dlBrwqnrUId4XqCv87FC56+D/Mgo6UWv0gh6Vr\n5NbmqrQVyO46D62TL/WLaUgkah+KX97kj6X1g7iXRopFcWiIGERPoBkgMx64\n2/51gNZL4GvgkQqecAxYcVdtnATxoyHP01zvCLjlWdMR/GEPsLFTYCx5l2hA\n9sEODYqhACZdWbO4mfBs1oqOvNGkq5HKeEbAYD6h2okXgbZaCHzVGGp9aza6\nZWKT4jt4IXsq/MDyEcwYQ9icAD8BnLiXTkPyam0Y6xFPFgPmtWrnysyYTu6D\nmqZE\r\n=V5lw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCku4/pKtUyHGZ798/e1AQB9MzicL4+5j2/h6Us/SJgTgIhANXiFtI60ZdHv7if3W+4oLXn3Fqm8q1lQGPNZt4Qw74M"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-20-2021_1626740196760_0.3618784758979918"},"_hasShrinkwrap":false},"1.14.0-next-1626812020000":{"name":"playwright","version":"1.14.0-next-1626812020000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-1626812020000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-0BhIqrHf5dw0Zzs2o8yiJzVHR4hXLG3GVh3LWcJTFS0rIO9z6JSAfoHAqH5UzMfzxOmjfiB2b3KZv57sUxLCMw==","shasum":"7cac2ee74d739f4eff79f408fdcf051d85479fd7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-1626812020000.tgz","fileCount":263,"unpackedSize":7651878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9zE/CRA9TVsSAnZWagAAJgcP/1QKeC+Fr3ZAXBYO97jw\nSn1IQ1Ycxgkf29bVzsKZUv28WeGyYaVf2SWlVmF52muw6yswWlIMzvtHwhtW\nBbtismyawiFbEHcA7C3XyDAOaef150iOwPAonvMX3Xufbyh7+LGQ0xrCjrkM\n4t3xpXg2ilAbPuSnTvUns3hf1dzo1umWSz9acXPEfdxDs1T9g3JoixiWzumx\nfV2R9L6CbIL9KOpD42Fsi6FZuEJb6lx3o91ecIwTMWrLvzbzhEMau2C9eoXn\n5wxfaw/cUO1PC60zMzMZucIJSIyRKC9PcfsD+vRAHMIo0ZkKSb6Qwq1O3Lon\nSRhfKTqPevs0kvlI1PIkF0WZzY7XxMNv7vDdgGz1b/pAeGKTeJvwrilgJZi/\nUn7q+Cm7WR9eUA4ParasSz7l9FicYumABS0eATc+X+XuDyBhQbnxpBSBNl7F\n1DAbe8P+cKvOtNxoFjdYBnuvXrT6ATONKYiko9WdW02pmHFsteXqO8DhtR0V\n0EldFVgA7knLAngYoDqcnvHmY7Ro6ks8D6psGZ+08hezuLHCDzqBM88kQwzJ\nHEyDh7PQUEfOsMpuYFXAGxgKzMkJJywfTrRIBZ16a0D4LPeFAKbcV/X3Okkc\n4ViEQok5rpxh5FOR8iRNu2T/5GG/aM2b5LwZZ39fxoNoPa+etpl+aE+AbpnE\n/iHE\r\n=8so3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHRRRFUhMk8v1woyD9CdhzsWWdwRa4TSTjlYQAyxDyAAiB66u/jwn/oDKuZStRr+PbRmlHUHi62CtoI0/UsQUtLCQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-1626812020000_1626812735234_0.14713904660143062"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-21-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-21-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-21-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-xAX+XsK0RCkGY8s6Bla0sCs8qAuODPLp4owyVbuNzrqB75Pv3wdFNsp9Hwxw9MhCePJjeoMOTskWTx5WO/3wcg==","shasum":"e801741a44e5c838985d6e075e1bf8bd672289aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-21-2021.tgz","fileCount":263,"unpackedSize":7651882,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg92dkCRA9TVsSAnZWagAAXcwQAJFFlTJT0PH1dsDqG/G3\n7v+KfHauSipKNlsyVI+V4AL6fwI9/Vp+F956xBJAoeW2NjWSFjQ2nc3V1DrR\nVz5hpn8qFAysuwRFP9WLRaeJhDylZgEeUSTP/yVxxmCEz1RctI9RgXSm0BfP\nHmGX5VSZxb81b8peNP3AS4UzZdP8RfCCjKd9fuDFOSx7NBU+c48XyT/GkAKh\ndhDlcJJCpkO7fEDNfB4KfLeUxqv28Ps+hF8YIKUCdV2k1NtHLEwWVCUmXBa6\nPLzMTShgyYkxbDdQGkcWeYF3c5YrjyMW8TBiI1vTPVF1J4RUFlxMfF+DEElZ\nTfDEppWflxXIIAyoDgdBtT31m31jukDRXoowo9/C7L5mxps1DCbtledsb/Ok\nmJGZYI8QVoauyMTIopfqAhKlYtKHCeRyy+7OwHWVsNSZlZoAKMuH23Hk3MTb\nUquYb5Av7Vxys2kJ2gMXuWCqZvDnA5IKwnhxlhQheWA63dapYeHlXqRsGjLl\nLsXU0kdG8acKxGGP+gwEwo4AWvbNxg9A2LFzaG3JiB13ESw7Y01D3ELfFCLU\nykuQflLeYOgQ9Z2nuZL5uknG72W9xPm39xwT2KWnzAUdFBctHCQ/WC9yeRPm\nrNygbWxnhHRZ5/cV/1kDNGuZcpaRRztY7vJaJYw/5LNq78DfFib5Fl8zKknE\ncYA9\r\n=3KSP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXazc8Dd39xpEvwkv4gpTy68fo58MLUkd59zAkjyLpsQIgFSe12IkeDisCrd33t2ED+JAuLOFvRY1h5cGwjpel5vg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-21-2021_1626826596792_0.2795695601812196"},"_hasShrinkwrap":false},"1.13.0-1626828370000":{"name":"playwright","version":"1.13.0-1626828370000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-1626828370000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-6rw4x/K62dGUZ6MT7EQybuYTsRwEXSQTyTOAMOQineBqkZn5/rX6WFw0okoP/Y2TxKa2CGh+pTOlARgaufxViw==","shasum":"9ffb36e0375cc624433f8efd964ea6d8eff34fa7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-1626828370000.tgz","fileCount":263,"unpackedSize":7651589,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg927KCRA9TVsSAnZWagAA/RAP/3W5aZzlqkEFbop3HueO\nrKM7MoufgmQMzJ3yaDE4lrXiBGlEBnC3Gh/SEyOL1Ttcp9DByGcodArTjX1n\npw9dBijV0XTl5erV5Qoyqjlrwrqri7+oBdnQGDc1qAo1alUk1aBAPh0VjEvk\n/9Cx4oL8P86ubSRkvyaEtynSmeYQFEKd4zC7aG0PrMhFaqJE7hoyqHyfER0H\n1r3/0G/wqZjT8p4JfUH2ZeI0AsKwA/fhKuRaq5Mk94WAOS+ZUQ9NOwUZURqt\nKhY/3O6WwIQokbHHrEiLeQLVU+mSWk9oYyDogc5OxBiknjt92rk5WsHwdAYF\nqIQOVm5juTLNjOB+P4jygvnAtccnEWbKAFfwp6thyFqU9G8NsuHN/wGbalq4\nEC59ZmytmFFWwdcAH4e1yB2lX/E56ZpPq1ptAt78tMTF0AS9u35qV48QATw+\nrQZ0NeMl7vjUsSOo11pJH1qRuiqR7Aq4gek+UlXqksEShpvZa+iC4k465voy\nGkw1m9nPB8ok3VDr6lIsIcA4Z5rva2aZnAnTYXy/wmHDIFFL8oh8bPrSXvMO\n6Zg+iVzzfOSjB5DAmxmEIUyKlmdDEfWU5PgQMQJk48ZPKOH3S4SLKS7ZkEtX\nq2pKKQUMyh7bS57PR49GjJcrX8MOL34Z1PjRjdr0FWq7BIU2sFMKmO5IPGRm\nld1X\r\n=WqSz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSG5+NXVWtbI37u6kGylc2DylrZMeERL1bIPsiZCMYIAiBT5GVPL1W97Pi5866ir8JRHDEAPBFDpmlCobjflqMhAg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-1626828370000_1626828490506_0.21620843531753264"},"_hasShrinkwrap":false},"1.13.0-1626874597000":{"name":"playwright","version":"1.13.0-1626874597000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-1626874597000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-YUFdOinXISXQ7T3fXrLOcvuV97C7+EPyM5OilpXb8G6KFEcxlKJVc+GdFeUuoi+44RmqhmdgLhUQ38UmTGdIPA==","shasum":"78915d8bb804962185b65bc575b2cdee6be645e8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-1626874597000.tgz","fileCount":263,"unpackedSize":7651837,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+CNNCRA9TVsSAnZWagAA604P/R652+4Dh/SLkq1q79Xy\nUT4aHc5MyttmwDISOFtGMZnkA11Y56dSPeT/K7MTjmFvgwdKRa5iZzxToToF\nEC+WRknFnwOGkpi/ANnx5fdF9KY2VeqK0Ig6l+mxeF8pSs8gvGlxhgJfR5dZ\n2v0Ums98ZfAull8urPLR6URo2zvxiYdaXUiU5yjnAkljZvCBQKdXMrVO+yZg\n8Sc0pl4BkxOYPZjEkzSVG1yF2ZcFSnPex/UonHTdRjxzUUMFoe0KsJo/cLLU\nBu0If13ImmwqDJ6gosneYo+cW/7S9UzWFIgwVuzwxW7aUokKBeqsK2xuYz0h\nkRYtDSdZ2Eyru8kwROkPgB8zJeNq9rGQP6b/Ovg1o+y0vlgezXRm1HtBxd8P\nSjv1cwDSsDnNoAn8km1jZjv2bDDiSdrgyMs7TW3yQhkU187iLHrZLhh5mk29\n/i5Pa/AeLTD83tALRjxEBczUpJ2LGqww55NAhqCQlT2GgOjOXBeAeE6T3Cqh\nbtiRFDOVxAgMEXhoRXZoz7bNvhAcxDfWMHjNPukc0QD2htqeU1HltBRzN8Hs\nu3qw1QKvZkgw/WQLKJPrHMuKb+M7h32TEcRzVPyfnvofQAhm90AgJ5Df891T\n+ZIeEOThtu50BztaVyZG06HyELvdQVeJ/XZMLpxzJTjNw30CISCwDGM2QMY6\nkmBz\r\n=JOwP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNYBMVuWHyGQY+etZVhg+wD/ec4S/Tvvo0UiG7VSYabAiEAop1kraqycsXxBLV1YnvKy6G3qiw7rRQKjo+gYGEfWWA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-1626874597000_1626874701169_0.9545124052034462"},"_hasShrinkwrap":false},"1.13.0-1626881997000":{"name":"playwright","version":"1.13.0-1626881997000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-1626881997000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-bab/3hKuqXj+eLiYZfbd1AgRTgwzsTB7IuwWzFJJ/TY/Z+5WBNhX56cft/E8GgQZ3FgiBw9zKRhvvJ0AQBdw+g==","shasum":"95a7b49f7347d6965e36e7b146cfbd4ec1c75578","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-1626881997000.tgz","fileCount":263,"unpackedSize":7651845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+EBHCRA9TVsSAnZWagAAAKwP/2W65vFQXKNemsWxXbMn\naxE7E8i2H1ahBXhWTnllYpA7eUmSE+A2hAME82TZ+ZYeU2d51TRyoA33/i2T\nBcZYF9Obr0zifCAfASZoz6eL4j5s9ucMDaH0MdITZ5q7Obmot5PHCyw5YX/V\ncd9GClFi8gk5qrfCAnJie6z99m9qUzSZP8w3b23TqXYKyx9tn4gfyGfEi6NE\nEmOrNm4JlN0Na08HN5mra6sd84C1FZPPZRiX84irx8XRscP7LYQFvKRtfHG/\nwObY31k+PfWNVuOSAHo5OsOWLyEXzRrU+94rEvug8sRoQewxg4osJ+19WMZn\nSX8MD3u6z+VVMWGoNcmyw19IUuZSmTQvCOrWJMcJ9NV9/5XqZHaVM4pRCRsw\n6kiVF0VaiL39QaI0UvN+MmqLKiuefjM7ssP32AJtUF3+T4ysSKUf0ZAfGqpR\nUnjpmJRerGC5ZJAZcI3YZ1/5JiI8YA0R0cXCnJwZvqwCoaBfRo5Grp+13QWy\nbIaMMgtWoxz7nsCDm65CvBsefk6WHyx8iHrkisHzZvJzfr5ZRI191gh+P32i\nbwTsabuyHN81JPbPh7uwKw0lH+/WbY8tdbICjmBOwSBUqd3JWDHTGomAMCfE\nlELNbiLx99+BhW+5Wdew4myBgQsmQk6cMaV0vNVnd7FiTA2763ksxl/mjtKH\nZoxE\r\n=lRLw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4F/YJ4iG/F5xeEONk9Di3YHPuJ0CKhwOq8MH4NQP8NAiEA9rUIsiuVsH0eyGQv4B/jANktWWlwZ951hpwg3UlZ728="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-1626881997000_1626882119103_0.4237596116213729"},"_hasShrinkwrap":false},"1.13.0":{"name":"playwright","version":"1.13.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-GA5OyEeKx1v/pRcANmYncCT67Y7Y4N5zLRU5E690dn/Id10sooR5hQZmCDYsjXlutZb/1q0R3sITALnvhEjCjg==","shasum":"aadb3b992763253ef40f29ae887df8d67a142fc5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0.tgz","fileCount":263,"unpackedSize":7651831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+FuBCRA9TVsSAnZWagAAj2sP/1L4IBpImlahseA+aEdn\nuojBQyiZuxwixNAq0kCKqDdOrXF6Zn9cT8z8DIkr4ulWm/QUdL0duIH7H5Wi\nooNnlkQQurj+5pwr1DAegejI5AE+cPMzG9y06pbZ8CngM5RLt4BlzZ1hvxlg\nFlOpKa379FGjH0DteWCxzHWf9lhqYRfR3/wbdbOqmwEO5qmsPPltFTIHkBkp\noorZaJVO3Q7UyEF3gOQ2Va40SJiF2hcvjUn4TyQ+j3eEYekxGIY9wBsybBQg\n0s/NBDtVhMtoaRECuY6wX3QIvDEJc2JtNs8T9yWcED5S4HW+xVuDVNH2Tz9w\nAYyyf0a0wUgoklHc0Is2tBVCB5gKBZcStxrievTR2WYa5f3trZXRNF96p0fJ\nHR5M8OwAG4T2Fvt7Dpn38PyPIpPsCfUAPz1wg2nBi42x61VB6VGh2TAy7Esy\nN+GY7LE27i/cu0OaR1rmR93Ydtcg6efCQoxU4wgN1Zjzvuw2t0ibmsPfZ4QI\n0DfW0Qt4ppNQQhhY8oSFkmXmem7yoodh1KFBlIK262Z8JMsIJlOai4J9j5vT\nTmIGekmx7U3fGfPOc9Rk9t6/YUf1tzYqMULcFWtaKrVISKyAdWPNmKDsBucz\n58eWi/68n0m1EGUbpGjtTLhO4EgC4krcE8FQ7sfzCl+zGPNnhjMI1KkMLlmm\n3zJ1\r\n=4xia\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUTCxV5M0IVb1SHYjK2M2GYuSd6CXuJGPR7bcS82rb+QIgGhe9N5hWD/h4ZihSR+ythTiDSMG/m6NpoU0BagBUoM4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0_1626889089407_0.9089350965173995"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-22-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-22-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-R7zEnNzsEnoGeMMc+Ki+YCezYDrIoUVVr3G+TaI2TqYuP1ajZPv+k9u428iFcLbJHOGQDhARN2VkT2Jy1auMgg==","shasum":"d7536ddc6a7889ac6f417dc0c61a402f91d67b51","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-22-2021.tgz","fileCount":263,"unpackedSize":7651890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+LjfCRA9TVsSAnZWagAAJ8QP/jhdg1JGeDM0O5ZTZoZ8\nMtCRjhqcjLPQOBlEAjYhFbwglwGvxybVfI9sc18G4DZhKSND7aiQ12mhdblQ\nTpmDQMHWiqjl3nMpJirqjJnqFNc+DS5TvVXc7SJPQRX9gVZ2Q9hLMaSg6nQ0\ncbitoM86dWqKgT5PnpOYZtrn7mhkLoxeGY8klB0X7CtrQ3ufUACOL3vU0o0O\nugWzWdcoG2vENTxbiNjGC9q777F4uWOyZ7+aEWvWobNoN7EOAnxE0OnYsX87\n6SCWRNIKqKUronLoiygz/gYwQV3ynLTHBHtpXTz+CDe4yFRuPRnld19yQVcY\nNyh8hDhka5O4lCtfvLBnOEaiWDcLthmpobpEfll2S3IFdIG5ukkGPfpENelN\n/Kj5NoBLHzwA+xN/xVKa+Pt6UQ+lwQ7BIzfDAyY0q0Oxrtu71S9rsGc5cJEu\nBnLIcdwXAwWNmMNJsF6sBihSt5J7PHl/7X8HD92fy9JntplGZI1I0QwiAbOL\nWce6XF0+jO99izd4nsi4VDnDSV72l0jAtPEOYYo5F0p5iiCHsgAm8/aWxyF+\na+tdj7kCK7sohCog7iHZ2lUthzlvTXmjU7yqRBILv5sQ37Jimk1cOVG4H/HU\nwIK0EOyHtVJoXShLLZ2PiOZ0t2ZLNT2EGS4IhpwMBO9MSXDUfV4QLhNmXrnp\n2+j8\r\n=BIum\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/5QIs+mANMSZm9BgJjuTNWiFYJ4949wAIsVJAgmPzOAiEAx9c2sLNm3DJ8rRWf85277/RJzMelQ054NRA/c7QIWS4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-22-2021_1626912991149_0.8951335599096326"},"_hasShrinkwrap":false},"1.14.0-next-1626986111000":{"name":"playwright","version":"1.14.0-next-1626986111000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-1626986111000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-et9EFwLScJ2kGWaYgvvgVn5OPhM3BYPd8mmjn1HYGamF9twBUQXJa9CgI5IpRRoU0WXxC4mWLbbpYkhA2Te44g==","shasum":"3cc197954306c2a94448d944a01c9feb149b87ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-1626986111000.tgz","fileCount":263,"unpackedSize":7646968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+dx5CRA9TVsSAnZWagAAMJ0QAKGybeXW/A4cujtGjvwq\n9KWnypH3nQcMKwVF+5mKSxi8aMEQp3sofpnjpSF2AHT+xLtmEwBzfpWbSW5R\nAeLkp36p/z0VKUVlRuNri6cHSzdS9qi/qgZE7X5o4rnbAiHUYGGdHm3k+cxc\nk8qyh0dtun1tV64VwAbBILWUysOtIlkx7fIM5q6wF1qAIECoT7FcrRE4V7wi\nNIOELF7RKfXjN1x98h7bMkLK4vFhLfACcKweO3q+KuKGLbGBQ1Pflk2H84A0\nJZm4vnTF8+zLOa7RolcLPhK87iO+uVGGi254aEHNQgIQ/7jVLHrwcbiy3OgZ\nDnfgUCGpu5oVeeiscB4Vco9mQpdbw4LKXd8qe5zdbPmtGElJjbCsIMW2YghR\nt0DcDHBvYJvRfK/2uQyEhzRoFMUcODVImZmlQPud/p37S9wxI5NM+mrTGDFk\nWJl01Qz/yy7TjnnxmDDbdL/1Cajvg6J/NBmVzC50/l8MLXKdbsErENXUOPfb\n676Pw0WvDzMPqAk4BwIoCQjEzryhIW11jF/VQcTUzdRRJQ1bU/keRG5M9exO\nAB2w+xWlrBxGIfbUaENEknHd2+G17KQzChOVJENwb5uX+8bjblRsHV4qByC8\nO+BJrh4nh+z9zvVlVK2dIA7AW8Gmhm9a/NnKGEvFNPWK0tsiRFolNPcYkciE\nXkTL\r\n=qQnw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICrRcT224OIqGLiDTgRwekklh3kyu5VkQpvv5lRUovRCAiEAoxeKnNbFaw+uuvqFPRaJ7Osn5U0iM3yK2+9nBr3PACk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-1626986111000_1626987641537_0.4150918689214145"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-23-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-23-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-23-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-z5wy3Odm/HIb428B0Vlr2EMQl0Z5a9H3u1X1Wb8CF24cUQZUMM/yMZJG0VIsPofVznmRN/DQCeTut+SptLr98Q==","shasum":"f0f9f6e40616fe7aa7c05b9dd50f71faf7df1393","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-23-2021.tgz","fileCount":263,"unpackedSize":7646972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+gpqCRA9TVsSAnZWagAArOEP/0BC/94Vrdg1DWHCO+6f\n0iMQhIx/qoDi+mf9kmuQ/scw0iUT2c1rrXGblYoifHHyjC+qZ0WjMAmq304k\n8qb+dp1iONj2p8ek4qjq2hIl0MgbYPxpQg2xjrLlJHijk7DpqTYUOZIJMq/R\nhJfIKncmwUTwQ/jM9AYSTkSI31Y4zOL1oE0ZN7T9x0tDzILOOmjJ+A1D976D\nntm20r/JF99znBYxgjtd/mxKV1iQRmPRtv2jYM1EMig7zjdFq2/dCZ8Vja3s\nRSDNvLkbby8odfubDRCJvi4B6lqXfAgyM7B7UBSu3ts9dNXQYtxY2m/OGRiJ\nMZ03VBFF0Dpi+qJM5YrR0/BTY47PVFtDeAP1h82USgVAaVrQfUTglINGQVEV\njPjFXzHFt7J1yIISIl30e6Pbil0gGqWgvSCLXr5xfdzoNSNMvcT+Dr3/0qiS\nvoTzxddJMs3wGHK+qq7juMAhlHhAX8tHoviAvTnlP3i5lEDmhfbg6Eju4gDv\nZvkIcAjWgELDlOrYi1ZT45LSYFhO4X/nV7BE2FvbQRT0Lm/LjIYO2liEi+DZ\nah75BVLRHBNih/HBy29ZaT+vWsdFK9521SHeKFKXCpvf41rIf4C2q4co9d28\nPhqr4dWXxvYyqIOdVQpulDVQv9AL3H+7DfJAIFHAkPjxEMOW/Dt7Oylc4cB7\nwj+0\r\n=MXRj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXFW8DQgIM+pcz4QbKum64eYrRLwDNIFf9x/RR6IAZdAIhAMjNFRuSg2BtLGWcEuCs2f5vlOZlQbxb1si3cQRe3qYo"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-23-2021_1626999402343_0.6489778843949603"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-24-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-24-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-586EREHvc12GfsWArbv4k5+12UEiL0fRBbarNV0eSYl2Fb0XhVnqm3DbSNkJFiR2gqdKXk/n9TQk1LrsRoSR+Q==","shasum":"d0123fc37366895dd550a07fe7705cd561a76b01","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-24-2021.tgz","fileCount":264,"unpackedSize":7703637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+1wCCRA9TVsSAnZWagAAQTMP/1V6rVzVMfohVK8yhj1o\nqm/oP1eitX2bX0Ms89fmF/gQJElaxFsshXzTSPrU0f37HNEoO1tSOIG5R0ph\n47jB++xqZV161eKOSQwvoBvKVWnpoC8lClzORtUNa9iCsrefGkEqoTM0q5Pp\n7Td2S3AzFQNYO6vFnDMdLaiLBm5DHrpiseSC46JE8ebU9In1ZV7ZbuP2RrT9\nFcI4heHZ4fidexNoHOJP1dhePpJyvtSLhGtnEOxw0yrNFDnuYcdtjQPi4F/d\n9bu4XL477NxyH+fsNhwyjCLw8uH29TtREHO1ViKHcpvSTqD0sW9ThK+eRqH9\n+Vc9So26Jx6LcG2X/2CSKh12PJFC9rTqI6pUu/wO6QoLexW5bmo7sTu8mT44\nSSusP97obdWfz6ghtQ/pFhUWqZ0peP8+yB1CupenMBqH+Smt+Rd1e9VRX0v9\nv/CNECZ5hz4Hn6R0k3k+Hb89WDj6lq6QRzuata0UAaLDjfYwE3eQ3pEyiONg\noKCAxnynMNPALrcH7wg3Y81rjBrk7VJ4fyrg3U25KAfpeplWl9oQZbpIX6xu\nuY6TS2n5p5aZEV/en8U5Wu8Ctf0b8SbNagGLbgBK01AXAgT48RlZ6ygxltxb\nadx5FrTCPXjkpO8ibNCwcD5+99INnFB+9MMMa6F1cA+DVapIvVyFENZHAdEm\nxIxb\r\n=hAYM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDojVloWwbIw1RMyBrk6XS9VDs9DDsK8dVMXfmW4FSeRAiA6ZG7rSqaXBozlmsqQW25Ck8R3oIXTsQZtHk5ppdGhgA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-24-2021_1627085826103_0.902552554935736"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-25-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-25-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-u8d4b+UeSA/pf5BHQfGt/AKkQXvXCp3z4nzdKNLuOLGClLdCAdv/oOG5PotV05s7ZzTSJ8xytxysstJbFlOWAg==","shasum":"87c6eec17bf519141695f89f289d492659abd5d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-25-2021.tgz","fileCount":264,"unpackedSize":7703637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/K2ACRA9TVsSAnZWagAAdD8P/i68tHaVK1JBS3XQ/UkG\n90nLom3MvEEOCHCRprEUofmAXKRkxeCWt0tZn7hu6L/06vqXgZfO0ERtJnTD\nkeTUUNDgD/R3TbipnovUHuWpY53fkjA7MAHgFcn4gLHR4YVmn291nlEnbfgm\n8QF85hZIVXjZ8Z1BT8s9LM6cEgkzSvELmFnsxGFf6kzTw+tWxpp85JHqMQ/E\npkYP6bH9D0jniJT4WphRMWZGLjOckiGdLAKNZNJez99e48Z5LdG+5NVDPfiA\nrhkb4tfuQk2mEkaBFu5IjCE03bj1Yp2FvbW0+FBQL0lj+TvvvO75Dhk4Me08\nxc8RR+/RvDd2zTdJ2tnv+Y+/xe7fprttDcy5M/aWuEGiDFv3IjhgBJE7WWoq\nmafwKihh9WbXSZ8mEEfY6LNLYEqb+b0DcpohKU6eBqQU36tTbatjFhC8rCn5\nCznRjnjCzpwDncQ7ACJ+2SP3nAbqP0JD9cAIffwNvNgG3VPsir81NpgXFNkT\n6WzJkaSMEMu1/hLxGPY5v/pC+uRmY9zlHQvTG89jGtbLsBb00OJs5svhdN/w\ntVwkcwNwL+Q1AzIij0gaSlwNuUL1X555HPcaSdXfqT8Gt4tcmyhTwa6+n9kr\n/MpdeEQHL82YzI8UEfiQp0sFuQxl9N+LykFkoNwwhbJWA8zFfiV0kAgHyO6v\nYFmx\r\n=x9p+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICYpF5T8PLkrch1XE6EzwRewXZBB3sJ29nN3SWgIjTMKAiEAvqQYpyOFzEv2agiKPJ7bcPfO2P1td2wE0xAgWVcuvuQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-25-2021_1627172224161_0.8821933416167371"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-26-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-26-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-PaA5nXPzHDWIyk0JRJ0EtCxbUwca1zbbEIEKCpIOQW1aWnqOI7/OlOFTYeiK45ZSxTHbgNXqAM9Ph/b6m28Xsw==","shasum":"76360528a6bea17828ae4591b5308ef87ea7c5b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-26-2021.tgz","fileCount":264,"unpackedSize":7703637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/f8ACRA9TVsSAnZWagAALw0P/R3dBoPtQeDp4FEr3HAc\n0E4YZ3QeakB6djrBudezCE4w5/tDW32v3e2IdlqFxv0bTIvsQbjzrBtyqvEJ\nStFOK/aOjAr7k2U3+xD/BLBUswrzeEzwtrv83dHtQd/9KT4y60ktKg53q/eN\nLquC2y7ULLoei/3xYLMnnddOehMgNnY/wqT5J86SseS5tCeW1KCFP0VKtkAP\nDI9J08wWVK8T9lfxp6ecSfEPOBtKxuIl8WOYgzZ1psbXW9Z7hAMqJCFrtL69\nPvSOwvbVsC4YtB4IQFmkguBg3BuRNEYnkE1pwtQDEcg01g3i+RJlMBGmWbu7\n1MP24gGW9GEQ96UxKjg3M/42kju5nxcZ6Tfx9RRMGM/KTaHafV3okB4KOws0\nLSmEzWN/p0SLzvc4xkRpVpbNoRC1iyvXuFo2GvUcf96JmFqDYR+efskiMoBH\nrpfq0TqBnWBQpDnZKYkbjK+PrqgYiE7Qb4bgtPyFopkuMnZZM2DXEh/KutIw\nPI7eWMMLzckNJfQ/zfFlCh6ntgvS7NAdFq+ZsveMDygaF1JucPF4b4MX2Vjk\nEO98lwDu8cqPDzIFH8TDOpUJA1Pu4cqFlNde/WIYySVFNEi4S0VhcnUsLEd3\neI1xHOt44Mhy6uIhWJ9l0ZjW1/7GuleFKRrxb4VK+EMnGBXQw1ViiyZ8uUKR\nnesO\r\n=pWlw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqIxRkTXSZAyRGyqFmLdq6AegC3Muwp1e+Tj2lLZlWyAIhAI+uKMNG26/25JNyNR5sjwbF6I2WlLvilbBF0h+sD0B9"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-26-2021_1627258623696_0.19893274515450665"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-27-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-27-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-yVapog79oRP2yS6+fhkaOhO7eUHC1qUTDcExSDfSbbC30ERS2l4PzJ9YuzNiUewDFhlS6vYP8GT1KTO59+YBsQ==","shasum":"9c6d9c85d5c2d70cdef6c71c78db322a73842dd2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-27-2021.tgz","fileCount":264,"unpackedSize":7703614,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/1BkCRA9TVsSAnZWagAAfnwP/1wAeO5uoXNJYy1sDHdC\nWkIC7tZy5x5+Ung9UofKJE45xn0I1tYJyFEKr6yEsTw08A/u59iAEju+yla/\n6TKITkqFoAw6GLTIykZwoPMmQwrnRf2tbtG7N5rlgTpdbBB11JvGZoWburJl\nV5BGD3xm0S9JDEgNu9gxEeusxtJgFjnbWQ46YlGCNotcd+uQs064W8/7fUtR\n1JL9opL1zY6J0r/gWUcI8M08t1YSXOf+Byl17KZd+nDzYcEpb/nMaOE3RB8E\nnIir61QH/zyxSgg7dBuHFK/SfM4jhC2ek2q4R31/EPMT4voJVpCXWR8v5Hj+\n/qJ2m4sgMWBIgo+2kDyhKZgeiUrLFGimnMpv4S9ZUFlBecu5w8b3XGFWezL0\nWsgw1ifzbVe5vFkKhw0KR/Vq+UbA2FETAku4A86wDkOi9blzQI9G4iFUXlt1\nFYmmkS6KvHjAmuo3PwZPzpUTMc+NY6wcnFl9qgj87B7F0dBgjQElj4IuyJt3\n5gQoCmFpcj7D+CKocfsuxlzepv5miiGDVO0na3DxjwU4blcnthX6Zp31H49B\no6e4dG6UCM/+bGPZyrAxYuvDsEE8wvTyVA5mG9HcfUZGrR6kw+qwp/tMa4p5\n6i6xgB5PFAE4JLxsdBqDbsPnVXj7SYuJQh+QYZPSOGPDLj6KxgeweQNwpbIT\ndh2I\r\n=zll3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDo4AlPcBHW+U2l7hJwSghdvOrrLRQGfIhfoZPIQtCu5QIhAJYUnx9d0kSPf6f42ZpcEy+T3GvI6xCPiwuI1KwqxVAh"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-27-2021_1627344995875_0.7965404465443893"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-28-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-28-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-blWFM5jLGYi/VGGyAPRbRzcJNDw3kCW2/yEj6UffyupQa344eDSyeb9OvDu/va/FOKcbGllDA8rTUOR9K/HQMA==","shasum":"f3019da00cf6d3ae78183916fea081db2d726429","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-28-2021.tgz","fileCount":264,"unpackedSize":7721285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAKHoCRA9TVsSAnZWagAAxFAP/1X94Kgh/Y4Fel2jGy0d\nFQhzmIPiDWfEMYHbI2jl8b4TEXV8jAyX578Xj71ALjSYsbIibsm1ld2xJBkW\neKZ2Tp3JKWqtuxn0ShuDVC8pyfgrEJ4o9NrrAsotKXF4ngxnB6PAVhOPt8yK\nPTHX1z011CcMHCS448CwDaBaCcxxn6z3IDccRom8QlpnF35jWdhTdC0gEBf/\npOvh8hF4pbgEO/Ld9XIRMLTTn3QqN1MMXD5aaLxnz8zjrU/FtR2OHYULiJwh\njmAeqwhPgoHP/d7AUe64z/JOIYuCLfExo75pw/vU2EcyP62K21vRs622vQAM\nsuA4o9G3DJ9FLzN0IfwrzL5o9dcCJgXZzplRN1y9zn2WnThCcl6tr6uRI0pT\ncwYYTxvb/hLcF6RGE4eNYDVLmmeEskHtqP6Si+VdTA3bRf06QPmDPC8RTom4\nHHdeldAvbDudnqZM8A/drHKhPNL3NeahD9W4+6QknztdBSZ/thY2fjtUfRgW\ncY9OaiZECbW1RuasJEonzchMtIclGHPiyLiINHvM1YxfaUzt9vGIPuV2z/q1\n8+/ZUI6dVaek7L4F6Q7KVts32GG6Iudz77pocHnF87WFICA79EJnf4gvH+Xd\nGZWr3zk8v5ZFE7Yl3CDbPgyeSOS5YJs3HA5ZI3FUlwj+bJP/PnrE0bue4lbx\nNwAz\r\n=9Hmi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBVjD+hBaITpFGgKoyRxsIJDEDtYF4ftc3bqmP7ENXxQIhANb+AbWYZk71E0qQ0FJ/XMw+gjGcB6RDyAG4yUe9HHFt"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-28-2021_1627431399814_0.20636186153847014"},"_hasShrinkwrap":false},"1.14.0-next-1627512284000":{"name":"playwright","version":"1.14.0-next-1627512284000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-1627512284000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-mhtay1XvUP/pHj5RSC0LYedPy3TLie5hKQiNs5wgpBkMF5fRWG4qkWt5qOp/Y2gxInJk7gS7G8haNyLBz1HmDQ==","shasum":"d6dbcc74b5f8379a17ab1b6f3d96c59c79634ab0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-1627512284000.tgz","fileCount":268,"unpackedSize":7804637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAd6MCRA9TVsSAnZWagAA6S4P/i/spbWBvqy7+Pb8kny4\njgMw2Vec4SyguYIAFQX9DQGiqFN+CQzBxsPWn7ajdDM6dznaAZ6nC/bZZhJ/\nra1ZEXGw81xa0MPHni4g+oag9xWnkt9MWb9xk21jLpAJOZTCv+3D7VMRtklQ\nloH8ETZymEAsn1RdoJFBlDJGx6ouAa9Ql9En266t6Rn8ISKGz4KgpNP6E65f\nkEXIrL0wAN9Z8LI1Qa9oUFAekW8oN+Q+zXhXT8X4A+AHUJI+5W7HuYCdTWb5\n85rnfKbvVLqkpfLBnFWnX9676NE08c6Rwgi1dySCh/LFmjOTRgI8ah0MPSOZ\nZnUWRGpp4L+EyoPYi0fRLTqr0A9FiEDOABlLbt4qShhbwg+fbA9posf6JPdD\nNDnxmv+U85XDCOGuv3T3RZvRCYI3D4HJ2npaRpws4KMJqwUBKqb7uu77in/7\nuURU68lFQVNXoma6A/t/hV7YsVfHLVfdATK2ek7jN/8/toVZkEZ4hJL8vVmX\n8qf+rx/+Ov8Z20jlPzDqekcuZULVcSI5ZCPvLIYQHUspiFiBv4lAFAyHZv7N\nwgf9ZrSobT3MReYw6aksgY4tknGL7UNQxoIIUs2WE39MruT2zn/AglAXAL0N\nGyTk/6Ofq9v39QxaoZ93WrImHBkmTxUF6VtOcoYfUVj5y1MtB55XlkjGafYT\nq5b/\r\n=lzkM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTqTLeYdf+ygApj76YMB2xqW1GNynbECqa+pCf9rqvUAiBz9Hjg4mEXMeHEMqtiSLyeSO0NUYLhZ2NrW+vy1COFvg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-1627512284000_1627512459896_0.05104961634388294"},"_hasShrinkwrap":false},"1.13.0-1627513904000":{"name":"playwright","version":"1.13.0-1627513904000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-1627513904000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-7FshIMsrvlBzVFFlxcQ5P3oVgIAPNboRDvRveUd9S9g9b1NZMoEHUR8ppWSRevGUJktgWhTeoo60H3D1bWHZBA==","shasum":"bbe7114126fa68f386958fa39ee5281d4702a681","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-1627513904000.tgz","fileCount":263,"unpackedSize":7652073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAeSYCRA9TVsSAnZWagAAsRIP/3JJOfHEMFke8XXFg4Mo\n6PDao0YQ6MV+Wh5AorUxIRcbQuHt6LCTcCGH1epSQe254qKA98hWrCsIAuid\n8NKkM5bAqqf+bNqeKawswDdL7hGzm8kgP05bA4AmNOq1WwalAm8r3iZ3lIlr\nNgILV4I1JDq8U5/VGTH9A46/aeuYF4USOG9OS31/H3nd6KPKUJXr+MLqzL8G\nbTFzgv2+0SXe+xX8CcHNsFR3rmBhw7MByhBFs2J80C23BBwNayC5idqYclwU\nRq5ivHVyL6fI+hgsnGWWGOzdrkGzqTOja5XkO4UqEk0pQk54f0z7rmCwqpet\nrg9Tj1KJ5Emk7xADG32noRgGQdWGFBuQNH6ZyVcybOQO7qpwdNyxTpXHw3WG\nMAH1X+K4K8tFD1Fb5QKCUAWlm67fRmoe8Z5GtY/ZqXNqYmx7QvGfqY1raeAv\nrtPtDuF9Z5Cut8IPmNAo6KbXoNNMXAJVXDkkzxRKAApHD74un9t76DOMmItD\nD48V7PAbJqPrvRH8Y2SdWL3xclMcG76GZLmHcdRBG26XbcLh2jRTomLs9ZXv\n8/X1EtE3WaUzU6/gGchqzjuuJlV54j2TdFTtn/qEJB+u5zcqOd76H8xGiCYO\njxD+UJhGwRsVh3S0vaR4HchhmapoUCpcaeqiGTj16XlZqSE9gnMj3rnTdmfh\noVMn\r\n=q1i6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4AC/qEeuJtUb26uhCbsKx08EtRDa/DOgx1kMDpASLMwIhAN2IEPItSX83+P9yZYGttNPaS4iJIYD09tQBFw/YYn7q"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-1627513904000_1627514008433_0.08925363465934022"},"_hasShrinkwrap":false},"1.13.0-1627514352000":{"name":"playwright","version":"1.13.0-1627514352000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-1627514352000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Ck4AFFLHchyur12oZSI3TijL6oYtGeyvqwW4tBz4etIt/O6Pmvc0Oyxe3HlRt6rEaeJfVz7mhRiPkk78cDC23Q==","shasum":"46d2189601a618eb46315a10e174c85df507016d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-1627514352000.tgz","fileCount":263,"unpackedSize":7652388,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAeaBCRA9TVsSAnZWagAAWCoQAJ6km+7Zj0Zf6wWj9U64\nfINhErEhw9QXoVG91YOs+B33WsEimB23qrZgJZFfQMliHNUiSQLjiv2zIXX2\nm8drzxir1VNZOki3zxnAB8NG8VJERnBsyB6zVknKmN+rvZ2+fDLP+4CllWcv\na9RD94z8qhxHehAaiy24oAfX47qIdjzvc0xwpAMVNLah/K3qN4XEgQVEQRpw\nkd4odNjow1Gdwhz9hTk8jRfQZRoo6f86XEv3XZvqAnOIfkoab0DNPJpwQdzS\nFD17Qb290/2CJ0e2eKePjIf1jTh4rX1/SFMLmz9/zy9khK/DVRXIU46cbPux\n7XO86EoZPQH1LXWXmf87IZzZZ5b7Lp+jedKPyheROlIXSVAawebkEXKCbVCQ\nhwn2hHmiNMGul/szikeHMI/Ia5cFsNvD2pNEbXQB0WeqJ3HspAliRHrGZrP/\nalWK8fbxHZzd2xAecM+Ga5UaXURlOhxAExCkG4PdnVJ5uGSRiHuiOPnEiJ75\n8qr5BZC30yOQkTicQVOU6d4z3h+uVHCchnr3GFAdyPOfzaqCGyerw9Zok8br\nCbUtyrXBDDyTAXAiLQXAktGx9XOjIlJwau7yCVFGdg7rs9NsNcHaFaA7TJW2\nj5SPUmLz1ZGZetMaYSoCLJcYMBIHYEvQHKyMgpsKVxVqjvvev5aX2vqcokxA\ntZ8c\r\n=tEWn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhFUCCBy0VdXiIu8Uu9s/cGdOG/v5qXymN/AyxmnX/OAIgXN9in5rNhZRWUEYpYmxHTMr2FOkYH+2ADLCIdXk2ENA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-1627514352000_1627514496722_0.041401161554954546"},"_hasShrinkwrap":false},"1.13.0-1627515384000":{"name":"playwright","version":"1.13.0-1627515384000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-1627515384000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Xug/7HhScM+MAfzNm+rqqlYAXvtcW3xo8RnMak1KqV/i+vsm7DuKSuETJ3+DBb4CMaPCenlCVtk6wfAAgRS1DA==","shasum":"1b6acfc0a6ceea018c34ea74193d73d9b3cb3bc2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-1627515384000.tgz","fileCount":263,"unpackedSize":7652410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAepsCRA9TVsSAnZWagAAgysP+gKa5x5BLFarri0OYJgW\n82OVz0GK3XYoLRUIZYRU+j5pEzFTJ51kQtv8zJA+I4UMFxE0BSHBmNGjRciT\nIdu5s2ed86+7cgECK4dgGtoWZ7yyumYxzu62dbg8Wv6qHcemqtVlwkvv/jzL\nDX8Maur/yBBatUK0uwBqs+QsMSJd06wl/RliHZhszc+VUDEZ/BflxkzuLkvT\nspa7wUmDA0lC4VtlA4YIuQWb+fBSALvzO+A87joCR3ZUCGv1X938Uyx0Amtt\nU5cNV2a+2vrCcyvYcjzdbK/CZdtjvuRD1ALvW0EaZUZON2rGE5MfDrpONDfs\nk890RstRlGHsmbPBLPoKayK476LZ7pafZcW+Qys34SbyZq+U5LHo3he3twUX\nQnuMSgi+9cLz+nNi720sUDKV1jGXTiLZgklGyQ+NsfocCg95yfPJEoa46d3l\nMPFn2A090l5FaDP/MitsaV8vVLLD8ceWoBJ7kT3KZiK0m1WCHv+tDODwsPr3\nOQ0+6sA5leMa4wFoI+hl0BqXdzMbcGb+0kPyEN7R6uzdwpH0WURj/ryIG4JO\nqMQ2+hZBRwmL6vFxg4JsETGSEN4mnBvoCcej6wYdYqOr1HUvDn8a3e5oQU3K\nIzMmEiACcLItwhwsTcVVMjuZOIFHsE/xgp+7ipI4iS6wiVKISz/xkBwvxnhI\niFt4\r\n=59pc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXo853udd7b2DrHaPKvznNm1HBGz4TB4mf35WEMMJqyAiAH3b0cHoBiD+HgAhrM1lrKKtbdyV8VX7OObf/uzXvOtg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-1627515384000_1627515499865_0.6671976934777339"},"_hasShrinkwrap":false},"1.13.0-1627515855000":{"name":"playwright","version":"1.13.0-1627515855000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.0-1627515855000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-D9NFJ0ngklFBRHZNI4+IG86R8KkPR47xB4breG+fV31GzSCfgBTvtISW7q6qf7wtLJ1dNQCo6gY5o5Onf9yBsQ==","shasum":"ef78ea314964538e3590d9e0e2d64ab6a5011ca9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.0-1627515855000.tgz","fileCount":263,"unpackedSize":7652402,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAew0CRA9TVsSAnZWagAA6NcP/1fWssZsk+BKauXmxte4\nMIVzAQ0fW/ZLqNYDophYeqlFP+tbusy30LzPxOEHjfwvrhmdtbiylNIRuKpo\nF/Bytz1dKl1gjnfdqxm3K+FDMUadRtqY5mafVDVg9E/uh48msyDgPkv4jb5K\nFnh5qi29nnrBadClFAEdQEbQRmCE2zEbq1U2v93yvq+tZKkL/Dm+3CrfU7sw\nJ2TQj6JFgMDs559W4Z90Qri/+2pfMlQbQ2xJFm1WEvbsaMkq5HIvedB1cNvT\nukVP0WqOquhhl4tMM3FcOxJKkzRgTY2wSkKEM7DPY0sBIA/gZ+ZBqmDN1zOu\nOWG4Qm164jgTTQuREmTgDiOCnffQWvXdqlLtQMm6HxeW/Ig95SEk1Il3tJ9m\nIONn5KR5ivoqNbNKhj3Pc0Op+7tZWYRYYp5N44IFi3s27adCvympNh1A8ScC\n2DjehZ3OSm67SveP9KMM3p4xOHpieVywvgADqUuazWv98HeHKDrNk4VukqtY\nCliw4DbplstaYohEpnqcDtjvzcFiVQTRpPIc7lJ1wunXGepFjg39YjE+2Jo8\nDrH7OGGgEGlj3jzlVRxI52oksPrxlKiAkA2+kTlcndZLSUrhP0FpOJSw2kMP\n8KxSGiukI9WalHzvxl/V+JqwRhfo3XzlZwyG/UuLHFTf/VS+nNzuRvhIVB4L\nQAoQ\r\n=ROK2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjYoaVeFel++pxrRClexAFXtH1Kp8/iDs40uDcl9ZOrAIgEL9QhPN7EAdVKn3ksfGXhBM+cEhgt4VC2gFpG4ntteo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.0-1627515855000_1627515955860_0.8559091738501479"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-29-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-29-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-29-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-dEzx34vJ96Sjncq1ikVcT9O2yJHG/1BTXXupyyT/awzqlN3xCLo+Fexs/fl4mu+CyahP9FJUCD7KTNuO8Hbw+g==","shasum":"057ef68e6769fa6249a4384cb97cb652b0cf2b80","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-29-2021.tgz","fileCount":268,"unpackedSize":7804641,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAfNfCRA9TVsSAnZWagAA7SMP/jB9eR5C/FQZo6vyUVid\nzR4jAWF7jHjQ9Q90enOagdYNAodMeNTYHSCco4QHv0pKbcgQhuhDhd+lmoz8\nYeeoLk/KgDYUAIUa8DAHK0ipL2FY7pQbnt5bltwMevrzmuEdXOYNFApneA80\nb6vNFqqF/oeYgcGeVIRUT0Olp5ihXe+WJB48rJV/s7EMAz41+5hevDF1AbCS\nA6RX5qUEY6hFdZRq8zK0T1Ktgq3xcvWREMVDXNKHzgTQwjBc1lZLXifNAmR9\nPtaUVVwQuen//oX6gky1VAuGzLXiadeOtLX/w5q9QFcMPYHGfz7LuS3dpbX7\neNQtj7F8Xzu1REShsZNMOJ0kX7F48WsQMQiHMsBkW9+pM1eFlHOSA/y1pJGt\njYCR+7LvowAxFn8ZYxx+vI/qfiHp7tqMVQpOiWl7t51F+w1mjB5CGkTbfQMD\nzOsdmuOsSGS7Xyq6gTL1rXEik2OGxukWRUKTr+kY9IsYZcfqM49YbBr1Aztz\nwxIMP93AVAM2S3MuYpGcGWXpHedkIw8h8RVFjRJd6/cVJeJK33HTbyIyp7IZ\nwQHVAv6isx/VDWA/H0nBZ0p9yMFw7bRHcZ+yA0xTolH5ScVMLQKvqA3DraHK\nQSkpaPyj1vd2sCIPRstYbbi7ahxG0udWY7COxGTexrZfRt/BifasFlWSRg2f\n8CUz\r\n=uCHD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4lSgkqIBRpvPdTARHIEceqWBywatKtCdNiv8uoe7ahwIhAPgcaIzIK08meKlJ8IOJaoNiPzBAQDWX8Vpc1rBrWOFW"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-29-2021_1627517791157_0.6121392690346361"},"_hasShrinkwrap":false},"1.13.1-1627519339000":{"name":"playwright","version":"1.13.1-1627519339000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.1-1627519339000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-OaJu+VmZZwxG8wBovLkEjoC27QXyAm/wsMEzseL1cX+2f1MfzxLvQWCIcgoZ+LCNGN13O1a0fhLJN3NmjfTbUQ==","shasum":"6e305404874d7e1b49010afbf662a5dac860bbd4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.1-1627519339000.tgz","fileCount":263,"unpackedSize":7652402,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAfnaCRA9TVsSAnZWagAA41sP/irIDvEDclT+L+4DfJCN\n5jLtHAM3Hk5nEV5KNS55/gM/7Wles9MAWMjLn9VQqwxzeCUJQ3t5T6ogWETJ\neQ9+9YKAQuV52ZmK1nmHGHrdg5khXmCoRWnGSaLYH3ETK3Xw1sydL3KeMpTt\nQ//6XBJjpr36syCiFMNX6bm8ulBJHXN4KHdOMBHjMENCLipqNqpgE810WvBm\ndl/4KF7kW6iz3e7Hs/RPz0aOO5DZYgBV875joozBUtazK20Zdo8uWBkXcURC\nLGTq9Au3luNYiwgmWmCDhpUkywCjhOTs4nlTef3R+fzvIvGD3iR89W38jz8g\nmst8O+fV6D8V2tiVeGHIWbGh9zSd+XEV4fb90JDlfSC+tG0Ggo2Vs80Go4pS\nOcl+pfXioiDybfFPy85TJxglL6GkHeq1kKuy+9NND4kIr95Bd5HvTFg5p+5i\noP1ho4k4uJAenJPr9gR/UgyYUYy/twoHCje9ibd6ZBKMCSV8em8DIOPG1ZKj\nRgaA/acjlOoIIOi/ltK2PLOCBEWOzWEPss3loeqEPvonuKjlUtWQY7wunuIA\nw1dBds/SZKO2EaLdBcAybajY0VKSOUlfpCaOncJ58ak6Bu7ocA44q07TWwP3\nsZVbCnmyD0jezrLvA3AhzlR9EUQtZItwzvugRHVRf302WKmp1pJVoVCng1Uc\nbTvW\r\n=AUlg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAtVifNp2rCDOB6xEHHVvS+BCsJTpM1e8ozkCgAhx3+NAiEAvyFewpAx5AJUIri9V5m+hXM6poMNTyf+JudXkTKiwpI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.1-1627519339000_1627519450293_0.1303360046318922"},"_hasShrinkwrap":false},"1.14.0-next-1627569199000":{"name":"playwright","version":"1.14.0-next-1627569199000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-1627569199000","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-j7997xmI94cxKF6l2U7eyo8oFOP2IawPWHNVlGdAsAffN4FfJ9EsZLtb2hXqwHFFGvfI3vG3EvXVYWFbqQ6gtA==","shasum":"94c9aed695e81a99046bb20020760fb0dfb07894","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-1627569199000.tgz","fileCount":269,"unpackedSize":7806909,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAsO9CRA9TVsSAnZWagAAFY8P+wUrnyx7+2yy0fBEoaiB\ndwWbaSV3RnP3yl0y6v2BUzcT9GUFAE06vCcBqp1yxbLfemhSXR+9FSzu8f1Q\ntlbujd9Xx5Cj+DoP+2EU8H+dg6huaTxlO6v8oixbbsjO5w20CDKODbHHpKE9\nXxTqPCaIpM5rBi3zwZH0HuddJa+VRY323pwt/G91o4bjmO3JWalutImuSA+l\nencKEadiR7M1bher+3AWmuC7cCX8om2LS85Vm22R0gTnn0OM0qKshOdaiDvo\nlaX2TeodoFjimbJS9C5j6L63lPXbZ15cu+JVLD7iqaPVQt4AsieMw5TOOLyD\nfEow0FaqTLWNiUDwdbdEXMIh592txCXyBQsHQxF6GKgr3iPv1Smw4gF9PBw6\nzoEPoyT3oDahzHhjBaHS3WJVxsDawm5xbqjqGk6qLEU/4L9HijIswoYoRGba\n2OqmoJzSL/18SIuAyGlMG8FTuKIMBz2xcVbfpZDH73l8+vvQtAHVPPJS9FPg\nUJpRbNIF2gmPyAwONP1NyfTgdEmaQ9AGPderkTXsNTDI9XRX5JG1pVzzTky8\nqt3GmLsl0RU90sQKiFPo/OUFnVR2iv5IdRxl1hCBfJvOYac+Urdvl3PtY6u0\n7G5OmM3Gb6T7DmeiM5DvQfxEXIBYvDrvyBJ4IasosZCg3+7HxWmmb8q5KSsC\n9wUr\r\n=JV9A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCja36VuaJghGmwxrN40NZ3rFJoPKih+d6IQIDt4eaV+gIgBTbLReFdgUzWaPCRQyeSfp87RU/0iwv3CTBvymeGnIk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-1627569199000_1627571133144_0.9003403503460403"},"_hasShrinkwrap":false},"1.13.1":{"name":"playwright","version":"1.13.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.13.1","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-pGbILcUV1+Yx0fcRJZBEIsqTDjQSwGYkJ4tVUQUtuAyMuHg5B++Nasl+pIeIJRMqKSWTyvZfPxJuPIGsLJgiFg==","shasum":"53c49244ffa7fc2d5d8bf7ce87739393206eda5e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.13.1.tgz","fileCount":263,"unpackedSize":7652388,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAunLCRA9TVsSAnZWagAA0PcP/RHke7byVCHOAunJcHNG\nsqHEOCDW0I9+AkLbkH0sfuEPEX+7hJ9mSwNsiwbIxhd4d1KObWOmY/3lPBre\nANK3PVb89eBG9IaWwVghkZ3JV3khUUyapVYLIvDlRfKVtxkHQwdp7nwiUz7f\nvo/gEtx464UoBDdCbAF0n/ds5ETLqQWWAg/v3ovtJmf8ZbBfaKbTYA3G8pQP\n/J4XN9180w6m546kEFFn38SGDd2DpRdH1Q12iJwnHJRObqgSHcEnxe0+LiHB\nvjPLmMJ/XVbOJmyNmhDqdMid/HY9QOJtIE4joOxXqjrQ947qCN3Rze+JT7ls\nMw+ziWmsvVVE6vuHWF/Sh4d3YcsSlwTwin/Gl2GAXh4QIHgpfbHPfMJRHIGB\nKPO9UykAAe55NihrJhIb4BJwb5zX0RdJhzWTDJh4U/BlW9udMk3CuJdEao4M\nYvfr1yMX5mMQ+0Z7C5NQA7P3sHwzpshGpd08lML80lXS1AU4deDl4dMuziMS\n+3Vve4TQ7c4PH6BZkFP0lIU+vd4bqcxeq+naEtvCLcFEfQwHqT0hRYzkQElj\nGz6NSg0RPlMO3tC0z4ezj2K+4dmWmGF6jnjGC+rfwVL4i3zLKs04UE41R4xn\n+iWqAhduHpj09WywxpTWtKPxpBWBMafo4paffjOQFrt+Oea83pNcuaG6Z9ZG\nNsf7\r\n=QGAV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjCteOXR+C0RdJdjWbrFYQp6bxszldiV+ZuLVMqKqQ9gIhAKiLb9UvF8RUvnBWltBHQCFa0+3MTxyy0wJ4Fiwja8SE"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.13.1_1627580875381_0.24104118292453314"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-30-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-30-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-30-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-P4cnzFdLpfNBSU6Gaw3ZObrwznkgmMWT/MmCpOP9gEYRonCM0VM2anG3uU2vD3H3E2QxHtPPYGB1SSHUkJ9Klg==","shasum":"7913757eea015e33df32a73e168f118cfeb25f9b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-30-2021.tgz","fileCount":269,"unpackedSize":7812712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhA0TlCRA9TVsSAnZWagAARqQQAJriIxrExRxrtds9A4n5\nA/RX8RZL7ImwwP0Gpb1xyjU7xHzdHtZF1/Uw0Wu8anchvmQGsAxOxlRylmAB\nqjpbljz4nETCdjhdMoPr1d0327wcbomcrl6Mx/R8FupjLAwIQgVvQst3eqnD\np+3XoJ5tgKkPHW8PofQiMo6gWKbtmyTBNyOFcgMyK/+hOdY+JWDJ15SpkKQt\n4VyAtv06Vk7CFihnlnIipCjQOPsB9cUNC0onRSHH/pEDU8jy1hKyAuDixdIl\nsKbBzUYk940WXvPqFagjzDKr+dWObtDaMzIT42FDqp2VRxN7HYD1VodvlW6F\nMDuYU9brzAY7x9nwzV4wGlXSR5l9fcHxAxanxciwKFsdkVOsUJucNAy0AnI1\nnX22hGCrzPOb8+Nn/VJnSuk6gluxr5NiSxegGH1v/yIETRbNitJ3qrz9Uai/\neVoe6iQgqoaC1WnZ+1j1DVnPhZeNFyujTsqoiDM11DiuEnPPvHyVxbATQ0ym\nVm+r2WS5Bheu2bo0dvFKYWBy09d3yuo1CYZXZfyiaaPBO15a5G39odIGBNaU\n8zg6NPhZd1rXBRyFHbg6aXMInLoUudqXeTZHaJ6uK99kz2NfFVmjG9wNSNnX\n1Z0/kAYu6FqpMSyi9zGPB9RHAUEJ2g35nNCmDe3bINGATZIIQ1rYYimbPOfm\nSira\r\n=as/R\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF7PjOq2F22eITzkTf/t0vGEGNJ4ovskwFgeVug2ib4IAiEAhOynN1/99k3t7Vq8ouuQr6zR1hoDYx1LgbTs2hRZ1QI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-30-2021_1627604196996_0.7053315616434659"},"_hasShrinkwrap":false},"1.14.0-next-alpha-jul-31-2021":{"name":"playwright","version":"1.14.0-next-alpha-jul-31-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-jul-31-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-yA9FlTJ5U9Z2t+1AhFL40i4vCxmY3hOrcKv8DJata42LxUcAFYUuIx9gKN27FoxFjX+s0REvvTFzcxMYo74Xgw==","shasum":"c117d03b0e62df54f859b3d3d51b538eb660880e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-jul-31-2021.tgz","fileCount":269,"unpackedSize":7817688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBJZzCRA9TVsSAnZWagAA3WcP/R8L2p9djfO9T5pvjJrG\nMBqILwS6EETl19bjIsTEwbwtt4masSNYZH0wcMhLkTwq31Jq4hD/t2M58+xP\nLCTQwidEdzeDNA1HiK5oHs0HeVQ/aMMPekDFFpNfRag1R9SVk4F6YbDFFQTh\n/1CPYBWkUN1Al6aE/gEcb1ghQOu1tBbMgmr2qVpHZEgkcr1upHs8DpzWhQx9\nssqstRpwXfRmxFn5kPasYWE+kIX/oNKEKxwjh/ntS5HiKBw79203JbVH+8p9\nlV5o9ICfPgGKHoNv46DyB20+G4Pdlnbveow7wCYb9Pp+9/V4PKsUO1FKLO4X\nVf4jUlpbTr9JbuG1zVtyAugLB1BfbKlkWp7x/8nWq7mZ2r7/9hctmsKxx8oy\nEhgT2m/N3VTwoX5vcGEP5idz5Axv1tjfV9sUNyq/A0ze8GB4cnYB3L6BMdeE\nsPAVmHQ9+rfaXBSH43IkZoXlQf/+F9go719b9EuYg6Oq2GHUfZR7HX1aqxii\n9K9uLAH+E4G/FabZ5vOO/6ejMpN8lbSnq5KNSmI4gZwsiw/jeAIQ1aCfvMe0\nL/OdgENNIbEJ4zqpLPpjrrNe2Z7g+v/TVVB897YAE/ji8bfPqT0BLnFRiFFF\n8oEv2ESklP0WOhlAUop6JGORxQ5+1OK6swJiu0AT4k1GO7oKxZoGkd6caQrP\nMnlM\r\n=iSCB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAL+nNy1ddTqC9PnncNNvYIrywzNe2I7ijrkmRgXhkfcAiAmXcs50qlIbnX3b2atuhIz3EdF31t2uA3Mzv83NfvZXg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-jul-31-2021_1627690611614_0.4763550426342418"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-1-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-1-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-1-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-oCoyZZwW9zxQqTkgcZ22Fpk4EY9KrLVoWB1xBKMAFpjeZ+5zTgWWWzv7LFch8pz0n9zO+JEyPdh7x7XPi1m75A==","shasum":"0c5bac97b5bf31a1511cc517d9c8ab4aedaa30ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-1-2021.tgz","fileCount":269,"unpackedSize":7817687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBefoCRA9TVsSAnZWagAAPmIP/3k3uCiHAyfgwtfAEBzi\nhNuyXx60gA32xjzp5UsWTw6IZUTYwFS93oym37UR1Ug28jeqCCA52xfg+QZ3\n/HKp87foFpsY6AnqdXFvO8GOH11eZzi3GHLfpsgl6CMXtCm3l/dB90INW/Yn\nq07II6Vr7Wg71QfEICbADPutF9SvBF+kjUxHCCnkUiY8RIGSE5Xg7rWQO7X4\n97F5h/8yM9PSALTicc3CYqW5A1i9TI4vwv97Evr5aLSHF1gcG3N0aeEPIvb2\n1pFdNlDK6qStZzKpiQllKR5sbvHW3DD9x65WE4CN/90negcK3wV9tf+PMOpE\nnJaRmNHCisEimYpcDhZ0MJBIMsZujmQYKJqfIi2tT6HIbGzZs8wsV90D8829\n50b5fYC3R/3KXsmbKipaW2t7ZeyROxFqPlHn/NMwKcgd4w2eOTJb7uCLhf25\njdK89Xw4kAkmEBLubJJDG3SIYdt46BycFHkGVDOdyez+/BGtKjt72MwviKSj\n0WXoWC8rIJgwEG6TgJxUI8VIub+MvSAVECIkiN7ys4AL5Fq9XXcqmR+Ca7Dd\n7QtrSSCEJLfNK2eliGPFbZpoULeSORoffTo6kSkpR/0ZkGOe2DY/889kk121\nTrIzMgH+RmKhV0nCJdnytRbcn54DkM+17gWaVa4tRGxcFJ8oZg7MjckhhlBF\nXDWr\r\n=usJ1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9EP8q8wkboGDf29dW9+SDWZKf3+yYJUb6bT6YRlqBHwIhAKAYEwet10/KyckMkTF+ZMNN3BshfFe167ti/e+Xoc7/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-1-2021_1627777000422_0.5265569652334579"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-2-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-2-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-2-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-z79ARWWSqiyMPOt6UlzFu0YqsEe9aEgpJ0sgAA/pnTpOiFmqMcIihkobDca2me6VU/Fta8wksIAjcw0FozEoeA==","shasum":"ac53e36dcb8f6e6f33838b998e53579372f975b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-2-2021.tgz","fileCount":269,"unpackedSize":7817687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBzmKCRA9TVsSAnZWagAAmr8P/Aousk++sWQQh772JFrQ\n8fLM0LuDP5UK9SteeZ77xqYqSrsLhfho7K//NgaqHm2mdR0ri+ADwSx5Dm83\n1LxJR2Y1oAaNbRY+ePRlrP3+BgkC40rSHOcJxWRA3MBrdLTN7CJfxi6XdOcO\nbo+eOrSBiKYr5SH0kusiHOiUXCHM/ygnfm6XMB2MnpAX6QKB801SQfGswErK\nVif7aoRd5x69AqC/5M+6cCN5P9uanIyHzJaCGCXK6aoPb3vtQw4hz0kw7NyY\n4H6ttB0I997UOjJhN7VM+nd8GwLfizLV5uVXVrpU1eIyDZPcTsSdlBuGNHZD\nkNIO3Tpxpyn3V4TQkJunVdP5Q0+j/+6f1cDK1UdyI+gJJFJpIhEXsxbt+kRU\ni5/v33zWZ9LYltiHCpFP1rzdtO8cbGMEVXawYYh0+7MrEulQWVgmBVd8iKgO\n/zvGiNUl5ijukhCTKde3p9oMOn0wpfimXgd418vl9KiNZq00+q80JBNa7Z8z\nbvxHXUNFl3Mjl15RX8z8daCoRbPXpZNWBQPTvdSTjjnjNfkHZGzc/QAoMCGx\nbf4sIXxwucfuRiJGGYfB23tEoVRSjQViLS4RDV/5phyVEsEHHCAqLJlmind+\ndTCUHty9waHYgTjZ6jjdYG60LLYYzhUzAyy0EUTIea36fBoO/NisLzKa4fJm\nhfCD\r\n=GiBy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrdStuhM9qFpTkg1oYwX2NOxLJkYQWhY896tpVO+XIKgIhAKOVFIEUmr9JVJKb8y2S96GWMTMV6b6piwDFEFu3hZrD"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"arjun27","email":"arjunattam@gmail.com"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-2-2021_1627863434199_0.3848268643703836"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-3-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-3-2021","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-jv8aOYn6eY5x99orUixKcU2W/hTf2FxTxIa3+2nGrboD3lZd6/EsR/bnBpqQBfxsZ3WBGVmcNz8zC2H3Y2szpQ==","shasum":"4c01b97532dbba9ee01b8d890ff2915c992020ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-3-2021.tgz","fileCount":269,"unpackedSize":7817687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCIruCRA9TVsSAnZWagAA2G0QAJ1W9I1MsLRkob7npyV3\n0AYiVUouMgiSfhMwS8JKcKiuLjkmymvGP/QZ3DHggTm+bLxBNMlqy+zVSzLx\nXg/o1qOkMLektLbhLs5zl2GrGGTNvL2slkao2WHATffpWHwYxVQZniCUNMh/\ne706tsaLUmmrcupVd4IydnCHcgv5JkuC+rEQUUInpD86Yzdraye2R2Z92VEP\n9B07v4YuLqu6KODmK2hJ+bfIY7UPoUwuPU7MWBybk1hPeKpsIXHYWtipbWoM\nRBC36qGac0dPm0hbCWdfAWlxQT6F8dabXYxcxmdedf/iPnnxYSYlDW/F/+o/\nU4Shjhrm96gmf4kXrvsPjucAXysGukFv4xPlrKy+WQZfSxmaQi0TJjhKUHV4\nEy7piw1qymGzniJD9MagV8BteRCxuYkqtpoBYvivofYsdOvtGl9nR1AZ6gVh\n9VkjO31MLY8Bx6zKINwYdy7tLU7Wcv/TuEkjSiBSziKe18XmRYYndJoBCGPi\n1T9R+3mBljz9P3x4yC36MT3HlJ6HdzrC4KxUW8NRqCvQH+XAxqYx61LBVkwA\nMaGkyPSHBbD58Yzrigj2QOy2gfgCArVDppGYLovz+5F7cwnLE0CAM6d/NssT\nY4wvVa3j0SniStrK6e0M9iWRDwsgbCiuVDQnM1vgwtQNL36OjAoQjTNJYaE3\nxbvc\r\n=pCqt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4g+sg0t4BYqi0GX3VkhG3Q0v0DriGJM7mOpilaP40BAiADQLvf4dnSD6tM3cbAlyNVYSfjVlFTJKkp7rdHovYDDw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-3-2021_1627949806415_0.381194174449081"},"_hasShrinkwrap":false},"1.14.0-next-1628029791000":{"name":"playwright","version":"1.14.0-next-1628029791000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-1628029791000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-u0u0PGZ2Kaa9qTTgCQa1ZZ8dOFePvg6prE8rsNvMnZyGH/35gX+1JLsbcq7H01lAKWjvwEdvlXSVz5iuKKMpTQ==","shasum":"5a35a1f6712c9acbd248407f16c52fef1a1b4c09","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-1628029791000.tgz","fileCount":269,"unpackedSize":7822226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCcg6CRA9TVsSAnZWagAAFs4QAIkwDgnxAyLxQPkCD6/0\njdL/8RwqMHF4Pi9Hsl//LA8ee5S9aJnWl7pDMRHOh1cGDtaPpNnwcJDGJl05\nzrvffvCcmefn5b6105+XSxaB5PnUQE5yOCIbYhJY+DDwHK829qj0YcSXV1K+\nqT8nDLikCBX3xBpTC7U0MpWaSt9KZe+8Iww0Bah7FTWKoZIueTz5NiY+vkMg\nhHrok2SzrsH6RNvEYO6vYFvdRX8K0ZmkL8Y2DNUAhX2T5d2TJDQKMlfutqIr\noKYebcse4GikmgfP/g3VLGpJhqjRAp0ges2nVMPbCMgrobPaFVWAt0a67yNw\nKTX7AdpR2PxD5/nqtRtUgluoh2E0ODLwmSXXlXuwa68dhUt2fLN9oR794AfU\nb4V5TzJK8nq/NkYElzOmapqsBGANfK+QpCn7LGRSq3Lab2q2XShNOH0I67hh\nuAVzoAHT2OfysqQmrfwQXm+vTs8U1ei6Ad1qHYdEacUqijrP2Wdvw8g5l0QS\nAFNCZy31plxboYacA6FkCBFEL+CKsOgLb3PCp9Ty6Ieltz7ebFD4G+WrAVQy\nT79gvXicKEaAU945p/NeVYzNS7l9h8L+dyeF54pvIKd1usc3q6yIefiTTQx2\nI33jLcs/so7bkGg6E/B3WfnWzc1munVC4/IhaDj1gtaIUAPghZ0EMCDpc2ya\nYxUc\r\n=qF5h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhNZ21g2zuFhYycRYfQbk9/Wk+4bDosYxuDsCN+x+XXAiA23xvyTZ1oZhnOzLK1sdqbgzf9p6wCO5Fo2ECJ47Sncg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-1628029791000_1628031034148_0.313312096725733"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-4-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-4-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-86+ZcB349Od6A2GvPtoJk7LV5sozo+fLczgVARaCF5l+TDIyDubVI3Gum9VTElA5DL0OwoHF6k/XqGZM9Mx5mA==","shasum":"748ed839e72d2be1c809e4d6869a43bcc2554682","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-4-2021.tgz","fileCount":269,"unpackedSize":7825969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCd7ZCRA9TVsSAnZWagAASqUQAJmgr3goHP0TzjNeU32n\n0V0jG70nuxUcvk0Vu/FEgFVyGVPiBEZHEfhF14M9udwEv5rHm0BT1dZZoB3s\nhxZtI9Urx387OQnudXM50nOwxqzd/J+rqCVZCq6dh1Cty9iv0Qkze+j2k1Jr\nvUmquXmesxKBvAih/KM5nOcQ+8ayVifXiO3FxcOiv+zUU5TL82AxfwOYmnhx\nFegeLm5AsY35vNjQeEDMS8bHV0t9dYWvLInV1DqW2ODe1sQJiB0ThH8EF3Os\nezHFWnWonIEIxaGvrYZQ+ET3f8kbAyg5lknLOEDIdnm4giStz62lWj2ElxMI\nFqDixLIcNeb5z9Yp+KDY+dgXicnz4o/Yd0oEQLWpPF8StWdnA3XRcMGv9gdS\n8E1M4gPOdBIcz1UvjaIpyjRXodnu+ZVsKsSJteyHnCTUKaWXPPQPhLZl5e7w\nVzAcjYQ3bKa40JXkMj0/qcz7V2MSZwVYo0JLWQNIazMrLALV9spnZtIg2BqM\nDaiQR0yYqKfcdC/ksi0DOjZEG2LdjL9imM9mHJ11ETCf3wuhovNwfFLaNNXD\ne+OfpHRlO0FySjiVPwEdtm30FcMBrujR2BdSflovlqhoRF/sS3ByK22CqwWK\nhncMczQzb/GcuUNtd4rrP7vbCSouwCi/Wyzn8ogxfTqhqgSe89nggoM/a1Uf\ny0IT\r\n=qypa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGfgv1WJT+QUvRpjBn3GBdIE3P1NooYddb5UL1ESzf1OAiAF7mw7/JkjdvlgPs9AfaAF3La4VTkj02HNohS9ZbO95Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-4-2021_1628036825529_0.23886473675262532"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-5-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-5-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-5-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-Wawm+xJc4nI11IdHDsbAOe/qQetZ5DhvRkOi4r+oKIzyBbghs4wALWOB7wub7GGSMs03PM1JfDJrvinnI2UAMQ==","shasum":"407d39cbbf68dbc3cd1a3985ba7aba2a0de0d24f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-5-2021.tgz","fileCount":269,"unpackedSize":7826186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCy5QCRA9TVsSAnZWagAAWqIP/jDR+T5V5nh+SFAB6c6Q\niU9s6xzKlZEp1nS1ULdsleVnTbYZexkWYY6LNXYCB/ydvaVni8BgkO2R+BHK\n9+yg9ATU912wtGwsuN6HaS/72tUg1vR+i/6PZASQHRUm58fW0Y9ljHj0tL4J\n1JtJl9RAvv6XrgI6y3hc4XnyGAOvMGQmVvw4hXn3HqXgNLJufm+ngU3W2p/Y\noP+2sT+FJW4U58Lh2VxNC30t+n5+z88nTKYuOK1aw+jSCrRkeMqloBMndPCb\nvF9APaLAPOdzqXPrBt2sFkKT2ey3bZB+zRciECZNu16qc1nZ114UnTwXDnSr\nktqCBe88apLuRZbu+DGq+mAzP4QExc8Bjp/0KBSlg0KE/4WHRg+GdUC2O9Id\nyUtErLvJbWdbsD8wHsYnMv7+iiPejm8Gt9BfKY93daiFbFkq5ivEex+L2iJu\n2S6FYc9Ua1D1s1K68SeZKEjart0lzq93yysEEr9RSF22VaUGeBatytK8yv2e\ndCg02i1oB2pQDxiBiC1+I17vUJ4eYZ38dqX3A7b8SQXt5Msp/3/IHh/e+BKv\nax5YDXZBEKmH2NAWbphyGkrq5e+GvGhJOGihV0n4X9IX3RB6DEFapgwfsKB7\nSAzpBYJX+hBrP2YIUiv85bMVsZylENn6fz9ljCOWEN8tZLXKZuh9MGe/d3wm\nkwvE\r\n=UNa6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIH/y3aPayUV/b6ADPK6KX9PYf71fWJmQeGq1QRYUMwC5Ah9oPzi+JiUjSSVvIgyV/5PF3ZRx23ok6ia7aUPDua8c"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-5-2021_1628122703988_0.7340459959427423"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-6-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-6-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-wXRcLbAlQJz+2DbyWwNYJakwhZ0npIILvBjHFn7tX6f7BpXQBAnCZ7YC/e5wip2fKRIsM0c2c1zhM94u8YHXAw==","shasum":"722af6a8a9d43015068b9fedc9f8704d032ccfd7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-6-2021.tgz","fileCount":273,"unpackedSize":5753842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDH98CRA9TVsSAnZWagAANd0P/RO0qh5XksDrOYqS2Lte\nWzuzhlh+wWv+jg4tZc4ewMrja1wZma3ratl9OcRv3NdYG901bS7VJLY/j0YX\nUCnjREbm3IIeFq31RW+2fMtfgorFpuAlRAD14PAUA/qM8zZqfVHYZULY6UTz\n+uKahlUk3Uh70nfRfGES2KWb2x4oHhuG00b2vtMIUSA9RLG0O/YmyhOTpJEK\ngEwjEBS9gyKLnQQPRjwqaRbC0vHoywgmlulRpGMtOxZ3z0nq1yPfmfb+GibW\nW2sgYHNKtFjSvI0iw3BgQl/m2ZE+PI4wqNESvC5ATxfGSh72N0v6M/HWdZfN\njFnYGfs24bk1EuzGkPFD2M09gcMXM5PFsA9YuTvChTiQf+kq6Lrv4fUoj+6t\nW0gc7Gok/wt4GBsQX8RTPnrg1AjhH7IDSw1zW2mJLIRlJ7A1UqHJQ5aXj2wM\nLWcy5ztMQeKQuYoueRoZjwkU9t9sjMKjmoMXcFF4ktkimOEtVz4xR7sJOULi\nCAvECEY7JlvznswaSMnpA2JYdKx/WvesW/STF3Kh/h40mUMFuyhRjJi+n9+t\n4hnQXLeH2CNnXS9xDDmTvKS05tItlncBXWtvICClQBhidMHqFrxxm5VvyQXV\nChf9Lph5NFBRck3RXqV6ddVeEfYCVjpCdYn00H+F6NicMVpoPjWrx/19Jgtk\nfmtM\r\n=WjdL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjoTcetv1jINBI33xPZQNpVzgFxAD2nHnOAiuNZ9KUAAiEA7ctepyt0fJq1C5Pn42K0UZGlPAj4SkjJXnK40M5GA1I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-6-2021_1628209020306_0.7231018197080852"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-7-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-7-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-7-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-1sizxh2lOJW+Q76z9WD+modMS14z3snVhygW2vofk4T6m60qKoiQQ6Yeke0ryf/IUrqVWdWpOs3frbHMaqOn0g==","shasum":"762edbba89d2088d2406fc4903079e6db96d7c08","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-7-2021.tgz","fileCount":273,"unpackedSize":5755756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDdEDCRA9TVsSAnZWagAA21UQAI0QVqyfG2m+bECm8hdh\nmHEDRzsccqMv7Bq1QPyN99w9fm0mt6/mJD5cnj8KcQhvRS4eZYNHft1DVsJh\n9scmndzk9zn2044a6M5HMadjHuL810lgS8JFhmioeTdP/7IMQveyuajJ3kwf\nNb2YWmcOIUS9okrHzQnsI4uz14JMtZ/eYPq/Rw9at5ILog9wcgMM86Bc315l\nfhrMcPsxrzOOEeVZ/lMi653+nYThGSrjkYBgUzYM+1XDFVqGZVAXE3YwHRoU\nlJaFYLGghiRcvdggNKtcrjpj1PApB3N8e9FiQZfp9CM42wqtt/jvQOBm5dyR\nyvAXMEHYZelTtAxf6wiy/CX9/BzuHIDmbnLcp7VZRo17m0EWe1iHy67xJWRu\nBGYxzaJW+Of6+UdUsUlEGTBaHDZ3XS25BZ1zgmOMJ09XCWBfrry1y/LeEEzB\nie5ckwwBhiE+QEMhYz4V4yKCSvlSabzOAdOovVcJe42X74xM8AuHgXe58qUO\nP7kA/A/hb7Hq1PaiumNTbB5omK+G3GqXhzYtjvmngu1l656o3g9pIyeNWR2c\nZJtetl83x6eNe/qsS61xExA+FyWdSqI2cb6nqfsk5px7Q4wU71Sg2OXpnXzT\nd2ogc8nWdXeoXsUwWUmYCJ23RTbJ1mbaunFrKMe/evxy7KPyjA/ySsAPLfKo\nPUCh\r\n=PvMk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGQLIDG2vy1raukbS+WeC8WEQqE7JV8bomOilO8Cf/SOAiEA4jYVd9UJO7TV4JktsPLlxn7bpkz5Q73UwL2dfMWPKPM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-7-2021_1628295426882_0.8094747777833138"},"_hasShrinkwrap":false},"1.14.0-next-1628307477000":{"name":"playwright","version":"1.14.0-next-1628307477000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-1628307477000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-7L4nM12O6c0bT86s9E3IJuEJuRc/aLoAuLgAti8jPfu+lDuuFat5gR+SXxrFaOMsD1X7dp3lnlA6T4h+blc/Ww==","shasum":"d0e90996f347a52d5cf86690e57db5b9c58ca56e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-1628307477000.tgz","fileCount":273,"unpackedSize":5756125,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDgCcCRA9TVsSAnZWagAAjJ4P/14IuMZ0sh0YFzDu62rp\nwqAkBLUZYjCJf2n+OQKEIvfrMurgVBMuHJcSCnijozLftEixWq7DQUsq/Z/V\nnbSlProSiE8DakyVS+Lw821r3mvWzaNSAJH/nHIjmkbypJVJCp9OU9jgjnOA\nDz659g/UVy15nQdd/cqRDHoIS27AY4Kc9aZWOBT3OmNytRDNj52xyLlUxq0k\nClmYDQkJKh/kpiJ99+fWsgtBvM7ijAYaOO/B28NX6/2Pf3rhyDpc+3fAugXx\nkJxrt6eTEGXZvrYofv/Hg/Igu4G5p+ttFBndACo0WI6IdaF5sWh91uJ30kWG\nqnZGZrISiaruM3uJqfv0YoGEjlwiu6p/TmGbPDJX/zko4r5qof+DmxReBfuS\nKZSsn7A6auUJE0XWL4De17XI+QBEI3KRaN6FCdWhx6Sb1RZT0NVtu0IM5GKD\nvecSAYnVbFhP82AoBTpT04Zt6IoW8IbGeiMDajNzAD69xwsFOS2/8zZAFg7T\ne8daiyOGtLAzDD4uEqKbMRe4chDhOqalw2oe7VRWuKVWGeTnWARJn+38oMyL\nRvztJNAbjt6XhCLF+A+RsrRyjnHRBEbFDkVaxOmR7poZbZ+gqFrnyD0ckw0u\nOfNYrEDVhlgHCyVEMhgjwfibdPeh47gWkdNS8Jz9pJAVaAcTyHg5daVzjfP1\n348i\r\n=EnpW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBC1XcQ8FaHdblVj3DLfYn39rxT0eFj6I/NrccsQby73AiBp/d8hM/aLvNYkoGxImwwKnN6u6hSAxarxjdIlnoHgFQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-1628307477000_1628307612260_0.3711287805448664"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-8-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-8-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-8-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-0XvctCrZ4Enh2dExNaG4IuT5WqB7fJ3nXGdkQgHfZxiUlhAVLmnz4RtlQqeBx/hxzjQsRAfhnr03my3SaFoPkQ==","shasum":"ae18d9ddac850d19261b5cdf7df34432e8d79eff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-8-2021.tgz","fileCount":273,"unpackedSize":5762504,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDyJ4CRA9TVsSAnZWagAAtboP/jAkCb1L2moYi6FmlQn/\n2pRi56dCqN4+dPftyUO/FfKo0T313dZAbrTenRWNMs7mgKrj/5wAZ/tzcXVa\nC7FHSpH+dzaNTeB95B19jF+M9LGdTJg+XUIlGlh38tZEgXSwHSZSecLnzl4C\nM4COTS9zZ960wOqMTwGho8whDRXIuGepYTUlsvGd7t3occrL21TiOAdYu4Rm\nkvqCzQZjSu20CDBYCM//Uxjzng9cN+DIjCrpIQstyknRFnM3NC4W08Y6GdtY\nLRwbpUzJqzJUP26/d266q+Bvv8uPPjcNPMavMXLLNenusxgSZzg26zdvzz1f\nfqkSl+ypKfY3s1Rk5uDCZjBWDZaE81zTDw9oPqahYUd9rPKoGZPW/24A2bew\nP44I1FcuWMEfSE7kNFpc9aq7kc1wVS5/7EFgO5ofuLy6HXUNKEr8H12tG7+x\nhZS7ssJbRDz/7tUfI5rRyihax1Z5svdcLA+5AMku9vWAyFJ9YPHzsTT71BM1\nKX5SMPU0dhFasoUfTvgL7oOL5DrDbfMxvQjY2cYfzb7QZWjc/LfK+H1PTc5Z\ncBn5rn6sJJDGauk56oOpFbN4f8xufIEh6CubjIqQ6mLmqVldiDvyAaXZN/3a\nALu68adkHUTlVUgAoi643HassEHPlLBdPWIDfHc5syaBqGK8CpL15mRMltFF\nCjTg\r\n=D1KL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELUsOHi1r4ZqOviIalmonN0X6mR9//f7m803j+fovCqAiEAkeNkPw0ArF7P8yKb99LPa2ALHVerzHrbJgTrztFaR30="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-8-2021_1628381816535_0.8496274706127998"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-9-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-93.0.4576.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->93.0.4576.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-9-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-JEjjkEXJrrZ3T2UefUZo7YgyQITazPkruaFHq4YnNMJaBHc6D9JrbarSkh4S2lHXhqaERpiRdV17M4MCMGlgUA==","shasum":"40035e9b49a5c1bdbdbaf2bc6164216436c25996","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-9-2021.tgz","fileCount":273,"unpackedSize":5762590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEHP3CRA9TVsSAnZWagAAE8YQAJQg9+nf/YZL0t747Sil\nxAoqwuCw95m4wL6K+aOOzbEtCFwDPmi9SEgLTVe40UhFU/12QzTl3ZclVdsY\nJQ/xCWjzO8Kxxyfnns7Ds+utzskSKoycpHGBlARC5HfFQAztWDLyKAeFLlcr\n4ICzzT1873DHjc/Aucs1rOxnDCFKwlPMEktiK4DOGGA9YGKlWjWHTcfuyrpU\nWh5vDCAY+ZHZ9QlaLEYBM2Tcq5VjfsciTBYV/+gxOx9mLeUgk3Ul+aQbyzIG\ngrZ4YJVn9EOXWDf+5GVWxwJfYO2vGHfr0sSub/W6ENDxiweCT+OBZL/zRUK4\nPgBrNVOEyACvpYsMv32p2KwF9lCpxuYVPbRBFyHJvvk2CPqVlBTyEwBWkZ59\n6Njj/RZb0mvg857mK5/rTNCEyOcUUmwwKudJmxnKVQk1qoGIJ0QqPh6grVcH\nm9770n5OWEwqwugfb6tBox3VJ8XgJ7Ap1efVKpj/lTPqCQk/f+TqeYrK/O61\nkTARSrqFqkk9slwJQyty09oF63XLO9TCthMX59cjdpsxDNeDB5UJzyozpX57\n4LabQbslOm78H+0ug/YF1TASi1rmKO4O+T1R0ErJKwuVrkODhHbu5mpsAEdM\nnpreDoUB3SoOfTMyiCExnIH3pWbYfcj5tUWC7OkYESsY96lCg+6/kDoXayHw\nrIED\r\n=7gjE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDC67yXNVARrv3HjWEJYBkyYHw+zKpgb1Zh/WJZkDN+LAIgJ5HJxYmTNqteCS9Nl8Sp6xf+inIKA9Rg0m2K4eEiUUs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-9-2021_1628468215087_0.42231314291385647"},"_hasShrinkwrap":false},"1.14.0-next-alpha-aug-10-2021":{"name":"playwright","version":"1.14.0-next-alpha-aug-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-90.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-14.2-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->90.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-alpha-aug-10-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-b8iqgx0H0E+NeE41+cNvf+tQhkPWIr9oMo9Wap8xsiGE125UWHZGRCOrmvOaEfu0OcJyauufT6q/CAqDX0zBag==","shasum":"b1f4cd3e7a2ffc01a6721811cd7a60f8d746a4ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-alpha-aug-10-2021.tgz","fileCount":273,"unpackedSize":5767394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEcakCRA9TVsSAnZWagAAutkQAJ8YU9GULc2NL2oVrHWU\nxKwWbo6Myj1YHSp8qRzMq+Q6DW21B73nBc7Dcw/89Kap360z4RP+xyMMnLQU\nr3YSJqS4dQ3kCN17jNwNKqdrxXfyObMhI63fkh3gMacmnFEPTp60lVdfbqg1\nXZoEgBqRim5yM09TWp5QOOC2cTH0P0gkSjLfcNsltK3kT3jByQDkBNeSuDq9\nGGDyov6LvimQ76L/QvWDE/6m18Zo4QsSz793cROdT5oUTe3c+8p5LdM7jawL\nNrlz4B7X+bc8P1No8qNYz1T2K0Fq5gfJqglA1roXIqLMaEh+fZ+TWz0StNdf\nn8TPb/kdenEpOo00rtV8VYQP3mCZfJCVCs2hir4cCeS2ue0esK0DIHjmtvjc\nMnh8XqsKe8N2y+MOzY2EqeZYCFAH01k/U65/c7xnMRNSnB6mRIAiVcseCm5u\nB5ckTfOWNeIZB0dplDFqEaYTDdk6DEm1OKSlP9gcwR0yeem15io5vnMFoYZ0\nRNSHQfdSlWC2T85k41iWsKAlkgC+5I/NybZW+NcJ+sQKtpoP3qbd3tfAHa/d\nGJ9EpwraCa+eobM4zecJQeGThZhFbvIzp1D+Rj2GQ6sr7RAnIcNHZSISLQj6\nJNi+mRlOUB8EGjgbFHzrOj6hQK7mQIqeSfaHhRsfQnF8AVS3K7TPF4/lFPM3\niPkX\r\n=nX6g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/DwWOuJay3BSpR/kdJYaTr+2pff+tQz/c7c2LgO7evwIhAPJL3pSQ04995anaTGozwRU8hlem3hOcGjScGUuTrOJp"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-alpha-aug-10-2021_1628554916291_0.24814196113232412"},"_hasShrinkwrap":false},"1.14.0-next-1628705690000":{"name":"playwright","version":"1.14.0-next-1628705690000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-next-1628705690000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-RChJR3E8khE5TvtWDc2xCt0FTaPT+c3hz8wcfzQgSi8T89dL87Y8mD5byLy3KTnfY17JX51xo0B4K9cklPDCCg==","shasum":"aadabee56f5867bc31bf1a97eb4e517efdcda8c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-next-1628705690000.tgz","fileCount":274,"unpackedSize":5783368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFCLHCRA9TVsSAnZWagAAlN8QAITLqAAuzPbF4kW20h6+\nMC2bv2owI9s26ndK7rv5LmOvlSSEm1n7WRTsXpTwH1H9U4w3HFdHRZdBZX/f\nUiQwewGi0U0xq1xS4TRBl53Xf/0y5PdMAodxP/nsJRrykOLkEfXEo+eJbyXZ\nv/LKP4IFUA+TC1XIOdsiPjT9pyANH7PtOT1GJGRVcuygmQhEl6fuDRGXMd7n\nbiwQSpL+5tKICxfXxDjFdK+C1VqII8OqCzB5/W2DcEuF0C5cGOlw0JPoYFoG\nzS8ihXa4+pLzUac/ZPSKkafMvsodcgi1a7x8xj2L8oihmzg7aDw46ME8hqdG\nroaKcfO+SPXlUHMMQ48sjBUWIf/uPJNC3MjpktU/8FqWpe85kiidyPZ5jpkA\n4f8/LTWrW0+xoXmAlnZBAMsVrc27Q41b/dqRMqFPAILyMM34cw0g0LnPD67B\ntY3n3E+Ba7Zn3EmC+/B4blptc+WdTRn+UUxxci9C+b1dq5Bsj3ZtQ+zRHCVL\ny8OZ00cx4XCGMyLwMyHkipBO+1ggGMCA3oiI2biUlYZuuMpJ3uEVs8hr14yd\nuqVA173nRBKpoBbK+gh6J36lWkUk0c9ESYzE1jiRuQulmY3PKEyxAvJ8qaMj\n3Pd5mCTvbU9t66c+ZWNK9C+Yl1S4UtRDBnPNXPc0EOJlGQxw39kDPqaUoG84\n3P7P\r\n=q6s6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS6r5uTrZ3ssYgerFk21HTcO6D19FceCwlPFTQCPp2HQIhAP9AVqBwYNANWYJArQXy67kpkLZ0+CYq50ZDKasoTay1"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-next-1628705690000_1628709575447_0.44650122196886555"},"_hasShrinkwrap":false},"1.15.0-next-1628725459000":{"name":"playwright","version":"1.15.0-next-1628725459000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1628725459000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-HXZokYYch8Nq9DwfbF50nNvATp2GoLqUOpVtQG8OZNzZrO/wCNLMuCuzU8udGycbYoGoikXRAPGiQ7Wwk9hvOg==","shasum":"7062868ba70142bfe82320a88c2cd003132b3ad2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1628725459000.tgz","fileCount":274,"unpackedSize":5784802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFGMwCRA9TVsSAnZWagAAqz4QAI8oprDiYLzRtGwHMchP\n+yWQH9mLRwt4qkVeGKaJfjYed1JR3XZtr6s25xlsCdOTdg7MuC3SF3sPwbsT\ndWH2fmh0rVoVllWy1jEypha4ZXZjmWcLT3aKup9EfK4MImwfyPw8jfJPR7LI\nb28J2vOPYnrJ4+84oMjYWcnuhLlSa+hw0oOy1trWqpEP12C/aM5ocp8I2Q5o\nNun8qxPaEZpusWvlFlV2RTfkcNXDmU0j+dVzDHArfdCaqXOSSoh3sJ8jhoGT\nHCmdVN/ut66pOohjX/YmeIwS9i7BSjnJLB7b3fVYrQL6/cfOcnyGh7JWvGQY\npg+IzT/UBdjt2br4GMgmEMNe3Vc1FXlhKtdYqJ+qfk092QYDhaiF8rdcV7Ra\n7VLSMUK/XoVQBZopmrDf72VTfcGgAtJ4EsXJfjNqmfJohQp2JqV3uqMMBHBz\nWO4WNfRGhgQZdW/sx6fEYfA2SU6OMu/EcmtRyjTpu4z0VhiIl5mVw1a5xSuj\nnBvYore9UU6r4RfX5FAgzEX2O9m8zb30toONIXhRKlrTtBF5AZ54aWlpB8ye\nJAV0l4DrLyU5Niocc5UrV66Tj5N86NkeEx3MHTZwaNW1DoK0YmhbvQcd7n20\nDWRdwiRefLt8cJ61nKdgqgG68btBEL6bZrPPYwQNo32j95EMH0xLFJV5XqLd\nSPED\r\n=0gsp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEZdQbRR4RnDPAHWDDkbL6yYwTecgFsWCIXNhfPbF62DAiAznf90mFUEN6nBe/Wzk8D65dQD/6K//6geaxBGDe8Hsg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1628725459000_1628726064644_0.20105150464458044"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-12-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-12-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-12-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-PyVLgN1lteGSgYUav6OgRzoifKcOKI+nVitP/ep4vkDmFQkawde/kZnCo1LOmBZjh1AyN4sGxDUEPsds0EujMg==","shasum":"ce09d940627483cb54558f694cc2529c0846b5a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-12-2021.tgz","fileCount":274,"unpackedSize":5784806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFGhvCRA9TVsSAnZWagAAJG4P/iqEqa0q5riKbCNYQS0i\nev68nvShzS+tmpXc19a+GVtJsoU96aIQT/GYfleoYdCcBpITvyJ7CyChXPbG\nj0fxrPBnHcjdVwT2s+GrnPfSQYJGAxn8Cj5BorTwi07+W/01RZjAesg7SLe4\nqRkw7HWRQxq3b415tsZqffquNkZWz8ApNdZ0oDPvPkeJSuo/twORXUsWIdjH\nxaONqph1cTkpiBWhPFh6dMnY56PRuq5FJOGGYhca1PxyL73AbFx6NQPOFPdV\nOzS8jAdXZRR4bsnLLnzGC3dfc6vBk2brtqcn93Qd5papY3M9JmSE0uNNEebs\ns/ZRPMz//mxRqpVB2M2tj92UoQhqA+wfUG/1Wn5rhY0dG5pOr2qWHkyT413D\nKk50pYCZ8yz/FjVOFw2i2Kc17mdtOiyn2FLw/qKvph3F5Df+o/Klau5o8U5P\nj+b+LPgYaVVDuQ1qIFZhZTHHjfuGhJr6V5tBQZdThobeoouw7l1oDBlbFjxe\n0ycDtJ4MMl2PxIfT1YeeQrD/0qJwWWpPTrFdTBGsIsodAkI9IzSryDKIc7bb\n39iUPbPdkaYWP0JnmvfPwXWWB9u2vBtuUTbMebO3QlRPZ1ZE9ECg052KNBaI\nCnWZeGHx/39ZFBuhl+nzxPToGShl4Zo2xg0iOIOe2b1IOebX6M7qxwOtWosR\nMXPT\r\n=r74q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNxben7gZIB8wJi9c/XhdhewjtRu2YwMCzAEc7QWrHJAIhANNUphj7KOtnN0rrmeXxPmaQbGDnXFLjOa+/6TiJktfY"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-12-2021_1628727407031_0.15338518960735792"},"_hasShrinkwrap":false},"1.14.0-1628754809000":{"name":"playwright","version":"1.14.0-1628754809000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1628754809000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-Ms0pRrZG+WW1Y7VpQm2bIvz8jpuDMiVkPS9OvrvtnyDp9CSmXbFc4cVo9eKvAb/O592Vwv15Hqacf2t96TwTpw==","shasum":"a19dde7ce8275a725c6763ecb6b3f1d7f201e09c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1628754809000.tgz","fileCount":274,"unpackedSize":5783363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFNQOCRA9TVsSAnZWagAAW44P/jB4iqC8VsL0XfN6ij5T\neeSD+8tk1kuLyk262EpM6R5dfCxPGeF5JlkEiWRw0b1JnQqzd/MZEtwl4AxH\nIl5Tlv0Wzx7pnvpeOg7mLM1BqUKH4M9ea8SfwGxn+15a/6A3eXV15cGyYwKu\nr3luCooda7q659rAwz5zRA8uoBWhRCEpgtNI4z2iM5nQpvCwA/kTxRl4N4T5\n2xoFkOS5oUacJTvPCiWWRNz3bQJcYDWkxnFi0eVMuX9BFw6DRt4g1Hb8vxEZ\nvsbiRAVx+/GzmILS99S9fRtcndPdiYE+3ySoS5uBQDvWb1UPGZT2tXdQrchH\nV4zj6TFbNaHmKjACGtCK2ZISvdNZdDP0Egzo93RgHlLF+Z4sYYtbgF5IOMJe\nqA279jYpbrJ0Zxt81B6p7VtBcDngd5LXT6grYoMPqcbPmROwzQ97Q6+Y0QTB\nfsbPz6TrBA5fAtujxthchN13T1uGvVhl9r5UJUToGamkZDYV3MQKX/FGIVn+\nay7x0xvthF5RMNbwERaABT+sR6uDUn8c3nO1ZXNdjzhGH2h8ER8lWufpDF9K\n/J5cS+Ym0Vdr97Q/fPgSLmM3O5juoABy5Ce/F8ezxn2GXZSf8+kHBbGgx45I\npx15i1LHrLwLxpomrf1oJ3fj9MUGEMaHrXJRf4fT25PNCYG1EPSouDtU6x++\nPlbM\r\n=6ymG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpffrSVbB4xFuK+2kw6DVIYA/gnWJW4XT2CEyQlZhDrQIhAK/LzMYr0Nr28zQOX1khO5eodQp00BPunVej28RICT2X"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1628754809000_1628754957985_0.7570061903235743"},"_hasShrinkwrap":false},"1.14.0-1628761546000":{"name":"playwright","version":"1.14.0-1628761546000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1628761546000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-WAAtLZOYiAcBHW4/M7itpvjhGI8ULjX6oDlr1xKV1uNSlFSlDOjqsnCH4UbMYk8fmbsuqXamoWJm+pf51jKx9g==","shasum":"a646e0fa9ee074d39efd3caa675082aae9cac781","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1628761546000.tgz","fileCount":274,"unpackedSize":5783455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFO5WCRA9TVsSAnZWagAACfsP/jsVHHjOfRMHYBzkfSe3\n/Uvb+DpJ9hIcpREq1QV9pLwrL6fkPRI9GCpWGfw1Qt4Cjd74BK7OEJE8Pik9\n4qiROcZm8c31eKeRd7xnzccAvUs2kjv+mzEf5RdlL7cHeNRybxNPvast3oKk\nqoGZcJUcHLQAaKvaxkT4iLl0KVDgV0NGQuHklMPURwFCXwHeJRejtkfjmE3q\nox/e9wUGHJrbQlL/2UKVEME5XqiKP7KF6qYH7nMFEGHuab/pjLb2cgQ7tV/D\njRyk078bu9UxFmI+/GDDyqL1P+q5UBKYRGszagBFIn8kPKcqgzEA8U3sq1rj\nfhdTAN7oQJDQZJJZVvq1D946INBA7Xl0rtGz/OkACZOq9uaaHujWOQlxWMZu\nNGfpbU5xBF2z6UWRqFwWZsD5g4n5ZaZbQhdmXVhSayG9Cx2kCk4QDAMJDAMi\nQfAV7uiNEruEEuZ1Gb9BxY+x4LvuAfxGxlaxakkPcJHLfMxIZgi0QuIaHdiA\nCfbDxHYvEPZvf80R+esBleI9YSL1SpAmFpAx0gQIW6xAl/k0C5MTmUNeII5x\nENC8ALOdyPApO58NSOvvhKJrwFLxdxvbRkDs4bs7NNeFbgBoozh5AIc2+3zl\nfc63asLYVu4OWvKUWrqFlEEwBf+R0RpoD0nJV7oLmFhklYQ6P1zn2VyEjtgA\nu443\r\n=R+AO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ9b3h5AQ278QaPbWMtZ0Lo7isPfhOlMHwSb7orgtNswIgcc+Osh7fhXIe6LPdEfxi0Y9qxBu3BYWjsGIOYbZkFQU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1628761546000_1628761686633_0.053764616767194795"},"_hasShrinkwrap":false},"1.14.0-1628783206000":{"name":"playwright","version":"1.14.0-1628783206000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1628783206000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-+QROl9EXwyqCDY+nSoplqE8Gz5L8Y29Hb9TwrBqGiF/UzodB3PiSA0MPnIepCkgRRok/eNBfLzSB+hdL232nrw==","shasum":"fbe184688012790191f93c111ccdd05f0e0b4df2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1628783206000.tgz","fileCount":274,"unpackedSize":5783697,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFULlCRA9TVsSAnZWagAAqHwQAIP2VESMepcqa6sXbNUq\n0ratrf2QIVOF6fzZAi8IFy7ULWQ6nV90AXcSTzLRUlti82Um4OLe5A+8c1Bn\nakw51jg3FaaGaQW63z0q+U9a4m25Qr6sf6jOROwpOnJbVfvN/Yq8HBe/CzHi\nKgDpsHHK0altZzH840tzmCF7GtnhcP5XxNLgfwmFkZwOt2cOxIYgQmlaUH7Q\nBII+mVb+EC2ZZ3WbJ7aZ/ex6pwkZ+2zVKkoQnFCsgLANfnjzjYn1CaZQO/2F\noK19nwrymbxLMv81qZ+D+udUh3L0mHWQy6z+nfxSE9tZWodBCAWX4zCBrSBO\ngou2TCNV6cvBaK6MsOpYUCZGfpg8LAjdMKbwHTgbqp4n0IXnW3iwpPjEeXRg\njRa24PfAAPtUxmqsIj01dHGYhw0sfqeb8EmqBYHgknsKi8debdJGNfptbGyU\nx0TPAJJsvQgqHUICTmmqamycwDm4ngE8cwqAkOz5BCLWPP2fYOq0RunkbGa1\nOg3keLOHP0rcrbg8Ipf1v1j30OK4hxf88QadhGsnVHs909tJAhN2WvkuCSpZ\nccDP0aaWkuHt90c9zc8W+4M8b9tQL6RsP/z8Y7hs3GiK7WwdHCwC6rRt+k7l\n5EsNM1KLk3oAAJr3DT/B8+yhthuwLvZf0YndtO0VkpUG5PwoxW/r6xhdmKua\n8jzO\r\n=iUGM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvxXjyUztY5nvGDzANbNOrYSpgRcT0GdbA3t4Y3PgRgwIhAKfenYSE6g10UbGCWbth4auJIRpd35FJZowfexi4xdQI"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1628783206000_1628783333342_0.79131125329774"},"_hasShrinkwrap":false},"1.15.0-next-1628784536000":{"name":"playwright","version":"1.15.0-next-1628784536000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1628784536000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-E9Y6nCObzj2VLslFs+3ihuiT7HWP2kIYxzN/11btX8R4x+RVXABJjcJ2F1NgXDaMi6v8JKZobW3D48sYVeGtbA==","shasum":"b418a22ed73817414dec00d33931b3a1ddb44c2b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1628784536000.tgz","fileCount":274,"unpackedSize":5785661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFUklCRA9TVsSAnZWagAAKI8P/0PoBXK3sgZNt4N66pgD\nNZjiazTDFjekDNZCGJpPMpQuHBbOG1hd2PED85M5eM/V0lZ9f3289IXZCEKA\n0YWk2Ff4iDU3o6I2CzVrGg61+6/0nKJzxdEN4I7bYdQENWdogFbZddIRhbF1\nWUy8qvZftgB5Kl1lq0cGk41KfQl/lCioUqw+6NPTENHo42CiwsqX5tKiXiG1\nrnzPRTDBr4gLgnGBOYPAXqlvXW1t0rtqyUAbB0G7rtjfCIzUM8GGHvcskXVE\nC/BdOTpplz2nwBuj9XEAJvz2n8RbdpilZDRUF5td+RT60R7U7LCec+Ec0LqU\nI0XTQw/GTveTF8Aoe2yWqfQnZzjqPxSPi4nGwgnOpBWa+tCylRWS63njlm5v\n6U3ZnqbnCAiG6IJYGAZKY1/pzD2h30eIHekjylORLUuuOQ+Yc7RTJMXSJQXM\niteU9PFZjuHi8vnKyRARuEKCmI8X+qAwY1YvFqum6NN/BzK6vtIEfoSjABiU\nUDcTlIM1OxZC67s6eILYHLBZloWOZ/FD3Fi7VnZBMXwOzmc+OP9CvQYQ5wYL\nPbtE+jb6QMVvPBZB0ENsCVwOETXK1NRsveUgcGgGsFyrA4AKiFeTzI6ckE3K\n1Qj/EvkxUU3aendiWAV9B5/TqnGqH2LdaPP0ruMjCmFxVUeeQvPLu3aZdhvB\nzgbX\r\n=Diya\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3THIcTkTr5dOpxLW8BpjzK1qLmKjk3Wc7QyCG98PlAwIhAMbKR0L0WOg5val8xbv2x2YQXFnCh5jdMMN7Kl8mRVql"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1628784536000_1628784932849_0.43028184003998193"},"_hasShrinkwrap":false},"1.14.0-1628788909000":{"name":"playwright","version":"1.14.0-1628788909000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1628788909000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-qiNwIGctc2EyWRVEzg8kXZcUdHUSFslAElkS3zCFQrdLJ8kjNO+boXcjD4usdyWBItiGXP3Zz014xPwGc932FQ==","shasum":"a2046012549a7ac24a26e0d9f04fb51282ee192a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1628788909000.tgz","fileCount":274,"unpackedSize":5783697,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFVksCRA9TVsSAnZWagAA/GkP/038WtY9wa8JBxD6XIWj\naZMOhQD92ja/9bt7nEdsKmHHUXl07Ftezf7iQcWvqvTwJuni+BDhpe47XacX\nB7KZxqrXruI4Nd2NqM1OJ1wLnFpNXOt9Z0DjFfMBUmSI7QGD9XJPzYt9vPpN\n+q3nyxQVW/m3X2yKN/J9bgNwyXHJcRhBJU3A1kB5aEN0jJ69cU9sFDTkdcEj\nz6R0iCKdMlpjqYS+yXq80A/xZ9v2arVqxYB4j7bjbajUzckdZxquCW8sRxuq\nbJNQbqlbv0LhhKoIXjTKdPLErHTroAp/3EHOY6fwjjZZM09DxmXTiZKA79Rz\nrYzFk4baRbi/j8OkMUF3py0O9fkxK7nsnekMWXvObHVSYRYrhkkmvi2K6J17\nkFZJg/GCv1CU0SSJI2vBULvuObj7acTJRkMcAfrIa40GaKIFGEvPxoVWhtzP\nwYM9r9AKbqrXd/aH/fmX8oVEwyZWJu9DPhZsm9PNlFocOBS5VoGymBKFiuPM\niWXY4YK23XnYy7NyFoFtFdUM10ITKStq9IK2EtggjIlH7nUWd8lC5CfzzhNB\n1LiMqXeJ96r5pGpmMk1SfKeBxhMlVJYoASUXzSPaghcsBzfL6Ul0bLvHWVXy\nFG1EYIsNGJZhNXB5nJ5JNPBv/moBmOlGcxxthJ752leNQ0+C+3RHIiNX6QIe\nkK6q\r\n=zLDQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbREynJjX559gGiu7pEi2tbZwDir3yYtmQV/8/PPFTfAIhAMONPAj/RXZ72SlD/oMziyiFkYsATrXi/F/ZqlMNXV0Z"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1628788909000_1628789036342_0.44470758932591514"},"_hasShrinkwrap":false},"1.14.0-1628789465000":{"name":"playwright","version":"1.14.0-1628789465000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1628789465000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-PY6eROyHNlBuBOR3kCKVpkmF4RtkCTJEx3Elt3tEuQgjX6tL6t+T5WKdmIKwoVq+0yTf8b+zFM0odk4+P6gbEw==","shasum":"d8945fa783478f1bb4b3b849a4701ba05cdfaeac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1628789465000.tgz","fileCount":274,"unpackedSize":5783863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFVtICRA9TVsSAnZWagAAzUoP/0jSitfIeMY3AY62oDA6\ng1No6wNGAAKbHfk7Ic1ZxHbLsUgt50lA/NWA6zEvq8pQDH7NmxG+KMq6tG4k\nq/MuPgr1GYxMtYVHKV/hTBc7z5kOBZ1uBZUWCiqU6oO/+YcOgrxO55sQPpAl\nHNj+BMKC+c/mSrkKbxRAcjhkSMIA4zhVDsNNtbbZhNxpp38dUsyGC93CDiQK\nDfQad6HJcjY9QwN08o+OeKNE2i8Hrq8KqwW8Zr1lJkvmc+Fa07FEBaVjjghg\nqfmCpwTeFKOzlkm0JS0t1qKhePpWkfwOr5mbvjaLrF+fQ5Z3L5zZRAQasXV0\nxzdmyEDEf5aZStiFm1TQ3sO6im2Ye5D3fxmxCJWNp0xrgMzH0ro0hZmIJDhO\nlAFP66AyPYki5mhQoX7wnjZgYdBej0XAhi/qfsiDtNGBNaLvbJCkHP063vfl\n75kM4wAGJXjOFlTX3w6Vh7s79dLEgz2RO7ksRctk4Di0JEyV0ELbjw5cRl5/\n8RgMa1EFHHqZdF6rhu3iLXRFzI/9+ksy2pm5m65RGvCDuu+gzmYK5Fia2G4E\nTdRw96IjfQK4YC3WdpbHBgwFSTEzpl9wMSPi93kpiLU8IyEmsu52RkiDl60y\n4EjmlR2NJZG/myom8eTCPzSq9FQPqT6q93Hu1tN2guhgRYUBM2OE90/XTgWy\nXS+z\r\n=4NXv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIHbotD79JHXACdk1obRVALdu+ZizszOdR7NWevB20UzeAh8P+SpOkWAJ6cPf+MH6IU4l+r9/7z6LVC8ZvJTj4wJI"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1628789465000_1628789575861_0.6954888663398648"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-13-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-13-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-e1w07tFHfA/GiInbyEkeImHZQhQZo8ZBp4S5q7Hg8LeSlOoeusRca38LRGI7Zvvhpxshh9Fk6suF3q9u9Z2z0g==","shasum":"92d75f197be24d5dfe20dbd000a5b4efde57fb1f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-13-2021.tgz","fileCount":274,"unpackedSize":5785665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFboWCRA9TVsSAnZWagAA5esQAIUp4MF2f9qR9g3zHA5C\nDuMFojhzrPrgEX5bbBeFO6+Lr2PeqnTFqbcHYLOu7693iCKxffI8Gg1VE0Hg\nC6xJ6wtpzNycijfDlqYfR2LniFQjx0zBRqbe1MvTRgt27TZTorp812NsFYGl\nlGK/jiuSvglF7BiHCH+OKxD3S9T0Aidwf7mghUh6waS7+Q+vg5NQhfb/PWNQ\nSvts+M2vVWplIUf8I0BF/Sdh/hxg2ePqc+R86vrvDR0bhRO9l6e5s+dzcrdk\nyWunIlBfrRBCn8mv3sCQoBIi/b68o8DnCz1DG+L8gp8w6A8UIb5MMrZfuKr+\n4c/ZzHkYFQBwCj5koNoomGM1oOlyRCsT+zU9cdFGIYfwVT1oOrpr/SGCjdIL\njo9mv/ckRmkEqz2S30kLdZQN6Z8lpMlodponTHF9UBHsvV0Mmd10dBxlF74N\nv3EcfmZUfT6WvFtX2hzEkbGR2MiEXI7dwVkkoK8YhNDbXuRoBUiDGFtENjnp\nz/oRJF6hovLD8iDB/S3qHQzgvUV4t28Vk+p76q/YjWnRizIYblyctS8ubYUO\nuJvmA6w2Q1puwuFpf2Cc7oQ5kp8lTKLWw+yOI+bFHFhJYXn/6wiPPHR58tkx\noEeUqu9daYN3QOEOyALQko5GTu0PFIQJuYow4c27cXWB/CSzXeRpe1/B9rA+\nGHva\r\n=3DM5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPz/Xx09vPtpgHBJ+QhnGJeA89RDVc1xGUFxqtoIitDwIgJibOE9XL1UPEfyMaeOJBGy+eejCdfm0/WCMcvI0iHPI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-13-2021_1628813846397_0.04339769120069037"},"_hasShrinkwrap":false},"1.14.0-1628878084000":{"name":"playwright","version":"1.14.0-1628878084000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1628878084000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-p2ZPOb4l3yOMn94uGE4Qa5iL4B4NzNMoVWOOMxHkxvYt+4aeWQ1Co79GbaAClF1mCOQ3BRp/lipQof4fdpp0oQ==","shasum":"58d77e076a35a588480942c08300d0c866970963","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1628878084000.tgz","fileCount":274,"unpackedSize":5785152,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFrWPCRA9TVsSAnZWagAA1kEP/RlFQUmAuMhkFmLYjpGE\nDApPmhGRVMMCJH976VETwbMfBHHBXfs8EieIo7rV4bwQM1n5ItyqK0a+PdQC\n9T13uEpuSlHF59s1pN79MUZ5d4DXy6RBq6SEtCBUS1FpGgpvtsrf1mesuBHV\n4AzB7Q0AvzctrSUVvKswF9jroSpQZpwZuj+Q5Dwwm4ZFYyA0CPbNfn1YQDi5\nOwCghFC/0MiE8nYaH8RxZhpxBZNhr/YP0UMV++bSH1s6DgsLsp+f7NZRDSOP\nRrogNkRRAU0h49r7kQdfTM/ifNvLrE/6zmM5/bYAKZKvbLkOznzMB/bpvO1X\nOTExOjnS9RcC6v+SWgLTAHn525tCFb/cMTlKIAN3aZJtu/wm8R4DSCYh4ORW\nPkzlD3Pkldcr+k0TedgPN95x+ebeIrr0te/M2hndHrg1wyz8FTyOh4zieADD\n8gtNoTVJ9txlSufnA5Pja8TY3IeTuYzKLHXouKDnJFy7alTZhxZmL1nf7oo2\nfwWzWLdNvg3rI7KIfgx+ftKBuriWrTh5DrVwzwyPOeVMcnI0ji8tQs78xZ/F\nt8cTBHmcajBLJJqRO8u9kx+ID0q3jaqJuYMB9qKDT8NRehEpKxxDzeBTEI2h\nfz9yvl7I6+FktZTCnnIgSbTal/Z/zHgjj5242dMeepqBm+4s2gOusF1qPufn\ngmSb\r\n=ktVq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAf5hmlQgA6gnmXz0z5c0ojkXDJ4v9GiRzD/SAEqLl80AiEAnO7zWFOa3db/DbkzZrihPkFHAYOK6sHuGl97jsuN6ZE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1628878084000_1628878223352_0.4218600906161383"},"_hasShrinkwrap":false},"1.14.0":{"name":"playwright","version":"1.14.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-aR5oZ1iVsjQkGfYCjgYAmyMAVu0MQ0i8MgdnfdqDu9EVLfbnpuuFmTv/Rb7/Yjno1kOrDUP9+RyNC+zfG3wozA==","shasum":"18301b11f5278a446d36b5cf96f67db36ce2cd20","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0.tgz","fileCount":274,"unpackedSize":5785138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFwNoCRA9TVsSAnZWagAAaikP/RUvuZocLJjEu+fWjlAp\n52pTtCYz1XdmgfemShpb/yLR0PWwukhRfyxwZtsl39k2/7MZ8m/ZZE8XSt1U\n9d4ERpsDqlm/KPxkN4NzlPMZvKZ3Tehz/GXltBsTXjaiZbdbDYbG7TE7pejw\nFFfqn7O4nGyd4vnkHSyFXW/bL8fJS81XYuyJuIaV8XIMn013D2+S/a7nOyR9\n42FH22Qjv1qK/bnjRGWKeODeFGa0V9ysIZvxSEPRpopfQ6mnCp5fbBA5Y/3V\nhS/oVjDOv9S3QPszuUfGMCyKxXsTGI8JZ57yDonupsW8xl/Qt16APDqY9pPN\nkA64kf6ETFEzauAVlD+77CszvU2oIHsvy9I1Q/EIH7sEkA2x6obgf5U8olHC\nqAyAwC9pMWJ95QvkwWpsjgCzbz5V2uq4sJu9HcCgLMLudoSuYGdKQ8jx8N8C\nPfelNPElykabPOA4N50wEGxufxdc7s0ERODWT+h7pb0Dk6QOvKTyOhiXzaj5\nsTtmFRadV2WzuY+NFUoh6OuFuIKchJ4OzTf7cTfe2DTTx0L2++jHq5/tmYY1\n31goSlPz4C2HxZqj84k1/fpsdWip40BQWHANsVnLRX2YvAAjy9R88WdPUjec\nJt2wxt8u2heNG9R8JmHmKnMEsv1o/mdl8zQJ8XGi+ua5hYhkYAeVyz8ailQl\nJEC/\r\n=6xpm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeOxeKHAPWTJh/kq3F9iA0oq+SClzPMDUWjd7itgFh8gIgN6K6mxpSaJfRt9t9bq1W5hTKka3rS0Q1+HY8h36WsZA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0_1628898152503_0.8172377391987371"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-14-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-14-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-Y74fqkd6d6FOmRNGDrFgW42/ZnquTzWaCuNksFgALMfszMaq7/lt6nFMX1IBgDFuXcP4trlomPvVp5OD0lzriw==","shasum":"d118eb7285a1182176e7ae7cdcfa4a26b0d20912","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-14-2021.tgz","fileCount":274,"unpackedSize":5785713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFwt2CRA9TVsSAnZWagAAZowQAKFMCTidnd6a8CcVfjLQ\nwUc5s1V6PrZuZxKAo4L/K1djZuh+drjTnd5ZCm00gcCPPIcyF8+EAWBvGIAd\nr9QzfgXVOmiti9zc0A80AZPz0RVo/+n4goZKNdyg7hJhCCNvTKIis9GMuOGN\n+K7Pa2cPI9FvqGE6psHSz9bVtas3JAzXzXmvopNj5PhwhyRschMMKlFDHmYi\nQSDhMc2MqDOMNm2aX86H5uIl4sIN4f28pJNjDo4jfN10YaJZcBmSCvcFVhbM\niTkPYfrqyjAqIUOQSgSq0tG3u3SG2mopqQY8JZqNvUkEdxJsRrGW8IvrmxqQ\nUQeMwrQKm8+oo7zImjQ/qH2RHgkg+lWZdZ9h5GNI66GXZgY3GOLj7kaFCXwN\nBq7cEMpngpijHXzPcEBq2T2tpfK+M2w/q/BcKAIf4kPB7GThcE+xGVOBdPGC\nJJx/qAakU1iEaf5dnaxn0DqDxepF/jIcqOHSYptQuC2NfZzbRsL+WSOXZJjU\nof/sV+rtNjstU/9qBSVeghXKUgCnd5V+JNnxRxgkd9qxNhGwklZ/LcfjyAqY\ngWxWW/eHjW/BposSiUVymF4zRa7paXrMAnkr3Gx/ZWICpjojBA077dfLw16m\n0q0S7cWaMYRN4oVz2xJyz8InYkVUsgsi7Ow+LmV8j3zU/FIWdBinmlc2AyNL\n178Z\r\n=Dra+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4FbonmgI5ytEfd8a+M1dUXt2vtZv2dnRWtUJyrBjs2AIgGCgR0lCE4tUP5ORCCngsHs37b0K0GV1gV9m5/XqXTpc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-14-2021_1628900214757_0.6424034685587003"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-15-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-15-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-/Y9yCa5XQuGxEkuHfy52s/QSD7cWa4OIzfMP1XpNbV8Xl5PdTIFxBLI6jH2JvDvDaNdYkm/nmoYbjy1PhUzxEw==","shasum":"ec6f70bec40467e5a79f75b6c46cb53cd573b428","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-15-2021.tgz","fileCount":274,"unpackedSize":5785713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGF0DCRA9TVsSAnZWagAAZdEQAIZlB7nwbO28KY/Roikz\nnBgEZ7vyG1paLprX/n07ewxMTk4+Nb29TZEbFdqnIATh2SrxOA7/x1ZdYP6L\nW8jAB2CvGGMvbI3f32EwSWBw6Ydp6sTuq0f+yEMOgU/XEC4YiqCfNey8mftX\nGk7kLM2TlXS5sYSqZDaKYeBLsJbAUVxeRQ1bno0Z4CzuIMpj515/Vzj40z+T\n+sGwQKKxwIyjNaPMwHcb6lfFkgbdZC5V8JQ4htuRpAyL8id0UPsRQQlWumCd\nJ6vizZ5M40y6VLsVyAl3XXfMrrsc6fStBhzuTdC/sf8kfPdzKjlz8csSg5K5\nAL+jvQgYAnKN//pT3Xpxq+l3NHNBMDfW6TAqVfZKy1yVqOYAg3winxXHGwcA\ndbb0kUNgtprjD/s05VmDLVg6aSm6t+8teBgEjw0bx1GIBfD6OqUSrmuNdgvg\npPARwAm/vFbF7nc8T2zzejV52AZ2tMxSrs4/jr68VelhHa9ZboEx7s1RVeJY\nNTnkDzUaiK3IQW8ANiWg+xTxWtZkMrfLHrHp80p33cggR8Gcb0FFiqNOopP+\n/m8KztsLINC+FFU5HuZR7kh7g+cgfehIRBIkaizkMEL6bSonQ31TFIwdLjFt\nLigXL9/MFv//0mhwTNitbNXHCzcgyecIavsqISdAeuJk+QcaxDwsseGXvHrV\n+Hmc\r\n=9FIe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHqQcpEBvUZ8KovnY77MIrhODzIO38Z2up6C32gmy1hBAiEA4OxhFZadKwAsgodM7I28LWSZQrRzUpHYsXhKB7BACUE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-15-2021_1628986627529_0.23210015651212168"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-16-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-16-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-S1kcN9NZ17Jrhbffj6MsIZir3rvKVO6yzb9dmMAK9boi0GpRj+GodnXLrwEEpYJzCmfb2L0pxT5vFKXbagtswQ==","shasum":"4889d68cb4e6fd0ff8b89e4e29ba009a766a0d91","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-16-2021.tgz","fileCount":274,"unpackedSize":5785713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGa52CRA9TVsSAnZWagAA0q0P/0RxZcfrjwE9TtQxrFej\ng7gnJoF5Xvlang3eelnJRF5WSTbMSWaMKPuCnbURb0aSXBSe8jQE6dnU9e3L\n0MKr5LeykHWUy8c8oQzv7nC8MWBp4RKafwfwnfG0gJTg1EC8CA/1jsrB+Opl\ngO7oohBemVjjqXYudqWub0eCvcJaDdJ9JY0gC+hmtaqsrvI6+vwJdY4sXsWD\n+xWFoeTYgaVEdPoaej7/J731yK2po2A2LgNFAGRLbj+Sd8NOYBe5N+WwEh9M\nYbFV35XNaY8mLWfpqp6ETHv0adMEC865SpJwz+gcHAPD6+iP0BRKOrTmlyI6\nj3fr/33eFYn73+4o3ShOEOUrFit3PYWvjt6cqsNAxmjIWpeCYdAqzqt3Z2AI\n+BAd5FZUAB/Hq4W6jh8/fjCJjgQQUJ1eIAsp9aXgfOfHWEmXskYHDerftQEY\nnl4kxyAgxsmxd6OD7PuGxTwYTke08d7P13Hv8ohk/q84dMDieYev6C1Jt29I\ng5wHvb/qI+WwiP6kFaHRAjVLGCcCON/gf/vNAseTsMu9TpKXVbU6XxQfambx\nYuOl1w+j2uu1gsNbJBLJP8axVA5i4BGZhBAbdSqpnZEJdy5wk+uWypuybCV2\nNYwZJZ7oXwftiSSXOqtzLidpNgCf6zjCgFCtNi6+qVKLk/MRTFNIqKVEahcw\n/zqw\r\n=phHF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDIlCJFk9LnHj+UwzkzfZYAWGi85/NIGzkAbX8z+eTGAAiA27fmXUNZ2iJ7eI9yfDd5YlStMVzZzZ3SMBLDIxjR2uQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-16-2021_1629073014137_0.7390354794042377"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-17-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-17-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-XqjqrZmPmvQmtnGUMuEUqLGB+Z2xOnTDgZG0cRwy47SkmvWiAaZuOlZB8yaNbE4egacI2AUiMWBRvBJA7KlPsg==","shasum":"14538df8552a44f5bb7f0e54f975715fc5d858a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-17-2021.tgz","fileCount":274,"unpackedSize":5787046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGwPiCRA9TVsSAnZWagAA34IP/1yLFwH0TlQtyghQNPW4\nzr2O8Np+aZpjs23nmqO9WtI4N2z1nxidEkN8a7KceXXwOS/d/AA+1VLkjBoK\nq9r6vj7EDM6Qsf078mfmXLCxaiaqU8WH8lV0VNm7hyB4GextpNlYcaT1Xiop\n2Xmpkdo4gz1clXlUpob51TBraaxa2ekO/DtNTf9I6nLSKCDVLCuw/UkYSVHE\nvbq4GKOS8PSHxFPK3+3Dzr74YKHO2Nxnhhtp7I+6B4MQ6ttYCb9KmjLJIfmy\n5ZOqH24hu1OOMaSxua7FTpS145LFefByIVHrU8QEv9fJ9mtsGEgyyFHxAK4C\na1pfZl3xf8gpG4SIc20G+KazXX16pyXsIYHbt/Z9QnbiNtXOgo08K5xJmbZl\nJrFadDLdPpAObHIC1DLP1KyC7Ycij880Ic8FMUfezVGt6HlNiPYcp0h5LkWS\njXR/f4+Vx1IWyCfI4IsGTjZNjHbrO4Sv99Lc3jCKkmZPiGyM2+KztKaxG3ZA\nYJocVFZRP/177C/NQQ7Z/mb+gU6cpajFqoQMWGZQJbgeK3AAR4pkrkl6UFlR\nl4rxT0Ks1d1MkCCGbbZEYljaLqCwp+HHnzefl11z8j8Wh/lxzZ8Yvj8+L9Ul\neCtUb2TPViYSZ+fp6Ef85uT4zd6mJinHFVdO/2jS2Jv3vtP4kR+QEvBee1mh\n5e3j\r\n=HbPS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMSzbDw1N1vlS0EfjXmZTbmPu6xhsJbYgTvSxxt6F4pAiBpDTRwGYIgMJyCqYRuTb8+N28XNbNGcF+MXcquJRKbpw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-17-2021_1629160418368_0.8651475548325662"},"_hasShrinkwrap":false},"1.14.0-1629244407000":{"name":"playwright","version":"1.14.0-1629244407000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1629244407000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-h9dNUQXW7x5TqRvBbEx1kUHTj4PiW6UNv7w+S9cF0f7TrhrCghPZthD09fI7wWHhXe+XMLXcstMBN1sTscV4ZA==","shasum":"fbe2a812486a91aad336de3c9518ac9750fbff06","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1629244407000.tgz","fileCount":274,"unpackedSize":5786131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHEyXCRA9TVsSAnZWagAAxGIP/jrU87K9I9nTm049AHTw\nNOnt5poacg8GIfQXOoC/AGcTXK/Pa3pHEd0vnhTbHLKjzgB4It9NJseMxnaB\n+iwcT+XKcTSFfOAw0XOUxYxuhfbXYSuSyXrgtnj+Q5IzhejH+KEeUx4hP3sj\n50I1wPDDdhxuAXXADjoo6GYKNssQh9kdpr5rdL7xtHgnDgHTbtQMeZP4kAi4\nMWNER6OFknxwwDFmXMwz/OAkGn31ebUdnynGtnEMoZcyhuvWey0adOt0DjNo\nw+P/vhEgw4AB/ACLZPf+Jawcxuha/u0TSkrFXLQRKp1RhpkKob0SiMxrFGUB\nC6zuQBaMQcq/MUk6Kc/u0bPRMFavosf6k+kNXSMDj05uQZJpGofj2aC8bpjD\nr+nE62BByfTQMYSa/9SmGiV7A/eJnJbORxf/Eqs5EezLsnMqAC9B2Z+BT87G\niN9PlgdBOSw5a6v9CsV/Ee6Rd8z/SLVXppgV1nMTVwZvooSUqmzC9//2YcTG\nTG5slcSE/PMqKzJrZTKKN/O7f6HD5g2+il3NVdSISqzSIIDjL8aZc1MboGDR\n0cWuF6YBY+gOCF/oR9Tv4ju2EFohXBT+P49KcMl02DTUvOUOMKyoA/z6yGkW\npdTsqslXdjs5HX0CsODNBAy7dVTOj0WmS6LcWoyGU4fd1p7EIli5w0T8hHuq\nP35V\r\n=PrHw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfmE8SNRBJlLkGShcNqsZWdOO3RTn4esbKTs8GMXSQjAiBoPILF2niHoGVqBseOzH8cOW1H5i/hJPKmfrsntF+7XA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1629244407000_1629244567457_0.11951852918169492"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-18-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-18-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-+skoNCd4dQNKKFEuwvjWfZ+0fi8okIL/m2e0WCCV6Qj5uGNTVkqOAyhg4S15wR8qB7QTr03K+OyrqRe+VlKu3g==","shasum":"3852a9c57660f6616a8041e04ae244cf6e0baab2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-18-2021.tgz","fileCount":274,"unpackedSize":5788310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHFFwCRA9TVsSAnZWagAAOUwP/jcnmQWqNTc181l14kEj\n9gC9KxYUdpEPLFP3U6y8+OjD7gUbFq89oCHv86zh48T7NYromhexF/RBq8eK\n74Q3AZTQsCUmsxUe09g9PBEDvVYcXHd00BTcyhime32N7MkWZctkgQcPDFMo\nxWyc1vsNtqe/EoRSiN8WXxIyvaKJa+DAURFuyNzHFgYW26JUZO+7hEaYgyf1\nHnxhSeM20nccJESvGRHtgN9QmY/drPJ1fU2HkBBc9sEjC5uo6rrBfWh0cTso\nWK+4XdHGwOX9S24mxQ7l0CBK8eLzOLTpVZfMGv90xIfUrBekbjBIJtUULPT5\ns3kyB3QqJIBI13CYxgNKg6lthLAaUEVp8xJbqh1+6M8kRcAjseD/euvVML6a\np9ymgMAer/vxp2C1s51V2F7B92emPgHfMs8zFOMP5yveZsX+3u8Fkw0Wx589\n91J/bxbBPsOQekJ4ZKqiGxws8Y3q8bwflYcfUOTgRuyCwrUZ6Znn9DWum7mc\nLTbLos+Ncpa6ABgJxEA72wF1wwARO74xl+pznWLn2lzcIg34ta+E/QeC8K7t\n1M1AO7usEzssnbLMAUfF3Deb9hM9SrodXOQpHmChlssEaPwWVh1rooXCTyvN\n1yFEFtyYWZbuB5gSu1Sg7UEwj1e+DAQg0nTL4VCnTYK0m8i0DJLsqB7Qq/r9\nAc7c\r\n=p9e7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGk9DhOfW+TQU6dyM7Z1CkkFCY6tpeydd+5BRrsmrsCGAiEAhZZ3K+rA3PKU7exYEqpnFCxBraW63KuekMdLu/BkTwo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-18-2021_1629245808640_0.9625817058288821"},"_hasShrinkwrap":false},"1.14.0-1629293819000":{"name":"playwright","version":"1.14.0-1629293819000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1629293819000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-h6RHN7OpZeJYm3gKqkAa+kTw3ZUZTLlUERkBBnF2iDXmdKUkL24UiCm7fNp65x7ImZPWxQ6Gtlkcz3qe+ou/VA==","shasum":"06a89b101e9cdd6b0f3dd17b08738fabd6c5ece3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1629293819000.tgz","fileCount":274,"unpackedSize":5786131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHQ1tCRA9TVsSAnZWagAADNYP/Rib6VrTawVe6aFfqfmf\n9l3cG6sxeL41EInL/dCryG6CaKnsfbxQuWIvcmmEXG87JV2Ej/Blcw0UqPPQ\nJpXHQuqKL6b6lPcdwx9+f/qNuKKdGECir300e5zihouKrcmTboAAofjvo0u/\nbJRjUNtwY2azQpg3L38xNieAdv9oCK93jaOt6Ax4JnoKsaioAPc3gMx4s50V\nAbgqC3Z2LleDXTRKvbWXmg8WG0UrA8bVs1ThX9gEGngyIyNozuSiUKpR0FW4\nJGEHNWFxxhN+b4zDSogDfFuUQDg8cZKrwDnHBEfaRR+mr6c46PGP9ak6MLZX\nY1lKz4pircZR7t1cAoQUHYAUVJBMawxknyVkh4lpAiafBJJXCVQ5I2vtXNJ0\nMVRQM2YxLlT8KvoSOjain8QU65XP9kYat3OdqGLOzCjehs0B2OxggkdQ63Vp\nFNZzNNEhUfJZPxtTsLFalsp7lirldi/wV1z40Eha+tr8GnvGXX6olW6MUJ5K\nfQNM0c2jdBuDwotba9n6CMaSQcIvzQMXLnUu2BS9uQA6dPHCm18mk7pjGdlo\nwQpXgRFAhrgDRBpFsBcIiXGAPJoDP/f6mF2xMhFMVp2kcIXvuy5EetVmRRCj\nmpTthiQ6K4e6F72H36d/pR4MxnYL6ZWz5AukgHnjrpDfS7Ni9rRllMuLMqwL\nT5ST\r\n=B6O0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1DtkACYLFECQyH6p0W1DK895Wy5Ai5L6TEOdLWz0qkAiBpS7LNff5nqaEGg8lDYPwRkaAM2jU1rk/zmwcsyGeCUw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1629293819000_1629293933035_0.9741176889047454"},"_hasShrinkwrap":false},"1.14.0-1629316514000":{"name":"playwright","version":"1.14.0-1629316514000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1629316514000","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-cR3iIZTsE/l+8J4GC1yjwx3YsxQSV7IWQWijDp2bh4rtTmbV7RBT16zh/+MdbfzbwbRpSDCL6FC54nXtfRaDww==","shasum":"78680d7bba5174ca9bc566cc4ab3449a10e11c25","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1629316514000.tgz","fileCount":274,"unpackedSize":5787954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHWYwCRA9TVsSAnZWagAALBQP/18c9Yim9HYBicIIDdvq\nspUK00mfMC/R0LF5JCxgnTpWBwvdDmiioxGRXgfhBUfbEjK9ALB0/uYnSVPh\nomxjQtyPG/K5xccGVZyMZREoSh1ec0g8vbjBDz1d5rPAzK0SI/PyBN9GmqSU\nxDCR+qc3J7TCQOlaEipmmpMemn9UsL4RM8bfELpAwUX7Bu29NMXgLPCMSBCY\ndWitsv1h2CcCuVc5dAY+FVzHTfsgMWR7/hw8+RLaJwOxw7cMX+iVlPWUkNb+\nRmtN5AmDXOfre/GoexiXMOSuraS4rC8GTcEJrCyyhbhXfvVUsid0evCHkVgS\nPEBA6yODv0EIY6QWecPW0qSY1cIYGsU9Zl+Y5I03U3nTTiMWAtFDC/mZuQ58\najiXpOF1r5U7kL7VPXK9pRvZ5stnXCWfSghKmO5mVUTci2qeNY0Xm6PE260U\nDL3H1SBlbygkeC6WkWFgeYkbk8qPcbRlRCEoluojnOg+BDf2uC1QoWaXiS8X\nu12fzoWO/yqLeVSsE5EWu5csfMzdDswhIjVDD46dMaDHWWsQ7tCW81OTJVkr\nxMyoEDpJd4izFeTkmyRxgn0vTJa8GEsHnA/cQqXZkmCbEVgklLBRUg1nypFF\nISarpuWmypT2a7fvJsL7J3S7epqt9bS+4q59LI4twCgj7XoECSjzE5tnEkbB\noRV2\r\n=MXZT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnj1oz1TT/Zv77mlPL5tIcI/tKoYP7Un9TrdRzaS/3MAIgQW9ZATFkmAOB8pxi1hFsRAJcHi+EOCt6WNAvuZVZbbk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1629316514000_1629316656555_0.5912737763301184"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-19-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-19-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-19-2021","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-blAFcg73LyuRmUud46PdmVhH95+86NZeYgTUIiHkUuNn7tyUSdwcwTzWrALs07/T3rlI+XE6SCijZQ4bHaB+nQ==","shasum":"790ace60e2925082c8a6199c1f00719849712bf5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-19-2021.tgz","fileCount":274,"unpackedSize":5791867,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHaMFCRA9TVsSAnZWagAA+70QAI0rvdVt83XkanxZQ5wS\nsjeAoRy6K21zDZ4KOBGewm/TyPOwTFJTFK3qtdTFWzLwCRL/4wM0SLNTyy/p\nHrlbiYMVzRz2VlnpNBsBIobqV+RcpwQub41mQ+/qR4WGtMq1fCFNRuASEK4M\nSMPbSOJvDGz6r861W2sLp7uFZprOD5n8Y2OVZqXYpO1DLjOrdYlNtMGFIFjO\nQXnVx9duq6F8OxATE76WpUBdvwxs8gH2B6nqQrEdsM4WvyaAoIQvQdnhKI1b\noPIUs38VkA8+NWJzHUSIRi461kR6bw1kWmEVm3VlymK5CxTDnJd0wxRFTZOg\nEXMCviBBC9hCCJRzqHQR0iHerDXMyu7pGxC0nIgNgSJwPKq63zHO0IkCtuwU\nyNGwsHhNZa9WPS86wB6RIojORxmZdPjjmUV/kw/OQKf9Vos6w9A7tFI3suYY\nBD8tkR8Fw2Usg/5SACb4BgYb7OlWzA8AgUY8JwDyVp7kyA/WivQLnE385Y2d\nYFcE8mAkBd7oqiUKUWJCg2nn9Dbz52LIohuzexWzWv5DutrmGlbHKmCMdyBN\n/LlNshUiycWnCN/jC1GFZh4X/fv/BGR1oQacm3yRjRWXfQLLZ3rW6qDgS4pV\nxETM5UjdVH22Vu4yKy54bArPM6qDr09DOaHt9y+KN/Qc/1+QMQIqvwDvMcqU\n0qPC\r\n=RIh/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFuqX+x3YtYw0TJYj0Yy2Ls6ljtES/wiXhJ5/fbIcTuGAiEA2qCAPdWncV2OnuRhfPkZxCDBnFGkx2pvDkCFqsodwOQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-19-2021_1629332229041_0.04306895749162187"},"_hasShrinkwrap":false},"1.14.0-1629398408000":{"name":"playwright","version":"1.14.0-1629398408000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1629398408000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-1bEdssT9RwoXENOf5Dq/WFBcm7xt4AOnQjGFYE8tA0ZU0j/JwwhitxJOfw8KtdoIERMsnLIrUs89AACn2PHfyQ==","shasum":"67d6cd7f3ad7b727e37a1753c6fc517e6fabb70c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1629398408000.tgz","fileCount":273,"unpackedSize":5786066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHqYxCRA9TVsSAnZWagAA4QoQAJDIODp4/BDiZFV+u0cN\nd88dhiNRmBb3pUvQ+ZwZHuihuSvACs9N5plbCg+b7HQy+1OyZgCDfk/wkbyI\nLpCJfhVUDymHB5pEQICtK9p3UHkQ6S/i6au3kc+sYPaoBIAsp34TfUiflX+b\n4wc43wQ4RePj3rKWqby95qbZ53WulDTBOh9C6ah8jOjji86eNxzkarDqbIhF\nXRSl6IFi2zQJAXEFLEaovTD8pdCDWqbpFKQRtutTvpA2uj0O0nup9nCLazy+\ncG+UIYc7Iu8FpkROWgA6Gxw3l73FNTzKdCZlY3fsE2H/rGM0A/cLGPhGq8LT\nkGnEeDPxm1eykNuZQx8re8Fgg0HFtQS+1WsQz0b+hs4NdLKRz8KLio4cqxxv\nIhBTcTD/UgW+Kzwdn9FzboII7No9g8OxgNEQen/4bixO0BTXTt+zkS3Yin1P\nChVlvyr41havNsEnFm+auJezNzYXhbcw+aR5E/rD+f9xYzz2/uDu60hf/svH\nnnh5ACzyoFl2tJoHUoHP1uzTgz6nPKdFGOSNDXrEWPjpIQtEEQZK1WKFbso6\nlYB05P2GnOgtiv9CSqei4Z09Uf0bZogy+HFewOFSsV0G7rfqXOqmSyYrtxre\nNew4SyqDcGcp2bD+1yrMzHTzp4wiPxUznC3r3xhGbNe1glQ362fTl0/ZFZkc\nCHMX\r\n=CcOO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGcrEhIyEfHiA0ltJ3H/TxWYvhj1rKbqRntarX8XHwMhAiEAxyVieEK2f0ZIr2Ckgbot2Si2wmcANZ/i5RMX/8smVQs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1629398408000_1629398577395_0.2986297090169294"},"_hasShrinkwrap":false},"1.14.0-1629408981000":{"name":"playwright","version":"1.14.0-1629408981000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1629408981000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-YnND2kMW54mSG+au2LM9SLX0N7+mYx2cNdamMhUCwfa+/TA8/zJuh14YVxo7WbGfhxBApV6/yw2U0d+vj3/NZQ==","shasum":"27e417dbc4acdba0253eaf3124f6f65ea8cca1ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1629408981000.tgz","fileCount":273,"unpackedSize":5786038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHs9hCRA9TVsSAnZWagAAXuMP/2bzFGpEDAocg9pViPtp\n7QQ18tAO10veqRl767ZA/wi+RkxGV+AhVJ8muMPGTFG6j517VCDilkO2rXuZ\ngN6FTZuE63tEPDDsbmB2f4ntgcnyfXC4NAQlkqYKIpgxp8oKYbWT9e5Z38Y6\nwEpyTMI78wFTUx/M0HR2BrfEf9I9dmRQucLy53vRTeSDPgvdQ5srUsYLokHs\nbDm3s7oN5eaXW9PL/rYjjqRhsAtIkDYHyuJI4p6ExK5Ebo3jimWpJLrq3pgO\nT3r6X2ZQ4DOR/bipDR9oQNEB6CoyNhgJBWo8enKHy9RrebfEu0DIFEYCIauj\nZ6IHQO64mvdabvi+sm2xK3Ok01IYKs31tE09bbk1KeP9rEFrM9UkEgoM5jwg\nhTuChLX2ghL40gNl0FWAxK0J1N80OQxFLcpI9XJVm5m5VNdxQai24NgBXrZ+\nUKUlSzvl3hm9zW+RAaQsj6xLZUHEwNH5e4dNso603NRIY9NRUydL/fU/GD2U\nvb2c4YG15CioS/qLQJY5y2YrcJKwyZpU5cwEOxK+Jm8DcHPFf1TqtV+0IROR\nqAVb/7J38Uqw+dpxik0cqtHDLqQG4pSXR9BeHzDMjik/pMnGZoDxWX/KG4EY\nJinF0vLomSx16+kk0xXvzXG6omU3UZHX7cZBp5oMArBIoIQyf73Qqg054g7K\nk1CN\r\n=kH3p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/Q2+z7875ZVfn5KfktLtdW4Nn0OT7NJjK9ZB2eDfRiAiEAidntMGvxtME1NQjbZakYKKWFrndcb/sSROA2r+DTWeQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1629408981000_1629409120925_0.8214687234148397"},"_hasShrinkwrap":false},"1.15.0-next-1629411406000":{"name":"playwright","version":"1.15.0-next-1629411406000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1629411406000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-luKek9fKTUSdb4tGMfSCO3patIyeNx2eox+M3xlV6dNOQlQ7ry/qMNEAAUlSlvFdAbWgIHIkt61rwf3dLadCxQ==","shasum":"12ff7d72346f4a5b96ea781e1686de3ffe029334","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1629411406000.tgz","fileCount":271,"unpackedSize":5786417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHuvBCRA9TVsSAnZWagAAKq8P/1LHts/1TN1xB0YoS6Db\nk5sjgD2rIuFbo75aT+nLCe+a6b7443vgtNFBzWnFmUvnUrbdTjTYwTQxcAnw\nTQaWfezCECEjMAT/EXTxcljG85dr9PLAlofu6hzpuTukN/Fsp7vnaDoE6N4B\nZF6lZvU+TJLGHGLdgHWgcfJNkO1t/OvUlqS4itRK+gJ2xZffbR6yvfIJs5AH\nrD/Zcx498aepkIOShHMh8udw3UY1UEBGDzbBnOob/wQEJPdUIzDMwnHMdYVz\nf3rcJx17kZjqJ0Gv3nv2vcOw3rfbrWNbB1ye/YFIr9kJOEnTmMitvbjKzoKp\nX8tDsQKgvU2LCaWIG/6xMvCOrXyOZ9lvjqPLoes4w1qQgzq+mG+Xu7uFrpjS\nW/gHfEf/5VDq1c7pfTaaNCSNQPEyM6+9DNaRtM+YQx6PvtDdPCFi7mcZqxKV\naTDt+Lf8zMpYaRoqlLDsMdH52DkCbjOPMe9R9nFDn4Ii9BkBc8Jof/c3UHOw\npRUxFvz0URzJrqKxewVxEyNEnLdB5wC0MN2jWKk4Ogt4HV8jGkmEWuek2V5y\nXaeMojnGzUlBj3MpRGz0ppYbVt47lVr9L0QfeZYexchUWk1SsJVnv6tuc/1C\ndeqCmBwpkoVGm7GNFRFR9OfDpZWzXXC6nRv0R+8ThAfpeXCSaF9dYs/yJHdt\nLdG7\r\n=tUPw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVWymT1hxBFw9MB7Gy2ScW25k2u6T/XkdOwKVkLLr2kQIgelFYWUHuK1CAzrPhHUJhQ1cNPCJFCrhZDs0LDGQ/nYs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1629411406000_1629416385232_0.5183371149718494"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-20-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-20-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-20-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-zuyfP3+FJOkkCn2SRVSp0CHDxYu9U8xcYAmXoa4oyxwRV1enLjXX1pZjrwetuzU/l4M2JwEMu9gmKjnVH3qqIA==","shasum":"c73c1ffea49041fec40a9e9ee96257c9ebc99e40","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-20-2021.tgz","fileCount":271,"unpackedSize":5788344,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHvclCRA9TVsSAnZWagAAjeoQAIfMj5kZG3j5o2Bw1+iB\nguh2ATwXmnuUS3EplGArjTtfGRa/jRC+93U1knQlCTGSKel7neBHEe9NAAUY\nKOIhw5KQ1FdiXK3JsxqX+0O8AufVwmrx1+SgLciXm7Sn/h8REY7HKY7SHTdy\nMq25jfIqgKq6nyC+Iqnw+x0Jn1Zy0psHeHwb0LUbN16Of2wn/mfH9kXeaLGg\nrQf6s0IndhREgAW8g4wvvuk2KMFlsVd6moIc0chISk2uuzbpgvMcdjLYpt1y\nnPh6WL/N3+mK5IJ/oCPhtI3ekPwPgypE2nLDOTXumis9BdT/KW/aBduOecWq\nHxMxXdkDEoqKx3KixF2avl0jzkFiFs9u2t4DydryOEIHkQdsqgcgPfvzwJK1\ncgFVId7+4Z6L+1KDrqig6nJtcfayrZvcx2V2ZjYyVr/aM9AFzWMjnL/Buc3t\nbmgNaBmMyoTCmXDIZk49DhgCHxO67G1z8i5afoLc1eICCNekVjJqGtxzyenX\ni6v07v0tbN2O3gew+Be2tipDrVaO8Thu/zJVv0nYrFQAqpaAl1t90cdCr5j7\nfiA4/l1kipSrf8UNsWzxmNgGS0hNLP9wuBIeaidDr65QaJa51TSsIcqDnsO/\np4YKBn4zyvFL1M9g9uB4D8UQAeOr0zze71V5HqtdGDkR6bs/CrVAPfhsic/3\nf9Jq\r\n=VtkD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg4XzxZSKtr6paoLlnjGS/21wAIvVBspY6V6G/Vci7UAIgLHcuIylWv9pAzWrkjUk2BzR6MElsIaPlUK9USTzd3+o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-20-2021_1629419301639_0.1396644401327416"},"_hasShrinkwrap":false},"1.15.0-next-1629421735000":{"name":"playwright","version":"1.15.0-next-1629421735000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1629421735000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-/trm5VRt82uP6R/JXwlF1OxtxO9tfTN83qiwcxvYgDbWaQPHsRoHppQSfXuFvv9Q8hi1iKGIWsz3xrLk7XsbXQ==","shasum":"638d8ae8379eca694b8c606c314b017da2847db6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1629421735000.tgz","fileCount":271,"unpackedSize":5788708,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHwGlCRA9TVsSAnZWagAAOz4P/3BSEldO969xyn4NdmrO\n9qalK95EujeNRp1gjhsXSOrkNgXdmx64G3pWcSJRWh+srJxUW+ECbImMSFFu\nOaIHE0C7Rh0e2mN8YdeHePCzyQ+3nvvj+XLFW4X5sqZVB0FcPByHfsQFWUZ1\naqE/WVCrRMThCBKvbSvTF37IzTCSi8QfLQhxzvkWN/wIuMGVEKCnt6PsMZs4\nBhIdw0BrC68qht0cmQ95/dzFllZhMElOGwcU57gumCOuNSafnbJeHOxVVa3q\nPtmn6QGmLItqqz+0tISxwfPRFeDANplkk593SVCzYR/Q1MeB1Oswww/3jt4+\nosbrsy02BPZoSrU7ohoJD6y6ztregi0ef4QJfJRaQPv9P82gxJfUffi7MUwf\ne6Tk9wLgPxhOt0w5hZsDRJ2NLz68QvF9Q1mUyAI4a2pN1Y1/pmUM0roKSn7l\nwSuFnHYyJfz+dt3W6/RTmDjs55h5ZEV5bOv8wLOXoBhzL49L1Yc8geYmRzGK\n6KpHTKM1nZQbMCzaFUX8xDCDbKGvymTP/DXDPj0eEwQ3OlF4HbUomczH90O3\n1RIFvOw2Xh2DvG1pamFHn9HPzeSmFkq0/o89G640+7J0BCV3HYxveUm0G9Vv\nkJ2nXYeIM+nGB8oKFZed/pD3Cc9BVFt50N7a8t0HTxxBAUa1RdmJwSyjmEsq\nIJoL\r\n=UDEx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEeaRhj8Bez/ud52W8HF+7US530t/OpPzTtT0fppQSMAiEAih593NG6IEMyQUXJi/wuUn5I9m6KUdVHRWbSKoHJ2Tc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1629421735000_1629421989025_0.13928106820766795"},"_hasShrinkwrap":false},"1.14.0-1629470760000":{"name":"playwright","version":"1.14.0-1629470760000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1629470760000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-osYKYjCzZzIfQu6t+UgDmCWiKwELb6X9eiamXhOde0mMO6uq4sDq2MrX5kLWoYt6U/N0bQzWKhXI2/HbYAKulQ==","shasum":"efb8cbb323ba1866efa95de371ce4623f4603254","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1629470760000.tgz","fileCount":273,"unpackedSize":5786385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhH8DyCRA9TVsSAnZWagAA93UP/A5snxUN4v7P420PJMLA\nGFNlgs7giqpC81KbkW4IhJwgN5J/AOGfuwaZ1CeYNNJchBAj8/TMwVOnr6tx\nqkPWT4pgczgnrPLEMkWszPM/zvOCTEf7HbmNKEe4Fxqs+UUESeMAoa+tWyI6\nnlA8SsR+k+1pQvw9LFygBHas0B+2aJSKG2MTjXjy+FBUoc0bA9RLyOlWcUMp\nR9uCXkILCReM8pehlCKU1l1lLFgoOx5KiPwM69yZnayZvdgQ1D766/TRbcSu\nyp3u67tzkyNwINqQqiXFRk7TRGR75xqxD1mZILDzIXiF8MQI6FZFLcIJCQKl\nSBzVrjwt8OeVjUpmw7nSn/ZpvyUS4Z0NlMpS8hppXOiXkjzzqm78Qb45CuP2\nBtt7StbCTrI+cXtNBc9B8slXlcjt4wS6i7ylWm9QpBuIt9nYCLZC3r8vw8fe\nk/JUxhWI7MQdYupQa2Xr4GwYpua7NR/uRVRDVa8uHF+xUdt+Kbc9g11IpluJ\nkJ7fVBz5MwA239af2qCmTYN9M74hZkw/834FWJBJx1ZCRU/SY+LRmXAE55qS\n8M2ivnYe9zcJtcf3oXfL+foFTjdCsxamMLCTqirDbHtFDJsOPUxkGcAVsQ7p\nzTO0wQO1FHWruFTnUv2qhrWkgATsNlHmlsuqIo0C27uu2tf3qXmzxqa0hIF1\n8Bin\r\n=3WGZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlbtbcTDs/HJ8lG+dzoqoeYrvlTiUoHzFR1asxVBP43QIgVEyx2d7R0Z8ho7ntBd7H065pj0DnRomZY74wjtlWWzY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1629470760000_1629470962034_0.13362799398072323"},"_hasShrinkwrap":false},"1.14.0-1629492141000":{"name":"playwright","version":"1.14.0-1629492141000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1629492141000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-tDFfX1LhP5dsbohOm/KhLOPJxxhY8PFXUv/Qnes69Fj6p6gJUhkFVMu9owgTkpR8tXI4W2rV9BKd+xqtqTKRAg==","shasum":"74abd0eb4887cf33b0b91591c32928300fe17f4d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1629492141000.tgz","fileCount":273,"unpackedSize":5786421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIBQ5CRA9TVsSAnZWagAAscgQAJVQ7kri1ThAppG93u8b\nU6UwG5FDf0YoUBYLbLAZkbqiyxl29qrF2dLk1/I3lASqVANeep6dyddxZVe9\nCPJENC+/dOnabsbnxwBsHTv9i4X63w5gdzK/BHsMIwbrLzATgYQMUoAkRQxh\nqbbG74uI0NG66sQNsor1dZs4gpDh9fUH/1UsfxqUl2P6vTDf5DjF5Y80xlSG\nT9cdcpOC25HCQGEJIgXkiR4S16A8NHW4sApRVaWL0oz/n7QsH8Z35dX9pxfO\npHmfVSk8zYFZPXqR1/iOgH4a6DU2rumn8QlQPA6chBFDnC9nmZ99i959uSVj\ni4dFPCDnho6RhStVft/1DUW8rZi2GhWdJ6vQ3IhZ3sK+AjX8Bi/hECxK4iM0\n3HpoFYtQkDDzxcDBPp4E9TXT/5FnjR8LiFRS28lg9Vt6bXKcu+kA+JmYxu79\nXErXZ5Td7PE84zd4Hl55+ke1MNC9iiRrNrtqz744NXSrS65sHE7zjw2V74Ik\n6xxzyXOGjTXcQ36V1n87o0LHY2opeUI8DFn3IL3SE0RyqLMRzRxWkNFYDQld\n+0T+aPl5zUvnIfngv0m5vNd/pIuSm25zrDf+0Eb/zJ03JfIATD9WiPiFmlLd\nRjIK6gkwpRRd6sfY9FGoehtFPVM/GKV3RqtM+9gttjp/zhSs9E6cvKGkNTwu\nG2XH\r\n=+u8a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGQYzpBsrfuvLY7Tf1Q+amFNHZNmclmVtEaz/P9RKZVAiEA0Nfa4KAVhU2uKJtWFU2U155A7tkVkGY+W/WDLAoltJw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1629492141000_1629492281667_0.7840963764422273"},"_hasShrinkwrap":false},"1.15.0-next-1629492027000":{"name":"playwright","version":"1.15.0-next-1629492027000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1629492027000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-ZUvB1th2Nn3nc3LEEA7Kys/ATpHMJe9hk+6oZAdEVFnpIGp2TjwRRHefBWC6lZdKsENKT68NlbGU6ItGXKDktQ==","shasum":"9b39dde11a6d6608da48eab9318c7c1a4f2bd7b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1629492027000.tgz","fileCount":271,"unpackedSize":5788959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIBwNCRA9TVsSAnZWagAAl2sP/02uJmfUAWrZ7p001iiJ\n2iSGyHDm9I+E2IAd5s4qaaT8p2Pn0p4bDeewIeR0BVHCtbaCKjfAqEVY3kGW\n8BsjJpXR3bwr0WEnKZmgaBrzAxVwjOxrsDjJdIE6RUNy8DY0cuznH+zR/fTZ\n14ubfsQX0MqkdAuVWTCjym2LJwjbz/F2h6g8aDm9VY1ZgHEwYlQ4uQeehrYo\npVq9soI4xqXVpV3Z9rR+WZURMsXJ8kr3Y2aoYSpr3EsI6MTLlW1BV+2IPBa7\ndf7nri1XV7MjTFkgQyns9XCSgDSGzU6tqd9wGX4+ILeqLF4xeb+E5efJM4Rx\nmkhELF354xJpqyu7J57GC3VBKf/bN6RAZM9uV1mJ2cS/oepjtflnQq4524TO\nCBM7cUP7s2h6MthZLdlnHVKqLG6ISD8TG8QUeNvQofNWz3x0LDyWzLQVW7wn\nNNFj2XzzV47GW/Xz486nAOebaLo3sxRbdXo08Dm5qHak8gpo/PDiwq+C6Zn3\nry7IFBXVK7POsuwuJgwYgQ4Zav6GVOxtjXhhyELHtCBsJ15L8MqpQPBHpAdt\nIgkVTFMKoIQRJFc7HDhzXYtG9FEbv5JDeeHLAcC9junzXOWCSFFKjRbd9yl4\nN8+Wn92SL+2s0khGJLYtqlu8hkxpWP0Ozaa3XiX5CFEBm0VICL2R1sCJC7Y6\ng43m\r\n=WR8r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFye/rX/Wf0AR1Ns2RjAVCANNC2lyVSsDg7qK4sU4cUQAiEA7FfwJnz0x+lSL9ePjQyI4xpSs5PkwDkYfUfHW2IsUSg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1629492027000_1629494285308_0.2785710480851211"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-21-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-21-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-21-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-qDkx5ynOzFRihBXYhxSvoehtJDLsnQwThjw5OG2cNniBEYRoj4Cjwh46u1OPPNNmy4vWowetMBrTgxWIA1rdAA==","shasum":"8e3a526415adbf5492cc5f5f65e674cf35d11d1b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-21-2021.tgz","fileCount":271,"unpackedSize":5788963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIEX/CRA9TVsSAnZWagAAs1EQAJIJ8k5p/uB4bIdloo0C\n6s2CoPoLqrRmw2Odc+HjrvKd1EgxK5a4KINiL9Ygbv0Adl867gEnOIB3miL9\nPR0C7eSAd6w6ayRsz3iHk0BN98OiIsBJjKHism++nPgvjkfm+km/Isa0Z9xw\nktdPGwxF4HGgJ09q51lEuVDE134pYOLlDwBPDAtUtIJaOVHBxzVx/csiLmrY\nAmhAHWRlj8Rjcs6ySUQey8rE7MDmpm1/I2KPOTZEbKwfnaI6LKs23XhHAzBQ\nN74ZBxEITe6HVwJxtJiGEyt8MAwBx0JH8daiBhDIAMG7Us+4ug6d5/MDDeed\nFhwH+yMfs6vALjWforjCKqLSL8+sPhuNi9DjG8Mhou5/wM8Ttfzk/DKnbxgR\nV54t7kTKU+qdDZio4L3UGFyiLyY4Qr458LjgGrc3F2FAdQpJawERyIyaJvGk\n0Kg3CTDhaMeBXWebqo5gVEQpM+tVXGyn+24DRsoIoanpk6HKNZrFk+aznzeu\nuTQqNa3K6oz5SmHqYQgmrtM86lcRmewHCtc0864wfivA2jK1jkVOgXFckx1Q\nWTW0YNGmzl3PGRfuT2ZPp2GkGvVSN/dBz9/vYpk7tg9jHR/d1/33N7I6jYMQ\ntPi4wxM6otvrdOz01zP5pxBDnVDdwGH+Jw7NAYLbE4enDBnfRlEQa2bVukym\n8ieA\r\n=4xyv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZ61fqMVTG5bophownrH04Jzxw9PhrOKa7AxY4dlxykwIgEJiLu0Vod6TxrHiBi2sGtFdnlLrFINUAXTznWEfBGE4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-21-2021_1629505023191_0.7359705594772172"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-22-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-22-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-iyn6+hKiEpssKzSQt9mRIm9sWd3Ng3sO7tJ4HTlYLbfREVePljr/o4ZbCMkM1R73dW9QvTcEa7ON5mOBySFLMg==","shasum":"9002162ef8314fc6bb1525f22941605d2edd08a6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-22-2021.tgz","fileCount":271,"unpackedSize":5788963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIZeJCRA9TVsSAnZWagAAX24P/ibIi1MoXcMExdR5jgAV\n8rUopQX+AE9O3CbzfBOW/PzLk4Cc2VeYVt+AuG89sdeAcYYtxqYl1Xo0NP+i\nwsqA8VuGkZ0RToSej5p4ZYkcvVmfOuZLI9adsnGWpsUGRM8dWQFBH1cq8r61\neRDxktHllkBensF7LuGWLzqRnmANGLT0J53KCbuGG38QhXhi3GSKHPdNEiwc\nZ1Wh0C5O+wNC737pAxB4rYrZ+krwvIA02IUk/3roee/9/PKagcwrXBp8bW0H\nlChc2bzcl7SbLCO8pTkOtc9yC5hE14JxyDTDQHSNtWdDO/bWHvZ6D2q9lvC4\n/aoUXQVO8L/fAS9XmuiHe0AviD7rocdthcHCFI6yyQnF1/+m2oPR+K9HByXy\nB+lEIrBAOB38q1X4vB95phQ650QDx1ZsNBqF9vTJe4IAQSVWWIBRgRrthsu0\n/YM8ct3Oa9huATDxKHKdJn5rGSv83FwFrLO92MVkYEvSPz+tZs3q7udvqJTR\nbUGNyNV+LU/bEX9R68Wis6NANOwiVY7yOsrAuPfJzdNkLnvv9jSS7oPehp5u\n78LF6a5YqY/wWxlZuajCSk1rWcacG7fzt9UhxDHdXyytvQFetD2e+LWSDoYs\nFqAKYTPmtwRdoKo7ei4b9wT2aiuzioTSqXCKDyBuU3ZjMxNQIvNSnFrvGycv\nlHHB\r\n=4SYb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7I7F8FH93cPKvxGpIkYBoNKG+yUG4LLYxeib5f3nXmQIhAOp1vNo5fD0+9AY9ByUmjsKHpRiiAjaSDf/ZcqtZ8b/H"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-22-2021_1629591433604_0.5292091414356361"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-23-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-23-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-23-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-mDMr4frLUGfP6Zk05XWXjEjE4uQnIGnnGenrp5/fvbw2COHvjRGV0KYj2Wjowzcfr+WgGgb6gHUo9HYEjizFtA==","shasum":"9652032da4ab866104fb0be0fb36c2bb37766d18","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-23-2021.tgz","fileCount":271,"unpackedSize":5789457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIuj7CRA9TVsSAnZWagAARsIQAJmPJyW/eq1VhX6Q712+\nx4CYrOy/I/i1w4lYO+FcgxzEXlfB6p8V4f6n1L4NeYnj3bfbCTog3dgFS94N\n7v9j0cThvRZSDMDLLZHz1PHqSze/PKqordZ4BxqrmecLaVKLlPJ+oO8r3YpD\nG8VNdLzheeMUrUPBq/Y/rl8Ab7fOIESgpBZLoUf4geyiSmSk+x43mCbEXM1H\n91AiO3TvgA2cAwHCc9iz1R0OyoroDDCUkdLlmaKHuZ5syru//y/Kp8ueJcKP\nfjJmDT2knyJmjjP3wjNpvdejB1uFuOLAAr1T8g1HcBw9NGdY/xJuy3bvcUvF\n/TJw3xBcjap8Z/cIr/Xwom9gDoKSeD8Oqti53IjgMtuDO4FaIwqVVw3yUuKr\nwuBIDkhlYjnIrECjGS3pwZQ+UWfeJQvHqG21tefQp6r/4zLAmEAUL3M4fDup\nv7vZfi2usD0pzwx7fC99409QvzV+gouZ48/Wuo9vhIKg4O02AOEfO5EYiqL/\nWwgfdwx75WqUKVA3UnFSLzoHEKi9BFA/ICxsPbj2f+TPXPJqINr794jU0Jlp\np6eJizBRz4EGEjdZarRbAnIR2fM97US9WhXtfjh884W1g5EPooCgf2Zgrpag\nnNO2WymQ2OriTlXmNpCB42igfu+RL6/oPRG/gqbdwrZhvRDarY03YcmtaR34\nhVNC\r\n=s70z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAPajG7uc0I+eECONdG7RrGummoT9OJeD+mBwaJ5PlptAiBCbaXjZm8hkhz7iJBmatFPYdiuoQLRlrOPnu2n3QSWdA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"lostintangent","email":"jc@trl.mx"},{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-23-2021_1629677819728_0.833816800972297"},"_hasShrinkwrap":false},"1.15.0-next-1629648287000":{"name":"playwright","version":"1.15.0-next-1629648287000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1629648287000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-SjYSU9SIZ0rYhpaSCexqpuSTLg0NfWgs/FCrRlP6eBg667TKAdCr8SaoYCFLwKrqoZzCL1lmM7GrBdTHiIc7UA==","shasum":"ebcc61d1b7a5c8fa5670a7c2b50ba6f13835327f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1629648287000.tgz","fileCount":271,"unpackedSize":5789453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhI2D7CRA9TVsSAnZWagAA95IQAJibz9h2zfZWY/SFW+jS\nvADE2xxHR5bRmmR9sPdxfoHpcBxawtFSCv3fL8+k8+v7fm75fUcTVBLYOScH\nFyxFFDFplJ+1stIrls4OIstozxXHUdv47KlHPfdXCRTDSXf7Mw9HaftVCkUm\nY3/urEyfxqr7s1zt8GB7dDaWOo/Wuk35rmGdwRcs0g7RV5iWfgcHqaAtVdvw\napO7ZAFGDIemCCMF13xcskPSBK70OOu8Z6bXaXfEIk14mCthfQ+ZuQ4fDs7Z\nG4AQGbluVku0H2Svby/2oTTdkCv42wVsBGEZ9WI5PjUVUWwNniy6QsH6qVud\n4EKJ1FjKJZCV0oxZTy2wrJxnoEdKliKHN7VT0NbkdH//UYHklRcHUP9CNR0A\nMM4c9nLPlGT4p7Ae4IpcqFxNo0W84PlHmBAxiAloUxNhhIVHVgo0w5kJFO+E\nOL0RJbegZyc8FFbg73EmXO9C3PzT5VNCJStmK5ORXdSR4Fel2i2MWoHArxHE\n6FQihtEgnuad+HGEwxnnnFuqSSAqei2QaN1O8AyQKtM7BOgL9iz7mHkUYrVN\nuwoIcwcYIbelwHLlOtVg4c/prst/IffLrW3iEPQVtYwnTDoW0RQDWpKD17WV\nMOb0+4+aTAU2Douc1NF7MYSPpz3nY24EHWAPMqE25zA0Py13At23KCFvdQpk\nh/xJ\r\n=E9db\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBoP0wn7gxF8390yrhszDmqC+sqwNhQXQuU7u1b0dl2qAiB/BUiN9TacNfweo/p8wLXtoO0oZZVKPp6mBOIbEbB/6A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1629648287000_1629708539585_0.5543931434687834"},"_hasShrinkwrap":false},"1.14.0-1629718845000":{"name":"playwright","version":"1.14.0-1629718845000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.0-1629718845000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-vLleB/dxjyFT/Q8Anlpe7p6wrcX6DB+g4GOJbmB/VzmMPdylal7MFR09a5w986CRNNSjfxOE5fZrOsNiNc9KSQ==","shasum":"9fda7cdcd1ffa43db042d755e5be33ecf6729cdf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.0-1629718845000.tgz","fileCount":273,"unpackedSize":5786625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhI4nDCRA9TVsSAnZWagAAhCwP/3wLY0wRtsKVDgIvBgPD\ny3BN8anvp1v/apQvrUu8iiXRcBDwVzx7C1Yy5tJnvDFBuYt0rYT+7KMU186f\nYUjh1jv98qEsRHE0aJ8D4FH7b+A1uiZ135JEPgY/CyxPfJFCBwAanoJL0wjs\nOa7ztMLqfcIHxQeTCRq4sozahFBVN0Mv/q21Ip/H7+w8+LpeKQ5JdhVqkRQ1\nxOaH8eHMpUwLvpJEzxkwDmMvZfz/A8FDMxAYYovEVXAnvc59MxKrb/8dSUjL\n0c6NAS0Qj+tbBy7nGKIryD8fzMBiheu8JfthclE6o2eh6XUNrUcWza3MBHAn\nnSkLyX9sq+/pi2aT7HrzO0xEZNgxb7/l+ePYeTxGjxszIf2RU0XnrisX3JXB\nBC6OUC2SuTZSVX4X68YSMP0uflJqNLymCZUA7OZy1Luvz8MhePfI0agRvQSP\nUwBNU6rhk3xghTqGzGegYdb5YTZZsSgT1LaRHTi2oyKcSbtBcyGTEBi1XPWq\n5VH5ZA1HrHHiijcT9seGR5dSk6vuV0fwQdlgjmsFS4QetA/vbPTjy8ZZ1i//\n2ZZAavttu/y/6f9RV0kTF+cXUzreKy3cbJM8+qt7tEPVgExqUX1Y/0qYxt0m\nZP3fEr0q3KMZFqJNWD7GGFZFq1WXb6SmQ/rFaci05OAFHs2RTHoWIH8R929a\ndJu1\r\n=qhpW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoxxuniFLXPVo/YXMMUT4PHQHYdzKyRFC5yUT7/yTbmQIhAJ+CQPrW8WLn1oSdJtXimTAgVUNag646M5tgXNm1JzrO"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.0-1629718845000_1629718979585_0.6650329913047615"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-24-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-24-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-FvFMtjDpv+MIj07tijAgu/cE/k8faKJMbrNXNnap5BytvUMXdG/po+P/L52CZJVV3ppmlRx5bzGEpYkH+Oa7Ow==","shasum":"7c4b34968a1f7838691e25f3a9e4e95b83b6440c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-24-2021.tgz","fileCount":271,"unpackedSize":5787626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJDt1CRA9TVsSAnZWagAAqtkQAJ2H2hM3hmHOnfkuEAkJ\nHpJ/ym6UnZQ4sWpMftES8F8RrwMGuLmm1e7U4m9qT0FJMORl3SkHK7OfjgwB\nrEnexwjFzFsYgCfWW2/lqUp2wuUrpqXjyKZK+YBaXQ34ZFWJm5APQKl5kd6i\nG9/e62E3gOgiVy2VwZx3FwdXaJqkNrbaHDISE6t1MljWOGWu/2eWErELAsrc\nSqu0j5xOPlg/+NDGvZQ9vbM993dXZh4r4NufOC+BtSWWbEeG0XGhrQ+9xaHW\npkXU9NAe/cJbGYA9v94RMHyc+90l04nh2pYAcvXnVgPtC7A/XlhYWwdusmDV\nzi5pH6F5vhc15lJFxAyc7StU8BfuDj8X/YgkewzgBYWfT8kg+yPj4F8EzKHv\n/beF+YOCCq0FfuuUgjxk9NSMyt8XKi8fbKfqgRVlRqbWG0AbE1OQolRJoEY9\njxqyQWOfOK88+l63Bs1ELpvhANDUL+yJVj9MgIBYUwj84ecVINWlMzSatJpl\ns768xgum9TC22hEcEg9GbmhbPs0PkrBRXi0SpakTIaag32D8Sj/bCJFNqyYP\nfVpgs62AelXwqn+SPmPKHubynlsiBgeTNKOpy89pBhRi/chZpbgzjoJ6Kva9\nKvAURj3OA27Os23wJeu00q7n5kZ+UZzvxExvlBDxUjRAhHRnPrfnZMhtHWHv\ngzFE\r\n=NpL5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJFuKOCHGg+coNhltTn1eZqCkYtgfx7ImFQiX9FBwTPAiABgu1zwlKCXhSUDouUcksrl0eSzcTWGF+Pc1ftZbl+vQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-24-2021_1629764468899_0.17383337977362712"},"_hasShrinkwrap":false},"1.14.1-1629823926000":{"name":"playwright","version":"1.14.1-1629823926000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.1-1629823926000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-/t+1PZE4pOVUqLWA3D2FK9IoKpWaccgPtzsT/bVTW6VzPZce4zMo6VfkQ5BwzHTCpux0TWZGc0mv/qj0urh1DA==","shasum":"5677e74984a0aabe8de67f5a1c2214155a514f4b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.1-1629823926000.tgz","fileCount":273,"unpackedSize":5785501,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJSTLCRA9TVsSAnZWagAAEIoP/25RX4U/r2dzYgZpIx0N\nJ8dC8E2q3Fc6Uo8g2hTI4ot/mmp8pS+jWoafQVnooVRNVL9hLJ5R/RNiGDLa\nQykrwoegtwZkwCMhUMCI5EtSC9MPic+LH22OXY0ul6YD9Ae1i/iPmKgAOHl0\nlpHTqrXoKuY+I6QN+6jcFw+AyTZFahQkJwbQwR0MRxKAh1izA4KK2m1PoKX8\neQKQDfN7Q9tcSGgdC3MzuEHaFZ4BwjMpSnJG3BEj7+Q63B5PmUVMGbstclNI\nAhbmz6IyL4SvvQOgA+VPRhlMROANGco7TYpSDBFl4+hjTn6ZTKQOrV1r+poZ\nzj4nicf2+ckKum8+dcskzseVbziVKZXNbxVvDuXU8XySyVEX2ezjzGH5zi3J\noP62wObBsXMibUu33Y8mwxAhSRsXcxpa1+pSZbB1goBh16jHvcGCINsRTSA7\nhZq5Xv97kaLrwmQKhTmSzYN5NAjilLQQ07+DRw1WbZqMpam8fKqPVmdZ/X6Z\n7bWaq6NUgopcLFAfbDzFTiUxxgbLErwdj3sMkEEamVjEU6zJv8XvWTVZqIeE\nbj/ph5W/Snrgse4+mtGArhZ6zV4Pqnjklq9V7f8ulpne3ZdiQxkMGhO9WiCx\nOgQP0DyrgAPS2K2sBofbeYy9PfzTwdoTpWHycE8VEvf+62OzvQJUh79RjLQs\nvBOI\r\n=C0Bt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEw61MILPd2ARLvq05YPfZ0ZJXQ514pu0qFdG8bhUSOzAiAtsx0N2SbUXO2x0BMoCdDxzF+DCNjwtURSa1ZkbdT4jg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.1-1629823926000_1629824203476_0.3823273145703783"},"_hasShrinkwrap":false},"1.14.1":{"name":"playwright","version":"1.14.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.1","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-JYNjhwWcfsBkg0FMGLbFO9e58FVdmICE4k97/glIQV7cBULL7oxNjRQC7Ffe+Y70XVNnP0HSJLaA0W5SukyftQ==","shasum":"73913d3044a85a58edf13148245279231072532e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.1.tgz","fileCount":273,"unpackedSize":5785487,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJTWICRA9TVsSAnZWagAAwncQAI3easv70vXq3YQYJlNV\nNsiaI02SVU5yJhMLcdBtpfKMP+Ed/pgt6WGeRlW9eJEzZuvwhDantw4EeePr\num+f+HFOvlxVExzIWnrSc2sICnf7Py19zXGn6UnilNB06yFbHeXsW4rXJKzE\nTaVkVQKtxZDO/wOOP+6xm/65oUdguNihqSN1n7+W8Fj9ft0cHLDmT7tHP0fh\nPpvPrdoFtL7DLXEi2fpqaudsQYwyksAjnpHR5gA+P2fLumgwum8Q8fpm7Esd\nJw0SJMMjwEp622FWhxbJbSzjWOe6j8bEK1D9JWWRCpmFakiDITrqEJ1HVeZQ\nVGxHP8AeMy4YoEM5nKSzURma39nADBmbFwXF/8X2hnTpLA/wgCZlTm+atmno\nEeJZWUF2VcAzFsJUEvPhG8OP6GwGTLtbQY+ggVW7KIEdnK4Be9qMGbET3Ksn\n1TJPMWz7o2gitVA8t0r6wh0cOYXj4Q/08tPe14/dJXg+Og/AyT029ARh2KNZ\njDFk3KarYLyts21cxiDjyy8YvYArw7vfSk8nnwKa2GUj9M7czBInJ0MUSXVV\noJz1yJNGQyYCC+rRLFzZT/NxJrESV9Y0ZggwE8mLgasenlv20oIgcp3kpeYe\nFTuEyV5fO8jtqVcOByPX201lMYR2LhXEi66v4t3Ib8Ftut3GNHM5ee91Cq7P\n5vvD\r\n=jkKB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUIEOuv/K38RUznLSCaFcpfvHM6avtUBoKvzzzRZOPbAiAtjuC6QvQZTXtTuQ+Dwbaq0UrPeG0Bjgx6Vi7Fe9TqoQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.1_1629828488549_0.012885596808044353"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-25-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-25-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-yLSvJNf/66nCeFS03BvjvAeOdQFkUjK/x/mV/QTHoRjz45kZvyacrhJgjx5yEBhzHvUaKZVsB1Zu7V8pE9iszA==","shasum":"cd8bcecf10baeb02a99bbfdf670d1677dfa57c8f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-25-2021.tgz","fileCount":272,"unpackedSize":5800889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJYwACRA9TVsSAnZWagAAZpcP/1ZudOczsHkE1585sVfh\nyQmNWbo8cQAyBRyGo4Ys//nzJlzHYnTojkramE6FinMzh9AS7p6iemrICc6R\nghpl3KhaVdjjGihOdJD2JzSFU8W0pBAoWTJYTxX8XzxfJ8WW0eDQY/5p59dj\nsS2Xwt6+a76zP8TliROA0TK4uFtMP8ydoB1j2C1DvZ6bp9HzG1PT6Azfi0U0\nEWRtS+vvJYELAJH9SQ27IWjgiBcc0jD5dLmtlCS2fVDsj8cFnItjXSM+8UlE\nmOVd3av0FGZFjnOMkarI3WH6WszEmgupcZIVPiBJ39iWu0fBfuXpWhF5yz/I\n4orzZlURDr8mYUxYUrIkmupmj85O1/mFeViOrHxKu4PldApEW7H8h8ptcJ5g\nsfIoiZmgZcTqJ6UWeqvEA89HIbrFohOSDmWP8PweIfpX1Dfc3B+NMXMUWHiP\nhdBqx/bZ9MUPAKkkSbv1938tBnUEf/8ZUWBaHU5mZdQhQjJTgtj+l4iOyFAq\ng+cbp7ZSrDApX8vTAefI3WSyzKx9hYJx6OX6HMULcxrP3MCXCW/a5rlgbRed\nH0uEEe3b3mb81w/yX2ja/0/Xe+sk1/Dwet9GNsdp3cKSBUn5Ldh5qrV0cGSb\nlJPialGiP6S0bMvrXvxRACcH6Jbqh6k7+FFHBH3Y3cHGpdALKCANfVz2P/vv\nq/JT\r\n=Qswp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHpcbfc0U3EF4aAicXnpcVeJi9MyoE2N3MVODDLQgnLJAiBteOFv9hEuh/hFhZZOLLf2APiymwk1HzcY/OtAyMPumg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-25-2021_1629850624338_0.6680322791099313"},"_hasShrinkwrap":false},"1.14.1-1629891535000":{"name":"playwright","version":"1.14.1-1629891535000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.1-1629891535000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-RhrRbY+P5CBWZqOJbwUtP4Iwx+cmnFegY8uWs9DqseLO+SUTh/wZoWbFm65bqvaKmX55otGocNaqo3XKF6cL9Q==","shasum":"d9a7e0268613379be4fc74f7499a960634659058","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.1-1629891535000.tgz","fileCount":273,"unpackedSize":5785513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJixaCRA9TVsSAnZWagAAPwwP/jz9cQkt0lRfJqcZCRFJ\nGIQJJAYXKEqiO0PvYlJT9qN072AYkyIaVNJwNCwEncOE9dZZozgeP2qZAR4f\npon80lyNpR/758XO217Onifp8NJwS4qBjyzQqtfSIf14v2AK1rKCW+xt/5jj\n7/r3Y/B/66+YyIYflSkg4mb2S4M/kjfKARVTxF8yMsvd2jXnboJ/Gt3M99UL\nSnaMjc11ruOfk4PMJ6DfC/kRNNG0Gn00P8Z0IG906v8soFKvtAXl24UO+6ol\ni5SLY5jJhZJabBSkaKi6i2yEy+mKaVKg5DgfcNmW08C+Y+03efj86HWQ1/GO\nWm8rA1QQK4PEXNNkA2w9nDqWCqfxYoAtktWO0wk/UX4XWeiOPBG0iV5qmZLj\nG/OjFI2oVBQoWvSxX127ikrrBuDX0y8gLuVHmhS0MuY6zw/k6DjIddvJdwdI\ng5CPEfbN9Szcp9aoeXZCeayt1CwCvx6YaclJt3HoMddJGEkbD/rSyT9jdWo0\nO7vFb3/gF/QBcnoiyV7NchelFcRDxSINosOzN+7c1VMlnIUiJCEDc/hGAJng\nuRA7eC6nYqVj+Rj9QJOsQjCMC7MJYtL+UE1A6Tt2x4Fc/xm6kSjvMKb7Zciz\nX9pYeD2N8Ca3Pz3Rar0Q8O7Mm59SY5Uq3xYme7+uCby2wpZU35mMqD5NhE4T\n8UO/\r\n=YM2B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFjayu7mqbd9uR6ttaZfziyRkCjJ1LVn5W8PX8V+FAqxAiEAh//KM+/Z/L7cHnZ3ElWp+uWnX44OCoKqQ/eNd53atPY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.1-1629891535000_1629891674728_0.004169816733509579"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-26-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","node-fetch":"^2.6.1","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-26-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-NkKMop54UmPBDM+rL8MvfhsdnaNhHfd01ael+tPMK7JAUVvyDVntcuSORaLOewrAMEifd928QnRPSS3KlOugDw==","shasum":"c6e173df01f86144cf7d3d347a53e8ad5e07e8ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-26-2021.tgz","fileCount":273,"unpackedSize":5811921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJt10CRA9TVsSAnZWagAAVB4P/253HFdd5cgwpsXaLa8r\nE3zTHCO4hbACzEcFRASCtYv7iUJah3OkF1IhdSaUlwYKadlfBEzzftKoOS5s\nE4sJoN/DhOaiR1y/A1yV5U8iiWHbqdVnnL4/+w9PIZl+CpMyN0Y3sSZ+zruw\nxaHrIaY8Aqjpfdts1eIpD6f20AdgCGHa+njagjRzARIhY2dlsr1O9yteWMZh\nPcdViS+wCvowthNW5xRnkD4pLsfCCmUoi22UlkoUMnsdAlPJT3vdZtrEvyaG\nsAAqi5Hwaik6Nu3us3KqVJYtjtzbmkvfNNbuCM3VxCeIRVnEumlSukYfqy+t\n/5gdsw5pn6hpg+kr1cGSkI4NSvxl7ta0gf0xz38ZowwFaGXtZds2ZWhTylgV\nzJtzM0Z4jVv5O2zAlPRAjL/Msl8nkeoMpthtjChiFvvFhZcDGxjPsT0PYKbs\ngIfMrcZV8o9zd9sQPfZcUOUmldHx6fr68zQC+HRrGQ7i2eQc9pCJ+VvrObnA\nNcZAFwZVmdd/rT9uTrcfTdiU6iRoPTHj95HCrgu0vgvzUirXuWbJe2X3YxOO\ngcqxt54SgT5Ee9WvYWHNaMi62jan8G1pvk7o1gQlr6Qf5m3DWtR6nUjDwP5I\netiw+opWiqYxh2CHOvb9RP5Z6XON9hjOuOpPOI23xPCxOUm0PYRtwCQzCL5n\n+5fA\r\n=88Jk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKO4VYTg5O8olJ/6U4q4hx/VNV895M34xUeZBPA355dAiEA9JEuj7GbnW9iX1uR1l1lqwlPgkm1AO30paCZTYvLb40="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-26-2021_1629937011749_0.25733436312147995"},"_hasShrinkwrap":false},"1.15.0-next-1629972453000":{"name":"playwright","version":"1.15.0-next-1629972453000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","node-fetch":"^2.6.1","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1629972453000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-mWM0nIvZyTXbLtYqKdxExxaEY32qceXCvORJCsNSAK8Q3PsgueefNUnhkBlHi0uBT4bkTDlq8fE5jQpGDa+Gng==","shasum":"c79384bbd9374070d53fc19c3be8d88bf83d342f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1629972453000.tgz","fileCount":273,"unpackedSize":5811896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJ2iHCRA9TVsSAnZWagAARbAQAJOdYj/t1i6zXpqSsd8S\nmY82xos4dp/2MYBemycYn3/eP50d9V05bkEhZrqFfsX7Jv+pVfFsC4+EPLDf\njNICNhh/DMyxjlQoVKOgh296KPHVtNfbwSFFYcXX493yeWKgnU4sHrrF/MDe\nHWEAkO/KfbGkjw/cH+QJBwWZoOeWG+NTffvCB3kZwKvplOPxl9gN3oAiVJz1\nD526hoOUs3LfnyhW3sRXq3ySWq8X1TjfAGWd5yAuOJdYzbHW7OvOoq/SJtRV\nPl4BX4mB2yWPRxiHx0hgdkw1msyczQLEWs+WcQWb4ghW5FO0bN3rmNJo729Z\naqmVV1pq0w8pgzdu0rz419os2d4uSmOmXvdhXEniYeEGjdppAg9rGhQsxQcO\nzsierU9GLe6zRrmhZkZoYnm76lqEIVzruO993COmT8fmyDKclipvO5oMErd4\n8gAm36nEKiRiAApZyV8LGEAG8N5TZJ+2zJv8TQaw/HsQ1AHY+rfxwj65P3gD\nkg1SLYkwSkcBr5dAUHO8i477d35twoy1V9wQSQFpETRVfzbCo3gFeGsmEf1c\n/rqXZUC5B6lW5v1rfO+5HGWVmuYqUw2713O6CzdE+721fzEfjpkpsvJCgXrm\n2XWPwX+X2+mpRbCabexD0E97fNnpBti+kp0Ydh/bIbns6UUlyq3kvbLShmHT\nz1/r\r\n=lnUE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBw8P3nr+0lXZrL+sP60SxI7dkqNTxQF7xEH76sKwBRvAiEA9h0wUXqKqp4PsIvHPs9L3qVIIy8JGd/LmgYyqOeanlI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1629972453000_1629972615073_0.5151021683719983"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-27-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-27-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-6iWeGJhAZCV5oZsxZrPCnk4JQYJXXBbaX+IrzbH6JJROiBqSz0DI7tnqi/bb9wQjb96c5nJ7gbVF8MBl2GIF0g==","shasum":"8661e0976acf70016bed94a69832f7e1a58d5081","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-27-2021.tgz","fileCount":273,"unpackedSize":5815132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKC95CRA9TVsSAnZWagAA5jIQAIzeqeJ0ZZN3kiU87xwl\n8/gkeTF/Yf+SEF31Oe4ugqNQJzWSHzQzIOxhjhtRYRDHr9J/3X8JBJ+lhOFB\nuua7FKtIz1xMvQKNe41nVXHJ6Fj3ELpgWwteNDYyPEg3tnwVrbtcfNKz09NZ\nfuew4DeS4/1pdvRNrjAGFDKdb9PK3ZQlI8LAdYz3Vjws9PoLAP0nFA1FsQZs\nyYjavhTHSPz/Jr/sIIxB017PA/syHWHK4pRl3m5lm450MHlrCD0J5X9xzI2U\nHJdKJ9P6YHxQPa4kgrh8s5CJbpiE4AcD3BaEbto6DS3bTBO6KrmDVZtHxZPs\ntwL3CiAnxxrWMErVN1ozUFe8MW5jLkzVvDnKBW8I/YeIicD+s2pBuVeuHanL\nNO5QZbEmd23qp7y7QSfzJdvfAcaWaNr9iuRIm0Pp3PlsWyNmEXG+O/Nl6fdW\nb2EtnSA9itZ7wyFGnAgaubkb0me1s6alG2dtoqy3DYhMXS4mdqZkrLuGxdwc\niocNd+4nVeP87c9O/1DgXgWXWdXL8J4zaJzB47yr9G9pVpJE3gshSDy8eEqC\nK9s9Xw9mhq3Co44ySDw/ca6iXiz08s8y3v7QEIJqeaE0esF1WIUTXwM0MGuf\n92kDv/2wUQwf6ii9OlmNfX4uO2UdxUyjhMy0NeITuTulzDmSkl8+650d1Ycc\nw2gv\r\n=i1b1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDbvo6a3OhgLncoZbHkW4UMIRZ813Dr/YkwTBDfzJAOeAiEA18RYL+a62/fieJarXAHA6Bu6O+QG1Q5IAYiLhcBdgOI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-27-2021_1630023545412_0.2919751224753182"},"_hasShrinkwrap":false},"1.14.1-1630074514000":{"name":"playwright","version":"1.14.1-1630074514000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.1-1630074514000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-aTSAl9fozF+rna1tRMAWtu9njHsBhfXA5/AxJrN/uu+6Equ/dTjcxew/0iUD2JUL2F0L6J1AVSYT6gOCOHEPLA==","shasum":"eaaff117e9073818531f38ad99bd4f2702a3dbc6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.1-1630074514000.tgz","fileCount":273,"unpackedSize":5785496,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKPcFCRA9TVsSAnZWagAANG4P/ianOQvBoow2ValY8t6L\n4dVa8XjVhRqofzrbsDU1mhmf+dqzmMzcF5U7NT3Hne441nhIR1g7nSPNuKy0\n6isQG/0zUGt4CQGegvv6XYxiA8HRieECh/rnoCJjEntUnZPo6Rzq1K82Fg92\n/r+JatwQHK8aNMhhTkqnltAlEEuo6Y23TX/pPMCX1c0f9yNZbxKjJ0VbkUVK\nAOLGktMwYEoMQQsNjMF9IGsMVKNl75izn1x6jWDBalVX7GYan/WPgI8ANVkw\nNcA7t9tR36D6cAoutpSh7cTuSrACp97EqXUCjkUK3RyEuzHb6LAZFu3BOlgN\n5Xrx6LiD6S5GRDB2g9FEmlJWLM6EGIyDC2mKVGUBcl3v76gnFRsv4o/ap6Iv\nJrFb162QVxqpPxJDnq9ISEG9b+mj65oljM+0glIcRYc/7r4mPjQ8bvCJgzaB\niglcDZtUgv8043UGKwx0qlBkorFKLZqizJk3PntWEmzqgL7y0iIiHtx4UbZX\nXD2j2jnrrlqinTV2Ye/RP8jPZpxTpdga4LErrNi5/CfJNNonQ0bIAUmxdBtK\nukQD3IF+lqBeagl5n5jy8uUo/jEIT1Z7gPoPNN5JmxghXOVEnDiP9tTpGwyc\nu8LbgaNel6APGh3wtppqZAFsK831g8g3tEELS9TYQ3ENqExdLehASAaHd+9P\nTYmX\r\n=W6NX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3+twdqAno5SXFEvNRQp3mhPRx38tF/8yeWviHLiZDcAIhAK7D6UWYTSd0RL73TiVA2FdWJLbdwuDNGbYckIB+kce9"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.1-1630074514000_1630074629284_0.4119364891045201"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-28-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-28-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-woKQr9Ja3p+F0QhuIUF1S9KjOzSZE3CSTg9fODO3B3vtpKQFq3yIYCVl0kjT5fgVx5NUqH1hLSVVIIiJBlAMNg==","shasum":"2a774d32ad59fa69faab7c31cd8b4eaaa3a99aa5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-28-2021.tgz","fileCount":274,"unpackedSize":5819273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKYBnCRA9TVsSAnZWagAA49wP/1widp5MWDqucY7KcQ4K\nh9sdZ/6nJfd0ZRfDN75AFFld/2qo/Y3DxoKa57ca7HKeMsCjgp0afu+A/0Ju\nQco1rnp59JrdFMJnkfTscx0JGNkROgZPF2oRQ5L/8LwY2nA6iyVnZGkVtaFX\nNv5OYjWDz502R6tKrHyHc0NBw5D5JKVt3k7LRU1tEMK33K2u0mpuN0Z4Oy9i\n3a8Y0wAS8LOSN2DRViOCohcq/2zgca+1GOI2KuaUA0UZ+RlzqgZByPIbcmj2\n4NkAM+qmlWe1fCpiqKC4Wj5qK0Gxn404rBcH9B5LWssv0mAz+4Kabie8JQil\nBC4Zb3VBIKu5smMZqmA+6PqvshTn+Jsr7GRQitPbrtthDR3pkmzAWATrkCEB\n6NGUhtTc/JAualP/XC/4akxtJ2JPuuJEYvVREzRKAOIrLDW//rNFZuvIF1Yc\nZPw1rO/l5NlLx+OrjGX+H0qsI54WEM9EKMMD4aQLsqvgRoLCCkA/yAFpNvcL\n46xBG2MvM+hr67gQp5hJqfgtmsU6XHMmy5xei2SQZIIjmfL5oe7eTKmWXjqV\nwlpvWTl1KY6Lr7Ij/4Ffn+W0etaQ1U8GvjfO4UB1XqeXeEG7lElQ/WD4JeGP\nUhQOKU7FnA91JcCsNcYzpNPWVJRVo6W3z60opODrdhgJlqP3haIBU5URc4Vq\nYXOV\r\n=Rmdc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAluX/ihtzh6laPeGreRquN442rSFnkCIptRp/dGdYtCAiBizdR34dIVaTZrp7EVu2y/aEqCiVQFoXpmc2rIgU2NkQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-28-2021_1630109798782_0.9780728362513242"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-29-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-29-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-29-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-Olj9KRmymmTSIRkii7Y2+HWC0MCaPXArz0zwNruCHyFophEjqjQdJ6ZcjTWxsK79QnvqppKYh8qt9M80vnZuRg==","shasum":"88d4962cdd7dc594c400285b03dc3c2467d68d2d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-29-2021.tgz","fileCount":274,"unpackedSize":5910208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKtHnCRA9TVsSAnZWagAAxncP/2fcqoILUuU3xoAocoyF\nRHNaeXSSnH7dCf6ZtkcHQwxKpmvJsnlRtRumpZ189T35tI/FdYsj6nEgmxZd\nfrwHtyfOZIJCK4M1vTsy6SgMM714922OFNomo/xpjbVBle5+c/gjyRpssJr1\ndUO21mLF+//LTxlEqSEdD0XaglX0FlZDLhVE4pza5gJ2dHq5YkYgzNVkiWhW\nSIwLuMcHgdjZcEFIDGcK/4NCo29w6RNg5pSJdl3zwwoI4jAuwn5/w1gWeRbX\nMcptoFIvuUZ/LFIt0R/O1qMQeOsP4OP9NvVYyDrZE/TPPO5HsFn77ll+XjDw\nVFzUEq8lLFcZUUWcgRdVGrFnpNaP2erDZy4ya7+nuVG1wBBBvuAQEceunCTS\n3o9eaubDbfgW2GBuFXduSBlFKnL8Q+kGBoA8v176opbonaqR8WHy/vEJgd4K\nk83WGWUFIU5lSPc/1WLyWWETk91ovgNtI8ufPbODqmsham1spCHT3pjS32Jx\nt64en7+WIP3qpiwnrCFDr3d4eHboHi1Q5kykiUFT6OZgJ+EYaLdAjYoEUPo+\nANGbgQrAsKajisA9tGtncSOBS+gxRImNSsKGr/LsSaS998D6xjkfM1tykgg1\nPNI4MMPu4XaOUKhgQUyMbgZSjminFo+FZsrjWG9P7Gtz+vn9QfZ7RJH2grhj\nt2wX\r\n=AOg/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDutjTokWZESqIKPNRqv7amORyav+I3XDUDM9YtGLWwVAiEAlVHtHcpEEyWw02fTlAn0GWHdXfJpS2qzPmQ8XIJN1pk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-29-2021_1630196199610_0.9355860385589223"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-30-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-30-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-30-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-vwaiJGNHy4ckxqkIXrrXLfAGcqiRiMWXkhRL2K1ZYSjn5zP4uMqqog35+5W+bniUONtLb5tjX1hMXB+3FWQu+g==","shasum":"2bde62820fb4dd030f4c817f5f98c8586906b330","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-30-2021.tgz","fileCount":274,"unpackedSize":5908808,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLCOQCRA9TVsSAnZWagAAfhAP+QCiAIHFQblOXUBnoKKw\n5EhOK4ct2sodm3C0cNMInoo98vfAAeB3WZvwLp7pldRGOIJDDZglRAarT1nY\nYsVo8CkchQsoj8jhM9BgCfHSOUjBZQWLDMuWHGgSt7PIA6ycfUMlqh1z2WbM\ndWcAnMl2+HYkZwneYcx+nmHmVex458xSfGmTatjNPbjtyXsX6AdgjUYVpZFl\nfhlddYJrBRvqTXsALYJXZASQPG1qYoC1s+YH+kR8u0PdU4A1mBQW+/ViimEU\nm0OKZwyNn3D1R2+N5/M3lDeOt/RjSnSGR4rGRHMdI98O3NP7EVHno24DFoGp\n0gqalgiUxjgTl5XS8PCPojf5o2vziY1Z1gt2YeEox9IPVmaScEXsTE2ylupV\n73MrQ4O9mmDngrf3Yv0ngXyr1HRaW1l/3VEnf8lGKN1XrJvCU6Xe+gSNXeJS\nvU4hQ+G7ovG6WfX/P5fu9AuAB6JacZmS01ywMkZU01M6D0asd5ndJsk3stoH\nYOgBMW5EKdQAIbJUC8TrxQ5hL7+BMBz7JxePQO/tr6DEOw6AxUwTSjFb0V39\nlfDI7zOcYoEvUPm6s1+hAMM0Zk1Pg2EnUytG796JQQpAuR5+rNyZlDRzHxEg\nPKLay92GGjy6IgB2lr1qbiuLnKwmD6UFDGqFr6UAPi1G5V0kILtFWO14oIVv\npR4Q\r\n=Yks+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAQYHr6VTzgErohRFl/MAoOpSds+0aGD4Z6/p5d8vGGAIhAJG2A/s6zkkXgRcCmj1xFdmDkTJZnEG4JC0JWeH8BqZN"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-30-2021_1630282639853_0.08857607116074906"},"_hasShrinkwrap":false},"1.14.1-1630325154000":{"name":"playwright","version":"1.14.1-1630325154000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-94.0.4595.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->94.0.4595.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.14.1-1630325154000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-+Y29HAUnvWjjDdV9301ywosUFUTZrXbfQ0fPtCWoaARQllQA2oZ/ygZVbnYmReV2feVgLG98s5vN2oOmUQjbjA==","shasum":"9dcf204e883d5e3c655965f73d310f63af466738","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.14.1-1630325154000.tgz","fileCount":273,"unpackedSize":5785601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLMpGCRA9TVsSAnZWagAAIZkP/RrKMotSLENg0JoGwuhO\nbCcK3/d8QHNsLRnV0DcWUyXHFihbkc1P/CL2rLQcAP9OxR9HoroxoRnVrWXC\nlsKLRohUXOhkint4gBVT5XfFpRVEqHU8CnoSykHtBjP0MOxn6I8k9e3AyKnI\n2FX4VWbNIjZ6FHBTN5Oc6tCXt4BsQJ6FsprvSXyQ6M71lJqgS8CqJUw9agN8\nQ2gUSuRHMUuUqY+AtfVqZI8wOYgZGWQt2qDzsIK372f67LyoJCASYkdb8FP5\nQxnoE3i63M2Ak5SiDuCbYaBRcWM4lQZ51v+6hSe7KJAJdWwjj7LOeaPS3k8q\nAeAOPEZvZwuWwJ0YMtH0x8PmFl69CT8LLw1Has4lqKp7RDhvgq5RRmQF97xP\nIVpoRMcBxPxJ0eoRZwtUC6GC37e1xmDmNGZexCv6Oa8DSZSTQyWeKyA8TX6w\nqxc0BcQpa78O69eNPdCjSo0tZ2145e66SqAVkM1Qg5UemuXXaAY2vaB3PfKx\n65fDDHYRppPUjri14wx6KZ1g6sxXLStl4nP8b3bvW1PUB7k3HLchDSjFr3hS\nfkIsiM0UNgpc5wF4d2PkoO0ANnpIlef7Xhr9dJxX0X8X7b1KAw8bDtMatt/N\n1YJxbDRe26rOlv/DxmreNCO+1r3dmNT86yGQb7TEGHQ5WsW1IVjbPV2XkQxN\nlqoV\r\n=wv1L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkSI8Zd0PVdDPaoWe8iVgEmMlQdZtk3D1FupiGMtDj0gIhAKlV2MDZXiGavXQgDOHjx3LxzOKxMfZ18INSxWTethQY"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.14.1-1630325154000_1630325318107_0.519415879349999"},"_hasShrinkwrap":false},"1.15.0-next-alpha-aug-31-2021":{"name":"playwright","version":"1.15.0-next-alpha-aug-31-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4627.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4627.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-aug-31-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-fCdg++9elMEe6xg+oyX5zsgHPFIjjJkqZaefZrQLur9+WyqzeuMZvdBvvRUUAjf6cyrA74q74JY5x1jx8jJEAg==","shasum":"364eb4204c70598703665fd86e5f2658f6d2e46a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-aug-31-2021.tgz","fileCount":274,"unpackedSize":5933375,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLXVTCRA9TVsSAnZWagAAziEP/1WSLf9Y/1MgZWXevYa0\nLAJATAqBW7pYX8vIexkT6dvzdTryCkwmgun6qyJIEJzMMTcedsCxHzvfkD1L\n5jarML7z/vHIQjCYJ9cgULjn9X7s8FJ5BvRaV7FJtlX4zw5AbdmgoWwf15/d\n1zwuCKS0ruT2YmagT5TvpxftR9498xaoNifxafy+h2eU1FlR3JXFO9VcIkH9\n7cM7W80YzR6LM0W94kARpY4CNokw8DMu7RZSqNRKGH8F8CvBGQ1+jjday68K\nvZXQrqBzCMmQaNW9OK8xOy97aopESCBgJdVm0NN+PZWC9Zsi1Ca5K1meKDts\n5H31f+IF3DaDR8EiBiAXD9rJVZu29n/5Bjl/Rz8QDn63N+OOFx2Ny/zzpwv7\nzFJnqNzqu5bjWiFLq8QNXO0l7sc+Bz7SZfniJIS4IifC9F02jfZrv8R3ODUg\nYiwD0Cf3E7ZBK6/1HM4xhL0vC5pfZk1+4wM2tbP3iCqaJg3RK4+iM1UIc+Vh\nNZFEg3n9+HlGLhlktxM+R9Um21xW0iBx//1KP3OgeYXvmL2DC1Q343VBkUah\nnrwdWC435EJrh88ZNa+Wxy8tHNA1Ieujaes3Yx9DJYCoHDHEm1EIWXmdV7ng\nOfx5SXxhZRFa9b4mZ+qHg3EJxDU/HHWyU+vUPuSTOvhx2aeMdGslSQK73hN1\naIuN\r\n=bHcr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCijUjsuz9c1ynY5DfCZO/Mr1L6YyyfV/SJUBjWDGfg9gIgFIzmRzw1nnV5LX3OU1Q9PNg7Mh6bcLxoblf+2goVQCg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-aug-31-2021_1630369107400_0.27229596358555685"},"_hasShrinkwrap":false},"1.15.0-next-1630432230000":{"name":"playwright","version":"1.15.0-next-1630432230000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4627.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4627.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1630432230000","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-c8RzsVImJ3ezgrhfS6pwGLMLmvwRi59WBFSjOsYEf1lUQlCzF7TMIL1Ob65xikovyH1Kj2DKNLp492794T39Iw==","shasum":"473ec04717fc8e44a439a0855406f5463b98c9b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1630432230000.tgz","fileCount":274,"unpackedSize":5934089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLmx4CRA9TVsSAnZWagAAbh8P/RP5Hz8Bd/VAW3HopSdX\n8G2gN6qTd/cZzdkQ1v6S1ka/36hb2PtO2LC3bNk+SYlm8/3sVkKUnQ1kZ5y1\nordtvk7DEftRrY7DrNKn1nfQSL9IjBLzs8A1Mqlt1Q/8rSyobUCj2LQrDd7X\ntot7e58I/MzJzUgTQqzOUpGakYMb71YcWVjkeXhVo6kZQU0jUCaidr/T08N1\ndflmZpF32m4zmnsAn18IO09B29+bo6x1KbzG9tMPoQdYhpRTDgnCP0CmGInY\nMO3FNPnPEWHDIIfvS5f7XwhCRXSOBdO0GoSXC4FCWxScIHwWIWMnpOPxrcSE\nGz2EjtZ7j9aSKdW7PDHChWL1c9Xm9O6DpEjBcXXj7/bkYQzi9pRycRwkJPuj\nsFPmnyvmrinHzGnrVczFHk+4RhyjZUBFjvcS721f8gg+8U8BB6GavjIug3WK\njeUOgxscRfCHxg/wfWeJQmklYyCBkWtFZPimbIzjES88k7YEFGN/sfLgPySG\ncFgbTEVLksf6PY1SEXqvokvQhUDfvX3rDmghzignSu1wu2W1dLgC+YovBXUy\nGHSMXkYTtabRR4t99OCmyGZQg282hc2ajVsBse28Pb4f3QCQiL4Ds5fRd49A\nfcR7TVv5x9iCiUca+vJ1z8Jcnt/oBJEkP+gdJV+gb0v8YxDjwM3jB90NlOwo\nCeqF\r\n=vFfo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3skv9kCeQm5X4BRY1P4+uX3FmYkLU+/EuNn2xBWDyngIgCzw6Q/w+7/pmj8bmZMKgKo6PX+x6jCN84ig+BtOD560="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1630432230000_1630432375899_0.4927392506976269"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-1-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-1-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4627.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4627.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-1-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-bZpIMlwi49mkmmG6Qk3WPD44xCVpFOEyZiw1DvxIqVuoc5L3wOYlwhACgy91jn8VZxrHVVl4PHccnwTtEUYqTg==","shasum":"dcfec466df30c5051649c30cb15487b6b8bb66b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-1-2021.tgz","fileCount":277,"unpackedSize":5987539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLsonCRA9TVsSAnZWagAArBsQAJ0aq09E+VRPkRFcuF+q\ntE6bAWt4hIXemZfhmpHLsTOcSgwtjpZ94tmgmTXbza4KGGvBxWF5ppwsNGIG\n1y83GFpbD625i3j3cuOtiexwef+Fdg8wkcnfqmE0Br/wahAhlLQ9EkQZNzYi\n3R1NczroUznJwYg97T07zAcXv7VJ/iAMCAD4ZE54kl7U7OxN3AsL/Z6J8A25\nmfgBXZsZxPABlYZmFj8AJbodRlQo18DCoxfpOa2IcJYqhC9JjQkBrqLpfg7U\nD7ejsRALw+TioZ5HAb6rx8tv+GRbC/RthhC8OHPtvC4EGHyVneGp6yYQgRCx\naaTYRHcuu4tDEks3WMQSuWiEGZ27rOY3aztKasig2GV2V6EwQlP0hiMTigpI\nn/fQHxhI3fa8jSW5GtGvPKLBq36CYuDwX2q07pvlPZrOYuzS7voRXcNa5lhn\nZXyMj81I9ibxufPwv9SH0B3yAlYpVfDTVlv3agXXQGODP53oO2kc/pwNeLFg\nZMB7QgLIa16fH5Je/tk8uzL6paObrpZ+aPPbXlBh899U4xxqODF5xXtUMBLB\nqfO19V99Tx9uIe+GCwx1CD+oLNqGXrZwmvRox/2SnKjSxi7zW7EJCVJRQbNw\nDzUubgE9/FiGVjA/Tqak7mX6v0DqVIkdzGwGvPDz3CYMvHwlVLfJXPSyUYTQ\nUXbi\r\n=T+EJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5hUBTLYs0n6SYb0GvJA+nm/xk/ejh6M5pV/3dIHvssAIgDFfvOeCDb2GOhRBiSYxTzpUnfvc1EWUX4NzwLbJnLO0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-1-2021_1630456359283_0.8234546986372855"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-2-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-2-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4627.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4627.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-2-2021","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-FGEXJO6CDnPiLZXY3dnwDQ3v7IcMs8lrNN9s93rMQTohpknnjyPbjaKXu3sUYSJyM5FqOHbli5AIpivYJWbHmQ==","shasum":"1cc00b8965b111adb203bb8ff1ebd911a662dac0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-2-2021.tgz","fileCount":277,"unpackedSize":5989424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMBkuCRA9TVsSAnZWagAAkUgQAJs2yc7qdgOmvwFYOdnV\nDj4oGiSHO9s0NBiyz93WHJYNOzqFCg8x1XPcPulF1URmZlHyBgnbpxSTl3je\nyUWQDGynp3Zi9s5E1FdZcTpQW/GwrCE8dSHRUQlLWxwRD4cAadNWnCau88cR\ncl/BHvMZU7R4J+volfLr46XM7gIgdlKFBi2FP95cs7TkxNYWOmaCob4kv2Zr\nv1AlIbPBQVAMJf1Ispkvw45/sbjaTjUIjuz97RPWGwdfZVthWNAzbSiCYfe3\nIiLm0atzjjdwq3ffA+u6kX/jpOceEnDkqQz3BwXDw1uRvrjnTtwX2d2CACpC\nfY1CSlQ0OaSfm66DInBSUgeR8ZsSwEk8XSSTcrocEzqjmbj+YPrmxKQ8a9Ay\ntzI7NNqzWM4R0c7rjM6ZEteJt3TgV4LroAgmLt3paMeRV2GcdpvoNbPqwNEn\nZMh7s0T0H+yFdQw0Dze81XqeEcX10wkjAmDgFa5ktrBJl4s/UDM/sNeXG1RI\nh+zEd60A5hezDMwYdjc3VdGp6Lun7CMH9Rrq9c2BXOIo1bjHtpHVnSOp10uR\no7Ee5dDLYER2kAAHxzd37nfHPMI7FcB1dNuMY/buCaqfatEZnxOcPlKMMyMX\nVPwBMQTMRolJEW2JSM60pENYRBrxoN8K/zvE1CC6aCx8JAkbG19iA44goLGw\nIGis\r\n=MLgI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvqC4tWJgGqteQ4o/u5yh3Lnvhhb061UIN/UiI0MmivAiEAvRpheRX/zNOcQH5x7b8WdHfLJ5crvpzkTNSdpFpOp8o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-2-2021_1630542125914_0.19144406031834604"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-3-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4627.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4627.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-3-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-DJH3foxntmZmzuULP1VmxGKMKavno2Ax+Ai2I91hrmVCpvvBI+gD9IJnA724sGS8NZYU/RQ6wHSpRzbXM++Abw==","shasum":"9d76f13402d7629a9f4c2b59e44f624a7f594f6d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-3-2021.tgz","fileCount":278,"unpackedSize":5968855,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMWm1CRA9TVsSAnZWagAAnQ8P/3ixXz8Gtvl+9dXIgQpe\ny/SXXyTI/9aGbvrjaIumV1yfmdudYJ9IntYTTaB4hCPX2WVk8TrV00ev7b1n\nWQ0RxM/0BX1txJx9ydZeNnpXVCQtz2T7gzOIEUsS/j/qGIw02nLLogpDRNyc\n9v3AEj6nSOM7iTOcJmcXv9jbNB2+ndXSSeF0YOSkoPQVdqww6xnSv5t8gRui\n3jK/KdFlhFJ9SGETOB0owooHlpjWEq66CZUl23QVxN3xTMdoZsnvQ29pNoP9\nj/lEhKB6QGepn0QYTLwMFHpdwdfx/qKJ2lgenLdKLIWxifn/t7Fwp6u6ro2w\nK2xhS++SBb3syvOYEW9TgGDzFaK79pnHZhSiUzkJAp0S6E78NnFUnKf3xBB3\nUNZalJV3i/XZqXC+0PazfJRepOvjyY4i2UVJHXexEUUBH/3zGwwYh9KumF68\ngFLinlXp0YBQ1tB5VhachcztXiz/SR1juZlpctrj+xqA9juZTegkOzBmsbPu\nn63+kaS+ul/oGiu1IzWqsD2T5sne3KWhbvkOzJ2TnzmRzsmgHAkyB46W7Xi/\naqTqBzmw8MwV4CDpBYboebFz5Nwm5lEzuQtQ6dnZDu4Icqet5FHz9NhbgerW\nvXiR/sr6K4NbBI0ZBUAED95JU25exRSaAYH8Kjheek0EtPwLPELvD6ee/qU1\nBRvO\r\n=IIjJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdSM/fzjtNIDnswgJ6nkXKmMarrdUeavFDRx+3Ap6/+AiAdTMbSp00rFmGbni2NOqnzEBK0UgVhinOzFMxq/mxV9Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-3-2021_1630628277211_0.9006712297582535"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-4-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4630.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4630.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-4-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-Fk1U7cFlricO+5sYL2vs3A3qIfXKvw5qrI/To0umFmXPYmfVOa7tHF+IOBylvqFvE3DABJIHcyin5464VSXVfw==","shasum":"cc40ad8451d10e4093263b4ef3acf60f750d5cf6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-4-2021.tgz","fileCount":278,"unpackedSize":5974817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMrsMCRA9TVsSAnZWagAAGPMP/RvADkrmvQGgdzAbt8+8\nYkyUePXC563mpBzZrWrU3buFT/1ghyfQzCjvCv3Q2RbaboNGS3al4OliYxg4\n4MR/p0j/N8yLjR7DhxR7ZfS7m5Rl7uYalHMdsrSiuV3pyCIRXRVZe93eJ+8s\nXWenyeAp57ADRtSsM637/Fi3xaKopP1PdiFvnQQYHi3XvZ/t+7CaYz+oAFZ7\nVJjyAviuNNwmdjN+kj80wwHL+mU/MfbLqzXbQyjO/dH5c5j3vni/WOTQ6jGX\ndlzkLqCEvFrMV0jFyDMfEY9B1AS70b5dOye/RTcX2H6WVnbBJDqwqjYsbzq2\nxkj2vXc9FQi1MygPubnpKGvrUQ/BbD/crx5FWMUyoWJ+wqaUxLDT+cr/5mCx\nIPf+YfQ5pwyYjAHi9C7lqok4QhPYNdMTN19ZoFsbB96m/Tst/7+giJ+mbXa0\nt/9g3F7MhCaHCqginnbpoizdY5p/vfjiht2OQutLm2YvJxWvDLmCW6LbaVe0\nStbw/a+aCRRbtwG9UO7OFzfWwKt7XKdLon4VCN+3mnx3gYF2lsfDrZodcNlo\nfBKoGUokXVoCEzoTUWYpPSyf74TLGXd8C9sU66fTNunlAZ3gG5OlCs9iJrn/\ndapES/SsDd8Qd4x/YAwuHkOdmkbRqVDx25nA19oH/4TZhNuDTH+0lQc5E2vj\nYtzp\r\n=Wnqz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKQKxmlEqjGC3xRS3skbTlnHejvqRYIDp2KVdZKD0tDQIhAO0RG97QbxBlqsLHBdK0RY908tR8dqwk6Dhm4Q38dkkn"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-4-2021_1630714636388_0.16906762066722347"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-5-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-5-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4630.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4630.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-5-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-gnbTRTDFUZLJg2iuY9RST0D835ZZIzsW/XnSlTVHtHuMij93OygBxzKNTcLTcfdwmtarnUoU4Y3F8/0AFi4lVg==","shasum":"ce4d78ba80a1c11f49400b5bdd1fe21642b450cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-5-2021.tgz","fileCount":278,"unpackedSize":5974951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNAygCRA9TVsSAnZWagAArbgQAJcF0mjvE8Q250NpQf2R\nzJ8iYVYgJ8TS03cdQRDFCY2s6R72m/RwMQznX+rF/RkqyiY9bPDar9uYbB8g\nSS6pMXC8WT19Rfywd5iCgA0cHxNJJz+zE4Ao2Ddcnno7Ycd8Sy1eZjKIYXSt\nIkNeOAy/aAXnX/xdq5OnZQ0gszKZPEMqJRfz6PeMcxbfEODNvHCCi6IjScsi\np9hcjvFFYGKBeKh9uRR+ydrJOWExX98j+EFLqUilhE1uCUhGtUWzkqr7tctb\nNPmNPTy3TgHPuyxp+pixrZ9rj3aXBFxZjGYcnyNe5tJb+/G2NkyuzAGjbimV\nNZK+/S3TwUBfZZJ7DbqS2/Rv/F/mZPb/rKpd4WFmZrW78twiJyqS7Qic/1t8\n94txMbMNEnO3xpI3QdHI5S7o5KakZIloWBlXKAGL23lq078Rl0s0sG24stal\nfZdOHF3sJbBYVcJvhW73gcN5z0TkNviWQisNAWzcV6/pu0rfXUAGJOvocmo3\nOnk6zpuR0stpP69W+/WGVbO3+wscWu5Ky0hMqF8eyevJjnW60htpxmmXA3ME\nS5pvG274BO8arBTJhcI8rGBDBBc7z/LYnUs4+PSPuWp7o5Yr20KHF9b88Y8l\nOBV524RygfOLxdniaqSWFgrbqqp4or/V3JSuzwjqloKfIQqb4TareMxUG4Wx\nKfm2\r\n=NGiN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgP4wwyrLBXk3ivSEdOM+qyy8nJMtIYStlyKmu5oUJQwIgeUU6BhmJSrc1KmHI+zQPVkO4O69K6+yApm6JUif8uDk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-5-2021_1630801056391_0.4105880117240852"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-6-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4630.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4630.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-6-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-2g5AU2fjX9K5P/BQ1f9H9H/PMHjKyl/P6VEOWs1ZiS2nDe0x5rNVKlIDyJr8YCqxThtIzb7WhU5HgquzniJ0bw==","shasum":"9a7825a6553557ffe2694edc5895722ba1e27885","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-6-2021.tgz","fileCount":278,"unpackedSize":5974951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNV4hCRA9TVsSAnZWagAAWdMP/jje0BeRSpwO3gGELM41\n79ZirB0+fhxleEmduru808jBhhr03YUb0KvcjRCjS8Et/t22I63bUno6Wcde\ncLa2Yoqz78Skk62qQ4yJ0ZFWmXFGf4pBh4UDRJDQmgat3nfcFWaUxLML/cJH\nWfeELz0fzWTIXkEoRHKs8crwLiiCsx7xEAlUH8pn62ul7sQ8Zdyq98j2bTtX\neApm7ll35PVqqOyR3tR4agYmdMcntuwQ3NjyQZAz9kcVJXj/8MKRt6XbmO3S\nv75zd5e9Hojas+r8bs1lL/hft8OZytVhQnTXHT6mdSibpGTL8i99YSrb5vq0\nlYlKJwN+LnozUnH2ihd8UmjM5LqtOXAUelSoMa0VUzKETvmYwhJzcPVsl4c9\ntYrSk6sP8uN95PXT2sA9CvcEKj+VECUcYwP9W/b6H5dws1Q+yWiUyzQXXw3z\nIaIj2ppwI3YcXc4fSwt2B1VhulOCQV6Ze6zrxRnS4QvbvPuTXfLrApX0nbP1\nEhvJx5aAeNfNHJN+oMQmAV8dosrrZaa6AIvM7odXXSPiDhsibZ3CO2+3BTbm\neB2/sZK/ya5soU9Zs5qmk/IBUqBW6ch67+URhscAVDlE+Sz7NBFZKbMQMWIV\nH83qtrjZupYuR36kIZgBzSCbGybhCKCXXIEaKjkXG/YdpZs5yvnlHzu70T4I\nFkDt\r\n=Ao6J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB29tLgIADm1RTR9E49ckOr2uQ2m93loNdX/oQQLk3QTAiBZcCKbdijRyQWT4BHmDsWciWXSlAwLgaxCxeHHHyi5AA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-6-2021_1630887457127_0.24198564733628958"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-7-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-7-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4630.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4630.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-7-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-g6ZLuOdHdtSNVP51hCEIuYzzaZWzvs5O6gRuAY7ligtp2Tfv9XbS8P4IfQ+xW50ip8WyF0zo6gV+gm52tCTxSQ==","shasum":"d2a9e8333d1f705bb84bda22f11138a1a9d41402","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-7-2021.tgz","fileCount":278,"unpackedSize":5975054,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNq+JCRA9TVsSAnZWagAAgcwP/1zbz3To4yRhmCAVuTNl\ntkcpDQD+4r/YXGB/EODRGanbC1xg4xljY+i1a/HY28OI60aIL9edOgGTCwdz\nUfzWLlKjiatghAb0TC40thhF6sGhP3xPdLbYKbRmwDXeZ/Xqr7EEj4ZyMBpC\nUoFtvPHN71vxHg+dqZRv7MpTP4HCyd/p3HqG1uMrH+0wWkm4TJVaneAXLkUi\n7DUuaAapOXRoehBLtX0Bla/e9B0yESMOZSy7KVWSHbG6C4tEfOOxn8HvrCqg\nxw/wzZbseiFP4l/tSt+0+6MTEOUhQ4Vv9NRlZGeAw4oLj5p09VuiS5FrQOEe\npM1xwfgfhWzGqna6X5F8rIsKsAy8vQiMP57PXGCby8T4yM5CaMyACrDu5vNQ\ntqpcyoqt6jzbED1Y6TeC+uFloqi0cFgFYxKcTqVnxhMULcGM+Dxslvmkd0wg\njOqinp5adlKLZdTxHqZu7S6wbOWgqHz0mpIJ8Vd8GsZqoW5DDO+OUse2Rdsn\nz52jLs4UGwByeoejAZ1weoduCtY2NNNi00Dp0AWXz4wHA8DZsDUEc/xMxlUD\nJ436CHzW0rDRVCjeERA42cgF/kLiSyz7EsRcYZh8+aH6Ptes+4YO2b9IJ8kO\nHhwMwwc1lBQoZe1qqBvaqF4+m6pCyAO30NKkLCcsgR5iZjs8o02VAoxiig7h\n4FRG\r\n=l4e2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoEOXArwDBBgVooMcxTZHowCoQJoQztztb28rcHtJ30wIhAMzrZBDtHXqHyLB1UMEm9L3Fk3gxpLovoNmgTAPxlKrc"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-7-2021_1630973833320_0.05456548655694471"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-8-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-8-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4630.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4630.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-8-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-j6NEY0vkQEHv19824EqE4rxQcWkEzWPrZJPanp1eC4xV3qh9FJrB/lwlrtJQB8ZiJYjCZeDsxuszXGQ+qskY+w==","shasum":"0e9238bb78bd6cfa0fb8e9f7971dcae61ae5a683","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-8-2021.tgz","fileCount":278,"unpackedSize":5976157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOAElCRA9TVsSAnZWagAAj2AQAJW/xpeyx+1ESIWeZ3DZ\npWhuO6XvNzCbl340lp4i4OBbLGb/kk3Its28wxLor30iLhvbe5DPOrTjbKNJ\njhvoUSPQSb2pYzFbPdqQ3LAQY0YAAe2WRgNIh4w1/3KAOb/QvAmtTuIKFPkg\nC/1xM+S1/Wx3+pbFgxnc2jNGaZoW+gGr+Jszq9R8O9OBDOAxYVeNbv2EGIgV\nQGCJ6IXoCWKgFuhOO417JRAwzvs/4EXoh2YV84UIdizexfdPFTyf60q6VHcP\npROA5yAlfD7+QDGzx3LZhMHA46yXvODZdVGxhwtF796yqhja1IVyx8iSwRnY\nIXun1wRfdzd0EGonp8EQ6rADAR4BN0D5zJHspubJdFsAiKjf5f1D36IcpUnF\n8VT8NAz+qArpBKsuLZ5tpHI8n6IktSZkRgrKs6US78SLt6LntHGusN4Sqw5G\n2tIRfq96W8B2hPNR/a865NNtlrpeVlZd8oGobEqlMBLnFke7r+/acDuEoww/\n5v1rcXS6g2bCKrDMrxDoOcFku5vmxehxY0cg6bblSZaoafRo89jDvQzZQe6U\nwahBa3bmUd44/5H017vSZSYN8yu450Bo/GCSLPAZYmLN5yb50F75e3EZPcYy\n5QNruuSu6TROe17LdLMEC2A8350kkFRqCHJ+fB+bh1nwA+0wOLfZPFJ5ea9J\n+veS\r\n=2WMg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwiGfANDejkVjvW0u5sGSofIcvD3e5lgGj7HJ3Gsh9mAiEAsatZTGXUWMVRXVMpnMsDuo/jqwlqwYb9KaXZ3kT8CJg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-8-2021_1631060260738_0.9398658769724357"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-9-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4630.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4630.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-9-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-eUeTv3RALgEDres0YNdYyI/8jHDLWCw09A6eB1oO8J3bh79JGqR+EBOHRXcM4JDBIvt4yVpz0SLS0dRcS2Ik9w==","shasum":"170427f4616945716f7f82be581514d39ce9fef0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-9-2021.tgz","fileCount":278,"unpackedSize":5979802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOVJxCRA9TVsSAnZWagAAGg8P/i4vO52paGnq7vM9fLN3\nuKSOJ82Vvv96YW2arzs5EcUMDOmQ8mGsOcOoXtrgnC13Y7SPxbOITGZHqCrr\nf1KBWTnBMz0FDZGoYYe7SmXelQehuZ/eawBrWlQMTGrmNEX4XYYzJv6Kx27M\nbspTsRr5KCtO3jZcjvNQL6PmatdH2TyvK6ymvvK4xVwj+6EzmM2dwmjo9xOt\nTJJQsw+/lBNIIa0J8XPVWdV1Gm5QlI+H/JrWiHJ1spW1bJTYtektq0dJgwjE\nZ5efEp8UZYruXNDrkvgrD3r7ulVLC6X0oOV6Fv/b0y1e93B43DOLofZqcYjg\nzyNlN2RamP1eYtoFv2ukumCb+AoEYZOY4Uye/NzUQF4vRlOE/ztW1GapXRW7\nwUghfmokm48j+NIzL3lS2ibu6hTxWLiXexOiAZA5lXTn3DR9lqokPYvL90R3\na518DkJcNd3ftbWOwxF28Ox5JdftvTpmO7jY0CG6aVlJPn9sgab/0+HsEWpE\nxVebOO810oEJ+DbhDJAPrEnWApJDseElOGrDF+tnVnLlGXgV9IwDiR7tpMvL\nApO6+KsTS7OLNxfJGJ0CXfWWByIi8Tnga8VJ1jGNgsjFDst53D719Jz5piOx\np8EdQJB4GfDLy+3RRC8eJ6eMCJa3rYFCjmtQKqAtekcAKGEZV9zpI/RTX3mG\n4Rk9\r\n=zN+a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgL9zs9N5HAhMvjNm7+Ds/Dc/piLoWyGMLmHsvdXqhFgIhAJgfqvXRSmrbc2ETRLG28/lhIkpOHlNdOSOQjx2/0gwJ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-9-2021_1631146609129_0.7122840698850499"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-10-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4636.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-91.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4636.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->91.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-10-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-OZELA9Gr+s4PvWBsRZzfdanYD8PA10WJJdstfsV5Rs8VZhEuWYm8/dsiRr3bGDtldOzUjwyfwdaGdFjDCy5BBQ==","shasum":"9fabdede22e08461cf8de435d69ded3e6b3e13d7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-10-2021.tgz","fileCount":284,"unpackedSize":6235360,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOqQ2CRA9TVsSAnZWagAAdosP/15jGd2JfBpuSCRwnc0f\nM5+9hKoPJAKtZUuyWTdLb8iNVA22tNDWHAKyxQ32qi8VyxPBTIyfFl8AF1LF\nZ+AAqsyjxvAIZG+OIbF+8GkB9mE76WTIWFyudCZiphMEj06bqayvgftFcjfF\nJ5d9pwC82Pk+YJ4/hx+zTP7gK0CodGPdVgKETDiyoyi5zaydxi5HYEgfY4bt\nAxRLAMaDw4/YFGfu9JleYBdvtyMQirRRd/GP/sq7xbk17G8Isb+o5jBUB1P8\nm+Fj3Hx/gEy+VP9iq2MyyJbIksjtUMtZLmTpxw9g4pZlXv/dNR9OQQG60TXe\na+blvsWX69dAEI3bwkS+KPRdSyr0MUn3vEJh7Isekfzs5acK+N63w2wxwBGO\nNFzu4AW+yZ4lm726FE1BV/0tCOBLSHUdCx/8M2MX1Nh6DYHt8CMojRxiObPY\ndskRr4UWvXoc1yvWwbHywmwUteLAaZWL2sx6KnnlS3fSvRcSFmLp3SueiIWs\nnVoevN/a/iwRp+s/NHC1NTXoCMtIMPxG2MjmBnhqDxIH2Bpy8jzkDHMM8G70\nhnORXMwJA1Htdr7p/kOCVaNTw3dGu80W2QtnQWPMeyObSYJDLNkJz+Wg6Dfd\nOKbC5zh6qhTqiqTE6STRRMdNaHBkyCsY1c5j/D94F29aoyZcRry8mrroaN0a\nka3K\r\n=lIrG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGICUWe/PSUpboTrOHr8BkKXNRqqissJ4pglU8pBeb/oAiEAlecy6vpW5Xq5AQqc94kdIMU5skdQyy7Df9AENtbS8hs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-10-2021_1631233077810_0.5575445594343269"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-11-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-11-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4638.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4638.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-11-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-zAO2C+rucVswQiVsprD2qASBxo940GfSI38ePFe1jaH3fp2Hes2ZwY5eBO9zNsyS4uo/x1jglU3M0h9yNU1iqg==","shasum":"2a7991352ab958722e4a55dd553ce644410fd815","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-11-2021.tgz","fileCount":284,"unpackedSize":6283705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhO/WZCRA9TVsSAnZWagAAOhYP/24Je+AQz+ExIftLV7U4\nA/z+OIPVS2KBjbUGGQWzoq4pK9Lael1kxN2anvfTe2srrs84YFzbTBnpUt5V\n95bii9qwdN458UWCTT5CGn5cFXyVfIRit/rdMvncdLFpesYWKX83/IMcLBvi\nvnKGf86Bb+zEteLLBb6gPu6zCd1vZdRvy2Ik5A+AVRkw+luuVUT5xQ4tf8I0\nKNOZd5+zLN0AMAPS3eSj9leGJhY3GXidBhlmE7KiTvxCkDooXkiLhY5cCN6G\nPRaxiwNnWJZSugokp764h5XDds/sFiqMPjulPkGpxxPxw9pBIKFC/xzNC2kQ\n5GYLp4AObEwuuMpVRAeBnpav7NwgwK+FvPVlJPZBtGYtOtcE6yWVk9WPSGM2\n/EoMdQQ0UW+zgfG8R0Lv0RZzHpVNTp5IDsAF3bsXEiojv0kikF1Pk5/6qKG+\nfPYs7U2N14mP6XFaaJm9bWRVaLaOegE9cEy9krC7DMoUtvJfstiOvDUFUG0N\n8Q3TDgS1IJYH9i/i0ABd1makJWM6fPHdxo5O75bT11WjCLBoLKPtVTdwfQ12\nocXoInWZMoMggusMve/abEZ0/5VwIO0Cef+vClmNEldx8q6GvEpBrLfDWwR5\n6EmdLei9rf0cmaV4c6XeCwdahv8rPpbLf4NKsRiGeYo38mxd2OR1A0zNTZ/c\nWM/r\r\n=DmGr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYotXmphH1G9F/gGMI3NiPdFsykrGHodqyfoS5wPAS+QIhAIw1Xs865Oov+VnfpAzG7T4TonBQh+KNnaVDlBAm+rP2"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-11-2021_1631319449603_0.538366169358816"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-12-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-12-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4638.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4638.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-12-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-Iouuykc9rdeYda58glYG6I6eDq9TxeS1bOqIxjwI6hmjT7Tg9YV/QBdeTWYzSIkxpOSiDaLAhw8m4c+Cf3bq9g==","shasum":"53664cf0bb29c0f488efe5debeda1c48448297d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-12-2021.tgz","fileCount":284,"unpackedSize":6289413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhPUcpCRA9TVsSAnZWagAAknQP/jBltKmbDBEk5eO3dNKq\nIYeCkJpERnOz3bwFcLzR8KoMKJvn1bGPIigmlNG7v9tId6/02nBdOk6iuv4a\nFaZiC6+gi1lu9qbhyJAvxLhvMQhiKoE4JG1PpSts1ghSqvdIWezhp2ZQVuC6\nE5FMUET1+RTjH7nrCg8tF+9SFipaEAvZw0Mo1Xfz+xAz3s/ajSk/HcxedpoM\n92UG+NxEx/HwvfNxsyxMeBd9Qsb/4+bZ4f9wQ1ZcutgO2GqZi0hgUGBHtOp3\nJBMFPS2PxQus9oU/ewTr9p+xzs4+Pg1LYxLxC6SHgj4bLRBUgSiIEv9Gnmp3\nUR4FT3GnBIxktCFmUYb9bUj4XwU+w+/xyQ6ai1s5Z9MZRNkdUn2nbyINC2Gg\nZk6D/yAOAHqQi5d8M0qUINo49UDweE9W9JfdnEXgGpbGbgLuyhIjOzS/iVKf\nQPwyIXqHKm4mvmw5vEpkZazHvQqJ4TzJGmZAUsu/gHEAnOBLDQvZbexdctu0\nXK3J1bdKeoVC5yqjk8T+uSY52cHeOoCGKWL2MMKb4GRP22Vh/xJhpv6r+vvG\nyS64hvQAjSsjtFh+eBQgvPsN/BFxaU71e7YfrQuaC6xo5Hmw3/lKM0OoTC5u\neptV26r8mE4DvpdBH02isZoiv3JjacNOkkHM9QWQHz6SWsDjrXLB8pS5wnO7\nR3pF\r\n=SJOU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRZecBB9ssImHtbydCF/iP0W9Tama8kkt8WNPFeXgEcQIgJFdHwy4pEdeJZwf/oj2d1ZifXM2L7BQLOivUCF3iUeg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-12-2021_1631405865209_0.0976076521701772"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-13-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-95.0.4638.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->95.0.4638.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-13-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-cmE++f3yyc0lVAhCZQfauAz7YT2x8E6KsfqL6p8v08akNLselpG/NFL7cyabmgSl3D0Yfjt45rO9JharcLlJVw==","shasum":"c70e2f712f43a28b3100c8ca6f2f26ee7d38b5e9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-13-2021.tgz","fileCount":284,"unpackedSize":6289446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhPpiSCRA9TVsSAnZWagAAXGgP/iut7QBC5tlGsfdx7gQe\n5Y8nfMPwMvzYm19dTFu9Nff0tZpiltEJN6xkdydtqCPG6EfvcYZZexrn34HU\n1irfj2NJa++H1BNDys/gKSaJM8sAWTO/suFolYCBlM03zAIAq29KvRP0tXpQ\nA3nWGNGoTm8w1OXM0MSj4VuPt3zt9dfYRdBKzP+EAAWSjlZm4FwrAoSoNIXb\nb/H11KoWhUSaZ2aM7UCxKs753eGKPWpTvr/cgO7B+tUkqDFtkLureQC1RuFc\nJ3vlN8PnIEe6A/+PZI2IKwJ/QtZW+LnWUr2IeOEwlxbf94ZWAK5xGNx5A83v\nXy0e1Zy/naWzngWS2k6vVOITZsrCZt4r/LakJCzDCx95aJiCQy62hewAQNjw\nqZPt4jMbNbTqcMAbtREHrTKnf8pcGEVkAqbCL5iuAdIrOzEiJ6/jwIRmRCYn\ncxncgLrUjaNRIipUxYh2bSh2alkPMiRCpo/zvPE2nr+eWwoxaNuAkr2FSAkC\nIR2iUzKb8MPH2rn29z9dCAyAEmdNHxhUeFmIBsVoDbIYZou8MmmBK7fSYQVd\nzJd5Q5nobO6E0+M4cQMT6OnhUcNsYPMRtN6LkwCfAW3Mtj+fIGFEexy3tSqE\nGIv3/vCSUhl2wOiZ8YtRPgZiUB/XHpigMChZvQNW1AiMqo81CCiKVb+DznqL\n89Gw\r\n=kvQY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDcRbFUiaKO/gWPfAhispfHgFcRz274BY/IlMS7tB8gmAiEArnIu8h1xykT/JQ3ywy01T5+5+ApHGCySls4qZgf+pRs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-13-2021_1631492242200_0.7758138441585651"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-14-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-14-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-qfoFtpkLVeaaEQNTIXXjo6PGr0u/zhevi34il0wHRUSjNakg4cu/5k8QL7Y4l/PCMzKuQjDJQVBwvZC+cQjf+Q==","shasum":"3e029d1128a94e687f9390fa5070345d2c9f59d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-14-2021.tgz","fileCount":285,"unpackedSize":6296417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhP+oWCRA9TVsSAnZWagAAGKwP/2U+6IVxZ75kqOjvqp1e\nHUFCgmJ/qb1ThttUE9Zw1ZrQw/NUNZHErp+1nr6VGYupgxDLEDzfuL0QWf8W\n/49HDxF2J3P3ddKvEG/+GClGQeEPu31lBxaXxXI3251/euMSYmV99HAGeOju\nW6BZZyHBi4emiPa5nKb+0PH/gm/ZP04gIXyGNmIeRIX8g5XEpFiJrZhUsXdD\nuMMO5eLjje+Wu2IGQ2CCFkLdm1MuLQz/sU6j5NB0hkoX2nxoczrO14UrwO2e\nPx3uVYAzFZ/uGg7wRCsxRooyHsub3OSfS3Yiw2ggXDdA1fbRg735OyTZhtpy\nOJ4rgEeyi0JXCwcZfKzbGevBzot+X5tZvT/gT6AtzfcSMmxISo269Yi64g23\nmp0OlsEjBcisR/2lzT46iKIGfTJoUA6n+pBQdAqli3dhE+U8OaJJ2X6bNN8Y\nDL71KxX42ECFwX0HnjAOPHTMRZGCGil50mmYzXOD3AHNwHmn6twYIn8eNKQe\nlrAzeNNBQO7d+eHHm9MAP0Dk//xX65Rm+vThYXuZ9X96eHqrfK5qCAbnFI5r\n5/J0XXvVWZ/10W+m6F9yXq849pHOTZ5XHyav7fAgP2d8YsKJPKFOHUXcgwu7\nwWcHlP6JwTWWbO1XBj9T8LhDhxDCCFQTFS8iJ+h/Kv9RtjJvnApcWUjZcDBS\n6Cfe\r\n=hLqk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIApQjHMUS6pJn3S73+uSe4VvSEnvpSemnF0KcTS7jhYAAiAH3BC3tHv2QN4z9/iLP5GfhHdajruB5psXmnV+DpT3tg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-14-2021_1631578646341_0.16486544682241555"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-15-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-15-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-R6t3DQbOL2/58tyuojYOUQyW0TftmF6+H8N38bDJCnrnIf7fnPG3d4+9eAPGsTiwRMx7MEhQ+yAZVm7hT4JvQg==","shasum":"5fb786b34a4d7ec86901aa0c67535c70774be39d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-15-2021.tgz","fileCount":280,"unpackedSize":5955339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQTuhCRA9TVsSAnZWagAAAqkQAJ/EHdhyp/+YBss+jg91\nV1BUo920nzo3dILysLkN1iZVNOCL7n7Mg4EOjfi38bcQENl1L9gboT+UZYt2\nxGazw0BcWZRGXVQ1coelltmklChhTst+d0NtSR+ykxHVSwhwGHwcYYLb3RJC\np1Omeui46CD5OIHOK/pUxcr4UthT/7aRpzSmLNY/P3+zrZc5ORffRMOQjn1x\nPo10LHowi0T2xvBbIOXOm1VIWbkLyn8jNPlHQEsyKDuuM8wslrRO2AmqiRPC\nAwk1d0T7LrjPcSUOB/KUIpuudtY/4mWEKl2vwWotwg0WqWigDUnhC5B9gtEJ\nxWWmKF/Th091CR3QI/eeaTIL+HNmkt13v6tXfGLi7Xbs3DiRfaEzYW2psLfv\nvZTTrUgl6v0jVZ223KNeWYqK0NCOezkvd4YXZtl5rduZPRRsiBbhQelGlAMr\n3Ot50FoK9gkYGSJDzMbZaRG0SlUauzrZVxowQQc1yNJuPjvIzr7oLnWN6eal\n0RYxbVjzp7+OwJazqoovxTB+dSwLlitX9PgRDI1B/qR0dQnMxUudeqdzswQq\nghmQU9oR0G9LjZSuUQMoUKxJotiTkcgEWpUuBY0P/9u6ELxHdxHI6Epr2C6O\nNzH/9lrHFcx+lx1fa/4MdRZs+88NztX97mJz49gN9om68lUgP4Az3btW7Yst\nd1bX\r\n=UMc1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDmu3Tw1aIdeafJUZG8B92oRkfBkZPmbQNxop64h+Mo9AiEA70+1spWo5IqfdXHFDAiWS1EZTn7jl9ahz+5I05tmk8A="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-15-2021_1631665057584_0.3113171799613037"},"_hasShrinkwrap":false},"1.15.0-next-alpha-sep-16-2021":{"name":"playwright","version":"1.15.0-next-alpha-sep-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-alpha-sep-16-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-N62byICFV76w6K0jlJeoqyccYNIxrJmCXw1fIAS0s1i4LZgLg129fgv5sZZt52o/vOWLieuOBLiKlOVhk4kFig==","shasum":"d55183fd940ed03d3aa24d30a5fe2ea71ecf054f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-alpha-sep-16-2021.tgz","fileCount":280,"unpackedSize":5966334,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQo0+CRA9TVsSAnZWagAAyj8P/1oXPczHUHcoM4j0yWFN\n1nI+sYWU3RtXIGok+B26Zs7eNxVyZh3XWKuULwpp7iABZwI12Z5Aw6Su5L6j\nv3gzC8PPguhoANrhD6XRSA5A3TSYauclJqIOc8NxS6anulDSWlihe8oZ840c\nuHIlwpa3y6LhrYVvnuRmhjCS6bdLvcrIs9RshD8rVSQOkgibCVkqkB9X//TU\nJrcJ9grHpIURe5eI5OewzsZYmxY1Lu6W7Xn4n7GAGSuVhqzzjmXpHMofhCn0\npnb+OABPtsEVaqfAHs863rsZtAWHScELiIX3PpyRyIw5tubm0JcHhFNxf7uA\n13UHXMeLhoWTracaIiUPhTQYxBBtPV5IC3XCuRGm/vd+QGEFjNCgw/jnzo4z\ns3Jo5m/ukxEWMe9RHLon4g1Po1pDgOzEhPtQfSHSqURk/l89CzOigbGhOh0R\no3Sd/cYpJorfRfyy9OTFWVz2jLB4pAoYfkKuJ5qrdJjWT1IP2q+ANw5K8IbI\n1OQH1jgtuI41e7BXXQYwSGs3EHkabZuzFpkb/FCM+EHpaNrtlHQWZRcROd13\n/5ZbCmge0JPfMCDPjhgHCoBBE52Ig8teJ3/DGpC5jE4Zd3vGjBebH0OHfFAV\ns81dYkEmQAlxyYmky6f3lVaGGf9GinZNKOFb4hn8h4phSfUvXp0jpvVvCe/B\n2wmk\r\n=+MOs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJNofOL2aIYv+yPkr0Sq+unoUThKbmCbDwqWbwlzmywwIgFzKDjTW0A2774t4PzNTosg5EH2azszOwNLMziPjglxI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-alpha-sep-16-2021_1631751486182_0.9480239855775683"},"_hasShrinkwrap":false},"1.15.0-next-1631780436000":{"name":"playwright","version":"1.15.0-next-1631780436000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1631780436000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-pIVxxwyMrVd98Fp9XPY8qb77h3OtcIhIrLRJYGnkuP+Pg1U5XJY71jGQlmFESATO2AIqoRLKguji5qTXMEawbQ==","shasum":"d96220bd712af3f774cd6d17b1e5af7a713b3d6c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1631780436000.tgz","fileCount":285,"unpackedSize":5988885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQwQjCRA9TVsSAnZWagAAIu0P/RyIsuE3rq/KoEdL28MW\nE0nbmg6jn0bDnY6W7OT4/qbeYwpa5foH2AeawlugZ2sA1Q/0jxPxsO1ljelU\ng9xyYd9pTCxc5/H5Wd9gp3roBD9EuLu+eoB0urIucqoPKclmH2UZk2xdj/Zd\nU9tX2c+P5Jq701O6nHEmKLA6XV1cNjj9wAq2JRSnEXVVSiu64cWUZGrJBph4\noMmcCABpBN2kc6DECA8lA6Wo2nITPCqjbojlSfOESuUSx/OxLG/JnOVjZLXQ\nLxOd4vJvFaztixgTrmHR1NgnmzgqwGfdRawO57ngxjU47uquSAU772qgrgGf\n59/SA6Lj/AJr3niIfvKgqUnhGXk0Kqbi3mWPEivkMn4eMdazjn/+evqFIfqN\nCPbrqMUOgkkbPBXuODHlUWpq6kzA9FlxjAG4plWM2ARvFJCJElI4sftDaLWm\n137xu5j2IY2gSyY91zYNQNhZPbu8fszDbheh0gWi7/o4SJlKD3a2orKXeB74\n6msLGXwF3k8Tl0ibiPTTuwI4YEjM6+NhfX6ruJpBbusyGSSkcjIKJUfTwofb\npGiOL7AzzyZYuTF5cgllSQ1F1V3y5Ts1ejea9TZNmkLtRBrtN/t3vvGLJaO9\nx+HepfuSUe+mXevhsytELMqPej7aEnAsPHO3TgJv22h7piA3cwZ4qnMWyPIY\nlheV\r\n=838l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKFqMa1+MtB6ETkCrZSExJf08wdqHM3zaKIG6GHcKoTwIhAI2Z8zAAzrZqwmY6pvDy2/1AdWbA/I4kwxY4F5ueboeo"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1631780436000_1631781923783_0.9595597752906988"},"_hasShrinkwrap":false},"1.15.0-next-1631782939000":{"name":"playwright","version":"1.15.0-next-1631782939000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-next-1631782939000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-gdzNXnkO/qucq+52q1pS4vOlKbxIohFFLRM3zQurNtz0FtSHjVxztOD4pHjxMpwJsrfAHtk6pFXg2h+byrTdeA==","shasum":"5a5a1fb6728b78ec4e93e7ce74ce5c3e438aa258","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-next-1631782939000.tgz","fileCount":285,"unpackedSize":5988885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQz/KCRA9TVsSAnZWagAAJJUP/09cqpiY/WOCRA271z1s\naQjHkqcxRVXRrZfundd2QJ8suOkY3IUxjPaWG0QCK1nvlb1VLJzoLwAnJqjd\n7p3iESN9Jc40N3tnny+DFygsATrQEdAYVcEp1v2xMAIvpnv8LXHMJXhlvTAX\nNKSBJOrsoq2kJnxcUNSq84z5juGDQkuK68LVDpobQJ17bYJab07LN1z8y3dy\nncjreC6ZWRrzgO7ljV4F/AJO3b3w/lrz3sTNwVgYh3jCIqTa4YyWqVjcRRF/\neXhQToXrR6sN94eUTm+fWE3BR3UhqkM+mZscC4Excp2AMQK+miDqOjb1V2OG\neL/xbhGBUjHsS9BJAnWlCUtZnDpl4CaKUh84B/zHMCkEspiRCAWglMbmUnTv\nx3sVcCDQOLH6hhkkAG8P8jVhMdMaLM/tkllP5HiQj8Hr8QKcqRjob/cLlc/F\n2ioySfszWktCC26xxx6zBUCFfrofFktC2FCq6sjnmsal4eCAEMGbEoZyS1FY\nrzIgDqH4Z0HdmEcM3Mp1XSss28kvrKGA49pOtvC6e2t68L20a5HMOFLuAVGR\nC7CTzOAode06eks4lygpRgCoY/drjNAuWAQaqhWbZ4Cqydbv71Tr94z10jBb\niwym7amJrOeeaU4QOuhe6L3JguDtARl/ri8O0tGkuvEdVRz6XHnlWa3P/lG1\nR+ML\r\n=0Xth\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/ddB6Nk4o64Yz/6sOR1DqpX+se2C7kqvNgmkBviRruQIgWSuwo4EAKZ/aSJb+udbPyT77BIVBxrjAicEPdbnuj1M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-next-1631782939000_1631797194495_0.7920047965742407"},"_hasShrinkwrap":false},"1.15.0-1631797286000":{"name":"playwright","version":"1.15.0-1631797286000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1631797286000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-8P7FWsbXWnyo6iGYmop5kffsTnzrti0G3w4M+XTsqjB8iNL94F8p1Y9/089e5pjZhRIkyLK5gPfggq1RI3u1GQ==","shasum":"67557cebf5d9345d3b5e540c0bf470493aac41b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1631797286000.tgz","fileCount":285,"unpackedSize":5988880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQ0DQCRA9TVsSAnZWagAAo8MP/3U6A1FjG/gA2QqZTNKl\nVl5qBZDItdIZGo6LX0dJeN6E4olW3NRwlkbuS3QhjxoF7wYYl6gLeshqYfWP\nZ/Q7kj6bSRuhkdlk/JvMMFYYSCIXEPFEbJUBhvO5koD7l/WbEukcFPqgvGtQ\nyXviu5yZmIh/eN6jrKfx+sonEwEyLfeczERGTIACqa9UlYtgmCgjRMelT5Xq\nWW+p46oT5FYbDuFdteVdGWZqkLc7J73IzqSvP3qYd0qEqnEHH34borf8jSWo\nXAH29Az1YlQ+qxq4OfxiQfEgVMiPs0gV4So9ZpSgP6T18U/U4e98vY0Rx47h\nmiMy4QRlkzFWCYU2SSL721OxVUVHXQtLq/cUGt728fXb6LSqfdiCSMEI94ZC\ngtLyjQ7ARSBs5Rhg/ZLxjLSRZ/nhc/Oxhna0LCCeljkVCba/Ota0Rz2QHe2O\n+HZBIfaekubOnIw/rQPvbyNRRccvAnrP6ijmthNK6ZcspOcILtu3uNIvTsn8\nom1iABaDuX36PzlgLTTDuSM7MfU/ZhUH2yJ5Fh6BbP/YyOFZEK+iWJD9GCLn\nrlcs50/jRDtPea/bSy+OV6YrHfBLb0KBmtxCC0KXT3DgAZHJpZieOj8wwpCI\n2aLIfLeoXU7iTNWDgxZE2Wbv9P4ht/GyG99yM646RilceTzg9GsxcvdoeJhn\nFOmi\r\n=HGX6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCY8uJ4bMBqJYsbC/wOxwOa9Iu5Pp1IpR0LNv2t9DHBbQIhAM6wzcj1EE8ZqSj5SjcimdmHpFqv47N6OKYa5DTCQ8P+"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1631797286000_1631797455866_0.2749579805975768"},"_hasShrinkwrap":false},"1.15.0-1631817028000":{"name":"playwright","version":"1.15.0-1631817028000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1631817028000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-c4UFpR9eQA5RDdOKR3h9CILHvStW0j66BtUc0WDQXNCE1kmdWk3AKicKy0TAhJbi7f0ukT1Xgw8ZsicmWAeKhQ==","shasum":"a3e9e6b880073309826a8df42eee39d9bbbacacc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1631817028000.tgz","fileCount":285,"unpackedSize":5989418,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQ43aCRA9TVsSAnZWagAAR4IQAJDAELHxlpPoB5fLRwFC\nF48CvvmgMdL3JI9X8Uf8id5Bw9HpKB6s2vtfgp0p/pb/UdLc92siBvecpv0U\nVlabq+CXXdS2pvDhzyGUBypzaCnroAg3g2Sv9xuM24zHHvbzmFdiU4/6kZXP\np5N45GFLP0fpYLrKVzDjaIdo+cUqun84ZSsHrK5BvmY1LuhzCrQ507eiDhmP\nfO4X6QO/ZYzmJlfm2EpDN2VnNX4PF21qFEb76z10uC2YusxfmGJeNFrlgWsF\nQmlZlL3fj4U3ZNUrKtteIFjGV06EdYSZlU5fgnd1CtwzGtEOj5OqAFddGtzB\n41YAWNXtqJa3SFrmlQvICPjbLK5Ezrnv1gGgPA0OBeFI7DQ2dXFR6uKP4Lgu\ns72KwiloVpPQMWlsbG9a1KNRVSDso/YbQfAAwTwpspNf4UELU8Gdv5bhU43t\nolg7jswPQwtJ2MI040vIVAC0PO0IEGoExH3pAWRsyED/9WsJjGufWN24+hC1\nKme2cYbDsekLvUZ9jFbQle4meSuiY47k/k6FvTTsu6zE8N4MtI1jXX3W+gHe\nsnggR5HWXHgv67zPmw2udIlChWOIX/oPONwUMGl/fjNBSFcpdv0nOeegmHkS\nLKTdvjtzcgJV7sVyzb8aW1tirJiTzIHzBZlsxjXJJrIyL5JmJD7OSwTTyMXg\nSUVz\r\n=OrQX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+Hy1tGmJ1vVYLtY/S1l84mdU1wKMcy5HbtdBfFEvY/AiAjqglnfC6th717VzJmdGS4W4aRVeWCAd7Fbw6J0FYCKw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1631817028000_1631817178375_0.7240147655166909"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-17-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-17-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-/TfQFACI/N5jhkSLM35Te8pnq8jaKBWG3zPuV7tFuzkJ5oX14v7NM3JEP9N6FkFSNVS7O742GRRt/3FsD5vHtQ==","shasum":"99d45b46f21697c39023b85d438123a5b61c54d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-17-2021.tgz","fileCount":285,"unpackedSize":5989784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQ96tCRA9TVsSAnZWagAAik0P/jVmaLxaAWDKtkblTeP2\n6bohtNTXw0LX6Zkang4+AlxuC49LMmm+4yPkafoESAa2COaubgkl7qqqFqKl\n/48vypH9GmqMAGpmmfCIl5tDdqurbZReb3RTU5gMTgxEynWTCK+BFfHr50EH\nlyYN4TSfkpykEsOM3DRSisuIGZBkteSi3i7MlogKqZO+AZddoFvuq9p3ddN2\nf2pdmolFMBbp/wq8yBD5vLDWfrO9Sog6cxw9RXMZVOnVgdmxNoaXLyLt8C8t\nR2igZFkdBiol+0sqCtvDsuhd1U6hcyARZiZCKh9qprGC7YDrNTVlXqMkWW2B\nCNuouabxBnKh6imYLmAW3DeSAcCdSuCGh2lZ2XyEc1CDRRjNX7gkLp5gHj9r\n4mLPTCsg0o9FsV4k5nMOI0mWFuuguynuhgV0jQJPdERbrTZrIA0Tdas+8YjH\nrjH2bojuXETqGCPIz6OIs8p2M/6/nHG38XmTEGKCIc1p6Mutbu3o7YhEf4vg\nzqR6GSBR+JGTS/Z16bk4vYLs1NAQFKqsGV1iClUkGO8WNWT3N6p0p2yS+hO3\nU8cu2ddSccMxGM375D15i3pklxHcAY7eJyV1G3njDK+DMkBSFR46E70qHTTu\neUeUAf/rK5mdB5UnBnky/OffwhWyQJdGlZ0hDsOhMaFrg1lzy1TFkOll5f/u\nFtmn\r\n=UvX0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjQ4eFudeGsynH+V8gSdVkRl06F/o/E38Z4yhwUBmqYAiEA14EGQHK7x3H4/9K+S72CBXynNaMVsiqrUk9w0k0KEqo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-17-2021_1631837868787_0.10193611514385514"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-18-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4645.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4645.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-18-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-B/PDzlWj7Z84RPOHYV38tyhva6VQXuv6upvDioPlGYsW2uQwCw3mIvjqU7WNXnZSZOao1wcrwxF0e1ufYpzUUw==","shasum":"94407afadc318b58d66f8c64ef42a073149d8da8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-18-2021.tgz","fileCount":286,"unpackedSize":5998199,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8KjpSuHg1B3CLhbjOo+9M5v8JLUSjZ++fdIKMGHVPXQIgLMiL2cznmbn9ZjO7n1OcQxcGocDmz+e0D5vI0jKqAM0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-18-2021_1631924284958_0.709169690352587"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-19-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-19-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4645.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4645.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-19-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-CDxxkufnHYgzy8UxlpuqQ4/KrkEHxPazBrEVXD6KAwoooby/e2d77A73g484iiTkS8236AkTc0UKurhZdV3G1g==","shasum":"805357aa310bff2e3a2225af730aee9b1f0551a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-19-2021.tgz","fileCount":286,"unpackedSize":5999288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnCZx0Cs0zge6OtNTHLH1LDFdRhxzYv6gz2X03ZJ4+lwIhAPJ66W5h/smpNreOYnJtNFFVj7Uf938/WBJuAYtxXXYY"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-19-2021_1632010666034_0.11121190766351785"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-20-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-20-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4645.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4645.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-20-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-rpyB42836oqxugPmh0sbQEfWE5jEu/Jfhpm3gvZF2MAbiVgcVRjVhjaBMwWVPqbxEQcZsBRPKJWmwktq8fLStw==","shasum":"529fb0b5d85e5c1f07daf0496f669f3350431d55","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-20-2021.tgz","fileCount":286,"unpackedSize":5999288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHmc0A5Wh51YC+GKIPtXc02payOBqzf5ya7Lek9mGANyAiEAl0Y6632tQLaviDs0ilqC91y+Gpi1wLW6Y4CDWAJU2UM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-20-2021_1632097071021_0.4795062310745555"},"_hasShrinkwrap":false},"1.15.0":{"name":"playwright","version":"1.15.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-JtagFVjNvccP1rIixHB/4KbR+BzMTJLty6mo71YLatvJR9ZH+PX8DLlhw1KDdIH2YGMSQGf2ihh4KAp9tsklxQ==","shasum":"c8c75287541e75317988b973a306d2f61065aefb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0.tgz","fileCount":285,"unpackedSize":5989404,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDoPqOnHUSSfiJ5e9e13z4+PLkqLeYawRXhEK7y0fC+uAiEA/0vs1SAcpqqB5U35AP03A4SKLDd1TfYAsPdoh3Xazrs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0_1632231237295_0.6465030979978943"},"_hasShrinkwrap":false},"1.15.0-1632253285000":{"name":"playwright","version":"1.15.0-1632253285000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1632253285000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-Vio7TaLB+0e7D9m6hZKedo4WmhcCs3hm9MPEu0irSksdvMbK5GOl2khnBWCP+tQOB6hR1+IGvWCpgMGUz5uJ3w==","shasum":"42291fe25b08233fd3d697b33ce6e5d3bff31ec9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1632253285000.tgz","fileCount":285,"unpackedSize":5989449,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAUVgoFC6XODRb0zr8WXeyDHuV8XX9m90HCQxGu1ekHAiAHXE+StD0Agazrc9RtwWRsVixhQAAVLU1w/GAot/ijlA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1632253285000_1632253463397_0.6479238583695035"},"_hasShrinkwrap":false},"1.15.0-1632254231000":{"name":"playwright","version":"1.15.0-1632254231000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1632254231000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-inT6ihraCyYQQwWR5+3ubYwLj4AoAGjWvjGf5v33sFk5UYgvVzpn7EopXXgizC4dgZNzHJbS6Vpt6fT4iLzxCw==","shasum":"566247bf31049edec845589915281634e4142f37","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1632254231000.tgz","fileCount":285,"unpackedSize":5989284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFkjUsFhGoDfkdeWyPRUeE8zyVS9pUwjpMhzdNYwBQ7QAiBZFhg/maTa6o7DoIxT0UDFLcN6MhMha4KhsZoIFhoEnA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1632254231000_1632254380577_0.4377159274487057"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-22-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4648.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4648.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-22-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-mTYQ9uio52g1BpH8z30K4S+v0F9DuVSL+RbZtvJheaLtOAqqdSBwksRr5ActecvS76Uee/paUKfqgVksLoBAKw==","shasum":"23c0a23210cfc9406f09e4f3e6eff606cb8cea14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-22-2021.tgz","fileCount":286,"unpackedSize":5999953,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAh+NHTnIc+xyEXWLbDf6vhp1HKHHFiScizQAPORR3vxAiEA9871EwHXh7N//klcVBsu+7UdayGdqaS1MLawdgikAWc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-22-2021_1632269973174_0.6418950393880083"},"_hasShrinkwrap":false},"1.15.0-1632321891000":{"name":"playwright","version":"1.15.0-1632321891000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1632321891000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-MG3pZDZjm4coI4uAutm6DvIGToVz3vGzQBqqHmxG0k+J/XkPZZZumOblm/bVzHESrfceipA00mRWxvuD76+3dA==","shasum":"713c17fd0d98bd4f357d53fdbe3deca0e585a695","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1632321891000.tgz","fileCount":285,"unpackedSize":5991289,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHH6ffmaoCtb1s0D35MGuD0UcNbtlxNfBN2pZrTyRxvuAiEAka3W9KXNb59N09PsUrL9njOPRqe/a1Xc9te2p+WXNI8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1632321891000_1632322117829_0.7166043183437012"},"_hasShrinkwrap":false},"1.15.0-1632328434000":{"name":"playwright","version":"1.15.0-1632328434000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1632328434000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-q0u+0HRJiwbpZIkepMSIY5GMlicLi/eMM9ZkyyaBR6SrRjJ447yrPYLaPVnPUCXnduUaKdka/ngMfGNcjHiJ0A==","shasum":"547df19cc8e795c7f1703b9c99b67b8bb6d7250f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1632328434000.tgz","fileCount":285,"unpackedSize":5991646,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvdOyvWExQ6yXcRYT7I1mrztnMm6RjqdmtSl4tZTIzfAiEAuO6Vl6EqIG4pNfEe7HCQoc0T7aKJcKWmVnvVBJmtDR8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1632328434000_1632329869848_0.43309316897950967"},"_hasShrinkwrap":false},"1.15.0-1632336523000":{"name":"playwright","version":"1.15.0-1632336523000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1632336523000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-YfWYhbt3vg4UxepyyFcwdIKb7GgpQhymWt/fpJKjS4Kc7oHjHIBofO6DeUZ4rElrpJ2O48Lu/wXBWocex+d0kg==","shasum":"77b0f1fa330773c6f3c832186c6c751d875141fc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1632336523000.tgz","fileCount":286,"unpackedSize":5999323,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGC+1pXLB/SDLikwdyHngwZk/EFREltCmOtM7236awlwIhAKzOXHkm//keu9zhiEEISDy9MjwlPrgIhA/NGSVaiYXQ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1632336523000_1632342313790_0.6330097643185191"},"_hasShrinkwrap":false},"1.16.0-next-1632372554000":{"name":"playwright","version":"1.16.0-next-1632372554000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4648.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4648.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1632372554000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-wTFyPRPjsmBbsbZ+7AH2i5XoLPq5cLfc9yC+9R9tx+rpNTgWVpIHLETyBWWlLgGlfu/NxC4GthZaB5jMOkIhFg==","shasum":"0fac41370336d87e7afd480235f66ced7e18215f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1632372554000.tgz","fileCount":286,"unpackedSize":6005295,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsXEnGLc3I+nSTrzDDf1jKiVp+pFMW2OiGl2+svQhlfQIhAN1DVY7KyI7IXA+NkrJrygesSTr+O7GhbJ9g8lz3eQG/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1632372554000_1632389699046_0.652748214969594"},"_hasShrinkwrap":false},"1.15.0-1632420841000":{"name":"playwright","version":"1.15.0-1632420841000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1632420841000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-DXq2ygyOCUbKRx6VMqt4VstYxFb+C4MqAmCvTmURG5lG+AOlSOzGaRhP+auaUcxt0Nz0kAq5Oqy9slDZXBiSbQ==","shasum":"8e2a6c0b3438399abb068a982e84877f47424801","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1632420841000.tgz","fileCount":286,"unpackedSize":5999185,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy8Vm0iuE86PjnsHGhVRsjVo9pqmaFmU+mnHv+sPByNgIhAJfxraYaTGZ3hbS0Mkkn481FtrNWc/BgpPNGuap/GETk"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1632420841000_1632421010584_0.12774639345732464"},"_hasShrinkwrap":false},"1.15.0-1632430084000":{"name":"playwright","version":"1.15.0-1632430084000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1632430084000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-oTi+UHpthhvmsiYZgGVf6ZxfGHa+EYAde6VDV4glSVgXyZqVaCF0knCo1DG1QjLkvVduS5rS9HCqFRvSVRJVsA==","shasum":"643d1df030d7292ecd85bd3a2dd72c968b1932e2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1632430084000.tgz","fileCount":286,"unpackedSize":6003825,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbtVT1sTbXvRjdoRDKUQ8fyaGBCBTT2mNE5noL31ZRqQIhAJonNdsON0VfDXytddIM9uaDn8vCAKc27NWWmRT17/8C"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1632430084000_1632430239134_0.9892619103486242"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-24-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4648.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4648.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-24-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-1fAy/0mO3ZGft2kTs0keiEwyfGe3q0+jDdWV+G8d9cZZJCrKqf6mjdNb8d1+QeQq/HWBjEI4hkdUp+EcBt0Duw==","shasum":"7c0759c94e68084c3f39337e252e278688462b30","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-24-2021.tgz","fileCount":286,"unpackedSize":6012964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3sxJHVcpUFZYgz0W/h55ovyRsOQkcI8syqV2chnfb6QIhAP2BZsfet+UensVuxjCZa3sOhMgvFkmgOkB2g7jlehlj"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-24-2021_1632442647120_0.8350957508994119"},"_hasShrinkwrap":false},"1.15.0-1632494029000":{"name":"playwright","version":"1.15.0-1632494029000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1632494029000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-qqbf0SUNArTJwH/zFWzgI0Si4tJAK7QKfTlTOkAbYKy3Y90hebGgdAALYxaafDU7WrrUku03xzaBYXFHcZy8Bg==","shasum":"29940a50c39a70902d13a7f52f2cc7e9e9b9c064","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1632494029000.tgz","fileCount":286,"unpackedSize":6003825,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF56/6vvN/MYhGIQJ5kXJPQ2UIZj8/IS0haiEocFq16VAiAK3rrGY98NLxFDWxEQpl8eQ4rA1B2m4hrl7ImUdLuywg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1632494029000_1632494168613_0.7123546620422923"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-25-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4652.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4652.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-25-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-ntUcBUUci2ToeiIn2mZ99aYvsixbaRQ9Eawt8sh201lp5dd/yN67tbTi1k04OUVC3fpOR3L9IFRfkW/GL802yg==","shasum":"8e8c06c5ec91de4b2e001e4831a825a843bc193b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-25-2021.tgz","fileCount":286,"unpackedSize":6014593,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxEDbhRVlvvblLaFAztXyNdQnD33Tfwn2+5SNEH60AYgIgKW9UPz+GEMiux7k0/AQZ70dQgSQ22KW0ZxdmyHeZQg4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-25-2021_1632529056246_0.31545354455475527"},"_hasShrinkwrap":false},"1.16.0-next-1632541869000":{"name":"playwright","version":"1.16.0-next-1632541869000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4652.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4652.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1632541869000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-KxnTlZAu05AyfD1z030e3reOHyHEIejtoody/vbqUx1zIkFIDtesYGPZaR1aoxOzquY3G+3ctfYUJW2SSIrqOg==","shasum":"660fcfd7cd3a058e4d9ae30d6088a48b18bf97b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1632541869000.tgz","fileCount":285,"unpackedSize":6013956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRw0c7GorL3V07gncQLDvidz7kgOcEelXKxk032HMbXwIgR19/1lU8UkSQ6laxFSWIrQw0COiy0Q9L+bz3PDBpOiI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1632541869000_1632570910555_0.23320906177958167"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-26-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4652.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4652.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-26-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-np0psKIxSiR25HKSjUlMaamMBwlpgz/F0F+4Spgq+faK16MXSwu+Wsm6VsazOw5eMt4vQXxfcTdvxizq3n1cJA==","shasum":"b25c04cd986bcc0e2906d231ec7ca018f5af9f9f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-26-2021.tgz","fileCount":285,"unpackedSize":6013960,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVSx30+FZKGosbhYj3dloul9V80ugI7Kss2w3OV+CqlAiEAna/OJiShyKoJbLNMmH/iRwTkIz9ilZ9ZRdQmvfgKEr8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-26-2021_1632615462286_0.8496818878246133"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-27-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4652.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4652.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-27-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-owYG7m/upAf5Kt8uKtPR/+Wm8xFWKdjudU9PAHq37RezgV7MkyunQk6IFlo30jHwKpSNyFJeSJSUphr4JomHVg==","shasum":"f3e57fb13e40766c99dae92119668e4692da65c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-27-2021.tgz","fileCount":285,"unpackedSize":6013960,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMsD7hyyvdH79dXyJ5QkPODOfnEyKxISgEQmdMFGJjGQIgZbBK1jU8tJLrxyL2bUZHMsiP7qzRRh89RsYO/f0IGCQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-27-2021_1632701826622_0.6785160692070056"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-28-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4655.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4655.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-28-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-HKqWmZI4wjfcktMVedWW5+hVrPM7Z9MgO7Vr4O2H01Brs1hiNaeCxW9FCmRnCQR9HX6wpqQzbY0gR8A7tQW+8w==","shasum":"5b9fd858a9febd0e7183b409de272574da09ba7d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-28-2021.tgz","fileCount":285,"unpackedSize":6015532,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNGY/tLXSRN3rxVk6g0oK1gwf5F3YhwkyV96hW2sKSjgIhAOAjRHTF61faX8EtgQAReORdR3mJfefcuGKMQC+xLjrA"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-28-2021_1632788272215_0.17455679509788102"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-29-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-29-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4655.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4655.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-29-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-4nBsrY29flGKD1IvYT25PjZ4/KNtm9khEkH4xts+wFEL05WNNMNwoD0GeV28/aXqmm2bkyar3x30fYciZ0+dPQ==","shasum":"46d47fa68085ef48c7ec6372d8e1df40153ced90","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-29-2021.tgz","fileCount":285,"unpackedSize":6019596,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx59/8qYJiZMo3iRu/POKm0NkpIIXkWkvsYtN99KAe0wIge688cxibD1UnupfaPq1p91sjIPA4zGNFaL02VQ1dY6c="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-29-2021_1632874703395_0.9286180208032615"},"_hasShrinkwrap":false},"1.16.0-next-alpha-sep-30-2021":{"name":"playwright","version":"1.16.0-next-alpha-sep-30-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4655.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4655.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-sep-30-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-KhBq9z5XJWIKl8azAYFxOSYCOjQeqIkTv9BvQzVZOuh3OsNR+/n5u9u9FgFp9WnkBhcvNUTaGt9WJSg5xihT/w==","shasum":"f06f15c952493cacc69a2b97a72eff1a52dbd982","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-sep-30-2021.tgz","fileCount":286,"unpackedSize":6023495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjTBpsvPjyzX9KO/3hnL3OABSwrnPaAR3fv99ujYpX/wIgOXYsL3RH5/iiaRtOpoyt//koUm0bJEkB3TSf7IqohkQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-sep-30-2021_1632961136513_0.5043440677844118"},"_hasShrinkwrap":false},"1.15.0-1633020276000":{"name":"playwright","version":"1.15.0-1633020276000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.0-1633020276000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-dtzC+6OGVunoHHEsiTPRrju/Pf9THcRjXifz8QECNsGCw8ZCwmBtmYLVl6sJdQPL/6h5Xym9Z7IGpnCq1EPnvA==","shasum":"535c21e5e45d1d3c47e2502b681fdb27a991e8c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.0-1633020276000.tgz","fileCount":286,"unpackedSize":6003825,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2KznbomU9okdqql5QvSGAwaY8FgFzmiJg51H2pdpRfAiEAxEJPTK6pWQbN3z69giROlwESrdvCj7twFke22ahNS9Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.0-1633020276000_1633020465343_0.9996298085865054"},"_hasShrinkwrap":false},"1.15.1-1633032976000":{"name":"playwright","version":"1.15.1-1633032976000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.1-1633032976000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-OMCUTqxcTJoSes5JWgTAg4PCxbR6vo0ongGUKW1lQOjdEMIkD46MBO1jy7HMuLtRPJfyBAYx3ZNZ0dYk/WZtnQ==","shasum":"6436012da3306999d17dff72e479557410f30e7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.1-1633032976000.tgz","fileCount":286,"unpackedSize":6003825,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgtYbyE+EKcUrH7rBtQVEdeiQjXWGXXolMBISqF6PWeQIhAJ0cCMHwZq58pxO5S9OVJON0Pbu8EHEA0J6SNn/E0COo"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.1-1633032976000_1633033148512_0.4492118711034254"},"_hasShrinkwrap":false},"1.15.1":{"name":"playwright","version":"1.15.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.1","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-MQaKii1mhfoZF0+HXE4h5s2CwZNJmcASlmI097yosoZ9Fo5RW9RkLN5VMCbSw9xTyoqo6vdE6Df0OFpupYjBow==","shasum":"f53dae5fbbe9c7b1eca06e2638af8196e0deec96","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.1.tgz","fileCount":286,"unpackedSize":6003811,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmRZjW+LoCGAGJg0eBGvRqetdmc0gJ9svVFhap6TyUzAiButbvjI407dmjVw90ly3V85RLvF468FZdcGN48WE8MFQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.1_1633038489339_0.782986810132899"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-1-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-1-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4655.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4655.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-1-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-uOf/lxaZ06MuX+ZrZ14U6yPb/1HB6LCrZKutz7pkFXEvwR4jXQKCxPivEYCC4MS2YElWKvN4S0xdKULqHRb5Iw==","shasum":"f5ad4d5280ab3d0db65406337fbcf385d0c99334","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-1-2021.tgz","fileCount":286,"unpackedSize":6027205,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFa+4OcEF6veYDfKkoyeEqzKeiHOjY2WW5ukhE33twc8AiBaw7+d4cLZilDJki4G5QqfymVmdhl/wDaVfXhX4rGOwQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-1-2021_1633047475582_0.5440813363881052"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-2-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-2-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4659.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4659.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-2-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-qvnWJz44HeFU3TWfdIC49dkL+zCuMrJO6rOfStXgdkUh8kavuKO3oldPf9KiaZJNwFhRxSu4YoNpE3WkT4v2Dg==","shasum":"9e721453853d9e2ce62815ba477ccc127b54203c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-2-2021.tgz","fileCount":287,"unpackedSize":6040646,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwJBVZWmi4B2SsnsPAo6AUhyCN/huDOSElFYbH2H+I/wIgWET2evchLCcDFRLR1UVKmdCncBaQL23nRSHMueugeRw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-2-2021_1633133839335_0.3879112510695153"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-3-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4659.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4659.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-3-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-nnxAU4E6hr2/95Gp9Y7DbaL5n1WKDhJBFs+k+dwKjkcd0MuI+YwEEgfQ4WAnzREhTREOYXqvJRj7AakGAG1TNA==","shasum":"d47ea34846c6906a3df3452659b2136f72940eee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-3-2021.tgz","fileCount":287,"unpackedSize":6040873,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJ5VXYo5Zt7dqGT5HsA1jquF4nzXCtEIXqt0S1Lzm8+QIgJqYWbOGr+cjK0lAZoGBmglrwmJ12YIeKCGtW9PBRbAo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-3-2021_1633220269181_0.2527079735286357"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-4-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4659.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4659.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-4-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-rI+gXZW07DeQASVx5MudyrBzQh/lKbyP1B60zjgETOzHL1xIT7d2HibKnztUFBEINx/KW3Hu8T+Oxwa0MmGjPg==","shasum":"ffd99a808ba22e7a2ebffa6d056d3d09d7ab6cab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-4-2021.tgz","fileCount":287,"unpackedSize":6040873,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcC3MdPaVJSjTVhOCL4vz2CKGAlDHAKXcJWYARXbFQQAiEA/xC9NIY2QwXF1u7xHPbvpRBHPIT8e2W6cIWs/unDQ4A="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-4-2021_1633306670547_0.21256612941101127"},"_hasShrinkwrap":false},"1.15.1-1633391047000":{"name":"playwright","version":"1.15.1-1633391047000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.1-1633391047000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-YYnBKMhyH9q3l2heyNMwvMmrGHXP15weEvVm44OwZ+0lDxBzEdgrRXKFfHMzhe+pY1eWwziDaqhsZeVPUYXU1w==","shasum":"76d9859bd43b870eb2c5688f00e0bdf7bdde1674","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.1-1633391047000.tgz","fileCount":286,"unpackedSize":6004431,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICi0xCWw0CCppwsHwXIGR9cvML5v/jn8fzn7a+7+GfOvAiEA+Is1glEZczXxAEgZ/Ubsmni/elSl5SwjSkQSSGdJ2WM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.1-1633391047000_1633391608196_0.22733571025160382"},"_hasShrinkwrap":false},"1.16.0-next-1633411110000":{"name":"playwright","version":"1.16.0-next-1633411110000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4660.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4660.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1633411110000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-gqUE1bUd4HeOHpYQY7nPK55NSCcnfXkKQHbiBbKCzZXhdxZg2x76jMsfgujYE353rxmn2omZMv7PJSIdBh5OAQ==","shasum":"4f63f2fa3e3cfab2e60722baff23c6ee2a76917b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1633411110000.tgz","fileCount":288,"unpackedSize":6047652,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+TDMN1KMB0AZoX92NUAKcN11g61WEUSkfhgMnjd3OiQIgOhaSbrEFRM+Mjdwftt5wu4WOT5aZnDtGi2wi+icVWeg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1633411110000_1633421359015_0.247315987288786"},"_hasShrinkwrap":false},"1.15.1-1633440750000":{"name":"playwright","version":"1.15.1-1633440750000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.1-1633440750000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-4qsBPVoL3rqDDtntjYVWED/00sj7VCF6iIYcRcIIPrlwMYtsXzYK54PDLd/y4W440MS2OuRNkcvW+lv/BLKJFQ==","shasum":"57a9d03e1d0a2f673eb0afb7cdca41ab22bebf55","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.1-1633440750000.tgz","fileCount":286,"unpackedSize":6004538,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHJfv3cJFZhc1X5K4Xs8vAAjiFpZyFsfXEe84F1WTRzAiBzpRYwxbz5Ak1aji9Y6kg930V5azVEQ0xOzxV6HhcFmA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.1-1633440750000_1633440944741_0.43612201028635234"},"_hasShrinkwrap":false},"1.15.2-1633455481000":{"name":"playwright","version":"1.15.2-1633455481000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4641.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4641.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.2-1633455481000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-ggb7qQm4twqNicOvTs3OcmUO0w45OdQExFzHmKD58zjoL+GSKugskPJIFnPl9uZFffslUauijF/ALJtHdu3vaw==","shasum":"3fa1e861948d5991b809a89ee79102d0e89bfd7a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.2-1633455481000.tgz","fileCount":286,"unpackedSize":6004538,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHE6qEur9ofJiOZYAUgRcxIXDnJuoxUCTmtKSCKYcc/4AiEAvWDTByZkWwRXKuBRyCwmhl76FWlupijOVqM2T3vTyJY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.2-1633455481000_1633455635801_0.5705237099152018"},"_hasShrinkwrap":false},"1.15.2":{"name":"playwright","version":"1.15.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^6.1.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.15.2","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-+Z+7ckihyxR6rK5q8DWC6eUbKARfXpyxpjNcoJfgwSr64lAOzjhyFQiPC/JkdIqhsLgZjxpWfl1S7fLb+wPkgA==","shasum":"b350056d1fffbe5de5b1bdaca6ab73e35758baad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.15.2.tgz","fileCount":286,"unpackedSize":6004524,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICv3/FXlXY9o/yRrQ3zc49SaTk0IYgS/IIe7Z6V+Fy9NAiBKmx6XEAn3QyZUV6tOIHoPjUgIFF1tIiOTUzyGtFy+7g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.15.2_1633466590689_0.3588405562740067"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-6-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4660.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4660.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-6-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-t9WYgj6XPXrQdk8XCr8pWlLwNrjrOqP+F4/nGt/C3k41Gn6SO7yta5DpFw2JRAiCkvH/hEass1xHqj3yiunhEw==","shasum":"300370c9d8bfd7b2176ea536646ab4fa452c98a6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-6-2021.tgz","fileCount":288,"unpackedSize":6047429,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUJXbTh4hXUyMXuYAP6C3C2KQkSsPCHaH/Esk+am6ozAIgJoS9y7ZYqQjTkhIqn80AQyqgpXm9fdZdEdLbeuCE40A="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-6-2021_1633479451300_0.010054527814110426"},"_hasShrinkwrap":false},"1.16.0-next-1633547251000":{"name":"playwright","version":"1.16.0-next-1633547251000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4660.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4660.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1633547251000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-QMesKjXNRLWUzoQTaRKoR2oPV4Cf3+XeA258MyIjONJTfsKHQ8aoGFsS9sHlJqgwlLlPqE19tU0BmDmmFFEprA==","shasum":"65e3268d719cd399c2770adff2d32db546a33ecb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1633547251000.tgz","fileCount":288,"unpackedSize":6048329,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZMNVcSLNxScxo0TrmUCOqjIxY80h8ICWyxv0bMa49/wIgMQ3WNiDmQ0Lm7HATERvZug0AEDZnjWsUopaaqetwL0s="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1633547251000_1633560024682_0.9083484796036541"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-7-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-7-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4660.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4660.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-7-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-dk6zQhUkAJDFGUmmJwRj1jfVbd6YGtOJkF55I/blHczoG5yS5+GrTjqP5rbxLjNNslp6J+5PgnmDOFY9UIR77A==","shasum":"bf69304e078b266e53f2415c46294b1b6db4d142","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-7-2021.tgz","fileCount":288,"unpackedSize":6048332,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJkloRRiJsPokvrDvHAJSYIVhswhpj1Bcp05s7bQ8rWgIhANviHd+PFTC/Wu4fq2IspM7YTYdiuD2g+CGjRbSMcIsC"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-7-2021_1633565875263_0.0899504673208329"},"_hasShrinkwrap":false},"1.16.0-next-1633635746000":{"name":"playwright","version":"1.16.0-next-1633635746000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4660.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4660.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1633635746000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-YCVOJIcetgYonrrNcl60iyfHr4U27V9yqqdHItoHOjBR2iOQk41ojpr0vBSlrUqR0OTOsNuf1iOp/JzHhGCubQ==","shasum":"0218f2e5280129b3f5ff14f7ca6508fb13e04353","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1633635746000.tgz","fileCount":288,"unpackedSize":6056444,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDM1NxFZeEG2afNXRtOpZeYazCjWD+VEncsiU5GhviC9wIgYOWu9PwaY3/EC2KwBxYMFGLLyPw9XpWjJXqYYjlSGR8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1633635746000_1633635909263_0.41997453245416216"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-8-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-8-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4660.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4660.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-8-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-Gacmgfw825V+nnbsZKAGdUIJqbbEGtMsimx7Ly2dDTzgxStXynv4hc71CCkJkKxrkrYH3t2lj3eWJvVTvOlKig==","shasum":"4775315a1210970fc570fd6bbbc0f4cdf403f0d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-8-2021.tgz","fileCount":289,"unpackedSize":6059699,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsHHV/JCJFAfZStoSQlcr4n8PVkxkwn95uqUXedtK4/QIgZ4+n/2TOJDAT+LUsPP76c9NbjQ7bcPn4XSsKVctnepo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-8-2021_1633652234282_0.05158129905907338"},"_hasShrinkwrap":false},"1.16.0-next-1633705291000":{"name":"playwright","version":"1.16.0-next-1633705291000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4664.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4664.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1633705291000","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-XdnAoIFRjQh2mBLAqFMZeJ1/MOLuFBD0GQkKI0PDsLNk0HsS/pDAzaYG3TLDKGZL9Poz/IGlLDVx2KgicrQZwg==","shasum":"939ab93c8c533d63f437003e96e978e271e7f925","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1633705291000.tgz","fileCount":289,"unpackedSize":6057002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDGFcDtu+YluUmdrdFJ+Tl0J9HRNbM+Bu2waLRd3tJjAiEAylZdUSZ99fvarUQrh4BzbhvqcVWF/Ju+6AUboe6VsCg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1633705291000_1633705477770_0.662456436658613"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-9-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4664.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4664.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-9-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-lOOgQ748r8pldpCxOB5B+25Auo/qe+RIDcvgLKSHjAXxD/Eq64h8BRlMZzXca5vhFFh8YcbQ8zU5EDb2dAIbRQ==","shasum":"4883f089f073b1e7345d2c01104aa02cdedac590","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-9-2021.tgz","fileCount":289,"unpackedSize":6061494,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWsrmnEsnDpeKxk5LEp5Ct9GvLoa/usnNtAYLCLpYZrAiEA2fAkMQRDV7+kp5tfpcBmEWymbIxO6LvQeBeUDKgSBCo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-9-2021_1633738654886_0.7100477493535788"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-10-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4664.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4664.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-10-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-/5NGdt7AcAbF0P/bI5kpVWd2IpNFBs96/htB425bBsb3CE0DxtGRb4I160EE3tWAW3PtYMldSvoXgt/DgXwJaQ==","shasum":"fb3df86407049bbd013b4e6282e7bddb385f082e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-10-2021.tgz","fileCount":289,"unpackedSize":6061495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQrNEkMulT0pUquOp84UXLN9TrcttiBa54lKMhb9qHsQIhAIY/jz5JSZsz8+iSZ/u3sLeO6glkrUoYteGcZm0IHfuF"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-10-2021_1633825050226_0.6863446133190199"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-11-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-11-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"engines":{"node":">=12"},"homepage":"https://playwright.dev","main":"index.js","bin":{"playwright":"lib/cli/cli.js"},"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"commander":"^8.2.0","debug":"^4.1.1","extract-zip":"^2.0.1","https-proxy-agent":"^5.0.0","jpeg-js":"^0.4.2","mime":"^2.4.6","pngjs":"^5.0.0","progress":"^2.0.3","proper-lockfile":"^4.1.1","proxy-from-env":"^1.1.0","rimraf":"^3.0.2","stack-utils":"^2.0.3","ws":"^7.4.6","yazl":"^2.5.1"},"_resolved":"","_integrity":"","_from":"file:/home/runner/work/playwright/playwright/playwright.tgz","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-96.0.4664.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->96.0.4664.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-11-2021","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-xDY4SKz1UkAbCTcdPYDTrxYo3jO2bETX2owfb6GQ4rHap95D5rHs1lA8Z2GT7w5p2/ycUrfiwO5aXHbnb9zlbw==","shasum":"88b6436403aaed0ed887f67710b6999b3f4ec6e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-11-2021.tgz","fileCount":289,"unpackedSize":6061495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC31G1Il89de8RCn8mdTtKOXbpZPlX0SNauaGBta7eTswIgL2GKufbgzlIJ97e+kFaAYwcWZmP9OjGAy8ycIfINJNI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-11-2021_1633911442686_0.42020638183241643"},"_hasShrinkwrap":false},"1.16.0-next-1633965845000":{"name":"playwright","version":"1.16.0-next-1633965845000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-1633965845000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f884103b62d3e9b538fc82ebfa85cef38b5533ee","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1633965845000","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-EQTk/E0uMurdp1MjOIzllhFTSO42puHteD2+srI1qenVbfQQluuy8U+yCDdYLY8Id4OlBc6gqN/Ua8sh41qWZg==","shasum":"5b9708683a8144371c26c36af2c8bab6f59afb9b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1633965845000.tgz","fileCount":8,"unpackedSize":20838,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBVEtvlhtpR9nlg7rKZChGWXZOp1mk/6zgrh5VhsPAcqAiEA5wanskIGPgYu9Nr63ESoGXbj3omynS8Y24kFuUdCUAg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1633965845000_1633966089550_0.2996490407632548"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-12-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-12-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-alpha-oct-12-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8ae926efbf4349de21cd76e907eefe7fb7cd25f4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-12-2021","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-u3IRibQH5d7yizRyR+F47ZFgPkq+rijVshLCKBsXdewMlUy8TIV9G7JCMz/spWjcWXlZRozIUOmweJKuIWcVgw==","shasum":"eefa7af42e4e6c78685a3b8f459e1876c9b00bd8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-12-2021.tgz","fileCount":8,"unpackedSize":20846,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm7ALUu+PG980N2nPOnPZHdwS+fCbtWfyn0l1i9QshiwIhANu4YKdtQn4rU8fRUrfirFHi/o9nLmYZgI+l/9q05uX/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-12-2021_1633997843639_0.8129139320085979"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-13-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-alpha-oct-13-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"617380ffeee1e58ead14f5eea17f31fbf3121c20","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-13-2021","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-wP2irk94owReuRqvuqO48RJY0xNNz5eYF/VDl5NbhnaPWTGJzFyQ/Chh/O8guikEbqR3zCwk6bnWD35dtD35/g==","shasum":"e28daf83272a8ee41783a98301ced0bd936f8b1b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-13-2021.tgz","fileCount":8,"unpackedSize":20846,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRSsuXqvWfZYSJUpWD8jE5N3zERwHWbhJYfQ27pG9mVQIgAI04dAyPnKdzjCzqikuDckBURPZutUOfM5V8LXIw+JM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-13-2021_1634084283353_0.24772682193990803"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-14-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-alpha-oct-14-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-92.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e5a3c9b9071ad2e87312a7520442f59f1914169b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-14-2021","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-hOIGMfbvj0w50gm21YLKg/d84S69Qwo0eNn8VbryeA9DjmT8w7P5ZBscJz0fdMlNtXLpl8OwZ/7Guto7gBtjCQ==","shasum":"714dd183a5e4793361d047048e0b1605ee9b085e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-14-2021.tgz","fileCount":8,"unpackedSize":20846,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGNXI2YNtTMnS4Jqxw5+FbXXUSOd0Djz2OXzkQ+FMRM3AiAuI1Xrym9RRnwDCNQM0PZKtZEeK6TXEWgfZ7DP/7hFIQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-14-2021_1634171185973_0.6078837017446703"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-15-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-alpha-oct-15-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"75cfe5d1f564dab2de6a5e45db2caace406e7ef8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-15-2021","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-VNZxJvLggSNfimoVGm1nWnjiy3GW5I8vwjeonGuRw1wfU3RZqVVfeDWy0EmWjRKlD7GsN6hrWbibpJHsNRcsmg==","shasum":"212e353b67e51458db2f07b8c081040e4450028c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-15-2021.tgz","fileCount":8,"unpackedSize":20846,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdiL6LTDetpKUZ9vfjPOgEjO722ts234bvY3qRyiPnoAiAlsFWH5d1ZmespxmucCtGuVHFvWGf++VxTGtvKkCBhzA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-15-2021_1634257078149_0.9481959334179078"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-17-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-alpha-oct-17-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f83199fb4a2d1c39e9d7f88e00bf1c7ee9985eae","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-17-2021","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-7VvfiWJgiREPXLgXRVdcUs80kGWXJomNQvhTNULFFx6c7VfExsj//Zn3sWkK89EbvZh/W93JfbZOdmoFFqFCbQ==","shasum":"fdce338dcbef09b8bd12101e8f31e1fd85321f21","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-17-2021.tgz","fileCount":8,"unpackedSize":20846,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFbF6rLua8UL8rpmPlD2aQc7OyU8beN0iiRwxTn4FLnNAiEAg0Pl0xkN8HCwsqWziMOOOiwV/wxKRy63dup/8roVkDE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-17-2021_1634429885196_0.3420372598510657"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-18-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-alpha-oct-18-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f83199fb4a2d1c39e9d7f88e00bf1c7ee9985eae","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-18-2021","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-uoC3Mohz+cHCtjBq/x8dit91ZX4cNMiTZWlwWt+ThGz7bdUKsb9+K/z43aeqV6HCcONBFHq9j9r9ddiXEMQFnQ==","shasum":"f92e819228521b69c93dc7e7b5affab905290ff0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-18-2021.tgz","fileCount":8,"unpackedSize":20846,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhGuDG7SUVwouj47NPILhQzMhM0qprqDJ7hbzMNcEATAiBo4uN+1PkH61SVZ4LmQfdkibRphmUZnCn9lYlgwSO2vA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-18-2021_1634516312181_0.5705088412232433"},"_hasShrinkwrap":false},"1.16.0-next-1634591576000":{"name":"playwright","version":"1.16.0-next-1634591576000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-1634591576000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of ['chromium', 'firefox', 'webkit']) {\n    const browser = await playwright[browserType].launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bc0895ea6cdd07e16d2b97a96027904bc2633ccd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1634591576000","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-+oZ1tQkfUuyGoko75D9BawWc/UWBg8Ls5mkO/c+J6lTg/UJ5c1w3L2MPaNuOpMY1/0fWK5OXmmU/F4ysAja01A==","shasum":"bf5cbbc904e3bc50e76555c6f3e665a37444204e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1634591576000.tgz","fileCount":8,"unpackedSize":20838,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS4VHupJkPCUS1VohOXjp82PbKFVU1gaGHsdREJjiH6QIgBrT93R86B3sp9+idM9roWaeKuvr4/dXgZtEg3HdAdac="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1634591576000_1634602412743_0.32450998423930266"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-19-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-19-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./":"./"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-alpha-oct-19-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1656c7071e7a591495ad4dfc5523263a231ccf14","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-19-2021","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-fdIgqmI1/yTN8e1KKjEaL9/+zcPXE1MHB3R9/q+C25DL6Yny4ElpNjZCH8KjjdYIfoBbJeH8EWhiGZZEzR/o2A==","shasum":"c760571833a8a5af280b1edb0b7564fc3144da9f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-19-2021.tgz","fileCount":8,"unpackedSize":20868,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcEX8cBftpjgGz2u4G0n8qH7/OBOiZqwov6zWq0z3qeQIhAMcgaVeJESUUBijW0NvPuk2Uwx6h8rPkwCWWIWb/mvGZ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-19-2021_1634602986474_0.566778480579512"},"_hasShrinkwrap":false},"1.16.0-next-1634682977000":{"name":"playwright","version":"1.16.0-next-1634682977000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-1634682977000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ba57be99a95fad83254451455572bf3d2aa15c90","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1634682977000","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-Jzt+toBNZKmp6UmlmzyoNMJWOisVc2xZ05NngOWroUn4JE2lxVjd9MJierX5Br4xlGEq6yBTwdc7uW/haFiKLg==","shasum":"0072aff11bcc5ad8a8f0c51ed61f79added7dd1d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1634682977000.tgz","fileCount":9,"unpackedSize":21560,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIARrsTJ+dJkv5MkIz9LVq3ic21sIE7U6EVa1iOwSX9EPAiEA3IXXXBD+1yNcxcJa3kCyfPd5+MojEVH4KvTsKFor7n0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1634682977000_1634683342213_0.5645662371848761"},"_hasShrinkwrap":false},"1.16.0-next-alpha-oct-20-2021":{"name":"playwright","version":"1.16.0-next-alpha-oct-20-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-alpha-oct-20-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dddf70cead58ac374bc1a6f734953e723a034172","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-alpha-oct-20-2021","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-/ZSgc2jrizhpFTOFy//Gogw+wkqyRVaqgEB45dD8O6unpcr/QOq8qeTrgRql2yOnuwJolWla5wtXpzls6Yantw==","shasum":"80d19346cc5d6ef732e31ce7cf8e70b1058f5f59","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-alpha-oct-20-2021.tgz","fileCount":9,"unpackedSize":21568,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD98JYSiD580MUM3y+OT0erPMrx5SS+waah/VBgLpC39gIgULMomMXKfEYEItEqb7IfatHfW2PBSsA/C3r2oJCAdoQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-alpha-oct-20-2021_1634689123104_0.41906120458825"},"_hasShrinkwrap":false},"1.16.0-next-1634703014000":{"name":"playwright","version":"1.16.0-next-1634703014000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-1634703014000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4423de999645feb374430f39d534109acf0c4fae","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1634703014000","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-CwqnqQXxcDkuKD2d2Na+B/rNWZA7ax7SnJj8mLN+nPR0/7kNZsMIrvpqJLzLxuW+FGizNEM9rfjrL+NIXvAa8w==","shasum":"9018013b1050a11916f51365d3a0cb5451c7b130","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1634703014000.tgz","fileCount":9,"unpackedSize":21560,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+eRdZ+Xzvl3rCfXYE5fKB3J5l/NTJzS8UZiB1LZAZCAIgE8UqMlIw24kL9SrdlcVYPob5gADm0D2c9QXSLwNwskk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1634703014000_1634703393459_0.7090701066461416"},"_hasShrinkwrap":false},"1.16.0-next-1634756762000":{"name":"playwright","version":"1.16.0-next-1634756762000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-1634756762000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ddb70a6d35444d1060a47fb52138764a0357c86a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1634756762000","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-E5X542oZuTsHB/wqWzWQgCWvnPLCpeRfm5ikWC9G4/mdchUqv5vLyU8Aj0ukLjHmJD+8AxTXvss0kXTuTX6o+w==","shasum":"4710bcb3e3bffba1eab3c3fb1caeb3d3eb80b951","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1634756762000.tgz","fileCount":9,"unpackedSize":21560,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUQ/IYwg7hcIRxEmKP5Zr6AaWAz6qSPeaiOWTRk+9v4AIgCo60k9rR2EUNkRaL1qFWu6m9ab5FtJVMfU5og9ppV/s="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1634756762000_1634759391543_0.19654480216120418"},"_hasShrinkwrap":false},"1.16.0-next-1634760607000":{"name":"playwright","version":"1.16.0-next-1634760607000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-1634760607000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"99c5df9c614de7413408fc7cd99fe1a546014378","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1634760607000","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-R9rhiZGupvu8dQA87bgGaY6Fh19+hEHwN0tcsTZvrLoAi1spCieR6gB91r+Xct63ZnUMjqVdG+tNYkFQ5I9r8Q==","shasum":"813074d7a877e579c728be5f3cd47efc23d12bee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1634760607000.tgz","fileCount":9,"unpackedSize":21560,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEN/lJ4STCnaL59Ta3S8unUcWkZvm7E0w8kW4BKBnfm2AiEA1YxJ8yYSLbpJimAxe9bypJ62vtCcjAv91/N6DnnIBmE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1634760607000_1634761790807_0.9280781582888658"},"_hasShrinkwrap":false},"1.17.0-next-alpha-oct-21-2021":{"name":"playwright","version":"1.17.0-next-alpha-oct-21-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-oct-21-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a9bf96e1bd08fc634d92c8301ebc7c0d6444bedb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-oct-21-2021","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-VEzH2EAip8nlB00rOPeoulH5xrYcrcaWRkS4kHqzlYQAa497I8aOyiyb0aLCpvqBvqW50Sd9oi1HNNi7L878nQ==","shasum":"3c1d2f25daa27550dc93a493dd93bb771c71cd8c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-oct-21-2021.tgz","fileCount":9,"unpackedSize":21568,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXmdHqzc/nzWG/lBO3KpaW8Of9mOcWX7bC6BWjNr7QJAIgdszZ63K7Ecl+UCPvmqA/EpS7BK1DVxJjK/yLj1YZ/Ww="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-oct-21-2021_1634775468324_0.4279650491655951"},"_hasShrinkwrap":false},"1.16.0-next-1634776202000":{"name":"playwright","version":"1.16.0-next-1634776202000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-1634776202000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"895585ddce231c877dfeac472cd12859b3a9286b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1634776202000","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-ydMZwzcb8N/WI2WzpsRe7KlUwO53EDFwp73cBwgeJcz/vauF1xmTx8y3mctLN3wRYE4o6SDfkE2nCXk6QQLttw==","shasum":"bc1d7a8ff1b9d22758e18e1e3410f24644b6ff58","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1634776202000.tgz","fileCount":9,"unpackedSize":21560,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFanEsanjIpOg5RHtHBr9+KEx2VXNb7hs8yDR/NUjvGUAiBahETVfbnCViwaMfTbuBd/N2DUxmTPUbeodjamNFnGBQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1634776202000_1634776488329_0.6214061402925715"},"_hasShrinkwrap":false},"1.16.0-next-1634779886000":{"name":"playwright","version":"1.16.0-next-1634779886000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-next-1634779886000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cafe5f3fd1b27aa01a5a5f1e9368eba4415c8fc0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-next-1634779886000","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-EXoyzvGe8tQH3bhkAEfSY6J6AoU3b78CTTs54U6ELYlNsT9WLx40KhHan4ziqJUO2EXVDXqeQy/7qKYI7DQ4NA==","shasum":"8eca34c22cea81ebbc917cf21569ea0638d50eae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-next-1634779886000.tgz","fileCount":9,"unpackedSize":21560,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8kERzAA2wyyq2miE5f2gdgFFa9UOLyTdgnGbnRE5E6gIhAOy+9wEio5MKrhZgXrswQXJstrJJL61RntOf9KayjC7w"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-next-1634779886000_1634780101653_0.14581368198397948"},"_hasShrinkwrap":false},"1.16.0-1634781227000":{"name":"playwright","version":"1.16.0-1634781227000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-1634781227000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"945bbf282865d6862a63b9740c5501ecd77d7773","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-1634781227000","_nodeVersion":"12.22.6","_npmVersion":"7.24.2","dist":{"integrity":"sha512-c0Ox6dTa29nIEysghao0h4M6U/gy1susKlbFzSoGYdIQHVqfOu4YTmV5mRMlh2nlux08TmiCXJNKptOKcLyevA==","shasum":"870c10766b1eb7c4abeffea418273eb5e087d12b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-1634781227000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHxcT5guUVTUB19M6lFGzxwLPUzVqnxz9IJlGk3YWtbcCIHe6z9xf2KO6BzDgCMsHAxTa/i4wcty6kilAcIZskk13"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-1634781227000_1634781404300_0.2946442529316058"},"_hasShrinkwrap":false},"1.16.0":{"name":"playwright","version":"1.16.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0"},"types":"./index.d.ts","gitHead":"945bbf282865d6862a63b9740c5501ecd77d7773","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-EFjixq8/wT1So6TH1yXoJ3fxFJkEhmmi8BanR5yfCScG76x4WDH0zj8mVkDl9ovfODjy9g6Ba/a/5rXO+0sz6Q==","shasum":"2a3a87de34dee6aad6d07f6fa05fdb5d57455058","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0.tgz","fileCount":9,"unpackedSize":21522,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFjwl9nPRpH9VkPPGo1kgclM/M3eUJ2UXSqaF7tE3I6ZAiEA5Aa/gXyopfRJngIqd2JBTrhg951vtEaKg1FDcDSoSXw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0_1634843615014_0.37565602282751276"},"_hasShrinkwrap":false},"1.16.0-1634852871000":{"name":"playwright","version":"1.16.0-1634852871000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-1634852871000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a0321f44ec7a7290269940805f7f184e5e15bcc5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-1634852871000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-g5Uf94XltR1IL7wzBRXffpuvgtPnoDNae2xYg7jGZAuEpP3Wr7GpzvVGQW8AKARKzyDLO2pPxxy6QMLOPzQ6jw==","shasum":"bbb8c1b8e1c8473014cf74acf847f70c00890ea4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-1634852871000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdDC5lodmaXrohKZcwaoGmOrthaxWBldqBKBlCEtGepgIgAzzce1FpaL1K4CYoYXbpYFkav3IwXa/ZXC6FTYLEKaI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-1634852871000_1634853243246_0.2550354777964874"},"_hasShrinkwrap":false},"1.16.0-1634861253000":{"name":"playwright","version":"1.16.0-1634861253000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-1634861253000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"455683b29d13d91a4dd1305055dcd87be7a71ae3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-1634861253000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-LfSAolruYUZCIap7MXy7slelmfaQpFok76ltHPFIdGvoycjcJivXC9+GL7nX8+07qIhhgffRj9PVWz/qz2js1g==","shasum":"c91310b616d3c53331c3b884bb1257504e1f2ee0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-1634861253000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9g7EISNE5O/Q4j8LpFlvEE3Io5svnHJmcGNe3omw83AIhAIFI9ayKqkKp+HBEv98usO/ME6j2lsi24FQNpUFeWtdz"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-1634861253000_1634861530172_0.8468690298735344"},"_hasShrinkwrap":false},"1.17.0-next-alpha-oct-22-2021":{"name":"playwright","version":"1.17.0-next-alpha-oct-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-oct-22-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a3e08d1ace876a874a017f3a756ab8ae96f391a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-oct-22-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-03X5YOxu5qlxPu4BvryfLk94AQi+xaOMlddk4f/INjMOFW1QDpTQH13tqUHrO41YDwmGHagi16h7dWRk01tnpA==","shasum":"e977cf611b02b0b8715d771abe8cb883d5a2068f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-oct-22-2021.tgz","fileCount":9,"unpackedSize":21568,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1L6+QJ2lunmhDavClm5hyX9p+DVELS+u1Jzh/eFPgbwIgWgFe/qzUFS0vaMckH0G/j7Y3XWGsKgBE4/eupBOpjKM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-oct-22-2021_1634861883045_0.21751899972012034"},"_hasShrinkwrap":false},"1.17.0-next-1634890429000":{"name":"playwright","version":"1.17.0-next-1634890429000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1634890429000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"60939a91b2c21d6cd5ecfa67ef858c28b05f15ef","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1634890429000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-L9xLawDmoiI1GIiIXeF3GYOFZEdb0IwMwbzxhJMGNqCHINYOZkLFsiWuaH8MLHSWLrG3PtiziNRUVIwSQOL9IA==","shasum":"fbdb6c9e6fb0605144a2443b0433e14b031a5bcd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1634890429000.tgz","fileCount":9,"unpackedSize":21560,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpumEEAN2zOrhn7ZcSq1Xpnas/o/ry6ORkz12CCflXcwIgZcmY7z+e+POaGDjFqWTj+yLMFruI+f+p7KS19K/UYXM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1634890429000_1634890827878_0.5885474342226238"},"_hasShrinkwrap":false},"1.16.0-1634915778000":{"name":"playwright","version":"1.16.0-1634915778000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.0-1634915778000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d9d9417cfbd1b4e031609637ecb117c1da9a2037","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.0-1634915778000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-ymwWEJ4qMXbFfiKeP2Pftr2m7x1hCKYv1vOGFI66Y2tWAszuQ3c1yPIF61XTR6mQJwnBzr6Fn1Vn/6jXBVyUAA==","shasum":"cf8e89926157b3c88c19dd6048bfd6efe9a1cf15","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.0-1634915778000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChWFzmxoA6QmMf3WDhJTZDl7D8F39PA1MH+aemi7GlTgIhAP4Yu/HjzBwuySc085itunb9xGrivbgH81AWaeTLKz7A"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.0-1634915778000_1634916076338_0.03571298404516621"},"_hasShrinkwrap":false},"1.16.1-1634926303000":{"name":"playwright","version":"1.16.1-1634926303000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1634926303000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"627bed416db6f20bba5d9025af0d2923a94eb273","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1634926303000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-SnLc7cQYn8m1vNZx3cTw3fp8dvdGPbe9FcIHu93QAS041nz1N7iN1GRtCusbJaRNrC0pVOA97xXWejlBiRcEtg==","shasum":"f474177b715935090bef45f988ff8639f8f67e01","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1634926303000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEe1aZe5A3t6cJyRidLzIPUOVlhk3QxwSykhd90U+K33AiEA7kSaR3hdiQrsvO4vG455pbVnGij7MBKcEjcmRq/v7s0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1634926303000_1634926494240_0.09536507405900241"},"_hasShrinkwrap":false},"1.16.1-1634934341000":{"name":"playwright","version":"1.16.1-1634934341000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1634934341000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9edf0ed711485fd32746558c79a533e1a6832b04","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1634934341000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-oQO89agR+Yc3Giheovjuyc8FMLEMRrXAVz9mTFr5g7bP86bFmJZRbuxU3JoyLxbS/UXBUOhl1eRR4AzMHoWB6g==","shasum":"4980f6f73215567f6577d16428570330388289d2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1634934341000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDmiiEX/M7NDtrbI+e2uQRKSi+YUKUwD0/mAKsJzFSMAIhAPKW6LworKnAcMCGhb4M6n8trxnlzRzwQftuMh3Sn7wT"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1634934341000_1634934530650_0.8613133398186323"},"_hasShrinkwrap":false},"1.16.1-1634940933000":{"name":"playwright","version":"1.16.1-1634940933000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1634940933000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5e12a4a52e71c439fac1a2372e297633ef850cb1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1634940933000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-NyK8YTM9r/f4kIiEU9tO3Tdtd7vCLZACxNDYw3ngSYo7OU8sDisUh1f6RFZ8TB9LHJ3ULg/RbYfICuTpv857Vw==","shasum":"17ffd5ab0304580792d13aca6ac18c05f4aa9a3b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1634940933000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAiHbhZLsln+JkZ8901iLlH7nKpkeJU/rB9S/a8exKIwIgBQjfzNzPIoTNaV2gKXvNzY07KkOs7mAoaerGA09D35k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1634940933000_1634941355423_0.19228734983080864"},"_hasShrinkwrap":false},"1.16.1":{"name":"playwright","version":"1.16.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1"},"types":"./index.d.ts","gitHead":"5e12a4a52e71c439fac1a2372e297633ef850cb1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-D7o7itqxsJ4vx4OlcPv9brOe74M2J4gDDt9qVI9ptgtHtxCi48I8tSXE/trX1PoHFuJeeVlo+tGvhtisvPGu1A==","shasum":"c3518b02448f7fd0246e8f4ccdc38ac4f74b428d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1.tgz","fileCount":9,"unpackedSize":21522,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcwck4e3P45qC/3x49/fegep7+dCn36lep6te0Co9WnQIgaOUr53CgwYMUyfiby/Konq5K6dQJbOMbH28KpVT5JyA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1_1634944236363_0.07588741876325678"},"_hasShrinkwrap":false},"1.16.1-1634946815000":{"name":"playwright","version":"1.16.1-1634946815000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1634946815000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b3a1d34398dbea213dc33be66eff0ab8846d48cc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1634946815000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-KCrJbI2ifVxC4d4I0Eq26vwHzk+U0Egel4lWlXNR9PBBqYWQ7Jz7jNAV4O/igcoteECzUdHEgSNCY9oN0jt3Dw==","shasum":"a714d9e9adcead226b8d8c02efbb46914769de50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1634946815000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBjN4YvSXRGWA7NErZFuvnpSEDIp87J9glOshou/82eAIgG6hc4UnS8eY8c+Otl/BrlstNtCFhNxkEtFqbEyIf7dw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1634946815000_1634947053192_0.013530342001259577"},"_hasShrinkwrap":false},"1.17.0-next-alpha-oct-23-2021":{"name":"playwright","version":"1.17.0-next-alpha-oct-23-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-oct-23-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c890510d867741fe2d864c38c5408b28997aa4a9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-oct-23-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-DLJ9GocdE4IKAGISfG5NxsY/OnYGIZFHpoWZn3AX+LM2FW7uxTPlE9i6s0vLVWbN4IwDe1PxpPXNhm+RTDE8qg==","shasum":"bd7dd6bcf0ffc0480d6067e7d6bd7a3d9f538b72","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-oct-23-2021.tgz","fileCount":9,"unpackedSize":21574,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGj3uF3girDTD8GkKXs/Dbb5xhh/YDMJPd/yeZPvPrtgIhAN9YXRK0F7Qc7iNCuE63cw1ex+7wpzfixyrrDY/XeWbW"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-oct-23-2021_1634949171624_0.6290445921239209"},"_hasShrinkwrap":false},"1.17.0-next-alpha-oct-24-2021":{"name":"playwright","version":"1.17.0-next-alpha-oct-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-oct-24-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7527ad27d35d9352ef35246544d1f8a9ef552dc6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-oct-24-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-nmRPY/2zH1Gm9zGrjveOEUvfmeRr0lh8Z6Z5wueAHLI0pLI5OsBpn5HxpyQI4+MUSz8k6zAFlFHJBmMmGDmadA==","shasum":"59e481c3ed0829d4546981c0683c7f086cff1d43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-oct-24-2021.tgz","fileCount":9,"unpackedSize":21574,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDS/BrNLmAJaxtp7hoUtNbgECXAWWzdCdhIWLVOHrU6+AiEA4HjteTt7TDbYfPUygMlzdv6+8mVpjfXSbqWogbUXArw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-oct-24-2021_1635034686488_0.6827183525276448"},"_hasShrinkwrap":false},"1.17.0-next-alpha-oct-25-2021":{"name":"playwright","version":"1.17.0-next-alpha-oct-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-oct-25-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7527ad27d35d9352ef35246544d1f8a9ef552dc6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-oct-25-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-16mIvx2FkOOB1CyDF0DuqZro0vJiwIFHWEvWkDtM+90kveXU8wupAkwgiR5x6w+x+bT9pT/0PjBlhdAUxIKS3Q==","shasum":"f2309b2cc44216a801da078241c5fd45176e6b89","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-oct-25-2021.tgz","fileCount":9,"unpackedSize":21574,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBTmoEB/tQ9r4PSf5HhTiBW18aJ3Y/BPO9ue1smPapJ7AiAwc34j1suYCLG4KnGJLDnYeG7NOLm9/WyT1B2eRRL6jA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-oct-25-2021_1635121068379_0.6248156503412339"},"_hasShrinkwrap":false},"1.16.1-1635184173000":{"name":"playwright","version":"1.16.1-1635184173000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1635184173000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c75bdded2b37cddb765d00c78e0a8172e74e112e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1635184173000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-UhsqZRyZEBQFU7kFfOzM7XQWs6Hrv8BQVnvIItBM8FZvFdsDyEmtL+O68EIZ9HmVF5zrfaOQ5ntpJRR1wlM1ig==","shasum":"8df89db20d5c32a9421c81698b8919cc6488d253","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1635184173000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCJcDa4XYSLregSNE5jaBdZ4VvTaXi3AyxgiB5gZjhKgIhAK2drVqPIeW/hIdTAdZXvXkeTp2Yb80bvX66OYEIgmx/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1635184173000_1635184466973_0.7203378742319253"},"_hasShrinkwrap":false},"1.16.1-1635200406000":{"name":"playwright","version":"1.16.1-1635200406000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1635200406000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"18a0a4a4aa43cb72d721440d278b6414efb2ca0e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1635200406000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-l/7xV345vzMkf928bSeS+GULaDMrnrpylrsD4rBIhzZzD4dJopKs4vjnX9OL6dYlLlOM16LCOAh2FaDdAM9uxQ==","shasum":"de7508b0183157ee06f2ac846cc12e403fac47e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1635200406000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID7ifJCQHovlmQTsjyrj5F+xkCX7cl0OzsNmQ4WFW6XIAiEA35rVgeBLFGDha8yJMh5EH1ci9LudO+bgx4J4DI9dEO4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1635200406000_1635200606193_0.39994831330435"},"_hasShrinkwrap":false},"1.17.0-next-alpha-oct-26-2021":{"name":"playwright","version":"1.17.0-next-alpha-oct-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-oct-26-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"676e72c8e0f46ee641f21a73a7f67898e1300594","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-oct-26-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-SvnkJ3Az1spIDidOH0yddvGkEq0QF+GRSR+xvZm6whtvfg98Bty1tb9FBCIF3DEYggwcY4xY88QYO4b8qH02SQ==","shasum":"21d833d60e2a0e4f9acd116a6b39fd90c0e1bf2d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-oct-26-2021.tgz","fileCount":9,"unpackedSize":21574,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFgY9fa9okljIEA//yXG0s3CcMaHfzc6TJ9dfITLCTvVAiATVTq2CAi03OXsiSg1K0wtVihWd9J+uVTAD9KMsQpH9w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-oct-26-2021_1635207496807_0.8339514085614979"},"_hasShrinkwrap":false},"1.16.1-1635279837000":{"name":"playwright","version":"1.16.1-1635279837000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1635279837000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7ba8ba789b603174f252841c915634e649d8d64a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1635279837000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-lic3N7Sn7pmg6IO8JAuDWCQZnppkSSO3ISpz2Qvg03/p1/azUWout4U/uNsfyftZV7oZFLmebwh9qAMNkffiuA==","shasum":"de591c7fff2216af21b7a40696c99a5708133817","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1635279837000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC1N235UJCNXOBELW3nfgl2z/7DHiCktGKcL907GbMmXAiEA3rlaoIxEaO7WEXZBVODU9xCf26ETAks3JKKM/xhYDak="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1635279837000_1635281186277_0.9900614308799653"},"_hasShrinkwrap":false},"1.16.1-1635287620000":{"name":"playwright","version":"1.16.1-1635287620000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"}},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1635287620000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2b59574eec3b0e8e84dc6a11937afe180499f57e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1635287620000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-wwz43RSquWlpaDZOyH8JgH8YLWOAhHslt2XPPGdFdYAzDaUD2pF68kPQHMMc5d3XWVQ68po0loDsYXbkxiBz+A==","shasum":"a2cb26ff2022445b7441a55bc4220b5214d0aa10","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1635287620000.tgz","fileCount":9,"unpackedSize":21550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8HEcU4GSE0ggONEPAFkkqQnQrPjPIAVom6l/o6AGeRAiAGk2z2z8NBr9oF+w/jA1BjZEDDx6FVvVLKIvZtAY6bkg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1635287620000_1635292734879_0.8181047502483658"},"_hasShrinkwrap":false},"1.17.0-next-alpha-oct-27-2021":{"name":"playwright","version":"1.17.0-next-alpha-oct-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-oct-27-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c8addef03a34837e30fb6f47ee05f655b5db1519","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-oct-27-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-U/ZhKBknxBv5qgR31xrsRdDlUfzcgw1uVZ2BSo44Ue08YL0/R6WCawl93qTIUIRVz1ARfWZDgZ7yt2WkrF7PKg==","shasum":"ead65af585b8018b961293bdb4d0fd7956339303","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-oct-27-2021.tgz","fileCount":9,"unpackedSize":21639,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxBC7zaLakCtieXs/cUknPxj58RxzTKwgfWemGzzwZeAiALiZ792Pl0NYFUvbhX3DCgyVljskBzSlThB7LNiHzyGQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-oct-27-2021_1635299234148_0.5171669361237605"},"_hasShrinkwrap":false},"1.16.1-1635296896000":{"name":"playwright","version":"1.16.1-1635296896000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1635296896000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"810fa558c1f4bcc802acdf32475fddf97b526a19","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1635296896000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-KGc6oXz2uo/gR4mlAm+Q/KS9FzD3sWg7FbSlcynZ/4csij2yNGsxR6+i6FjnTyHfaeBNdIKIzcGD5RgrLrjl2w==","shasum":"60269f308c797c538ea36bdf9d7a23e5913bc562","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1635296896000.tgz","fileCount":9,"unpackedSize":21615,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8H0ytRFiNRbXWzBG3JxC6vhuLHcuCOCFWC/lJ7P/bQwIhAOsq3bh0AR3i28chB/i7zRZ9pNiFKFDNIkVcJqx0Rlck"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1635296896000_1635300496771_0.3159620850377671"},"_hasShrinkwrap":false},"1.16.1-1635315681000":{"name":"playwright","version":"1.16.1-1635315681000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.1-1635315681000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cf98ab7fcf8418e221737b9e577ce01efa37e7dd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.1-1635315681000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-wz4it22EsnnRx5vDZroeG1lDbAeTGcI/rWdZ4TMWt8s5z/4vGO2sbK+V6EUl2+2dhP3z+q9UGEWL6gNeO5ZeOA==","shasum":"af137af0f33073bb8801e8b180ed1c76e2b415c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.1-1635315681000.tgz","fileCount":9,"unpackedSize":21615,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxwcixBLgipQz4eJD+/buM0hL8fY7eLNex32fqn4/qsAiEA1m/2DzWkEWyQ+kP2baBfQ00XH7XMa17AjrLY7BaqUuk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.1-1635315681000_1635319097851_0.7654728731823788"},"_hasShrinkwrap":false},"1.16.2-1635322350000":{"name":"playwright","version":"1.16.2-1635322350000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.2-1635322350000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5e0f327a608ed1df0261b22f5b9f0b091c695163","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.2-1635322350000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-fxu/FJhTUyRLssdN45ILw9Qzal0NGkzDvvEt0E2N6udbLtfOQ01RMUoCp67GfMaNktxgKlBAdrdtb91hi5Bk9g==","shasum":"24c276b9457b05967e3eb6933c96b6e4e1ca6faa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.2-1635322350000.tgz","fileCount":9,"unpackedSize":21615,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn0LDIa2fiMmUMpfoVH45dmlbXxesan/oLYOdlGD7cdQIhAOn6aeZknVPb8OSsesZ6KoHRY5SKYdP+h9Pwo7US/nKs"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.2-1635322350000_1635322538322_0.1799139146797184"},"_hasShrinkwrap":false},"1.16.2":{"name":"playwright","version":"1.16.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.2"},"types":"./index.d.ts","gitHead":"5e0f327a608ed1df0261b22f5b9f0b091c695163","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.2","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-lqndwy5rDIp3tOLex5lnLSrltomqxgVkRkRi547rXoTl2qy7PY2rtHbUouQl7KY2XoVSeSeECYVq/bLJ+bbJNg==","shasum":"92e1c48a74cab778970facca4094ce79fb57cae4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.2.tgz","fileCount":9,"unpackedSize":21587,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAegk9Lc7hVNFIq0sq66CSZgEu+D78Xbvq2kjt3Jh6nXAiA1dHkAUGRnEuqlVUF4GniOlFOjHuZN5kgPWCxO2rw5Rw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.2_1635359572690_0.06747437430509828"},"_hasShrinkwrap":false},"1.16.2-1635467086000":{"name":"playwright","version":"1.16.2-1635467086000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.2-1635467086000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"51a028963519e541a7cc755ce1a0cfca6602ae99","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.2-1635467086000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-8bYEOCLkWDS4LgzpVF3KSmK5K67NTuhE8oew0w1NA8DqtAPLYEoAtr7pAb1mtFL8VoJloTRUFtyPcvZtdZggnA==","shasum":"43c05018bf71617d8873cc30798ebd873b5d76ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.2-1635467086000.tgz","fileCount":9,"unpackedSize":21615,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBInF3UE62C5WSoxJGq4zxwE+fciOywnHbhFuG26Wl4HAiArvSX8g9ruRGX7AT1ogpeXjGoKavXPrDLWr6act06EHA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.2-1635467086000_1635472960218_0.4872047989714563"},"_hasShrinkwrap":false},"1.17.0-next-1635521587000":{"name":"playwright","version":"1.17.0-next-1635521587000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1635521587000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"34e55007d0141b52e70127881bc260ed42cdcaef","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1635521587000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-9Np/YfgWv++S6uUttgYbLFZAQXxPsZ5FGkzG3I835PTELD0PO9uYeptuFEnGpolm7XOQkwIRJz2eCsKAhu3GoA==","shasum":"cc039786ed290079fab3cd8931ca7109497c2cac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1635521587000.tgz","fileCount":9,"unpackedSize":21631,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBl0u1jrOfRRSJZY+quVp0a82ynyR3z57Vi1u05CMoRbAiBzb9uOWtX/NWcJ31gofjYF5GCW2qkvhMg4Dp6lE7kESQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1635521587000_1635521893364_0.17754962961241216"},"_hasShrinkwrap":false},"1.17.0-next-alpha-oct-30-2021":{"name":"playwright","version":"1.17.0-next-alpha-oct-30-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-oct-30-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8991bbde339127305791080f294104eb40744254","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-oct-30-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-JzHIcHzSmHlONlEto9gWksluFpLG92CwqQ5IbDZxflWybe3AoTDJCDt6bxEK73aovd3YaT4GP5477XROd2+8Pg==","shasum":"85b10de11fa24a06c561b4c3a9d181a873733d2a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-oct-30-2021.tgz","fileCount":9,"unpackedSize":21639,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6pHBWS3OhBNtEw5aDx62SKlpBNWu0iSg25GnwTfvM+QIgS8moZNNnStCcdSpmTr3qIWNn9A8PjqY2bEEAYGgLLfA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-oct-30-2021_1635553100414_0.479129068873017"},"_hasShrinkwrap":false},"1.16.2-1635624469000":{"name":"playwright","version":"1.16.2-1635624469000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.2-1635624469000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"161ff902b231b11d2d2e81f664c71da04eeb6927","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.2-1635624469000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-2WQ9zbc/GDK1MdMsHwXSjkb+oEVeopmHONZa12DzvnT53sxop3JicRnbf96qTn+Fijd3j2vBrZ91/1KTXhGnzQ==","shasum":"e04bc516153dac0809f1c85f22dc0c431bc769ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.2-1635624469000.tgz","fileCount":9,"unpackedSize":21615,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/qyXiXbc7AmxlzvoDwy2y1yIph+7qDEg1/PW0RciOGgIgT4QDtxcnZqD6QgiWNhT7d9FOXvUTbnrlodlyV6in6jk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.2-1635624469000_1635624674043_0.8264777696155508"},"_hasShrinkwrap":false},"1.17.0-next-alpha-oct-31-2021":{"name":"playwright","version":"1.17.0-next-alpha-oct-31-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-oct-31-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4ff69529d410144b30bcdbde9497ad600141a6b8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-oct-31-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-f/t7zz8gieUpqHrVTaATVuRMCA3xLIGQx+p4aMmYzMxHnAHMPzatWeplFk6bfG7q3VK1jBrUzv2HyuxhR3cTEA==","shasum":"c67fd45def15fcc73dcda9ae7d6d6d2dc36afcc6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-oct-31-2021.tgz","fileCount":9,"unpackedSize":21639,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfwCLOZmFhxwgHvEN63/SasSIStBcwRcvbiKNw5G8WVAiEAknpEKyX3TyjELoWF4jsKsck9v8xrrrD4WBKCgpw3GSA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-oct-31-2021_1635639507753_0.2162464505795627"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-1-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-1-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-1-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d6adff77925a52bd86fc0f679f0bc5dd5cd0cc54","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-1-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-CKzdXsuqQNFNpT/zZ9Nl12lu/P/yTgCE+e0tiUfBWLnx/fG/O4C9OBfmkusYvxOQfpqp4WJG0Lk5Ux9lCKjQYQ==","shasum":"244b1eb651c35cc9c7a5fcf2c36281bf9c8e7fa2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-1-2021.tgz","fileCount":9,"unpackedSize":21637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnOE1DFGOosFSVmKss9MLHdguoDDolOngULcFTo4cLEAiA4EU+E1Gj4h5xsLwoseFthtujKBuMQABCAuoRU7KRHmw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-1-2021_1635725892085_0.3789801542881408"},"_hasShrinkwrap":false},"1.16.2-1635727112000":{"name":"playwright","version":"1.16.2-1635727112000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.2-1635727112000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c6360e754c4fc8b937886165004ae4e764d750f6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.2-1635727112000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-4adDZ4CviI1WYPaBSX4aTcgtUzrDb/rSddbWYeyIs8sNRsTSMGYa6dMwRoTHfnc5SXSwq9TuMlRzInbBwNo6fQ==","shasum":"ecefd9a17989cf9e56e789af95e11a3c5fcaa2a6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.2-1635727112000.tgz","fileCount":9,"unpackedSize":21615,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCV4gDxJdGq4zBb2+CI75VE4+T/CnHu3cJ3RIWMTQ55kAIgR96iU2OzwMczgNOCGzx14KpL0pEQKDd6FxX98jhPQX0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.2-1635727112000_1635727367704_0.0034112389515565944"},"_hasShrinkwrap":false},"1.17.0-next-1635761637000":{"name":"playwright","version":"1.17.0-next-1635761637000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1635761637000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f6712fb9fc0c66b0a18c2c8f1ce0ea2371004075","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1635761637000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-d3aYS46AelZqJf8C6fkvwhtgU8eVAG1at+37BW4Fei83XRcu4A7wV54ktmLnuWTKfy2YfoqGSEP0bWpKF2ZFCg==","shasum":"74b58b32995bcd79378ddaa6d74755c69f67e5f1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1635761637000.tgz","fileCount":9,"unpackedSize":21631,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxZV6NgJTW9RmDYRBVglDliXYhkb5yQrSJecLaKPN9GAiEAnIV9BJ95hHL2eXwcz4tOlHcfLNBGRCmuRX3uPzjyH7E="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1635761637000_1635762814530_0.9503533433625755"},"_hasShrinkwrap":false},"1.16.3-1635814179000":{"name":"playwright","version":"1.16.3-1635814179000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.3-1635814179000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4803e0fe72f560a14ac34661aeea5072255dd116","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.3-1635814179000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-Pp8eD5gGZsckYMlvkF7vroXsjQ0eHNv9rrsrIuLXpdeAnaoKuBFRPnya6RwYx4Z7PdT2+mEg2DIq4vu51xa6CQ==","shasum":"7882671f54b65c0ac7ea083919e3f19a7265543a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.3-1635814179000.tgz","fileCount":9,"unpackedSize":21615,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1E2EuC8Nhul4vSTdZeXS8/9DmxaOkqbeXfnccedrkCAIhAKyhg7a+Yavo2FN1YW37vFAPFJgCbrgeaJcw45QseeJo"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.3-1635814179000_1635818356049_0.1352870363709746"},"_hasShrinkwrap":false},"1.16.3":{"name":"playwright","version":"1.16.3","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.3"},"types":"./index.d.ts","gitHead":"4803e0fe72f560a14ac34661aeea5072255dd116","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.3","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-nfJx/OpIb/8OexL3rYGxNN687hGyaM3XNpfuMzoPlrekURItyuiHHsNhC9oQCx3JDmCn5O3EyyyFCnrZjH6MpA==","shasum":"27a292d9fa54fbac923998d3af58cd2b691f5ebe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.3.tgz","fileCount":9,"unpackedSize":21587,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+pxx15gUcxU2u14pGv6WFlbI8vQnL+9jXuEvIZi/9JAIgdUhyrII0TDY5koZOIax/C6mK5dColXqcQe9K0wm0T9E="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.3_1635837747696_0.7487253141574703"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-2-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-2-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-2-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3b545b86bc5df110328510b85dd9ab37006468ba","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-2-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-Rqaq2zQR7XXgSWDriXduvFZnMUkrah3G3N6PWVmjRjsgd0oGkyAUm999qxUsoHmOgavD6DC+UEB3m7RL1GRjxg==","shasum":"00584f1d65ae391fc3f160188af1435666af0b1a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-2-2021.tgz","fileCount":9,"unpackedSize":21637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmF6NDerMe7o6VRqJNzUoRM7WaWxfbS17zbF1G8IYsNAIhAPqchicAfW/bd2LKxqDTUPKAD0hBHI9WMBFCWyuL5eKg"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-2-2021_1635849192695_0.2364337854509817"},"_hasShrinkwrap":false},"1.17.0-next-1635851494000":{"name":"playwright","version":"1.17.0-next-1635851494000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1635851494000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"92c9e9a07974451f1e5e3db58ed353d3c2655f1a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1635851494000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-VAoAfeUO3VD0nD+SohFTdQ5tfOBglgC7OTYLWSt9lZZ1FxlhHeqmoDizCBkuNfC1hNLA3FxqFIpTnX4Gzp8miA==","shasum":"c694d23fda71819ce7d50a5793622f3c850fe701","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1635851494000.tgz","fileCount":9,"unpackedSize":21631,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUx0N6NHUv80KJHhYWMIuPZCsUn5bIJ7nXHkNiZqOpaAiEA3Agm1NQxsu+HTBJIoc4ubOgtsgorB3spQTylI6acyCs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1635851494000_1635852383739_0.9612368392322275"},"_hasShrinkwrap":false},"1.17.0-next-1635886706000":{"name":"playwright","version":"1.17.0-next-1635886706000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1635886706000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"62a01a41c68330d26851a46b65df6a1c4d5fddf9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1635886706000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-FeYrLhrZUdMqCRiAjzytYgvVP0DUa71VZSoaUoIi4TqFcHyeKRK0PMJGCxhcIvXkAESVDDhGgF6h4bKK6l0Cvg==","shasum":"f13a152a92c545fe58ed2682a9fdbd0c16a6a1cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1635886706000.tgz","fileCount":9,"unpackedSize":21631,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvnqw/RlyjRMNeh58UR6sctiPbMmUetCfjuhgB71u+iAiEA4e8yioI5bjgTs3OZYj6zcGsCbnoROC9aiqGS6M1p49Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1635886706000_1635891688189_0.041436970867936296"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-3-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-3-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"009478b8d56118a386a92d25686530337c746921","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-3-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-Zp+DW70pEYIX8Cbb7L2xKGp2L80I4Inm9oo3UaA4gXWWMx3pqwuUMDqIFExQAVrP6uIWIYG5sKi6+in2EjmKQQ==","shasum":"e823e2be673ffb6d853565c6e52d806efa6b30dd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-3-2021.tgz","fileCount":9,"unpackedSize":21637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgEmDkZiCulVMpGhz4gtIx970UoMyesuJV4K1Q7cY06AiEA5MCydVFuLVka6Aga8JU5E9WwU1awU0teySJYJbAwL50="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-3-2021_1635898909767_0.20662658561979264"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-4-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-4-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"16b9ada8c091398b1c4adcc7c478647b1f420b6a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-4-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-Wyw2gGIWcDvXLGS0zMVIqOk9pzacJxF1CQ8+Ayv2/pZeYixzBJt1pppPKheBhud2+LT0Ax6LyaYi3ExaaUyJug==","shasum":"63a263ca5361748be3747fb4ec11ffa4e3669571","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-4-2021.tgz","fileCount":9,"unpackedSize":21637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfGdvFoUs8TyXjzEXVAqDBtv8zLO0kyouF/MBNY2Z4qAiEA/JQWUR/HqVdu4/U1EfdP3wq9+ZCBeO7tYMNDZ9+GBGA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-4-2021_1635985654163_0.2112427753616124"},"_hasShrinkwrap":false},"1.17.0-next-1636024023000":{"name":"playwright","version":"1.17.0-next-1636024023000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1636024023000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4681.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4681.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a1f5131501ec82d080d2a9fd08d8f2b601988cdf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1636024023000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-UFb+lC/F108DIOv9qKqhzEVVIJnlE+VGaHFtOVZFAdocoy8xYnAErhFKBOgWR7RdjfltvAwHU4+JnOQyI+qQBQ==","shasum":"208adfea72a528b043825bd072c48f2196e5552b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1636024023000.tgz","fileCount":9,"unpackedSize":21631,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGXiMacOhc5e40LfOJVoHtOxAJBnoDvIWhHNYLN3dC3BAiAPMDb64X/l2eOowu/x0/S13Aqeg18o0FGvQEL5wpqKSw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1636024023000_1636040041754_0.8668659909348393"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-5-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-5-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-5-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4688.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4688.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8a6e4bd35078e202c041cb3f0ba0de6c1de8ca50","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-5-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-M3rURKXd+8otyz1lEt0qmYBFq06Rh+l+WnMQHD3kBAYoCONawVthtRFzmqRcvd/3uAPx1bQigqnLTyYgcmaYXw==","shasum":"728c911b64255288086353581880462473779126","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-5-2021.tgz","fileCount":9,"unpackedSize":21641,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGms2nOX5lrzhuCULQgd7nln/53SgQ/7JjXYpOmoe/dAiEAxCSVnFyCgjxRXecSmS/I3zP4JCx7WfhFT+r7toWxD0o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-5-2021_1636071708280_0.3163998865268447"},"_hasShrinkwrap":false},"1.16.3-1636114012000":{"name":"playwright","version":"1.16.3-1636114012000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.16.3-1636114012000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4666.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-93.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"312eb7894168a5b75ef9ce50e44b94f158d55976","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.16.3-1636114012000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-Xcu47Ip4AISC08hGQf+Xo9b+oTrbKb8uf5o94KKh7vHXp9zALs8xFRa9pCel7ed06c6aTIp+AGUJLVyPv7P/OQ==","shasum":"174b8aec39eb797941cb3c22dc49aa1dfec4c4e8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.16.3-1636114012000.tgz","fileCount":9,"unpackedSize":21615,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDue0DHhifzK/KHQVTo8sSSViLianzGs0wQWpxjUGGfLgIgIrmDjKehES7J5eYBOqeUscBPM17Zsw+jx+GCS4SOVgQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.16.3-1636114012000_1636114171174_0.5726642883179671"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-6-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-6-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4688.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4688.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9f4b0235eb3b29d3e0fdc31298c4447142d0408a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-6-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-bjs7vEHwvNJ3C/E9Pm5UOQgK/xRXVjJ/AWHBIGBn6c0WWQlS5SRy0sDVwgk1S5mKmwDb72KsGM6QvTW2B11SbA==","shasum":"b15b33a0881c059d4d67483d8f32ac27b645d177","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-6-2021.tgz","fileCount":9,"unpackedSize":21641,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2Ism8Lp3dy2A3V/X24CC4S9hoI+3JXQ3sW7pB5QFxpAiEAskBhy6yQ+jJyyRdN8Ub8VWS5UXwPgb0b/B7803Ayh3w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-6-2021_1636158123523_0.02064943230922034"},"_hasShrinkwrap":false},"1.17.0-next-1636225929000":{"name":"playwright","version":"1.17.0-next-1636225929000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1636225929000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4688.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4688.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cf57f72c59a3bcaf6565879e66e109303cee9249","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1636225929000","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-msMAcvodfKfVwHnWBzhI4/TWNlvvYRJ3JhyQUZyZj08/YSr7JnFEXQlzxkOrXrTxs6WjmItDap1xfj89kJ6AWA==","shasum":"bd603e80ec6ee22409532275390e9b404444e72d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1636225929000.tgz","fileCount":9,"unpackedSize":21635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAoftuFk0Sn8G+OBlZae+/kSUFeZRZVwhqbqCPWzIxbwIgdUxMky01xduh+Kr1YQGI/2Ng4N1yAs7BcXEwpRMxD/4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1636225929000_1636226161838_0.6927061843674371"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-7-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-7-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-7-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4688.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4688.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cf57f72c59a3bcaf6565879e66e109303cee9249","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-7-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-DF26WPzQqtR9S3ytt4BFAWU6VCdGeIgVtcsYxfFL2kuKLW8+RiHNxT2TMjLfPjDWa1tWVOAyBRUon9E1C5KYBg==","shasum":"2aa488981a8dc05ed984afc1edea5800049efe5f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-7-2021.tgz","fileCount":9,"unpackedSize":21641,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2PKaHdsSsljJ7H/Y5E8ut6FjtgBuILBjBoKvVlnU8mAiEA+GuYz7phajU6MeF7uaM4plVr2iOYF4fLOzHfHkHS5q4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-7-2021_1636244493081_0.7050571869502305"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-8-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-8-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-8-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4692.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4692.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cc72299cbc79187144b89d13ac117d702818c575","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-8-2021","_nodeVersion":"12.22.7","_npmVersion":"7.24.2","dist":{"integrity":"sha512-eIJGfhIBJxKig+rWpN0Pqu+zOqZUpmMUq7VbM/rKqD7sXoFlJnP760iXW2mzkVMbwq3WLai6W2Thk+3hUpnDDA==","shasum":"5750b126fca963533c144c504ce2215bdbd53f11","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-8-2021.tgz","fileCount":9,"unpackedSize":21641,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAEi6n1qKbI4HWUgW3Qm2eW7kaSM15cVKx/gzPgkJ1YQIhALctPAvoQqGMsz8n6gNrHMTz2Ks+32jNogXqS5wZF6QZ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-8-2021_1636330940346_0.3569319519916643"},"_hasShrinkwrap":false},"1.17.0-next-1636414979000":{"name":"playwright","version":"1.17.0-next-1636414979000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1636414979000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4692.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4692.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c98b8ebd2b0eb953535c800f03c0f42e73baa98f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1636414979000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-yt6zJxIFyEhz+x1lJ/ikd0slRFH97sK7o7auVEWbMfwnl38jwED4kIqTKu+YLx1Z3JMmkDwsJhvX/XL4/6R8EQ==","shasum":"0cb5be2033b44a018db96762e83030b0bf397549","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1636414979000.tgz","fileCount":9,"unpackedSize":21635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENqXcKYVxE7xnEh28T4+yBddRj90vbcg/eSRsr+0YesAiEApYPSIayx1jDGs9AV2EHil0uu+HQ6qUILv6ZeUJ40TF0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1636414979000_1636415580472_0.20291188959218665"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-9-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-9-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4692.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4692.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"626c0f8f519fa8963e08ad6520a44089ab460009","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-9-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-QdK8KFRtACOORAIYIOklEDgay/WX3OBxS+wO6l6HJ/yGqeoQzoWApH4vhBPKOXdsUUYIvBn1sdp3V4EuNecS7g==","shasum":"5f5e4a779087e89c86080d54911051e6c5997067","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-9-2021.tgz","fileCount":9,"unpackedSize":21641,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEivPu/Z1BQWSTQCnnAxiZl/1YuE6bvKIxnHLgsMmzHPAiAiVOD+1HJK2dg94at611sb7BER/pfHORLnu3KwsCdESQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-9-2021_1636418537948_0.7478754441991866"},"_hasShrinkwrap":false},"1.17.0-next-1636423390000":{"name":"playwright","version":"1.17.0-next-1636423390000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1636423390000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-97.0.4692.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->97.0.4692.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"806b5706a5952504284eaf93f55b51caaa2241e6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1636423390000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-fBcWtJxxSTk69yueAgQuwYv1D8mmuiHgPf8YU89l8BEgxA6JafJ3iflOitXXT9GkMtsjvaXBCw9RzGCKCt4Daw==","shasum":"55cab56ef656b1027b7558bf472ae2ae50a27eda","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1636423390000.tgz","fileCount":9,"unpackedSize":21635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICSRLx2BgXKD7YeZt6KHZLxPau8SHQHvhVZ/4kM4rRyzAiEArun2MsCkDgX2/A/QBH3+2JSDBFfwg50HxjVb+hXB5WY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1636423390000_1636423933951_0.38877382427308405"},"_hasShrinkwrap":false},"1.17.0-next-1636430928000":{"name":"playwright","version":"1.17.0-next-1636430928000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1636430928000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b0116e7c43c7647df682994f872549f00d373225","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1636430928000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-9TxsJabG0VoRUO+7KxbB5vrm7+Ca6jjftN1KoB2XxLP8vWyeFLrzlHY9ZJRGKV+19vncJSoA6vsCs3cTc9A40Q==","shasum":"9ea44c5e941dcdf5208bf4229bc14d3ecb8ecdde","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1636430928000.tgz","fileCount":9,"unpackedSize":21635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4Q9kQYwYMR6U9fZDIm2wOHHnkTIa79xKcIA11Ff/fHQIhAJWy+jYp4ZaFCUOJ3Yx63qBfmxj9xGgzvSK6G3LfGig0"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1636430928000_1636456045012_0.9996289497372579"},"_hasShrinkwrap":false},"1.17.0-next-1636502298000":{"name":"playwright","version":"1.17.0-next-1636502298000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1636502298000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"12c1716fccffb2dcb4069da809192aee13cf1d0d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1636502298000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-PIpacKWLY1c0CgT1QiypIBfKcKpsIk+MreVXlahNuwr2AWFX8M7BU/JyQeyN5Ck926dUYtJDFr55/tEvEgwaCg==","shasum":"86b56d61fd634b96e65b005ce02abeb2ac9b9c9b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1636502298000.tgz","fileCount":9,"unpackedSize":21635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHE2CKmU0voBOESmkyxAG2N+JpRrvWKUdPkvnBCamiCuAiBDwy8fZ2EuVsfnrf73NtfauAu5YH24i9tVqZK+k/2VXQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1636502298000_1636503068758_0.023528529619909477"},"_hasShrinkwrap":false},"1.17.0-next-alpha-nov-10-2021":{"name":"playwright","version":"1.17.0-next-alpha-nov-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-alpha-nov-10-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"12c1716fccffb2dcb4069da809192aee13cf1d0d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-alpha-nov-10-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-53znxUwGNBDyR/Lgf86R6bLaD09UdYnSHiHJcK2zR7KgD5OVqN4MXyAMvI7CeqgZhciCTBFi0v6n3UiPxO4LtA==","shasum":"634154b5f4919267b3299128e4eacb099d8e1388","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-alpha-nov-10-2021.tgz","fileCount":9,"unpackedSize":21643,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7druF92Na62SxP7vzHDN/v0K3q6y9Zqe76UhdMz2AeQIhAOAMfX1bkXIh6oc52ssyEbiUXDqjQ6PxMckvMcUmozGp"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-alpha-nov-10-2021_1636503698344_0.8858770450469247"},"_hasShrinkwrap":false},"1.17.0-next-1636507311000":{"name":"playwright","version":"1.17.0-next-1636507311000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-next-1636507311000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7af0dc178b8ddc212df18f4c423a3cdb60e94b0e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-next-1636507311000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-mIij1R8GTd19gSLO0VeCKalOVpX8bYlDSt0+Wbf7jO5hlds/OTBxy1isQz678ke360LrtVsO4VH1nWWRXHbxjg==","shasum":"05fdd1e3f978d5bceca46933560ea8203f6f871e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-next-1636507311000.tgz","fileCount":9,"unpackedSize":21635,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFG6kdwYEWAvFR0T7X2/vRzyCQTd5pxJVce1peLU8fcxAiAdLjZagJSt2A21cwLLleoUmi9iX6Y7NaQa2koQte3RXQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-next-1636507311000_1636510000236_0.9475897890976583"},"_hasShrinkwrap":false},"1.17.0-1636510039000":{"name":"playwright","version":"1.17.0-1636510039000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1636510039000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"545322445eb9810c16205c8fa107fa4f1d2bba74","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1636510039000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-netdu3vz/47TG5NCfhbLFCwnvsvI7HtruMrUTFVcSnhaA16778PRPOeVjyt65YmXcywSIpTxQId0SicCEGPsgQ==","shasum":"a3fa714c66d894fffaa1656e2ed89827d845313a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1636510039000.tgz","fileCount":9,"unpackedSize":21625,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWKvGF0P+769nYwLq6EmdCu84wQ3LZqaDP8jwEQ6cXSAiEAztz6B18HTuO68fc48v8v8sk/Q3QNC4b0WmiHe7KjULE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1636510039000_1636511521540_0.9891027381699602"},"_hasShrinkwrap":false},"1.17.0-1636525868000":{"name":"playwright","version":"1.17.0-1636525868000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1636525868000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2bd2ead476b0e6b9cd6f259fb3a9550d3357534e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1636525868000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-SFARBeGxZfZCJK1wl03tZFkP1NO0lLRKzyp5XOqLGl3M6+6Pxe1VA2vSAKzIBUg/nPGLHxD0FQSxkoZp6zYw6A==","shasum":"814be1466738b5c63632c6d674f85cea29568805","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1636525868000.tgz","fileCount":9,"unpackedSize":21625,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAQP0XXEkYO4Z9I1WOpGEKbJ2j1mg4r/3g4mOwC/EyrQIgLk2g3wgqhA3/cxG+RqLIEqirbSxpyyxklHrcs0VE1hc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1636525868000_1636526087524_0.8816273949440865"},"_hasShrinkwrap":false},"1.17.0-1636572712000":{"name":"playwright","version":"1.17.0-1636572712000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1636572712000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"68bdfe619c9dec6b81ee5864184011975ff2f99e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1636572712000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-APKe7z8vrzbzJGY1cQ+AGnvan6HpB9yPQ/qLnXhTOCIFQAWMCADdUWB5UhtMCd9UUCI6xNaN81jbTelEIcZpew==","shasum":"ee538297610a8ef8179928053f896402a3227562","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1636572712000.tgz","fileCount":9,"unpackedSize":21625,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSeCRgiZRBVEs88JBsF5jqC+y85Ajw2f9FtDVEj54C7AiBWyRMiigD//E6oMeXp8sh84ztJzVFfceSfdSXmqaHg1Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1636572712000_1636573149880_0.3989531114257685"},"_hasShrinkwrap":false},"1.18.0-next-alpha-nov-11-2021":{"name":"playwright","version":"1.18.0-next-alpha-nov-11-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-next-alpha-nov-11-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9622704a8a88e2de5b7a29f2660c4617112a9fac","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-next-alpha-nov-11-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-NA5NYwMNjaTjaGaMwZBff9YdJWUu0T+5yTTbSJsF+nIqnqhMa4+r87dkZOaEXWKqStEYL4OlohmOrSAgx3q8og==","shasum":"a3dfc203421d12d0f5158255053e3a5e98da7a36","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-next-alpha-nov-11-2021.tgz","fileCount":9,"unpackedSize":21643,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+1ZxTU/IdCMbZQQp7FZq6T/tnxDZ47BPYgu/lOdAbaAiAbzPcpj4+Mg5pkoXReWqI0/0Inq83S0slHTPT5HvLfZg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-next-alpha-nov-11-2021_1636590106993_0.6022487862833508"},"_hasShrinkwrap":false},"1.17.0-1636659526000":{"name":"playwright","version":"1.17.0-1636659526000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1636659526000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c0d91bbf313a6c8034a117a2a888693ba4e916f2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1636659526000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-uVyqcQi8TpVQdcDqgdlARtdclKfxsBBEDqypua+S2ioCM2PmB2UEb/ylPTpFhgKIu1+3XinNZIiAKmduIZfSZA==","shasum":"b6639a209bf8dec2b694b85acbf5070f072b625c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1636659526000.tgz","fileCount":9,"unpackedSize":21625,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRGZIQGJdzBmKVKAFzzZzHjuIUukE7C0DalXWGywm8kAiEA7rgYohTHr+6mESCcYDdU/PuOe2qELTtZCk9gxcktVK4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1636659526000_1636659717787_0.09865467017497243"},"_hasShrinkwrap":false},"1.17.0-1636674774000":{"name":"playwright","version":"1.17.0-1636674774000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1636674774000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fceb43eeacc01fe86f1ad80b91267d0ead9b7d1a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1636674774000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-GgcZFtcrMCEIAWRIeQJ5MH82G172Re+I2Mm49sEsXDA6cP+Bzu9Nr0hK8KPUQCwFIPoHDC2NfTx2e5UAogE35Q==","shasum":"5c9bf01689fa60c3d7f78b70b8e261d24114e001","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1636674774000.tgz","fileCount":9,"unpackedSize":21625,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoCg0pG0HzU57BNDoBKQg1EKVBlidDRC+cKYzVK8H6XAIgJ68ZgijRw2UUnlKEd0im/MhnNJ+CSuomRpoQO/AusNQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1636674774000_1636676533431_0.21248438706498574"},"_hasShrinkwrap":false},"1.18.0-next-alpha-nov-12-2021":{"name":"playwright","version":"1.18.0-next-alpha-nov-12-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-next-alpha-nov-12-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b76daf361d9028246448b449e444cbbb05f99824","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-next-alpha-nov-12-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-ZA6jCZ0bxGjQ4EAMc/wHgo9qBFpYUzhq+5cpN1hbcHYcXcOHgP/0fg/ocougqshEAe+1PjfT0u/wgO1wVijggg==","shasum":"4e0a3f2c7b2858c3e38bc0878bbe909b74d7715a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-next-alpha-nov-12-2021.tgz","fileCount":9,"unpackedSize":21540,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrKEMs6qTR05IrKE958wYRxAKKYpZKQXNxbHWW/9FdMQIgQBoV7U+4WgA5j3D5EK/FM72ULo0o2lxQ2IOjj7/95I8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-next-alpha-nov-12-2021_1636676621314_0.06490643061315571"},"_hasShrinkwrap":false},"1.17.0-1636678343000":{"name":"playwright","version":"1.17.0-1636678343000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1636678343000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2da019217af46a4f83a45830a7ca5f9cc10ec8b6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1636678343000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-fwvfY4Mk7Fjg9BGxUTTay2hQUUjxgdyeWODdC7Li8P+Nv3N7CQwFsVzXdwvnaxyMzjfB0MgrzafixOw2LKbZIg==","shasum":"f7dcc20272370a3ef6f45bc5d333367da3cdc6a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1636678343000.tgz","fileCount":9,"unpackedSize":21625,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQaHxhYPb1RfGfkTqbzM0twWeR6i96qeMuS7+irxUM7QIgC0wUUkOHc4MeCuwcRwHhMuQnE2WHbRCL/wkUQC0AmkA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1636678343000_1636679146721_0.3156453806511552"},"_hasShrinkwrap":false},"1.17.0-1636680007000":{"name":"playwright","version":"1.17.0-1636680007000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1636680007000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"68bad0be6ce688566eb18b4ad78f22f91d1c1f52","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1636680007000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-mD4TTgDCtgd+ao4K8S0A3CdvKBNtH0uD3Jm2h8rvXGI6TG+yavdFU+vL7/uwvFPk2liwERWOz49tjkVlM4scwA==","shasum":"bbe253948ab093dce23816c659b85e333cb50c97","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1636680007000.tgz","fileCount":9,"unpackedSize":21625,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBrkBRQdIj2OOE/JmkQuu1q23qc02KYgMtgcWqweFQ72AiAGXOJEgprHgeIVRsTY4IxCS+vo0xijpmKhVfUV5cFQSA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1636680007000_1636680564420_0.5823319407710963"},"_hasShrinkwrap":false},"1.17.0-1636741922000":{"name":"playwright","version":"1.17.0-1636741922000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1636741922000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0e41f0812ca373008e4a311b01523b9ba0a50cbb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1636741922000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-0DKHbZyqqujnuoIJkM0jNi/HLiPrb8ivtuqj+2syKldoGDcQ/IOf1dO0FIxvFb4rVneG020aNm+P7WndX91wCQ==","shasum":"087079c87c1a96a9d18fdc58dffa578c1f24f845","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1636741922000.tgz","fileCount":9,"unpackedSize":21625,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoUMHaVNS6iRGor3HV7J2VSTq7xtNufjBJ5e0307aVjAIhAKSSp0iwwlbIn8Zuz4HP2pdI6//0DNRWlbYeAhL3ke9B"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1636741922000_1636742136395_0.70194658889532"},"_hasShrinkwrap":false},"1.18.0-next-alpha-nov-13-2021":{"name":"playwright","version":"1.18.0-next-alpha-nov-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-next-alpha-nov-13-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"119a2e8f1bae871d348e9f03d0b746bdd7b90b5a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-next-alpha-nov-13-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-pkT+P8ik0TnuPo/XpdrXjK7R/b+rsjlZv0Qmn2E9O4wsRXTG2P0oswj4wXJ0IH1SWFt9EBvHApMDWwmQ5k2hLA==","shasum":"aaee95218a3eab15ab1276ec8f8fcf60bcf10747","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-next-alpha-nov-13-2021.tgz","fileCount":9,"unpackedSize":21540,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRnRkQjkptrzJHT3loW327fsGOqYdal+Bps19nYQFTtgIgKaER1pCfaVG+5BYx3elWVK0wpFh63P4Fc2k+1ZZ+oUs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-next-alpha-nov-13-2021_1636762879523_0.9590621358598757"},"_hasShrinkwrap":false},"1.18.0-next-alpha-nov-14-2021":{"name":"playwright","version":"1.18.0-next-alpha-nov-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-next-alpha-nov-14-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"284de78deb8cba5e7794b4a9d3d9cc1962dedcdc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-next-alpha-nov-14-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-H5NbX1Rwyvlb9HIWoCbCmSxk7n1GI9NbyWnqDfcOp7PQQFXiC0N62GGm5eEgonB7dv93vsiDC0fHIH7shWnskA==","shasum":"30495c6007605ce37d3d5cc398b3eb254126ab43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-next-alpha-nov-14-2021.tgz","fileCount":9,"unpackedSize":21540,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBN2yuZxBO5NWZX9U9F9E4w6JjYTi2hAcHE9DhvWNf1oAiBFRvIzxLOvxNgALb7+zAXZ+swsPqnaAN3zl7h2WhvIsg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-next-alpha-nov-14-2021_1636849288932_0.9212998067178775"},"_hasShrinkwrap":false},"1.18.0-next-alpha-nov-15-2021":{"name":"playwright","version":"1.18.0-next-alpha-nov-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-next-alpha-nov-15-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"284de78deb8cba5e7794b4a9d3d9cc1962dedcdc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-next-alpha-nov-15-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-lFyfH3XefzSazUuFNu1rMXv5BRON/GsvQEwII3qWlxlF4wUZG6llCpYVUXPV+62f+NQKnrmdYcTPXcROa7HT3w==","shasum":"5952d6f50501bff43e1398cb9c00bbefe42b857f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-next-alpha-nov-15-2021.tgz","fileCount":9,"unpackedSize":21540,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC47rspXbXkMjb7hl70HE6Z9R+zUyUCkE6WgiXLyhYFjQIgat0E504SFce5CIweC1zorBhCDgsC7fBlxRdobN/7hz8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-next-alpha-nov-15-2021_1636935706933_0.413640235857216"},"_hasShrinkwrap":false},"1.17.0-1637005716000":{"name":"playwright","version":"1.17.0-1637005716000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1637005716000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ab2fde17c189a57c2ca2edaf716a67bd6ff84216","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1637005716000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-1DbWwEOpWeQH1A7Lo5GuTs7+gT7EbjTZagcq+1WbmBk9uHnETGs81xMKtJKAxMo+XnUshy93LZtbLf1kvJboyw==","shasum":"fd2d39cd5ea4b8cbfbbcd4c9ca2a6381f0e59624","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1637005716000.tgz","fileCount":9,"unpackedSize":21625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhkrpmCRA9TVsSAnZWagAA0GoP/0ynejO2Jukaqd1xgu63\nhLTEBMPY4OeWdZa2zZK3bbOJy3kWRm3K6uZtC6OmOBFisvc+cdPNXDDbKd8I\nB3w/rOTkWpaDnUalqn63nrMJNLQEaLY9cbiMyK4JAO5Q/Z+Z+Xbr7VVPTR5g\nBsojORn5K/WW9KlB4Ajr8Cq3AIOxNXZ4Uwz8O5GlMbEJdy+N81HDNb1DyL6Z\n82t88EdVrs9aJtgwINKnSf2dSWFn6bMz+zf7Id0uvA9NEBEqZ3sdQ5tsqHjg\nAi/wQOfE0/Nj3o1PCFSn+FariphQEmHICZL0s0suMuGSdVve/wwYTZjjJTsP\nlNYhaH42STmxiOUqgb2VZYe4R/TJbMnxZNgcBWDCtRBx+bIwjGblRmUejIuT\nI+4X3mYFdPUhTWGSQnuBPeL11mjapvNCxMtG0zdPnsVDPxiFKoLn+gJRIvUi\nTbREe+gNR+4s4uWpKX3hQacUCVJk6j3SMDfH7mFF2Fkn/hpLPNaG5Ey+VlUq\nsaBqEG68rY8dUjUi/JqR1MR9BhLEPwZBrN00lh+sEq+rqXDNoKinuOO0NStD\nkJcjgEE4pSlFXOXOu/u21ptfGv7eXewKfoX3DLwLEaerXY9Y9R4Q2GTWh0/F\nIw558ixAY3OaNxV8akfsoxDuKAcwWWQ4ug3XcFkNudqev0dy9eOB4VKNtcLh\n5xWX\r\n=/5tO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy/ByGxvt2hQoioxM50KGlFzdrKGUjyW6TU5UWv5xxKQIgEfKSOq39ydcg4rDsde6E3THk2dAcMyESLCJh+W49U/E="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1637005716000_1637005926066_0.5188881031103103"},"_hasShrinkwrap":false},"1.18.0-next-alpha-nov-16-2021":{"name":"playwright","version":"1.18.0-next-alpha-nov-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-next-alpha-nov-16-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"565ac910e752109d5b8ae64b31d4dc76a8c6d7de","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-next-alpha-nov-16-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-h/ic/ms2WDYbg8nBupYZtZSsfs3Ui/X4scCiU8YHw3xXLDzGMwbylS5Nzre2Y5eLNXWVgjD2zLKHsUBeDS7SHw==","shasum":"a07589eee63bf98ea5ac362a3d169476a70aef10","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-next-alpha-nov-16-2021.tgz","fileCount":9,"unpackedSize":21540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhkvnbCRA9TVsSAnZWagAAp/8P/0upVi1Mg4E8zKI0I2h6\nluBRtz/picCxdwKsJPp0zzzVUl9ziCHJxfM92KwHc+R3xht0+hutbrbVhq4l\nujUHp4f3BaA50SYaSerklHZhCjQ/a9WoBBNml9Da8vnlMm2qeXckBnbdDyb0\nOgyp8vl8tlC5cJv9aboK6gtg5Gv2fYbI2CCJwIuqYWX8VcK3rGOoR4dXTHUr\nbOBsCzKuZ2ne+I7pviVr9YjJPMoxS/K6VVU3XkzTQGWq3jYvNyamj7U+jUYW\noliHnw1Yg4oPlrroREDwRVejHfrFfYY5UNOrSDfd3+Tp8FGmumZgXjOwPGVW\nNrSLeRabQBrKqCzCUfBBEaEvrClKnUQtsseqa8+i9MPE4+swkBgoGOyqXjo7\n77GL+g8miUBvSWvedUnnmNodyrc5HXMy75RFSAKDr4c9DV4OFesZHEx7qER0\nQXDuXlsGPQUz63HfFXTnn0gTgZDf0LjU0CaPqZDGLSfPya8PEc1gP8qqdyLn\nhxeKd8qQ37Z2vPDtM4UaxGi/xVIctiPuYyCeYkvx5fabCeTrl3JhAKAXkWHt\nYn+wbkJAZmBuOFip635GBPEtTlG/1fdidjLqZSdlHHeiqYQkzLqG4eLNVRr/\ncgsQ04MesHICSNtcew8uNUmZ7miKQ07bG4GL/PWn7CkaQzDqSH+6Tq9AGbNl\n0Ddd\r\n=0uBS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBEnU2TXwstytGYzSAAxRYnAOHXUkl5GohNEQJQFL4uFAiAY/5bK+Jo/HkADNDRZFAN24VEoeUGm2LU8w6E6aVvTow=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-next-alpha-nov-16-2021_1637022170864_0.39684738460127456"},"_hasShrinkwrap":false},"1.17.0-1637023000000":{"name":"playwright","version":"1.17.0-1637023000000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1637023000000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"53675cf51ff6048f63acf8c7c118bbb547e67947","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1637023000000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-3b9baW2pRD+ba+1qhuObAaPxiW5hcu8XJ0enwWIWF+wqdFfRs6LjPzWOkg0NoRqa6b4YhkzoOPH9zUVgHw8fdA==","shasum":"016c962f47bb5a2a269296ec6cd7c317ef3958b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1637023000000.tgz","fileCount":9,"unpackedSize":21625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhkv3yCRA9TVsSAnZWagAASCMQAKQe3sSdaEYX6fiw/s6C\nOochtz0nLEQWST+/YoUnq6zk59RalJhA5Qh+ZXZcPI30JMXkqWw/Go8OGSFv\ngpyjsVumzKMs63pdoux359FWXIAR5SIAhPEx8XoaI9v/UhLaZhsz7mpKjQL0\npJt4ylLZLQYdCarwc9MvEnSFchB241MO6nitoHjl3rSyagTgpzSOFXQcC8u5\nmi/qAP5g+FMpA7nnLMlq8e47dYnP0ryI1a4pob2wCZ+jE+phoOvlkpiGhkLk\nfBWOjglfStiCKi3pJmtu/rdcd5PsxNIfsXwfcCCG75fC4X1i/3ef3GJkkrX3\nrhyr/UWIwk8uaFofkBeoihFGRXMI5jmZ2EocRmEnd5ZdSpFCG1WmH8ZQK04p\nvCwOm+3X/2537zsX47w6IzZ0XRn/JtBOV/vYLfbQXQVqvpBeMVgYlFluiayX\nY9e/JwNFrLSHIXii9a+T2m4wl0JIjmBY2jD3UXDelSheoECXVg+uR14XP1UZ\nn2PYR2WqXkOExkKdvhfK2JDCoURRuEp032ommH4JXiuOZpuGF507iAPnqPpx\nhtp3jrwSNOwysrqvSaEHjqC5qF12Nq4hsLykr/sGzHV4PEgvzHmB2cLtvnXi\nEfMqDDqMCXkUEjiN1HhJKEfWK+AD9tNi/HVMK/yY6Sp8BAcQLX55DNr4xgxK\nSfdE\r\n=JGvb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDiP54mkp4JiDo7wQoESStqR5yB9xftApYkW8mlwioMCAiEAjvnjD3iES33/zcDHLRLVFr5DjMUcSZjlniNKfP3NvFA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1637023000000_1637023217792_0.6732196836985578"},"_hasShrinkwrap":false},"1.17.0-1637048540000":{"name":"playwright","version":"1.17.0-1637048540000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1637048540000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bc33eb3d336e7af9ba46e141a99863874825b2d0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1637048540000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-n9Co4El3CGmMhXgGPevHCQukoLtbmMqkUfT39xuYzYnrCyfi2cLHi95xdIfH5mA3yDgaxr0vqBmMmGfkM49a0g==","shasum":"3d83288bd4e127aca2beffeb63da58ff52719f34","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1637048540000.tgz","fileCount":9,"unpackedSize":21625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk2HNCRA9TVsSAnZWagAAH4oP/iRUpbptPtdFtD27JW5+\nuq3ek8dJ3/Cjgvpr1MGaSIjlMpSGCwI4Qovc3Zp/xmlQOvAKj+KFf8NjWNVr\nHWKKKnRSGKiED0Pl7jxSECRNpmxXARSZR8UtdcZ2Hff3KC1+zoM1wEd6zrbw\nGTa7p5oEPdj/Exceq7zmdTbrIAggsAocyUVI/LIcIRq+fSVZbtbEH6Mj5r3G\np5dMWcprQVxdVi7daux8spuW04/wbydzeWfCBNm3zJUpoka5AY2codYXKq8C\nqlC466be1IOtQ6f2MDq/Zj4kl1jXAhPGlvOD499GzDhjGDcSRe/wv4sO9vG8\nSYDzDvyM8UQKM2MSB9OylPDeOlI9ibeVx39CchH/67f6nknVqObNlf5hD/ak\nrPar6C7iCB7gknivneEXqOrKbaXw7tRoWTGB9uDO9cT51hCVKsQaKJs3R5vS\nxXNe70B3Nz6oRO3JHMN7kdv7K0nSKPi5b4ZZh5uZgXnmxN9V7fTMKPkeFJ3g\nqoagPurVp5dC7gjAk9IFT8jy7h7cMXOxHnL3NjU5pGTQxK8HQgGALoOMoSps\nfCHCqaD9IwZAhhNpg3rWGexgKqf3cGetQDyXfPcYazPBMQZ0tUL+HDNgx5ip\nHichZfdRVQWtm0P6Ll8e3EnpvWvI7GH4tZAC14nQzQbfzVk35SxLyECHstms\nhg6A\r\n=Z0X7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3tgwJMJKTF5TzZpGU5kV9GKk63f3oISWpKCMplRoIxQIhAKlCMZmnwwAAkbsFpQO9DaBHdx930XPMJyKG4OLmyldd"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1637048540000_1637048781343_0.057603322959296044"},"_hasShrinkwrap":false},"1.17.0-1637101966000":{"name":"playwright","version":"1.17.0-1637101966000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1637101966000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"39ba5cc1c6c12abb0816b8c9ab1f321ac269d2ed","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1637101966000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-naeN1m7bGaQ+UNVma0y0tWZNO6M4DWXSfYcoL1+F8BuNa/VK2umarxblvdAqlmFxbej0pjVGkZqutjx9WUIXBA==","shasum":"8098ab2a15d52384e218760acaef7d0519100ecd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1637101966000.tgz","fileCount":9,"unpackedSize":21625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlDY4CRA9TVsSAnZWagAAffcP+wUb4pOKaaR49wfcPTJE\nrcW/wk9yUwzIbkpUakD8wgwh8PYNqKbTelGZPzJ2pJEfECglI88EDMFesnEV\nNDES+2MWGWTiL8S7+i1+gF/P9zHT9ZCxZtUKu2222piv6X+RRAqG+thbHSIq\nsRpKmyid8xZ3DuvnlMpnczAJW/CBfUh07MLtzDRudD4KiLJufuKXYd8kTzj1\n3UbRH+GyE1fI2VVE0Y4IsAtDd7rvRmkZ69W6y6OlpTWFmDabCi7B/cZlgAa3\nHxk8vEQCfQkwHgr0a3tjCb3E4md5EQucMksiN4MMYGLVi4LbUAzpJLqq2/zU\nu1bXqMZz9HmYezwnDgaHKA36m8kFxx+SzoIOyKEfCucWIklUu+QrGDfEhq4H\nDIFuRrMQ43Xpp6nCXKPtxFjjN9DZyimGWUXewYHO95fY/UtNQwickXQOqWv8\nIg0eCueacxzgLy2DmORZRJWr9UszV/m/o9kF4Zl2Kq7dKADiwBPJEy9XKuDg\n6D9dQqnAWQ1T+i/I3VBn7hUoL6lez1gYiCe+ASxSIjeJWoKa5PWat2P6uCgX\nJzE+brpAN0bncV1yd0fRg2XjRlJzjAxZVL0bGZZqI/asy0fGVtZ+5a88ng+b\n9szvI46qbvQbbK16iZtY5R1BSYTYjYnyv0HLpn5gH160UryPnhv9SzHJhotF\nicW5\r\n=C+zz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6hN/uz5wIlSCWxQ3xFLNXnNCbKar6W4wnb7d4k5+srwIgW7qnQas83jkWQiCejoBmDNb2iQrXr/pmnJg6fnv4zV0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1637101966000_1637103159937_0.1562547114140771"},"_hasShrinkwrap":false},"1.18.0-alpha-1637105894000":{"name":"playwright","version":"1.18.0-alpha-1637105894000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1637105894000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"32bc83d3220d2b7dbbac5193f0767984747903c4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1637105894000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-4FF+FX9PCxgzv2DYQNB4FfniEU+2ps8ilZfFD2xv+Lo0zyqvqsZMXg7Z1zCJVrFOzF7Qb11TW1DdCWKPMkTQPQ==","shasum":"2c734cd5469016e5a71fb3b0e67b178eca660f61","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1637105894000.tgz","fileCount":9,"unpackedSize":21534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlEJCCRA9TVsSAnZWagAAS58P/it0DNjBI2iZL0EKgSCC\nTxB8XtQDXJVdQ0nDb5FZga6aMydswKl4kbu1gbxFIcEJCllkcjzlh4NsqNtw\nzadrn8s0eO0H3g0/UhnQRK4MAptuo37/8jrJ2hoR6KGDPbc1D/KIcqReXJ+n\nqOu5iNn1+pXyBSTeTWcznckC9NjMa3fcK3BFtDfwYc2CKV1RFq1Ya3erejgJ\nhYADRsZwQd3qjKXgU4kG7aAFHBgvjAF9TTB9SWfpsGGgtFqzDldaVHFPA1ho\nHrSEj+LJw4d22igYt5hTRbojTxG0uqpCkvYmaZXCHXloAymeBlOCz+ZYiGMv\n+d48hWMVF9XbOpTt9glKe0FO6yGh5CFKfpZMyrF5iGVAGgWTek2LTypie65J\n1dQkRrCxwwrIdhanuhjf3sw7MNYinq+J1Dvs817Wodv4hJVDn2NiK1BffV21\npgEH1TAuy3qh7u9oD+3JuWsHr+rmD0zuY1MrbSgbuENKLR/PcGP9L7RxC2UJ\nTn4qSB2fidOUniqQEaKjflROHKWFd6AQ3X6E0cGXY+KG5Qs/YHjebFUD/N5p\ngECBkacw0z4kssB+MNKknIiJdwlG9EwCtVVol0T8GkloGnyNMeHjEbfJo+hT\n2rVBxqsiIFWSP4pbTexY7iB9iJ3zG6Q3zn+lHD3YJwcGJvxBfXbyJtEQbV8t\ndW2G\r\n=T3lh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhshjCgj4m5lQPIpyl1OqatmIwQtGk6tHCZr9N2HZ/ZAiBUdtQGsapEI9Uhb9VIP/GiDiFFVASP3S8bA1kO74PVyA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1637105894000_1637106241982_0.5207076081373536"},"_hasShrinkwrap":false},"1.17.0-1637106358000":{"name":"playwright","version":"1.17.0-1637106358000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-1637106358000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"26afd7e581cb18fd4a96004301fcc6d834ed4cf5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-1637106358000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-y8yJ7sjWkCU517YK/ynBE1OvnCRILwZiyhyrIWOCGTPM4GY/4Aefgl+khG3UexmCUJqii2tAgl/uqS6fBf8Few==","shasum":"507db97f2110cebbae7b5b092ad7c202c0d9e06d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-1637106358000.tgz","fileCount":9,"unpackedSize":21625,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFlcnQGj6/LUQxpNP6A7lUSxnsOnPAQ8zJiYaFfgfvloAiAtxc7N/I7XibpHu8Tr+B167Sn+AojX57GF++Igr3oLqQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-1637106358000_1637106520524_0.9378237693234441"},"_hasShrinkwrap":false},"1.17.0-beta-1637106527000":{"name":"playwright","version":"1.17.0-beta-1637106527000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637106527000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9568fefbcab2b8e50eb18c09a3c0f005a3eccd58","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637106527000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-zuyPBwcwOJrWjRnf91ZMr3CEOBVH81IkeWO2M/CMr3r/uJGgGKVKE4GPPaNvY1SWCbZZcBZmYjaobSzNEogN7Q==","shasum":"2e750650df3e8909893670500e6d40c44ef024ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637106527000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlERuCRA9TVsSAnZWagAApgcQAIYmmz7TeRemyyKAoe2S\nXaXWh7cP0O4J0iy5y3Z3mbke3Qt5pUbtl3VHZUf98csEkGZ2bmMZJI6u60b8\njp46bp6ZX1uWrDyWrQp54O0Wl7nfYOEPAahzAVD6ijN6zgnN8aXO4Ah7v6Fq\nQuRSsAHEZfvqSQl98HA7V0k2M7Meavkcw6Kka/ACX7wSIG2ihChAxyl1KRzX\nVN3/WLCsHVT0TxVxev//AmW6pOLIXjLs7vLlqaBq0xgop5GrwsTyLD1YLtKj\nm3dfncJQN45dAFXOIQsZIZkST1V8Q6H/WXZbyqjudVHk2i1ug6ANVdKOanNH\nupjXIvK3z6wwVox34DAtz14Vg01KARPxt59ftRuY7tyicMdHI9hkg38NmD3E\niKf/IBRCNaPTRD1OQq2tT9Ap2fMm7F36t6Xh1BCVm0D201Kx6RPRdoT+Jvt+\nhk0OycosAoQR97otibAbgwUdyzzx4ffr44IuXEtJg013OohXCYC0L861GREA\nebrSKIiP7rCyJP198SXWZhAiaFJOtROV+ykYsc84xz+a4G3zwwae0TzHYDhf\nKZHmkFN/Y23PF5k+W12q9vHhvmcZU3vfRWE+d0kG3n8S4EmeHo7e33SMxRMi\ne2/GszMJaS2NwVjWPQC4qLBtWSFs9eaGpHfySwDyMooZQJ8M1aBgov/XjI4A\nJ7f2\r\n=Emjn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIcxWdbjUKkE5JU2ePg/k7Bj5Xp+iNIdwgCq0IH8T4HQIgWe4qTuAc9MGG0m3y+/zCgPJXguCQrHAUf7fudXVm+xs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637106527000_1637106798593_0.8716724500198498"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-17-2021":{"name":"playwright","version":"1.18.0-alpha-nov-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-17-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"08a7470b0a562b0c9c3cbb15cfe00b50dd989703","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-17-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-tTqlXmFFM5Fdq/FJbRljL/cPPQdDul9UlUNgILUBf6diH9jhsNR8sgYNnbmUcxJHegc6VoITfPvNk5xQ3BqdaQ==","shasum":"7ce21732d97b4e718af2bdb17d70236854f5c2ab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-17-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlEsMCRA9TVsSAnZWagAAU/kP/2RAh0DitTwEOo0jRHiq\nvYD23uEklmiiFoYA1TgyrxWkJUQwzC8yWJ4DVvPUT0QPdrwt3mDQze7Hvq2Q\nh/FSTUaL3tswny1Rh3VlV1/huWIxvpLEquqb0FnH0YPbWZ3wC9QXM+m+ocBk\n1a/q1kysza3bfRR3ipM8V+UBpBj46Zkx9jUPWxUyrXFvxrmdmTLLci/tYWrm\neVvyHOroqFH0IAL9OnGuXFYYSehkkP6Xim3drqkPtEQo2/mv3s3WuwHktyeZ\nl1SFFHs1WBbYYLUDKn/eX7uS7Vd/pElzlHIf2m1LXqO/2hae2EtZw3fCcsHT\nPQOC9xyVOfwog7CWAdnz1tALFSeouMNfSNgqMgI8BAuuvZudKkGC55RtvWWP\n2SBjnDaOt0U27tuDXvO30S4oF6MoatllF6A0+HULvcLIUzmcW8lGmnUoNDy7\npv7hXAIHxRwxoNzcBIthUzL5kEmIthTQHWL8I1yl/RrSRUxk4kiR0u3KkKbc\nE9TQZcibsH5s0OCoSyfEj2mZd1NxAwI9DjCjtwGQAPdhuD4XHloOS1R9td89\na0txumfdQirgEK3LK2K2FQS6Md04So//c+37IhTWeOVJV9lsmMOmWsPjX9ZB\naq0ats6gHrMaxNwhMBhc+HQb1tD7x7JSC6+1SsV2ETANaqcEPf6LrvmJZO+6\nJyjw\r\n=tYFb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmH8mGuSZft5pqRqs9p9KeV20HT1ejlv4JxkT/ANsYcwIgJ4UZxoM4H2Nr1+atuazyDrIJ7eZxwJ7GHcAnsagB62U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-17-2021_1637108492095_0.5598340846102858"},"_hasShrinkwrap":false},"1.17.0-beta-1637167411000":{"name":"playwright","version":"1.17.0-beta-1637167411000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637167411000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4aebfe333b784f40f5218d9a3a26aac576593f81","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637167411000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-xizhcld0/mOXX8NxUH2axhWPtHxS0Nc39lDBG/d5l0xNsWJ2abYKJ3In+beBiJfhguyNlmPNn450dNGei+0Wpw==","shasum":"6c3f526ee648cb6e90d3f7a73894de95abdcccd2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637167411000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlTH5CRA9TVsSAnZWagAAqpQP/3GM2BigTP17blyzJyCE\nbQ6K69kbNJyLXb9CU7GlViaYei4b3tslrCTq7wqgC3JAxKJEgc9iq+U7C+iH\nzL8ay2isMgfZMO7ciSfS72wXBEMuL3tYZCdfC4z8jI1S6QS/BWS2CEWUgJ9A\nwvhUnX033htj0y4FHxGZ9k/dCYyMygVLNfEroDRs42sa67iyncgN06/Zts6u\nRzvqzULxIg/NX3DzmY/a2ktW+2wwug3yuxam1eZgQgC2GBpqrDRee0YMcHtL\nGRURB3ILshJkc0tuncy3LdggINJam0hnEwSsVTCrHxE6+3vsm8BItKKucTMp\nOaS6stHIs5hsugZtKQ4A3hWVy8YzTwm5VPICj675rF9cKG9TzUfBRLAdCkuj\nuS2ZuXWbOjFzBPqO5wQ5V20ik4dmGwrMx/pdWw0bBXjhPqXkAxJXbw/xtH/f\nZ9ajv5+prcr353R6igxJIP37ur87lJhD419PmWQWOtfb7MXwAQGvGDG5KN3d\n34pDSsE00OJCxqX0VXrZr8wMwOhaU8YHRE0yI9zzTHbMhI2QOCI+rYQCxwuL\nlEnSssydmiWUBwNxEHhFRZo1tQOrojS24BiZGzmWL9rEJe29AaY1ltFMUZet\nWUieHkAhAeB/wTVOOm/BpSKCECAhbn/9hWvybG4vQTZaTAhKLpQJ5NJIM03A\nlzX1\r\n=TzIX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmw6kNNeuq/gvKpMH0g11PAeCc4GhWl/cXeXfnGgHLDAiBVI/OcLhkibWWhdOWD4jDYjBEarwf2NM11smQmssrOEQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637167411000_1637167609795_0.7985338528280528"},"_hasShrinkwrap":false},"1.17.0-beta-1637174719000":{"name":"playwright","version":"1.17.0-beta-1637174719000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637174719000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"baa8dcbbe21dd4934ee5cdb8ad83ce9e1bad67fb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637174719000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-v0g4IdZl+F20d0xgHWsIFTypUMxEBG+mXTGWrUyicCAPXQ9KZnAzinXYk/7yQxNH8HMtQ2wZl4CB+Jpppt2QtA==","shasum":"20dbee67f69662fbb21e960d4290fe1438593778","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637174719000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlU53CRA9TVsSAnZWagAAukIP/3Klcy7cf5dmlwRrL4rn\nJ4rb6dEfzEWVH/njSNROSdBDaHgEKyLb4yTHRqM+nHAcQQdONC6wgioPb0ax\nCkFCJQcTboypXR0YkTUZ9zI0LdcZmSxCelrlLP4OkXufGzTCAxMaiotc1f/z\nfieIs3Sc5e1MYATLTsN98hv6QWN0XO+7tIKyg6BaxFsx7dtF7144Q1a4uVkF\nukK3OjtXBOjewjFrN6osch695PLJ5s6FCr3+SCN05b0DfXZ4NST7+SLFY6hW\nZ6PFmkyfnr+Y1X2Y4KYM3MbKRJlIbfvaHIPXqPQ8orETumVbmHa8ALmv4e0h\nBTr1QNo4Zzh707O/IaaWqXseF9pmJsAd+O/Drl7Ib4FSIUBe19QMjAtDteWZ\nbukaaovAYfArsV45fqcFpbyRs/pyEIjO0LUU58mggvH1FACKHx9N8TfjDs89\n4gkv9KHOOMuHXEEZ3xkxbhYWvjsd5p4jCLj4pfIqcc9QH88V+IVgNdoImwFy\nUlsqQc2UqGzY7h5sruQTzTU8u+sauIgoFIKBicQAtx+h/zseJO2q0+Panauy\nxjdXbMEkKdi0W0eLWTLX0OTMWc9mPBR11J6+r74DG/COdRngs3K5y8kKAlbX\n5ghadetuNpFtWJP5GWJ2NZOcaHAmX2jbPOaqAoana70kk3I2S/U0YDyBNPzc\n2c9f\r\n=T70l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhNKz8xcqC2sZtRW2iGC/KGf8+CBEacLN+U8cx9ZSLCwIhAIhlZAcb9XLEGWrNuDuDCbZ+cy6wmWNAuPZXBIZewfUI"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637174719000_1637174903242_0.7886951588035702"},"_hasShrinkwrap":false},"1.17.0-rc1":{"name":"playwright","version":"1.17.0-rc1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-rc1"},"types":"./index.d.ts","gitHead":"baa8dcbbe21dd4934ee5cdb8ad83ce9e1bad67fb","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-rc1","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-oFHqjqsPboX0NTVbHiltEVMCGvfwVf4IboIDE/j9g4lkrb8BmsUeHmfubZxzmDNrHPobyRbau+B0wR7HeTLaVQ==","shasum":"78d04a9ee8c4efb99199fd3a3a1ff531a7c76930","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-rc1.tgz","fileCount":9,"unpackedSize":21605,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlVjyCRA9TVsSAnZWagAALTYQAIHSrR+cNI740s2BKhZW\nULvGDnDeEgx4h1x3lHbe/NQxzGm7BpqRoA9NO5ODBLiSr33wXRI/paRui74R\n26lFr4FvBc9nKt765HkL4fLyn8b+OTT5xIHGQu22A2e6xeX9NSO+RgvG7v9b\nf5wSv98AigwBU9RsiYPnQmtgMZ5io3e98sELM5vc60FuhdBJoNiwXkPxdP+5\nC8C7lsI5lbwRzi0QRkuO8S+YnlwxBo/NqyE4EfgD0XClZfw7zlBbrpNisqTk\n4lkyn1Zpd37PCeYW1DAKg1YQIclWZCbywpaFGl9L2NIsspRZXXVvQOpmsd1u\nyZCcDqgTrBcg4XlkqCAt9vmzs5z+8tAsr4ieaVlVv52ZaJVm0yyPW92ioi0D\nYTaPv464PT3cv/VpJgALuNfGRoSooFlysvWWaofWgfh4xhQ3IKRUeLfmPg0k\nI0/TKZJWsvOFEUSzaBIGRsTcxmf3uKFva4RmWmWQzI5F4txvVnK1hQPx78mL\nH0cHxJ5vt5UmQaY3gkORHEAkvsMqh1wVmgAGww6ToO7NPoXN9mCEawG0JazJ\nch0ve2N78rpPfVnrBdW4EHaqqdZHwBZV5fgVDJmtyUVCj19LO8Jj3Akvobz8\nJm3zBj0sL1F2TjhnYqDn5RFbot8sQP5BXBugyUllkZjRLD7HN4Wqbo98foXK\nu2o1\r\n=SjJo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDy085a9uiy1QDHg+gu0Ksq2mHfmVardZF+4XaOiyodpAIhAN5OBbcInW8AT+xLsH71BrJfc+TTN+q98nI3akpqPW2H"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-rc1_1637177586420_0.08907071694757951"},"_hasShrinkwrap":false},"1.18.0-alpha-1637178126000":{"name":"playwright","version":"1.18.0-alpha-1637178126000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1637178126000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7746cb52a7d2bff866553ac484ade92d36a6e4a9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1637178126000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-A8cOOjAxCBGJyFyNBtz+XkYI5tTczgtNr0W60j7NsgxvnSgtsdXS7oy6ZP1V175Af178jwHFVO2j6eoxMPfymw==","shasum":"7472ac23026637a4f6667fd020e1c9057fde204e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1637178126000.tgz","fileCount":9,"unpackedSize":21534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlV0kCRA9TVsSAnZWagAAOv4P/1LxbM2PyVeYFSWSs0eb\nps+v+hXDHx8DbFXb/EW7a6ZnU7J+O10o9GI8W+meq+TbITjyOSLa60zogVp4\nmJ21QcplzazkLdCzzzT0uF20Hhz/r5YAoEQ+86VA3jKyNAzT49IXQh2LAbKt\nko43YBer0LD4py0WD9WRGyaMHNGN43m2JaYnZnNuJJZZK7fOCXFktIoqxShE\nu3L21AvCdspcTXrbCbXcRLf1k4jnGx2Fl92fSdPKwQuwK4YVH/+jsOBdfJdm\nl4nzPP+zeJPIw5l6zFNmV5PpGnG0+9eQoYjEOiNt/Xprohb/JWarMviqhLuV\nRmiG/exFAXZoK47J3O6Lztebz/XVAQZhzWryP8zPXiffxn8NJkQJ3FInTuAx\nejyQ6bXkNMH6BJMV9D7OnKC0FBAqQOsbDXMewb1Exb6yHOSDh3wuOnfFPpUN\nyBog0BoOT2jLn4KFJ0nWAWowYh+LSgQGJukOdxzp457Wda+rDWsbNzF1JvCV\n5I/MTghQJUysRY5zH7gumvxxFVQRYut04GfcbKd0iCb+hc77jlCY9C+OtGcC\nFWmQ2qzGI2viyve63N8Rxt4NGBGyBXmyt2l8ntyNe/j/TY9Ii5AbNnTQu+6h\nrzUDHJyeyyUAeBs+MWDpm5NESlAMBGRl0YXI55IY2razIxTtiNF6vz0V/7W7\nyhaw\r\n=F7eU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0a6q/Pv411zMZzejmavNwxImZaTG7QwUBKYPTDJyBcAIgSYFxe6TkoJyqGXeQmnUNHusGIIfgUtDYwK/onBZvfCk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1637178126000_1637178660090_0.8830063318451571"},"_hasShrinkwrap":false},"1.17.0-beta-1637185435000":{"name":"playwright","version":"1.17.0-beta-1637185435000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637185435000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a0f81dcd983122e1872fe00479cc709246eb1cda","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637185435000","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-dAq/FiEhUDDguiSsqVlsThciHeniPQhiBzAeNtFVEIKtgj60GNCAAD0JqdLggvZM9sl59IuZMHcxmb3k96UrUw==","shasum":"497b68a4592c42bb5a70c42851bced518ae359bb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637185435000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlXhpCRA9TVsSAnZWagAAR+gP+wU/Y8yfC2Vtsh+F8QGR\naqzTRyNXEd51bAl/CkSAIyAsoQnwpsRx49F+FULR1X6Ua/AjUkbEIdhTg54T\nQZUyydky14vRB3QL6CeXekNA8R20f1x1zz4CTkiikbQSYStpINEwnA/BJkkq\nI/W1Yvy9fUN6KNwjuQXrfpxVFQGccJxVOqmWGmPUv11Pd3Fpznuf1PF5fTqi\nPL1FOEKl+26K9iCdPaOAVJncBdL1HPrzIVbUFR9ZfCVKmpJW+60fqzdk8SkY\nroyDQcMvN3QZCA4oLLtjTYngO6J3aXlflM88tdauOuoVv3B1ipzrTxu1M14c\nWrjumtztwv7XYyqwzmfCb69OXlrUAxi4Q+S6IaZPqrcY2Vqotpp1z1m3nju+\nE2sPpE28dsEEg7X5BmQgEajY9FE1XEt/SG3gi6pOSAPAuzPh5jGcg3syxJaq\nhh31VjsPzkJS0qg/DX96lGlEaGHPTWUVM6Te/slIDvrXuVHQsw6Pgt53/kvn\nWjZG4FCupY40qk9+UAtMnNtUdFzRZWbkedP39PYkio90vDMvNA/+ZM3TjAHQ\nLwkDho3prjMg1/zq5V+bNoK17Jk+MWpAOW9/EyUzKJ3aQmMbUtFQPThd2HCf\nGy9kcXT4+m4Hlaj3IS9/iqoOY658+YhBddpc0RrVZXRE39O8dbEmVkPjWgbg\ncLWK\r\n=Bnpq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE0YvgK8crvcyk+M5mnVyAWa5V3cU+Fl/M9sRxdSRNcAIgB7jPunIiwPo/b27dDiJ9xmiJhs0R2/BlBdg4SNy2JuU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637185435000_1637185641128_0.9728397227522791"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-18-2021":{"name":"playwright","version":"1.18.0-alpha-nov-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-18-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0781d0303b8e0bf932a433fac7b00babb0555382","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-18-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.3","dist":{"integrity":"sha512-L+/U+euk4zCT41l1Zp/Wz9lyk85MD+ViTgbU8Ndxrz5vROlsg79b6ARLoFKYN+mA6/stUPhPR9AB+yJQKxY0jA==","shasum":"13c9bc7d114fc474627c4f5f8f4dd0495e8acd50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-18-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlZy3CRA9TVsSAnZWagAAaBgP/A+cbkj4D+9yPphXClSi\nYy45Foj4XIKB2zfPqMOAb/W5ngiujo+vWns/Hk0Q3p/EPdcDENgh0wjq8Qua\n2vqY3KVu7F+8txgMO0fcINeMHwpcIwzDVU+nOX3zvjRiLtQYkjOsWM34jBG9\ntGc4CR5jQW4MjzR46zQW+eRGswuzbNkc/IicusWWpgy59ImsVXnOmOp6OYXm\nJX5ce1gEx9nj7VYRQX9yHFOM3k8LFPtOLte/55yikFOjDupWtPzPBf9fiiUK\npw6EwGO4q10h4zXZuPYwhj45SDvXht3eEZI9RhMmdyDDdDmkfKefgzpVaqOz\nwFcu6gyGdarg5zH7Rmwp623HgkRsliDnGp2F2Vyel6BK1KZ+xV0oBrM17u7j\nvyfVSkdE92+M/VO/xrvvPKE91KgfMonYnhSw+ImV2fMFMyl8/3UWTad6gU4F\nMtz6ArLApx9crd45XDboLFxS8m97NlUc64wP2HYZS4ahdG1PcCI3jZm9Vlda\nEPih+Cp28XiUd1SPJMRz6AWsF3IFil8c6W6Xd0/52zj9/gMfw3fDNkO45Riv\nNa0P6gAvk8rVWdBWGkTXXY62BSiCPmoZ5pJVo80X7OcmL32db84xlN9viq2P\nhO+4A7q+AHSa+YCiWYQEJwVlRYNbrNsNa8EeP5+IWq4zFH3BFIJWcMHY7GBw\nOdMK\r\n=Ytnp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEw3o7UM6/ay6a2y5gqrnR2U2pN/lvvTud9cd1uviUGZAiEAjkYOVqUVOBKp79jtHyCA3sWMd9NNXmfbxUZyfKO5km8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-18-2021_1637194935170_0.35984753082943444"},"_hasShrinkwrap":false},"1.18.0-alpha-1637257604000":{"name":"playwright","version":"1.18.0-alpha-1637257604000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1637257604000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4708.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4708.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"24cc266de0635af874cbdae595a03cf9833d6969","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1637257604000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-q9f5ATloS/9CQOr2DpSC9dRFszaBX8Qom5XM/JdmhV/UXbPHY5Z4spUOTqWWOlOhvd2qnpLkMO3Nil8meXDywA==","shasum":"7baa79c392127005269f301995fb99a6a080f375","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1637257604000.tgz","fileCount":9,"unpackedSize":21534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhls29CRA9TVsSAnZWagAAQFcQAIFT9ahljkmQ0u1/v5op\n+cay+dnNEd70wwi7QbtFaDA9VPKoWcYoaQ73/jxy//FVUJn42lX6edgRAxg4\n6SFdiS4RzIeYbWUo2frIIQ52/V8DiJVWqQiEme/q85GjExSvdTuwZ7gVbEbf\nz1SCYMGhwvobuG8/VYPeAmCdAIBahi0tDGQPcMFIgV+U5WVslpUEVqsxvTzb\nnywhA1YD9YJFSnGyYtcVfXn/Ves9qWjWCtPCqPHl55DM8M1v8c4HK3NRNhaU\nwPSNj5fmXG0CYFi0xce6ztVwSXiNNLnzvubbxkYOwtnA2aYNH5dpPemnn0KT\nlSVmB8e0fdA9lZ1R5aIzTfYx6+poht/Hl7ecWIc2O/6QX/uzg23N1MDUXRuW\nzuOke1ZSwU5XKG4NUfSqm2lXMIxTX44jaqgWCMitcq0wra3J+LrR5EDSOZaB\nJOYafRcdOB4kPR2n+ggltNyfWJI7Jow6lmMO780rLsMiPhDgb5/7T7HsoKc9\nWmTVLJ+Epi3l4x5STHn/dVs8Ot4pVZPuLJ/5JGg2jizonBQI5RLhclokNJiZ\nOgUb+IhqQSD96mgxp0BuY0dpOm3hGj7Sr5hCTs71Jt/J2UrsmV4mAKPEQXjO\nObUWYLA5HQK9d9uAd0ThQTVg1MwGtjQbE/M48Pf03C9XWuFr9MoCJtK/0yqm\n/10C\r\n=yF4O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFm9uE7IMqNkgAW7jbdPnoM4Wsd+twkGOBt/p6D6YZq+AiEAicxXyAm1Ub1Gjc9CVVtwfSP33Bo1PTwAfn7KB/SQZbs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1637257604000_1637273021197_0.6027186316429041"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-19-2021":{"name":"playwright","version":"1.18.0-alpha-nov-19-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-19-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4708.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4708.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d9f849fb14663dfbe99e697c67545c90d3ef38cc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-19-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-OEhl2nzUxhtecuZndgOzuULGy+i4wSImxvtLDheg+FzcMUutKvl9YD7u3g9v/o3q6saJwXuV3uKTQBSaqFXCnQ==","shasum":"9eeeb06f466ad0decc7619e0cc65d0b40a3dfe61","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-19-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlu4hCRA9TVsSAnZWagAAW/EQAIXHbsFjKHmIalYdxZpK\nBRyqNgzB4rIwvmafYSTrc5juKUrt5R6VBQavizmEpe44DkuTA4c9NCl5RNBV\nh/AFTKD3+cCBGXABNTn/Etg2xpdUQvl8dzlwDCrm94vKDprYYZ2e3fZdyjB9\nEwNY9LG/hRU/SdJz/+wBeoIrFOsRk+Uei5COWanZU/2UpAzrWNNNJu77z4GY\nMNO0FUcYVziQiw9c2Nx3oxXtAwXs+mAPsCEUsG8BGLFIGEm1TiwDwv88WAIM\nwS6K+1k4qvc8pRy/UmnLphjdnE5cG6T8ovUA+Uuc2bs+cNnFcFmElZeAk53c\nspaztMGdyyQ6I+ZFyCm1X8o01qn0bMAvXyLuLpfpnMxdYuNR8aOhQibu6ki7\nXO6CTeGmzd5+/VwSLkZgA5usUYeY6XH6/+0Mdiar54M05T+2XBmtnnpTpeFZ\npCEF5LQamSOlxCAa3+/feetVHC4vW0XrK3Qlw0zVkGz/y4cw5Sl1DTGTOqIB\nZdF7k1Nmy2EhkIFj4+eTbrx3ThwqMW1LwKyR3I10be98epX+Gk1uQlDJcdr0\n9UHDMpuL78t0YDEgKcK4wbI3aSbaiqGffVpVaLc31XxFAkirgoN7D/9rwXZn\nGPtz0LCFS8ifE7PoWhdmtDbBTwGTAsT7QM0IxBNg/PqbZKrGQMJfJnVaou6f\n+rgH\r\n=oM1K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqvqklWrZub+7Et4oRM8gbRQaS/ojmFDB3Df+TLwr1zAiAvdQVdH3jEjIKhjMm+E+5lacYO3YQyvkoDxK3X5z0fMg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-19-2021_1637281313642_0.7061848028247715"},"_hasShrinkwrap":false},"1.17.0-beta-1637287804000":{"name":"playwright","version":"1.17.0-beta-1637287804000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637287804000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e35a1b0ca381d5095d79282e0fa20a5e7cebbf6d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637287804000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-Tn86tomdoi7ryXA1DqiRR+9l0xUHt5YbIwkdu3Jc3WvJPG3uDdtJukU0PJVBqiFZDqbDIpkEuCat6swip4aU4Q==","shasum":"da35c181bf1b0b0e71f5b644bb302e8362e458b3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637287804000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlwiOCRA9TVsSAnZWagAADGgQAIKUgi9aaZgBx+u2ojN/\n2gZQWChOkBwFyxB+qzTzH9LpjoQZz843/Ef9AKfHhnGFRk+LNxcgN4p8cC7W\n2hZ77aXb3/9kUMN19+pgqagRIm0qLZeVgBiFc6XgET1T84bWWsLdCVBtXQc9\nH+fDRH5cIihvirVJnZGASzqJxB4R4OQWrBhZBJ59ID4f7FCz+Gz5/nn0jQaf\nKGWHcm9Zd/F0jBN4UiCBp7KCQ6Yb9kn/gp6pKtsB1wYPQjqAa+C9eVKml6ZJ\nM2kmZyreAeZW2oxxIJfkzw/CoAsyDKecaXQR7/y0U0g+TI6zaslmYrt8SgA5\nG5TjzuJqrNZI75RFAq3CA7r/VeclpiITOG9/s+YgDVNtY5M9mw4JDXihKbQk\nhFAsOK3oNPrdw3CC0y1UYHhFUbdrPBAkA5RhbrbMjfb4RoxbL/nsqu0/VQmD\nlFAi316SvvameDHo2vSQJyhch75yQZxO2nNJCmGlXOAdJEkrxR1PngGA713/\nZmgLXI3ziFAmBSg8Sr1s/xzMijE0MhApZ1osID3tM4tgjFxhki6D62pB18Gt\nssp2kJQ3AcnpkSxZAlj6eBEdLK2id35I2cbD5uIfZgEOL1SKpz9Mj9yQxFLG\njOwLaCq9sylfYgJqSCO15CeCTQr9dTzmGwwiKn3SGJ+ZJkKUTzxORetUyAUc\n1yLv\r\n=iC3d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPAl4/bY8w0k5wQBp3AUP+fcZU6OY6pzCNXBQm9u5FYAiAs2ErQmTNw/8JwoDVX2lbtyGsCqQwlCzxfAKdY6/GH4A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637287804000_1637288078742_0.4649590462599533"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-20-2021":{"name":"playwright","version":"1.18.0-alpha-nov-20-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-20-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4708.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4708.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4eaeb3b59cf33afe2bc7c6acb46b6fd7ddee698a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-20-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-SIAoXyrNMMzEMXERsQWbvMRVuTKhUTEeJ1w9+tCGNw2FwbYgMyKA6dohNCxESPZwAYPav5EY63bnUn6hDaBNaQ==","shasum":"3594b34feea23a3f56fd5cb9f0c817d4acce81e9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-20-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmD+mCRA9TVsSAnZWagAAXjcP/0vya9CHa8Fah435SeNx\niNT+dA63arG3bwfBBDcWUFlaYpsgaLVQl7n+ckCjf4NURiIc1qzyl2Q9IpLF\nKB4CU5TUTMEGO8jNtETbaP9iQ6Hm6Maa3ko1TkMGi7iWnOVY1nQhOLe8LxPg\nGGv4aCJq7QJ8jvjzV/Ix9EWkwLS0sIMtmEn2upGoIs55bFcbvI2zRlcjLoPU\n15wuefYdVZ/iPfVNSLCVUvtNTy8gIoelJhATRQDEhB3BLNXMj3COuq81XBGP\n2A8nL6ngXvVdPf1H8LamnP8tTDAxz2QN979kSS3Mmm+u3CrKGUCqHxuaURnu\nbTf8ntz7XQvAcSMmWDTlrP9Kr43Qu5zh8U3EKVsd2TC3cyOG3NEJZ2WLevc1\nukYHUdBRuLT8A3YwO7ui6CY1o5o/aoBz0MT7HyB8C091ylRxbDAdDOS1mNLw\nIwiw+mk862elf9dY76pFSfs5SekyrAnwOZikUF8+RyMoWm0wCweOl1V4EqNZ\nNKzN478bsIvssh3QNXqIqKfZr2sUjPgyVlpOY1xwNjJk9A4bV1zD7bdFENlz\nXiKGExet92sy/gAPCx7PtSjhXPbL5AoX/5Tzhcbu37VYYj8VQE25hrvTFgv7\nGEoSpI/lpOCiSR5zgclgSf7hA/znIOErSTc25NvKDBmibk5WAhso7O4o5Q1z\nCpci\r\n=oV5H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEkVl3ctFJWYF4YPEBNTLSyw8fvrtOd2NVBslYm8bY1cAiEA+yWiWYgR2mrjtOmLlgNlOb5tNAvfajAqjPZXa/qxmR8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-20-2021_1637367718255_0.010533316018057626"},"_hasShrinkwrap":false},"1.17.0-beta-1637368446000":{"name":"playwright","version":"1.17.0-beta-1637368446000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637368446000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3478c62581ab898a3553097fb216c7f26062c3a2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637368446000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-A9Sn42nCWHu885+Nae0MqBCSLQyHOvr3g/jSEQEynfUq2xyzkpmd+dBNqmAy91Si5ziYQ1NWHPFK7hQ5UCWCSQ==","shasum":"4a76cb24e9e7498fd0424aa6f9e1cb78dd41c3ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637368446000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmENtCRA9TVsSAnZWagAAYfsP/14liIzpHcjHqhAuheaO\nkP25ubNu2GSw7seHNjmBMdGOVJIXnWXVzd1RWN43uJ5T/y4iuHCfxhbo+JYj\nOovdJ2gXdkN+4PUj/nZz/RQSl/0cW/5ED7MF0gIhBdyb5EoTQmE0YKz/gtgy\nA9Iu5fOaVtoI5wogpzWAduXuqVJ6ECbINKxRkXNyDYJKiqIWm1WkrOCfbepW\npiW9gtf1W5pd7abPaSgxxgD/DWCRM0bKm8ZfljFoh1oiisVP4LWvBac3qxk1\nJjx9CieFeNjMTqKw1CG7sE6/n8jVddNZAYwLC/5M45qIV9ZvRI6fqU52zYac\nhHGp2z64Ix6TkvZyHnsghPxbNO4eus2ZZdBELxiuyvwzajNljRA9AOWy63q7\nhbOJrkWEHZiGyXDC1PAh2H0CThOGJNtdaMtq+KW+oE7O+AFWQjP8JUknoPRr\nwE4zgGGSMT/l1ATsMteCdw72K+cZUc6VWUwJ+FamI0+Kw7+6Xn9Q5+l5NGjQ\nyaPfdRHIwfJZhIRaCdHxEMQtlKof05o33IE95+7aYkKmxHg3WZviNMKpW/27\n68yERXTrEingqUGDtnYIw+0xt/5stqyMA4ORo4mMiMxiVKtJrUhQkmkqv8m0\nAclg03hUgxT9mcWnUhm2sg6TPBZ2AlE/cuBcbz+7l4ebuhiOWLzphQehNXR6\nDEAo\r\n=v3gL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWL2Rfaof8yl+FZnbreRRpHCSnW3ZH9yGh3JmsKSAXVQIgbahjZURO+h+lNkZnzJXIDfU3fy2fv5a0nwym0XVxBz4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637368446000_1637368685743_0.8489751936173655"},"_hasShrinkwrap":false},"1.18.0-alpha-1637368835000":{"name":"playwright","version":"1.18.0-alpha-1637368835000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1637368835000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4708.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4708.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9fed8a9344ad8ba03575d06760581639285d6ffb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1637368835000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-1iOERZJJiOZhuMXnU+Mb7GCr9sWBmQ1bXS8q/804HyBfpYPPJpwfrLh+p1TTdtp3Ld+oy5p1LoEWwG2gJg1JMQ==","shasum":"7936d311834943003a19ad0165a6d0ca052b0744","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1637368835000.tgz","fileCount":9,"unpackedSize":21534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmET+CRA9TVsSAnZWagAAZbUP/1CblzuDDPETQE8Ks2X6\n3DsI6laa8sui9LFFkW4EQMtsrjMYqEV9r2+wbqUOLpjSnKrlE3zkOXHEUPlE\nuJtz9BxZDdrQIwP+OAIWpdBufE+Hj02mX32jI4IwEvnUNy+bhrc3eO9u7DRI\nmv8p4rue04lf05xwlikrfRGRORAfqC/x6B2BUZyUiez5RMcEoIn8oDTl5+Yo\ngVsze/uSQz6NYL6Ds5OfGNaL8TviC4KhZVILxsEx92hCp7WWxFYA2Z3pqG/Y\nK1EhVZH1AnRe1t6GiLmfrtbxCR6RcAKrMphHuiQziBs3kYuk5dEi+0sVLvys\n713jPji4WISI60nafyX13avTkTZ0H9NzdieHLJqnKHSdxRlBxioPUL8D2+KU\niAF0xtkYKEEDy2kBLgzN67aDWcMeNrVzcNM0hfrN9JAoz1bnk5HYqzUjbgZH\nx0Ikl+rzlV+yWcNYSWmVwLMvswsvVx/rnro6tJp80pk+komHcjvgfLiZ0PYr\nPpJNXHT1jmVPzSrusqMCJDR0sX8ys2/X0vO4A+WD1xny9vBkXPdSMrpAF0lZ\nHzLq6IR7V36icEtsW8FlBJgu9uhflYJ0EhLY7wo9SfzaLobBjV+Z+hbrNhyD\n/6lQ6RsvA+0asiBgkX+9+uIiwZsc6iEiyCOrTqIEeKtgermVKvcabmrcRNME\nQYXR\r\n=kxqA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoEDofdmyWXlhbsUPqwToXIeeU89p0p8y4te025asazAiAJZ+bYCv+GwiyjHvaSi5SJZCsFv+9IF7JEj1AuHHrCtQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1637368835000_1637369086404_0.6022216812448649"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-21-2021":{"name":"playwright","version":"1.18.0-alpha-nov-21-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-21-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4714.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4714.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2290232339a46509966c4ac2f7534f2ee20c3fa3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-21-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-yCGfedyi9TKm8xQiebjvp+s3B0ccMsLL/Lzj4eX85N8OcddiDz/JIdH7Xc347IfPeN6xlZox7U4etNKXjcgdMg==","shasum":"22c6abd70e329ed97b6aee488b7a4e95383681e9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-21-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmZEPCRA9TVsSAnZWagAAA24P/3+Uiw9b6DM6lQwjJVmf\nqvdylf6pZsHt+ptzJ2qhzEl4FFF9PejMf8Js9Lt0EQ4mHZa4XZD8tM4Jnw+1\nwHZdPfNM7mpMppS70KE9YOcKJ/Nqg9+xmqvm+n63hAEYY9CluLn/7U7BnFU3\nTJm3SHirwi05pQVE9zn6kUnX3Ty6dGeD+OrG+OgAnKaa7HcqrKGRJB3puJcA\nbFoO3V+cL80nyQtOpyAUCtfUKw2xM7ayKkTtEqaAZcjpHwqIPS/JXo0/X0kH\ncgEVbG0Eq2cmOA7fgGHcb8ZyFNPzC8kMgQ3UvLtuzz/HJFMDfgX6eyo4gLnw\nVH0j0G8vpa66EHu3Hq8ZmVPbJbINw8gnsV6W3r20r+WHvnZzkSxSXJ0jkCDJ\naNooRyqTdb1x7yxhPLl5aQrC5abzJqNYt9dU3dTBlQ0ttz/DDUa7g6ADK1WU\nS75sgw2H9omOWyQbmQXX6SAATSbI50oXVnHGbNaGRrTaUajujrwX/LlggJ0h\njQ64p7gk3Q6yqucxGdI9Qo1JS0JtRJeCh3NNzj1trbMvB1T0DQUdXwtUkbgs\n3mViDBF+PZ7XX/bgvBxzSCCIU1Uezpt+XiGjv1ZCZABGRpqoAm2XXIIgl8RO\nb9nG+XQDnRe85VvC70Bu6tldrlSvgc8uVlee3kPmnq4lkWpw8WXPb5FsZ2df\nuLYV\r\n=4JX4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSpJVOuGSbkucjoZuDJJdguNGtc2KwT9pApPO8NQAdXQIgYMEt/9Xmgp8+zM61pVLMu/Miq9NyWu/u1WWTJDgdVC8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-21-2021_1637454095282_0.9188741857625342"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-22-2021":{"name":"playwright","version":"1.18.0-alpha-nov-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-22-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4714.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4714.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2290232339a46509966c4ac2f7534f2ee20c3fa3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-22-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-pYChohUu0IQXJOOExBFDGTQ0AvEEUiB0RolH0B7ftt6s3qEnGM+BV9E7wXhf2DgsQ/+oD61Gvt+WQvW4ZcucLA==","shasum":"a3aa20d8c3493c32da8ee498ad3268c0d025a008","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-22-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmuKJCRA9TVsSAnZWagAAN2UQAJRdLigAsdZHPxN1PcJ5\nt67bFfnzI9k9B27mce9m7h2YaqRXRsE4ax3VztG52G5q+e3vdmJ5HctTY2EP\nQ30YlOl89mlGozWr9mPsPZpDDTNNiiqTcc2qk1nc+jxGyirTRL25VW5bIoeB\nuzkdOdACs1k6Yj1m5A2qJ79DrHR54JThbLIdK1/j5BImJCGVZA0U2WUjJaTs\naooNxq/bHGKlOra8NUOsceQwl5NDZLzAnbTZzfaWuInzcqoTrVCBT2yLrZkJ\n2pTBCVQUEsrzIOPvhoDy6twv1u9d7cHr929iUNErJuIweVyXkZ2iKobAsF5T\nld/hGuz8CTTFiVz8fUGVXeFUUOzSM95L5F2UB7Da/Pp/ksLbctS3bV4A397C\nog4r0r48ZHVRbGBe1MxL29ki9Z8JW3B+XanUJQngpwItwjI0DLzPrQ4C8IUE\nfRVCDwncPm/R81oyMOaHp5yNqvce6trtqiub3ex+8K1OsTZV7jr+kS9v2ROc\n3ihOgjm/fjfrKS+T2TROD5LZqGmc9p3mdmeUdTLt/bxwhgN0kemfa+EJvIXT\nVpUWs28VtnEEvrK3J8i5Ei/9x0I1A/D1b0O5IQl+UW27T8isiVaqMyS47wKk\nSZ0cLuErVEepbNy6RB5Pw44ztOk0AP7lZ9Ji1WrWdwc1SWPnULO/hQfmSYJP\nHeMx\r\n=ExDj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfLG5SEUrriLwUs5YPRE1KP77qTAK/WYFyPDtGSxHQQQIgAp7V0YzUwJKUR3JtrAb08cEzQjRTOC/U71XROR2LDW8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-22-2021_1637540488901_0.6695650979988195"},"_hasShrinkwrap":false},"1.18.0-alpha-1637602750000":{"name":"playwright","version":"1.18.0-alpha-1637602750000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1637602750000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4714.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4714.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eaee864b2cdd8f73a3ef337a083f03a9b7947235","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1637602750000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-K8lvtDy4cXQDXJs1O5FCIhnT99sRQFdkTZ3YV3t6Ug12jPXG/lx69YMA1VbyUxlLlkTUxCbNZrBUFz9ZDCEWMQ==","shasum":"acad8c4575423cd4f03483c8aec80e5f788b2047","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1637602750000.tgz","fileCount":9,"unpackedSize":21534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm9bpCRA9TVsSAnZWagAA9vkP/2ST4byrk8SEi9ykZqD3\n5SBAEAPbV9YegWvzDK83NUfu1Dr+bFnsAgpCHdB0Oi/Z7PXn8G9zbvv9uHvZ\nmqapKLAcUTlAn1KNrXqdclijkmwh07acnEMs8lKqvrFPRzWkaVLhuQLfoeNB\nGAwg5Ub/Z/GO7WAw/amklDesqrEpeDiAckDLBaCNtiYXfjIlg/++Whm/nVdK\n4YTKMcT61RUXUZsDbB51IRzwkugKcDh/gTEuauTbCn8Cci5j9ExTs/+s19AE\nTTBPA0LnO6Up1hJR4ENzNiMJJJYsFjJ8Ys1ruSGPNgl9Fr07OU7WSVgxafbp\nB1+GpGnRxQJFf+VYBxnEJb4jjpyXTXyN0hF482kW0XVVK2PgTcYBt1VsE4BA\nMn3HidHAb4LD1KTWM3XKkUP2O+Qy05LHzql2EWaHt3iXpMRspOGzxq4d5A0b\nfvN6G8UDn6y4xi72up9TFOBCaMJjSdX+hAi377+y1GP85L+O/9jw9WFm2cPI\nyRmbPujLwDNEuJWuCN+SjdoS3gA+IexcKsbUs9h7M4a8tDtABzCV/UENZB/n\nGj7VS0CPYhzCCYQJ/h4xSGuhmr+S7t0y9U1giKc3WQrLn6awvN7w49mWudrH\nuaZ/X6jvMMYMyN0Bmtq13DER0gFLT0NXQ5PIoZNd2Jgt1qbOii7ZljcOXjQr\nTc/6\r\n=ZNo5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbQqeR7mq4haGDJK0UOrxMf8HG9BslhOd+jH1F7uIMrAiEArDa7ti93BIgHbNSiqwY+/xoFCkPEMFOUFwPb0TXGrKk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1637602750000_1637603049642_0.7684132539987627"},"_hasShrinkwrap":false},"1.18.0-alpha-1637606482000":{"name":"playwright","version":"1.18.0-alpha-1637606482000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1637606482000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4714.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4714.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"daae8d4863109e0e0e84b977a0280de2ad9c3f48","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1637606482000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-OomGh7zZDsFh1rdtxc1cmvdgSm49CcEOXMvN6AraErODnh24NnOHRtiIfnU460ImsF2mEs2e0IVX/FuF0dyIWg==","shasum":"9c3b32370b871b5c847ae9bf4e64065511469340","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1637606482000.tgz","fileCount":9,"unpackedSize":21534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm+dTCRA9TVsSAnZWagAA4h0P/1IcAeRoa4bGGKQ5KRhY\ntnoJ2S+Jpxn1H4J/jS7bCy13jQ/LNJNF9F8D4sodBsYnhtok4GZgdvbOcZX2\nTN6B8s62Z437aUPP9fqo4JJ+pz8Vmew9sQ4k5YZ8w/iH3uYA0wZvEpTh8h9c\nci0PhgzpTwguPI2tobxtW/Wn/5VsopawzWOZcLvmwnZTKXiiISKf2MOi3UVK\nKST0JNAW5Rh3jiLE2IpegIt0A99LyS5eh6m/gWtbNrKdzAdwb8b5W1wdq6yW\nivrVtDYpRz9o415ELQlLnFVLJrPYMMT/OQZzNOo3wthQvtfAWQbXD5omK7Vd\nBLPXlX7uW076ChMJ5ouQ76xdnBpXEnREU7TUk6zXnOTFzUJbUc8ZKW37N736\nqY4X6iQHxLnxlY6xzPOgLnW3k7X2RFfmr9CuwXYT2h4U/51v8SHkGTQABQCy\nu7PZ8Lfz1J6zO1WqehJXySBzE5q6g5179DtQigz2tZJlpKkuBhmBDEvZNBHH\nkQmd2eWXzIDxdFSqVC2NGcMwV8b6AXdDltH2y7hmUO+tcN0HMrdQo/iVNpNh\n0QuKZNubk8ljNq5d36i8aicAiqPxv8Abo3Y1PqCzmCS9xtO1wOcZaSH2TX9E\n2zueF/vHoHN4W2lRyYyHucOsLUhjs9E56cHk6Ht5E763CLmo3SwEpYaYiVHA\nXY19\r\n=higF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7RWf059NbIUk7DpIPSY43sfyRRvCLpYmUj+TLLhRcfgIhAJ6w1G161i1bYMapAXZiKx0hDleiVuYBYz+DdmfpaLOz"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1637606482000_1637607251678_0.07665876840338037"},"_hasShrinkwrap":false},"1.17.0-beta-1637607601000":{"name":"playwright","version":"1.17.0-beta-1637607601000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637607601000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8985bbbad1ab581fd5734a4635eba973c621b9a2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637607601000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-Zl3e9OJ7QrBXIGsi2S4FM5iF4LknVHk1+AxbsBiG+wuspUXqICJWVezzWs8P0EkvMh8G1NAcC9g/16whlcMzbA==","shasum":"a7c72ec5f9fae50c8d6909cde1aea1577d30ccc9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637607601000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm+mRCRA9TVsSAnZWagAAf84P/2fHbjSBJFRTjH0ZJ2GL\nmC7r7nrWYoVjJQoLKkcycestRNyC2tfG69Y8vT5+xfFoGvZuOKewSbFG5rog\nbUxi9D51iKFeRum931VDP5lnyinFNDso8mf+wZH8+rbxYS7QkYAxNU56sG7Y\ngNfYp3EneZpApQYhHh1NxkwxUN2aui5kMU6MN8V+ExeKU2h+p6cTt8/v7qI0\nj53ax/6HeqcywCd7Zr1b53WJvJEX3Gtbhc6k3FlFJ5PNHEzD/MURkTsPeMMC\nsOfBc+1+CY8pGLATG+6bRkUhW2JPHmpUKX7penKZ8R0KypCiLch74FlQRoDq\n18CiUKLDRPAdz6MdVGLfBPmFT5E56J15LCUy45tuw34qNkgA1kKr5etzaQfP\nxfbvN9p9QtwtRMYHc88O6XcaaFIfxlh7wvCfYQ7WWkJWpIcFwguTKad2tniR\nycpqYqEFvNCRd0gLGHrQkdvB2l8HQghXin/vB5k2bzcwQJmh0E7CO/DQxEBD\nIx1XJ1fUJqmD+rhrNxTr5xHZGMBq5wZu+yvFOh/R4Bln7Jt3m868/gI8H5+l\nvtNx/DO+zjkesFgha1cQJIbKA7VZ/OSV99lyUqbY3o8dUv1syftprCstf3+H\nncU2Xwk6YXDJ8REKJ2GUwhI3NlOTd4unq0r+atb76/4y6hW1Bjr/pm6Uh6OV\nZ4Xf\r\n=1uHg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYr5TMy3dpKKrHLzer9f+aKT0ZdHJCue03PF6YjiUQvAiBmkvfwrjgeXG1g0J+R1tn84qDG5nShd+ejZY+Y+bMxlw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637607601000_1637607825503_0.25960166872810353"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-23-2021":{"name":"playwright","version":"1.18.0-alpha-nov-23-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-23-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4714.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4714.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"80235c47a5fb142c3b21fbbb9350de81b60e6faf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-23-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-ChAHJWE1f5RwQs1+pDp1ePIzftUZ8DWUn+d270/658RKcRmJFWXt1D2go0LMcoxoWmCykZiWFtYhUnoI68QUqg==","shasum":"9dd38c2b1cbd10d371b132aa5e8617f574a037a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-23-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnDQ5CRA9TVsSAnZWagAAlHwP/RwaEVWUjE17o4gHAAVo\nVtsnhv94MjOzqQ64HBA6k5x0OeksUPq+O/82LJ0PH9g178Ta6EYWF+gcOcvQ\n/fJr5DFLSOS9nsFrAL3cXwtV/wRrDWNPpwTHaJoPiKcAr0P4S6gf7otjhpwx\nwcDbAgS24XirdCAaH9P6vZUz0APE+QcKx6Ap18Pdara0O/NS+I7b0dbUi/c4\nOTihZMz2wtnum3ZxqQus2Idb93YGUVlqDofqWayU04k4qGItiyLVUUTIamEh\nKsLeHovtpUd7LzdKWgyU4MknMf246wGlVWBVgsAlUIpCaFiNJZOKpByXdUv0\nKN2FxO0OIbHVnuJ1EKeQJv484KGttGdbvS0ol+0dg4Y+uIpBqz23iwPiUkM4\nUbCLSlDvEwWagM6pcsXayAR+lh+A573ncReBQffZPkbnZjzvvZaNYU/wjtn+\ns6n7JrSll5ayGh8GjeVrwrUybaMXTovSrTrjGej5CjVSiq2CGLsYgn2GGCqh\nKKsVSk/HCChvjqzC7vCuC/sIRcabLlmAAjNtRWkdO0rt2trFhLKWxD3ewmy5\nZ7lrurqhl0oDahFCVfLPX0ac85RZPVPk3MDJ2ZMCBuzLohR9Imh8pWkizBm+\nwpPIV5oN4VlFOCQOgfMdhEPRb0phTVPP3fCX7065Ux3r0JJOCnEtjRCQlcJ5\nMO/k\r\n=MCs/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBeCFiA707cS7U9301M13eqV+K/qENjzGTGbS+WgsC+AiEA7Xdg3X7MWoo5w1i+7cTIyWuXw26HxNi5kyEe2Dxry+M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-23-2021_1637626937462_0.9441281034111462"},"_hasShrinkwrap":false},"1.17.0-beta-1637696328000":{"name":"playwright","version":"1.17.0-beta-1637696328000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637696328000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a7f56b3cb413a0c1a13897da7204f9fc06531e83","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637696328000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-ziJf6XXzFOwKLlsg5BO/a4nJOROZIpDvHLV5qh8JiSTd/TY5gV7N4ln9TUInEn9+oKIv2vidM4bWoIQbUsf9JA==","shasum":"ef404e8b27f235f914b04cf732212ed93ca8497c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637696328000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnUQvCRA9TVsSAnZWagAA5S4QAIuUkKyp/MPGJezzdtC1\n/0Ic2LbYbG3gniqUO4eSYp1qGNsqPYUZ0NwM7n89HRvdRVcihI0v4K42bB5x\nr+ZriDc4iHp7Cb5aOn6blyw+mAWK/HsRfyR6UTusFIa8cIaM/Q5EK9wphD+7\nXVF0kgh6fsWBBCe6eAHGn9IbYQut0Hg0CgoCpQ0ocLumUL8bawIaCBOPyQN8\nr+UjdDcIA5Q8Ig1pPNgZsIkZbBMbh5d3p/yevtv/lw9t9yDUvORHs9uPOGaM\nWtW0MOHSFR9DZphVIPz64QtRorWBeX8SoRvaXSE2EaBIwjXMiJDRmN5WWnFI\n1cBkI2ap2s13rEhRLHM8K3vvDmvW7GMK+AANv5msSkqQ/G1v96jeV53wenVg\nUuaFJhtEP8UwxDZCgtMVUDHT554/eufwD1wTBMnC9Co9MKkbpDhzJi8JxMSf\nnprvBLv0hTPBZreowOKIL/MaroMxAuw4qpS+GVCgwXpxroFbDLlEs6xWwYkk\nKOce0AQGM+/esSoWxFIQktFqdFMLEkimimV3/Jgb9UOFJ7/e0dvvGjQykY9O\nY783gpquDDsqes3fgCH81e5KLVZou371NjV3PtNM6zIcfw/lESKnsGcU/MFp\notH4ZC4IbZZENJGEgLpo+5xMS5o8vSYKpZp+SJhwPSx4DkQSw4JtKBqUv3a5\npX/v\r\n=nSVW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdQXEqVu7lsSRWy6i0nztDfj3S3bcUvJKceh4Dal29ugIhAMeEssW9fJRv6rvHlrFbSvyjEfffZucUrfEgT6Wu++Jz"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637696328000_1637696559389_0.7423738249613079"},"_hasShrinkwrap":false},"1.17.0-beta-1637696371000":{"name":"playwright","version":"1.17.0-beta-1637696371000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637696371000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2771fae7b33b82a4872ac1b4cefa3c077252926a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637696371000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-67cLeS++7Y5/0hzD/Xdnk5MDTP8Wws1eKLopz2Om+xQtWdiC7y7P8T8f40lFOzXcdeg9yVJ/xOVq0z50/RT+7g==","shasum":"3ed8033a3b4472f6c6b7fdbd62021209101fa3cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637696371000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnURgCRA9TVsSAnZWagAA0nUQAKKwp9Qy3XNNifd7gdmk\nBG7NOcWWy+pUNrjvpcUPiVO2Y/MTTf8bKzdy1voxQCgEutf3vSNkRISDTywb\nzrDTkXPMVHjZfz93AkfBi19T53IcnFcJc7mX9S1m5LYR5igVQNRuVa8+MbGR\n64w+zhvFbDdSZCq2O5j6RsGrV4Mclwp9zZvW8fTaJovIpf/QDTYGrhFFeQaQ\ndm0dM+JN+SIAmJD7TfnLap6TlIi2rmIghYTZ95vyY3CwtsXWnRJt7CKXpHhW\nSatz3IhIEMq8rQuLhGq5uY0RTKkFeTYfT9h1Oubtr6oDB6zbs/oC4Srovm9x\nAiFdk40uqrCIveNWofMdnHCvlZwz79LhgmGOZ2KEAK2GvJKpjpZsye0zfzGJ\nQVvd3+38o+ce+Hw1vCQQAqtQRQkTCyO2nEBNGNWQBMan7q9Fgzf++KpduSqT\nfAduivbtP52YaN0EZsNZP9AWQrPVlFUQCGfCxa83c0G+AmjRa6kDFK2P2q6v\ncBRo4bG1FaOTTZcfQJfbmz7EZ7NKKkyO+v/d4wLoJj2cd/vLMPy8E7rsK6j/\nuzxoaekoc+QFeIksFQL1lrvHnGZGvojW0js/5008VEhecR/Vg4wynG1t6dni\n9YC2ZsUA8Om0EwX4PqAIQ6b9EYFFdZkHSrDBNvIr5ts3a7WS8gL3bJepYIjU\nIKr2\r\n=UIXK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE46iWTcm0loCimelxJAaozsYXu+xb+/4meOistMFysZAiEAtaBumyFMuYFaIpksj8tXQP+yZhhC21lYkY3ha5DWa4w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637696371000_1637696608657_0.6445862045407684"},"_hasShrinkwrap":false},"1.17.0-beta-1637697877000":{"name":"playwright","version":"1.17.0-beta-1637697877000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1637697877000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"41907915c7fa4619021c03639f327fdd82f31616","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1637697877000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-oNNbPm9U61tTI4xuxh6LbY8qyxbkNU3cubzKSUAqjfzQkaCISxZSrsyBctUxxVyFG/0GSalkgEGywATdZC3/lA==","shasum":"552b659ec1cf87832e400e44357ec2740043df87","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1637697877000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnUoACRA9TVsSAnZWagAAHtEP/0U4C1nM7ARKHGiH2RbS\nuix1Pjt8z8EvDtOGaZARFazui5Hx+79jFyGgHHXJ3r/KPpFF/vMTr9J1KnWk\n27Xjqr8QMz5fTlCfgpiOdbT4mCT2cia2wqyup/7rrbKHuOb7b+qS6q3rKhWs\n32ehecIpTlxAdYRHdpnooeY+aQFzAMaBRhBZwV1VhH9/JBOBYjqup0o4SQoi\nNkKnYMuCXkZieaBCNGZTpNTKQFxcIlFg0CyJwkWbTju5nNArrwQt7+/SH5Kh\nkdKuMeiW6ioSl8SaCrBApJY9wu3dU8nuqPqXiP6e4MJXyWLQGknmzxoLPB84\nEpQS92giKBE3AVdRYftDjtGsD0QvTLI6fqSzMZO6Whq1Y3eJiwiZnL/RbP88\noxSpxd8MzVtEes1z2BtTzEWsDfzwXf4+n8WdFqTLZdiPlDwJ9BAGf8IelifW\nkh4fr4R1VjuzcW8kyBEfSS/UBNNjKRASTp1lH8qqLzlX4H8ZHn0lKBano3V3\nxDNgwMIFTHEJs7QH7nUaha928xqYPoxmtA38lmADXQNb/oT4CGk0S1G0RpwS\nFjB8pNfRRPn0qv1CUkRu7GFZgHDrl3bXuiJR2heqOFZol6gx4XMOxtoPtYZw\noukTTo5R0sbvV+U6TSfEMWgVVQzbc/y5T3bdpSAownSASMFB3rAxd1GOFhNU\noE5M\r\n=F1a4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/Fp+zl4CqyT4PlD0jyjGIZc7JZzKWPytmvq5q3CUEEwIgYpYswYFWWAGsj9byRK1H6ek+NVIIevc2lhNOagIx7kA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1637697877000_1637698048562_0.02285168192485676"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-24-2021":{"name":"playwright","version":"1.18.0-alpha-nov-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-24-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4722.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4722.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fc9747b1df60267794cfb586d745cd2a2895d092","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-24-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-AKuhDclv4fk/dcHwocgYmuwth0aG4TY9jhpedCyOyvJEJZckgrkM6zkpElslWzoQZMKabKGOJVWFQPHkMJn6Dw==","shasum":"9c29de56e1dfeee555dc0d029d0b161817c1dda9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-24-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnYW9CRA9TVsSAnZWagAAqcEP/3HBH48QNNg5bLiTH2hH\ne5EVjW+80jFo9e4NGswS/LOZdRBE2r2OUQX8LXQSE0Tv1er+hKO3SBgJi8D/\ncTwN3J1ZSiGtOtDgunJ/hNCurCQF4VaFigOLM9EFRrEM7It6L/q/2XJ5I+5c\nFfNcascsXaoEPAHsHZrd7nyRJnbronMcA03pCaPVRrQHNBp3sOAxPRPtImjV\nKbv+/OxxP30Y2btYEwceTqP25SebG4167Wv8rUrLO8huvGo26XkO94MDFQHO\nlcaGhpID21OhL2Ck2AZkI4md/yaAonnBxDK9V7nJDOwZzYh7Ajl3gHr9q/ch\nbz5BxzN6yaYNutmkzVTq99Mku1ecipkHeIIFeVtG7Kv186RG/w9ojkrrelyL\n2QCmHW4KD6oIL+fkwYbOTDoNKaO4rELuuTuf4qDmN0zN59gMTVJsBes/Byy3\nvQbcM2KHhXBOQpDdzM80LxKSRcIEK2AFM/lbEHrCVj8nTPwIJtTR/JAASZmU\n5anS/vAf91TQX8qYfhhX/X3Fi3JvzWG0ukjc4jPQveN3qkqDW2JJkzuWzZL8\n3+9fw8/doA1sE/pFl/z/wpYeAlA9wLinrh39A+IG1ORXD4IOP/eQzlkNHKEi\nWc0kn9uX22dfWHn6lAqx85OEOgxzO7Ew2ishUGshBYakzLI9py7bBNWeNYv5\n2IsS\r\n=HpVk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHxw3Lne5fyE54PulLo+5W0MCioujoKp4+cKg5fTQtWPAiEAwyKmQ64hPzmJwnBIrVvr5wP5bieTm0DnndisfKiL9V0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-24-2021_1637713341132_0.7146403051012644"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-25-2021":{"name":"playwright","version":"1.18.0-alpha-nov-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-25-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4722.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4722.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"da02c2e2c8f372cb8b7b6e83d1d67f5c21aec8dc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-25-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-oMxx5iLnlyW4k6KnmU3K8UrEkpzBrKZ0Tigu7F6dnfTOlGKI91ENVwX5+nqiawqFtzEhh3iv0QjsbsKoqutLRw==","shasum":"f2f015563c826b91ad1233c3304fa8f371f20573","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-25-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhntb/CRA9TVsSAnZWagAAB5UP/3Xe7+rtLtWxYPX017/9\n6dDLAAlSTxbOlngEIUfwyTGjes/iHf3erprDMEQekK8Qzlq68R5aLge0lHkm\nyekTP28hT2goFY62eioXspF7S1dyxcdVd22HPZO7G/M4fvQDYLS+H8s1YFbX\nsgyDMo6YSfpUQSi+mTuusgCXgVEwCyiEx3zQaYIKjdidWoiD+1LLfBhpqcRc\nmWX/xG/GVoe5h77Q2kRF/fbTwD3fkAurZg/8Coyw9LTGiSXfDLALewU5O55U\nnDfMeHQPYAgQnNbR2s0fwTecs8vqb5j9/uY87PC8H7qIGS9KfKQAJjmiUhnO\nccw+rqdahYCDFWbEbRqL1mgEm13ULLMrAjYvnK/cGZljXB9hN/8Hff6pKPhd\naZbdLnGgPuafL5/SyAHENOBj/a5FGobX2wMc6fm+nytQILcT9oY8tsbnnweF\nuyqyLkutH5GMK2Lr+FeP5ddDLJng9lJIT7gsP2A4wohRglFM4Xh6VS8wlqIe\nci2uPMBPgZHWaEwecHrvlVDLeafAajrKsKaH0evXuR9z6P7Dou6KWAdqblYV\n/FoamANkt8FiJbQppAF+8i2MquJ0cA32HzS1Zv9QBZ0i1G7Ubkr+3B3MneVu\n3iSeON8hsQ739jz4lE/XmGRemV79TE2yp9BwGfeo/ROQO/yro67xDEKD1XHJ\nQGX/\r\n=FaVQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDp/fw7S5rAz2wDGybWWHn54Szy4d70mCPyjfnHwQlDuAiAGlp6p3SIR6mAvJ1Lvg0a0x1+65MvsakHKKOQoENXhkg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-25-2021_1637799679677_0.1226069112565289"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-26-2021":{"name":"playwright","version":"1.18.0-alpha-nov-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-26-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4722.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4722.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"20c0facfb9b909ea33e5d083f847b54da384cf2f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-26-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-rATF8k8VEBX5Z2bvDrXX/G5LnC78rmwULqrF0JreUr8pDvMTPb/tuTzz4sLcKXODBNCxQdWp1t5C9fFezXAOKQ==","shasum":"90921efc67672539f0381abcdea168cbf1894275","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-26-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoChwCRA9TVsSAnZWagAAZGoQAJqnmfoWaLrhyqykuO2v\nEmQleZZtgfJZL7Lb5aUvhphOWiPRFndd5pMaMjjwIQlDngidFDHB9rrF0FB/\n1w97LAej0W0PxPVPc8VAZfp6op3SGUeNXZZF4mAWZY6f3N7X6Fu2Tj7qol1z\n7gI2Rs61s1bb+C2ozGQKymxiHR/zOkCMdh6UIek+G27JYufDT6/0QewaY4Mx\nHFJHsrbGsbmqee1y2vWBy2V8g7+tMfyTsLBqkJNqqtrBqfF5//tPnjDDypce\nEC8RzEwuyx66KUQbJNcHQSFR657zfn8YoLxkUgt9OjZswvN6q+9SUoI6Smt6\nhseHmWGG4fP771fU8JU2W/mYiN5ne2BTKJ5y2l9HnKpLCbMF8WxE/gncLrwF\n19w9oIszmc1JH3jjc+5smEa/J/MZZmldyDmhpcwV0QUQhZuo11MyLN2voeoY\nM3q65MzvSPUDQNaxRW/xV6Y4lGWq0q5eFgnDfHemHU+8EfoMvVtqZnKhhBll\nPKkQY/sQ3bBQ591Ap2qJLtJ/HPbOmS9ZUhm5sJkE4garIJI108TOFLDHucKk\nog4C6hLmUbA5pMGswx59cWfLsTS05N8lRbtVuqVffH2HvHuxB8n4n+Wr4hMO\nVerMPcwvUyeHRDYbY7riyVdG7n5j5EOe+3N58Qr8SiQm+qYpYEFa4XJO4OPY\nKTmR\r\n=r577\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx4qL/z7pUYTo9SrRLmmIEkbCc2pC7mU1A3dpr06QOVgIgFaTaJA1tt8Yh94bcf3BC6KE0JS7788CFJeEYB0mo/oQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-26-2021_1637886064725_0.08690932678672558"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-27-2021":{"name":"playwright","version":"1.18.0-alpha-nov-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-27-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4722.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4722.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"824b657884101094c16232864391977dedda381c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-27-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-0XCuwbzcQq229PstF6vWJpKy8GGUhRzEVxADwiYOeLW7/9fIsSGCXDl0AG2p44mK+ap5XkmALj/E1Veqi8iWPg==","shasum":"c2705f1c3865d8118c698a867d94fa90c3124f6c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-27-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoXoLCRA9TVsSAnZWagAArHQP/0Gsoi/s2QQtNLTAGZBd\nAZMCQXATK2yTjxiBUk4ymVmal68mcqzq2wMAtKEEGbvgKI0s+Q6N2Sj7YtLv\nN4FxO3VPvLCxD31uA6PPmxGLLe/vRYqO5L98M1h5VKJxFE4+A1QTeJ449C6w\n+KVOrT0MIq1QWK5XRcnLbSMpMf34eneNaIzMxFCN2lr+rUIs+2AFz4pVzfyg\nXleSwcz61grQnFoXWsoDq7cCeTCSOmWe1wfjj3xN6mYV/yTq2oDZThH2JvwM\nvbDG/hRWvh0ZXkhSwKXeQL04H4GsqUxTwjndyssoBGMxjmMPU2Ne1bvc0wfC\nsUDpWJHmRZhE7fNcfluKryrvJoh+WCR1ygHtkiy9ORPQFPcG06PQuSKppHX3\nfmXEQR4ecyehyRH8fbExIRoqGg0VaEcSPsxANdMEWnXL/0JoyUiYsWajblSd\nvj4O7KuaBVDK4wpnZ0EzBDjmtn//CaZ2bnTrWOk2dqXYZAqZBlHzLX5hVmov\nsUjJCbo7sXl8rMvmJZmHFDIdK+2iezA98TBtH1DHXeyOtmq+oE2CkKVdV99F\nv6ntgArKK244KU+j4rdIZezPBY27nIZ6+iSzUhUToqfiPgr/kvUxyilK9zxr\nayzhKpnvBtmyx+cyiWJo8GCo6fJAfKd5heD45NaIeaO42yKK8dR9mHvfsGeB\nQwru\r\n=Jw60\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBJItdH+25JXpasCe3pZpArk3tEFowhwmmhdFV0ugsFAiEAizTAdIQWWRGCaltiNIz50S4s2UAJ8dVn3Hvev/hPBT0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-27-2021_1637972491472_0.8795546551377"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-28-2021":{"name":"playwright","version":"1.18.0-alpha-nov-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-28-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4730.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4730.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f7da3c31f90c5becb5f6193efa6c0cc0f6ae81ce","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-28-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-jd7YhLZ9QC/AlPO4VQbC6iAPa6acRMNbpdCoH+ZR75WQQJ620OoCU0rkSJgptqXy87JxOZwed06Iim4R1bqAGw==","shasum":"09e501e57b82d58a95f2c9626739276f439797cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-28-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhosupCRA9TVsSAnZWagAAt5gQAJt+QcCubTtNSJfZuVoW\nXmASVtCq4dXn4QBBDff+LHdIBAEtcYMPxWJwc72r+k+8xJIdh2L0rZs6FPo0\nwOiJEIOCcHZEiBEBPid5ntNArOExb7PIe+viW7nlpY+OWrJZLazOXN+llrUO\nq5lIDKC/7gSTat/KWV8sBoZyOFOc8/gmuKCgNuu6US0Nmmt51QL8drAjXkq6\noV3fH63H3hAFrMX+6ROx99U5zYmW1FwIYQPgLTd9QhDNAURYk9nMybKJNTkE\nJImM3aGRDWHyMFlIERrWDBogh58APAormBAee5YYJ+MLODlG0hg3Hv+JlgIX\nUwsI92PwkebDExF1lZEc5u2SaHTkpu72s8IJTWJ1nGAsDea75lNqll0ejyLz\nn/5Ml4ERdhHBkqQMksfnsLF4DmkmLqr5DsEJs+2LQHleU3uoyzmbZ0zWH179\n1SCkMzCZvFu3+2wTf5iWFmTwuSLx7zj/lge7WjnkBZXX/zVItSXCes5PP05G\nj1Cu6VDzcNfKQ1FdNoWl2+OH/syFwD4YxNXwwtkvcDzt3bNpopGVZSsRofw/\nEg3I0rTb5m7rd02WE/xS+hWTIJC+nk4u4hesGuTRAR/Ph+eaBEz5DUjeMSAG\nKiQPV7pyAdI7fifP7CF+8eRwA56kdiBB/dqbpjtFH6fyK2txX6adHxOqrstl\nIIai\r\n=50+w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBECY4pIYxin0MRr4Eo9AO6tsFwu+Y5f4wZYdktqSwYuAiEApC6m3wlbhHSRAVEGXl8AdyHu593Q6EvFjIK7wFJPUS4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-28-2021_1638058921190_0.6605655562286075"},"_hasShrinkwrap":false},"1.18.0-alpha-nov-29-2021":{"name":"playwright","version":"1.18.0-alpha-nov-29-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-nov-29-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4730.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4730.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f7da3c31f90c5becb5f6193efa6c0cc0f6ae81ce","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-nov-29-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-QKT4NuWWDOkW56tHBJTw6K1J6uxJDGyDd4E2Tx469VcU6CZVC5c8q0G43p74Bn/5G+5Oxpt6kC4VJUeaftrWGw==","shasum":"a155cdf297a19ba436fc42479f7f27f20a2190af","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-nov-29-2021.tgz","fileCount":9,"unpackedSize":21530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpB0oCRA9TVsSAnZWagAAsmsQAIiO2Yl/ZCNIHAUKtVsp\noo2m4oHnvh5jno+dH34ed81lbu5/v1bE1Fx2GQRj18x9BqmKoAYb+LzWDj0Y\nrz247VcTVTHFDqGDab+xHtNUMbnuKL8GPZByeIBbtsa4BTr+Uw9i8jEJmAab\ntLRZn0/xvqnAsHoU1xGfR1Gnw4zCa/HzyQl6fXdzYwSOzPbsE4bTEBC5odYG\nXQ4fYEd4mBxzGNcHQQJ/bDOVgL6H3KaT4OQqsCQieZrGfo2to1I571EKZ2pn\nxvr8AVAhYCyYLvp0V2k3T08/cBT2tT1PSP65fzi10aTe2bbAwH6eKPwA7f0c\n+uJBP9LVzPod2t/VdTm6esu+UbBXxWH6owmJTlW71cFVFrXdwKo/Z5zvUgYW\nSxgtxqRxiNczoG1Dv9cf8mEWePAp+GxkPtgJzl879SDxersQdjiL/bSWP0oZ\nHxO5IplJaway1ZR5y77qEXUDGM1AQ3MYYJmQ6V8XP8rPWUXVApxlWSTthD4B\nHepqmmpnhr/P2UTre8TkoE0bij8UJPD0KhepuMkpWR0kSVAaNt4kZAcAF2OL\nQm1ojZ/hRit4m/NbXqfd0EDmRPRdPKwOzB4zAcsjty1qdnc50GSCe2kUbs0R\ny4LAzZ+lrOOCsDBhUYOBaSppBIN24GOL4uPUENNmnG9rHoK1MmO7RMo1I41r\nCVbd\r\n=k6A9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDmtiiHMYaecIQOBvz4ES0tytuoLpSNrD6gcrzFk0fVQIgap6GYMk8kvyBsMd82VDKRNHVo6ZQGnfezlgJeAF5r7U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-nov-29-2021_1638145320495_0.04766731497743759"},"_hasShrinkwrap":false},"1.17.0-beta-1638222602000":{"name":"playwright","version":"1.17.0-beta-1638222602000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1638222602000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7cf48152b7c31192417adca4f4bc2af98eda37a0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1638222602000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-nXZIyCyFdR8K5xN8al/gRam8BJv0S9sw3Jw7wVSq37ztbPoL5SkmtGMHl5EYnI4EYBIqrjroOqJBm+/j3ZBwTQ==","shasum":"fba4603139b40fc246a186608938e07dc0e40393","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1638222602000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpUvaCRA9TVsSAnZWagAAty0P/jDM0qqLicxj1+O3Ba24\nnm21sQRJOAuHJ/kUl/0zl/HZpVhFHCWwUF0LRp4k1waAE+NRSI6UAw69Ym3D\nrpiSyfweRBaNLnzj5P5n1swOSQOH2chuLV44BnLz6C7nuOaU0gKkep9gy7Oj\nA2CXWJBbDg+yRPcO0izbbg/tt02xGDBftJv42b7EQa/1N7wKiwLiddTHu9qa\nQsaL3D6ev9PYZIlrQ/+1S8B2VebwFTGuj4fAC/KsCZFj2leXpWy5ya7R7iKD\n4qamllZS81Tw08RFzDeJ0qZCpZ2x/eg2zWb+zxplaTP+wbmzYI+lmWkcKOSL\ndwIlr1jttN/6ah1YtI1K1l53WtB35Lq9CuxNd0nTJLjm6NKz4stLuSvOD+rA\nob92G7d2IAGfCLlhnuasmPQv5fpy8zuRzYu+ahBAxzCJ+w3HisqPtMbHIjXT\nDTkTjvKDYp88YtQKJiVToo9EudMnk6XTd9QKSeGDwOgYikdy2TNRmWBkJEs/\nZliwidqgoCGxXSQLATuIpWTUITkh3Dk7jMYRKmL8UMB0pdG+dtGEOIXEtDjy\nlAzRQauDFODcntYsUya0Wx+lSVB5EjTT+2KaK7240Rlhpdt0OAL3h1FRmowf\nQNpOAyySDX6/ace6CH+9iuYK3OssBs8Zs6qlWPRUjjv0JVfix5yWfA2i8uZW\nxSa9\r\n=mrWC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6B0gRPS4eChemL5VQ1R4E+b78BZo5cMizhl9JxJRigAiEAr34Mo5pfZyn782r7FJLQ3Li/5tqxuiqQ23uQp1OzldA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1638222602000_1638222810570_0.6377140600310967"},"_hasShrinkwrap":false},"1.17.0-beta-1638285466000":{"name":"playwright","version":"1.17.0-beta-1638285466000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1638285466000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"30e15ad36f011c7adf5bad86beadd50ca93b01b8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1638285466000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-BvLuSC+DX71SAwJYEIsDzec3OKFp97XobbQuswMcW3hIARgvhT1z7vVUxwYeyzeuGXkP3LVO4D15AiOxgLgdFg==","shasum":"dbdf8b62bd9d81a3a438f49889606261e734a73d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1638285466000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpkFxCRA9TVsSAnZWagAA2iMP/R04oHqAQF1MQWRJLP8n\nccYAlpIGXBUtkC6bBfRjThc9XQcih560islGozFZ/kRUbUcerPlLUD95o6jG\nLvcS1rO1mPHzMi9fC5oEZCxXuU+mZfTYmwFRf7CnQ6KOdHAiQJHOp3OaRiAo\n3KgJL1Xw5v6QHYoDUEyFWJGYmKswvhBLfYz1I6fvyuxXa92R/mpxcNVzIMnm\nmFHVfYwZo6AsfBfxxQac9ihIuhwVhyFERRtDu1/AigM2itrWyoi8pkoZUcyU\naILzI32Hnt4enjLhpFktKGF/k8t8NjarXjU8YfjoNawAUqS9ecb+0dtzwQtu\ntgoLxXDi+lyflHmSq93uvkGp907NGJ9K7o2YAE53/jACbrFyvlEz8KyjhAwx\nWDZagO5vfPdQNInLJe7TqZ7xujOv0eBzmB0RYZfTTWMRaMusFoE+r4etG4Od\nXPO112IFLFjqSRcGGmGMKLrOPEfYu1g37dhgQU+s1jbb4FEmjf4hs89y6hJr\nzczWEOUANTByfcHsN7Zvt08kxAIPI7g7beoKyhYT8XmKCa2sLknT9FQB+/Y5\nygGJkkmxZaynA5+NvTZ2ZU4ttMkaC0fLFQh+jxzp4zcAEGjQkX21MmQEKz52\naeApohMkJqsj56lA4tRK1yFZ+RdVuSHGpv62LHKbj3C65XqtR4OtK5ue5uhy\nNJX2\r\n=VHsE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB6GOIys4DADWKJ/Da1TI14h4sfe4Tjaf0MeNzUjE1iJAiA6er1skvDMSAI1kKOrMgNRfE6SdDpvwMV/ASeCzPkccA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1638285466000_1638285681420_0.14648057638105594"},"_hasShrinkwrap":false},"1.17.0":{"name":"playwright","version":"1.17.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0"},"types":"./index.d.ts","gitHead":"30e15ad36f011c7adf5bad86beadd50ca93b01b8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-rBBrdj5+iYFBSsMa7glK3MBaxkcXxHN7uW6pY7PzTB7xtGFTfdK0h0BPB7/vWiVIGOvz4Hy9g2UJNaZDHkAmgA==","shasum":"ad9918888737a1f310027a1fe2fd27f86ddd5e7e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0.tgz","fileCount":9,"unpackedSize":21597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpkHPCRA9TVsSAnZWagAAQ2AP/26WUKLuSkYmcKDXMIPZ\n9JZouXVrU7UXUCxdbg75NH+8OTWtxKfcac3Q0Ku+cCyQaO60aTSpdfI1lNLo\nhvQyRH0ysizskOQfiFALiHVDIo44k0W8B57Z98x8FnzYv6HbBRzomWcxsrdH\nzpchwGEBKn1O8qPmW7rmHVdtYoQo0NgIEUJWxyvNKB3Vd5XgNq9WL1Ym0qa/\nQPlQkVeg5BaKB2bPQNZ+X+vkD7QW2CUe9kIZvtTpxZ1L//7ZmRbTnKDESfpm\n+KAMGyscdyViqTcbyQcRoo6znChi2oUaAypQtP39K55403EFJpGPjIXdch6A\nO29LD4jKohl3FRPNurg8VN31fymMop9RCGV6XaSbPGR0v5rfFg07iRCBXy0K\nyPmHRynok2Pp8hmzTzn2tNVnIIZxxr8wR7W/Uul3pJbqVfnL08XdM+25VkHd\nWxyEqXaetkYmi0sQO0mVotsJsWDznDGySDGWL7u4hGTzDjgrLzfErhDiXPL3\nwiutzevdk8WK1TFWTvqU2f9lwNl90sDb5bdyqJHdHlucsdgk/pbo5lcJsa4Q\nH3JqjsR5W0VfII1nt2lYIkmY//ppIJpYNVaIT+dyNz45WFuah5CH+l92qlAS\nvYaJhDY2D/3Vibe4NDGsP/ZxDRpgbC5+o9msPEGydcccoZq6z3dKD9bu55+N\n81sf\r\n=31h7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHr0GApbhREKqvr7YM/l3W8/29a9cgy51T7mJFuScwfxAiEAkzIu1+gGbJbNLMxkPINCWU7cXJQ5qn7rqyMAQ6pnt9s="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0_1638285775556_0.8612762682742932"},"_hasShrinkwrap":false},"1.17.0-beta-1638356200000":{"name":"playwright","version":"1.17.0-beta-1638356200000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1638356200000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"013eea654af9aa9726fd6707fa1735bbac0c9dd2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1638356200000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-iiACSUlRx3l8Q7Lr8OYfZTT/Svjxfuq3VzbuwyMybDKCXxMb9c6z0EcVZKTecPPkcduEj4NGxFynP+ilxc3BSw==","shasum":"4239b4904cd24d6b76ea4cc1a22d00ad63b87927","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1638356200000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp1WiCRA9TVsSAnZWagAAl60QAJuAosACNzEnoH/0gHah\nwWUOuo1vtSOUczaPRpK1ynDDJse1CwiQwDH/S6UYpNuE4YeYSZ4c6KmK5bGo\n+BXLiESxDRvUaMlXXr//oyKtAyDthvKGtWlQB/pxGe7Pd7Zf7pZZdtltXp9a\n8Y5KTqRs00kd0pNnj6mwYBnXLF/c1Bx8PahlQoN5wZ/159BqdaL/H1ryJFO4\n1HP4+kc/cRPVW28W0WKSg1tUht40cVaw7ux672WO//vFzAg39tfC3oxONKVt\niuF9OdaOEvgUlUlh+CW/5ed2avQK2Kd18TNVj9+HYFJd6p7eDilH9x14TJhZ\nyWFOiRjvjzHJGHFnrcfwZ9vWeDIqZxcjKPV0qFvD3JUWc/3Q3jpvY3nK4so/\nDwu4fv9lmdkKXClNlSYBrNzPJzCiRZzm9joGx0pw3OgWh0su5s67uWVOuNPd\ny0DTbCmgPOe+dHrOsMKVuvgQzNFKqnoMpsxcwzlbwvAz0xttiY3SBnp97SRg\n1bAQBnJY1eCQOyKf/Aa9TIq7o7xuvH+KditOagVKjZ6L6UTp5Vd87cKnp9Cs\nmTnUF+AkSWqql9jAwUq7SLtG6Wz8Mrhasf+UrFkfAKoH3vI3q3mZ7loMS0y/\nFOTmpLiq4VqHbPWTR9K8rF2r2lBYCLaaR15sn0e7V/UJBSM2wd7yhEWQAAIU\nWIBs\r\n=quT9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4cwacg5HtwT9f8REQaZtk6eVUgkx2ZZKmG+rKIzeIzwIgfWm32DHAWJ8rI+5ahmXeUI1jtTmnty/LLuCJfXH8oFI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1638356200000_1638356386193_0.43344262394692423"},"_hasShrinkwrap":false},"1.18.0-alpha-1638379596000":{"name":"playwright","version":"1.18.0-alpha-1638379596000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1638379596000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4736.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4736.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5c93066437d0ecbe15207d57cadccbd5671889b7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1638379596000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-JxNnp1hs+U230vHp37yskcs2Ypt1DueaedTHfMcdiqfaOF1LyWLdqw2btIEgW/dcOr+IbkpXdzoNvLbwR7Jw5Q==","shasum":"b5a5fc0b1aaeee7004621203ba64890f24309165","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1638379596000.tgz","fileCount":9,"unpackedSize":21566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp7SuCRA9TVsSAnZWagAAzXgP/3NhWSU5wKAycRY/Ljsi\nVJGuYAiZ3kRs3uBd7w3CY+QN1ToQ8McRhblvpFWt6oJwNUf4ZeK3hz5SgQjq\nqVaMIIa1h2+BTbbtLTvKn6ztqZLz3Yi2uS59sRzv83whlpELFLh7ih6sTwcC\nxUolOr5FCv0OEENwD24AnAg64GmzjwWoDNFJdx3cHtU3hILKBXp1rFW5qhI6\nt5QAiwXsKIj6wea0Epsmk1dopERF4fRlbensrA6wtaTe5yGiO9Zk0tlp2DSv\nVh0B6ahfLgIyQ09Qf5x8fNw5Qkq4FGLpYAL5zRtka7yKgUZRzlYLhEqLxpow\nBfVMlJTKa2cMieFQ/EOQRMPQf/SAq9ZtQ/RsHcYYQT2WG0wCnZPwsbHdvN9P\n+xQ+hkCXe83RKPhVqBdjqChXpJiEl7oFMYDm7hLu/uTjCSeNbXY8kLQVrAwf\n76nAHdSdAjgvsgLT3AdBQB8lgvgJs0Cs7uLIzgiWtMy/wXKuLqIxs5r8OQFT\nZKuzeshny8vReBD5iR0sygqW93Dgk31n1eWHsrDJl8k7fRRcWXWMrTF6+D2c\nYeLoI7x66FNKMlA7WfEp86r5QteUwByEmeU7KG+OkUiZq2V5YOL/ilCFsIMO\nwicW52AAoyeoWD/8JkThFDUpE9UfIeQAVVUdCyG2OqAAXn7nigXCIfWW3ANx\nhSYx\r\n=E1bZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPXfsI1iNDWZuAlUEYUALcR9/xrfKFW+A+FBEYkisv5AiAQw+ZziSWD7KXK2BbcG3k/Gzs6+8DLe97AKsF3BJ6pAA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1638379596000_1638380718085_0.31001691593520286"},"_hasShrinkwrap":false},"1.17.0-beta-1638387664000":{"name":"playwright","version":"1.17.0-beta-1638387664000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1638387664000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"daece9cf49a09e6bff10b5d434645847b2e17c0e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1638387664000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-OKkivYSfqCgWMzRVlY++oIZwdJQYqZt8l158Qku71q9Omfn578vMCof9nuarsFxTLLz8UoOQ+U1ECDjoKPRG2A==","shasum":"d151c45e2da1f27511f70af92c230c4fe7ae64d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1638387664000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp9CsCRA9TVsSAnZWagAA/CYP/RQiromlKe2Sim38FznY\nNH3Oewj6ztFBaRjdwRRKDl6lzV+6vZXYkYGqPhpBHgRR6l4VsjRgqEbPVX1m\nc+P0pDvD/IdsOvOqOpOTa5t71LzYx9XEVYOtezxK0Poz6sBuXJhq9K5WMfjK\nR00Hq5ktCxjSl02BPvlpWsz9luJ5JDsk+CbittBdlJgpzHIqgsBYTvPJt+GZ\nxwNMLrHzpfSj/H/DUHLDNxGVOWITwAUDyWeS76/eUkAh6fqRQ8wbncSkCvkI\nKkZmwix1qMNnDsEcMjwkxJLOWNLbjd14ZJZuPsk/8dKctmhnjY0LTvCXe2v0\nJdO1sHFezMWguIDFkIoVG8pLI+61e8z+4Kb75YsaXpdMg8Dl97eaAUlD7/YQ\nZiuI0u4EM8aePKI5TkAg6eTFv4hboaGuFuHl+JjwuQqqL4qrK8aWmGIWVTP2\niEqhlbMXucq4ErGukTg4RiRFoH5HzyXbAfDBpddU+/WEm7A+C1lX+Fte3FCF\nUEHU9CCY4hsQma99uhmqvGer2uWQ4Conpd7P5SYAzoFwXUDZa7cb2KtYTWjP\nQxafhYHqmCJ2mwcqrT1LpNp4G1sfwVgy9BKNybko9tacxGe6UXL4QN7JXayQ\n6hRzz3Ty899yh/khDlzvCEx0gf8zqkqjHsgdGyd1VSEFtYlI+obVPOA0WPMZ\nwbRj\r\n=8yRG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKWokHPLq5kEtgDi3HOSThEk7BYUtUXaV41lVveQcwiAiEAh+DDbvSEHFeHQuhxaOx+JX+7F6Gn2a1j1v/rcNOGcuo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1638387664000_1638387882937_0.4050013469422613"},"_hasShrinkwrap":false},"1.17.0-beta-1638396143000":{"name":"playwright","version":"1.17.0-beta-1638396143000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1638396143000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d22adda6ec8befdbdbb9f840e2ace26255a5eef0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1638396143000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-66QJqZEWv6dxcUCZNOoM6kmTqOzchLZwNvPUvNQlGWdSJ8lOgpV9VGf8gvsb17C3Qfj5hLtAMtZhT4bBswmGDA==","shasum":"1750d93d014d633feb6f75e8c15c953d24a7249a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1638396143000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp/G5CRA9TVsSAnZWagAATewP/jA2PWtte4yxk2KFGr/G\nHXcX2xdVfcU4wfaPHQxdkUCVlgZDrhSVA6LeS/TQPmTnxQ67sfMmfvo5pi/N\na/THtOZ32Z54lr/yJlm1VD3p7vMmK108o4RuPEdDnJlnA7e/2OGiJCq29ibI\nGZKMBLKVu5Vhbdu9OScYIgbw5DBVxqh1mPa94xC/bPaz+nQzL7PyUBGzka61\nV9C9NKY8rNKbxOhCccONx6FmHuPcceWLyoX0cklqDW0r7UfsEYhVX88u2gEO\nT7n6yh4T98hSk8f6EtWHKeIVw3nEk7rDSVzBLqMRZNdkKr8gGq12ZticjI8w\neygHCYyDPujk8rff8CBlF+A0HCuhkjQeJRfxdo0v8Lv3o8VXbg35P/lshny9\nyt847NXG6UwJ/Ht3EMJZknCibdfWkkbdPSpJDGTJ085QDUm8l8wNX5cO/RI1\nB7Yhan5p9kUFSBriAiL/gWDIIkELviqN+E+GFBJJD1u1YCf0Xu5oMUQzqsrn\n2RX/qE1nik570K5/UQlBvjfL1faAWtF18FyLFhSG13I/sye727CVBPUbZPFJ\nqMvxcEokfv/byn7jWEeqsKkx/7ok0zDqJ5ax6PElOCiBhthKeRXvHucecH82\nnt/HLDFvUVYlAn5rj63zYQZ1xG2NwHKI0cqwNgOP/lNc5tv77rQAdHVny+Fb\n3AUU\r\n=n3oD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjuB7K5UHjRNZ+yYwoMYh6OVafga1UQkF+f7vLrUzlQAiBnsg3xm9VKCkh6427AFsNBEo69TFvEb2RZHkYa4i0pTA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1638396143000_1638396344978_0.1504369513308308"},"_hasShrinkwrap":false},"1.17.0-beta-1638401430000":{"name":"playwright","version":"1.17.0-beta-1638401430000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.0-beta-1638401430000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"41417403b40eab2fade9516e8e6bfb5eed33b106","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.0-beta-1638401430000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-D8xcNNHqEPDfhjzZnBCvf9v6VA7VYdvkm+H1Sh2ZZej2OT6mKBQbWnrk/A9fDPI784FgHRSC4+2vVdznSkMczg==","shasum":"552da9cb64d73634ce09f53c4247713c72e9a0ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.0-beta-1638401430000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqAY8CRA9TVsSAnZWagAA7rsP/0uM/+6vWuxBAPjS8M0F\nCogz7glYOFwifuwejMALUJsevZG603Na6nGHdENFi7z/ZEOsub0FAQ1G/fxv\nzUAfyMwUcvS2XaCvsgeosRyjEQa3HsZXuTM0ds8/YcBjM8vH4a9M8fBEm76v\n9GHaIlISA7DV4FdxPDdOoq7ynnYPBfnqfsxqrp/B8wOKYBOdfMT9XdXGNhdM\n/czUcBRDkfYAJurysAJO2aA3wpsdL/dqSW37G28mP9hCISHiK5uPfKhWLfO8\ntTPga/JLrEBgRz6vbkUvzSzT6sa8GMmQxNDV6Ppicb19Tr+ieR3dcX97IqfV\nffuhA6AiDzff4gKhnYEpHZsxsE3QYCLT9NBsvzoMrfQNg+YCGB6yaqvjqHXw\nAfcGdePoceznW89n5fzsNXy4UWwqwtR1A6NdAKi70nPlh0icIfHbr61JN87F\nU3D+YuzdAP5DKZOvLLKkznLkYItf1URhjfjOojmplMCACcD3VPm/bNFnB9oz\n/wZOklXHlwk6eV0jUikA8XTFAOBLmoetT3SIWqwVx35pVU4X5UxG17OOLjaK\nOV0nHR/1WtwED3D2Yu19VUGug0kcLFjmqV2xlyF91XxkHA2fog5tz/MNeG0e\nTSkKbPCJZMRqzecacBq7F89EKYV2Lp9x1881cIj+Wh8wxobQ+vqTyysg4HmY\nczma\r\n=TZmv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCztCAwT3VvgBO3pvYOPcsfThjLF32lvJ0OdkfvOeRv0QIhAI668zYAWDD+Nnhx9Hpl1YtLmBjim6OycUGf7O6H62GE"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.0-beta-1638401430000_1638401596336_0.5319676471915609"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-2-2021":{"name":"playwright","version":"1.18.0-alpha-dec-2-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-2-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4736.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4736.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"045cf1a56e2521af5b1d8c196cd2ee8d376c02f2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-2-2021","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-ZW0C3JqDO3wDu7GJ6bDT1/P+Uo4Pil00IXz61rZ8ICOJmtJx6iF0MTPDTjAe/i3WhlL4ZuIodrSwee6K7o1JQg==","shasum":"6d37ddcd482a30935fa5fdee6505b6e9e1104d86","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-2-2021.tgz","fileCount":9,"unpackedSize":21560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqBGACRA9TVsSAnZWagAA2eIP/ju0KcSIi6lSdZ22iItv\ncHG/69u7HW/PrddXesJh0MM90O7bD+7lOJE6ru0ysbArTIsCshUrhUisNEWb\nAhPzV+VT+pfGuyd5vL6iIf9R8nAESm5o1WRe69Sr8vUV1DgWrdE8GxKX9Uhz\nm5det1xBanctHu68586YP7eT44dzjRWPzKc/dqy5YsVCj/8nMGoAXlPyG041\nFfkcka9+LnmeVpWDotBeCZKRC+H+TC/YCYqnRrMAnyC4AH5smIXscUO4zxUc\nqHKr7YcBYjHiUWDj9Ux0jY8gGgqE2nHtNTWaGYxTI39fDqpp8J7ECifCHBw7\n4rpwytyJSmvQLcSGa9MYrOE+5LlRrLgOXZRdnP5BV4pmFa/ulCw5Wytdj3NP\nzTygX/CB59mXYhHwRpku7ixvcgyD0JaOEcEcJBY0Ie+1HZxDzKAylCjmLaKQ\nzMBgt44y+23FsRH7bywCXyS33AQqNpYTLcG4NIjCTXuaHVEHJY1b0aSXkUdJ\ny2moKzMOpDpj1QXIxJA5IYTs9d3XFAmYKTM4ZbpXmDSWULYryZrjdf7tG2Wq\nDsdiYSSpqzpxgMABHD2fGyYTEAqDNRjp+QUCbUF9slZlBBsf5a6FbX2ucuax\niLhp2ObBlXlyun211r6WhChE8/POBkNTIMO9KaaIn0RaJOmvDdkR4A8CpKgs\nVGGS\r\n=Mmlc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICG8g7+q43EFJY7nWtAOufT8CVo7o3bu/HYHwzcgyojbAiEAq0LyaN9syFzXpu+JoWbbS3MG0jLN9qwQHTfzd2TcV1Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-2-2021_1638404479899_0.07374374343592782"},"_hasShrinkwrap":false},"1.17.1-beta-1638408300000":{"name":"playwright","version":"1.17.1-beta-1638408300000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1-beta-1638408300000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"be460a9fcbc6513f2be9d176ed7251bbc3b3ef4a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1-beta-1638408300000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-vE6u/sL3pYCmJ6oT88hZGAPxTJYKazl1Tuun+Hlc63JVjD8ykD20zDXecAEWohhTCD6KfEtTVBlziqr67FRPKQ==","shasum":"97c9458b1a653f4c76151d3789f3b1fae4afad45","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1-beta-1638408300000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqCENCRA9TVsSAnZWagAAP5kP/AwwcL9d1/8aAaqeQtQr\n92PrLd7ALazFyUWI9WYP1qg9yKWf4haKBTwXPyxyUkUIqWOazOYuOT5WaGPK\n8RhFdvzauhvop+NFWqkZQ0qgDsGmXo/IUeuXWC4JgLm7uu+c3z6Hssns0oID\nPab7NEo8LBEINlBBlIK+i+54oRtabmQbQVgyCLnK6B+GMEc4cLv+fmaBU8N+\nrUfOUA1/u5GSEt3ae8qdkDkocxBPMLaXcatWyFlP6/HAayzHaZE5qDg5BUHv\nDnA1N4u7uwGjasOvE+soJr0NZEM/uvcIEhxjQPB9/IwdOwYmT9YtRoC3CC0e\nsNoGuxxxq8P1iSr5Q8T45PtKhyCFsq4Nnl7j0r6xPnj08DxhJzhgmxg1YUC6\n/YGGpDrLvCGuQsk4BkpVQTx1ROeis97A9ZBudI2rs1e4Bm0+Z8pIeGlovdB0\nOsVgcNQpRah3lVxfKNeCR7ebcL4OqpCSyyNsysikfI2iFcaPd+yB2V2LuFk+\n+Vvx/RL9CAFkBKobOMCvi2DxygkdqYmNIYkWl6YT1B0qP19tAkoTCTBBJWmm\nWtlMFgRxZymLsqHJ/ej1EXU1RBj6T1PpbFhI1him3Sz+wvchjBSP1V7i9fNJ\nikExr0GzIZ6Co3Y36R03Vqurn5BkVa6iniIFAaG8Eiqgtdgw2jiJtDCfb9qm\nkr3W\r\n=z8hY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEFYRl/8Bleaqoc0nUGv+ETKeHMYWZeAXKLTmeyRFzsAIge/pMrNYsW7jt+JQM2TD/vqpsktCkb02iAhMJ0cGm+uM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1-beta-1638408300000_1638408461038_0.3918548459053681"},"_hasShrinkwrap":false},"1.17.1-beta-1638411397000":{"name":"playwright","version":"1.17.1-beta-1638411397000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1-beta-1638411397000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f802c27d0983ed40a0d678a61897e85c872bd076","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1-beta-1638411397000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-Xo3xCOXTpowXcaLE6iuqIVUtww/DAQvw5Hn3Q9r24SD6/UKsDwU6IQ2GyWcqwSQNJ1aLplP3fPFV4Ywm5IKUVw==","shasum":"c44d65e9e7df52287cad15d368f4f04d181900ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1-beta-1638411397000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqC1ECRA9TVsSAnZWagAA8gUP/2U+oYa55oUMG03DDvl/\ndYZEdtVjWGKzi1c9arg13rTCX7neishZ994kNgGnQI8feFKMarLbtTL/45hl\nO2+XxJTYPFjFBsbTGNYesZhgFTkufism0VUnDICqrL+hTSl4CZyStCixAj3T\nHLZkoZML92S9HnTVQOMGx1N28IYfQ2EEpzwRGIZibr2cxB9Ir4son7kcorqH\nK8cIGL5P8z5z+zbFA1Mbl/BD3xvadqLbRvr0O3kX9SOGgG+ZETJ71MrZh6et\nxZmbdglwbG1mwds2keqg1N2IW2xXp1cgGm1RAVSweqzlKwa6d8NMJvMV+qWN\n5UO2o2hAMUxVG36Rids0rWTgVKBYYS+wyDoaSVfBYi38Hoyo1RF9TdKYRs5d\nf+fsSCpjwgY/3zqonzsXXZ+ocWoIj3aHZUlxYtIf5KhIGqk1QOhElZrjpusv\nIa8KPMLDwkJMlBReGcHtRXSUdvrUlSTYqCH9fcUQS3qBvzPr2paKnU4Q5dmV\nkWOCxFkr2XyAMdt620q55CNGL1xrRS7/fuiKWrtPILXU1MnP6VDwpcZYiKvr\nfToax+K3ZpfmgOoDmhFfuc9EVFjC6MXlI6/ZgcrbMkRghdcGlwSbeZBdd0xm\nzM0qcP5ch99ESefntxmu8oS5JdkREfQT+zKDoILzUAxgniPWfT5TyfZ6ETXx\nV81o\r\n=Lp19\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOVo2tiRi6a2yBrUaIeNlVq0xSc7n7tkchsFvd230hpAiEAruXDJaQCJglOzZ/VdYYBUs4xqlT5mksMH3MlMU4Zaxc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1-beta-1638411397000_1638411588812_0.9730705841654432"},"_hasShrinkwrap":false},"1.17.1":{"name":"playwright","version":"1.17.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1"},"types":"./index.d.ts","gitHead":"f802c27d0983ed40a0d678a61897e85c872bd076","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-DisCkW9MblDJNS3rG61p8LiLA2WA7IY/4A4W7DX4BphWe/HuWjKmGQptuk4NVIh5UuSwXpW/jaH2+ZgjHs3GMA==","shasum":"a6d63302ee40f41283c4bf869de261c4743a787c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1.tgz","fileCount":9,"unpackedSize":21597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqFWCCRA9TVsSAnZWagAA+IoP/122JlwgFdfIlgFu+98L\n80jzPlMdy5iDebg6qMqUh0h1kkUwKoCrrzgB2Ph4zeUVzcS//8DB5S2qpnEH\n5gk5NBx19US8W3D/S/dX6d5jRPtBa4RqX1+/P5kUXcdVH0y4fgLW5oTfs8TB\nyGF18XU4fnADY6lWRMy3wKF18RUHarCloKOQ3iGQ3Y6nxJ6ciUwvm2earElD\nPFGIveBIoq5vponE3/Q1Q8nSJ8fVzx/4UjzmKStoSFxZ2SW2s+RomppOjiFP\n6OVBKzW/XzTQGO7tveBhlwph3+a6B2TXgHdfrfrOtYOL8wjVXu+FSE73WZfb\nNir5KfGJuMHNBCOKMwyi0dP7YcTIXduSdWBczyA7SrJipqKJzpvg7l01CWNO\nTtEEfUGIevf16wJCDnhRWye8S9Jt026NzGJQFrMpkpvhOcV/hnOLa+i8XHCq\nnXJ8CapqLqwzTzwD2m0sSNr/jz8AqlbCgYXm2qEmtZiP7BEk8qEyqcjC+RC+\nVvjH+RkcYc72KHfDb/8ASYs3nYqiJ31AfWRKaxub1JCrzzuEHgw6afaHHURC\npAaB5ugXqdaSd5CkBu0SDR85ZxuVq4u0cXI29bDId8dMGBvn2eG1zT/QnXhd\nBfOKzx7cNo7157iIzhPQFvEQfjqD2aduZ5afuTf4pdSvPfj4LglCpuK+lVLy\nifix\r\n=Lq8T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICEne75tj/i0X4WKV4UBOORPrz0vnMOSm6vg20MwwuHxAiB8ZS+uKq+mfSI87VfOmUF0s1PbEFod4NRfUZeF63151g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1_1638421890234_0.7370194290240206"},"_hasShrinkwrap":false},"1.17.1-beta-1638480891000":{"name":"playwright","version":"1.17.1-beta-1638480891000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1-beta-1638480891000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ab511165f3cb43bed306cfff662a8bcfdeb2ae2a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1-beta-1638480891000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-p26Xl3N0ALMRMfaxm4KOle6eXIL46rq9NjYK+9UmYg6B89hc94t2IJ7U0WK1478cMEOs0gWr/S+7PpQ1PT/hwA==","shasum":"86aa2299e4bd62800e10c599f16649c86d0e8996","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1-beta-1638480891000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqTzyCRA9TVsSAnZWagAAw9cP/Rtpyd4M0Wx+vl7DA2Zp\nu8eV58t4VTEYa70O6HnMFhRQkNvvim1Q55xu19MDD+JYai7kZpsB9xgqpcar\nYcJWbhzUDt6gAcVA3nb+w8bWLFzzOWClw7wGUpr6TO4QUbIPmAseYtA7SqLA\n6Z+LYEu3cHJN5QPtvSntDF/kFDJbkT0Fl4TDS8XPRy3owLyU74WT+mKYzues\nRe5lo7Ho5zEqdnC3IMZOKrDxEmiztayObWti2HH4IBtrcTtlTOOv5l5c3Xf4\nmBQYr4ukvTiPI9t++J/4Tvh5WR2ok15X9jJgbIiBV0NTIziYQoFaj3bm6DXj\n/4UAThNGZRLlfrizqP/iiawimCvBS2dIWU90NGfuL0eynIbfp8esni/9jZKE\npTWwdO1IW1/CMynF4i2hZrxsLwKG4vnpnz/Qc75VdDjFs/EQi/HyfeAjwnpO\n6pNGkFC4fi92vZ0IalRC4GDq5bw2rlvmIhU3m+SH08J8zhrwjICuTjHEuI81\nZ9I8qSZDhhY2p3QhR36kHWqgln6oBJ9aXdFlStSbsiVHew71Ya6wRlKzLE85\ntVuxj+/cEG2a7gvLPmjgtpoYYlMxA55DVzfmX8U3maq4LWxM10cbP5EIqUDv\njQJ16MdoEO1OxwbM0RikTDw7RW1evoXRoURkQRTM5jDaAuJemYsQPtdJkIk7\nym7h\r\n=B9B5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHmBJcOvT9wkSOJ23YGI+lyd68tTAF7pJJIyyUptXZZAiB6Xd1meNUbzK6KLzzNwPqGhdkvIyL8a3tSNuAW+Ph/7Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1-beta-1638480891000_1638481138073_0.14613895935198196"},"_hasShrinkwrap":false},"1.17.1-beta-1638481933000":{"name":"playwright","version":"1.17.1-beta-1638481933000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1-beta-1638481933000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9fe65beb93100744b5808b5d84cdf75fe980de56","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1-beta-1638481933000","_nodeVersion":"12.22.7","_npmVersion":"8.1.4","dist":{"integrity":"sha512-77yN92wUWzpuYt++R7R0HTosCpofFFW5XiELaduEcJn2U6CJ5N6ik+l7LUr+t6qo2kiuhB6PxxNJh3IycznDwQ==","shasum":"9d60c6ed2a9538bb9bca82873698d314efb32979","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1-beta-1638481933000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqUC8CRA9TVsSAnZWagAAwigP+wQYqCKfFM2csRm3S/dk\ni45GG65upKa9h2e/mIVCtqOjYw3qqN7cilII+YFrIDzeOkFXrhVGV5IaE0Fj\nQ8vHiDmB+wGwVGiCHh2ZcU5DtqwkmIkjVDt6PuCnGhaa7QfNVKwxpF+IsMaa\nejCZo74hV19CNAmGNz4sj+4Q1gdDv9Kul1E5brxdym/0GIChhly/dgc5NoCn\ngjKal5c5jS1IFp29hSalz7rr/t1H7qdFitjg27e8XPyhvRDm7LYEYbZ+pbTu\nivF/h8fUqdKZanzhg53rtJbAN42Q2mniNaxnO/adJJpqilschYzHZze9YzPZ\nYiiQGosPJKzxtjbVIAHpyoerfWGLT3g5fwzuEssWE9xKFvBrNiJ0yAXE5vJ9\nAyXZk01FUKvLh5jWdrotK/anAS2K8T0NQPjHS0f74krtebSizMWxjqmhmMD5\nngujw06jFSVMUbz0FF3bbSZ4znCmcCyHPyIHWskbvgqpfZa30dnmFI5wREpA\n94RtMu+Y6JDYsoJXe89WMTbtNBwMO5Hnb3gDuM2oMcTWZAfCfwnBo4ez/Dg0\nTUJ36ne9SGZQHWxHriLVwLpB2jyy4aDakfbxQq3lONqvjwpDvNMlzn9fbDzO\nNgwAs+hMvibJvnXcWK+YtmHghtcYloXLsSgY4bklr4+2NbAXpdh9Y/OM6ZE6\nNsRm\r\n=A8KA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+jMCzUslIEcaFZODREYK7t2lIHtO2jOj5ahggEu6/KAiEA5xOCKn7fdb/sQGjnc75MbgDJDY+mpUP2AWSadh3Rltg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1-beta-1638481933000_1638482107983_0.5260493396097037"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-3-2021":{"name":"playwright","version":"1.18.0-alpha-dec-3-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-3-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4736.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4736.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8afd0b7d6ab6ff61a97f31af6d6028e4b7a539d5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-3-2021","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-57xX2U+vCmp0GkBoQLOManZB6C4BCfYM4s2mXISvbi0JNFD38qcvPwIBFbXBXq4o0d0FRGiSLCfrI+8XeGpJrw==","shasum":"22ec3f163d9ef485c5208aacbdc724f29cde49e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-3-2021.tgz","fileCount":9,"unpackedSize":21560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqWNRCRA9TVsSAnZWagAAFG4QAJNOjakdHzBJRFLcJh8n\neVYJe7TxFWQIhKN/lY9kKg0ivw2ipVDj9tYpXcpSCYlBXbSAA/ktaIeJ6E0J\nhigSaAbEK0xMqOIggkPW+rVX14TurXQLCZLwdyJQEMDDBnEIqHAN/JMrzC6S\n9yFpxCYa/H32UsJlXJlH7jEXWnYbIGl/DgIyGQf0hrfegVYHCF/3dIuwasse\nFvWPQuVHP972L1W/sCaw+ItfyJ9AWuQb4Ci9EH6SYPNSdD8OEM0HhhKyb5sW\norpqq4gvzhfdSgAz0fF43nowGM0K90ld5UAD7hyRJK862uK83P646nrrPREm\nORhe5M52QUZrTGOSM+JUi9g1j0oNGUWcb4Q5AVJXwbzkZjN/btMuayI+nFlk\n1cjwCURUDAbCqSWsRltITkb56DD3IifZuQM6q6KAzLa8XIv5NpgJ4zOi+EJe\nDORkIkHbvGKi6BFi+prO51sfRhgEig5/Ghvk981EAF+VvMtdXWCEnix071if\nldcNxt9vEtVsrNCxJ2MC1xPbAdtEB3KcV5Jv35EQXIG0a7R9BZJrEtFb2WMQ\n2AWKTyRhHw53f/gY0W2sAlSkckt+2VHU2Q9yjTUtFmxLEWwk8Pmt5FnCCx4v\nNNFOYf6VqbRaqFqglQgLVBY1lgLTFs1HJ0sFJRQytbEUP2f0+NcZ9whgjY/S\ndJkA\r\n=XXP4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDftcq8mlFZ1Ogku0c6exzjG4y7ucGWBEfPFkTgQcYTngIgETD7SY6SqXT91TI0c5GFcs+BKfX0l4rhC0pQGqkvs64="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-3-2021_1638490961522_0.37410332354484477"},"_hasShrinkwrap":false},"1.17.1-beta-1638555823000":{"name":"playwright","version":"1.17.1-beta-1638555823000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1-beta-1638555823000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8e29c814df503ca45048daec47ba7f3504a2afc8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1-beta-1638555823000","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-M1cO5v0Y2tuwPLtHPhVldZKHhCR0EdYnTG6x0sXVpM/gVIIqYPhYHlzmBUpbIOy/1+jW9ZGwNL47hNXCMKZKYQ==","shasum":"1e2860a9f8694dfff462ed8022fb439e0822e6a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1-beta-1638555823000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqmGXCRA9TVsSAnZWagAAbUQQAI/hjF2tHXsgM/MROtWe\nnOqRWrqvdW03hb89qUa9sjRE15BUMeqGZAWyBwatelsBNjDVvRxtzxN84a3y\nZSZDG3dPou4Uwt9EAWMFDEMOE+63Lbwpxe6na3IcgiM84RlgZBDCMljNr5Y1\nne0ttdEMf4BMMKld+fn5xyVrwbJeltETCeDy8jQkLie5neitZ+ZuJV/MzpM3\nfDOKZkjl8TTTJKNEwiiubbPum0XcR/q2rnpN8TgRk1AXS69edePBC5yVsR6F\nvijZuxup5ymUmQsKDpmfBvmRO7dhWhnEmG7EpeHyW21N5iLq8BOraR1dxQOY\n5dcmMH2ueZkDgVmzBK/n3HvU94yj9H5ZoszCkp+E3/fHKIMBywxhCZluih51\nr5XWKJDvCQliORSnDE9M//TpvdK2/JGdP5jYX2hsGRjuJdZ9Pg0Xd6fUwfdF\nWojqR3F5+duZkuNtlf435X8D2mNlxsBTTzye6quO34q2Pjeq5knVvh2+an9q\nfXGNCCRJjMAmw/Fwkq0ZGvocYwzgtSZ7zcFTAurUp9oy3z59tiGAcS+PMYKV\n5Nkj3BLq1hUkqimR5/BTIqQ6SBCZU+4SjnPXolplmXWmvJBT8dCarDtiWhVS\nYTNXdgVS3EJWTuykMEyBfW19Cd2oNxEA9RO8J3VwKsBLStNH6lzBf6+SvZIl\naJYC\r\n=PsYP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCutMpJ6cNyZ2eHhtn7XSiOjftxjqy5E5sguRohzsjvtgIhANXZ6EIC1BwaNaEfaajDLwr7qxMRapyprne55m9RX1Mc"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1-beta-1638555823000_1638556055022_0.4319075581158791"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-4-2021":{"name":"playwright","version":"1.18.0-alpha-dec-4-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-4-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4736.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4736.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b7ba039436de4ec2b05ba7288543f88938db4ac2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-4-2021","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-YJRyGQIuFkzXOjfgangPRjXGiRFWLq/jMOimOyCQR4V5jsr3D2e/e6l6qnETuyssfEqNR7tYH63D9+XIxBfrng==","shasum":"888c044be94239d21bb4f5de58c4f52d16827aa6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-4-2021.tgz","fileCount":9,"unpackedSize":21560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqrSGCRA9TVsSAnZWagAAcWMQAI2e4GmP1bmKrAw0PmoJ\nk8CEk3khMCiRRUWr02yUG9gW2vXCt87K4rPZTGfCFiKzyuGrRLpJ1d+f42XT\nVRlok/LgN+6TBusJT/Wezz6bvb1OCZRCUOyKWQ/RIGYIzX70XEmyj/q1kODj\nRWv0a0umvd5VfOFLHZwVXfBVWPF1w3pN2Kcq/bK/+4mxSe3dsO2UMjoCs10V\nFMdhWeOseDsLazs7wW3WkhKBluFiPBO7BfXLVyt98DkRc6Y0JoMK6T1qVIF9\ntz+GytC49RyQNDtLDMGx5jfNsdEOPMyqKRCNy8AqKdX/Svgo20bkTMy56Urq\n8tvQ2FQZ9nqWKbfmUMmiEsLbS85oZFQ8uiKZut75D5GbAgGxuXAdn9M677H7\n2iVVwSEL3pu9bSRytHtJgPMP60Is0XHLdpCVf/kj00pLSvciLcVSji/2RGK4\nF0E8JUWugnBEGNHRRezbhi+1LF7ki32dvf1lDjCXMnbU+vLhszLVRXv5RcyI\nI6M5w6gan+Yn6GcgbPo3Dk58FzMl+ITKazP7XpcQLnRJvpcYGmlHmLvwkX/A\nzEgOBGzz2wnbNn0bf2uokvgB44i68618FsoLOZIwTPSfvZ+jjhjRVLisDaSn\n2fpEKLngXy7/ecQvKiZH9N+kQ8voZiLQ9iwVq8UgdjzKS9S5TQEiPEK6+O52\nOkMV\r\n=MZ0e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFOKRizmtlinYhnnluXuYMLyTIFKqV+ZiO4j/0DtmVtAIhAPQk0cMbL8CB2dPXmJQErnpufVD81PDfiM/ygB1z72bw"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-4-2021_1638577285962_0.667262811816246"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-5-2021":{"name":"playwright","version":"1.18.0-alpha-dec-5-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-5-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3a1201eb61fd9b24c6b99cccf628e8b744464291","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-5-2021","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-kWu6/xnR2kpgMdWUrJ7Xt7MZ2xKVFk3cQQKHimmflVHywGYYP52dpWY486kRj3QQh2vtztXwedkV38EBY8Lsvg==","shasum":"b06b00520206522b60959b6d7ba88de56c450436","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-5-2021.tgz","fileCount":9,"unpackedSize":21560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrAYrCRA9TVsSAnZWagAAGnAP/1ooTv72AlFoCIUQepup\nD+BXo4FsCxZhikSzP+KF7wwWSiArMo4yI7Q10IOZ4OohTvKG055cLH7pYiDC\nar/FhRMQocAUc2VGslH5H403lSaM4tiKhfQOXd/mbMs16zqsdXgeYmM8TAiB\nxI9n8mfC/SPw0QMo9Qq4rL49MUagC8Fbw3jTiYhX5yfqMmC8dYhOsi/Doi63\n0K7oMz/f+zvYzo+DIOcoZgxd6Fuccu6x9mf3to7Jh8CmQ4jxUgi6Y4nHMUSy\nbDHg7AiCKQaEdA0WLPSxuE0LJLK+SRo6vxX3/TjiaqOOgp+frDG1DHlmIQoH\n+LcAVi0kYBrvvq8Xmm7lS8Ft4kzUxpOgtfJkxYwHF+BLBT80EPxJh86EXj1F\nVwn/icnnrfuhgTCySI6BGS1s9skKbah33DBmlbpNwXPDqTL5B48yFXmhiJfV\nsACcuS/rRy0+3xTEt1+zodNlGIKRrj5vkYawshDIwbmDsJDufJ6bMJECR+gG\nOEmGjccgWtVxRv5SPcW0anZEykU+RdhS8vGMpyaotSjqmiG7nZxfdxNS5E29\njY59qbHYR1k8C3+ArYjv20pmw7Zc/TXZPd0sQgfB7HeXcCjQ5KW6HLmKhB7P\nxXPIs2jA4p1uvJzEjkRSELveL1d6HxjHCk9+IT1jmdB0I8HLFNTj8NUzqwb9\ncHQx\r\n=kOIg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9BVwuYkfIeBPAZabv/9gJQpglXlTSe0Ypy+sFMczA5wIhAIi9BuaQEZV7PqVkxMlZeoyW2Fnk5BWqLkS9PyGqKoh0"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-5-2021_1638663722995_0.5118945554345236"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-6-2021":{"name":"playwright","version":"1.18.0-alpha-dec-6-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-6-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3a1201eb61fd9b24c6b99cccf628e8b744464291","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-6-2021","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-CVGOHt9VELQ0c3t3+CnvjVzukflZXa0UjAhNiEzoF/8xc/8CwxoCq4yI5nzYzi7L+1yM44F67gQuRVi+WByfXQ==","shasum":"f5fde91e70c3588879a41f36648ed12ecb6d9246","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-6-2021.tgz","fileCount":9,"unpackedSize":21560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrVeeCRA9TVsSAnZWagAAzlgP+waSCkLGEIo47E99hReQ\nlMmPlXDup/vtSuTEW0Gpn1+lExzn7ugFcbshcilhf/YTA5arC32PAcGmWR8E\nc9b+Z9FC8SLwI6pi4RIkFf8cWSNFPKjThRuJl7cmHzrsQuSvycFCphKn8g/O\nqVsIcwf8ewLxvhJyzSoafNx2lRFzq7aYdWoQ48tVmHUL5FYtRgUrqmsG7hZc\nv4Qy/YdEfFu3K9rQNrqVUXFZI8p5HQbDdpp/4FQXh3qehJ09XdTPToIrzDJC\n8RDEMiRV2stZJP6VqyLYLotK0LmHKPeEJgFjIWlUKljadz/wbhbriKWns24l\nodCJVekAUMkpJAOUGnB/ayGDjmWgCeRM/fBz5BbsYXr+cZURzKqv47TrIjBw\nzx4jiWy/wym6td05UpGvLQa6D62E0BeKrcJdO4sL+7oOStyjFNAc7qf3ahAf\nPBB/Jr8X8eZDH3OKNIUbPDyirsKtXmpuDkLFFJR/1dF8zF3WmZIvDczArnkU\n83FxHRB9tTpd9anB7jkTOM5cWHW2Zl//sv34UeTmokTv0YZUKra6UBzAK8wD\nopr5XFfOB52EAQ5n5kvQKipzJL4lBkypFzUB+N4eqsV1CyXVHOwv5hzUea13\nOLvk7t7QPtUSDGLVF+zSpwJqHdDU9gE8eUpLUySWTF1cczR58VWoc7kC8pYj\nR901\r\n=QrHn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEcc23vA5vDbnA8dnyjfjbm0jRR6yLdpz3yn2U6lmgqzAiEApniOzuhhIuzGN4f7+v7CQdql8gklCz7Lhsr6cMBiKuw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-6-2021_1638750110509_0.2685801466223705"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-7-2021":{"name":"playwright","version":"1.18.0-alpha-dec-7-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-7-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ec74fa6a76285935bd898ea3c6e74277a671d205","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-7-2021","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-dfseprUfcYaPSvun2DTqxY3NNj08vfgIxbGbT2OaAuNhvzvaTxuRHjTiyj6vmMd6sPq+JozwFs0nGtIqj/G2Dw==","shasum":"b84b741e34e9fb4f47193a2104247340716b8ed8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-7-2021.tgz","fileCount":9,"unpackedSize":21560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrqkzCRA9TVsSAnZWagAAYWQP+wfaqIStFP+pKpqlSNFA\nkSAeFstbyEg/QLExWkXXgBEy9cL+tzaHdSEnRSL0f9q15IbQ1C275FJNBTBe\nYlpjkIwvnG/GtCvNv84LUYW5g4x/JUK533bHniM0l0lXs1n14kHYovBqAQ32\n7+FL3JeOOsdpL9GJifViPp73+Cv5BoIxC1Dg9xj7XetcbH2L2lMz4xGSKvxp\nJxttmoAwo+w+/vG/YT0dzlGZrN0tti0wJdIiV1nBNmU6D9yRrfOgIBonRimB\nk0QBBrayIoNBXh/REvBpnd3XbvDe8PeXnLWcxb1bnHu3l5drifqrlseX7Vpf\n+slcpbllAHw7zy2G9X5aVfGzrUU+PM3y8m3YE+2dLqyCoVXy6v5RN6brXEkq\n7GStGQEg1VmBzpcADeTmxWbB0axtxR8IdTgqHGTN+es0uAF/RkjJV/mqXjxN\nWqEAI83qxktdzg7xW6a59FUj5gurXuPAXRZYFBValpd/Mf61GmP0oJXirucR\nvgHbP0v9J4TDjEesjzf3iJFCmbr3gXWqHU9JTfhHiVUXM5jF/g1LQcwXKuLZ\nqCNtZph7GvReq9zVN+5ARprL+AKpFGP5+MApScA7c87pFPTjOAs5SRSaPMT/\nQAz6+UY7Xnby1Aa7a3m3diYfSEAgMSz7JjILpWXSxPqYK9M5GQ77ZZVpCaRr\nvuR0\r\n=2Ryi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFBezjHO+AXG6/WwKBKDC53wvCmtYW0MLCbOnldV4e/2AiAlyjRjekC2mdkOIraKcsSlGsfRd5iJPlYUSO5dV/D9qQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-7-2021_1638836531498_0.4817403116976269"},"_hasShrinkwrap":false},"1.18.0-alpha-1638917105000":{"name":"playwright","version":"1.18.0-alpha-1638917105000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1638917105000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"300a7f9b445618be7851f9946f53474341820d8a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1638917105000","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-ixAdho7Opwros6oW01UqDZpYDdZpMqV03VqTy805i6dgE6UogYZM6vlowEmbYhSqKJ6/PALUb2ClIAn2/w2NRA==","shasum":"935979b1dbc75f710c6847678b9b76ae2440ee68","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1638917105000.tgz","fileCount":9,"unpackedSize":21566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr+SZCRA9TVsSAnZWagAA9IkP/i0e/fJIq/urBjqhim0o\nBCgGQLKrKjRNtu0rS6EImHE0JvVQ9+AMIoCXRrhEp91Rwrtl52girrM8yFyX\nRLfBIJqYgNllb2P1tieUBPA/RPLj9GhkZ8njcO+j15xZ95g6RFnMmer85abh\nNx1jbIwYtNBH0yrcc4lyGT8U7JuA9Vcab6IyKWmj7ppmZFmLwgNUUZmRPBw1\nyF87UtVeTjzQIsVOklXt7CDJ2PXsYxGFChoTL42b7X0O4dFIl5kEvF0jHlKr\nl9d6s+FB+N4R4zQWpkCZVDTVqo0pWIHiDe7HEz0lxqxBb2ao9Vqi6Q88HzFf\n0ebq3iCg/rvilFKfYhpgIBrFzNuDfcjuM+gJxMN83uih/mIpx2jZiUgkfbzt\nY+0FAhYUHB48q/cSueCcImlBAi8Ph4kNA3inrc8BUYqSlHnN4h5lpQCoSmXg\nNpvss0NbUdB0GEu17SA8ogyWwDKQigj/iZ0V65TN3YJdA2hM6t65WCl3oWw/\n23FGE3BtcjDxyblCvtvnfy9uwuahlhJrzOrL6nJH3b9eq8RA7oX8cwIzzW9v\nPMfXYmsXWfs8V9aNtNfDI3spJdnfihkd4QvtRXSEB0dPj1mWfY4/RX3pWis7\nBwCBAzO4MlzL/zM+rZVKhlclOo3EJXlz9hiMjFgrnLDMbE78fM0WwJ0zKu1Z\nbepi\r\n=vWCq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSW4btjpwYFPaq6K7SQDrvPpgDXHkf/liIn6fke4mS+AiBlVzo1k0NAFllsNc7IvRCBsMXu8QNEP/XTVevTlJGy+w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1638917105000_1638917273614_0.7315869387201486"},"_hasShrinkwrap":false},"1.18.0-alpha-1638919727000":{"name":"playwright","version":"1.18.0-alpha-1638919727000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1638919727000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6ea607ce2af7090acd0d1b70fbb13edbe766aa9d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1638919727000","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-H1n5yk6rnHhn1J934vH4pfXYgATDABr+yoKpuPNSP7Gyr6cr/lI7cyAsDhIa4k5jsMbC4UweYZskMND3DrAdiw==","shasum":"8e732699567f5ac2f0b3b556b228a5716fa1a74d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1638919727000.tgz","fileCount":9,"unpackedSize":21566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr+7wCRA9TVsSAnZWagAAyzEP/2+bezrWNO1rFcLh5SVx\nlBf1OgF7Rjcfnh5TK+dSSowXPqfcy1Bk1GMF9N1Bd5EES/5Fco0wtBajV0D5\n32ISGKzOBFri0J9h1j3aKkHQ6gn3osuadb4GNrx7c6CfRHLSzUwAwfRHHi3u\nOtTT+k1hVKej/TEK8iHWLpAkbKd/xIM+XxrUlJoe0ck4uXFjGk9Q6Z4K+M2D\naao7n5fVdyTEXlI5X28QQd4HGhIC9wEXDAm3p8zRVs60zuFjKJt0z7BSmdja\nEhMUIb/ZpEJSiAeKXxa2TQXoQr4yCph3nwIME8TxtudbCgRpTJt4ZCX6V3I8\nxJRXAruijGve/tV7k7SExBRZSe6Y7Nd3ofR1O8V/GPqMmUkhoGqKgk6e09ir\nH/Nm7Qo+GN/ziBQ0R+3hdjk/I+T2+hfj2tUkE3ms8Tpz5nk+Dz/Kw2q98oqx\nIIN8zqFGX8FwIPsFeeIpJaBdwKhltB/SVtfOB1mW1UESjPPySLKkihNDuMXK\n5FG6cZEpRb/6FIBWCiYtx/znTDEVCUmwB6chkNaj8BJizUNStyZ3rP2HQxJG\nvUuoA/Fad1rCh5otOjLx3u4aeg+HSljX8FF8Aesvxf5ukOCgz/ufjOOOdQFd\nHIO2J4DQ4JB6UCP0v7s4eN1AsTwV38feikbexCsGHvWA2Id0ndg3/T7v8Sum\nF8Sx\r\n=9B3c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuwDzaUOjOswJbFpIGfjXRbjWolofi/W/YzDokMH0mbAIhAPS40C20+bAA3a5QifcTXoT8veqTyQPOtVo4Fhx+F2iM"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1638919727000_1638919920383_0.7560283627428492"},"_hasShrinkwrap":false},"1.18.0-alpha-1638922650000":{"name":"playwright","version":"1.18.0-alpha-1638922650000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1638922650000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"388918cf3dedefbab29004643984272be89e513a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1638922650000","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-TjieGAEyrB1vJDMVacI7SgISyS1Mr4MI1qrvtShMfnija8URX8fMdhW6a6w+2JkIHmASAofFBLlbNGbVVbRm6A==","shasum":"00f269b391744a69948158eadab4c18d54e9bfd0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1638922650000.tgz","fileCount":9,"unpackedSize":21566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr/puCRA9TVsSAnZWagAA9jYP/0LfJ9CMFzrU1jwdeT5j\n4xhGtdKEK+RFVgw/LPEey3y91E2fEhuwPzf4MXGkceNNastfAId+2YabESkT\nRVxBeBPVq09EqcBQMyRrBcaqxfO4JcpDnsOBZnbbqUJSXHlE9tRGPjvf9oKl\nH+ZUG2hgmafrVEZGgDvbXkGuZE0rm5MnezLKiPxXdWPsTav6vSmKSbMN700A\no87umFrLm1DaxYOjewSDJn9yCCw7sNHUI8+3t+hdNiHqs/G91dTOd3VAW9tv\nS5I1NfwZiWjVVkIDlhk6xNdNxb4fsGbQzwX3x6VAIQZtp8EpxPoKyXajs7FG\nq7mr3K++uSpDpn0P68XZJ3lerIPNaftYYHoFOczAA8NCANnRg6MnqDvagyTR\nswUUJhdL8L0GvEdQq+8y6GI9K+tk1UiHJx+grly8pneufG2f7Dxjf+WwPYL4\nK2CrVDzAzjQQxb7zJSnW7xBZZIIRd9F4kFk+CyPA71PzFGNq7c/aRGYnzN0G\nHfMzb3rxAhK0s1bGxVXLVB2bxQQ5iCRdhANViNuWIcpI6KRfzBIYFHT3GH1Z\n4c6ARmWa87rHF0n/VEMWlJMoVDYyA/K0GFF63wfVUd3JQ44UsxUN0Nrr1AqD\nM4qZVD8Tm7ZQDVeXtKQs7XLiDzGE3LL6KJtz4y0l0/vazaUj8Rfc8+2Kn+GM\no4db\r\n=Of05\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs2P/lBOejHpiFYtbR5jRxXdh/tbySYYQSIHiEY2DoDwIgJ2a+LupdwEPQ3Rl4iQNj4tw2rmRwsd21xQBAzFnPks4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1638922650000_1638922862797_0.48088036271113044"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-8-2021":{"name":"playwright","version":"1.18.0-alpha-dec-8-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-8-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"388918cf3dedefbab29004643984272be89e513a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-8-2021","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-sgafDLhkytKj6ZhRLAhVfRXOt1X1SrF0GuivHLENwCZjm5dmiDIAeM+FuJR+tVz1V96EfUlj7YGObZJo59y1Kg==","shasum":"1568c5fb03f42a8a821377cef7e88bc5f3878357","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-8-2021.tgz","fileCount":9,"unpackedSize":21560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr/qlCRA9TVsSAnZWagAAVz4P/At60UalJlgTGCwjMUjn\nS00HQfHvzK6DCW1luPYE97MrjLg80kNeu3NMFnBEwcLIsUjWSxJr/HIb1ZRv\nlAIS1CdDnOg7MenKbxWT7q71fC2fSoVh4JR+uzb/jmyP0Sx+2l7MLpJgrEwW\n1N88FMYIM15xVohgB6V66k19zXnv1fTxYndRJjlDIFIJMqADVwepL7huulx1\nY8B1b+ZfwC1eXNo78XuC+u/A6SHsn48Zym6q73+SIgtUVe0lNKlRm+++O68C\nBsqhy2ZZLlbVwkCsvoW6AgvEog5T7eZFyNJHsJfd6fTvEp82txzf9g5HXzO+\nm9AfBr8KNO+z2FTxSNTrpRbhcLf4IxZfEsSphCb1fsYyPY16jArtC/MsJ1WP\nOi8WxytedV/LAR1qY4+FLFN3WbUVpaT3n3OiVh1zfzxyldAS3oQV6fulSuKh\nZblMakJft4YCh8xoC2CY65AD56FEClasGVzipRgPyx+KHC4tH2hscIDvE2Iz\n84l8sI1fxlmqhblUIIY+TkUMgWhsvkz/nhnrOeglA5V1sE7Kyp86EpnOO3rD\nTaHSAQx/Rx1h3RLAwrSbc8o/PzWeNKx94yH0BMCBk5pT7u9thD+Cs4sK7PAI\n/Zneexlo2N9V3wPjgwkd7ENzKoPnFQQce7T7/brXRHgQYOQ0RtsU3fgRm4Td\nWmcc\r\n=7BcW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyrpe3FM1f7RB9Su2Y6nNkBmaXzm/MSOpgtn6K/CNtGQIgfdUG0skU8AgKJ246sXyu1MpiDR9A6s1WsfXGabmSfKU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-8-2021_1638922916854_0.6451250352984328"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-9-2021":{"name":"playwright","version":"1.18.0-alpha-dec-9-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-9-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a4e68dbac116b8e3b43d56740781fbbd01bc2295","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-9-2021","_nodeVersion":"12.22.7","_npmVersion":"8.2.0","dist":{"integrity":"sha512-8O4PHr4S4WiauXPENGF1uLuPWi4RrPVuqOP/4ZzxfhHsbRRV94CMUKYxJb6fPO0N855Ri7EWa0IkwZnK4iOd5g==","shasum":"6d0ff6c46eb14b01eaefa88a0bbdc7eb62a79e45","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-9-2021.tgz","fileCount":9,"unpackedSize":21560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsUweCRA9TVsSAnZWagAATcYP/iiCaqCYyGKz0DKdFIW9\nVTBZ1lRZtR0ycqyBPtUNabaakRooTe4RtIVSTXpOWJMT/yYZQuFy7tVCCnai\nUxG6rpUGw/8aKw9uk3tCTDCZqiRx7iudEvP7KiJIJ4N1TBAu0yxShiP/zJlC\n8Wq1mzu+Fdow41+tdJJ/250BCk3cl4wdqyMoIaPrXQ0sAVlNbSwLmjak0c53\nGfNBGr82zu57esgACBUH3QYlZZeSa89c75r5hfiuApjQxt34SWjPwN4S6CZb\nFv8QrbnZrfr5rSmc0mg/fSNUTrYwJpm4OnYkEVFfkcUGHHNW1Y4o59kCwIWI\nrkM5KpV/fVKE+4jY/g7Lll4kLcVdTuLMsy+X5ycATAyPK/8K+68wORxyDQmx\n6Gki0KVe3kvMqeeg4sNm3kY7FKqvzC5+DGPvCpecACUSgGyejk7Tn7QhzuVn\npr1YXwmj1+m/Ls5LMA4NehOjN/o5LOx1MEZ4URRKP2uJNIr/2R+xGToXR/u8\n5A2x3BdQaFaIPkHVG9aumn8p/RitUmKgEgNpRMfMkmSI7UC88QxOsE3npkgs\nrzxxhwDnFqJoaUzwcmE25bRSOfNAV6CcEMEsbLRVdDntasNGLWZNhvL95Z1J\naWFNEpOxs0v2e1eO4+BsJ6Zz7P3ivVKcPv4eyuEjT1lnBPLZWxXRCpWnjhBM\ngdzn\r\n=50R5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICdp81TEioYZ0HVvlRNMxD6F/ctdiHXlmE4q1+fQ944CAiEAwcdINJ4AlCa5NEc+sNUVk/L1vguRlqv8pncTKtzqo88="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-9-2021_1639009309943_0.40456030553315814"},"_hasShrinkwrap":false},"1.17.1-beta-1639090670000":{"name":"playwright","version":"1.17.1-beta-1639090670000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1-beta-1639090670000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"112fe3ae0d5395d807a60a1434d85f24d36cba09","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1-beta-1639090670000","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-JmlE4ooIiNxTWWt0exwiT46nNuJerf9+iXVoeN958Ss3kGMe+EQjjlqARsA0BXBDcrjz7mUyUp9LdxBsUSkzIg==","shasum":"07a3e47fa14e64e0c0e753f4377a1d975e4dab43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1-beta-1639090670000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsornCRA9TVsSAnZWagAAZgMP/39Y7H5s0HBRbq9Ydprj\nBp56t7uvqKfiFt8qg+AmAh9dPRsI6dqldRe77fk2fx1ev1xFV8JPBzl0cqlQ\nRPIWEax6UdgUilQYdpT5bOtj14KhfbLU5ZcBJbwtm4686b09uDDffrwlJN4D\ntVEx8PAPHSPuIqh+8omLWBua4QXkNRdPsxhBV9HHQ5rd/Yy5WJOUIelDUaor\nT7+TNpxoNT79P1GF/qWyGBl+SWPW/JOLA7m3CIj/+s6WHphfbQSKEk5DLoXV\n0K4Kh/D2K9u7heSGixahv+h7XAd5Lq6NsrcIE3j3uu15REi4x3BrcIUo6iyU\nGWVellO5Nkn6NGacv0p2U270Rk10fTJkFA1kxwEYXmkFveJLWoifOA6ovHBJ\nXbSUn0XFOVqDLTkzNEYetEyGkX5TypqkYIM78dasrPvbwE98CjG//B4nPqF4\ntcsEhXhxV5rm2pJgvPDFA9ryGqKitIRvKb2CqrhfG1TS0dwStzKxnYqGGz8G\nsUOUOajYTE5Jk/boL78/gvsYc3+FBmtF9Ck/1rnxNgfJc3yOiHQoVKZyFxt2\n/dARgD1Bo1f7LBkJJUKRccDFeC7ki2GtQ7tFivxPsNlbB23lNg5x3Js2GYOc\nRzJYWGOiMXTiNex2GxrArXrj0guh3wGcNoI4xehvTNeWWkL4NLImxc0Jiyr0\ncjql\r\n=tLcD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOzq4UADxYPPYf4IHaga9xsqNDJjlCDiI5RprFuVFpRAIhAO1DO0hIziK5uvmDcmUhFY3JmVSu9gy3o6TRaVzj06cP"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1-beta-1639090670000_1639090919107_0.3114890042768552"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-10-2021":{"name":"playwright","version":"1.18.0-alpha-dec-10-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-10-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4621f61c7d9a995e4d029ec2d84801761d3e0e6f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-10-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-jwvizQmzVXH3yHnE77qElhyl4GIeVgN2BIe6luytt2hlkMTSqEisKy6cmJ1l3piQMwynlOEJSZGq3GaJkcp3VQ==","shasum":"b8828b2d5b3d653b882f5e4b3c2d3b15b27d0f9f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-10-2021.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhsp2sCRA9TVsSAnZWagAAwHIQAJOBVbbykrWTRNSL8qEh\ngb0nNGixmNtXhPy68Q6Kl+VdbFpK3bjdghdjMbG76/poiX6h4OGIqfY2HHF0\nUHWIVbSDCCnS/DoZq6lreHAlJqech9it/Y24+5VDbw8X2GQvoP7Vq3gXpdMs\ndooQxy3feYe6FR9Rq1IgR4/qQazs8ULi7nTPsEsiKj1IREWOQZBiHqwvgAQA\nm2N8Y5TOUeSdCVcdEXkkZtcdvShg555xUf9W8nyMmh/MfhIS+Ljhr/KtR5YC\n2bAN2nAfMpnVNaP0zuYzDRzbhyu0buo78Ib8t2IbqxpMGTRwPSANjpG3/9jZ\nQnaUP3P1TwP+qqnIPM0QssTiK/iNz8JncHCYZIM7wFuVNEABSo7IqMzwSUm+\nFqMMARUv1Q6riyp7ODhFL2yCbF6FuG4cudgoxLuaKkRUnuBe/T3zNvASRh8H\njZRqq3I5+jxvCyWYBmMA65Y/gh7z6jZRJUYJqn0ce0msBnBwRoE3HTSydd6U\nnrGC8GFVHdykTulDUy8nfKARVZOp3IQsCl5ZTdvRAbtInRNoHQSDaKx+r2ov\nGjzjeCVOzAb2TrICYcsfP+G1r1k0RC00MkAu5XKqpz/TMUbmvyo8Xn2rHY/5\nN7M0+CkNWgOJZ5soA9RvLoDBVmpiVpdvPbE4wAfHHlOC1Dr91MMcQj93Vd+8\nLTvx\r\n=ft59\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHssAdQ5EI/yLJcpzjDqGWnGQETQ1xXtlJ3RTX/Ou935AiAH7Xs13god0rHVR1jqwPSxP601pX7wAKAjEjViWftrDw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-10-2021_1639095724304_0.6459284063612205"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-11-2021":{"name":"playwright","version":"1.18.0-alpha-dec-11-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-11-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aaa8b07770baf40ff9711e45050e6887578b8285","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-11-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-+TANKi6Avc+DhYLqHHUr2yIBf+JZNLmIzm+fk2QUeIv40uIoAiOAlL9fdzYoBpylgG5bujGjx3t8fWtW6qbqhw==","shasum":"ae53e162a19d2eed027f17ec3668eec8e5d4e56d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-11-2021.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhs+8lCRA9TVsSAnZWagAAR2wQAJcj+9Ct4qidtsbh2YB0\noY+ViSOlAoq2zMZ2InC7EyLyFJSRnbo6le2ChwxJa/4mRiiItgss9CLfImU6\nbC5H4+787f41c5YLcP33tem05NJ+kTL6m1W8Bfs2wRyacEG3cXOdFteGe5he\nlclZN/tZkGeyG0xjOUVn+0TnFPfESFBwkibOWyms5FZBJ1zYDAWZi/wInjhb\nl9lQfVcqG8KnJ7QtoTDVV1IHbWNx+FSi5n9nt4ehCECvvTJXc+pTYhH/MQf0\nFJqmjfnc/7oQ3ve36fXOBXC1Z10VKCYmpppL0wLFB/1I5NcBRUj+6kA61/wJ\ncApMIk0ID7EyqXof5o3xMz8Om2jW8ZHHcBgKXIUargYV1WRKGJ/Ik46bEjYE\nU8Kah6VAKhOqBMPgGxZNCc82QOzAUBy1CCLxbkCh8RbrVSReYp8uIKSmxXrV\nLtcS1idhc3enIU2tWagXUco3L+yJTpiRDSzdrNA6TOuyGMIlRjV/mi2z8z3F\nF0axihs8dciaAXVFAzubHYG4+W0UPY3YgEx1MouWOTXbgemxJM8KjlTl5mOy\nzsY/QZxY0/cafm/CNg82YdHO/fwqABVA1Isoci62CYuBdgoz1c3FneZSRza3\nBMjEsxqt1plxpjBxlK6Ul4N9WaDeM3XPRyrSNEsYk0Xv8aPFLhr8aSj4KEDB\nR3jN\r\n=ddGS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDk6ntYOCM/qoPFgdaAjrGiq1eem5imyzZU7MYflO7a2gIgKtLkZecF7vE3JAMlhnrWSoIdaNk9YdGdh6IUqJqaU4A="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-11-2021_1639182117397_0.13044274441039572"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-12-2021":{"name":"playwright","version":"1.18.0-alpha-dec-12-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-12-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aaa8b07770baf40ff9711e45050e6887578b8285","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-12-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-qkS0eJ7uGwDm7bPPqnhqcmgCnkS1b1JsMX15A2wnzxt6FBjyHe4a1uPbtJvK+NGK8cbR3ZuOxkIUKzAQ1egeOQ==","shasum":"9a76ae70b45cd480f66171cd35d7623b5de43517","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-12-2021.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtUCtCRA9TVsSAnZWagAAbOIP/0YAp90en0oC3UeENCFD\nkOjbvC/xLQT8ptokswssZtrr5ZKqPP8ml4Ri/u3FY3uI4jJW2dFwWfifPMBD\nu1v42CtvmZ/q2i4kADcVadE45OcDeAvZmJet0w5aWjQEfnj0Pn4b4kIVLXoQ\n73Dpa9HQB1tUTezqgM9GFCLLtAFEMUQAsRUH/F2UyFBRJr34lTMHXfYh/Y6U\nyDiAPTgj25ErbEORbFLTR8AKEJ7xHDvu/8Rpn4fw6FUnIawGuBbR8JGfaybL\n8TYv7+1/LYRW4nGdaVjCtEsNDBXACAwmuz8T44n9OmpXsrUB30G12SHEAqJT\nfVxT2S3N7hqUAWuvzuHysGuJ4oS9BB+XvW6V1ocfOkHyaS47iLHcMhrj89hu\nMqf6RHBhsflwHoZKMBTuJWeOkMlIwrEl+n84u0FCc29POoxb/q6kvjzFtI2l\nv4eQUy3c4RcSp+qHNQhEDZI6KBB/Z2xCsMFw/x6A+/MAS1p4BN6Y5P0e71Ex\neOGGk4NbRgzWROR7cfpnHDA6/gsvr27M95Zui0sgN2bmA9BHEQdZPYMm+mMx\nn/NgO83A3469H+y51YP5B9PVXkmV4RXXwV9M/uOjG3lFYU5tfimMzIN+OUcR\ntUcC3evtp5ajlaNxdMI7z16F3vSii0sw/OPnWB6gNNbac/Q3brAkirrELV/x\nM3MA\r\n=2EI9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4IIDcvkUJ6PbkZTrZ6vT2h2RFlSmia7ouC5PVATvDJAIhAJ0wlN6TcM4TpMihStu6wUtt/fALsBYEis3yDY/ZdTLU"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-12-2021_1639268524943_0.7464707917937545"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-13-2021":{"name":"playwright","version":"1.18.0-alpha-dec-13-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-13-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6521a6f3ab4d142f50632ca71d06493e1e4150f6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-13-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-iNtRWTiIvOA0R0A3v0+ESAwFsqslvm7iHzvLf8z1Y9r79eSeZu33dvezXZvr3PiaUxejmFbdbdr1H16gsNTFZA==","shasum":"25662414d8195abdf2a4a0b122820ffe9c7f849a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-13-2021.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtpIcCRA9TVsSAnZWagAAuoAP/15GAkF/f89ksh7UxPeY\n1zIqvMATK+uZdKt/WyY4gcd7CzuDupEApNC3yAU7d8x0lctvw7qoCQ5tPt+U\nymMIEX71dNGcdSDW+kIvBKlaLteUGxnCWUZN/CcvKOpo4kq36pU49sXw4egi\nlAhls5PwqkWFPtP9Y/IzVc6qkRXUq/DUWSE9WYM2xs1bV3AyWC1xdvtwVJoe\nz164DzTTbmq1swjccpB9/BKvxOcqzR8sMuZOe9oxc8vdyWqSR0GF806yYAgJ\n3NzV66Q+1l4G4bHof6n+TaMzD8OB8kWFmUIHdf3D6xBq2luHUbw2Tqq7cAUG\ngsbKCfZkiXK4NqwPpANQleWS5J+EFxNwnI+tLxBfVP7tpA0TeMgVS2M3mt8D\nCHKpVF2sOna7pYnSCuptRauC8v9vyL/BqvDyy8BN3IQ0zMoZeWWXJ0nJ4PZy\n+EOKUXtGhIkXGVCfcTND1EHra4k9E4tphRCoWOzJpEsAczvUvLXbuFtRzDnp\nF3lxVz0aaQiuNI4jHJxbPrx1Fe1CVhMxBTWY+LXrJqdQJB5DxToV4c8flSNX\nBkUh7ZNPb2VOTMF+cWO4pS2bTRFTSe5tJ+e5FVgYuGR8l753Bj7h6atXpUA3\nn91B49sIA9KtP5g0axcYyIctAyg74o8W/eb+RK+/8jBP3DnaIYsw6GjzKcAm\nnSf3\r\n=On3F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDc6LdIdgmD1kMcXaSNht22UhWwiDhh6Scw9JsGs5RLTAiBt6hfVV54k/LA0AI7VLLlpdIE6l+KNETpixg5y5QOX0A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-13-2021_1639354908106_0.11456867752276212"},"_hasShrinkwrap":false},"1.18.0-alpha-1639421763000":{"name":"playwright","version":"1.18.0-alpha-1639421763000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1639421763000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c27491cd4de625a4453dc698c1b4fbfb20df7986","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1639421763000","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-9hh0GK6lehBV+enspiaFgDf30Dqi4jhXRCJU1/992lAA0JSxnWdEmDek6O5LP9/wYL1OpxhkhWLlcyXQfgBwiA==","shasum":"ec51f8f150a9cc32fa6dd57a2496fce9555f9b35","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1639421763000.tgz","fileCount":9,"unpackedSize":21566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJht6NyCRA9TVsSAnZWagAAOHoP/3jf1tTa4xlPjnCmuwoa\nzOt+Ds4boBMjszkzIfn185+VNq2cIoCmW/HMjNiUb60zGa+Jx+rRzZbpenpL\nOUBxjzXOszvWWM4Cjkp6DRbx8CIDi4QDT3lxI3nbc7pd0RYfkW7MNMuuQrqK\nPDhbpWRBSZjFjN7JXXl6gQoHd5obud9XWxiPEkIyUuqnFP8nsalmSzr++lHF\nEUJUzWTi1CSzmyJnOqPL5jt4CLb9AsryqERTGZRlPPBQHXOir9aAykvfQ3gw\nebitvCmRJqBFhKkvQq2g0IQw8VbT6Ph6gJDcV3u2X63jgNXLCo0uCqRVB+Qp\nLNwhkkjXFmhz4Djn3bXLlyfJtOlG9GnQodmddwgJEYgJ9VIyQjulRhT4upaq\nmfKbsDOiA0JK7LZxJedP1FiYo/YUtoKY72L/M0mFt7kX5AFeu9cAsCWCogYd\nLqlb93niaf8nIMqneVQy2gH/Ne0Njf8u6TCKKaoWeZm2abW0Bd9FxIMGpgF5\nzh9IzkNv/XVfunQ6lOR+6YLYgHxWF71ZyyWdbsA6D5kG+1TteCtphzYh2wH+\n8YO8Wq0/90fhfRgAtlc4148v+T0Hvwvu2XRdHNMcaDB//Wspd18tZM40i7MD\n2jYWbNLSvq1v1+5cmTSElP8bVspIzprSz24mv0SC1v8OB6HEx1e0eg801yFQ\nmIs4\r\n=4zqc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAV5bpaGAVXwCEtez3P3hqu6hXoY/nu/KJSC8AwwImdZAiEApcOPFN7pOhfTz/lF24sCRQg9drYTYWuUB7tHJfxRoQE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1639421763000_1639424882311_0.9199030213052983"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-14-2021":{"name":"playwright","version":"1.18.0-alpha-dec-14-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-14-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d8abb18c57664c1c04bc295565d259b7542950ed","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-14-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-renIuejAANklEkevGXVFgBS8ZVa5FMa/DobFGOw+NAS55htCD7nvGkCM0TiMMuH0PcNpOoOTgt2h0rfuKHtkJw==","shasum":"61e2cf836c7458b187e16dc02175168096318c35","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-14-2021.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJht+OECRA9TVsSAnZWagAAbS0P+gPoNEWg+pyWZ3Nl6lNP\nJi18Rz6mT8XvRnlygKTCGF6ne1Ibdv87nB5wIyzB3EaXeHI/BPQmxIbLwlL9\nORyXhf2sP0tsNo+AeKhc47eYIOneC0QS6bBzVmE43wNI5oauiIkP1p34j0mC\nm3Z8doZb0FCs93dwY1pUwzyyiaRUIyaAJ11psu65Ne+2IdZE8naNCyOOI5+S\n0QXJXivKyiVmnyuJptd7hsEzZ3Z3T21kQmV4FLNDzIf4sjo1irFDCLx6DKva\nquVXSk/4J8onE+hHNbN+s5dZNk1pQFsLRUUPFztzyZT07JeWdZ8OYmX+RQK4\nHAjO8E9gRnAR9+4mFXTRSrz4X2lJ+lnvjOaMFh6BRsWhZKPUGELtFipQ6NYn\nBnGm53U+kLkIHSqDguyagiBEaj3rDdwRyTpBiX6UL5babDAUSVSjjYwruH+T\nCDqoWViEuIul3pgpZEQqiHRFOGInxm6KQ86xnOwIM1d1e3PSnbP+/cfHFw8l\n1x/iEE5czm4lXSU38BaWlXIiabQZf8pcphpcZ67Ku8PfYPI13cTcBiESHnSW\ntoQZOpLF398t64/JrAK7r4xePtifPzxn8dmZVoqwHdgOD8q3IZ9E4QmKoawW\nRj57FOf8l7M0k1Rvf8lEwxgU2LbCCoGFrB+sA0JjWH0g1yVBj+6sOBplvy0Z\nG39U\r\n=HHYM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZ0+G41tVUPmwBrgrCfWc3wP5l1wGreZFp/QEJeSbMGQIhAMud5IrbZvyoQ2v4Wfb6ypXCEPY3LcebgvmSlJfbm2tS"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-14-2021_1639441284204_0.7213271977794631"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-15-2021":{"name":"playwright","version":"1.18.0-alpha-dec-15-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-15-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4744.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4744.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"04e82ce71cceda36a202a0ca9ffa3e38c7c5c096","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-15-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-j+ECBj0ugSXngve63gSf0Cbpy8ypxplwmXRKSgZTTgBpt1H5GmM4d3tCBQ7pRLIG17JrM51xU1/Hqo9Ma6MQpg==","shasum":"f423874b0adc6491ac16c90e9f1a67b529e4d6af","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-15-2021.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuTUSCRA9TVsSAnZWagAAwA8P/0VKNceEO0jmpaRct06o\noJzBPGw/l9MaPWCsq2GN8ZyE/o3Sc5ZQWNINHKe8slwH/TGi9KtQjrGWgont\nXu016AZ9OgxfSNzg733kXWXXHFr9NXiEocbcONBZgG+8RDHnP0ux35SVyZn0\nKRMEDganPSRPnb+W+Spzkl0B5Y5dGYbzFaL7so+CJQfSafLnVE3uMX5303j0\nAfWQDSA6QXRL60qai390bEuSEVatcQZIQZnc2NvoN4qPoS4fuhIDVyTU1E4Z\nb2X5B6mKHVwFWsgATQWNCX2EdXTJmJ+2bR0dhXHZgOrvGUu+dfK5qYx7eJaC\nufSPa2fcQs2A5RZNBQmZq11mqNy6Ooj/YlXzs90u8WyT+COJ2x9mrKKCodWH\nTt9Cg70+U5QHxc1bGXmJ2Ztnxu1JOoJ+UnLAodPIv4+4yjAjMhkuf/A1/zSc\n00ey9+ik9Z+XvMLt/wxquWI0IzIJmzOeIQi+gAvldzXLeNRgXT1nOa+86svJ\nodqMM5KV/ZG192w/uF4U8KQWSJKSWWw1Qo1yX5rcuK+OgpUs3mn7P4iYrFdG\ngrRanDT/s0AZR4Ed3zQD+qU5FbEnhhZS4TVDkhnN3wOw9FrJCt6tdrMWN9cy\nXEBy5IgloXOaxUZEUnmhY7RGvejiP4eCkWz0hSqXyM15k3C2tAWPlOMwoLdY\nD0Eg\r\n=nWZp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeZfq8mNM9rmLNcM+vIJDKm4p515ZMEyl4NXpldSQuqQIgYy27y0cBjA+iRBJLPBobe3OzwOW4jlpVKPDjcQ4rfJc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-15-2021_1639527698664_0.8853940245800742"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-16-2021":{"name":"playwright","version":"1.18.0-alpha-dec-16-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-16-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4763.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4763.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"192071d5bc2c494be9bb839ea26f06356568ad93","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-16-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-TDowdUCRREQv4Pjn8HGrCho3r+m6pF2AXeR2XEl/fNpBO/hSh/1efvOe4Wy3u2v3NRLWu857kuQhZGSA1AGTqg==","shasum":"8d8cee213ba83d011520411421ac227f8693945d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-16-2021.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuoZ9CRA9TVsSAnZWagAAwJIQAJxdmSMvZEVVlJkk6qhn\nURpEPXmex/Lg8G6lhhScjQBztfX/dIu4W1cQBril2JnMcYZYTxma8I95yRGl\napZhbVu3wk8Cfb39b/Qn7o+85JkerR3/FrlP5dPX6+2rkY2cUes2N/SlWHC2\najyWGhl3h4VsP5ljcNnpSMZCqfQGlbHbbosnzDitf3HJppbFk1AwwSjc+T2h\nfOviPmmBoX+wKS7oTHzgUj9SnMrCK8LYXqFw8EI7EXOagVPrTP8XqUCA7i11\na8ijXrq8ii+pyllrztD6pVAQcgRgYjjJT9azInMVjGRIN43E71jmqMxAMhTC\n4KS7GB0xWpioa3oVcculnCLSDRShUQAyhgFHQ0COWEI0c5Bv/T2VuseZJpKw\nUH1tagfBRJn9hoUpIGJzEKWmFKDmMjjUXu4aGwvmACkVh/HPXCN2+eUPmGPt\nJclJux6r+xH9YnHRT25HV7OLCERXyDTTku0VeXmRcWRlqaDwRfbToMebZ5wD\n3Z4xQyGhu7OVyKpt9mMEHvfbY+JXRcKN0h/TpVocnpLo1OkJ3KbTQKCiODbQ\nCX0+qTWJkTQynPv/w6hPT18k5hxTfte7e+kQwCD8kEmvzvZANpQGpwPrKcst\n3pHHB8ES7OvOzoHV4t5ukjFnOEWGoFN4caFRZvPLFQld9x558l+RvG+qcH5o\nN1CP\r\n=jC/N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJIFCRUUJdH6yroYPpQvtZiqZjZDEN3Warcrw0+ckPEQIgUDY1M1HNJKSgjYUIRZpfNVYiRBHT/H0Nnhbt7ICUVEs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-16-2021_1639614077466_0.22554101670834625"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-17-2021":{"name":"playwright","version":"1.18.0-alpha-dec-17-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-17-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4763.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4763.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"773ebe04c6d7120b546100a88610616808c7750c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-17-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-eFQMuwPXUOTsVvgyWex6a4x+fCQO4rhnHrARZaC9lYCKVd8LHYbdaNdW6KiSlfqPCeGBx9Vk8VqPAZYpDscTEg==","shasum":"45402881f4880bc552125e41a9a220069024803d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-17-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhu9kGCRA9TVsSAnZWagAADBMP/icpvwipMHJ8IxD7CS3H\n8YV3RhEzJqamOKYcBVEUKTTcPqYZkRTtx80G/U3NG7MD2n9UDpmtOsCDJak+\n9JjRJx1sB3SwFF3c2uITw1FDRgXVN+8J3AhAaoP8jc/dR2ckcR7LcqkHwqIX\ntLblgHUkpFv/AD7mEDAfC5eFmn9X7IImgVB2G6b/7ISjvgAO/XTrwe7yd/lV\nfH8QW1KuXTw357SQw1H1CaeTcHnBz2WjvW1pUsnTfg0HNySoXTIF16oETns/\nmICtby0DPX0IuQ2Uqz88cBaG6UdCegx5yk92fmlUTB5Baco2bCDifLSswgR5\nkFECBNVMWK0jhHCWdpG48zrqVjEVWbE+UHq32PFyavN057+s6UNPIi8m/JZQ\nUCP+9vjv0AogaG8KVFtIyb+EBlldvlm7+fQqld/b5J2ApVBMDe7byNosVoE+\nMiaNyyYSWFZyMoCozdzhC0+o8eCOKbVSNzYwwm+8zDCMB/1e8GStHhzkAmlF\ngRGNJfnCg5SQ+ib+oLwjKlPbOwhey/sc5Vfeq3benukfxQuqdCPu2XUT98MN\nFMm+q/gXpEHoV6ePVzkMdLx6gin4ha1oGsswXQL6oYtlyrqgXb4/kD+sPTZB\nk8/Hj620A/sBnjmpRYNCLK5SFSY0k8WrHyhYdk8rg4h9n15xPh+OmHBuvB3G\n267b\r\n=Vru3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtjV1dueEc8VZWoSY2b2BUqwVOMS1pXqJPpH38ZrGlSAIgL0HO/HnS0bkedtHgUn8DepgYAG/z9SxHvCJ1AZC5T7Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-17-2021_1639700742020_0.8459791918881163"},"_hasShrinkwrap":false},"1.18.0-alpha-1639767047000":{"name":"playwright","version":"1.18.0-alpha-1639767047000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1639767047000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4763.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4763.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1dd8325c9a4e62dd56615a9b7f8c86e76fd5fe14","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1639767047000","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-clBDurxEViR6cZyLfDoCV5xBOljIHg3ksCak+6DWlRrv+FFGD6EZOGWKVMIV0IlQcXNxFJfRka7+WX6ntf2r7A==","shasum":"aa95e0e68ab8a3fa0fc1536cf9d629673f850654","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1639767047000.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvN1aCRA9TVsSAnZWagAAGfYP+gN86Cit9wjvqYJs0hFT\nzHng2+bCPMscURVWPaWuItmTAmiX4M2Fti5+/u/nUa2d05hREOpujrqlKNSl\nB8I2+DxjVLvDK2w3BHYxzQ3emZk10mFAtrrq6SfcjBukHHfKGNZa/g040z9s\nSqfm0aevdmf0cL2ka3ITx3jP36iH2t+r8Sr1+lSZiw6+3v0PLuqg970rEpdA\nXRwEQaJ/SS6holTGi/GKiK1zHgMjhC+Egi/4kNAqN6kiZHL0CB4mGF9QSi8B\naCOcGMamHGW7OvGOrUg9L2CVpFFVbXNsMom5Y2RQe6rVvzao1laEjTREtrQz\nmsw3RrewfMKB43OlYrJMJ7KNaryoHoH2LvgWBr+aDYzZVh05RgPfKUGP0+9j\nFE8PYLMM4b93c/j/2e2vLTTelWtOWG0gG0b0miBvUbi2dbJW3jnr3qiW7684\nDKYCWQ8bTcZ8wG7taKvDOIQOlirUmde91N4CD3NUg4/3ztEG7/fIWCmh53ie\nQQxNJBmf3LwZxES5iH6vhw2J5j7V70crzrDWbJouROatzskMbnNjr/p4YxKj\nMwyFIf3nGqLC26smbVo4lLcMCEXMqP5lE59SH2+/IvNdJhW6K2o9w9kNfOw9\nqvNnc91F81L/KGxPUMeq14VAlf/MTPvB9LreUqcIXT/VUeg8hbKwYIddOHJk\nCape\r\n=ZL4q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVUbZYIrpYl13mzX8qCm8ku0ez9Z3ENFbIHdjNmjrvlgIhANDgG0OP4P5bfNth+aPp8l8q/F2pFnLF319wAsX6jKkf"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1639767047000_1639767386085_0.7224689728216942"},"_hasShrinkwrap":false},"1.18.0-alpha-1639770748000":{"name":"playwright","version":"1.18.0-alpha-1639770748000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1639770748000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4763.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4763.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eb9c8a8f065a7d0008f076e946886dc8e0b0a793","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1639770748000","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ZGcuKcLy2Z15UIM7FNgZFYIMyNt5j78g1X7VRAeVWmZxKhjrnuBwSmsLAIyR5i0RfDC/rwVGPW3VjPoBfFdf2g==","shasum":"d90bb43a4fd1c3cca0c7c032f4cca92af32401db","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1639770748000.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvO2yCRA9TVsSAnZWagAALsgP/RV6sDtHMnqIyUY/5nFu\n3RVU8+RizZxqGVsZSmz/YmeOoTshN/7czJraw1JB+0Q0kt8lQ2jePWx2Bl4W\nwuPFvFldoCjBU4T1geFAnJYw8TEdlY06cwH/csFeHpq2itzffQg1X8lhPw1Q\nQ9xueETmoo9yKZXVyhUlWOPQWOZoOPSwvspk0wwERgcW3DTSA4YXg3zYg0Y0\nQuT4Lpr9oPcXCe2nhWt23Le5X7b0n1h+lfgWSXCL3wC9l5ROScaJCP8YQASB\nGPQ5Cg1GAV2FWoRu4xreSUTLBe6iEma7EcUYNhgkxeCjtDflOOAzjIhXH2qo\nojPg0dL8NOKhDCuiEMWWrVYgLPsMtNV3AE01GFX/4nDTXP2ofinwDmSi3v9g\nOfi8Ui/NcXJE7AnSsrLqMLToZJEMxFFa++CbhXwTrBAalX3CsUX9En6jSa6M\nasxksSyQtvQuaRzxzq0vMhlGHOBDu7IVGNQHdErnxAKzkm03KO/MRjMU396D\nwz3GgJEcSIbaS8HuBlx3QTtXQeZi1rT4AqNz28tJHc1ifKn+t8zCPzknLmiS\nE3HNO7J/cHW2v8mX4oSSUSermw3Sjze0ruPGaQqiaOeF/pujMDXvjkfbO+U5\nw+L5FBaA7yIc5FuugSllsmxPcu0DfxrQ7pxVCwsNirmzjk52RQUYqqbe+4Bj\nA+E7\r\n=YiF+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCA4ERHpTs+o5RA/agIDyRbvV+7Nab90/xFlZrb2frgtgIgVljOeW1RpK7jEoKJTyMXVyqb8I4t6Ke9558jrgflNz0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1639770748000_1639771570462_0.3247301779620293"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-18-2021":{"name":"playwright","version":"1.18.0-alpha-dec-18-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-18-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4763.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4763.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8f98074fc8cdce1c21cabba035448e0197955e21","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-18-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-hX+MCstTyvndGYj2G6XtYlG9haar//40Jd2OfnYmhS9Tu8li5G1pbIgT6LwGXr+wqyk12sP5EhQvfKP4K10o6Q==","shasum":"f44b12331f7024d2894cb21e4da37d04fe4bdd62","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-18-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvSmKCRA9TVsSAnZWagAAUzQQAJPg+tXnpnlNAYOFmsIE\nul8W1MiLVFwqAhDXDMhV8qaSNiNFf5/iMP131JuSESlIFgWHFrgiy8xW3k+D\nlrbJladBGNuCmY2AH64atjnBHkNWy/bg6crD9E0vmu3JHahVEKm4KW1kzf/v\nBBVWxS+IbVgPS3P0XSXgjaVvnmSVOmai+MP42AeihDK5fJufk28h1d6a52OX\nN0q63MHoZPh6jdZCfon5+Pr90bBPqVgnAgc15Fx4x/U9C66EFF+HmZE2TCX0\naaSq2pLCYu7Hwxbn0kpSOzG0SFvVGIChB+PvLuuY98gz95etjSjsgRNKLrGH\n4wCrieNry4bBJDzNSsNEBte9/c3wEbI+JhHqRJXFO7EhAUb4Osc2YAymHyDj\nBonptuqYAtWrExGSD3CGQPJ5P/rVqr7LneEJ/WvKdlNGvG4GAmYCMomOMxtO\nONi6Ti291WQEyWv9ErY2j2s9f+vXcvu4sL9ZhyAAz7H5NSB3vihYN+jm2ADe\n2Uf26vydTJ7ASvm3cjWtVLXpuS0R5VtAs016F+d076rrWTSmzm0Hu3LXgYz2\nBH4jsw3EQ2X59WHr3iwfRiAQdrI7npfphIPYAZwlvj9prmpr7K3nl0BmCXjB\noWVovTrnUhZkA2XK7qazwwe+GrJ9xEL8EXlCxlXkoQlV5n8FDsfe8r8US/Lw\nTe8D\r\n=FIDD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBdoLojZ4RpR/wXbg7FYN7+O6DXzGg3pM9UpQv4Tg3t8AiAcnGFoV/acie27Ui8ilE3uEeDL68FrgdRoFGmya5yecQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-18-2021_1639786890008_0.7640988775595041"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-19-2021":{"name":"playwright","version":"1.18.0-alpha-dec-19-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-19-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4771.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4771.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"16ae0af0fd2932efc9cc0e12e86a1b209be62da7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-19-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-uHLgKnZGiXyILBiceSBD4SCt0HZIiquuPsJSsMc2sRpGKnfQMTgug2nZLezco7W4ALshFGtAKzudMNTdNPzwvA==","shasum":"cc367f45ee319d6031b667acaa49f11edafc6611","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-19-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvnsWCRA9TVsSAnZWagAA1+EQAKJQz7f84MG4DeDmtFRP\nkmH1ugWWSBeElyNBSxRDQ9d8tw8KN51rlYH6M78frh3LVmniNmgWE5Df8lwF\nE4YoTwMduEaBC/ZMd6FoyviqUTulaXypOeWdv5wXb21/KIAGltelg+z7UZm1\nEvJcgKNiO3YR2Tz86kaqPsMtV0mmiH0I5sbhqpE2mtNR/Z10xD7xdXcGTI0O\nAvwWTuwtCcY29pPMdQMtFdRSzWcTZuOb83bPJYti18CDA2l2WDqC2Ia1REQQ\nhVlKgDiV9DppqG7nzXLLofJq+nB2dNU9MaCMGqAYpC5ZaiuCN/ernO/PXY0I\nz8eTn33Q6wJMH4cP/yQDr22U6Rs7BATKbqxIUslvmayzujdJDYtW0lhEyLJe\nTCpuiUCTwN47H3L3Lid/uVdoS+P05DX1IntVbQ9WWN2vEbNY1Ek+ifX+XogB\nDV+/UMKWXr0jXKYzzdOwoOGesN9oc4MLDg29O23e3R6lMnd/uHVW3LscvWqX\nE/y1+YVaEurd7+sOBNkHvVtGSnbc4Fj5/ZDDxjiQwldKiDdv5D88SecoM+zl\nQfVwzUrh/LjAJI/ibA3Shycj4ALFX1oxnoYDLBfzVi1+W9ru6wweOT2hOMNN\nOxZej1h0JqRfpitlsAx5Mg92hlzxyBKfJG2WVeFIiTIinrs6z6TRfujvkbEj\nr6Pm\r\n=X60w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkfjY3v/6y6J8NffNvoBQiz+6HxqzzUjj4KBBPnB98awIhAPPTLmoAYWUtJLrd//eQHAgYowyBS9k6adVDKsj8fZbG"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-19-2021_1639873301955_0.3089780845958985"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-20-2021":{"name":"playwright","version":"1.18.0-alpha-dec-20-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-20-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4771.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4771.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"16ae0af0fd2932efc9cc0e12e86a1b209be62da7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-20-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-E0mEHL1vHWh0suKN3Xn0Un85e38QNKB44iSKOy5j9EjCLvKlnrHnKyDKewARM/gsvI71/zU845upZGoXE+wXAA==","shasum":"adc8d8704ae369a66484b888316cefd0bcc37017","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-20-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhv8yuCRA9TVsSAnZWagAAwOoP/j86vzWy1zfbqSg1HmR4\nCcSkIadjPsze0kgo98GaDNywYcM12/EDgLXI//Si45G6Eu4a9xspS7FxGjHW\nurWR0BLNtA2GSg2oukXOHPgxEUU0OMrcLVWI8E0rqG+EJniViEXH9oZRiLZa\n61i07Y8tZpc3fgwhFraoMb6L8PTBYuwAzUCtrUmLxHf7J0DN6eTLhqJUH2eY\nxnhO29Y/B5FNQnsZPsxVbg/cUbflx1S5UerdkKk/RrgsxhsHP2wXztHNdGaV\nhaFjU4P52MLwJJMspXbBHCfkt0VpRIhH57dEI9Cgp08RKAbMuSOIEHg3QGb0\n3bFgFxt97JdhId7otxvAeFKMTl1mEk67tfz71fTjmnCDhKoWlA1FudEQ7buK\nJJDbU4o/iNi/Svttgc3dY5f1PZTj3fFsZWRApJp+5mumQDGw4qWYzSrd9zHa\nsOm46MQJk73rtTcdzcyIqTi0j+ulblumtgDZCeKjjfNnDr+Df4tXG2oVBGei\nrg1860QngmzU2ezXX8molBeM5fPWB+zt/beEWEt/jh0enLmKspPVU5m+TctF\njs5ZWXbVBu/YIdfi5Lz7VsGi/rc5nlWeVKdYUQuWLOPNVbynsJfqSqIEbirN\n/IzC9HCzO2XPkwVEFjyAbOvxRA6GBrwTRL8kn//WBcYCDfAZKo/dBpkpBgC+\n8LLs\r\n=0x5d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNDnCapAr/g66Tm9eFFttWwTfS6Ep+MMXkRge/Kfx/iAIgAMTNS6LuZNFNHAZryFgN+bOg92np096+B9+MaGMAbWM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-20-2021_1639959726701_0.23829844986454773"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-21-2021":{"name":"playwright","version":"1.18.0-alpha-dec-21-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-21-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4771.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4771.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ea1948fabba00ff176a195f2f452bd1f598b27e2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-21-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-fkVHdZUXYzp6ZSPDfgvwxiIwD04iv5nRti0PrpSI3PWL/KBeSAVMbULCpQ3mIhyfGMdsozEjAGdLl0f3+vA5XQ==","shasum":"d5dfc3c9fef343f6bc2c32da6caa25110362c873","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-21-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwR4gCRA9TVsSAnZWagAArJYP/RQ8NnyW4fd5BVU0f1CA\nk2f1SJ7rcpcHLUeq61bM5ht7CZ9RRld0+pSJVuC8gaLPHleEIu7ASjLgR7Wk\noQGpPERPLcD8IkNVcrFaaaifmKfmWR+xx/PRpTORnVLMwqJxqnkdtDmDoO4l\npErYmBkmcvsf0G6AvYxw8dnYGiu7gS0CI6Opv9epWMoszpEi96t40yHZx/AQ\n3igMj+4dtZ5EmURR8OyQ94EmodwRsrINHmmo6f0WqhWFa1iwdB8pQiMDv5zf\n2QmpIWTQs2BNNWlCBBh+J+FjZOM5b9UwJiLyZQxnjLJbU6mpwEkR8fEuR+kx\nFvHVITqEJt1rcLhUH/Q1zey8Y5pVH8LQ2rmlSbk91wiWjCqtjlP1VcP//eTe\ncblzi3Bzn8XpA4hMA+K56HpxIxO5u1KpcsU2W2ZIeB0Q1t/Qv6jt2vrvUi32\nH/b/FtQrXe7snzLlephWTeHq9n3/q1CvJWfOfJoaWbAwFBQIWNqFszAaNIMz\nC7PyeCpahFtPnf8qr1kSAKqYrZfTCwhRG3ANSyN/P0YjshJ1EoPLk8tBL9w8\npm8wO6znjLgAU7Ay0ETihEdmHNRxrjJJn3x8/wUiGZqUbBUqYZPk/LXThoW2\njvr342fskmSot000C4bsIVGJjAD8BnH0oOvL8zB7pGT6ecKaS2IgCxmfU7i2\nYr9v\r\n=blYq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCas5ILkftrqP+4QiCyNZ44VpnzyZfer9cRlQxqzaR/egIhAIiaUIsi2mpThR0PtttajYattFVtOYgCpZHNO9WctK5b"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-21-2021_1640046111890_0.9493618588738113"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-22-2021":{"name":"playwright","version":"1.18.0-alpha-dec-22-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-22-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4771.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4771.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9294947862b9d39555898a5e396739d280a473d1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-22-2021","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-IX2tiQWkiK3ypK4DzwhYuGuebYFbndgib5HFkNnPVlBecB3yAHOBOBFfEnWKD4n6TwfgKmFLP7Aq/xyeH7tEIA==","shasum":"2098bc9660c2ced956b250305b147a01fe44320c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-22-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwm+YCRA9TVsSAnZWagAAvG0QAJyy7kvlnCH7zOLtA117\n7FrolJWkbjeU6sMP3asdY6Y7c3WYCo6XM89ogi/EAeb+68rag1HWY3jmnVlT\n6KFVx9amAfShCYL9fO8DLyu+q+pLQtgIW0FxNM7Ru+5tupY7Sq/9n247HXog\nrHWo4DzsLBg8lQ7VJYqxjvL+GBIk5wP8AsJiq1XRbd45ZoP/xZYcYag3hKKh\nWvxgZQZyjqzeWQRoUzqSwMX+w5/Ab+VrYIXb3NYwMMpNV9Q2vo8KkTdJ7fci\nLyENgNIpJYHRxYKrGbhA1d4ZmSR5QeaQOTppKNocQZzK/lCntdrix0l67Zka\nV9GC/XIxQGqTBqvGIskDzifFt4+W31RBLnirLkxyOQVDRCfIsf00f7ovrUFg\ncnf27IzC5UzQzcqa6FPlL82MdJQvW3xotyig3TFJFzNvSSpHU7N7Uj+i07yS\ns3+HfoAvX4lsf9Zhgsc6B8DpVFiQyaaCL0sIn0FnKTqbEZpVfckLMcVIcDRH\nvt3UaYc+0ka8lpzP0nJjJjr+G4OTYs/8xfhKkfKH17TJVAR4YLEYGZ47t8Ke\nvNT/ydmHmRJ2VJ7IbiiQjgAmM+V/HzlUJAiMPiWIPoTQQ9LHoIlVJIFPhT2h\nZwSzU5Gxzkl5+Qn9ipw6sXjRt5vTjiKUZiYhZJcB/zA4dLzv+nRrYK6hrvho\n8L4s\r\n=n8Om\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSgDJ/XTRsdu/NcDjUCpgt70NsqDtWrGRPvBbBZKKsrAiB9Uu05WikC7UwLFgVvacL7ftlUys8OSlmHqEcaxleBvg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-22-2021_1640132504223_0.04732050158084422"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-23-2021":{"name":"playwright","version":"1.18.0-alpha-dec-23-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-23-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4777.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4777.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a21dcf018441f4c376ce82496a2e3a9d635568bd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-23-2021","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-aaBkIvaQ5g4tt2JJsv/vKYVKjceoJZOtijtsjX555dTP4P0+G0qDE/kPKJD5fwfUTE5ZR5oqakvl2VSg80WWLA==","shasum":"11e23ea53d764f671a09c14936285b4ee2522f12","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-23-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhw8EMCRA9TVsSAnZWagAAhu4P/ik3U31YhMWzKYUiQG3H\n+msccIN5ybQwKmTG7EkTG2Obzo6bpf17+y9kp2AR5JnKCSmyv5iM4iw9vMYj\nPMjECKAwdmy8nvWfxu7gLnEGdqcbAOINH303DCqkn16Vsx0KdFtoPWNTZdF7\nKrt+DRkz74FrWm3GoISwExVg/w1WkwzGIP2++6yxFKWDoNxeYAEQFmNdhUwc\nwTCLN3z6TgOVvr11RrCRN4IqqzpALopVUFgJQxFd/+/pRTp6LO52cr89Qy64\nvJe+fVsRNW9zpRCSP/W/aaf917PQcLxM9be9DAy9fY6/nkoFFpZT5hTvCvCs\njx8q8BzbD2uaBrqEM64aBnt1a9Fq9qxofDFB5PtuZl0k2+QTwMHXN1vVjAsh\nUDN3W5vvg7Q+krarR6MJFnff4e3eu78qZi0a96Xz2cxQzu9DwuC6SB2LNlFL\nZwSSUghrJ5LSmTaeVPiqYljgQz16FZiW7U7nPvURmTJVp+B4Lqw3vZGLDFHN\nfmDjuaQ9CxznoU4J4g8iv5c1J9MeIdyGyUzJhphy1kdhFB1PNskjgzeWWAUd\n6iqowbNYYsMn0gEk17y7C3LDiMIL9AYCba/0TlPcodxFrFibg8HLhZdwdutk\nY4xFeOLGnwTjfq7l5Ny5VEvs2u55qfar+Z3colbFu/jfJIKkmPyCgM9rblP2\n1U40\r\n=9fca\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpKBVjWIEXR8SpnHFnh4u0RlR1ttK2rwamN71UCI/3VAiA4dpoYbKHk+Gh1mDR0VAAHd/0vFfNlKa1NZsg7DDyXcw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-23-2021_1640218892618_0.20615935313292688"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-24-2021":{"name":"playwright","version":"1.18.0-alpha-dec-24-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-24-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4777.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4777.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dbac5a5298503b18755ffb93a67da23df1f6b8db","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-24-2021","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-MKJv+drDszxvnNBtj28QH5wiUobmGaX6NMIefZmkpl2mfCrqirs3rIl3dum+ltBlNuH36STUqD5oQF7wCfTc1Q==","shasum":"8529b8127cc44bb31feafa05e11538fd726600a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-24-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxRKYCRA9TVsSAnZWagAAFksP/0iwMkFdO21qrcz5XoSd\nPF42hflKGQLJzuRdPHcMzPKLWtZzCdr/RneiCK/U8b29ue6/hOBlBlPNzHxS\npEJ5m43pmszYpdhV+su6tuYNuOKI5GQPpftpbM4TAgbxz4lhgXd0ebJtC2qn\nLiNTpLq5dL4zaVN2i708I0Tjm1WiIeIpH3d6otMA/BLeIxAANQ0VLrkndtfQ\nAEpkHQ/+i9F9iegZH6EwjszcHFYHsi70KPVfjhQOhBvC0GK4N9rOZnkQRjmh\nW/xuOpBciYLvDUWmxPdtGHHB5rUGvqIzYLK7Fb9n/jjdLt3YETfzVIhVZKW3\n/qC+aFRBHMPFIuc+CpTb4WropLHIEin9Qov2ZHSh+1NpvDcz086sFEoYldlI\n7jzVQqYNGxyf1sh+ljkqGDiVTHgHsiwF5Ez/BN5fsFVesvlSmFiaDF2MOOol\nRCLy3goGivJCPC6Qm51JyvScV8YfXR1QdlLSE8wuR4VUOMGciN+GOGGlPaid\nVAh3aKsJqFSSfZMP4HMSa/19UB3ynoMEm97PGXoQ+BzAZpe1we0IA5cZzIv1\nUazZOxMBpDelbJB8EGmjPRUtDUzyyK0gI5q2CzqVCgAv59VoHg7mQuam2KVR\nYuhz5sTAx4XpqW2txOrADikR+CMFB15UDSXYJ8qoD7Gl13DjfpbfssBgm11e\n/+Sk\r\n=kXNe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAci3x7w4qekXEnRnX9QurWylkl5cBOVgD0NF1yq7fdDAiAA7iByMtePbFfDMmTzBB07pIBkM5RSOVF6nAma4rjVeg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-24-2021_1640305304814_0.4279821746344141"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-25-2021":{"name":"playwright","version":"1.18.0-alpha-dec-25-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-25-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4777.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4777.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6358c9813ddc8567638378ebedb0a903e69f1149","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-25-2021","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-QeFj5H63ohP5ljKzeAQcJi4fGsyITyZtVtpUJShYhE07Y9vPVklGbLAwmKGX/v8gIfdpcYIdxVitIBjk13S6bQ==","shasum":"574fc6f66e008f685c7f0de717dba352cd821f27","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-25-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxmQjCRA9TVsSAnZWagAA9w4P/1RNZMsAGncUW9Ib+jhQ\nfrIck/2OkCHW3pLYbivOKoIpWJFzdctg+Oj0rObf3u5Z5GvSs3kpGqR/gG3Q\nTuFJ/Hgc46WXb7nS+Q7+LZMw11AZK+Sbd+qT3ypWVbYXB7ZlUQZhAuz8ouRv\nJDK4sGLHcaOmJE+EfIL90zGlS8/pLyXx3sAvxFismbXBmonSNHeCPfDF3+rC\n8/gLxXz5IzPao6/ikIm1KP5ZV94e+7gZD6o+xR0O/6Soq/5jESBfq3doZ1lC\n/avaaialkqCt23S+uvqxYa/e6H/9VTDkyBF4frKwNnmgXz3mA1OiF4MfaNWF\n95+38b71nHTjBHqw+3RPnvdJC2jMp4oNzyqBlp6gfb7600jVa6WJck9t8nAo\n8oVGwnAYz6j78OucQ7tzW3GVNm/C2D08bw4dzMVLUvVDXdSEAudv+udYYQ25\nf93uboiWG1bDiqA8j9+eBRwGlcVQnHKX7r2dziagc9U3blTbzKsyM5GCaPOG\n6+Pf5ehBH++uYOShg6jn5jKLA8ztZaOODwKea25e4mGIXMpcfPFJowwtUr5h\ny4Es2609voCfmqXfbzqxD5cvK5Tc9R9TWlZjezKtBZaP8QDTcK2Y6BZj66uP\ngbeJ9N8FF5fcVqnoRJgaO7Y3BFLHTGM1nUExR1l98MrkCQmNS6ybPDSKVlsi\nM78j\r\n=TaCb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5vSD8xHx5IsMBimTQ8EddJJDGXvF3jarJlrCIpvTHXAiAWyUubPuZg7H3MjazvoK58gr4Tx/ZSM9ABrKUBIUMAZg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-25-2021_1640391715510_0.3870173985094363"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-26-2021":{"name":"playwright","version":"1.18.0-alpha-dec-26-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-26-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4777.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4777.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6358c9813ddc8567638378ebedb0a903e69f1149","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-26-2021","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-sm9geg1U54CL+jhcUE2VIDrL5N3xoqCCpOYTWCgFHH3LHZKHDHIrRk2GR49qATAlF00jXLSWsvShaGmuvNlJug==","shasum":"7290f26e79cb44800cdb56431f2536e83c3a58a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-26-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhx7WlCRA9TVsSAnZWagAA2OUP/2N8aFIg6BWEfGQVvp0r\nY7nnpg59m8dqabF974AJWxICfHhj6MreZLMST9KFK9JfsnIML8IW3cx7Z4Zc\nCOdSgRpS3qnG4FAw864j+mOnqQQbqgfpH+Ms6af95Pku7zcaVbsHpfKCGBJi\n0wtMhL4Pe7ITqi1fN9v9X/UUypDYzD2GymIH/mYGlqvT5oeGrYNQwtbAE4SL\nM5m48+LkbKkpVSARK6VMkigiU8Ti7o3KPlkrUTJeM67sFnZ9wP0+5OPYKCuR\nnigHz/eIxX3HN0ssAiMbJ7d10ronYVQECggdzROi41l8VFRGg0frR91HFcet\nBQp8KHBI2VbC3RZWsYJlw4ahzgHznJ5fTOlfqZTg/tea8tPySWGhuCxpgRL+\nrSTbyudCdsRXWhMhFaFLg3vrSAv3faKr62zXtnxIsY630YprJyMhNsSosdsJ\njbKw+KVevV+pp/UN3f4oiMmF7gLR8tuGMmHrbeZ4M5UKuqDbsUP1R5AUl+B2\n1euzfefiYMvD4NfWPXhg/2dEUBIerGRJ7u05g5Lsbu2kPfknwsS0RtzkgAPW\nzddZQHxBdEuDXR8Zlp/PcK/npTj7TXBtVeWPuKD3mZ/zhj+rrxZa8oA5odzg\nlT/nu+9fL5Kk2irqzbzLaxgBwAjIXz37dcBV74OK1IDlVRD8EbGUsBfVFiqF\nlfOM\r\n=Hki8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBcIPmqT/vN/6Q/NN5l7b4NENqijGpOQRhSUDof/Uy4wIgF2QRh18cpmNDpmqPiJhmY8gyJvvbHv5/RNn0XbyjSp0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-26-2021_1640478117065_0.9589798604164774"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-27-2021":{"name":"playwright","version":"1.18.0-alpha-dec-27-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-27-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4777.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4777.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6358c9813ddc8567638378ebedb0a903e69f1149","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-27-2021","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-fkvu6bYOSbzDeLystkqOGQPIwxJGuw9BO4AQe6ol8NNUzJMLm9Gl7/zhkaUvHAyp9i04xIrQVWlb0xERIuQDGA==","shasum":"4732cd527ce4efa34539ff90fe8c67efa13de3c6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-27-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyQiiCRA9TVsSAnZWagAAY5EP/3MZ0FoxLAlM5tQPPkQ+\nP6m97oGf2IbUiZNNbkVN3d482eYwGHOSkbeBDOCqd75jpGE42XEQG1lqqqj6\nEQdUawJKtymSf5Ky4I8KkPXnEJHVlvJxbgmFbsTrGViQfHhGhwmu76hnigW0\nAtQAEyalynq7FNDcRLVBGq8vZ1nqR1UMZbKvcArKK7olf+Q01pp4Zhi+53JF\nyQ60FeCKc2ehxDC9atnnmcOhKlHr470rzdwHBydiNObL4Ylo9It+GlZIlf8a\nYGUmr499fcT3uX+DMHoV3XhuQp+P2F+kIyddHZfPl2ZVOYWL2cgPfEp8u5C1\n7XSufTaFwraWiOBuybsU5CJ+/WFRiDRdc5J9wRzcQgGjZzg71LsQPXF8BZvB\nxTEFDILl2hiAMjsQkl4dog5BmCfU1ho7TzrQ3Mq5ISUKvm8z739SziFtDet8\n8fGX9r22UHfIbIm8d0uuHlXOY0kDySdvyVFavwV4xieo+jEUbCVpwSeXkYHW\nOKY8abITxv0bZz6cBaJ7bsnMJtu1P0MIYysN3pILfwi3h2vCqL25HKMZte8x\nZ7cd8cYAWMcvpZnsrolfW6QP27ED5OZA1KfNrjFYa6XW+oMbA2Q+p0IbUMgm\npEt1SdQ9PN+jFYwGF+XO2YJEyBQqeL7T+Z85AEKx2InrhyonoXAMPBSgpVr8\numsT\r\n=q3P6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3EThnxSlADD/+LuiMK1Nq0ql+SGbQiFzeEUPWPo4ZmgIgf6udbC7QAlYKdgigEz67VsiFs/K9LPlSqY+jf6Caoag="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-27-2021_1640564897880_0.7560908030107918"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-28-2021":{"name":"playwright","version":"1.18.0-alpha-dec-28-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-28-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4785.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4785.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"db47b3e3925dd3f0c0f376173aab6832f05d80e1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-28-2021","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-rPzYmjdCNcuj62ZCVkbXee22eQB1BEhqaHIi8C4QLWMUR926iC1IaooS4VgDvHMQbUZKbIijNuAa/KJfRHCF6A==","shasum":"c6d500b415b744f9582669f22f627931fd91edfe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-28-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyliICRA9TVsSAnZWagAA0LYP/1IuWq0mCAh5tdtPGSlY\ngtfaRalZIxQ4h8gaAWRqpfSUaxJL6D1IZS+BzTklWXciyZWqalsJE+JrFfxl\nVtdRSpYwU5WNkr3HywSIu9/PYJnHjwU8ylbPYGGYGCi4re00S3v0608uKzhS\nKSe5yUr59Kuf8LzIOWaaS5flLlM73udijpkqZ4dvE6nOxXLF0o9H2Quct2DX\nLN0JLMSYm6UqWu60JHcfo0oLq/A3t8g5N+OMu/0QaS6Qlcb4lE3LJf06UN6T\nVxxlMqZ7UoTqYCkWIjBK206jTMC46goqkcV/ZCMKpGtGfI0Su6QnIRk0F6Yi\ndnQzNbjaqx+ORhzhE63txqBP5FHQjg4nfg+JO7xUsY4JcFo5CegYttVNdoHf\nCo71OunC3s3BxRwzPFWKkvRGFs1d1y/q92PgibEVbo43qaOUE3AXN3yPKT6O\novaJ4PlDpEpAjOBbTQgUhJ78DuOJ8nn7GpcqgQp/SORoyLTYUoK3ZxI5naA2\nPIq4s/y853wZdjIY81Ds8e4jbt9HCQ8esFwAhk4aicClwEOFXH5ko8/88oHX\nqexhBiTMi6BFwdZVvJWp2igjj66xUIFWfNBCd7sjL3v1r0R4jG8vrNNEmARf\nwLoEZWcqTw2tESmpvdk3FvJlYfsQYnQXrbJxt91Q8lmgRtNw/3tTI2kmAxxf\noH6V\r\n=388Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEL/uWCOXRi2j6zaZkhifdBiNxhrua+/x6/qDV9lhAb0AiEArx1qKIxv+0+HX3Z/klycNZMHU+MVA5C3CweldFrcWZU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-28-2021_1640650888619_0.834283819185315"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-29-2021":{"name":"playwright","version":"1.18.0-alpha-dec-29-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-29-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4785.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4785.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fba29aa31942e81ebf7c70ef53eda97aeab24017","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-29-2021","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-CAMrqXbWivcq47ppXLZzPgLcQRWmrYdWl41aFoxST7eoBuwoqF8wxADZ5Xo9ii5Ib9s1BQGVkbLcHxEoQYn14A==","shasum":"92601939aade0ba098429f25464ebebf42e2570b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-29-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhy6ojCRA9TVsSAnZWagAASVwP/j2Aqv4O04rDoPbNw26N\n0Ou/qa3jDog64HOW+ZenrhppWz+8CF8Z2GxXvEzSf/uOqLnoFFTL7ylFesqi\ngTKLNbgViaT02/sOTogATRXQOvZopLpKosMYbU4t8k+nBYPmhWuM9kZphLwx\nVMXnhNnqOEKJlzCDmxW/c8V8akMfssBcRu5u16zaKbZj0Vi43CG2juz1yCN2\n9sbn/QuvD8IkCjP1bYWo8HDf1EEmxmj+ytn+vYwG1VA69AHAnQ/re0o3JNEz\nMQaDvQhC2htlCFoj4FKsa8jijSILXn01H291oxp9LamCWcp6PBL6eVZuPtVU\n8tN+XiAWMcl7xcB1aehzW3GkfRs9TUtmE0bE4EZLaP4pzPJNTeLMkHPUsSnS\nHCxC7fgJN7UqzgWgJUY6+c4v5HvoaFtbfecdq1jIK16UBi0PmnFQuP5IiSBW\nZJyWXwhsDPqrp6wBTjhvPMhsJjpgx+NitreQqXSOIeCMa60wGTZT5hyZyE8z\nBN3sZlCGO/cJtM4YFt2ck3KyRSxwSNk48GOuPKVsDPlC0X4Xzwq6z4wkKTr5\nzY1poFgS/9fKjo7ZJj2nLAYoHNlsXkXfti/UROriehzcQcsJxOZ41e8VyUeC\nEo/QN6qi1OLhRSvgWwBF9Ie92x05AeKagcCjsJYiTzFPjB5tJrAOpWQ0H3OQ\nOi1l\r\n=KWo7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhlL1ZNn3AoS8ZEMVP/PtKeeUk5L3gWKLbyZI4b8w/NAiEAwTCX3F3Zg1dmWLPY52JIMU3vBHGPUW+hCnq0EnobXNk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-29-2021_1640737315444_0.4450865121357701"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-30-2021":{"name":"playwright","version":"1.18.0-alpha-dec-30-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-30-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4785.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4785.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fba29aa31942e81ebf7c70ef53eda97aeab24017","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-30-2021","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-UPDnPhxZ9AzbDrdpsBe+FmzWiLsu3iJ9hJshq7PAdL9oIZVlKbPMmN6uGRCrxBRVmAa2aPor2MVoZB5P57dfZQ==","shasum":"36df2b2849fff13771844b507a1e83508dee7722","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-30-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzPuTCRA9TVsSAnZWagAA9LEP/jcTpqUq8zK+++eFkvV4\n5BFp8zH7hOvwAU8hAveTYYKlJdvnl27QvF1Zi0SFiWTquobWGvBSYNCP8u/p\nRxnn1jeZhzH8EGu3I3/RqnnsUrDGvOUOV2BfboIBCD1dxj+M12n6Hj6W0n66\ndJg3aPube8Av+12o2UHkXYNs6AiGZPNQrKK8V93wPjvprRItd6ZunqGPwNCa\njP8i3ZHUZ1qUUKj0KQOolwFtrwUT+a2013ifESNc50wr9TUR4pUpi0zutKIe\nxCeIu2fO3BAdcg/fThtPUfG4cG2/10Q417VlgONFwY/QfIKiHUC/97VVKXk3\n4s8jkiqd1XT6MePcVm2fIEvB5Wl5kKGIFifuFbhN4k5vQkQ3NQcDY3SPk5dn\nx34N4v+N7vkgVhLdgy7bFE9/mWGr9KVgeYD5k19jJ8qP30IdqN5tfgXSiQG5\nv0qK6G1/4YgV+yQiwDKWEDMA12+nSnvqd0HsJbgLNYEU7gXDBhQcaxtGobDv\n00NKFL74Xfhet36WzdripLmWEFYgzSqi7ZNQ+pW1k564GBjc/fkST72szXMq\naqaxQ/C5Ku0edpfrhNpzU8GyCXbV4nxxH9TK5shcGydixdZmVWsceYehNHZ4\naKdlyaLzwe2nOL1JzcsvBNsN2hLmLXA28FpgoqxdicX8YgOtctmCtsdaSkgx\nM3F8\r\n=bFaD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn160QJtN4iebAmifepMlUtUVw/hygroYJrKEI26ZjOwIhAKzlPUtwFiLCvRyx/201vz2ygc9I1h+8ZvN7bnHCSMA2"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-30-2021_1640823699199_0.2645273079530437"},"_hasShrinkwrap":false},"1.18.0-alpha-dec-31-2021":{"name":"playwright","version":"1.18.0-alpha-dec-31-2021","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-dec-31-2021"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4785.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4785.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a090907305549859857f4fae3d63d74db94df793","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-dec-31-2021","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-00AKAsbA4MyUHL366aRTOyrR6SI6rFRpBHP/CAB398YDB+aQGZkE0HHCiZ37+Qr6BESpX/3Z/F6ecWc6urzDkg==","shasum":"224859b3a31c76eec76b4ba5acd1f91998ae215a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-dec-31-2021.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzk0nCRA9TVsSAnZWagAACZQQAJ4WdPmfBN9zxwrnGsFd\n4+0UoaAvHQIiNzHlM5uoYCASY6PCEUDVBgky4x3LAfcZQc7sR/9DHmR9U2nL\n6YJmVRGWBodjw31nryO0o7BxAfF0eq/miGUx10p80PHL0hVZXTJuQkH9oiRP\nmeReKLW7edB4yKsn64Y8P8vw9ISpazbMS2wcVNKdafQkC7kaz3EoTo4MuZg8\nFnIq2Fc/zKVVxtWhSpIsVXWLburToLv0ZPwB01M8NMjRHvrmCiTyNwC4dS7V\niLR3Lv+3YQIcHgQPlX8k2PNB8DrrfmpgUfkwuka2o7Oy5RS3SChyRbCs3NXA\nN1YYf1uw9I+kIRvcxuQhGkBoJTRBLY+CavrTWwQ9Hc8gJWKRt2rAM2sXhB7D\nM/i9LCwE3IJxcBTUxpQ1DL5uL+GswqswVrm4NLa5hdvf6+6SV3t/XiNH31C+\nepBf9o6oXqMKZbwJ9/SFPgzpjllXawz8svrs3QJtlCT2/Jn+Wmzu48mC0BUc\nJBRIX+uxxRtffdcrEpKnkKBBYL3ImLyhCHRkIg+Mwv17XoLz5oFqxURrGpV6\nIhU54tyMyvBAXsV8zXluTQot/vSplpHBYZE+nC45sDEOKdU8DT3xzikzW7HR\naUTC2te6qPhgwey6YtBhKHHga+t36UT4oju/MqcPLnleAqGnh59v++CBhBkS\nxmZV\r\n=Bm1+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFakj6Wpu4du+aTBbKcqHD4LbS+QWg2fzczTF5yHOgSwAiBGVogToUddci4cc1BmNeVSK4bvSLjjiLJUIlo4SVgR/Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-dec-31-2021_1640910119809_0.8428062531328753"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-1-2022":{"name":"playwright","version":"1.18.0-alpha-jan-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4785.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4785.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"11e5b9bb9bd79d3c2c835d55866e1fd119ae255e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-1-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ohj3YROtC0CDU/DzNzOgtbv2GJemfH0+EI52fTaduAa7CcJ/U/ix9Zr2uolezJkqCMLjYQsAE4HLQB7IjyuAbQ==","shasum":"7d4e5b5f7759ee5f1961b4d4b38c7fcea12ff319","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-1-2022.tgz","fileCount":9,"unpackedSize":21556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhz56NCRA9TVsSAnZWagAAIsQP/i3zGvUCWkq0/7TriXi5\njUi+ym542GI3DuLnhXIf44h66n9uU+4xIqpiLAlTPD+Wdr2fM7IHqbI/9gke\n+B8VlqLDq9dU5xSj916h64tYGHpjy/CzOGJMN1d2EGLb2+M4JJLEPPFIdjpF\nv+YeZN643u1JGZMDr2Xw1jITY4U5f9kb1r+O5m8yirp2+CdtqghA1Vzr5UiQ\nQ/PgxslvONdH9bh1GQ4pqkY01iV69y5cKajO2lnGX/Jr575qp1eosXkGxJj1\nDtkyv42O3LRduP6nZeW1NgWVeVsg7X12ErVPpFqbALKiNEDxCWbENyz6k5tB\ndK+K94bxvQzV6y2UVgWVUaz1z9jyaG7L6pBncFr3+uyTdw6rHiVS81cE6F/h\ntGAT0gaxyX8vC5qbQZgFXDauS8Bm/Ys/tXw2JbG5w7Hui2gboE73MXrRALe0\nE1jN6XZrZOiJqZEpEQ2teF0EusvURpZxLT6dq53gpV9lVXjuG/F/NTl35j3f\nPfQpm3Y1W3BRYhLhRcYxfPJ3adUOe7MD9FcxXeYtFOH/mvqQkaoxtStZyWNf\nW1w5ZbWKo7YwyPRSPhfblhbpE52WQd4G1hffc/g5DZ7In0iWDw9fg2wgEFvz\nf8v6pqhDIyRYNauf9E0EmGakC1XGg8m/JNWZ3QxYeihCv8bxDEsnhRCmESjs\nBvNy\r\n=gi4H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDr01w1ofBk6l6zoeU1kn/xMtGFv7+76vfosaw9R9OBrAiBKtfjVfAEOnS2UlQIo1qDBBTEx3Pa6Edvyu5RNuHdDWw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-1-2022_1640996493138_0.8475814966638986"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-2-2022":{"name":"playwright","version":"1.18.0-alpha-jan-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4785.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4785.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"11e5b9bb9bd79d3c2c835d55866e1fd119ae255e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-2-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-myAtBl4s1UIiQSfUXDQRFTf4Kf3dyCznwmK17XkvFTfIPz39z21MafIXZqIosvAYtORxcZvrd1GbAt2jSBUEGg==","shasum":"57c56eddfba2296790038982dd15dc3c81f246ee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-2-2022.tgz","fileCount":9,"unpackedSize":21556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0PAhCRA9TVsSAnZWagAAv4EP/R/SNtdrHANLM1ooroMj\nzWSFRb6/iTWhJi0KNrnonTIUHdmj5N49GMM3PI2KIG0Z+4gdGoexjc8Dlekz\njIZRWHCCTdAg6LuS9VK5MwN4medWZ4SLxI+UkLtJqPj4Ntm4bTOuf23g97rJ\nIRi62QkZisB8pLzRdaqOwdbbjSRqO2X9xJOhFJOjoln1aXngTNwc3ieaC599\n87/MWlFmvgJ5R52s/tRS+TyTRK/JeIn1gm73eAICvz3Q0o9/aEeRvKjUnDdE\ndetcSHtM6ZAKEiPHW8VMF0XiahmQvACL2bbemI/ciJdNVieuHrQlwJYfqOSh\n1RNPHxivklz9FljdFdqMDsW7d5y0UmE3ban439OK9NvKsDWQss0GiL/g8pLS\n5FCBVItT4i9L5h432Skk1bdz73OPSfwE/G9LKBwmIIyaJZps6ijgBqs/dVNR\ndz53zl0QHNCbYNzWVDb3fC8UR8nVSeexjDAc1EUK+INw4FBwANYdTrke+00B\nd8WFDOQ7CcRRMd/Zz4DQaPQ9ZaR6NewBFzhZ2MQqdS16oMi6V9Furg3kdGL1\nrvzFzWxgHULhdyHRanGu1JP1uAQ99DQJ+Tu3861VDdFvHkTUjwnwhwXDbTCx\nX3I7AFb26UUR80zCAQbP+WXrM7hUbERLASmlVxnHH3OhWtK7yy8OYH/2FcOL\neYT3\r\n=qhoD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoAHKKMBrvy0wt93YAWZMguwhaH2oAO06JbPjEubqRSgIgR9faZzvVgje3I9K9fcfZ71FUsVUMeHZsBNL+sG6AJ7Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-2-2022_1641082912617_0.006329189591234741"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-3-2022":{"name":"playwright","version":"1.18.0-alpha-jan-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4785.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4785.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"11e5b9bb9bd79d3c2c835d55866e1fd119ae255e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-3-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-yALDiI/91jBHwQljnTotmu02tcbpJxrfUsnizThW25j/MVqq4v8PI6Oj05sIuNrYD4RBwbXpdpwS620HqTrMXg==","shasum":"25207efe849e7c7fd3959740dde27d9d2704b45e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-3-2022.tgz","fileCount":9,"unpackedSize":21556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0kGHCRA9TVsSAnZWagAA6RIP/3B/e8HDiVpVuPJ4V7U3\nXRqsO1Ik1Wte4//Pe4kr0eV3azP8OoVcHWU9wr93An+PCfADTPl4aA8mo0xH\nIbNgd3yED3Jv9+rnCLlbyQancLdPbbmwMBM33XKbcHe091z7/K4CleOiEy2c\n70YC/Sx4UhQ4Thfnc8/ugb1H2HJkJh2SWiuwVQibbh2OuRjySzkykJx6GgNq\nANwZ4pNfR9Vxq6R/at2vLOyvSN4dOXr+JIlFpzMFveeF2kw9hBs5IuCJDyYU\n+2CcocrYbyX1FLPg17vFGAaMl+mpTrauoHXkB21+vnajGoPiWDISWiC0cZwB\nwLnCgn+PlIh+VYYuWTD4d+gKsXxQ+1PCO95MDI1Bx8EZNqeHzjZOGjDXIfOP\nDs5+OVoQ7/O6ZtWcAvADYEpn+wwNjxYoeMYeTE3ZgX52uy2WBoCC4V0FcrCJ\nqhXlBxpjuXX+vMg79vL8th9RIiA17E27I83hxFD1Lyb3g6zkN8jZQGJV4mSV\nlktkoK4zXN0n0Wlw+lznhjBg8agDd0CsWo6/yBEUqHyjA2lu6ooxoLKUA9nd\nvq3dVIdkwZmRP4329aP7zpLj/wDY5YjEMU03Qi9GiUXEInaLr312i8fzgM5b\nJUUlO+Rc2ghPcnw9/p7jeN/XcXQ18KBUnOuC04K2b7WJvKAdkyFQYR6+mAmc\nI8Uw\r\n=GDkG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIASsQuOLz7VAj6v4VTi9hKSctfC/yXoJ/hgzmKNwB5ZWAiAGyNlEzJRDKPrcN5Q5HvUX+RPcuS3qDl4ejTVEOg2hOg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-3-2022_1641169287189_0.07847416454487188"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-4-2022":{"name":"playwright","version":"1.18.0-alpha-jan-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4798.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4798.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e8263b8f48995bd40215fd2c2abbbb88a8940fa4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-4-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-r8+427oc//LQF38UwjRPY8BFKFa6Vw0v9nyQGhvlK9NGt+C0Q3pbTIForJ+fnTYTEMwBAjsNklZt2DyYz49w1w==","shasum":"285070d15f18ed02ef67460020d2048084c51dba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-4-2022.tgz","fileCount":9,"unpackedSize":21556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh05NqCRA9TVsSAnZWagAA0pwP/3Bq0pU3xR0RqmmowPVx\n9fqKj8jJS+mzjddsMGSvx3pwv/qwAgmFSxlBX/23oYuA0PfPvhBDNwNOKRo8\nYQWfEc9C/2Ho+MHkexUOoMMUA5LCHBUCZk750M8+3CejIFRXhwW8G/uJfrGm\n6oxygHmt0y/x1rzOtshCY9KNPGyB7DrgPDD9UK8QNEmGdLXi+TM9QBv1dob9\nrYODgNoYPDRAjzBz1xZgNod3Q0RG3nlUoxBvzyiEq9LR/qZJVoqr8l6jAQDL\nhHnEE5QrsMq2bmdjcVSv43QDIJGfG2oyFXIg7B+6ihTKhYSUq0WoyHIaV503\nPOtstX8pluMPXriZ7Hx23P/XgSO86mgCAmPkON3ugue8nIx18+9iyRLWwo/D\n5oWiGaLSCxy4AcqxIqEaJp4EwnK4IhRlxLcHGLGw1FvGPVOAer/M8iVokBUe\nFSEHKpAH2g7dF/yVguYtbrchRrQGTHCdMXmi0N6T36vriNtBUCW2SCdHZKhx\n4CJ9y+X9zgzCOMVTjWk1iPuJI/Z8sNWu2xxaUwOUgyxxC37IDLYe7L0yUCZY\nYPojCk72cCYYb38wiit5fdoCTuF/kn4jOT7cbAz89LeupYdborHRQUTSkBQX\n8dwAXGL4iHOvyP0dAv6cFiGOTgCx1VBqp/ky+03MB+KuqolZGdSxHor1kHm4\nAPkG\r\n=EN/0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTrz+l4t4Z3dXZ3PmLr3Map2ky46mBPI8v5DpUmHyVqgIgZjsfpQfHLwZjX9uXAIJ+9wPxMsd/ZfGGSvCxzlzobbo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-4-2022_1641255786447_0.8157396910870605"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-5-2022":{"name":"playwright","version":"1.18.0-alpha-jan-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4804.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4804.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"16a779a5ffc99fe113f371383f0552b80d3bb580","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-5-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-cCZG4dCimsRclw8lXpe9zG4mXnwT/5AnqFX35a8OoyE3uvCUdU5dBjsri8AQ7lOFRkNke35wlwGp2WnEa0M4aA==","shasum":"e523e8ef0039cba47f4dec8d3f6bf82db524f0af","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-5-2022.tgz","fileCount":9,"unpackedSize":21556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1OSGCRA9TVsSAnZWagAABaoP/iLFmkjDrmglpwSmW4KT\n/sFgKSCv+Zi01/Izep5koaHWX9KjvmIyzbxDncUMJ8Jo0YJgialoNuENVh7U\nATQC9i6cQbGqZbffs0rabXZB2HNGY/pHtFpNe+t3ds2wVPkBwaTUbS0YZt17\n/qk5pwXdxGa3iT5jkiu2dHsE2o5rwm2qD3xs1c/p/FZDIpIb6x/PWOncXs1G\nSpE8QE11AOQMZwlCWhUM/X+DLnPyk+WRRacUTXkavvTVhoeCt6vfydD8UuZc\nMZ65Pfew9Mo8/f/0qW9KHROdajXVf7e1U5KElwOocNBwnejRydp9aTyUvJIN\nHJ3DQ+1uvxMGbWeEJMU1d5kJiO8ExGqENVYd4RlIffeGMbgXrdEkdcmu/g1t\nGDl5ivta4vZsle1X1hH13Vx14Gq5buKzTVeyKgEV6FSXNqN4Q8lIV16dOOvB\nisxTxYHOOi+KjQD0XFWEIynw7wGCrCIqCsGMG0gVXVTKVZ0phS0jqkAmhlLo\nTRJl9fS5a9Owk/sQqvkrMvvRv6/Ct5FOHJpz5Y4i/pqXdR0/CvvplIoAha/z\nL5EjVwMcgWfNtZhtP3+cXK3lRDyLnYZZ7fAoV2dr5SyQEBrDdwKDTeG9BNKb\nk1Uf7BKgKvEl956+/znzEsjE5XWf2cTrJooIU6vTGg/zvpD/JHhrSnpfDWZK\nSRgy\r\n=CRJS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICIYvELazgMOt2mdHW7xXtrME6swZVob7tD4Uk5FOb2PAiEA5IcyS0j9ZrB5kafSp+Qhk4PoVfFzP+GzwPf321uOOfg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-5-2022_1641342085944_0.024593363497417586"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-6-2022":{"name":"playwright","version":"1.18.0-alpha-jan-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4804.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4804.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1857a163817caf31a0dc3d99832259c92f5561ef","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-6-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-muX6UZhP87amvLlq8m5caVWXBNkJGmy824dsowvZtcSCKxbIPrGXnyRPNiX0b0YZ7qRHQRzbZZG5Q4Q5skZmUw==","shasum":"f806518920a7b1c2f8f631e7eacd0169cba36608","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-6-2022.tgz","fileCount":9,"unpackedSize":21556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1jYqCRA9TVsSAnZWagAAxTsP/iCbpeWO60ogOPJbr7Qj\nGKUQCnaM1G28w+XwVjszQl7UqNf1ZSgQEiNuJMHqpR8HRDWtxS06dzC6ADTY\nJn7elnfgf8Lbqz2mfT7o6eoH2nUezX61ekuscF5oFqFIkA9vCc7qk5f3r0Vl\nG3DEa6lK4RPisfu/s+jXkL7kCRVrTYPhx3+VDB3dQ6nsVP5IruIr0jv15VrX\nREgs3YAb4lC6ht4AzGdJCfUIU3b/3UohqpDQzJepi5gR9LOzLejbPuTV3oIH\nUx4kCozNIuhUSaOXGrqLfdcnL8i9SWyIyZNbiWznVRDqfEalQOEZPnHqo/Oz\n80b/EAwSUdHHLvq3q2SXB2GtWJEeQ4I5s0kb5icC9w3C1QhN05I+81ggwcvk\n1AwmG6k+SapBte+ZoolrjdXmkjsIWAXrcBKFSeZimdAYY6Beg0LtZIhZGBR8\n5pf6q6tNXY5Tkri9PzZ/SzTjPNPc4VGXa7/Shl5KqMuoGP1ihJcswS4bEAM2\nepCaBozmNXaNrBiaUFnqsAKLLOPzqyNmkxPfJ2F5/Tvyv03O5pC1cnw3LgdZ\nbR7qL82dO6TDxgDjzPHgduYEyB5JA9L198GJ24EGpPoiBWdg2+4vN0KempI2\n9Sl7x73Qh+gmFBACzTjNPvZWBy8ia5WL2Sx9v/fGko97B/lVHR792lgGA9CJ\ntvmN\r\n=uAaF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPD/9r9tjFHfdh2blR42JG9CihjzmFGVvJszafwJeCCAIhALadGvzDjq6j4Oh3MCdnPTO/anN3CVkzq+YrPfMlgXIT"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-6-2022_1641428522107_0.6560271570647604"},"_hasShrinkwrap":false},"1.18.0-alpha-1641508844000":{"name":"playwright","version":"1.18.0-alpha-1641508844000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1641508844000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4804.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4804.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d629fe57abed2c4fa913f6b8529935e82a553f8c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1641508844000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-TJ4pKO0TkPM98Q4N7aBFqMZ1AmlRzLB2CQtJ4YdVJurkFkrPyv05m6xtQUCKMxG2ukjf00kim7QsxKhAo+d3+w==","shasum":"2d9c14aea1e940c4ceb27b52fbf78640b0eff360","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1641508844000.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh13CnCRA9TVsSAnZWagAALOEP+wZfSSGOsYyAfXpUCoZ7\n58er8SCvR+Orn4oXqNVkHIV+v2/rqHQ379dkhN7t6lCUjRPdxFVI0Yq9HEij\nk5HVXiE/IG9qow1xztBXIRKg2dd3ma1p3aOSJ8h5zIgYNoJNeeOxsxMwY2ei\njT38yAcygw4vgplTeOv8O7imi8RmMVBoIRZ3Bbwkz/qFqCTXBb4f1h+I29sv\nVqHsldV6AnGFVoHbZyuB75yf/kysyjKUX8Q7D565mD/Yoe6aw/Nopawxxb35\nBkFcgMm4avPWSFncUF/dLxX2FW//MzlHdeZXFyUkFrlqKInCA7j4eiKL/HU2\nmML61asR9YrBFzlzH18/5HC6m3CYU3EsIbyiYwpO33nXhvxh8vq/8gOwHSCd\ngIjuqmvBUFIWek6oqdOsCtJ/5KQskJpAET4AhJ1nJAbN6Ms8Malo3GMlmsOZ\n7yZBxdmSXNraslVoYOdpbdgHs5a0XGmwRvO9Gw5+DbEETy20qe3Qec5zAAZt\ncP2Cd2AJN+fQuIZ8YC5zFkd9Tj4nlgOxCfMU70iuZAUaX1FFvHlErD9VmmnA\nPq6So/P10E2P5HAG1AsmeP7gF5FgQW1dgm3Cm7jXFaDjmK0VszYQj6qBgVm1\nhZhDff7rg/GzQItSNbAPBalfiJCnLlnad0svsTXJWnv57sMEsuDmu7lhX2Rt\n4Puc\r\n=R/4O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2BvjAmGiObiFfYclyRz6EDIpJVizmi7Igf+Tc/7LW7wIgSiw+tuZgWEnbESuHcb41y41IHQFdElQI2KOWYUxtMqM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1641508844000_1641509031155_0.5612930877775597"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-7-2022":{"name":"playwright","version":"1.18.0-alpha-jan-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4804.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4804.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"670d6c3e273d8a8b535739b6ce6cd0b6ac4f6c67","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-7-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-xo589em0cwDvAMvZJNOJt5kwDOlnIaZWa250XncswUkT7B07PnEJVZsJq1NSAwqO+2dlM7hUXOaBq+e2PTGKzA==","shasum":"c4039f61cf2b4f5d37b8d285fb1bc9122ba5edd7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-7-2022.tgz","fileCount":9,"unpackedSize":21556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh14elCRA9TVsSAnZWagAAm50P/3mlodHc2C/msTlB8bBE\nKht+6p9FZA9LYF8HSjgm2qJrj7rbDxiptNgr8ML81jWY8Gmfen0FOABg6y6R\nz+l3y1dkyvS3aw2iGPRSpghIYTprGbxy+4WECHa1rJUXLhuB+i/Ablq56G5o\nz15g45TQIgoel2Kov6Ttg3A7hlqvAv7gSWEhfh1kcZ6N/69ETlzxolF9blSI\nwTDwO2y6SRtvoVpBlYIIVvk6VMpiGF4FFLjA0IKvrF5YTxqD8MutqZRCzbUr\nc0fWrQM8VNj+vh0YFOg36yNFVMfS/y94uQmHbFxtdE3fEVTVsLd9ODTHiIAv\nYJso2ZRUwxChVVRcytv6KRGhrtFzNi9lh+IohUz1WGzbTH1vSMOaS8eNsI1k\n7Qy9xTTlXgPO6aNN0W482IJuqfQmpr9A2enRoMEFwmp4GRqT7eQAQ2qf1l1/\nkUm60rdscVIyi+Io+1IgwXabwFEqa4sXEf46sD9gF7RfDR3XiKfAdwGfwtnu\nTetcByJnvH0fX+PELSx+71YtNbUkQGlLaUNz2/D1cOUe2mSdqtTw5xNGCr5c\n2gdsoNpAJSy0TjS6PpTUctZhvzLzfqVHMk4HqIOdd8dMF027MZXU/OUX66Zy\naKDqFuhw42GPeXynHN1jnIZ+FhLmLWShsOox5kyOu+QvGtOAWrJ3hNCmSo0z\nLJJf\r\n=c26L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8ACb+JxOTXZoekj9WOpIEZw0EnhXfnAvcp2oegPtl/AiBGGG+qHhbVWJdI6XWd+FHybcYZ7beZbeVj8LVjiaT3sw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-7-2022_1641514916711_0.3391699479829149"},"_hasShrinkwrap":false},"1.18.0-alpha-1641584275000":{"name":"playwright","version":"1.18.0-alpha-1641584275000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-1641584275000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4804.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4804.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5527437238e349685e09f82ff779faeafd1e42e8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-1641584275000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-7E1rLQgg59dQ9Q6nn+jzlEX+ChKFS1/DNvPxJMhE8X4DOMhoGkK7zTnN1neDE8feNkF793IszSc5I9Smzl46jA==","shasum":"546a0f2e2ec898efd538ea43b553a99bf130a1b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-1641584275000.tgz","fileCount":9,"unpackedSize":21562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2JiTCRA9TVsSAnZWagAAMeMP/A9p+wyiBoqT4UBXA6jF\nAQ2pptmZLjpFmslpTSyb7Q9VIz8DeMZbLeoX4QuxLl8Z1cAk4tnBY38cwnLK\nQ1+djoYgxTttfq+EdV8nZsbbjaJ2zGlW3XOvJWdUZcZnnQOksGErMRp7vjsA\nXQFzkoPNPCuyBQWv6RGw2gNsf4bJ7a3N6hIJK2ACVsIqhR/mOXm678Zimd7+\nYU2Qa2DwzAWLLzcxu0lhXJfkmcRxmlj5s7V7gKh9B5KN1N8jqr9jXRwIY5qI\nnTJXqpSAk8pwTm/E5M4Zxpr00dwAR/oZblmA0rhbLXTyBltaeA8dX6FFNEis\nuEqpKgX/IgmZgN6Ek8TZ3OZyClQt3Xie6bZi4Do5oQxxOm2SFEpW4PAndWcr\nJzoK5Op1cHQxMVsSsSWW/5SRb1iGiXmSJJuIiRzdksDERt/DrHBoWP3ynFDf\nyBsAZEwqMmoHInoH7jQiw9Z6Ny1+3dtg7FVGdjiq6fxuMs/i8ymcrL/q1uI4\n8nIKS/l27Q/sIfAzl1e8FniFjJx+8bL6Na1JMNZhF4hQLY8tgfznrAVWG4AL\nwpqQZeCaYHXbofOhHPU3nIrmwT+KtLmVWzW4IsSqFBfPkaDbOz7yRxB/lAkW\nY7hV4tWt71xwN+jFkygnyGv5zf369YTOOuKcfui75VfJ/Ar2T5l3MKd5LqQa\n70HG\r\n=7wzB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdUXlX9+3PS3xCgo54wYfgfeKzTIjONOcRv8FdoSFCkAiAkdL/lMXUXCccQMpaO43K0/+BowhLgrSJfUfcBhnalHQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-1641584275000_1641584787096_0.2368624196249105"},"_hasShrinkwrap":false},"1.17.1-beta-1641589459000":{"name":"playwright","version":"1.17.1-beta-1641589459000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1-beta-1641589459000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4dfdca1b990604ec2a76f86d3111a3c0e00b95e6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1-beta-1641589459000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-1S8u9leiBzq1MVe0dW2NVKsc28uxfUTqWcigJOYegkNSmK7wwYgj39fSMPpCpt7/dgxXXneVanhQur5/10S6qQ==","shasum":"ca4f867e2e8531dc7d0291d8209d0ace27021926","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1-beta-1641589459000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2Kt8CRA9TVsSAnZWagAAf8MP/j8hbXZPFX/vXchCEQO3\nXByecv28XM9j5mnoIkd+ZD+a0kAGbm/PsWC15/+t7CGTDZpzfLjPJDAvdMOG\nButTsowUVQrv++48/832DavLgPBqDDMePhHmPd4diEmx0tW0oL7J5PbWMfNW\noPIyi13MRxve+e8lj+iGiXZLmOpvN/CqSm2FiUUQsB38RW3oCGygVPWqkFeB\njJbD7H3ek8RS1lwatxcJAR/Yya3IgYFWnxfrauLv5MTujs3TZiQf0l1obbA2\nKRsmh81F+meCdg/NgpMMKos7QWJJSEwTcyfa7VuXKbf6y6Wa6lJR0agr5dTB\n9GMIzKpLdu/K7RzhjPM15e3NNBRrkiojJ+yFcF6T2KilG6kTVA6rsD1aUYyi\nSAAGqxRc0Rl9/RQezKEmVj0EvgUyv99eEHUVXwyMiV6S0dRFPHIe+3eK+oP6\nS1NBFJugkibhih841wAWvDih8ickR3EYARAbWELYabJxqcilcm6eU5yR7o4g\n2aqzVCpRr/6RLkazm/GBa8D/jsrn5lhjPr+SFVobPyaXU91V7ACgz83PxSRO\nX48tH2qw/ItFlqkVsuBrRssZSHdi39c+SvyW/i8R9iALdJlNTAiODjNIffnf\nWLoSMI0mVT9fKsWqPntnuUJ7RQUn/oY69d0h3+lrm4rnnuiUXIMBgSdO7llk\nIZOn\r\n=nRTs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4mE7asXCtmB1mUj6LKN3NhRrrdVHCpLE7mshuqRooigIhAOMXBJOuIJk4jeBRCnJfj/QfVRBUql+my4SxArk6n9ju"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1-beta-1641589459000_1641589627948_0.7920375507841937"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-8-2022":{"name":"playwright","version":"1.18.0-alpha-jan-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4804.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4804.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dc07fa6da6df9a97274060ede7aed51c92391339","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-8-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-hLMEcZKux7d2gOSvEZqUJxeGba4vu5mkDKHGRvtCgIhLu6nfHQMPN0zRtFCz0UsyjweFFVZwt1iuiiymbSkJ9A==","shasum":"82c0514395814c5ae39f0996aac0dab2da5ccfff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-8-2022.tgz","fileCount":9,"unpackedSize":21556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2NkOCRA9TVsSAnZWagAApgcP/1jATa9oj1RO1tDmjssc\n3TfPcZdOeSugh4Lcb85qXTGX4DUkRK1QJ7VNUi2s5R7wwGl6yUHl0kqb3Ewu\n8AqKEk4j6hebFrlk8/m295E/7+LUIQdNZ/25bf+NELNhEp4HNZWpIsVRAd6B\n58/D3pT6jNOiSqDBiptFJ6ippFR+IgpTMQ3zx7M1wMCazHFl208jLR1AQ03w\nbgbdGmBY0s/Fx/e9J6+UQjXOrHCgNF0tuGxhSI1DzcGktE3xstOcJaF6EEC1\nwdqwEHsqPNqNONOcHTKxgefDXVq+MfXJ6Xow/CGPSJjXEroaaRvb03u/KOvd\nIU6Ej+tHwq4iWazJ3/BCAGRkjXtRLR6J7p/dod6N0pJDO3u4Smgk1mg0v00x\nd0f4QDFcj4vjAoy8rLIY0UJMuTVs2oy99dOm411yDlvHVjslmDcXSeYkXZFK\nFZEnsKA+TJT8jHE7ptV7IfNjdC2O75RykR9u/XLsgCw8gZ/MDqEoor2690dA\nlOQPsS+jisLQow4kHN/vCxe8heEgy7O7xdgRnhv1aNw3xZZ/IH+aE8nCEtsP\nORvoRuMFZErWWIf4vwQx73/ugTeJ5PoyYytzwrvVgzuLR2/5O3WNYvJqeiJw\nFpqKFrT0fq0P5CENtJEs/pu348Pyrjg1s6eSM81KpGnihat0KNDLAEgB/1L9\nD86e\r\n=NZwC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDy4YOMKQ8cVhZUvp3C5tisA2TeXFlvXQ/oDyv71jsGWwIgbDOzexEK0z5tdrnnbzxBiIfvRPohOrowPNdQCfA0XmI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-8-2022_1641601294271_0.1324913706487203"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-9-2022":{"name":"playwright","version":"1.18.0-alpha-jan-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4804.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4804.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5d8aa8d5cfdd6169c4eaad0ebaf53502f43de8df","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-9-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-TJISfGU/Cxi6rhjx8Bougt5UFWDkgx5iGmqw5NLS4xMXgm9pXf7EUbfu4vloqPbFXMCpU0aCOdPMgALKiZBehA==","shasum":"9f599b71ad34c2d1520eff6bd81cd862a737b56a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-9-2022.tgz","fileCount":9,"unpackedSize":21556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2iqgCRA9TVsSAnZWagAAyEMP/0IGrjxXZh8MQwYCfHDg\ns6rGDCNFGPN0ehGwmi+vJFh8LZXVkFxfh8SETKu7YJaSeVfqWc+RtTNuSzVp\nthdmO65D5evh6UM3bRR+8tjocgVSBk1pTx67vBzpK47d4UwUdXb725GYKNlK\nHQDeZ7rkKS7Wmbhgyw6PRBq9avIkEABRi7qss8h2XZlKtzRVsF2yAbci1pSk\nZUXWq6p3855xdVPBaFwn0EPzqwhqqlR1DW206+tbFztHEKykfDxI0JjGuPEg\nzBQrPpQHGjsxdT4aT31gaOwzy5Ht39o5MqJnu3n/Npm+t83FKzae8F4UW2ES\nWoe5TEzGAFOxeW/m6jsjU9iK4DdbNlSsAozq88171xKyYpJ39OOquSwREq28\niF16chkWXuwLPrK+NdvVlYx34Fwsxecdpe9mmh2FMNFxk+O7VHqC+kbB5171\nITr3iB8hBagHkQasHfAw/il+jlYYtPUISG7d8cQWKdQbYyI+7Ct5YqlDwWl1\ncBnCmm+SEz9b0iKzsxhM7CiyunuS01z2u/mFW8sjS2jJFYwE+JR4P3FHe8jq\n3iZEmOMxJCbur0z3RRpY3/Y+vtNPiS1A/fV5PRxBZbw/AIlIQ+rM/Ycq1S15\n+MYfRkEXYvyppAh4f7vU9Kzke++m0ofZLrMUwOCKPhPDG5vHP9KwsAVs4C+9\nD7BH\r\n=ehQ8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7ju9B9uygj5k4vvNIOja9+lTBLQzU/GSOx/0A2uWOTAiEAtYcwElyktaHmpvh9IO9FqFbKHkaKPfGMnORpAFubmAw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-9-2022_1641687712781_0.9769701107640025"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-10-2022":{"name":"playwright","version":"1.18.0-alpha-jan-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4804.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4804.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ff5f75dc108cfbb2fb566cb9df9b33ac743b682d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-10-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-zlN5jXeUbCyreQvh/D65bbTHniM1WKgVQ7HE8pu7KhFpcr910YuHfxRqbA8jP9kDPWxU9b9imE3fTFhdKO+zZg==","shasum":"8aec5eb983428250e8a99a584f8df667e6b86c6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-10-2022.tgz","fileCount":9,"unpackedSize":21558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh23xCCRA9TVsSAnZWagAA234P/31234CvVB2U+pL1W1by\nalydEjSjyWfvIXv9GLb2m9ONJ904QvV57aSebXr02fRVdDxPNidyQY1NSRBs\nRL6FdIb6MkQtKrqfYmjqKVqjqpQoE/JtRCM8+kDxUS/JZbVRbSd0NPgRmEEe\nyXEnGxKBJ+lnHgzEu0uqgFe+org1sGQIDlZIRgKHjAVDNqOZ47Z6ThZCkhoK\nHC9tbwKsywRTApnRXBoE9oWC69ryWsO40YyFDL3HS9FmJaQvOedW8EoUoP16\nACmmYKzzCc67jmD/Ax3qKb6w6OF4da4nJnTP2/0sA3fQWvELT1nVV/QMhUT/\nGj8Md8o0pwyo0PfEkb1Agj16SHr6O2MzC69/Ej2tKuYrivsE1ixLAkvZuQQM\nCo4ClSJJX95l/F9YlfikywdxQeVRD9R2dmBwN5iTBTHamclMbY9JVQHgyNJe\njBx4kmXqV2rHdaMvqfCjMp4xCVkgMhsvpSNpXOu6TAd68NagDjDJTZBra9eF\nuo3nWyvOM5Zt4wyb+38llRDgJgyJ/EQEaggRvmFIxcvBdmZhbj0bGbfqzjTF\neDv550uXu2wcNwwCW9nlPClcvaDbLoauXGX5ZkT+PSHUQXiuLr6YUA/07px7\niND77TT+ykb3icgCmlBPbBBJgThBXDA93YpdTc7UMcahiHB3dyEJPdWjxdDi\nOuLu\r\n=sIjA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDa0z2EQnGtkw7cdrb1Ag7vzf3zfZegi5VaGuZHVAnkBAiB84aGVhYcfgJA9tRdgugGtOK7lOpBZ/1W69qJCplsxiw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-10-2022_1641774146098_0.8514318573022057"},"_hasShrinkwrap":false},"1.17.1-beta-1641774506000":{"name":"playwright","version":"1.17.1-beta-1641774506000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1-beta-1641774506000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b00e931d4a4d49af740661a724080c751cfeb3ec","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1-beta-1641774506000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-pmE4CKikZi4yVR0JqAvJi0/WiUyQ9unUlt26ox4gl0CGWLqwhAzXVfo7FoXR4D40PJNVa3brm5G8GQPVGbg7EA==","shasum":"20ece72fa5d8e7f097fc8fda2667eaec4821b068","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1-beta-1641774506000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2352CRA9TVsSAnZWagAABnQQAI0Y1q3m728TPTMhseMW\nSrCoPYqrMXMHvbQvwiSSmdBtY9pMFENQsNZWshZCJ377y5TS9+9qjDsujvId\n9Me+tdriYFKvaTAuvV8C3tq+apEvlRJo2tOhzSHwuFtb7IrigigGaDdC/g0U\nx+GA42STU8rq4tLdkYeTLe0htqNQfK185XfAQuhlhi3bxmIfiE+KgmUEytzH\ncoMmJeh3+1aL7Hz9Fj8gvEw3k9ROvQXs/mnNClyLuUvY6FDxsCqHD/O4b7ih\nGi4lnSwUzcbz3jpd0yRxphDGvXP1W/S2GQ9hiesWx70R4WOwd7XCjPgcl7m/\n3nd7S2lbkdYL/ub22FVy9yyo2F0MWN/YhcoaYYeS8uxblxrRKM46+yNDZQQV\nOt/rHFpTDlkTIzPgrtWHP1LD3xAQjUvCTFYoj6nUrHaBcKberkOqjRBYcQxw\n1QY3zcFVzPGPy7J71TCGgn6TEYmi6eu6Fy6JlLdlxKroV2gbycAKgu/jk4z/\n1lOe6xXos4Zm2jrdwUqomyepnTCgJi6UDgBYsl6QRQk7CHjZTErcCNFfkyVq\ndyFiEhAn9UCBMiye7TauWjuld9rwQFAY1l3TQZB/k9zfODhnnImSXETaKJ8H\nQBuuMTkQtDreBPs6WFDCBhYUyFiT3kM3btNPb3SzN+f9OgWDbgr31ptULybb\nSdjU\r\n=Pltd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXZturWN2pr3MygS/WM6RrG2E/WCs4OngNJFKSl/v1xAIgRCZHx2C5OjJ/FTH03L9A2T4IcYeT/vuJHEWxoJDkHSU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1-beta-1641774506000_1641774710831_0.1962073516533529"},"_hasShrinkwrap":false},"1.17.1-beta-1641775620000":{"name":"playwright","version":"1.17.1-beta-1641775620000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.1-beta-1641775620000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"224bfeba75d5eae5afbd1803f3e3c994b44fdaaa","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.1-beta-1641775620000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-xhoNwD7d2S+lzDmIvcLme3g+9fQOV//C2sjJjJMti5pnGWZF/usSzwkk3N+BR5fwLO1gh/APqOdGQT5fSPDWUA==","shasum":"e01652c9d2f3097a1adc7a915a1a979d9187d27d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.1-beta-1641775620000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh24LOCRA9TVsSAnZWagAAkDUP/2khtDOs3qHbsNfPqdHL\nSDLyyDZJj9JpKChq5GYjEn+KumXKGjv/Yk+SzChXzKK7kcO/Y/5Vsq2n6YI6\nSG7/t9iMyGsnHqaWakve7IE8bCCv0LbKxD7ccOKpiHLM7KCEGXVB4DaCxpra\nO38UU0nJlGaTuOMaVzvj+F5QNSZzYhO+7UrmSUltV3V5wwTeQgYIzUcS10Wd\nkvoX1q456gf1sa4g778m1WIagUQApFJKz5zngrTEeRQUaPj3rlHyAIxDMd/q\nUDYrHyogAEB5ODDyNCjoPiw0o/rn9xu2w5pME2toupwB+nZUcZVP8B3cq1gj\nnRX/25epxBjXCjWw3bmEiJrj9rMFtzSSJ2kw3tujz//arLaOmv5XNyeLhOjY\nJzX4FoHyaRfSTk0Rv+YC7YRFWUsDmzWIY5Ig+JeCjny3oFRyg2LBvWlhVa+Y\nwwbM+V/iyN6x9A9JLrg0ep4MF8ubPAPsE/6DB5Tf2VKgXt3e0QN+q+urYBMN\n2VMBzxDlUH4A2Xri0AFr2BzH728mrEIdW3TnL5tpyv2V17dQm+FNUwwDmtI4\nlETKmCk3RKq7Z4eyz2j386E5EraQzGWyprK4vigKKwAl1Mnq9i9+lY9OfCYd\njDmIOJjsmNuOPZFz2wVFOtV/0hCl5IhYwdoGp0SRMulVHA9D6lB+qdBE50eC\nC+aI\r\n=AIOQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbKN4xjyp7NnuTG+vSnXCY+J+ISvYTPff0qZnwRQ6FeAiEAjyTevRPXy1Nn/3KnebSJsDtI3XTqle6WZSfnlsu8rj0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.1-beta-1641775620000_1641775822767_0.6722205398909777"},"_hasShrinkwrap":false},"1.17.2-beta-1641778150000":{"name":"playwright","version":"1.17.2-beta-1641778150000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.2-beta-1641778150000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b6eb917c29b743e8d63004ae7a24974404461198","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.2-beta-1641778150000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-6wIAZ8tZ/BS4JGIC3AqKZ8iu+OoFT061HnEocU0xC6etuT3CFPwiB8QzuwLWhnEjvvBDTX9tcOUtnlAAdCDbCA==","shasum":"ea43e7c69bfcf16c3eaeb2c895581789ef2d4cd4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.2-beta-1641778150000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh24y9CRA9TVsSAnZWagAAq/0QAICZA9VKe5qG4gWDlxxm\nCEXrJARP9yWEIiyfHxvg/G/zjfmUASnlAqoU1Bz0XRSCVHFtj1cYDDHOuzvK\n7JdFOuWfN4hxDtncXf6lzA3TffPJFSTmsEfDUZb4r70sRdpgraWcgfV8XT8f\nNqcDLPXjj/ULeLunWTtGvFSy9kZMFshnoRqw/lKE+nzTy/HmE+uSaHBpvZMt\nBeaCelW9vWm0G5vKKXMB9bxvBoJt5GqSg2DvU9Hb9Ll9DfiDsf+eVDhpfSO7\ndfwPpU99oqnQDjzyJpc7FCWs+T4W0U3LlEWVr7NtSSzO71meFbKE/gklQUqa\noVlnshnsgxZ/H4Q7m8UTOnBTCcxxHcXeCX1CPsEC1ZoOmpt4m/p9NlpEotxz\nmcfd1NOwaQ2U5QwUmeqTSj1im9l9CLd4006mC4KNWn60F2UYcy0Sa1VptF82\n1fvgsUYpwP9mb1EYDxjVUdcw+qhl3ELFCxVh5P06Xss7RQCq/e1Jh3lcHHx5\n4kEnYP0QzDOuw2iG4ZyvME8JKu5wnVapAbFJha15TkoHaAy9ekoEgMzIUbMl\n4IhD0bJAi/vzaSHD5lrWA0/VMcKMOZlf7NZ+YSvhaOGEskjW9kUWyHbyf4y5\n267jU1AN7nW7w2G7wh40gfia9J+2GjXVtRZLiaPdj2EorffcT52wc+npspCq\nDS6a\r\n=8NjZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCj1MWwDeJDRiEMPZikv+UueCpI6QZYHqvSCv4oz5358gIgJ5hl8oY6g4TDTM7ZiXMosdTrEjRDdqVicLT6oTtd6qc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.2-beta-1641778150000_1641778364896_0.9429142442401384"},"_hasShrinkwrap":false},"1.17.2-beta-1641778794000":{"name":"playwright","version":"1.17.2-beta-1641778794000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.2-beta-1641778794000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bb0847fd21f8ca443284baddeaa60783c638dcd1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.2-beta-1641778794000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-9nWP9FU5MrPqlYVtEDPeZourpzMOW/iBy/Uq/W/IUoVgJR3FKOVGsUk98K/uy9dUaOYqGepo/aFJm31cAWbTUQ==","shasum":"05a3ec8c4bb3ff355be611797a0742c119583ba6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.2-beta-1641778794000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2482CRA9TVsSAnZWagAARzQP/iIU12f2KzODYo81p+RD\nVrAuDjKcx6O5MRhGzs145VmyBQ2TWxKUIDclAKaZAaemUClLbE2o7QWOEoPY\nnU8WDgsnPbFetAcbagZ0UjGRgLo94vtwea1ZZnjlEvcnwxoShIkE4e9EZZR6\niJ3ttXY6nL9o6SybLTEWn62vTSw4WD59B2aUvOI8GNHLvMkruRyG2OozcW2r\nrr6aygCyFauKan46g0t9g4lFKFurR94zS3ycOW85PHhgg/c6Ih6x4/o6jFaH\nzrYTMPsxAJ4CIXbs3Qe1r11LCrEyfT5UOVtNiKjlnZD3cZVFNHcXZCy12j/Q\nIt6RHx7NBeeRVI98G+ZHzDO72EBoS+SsDJljVOu07XDFVCdWqA4XTGyblXQN\nrpn2rC68GJFL4PGUt31jHqGNT3mkfKASSWP28DSnRjXdYVC/X8gLSJzX0nOj\n2+KS8lk7FvyIfvRuWU6oCmiqn6k/6SKkUDu2NhdsWRBH9/GODUdBC9ZLEqTT\n4zFxMayVlGPR/lyHMLG6sHbhI/0qeEAJD/JL1pQwFLHtSKz0Fdn6pbTYfJ7M\nHGVtvPYMzio79Qd7GZWToqasv4EptqAP6EJXvGboLnVvNonWnYl3jSK0v2Rm\nnl8RZ3XnYSbYwax6V5xXIiriBrEkivVAMbId7oeKniSOWRCwJHu8ppaKm+zC\nalQ3\r\n=EB0i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGcelxqMFnjTfCP8laorEnWZxMge4BbFg2l8c1n3I6RoAiBAAq2VgQUWJ17KIeFD0Bd8+QFyhvkmX0iAQBp8g5yzHA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.2-beta-1641778794000_1641778998211_0.7072938867686083"},"_hasShrinkwrap":false},"1.17.2":{"name":"playwright","version":"1.17.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.2"},"types":"./index.d.ts","gitHead":"b6eb917c29b743e8d63004ae7a24974404461198","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.2","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-u1HZmVoeLCLptNcpuOyp5KfBzsdsLxE9CReK82i/p8j5i7EPqtY3fX77SMHqDGeO7tLBSYk2a6eFDVlQfSSANg==","shasum":"918b9a7e43ac8640fa3e2162ce0cb8b395c55fb7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.2.tgz","fileCount":9,"unpackedSize":21597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh25N8CRA9TVsSAnZWagAAdDoP/2xlzP3YMO98NKceIVpY\nG7j12w3x7/XJfNW4wpY2rQ0bQR8McAobdWAuJsWvo399fM+99GPVbh+ItoDS\nsYcoJD4EiBAzTgDVrDoNsLYV01Q1cu0Trf7LN7/Sr1je5xKwQ1uGtsP14wbK\n4sHUlP6BmMgzv1K/bB3ggaKoVe/2TyD7K5awx/wUjvvToYou/167YPm8wkB1\n27Vp89uLUqtL6xwRhFebUDWdciNBsPlLPOJw7bK4PNDUGLvgeAuVqpG9Tm//\nZPOvDUZ3pAwE7gYoDeNAE8+ZmvnvOWV8oupD2XOO2vHXeARi2PDLziVnxSw5\nVwkNMIMIbE4ljzuL/3Yz0hB2Rt59+66xga6Ss7rMdbO+0FcoMt7T6S0jJnSb\nKtUDmD8QHYc4hAsI0TTOgaJbAWYWWwcLgY55JzXgtdxr2HS6vBcyOkVT8FhW\nsRL9tZA7jkQ/sdSAM4knaaELw0yXh3K5v4d3R/LbMODq8/A4Tq1boZmh4JTP\niisjwEBGij1dH+7m/NSQXst2fn6Wc4JnU1PESTrMYodmC9jc+5iqw6ah7908\n1t0U2Ut3sjbHVgOs1LYBlEsKMsazupZF1BmrDvu8Xu5n39YwXfEgqUUlWrDT\nJEraJAMhhsWt4qy1UHVEnJOJed77VP7lModehGnebj2q37jAz7E8jXKNk501\nI/Za\r\n=sJKn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHi2nIGRTNRPGJtBWiTNF/BGE6VYREeOuIxFk5B57KhKAiEAlNeUwZWHnsIAlA5AeiLrGlEy1jQzkpiLZvowYTz6XCc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.2_1641780092102_0.4631016556650256"},"_hasShrinkwrap":false},"1.17.2-beta-1641849733000":{"name":"playwright","version":"1.17.2-beta-1641849733000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.2-beta-1641849733000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6fb16795fd515d9d674393241169aa8005cd1b62","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.2-beta-1641849733000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-wpDqmUjOhJ+NOX/RpfJSr/cGcD/DkPbePBsjAzvkJjB6OZtntNUGd9hb4ewQtx8HPjmGy78XMXv7VHsxMDus8A==","shasum":"80d4ec849ae029a24d793f6ee6354dccd39e58b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.2-beta-1641849733000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3KQwCRA9TVsSAnZWagAAUrUQAIHMyff4HI8yUQg968xC\nAGMMCiJh1q7F85V5rK/CsOOAi9x50HHj73m84ZoeFJgz/eL2xrtKZiniwYhX\nrmYX12WmmJXCOUBRzUe57xwrAuksIkrBNHxtiGowlE0zlN0AkEF2SLpnijVu\nir3NeDUMJc0Q5VCXwVvwTC+jKoiZEt2kRertNGfTs+LFdfBuPweOIIec5nZ7\nRrx7am7pHRcYwcKFpwZ5gwJtKOZTLPP21ldR+NFfqFyvvcyu1QNvuGN4WnBM\n5u7JqZVA8K0PsOHca6TG7t4dM7F3uxdXACc6i3OQTtDLlYEVz4y4KChOkUZI\nnlL/2HvFNCSZ9wa58cH+rBf+7rXN0em+K811ejdDcT0BB4JYtGiNc6yGTBZ3\nHqvbJZpZNUKPk3QFyOBoA4DIzx1obE37INGUlTHgYeGrsfiW9EzCvTv9lqcl\nix2ES+whwGf6ubusVgH6vS+Ekf3zaiTOAOEBNnQJ6NteIm9XhNAtTfDRdnTP\nlTWrpztN3vgMG4KFr4ihtUy5ux9zSLoiZNfOGCl2mYIEU+XkG6os1dxSCeVm\nQkbu6hX8vpIOHKnUiLwWhKVCWmagIUt/jXzENELDmx1YYKMAi7UlXnpvt6Ja\ngCBhxDL/EjuG4mp+n5kvHKn55lL6sWQiSz2GvyO8Z3SuzdiNhMR58Vo1/rZU\nJYqZ\r\n=CGf/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGZzJ8BNHiG0CPDMv9XtATi7jR+L8cNQktJwqpM9xxFEAiEAicnO2yOiHv8Ejz6KJHmdMnr1SPFnkqTdrUdLG4zWubM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.2-beta-1641849733000_1641849904347_0.7097411379028828"},"_hasShrinkwrap":false},"1.17.2-beta-1641852700000":{"name":"playwright","version":"1.17.2-beta-1641852700000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.17.2-beta-1641852700000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) [![Join Slack](https://img.shields.io/badge/join-slack-infomational)](https://aka.ms/playwright-slack) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-98.0.4695.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-94.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a Node.js library to automate [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org in Chromium, Firefox and WebKit, and saves 3 screenshots.\n\n```js\nconst playwright = require('playwright');\n\n(async () => {\n  for (const browserType of [playwright.chromium, playwright.firefox, playwright.webkit]) {\n    const browser = await browserType.launch();\n    const context = await browser.newContext();\n    const page = await context.newPage();\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example-${browserType.name()}.png` });\n    await browser.close();\n  }\n})();\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```js\nconst { webkit, devices } = require('playwright');\nconst iPhone11 = devices['iPhone 11 Pro'];\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext({\n    ...iPhone11,\n    locale: 'en-US',\n    geolocation: { longitude: 12.492507, latitude: 41.889938 },\n    permissions: ['geolocation']\n  });\n  const page = await context.newPage();\n  await page.goto('https://maps.google.com');\n  await page.click('text=\"Your location\"');\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n  await browser.close();\n})();\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com in Firefox, and executes a script in the page context.\n\n```js\nconst { firefox } = require('playwright');\n\n(async () => {\n  const browser = await firefox.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n\n  await browser.close();\n})();\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a WebKit page to log all network requests.\n\n```js\nconst { webkit } = require('playwright');\n\n(async () => {\n  const browser = await webkit.launch();\n  const context = await browser.newContext();\n  const page = await context.newPage();\n\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n\n  await page.goto('http://todomvc.com');\n  await browser.close();\n})();\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4b90bbf5389ffc706a646f4d39fbd8525e34abdb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.17.2-beta-1641852700000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-m+YBdyD61p+ayq1glepQizdX/vw/Lq9+PaIjJSDgADxgWsyH8rAL8BHkxaTmWkeOyMzTb47GJrjr17JJcKbWcQ==","shasum":"2b2faecc6d3e5ec061ec92129bd826feedad33a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.17.2-beta-1641852700000.tgz","fileCount":9,"unpackedSize":21635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3K/PCRA9TVsSAnZWagAABPYP/1bJFvUCmW50yd/uzgAh\nUBSokECZjsz/TDfPbFqSPCF3glk+CPYdSWr0ZEew4R4ZzqrW11RFI2b6XZPt\nv/w6AS97KGXamXS1T9EvfDvO4lm7DXCgQ7TITIvr1LeaxEiCUwy9hsF5NjBM\n0BwoPuVmLIDEnI5teHSMUlmx4feTazZRib7f7glZ3s/kpS/Lk4668XsS3MJe\noXMAiFOt9KVVmBhZ7eYA54SjmyHw4DS5Iq66ioI7dVGyWm0Ze2K0OfWRp9uv\ns3gJSJtG9OL7cXzwYrlc6ZezaFCRHOdriwpLTZPqLWxlsqhyjTAz4eypXvZ6\nmcqJXVmFU0EfcIurk8slsm2cjyV389x4HAkuRd6AoebLw0hoKvPBHgxLq2aI\nzhULSNvM9I9RoDpJyfA+xag8sYtUYtBA489uRWDD8ynWEvPOY7knhX6XVqpi\nAYFP5utwQOyqDbKcd6Qlp5G1HQ7qnMAgXc40UIHYwlFBH9YWRatD5DqYoiqX\ngKtqmX6owfjPM409wUkIDnkt2IJ0z8GjL4bvuPDt0tsJK5ZPEHbqjdmQFk/7\nc9FYIInmnU48sCxY2h1Wby7sLtvKorUlmfoMXBGc6qIQeoicbovyF+RI11vh\n/vYjtEWdTJzxwq/Rj1HVvRa8huYLusGzCy+m9IsrUd4ZU0P1c8OZXpxdSeZs\nDTad\r\n=zUsv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC21F4MSmP2OWGZwx8kCq4akWPmEZ1gPUQly9am/yOUxAIhAJfpfcqV8F5zsHs6vVahTauWbJPtVJ9NX3NimomIuG5D"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.17.2-beta-1641852700000_1641852879284_0.33527069855282776"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-11-2022":{"name":"playwright","version":"1.18.0-alpha-jan-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"62095b000b9ae4d4afb4ccff9f796aeb66b3e851","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-11-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-7Wn9RTaplgIuuXA3y7Eo4LuBmFPUv1DJd0Kuwiryn80DoZeq/x9lfCo5mxPsQYwPQPsOoZBIamX1bcJUcxcLJQ==","shasum":"a665c26cbb6662623d33bddf1ec1327d4e644c88","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-11-2022.tgz","fileCount":9,"unpackedSize":20922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3M2sCRA9TVsSAnZWagAA0EkP/jb++0svsdIyVnHybgXh\njgmXhHu1WO2GpDWEkklvm8rKq3YsEcDrptbEIi/F1DUWPZtw9nypt9kp4TmV\nD/Zngk/M6+Y/+YLIOM2aOHj5/2sd096IALs+oEVkfvCjN7CdFmaqioSU+4jd\n1fP4WJPzH6lV6EqpiD0tDmIzpTLP9Qizxd8rHTxsjM255bu3+xGOG8ljfhce\ncc2trRtYcx8IDGuXURujyN+6Kni5IdDVh3Wj93q/Nj4A80EzrX0Jswuv4gcr\nEvLfl3Cg6dfT590SxD2NcV1LFAW897wYVrGGYuA8Vwk1Kt3kZvJRXBIntTXd\nyGhI/jkD9EacKZSj4a2PzITuZ6flh073SaQxWcTqnSUGt8jhdCkwaTy6t1r8\nC5HuESNLowAdIrDtjKVORJ+5OlM1/aK3tPBdmlKxR3PnMV66n0Tdc0Yzw/Ex\nCwNy4tz8cN9ue6xm+ty1TTD1bUTgKI7sAEbWNPlYP5o+Y14v1IBcrbgm7qb3\n8tb1E60XhDIo0UdpxTUwz9h2c1qb8IBaQcsWNC1Rcc0xecmXUNh0LKalcndE\n4zXv3NHDf+3rE+7RsEByYoiAMmZzfPhPqt/wC0eILK9Eqkrc9XJp/S5uqTWs\nvILFvDXvH15sSO8FnxV6amvDvD7y2oya9UCKSDv+3sE5Bv9GaVyiE0uzGL+N\nKHSo\r\n=65Mi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUuNHe/CRJ5D+grK+7wBycuHz0AxTHrtrQvHqiRdQowAiEAg0QHqNPs57BUPAJV/+3ZCqJR6N+Dj78uHAnZ/ytk/Tg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-11-2022_1641860523814_0.3377012818565135"},"_hasShrinkwrap":false},"1.18.0-alpha-jan-12-2022":{"name":"playwright","version":"1.18.0-alpha-jan-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-alpha-jan-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9db6ac44056bb07c755dd0cbcf392fe02193c840","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-alpha-jan-12-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-o5iu7SCkaUU8lyzkNieUz1fUhVQZHPW0xAN7+n+FEtfr1DYp0BJNIa7RNuJjbgQaAZRDOfGuJO3IFZnUkbzKTA==","shasum":"9dedd8856ab251813de0bcc5a5398efb25a2ad16","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-alpha-jan-12-2022.tgz","fileCount":9,"unpackedSize":20922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3h9LCRA9TVsSAnZWagAA0v4QAJvltJuTASxCn8P0QMcx\nHLatOoi1yAzQ39alpkRGC718CHWdy41aaw8ezXTE1NrwIjNzOcdyXrJntVXE\nuIK+V+SqLaAS4yBW5lDk1fX/ZJNeEjuQEhew8XsNhD0iHSf09WX9la4FC8DI\nqQjGXz+LA0tdSrnqPs6euK0G5zmYB4QlFza7uLhAygtsJbvITH0njZbpj32Q\n2mRR2meCUpB0r191vWkorPHgv4Fh/bOIsNBb/zQDrrz+d1ipghcRr0C376yM\nsR5CdRvrgJ03UV1FQ0tWrZtZQl2QlUYTu+cqYC/H6cljKFmg+RJOZfjfePlX\nilbz4YVxFaR/dozOi5RTetjshkKKEP50vN7G66WWIUwTnKHTYqXR12O/hMRy\nDdlCrW3Ype+AuRKvgZC7st3RC0av4ioOvLR/RmeJH4haJmFM+8TyiqKk+8dI\nR0THOSkvx4YongT9J7JULoXi78GKivDlFMCQy9NnnafWiZxiuZ220WaIo6Po\n5X/vGwn6sTRCRhmUy8poiHbiu4XeIVXfX6BnvULL5IHUPqHzpxlSGSzMbG6I\nlfTzVrZFTIAuwJNd3tAez3mYp2dzkbmvzB3D9r1x61a99+iSSy03K8v3mtDf\noM+yKkxPvsHb/ThuOpzta5tK5MfHwdfB1vsA+dzLpRWqIAB4kZsLAE7KyVTj\npgq5\r\n=HsbQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEFw5OqPzcnpbXorZgBsksYnF7RmNs5JvvmSuUMVczxQIgJPttS2U6pv4xNJgUpJDx+CeWnUReXr1i6UYhmPgplXg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-alpha-jan-12-2022_1641946954988_0.3639483811043094"},"_hasShrinkwrap":false},"1.18.0-beta-1642016269000":{"name":"playwright","version":"1.18.0-beta-1642016269000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642016269000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"853757930d4fbab62ae74259c1072ec8bdbdcb85","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642016269000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-RInmaKV9x4W2y7lNBJVxCEjksuFhf0eo6hvDCq/r/0oGAfdZk2JgFQtNaOSDek+u6RnIl8EWL2ay9at7JrGYiw==","shasum":"4f93d0505be824c6a90116c37bad46ee315c3a0c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642016269000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3zIlCRA9TVsSAnZWagAAv2sP/1rgT8IgS4NZXR/j/ZKH\nV2qajEQkr/U0Ruy9CoEA382DzopiakHxHiPWMB/6tHVsKk3SAnSJv/llHp/c\nMruvHvalM7u619QWz+WjOnB1JOk5FPE18gMTSLBsjYVOXyuB4hVnNUsrTkUk\nc3kkiKiJYXRYpj/GS7zJgcFzqIzkkjIU9c7yAScLxgP2wd4amugg7lu5cMUA\n3pJG6n9ugOo0+Tz1vZ2FhBXtCRTXW4Dh1fwBRrrnDelf7DIza0xBF6FlA8K1\n33ECVlYFFXXIeyfD6tvl/XoaC8Ms5IxkjuQp4hq3AycgVBVBv34OSLcsp/l5\n5SGvyil4bMpV3Df12qHf8DGn7qIVkFURGfSWQyqn+oydqnP1dmSXY+K5hYK3\n0DIc0k7wLxWk2k0vdrLplU3NA68keFjIEdV3uLl47B9FjcAMD3VJkghlzah+\n8K/aPD1jTmeWnHTuPcwlBGV8yrvWxngPZ9frSRfZ3m6qnCvhDLkZ9YljNU9M\nrGRD5NPWLUcz+KUN1SL8EnLwR0IRyCTfj9XTt9l3aCRkAYq2yln9CXqSg9fT\nhNOkVvCBIxkpnGsC8OU1JvMalvyaCKBMf53WoC/XRMtTVqok4xUMUgCbMUa2\nTbFvMYXbhfVpd7PUiLxlCXxvfT4+ZOMrgrnbMvBRwCAF0Atr0pZ3KSuIw+lU\nX72P\r\n=P/Lz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbzCZ6bVRHliGJQ8vF/v79RR885cGN/t4PjRjMqisjzgIhAPePL+ggI0ptAOkx0dAXR7btI65AtWI0u1wuLA61v5z7"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642016269000_1642017317226_0.2600764183644311"},"_hasShrinkwrap":false},"1.18.0-beta-1642018269000":{"name":"playwright","version":"1.18.0-beta-1642018269000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642018269000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"36e13c67f1ee7c147663441557dd26b421d1cc72","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642018269000","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-lmoX60Ua/I3kHqUfNe9cZz5wZTGHSGFSCLxrUUPXN5HdQpLBkYlf0s+71QleB9ru5E4Fyq3Myx+y3Bo04seX4g==","shasum":"b167e6a0a70962e003bcec30146bb0238af5e5cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642018269000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3zZ8CRA9TVsSAnZWagAAs7AP/3aSmfRIdMK29S766lAM\nOlasGDFVHS7/I1LRtQ2eACD6sLtFUR7uDDJxqMlHng4QJHQ6Ns8abMaXCnMf\nPaaisK9sPkIeiS4LMhch/+FN/iCkafElTnYwI3fMMsrqbkZp6ScNe7EwEiRx\nmMPZ+HRjeA8WoZpxODu9lSRWGOPc5fn5AU9LqgljpmYuD8eKAMnk9mfRpFQA\n5nyoXz8WlqZavEQ5AncTnE55griXyGNq6Cf0jqX6xFa+oNz5vU97FUBR271Z\n8MWssir3a/DVkZcqp3cmE/T1qWaByzDoAjuH4LYsZ7Xc+l9bAyrkW/fWrtw8\n8/tHnWhMC3EW3O/Am9XZC36i8yIYOdYq+ENSrOmiNKJLd6W08xKGvyNnACHd\nvZo3H5vVmzBcCxRsPscA7+lbdrFx0is1O3EAwXYIn6F4A4CH15rELY6kZapp\n0ueBWy99q1jiheRtFONlzQ/0nDMT6cjkMAIN1oRX9Fj2eYhDtlWSPFLk7gMC\nDaEYe2pP+/otLIlUbGa8nFQRe3ciecnEAbWB5QrjensW9Wqk9p9FKUxlLkDn\nKVwkKV30+8/hfBwP3xRCMxrBdDfJFRPcYBrwddnnaF4m/0H0WB+qg0/v7RgK\nbaNBgLRTQC8EDspUfhV7Zq2xl/gZcYapyej5mvZmJ0XbtJ2Bb7X8H5uhJERc\ndDIZ\r\n=ww/p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYu/Ifm1p4Ne2Ug2YcWjbEB9uYY+4YgqOreXyqKUOUxAiAMyeu0FRIWQmAfAPM+CmcwpjrtlDKQ+ei0LRWW2aZMDw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642018269000_1642018427930_0.597720705090693"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-13-2022":{"name":"playwright","version":"1.19.0-alpha-jan-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9285596806b0b02a88ca8fe30d4ccc43550c96f9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-13-2022","_nodeVersion":"12.22.8","_npmVersion":"8.3.0","dist":{"integrity":"sha512-tkqhfzbGxLE0BszPsZViXoz6vbu3wb2vNcv421/JCl5tw38+buv9MXaHD+S7jlw5IcbCeiXCdSJlZbCKgl3E5w==","shasum":"963a64871414acc759bf96130d551d446dbab724","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-13-2022.tgz","fileCount":9,"unpackedSize":20922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh33CoCRA9TVsSAnZWagAAGpwP/Awk28Mu3h1vyCeU3gsc\nORasMWuJa1LcUlP4KPMpE5X/sAQao9SJlhihGAe5qaSM8hqS6bvtUiy4AeMj\nIS/kGqWfnGRkZkUdC3a7/Qj+UtbqFE7zHRnqdxnECF0eH14LMVmuod1T5qAk\nwLqeMaz91ajKrnheQLLA4rR8uKqPWA52Dhz7WS2MlILPa0oCk6KQoSPxGFIg\n1olmmJ1cGJqgwQE7zEitHY5efEwonxtKz1/xpwVhes5182x1RXVQ4d6FVYYb\nrecAYSVuhoW+UGXne2Ma2NVsF9Qw/mXnmDYV+Rsv+j7XQqvXLxTBwDntPlgk\ntoAXvCxwUn2jNC6PP9wP3uKVKCTo/FftyUcs3DuT+JHK41AL7cGQrP+fUizx\npwRxxO4blKhALTdFyt0K7e4UoZVyDNgD7dBuL06Xi7qSW9Kj2fUoLc6sszIC\nqwo4ID063B2EDJYwxpi/GcPhWvqlrU6Pl2cOxOdnzMXGSWn4dop9jkj1D60Q\nJj7jvV+gd57h/CI2oAOhHWulIcM0HNKxBvd6/qoNNM6EC1vhNBVjCB16k+Ii\npmMCb2V4TsmhCtm/fENoO+gOmpmd2SFug5Wpe7KBi7gedKan75Jenmcr2RCX\n5hQnDs8Fooajt6r5WV4A6uT6E/HoSqzV3DcPGey++bcofwZ7jI2c9z2dLN/1\nFFlo\r\n=OKEN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuwKqtJby6KILtTllK20fb0e9ozIKKdUXH/m0EkX+5YwIgF9wwKK6rPOL6myS47VCHmtBijvES6mZ2HDDwsRvbbBE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-13-2022_1642033320051_0.4642138148634012"},"_hasShrinkwrap":false},"1.18.0-beta-1642110503000":{"name":"playwright","version":"1.18.0-beta-1642110503000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642110503000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c8814cce7d1c5b8f0af18cfbc03a0f0f1fd00d96","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642110503000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-3Q0QEraLPkneI672wwjBollpbCMKfDtAb4Ef6uIGiXoz8dKCa6LdGHBNEfpXtZgKZ3Z5O4Eajf6pdax6BfLyqA==","shasum":"6489cf1e2c185652da9024453747ff9994dc780b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642110503000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4J7tCRA9TVsSAnZWagAA5V0P/18CEfQuMX6tgYNtt3hc\nz/MdffQ4TWZ5MZGx3d97mN90dA5UsQRdXoP55CP1TPj+RTXjEg1y4TY23Xr1\nwbzzPEDsGTu9DcCWUZKqmSwEQ2dZ3UJAxIhuRj2n0WN2QNo9yXIBpzFyrS9y\nWFBsPffYwEv+5rVGtxE16SLKY+8YSfPd3nBLa5OMByZb/8YgvVFZpNpYN0xe\nSZFpCRWAVOjG64f8Y+uydL2UuhLYnl/eC8bWLpLfSbKorGLOKVR3GkPugvHz\nKnXROG4OXiUj5sO5Uzjc6KcZq98bXo39bVrKWhhLdQ20CW+56/MSaD8d8oiH\ngKbWvJOZesl+L0FPWNcQqG7vs0ODv9WypOMP3zXchq7NYEKQ8w+faQmVd5e2\nsDb6b3TDr1AFq+rXyl/8ys49P1n0Rh7OJ8Uq7IpUH4vnUYkzHPeqVdfhCS1v\neH90zZvVqwGhFUqtdZnqBhGiba29EfwWgk2CyB8YdBcIpx4UkFrRcrHJ/c4m\nlUS/psyivQHDPUkET388kcwqaMQ8LXK6boThQFtlOYC6wFX9j6iVORj/C6Bd\nPulnpXjh87bj2L6CfpnF67ttJi8aowN/p+LjumTkhto8qhIrBOl/PEc03cK9\nYeXpVBSSCMa0nfeBfrG9dScPdLXftWY8g1SGwlRgWCUjfiouc3nY4R8a0aUw\nAY7U\r\n=Oy7y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCg8vk1Dt6zxlK+MvjwIUi2aXJQvSv2KqVV3Hq/cDciagIhAK6J4QkdcMtv8UPiRXNXlhTYAmk0vIkBqyBWBNmZ6BP6"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642110503000_1642110701258_0.40636209082564534"},"_hasShrinkwrap":false},"1.18.0-beta-1642115083000":{"name":"playwright","version":"1.18.0-beta-1642115083000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642115083000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"12edb702437c988eaa191f71f8be60ad1f90ffe4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642115083000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-qJEjm7xvGpNNeqapkQwdDMXJfGyFM8+JyuiQa04Uh7uYhc70421naczj8J9GnTowVbPkJgKfe1I7aoqBN/9LeQ==","shasum":"680dc3cd6a03ad0d2e9d293672b1de2545e6564d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642115083000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4LC/CRA9TVsSAnZWagAAHl4P/ROFj823+4COrq20U5yK\nDcYDhBCnAKpyNTGGaFT8n21bIfLGVTZ2uDQ432NgyoSmAi8b8dKP3XHFQV/8\nGEJv6omzggFUvWhLPr2NlliaTeYEyGLUf4Sa4O3unW9g/1nkNffeTY7ld3xw\nfkHCYDhDIpB4a35YIP+g+0PTpK6KGWfUwAHomPRHUx8qvRK7/xLlR3ywQpc/\ntyGdTQ/b1B8Q6bY0lj2XWlgZr9xoOb/DQKNsiNuskfqZ/vPS8QZE762SlQ/6\ndgkPQ15K1d2Fg5g2Ws5VLiiIGpMLtxE5q58+PJJMeCTSK2zvdvvKuR0QRUO6\nOMDQQFGaVvU3lbTI+ZEAbo7UtyPGacFnDmzB5nK1lUNXAThIor2fhY99jpSa\nx9hQkNIfSDnsuem6XvwZTMyHMOKuspSi13dlAp9VClMEFaNdFG/LpjH5lcyc\n86GRahjfk9Cjps8wKFxBL3r0ez9vo1OIdGsOdGvy4aHo0hd8VMb3FgR5z3FR\nYMfU91e9qu6SprclqIJbwTcp8VGZQkflf6Z7pGdXwwRxkv74dHrmJ+mKfEcf\nKXgdv5I6OCOGGlwFev6yCmqCAYMnRra34cAXZ6EQKD9aBEM5A2RRlmnc9gRd\np1oF3D7e5uyKZsQx23x7WkC6ePgJM7irjfBJSeCfO6orXcnW3OGe6K9cilMM\nHKzz\r\n=gPlu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJpa+LGCwsQ8PVNF3Dy2PvPqx1TnbW66Lj42xZUrTtcAiA16kM5eaUe/IZ/JELEnByPIjGnnzjJGCJISqHyYajuKw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642115083000_1642115262979_0.6285133696567293"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-14-2022":{"name":"playwright","version":"1.19.0-alpha-jan-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"badb5b4d137eb73adbdca4f31e5e86fb33c8aebf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-14-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-9ImiQaWw1rlicmFB2JZGjIncsCesRG0o/X3OuCGRIyLMKRUJ8curdnJt8reEZ0l2RtsAAEWUVtXAYIDHO3iZ4g==","shasum":"e66356c1b849998d782624a22368560ff81c8211","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-14-2022.tgz","fileCount":9,"unpackedSize":20922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4MH9CRA9TVsSAnZWagAAWdMP/1v3pMmcGeFc0YSucW/1\nZEdEFzzbFwiiCQWao8VSBuxSS5B8b4NnNn60AIx3g+PlwmTrgapi2w6RR4Cg\nfgZULoIupJzRZjlXK0ah/U6uKDKha1XGHnMOzcRpuz31Z/TF1LIcP5HswrT9\nteGyXfQPkfuqWBmnSmlap+U5kmgT876MaFRo7GfFAKtcg1rhSGRpQIbxlS6f\nWvrTJVegNu06SJlA9xak0bpTVXcXIsgsUvdDm2J+AUNJvYQXhYFK70AR/Sgy\nBfNl8p+cbVdk9A8Vq6ja3TKJGp/KuGvhcmWEFNTVsYR0MQUBw3AreL4oI8yN\nBr8w1xV4z6+dPI9ClPqt41uSCIILyCc37nvgXZrg+9y8S0/yzy1Snl5wJ/70\n4q7qrNERB4Bi7URkovOQMGFtHdPxkkHcOk99l+LCXIiPKdE4sX1I95qAUZ0b\ny0cuD/KKhXoDlvNRBvyP6fw3eT2FRVAioKusOZxQ7IsEu141YWuHVcX6ShqJ\naBFCi1ssy2K648JgFyF0PN2NVUDzHL81rEmPA0bV4BIX1Ei1xki0fYAmd1bw\npU9YxDBr4Yh2mfiEpvvH3FzUYY24X6TjAe/Ejm2z4IWYPoglGpXnRWy1vIy6\nfT9rbDEQ/mNaxp6eH9ouLQkBxtTCfk9KR8SE9C64VrEOJGLEYMGVFCguYMmJ\n6xiR\r\n=L57l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM0soeplg/vJt9+2bqlLj3mXN/SE7OCPaOe8XrPJo5lAIhAItGPcPl7mzL9GdeZ3QkJGjG+sCknfwoZZh5gaIq9lSI"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-14-2022_1642119677318_0.40010298735096606"},"_hasShrinkwrap":false},"1.18.0-beta-1642158149000":{"name":"playwright","version":"1.18.0-beta-1642158149000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642158149000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd02142170748ac57622f2e3209fe0fc350bc9cb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642158149000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-+MOoR+X02KikFYHvSqBGTuh44Ev8XSC/+ZNEohtJ+WrajJO4Q1P+19g1+cOJc6XXu5oWjKicnnfHlRteTIaGnA==","shasum":"2a428942d04847f9e515676ec4fbeded7b15174e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642158149000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4VjjCRA9TVsSAnZWagAAyoAP/RUnHM/Tw2eqeHPxaETa\nUChUNSdqwvQxyb5HOrECm6SLr/y8nmWU4Qq7uadgGJFe0hhNODHmtNiR0wgk\nEGTrvHtddszf82EdUtSummbgasjQGrDQJLy76bAXvhfLCCMuB0on58VchYga\nmSKf63zVh1BNE2KM3R+HR3araWA54Qv19iC/CnKVtSS22vJBDlBIwgA5g8pI\nfIpogH0jDD85hY4ZERqTY13XIq/DDYvMxYbMIQTJUc9gJ4OzCtfcJ2+WmHuM\nU3MleZeM9pCRSxhWpz3+7SRvSLvr4D7uqzQVFABsRIOCF05KwlCX2eDmyzHc\nCBf/4933rbJPGrJxywh/1h+YZFOqKWIzuYBFDMMOLaa6jc8eCeIH1UmMq9fz\n/723bWJlOVAp8dh0ONTFk0W/WUEmb72TO3NbBC9iCWUFRJq8nHjSTu+Q9GQC\nN1TndlcN/UH1Eul98ABc/i95qMLvJH16rZMKb/Wx1yShjwBHuOG8v+TYcp8u\n3m/LClwg50pph2PhyCAgObfY/basM8gbP88gMdYfgjMmEJrnnStoEx3WCWDE\n9Asd13f/1Fp35Ac4FKEFJJicXs5lefJDl3+R30ip4zGDzxjigNQPruU6qnr5\nn/Uas8uJgqDZ7I7Q4OejLRh1eYi3fj5BiCZm4mutjj0EjZJcd+6P/dSkZ/fw\n70Qj\r\n=WAzc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHze5N+DUddQ9FhyYV0LVAaagRvsO5DeMsn/mU5FFPK6AiAg1Bs9DGRdNVq79T4ow2qMsI/sAfeEgcXNe8rAuR3Vfg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642158149000_1642158307393_0.36281990518300655"},"_hasShrinkwrap":false},"1.18.0-beta-1642161715000":{"name":"playwright","version":"1.18.0-beta-1642161715000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642161715000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2745a18a481d5d23b9f96d6c254673948599bca3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642161715000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-whCeiElNzouOEaVziFev298IJupSKlbkQ3v+HoFfuV8FST5/QkX6lsOZEfmO/z60iF1EZXj2OAdpMALE0l/y2Q==","shasum":"715c618e6f2e9c45d8ccd56cd7b2c02f640725c6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642161715000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4WbdCRA9TVsSAnZWagAAZkIP/2qgdlf51+uH1QbOrUpv\nMhNTiN4RDOCl2rTmmacp/Pf0m3ztYj9Xgq4i34AXiCbCHjyOlJia4GIn8n88\nRYE1ATKazDIhf9/W2Xyqf9D9wsI30dTs7qK0fh/M31d0Dc2k2qsRdm2pjpsB\n5jopgGrAQOCe85guboK4E2/y0Wjq1j5m9gRGEyucWj1InsxnrB1MpEg95Ai6\nxgCakPbqsjP9ZlL+3CASGUH+eyuUuNAIyMBIa2ytw3s28ne+hEs3yME3xMrY\naASnS3p8qqDSXg4t/DSwlOUsQB1hmb8mWQ9N+zjD+rVq0Uct7P7Qeea+psWb\nkSldsMLGfLCZWzPaIW5Bdbha9FeZPaomhb10hf9mtZU8ZI1Lh0EFJEp9qZu9\nX4Vib5Zxa7sfRfkdKvSNI67UJIAs6Q9yn1s72b4Q/l5EXsE5iZAdTirrAe1k\nMlEJOMvdGCcx9Asf0y1CAQ4EJ6kxo834ET3WBwIEN2xctZIZF6Xn420D9Ph5\nVaWdIphUKNoMNLwE1dfUKh3A8T1VJdsCndgpNeqGsrTHMiyxTAU6FZ5HFbAe\nVLAdMEJAiZjTWheaigoZ7HzrDNnCtqZkvWoJ86rykCoUcKHVmCgTlRcDPf4d\no47AxETTK2ucWj7X0Diyz8cQelQPR/C34KGscl0Pb7+n1C76SfEtWVhn+Mll\n0Tzk\r\n=lqep\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgfTGAK0BJTB2ys2fMtaRmURChMxqRl6K0cIl9b2PJOAIgb2GMovgjciHV+Y+TtgBbVukGsL6KblhWmtG6IwQGjEY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642161715000_1642161885381_0.42144897569169304"},"_hasShrinkwrap":false},"1.18.0-rc1":{"name":"playwright","version":"1.18.0-rc1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-rc1"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2745a18a481d5d23b9f96d6c254673948599bca3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-rc1","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-+68fRfn0ybC/wszfKTet7LzkbWNQj/NQI4pYooU+Ud0lBj0EaodnPLVvwOHZqUrgA4ZNRRKQu49+BGQU2nxydw==","shasum":"a9d4052f33dd61654215dd21dd18b4aa30d2e655","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-rc1.tgz","fileCount":9,"unpackedSize":20894,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4YDhCRA9TVsSAnZWagAAt8oP/26pNe4yXJH17l9b5zQ5\ngjimaOxXCdhnCRDZ7ySVTbAsPFK2uzf3D3jLw6vrtOF9g20WHTHCDHKbqNT5\n1TGhICOw8LZLwnbdDT6E8wnqoqCdpjFrZafMP0pDRrOrX+JnRJ+XrZvRJbwQ\ns8QuDWo4+NH3yqylVwWgFCYzyIQJVZX4pCadCKPYyt/x3u3olAEJSu4NjtUQ\njS/KCmIY0R3q+588F0/sl2FX2gs3zu5zi5fY1N5AM4/2ZnZ+2j4o/aIjTXfG\n+pHBan38ZWmZli+gWa65QiXcrGjhdyUTvOQF9N5kAReh43AuDf0w7zqB+VjT\nIMwUO4sl/sqouzi1iwpGlY1QlfCfHx/X3d/wEx1IUj8WsYEaoNJ7CBclTJ6w\n4MOfdCTUONL8gNgoP9hRJf9xhi57D3vVOMGnSxLaVnHmywoAExLYkSuTv8In\njbPfXsBkPfFGqnZ7eVOGh0maSVjRGiShq34smeF3kliIN7Q+KZLGi/4LfNkz\nYbrw4jza0j4TmIK1hs0O1DFQ3sdG4Q5FcZXb5RixZMx381QYPN702NURJp+E\nlw8FEFZSvr7adLoT8gF3kucdedZdS2Y60lREvybF9VgUtSXqdfcNAnws78xB\nGD2wz6vWUeLU9viawRegOVfxAf+HlyomEy90HJhx3h8manpl1kK9+JL2Pt77\ncNIe\r\n=5vc2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGGWfs/XRssdT+LXWkx0TxXSDt/pzuM4E+JbtfS0QIVAIhAORSt9Hi5Baisu4dGPBr1IGWWV8F+vRa7RBvc83jX2KD"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-rc1_1642168545733_0.9160002768908906"},"_hasShrinkwrap":false},"1.18.0-beta-1642169289000":{"name":"playwright","version":"1.18.0-beta-1642169289000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642169289000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f696811fc8317b9c9ba6be625347ecbaa88d9600","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642169289000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-iSYncTcxcWD5WySSpJXraoyCgJg4dcQV3EPDTtrCdr3Z8vTuyR6KXYpM/gLAQ5mWgfMRRWU9aWpXPpQLmgQq8A==","shasum":"5e3b957fc7cb68ee33bfdafdbdbb46ba6a8cde4a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642169289000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4YRoCRA9TVsSAnZWagAAEh4P/ivTiMfu1CX4krEzZKTT\n45vAVzJiBINFNBSOUwhNBS3tCZ1hupUHrc76yCN9Gh/MyMB+zC/4MfUfxkUL\nQkvxwrig3ZurOQKXtPMdh7VgRLYFUsKvDzBWS2CJ7nHX9llqlB39lTFvS9r5\nVaHWvYspGJ5R9lmgoZKeaLYsSRymyrWn+X2Pnju0YmAywZwdOHBCD3xet9tv\nIg1lbVI63yVMXh1B5JuN1otrTMrxpADDyWALMc6znrMUUXhZ3pWS//j2sfwq\n+jyH1RoX/MdqhY5FwZPuMxWjV/FCGhhg7VL2lho1HbbqZwHYaZQ0f2jOqrXM\noN7Ci5f1V0xXjQD626gS84o7g6I/YnSlNfk6Ul56pbPiqzjugIv4sGojlegP\nrcbRsQdx2yG0KeD1W3sFxMlZ4WYf3h5lA8l5XANiAmP4OL+zWu6cqdCbnK0v\nVnp67eIjOjSauV0D+jxDBdCCYIe/yYj1kv0crloVM8t63Oow5G3eSvoQtXNO\nmywM6Ym5meWi0Jcoh/crpxdbvguQz4SxY7gOHCgnqYNNtWWiuvsTZod5rRdG\nK6khb+t3ZxN8v0S3Y7dlZs+2DSBXVJTEPud0aVkUy0cqyk9pvxIt7bZlyxVe\n62/2rNDAU7FSUJa4gZPiH/5kPl7GJiYK/+SXsT4NnVM6a0TPuJdaB55nd+lq\n8Wxu\r\n=YEo1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfby3zNkOv/Yagpd+v3lzFYSGehMpIfdZsEgTKl0bxSwIgRUCZPrEYa0AUv67IstlWk5cxsYfNTZg6DPfCZm3qRHM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642169289000_1642169448006_0.9521871284142616"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-15-2022":{"name":"playwright","version":"1.19.0-alpha-jan-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"205969e95827f04068ec460a849e2fe6a0cbb4ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-15-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-rti2IAU9o9uM+bKBKbXgb8xqC0LAJLa8nL3tXYJVWs/sqhnSPQlqk6nZV0xnIajsoR9FqQ6IjpfE83GnMIM+tg==","shasum":"1310e4e0bee75a81f702c1cb2f3dd27a8f76a234","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-15-2022.tgz","fileCount":9,"unpackedSize":20922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4hN3CRA9TVsSAnZWagAAONIP/0RWdzORJAtueksWM0Ku\nID1330l90FzcpHaT7ZyW3n1BqUNLVdOhyEZItBVTfJcH7gqx2PPEeAR5bQaz\nMplK9J+bwSo6ntrN08yg/i1mEIoUKIqtZpF5snmuxiFuq/0SuQhpbocKabL1\nQybee6jEngswSZawEAEOO+lKTmzkTKyPnG1TPqPzoRgJnaadAuzuXxR1AmGh\nTz8a0Jdc/T8pcxpIwzsT/OvhzYQKfUSTt09JHLK4opoZkxg0wpGc0K5wdKX7\nJxmYeVZcXJFOUXJs7JQl3PpBMynbtytWNHuhDdSwjYQLI2NstdRqnRdpbx7Q\nJMWqYz4U4eI454EiwjkgDL+xrgI8eLeJ5J7yUPbiWzG6rjykorgAol0xA/kr\nEWPgbUC74+I0ZkHrTguImwwQWONP3dQ3Je0oqh/mmwzcgSlvhuXN2ZtXV94m\n9q+HAlbUD8KC9hOKbCEtCCp9y18lIx9WujjxORiJY1et/a4qyb24uJWqWylm\nkoupLe/JRBYtmp8vO33FizsBaf3+8m44O6wbfCB06S88Yom5gJQkSnlS7MuM\nlReEznxARxwNh4OSVpWaMJXPegzmXprgvgQJ66MfhcZZCTVJWBm6zKH24ChT\nZyGur2MWw6NQ3JLWkTxee1wLKBFNLBywMm9acGezRxOonsVlmtxT2RGlV1w8\nETJI\r\n=uXdN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq7+ELpUSMf8noKUPD53q3l/R7FRBbVwYzMgjIQxbc7AIgXS+nX721Qgbk+R1qQK9cfugJckO6IsE0pr4+aQuVgWk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-15-2022_1642206071665_0.6462706723495073"},"_hasShrinkwrap":false},"1.18.0-beta-1642211440000":{"name":"playwright","version":"1.18.0-beta-1642211440000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642211440000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1781c33748de51e2e7ebf98813f59a6e42927c56","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642211440000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-nuiVrRyyftpI5PShXboWdV5ArxyPGnw9iCGMjArSFROQZwbqwK33xyVldNvf1bZANzw25bHD7AiQEp9DQ+yOyg==","shasum":"8a65def9dc683b2d2b1f548c1541c9b2784464bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642211440000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4ik9CRA9TVsSAnZWagAAkpAP/RqNS2cu/pF+9xpVZP9r\nwN7bs2Com5+hJl5H9eG5ndW0bCEwSwlMeh4VjfzCFODs90AUfG0c9sa4wl5T\nl+Uht0yYrqr/jnyX5FY2IrdjVfFOArJqaNlOIbAgVQKlH7pJrwi+3bl13IDA\nJxM5i5OSCX8YsvV0UVg94miQcvK+JKEt6GzS9c7y8YTpvL/GiyvDovOD+eUs\neq4vjFNjZ+yUY5ifcn1ZodUCE5cTSKl0kMtFaml0xXt31mvP4YwtMmDt4A8I\nsapenZJsEjZEZkgwmNehZXaWUnbTuOQUWW0qgukNzgUjpMG+yGHxJgVkwU2R\n1BgUDM/us8krlnqMOZ7yKydLkvmquHJvPjteMy0F+W+pmKcVE9w1WSFkCHQ5\n9fSjfiysQCkZf+Nm+IkiOZ2jMLO5dRG108b+fHQbNW0UjTfmaWcJ9u0PSR2P\nsq3F4cjh3Ldp2KmvtbaKUjAjiK83ghYfaSf2h6VHukPUmY6sjEa4a3JvzrTl\nIbC65dS6f7HNCwcV0nsiwLM/n2m+sHc+FMSd+EPu0REFiSoug672F5H/t7wE\n5x7M0TfVjdprXqawKNcSr2ifGW8bEGL+Ws4/W7EyKOlsMB2m3hpyqhHmnvJv\nttc6hPWNMPKTEIa5wTeAzQwmt6TuyQQkhoMxVfIcmwHbNRKHFBZKnNHIDgo+\nfsPr\r\n=8ugC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDb7lBoIm4IE5IxbGoOiTQqTjEH07Bbtz1S2nbMffz2UAIgddYtbdv7vNM6F9CKCNvREPBZZHyi4yOHYgF2Ne/wldU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642211440000_1642211645231_0.46814919620707984"},"_hasShrinkwrap":false},"1.18.0-beta-1642212803000":{"name":"playwright","version":"1.18.0-beta-1642212803000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642212803000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2afa271280d4a5ff1c027b856b7d6e2107b5512c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642212803000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-mW/A93SfL8Thalee6CIvKbn1e45wDv+vn4wNuYzK0TW8qFZkmspxg5a5dMnSQ8CLeCntgUKZdOdZxxQx5yH6oA==","shasum":"d1616bf755b9c41c8e2c689d064c9ab7b36a5fb3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642212803000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4i50CRA9TVsSAnZWagAAAa0QAIIVI+ce3dnLrEc5vO15\nyoTYZhcFcaVhT3PccamDYtJau6JLBxW2UVv84ZcTsm8QTnelO2fqYhkLUm6q\nkPa9/W/WtSDvsPiF2lRShNNO+I6bo0CgZH49Z0ii6knotsaBjdEQuGy20UMQ\n/A+XJ9SPUFqXKh3usPSHPthL98WzXeGzY2FZsAvevnpXq6pkbpEpoAaJjGgE\nu1ckQV3FYx5cj76/yG9BrPi3IWTC/L/XdHhZucmWsUYywB41mOE9oQ2qz+/T\nF82K5NJxrPEm7a2I0W4EQuX7ctew84hTmeJwU1hJeZwzpXUUooHO9cqMKqMC\nBhQaccNONJG4RZrLftlraiaeRXSs4GPROPmJ1hG23zFmSZEdq2U5wZ3jovUk\nNjHrkhx0fE08/IVtapNfzZqr2KIuhgPJdNmXod7fQhXvUoX1y9L+YxMphzGJ\nm4fKlLGoGRmpHHtCMidTnK5xRVg7V5TwOpD7n0aPICQq+m8wr+s51aD1vVMZ\nr2ogG0xwE9H+WMz0vuTH81NXfysfKwClIWA5IhOSDVdY9wEfwEa8QU1anoMH\n/igDAMslKfJ8GEoesbWEnfEXOKKYkNp+oNxnxsUP1L5oalotmK2bPeyDPMBQ\ne7WM6xkSmsRVKzuAqqPsltVMr4pcO9a+EnjwNR1y7DgHSgtHF4m2/euiZlJi\ne7+t\r\n=5Tyl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIAYMccNpeUbzIMPgvOZPbG0GRfZPIG3oywVFRl2zKRQIgEh0Dy+zL4ZMm4KigVlzkhR5cZrlgn7mPDdcA6z2yLzY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642212803000_1642212979964_0.550447097666773"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-16-2022":{"name":"playwright","version":"1.19.0-alpha-jan-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1b0c350d0a1c22faa4329c3897f92cd8569b82e2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-16-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-RqbkBnT0+eQrqqycrvwNWjxosn5esW+Tscl6W2B7Lq2EriwBUX7nykEwHNsV4U6HlpChZTbl1/A7pXy4qY/pxw==","shasum":"3acca93d59b1a3b5b98e63313daf5721a2f2145b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-16-2022.tgz","fileCount":9,"unpackedSize":20922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh42UjCRA9TVsSAnZWagAANX4QAKO2mPBSQeoPAcWfoOqK\nhYG2mKWrlXfxzv1lRFd+YFTRmNLTJJzV6umwMgvIvIDppSjE69bPeWHMXFw+\nWshTztpbnFRwRgNmUZmQCk67S/9SBqhMIjAYek1PvZekxyvqisTv3LmSoh5m\nUoJiwCBuooe9xxi3tyh2ICweuTfpSP0m6c+3QcvehRpVqZqsR9JksHZXDUpU\nN1QUvKOVnjG9lFi+cchWfN1trJuyqeMYlVr1xFYezffY0xWcN4aQMOneO/Gj\n0RtidYhXs1+EHUYz6PrsfVGPTKJCW4WWQXbsXaN5AR4zrFqljIB2ryM19HHf\nMTWAsk9SNP7m5Fiz2EGXHMrM1snVdc0G6L9lRjj0noAFo4P1WLM4V85yHWEe\nVu6GxQO+S3Efz+ywMD+XIEPO8DqLJut1pB/wHpZ5+Jv8Gob4xwQkSe15y/f5\n7hfE0CELicXipVhhPBFKmwoT5z4qLCUXqiRu72yx+UPiUQiWRhDodYV2RCJK\nDkvT0IB0WW4TZgkL2jFcOR2T181FN7fZRuim4LCIR2vSJy9JLDhIvumQ/SZc\nk1qx83BvTfxvbGf6q47AW81cOGyYI5hy6fMMk69JJVCs4pSUyHX5md8jC4vB\nIG0mpMyn2iAMDWN7Eu/mg9LzhYd/qggkmxLYodtsnWD6Az6luNcj866RgJ5q\nq4q9\r\n=l8Ao\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/UlVmA0bO0TRLP73J6wbPmZPMPLKkKGQxr5AZnx/hFAIgd3UlnA37bPOjmoQyyKG0hXvcGjTcenL5FnjSiAqgj+k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-16-2022_1642292515297_0.9305142607207642"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-17-2022":{"name":"playwright","version":"1.19.0-alpha-jan-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"60e7caf91c1ac5870feee3e14454f5b2fcbdb8dc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-17-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-j5c7gCgKecskrt4W0kYcnFRVkp8w/FZniqYl5x/kQsqjHvUS3SNtyBf6UfF1NoVX5D3XqtikIrFc0sTotXuB5Q==","shasum":"a5b078fae8fbe2bf2c9927c9b229399d1c838e6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-17-2022.tgz","fileCount":9,"unpackedSize":20922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5LaQCRA9TVsSAnZWagAAm9kP+gOn7LEF7zEr5hd3hQvg\neLl7McYRLheNNwSXwfMjpflkUKtuZkOMX6OwinX+nwteCp3IfkotVXhlIy2/\n5EwUvM1yO6sNsEARMA6l89oFTU5wE/sccxSJVSnImRGvsy+srEeefMcizykZ\nqyM75vplgBU8wmyJ+MgxFxqjYk9YMJsmtrBZllY0zJ8c2xvmGU8VarbaLWPm\nFx8SQ7dYInn6PP0jjfS2zW/tAtX0vetEghlpPEoyJajbakF3RnptvZtJ4L3y\nSCXwfP7px5aCqhGSjvv7/ko7bkIXzrIyzgDeyf+9pIPIT2fEvwtEdm/I0emf\neE6w0HKICTY/VCqtqm+SOamup0LUvZpz6m+PO6k6VIP9rzM/wqMn03MhfHXm\noUzL6nMqmgJ3waE+TwPMxwdZrPHQrseKPLQ57OTb7S3S01jZG1dgtTkC0jId\ns59jnyriRcaSlc4F+pr4l5OFafz4Kuz5sfj/g1d6P0LoFOTnIC56SZveTVjM\nA1lCWb9gm587rAnb6FNj8w66pY3pkphD4frNS/7cYcbz9dPpPVaCdfv29uhB\nzH4xwOffnRiL4hQQMKicXGiNojLr/0oOnCkeyNRdFP+CTDIVFev0+QMTEKtD\npyt5aebb6B2+bZbO43pRjsFwC0ArJWj4wlAZYqvvKpwu8KFXvDbQXnOFu18S\nNHK9\r\n=X+LH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGkMp2LcJV8tHqyP7BVUrTEUF/RWEd873Diuf4fpvvHJAiAm7nNFEnQ5nD7lyfJc21dlsNqalFB5XjW6b0s5zQ29Pw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-17-2022_1642378895919_0.05681826245864552"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-18-2022":{"name":"playwright","version":"1.19.0-alpha-jan-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4a1f945a3b041c653f213077a8f6a67669d90d6b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-18-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-oCC+6FM+OlL8tPzWAlTT/kRrCtaU5DLLn3Wh8I6dnZq6IebqqmQTkt6qaNSQzv/uxaoJW8NSbCmpVZ7RV6m0Sg==","shasum":"99ba8c046f60fe142cd23c98e5a4630a22ad241a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-18-2022.tgz","fileCount":9,"unpackedSize":20922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5ggvCRA9TVsSAnZWagAA3eIQAJec6TwZETxIaUy/aw9X\nbRv58haSUv1tpmhiIKlCBCHruGSqXdEM34Y6crwJcj1LL3EgIMTclC4CU9y2\nkt8NyjhYQobJWV4SPdswx2erWDMng0nOU63mM1Sq58ozpgEL8V5VNjH0uaEQ\ntolHHo+V4KkTflQ361MNYHEh1PtUevKPcOxKTW0MG2oxxv9EpbkmsUuw71ZO\nGXa9xDcZQYkpkuGvKgaVW7PQBzO4RE80FL4BJLE0r96xgqjXxsOY2gsUaKwa\nNDY+WOEVA7du7BExBqYaRwdi6CDDsS6upCGoZPnUL9GjNYJJ9QecUcZZ0B6C\n3dajypZ5TIeI74vGgXfmbigX3MiuB1166TZ5e8bI8K7dP9VBZh+5DxsuvHmf\nACIvv+4dXIxE0vePV46ZWnuo0o6GlwMVs/cASuQBWVNZ+sLvD51uyJW5t7+/\nEWqnu7J1SRHu5KVK3Peh6Hge6LXnD0Q1B/HLTreczZPinHfaku499GIILfel\nkFou0+6hV6UwolrAijQGUN2SF1GI8L0vaH2pBPcPDoyXkiwV5hnIQXbCNjq/\n3l4V4HKJZWsqVbMmx5oVjlHdiQNHoh/vk00f/stqcXo7iqirOzbL3Uquvs6d\ngZ1tTIIUCrzB/17eQhsBFpyJQ1flryRNcGsbLTnpRlsT++Zy7X95rHoWOhXG\n6Rwh\r\n=LBA3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZyr1J9G+FrjW8S/nqxTVkdWlsgHVIXd7qCB9fq8QmqAiBuXSDpo054rqfLAjXcK+FthlVCUoldisLqUQlRN4vEog=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-18-2022_1642465326600_0.8828237761008688"},"_hasShrinkwrap":false},"1.19.0-alpha-1642473215000":{"name":"playwright","version":"1.19.0-alpha-1642473215000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-1642473215000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"815e12144556bbdbc28732ffa6e69deca2017842","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-1642473215000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-XzxefsNRdCbur0QoGmaT6tBVdwyCgEzBQRTMkxkG0KPmf/A+hmJAhCs2moRWvPx/qnq5GsLFBlC8cyoh1ZHALA==","shasum":"8823bbed823d5520526e0303fded6cc543a8afbe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-1642473215000.tgz","fileCount":9,"unpackedSize":20926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5ifACRA9TVsSAnZWagAAW9kP/21MV+ot3x6jvQgld+yi\nepNJofaY3kvCKvMTLhQ69E5D1YETiJOi0jdIgDPS/j3yHmbfnJPDhWbtjxM8\nI+XPMGcpEUGCpYO+2EkRuPpMF7BZm5REt56yftBOa1BkJtqGYKBoJbcnE9Tw\nV58LWL/QAxpB259dN9Y7PugtqST+QPOAM43fROQYE/Wxq6WhJEzbOQs0uZuT\n4DQ7vX+klbPTJ22ZaHy8FpaG4/Lw1wteEJjXPn3J+5sJO6/L/v+Lu4J6dDwj\npF2JTzD5Y/tezIpxEMJhSVuB49q4ZRfM3RvxX8mR2ZxPLllfinkdFgW7mVZK\nuXYuUxZNTto688OTxysfILosKqgDA0ZjtleIjK/9O0/l/fAZ7IQWk0dSqpm2\n6/EfF4nDLJUfyp+18CK3NnjmF1nvkuhkLL1ewTTzT5BC8Aoh4flp35y32J8+\nkjtB4Iey8phOgO1zEdYZyD23ZJnA6KcPY93dKitbt+LfJQFP2lEhCCCGLEBF\nKNRhJyKFAlca7SoOar9wtxenp7453lKuvzwa8BYAXmXUSJjjy+UZzKHpi292\nLtLooPb2FihPg6cZKUEOt8Z7Mln+aCfy7OdG7XKu+KSbBx2tluxbzex14HKq\nLppkyidvUotTCE3jsyYic4QEIZlNTxtskpqUJBMmL97hrhEBBtoRyaY2TB2F\nhzVZ\r\n=ERTl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMG7ncyD9yBFWu3vZzU89z5+hzsmSf805uFDrLr1YW2AIhANmoQfNOcIPjntd7NcuhUX0cgcMwX09+rxPW34ouPe22"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-1642473215000_1642473407904_0.46797063380287085"},"_hasShrinkwrap":false},"1.18.0-beta-1642494929000":{"name":"playwright","version":"1.18.0-beta-1642494929000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642494929000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c64772cf0fd6d2d0c0eb8a2f107c193173529e44","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642494929000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-jKnFzC6jwZ+p1P7SQqrJkZC/Xa1vnAZ4RlwftqBRhbWO7E6guFphTIl9ny+7jNmvXDM0dns77YJZaXYP+5TO1Q==","shasum":"5d17de9e3d26bfd461fcf740afadf0707f328a42","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642494929000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5nxwCRA9TVsSAnZWagAAn1QP+QEKBYwKf4AM9bVcdaCG\nGyTZMRbdFIVXiOBQSyDEFEUvsMAHIBToNKnaVRu0cO4exRbDf/Ynt6RV2pFP\nVvdPVN8ey5Y9aCbu1FpDoAVSnZLffvuYEp4dKcHUWYcgpiHFZeqSnw4YGvqx\n43UVPqs48ZC/ZIrv7Bsrms5C7+zBNt4lqN6tjv9jy/gWFQa0oClaZSfcTpyi\nxh3mV56T0bkflZYP4VBOV1dBNMhQXtE6s1/cYDgBM42rgBs55DfDVNFcSJXz\npaOTPpgdOu5ztHrZVmNbf9YPXAXi3hyhjG9l3gKpfSmZizj3G+jMxLjaM6m1\nqXJ7C8kQrseqUKqAVwsRTR27MZnYgvZdcmrjLQzkPYNNbpkDw5SXo5HHL2ik\nyojzaRLTtx11bhR82c8osaLJiBf60HO70emriQUWgXwWbX22rBzi9Sf0Rtax\n5EmBMLbzNLSwY3JpOQd5/1KtMOZTf8fjU46/iyjIg+t8dWWSxHTWEhOFhgS0\nPa4n2IMts0S+Qrs+4W001fedhUvHlbrhv9pBbaY+WbQXqqSai8CxK0xtfpHX\nuXdCpNR4XhLFj5phDkdKpomDZ5GEb3bDlXBwuxdOxW0fqqkqlPiunmkKNB38\nxJT7ZcOo+gpN+XvhuCbsN3JfdkSU0MbOxhfZb7qpzMfdFymB9vLFFkmKuDqV\nDsLV\r\n=Uvcx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCW4/P4M0cd/pz/g05Q9dVIdxn57eGHQtaaVfzhB2dZ0AIhANm+IWGcEP71FicCjNUlK8q89qD5NHB1Epts5zQQgGPP"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642494929000_1642495088200_0.053019993297853674"},"_hasShrinkwrap":false},"1.18.0-beta-1642508722000":{"name":"playwright","version":"1.18.0-beta-1642508722000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642508722000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ab2643c9e8c6a96c0b6c6097ac12b450c973611d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642508722000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-6EkLVQrTybGcdpHTU8WtMgsLCaq8T5kY63qNvNeWvX4eJudujyTex/oGfXodpxIOgG11UhBO6RH8hCoyFMQCBg==","shasum":"6f83071063f7a0745677f7de02f78e0238205e7f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642508722000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5rJfCRA9TVsSAnZWagAA4vYP/jP+R3msO+4cmbTB19Y+\nBaTGNMHJZNVZkSDIujmyNfwuEPq8ihB2Zqh8ySCl7p+mZSXUalWDGykEyXuu\ngGnCIA20n0jsShas6vTZw87xzvkG+qaHwVQPrg+Rq1b2NhDab+lnn17eTLg5\n/p6q7NEHfdi5zgmFSrwuKRvSGIDtgQ5mTd42dfH6C6XMHuYcVbPvxzHgYBVg\nTfpPn5y9jMb8fTug7g1ZX5vSDfZHAbtVa4GYajGAHzynUi/5BK14/kIOl/wd\nsSSNlppiWZVLml+8ipkMPV8kQnxJBuv5iT9rSMFUL1mQ1vRp0oesCl8fJ1oN\nczzD7t3eldKPqC8GziqgaoPT6O3aXfF4fyYIgez7/wX9zKa6HWGRblx32bl8\nbq7AErPMM+gwy1G0x2obWSIsXv8zg/6uUGegRoQsWtv23vL2BwfIbtVBQ+ni\n4okelY1kh4qHXEmbS2d11CgtaRlTGmw+VY9xoea3kd2Fzh2Tx6TyKmxxru5z\nRSn8D/ZsRO0+DuTWc4eQiQZLpnHbuyFt9Ylt6zp5glKoKCCdH1S8qPcZOWnE\nsjb9rg7AGM777zkcMqeDw5YJrHBwAoLwGv1c7rAu47tZhBkhRDnmvpy1597n\nPW+lkf/npQeVdaqbF2TfGC4XsNnjuaI45JkImCLnG3VSWoa1tuydsXlkDJi5\nlWDw\r\n=mibz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5Xu7YQ02UOtDFFNZkvN3AdQ2H0QO11gctNL2pFIFw+AiEAnzzJte+dXlsYGszQCRi7MHfAYS3tFT4DrUcFHc8Hsws="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642508722000_1642508895179_0.8411960341278442"},"_hasShrinkwrap":false},"1.19.0-alpha-1642541472000":{"name":"playwright","version":"1.19.0-alpha-1642541472000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-1642541472000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"db0cda9df5c9ee2d28eb2cbeef3e0c04d7abb2a7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-1642541472000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-4bFtrh+Re5agTM4WDXqZK+tSA0Fa8R5Z3lV+jZKrF4TAQcGYwPygeyQTNwRTcJ1pR+QxIJ32AI0fEiq5Qx5iwQ==","shasum":"3fe1b93d9bd558ec5568161e04d7e45ecc601c3e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-1642541472000.tgz","fileCount":9,"unpackedSize":20930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh51MWCRA9TVsSAnZWagAAi/cP/1NkWHy9q/rcgcQtQIkx\nYYej7iHKfq2whi9VaXbktAwYwQ/B92JDLPFukTZYpAv81BOKVozi7dIlTVJ3\noCz/w8RVvFXCAxBm/AdRYj9gwoCcXMqD6Qms8L2ewGI2NjEuAue+6kYcKwW9\nRnaqSydcOEMIrhF4ZrpxyoJ/fdTsNW+yeT82/rV8nbE7vzDs/MPJ4IB6iBHQ\nR5J+gqN0GY45Zb0BQxKVorU3okiC4xTjGaKUJFtHI8VJ+SBIXsRZZO7vH2W8\ndhsdM2pM8BL2CvvKFE27PWio1nU/5r3VKoWlzkMbQ99aFgcUgdjaepTM0pFo\nsjhp8iTRioW/KosvYh7yR66JD0b0NgZfQ5DcLOZ4aSu99jcibRPgUTSZwtjd\nigBFkwJUfneCjqQPu2I2zbTka0hMV2I2/zpwrMsU6x9t06Gf8DeKW0RwRlts\nOB/008OzUJWj/4QlBGBqNuW7GK4aO0OZYf45rLlmOdn3XQ8bTHt2EEQX1vvW\nvAgtKgVmVE31boyNhgkq9iT+V8pgYCSGXpvMH7CBpI4lu8ejBpz9CfHxBUC+\nXPReJn38TiXPKDrTup7YkXjdnxCMQx2cJJrGN4AgUDyzZ45NkgEdlceu3Lsk\nWp1C57iIIi/CAvr+nmLn+tZyKwhdgBlv7f5yYETYfsxZh9tR/fgbN2+nfkqj\nLc0l\r\n=BCkC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBP2/KwpvXDCuQAqsiUR6XtvpClPnXj3lVKjAZ0/Vha8AiA1D1ntHzJUCnp2MkOpovDBb8Ei5oFq31UXr83DbVub/Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-1642541472000_1642550038532_0.15283800344058784"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-19-2022":{"name":"playwright","version":"1.19.0-alpha-jan-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"db0cda9df5c9ee2d28eb2cbeef3e0c04d7abb2a7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-19-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-Kw5Bx4UT5ACl9dd0q/c3G+3BBN7H5W7h5qVih5kStXy8JfJbrMVkrEQkTnwodIiD6tFIeTyOXKfC2lozefFCzg==","shasum":"4b6e6d3e692b4c0a2d245a0a3c726c1ded8b5477","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-19-2022.tgz","fileCount":9,"unpackedSize":20926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh51mLCRA9TVsSAnZWagAAgjUP/3xoqrbCpd6dbmOAigcX\npfhClBDHVt/O7v7EJZqlF1uqqNxhT/fPg2KyHHj0vKx2xyAlN57qqTJq2Gco\netxpB77NbeE7hYck0qoG+9x7DlKHsaXuBTKtOADzztqN17SoCB9b4hswqKEN\n0XCjU+lwPjY5tnpfGv3yP/dr58TfC48iPDQDcegM+39Dw1DXuTvS3KHSwpjc\nf+zFK7oihknwOrqSMcIlzzwlZeJYAnmDBun1uKT+uVPTrPaPeXft6Fc4gRt9\n+eyAF6LImApxwxbIKEtQ8MZ0LYkWO1SfqfnqQuHE2liIXLPXvXV3N4Jui4kE\nfZe9hR/nhud4zrKQkM9Xry6jqjAskDOSBbbfz2fgn+TtIVfMXs+9DSprZzjk\nCb93YuBXdcDsuyToemAcj1gkDzln7l9UmCxehfhslk3fYFdN8H9/pmelNG8I\nI2xBoEVmi/3J7KZa+lThRZenT6qib63P8vQHQcu6SmIYNWr8x0ndLvyuUEeW\n5x3G7T/CMhvlOdiBPJ09x086UIsqcR8yVSekK/8R6seCMxGHiHBpiPTc2P+c\nmvbYxCPkwyZWFxVf3DTfrpUljyZhxiRCjcKqCH+O7kotKh7eLbLWMGHTJ6D8\n50ykbpoBzBpMLUGdZqOdhmYpakTf6eFsFghZR4REuZVZTMMnMjMgPrFYXyxP\nj0fS\r\n=dYc6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFo8l4JC7vZt9zBf3kPlEemMBt5FQGHrCeLBvlHuFK8vAiEApV9d/pAqyGNQR64BCKj5cX+bADvMQ2LHQSyWHHtXWvs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-19-2022_1642551691097_0.5445805912718116"},"_hasShrinkwrap":false},"1.18.0-beta-1642618102000":{"name":"playwright","version":"1.18.0-beta-1642618102000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642618102000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3859e1425e89402fba0a3054c419776d4a34eca8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642618102000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-zRw0nJMkpUz8UqWgRWoAds2iuI41mbboSN8gvU2eBnxohoQCy/uQbHjutdEuNSdeh/QXncsTzBujY6gR/b0mEg==","shasum":"3971c3a93767cc3cb1e13aa3c25eb7e0c21af447","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642618102000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6F23CRA9TVsSAnZWagAA7j0P/0XZkJ7ufA8SBhzT+VJ4\n4CQTyDl7JcJ/8Qb8QodWvzBJqbHJ4Myk/8fWPqede4pphPQx4TFsMfX2DgKG\nse+Pqj0N9WnXpUejJ2H/q9euMRVkaejH3x2IULH9arGoDXByhrCgDZYcJraR\nihG9j+L7jDvXkBWLOdnB8dwq4/2wgQc0iRmcl/BtaLwA3dX17wQfu277mgsd\nQFgKahOyRWuzno8iE59C3pvUT1h35w0c0d6x//qRQ9rtDymz2uNC9qC97Sgz\n0U2/SCx17EUx9RvRXdOS692gwgTggiDEChyKlSlDhof7Zkk+tGG6yGHPYviy\nxKvoxwJqYCYyg4ggsEfELIm8lEHdcYvruYN7Ygi21DnhXxUW/PZvF5RC2/en\neh52ENQ4T4v8ORtfqf+vQ4hkRLr1SikLxfuiYB07ved0NRhjCfZ/oAsusWN0\nHwYuj/2qDsWGldQW/FASLDCPWRLvatz3pZtK1NJZ+KUjKr2UJsNeOes7ekuP\nJjxZdex4W0o8KMV2NcQuKIwWY5rqlj2YabxcNpqY7Lzy294subT9JyAZXUBp\n/m/Yf+VQ+6WP+uPllGG3VFvMSyYZPZQ4+NOmC1MaoGyz8Q9hwedp7EJ4dlWC\nF+DO4OT9l9zKYD7LJcI0PtpyyYgNydgW8qTT5Lwyq8z/soJayN9ELUsvTdKy\nqJu8\r\n=Ku5m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlmMzlncJQuFQkBqdBQ1/z2wZ7TRbV6YDT6pKkNfJqMAiEAmptOAL53ZdJtTqEzzFX1XzPt/oZs6iPD9dHEHm/C8gI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642618102000_1642618294937_0.9192107777472545"},"_hasShrinkwrap":false},"1.18.0-beta-1642620593000":{"name":"playwright","version":"1.18.0-beta-1642620593000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642620593000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"32f9868164f1d2cdac0532cdf01d3cae741f5483","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642620593000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-MQTOt7wwqBJL6a9Z2hfCW7d5bgK4V7itjlP2Ep3jucZev88Nxh4x/lG/CgG2KnHEWvCsHxQPdq5o4ExucDQlkA==","shasum":"f606e9fb043b23973292912d9fa5c1ea1e3aab93","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642620593000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6GdjCRA9TVsSAnZWagAA9/wP+gLlN4qcH/Zyp7U8NOCB\nbVpoxbsDfbz530MHWicZBLPAv/EF/76TTWt8Y2KzL95dMz+En2RncAaeENRD\nLzjBet9AQMl2KKbqUy1Pg+TLynjvS3k0/I7eM2iua+9WtgqVdzEpnjGAyLKf\nnGzfj1UMb9CakoJZRHbvNgvRBW7P5Oy/AlERIHs6HBj7txZeY4t7S/Sh7+yE\nOo0CTwnN9zvQqIKJe/sV14tT1EUVJXJZR2pb6MabC5iRtW0yn3+Sm72wdKKq\n5EkzDZ/DLUv4ZrdJX6hfRzKJOj65hH/9CnTnCC2hj8cBSXOdx7wHAodwl2h1\n3VUSu2dMhAsjRZNLEa6CRfzI7BL5uRtutRo7YMSoqElD3zy90pzW0PKsh04F\nFYy/m+6WLTrCjRaBpkuPRAgu8IpBYF+rg/G23eD1RZFR2zfKxUIVuyXBsibE\norxDzOcq5tCqembs20ofA0HfKYuxRwMmQEkTRlq23ZLhZ3e+ZzqXu6J2RAqy\n+o1vVAjj1VIS8zc0FB7I47GLt5cOvUscFQ0HJME1lWEWl3rtmVvmgIiTXq35\nERaqViVF12tF3w2YoRWHmSNhEgeq+CNV8pF3MpqpYEg4/tdVFzXRgmL6tpw6\n9g+LdtVmnZKvwCPTupnAJW1asgRLReG2Y+k1neb559eKN6E6F1OsR+Ex/uKD\nxdrI\r\n=j2P3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8zmMqmT5sB2nboDZPmdUta9bUPsdsMmgyKLygvAyT6AiBlDKCtskGUeursGNA6MSkrAUdLA8yLZirp7OqZz1mX5A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642620593000_1642620771405_0.2903798209073265"},"_hasShrinkwrap":false},"1.18.0-beta-1642620635000":{"name":"playwright","version":"1.18.0-beta-1642620635000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642620635000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"acd05674f7f325218b28240c2d78142c9d9ec11f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642620635000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-YHYhi8Jpxar0+1Zh9lm7/GVp7FZsJ8KQHQakbrLnQVoTvHfcNbJJcJqJ0Yl7rEoowh4XSuURsQ+SEOBTsnjRsQ==","shasum":"93e4114e335a76d7babc11f74f4bd9c4e11eef59","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642620635000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6GeQCRA9TVsSAnZWagAAdekP/0tdLqY3UVO0akvGIJnL\nYDfEeKWUr7oJ5AyX9VC96aEi+w4TyqeVqha8qbPIdsKmhDejXu/8kx6JbMdu\nygkZm8mDlP/BOqEz5ycBQ2N0GB2LnW7PRXoIP1CTaZrMaquLycjYGAqdBVSJ\n7GEYOtt6IbuYEW1fYWFNzMsB1x9IPqENjHVllkd6CIgIReH7Wg2nM6xiYQqR\nXim01qz2T/5YtCc3pm4oJZo+dUF3zcsVKTm1Q+LV2/wlvcFnBFxJZ8iIDk/S\nG5xLUbHyvQOyX0iWPfvofywOJJ0vyBxRhq/dB3IoTNHI/VXj5+55SKUh0dMn\ndGVMurT8FEEqiJo2XvRFNdhbemDHdodMDW3QGlec/uNtDbo8wv+uTqDKYdbd\ni+Q5ztRsryzrOmE9NzxmsmmswPovNZ54H8TPfYAs+xDKeE2OmxcQVnukKBbI\nuAkth/BwOzhXJStX5LBD1I5sX/msAsIy9M3SSFTzPCqynSPa/ewh7EEnKNdt\n5dQb4kF9p4TKGuuJ7zT3zKyCjr0t4fREQuFfDYNS2dp288nkM3LhsPf5Icw0\n7vu/ckb/yCiNbt4roCXV7braB3optXEw0ilN1lXdKqu2K9p59oXz+mmDkQXQ\nsNM1RSmm6v0bY3JgmQyI9rEMedcf+KaXCczqJ1vfRvUADb+8fay/eNieeFVd\n3sWP\r\n=KRZ4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdcW6GA3C6mgONyOISy4jg09/j9RLcqMKPoJseyby0mAIhAMAzEvlCl1TWasTOWf1STKbA9Qy+6oxJpiFQyPN6t6Tu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642620635000_1642620816548_0.32222664547676905"},"_hasShrinkwrap":false},"1.18.0-beta-1642620709000":{"name":"playwright","version":"1.18.0-beta-1642620709000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642620709000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"de5f5021ede9a7e78f504707e433f82b4686884b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642620709000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-v81XRsZdFa9abg2mRdNem9Fp/lGc74tqRw7VDXb6/q13B/SJZe/uLjPWyYRqieVtionbYdLnKZt5hAz9d8ZyTA==","shasum":"370d7be7fd45a55170520660b2c6dbeb79fe99ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642620709000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6GjuCRA9TVsSAnZWagAA0fsP/R+vmZBshmMn2sDbTVo6\n6BjQhv/mjDrohI6KJW3xMMPvdoMQWX5Wk0F9KSA27zbHAh3FJoMHoLtw4Neg\nrAergJ2nwdwuq+1D6FitbogGzuGp7k+jmFeq5Fot+7to9rZ1myg/csPfYfAs\nkmV2mrt1EV2UNfrbYGBVIjuq0SDUuHNCB5qw9CfL/VjzQUhVvOuEC5pZFlbz\nhZXvLOzkC+goPqlvr2mtPFI5IBq3icvORuMDdRhQpFWd2EkL7N3LWX4BWd6y\nkOQipKLeu+UitPdi7Z0h/42lpCWBkFRn+AOUScfPd6tDRWNP/qST2fGXy59b\nsZibeND1wMLFmPeoi+0YBTzcmc0z/nvnPsBNZiGIiO3Ux4b/u8As7wOR+4vg\nQa3Jxb+YPyBD3Gvvc9nn7tyz8uzJcNbU/rKtKZIwstM5sS6ZBIiQfqquOXPg\no2UWhY0Xna8rNNTAUAI/7cVJJSFfMcXDME4MtAcNOqKnlvw4PERbjNbwYp/j\nbjocXAFw/5mWDIQt0P5J/BUSd7g+IhFmOAWrU6KA/ozQ04vF2uHr4yr/EkJ9\n+bWXm8XqplVJvKL2AoQ3ya3g2dfCX0TIzLayIqO0U5pNNRU+sclZlmPDuYN+\nEV4dbSWpeF/QnM4hLNs8DzyAd+MGEVcqO6kBD2dGtJqU8RfE4vjbvof4k6JC\nrCG5\r\n=96iL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1JSa4YLucn0BbMMQ6gYJFRzT/+sglFrZBIBcWejYA/gIhAMOugy37SeYP/ljsCMoe160oEbm450DCsGXkyRQiRYrd"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642620709000_1642621166146_0.5936148336254086"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-20-2022":{"name":"playwright","version":"1.19.0-alpha-jan-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7d924470d397975a74a19184c136b3573a974e13","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-20-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-eJFbtGPuACgH+IamnsC6fCJ7ghmOmN8dnzeHUhYVIqWW9rla3HrtNQpg3iO8qqlgqJpj80+stzK3I99Ux6pkhg==","shasum":"fa246fc18fbb5bfeeba32b846d484dcfe9b8cbb4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-20-2022.tgz","fileCount":9,"unpackedSize":20926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6KsaCRA9TVsSAnZWagAASNMP/ihcVre+izpkpyr/MVUs\nulHin/27AUFgyJUDStI5KTvR/P3jsSkvKn9ivjmFNPVHdBVgCmQr/4Zdjk1A\nbQTmi0U1uZQzhrsTXkAtPp9YVFPRHFUUhUistuDDgcnMT1b/ORWLGkzQQN6a\nUs0AKAFK4vbiYZrGMM0WqECiKClZD5neJWw/17bvM2s8CkRNWmdwFjW7YIRO\noSrf2IhGvg3EiVPvjvvCsqwLQOn+Sl0hwQPLOPOxaB4gnDQQqti4ivX/U7a8\nUfLi9/0pvtV5mUqNz+7A1BI9Nlt85Q0nYNStFI4DLLnpXbGVZQ5YKsKLqi6F\nUh+pZZJTPayRZFivRPuDcDqIhicBiqRCz8+3v5PWHK5l7fdRujw3Zekn5Udd\n+gdFGSrWpgWgiVxPP6mm7U7gbaQOr7nKh2Db5wwC5mP24m9bNtSjp/nnVd8c\nfaQyCaxLY3tMcUwhI4lELdSWFhQGf/ei4VSwidt7pTUh14HomwuFVQ5Z5ADs\nDNfjzdeJUe2rRWRplOJTaXCbR1fOfbX8Xw6Zabwu1JCfI2k45r43RudqWUhk\nFUORXbdqBNwX4vMdWwYy3k7RYI51BWULhUTNdS6X/z0BcxXL5eSRU+/GSwl2\nbqQhpAPAub3UuNJbaJCFrnl0kEh8nokuf09YLEZXga874hZcWo+Ywlrqp4PY\n2gJL\r\n=VxHT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEVP6rMdS7vfL760dc9UP3BWm+dlWlr6ezhJBjocYPPWAiEA5uHYlaT93KFyAw6JHKx0wf1yEStjATuFVmWbIaVuGMw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-20-2022_1642638105847_0.9054779766900105"},"_hasShrinkwrap":false},"1.18.0":{"name":"playwright","version":"1.18.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0"},"types":"./index.d.ts","gitHead":"de5f5021ede9a7e78f504707e433f82b4686884b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-GOWvcWRtL7o6QCj6tvZCxqHKx2sIhXeEmEJAqQdOZgxzQiCkPe1hnTHab1p8R1bDvHK703fDS2oIbs3mcvg6gw==","shasum":"4613e19147ffa5f77ad845227f007b9b94a366f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0.tgz","fileCount":9,"unpackedSize":20886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6U9zCRA9TVsSAnZWagAArcUP/Anw45+4ZHDxiauFrOVa\nqN2+DPlvRYZbbGyx6faEvgRZksbZFYYJYjgEldaOT46riPURG1LCJ4jClgmO\nH9Ea0/CeB+j7B8pZaMLQr0U88RSMjTbamZqfVZ3LMSCgMo5a4K1xVPWnllEN\n7sSZzP/fsPeMBOwLqlheAwjorkFqrLOZqCnstCt1R/41yqccMlmfURstt+AK\n6YyHX0vkh/zL4j7XdTq8mIw5NJHLagFbCPdtLXsbSR9Zh4KP4/kMU7z0fzn2\n96zQAZgX6wgEL/xJ2/uq35cFKmuxlxBFP81UV639T3WN5b1OOklwx0Rx7n3l\n06zZPms7CDARvtr9yIQiHB/4mZ00v8bcE3EFVHQLWUlST5jxcPYVM7RfqGX4\nMETTXSiqmTUrQz9ZBUtefzbA0YXEXP3Hu1ktknhpVx1bRkjUkexBLk1nsEnX\nVenf+aWsEV8ECnXeo3VgvS9UmWVbLTSafn5pw1GWspXo2iPtxwdne9uZr/LU\nxDIGTpjnKIaaNkc+ee0YbGQJ4QNSFk0r4F+I7d5I4BuhyGTSM/TEts70475C\n6BNAB8Z+Thl2S8BF8HXtmNijrLRHG2pelytrmys9BM/tsbySGy18G8kUlLVg\nAo/tY13dahyK/YIZ2J4YShf1xLrPUHOVEyXF4M3q04pj3n65bZolWrN+m/iR\n92Dd\r\n=usUs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1gCuuqB1KG5X2CxhPdhaeDGHzfco8k5veh2iqLXzj7AiB/cY4iIfA01iE3x491BXeoDwPjF90o2fjpIR5eCmpTmw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0_1642680179597_0.5371225843929344"},"_hasShrinkwrap":false},"1.18.0-beta-1642681422000":{"name":"playwright","version":"1.18.0-beta-1642681422000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642681422000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e7a35c3f1692844ae51a4180726fc7750232216a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642681422000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-z9omTus2ywIKnfcDpGZSv6+Fu7//4SAfH4+p1w99+b/j3D8f7jpW2Xp9sCUFbhZI1egWLJHTG4Pfx7Ex6juCfQ==","shasum":"4f2b8f306d01ea1bb9255d76e40924c0964548db","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642681422000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6VUGCRA9TVsSAnZWagAA/osQAJOPCsuPdWAKIZQO+f4p\nRb6m0OHP2iQ0sY3koA2qIJw20CtCAnVT95U8f72cvWgBaytCW6uMWnn7TNU6\nUhL2pl/nqfxkSu02QpT8mwa4G6h3LahHFWUlxgT/iolF8y0rPrHuJt6mtqVW\nUjxf1J2r2PGocbt5pakR39j+lH3M6zLz4kWABbg8TOhaYiZQT60JqP/L0bzo\nZhg7TjoSOI0z6ePijONsrJ/FPuriDAgQWjKmTuJalaumuXcOy2ewbFxwcPcG\nykRZ5YzTpvERc6TB0MXJxTzgkPdVi7KaUBdB+XvaQBVWVdhkD0UkcXznZd3w\nbCLuXO+xLuzt3tsKNdtWt8vi5TQ+P16rbgQomI1QtAyQf8UvjiCTLtbv6pJI\nmdwYc5hLOlSqU09TinkDGefTuxiMSoSvxveRHGv5qhaBCZBg0+OXT7Clysy9\nfMMojQIhx6ytBrrV+jUUCB9aYPj3eYGAgQsI+5hkdEfWestm4v9mQfB7N8e6\nrNGN+Lvo9kD1RvNmlBGAnHMEMoXmVd4Q0G7PWLEyIJyDPpWgoaBbfyqpYncX\nzH/M0X9WUlENFm+7Ys+W3lc2HrWsxccqVC/qrIO41AgX6ZBo6pWvdKxhYOzh\nhyNJ9OH1NCtW3nRdTBaG+z1IrG8l3feyhPExxoCvr49nJuit47ScQP6vu6Sm\nMFNj\r\n=1SXa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCA+7alOF8MGTw069hiskQH2Bfklp76Hu7ils+O/gqChwIhALqLDGIADf8uGv1p/pciy8UpfpKECqm8+uMJRbYp2HQ1"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642681422000_1642681605699_0.020224788849382058"},"_hasShrinkwrap":false},"1.18.0-beta-1642714831000":{"name":"playwright","version":"1.18.0-beta-1642714831000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642714831000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6f857e0a00e557a8968dcaf6a67bcdea4feeb315","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642714831000","_nodeVersion":"12.22.9","_npmVersion":"8.3.1","dist":{"integrity":"sha512-SF6jboXnKS0DE9RtDXJjTsUhBlCwtYmkzSmkBTigpg+YEYlEajo7ALetuvtVx+DqK2OwCLBIjFGwk0xrfPZXLA==","shasum":"9604e2f9376ae12522cd5c8604adf15010ff53ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642714831000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6dd+CRA9TVsSAnZWagAApVUP/2b7LF1YeuUOThLTB+Om\nkSSeQb8sVD4Lgp/UpiSDyzD7F78L5olEgmzEkfVXVjRk3MAvkECxL4znRaqg\n5tXcYCjAIFtSjRKGpnHapEuXySEkZA4twLQWc3ls8xDxUnsqQhrDbY6paVg+\nBw4ognUMz7RoMmeIwnu+sGv7m5Qm81jixyN7izntiD2C1kwda0FazZD7zO8h\nden+CSAjtRoOqWpB2a3NvVzlSCuDQ4B36P0uKi6V9cNDC5ewMkCYYDlICt62\nG4y43awx1IvOq/TNKVun94UuMPmN20X5PPmig78NGCnNXjy+5Mf8R/O5gsY3\nasxOiAsepVao8HWwMba78DYOPMrIO7MUOnTBMsA51Vgq+Y1gRsf/hhF0O9uQ\nwbQ/KR+ofH75GmhGPoOF7/LDRq0UneiKs1ySXVTZ6UnP1ldEkha7ATMk74W9\nnBV6CgTOwRodEeY7/S9feune08TVWXgQRcFDZ5bWF/wpqHHPyNgIPJlh9Ioj\ni7Uh1Nf7GcbkM0wCntKDcVpIc6jL0ePmrmdIUE5f9IoqSb393yBjVo1kFu1p\nid14ZvhQeKzypzppzm8ipMt1i4PSTKUScc++zcN9t/5OB+TJpBu9S9ou+swa\n0ZoxMY2r4VEzWeJZJG662PSUFJY09NA+1ruMlq4gD5b3a6FpJFuYHRz8ETXH\n/VJS\r\n=9XNs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE5sJEuAeGd3XV6qmyVeh5eD5ILBgY36e4Dpk24iqqS4AiEAsAX8D4QVQthCgxKyYzXr9+El3inWacRzj1XlsNpMoSk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642714831000_1642715006087_0.5858814573704096"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-21-2022":{"name":"playwright","version":"1.19.0-alpha-jan-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fb139cefac1985a48490a5eae1e270d880366e4f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-21-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-R2wCYY22VTKVDsiMmjmjubA7wQbckpfOrlpEp4fFDL89d1/Z/xjj0QSGj/d8IyhVCEXr9pP1fbrdYh4l5eZo7g==","shasum":"3a09e57746a555217b3c5275d5ee4b8d88225de6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-21-2022.tgz","fileCount":9,"unpackedSize":20926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6fykCRA9TVsSAnZWagAAz4IP/j+hp33xS/XNjHTKo1vi\nfiB/sIf8XjgjitGRFV0AFgCXdA1uro65knqzy+G0SSefBF7rAzzt4DUkNbtx\ntajv6ag0ZOPjxXVXp9QGrMWbZ/ClphwLKqcykjrtWB/Qy2SjiC1rhp4G5cdO\nvFA6Lw0lwpfcquvwjMRmumK6z/546hb1OuX24JO6qJU7u1XVAuyhdQtugeP/\nbJ3wjYua58lE+2/2EDVl+qk1+7kfrKJzJE/3fOiPwjt2zpW8m2FrfRholBpm\nf+nfGrqIz4gprtEbMajv73xfsqrNwtXXzbOiW1mqxPcExBwdSdxjki5YyLUw\nFOkWN7iGlHdLIu0FPg4gpbjGtLeCSMJeEfQWctp+fEFhdsJVRHQIg3bTahRW\ngpHk3yhobBsaBf6jNTJqfjsdJ2XL6ngTmsy3DSlVzyh4ivjI6OUGqi842zlw\nLVCxEurMpBYVGpsrJMn4FsFZz+d4CktD5LARqBqLDKt3oSe3NyFSASwmBUvm\nmu93aDWOLmRMehmFfqZkVHx11+fUd7pjS5+NAHuCLXj6hJduEP9W1UZpd/x3\nKGvauuXRcc9uweSkRpbFdHE2Y9TMFu01mDe20yOleGUFwdzqXZF5qvlc4eJV\nPAHTzvc1mqzWJTwr8DHCSQzfGXrtsntEzAQNt2l31GeBVzaYZW+uzrySiMDC\nNYtt\r\n=SdzC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn3sTTxYTxh3UmlecfjRpvdj9t9i3GyQUtHwXFAEW6WgIgAf9/PdMygccXyNK6YnKGaLG2VJC1qygKFt1gTI9Pzis="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-21-2022_1642724515910_0.6002175469243123"},"_hasShrinkwrap":false},"1.18.0-beta-1642731165000":{"name":"playwright","version":"1.18.0-beta-1642731165000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642731165000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2717e6176d61ee73e3a65bb427e4a25ad10ae5f1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642731165000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-7BomfMsh4U6WIb723pCzPyQCazZJGJL28unjRenpcHOdcdJRDpo3KYI5NKBZja5VmNKHiVPXB19lt4z+J2lgqQ==","shasum":"65364b787ef0cf2128ded4b9320467132a8bbd6d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642731165000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6hd/CRA9TVsSAnZWagAAcxwP/3jsQ6gbdqn4Hj3+wM02\ndT+tfS8ELIBshuqDsH7fLqIyPIHPR3CZ/Yt4ytN2Uuu5qTrnaPrTbdyOOc+H\n0VJ7irDkjceBQflrRWZ0uvKmpSAY1K9HIRCbuHx8K75j9Vo3cot+yA8osr9n\naGD5USYDDmQsY9y+snMv8mB1R86/HJbSltm/xQ6GGmeC8BbvSBavizEQ1wSB\nHKuLJwT9gut/+T0IsO0ZiQRA4djhNRv6JHu+9Zgi9CQZ+GMXV2q4yN+2PGZh\nlFP8OUQuvJdMYgcnCBCiCCC8mlZQkXJKmXsZAwFXyQzc2ZrP/UijzEhU338L\nMCGZoA6kcXlQIERFDso3ImCcoON3v6Z9i71hVj+5VRYBQ5RC0JU7mpQvqQbS\n8Y08eJUHcpD09K5DQFIx3FO+8Pp8OmXlsV0txZdzzOadXEEcMLbLD56s1EiA\nyF/94c/gatGfIxP37DfBlWTUw1R+wy9ZIQ7SJDoTLa40dqjI+QuwNxWnFOpa\ngtrAslIhMx9Lnx9Xudkjq4cu7J7i6Xh4CEv5C7coSAhWOHOYYNot0vhU5ZyF\nAGi7VogYN9mnjhjCxYbWJAcw0A/mYbpTGWEBfgwE0O1qZsXZRXOC3dUHzUZV\nHn1kvDncsSZoEfuF148M3sitzrW2x/w74iMlfGEYWU5H9mEXbhzLaea4twrN\nX3pS\r\n=CjpA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDd1m951D/W74uoGK7jLt83zfLJu4orYuw+vfg6jBCWJAIhAPqQE0drtA5YZRgTVqoupeg7xXoxekEJ0MIDTHIyN2AJ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642731165000_1642731390848_0.6539591601913908"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-22-2022":{"name":"playwright","version":"1.19.0-alpha-jan-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"066b6734d00cd27daed934027bbd8b72ae9ad859","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-22-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-aR5MAdJMkjOu3icBUCWGs7cwdT/De5W6OKKlb3ZinV+B1+zHXLjg8NTGVKlAUFaTMr4IrZC5RLfibWNg24e6Fg==","shasum":"08a0450a24d58bc22f564c083cd434530a21523e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-22-2022.tgz","fileCount":9,"unpackedSize":20926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh603tCRA9TVsSAnZWagAAozUP/jdfMPixBWY6zDT1QG6+\nNNATFn03mhqLCeilM9/UrhywDHHkWkO3syntaRIud6xSJA9CVThVgerElFTW\nQWt/a/evZGX2wEbNNUwqZnRGObvFL4ZI2zG7EYkm+MeRu0lwD4XoycBFGzAY\neDp6WRquR15bpyAkYaF1TpV3mCd8oiUbmH28eXagdWBr5ouwxoqygfEcz5Gq\nEJxcqlmGZztV8g+T+LQfLzwLfqg41X2Am1yL4kL6Xb3PMtdAm3pmAj6srzYj\nyj4fKYDRrQiOFORavvBGHOnN3u3ILbWn3LKr7B4gRFHUiTlJOF5PYSPjayqO\n/U3qY0/ZoIjWZfxVVOitGsVkxTuzje9ZH5QQfBSa2MCJ4FkAKpka++KIUqN5\nglwK77LUUkE57s1PM3ZVI7+qVTRT+9bgs1XEIIRwBQs2nc40Qh+4G96Mzwab\n19A47N9JGNbm3xe/ROcPZVcELvYnkzITxQ1T4zAW11+fcPHIyVCYdNPdqDQx\nDuZf8fTBWNQsvPrTaZksMCB35hYfQiu5dfhP/BkXwoeoqQJNOAjDvW1uZwt1\n/hEHN8WQY8JcJHRGxPopbMlNRG2QLybwc8qAZIKWmp1iz4RByf2Qlig15C20\n586Ka+m5DBEOWcV5fCM35snuCbhUTSRwfF1WgJCe/cBgxsNel4KkS4T2XJgr\nZ7lb\r\n=xpsw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHWuaaXoFLsLjsa24NOD46lbNHQDtVRQVZuBO8tfWW2AIgXmURJpcjPI6KGzWBz/Vd806winvvYHrMvz3w6BVOJkw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-22-2022_1642810861538_0.06128808657907214"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-23-2022":{"name":"playwright","version":"1.19.0-alpha-jan-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f29a673b4c37f1c132ef180938dc20cee0211d3d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-23-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-K94EbbOQOkFwMA0OFrfOtXhKsolw2bPiX0mtTx3uC+EG6JTYHGTsZeu7/AXCb8HeyHsrCiVyAsrfpUKqMId9Zg==","shasum":"e2d92ecac5390d4f4859f1dc4a1bff62b4b5e49a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-23-2022.tgz","fileCount":9,"unpackedSize":20926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7J+FCRA9TVsSAnZWagAAL+UP/1ZqF5Pu6vEkX3DDNW87\nsjX8+qybpT6XJX1pc6RRvWV196ch5/nh0SjAV0Szn/YFMV21VSKMPRaqWqoH\nJRAKWOJ2vQZrMjrTkpCBqS6waxcbfhfdNfUqGTRZfcTQGthagsslvIFAGy06\n6hAyoczO0PUIwVWkC4HPTZLtCstj9wbE5M90JEBUt7CCBeH/V68URzVmDw/r\n43ARXp+IqamWXSQNCaM1FwMbyhyWo3GmHdCKu8pIw70KrtdyE0MXrB+1UnnQ\n6W58zuCjrI97DL6qbgQZiKy/2QnSyYil8rSSSGem0nzL2HJPC9nnQfQicmxc\nJivOf9dUmoFJNxcl93AlBDeFq3X3VZ6EIRYRqjtDL149jjQr8Hi+A/tpJEuL\nmItsa9NFkZ3xI4fAwhveShySEGsxUytyuCcgIKs+NJ6Xt3glR9S1Xf+npWIW\nw7cYqNrLXbQhHxpg3ELyxn//vylzGOf+ORoLxZ349OLKdmKlRfmcC90DZ7mS\nezpBkD3BBViFw2cRGI50qxTHR2eMzBVFlRdMsONgX0oWZW261dsHl4pELaD3\n88B70q6ikACFIdTeEE8q8jwz/S23Qt6niRcAPJtUc5NFn1igaNEDm5ssb3RO\ntPnLccReFLmye0XkSvY93zPQtYKRo4UAuyuUBuze1QX/fqM2ayr6qLsOo3eC\n9ZgK\r\n=cNg1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB6cLHCiuq47lCy9iraz46bPFxWOFDXUKWOOpKDeFvcmAiApggMZ4iBZQ755sP1Hm06zlYw97PPTmAjKS87bh/ebrA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-23-2022_1642897285502_0.11660311665462553"},"_hasShrinkwrap":false},"1.19.0-alpha-1642899766000":{"name":"playwright","version":"1.19.0-alpha-1642899766000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-1642899766000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0b99d83911173cbd20be39dc6e398f59a75f5bb1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-1642899766000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-3M4hAlgMWiU4rlkpodI8cB3OuhqWubxZu7+kbmpAPOx5xVAH5XpXLilAUqCM0ZZ+Je+57C9rSd0CaGT3/g+URA==","shasum":"28f05e31abdde0335f1c2caf309bc19575378c83","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-1642899766000.tgz","fileCount":9,"unpackedSize":20930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7M87CRA9TVsSAnZWagAA1ykP/0n2LhYue8oN6zVyd1zw\n/2IYKqMWaz1/FnpCSjTCiJeZIY44WxKOjicl25c70WNMpaljmvoQbbiyBNT5\nN+tD8PDSmRGLIHTvSKsEo44hWjLEyU9Ga0d3tu9U+9dBlJGDh3JTP6lT+KD+\nVfm5n2OIp0r7aoCUu3ERFzxvw3+XyXVjT5jb9kKsJuz18Iyw67mycx+PTzNn\nCN49ImRwvhJUYsabPMdlW0or4LDW2gQFWEJCbOQAxBwFpXF68cDdkBJVJQrw\n50/4G+PVzvJ4x+YTLjGcxY5mFdo53sxW576AWGDZbl+IS/Bz15Z5gIYctzYG\n3WAuBCaECikunFn6OmOXuiqQygCwDUjmlBKM1dDOulKDW0ITh9D1naG2Q1gE\n+7a4NRSZe0BrMOnZHDA0KVkJTjub2x+c2J4f7ZOKL5haPHrf1/nJGQuN+Sj5\nrHzNLp5c7G4f1rW8cmDwcyL+EaN019J+podAatyOR6NEeLvv9aG23lQFdXtN\nJMnQdknYvHmbP/70nFXVEwdIPtcmuDwj/7UVZmgGdWDyyjQlu6sv4dFBIRub\n89Yysf4qcNLfczdrBhhFmxADzl3a0xt8YgUKe8Z5gv3Sj1+RDiBQVhA8+RZH\nhRutCSXFKJEKZnmYT/DGLPLls300oEbZERP7vIM7adyMwfS2HWTaSREZ4mBy\nKJ7V\r\n=dH4c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbeRHGyQ6bwkLSN0mLNDfb7xbvkcTZy1ytyDy1VNTF9AIhAJdX5U+nDyy5Rnmj2BHmGKP8xUGX/82OcIjxyCoLEPNx"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-1642899766000_1642909499213_0.20818421945830057"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-24-2022":{"name":"playwright","version":"1.19.0-alpha-jan-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0b99d83911173cbd20be39dc6e398f59a75f5bb1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-24-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-iuLeW1Z16GzSf41ijHTIeroOJuk++j+vidOo7D/J3j6SUBGGmkPlW0CZmCG+YpUjS5lr6QcWH9ROUVsxnaGpOg==","shasum":"65da0a2f45b1856ded1fa464cd750374dac14bce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-24-2022.tgz","fileCount":9,"unpackedSize":20926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7fEnCRA9TVsSAnZWagAAScgQAJA59KhBhr2WsK4NmW4o\nfAzog5aHcPrWWx1NVVC89AeXBVDSK6bAFzimrqfIvkesvMfRpH6bqdjK8Qx6\nY4BsQrjIb5p/fyUCec3VxB2IJYpzuBVsLCFDKvp6QYoKRePG2/Sgs8dj6xJc\nB5z6bJF1TJh59FAURmYzND/4fiH2VxCr3mJXk0hf3BtrCwdPSAScTgOPdXAQ\nxBZWhD/kpQE1HBeSFTD2BoQq6lUh7zUPvVIo0iEfRbvsGMmdAptkv2jTtwzR\ngeihzIKw+1uP2WfZAiiYOR1f6Tc9qFfHAUAzZbeIAWB/lnChNHLAKH58H9BJ\nd065v5E/bQi86Aj/OheIIZ9nKOzxRQgFZJtWH+Gs9CCx81Kw4ASo/ZggHijZ\nqz35oGIdqM5POisjmFW4yksEL37FsvcyJYsaUk1o0VF2/fDYIw8owRIC2Qke\n79Yx1i9idZouCv0LytcTSA0lqmv33AGmvz9DXAqn0ZJyqM9MUbVLX+BXGFKA\nDFD0RwdQsiUIWFpWbuTfyruiw/S/V+LNVRDI9E6D7/oj1VY/t+6schFSdmgl\nZZGvbwETBbloMBz0rnoeAvK1hfJ+SqqOoreJ7nBT9TQ5+2S7am5OLWFIxqwZ\nauc85aNym0O4FJcj0wG1Cz03dZbZqMTZfGj2pM3Gfi4e5gdltTj9N62BTNLE\nO77Q\r\n=kJYm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtKZjYzAXLyWuNSNq3rVJK6nnq/gigjoxNunyXuv9ReAiEA5aygjXU5mMIOxWT94ygmVGuGYsmBDPy8Rn64X73qlR4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-24-2022_1642983719090_0.7810709990107945"},"_hasShrinkwrap":false},"1.18.0-beta-1642992245000":{"name":"playwright","version":"1.18.0-beta-1642992245000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1642992245000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7dcd1713eb516b73f3c9d7fc414bd76b664bfba8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1642992245000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-X9h8XsTF/zPmtneTxNOo1BTeI3edENo5MflIsUmcnmq56GxZvgrDLnwxCY34oU8tNtsqiDhmOnc7X1X+KbY12Q==","shasum":"2924236ce3425f505d599d9f186fcef0b1555a76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1642992245000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7hMcCRA9TVsSAnZWagAATgUP/jMNVnpDuyrm2dHvzP9m\nVmZi8qdYspRGm3X1PYCRjXxQTrfAbctOchdFfmKuYTRqpqaKE83K9QjIZSNk\nDczKs8EEEw7PW5u/AkfFVQVA1Qfy6TDtx77xt5Zdw7iJ3PAWPHlROhhlsruu\nG+mqzAz/GxePAg0s1FgtqeZki9bFxiGl2+rrSkkef4cUzzlMglSC8gpb9f8o\nhTLJpCDPRkodfW//SME6K2a98d0UpojJ8NBul4pKY96UFrIrNqHlcPBMnbxj\n3WtHfksUrtYbwk3sS+yxvrWGM+GC+E8Lm6fJXj07YX7CSPr4S1WEW/IaTidH\nWF8YmCMRr7sb75DjNdeM53oxA+2z2nVSF4pXqbepfA8qNNmy7AIxPzKccMpd\nOWR91XsjvybcXOgr2zRqwgmVjh5VLKtOVRu2Sn5B++H5oYEP9AfqClFXicaJ\nCMwXFiHAGKndLXh892rw7Xl4BRawxXwF/QcKWWT/htiqglflK8Zk92vmfjaF\nWs20IIV/M5HUpd9KUo6j/cJ9qfEEocBdSpiDNQwlVuPDL/YLC2hc3+GOjRz0\n4WU/24lKfhJWrG7PaB2L+YFmOyd6vTMObpNJU20H0Pl0VLSLPY1QYJ1V0kPL\nHk1fHb9KepwG8dXIMhGunjI/fCu7tmLfeuLYZB6MGN58u61Tyq/zGcrYMx2L\nsy2p\r\n=GVNo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEq+W394tH85YU4XTk1jAKKPHtkK8CiDbar6Ixv6jpQ5AiEAgojKzE/Tsm5ZHxAnSNQoYpFE33WkUfAd2btTyNIUQLU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1642992245000_1642992412215_0.1290359288782359"},"_hasShrinkwrap":false},"1.18.0-beta-1643042424000":{"name":"playwright","version":"1.18.0-beta-1643042424000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1643042424000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"88bf78c818b2e5070f162ea49417811706596b37","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1643042424000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-T8od3m1cwjUaxIceeW7YrrK8/9N9EJ2gZ5DYYtdyiMK4l7yMgIBbmCu/k+jY8hjNLPzdvlOC48VimjV6e/wxtQ==","shasum":"dbb4071911a700f54360222c9230b14bfd09693d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1643042424000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7tdNCRA9TVsSAnZWagAADKsQAJzOBBplb9qJtu6kQK0J\nSlQezdqtbqzngaAozRXM5t1/sQzwWLOyruD6A6FFvBWOTpum7Q4gUag67X/U\nv/t8k4pAxc2fTgTxS2rs+60uBXNooZWmn/cl2PUrlk8+N90+kRBdEOkLeaoM\nrK+8j7TLJNXKmWs5jQ9qk5kEARBpDKSDx6AlZ1BfxZ3e+oyLV7I1Xv8vk/bY\nxn+pTlF/gSj0oIJwOquSVhMykJwfddmPgnannYWXcL9o2H7G22aup2r7JSHp\n2rzGCb5lT/GE1VL0ZDuu14CO7QalP+CUhV1R9r5qZooHPnwdBFk+KAYZ+0c1\nFDGT4Fw7qPo2ehKY42QixNtEci5ZQV4OUPBVybONEAZopZ+zJsK82OUGnLVq\nKxUtEL5erQH8eMCzUDuFrGr1pkjFC1YUoRt8Xl8cW/LeijoVNxPRIpRLmP5n\nMsnuZ//sOr/P0xIaeocZOL/DIgnU4pVbANBsmxoWnlxvjxIKYseI53wnqzCw\nkeAc9emv+2FHsmEOpRsCcq6vSgHdrsbJ4MqYsGqo9uM/Z5+xAFdB6eGdA4R+\nzIUNcwup5YqKYZA7CIq1q371upAZrmmHH9NOKkDS2Sa6of8HxPozo4lKwZ5L\nfQndKErLBj/Gipu4WYZPGYT1DuTd4hrBLtntutb103ML8Qw1wzI0HJlRHiIA\n6Orx\r\n=Vn5V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPov3lvbJqPt727tO0b0UhHAhMMFZBUcbt71agUS3XEQIhAIL8QOQaO5Y64a3RNTAvj6KKW8ANN0jcZR4vskgrnSgF"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1643042424000_1643042637104_0.2918007800036104"},"_hasShrinkwrap":false},"1.18.0-beta-1643055229000":{"name":"playwright","version":"1.18.0-beta-1643055229000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1643055229000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9422974d93743b69303957a879991b042c822416","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1643055229000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-KtNb16HpToV5Ee6NyLaXazeojVKvPaY+PRXpzGlv0sM8oKa8w/bXPo1lncLqZe/DUR3So+jxJMBVqGtIWzKLkw==","shasum":"48370c89884797246f9934c09942c5fa4183482d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1643055229000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7wk+CRA9TVsSAnZWagAAy+kQAIScNlzX/ad7fIvvQrUA\nIEPLfrabr7uBCv0ox9UBoShbqZ7Lz2oIhd6EDWI9TASYgE8SWt5rEI2KKQ1N\nY5M2vGAs/0xCB5LBApzLgHfwN7azm6W01iJJnV3ZEZPjWdJY78gQaD3LbEEl\nSQwlAF5BeBJ9zbRR7/XVu3nvPrfQ0vV2CGDW0Vn9ANq7sLlCXiiPrQtaMjwU\nCKBO/xw2mOv1yj2ViGO0ANCHal1JDG7ZdFoIetFXnjQZltOYh7je4uqgzgG2\nSf3YzpCcXdBTujZCEWfxzXQp5Cfhdk3gyI3jN4H2FPVSAfRsGlp0Gl8V345i\n/SYtSwV6USxvtgO3vNI1Buqxc3eXxpl79SW7kky4x8LXUcjpJzAU9xX5VYTp\nbBciXi3yvppopPnnWUfiH/QvT8Bc3itCfuCwlU3UxntRI8kFrb1xVmByxdMC\nYSaRfIB+SCKsnXLMIazmxx+w/V0Da6bzUtBQWzYCUTdojRYAqxzgh1wVhLnp\nt61nLY1Pm7nxsRznuZOgkvzXLvCO+0x46kXW4WT8nkoEkTj5agDxWBSqA3aY\np6fmRvz8WXadfDBO2z6j3A/gmwTeIu1PED3hhR0LM4nmgPOrgEMfwfu9lHLu\nirvk6mrQfSrCzptyxbMjvtTwohxFgSyD3arv+OVWYo01dfKs/d0YBG071Muk\n8Nt4\r\n=/FdR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfeJzBCMXCK8jKLydW0HfPjtYFCBDorc2kYRUzapcV5gIhAJVitoq2pGOyLvgWOSHCs/kxnQd0UXrtzJxjm0bhr7i5"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1643055229000_1643055422059_0.4584505121290794"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-25-2022":{"name":"playwright","version":"1.19.0-alpha-jan-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"64e7557fb9052a14b02161a9e341e7b350d5c004","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-25-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-7rHqTP6+zYfGzqv9XDNCMtNAejF88t7v4G2mVyrPwFZbtsiSeoG+M90LDKcduqx7GpN3y7Q6fzofS9ob4VwB+Q==","shasum":"6a5f0adc36c6631098de3cf62aaa58713d0fd9be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-25-2022.tgz","fileCount":9,"unpackedSize":21000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh70LBCRA9TVsSAnZWagAAf54P/jOpYQURWiDphpYc6qot\nsW7MuHb4iuFt1O0fWoOwCW6bJNWxIy7NIBIu70YnlRxijIRfWOSkVMFbqAmD\nvsH1i9CXNKESskLVT2c6xB/T8haxmB6khMFz+dkA3IRwWCqJi+Wo3kxGZaSI\nJC6QyU30r6iqV5/H0WDoy9wiSimXM/9Yeg6XwmUZdWUlN+U3VTai1YfoBDh8\npYB320Yktkga7Q48PVQoTtOZlQeWgJXkNHm7W1/xs6zfZbSP5n55+Jf4jRab\nlzZCLfildxaejbvPqT/kx0Rjp3awaNNPoGOjixYXVL3Gva6iqMBt28usGvz6\nkGRjeQNaz+72rDNQr14dNmWeXJGNmZZN8uRdF0dkeGt6LpNFhjZJuJw48m+G\nWfkW/sillJOXLlCWMcx6+ZB76n1cJ5VEJWe3HWWqwey2MdYdYqbQzClvvnGC\nlYFQKb4wR3NcSTBzOwpREjVpvc9isXHJiSjmteMqyJswQ2Xlzfzf8VtNQsOf\nB3qt+lHr6fvIwoL0QoPzD094fS5PnaEVmcCjZVPTd8UAqo6RTOfvIQhhK0tV\nvs5iEUtPklmX97wiu6veR3pHo2+P6XKRMlBZ9kpCiqjWk+FJuzq26gO43NtE\n/VJiOQoSbZnXkuP5ehBJAKXm91g/aPqXEUNbBN+VsGH5SrMh7vgWo9SSC5/4\nTPiP\r\n=5CG/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIhVSXFUdeyXw8lMYmz/eB5OdJpejsUYEVuk2zbughXAiBN4GaA5nLgB4+Mkb7daJ2ba29gGzJFdS7xAcFZuMUN/w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-25-2022_1643070145408_0.5272468730810123"},"_hasShrinkwrap":false},"1.19.0-alpha-1643133229000":{"name":"playwright","version":"1.19.0-alpha-1643133229000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-1643133229000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a13f71d328c0066621f8c3ef30e47b4e4ce5c1d2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-1643133229000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-IXpb/ksr3yR8D5UlLYrxMHhne5Na8Hf3GDr/eF36fDz2HZ3jxo6HS0YJnU8Q8+PO8YlxXUBUDpeWsUJjDusJaw==","shasum":"6ea59172c0fd97544b12aee4c1ad813599233abc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-1643133229000.tgz","fileCount":9,"unpackedSize":21004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8DuKCRA9TVsSAnZWagAA5UsQAIhs9XvHMkc6goRiVB/o\nFoQOjsOuPf5kHFsnb7YCroJ/6bHioC2MrUd+F2wABzwJ0dWfS9augdpnX34s\nSc29e3Y1Pm4DPx8gSG6ATaV/i8dG/2nNY0tfMERuNcTvQbFZDDqcVbtBUt67\nmYZu4V/qH41XL6C72wJ1J8DxKMZeLq7RIvB4px10HWmZkAldxRolL2nyh0OG\nDYMJQNbM/91hAtGOiZ/8d/cMNsqhTKr9TWBkmM8xb06Djmc2C+Puj4YMvjJH\n9w2uF0qwWdHSTk3DqahIDPxFLs8y1lkxH8mjOJuFk6Ovttqr3IZ+2G7kFs35\np+c2Guqmu2MdNQCpu4U3sr57cfqen8HGGLpnzMq68X0zWtMCeRJnNr6lGf6U\nn+qUUac5Qyce+W1V2eqXUvR6BvQkBP5RnXPWEl+pQjVwVDZqRMg4q07EqhHZ\nJFZ0V0oyFgY7cmWh7JO65i8VC7cFW1xGVEped5wvanFDnBLBnR8IeneUEbS+\nxgWoynK7ED6/Wv8X4zmdeQ4OWrfVF3AGnuGmtIQqg1LCKCXzVd0U0fzqd1nM\nWqJ5m+lXjV48013n+E6vfj03Fs9NNm6lv2oHX8Cli4vgI72bhr6S4ib8KWhc\nLgAha4Hq7H53w1OZbyLqfP4jY4MzFki2Coh/Eho01a2qTzDJZ7VQBN+ev/g0\nJ9oE\r\n=QxO7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZKZzMALWLhI8fqa2LivXLCwWEEAbqSuYMBnoMYD+oTgIgW31sWgc0oiYCY6N5AAoS5zvQAZebkUs6PVfAeU0sh1o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-1643133229000_1643133834415_0.0647041373670958"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-26-2022":{"name":"playwright","version":"1.19.0-alpha-jan-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a7a2971f2e40442d720f42412d299c504fcbd71","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-26-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-bW5mFX8Pyqqlu/4W8cl8VEnKB1YC+UElqxGJGE07FIGdm2TkZZVX2R8/Saq76z27/gEHPoz7pVbSoIwHpY41Ig==","shasum":"fcc619d89cd6d6612070260c822b9648477467c6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-26-2022.tgz","fileCount":9,"unpackedSize":21000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8JQFCRA9TVsSAnZWagAADnwQAJeugsX08BOYLmgqhFSl\nnnQ4VakwHGF5d8yBbi2jHcNs6CLyLU4o+ab9KGFPWGO0O0suXvccksFptOQM\n4yMvAZk8tuLQAJvKSifmN3B0nxyzz3KOhMoBObAC5MhXVD/7Lb3PaIJykYw6\njKAu0Xsf+GAb9p2tr1XS8ZfLr1BIfLguq41fifRnZ/ymoxVUDnHy0pzvYWpu\n575MySSAa6EBV10rH6xMhwdsqml5sBDnmU2LS5i0H86b+iYWdjLEcPYowAV6\natBKfunfZ4+jnizdpCocnzLkpW1yIr+2/0Do7G6fZ9sqvLiPFAdzENv2PSLU\nRJ2itWI7RCU1/5kaPIQ+c0Sm4XpoW9KG0PJF1s/SgLpijJFv3jUNF9kd/jia\n71mXWOmnQ8dREcpC55DVLUu75rZybP2hmO5JR9lw/AOsXMEFTjMYxCb7h6hH\na4jYSmetXGln57PYsJ/4h+ZJDzuRPijdVxRy4Jv8xSK+GSliUstc2hM5JhR3\nEQb1ahg38nhFaRJ58qk0XNu6hTawi8uNNVAUYBTiwyND41X4h93Spfvpnfw5\nd36XW+mzEgPMh0+wOynUsMpdy65W1zuh9H9nWTQXjuUi5/Ag9u61oqEQPgzF\n9w8Qwne07c1RWIO4rSoVQbNElbGdZo7K7BHQcgACLvRbT62U2hRsqklJV+Js\nIesU\r\n=fxkV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzPAoYEjdG+8atn/+/Iv3/EHw1qHerNG5t5VEStN2GQAiBmm/Fj4yto3eeG/aiOCp9hXnkiBpWXMsiZ2pjyste0vw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-26-2022_1643156485824_0.03792644129429279"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-27-2022":{"name":"playwright","version":"1.19.0-alpha-jan-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eb03436ff65335d085a0b1a445d02923bbf5b80b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-27-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-MtvaH3g9Y07YXUiX0L0oVR178xzgm8sMDasHz9BR/teqtnWG8+L72H0OnBhXAlwXMrfOxlfu52amWYBpXb5/Lg==","shasum":"1d24fd06484b005c42be4c0fe2f5fdb24333a8c4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-27-2022.tgz","fileCount":9,"unpackedSize":21000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8eWSCRA9TVsSAnZWagAAzLsP/0wPvoNBlncKTjkePyzc\n8XnY4ZWk9R1rfDzTHoGLv1pJ0w4Phu8KJFXfKv7Xj1fHIYoT+jMUzgWGSp5w\ndoeUpGPGxjAQ2kWQVkUrTOf9KT8hqI9ViRFgTC6O2M5gjaf5XMGX1mtRRLsg\nD2DUeeII8kXCg4A5/NEbgoZT4/D01rPLdCOS+izPkB7CkCaFHrHylBsRPiAo\na2F+6iUeHHqB48H7Ak3SeyLo0/kqdu1Gq+EYInwm+kzcbHXFbZjwGDh04dV9\nTQr1XFiCxGtLKjJmLpll5IaofsvTjKhaDktgiw6mW+hDP6Ru5kI0TVdktJRb\n4kqqmBMiqnFHn0SkPKe5hpLv0l2mH8z5TpAbktPWXAWWKdPro+3qrFrqkv/X\nYBFq6jTz9NVOQ9D7Rku8/h+shCOhQ7UX7rFmIQaDa6OxAKVl2+JbTGegWHvC\nY3RGcGY0SK2+cCU1I932JpVpsUA/weszJh7UHtWltlvBMcNkPSpLpkcs0pVl\nntCm/pipUBBpYHlNQ5FRslHcI6DBljr3n7w0tbe8qZ+pKObc2mC1hywTynK9\ndRXBkNwmDO/eQdgHSmDqd7zAGyYIvoNawhbxCrxxSX5JWyHLV9gL4+Nn0XDH\nyxLpSMYMJAdZDz9/ZUEH4mN/nI63ULfY164rOvgJO/CN6nutpOLWDHMvRWn7\n99ip\r\n=FKkV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdANm/Gb9eeR+oahWnpeulKqhOgBLyUL/IjbK+Gyt7igIgT87/7/3mL1ta6BBnmlfHMBeYRN+w12MNn/vOfYDmMFk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-27-2022_1643242898157_0.25612985894302387"},"_hasShrinkwrap":false},"1.18.0-beta-1643313779000":{"name":"playwright","version":"1.18.0-beta-1643313779000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.0-beta-1643313779000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"54157034acff2b46ed815aa7c5438c145779087f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.0-beta-1643313779000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-kY8wWDDM6T8GbF1kULsLRGOXM8kxUaYNGk2bmCO5VrinMz0cLFKEY2gwgAKbG++XMtxLxHfKNKVmI9CEfUZang==","shasum":"f4f73c23cff5c1c53e55d4ced46c5736a9f33801","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.0-beta-1643313779000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8vtQCRA9TVsSAnZWagAACKkP/0bmw5eezP8dXnxN+q/y\nTf30CX6+pHbhEHVhxO+U3sPBQK2lEV0heskMtKuOPwK8vFruXQlX54/iugAN\nlPXegjSFI+jTD/CxgiddDAne+pIzFzaKLC4HkrrdSvuC8+RtNE7OHPFCUWek\nHskGb9ycL74RsvKxQVzbbRysGj05V27hmSu03wEpto7SzCLZ+FMLCXbhbVsF\n4kwBwjdxksjvRR3uKz3F5bOSKwwj+mmFlISPvfvtxKs8DaCs7u8YgO5fx+iI\ndCCxPle96NLLvXS7viToP5BBJcyi9FJHKZdVSBpYLYA6JCsA1pWxNun7rAQp\n3EkPUKpVxH3d242uP9TSrSKvGoOrqwZ5KodytwVraxhUfmbx8gifmV7qTVPm\nuFn/g4BgwGCaiZAPPYE1TuimBPw1dQCqSsXXE53+twX8BT+bgXVkXMwpwDiX\nasWUcQhr8+e4i+MUiDNSuOQTcJpUJIBSpLaNYzdy4lJvx+Ng+JaY8gxhE1sD\nyAFRiVMfh0MPr7fvX+S97JEu1rJuiHxQ7pcu8l7Tr1BEOi5YVGC+K7i6lSuY\nNyGHWkDD0N3Af/c6XDTqeuCb+U2xYwCeH2PUvuSCoa6nsFbET3JHzbnST5HU\nYtqR6BH5xNeZaLWc+Ws127eT+kRsDfRQSqDy2+0vGjXS1pZMFXOf0O6ZvPVm\nOn4b\r\n=YUGq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCESu2FxsDSERIFdUuRNjZcJkgCpDriSEa3tTrhqqBDLAIhANOO1vaUhrFjp532wOOVsCPS7FdDQPM1Nns9tSpxKSrM"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.0-beta-1643313779000_1643314000384_0.24077704653244902"},"_hasShrinkwrap":false},"1.18.1-beta-1643321308000":{"name":"playwright","version":"1.18.1-beta-1643321308000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.1-beta-1643321308000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d44042f07f0c0963dd97b5dd838019ca35b6dbc0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.1-beta-1643321308000","_nodeVersion":"12.22.9","_npmVersion":"8.4.0","dist":{"integrity":"sha512-72SmUXUqvenwPsAq28jt3+G+MfLryH+dE4yANF97q8OpTIe92yCQIY+HKakWSpeZ1aViQVjZ3IKsYHAqBhymAw==","shasum":"cb62426930781984eb73be8c154b2a5b74889659","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.1-beta-1643321308000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8xh/CRA9TVsSAnZWagAADUYQAIdAdfI7zOJdj3NnkVmL\nVAbVnzwN5JD0xEllhojK578uFJmatACuSTOiVi1E8P5YP8KKMKmS0kRt5rgL\n43QCXsVIJXniWuNMr19WNrtOqEfdxN/cS0f5iV7DQ+/3i4dBH3Cc4T7n8f3F\nvEgw/wfnoX7d8j6rhU4Jjm3Z1mKP8ErZnF+YexHkGvqjK2spIGzJjM1pslJY\n11K7jfzuNOb3gROcPR+QBrDXEfX2hVX0JG5LiIZlL6RbTffn6q4+HvpENY+6\npMGCTAGjnscV4Z6PxBVbKqurhpVLdrYOFekAeeOiMqyMIHhn+7rAXUkXmlst\nWZEevGk02Mi/VotjBtf/H28hjct6POh5oBQpWj9l/C3rNPFQ4NvfPx0jcAgf\n/v2zbSpHE0/bEapEKhP/tzIg3YnXc4SE59aVQkaJiQF61yjnraY10bn9O0Kh\nJuNdV7JgNENpVG8UQJnEo3i7kDh95ZzHtkXXqX38yKTtkcpNM1A+7qLVFbTR\nSFq44NwSdB/gNk9hdARlqNJaWbMxnHaDJyN7zZrKF80DSALRrrLpBdPzvH1O\n4gt4BBmjfT8dDEZN65+65pmFOt8RL5HD/EAfpXfMmbsz9iq2qRCUw7MjUSfM\nOV5C5SuoQv8lxwNbV7fn6whUmV11h8rfEqxeHy48g2j5+zetf8zD02dx/sSJ\nY2tV\r\n=p5qP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAg3t4MKm4XDqXHS2Qg2nvWak1gd8soNhW0PPpqZ7asQAiAoNRGtsUq5Fav0Vwr7D13Vq9IHN33T5p90jKtvSRU6fw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.1-beta-1643321308000_1643321471556_0.8979471645387898"},"_hasShrinkwrap":false},"1.18.1":{"name":"playwright","version":"1.18.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.1"},"types":"./index.d.ts","gitHead":"d44042f07f0c0963dd97b5dd838019ca35b6dbc0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.1","_nodeVersion":"12.22.9","_npmVersion":"8.4.0","dist":{"integrity":"sha512-8EaX9EtbtAoMq5tnzIsoA3b/V86V/6Mq2skuOU4qEw+5OVxs1lwesDwmjy/RVU1Qfx5UuwSQzhp45wyH22oa+A==","shasum":"45c2ca6ee25c44e336985de9b51955727b5f17cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.1.tgz","fileCount":9,"unpackedSize":20886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8yQvCRA9TVsSAnZWagAAzLoQAJkbZSA61fKMpV2dL3p/\nQOa7fv0eY8C+k3VygkPp/jcmAACsfR56pJ/EffpSIeu9gzC3y4fk95vpFClz\n0jAv3lAZUJr4t5G0VnjIPS9FhKHyOdIDfEJvUY2Y0E8cVRm2L/D0lXPfmRsT\n8/L2cfxLKUpxBe3spKSdkXqnDKboSIYVK4Vsu4lkv7ZgWFgcAi+QTwmm/WNB\n6vmsnrESnnqXrZSV5fD0Tt9dea2GEmbUm8vHNqyXB6D5+PJG53YimU+2Elzw\noIelr/mQMtqB9gUhLe6zSGT/rbR5S9QQvYYHngo0VYs4vhNYttC7DzWyIqrm\nZvzB8xWl6y3vs2x+Xqwhi7n2klYCQx14yBI4yNKDxyq/lJiA0TTEUwNj/Pny\n1CDL7xqVyzxKGCdJkZdvr/NzSUAdekdXgC2Y9ZF35t8+1yaZqTztT4BQ6bRA\nNzQKIV3/Nw7mCJ3ZGZySMOY/0ehp5+WiItZctzahY5V4SNv87BX79ztZZRlI\nLn4cbQIGmbt3hKYVM7/nowaSo/E9a3fr1ZkKUPhJGGF5P3H55vMTldxxrY7k\nKwjUEj1nzkTV9e1jjXMGNtX3PbyISpLuOs9BJIdjYowzdEhOqsLQw41GM1Y8\njGkvD6EZda7apbSvDk7wnjKjvjRd8HiuH0hUWEKQKfD2Q3e1J8jdarQ/rANb\n6BBY\r\n=5Qmb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/MBgEJEqMkB0tMJafQmzTm1lR5pHdSmu+K4DHYufVGAiBjGIMb0tCB3gdhbsunwtWwRGQxxQskGTDfRRk+Pp5j5g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.1_1643324463504_0.6592172536378949"},"_hasShrinkwrap":false},"1.19.0-alpha-1643327018000":{"name":"playwright","version":"1.19.0-alpha-1643327018000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-1643327018000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b436fbbbf4ea6410a1d46889c7f066b7b05ddeb7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-1643327018000","_nodeVersion":"12.22.9","_npmVersion":"8.4.0","dist":{"integrity":"sha512-0s4VQMiB8AEIr7VRDwpURl/laoaxAijKKTfjyBKZrBrNk/UCYGVHnDgbBGb5pbV+2IXQWbUq11cBGmbmkTstEA==","shasum":"d4c2581dfc1eaec9341c56336c9d89729eb91ead","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-1643327018000.tgz","fileCount":9,"unpackedSize":21004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8y8RCRA9TVsSAnZWagAA8VIQAIwSRvoF7d8iySPXKBVt\nE+6jkVM/m0jERNgFYI7dw2LGxN9RBVcCB3fBroMZnn/QNQzjV2rHCjOAQgri\nswZ3TVZPg9cL5r/7qNxUDvJqXuuQgh9X0q+IHQSRyl/H61RgsULeAjfxR5ph\nsNwOOelA1ysXOm1R/wHrBykHxFXm15ABcKmdLeZbRn/FkJ9JmsMvwlIPxDvF\noHD15CTTCVdxjSwtk099//J18Hrah2FX0jU/zIry2yo+p1ff8C9xvVXh4IAt\nV84I+OgoyZjS3LOb9VVgk0n+31+ixERjiZJl7rDbM/v47JNoMIBULM1IdsJr\nErsOIS9MT8exYidTgoRlwgdkPf7TLOdYqrF1bIBs8UB5EqiB3IU1FYWjD6s7\nnYc3Xhh258KbxpBAnWYAP0l3x1/r9aWtfiZn0ZucfRmKFVr7IZvBgI+akYMN\nhHkbJ+bVFSL1Ja1LvaaXs5T/TotOQXtJMG1e6NiahSBPU6lX7yvn4dGTQ56S\nnjpLds5xwpzApsbYZKACLTSPnrez4Sd74nPClaes6AbbVbnoXsJcE6T85G+R\nsey8D0tbPHZlwu2MwKlwVsO4Fy7Mea1oX/O8qZYjnK3SvzFyKsrDiUBEWuOH\nXOiBEsLKbm3E1RlSsqPOvQk7Aqwj7E0+HwhTNq4NgESuSA0jvkOe1tl/0c0a\nXgTC\r\n=LYmC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpJkT4gNfdmBIwwDztFSx3OIFPxe4bU5gAAN3i2fTVUAiEAigb2IB6bwKhWB6ND0v88Yis8IwCEVVfeZD9aqfuanDo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-1643327018000_1643327249177_0.5501982856090544"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-28-2022":{"name":"playwright","version":"1.19.0-alpha-jan-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b436fbbbf4ea6410a1d46889c7f066b7b05ddeb7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-28-2022","_nodeVersion":"12.22.9","_npmVersion":"8.4.0","dist":{"integrity":"sha512-xAZxbKR4KHQZZFd3F2p8fXJJVSMfDS2Aj97Q2zwWH1rqmEGFRy23uOpJ8V/G3Q0JCiegxN2TPHnkz844Cx+bMA==","shasum":"8ba47bde92a0d1f65176f8bba1da14f80e0ef677","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-28-2022.tgz","fileCount":9,"unpackedSize":21000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8zcpCRA9TVsSAnZWagAApcQP/0OH1lCbWvwAWkN3UeCV\nj1NMvLjoW528o9+9VNB2VamYEcMhAPFI+wYqLWev9bkqD7kz6AOHqIGHzSz6\n2czj6tA0LEgx4Zm/ors1sI0t12nCIhbhtf3zeOidFO5PUA4zUnIZsrbx+27e\nr5U0Gd4JvzpequfV76m/BvGqW8bN6c/rUX9ciP22EXjb6GmZUXEQnfFXlXGQ\nQXRQMrUO/BLPjMusALbiGCghZQ4xgtC0JbTCI2YOePbESZYSrbgSBl9Vg0Wu\nW1CaZiUcz64d5iGpxnooFQL7TJm9Oug0GTGnm4ET6Yiq5mbif5xxi+fNNCbi\nqRa2h5M67TLnx3dxDNSZePr1d1LSwzg/z8sZvfEefyY6WPSi/N9fNE+NhALV\n6phCBQfG6776+wAg6cKgdCHBqzSEpaB6qAijs7reBvWPjam4zCRdGymeFpUA\nc49UfH5L0Wb7DUEWen8IK2Et5e7mVNGh/n7I+96erpuzJ9PVCrHazoi57M/j\n7ChcMjphwV+OothNFuKlNO9AFfsGCjBp22p6e6jCj2jb9uzPIuAod2ShuK2m\n6C8k5BFbuv0xkAINnO03VJLATGUyfpUdan4b3re2MY5PcF2EM/OAQmvu0Ks2\n4xSF0DOwZErJXOnTrpk6Yaho3PpZ4+yagSNJo9NQGbMQQeDjsr6Pqkot4wli\nDgsy\r\n=jOW3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG85F4C+ZI0yzOd4o3+oXumKiw4jJsSZRMf/5rBHhZzGAiA0xG90wlXtLA2un7aQ+y6YO2uZXGrh5ndOujrHdHjpLg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-28-2022_1643329321650_0.5345111083588947"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-29-2022":{"name":"playwright","version":"1.19.0-alpha-jan-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"401cd9c0ee8d9cc58c00157d9374df9e122e886a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-29-2022","_nodeVersion":"12.22.9","_npmVersion":"8.4.0","dist":{"integrity":"sha512-2p3Dq/YGGTHtwBgCX5EkDEnswMWI7K7xi95X/fCjngz0uvXx+NM0JInuXmVAf3I5KoldGFHsPG6Kvz3rospbpg==","shasum":"905f47e587c8c50941a1011dc23ac17c3fd001b1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-29-2022.tgz","fileCount":9,"unpackedSize":24029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9IhkCRA9TVsSAnZWagAA0aMP/iAdRi2PIOtswykzsjA1\nlJ6ix6hrPjltmPQ9jlgriOZEF+V7GjRiKy9zf1pWaHw2QrSPu5RUTgNAVAYj\nlY/QjRY8kLiW/QwqyIDeE91+7ociZKpsrNqACu80bcy78M4eAsIrNKINUQ/o\nYLyobWI9bRn10YRu3mgdFPtDal9GQuN342LZgDOVa8Urc4vYq/Mc5U0oMUIP\nEDMpIwgG8zkFhyypI2Nplad1coJc2qalkwazEXeFkEpQ8ZcZ3q5zmVt1ZdFd\njI9VR2Qo4Ci9LA2ZdFfAfzp8d+04g8NE/2IK03xw4Jy6X2i0CQuI4K+hPpA2\n4SiCVJNYIXqJiMsfFpnwJKasrtm6QNBFKBJbtpAsimhzpmX2uTqXp2Ko3crJ\nWzBWdID6leJB1wu+kYqNzjH5L4PSDo5tZVrKWm28HMV71tTzd6CKFfsZ0j9+\nIEJWqRxU6I/aA4GL37Wrdr4tR8e6C3t97SVqI32GUDsTYmY9gQPma9GP0NyP\nZUJOn/ny9wENckxzXZ/WlZ98uWQqKUyWHl+FCQjY4Dt5pudWxFh4MgdIZQ/k\nZJhMh+zL5INYOqWV5+tvhDd37sNrwgOUdkGq3UsK5vERuppZHhYCRikPkoiW\ngRljwK+KeqhokwoJYDwRCVNA43sblHUZ4CoAYjWPy+eq5OzxSv88dpSpnFEX\nIOqu\r\n=qZIP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8/SrwdkwZkJY02OCm+47w9KSQObpys6+J3nc+ZvNOXwIgAh8fS3I3+8vieH90/gRqCz3dHEf4556YCJ9OFGyxyqc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-29-2022_1643415652557_0.6541246174300417"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-30-2022":{"name":"playwright","version":"1.19.0-alpha-jan-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a35c249fdc9c79ae6e3b6bb334a87780afac1246","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-30-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-RKhVFP6SEYrry/cKYa3xG2+Eo9MhQRRN7ASLIBv6ObQsmozrYNotGe9FcDAbPRCQAUZKYUy25Xkqu2TbZIhjrw==","shasum":"f7f2028f95e7305bfc32778bf11cfee906eb730f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-30-2022.tgz","fileCount":9,"unpackedSize":24029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9doCCRA9TVsSAnZWagAAyi4P/iWQ6ua5D2OUpsKLU0DT\n1W6+iE2FGhrJAlOsMzj6UsBc2qbFA4YP8i/DnT8hWJ1NWalZiIjlQ13Rk0xg\nw6ZcvTDrjCXjTXohgQO0F/TrFJJJIO8LJXT7wTLlnTY8biJtPC7kNtLOZBIp\ncghLGmOyGwIPdNt3Dbeju8S0W9eJZQJL37caOLTtBjl7Jo9ZBVFKauRs+w5A\n3JoeBsdQo1iK8X7PJi7aShFCYenz7kGdD3gxaRiT/7RWksGlzXeqFKFmGWGf\ndvU0uM9fyc9VLXhoit8SDSjGAEhIj6G/+0Tyxp0/l3DaCwdJGpZXFKKRHE0z\nCHI1ztHH4ubTGZl2bzwYbyJr81Jqrod6NcpAnuDo/eRV05zrqVi8vquOOrSX\nsaXJRcqUgfGz3ATzieEdPCluOrSg9ajoph/YuYMEJhdYV8SXDiMKBkDzDPXP\n1BUrbDXFVCLYlAiESk2UyDNfj//SjvkJj34x7v1iP/V7flelCOFkMYTfDSH4\n9wowk9Q9Ib6NX6MqNCLbrR9b3GUxj686grPDDIZ/deEq70tfLJQJFvndJLym\nJggEIdq4DtlubefNdmecgakyD7EQMtdGkJO1rj554NjZrB8KH3cI/dzAsPUz\nUXyqfjDG6MleTJ5TRwiM1v+oMxBK/W3We59EkjyiFJUBIMcHc4OugCW5qpgq\nh2B9\r\n=1XO9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAKRXsjsPDTJ4VPZL62txA+GY5Q5xpGxcQ951uGE9Q5NAiEAh/1a1c6JzUcbhG12RyzJ6QB/cmfRlKLhLT7UPFnf5T4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-30-2022_1643502082675_0.9908939742130802"},"_hasShrinkwrap":false},"1.19.0-alpha-jan-31-2022":{"name":"playwright","version":"1.19.0-alpha-jan-31-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-jan-31-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a35c249fdc9c79ae6e3b6bb334a87780afac1246","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-jan-31-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-lFV/AJs4QdIeMj09AsS7I+04kE+Qpapky8aQVc7Sq6QWSEJe/8eM00kkLG+PydkaGGUgLVeQWgTUKR4GGXpoUA==","shasum":"281b8331faa66f84761a1c5708f85c01753d85d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-jan-31-2022.tgz","fileCount":9,"unpackedSize":24029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh9yuQCRA9TVsSAnZWagAAWSkP/j9VIcWpUsWK1z7gI7VY\ntg5CuVseNCKsdIupTM/6U/DoMXmdcDZL9mxyv+sVDUO8f1QtlNHKliDTH9Cx\nVmBezSiWv1j2GDIfus8IqzM7IqgQguatoi8Np+utrP6+4rjnDO/XuW2gVw2o\noEahB4NOsnbdtIDNgfcuZpeTjF5Vjk0e1rqiEUL3A+RJJnDJca01aM9jzewC\nVy/RPjev7XiMihwsfrcaEMyhXGbdgnjB1qQDWxXhoRPJQg/kdlksfp4PJtBS\nRi1YHZCcqgfhpdIjA3k9xzIyfldjMoAvIn5GM9Hv6FbfTMamTPcLtDZkCUQv\nVXieDRHWx7ninLmTAmf5EhsGSXEECS0nYWhOtQJuSQzkGDJUNtD2nDfwJdfN\nsqSdKnUEflGaFpFfS+HHIc8I7IhqU0rkmz/8qIlMH5+GsvlkXQO3LuLcv74E\nsGtsLp845JsaR1Ub/QpeNobhvqFN980lhLUwV+AA40VTjF1BmedKEzKm1ApV\nVU5cqWcU07xJohp8IyxD9NBMcv8lAUBEToWT+FC0I1Ff8OcMwrzVNFO+8yMX\nTVnXfhod8A3BVIsMMz7v32PWW2Kdtr22/24kl0WnQeILSaMAaGWc6EQ09ah4\nX3tJVLAchu1bnDQRiaTuGTVFGIZqOAKky1It5KDSvAQsPyDqXpvJmjaI8b+m\nplvf\r\n=ikQw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDmBRKFMCRQcgoDLzCqF8bLCEOqw1m+/svea9wXCtrnAIhAJGgp3i+3k7OvBuCzysFtonPWnXaAif1rO0YTo0WJhO+"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-jan-31-2022_1643588496086_0.9050385689869067"},"_hasShrinkwrap":false},"1.19.0-alpha-feb-1-2022":{"name":"playwright","version":"1.19.0-alpha-feb-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-feb-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bec050c4c4fcee7db2da360ce07e9c000b32625f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-feb-1-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-9PjgJwNc5/WUjE2VTa2dD804za9f8WoxAKLFWiteykNyJQLhCGtM8dPTmlIrHFInjgDkL3eUd7zU9HWDiRLV9w==","shasum":"36d2df9d76cba06129570afd6c580ff968648e20","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-feb-1-2022.tgz","fileCount":9,"unpackedSize":24027,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+H0nCRA9TVsSAnZWagAAHDIP/iJpylrJ31Vs//UPSPT9\nOwApttdlk373zFsRTOwXpQwkl6mLWtpunDLdrckZ2lREpYgcrKlUz7lbuKkW\njIERa0LEyegJ2NPQQTdOdXBBjou0wwhjv5YHQCnscHG9rw842DcYYRn+BrIB\nEht6wAlIKnUU8c66N+FghWsu4QKc4Qlxa1SbmaPZDVi2nTWgLyW5Q6tBGLy4\nEAklPtUTTcZvRMrPdRnN8KdWTFAj/6oq7075UjV//6op7aR8QI4v/ymBoflw\nzgHT35N2JQ9SFFAXncX1CgiFNnFTMs2zcLWjVFUdiIhS0YGWFSkAj0PvTNzo\n4A71MnaFNyxwuh/XNdbStzjK4QJyFKrNLni5WBSO+f0qgOHq+8lBST4mg3EB\nmjl++jXdBve8LhKBm1sn+9yWuF0/PU9dCIVWwVKG9NQiYERbnMoW7SwsvIXg\nrOoHYUDhk4rbIeBEBPAY1I9zwimRxoE1R79AevybR9zv4H5rGn3RmwApwLKu\nZJicnzx+rYbuczErdCOr1h6inawy6q+tkhtx8MtRWpS0GMh7luk6IXAOeI6f\nmesE3pRVoMze6pcUGdpoMWBGborfEDqbS4HCXSnuhEXo9bCcBQijK+/AwFWP\nGclm566RahwCMXTwICsa3GNbc+bt0TK5RjJaLSFUbsYKriz2/jR49/2Aie6+\n1YnZ\r\n=pT5y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPNu1gJ9XAxUn7o53IIi4453rBCID0/tkUAAC7SJUgHQIgamvZfblkHpfuyOiTgIHoFHgBTPmbn1QO5w15BClCrMQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-feb-1-2022_1643674919136_0.06120125934204457"},"_hasShrinkwrap":false},"1.18.1-beta-1643727981000":{"name":"playwright","version":"1.18.1-beta-1643727981000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.1-beta-1643727981000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"95107192782bc7cf51d37f602082f20de2e5ee45","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.1-beta-1643727981000","_nodeVersion":"12.22.9","_npmVersion":"8.4.0","dist":{"integrity":"sha512-slbhQeZ4y0LyybKJLyPzejz9ipXJ/iBYB64r1uIbpphyakNuUELHmb/iXyHUciP42XwUmDjJZgnew3kbFB8Cbg==","shasum":"6cd3c8e593157426cfd9795ccbcac2302acd768f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.1-beta-1643727981000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+U1RCRA9TVsSAnZWagAAVcgP/3QXFkJesvXf3/kH8hnI\nXZ8gHZ5kSmSHR0xonZkTPRvfdJi6aEuyKVArnvp7vBj8/p3xOelbQ6xuknWA\nfEh9aDboiHg91c9mOwmeGgKNuwXgKTzsiH6gSWcVhadIRdi0w+kgsQe9MHcC\nln3CQf8YLoA1P1fWsAT4UCypiPMLWLMpCITxuRFdtBUsvihzNzaVafmmebHn\neTgoGLqtJPNBRCxHq7jG59GJd3Vve6yNBQwwvbGKopun5pv9Jxu3JgTC2Czh\nVUu5PfsGIgcL/TQ0eXw926WoylOQCg9arHSwLO/rWqrc93ZveHxMUVM5yAiY\nDrPFO81OtFdjmaXU/dW+sdqff9YTsT/LkOirxCvHGneTYUpp2gSyUjLhwkAS\nk0BbdAtDBn5Dv1MNc9Oy4a1mH3x0oX1XPTjBsYVJuziGPmWVgd9YprpRKo6r\nkQRx93EYW673YH6rGXmdSkzIk/mUBWyP7kdvoavbLeXdPKq2E8HmxfcK2xf7\n/LdlB57LqFEmvOl2DwfmsMcGpVi+HXngAGnAEx+cZWtM5SFJUmK2Kx6ZYTTv\nR2O6O4gEc6i0zjebk7w+G+iDQ4WrBOnfOD9wIFpr+gO1jQ5f6ztV4BGSaI+h\n85q8N6MGIWOh4Sjnp36qkt+NHelGCYJVj7oHWWchCGuCgz13lpG+c8tnJfkF\nvgdQ\r\n=eqZn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcCk6tBk0Hj8fbwXdGsxafs1REpyIMoSwYeNPEZ5xcbwIhAOh80CTxp2RoSz7KAavP/yNmkimmCedxi/hLdEbzK6cS"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.1-beta-1643727981000_1643728209192_0.4043746780647681"},"_hasShrinkwrap":false},"1.18.1-beta-1643748433000":{"name":"playwright","version":"1.18.1-beta-1643748433000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.18.1-beta-1643748433000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9432bd55d39e0589106878bb55774447da1790b7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.1-beta-1643748433000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-cdyM2Zmu2h0kYsyOfvVO6wt71ovpE8kBw6+tlk7tTWeqYgbViDiW18Y0zXpvOG8XqGTJGYVVzz3be44YC/swoQ==","shasum":"bb88134f6b2e0f653a83a05abbb85804b844569b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.1-beta-1643748433000.tgz","fileCount":9,"unpackedSize":20924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+Z4ICRA9TVsSAnZWagAAzFUQAJS/8ykGLuM0G5ya7r2q\npgW2PIT7UZl9FAIRaShEy6QG7Uy/VwHaUWjqm0AacFhT0eZrv0IZ1zTVUXVW\nz0o0KgwqyDt03QYCj8eXo1g+sNJvk+/WdKvtE7qpmP7aVkeNNeVwkMl17wKq\nJksDeGyNz/2Jx2XmpmPSVMjgAw8yUdPKq8fHEGBuwSV6lUd+TWUJDaar89qV\nIPM3v2A5hQwwfUdPC44ow+L/2B6SbRQ6BYGwDhje0FEQ486m5h6BpRtO9Lh1\nWnSucQ5mleUcWFfq0ZzRtcIjs+rA/o1HuN5fhmr1KO+VL5lJW56B91Ie8DaI\nUoXbeHc5qWXXFgI/H1K9GF6+iNilDBXJBuZXG7XneBisvejtZ4RTu45y2qdr\nvZGgXWn9TldINz+XQMBrE/kdTcdVwCRdXy/jRIcire3XATkUUHB/nYBxe7zd\nN6E+GlCUbAoyCm63zmu2cdKkwdQzKHbZOIXv1/N94mQJRzzm2JXtfQz6gVvL\nRcf+ESZmrNNUhK8u4Alq/YvJWUaoC44T3yiUg8NmsBJx5eOD/WBWLuF5cYFj\nFecsOd5V3kXC2lFOEO+uVQwlxZHdNWfAc0HjCyD2y952bU9OnAeyjlJ/yBD/\ne2YUaQkEWRyLs/iq2ZDFS3Y5KeIPcyua6+cwQcLlqWc9eV7shuuHg7H28Pgu\n0ftv\r\n=SjhJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2wJPkK4Uv+MtrBOu/SkX6t/vkvL34/yEbE4Y1eFs2HAiB4KW0eaQjNP6qwgoPxbPcgzHqSIQU1tlhjK/v82Y2EIg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.1-beta-1643748433000_1643748872484_0.7327195171890888"},"_hasShrinkwrap":false},"1.19.0-alpha-1643749494000":{"name":"playwright","version":"1.19.0-alpha-1643749494000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-1643749494000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f875ebe730f7dd2d5942cb2aba156f9d8e74dcb2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-1643749494000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-TtKkJ8bckyFOt6TrvA/TprZFDEjx7UkEdZqbG4R0IG+ExhlYp9a8axjHkJFwHwK/ZW2dtgCA3hw7h2X7+9MMZA==","shasum":"8c0d574af17e4bb59ea9169c2deb3059bf577192","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-1643749494000.tgz","fileCount":9,"unpackedSize":24033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+aSnCRA9TVsSAnZWagAAAXcP/0AgVlcGDOkTasoshH4i\nAuobHlOAc6y3fQDOMWV8WHWGKdACt8i4EUv6VWDlM8r439H9MXHJjLzC0CDO\nBPBhKszWhmbP/IOK6hie7SV4MPC6xH/bvvBZ7QdRG3ktU9p0enMUEDmSmLsc\nkvQFpFJB4xhPVdl88UWDhYJycyvs/CwZ08NxcXjN74a24zgVcdGDKk+sWKcG\nnRWM4OM1FNLpbCWoWpYKX00aHbEmkRW2j06AYgu+YOO+yKaWDzbbbI+xhf+b\nXlhE95SHLBnznDVr00vpvqg1EJqR0iQdPIJ8upZ2VVhJ8Cou9W/6yHizMrhL\nBxB128VbjO2sOxFnATiIAr5L4ZDpSh0OsgxcqD1AIbwS380+hQGRI7C8ERph\nEjk81zFc38eWZso27Uew3s5qHeRj4FNPwhiv4PusKAMyyP43azBXSm04gmeU\n4ZMEOk7+qVczgNGWhiNmIbJRm6l0dJyKRjF9dx/79G0DNgDpBC73jztoiiOC\nWDyu079i6yiIbuCAeEUBf45yk33ty/sUNe8+QBHYPFSDlbFvzR9s/TMNkSHq\nyhDeKFsd3Zm4wNsXAKIPaP8CsSHFEo9xoMpzZV6hygVzBBvlkbHXEZmbW0AY\nSughBHsXAiGaO2flcOww5Ghs8fX7jlBPVuvDjI3a6H+2M/NZBh10097qdGrK\na+pP\r\n=vTlQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuLfu/63Qqe8cHKH84upXPcjFeYVndOrQni27Mz0d93AiB+SHoKbso2/icNLkVm1dJT+MOPCm+BvmpNC8Y+8tWvDg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-1643749494000_1643750567271_0.8220465240387831"},"_hasShrinkwrap":false},"1.18.1-beta-1643751305000":{"name":"playwright","version":"1.18.1-beta-1643751305000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.18.1-beta-1643751305000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4812.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-95.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4812.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->95.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro/#system-requirements) for details.\n\n## Usage\n\n```\nnpm i -D playwright\n```\n\nThis installs Playwright and browser binaries for Chromium, Firefox and WebKit. Once installed, you can `require` Playwright in a Node.js script and automate web browser interactions.\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\nPlaywright is built to automate the broad and growing set of web browser capabilities used by Single Page Apps and Progressive Web Apps.\n\n* Scenarios that span multiple page, domains and iframes\n* Auto-wait for elements to be ready before executing actions (like click, fill)\n* Intercept network activity for stubbing and mocking network requests\n* Emulate mobile devices, geolocation, permissions\n* Support for web components via shadow-piercing selectors\n* Native input events for mouse and keyboard\n* Upload and download files\n\n## Examples\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro/)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"443a4d4a80ddfe178090255a39f1c7348a826af5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.18.1-beta-1643751305000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-djj9mwAS2Exl0WVuy8C4yW+6YbUe8lOFt1gupaUaFz1lAgzns+mCtjw+n1g/BJyiuuZJrHMVhUWyXmQ/9ik8zg==","shasum":"1f764c693a5978de8e5aaff20ec97b703d2fc5c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.18.1-beta-1643751305000.tgz","fileCount":9,"unpackedSize":20923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+ag6CRA9TVsSAnZWagAAUFUP/3EesmtOl1LgXLDFsAMb\n8ycITNcPfDPLHP35FSmwJINcnwcueaniY6KaOfp9jX5XTeh4PxpNf9pwbY5M\nmAqnB7gL29r7+O9OhnD7rKKmpvPeQ00ayUgdYh0XpManMVKNqASIxBIxrwjG\nVBpzxW1gBrOGrdyWDQ7fmhPOQ1IrLaFpBfUjPwnPQ4Uzms2MR1DPMXyaEQUV\nJIXPIXwA2No6XBs/n2AF0vzkufhfIEt+vON/pozDXAOWQtvF/PZxph5KI4Hv\nmnUwzoMExZgof8J6nhHaAwdPpuu85FI1wSInk3oOF/Ryf6h+xxzII0N8Gi1Y\n/0c79xbcuQZcMIX2yk8UoW4cQFOrNkiNVwe0mzJWmOEqpOa3nReNC+7hlqfs\n+3Vj0auiv3lJRc5EynnwLlAEwhhwTyTjY+mVRAjovyuq1iys3GKcqRgCmKep\neTWb3P3DNBH+82a47fCEv2XZ6e7VwGaSYuM1ygZwGwVcpXzDQ769Ny2ewMn7\nR2NkYc9H42oTYg6C0yQQuOQwo2l0oqPM1NFSYFwoPV+Zr9IhD31Tuo00OxkZ\n1drnGgiNeU8Af9xXaei0zBcUupezqDZXKlfpeTJjiqvwYum+KEMd0OfoTTr4\nM7spvN4ny0JvPYzXxcuhI135X4ohHM3/ohdSaF+IGbGMOH3LD4r8KZe/Itrm\njvRs\r\n=nno/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVTFWGjeOp3L8Kz7fwgSd0tIFrpei+YhxwFZJGcjsj/AiAtLuRbTDhxBlMV+HJ9k9Xm7hugQ+kPB/aFCasFBjiZaQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.18.1-beta-1643751305000_1643751482496_0.004241395364909861"},"_hasShrinkwrap":false},"1.19.0-alpha-feb-2-2022":{"name":"playwright","version":"1.19.0-alpha-feb-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"=1.19.0-alpha-feb-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-99.0.4837.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->99.0.4837.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4bbd38560a9a2ec91f63f2abee0cffb874357204","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-feb-2-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-FROb+IE+pSb1UBi/8ie/OV/UEps/jw9aBlEV2fiydb87dFjP4rDiheVNuBjfYF8fFRjCYo43bNltEwJUbaXt5A==","shasum":"2529986d70ef1c77745b751651efad5c6ec484c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-feb-2-2022.tgz","fileCount":9,"unpackedSize":24027,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+c5yCRA9TVsSAnZWagAA8KsQAJkK4TXD5puQaHNL9jr+\njj6tW9sjYaqfzyuAaR12zNyd1an+5tDHYS4cCJ1UEepuVkt8ztg2znFzbcYH\nWRbG2whkPHszDIW5p3QjrB7FRDyDt1Y6loCWdox82bV3r/uTJtKvn/6kNjmB\nzvabWy34tAyjXy0R1YP++7biTXaPQVCE9Sux0p29uDcuw+jI5gi1u0EGv1R1\n6XlPuD6b0JcA7jCK+tk3Nvrdq7eo+Pkh/mkaL+sCZfqwzWw2FTkNhzHWIu61\nyJ+Lpy7nI625HdsKf0f438CMBSfpX0swixd8mK3WLh7dUbQn1RiRNXRYXHcX\nHlfFIdVd9JYEybnD+Y0JLzmHqiYSV5ZQRzpmc1QzDlB6P+xqSxWybVuGm6Zb\nLY7no73dBB9UU5KTegAfb8NQz8lp5aQDP439zBdtWrTDtowkDCnfYTs5sL+t\nYeTwSJWDHJEM/wa9IA83xdAyUwsTqHMoA0ME/bSkZhQPbzuiWnovRlatP6Wo\nV34DcnrDKfasPzFnerPl6eEgacRt1jvbzl59au1ApuMXmP8ty0bCYr43Urjg\nHZJmsqXkRBVLvz8E46UVggBTJK708SsLKna0kWNBRQf1PMrAGtUciCxLFd+d\nqkySYuj3o1CdScytG4f1vX0w9TBpKJhANno74gKfCwpUsQVf9okGveQx9312\nscYQ\r\n=Ukot\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEPUKaUgXG83jZlgFJ5zjmcgeMXfxM81KstPpOTH2oWgIhAKlhxk4mochIszvM47w4GH78gk23vJly05h5sfYRaxUO"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-feb-2-2022_1643761266183_0.8144224023125295"},"_hasShrinkwrap":false},"1.19.0-alpha-feb-3-2022":{"name":"playwright","version":"1.19.0-alpha-feb-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-alpha-feb-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"55b9d14bbded66ead2d0ca87f9e26104f4127094","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-feb-3-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-9p9XWIy4mP+Y58V5NmUqBjA6W6mziGzHU/EeomOfO1zzM3kHN/ExAi2p1U7wNRiRKqojoAUeEATtHh9Oubg+0g==","shasum":"9716825bd17f7540fb2a0d61e66e1156ba327ca9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-feb-3-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+yAeCRA9TVsSAnZWagAAcX8P/3uQvpcW8DH6I0hfmMGh\nlUcDDmlXvxCiYh6QHQgM2Tj6WET+bulxdGqLuX1zp9xHH1NUH70UDt1E2tsk\nJc8waIJCA+gA2b2XIS2tmtfjNu+nkQTKfHOvF6uASKL8QgIFaCqQpskh7T4J\niJniDUdnRFGPmdPzhuGg4JtmWtBtMa1ADgbCBNGi7b9uMuguUDpcCd7Hzv7F\nQ+RCwQw8bZDR+8FkFlAbrRfh0iTefKMer1U3B4M47Xenbh+/E9BOfNrooP2p\nZSWON/oATthSuUT345kN0jqXL0n60j2CDNbcl9fotGoqFXK8TS6OXn+I1Rtg\n3SJ1dEj1nFAabZP6rYQvPWYLNfst0n0hTJxsDsGUsPwcZ0kvwnLncou81och\nF/5R8XNBJ7YS3yxVeM6cu8D3qumcd1TViqyplKGgZtMQ2I7txGNNCGSQGXKk\nwJsXkf3t9nazYBtKUXl4Mo7es3vT9Vz7kZ/Iv+paJfkfUndQU3C8fmf4uiFj\nj/SWt5qZ/6eiNCFNLicYnyJrF7C7bvltY9CO0HVvyCPSLao5Uc92iYEfjLUh\nkNhTPnjy3nYSUx2rbf8lKKzBQlJKXEp95Jsx1wC0Gt76F9ZfzNK8N7R+kI3r\noM+mhi3I4VG0FGrKJsEUJOzCvaoOdU7LcrLaAPUNKz8iapPVXAqwzvt4uHua\npEw1\r\n=rRkw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhHmnhwik7R2gnhcTKJX4bIBoK3Tu+DsHk/eJd9lqo/AiBr4PPwJjRS9S6uZq5W6ztHHwCOVks76gyuDsU9HHXb7g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-feb-3-2022_1643847709881_0.9405296899326592"},"_hasShrinkwrap":false},"1.19.0-alpha-1643866005000":{"name":"playwright","version":"1.19.0-alpha-1643866005000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-alpha-1643866005000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1215057ca1cf756f35e045a34fd340838bee81d8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-1643866005000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-RhU2IADHd3r7lUSXVt6Xva9U0wUa3EymrqjD+PRx39RfYqN3gg6saJfQZ6YJdW5kgsMRg+K8WqddHf58sPDvyw==","shasum":"ae9bd86396e1d50ebf5e7e38c77963b8db90ffa7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-1643866005000.tgz","fileCount":9,"unpackedSize":24034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+2hYCRA9TVsSAnZWagAAgWsP/0knGIcNfQjmoDpJbBWC\nT38k63YonXE/VWsptBrvA6CrJzVPs3PHR2BA627KUkHZDRiPNtivgdW/G93o\neDfwEch0wiwMopRF5MlyGQbL15SIxRf4LR77dodec3uHELAevnxCakFs/ZzK\nhnA+zmfqsi1brgpnneANbbpzeQfrbqtKxd9G7qEkNDuvxMelKa16h8m1/KvE\nN+pkAoAw2G/gfQRJ9IfNTt/FdsVW38scKqO8UpExpaRtS+DaYE3iTE677e7a\nK8FcO7S6bb5mTZlpkmwieGB+sm8BdybJa1/QzrKlPLs1O6vXFltD2vFrxs9F\nsnn39ea3sIVLUg6TJtuIzmWqnQsMmfT4ziAJ24sfV+4etJfmb85NicigCiFB\n4nloNIY/KIco9iMy2VBdgjopE/Ca9Uhp5mKLTJ/ndg0JfvT7313Kr8D56rJl\n4d1cGs6CFJ2iu54/cb2C3F2aPTxm2Sf1BezJyPZg3AzjV69c5Pkhcbl9Ka3a\nyJtMCb+aIHv6sz4Eib0H7jgmU2ypF2Mc3ImWHzPFYqdp2FyqSiN5ZufCOKmv\ncWX4xkaln6lLDSIrpYFw90GK1BMrccSJ7sTkn7KjO9TBgzdz6/2IanPsB7DO\nUO068KKDoE1JW3py/KXN4RW6ZesVnrHKsFDnTYfG2kCgeDa1j75fjGYy7dhT\neOc6\r\n=Bizd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxbta+gTfvM6A+9aCA5k+YNdeIpD10isbBYEnJLKsvuQIhANXzYDTE8S1ddbp7e5rpguGVtV203B47akiaErhgxzKP"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-1643866005000_1643866199872_0.4262973486141137"},"_hasShrinkwrap":false},"1.19.0-alpha-feb-4-2022":{"name":"playwright","version":"1.19.0-alpha-feb-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-alpha-feb-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"72424dc90476e98c0e593ef985758eee9c872f91","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-feb-4-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Ptj2SHOD3Z+wqPBDnpHSAAg0TQ0/tHosBwKAN/DXF150bEXtp0kK0CuKAMB1fATeaQnb211pRyruyEKpACoNDQ==","shasum":"c28b9beaf73b434856418814bfc02efe219e0d75","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-feb-4-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/HHGCRA9TVsSAnZWagAAF7sP/AqrwmRPFQBxKlLvEXBO\nVisPjIKEXk7ohhPGr1GCfgoeZR6tLWRp1Gr84x/F0vv0OEDKZ03qqg/Ui4DD\n3YtM9Ql5nFJQi+9qZO6/VUQ4V0pU3314okAfLnnZMTVNcvnO9bIiKfmN3uaS\nGWt4QMIpCshDVeomOk5yE8tZ8Y4+j75Qi3PFMyibrGkuoarHtFqrTui+4IJN\nhm0PFV+q7eH9dwGcR8775IWwQLQCuV74pQI1qGzA9eGMR058xYF88eh6GL9L\niurLuxI0GFTaknKzT98oWxrH0DvJW9xUt2VjB761MVmmWlqYl5NzjeKb2eMN\nn6vabF9MeuixUqFWTI1YOhIf4uCWAhXvyaqv3F/MflmROs6W9bRvESSf1C10\nwyXRTImYlDP+LapNZxniXRO4owQ2TlACf+HnejRpTe8HjEhFURjwNfMNLlWk\nqYKJilEiM6+dN0D/TBfnrFxrccYCJlU4Ao7YL1ylRz6kl2JUMtlh+4MVBt/d\noJNNK1snv3rnR1HlzJ6kFqprExDQjkqqiCd2wThTdz1OWalYq95WWuk7Y1UH\ndEmkAEz4d+RrqXaVl+PgYTpHc8Eb/Xd4V5ts8YgYMUFF+t1POloz+OsncGZA\nxwzIzkoROHqB/ysx7hX7cPHPhphAPjkRQ+okNQITRt8a08QaaRXIYNVYfZGC\nQOtJ\r\n=6FiH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICi6GOM2kEWnk1YHX+baUMHbIaK6nb+niNBn8cBIc+MVAiAdMq1Gi8noXRg6OclKnBMSPsznLS65vG6iVdLXflrf7Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-feb-4-2022_1643934150316_0.6818350214639963"},"_hasShrinkwrap":false},"1.19.0-alpha-feb-5-2022":{"name":"playwright","version":"1.19.0-alpha-feb-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-alpha-feb-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1503264aca79577201429b554231f3fad9a2dd79","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-feb-5-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Jk7Z7+o7ZHMSv3dinARq1laCZK/pZtsA/FUJhXD2eGlqTDjiDBnsdmAHK1q2Pxabj1/f1kxNYsuMzBUqX3Ypug==","shasum":"d8abf42a5937b1d4af2716f7b1f12492039f03c2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-feb-5-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/cMNCRA9TVsSAnZWagAA2NsP/16aoO6Ef+gZlgHQj0rk\n40WURGWdodTmFeKRR2KPk1Q6iJnEDBC3y/up4Xs6zmp1o4TisH53KjHP2J7P\n2R07qzE1Jg8qOW24pF324+8nAieKM6WLrgPIfsMcruBqbmicTCE5Qn+7U1wD\nWicFpzYGyXdCduecbK9dP0oIsti3UHvIxdmybvyiQRtm16mfBy46KQcpcWJ4\nXpbZL+ssXdNu4Y/TX76PREGATYowa5xUDqbPBJnEmhDrNU3n8RQDovlHJU0B\ngQP/77EbvKn0+aQQM/u5TL3ZLTTsC0bSPL+KWxj/MTdRFDD446Z1rqT3B4R3\n73/voUnf6rngmeObaLhGcLSFlRFD5se2DV5nI09qQ6rMTL2xEofiYmRImGjV\nujGLj73CexR5UoX+RsVzbeKLXZTiQPfmcHbNFKBq35PSc7NEwbRcHh1GPLHP\ne0TbEkwgdaPn5pXyMOStPOxvYDEnsXG2HzxjC7n5LYBeLE9HZzY6eXR2xUpm\nk3RrHWqoLMbDKBAoqEvPwcf+KsMPoDOoS8tmpjtTnauUuGRiDFqHYRzpmgfy\nngYd9KjmwJ0JMxr1I9lfcA97dR0iY+P9G1EQpFLue2G5VhkYt5gNyEQ/dIjw\nYWEEw0Dut4WiX9ToTmmsGpxsxnypUTFUN/sM4Og2OiMGb76eE9ZeWXNYDGIc\nvqn9\r\n=f972\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDT95/lhhfzAQX5eKm1H1eIJ3m1KmHFJQIS1qvHrEeMvAIhAO35mLY+di0hf+bqR3H18olfcWNpWhmaJt8DL2vkKg5a"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-feb-5-2022_1644020492819_0.49239074455179477"},"_hasShrinkwrap":false},"1.19.0-alpha-feb-6-2022":{"name":"playwright","version":"1.19.0-alpha-feb-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-alpha-feb-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f82e09be044c78c04964162aeda3e03d82c1ed06","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-feb-6-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-0i9XkfGV82MfzQkigGvqpr5ff6l805X6yr1c214VbPYEfGzZuLjo3YkcMzvBLZl+eEwvlJh8hFFaGgF5BO4i7g==","shasum":"6bacc98b7537e8abdd3292e60c16762e44f84aa4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-feb-6-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/xTvCRA9TVsSAnZWagAAfXEQAJW/OyhY1xsQx7YHFTeB\n6ALnaUbeswAx5C7vijnV3MOh5EGrE+NLfgRBEAsqB1GWOer0NeoJNy/JXGDM\noF2AfcTsIHph74SQNAmdkYQcxFaRPTenFYtOR6IzmTtwm4N9TqvYJUixgaqk\nYuARiWFsnPtIcTQCdsNQCUgK1yaOYzesi1hgD5saVAkXIfM63sNgSAQS2csb\no61UUBFawkdKkcc1GV6z84Pj7UbIEMZ8/0aKx6hrksmP4zutHh/fzJpXX2tI\nQ9IzTqtbm7Edi2yUpZ19PtqcYRZ4rv82+NTW1zHARoaORvs88yIYemiA/52M\nibnVMgVLSgB+ZoSTNks2wnryrVhN9/XWBobGZeWI2884ase28I6DSgyJ3D0n\nRbXxRQqZac2aWF9xdLRn3Wkzan5xY1q4hhqgXmmCdxV7cm/IFUOn/MnxGBZy\n96QxMNOxvok9l1O3DGKLU+egqoTff9a1zEnBJNTq3/nCsfrbb26uHhZChnes\nLoQFbW1O/r7NrvMr/Quy6FvmRYfeCjKM45k3A6J3A260jPhvE4uDFEemsruE\nSvRGYqHcgYqsVUgZ4l1i5aUmoPEeBLkjvTOUAjk6nXqNoFWvoOsbck3aBOtF\ny2T/qhfor6Rap2B9+WxppGKtFlBBdUAlswkF3kSz0eQPeXrBr6eXxiLTHZMN\neLwS\r\n=NXDS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnEqdyWKh7u2rGeC3U7Sik6BDEUQBOn0yZCUP1cDKCLAIgbkeWtwb+Oa5vSIrPsAoWplpJaH39DTGi9vVbWTwQZrs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-feb-6-2022_1644106991264_0.5450812768643716"},"_hasShrinkwrap":false},"1.19.0-alpha-feb-7-2022":{"name":"playwright","version":"1.19.0-alpha-feb-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-alpha-feb-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f82e09be044c78c04964162aeda3e03d82c1ed06","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-feb-7-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-+obYpmCTUC0JahTxPzTH8h07X2SKcIbadwzbOCss/hRxW2y6MY6LL2Qtw41T/N8TupFZNjyV3YPE9F1NRkp/bg==","shasum":"9469721dac93b747618ac3c71416402391e5dbe3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-feb-7-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAGYyCRA9TVsSAnZWagAAiMkP/jYUkahoKKY7cfJxwS62\nw+FIZydEtCI9sRpTBDt4K+Uiaz/Uw3bWwp5o7WIKK9hsh55b4xS2yRB5glHL\nIuGVW84eAlBsZXS23f+2k/+Me2vQfZUIlKlRvGiQP7HNSmQW5E/hQ5KKpF/N\n4g7WTIhKZ4iQ0kddTOgVcr6kLPzjByywbiwq0LOFNW9VewUo+1XXxso0JDp4\nj03p9UX8W6WAGBDFGAKQLMWsaiUqwOWZSDlP/K3UoFYSoshTkT5V05QGa2IM\n/rOgCMu5bzPNuIIGTUZRfidSqeumMwDTCtB9VBabYzknxSWa4cDoWNRK82xv\n2bqRYg/A072thzY4mO9jyuwov+e2wYY0+fAISOyYFVLk9pLpomSpM9E3jeUg\n9RaXsavzB4ORZG7EXoSA3SHMSaCBog3Di4TI0yR4wL8RVqmkwx/b94nIxOLK\nxjy99PqTRZAt1Q9eCxQ5JslcM6G7sYxum9WbGmy9ZlcZPFv18qsNiJ8yVCzO\ng0KJ8kSl0tVar9VqjpsxBbAd5PfAaMRJ3RGhPeNC+VEDZ2YD3XtwslsEwfSN\nsfSwCBm/z0/DVg4JcgpIGuOFi8CZvKe1BlEITPt4VSVfF62/Hyrb9pGcBnOO\n8sXhwEVVjrblVarYvptnjyVeG2mPKO2ljIlYuxl1+ZGiJaZpOQRH9mZI3ofD\nsGXd\r\n=f0Hf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaLb969C8wllsMZYdDwnhD3y5jySEd8eT7SJbs8W9ktwIgOJkDQ4IODjE+8lTL+RdQlpWjfIKaHKwzSc8YChFYkQ8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-feb-7-2022_1644193330141_0.2050165162404951"},"_hasShrinkwrap":false},"1.19.0-alpha-feb-8-2022":{"name":"playwright","version":"1.19.0-alpha-feb-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-alpha-feb-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4ef22d338712f0183d052f88f7aba7d917d8442e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-feb-8-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-t4ePKcf+VytQZHiBWNrp1RYh+5qn3stLR1n8kRFWkFX4Qc3k5KUTiEyKnKAHx036BNRg/PEnptuTl29r2YIiJQ==","shasum":"074ed648d3efcfd2cf08c5755fe995de97589773","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-feb-8-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAbd1CRA9TVsSAnZWagAAJOIP/jcnUbzLXFe+n4VUZVvc\ncej+x+ZOJvp6uarYnIIPJO0GarsK4tp1iX2059vzCmE1fUhIh/mLtP2sQKKi\nDUP4vpuACg2EZVOIEw4UpF5r54aK/EleBk4xN+W566p4rEoJgkD+DSGPFMWA\npJgodOom2xNIbPON+IPTW2MJBk6744d+NzODy3utfB38j27BoGP3a5jg4YwJ\n3c6YMA/bmKbxF2i+HknYDBaW8sygvR4kpvgQXW9GzoEFzf/URnSw2lZFPKVy\nxOVWWYaslYoQ8ymXZnPe7SdYm8Ad2KDvU+b8kc+DFTcUiOCGqjFMSsY+V0NR\ntAre50KrhYzZKf70kkiQw563lZwCR1Qx2w1XzdGz5fIMLV1bUeJNGusDHcne\nwolBk0/DDpSEMR8mMyM+YiFSieoChXPsQ/C7pebAfFBKfZ7HV6KBWFHg9HjZ\nqY65qfIHNRZUG13WsZfRDbu/k2jg8/T++pTkp4uGGFJTbejXNyjQWaG2uRuq\nu6E7DQ/j+t2du3FseC32ak2dnGaaiFTPmhqg49vQBPXbQJG285UwZYLMJa1n\nOfZNTTQYe1vElXdC+xgvbZpJEElNLrrA/ZlAWE7jnDO0WcbDq+p3sX3cuScY\n3kf7jCkmjzgFC+WedHccWWAm7UhQ7+XKnYZU5sqsmXO2eOlEVjYlfOF+1oh4\nIo1Q\r\n=E7XG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnS2n0P3EdwFJ+Fs9Wey61WaLhhE8Vew9xWgoHcddw3AiEA3APYTGcDn6MdgFBpE9/DmZLfITyy4W0cRLxBmP77bcM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"joeleinbinder","email":"joel.einbinder@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-feb-8-2022_1644279669271_0.6029291266987145"},"_hasShrinkwrap":false},"1.19.0-alpha-1644345300000":{"name":"playwright","version":"1.19.0-alpha-1644345300000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-alpha-1644345300000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"39ed705904d1d710c20da97141bc812d465ee046","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-alpha-1644345300000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-63xPDJ1oOkam9sF73Hy6HhuqAfNxagM1Qdv99Yh2FO/DbGrTamS3fXal5GAqWdTd1T20WABFKF9gBR/zkIEzJg==","shasum":"8dc6d51f4ce31dd9cb0aae4c325fd63f7a68cef6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-alpha-1644345300000.tgz","fileCount":9,"unpackedSize":24034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAsLBCRA9TVsSAnZWagAApGEP/3Ap+m+8c+p8lDFEyRCF\nJwx7aEMB5CX6zQU8FDl1XRHgZCOLU1yz1eezbGX+xiSvVOamAYNUxFA8WXAZ\nwUMEPdph/qkzhLj/bL5/MWk42X1SUpLQP4U/MzGyp8tcQBPqzMwiWZ4BmLyh\n9FKlO8wPZUK57om40kUUm/HXlHjSRhe84WrGgjGluqxzadn0l/kBM25nTho9\nXbVnIlCroD8bq4N7nNKiRI/3WDeTiiF4c7i8TBZipN6bcB+LVS45SO01fyJD\nIgoNK4tJtg/ddAszS7QTjEcdzcfAoVVD0DC6cKzIpBDsOnO9QQ2etaU9533K\nlRY/XgOxO1/ywqjw4EtYl4ERvD5rjxUhcNGDe1ORQ7tqmhl/fGXYKsLPl/Rf\n7aS5C5iVHCHhH4eACpTLVSMFlbLfggd6VmE3X+uyzwObHhhMd50ME2qiBaQe\nOlmHxYt9gs7J/cGlyRJVBkEkWqgOB6+EirqJ+i8E0RmZeoCHKum9Ex9DL5nt\n+s/LROynld5egptYKoOvucfmGZzODJ5AHD8RyIemKLNEhpSid7l42ELbehFv\n8DJg2y9EZIJa9UdBOQ7Uluo+EUbGanV6uMousdcy5vSzyrz5yfKZUmVofpEw\nVtWhcXQIDAqJmmyj4It2M7/Ny1e7yOSbwAZ+nnLAuXw3pjBmPsl9sJHxJCPO\nIxgQ\r\n=JEcd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF55vdFQYQQdvfUE3R2eqR4hmEoRdI7XpNG6Y4M3i+i+AiBMOntXMvtFBJdpRRjvRuo97g9qcZDJXPOmIAORz3IFPw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-alpha-1644345300000_1644348097184_0.9666671071060322"},"_hasShrinkwrap":false},"1.19.0-beta-1644364656000":{"name":"playwright","version":"1.19.0-beta-1644364656000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644364656000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e92caf01b30b3c541e9084addbd1e2928a7d6952","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644364656000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-51sQiGMxsavgWmy4B6D97YKwkgPY3o/+3W1YW6SuYq9OPGQ8t+r3qtw20T80MJpYytq9SdX6O59q5dNwcMWRfA==","shasum":"0d75f021faaf273e64738225e31acb2a8c882287","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644364656000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAwUQCRA9TVsSAnZWagAATmIP+QBEmkFlinrOKVFGmbzf\ngJSGhHVPHLLLvgpBjmXdyIoQs5yhwDVhRCnRZlmatIilOuD0fptWuRtC24xc\nTKAxpgvUVPADJ2R6zQkEjFmw3Ov5cMJpzoFAEqSmHZrIUW6CuxNSx7k/FcI+\nT0/yvILS6refWaZnJ32XlH96LRfg9z90QDXELc/qjzhTeiF9IaNp8XK9hxol\nugi1esVvJtvuojGnQ0ttsV+HHEqw8JC0iUcNd1P8IWShBIVPe2xP4ySMyzmv\n7ERr5Bfg9uzUkPaRWnfh6wH0C7uCtQNmjPfNN9jcH3aMnxiOhiDp8g7eRT/x\n7Gwq+bRbE2eJLWAa5hfsA8+UbN2w0MVksNZA4Wh5m9zBT56mKwWOro5l+Wvv\nKNfVsEpVFY/0e2URtauO53GJnKfXNWY7AJxHC2SH8D+Rgg0TuyelOc5/MqZc\nqYxApwlGfq76A9ExSJKH7NKF4VeTE9z/oFla2lkTVyySsfW6H6Y8slRVXVuG\n461VgECU6BKcZ4s8k2bNDXpsho5Vmu6YS2JRWZr7VwNObyOJm7/vq0k+vXl2\n0SSiDYkUxSL44xXsvF+K7XeC3YEwRMlCyUmlZApigwYFmMtg0ptCak4EIBEa\nqgi4YV0K4Oml7GzoRBugoLVrbxsMsClANpekT+5r3sz/7+cXkOt0adSFyd/t\nxk4K\r\n=Vl9x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHyIGDNCWYgDyDq4QHeG/OOeSOtQ5GDSm21aIWRZyxbTAiAovvjgH9AQV7mImw0aEK314EtLecc970pLwWFJwSx7+Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644364656000_1644365072105_0.5325698919241235"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-9-2022":{"name":"playwright","version":"1.20.0-alpha-feb-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3eba252f2eed39a8ae9b624ca2e8e12637013adf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-9-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-ompUUYrkXiL3PYohfWzptTXiwmgX0wBMowkiG7S/zEwn7u9+sY1Mp1P6sPDaYmaGHvgU1WVdAJ9rSYrox3CY6g==","shasum":"6282ec7fd3cc7b781abce154674b2bf0c07ecc64","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-9-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAwn6CRA9TVsSAnZWagAAE4sP+QHwRV/54+6Tf938CJW+\nc/2aBMjwadQ0IVmMbK0xUXIY2wI1TDo53iA57XfeRg0Irhpg+ykqMl3MpAuP\nesFP70urSZE4Ufzi1sa1YIHwyOwhei3861azNe581Lv9kGdkwwhEG6K3qt//\nvijcqYz8Q7bJ9ExkXi+IS3YF+AZzxYtGiT6De/AD78vT/l78svmTS+R0/dEr\n70/WAucrx2NImsnPI6zzy/SOvLbm8kBx7pgQH1fOyvVlsAeCMIbnpD3sAdgJ\nDhM3Zf0Bru66OEWTzmyUfWYPL9h2WUdeqC+BJkgBat2wS2qZ8BFtcHD0XWCQ\nl+wxbsB7K6Pe5FAoA8sGOzN5lG5WA2FpxtPR7uBPnAv2qKQUFzuLmVYaoNQ7\nPqkMD8otWsfvBEYvOskg9n40MhxSjtNakn+Is9zDtX5r66bvbkmeTxmgdDzy\nMTIYrOTRIVh1X8CUqRODi7HedLSDwO18erucpxig5aGYmwPBNP+8EwXDB2s6\nwQLHR4uuv4Vv+nm6Jm7ECQcTuNOgpCI9cZPidlLC+jLQLM8i1URd4RhMDXr/\nagMJ0a33Fd1xvN64O5yhgsMq1xv9llKJ1BNWlpmQF12FExJYLk9AHfIkpXWv\nqZzJvGQ0K5Zg8nrBqSsco0aJVDQb6Gk8m1pI3wjZOrlhtKGo/gLMe85RLo1D\n1CMZ\r\n=vmVw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyk0esXYfPowwBCj26iG1AEqdjAVzWVWu6qVrSCB4kOQIgf0HxCPCSc0n7luMRPqvOmA8xtu+eikA+Kw89+WBRH90="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-9-2022_1644366330798_0.25720910542871467"},"_hasShrinkwrap":false},"1.19.0-beta-1644430980000":{"name":"playwright","version":"1.19.0-beta-1644430980000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644430980000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"72a767fd4dc2f53c044c5d30a3beabd73e74ab88","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644430980000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-41eudkK/cYcIAqdvmC51pSvttm0l5PwsrPdFF1io1XnknhzKsWvuFtX8CbELgTg+yGFssMsgX63UI65EH5NIJA==","shasum":"0e8e622e158c6bc4f2df036fe5176a57c25fc091","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644430980000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBAc6CRA9TVsSAnZWagAATNgP/iLKhNq7iYJALzhdkQoN\naO2geQDicfvYaB+Wubm6PGo59dTh1+U39G+1c4zqRzgYcw/yW2kCs1xqDItG\nA/6n/POFw+OhfPhvg8XIeC6TEIa84Le1/k8Fw2Cp9e9/PpMzrZDRd1W54etu\nvDcvqT/ScY/OD9dvex3U8uPYIfMSQQ76c0Xld0V3r3Pbxkfie8mgYZtZudFe\nzgzpPuwTIoRW3S3TIxvfLeJsmQl3pGS6tKm/7J2h0OZafkqvj37+8LspsYd/\nZpUh6SIY2Ss6gGqXaAoPA7gVg6+/WUdJc3CBtiRJCqiE92cVKDwPFMLYUqIR\nKmJ2f3heYnmkweXee7RFCoSat1hDhRaC+UNUmQWukGET/eYgDY4fpvgqUm7I\nBnamnKlVTyEPhUp9uy+lRvbNArs3VamBq/20fw9iKqSJrpMFE9X5bjHKaEWV\niEXMkG5Iq/8LQOQkXkNFo9H5Fd7+mHf+xh7Hj9zZQs3dwlpzLz4ECYG7+cJF\nuX6KzFUZx9OPbd8lgv/9nJeMZAllJTvze3UzA09JpZo1+Ymwu6+PpeRmlYRt\ngn/3BuSc4f3vWe25oodwK9DFJKkJ+aUZ8qrQN1RSnea2bhYuonq/UjJiTHCp\nHWZyWOmsKYtwRnPXLxw7jx3q0+zgRzyjLgq2O85uSbBgGIZ6FOPh+aH4omV3\nGkVR\r\n=31eQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGj3hA7CQznY+J/PQ+1uX+4OgDGmU88O6DlmNtG8+WWeAiAOBuGjuMWy7Md9IXkHmg5qO6EyxqQ9XcfLtzQB7qmJCw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644430980000_1644431162230_0.42136211763588416"},"_hasShrinkwrap":false},"1.19.0-beta-1644435070000":{"name":"playwright","version":"1.19.0-beta-1644435070000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644435070000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eaeb7de95abfed6978e7fe0a696d111adfa4a77a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644435070000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-oIJeSwcc/Ow/BpjOKHckPyYDEACOg5jWYlIu7Nvskb80ELvFtf5fZoWcDeB8A2ar+Nx8v1AQ93dzkU0Fu2rylA==","shasum":"8387ccd0216f2031f34bcb21ce7167d1a48c531f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644435070000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBBchCRA9TVsSAnZWagAAjT8P/RcBMuA3ZrGjUTD0Kb4L\njSYE52jUwRbKBbMaeit8xPUlMj8k6kfRBtcG4il758FPgmEGQceGOZVKoBFp\nRVBXh7qsU4ixDT/AoerMAJ6e0X+kCL8pmUw2B5kIlJc5jkp19AK6mRp59+Jq\n8MFeS51YftH7qeiXYx/uv9aT9TJZXxShPPC8FlTbLQmuyOrqgd1oN+xFmOl6\nKFnSjzDZRwF8FYS3ElwUz00clE6nDMF+olJdmHPhBYRmK4YpdI/8zlr3umcT\nqHbplygPozwuDPNlxxZ3xY2T/+8PXSs0PGvjPIKqwzJUUsmUnMZtqKu5oW6/\ngnd2cqYqTaQVZACl65wA7EGt3kXtVoihoPZLAbYYgw+ky1xn+Zl+rTMeOdjW\nehFayrZSPIw2GYHZEOvVg6PgMfJv3LYXsQYnvPo1ogSzKrLbrHlwaL0RCy0l\nFZEyL4ePzNyTtgckSPAWDzSC9ES0kIUuz5e/SX3i/9wsKF3pQeyJ6eHWT5y3\noDcpOKG9XzyZ72dfwOvrovocKqNFJNYsjqggtShsVehCqONut7ModgnmnhpZ\nGt0UXh02Ll9KjkbW9CZEErDtf2H/a0Vop5K9AugrSeDLhnCniK//mmDpy5Ye\nw0/7731tlFqSox5oUeXCq8x6QdVRp05vfPX9JIwhj7eKRoKYeCwh6bVbJmsE\nr7Rk\r\n=jl9r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvvKUMRBuRm1/YatxvPbiAdNlfJSfFvlKK18tTr1wKawIhAOjYBVVxn61ARKkLHW+/wjjMN6ENGdfOL3K1wpDtSwpi"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644435070000_1644435233564_0.760563507079933"},"_hasShrinkwrap":false},"1.19.0-beta-1644435641000":{"name":"playwright","version":"1.19.0-beta-1644435641000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644435641000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4959558527c710bb1ddc5fbcd5d79b88e9b40d73","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644435641000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-IwGk2wDmIcUlwZAXVfeqi+0K4Ldp5yhoCbGDNgmOx4ykhKK2K1ns6ekZJILao2bPpRoWYeIVP10G10HZv5oXGg==","shasum":"334af8004e966b5d97eb9624f65290d5c6807100","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644435641000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBBl0CRA9TVsSAnZWagAAwIUP/RBqKhbWwx96zCy+0Jw9\nJqMPzhMppLrRSz76WKwx1eMih6nLJZcf91GAwlZhVORl/a40s/FVmrcaBEpN\nw0x50ka+YUtPJc6OTP7joTEgYcKVdovhTyMXu0pBHiAVaFrgQNFIHCOqU4Qv\ntJPISFclAP85cO9W2bCgUMWQjbe4+gkCMeiJU5HHoDqJUkgSPO2OgEbdaM29\nG8hOGTI5NEKCrC+MJiXKA3yu6WMuhgJCqTO0tIHbl3gzGEsl9OXD7kvnaTKT\nrHJh8WCJ596unuCuMiwz6hJZIHczs5jw4fvfmDsUYg3B+jfU5ZU1j/zne50W\nuMFlz9LAhkg0DIp5JWU6wQv58FxoD34ogT1sdqJ8cOXNSdXO8+u6HABfkyxb\nBLN9m3LrpiX0CYQA5zqOjeeofpDCQ6AY6G3hYtZUc1CM8S1NLPLUOFmrDTsa\n8ApzISvCXJuPUhWkTLXfX+vwOM6AYZGFSx2ZKlYkFaA2KYhXRlB83aVwAvOb\nAP5HohJGoENMJr+l5ERfrgJd2avHD5UOSEhHdN/WGlWJT/nTQl9Sl51Fe058\nsqBGbRilK+3fxK1iabpsEghzybuZbHrgP0nZoVToENOKBl2anbbhG5cwa6pP\nPTWhc6Mk79vEI9I+X8ATbvvqGjnKMrfeFs5M9dCnyxakNBdkHKWYQGLAas3H\n1Pep\r\n=nzHM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFdH2iV+CIWK0hourkKLcsKFW07ZP9lWjeibNDHtfH/iAiB+BnJnr3jMYi3xTTLkr7noyURGUQ/LEHoFDq0VLTT6XQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644435641000_1644435828784_0.6440304040387836"},"_hasShrinkwrap":false},"1.19.0-beta-1644435650000":{"name":"playwright","version":"1.19.0-beta-1644435650000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644435650000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b651920bd5b83fa617b96ee1829b791784c04d27","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644435650000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-7RcsFWjZ8DUlnfSOoNjXNFxdlGswZa8NNwTojwbDiFSILpS5+AhPN1UDW8f0Yyt9y3h+cE1nzvWU1M663uKPlw==","shasum":"634b1e1b2255ae38e14cb8cf86174dce84f8b360","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644435650000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBBmcCRA9TVsSAnZWagAAg0wQAI7y9Me/RgnF4CDPQNXw\nb3KN6ZakVzRCf7W1P61CFHM6Bg+Oq/r2829+QPdi/O6Kc0z5/bZKv1i01zVh\nKHYOAEOm+1jEL8FenDXmxAyp7irE1JlDPntD9+tuQYe8fvDIk/mYqzp+KZMX\nvcHXavxyzAXH+uwItd8PzdHumqlmEzw9Rio40iUZ+CFU6XdXAnGx6tFxSYSp\nOKiNnUS8rBGs4SyCLyIfq5yCQ3H0KdVm0EJ+olPGYELQR5TKPHdm1ikUAhHa\nUmRziGJQcFq6pd2QVt8s/yD5UziDmyZkhCMdGQ1+ABlEVpvsWzXotW3Y2QBP\nnKg0nkDgXv7xMsW2DY6EBC81codO6iq5YfuuWZdd7yE373v3xfb5hS7UTgl6\nPz1Oea7WsiC+F7nmBWcxWABaWa7bzGZQNPbZQQFcezEXLG+PMyCz/GhMMl8Z\ngnwQc4wdipK1B3FPlYNQn4oxXuEKAI/ia7IsQ46sK2KSXAal8Cg2xLHOnWT1\nusdjwQdPHmO6eta4WJEh7UH7KiPJztAz5GyFjpTXI5KPDx2UQ3V9SSkBS+v5\nMCyymKp6sCSpCZ1ecw4uCFxBoWKKVyVEuH3RnwDWSNkcaTOFwvA95AlTkFRq\nNmfWDCbRjHKCFE8TjXANzoLBoiMjtcfiUxc3Ye/QXWXrEnsQ80QqEjavDRVV\n6b01\r\n=8B+S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkcUbE6PEa8eKCbk1SRrc0e9hrTDak9HsT7cVaL1cyqAiBbL3wW7h+Kh7f5V7AP4ptPLwQ/c45Z6Se51y8UnWL5Hw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644435650000_1644435868303_0.26996182369775745"},"_hasShrinkwrap":false},"1.19.0-beta-1644449736000":{"name":"playwright","version":"1.19.0-beta-1644449736000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644449736000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8f1f97f508e51ddb7a8da86e93859daccc513892","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644449736000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-p1Dsc7DooqTED86W1YXd0Jr3Pm/YHJoitjPR+RlSJXnitBFMzPyMW66WZTi+U8IX/sS3nNv9947sWk0gzPTU9w==","shasum":"7d0e2388b624d156305b0c3a726f4e3d9314cacf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644449736000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBFByCRA9TVsSAnZWagAA654P/2z9S6o4D6MneAM9Hy+8\ngLG7XsP4NanaVmzy2LFeZ7wn95Rwb15lDN/dPMpqLdsoS1Q5pSurmXKXwAGm\n/dxwEQ+0UATAxx5acssGcOY5u9bU5Y3zYneENTp3nX5enq2zvg+YO1sa7tVd\n3BLTGQ2ZzoE/9adY97KzCqTfr+T6311ubbv3qsK8I7yWB0DlOFQxPwg5vd9k\n6N/PkjfAJjhkFoU9MRvxUfj1+o3p0adFtBL95Oelm37ZzawZosfTrmg6BJdZ\nSHzpqpkN8YuKzbUCxYKPMVE9ZI/M740bo1gdWlIV1Bza1wBfWLeEhVIUDjH1\nVPT6U+1Hqv1FbWezS0U8+AAI0Nsq8MA0af5r/IIowwh3v6IR5whtJmARY/v9\np2mNB9wI8Ml+CszjwsvoWWQuNHDD45dkB/OXN1+vkSGHl0dpxK0FkOu9x0C9\nOm8aijOekR027ozRA86nsfYeZORG6W4XdLq3tMU1RTrw4c9MV+ltlMGxxErq\nZfFT4vaQQSe0cTv6UTrlbnlwDxEdbrYvB2ETDTVK8wZNb5see+UwJ3o2aW49\nCftNyHqkDg5Rro+1i+BQgMje7XTxEIYoj1/pp5NowkmfA17vSNGLkfVmgAvC\n9q2mJzYw+i3KLuGhc2ygNlEmZgZiIj643ff58+Ye6TI6phLcjiZQ3TAxI6Sn\nFE49\r\n=wlZP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRgy9UzLumWN0U9D6J/a/2//ieBu2d0Oyds9fw69UXLwIhAJVb4v+Zy+wlquFBzfYkPPn7IuRClX4i9gInLeksGR1C"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644449736000_1644449906809_0.5388774159927894"},"_hasShrinkwrap":false},"1.19.0-beta-1644449910000":{"name":"playwright","version":"1.19.0-beta-1644449910000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644449910000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"786bb337f0f74ccf0ff1197780e09288e42d667a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644449910000","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-ehIpXmFQM+XxlOb0lJRU++PtDw5xTHDTnCHAWgwNfVxjad37ftvABJQ6QV95Y8rx7qr5l5l1hJhG8y+JMumj4w==","shasum":"b8ebb448d090022df1b9586023d5455bbe57c719","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644449910000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBFJMCRA9TVsSAnZWagAAfNQP/1UJvXCNGzKBXjWbHd47\nAGo/LDYUVNhZ1u6hGUp7udfo4Rba4efsxy+hNevugoxbo4mItQ4guNsvSCu/\nVIRL2k2lPpYXfkoTZX/UPcw/ppMUH40Yefg3mZJCIqIDxQhMXV3K0/jtyud0\nSYB7wF2YoeIvLX1iluQjDebGvFLWhs66AlUyz7PV5JBPCnAA1gCLQAmmVLS1\nsXhmBpH/jiOya5VD1XBNXsnBLvlLzFHuZbtxpjBlwyhPjYQPAuNnlBb8RH6J\nZmFhQm3E71bxiudmR33gmXnH3gH1oiTkQeOkCWtzRZ1/1BhEfq877xbJMg1e\n7kJHv8LTGHrSZnedL4f7BlAH33OZcYDkPyYnasUH64SUk+/W158C22VKW7Mn\nZyd94qNP76gB4QsjJ5jOKajzdnEc+IURwg4qpW9psUz1Uwwezd9jkUmUpiGc\nWwyaP9/ewB11PCErTiL42uFlSnSxmfFSheDERD5g9pD6740vMe8zyIcNy97x\n2jImA3EddZrgRwA7CU8BNT1lZS6ddvTUQJqusiDu6yKOEevUFw9EKivUNtUr\nu2boYAfZknKpQbGd1yUxPUJW0+Ijl9t1zO5kDGn4aR+wZ6Wui8pME3wNRTnT\nuoTBFscyjUOW2LLyBLkU6WjbZSdNvIAWQVt7foWlX8v6Y1jv1n6aq8nlqXbv\nhxkO\r\n=AHzH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaXhTofSiesdCwMvqukbH3Sj44hCjI1p2LqAZwkNINrAiEArW8ytYnvdDAbl+7qUt+glKo07yt9VoycKeJHYsbFjtM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644449910000_1644450380657_0.12592070069065464"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-10-2022":{"name":"playwright","version":"1.20.0-alpha-feb-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1f6b84f445597655b015df52cef0784d9963492c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-10-2022","_nodeVersion":"12.22.9","_npmVersion":"8.3.2","dist":{"integrity":"sha512-eHJkfffu/EKoEpZV3RV6ECwRwU0gg48h6QK146xKHQvY6wtxIo/hBbK+BV2oMPgC6aUU5O8Nv7rBC0DairPIvw==","shasum":"be18d6382ab81de8ed98cfc2fd77dc30b3a0050c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-10-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBFp0CRA9TVsSAnZWagAAMJ8P+wbZqeASsrIPtZ5EP2RP\ntsu0J93srrH2r4720a1+5ocI+KphWN+bFWmRJkXbfQeiAjNd+/xEvETqEm1U\nPJVj8LrEhNCYTa+51ciX+82qAR0cLAer3aG+RZsnJSrYvdLUoQjdGNmywRgs\nlijCFxOHWHGmNAm/StAFXaNTeF3Vrh74KomACAaL85Cf+Ot7+o8mkgSgq6pj\n3+qN2Nzn2dh4yYd2k03hX5G/J/QXMQOO29jf8Fss5wQURXYXXr8ktuCiIc8f\nQ+R3nXlLlfWFWuD5Juai9hGhm/F86+X5fChkesqWxiSyp/IZylNAuYqdCJgh\nJQVAR+dOZEhLDJYp065JYs2Cr9uOprwmKGKFYdb0b/zO1iX0z30aUbWqQpCI\n+umx5Fzb97JVBDsrqYEnKp/RorTGf87lwQRyev+QUZZawvGB1K0Gjpr83sZY\nFJmZSutvtcDC1E4ZJ2iC5ddjCkbubqnFTaEq8JOEMka7+vnPij+zNzU5d8mZ\nNjNBvJBE0MZIYCwqjbcxKFzII4kHy/vnG4+5WA5OnyEKHHZPUV1phwEiPTkV\nH2zX805EyQSvJOpAGq17SxfnskTtItiJwHW+FmrnEGGKdBi2+rP77UNA3Mug\nP/vIWady1+aOC38tnfkin94HVAN9TAwItOJ171qtU3BCLo//0M3qdct24LKH\nqKAu\r\n=VvRl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpMP05ZQ8iMBiOXTSEZinnlQ9gZPxRoqari9DD1/Q0+AiEA4+eouUXPI/q2CGdZbOxQnXUpKuvAqo193/T2sPbM0xs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-10-2022_1644452468051_0.5962846699639237"},"_hasShrinkwrap":false},"1.19.0-beta-1644512156000":{"name":"playwright","version":"1.19.0-beta-1644512156000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644512156000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"35f921e7aafd2c3cf85e89b727bc2b0ffba690e4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644512156000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-pjbFZoVbCviM0MNek4EqGlvQOgY/JNBfSZQx2rCDZFYwPvsLS+w6A9kLzFRkF+T3AH36kCkPJuHcYtDBwLyDCA==","shasum":"c99dbe361e4c901a93c9021cb15b5be3634f686a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644512156000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBURCCRA9TVsSAnZWagAA/OgP/0XI76ExQDG10sg/Mt8z\nznq80g2e7B89QB1CevAjzqifvBTTjenVJTEF1Q9aoQwIq2018DNzFW4RVSCU\nOtF/edjVyuavHlrdlljopCslHLrZhUIr5KoX09Z96JrTR8rzHvWeSx880JUl\nE69Z9JWegg2wRhAthBBX3osUxum9hZJHoVfDxMNGzG0fnPBhk/dsPgFr0Ngv\n8FJEfHMg2ojuT0JZtldrWwgA7ZWtWrCi2f9cYFDM0amas5O5Ptt6b4wClZva\nyUC4UsDqACPbeXmED6Gsfgr/W0ul53miEN9vr8QXsgPNwXMGc5bAX1JtZRZ6\nlaO73jm7N7LVOGtvcGMFR/Ldpghyw7UtG04i0f2NmE8HHX52h3/0nW1C621p\nMW/GRdvvnog3U4GlQa79BWfNFh80nVjHmZtRyr3L3JQgs8iirG9FiIweBhed\nkfDP4y6BgjkGQFdiz1DYQkWMTQk8c1QsJBWvhNRvl5VlRFkC3yzMDQVQ9c3Q\nw+T8zSGnKQC0/rNJ09HaITM2Kme5enjvRf+uZlCMK2OQHiGFUntoTqcALXvZ\n8KVLLTB4R2YnnXEmwvJ+ImVmj/O85/QT7FsfApDFOQde3ZWaRVfizNVQHr1Y\nCUm6w7KMsfUIPi90kTmks9kzYN9+aHtO736rzcUXAraRXOQvS118Uica9Kpy\nqRou\r\n=vsBp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLyUkkjvzy9DGs2jZJuGgLCxQjuNLZIg5WQIGeE7JI3gIgYBJXlRF5wPm/2OdsU2cSVU1DzXEh8NJjgTt37ToQRSI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644512156000_1644512322404_0.8991505696122712"},"_hasShrinkwrap":false},"1.19.0-beta-1644526026000":{"name":"playwright","version":"1.19.0-beta-1644526026000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644526026000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"55be85284cdc14d26c70d6ee8609863fc8bda4f3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644526026000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-s4vTmDuV7rAIhzoOYXk3/vi1vaLpsLwoloAxbYw2XPoS9+ing2C6kP0vrfOC9B7FrsRALlD2xV8VFo0Ig2WZ6g==","shasum":"728a47b4d17d3b52388981c343c2f4df55f1b52d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644526026000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBXppCRA9TVsSAnZWagAAc+YP+wYOOrB2N+aD4LKqROQi\nlm0p8b3oHimW1EhOKxcLT8AauefkZvtOb4DzzHoT97eUhRmNmt4oDr640lWw\nXRZXXUrnWWT8vXLWSZBunZ8p9Nf15c0c9fmralzd/jF6Uxe8/3M3FL8VkJlY\njKWNxF+vDu/YOPtMDGdfCpsPwKN3kU5NMn3rsPTOu5RRH41EmDZsaCMgaj6H\nf9l/cpRMxPnaQmdop1Rty9GgKxYt6i/o8SloEFLsA6ZxIn8aeGxJ4AX1Su/4\nVljn4LbTC1Ww49+ICklvWCNQt4i7JlPhMqcDuIGqXgtXepQ1cfOmYkcPOVcB\nPA2xRp20TRGPHFW88zx1BrLpkBv7KjkeHRpi5yFBPUz83A+t1AfVQU1HlJaR\nJu79qtwxKzmVNmZBFUuhxH3qT1fPRwXo7O1+8lx7XOy+pm3VrTRXStuGaOkO\nuthsuE+47XL5C63D0vtE/qVMi3IYpcrSyzh2+hJLaXHWS8yijrVdO+Iz/ZRH\nFGLiLZEVhwDelxzj65woTtYwFS6Q+Sm5qqznzmkKqk/bAKENApotmR2P8zLV\ndVTpmhIrB0GJNSpHD1w3BWsywHMD8hR/bqlZ7UO3s5xbg5jkPpljdUwpLp9/\niRkjMw0uOuvTbevy/E4rfY0MgQRxJl1E+roj0bjTokY37OlogsuRe4UYe1f5\nEiSo\r\n=vn2L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+FtcyMQw+xAOBKrCFbwgsSbO1jUzLjlKfqZ6nb8NvAAiEAtZBV0t3Jlg9AxBcOj9w0+FA17aq55o0Y8Bj3AjGfQIE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644526026000_1644526185255_0.19205763194523207"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-11-2022":{"name":"playwright","version":"1.20.0-alpha-feb-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2bc19ae07618f08c8435a472b32cd2559a921b9d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-11-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-WDldSgf+0T0wmW3X1YIbj42NfFLmuG9RxoztuwwqdCg50Yz6jzG9Snf4dlszR1WixpdpgBU3+kDnIihXeF7TvA==","shasum":"e6f78e9cf8ce781d9ce163133d5012c2eafc08ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-11-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBav8CRA9TVsSAnZWagAAzxMP/0/ccs4D2VtaCZKXinjH\nh7e088f17KvQazNesQdxteNyMGh8aINeWnKF6l/uBYuDsCQy6FwnMOCE3F9O\nwOTI5zrz3cj/9weDPccI0enUE8dwa6sRWeN9K7ezAmeeslYxfQtCwL2Zg5xw\niaw1iL8jahGxMGaNDVYVgFIi2yY/gc318YFpy3H1apNFgVRiZ8r6nBiW3jP6\nzYlNDHqp/kpeTCmIJzroWWUTZGkYUctu3IB2wHfXhkylKjKI69y8uyr4tI6J\nqtwm7c9RQTlOzWxxG2+YORUMoaUPeKK18mc/Ki8GhLcGtrKQg3CowHEXHD1+\nPwANIBuUgrGIFTLdKl9OU6dbu6ZZiG0/flfOdsxwyX0uUZQ5nPEsbjs/lTPW\nn/mU3UZc+5RGNsk0nesHx7QIJg4k+lgChOIEbjbWHasVA0uM8cNOK1UyvYaf\nao1UHt4iJjR2Ru63FxBGBaRG9l6V/Jh2L2y4qeykhFZokXDl72pP73q0yYc9\nskFBvuV1Zd80KO6Yc73gdcMYUSfCe8rKt01KDlGe7ALaIpwWI7yXzVyFNj0s\nC9kTNiNdqRuICPU8YlAxZoBArBsamV3Lg5Kxw3JWp/jRK7l45Jc5gQCu9T01\nlp5MMPA6llKa31rpPDd8NA7gFCSFJEPO9MQIS8dHYkIRI6lrVL9I1GBu817B\nyOmK\r\n=mxwf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcv2sNHPIsUE6po/2SXDiIS05gNpIbog+Qy1uK0z+AMAIgOzkalkziMrgNGB0L1sNzYYjfrsKAfnpw2u7+tO5fEsA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-11-2022_1644538876691_0.0006068338858673528"},"_hasShrinkwrap":false},"1.19.0-beta-1644557062000":{"name":"playwright","version":"1.19.0-beta-1644557062000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644557062000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"73d78f598880b3615b34ffdfd9f7e0300f4d4319","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644557062000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-hNXAUrBYVFsAxGaUjoQTcrlSnDKE1qS0QPLUn6B1kd+udK80dgqCIfGCy1DKpONbBVtk0JcDvQ8+W3BdIOykUQ==","shasum":"c8823d34c8200f3e1e327e9fb6f4eab412b8cc18","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644557062000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBfPpCRA9TVsSAnZWagAAJSAP/33sk3hAgUuIfFT/mans\ngDgH3a0sNdJV2QN4FDk/IEgOFtENf7s2rAoHLSQo6gUNpht+sMGDuYxT2I6d\nFAIxPT+dSEpKzS5tT8uFxFGXyFzTAo/VSxshC/3nJco8Ny7YWTVqj38lBpsq\nSsW4y5VJRETgBBSOckpJ824oPG+ir5pNfatUT4pUc7tBMEaF2fW+rqIQqMhR\ndkcRDHuHsg6ubKoTbCY1bTioqRwLSUPPEgHF1WtLdBnqz0UKQfCRZZamoPJc\nvV71u4dFitPlXQubCiPRUhTxNmM/cOgg9I7mmlgM7LQluyfabjtK1cokC5Ry\nr+G4tMlwp01I+sL9P0F40nLf/rl1SU40nn6hNJkKOjSkfLXzIWDaJa6kYIVc\nPT6AQQYp1fLWCYKGVYR41UI5Q7eAiJW2QZtN3HYY/LC2ccYA/QJftWoWdyMg\nRJS1pHx7cAzJExZmzy19XaoTv6bTDLPY3i6Hl3QfPByP7+uGJsC6L2tN3IpQ\nodycmb28mLgy6rqYsnhB39Z2RFSGG+CGG1Ie9ViOGdylJP+R3V+G0LWiOrpA\nRnPscBjlahilyhMMDXlQu/bHBRWIIfWnID1ddxXHIY9Fl33TIjotz220PbJ4\nYZzCIjzDCHNYNc5D+T92jS1iakZiMigWxGTzQZHuAwxw6/BZvOhUizJtFJAX\nlcmT\r\n=Omra\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDusIfAEU/tA6V8I79b5iapBNP9ZYa93QRJ0WIInqqJQIgTJVR5aeVA6R2GdAY1108MLGWOPQJkYxcW9prpyvfWv8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644557062000_1644557289351_0.28333149660797274"},"_hasShrinkwrap":false},"1.19.0-beta-1644589657000":{"name":"playwright","version":"1.19.0-beta-1644589657000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644589657000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d73d188ae712343b22273a15d69a3eca549b34c9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644589657000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Wd2uGikDqkpwB7zhqW3gfF3ZbIX3dERsb7xYZj7cK5aa7+UJCnsqn7x73XOkDSJ5NtMJ62zLbNgw2HZF1vb2cw==","shasum":"b81c7022cc5f26aedec62c1ec57f3fc7c5311085","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644589657000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBnMJCRA9TVsSAnZWagAAJqAP+wQGZNwudoLs+BRsmpLH\nmQVuQ7LQ1mA42InxcHYSE2Uv6MJSCCTEAiWWCrutQC3RSzkO2M9U2Rwk3eGv\niTPp3WjOm8S5OqQYW7Qipm7NZSrYipRDEdSy54c7qHK3nuBy9DsWqSgw5eqn\nGd7mj4SQLVTZWn8rgV9tuogki9MGxsbVyYDURxXeV0JSf00TtPX7ikoOMYPV\nQVOwv3/UevWtS83EziZVFCCK6H9tlB5IvuioGaxmopSJnmDuWa8Dx0oT5BWv\nTbzpkYJdP9qbwl/i08eqbWebTme5hzx98H3HgBff19aUI/aATd8Nd0/0Sven\n1ql9UlKg4lcF9f8uCIh34l6+25i+awG8wVFP/b+wS6nBqBgdVNFqAYWX7DIo\n8+gWdn6cQuZToI0g2XciyvnGbQH02H7udT8/5qQvJJPSJf3QI6JVQHj+K8qR\nzotxIg5EK127N+EDiALcmpDG+lIcl70hyxVhPxEFZmJr1xDt8S047CFVBB1n\nFc3XOWWCLD8kkmJCq2AOIo1H3SUoj8no33N0OJVQNBG1HDGy8No5Xv6HHxVL\nXyUFWsIyvSz4BacHuPnIajo4vi2IN4nOt6jLkoT3TKJHTbLKgG+LJkTaZyiA\nYOmmmOy8uNSGKSZ4KNeOK6BzCS8G3AanKrWAPifrzoLpf5u5hA8DRK70QSY0\n7bOI\r\n=VhvZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt2x/38+rjrJ7UvH9DcnTJL6h6Mxjq85OXArE7vcTq6wIhAKhHb862bMDO4HYJVfzzPuENiCZuGl26qQslzWqIHi39"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644589657000_1644589833263_0.9152489592869708"},"_hasShrinkwrap":false},"1.19.0-beta-1644595974000":{"name":"playwright","version":"1.19.0-beta-1644595974000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644595974000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8a52c3ca7679a4b3711a20d4d6f3d0490ef99690","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644595974000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-sVfNtsoIlzURL8ALf4VbP0PF93oo3XRh+snIRQmmIqBIsFIEPT/Nc++rLU98uIlW7FAuENzioqMz94V703+lqw==","shasum":"1d09ad40a371d3aa1526253cea145e33a2de8e88","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644595974000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBounCRA9TVsSAnZWagAAYdsP/RI0wb21Yx1Wew2R2+vW\nGl5pvkbBy1/4RCiC7wJG4uWDdLR0VK9jZJqMwOzCb/XVuo/d5LCM5G2qOxpv\nRJBi1JwnzV/+XXH8W98LxxVqeR7kH9Ohc1c6977/8TF6P70qYEmdRrj5KRhR\nN/TOAwfYAAGnPDzpqMUN0+iJt8pq847Asijfg+TBL69dum5SDH4bb6opxLbC\n7kpxfCrceUVpywt+eK6krQcNuFYXqesJt9i8mWbR11GZO48IJjmuNysGisN8\n73VRyr0B12zgePfqOaaYtxONp8TqQEbgnRBLIH9OU0DX+DBwRG/Lcwj3ba0q\n73IvqK2sYh9RK6w7+e5cVTO00QpFfv5LKEy5T25ryZgluizAL1zSNZLvCF4F\nMqortEmewo+lEzwiFF+HXrl2ilo3oKrhEw2Qbg5+IDD/W21+YeDNnvI+Q7rV\nvZRLz24Ol/bivxHTjyGMJ5Iwo8HmNa9rKQ3lT9deg1Mq8ft4ssu4E/hZb++1\nYoOyW3sviwOmnTBMBIk6tePfHpESZWO+T51jeNqHGfBTuXlUFQxu4AhoEXhf\nOnqPUqU6bb8ul57iQ0hJSD4cvQ4eNMh3ui9tpwkg+hs2nbgywcSpGU6QOBnn\nTLPCtZkxBEfnYSduGrM/3MpZ9IjDQew4qmUsx5dHQSHn9ROtgX+XxzxaWEge\nYOyh\r\n=OoOv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDjtayLW564VM6ITVSmkvwR+7z99LRsL9p2/pE09KteAiA2uQfe++KukJEXg1cFI5OQxV1Y4PjSdQoua6vk4SkE7A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644595974000_1644596135375_0.1329618233469354"},"_hasShrinkwrap":false},"1.19.0-beta-1644598693000":{"name":"playwright","version":"1.19.0-beta-1644598693000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644598693000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ca116db2cbad170e76e8b088db34236ae0faf22c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644598693000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-bbRhIwvdHlhj/l6tURkd5HLncRoJv7U/HQ41Rk0kQJLxnWYXR5f7S96aScrNnpcX093PO/di4aK/ihAV0aDJ/g==","shasum":"5863c9d376855a37c82644993aa78146b4ef54e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644598693000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBpY5CRA9TVsSAnZWagAAg0sP+wZjcczu1Jh3oorD0mRC\nWW43aIPQfTkdGcFlEEbtgk9cK+gxzQM37QVDMXhaQL1zKr4i+AWAUOYARweX\nwiL13r0wrVvgFMvmk1fT6nC4t9lNV8oRv4K6+eGmBF+uxbCGuLILlNrlnZS+\nTMoPi/bcotFCP0psK/c/0NSmjEW8t3TdJr+YqnMUc9gZQYNJwFm8KiTgo5gr\nV4+Ah4fdYT7jHLgHro17LJMi3ECrdR6DbKZOSe+GPq7nHC5IJAjb47Il2XAi\nKxoDOCZMIzDLos2tktFInCA9WtJJMFwZOUSK6xtMKIq+U+p/xdSYzI121zop\njlIFEnpm8nd2GzAPuSBRknUSjjAflZ0BOzhw5EaW3jydwl3sCndh6VHF+SFu\nplfLSiv/jJO3hJ5tFhSNElsQ+yl4MtET9Hv5ViSomYf/basytwHZ3RWD8uXN\nYdzLM/IxizhGopY5uaJl5yNY2WtD4tFvj2GiSPBZ2vSS+npJGW/k/SeYio6Q\njaVAK+PYHRD1oWS66YrHjXy2i0uIBJtBxkmeTDo7eo3CX4f5BtnYS81IQNAl\nJ4Tk5wHBcEilTaT7a+HPr+bdgPyDirnn+rSmoli/0OpiqWfdZyIEEXYatAVq\n8ItgREVnoxd0TXeGLDBFv6tfb88hv4aOr+ob8VbtLrSo46+Z+NkYKmbQUQd2\nfb6A\r\n=xJWW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIANqG/Z4I0R8BgdId5kDBFmrvIbkwJDw91zD7Vly+xK+AiAQ+azYu8r6uqY3IjxCbGIAcIBZtfpE+F4C4NtVCmW5ZA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644598693000_1644598841282_0.434277628262707"},"_hasShrinkwrap":false},"1.19.0-beta-1644599140000":{"name":"playwright","version":"1.19.0-beta-1644599140000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644599140000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7a683a9331447f71978eb36551c1de96bffd1990","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644599140000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-nees82DjsXrs0sC3xSdAza5DoIPrso80ecnG6JwLVx2rG0okTuBrQXvD3Ik9eauscD1oDnLhiVOWjMECsFp3dg==","shasum":"36975c86a3f4e240c1603fec998b67d745c69f83","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644599140000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBpgTCRA9TVsSAnZWagAA4vAP/i/6KntOQU4tGnpJz0Fl\nr9r0TRuzByG8TZyGKem4kMxtiNi9ZWI1jdKMw4g0zX2I5BhrQBEN+vvItj9j\ny7g4wrjE65s2gGrxHMHZcKZnn1pE4h1Mxpr6y9XPiFKHAADRSuTrZ3Z7xXpI\n9wMzjNMKMXnOk3w4OUzJ+aKP2JUej0YzKH/OoT+BDffjCRmzFPzRBMZIkOfk\nkXlmNBi9BODHbvLLa7DkMhFHh9foNd2EaHnn7ksKyujXoz0zTw8doROWQtec\nX3mgPn22JK38ZniCiIBZRXBss/jK8HEU+a6IbA937KWllqKUdtzGznF7pjE2\nZOLAqKkUa60GcI35KhlEHcn54R6FOLDyMCF4UhW6bfTWM2jKucFjLnALSO2e\np2/iGOxD5/RhZZILLy7tmdpAHvtCcbhEX1UwBqkdDImgyOWaex1nWDmUSsNo\ngceab9Z2lQPjlh3LE73Oyvn3jlIPSDhDeElo4h6+Bq4H4JlHXJVrQDHNxmjP\nTzcljQc5V6uLRhI10LYOJYlQaSsu2Ofa8KVlddw/zDikUcgI+/C3sdLhlAeW\nLcDNHcOoRyfEj2UD6fmTYVBsaBg2XikcIpeDPTYgzwVCpeqJm+/BG5gUTjE7\nYFb9E24Yh+qt1O1EjR8l8wUe0AIrNGmB+Xe/KGuQbWMgut8fs30mP6IJwlVA\nNYqk\r\n=GHeH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjf15Eicjf0W3Z2emnEeoyhshun1wOjNtCuBU+o6k1SwIhAPlxelLBydMgOu5RiCUXOJldN2LE8nG8fKqwEPlB5QmM"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644599140000_1644599315447_0.31062700797094944"},"_hasShrinkwrap":false},"1.19.0-beta-1644599706000":{"name":"playwright","version":"1.19.0-beta-1644599706000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644599706000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1d4521a12e6867a4a4b5a22b818f09cb32cc0bd9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644599706000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-QYwPL17pynzAWoxQAaN06NPs1jbZzr98l8VqaVl2/mNlPAwGV09ga5d0EQ3WvM7P7f3zX0lVUrSSxPuWtAFFsA==","shasum":"f11712953f2fce9485a971d494a68d5a163fd478","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644599706000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBppYCRA9TVsSAnZWagAAB/EP/jkNRdC127kMMWL9VJ1a\nr37PQ/tdbcy12aeryuht35F+eRn0Y2ILBSPQaIErDIBIcsMEwMe/2VdTvAtJ\n//dyn7ujBg7ffmKF1L3kIP9hX9bMcemo+DKFMBKkTxVvsarKElsGZG59f40P\n1IaGPPGdLzqX5/ovTFvDOfEVQzykPA3mqjlVd2y99c6gxVr6bkX9p7T+KUoW\nHfkwb0TX4/ngEXRVmrjdNQON6SE1Y3nsUAE+iT1C8zGFJ59OZk3RqYqH0Wso\nWlpsVtu2qada/TU73qKBTaemqVewPTJbPwaRfj/QX+9oFr1vA0E/rIYKC3fN\n7bw3J8odznoRQ1K+yUQtzVzFOGJzlcdjx68Mq8C7OfqNWEUlOyrpBfN4XczJ\nKeSjuGv37l6+xrymylOrJjQPDfsMjwFXeVamWEx2UqHN5pU63ahVRJ/ZXtgx\nGNR4B9stu6MHsYnWtkyErleUTrwItzPrsajv7iXV/qXiBcRH+njJKRE9Kf3S\nxaBLC66JinKK6i4Sdh+TydqLZwzpJYV1Bwltvt7JDZ4ywFHhjg9eRgNzxvuv\n+yPwwXS3Cl5Hdv8WTSDfWfD32uXBdzlY/K+hRKqJ7fWEOjf8tlDAWfLYez4P\nmXOOUJYWbdvBKJeZIlDUw5RcWErV8be61Hwb2G/7pQgysrMaJwojadc26lyO\nlvrL\r\n=h0wF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPYD71RYnVJWY6FDYhy5ZhNp5UPkX79HG8iWZt7+Ux+QIhAPwic75qbG+obFgsyk8d9rhncEoj2rgyIE2fpHoveIBM"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644599706000_1644599896556_0.6201835259467832"},"_hasShrinkwrap":false},"1.19.0-beta-1644601190000":{"name":"playwright","version":"1.19.0-beta-1644601190000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644601190000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b9d665caf0a3c65de36de187b0ae2448977b4f12","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644601190000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-gAP8tI8WAb6E8lbPKt7GZ57LjzxKnYBT9TpuBT4r691pdP4wF98FLPGE6UxVCHieVdjsZ3p8e2Y3yu+7CY8C6Q==","shasum":"0ec5371c6904adfc6e139c922ed00619a8be14f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644601190000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBp/4CRA9TVsSAnZWagAAghYQAJuYbShVrQf/IfOWvpYl\nP7eUTaYaj1StBzb4c5ghbFcOEmlS9UelZdxXMOXWJTa5CRHf9GB+ExHy6SR0\nUuLfEp8I7f10E7zRO/gIoXMn5IC1BkuEvK0aYnYXCFwKz/dOidVYVuGxZL8k\nh4RBiA3ZHc0SWV4xqe48BLIyedYjhFH9Dd0JXKcF4zLJhZ2LL29T0VS/7IK4\nbQXFlX0SKbkilvk0XleF48hy7X3j6YYdiVpIypmlzkk+F8LOOKRqTMgGW25F\ndb8Tu5Qol01uUb7HwLhu4QB9XDZkbG5i5e+OB4UGs2kMVmOsQMF9WX7CroM3\nnozqkp9g+nLaYyjWFiswVWom4uCg98pW83GWcC5Hpa03ilC1vVUN5pLaDOmV\ngvI7dm8iulHXCcn+811vEGfYNoWtiWLqEPm9AdX0ULXOyrggniGEBvGplF2J\nXt3PT46Pn9gBVGQLFBUw6ao4KkuMSCHoND2AwwL2otR2WE1nXHygInUhEg6e\nZBv7XrtI8XTMsB5o7iDjakr/lijU7qTeuovDk1kMaH9N4Py7TZjuKmD15W6I\nnGBK1EXN0iAG6fTwz6P3c0ojhqZnGu/QBr4y5yr2tfphFrHfZNspGz+Bfuol\nbmkLfULYZVadUFD7rA/zlbdYMNxybBzUi+hoqfhuVBlCeVdnIuFsesWz9uzu\n5akU\r\n=5UC1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOitjYcr1aTI5kCgJzCHHoI4VsV1CwaIw0q0zG6bc47AIgLXEuuAUdVXZGXWVoYBhOmfkVM5mgrxSTI2VAcxhLv9k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644601190000_1644601336760_0.2184029757564716"},"_hasShrinkwrap":false},"1.19.0-beta-1644601374000":{"name":"playwright","version":"1.19.0-beta-1644601374000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644601374000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aafaa2b9edc8745f9b87fad17d0251980611573a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644601374000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-j3zASw5Xsxl/8u+dubAKjMZpi59b5Knm8OWmr2kbFePW34Ryk2U0QFurF36KmXLs0BWOZ/h1W18tDWepfjGxkw==","shasum":"1c4a54bf4ffbd6502f3a77e9d3aec32f53fb9c9c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644601374000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBqCqCRA9TVsSAnZWagAA2YsQAJc8gnLI7KOFPLHs0THP\nPh1R/u6d9orJopy+34/TZBg3Cd27iwSytB1dOZwsMpCel1X7rQunMc4ecsRR\ncoog3hm91cBA/m8a5ujwcOs1XkwKdTpPQiHwtv+3v8YR1b/hLMTNrXUHYXTz\nNQ9cgbj+FXBHSezt9wp4f82QMjZHhkABhD4U/Z31Zq8hODPHY3SJATrWtK8B\n8Dp/f8z9MaZAd0RNiMtgcUZZPzCFyw6qf1pn+O1TdONy3EKMY2Z1wnoFk6N8\nquC6xhXUa3ml1UbVIQIr1jd4O1CVPALT2hvVyY2sVU49+XvCrvn6Uv8E0WD0\nPlAjEh//iQ6FWXHlptdS6+rUGemBOl3q3TZZd722g5ON+4HSmnWr6D1oIm/r\nP9jDmquHugVsy/0I+D46N46WGQjT84Bj0Rzo/xnpTDLiLnxzDj0aRoYUUxbV\nLROkju/rihd8aojqzoJTH3bq4tw9oPZo9MddkCL1ploZ5FSO4LFDbSmJ6sIx\nbSyd1eh5wUWRowOWcQvTX5Xx9ChMjV4C6mk9zseMN4/sPABAQ1U70EEzELdJ\nssT2ZsesBlB8evhXLZ12t1OvUxbFOeXI5BPfjs5UIMBrefihKSMJxU4lhei7\n/oEBw8jd1sbqv2KdvGCqrZ4pxfEkdrKFyjuocMEgrZXo33OdEBNYOARaWgFJ\nS9I9\r\n=fvMg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiggAbvRjOtQ07My6xFc5E+fdZswPVyB/rh81X59/x7AIgMAYTZ9NaQQpeaPV4QTaQ+gZ0phDGD9mttfzzdmWb6Fc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644601374000_1644601514271_0.3788068242458025"},"_hasShrinkwrap":false},"1.19.0-beta-1644607162000":{"name":"playwright","version":"1.19.0-beta-1644607162000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644607162000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c098cafb7aae1d16b6995b566392d2d0db54b26d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644607162000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-zb/tF1SKZmBGHpLrK8oIZCPihFQx6OQUL4cryVhPoGtm3WSiDK/eok3IBkQQSBc17/qLgtqKkK7CpPEzqL6s5w==","shasum":"d9e6c4ead9b9039aa746df2d69f1554126642be8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644607162000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBrdOCRA9TVsSAnZWagAAC8YP/iM4cdBYp37iSxZLZs4u\nenRe0Pv5bt92JHuzBONYaE1c9/diJHV9npue0Ds+ut5UE9M/NoWbJPvfgJq+\nV+hzhX721siYoIfXIYunxejsxqcieQTrtiqOy/3CIVB58GH8HEQxB+Vobppw\n3aD4Rh1W6YgN5Sxvgdt6kgUWUKfEkfnmjGrQzdjWHCrqsCFmDNbqb6X+SjYA\n3IjB3xZ+zFpxwAaIOCy1Hc544xS42Bw+r6p5JgKBuCSjGg/85hwqXjAj7Vzn\n15pAjZ+PISx/CxeSVYkXwYtid/bgkeyZXi7bX7ZNBBzNIZW/Uu+KjGHJKsJC\n+MX2VPHYbWKM7fZaG9ZcOlOKJ+mJ0HN3E4zcIb+4CSrORZskG0xkYLiFAPQ/\nQzpFjQLESlKiUsoCsiRRAQzkiFuJumn2Eji7jVLRri/OGnNtP2Hxcz54jdTv\nH2yOD4We8lSlYUlLFB7EkitJvEQMc6Hg8M0hmIxowa7/iie7OgNxZhNji1SU\nmHzaGrA47VJtbzB9cpG1Blvfdm+9N+a+ddAHkEOnZ7eH4wHr6AM208O7C6pL\nZ6ZCOkhbn5L7hUX2uBvuq2h6uxIqLwvX2DEY4OFYv+Rdvou5dP2KMq1q1sAk\n0JoWTsNlh9CABUqyOT7/08tK1OJbX3wYY17TkWV0YKmY+NqJdf9p9BLO+cX1\nef5A\r\n=boHV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAug16RVu2Kfica8lB348F4YhMP2l7WRMFJEHo66P9aRAiEA4tQ7Fl+g3l+Mqefg+d4qxf0RK1GeTfeuCDd36ZE7hSo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644607162000_1644607309831_0.7772713652836154"},"_hasShrinkwrap":false},"1.19.0-beta-1644607547000":{"name":"playwright","version":"1.19.0-beta-1644607547000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644607547000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"92aa600af211a2205133eba49bcb3438bb9fc1f8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644607547000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-qWwW1lPXa3moIbLJEGY69pMhV3stlgHMY0QYa95DN+D+6jYALMc+GuWDQWjG+3Y4GHqeAeio4GsAHWbR7fcYsQ==","shasum":"63bb0bf234951eb0c0ee4b5be9bf8439190174c6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644607547000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBrjaCRA9TVsSAnZWagAAdb8QAJ+xtqwakPP6P6pKQkro\nseg99HTfjrOpc1uL3k/yWtSiGMdBgK9VFVmVkMfybqRoIzh9oAcnr7x4KBMV\nOdOsLN0Ti30f5OifdEGnCgnLhi/z7o5y1LpGwkZvYiMCwJ+33EnwxL1Q0JdZ\nTUf9P6T3QBLE9gvTU7/NGlJjXHh9XeoRiaY20NqdGujMNCPZK8ro5LmR7TFw\n8SUmnuHvRgJeFihPz20IvNnu47AKSneRSXk4uZR7Nv0ivxXoZhgyncdkYjhD\nqYyoI67qXfNBEqLoiGHnxox3FfSQRn/UonDCfLZg+zZ+5qpGYMcS3WywuuDT\nDOBKlg3VtVKUd2i5N/IpkZzFQgMBhcuCE9Zk/8bq/70OnY/og7ct/X5qev76\nflLDsLMMGy8WBZ+lyXptFhx5K5zarnZYZDsQVSs4WvTpqJIQ3uoZIq/Jipxt\nZoCwmstG4B/FRI4wTY7wEpOWvv/pR3LqtF1sAJLcRuqMb96rHgo+sVK/2OpY\nyWHYMgpS0AwYFyUWq8T553hLJ2jFENeHb1Gk3Ng8Cxy9jlXnAW6JuLLrd+8H\nXkQaisx9VznQdI9bxZPoiAF0Y2rwywny/RtK00cmkR/p9kAvtxer8VvDOGx0\nS6DMpuFLhB9EQRe17DpBdmYqSpqYkQZH++/yDssKrJ0bHereZYOQlOsQYEHv\nsWlN\r\n=whNb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICoUcvUT8yS8JKwtyP9gHEn4jKpkdoHU3lDcxpSDewBMAiEA9S13N5jxssxZlMIpuKu1yj7DA1jedjGcAs4ss6pidhg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644607547000_1644607705866_0.22230182073483729"},"_hasShrinkwrap":false},"1.19.0-beta-1644607744000":{"name":"playwright","version":"1.19.0-beta-1644607744000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644607744000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"241add240cbbbdcfcd995aa176c81539aebd790d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644607744000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-3a+v3XBjjPDHy3sMIRcI3y78xfbv/bKrC02ZE9xqm8ZHfCAFRHKp+BWv7bCs8nwTMNFKCTddxxuTYQx97hxFrw==","shasum":"1529586a31e3e3dc31557983a569dec5b0773f2b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644607744000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBrsvCRA9TVsSAnZWagAAaqYQAJWG44eFfU9oNXjRt7az\nlYvOcrkGsfuxOJMk4rlh2PcwVq8xrxBp+RKeyVZ3GQKektcu5Mf20G1XHExp\nnWaUR6JC/r6pNAugUs/agtalCX0hH7E8BXiet5i4KI/5B6l9vKt8cmWRzKV1\npug7lauXRmxWefRPIgKoja3hDfrJS9XPDnQCkRzjbyffgIKqxssyl0CX0DRa\nAvU8qtZchAwoZXo4YHNXTTjuiqE+8XqtcPxt5SbrdzU1oW1o6suhNMPwOibp\nDz/rhLKCrNzqWQtSjJBpLiMrTeUqVCSgi06KngsvEZM6CW+KmqoopwgMUNV7\nEmCEbymC/DiPOUys+g/eZLmmY4tu74YkIhpygwU61w+IPJEL7DpJX9twjk5V\nmnVDla9FBxOok0xwB/rsJBwnhrs9LL5gVMCgSfWs6c/ujHt3hxg3K4Ct5/JQ\nP+XEm350sHRZ3+9/Y0dYNpKyoWOzds5eLb6R5qXIdgIC3uvDBRXR1fIwTQJw\nQ+tKY3RODnVXV5OWDwLIZ/MX9AdWpyIL+yaqxb9kiHk/s18M175DC3E9WcG7\n4cVJcRkrD2+Ynuyeyo7ZRN7ktF+FxYQ98PWaCqC144AOAPEVx8CWhI6huH/C\npNDy7JYQKwtgXOYLs2IMmZ9F3VeGoKi0alBZRfZYSkF7s0q8JNPFl9lABf4+\nt2LU\r\n=3Naw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0DzNBLGSpRDGOfERw3FaGCSNwFJ3sqkcnQJzWbsJ96QIgD0ZHH03H9F69zig1X6VGlBYovSKfmllMJ7cgYVEZfXs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644607744000_1644608303477_0.9631248507768793"},"_hasShrinkwrap":false},"1.19.0-beta-1644614300000":{"name":"playwright","version":"1.19.0-beta-1644614300000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644614300000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"03501cfdb2d9ba510150077ea721cdb716b6d0ba","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644614300000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-nLr3fUMnEQpikMb8ZDcv6UjWh+Q4kvnpOJYO9kcKPyQsvIPWY73ZIhhxKsLEZzyNp3WTOyl3zx0axPRMmp+9SQ==","shasum":"87ea2c093d8dee2b46992c0d8676cbbd71fcc208","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644614300000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBtMvCRA9TVsSAnZWagAAWcIQAKPMtCYlpShm8xthkTVp\n3I03SHQ34AuF58VPBHPNtEjUHiMzhnxf4rduczm969Af0ej6uTJoqehnRmm0\nncfmIvhDuddQJT+tg9MY94XZsc3gTgamH6Ptl4l0bw7oXF9lioR+ZaVsi9Qt\n2JgeEkcOQIPAvo8qwZXIE7wXC6xssqIwrDTpT5I238PxRtXY/U6uN8SKMTz1\nE6YFDOaHXx1hPNV3L6zTbSyWUmj7NqGjF1FBlPbGZzvN57ySoAPAb0ZGWcRJ\n5ZX1RriAAQlaB3n+r+UFoBEEf7JjBUGRMVIyJxVW2DuAj370xsqSu2bVjVK8\n170qCmwFRP/UAdLRPNf/uW+9Qck3h83vzBUjzQKY0tRS9hKgkcHDYTIUHJT+\n+FCciBw8x3Fo85Acd9m0InG01GoM/6gwAVDegiczwackImJFazUmHm7M6jiZ\nPg8q4/IBG2GUj5v8y5m31JSr6mTnhhMmsLUVCEmvi5PuLSF6EwHy5yvtkFh0\np7BrD6+SM7bJPo1znUvvEQdNTT7mUqJKTJUPJFi7rYFcWADZ7ChICfMi7L4y\nC0e+FJlZczb1qxtTbizFgGHMJTBLdI5MVcXTIOX7NNnQhEcDn9UXZrZuvScU\nxmKnvEJHTvqcimIAunKNzUfabZ6g5He+tHFL3z03qxqGLcSjZhQuvBN+Qu5/\nAubm\r\n=nUgL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBo8EIpYDcoCSWW6Y8jZS79kMqr22+VnBGo2izswnTfvAiAdxVj4Xfi7ebliGOo8yo1cF5b6MeUVSGtWvXTmFSQehg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644614300000_1644614447600_0.07659421607899275"},"_hasShrinkwrap":false},"1.19.0":{"name":"playwright","version":"1.19.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0"},"types":"./index.d.ts","gitHead":"03501cfdb2d9ba510150077ea721cdb716b6d0ba","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-wEhlkEx4QCzFgl5prkdPOjK5dLK9M3nKJuqZdNtpZirIzkDnbIbVZbEmo2Uh177ZbXTWnt184BkvM+hsIvUFVg==","shasum":"9b6488fa2e1c87217b00f2d2afd480d7b69c8955","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0.tgz","fileCount":9,"unpackedSize":23994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBuM6CRA9TVsSAnZWagAAFSYP/jXDG9f+Fm8I2EsLpbbl\n9vRqo8+Jm9TBgUEelfsxVDIJfxyt34L2jyBN29mXVTQmZdSGkvQnRq/vv8Mg\nOccKMm1kN+1NUbBy+10DiJUvwHb8vFt3Yp3KIRUXvDovj3Doxj0OlFtI5Ixw\nlMU5g64TdG5dUF9Cc8gLVZgXjSr2RVqB9kdvj2Fi9hkAYjZu1jM6PlGjlQof\nTsVABo2b9bCIWgT0/POoIm6BSbgvvOSq/aa3G3Z7GDMJH4hJE00kHLdjpnoi\njPFkndpwuE4EjrpZ6JN6AD5XV/ytFrjZQoAMZ4fNBIK52AcJ7X64Xywq69yy\nSHpj91V/yhhGi0vgJ3B+JKTPyXauOrPXsRsDAVAFkFXIF6h9OzgM4vbSR5A2\nrFRAIfopKq+bzRbdReEwCnZ3k/7VVBoqqupzgn+la+AOTTFNEjoi2cCs9WED\nVg1Oxuh8Tw3913OBujJ8GyhHMcfcttc6mDATUY4TqXtIMJLWD1QC43CGl5WL\nVwPEtF4XV/UieG/o4zztTw9G7o1OO2VSS9Zhap1gIK0oDFYaAhNmzgco1FP2\nAZ4rmj5BcyHWU9DfPXpodXc2eMvU/q1o+r8KLKCjJ3vsKfu3xFJy5YXqBNow\nLvj4KLn+G7dy/t9qhewW7+WLAvhw6DT/VMqcakCo4BwpNrHW3d7Ew71IAw54\n1yjR\r\n=crYe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDduTqQu4vG+6emTlOyYBSTg5vXNdgF/K/GAV15bjHb4AIgSPUa6e4oeAeV2GRUz4o2IzCmAU9Ycx05x99M+B0hTyQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0_1644618554710_0.21570232431518233"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-12-2022":{"name":"playwright","version":"1.20.0-alpha-feb-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"96b5831a4942073a80c902898e6083e8ae0da633","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-12-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-ZlSck1KgkuUy9OdZkNxAU9kCz42lU/qDzVJg8XV6QRHhENd95ypcyGuxm9ZAM3hy2Yeb0m3SxWuw+BIG4OLQoA==","shasum":"702d07f34cbec5a16986909740e72479c257988e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-12-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBv2ECRA9TVsSAnZWagAAqV0P/3Qt39J8WqQMXEaX9J6p\nFtled7oWTVslOueaqxO/XXMAnBESv19tvy+0WFGwTi1Rr5vkMdaD9lZzbMo6\nwMBiGotKFj5yDOrXBz3RH0LxD89xA1czD5vB6SfFOhl6nNtlHrR2FIP1occ8\n0DXe3ztOwA9fOXQ6t+rKnCTLJU5EgFRj6Gtwd/Ea6fY67uUKidVEhW4UeQn4\nQiK3SYd3OoOOkwoE7+d66cmIu4zeEAZAWoWT97SNDsRbGBtq+PktPnBapQPd\nk2I2EWOI3r2qKlebx2F6+vpaWvwe/9Rm0bfSnRazyphz+qjhU7w3BrcQu7aB\naXdcA1nH2nfrHTpwxYoNutgWaDPXk6sb8pjds7qs6b0OMa++7OZSvW/Iwm9N\neALjrK4I6wCQwB/ssF8oqFV9HxVsCSxRm4nKavkGq4TvB45VrN0ynSy7zJtr\nCgEnSCAir6z7KVuYouEjgQDG+yhJTrgQj6JweLoVi9yGvO9vQEAlVIgsiCDQ\n042C+UBIoRwyBrw9A2m2cnaU6lzgbfLZUr1ed8KC+v7qRGPqs7uwv5kmQseq\nhKuFVaBBuMBr9LaE6+6mueUqsP+98jDubTFyQGqJfuknAMXutPO6b1bd6biU\nImqRVRKy++nsjNAl0mdfezntm8XI1BLCw/Kri0qJ1i/itkM+r9kIUWS5+Vd6\njjg+\r\n=GdOK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAJNA7cZ/PdE7KzgFP61E/qq4RZvVaBu9ojl7gxceL6YAiEA+5bHlgSJlbSZEMgDS1lYkKCZys4kW7/EmjBpxtur2U4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-12-2022_1644625284428_0.458837579121113"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-13-2022":{"name":"playwright","version":"1.20.0-alpha-feb-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a0072af2f3563c5044e91c35ff01e5e6f81e6238","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-13-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-nPqNQ1j/e7cCTJ3q3AFLwEtdQi04U44h6yoi+jEb/1c+2Q8nukTD9/MC14IDlXupkHRaPODk6/xVwB0vQTY+HA==","shasum":"295e7aceda275da775d6c09bc6dcd59d0b4a0e42","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-13-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCE8bCRA9TVsSAnZWagAAtM4P/ipEM0NTFv6EnwgKCK/M\nPYy4SZ/pX9+ApKmN2izYQOmCsi5Pe9aiEfhiI6+vdTZXcL7mlRzYFu1KASqY\nwT62lr0n5H2s4Ome82Cy3V7njI+RORflrlkphUpAlGtzPFli9QpoR4KN2w3/\nDgp4ZKV+CIYlXOeJ2sUnDlMPF/nbC2J9BGx9QBwOFKxmb4Wr1ZISUCTXgE5F\n8JTscADdY3n0pSuGjPQ6rNOJt2bmuJFC86ARvOs4nUIfvxYdZxoSORpHiFMh\noCCKKWgK/k5YLh6lzYygeqjU/RdIFbIRobOkobQhPLwjDRV3fhgj/tPIvH6O\nzYJ9nJ/nHG8DcEOm1FeqyY4jx5GK4oVzCaqqdHSElwXchFSUYRejC+1sqZgO\neisUCdCQJRzUZmlkG0FDrdzprLNXwRhA/TRUQninzDqQU5rJPUjHIU9x356j\nXsZJtfh2YQsk3JQHC2FLLpNI3PjyCOU8/4MTC57ShARSeDF2C7rwErqFXLAV\nekxEwYRVjpmY9LYZqUU+cNM2sPreC2EhkI/QbdMf6cqK60nxQ1G/wnW9YJtQ\nNErEj4MVrQdeI2QiaBwGC8GnETlZ95aNbKOntR3s5M7SwL9zfCcIEBGN31qj\n5KSzfyV1ZhZfKbCsr1F7s+b37+yIIRQAlZI2G4logjXc8zpRmtqiRNmE9T9X\nVuJ4\r\n=9zLD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLlVg7Sp2JWNfJJyoghrAzXzAK/BEr0fBJHp6tEPs6UgIgWOWdAo0hlnr74UBf1aVktGhzsjZosy1HiAgaoQBP/3o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-13-2022_1644711706888_0.4000483367285139"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-14-2022":{"name":"playwright","version":"1.20.0-alpha-feb-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fb00991a782bdac40c946299f5690b7fffb4b7bc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-14-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-kJ/Txiv9cdDJ6JWGS/e6vnpq9TtV07QEuNw5fsqKhw62ko8kvZePcAcRVaCAxzwfrBmv66bb4W8GVBw3b6Wrfw==","shasum":"eb5d79dd7983282e91f6d846233ffc29b40d8d24","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-14-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCaCKCRA9TVsSAnZWagAA/wAP/36PwGxL234+C3XH+x5F\nDPvn1CAj4twPssjonuM6qaRdZ3RIBp87MZ/yYs8DFDHq1BiEEfSDDefUlyPu\nz8MsR/ADSIbSdvlpaGazsK03eoBTbKSbJQhQ7wPDqq0AQWM/Uif9V+0Y0Zw+\ngwvvPswPcGU3TizgN6Bez0J0d7fcwJrr12lz1mVKVW55sGBCGDvw/K3V1Wub\nsDkz7ADdYckAMF6ExC3QzNUh2oPMYG0P+YFuhB4s6KrNB7/0eaSGLzN350d1\nIlxCc+opBZhYWH5QJew14B6HD7iJJ90bO2g0hjVKEdBmqRPKbwqyIbA2tSz/\nAgY4qA7nQN6L01cZqur32ZPCrI49tkU3WVSuzDmBwrXyTNX6OWfbZfS7At1e\nSVQh/pi9q7Z4srwqiaNpV7GqJ3a27CsjKvqSwClgSEeyq2hxLR0IC0IhyqFk\nQphid4yKVFzXGVXRzskNZup3SQpnZtjQblcnjBXlXCW1pjlrehlbTdXf5Qpx\n//qg6b5v8EHDwSqVY5CPpphuoi0jRawgbqWE6Nw2dXE1e8OEpp01+mNe9v53\nAsX7x2M6742HjS859bM2rJTRC1ps+yhw7fg+d9J6Hjh9SkA08nzYlPgeqTl3\n8RDCDWkqzqTrRUSSfUOEElGx4SgRQ4ZJa8Jj7/iI8sI+ugA688NLBNcRB2Ng\ndtGX\r\n=xF7U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCICVreOT01xcAoPUfPVlprWcBevieOb1X/rzdsXcUQQQIgULobow1UzjU6mNhpVtWrXLoDbV8eD3XiOpRuGr6qJ0U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-14-2022_1644798090010_0.4268597515957888"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-15-2022":{"name":"playwright","version":"1.20.0-alpha-feb-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5a0445b8dac2febe9702904d816327769e10886e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-15-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-TrvfhHQrLdXRaM/9hbx/i/tm6Dx7B2k2QwadnoP0AaobfH7dloOgSrBZxqDNYAKhiCEP8t70Pk5VLw9AHQPTZw==","shasum":"c302d8d6f0d95ace6aa118c61ed72f172e62834f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-15-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCvH6CRA9TVsSAnZWagAApNoQAJRc7WnLncCV/owUNDkY\nFQ4LYqiAMuT6uNG0FESUEKpqVInWIObgw4dPF6v4H9eaUQBE72T4n18LJSsW\n5zLdx7SzJ6TedY5Ahc4PTIv3W3ISlqRvE/yI9glZBCqJHrBqpohon6QbNU0a\nufh8eWG9yS6UNJa8J+RQ/v1pE3gTGmgLJxBcw28oY+Im+jX0vkOqMdq8eIHu\nDp0ckY/wrQz0fap+CmJ8RjQqFJeAc9sB75bjt20wUDDrbTDnoXPM4vr0ED5i\njQXbR2b+eIjIgsoPnLPyzdZWGwQXOIT8lMTvSOg787sM2tKGJ/kst5JbQuPY\n/UF94pJf3SkedNRBrndHoOq5MKHVUZK3O5eyUHQ8K9W5k9NJErKzR24UqvmJ\nJaQpAdvpbqqmb3vG67DxOwyrpIwANcqxTkrqeiWGcbv7mm4TDRxO6A6O8+qW\nMfODu5HritX72M5X3Jn1p4FHpGTUh8c+uSHgCwvfefyCW4PEBT9SNT9RocyO\n9FrmKAXNBH0c/VKnbURuUJOornAHJFFVqiDw7O8Z+b/n2sYJ2fDbqBY36hvf\nRaCovWeEbyfPLIngD3LMIcWIpTjJtTXrXkZK+UpTR9cnxuYvAv2gL0DAF4l6\nxmGem5p2zxvwQo8hvvR/JsCDMK0uj2o8rmRze5uvGZbkiiGr1OJlB/dbrxUk\n4Oob\r\n=hFiS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEurpEsQjledoZIoFP3VU65VEFqoK0YcodXrti75Qw8pAiEA1pAKxkqUQ09YIsPnJfOWaSXSjDlu2bLKgnwQnhLitDA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-15-2022_1644884473961_0.6808961357359529"},"_hasShrinkwrap":false},"1.19.0-beta-1644953055000":{"name":"playwright","version":"1.19.0-beta-1644953055000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644953055000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d8bc6dbeeaa9468aa6488daab691ae8e5659aca4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644953055000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-MI0Qg0xXaQwP5OMLwIbtHM4nUG6Z7DbSvhK8O+S1G62M6dYoPcWPQdJ3GXtwv1YeW96kqk/+Bs+t+76QBmHTtw==","shasum":"82b0cb7ced0e1701c48a4ab6d967dea3ee84f8bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644953055000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC/6YCRA9TVsSAnZWagAAq6oP/2zwwkfJhiMkyCYF1kfU\nHAU9Ij+D5UPDWv4srRvfm5kJeyQoxFpCiIm/HDJEqJO5DCrWiAgABc1+HT2F\nlKCiolBXX8yruuxwDkLS570Awa1KKawPUxSgclXCUycXDdogYkVHJ4N0INTi\nggWXn+L65v6FUB4KKpRtrijuEniagXDbWfVT3+RIVSjXI4dqueVsRKLXbRGZ\n5XiX7xc2VsnkiVzLdpsrcFi14sDo4fzap51LUVHK0voAmwQdDCzuZUUPgdYJ\njp5KoItLEq41IVzGIyTyX8aX5d/bSHMbAq3/JxZqU35+TDaYdOGVeUDbpbEm\nQ03d3mX3rp2dVy/zjHGIYb7liL3mvtI84G2b09hVebtA0KZ5jE4Am3PNEvdb\nH10YjWWF36JUvqJwf7e61TnSALu4+nTcriSj009lbj4wJBT0jCk0hl6bkpMn\nUXx78GvuhsNPZKF+VBSuimPJccMV/EzpM87FPXErntIDCkjiLCl9/v6ce34b\nxQwYJqvGYqsVRFCW9gdXU/XkvLrs70NdJl468naVsRREv6ll6zheRANqWEzm\nqrae5bzwq7GZmGSw8AOaSPD+u+BTlTcEQzKCQha9eVsSVKwlxVzWNCqw2h/U\ndHh/SgJsmb5HruXT6EooU6Xl10j0s9apGnCrlDKD55kh775r2pXD2u36JAJy\nzBh8\r\n=RMTh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKzbndvNaViJN1RJbBUC1F2IgnM19H6PnRucjRzq6VIwIhAIcYilXK1AF0CmmhBbzczgG+090me3JMnwNOFU25FmFu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644953055000_1644953240063_0.8400199814399685"},"_hasShrinkwrap":false},"1.19.0-beta-1644958173000":{"name":"playwright","version":"1.19.0-beta-1644958173000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644958173000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"46aeb8fe3d366854e4abbca7f72724b041f54808","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644958173000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-zlocZKOQkMWoc6ua6+Q0aS1w/XQkme48VVH0y9MIxoE/VHqR2afMibE5Vn5ro6P+IXMy+5a6pv7IbUtOc1eEHA==","shasum":"a513b06095adce02cbc7d63fc1530f879a127b08","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644958173000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDBJfCRA9TVsSAnZWagAAYl4P/01yfCTDGGVNxadvZOsG\nUhCHfESgxTEkNK9L8i46Kd7Z+d7rdzIT06LjlrJJ1H1t5rHsEqy9ZYKJEkgw\nGscv9i14gHLRfV2bo0Rdl/pRi+4AdKWmLnvhkvpHPkDzOfTJ83IavXrBEoCA\n80nF8qHnUfzly5JsgNvpQbVfxzfzJmfvIcETGU2ilsQxsNK6po3VhtiX0crU\nGfjnajVh6FrsyNEaeq0DWJJtIwAn197dX7gKqQ8ett8UhaQvlMpHJEZHX0WB\nOeJODduz4v5QwNpKBsLDeXc0xCU8eHRap5YeDmfDPy9EYrpIirWU5tnTuKyf\nBrXsYGw0v0MjCvjMg79ZLVlBV9LxRHGj2oM9euF9SddVBkon41lC+1A7tOAP\nJxWrZVChbJkLFjzeJSE+ghYaZkfyqdZyM3AOY3Etm1JJ4gZGYExmFju9hMv+\nU6ZzfcfPFBEfo2YTSu+gTOhPz7YNCFNohPRbrxDcUBhIADGl0ok37PQgDEp0\nylCYpqnHX7aPlakNqHf1KF0piqHttgOAJS6jGN8nTsLvDiDhWu8iRv0CfmVb\nUHtGkz9DxEfUIgVADvUDyxZJ9uPc4kY6Idf6qCRm4iakSobLioSfQs6UTrI2\nwwTFPOGxPEX3nfd/qYKQSrUiGbqaOauGYPc6afj+31jRiJtxICr34Tlw/pQv\nXE9N\r\n=8sAN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvYcC9pkQVhwbCaN04pP4cyy7ikcm95VGTlzXFWF1q/AIhAJ7ARudwfKFVLQsbQmK66s9bKtiSm2HAn3CzjZ6FMt7d"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644958173000_1644958302985_0.2160417414079694"},"_hasShrinkwrap":false},"1.19.0-beta-1644960314000":{"name":"playwright","version":"1.19.0-beta-1644960314000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.0-beta-1644960314000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e57b4b5073010eff907c28f9d05dc71b2e5ee299","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.0-beta-1644960314000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-N+0Ol4NS9F0JngdNPH0uZ7dGZNkuQBXLFuYo6sUfmKOcLjLpJLQoKhXgLRFDcgqlD3JhuEfQFcdNSa3wJaTN4A==","shasum":"303354caf8ea71f3db485060521b2d14315aca13","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.0-beta-1644960314000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDBrJCRA9TVsSAnZWagAA0JMP/284+ViMSgG1EOSHMli0\nE/GQ1a8sf5a/Euth60/lUWJIj3t57P00NdPjPKutIPyRALHHmcFXtJ18QIvs\n6TBAdGibTjTAY0+5r9QSeqGZQGnGUl2k2JQyFskPiQHnr0+0BMNpWcgIF2az\n2xNbLpGlMwR2Fn9wiC8ecWaxufcRoLBqyzkqAGyXyKhVigfqIQyVB0QNdsKp\nujORNNV5cctB/SoSQvuBAQmwU2qKOmjQ2DE6IxKG7JtIiYXtM+HXGqnKvEPQ\nyE8D8PNl2OzujxmqVMTDyDhK3w+MMqH75+/uXynsPD3d7yddHRA3La5CAGVv\nGEa8pJzPm9WanM2jgTBb3n5cJ3zxwGHjAXaFULY1ejlhyUAqQUj+5S1hu/9E\n4R7lmh9C0QEpqsojGFUWbzEUk0S+JoSygQoCUo97/116sXOc3pKjnpVqW/t7\nLaYAaXTOGUY86PahH3NHQiSQFVEnNMtfGv8jTckV9zl53R8jK6FsHG23dft4\n0K0SF0nHpACBthnFQuN489Er/HhHYbTYAK+re7xkWXHZyVG0mAixnYUlXnvW\ndTK7ZbSWEVUDjF8YtZlXCJgSAFRkXtHYksSQLA4fA/EG/Y9ooC8vm2K/WMk4\n7ABorS6HnzlFOXShX4Xn18Rm+RW7aUYLGHGXNejP3/MsWdkslERNISZs7A9w\nxJWu\r\n=0Ia+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAIi86CsPfVMICP0IjQJ8maYnjLfz6p4CuiCVoNugQUKAiEA9wBKhJQyMH9p34F1O9dBcQJm8uCYnVJ6ob/U0k1Tls4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.0-beta-1644960314000_1644960457839_0.6083379083940739"},"_hasShrinkwrap":false},"1.19.1-beta-1644960332000":{"name":"playwright","version":"1.19.1-beta-1644960332000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.1-beta-1644960332000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d22bde13c4c6ffa58758cf0b25bb96c676ef5655","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.1-beta-1644960332000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-/4gcp6E1xkUFKKz1W8ZyncECefVz3RW9BF4GuOqEx+8r8ugQTeuWD/AHulArVCN0rXKTIvSGWBAw9QDiNMrBBQ==","shasum":"dacbee7e69e7174f4bd2e8e30e4e1f75acffd787","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.1-beta-1644960332000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDB6aCRA9TVsSAnZWagAAzIEP/jBKJ/g/VfwckvY+fLDX\n4gV4wtBcwEtnQyHgI5Z2cxYzweYMmvhK5L0jl5ORDnLnr+vLPuXoa/POCOfX\n9ZzEPxXPwfsTFhL93UJVFBV5xVyS5woKLtume3LK0675MSGSUcpdxw3tOT2L\nb/3UY4I0vhamaQ98OWOG7u2uG2BMQida3f7AGc/sMEbvBU3ESgKlG07/bQi7\nkYBnZvBSigwJLpbDy5aBvj6K6Jj02625J73UzqBt1o4ONIe6O6eu8c01u6Wl\nnQAvaH19DOjtYsp0P3zPdOLwSCFKjqP/Qg/IUXv5F/14PWSOGxxmuXuWoZCU\nteroLWaqchhdPFh7j2ijiPLJQ5aOvu0cWRK0+VGuAN9VhYgwmVlD7PmMWQbd\n4FEevKqtJEzM07pNywFI+cK9LrGoAVYeVf+JX9gIIt6pXtbXiSpgIHWSFt0A\nwW1AzJfl/mQ9BTrZPC3ptm/5uAFHrP4cif0JrMyU8lJ/FmK+PraOQ5IntZUc\nY/Pyu1WqZVQts1Sc/mbVVwPQ1/BSWfnjCWD/bk958xpoTYziac1xL5eGn4GO\ntJh3xlhVPEy8Boq3wBY3eHeyTMyT8IOY7696cceBqaW7En7HPJ4XhCiWTRor\ndrZbnWh4lRsozWtLOWNhI+ADFvgMPis2cTSBWYNan3usahJYtPLaXoobf+Er\nJEpV\r\n=k7xx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxxKxZs9OjChRDQnYbfieYDcoc6VM2uNw5pQ8emwYi9gIgdGXDxRfXEXdpLWElpxMjul/rNsTPQpRatuqdp5vHSJ0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.1-beta-1644960332000_1644961434420_0.20186154222129638"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-16-2022":{"name":"playwright","version":"1.20.0-alpha-feb-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"65697d64be178b8db036d4737e2d1a5895cb8aab","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-16-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-awevFraveV/9cBDrOtD48h6C1Poh/pma3vRMwvAj6UKQKnAvos1/sT8wAZ9oAsajL1hTI4YV10FGF7NQx2DgLg==","shasum":"6c827dc4996cc008be78a2926568c71b20920724","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-16-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDEO3CRA9TVsSAnZWagAAyPUP/0L8EZtETJJVAMSmt95m\nXJ6yHWOBflEMDa7gdfYzA62Hm31NK6TYe8knF3xqDvKd7QlsBIZELpO9gV1b\n5ltGj6/205auvwz/4tBYrVpTwThkDwDzFJY+8w3lRCrcdwthf8RL/mlYlGFw\nLlsdOzpGejRLAPhoqr+r5aW9+Pd/c3V8vVf4oqlHbpRMP/m1HFoBpn1BgFN1\nn5v0Gn5FWiEMT3KdWCr/27Umxzbnrp7kydputv/fhIMM5Ehj/NiIsYMAZORi\nsG9nZi6e5m0Lv1N63lj7YvK8W2y3h0m0uyZBM5ELNir+HH7/WW46irF2phxM\n/KtO6kTE4bTOxHf7yqoiIvo3z6T1NQQHcRAmf3z7ByeXwIhjODvTeB59eOut\nanv32AJ+8sACorU3KBCkOeHZHsLNR6kBG8FEJaGwqRFZlfcAT+LsFH/QzIny\nEp2mpJDfvH7ATEK/vTQPWBnfI+OftJmQUh5hsTkgiXnO32EjAsKokjPgab3K\nYZ/2basNShDn2+oTKyj7tkC/FxYCg1ucITpMhq0x2NDNHzXVBjdJ1L/EUw4Z\nt1HaJN2h4T6PVt44k7doTY4ti/9SkkO0oM023FFWI3dWchMlkz8/UtIqF9Qx\nERU/TYyEP9PLbMOikJ4buaHuHsrh4vJkVQ9NL9GPVLXmG42jguJGW3dAbw42\nKogv\r\n=YUrm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICo3DzfxlCwRQhFiFHJSnFmxElvHfEfZuEHNfQzABZuFAiA6rTyfKXSLvrEEw03tGCQOJQWTSnHqYIS5Ee1J8+qnfw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-16-2022_1644970934928_0.49934174696893474"},"_hasShrinkwrap":false},"1.19.1":{"name":"playwright","version":"1.19.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.1"},"types":"./index.d.ts","gitHead":"d22bde13c4c6ffa58758cf0b25bb96c676ef5655","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.1","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-h1iCJ1S2eAkZ67lZCmOxhRiT3OKa1JFGtyHLaZV30znqIjcsJLuyB/dmo78V3ajpMdz8iwxIb2xjpaSh1G+8UA==","shasum":"5db88245932036ba208dbc2db8d5291ca50199e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.1.tgz","fileCount":9,"unpackedSize":23994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDEzMCRA9TVsSAnZWagAAkm8QAI8QUFmauP+7dErxsuuY\nrQLyrnQir7mItBT9c6B2yb1oJXOpSFxIqIWQfLZEI2eRzpQebGA5Juoro3fj\nOn+c+npu7RkRxYOMB7WDnBPpvKuwDBsilAnChJVdEBjfi+Xuklgn/3BTIRpD\niQSwdmCaD+ZTzdeDOlYUaULbD3QacRq5JX5o1n9qypuHd5+Ub/oI+rlQJ6LU\nttgMxRTb1jfggUlLFP60pas8jlex2E6E85pKGjM3w5IDEjfT/da3rNH/DbNs\nRkFyuZQI3oKxjiO3kJjo6GnwVez6PZyKJCelL/XBEQAr4EVIXAAyHe9zf4we\nLrbcOBcsHQhynYodslhy7LSRAhZtilsUXIfk5TVelHWzvxLRopOirfCvBv7U\n5WehSKRF7B/TJvMZtp7Vkl3bFWlpPUlf0UWXs9VVNHxor5nAL8+Z93rhz7oL\naeuvrivWn7qY7VB8ANWup5RQGskWvWfU4oOfafPYTnYnL7wLUbPXFdQSWCFr\nHxnDQpJilLtIjG8TG/hPqcbzRZoPzl6JFjgLJkVHj8w1H/z966PzVZZ+bfsJ\nF5du5sna8uxA+Dx03z6MqWf0SF5RALOh8dJTSmpLG1Yl3wxM5YtD3E832cJN\nea1RWeucCcr2oAEUM+siT2KxtItW5wqDgmnYCvQZ+ggYBGhGB4TKgIQLg6rB\nLfg0\r\n=RaGW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHYSBybw4WdhlWqsDSxIlFHzaMuRNoYPEXXfQk5ynq/KAiEAna+pwnVoOyuNmu0vZOWXimVoZSEGEagJtaj0QEgHI9Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.1_1644973260072_0.14565425211850958"},"_hasShrinkwrap":false},"1.19.1-beta-1645034173000":{"name":"playwright","version":"1.19.1-beta-1645034173000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.1-beta-1645034173000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0037acffc6b38d3d8d42f4c44705ced2ae1f7843","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.1-beta-1645034173000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-m/9asuXLhCGNfpxCbMxypbiocGcuR/cqBYFfai8xOWZH6LVe8Ke+44+rbuGLP8CiSFXNZlwLclhuR1EItBzbiw==","shasum":"2b90172e25564d8ef79fa0c89a76e7945f96ddda","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.1-beta-1645034173000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDTt7CRA9TVsSAnZWagAAwmAP/iZujoy0OZjJrR2hK8LH\nu4i1+twomwzif842pOvDh6ZBowipf60nXqCRmsU9KolNv+omA61VP8hzbXe8\nG4SqRPKT1pf17/96vC+3Dcf4irwYb41GWqwhwDJIeSKP2wdbNCCJvdTNkQSE\nORNHFPwcSt079TywCEXA/dswOFlZx+ZwKi4dxG2M1a5ooDKhdNbUaXnpfeYt\nKDNLhXtWpQvsfIqlByvlIgOtey9bsnK4dpYnUNTNkQOP+G6tnJQy475RuLQh\nvYk3w6/0d0IGO39UUJMeapj7Fre4koF9SCEQD7rYACCZqQEDLzgJOW32+V0w\nYY1BCr33E3Zr+Csdh9boFpEBMBWeKjkWeTeJGl8MI3bfYlt02V0lO3VcX+nL\n81J/IL3UE1vfYRq9RCWr/larBctbmI6an5/LX15P3+kQ4V7qD4FeP8NmxGis\nIvkcTi1L6S3ePSj/ybVjLErNQWRYCATseqkwgbMYpk6tIkYVtHOPkKmsrQqf\nVyOHopn6xw1T9RI/PdyeEtmzC+iEE0Pa/p0xpojDmBk2mYa586sYEBUymUoF\no8jM2WD8IjUptClBen4WJbyjoXjAOVWK53/Oy9T1H4bds3EFXJwB1S2b7Neo\nbb5VmvGdcIWVfWnpvKhN4Fda0G+mBKpovSdood0spn2mPnOpzircCNVzmIlY\n4Xdr\r\n=MuMT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICfHjarjs4tFQE5/7gDUe1hkDtSXOn5gxMvQijd2v09aAiAcov+LhBub2kPQeIRBwYjOnjn/XuxJKeorus3+050JmA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.1-beta-1645034173000_1645034363582_0.4117899636757203"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-17-2022":{"name":"playwright","version":"1.20.0-alpha-feb-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a667d94d4585d183ce16548e88e8ea5026838335","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-17-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-+CAe31iYNqHYBYqtpwpRtIw2F8DSBMrxrnsfyD/6jbsDjxk3dHgLfmHce7VD1QLtF2ym4nQgTCUNPa4nBoaM7w==","shasum":"6c97ce5024c53a22638f752ed7774faec4401719","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-17-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDZTtCRA9TVsSAnZWagAAROMP/iQGAuz3X7xfDHtQDDBM\nVcuXw2UG/HViepH+97HFy/cKI5VCA8tEeiTkzbUi1ycte6TMfK4bsVoAQExz\n9X3sIwK87WUOVfT7Mx9caWpNwW9F1M+6T4sYItmlHa1tJjNYfBYO7lmabaCr\nBs98y0MuIQWjaTdN7MJ1EXEy6ch+eRZzUkB45/6bZJfwiz81t2PAuArP1e1y\np/v+R6TpVlKA2T/gxVLsZE6B8Lkayns08ODP/L9Ls3ehUPGlhNjl6oPdL3Fl\nVpwB0ZFK2ZFWNKs66syJaEP6axLdSgqSmFJmn/ICait1OOl3LMWfE0TD1Cbk\nu7bCnkqVvAjFfz3CuG3ZYyFmG2ePG3kyB1hYtir3HoZZFqB0ik0HF2Hgbuz/\nl8DywyV4ICFOeRd4X7RIeZf+OaWIDdPN9rVtNcJCMrr3NxrG49unfDaV77Hu\nUp+ADtmS9oCkSYLJgUuDsn0jQOsq+oL80S/ity7+JjQ4kL87el1FIEGoSwk0\nIH+/aqfjsC/ASUFzAeuj3cN91rX3Xf6BDE2ZDFr7whPZAeNfA72Ws0HaPoiK\n6opPYJfJGWvmPqm0pd8719J9vD4TIzRXKt1wtht5UiZsLtBx0Xz52LdI+e52\n2/yytCCCXFX8ZQGVtA7JDvDFegmk441gPQp6KNfQvHVHlPzrdrvBsQ8Uw6ns\nDgVw\r\n=C6fB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFWDLSssONCBkgtqGW84Xd1RILUASBaVMqsWl2qb4XrQAiB1om/hxnwXVi88XvMU5sAjW/WD1a4PXqKMZXBOOKR+pg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-17-2022_1645057260931_0.5807546624068831"},"_hasShrinkwrap":false},"1.20.0-alpha-1645141443000":{"name":"playwright","version":"1.20.0-alpha-1645141443000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-1645141443000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a98babec69a705a3e42b6961a289350a869448a8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-1645141443000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-xNFtWyfgU1SFuMW8vYJgmIJSyCHFmtSJpEVLgUJvZdJemOqd7O4a2xa34rPJC58eptpPm46/LJBedENu/1dh5Q==","shasum":"7ac2f8ccbb5ad8327e58deb7fa4904573be63371","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-1645141443000.tgz","fileCount":9,"unpackedSize":24034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDt6kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfnhAAgDBuZaTZfOltt+JKv0vcSE05gULnQvOAkGddZM1QmHf4DiiC\r\nRWzfTC+fnqjqIQ+UmdxfOJirByxlnYRUKaUMiagDmeiCFhROPH4RsRv6Kodp\r\n7A1xsO5sPVBztjXfHJN/UKdZhh91DPfe/dwdx6o/4IB6OprsNegvRqUq6w8y\r\np5Qy6uMPVB/NBliUsQd4IEq+hEWxa4veVMc2YFHG7/5BUEojK+PfLMq0Kuc5\r\nfBHYMN+qg+kY/kGJk+g49JRxvSRQkyBalSfzU6IaVDa+GORYHn0ijTbuvFzt\r\n+72WWPph4gRQ+hJ6MGlhFwt0LIaXUGA28OJir/yBAmR3a6BzO/ueuUG3M0dd\r\naIAZfIn+L56bTVNf9KZCbi3AFcUQGvmg/1YEp4zyMY5djQahH/NtgflZFzx4\r\ns+T8Pq8EhQDcuPrCP2E5hg873FA/5+1vBQAW+1iL3hecKPZ2cKSTjtMqnqV3\r\nwgd8y+E68LMhSb5EqpcCY0YZx8Xr0MFlfVY5x1vAXq41nvK2GDBfV3pFg65M\r\nHHpsdEzOiJHTPXTGC/cCmgrCxH5sWnQ4UmgOdQRhF9GQBj0eayCv4xT4gOSe\r\n/9xnX04t6nQf9EFJslJPg6fbbuYGw1Pqd2nH39d4zy6KQ0qxNlguOFGovDvT\r\n72jbMxUvRKIhZ9JjYqsK8vwxPcoxrI6hVGU=\r\n=xN8Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVd3e0zjQaabUI1gjz/HcGxJyD0OWpj3WnxL4xTHFfYwIgWS6DORLIaGg77+tYlnL6GDoJkC57dmHVPaJUlSWQJ4w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-1645141443000_1645141668134_0.19383915026635012"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-18-2022":{"name":"playwright","version":"1.20.0-alpha-feb-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a98babec69a705a3e42b6961a289350a869448a8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-18-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-GIUIcQmjZiFaQSUk24L5wxNUg6/y1Hs/eo0joQHIoeYJFL6QI8ryDrXFA/5g208yPNKShhbQglzA2RBt4aKFDA==","shasum":"aefcabc23c8d1219760554a9f833d17fcd146342","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-18-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDuaEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqy9w//S7s/h6GOfFK1Lrb6setEFVRWQeNQEshkmiuFK7sh8Ku4V1en\r\nWe97p+Cj/1jQLQ5/vKBG9eJajDe23FipC5KRjt0PxYs66Ugd0uhuU9Bq2R4g\r\npOf/5aUDrmHi3FX6VyxWVr1BSgH0n9/fzbVVoSDl++3aUo7hQY2pCuqglTSh\r\n9mEs4g3rLVUVDkE69cAksWClFuO3sxMI/Xy9jNPwXXuVy3EtfpM6RojvW+Bx\r\nMtHbtSaSYTC7V5hO9TLdNp1g59o/D5CJqe4QCjTgQQpTuZbMaCGQ2VSsTD5Q\r\n2Gx/aKweW5APymV5u/k09HbAIdDu091LieKALZ8ehpSPBThpinsn1v2RZrjD\r\n2+DGFkMdIle7ud17Sm5JjtJcz2vOophaqXPJ2HH6iceIEpZDDhcxsYL9hFEc\r\nJatQjbM+hVxkmv7QJTyxLq5QzufEHYWVinPhpGoCBuDClmLvh+r8iir71taP\r\nDiTQW0BGvW0iQohC+O0xysd3K3mpS21eyQi56VVFJqIHHvR9q9eSI8nvlpWE\r\nLvGh+FCKkYmuor07shzq8YQmxqROal9xIzzsoxUMkuQpQBLlqY5xZDdnywE9\r\nGMJpXjVzr+b1ETp+BuWpPSykB34d7EPBMGIgiFuNirA/TigmoT4OwT3TRbRA\r\nCszlQ2M/YiGl1AddKjQmpiVU4c6NlMIjI68=\r\n=qg4F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAujCugq4BaiQsIQZCIMWstKFUWafrwdzsuMQE9zl/8iAiA87XO4AP/i2fhcYZZxEN5Dzxg757HUaaCjbd5prPAtjQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-18-2022_1645143684746_0.4828019347870214"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-19-2022":{"name":"playwright","version":"1.20.0-alpha-feb-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4881.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4881.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ee0dd6ec717399eb45f8257a1ccef35ed76e45a0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-19-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-MVfD3qsPQj7Z2Vdv1rLF5niT+VyyWtdfQgn4KDUq1Jhq/9ES57BTPrv/1qdbEw2b8CylWr5NyLCRULOTZbyQXA==","shasum":"2a6658a21fe06e98245d236953371481d175ba67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-19-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEDhqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkRxAAhztO2T/uf1p2GojwN3mkR5Iniio9KIEVLfjE7D4CLjvo5KaI\r\n03QjL5HU1nX9k3XV1pP67+5XZ2KXUtsnSgb5qrfpFn/MnMQeFX57uaP+fmn8\r\nutsBWbdPEFtlZpk6BC5bifRxXxXzlhOEY+JvYXTL3oeTyEwV5xA17Ho6WfJe\r\nOkIVjjRINX5+MLiJRWJ+ksYvLmDW0gjW7kxHtN5mDGI6Vyfge4HlZuicvRdH\r\nqbN56nISQ/3UFUITA98ETeGt7J5Avg6K4WWFhxz8EwP9uPiN0M7UMP0ZQpGu\r\nunaSwhDUQTmYAle3+AF3LQRO1JuGLg9Lwpzi6gLkjh5avFeFZGD4JH/BLfub\r\n0DUimG7VOMUJZ999QKHgMDjfmv9Ta65GeA3kYU2wxKNkki3szZJmVgX9Dehd\r\nvK3gqnt8BEbCPDnU6FV7TbqIt3y8WtW4VTWuUEXnZnlwRb1OsgOeNnmERJXg\r\naco6xKD7v4qlk2ABr/bl/tv7rW6B3BQzELse8+kX5ozatvxxfEYXaR5F79hG\r\nXeh39kMNFGbFaqN1Vf+dxDBqYqWcZdrYMbsJbt11WPc6LMifeAIBAvLCy44n\r\n7QJJpe284ZZXO4CoiP3+E35rrJIY8EScQ3qMVh9Nu4lG7bh+rQQuhj9lFcVy\r\nx1PMF3Gm05/LpdaKOdwAF7yf1jou3JORiEA=\r\n=kynE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYxrpSyReWaBKxTIou7A6rj32C4/bKwrtVSYIKCUsEBwIgHK+zrJY/GhwUFjJM7eGQy/g+N8HxRd8EI317O7kwS7Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-19-2022_1645230186818_0.9308671521195184"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-20-2022":{"name":"playwright","version":"1.20.0-alpha-feb-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4881.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4881.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fe57771869343b127063cc785fb78a069b9d6876","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-20-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-ix5L4xV7pGnKhMSu/UzlE3Op8AhxW6eskkSsxOjoEazE9azXrs9nCoSXVD5L70dvUJ59Y3rHSaNFTttzBm0FEQ==","shasum":"fcac5ac3d5b97b30e74981a9b7492e8498c7d50f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-20-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEYpIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtTA//Yr5MZecRueBrwDX/HjEzPPySq+3u/OG7/1Zb/gMN8AQtm96/\r\ncF6VLg9Sqf09AHBfYR9MEklexlick2fks4yNCTi3PxP/T+oWD5qGQZ6oF/mt\r\nCDRpQ1cvAEOqAEVCpfORUNJsrVZ+xwex51GBCno4EntIrhylvfXYAv7oXtMm\r\ncJuAwNW3a43gn6Wx2t4AO34BHSTLl5HiLdv18VUNZJrYeWekuiJhu6qgvq+T\r\npHgREUGZrPRYjK/bHWOVFk3oW0qrxig3WZEWwxtYFt4IeM5aQQ8RJu6IHI56\r\nuH3EeMg9o9kyEEW1u6jgn/ZVORwnc67hwih1XUgtBx//gRHoQqTcj+lFIhYv\r\nBczyM7w4HfwXlUBvpGB2I30l3PeoWoEbaTKept0Fr4SsG8dUMy7iprExDbmr\r\njQDBEiOyavUCZiioUfJNz6VmAXZ9coiPxi4vTO/GwcNOm66fG4cSrqXFhTsu\r\n/2XY5ZznsAaE4ub8z81L9Sh9A5+x16LsdpDxGeS5ZFDr9Ob1iNV0V9JIACBX\r\njTV5VFzpILBQm9VqTVUVIsZaMrg34iyU6IJLUrXN4FuP8ZwVtVZD5na76t/T\r\nVbnsKOCfPA5HwFDZq8JOGHJgizWELxWCeE57EcRlEduPFCr+afFH7dAolDwC\r\nxRXSwvuiBaoyABUuQPqCtc7NNTY0/L5IL/s=\r\n=N440\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJTsZ5J5APemLdwg1ZXi+IZUdWVUlM6sFl/316pYTZNAiEAppNDBr+GPPoiuPeBO+fEVft2hdsS5/2eU5EeviW6yPA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-20-2022_1645316680460_0.5879863021827443"},"_hasShrinkwrap":false},"1.19.1-beta-1645326041000":{"name":"playwright","version":"1.19.1-beta-1645326041000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.1-beta-1645326041000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5b17ca9d56a6ecc65f13afb47f2ab57517218fbe","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.1-beta-1645326041000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-u04yW3SokzI2+lVD57ugoqTfeRV6sb4K+5RWh6hg4GH40aoq65VoOemSIDnsOb8bCH+ajUf8uiZYZo/x1cmfsg==","shasum":"b320783003ff99a39f7d56abc8cecbd6c9ab1c7f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.1-beta-1645326041000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEa9vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoamA//f0vFh2FORJnh2F70tf15/NhdFgdADfrXT7cPxOo27CoWpjCs\r\nRGCVVOq4b5ut7e5Gtqp3kWHrpDGyWP9PyN0ddp5rgU0pKEfhaNX5ci0s0fR/\r\nY7YHDtZec6AhaIgdp1yyrdVtgB2duHM9J0k38eD1jikRQYha6jzC/ub3iHE+\r\nuTDNQNdbuLq6JcLV1HqUrzlj8YjfRbXcYhlbctcLBX/M8XkR2IVf4CR71qUr\r\nRhHBw9ddKc/haP0nHq2UvNwqvIY1YQs9pjhuR6RNGWVNSiM0K5r9TR+7rP3m\r\nr18832YyX6UAB5iGZibl7EXOdLDvuzROK7cdX/3OobpHJSfDfi6RUMLKMwGQ\r\n3p917OqPEXaBB9kh8l5WDqkKQcIoDcVfXI+yeK+XWlUCX51RBKxc8vFl2++n\r\nees2zh5Ie7OaUDZrJrPS+ttfAMeX6jsGydup2Na8PtBCmfZolXP8+gcZGaCV\r\nvVop2qIZS2oYOn7CumUdsLg833krc8xLVjUBfYklJq+lLdIyW7HoTv5cNBJg\r\nJiJzfhvQtjTktfUYCYrU1HHMR+xz2PCdaj6jD+Rxor9l6aTBCRrdFO1snt4k\r\nIMDgodyW7sRg1hzxDWDQ2J7qVta81GymkFv1Spdh3LA7FpoqEG3Qx3h7ZNRY\r\nBxHdG0mduJf8KJH1CZzIUOwlOY8DstkAS7Q=\r\n=/1MR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbaKsR8GuKvnRzJgNXl29C6iC33nU4btvSzNNGJbkMxAIgDQUCYrwbZJ+satmICgTaQ1Wllr7M8CieDkMzkhIJO7Y="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.1-beta-1645326041000_1645326191567_0.7621258270251794"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-21-2022":{"name":"playwright","version":"1.20.0-alpha-feb-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4881.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4881.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b8cf5ac661488a206da37c0cad908317c48bd268","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-21-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-TJNtfpLxiPO5Wib9Lr95L06i/acoU4Go8kqsQRV6ZEl1JXhfBQIfePdvZ5sOY3OB/BwXlaNjY8NsVGsEyfi9Mg==","shasum":"f37933c69a46fa263355d3be84a43a07aa90936d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-21-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEtsgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoS4hAAjSKf5g8fh2rFdXdGRK5y2EsSi31JXJzX398vKKSfeWSV8tT4\r\nQRjEZBMyHdHhXfBgAk1paQE2Kh6mJWfMTSXPw/ekAs/t4kDnVMDyruxXApFO\r\nFFIzL51weJJ9Bou6YrOY8ZNQNOhpyCzhR7aogXVzlCgCSFuemYG7jI3rEfIo\r\nf/OPnK+Kvakb8Hm0JjXVLTa6QvFowkqgqdYW09iAn6LvkmCDtzaWApWUPbgm\r\nUkkvSYgdNzVSI7lUn1JUisZIIs1MSubq0rikkmQybxFCdb3Bj/ChX3woe0yz\r\nYUFTyKl1iJqtCc3CKCu6otzadgEyYdkdOJP1e2kL/4yWrCqUe7/jyKtTa13f\r\nBQ6MuT3WPUDTW3BfaaSAzqvNBJ/DHdvdufute371nNw2rCWLs/xJvOwSXP/2\r\nS32jJCiJLwLbF6OR/kWiJWfzH8bNhqfGIPOGmRg1dVKXEoRs0KSw5ctaapE8\r\nrLQPLToIdv6hnD7OXrL0iRBEbA4DmwKkDBiYkmvRjr5gF1jLjUnNaBGGoYCj\r\nFV/7QxpsQloycvf1OiRvuDjFuTAxLbNz2E4z/s5L7Q+5exnrILuHMtzvXdKM\r\nNgYEbkSTFW4wtxBr141FEw8BM7Fhg70POel+ArdAWggw6bi02UhI+xmt9EJi\r\nA6G7PtNDquC35O13U/5S3eGO2NoGwfTGS2Y=\r\n=Uvzy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoPMtlGT4DE8IGpP87Yu3apymdx5jDlzkMVraM9IyRggIhAI1JemyjArFex1XhlRE85puMOkVGGrrzYnUfZnRRR6ez"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-21-2022_1645402911990_0.28091858398910574"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-22-2022":{"name":"playwright","version":"1.20.0-alpha-feb-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4896.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4896.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"768242db12ad3155fee07524044158ddc0eeb253","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-22-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-FWiqX3X5mL8h43LcghVKB+8rRPZyuZvwmsVJmXMU2L4bvruJ8gphgo65VoPPVaa45DkeI/bM8YOZMcPgz12Crw==","shasum":"4dbc614eaae33882f8206e758fea82c801229d86","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-22-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFCx5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4Qw//UZelE+ETQtorzEOmr5sEMGgTA0B3e8VlTqCFu9xMq8/UzuS+\r\nXkVtAyFS2sWNN5c9uXDZIqpea1tqoMDui4zQejuqzYOqd44qRpRFV/WSaNJ4\r\nC9MDMQx6LvlYOQy3LeL65JSR4fH0Naa6owJffU4hET7EDOkLlyVVXAg3bone\r\nfk/S2MewxhrGYSTxbYpv6WHo5hOo+NtWOwCooPrEkzJrtlNLSuC1Pnslsk78\r\nt8PqxHkBMgQfCGSv1ZklLNjw+fGcETtB/kgLmJ/A8AL1PYFQUx1ahJYZ7jav\r\niPi09MXoCltgJnCzpYmKuRgW2bNBmXVutGqXlSWcQ6W47drtWyRMp/Fnxvyg\r\np6c/UGsdVOu9/Taa678zzPoDeDz2DupbqHN+0MZVtAkTUtijqNtrf4HBeQ/v\r\nKJYg7PywrcUTDA1ILfa1kTqkgppp7p2V04KNGaWHNyOtdcV/YB6IXEiVc94B\r\nVg/8dx7/c9/H/QHAtm5yOLMT4kz1iXE2cOfysF2UOeBebYUyepHOcOMUZOmM\r\nbEh5+sgnZweiJ08aTYWvwhqmquSZywU7crKSVC6dnJtpC7d6sq2HfwsnMeqM\r\n+p3CAReLALfukjuiyldyzLGhbr+psTuKomP5yxbFXJor4SyVeldwZ/+qoeQB\r\ntfW0IGVBzI+VO24CDrvb5hsDEdJ6Xdfq/RU=\r\n=oyAs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFK/v8+F0RgIgSgqlinDU/gDhDNVf27lFeI28c+quSNHAiBathvLetlglLZi+9uNV5FgkmNAZvwsW1uxnYeCJRLvUQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-22-2022_1645489272944_0.15969093228485765"},"_hasShrinkwrap":false},"1.19.1-beta-1645565996000":{"name":"playwright","version":"1.19.1-beta-1645565996000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.1-beta-1645565996000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2e4167027bd20d6bf7caed1908133c32bfe067ef","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.1-beta-1645565996000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-ymJwlojZEz4/lC7Cu3jTgRt2/lzrvla6pktlnN9XJRJ7XVJEqFaPWFOvd0ZuqSV7z43l1tJEPtD5TdC1+BnGIw==","shasum":"9bf25fc52dea6a88699eb98855a7d4004d716107","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.1-beta-1645565996000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFVkEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFog/+ImkbA9V7e5vnh49IKTWcq7EsObXvvSB1iMY1EeJZP+XE1swx\r\n9FnXxsciCO9tjSlUvryer5NRU7QnJizzCI7cYyooVNVJhDKKRr9OP1SVWEjT\r\n2ZQ+9ynCn9YGTOUR4VaI1tgURu1LdqHol98KwfWxACyCgEZR2w18E/ry28bD\r\n/lYgHh2AqNewdMjY1Ooo3XqQgYgm0U7oCWV3opK8ahWB8ANwJaeTlW4XqUm2\r\ntSHXYZBjU/otmMQxmrgNRnNm7QRi0Qih9WC0fwsGRp3XZcqykriGpfHZn6hJ\r\nLXKYTA3eRcUKtPXSz8sxn8/jns9lOPQj2T8WcWWSxWqHFKuN68HXBlBTSNwB\r\n0LZBPC1cv8hcY72gbGXau7aAVId5WGo2Df8xzKJulZ7RRXJi4jObmeN6Ecze\r\ntNTM374EcweygktzUfM3EYmKC+AY8fo96vluej00UIRSGr/q+hvOrRUrxK/t\r\nI9uy9a4uDg0T24wF4IXGMJHh7/qtPB88+//Xm+ZBk2lrTguncvpe/RDg19WR\r\nO1G2NlO+S4bqg3l9bqrJEbPHpmNIh8PQLSsa0/WSxiBs2u/SBHu1989NPoNG\r\nqwOPXdDIxzCTjAwI+DiRd/DXjBBege3Tws+Q0Wuit3wmne47POCN7+qQNAMP\r\n6brPUQYZnK2r+9GFxxvstsG/oon1/Ae5xDc=\r\n=arQK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYZX9BGkd8Niud2skcPqr2Lguu9NU3DWOWWskRwjNzGwIgP2c63az4PBiXltmA7MYZcHOumIFfmL7fEI1svSnWonI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.1-beta-1645565996000_1645566212684_0.5764983402435537"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-23-2022":{"name":"playwright","version":"1.20.0-alpha-feb-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4901.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4901.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"26d65371195936ff553e0515023e866037b6392a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-23-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-WRuta1J1Tr5b3mZmnjscMp60BC1sa6rxi8FHMFLg6EcjgpMvdW2F3ngyM/QSygjAoxygHu6hVv1m5VISABlXxA==","shasum":"9ac15bcd5a6bd36f7b7eff3876dd452663902109","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-23-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFX6oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDPw/6A9445uPgJLOwwTZD6N1WMNRiqRCqXlkJcN4ALCOFTOTcmn/c\r\nzA8vZf9lqV/eKSH2z4JiBZLzwBdGU954W9RB0IJBB/v7WctupPDECYGUI5e2\r\njUlWttuMArpqfBKAR4wWWs+DFslXmJ+ZZtFwiA3RAdH8OzSzAP7GNNXEyUzK\r\nHOu3hoYJhSrkfWVIUuf7qO0Q3mB2boY3EYdkApAI/P/rKk9ra10WNnHdYNmX\r\nMkAZmzXtAckb0Bjz/PgyPOBEtR/7Hxc+fQUbrwbcR77hK1FSJIzXLQdcw54y\r\nR1U9AzVypy+RIOI0ZxSeLA2p0r8B4rVgadCUZVNnGRWnBZjayAVyxyBgP9cR\r\n5XEEtQZuAZsaEOmulIrvUzmd69tZ3DHzpX44I0LLzojfmXUpR+2/F/47N6xM\r\nb8Aih5efhZt/s9/934TS6HfI3lp6Bd+h6VcWWf1HzK2RqlPvl1ZeHUIpeKWW\r\nuawneIH+sOBEmOpyE6Kaek9HoTjg8vuvvWRqO2GehT6n9quBosZeewoutJL2\r\n4xiT14phxLYCU8LuoOSYWhkAFtX3qSFW9jvmJ9Lzd/rdUN9KEulFU39UrbBp\r\n++wccoyVSveMdBM5jJwXkMnzm/NsVg31u8DqrfaaDO+/EKUCN3gFP8WS/94a\r\n4VRR7U78ugmtyJrTjAY2OTtc+k+3jbcb60c=\r\n=cX/0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICX49897lntiINkKQ6k12LE4I/ZKA+CSAVCkpB5aJSMLAiBfmbtaFvlM5hzI1jVpTbp+rRBg/wrLyKqYBd0R0f6PSg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-23-2022_1645575848190_0.0755280224935595"},"_hasShrinkwrap":false},"1.19.1-beta-1645650935000":{"name":"playwright","version":"1.19.1-beta-1645650935000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.1-beta-1645650935000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0a1c1dad6769ed23ca808936c1d43645a6778a45","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.1-beta-1645650935000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-fCjk4e2bnhm9NyrefQR1lnB9Uwy1hps9p+b9ztFMoHlOTZxukYt8ofLq0wkN6y/NbRZt4PdUHSTgj1qm9wmpsA==","shasum":"bc7a87f5e410b44821d1920c2ecefee50ce930d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.1-beta-1645650935000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFqTNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqU5BAAiPb1sR1h9kHvd1Yc4dth7JhMTewog9vmvCptKWCRFcu8RWV3\r\nKj3QzvRGlev6OAkqzLBFB9Y43+soa1AGALaK4gsitWqUdMdoVW1107fLNxMP\r\nngxmlNSZLWybGmoe2KEANknGD/aKi+GguoVNPA0V7pBQWMdsRskpbs1mOy62\r\n73lUrueOC4gi4JAk1oa5d1w3apYtiHlXJUgE9Dq0m9il6yisEDogPHeEV47z\r\nLDolD1gg0jkjwexg2fsPwvbZKxzbKflS86A2yBfLYWAw1I27bpfv4XLjcF/A\r\nE9zBX4ZG6jgSn4DipkG4tPFYyT3qumL2J91UZ8MEON+7re3m1K1/Tzy5zn2Z\r\nWGAd4PizffkjboHQwmIxMeHPoveHvJWmySP57ezkrk53hCITU03eV+Y1WRq8\r\nvVUMSRE0gzaDjNVcgBSLyxkLODmFBzGe0gVjd0/EU7pytrXNLGlSNvymj0z+\r\nqYz0gbzhjeps/8znv5YusLPWmlIraMyC04fRDKx6rji4PI4xsaV5zQoGQS4H\r\nsn94CV3thH075CAqvUobC3VDGBHf5iDlkHXYoI/+79K8r3G4JY5rgxS29SS4\r\n40FN5VTpiDoiLxe03JPlI/OIq6rJpsjw9zYq0Qvx294KS2qt4cprx/KE2ktl\r\njwV/bMALDxP4urrHUSf4C/Ul1OiRj3VGwoU=\r\n=03YC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGg5oWEHJihNPPdvT1rjWhEU1ExCdjyVWtA4Zrh7/esNAiBjZsCrO5X/4PKtAI53Q371HwXzN/7gfp9m393EpCu1bw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.1-beta-1645650935000_1645651148928_0.7400713149647216"},"_hasShrinkwrap":false},"1.19.1-beta-1645654227000":{"name":"playwright","version":"1.19.1-beta-1645654227000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.1-beta-1645654227000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d07e05fa7bb7a6b1e7b8f9bb2e169e72423b5b69","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.1-beta-1645654227000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-jFKnLRLXfagXcHL0XODTpVXReqmH+xliX5b2uTFlBUva86Awcu3eD5fagbCCAYWmgl48cXxYMcF5N30Uj5s/tA==","shasum":"abaeb6befee99a93aacb68663a25eff552974c55","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.1-beta-1645654227000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFrGJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtEg/8DRLx9RTCUsnqlP0Gpuyd3hZXJeN1SS0xCSYZD0RGx5mJ8aXp\r\nvj4SzDRkee98rPiqFYasqZmqYchBb1/EQwqMNS3jBmygX2AjFaT7BCTuLFq3\r\n/mtY3aFSHeIkg0sD+9yDK0Mn51sGQkbIiOyQx9Gg1YONv341p9zXrTyZBssU\r\n/WwRV5//gRUDWfaLlzmdxQkcmoPYXKqRIqvpUVyK+JYne0gsgWTiNcEPL/bX\r\nzxqAX8ITsgV1S8GchnV4v5MQk+0mg1xQQumT6aTDrbifgipQo36QYpJrugtB\r\nbT7p8OwB6fDeqKGIgsh33wRxpDcBdghY7cCOonCPDD2nWAFE9Xd6npu2iVyB\r\nusx1aXcpHVKODBsi4yILcQy4coQRPMoVbuPMDXmj1xfufTnhNyvu1PDkVQFa\r\nYnTADtR11p0K70egd0BHbV41UO/fn/dmrSZeRX7sipQIG8tQGTsTDgdKPZke\r\nzo/B9QTj7UjdcAHMOIfIcf61b1u6YCCVAcAU4qnW4wt1qvgGPZNqMqsTxyQJ\r\n9VCpwGrJ92WPisR7UsVMLrQt/DUZWuKC2KFtmWrhp9VYYkLGbtv4BvXNiJxI\r\npl6tzE+qg4qQflV57+nvoxtYaguhAWKzxuOJbH1nQ0UoTkihqqYft2wGGXh+\r\nLTrDe1tOIeeQ0yocyhhv7qvYh+IOy4jy28I=\r\n=R6xn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqo7j2q2jkrJBi25fs0T0XQ/1xmVYUj35hYYCcpmju+AIhAM+PWxxPDhHkTxp4eh3dKx237bftb3vX9Xnp9HSfd/TW"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.1-beta-1645654227000_1645654409339_0.1109707831043305"},"_hasShrinkwrap":false},"1.19.1-beta-1645656827000":{"name":"playwright","version":"1.19.1-beta-1645656827000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.1-beta-1645656827000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"77d9a8e1f6aa357198caace29fbfbf3d570ccc97","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.1-beta-1645656827000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-EXHrtq26zkTqsLKqhI5FVJfFdhJAlXjvqbn4NAMYeD5/BDRzPZnqSnWPazrfvW4k+wp4kvdDGg9+kdG2eo1Ihg==","shasum":"9ff4d8bbffe849abeb2d36e174d06580ff77e312","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.1-beta-1645656827000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFrusACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRKw//YTKTGsuys8eZ3r/tRPWJ0mvXw4Co//rXe+LVSfV/MXjHd9ue\r\n8jTpQZGJa3iEsrGyGZZdqwJ+fnc48gijj1wt4jkZMQOmfwQYTJ8nxKzlX1u5\r\nTIU1jJao2X0XfjkGAqQHwLTx99pKj3ky8j6+lNQg8dAYOVAOO1C1vfXCuVW5\r\nrf/RGU3PhMuBUgBzpJNGx1+RIfQDMVX0UY4GkOXx2dgcyKANSvXvjRe4tsb4\r\ncK8VUzqqfiiBUy3TlPnFnKxzS6QxCG4AvTEj/IVFWh1PGNYax1NxMx/1hwhz\r\n/FbUNx7dNv0divXMMux6Rbbju9fxTH03sRWxc5t/S6lzIugJgTizvKAwUDaL\r\n2NCCvT4OPhx8yBkqiWUJellEDEIdUPuzhCRSHjKUsOvce3gtlppy/+9U6diR\r\nLi6m20D9cgyT6eaEoxwzrGd64ECfjL7efDtqCu7WYcQAbrePs5Gd/FXzLNfR\r\nbHp00VNIanxhUk9AgiEsj/ONNBydWBzyEa1nK6LLmmCHnyhnruM8bs7W2gSe\r\nu+SKsFQyUtnvYPNRSjDKqIbu3dbYMh6HEXtM98BjD6Pr3B8gxlD9C/6XSnFo\r\n6NHl7GiTrONKf3Si7ORcnnI2yGbS3pMLnEBcJ2zzo0ahJAfGSdPLGxheprmR\r\nsCcgY1mQTyB0UzARJFNzZzSQa9iigfSmSy4=\r\n=VidX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO9yq/x7GnwUJMbHcy/T1NvVfEUwgkut5/JzKELZRTegIgW325JbubAECk+mve+EUSwb5SmBrUEjj7/aAYIwMKLu8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.1-beta-1645656827000_1645657004046_0.37219602172003374"},"_hasShrinkwrap":false},"1.19.2-beta-1645657231000":{"name":"playwright","version":"1.19.2-beta-1645657231000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.2-beta-1645657231000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-100.0.4863.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->100.0.4863.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c3a035560a0113f85c686d03a9c022d2e32b42a6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.2-beta-1645657231000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-JYEEaW1RbNQhs4DZK0ED+iSDJisHR6QYy2xmS8qE6O7t7/ODBdInj3Mj/WT5nMXmB8cvGczQWdkLXGLopVxfYQ==","shasum":"b9ab3e773c6eee41eee50a82b0263d90debfeb39","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.2-beta-1645657231000.tgz","fileCount":9,"unpackedSize":24032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFr0jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFGhAAopjIDuPiBOSbN2cc6xh4+nx4/NJ4S+KN7WMukgYLVoyv5MWg\r\n59xjHipGNg5giLzlhZXsQkHuX4OW09fqvQ+Ee522VJ0b/shlt/tBO+qns6yy\r\nkm7oyRS2F1Fj9DsqpI4SS/EdrTZ4qyj8sDvQaLB1cyEY3Q5cAYaLQajCm3eO\r\n2Vz1vgwSWxvOhlVjb2aEuZ9ejEee/0cl2mmKDj0OudSop0ybyvaYxL/g/IBU\r\nO80wjCaeFgKat08S+0eStpP5G3YmE2jodPXwdh2gOuWrPq1lBTGuRVctAqKZ\r\nQGb4EZ7WCzq+HETu3JG063X48rB/msbYDt/XPHGRA6p5lCMbG1aVPvIdqm5t\r\nsN/eHbrApCL4/sIhwyBuGDcKC2qXwAFcAX9rZczpMDpAmfypMATV1aEz8z7F\r\nrC67ZuYasclAFz6jnWOM5NU60nLwgZ2u66OR5/S3/D5qzrO+T1sNPAtgsXMN\r\ngz2eYqHNOT6f3SlK/mjFjpf1hWdoD8S/WvzlUUHk7773xoHvXXpcr/3pJ0lt\r\nqYhSx+ZonP1QeZQt+uqLW90+uCeqCRiO2z/TNIwjWe08ncjQ46mi1+nw4SS3\r\nsDssS0eEXwc9fAiwGs37/7uQuscAE5j9+QPj5EM74JP/ZmrAoTRLp7BT2xFj\r\nipUl0zoHtDrtc048f0+jO2z5AxylGY6IMCc=\r\n=sNoO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzkVwM+U0NIOsMCI0ZuOy7Pe4sPXwj6cgFKJhgUXoeMAiEAx8mYnU9lXTMpYB6l2KU8076iKMstNtcbQ/2s8FGmIBE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.2-beta-1645657231000_1645657378911_0.8257031680815756"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-24-2022":{"name":"playwright","version":"1.20.0-alpha-feb-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4901.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4901.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"71edad327b7bd07bf00eea510a1edd5e258048bf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-24-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-k/wFlPTBUcPM4O4rSxONHKN9C8Mwut5UtNreMe9t5V3I6v2ayOlcXfZ//aF7h6yqrjLX9sZAZueQese7VrPxJQ==","shasum":"c57928a0a46b4f03851834981e59c93b02e0d776","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-24-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFs+DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/5hAAnid18ihDHw4HQdSqMzfpH7DSTDNt2w9VUjGU9v7L8EX6hpdc\r\nFLVZ5spqabQF5xxgeJpb4f6YqjUgUxL9OWSuAKKRHRKBK3Y+YbeZKhmKzAu5\r\nJ3BkoW4EhGRSIH8dd0mzk5QDd3wl53UVRo6kJ3yv3U11oD6U7PKekWvJYNVR\r\nSSZcRDXGUmWvzZHyWoKb4svAi+euel0DLFqim9DqVs0MehtrBfwgRt/mFiet\r\nGDEY7G9o7qCHtiN+hib4EYOHfPcXqQ6XxB/0Z17vIpTI4rQlvliP1E1swHh2\r\npACjvRciJFWKr00Xp9X3TTgV57r2iy1Fk65csjEQeGbT/Ig4uH9iceLqbzoa\r\n8p851q6jPEbYKua7Bj7s0VyWKmb7zukTiuHXj62NACgtzpzGFmAm+IUO6e8M\r\nGL3QnkPMvpRGa3TiHM9os8fZx/hAoM842bXExAwsSHAv8aRUnkb7QTTsP/6J\r\ntmoIUN+Xnj2OVCvP0P1HC9PHJz34sOP5xiGpC+8UXAN7WgFkJJeCvn0MqtZb\r\nmnWbeibgp33PYu3kL0MGWn5eri28oTt6NPQmcNn6Isg6Vk6SiLfO1xihwX3Y\r\nSpSFXD4H5yujbbfmpeDtZJygeRLZnPn6c3hpAlj2k31C5evHVR+RrbIFgLml\r\nfoZE7i6L/3s7eT9vs9aLD+dyT0tbIAbElX8=\r\n=2gKs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEaxTGigrrZ6LHIq08jxSUCTwiTSoYsvjYlPPKZ+u/hcAiEA9HHUGEaqDMl2FWGlYnrKAZ8NOL/TKjOhTZdIkA+ghhM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-24-2022_1645662083252_0.138978939815541"},"_hasShrinkwrap":false},"1.20.0-alpha-1645682252000":{"name":"playwright","version":"1.20.0-alpha-1645682252000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-1645682252000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4901.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4901.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0b55950d6ae13ee693939028def99d09f2d1546b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-1645682252000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-wz/ftk4g1HwsBoyUPf/BLig8zaOcH03hbfWiY2Vua3V1VZTmgPZfMujdUXAbd6cPIQflrqNJv14mM1prM0Lbdw==","shasum":"0a9836841d183374c66f688a8b1eb45da67e3d89","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-1645682252000.tgz","fileCount":9,"unpackedSize":24034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFz0PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvVA//SfOE8D0D6zFrRWiGhNDR5b3ix48AoYreb51EdSq0EvBEYk8d\r\n1bDKVAoSMYhLdevrpnao6L8NuEYVc01bY8i/5lFROhZas5wGe0q8oPex/tJG\r\nHK+J8O6KVPMcBlaFiRldNSb1MXk1DUcIAWQKJxzc8lVPV8KeG2SPg9X/pKnN\r\npnkqPhXXj0j/OyD08dDje3MAcCRvscWjjL99LBw99IQFPPfuulborucZrwtu\r\nDfAAjEPTSIZzpWHorOta1pZ2VIR9ZWBwjH9gi0PSpNr1Gwy+vk1klddhz22H\r\nHv27b+5fZ1qoE9EphNJ5gLaWd3RbLjsLkBGQ14hB8NpVBNWOOthY3lQNJO52\r\nKa3ITewDWUF478lzhoVex9vbDHrKmfNj0R/HNfj+5GHzK85TH0V9LA5povVR\r\nx3RarBMAo3ggMLUDv0u4gLxROnXV46+n2R99FWpQhHDAWNrfxTocYkwWPufD\r\nFVZXRIOpZf/xk4/Ako8D3hu7ubxhPubrWup30YhG+BVAlUhQNCVsPA8nY91B\r\nCSw9sZxLsrgL3495EpLzXWuM/46l4F0YxQhyrrBz1ErUjpk0DaUGvpJACQAk\r\nLENaIdBWjOCoqtnw4GIXXZz4Kua5hoSMjYlfCX/uZtK30xocUpNf12gIup4F\r\n33zaBiN5yrw+pslvTCTa6owK3/9AZpzH3OU=\r\n=f17/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOQNKgOWfmqLGly42n69cRvZB21BU/6tkV0SjETbarggIgetVqXlDxxtQnyBjZEH+mrCNxaZJbdNKTyAYAfzEUyjc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-1645682252000_1645690127408_0.10121936386595864"},"_hasShrinkwrap":false},"1.19.2":{"name":"playwright","version":"1.19.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.19.2"},"types":"./index.d.ts","gitHead":"c3a035560a0113f85c686d03a9c022d2e32b42a6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.19.2","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-2JmGWr/Iw/Uu27bZULeHgjn8doNrRVxIYdhspMuMlfKNpzwAe/sfm7wH8uey6jiZxnPL4bC5V4ACQcF4dAGWnw==","shasum":"d9927ae8512482642356e50a286c5767dfb7a621","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.19.2.tgz","fileCount":9,"unpackedSize":23994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiF7jNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofEA//VH2HIl9R0FGz0XjiRQZGOYuCMbn6e++IOvpM/A7+7WQ4apbT\r\nOStGUmTamR6UxI9+JZokE6dhqdA//+3h0Vu5ED2PGpZgueKO0bgV98ywgdqA\r\n7ngnEHfY08vVEBhduIFwvRhpuRwIr2UViMS7f4ZE+E6fO5HJFUvKxdUCQ4MK\r\ny8eMgtEH4YEn3NeybpnQIQk8XCSVUR1nYP3b3IxxAGKdZ6fbqIHm+0MyEIVz\r\nciTRL11OGuOVoxhpUgoaIztWeKTZ0Cx4YFtk2MK6UxjBjCbPwWnHCWV4dxTt\r\ngLsaDcR2r1970dyWV+4i11yhJs05Hz/Pi1ETrTAGFYLq3T0HBR5N56Ya4q3l\r\nnU5ixvx2sLrORoTLoqSMVHfNuh/uRVmE3xQdyd3Nbzf2PKe3HNdfvhKQe8MJ\r\nz2IPYTR7aXolGKO/yLWG1qaPHk+Fy86Yx0HS/t2dH5qXn8tk0L38s3K31/tC\r\nIc7jjeR5iIH4oJl16M1+2FoMb0fUCg+Yf90Y5MHBCvzaBLueTktqItTbL+Bv\r\nqdVkGq6nSQRy0PPMuxymDRoBSGtxIuNCTFjB/EAbOlK/1zilpoE1/I6q+HNA\r\npFc3ggEkJpuvSooxOgAK5P0Q1O0yjLsYQlQbsCgWz7VlNzXccPYVAo2vtp+D\r\nmIsPHGLnwjWdtzSbG6UUquEzN7W1VLdu/LY=\r\n=pd1s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0JF5bUNHAqImsgD3v4fmn7lVo6H7RAILy6Buo+vw7BQIhAIHLVhvAHuRW4kOiib3uGo/GAcUOe/vYipVG2X4twYX/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.19.2_1645721805755_0.9500900029773309"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-25-2022":{"name":"playwright","version":"1.20.0-alpha-feb-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4901.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4901.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"821a8e93c72711760df821de9e9d18d90f707468","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-25-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-CC6/TTv5iAj2elttzyjI6xvyyk+sru/+6ISCWzgPo1XpjDrZIWywZrzD6kPD7qHj45+odTxIxH1ddYtg02wnnQ==","shasum":"4c4f1597f4ee4517b7fd19d4bb5fe5f8247a0377","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-25-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGCEYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOmQ/9GXmwR0ovn/+CbcI3UbiP0dmITI3ttuOPBSEa+2y2HOkGyjro\r\nejNZ8eRPxUFl/pUp5AxKd31kUOu/SlHe6bQlKqRnOXXRy7D+tL5v06BVEh42\r\nuRDEK7tE1zIVPoGfdxxolsDIf7f62X80QQQ2DjQBSBSTd5Q6HYVsWhpBSUcH\r\nOQOrfD1bHf9vo2sa4NYGzNOKUCcPN5CLADPcubNMQWH8MAXIejkeeil0s01V\r\nTs++SX4qw47G2d6IznACGcdvWbutyfHGLND82vY7Eg+hfisablsUOqVqXqTV\r\ni7+94spQyLwVwJ1gSYBp4h4ZsVmwZFHxjBonjOVpF58mocUSU83VHn9L2RMO\r\nNlZofqjKuTypQ+yE9Q0IT9HsQEEAYsKYuOlLpYVTQPaeq9wMI7s0BZQUAPzA\r\nUYwoABISAPWQasD02aYN1oBjvMIzMiRahzlbnEi86S9nVC6eo9W4Tcpj7dK2\r\na6Ow8mAxbpVrdmLsmPykuVJe+NEPncnoehm6l+rpgLF0+3GpU4PKcbdxcFLv\r\nYTJdGeeCdrPU7eixNI/OTyODaSgJGPU52ekrG6jYAqfn0E7qSLsE3GeJmKxT\r\nneJQzCE3VWmRCJ6CtDrG3SM5Q+brTs5hcnvSksWW+5lOnK5kyHa26GlFjcCQ\r\nKrv8gozY7vjW+gt6eqttcaDuk3nENsr4phU=\r\n=HyIS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLM9rur4DXxr7X+b9gd+Liit3ORnwEcPUVao53yM3QPAiA8R6RnKprH1Er8wmgLonHbAmrkEsQvlVtbbi99w04JUA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-25-2022_1645748503992_0.5154869344905311"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-26-2022":{"name":"playwright","version":"1.20.0-alpha-feb-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4901.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4901.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"41e9b36f63f168352f7b3a335c3517d635056f99","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-26-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-b0cogfPKjrbQ9I7M9HLPTd2DpEBF3/CNRwpjDdaZdP9h+JKcx2uC/HBHy5tLdFgKsIY/ZuE6Z9N9dngWh8ddTw==","shasum":"badaab3453cce931a0513c99be9f2dc6a0793ef2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-26-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGXJ7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeCA/9FiYhK0YzLjED9rxUMgSgPv9jrMBEQ9RuYwG65TNvN0WqSRzp\r\nFb3JfEwAOxhoicrPMBxlEUkFe9YY8RPjjgamtftpXshIRX1K2159vSe14M04\r\nLGUZbd4S2iHPbZ7BTqHKJ6Upebk/nLvAE7HhXXEtWT6GN7V5lo+WOFgGTEko\r\n9Iy2NXI7ifweSuR678X2kfFtwi2RGsquVHdCM4NO9AFnOEcrQkCBxSTuwBb9\r\nxvha+ueGVv50EzMbDTMsviS2VjFZofJF8QKI0Hig3PFAj3TjI0CM+jc60JFL\r\niZ/lg26nnsaScZFkb4a/FSLTBdl+IDH6jkFDg0yWbNqA6r928i+zsZUTGGyu\r\njloytwH/o/2wyNy6J3Py1rXzmi54wYV/QT/J3M8KiiWRlIyEKPRL6uigZFkg\r\nfvWJiEX6P5c4cG2l9f27QvWR1ziu4JqTJPPkaH6VTaMUubRXbt7TOY9fkpvy\r\n+0gHdl0kaC1jbwmG6MhTjraNblEHcmWVK/W43otm0apHpxXgM1CUVj0jGYNX\r\nEhgLawoLXsOLn3D+C1kxyQyqy8N9eqjAhma/LFKLPCvznPdNorQ3OXCrgoSY\r\nVTMSHlB74y4arBGdvQ7e4ba+ZdPQbwkSl0HyOWOMhXuHdo7oamDePR6rjwnu\r\n+ef92SRCXUoKZ70Bu+zTfCx1j1PsNtMnwtQ=\r\n=U0WP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjcLx3R6DtJk3xRalqpEa/9fTM7j/S2qyTP8syrMKgmAiAqi8/GmHD8I1cL9tpcSiVs7CU8joBxPtEYzP047hpkWA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-26-2022_1645834874991_0.8810783911188513"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-27-2022":{"name":"playwright","version":"1.20.0-alpha-feb-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4909.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4909.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"80a38a39c2c66cfb082ad1031dbddd537553380e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-27-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-DYveztG8LPXf+SvuTwZ2afdWFXZxRpNw3Vwp9Uq1BC3Dydrjsmh26iQaX9mCLjRXNj2mnHgvK4g+IhDg9Gp09A==","shasum":"f5eb6ed6b21ece4f9c0736593439049b6dfa4543","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-27-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGsR9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLYBAAktYVpdBTeOG0PYJf8i2LV9yflqobAGf7lgxPXBa9hflTXBIf\r\n43lh95fp58FDIickAqPHefUqJh3XLXJsYlit4NknmfLtKKVzAap/+RyELuxS\r\n8xuC0YLXYcIZjHXBHZMOipHJ0ft0A8UFARlQkk6sIJ/GhleZqrVa8PGDXS/u\r\nYK9FYbxLJh8zio1kiikBlROEXSu1eJx3jsAqsUsAKmZRUuG1MvoNuX02RjUb\r\nIx5SiihwTo+IIivM7InIjiJbKtRo5CvMvtrSX8FoPnjkXmR0DPvo0FDS35mZ\r\nZLw6lrLp4FIVTXINCBIzMOPJMltjknPzi10YRZA+dzocYq4AAKU1ANcsx5xB\r\nz48Uf/mamgmIbbiyzeEFAydNbGspnWNAZf8vuSy7xK9zK6+DSQ4FpG541prt\r\n1oNlpMZn3HK+ZRdm+TPVdlIo3atZMPKd3RScN5czOJJeBWpE6siAV7MbaPiT\r\nvnynGREY8oGgRTtk/jj3kLLbdzxR9tc0dhaPuA16f07xnc0D1OHKdSWLl/FW\r\nRW0x9cNay+Yoj93RyO9r+oldID8xbTCb5Iq4rUkFXJZkTbVYijdv/eKfpdNU\r\nlJxR6L0akI6kRcMwTTwRhaP9aPdUXHZk3bPD1Eu2XuXTMfFbSRuYVhhm6zac\r\ng+mkKtXw1f5+Y1QWzdAAPQTlJ7yRBvPlqmU=\r\n=pfi8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCETw9HgG39v4tVlTaOH6EPX459q0BCLa2/EQ5f978VdQIgeNEf4h+cTx2XpJnaDNLiStGoFFJVK4g1yFGDTGzBJ7g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-27-2022_1645921405268_0.11001004796884373"},"_hasShrinkwrap":false},"1.20.0-alpha-feb-28-2022":{"name":"playwright","version":"1.20.0-alpha-feb-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-feb-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4909.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4909.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"80a38a39c2c66cfb082ad1031dbddd537553380e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-feb-28-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-yfxmbWedUuPlPr5W8V9fjETiX+74P/ycN2qKGUPnj4p4yZwWMmEmlHNPCJNpjMM1V5YeB2kMO08jiL0bDhlCZQ==","shasum":"df5c8d307e490c9204c2a8540ff43ca1ba334931","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-feb-28-2022.tgz","fileCount":9,"unpackedSize":24030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHBY2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoYhxAAidHp78K/ennukgllVCfRPT4qhQD4caU2duTpim8rPJpGWJN/\r\ng870Lxa0tnysQNGZ+KgCqpXbyHiMIdF/IhV0dWpONFMNLGUGI4MRqTg2Lk4S\r\nBK8H6loWBnSmRRXfx9klbiWSHfejnSsu/w5rDpfZZQfNjy62w+wDGnPAIjce\r\n3E/Y8OH/gUvgvmjVBMUryvLpV+eq/JTI7SQ0kqikj19sLD9GzJNC9300t6R7\r\nkOauWoq/1vOaqR5L0SsfQuZr97y+HlJwHS2eRO9N1KR9KNkcvksv1wSWL/f2\r\nI8N24CoNR2Np0u7JtR83IvLGHY+hvzj0z+dyVRIjdcNjHhjlhM3MMhUdfbdp\r\nwgeWuJ+rZPfiw7+VrbMOXEkwm5ly6plE66b3/ySudQKP/BACseeJUpcMouPr\r\nOyaPHfZoYSxr2u0FsS50NMi9UUecSeM/Tjava3qW2z2e4uX4flH6AmhVkInr\r\nqup5GppVc+wvOmIT6rK9EP7O5IJTUlMg75BQ4M0PAioRUF34Ud3Isjz4u+b5\r\n3Hew1V/MXzE/x/rmIEfE7IbW0FFnUiL/IYc2GKfgqwxCFN/zKeeQpj38ZwkF\r\nUiWiVF6A3zRkmxHc0sDPpb3nKZvfFtzbPWMCp3470TtU6D0Y44/wKh8+XBUm\r\nZ1dcqmFeetws7Jn+pMD+bSxqfYG/ABMCdxk=\r\n=rjh+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBm/eJ5Dug9/+hbJwNvew5F50tz7P4YPxyKsm1wifCI5AiEA6CO8gNqY4JAvq6nKgsf9W8pbQs45UQT3pHmixBV8Ays="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-feb-28-2022_1646007862176_0.9229375612596762"},"_hasShrinkwrap":false},"1.20.0-alpha-mar-1-2022":{"name":"playwright","version":"1.20.0-alpha-mar-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-mar-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4909.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4909.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a6fecb5d4b273c934069781c65ae5d50a5007a38","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-mar-1-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-LOQuuboZitJOFY9nkkWOBWs15gmEzDFpt7LbkXQl8q86tsd7wwr4AAyLAgY6z5fmKxUKaHYWxSR19jlxGwB+Iw==","shasum":"c9fea27009faaa6c571a8b49668dd5a1bf25ed5c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-mar-1-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHWfDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKGQ//TmXH7m2LsaJ6PrAND82jE6SUUKFJ6X/fiw3slOOs39rKTNZl\r\nE9MN6BEgZiS2e9pBkt64vxBl2+BN6F+qhVg7L6U0Xlz1o6UETqe5g+CgVXuR\r\nEYC0YKrLxjo7Eawc0rRkf39nsrInBiez1GNIX2v1I7ipH1B3iyg369XUk4l5\r\nhybdZKNNc5wUtf7q+x0JW6Nm7SXIGh8czZ8DJBu0NZMdq/9ePoWapwaiBb6z\r\n5McNUKNYIXgoIAKVvkOGlVjiCIW0ZWAwQ20YGUHH388zQmhwIBS69rEyMqmN\r\n9SEXGO+xjZ0tHV+0/e2LrdMcuhYynNjXhUyB5A1AGtoVvNAXdMnxieEAZVPY\r\nXdnjL3bMUD9/g0Ji4T7nQrwy1DXsYQNDX4pT6cqleqwjeJfVlp86o9brNVHA\r\nFYHJ1oubq7vbFb0Y5uvplFfttS04UwL2T16gKNBM/K6k1XqT/Uainr5np3vd\r\n5s5kGM2vJwSRWCSDjhb8GMuiUYlEpwrgtr4DtT6uYLerXUNv0KcHK8Pdvy2c\r\nIE2bt0Wj/3VLXAwyXaDv8q98MrOcLFwOZtTkBJzwEV0RCn1yWs3s/QeQPWJH\r\nvR7LzCk+skzX2tIjnuT8sTBcla3I3zP5CKykhZ3nxKs5sdvO0QzMV37COd81\r\na5qYI36Yo5Do8751HJSSZlbYYnm0EvJxHVc=\r\n=p4DB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHn6BeL0Y0g3QrGkAf53JC1dqXLR5bYj62Y/1Ftui4CXAiAzk0WHzdo5dWRJCMlT4x3in3GLnCRairWgJD1kQt2ayg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-mar-1-2022_1646094274873_0.7501559011978503"},"_hasShrinkwrap":false},"1.20.0-alpha-mar-2-2022":{"name":"playwright","version":"1.20.0-alpha-mar-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-mar-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4915.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4915.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"61a6cdde704b659ba2a8e450db48127c00f64a5b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-mar-2-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-352a58VToor0Yjq+abkgYayzWoc7PyEQ2Ig0YN5rEv797ESv2eUtkOBgi9DrJGagK+K3VOfWXfAr9iH8ijFnyw==","shasum":"fc4ef562219669e9e7420d4cb52966e7a5408593","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-mar-2-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHrnZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLEQ//QMHPHk3OcHU86Dc2Ft4TDC+Sg3HaInK2vVNfvcrvuaIMs0DU\r\nsQ1+HYfOtwQ4VMY/f1btypH+sDCtbO20ykcwenxsh4BQudfCRE1Sv66tf20J\r\nJLd/TmrZb4wSHEzp0h9MSssQq+OWnyrl8FRhgeF9jlRYv6jMcDQiSws1bdht\r\nKA9V79fndV+IRwq8KKyp+E1lyjbCgySrsdvLPF6tdPdTLqWsUKStGH0jLq9f\r\nNuB1CHsHdIyPTep38KTt0m2nP4b/pVvdwngzQml/szbDi8b+oISgXaVj8DlQ\r\nVMC2w9jjYa/qj9Wat/iGCAKYeVy7rzRCqrEw002/AlyPlMQRxu6eRVBKdwJV\r\nRuRj+qu7fJynUzWYvmc3Y7eEuYF98HTHxQyiDiRbey91fIfD6PFsNLUXAfBH\r\n0PhnNau6BtSfCrASJ0T30ot/qohz7Uba4kg1/vebb7MogeKbQ5cdrf+y4Qh/\r\n3JnL9S4Sgr2f4AGce5sIjBMRRxgIFeWSzyp8JCkXhioNremRxNd84Vuw/f2v\r\nCI5g30BSClEsLnivFN8rGBvQ3Vgu0xci/s09BoqEV0QqGMQG64SYi5BdMFEL\r\nciAidxEYGKc+ABAlgHO7tHLDdBysYrGv7ITdbkAWTpEe1E5uMemXVdKnh2c0\r\nhI4/6tnEnsRwyIMM62891FCKBAEIbkzhijw=\r\n=5H8Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIExXQMERi6GKxnP8Wrvhbfq7IGsjRRjI9nesaIXQnUvmAiB5HzObDRTF96baVgs88ZNhw/jABnM/tPgVtxE/pxgeiw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-mar-2-2022_1646180825453_0.3282319780531002"},"_hasShrinkwrap":false},"1.20.0-alpha-1646242424000":{"name":"playwright","version":"1.20.0-alpha-1646242424000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-1646242424000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4915.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4915.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"608873e9454cdd4e949b1de39208aaf3370c6ce3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-1646242424000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-I2QWeQWzApesLzIFHSFQ56SXx0q3dWkIHqPVVTT1mMhQaXVMKg+hTwmflcrj9RB5Q8AmB5StLZj8gdDcX1W4qQ==","shasum":"61549907a8f4a162aabfd96f86366e116ba5b560","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-1646242424000.tgz","fileCount":9,"unpackedSize":24034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiH87jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEhw//ZRGwkUdDTv14WWQ3+t5TQIlrXLDdgzZdq+S0PtbDzhf1NB6B\r\naymekGcEjkdzrxo3ffkgrD+uCfsQnQQZC8XWsXY/SEyZ/osW0YIp6UuGQIgN\r\ns8l4rF4+ppe5KkH/oXKOsWQujF1Pudm5SlDGoglGsJ0jcCN57qxWmb3Icy1R\r\nG68G+bS5EQbOu5IlwJURogWYWxyC5Xbr55pM1ZWdYrwMw5NT382Pi58X62ji\r\nbIIT10AYI8QAxK8SD2xgqNbDD/SmYcPBxCMA0tfqYKCTkPJmf9no+S9dmLl+\r\n1n4awxl0rRVHxtHkuT+xlvCDXBT9PCIDjjGzi4M/9hWTIsFD9Qun/QUVWgGb\r\nR7QRAGMiHktkXOtL1R7dfDh829k+wSeQKt4Osj9OKccMDfxTNMEpQEwF0DCh\r\nGLMC/XzK2r9/dWTjTnIvj6g1pf19+jAWxopE6yioFneV7Upx4MQ5al5EqKdm\r\nDDXmB3o9f0ijkpUX2SDNFNlseuc0u6jZM37zl9eAoBnvBtizrPNdq7vePdeu\r\nI3l+RB9pDzSIZ7f03RzpUeMyq1BUtRy+Z2taP/8gy6DfcUBxkMF9cFhzu3l+\r\nhEU98th4lzZ0rHmGtBSkpIZd85toF9hP4+cXEMJC7Y/y2km9OFsTnxdNYrHD\r\ngxT0I9TcU0gP34EG18OMzLMUdUmRocVxRyY=\r\n=0xzu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCX5WUl7wS3n5Aa7RSWl/i4OdAVvLoB/kEIPp5vRMRYPgIhAM1i0IEVcyPajheWyUqg/tnL3rIr2fQIV/GSVrTd+0Gq"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-1646242424000_1646251747148_0.4621881165221502"},"_hasShrinkwrap":false},"1.20.0-alpha-mar-3-2022":{"name":"playwright","version":"1.20.0-alpha-mar-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-mar-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4915.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4915.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5db93e6ddf80dc56d24ca4121d48c160c5ec9dfe","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-mar-3-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Acg3WyOJ+AqxL8j/Zv/gEbf05kSUAG++QE1hCtslTI1STLRgZuE5QLGVJgmQ6zzoWTZ56pshFAch0bOoOIOTNQ==","shasum":"fffae039edd877eb80e241a6b3e4f1c0d9381f12","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-mar-3-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIAquACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbiA//VrWo9PVmD2ECzoFg94uc67pg9AZ5u0/Fg86SVagDJCKtGAWS\r\n8l3O63NK9VzQiMC29kJCqC361X/m2jO2KvDNixLPKkvL1QiDQYkGrsE5BPCS\r\n+YBRQYAGpOCgVxLxaE89sbP+4LiYvTuBfuOVUbrM63vbMIChXk3ZtcQX3zS1\r\nNOkB8drj3j0rVnkebH3QjKfxbxu7d0KbUTN9BGnlPMs6YGRIjtebcZYOa4t9\r\nozfsLE9J/u/+y4fdCxH/SntqIh4udUKOBtSNSfUojez6TtLiF3zNOjGCjbAO\r\nH4vYNeQlIYm+Ti1oNdLziEp4lua6eJJN/aGU+7+ECChmuAVDPGqO/wPqQkAx\r\nUlOVaeudftpuXWFkxFJuCcxcJZ2Oa8xS9yLNlYuNTdGrAOyM6Vt5D5TiOQJQ\r\n5MZ6Ddbououwv94lHrppPr0XRaO0/XadopfgmdIojcOHFQ59hXIYESIwRBhI\r\nFJujTYBD69GPQsn4wdeHoNfmBspYASU9DvEObHdXExFtya3GGUiv0ARUoofn\r\nUQbpwLQoEBUbMVvsfSWGxwKaEf9naWUBXqxaNY7z992vwYspTFr3C8+QUdv/\r\nnS20mpzazLwwbGtInChSSzlfenms5fAEEF8kCtjWyFExaWEuu387eMdLz77C\r\nEWRWsjGueWMF3hzqXzmLsy6kCHBi7JrvLss=\r\n=mkQY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5bR9DLGNX57nH3qy0PhfBwwzH8tg26cTzWz8J5OpsnAiEAgZlLvo0hRRuwILUPl7rCcG8L4vDuhroOjIUh+qsYZpE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-mar-3-2022_1646267054532_0.6718936076323436"},"_hasShrinkwrap":false},"1.20.0-alpha-1646324243000":{"name":"playwright","version":"1.20.0-alpha-1646324243000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-1646324243000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4915.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4915.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3db4b48bd3f40007dd402e0fe0f8cde5d321621c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-1646324243000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-w5khNN8dqIMSJAVOsfW/uRVMnCTKn9XzavPb85Y5msvPs8KurfBqF1TneBhcUQA+PqQhJnr1q4xYtuvGRWN3Rg==","shasum":"a23b6924c3dc4eb9d9d168a9cfa6be2fec4d00e9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-1646324243000.tgz","fileCount":9,"unpackedSize":24034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIOrFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoadQ/+MjyXRd3fF4C1ah4RrycFjtFmQF0ubpwfEbDz5Wg2iBCSpxAH\r\n1XUJgJQUyu7Aj9YRFYiyEgjlSiYzNpT2MKsL7CofGsavuRqLbVpbJVhO3QY8\r\nGjn0QJ7WwdEnCnR/0P2R+VZvyqTdqfhZH4KAwcFVyJ1RNzfy3fEn7NCMFPid\r\nLM+zOJvOc2P/ISVQx9LHcW95W1KzD3yvuy+/xtTk/f+QOalCUZzJ1muHqavw\r\nEZwDms+Y1EOE9YkjIwb6Jl+rkuoHwRWmwdal6AvWksgm+TETBqD1S7sXClUf\r\n40WG3hD8b8M/9CFjhGDiY8WEVBRk+JYmct2ZPlPNfaUu37Jk0QD6aPU6YcDB\r\nWbB444cK4n9B7I1/kxMYct6cyKfK3gZLvaLiSSbdbkzr7TGVCF41CPEBkj7w\r\nni0rVHS+fUwWGi3PH2hAQGPiS6cz/Ro+d5DK4wQty4tws1geozxi38e62oK6\r\nfgf5SF631HnUCzMcCzyJeqowIFP0NJJxTM5WuNIN2/uwCJY3UbXM6nxlgxRX\r\nBSOfLVVGaeKC6/aiI5DkE1LCsKsLUUOc8BHhEMVvLxJGfolhVxvRJtfzVMZh\r\nSeGb+LfJ/pB558FJui9GXAr4Qmy1wcubh2LGxhMugPvoHyw/vTPCqK2Rswrr\r\npyavgD7vAeXzrDhYC81IyKDfxRg1JglnRj8=\r\n=YV+h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEz71gm4N4U0IrJmi6nsteGqO47VOI9tqzdUQTqiLz92AiAlmfoJM3rJXvMjOa2So7PkSEwnL7m4iO64x6Sf5j74+g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-1646324243000_1646324421092_0.826447605494723"},"_hasShrinkwrap":false},"1.20.0-alpha-mar-4-2022":{"name":"playwright","version":"1.20.0-alpha-mar-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-mar-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4915.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4915.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fc32ec99448a2896d553d890fc211bc38b11e122","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-mar-4-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-GbZLRN1VeiSHOmvtdUgMjiFENxP8p27Cp0TPdHka0K0rxqn9lWXmyjlsE2vIY4b3vXyjwbUt9fi8i9eS0LfP1w==","shasum":"4d02d792bb8fd5683c15ba689d4896c638eca4a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-mar-4-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIVyUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmov6xAAgg7EmLfAUmFt7DLsi2dOWfvVqbJ839B+IozQA7PENasJ8HQS\r\nRc1ZiDe/wA5tdPFWWQd6sxVx/dX649TjzYEjPcSxxM/mTEKX8mqyOi3PhNyQ\r\nuyJYWeO7RFoJavjX/3jyuWa8uURGV25ZZvXK8T7gHxXrcUCZ8PnDNMHF0XH+\r\nLZFz5cT0XSNGgMjL2PhDdhvF8oynrmIjXZJk4tKBdbIity1eZq7FH3RjMwlJ\r\na9hFpKYloQ296CQ9zWOxw42dKkIc8ivjAxgFYtZThF5dxSPmhqzNiCwaqHAU\r\ndPdOBbnxr9WjybiKlveqIY8beKmOJeuqs0T7+4IuQZtR/ywDuuvSrbjPO9hO\r\nv11ThgWROkFgBaMTStE4aDoyqeXgPKRWx2zTofnA4/h5LmfuCXGMDdXELI0s\r\n0rKX+2hUMFXhoOL9X+p0vc3QhGYem7cXoL6TJrP1eJ2ceCHGvwvI0a3zbrpC\r\nuP9/pBWVGzLFc2eYcHs3W/ktqR3k9Oj8PhDctBoh7xNSUSRpesAAB1TrwFoz\r\nfKHGOIp3+AvdrVygti6WTx22N5srlRkPAb2mUpkWcQbsdQOim119d8bNssK4\r\nEYHPcEFyeFfPgjBhF2pBBzd/sivLBP2WukaKMuLoVvwffA5LWRyMAE+TCCrs\r\nbPP4dbpNwgFGO44sai/D4pK2b+eVCQCdV2Y=\r\n=7r89\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRNgSZIODF4UUG7ZACtZSaegq0SAhm1cxgHG7UWxvGLQIgbPbgyRbN47HRU43HVIKISE6nPj0Q1q7lv8nugo6k8RY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-mar-4-2022_1646353556159_0.9483480571058363"},"_hasShrinkwrap":false},"1.20.0-alpha-mar-5-2022":{"name":"playwright","version":"1.20.0-alpha-mar-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-mar-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4921.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-96.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4921.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->96.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5fd43edcbb1ff453e68cf809d69692d1fbfc68d0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-mar-5-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-7wJth4Z7ECLTFbADd19Vhmp9tbJbLSVuD9/CK4wlCGNBFG8EKstTMGUfwFigO/nrMKTgy1UxwTAcYmVyWO0/pw==","shasum":"a82be25d7140a16ab63c6f690c1abb9eca74c72d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-mar-5-2022.tgz","fileCount":9,"unpackedSize":24028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIq1QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNtBAAm06om81ct9SztiOHTSRRPF6SGm8iuGc6ard5ydtyNbdZPtlH\r\nAjRfVM/+Tg226BRLCELYI/5/f4cvw0+l1VZxRYJTtLGNt0hM+jZBrmGkZxh0\r\n6Si3t8u90yFsZ6OBnoKTnqi+9zhcJOKa/DRSs4AUJw1BRGLVItl8EaM81sK2\r\nxU5EJRGGVbvcbSGSNBsmZMhTr/NwN+Jm2YEJ19KoohzNS5M887ib5IpgaCb0\r\n4R6RvGPVJgXRcXbxRg2bfvgabxoEFrNQRGqqEt8eoNBh061unjW4pIsIUg3p\r\nVTllezzN6pSvx78Cq800onmv2YDn6ff93RKETZlR0blH5IGzh448d3qT6v97\r\n2ZyQcMverpIwAaym8weLbEjeX2v9jOynRbQ5v4wH9vyBMFXn0OEifReXEPks\r\n7GWy9Ch3Yyixrl1ZbwuYDx9pbYhm2kx/gIE1M/M1o5gFnVP8LVUtY9I+yslF\r\ntRXQP2148Md3W7p/0bEmGSfgFVMH8qOKLQ4AUoFZm0r5FrzdjGTKZfNsEtsb\r\nSffFZ5t+vfRji3YIXQMU7HIt6edpSH1BXcvSmB4eDjmqLbXenyXsSKKc3uJs\r\nf7ACQm54osHoC2TbXRwYIaS9d4hPXU4gC84eza4L4vMuRu2Gb/6srJcsPgGA\r\n/QMJp3I3M2HHxzp3/6n9lQt0/a3T59oTeJ8=\r\n=2hL2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOXEmsh8iJSKaQCNuK7dRKvSQs3WRYQcnXX88PwTU8dwIgUD0j7txDwqoiX8WMj7XgNXeuj7MUJ1faxo8PF1l4EMQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-mar-5-2022_1646439759905_0.6385425165087026"},"_hasShrinkwrap":false},"1.20.0-alpha-mar-6-2022":{"name":"playwright","version":"1.20.0-alpha-mar-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-mar-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4921.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4921.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d7648d390c496dbc4eedfbae6001c6e6c7f47565","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-mar-6-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-99J+myWXopCpBgY6F7z9YtQJELmhIwYueswXla7reHzm8UZBxhcE47C4rzxFkZuFLilhSHw3cSUE5H6Q8SEbOg==","shasum":"1a1856618b7b6995e2cbd2d8dfc2816e004e5084","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-mar-6-2022.tgz","fileCount":9,"unpackedSize":24024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiI/6qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOpg/+J7ccaXOB5ae74SdMvPdSYE2vjiYxiAFEdIJh05AxueU3O+zG\r\nylY0gjkMqgXnMfA4x9GKPOo7mLfjd6W/rsGR0buTprVbkCDOe3/I1eEkqlnb\r\nM6XhxhLeOhXWADwyK16iVEgIvKPXWCxhSKosXFcWNn4OpxyYWvR1bQ6QJFar\r\nCJQtOJpYJncLBsrr2mfpdDp+nlz22kCBIVONoKADjShjNJHDcx0LjmLoRPgS\r\nw4bn/ajjEBOTqwYqq1L81BKW572e5gDf3/nR8pyzeE+bIeoZ7c1QqkExwt9I\r\ndLqZQbNZoO0ztvu5wxEgWjUn88+Glu4cVtIneFSlI8gpObfNaTB9ASCSWJf3\r\nhCLjoobVuB+Fvfp/cawZNDNuk+xESDBn/+ubci+DMwNEg4wbq5mAWGWw/Hjn\r\nO/iInjxpah4DWl2YNvPe5I/92MCc2MZ2lbkSx1Vb6cGd758Cwz1p01CWftId\r\ny9ATOYlnL6Lhu0Q3S2Vj0yBpprJo59380TvXK38yXkNpckp/Av+WKB5p2mRU\r\nQUhBMRg+lPupMjMwBN2l/WAtCVmeAXNJgXdbtorPQmW6Tflo/eOS73/1k16y\r\n5sPCCwp3WjDJYkG0sN7s1ob+diRD/wxvS4JGAffi3jgK4HATgt+X6q2IjiVg\r\ndGS2VYs0nEXZpbR2LTbY5GLtXciInRX7JMY=\r\n=bpQ+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgjxYgDZxflYAaYDNdFMH69yzownt5zc/8k3cJ/kAOcAiA0ckoyD+1ic8IJjw3jUTdS/za3F8X7v8VQYIUxcHn3ZA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-mar-6-2022_1646526122259_0.1914345645793265"},"_hasShrinkwrap":false},"1.20.0-alpha-mar-7-2022":{"name":"playwright","version":"1.20.0-alpha-mar-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-mar-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4921.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4921.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright\n# Or create a new project\nnpm init playwright new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"702536d96212a69e27e3e8e18a26c282ee26b08a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-mar-7-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-peboDCKXoBvLPDq70Ek8hKpKCZcuHrsq2UvJEQzSvvOqv9YaAMceJaZAg089Ilv8ZBZj2th49N3MQmx3Sme3iw==","shasum":"615ea071f9e4050e797d877095e071bafd84c0f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-mar-7-2022.tgz","fileCount":9,"unpackedSize":24024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJVBQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqR5g//dQW26NYHeNUjemPtOPHOa3cm4XHo7E39hpKySO205rBdmVHG\r\noHbIQ3Tt+SybsP82o4M+/ZIyerpB11A7K0hBRS0YwBXdpU38sNqh9x99MPfG\r\nSQVTko3DCT/sscDNgq0SY7JE9e5sTJ7LOg7a3dQkoas2d9D9uWyg/ZkssWbe\r\n1tt7Ey7GM3d/2KH0EBU5rzvHSsg2kaUr+sRwYQl7X9ArVqcXH59AgJ1qBqEK\r\nGZn1k+LFHRICMP0o8di1SkZtJaq1hVYVMofbZUStLUZwwLKjmbULC0n1CtiL\r\nLspJOnsE8TDtsnXzfrySPhNqLHWDK8Xo6+09mRZ3dw5zU57tyHsjBiB/Lp1x\r\nIwMBNKlrNHLyKHIKhSkOP0SUSASRkCSY8upvairbloq+3NkBWvA9//rBmAXA\r\np1GWo77HHAEkEcNqKeXBNsQZKemOYfFdQTvxLqWkQJt46xObcbdI9zTE65MM\r\neY7Z/d/Pp7ITUhLp3iUM44u45vBNLdndm8RC61TTkCcR2eHM4D9k2m1iJpaD\r\nadRrEw603W/dD20NSrUPC5ihIji/UVODMaNxEq5PKReURqPqQEdyECWY9QpP\r\nWySNtYoY3sTcV+rpjyn+fwoit4cRK8+JYvCQXbTSux2PvW4czhWXaQ3g2QNM\r\nUWbV0aw+O3gYutZOWPPIXojHEqyLcyAHdaI=\r\n=331Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRT/ZePZbjHfzsv39VyYBCbxV+ay38VPSecr1wRZaD4wIhAOqqBaImm3h6c6ZFk7pHuxqvsQRz4CMZ0VgNptAxlPsi"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-mar-7-2022_1646612559898_0.18872003236440826"},"_hasShrinkwrap":false},"1.20.0-beta-1646678256000":{"name":"playwright","version":"1.20.0-beta-1646678256000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1646678256000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4921.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4921.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e3e29e25beec3c6a95d111e992f4d7ae3b9774b4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1646678256000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-QXUoq4ZOr/adMTrjPNw/sxPJR9K+oOz6FugFTT4gB40n60Q/oOoRuw9oy5tT9rG2/UI7OjKuPwHb+w+mKDys9g==","shasum":"6ddcf62dcc7cb704fc16ba41c5abde1307d0ce30","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1646678256000.tgz","fileCount":9,"unpackedSize":24042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJlvhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhYQ//eTrbXrKMhMGxNJjlA7E0Azn2sdtsUq7yCFene5S7DS1twwyy\r\n41PvjcxxLCTKTprVmJ6gIThOGVxZyT7jXEo+vbx4Xq0RX19sySdMAt9dJeCM\r\nF1F+h1tqjHPGqbS7DplipyH20uU9/C1dboXTjW/ZeSKRfv4ZVVxPgya8FvWq\r\nwSXOWm34mlR4rnAgxlOuiUcsylQqVX6ogvaI2hynuk86VCSpkNx/k5MacgMi\r\nSg3JAEBxvaMiBjMxyWnDlVwDxoozD6wqDVve+EKBF7AUhZD2CTv0KV0IM29v\r\nORFKEhF7vSqlm17tYNspudiWPBp9S5t9jdVtuDQUMYMBs7Y+JBZxPbJD8ECa\r\neAfZN75sTMOeH+8ntaPhX0XHL1UdfO5y+zATD5s8c8FgmarZHiGz1Ces1Okq\r\nSogUgs+GUQiA+mG4vRqjvR4i7CMrX6r6D0iaM6AmZhvHKsgxEwgOuMW1Ofab\r\nX/s8TxrMFwsUalbv729nxh9AN6mF+elwASV+2WpxTT8EBwzknByFM9m/nPAm\r\nWixsC2igbHY9sihA2IeoWx3CM+OFx20+WxvQe8ksbAnOPmB9zVdOH9h6nd3O\r\nuK6LVIMCdQADY2UCAIUfe8XUgLZdvbjd9X8MmXCviQCHIHxgKWiaGdtXeQag\r\n6PzmraUbODZSnHBZB/Pg9VCQUv9BGXT9OPA=\r\n=EiSE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUBs3c/HKfYKmBqMbHJQgSpNjQUyZnt4MfWA7OWUT3MAIgFSNu+/Veb83je97zfYjJ+rbEokVEOTA2tLrXtaVhu70="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1646678256000_1646681057572_0.2858931831306517"},"_hasShrinkwrap":false},"1.20.0-alpha-mar-8-2022":{"name":"playwright","version":"1.20.0-alpha-mar-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-alpha-mar-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4921.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4921.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e8ad7eb3f2e090d68e9755c96bbc46231afa09f6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-alpha-mar-8-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-ATObSd38O2qLTf7MV76xx96RTBsUi047PRGeXU9keBYQlBrwkvV3Jcw/ZTxU+H/2WCHGHnK7vx8LnlMMRYPC0w==","shasum":"d6553f93d42600641fd5c2267be8ec03058ddb69","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-alpha-mar-8-2022.tgz","fileCount":9,"unpackedSize":24038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJqH3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+rg/+MQ8mYAIl7b3K0ECZDPx/wOCpXLYj9034s+eco9wwfjPSKhIW\r\nyQMJMWWfYVX3DbK6PQsdDAv/COzbdTaMDiloHgsGOe5L/u4qxdyxjv+9O2uD\r\nhXf/vot3NCw3nYE1k/TcK5cX+XLnBBv9HDhpTJRdncuqWD+uqfkmjGQ2/cMm\r\nfe0gJITviTa8gQMy4mrUbqljP5F/1BSPYFJRakjgfLVyAT/ilP3e+VyXb/4S\r\nBlC2w+92D9Vzgq179zw6jnbjUQsisf2SUSLKhp4BQk8gnq/xWTjH2cOV4dgv\r\nTUrAZAsvXuoLRGAGoXd0HkLDiqH/SLL0CzPSODjE1mYENBWAm/w4TDkD3saf\r\npLHfRqcCTHcKpVSr0tzOSBQYa90Xct/jcWCjK/yRKHtwINFbSzXzjFcb3hIc\r\ngZOnxUBJvpUrwqkuCtWX+A+bPtFh9JR75iG3yDHhNGh+AHtEusRMQIQSjLyE\r\nMg33V3P1A0zft6oae5P2fc2n5EnGBshsFdXzbgHneOu7paQEHUraPbUKyatw\r\ngm3fmhZdvzWXKY0WC6JlYAnaZ6naxP0M+bg+60niscmBNE4k2FIj39obMJ9E\r\nwrjIXwn5Su5RZRPFfb6T09qycmVOqQV/8x1z/1MdGLq+tfmFwdtoEu4/ZLmI\r\nz2u++bR2y+0yFGIW5Ts6rGcq5nDs8zxeVUU=\r\n=Jiig\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG5VgosDBXUGSVTT9uKqWRD6iPRIdMRYPcK1nc7jCS/UAiAQcGnBzHu9VuOa9g42qKeJ+eZxmYBjESikk0vMgqIYlA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-alpha-mar-8-2022_1646698999226_0.5800971211055808"},"_hasShrinkwrap":false},"1.20.0-beta-1646771980000":{"name":"playwright","version":"1.20.0-beta-1646771980000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1646771980000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7e53facf1e4fa008cc47db54974f09d666fd2716","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1646771980000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-NPu3wGclMyvdBAdmbPT9OnawfGEskyaZwrOvbEiIfoHDBxL7Ybppgre+5SGZWKEhMxCrp8KlIeKGudLY7SXcnQ==","shasum":"cd0350b14c833b0a727f3ebb228afd7c7d611bb7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1646771980000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ9OgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqgpw/+NwWasMWV3KlZCBth//NBNiZoq8U1u1sOx+QpQZ22QFXkQ/UW\r\nSJXZHsuRuk1pm7wrxDBU8mNp9+0GFJ7ysN0mZDo9DXqNKi0o6Y1s//1l2sjL\r\nQde1CpA90j0Scwmz1KYrmSpNjsoetkcnHUCY2HQDyu6yseMJVG4th8j2NAyt\r\nMhoWt5y2IVO7UJZxh0cClJPLwah9l8nLF9R0N09Kg39gn0cpeNPGCwrJQmq+\r\n+/QlGAvlQNfFaNxsevMUeZoMYCbv6JdBIjDkeueDtPHazH2HgS0w5/py6dpm\r\nSbeFAjCs5uzd9A36Gn9uAQQXYR0AfgxLdZkVeexYeD/RJr4GInFnRDVMvzPf\r\nTZVep6Wuo8bB+J5BmGjErOVCzGATf8YLIb3aMABXKQwCSguiq5Q8RwHLjbBo\r\n7D/aY27PUX8n29lnBCUNmPSuIGwEGTRSRg+tlD1i//TbdX4DM9VzqXm8eYe+\r\nE7mVpQDnn6yIRMIrbOrxYS2e6t5QQnFOpzFr4cRfOSK8VuuAek0Ll6QIU2dJ\r\nkbaCAl6/+NqcGTHQdsH+2iSvsNJDlnGwAPM4VD7nYAzcKMmj1V25OsgdaOaV\r\nltoCef+JjHcnXVZKyxoSVmjnlltwXB68v1t0gRTj131sf5pfSSrAzz2vIzM1\r\nmH+enBi36KPtU3VwKVd3CXdsfdQwXmTTSHA=\r\n=o6YM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG6rhopy2d5xzGVVwgLw5V3cXfkZ6bsO6iWMtzIEREtsAiBx18GEXovlvgdbcGG7E6F0V8i7/fYmwSl4I2rQo/kqwA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1646771980000_1646777248763_0.4663887201155168"},"_hasShrinkwrap":false},"1.21.0-alpha-1646784151000":{"name":"playwright","version":"1.21.0-alpha-1646784151000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-1646784151000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"79c8746fd2ad5d7dc2e0a984dbccc35ca89e0ce0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-1646784151000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-NV1H9uciRlyrR4wkAWtTXl25HiWr3VTmtfakDK8HJiT56koyURNRWL8AKhnajYcu5qvNoABczx5MpQ2/g15Xbw==","shasum":"969c58b465746ee37042a701a763525a04464b4c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-1646784151000.tgz","fileCount":9,"unpackedSize":24048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ/RpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHOg//ffnrlqTEpYoRJOMk68N8iVXbZuA1kQdNbcKii73qF/+bq+t3\r\n3L+5vd2kkhV2aT4cevhgDOSPxIJKJUW9x2AE4bCokCGVEEdXumHxKAxt0csh\r\nbnktD0taFkJaSesGJyvsTcQ+gjugmL/oIt0Cd4vadpXzZRvta1+u6Nh2q5wR\r\nV5QPKGDUS+mElYNe2lKnKXqT2gHkS0FJwYlMhUyuYnC2DTy+nGXDo9mBfQGr\r\nVus50O++4mwc4SXM+NA5zVvViivRH+JHdrnEO7v9kAL9Xraa0eqvR4zcXxk1\r\nb/CkGBvScroydUgCCjF9krhtI5XoIxHNSYVTxLisV3wO5IdHoLB3uv16bFDX\r\noUDWXbDObwhB6vWX6eokrP2ts7yNR0VG5OXSfaAklfS8LrIjfejFQf5BNs5B\r\nGp+zTJy3r+M+suMNNMmNBok/E9qxEP9SwriRKZOpu8VI6NncuqWravJe3B/J\r\n67tEOHdwEpEYpMfvdVnqoiJv9/rw0cBEL6KtqnSOP3VGLcIRWTPb7qCqeZ07\r\n/Rs8dYwkBrYqT/u0LSVr5YiMyNA8xFmrwRZcWgvt0Rur6hrRGYq3+TYuKhoZ\r\nJ0NvS/zBeXBUlF/KyZ1NRSVKXUgKPfRGs96YZZuBxE7vvhBQ6di6LfNQgCoq\r\nmyYIeKybVOKQnR7GjKbOuz6RYAY1Y4LMlDc=\r\n=ncGw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFboCqB3PmHE9tHyp8hoKZDxdAQOfbIUeiD68KeKmXlpAiEAgaJXecVBTlF7gF8JZQaKIAFDjeAa9/RgHYYG/eNlrpI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-1646784151000_1646785641514_0.4522821067100562"},"_hasShrinkwrap":false},"1.20.0-beta-1646786516000":{"name":"playwright","version":"1.20.0-beta-1646786516000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1646786516000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"84f36df41574630782bd5ce2adf10796c77a4a5d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1646786516000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-cmDHdChk0SlZuftbi8xGPJg8CurR0pHK+vQl39U6D06RqSmDzD6hd7GWUjwZgE5krKKbmsy2e32lO/hDkIpNRQ==","shasum":"dc1f97baf9e7112aa26cb778b6fa40fae749d05c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1646786516000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ/iCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphDQ/+JY4fdtX+obFG7dV57ZtripBj5x1Hr4qNwoCx83PSZm7/rN+6\r\n95PA/rRupId0Fx2t3s2CXbaOrOnU9UdsYT5mZgQQTKvkSFCVH3Tel5eDz79v\r\nyrgX+cdu3VRQhK5IwqH/6qK4BGtSsQ95KUr2u1D4ukH6/ME27G0E9bA+QMhw\r\nq5AD6hzT0ZJgOYBXNNdRILMeey4YLXsHqGM/30fZc4g2FmGiUvRUieUGaVXP\r\nydrDVR/kfQ3/T6AzaaAAE/XCh2TY2gpOjTLPJRh4ZFNUImMv2xCkfyc89VP/\r\nrGIEB1OMtAO1AdU0m3qnmr/S8XbJUgX9LVLcqWYbpE9OYFxORWBOpdxpFMDO\r\njLXESfqDlgwsYvO9hypwPjHmyMDtwWoM3Bcw7kXIhnqwCmX+YCdsNut1IZDr\r\nqL2RFhGAdr7twmDowuvecd0Owt4+hbunQDewLALWez9/YLCP3/YPpPAyVcvS\r\na/P38zOWI92ccyy7M9LTnYzwtIw/GMh+7DSJXMV9d+DQg2TqaiOvgvhgrKNR\r\npRo+LC6iHF09vIkbCwKFhL8R9hocpPuwSJAHA3kibreQCZ7CaxQUIkS1kbma\r\nrbf6glEfejsqHNY0AN6cRVawN9HYyDLdwjFWMTymUAk5WiKEYd9bThb9WLYc\r\nY7mkOrYPx53SJuv0hi1ZeLi+UQNJ72mS8Qg=\r\n=tG2q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBLpxNymM53lGlpT3A5sUOtv4bxheNjndL9txTZPv8BAIgXndoABYNzwjLUanNR+ZlkXYUMLrGiah+VUyoebf6o7k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1646786516000_1646786690438_0.12058471660033665"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-9-2022":{"name":"playwright","version":"1.21.0-alpha-mar-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"79c8746fd2ad5d7dc2e0a984dbccc35ca89e0ce0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-9-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-/hNsS7pfCeziR+QO7FMVJckRH0aaESg/+B6/6oCksI23bYIT6G/MqaaSzdNQ1j/tO8/E+mUNkd/y7Gq4IMgOTw==","shasum":"bd4f05440f8fa4793931e0ec3a57df35d13f699e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-9-2022.tgz","fileCount":9,"unpackedSize":24042,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ/pHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKWQ/9GzffzfBN9+TOrU6xYmHxojUtysWmgSmrCtvu4UxUNngLsoXc\r\nEMbr4ph/wY4yTY5CVMz8/j8hYEeqeSISMraDDlZIkQpn7wbZOQKLaE5G0mU7\r\nlWZXAZUHqj/yDEr8IofISQX0j6SzNCoM+5G3Zibr0Bk7Xx64u32guuGSIxXK\r\nH1JySzM+Vc/G9RtWdFdRwHZa8ybxuKkae7SUghRZX7N9FST48HFCHNBpcgPm\r\nkJMecXsh3JZAgnhq43XtslGOLjtCVcAt7kldm1LkiJUBhNxlzVhTayiQIjOG\r\ni6umgT7p1arkQrKVpctyB/1qpTD86CnVayyY48we9/a7Q7B7uS1LG1ZpnRbA\r\n17FUMSJp7yoCDbNZtTPTSKN9DQgWRu1p2vJGi/+gEwhzI4uwR4+OLooOK+4s\r\nUCtkaGYCQatROSiy8vncbZnLn53ZmtYpfewLNd4pfMLDRNA8iur2qfpg0KOI\r\nrkaQ0vhysaZRUSeCZJECXlU0vreTwMrxJR51L4XwPhIW47HSohJmpBdUOGH0\r\nuevKOV0Tql9pjfgPSLxgW4FkQHCOenEcUsGrfBngmCe/0Obuif0ndSiDpK3t\r\n3Q39wnhNjtk+5aG3h4pdxB1zhESiYr6xkSC5rm8+9/ObGmq8A2GEVNuFXExX\r\nBhm0hZq3rUn1I6QyJpWYWakqJTuASit3W9I=\r\n=GXNg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeRCOhbGAgB833fmlOPXM2f2fxVSZIfxwAHycXQ6rpMQIhAIxeL8yyUndJ1Yfg6s1BwMeoVMNXDfaRgOmL26Nk7VE1"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-9-2022_1646787142826_0.8199616023718375"},"_hasShrinkwrap":false},"1.20.0-beta-1646791472000":{"name":"playwright","version":"1.20.0-beta-1646791472000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1646791472000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"503dc782b604dbc58a409e41950cd233bce54ccb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1646791472000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-QmZXQVRcPJo06aJP51yNfRjtGKUrUglnLNYqF50Fn0PFmChNfFLvKhjiYp07DQDoSDAN41oG2qeTQPxapvCnew==","shasum":"09efbfc4baac85d77fecf1db04eaa24c880cabf2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1646791472000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKBNmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZRxAAlcZcIVT0zxr4DpHNZM7fNVCxiZJG1aJX8tdjmjb0K8Rn20hO\r\naChrMzWcaG6YqWB0V9DNbPfVOkH7iIwlSL+tHPrGMcClhFqckBksFI0VoYud\r\nXD67spLbFKU6vh4MgKcTfyI8JMcZ/3l1eVEBExRekW5SKF22qfAv8QMLFu1M\r\nJatxbBBwBkFHfKYpNnKUwcXvKwZwqqByMOb4FxTzvZP54UfGaLamTTEXQo/1\r\n+GOOQUB0hH1zjG3oLfbSgx2PLr+PZVdOsZe9AdsGTASSod7fz1L9jStUvj8l\r\nauBh+tIE4ZU9rEhO1fG1QxQVQP9LJ1mT486Q+kkZZbVXa7AVsGI1cXVQkLua\r\nRbE3KQwzJhkQ0EKO4LGvwISmDXXKfeQ1N8yRmE3iZHKK8U6cf4x1AqORXDlP\r\nNftBotle9PsbKQJ70Sf3tGPbOBD81JgDcGoMUHWHvVDjEE9CF0BiKT9UmXP3\r\nQ4OIjE5xijPynjdqraKIpaap5hU3YJrekRIpj6RBn5zOlqiwptG0rlTxVdcf\r\n+c6C0xhMpDfPFWEyowVcNE3R5u6E48pOni/KRGnzQ5xpZCc2NSqJNr67ubtN\r\nskNVvzfdmPCZGadabEGvAxPxmz/tI5K6PGxjeelc6fUOdWPilpv47CZbXP+a\r\nMmaPb1dmCaPuWt43ZA2sQyyOC+Jq4P+dlrM=\r\n=DETr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmsOk2l0rl5rWxHFRdi6Zuk1lXXcF2gid7SLcxD9Kc5gIhAN5OoK0tfthH/6Tr54TluhaRnTSXJ18Qnyr6860UZvNB"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1646791472000_1646793574065_0.6996763247678157"},"_hasShrinkwrap":false},"1.20.0-beta-1646855573000":{"name":"playwright","version":"1.20.0-beta-1646855573000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1646855573000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2531c590bc26571d1d2e635296dc4154aa9d7382","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1646855573000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-5LnRW2MODDxPS5xg0pWEIChhJz2v1SIgwTsPGAOEakUJ8dJA33hHD3jv6A5UXGxBhds81DtH8n8UFsoyYBNP/Q==","shasum":"eeb62bd0964cb2e32cfbce22a8a0f1bcb9ef783c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1646855573000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKQYYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeTA//QBavkTo+mUqRWdaixvsDjBnFbpexEpnOI3uMXyk7JGP1Ix3X\r\nE8Hn9fDuu5mNz+hfqmMENfHo+yOBncXAj/IJXqEvOGFlYvNwZffJZU0u4aal\r\nLyoKLnFRt7f9ube0jYlewOz54E2DVkR33hNZKSiau7G/Lb6JO7ui0N9Ju8Ef\r\nFJMuklx59EJ/qg471kK747nEjZD4Vol/cTV7OdCawiu7czotJb2eg7MY9IRT\r\nXSz9T1um29vq4/8tDHLsDE6J4ikjve/h9tq6sEVNW9HWGtQpG1rfKVBH93Zn\r\nNDFCQiD2lCtBc+oQJzI9+eHqNEmP3gioZLDwRdjTqyOzM/qyzl1jk3aXwwgQ\r\nDUaMZD3drWaebuK2ez8XWryvmL4ZfnJhwXphw/Y4qXz13smTMsMOg1mzOJgw\r\noFbJxmSI1GokVlfSujikZV5+EDITEuan8KfNnhDoQz5Qjfur5Rq2rmEMRHEa\r\nn9i2rONYVrGnCwc/2SVqFhmsc0dCBJbrE36MgtIULCsjgg7aPPiJghX2F+CT\r\nIMoRSYNsyCgFUFmc4DOuOhK2PPFeHLTAZ8RSGSlVxrba4+5WfYxcEIrTbN2K\r\nVaraLSaMZ8AIDZylXSN0SjaPwGhsDZ38lQJBWE0vrS2FDaiZD4TC4bIxAGlR\r\n/P4oslQ8o2fDH907WCnjv3+qDo958SZx8is=\r\n=Vdfv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBx2AC7kQqALL4W5Nd7XXxht7rzb/p0e6ue3jOQrXRFAIhANbLSnB7EwjO/pH3Xjw9h8KM1YH18HBaOViFPzf/TiP3"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1646855573000_1646855704101_0.7161848413198113"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-10-2022":{"name":"playwright","version":"1.21.0-alpha-mar-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d49843edaa9a0a9569b2855b875d2390e2562420","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-10-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-hhlo7GYuA8KcxX9rxPKv15P5fv3F5z7CmqRWMYfXDlckb6B7SEHy9VV2SQG0PmndcD6aWHINMg9uhrCjee/irQ==","shasum":"aaf7d45eb1cc5917c14a29e33359d36a796b34e9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-10-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKUTZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquAg/+KJLqxsks40S/WftYAnfCGM+TIHLxXhJp/aIU9Lr5Z1E/igY1\r\nw1AAPSVflvqAOcfh8EglhymqmmGT+U1pp4jl+APfa2sexQHjzMgBZ90qzLcu\r\nlr8x2BWev3Q3vj1JmAL9jz/og1WlF9xS7Qd3FfhVSB1WJ+Mbd2JFvAV5KYhm\r\neoEk2ftzrbeuy1VIeAl3jJWJhkV0A8gYAZhOEhtL1R7WDURhAsbqTNe7gOVB\r\nHkvVJxLBFyis90Hz7QWk92nMG/Qkt6SroWMT/KOdg73Itr/mMWQihdSPSGOe\r\n+iBuoK3VKVMNr666nRIfD5Xdt2Wl9DIeKwugcuIp6jWdYycTD05roLn/GuMH\r\n21+vQaFBZiDgdgWSO0C/gtpSylvSQjANVH8Ra/RMwtf6xPjL1+1DD91fwlo7\r\nylQt4Ism3aJ5iwCPYLvAkJk9hSz3YKjDAai38AcqGPqrOlnOTeeeILJXkdKm\r\nJzFg4xqzOiY0cfEj7clk1kmub3b2WCiO/BgQiX/tRm/aIK/suhepPFxvHA1z\r\ncaiUeASr5yg20bP1/uyqOCnOFnwLvf7HLXFMNjlqhTGhofBk91PSl/3nvFTo\r\n9gNedzte/4Vpk9hhufvKE/nTHO8I2GZzFs2qQ4EUE4X75GUfqs4KwIi9bUwU\r\nug3Ua4QwkI7NXD56X/tktpZYO8Ky0CN2HP0=\r\n=BxgX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeorf+YCr0gRyK2DKjhoY5rYJzi+wFvl9GemPX/WTq4AIgXT8Ey/mIgxUlDEX93ym+2mHs+B+FZ8Q5JpbUlLS90Cs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-10-2022_1646871769287_0.4000253070827642"},"_hasShrinkwrap":false},"1.20.0-beta-1646938304000":{"name":"playwright","version":"1.20.0-beta-1646938304000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1646938304000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b72860959203fe2213b167130951d96363595202","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1646938304000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-SfAZOBLGCtzJMR9gyScDXBkNmA/R6I463am/wYyM79nV76OJ6IdDkWE+L+KG8Q6GoJXHFcv0+cr+jMPkaCVsUw==","shasum":"001d85569ebf4a9d06dc5488cf16626ef233cb67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1646938304000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKkoiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9mQ/+IdVeNfaWI6jOlNpIT9jJAe9962JyyHXvjtQnbsVYDb3zi9n/\r\nXlDhlwuz1pKTZWow1fGuzRR2jxOuf9Rt2KfGmos1Rv4ryI/V3/rM/0tWUOmW\r\nh6TrIQqFQcZDmSnfwls658XovQzD5kDD6ldku1CLY14OBs6IJgsgcOqOPgoL\r\nkmiTTSUzF8seQFXs9Gp3Zo6q1RD1xYFfvyZkbWla5YEi0Mn78YkTQomWpRVR\r\n5zBp7BUDyFq7kwefEq4AQ1CcuBTnFTpoFwQqR8BDts4ALYuGUJuGCElcrkOZ\r\nxCLKmVWpBEjR0oquzQdyYKHPkRKoVwF6S42NK/gOOAMekTWujFsAukQOWEX+\r\nvs3zrLwEvz3JJr/CYN29bt5sZ4Ab52pUWeHd473UfVOpz3l1PDLlWJl3E7Px\r\nFBEcIfori9Qabj+GiV00tRpFVaCJP2/8bqiTZsx2OYZ9JmPS866CwwA9R6Mm\r\npLpJ3j46apLMJbX5Krt5P5HiEoGAP5qpkiNnC+hvVcgAI/8WPtpDa13D1nNv\r\nKx+D8nNbIPD843MGKeN2q5sOltG7aafJYMBCCOwhmXqRtgeRIfZmVkCt3/ff\r\nAMx0wddhICkCrGewjgSLXsEOkKMtQkJPWylXBHSiD0OZFLqekPweg5idSys+\r\njibt026McKCBG8sEagkinrXvK2aJmTtTr+c=\r\n=z8Tx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDytoGau1jn2FI3zhEmpndYynfOncYx6tAovrYlF5wzlwIgUzEMTfKcUulSnAWRpVpauiXnYDAF4POPYSQrlYORa+o="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1646938304000_1646938658589_0.9961980702109658"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-11-2022":{"name":"playwright","version":"1.21.0-alpha-mar-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"10bf5f3e493d25a72eda0f530590bafbab46edc5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-11-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-OgY4VNT/oROCbGE6zDThG6H4VDiLwXuHUKrrVrYnmAzp0Wl9hN1Ehoke9QMv79xEP5MxV8XRxxRr9WLLuN2ZMg==","shasum":"88edf7055017a6691b5ab17847956425b3e54f99","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-11-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKuDhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/OBAAiIf2aR9av+oDb4jliQ0VoAZyAIjh4Vvl1FJJPMqKQjE50eQP\r\nO6kjIEC5kBNGnx6xSofMrXbCm9svTqopnKOlq8iq0A3odLo1ZQpywEqjShXF\r\n50x0NsyuZFEYlZIP+i8KO7MFVjv6s3EVV3Zb+IUxvMnFvzTr8rze2mvO+RFl\r\nDT7DAjU9BL/GEYksU0TZm4izjHqXrxFH4l7FTOLP3+9xYWSjLf1ebT2viz1p\r\nRFaoFM2gLWpV4Jg4AgnQ0081Ic7t01fdCJFjEdTs9j7DTq4PpGE9nkGeN0yt\r\n5vrFOUyVAPuGKzMJq1mxj5wldADtE3lLmZWIWluo2I/o4z4pC8xDsp5zXJqr\r\nF1SSBI8e4GnvHniEXDrVPS2EwQdjm9KW4ACOrqmY2c2fviJaBGmc89vELluQ\r\nHJLee1Ds66QBtbbZHMgv/vw2GpQiY215P6aDEBkHXOEow1L2EiMpZ198pWaw\r\nK587x3iZkl/QHok/V0pJ2eQ3a3IOih4E3VDb2XCzs5ZW4VVODtPQn9rx7WU+\r\n39tXxxcXHtdLgLgJb5VOKudGu3u6NJpU00R9s3CC3tAKCGkw4wCnkyfZIe3Z\r\njCeN4VX3Xul5i+Pic1rxq+WPaEpQLcWH1ZrYrYO55c3Ocdf0tI/c0yXt9ucJ\r\nEQsRcfPlZcDyEQtw2bmJjRROPAeyTd0lQUU=\r\n=bl2a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvuKoyofxzQFC6ttLLBrXPRXlnkRFS/UclpN3lzSjkJgIhAMn+kIK53CINwYaI2uWT0XzJlYc06usHHN+FfSWP/tQb"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-11-2022_1646977249147_0.25351024083789686"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-12-2022":{"name":"playwright","version":"1.21.0-alpha-mar-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e9fa098bf3ddeaf89be43530dc24ffa3f7c26cd4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-12-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-kOcw/oqQmcrL3ObdvgVcllYWhkRJSA+BkJVLb066dPgMw1p36fLaKKU68TCPnUmca3fT3UkoN1gRlWp9ZIyf+A==","shasum":"090227c2c61594f97013b42c742ed0c1446dfcc7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-12-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiK+eIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopeQ//Vbx+JLmfCmRuSdgOhBFN5VFUf/Qh8rjUtwY6HXIfBZqQDwul\r\nFtLgC0v2K5U1p873csv3KKdAbgxXMI4dQD+M0xPbV1QS8nL8Y/rtQV4JHNKG\r\nD3DlLhKOGVwkDc8rdrP6IVeFjDmMZKOpnjXVL5oIm7drziB46P6f4ssNFMMA\r\nV9/9hGCKVqEUNaFQ4cpL9kksaudaLP+HQA379jDipMDSoUpgZbg3h5owU5Tf\r\nRNoGe1qB7q54ADWB/F+ZKXz22vDrR56BxTWQnNVlg7jMshiD0zJe8CE8vV+y\r\nmYy0GN0Lq389ILDxuJOTbB4AIKObB3UjySiuf0hS++PmiAlZNEF3WCKaGlbA\r\nRCSzFhFIoVJlf1ezjk0IU95HTan40vj1WeOltQ5jSnKKyR8C89S4FZWQ42cG\r\nbcRHzcbmU1AQwwaW1cSzZS0Jcgyiv0APEwZYx3mrD+aozIOXT1Y74Xxe600A\r\nUI27tLK5/vCHhC25zG4Q2cXq5Ps1Y89HuKezJPI7ho+IF1FuG7/Ozx+U3v57\r\nF4/lv/A1sXjrl2wQRLJba83GQHeaRlCgFj6RdNXHI1TTs32BYd0JqHqzV8d3\r\n3QOZRgcMBel1IHYT42wiMkC0JT8hMtnQranHIk/QTYaTZUA1RH777lqDWSf2\r\n6615RweM4guuX0F/EMX6NIQnl0QqtL1Bf1k=\r\n=p1x5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpt73oKzON/0FPYl/6ttk3o1kZ53t3be883ps8atdwawIhAIw+wVW/W4LRvie1lbR7DcKKDAJ1HDDIXoAX/LvNfT3N"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-12-2022_1647044487816_0.9420045300809607"},"_hasShrinkwrap":false},"1.20.0-beta-1647046302000":{"name":"playwright","version":"1.20.0-beta-1647046302000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647046302000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"97bca5c43184f7346c442f1bd1bcd240e6df368a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647046302000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-nP94sQY4N1TI84ZcePjSh6YKiy2xWvcafdlIHfAOmH0S6dtYIHVu9UPhqAzrUSSdZhHvtq+BQyJX8t7CWfLZsg==","shasum":"7d9e06ae26eeb6080cded2ca8d59b540bd74d5a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647046302000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiK+8/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5kw/8CBGcuTYQxG/ROBPCpZV0Yh9/R0OYTvQSvLC1ifiGZr4354lc\r\nPOIALwp+s3wPQmMS4oNMEpSDeAoHhvE5MLL31n+M8B7DPxk1KwI4kRa5c/cQ\r\nyqUlr/a2OSlJJFgweZ5xPGVFKYdKUCfsMFER/CR75vCBF6hIlD92iC1n+Dea\r\nQ54OMl2FVbSrorvha0TNdoe3dFMufzFT4yNcdOazJQa4oWeUWcnYh4r9x3ZY\r\nVsNlSJ+yP8Re0YXCd+noLW29UU8DcfxNvEaE0TbUJLymmhuQPZDHTXeHRtXb\r\nS1iCL2uDF/i3hbdaW32W+941N6xk5XVTSXEtsBuUvWCwGazV9f0ABsIf9BSd\r\nwk+yMf6xiRA9OxKKndxdwN0mKHlsgZeEMoZEKS/aIXiIO0Jkq+AxuH3qJ2Nl\r\nIL6t5Zkxs1vK/UEaLB779SmZ5u/ofZB3xmfr0aWKp5cJ7fHmFqzPNWx4gv8f\r\nKPlpTu8DW4nU05H/AOGURk53l0dDxJdplgWB6t85AhKiwxLaExw2H+WsFZpN\r\nXzOBK39j+Q1HZDGFitby2V4DAhC3MirOOou0BKUJqOjB/4UJZH8cZyb5Lx2w\r\nog20CaiVqBOHgYK71uVgfZEohxxIXrOpCxFdZQbl8G4jk1W/Gi5QJ3bmphsA\r\nC1j1awOPDaZ47I2cXSbYQj/KrA7GIRV+DVg=\r\n=nWQd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0DOypjCR6vu6JpqMZFyRiPl65/K5EiJTmvp+jFrJJHgIgL6nud1pEuescE5Gunnr/5b5aM4gtAVIIbbiIAt3B1tY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647046302000_1647046463191_0.47975640624186444"},"_hasShrinkwrap":false},"1.20.0-beta-1647046964000":{"name":"playwright","version":"1.20.0-beta-1647046964000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647046964000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4897967780d6c784912fec919cdb63830263797e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647046964000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-zaGB0s8FNy7HQb1FUdviPGV3AL3YhIXrHU9dVmWs5oWH2bQscnQx5VJ9W2ftuPTyo99TbOTDC+/nAfuHamRBKA==","shasum":"f577efeb309cdd6db038bb841e86c723a3d030bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647046964000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiK/HiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgjA//ZZQLSnMA/pRSEo/0HCz3aZdSpPWA7iKkBfm4WL+MobTK42dn\r\nYD+dlOhN6PhMqub5ep5pPm5kIc7PxcCXR8l8GkRj1A8boPBLfn3Gq0iIkEUH\r\nLFJXFR8LO5UOesH5s4fHbQXOgSj1o4OkxsTur2pKC2TuP66BYEZwmCiAZx3Z\r\nJtnAXkdDNR1TcX+zoDNkXpUIVJlgCZdk6GjaY8SXXDHhU+3Of3FNb+F1hAtp\r\nfe7AzdoQRxgXRL7NSf2ixxDT6wJtQs4zrTYYmuC2LbN1zQkSoOGBVgZ0klD7\r\nZo+FKESY1AW2e+FBU41bQUxrQCmRsIwORD6jRRgej4A1mb21CXYmTaSAXEMw\r\nWDiCm+MWZbbkfF5kKOfLiegm0i+1dPZM0k7r2+go7417/0G2QKa/8sTkcHgP\r\nHkiuAY5PnqTmOQoIUOFqECiwNNZM8LRufOeTr9rTjvjzOpyrB8dxPsnP1qib\r\nEXFY86RE0vBCfMlhkc9fQ5rjd74T50iA/h/jM17Qr3H+SZe5pmOK4fYMGK3i\r\n/VwBSqvOiGeXiLunwmh1s0zjYdZbHEbx+44zx/EyvhNug0o5vrkqhUYnFCxo\r\nqCbci8xp0I3WW3kEYwM54JJCxqYT7eJQifkVZXijul8A+eILH+6bd002ZWwz\r\nFfpYZIua2GQ8zQjIVYnBs7aAblXqYPDUN6c=\r\n=m/UW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB4fQ9RNy2gV6SNVRmRp8sD/gPWOnULxgzLUIB/jAYpzAiBM+9mOU2luuWgsGKDld5F1EoKXv6bF99/iPr74Ov7E6w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647046964000_1647047138261_0.05879394326899123"},"_hasShrinkwrap":false},"1.20.0-beta-1647057403000":{"name":"playwright","version":"1.20.0-beta-1647057403000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647057403000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cf1a60bce8ae7be24ea1434daa369a27211223d9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647057403000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-7VMp/JphD4khtKaJeSaTn3Exoz0tgJ4ZAUc3YRn2h620j9qzJzPJXxo673xFkLu90ZA0jIm2jyUhd3r88sJiuw==","shasum":"de8940fc032c8aed93e7d749c629469b23ccf5af","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647057403000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLBqDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpV/g//fLolTLTsQLSw1AtTQg2ANuE2cqlLWW365ugrww3wkjdS/HEv\r\n4X4nfJQrVFOzR+C9DijXTtZ8uOxJs6f0b7hhOcgjGkxKxOdNs34TpuVCLLrS\r\n8UsK0DDoNgSasMls/H1VxhcW4921MQCCo9L9BjpEsBY+JWdrE1IvsNjzANFX\r\ni67lRsZh8jkwyDpvHCAJ507czQdCDP67z36e5wb6yxkeCV+2xUaQCsn0Stiy\r\nufSo4ZRZPsxaLldn+0+FXHZBybC7vZqyN3bAGalQ4ppAXcYAF1yqs24pOzCd\r\n62g0XKgkRm7To798vIdgcXBxRyzyhM8FX9svL7lizEF2EspBkpewBT9iWXCE\r\nD/eJQjYC44ZxHwPz9uSJP0laDF62U6OYJcyrJOes1jOzYrpwla0RCec77tpM\r\nO1ely2r+Ml+sEHrVlu8QfPWWlYDHEKSezoLaGNM++zZ3xxpzg7UA4IFhTdTP\r\nAMa0UBjbmut9Wig9Ucu9CuOoEsmCobW8AoJLhFwyUFw5NzKcTP1o2MgiWVOz\r\nIrbINb/Rw2Z+QDoe0+iPCHbTE9HZevt3RqjsqtJNP+9UpQXrtwfV7ZArkYke\r\nX3ksa4mv2K10tmJi50FmW5Kc9nQU4CIQVtwBdUTC0BYZR6MnDCpuUyFVIx4T\r\nGrL02zhY+3Lfttuve5iYXw+I6Wyl1vusEW0=\r\n=m96A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDlBMas3aPx15LNPtWMURWvxv53BAIgv/pshDFvyRQTnAiAB6VnrJC0+Q7RDQ+zVuy1ZunftPLlNRApEqRYSOg5WeQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647057403000_1647057539496_0.05222266865908409"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-13-2022":{"name":"playwright","version":"1.21.0-alpha-mar-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4937.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4937.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"25c0369eaf4669e30546a645e1042ebc3e8f6664","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-13-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-lrgJPHW/PO8pdrYo9H/PE4gjo0A07LeersPSiwu9QO/Cg7EpoNJVBlicsR3nrj+I31OR9RCCWfyaGW7jExy2dw==","shasum":"3172ef4bbec43ac3d00b3f04d7cb64f5640283e2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-13-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLTk0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsRw//ehRHOaay4T/6tsziXkoeRGsg+NePU+5N2Tt8+dF9vscERGGE\r\nwBWl0p9BM1ofV0X0OrPRF9xaR02UWHaSgHNCYPLMAG35E6sjsWq7aK66m/XW\r\nW4G/CGIfID8UOyLKuwcWclJRB76JsygjXCKiKyprvbeMta9trHwTG1elqeU0\r\ndkbD+vs6dxpmxKh2tsBK1zfb1HxUniHTHLkBMqGmhZUQFwpqf1GjZzjlF+bX\r\nRAnx20ZinE5jjeBseH0eTe2WUob7igFNKADjNX60td1MQkW/z63jHOdZ9IkW\r\nG34B37JMKVSSYufwte7Dl7JhKqn7853FHXMJuyvcsBU1rPzIEGzEHvlZK/CX\r\nL9j7iEObU35cAiEAhw8AQZSaNMGxXVCpsHqHT04QVwmzBId4uv2BtNc/Gh7o\r\nNGz71ArI9DNP2l5IG22bwHliRStGRjb2oNGLAgnf0dQVD9ltDFFkH6ewznFx\r\n44YqLjAcxSLBxAV2OBKRT3uhcmF9IV4/48KhcP1d4dyNrssHULoVuEKcTAUf\r\nUaGh13kOCzyd6M0yV8PFf/0JpzEy+TjIpZ+6qE/lzQQJJJrdQjYYdvCyNNHp\r\nytw0Ly233aNXIZlBMrsSU7nIzohZr3tQnSjNnUWpsuNylHq6rpSrMC+00lX/\r\nA1CPwGpgHL/Bpr01XQHLInlW3YBOZ87D0z0=\r\n=33pl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDU5Zw3DyiR6GP9tTbGtkVR8oz6RG6d7kt1yVfFV16zdAiA+b9DXhnNm5NEvwD4hAXVAMy1MPTgZNlFGgOb3EKj/LA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-13-2022_1647130931799_0.05126357410280202"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-14-2022":{"name":"playwright","version":"1.21.0-alpha-mar-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4937.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4937.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"25c0369eaf4669e30546a645e1042ebc3e8f6664","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-14-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-lplxTRzw+Y52mPeqVMM2GdnccB5YDes9mJ9Ruco+qxTJBAWqAqHZfmxTnhWHXt44R95+lvSGOdJOTXoC4FiemQ==","shasum":"4e23696747357c3ec39daf05562e75f34f9ca09f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-14-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiLov6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsQg/+Pb1ti/YPfDrIN52jK09E0paXlegyRDwvsf8e9hyRNYF6ltLZ\r\nwnKIeFXbuioq3dvjv+5tthrm7tLpIg1ivSzottRe5vulRJtq46PO9syevKcl\r\nC3BGAnCIaJTkdsAQa06hyIGGREcFHINtTFn9NMkApSthXRR/frLIv4a5utyE\r\nNzMEgt9QsL41I0CakF1bfL6Yx9PbZ1CL29M0ZY9dS+Xv21shriEr4+LCy1aU\r\ni+wqSR3uEAP5IFQ5ztMfhYhfvUZMB/9NMYE3vdXh3p1jYNtS8s7uaFHy83Yv\r\n3FJwaYSg3OUQbECr073BgdJgcW8hBrVVI/UtnFo1HOdWN9AMCEBewUG921Pq\r\n6UFBWAgF76LtrNIzyBnmMZF1xqFkkRovAmsQ1u2egK644YiChsKMMYBKegWE\r\nf+rQag6Vbm35B+uLLrlYBa9ohXPsUsLJhONrJY0lUP9MXOeybDI9ejlhLcuV\r\nPeIr/0NaNAR4pzWMHo736vmFRIY2jjHSJGnw52iBkLv9uWoWRPBHLDvYcqBz\r\n6vE+twASZJ5L2ePp3/PXD1Em4fsgGv5tMFNcRdkWMOY/KmxPswcjX9Ae/zc4\r\n6TQ9ubX8rZZ2fhWrhk205r35y7YQ7DrYeYKnsLIHU+Z7VAJVq+N9ig7TUUFF\r\nBG4UBNIhxli5O6A227Ct8V7qztJOHv8DgQE=\r\n=n3wF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2QmaNRi9ClerC4uUPWZvk1ZJ/84AF3V7VLGbA4Z5qAgIhAMu0TDvFQRavdV6thn085XFsvsRuD7GkD+K343OWT0jx"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-14-2022_1647217657998_0.3912425403362565"},"_hasShrinkwrap":false},"1.20.0-beta-1647281535000":{"name":"playwright","version":"1.20.0-beta-1647281535000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647281535000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f9ea3d53bcdbdabc306265ed91a0458551a87afc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647281535000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-PZYBFa/o29S7y84Oop03BSIeinoLt9oD0aEpjhZ27F+uqmdyBhOe1dZu6/2c2M3X+5Of9Ggxn2UW7azoVRTijw==","shasum":"b11075d7fd31928556fe1fe49afb9130f7fed804","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647281535000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL4YVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFLw/9HpJwAG3a81BEmjyISQXcE0qvaBMuo3hKQf1sYJXeLrAqTGgR\r\n21nPyxHekxRWxg6NDmm8F1F6mRLzLAiVfgKs2YkKEMqgDwKl+0ZNdq51avQZ\r\n/PggAAmM98C/okY+ZrEL8pLA4ETmJJD32njTM9Gf6sQ1MI3popRfR041WU9t\r\nd796URkPSuYJWJfwVElGwhKo3x1WxPbUo0CkQLFulS0TBeAI8OXUq55HJsMU\r\nvA5bhKzZbn5UadUslmv5HsIfrX++1noEpU2cRhyYZG/jesaksaGb2V/avnrm\r\nhFh8THydA6t+GYahrodGbOuZN2MqoRHmMGVWRmPiaPscDG2l4dG2Y9Bc9IZe\r\nIJcQGimTXkHPi/dIa7Yzq5uZ3+3ATMYIAwvzVFpnd9KIqDyf9qLSSWlOQY3t\r\nfuDkEO8DtKqzp8wfTRLgpl4zny2bdBYFNqCb3uAW9jW74EnhvoZFzAU12z2W\r\nDh40NwyP1mgEeFpEMIx+EVnevQkc/xfN2ehC/uMHQZ5J0u//u2nfy3j7M9Xh\r\nWZO1v5t6h4u4DfKp+0PX4+dqdq+NpLS98UBSPN1No8gQpZqOW64khU5Fk3Kc\r\nwDeSURGMU2OcMFIMtEyB+IryUSn9rOL6KUE9hTma6I7i6TIku//4XGBFYSdp\r\nItWfwEPygzO5oBHiQ3TJel9IE/1lOJk0bbo=\r\n=taNm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXdS8SONzIdltzsDh6kIUuD32eVy2JNhicNEvfWxIp5gIhAKc957E9thB4bOSoqmz8zai4h3sIG4KZL87tVx/QNrYu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647281535000_1647281685715_0.2144588695497962"},"_hasShrinkwrap":false},"1.20.0-beta-1647281549000":{"name":"playwright","version":"1.20.0-beta-1647281549000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647281549000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eab96de6e4dc78d925153fd630414d31832db1ef","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647281549000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-2xyGkbo5+tyKuilKgn4h0/ne/jTphKr8cD1RF/Y8/LHV56QttQpmWQze51b1lExgqOM/bnN0xg+uBBsKRgthKQ==","shasum":"19feca332b406774352245efbcc503bee72ae9a1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647281549000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL4YmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpevw//aa+Glw3prMiDsjKobBmPPIviVeF4Owc7QI13XJ5ClpEMXpoW\r\n3ymU2IIBGtFnTsb0FAGBp88fYJFTJpwQMrfFyKdG3f/7HZ65Coj5fBGex/F/\r\nWaiN5455T9BCMYeOW0ogFbTHo0LzreSRvBxPF/NC29jzCrZQZo1dbVen7oYX\r\ntp4I8PlpApauefsHMZ14wIKgOkeVA6rcDkqUi5mJBQ685QRbjmbpaKg15D/h\r\nAAKU7kHbAMzZSZh1tUCjbjGPRSyLb//zvbcnUDe0+Goi/SThLMQGRrJWKitb\r\n7b5L1Fke9ID31L+iUCziRoFqi8akjEpJSc5asDuNKZKoGPzC1fMVDMRaQ2M/\r\neg/v3LAXs+KK453ONMwy8pokY6tZEZi/pO/0FSPRUtRKuU3eHW5cd0CBMHmj\r\nx4XbIHSIfvlO8U4MvADBrt1duJ3GK+xHLeMvpIi2UcI2nvnyT6259+AfgbYb\r\nM+JdMTENrAC63p9q7UIckU8PCmzGNY5OwNaEdAYtX3iGc2QVsPsGlaQ1rVnd\r\nTM8pufip4lP/Zjzq/SBdXMULEydcof0T4F757RLwlRhsPTRNA1/Z05Wp/6Az\r\nuCWbqFrOlM4uwNhEXUfSdP5ulLRN5wP2y4iwM1o6t+ZSEwcFtrdbPaab4Tm4\r\nDrvb1BROLZgV03L1DpxuIiFRH9V4LyI5mxU=\r\n=nRi0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIASgGRNGSrXkUK5U9a89Pw1iTo2lk4X2fm3po2ZaflyhAiAEYLeq0uJhrclK/QpAIv5q5Bj3Bhs9iZPSoKXGYIe70g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647281549000_1647281702368_0.4921065953599837"},"_hasShrinkwrap":false},"1.20.0-beta-1647289765000":{"name":"playwright","version":"1.20.0-beta-1647289765000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647289765000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"16c4ae08317b0338d5bb1b62d57b140294b7996a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647289765000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Hep/dR0OaWbWHgaBpaG+ziW9YIRnVUljq/TXzg5srtfHh/LQ7Ejf6KdM/Ra8F8SBvDEoBl8r4FZOTZhCYVuvfQ==","shasum":"df567edaebae5196101cb5c46f1745552eff216c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647289765000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL6YyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoILw//TF5bprTPnefLixXGNnQVcP1369xcTHDy6RWqpP3zPjPjfTO8\r\nWgvJ8N7v8cvl0nv6CFYrtVD9q30CHAPLGlCqvH+z/140Y9GdTxlT8ycWINKw\r\nTzYzHd+QxdrRVRezRxhCUobf7Oq2mrJStvJhlv85YY5vBRvCiZA0DFZAv7qU\r\nnKqZxTXkXhLs/Tr6jgDcpGgNrPyUn3200dFSHtqNLa8LFW+UhkTciZeDWk3h\r\nVKPB9H9+UC+KnFG1qjCalnIIo31WmG5/Dd4yT6PrIreRdZVhA2dUib7NHF3d\r\naVx4SzzJlW5imkB6mpbi9uVE+j4G+seqMQN7Xk8GnOiBGdtozygM0VjhsJgU\r\nsBK//bH3u1WWz5WiU5kUOo1AK+YnaX8gBfQd//4AVTdAa8M4PcEify4ZD2jt\r\n2QAa6RSAs7HG/p2bWs0jvbgVOQoDqFVgDSZ67nkFB4oX3eSlKQvxB1YDhCBX\r\nKe5UyJYGzi2VpmrRU4WNW5DecnXeNOKW8/BevqPLaofpwgSIHyhMd+VmevJG\r\nmRIjALbRaz71o0GDV0qp149hR45p7APmzLjjpN9NPFI6nnQOjXTyrh2w1Uht\r\nwY0AHYNElful5CZa4X46ebsRThoEQRr/yUij8QY8Y1zpEylWfoLwJXWj3VQu\r\nYq/pDOYQkUu6iKrbT/0ajvCr71turfceCnY=\r\n=V7IF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVWv//zfEcAOdEdYWgQRJ1hNjhqPJq1dFHy/opbhwynAIhAJrlIfJm0i1GDGOrcgiJKSqxx1U7SZyttY2TF2czCtGw"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647289765000_1647289905968_0.18854321254499617"},"_hasShrinkwrap":false},"1.20.0":{"name":"playwright","version":"1.20.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0"},"types":"./index.d.ts","gitHead":"16c4ae08317b0338d5bb1b62d57b140294b7996a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-YcFXhXttk9yvpc8PMbfvts6KEopXjxdBh47BdOiA7xhjF/gkXeSM0Hs9CSdbL9mp2xtlB5xqE7+D+F2soQOjbA==","shasum":"f80b131c0146afc4645fcd5cfcc2ca11895ba58a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0.tgz","fileCount":9,"unpackedSize":24008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL8lQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrk+A/+Iy18qiuS1XFHY3HSkRgjiKl7WTS8vV/jobxWwjBgpyfbMEYx\r\nupugHckr0EySOVeBWHpL/Lb4/nt7O4h8J4BNy1oNRoxigTcAi4W2Ymz0JP2s\r\nH1ZCb2pXugQiQSFOVKDSHiYQ2KIyFn9xF41+OCJuQ6XGRCs8oVP98cWPK7zG\r\nZkbKbUBQaJ3eeFkJGfdm4dkxUMEzRbV+LKBWQCkxYI67yWugoEQ2CFIRyEV+\r\nwkriOTQZ4FDY9TR6C6sDx2H0x/Oi1kmaa7W95sPinLDqgcVi1xXcuBGROi7Z\r\niSudXc3yvp6wtj3Nn/V2mG/5HcEmL0BF4H813WRnqgKD5/nZuKdoHXPTtIH5\r\n2Tbh8gAT3AScAbwQ02vwEsAd6uEv1nuFXLVUOd+0eUWo1hm/uMZV1OEqadxt\r\nrNqF/+1jmkEzsKoUTDCGdCfTd9l+zM2FR57S2/yovRdILQtytpmzQONac2UM\r\nJ/txErZNGRoBcz7FsHVG2Nn41ojMAgai8MOs6brijLbx6VSu6HNfu3lVxioH\r\nNgLshol2G+cp1JhwKEkkfpW5+XaVSP605CLnMVK+ydkiZPVhKqZ1J6aFUg+g\r\nb87wHrxwBDzTLvCLNvRbHR4xYCqSACIUdYqSIjU1gN6pVPbJptHEdSEZE33X\r\npSb8H/imaXKjziwuxPOaaKB45FLNRZKSMEY=\r\n=6kP5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGEVtzjd77KG+OyXEVitm2/1Dyl91HfUBLwF+rcAy0TcAiBqN7U+lOBG9u/6UYw8WYhb2tjHvqgCdNurOrQXsUvv5w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0_1647298895944_0.6067649866593077"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-15-2022":{"name":"playwright","version":"1.21.0-alpha-mar-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4937.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4937.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e3bd7ce1193c8b3b6b4dfb73916217c02e70299c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-15-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-wGqP8L4LxPBh43zzxUrMok85/blQJ8qT4b0YLtcepftHydBpRz32ZGE8XJViNr4Vmuu7wCfwg4+tORQliwBQhg==","shasum":"e358218113d1f6d37890e670918e05dbadd580ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-15-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL94IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1UQ//StbHecNE7Bu8xuVX1KeU4IB7R2TZD3Id/OLCgTpgwLXRdXNP\r\nB2mpOrbq55t1gsJsCidZQwIVLApCTnpCPQAZ/90s4a069CEcwt5GXOkxOrDf\r\nPOIPBbmgyE4SXhLZpxUG11nQqcVEx6a5d/bQZLSMRi/56krqXYmLDtr3I65W\r\nDTwYtwLEybM2U9Hq/nx5SqH+XXSKVOhCZqIQkhBAIxVMUQSgriPmd8MAC6Xz\r\ny0T6SyXvIcJPs9N1iUjvM6/fwIKrRrZprwXtf+cfYdcusJlm9RpuIbLMwVAr\r\nRzItZDG12JCSObSgnP6piGfUAWRvUpDyJ85R8ko83yeYGfTAPaOlWjazrZN/\r\nY8zexFzQHvZQ4aoyVRTTPO0CxJTZcD1JtQEZR/dFXHn26Y/kgKH5Ju2lHqml\r\nQwMYK87vA8gGAsiMVLj2dVXjhzAMho2N9pyyM9pvB3pCFe/SyP/PTp0vHIpY\r\n60SohOXCTnOEIsxcIpsX7O5AHxlZBsDb/M8SxENZT+s2k8Fcnutq7hO1iv/d\r\nTccd8a2cFSxKM9wVgVuLJ5dFfEmo9kPCki6+Vx9z+Rh640W/OmdBNh80Zj4s\r\n0gpPesSPH3KHoT/n510tUhRgFHhKnQHBzIznFs86HQYWPzuDCuvDWSO+AS/I\r\n226bGfI6aBbATXIhX3SzDSHPTy2rJVK1/5k=\r\n=tkaE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrJG8/UV5rB05kaRGIRtCURcy7xwl7KZWDxQGG4s701AIgMShIOSDOSkUr3dhHKI9tNe/Kah8+rqsgNIiB9rXOaeI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-15-2022_1647304200055_0.7799827148630325"},"_hasShrinkwrap":false},"1.20.0-beta-1647369548000":{"name":"playwright","version":"1.20.0-beta-1647369548000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647369548000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cd07b45809f4fdce543e26f119baf68cfc7a025c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647369548000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-PaWDtppicjw6JlQShCsb4c1BJQvKTtrVmbSxKPVFDHNHR2/arluUGTw7wWclqAXa7QJWSrLCZCW/Vi5jZQkWFA==","shasum":"5f32e3a53978888d97acc732f22b33709beb5515","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647369548000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMN3fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoeNQ/+N2xesaoo1WZG04tIy+AqWoKlCeU5PRK3QJ/b26V0I7YzwElD\r\nKiLOE6q9SXeZfKMoWEqoTmhpjF1Z1GU+jGRYl5ZjNIGRk4q4/NwTAYYYHTgU\r\nGYj68O8dzAIGqVzIIex0FPIWzbO3h3WHfs+dPYFIkf5DaEmgLRGkJReSB2Ir\r\n9HSnI/8FQ9dznKQ1/899/Y5ja3xZZ9BGEN6QwY/jzgrEKAD84Au5ufieWtOg\r\nBLjUCADdlaYsMBh3q3OZ8Mtk5PPWeFjGGoTngdWMx7veSE/+D/6Cp3pQCH71\r\n4slym2OboZrvGS/e9u6Awxnpys2bTsxyC0vdLZLAMut66D7PvK9bo29PNxeo\r\ndUwjaibXOaWtRm2ZpX+dh/oUvaw/2q7OqtA9BVbV6rR5BnZZ8nO+jUBHCfhb\r\nNFbRZ9fm3UCVi0GYdHqEjC9B28MZMZJleNJCH0YrASUHbNmriaIEabyqIPFp\r\nsDOgQ+CEqXDSrClEqeD8xK3lmKmqcY2+Gn8hH6VDSZNg8PedKNHtIC58I2rA\r\nRT82P3dNHwH0f1Vqqe12pok38VsG2M9KHrtVQbNOKdT1suP9kgojgvQr2nAO\r\nV4cIrJXA2QoxEKkTZgeyAynHdnX9V8uyQc1ccmF74xsn2HqeuWiVaM9BoxLj\r\n4fwvhrd4H/F3lOZ9RT5No+r2L3REsQccDQc=\r\n=Hoxy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFhsaQ+pOCRYRSGvulSXfIiKP0nqLD7zifHYKAXiLM1AiAXNBJMZF7HehU1JbnUbm1dOLS6uVOZQoqK8ExYktOdog=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647369548000_1647369695633_0.4438272178516669"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-16-2022":{"name":"playwright","version":"1.21.0-alpha-mar-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4943.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4943.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1284ab81011c4d1d2664c091efcd7cabbdd6f1cf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-16-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-S+I1NBSAYwBrrgxLhsUq8BUaTUIE1uDZ/VwO3TlVVafcn/fGEzNkxiaFPTZ3nz1bxKkHNmp48Ypwvqqp76meJw==","shasum":"e77408ed595fa4a2d9c644c88f637c9b1b275828","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-16-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMS3NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5HQ//eF29ARj1EJOxcg3mM+vbZWxrwoYoyQpBzsn9wdoQQPDyWGqL\r\nKrg9N62tAQU5Fui7ZrIdBFcEUWgFJRhmWZ+PW/re7s+si8B5cTkfmhpzdwMj\r\nqLpXioRZWQgWR1wtGqP2nzvYe04NOWRuW0Xm4weK8Kjec9md7MdxLpjWsEcA\r\nUcLut1H8gcsYKSf2Yh0ZMtMKTG2v3rV9Uj6lhGEzsE/AhblsjJA1DQUh7Q2C\r\n+ty4SXpmuSmEWNVdhu9kPEIEW1IsAp+7FVMROLWA88ZnUds9RTjaxzWnBglt\r\n1Q2zL880Ikly0pq78lM8RDYRWypKcC6XnP3NkDjhIchDOkF/FQmiC1mS6vZz\r\nowFxGkgfc6yMcsaGIcpBjtT9x9jCGVT19ZtTu9Hvr7cKggSDqR5H8zl/d+mI\r\niTOTl4pFNklEUJO+DH3U6++1belp9jG9HU3N+wyWLpbb5HjTuyCeIWbeqbtp\r\nhoNJ6cWxtLJnUh3aaM4Jsf5sZn8ujHaBVpQU7e/QDRhm3JysswNuzXwMRC5l\r\nXLdyaoEBlBZjpwfl9ikT742chll7daUIBnxCfCj/qQfqi/l7o1Lv8K8F6RPM\r\n0Tp/c+ZHcvxMd0X5f898yfT0GFLroMXjSyDPir2KsHApfgoqgihXuwj9Xeqh\r\nRZYhEH/H9ypgPbh54QcTOXcN+q7aGalhzEA=\r\n=qdcj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHNgBptPFgA+YbzbcHWsqtUbvE03Y4c30bU1HlLvB01bAiAU8ui9nTOj0Dz0B1tgbOHxpjY9O25LX1DPbM0yY7BXAA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-16-2022_1647390157350_0.2173787398486169"},"_hasShrinkwrap":false},"1.20.0-beta-1647390690000":{"name":"playwright","version":"1.20.0-beta-1647390690000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647390690000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3dff476a92ec7fdbfe6427993bfe4229a486d60c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647390690000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-A40NILIZDkUfVuxk/nEz4JwdVBUeBOeqlQDswPDCjtCsCun8Bu2claxDrr0WHRjb20h/3MTZZqTGf6FyPAnchA==","shasum":"48ad84dc72d64cb0f2b844a3ff047b0d7b36a87d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647390690000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMTEeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2qQ//f9R3ilk75jktC8zV/Y91M9IW+Hqg8AgU05ZyrxaqiuwCrHuG\r\nfV06sd6qSxmfPNErKvHpdrdSggLCLcFQf614WcnLN0WZNmCwRabmZvFrg6C3\r\nK8OuHDBblqbavfTyYEU0LshZBHryvLP6eCs4JRn4IveIbzjlMVDde6Ss4v5d\r\ngYyK1J0hY6LzsMkNckZdO1MnJ5iHhsNSgjopYfpJ9/q9lkZGq+A2smTXE7WV\r\nP+fRMWCjNKcKPl+1DE+n4D2bLeFrRFN0ZL3AShuq9mO6hEqIqKoTPhIb48bM\r\nJaktDp9xw9Ef/nlN/AyWL0+zvnY5IG+YseRZRDmYNTJycB//ePkehPqrN+1B\r\nO5xKWmAR7J0nGKZIoC5lWX081wWX/PelTod53tIdtukzml2Jnbyw2mMErhiv\r\nSud4cAAdYquWQ4CVV8W+7B1jk48dhlqIvcmgqR74F2pDLUriQ6Gu03nS+ASA\r\n+0kNBKSNvByldW0oKoaUg9X81PwA2GVAlQBQJy+HLPfaXHOm2RGRKjLJByM3\r\nVV7txPc23XKG4k9FIrPSaqumgEIK0AO1zWK+aNnlJllKD/EZ35UBXkBHACrd\r\nl9dVXRRfET6GG2Uxl1NIpw/nLd/nX1bJgV0CMCwE0GEfzNXUjsFA7h4HUYKO\r\n9a+MpGWnqgpwgwtPaVMeUs2MfuV15koYhJ8=\r\n=HBYa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCf3V92aiEN7vM1bEWn9056RB3un0zcC3Kko9kIoq4hcQIhAIvqTAOHfgcIVWMnNrq4FbR6pNU5qfVJ6SeXYuYMxrpY"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647390690000_1647391006538_0.5519476797423435"},"_hasShrinkwrap":false},"1.20.0-beta-1647393989000":{"name":"playwright","version":"1.20.0-beta-1647393989000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647393989000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"88eba741adc51ab4156bad2dfed5e728dd906bff","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647393989000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-iwgzL5oehlITTRUysJt7N/vvJkyE300A+57ajXJWajI46oO+ULV9DnPKxzbImscheBXbEcM6cvQcDNufOnDRVA==","shasum":"10ebf12bc9b16aae94fea6709e4b2271f0190407","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647393989000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMT2DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiyRAAkbtuVYsH4DyCHlZL48nrFMK5XxQn/zdrHT/gL8SWiC8GEp/g\r\nlBXwCoH2w41Owny3bghXsNT5bQ7csgnl0RT41tm21RPEGZXtclYtwAt75K5n\r\nObz5I9DL74LFedZoM0q/3W5S5dmJNwDSjYzLRDpjtoybtLq5Fcl7ko6PX8q9\r\nvUy9AdNst11fd6M6ig81j/AEi8TzoTYT9u00CJ8w4uB7uPfFgUDP6eZTNXIw\r\nhpuWoT0lMBNsJTo5DN0BodnfBySzwh+voBHakVtDYAG0VMD1SM4aYUho94i/\r\nZrw8+lLvfDLEPOwWR/Qwe98vEua5VkYOUQw3NlJoNJ0zd/TWlAsGhHP5bUcw\r\n2Se0woW1xmozJ9l6kWAYgiyKyBsz802WBvPn2kRI7I0RsumDEieyriO3VQg9\r\nW7BRirE+BgrkJ8OZQAPeXmCJVdgiKs3TJxCseq2vQSclW+9SppN6RsG3/qc6\r\nh5WGPxPIXsUqVT4ueC/JpdK2CCoqTn6CAzUJPNTiF+b0DYhq4OrU7mx9u0mF\r\nzyuXqp+UXAHk8uzk3jC0tmbyhhJuT9g1Mhb3TiKeDCwDHaiTL7qLveiFj3RK\r\nyGHGFfZNhf3ugz18AWv5BHrjC8qW6bzZ32gpPEgDXX1FU/ZsUfVqRTtdYPx3\r\nQBrVoH+XDHkC34Wu0j0p/6s67GDG5ro77kE=\r\n=avyv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ/+4kqCh9kdU9FVvjtNr7elZthM26sqyXTaN332daLAIgYXpqN1BZHqitCZ7yACffxYh9s/EbTSURqt+Rc84fB/I="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647393989000_1647394178813_0.48077212434045835"},"_hasShrinkwrap":false},"1.20.0-beta-1647474961000":{"name":"playwright","version":"1.20.0-beta-1647474961000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647474961000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"78f8852f7d9e0be90d5033174fe49455f3e07694","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647474961000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-INm4tlq7tkQGuVwABc3vEVqYXHNxf7nat2lByp/P8ZnXyGIomNwTlXgnMl632xUEh2awdnoQbQI/Od2GC7BVdw==","shasum":"c99e7ef5cada056c4dd6e5367722f8cf79603c3e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647474961000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMnm8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8ZA//ZPzVjP+x2PtXPxLsJGPOVJaV+4dGHhR00HRDzL2lTcdRvFZu\r\nqy+ap7KbjCx7W1B8KWzaLkEnkok9DSMGIG23MX31fUFuZ0QvxWW5sJUTGGVO\r\nfFNsedCYWhQhjtbryVlEZzB2dnuWJQUd8poXsIFsKTjVehOtKG/T7Mr/yYNS\r\n81OOvDoHO3rDWxf6cYM+MGkaw8IFJCckThpAmaVr/6MY/VWUpd8l//d9xYb/\r\nsgNQOvTqcuvxDnwW/0rjIeiA8RLd8Ob7qLGMeuxPTU1YFkv3nQbmsVuK0q14\r\nzYGNIKVKHmIBR6CMQZbzBeSmTC5zhr9jrAG4t2wsk7wTCpNkLYVtdGjgpoSq\r\nzpaHK9HT939vpIEnxRSRLrN/qIi6Z95PH4B/O4wIUBZZLVykcVul2zTyvRgI\r\nB0wIH/U0UUNpyr+OwBegsUu5bgBdI41qNByFHvX0sbl+ONJ5CYZo9AxLYzFd\r\n7dZ6zJACIDymglJ7JjJttmDxPvnpl8rEVof7+t7NH2Mb1q+h8XJ69iKKFdTS\r\ngmY3ePix0GP3UV1NX5UJj9JVVvYmUCu4YP/CG2uOwpzOeg7TnhEeAIkId6Oo\r\nn/LJxAhqtx0ggFTj1oM/add6p/AbdInckgBLkNja60X/MrmOiq3ozGpnaHAd\r\nIN8Z8g6m4HhPOiggAhYhw+sV3R4uLmNvMMA=\r\n=jbRn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFrhsStUpRX23DvRqfMyWU8PzUvt/UuZUAtdoHI4FIPAIgJjN93iCmSK+/SbihdfgC8FtKZfGfo0HtLpXbvlCQ0So="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647474961000_1647475132172_0.24348626891201497"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-17-2022":{"name":"playwright","version":"1.21.0-alpha-mar-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4943.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4943.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"05387b7835b9159f4e485d4741d80a94d556f20f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-17-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-3h9vv5dKkmt5JtIlckAKBasP//eSdrMST9vvM29QRc17HbznJtSFMWoR8+1vbwvwlZT9HtiiumMG9/chIFme/g==","shasum":"295f482487086c2e4d9ec6c9edb2d617b56aafd3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-17-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMn9/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquIg/9FesCx9jWodcXx3+OBHuOl+Do/v8zYCS9rf908VmNMPidl3bN\r\nrQgQzfhHWOHt0iU0GxC1SYncF7D8o+5TFe+FYXfTmhFOaO6TJkGkl46HYMnV\r\nSY+6m1mJq39ZpfsN9qlK/8W32QpnNq5/vsfAAYM46ySNaknAd1mG4+OsOE28\r\nPZlV15192yaV8GoC3xRv38iUdVrPhJNXda1ZnQN0mCMbfv51lM5keExWCIh9\r\n/3V2JS6B/bfh5tcSOjhddR+kJRCkIibVSgL3bhbgMn1fh9JTkf07OEW1dGkE\r\ns+Bghl8P7giZiwUcNip/uwJTJSMkXaI0Ip6dyoa7n9E58aUNKI8WnwGSjIC9\r\npIvRQrEaCi6yATJOxiQVYLuFvOItO8wQkx2N/qb7VufAiaWpMDTxKAYEe5TQ\r\nMuTTJ3iPJaJG82+ebo8nS8gvd6uMY0gW75cojnJsMmZw/H4GNhUr9beKSI6x\r\n5+y7nc1jaPZwCzSY9ucpm+CYoP4uHNeOBlHrjAOnYhWMLvg01G2Lfsw89C+v\r\nJY9Glb/Hp04ZXa0dgRAHH+/vIsX8vclz31b5Z2/KP9k8xYejlYZE1F5slwsJ\r\n2eIloVksnForTQO/8QN6JLBDVefunCE35zKlr4QIsKUc33eFzfVUseV/Jq++\r\n3Tiht6bZLCrK2YXHz4R4BKJBZkMIkIQnYT8=\r\n=YtQT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDipjzrtehyUgTergf5nUdKnlNLADtr9kCwbTvN/aipwAIgQzT5lclH4nRSdiGAc8267h/eY1bsEzmUPhY++VG92Lw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-17-2022_1647476607081_0.10540215112017037"},"_hasShrinkwrap":false},"1.20.0-beta-1647549466000":{"name":"playwright","version":"1.20.0-beta-1647549466000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647549466000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f2bdeb29ef791878ed84f8e9bc7b8e058266e0f1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647549466000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-9u5oChYkjKEtMZdrqR8hc3OQSrW25hLuILVLIjopAWT34IqKqZ8Y8EjuEP/GhXI+GYVpi/2ciX4gB5Rqa1vmAg==","shasum":"2dbc18710a7b6b8232930579723ec73bedfd5372","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647549466000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiM5y/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIShAAh84t6A18g9e/tgbaXdTStfFPJ6FPGlSJ9npY3GIqtkATDP5A\r\nd4MXT/p6pl3BC4SuY/ZbnpGj6iY13hz4sFnqzxY/haYOGHel+VHu7QghlWDm\r\nZW9Xo/QaB08h21cDTp19aq7A7aW6vReDL8KdbuUSWuNDDLRR5/LHEgbjPt/N\r\nuVwENV34oqeGnzeBc0I1Kvo6UjWHIsxpnML7B/XJ4FZzQibuWwwhf9ReSBxr\r\nUsgSwJwVW4e+/HZGNajWyVzI5qyRLhVs3vxRTydy4Slrgs2Bl/rkB6Jq+l6k\r\nldn2ukyEWGcxhdwBSIkDYiSYOU5d7eB1eMHUEEqmKZjKoHWXsf1+dNKEIC5y\r\nHcLQDYLTiXZfbSo5ncSR8fRYenjTSEHUHmuF9q1ohKTbbpjL8afIfj47lJh2\r\nWk0ndZ2Tzl/4ifdUi+G8WrUd/mUzvwOQ89xeahZqMeTNzNrT8PpeurfdoofM\r\nc1FvpTFswBMPifoPlj4oHENxPvfAu5KVePBHlvrvyXuHHdIWQmYN8MOG3B86\r\nk6Eacnxtl6WSZk96V1nu6jiZbNg9LQD35WOSOeZe2jnEnLsHR4CebZRsoFo5\r\ny6GyRu2EmEPJQW84C3vjNi6BqQiWWMQaatSrHyvwMIk4Pr+Oe6B/k+VDfOxW\r\neB/8ZQK9xVIX+qKyj4R6gP6Xbcn9nZZK7M4=\r\n=XYEs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgBADLMvK+tmeUrMUpZFFSX9vHewbZjg9PWLSgMmwXUAiBqB00ZUDtaA3PCyyVpLAF0tpTJEVVM36xj8hPQxXrkbw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647549466000_1647549631439_0.12729954290474677"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-18-2022":{"name":"playwright","version":"1.21.0-alpha-mar-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4943.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4943.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"25483452c0fff1a9370bd8f06addc4f3f25e2e23","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-18-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-DVK3nrleJLnXSIiQjTXsUpNQuRIlfKfGj+R2x3GvhOzpQ3gzJM4KfCtqNC2SU1h2ML4cKwyqiGjv/R4js3X1/Q==","shasum":"93c181b64fc9c455f6d4c100e6647b724a8e2565","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-18-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiM9DsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBSw/+KaHUm4kctRh14zfvLHTtmMEHOeXViRBWezN9jOxcGQ9tdX5U\r\n3iXHRb8hmsOtt91rrVoSsBiIjItPiSygSvKTNcALQv3nDX/byWMiH+MFvpLZ\r\nT4Ym4M8bjmVYNVp/mkdQ1Jf8IpIQRHd2XDF30B90SNBEolXdBTgPiSpKmfNn\r\nfa7g9n7Ty/SU3W2AZGcotAWbxjS0tKaqEIGzF/NE7MDHV1pI89//VRZkAMzV\r\nhPOXnrpa1bvnJQCMeFmJP+tgELcqj3PKG6s/s3Kuq//e9XObHSTsj7KB5YLm\r\ndaaYSdy+moU8N7CDtgV06I93j323C51nvydz+0Uvbg2H3vChPVEQlYOh9oo1\r\n9QBF3FPkbFOQd3YJdQSMUjApWL3ZES+eyTtOvxsgS1T78BdPAtwRpP8ZXozS\r\nQxnIB1HwVVhJH4ly/DFnrJUVdsG2P1ZMdxX9/azHztszUj+qAZ+mTD/sy9hz\r\nlCucKw0vT3xD8lWuzLsf7pD7xOW5ByV3R/QXvjufaQaR+PlHBmPk5IWA7JD7\r\nkzK5ZkSqGlayI11tzo6IZQYXoelI2FbML4jmA3IQYNJy2okljZccILDwKMBd\r\n88kwsY9m30pgMbpE3iFbBbi32hSLLiNS02dIOm9jWgFM1YBeUIsBFF26NH4m\r\nUaPZ9ccB9ktoHUsk4QlVJ7FQ65iAjvGdkN8=\r\n=55is\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHo1aW6cT4T4O+XCGx8k2gCmLFaxVGq5OiSWYoJadSYwIgeCpSKEQfFYib0I42UK+ZZwHtKDQtf7Vjx+/7K8NmVyk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-18-2022_1647562988267_0.462283929813049"},"_hasShrinkwrap":false},"1.20.0-beta-1647621387000":{"name":"playwright","version":"1.20.0-beta-1647621387000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647621387000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"39abfd64819069d4879ad9e33234b62a72122cee","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647621387000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-xMqevWg8tabWv4g41ehHPF+gGH9ayDMZy/TBLo9RtmH1m0tM/Iq7V3KmGISBmCHnBIBE64+0kh4VVWlKgtShjA==","shasum":"67678e97afca96dc08e79d1e3a8158df84fbb83f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647621387000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNLWzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouJw//WGndFAMn3ESUYVZ2jVNeIhLBhVZKmQUrzViywQeCl1tGvFYr\r\nZfOmBUYF9KoB100bcnqBBQxgfv3OxOT0TtrEl6iRQmgwv+yCMhio8Q/uj3UQ\r\nEhoaKrYjcXX4MvQVsxCvLiuVywIoSrydIkIaKKM/x+6xTV/IumDLjTez5dX/\r\nSyTe/+V64U7V/XzFur1rGe/uwS57vVs+akIwUZYGtUJw48QII5sGTjyQ9Bz3\r\nEJDDSXJejvUz43c8L84tAceTIBR99RhDiTokolFMSdY3oGBfveqn3VnUKuNJ\r\n2/nxJc10gm4n0MH06dY5X+5b1q9KeShdWfcNdRcXNPZjak2+je/6HjT1cWwI\r\nazwrOmp6zR15o7fxOYLepzgrmLm4PGy4JGfcAmca7ela2woWGnUqfIA5XXGH\r\n5NVp9Z5o3h9senWuj5FvsYZu3I6NxO3KWTrDKilG2q5H1E8gNxnWsACReHi9\r\nPbYtU4skEl0IFbU5qaulBe4lkNrkXoaOG0v1/YrMRRPivuMN4GVkVN4W2xc0\r\n+bbO4/PwCcGpZHs7yRMXpwW1+UJfp5oquEk0MOQgoAF7SebE7G+n5Q0/23Vc\r\ntZDg4Kz/M56gDiDN5lLm60j6SsICcXTUYOdZnI6xzqE6ZGFLPo+/1g3rySAk\r\nU3OtLMKQsEaERMWVkGS026zOUkgfZvxMfWY=\r\n=BBBl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIALjKpfQy1fY4NkEYYAsPDVgC2Wksdhk/EVp+wPH9xufAiEAis4aF/Fwvg5SNJ21dhT/R52ug36GwEZiUrmDOkswuEM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647621387000_1647621555797_0.5903779608797024"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-19-2022":{"name":"playwright","version":"1.21.0-alpha-mar-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4943.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4943.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cfe92e16080f25b3f937732a376f0f0a26f03796","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-19-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Z6XG6MGPij4amTt4gnKpIIeiW0EYVDVjHY4XNHjfEcIfrkfjRnJWRcpW6h2MGt1cJ40zQSU57yetMC2DErCdkw==","shasum":"41c7c96060459e0e6735208c976c828a69916205","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-19-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNSJNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvSw//ZNOeBImozyHCaTASusT4WGRaY2GvMqP1cfl8OpjJFtbIHmc7\r\nK6Z6S0VpA0gOYOS78ErIbUN3YrVtxG3pVQiPr1Sg6Q1W0gJS+hAWrMwYkbdT\r\ncx9qamyzaG0SdgYuDDbyDfi6/JmHwEZQ0iDDpzKT9QcaA+N05LsJxKZe5W/6\r\n0f+95UnellULmLjQ7edGUF/aZGxp7KR6/BOAmStKApZ0Qtxy91N2hwDxZA53\r\nTZrFurESUbARekBSkgPrGsLWwMlsdkPlaasj1h5XRXdZ3Q7FaUysBxM0t1P7\r\nyAg88X814t54BEJTfNeXPejYsgFRvuSKfHyfYY6yGLspoPXarMJSXQB4vUJp\r\nh/zOcWBi9PNPQaFFFLNcbvy/4kO6XRfnIHGXIRdaLqiPsi0dMWDDAYVE2OvK\r\nzE+SNUYL3QGVHSMeUYDTkg+EWTv5ksjBsX3vpQKkUyiCWmommk/WiGrREw5W\r\nsR0q102hPMt8abHjhcCbCRguoad5X0wgwAcjoKHeqpCKb+oZnHZpEAJNlpC2\r\nmS3i/6HIbcTt9MXL+OZoYpnsBZTQygfGwteMUKsL31tcbQyKUeUJEgDc3aO8\r\nLoY2HhVR0uKrwqdJKZrj2wc4o1o+vcD3abH0V03gjtudjV/6d2+IF2ymx6Uf\r\nOJSqGmOEzGTOYVhjnEDuQweYRq8SmM0uWcY=\r\n=mx5y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClGk+HqyWn9Fgik42bk4OhK6ovocjv6fcUoE+5gwFdWwIhALnkSSR0doay9fd8pdpGlf+fwZfzu+B02V7a+SKrwHhb"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-19-2022_1647649356934_0.5624934525589935"},"_hasShrinkwrap":false},"1.20.0-beta-1647728478000":{"name":"playwright","version":"1.20.0-beta-1647728478000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647728478000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ef40d2194528965907f85b881bac10dfe9e0002b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647728478000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-quTjeayCnoqRQdPFq3CJ8ZIyARE2Fk5Ett6A/bKOLAUptqIiA4Z4+l1LqmUBZNJK6OcEny2ELZwaiP89epMVDg==","shasum":"6d97ace5bb03133fac0fe26f09b97c9af4d08151","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647728478000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNlg+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCaw//WzGJ2uwVayrdqj1m13rW6HVS2DdGV6IUQeZEn94fS3x4Rbjo\r\nyJyrpkSWqnGwMhjh+MqW6znjsRHis37z+ckIr+JCageJfOF2Te1GcCNcAchC\r\nrdYMDODk5nYE/LYlZdMXkFUI3dFFUl+IPthwl9YbAC7OQMr0izv0sCy3noS8\r\nuz6DPHV++LnwsUeajgbI0jkrN9O9zcua0RxkvyoU1iSuGOC4cbbYlmka4cEU\r\nx/UXkj58iyfLDhCEDlTVV0WQifjNIRgzC3dpgU9uTrIQCYBGOYL6LoL9Wple\r\nmIeTzXFMdELxRspZ/GVTDjJ34UvS272UFm9fzDsvReTSdWHdEvCNFqDx5jzM\r\nVqyJN/VEImVIFYJlWXEwkMRBLyvSa/6/tZpvumrpA+GxLlOClwNF9JUuyCUa\r\nN8M8An9EzmJjRx2xD+ZNRv//+Gmh75qS39EjpqO/FQlDUnfy4XLBd2goL0wI\r\nxoBZSHHHxcV0cH3reVs/OVedGflX6Bb8fI/JH/6oA5Q/r2yk4lJYk0lcQ+PS\r\niwGGotqKF4vXuwPX3Vxiqg7lX7kNAftwIvttJrVU754sdBDYLJo0gxwGwOQX\r\nlFWluvBJQEmUzRoSztH1Swbysx5oF3UaOaJTeCwUu5YqaMeZLpjRPlmiGA/O\r\nv9sL8ni4dGWrp6nZ2zKZFGOazg99j6nCFR4=\r\n=gw3N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxpuz5OWGmhB2wpQBt7lYWUYLoIuzK4nw7Io1YkI148wIgfiJHtxrbXyi5maPJJsDLXVjMd1GNDJ3+vFoGfxyBX8c="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647728478000_1647728702722_0.32467430699710587"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-20-2022":{"name":"playwright","version":"1.21.0-alpha-mar-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9a60067fc2e8b5d3ba391430c40557ad5b4ba032","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-20-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-fBlCCUkqqc3SolaGBs47YvJMJqCq2HQuYyd8/ml/LizJ3efXMRp+1NW7PDELfBEfH2P7PKBUcSLrYAqZGGrJ8w==","shasum":"8d5cecb98456a2631eaacd57a7b7e1847d21d017","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-20-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNnQQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqIxAAlhw+UXgf9AYYX57TvXFg9BYAlSmezsZMpJfdv5RxUT0UqYZl\r\nf6+IVh6V2rC9Aj1aJv0RyjFTuNpcTRvMrjz5CTcPzKNlh80ilg73tQb2aTEE\r\n20riyMh5dCkW1m66gPbR+AKN1dvdtUTZgXabCv15biM0uMnZaWCf4QkWEhON\r\nhix90Bfn2/rkgbZ5c4z19bzJ4HYoa1wV9yeVmHY0pczRqkuxL9iz03dx5hsv\r\nMm8xLfVITLjMvjhTRbZvd5ujCE+S+3fyP/xAkRTqYutwO+hSA7IkSYziY6Uo\r\njD60/tLxUKtzYdJlYOYHZicT5ui4rx2NH9UH7h0ItrxGbn0wXPT9A6Zu63H+\r\nupZEuSkxx9c1Cfi3a+FVqu2+BM3PQY0ZBHzBluk6XGFJgC6QjPSbkphP0raf\r\nV/84fSDASfiF0ctSDmevrnKg0BPmFNAf4qvO9/K8KRJ2pgufPWgMsYn5edbe\r\nMLHcM6PWI3Ek/yRaCPU4SP6aFwZZ/diHrDB2JQ3WlvtpUogd4UxEg9wxAIIt\r\n8gF+KPD7EP5pU9ng1oxyqw9ysFfFxz5UfAVLnwZD70EmZeurpFlNjylmZ3GB\r\n9FFQrzgRpHKfDm5uAqHdGom7AbnIRpEOx/i+t/OFcrqXZmCKrAkUEv5NBglt\r\npYJi5ZYS5Se8Iz8zAxC03U1G4AdaPX2HS2g=\r\n=fgLR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF8m1qMPmQz505J1cwZ+4Qnk4rnl0JMKi+33OYjPEedOAiEA1WkaXaFmnprD8lR2ewc9+Cru74h1qAjkFDKhRqI2AvM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-20-2022_1647735824511_0.8989783638834152"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-21-2022":{"name":"playwright","version":"1.21.0-alpha-mar-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9a60067fc2e8b5d3ba391430c40557ad5b4ba032","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-21-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-IoE9LKChB8bUxkwBMy4+Ronc3tRbj+BBpKyhuqyCN9bJux6A7UKzIh9mURFVOf/IbzhGK3aOPLq1VIb36049jg==","shasum":"154851b15f0ca8e64dff24630f429bfc47b1ad28","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-21-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiN8WjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7mw/+J57E5V00lU5ZKcvxm/Yn3ep4miTdM0K/uOr4RBVMVT7uZhY/\r\n0BCLRjfSX3OTgTSdoPH9CxdYqKX98LGiKstw0jnRqHVf8ZM+xae0dqtqLYoG\r\ntiTogUZNOivTHk4q8fmlCK6PEdNXobc8UsoXXrs1hGsN3g2/qyc7DexFdS0n\r\n1irbGrkrZSlrwMvsShy3hA+SRvS4/fwyL9kRWE41PXYKBceB9scw0Ehy9NQr\r\nJIj8KIJEC/pjLDQz5YT+yAuptQQ0PgHtluP7BgGnpj4TSypKtfExLlt7SB3v\r\n8X1q0Zy3QWXWEhTfM7REDqixIuza9QhCHvpjVGiDiJolHI6qP67QK0aiJSxd\r\ni9tHYKZJl5lg93mpLhuKJS/zB9hm09PEYOkhCh/NIcuPolNiXM8Vxu70T9sw\r\nD/5UDepJhk2c8sBxjvNxN1FagpmJXoiCoA+CaYrS1+HftTquni7Kq0QvN85k\r\nCWM8FpQFEK+GuoZWZ8VnU4bKuoxFjkbKIDs8yezR/lzXvZ7Y+ABZRsxZ42JF\r\n2hfrKeD27ym1FPD3xtdF8aXqycEUiMvPJ8FPWp6/qNGkoe7XO4waGf/q7png\r\nyXNN6lMnWjErs0h9IjFZuUTxHnBvqY+fEN7hUwobjREpnGZrama1EyOWwH8C\r\nb3VR0kmGlAxx2AU+6/pqh3yaoZLUq2516FQ=\r\n=30kZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCstsZeNaaSeA74VhGxPJQnBWbYqWzs06v7WZuzVyrgwIhANPz854XMIQCe/veKHNPibi0c+NGS2525eafSyttl8/T"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-21-2022_1647822243355_0.8530554198062781"},"_hasShrinkwrap":false},"1.20.0-beta-1647885836000":{"name":"playwright","version":"1.20.0-beta-1647885836000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647885836000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1b0087ed38890919a15b705e1d425141b7929d70","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647885836000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-zUY8AqKu/XOzGJEDh3LJJQLeXHg26BaMYuTJgK3OhR3t3/d2q/0jaZgv/OCFSTcuiX9icf/8i4Df4GKol0ttpg==","shasum":"7b7708ed951f2a6aa7c9cb9257781871f95163bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647885836000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOL6kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIAQ//XTTbDDed4B+odLs7an2vHOizAvcsFe13+kpNgdbtpycWkENj\r\nEBckWh833BFJhY6G5G2EwdC9muD7zNQRWg3C5eWADZlU3pM1blgHYp/IHsGI\r\nKGYo71rakPE9yKCZHzYmKl3bItQzbN/4qK8PwybtXwZyrNw3AP5U7c/w0I4u\r\nxpV//86Bh0PpsyBOAMqVA+oJBtbDIzoOtibC1fi2RQ2QBCJHu/wxumGODYTJ\r\nNicDP3RkaQCxbyYOOHhe/UT+ci79f4UcS6It5rBtmWMxZgjQg419iMGN8cLr\r\nBYhyFhMWXf80puo+sS//Pr8vpQalATjpL8E0l0773b02+Y+93A3Hn6aTe6c1\r\n3pSrj9XHMhnEjXSt6qyKu/QGrrpV+7KDVsnlOO8r8vWQzPoEnm/VeWNnTG+m\r\nNGiz8Qs3yE3i71GaYhpwfxuhjN5bWg2K3hbekoGsNp90BnUZz/HhnI+9+J0t\r\nB7SjlFry1I4t7gv8kz64CuKh6Eh+2us5JKpX04lclTUfL/150pMCc9vEj2D+\r\nFFLe09DOfnm45XJJWoliObjshz01XbmODCRwVFqkcAgiqHlKnbuSy8TiBS9Q\r\nqNKSW2d3A01qpzN4Rg0qhNyAiJjzHXs4dfV5CYKqz7AU4gEmBSWXc4CTn7fM\r\nGZnaBAonx7YqPdNUAE2WRcfdhHuPsyOJdjM=\r\n=Nsqk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9hGomaF1PRoj7ZHml8N5/mNojNI3eRLdXGDgrSEAmdAIhAIotetfn17MHTq3Ufx0/v3fUxS9I7zPyWn46F45uGuND"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647885836000_1647885988702_0.7679711203893165"},"_hasShrinkwrap":false},"1.20.0-beta-1647899774000":{"name":"playwright","version":"1.20.0-beta-1647899774000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647899774000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c090a55828230933af912f5c2bbda53239e19028","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647899774000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-E6LHsF2hz6FY6yDGwFJDGLhtEF6Ma0K8UlF2q7FSpLu6BiBkDgektd4RuXRLAjz/ntPxyl1QlqmCXVnMfDTodQ==","shasum":"db3c037510b2811b2c30fd8f8d8389970e6677ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647899774000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOPUxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+MhAAkKxP2Ide1zd9PaaejlZJsoxvdjn0mmHA/OCw1LnA+mwr3000\r\nsqkYqn03QHk7MSrJXFj0sXgUqdEj/gdOWBuIO/WXvTEZCDxnAAj9ScTYLEl7\r\nN5WgEzfXqnTltlb5JddvGsDzQfz+QTQ0ql4KYzbCWNw2Iw0fmkhUxyDvSwvM\r\nqpokW+4dP5tbnTogeQ90a6vQHKL/VoIuCw3eCjA/NFGjHQ1nf0cHSu3EM+Vj\r\nSDAdvyMMHHtHHiHDhyx4FWBdxmUCpfjZqZiE3eAuwpCIou1PdFxLNfI2ZwT3\r\n4k0HGNJMLBpkacJGuO8LN3EXGU/GmCzv21VDAtMQ4ae79RAc6DHWDRx9fDQz\r\nj6MHaOqq4B9mpOqV0pUxMyk6v3gMw0gPviHPrvHyq4vKy4P4/eud1Gf+l5DM\r\n83zaKHamGASgHzXjy/iQ1IdxPQYrmxYYch+hyW9G+0epzFN42J4iKyHZjkzB\r\nNjQXmlB9URWE5EpXLOfP8WEB5LtpRjsOz6+ztXlO3bEDdbrDbCtcv9znk0/T\r\nvYzCaYC2MEZv5TvSKNdKmrwRJDQ4yacPJ+eYiTdeuQCVruD7bJ/PMa9Lym1Y\r\ngP5sUIfdI+jablP9XdB/RMUikejwmcBANceZ7XhweA5quU9s0yg5QvpxDBj0\r\nUU434hZmqZZ/PhEoYsKfFShSnDUTBnmeRPw=\r\n=NSTH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDOriX1Cq7gxz04gMMgfP1StgkfswOq883v5F3kONTs4AiEAtPMMeEg7ZTlm7C8y/nIxX5DUgCZN4bujkpPB0vjMv1w="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647899774000_1647899953315_0.6030085919273223"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-22-2022":{"name":"playwright","version":"1.21.0-alpha-mar-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7f513360681d2517caa24d266def9b3a7be4f469","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-22-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Fx/Sq1D21H8e7A25VOGxlVAp7sOX1g+qTFqVjfVT9NbGWjtAdWAyp1qQLrzIUvdmEKm3Bbrcrct7ukAO3hmImg==","shasum":"c5c6e2beadaf871b88d9e596e0b3588093cb3bc3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-22-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiORgiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUvRAAhYDZ09oK19+rpyaxt5P0p9SLa2BU8hkJMTYL2kLFwKZjYBLi\r\nVV7U6rWvcCmos1WJ+rjUHS3QrPa3HQtdHaARznFqiz9auy0CUQdUIbHscYMl\r\nXiVc0iViGTRrnA6Ng7swH2KsK/fbVD21ZlekvZptzUNaCigEWCIiObzQkK79\r\n0AFCekKg/FwKI0AcviFQ3qNK5nh8zv6qE+IYyMdI5Zq6Q0/OqWs9CsRM5U6N\r\niJZG2q/rs6ze6z4PoBKv7SYkuHqNFFe2Dat6Cixp0DXm8Zv+6+0NqKwxOYvR\r\nXzJUVe1yLqz6FCUGEZWAuW3k+ZtxGIJtUnAhycMeOx/XUapGcFiu7dOcCkkQ\r\nCJP5btyVgnZk/yDP3oM76rG2EyjsU/45G68rrt4ywgKGZKUIoeD0JhjNTXhS\r\njCN2IegIEAXl2D/Sbf7ex6cu3K+HIic3xP9ew0mVG54Hvb6oIa+3BSmrocqY\r\nAZB4TElyOEmGOlzQ4NVnN26kT/HE+DvRkZlNU9xCuskTkvYegHaTFJUJrcg/\r\nOdg24WjSkJDv5l5tiXdmK+CfOLERYjMposfJu/43DpdXKrhFGlRSeVbFRhHY\r\nIjA4XeSRmk6BLIUJefYbppnRBU0fbTOTQhMkfmfobjESg0O4tLcsIvVZS4+l\r\nSqVsG6EmHdl0wgGBlIEQE4xlY6AUkfwOV7s=\r\n=jEk3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsLnh3stUCGDS9r/HLSFTuYvgHqEtNj+RFrDKVgBgxvAIhAKA/+6q6aHqbxOWF+MgyY1WtcJWOZCrqb8IFvXA7iQfy"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-22-2022_1647908898113_0.334102472958268"},"_hasShrinkwrap":false},"1.20.0-beta-1647910480000":{"name":"playwright","version":"1.20.0-beta-1647910480000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.0-beta-1647910480000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0093e8a7537354abc7bb29c556eab8dd6d9e51cf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.0-beta-1647910480000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-DceZSfW8vi8UyYYPoVc1mAiFUiGQ8FFOsX1XvTP5AoqF01NCdQo+WVBBDwCmmZkqXGBXcVrnEx8G/0bU0ySPcw==","shasum":"86f4cb480ad935e1115ba8ee6a25aeebfdae9315","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.0-beta-1647910480000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOR7aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpwzg//RP5+bAXo6Az6pXH+bSP/knKJr6DwIV4sVe66efzfKA0onps7\r\nrGid4DfrbmbOuaD3DoLy0cQRdcSEjGzqZXA4tutgBeg+zDL/PWCXowKCRmun\r\nTGcCEqxLqJDsKtQDKLLUOHf7irpfmUYFq/WT72EXAbmuYyyl2b8F2zC4oioj\r\nYAhJ0r5QjsBKyzKo2lqaa+g2UZpDK4lMUfXJ916eFCr4PcrbDaMZ9Z4/0s3p\r\ngXgYnprOdhKfEBU/eJwndMd36DQJx6hEaBCrUEol87aEc2v1BlmyJLyNYCJV\r\nq9Mfgh7fDJIxB9Orn2eiah0rxPTZjnvlyERm4cUZNb89GkHcrmvW1OLEfkgz\r\nUNF8N3dsZMq8w3vQVqCDx3t7JgC5l56IQZhRzsGcY9+19SJiNlB68XSkwD09\r\nYQETLq+CmpulgCOHcSAQZ0dF4RslCk02Xz7oZ7jKjZznS8fV1+xDmsjCozxQ\r\nef1v1ttM1Fi1W7c0bzhAV9p5Lu5nwC4IFU+TRg4SbF5+lKbDyqnOQMJpnlX0\r\nEZPkN+J/4X+ZIpbkD904PNwbTqrqBLMhzC6SVb6D9uipf2zlyqgPwEyXDwzv\r\ncmmVDDvsc0X3q1zgo5ntdwjX7ynELwcMuj1ApRQfQg/T1AXfLBv389k4W2pn\r\nmENcKzydidMnwyUzW4g9ww428oj1u4p702Q=\r\n=9yoF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMcW1zP9UjhGd+38eeoqw3W6Vh1TmvJjl+8fL1LeKlhwIgJyX7I5DfmWRQBVzX4uXu5mCZ3+ua6K0f7Y6h4jsbvk0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.0-beta-1647910480000_1647910618188_0.4625925802962252"},"_hasShrinkwrap":false},"1.20.1-beta-1647910498000":{"name":"playwright","version":"1.20.1-beta-1647910498000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.1-beta-1647910498000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8e98b44b96cb47f9fc9283aef10e124646f68f92","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.1-beta-1647910498000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-P4EK4ipWshpoyHGFKaWu72S6EUFZI9unuaMzNfNKqVF6Z0P3DMuUR8irnNpGHLqA7X2RPbygP22gW/WC+nZATg==","shasum":"9a366926f6a2468417592b1f4f5c3117d15215aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.1-beta-1647910498000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOR78ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7rw/9FgVtymKJNuZ6iRPTq5MKg+SWAUFYfY0bTRpmNUyn3xFtrM6+\r\n5t26FQtS3wUhCS2wNM9bpwuTojMoUCmEGWs8HCTv7KNrvk/E61oOYtbgkpnD\r\nydTcD3wbmV6L5eXEQN1q3QwAhREfvIDAzOgXrImRkFNg/hwm8Gsc5A0iKU6t\r\nmkZQv/5BAjCuaYLQDvOZy8P3mD9WOVKv8MU3Fyv3GoCDhOqzhidqX8nEBr9b\r\np6JCV1mb/DRNnaEUGxbAahSMw7H5MI64k7aIve8VHIqAnOC1ty8LiSQRNcoR\r\nM0BEub6DrRcEsJcjGHYlP5N8BOE3ZwZ/eaaY6M0jlsfA9R6VfCVPH+/jmu/d\r\nbS70m6dQRx4i/jdOxkJ0nY98Jpkz9AWyP+tB+gUuBQ44S4qOffgPuFuM/HPi\r\n9rqFbmjHd1uGO9hOKCkq13ZVHb56dj716mZIaAoebBkZ3t68Fq7PaOYh9NWk\r\ndN7g/dZoxH6RJQwq6SVYXI+0RSEwixPQMzzexrYXKv3mPTxAPjCTJYlOTZQm\r\n2rmkBedE+MVXreLo9zDCpNOcBBW9/rqBu+gipGybpOq4BDiAhGbglDbc5Kyg\r\nYTqq41dYlfpi//hUvdJnYryhM2pxHmmoirgJQmdqwrg4qHu2zI547qm0gjqP\r\nhHSHhJKSULc+AQDSrST3hZHaIeSdBtZBqs0=\r\n=kjhR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAxZdgpj5aX5wuRUTDp7CB6s8it0zpmObbozbZ15FB9TAiA32O8Sp3ogikDhcVtq0pCb9kZBXbXpPu/i/p1kA0rv3g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.1-beta-1647910498000_1647910652089_0.3117714806993823"},"_hasShrinkwrap":false},"1.20.1-beta-1647974804000":{"name":"playwright","version":"1.20.1-beta-1647974804000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.1-beta-1647974804000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cfa7f13e4320007e4c8f10fd1680361839be2f49","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.1-beta-1647974804000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-ojvmI8njZedNd7uOfzQgrHDSH941FzOxQkHfj5fdIffO6wut13XucxWtjGJzAfh05skfkrsZ8mlxIT36UG/MsA==","shasum":"359f0bb17528897c1f8f3530b6fd66196de693e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.1-beta-1647974804000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOhpOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOGA/8CTuBKkYZhpeHHcxkzAF3alxXzkrZJRKbMdkzgUmpl36OYgqL\r\nZY8hmyASstv/5rP5V/HNEZBH3RUMYLLUuBAOJKQSgFZgSuCzFQuopzBOtztV\r\naLRMJz43uRrVgUOFteB6I4mE6zPNNg5hnyreJ73UXpG43aWTFqn5PwHZT21O\r\n8L7Rh+I877E+OOePJdRvGG7bNOU2r50UmZU56XZgxG3MtECu6BqDZlWY+8WC\r\nkIEsVkjJuvFzkX0ITfDGtryk19MW3IvCvFVUN4isOOxvJStT9wD+IjSqf33F\r\ngjbXuiCuNrdDggqbvvNQBMGuWi+sUZClKX7fd40swn2kCpe7XqAm5t44+4ta\r\nK045eJqQVCtuk/Ww8Skow8jOZk/S6Ie7COrZDOSPcqsGa9TbzWHgXRZoqf2z\r\nZE4RU9u+LyKex4eckJlD+Zb/RWXsEjYrs/05mzayJI8SkYcxGXwjZxlQruKe\r\nutspOe+0m1+k62lCKFShNw0YKr/BUGkzypN3qT/MXSABLwkBsVgzVrPFT5Li\r\nYcre8QkrkAKUwOqRmRAacnzyMdeM6ujIzMNV+Km7DV/C1owb/Z1v1po258D8\r\n5qE+orluHHCkriAgz9Y5R9LaqvHENrCsIJPiV1G1YPMKF7bd+jcsev4ij0Sq\r\nIxMgebQq8EVBiHE1H8S83lU+QMRas4SNAEY=\r\n=JUY+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdqV3bMVBidFEtDDx6IJ69B1sk/LWKSi5GNwbhOihgWgIgPLuWU46g/YxVMIHLhDbaacdO+qpbf08EpwvZj8tPXgw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.1-beta-1647974804000_1647974989991_0.08257547267276832"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-23-2022":{"name":"playwright","version":"1.21.0-alpha-mar-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"722302799ecfc93b36a429efe91bbd623349fe74","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-23-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-HJu5BMQpmgaLWhE+lFRCqwZmy8ITGJnPoAIMHAXPth+da4yrZVn0nEqMmNevbf/t6vt8xBrddKu1k2mLZaub8Q==","shasum":"46f9026fb4eda25cc7e9f574e8ea27f67347cdb9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-23-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOmmVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoaVA/+JuXJjMtgWVpG7VYEgw/7ppGi3VistxMVXY0IFeHNA9o6xjLA\r\nimyAvHYUoA2KNnMWdHpZrZaFed1/6xmFhrjj6t9pUxKwQDKtHQFQtqEeVjor\r\nMEKyguDUGYWVFZIHWy4gX5BrMC0XcZeY6azWjxQqNkv9Prr5jd8xaX/I+tGi\r\nic20SJ08/OJTVYgOOgZQblYgIUATG76SayB1mOBMtWSHbCh+xShRwC3gxrb0\r\nBF90OH/rwDJ/+dHz+viPykg+FvvP8HLc54M6Pf1z7eK5nwzxqoUOK+MxEBq2\r\nNxBvjCL//0a0XK4qe26bFS9uj5mpSeMKY92lUje8AQYcqSg5Ujgzuoyu81Yo\r\n0HFxKbZfkm6Z9Wv8rHoQyM58gFJ9hPUzkjpvOA500h42B18vluhPepF+iX0d\r\nM4cibTEMR0G/sOVtWbl/K0oW+q2aFUAKwEpWVg2ShOtGk4uSirTaSuo7F5hS\r\n9RoJZbLIY/JmfZa9Zpr63u3N9BZ35rl2TIZkWMeK+6K8nqIcHEWTMow+5dXH\r\nO8BzdUcoAL7A4jKM/9Jak04gzpFgjSzTKDyU0BI8wpUUHBqPX1c42rNANwV+\r\nU6lPQy++XzxG5wppduvJS0t8++yI/22czrzbEBcyxGap2WOBxsnssoIrjbMe\r\nAkuvD8X4FKu35JqAZMTky8mZFYg6u2Ga3iQ=\r\n=6zn1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuYoDWlmxKIPVYlnplP6O/z3hV9vAjphxNL+HcBFnstAiAfjTKyvPOUpOn8NEf18AKHEJBKX/n++0s7ECOCnjX1AA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-23-2022_1647995285747_0.5553568696657947"},"_hasShrinkwrap":false},"1.20.1-beta-1648061377000":{"name":"playwright","version":"1.20.1-beta-1648061377000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.1-beta-1648061377000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"18de7bd61d549d1811205d4c4d9c07dc476ccc1f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.1-beta-1648061377000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-uJuM0ZB0zHiX95AOpoHsIWrXfNfdPKGtRh7/XT9WfffYqba1Sv3dsuOwqFjIg0jQ3lF1oHdUHmv9oZAMsQmBeQ==","shasum":"844954db4cc77df863a2ed4e12eef4d1d6147359","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.1-beta-1648061377000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiO2xdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxNg/9G4DdqSZbNOipIYu6eBWkqv9FCtQyM2r5A5utv2tsRXfMeot+\r\nOqul6tD8N7anFAEuZMe9THbJoveuodrNtBOWDKS9viA+eJHXNZKIG+EuJVGl\r\nM3Iw+ApPujAEYRMNWacuWPBVfmLToFizSfnU4c0cx6Gp5b575w38ItoHZtJd\r\n5CRIW9ERRjKAdv5xNUWlurROYlzcsy1qdx/sn8148RlLPIEuLCZMw2xWxJv5\r\nhatDEfv2V9d2ZN+jFaNL+obZYFDCTTjOtA/ck2PgYwfINB1ZxmxZJfEpl8u1\r\n+m9q2zxIwGORFsnradBsJ6CENmUudghKV6C+JBbmgv4k3HV8uNndmhEAt1ST\r\nElTv71dZnC1PDU8Z1vsNJr6oV+AnJpIc0sgwHkH6puBM2486CLKARkhJe5r8\r\nnBvFyJVUdTIN6tEjXjPtT9PGkN6PmCx6xSR4APAcLM2fmSNGbgx28SUpftP7\r\n37d5ZeLVDTTsqnBe3zSjdnxW2TneOBzOakt2pyMF5fwwtCrzMI50Rc4YuHY+\r\n4HOGRNYY3Xv8+O/L3dw4g9FmD0ZDZ04DxGmAyBeYlzWvyuAniUU5ei87GU2M\r\nlT5+sLu+DAIN/tPx+9rGELtEgSnc39IlrgddbC58VO/DoWn7MT2ie4r2SgnQ\r\nawclYPA/V4D7ch8KvXTCSHidaMpubDX2wfE=\r\n=+Gnf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBe++nz8nf/jorNSZBAPfNe4fs9lsM+/zvKEIz6RLSY9AiEAy0Ob/r7v10YYFld9S7oKEkfWX6XL8cnPROmSFZlLw0k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.1-beta-1648061377000_1648061533518_0.007397828674979845"},"_hasShrinkwrap":false},"1.20.1":{"name":"playwright","version":"1.20.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.1"},"types":"./index.d.ts","gitHead":"18de7bd61d549d1811205d4c4d9c07dc476ccc1f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.1","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-d/25SFUk6Rkt3h+RU13T7h6o0UTCLKXKYJILWVlC+NmrE7Tvn3LlXxoREfFXVNFikRZWTV60WBCZKgNbj7RfrA==","shasum":"2796c7d4de10afd39d2ca741a754565291803d4d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.1.tgz","fileCount":9,"unpackedSize":24008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiO4YaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrxcQ//cWTOMoysWcCOSNu809TWX29XnkG3OnU+2QkBnltqMlLI3BaQ\r\natTb6sODu/7E+VtTwZobt28/L0ltjkknrCFtt8MB9bYa8Nzit8Ss5Exzq70D\r\nT0y7/xT5vbvJjCKCFRpHXdIl0uHX5ouSXyxmZCfxvCewomcmsFSCH8iYIBAA\r\nvbjImWaw4j+xL+S8Ca64z+7y2crvOnWuQ/g8CqFpIIg74XooEC2cefTCs8Ts\r\nBXA2mt1G0XnezycGMqWvJ0GaAqGLNjyR6YTCM3nXfng5QaUyzslc38tpVCOp\r\njAizQuIQszy2zPYqYVXblqcwmJJMHkV3lryxVnur2s0cpEYytQeslWVGIgQE\r\nTK88o1elRw8Pe4ndWChVQGcT+uzF6rs0iIj6hS+mxX0g7ekC7MmJYUB/lvt6\r\nUwFSMN6EOvUGouroDuynjEhWffDsq4mLfhSq7JZD60VwrRDHP4+410p4Bm+2\r\nRiV7xPGlcwOiUbcKtgd2tD4VgNeadwUz5PAfYkidHN8Ren0EaBfWiyqwoBCT\r\nUnvTircUAcTM8x9+F1qLmWOF6kQ0NWp3dhlPvg8O0cYlXMNI8SXkRfbezliT\r\n9PaalzodKsPcTnW3zmuCAOnUsyzuT13iSWmzbPA8ngIertNdfPvlYfNnkSAI\r\nYMWJhtCjk+Gw2AM1fu5y7cDu6JhhdDkN9gU=\r\n=4dQf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICEQzeL55y34vCERjuJf2TsyR2uIEjPKZwjtLppus2OTAiB3Alkbk8gIjlKq5aoqibS6VvbeCDO+Y9+nZrgtYTiyXQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.1_1648068122150_0.5541079597326384"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-24-2022":{"name":"playwright","version":"1.21.0-alpha-mar-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"174225697a5d3ba5227fbb52b3a23c54d4877f4b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-24-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-xfZboaXD9iDwOc7I1+eM1QmPbQW0IvdIc5c+YdubbeNbwHJhTeGu7JwVLSJJlv9RlbgSqFHq64jP2172bNJ1cg==","shasum":"8c04f3192b8aa9593001d155c397809702c77f64","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-24-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiO7olACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtEA//RdG1LWCXfhu7eT3Waw4NEYskv82auSL1sdPWpfWRbeoXPyEJ\r\nSyaQNtn2zRauocpG5js0JAj4+N/QSYazJfDyeRlqb5Z0m/KtSwYNmVfoAtwl\r\n6MHyH7gOCZvgYpB43WM0HF/bkJrvl848mUwTtUfNJOrqF2K4Rsnl5yL8K+IF\r\nJY2pwIPp+YKhHFpAqfX1xPRXLCI+/NN1ek6urMg+nhOrI0Jw1RHM2KUjwO1L\r\na9giGSqsm4ly3V1d8oD+tHNYX4KOpzdiaAu4xZxyJi2QhV+03phmBRJEfghN\r\nbMHk/EfwNE/MhQ+B/YMTl3X8My/bMjLDAQBgVzliypv0kt0XOvfToa581hGn\r\nBwzoRdMEytQuSZ6/20LF3UYMGI41Ph8WQZHf0MBqbn1/Pgd+3VvmIl4+yv9J\r\n29Z+2odesggOtcKAxzo/ZT/rm+nJmRUlyOpACFsWCto59aZGo4H1kjDtUZl+\r\nKQpryBOMYzsSHAkgdEuq9cHPMlsORMwNcPVx/a+9vQhaqcU31GMClrBZyflI\r\ng8pd+52w9Qmff9T0W6CqJK2zyssOC3ymKyEyX+r/QjmlFqMXMQcqDCO1on7M\r\nS+UkUVCxPyzGQgp8LMCsShjvLJ5gARZUPuNXVrgRZHEW/6AZ1qLyjg3pEeZG\r\nNx3effh1KH4+8IVSQY710oPVXJXcRly/+2Y=\r\n=cudT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH76RVDJ0Ff3Y1J/sCyDoGBLBqmwTnkCeM1FVRRx/NV3AiAAnyQKXlaaAYTVdugAVtOjlAuCt1cjkq/eTVIKI+zL8A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-24-2022_1648081445812_0.870123710187501"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-25-2022":{"name":"playwright","version":"1.21.0-alpha-mar-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ddc2cd4a3ebb9e4d075b4486e5bda112f0b1398a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-25-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-N4KvyNyMryNiMm+Ubv5ksXfglJY/dAbPoEt4rG8scyEjyZDmRXy1vit3v2ijMw2UYwydf5nTiTE5nt+/mfBBrA==","shasum":"4a75f45ff1dd45ffa33aed665251eb16190adfe7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-25-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPQt+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoi/A/+JqNZhW0bI0tE/T3qMNJZUbP6XZ8ZIXmPhuCDLvU7t3lqrAn7\r\nus74pU5CVfqKhH0ny8Hi7QL7R4oTTO08vxFwh1rabVWRmgQeqyaONXcBjzpZ\r\nzqzd6Wpxv11NB4UUEImFGsLMXoazVbIWw96Mb6xAN2XLuGJXFl5yLJ3KDNOR\r\nODU6hW1TYFDW/qyTe8E+DeAxrtMWpIZi7gMQ7x9rnuHlbR3N/vcfaP3guhcx\r\nEABnEyUZusR0Eyisml4U80j8wc3qnDdF9nRjSAEK6ETm/A6rizuLLbvSnP/+\r\nKI9+Nekx/JmiTsHwZhVY3dXT/Vx7V4j1L2tiQkXIscbi/CQSvpX/lQBY2dQl\r\nj5OqeT53Rb6ArA0DpVwN+raLHkls09epoSWEsGqa1snhsPf2rd57oRUi6DfC\r\nQUUOiEtKv7j4Ve10dDNVa9oGRduS/CEfzcncofi92cbu6PyaR57mWTWi1mPS\r\nVWAHGYjyp0IAMPBSwdTtz+dGwAx2EaPGSTpo75VjTiq9QV5Br27OQmLQO8kD\r\nZVGc1knaVbw/Yae+xWHDaTqc5SDOyVJZInfhbt1Zfov/xWiFOMxV31a1bAJ2\r\nQWG3vZmaqOGRzHkLmG/hwDA86/CWkyjYEd4ZyNnbXZ32qoISpvKe8dF1Jsr4\r\nXmyP+MNbF3mH9kv+Ve1L/lFdi5U3zNdaBFE=\r\n=rqWo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHCWIP7WijiM/CMP1Af9KihHa2/jg56sxmVAJbeKVZSbAiBJySjsSkM7fKaxPhclFCqMyeZmev7Xv9PVjvZCBk0HBQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-25-2022_1648167806250_0.4902052482800161"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-26-2022":{"name":"playwright","version":"1.21.0-alpha-mar-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"02cac8a0668c59078eb35029ed88c9f88e139428","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-26-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-nkw5S59ER6OOlwU6JrVF9O+qhlNS2RuuX5NO6xj0Es48XuDokWKmgFn0z4Ivw5xql/ExdBncvTnbvtBCTLQQug==","shasum":"16f222f46c57b6a15f8dd3008cecd58f01c28822","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-26-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPly6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZjBAAllmRFUq4H8I2jYHbTgWTf1V5V0rtxw4+Ge7LIGPLkut7aRhC\r\n97he6XOV5GIOZkH5aZ9A6mrcMTVDLyuXeFHDWsXeP3Q83dQDsqwVQ+HlqxAH\r\n9Ui8v8iCvkynPIYkPo3cmVZbVmZlXWbABf+Jgz0D/BMknAutvB1w5SR0U3Zn\r\nPU8y/t3Nr78DCwypOMI36Kk7yrC2Yh/EK0zUCeHoge6SflKS12DzDTJlFizv\r\nSSwKPeeAeztg42kAhHXV5a7kTEAaQG17UA8f7KOZ0p9N1cBqXzEo7q/snTYQ\r\n/LN3Y2GFdqNbEkEbikiiKVc0Lh9yb8f6H7RTv1bvUWfyaLITvxI2j/17KVFd\r\nPYh9QlJFwp2VKpqZ0/YQKCLwrXo9RWQ7TeBXoy8tJOEEru8stIJ4fbRuhM6e\r\neUaNAmsWE+EdO10r+YHa90TNj/KdmtPrY1mm2SINCMxHEDug5lTSp9KnV+Lq\r\nxnfQZmo22ZNhpOCSKzIgRQ9h6GIgYeX+tSCZ6qMjw5M8VTYgaK+EkTtqSqKs\r\n8vtUspBzFsygs69rZ95CMHC1y1ZIOvYxkHf55BGtUJBNSm+i6hJhk7sxi1B/\r\nTe83Y8AQjwbCCTlURwnNgElWfs4OjtjTJsmL6FN93z3LkhpvaCnTVYKFfH34\r\n4izjuaCL5OPqH0gRGzQGXeynYVqtDipLr1s=\r\n=dEwm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8dRuW4EyhbcMIf5EcX6OjPQijATX9PO3gTpL26DAj3AiEAzAQ8KIrqFtiTZbxekRQYDrXuHFVBLNdAlw5AE4E8ezM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-26-2022_1648254138151_0.7289862662288256"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-27-2022":{"name":"playwright","version":"1.21.0-alpha-mar-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1471bb71776cf84223190e1552ee4e055db1547a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-27-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-ao0l6r2wruxNCfxRCtvj2zeq+s1sF/vKprDxxXJdZ8SApIteDF6iRHd2NEw5xfORMcK0unFw5P9UA+EoMr99Rg==","shasum":"4175545492adc61c206ebf4c9b4b973a76762f05","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-27-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiP69gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPbg//VrT7dHddhnQjqU+6V7W9+Xaqw2igfiNPi2gRzbS/Lvcd8iAK\r\nhVj9sPF+sWZ4/nJRJ7hr5F5hEgBi5GMUKHvnaIIigkbWq9fPZTbV/fwDBK4v\r\nlCe0wAxWfkHkVmZFd1kENbmvZNj0OqNx7bszArRUGhyrWMPOe64xkojF9wNS\r\nn8DnaQPD4dlrKxzNJnG62CiuoRYlqQ3tdYcGG56aADrfxuVoB0+exY3nH48N\r\nMFPgGZI1YB3hCQs3DZ5c94aL1++OpKgya5gLTNexjYkYXXaY6B25xSFRxaGL\r\n98BC5I8+LR91gzvGIRB4JR28GIJyBv5ZHDAZam4OepMSIHmXIvg26o+7xoJd\r\nNz8CXQS7selKwnbplWIbl8P6fmodQdE3kGjy5k3u/48eaFpwH9StsA5f6xq9\r\nDdeRWEd58ls5JCtn8JAbdcVe7snzkSjnOqqUwM4Ybsr4ANon9oABdTIQN1Cw\r\nJ+mCMWHsz2wztwISheOXLi784R0hEw6obKOVqNwN2u00RP62mBGI/xIN9PeH\r\nldXa2S4c0EopzdT3IJ8cFWBt4PctSddM8TIqwALb49fQ1xokI+ziyf8nixM0\r\ntCDWFTPcnOp70AOQHRWa0MANE0BUZQ6Ma+TPvXkChzf0d/s0Z73O7jPME6wa\r\njXs3fexv4nMMxoRtXNQrkJbnT4U/AK0o8dk=\r\n=dPBJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/ILyNzdsfoYKJ89tG4LoGBau/KOAYU1KA0EktiReEJAIgcTILzA6QQz4TNphisR9elAjREIgaNlRUVWDRyHCKHGE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-27-2022_1648340832244_0.15500768765629291"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-28-2022":{"name":"playwright","version":"1.21.0-alpha-mar-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1471bb71776cf84223190e1552ee4e055db1547a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-28-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-jlXqQmeFmunxOoFMElE9cDolXLeXTKIf4K9iaBVhkfjbvOQyHAZY2GfVJyi45QxKiKMoZlUO/U0/5YLKLYZ0xw==","shasum":"9aaeaab5edbffadaa1e20347bb1b4a9cb907c8af","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-28-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQQAyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpahg//f9eMtPctsVpcn/d4yIEah7/yvor8XqCY4PzMasE5Z51jtvGR\r\nmbnSRFA0ZkrB+QSdhMotlJhTMUyqJbPERXf7qQOkS2t2CHUYlQCsqR3iZ1Oz\r\nWm/4HAeBgZFORI6Mrg96BA1E8lGDhjKoo6WO6aN7cfY5EMOyTfeipUej6i+Q\r\nkY23+bAj19GO4EfN45reqTEl6PjZTox/3NGJ2KYJKgi8QRll1G/rD3FGTqM5\r\nYa1Q97Evy2GlFkR/hm7V9bcG0JThowEyyFAOzNDMU+KVDHP9K0vm6SX69O+F\r\nPTpcD2rDSy5EZ4p+KYQq0m38Zt1zlT0xta/58dzyJEcT7NhYdVzmg/ghJyox\r\n2fsWdi5NUPzQuBDkmV75h2wGIcy5MSJcIUmTCnr7GHBJp5xIt3kdmIM6FgTk\r\nz7Nup5GOQJW/13RWNqYgGIODQSXC2Wj61sWKFozsBEe18NZ1MxruHW4Np45P\r\npeGba+h2ON9Sb/dP25O9drb3p1+LhSY7tR+DwU8cspcpC5/4+ckXbmRacFYu\r\nticYpc3sQlEfr72l5+glB9JfGHk/J0bY1G70qnyiuKK+8DBVFaax4LVaxIva\r\nFu0RSJUdmsdT/PokakiFC09nHjk30il7JP+W/u4iv7kucmMU2Rs6RPco4FmX\r\ns3q5ah9h4Ej2V63b+WvP7FYY1GEs5Gmi7w8=\r\n=5EXw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCz8eLNZ68IpE73qQQ9Zwg5rkw1jlUVLJgxqjsY+PZ7pAIgfRYaNEpotBh9JL2zoMplySxN9KtK3LfFKVm6Dj9j/Oc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-28-2022_1648427058671_0.2025759460952088"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-29-2022":{"name":"playwright","version":"1.21.0-alpha-mar-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d59c2b996fb08e30b4d76a6bdaf39949e93489f3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-29-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-j8hwaiZO0s7eldGvmqP1R3IwS/MFmQDpvNQFi6Y9tOHBzk3zWXweZjk8OvMEXLD5Bq90fIU87UJcs5OzgiDWsQ==","shasum":"f170bdec39efb9f3430528403a1d0c3609165041","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-29-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQlKHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/Rw//aP3jd9cU9Ff3rAWAF9kbkr95lb0W0jwh9OWQTzclotQ7tuGH\r\nezrtiN9nKw+6Gk95ntm3jZzuc1dRNYknUZjp1T05xcrV4PJnv3IKpzLQ6rD7\r\nXdLZs92ZKB+ig380JJCySxiKTVpcF6n3ArvQJLdd0C4lVj6Lwo6FR0WFXLAe\r\nt8ICmRAp4h37yZaalM8nOwrb7XRajypA7FRwb05cg40DuuhiI9OJQdSnotTV\r\nGGAnU9tqRkGuNCAE7Brq0LGiIeurD1peFR4f0aonASfMlbsfvtaVH7e0Hvt9\r\nkVFx4u0SMobEok72r3CDZQArMKI/XkT3LTinTxCbD6cSjXfV7lEwLXx1zZ/Y\r\ng0hMCWL0aZ0sQ1cVW37BoBV/g299LuQKqhfOLUP5spH251YLfCQBwrLpcudi\r\nu5zPLhpKS3Ieh/L2Dag04csj1L3FUotEW63MaxaPTVyA/sJ7yOFdvgITa3nS\r\nD9FxbXAYg918PxGebLDnQ4k5oZiXfYvDJWLGhl9rMIWlggscsfqPjbebQ8ky\r\nPJpk4jUCkovIDxVbdpHztG5vT1trc0zcNcNL7vAHEhLnqEQ6bbKAFjVmGMUo\r\n25DaLsfi5vQZyzG+e0yHK6r2EZ+EOJg7GIN/m3KawmEqnC6dGTkGKo+V+nrY\r\nL8Ma1iXSB63jLnUSxPvT7BQ7jLoC/glFppc=\r\n=BieD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjNH3ikOrSSpKnCYEkMTctSJOPRbb3sOVQIUJHEeLWjwIgXnMD06uHd53m0j3AbfOr8nCL3Qxlq9vFJlEoEF8janI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-29-2022_1648513671042_0.2454355924471121"},"_hasShrinkwrap":false},"1.20.1-beta-1648587090000":{"name":"playwright","version":"1.20.1-beta-1648587090000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.1-beta-1648587090000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e55a3ffbe06fcd5904d7591503b52f808e7c4ba8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.1-beta-1648587090000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-dtT0R4fz5Y7N5OF+7CFiO4iYmr/bJFfw4dunMHpgsyJkvfDP+0Q1wJNUwFhIWLvtcolZhBUYC9sISD/Kr6bWhQ==","shasum":"4991b7d54b19965e13c0b02fd546cad3452fa087","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.1-beta-1648587090000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQ3IOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmru4A/+Os8op6PpOSR1d1hNuF827HqVD8GnvCCJxGru28nhGG70wyva\r\n7roGZZ8+4g/TQ0FVTwNuiG+cKE1QCl7c/qPTQWWjvJ1TcvHZ7RmFlGyGX/8c\r\nD5ziUjvaXld/3jAPqS6ZM3PTNA47kkKs3NBtm1x14K57iFJJ0mK5/JBpbHpb\r\n7kxc2Fq2q9sV7EQrxv4sm0rEk9S+5S6rb8Q64Lx83BlzdHDivpUYRdgLxZUQ\r\nQsMLK4VGE2R368AzX1T1gi/QPaWGSjrTyP+KRm6f2xSVBcfB/27EkvtPiHCz\r\nQ7zONBVgh3Ks475EcCKXWhVKOOOHERBQeySeGcbCHIps0ZoixkXFWfrRqBbT\r\nXvgbEcvY+xEAJTstUV/0c7u1imvGg1N3W+BNSOAh/8mQQ73npmTSiDaYBOBS\r\nQ46DhyZwzD7phjTe3yBwRYVbPTN1L/5unKiSzaLDralroZsBhCtS0r/VAKBm\r\n11uwMfK0wTo0mdmnOtnMUZOtK5o5L+ha4RZ9UPKiCMfAIJxs3rbo5PblL1Re\r\n2aDEGsbIPZRPW3J1FnDIGe8ea6h3+6hpCvWWfDaviwxSwbHC3MPFq9ufiybZ\r\n5EEsvanPE0p+U/wT1oIutwoyIWBKMmiviyagV5h55Fv0SA9lAwzvd2/L1y8U\r\n5bUbcH/B2rdfUUTvvvA/xMERyFmP4vzK6LE=\r\n=Yhh+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC/JBQtTOn/ojtE9yEFtAZoDCwaiS+3as3eQfjbpcnbgIgCkxKn9llESJcmSFEJPj49OJAePHOH44g47Mj7/XVyE4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.1-beta-1648587090000_1648587277805_0.176430581840052"},"_hasShrinkwrap":false},"1.20.1-beta-1648590385000":{"name":"playwright","version":"1.20.1-beta-1648590385000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.1-beta-1648590385000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4eb6fca149dd94ecf3128b8a3961ce3715c25b0a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.1-beta-1648590385000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-4vxG6ladNRVu9ku0ofyCJA+rDnwdKWDDO9wxddDtxBSMJNho5DLpueLvFjNGMoFtGk9WwWvIHTnb14cBqeI/Dw==","shasum":"b6d5e4606f7a05a54e1e5fa9c4a854b3d0e4644a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.1-beta-1648590385000.tgz","fileCount":9,"unpackedSize":24046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQ37jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2Uw//VW8SuT5ltkaYJ7rOx2dKEksHqcy2SHiNduDieDDzorYKEnXa\r\nBXRmD7hw4WCTntCCdQ+GiGdEPCVCN3xBsh2lsxYerEMHU1JwxfKkdTA2n4QY\r\nsXvVFPaLg2ccpwiUEjPs90tIwgQrmpyVb2VyTCktpQoLIpfOgZrE5y/7Gb+v\r\nPjfQcDjp0h2edy0gIP4QpSVdr2EarOD/aB21L7kAzEpP6rA6/43aeF081map\r\n0Xai1HB2qpqEy85JW5UI01aeScanng56I06AGzcL3dboZS9so6FnbhcdThXW\r\ndKiCrK8eYTo1O8fKrBbRt8UGYPWvubdIdrd6KNJ+ypuMmE07sXDomztoS1Sw\r\n8GF2TMUc8S4Sgl6Q4Qox4UDHhdF5U2mn6A3R45fXvKn14bog1KPro7zC8l7H\r\ngsi02OliIMJyniMNKY9xj10Di7JYUNRo92Yb1vrN/adsTVRQxCyWiI+Qp2mi\r\nCCK50rW/wBvLRueyAblTZVUKZ2FPUDOuTapBu5zXGoOXz9+iazmrtWdAJ+IQ\r\nc3O5zVGR8ofBYPXcJqg+qc2tO8ga3fauXDKG9ZNPUkubkBskGx11cpZEcD0s\r\nrx+mdYVTCtagSyYK/OVosE9kS/ATQpU3395YdLfJoJRJJvPOP8d0fqGwgerw\r\nj81yzcPhT/b7Y3AUXLH/DKzqG372iV/r/gE=\r\n=01na\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAq8elidSmX8QXqyxC++I7TqgiLp/Qj8v91KK/Ha/U3vAiBpPG24sg0i/qW9cnWBjMqhqMY1VO8v47+Iq1SKkDscpQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.1-beta-1648590385000_1648590563065_0.3763935913781622"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-30-2022":{"name":"playwright","version":"1.21.0-alpha-mar-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5e17ed137bd46398238bcf7039e212baf69541b2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-30-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-w7XFQ9ljoU+I6BMHQrVyU+jYs4p7YFG3uAuApjYVNVdoSTY8Hd7ArVxab7fvIwB14iTmjcBPfmtoRcM/CLmASw==","shasum":"5ca526a7bc691d7a2d44cf7c00b69a462ccfcc9b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-30-2022.tgz","fileCount":9,"unpackedSize":24044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQ6LpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNJBAAjbT+dGRy8L1MUK2WmX7Q2u0qDgbAQANBNbGQNALO/Nq6HCWP\r\nkD6MYv6qDeILnl47mm+uAoDQOFZZUbdKX66sRRMwAaHKugYsbXrQs9khfUgk\r\n12dNr9bHHT+nZl2UumqMGwyJEboEb7+W6FaKNBljg981kLoC+fFvJ/85IUBh\r\nBTnDU5GDYO1mRM4LRKYQW8mj8HFEs+4ctFxu7VwkHJM4i5mwnGrOk4aNstsm\r\nkoYOiF0cGw8bsmR28elIloKtZCBPRwYlIORdRD/xCm26SHMtTQ2AyuTlJ7TT\r\nG0GRRqD6N9Jm+TEzK/onBsnK6WtR5B5eV0c4MnL/8RWXqCryQ3hVZWgY9Cm+\r\noyuSj38n6tvwTROOwh3bfE55e5tuZvpqVVsN7Llpw2Cvndta/t4J2v/e+19a\r\nSUlKvofIZy2NUgyXYrPSJhxq7qHWQ5UDE7cvdU+1Ds1477YgkE8SIGBITDkE\r\n95YnPsXxFT1jOjaUzm0xwq1A1JHF43s2qspm6uMZ4k8byG+wnTJbJAmKYFiD\r\ngwtlQ8Czn7nb9mpRwwrgr1KFSKX+91D11GPe4dzjoN5iz4vS7OOZYPjkWWdw\r\nLJPBsGFPlL8mfe5qHHftTSsT5dPiaMul1Tuvk4HLC2z/j2ANWfIs61nf9L3H\r\nNmzESvfHPYO2nBY+nkMoMuiXcCZnm1d0te4=\r\n=Ezvo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTrzjqeInvGhTIWlnViHnMQ2SgeXGWTFWwBrp//ijAbAiEAgy4Au6C8h8mXrcNsMJ3LtyBXMVbEOqlC+4dCfwasNbM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-30-2022_1648599784847_0.5861929736956382"},"_hasShrinkwrap":false},"1.21.0-alpha-mar-31-2022":{"name":"playwright","version":"1.21.0-alpha-mar-31-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-mar-31-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6157c3e7436602472630ee35ad6fcaf075b76277","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-mar-31-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-TUCY6E0rbFcvDX8Bsz7LXYWKuPUGiBuh3AKU4qFE/X8Ms2GUGDTQ4CoKRPWGcCmA8lP52axHn1wPQtqF9A2s+Q==","shasum":"1aa9a9fa1db4c7b28373b6529ea05e443ff845d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-mar-31-2022.tgz","fileCount":9,"unpackedSize":24044,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDPw+agCoBl0ttDZIoO8ipuJ76V0lMMd+seKt7rqoXSwIgUTM8s1+1BkBNdfrSk14545VklWUWrQZNXRs/wD7tHcA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPRyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqt5w//e759/AOS/1d4I1JuEbMmrzt+ZtkElwMR2coHr1SMjTFFNtao\r\n/DhtohTv1EKQZPH3NE0oF51FzE/Se24fYRkzk+qtHKketUj2oPy9MOlw8G85\r\nD9Ue6E14ythvgz37poKh1UZaW53QyJjc5BdX8rJmkW58wY3AsgP1/CfcH0UR\r\nNhSxVqivRkMULeDRThLWl7MXLXMDUIVwigMiMV6BC7cVbWyxH0uh2vl9qpnK\r\nuX3dPteGqMMImThbPunY060bUADcry34xFxugXiAPnqCSYpInPZ14M9uPLgK\r\ncbsNpqIZbLhLZ4DzWXE2L6l95WHFklEvmDgZMCy3z0ZspiUWTZAWn3IYVOni\r\nqYI6ekS/Z+qhW/5WGO+WJ+WgPd2gxv67OYzWu3qksAP09Q/AnRICnJI1HTHE\r\n4N36rPlvoZCJ5ZDxoJZfP657nITAte2BjkKGVFCbEaSqQiOB9EyGtfS62u7E\r\ngBFrVFC0fzBt2nH87XPtTr/okkMFUmEXwcUyJhD2dWN2g0rm1JVcevSu+Ohd\r\nwN7Q1Dkccp/K0PLu/p5Fn2r4WymJuvdPvoAoDgRhIVITYtD5CiiiClWnvcGL\r\nnE+cpkeui6Qvkad2n2NbzgeNDzKiry4C+5x+rJnevwvqZWDI3hIsft3qKzpz\r\nhCHWX4g6R8AeDLdWNQpvg7QfFjtel3lGT+s=\r\n=ueSL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-mar-31-2022_1648686194373_0.6674518170076988"},"_hasShrinkwrap":false},"1.20.1-beta-1648766739000":{"name":"playwright","version":"1.20.1-beta-1648766739000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.1-beta-1648766739000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"88e0a3b72c8fd4264e847912668bff7f94131845","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.1-beta-1648766739000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-evd2vLXr9uG0PqrKqg/w1DhxprxarEi6hII3SyMfV8dGDurxX1fIu+pduck8M6uL7fKe+YfcxYm54dLs8nazAg==","shasum":"99693d6ed947ab46a73d3cbb5b3416d7193d3889","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.1-beta-1648766739000.tgz","fileCount":9,"unpackedSize":24046,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGIVaHzFjPuKh1r5eg/BTQ8P+a1SBOfq3vwTeBvSuBi/AiAq5vmfKbURt/VcN61br1+ze+aDAi9A7KRvNVz9CN0itA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRi+yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4cw/8C2L05lV8WNUiasns6PmY7w2mqMmlnL3uPUnUghwzUvAEqM1N\r\nKI1D06Om1EeOzC/4z5Vx2ENopt284a6TeNT32PceXIwcQeWl53wm2pH94KUx\r\nUOVY7eyigPIEZEkt4ZnMXelbjw5fasUjXvDqwONspRPnFwVxcoVSRYd4qxRg\r\nQ79KdU7NAHzN6ScxicyzXTLGO6dLr4hKoGTOuAfqPernOIvxcFYaa/42AgOL\r\nJbsZic6x/MA1mKWkrr/eJdgKi3ewiLybDp8iWbrxhPb3d2vlquFtJlFGIzXW\r\nBStUqBahARknKkIIIKYlQdlh3T65uVpxfjaRUUJxRYF0Swl+dRznCR6ZMoxj\r\nWcfHwn2TFC4BQ3LmZkfAmXFgb8guoAonPMIPiT8IXuR3/G3mN8z94utnzOME\r\nKKehm1TnQBXje6LWTrtOxqyNypRUTwYWV2ISWm8fzkZ43JHvfY7y9bHyOD6V\r\nBWXqJQSQE2XpTIHKE7drDqv1XyHitPGj3POa3dPI2rNgWnf6JBYLnqlj/mdi\r\n4GkQyFONQxRrEl+ye/EFcvegS05m013itvSvVu3jJ3TDMp2xtV5069iWsGU7\r\nb/eVxCJA+UCVdNX3Tcs+15DL5PxSFHw7q45qEQqCIfadD+tBDEfN5w9SWpKv\r\nLYUMZkPZmJ3/YxGsTLuXSmud/W35DNicVB0=\r\n=NdMh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.1-beta-1648766739000_1648766898089_0.07791212976467587"},"_hasShrinkwrap":false},"1.20.2-beta-1648766766000":{"name":"playwright","version":"1.20.2-beta-1648766766000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.2-beta-1648766766000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4929.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-97.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0f359b9840df7a9e2af5da3624899f42abcb2e3c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.2-beta-1648766766000","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-12WtLBZdAfuhJWFBbwEg8YLEQxyGYPtuIdmuOXKsRpx7rYyis9GRwJnlnaIJcoFo3gD0UrAuNYNRr+WRrIYqjA==","shasum":"4ede25493040131d5d30895a749910bea016afa0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.2-beta-1648766766000.tgz","fileCount":9,"unpackedSize":24046,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHOgBLNumCFrcfH48noFI2ZPVaFdwI9icHDKYt324FkQAiEAuDUR648iMtQ/zd/SDksKMSMt4ioSW22CA+sNncnCenc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRi/fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeCA/+L6l2uLjM1silLPTLOGjrFWFdjPu1ZDjh3IdBpeqYmQTLdbna\r\ngAornRA3L+ixILHXK9ecEDTcbFJ2lDyXnuNNnJiMins9pFtdl+SJkNI+hnFN\r\nOtAaAFXByhuhz/ldpw/RojUEsqnDCQvwhLxU6vOU/yQv6EnetFln0ebapE++\r\nBle6AteoR8YE64eKpZYIvajBuTYI3cpuGRvehDw1pBPkchKTKqE3xDdzKyI6\r\nSSPRtKCFCO1gB+GkIJN57SJji+GRJegrYrjZSqWU2fTX8YyN8riYBgfhjktk\r\nUYMYigN6EdSMBw4vXG2r77hAe9gEjVIwxB0s4fDCAcmN3txwTendZ/72lBMN\r\ns4xMjiyzAVzm0I+pNAB8ky5/VLXzQFWL+3YCHPI/u4OKLsFwcSq5ndP2ySCp\r\nsEtj9nldjWclgV+xxfqqJMPw3EcR7l3sfaYv9M9bRVEeGXm+5h7hE84p/HE0\r\naWPEQ36cm6ZSVJz0nI89qlaGGwVxjXQ7VM/EhM/BUWGpeZhhUpYP6zZe+IIC\r\nZEnUUwP7CbB7Pn/ur83bS9bxsgIzNjprdLF1tsF0jelX9jVg+gO2NNN3GBm9\r\nMVLHG0Z1CspOrQtddv4N0XzGFDAslmCxzgDuvuVoltmCZE8DPQr5fJtgNv/T\r\nns4/Tv+zR0lxo6ix9YVy4XSJs3VIzAXMZag=\r\n=r+W5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.2-beta-1648766766000_1648766942937_0.31296748154290066"},"_hasShrinkwrap":false},"1.21.0-alpha-apr-1-2022":{"name":"playwright","version":"1.21.0-alpha-apr-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-apr-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a02384d2ddd8bb4a990e1b02516acfb7d406562d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-apr-1-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-DM3x8S4v4MEVtjCHbX7qZ6bbzC0BB6cUvnejEdzRo725rSzycYlMPP1ki0KDTWfIlseqraepWqQDlMJMAkDC/g==","shasum":"d9ca0d72940646f5954eebca9683f4372b185058","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-apr-1-2022.tgz","fileCount":9,"unpackedSize":24042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBQGkJJdUjdeuhXhZFxIvwT4gmkwt4NgCeIQlJmOVJpAAiEAwN7O+YZbsJ2x7X8IMdvTDaz0FYu2brYxHrzc30hsEwc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRkaAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2tw/9H2dFq7iqKOBWJkSYqK/08HQQiXMI/4+jFbUSMe55021zmq+G\r\nzxwx18UFSnPfQM3+014ueyiwepwkUbj8l4H53yXZxyPQkv96zEm+mWkAvAps\r\nwelLmSyRVkCUv7gyqfNovdXKIPyxDirtCeDv3ecFzxf4J51D2th1oqmqWIT8\r\nD+T7vYQBN1p/lS/GsqAuN6vMeY5dF3xg9w1mUP1voYq0YrI9sz5DeKnSx0Xb\r\nczE6oFsWEuRgPIY/sy1L7EZtUDhWX5MtYbLdE6FmjrYCudfnzneTzRanbVZF\r\nomXHJjKr1qaQ8IwLdfQK71S6SAy+fe5KGmcTA8HwnPetsvjY0XjplAsJLStU\r\nD41adF7VZIzK12l2zq5vgp0Cs6/V4j7dSieOzgztq5VOpVits0tdkoGjD8Tg\r\nvFnW7uYCSbO7Ve1dd4jyesneLyUZW/lG0Y2VIfWAbCJJvlFZjojR2G4CCTrq\r\nLKOGhN1VlyvbdEjbvYZ1LJ52kpSKGxqQ3PDFe77VF3pczXVfo23RZuykAxFa\r\npuGiDRm4M/FGxvVymXLe5ThdN3d1xkyhACS3vo0BFUayKtwP2gMATh2JK56O\r\noShvMTRHay+Kh0n6/riSF+9OXVJauIy95KcCIKiaAUjAyBoDjI28Fsp18uid\r\n9dlzTw5WYBUxczUel4qFgMIYtKwcYgwUviQ=\r\n=ybpq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-apr-1-2022_1648772736616_0.34252948800522587"},"_hasShrinkwrap":false},"1.20.2":{"name":"playwright","version":"1.20.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.20.2"},"types":"./index.d.ts","gitHead":"0f359b9840df7a9e2af5da3624899f42abcb2e3c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.20.2","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-p6GE8A/f2G7t8FIk/AwQ94nT7R7tyPRJyKt1FwRjwBDf4WdpgoAr4hDfMgHy+CkClR22adFjopGwhxXAPsewhg==","shasum":"6ca52e102e19bc44be69a2d517b73c97858aabf4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.20.2.tgz","fileCount":9,"unpackedSize":24008,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlR58oK5rStS9UEf5ssO8r/HTEeykPrDOPUcHr3M7N+wIgTINd1Iwp5mJJ2o5fSB/4FPxaXVvTa3lMK7MF2AdLmrg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiR2BJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5ixAAgQws18bffsudOZz2I7ujCCZAcisJArM11dDXu4jj9YR8MbZo\r\ndRWo+qFcfVHUgILXgNmC+GvJdC0pglXL6AwYjr6EUPD5nucOQ3mLDz3oExqM\r\nmRIb4YI+MKX4O8kw8WpLzJ578HHOo8vN9TtyasItfzOLOY9Otg9yPhC5uFuP\r\nmjfvIk41pIMB6muKm7qNe5btsht01ABR7hVXg+yPg+YZD3ZxCYW/Wk8l+Ky8\r\ntruQa+6e6MRLZjf8F13kC8fcd/duIW9Daz5ZZmp6JPSe3/g4kNQEeS4U7sMI\r\nBULwPtCw7Ek+/4SVXkXx0lS3oGtWog9HAuL76xD1jQWyB7c4TT+wTpmj78Tt\r\nCmpHhj6XI7Uv6ZTqTnGkGfozJljocR/EOKzw+ngI7VQCaZMyP29ZvGKT19Cr\r\nsjjJZKl8AJ577i0m7gEvu6TAJSJfqWau2LbzmLdUQG2dj2D6CWdVooYoOAsA\r\nnZ2sPVgExBazxDxZigfeLEFXIURYo5SQ2CzQaBuNNig4ysyuFokYAA0sFFpf\r\n5x9KXVDQ8WzhT0zJyj/TJXOXEUWvMQB9wpfdD2cPrgEC4Ha9qmkSf6SG+kxw\r\n67BYEeoS0DTKNwZt8nsJ+ZWUBc7DCT6f/8kHFjMrNY5mpfCiHnMzejE4XZuf\r\nHxu/InmaFMKphlL0cXQNBwiKxK3qtI74KNQ=\r\n=CEdl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.20.2_1648844873727_0.47506461915357145"},"_hasShrinkwrap":false},"1.21.0-alpha-apr-2-2022":{"name":"playwright","version":"1.21.0-alpha-apr-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-apr-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"55ee41c8482ce48c10a4fec47d1c1464924352db","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-apr-2-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-29UD8B7LizJrTZ8BHTqOb0ObfY+HB1qfdNfv16AKcJmIRpModOIt+xcEwMqtaPgLgG+1dKvAvo0YTuHeJlIetw==","shasum":"add3adbbf17cbc10a694c57be845e825369e997a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-apr-2-2022.tgz","fileCount":9,"unpackedSize":24042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1gMq+wE1YkkmF3jXNZyBxSX4f2COWNKXMt4bSji8vWgIhANzy6UkDX3vCTxL+OGbSbrdqCb9w/gcrdeGL6091PM/R"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiR5eCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKJA/9Hmv9++jgZi4rEJLxI4SOYGZ+AJWLvi9Kb2ChldfRLVRfadTD\r\nzTizMEi5gok/wuwQ15g6bu7uKS5+m96CA8JH870fLc3IB6tjDEtlTjbn//zc\r\nF6YcigkQMUNez6rly7NJDH67kG/8ZaS1iPWAZaXQfBrk+UppOIZnk45LUBBw\r\nAPyQk03NIew19v/IjCXyzR91fcuXTGNfUmpkx0A1b58Ea9yVYDnZSouZbnnN\r\nFR7Fgid+F7PCBHpe1KMqHCs3dEpkGn1oX4lcsGKCDtgAAjjGVhpvLiLSATT1\r\nvT43SoCOAMVF0vC9rSHFURJ+T6IzgtSw2RjinNj06pFGt3bFl6+WWM4YDHCL\r\n4Jym59/15M0jMYb7MAvoCTa+jNxDTgN0fhJTLl4pcnuibIWU9Us9CSUIEiVx\r\nl+874+bO0oP8i7TCG6gi5aQxdk2WnQoTqUwHDRmf5CzB/2U1QZONoefzv0Yp\r\nX2SII54B1jlWnW6QK/i2x/4zqIjYa/89sfSGYE0/9V7KUqoEYAQlYTzL1fxq\r\n2FugRxnnwOKCm5Ng2i1czh6m897SnquocFk1/pKvntvdpigseZIqURCwKuX4\r\n072Lhj4xlGjJwzcDv+HOWFupy5FWnBolL60WNz8D+6iIw+7ogB2PM0N1cAgM\r\nEwYniiQtkoX0lr65hwJzhblWVPSzcgyCW3w=\r\n=QtiJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-apr-2-2022_1648859010080_0.1720095304771807"},"_hasShrinkwrap":false},"1.21.0-alpha-apr-3-2022":{"name":"playwright","version":"1.21.0-alpha-apr-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-apr-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5d2e8918d8baed4c963fc7897174a1501bfce1f0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-apr-3-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-9MASramS4nqBAOGX+6Zpj0HiOXidM1ekbsQ0j4pknKHNTDZ8Iep6WbLOrwDSLqyKNOgMFqdsk4N/3zIVzcBKGA==","shasum":"fdd5c71930e279eeb83db855179f47e8b4feda46","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-apr-3-2022.tgz","fileCount":9,"unpackedSize":24042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBZqhsEMX/ZOUDNLve9ENRp2K/tmW1/3U12mfNtGEEegIhAJhSMgruz1oa8c6SNdyYEQHlmcYKRxTaquAENWR5h3wL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSOlFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEhQ//SkPHhiFsYNYv8Z+w70wn3lwQt3fym0YWBEiHDaHb9qXRGWwa\r\nznyqA3/6E6qqoufQzuL34bUP8atzKgSgV1yHcfDLD239OS5p4pDqNEoWaowS\r\nszJvxaNzUyKBz3+CZCCQK8/gJN+ZI24Jd/5Z42BruhkSTCUm3bshNF1OHwzU\r\ndKDY95t+ySxOC+cMDhB0qFFqI+nGlcEaT0SokWD6IrYHLAORRSmq+mvlXEhW\r\nswgaMVIFHJb+/mePOaEu9pqU/1Tvrn38/tR8kD7qFQ9D3yY/MjfJKLvAlZXv\r\nJpAMDvxmQcxWBHqvrrgvoVV6UotWxInF4WqL/K5QRVQY1qKs8YdGTREiv9kE\r\nECRfa8yQULZZC850hcbBz2+MTHZmFa0MtfZq68td1WZbXW9k7WSK0MF3vBU1\r\nkB/Y/P9a4Kb46Hy8AwZAg49QSM2rzgSfJeyqJ3pVSRNhMirNiyOdvxONFZJh\r\nU7nt74QoZ+W4x3Okd2GgznHcv/MnNfvJkIfxQ+z9DNmOyy2dVO7bm1txkIbx\r\nQTN7tqm1axDhIECOUT9uhpvOkgsXxqal2vPcoGax6t8hM079uIPIvZNAJhzA\r\nxjbmo6iy/26h7z1VtinSosIFjuAYIloKMc1CtXZfAcYQv9LUG3KaAmzZ0Eo8\r\nY/Nw5J5CfkrvxHiRV37xbHQcbJXDz9ttvFk=\r\n=Hn2t\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-apr-3-2022_1648945477178_0.8775148901626133"},"_hasShrinkwrap":false},"1.21.0-alpha-apr-4-2022":{"name":"playwright","version":"1.21.0-alpha-apr-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-apr-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bcb12fcf7fcd4fc7aebdcbaf99c75d04c186321e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-apr-4-2022","_nodeVersion":"12.22.10","_npmVersion":"8.3.2","dist":{"integrity":"sha512-hH/XyPcyjl0cTAil7ajNcLQ0RqyPmfcT9t+dHfzn3CuVet5uBArvP2+BxPi82qdP8IDGW1UJ1Ne7jLDVQTtvFg==","shasum":"66a20e72e38afd14b3ff2157675e6934f158fbfa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-apr-4-2022.tgz","fileCount":9,"unpackedSize":24042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4IOyFaprjqEJ5/ewxivITgD7upPClX6IpHEDIT7lh6AiEAkKTBZ2CjHF03bs3viOF/7a786sZfjLzw4t98oWSIvbE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSjqCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlmA/9HQyp35Q+a+puzZ19udxx5CQQi7cer26BAVXetEhZCN6/FOgS\r\ntMgIzZ9A77vfb14S/rcjeoNAOqG/afgZfIq7jOAe4BOjt4+O1yvOyCQwBzuy\r\ngdb/fRYq1LV1PxgCG/6ttBEqM/GimvUz8Qb9j9YL28elLY8orzp5+ITHb8tB\r\nSwdPVGVXfcCDgsdd5J0huIr8DJw+Mf7JxEO9wDIRzZ5sWAYyMAXFpWv8hCqX\r\n7BgaoFa5S/cleosuRlPuCD5O/jqOznU7SLeavFo2yJ29TUB5U3HzXrhgK17D\r\nYnzm/dzcIUDuoqT6gCLW+bE/j3p8PhO+Iri+XGI38afo3dLq/UZufaJVES1X\r\nmrZAvqGmeRy0SsuczkR2YoZUDpnPrPFciiJolfglRUXOojCUf1J6flLoPO2k\r\n7yKZ/ujyMilT6X6Fu/TJd3ha0Dn+161epevtFTZb324hBkBvepuKwTVmLXi3\r\nzT45mDR9nR9+mrCPe1xLf0+KOHCfxMwlx/FoTvVP4RbHFtZrCUvry0kPwZGY\r\n1XV6eMGASl2CharAw/9t7jOQgsHjutJwLpwxRjfR8xWHsVIe26VUgg+xHRAH\r\n5dGRgidytO9U/Hp3obbA4MDmjuf+AjZaNKPbJQ/SUimmgEtGRrkWeMPmVpte\r\no6HPl3w0e4z+OB0MG5Vq8Ddhzd6eKocxHDU=\r\n=JiCe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-apr-4-2022_1649031810426_0.32662476507688476"},"_hasShrinkwrap":false},"1.21.0-alpha-apr-5-2022":{"name":"playwright","version":"1.21.0-alpha-apr-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-apr-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a71c151438fd50c72d2bfa44a18d041cdb17864b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-apr-5-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Ts9spYSoQAO2y5z32zMqK5ncSv8NI/+kMY++T6jJqzYZ/xdOZWx4OD1qa6+7PxO6s6COUVB9D1kHduMhvjLrRA==","shasum":"acbc6edd65acaebf067d9766ec55ef10042efa90","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-apr-5-2022.tgz","fileCount":9,"unpackedSize":24042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiMLOSM7g8M0FOnsN0v333d6/cvPPZo28Iw3q1LXGrxgIhAO62AZQNdN+WLPbARMprYquGZ07fIGT53DlT6+CLnr58"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiS4w3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkZw/8CyyeUWHQ6EOOcNjbwjGeajEogsLJZhd9YQy5j4nNVargcN69\r\nAXGxl+Vdv5YaNEML4+EvXAvu+aA/iA6HS2LuJkAgtWc3JUu+vi8PDmjVr3cu\r\nC+kv7RnHTvE1Jvpm6nDB/5PPzZZxQxnnaNWl3P27XC+S42MYZXNSOBWv6wS4\r\ndlTWO82XVMMVeVSYsm+BuzlS1ivQqJngyTQs6BhuCg4WQa5YuFd2URHZMcxb\r\nZi+F1frsO81Q5CTD3t/Av0dKaEFi3taeEGoATUvLU4lAboRJMXCC6bt04AKd\r\nU+Ehh+R2EApwZUlKG84Zw/TEr6mYQiWoJ7OoaLhFpjjukhfTfQIAW0m0wkeP\r\n+5gZ9bYk1tLk9xN9CaHJ0wT8N84suxkDPMcu2eCVhkayGnRGhCeW0VH4ojnk\r\n5xavxpXY7Lny8fGe31ezlNZBmni2NVO0BQcYPvBRDqe5xhQLNXyGHmBph0uA\r\njMbQNDSLg2CbXnp6nfLbXvvC7L15VuShK5rKiqdktw0YxbLBwrL+MjnkM2zZ\r\naH4WIHei8UyHbHwllBNrfR4AP7J9EwlJ2QoXMzC/JhyTDi8FzraVo13tLUXQ\r\ngkhU3WjLhdbwYExJaOaniEfY4ejR2jOqYouOUKMurTVy7ojsO7i904y9CD0I\r\nPNHjqf0clhUgDHpd44UMxeTduHeemn/m/qI=\r\n=5/KV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-apr-5-2022_1649118262866_0.5652012432593323"},"_hasShrinkwrap":false},"1.21.0-alpha-1649130964000":{"name":"playwright","version":"1.21.0-alpha-1649130964000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-1649130964000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"23d9dbc011711ed3b57a8d9d63baaf69b5856780","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-1649130964000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-BWvaNySPiy419U4naj/SUqdirZEgghPR7jiFUcdEtgUFmtzZDYsMVy4N4ldXlsytvqGG7Wc2OC41UnRxPI1UXA==","shasum":"a6c6a69838b28fd93b9b005d96552456f4e068ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-1649130964000.tgz","fileCount":9,"unpackedSize":24048,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7picfwD4PlNuVBHEeAO5RGfdTvL4gTQMsz13GWa6CwAiAeabrtQhXd/Etq9pmfTcmMijsPdNiuvtRMhiJ+a30A0g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiS77fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr77A//aLOTd42k0RIE6Y67i9wTTNC0eMlX+JpkgbTEKnWihtQDFUpf\r\n5/koRR2m2gxVrLWS5FkxRAFkLqEYGVSVczRPjRLDTjXu27Xzc+2QMrn7pgRd\r\nOV+VPgr8LDm5v3MCyLMZa0A/qvUZUknMCUnWRhNLbRAqqULX1vdBw8VLAYbW\r\nHTicHXciDhi/lCS7k5ru0nwdHYT1rsl5iRmatvzOtx08eqJcq0WWH8PyKSXm\r\nKv+x7DEbNQO/a+tTMPpoZhm2FoIwEQQN40AlL5J86RV+MhzutOrk9jNwSUuV\r\npyWHCX8dW/Napn0Ai0gaFw+Bkr3JLf8BParFETcsEmg/MbAz760nDDxAXuii\r\n8xmoB5gGg9d1SFyM8JsJ1oTPGZfA9thVvmlgBg2kfRQRdXla9OM4D+209hdU\r\nUHYo2GpsFyKcaDlx8J/YPYYsByrwL9C1udp7LU/HL4y83YtZVoY2A4d8Pid4\r\nTqwgjMMTVZ80C9DW67PW7bHSLZSD8whbgmekQsNVS3TgPstaFhbmy3GmxsES\r\n80p10NKoHM0RPBpVpYLZTExi2aoSBQEj3UTqkYS+NafShUHlSacJRxEnNuYx\r\nQFHdEFSQwmlR/GZvOR+hzOWr6MeUsbBC48zbT2OUz9zCrnIhCUYzrdIMJvcY\r\nAn81j3maxis8WlaUMWaoiZIkgjoPYAWZGso=\r\n=OgpL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-1649130964000_1649131231497_0.31080770337752983"},"_hasShrinkwrap":false},"1.21.0-alpha-1649134399000":{"name":"playwright","version":"1.21.0-alpha-1649134399000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-1649134399000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.4955.0-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.4955.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a2f94f633600271bb2dbcf0e8b74d1409e61038f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-1649134399000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-85CMJ3SufShKuTf2hY5YLt7qAe7ubfKazR4eNIR61+OE3UDnnNUUPlZQvuip1OJm8r0fsKxdkEoaA0K6ribJ2g==","shasum":"9a900e7b4a277dd25e701c270f9aa41580bf2181","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-1649134399000.tgz","fileCount":9,"unpackedSize":24048,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8TiSZMk8G4KVULeIELoFO197Iz+mON5N88jvvRaDSCwIhALirajmj/aqtDlCmjvUZnovlV/vHH8sSr6SBI5APLNDx"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiS8u3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1Lg/+NZdaterG1SYPqDFEyWePgltDZgXugLJUGCVjbUcXZJny9u0+\r\nVq7AJqv1tTL2qKHFJgGFCUp008wj8ae/beVt7P41PmVMY6lq+UbdhyhOFQzB\r\nMg4UgS9MuQFpYvZnrEK3cm4tODF509e1eLHDG5dLE1Pwo5OKTelJvzIuPs84\r\nB8h5fUSeGNrRwQixXpjuGOWjagWxQZEgze/MbESwHM89VRj94cCROQgviuLT\r\ni1CM9rSPYbeny4JszTXtVjDEq35jbZSdK9VPTq963eZngsLEQrkX3LN5gH71\r\nsVccMoOc0L5m+lpfefir/yyO2DLRE9qrEeFfnaPk6nm9O1UJLzm9cR1ueEV3\r\nXu2ka4cDOiZVbEa0I1c97Co2kma1JriEo+B88mXdHhScypLcUc+0BZQjsOal\r\nCu6cNQfRdy+VCagjUhFj3+sJOusgb5bqiRhTX2r5CnWDJ1olW+d7GluaptCR\r\nFx4sCZu7k2DJ8suZCV51++tbcOO1ixN37bDVSCTYz3MX4uWlb0SH+OWRWjub\r\n4D9Tr9X1GAtg2qBXlIQGbdeK3YlHVee1nmVr+vgWW+iuO7Z6kC/ptAe9OF/n\r\nhUdXIoMJeqxcBhzPShR0aypT4hifJUqij/NESbo39Uu5ZTCo0TA8krYidJDl\r\nTJ/Bt+vkiRYXLoyPxhBF7w5G0j5XXRB9Uzc=\r\n=Oz68\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-1649134399000_1649134519704_0.5298286516066784"},"_hasShrinkwrap":false},"1.21.0-alpha-apr-6-2022":{"name":"playwright","version":"1.21.0-alpha-apr-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-apr-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4bb563b01557b1ee2a2c43503895eb10394b697e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-apr-6-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-vXY+AIQ2u3gR7WXw90rc+jjVEwYF48GUQRyNcemmrkRispxM9/vgqkf6JGYuGCbIgR3efC+AuG6Uoy4rEcVIHA==","shasum":"90bc64c4260815636f0452693f292dede1db18b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-apr-6-2022.tgz","fileCount":9,"unpackedSize":24044,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGzTTZLyRIBo41gGt1X6i4NZSfuLGwIXVUHSgHmdHSNoAiEApOTS6Zb8hDSwk80YCwTVmZtFwrm5SB7337SgglJ95IE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTN2fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8gw//Yu+9NP4bF3eEYPwjErZxS2g6h57nED8YMp1w125WeK3P9N/7\r\nOAhPTyCTICjj3CZgMV0oS0g2bFfk8IG2p+TnIcZFlqKWhQS7EOMzMdbk1z8O\r\nsWDTNxOXv913GIhyggraaln3kpkLowhueaDnw5inue2YF0y8hzvAb5ChY+WZ\r\n6WDqjoLYoUyUUvBDguAb9ogJ64ShIIYMRSkwBNcM7bMu8TYL2uSiTSkX+xdD\r\n9+1ZUnBhwAgjQjarOpmXSDWvIhrr+qRV75YIezEA0yiaVcthGfJPWvN1gQt8\r\n1ikFnMFiSjKzznLDATbQssblwl0F/ocT6OqO2O+2F+XTd6Ki3rcDhY6RsWyj\r\nE362ftyh0LxIWnfnLtV62WoXSgDDd1yMU5AMyEy0A4r37W4KcHgs29QDbDWI\r\nOFT/0Yc/2fX8kOqrwf2ea2yippC960S4xQ63/EzYk4gr5fUmx7ScNtyoaedy\r\ncf4dE4AU55t9IGurwsVY06iqkqO7SFS3DrRBwKX9SGxaSKW/2t/xteRqlyZU\r\nv90jdtQ/LWmVHR9VebueKSVh4FKlgn+cTGAJruDdt46EvOZitQyHDrWHX8Bd\r\nI1Teayee/ruH70XI7CyrIx6Fn0FPannCKP6IawVzclf+q/S9mc1l8+r5Ly4T\r\nM4r4k7TUt8mHq8rRk52fiJ2rOJIFS6D/Hbg=\r\n=D71z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-apr-6-2022_1649204638870_0.7601356211164827"},"_hasShrinkwrap":false},"1.21.0-alpha-apr-7-2022":{"name":"playwright","version":"1.21.0-alpha-apr-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-apr-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c80365dd43e5c14589d3274199431519e73fab9b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-apr-7-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-smCdkHzZcrzKlPiItwMS4kWV9pMn6j+j+YocJkMTo6DLMLMOAJXZHQ3Zj1DdBhwfWtweL7K9VVrqM7SHrfIdew==","shasum":"dd53f2aabfcaf08137277d57b6c3dba0ce21d37d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-apr-7-2022.tgz","fileCount":9,"unpackedSize":24044,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWLi4IpGVVl/UI4VGqjyW4LBk3qwkrCNLdWDTl27d4aAIhAOoghJhluaZjYRe2/zADIU5/aBBItTn3FI88WLvEFQCK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTi/PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYGg/+NSzFsNAQcshcEMx8RWKFHIn+I2UV82bvJ0Cuw6IGRoPWlbyj\r\n5s6CnLTzB2OfupR2rK/q4RcbuKx2tPKbVNS04gK0UmXnwi+/FOcSd3WP8XS2\r\nAN7/1A3ytvl5K6avn2kxRd4bUeo2ID3qnl5ojeCdfaWGcWUkGp306LgkYtXc\r\nDEr27RLDayb2J0hHw1JrTayy+GPKrKuj6iZa9Ocb9N5pJbNwhjC7kH8TXrne\r\nv1R0BxobeFd3lBZvovGbloCXjM8YdPoOe9uokL8KqNaKpL1Bpl+Jc/oD8QpO\r\n+3UJUPtGV1O1eu+tRDiFx+Susa+VKpDfnfiIjT/bv8X4H0Iv7X5EIKF122va\r\nP5Ney420F3oa5nPjJ8zW4NO1vFvi73I53TXwXJrHRicJWUkX19rvCXKCTYmz\r\nctbxtyCXclLSJ507H81uJvdz6aRj+Pvnm08ITS40cBJJ592oAHNENu2UuRC7\r\nF5AUOp0LvuSf3+oTmJXXkzlWd/n4dM2yV1ee8H9tC4L3omF9um6QEv8BRIMw\r\nW5p6hCm1S18Rdysu1ChnrJME8nZOKhLhENmqq0mA551S7jdTvLdFK3lnaiux\r\nAnOG2ByyI/4MNdmz8JKVRbU3bGCmGAdxal+Mfm3uuH2RtJ7dWlEQcXABzfkr\r\nnH+nHO9wb2CNHuHtVjOO+r64iO7ZjhQtXZA=\r\n=6FaI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-apr-7-2022_1649291215741_0.1472438170498631"},"_hasShrinkwrap":false},"1.21.0-alpha-1649352945000":{"name":"playwright","version":"1.21.0-alpha-1649352945000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-1649352945000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"057b0498e6cbb6c95bfd15d81f0a994cd723151b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-1649352945000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-gzk218MjILoqBhXJXlNLWfcvlhXUH6KFWcNnLNh5B0YaTv2MI324Ak4yQv6dozlWKCEV3JSutZZ7EUDZk0viNA==","shasum":"1fbf429c8f3d21e1592a0da471256155494ba3db","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-1649352945000.tgz","fileCount":9,"unpackedSize":24042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxbMC3GMqyjCX/V+jPHsblvF76dZWninywQENxIHYjjQIgZMfyKfqgpxAHRDrNPucMY9ZwEgvbQEh43QfFQmWtg6w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTzYlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEwQ/9EagEmLvgvJ2zMzJXoNyfOhXVbluKb7d/gNVTn1siUJ17sB0o\r\nLTtisBQKmrKHjkPuVW1swi+teHwhHhRDZ4lXTRz3QLqYa9GORy0vn1Sv4aoE\r\nEz8bixm/SHjtF9lmdVsWIGj+TkCsPSwvYy5t+JJrgxhjEsltYDzL9nqNpX3w\r\nHudRJLXGJMkJNo1b3zRzlUBMMCkF9Didwk2jxTcL+EgtSFmXADd02rfdbeBL\r\nkb+gLx9CKj5qY5X2BT65RqjFdw8sXjBkSTmJFAOk1jH0/pXhaomxru2Stkuv\r\nzeYKvBOXoo71WoLPR7mvwHFOLNA7FTjOInXlmG3XtmzfawuQDXSAsHpPwjFz\r\nsNTr9caidPt+Gl5b9H7H3JwLj6PSh71fYLFl3m5xUlyvnRXhxTLDsTGdy8LM\r\nS52CDpXBC5D7R8PYY6ttDpAp79a96I2qiuUqcme9ULwOeMvCkcDPiUhWwsWy\r\n1A7ZMZ0NiKZxhj6QqKusp1G8RXj24YYC/Zqcisr1fL7v+DiIJWSKJKBIVkpW\r\nmJRo66U8BAXJfp0EQ4bigJSaaOOP4djLxcWmriObGzlrXPv6v3+f61WkNAux\r\nLqaFKv28jc1N3uCSxJedbbQUNsdypkUMufFR+3obGGNIDKQ24XOAEqjou2An\r\nS9yU3+3a/oqX71RXi4iYkTZ8riKg/MUvcmE=\r\n=FsQx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-1649352945000_1649358373191_0.5353838195110696"},"_hasShrinkwrap":false},"1.21.0-alpha-1649377372000":{"name":"playwright","version":"1.21.0-alpha-1649377372000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-1649377372000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f803a929e4902916ef5ed5cbd2f46db5c9807d25","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-1649377372000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-xD546irIBeA8oZoXGmcpu9aw+NOjhv1CpY8rWBKV46ZqL8QeSMjrWXu4cgHooxn94+tTfbqMVkFnPBz5Ix7X2w==","shasum":"5ef3fa27ad7e292839dcf0eeeb2a3052887a3e37","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-1649377372000.tgz","fileCount":9,"unpackedSize":24042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmEQruh4BZ6qBaK9R6BrQEu72UrvAudo7qXoKtqIjfnAIhAIchVeWzz99uVWZcNAXTa4df60GWboQ1YjYQkKjv3SO1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT4MpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVIxAAhcTBg7kDgxrERlWd7jLFCrSSmnr3Hmdv3rQe8B9Z8XL3M5ZW\r\nOKIpVZZ2KIkOd42j6BAMZw3NRrh8Kq1MOJPqWABB6XYDntfQv7cOEJf/72O7\r\nCEnetPaIUs7PVJ3bgHzdP4wy3W/hqaAHb30jneiIjdOZvXbFpmxmywuDdAj8\r\nqBgaR4RYARmNxAg1ueSkS9IiPxv8f3K4ZqoyzgPj3ZrSRaPavgZItIB+decd\r\nKBLMIsP3c9wV1SQ0e1xGgTQFXF6paTqTNQD5L16XZGbOZaSvzM8rBOhPLkDp\r\nbjlfYBk7LmWEg2W8BAoBmQ7L/v7Pv6Po05qZHSX2uuc0XmeL1HeDL/jsLQOt\r\nN2/vqlJDRyBXt+5dMQPNKH88k7BPCeF1Jilo73guLJY48EX3chZC4fqlwkrt\r\nQzM6/Yji28I30w1FNZW7EvmF2bDnyJuZ225g+vGHlIcXcCSIDE4RMFyy3c/g\r\nHE1VjKLgOiZZvzmFp8uh+4K++aULB7v+U9vnNstrcb23e2hcqBfWv3/hOfP2\r\nJVeZMmZ/WJtpXNOgVwBAbORfOZmceUihZkF72BoBb8d3BLm60DRH54ngTtDR\r\nQlxDmjleGV+jzQeEnJ+6fN7iFRjmYw81KYU+8onSrGvhB9e8i3LCm8iBLd9N\r\nyfTxmfbjDucr3wOXZOaGOe3MJiESy4FIUB0=\r\n=zcx1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-1649377372000_1649378088842_0.3043185046792094"},"_hasShrinkwrap":false},"1.21.0-alpha-apr-8-2022":{"name":"playwright","version":"1.21.0-alpha-apr-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-alpha-apr-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f803a929e4902916ef5ed5cbd2f46db5c9807d25","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-alpha-apr-8-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-1txWLO1rTP2Q149XttPlTuLPAzeDaSjAmD1z2MAnF1GO3hCRDu5isGS12Vs5Pfks9d5tuLLG+tbeDDOUroYlUg==","shasum":"aa961095250430192b051f3183675222a27094fd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-alpha-apr-8-2022.tgz","fileCount":9,"unpackedSize":24036,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGOSfNgJ1DfUyBiOrvvUL0e48CmZ0hadw1HgBfeOdF0AiEA55aoAdDMheAYP+jksSV3Sw+VNpPEvAX92Y3GIU4i/CU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT4NWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTOQ/8DxRDk53x1ARu1FX443htj2hDgQHH/UC+SlYkqP1I/jAO7p5w\r\nHfTDP+t2O/vPfKYFy4A9uQi7zBMJ8+QvHSDejCbJyaK5msTfMLaVG0BJGMSF\r\nhjJ/g3TQOQSp8oN8Z5MHNBMTquPhhD7+zJTgEZqzSu3MaLbnXFxVJe8atkoU\r\nKNwVs4HI4/m7yjSEGJPM9+b4JAYQCCCZhiq85PMR5Ob9YVQmGDRckh9CI6iD\r\n5iYF9HmYazVpwyn5BZp/lZLPlWnFzeiU5QNb3N0e++0fGU1sB6koYHVG/Bub\r\nxz9I7jpo8hzSzVE6Yzj9MPtiW2mAOF7AhBR+0/Bae9EMHEyUYKSIqzgAjCnR\r\n+Xt9tLVwKD6GBIJfFMx+yaR20yeaMekoOmMQxM+Q+2e2+dZdo9zG4ZH0+Dmc\r\nPwQLfC01ZNOe6SSlOdzBenZLsI2kM9CJVtJ5mDMxQz2EDTyg95xeh1bFbogn\r\n5sFKt6Opk6hdR9QY/b9fx+UVj0rGpwkiscbyDyV73zROgfIKgvRPZpqeEFX8\r\n7Smaal6S3cMrsGbju+78sbwUPKof6xYiXXOMGRvjbkELTwThi4Em5o61+ed2\r\nTlVezEC7m/i5bbJqHqVzm4bTebMrZXijXxCCU/Lg9ylqoCUeoo98Xca1L5Dr\r\nlUmpr1TDmujVEC3LHh2RJLQ5l8MtYaMyDo0=\r\n=eBWd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-alpha-apr-8-2022_1649378134520_0.8847082034823828"},"_hasShrinkwrap":false},"1.21.0-beta-1649377372000":{"name":"playwright","version":"1.21.0-beta-1649377372000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649377372000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f803a929e4902916ef5ed5cbd2f46db5c9807d25","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649377372000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Zcb24d16RLRZlzeXue9sS+LeHvxNWP0QRuilX7OvL4eMJbmADrpP1EmJij3X1u068XS1ZIckztslbjW8mzYpIw==","shasum":"087c5f83bca331548cb3359b4cfe19b92904e5ab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649377372000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3TIX/2Ov+EWFYjh79yNdA+KeVXefLyZUWPRSj0zUEFAiEA0CLgrs753aI9eDnBvP6iGSPEuYhpzenhyf4bbQ9oGEQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT419ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQjQ/+MVyzg0o5q59nsUgLaNk5Zok9RDvOcIrZrhroFLHEac4er+c5\r\nJSaN8qmByFLWnSubJZ9WYPZMVre57gU1mNflhNtKtd8v3PsZvJ2EyVik80hj\r\n9BqeB5JLRrR4GSN6zhoc6Wor0XU6mJV/vZBaVxzBdVsIbeIagxXoo7Hs7otv\r\n88vZCDT623q43c4qoPXZmbW5yAg5h9sNgWF/QXcEcBMxEmHzvaftYdGOXxyJ\r\nlKGdXORI6jm/7P0NX8EWsz09O5a6DGUinYBXIX8jzwp4Mhnojdm0q2zzcayG\r\nWKAbSDvsWgdOdqOgPCK7ZQLP3JNtL3zl25ScJA5TCPTmxy6Y5YEz4xtahzzj\r\nBJDDiXIm6+yorKUAbRo375izPKrZ3LoPTbqxZPIpjHgL6q88zHMEz5ntD+ry\r\nUyj68D7K3LYxDmuti5pOTSGrbzrAp0mXbHBZXrkehXVsTtDMeTnh32X2XBGT\r\nqzinNQ79kmbzGJm7Sh9PFHhKHxdaHiuogt0qxJnLJCsAi/yv05IJykD87FsN\r\npPGDPo7xqFeR+Cl46GGP2Btt7G7pJUtaDwspwz0RFNDkJM2uaRR8PbArrAvc\r\niwCktpFbOyzDSsRQgF0fI4R/I0Xsz2SYTRqr31NVxm7pAy28pl+XAblKXnTG\r\neiglt13NCybNJ+kgFeiGiTvOtQKZRkm+8kk=\r\n=61lU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649377372000_1649380733420_0.8961124319197236"},"_hasShrinkwrap":false},"1.21.0-beta-1649392175000":{"name":"playwright","version":"1.21.0-beta-1649392175000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649392175000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"18c8862b972475a13032c2f2a35afcc5e593820f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649392175000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-RBKz87NAkEYCAmY3ngedBQ8VjuzFDTGfp4CXg2gjE7Dt4kn1tOdqUDV7jzjw53EHQiSEgoj7e9fZyddwpEOLGg==","shasum":"c6fe966d45999248eacace7fa047e9f61d7b9246","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649392175000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlgWevCNTGAHvn11umyDJHmSxX6xz3am+AhRPPB092YAiEAh3jvdguQ2onenvUam7L9VyqZbQOFj67v6AQxR2kpDyw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT7qvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDfw//ayzqPAirNuuKX8lxhiwVVAnYfBRCJAJoyXM/kaGYzI631jsm\r\n+BGuaRqIyY4RfE0fRS/ydt1Itl95QO06e81OSOk6T3B3OKhzLkX4SHsZ0TvD\r\nYHhfS4gc47/9N7DkJHYYPnYdAqwHg1osd0wnzsXzPehE8WR1F6C8cxBJu5iR\r\nmuVR10U/5Zo78oqXP6UfkW+6rIk990ECP8FsX6fwmAMSZctQcT+E4Jr7wTbh\r\n8I+9ueVn8IFUm+iBcfzoyVuiXB4ZGOFtcYbTret9hjiwL5uy4MYeK+s7ROhH\r\nMz97pl+8sVGa5pPtoBZZCdK7HzGGUTUibeut+qIZVyZi86Y/FvDNDzS+l+jb\r\nuj+M2eoMNaoox125Um/++tXFUGgh4tbjEeEDBzHqGQTjHUa0G0SY0LKo0UOC\r\njCmeG/FdyNn3qbWYttsARAEQngUO7p8l0TlGTsTeeVhmlf+K9J+k9kyMZ8l2\r\nfkCpi9i4n95EgZQaXRRCWxjYbEfWbWADkfXRu32qGx81qkWBdvMaxdyGRgpx\r\nHNoWgOB4X8Js6FnKfMriBDGWiHUtIx9gkHIx3uVaLVf+wgFtndEKXZroXtOJ\r\ntnXqu8nsGUqhMml1kt7BJDA4JVKo6YoOEc0eZniCbsPmeh9WOGn/B9+Sb5xI\r\n3ZSRRf2hL1NKwk2V3/0wtyJzaL16vwUAGVg=\r\n=HPLb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649392175000_1649392303193_0.22609955326885922"},"_hasShrinkwrap":false},"1.21.0-beta-1649396150000":{"name":"playwright","version":"1.21.0-beta-1649396150000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649396150000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"14a241e900c26b97e0c1a2ae8fd4198c27991295","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649396150000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-5T2nBqbLRDUiOBdAxhlYZqV837yylk9JL1LJbn3DO2V6AJTDKY1wdT1NkdIGkM96CjUBJoeJmNQa5rdzw1Degw==","shasum":"d5f41268ab54851e95917a9fedb946e4f1ce22f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649396150000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDz9tAionSzSVaIqrfTdZX/gvnu4y8W2yIoI2qEwX9thQIgezyALzfasoGBeWcc/698xqghBd7VwK5JfKE3DSRdhPk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT8o0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpaxQ//a2UpEzMo7ke3s8RWNyxUF2EmpFZ6c15oPyeNo4wcp9AoZr7e\r\n6w7YVlnq5ewaP8bhlz6ZMb36s3GCdo/bMbpHzW16FYDMrcJfdu+ZnhXLaaG1\r\nLonBzLYxULRKmtvucA8qECAcKydud5EpXPdjVQbJ9u5ex4wd7b5WzJgYAhcV\r\n5jUA+zC2lUm4LCEbza7XS1+u/GMrO6gFX6tSuX5whxWet99Ml3Mg42nRohuV\r\niHCmqDjgfzQPNmMV1EJk/7th6rI6csMR4gxE7AHXpWzykvOsQoyeZafWEbem\r\nhJ+lRRxlI03KIbP7NjafQuU2ACF47efxzNHbIo2ZR4SFNVe8V1Oh5dzc4hQK\r\n1lbI9/2kgf+l7pp7c44Xx7AczIyozW92yhthhOSb9W/AL/jITg2TgFIC4HBd\r\naD/GDytf8m2W3H3Fl6+R6bzaMlDdvOTiCp5SMKXaLzcH0YF8t++1V9QpDMZE\r\ncJaSt2xG/MNkYN8flyaydW7J6u8MGJPexLegH6NxxMwSeaqu+azGyBgjPMEi\r\njG+UsMj+VC3zTgMqbs4Ob9itNot1bM6Ou/hj9ynWC6dECDWyn4TRIAU2rviQ\r\nosLBBOHpISAn0YVzbeiAhIRFxLchKa+kggdorma4uHWclnmduObZbpnd0BcO\r\n5z1D6kZfUT82KR87kPqBM9PZ+sDKfNU3Mok=\r\n=Ic2S\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649396150000_1649396276076_0.6903676909281484"},"_hasShrinkwrap":false},"1.21.0-beta-1649435523000":{"name":"playwright","version":"1.21.0-beta-1649435523000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649435523000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ee0119f50338972e1b24a808dc8a343e62864149","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649435523000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-VePYatYv85Jbt/vEzYZZIt4NkUf0h/+FGrDGkG+hAv9SLDuwUnJau+Wnpe0AcoIuDTUAAVIXHSb1ca7DhHUdYw==","shasum":"58aa019c366968957392b21535b00fe417ce5b0b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649435523000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYd6/+ARbHbBgnlVjkJ2l4fpLJJaobVznrJMCI035ESwIhAP6hYrasF3MaBz28GjydQXV4fi0VwCXKagqDd5GPUwHS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUGP6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVrw/+I76rE916TnPU5ubfJeUS48plBYrKT2torAD2r8gsLiLo6J1w\r\nDfsYzGhm2J7Y2IvcO/RJQNuplumgmXAz2u86EuSJbFY0524+R2blhD+E/bw8\r\n27UbKZWpZBQe1K7lS3KXhy35kkC6gJorNKfpBDSyJIHTvpvcHLfkIuL41sWy\r\nZV48sZDN+13W3970xa86uES31bzv64L4RFfSAfAF5bo0eifIFlMLz2n8DwbR\r\nOZG9LDT3n/1idof8jvJsRkjJDf6FVUspAdo9PB9vdaCJ+j+HybM7VY8K9SAC\r\nNPByQBiIeXsIF5XKOSRLut2H4s+/bzvs7vl56a2enaTDRDLYeGS+/PFGNolj\r\naidd8neUSb6Igt93z6HFMxM2GR2q+mMYVW8piTm7ScRwZ5rpH1ZdHoao+EhM\r\nRUCeSaod2LS9J8mFH2u9E3tEXHmBdaxnZGVPw+00ft509nWFinJt/EFyocGP\r\nNljpOqq8WK4838ZHT+1M5mKv1IiDqsk7a0TVJiY0cy7MRjiJPZ+sfNkkWOqe\r\n02yNoVP0LP4DI0+WQ/NjmEDI+6kJh7i7qzMWK0W9u4OxkoHGoh7ISSS2kGSF\r\n9ZsrYqNlPyZs0QWHjdPlehyYGgkvYZ+vPGkhSlNqacru5U/ii01oUqFrWVxb\r\nfVEGs8v+MuK1qlNcbM8FrfrS7WSoV7f2uLU=\r\n=zbHb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649435523000_1649435642265_0.5032029692540334"},"_hasShrinkwrap":false},"1.21.0-beta-1649443880000":{"name":"playwright","version":"1.21.0-beta-1649443880000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649443880000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bb810f5a09c9cccfc887ff6bc21e66f4fdb9a6c3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649443880000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-jml2eBdcZoJu39qNBPeJq13g6HzPyG5J054EJYkpmeEktmUWj5SaJnw1IPBXPYgnBjJCBiYNEpzXBMZ9dX/Vxw==","shasum":"8d51d096530168042ef29c7a4201142d1f39aa37","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649443880000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDS+VXsL/WJCGApuGADcUkD20WLNHwC4J1M61Ng5HKN8QIgRzB4X1vLkZTjXOKqAECfj4DT467qg9Hbomz/7rLheg4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUIUmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmre7Q//V7lQxNSbvxhEfmnZjPHoeKKsW2kXvACEWY9/eKqp0PnUKYu8\r\ngK/JnwH5X62VL933YEg7O8bA5dTz77BO4wNbIrjvtOEpMlEB2FXhEUsqBUlU\r\nRsCQ99VOQgVYOOTTN+GjCn5X0zso4RUF8Sz6TP5XGpbMo9lsn4ORMxCVECwk\r\nBFmu9ONqxf08uug9EERDcTjuTirXkqbsBlaVJuP1xz9zd7HtAZMqFZr8gjhC\r\nZ54I38hrIDnIBtSu21ClAo4pJpEHJES/rRPIQmYYtfjbjeOuftWsGdByEMfP\r\nCE9qOL4rp4NSLJO4a/7aKBcGApRl4C4VO8/C8yFfqJ8hq570RArCU2+IhkRr\r\nBxIsjEy4Wv4avNRfm6vuMM7jM02jBfaXfODmcRCbvuinD7UqR205QnS58h1o\r\nreMdviyhw7H+kA8bn1x2UBQELjKmsAwtQGw8tKmnT5lbnTCM/q8v5X5wj55I\r\nB+uSUoKn+VNxcfBn+jutONf1kr7O3qj9G4ws96CR1SEQQGXT/PB8M/OQQJO+\r\nhciqENVGVRGkbqIarnm4ryEciNBTnsArtWnOCMsKef+x6aH1ijKbd4K9Apn1\r\nfEIEXugtyvyAfEVhxEcQzGAhXQvJNcvRXKJ7POnC4Sg+OLB8motxvwmUaWgW\r\n0/WbVvuzrxOY3bwzKTU7Dm9GsH2RlEebKFg=\r\n=cKwM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649443880000_1649444133771_0.839189345277539"},"_hasShrinkwrap":false},"1.22.0-alpha-1649452538000":{"name":"playwright","version":"1.22.0-alpha-1649452538000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1649452538000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"212c66515240122ed7b3714bfe900106a7018f76","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1649452538000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-PRiJm9p0C6riSMCI9gVI/yRkqXPfJxEouEX2nFcH9LOhh0RiGXFr9sQWx/bCrWQ4NF8DaSWHoAdqWq8r/+y5hA==","shasum":"b61a1f75843429f360cc520d39fa0d4774b8716c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1649452538000.tgz","fileCount":9,"unpackedSize":24109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+NLP9S9N62eRdyKRG7Kv4Wu6utk4+aHnwZiAH3i71sQIgQwwQS30Ze9bwmf7PNvh7bee26NN4/ZhxwF4UzXDMncU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUKZ3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqWg/5AfpSOwiTdvkukDal0BofmdsoBLWdzpRk7L+pkzhZeIQvtdEM\r\n3kvSfzu6YBDzfUaVwDpZnHTZH4TbYnFGipSnEMo/NV7gmdo3NmCJdY6SF816\r\nBJzR/LDkD9oqd4f464SkxJCt7ltanADYOEQegt6/vErLNS3oitc5V5bjZySj\r\nJE0MswiB9/ncXisw1QA7kRUp6swGTXxxVUoRWwAPRuuNia9L+yNU6ogn1qH5\r\n1KDXe1yHt7r1MOl+mGdtStpb7Lh8BWOF8td+ZrkjJ0EyCYVckHUMJ4YXASKW\r\nAzyy2riK+1Fug1378cDjvv7Lq1DYd4RIBDjWFajjngsWVPBq50lFwdMs8xME\r\nKentfTELUk/O3eI5aR1xSik4yB5T5Nyv0PdVDdmM6jJyHQisD45xDksfSkSp\r\nPH+JPYYMxP0RrVDJw/g57G3JNfN8vP/51oOlOwlcfasYyezPKa32QhADA/Ru\r\n5adu5L9KpwSgIDURiIS4k1xvaqf67s+M0JrLSZmKKohYfcj9dEwm6mR//FUA\r\nKMKuusOXccyFEnxKtlQHxJ2V8T1j47iP4IdAhD5AOdeuocKXDp9tw/12a/Wd\r\n/Xxl1pOEkxznoaFWjRwbaujLgT+OS11198Uwr1ETGKCJmwZ3HdxnDN5xq9xp\r\n5aycBA7iB1rFagLdITeZqynK0Y+aIZKw/SA=\r\n=4MQQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1649452538000_1649452663708_0.29425323377121515"},"_hasShrinkwrap":false},"1.21.0-beta-1649448530000":{"name":"playwright","version":"1.21.0-beta-1649448530000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649448530000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"06d100ddcff312ed79a35a835a0bafbba4c1c726","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649448530000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-iJmtsxpxIw9OWwpBSZdSxn6D6KbtoGBejFvfrPgDW2znbWt5u8uKClmQujZV9chCGRsDDR3ZMJFAEJg7v0BFgA==","shasum":"74d6aa0111dee3a5d2e17d1c25e36d527c8538a1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649448530000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0GfYlnQlO+SrWHyzFj/F0dX3JaJJk3LddVSMlvmSQhAIhAOkC3vZWK2Ssk64wgR9ZLYu1GiPTfeRXhDCtWOOamvWu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUKpjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrs3w/+Oy9AIV025esx1GhK8Nh/Q+Un1YboTCWRjqNp+z3brhMFK6p+\r\nywvujv1EA93hPmxwlPUbSIXLFdYdGD7BT06siZBkpgOkeLvxLa9Rp8E/c1KI\r\nRor2Uw1EkEKU+2GG4TTIshouRAe6JU0a89wD6mlFxXmMK8MuhJIlh05S4H20\r\n6ZVlNWbNBbR3O4Sld4LGPqI5RiN80dy0dBfz5xwBk+fhzUwWOLw17tRhwvkR\r\n5ci9enXEWJAqtimEEuuPPqqyeTQTR578zAfYO5cZHFOadbvgC4+oWPawgrau\r\nH2LBa5ZX1ZSGm4SY3IRltTUEQTUzkysBRgJDnMjSNM6JyzUP+mLGRTpaeSXQ\r\nmxdDkD4DogBhA6QInwt83Qt4oxrx/GIap4NT0qDzvhahRBvsK1Gbo8uN6yGn\r\nzwMvF5jVYRbw+d3UfKjUbKaYm3r7cYMpAG2JmyGI95YOwayobOyaDiewY6+K\r\nWNSqKhoEl8IkU5GDaT1bGo+N0rCOsLVOvhOK/t31YSiALpnNR6epEZrL2/i4\r\n9gbjmXCFnHWxLa/ZFv69fu//OURzTCUajPrRwGUAIT1+FbacvsRG22zym2CU\r\n7g7rASgbMBiP8rlQa7+hCZJRiXvR3jJdWM9WN7coKmVlM4KuxUXL4otCF4Yo\r\nPmMvB4uHDcleZ0BnhBEDc0eWgWmlH/GhKAA=\r\n=FTaR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649448530000_1649453667020_0.6298593190550894"},"_hasShrinkwrap":false},"1.22.0-alpha-1649455063000":{"name":"playwright","version":"1.22.0-alpha-1649455063000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1649455063000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9712b9ee08f9027a957682e790e497649bad22f1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1649455063000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-8UYDcKgyvY/zrINqSbbgLUsRaPSbmbqB1Q8l3ddN4GZQaPgHVcptcnfb3k2uCga4FOT4UzEMPYn5NcNevuA19g==","shasum":"1049507b2af57b5f80cee1bc95d2ed539c0f2ccb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1649455063000.tgz","fileCount":9,"unpackedSize":24109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDbPeABk73QVfM8EAczQETVJPYourbw09gEux888hhYuwIfVZfxvfV0QqXk5HDEUCOFxEL4XwmyyxgMVLytQPrEdg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiULBmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfYg//Z2J7F+iMOV6Qm7+QH0H1nqgWKD3dQiaN05mrpSIIkfKNMWbn\r\nNfR6V0g9n0Np6o0ptFFuM+17XQlGUx3CjwzlF9alTlwmDPss218jM61ZEyWQ\r\n/fxQb/K8HmiJ2Lbg8Qo/6vvPH8Fipi+Wg9g0LUFTudRWIE70TFy7fQg0lz1m\r\n2zGBE2hq4/Buom8gLg2xDXLNe0d4qP1LOth5LHDylVYRrto9ooNPmJ/+GzTT\r\nyITHLxdFDg7wUmptN62uVEoG84WFnxj9MYCFN24LN/ImO4kSCD7WN5yanhtz\r\nEUFR5MvGgK6DHPx7M4t+QAxSIZGVmV1UBj9FfgDQQSPPL5ZF9sIJXH+AJyg4\r\nCUnKb2o6zFEhpRZz2TRzqnpsBDBb8qUMuYl4bo0GzrVYu70I9jHRLIb748Ir\r\n3JusAjlzs3JUp1OKBMxHDTrwd1wN5LmL88h08kR/RKHcb3pPKlsXf+xMufzc\r\n/JsT1HiRDOD68PfH+SqMWce2Qae9dvqk4N9ysjthY897TwrlGWIn61/Ys0JT\r\n+SmacbZmTgzkLHZvN1yiGuCU4Y1PP0AQ9k+d/5ftUzNx7eFqucmGMlTsupjC\r\ncMONJl7PzQEXpv5wW735MuxqB46qUNWciqzFFbQavCdDkL8TC/zZX5qvurRm\r\nmu7cQdbeoOqDQknmZKkpb1iBApCOBziquNU=\r\n=4tCX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1649455063000_1649455206126_0.5603227997118676"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-9-2022":{"name":"playwright","version":"1.22.0-alpha-apr-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f6ccd4847e67d18a8131ce07ab9f3e9b62ae84e8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-9-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-qy9FE7pUgmRuwu1JNuEUuWEm0KLwYmxEykA89cJehfMpnpE7L9pz04v9Mjveb2w/RF8m9ZJzyUNsw2ukZo12kQ==","shasum":"3a58fe2e49acc2fc615820cf8c33f8874c761705","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-9-2022.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8FdUSU/Q+V+fwBqZ5ZKATFhGAfOrmjbPf3M9aIDUD3QIhAKOD0qK8u/jIkcyaFQxONdfJbJsLuMbugmaQ8zNbvbrc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUNIsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrwaw/+JTCzFTQy2YegGQFVqbZSlyf57lDTK4U+8LJN8QPQn5bSP3fm\r\nmpKNP/0auCbTwz9131gaN/D/iSqDzDXoBxeZUaxS0t8HjUD+mfYmCG4IvAwT\r\nqkj8WC/G+OwIJLvrfFbxgk9lXnwl1NknM7LRIEz+NZ8P8rOhelC5Qsi8uBSu\r\nTVsfoEOuMjRfhQYbGU2qUTW0uKmpYQ7Y0XnN4jV0JC5BGTNXYrdFmvclCjgZ\r\nslh8BNJpyi24SYHjB2mw5L/OspdEtNvtVmAoIPZ2ELc02Ho638zMKugflWxo\r\nM6KaPYjqPmJfgPcrVygRyLpyGuP05RhRjDvprsLTnHhr8B6zO1wWntH6jGEA\r\npIncmrVS44ZSr5AWSQswGDdquuehdno8j+a5uQ156agLPXpNzmxkmAqv5Fvg\r\nJWFa0teoaYBv9mZiM0/eYVsMkmuojXgKKfaYvjiQQNc/uMGj8xmdcvmBekXX\r\nx2wiJB/IexlkgzE24WcZCOQDRvHZIgfgPpdNhWZNnCUVTdHmFq9gPAqZFUlT\r\njedELMdRt4px/8Z4SaB/4EqYrK/cASmDY9Fmfjg6XJ5+kaflaXcrtzuDLxpe\r\nhYRk9oAG+TDv/5IfmCyaIosAsP3JhlUxwewO7EDCMUqKAX8HkX0h8Avfoxvs\r\nmDoUPk8oyYiUfLm7XwxxVKNc0MXNeTILg5U=\r\n=0odG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-9-2022_1649463852506_0.7979000216048582"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-10-2022":{"name":"playwright","version":"1.22.0-alpha-apr-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cdb68448e15f848ebb3f31834c2431e7bd8b681b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-10-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-NLQOjBRSaQsKH8MJZJuD8KB4xmF/YY/QY2ddLFfMPR23NYrnRXk7ZRt4/TB+nBcsLScx19k9w8uBk21DSLaXHg==","shasum":"d3ac826a37cbb2050c4ef4e78ac3e4938abe4a7e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-10-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQYRUEBy4KO31Ze1ZtcarOgZ+3U52mbWg5KU8tOBUPxwIgQLSMaXNMsrkfw0vkToSqmDmK1pRdArDXH6SPqPdle+k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiUiOYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobnhAAnIqbeuKdqXcHr/GQxb49OW7VAcQiAOjvshYzbnCEbMsR58oT\r\nOGfV8dQNvQxXxc56etBOw/MnBlP9eiuEzYXOrYC7QDaNB5u9e+hLngdSoCWV\r\nHQZ1VA3FL+xbsBjTLVn1G3ynz+Zj18o+jck0nzVpOWDsEuKYIxpGCbT5V6pD\r\nlwC1bW/OihSY+txtzzTuHcDCyV6gwLNPUH4cOeFaYsHYLJdv8fwHqQ9AGGY8\r\nZ4YPeeXCThbDKzXR9KhLN1n/h9XYiivyIAAMZ0W29eyTQMUle9fjOp5Kfgi+\r\noxS9mxUEmT9bNM+EyYbeNU2qqQ8c+50UMn2fd93B0mhxIuAwSrw3Yiq/7VYk\r\n2naT4T5Vl/0/RwSOisix52l1XndTgoWGgSHNzypy6yvuPOyy5QplYDP8Q/CL\r\nW4qjWPCN/oOBfsUYFJ/DrLzGG+bXBBPBDIW7VKnIj7LHVM3FzH+ZSuyQ60Gj\r\n20zK2pY2n3OayvJP+6knxkO5uLf5rF8xwh/NELyoH/yCAfto3UCzS2ohe7Zw\r\ndbYReXp7b/uyJGOJ5k8dcalIfHRfHQKkLYpxU5pLe21AFT/jygxj8bRJWj8c\r\n+30Yw/UmV8AWngIDCxzhCPjopUEE1dmWwQsLgxWRcCgoyN9DdXbkAWk3qLoO\r\nSh+n44lLqsOeHEiafGPajgyomt9AL4LJNx0=\r\n=2qvX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-10-2022_1649550232606_0.022162812174071567"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-11-2022":{"name":"playwright","version":"1.22.0-alpha-apr-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cdb68448e15f848ebb3f31834c2431e7bd8b681b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-11-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-lzxghICRez34TAPnyIzXOo49NC2kyR6n7fE2W2QmyPkdCYGXsiblZp/W2B6i3bALmNbMwzUnL4bVN9aiJyQPCw==","shasum":"e54b738be22e614c8744aba12e839ffa42701945","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-11-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJK1JCnzWarslGNBelYfWeRKSZ1iDfp+yOjVXGIC1uEAiBKZBahmR67kl/yQT46IlK4wYU6h7nxGhv/tUeoSGdC9w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiU3UdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSBg/+LmhLYDhCcM5Q7ZbWBrfBOYPL9MirvOVsezvPsfLtT71EU2E0\r\nqKE4YeqsWu56AXxxItw66++VlfgFzjRYEqHLISPW+O83u9A/sOncgqQgRFhp\r\nr75w/I2McFk1wwObYqPsJpjRPf9sse/NMGjhl1+3+QuOJi6BUqwGsfYPaueX\r\n9L61euxNETXA9XPYefdSqORCZMKMSpPzZushE22GMQknqmvadeSfbi5ri4ib\r\nw6DUnvlVDXU7/mIhZG306rTWAjh57NU71zi65qOdcxGc6gejqUTaj4oTXzRg\r\nNcQqLkJd5Bmqj87Pjtj4Tds2K/l8GXYA6NL1hIPrekoMUB2a43dO4hIuQr1R\r\n06Gz/XZZIxhZbiFNjyaYJQyhCkfVEFkYHJMsWvs5otXsUPKYljSsPuY1F1tc\r\n2F+cVoarG3K1mEuKxxsCsJQFUlksyLW03zJrM8+lg2nxRwmq31WQ0ga7M9jD\r\nNh/cLdiwFYwauIkkxYwkjfi8dYG9qmE/KDnYg43IzDrr765AV18hhQQL9fem\r\nRXwIMTvDrGhOrwlS2+vjnsX8SEXIhAOUbnvf7DOTcc0F2TrgH8QU6NXscLmp\r\nbhx2ki3VYw4kUpyYCu5j8brd8f0nVsQKTxzGwXbyzprCWMxj5hveCv75Mvzl\r\n6tkIo/MF9vCVyT9yhK7g9T6mcDcrVueWAFU=\r\n=7AAU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-11-2022_1649636637697_0.9316008575575898"},"_hasShrinkwrap":false},"1.21.0-beta-1649696279000":{"name":"playwright","version":"1.21.0-beta-1649696279000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649696279000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1756566b17dda2c6900684aef44de7f7e6c8d90c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649696279000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-I3AM2SSY83nxgxo3/a1FSrMP2ale0xHmY+hpfDKmqmVidrdH+3hLCO1tsV0Ma+/xAFsPSaiHHbRr31slhHRr9A==","shasum":"71cd1601c153fa40191415ceaf20991f797f1df9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649696279000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV/jJEfYLsDQ6Ioyd3Who0GDxQ1FZgyCGZ0fjwO9dEggIhAKKvFBtIA8IHBHr1WHQQpqAH5kGU7xnuuxeAr83+XWWF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVF6lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGRw/9EnR/KGF6svYS0fgolHiNJr9x+9XSr/KkrvhU4qpYlgxcdlI8\r\nk03w5AfnGNXZKY/HOCTDkw7dgCrVRTwu8drXqIb2RzvZJi2yoJYiq8TxljwD\r\nGedL9V6sjFEZ8WjmrXhQSsa2goPuQkArIlcDZ+blEfJNkgc3VJAeKIBRgy8y\r\nFG4tzMYXDMGqBQrTHOq0ZBys0BQ70yUjBNuJpUK52/DtiKuMx6yFvR7rzw+6\r\nrKMZ+05gQ0/Hms7Swy+CuY+v7u3OHBLRqTAeg5fB2Dt2P/1fv8tlNFsVqo1n\r\n32wHigMDUPWsQtgCC4jbGY6ynnHaeZmLHGgXiYPs9FGgsu4+DLyq/5m4V5dz\r\nzclWDR/yxjDsYg/1WMDS3fbo64/XsIkfDXboBEj+pTTmH8XwxRM5HMeJGxTI\r\nh8mluvFRjjRH70ihdbr+cYDPPPM8rWDBSbV6gAy6+QjtwO33aSmZyw/JIsiO\r\ndkU46+eCaBlWk1t8mETTvdBuDlmFs2kZKaiptWYpyO/0xkuSNEtzdEq+CO+H\r\n6XfiHp19rxkOGTp9hHxXs80AK9Llj8PTJB1g22cV/sViuGGkLDgWRBQVnTWY\r\nNw6yBBJhd9gERhHHU6Mtnjz6jQqY0VkU1F9JoG89Q3A8FVyL9b0CD8exbu/X\r\nygjyHRFm5ojCGIDEJdYBo9sMsgWxKVgnfiQ=\r\n=YTuo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649696279000_1649696420976_0.7744705748138432"},"_hasShrinkwrap":false},"1.21.0-beta-1649696337000":{"name":"playwright","version":"1.21.0-beta-1649696337000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649696337000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9dbc124d9895acad26d7349cdb444f1ced03365c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649696337000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-njnN8ACi62Fe6zJ4P8ciPri4Y8lW373ICxj+r0MCX7DpWRbQR333lHv1GFVLhroho1BV9lI4UEssEspoEJpI1g==","shasum":"e57337f453c6d94eb861367922a4863bd48f6172","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649696337000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzElmJ1MyqGFHY2QBGkWN1Zhssd3ZfMvNa0yYg4nri8AIgbHVhdjEdpjyMfCkx5dJuhucTr73Y9/HYv7vLNmAi6Lc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVF7BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruXQ//aVXUcpIyU2PGz6H59axg1yu1BX/vSv9XNWCceTuzoOLWKYCV\r\nTUFLjjJl0xFiHkKficBDxpngo98jm5rSnp4v8lmGePwhYxJrfhpz6y1+PUeb\r\ncElL49XqXip/CK3dtG4NvBx3gW2y5tJP+XMYYC11SQgCZ6RX1c0i7FffZ+CN\r\nvvfbBXjXudHUMBIgZMS8zCrF+SNtEqnfBJLh66JMOiPjCElaKCwUYvDdLBAg\r\nbBK3l+tDV+oHM4ICyhC5vr6CvoemiK8BnDxuti5QaEXbiQ1Mipp0lA/FNd2H\r\npzaNjN5FbY2pG1k87q9B0Yp7xWPzyGePX7ScUK30ZMQu9dl+OCWhdd7k0Dng\r\n1Z+KSNaBzvK0Oaj9TraN7392lVOvyAVXzOxdXa+sne5o5ZRrjtoPMocebxo0\r\nhA3tv2bGzT+Dh4jUQHETGBaSTkejdxQoMhfgz8KMO9H6saDRhjLEs0N0EPFR\r\nH5HK8cN1RmUiJ7ljrf/YQforALom6+kX4RiErauB/TnDNuSN+9JE3YmnQro6\r\nEThRk6h2tKPpJWUXfa32ycB50y2l/kcoDR26DW9IRgqaDsQIriyD+eh6AD77\r\nTTRqHEUIsXlXfUCQ6TX5iPE+mnpOSWXzhz7rY5teG37j3qeKj2t7BHBbLSZi\r\ntWPR8jLRBRg4/1xgfV8LNBY5GBpa/birGXI=\r\n=6Ghx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649696337000_1649696449575_0.9233456908475239"},"_hasShrinkwrap":false},"1.21.0-beta-1649696820000":{"name":"playwright","version":"1.21.0-beta-1649696820000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649696820000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fe8dad0ac274ddb693f1755c067358246d9db485","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649696820000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-3k2gkGE/Ds04c8jqVXdXa9NT2J+lOSadh/4jGZoTVFWI7LASKhFRkbJYffrmQVMnYWW/HYU1QtH4h91bOILeWA==","shasum":"e38bc18ebb9cb4c14516a68cea92ec17c1c90eeb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649696820000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGEW9EJgPUoVMu+H7jWwHJDiIGWKEU1JtkRs4IFi2RK2AiA8l2LjCCMlYCTFZkhjQGCtdXfaZq7Tbehq/Z0PZFtnWQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVGK4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhMA//UsMWJNacFwNcOF2b97QtPAfTc7PRIV6iu70YYm/VdEEdW7Yc\r\nEPOiLAUFWNSIefcLr8nNLpVuTeQTHFGQvHw7XAjT/GUpt5mrT5jLMaeuh+x7\r\n65GI1f4/SEa74hHBdfs5OIphKb1a/S/9dL6ZcjnbyK8KUvJPn4IAW/eqdgSP\r\nMBz2NZLGwTUubF3AnXg1BZk0/qsqtDWZbcjd3IxYly04e0DHS0p0VRxcAhFY\r\nqPq1AUbvdEmVsPYpbzQKMLtKxkAl5YnoJ/epN7orubhJBFshVa6VIRFsWbjV\r\nKx1qXfPinoGmff5AZ0Ivw/G25MSuv+j/b9Yvp4ps8TkIn7Chg88ppJg6trOw\r\nI7MZ0e0l3bkAqtl9TcaXo8tWQCE1yRwn7T40jc97DxoVyPbteoaCvJ0W/VkT\r\nAkF2WNhHJC9yvVBDNMDNg1kzkeSN+pPE/Fv5CIVpwKFFwRmhGkRETmdRMLp/\r\nVn9oOIsdF0Uvrsqn55jcMUVMtM975jfhZgLDqZHoRdgGY+A/33m/DxTfdT6j\r\nS6/+R4Su8In6V8x2L2IG0e4RNgCDt36zXGrsfcDDN6X27uNwP1BnD/5PxTap\r\n+5HWyP3v8Ncb3VpdgaLCQo21euDXQ9TFtciPmVnUUiRqU5NiJjizJscwTNwO\r\nGZ4O22VEcVV/c39ZhEoRMVUGhhjONfiabKU=\r\n=IZLl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649696820000_1649697463843_0.643370104231743"},"_hasShrinkwrap":false},"1.21.0-beta-1649712128000":{"name":"playwright","version":"1.21.0-beta-1649712128000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649712128000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"414cc9b769c1939763d66a320480446d57567825","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649712128000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-nNmYURmKokZ61tS1AmYk3tftLSvvRGtRrMRP+Ny9tsMqf+AEZhvcqNn8XFyj5O8myUdq2wngZfGP9EFpeA68rg==","shasum":"9713ead483b1ed03ec2e865c444ca40fe031603e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649712128000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF0Fj01tgRKYUmFiQR82ktFQo3BnfvMowkB+9IaHlcA6AiA+iYk+FjgGC7MMArAX4i2FmK30CYtwEprSoVbLXfxHHQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVJyJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1iw/+OVnd/NpF+AEOgMlmziKpWeJePYTfZ/WC7x4Y/ZmcIrm35ECz\r\nZO5I/THMsoMpVDfRC55JFW1jlCGwrxlOFUKOMkRGsjzaMOKG2OtA1/pfJsYH\r\nfU7DIrBr2+r+3mmpmLJkJTgKxLAQ5PNy2lM/aREM9I2Z8CDQssj82+rv/M87\r\n0M11y8gQU7yQ+RDO8ZWaymMEJdMuD/WVWylZ+XptK89GyPI6qD18TGA7qVoo\r\nl6v1fJIX2YzIz/rRVF1PaneqqMEHbyHvBXtgFvHw6792lHSNLrwM/qVGgO+z\r\nsFrJeqw2ro27XkHZkRLxV4EwYUdE9DucmkC2C7L0j5sJcZPL+hXxMu1ilca1\r\nEqYWfGXkA5o5PGKHwpYcLaFElKP4WgfYZDu7lbvbff2XDZ453LFn1az614Ew\r\negU4Q600CP6xsE0+0DZqXPomPPrA4e/XP7bEecTPLO54+aa/fgZn4/DJwYXQ\r\najrzDp9ngtrzC+svClNI04RGb+py+tP2pckz+ZHN1/cl+WPI88eOKXuE9jPV\r\ns8pjnRU3T9oOvoBrCUIAligdPquhfHb4EXtxA1vmrqDVNOamBFnzyL65/wNB\r\n9XJUwMSKnmgdLtpIc7xBJt4C5A9cDduCNhCJY0Sj2Se57w1XI9H5b1q7urGL\r\nwYcPb+4OP1Q4hQcpVRSbF3ftI0TL6y2nieM=\r\n=TH0H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649712128000_1649712265069_0.7991159539602821"},"_hasShrinkwrap":false},"1.21.0-beta-1649721721000":{"name":"playwright","version":"1.21.0-beta-1649721721000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649721721000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"02f4cfd4d772198fb747a3b931a72ecb735fa267","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649721721000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Uh172S7LNfqeJjAtALxsWQUh6Eq0XUqYPtkb9B82+O9m8LZnKarXkRuJTl1bqLP5Xwz6IK7V9RpJCEomi8EM0A==","shasum":"db114d952289440686a7c5b53327669d26193601","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649721721000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSnPd4aF7I+xKIzOobuSF60NJvnBqWFDz8D8gwIMDLDAiB/Ku6P+qq4vOtuoovZNe4IZoZRhY2iEJ894xC8eMylDw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVMHxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCOA//WzHvvZeZfRWZMvzNJYRAvfo4E9ZtKBJJU37CuU7ELuGL/G2d\r\nRWEzTDMzKdwpBFUkfyDwfkZCFRCZoZppI0kXBNrLQyJwKASKNEItWR9Kh3eN\r\nBCLwM+Y0bn73QAbbafd5fb5t4zGvx2870OvmFen6rMXpOkzITHgomcnmsHO7\r\ndmYj03MNDG1Pw3PI/AVGt7cmBr5LTGJi7T1qBktT5LHPd56JzkIrcRA4BgzJ\r\nt3lkKVzYQ00U9jCOXS06Q+VFJRwa5atvzoYPv+3VJhgUA4Z0rmMukfy9d4T7\r\nlS6XMXQ8LIZoK17mmsTQn2qb19tFjT50J688q69PPsdJzDfq8ATSb1ZL5W9T\r\nslSjVFfJtSCmPseALJz8XZNeT42mkqxnv46h9qc7Loobgw86St2P/rfRZekT\r\nfn1T07P7A31k6zqb+EF8k6hwVhFaQUGrZHfw4iJ0hjPV96YBJR+A4ssqCNFL\r\nidF1pkresxz94C+atJUBY4qHFRXn/RDOCJVxUdRHwfOr6Vm4ljAG4acF/2ux\r\nj/dchsRJWcFM4subbRv9/qnn3pNai5Rd6c2Z9z78X8GGhjrg5zzKGlSgj+Sr\r\nqIdUer56iBg2jqVtxWAnKnekcH3BdaR7pqLwRgZ1PTVu4dLbmKh082p7UgDG\r\nrvXipzf5VjgeAadqHtGSanrQW1Tkhu2eGKA=\r\n=yxN1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649721721000_1649721841561_0.17371710248412864"},"_hasShrinkwrap":false},"1.21.0-beta-1649721872000":{"name":"playwright","version":"1.21.0-beta-1649721872000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1649721872000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"953003882ae6b73c3f69dd0862a7a6e2943072e1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1649721872000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-jUngWePtn5NYNeepu66cK7UxDd/zpljlaJ+R88MVyjk1yskayNGH7itVk+FSbF7sWcla3t5opQF/wJ6+5sr5dw==","shasum":"98d337b454d175237740733f3fea243172d0cb8f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1649721872000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAeYPB7sDEcb4RXmYthtMmOQANxx8ktR5v6TWRhxln5QAiEAtBKoEZzhTJ7FBA0aIuYUKgfA4ZxkAJsQ5KUxvQlhaQA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVMJ7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrucg//YcdLoQ5KOFclqzHWCyhjAbmHlMEcmd3fVzZS+CCm76qVv0BG\r\nTjJcxTsS1D8rU7n6E25u4lXsUvr3v0xgqO9+xkl0tvjs/Shf9vfEf+Ywtzgz\r\nifewa05ILJpIycxhIQD9fnF3jy+uNZzvjHHctYTrTFFnmxFqzuUHKOdk4N9i\r\nX5MKQSUEc+embljhEkqkZGRs+JO+3xvJmx2UqOGhCRV6WoCa4/Z32kJ6EINl\r\n7w2C94lnbDHIikTUdeyJ7yZ5YqdgJKyDRv+D4wbIsMdD3nXluoCumDDcJjWH\r\nzFsS/z9urfWWg0uuLA4n8fUg96gdI0L84YEcsKhpuYwgQBGZaNBYMDd5lEmn\r\nee3BvvcU/lsAnVdlD+3QngJofpy3g4SkhHBNhJXep9yBqI6Pu+K5gAYdjmbA\r\n0MHGSUiN2pPnWMvKJzETiTJHe2LOoKnjJVfedlEySEs1d/gMEVRJ4zLsyclO\r\nHgwn+gSwjauGzfkMdi9HYWylybwO2rP7tjJ9OEA34AV4EU0tirIMMxRFgFJw\r\n7jcjV1+GYRXR6aJ4Bgk0/tzlT4wklwKt5YJ3LcfigGUlo0EV4vwQU4gsHs4T\r\nd6cGExVcSOaIEmVAVRYMCSBRhRP2g+s/G3X426fUVgpsNf5PJMYY/9ICESj+\r\nquxq1xmP4I0fwDxv2EYK2QYgQF3MBE0MdME=\r\n=ZOsj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1649721872000_1649721979383_0.5270091759446216"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-12-2022":{"name":"playwright","version":"1.22.0-alpha-apr-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"52e326abd1508bf21f593ed11b36f52ac17e8d0f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-12-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-SqfGYjU1eF+HH0s2Ely9qTqPWvRLtGWPe7QFiABeX8Jb2Xx6ruWnQ5LXxH74Y3ccu01TVSM4rW6T5SHfrWPlxg==","shasum":"309452b17b47c6c2ab0895bd94042382ca6dc306","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-12-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFl/Trv5aHMLntYebSU5MdQESeNXR6asZ5YXg5GNoy6aAiAGmclMF+rb+LYyZCZg1WggBPQq4W0GkT/t1seCfZEWjw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVMZ9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpO6hAAiemIwOjuP2uPObVGw2R5i1Nc6IP7U97KdaJ44VF2BtdeuR9J\r\nAWfI7Zu948SxKSaAx5nKC+49m8xAIoOf7JiGJ5aUBldgf+AKxAjS+PyRFlzC\r\nAutdmhhc1mAYTW4qLiaeh4QHG+BqWAGElB6Ti8kK9E4R9baqKHMhCaDru8lO\r\nz122dl42DagYFPotjoJijRLnzvJKPbLKHFAbM3o+VgRaVGWGj4U0Urkbyebx\r\nDT7vFxj8Ifrm0rRwHPJxHRT0ZU5A6dC0/tvfBs/OYgGxtEUgTGJXv+QkIHId\r\nD+Khl4v9x7y6q5rs7kiDglX9XoXqw8kpHqbFJJuC2PDwnJPtEXffn0d4CxD/\r\n89xBA2zZLxkvGQzy5oJy9qXWWGUeDVe/dV/wPMsOmDQZg0pnBI06kJMNRp4N\r\nSeVM2hPbpRK35uvqFG2XakgtHxm5BH5+OCTbCPtJgkTpgRjNHbei+NyyEKrx\r\nKdATlX4LZs49nDkujNey1CiPom/vg/W0tPxET1D2q0BM+b1bzDrqQMqVTR1C\r\nQ9ESiBYhuKrfoNCaTHxcFH+eIoKEnZwvPCpD9GpTuZM/eKMGyfkXWDpc/DPU\r\nOfQe2BmQ2+1xm1ZQUoUTF+htMCQmx+qxn3TjYsIJ40AKo9H7pdFIJ/BQLveV\r\ne/4Ba85YYy0RfhgTJv91LvOyT6cB3gaHaqA=\r\n=kZsg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-12-2022_1649723004962_0.9658797176040292"},"_hasShrinkwrap":false},"1.21.0":{"name":"playwright","version":"1.21.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0"},"types":"./index.d.ts","gitHead":"953003882ae6b73c3f69dd0862a7a6e2943072e1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-OH5ZFoiS0HkBZzhb7HPVeE8lEx3PO/AaKgoQfgs1NbmwFPqHgPzfKFa3fO+VM27WqTLjtYOL6hM03sWnJhT3ig==","shasum":"375a2a6419070e59d7e7f24ce4e7150afbbff9f1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0.tgz","fileCount":9,"unpackedSize":24002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG7Pt+LTvl50FWVzFgg4N+Wp+FJ9Q7VJvwZXqsUIzCOWAiAcmCWsZ+y3ZUd6yddTgyW2cfMTRxSu0AXLPZav6ur3Ug=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVYy4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+7w/9E7kVQf2LH6ESHROn+vIkZpNCWeCFLIX4gOL2rfOjP5qHhSWC\r\naq692K4056Q8kNfJ3vbtFnI69RJ0cqvvXitKUZqfkvLKP2x57stPLnuV2a56\r\nWT1sRXi1ta4VU/LxalFvqhqHQ9tIxHwKKqU3WpvUhDB/wWBMLjzFbNiEPtcc\r\nxhEE/j7GInPZiusXYMmjAI0SO6ysrwLFX01teFK0faGxsFpwX12BxXVAV6RK\r\nXtWUj5GnBZQ7v8M/vKQCvlU45u2rPNe2+ZGRM3DJsT7V9+klrA7w5cIdiLDM\r\nRFufF19oJgiXVzTeGPeAxscx08i6Z4NOluWl4aWjhXzlKtf1TfcH7MqpK6Ti\r\nPKghJegH3NalUjyMhSaAhI2dCGqRnqkWL6hpxIp/shm6a1VDYq750nJCQ1SX\r\nW4VnSTox+O1R4+YBuvB3An+8SXK7QPxc1Sd4h39C5z37b7PrPgDgXu291Z1p\r\nDMILEUKpQSoODSk//koyffTh5i/iYBbjpyO+YSkucIYR+DReK2PRoYw7BEx+\r\nsbD/oZk6oUJFpThjbi9fl4k8NYy7qWwxoWWFaZDKN1uRR0nvg91MxWGnNE2U\r\ngu0RQhHh8VTrv+/GBxXSQdpNrb0/kncK31SpL6iAM66ydm2seMKOd+L445pw\r\nv10AL4/GPOwT2muX3Js81A988jtemYS+umY=\r\n=ydZ0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0_1649773752568_0.7339872631477957"},"_hasShrinkwrap":false},"1.22.0-alpha-1649795948000":{"name":"playwright","version":"1.22.0-alpha-1649795948000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1649795948000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ae4d2e75aab2f6fdc0850fad966e7e52d0fadecc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1649795948000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-/FlokKY3EhwM3/575I5tB437/FHpmb6JmVRY+UId2D4Q59+dX4eYhDVgm1+zU/nAfIbNiYRtu/395VPyaW3nhA==","shasum":"31bf252e2e4ccc628f7ba034b7591da296035a14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1649795948000.tgz","fileCount":9,"unpackedSize":24109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMWz3ef1F7KZwbE8BvrWUg1aXMEN5t4gvHtxBHHv+b4QIhALoMLJn23xU4NJoCitlZ7+BJqSAQhKILCypAeJoAwgGg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVeQrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrcaw//W/B/PZ7FdTYZ1N0Av0byvfx42+h8iuOQ4sHr6ZTdHj0ShMf8\r\nxt21OZHUdDb7Aq1zNi2GzNNyT0hJwH7PBUsqMApTfMRTdN02yL02VhQy8ce2\r\n7rsGGwq/ma/lhWycfBJOjbpqIU20bt/lmCLffQb9ycQGjvUeMYEIz+N3Du3e\r\n9Lryqfa3KcOShsfoinM8eGxGT62an4D1vDPl5XSpQlcLcQQ6fiDWlNnhfbKP\r\nAFXnr47tvGmbXB965r6CyaBQI2jm9TY3PB1jv+3hRcmikZ7HTZfJsym/5vDR\r\nSkIrqZDQe1gTGzGdz9LrSYEXtaZi8/6mHRxwldwUKVcgfjbS1AJAeSGlPcDN\r\n0X+eEpPL5x/a0eBi9ULP0lhFhAXVpDb0153sOsfJEEtHz8CqnXu3/D4oEHmZ\r\n/VSBbDvmOEky7xsRcfKiDwMOHexXpzdfzWj3eVOCI8R7x/ZbEloI7/3cJsWe\r\n69O6SufCbDVyEV0VBCDpQGaBoxzy90kswGxDIoGE6CAbIXKq+R1U5s8ftUWS\r\nJvsYPMbprJnnGD5UvXpoNqaXGff4XJoubd4MvFL46y6j3B2t7WQ755KdhMgB\r\nNLjA74QPm0xvdO9PIGCyvN7pKJy5Nx00dsf8zzQsR1AY/rQopNq1iiexE1FM\r\nvX/+KRjMxFh9gtfeUxvNSPrFomvFxzwYFLE=\r\n=ZerI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1649795948000_1649796138972_0.26724719026842503"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-13-2022":{"name":"playwright","version":"1.22.0-alpha-apr-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7a5b070e9507b622877a2af010373585f2184196","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-13-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-+71q9PYsSJL4lmLo/b9f1borxM2AKblWcHZ+31ZST7YbyxVjUAec2FT8o0SIPbkib9cXwmYC+7g22RyjEen43g==","shasum":"4add84c6ab1a55cf032b4099be5be81c9ce6c768","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-13-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHP0ONvIXGVimre8Gc2HoccTaK2dTeA7jnRI3FxRqU3wAiEA5eL4nDa3LhsAhPIl4F0Weg8+bDBNCHhg1ziTtP7IJgc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVhh8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3fA/+J+D7AvuhuFcQjBnQIFqaCuyqfwBRcEw1SDq0XI47gHbj+wPw\r\njT3D53QxMaQg9y8l1dld4k7EHtLGGV6ZB6asLxynt2klF/1Fod1ZX0jOKI21\r\nOhIkFHrDcCZuqTb4bDAl5PmBz9pnBdgPk0lld1vZ9pdRouNSuxTu9AQpDUh+\r\nOZ/Uh3adhyQ9n61WdnliJulTizQMsYZJ7crGb+He+qgC8rKhmeA0t4cX50vl\r\ncW7Pfn8z4IXRMQy+Nh6aouhzgIK+NsqbjotJJuqvvkEWRcph1pNZppJxhH2H\r\nQSpW3BaUVKJa4r93wvudclYBTfSVlfiSTzAIqKrV8Vlz+miJA4vMU3g51X2X\r\nW3Wus0jMemLPGMo3ZBH4Qv5GXO1+d403emgvhIFSDu18whEiYoATXzGotyTY\r\nrCLXLUM7jifcz0wg3FcNMQKng6V5vt3/gRaaFOSQ4tWI2vSUvhIstStuTaoW\r\nEFNFcH+muTAJ1f2zLai/O8C2BLsfI2Qjy3xY2Wo2o9oRc0yk4NBH1QtLgVRB\r\n9lPBxpTtT+8GjBFdQ2rwgMUWeQSFu10bXIfwVP7vQkGcjfiVdIRugF0T4wAx\r\nk7hWqx56v+SAIhcrIrRbVlVZCuurJm1Gv9C2bqRuFfA3VXA85RiNe1Zcl7D2\r\nkgDYRgU0JWAhabso2MO1JebAqaQWeu6UmXw=\r\n=R+1H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-13-2022_1649809532238_0.5270569258133324"},"_hasShrinkwrap":false},"1.22.0-alpha-1649827248000":{"name":"playwright","version":"1.22.0-alpha-1649827248000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1649827248000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9b8aceaa618b095fb80eaf6a959cf73a4141fcc6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1649827248000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-N4EA6P0+b2iWGqfP9qlWTib4ZL2lpeR3PS7RhYFcpLg7+RN7Lvu4ovvuahfINWT02sX9VbfR96Nuf2EPEv+3HA==","shasum":"563c53096a543738d8ebb6b3a1ee320c7bc7178d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1649827248000.tgz","fileCount":9,"unpackedSize":24109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEl4Q0R6RARXBH/aywsMYPa5DqF/qEjaj+nJ1vd1+yC5AiBQt/7lEkF2uCgH3P4XuDI+37mfaCEcV5QQvkgTPPylKQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVl6IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzyA/8CAtwWyWiKi3srLl3suuqUc7b5+I6mBBRiR1uyB4fDNCZZ2UK\r\nX4GyuIK55lZqzlNL3qKxJlvK1pDT9DyGbpVaWlvTVd445DrBfekgx176jb6t\r\n42+HFyDxWvxMNzWTPz+LZlHxO4G5D801qy5AzOjPyR6YBcoJmH1Ikqeuh8Mg\r\nmTbS3eMnHTdRnezQIO6uWZHjHa731+x1vsc7fAzHYLXrUt5l/Nhg/Gxwp7yy\r\nN0lPDo1S7U7xQi0arKLHQOf1nHxxlrv5BmVG3r//4ALyfc7ZMT6j4hCnlC+F\r\nfhJsdJ8ujOivu+/Mq0cDo+u3yjKCvd+FpYAKG5eN0EADzKOKyaZUDbaD0Ab7\r\nRcBvcUDBUtv8CohfwVFxBbRBuFm6eGAQUwKGPiBspD+Sw1Mu/NW38mRudvWQ\r\n8LVd33AXwDw45pJ7yiiZMO2bqkdA0e0+IU0qQ9hOpLgk0LgNG9zvZi7RagZi\r\nHQ4acw76xQ+eF8lLA5ovFs7Vj5gVVd4PN3FNvwJIUhfQQGBDy0T9awnkln2A\r\nHijUsQuO237ULxEHeMleL2WYHOqUg7bc3Qd6XUzZwO6dI3o5OE0UOlEJ+KCs\r\nWBVgNaRqA5hQoERxujNRjYQTXcR+f5wyTDTnu8Mq2R48NA3dUYJXmxrZmRiT\r\neEnmVLImM11TARepMVp7IsjN75MO43SSobo=\r\n=hCRm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1649827248000_1649827464779_0.9259827580920723"},"_hasShrinkwrap":false},"1.22.0-alpha-1649876160000":{"name":"playwright","version":"1.22.0-alpha-1649876160000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1649876160000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"00199b561787cd36a00bac4b310d148117c4d620","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1649876160000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-/KHD7zAf+lpU/CXv+ThVOFVJxLffdZnSFX2ScwJiV2zZBH6Lun5dWAUCbCrNEHBTGBeIzjwyS/HDLNL+ksgUWQ==","shasum":"d796f06e40af09700f7afe7c715fc0953e5e18a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1649876160000.tgz","fileCount":9,"unpackedSize":24109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDubw/Wp6p25Fbf0jik4kbp+JcX4HzaUyhvHydMJ+cerQIgMp/oRXTJ7gAVTsLa73aFP/4lb0bE1lAmPImvpQAQBag="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVx1JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcBw/8C7yT4IgliAoEP1qT5kqqILBcgZeAEovPzRQkovpnU8cu02UG\r\nE07yeup9q4GHnTQQS9P15QQ1n6E7GQISWDgZGMefoKzvYAPyWSvgjXWbsMFs\r\nG//inQg+Yy646pciCULPFPIgqKWP+0uGeXoIcR8Z5M8bJSCZ620r2sJIE9gZ\r\nDQVm0DqzknCvOAJHAlKtECZWrdccIV4IEdSK5LtgHZ4wh2NIrZ7PUkvg2Mwl\r\nJuUaYIvgq80PaVYvUlTrPFix77ebohNcl9gYJPgX+A42S761Wdzwhba26Dcy\r\n3O9PlkhRKt9YRWvZBpW3yXgiQeaMonVTqxEzYs6aQBXr3OqMHkZGUqHcOC7y\r\nHPISHnCxE615vFwmXg/NIdM9Unh7pwcLHQOgd75XPpNQfzevljsIN0kueB+4\r\nmIxEJCpp4MD7caM5k8IuB+RBitTwIWDVshQ3ME3P0RqvaSncWkQlhJFheVRS\r\n6OaQHHesiBZc6WQgVV+DLkVe4CLQBrshG8pOpNHa3APK+piEF3G6CmD/LFF2\r\nJkxvdyhawIbuCXi4/0yJVfDqxgBgONy9Vi0zg9NpcKQY+azxm2/hV7z3txRl\r\nP1VG3X/9qSt0Lm42KZzowJQq4/KpWV75zcmVZgpuzGMNRjlkBzugdUd368hr\r\nTKA4nzjyJOBX6fvic7LyBDE9TFw1w5dDsls=\r\n=esHz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1649876160000_1649876297680_0.38815684339700174"},"_hasShrinkwrap":false},"1.22.0-alpha-1649877215000":{"name":"playwright","version":"1.22.0-alpha-1649877215000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1649877215000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e2fff318487daec42563a3dcdee5cf4556d0182a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1649877215000","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-T3qWgMl1vVQfp8Zk83PqBNfmRRpGT6C+EEV8vSKUeQOPeHwj7Rxyv6218wmfPZEcEVRAfBOCZX7IaHZEzV2c2w==","shasum":"fd9e11fb55dccdb470b2f42efad2021c30070f8e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1649877215000.tgz","fileCount":9,"unpackedSize":24109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICoU0PlCiJCqO6kUfc1PnbRSgIS8/t5GpH5fJ83nc2B0AiEAkHewjrn5L9IFmuL9EOtzgZr5ipfNzN819rPkOEdkFHA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVyGYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnqA/8D/g/ZJc1fNPk/vSH6E+4vmam4Gmkkulwk2oI9N4sEyDY5rXY\r\nwZBzVh1iZQhU5Lb5IM/U5/ykzhOSRsxRmvHYbbZCrbOKh8NINxAQx/h+9d6/\r\njDt1cQKGZZWe27dbRBhZOy2R8duSQGDLhj7rvPc28N/giTALWjNPoZiOUqBK\r\n7TAJnj6t3LPS/fG8xd2uqSeNeIb6T5v2zFBWLZNtTROjhW0VA4k+ph7dxTj8\r\n4gmGZlfQHrPXKjaFVAk0K4h+eFIE6UOHuM1eNXMgbSJnU0TSLk3Z+NJNww/I\r\n4sF3d48ANnS4j20aBMw4/sYsK/f5sDoheuqz1E0PuRtxXrayisflMrVLcxj9\r\nnsUtlD6CKneZCaX8zHrR2SmgszZJDqO4t4nJlCACqu0HrtdCX6r2iY3Cj8ep\r\nfejFb1tY84qhWvNNXz5rS5WI87LTlchZgMkOaWUGzJotZ81hgiYvKyabQLRz\r\nqviVnTfkGQDE2mH14/HolDUzxBIJwEeZfw4NXZKgnc/MxfDrqT/BPMUDnDYe\r\nvkcj4qH+SQXamfqros4Wti/vfuz28PbBZaPfAuiwUyynp4ZLXcznvHntRcsn\r\nS2uCpyWM3Uqk7ia/mr64d/fGNj8lL75VwCQSU72Qf/rOehLHal3ZKJ/YvFjM\r\n+dqh7jV/1OmMWFOXVNNf9LzWweJnkWcou2o=\r\n=Yy2Z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1649877215000_1649877400766_0.3136769941134321"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-14-2022":{"name":"playwright","version":"1.22.0-alpha-apr-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"20dcc45afae5a1be8f375c499e9a135539583d58","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-14-2022","_nodeVersion":"12.22.11","_npmVersion":"8.3.2","dist":{"integrity":"sha512-SMl4o/xiN7nmRWTNgN/Bb2DNNe6PvbNZApHzRwRk7MUhT0io46MpAGVY0idVrHzk+3NBW/pBJ5B8yQGtfz5vGA==","shasum":"a93293ecec3674f5dbe49dd9fe58e7d6f02b8447","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-14-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxJX78WxS4BgzAOAtYQZc8QvQmTaGt7ruCeQkDkQ6PGwIgR5oOipDVmzsj0UIaX6wHbL4yMOYucUohxPmPPHD46d0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiV2qcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq46A//YtQvrsNPqcUcyfZFAVXTHdUukpJ3ELS0xmyP3rf38nluc1hG\r\nXgj5+xVZFevKWRI2BukOT2Th76O+Et8Vj9ZIuqQ6Y6w+HC409w9w9Hb8vBMv\r\n6fJGWel4O8vUGqXPXQ+el+y+kmmwB/4JyzWDtq8xe0Zb+pXXlvAJAB5F8oKZ\r\nW0durb4hKizCjKLZVEysyrqOX+AbaIyasWG3uyPPRfkYV8UQ6SVHb/ka95tB\r\n+l9ojbU6fpBSxGSBSAD4ELLPOLYXKXO0GLuCiC0N7Mo5bmKAKUZHYiZyCt3o\r\npITLqiz4vHPxYGvwUfTWd3qYxXOFLHTWnsuIrLUbhCORUQKpQIVWtALe/Ef6\r\nwoImE5YoTe69Ra2UdbgbWsqOw28+jstbvFPwcDw1XgH07fxBOVnk+EGX71pA\r\nqG2pbNzVX1qszPVwwDz3rXlrT6o2e1iN3uiBGO8gBws8tn5gx2wfS7K3Wh2r\r\ncscsXbWh20+3WX+H63WXqz1gandvVsgJPZGUsJfBf4HbovCY1KYmcrYJISTO\r\nujGe2PmN4oj/CUht8qdesw+9l0ukJJxHkA6JE69kEz2I66BXSjwsl26zLN7l\r\n/INQfNQX2YukI7YkJjNOl2H7AQkAydlv6EGZVabCSENuiZT3LdON9k6y5nKe\r\niIl64M26z1He82dXaOhWSDHy4zzzvtbM1pI=\r\n=jl+m\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-14-2022_1649896091974_0.6262498632491165"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-15-2022":{"name":"playwright","version":"1.22.0-alpha-apr-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.34-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.34<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2f570fa586514bac501101740893cfc3ff8ec212","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-15-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-mJOHv8Ad0YEvP0V9mKzAP2j4gY0pmwFVdjLOuMOpdGkb9XDkB4eDmQNX+yVkNTGrzfksmWOiMegg71/2CxoIsw==","shasum":"0e1955c2cf5999cc4d10d6b69ef7d253da8001be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-15-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNhhEgACffs0qeTjRBRGxQBOn3YyJQsZusIQH5lkWN1AiEAnp3g3NvA15TdL+3pMG/8aPSx9EQzXHGRDQ5lpm+DzQ4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWLq7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0FQ/+NqZ5pzjmcYIZT5ZEB+tkJCDRyRTaQheTiE16UMe4sKuJrRyU\r\nTt3Cr6RP2vLZ3mE/NV4xWX5FhCMQNmVo9MkodziA3TK7ZYd7pfcCk3Myog8B\r\n8bUAF8zKG1lrHSsHTQ6vpFwsLFajHLyAvLZdUImifdaJlr+hn61vHWca10ZU\r\nxKJoI/W+SwiZMep6WpS3cnusjY2BuXd401XJkjec30G+aRabMOfVbxy4i8DU\r\niJmMK4WtqyX6ekfmU9ugIpCBuyf8hyzAI53OuVyJa2M++us+niCl9HyWtzxs\r\nNIJ4xgxdzlUzrlY7gCmnazwk9/DJUFylUJ81Q3WGIxuBGND1fF4C0Wx8FbmL\r\nTVItI8GKTLEbB++vn+dh2a0/qphAEz9+63tYpUmbjc7uXSgzsOSdk/3Hvik0\r\nCsv/ArKBSClH9bzL1DAIvz07kYQZc+dePuSuaDOX0EkHAHJ7XYtWxluqQfXz\r\nItNJOkBKLLUN8YU6ZgjBZG/iXp/5yTUfOv15cA5wDSDzg2QcteEpSMIPha3K\r\ndl7Lz1sxmAHR0PwuaGaEcYF1C8dYdqi+/wvXGZ7a1T8iwb+g6tY+1KANjDso\r\nEdJ/xbgf/jhR4RZtUwFq16hjLrwX3bl0ENDt9HtbZFgPdEj257LVH34RAUqH\r\nvv1B71LWGDmBUy36MSTxxj+WdrZr+US0dhY=\r\n=cDQe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-15-2022_1649982139005_0.8065532266241886"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-16-2022":{"name":"playwright","version":"1.22.0-alpha-apr-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.34-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.34<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5f843c347d29ad6d9cb01eb441c461cc87f556b5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-16-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Ubnxjag340EevorqKCncbnIHiE6hMHdbeovT7ZSxHlxDbftzaLZJO0/CxXuxSC2e+l+tUmXjOW3HAtrR4vOyug==","shasum":"e146619afffd537c803430573773592ac56cc3e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-16-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSFtNexi2HSUc05ZFgGMeI3zm8OXZdfCJ9SRtVksvyYwIhANzI6uwrHERC+yJWadALx/NWyscuF2WeN8/XLiq+bzC7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWgzBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2EQ/+Kq7u7/PNDG2yXbFrudjF6nfHamDCMt2Tv6vulW7nsrS3vsP8\r\nIPo76Q5UUZ1/uhWyuvTX+U27swBZjpaIxy8/dnBTKhW2u21NXamfbG/XBTJp\r\nDbdpeO83X/YA/RG55yeETlRmdE2qYbVKBAagJ2cxOofabYlIFG0U6XWaVk+2\r\nd6XxM47/BkG1AsvBZ5jmUMOJmTUL7sExjEvgxJ5a5LGPCwlU+Cs0SuMZJEx6\r\ngklr2kPM+bQ3LuA9VPMlk8FShYlISHPSu/UaZ6V9C/mf8YONiuRBGPpzoI/9\r\nyfkka9d2oY6elCSQh1SaXPPSIO3wOlvOI5PWXZbmpdqU0q7hGxJXW4UJJHQI\r\ny+rBcZOsZQSA5FTWP2uvlhLEuC4ySl5oJbtGarDS+IMgHe07I9VyJLa2Zy1a\r\nEWMxP3QtYQfdRf5lKjo15MYJ8h4TJJhCeZjQHQWDivz2Xx+G08l+fAX+1wYz\r\nfhpxiUHERDf2xn4wfwLa57OQGSNJJkRqWgO63wVozKQ1OSLuY0FdEP/t0rBO\r\nb2klwZIrkd6EiE0pgHKQ8aeQyJQUG7iC8j83tkP4Lnv9yprtErMHRvW3nlto\r\nMCM73XUV90zkqt2QZdQKzO5TaZQLKY2ZTkmM+1ebOltrPZUSxuK4AHTcrj7x\r\nnApGLSZjOwl5O92d0/ceqCVB74qtwCmCQxs=\r\n=Wzhc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-16-2022_1650068673772_0.8908730152310236"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-17-2022":{"name":"playwright","version":"1.22.0-alpha-apr-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.34-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.34<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5f843c347d29ad6d9cb01eb441c461cc87f556b5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-17-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-OPB2KY/Ta8HUkj9Lyy6/gAF87MOPmTMTC7F06YfiZrRLzhB7yGJ8e3nd7iZBBJVWjGwoYik5yMBT3tImD4vCLA==","shasum":"f85e02c126c4fd0f40cf4f315d08322a5ffb3967","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-17-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEcufO8GNMb5aJnMmQk0OC54G2H4ijQo9FonpkYohMHAiEAqkcPWS7sbUz379M3v5LQDnqcUWaxaGpLeHi3yqDks6c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiW15/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnJA//TVpqoQagoiORd8AlOlZZKmsskF8nkulLOGGPNqLeOWwyxND2\r\njG78hBC8WcM1H9iIIII3ih883QwuHgl1t/Cl5S4Q5NRrUwWi07miDHrebbuK\r\nFJLMXbB+7HNm7hFvwVDzyO8yWGkJD71YTaDbf18H8CiEB4OnJ0TD5xbCASjc\r\nKvyYN+jPbrqhBAvXUQFUijqc9ORipsK/+8Oq+IZE1O8BT0XyY3jGykIfLsZU\r\ndIKKdBdJ293DOqDqx+q1tSgbtmrrc4u7tExGftVJZLFW0tgkUuZLr+iFlYoP\r\n9gwh9O0yNZuMFo2/AUPstrU3t6YRGsGZmXa4xbgUia4/KsSLo/7DD2lW1Bfu\r\ngChK3cyAUD6Zalyxsn22yibd7cwIa0NBsy5KUgoo4F/S4eYj6CHRM+rWN5tD\r\nBjeFqXEgAWVx2nXEOvIk/qxOgrKyMqcPzT99XtJxL8hL8OkOSywV+RVN5+pA\r\nz9JozAA6uAwqus2WQcSlnIq+AnicX9ObDOgJnulTh8hHf9y1yz6RXwbUkj8X\r\nCvvFjlu4JuURONo0Tsk2phr0bg7tFAaw5b/FVW/ffQBZ2bwLrnU+IGuQMLTq\r\nL+C7GDCJcfDgG3k2xzepfCeGUHWRCCgRfGbO2QkRgQkKQacL4DxY5TAnG7Sy\r\n+k4CZXs46oAXFi5MTByEy+K/FF1hrjTSNow=\r\n=4RLs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-17-2022_1650155135732_0.2208555226847082"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-18-2022":{"name":"playwright","version":"1.22.0-alpha-apr-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.34-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.34<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"71fbd2454e685fb6ffbe3fcd23a101e770782680","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-18-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-KrG2qe3UI9jEFXEj1pv+RW0kCl6CuiZdEIpu3iiWu1N6srC1OomgB8gdTQPPfkBhegUZl1VU84ZxuK7ieEHZXw==","shasum":"dbda3e245a58496141f372fd3b7025a9342a006a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-18-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbh2ivLGemPV3IItqTvdCgnya7IzpN9lyXVEj9jDqQ5AIhAMZLugNjV0jqIKrZyaVvwdaY5hhDQX7mPuxNeSNLNcG4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXLEHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovQBAAlHz16O0UvROI7+HTNq518u+TLTeGEFmkGHBZC1Ha3UCFpMg1\r\nZwvR+JchyyZWTqzpa0Te5wXcCvnJoq3xOjSc2G009AvnZDHOUb14vADvgRIo\r\n9lcOL1vRtT+usdl5Yuwx7CcsXEGklfjyHlLcJID9eRri/KZpXc51HZr6oZU3\r\niwS5thuXEaUk3blrosZc++0aZ/aNu8x7gUHZHxVE5kaYx/WZoz4f5mzy7ty3\r\n/ebLfoesIdmhTIz7DFxnJKQ06K4o+/fcnTvH82UeTkM2kCIAOtQUDlYN4uSI\r\njqFkN00MDB98m+3DWJ3Gu+HFUZBmvnHpWmk+ui7lM501+mbO32er4/BKtPEf\r\nVAcpMY415kj1IG7UiIp9RZVU9MiDB3565EAQ/CvDL7Fv4DZMwAz5uww/WC3w\r\nJk4EnNAD3W9V2C4kTd9wXHXKe9z9R+WVUE/n8nK3m0WhaxhDaIE6xorveYKi\r\nOBw5fy8zt5YaFFcw9GvUjXan+e+rdg4EYcjbU5Kpl8azowcVnxBz6TLFLR14\r\nBwunMs4akHOrSbFn+a2t79T13icAXk77ItyoaP9aYLat7TzT0OyJD8zJT38+\r\nH7tM++hOb0aiHnPzyWU0hdAsqTOBmqvf2vr0c4NIL0SvygkfYejs9MJ5LaCH\r\nTVEtRC1Y8e76yyJHTDgqSHWVsPjN0I2KMQQ=\r\n=uMHJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-18-2022_1650241799705_0.24649855165323653"},"_hasShrinkwrap":false},"1.21.0-beta-1650290738000":{"name":"playwright","version":"1.21.0-beta-1650290738000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1650290738000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d1ae23c7500359e7039eadca54827c32959cb66f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1650290738000","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-5XnS8WTjtQXfJ3BEkxz6yuX1g2f/TIpdiiWEa0owf5ABy68GcHUuEMhF97rUjoYPGYLofNkfRiGY+AIRaofPjw==","shasum":"cb97b690f6ef85c72a2b756641373570bf04dff5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1650290738000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAbjgpMx5cE4k5EBV0YrE6dBqBaNJJRJeYsdRcqUjQBwIgVHF/ZLxFYd7f/S6DC+eErHOKQ5pKG9ezEjiWyzdMQcE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXXCuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXPA/9ErtmN57HaOBtokxlJPuvxWPG2hqaMStatLiqw+dpYn0grwe4\r\nEAOFRW1WX/ZgIh5af2IKSEk3qKnA+RRwR86ThoYI3hnC8E7Ir0n0OQ+NffZf\r\n8AqxSGl3vluoPF1bPETftCvUAI8Gb1zIwVAas2nNg72z/CcUAvI8u8br7eBK\r\nhbPRl6VHKUAfeIJIm4acZjYbaF9tfekSvF76Xp4QEkoGbyRFkOcSlgJuvgUQ\r\niNxEXFLuqKuiSWspLqZ7Dxegw4/t5CalodJLVFRKxwraAHX8TKAujwub9mR/\r\n+uC1f1wuuZoBpBAzQOBTs5fXefHOwJhqTN43+pXlpmlrmJqbm3oGA92cUFd6\r\naB0fQicbQUg9Z9Fc8ESKqvXEfmpon7RrtE73Z8hm3utrz1lmvL3SOfAE/RTt\r\nA20+pW/ORZn+T2c2H+S8wpjQn4v/kdX6adkYzfMH7nZVJGqiJCF2HVkpfzp/\r\nhvu0e5SnQdxNSPQvIkAB7egDF1lYZEmm2h1LP31exh5f58VOmnfH+C4NINqv\r\nc0S/Tf/kN0ClhKXLxkLh4/5IcDSIOiS/92kzF4ZSMMxeKEAZw3LhHmk0hMoM\r\n1eYC+VPRsDyMXR+5Mj6dNnT8JP/+gpsPCYSc5XGHj5wojRegih14Rt5sZKfn\r\ncDWLdQj0JrPb7jW/dWZwCe7hSXn4W+C75I0=\r\n=S0pV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1650290738000_1650290862214_0.7447320228811498"},"_hasShrinkwrap":false},"1.21.0-beta-1650304062000":{"name":"playwright","version":"1.21.0-beta-1650304062000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.0-beta-1650304062000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c16a110519a347ed548951e833c9085192b75557","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.0-beta-1650304062000","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Xt3aH3c7Li1ehCbPUe2/TynOStFOazq6wi25Ix0vRwluPyZsOk13BdomTokz0g3HQLGtGvTvAp1HeiOBiB201w==","shasum":"46f8bc99738dc9834fc5ff7026e80a2db305a6e0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.0-beta-1650304062000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzy8redo38XN+jGr6fRrMwgJ5mocVuXsbyZ+xyNnq4YAiATX8ZSP/DbLcLZiPdjXfzjyamI3UQKSR3zqGpJ4FQLig=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXaStACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4WQ/9EeHpR57P3Z0zIaqI/vUhM/+xiTCY0Bd6M2Z6xA/nzhpEO9c0\r\n8j9xg5TtdDSXEXp1vk15kHNmQZPrqJC/Dy4IG8mTswJlxgHl3YhCmLkyGXos\r\nE/C6CdkiT+DvXE//y4+zDZLACeQ5fntuUzkhl39cASSR+gsn3N+YY0sVf1Az\r\nhs4+E6t8vYv0oAFgimM1ef9Jl/xGiigCuwSwY0zdH00fdcRa4bNmiOfaTGgJ\r\n2urimbYqIKQA3QQJThJqZFqpK0wmBXu/pj1LZ9INp3A9oaJKmxlzXxJf4lAX\r\n7qLtrJk0ES+Qw9DNgqlejJkCgCV4IYAOJnD1/Ys5nCb2WxxOYfZruzmegeIe\r\nW2n1M+pQsfiAVKXvEdd+xJCMYAdHJHACbp5rG2PEIOa6enQK60wS861gUbUC\r\nQOMXgcaQ4/3O2QjJWjCa3AfTZwewqQ1Vfb3vTWjwT+lKKogUnpIkQ2LiyMmX\r\neuFFy5Gh8TamhKCmcvGuPIORp8zlfEqYJVDxFtrDExn7OFWFk5T10yy5xXX2\r\nkP5U5xDbwVRtg8lNexn4h9I4YaRkdjqLAxGn7BohkGgg0Luy4qQdJ3DWzsys\r\nJ3u3GbKVNVozLg78hMQQnX/Vudx5y1+tvLbOuLeSsKF+lzirpvABkNE9FcIT\r\nhmfE17nJIdtRBvhUkBtTWSiMnYRR7MMeeHk=\r\n=0LVu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.0-beta-1650304062000_1650304173725_0.7816412102215751"},"_hasShrinkwrap":false},"1.21.1-beta-1650314981000":{"name":"playwright","version":"1.21.1-beta-1650314981000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.1-beta-1650314981000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2e29fd431b66147cd6cdb47ef202c1172f505cbf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.1-beta-1650314981000","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-+csutZx4TIjWGp/+1fjHp8Jwss8zbOrLdxP+W/AuH4U+XFkaIhjlGci2h3B1QO6Cn+cT4eZiFyUZeb+Bhtp73A==","shasum":"23fdc94d472718c97bd0602969a2e70291cae3ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.1-beta-1650314981000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDG70RTd20Dt3VSZmfymy5kcUycGhBOPGJDcZ87GFL+NgIgBVBo14fJpteUw70ZCc0izhaAzTY1MO2IcHAV2PaHyd8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXc9eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPvA//RWhXS/tOozLdX+mKDvi5sKpLhz/7deGp9W048ahQJtVsaBMv\r\n/Edf5V53hLfcGDkOPdmgF6IDuPfOauDxUYv7dxQYQ4Z0JkIF1+eKi+Ax7ceE\r\nRBXCjc8f2vFuujHCHaOcOnVnUBR1+SPmwGKmFjBFfHRw63Uu/dG7Z3TepOQL\r\n/m6G0ZKHRmaBztzs6dvDg+MBaa3kwyePLaQ5/ChYMzx4kotzP9+cT9AjZy4H\r\nKs/s4xg5X0sUGbeL88exx75+s2TWkezS5pW//DvFZI0pDC1R5hL0ci5sqHIA\r\nMVDA7FZSA2MM/1M3mPrZDD9OX9TNlIVd1/RMMjUDrtQWsS6n82WF5ig0FBWK\r\nCegf+aOX51A7/HnnkIWduXzqIrF++OSI3ZeldaNettnAMwM2b+t0ZJ+P1cS4\r\nYVCk47tUoVC7yRpVVYsAEgELBFopoNSndDX+nwhJynuTsuKJzxoxTzzb4JKU\r\nmhyoYzsyNxZ3FBR1lDPBGiMRre1FDpqOZpXvqHXr/URc9DHa1wBNQ3E3p6/v\r\nJWe/NNsyxRNMrHMQR9serTwPnZ3w0KukmvbXMvQ9xs/CFL5OVxDm0k9km53D\r\nhuofZeSa9fMf1UU3t7ibbIqtMoQXQaJBwEMIGMinJO+/9xeBuPW2PBnEEV15\r\nYXC1zcOfc3vfioF3WKu5xmA2jf//DwHKU6I=\r\n=DFTL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.1-beta-1650314981000_1650315102168_0.2910021751969021"},"_hasShrinkwrap":false},"1.21.1":{"name":"playwright","version":"1.21.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.1"},"types":"./index.d.ts","gitHead":"2e29fd431b66147cd6cdb47ef202c1172f505cbf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.1","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Of0h1XAvsqK1XfHVZ8sL2PjJVoQUu9gTmmMTtLS7MEyWMRD0kn8myeI90xj1ncJhUysQxGboH64S5v+lL2USrg==","shasum":"62bdefc0e8baba192d93d8daf0c0eb9213869d76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.1.tgz","fileCount":9,"unpackedSize":24002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjpuYWMG5IQq+8wFHAN05ZFthEhmGEkpL4m49PkJZH9AIhAN1urYkM1BhnuWCaR9LTrejLK8gjpsa9DbtjOHajhzDN"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXc/sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWyRAAkHYXEwo1EZiXzF/1gAw7rAEOVLG1JMAn3ATOQQI9UqVjB5sX\r\nysB4Ho1/r2tytiyRh/DJ0Rz/ATmnJxKvuiTJ9G09Gy5U+GLHYNqGg3YJ/nmX\r\n11TPU4lX4oijj4VXebdcPML5JGdHDiQLYHEL3YT23sm7TEix+ttm0x5v4PkF\r\nZAGhVJIDP8WSEER4VFcVvqKwPmLDiVrP7ZvVlKDwE4YyGjodS1SRDDD4bSZl\r\ntKn4IFe3NdvbWbmeMDoMqr0Wam1mgenWb20q8MZRGh1ODryX5+hRN3UGk2OS\r\nUViuw/XbApIPBH431dbXngA24vr3HONZNv9VgNHZDFoIScItqWKmILzDUoLb\r\ngf1SDuFXBoD4j9tyo1Tw7P5LIvwJaryJbsAojxeA2/Fr/S8I7J34EIBBhSws\r\nO2ZvzqLWbq6JpyU4UjZDcysR3NLGj/dbu9KR8Iqgcu+yk3I+GvJndikjieKf\r\nKgZis+/dC4fxtPlKvfxAyOCixJK7YWl45QPgrNv+fbe/16FG/ogye70VIEgO\r\niX4hNeUYwc+heDc7pG/sTrArvdp2IDZre1ijLVNkCJtpQTLLan9g2Kh7PmVL\r\ngAQ/mcT7mi+XsgcmRdFQQz6yPQxYums98tu5h1s1ZfCz3DKD73WtyPteyhdL\r\ndgTYtLp8VbosynRFsJ/AkNcVnI3r0pU4Eiw=\r\n=TIIs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.1_1650315244749_0.960867332110404"},"_hasShrinkwrap":false},"1.21.1-beta-1650321640000":{"name":"playwright","version":"1.21.1-beta-1650321640000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.1-beta-1650321640000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e5d0e42e9c5d466051a5f5fcee6893b2db2e73d4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.1-beta-1650321640000","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-5CqDgnm+uBNWbosfmWlQmSQmRkwxUP4kMvd3PFHqwLhS1d4OCRKN6FqzBtB5Y9bpbc6YrlMlmYU47HP7x0LxXw==","shasum":"879f4ad515b971c795be1429a88e4861959c6058","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.1-beta-1650321640000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEq9CNqlVHuR15k8wBrPCyw8qqJ3//zo6RiI959lJ+KnAiEAj/DNilJrwCceAOCOdjULNsBn52dEi0M5tzYUUAdonqA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXel4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrB5A/7BQSgmNQgSjMrA/K/4hR+Gb0lVW9Tu5L2bKQwWXWvRcSYgJLT\r\nAEkdNsD/q3w3U82Qm6rb1TVhdw3fr7d1pCBE1MZr7e1Cv8EcI3Y6Maz8x2kV\r\nNqQFjk+RNleUDTduJs5Law1D1ckJXqBtol19tGQNlTNzkCXFRKdfy5EPm7XA\r\niJsHsQf08YI3o7iSO9eL2rjPl81YCopvMaBt37L+m3b6Wt4uU68g4PKO1gfT\r\n2rIo65KxjtHhfbTZOe4lJtonP11qdvBkae0EbhAVSsSSBLQ2SKegyacjiRhW\r\n5GO5eh/143ouFkTn7LHtkhmT8kiasg1QSdkidQubVirRnVHlqRnHGA0cZ4Uv\r\n+UnT/Sb9IQgPlJ0lLTWwEqd7NhSTVhQ/7aPDjx0fJ3Z+I48MXxoC6jv/ziwI\r\nJwBNhOvo+qdaysFaXMDR7BAGQVPvudCSsbIxg6Kgju3/L2shG6fS/5LacUHq\r\nPhYOdUYnSKTdVbm9wJEEnwdIekX7vCZS2ZgkbuuiyC3qHymm9DUGh4vwMVq9\r\nFqVD4xvZsfi7WK2m4BXhzTIF7B40q+7hzax1XECsW0Pc4GUgsh1S4Tbvrd9M\r\n06q7qBsXDCdVSfo+eguxRCIECynN554EfeEv5qWxlOwm0naOn/KOLxIZMYgW\r\n275hPd4RitoU7dkr2pe5YbwDf3rRJjzwMRE=\r\n=lL71\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.1-beta-1650321640000_1650321784700_0.21589602492197724"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-19-2022":{"name":"playwright","version":"1.22.0-alpha-apr-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.34-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.34<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed0dcdabc9ffa447e0577ce620445140fd5d8653","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-19-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-UD8eW5K4TSR5AKDLptk2q07uEmhBJ0BwnF+/7+0rbIsPMH/Z7Yq+y2qjMRUjj0I+TJ68DxzN9SEPMKcMBzo5dQ==","shasum":"319611552d9e2ec7d5b164f092d359d08ca38429","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-19-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOHqscUPg7tu182QAwHcnqYYxae8XNeN0hgDUezylSaAiAA5b0dVC/tiN2AaMSQuMx0jP/dmCa2l9qJAHx/bJfo4A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXgDOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqc8Q/9HemEVTBAO5wW+97680OFoTcATI3ULqVYtLfUnNO9zVlc9VLx\r\nhFNsPSu9e/BnN4smT1TJITJkIbFYl9pk9bvdBl6KyG1dAmA8wNhLNV/dcfX3\r\nSyQwIAfAa6BwojqGH9j/kz2rGhru63Geief2ms8lQqe2W43MmFwxyv3Yex4a\r\nsyb3jxTJqhlRjTlwPXm63rxae8ZtycYA5KJFbiTsZgQwLd+x9/NZdT+am+cO\r\nXnj/mRuY5NxfGSfGc8YrHg5lslMbsASUQt8XifSGl5DJxcK6o4SMe8L61AAX\r\nxAI4TgCxOSxMNAVfOshnyRHATJehGsg2nLbldmI1gUBmqf7P7A+SsbjtWZAV\r\nnsfsPfsBRa5mHOfLdvfiRw0b1wE9FQ0k0hSVzKl0ZtBtPYIVCECnu7OJgeuc\r\nr6Xt/1NsEh2row4TkOYWVj8whD/5nTG5wzwjJpxq/zgv0j5hGSkxhOkTPbNr\r\nLrutDcbPgmWh3hr53kGLfzSPGt77j3lCp/S7BFfNLMwaBsd2YoxMPBKT/Oiv\r\n/V8AGW33AsWdmOsw8tKpgycYrvv9ZoeuVmKHpu+WM0AzxiD0zioiLckCf71n\r\n08LnNiJfMStIQqOfW3HpXycjEx0Hkb0qra1wQxTVXjRxgeeGgiPfY9B6np0W\r\n8tUdHNvjApNFZ2dY9EDXf7PXCPdUlvqonps=\r\n=4m6O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-19-2022_1650327758236_0.24058034746422274"},"_hasShrinkwrap":false},"1.22.0-alpha-1650379536000":{"name":"playwright","version":"1.22.0-alpha-1650379536000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1650379536000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.34-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.34<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"88a9262dbb3b1bd86cb0884be8f6de36117fcf8a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1650379536000","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-2VeGakXi1SOOAdG0tMnVEj3EU5kUToCmyeR9KWToC9YBWDWBTRHOXsAfIgGeFST8S19AZwmwcimzdY7n4nB2Ow==","shasum":"3f7fe319bedfa1500365c9043b9b883654c7531e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1650379536000.tgz","fileCount":9,"unpackedSize":24109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBd+2kWK5RpvBunK9CWQ8xDNUQtkPEYOOKiMMQJJR+iIAiAOo+uBVe7r5plFPiiobPjVXq/DDKMz6U/V0OQ257+uXw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXtGPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrtcw//fdrvsNmqhWy5d/tsNa4DafL38GLuoe3ULGgT8gwcy8Lb1/vm\r\nohlpGVEgVnP4sxbzQ3Zgpd2SFzbXOn8Z4prH1aq8aCbM1g+BnJ0W+MKKpZz7\r\nJxiu6robJy9d0bQPLZzLutxaJZqIYgQCvX9ld+jTe0kkzl6FTtHwohAHYESG\r\nvLD9Bwy+y+y5MZxJG/RM8hmfSpXpGjyLYVUpdyg+u0u4avuFKQw4VdS1dkcD\r\nM/qjIbjjkm1er+VPKoqqYiWKRZW/9Gwu5M7hxl/nTm5OiAUbQzhO6wGa0dJK\r\nfxudLY/TxsZtQMj3KeXifQaOss52g8Ea4HNsp+GMWE1YJLxX3yg8bc/muwjk\r\nL+bl5N0Zoi5mv/P1e0i6tXp5wIzL1VkIoIO/Lubh6JaVXmg6BOONOUSaNSeI\r\nc086pKorGma/z10T9UgkRTSEc8ekn5hoGlt0kfU5RniGQRZb0SWIXMeDN1bD\r\nijADRizSKPwxK4Vntaa3ZgqwKUq1Us/cTnXJxsQrK5eG+NUS0dVdFP5t2q1p\r\nzqhULrHdYmmjsIyKhnjjSNenz5V+R9wtY7sHMb7tDWjylU17u3AJEb7spVrZ\r\nRE8fpq906W5l1Hi/HUv2KTKDzdqUZdbA7OyPKRM2yxPw5KYemTnRHjq2CuVV\r\nPOvaPtOyy2zfm21tlvVOXqQ1nd1zQpWW3ms=\r\n=XXjj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1650379536000_1650381199774_0.1860094003872752"},"_hasShrinkwrap":false},"1.22.0-alpha-1650382291000":{"name":"playwright","version":"1.22.0-alpha-1650382291000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1650382291000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.34-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.34<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"207c3c7abcb18ad154645ed92275f4dbe9192e1a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1650382291000","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-Srkn9r5rpPfIjrocOCW2PNe1yM2403XJTtQ2K4knG1ZHvtdxc1VTAFAGG0u5ys2kVcDcFAy9GI3wcn5SgInYWA==","shasum":"dd54bc66ba3c252a460acbed7f1ab9727ed357cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1650382291000.tgz","fileCount":9,"unpackedSize":24109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICUkRCJ/8D6BRHyQVZollojC8QGZugB/523r0vdNYceLAiEAjjYs941HaiFZ3F9QnnbP2XBnd27IocN5u/joDq2a4JM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXtlFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrM3g/8DAklV+s2u+LUEpcK2KgHYxhpoFm/rAkgs9IWe6qOBE3qGsT7\r\n3sQ8nMWcRjkfBatJ4L872yHI14cx+kUGz9KYd/0xsChVQ1gaQasUWVMwhnAr\r\nI0vrdXu6WSNxVcsDMVAOEpBsmmc4lFfqhNwysnetNjLgeK/IyzNQLjSqKM4B\r\nAGwBnhoGaPDODN92neEQ80e/953qaivJ+c+TQy56kaKw/VPiR2zquYDCNHBz\r\nQ88KJy3ye1qYRvZ/3bBNpcpglywnHq/piMoUrX1KaWMaTAcoO5a2DQfwftXX\r\nQPZ7zS0vS7hsWCA+esEd1LAXF/6ZpcIUrx5x6Q2e92Hfkaqvhaha4x4fLW4b\r\nBPZCvgQBfh7ZhadADScLcC3Kkg9YgbjQB70NGER9CjNvsqDtJNjXf15Vmf1R\r\nM7DgiiVxPZdTndvVi9p6RPZl2DT8I99cb/hFxkOwshlh+gFKyWSITKhIawFb\r\n5qWe8235w9URr5mVfvegPbSmZxuKhSZVSQL5B0gjc2bSwKPqOps1Gymph2Ih\r\nVPDM2oDus3tfiuG/Frb/bSYZFOeDATTD1kkFXyWC3oHAOi3sUzt5W8oD4wF9\r\nmUZJjcYC3ybl91t1AWOEdzoSRscHF/oQrUzJ97UE/2rLD2MQK08TgRO8HhAk\r\nHKhAOboPvMwMDWcrQZI71Nm33D9R2d0lIzQ=\r\n=gFOF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1650382291000_1650383173513_0.6660305554221744"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-20-2022":{"name":"playwright","version":"1.22.0-alpha-apr-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.34-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.34<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bd79accb6f7d07ea90b5faa1b9c75ed17347a633","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-20-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-oNop6u4xt69mkbKoo+kDI/DnwlYsKjZUqccPf7DQc5T5HlYo6cfaoEPbrvS30jqWITbbIB9KArx1mRe9jkJosA==","shasum":"c6cc7304a01ac5146db7b23f17640f37a75ee605","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-20-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLqeQI3Wr6upUT2U+B2F0v7cVkxKZJvEZo/jWQW3AXAAiB72tZTJyUJWuOJKBOMhxBIYoP/s/T3cryxq1f0lWtJZg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiX1MFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmreDA/+N2gMPzg/p8T5h3d6uzGIFFT316hb3jkiazC+oecmIoi+Cnxn\r\n6Nuz4+E+h5EPq4pGtxHgO+WLMI0+PFRSAT91emgByDy7UsDjfar1J17aOV3j\r\negvTDgQntbKiKTh9bYFfaTzK9Xbn2g1T1DcL2pKZPVJKBH5alYaPo4rEb8g6\r\noJ3lz5hvx+b3TpctvpBoq0uDKB4Jtn3V6HlSPQXz1GPMPCOZSQHo8u4yWTaj\r\noJqfx2p7Bw6P1cPfuwXxTqzTV35KONhsx/H4ObJ1hqyKlef/g/fkjfjhnuMc\r\nKBvZDdi53V4j1rZaBDB8N5B2pIaHG5KvK2DZX+XMtTyV6tYV6GiNLzySGLK6\r\nUCd/4mU3bGVBmX1VLwgkQ5ZD9LmZG/+MnhhJvBasrACBlN4nw6OoQ/97+ZSz\r\nirRzc0KZ50xwpwfTfKtFTjVqAIXHT5/PnwADI7wvNwxOEv6P0NS+/EuaAKc8\r\n6fdI5BjCxhD+qfDcoBBwtXMAPYK1KHyPjW1atkjevfond/d+2hsw8qLovEqX\r\nzXzDqdfPpBi9i5IIZM9Wntb3/CCBAG905UxDJkkFyZNnzN6BHnxFpZs9Oi33\r\n/RoPJ63fm7a5kpdShv7aGXzygPWBKKn9gGgWmFrXRwYLKha5uiAISu8b5RpX\r\n22yrZGdhZaWt07sX84yHO0YIRSdh6fOlLtA=\r\n=cPJR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-20-2022_1650414341608_0.23672347684478678"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-21-2022":{"name":"playwright","version":"1.22.0-alpha-apr-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.34-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.34<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"87fb8412675c4bfd8c64ad1aecfacad2c5df58e9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-21-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-0YOal5NyE14uW4ApbCJc5jknnlN6u7KQUhvKLZ/GmK2bzMWKHP7I1a/CdsQOV4fNwX/nKL9Amw0Przp8ZQITvg==","shasum":"da22e220298c1414cb60d7ed5fe47a2f2785d547","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-21-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdkj2o576eyNByTS35BQIMpPozDX+cyzq7LfdMHGtHpAiEAlDkJ8tJGD0oPP9tUAO0xfoJWG+/Eg/3Z9efmwAiYr9E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYKUIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpF3A//RhR0IxL+bgmRh2HxS5saIvgk0/RdfPClXkRBEW7qJiuAi5Iq\r\nB73nnFnsPhPs/3PVMA3wxne9d8YCKywKm8GfmHTZw3MRwYeELMGCNs/2sSaN\r\nRGGB5OqY2tCozeSOfMf01F008fySB/8c0pgnqbYUJfhv3LgURMQXw025XeUH\r\n5vIrnJzcZjzR2a4OPMeEzQ82Zhg7ah4XYMBjGKXMb0ArlFipDlE1Mn58//Vr\r\nvezmJG/oxHdpBL1+i5+E8z5m7D769Y7ZlfE4uABTJGcUCYiOBa7RI8vYXKcH\r\nW+AWD5DrYPCDFbLWJ4JrgX7I9thnkeP498ufDm7CTB/+/ieDgIVI/Ipbon6s\r\nja9jxnukT7Qt8tEUfuDMtofRA+yB+0rDJL4IuALDgd0bh76L4n5LgsXNX4jC\r\nON8OvDpyO/FvxafHY+TqljxKlTn5L5KLhf8MWG+I1QehU1vIhphHAKzwHClF\r\nJ3wwzKpEGwuFXqaeCvFBH7oLoQJvVPE08xUVZdWE4SIAD7bUzVE8D6b7snVD\r\n2JlBM4tQuATQUbmP26CfOj9aW8l1rPv98C6g01W7Nyohx3akMwmCfOXEhD5H\r\nJaGIYT3Ii+aP4ON1ln2AiwdMiQs40HCmIpgtm6c6eg/RfKnRr15E/aKBWvxI\r\n5F69nsG1RcQQRjHOtU5l7vqjPRGIRBbNI9w=\r\n=uR01\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-21-2022_1650500872620_0.013149453148171508"},"_hasShrinkwrap":false},"1.21.1-beta-1650580895000":{"name":"playwright","version":"1.21.1-beta-1650580895000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.21.1-beta-1650580895000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.15-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"11f51455f212c4452ff8b0722f72f473053a868a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.21.1-beta-1650580895000","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-MKLyVrntMhzzjwIeTqx0A2E97et1n9UMFfR2kKCJyqGF/JKxkI38WtNIbu59HOXDVlcRqxKOdZdDlEILmFUubA==","shasum":"21cd30ff2b99be30e93f564de2043613ec274513","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.21.1-beta-1650580895000.tgz","fileCount":9,"unpackedSize":24040,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0vsPXIp2LAOdiKePpEjm/B8CJA6zKTCX+I6FK399R4wIhAO0NgEQ0MkAQt80jDFxBM0jaeA4JatedlewwUXooS6AD"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYd4vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRZBAAi1ooPYiwgzM90cMrQVh0Hm4ZKBHie3vJWXJ0YH/KwsLt1aZ1\r\ntEeDnny/NPfIwYwzOACgwEsR6h64tOSV/EjDOgGUPE41sGK4Q8MbmacwxzfC\r\nAmdL44ddcnc/mkOf4kaoZplkOb8hhAGqxoP6hmjfittUrJs6DP+xlmHggCS3\r\nVPER84zdqiAGHFKYpQ2Sb4CeJOAILDrVauPVEbSJQRNp9wDsDK4foav1oLQZ\r\nbOnR8LRngMiveOJ40t/FF4FE0qlU2573q2UyAgCdyxTwNmHOaT2xrMJuXb/6\r\ngERQnrqNNhik2Hj5DhfvuSb++BAg85mQRGVakIqEjQwb6yC4TgBvmdlpIwva\r\nQGN27eQzMOnbvj9GyTbSSJHuuia0kE8JOdfC95kil0gMfOeKfc4KfFcO0UKA\r\ni/Rob6AKYnKYoar/h+C6DaLtLZG9IQBa8TV+EnK3pcbBNoxbe2KKYKXHMr2S\r\nkAMpXbghoxfhaTBPtEBmLTGrkWhjdicDBMy6Oh6fwxxJ9ar3BUWsFPFlv0Eg\r\nCHAOQ7TlRm7k1EhTAKAYyu+BKlZCe8t0UKHsVhi6CetoiTzckHbZ1YtSjsV8\r\nDWt7B0IkDOus8U/GGlflNwr0fQIfu+fNCMOX5rM5Ow949RCwZBa6y6azpCG5\r\nmwfXxBHao69FrbTTRazocbdjpsg0UzA/vH0=\r\n=7242\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.21.1-beta-1650580895000_1650581039369_0.38358443091868955"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-22-2022":{"name":"playwright","version":"1.22.0-alpha-apr-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"89b8fdd4e570c1e1de5e4e0ccfe8b82cca59775e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-22-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-mnVNxWoSDO2SCmNfwhTOGVdcIRdX2eBvPFbNXqnbWPhlSrGIzPIeil+Qv5JZbgKsLR8jg3Tgkfr8cDtq6E2spw==","shasum":"8f9fa161a54f3128cf21d44cfb39a4f69b3919e8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-22-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrA6oSgu0rk8m2iJO4enhF/+2Xjk/PcmQyYLM0EUXTcQIhAKcN/MbxISUXWcCmX8X8l+f7gajy96BHs37Cc1p5LgjV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYfasACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZRw/+KdufDk79kpSk0MPrL8I8E4bKX9bLlM7y3c6jU29AZtsIAUVw\r\n+66BPmGKnw4sHSnzePp6z67vZG+hLvIvXjdk043jVQrzKCloGmvIgTBauRVH\r\nJgwtH70APyXrYeM/Jq6l4ECC/vtcfL1+2Hv3Kkar8Atmzvb7sZrOxjRKauPW\r\nq63cvnbeoWL0PwnUvh++UbbkqJ0+HTZRHeCcfz4Ff8fVYKOwsrN8n82uUlnk\r\nc5H81WFwSqN6HQtSu8/sEsIZOdt+J9VNp/nEWaTGPZWtHUt47bKb7NHGLfr/\r\n8RtVlHQWWagkzLMotDHeJPQMho0X8YU5nMMmSHIA+jwkYmSOCbiT8sz2OnbC\r\njrQLDUt5jKh9aR383DpfPhqYcl95wegZSCU+OIgxQD0d6c0HJRyGPOg43TSj\r\n9k4Gk6qgVICW3itgJ4ALW2jsvpSsTWZ88S/ukJG9xyZBjAWf2bAWOsv7Ri4E\r\ngFf5XaZhqXMdiJPp0hhZp4yI0pfv5eRThSTVZ4RzgfxsBABxGF3wUcllKMwf\r\nGJ6cQKWuCOCM3G6UHCyRnwVA+96R8kSrkvPYUthEWxYj1B7KAoFlFLjNaG5B\r\nmN/9M8s1e/NkZ2Lpd/arw1hQpERb34FX8F8IuPeWc0hSSuTUwnXD7KSK+Gqf\r\ncK3CTu8t1NHxbUJHAi8uLL27MEgaU9U07ks=\r\n=VJNY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-22-2022_1650587307915_0.44813821536979903"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-23-2022":{"name":"playwright","version":"1.22.0-alpha-apr-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ec4ebefbd664eae10734d55cbc5a08bd20c70666","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-23-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-dkHLQDyW2jUbUhByrIRdUostEHTs1uk3VEG186HxixseNRgFoiCybARKgDjGDBJbh49tSTH+7Pj/nkc8joyzkQ==","shasum":"f5d41335fa100034147d7461e621fb56f8582f55","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-23-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIBZgs2djTaQwvv1yyhYP6uk2xTCb6JRInnOjLenAgSvmAh9juzsOF4eSFW2Ij3xU84F7q+WYNlsr0mR8AnQ8XBOf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiY0cpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZCg/+Idwm6CNj/Wo5gl9Pe0O8D74BUY42QGW237AV9ZeMadWk1Axi\r\nyToQKJl9K9gKcUnT03LqbNbz2EaVH98UcnhuQ+ZkT29h4+hlrqESZr7TLIwW\r\nesnRCsy2vwyom0aqQEXpOxzIHJQtCyZqz9B4tjYl0j2HZVMBy3T8z0rMyu5b\r\nFH9dDMbTK/PzkXys+XxkKP8h6sTvKttp2o7z5qzKDSz25zvuHXR4DkgmHzFj\r\nK7ACgYwFKaqKRPBO8MSV0DDxlKWkNV/Vd9Xl3CdTfdXgVpd3s7wQCTU/iDj7\r\n5YDvYqo/ZmBXcLej1NxVbPZ8T4LzML8ocFtqcTrID4li4VoPQ1vClByYE4HZ\r\nZQXtsV4C9FzNm6EvoRKptCcS64mBKXD0c2Y9RkYTTW+Xi7qqize2hdlBXZjk\r\nCu6MEfpfu9MNP8XgyM/L62YZ/tnQYQJITkaNcvwlNeYlyA2pukg4fNy+z0c7\r\nQ/exvoeAcGTo4AN1Jpgbx2QQ1xS1LlDQ8ilhBiPtfKB9crgneuhdNeXQhqhX\r\nX1USwJw9dsRfAvNiy8ET3gHaJ03g0jaRIdjemEDFQU5FrXhlhMNyclpEozp7\r\nKcLmvsdlPmRsONNCUoJ999kNoL+KHu00gLqUXRloGEci5KIyVNl1Y4vqRXrB\r\nx8Tb1ErcSACF0XXWORQlT8AAyZWNFoyGxf4=\r\n=VpgH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-23-2022_1650673449103_0.05586721067220113"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-24-2022":{"name":"playwright","version":"1.22.0-alpha-apr-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"01a8977b4d27c8ec65b9304a8c3e07e54c52d0d8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-24-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-z+e66Fh1s6JA9FpE/tKkeZLrUX7OLZR+KH/ax5ZNSn54xyQKiidVmOllDw3AFz/KMXC3tUZwk8YpExFkht+dig==","shasum":"210ffb853ede07010b94e8de24a1c043b66533b3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-24-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTrzZuSB+RGrhC5Zcb4f3fB/BeHJ3YlxsecM+4dP30lgIgO66R9iQIvgLa9hy6B2aOyzYZNOxdOTMtlnXz1AZe/lg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZJjSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpiqg//ah3uZ9qjVHmEpu9r9vGZ73S6MoL+iMtj8p3hWJ91L1/gFqhQ\r\n0Pgb7nRpjN1VP4560ZvyS/hmVjdU3rRqd8o1wfPbV/BqSeYeVN/+MJcrlKKB\r\nEQnc/tlUh2aalEuyExDwkKfJjVf57E6bEKb/Hfk+JwlOt9fD56AeFQWPXycT\r\n0eHwEHn7VjTXPAlERZdX1j9DPLISyFe3ovI6psuf5b7zBYsoKjkmfVZZiRUS\r\n3TW0N+FDCLC/LZ2Xl+1JvmRg3QhU/uagPsGatZnMrEXBDiaViaD+UkMYwtnA\r\nprTXxMmGvChzAuvcJKbUAa//adIWBEh+Xme8UOj/HDpzvNXJ3Tqtgsg8qfx4\r\nxXgq+bBP53mBLFCk1GDnV3uOKkH4ufypfl+k7q0MVti2eCvyNPn6GQ2pr1pj\r\nHeWEWjHzo3+QBs+G+oVkEH+1qKr31yLdxH4p4/sW6VtHwKrFaWuNULNmtgvO\r\ndtK2hqH+rvzxz4qXuBmVnD1boiJPE8xjUMUPRbgh+dT1hCfdra5AHptd0XPx\r\nbBO0PY6HDN7HKAOwdbmiMpNNuIKb/Y5LAKUonXzxPKvCaPZPzNEJejpF1XYq\r\nmyaAem1E2Z0vLm/qtapMTOo19SSAXnqM7JWiOW56fyNeMcoRjp7K6VLa8CES\r\nUikPXeNvOkxvGYc28noHSvahrBv9hnEgclA=\r\n=nKL0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-24-2022_1650759890517_0.42622285705625207"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-25-2022":{"name":"playwright","version":"1.22.0-alpha-apr-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"01a8977b4d27c8ec65b9304a8c3e07e54c52d0d8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-25-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-iABII12aCh1e78zk433MpQb/GgJbn7dxFPUIt9NZZrNxFvkOvLLXmg++ly3bHCcGvTBrRvdvZ5s3LuYIjK8IjQ==","shasum":"8026400f61773446493b686e65c2b9a9a1ade133","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-25-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC51NBO2vT7WL/QFx9/U42JpRH520NcW7zXpxBbOuRRcAiB17w2fAnaAMwXo61QGkZpazcQ/EICyWohe02XF2ZAtTA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZen3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpc3w/+JOXEY/MMweiqfG7aayawzhZOpwiU+27rzkHtWqf8c3uZv26+\r\ny7e5ApgwXsuF4yOG7SWLDgA8WxlX47NeJDe+KeM9maWfby3n76xdeDUg9x9l\r\nrD3xoe9Xsfw9z77KKIrIs9CdecekMhWSnOm0WxyZ+6x6yPUDMt+rScQPD7Th\r\nB2XY2JYSsVZwZmQeqeKUvq5OIVQpzBL12ymaRz8mvVKZdFsVv5DlrRhJuxND\r\nxYTN0plv1r+F8fUQC2Fjx64PNKVrHmh24laZpC0DO0tEWaTLauyQB0T4g3Ya\r\noA6zZ+27zPEFkjJQ7Dyk7vUHLECEk/4OKICDmcsaJG0qWi5BSZ0p4EEyMucW\r\ny9pj3DeMClJbP/MMv61i2vv3vya1PzGKJmD3X4xGvfC6sdHw4gnHP65gk0PL\r\nHk1z8c4L73gVcQ0ddnxvw9CQPpRge0WJbTk8W8xDfSOGVi7SaoCKVAKHLg2D\r\nIAjcC6j93F6+N1uu0tUMifLtyX1tUzQK2mW1iSCDLyXBFiQjjb4lKTD8dtMp\r\nAvEQcv0Lm1HoOaMmKdYrCqVoudPEpdB7LL6SEaHv2VaIx32uYHkxKLBWpvm5\r\nr1Lom9cnDvULinpwyILL25Jyz/VTMXAjOwQgapFgTbtjWEh8gSwL6SbClb8l\r\n9RjXOEYVCKnYDNB0k+fdCdJU60SzRA470fg=\r\n=qE8q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-25-2022_1650846199154_0.3835939177448422"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-26-2022":{"name":"playwright","version":"1.22.0-alpha-apr-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=12"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6fe02eb5f108e63a87e2efce05cb69e8992ba2aa","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-26-2022","_nodeVersion":"12.22.12","_npmVersion":"8.3.2","dist":{"integrity":"sha512-J6YmWByVwhkDs/wuRoL9IsUorTkDGEKzM+GytVPVkFxf8/IHGAA6fIddugYRrhEzJD0Zt/j8NiFExcEecqbH/w==","shasum":"cd7cbe4a8b035ac901c6ad4b09d9fb0690f60e03","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-26-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbJZBljIOsK2sFF7bAFXTTIum3IoO0+32ot4IySkeVZgIgBV7uKp4GVPtCCRPQpa116vHFpCffE7c0ys2nGyC8bmw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZzxmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQjQ/7B/a/LVu14C8KC6eBN6NY44+GNlO0YxMQ1+hGcaHLR5z2ZT+c\r\nDQIi7nQkVGJJbDL5I2ApaNWiJTsV+khd9DhbJsuzIXSL1JGkKUk9IRbcSOd8\r\n3+QMysnhofQJdR5IrtqIWWAZBjNodj3ekkwOYXY+29LCoVO7uu/8kVgpjQn1\r\nSxvkZ9p0UMkJyauqm19THEmXQYiLsSWxj4kNbtyx79CP9Bgwp7WECIov0LAV\r\nlFq7L+szyhFAsLTAtEUq0koYkZ4dsoght35JZAleakiOEcX8Oxt384DOchu9\r\nRzLqrNFwCv2G/cAu4/c9dDN1VY6ohySVcAGFw1rj6+ALvyRoFC9yToMj5tk3\r\nEQcBZjDYJK8wIFrI3nmB8KXXmV1LN3hWfjDNZv3QK1S6Ja5kZ8uGYHXlYhkF\r\nBJRdLwnc5FJNq1hCR+1eX1ertx3VknHbCNcqsF90/lhM7J+9f8STB3Wksen0\r\nDGHN1Ryd4S/ix14aIol0uMXYJ7kdB40yTFDeH1ebct5eAtZEMN+C4G5EUbAa\r\n7bA97B3ELOkIRV5Pnx9eQfiHdyCER0aII9neo1KpabzK0sNdCYiYDJwauihI\r\nxSaEkwigm6nBpYgSi5MnLqLdGEy3ffKcqUwcC4stl2JxTaO2lj8Qr2DVP5Yj\r\nKXlVASmvYMbZ/ktoJYXR2NX1hUs3VrJzrx0=\r\n=Sd4+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-26-2022_1650932838598_0.14991346814373685"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-27-2022":{"name":"playwright","version":"1.22.0-alpha-apr-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2bc36794d15713ad13e92608b5641f76a33361c9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-27-2022","_nodeVersion":"14.19.1","_npmVersion":"8.7.0","dist":{"integrity":"sha512-kwx6bd7znDr6BE0JVR1nXgBtKKTPztsitzEQp5kAkoDWTAp5TF1SqNtmaDbb3/DYzmXJN0MP8ws6dqryhfbnEA==","shasum":"c95ac7cc1d8843089e4f840aee6dde2cd4004e5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-27-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZ2c+ad3GmBG0F8kbFtWAz/2+C5QqpaRMHg6Vk5rNoMwIhAKJ27ctC5HHP9vLkzZboujpYAWjR/0Chc9buhDF92tJt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaI6zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnyBAAlvzQ+Qd9lxLjGdw+D3ZmZTQ31FCs9530yiSP6GiKYBDI6blR\r\nfoEvlThR5b1iBYRsPraneq0CHpxdij7u961Xf1UJhDkUucL+VLeLi27x56vb\r\nZHVO7F9N1E6QCv5Rcy1pW765Yo3rHMji20jbRAcGSlg8K/94IdXJjguP+pPX\r\nczcGOEKG+nuS/hAF5RqmMFv/eLnsqkcM1/gx1hvPDiTAO4fwRcddIzeUO3Ro\r\nZvcNJFZdHf2ICKNiIGwJP/x0HLIMXjuw5T+EvjAdbACtPUo+aYnx1GcXGdis\r\n2rW/VRi46JrvMXlq/DMCFZD/Wd2FoilBf/LCkAohHNzPFy1RSa6Exw3cBhVn\r\nK2Nhp9YnFLGU+NsT1WYcMMMVgJddRZZnPf9gHI3B2G6wrIr8z2O/GUZSBsp6\r\nqirEHxBklxoh1+m9DLsCDqKutGxoVeUJbEfDN5HnB3gonNeRa9wXfFDB6Y1a\r\nj1zBzyo6phmWUIciyV0QMLtA4O3FaBbsmBvPB+xLK6R1JvcKCra+8UX5c6rM\r\n27PJVuIUSqPbUSXCcGze2T2andhOovz4OEQa3cFCfgD/5HBtGdsJBJBcoJEG\r\nNIVFNSKoWwk8LvONxVwOFs/15dPEBNuaGiTGKVSOyFGo+I13uN2CZ175ZK1U\r\nn0SyCO0nQaI/fgJEfba6SgiIaiQ6JAjx3bc=\r\n=5zwM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-27-2022_1651019442960_0.9870370010617384"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-28-2022":{"name":"playwright","version":"1.22.0-alpha-apr-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c70324d0c07fbe53bbd7028982896df86deaffc2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-28-2022","_nodeVersion":"14.19.1","_npmVersion":"8.8.0","dist":{"integrity":"sha512-Mt4pBKVGteK2CV8X9njybvXS5EsC4KnQLRCELvLJy6CSinGP1K2lzv8w/PPQHVzYZNcMt5CHkNff5xRW3rKQ2A==","shasum":"5757b4079c4f66fe95127eaabc2d8f5ca40b0fb5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-28-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHpPRy4dwb7OIgjgMXuQHVTMPu04LU5yGxlbLVUukwl3AiBlDpU+TVwxTTcRI7Fk3XcnkaYnZKSMxSr6/xm3ZaA3YQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaeEgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7kxAApDYgabQKLCmAUPt+JFUEJWADLokrpHGAufwtZTPbYeHwezCf\r\nWVm0lSnyeH64TDhVNp1QzGgW4xbB+uduruPOHnD2CJaWedVY7JFM7R5rVnSJ\r\ndRfkakMYDyWk5sJSUFmntUtpyDg8lMpUx3k0PmrFP9wN1oH7S3/1jTo/FKLf\r\nZ/gAT4J153wK3+xvKGzcOrfzk2XeLqKb9HfaHkWcDZn70kX6VLXLrDaea1hT\r\n6aXC2OAZrmyp88e4vBvc8sgJBxAI1IOPQO/bdN8JBoxOfvvRnVhapjalryWg\r\nZhfCa0u2U72UMWO8+KP+oy2Kyu3/Xpn88cSByjTRMN9k4KeTn5DCCqsINNgp\r\no/dQbrRfg+qjffyNRJpayjbfQQv+DhaoBx+/irxOfvSb5MTh2PECuxLxR+aW\r\n3wmoZXNfdjN8figw2by90NXomHYeTLzkX7xPgTU3AsgfvehM8JvANPmWb8af\r\nKpWfkkMsTgmkKrYwnwQ6Unv3xnGKbpk//jM/dPDqtfj8w985TfrwjivLuLa4\r\nM9vmLOUsfPnNMC1Vt7cuoJ4aH2ANStPNCfwMCooFVATjFdtOscxx2OcKQDHj\r\n6y6B8jP5RFCVfBgibVJ1N+cDfQ7DjstmIW6NJROwSFctCG2nXNoMdPBNDK33\r\n1LyHmxnsOMZHh5wRrHAzyeyKqVyHosntv+U=\r\n=F4rL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-28-2022_1651106080734_0.8185732264461794"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-29-2022":{"name":"playwright","version":"1.22.0-alpha-apr-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"18bff137ceda87c8fe9babb6c72548e0d9b23c06","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-29-2022","_nodeVersion":"14.19.1","_npmVersion":"8.8.0","dist":{"integrity":"sha512-quOwvKQBjD//JpCnHTQRvQTgi4OC6X1UhuV12VfDkgBicuEf8+9gAOG9im8Uq1qiqmS6kPG+W/OdKKcNI0lxgg==","shasum":"c50f51223da573276ec03be9677fdb13771e6632","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-29-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7dwnql14N5JVK4nhR8VvmSh/mX9GpNLy/ncBdwgA8BAiAGCQ+Yl2BV+RyOwJBnIZaodoeatKPxmnjIJwOm5ObGJw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiazD3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXqQ//RcxBueSCbE41KX88KE0uVX6hnGBHMeuS+794UVLwWGfpFu7F\r\n77CDWS4agPoUOP2ZehFXE5DIRW0ZRrJxnUipQGZOCkxweX+jJRNv4JAzmHCP\r\nPhviF8zt7Wa4L6vIm+/o/4BK7tumEL9cRGJmg5oP6cJ39T5hiIQDJgTV4TmH\r\ne3EQv9dmfWUBL3P4fGEsKcM+0pAooyYudVtRmW9J/+B1+OGNaRg6TahAm6xP\r\np+4SW6wy5Jcxo8qxmQ6qwQ2HYhs7MY+jLxUpZqs9i8Ls/de1hewbdgOBJk8b\r\niZ+i3sGcRWXaNje6B/dKJdD0SmIUiJ3EUbtTt1iAGjxnE9xZMO1o/rGpW3+i\r\nqmSOvxrLtGFBk7heaZP4XkSpYDje8RQH5NcVT3uLv40sQOOIqAVbb9/PcBEK\r\nLP/NFK4Q7fAGaR+0N6Gsdcg88GQLdcx9EX1VVDtHJ7dLGtT6fGEaHQ7ZGleb\r\n03kW5CIRecNFQMSxavqWZP82nM2+QZL8GMMInsnqWAGrruthtmhEsTLvtY2s\r\nnBdeIDjHXqAE5ECq44Yxz5RCR6z4TpMmKEeKlx1PBtpeZdtOE7m17A+18VmG\r\nLqqHz+4OV2BKrzcJi8gysgG1SQYWeNLXfdf6GysVe1kxGKhiSVfcbqgBhykV\r\nw5MotiSxe1c1p3FSvpQiD7r0t8Z6N+SOZtY=\r\n=8+PH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-29-2022_1651192054773_0.3041861551417624"},"_hasShrinkwrap":false},"1.22.0-alpha-apr-30-2022":{"name":"playwright","version":"1.22.0-alpha-apr-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-apr-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a1b10c3856d59726b055f1f7ae878214396da9f0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-apr-30-2022","_nodeVersion":"14.19.1","_npmVersion":"8.8.0","dist":{"integrity":"sha512-9HjCfjPWZuOnhbhfTMMYi+HL9geEkF/Gnn5FC/rCsL/FYcGxcA0auSAy0CIyyqz83cTOQMKJywV0Hhj4+nP2AA==","shasum":"ee2eed5d242dcc048f53f35f421221189bd79625","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-apr-30-2022.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEReGMdvrmICZUWAMh8EQ3YOU/AKVALF6Wqyayp/aNfUAiEAvLVPA2h2F7Qq0m5cunQh/2PjHi5BWzzFHjIq6obdK+w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJibIMSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLrg//X4Q7kStL9rxoOZ1Ma4HhEXqNnbw7Z2FETa5E6sJ/gOXTzM2H\r\nuPeOODmStbweeFbYGMeMN4jXgDOu5r5BqzGznVLSmpv6gAkSfeWwm9HOOOjf\r\n+j5xvepuJdtRoBo1YhHrBjmlA0ZxKnJyCRda2tBFeXuF+tdgbHEPuDgSW43f\r\nAFNyMpF0+rlCbEG+hdKWeQJsXUm8UmC4i3N4zdiaHDCp1dHCIguy4bBdue00\r\nsrDTFN4puIihXNHjMrmJAc+/fFB0BLbuaSdYwVDUV7N0j5PcJIGbCSxp4MOs\r\nzMQZr+yHzaaDg4TAUt1frTo6Aley9UVBrXOfaVqoBYbEzAp1jHkIUbXUOT+Q\r\nJoyuTn5382SruH0XgrlO5EHPgW0GUwOATwVDH86p+SvcmEEj66997Phh0ZM9\r\nFy+8aBxF6/UES0ycdVsQt7W/Q/hJJ6M0z8s9KN08OlLGIyQ1EjFcMB/UorOO\r\n/0ztCMNM1hpVcug2/2oCmujf8bOurL+PviywVxqVPxYPqSbjQrFt92vQy0Fs\r\ngDf4Ul607jNQ1YkuGKO50XwxcBbQAjtgpAmMD6muEoPNRjy/DOrwhC8tJjFi\r\ntAppNTJsSzlCi8qEyBdjEEQqUOOn6xAz6ecq/nPJ78e1xP6YVnBFC4vatLIO\r\nj8Yi/kEqqaLnC0onnTQwmoBiWRTVcDBjmO0=\r\n=tT24\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-apr-30-2022_1651278610595_0.1804484327279301"},"_hasShrinkwrap":false},"1.22.0-alpha-may-1-2022":{"name":"playwright","version":"1.22.0-alpha-may-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a1b10c3856d59726b055f1f7ae878214396da9f0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-1-2022","_nodeVersion":"14.19.1","_npmVersion":"8.8.0","dist":{"integrity":"sha512-LQ25ijxUCszduAgECoFtyEBV6UNm13NkvKyUEpbzwf0f6V/bAhUJKKu0aKz6ZjUGAs6dX1nnlsDXJps79/IDyw==","shasum":"34086857a75ce31cdb9e8a651f9b575e8352336d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-1-2022.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/0Syytry8mZ/pW7PeRKqDtH/D3A9v2YGHfghx4jYfrAiEAqlDtXx2KzW6lMMgd4ZfbDaGsd0zRwnLIwXx6hoHqs0I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJibdU9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKCg//W1R3j57NSEuUVbg0T+JFH7yysqnk2Jca02Mt3f/Odmo2jmSC\r\nM8tTyfov3oNHwQekrTqVcF0SWZopht+NgXt6mQ4RX3Ul0o7yGCpdrgOO2oBS\r\nzpbF0p5az+lGMoozCzTp/Qlva+lN+GMpr4Bjx1p6POtcT/ywn8d92NlX+uwH\r\nz5r5l+YixdLTq3wi1IBe5Fca3qisf229UuZwgxsk+gpDFqjD2Bjj6VYQ5hwO\r\nod/gy5YR6whiJ8jOyavYyudl0yqjm4k0zJzVXGijGNiNseK+EsEeglSkBmVZ\r\nhQ8TAP31AhDW6vv9+N3LUrZyCyZek4ijeFdcr7ZxZvuy8nmKE7xZ7Fezpddd\r\nvnBdJkEbVc69DgK3QOvQlNN/q+J63IEs0vev7hEhRizoU8kTr1g3Ai3O9zzv\r\nsLef4ulITjHTG6mf1nncFSqIaEf1pryi6BH5nZ1Op2ggeQZ1sJkv03sikPmP\r\nhPbSTjq1UjFUvM5LwCCDAk/l5L2nvTptu6ajguf9x7nLEY79ZBcAW7PdsFXr\r\nKkYKL89c0dsF8ubkbl1sLTXSUm4wVJM4Ou9Bw93R1uQsUjYTB9PfzsNJknKP\r\naaSsj5TyXMsiQVqZqbtwe5qCvHPqHgas3wi1NBe+p23gn83RX93ZBXlbDh7r\r\nrk/vvhVZOgiSFNcCJHGKxm93w2chtXgZ8MU=\r\n=eq04\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-1-2022_1651365180989_0.6330797587129107"},"_hasShrinkwrap":false},"1.22.0-alpha-may-2-2022":{"name":"playwright","version":"1.22.0-alpha-may-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1ffd18f131c0bf2fe7fe8030a11d08c9c98e0fa2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-2-2022","_nodeVersion":"14.19.1","_npmVersion":"8.8.0","dist":{"integrity":"sha512-mNsrAaf3OYaqyyJ0EfhSr+oTLqIYVoXgDqvMhb4X2gqFSTPoRNxw4mkh3kf6dpNzfoE05nuUVtFScdtoSVx5Lw==","shasum":"b1dfea9de887e633f4bc5f143c99226ba469a6fc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-2-2022.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfO05rWsZOAUAm6gHRuoxFt+GcRUTTllWpvLB/1Tz9ygIhAP1eAMtXY2DLrYiATG90ideB9DDNUjuYOxb2AK6eLCj8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJibyU9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQSg//fOCLPfHCFuefXJe3eIJwuQMl0XD38tAn8fIWthYph8/02WRz\r\nINSQripBRINPFyZ/g2IDUOwpM3aFeDsw2X720LnbD5SO2ibYQm8PbM6OqgCk\r\nPHhwSrjmRse0hSakCXfi6tKSPoGQ3s7oXL5YKi14pEw2RouCKwCRHDd0ZVoL\r\nYOxXOzLzXCMn+ykp20vPQmWSiBvQd6SBDzrpnlmOaRyc1hzPqprEdXozZwZz\r\nGlSqCIUSEQ9VQlOWTkEJNyT2HFE5LM/lUfFJnpfQIg4sBpnmLZCGN731SCKg\r\nslZrY2iROR5Jp+CR9+H4rHjHpSUXl+Kr/KTgB2C8BjPu9q+bL9fZOR1ej7Ud\r\niAHF26IO8hUcKSyXU98GUljxv5BVdS9q7qSWwnUiWVDERT52NH4f8bkm01q8\r\n4GXP9XnokWyJKz08ZEGPRZbaFv1GiG+wJQNHwGvtY3JwlFUZ8dsTyA2reou2\r\nhBnIqshdFDRIOmf4NRECP6M9SbqaK3XhbAo/OQLWcb/NGy6QPYA36BCxKNC3\r\nNYg4Ny5hbtxwY6y+qQJb6EpGFDEeJXZ5rLpwYRzI2pXo6g1DaWMAlMYZ2EpJ\r\nCedufdF9Vn/JjwyN8MAbce5o0l6neWJOMKQsngMpJD7XRGOSJQSjyIHYI+aD\r\nxkR5KpT0BjvwYDv8NshGOPjfZRMjh1rDnXI=\r\n=3NSZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-2-2022_1651451197753_0.6241491355572422"},"_hasShrinkwrap":false},"1.22.0-alpha-may-3-2022":{"name":"playwright","version":"1.22.0-alpha-may-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-98.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9c870bb6ada2b76bfad49747de18f68f18dd3848","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-3-2022","_nodeVersion":"14.19.1","_npmVersion":"8.8.0","dist":{"integrity":"sha512-dOgXHzHVbg1EAgKJaCw61D9+sLs1YpN08cGFAsjIA521N+se0de42W0fnNpfZ0CDOPm0SgEFjLH1TqsAn7jnQQ==","shasum":"b453421af40c589e0a480d4ff20ee0ea81815ce2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-3-2022.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmAOA3bFuY8spxOyt6a25C3o3J++dc9A7CVZDWvxfQGgIhAN20if0jXod0F1ACUXLUnjBW29ksS9K3kJtoR2ple5Nu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicHcUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYQA/9Huf4+atSi8d/jZAZF/NV4X4YuNC78mji82cX0CuAAnJcr6Md\r\nKPaJj7J75G6PZQ0nkmwBaX0LNmFB08SDll/cefU6e84iEgm0L9TynBuejhhL\r\nvHpZifXfKaQ6Hi4W9OgvYr/DJFhPc9Pfers4yCAZwYD1f9BH6P7TGBK51Qy9\r\nFP6qSA6ABCXIdhGSHg7BmhBmJsL0uMbbadInaXYpcSNNvTa9OcwOacSUnkaQ\r\nBQbeA17gk6WIwYfDVBicWqW26oPnB9Nq1khmPXqzVCbtaSNSBfaIIKbRfxP9\r\nIEijihXACKLwFoeu9l4B0jHyIh2ucfWD5+vpj4ktO5NTnP7ykrITPSDabj55\r\nQJVDULHdNy6EE1Vqiv1p1OwBaSjj+62oefesOy5UDzDIbBhELeRyAvp3lgUm\r\nap6IZele0Gpza9uam+OKV8KBVZAfst3uoQ64pdVXinrmGf2ofyd829zoaodt\r\naWNnyl3OoQiTudvTtXLs2exY0Gb90VsWLUYHSdyeJtTNUbKqkl82EaGK3u6b\r\n4IZlUMfyDce1WQeIjeyas0sRwpHhiheEQzSKryEc9hh9xSZvWUNyi13UKhMb\r\n6nd+geyltZMaATibn8SgULYk4u+xep1oFnY2nggNVtCPjCa96IWGTlTR1DZl\r\nDJiXECKzmV1PkoSYnvz7ri0HSvmtB16B5EI=\r\n=dQTI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-3-2022_1651537684171_0.08429031007131083"},"_hasShrinkwrap":false},"1.22.0-alpha-1651594460000":{"name":"playwright","version":"1.22.0-alpha-1651594460000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1651594460000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"029aff16e4f3a3d613899145bbc7d4bc719406b7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1651594460000","_nodeVersion":"14.19.1","_npmVersion":"8.8.0","dist":{"integrity":"sha512-uQBXYqq6rSLuvynFr6m88+cNJokRnrv2Riog+zYiQeHwBTtv6DCR9af6Rk3XV1szRa6izmwzryidsL11xbWWKQ==","shasum":"2cdca0a9dbb31ce0818cfac13fa8497b61139fad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1651594460000.tgz","fileCount":9,"unpackedSize":24109,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKLFNhZrEg+sCzA40Z71dsCu14WnreBhXMlVoEg/HSRAIgNfkLO3DzQnRhqO4xddvsvyc9xiDVC18r2klZLGJqr7w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicXDdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHgg/9Gl02078R3x/PYuK83dqBbL2NmgQ6eRYe1Uaa2q1Qet/4h8M5\r\nNqAVK9+vlEBdPa3vYA5NHLJ7HZVpWDWHDdRHjNpgrLs9+g21hWQ7a2qHpTzF\r\nXRDLInQzpHGSdTxYBSwhF4LqQYZbysSHnvaUomVy2dRK3EeoQCcqdj7/rurl\r\n/Accf0Bsuvd4UpZemSE46JLo+4J9qLEFR4MQFbdzneqBAvPuuAupSUNVPtp7\r\nPgSDW1aYjHzvhVu5dJj2q0pDDOQK10zO3QxMdWAgPfdLECTAuiUxXp1tTIED\r\nEnqavNnHrbgp4SpdA8fsI7NuQ6FqwlX6N0pF+OU/Hc+a+5CDLyuthoWc1kQ8\r\ny+fP4wKi2TZSPJUBkdX7YzPJk4AQvkAlenp+l7HoYV7NoEejAlWvTu4YoWyf\r\n9Awy6RV4UseWCrAJb1c4yr6iizUtAkRCp8f3Dk2OHE4L+CQ9CnNVJscx5XOO\r\n3IOBTo+9ZkhqpTFgHLim7k+LzOfQ3p68/iuNrT+VnycXVkpQz+Adm5LmWQuF\r\nXTIGmCmqfmLCSmWABrpNMzPmamMXXfZd9URJooybsoEPlzl/g4ul+zzZ2cI0\r\nVSWRunqJTIALe9e9qOUzb17SGWZtWNddDubW+dY27F+4F61AR39JaRXIEObg\r\nuRkRVkCqJLvJ0UeXLZ62APE/iOoVbdIMniI=\r\n=wLvH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1651594460000_1651601628968_0.5563803166080623"},"_hasShrinkwrap":false},"1.22.0-alpha-may-4-2022":{"name":"playwright","version":"1.22.0-alpha-may-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n    await page.goto('http://whatsmyuseragent.org/');\n    await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4b6f53461db979f9fc8355780ee0c2e378e64e03","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-4-2022","_nodeVersion":"14.19.1","_npmVersion":"8.8.0","dist":{"integrity":"sha512-6mNHHvN5m8mnEwToKZQpjSvpASFYKgQPHh0jP5NDJ9x16ZsC8GzLg6hd8wII2+0+tq2d2cUpsERtxXdF00QGOQ==","shasum":"5e4fcb9fa54b2e80b7b7cf472474afa7c5fc9e00","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-4-2022.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXWoTiEM3RsJYI/5d+OzWEr7Xj3M9YO58u4nsBKU0o/AiEA1xIiaHOePq16oEa9Z+vaVu/PNZasxboHG9QRVkL5Vj0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicchCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosRxAAoR162fmmHLXoHlMsHAEX0fOKVOhhKShqi54DBP8JHO7HW/TE\r\nGxyqbmSPR0XrBhMlhegHkOmI7xAOhD4pad44m6MT5TTYzNfaAm1x/SBZjgBY\r\naGtv0A2/WTLQMsIQzkHuOpIKYxfPzA6T1QnAeF7bSUpwxJ8anIuqSVDsVgX6\r\nVB/Om2djZ5nFfLzrh9p7yL8DXwxDkX5ipTX7YjuBkQEaQM7v3OJ2pcnxm9DW\r\noGdssK7UpduCeUbuaVA0quohfY6+HBULHweSeGkQTyfxMY3MvlJckaUz2qnm\r\nkFAkSMBRFhLfFcpAeQ6l1bc+sL2js/QEDLhmMCQLOiJ8KthR65q4U30lvLHE\r\n1eKfRYZW4UbjZQoW6j3lyty0x1lmaYpTsPgNXzKrfkAUgmBD/xTtBHIcA7aI\r\nZ1RtR7T82TvIXUI3i7/LUmkZiJSynSRTjGxAR4bDTKScr+Ly5RO3dgqewJxZ\r\n+734rndyUuengy5lnrrA1xX/XcZF0NzULHLf4jvgeTgrmUFYmCyz7Dj3t+av\r\nQuaKYUjbbH/ANYW899cF59s7VEPCTtbC1ihMFoX5J/q686wS5Y56HDMxpP5G\r\nePtKWFFSe5zVge3YsxOwLM9jpsPIz/NHk/Hj5RIsBacOdNafGBKD9W+gQdVK\r\nQlaTdK1MNc5mtrfzoBW9Ekud/l3+Me+fnXE=\r\n=Qiyq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-4-2022_1651624002017_0.8148804548165482"},"_hasShrinkwrap":false},"1.22.0-alpha-may-5-2022":{"name":"playwright","version":"1.22.0-alpha-may-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"969e6f2ada09122f43fe832ad83c5898f92afed7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-5-2022","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-99HA0cGeaLF1ALvgv/57vLTMDngM/FZFHEWFMKhyFGfzcB0dkRc+R0RtiHQDPdr49/zWIbh1GfIFs+DND66WJg==","shasum":"151a42f18243b929485da2ce2af34528333cb99a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-5-2022.tgz","fileCount":9,"unpackedSize":24099,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHF39R84Izc8aovYB7ZHB8v7sRptEI/XW8+O7WdYEU3KAiBBlYyQz8PezQk7nGyMqwaeur/zJDtFEQSWYqCDdIDThg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicxmzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRuw/+IK7b3WcDVVAMh3qKkeWFVTEqukg7Dh4TBHTOMExfNZWe35tV\r\nzyP9e/ls5ALkA8opGHxjxWWr1RoHgMMmAhOlJlgUnP9jmmcgzwFO+zgqQ1YW\r\nWJQOX7IU9Xn1VUFj5JyrppxpmTpyR05/I9Avr5eJh45btJexkAjApRVMhggr\r\nM2LeaLid2d1XebNKKtawpEUk+5G0MUB7iC6wGQWnv6aSHq3iXIlbkGrx5XOb\r\nxrYy8Ryy0yaOJMz+nebDZMwUISPZ2NmE9vwNWmQCZMlaYWjgWxgrBDOFHyQ+\r\nsBLNZUAB0OZyXcoGAkH1/OitwWoCJ7CEr0XDsPuHY4vDuvauNChzhEbbhE9y\r\nnaRZETAE3TQW+Elnk/ubsFAMAEtrcuk8Q8tPsJjDE3U6YQvhkoaS9TNSWILj\r\n8Rfo8sE+tCzTR1+YzSZL0PTQE0QjpHP9aHP/eIrIAsyuDhXnbpmDj+MAArXP\r\nqU+nBtdnOCa1HVvVNPeXRfHesnnTDlldNEuFLFHKCmuzEBj+t2WkVT8m50mC\r\nVsDDuNcMICmjCm7K5OAKlEQ5lpXD73LO2g3n9IwRwt4ki+3YOHYLfFbbIgtF\r\nZMGX5Lxsc9I5Yf910xHeM4Cvb/WGOPfK1vAQjInTmIAh2YR+cPj5AjjqCbdv\r\nXFwAj4g1TUnAJZzq1aNMgHmLoXbEE6R3WvU=\r\n=b8A3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-5-2022_1651710387511_0.3188697518058603"},"_hasShrinkwrap":false},"1.22.0-alpha-1651794985000":{"name":"playwright","version":"1.22.0-alpha-1651794985000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1651794985000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f171247f64ff836105d123a84a9ffca6a2b04241","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1651794985000","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-jCfi8XXvsj4gFgehHsKldFwb9b0nL7nAWfIQIsvRQjZ3GXkL6KwzPWghe4LHHKIaYQJbhYjC4v9idsfII6M9+Q==","shasum":"62492428138262f9467a59f2989f72f26468854c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1651794985000.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDEu8NCum4BbGGRGa2eycMZZdaDK/EQZRbJ6/8HjXk+xAiEA3Vd8Q8LJDtTqkSm4zaBcj80wf8YjOFtsh7TkPauEys4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidGobACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjAw/9FIl0cXFJHg/fWgFoUK2NPS/IOlIyV7WpFVKSXaQxKZv2RcIv\r\njb4y5xJazr8nsrMTuidCgljj6ITBYkgz7h4eTsm0F91gwb+pPRYMM3CVkhAH\r\nRLdrxs7IXIVTwS+g7vbIShFNPPm3XcmitfYu6ucjuYuhirpbWIscmq2hzCuC\r\nDcNmeEo0PzS5HjFGmhWT/mMuU4PVESXZC4I++UqpIAGA1RH9I9dl3WMjBsZF\r\nKNvb/bS8QcwMxDSJJk1cMoeweSDOSiOOTs60FKeLholQ0BAObzjHe9xSD74B\r\nD35/Hr+/YiyFUcIgooUzZibrpO8zLX/Mf5HtBi1MjNjbh6T/3eV+UsPpva36\r\nYZ1SH0RbcVcaClhFSPkz0iRaFGhjpuSDXo+8gRRlnSSc4C6/wbDkEGtzhPDn\r\ndBJkhXLINrMlK8kK71SwYF/G6wqwGoGD6s1z4UwEbzqu1deng3C2qN0Guejr\r\nJtI2xxznFPxONSWHynrpzwNDZ3EVp9DkEkJ5/Rd67UpoSB5Nj5VADN++eSVD\r\nho3ErzFMHY3mEPB1YHzTAtow0K+6xW8f2qC0rznV1kgyHBWi5YuFqkc+0LHW\r\n+a3f5Fx5dZIc6pxJtfrJvAaKgDTFiAUlyRsb18aJWXeC3XacnQHz03LRK3wz\r\nGzzSdiMv6ubr3/sIhn+DOMLTUafunts9I7U=\r\n=UqrF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1651794985000_1651796507171_0.27126339402016986"},"_hasShrinkwrap":false},"1.22.0-alpha-may-6-2022":{"name":"playwright","version":"1.22.0-alpha-may-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f171247f64ff836105d123a84a9ffca6a2b04241","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-6-2022","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-3wt65jwVgx2jfhwq5+MylEN9y8RhRgKPUIR3gtZ1ZrrgeH2h44aT24tOv1LJ2cxcFpKWIWnmrsejPIOMK5OLyw==","shasum":"94f0c4cd81baa4c532f0a87c5d9898229cba9028","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-6-2022.tgz","fileCount":9,"unpackedSize":24099,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9NFe2X4qgXvpbyrb/r1AvGfO8nlFJeLxdxIVncwOH3AiBBBQ3r0vHr7azfN8ZTuXxu9EMgnQcinrSEOz8gBMpDLw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidGs1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQZg/+I/Pu4dm1lwRgiRYOFPZ1uayNePvK38tsgIUxqPzdqM00DZ/C\r\noRFxW0gSbvdIY9gkRKqwj2r6hT8yit16DRteY9W/PP+hj1X4ESY7w+BZUAkZ\r\nbMNW92p3C0ur1cljpq7zYnfaCZRroXBCAp4RsfaZPF5tQ4zXEAxOORsWcofZ\r\njWZlP22DhjLH8/lOvTj27bZ8z2kY6lkOso8zrhJ7uNq9pGyPPiQxAbtsfIRi\r\nMJwvb80hJssHjDR1EC2eCeIK9akWSHKsiaddBYxhXXNm8r3WduLecu1m6pb1\r\noRb9qF2Hl65ojTX5yslZs9kW717P7gJuhBtRA/8cBI70sIl+6gp3y9V4kRCq\r\nJ1lY6AkK/L2Eb9O8nu1Wf9aZCWklmmQ9buoYGijofdliJSv7UgGfIJ3BeTv2\r\nmQiZRGNLoU5DEjduxkj7KYlIxDscaBKlWUy/Yh7tdKGT34rtPspw9n8uLWfX\r\nOnUvA5b0gXOOT0MAe7waKMX7ZZ8ycPWuWvyPShhem4tf9FlJkHigkmrziBsh\r\noQ9HCJafgl9cDes0fkTdtjMeVbUw3mxTb2k9ZThcA4KuOvcsYIbZMlfajnw7\r\nLERpOesd6I74rpItnrDWKYKIaD4rWA7LWFkB6WFkedu/OCoQWF1VjRj3umpa\r\n0IFQ4BtTOXhKmlLPJKOFXTYYNELRI0JB1ec=\r\n=7ahV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-6-2022_1651796789253_0.06108528410639669"},"_hasShrinkwrap":false},"1.22.0-alpha-1651874018000":{"name":"playwright","version":"1.22.0-alpha-1651874018000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1651874018000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dc36b0158a9c688fbf6cf83942c290c0ffdff57e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1651874018000","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-1kG+U76FA6/J9qTJcD3EjB6kLolnqj3nPP58Oi5XIzvCED12kgVRRtltVQHSQPuf5lj5n/h8ezmTwjX1MzYGzQ==","shasum":"4b68f3873f99d3a5ab7ef3db50f843d0874a599c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1651874018000.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDvtrsfuBpO9bxrZvsO1n5WfjBPwFV9Stf3NuKD5+NcgIhAPUoPzja2RnD3QVhZcTG0Tcd5b4cNsrFuXBREqyQnooh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidbnpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoknBAAmapJu5WlBQwFNYuKw+KE7CESz46TDIw+ttRJIC7FGs2tnxlF\r\nOnBvB2El0a3uhMyzsWjgB67Ca7r1jtvkBTaaAch4GdoszvsFg8XUQRSGecGI\r\nrNzdM7AIbMGyd+6tFQCKF0IVxPDrrjNIrQhOGrrv3dz2ndeqaWdhm10sb2CR\r\nSAKmLDzUvd6Oxx9QRYEWOJhALyIsP6UFZoyhPE/xt0WzmUPv0LKfRtI2O+YL\r\n4Y8V91geLs36sZb2wq9LoS+kgo3KJR5I0dt0gsumFXyot6CFaWKVWm6xYoaB\r\nPnnMXMAnCWxAF0Yc6gtKu0TQtCpulhOWQqk9vAan9aMOJF+z3+E/qnUX+wTB\r\n4EPl7fI+V4ntgBlUZgol8XZFg3Xn7JDlMjOQpYWdMizYRExHbDglZXjfVR9l\r\nKX+aqg+FDsvs4QCo+l6LjbgUXhW2MLfFZyh+8+jw0lA5c0UBuq5ws/53U6Hs\r\nt04QDSKmCWADxfOTzGuW/pCw5STyOmaK/cTH8rjyypxv1lI5FTYApl35IT8q\r\nPp+yDslgs1+yVJee12vezHyBw2X9ubTfRLqpXOfbsCk33Mbb0GIAHPNf9wel\r\nscHx7UWUCH1IqkrW76swpRwRIWqaMUkm3GxILmJB6F+2tyS0fQukOUV/qAux\r\nqrq5Knv0f/QJbhwtBmuaAxF9QKEw5vOEi3Q=\r\n=xPPT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1651874018000_1651882473237_0.6715515412147477"},"_hasShrinkwrap":false},"1.22.0-alpha-may-7-2022":{"name":"playwright","version":"1.22.0-alpha-may-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dc36b0158a9c688fbf6cf83942c290c0ffdff57e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-7-2022","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-xqQHBpSSCe0Wun822sbqih0ix70cH2+mKe5hWGWHxfPC3qwpe1gsDp7De+ImyFWe+FgpO+Ej7JiuBtN1WtU1TA==","shasum":"1f6d3fe6f1a82d10c9956a1eac0926c72c62b314","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-7-2022.tgz","fileCount":9,"unpackedSize":24099,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxDdUr6CCx4JeMpDDDP79NWfoGL0pvvgpuH/taTt3D2gIhAJ8YVriv86StrlvDYFWrhqXdq/omkWjU6CJTpRwfY5nr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidbxPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpx0w//bZFvUcXJrhq8XxCZ7Nf+K8tZasASWhuW7N9BSWs4pbfgLCNB\r\nOv3ek7ESZL1/7w43leOrU9Abr+d+lOXMrGkdYtOyCMrxP7dItzUnqg+yfUOj\r\nClBgrSG48HuVzOcDh4ipo3lIyg5zx7BomKWrxUCY1G2tTTjq/WKFx7KsTdcq\r\nb1PbGGGcgNt99xsWDy0oGqx1CtdMxgdi8nCNZRSkXl0fGO2wPtYL53RgX/1h\r\nL7idXOYpztK7NW2BmN/xu64Qz4FszdgZVK/6gWT+m57r6ig4Cyq1AieBYd3n\r\nCcfm8fg8jlh9ry1VMovWt18SvFU3C8g2GGgQEFIkJWgNQ2uoaQI3i4r/Fy+i\r\nEUd3tge7IYR3bTwjqViTKUfpGgx7JtYql3WvOS91caLHMOyV1Boegmw6phTZ\r\nr4M1bpXHuxDduBsKRG9BLdpFTfz1pgSExLLQu89GOC+BGOjbwnK6ODGMJtNh\r\nJE8U7Zs4Wt/14pSaZWCF/gmdmWouVm+V/4RfOjiEHx8zjJDi3Ipvjyxbgo+q\r\nFQowaHnDhlH7lZvD9sn/XEcqloYpF81u/sOZcWjI+08Cw7rOp7z9MqtNRFtQ\r\nHmyf1Y6itjCo2gDJR92sooTBc8S0WqTS86izacTDh2gtCYAWffBWx8pDtc2W\r\n+tkLnRUnNVEjSIVqB2RF2qoN/Y/AIUQ2V6A=\r\n=dVpg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-7-2022_1651883087665_0.3625811155937002"},"_hasShrinkwrap":false},"1.22.0-alpha-may-8-2022":{"name":"playwright","version":"1.22.0-alpha-may-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bc9ef1c76e786a000850951ed27cdc943c002ba0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-8-2022","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-Q92ZeSSnDWb50EpSvv0ORoD0+QOfiaDRSymj9scgHSAaTtK12amajOqKn/kOf/akXcSntZRQUnTGxGZqBh1W4Q==","shasum":"3400604106f9934496d0092fa76fcc61d24de729","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-8-2022.tgz","fileCount":9,"unpackedSize":24099,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPLN+sZBjs1UUIEaGcnJue8HDM8C3w9MeGgx7IGNPcEQIgKhNOO/QBHOGvl4rryACZCoc3N7IvWSS5zRYKYUDWgxU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidw4LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6UBAAhLeUK6Iit6pBz/NfPcq58JbL3FwR87y2xnTjn8bqcI6/UuKs\r\nEyW85mgY8l6yOiEynxa8aPGfZShS5aHdIgHv10Jk3+/6s7ZNf6ilkasE/nv6\r\nyQ4rvheKAZubnQ2EGJTpOt8Vr1nNazs7RdjcltJXyeqT1DXPmeLv+pKXBgbb\r\nkNfigIC0VoSCiXbyGp3R31CH97UevXhoiGIqNLfZACtuHvNSioTZWZ0TFAmA\r\nNXd+evbMp8qeTufMHJfwggID0GwrIlWMAtVGic1f+4FuxNPqcMzxK/bwkOYa\r\nHx4k/j6n+PTlzsLCZFqfP3RCpKYf3WwgozVjcGFk3xaE/Ki1MTM6Ln2trI+L\r\nlMDelpqU9Cwoudz8pPn1yKYoJaJfRYxW9xINNXQvMnFAQKjhD++TxcgpwAFt\r\nBFSk2dbLGlRADpPpJIrorIrJfjmeb/kNapJ5z+/cITrGZLNJ+6SsbMTIWiK+\r\nLQFjZuw7/BixQ5bkkymR1ItrFkHO1gXYQzw9SMn+T5pgp/Rn3OpB0MY+q0Ja\r\nJXSNZiCwEEpMealZn40fFdk5XFjD116LSjm1if+PuZWciPdijdlDgKfyjifz\r\nUXre6/gHRd2ItfU8QjeXU5UgdwjriAHMBfxyhNF4E2fupxYB5YNmek758Nr9\r\nXSyrOTTgVM59eWM8kmg7uhFLGoYI01l63l8=\r\n=X1bQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-8-2022_1651969547415_0.06572480866959274"},"_hasShrinkwrap":false},"1.22.0-alpha-1652004421000":{"name":"playwright","version":"1.22.0-alpha-1652004421000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1652004421000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"64cd55089ab8d6b33eae2c8346c4d3a0c4224010","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1652004421000","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-AWsYlt2uUGS4sM/l0vieyoK84WpT9gYAcyPd2/SktDC+u30rv0QvPU3y0ib4qzfK6y/JM6PDt4SW6ZnabqI1sw==","shasum":"12e14f50efc3b47f55c63ad8755532d59a40cecb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1652004421000.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdxMVbOU1l31zNX1QqMQ6gyoZMS+hijcItZzN5Q0VHKAIhAOQz11xDSqaxnm3qvtLKZk1bCWCzuw7ZVVAx7Cm7n/qG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieALrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4Dw/+ILxC2alk7O9y5g7P1zqVa23fCx9cI57tlfVTwlOGuGZ9d1oz\r\nfgm1NYZCPf0DB/HxpMl1qdjwIUctXXsZ/7PX82w6GRtpcgli20rgSeiOPvlb\r\nBk8TlH6O8s/U+GH0KqmafZMdbl3eXIk0URSgL+rpPCVtB5cBLhKNowZzTyTH\r\nX0nlVYLnFbKTZ+6flW6InefdIkCzgYzEDzyXcxK74odZITTBhuS6LGRNGLSh\r\nvbNkD5rvM3Ir5jomSPulDlaWHygqi+QKBrn0bMTML/sAQquWiAsFZJhFhyRQ\r\nx8KEDBaUXRlC+EzlpytKA7F9Tbi54jW4CP4yurQxk1lf24+5tve6L9iA655N\r\n4gDNfyuZJXbkKFAxh2hYadDkRESGkzdzIymdEcblmw9CTqJ4mwZfiK5/hojA\r\nmu1sfJJlx6hGxL36Tz6kIKrSd/Q3ywystv6pC4ZPRIlxJT26q6I/h9Psk8Zs\r\nPFHfOA6HdRFHNERx+xPCGPU/wHkosWLXKf86E9Mw82TKHvbyejy2XNi6Jotc\r\nZOkOWTmw7EdxFGxZAil//iNjiIJCTr9iDOdq/O9rL+ZKMZdE4yZ5JrBvqcMO\r\nrIL4LotQWbgol1VWlDPctsUqYguuwThmVj/+WpdKoiqGqTlyO2K8DT6/VV2c\r\nd2BA95SYlR6t07WVK/s5aBSIrJ9zTEz1ncU=\r\n=fLnI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1652004421000_1652032235047_0.6358978613333992"},"_hasShrinkwrap":false},"1.22.0-alpha-may-9-2022":{"name":"playwright","version":"1.22.0-alpha-may-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6931d89eafb5c611113ccf1ab177f63bb0699e8c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-9-2022","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-BZbaJWg2O1U+4vPhCj1VNuVWfw16fMwA64axrgR1SjfDX83lumXhBrJB7VQkx3wZKOB94Y7IEVRbkOzvdmsFYw==","shasum":"8f422a6655bd5d849c790d91ca9396253dbb7289","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-9-2022.tgz","fileCount":9,"unpackedSize":24099,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtz4tBmNczpZkfJPdoLhMypZeVpa8WUED0w+vfGTKDMAiAlSzjGUpcxr3tLevHT75qmyjT8sMhlZEj4vQ9KfIXwtA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieF+PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCZg/+IxwBNPtQe2CDoNJ/ESE7+8CvLhGpila8Y/11B/VEPR8VszC0\r\nnzEGUxYyrU+PKO49+/+B/Y+R80Br2LxxWstxY5sgZAg8Iw36wes9q0McE6BP\r\ncNTppvpRBZPWJId+Qqw+R2kWLtJgrIytpZdN5VnnRkrCcs69XmieNHIEb7cV\r\nAbFBU6/+rouZwcJr9BCUXqxc1rWwQjgZbH3cWHL/dYLF9hmy/izuNMkMfAwc\r\nE9BneTutu4cJpggfSuqFaH5uq2X5y0DyqLe5d1aBaqtwxKxGNw0Y6GQrdgG9\r\nb/7NYpvw0bBexVfIoU9YA1IoW/7Bb4Z+ZI0PtSHPEyahql0ccjOZm9IXzM83\r\nMYa2+Eg4ynznyb9Ja56pR26lM1myNtpnKiKFhzZVmzkvhajspw17X3ZkZE45\r\n8s+L0XDu506WwlzNeT2g5IXCwuuJJ+0ihGCM4ccZ3u9Ino94HnruUMrdjOsV\r\nqEWQNgDWKlH+1nShTF/gPyYFERrjMnt+XwMpC5KPw6YvWDSFGC8z9gKGD+3u\r\noYV3WlJu4aNbvqth0H1uU+nXmtVYYsVlaD9HEgKoJawsWMd8X6N1VJGIL2SC\r\n4Lfe8VpwU4/ZgV6M9H8tvKBhpMdxtgT/hR3Qud73SOqVc0An8aPBT0uc1JNe\r\nSPzFvsB4i6f/aOYuG1PuVTfdVV0b/gGCHGQ=\r\n=RvzB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-9-2022_1652055951251_0.5738974556393115"},"_hasShrinkwrap":false},"1.22.0-alpha-1652115973000":{"name":"playwright","version":"1.22.0-alpha-1652115973000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1652115973000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e9378ba5fcd3eb42fbd09ae43c344515959da936","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1652115973000","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-srXUq4Le64OAIBy8zdsN3rQJimLUaYs9oJgE8fHpQAKby8y2WXsAxxGLcli0bunCxDzhozBe5VMC13zkzNghRQ==","shasum":"4689dec88576114b005521846a81ad9b1df4fdce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1652115973000.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkt9JOLNmu9nmT8RXXFv/8nh0CxMYXnR32Y5zY53k/sAIgEpGo4cBBEBmapseq8WteyJ2tu9TzzLrp7wZ/sxprS8g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieVBiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoooQ/7B5vCndbVnM810W+ZgyS3YHKsYV02JYQ0yd0Mgk+a8zFjUmYY\r\nb5nz/L4NLQo8lzfBdS/Wic728n9eipBtNgK4KLOjQrKoVrFcvmtt/MGFN4lj\r\nj5MWpawu+oulTL1KWG7DIht2lQ4XzS1nluZWefUxWirAAAkgwE9JcZ0nT0zw\r\nsMCBEicg0YfMZwZncSZmZG7NAMWZJ8S4+gzS3jaq9rKkLjn9esBvenhXYv6E\r\nFK40jI86st2lWCZbFFIyU4fLBg1/L8sVbwrH6DYPbw+n0qb719fdu09U26c+\r\nMeOTVsmgnjrZZtX5VAqy6b0FGt0szoucTzWq7Grk/XTNxmYzXP1VKkMdku89\r\ns9kpkbKhHCJltAydA6a+VdGQsIR+RChk8t+G4KPj1uQboSFXHJHcMR2Wp+G2\r\nH6lwqaAYaV/zOQBbjEHoD8XyJonTenDlEASe3tfC2QAdL7wzsLOA/9JBUAHL\r\n9oVhniraV3GvC1z+BfwhAFWio6EPbL4OBZCIawoodLJhbh56k8ko0zhHrCKE\r\nGuGnuu+D+dVRl7/l8e2kz+ZWmAnZTbPUQJ72JxPYHB8rmN+BG2TgAm4kYL9f\r\nl3gucuTp9PorCgIIArDoNMPDII3sPz9unRIxKgOciAlL4HWLTD9GWit6x+vL\r\nbeU/kKaquYYCFZo4ElzeXkwye1h8IOGfaCU=\r\n=GCQd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1652115973000_1652117602247_0.8211711010016232"},"_hasShrinkwrap":false},"1.22.0-alpha-may-10-2022":{"name":"playwright","version":"1.22.0-alpha-may-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e55f7bd896fa6a473c971c4c28f33583b1ccc333","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-10-2022","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-ho/aroniHhIsXvY6Gr1twKu4++8aN//mmOibqoumdVsMuXT5YvM9F+NeEfCDCVmXBXA846mtGPRjKBeM6CEOKQ==","shasum":"525ccbde434095e730bdfbbdeff377044bb9df5d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-10-2022.tgz","fileCount":9,"unpackedSize":24101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDs87IdQd3ysIepKrVyhJ3RPtpTwo3WI1yn4zBY0JhLzgIhAMGNJIWk984lh8R2cww4LeQ1geaTGxkVJUYI0JBiruL7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiebGzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTzw//Zn0f/0BYqIghhCL/hOOuquwQ85rUMP39b6YFJeD41G68sI6z\r\n6lvqqDbYJGuc999WNxV7b9mBlpJP1L+0arxm575aANrSN3mvkn/5OwrPjxFp\r\n71nDLX506Je84LvLbKdi4fkwZNaT14wDn/abJ6LVisqDKMc5JRKNPIQxTxF+\r\nWuUKC59sbtKDNBtQZxBh0JvicwyGCPP9ErvVi52lD14bcHOeLzO0f6vVd6v1\r\n22Ky3CQ2NIOFq5POkSobYm73dLFmU1c/+BNpthxos2XJ2a6pXuwGk6RYcCKS\r\nj/9t/Hju5rLkRsS4RG6iGXdD121ADK+oPZwiylQXmQq3qXp5Us+ekvN8Cq2P\r\nFIB/yDO74J2llTHsu+lcJG22ey1NJmBH+y+u61JLFPXVmxNW3XHUOrl5pWiV\r\n0wAvDi1cJx5fpZKhG/jRFbm172CL+Qs9sdJs49VwcHLO60ETbic1t3V4f8OR\r\nyATjAIbXW7ODIJD2KM3DS9hDwTQT8sQpAa2NWajnbhh0h6K+vrf0MLiZUrdI\r\ndorLff9fqeH0cTONeA1DykquNyhhjvlUHFGvIZ9YPzwiqZU3gX79RkhGFwLd\r\nErhR0UXqcuGW9cB/hlGAkKHtU+3drHf1BhDlmTIHTsIlIHSyUKVMQidvW1k8\r\nShjBaam7b4LP+poUaMkRDCtL4FUSDh38msk=\r\n=1m95\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-10-2022_1652142515656_0.8696377594898845"},"_hasShrinkwrap":false},"1.22.0-alpha-1652194905000":{"name":"playwright","version":"1.22.0-alpha-1652194905000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-1652194905000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-101.0.4951.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->101.0.4951.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4634adbdc398e701ee97b9c8a9f7c5fa92b7f2aa","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-1652194905000","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-ZAixY32W1FlqTEop28RATKMlopdY2h9erT+lTkS5L4ziYD4/RAKBS0kc8YHD9jS3EToHa9GVi59YLMPkzB+MHQ==","shasum":"8b52c6508b971ba2fce2dddf9199f945337c7e67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-1652194905000.tgz","fileCount":9,"unpackedSize":24105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoO4qHT+7o7v9iJ3dgtMARnqk0HHtg4PXu8aRCn3DRZwIgKGHWPi+WmY2/hsyOWGXBoEkCZ5rY/jqkaD+8Mr3O0Oc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieoCVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0Bg//dcOG2ABvn5M7PbWx1Nt6bJ2V5lDNOy5PIJm3plHnmHJQXoqn\r\nSkcXyTUd7hUJUm8zIg4mpl5gVrx0G38SrM70LnKxVyB+q2G719DSIcXg9WN7\r\n3hNOylWDbkLxBqQ5Xf+7YRpGT7gSgnFv3wEhPwMn4TTwCu/7jEYVtANnAFxj\r\n9u5IVEHN3MVLRUaY2oBcV4JW1dJlR28cONY3iXV7HSIH5jaNohhk6TB8g7PL\r\nqPT7iU03s54+y9nBXu3iGHoEGnn8CDHbhPOSEGQ2M/t7po00LDHh4svQkbSj\r\nBcKtQlEfB6vhi497WD2CGwZACP4tWmJanmW2lQdbFFH9bJttSqBwxedUfXSM\r\nBnUUWv6yIYlYcCgZo4H75EQ665x5x9BeBypS+NomGX/hwqZL0vgETLPW2dYG\r\n9BVOdcVsFyiganNj2qnjEnHB414NaMr/AnT4kpZC9TGTrpzSLDRv5uzDK/so\r\nuhqAkFTno/gbCtGL0u9hrePNDO2uhe7MCDFsMPaOp96tIMDbAslxTjdyki+n\r\n0bUYXQ3ufDTqVIvhmqSDYUB2AA8OH9ME4qC0LfTY4mXwxA9jyHeFe2kMOQkc\r\nQI9/qzOQzMAh8lVUHV+aq6U8h+MsFSnIUk5ZCPKa2MK5keC1uK0iVggPN8Py\r\n7Jykbonrh/IIgsoX6/FuLi6Jfm2V4KKUnqk=\r\n=TywH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-1652194905000_1652195476845_0.4909192163636531"},"_hasShrinkwrap":false},"1.22.0-alpha-may-11-2022":{"name":"playwright","version":"1.22.0-alpha-may-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c99ca17199936d4082dc5e458777a6a51a29196d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-11-2022","_nodeVersion":"14.19.1","_npmVersion":"8.9.0","dist":{"integrity":"sha512-P+GBywi0glLTTp4e9a+PQKUrvVvgnmD1FE/OPtTijJTmihkgPehHXNwwtXb8yKvayAufFfbXYykWUcJC4siEdg==","shasum":"be9ce5f95c1daf9652725d259d7c4688d7e5d14d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-11-2022.tgz","fileCount":9,"unpackedSize":24101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIESm+0FBxb2owehSGpuYobFIXQKUSKyWmhVSC/xGuTQYAiAbF60WUyv6l20yxtCCgOLcEu63v/bQqwBYx4LnIfrx8g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiewL2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqsgw/+JLo+3Z8OglyhCte3iYC7T9oCM8WTXTsMDcYkU92jaLe57Goq\r\nygLVvvLEv0+fD+yXtos0aHfpHEJd5VNm0T9Pu4SWuspfOm3ZahVW92rSL/5b\r\n/BuDCOf56wK0c58xmDs8SdnEC9hxOV/V9WH7JhChZxrp5GYDXKN+RL4X7fN9\r\nCO7PTD/cAkbzX4crYKjEyLkJneeHuukNXJjsvDhXypMAlZbCDhK+hrruJ6a1\r\n+p4dy1KRATiZZ3N6Ye0vMrX4qP5orpW36bMFIn7FR7X9Okd5cRRGf1Ev65D/\r\n5MCDxQsbepm6n4LhcKumTWZwByifuviieRiG3w0un6DJo2uceTakt32bR6o4\r\nVnBLLC2GiMPdFsofTRs5gTxhTOlJ1yFwSGM0JeVEUu7ANClFuL6yg9BIbQgp\r\nDWB8zmnyk9lCW0h99XeW5BtXM+SQLxJG02l6ejf6Npxl+oRcknJAgagvsxYj\r\nWvQ62F4NRn9VFKrEu7TcjYQt/rAASZQCv5oDSByrf3iM/Z3YlLUsxOEDEAeL\r\njqaGpMgiit2IK8g9rD8UhnR1ogdreBIaCH4T4vdCDRXDDu1s4S825AUBta2A\r\n2aYRpJDx5rZ7hKnRgohrXLAHG8QJwACDuF+L+WjmfCZrrLaiuuUuC+Sx0pWq\r\nzzbJ0PlOIRTikyWb5yWvtE8ZKZJxo/SwPXc=\r\n=jBBL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-11-2022_1652228854125_0.9498469295899254"},"_hasShrinkwrap":false},"1.22.0-alpha-may-12-2022":{"name":"playwright","version":"1.22.0-alpha-may-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-alpha-may-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"729e41b3aa7aa67244c6e4eb8195a328034913d7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-alpha-may-12-2022","_nodeVersion":"14.19.1","_npmVersion":"8.10.0","dist":{"integrity":"sha512-pOkhyYdbKQyY3BY/YtBCjXPwVohPd/GfmC3DXr+Xjk/G0gszxG+7ADWO4Y3shjpcNUApVbPjwK0V3zmXJXcJ/w==","shasum":"ab74d4eed58ebd3cacc0955b90e375772902eac4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-alpha-may-12-2022.tgz","fileCount":9,"unpackedSize":24101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGKFZHZtXe1A/RXMneL9tJo0nkr+MxgJ1GPb1gwwfpC9AiEA3AdH6NSb+TUkVQRFZ9KYKnox6t2b3OAEiSiFWdGwH5w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifFRJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraeQ//TT3X4gYh9M4o9Ma+7K+qI7zAzOfU/UMc9AXrQyNwBt6x7C5M\r\nRJk4nd/mkuHm0y8IWBeMFpwSH8JAfSQRhxRBTXqcocevBOUM4RwnM2/YHQ6i\r\ne70+gwuIKao6nYirLWxXZQ87ukygXW+b47lJfl0f6Ek/9ITBKJ6dI4LMjCsN\r\nzo4fst58Tp+G3Xfcvcta3W4Z68QI2Y8fLmsupb1j0eHu+sIJfjQtlSZy+kRQ\r\nxQv5HSEnVISxajuRfkqZMztXOuMNFjSAU3xX/+c/9KHJ4JCcvArXOl9DrH05\r\nqqdH0rJqOYxtwxbyhsMf+EWHAhBIUAwecSP5Cj14tXt6Px5NH09HTlGAWg/+\r\nPSUFttV8dVhR++qZFNfb5yuJSVHXjHPFXkuQc4uH9ZlxPV7OGXTjmw7WCsV4\r\nEryT0YsmXMDIezK/Ebr+XH1Maqs7ngymqP/AJFstoCPokWA8GtFtoxazrr6n\r\nblSW5oQlmB70E2e+K/BZt+vuUvgbHhlySLXDUwM+bDOVodzy6KlrqzNdoDxC\r\nfTexDAwLuaN1bkYuRDKKU2SNiNsgqMSb+WbqgWs9/hPimsQE2End8A4vnzBw\r\nxeulugiCYYKfLeya1coKAqTEauHaZt07pMI/j5YTZ+Ctg+KIIweSkS22xbT1\r\na1xGxoTRP9Tv68PZH9HeBpfGW3xptq811H8=\r\n=TKSP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-alpha-may-12-2022_1652315209432_0.8908458417999561"},"_hasShrinkwrap":false},"1.22.0-beta-1652378875000":{"name":"playwright","version":"1.22.0-beta-1652378875000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-beta-1652378875000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5268dd7196ddcd429b5f0f165b69778b23e84af9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-beta-1652378875000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-zHMHjlZVj9wpLLgiNQIj3yXbYpovT/llv1T6p+spPQHBlUvTGu7mXEagGSsBTaH5S9O29JHQTJYWvRBzoMybDg==","shasum":"ba282f639b2754d77ade1f4855123f9e0f6a485e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-beta-1652378875000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTq1ofBj89uYUkqsnz2wG7zQtRXH6REw5jhsWXZvFlXgIhAPpSLTAjJ08jf4g3mWxISHbAYO018rQMZOJTfbTzA4oY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifVJ3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+Qw//awC43BB6MAkOr9IyPed7Ce8kYuBbqb1lOiEpR+IG5jyGeZLs\r\nT4P+RgctZ8pP1xUm2bzIEeBlS3kdzCDsQy2lcOWqUfJd+0FvrQMCDSKLblx8\r\nFH63wAoijtcvEhQnwSz3mQdliuUcIADccJYkdKf97XHbzbLb9LY0Rh6A+3UM\r\nFxb+aiFO9ac55MsWoDOPCH9JLjH4ygMhjSOatiNlbu3F8P2Cds6uzXDhifOZ\r\nIEICMQJOF4mX/FFXaCd/scsTndrURHQhX7nLQAoE9vlLXdSo/ssa6q3CwitV\r\nMbq/4LYq2Q07ejMf8bmiVEpHzSu+TKM2JYKWxz3l1tzWrt+fMO6m/aPzU1Sj\r\njPVy2vGcxiMQMo+qpL/ptRA8cPjq84OCbsS8aEMl8ERrzv1eegJ+m7VHbZIk\r\nKagj5A6fSPrnKPeOOsKKkle/nD8xibWDxfoH4PIe5Uh3o4IHK/RzFG4xc5dd\r\n0KQ2pI8WLpc+5/2qt7WDjfEP2h+eLH0XyBqy3oRClPs/FsQ87bbZDFg8sWur\r\nlrx2OwmKDSKM04jnmNn7X7NENHreZRwDajJv+MqfMCAlXK3DG6HFu1AcvNep\r\nLMI/CrNVRUlykGpGVPSzOC0A74XWKVL+6eSn+lTnXPaOn7hP7KRGq3uJOBjV\r\n+s7BPhMrgFq7Az7sTz/I///EZMYEE0opjgs=\r\n=IqcS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-beta-1652378875000_1652380278987_0.5358753353897783"},"_hasShrinkwrap":false},"1.22.0-beta-1652379237000":{"name":"playwright","version":"1.22.0-beta-1652379237000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-beta-1652379237000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9177bd1614f9b76dafce7be64566916baee57597","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-beta-1652379237000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-WANaSKFHVOWpSUylyhczPzhIJMH9nuUM/EjAnhVzN+WBeX/cpqBnRvf6M9Xts19dLVdA18ue7dU2apX6HY7Kpg==","shasum":"b0eda2872aca272dc428230808715f8eed45aaeb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-beta-1652379237000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaiXBe12g+xIxSJ8W93fHrIOK35+pnrXadP0Z6fqhZMQIhAJZ3cjMofgNIWe+xkQmr4QRl/3GRVZxIk0JSyOQ9NsNt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifVa9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrK4Q//TVX7CExGixCA+23kqPe/FuAWeSVsRGiE1ya4cYbwfSQYE6TD\r\nnV6ncn8BDa3qGj+yBgssxIqET6T3SAc8f/+lETwV6rhWVx0wZgd1LwfDg4Mb\r\nUGEJPiH53q7fzmkg7/AIcUuFi7JRwA79/zxPgHrL0x30bLc/keBE1aCT15bw\r\nKQbjSphG3IetXJKsoB2BjolOzwSgj9IqSKDKTCEJZX6OVkzm6gUa0WIfyWAC\r\notXK4HECQd4LYEI/BZ1v1V91J1URYLahDgn12hwT8BjM7POnWN/Wd2FYujff\r\naJeGBp17026xiWnwIXjHrx+P/EGHYT6u4VPGvwfKdTNgOQRPRaFou4Tcq3lP\r\nQAV6E8Wuu6QH+7GHfW2r/r+OF6PTCI5FvilN1vCFe95RNaz9GkSZHRWXqU1T\r\nc4CdLnp1x9uy6xYYaBGEqmHM3f6MENq1Q6jD+PGt1t8dRqtzRUTG/4TsurJj\r\niHkfjL3yRQsPVHtiPxcHCSp1Drz/+OCK2sp81tFfKEtADL3IuK90tHrGwtsx\r\nyD3iGlpAqfMB+E3R5rkkeiQ1kaBvHr8zOVTjN7PW4Uy4fTQuUhHhZ/Pvw1M0\r\nvYbtee4UQxpjkfhCfY6b6SInumFsrKowbjFrfXdLt5dSS0Tkx9lZJ3kiwDA8\r\noomOXnYoQJjU9OAOWDsKEw3++tMSKWUqqAI=\r\n=bl+F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-beta-1652379237000_1652381372802_0.9226530945828593"},"_hasShrinkwrap":false},"1.22.0":{"name":"playwright","version":"1.22.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0"},"types":"./index.d.ts","gitHead":"9177bd1614f9b76dafce7be64566916baee57597","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-T2UqJAuvJip7TfYwvl7h3gUWtEE5D950PKd96POhUpumG3BkMfiLmXOe6Ja6UP39Ab3wEvatUJYBXvZCkocfpg==","shasum":"7b0f684f618faa6ff422fc584a9ff167d844c49a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0.tgz","fileCount":9,"unpackedSize":24065,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDykA+PBO/tdpvCz3vsehtS/hQ79ka6zKS5hwOmUGm7SgIgFcz7ZXBxUvssi9ToQjWJhVseimVfOWC+QypI/aXl4hU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifZclACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqvxw/7BHIK1Z7np962uumY0/fFnOUz64W6gCpHCozwsCit1qHs7mAI\r\ngd3R6NX+Zh2eLGwllG4/r++o3peJYnP9C8Crhols32YKYCpEEFMbq17rMOxF\r\nWrx8UPnbRwUg5JcpBtvuTZ+VWNwfYy1DawSF5rJdZpgwZbGNflE/5yLYBhxL\r\n0bEA2rATo+p0NEKVQokJJlWHSl0pUaYV1ltgxfuop6mCiuqGQvcI+Th9VPXl\r\ndfVp5TYF0etnpPM/JMe/rgKhUPKRV7wY9LOa+Vy6jlB+JElGWetjGYSO5CX9\r\ngMA6K+eUxGd+Fm4qqjy3lnJz8ahRLSmB6PIQAfVEE7TAHrFvSevVH3Qw0RBb\r\nkoRu0MAA7t3O0bTndUrGiOTGJN/wn6fhwiMRSvClCE9IRRjS5MkXTZUuBS/Q\r\nBPqP662phM92bbXsgGQUe9x//4m0kUoGyS0k9UoyQOCG5kV02uBPPzcl39sv\r\nI7atEboou8gwjb71BZOijXQY5MQt0UbmheFZ8II8WkMBVmGp22c9Jc23is00\r\nkTxKPg8UHtpp5iRIEVSakQkbY1tm1psWygad0v7UL+M6/MWuCkKzWZrDDz41\r\nWBypARXRS6RUt6OF5V6rn0LoDDYwdu+9Q/Xwcz+WOhPK2hN2EcjU+vLufLRy\r\n3NXPOPedyHrantq0+psDlpBeAkklyyJunzY=\r\n=Kc6b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0_1652397861395_0.49480618261864673"},"_hasShrinkwrap":false},"1.23.0-alpha-may-13-2022":{"name":"playwright","version":"1.23.0-alpha-may-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f7adbd83ee2d7a434d38f42d29d27eb4b7c6eeb2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-13-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-bDZ+PIPwGC3JM89CUxUhyg2dJvry2FKTndobB3kQycTRylruHJYAKM1nlCcM7Ifm8fDnYnTXmKHnzEltjJkLiw==","shasum":"6a8928fabef175dce9ba2584d05c04e50659fda3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-13-2022.tgz","fileCount":9,"unpackedSize":24101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb5X4Q6gvpotTZcXNjPW9B05guFDlxt/7yw4ch9X4iWQIhAOjlkBzEydalFnuL1RwuuSEZa4ZDoW6vSDEbcYdH/dUJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifab1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDiA/9GnZwKfT1bTbQbLV3qWHagkwfh+bqccx3u176Gmg0zLp2/dqT\r\nU3R5WtKrj/FJtnZyiBHJjIU4CysGUiH7ZP1pQ5uGW8JZquJKTWdl0ORC0NT8\r\neF/PxZQJX21mD9hPcfsL9Ajk+vnQFLCydcmh4/T3rBDPdX9lCHJBSikO01E4\r\nzfg2GOpMdnEOtLZ0GZPwGCp1I+ZZaHcSgNyoprnve7i0aqi9qh0vDoGKlH16\r\n2KuVFlHF4iXplG7zjs8Zx3nwWyAgdaPRMMaP7hgZzx8IW/9P4HVcYMYzWR6s\r\n48TZ9IP/Lkkv4rN0xd8VQD2Jo2pNiEn5tqSQl1EHujMhZ/yI7g7rzQoEaVea\r\ncYnGdJ7xlynLcc6vCNnMcOlNalrCeJ80GEcyhzDX8Io0evNk/Lc1xBcUbgLw\r\np18jTx9S9xVBv7sOhoK/Jofg4sVh+PsYnmjA++fxEddOlTXt+glX0SrQK7RI\r\nwHZhHz8MbIkeL/zcPUvz/H44EDIXDHE7Yrl35D0gFJZJjwWtovIh8OFaHh+N\r\n5+tGY7sCnza2TV3jCRJVo2l8lKq9Pum0YGcRqOKtaYhqliwxbEsMa2df+6jU\r\ni5F/d8uNw8rV0dUHrTvw4G2PDhvEsjV+DlMBuffbh3iTDKxBqaZl370hi71c\r\ny0vUq8UQH6xLvO3luKl/Q7/GktOLaWtF9NE=\r\n=kcQ7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-13-2022_1652401909489_0.806831025416022"},"_hasShrinkwrap":false},"1.23.0-alpha-may-14-2022":{"name":"playwright","version":"1.23.0-alpha-may-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b22766f84065e2e49e0ba45be7f81d25845625ce","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-14-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-BiSK0AVdi4yWSZAoS5J/acyf1huPUQdBdMRFijDk4d9IkeusO4wUwLz3xzJ2g+rgHLk9UDgbQdmLlNiMNh9SuA==","shasum":"96b3958d6b7c050606a9a5a50d5feedf5b35aa0e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-14-2022.tgz","fileCount":9,"unpackedSize":24101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHx2XFLoWK4iseoixSjRg0tA2MJKh7fvGxXJP/I5SAkHAiARv5VXWbqyZvF/9HVBkQ0agHyeHZCihRsmTyCh3vLm/w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifviVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/8hAAn/h3bm34ik6EUujIGWC0Ig8ROXKoSJM8ORWeAspQT2OBCB7o\r\nqjJ9uqLNtdvygEUmzVSPPGwuwmSoQPr9QaGBnTSbObYve3soX+T+TegyxR8r\r\n3nmS9VefCChzMGeUs225coaEGwGf8s52MeHydweN551bByjzHJaUEnJ5A1x2\r\nHz8ebC2pnmdZQtzc7zY9exqXtgcVBS7aS3mhDw1GLiyaAfluU5RGpO3fDRu8\r\nI25AlFJCd318pUd/P+R0eqWMwXzJdn4SHQcgHh65h5Op7286z29FFK7B+WEO\r\nu0sNdu0WZamKZ0uiJ8Exr6nmQKxwrruRu3GAhvOYA38wq0vnPAYZVaBWs/Fk\r\nVfgeU79bbhiA0Qn0YwcvXORjlOmPgRM2DrmK/+T6zCvmQZ7oyc0X/4dOKsmg\r\nZtVyH7dFWNlu6vTbbFhOvwVXW8h/uOn6QW6BVhE5ffO5/g/YPMd8HIj4iivO\r\n5dkOyl3VrV6eh5HH2L+iE8wjWKn/9lMFhTA8L9etTWSSLe5a1q0pdwDF+bG9\r\nFoVU/y6Pse1Za76sLwv2A/k/1SrnPg4tyv+2zl4JxjHsZX6yZtj443che5AC\r\nEUosU9Sb5p5tCKfnp6lXY8AQLtybngvMGOZ4cvZOwj7vCzOEGwXC1gv5o5XS\r\nHNpoYlxniqoTZgpg0Vd+zzXNCuFh3oVUUy0=\r\n=z4cW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-14-2022_1652488341622_0.057385097722256306"},"_hasShrinkwrap":false},"1.23.0-alpha-may-15-2022":{"name":"playwright","version":"1.23.0-alpha-may-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b22766f84065e2e49e0ba45be7f81d25845625ce","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-15-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-fkKNOlqGjo2kNF65IN+VZC8RfSbOf5oN1FqxD9p0l5tb+vO3rdXfmMT1jgPe493azMaa1FwpMPW4gRAfoX+adw==","shasum":"1bea42f3a8a76104e5fa2b0985602eec1a20166e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-15-2022.tgz","fileCount":9,"unpackedSize":24101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHU6jd8ztCb05GCc8P7Nkh1iQi4sSMr/BnGySn8YvmqwAiEAqF6KKnyVO/PhwKPpTIg3g8zOWdPe1iS7XlBkOHJ9PtQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigErCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOUw/7BWdh+5vpzEeDeK6DpKwnJwYHwaEFd3GYmoO9TO37vcD/GSoN\r\n36leSaz3Mkjmp9wAqIsgOmTlPTPcKNo61aADPsg5UZfMD7405MOK/cU0mMQk\r\ncoX19iv2+QKm5mOWbUJICzKk/yA51hxYk43h42W4kl3S0yYXPHjmuWAQGP5m\r\nMjcwaw5xeXk6qi7U1Pin8EzHDCEek2dLuqnh3GDUwk9V3BiYt4OCT3EddU0p\r\ndDSHWD+OB9U+6MTPGvFENB82KqB7xeeKaG566pkTvQfmG1Ztgn3AKojfl8I1\r\nfmO7b9P98+EozgAu8ep75mKW1RgqTqqhOjULwHeW2WU8ASRFFBMJrndTeCCV\r\nMg7ijVx/pdySQOKYRyJKXalj+dhn3AoEJ9lhbTUm2klv0XL04XfDx+5vfieH\r\nth+35vXgj/I3ulU/QuUD0aqprywMivIZH6yQMSdFuNz2MZ3/v5PUlkIHtBIi\r\nPtKIG/B0dvH4HDmKVnz8Gq0opW2TnH6b2mMYlpj3RCfyAEk31KcVTpNmNoIS\r\nGtNGmWZia1kGTU2/oBMlXKLE6jK45/6pbezCMKT95NtaYdP1B53Aa0LbUg9Z\r\n+ea6ATa8VC96gsd9C4Lv+JfyJItrNCcKt5xI7Bojill5cnf23NgaBjYr3KP9\r\nupXcb8Hj8IeQhz0psxd0qjNE1KO1NAYA51A=\r\n=5NhS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-15-2022_1652574914508_0.7044151154055025"},"_hasShrinkwrap":false},"1.23.0-alpha-may-16-2022":{"name":"playwright","version":"1.23.0-alpha-may-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b22766f84065e2e49e0ba45be7f81d25845625ce","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-16-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-smaHQFxJAlEEmaXIP5YMGQfkXGScs+TG+mjFaFSNudLMG7tqleYun5xhgCqK4vdFirzpeIQtV0W2BKVPbFHX1A==","shasum":"31a703c661afa4671b183e9a5fc0ea454c44b990","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-16-2022.tgz","fileCount":9,"unpackedSize":24101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfJuPou/B3J5wzgusJPJVa9Sorks8mpHvr551BdGGXgwIhAMr7K0AeNzWSdeQ+hOVoTOs8lzzZzFQja1j7ZRV31eiV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigZrHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRDw/+K2pr0ZkE4FzbJ0vdQ5T8UAZPLIuDefsHvTAvVnUnIR96Xgyk\r\n8ILBJRPcfzzVm7v7nqy1qsOr0jnRaHL+5U1Z71FiV4Fvp8do5YrHSrYXsWDb\r\neSEJZo/YfpwTFsVxGi3cGUlJLZSryOJWyMmZZStrSmI8Qo3HyolZ6/Unk4+j\r\nEUUkD6oibNd+j6V3ImOCQ9i1tebU69VSpKDMXMnp+rLwAGhOp0z2Me5r4OuF\r\nDWF6ODWijQ4zyx1+5nLVr0O4DiIDn+x2kp4+ptKIbmo4JoUj32Em922t6e6G\r\nHk7TX8Z2XjsA/sfXU9abUgwUjq4fTeLfuUN3Yxr4LqhBltBY1ahJ8jQxfxEL\r\nsBRO9MauxTArBg8Wau3pSW47ljJjLg8JIyuaVgy1dVOQzwcMiCVhdDhzeqgw\r\noJ2orjW0FQOjvNka8ura8vMmAYPvUuwtdd2frEoCny/GxsxFjwveYHy+AZbO\r\nc1c6rL/tcytajvzkM5uSIqR1vOi9Wrx/f9kVmj8vPvywB4DD47abGCIGiiPI\r\nRz4L49R47L2Pkac7XM3nAXG8UQBJghuLCjCcuEW4PpLx07Yu+n/TOwiL4NLG\r\nvIQXIBN+1XYrTr/FZJKYBTVJgfqEhKV0hfPMb0gbY3TJG3WHZN01nQdbjtJr\r\nUpxJdoC1Xk/c4iuYC5Mra9KUHejIpNvR33w=\r\n=N89c\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-16-2022_1652660935037_0.36240561586130493"},"_hasShrinkwrap":false},"1.22.0-beta-1652715158000":{"name":"playwright","version":"1.22.0-beta-1652715158000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-beta-1652715158000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"263ae4028a14ae83e8324dd602bb3d66ffd0c0f6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-beta-1652715158000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-L0wPzvJvrnMpxd2jShuyOO/GFPuqjbkAdQ/JxgJWT/w0pPfXrGi5wrmFV9bwQ1Fm0+pwtghYPchUzTTVLWOQGg==","shasum":"d9e32dd9c21d29dfb9d99005d8f52a5c2f213948","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-beta-1652715158000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVW3pvQ6Tnz+iJ0Ufs93KgMP2ezC2fVXkAydL59xx2oAiEA8JiVGC2tuoNiHPl7CiJ68xdCq6R8EtuVf129wrgGXD8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJignJDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozuxAAo6CrqBNRYulHI/TGb6ujXJmhIVH58OfeuNhWIwwVq6gcy9gQ\r\nuFDg6day19BMjcGhtyCpAvVeyUVQsmJzcmnIO0/VMyuoijsGkYLaHOxq4VrD\r\nEILKJfiylFJkWhogXSJI0Yukoq0x6jroJQgz58bu1VDClmRDoZoGhyiMfPOu\r\nqKrD6kd/osc7A8epwjinEjY9HWTurqMjlIKaQFLY7os9oofi4Ha6jXrB6PJq\r\nwhzEcfd4IXnHDfmq3RaJV+sqeYrJaltRjXWzagFvd0/EGpi3yppYg0jlXOu5\r\nVh2vhkKoggWZUMxGV5dfYpFYJUZrFgg4Zf9ziVUGYClHXmbWE0bDjFnGH6Bf\r\ntszYnZ+PwspueoBS4Hs98PGpIqcvm2PLGtScwqqfK8Vl62C0oyR2nAm/Aj4n\r\nZII2dlNwPhjEySngqOr1LwV/B5cEX2XwX10p9bvhk0zpAapmdJD3tIHB1QQQ\r\nyf40rULmMdcQI/LKpOkOVlTXokTkFAnO+FO9uUweXnL4ngFPmMg9lhBnD+Mf\r\nEGIVqpjgog10GBOAZhCDOQ0jRXBAm5B0JfNLbTZE6AVkUvMfLFnEvEdLMZAf\r\nb8YdLrTsk56AluHk6BTdO7CY1c9j3el/ZqHyiuDUfazaPTxeGyFUNPn/eANH\r\n5AEeZW+yEmPGMUIReulkf8MNN2Jo7LDTNU8=\r\n=Lfrg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-beta-1652715158000_1652716099579_0.3786649642613684"},"_hasShrinkwrap":false},"1.23.0-alpha-may-17-2022":{"name":"playwright","version":"1.23.0-alpha-may-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9256de5f484e10d40740e61f07822852035e2a57","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-17-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-2IWd2oCQuzhbLMio0Lot56i/T+dejr+KPB76k5Qd+V7Wx96LpkMhmZhBSjVWLJkFMaL4ph1ykqpGQMBNmEkdbg==","shasum":"676effa2c0c3005a1fdd36042115f731d5dc1585","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-17-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBsCtUQVQjlit+qJud5vN3EVrav8ZOd5KxNJqG0rEaArAiEA/A5LBYQH4SDfi2Zf3Mk/CEbT/UprRFKUBU5pxycxPA4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiguu+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJbBAAoT2fkoneY+rCire+iSvnaBtwOT8DSZiFoNMb0/jM934cyO4s\r\ncOvQ59eBcisJRnnPsQEETtJWbqfgm9C2szi4wKaSEwl5FAmfIHFGAtGigDz/\r\nh4b06hFhZy/DH9KzUFmk9vc7RGErnx/B3Jb14Y3P6WmUYBW/5irb194TvqS+\r\nmHVKwelw71wtwh/5Y7NWqhEgpvaAz/kOO4GlU1XHQe5knRqaJ1r1K7SHRY82\r\nkmqLCvKJtTGUjRZMJ1HPe0uWAmUJao4JbqDD0B4hd1bfAd7qASD082e1S8EQ\r\nVJQeMLd8ywPW7IjAM/idFR4tDpZVk7SGPMd62D09yJgbWibMPp66mXgIbGJl\r\n43RPfhc936ljy9aoEZiKFWncpRWGr9Wd4VfHDBUvEdE/xmgTUdo2tvW7mIDe\r\nTAbsjBp/ErG2kLvFCGvgD64/Tu//QFKnF9tbeCBLpmD4FPYJoOxu+rTBXdR8\r\nq49JotRkcgiqLtEpqjPD7BkpbXceDdHudTKl00RwAnGiWu1jVLxdwsUdCWVi\r\nerluq9B7P5jAPtDsxdwvjd1vdBG18ki9tySf6Dd6Luy9oWdKR2jmyuZ/coM+\r\npawetZr/aQvw+pZs8uAjSrI9gdBxmlRWLhGsRCRUTd8XfEjQ5ks++vKy6KOE\r\nHXEtaBLg35fTHq3HDHEB39ADyWFx3XtQZ4w=\r\n=hkKE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-17-2022_1652747197880_0.6986932553284977"},"_hasShrinkwrap":false},"1.22.0-beta-1652762540000":{"name":"playwright","version":"1.22.0-beta-1652762540000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.0-beta-1652762540000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cce4550cb10144e23a5e688a5ba5f72b55a73c1d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.0-beta-1652762540000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-puFVrsAHEL2ahSDrWl+uAjKCG+JvJXDw9HT1WRTmu0JNPVnpN9dy5xSSj4K7Hdl9agLtwWwsjbH8I3RMXpIk8g==","shasum":"72e65bfd9d1fdee840ebaf864ba1e564ff39658f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.0-beta-1652762540000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH4eKjfjEyky/HqOwsgL/lZZQ7M6nxxD27kKHsgtA4BYAiAjHcW6shYpg+W4d7S5ebuJ+IEU7P8HHz6Hxh4HTCqEuA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigyhGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqz+RAAhwU9XeGcMWC9qpHjdAVyxLKP/9+ywVnYHrI8p6GyNIlClq9i\r\n68tfHiwms8Zj4lzaFykxH83Lc7h9xIZqjoA5LGYM2fbSlhaxcIUttlRFuBGk\r\nQX7oa+ZOpnrFZIRU9UaVmIn2ESX7Vj4voPlbQvbSv002x6gXjfI0JwBXGf1d\r\ndXtjNRSkoMj/BF6+nSnplski+KDTwnic90lBWi6XfhjiTILeG1ShOYeXNjc+\r\ngsOQMrZ5MJv2zlUseBaM6RdNt2XXXgJUzQ0RfecL5GNkL8wbqKp+qEf8R7c8\r\n383vAJ2X+1MSC5aSlxpyuPrfEkSaPqSdKQ8vGA9tyZq5o91RPo3MYguRbe37\r\nlWGg4qXdZbHxU95yrVFLsIoEltufsmDOWfx5bugaH+lps+tNKP/Y6rltmHFc\r\n/xAL6OXudFR3uVsnGIEgIpve0Ie67R0SHUy4WCE926v04yCbSaBRT4YA6ce3\r\nsof0vrxFR1IXhk7VSfex1HbgZNv0eYyCEFizFTnglu1DamkVO0VRWZSDbzua\r\nVowVb1LGxiL1zX4EzNvyj4IwkSFA0gADHBEOwM+6GbgW5LoyH8T0yzEtgzBT\r\nuKoiXRmBkolf+6oKJlZrfgRRa/HvLDkMyi+r4T1jvn1bfehh2rqmmJHNgOW9\r\nuiGlrG3wofl5Qra254JC8lB8T1bKx/W7tFA=\r\n=HQWM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.0-beta-1652762540000_1652762693974_0.5768196171470925"},"_hasShrinkwrap":false},"1.22.1-beta-1652781626000":{"name":"playwright","version":"1.22.1-beta-1652781626000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.1-beta-1652781626000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"28d4804a7052ebfd32ba8189d6c7b2a6f4b211dc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.1-beta-1652781626000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-6F5fHyO1Z1VgR4mgQ8wtQLwYWG3s170A524zCzu+YUPc8TPRn+q/vVhsmMs/Ve0Y8sws2vNgobLyW80VfLO7Gw==","shasum":"7b9b325fec6fdcf1afd3c18980307168b48ab52f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.1-beta-1652781626000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFCDbFK9kLs7PFOuat0xrWpLUUVs2oM3CM2gnnSTBva8AiAbNNgS5RUFO0Bwp24NBc0DzCmaWfuVv+V4f/31oM7rcg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJig3LsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpgkg/+IWIW3jC0lZR084AUWjxnOLG9YW5rDi9Y3/ho5sMG8irA8suN\r\neU96n3lyXwOiuAGe/UfyJHKydyq73Q7BxR+PCD/Rs6+Wmmd1z1G3kworbhpS\r\nbl9RiG4Y1q/ym5fbFgFkNo3hl19CUG4PJL+e1wY//dS9v+LkjwHZGLEPforY\r\n3JrqpH3St+p+KZx1eygHsCu/1k1Glo/oXo8JxWqYbPs8dDRAJCh3kuPGL/d4\r\nb2XrALcBKzPotwWLtj7TiZ6Tfmn7y3BcsPSTB+ykiYABgMn4vVU+F/KFvYgT\r\nFMjutWuAwnqRjvAh5hEz8jltuLZqzwyEZea+U9F6PK9w7OWLDsBUkVlRbnNU\r\nB1CyvCR9m+wMhHoSOPOVQvh63Fq6DnG35rEgnDWe8R/jJVcNlF57UdCm7VHA\r\nRal7zyEtVjkQ2lI3U+okfcURZV6fdlYppRnAu8IluJZbWAJng9Y6AkbOKwv0\r\nsTwe2TZsQP6rBKE80Uk4UbwdUkNIdDYFLglbbtd4aFwsJbC6Y/vEsm4k4dXY\r\nnXNMEZNd19K3iPmImOSYgWmDau58AAeTw/YMaukuKnHbXl8zsbX4yojsF1DU\r\nSSROzekto5/JdQP+ra9OU5XmPpdVS7KM3cZPMEhc7+txCApgiqtM3MqRUcOR\r\njiULf4VoT5TWWAqWK5TsCAbc4YpEc2kwmLM=\r\n=V5w6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.1-beta-1652781626000_1652781804146_0.5175950465400061"},"_hasShrinkwrap":false},"1.22.1":{"name":"playwright","version":"1.22.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.1"},"types":"./index.d.ts","gitHead":"28d4804a7052ebfd32ba8189d6c7b2a6f4b211dc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.1","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-pn4dvphQdL3zTgI+xfqkTL3HK1xbtQz+zjJxzyhwKLDxMNuAH7/NCm75auWbYLyssdnvApznujwrQuJvqXTKUw==","shasum":"a41bf55065953a6b31c151433e0f00c9e23c54dd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.1.tgz","fileCount":9,"unpackedSize":24065,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrYqLCexGOCivl/xbXr8GjfUtZpTbpeDKv43ZX62XorQIhAKM07tllnrJWpskL4us85mzCPipHOgPMqheo+k0iC9+P"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJig3rmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoyow//VrVgV6y2tlKurj63QINR2Pu8Q+4NVbkV/VFcv4TNajwH/fqP\r\n8V69+eOzuzLeKJIBxnwp/stE7WWy2OMmmTenDLPt8zDD12VLe35MnrOh6Cag\r\nHzBmVlD4WlYFyTAlcKxLstZuTLHMFVFhX3BxYVjgrWtdI8v8XjsU66QaSWIz\r\nNizo9gceRpGrMhc3YGk83lUn3L/W34pMyWp9M2kjLpiDciV5aEM3IBbZeKOP\r\nD1Ii3iaePU1+tY2YFV9yyvXKk4sok4OmowYLL1DJNN2tXwpfAyUbo2UXaeK2\r\nZT0pGsnX7qSj3Ubg5BxInSP20WsYKiXs2XTkWc00n9dJw4KJRT8hOZpr/l5A\r\nkIU9/tCIE846An7VZeJSYKi8+S7VnrsuC39w4ilObpIzoSc3g0AVSqStqAGA\r\niRdnp0xLpKOAKekDcrSktKHogZGyStiZz5PgSGFdKju1hG+JZeE2W6sl8C0M\r\nVAJFObMinSkxv2h/us6sNkoAfy3I5/1ED9psziA4fS8xcdLGsW/aOIANW4WH\r\nWHubYlHpBzdhSyXTLsrzWoVOBQji50qxHDBMm06nuKi0S9W5UIqVhrxhMRv0\r\nZdl0BBO3C45ZqNToI+J/rZUVIhZVeroYxDmStnTtd5zGahB3PfueG6wW4pNp\r\nKGY/nYmETI0VUdYsoU5rUxYhcUxh/HTMJVQ=\r\n=DghE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.1_1652783846636_0.23803238889900324"},"_hasShrinkwrap":false},"1.23.0-alpha-may-18-2022":{"name":"playwright","version":"1.23.0-alpha-may-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fe0afd6b5c2aa15c5a8e379f16b9a80add047d1b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-18-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-BEgqgf9q+PpJi05CovrgnQimBOIQvdtqu0jqlSblMi6oBMqChlUlx+IQKCcWb2MYD9iQ/mrdm+lNIMiBpfa3Iw==","shasum":"a7a4842c1e9fc50a7c87e98f880dc0611e305a8c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-18-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5OTD772ooBudB4VVP+VPkGplyQtAY1Z2uMBpBUhg7cAIhAOm3b9ebyT3h1Y/zAyraPTSK3t/lP5C+tC2lQfvik5Ym"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihDzTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9fg/+Jh+7l4QSvei42DfV68IevalqiycOe0wHOz9uKfgPMUqD/pQb\r\nvqaqdGuIB47GjNRXdQOeAoBH2UZ+mI1mTUSYU1UcbLwxSOfgvW7Hi/3oyXa5\r\n2NLw+xeSR9Iz5xelFDppBPeFpMYfsjLnV8kxFiTtb0tgEiMrmKnB33xyLO0l\r\n48ekQIs6TLYHpEiK/bqDmDwBFV2kFtEcrz2fG/evrzc7am45TUgxW1dERa08\r\njkj/HxvUAUxcr22/9abmKRgzOdx+LdYZWBThizPh+1iN3TgsZYJ+3BgeAM1H\r\nJUP6JpEqSbxZ7KUc5Psz05+MiRv+mdC6Wwakw4tVTWkSgcTh0sQ1r7oqEml0\r\n/PbVBsWNErIlZdVs+H6KnoP64rbhSW5+w8xGI26B7/LeJJzmrk8FHFPErD82\r\n+iaNQzleEjdkZft8gCHpAGfTMzOJwHeXlxveUUw7yWd13bdCywegsexi7bkZ\r\npjDD3BCLwHd5fupivGwnyCAtlIXCEFzNbN9Tg2+3ZNCxPaOE4XncPT0vcRWj\r\n/3ltQ1DYZvyz77PyRWLbGhLUNl1rnTHZ3oIH2MTsqi96WeBkGbwyXgB6YVW0\r\np5dLlk6g7Ow1GMPH0SMURsQE5todQTyuaEvHbqaEqnlsna12Kp4ESX+Ke9H8\r\n8VaMWEX0oV66jBSIREqL/SCOcrVBW5UjVtk=\r\n=ZxMh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-18-2022_1652833491099_0.13690280630556506"},"_hasShrinkwrap":false},"1.22.1-beta-1652845163000":{"name":"playwright","version":"1.22.1-beta-1652845163000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.1-beta-1652845163000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"de23a1b3d209e05a2f800c26f46bfbfcfe5adf82","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.1-beta-1652845163000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-kUp6OHOA1cD8c28icr60CW5YtxGeYxbpBIgIYcgaxoh+nludZiVZ516Cty9zjekqUQHF7n7SHpWYA4aR0IL9wA==","shasum":"b4176efbf3a420fb98e0ef805c2cc06230533fe4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.1-beta-1652845163000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpFcQ/kDofpAWaLiUTyJlb0UAljhFW7syNUaLPF9NuWwIhAPo65xD3ofmCbZ9V7qqNsIIRuYdiRp0US+WAILQPIW13"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihGs4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrALA/+I5CkX2ba+Om4On955KBu1aP6Jw1E6WRFfUrdiOcRL/1hsgvK\r\nf3cqAN1qwR/vt5bDz0dLC63DCRXyvwxG6wpjDKL1JcqPwOrv7UEFleZPzOlx\r\n84fdQwYsQ2j9k5nLlIHJ5hFIeQE0wnAR6RbiIJPpG5zJ1yzmZp1L9NBKBRBf\r\nhMsIufuKq7xW9vWmmL/H/PM7Q4SaHuoSgEmtDKcxmpS1NcwRq2P8BPOIF9nL\r\nDdEn95bvIgK4OdYqLAipvWFLU8Ck03qZ/1d6U3/yWFBThVod+78YCz2WTUCC\r\nJzD3VHJ4IQz0osCSwc82/Qg6rTj/BGWBQcPlE9YPcXyjyFor8yGuOVRqUwof\r\nNo0yXl0FIC4b2E4/XHrc8yeNJ/6HrvoGFVSHDfzoBoldjPr6g9dh5ZNg6xHm\r\nT/vhif4NaWDPCpntKPN63WJS/VR77pdf4RDuEQqa1IqiRMlAOQAhTvjRdvAW\r\nLHqIVlXBsDipOUeQDyKed6Um/Mrz1Z5LiR292kpz75rpb+ZhMRGTqJLuc0v8\r\naOTaIq7wb96vBLR0NaqnPiztHuzsV8xdaLuprIJN2NJw0feve5PBQTxUBfwt\r\nupZNQv74AmuCtjZyhShwxmSl9qH5mh2SB6jyUpWQTcEDq3Dtpqj78E4WiVlH\r\nq/H4HBrgFPhGD+JAPPnZIqxwVbdfZpF2ClQ=\r\n=pCOj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.1-beta-1652845163000_1652845368396_0.7078755579837488"},"_hasShrinkwrap":false},"1.23.0-alpha-1652893025000":{"name":"playwright","version":"1.23.0-alpha-1652893025000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-1652893025000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4d9ef46f64b0d0cdbf342baa1fb28099f650672d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-1652893025000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-IViCYjsH+LlY0rcEhpVuPshu8ndVTO7Qwi0YAwmg54aAHVEGKjMgKhBt4/0/GXdd5UPfUC2dftwSwe+SEpyxKA==","shasum":"f17ccf0b5a862318fa398013794c276128543226","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-1652893025000.tgz","fileCount":9,"unpackedSize":24104,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDR+RSC/DxTi0QhyaEt06gM7zuGwDxPiJ1fyID1yYOSkAiEAgMh2bxgkId2RYcPmW6miqGJ22gpC8VeVE++ToSfWKw8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihSc2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqI+A//Vm3v4WYrqiLHZqofR73qswNKycusdFrjHBDXjHmA2s3W1qFz\r\niqprAatJQSXZkrMnd4wFu+qgYXFu/7gUmW9vBGUmBpE8DSKvYEhi60dnfgbV\r\n50PSN5+3CunvQi20AVl/cADsrKkALTeNtiboH2JDoWmrhOxfKV09ZHat2F3E\r\nK+NhTKUxN/Jns/4YGn2MbE53pOiJwCQuRzgUw5jhuekoyM+Dq+zR2Vbr/Xkn\r\n9SaKy7R91ErM+mFnk+7NstkIB/jI8/3MgKFHkE4QnzDpO2XnxUT9O0SnpOGE\r\ncsT6RszYcbyWy/g7OTPYrnMpW/1Sajd73SEE1XfzWupA1IoY/pX9O0VappDv\r\n7rCsIaPWrOvIFV+upMK5r9qKvqE28Ih+0QBn6LLgUyy1YvssMER0zJiorH7d\r\n3Ncb9GcY5W21JV6rq3TWYdqSeopSn3iI+lR0hPma2OCuiW1fy5v5E/Pxxhu6\r\nRnLAjcF5/yiA7cPyg3KWnw1glRbOE9JxW8IPsXYDNDMoxt4FgMO9tLcd/gjl\r\nSlfxrs0kUKlebL12V8r5QDqsecZRiZjDi8UCaxnCLvbCwCBIFJRe+ta9kht/\r\ntRdhqp5e/vas8IilAbLIis93KU3Hqa6t7YRZDuSeRhA8zTp1DFud4HDOqG20\r\nAm2joxrhjDJ2JGaKZf5NFzZb3BOcXsQkLF4=\r\n=8cTE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-1652893025000_1652893493952_0.6604146687991725"},"_hasShrinkwrap":false},"1.23.0-alpha-may-19-2022":{"name":"playwright","version":"1.23.0-alpha-may-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"432c52d31aaeeb279f4bd8b59de70a15ad1cab07","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-19-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-YeBFElpVRxBdEclN6zcSX72eYk55sDR6DO6q2+J/LKSCwSx7M2SFDhrKrOx/oI4n3dHSALRq+YzugfvbbudpzQ==","shasum":"5edb97775e30898b1362e4bad31e33339ac9aa8c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-19-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHX0AFGFdVeAfIq85fe16Sg0208kr1+AFgIDTnnk/DjpAiEA+SXXyBJCnqSYNoTdzEpGeMyW0Tcp4yKVjTd0RSUcWug="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihY+nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMdBAAgmAB1LCpN4/KREdEp4FV/kHuHwqNopptqrQwiSbLVHDd9vmD\r\nVTFErCdHQ0sj8Q47tLMdENgJL/x36tXnNaRPlmByt7fSvb1LfQeG754wG/CG\r\nklHr1YLhoA1RPHh256QxxdhJ84lq9yONUK91h5gpLXh6XJbyArWz3leo0hBT\r\nnk8W28cLwD2rP1nz1iIYCmd7JX2kGJRGqL0IkIPYvvkyyQWCn9NRHbxtXwi2\r\nYbGFSUoJ91J0p33dXLSOJkx/rhUgFPzEDyRhYSlCk4IX0I/OVojCcDXX9dDd\r\ne9x+gD2SnB9UeMhiUBYHpFqiqn+KUITAc261hGchjayowWbu8I0QhxfaoOEH\r\nBQ8absEtn356DtN6ygLs6cNTb8G48RR6B7sOiH/Xgw3Qx1oSdttqtMdGcaO4\r\n+f/mVcXQTh8CXP0nqkZQh62zFFwT1JM7uzMjHIqKcTMTe/x7aoHaAf6yeb+2\r\nbvBAbrGQ9RG1FFov1N/xKUC1646uQtOinSgqvpfcfo1MgcssGpKW03crTcYt\r\nmGIwtIwu6ApAdtXMFHzaAxFxaC28OfRaKsuoMILQuWqL46AcRh2A02NzZhhC\r\nMSlWx9cHQGdY765US1QZ/dKPZosrDZHVLk6W9nMsDm/WhqRDl1Ei2Lb0/m8h\r\nczpUaCLqrIDk1LPJ+ruXh+XYRgKvhkytXWM=\r\n=hCf3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-19-2022_1652920231292_0.9338024173106088"},"_hasShrinkwrap":false},"1.22.1-beta-1652965837000":{"name":"playwright","version":"1.22.1-beta-1652965837000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.1-beta-1652965837000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"baa6aa9f63ccceb8bce3c164bb6a2058480835d3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.1-beta-1652965837000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-6w/eJ/VZVVJ8T/YXcrthNcJFw0MobcgucyfEJqRMW3xKxVZABWDF+OsWeusWXsnMsmz574h4GRKP1CKZTsjdTw==","shasum":"bf0c261f9e671c8ae235e4da9e729270b7425c03","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.1-beta-1652965837000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzeZLrcFbSoJckO4A1Fk3OJFCbz7qUnzx0JSZbnub0wAIgKbGXtuCQ7fC7WnULVU3ijkSbmjTnwmpvlRk5QUprQpo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihkJaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrvhg//epOSMWBOpTLBu7jx2xUV2r7f6GI1RedvpPJZhoqlqjcw38jr\r\nmwXpok9xWJ0RgJYGzayIXNeV/iGDOQkWsgtsS4Wxy87haMmzZY03nhdCkssp\r\nJIyED5BsFgaGxDLE9yvOFrZA8L9FYnED0iY6VAifVTalPo+uIGDtm/ddHGB3\r\nhfyMk4cWndKbSrda8iOWtT/HXNis9iwjQRGwf+cTaHZghyPMQm33MNIjP8Hw\r\nsOcEJoZexEJCl/9cJXexelb4E/LnX5iQkUf0UKMoURA58WZEco8amM5/+Hrw\r\nu1yG6v3BC7eJValhtrpWZhx6bvdCi0ZsM4es91S6ewSXz7tf1sFp7ZfSbQXY\r\nSGAUvzu7yomzV8LhEix2Qp/GCogq8b0DbXaxWGMUI4ekCv260yLhASK0c/nS\r\nT/L6NzmnJLWDCd0/Gc3KcAYLLRwT41dwcvg/ZCj2VuN8L4+BCO+deRJYr8K5\r\nr4Ywlc9yVoXxDXCeSXCyZ7x5/PvLtbn1kiRvPr1r2FsmC50JJJvRY8e9hiKh\r\nbs2bLkfiZ1BVI/+eKCa7+KCP9+Db+gw/pR1v5Oe7lVg+K6i3/bxh7/TVQMdN\r\nAhJ9YejGO0PQyLt3c2R67MyIfDrrvHOgCyfKLHvGA25v6zNjH0gT4Xo4n0dh\r\nV51sPkB+zjum+Tm627o2CEeeqgXDwCMwKrY=\r\n=urw+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.1-beta-1652965837000_1652965978373_0.6607172216109924"},"_hasShrinkwrap":false},"1.22.1-beta-1652969072000":{"name":"playwright","version":"1.22.1-beta-1652969072000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.1-beta-1652969072000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"14782d7a6ba11111cc0060ff4db28899beef9072","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.1-beta-1652969072000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-xhdbCHyW2FgUx3ZM3S/XwlM4gLq9JySSIuxTnxnM6ogtgIXFpCqa7PCbXCqXGQ0knGrCUCb/Ff5qs0osrBQlHw==","shasum":"1472a47d93bdadf712caf69063537234cc052b22","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.1-beta-1652969072000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjPD80pnYKG8He0P1ePq5AgOruG8Hrd2EGKtxvIWHjNwIhAPrfYPkejb2LaRX6GUmFdC4hM2QNR6FLU8/SSyKk2+bg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihk8MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfMg/9Hfb27BSaTncsKVOqWiHuZesFH3kmR+wW+Hi1B81sewL0jz5h\r\nMWDQSUGGiyaJfvyn/TQ6KWyJka38SfFv8vXAv8VllaKaty0mP+8UEKa4l1IX\r\nyRKIWyZDIsTQGXWemEJHzvHqtX40iWhB4c0LAkFz41D82BXFPwcBFXyk6Cw0\r\n6xBslDtizMK0CSf5rsblTRDEz3SG16vvs0QuONA1nvUeacyGH2iYfnGIOzzF\r\nMfMVBT3JQRC3VjNtudFPF3xayVVZmpniecfpuuepux6Nz/mcwUeRD0pW5bGv\r\njTbi8XE8I2pbDdF7DDdQFNEHe6jUyhnjY7RbdyKO8InKEFibaOXhe47A3OE6\r\nD6h0A6aeiHqCPRu4WfTkjfYOYFF7FMqL8bM2tdZQs9m0VGNAUxI6YvD+YubN\r\ndTOEduEsfYPnyWqK2dQObiMnxxJ+7M9gSzMcf+U/3Vqf9179rQU0NeP73Dgx\r\ngFuKCzccELHtOn6e7+E/iLnRCzCpQxC9LDtmFNb4q299EouvlWqJSE0MZq0+\r\ncCYHYhBhs94p7ztXicr3rGfdmb5xb2oZyPoAMS6/krgz52K6XJpLpgdtWkny\r\nmbqJn5g5Xr33EMK2QkOxxzu4+zaisVgVvGWBonF01hcSoPBWz+COVwX6Hf7e\r\n6jKeiV5L9kts9ZQZtznpWtTEvjGSRYjXkB0=\r\n=teD+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.1-beta-1652969072000_1652969228352_0.032420902259533424"},"_hasShrinkwrap":false},"1.22.1-beta-1652998779000":{"name":"playwright","version":"1.22.1-beta-1652998779000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.1-beta-1652998779000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"abd4258080a2d15cb3e8b3de1202ad147e4159d2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.1-beta-1652998779000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-hI1SGU9Jf2/bROVSggMDyoc9yghn8uP/RMU84Khfz5LJgHrhJA4kct8Winn+VJutNVTNfd3KtMl9Y8IEAXnbZg==","shasum":"3712564c0ec7b07dcf9808e8dd972673b9f04989","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.1-beta-1652998779000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAtT/tl56eAeCWjjeJj0yAhGLJDEM3Rydq0fIhZxtqDSAiEArlMZlAqvB+xyriIcg6WlHZt6KSQwK5q7pF6EeJVbAAo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihsMBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5Jw//etFo1wf6yIQ4Myv6pITUGRTKhBaOqURVM0S9MOh9zupLANuf\r\ndfehaYXNkeNu0WNuOyBG/Ne+QkJVFltSmNEhIDB9APcJugQIgzj4YuBy7kJn\r\nvI1uCZp8J3+3oUidRWmcX7b6hGV2bmIkhREG/GF+Mu8aQxQQkGYbe2t8Cdra\r\nTI+4yFS8rfkBcpvXsLQDhawUb+Aeloe4QMieUuFhCfoODcRTj9QIsthGo/fU\r\nLyu627TiFmt49M5Tu+mKkaag33RgK7zGSHOhan0aiues8TcUr2lpPe6Nv8fP\r\nlAc7F+Aql/JvdcotQYxxbm4FGs2F8zG26ooF9xNHbz+8arCJvaxtqCCUtTcn\r\nLNrDcR9hBVDDcS58i/AU8KiAccGl6gp6XFQv2YfTaQ9F2JCQveENcKgrjbs6\r\nUA5U9NJfhSKLWOd6mkG6dJ95GRZbf62LZ5HhoMJMCef7+oCDXXuUBK3keCRk\r\nvzCzKsf3FBQTTRnEE04LyZxLYWF+kAZs8cPf0h/bkOHG61qcdnNZjLNqoqm2\r\nJPOee+3hkVzpVmQ/tINUlL1VBVP64RkcZ8yZ4m2TyF24aEB8bQpIcY8Cq3+1\r\nNL2LF8kMBElg1e/jZQ/7NKDkuGvTgIF3okJRuNxGgwhQPtSCbXJksGG/EJAZ\r\n33w43cjQPG++OO/GeZeIagH7LpjjyNZQBl4=\r\n=SUXs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.1-beta-1652998779000_1652998912818_0.36131674128600944"},"_hasShrinkwrap":false},"1.23.0-alpha-may-20-2022":{"name":"playwright","version":"1.23.0-alpha-may-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fbb364c1cd0dec9e4a75b885d51e67ca397b1d6a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-20-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-YAgkgMcLKBBYVXLLEePCecO/KjJpJnDeddj4bOTlEsFo+F8i6M26ciY1F8TYzVrQPHTb8HdovdbuRc/ddQhMBw==","shasum":"732061b71664d0430d74eccfe506ab94253da346","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-20-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWtzi6RY8QWCFQJpRCqvpnCH0QIcMgn881VSK+bmnCCAiEAquL24g8OoZaAljJ4r6RB8yZo2BOy9OUDBvPEUSj4q4I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiht/jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWfA/9GMrIXYSXl2KNxaIMG5i4od8Qww44ZchFAJfs34RuC2oTd+EI\r\n35TuBIlnQHlBxVxI2cv0xNTJ2lMo2+QpGXgqW1kqQKgD3vYN0XszlOJ7LLTk\r\n+5+tZqyFhVBuq3AmlelVeaBSfv83Gp0iCIod7Ovb/2RNC2zr19/eBTfDHJuv\r\nQGfBdxYrEKE5KDFIh5XlyE2yhbZwMb4wrn8RX/ZTRKj8Obk+aGLC50BWKFYZ\r\nVgINKvMyFx/3Ddh4SY3j8IP8B7GcRxs4m2WXlvOO7hiP1nE8JkR67fCNFOyF\r\ndeB9Rg+X0Wc1gs5G8YqLkbA3ep0wAVjvyLAPS3xz96WVsoJCxJ2hY8cFNFnd\r\nKNnvtMVyPGi0dCVOx6ooIk6BAh1SV4MMHpzaIeJhgGDElcDU+lXas5dlzOYb\r\nCsWcAAmaYAUi+V+Qa2cBPrRImEhOOvU0B5ex5iwGgOQeJMJooPGPWA3ixDGI\r\n1AQKt46Fe0r5cTXPqH0jkgYNJYG37FbWRlZfF0Zt05xbuOBMHVs79s0aLU5K\r\nBsXVOkJz0+PXscBPw2QuHTOHqlBdphbV/w2vGWC7oWYfOl/Fk/JfjahL1k12\r\nb3lRbkIY9mrtY2YmcuYGW1WjkGqmA+jLdg605ytnikL78dJseuD46R0ccw8z\r\nqeH6h2tun55GYaDB07I7Pd1DRxaLW74qVAo=\r\n=WNvw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-20-2022_1653006307162_0.8176639823995102"},"_hasShrinkwrap":false},"1.23.0-alpha-may-21-2022":{"name":"playwright","version":"1.23.0-alpha-may-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b58088c9eb32021f1a4d29cdc83c0191f8971a42","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-21-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-VA3tmZj7m9ZfulcBzgcspt/6f/cZ9E0lEk0QQoWGiUZjFcGNELqgw56FgWVMj32EohveERm6AwxILrmEMjfcVw==","shasum":"71b5c5ffadcbb53119dee058650d41f6a5b8c7ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-21-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHp/TJyeqx3sJip8MbQK4QpQ6AVQmXWS2pxT+a4YBsOAiAcS/xjwmQ2tmlhjeMrNg86m5lWnea9rNiC1T2zQD1+KA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiDGdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIUA//awdJXW8hF3U9FVmTIwtV2Ob7A0nY8ZwRFp9OOsHYiH/1FX7Z\r\nsxLqHoevP9/6nzvm7orvgtMdNh5jHzaf1a+74eR5CqhIThjQjBRerPj3LGWd\r\n6hB3JbrU1FXzB1c8EMEb6TCw77E/iX+SDU752HFKBmi/tkRgMeNR3SjcP2PN\r\nwvkzyN+FuN28m4PzUrbid8xNkzc8bh08WXd5PR5j7rHD9JXkltZwfC2GY1qa\r\n3ovQnRhhkUHRFiXnf1Qc9Hv9rQv92PLXprO//dTBf489NLIgucuwH7QXxSeS\r\nQnT93yPYKjdcIV6Em8g4fKqYymwj3YZtVBfbusp0KIwV6oyYLH1k3w3LO7Tf\r\nnq8iY5uwXEHkOnDEb6g9EW79na+xvS3sscEBVGR4wNlJRPJuGfKhAh5l8cB8\r\nxVKpMwUQ8+F3fagJsG8kZm2s9rXvGtI9QjNI8pzrO2cEc2XdRCdnwQk84O6g\r\nFOC30MZDabnJrxC2yFomIK52TFRWLGqshQ3kzlGe26v6UZpTcQQtzJHcpeO+\r\nHiKPGU+OKYFrJ18sPSmSJbAvvjXKqwwFhzRPBZ7aDPnVAQjMqj04oKm6q2TG\r\nygn9c9p/aqK6PUtpgTFZo/HziGWL8S/TpWZDBq7Knx2yZW4dvChsQU4s602+\r\nQ0/LP91sEKM85ikkT9p61psF+LaZ2DKpHw0=\r\n=2D1y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-21-2022_1653092765169_0.00829369000672453"},"_hasShrinkwrap":false},"1.22.2-beta-1653099966000":{"name":"playwright","version":"1.22.2-beta-1653099966000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.2-beta-1653099966000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"41c6aaf4267c2225bb306cdce5ac65706dac4e85","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.2-beta-1653099966000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-9ErWNgLKQx9f5a/IECIARX/6GgQC46iWBiV0FnWPGsDhEvHNnUPnGveJyRFGdBRWI4I4sVRZYMsxzwuf6w4oFA==","shasum":"a71f0e4f3394c8a796c7763f2dd515e02d8cff41","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.2-beta-1653099966000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+M1HGbBjCfqfGa956ONd5IJPybnzCaIMxRo5WATVz6AiEAwZ7FmsK0Y633+ciOZWQvMjEcT2yWT4a12eejwZMKzGQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiE5SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo15A/9EcWe0hAwvfs7YDiTe2H+jNnjwzaWVcyhc+D6upmFhhx9SC7x\r\nf0o/UXL0kLyqJTdh91Bx6ibB8SdGvUV2u1cZnsNa2tTqFPQmhQP2x5p15rzd\r\n+0LqrSNCToxuKr/y3L2D/1cbhmb5/pA4DxJtMeTdPMDdhcWrwxmJSOL1rAoC\r\ny0Lu83eFQG4Q8gEFRU68a80WV7nVzNq+XAriO7GYSalogSK/cRoYE6Cx8Hpa\r\nxHet+te34Gnof9GIU2Cw429H+FuHwWPbgkxcs8IPeZ1XDj2EOkRsZ+9Xahw4\r\nzlTxunZJoC7+wn8ipQmCjGDx1Y3uYYTEYngeztl+qidc7LrlBj7VMPAtIzL1\r\n2bkewtf4WFtTtSHEewmFb9VU1dGX1UYyVbyL82RAqD6rWMqBxCovNQO+VEN2\r\nzBG3EpZ54CrkSPvAcoblEpmD0K+lOy1tDAPSjzB772pP2B5tH6vXJrOIPTRC\r\nx5EBLikw5WU15EKMFrFi91moJ+v6lclamUNCOmOjFAiWyQNK8eqLTkwnnSVd\r\nD59i+DYLk/79/7GTTuDkBSbC+Czp2F3ti34N3BHFn66NQ0fIcnxNQi9sUo8L\r\nGpwDBfkhctZsnUCcTQ3H9tmjEN2Pjxyj4AuZ6QYg7jEvhe4QxSaA6j7vr95e\r\nd1AYTa5JbKKKydpQWAArnNR321PG9vH723k=\r\n=6m57\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.2-beta-1653099966000_1653100114603_0.8777091239838208"},"_hasShrinkwrap":false},"1.22.2":{"name":"playwright","version":"1.22.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.2"},"types":"./index.d.ts","gitHead":"41c6aaf4267c2225bb306cdce5ac65706dac4e85","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.2","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-hUTpg7LytIl3/O4t0AQJS1V6hWsaSY5uZ7w1oCC8r3a1AQN5d6otIdCkiB3cbzgQkcMaRxisinjMFMVqZkybdQ==","shasum":"353a7c29f89ca9600edc7a9a30aed790823c797d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.2.tgz","fileCount":9,"unpackedSize":24065,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJDzGvgjROKfU/T1VlClojhQObbJJVVOVwSwM9ILIWywIhAJvNbXdJZOcVm5n3g/j1FLy2ylp0S8VO7PMEweNL6MV7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiE8iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFxQ/7Be3t2fKKqhUxQMouM0PxlMti9e8HBWYkKPv2niod6OcqRn3w\r\n7G43Dp0vdeywQKdyiBE3ZYiuxmXpEcbKjYsiZ+mqxzAbCUivui929ezT8TI2\r\n8lI42+9hZTDQ8rQq9liyxg/OWVt6QteQ96FaA1v95vAGSTMNbepsLwn+X8nX\r\nvM1LYtSiRtw+TV8cl3YgOaodxEdpA5nyngRsEG8oP6c9c9gbElmtsMIYMOBW\r\n4NMTGIGsW0jAJ7rn8UKC34fMIU/Y/1YVpaO50tb51nFf3QHqiKj4PCRvzEN3\r\nPFGpG2oZdvTIaUXKa6FPhaWSct93NXNnrRheQcYVslkc5/7PzdN8VSmMe5Ht\r\nze5zLfnHzc1ZKZpsfaOeiPgLyaEIMY55cxbB+JoVnvargX/ZvwhhZEayz01A\r\n9YE6k0fYJf9nyyA37+W/2vRpWFwFpMNADmiXUw/ypfzDc0CgjouXZWQHLjwA\r\nZNuVflq0GVxRR3SB2IZAKZ7qoLioIIYkvzmcKHdDiYt3ItlSyB1Py2+qhUAA\r\nJyqp+6iXBqV+O9u+MyEWzRP9emQ5sy0+kCy6khoCnh040yOPuR19G2mqVNm4\r\n4d1BkAzoMoqlFONUmgL5zWe/zFAmLnxOIwOjczX6gXMMtklVo6sMT7RguIBE\r\nlLzLNU6Wt2ybsr5plXvavuwA+of2bgXWQnc=\r\n=Bh7b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.2_1653100322269_0.9765099157462167"},"_hasShrinkwrap":false},"1.23.0-alpha-may-22-2022":{"name":"playwright","version":"1.23.0-alpha-may-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"abed166dd49a346332571346446024aaaadaee8f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-22-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-TAls9BXLizDXg/8gufri2/+G+Axvk3Q8tZVos90wGuGq+swTKcW+zS+UbJIkk4lil9/JI8yP0+s1FGGDPv0TiA==","shasum":"e8a5866acec3663c70fd61374490c753a1e8bde7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-22-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAJoPt0ITnCiKraVLz9xJuwr+M0Rb4HgTKyswcXOPujiAiEAl1ef9UZ5ToMyqZr8St0gzA6LJMhdhETo8RlKz9hKIms="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiYNMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmom+BAAgVEUf431Nkb1AzUNhoLnNuVIAaf56cCI8e02zsyC15KIibT3\r\n9pBowIwNK4EqK0GT0FJmXyQMVstlhgAzWjd+WClv8MP3g/K+MP18b58Wt8OM\r\nFSTJzcyEPjhM2cE3hIpBH4wxDR2QMJAKY6y8dYFYhyp8UPy3G3grB8HRRPPd\r\nw7f1hreC7l0x2w59/CvLCElFfgFTgylEK0O7kA2n+3rGKNAW7aI/djzE4FOB\r\nIpj9wKVr/tnbVFu3GW5zFlvzhG9/O8XC2OyHlzMHLT2xgTTnwbeJq/MyHmIL\r\nt8IlUnBGxBlVVdonebQmA5J+FL8gZvyExKEBOtO//kHdmj38yyy1ZCcEUlJX\r\nvipQAIZRfA+GU4o59T581YqMOSrOw/AiXLexgeqTV5j0h8ECHMwKYyo/qjj3\r\nVAa7xNtNHIe3C+FdGv25EaUw5gczMhCoCHbPxDyxyAG7rzohS8eT+SQEDuZP\r\nGkNGGOEl02byNrrd5I1xTp9Xm8komilAOkNqbGWtDd3rSJm1af73RcE9pEYi\r\nFvJUod22dkhcBSrPS1JE64ioxxIqIdECJD4pgJvqqW4Ghm+u8XuiP6gEEQJ+\r\nkifn2UoKgebUoKEBVxhxThxX48Zmzw5WdKbqy5EtqUu5Hl+zpuC3yBdw/Kgh\r\nmMm81BscdFNKTvx13RYjM3YUXaLiiuluZp8=\r\n=WVZa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-22-2022_1653179212586_0.6171947450741517"},"_hasShrinkwrap":false},"1.23.0-alpha-may-23-2022":{"name":"playwright","version":"1.23.0-alpha-may-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a1324bd935d15b78d91351a9846126b46bc5bf88","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-23-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-4hYvrDsG46J5Fvn3rO1pd+iw1vwgFL6E3NnDZd7FVehjUlmrw0/eDq1KRN3MvkbkjKyA1Bcmjcjd1VojYOzWZw==","shasum":"e1577d7e7d8c6503b4bd2498ee1456ea44c26f5f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-23-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3v8Wp7YYzysl/H46qz2w/6SEnLRVF+3fiKjMgxyuVEAiEAqaD1LgsfuUZviwsVvUaj4beXLuw0fzyh07sKGRpI5Tc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiitVqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3lg/+PsIJZmUVHg2NzAmUe0EILkKBqRRhv+mLp1cDpqziD3g+K1Ci\r\nxoTrD3MTuDm38NiYuW9ZGXypBzJx6mk4up5J2gyC6ZqROe48NH8reGkJ//O/\r\ne9YmBqivFGtTlgsFgXdgvCJU0yQ3gbKOZ2/uZQBAYVEL7NesoNqSYJfiW53Z\r\nv5JVS/tLE/DykHnzWQi/Ycww+UI1pw2PdCpT8De1Sy0OER+WH/gq9Sie0Vhb\r\nwN+35WmsT9MANQoXK5Ic0yZfYl3cC4K6f+le7dD9oWT/DQ6BKML9s8CoNex6\r\nZf0QkoDKHaiy5SoBSeEaP3u++P3EgOwdgCK3oB87YsEM+Nd3AsFrBwk95jAd\r\nf9tlzKAIOAVWgIgZi7d6EM5TDETx66ITzrrnqHHgkc9z1bg8S7neBKYjnEEE\r\nt3cNVVJTT7r44v3FT3faowV8maN8ya9Qq+/kRgwYV155U1XyStweghPj1L8y\r\nuV4ID0RSUROZ3EmUDjbnGiRpCaA65ef69UjZpgWtiG+pdn5Lk1IeGoCpSY0T\r\nSxAoonie2gBDMYeJRxjNDcw+r01pdVUJydn5W5Xt0ew584zhlTBlvn3COQiP\r\nnEnyO8vKLgV/+jEtnVoOA/mHRBRD09ciHIijuiqmb95sHceTVfFJ2SA0wIcg\r\nTX+ezwgo/IkbCTUJdSpS7jFMTyEreWJsR8Y=\r\n=Q7xE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-23-2022_1653265770705_0.40247435970052114"},"_hasShrinkwrap":false},"1.22.2-beta-1653342002000":{"name":"playwright","version":"1.22.2-beta-1653342002000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.2-beta-1653342002000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"38fe4a5102846132f0e110567ef40d97119d097f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.2-beta-1653342002000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-Q8L1neUCWPVHtHZuVsojvJ6ykUiflxmVcyt0vfrwticq7Z1FlaXRTx0M6FnjG2uwfyLaFbm4aRnL++iaUFOhoA==","shasum":"651bfa1bb5dd6cb0d33d268406f5bc7574f85508","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.2-beta-1653342002000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTtSHiPKtwGCh9iO0vCBxYvEgNAI7aH++uYuSnD9cZWAiEApYY1AGm3qI9XVfqdqf5FpT37qbf/o5JdnqrvjyajiZQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii//4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqr8BAAmugIMDLQ49GaO/rkH45Fz2YQvTi7DaNlsZY67moBO4Fe39ju\r\n3kktDM3dBSdWfAbelMkboiggjQSHaqAL+d2st/n4W6ps7OEQZWmUoG6LG4rY\r\nUhxZ+SMW6RpRcbjhhD8B0tUwHo8+bC3hvNQUXMe6sehiJNw8aId3Ax7R7f8Q\r\njnhCuiSBfRZr46qwTz69fiuafsgP24PhBs7t2tjdhbHPAORv2hWH60/qSIuX\r\nfRgLFbwdodjPf8OqEUue0vLvC/jeWOtVA7ijoj/hvDU6ihEH9ySU6N5Q//g2\r\nVruz/C8F67alC5wG9i8aMEaxAQETrl/6t2m9jngQDm05AZ/CRi7WXNwgbVLO\r\n+eNf2ZCpYOW6wZXxHfld/o9ZI2mEcgoUYCErzk9VQItj0OLWrdYlCA1FkNn1\r\nLwSbV51V0rNFbka7nQ8qm2wyuAlyjJycxH6iitVbkjICMwEc92277b+c+cDI\r\nSiVV4CXiMpWLLs8eQ0sOkFEdRWvxyKVSPgjgTd/W1RO9s0k2A2UaFDxLjTeK\r\nELnFvae/oHFwavzsj8tlRDnWQqqiJ9bPdb8eNee9HU/Y5iMkKQ1+7z96iZDX\r\nlDos4eo+QAAtTu7pNXkYn5Zj+ncsIurEJ5uXaMEW93R429pHLnzam/LyR0zr\r\n3gHwaiMpK7PzmYbS51me9m46zTYWMRRyz2o=\r\n=/ms7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.2-beta-1653342002000_1653342200707_0.4388441260806992"},"_hasShrinkwrap":false},"1.23.0-alpha-may-24-2022":{"name":"playwright","version":"1.23.0-alpha-may-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"71a55c74daf4117a1501f65242bc0d66333980e6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-24-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-qRyg8/e4k8WRLCAJnDm6DA76xws27yBtLoRce0IIZsbsM9RuDz3jjSViVMzNNYp9oVkLAwwIpTG/0+/h7MZOLA==","shasum":"0f059986df3fe2e0bc965a0f541a3de679265d77","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-24-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmyYkQrrdcrQsLn8DXF1IkRp5FNd5lW47Xcc65BZVD3QIgSlnIMhv/cC0unZQMfFQr8sC3dgg4WkPWX4e/ii1ABCg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijCcmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZRg//eG9JEYGe5kB8r0ceVzYdO9ChXGau+0AkN6+RIEYI51Urob2t\r\nDff1knUnoqyqxdJIn/pt0imZ+75Y/KMf0IaJHm7yfyidFrLIpWt/p8lnOBWM\r\ncRcvE4SW636lDgV9NfNdfFUjlPVWS0bvELx+SHslt226xonGpPdawuvfo46v\r\niX/T17kB+/Ay5a/HfUg/7Hw/LVCaXI1f0G3hyn9LneMjM3bbZATsCkgEJksh\r\nd02QdZp/OWbtuhxzbuTSszlZPk4BnzRcK+6YOtivoLYviEf8KORwU+cre9Ch\r\nN2eg3bjWaEOk3a0NowbvaL4RCHd2IHY+WSDWIZn0hn6DMxNVPwPjflnmfsrF\r\ndMylfOg3lERqG09FZs59ZMOyoY7BddMa88ohb/l0KUASsU74GgBPD6Z4PTue\r\nw1/f3udIEvnFtU0IuYvzr0q6fjJCNe9iQ3Ure75Ws8S71uL5BXRLPIJ1RBDh\r\n/Sh/MYxDYWWASn9edYSihyw9BTsE+vdRfexnF1/fKZ3GwbrkcD4yhgegT7sw\r\ntMRtrXX7113uUtemQbPdCL3ofHdzNB3JmRTGQFr+epNgYAj9YXAxs3dR7uBI\r\nfIwyS4n/LfiKE17R0V9kseMCWieIiS9j/rNpFfHWV2QiyXTPMoTP6syqYu1t\r\niVxYNFjtlo5F8E/Nt8lilU3TYveb7BzupBM=\r\n=NFj1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-24-2022_1653352230775_0.9787697590229891"},"_hasShrinkwrap":false},"1.22.2-beta-1653417363000":{"name":"playwright","version":"1.22.2-beta-1653417363000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.2-beta-1653417363000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bb1da5ec1efc4804f261f6d1e2ba4bbc2ec33f90","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.2-beta-1653417363000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-fjauRpqeGvxWzvVqft2cf+s++V6od513C6gzQVdr9T51JJQCklqvqwNwOCNmEnP8GdgBw/0cO9aBtmNVJf11Fg==","shasum":"c009740623526db0cf5f520bb6e77d605e73c8df","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.2-beta-1653417363000.tgz","fileCount":9,"unpackedSize":24103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvTv+AlIseSMVZKJxkxnG7Jd9wH+av9ILdvwhsVQCIQAiEArB5Uk7vvjoBpGQOLuhj2atag8/Jz5fudwspCcExVsj4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijSYoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomJQ//aeONgd3p62Ydd0iFax3ZpV/xuVguBiwvV6cXIt11VTD7wFoZ\r\nUax99n4G82uSR5n0HeAn9LXQxp4oiIt2Fo6WNW3uqBY5G6M6RbxHPMryZU+j\r\nzx7K7WoFBVOjasqwQ4zaIxYeNtqBjfLt0+++DJaPoHugxJhmWxXe0izhy4Zy\r\nUiiT4PLMPF1+PxhLUfOpE0OOVDIfeB4vUY2H+HEgVQtj7WLhemDg+QeCWLb7\r\n1auNg255kPQ+fx2WEsNro3xdlMoX4//tQRDUB3sB9DMq6tmHfyjlUaYkpXRs\r\nKX3mdUYpNH5oZFiPkIJ4EV4L4bB04em1DmCM9eREISXgmjyjUHlVHAT1iBXO\r\nPPdtMMBJuv7V35X3uq64VK6gHQdcOAs4F77othxdd4HDwgTU9/FZM1aYiwct\r\nQ/T6rnaFMcUL1CeKlnwn7xs1AO0UV2NSzzmcSUGGoZoXXkLbD8vhjXrAcXAK\r\nAKZeHswuft+vTTHhm5jXJvNnh1y+f68F8V9SlmuY+3ydT3cpy2dgwgs99Gbe\r\n9yPjzxyuMKQ/blGVaCfcUmd1ODhxIPhdcZ9as1fWyIB79LtZwQxGINF2u1qu\r\nDLCVgLMYVLOMFcSSXxtRenUBEy/6Nk+5DmwMjPymk9cwnBMCk8vqt4kOCvGG\r\n9+CDZCfMhpaz7hkFr4Uv/CvoLfNZBOEiilM=\r\n=8V8i\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.2-beta-1653417363000_1653417512476_0.713551640500377"},"_hasShrinkwrap":false},"1.23.0-alpha-may-25-2022":{"name":"playwright","version":"1.23.0-alpha-may-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2fab2c1ca14442d3d822c547757679e13d06d73b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-25-2022","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-jL4Qicn/WmVfcTe2PQWJbCyK1yVGo160Shh+8TPzhH46m3E1KD8VFfwvuRnF/dTyk0UVQCjAS1H/6NIKPfG66Q==","shasum":"3ea64bd8dc577052f862232214da422615a9eb22","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-25-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJ5xT+DYb6gNaGin1zmHxVMuewTWZfQw0bR8u5LcPFewIhAM66aLGRlwrSNYDLPHorD1hvR6uoyDTibzaJowlv0EQ3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijXh/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoADQ//VfASDenXbOeRKqxX1bMyqlVIcsKzWRfWdgypTw98yLHA29c3\r\nH3HDBdlYh9GFpZVTwoRNtPAKOowbJaYrLAgDOQNywH8wO5Q7lOy2Rdt/AMdb\r\npA2w9VhvOWNVSI4vtUga7b6C94QMWICPs2CrpbS4r/cGFbq+iGKCa2r/QBSq\r\nFd6eASwfaGJqpCftdy0PByfqxrpNA44S0Kj8/6KC/vD/NPWtCAJjii+kCeUD\r\nzMVTZfRE5300XxzrfQou/8v/rlUInEK338z7y6en6Ev0AZL6kws9S6+wtaak\r\nfbL9FjYUl5bTHH3301Qefnytx1w+jB+LxkzhwZH4XMFCcYha7sEeXzSQA+JA\r\n6/mQ4ToML1ZFEe2lE3pqm+unzD2mr8cJPJqPAi6f6G5D6Bo/CifgaaTnERkU\r\n6sqwKHv6SkfP9DhB4+cdM4GtTd7v98UCF1i40EjvreNVeFL6/TrcIMAoswBd\r\neG9MYDSElXAnxahY+vu3OwfIZiH2rOtiuch106xKhuHiVuGNa0Qz+Ct01N1z\r\nPR+W+WuRAlPWoUTAVdmI8J/t0MsgFKUBeGe3lsOAfyKlgjWxdLnT7LiWy78S\r\nDKe8dBLSGZNEsFvcMPoznPijRI0d0M8Ji0KSGrYFBt04csNYfyIrdu+igVOJ\r\nnIKzQtdkVcKMCZbvpmBmZahfkM+A4qzN4Ng=\r\n=3nmb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-25-2022_1653438591471_0.8231718332050204"},"_hasShrinkwrap":false},"1.23.0-alpha-1653446608000":{"name":"playwright","version":"1.23.0-alpha-1653446608000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-1653446608000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9440f52b888f2ddeb83e62f473a184b9f7f96435","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-1653446608000","_nodeVersion":"14.19.2","_npmVersion":"8.10.0","dist":{"integrity":"sha512-XTfDXFmfSellLeBxgGYYcfrfWXXrpfbDGBFMhfC4U5ggZRRb0VqiXOG5pjXk6MLs2ReGvigDdspGVBEm8Q02Xw==","shasum":"2d40b80f7bab022794e1ca716d0d3e57aa92f62b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-1653446608000.tgz","fileCount":9,"unpackedSize":24104,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoD0XIh0aqu4LaYS+iz0NhAp9XxoXoCfsNnQ9eXtatmAiBsUwcbicaRFqnhZYzksziXWTZeLB82p8opz0TuqlksRg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijaIZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNGBAAm0/HrreEEQML801x5s7qPcN9obAc/2yKJjTQUC5O7l/gqBDn\r\nIwoMkhqjtJRgL+S6nHz2ojoYG51ZCrlkKk3j597Y2Gxl078kUevmFvruQ4IM\r\nrf3OZ3YSUA8rwEjDM1xzzxCnErnXA/Cs/iAy1X8Rww9qbaoKNx04wrDDwWeQ\r\nk111DQtzsa5/eHJBeTo+lHJH0+UpLMZoi16Clx4144Gv/yhPdnysEXeBmFnB\r\n+0Fbne62KXZl/cJgTZTWPB46FrEjEHHFU+gyksAZnZpSTIDG6OTnRHiqgMOM\r\n+gRO1VlLAH8+eZtJU0yKAjqZVbiC41cEfP1ZD9Vl6lcrcKQnzqjkInHIcl28\r\n52+6w7EvbNusAYli0l3U5iPg7gLBvosIiIJe5dfucLOgzK8tdNG/2VyOkiZb\r\nASGspLz/TXNTlwhCYTFFSrKvKAZ+KeDqKQJVA8phbQxjnj95dFU5iQqrK8zj\r\nSjDgzj5tFIVnz5P3Oe1Gj8gTs08yAekgBeqDONZ+a1igYF8+RvuGaeusnNp8\r\nf/FywCRLaYzCTNx3JSWGFOZ/6/u9mL8K5IHLZwLLUDZv0W5AdZUs1YmiUIdc\r\njzd1KQWUu7ooeERCQfpRzFbUa1hq7r3vyBPvLH1BThUgtivFYPtY3xSYjbJQ\r\nyiO7PUEUq2bI46K4T/VQjryvRMxSoZZgaIY=\r\n=m4DZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-1653446608000_1653449241651_0.4137836100471777"},"_hasShrinkwrap":false},"1.23.0-alpha-may-26-2022":{"name":"playwright","version":"1.23.0-alpha-may-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ea07ff3ae9ebd63b60cb6f2249a3ae5ddd896897","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-26-2022","_nodeVersion":"14.19.2","_npmVersion":"8.11.0","dist":{"integrity":"sha512-gVLDMmhq/RFgjMUgpUCnRXGYGZy8+6cjM2djnttbe8oJTN0zmC/VE6NSbfzNciyuyWtqUO9tGdqjii+oiEU4cw==","shasum":"a840e11b290091552a0642a4f676adb27ccfe432","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-26-2022.tgz","fileCount":9,"unpackedSize":24100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDEqq/HLFpxfbxB9Eb3RCBqmgf08VaSJ2RPuUM7bj40jAiEAsGYPqLQx9/xpN+pv0I3Wm0lo+v2yFf7Nuds7v+175nA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijsmNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNGg/9FLg7XYtP6PWav8/GejflxvbouacoaA+KDGoWO2cOR72AnWNV\r\nkv8MRxWydps8GS7c+BoGUYRQulQTXuuZZEX9Wvn12W/r5bRUFdh91Fagp3gM\r\noPuYRJSGqX/hWEoyo/Kkw9QbrOyDRt6OjJDXXk+PzGmr/1pOrRvfEsQYbUSs\r\n1iv8w27+pO1oeBOVm7MYw3BM2AM48aDJ3ROAvNzZBfvqxW8yxrZ50HDRL5uj\r\nwurZ/KomBrxb/1mx5Di4I9VQUdP5KJJ3MD+FyjiFhMLEs1nbWpiWUfNIKR2j\r\npgzr2DyoPrt1XhD/NLb3z2gf6riPYBHqcqdMOll5CAR/nRGu1cOCGrmnAU5W\r\nGmzKbGYKl0naCFGJmD77M1bPcmpeD4FNCV/a8jm/tZht6fQBOrz3zW9YErkT\r\niD6SVVm3UjM9HWTNa4lK0CLcAr7nEGMP5MvLXWNtH6zj9Dbujux0UPeXm+c9\r\njF7Wyk1ZU+GRoImr1vDqJ5TpzMqI+0dnlm+oSW9fKQkAtyltaQvrI2OzOPmM\r\nmPkp2qrTDvNk9EmbkJCUlqjtm+XwXI+bwFSZKQZZXUHBDuy43zxcQchHUNc9\r\nCUosGvK9F+6vY2bPz3C9IBnJr5SpGJI9UHE12xokIzse5ibLsGGZzfPHwkNo\r\naDkSa4iXaexcut13AV+aCpFgBhhNzr79O14=\r\n=Mh4L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-26-2022_1653524877629_0.3808877081614579"},"_hasShrinkwrap":false},"1.22.2-beta-1653605538000":{"name":"playwright","version":"1.22.2-beta-1653605538000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.22.2-beta-1653605538000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright/)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b9e9f4dfaab3c02229cd545420e7f2732613b837","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.22.2-beta-1653605538000","_nodeVersion":"14.19.2","_npmVersion":"8.11.0","dist":{"integrity":"sha512-Kqc89yKXKD4bTs1qRLI2XMhZ4lDYDWXIGdVbD2wmTKlBg11uUNo886qqmof0h2Fi7d+FLawRE0NOKhzOTK+YeA==","shasum":"78c9c4b6aa864e5cedacf9f50bda41df8bd50f2f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.22.2-beta-1653605538000.tgz","fileCount":9,"unpackedSize":24134,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpzuGJAL6iaNYR5ATsH0kp5C/+Zf6TEK4Obiv9V9dUegIgNJP2qB6WPCp+gVOQWg/pY14Cell14oMpAY+upxunrQI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikAVeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEug/9EbNxDhjiA2E7hAGPfBBL5B5SS+1PItyoXCcHJp3a7YOm7JEU\r\nIx0O0qlB1MMCkkepQ9OLR4Om+/PnZSaJBeRG8HE/9ljmdDAVbmZoR05ArIrM\r\nEJsT4f7J6nbIB4oVLvmwy9M9vutCjw9ybwI6d7Thy79ii+MicDGVMUGVIOTi\r\ni5eMnfg84crkC+B0+5UI5iUa/wTMKOqvrmekY3AX4YtB+wUeJ3fL1WFQ+A0z\r\niGqwWZPnsrHiJjC3u6DuyfHB9CmuyHNRtZDndA9dkhl/5iLEd8USYZhy23m3\r\ncnKGQ7pPDOwAlDOmRUOPIMUeLsAlO7plofsZN6Ja+BSy08nV1qeNbHu99l+i\r\nVEh6PnZ2Beam12GZ8EcYomOqQ+diOiR6NmDOV9OIpErD+3Sv/8O+P+tDeSyJ\r\nE+3Zg3yTV5kAA+SGW+t8KojSsX/s0Ov2D5LW7q6cb0wL3k17K+8evx0Zuwgo\r\n144aGYIfNLuN+slQXWrpqaA+kdVOlDfPlp8Z4lml5XXfp4qnfulavdGeRtLW\r\nWMyQjfP2Fam35EnNosSmz/L/nEAEpszte3eEwCq/VqbP5gHAKeB5UEkfQHyV\r\nwaSeQ/lnOQi6RIIz/kmuW0NYmB0UqQwsZFgSh9DOtt7SY0J0873tuwv3Ohz8\r\nKXAjAhyytR89DCcTftUCF+Dy17AgnlxEK64=\r\n=m3y5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.22.2-beta-1653605538000_1653605726379_0.8608035608141593"},"_hasShrinkwrap":false},"1.23.0-alpha-may-27-2022":{"name":"playwright","version":"1.23.0-alpha-may-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b164d82ba361522a8228ecbc554da6dae9a9ec8c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-27-2022","_nodeVersion":"14.19.2","_npmVersion":"8.11.0","dist":{"integrity":"sha512-e5qHGJLSfJjvQZHRQtuwrwfHRzmBrEI/7dPLitrucMrCGsDBKd9lRF12LTfOfaaESs/Wt4ZgFPVOXh0RGNU2zg==","shasum":"23ab07e30c87081d07ef3c51a5105e38d7f770e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-27-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGvmQ5O/4OW5Z4kWbM1zihykW+idtFxrSFWi1len9qQuAiBPXLKEda/zVGMtHgjZXyGfofLuN2BJiPgrPHNFrOAJ7w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikCMAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTBRAAnHDIfCM3C8M/bZLsHtidoqDfQHVkw0XbfdB00QG2IXL1JmuB\r\nosI9Wa8pMNL2CXE1MazqrCYLOM+O88ab6rupq9Wgg2WID3/QeKfbNV+5ia/6\r\n+vJKhC2Glpp3ZkYOluyMuyd/nWRX4BbOGB3xnhSQIM6df7UzhGIzg3qhRKdc\r\nTeXhJQCmLQgsBkXYn9O8uAd+Lnz7HKovjY21xhCNq5j1WipxkoatD9hxhE4+\r\nE+JS10Lya5VUhrxRxUnrppCsnoZfjjaC56rd4c+ur0xNALX5TEBlBaYc7orz\r\nnHKGJPguNMrmKKSHfcZVnleagYK0vdF4V7dY46TRS/fAmlFkiAnLXp4/PvmN\r\nIJxLPS/wj3Lxaiq/kUDOWxGjOY0ZR/jEpaDo7tbwslsgCHFOh+mtE2dWtxsS\r\nb2zGWFCHSGlT0z7yV+KeNTvYRL8pNf78gjcFRvg3Prjk/ir4zemu/XD+gQgX\r\nspsKeqHIMLVyzs+l7fTRyETszat1iAczY5r9lFuafhBsWUtwCZuSd+dHUgJx\r\n49WOxZA4f0dRUyq7QrcrwvYKf7JI7FFXAzvrD4kWIoekXCBwbXVaWhXflqjY\r\nZiuGCdvhoflXZBu5p9VgDTMhjDgDDH+fKIrSvf/nt5I/VZH1Zpn5V9+xkn/8\r\nqGRbeKJs169RtUjJVwoIBn136M/sTprE57Q=\r\n=kttB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-27-2022_1653613312005_0.8081529335762978"},"_hasShrinkwrap":false},"1.23.0-alpha-may-28-2022":{"name":"playwright","version":"1.23.0-alpha-may-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"abced7223c5fc724615ca9410896fe5874552f08","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-28-2022","_nodeVersion":"14.19.2","_npmVersion":"8.11.0","dist":{"integrity":"sha512-vtPN2TF5jCSwpWwiooUZcJr0tJpLjyWv54DO4wXrLQ/2aYiIhT7g4sMcJfM0quwVt++5nuqGzJa4pdKHRf7yBA==","shasum":"1b60a380b4ca8448137e397ff1c79c4038101448","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-28-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVZ9Uq4BW2OXQn5VRQN8bxC4vNq1QoRzv5qkizBN69aAIhAIlCq7a0Cr6ycEX8cJVMzTxfcnRamvlCy8bt25MmwWM7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikWzNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQBg/+NCc5ZA2FcyvHeogcjy/E63w7uotoOuM5kWkVmJbL9yYS4vIL\r\n3Q978SDc3Ee+WUIBLLepDZ2+An2X/x7Vqj5z7S+cIPGytow+Lh9DVa/oJomm\r\nL3BOTAM50v8Ztlzjsykj7aCaewFkJblmz6bXJ/m30aloHaDc0+WqbDmN8vf9\r\nzlOAfsaJ0HyZhXze1F8QLTe+NeERW5+Hg1eDC/fFT6WDtwM+q0FtClqnBV5j\r\nxf3KwopZvFVex/8br2FlwSqLE31BKkFNnEgxCnOaEOdFbwEQiqFm9LT9hWib\r\nTRTSDtl2k6pIIuMgQgAo9KhJEMyPiChu1fGkm3IwN24su0iU1WAaTSIr/dkz\r\nUv/8gMZS5o68BeXjiTEg9U3xP6yKGmjX1FlDTtb9hlausgZwqLhBGiI9olFO\r\nqH1ix7MtmiQv+2s4SKo+bpIWWu1Hw7/Iew3Fn7zDh+nwEVuM4C/YpphW4ZXW\r\nearnPWhLPM44zn/U3nIm8qpwfJaopZoY4UKgjkf2pONF6btpzXH5Pw+BgyI0\r\n2wlO3rD1RlVMCze0EQJq0u2NtaYsPHVKhDQz2UF92y5gDEDpOjPfbRAqJfkY\r\nxoCRrd1hH7kKsjD8PBT1c1ccItvWmc8lEO8VAFCSiI+Li51fWWgMnvlppbUE\r\n2d4g4u2pTPi7g4QXH4r7Lrq7MXtsVLZVPmA=\r\n=YBCx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-28-2022_1653697740946_0.6336953648331927"},"_hasShrinkwrap":false},"1.23.0-alpha-may-29-2022":{"name":"playwright","version":"1.23.0-alpha-may-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"abced7223c5fc724615ca9410896fe5874552f08","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-29-2022","_nodeVersion":"14.19.2","_npmVersion":"8.11.0","dist":{"integrity":"sha512-9A3spg6FBX87Rs2GHo9cGEMS9Z2SuOZVajLKTy2Tjnl6aQxdEJWPR6XrgUgF8BMXsSFwSQ6GvCV/2nVuCOH64g==","shasum":"b687b39780a7c8b9d32642afd81137295a14a176","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-29-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8QzWVZ39P79X9UAf66vudDbrH7SbglLagsjEfAZoSsAiEAsE0FNhWa2vFOx6JNcgsut8jSZS0me26QIT9sR/yyGBo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikr3gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxXw/8D2m+SRMWxtPDa0conGcSTbWGjCCLYqjfP50ikR8++561P8vB\r\nYWSxBWRaFGw2j0ge9TCWSGtPvIQf1zZA0ZdEmtOLuNub/6dV4gORG74tPHk5\r\n6NuYACE5HWk+SfmZw7Sr7sNjuKQuj1flY6jfKeWFdG+fs/rOwcxyIg4bxaaB\r\nPuANvmYKx4qR+ITz/DViteS2GhUiCbF3SD4d64zPFtPZXnEbheRmF7CmokHH\r\n66yUN6fMnSwLyPkTlJYDeo6+D4d/+3TZlnc3fIh4of949wvQ5DuSvYJYFgDs\r\n82lekxtevfsc0VFwqZNfDllvvqxjTZFl/ETfZD4YKWt64zxWr215a9F7kwlk\r\n64wMGBC3+IAX1twpBlc7WfqChtTlJryvGCsDYdZdL5e7znYHbOPc9gdtpVZp\r\n6NfCZgqLFwgIKI0Lk+GpEWRO6NWkdfUnE8YiREQXAYr6EqZgiSmNfWyLXN4Y\r\niYAgqyD7V/XFmnnp0k1hN57dIlEUNXXsJ8WS7w86VusmEQkdDN4/00hDLLIa\r\nozWuz04s9gXT5R4qFv4DcrqI9tTXQ6E95RKQMrlYg6PNscBWciTNgJ8g6zrz\r\nd68/MNVCvgJEZRfEZtvGyu0uyz+Mf+ViGiC07B6epZc7ZqxUqR1JOkj1Yfsc\r\ntjspWZraEIiX9SwIjA8QhuRxvbBXHdQAQKA=\r\n=QrzB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-29-2022_1653784032612_0.5572778241635084"},"_hasShrinkwrap":false},"1.23.0-alpha-may-30-2022":{"name":"playwright","version":"1.23.0-alpha-may-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-102.0.5005.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->102.0.5005.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9f4716067319e9e4dac882de37b8f3c61940bc89","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-30-2022","_nodeVersion":"14.19.2","_npmVersion":"8.11.0","dist":{"integrity":"sha512-353MZNrjHpbZBE2DvLQSErcNfNAP6sNHYGPhVYAh5oBREntWv0JFnomFCBHJE5oDbPeQUBxg4PAuOa6DvohE5w==","shasum":"e38a5ea5912a204a4c61b0b36cab2d58ded86097","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-30-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnJ0Aup2o7PEfusd5J9kR4wLYFw9ROi4FWw/MNxFSbqgIgIOcZDr0/YVGy/r4oTauDvj1zfS4lY3qgtL3ndk6RS/Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilBCwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJ8BAAnk3hrzhwP5cz3N0RIlraB1U+Bo1O4ZjLQkvQq0EBsdpmjHsf\r\nmbZUmAemJAUp+J+fgOlRJDfOlb5GdwJrVAdvyOIEQK/gkA4bvY7dzMgZBAfL\r\nhymGW4fYm3Lj7YfUCuTIEfWbQvtdkXiSNL3md3sf9W97iI9s/j5e97YgqrBU\r\nERnlvi1uATNaBuddXBP/QQM8C6tr9eNTE1DLwjIAz8tHq4JqQ7eN3Nsvl83g\r\nymC3N/B/hd46xawh1zEPzvpwKRoAHgdGPL0vGe6qQ7gu4ZRL29C4jsxdNKx/\r\ndYCRaM+NRBkxg8n7bzznYyTjQJABPY9PFeiU+BFOd8NFAIGSDz7/jXsEe3BT\r\nlOysQCnH8Z8kMmrRUAfU0HYBmCMcEcTdDZSt3c2t2TuDrc/f99wYACra92fE\r\nslHIdxxFaBwaGmz6pOYHaArJ5KEYky5d95cIyyBX9nldDQjPZdiKeTPeToCU\r\nFF4O+BFzNG2nzMs1fee0z8UDFZjtjOteNtS1m0mftXMvYVac3caeIxk2uUKf\r\nvdFFcIsUJqXTCitbK06HWegtCzgDGyhkgGJIos7BVrVok0RjZIAyrYs066P7\r\n7kseA4X78LGzzjrlKurHgzAr3QGW+5zCiDMpANCs+Os8LWJR3h0YL/gL6u1o\r\ny1svwCZuA9jcx9/iY0T564s+5yHlMEXbWGA=\r\n=iVWj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-30-2022_1653870768759_0.42610086531118574"},"_hasShrinkwrap":false},"1.23.0-alpha-may-31-2022":{"name":"playwright","version":"1.23.0-alpha-may-31-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-may-31-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f087e39c017b63ab3697ed78e29f3b6990cbd8b7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-may-31-2022","_nodeVersion":"14.19.2","_npmVersion":"8.11.0","dist":{"integrity":"sha512-9dDvx3aDIXaF4yICWpC60u8SP3EkudAIua42OQWgZsgaCZYdzAHcF/+0t5xe66HY4upsTquL0s9WjOuuhTat6A==","shasum":"b53aac625023778e2ddfa3e2153f4eaa672f9b29","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-may-31-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFGmU4EQ7OwYeaIAmCvJSa2KX8iT96HC04RHE/ux05qKAiEAmgDBJLTGiPRnfc+grtJOKvHVQ5z83VkNWx/oZlx6mSQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilWD8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/Ag/+MI/cCXTWL2j8r4B96ycAMn9q7K3zW7IxxU4cBS2lS95o/TgJ\r\n+UzdXRq5EuClsVY2ZUxafcXeC/1znvp+LvtLCMJEW2KJknOkJKCPSy4uvbpe\r\nxAUlL9XGiIoi0w+BQlG03lXhAtmeABbqpB0SBiUUFM0WfChZEa5jjibCKSkB\r\njzYZyjA4ktoHHeq4+y/64diOpvBzEJfyb1V3Xp9tbTsbWGzDsR39709+ivwP\r\n+QraHXU+u4uCdL5ETnA9FQxiOE3z2MpLOn304ybBWIz0VKLL+pKyN1hxhYvs\r\nj2JGfsMrzpOivWogLTEF3ptQ/UEOj9F/B8G90UoEsE24Z6L/z6TrT2YEvq8O\r\nEZxCkmYIR2bAvGbP5WHiVKCChSJWRYFHfOr3cuwKpzeA60aerXKC0+vqA2Nf\r\nEX/LqK2btugiJpo12yCph3rF8qFhgpa5hoX3D+eQrtyhZo3/MRH3sVzOldRf\r\n37wl+yupBoyQCIfoX1QL9IQu7V3h2S4qnxT7WnU7g5HU6kxgCVJENi9x06k+\r\nA/KBkWIPBPZ3dHevGRfjbfOHwhw+V1aVkHDvSoenE8GZT8YfgLnDknxbuhoC\r\nWKuGv2n5t8SM7S+WNqqA5boguct9f7bcJmXtCA1W67vg9jibsRwSoCMLPogk\r\nfvWSH2uvAmHYAimtWLi2B5pA4FU2x81JvYM=\r\n=5abb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-may-31-2022_1653956860247_0.8116736091079284"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-1-2022":{"name":"playwright","version":"1.23.0-alpha-jun-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-99.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->99.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"734c8b601c2650f18a204424d5f5d7a9f43f3912","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-1-2022","_nodeVersion":"14.19.2","_npmVersion":"8.11.0","dist":{"integrity":"sha512-ysMdwadGi+snDeTfiFcUeQH80xINWQ0+Xd29ZI5rtNUS99AEygD+WFRO9ZKMgh/VloLVlJdJ8t6H7t8fpAgxcw==","shasum":"9bc0d35f2032633a582c0a7e25d2c89dd2cdeda1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-1-2022.tgz","fileCount":9,"unpackedSize":24129,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6NkYEDDQi3npks57fcmis1VK0V3PogKHU9LavFNB0qAiEAqdI8O8jvLN+UKYSZyH39Cnbd8pxAxuymTuWvBnpZQ8c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilrMJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/Sw/+KfEna4cn/0hF4UYkckHd3rj9QH9VsdoUkxavnMecOcUJdaHh\r\np1xOzuMd6xAVkcRNNuk3eXOc9BhoYnpKJ0Qz/dp8vWiwiocXdg2Z90CZJ+bN\r\nL1BQWkonlamEmQ/NsGX3fZLB0/hmsIYHDH/nXLWb4sZkhCnpZXWCOa6JyXnA\r\ngkOV0gXdvONsppvQqpmoXYOg3wX+0utnViAdoWf8Z05qM9ZCMd7HBRMUP5Wm\r\n9oIwa1a6AVkpi5+pDCtpuvGI/Fw8l5IgHk2Fn/XBmFaHb148miCiu/J9ioQB\r\nM9G+kLHRH2+nwQPwa5rTf1vNnllbTmERKydUK7QNwwDh8mNKBkTkb6CteJwC\r\n05lpFkytXGM5k+WpgK6bDd5hBbX24k0FdjNUwFcTgudaCiSm4Pt8womC5n1g\r\ne2FCm6rsSW2YRp0jqdqNznXfFJocLzonUpLxOJGI7qC9XXwecOa4huSXSd16\r\n9GFMKOl+j8l7+PEP/tZ7eRFfq9jYOMqfjG68G5DPG4AalTQmQmvsbTpTv9Dr\r\nSIf4cRbyq3EdU4gMqipVq1j7YWRUeP4lHEvI1cAGnjAk9G0jEdR/Rq/ns6TB\r\nGCGR27nTwWDkg2uMbWwBY7O1RsXl1YIQO3d0MDUO/7QcueJtAIdJrB3CN4yC\r\n/PxxV1a/hv9gFZGYkEFCpFbILwgmwWmlfoU=\r\n=FBvO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-1-2022_1654043401599_0.19747405924795158"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-2-2022":{"name":"playwright","version":"1.23.0-alpha-jun-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e912b6897d496e5dedc9ce15e2c8e89ead01298f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-2-2022","_nodeVersion":"14.19.2","_npmVersion":"8.12.0","dist":{"integrity":"sha512-MC9lm8GENlMdf1TK+APGUimvv4tV2NBX1yEvNMdkQdhtrXSQLPLm7hcNKZ9znm9ti7I9p5KN49sExGjRqNi0Iw==","shasum":"13f6709b9d7928bf0a394842db704e12946aa119","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-2-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH72pRc1CX5kcfEC/pzEDQMNcXBK0oughqiGb52bUO+SAiEA1P0FhA+JAPzdBIQwd+ro489i73Nk3WjtneTkP2vBTw0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimAVOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/Hw//bn3V/8U87pApJcYQm1YHk95ztS3iGGp2h3FHTGaxCGOEW0CT\r\n8dCi4tXh5uSL0QXNcnD06jzyJOf7tZR+8XTzcKLa33dr/KvKr6+W1z/7j5A5\r\nwo/0IlSZ93VfzIPqQtyJNDaRZ8g6ZTZY4AOL1h3L4DYcaOycAu1yvNWaWQEL\r\nc+yjmwgPRv/JDjjOf8nOoDrgg4r8QH2VCHxxCMz9BXYYB6XVU4ElSDzJ+4uf\r\nHeQMB0hjXEq6fRIvy7Qw1Q1PDP2DDPaw+eG52ODUHF7S+fcSuylQZKpbFjTL\r\np0plLusCF5xjFq9LBJuZ+3lZ3SGOV+VGjxxW6BEckUbB3K8rstwL8mrVxUAN\r\n/Qn5mff8cRWgKNtjOfrQ1+zgWzeJoV1KFIdRTx50Y79JjK9oHUCzrv+V+SBE\r\nk5qVy7QaE1p2Oq4BducLqamNkhpATmpFx3HBdbD131fuiYA4L/pUYKYewjDA\r\nHH04DLwR4SCf+s0UxsjjolTmLgJOo843sPFhFaQvglOOMdVIFp59APwKeuhZ\r\nMQ9f9+4Mawq8Cj5zjXw+jZVIi07993qZYuxC3CobbZ7WkkUA908Fj7QN2b3/\r\n7HNwHDLc+CZRdPmDv7kZd3P6f1mEaILct6pSLIbdtfpxZzckSgqVv4DMS6E1\r\nZyp4vDPjZvzqOonCbLMIG8MDxU8E4iadc/U=\r\n=xACQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-2-2022_1654129997912_0.5002180191862795"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-3-2022":{"name":"playwright","version":"1.23.0-alpha-jun-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"94a0d669b603bbfa1de22f5ce2f7479579fb6cfd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-3-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-rFCH385/v9zbExPDTY1DJncVJ82EJZtpv7kAbnkrQxGUwgcoq7PtAIO9obJboXTiCFl2Pxh7OET47g1MGOhNiQ==","shasum":"1636e699a751921176da6bb1ec322114319ebcad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-3-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC0nks9nF9eNy+cXaItFAUQTRMU08O3sXrDWtuGeXcl4AiB3bNmBpbyEfOaYrzScBvI2+rqh3DEo55K+0s7NkHpD6g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimVRgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbeA/+OquRttzoovzpeGrB20UlskyRcFa9DrSvfkRg0aLb6xnYPzyy\r\nE72u8m0Jwc03c5f+tiR49E/fBCfMzDoOVH0/rnfDzJxwUkfPWhM6OYulqSZN\r\nvWiNN3qMXC6OkpK9NYytb8rCGF5qigSUDGkwEBys4IFFbb/Y6FOdlzwvfCWc\r\nGNg+T7I87Mx65H3F3DwVTo09is7O9Za6xCX+HBZuFek2y30bTHLgLG6b029k\r\nphU3PHD02X/8qHwr0og6rwlEbykUycTfozpTxM1Bsnn4jzvcdMcy9q5AASqh\r\naKI5/N4yRWGiwm9fqmLI6XFy/3tBBpSwWGW2xnSpdniwrqbG8q1MAqcbx9f5\r\n0oR9J9oC87aTcdtgcCt5MensppakqvaK05pRIfJmEc29a0FFJwM+l4kZiM9O\r\nHPxWK0ig/wX0nCXitqV8VvPH/c4S4lxm6kaJLlWQ2eHchHh996BSkE44xOdx\r\nxAJKdoFMoccnYWqJdRdTJkAVaY10U5Vi+pwS3y6tYpG2wwpGqMvWzRj/6zTJ\r\nV4DE5r5JNBxZj6WZMwPeaaBYMRsQcELTYstXx+QPta8wfInHChxKnWaKiGlm\r\nLoVqsmPTiZ/3B1JPKLA8VzJCqK38dUngx/RL73ixyg4gQmGl916sR9iakADn\r\na2fGUwZemPiSDmi3E/TnXyU9pU2C/4hzrvc=\r\n=dGOB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-3-2022_1654215776789_0.6736670565833176"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-4-2022":{"name":"playwright","version":"1.23.0-alpha-jun-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c7eabf659bab55ff9de2e7fe6e0602d5c72d623b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-4-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-F4Bw76HeIC4Mm8ZXEnJWGotkX9AyEs5/4BOrP4FLcYy+Q9AoomOnmt86jaKWxpHmgH03RfroK6SpiffukgA+mQ==","shasum":"fb6238ef071168526ad5eb8405a50599af4cf0ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-4-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDri75DOV1skpBaiyJBS31JOd+aM445yagBERCjUmnC0AIhAMJDFOfr4Cb77fmpHODWo1zA7/6LisXiq2B6e7U4uYHn"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimqcqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0Tw/+IeN5NfQ5GG8zVTRFtgH2JSacbSZrcY20I2NijU6YuavlwBPc\r\nKMesT8f4jzDcoJygJDbe26Uj3YQgrSUWQfsjDUXl8SD2fYkrO11Rzgjo80Ui\r\nJiKEHn1A6P1tAkyLLt5ycyBgpq14vk7n0QHEmbIpjXZpvM+rHqJQ7uvOmDk9\r\nzTxE+g3hJbCeCzXbt9KnOBMEp2BP4K0a795SSUS3xaboe0zhXitGj6iFHuRR\r\n4gAAFZxPISIlj1EBG+LmqHdKvF0sfkUeSu2aYuX+K6W2lPzIA0PoOZdBl3wN\r\nIyJy7uMRgI7Zs6dmT+LvIw4se9KKklFzasiKxlMJudbKmhfrFifNPwhMp8gJ\r\nCm0TuthOe50U3ADyqtKpggzrbDqUwRjQcO/0QETdYSAPViX/EkwPRlahI7CR\r\n59aBIAYW8LDtR0eoqK3YJkFAUyB4mTNOUfm8uAvo7p3TRMM422IOWW6WX7jD\r\nR/oqnrnvCTS7uestRtMeXBs9pB+MiGPoTAdJkJpGRPZhUyqZ9YEywoIfCi80\r\nW/rD4pJxpqhp0Y81Vv/2ynCdMvQ+/JwK9dMKRZJ+lhp+o3/K0j2zBDBIaw9t\r\naVmdkJMDdya4qRNCQu45DBMUL+jKUKNNVxDL7/oCpg80mnYh7j+/ZRLJtzuU\r\nClIwpH9lrYztevSbiAwGNjTxXk1RYaN76Og=\r\n=Rect\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-4-2022_1654302506440_0.7085406913487029"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-5-2022":{"name":"playwright","version":"1.23.0-alpha-jun-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2d5572abd8a0f2acec65adfce08dcc2e0f7f70ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-5-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-0/dcmowe9phS4dakNwjxYPKcoUuOa8qkM/q6jOSAWtO9Ysg6/prlaNfhJCM2uS/Ccum8ltotpOCIyZ0g2vHiGg==","shasum":"ba497eaf891380502b684a1bca7cf9df4579f220","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-5-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpHSU5yC8yTQqIrKmCQ6X0GkVYPEnkS+cQ4jo3JdIw3AiAkqcLCimi15K12PV7q4wyZhzcFxbCkumyR3jZMZ+rXVA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJim/mIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrVQ/+KYbfcT9PSYP0fmwKZXWOlIhNFbv6LVgZ5g8hzpb1UyquNIaA\r\nqc5ktekZCsnbJ/C9u1TfKvOBDHu3nbF5e1w5W0tv/wYjzSpAutPbbOf15Mxr\r\njPlI6+KTdHUNex0IX89mu7NzKDgFJx/XmB8V78tUzw5hA3JerB0sVTvPizKy\r\nmO8VOg6RWUiXMVvCPf/ck0l/iO8TM/mgkWtk/nMYTWCXhx0KIp0o6qCsiNQX\r\neb0vwJDqBu7M/5OH6jwko8ZY/p4dDYui1C508UNcXAB0eMReUOaJ/jENZk6H\r\nfpOhZCYs80wmpuaS4l4VDLmOkha0ee0zH6q0hBqXDFcAzI+DOVfk4hebv40A\r\nB+PauIjX+kSXRBRlP7kr/ZQu9r+yd3dHJuCWXIui3Nyre21z0a9ZTL3iJj9K\r\nLZKVoQ/H6x34aetUS9JPdYcP6ggt+1bieXDg51DUObqcsZv1ne11a/LyRJuH\r\nM7SGPizoxtAcstmEBOyaUrbcRqbZuLOp57kYLN1xdKU5zXCBgFG7y7EiNhd8\r\nNJE3HBmOdPduSv89Xm4eDxNjD+nZLjampeJXOlV7TQngYQyOsjWBW2fUCGC7\r\ntweZ+g1erL6KcD37EEIuULfI9NfVkDjfapMQKrz+owCTOIxjDCEXWlmdPR95\r\nF4ICyG4+fAUEw1u4GwFddSFbyiwSf+K/LmU=\r\n=cxja\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-5-2022_1654389128128_0.5638215607795851"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-6-2022":{"name":"playwright","version":"1.23.0-alpha-jun-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2d5572abd8a0f2acec65adfce08dcc2e0f7f70ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-6-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-Ur1PZyhe6xFTaOlRLJZe9DQO53wT4onWkmGG7al0OkHyD053/V/33BuPrcLZCwebhQ+In/gYoOSXjJOFdDxOxA==","shasum":"7c686432e9a0d355422574cfe7b1bda3ccfcf3c9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-6-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaAvTFMvA//Sz3FSpLQITlakYDaZnNexATzO12hBdN6AiBHlgIq/94LOKIos4T+k8ux4cnN7RSmjJQ7z3w4a3C3rg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinUmaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq34A//fNdmCEDOgoydsp6Aloj9rUtcIP5pOvwN0Qx6QY7EAEi/cQEM\r\nSkbLSs0wGUXH7mACQREVNmB+5VClMqlPDO2tgxhdhjjjyaZsno/arxQVFtsU\r\nusL5A0gemTCbxFKZuCvo43OX28jqaQvkR96hzz3QrBNFwc2/HJmjmEZ6tuQV\r\n+hqtlKiFyt0ikPFJalA+0Y4q2Tpul72+ZXbZ1y9XGedPbOaEOtOxnvjAoqB9\r\nQKxKRMGfklIXKWqBOfvd8YCY79Zee3+VMWkFIArEHDhSXcvUlxUZtSw2l6rM\r\nVHzNrMMc6sGG2pdWBsTKaQEsSmhpCRjdq5IVN8Zr4qHcIJEAFta8NMkcxm4s\r\naOLB/fXrbdcDoJhe6yvpJMm7XFEK9ts4NLYgd7WNiFBGqNfx+0xYMDfzE4wS\r\nZFcBn5VgrWz4qYWPGoLvJRacPVdwskWR9L3OS1K1Zri4IJf8YCkJFexnE0Bm\r\npje4rTcB4yrFNJtK9CBoDe2LiHKAM+tvDPqbgi+m+sDg5Z6MuXNE4NE4fN4A\r\nyER3VCXFpnrLDkAEFIhoougV2W9daJR6ax8vr7Cf0SE3sdFGxJQPA1YjgXc5\r\nZM1rBZKwkYcvITjpr5ozwopTmJBg2C/T0sKQhgxsZQFmYOKkJp/FtzXDr6UD\r\nUGoMuluyck7AfCkoJRizcxOSpm4e6WGjjlE=\r\n=a1Dy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-6-2022_1654475162517_0.5299123077673455"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-7-2022":{"name":"playwright","version":"1.23.0-alpha-jun-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e3a590ed8065bb5ac0b4ff18c9433915b0ac72c3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-7-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-9dnd2nOvKbxvgcTskft1Ej99JmvCNS6pFJGrSFZsnloAYQChcTlUtF7+M+J/i7rSZLkVjlHanmRRGew7pY11Sw==","shasum":"99d5a4a61e6e04c6ec22617c6a63effcf235d067","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-7-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvxg2xjpdfe/pUyf48OIkxKwCh36muCmQ1S+SGWoMZFQIgD1l5iQ2gjJHaSN6FBW7TOGxuzmOltw+L4O+mNB7Vpz8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinpt2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmor2hAAnkZki7zkz3JoLXVZ+wPLGNOa6TdLXcnCk5zy7h4ll/cREog/\r\nGqdLjKclPctUTDfkhqiznCd6bLXw9/WzYnkz3UilcrdPxoxReZNYxx8UNyA5\r\npiSLBxdJwv2NU56/jtzipP0K0YtPFz2uf5/LxN+e2hFnv6e8+BS+ais0yhg6\r\n71DqG/dzjqPtO5oYlogqJGmFPWswZub34mH1Jsk6Q4PtehbqifwAaH5bCSsY\r\n/6V2PSwdp+Fhf4S4O9T8MgFl9mfAFUJv0lzQupHMVQlyPxUsJ1EgxyMb4Vxj\r\nMx5EJIRXDuhZ3kxtVkNq+qICCVdBLAZfQYyDviQFoSJtH6rZRHFpELj48PqA\r\nc9vIn8YuJMcHFrsKwX46DYOB1/e4a/sRq+9daX8x5EtDJFHgtjPN/SR0jpdL\r\nPJJR39NW1cwHgTEEUD1m8O2KMXsWmAouvxuVMbSaqfp5jXeVEzjeVWCFvIno\r\ncisP8FahFZ5tgxcrhMdE8YqzV3me98dO+pWK0YdBtVPRLQMeA999JeUqrNW4\r\naPdFbMDSIURegmyT+d5mX8Nl/KYi0wrZjlAPbY6ApLf37ojv0tPwzK142N7z\r\nrCj0tNurcN0nD2BWNQ+UrASKFRWyX+RLQQC8hjDWPaPkKXXniKLabEeLh7Sa\r\ncUn0LWN5DTiEsZqEo5FwpBBU7vidwTfT5nY=\r\n=guDp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-7-2022_1654561653756_0.9996299017734018"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-8-2022":{"name":"playwright","version":"1.23.0-alpha-jun-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b2d0fae3b15f1ac637e356559f9c43d4b57736a7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-8-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-ub19bj5JN9BR21cS7BYnfxpzipSIYp5EjHgwVjnitIa190nEB1Eijebw4RNhGxMz9ouYncGfuAg/fqnhIMKpyA==","shasum":"4d4428836bfe1f391b37b36f200f83c64204f6c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-8-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKXZTpnk+mmXIx9QCvYG4GUka9LI5CuI3eF3sfU0iHxAiEAkHYLR1Mlhbg3CDoiVg7fF5imUs2R4LLvooRtpkfeaTw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJin+yiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWJA/+OlcnLSG+ZV0jrlgBXfRtwiK3bnvjOicmz/J/cL6WnOhcLQNj\r\nwXeFkTYV4kxeDUa2X8F43o0MwRC31m+yOhQSzOOF4Q9U88c7GY4Vvz0qMIG5\r\noHIzofT98HBmaXGl9EZoSFmFhVRrTl4VlKXLFavbzqBpbTKqRc99y/xvQxbb\r\nJn5Hg6X06K+UJWg1MCMCKP2yb3NdqHHybUBIxZcQZBPn0tIiCObDZLYxj98G\r\nG4gD5z3T/2tRQPhWYogs3eybDR7HhJ74FV0RO0gbUosBLZL5Qb3W8/nOshw/\r\ntt6BT+kj2Ual66pu6X9xhqiRbfy2JI4+LIuTj3nST1qqR2xG4ruv6qk0kKB3\r\nX0TL7/wlK7VphRu9Cly5GGirxURFwoWu61DcV8AsUCjLbeyzR5TknHxn8hMg\r\n+Fx10qeRfd0GS1vSK0RRRQMCMoYf4Nrpft4a3HFv9Qsl6XDxCZhUKXr+H6Jf\r\naIiicwAnfonkGTHKZ1if+ASGCa0XRr6dF2zDq2P+9jvDtJTo5LzHaqW5z1qW\r\nsTaykx3C6ZWYPQFBujljlDz4lycySIVTSEGnMEGxgXZ3fDxj09bwgSpmBlYn\r\ngdnmbs3P36Mi1ZRZL+Uttk/7CXw1v9aLj9At+8GAeGO0QzQNSIwpp+HRPUin\r\noQGMevuDIF69DA5nhpKMpJhh2dqMo6DtJ/c=\r\n=Ow6k\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-8-2022_1654647970215_0.028025769061402972"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-9-2022":{"name":"playwright","version":"1.23.0-alpha-jun-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"de22c9341eeef4904c4af3b2b819a3e167ce8a55","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-9-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-DbYJa3iufsV4nJCzFXCtEwlAfK2yfTFfjKsr3ZzkZJTAYLUKqyOA/rlmaHQwjaOkQqx48NWA0NWcRx4bdy9mXg==","shasum":"63ecc2be66f1013e5aed03bbc1168abfe7ee5fd8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-9-2022.tgz","fileCount":9,"unpackedSize":24131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/acGyJ22xdEYCGjC5Iw4rPrclU6OFRguJnh4dAwgFkAIhAL/lQYKZO699Rbki6efmILWhhd6L9b6/4rg/jpu4RT3B"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioT7LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCng/9GvLJLyYx3ZOhonPkh0l2tJ1JVj+he/Qftaa64FwfSQsuMnaa\r\ntxpeYmtdXtXBmHB1A70U5zVViHjcasJ4Ku0RjHAT3SzeoIUY4mHmhau2Lso6\r\ncOVMUXYQRvAvhsLXBZUVsHNIDiNTh0AjWBLhjjsFrSGdiC6FmUjMDROjHmvJ\r\nmfaJGzvrgzSHSjOGZT5k4s9GZVVBQ2StKJ5n4sFOn7vNPbZjdFr3UaJBkCLk\r\nfV6tZaOcAXIEtdhurqoyg7Lh2x1oEi0RDn38VcEYpKdakSL2l3aZ+UnvwLWn\r\nK5lK1oFHR+vw978OpZsxAVo1MtqsJCGST0mnwud1MMaLV74qKmyWQ30KT3qm\r\ngHvB0ZLFUKDQsjdJXF5gLm1yFYBchBdA/DHwJcCJCs0AgkAjOZKkb/1ThzVd\r\nzovSA4jDCDc6SWMAfuu7Yohrb5KO+1ghydNJY+u6lThwaHp+wMg2Smlww/JM\r\n4UCJMBHcgHigiA1Yl25gZZZFQcKf/A8Zd6g7YvMozjjtv2sv+xE+NWqkZLWe\r\nM0qikkm77FgElFky9vn7NhfCOhDQhb3ij8hgylJqVE7mza4EFIKblQ7tDmTl\r\nYRYN4ARtLhk3Msw3mN8O+0/xFSkL2Sdzks6kgcVJuA8q16E2ghTLCeMr4K9Z\r\nm0txgCU73PBjJShMdk/W5s5O8iF+52tvXis=\r\n=3/Qv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-9-2022_1654734538852_0.2639058686534739"},"_hasShrinkwrap":false},"1.23.0-alpha-1654784525000":{"name":"playwright","version":"1.23.0-alpha-1654784525000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-1654784525000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b1aa2959237f5e6b5194569496a9903bd8af4c39","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-1654784525000","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-Z2W3FH8VEFNN6EWS0cRsnccnV/pYFshPNdehQVdspbEcpPLY44AKdNNxdnHFc9vQ/W45ACF1/Rr/u6FSy2jCBQ==","shasum":"aa188f2cdf3b867efdb7ca6e3baaf670c2f6d679","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-1654784525000.tgz","fileCount":9,"unpackedSize":24137,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN5SUseO4UDTBHPBNTTCV3xhuoj+SRNpX2MAg9fFsGgwIgRkN2RXAKof6CML3gzYIItSmYoCC1w8QuPOAJU6RxLRg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiogimACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjNw/+Lq8zZiz+MGL0G/QFuEHyoLj8bHAAzqDmCxVP03Vq+N5kFzqT\r\n9oZBbamao3NuCiFqv26y/Bhv16LY374zqR/5EjXjCGc1f8arQuvG12/6vpe0\r\nT2ssKp+W5zwSG5PdRy6PdddT79Arl3qSgpxRDumLoaC9xqrecp6AcIN8NyzR\r\nEgFKd14gyPsL/uK737clGKZZ4eMNrKIziVLSc+dBbLZ9XSkxjCKGReOGZ165\r\nNwTEX+T3GQbliZVvsm3Sy8CBtjU5grBz0HwghuK2a2b61GkVZnwtlKD61GWL\r\n7vG9WWVqNamhD8b0ogsSFjvcav10V1SpaZsGb9RwJjOHJSJE0zWMCxVrWvDz\r\nb1kgYXywKfnp6Gvv6BFdcDQ31kud3GMqyzAqp5s4Z//LHVpgtf4I+/lkBmG2\r\nidc8IxgRtHYUvReMAot2Vki5HSy1ql49sBBkmTwRwg0q0C1x4gXXUKiOEzV+\r\nsZBjb85Cg3X5HhBWD1afhBkQmY+r+9XlRVsT9E1sCsl/GdIC9evguTXia2me\r\npgDYxEYh9LE5lPPLoB3HDKcQG5hyl9aWCOnRW4Ej/As+0t6kaWzOZRzISFIL\r\nKe50TK2S63ukz+X0usLJdNpizRIE6qh9L/7G55JkhVawm8X44k5t/rb00bIQ\r\nQGNIuzfbQm4D7YRyBF2LaHETCQRVNP2nsIU=\r\n=wRwD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-1654784525000_1654786214781_0.05543588679246647"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-10-2022":{"name":"playwright","version":"1.23.0-alpha-jun-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a2e8c17fbf8f9109c910cfbfcf2092bb35f0d867","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-10-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-xd2OEhINi6SHtLqQgs6sBVDwAdQ0xTvqNoVhPGL4J/g1Fq8404NopdJ+bzlU6qmqoWZdntFpOW+B7u5158o4dQ==","shasum":"3e6e0c7b5d8a81bcc4f71f2bc5789a71dc3e190a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-10-2022.tgz","fileCount":9,"unpackedSize":24133,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWeZOorCBd5ofQyUFut8d4iPrZTASgncjv3pon3kegsAIgcKWck5k58Q1nphoq4oWbOGN0e0+iwEnO1lK6TkBDjiw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiopDAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIGw//cxJLcyKwCWHgyeQpqWGoWTys5HnSKqmZhjLFfBGTxfQococq\r\nlwmFgCSasCDS4v/2h40ZSFsx+SA5KyOhzW6+xMJfhSEQlpS6BCKWHpNNrh78\r\nodAiSVBEUvy55mVtTTwT2R4KjKnb36/xUZ1xFHnkOIvrqJ7iQgjoK8JpM2Y6\r\n+UOrHy2KuDKYHrmlEA044/PjUrSM5gLqJMqRKJavV1BArcyfkqpKaZ8mEntp\r\nOBFkDifbZFkiyf2CpopWYaGBYPXozTTB6CH6QI1t1WrpXUlOM98rA24VtdD4\r\nheZhZc/3Ck1Se3kPLT3Dm3iHtm8FYa/+0k4RkTU3ZxdE+vTI0i13yPzg2s9J\r\n0t6u+xMFDAu5tX/hinX7YopwogZY2ddgNSmORnzlg+MktD5/QIZjcoIV3tR0\r\nKd32JkOLSuO3U8RRpM1UzxcM95M8YLb1l5qb7CKW41rq69X7pgGbzddeDv6T\r\n9QbgpVPjl8dqdFJSLEamLayPQkRRi2GfDCjE7H0bnsj8RhITVP4hIfwwHnsu\r\nTmaAtzDGRX0z4H9vO9T5jqlpxDumLKmidqvzw6hWeVL0lSQP99pzw2ZF1oM4\r\n2DD4+g1gnYvFXFowbdRanp4rfzzg9qb4JD/cFAJGjQ72Ne0PAZxDirKcidwB\r\nGuMiXmCJCUEx0ikfzobtT7dgtE1++X5gSJA=\r\n=u1bq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-10-2022_1654821055956_0.658912957055543"},"_hasShrinkwrap":false},"1.23.0-alpha-1654905181000":{"name":"playwright","version":"1.23.0-alpha-1654905181000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-1654905181000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5617e5c6139c05cf60ab7748b7ba135a1189b3a4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-1654905181000","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-RhhMsFY3aoadp0nzw4jgNXERhcN59ck1UqxEOl8VwiGTn+77rNvdX+1JZHXl5DGSXdg8Id8sHcrDXLeEukLkUA==","shasum":"ed417c278ea86e8b4d4cae8d7df928cb0ccc3b11","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-1654905181000.tgz","fileCount":9,"unpackedSize":24137,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAF2jGKJqo/3CjWA2xdMg5PAC/caciyhckTamBCydFAgIhANJEL+317AVnPNJsUqwjdDcu40vNw2gB6JQ5FK5LVged"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJio9njACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpk3g/+KlWRroNiu32pW/SxzO0WxmaNzpTGpYH27lgIn/8ndhYXIy7c\r\nnXKAGeAw2NSCR45qz+4a3VfR02VE8g+I28mg1b2gjp5i590Y928U+iV5DZp2\r\nKN1GZy6DYenG7pRakoR/tF3I5NbF5yAs6nUXYc5UUBTq5a7ipAYDMWsjTxIK\r\n9J6LYd3HscyM91M81XwZh1zAn6oDcGwcyRDAqNmD1Do+Cjp3eCULrbs13rGS\r\nVh2/cZUj9hlVHv69tIK8oA/BIQAkzGc8yL8yTrsMBtxPJ+4sWz/4p7LjruJK\r\nZlHn6W2XCdFrVHUQh6LWvkDwakjxQQ1Lix/n6ifUmBC2aQSZXS9ZdtFlcuEU\r\nCk9mhgeHid4MEczT5tjfAfXj57JMiecCfMsZ9h13M1I8zfEN2OTf4zE6xspz\r\n4M3b/sbvjesMD8dkL+RzYF4/6XSvcQWrCBb/lfoS7lZo/7D+a2WNb5OkW2gk\r\nTYamSt9OehD1gYl+HRq1o604q+HrBAkYPGiQxLA0EajBM4sjHzX7l1Qqzf3m\r\n1QKHRsiqWUVm5lYnrRHcJExygi2ozgLwGza1kYMthoGRkiW43Et7LCdhJSAo\r\nqJVwUKv9C5Ke+7i0GiDoraqOFjxLXQJnfsZnjogZAyLoNlkkrSvH+10D291T\r\nIxQzwkMTGcsub17RV7sV4lgixWozQcp+avs=\r\n=OBEG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-1654905181000_1654905315712_0.28582152867444544"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-11-2022":{"name":"playwright","version":"1.23.0-alpha-jun-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5617e5c6139c05cf60ab7748b7ba135a1189b3a4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-11-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-Mnq+dBqjzQOkbPGBLczRlAQiRcLuQyys7dnWQat0UHX8JjGRrtLOyD88VmtDDpzjPDONjPBcyJc0/R+dzeoXRw==","shasum":"386dee0f64f5d9ac2806556145d3ab84123f2032","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-11-2022.tgz","fileCount":9,"unpackedSize":24133,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGPn5VrCqnIt6XJ05CHe04x7ztWJZ6Q27/GNl9yE5ykAiA+hoFWc8AgRf389KmNh4cv/lH+NrLrrpmSFe2/FPiDrg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJio+GxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEjRAAgovaBGgIDujD2f1T62OzVh4IR1MDw6eFI4s6t1tq0pSFwkLa\r\n4Rp/swtDvDyNjpcZCMpj8rGjKNowDiGmXgujpGeV3AG/rD1QGFXonoZLxP+b\r\nQOGj4M/jNK446aIHcNtBR7IHq9pN9hZXs3/JhmRcwJo0JFibMcR831dhzUBf\r\n4IS+ywxcxS0tDgz2LmKR8KuMw8K1SWlCQm680dq+UORIe4FeNckQSgIFzEq6\r\n47T+ljp9CLV1gxzDVC8Ko3hqaoySs3S44u4Tt5KwinrZ8zZV9Nu5FM8gIKAM\r\n7epKFz8/PKZouk4HtI0m226OR6ai8ogDqkFeOAKUSYRkOg0bDZhr63yFSVEO\r\nOdNrCpTAPQlcRHYoqi/QZGx1h62kc9YfUzz8aZddFLYEIOWYtKoNncZSs4Vc\r\nlkJrIFj/xxpshQ9AhhVqgB2PZ/lAixJ26XH9QV2iwKjiDvNaLVOaMeJ3WBg8\r\nRGdWBlPQPwe/Xl4QLD4FrgDsNFNpFmedgfQuqwybOrlJzzD7h2HuqcmV2idk\r\nceMUSBYZ4Mx2kmIj1VwZQqErAsQqAa0J1hxT+y7ksoY0g8pSs/1ZOoIiOf6J\r\nSeipteg1iomu2tN0AS1xG3BjZI3RYVxa2lu1t0U8FF2g/72ApmUPN4Y2D5ky\r\n9kKeYGP5RJQXqlUNOtuKcqfCDJOE7KkOt/E=\r\n=oLWz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-11-2022_1654907313441_0.928985571332859"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-12-2022":{"name":"playwright","version":"1.23.0-alpha-jun-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"76abb3a5be7cab43e97c49bac099d6eb7da9ef98","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-12-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-Ht0LFHLN7PQdd+tuXAUuKHRmdLD00i6HuG65Nf4C/gjEIE2VMJUiGAvwVavuMjDPDC6NeXFryUAgOSFOwmWXfA==","shasum":"ac217bf9f781d35bca8a271786c876d115026969","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-12-2022.tgz","fileCount":9,"unpackedSize":24133,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGT3Ko5J03diMQYXUoIqr0kDhtn6y8zkBCCcvXuM9JpJAiEA/pvNjDd7Y+YxM+hdPuZCbsW0oGtY7wOmumt8dyJN1ks="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJipTNAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfMxAAjlGg2TE/dpLvfS9Uw8Mf8sXnIDJBVod9yQdf0xc+z2zfpJ1D\r\n8AJ9dFRNvREHvo8I7cwZo3Joca87caDiu3Rmx8aKIdCTAHLtPtLRqhDluwSE\r\nVJXxYvdIedgLbcHbG5axJS/t3NTHTAunzU25umvIoKWWTDp6tBftVhcySPni\r\nFkETGgp1aS+exwLoTwRslOZveiI+Rl+PctzH4tmqX0qFhsEnHlwjr+cGUdo0\r\ny5KbwuTHjx5LtfNP17FpMZNtV7kEfNPV9cISuwotti79CX+AHVXivUBUGgCd\r\nXfO9WYpZ0GBWFvbeRXCNm4o05ShMumq02cIElxWVP3uUEeT+0mwY/VNXwfb/\r\n2zLRFreLHUMJcw3uz3ZguQVontWRDd+h5NyMYu1MyV9qeRKwZfT/t3+ZxoTV\r\nfpdR874X6lSO8dxk1iI+vIUI5Fgkxfz5Vm+3hkUT1bpI6U4/FdToZPNhrntp\r\nev2vkJIdaoH8BBX96T1QCCYGbQfuKq6oUnrZE7Ps3zSHOwjQectSBa9F16aU\r\nOQt9t825l+x1kFmIP7zme4NZwoHtGLoBOiZR6Jrb4KwE+X51keRe4r4SlwDS\r\nNGvvdbcD8gp8wrRoRzHGKhG2Ci4Tmgp+K9chB//9EQsogJXkjuowYGOP8omh\r\n6e5MWsSBIS7ZA9Bk02zYdkG8yMucwDH86qY=\r\n=23Im\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-12-2022_1654993728190_0.2853096747649402"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-13-2022":{"name":"playwright","version":"1.23.0-alpha-jun-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**Codegen**. Generate tests by recording your actions. Save them into any language.\n\n**Playwright inspector**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**Trace Viewer**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"41529bb1a5b1fd02d04ddb2c8afcda77278357a6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-13-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-danvYSqcoABBfPSFlTW2Rq2Kiucy1M2pXADOZXmchKQeYtT1wyhkQNYK0NQpowec0U/T+wab11eRwp+K/kltqw==","shasum":"0a79184afddf0cc0f2bc172f89309a107215f68d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-13-2022.tgz","fileCount":9,"unpackedSize":24133,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnX/dpNK46AfDuHjxtLbzrooFZXiriehU7QmAhGybIWAiBBOE+20556dL80BXDr6xQmIdYmPAbNGketMbSTcHbz0A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJipoVVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmramg//QlHWI8bKCWrMLdx6+lKzN/dwzU2I61u1rxiU7iqrPox9ixld\r\n0dFLW4MO/LjyBcMcIqnGDM6uxi4mEbGUQz8Y00Gs90g83s0LUvpOZWIkHzMe\r\n0tZpBuU4K3L09Zb2StjSnUmXIUnaqxnUhI1YD/ib4EqusADAM/sWmrE7uaJM\r\nSFiGskZFnhgZNJVPOMSBlw/MCEI7ReRcawic9WsL5FmwFvPNoJ8G85j5u3ya\r\nivl2+km40q3w5taKWpsQ7/k4w4V1A+f+i6lwFJ7m78AXbb/lUEnwisPN0Ehy\r\nrXdpGsm+EizKRo2XdweAI2ZQrXxCTkrwEYCoKddospimPIXbgkW8lMN6cNBT\r\nxthpyl8BYHIYrhVqtVfgdq8EmbfqZES+4icQ4w1CvvV5F4HR/O87LtkFrboB\r\nNMb83fKtJ1FLNLIe0m+KciQwAT7Zym0qFljvPyTC7291gP/KetTwBFOfZrs5\r\ngc9rT4TEIBXR10k1HCU/CJdLatoOcT06rjoF63+4eMooscwvsw3RZF/rLkMT\r\nZHRuPSsux0zvzQqZe6vRC1TJcCbXVIDeDjvbPNoEyGyVHYCHgCTGLWoG7sro\r\nfysK349c3m5MHUzAcL4KTU/RPaWscXUfOnuahcOI6hAuK96kwDo9PjL7ekzr\r\nMoQZv9XqA/KhEpjBbXUwe2iCord5DsqNxCc=\r\n=wXnA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-13-2022_1655080277205_0.732408577480858"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-14-2022":{"name":"playwright","version":"1.23.0-alpha-jun-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3974d1b3591fa58b644a264e8274d7582650fac5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-14-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-mQLP9i6XgSX+Vixmpl6aL/wHz+gJkvFpFVtqMcHyT1jRoS7Jl0cIxKXF9yPhIOLJ7nxBerYx4C+t2dik1TWBLw==","shasum":"f3e9ea1af1f37faa333007d9d651f77119289825","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-14-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLzbJ0ZYEf0V/ljHi3/l/oYBZ3fOC0IgZFKkgoUlqMiAIgamGQ0T0qi7le6buaf0ww8HrhlDSRBmiSms0Pzta4LME="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJip902ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0ow/5AO8My8si0doAZG7lKvClg1LaKlYDvzJ75lmEmm3MkyvghK++\r\nYkTGYLJ5nk1njnsvN0sGf2HPoB1dgp/KnYjG4TATbWmZeYZ6dCZGIhJvznW9\r\nV0AwexmnwxnG57FH03inWDUsoM7LVRoJg+MAWZO/YJ25cg95ii1u+2FAdiQY\r\nh1izGgfzrilQuEmpJN0pS1KnG0r4RZSD226WQO/c74Kaj8YHDcgNb+PHWVPH\r\nW/8IuWgsWz1M2o5Gql5+nsP5h5Ccl1NifnBrr/EZWaBE4AXav3KTjjIIRdiE\r\nPYXfccmI6S6k23cdmu8orzjyTno/BzZ4nIUtrcwCYBnVWiZb7uRI1fhyWjXb\r\nueDQW2dZz/zExs2NFk+2axWxkk43Ltc/6S96B+JhjVhL7GBICO9K3Mdbmypx\r\n3CdZ7OSuUTwikbOdnfd9fD95om0W9oM5WuH/eVMnCVOzlty4HwP6zsZTO8M2\r\n/pbgDKUMxE1zzdg3dh8Ljuhs6bOX1M5QqM/sjq6EFEGInSTjw4FoA3RO910c\r\nnFipjqk+L1ZU0XmDh2dLLkT9jFwZxsvz7I37hMcn9m/Aag/s8zRTDHmXcDJl\r\nUwuCGxSZQT9i4UVu+x0+MPTn3/d4ck7hAR/16F2t/DsVY+IRegV9lQu3JdPc\r\n460SHsZRefZ3grBEkxQJlwduIgu9INJxgpo=\r\n=KNe9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-14-2022_1655168310637_0.9471916028762548"},"_hasShrinkwrap":false},"1.23.0-beta-1655171903000":{"name":"playwright","version":"1.23.0-beta-1655171903000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1655171903000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a78500f4dc46c6853c28cf00135f9f6cae6ec2d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1655171903000","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-UtbU70gQEWcl3ff99qqD/qMD+vl3GfwFA6GZw9nmy5stfmD2dRCRH+QBXE6qkv56pvcn4CZcfLJLZzuofVK1Ag==","shasum":"540be98576031122f88877686d2580ecf7124a47","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1655171903000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNCENXVvFgfMQYsLU0tHJ0LJ7vKvfaE0dluO4QPb9KzAiEA5uB/oI+GvYmG11Dh9ZtKOgAEBkuKqIBvbxMwvAWDB6o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqEQEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrcHBAAiXojjOIrQ5AaZ91eGDyCA0qbXs6QoaabCG0BpGXf0n5WfB3U\r\nJgX/EDRfCQogId+WIQAJIOA7zA7deIh4wb3NUl2/SNA0KQOeyCGDsmMn+fop\r\nJJpeWcJyameRgOMJAvn0IlHR+JGjC/4ilmyyFy094L3FsVbCrRqZ5SLsxlTy\r\niUTruRQUU/lTq1vWQRnVNLWYEa42XbuyB0cSXXBA+WNBqbBlsXdTvcn97A2B\r\nZi9TjbPQZfpA/z7aiTo9vMtDs62q8ky3jV4Ga8dKER3eLDOE4t7eqxQadYu7\r\nIioIA3tIBES8+48GcootFKKDu4yr2x28ygZzqIDQXJlPi6z0yNYFvlgvYdy9\r\nMBkggRgTMOMesj1N2rrhdvDgZ9lKT5wZMVIx2jjl11tPuptMYNQ+B0/gBPOX\r\nqyJyr70L9xKqHXv9ewdZWWck5CLIVayd4qHR0cSNNtk3OGoYhtRaqBHjQEQh\r\n3FsHr35P9DkDcRRDUH+qIYmhRwK4CALdWoDeHMuxZmyjUbGLr0ArwqP5bTOf\r\nJ6mtoyXCIX2log3BzeuUtK7M+JmUy2Z7+lzLdg6wFnuROANzBFFr8p4S3HeW\r\nEJ3fR+x3aLyAf29L987hSIFPyR41+e9jQD9oK93kWAcTuLRJWuhQilNf9kkn\r\nmI8EBZQW9ewTRHa/uZ8C7YuxoGW4tzwnDL8=\r\n=WhXE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1655171903000_1655194628400_0.26114529400237685"},"_hasShrinkwrap":false},"1.23.0-alpha-1655198429000":{"name":"playwright","version":"1.23.0-alpha-1655198429000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-1655198429000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4f1ab2fa6271ae419a95ac1e29130b5c90b78c44","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-1655198429000","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-3s3QkyC1jttb86/RdeW6sAPWc1SkhtGZ/x63BWLFnn5y1moPFf2C2sZxWE9IbrSpwnAipPsQbc8TMCii0FYdJg==","shasum":"08312e59c4a3533eccfd5f1baadc0ea679b0e740","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-1655198429000.tgz","fileCount":9,"unpackedSize":24261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9zGPOYCxZ4TGBK47pame63vKjuuDKJfN0JD+BvFl6yQIgIj2ladokkkebOCcdfrwlOZTuTPUbXEw0s6xZhgtkMKQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqFQbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRBA//aETiIQ5m47r2qsnvD1rV/AfuP5pXCnJ/PG6+q1mFnS3qPTZR\r\n2PnB6ds97fAlZVtvRao/ltUDYoHaXQATluymxVrBlyQNtkaMpkhNNx2niCOc\r\nEvbNzgzPBdc32xcK4gWS/sQ2tvr1elZ/6n55Z2/9m0D+D7WeQEdoIedr+iUz\r\ntk7ZuBdCkV8CQ5oysHTQIeSzCSyaP0PZgo2EZVMhlt3i/BhCDsNTjAwtTUpi\r\nX3uFi/6SxRDlnZ6pqeej3ZoAp40m/9NCtyFCx3XgyjqDXDIOHp5umD+yFXbE\r\n3vcduV4CIds3NOJViyGSKZaIrWJg4SIueHUwd7jfG2jC22SXqAM1OjIUSaEN\r\n49lQtlINPZkoWOoPdDaAmhQZ+B7ErHx4RKw8ANBtSlL7U3TB1JyoyZXmE6CS\r\nJSWx49y3lCubBS2sqL6GHDpYNaFVny9XL9f8mcTU0q5oh3LzlO0HDIVDcpHT\r\nUx87koIKcuzgJKg01+XsUz6k9cfra+aTnj5jQqHL4tv4+ReKyMSQOnB0XQUe\r\nVjlTtve0G7qVUOeifANjYHrsITCLfE0Vj+0XQBdBjoFuMdprWyh7HudELzCc\r\nIn/MwtEvjmME6er/H7g2wFwBiV4Eqb26xBLVJiPBrH9fNqdWZ5yGQfXZhrDt\r\nUFZ8kPpCdenlQMZkhz/9IUlfprV9zHld0XU=\r\n=ng/Z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-1655198429000_1655198747000_0.8719442422694921"},"_hasShrinkwrap":false},"1.23.0-beta-1655198429000":{"name":"playwright","version":"1.23.0-beta-1655198429000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1655198429000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4f1ab2fa6271ae419a95ac1e29130b5c90b78c44","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1655198429000","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-Ahty1A8Fj/CUwCflAdviCikG0s1VbYsKNXoo/yVfVOhVLEeVO5wah9yFYNhJ0DoWhKqhtnTeU4nL3QpesOcTFQ==","shasum":"dd15a45d9a543e79cd7b760fd2b49a04e1dd57f1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1655198429000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB82MxgHnNZy+JINjEsx8XOpdwfTDk1/U8SamA/T4E1rAiEAxYuFwSC3PSpbVC16XBW9MbjCfhTSACIYNRmyjU2GIBU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqFlsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqgPRAAgCoOXzG10TEgftlG0lgwbZqu4fT8kvKDhzVCd7WJvpk0+rze\r\nH4vIqGAgnrMb50cAgZq0cJNwKTASTJROiKnCyTbCzXkywo2hRBLfbEj428vD\r\nzcslsXq2X4sbTGt8X1cIhuvw8EO5Ech6KFRb3DQK14MvJuXkS4buDNnqXpcn\r\n503Or7rti949ntwohpvmo0T+8L874aGBVAm0C0QphGxm1jxA9l0OXsleoH7X\r\nX63Yjnki99Y33/G0/rsz4qopVxqzuaw80jzxQWKpzJ/ZUh8SHDhQLmaSkghL\r\nmHDjWxAiHJcgea4qSjgsLzkYDkM6r8RvoBGcsLCug7I9wr5/f90r5bsbAC6V\r\n5siAonN4BZn0HkxfYLl10GHWJ46u1B/H9kqnMzFbcFKyER1EOqPBSeh6MrDm\r\nV2F5R8jy7ApQiwoig135aZ6Jpv8B80z3Tvm61sj+XWrUd1m42tbVzjIIsfsz\r\nELsuiXOf4y7A21VDU7tlrYkkIGHe9BMElfqGLQl8OAI9AJduGX8oz+bHGug4\r\nngZ42W4reG5EX4PbzhDd9FTTFsCQXPvFlAGCogQfQDfy31LMONkR+YUMCOrb\r\nplXHyn6vDVmIy7a40jGV5zeYjb66WXqs3rFL2gDNau41k9XpRQyQrnzk31Pg\r\noDzGivRuokN9Q1kLvN4QnqdlNNfrKQGPO4w=\r\n=uwFX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1655198429000_1655200108631_0.8240144462903758"},"_hasShrinkwrap":false},"1.23.0-alpha-1655244442000":{"name":"playwright","version":"1.23.0-alpha-1655244442000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-1655244442000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e00a26a11de55446fae5edc806a7236af725c3f8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-1655244442000","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-dFlZXto09v/QiAnMeOxoUaLtFgqTY2fS0cszBsT7osxdNfyT0J7JwEDrjU5QhmA8St3Ape81nV7TD4/BK1EL+w==","shasum":"39f8d093cf187a9673c914278969b55a2ab0e099","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-1655244442000.tgz","fileCount":9,"unpackedSize":24261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDIroL86o3oFKI6Hj9eOR/O/vdBWcDyXp7hBMEJc2ss1AiAexnHhaRx8XNxkP/CqF+ILjERYJ5kDrfXdNOzyln9N/w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqSRSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJXQ/+PZPUWD066rqjku2Fz75feu40VNkiEnXEtPKTZ1CxRfYpl5Qf\r\nODhu8MRUQNGa4uh5I23CwVeQ0O47A8oOqfab+43EAq3fwoaWBWDtWFsSe+SS\r\nEbdXPvI0424P9hXTSfnPwhlGtjGCDu/ThvedsX0KdrQDw5E/XV9tT4heRrEF\r\nqFn/miy6xZu1c1ibYJYrl30GO+jkqpuEsE3LiOj1BCeRrQtLrCe0Als6tPud\r\nyabCUrObb5CuwSuKEwItpZsWbsFhF/NCUL8JJ8w8hH4yAeRPdtDfM9rN45GS\r\n/R0MBW6iYT66Eut388sq9ukPSXH03VrB0o0uSuK8zcf3o1BX6UzxauzKPf5W\r\nR5GBMVoTWQe1IBOs9iA0meLQbdzikK7qNvo+Pt8sF7NYVn5h98xeIQsdEVF6\r\ns/RrvO5MOFIolrNKRN1WRwc1cVkAIXka5FSH9gkm9liVxSAaArSo/bRhA74q\r\nqqmEvlbRyuNlFQdgNCYin/NSd3k7+h2B0+tFGYq314GY+ooA0OInqNAOGuwR\r\n7DWGhyxz4n4dM6CF0x6fUYFE1XYA/doajnUocTdgYkyvKdRAc8nZVDwRMLeN\r\nDbyKN+jb/WqqnFsK3ypRvrBIYnn5iPAtuts3TKcp5PxlFlZc32smbG8YzxF1\r\nNZtg54ZHuYX22ixgHdIqjIgMIK+SUG6INfQ=\r\n=Kb3U\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-1655244442000_1655252049887_0.19338596700962496"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-15-2022":{"name":"playwright","version":"1.23.0-alpha-jun-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e00a26a11de55446fae5edc806a7236af725c3f8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-15-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.1","dist":{"integrity":"sha512-5QnCKhtR8CBRG2mZTBDFpaD2z//4VQ5MOMo5Z9m7ri4LdGMzKFqT5z6PcnlAjEc4eVeZ9KnwNySif0hTOdM8cg==","shasum":"12e25b0b0615530ddaf9bb79692489320096dcd0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-15-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlqCqnvrzziiIAdNKm+LHiwFmjKTs3ikaGxPXbwfAlZAiEAqdMOCOhYOr+7yozIvophyw48uWE6DG9/B/FWwzfXTb4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqSgxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/Ng/9H26wxjlJbxBCZIZ6gIU2tJq3CFz4hVRDlNt1xuCd12nOxDUz\r\nBXaxQYiCrpfEOiZbg0ZpMBXGoYh2t1DsblP+F3hiwVXz0R+B6EYr5Inf1/3i\r\nBu2c+YT0aLuOxeSlDp4F70CFTduY/V8xbAXzLT6WHbC5NC9j6EqrqQaxyXPY\r\neih7bZU4V6baomUBDPWrQOlfXQcVJ0b+YPZT6//aSzn49RJJd2eD7RkDsL26\r\nSdoFnLfznrYk2qV8/HkbZxG5MIhoQEgZBTJVtt4895MkB9MnJbl34St2NoVy\r\nVOtdwL1BTD3TxMNC7uQdjUL0Ahcz4yCRLBx8ZMG07GAUijWN25we++5hw8mb\r\nUQJMVUNYZOMsDoyOnDUi6TlwoBeP5lEBzKr1E2deJKsknK4xujoGaOsuWJTt\r\ngKd7JFHebTtfGESlA3wGjfrvLMuqFE02YbFNlr2ICDBIkKpaB2DKz/AXbhDV\r\nRZ2KHmkRWqF++5UrcJ/FHt3uIhH2mOg3l1c/M6tshQ9VTaVJ57NfDVv0lxnW\r\nFRaQKDpeSSB9TuVmRpEu/K31jtcnR2lSk+S0Onf5yHagox4IDIxPuJfc9GEn\r\nOfwzGIz7wuIjzjhvTqLebZpemvewrmd+nHI30i50wuOpBabIqkgiCdjt/Nb+\r\nUcs0YrN29U008yNkj/udQ39Wszi3HTMq64I=\r\n=Op99\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-15-2022_1655253041638_0.020017883999218"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-16-2022":{"name":"playwright","version":"1.23.0-alpha-jun-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b88c89548eae4cad86b2d5a590bd14a10774a3ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-16-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-aVYtgG4xNL8NYpzCTvKvsmIliKKkNryVTWtk35itUz9M2O4eB22vWCs2JUJmrkNWdBajbOXfKOaA8v2jzCS4iw==","shasum":"de8ea7b1384a26965f71c7954249de6476146a09","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-16-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWbcNaUSKZE3lTmSmve4F72nkTjP+1x44J7oPADOsqoQIgWma6C+H2QU6nNkKFEqmz/BXTTLkEtRTDnR9T5vO7JjA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqnlGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKAhAAkZnK32otXj4ozSDhEMsw0uri+2R+YL05XTjBZP2xVfO9xtvW\r\n3cLqQxHmM8QObWWWVNTGgKd85p4DjDTmjDT72Wis1RmvmztClF6c6FLqTdIY\r\nAt6IGpRF6aAV2ZC1dXKmG3RY+xOsC/LRslrJfmUo2vigPAJHPbFmcuBRhWfA\r\nuAmHxoBO8/rn3mE5DCFTS6fBdtLlnPq56pKDbr/oNV0IFGzCkOZcbGpaLN7s\r\nARAIk3rehs/McUL2Y9JvMgANLgzS2RKcIiOY4dY8D96XnKd0a1PZPFKod+pd\r\nrBboM8P+55DS0Moh1z2uZZ+gJlNlroeFNzMuquyh7kh2QkjzRz1pz7septRE\r\nOqwhM15ui90E6X9CWr60ioLuTrRm/oZFZnPz9/SbsfMy1gK7Yy6XGKKn6l+C\r\nB7ULJGjLYwlYeNU0XOUFJF5I5m0vPEex//5O7ndggQkNyoosfY7QcSqoJLhR\r\nYgzRCc6u+LifAN3hdRffExp9dW0fXNehJ4xsM1Q3AcrwTK8r09iU+m0ezA9o\r\nqP9tt9CqQuwN6L6TjC+LjVtvB8uZ0p5dzuzV4vttukACuS0iQVzIsXqXDg9X\r\nwtkjcaIuTjiyI6haN6MwMzRv/6kZI8hOONwlT36ki63UzYBKflrOyyBps8L7\r\n6rxqWra5nnxJh9o35laDfR4eDuHqkhwlO+g=\r\n=g+O4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-16-2022_1655339334018_0.5098288695335389"},"_hasShrinkwrap":false},"1.23.0-beta-1655397914000":{"name":"playwright","version":"1.23.0-beta-1655397914000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1655397914000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9c996b2876e7374e1efa82224ef4c4408357049f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1655397914000","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-sIE3dsTU4b7bgYgjeb2xf+xxHx2KE/hLCqkkMe3QolpN/OjhRp8PIMkvwNrwcE9bTouQHcTytqJ59hHOJYywPg==","shasum":"8a81e957cd8f57c935a4e64fdf3b7b56ed9d246a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1655397914000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbP9uk7XTaFECFOW+RuNYQDnBZDpl0Mg7kufXBeNWwLQIhAOZAM8ablC28tri55TJZtehzyqbjY3uz0CT9WNUeiB6R"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiq17NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUjA//Seis8/Cka5HfY8M1BHz7v1axGz53D+aTtU9HX5F3zZtMynFU\r\nndh1mighBFEfA1kyyRcIEHlpAG3yEfkVapICpySbSvClRoSETP6U6ln8Yrb1\r\nJoSphIq3xHaaKr9x0xIFBwVzXoo5WgSISKXxzBSYfVl3fVrMUiwFUplnuJCS\r\nkRCn3hgNMhst7xVDWXlTv+jaXb2cglSXE6sDiScs6pTY0fmIUtI61ZhLyipn\r\n95JOk5d+ZyBe+/9eZR0fM7mcfrRQA9LTyvv6gJSeOOJMPB2n78XR0caFFGsK\r\n+hmk/tQzZwcKmOK76hP87h/56S9riur6/uUl5d1TXcMG5DQNKN7g7go+pGxz\r\nAsxCoh0sa/y/Z2aIAvlWgCm5y2caVHo9BjWq+2tuhAYs3ZFyRIfz4eRkclVc\r\n0bM+e7tE0rANT4HC6yIeemRJSikT+gQbI8NnjnW3JNfA1tKKXAWyYfFp4cnw\r\nLDrPSj3SQeNi6zyQR9ZOPw0PivF6buLea3CMlyX7RGSC/WVxds+WoqOK1Fdc\r\nu+Hha5TR/8GYNtu24hoT6XVDHo6vANgarf32MPAk1YfExU/ARyfKko7G8GK3\r\n7S8LAnic0A/FZF4HaTvk2vRpTbpKbok/pJRrJCF4pOcaUEDOh3LOSPZt1QiB\r\n3ORz0KyHNlNjDF5GUJWlXf9tXITyUZqDyYA=\r\n=S34U\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1655397914000_1655398093698_0.2884614753162953"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-17-2022":{"name":"playwright","version":"1.23.0-alpha-jun-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"245c33a5d44e6acd93b532e1166587fa716c560d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-17-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-vZ0ytPu9Ehedry35mpyuCKLwdXFJirFklUNjLoHwKYzI5lnjxm3cRX/31BGhrOqiGABKWpXZCDhEQbYWdpxVKw==","shasum":"8d4ef81393737ce8a062390c2f75e3cd40016f9b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-17-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/ZVJKiZhoM8qdDrDtYDluowXcpPJj60I8Ja9ntURjaAIgBx9wJt5ePgow2wMibvqZhn7YvPba/JPkPW9WiA+A5Pg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiq8mhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqU5BAAi5Hv5FC4xruY4ivjebIgXnk/un8gKZli1avpJgQbdX7Ip3JC\r\nBv5+tMrhZOScVQTWe+by20Ua2/H2+jc/8N3BhYCRxOwHbhorMs8LTxC60X+1\r\n7pcEp0til0/kVVgnlO9sSpBj+TugYVPvhVektTRF/Ag/75/imz81GrF+Gd9e\r\najtdj341pr2ymERJKhZll18f8XJoGxmY/K7Hqn6VYhIfUx8gsQdaWIdEkzD5\r\ngVXryiG6Wrv3WvrdeZWzD2U0sQs2+n3QrC9xWdExRcZhksW4RnsCv43eQXbS\r\nlVNNQvFQtqXmrxJZNtwKWY/W3K/d39koIOuUNvRBh6h5SLlsfHdHBub0A6h4\r\n3fTlsEay9ImTkq5oghCcrV7K0qsPI+DjOTqs0A0EFb77YALR2jqUHVqafBto\r\nsiQfQx3FOs8COI4ce8pCIL3T6fw+7KNBot7ECrC85p7xDCju5RiZWptamvVT\r\nerYVOo1rkbNfDyqC2pHMijG9TsXtdUk93QxV+5429OAxPFYYSvnM8erwyqXy\r\nQt9hlor283H8Vm76HJ3z+2BOCbnMDf0HUsOFxxF6SHH8QCxMUzYEzSnSa9UY\r\n1r4kz9cBIz5K9UNaBHlVtr6F1mCDy35cy1uRb0SRGDbaSR2y5Vpb+skOq80F\r\nyjyoq6bc2baqzgXcyyiooZkXB8SKrNhdor8=\r\n=SDIy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-17-2022_1655425440824_0.5550780925061571"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-18-2022":{"name":"playwright","version":"1.23.0-alpha-jun-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"030e7d211cd0215c24c208713f4e71814d229335","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-18-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-AnLP//OcPYMFFTi2tjos2sK/GT75gaDvb1Q638bAjgxGqT2F52fmg+vj+ABHTaDRmXHpP0YbOH/XaMUxjDHYRw==","shasum":"2801aeb62372fa7cb900dc2be43251355fa559a8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-18-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbuURVwKBF7EF1JAixn0ZpSq2x/XEuB8vvaeFQmpu/BAIgYJUE0lLPDpMHQ+ZjPHgLBX61xyofwEMUubVkOmUGkcA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJirRxaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7yw//YmHFEGgHLB/IX7DHo41j0wb0L7OdqJ4Z0dP5mPEupVutnM4z\r\nG22njv/1snxgoePYh15qro4FZYPtXlPg096c6Al+EJqI/6XrXMoZ9+WHtLJl\r\nThfwSQIkSaYe7L09ZNbvmXdvXtogHQGyuL3KLeIZilfjH0vGImJzRi1NL27O\r\nFKD4JV9OA1f7e/IbuqtZRV/7se0cYVq0pu6pQapNGuWAb5cU0eHTtG7sLt76\r\n9KTYr9uYUXkzByva/b59/99zRs1WJt4OlfFW0ov/nBzu/ulKWNrbCXzNN1g4\r\nxay17wdXm+4GtSyh0eNvQxN4xVYgzcHofp4eILKh+HmhLh+GLEkXAdQriLNh\r\nXRs4BwjbOdPo2P74lqaGaKexJDqIPgSsZgrPkEmUP05NnGDzotDpd0EvsXA2\r\nSH1vH5E6vwlkykFrrbUayfZkWwMq/Gpo2eDGjTNhd6l+PRsk7IT1cMzWprGt\r\nhEuPAuTi0sRV9P83OQpAee1L3jx4EqrVk3YY8KsgoLQg2EuMxFseQHTJ8s/s\r\nx+bU5cFPpmGR2vBEIc+VTZrPWF+GOq3vy1/9kRYovtBN82VOlkVV0eQ5mE1X\r\naMZJfLLXhwE+rej1GkVxBdZlslD0E1gj2758qUYSwHDxJk9usrrgg0igYx8M\r\nCtejA+0L45476Aey3g9kqfM2HQa4HAgM2mM=\r\n=rDAh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-18-2022_1655512154562_0.8252088677217702"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-19-2022":{"name":"playwright","version":"1.23.0-alpha-jun-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e8070ee1b24f2d15abb50d5b1b6d3a25a1785bd2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-19-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-Sj37J0QXZfXM+WjyLp8y7O9q8DG+cXMIVjS6ELUCkWdHO81d/W8dJOEoJME7FQnzYHA3LujVndG0jGEUfPdSlw==","shasum":"4363ced5952908a35b4bddb91a5ca657d3a108c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-19-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDktg0o2fWP/yjB9j91GnXcSMPUZtrN+oFFqB1hnHogEAIgRqeI1lcstQf2ehOkIu3QdIwHMFCSXk01SYA5RW1QMlQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJirm2RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouRQ/+I6X3eYNVYyyjovkGH5/oIhdBWncd2mggU/JYhaJ/M2LTxPBe\r\n8AhWcDDMCwN2ifs5vNc9ASvCE4a4fcnHeA+/EdNFx3GOutLTzJQR56HgSqay\r\nSjeZA9/a6OZcvMGo+X2MLU+uoLWj0rTH39q8Jy9YbBfUqhC793cIzmuZm9vC\r\nrkH1vIJwQtSMMfN91pQWLqvotZ2HK0BlICMj0ff+JtKbx3v0pftxSEPDWejx\r\nG0oryH1wpli2QuYpdEWg+OhEgr9Oe1CHHLTHTZG+7aTtkaG+RpUeDfMhGnSq\r\nf8S2ozxQgcke3ta3oTGu5gFSCRCLemzde2P1CW1STQFXEVWxbXD1Vvd4J5Hu\r\n1hAh1AOVDgH5VH9669i50Rwtr3v5g51rMNNaRInhxgPR3KTcj4J7bthTMStK\r\nM1QuN+g2PVMT4kgZZf+e+tX+7c0wii0AIXifBjEQ1pXBiGO8MVF/dFD0o7b2\r\n20IG+rtYMA2+JmSXdtgHecrXYzW9zZuPOM0WJVFTbpj9kyZ/1cgr6vFqxmJ0\r\n9ycFaIOKBv2KpBLdeiLsw8I1BFO3Z3chudKdzLMmdmu2s5Ok4ogVW7b9Z2Ei\r\nz9PLjtX6E0IDT4/b1YtdUWiHFRhW8Y/f5ce7puFYAYDsBnzE1mKm3TR/PVOX\r\nO2GGDeyG1WKnezPtvbW5LKIm04LR+/Av43Y=\r\n=Aw21\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-19-2022_1655598480812_0.6159578685212002"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-20-2022":{"name":"playwright","version":"1.23.0-alpha-jun-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e5372c34219ab14c2eb149983853c60982b760d7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-20-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-JzT6LLSk5LFnJAB5yB7O4F7IwivgXo8T5Xu85OpFKWqR9z8jp+2ZspQZ8uVKPmZRkWJUlDSjUqT1F1BmhcaP5Q==","shasum":"c48b37a4a16733fb8293396f2c36b5ae6637a064","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-20-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGHS0YSrKunI4uS721BYXAOQrjJo1bqBXjue0PuI2uLuAiEAiYXGM/x0A4svoPu+pa2ychj7I2o6mnNKINjwHn2l4aE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJir777ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8kRAAm4+uBBi7eC76GHg25RNPhhCVQ/tYbYknFPTgOMSwMQI9tQcD\r\nUigb1tLOfB6Mq261tDTfdNt7WTNSzvsvjMgR5YuzzLW/wjWnUD1NjTp9Ck/d\r\nq20lesD+Bc+XNA8hzCNmbTyuhJyzIZcaJex/m/sbu5UkImwFGicVk9H7S5S8\r\netgeCLNtCJoYpl7/yg06u3GnTk4WK42s1QlC7UnmBBDOgODQ4LB1dxNjhvqq\r\nRn3D9tGX4m9nv3hgYsfcauJE9bxtadfIwseGRWliDP9IwvwhO8NfN9VXcfip\r\n+RAZI+h4I0onLkFQX+fUsw4RSFupfzJ4WItSjMEpqt8kjAzhZ1yKXUScCfy8\r\nKQubPInMFlpluuVt2xpinfdwt7uQUQf54HvoI+MobRXjpNWD/jCQetCM8g0Y\r\ncTiE8hCgci/i3iuHRWoQrq30fXslz+exSZKCbQuD4n36jXHj5SQcD24fX7Kh\r\n1FxwHvnewTg04FcXkRSQK8AwY9uukqCtZZKnlcf2mm3LlUKWpNtWZEwIUfdP\r\n6wGzH0E9hsoKPiz5uDWxf3PJUp4IUcXjD4aHif8B1Q0wZ4/BDTUmVKTGDz/p\r\nif0oHz8e+InspbhDBl5EihF0AFq4fnQXBLQUhQy3QLY5PfLmpDTZXjtvsa/h\r\n5ZoqypR9D/XUOb48q2ApzC5yOP2f61R4+3k=\r\n=j2eC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-20-2022_1655684859674_0.23331714436576934"},"_hasShrinkwrap":false},"1.23.0-alpha-jun-21-2022":{"name":"playwright","version":"1.23.0-alpha-jun-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-jun-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"883e4d449acea11fbb2462312884b2ba85386d5b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-jun-21-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-LNJGeBKoo+xHNujE6syg+qIyOtKCQhIz7Q/XRWLRSieWnQclxL4fqc8cP24bv8p39rchbQlMNEE5dPDj78SHhw==","shasum":"20d3f791fab9bea5d7bec466c78e760aa724d60e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-jun-21-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0GFBMdp+FTKvjZn4vZvjiwb1sd6NOZMVvC3NjatTXUgIgaegB7R/9isUzGKN0tpaajOGImR3ujoBQQiVwHJGwLnI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisRCLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGCRAAncZ2kRbGBs7uVEeIKWeHoBsIbNXJCOR/LppE8RFITCp/E1mG\r\nUX5rIETfRyOw4B+isnatouP7n0NDNhXano1d8kMzjijEkEjWzMjC4aQDE5Up\r\nzYnFKUhIadyHdeZWWzW6ufiJAbRM7EBYIer5JIyPUHfn8ZYUq5MWoPGs3VFf\r\nJHUmXx0kXW6jMdgOT2M8W4Xgm4eUCvVICYYg7569HjlmPP0nkQszCG03+6tS\r\nlexBogtRalV5HpW6DvOqJVqjLAfitpvlZKTHi24nYB2OerWGnrSc1uK31z7S\r\nOy6s+S/Y1cwQv3zng8cUi879CG4EsiucwlzN7UQtJj4mounx4SbW/t8k7qE8\r\n8WR4lEbc1gBuS7tr84YOObm8bjQHyBvmzkM7/ajCB2YNv7ZvUAzYiAJIf1ai\r\nODI3H/loXU1HtCeR9AuE/eQpNnLNGZi9bzq+BB4EtM1r9tCSaaIgHdjPTyV2\r\nvosGsTrJlE48IozotgF1AATp2Ie8oqkYyA6JaBVFU6F2V/iBo7qcUUBPomnC\r\n54XnZQvOAbTVQ8XPzvC9+tGFIZxg7VkR2lXN2hI46hHTrYi2mp531tPWNqu0\r\nS3ES5ScyAi18d8oscVR2qH7duvnwiTT1hjd2zAtNQMs6Y4BhOwIUGM4nzlZ4\r\nBgOv0h/ZYY3ohG4ydYDWVbe8DyVxronYpKc=\r\n=gul3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-jun-21-2022_1655771275166_0.8767242863801024"},"_hasShrinkwrap":false},"1.23.0-alpha-1655778679000":{"name":"playwright","version":"1.23.0-alpha-1655778679000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-alpha-1655778679000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0f8114f6a80a093b80921821656eff6053a25b9a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-alpha-1655778679000","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-tx+dPuufLfKZwNiZf1qOC4EABns4/n4EZS6TciSr7QGZzlvI5gTyzRPoNhMHUhNUfn0wnEhU4kJR5SDHv7XXcw==","shasum":"c180e04ce5bdbdcb070b814d023a064e40c67c03","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-alpha-1655778679000.tgz","fileCount":9,"unpackedSize":24261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7UPb2QjDOsgYJVirRx8mbOua1QnZtMiDtxk3ZCD4FxAiEAx+xr5SeKMTBm/5srKoDSh66eh8OlmpWggW0Aga8ywFE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisTAFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmphnw/+JOfp277yu+bRFcun2+NyHeSQTTVpSiaiGu0bVI+HZCwzTtal\r\nJNuV16HwAxjxXxb0gUQq7rJcDqNjmL1/QQ5U81/k9cdgRIAs9InJz9wVIE1W\r\ngAa+OUy+Ad6aGcjXyIMmLQwzE/6cJ/ZCVj055xZSVrOZSrbiWikecQBZB6he\r\ny/top3Ymc5gehOgoObAy3WO1RTPnNVkCr3zyX9yt0mINbDpMSWSEj8UKcNR8\r\nTmu3O1BbgwAF/6zQQvrlPjsjAflrp/Yx2Z18ldZcTEPFmKgrxqSlEkYpC9hm\r\njIPuNK2wxMHxpph1PRbGUFxQ/d34EuXZVfd1JuHJdsaxt0HNPxe2mgo9IDBq\r\nH3y5xlAAOS7UwYypPTBkYpLd6cAM1nDlifUISi1cjVM09+Mj3JUKi1PZTIy5\r\nsEPUKG9A4xJwgpTLN94fvVhHafdiFYTqzRRDeupfwAvRQRWSB32Sina4LvKV\r\nUBTUASahTFavojup1UmM9NAbht+A+WDMbmvAhHYUpctjnB9pH1O70035AE/K\r\nqAqtrg7s3GyRGbZG1oIvrncTvFGujMNynkMdODzShz2kSEntZaJIiPZLOi0n\r\n0yowi9tK76dNjT81RFAgM+TjnV9Bsr1V+np8uGvVmVBebIFG7tcNcsKcQWOg\r\nzanHvEXcoYO6hX9gDv/33RtPf2fjJHDynpA=\r\n=wEvf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-alpha-1655778679000_1655779333396_0.977732909656986"},"_hasShrinkwrap":false},"1.23.0-beta-1655830418000":{"name":"playwright","version":"1.23.0-beta-1655830418000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1655830418000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5b5d24a7a553b8724b700d48abfc8267693bac81","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1655830418000","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-9p8+l6lxaIvUXjVs5n6nvl9KJnl6gtaAYrCx9chB/eJaglf9w8I33QyDKnVVJ6HO50qlWD2Gxm0D5cwzv32tSA==","shasum":"e4b81ded94e88e40ebaac3f2549a1cd780899f23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1655830418000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmiamVJkvs/rYlEPpYryFtD0uh8Lf/qEKz1NNrpMBqLAiAsph9pbEV/Ar2yi6e5qeziwtMLAO6XSd6tvej8k3FQdQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisf3wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoeaA//Y/2xB5dXARQ0+C6lpXFv0Su+3fYMZLP8fMt5fwZuhtamHchM\r\n/ELEm+TbfnxC1ITramGCTU6AA7dJrW1UyKmpB8b+TEv7B7rmPkRZ78XgySAy\r\nXvqKBlPCgsYE+uQQdBsbXyv5sb+EXcdbTifJBGXkeyW2yjI9E1WSz1BwpQac\r\nzWgArTREF25tsBeu+RF6fAh5d+Pjv1qH51GLM9CJ5BpRJQCYhxUkbZuiJy7Z\r\nICROjSEy7ynO3x7/y5YxreXyZq3PauBE0d3See0nWd9vzsy549wuwhNgDpcE\r\nGX3WL/Y8saWSYv6fOgFNRFdFydl4id+IIB8pPlV0N2tYvYuFcMSumE1DTOD5\r\n0eH3sNaCij/kO/vaw5R+IN5EmWPiFVNLdty05EnER5j6pSrjyZFJM0cQ1uzV\r\nlumrXpW+jT5Kjmb2WiorHfhu0aSPKbId/nXCigMkd7EHixqf3rIt8dGU6nZR\r\nTFUgTY4hZfiygcNgku0q9Uj0Qhacws9Gk98twzP7GGhYd/0Y9il9B1vo6E9x\r\nqoAYPZMzQnVSGiP34v3/oV6E2KiiKpNhpEnSeFaOPlO8k7jZp/rdnWAb6PlD\r\nQeoToyVbOd1woiLrCJLEp+fkEDiwgcg9VIW4o1GqX0MVJG57Nx4u1MuVfyTr\r\nAqSt0yDQKA7vs4FMTZFtwbS9FzNXiyKubn4=\r\n=GHk7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1655830418000_1655832047962_0.6766092410932723"},"_hasShrinkwrap":false},"1.24.0-alpha-jun-22-2022":{"name":"playwright","version":"1.24.0-alpha-jun-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jun-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"da17490972719cdca4fe1319b4c815115f53facf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jun-22-2022","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-HM19OKPaPRZpiI9+YcynGxq7jyg4mxWLLCwAAKw8hcYFn0dVc7+s08NVJlAcCCNK9P3lfA3qAB7h7CX3Fp4ibg==","shasum":"d7233a7628925a02f7f77bdcd3a6364aaa95bb68","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jun-22-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBEIpXoJ5XrIJD7J6KD17XbmwJkQMT0oreZS+hR/ZU2TAiBVg793BCVK1sde94dKlNur6V7T4wQvA6++oNLvVOicPw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJismLdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqAw//YMhpEM83C9vfQ2AroIOF92K++h9tQCDMWOrr+NRr+IZ+lut4\r\nMYi2iHwwC84s/LuY88aAW6G6iRgMS91WiX8/laQa0uG/Y5HF6hSwRR+B7t0M\r\nSKSVBmeHsRk44tBsiKtips4C5XFlI4iGiSACjzPU6lvjmMpxRKSjG9NYnS4d\r\nQfccRw6jYAGg+0i0Xgl94igI+IuNRrJiuDZ62+iPbRoOX+kg8IpTf2Igx4N7\r\nMt3Idm93leFTKg0jl4SeHcVGAo0XOhpsd6k4s0I8EJHEGPnKMKjf2yAGegV1\r\nzfyAOXLpFdOQK+gH/cO+GRi2w8JzSd1Sjn1Rq3lKq3AeMSkoW3VsetJxxWj7\r\nYY7Wy8Fm9/+xTSixgEm7NR9TXBN4TJ6s40jK2Bh2zwxhlIJVdouE1eR0mnPi\r\neoCnpgTdeRb+X/fh08OkowmJGzghgF4VJIdP11SKov+7euTUjE4gDENTZRmP\r\n4vaC1hFyElTGFUm2xGMRwINTH+PtSTSBjPCvk2usKjEaPBiZqIv12JukgQ7o\r\n+jJS4VMD7VlpVQ03p2LuDnQX2XrKVUkc2L1pI3ptDTYZqndplSx7wbIdii1m\r\nYYpA4CNc/EQ+QnsV19IkJIxKgcouwB72iALw2QU2pT14r7gbuBhLigVNws49\r\nG9EP474t4M6Q7QR0S5tiXYu3D2DIub7bWKk=\r\n=YhmI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jun-22-2022_1655857885021_0.239416166400934"},"_hasShrinkwrap":false},"1.24.0-alpha-1655882451000":{"name":"playwright","version":"1.24.0-alpha-1655882451000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-1655882451000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d40761541f6429a11f57170257f7d7d89186637f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-1655882451000","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-5g5NvMHCPXy03DvVXnAB4j9nQg4r+fXSF7iFQfMFEEaB1/ruFRbebd/OyobTk0A62nJvVf2YgWyelet2h2+P+Q==","shasum":"b25ee0bb965bbda151f68076e7351815e98494c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-1655882451000.tgz","fileCount":9,"unpackedSize":24261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkccNPr5LfBblnEISfa1n3f38r3v2ZUn+XaP5LPF3LbwIhAMQmXpMXoSMD7d9RAg0xq9WQ74j5MUhCO9THMme+1UBB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisuc/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVUBAAinuLak1GoMKUg/gYF8VQf4H/eG+jm5h2YTH8zmxTOXaEuizm\r\nw8pTO6w/kXU3kLYeZiCDxbkMb5KJ3Xo8A0X2M0R0URTlULUo6sv/1uwF8eAj\r\nYhpbuoShPzVw8Y3t/liRFyya28G2JVHpw2ktcFVUowbAvBSeNp5dagvHvQJT\r\njzNThb3O4GLZSU/3byBb/D75/MqhvBcqjN5n2JW25PgxfHmdA3pXB1sq6AAE\r\nu4PfVA3ofndNWmJu7//1JAfe+lCW+ilrExmahNRmUtIci//flO3d5/6IyzCS\r\njG0eNge2zrBQ7PLK/oORgGgaOQZP4S7RBG5H4vQp57aAdezxr7FZKepsuiI7\r\nikW1hX1C3h5p8ToPTK+bvbOT/p2U7GxE4d6/AYraB0CwfZbV9fSzI2Ky28VF\r\nhMlrP8BALjpI0mdkCSNDkne/RXZXthHfknb3DewEcOeMnWICy9nudttgfQnz\r\nkjEoL5Y3tpNP6SzL+LX/Lk58HjW3H0DtUzXVEPUxvLXafzqx91j4Hx1HdkaR\r\nbb+GKG0tVdhq4jeaE0dcylj2Q/jPExezTf2CM6B/NJBpRg489u50C1cnigk8\r\ntMWniqm2kzU5kpvVZyYSSNCPZthlVxcB01Xy1GELxeIyBO5gRnH3vgAGU463\r\nH2EPta4UbrvrO1bilKp4fhOYboit3LH0CTY=\r\n=gNwQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-1655882451000_1655891775151_0.7373980510938676"},"_hasShrinkwrap":false},"1.23.0-beta-1655918129000":{"name":"playwright","version":"1.23.0-beta-1655918129000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1655918129000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0b30dd2537ecaa4bed12675f8468bb9461f1ad92","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1655918129000","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-+Q430nc0gYgZXJp3r7XUC11j/cmTq7KJbIKtSPCl4CzI+2sTxxTh//uEwK8SzalXgyxtBHIrIys2XbBMrDqppA==","shasum":"91c831801549d80529ea1ea5f9447860dabbb317","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1655918129000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCke6Je8MXfkT7sSgN5QF2T3gtgE2IDQFShb9vOB/5RFwIgYSBJTpdy4Y97bjVoNp3cg8hCTNch7ytWjMzhg6UE4mc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis08cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBIw//bZf7gRhyfTdfSi0ZQLiHAvBDSe/ZLr26f+nfEKdsBz1mx+63\r\nMjhh9cYsCYI+lpfGrvdLEv1AoYYx9zpTE0mHOPeWvgPJpiBTYaH3zmzEUkEr\r\n288Bc6ONetdrQWnL7oMCwDHNFN1ydX5o3tyuSvlMiwaQ8G3AeSQGi2YghBxR\r\nB5dMgi3QdFMWTY8b8Nuvt5R1R2Q5cLjixjAkGS6RiMHb9BlgutJyBERTBwib\r\nD7pG3sGm9Gtbx85GJOxxPFimwuJ2FkgnZDAh3/70oIG0QiqAeZtQi0IJ7l0z\r\nyapFReXvUD23l7DFDtJpK8Fd1OBGNRTmQ8LptwyKk3CYdyNITgpZH4sKTWXQ\r\nWxcqkl0me15mfs0bnls75k+Yvvl5e8IpeXdmKCfq6y0uH7F2kPEgn4xB/QTi\r\noS5VNYt44FVYTj+hvziMXqU9D6XIC/P25TwxRccec6A8Oryik/vgY7zQih5Z\r\nx/J5OsO10cSsEmpN5twV/jJ6/Gvotqhz5jq+V6wk/8+SEG9ld1Fr6shNnAjM\r\nGSD4y2UUCWlCQotOK0rRhiBr73vnVFPtCZEG6Gx2o9Nkuj685CQNZfWw718a\r\nXDVS5o3OIngoHMQ72O6iViDWYOlLVKFsezUePhWkqQz37bwFch/mOt6GQGja\r\nEEzTHaEQM/QpV+uogANdRBnQ22ap9pTAx2M=\r\n=Rqe8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1655918129000_1655918364547_0.5495484903082686"},"_hasShrinkwrap":false},"1.23.0-beta-1655922172000":{"name":"playwright","version":"1.23.0-beta-1655922172000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1655922172000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"82769c23de9f6c6fb4acaefee37bf1475e02c30e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1655922172000","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-zOiO4K1GXSON0969ukCnGR4zRhSrIcOS3xfRN+r7xTz1BfPTiQ8LX6ApyTY46YuuQzeLNmb1myeRldvFUN5Kkg==","shasum":"8486bba0034adbe4a04dbe143933e685ab35b702","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1655922172000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID1fwRL1a4TaPw+EraxLWBt6iODuVz6yfta0WmPEIA6YAiA03/ApPD/gdPONGpx54Jl/Y4bsmlG8zKEiWqQ8Hoj6kQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis16LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYHxAAlKE/uIXshRDtBSwJftylZAjHYKNYjC+f2rtW/p6XYsXl7DYM\r\neSy5v/qaKYNeyWoMPuvrtOGAJFHuEMOL5uTYd0YZ3F5mAFbgyOq3qoHCW15w\r\nk8BIy/kKiRztTGEXSElT3lNTjDuAQTxKv1vLAdLih4nbjPfLA340eQKvKpGt\r\nBsrf7vFDEkCsl4rZpw6m7Nvv1z2xjH6NlQTRTZ5HVx4hVxZ+RvIbzy6DjFPi\r\nqybIEL+eR6JrYQR1MtkHTaZRX6OCOa28VfIjXmt8oxiQISYIF1NkcjA5yRfa\r\nwM7tFOUeTLnSmEohRcprtSBCtF0nAL5x77aaCbg0HW840QnmyZJplvvt+hq0\r\nCSsNq8hplOSfDx/HDRprKyKxMn8l2yEfUeUrf1VEkEjpMNJomGC5+VC3+KnL\r\nvtg9KGe+B8YyczMzNUMtOMo+1lqI9GeSTTZCVsqSdn5EV1z2JT8VUABegMy8\r\nDhLKvkqrRiWO5GiNGzpRZ7imsDdMkv6+TOVuxUNmHWqU7LoCzSYpDqj8VyaF\r\niKoPBAPCtQjwXv36vbsIGPyJcau+FcVbm8TbcnHYqtMi7ZLrvebasxKZbE3w\r\nxmB+RUDnb6VcLwgRi3enWyzna+Duk1YWUktSLu5IOqpuzr1ThUCXG4/i4h64\r\nxZkg7b7lPx5MlYQg/zZVeZT00ElOzmWoCP0=\r\n=Qpp5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1655922172000_1655922315071_0.02729632265600257"},"_hasShrinkwrap":false},"1.23.0-beta-1655926399000":{"name":"playwright","version":"1.23.0-beta-1655926399000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1655926399000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c840a28946669f6881827cdd53697c5098af7bae","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1655926399000","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-WA5/8wCXk8kuf+Wd3V/Ocqcz87tP6zn04Xc9TZV846YhiEHEGubRGFI4qq0oTOZJ9rqpTPjyQG+DeCpieD+WMw==","shasum":"99d0c1a9c32ef53a81b0730eba4002272137a65d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1655926399000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBY2q2VPoueT1pjELBVPAd0IrWI/AYHYrhPHosf8EuuAiAaDPIn+pfTFWcGLhukVcrOdT6oixGQGIaTdZK8QkNc1g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis28pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeGA//QazTpF8nQMANLopyc1y1D+rrhgVkevHTmejlqD3lOurusPaH\r\nLhNqPNZjlaXStSRGg38AjCRyfBjoDIYXyHzBBcT2KrnTsXh9Ltf26U1enjOE\r\nfLBOrObJStsB38swgPNstTfHOBm2SwZB+JvtFxN99meeWSHYeY7mEQ43sm04\r\nse8GOz6W3qIdMA0Lj4boTQET+G8jjVTgQ8/QpWS2OGr9b6vwTFPrErquQv3z\r\nZlzCYQnwQpb7tj6xRpQx/iAUVDXQammRHSZhdFcQ9lrAtq1bDO6vg/PMkizQ\r\nBYVPKqsLQaIBcUdfUs3wycw0CQd79dIxNeoXinXa2qRaOgorPORnpxSSCkTe\r\nXrR5R4YE8QSoA/rt4xHNFSJ+e3pt4XoMJhDf0dmNM/Vngy/aoR7Bz+KV4dfO\r\niXgpCTzwFfsRDGlKuet4LK1etSv2nDBSvYR1gZSA99I29GeBeh3N9JkwiD5l\r\nt5u61L1RYrRLqdCEUrfe+gBiElxsnUad3QXMZwZXs7wWayu2cME3PIguYGBa\r\nDU2yNdE2sgkhHIOB//3pvvIkCgCcCUO8lCD/Wm+3NUHoDnqZcu88Kp3c4naH\r\nHwFudBQ+rMJtIBmkFhr9pV1fJrXd3AHBYHcXxu4GkNoiafJYwKxPxJSUvx39\r\n0LuSgR3RFdqGkPnifjwpOW6H/KI4OaFSg90=\r\n=4dC9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1655926399000_1655926568972_0.060683264132008974"},"_hasShrinkwrap":false},"1.23.0-beta-1655933914000":{"name":"playwright","version":"1.23.0-beta-1655933914000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1655933914000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d3e80664e84dd9c9d472e280ad5d474fae45001d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1655933914000","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-wrdbNJdH+tIoZ1R/0WJ7N9quZFz8bdHoXi2T3nM0o1l0yUdzCorWuylcqxiY1OqM0L445BDG/GLaY62VOTgOCQ==","shasum":"94659de17ce238633ce93cdb7891b2a7da51805e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1655933914000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8QIyirERUdigTTkCt+TFHBe4yvke1nGMc3KmU3pkCjAiAApaLusutZ0v5sijHSfE5qUx0vrILsKvuPXnZ4dY0Gwg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis4xmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpq9A/+PS4U//Eq37edPHp5vkXD3VpJyHvPxh5YkXiSYIamwiCnFWfr\r\nN/XLdlUrccIF/NvKVDisR9mHUGw3jDi+CR75ri+HR6ha7/jczBM020k4fMZ9\r\nhNXf27c7aMRs92xyzeQeRM0vrggee0H88Mi6BEJs6DoKmIhIOLUkocvtnrox\r\nIlDCa65n9ZwOczFgkure1rdjPf0c/SY5tIfsWGV9YLDwMi1wvPhyAnSVJ+Uv\r\nmhaV7JVkX7z5vItdlWimFYI6OFD3wSrKbxUAZlBqXK6PDTBMkjQ9ma+qgf3b\r\niH97uH1NHc4Uz/zLFRfnWvXfiluye2JqvGNI3cAnmghnO5pMtusVOQDB3PB+\r\nz/S+wJ9eoruskYrDBvGuc9QuCrrdDIjYf9Hd4frMZzuLId0TL11Re3PTwbbK\r\nR3anKPk0Ugp+So1Gd+gF6QfoZui1kGwm+xGLYtyd/P8x6kSuG0Hp8zwHswm9\r\ntciTYsx6BuARVQ+kYT1gdPUMIuoJlRBL95tV/KeDChebebWFJjVdhKRrdqcx\r\nUAzyDYoAbNuuTq3BV2MR6a8FxevySdujij5o+Um+0v3+IHFRFJLZPhhhCsYT\r\nl9VaNH2iOQpVOA6/WQoayW+Ox6K9IUs84rCMceF207u/Xf2J3pLLbVMvtLTm\r\nDRbufvxKEotUa+kS6FMVTVdtJKFPR5/7Ic0=\r\n=yLAc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1655933914000_1655934053962_0.3029278666197017"},"_hasShrinkwrap":false},"1.23.0-beta-1655935081000":{"name":"playwright","version":"1.23.0-beta-1655935081000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1655935081000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7f74063549076cdeb57e0e57133595638231ccfd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1655935081000","_nodeVersion":"14.19.3","_npmVersion":"8.12.2","dist":{"integrity":"sha512-tCLL2NZc97IX1BsdooUa/tJFH+Vw/ewvQ1DIrNccWQh5/kp/zMwutFRDx8Dg6X86HKW86kuzkWFVXEf43TFRhA==","shasum":"eeb2911d2d2a451f02d86b12996de4bf6dc384e8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1655935081000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6utu7jHnJ9BHsvTZRjFKqqHi/P082AlY3vA0s+t7vyAIhAOjuFGNFo5P27ky2C7pHylQCwv9rA2+p50s+tRGsljaX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis5FCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJLg//ZChlSHkPYcjyYs/bdSo9FBcW4A3NtrzXARd1lPU9sTUk5pFo\r\n8KPzocIreoN1GlOPWHRSPFKdO1C0Gps7AyLgojEIVyEn9NWHYNDMjbrOrze3\r\nw3yB6ISNGmGwe1Uaa8tp4UYsRN3GzeQgxr+WtV7+6ZdSMrBrhvl4NMSefiby\r\nF/lS3sCf9FGFT6og7s8QUEiG9yZ8Vzqe/HxhApT98clj3M9zkLJTOTZIPXQy\r\nom+j8YWKsJXrVwBMdPNo2deBHy5iESo4cRM7f28bLlSb/lxH7kqHZElCdRRk\r\nDhJ7cHc1NfqT2mlUcT6m1kDh7xHE4jI5tqCtsvvfSKk3ZKaXWL/CAIFShane\r\nUqsnmy4ZjWZoLGaDENUiJSDN8b8TPKt1RBL7AEKAoU3LuqJgv8ffpn8/7ahT\r\nchxK7XdthAYuKY3q/D2baUiYKGfnGctDEUfquxCG4hc2qhh/j2a+NwUyoMjX\r\ns4tII/6I1yi6gn3t3dKeTsFcTcfYXvQLG/PNAjRAfWQs1DZDTqZlkzIvUsvW\r\n3MkQlC6M4YgEIR1+ePvy0eGBMUd91usL4NJANHkhABTFATGHULPNMYEcNjlj\r\nmkGBIBNAO5ArF2NBIdlaIxiMZNc5DmvSBNv89JkJCVio8LM+BW6SmbcIt4XF\r\ngAxZy7iXfmzKJ9hTLsiQqaBed/wsSiDJm8I=\r\n=HYvS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1655935081000_1655935298290_0.8922871349164745"},"_hasShrinkwrap":false},"1.24.0-alpha-jun-23-2022":{"name":"playwright","version":"1.24.0-alpha-jun-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jun-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a46aaee6e8de789f0bacd03ea038316a8acd1590","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jun-23-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.0","dist":{"integrity":"sha512-egL1hKLdwqEgTOQ5h6T99tkYhXBvhBx3IUrAjHPb4VAJrfz6w0brm40vZpCnToqIsoR4ZfMUEvtY/jATus4Acw==","shasum":"e9f779891a0ea3645e92bb9647d3133e978a9da7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jun-23-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxC7S9zgM/J+wpcsymEJfXtNBQrxxmbrJgYPikR43XhwIhAMJA31Tjj/+ZcGevOCzbQJcAoayYnG4mCgJLn9u+G5xl"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis7KHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgYQ/+Jf5uE0fh8Li26aaW0ubZ4VHaNNS0bkDf0z1pYnnwRCHEKCT0\r\nD5oO5/K99wJcctowXQo1svnGT72iLN/MqigjpS+1A6w1H4EOXjtZCG/xaAXx\r\nzn78icvxqJ1OeH27GYrzKKlxkk3mlAfZP6eIxL3GPOM3kIfi1HBL8CVXOn7H\r\n31UPM7MRk7CWQufz3g+2bN3rJa/0mn2SKPPzrzXOXnFuSNw0kq0ukm4Xas4I\r\nSxr1CdHz4aMqVvggVznRiMnkmvwy6ZsTe5zKQ3BHjrntCRo4QCdZaGltTWTs\r\ntRCxrv4l5vmo8HGHH5Uh2G6Z8RY+Au/xOg7BQWIvHYJ4zKyyxlMjpg/Uys83\r\n8MzC/wBLbkePjzMD9K9nPzL79HADzHxQcnbPQYwpEKCF2KBtcJQXxTsldRIj\r\nIqp+t6azj21RVikxpwT5M2txXHu0jJdQQhNMpjI3tlGDgroISVJsrmoQyMK7\r\nI4UYheUlMU6LRXmUDsbBR7hv85CcJh+YweUVFIm/oZbDwfDsAAxwh1VdOECX\r\nns2j7wlyAqkyo0ifORvUhgAXNmvmC478rcdme0VK5FckoofMSFlWS3gO+fRb\r\nsaSxDfHutKx4O3mUkWf8J5EKT9osbRL7vMbbt2f73JGC1jhJzDAYMpuorJpH\r\n0tnYScMYhjBMMULtnAIimfh5qxqOi+8EEwM=\r\n=+Eqi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jun-23-2022_1655943815301_0.9398893922843259"},"_hasShrinkwrap":false},"1.24.0-alpha-1656026114000":{"name":"playwright","version":"1.24.0-alpha-1656026114000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-1656026114000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d60f84d06a8373b16535e9dea3510f3512f1d769","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-1656026114000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-EX1pVqiYnIArtb7vXEq6MNQ6NqdmqNNupPTaICfyWLjpxttG5E9zRHjQ52hJIH0Wi2A4VAxfhkczykJAbczSmQ==","shasum":"bc07397105da950d4581ef66f9a308aca43a4ddd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-1656026114000.tgz","fileCount":9,"unpackedSize":24261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCf5M7djDVxYhwiYrXeUSt58fB4rub9bszWjjwLcXPK2wIgQVsR1dC8GMPvBNyA+6ZX3fHPI/aYUhAK0CkWTovG4DM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitPSwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEdBAAgrsg6yrL6ng/L2ZIpoo6d8GMlEc2afGiL8hxLNVEn/Jp5qyP\r\nPp+67G5W7nrdMu5HEeeopS6g3QpQu7R0+u5gie+gP2VS49DO/Ud76Bo7xKyL\r\n/6pp8aATOCZBkYXbNcXMlAc2De4P0CX7LV5GnOcoMFNRny4fu+WXoU2+ZFbi\r\n0y/uJaKYTwGx0ENN40S3b+Vi1XoKFsvs1V3wE7TM9TtgKFgZljE4bzl9dwFC\r\n6d3BesZYnIzHmr7Z+TeKYBEu2ZAskHi0VjyIGVZm4VCAdUyLOC2OSA9YggTJ\r\nN0AoIHRj0Wx8tzjGjX3tXA0dJ4xCz3luupRRZbI47boJKC3YY8MphlrxZCOb\r\nSNIzOz1KrK7MgftB2m2A+qlKUiW01dzcQHYFR4e2sltyczPa8Aa4fN9ICEYu\r\nFz43hZ8b4H0vRviYayDYPKRZhenWnzeB4N3/WSAJTnPnNXqOILCqLkD3lAb/\r\nk24sItYdSM8j7idTHfRn0/Xb5ujGcqY52OqHB4DyYx0WGF0bADzKIeKIL77X\r\nd9ZUUbW4531OMvUD98GH5STdhxOzg3lPqiB9Ai/vtuOjIo9QX31Kpd8SSEWt\r\n6VES5xFy+K9qSl8Busoso2zinV1GFdjku2eDYvxjuYbLHH0Rk+dYkGgaTDGS\r\nx/1d9dNboQ4x6fwxpZQYosLGVq0hQXFDWEs=\r\n=qQ6x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-1656026114000_1656026288369_0.15380057321363227"},"_hasShrinkwrap":false},"1.23.0-beta-1656026282000":{"name":"playwright","version":"1.23.0-beta-1656026282000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656026282000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c175d6fa8eae71637135ddad13a503d9a4f456e3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656026282000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-9g/n4i0tgaMBXAOYMK2XCPVXA9uhSccx0jk0N3nT0iSH7pXZr+hoSoC4uG3SNX98GWBy3ck6/5PeQ3gNpFxNbQ==","shasum":"8ab89fa63ce2adedfbea7fe3345a68fbccd7d41d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656026282000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEpOHH2dqeEShJmrzNgj8Vxkj7cRUCEztv1GZx8vHqkhAiEA9psm+B7EQ7sTQrzXq0PZlyZM74AS9fNSajIr5LzRdCc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitPVDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqekw//ZLxQRqfE7JMaswuZ+zW4vcjQbs4XJmje3/x86Fx7Eu5NMxv1\r\nsJeGzZota6yfw41kycSjesukcNMVre5VqO+HK31AAcTANfYobhbzIo2xQ5BQ\r\njQxGvm2ptwUuWIOmI0zxRX3anHxX9J4/63r41KFQSMozzSmfpYmun7+FQ/bR\r\nM0BMoN35Bmn/AkIPMQMazAqODCJKTvMvGcfDooUi6wdJJYU8dkxld65oEPv/\r\nVfoMaqU9c3fodS9M09HefkZABrcbQaae1mNOf4sGPXRFBS9t0bcElnykG8sG\r\nQOufU3NtSSGkZvN3Qgk/EX28mb2/kGY260mw50AwEA5t5BV+7NIggnWi/mfc\r\nA1zkPoCnrpYt3JV0u0Idyk1Qzo20nJ7IsaFV6QwFJqBrYuCMMF0jjaaIEguR\r\nlU4BQNM6gPk/UCGwRs3h8zshqO/xyHAf6ElvkElwsfgQWKpWHbduAOR+4MiG\r\nO6t+LaJv9bXmhRzN0At74CtxGmOP02NEZ4CqKfOtUosTzmCC8QJ5HO0G1DJh\r\nk0Idws0wf7Iota2bx50NVB01pUTYeXlmpzRofp2vQ3sSaHYGF9L78iTCQ39x\r\nCJ0/eCrIA2fq+e1AJ+DcOeib6vPVHKU/lx+IdyGq5EdmXj41oPhkkYknauVU\r\nJDq4rbNC5r+xJNYohJLgxLTkGTf7K9vnatc=\r\n=dQFW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656026282000_1656026435057_0.6031050567737728"},"_hasShrinkwrap":false},"1.23.0-beta-1656026477000":{"name":"playwright","version":"1.23.0-beta-1656026477000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656026477000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c74c9a3690e25493aa2901d5314f33c7a2e2d9a6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656026477000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-SwobadViegFeRUoqCvuVPX8tUQ/MyZlo0ZpMDOjwEEUvvJhgmseOIkks9vxoun+Ja95R3JTS5LK5tvyduOFEhg==","shasum":"7558e701f8db8d855cd507b11be2c3de1a3fbdfe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656026477000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAIKqKXp+jVEDlkkiJWtAPBR17WSqWqWIDAJESXgbp7uAiBaVriGvx1LAKib4VEGD9jgkGQwY6KWl+AF6zJy//vl3A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitPXvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8hw/+IbEYbRdbYdtFDb/R6ACEAmrJRMuISGV8ZRDQpIUktBM2cahO\r\nUwgKzP4a/sZq/TlG6pJ1UUoK3qXCeHkKymWuDE3xfKznw7sd7AL10poeh0v9\r\nPOEenbhnwnUnrkIHCbny4YWftCyn+PO1MfEYx2fM/adnUzK09ULHSZaEbE1X\r\n2R/+dzdLOjNzqZuZl2/ITbnH/+cyHGbTPpzt9utn6qC4eTpmZt5GseXUlywz\r\n2RRlr+lqC9UiJPzTYEuxd1SLxqpwL0ViuJ8La2L4P9+fvH2g8PuKfUWT4cUP\r\npHpxBux1K05rQHoB4Gf/waa4TYi0XMEi9R0olxKkCelKDrL4X620Scs3QvdL\r\n+vcTGNDMTtQSzxEB9nBeJsEurJJZdd1LwxIINcJztn/vkVdsE9cvT2EO+l7Y\r\neEqbp6Ddwa2Dl6ZWpEMpDV9wu0J2+kHA3UZJ4W5aBSlNt9DwHSRuqibtaP9B\r\nGK271024/PSeWEy/p7FL3TgdeVQFNwz3E0dZf6SMEZgftg5Oa4dpKVkaa2WY\r\nJkHJdsuWzYURibbZzDpQD2fG+J9B3aGGhKbsEkwBLttxRiG8+MED9Q8vGduB\r\n4z1ZXpHWIDmvD2yc8a9BmAUwDO3yKvMDLK0LpZbWQSVqkR/dLqdm2cmWr1xo\r\nPnHzRG8TCIXP3chcMjPAeGd981lZo38oRAA=\r\n=MJrw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656026477000_1656026607237_0.2227405320239937"},"_hasShrinkwrap":false},"1.23.0-beta-1656026605000":{"name":"playwright","version":"1.23.0-beta-1656026605000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656026605000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7b78e71433814e08201eaaabeb1847a9dd45a521","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656026605000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-wS7vl0EEdgTqreWhrnmQqaFqO8KD8eq1NmQeD5zb9ecNxvmoR7VzgOrTQVKVSiH0cp+MFC5EFuYPKPpvxNc1xA==","shasum":"8591f191cd7a40afa5b11c2d5cb57c989979cae9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656026605000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJlv03T4dgkKZET9sm2kIICCVgVn4mW8otPJfL3tGlxwIhAMHYDf13Vk51jAqt4JibU7i4f0WdCG/WtKWk1P7cWkr/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitPdFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXlw//VdDcRyYJG6No6Jhvh86oQf6b/tyaJVNozfi5TtnYXBW9VeIj\r\nXst0YmxMyA1lFSKCp+7bhAyUIeiSXpVq9YIAt8XwcSYSCki4mZ0oxouQcL/7\r\nNqmqRGD2t+HEQ3r0eR9I0l4Q1GPEoStEz52FbUx8QTiNcj7xKxRsNaxfTsXq\r\nk9Rx/rJ+oN/vQ0HGz+F7EVCl7e7ThgTgl3N1Uw9bxRQ4VxIPNlRxl7MPPfFP\r\nDCtyzO3rCcOmT0xIuZthxPT3OB4eniugoe6xC8esNNitfz3W4IpcJJUcT5jO\r\ne4y0aoQ2KxVVjAgzlOu/3zsNeJwVdLrw7Kagtb9WD+Gl0NGjco0bUzATW1D5\r\n24h/GDfnNbygGY23RmqC2JJGgZAeiCwIzd5QibkGT/5qNOYfbfnDcO+evoRu\r\n9mjdPp6Tzfpit6Tmq4q3t2xoDAumrPOoTQPdvP4QDzxOf36WSfg+rhvF6/Vn\r\nQPE1h65PJQmYQDC9bmv8BvC2/KDnBFxa0Hl3Mkd0td9RwQRsagvGqS5jUwOi\r\nbNDreDJV9LL++xd8yXNWaN8w5KV4q6puzk3c/44GjX/Q15m+wlUTkSwc1nFv\r\nYivwymKn79qpqNYB9Hq0w1KeVHLnRDb0PwpjiOsg/zdussAzhlVkJeQZ7XjX\r\ngMUD0F1Giv+i7FuaMW9rK8OvQ/Bs5gN+zXs=\r\n=PvXA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656026605000_1656026949428_0.39295269705494773"},"_hasShrinkwrap":false},"1.24.0-alpha-jun-24-2022":{"name":"playwright","version":"1.24.0-alpha-jun-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jun-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"609dd2531a4aa8e9364a6e39538fbc4f07bc9d71","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jun-24-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-NCe/sFN5Qjjbtcp4aD1y5HNTmpaNCD98OyDyket/hdvZn5TFchJfIa8DtS41D0rBRzCs4PaXJMOJtOJohWGH+g==","shasum":"32f6d3b80eae48cd06be3809c12f3843abaf5ca6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jun-24-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICxYlbxglj4y//0GGOCNOncSLgpHxSa2wIPQDMq6KBFnAiAcVt9jigl8phc065wnOfT9Q1V2RN3etG8TVGUCt8JLEQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitQTwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxGQ/9GxPh0DYZGE8uIxIZ8ZSogwJBd/KDZe4l28VRieGUCWCqtIHc\r\neDhXtNZOAoAcWt+WfUL1gWZABvA3NrZdncL6D0smLKG4gk11T6ITJ1VMUdmH\r\n4zYuk1ONOE1nca4tnvypQKoqJJVeczd9EJpyhEZwOTExEJnE7SzxtN1sCnVp\r\nvkguASIHXzGQTZ1F5yXETFAyMqPUue1gWkiS7vOlWgPKAO4Cs3TgukWo84Pp\r\ng7b7yXJ9ecw8OZlizjOQcdpJFccYyyBP2PAwvnxec0GgWNQmr8bzWEO0kLmd\r\nQBOdLlM8YoGsQIELHQ5EsEPy8upLSSEY0NtDXnNOWufGq2CjcBd23mgoVgOF\r\nlcba7uF1DNlFMG2DF6ReYqpP62zEqgrNafrigEFcwn1cmdIYyRPNr1BA2mTl\r\nbkQXJ/vYRdv/Vr6yqb2ZPzQ5F9P9R28ZBI2VGg7VdCYkf/wFijBorkk1/X4F\r\ngTydOWU3TYaCJa77P4SJZGMOfyQf/fLVJCX3lEYgrLICHW05Tws2Zh1TDBi1\r\nDna2bSbrZ9CPfcYAVtW5ulkKWWWc9h//PEPGVJPSFPkACaZhbqXozDUP2WIU\r\nc8a0HcIeZd9YOfOAfCwYZfi4BuXuKu98+olNZ2b7EC9ZXm1igZ8yBVlyDCz2\r\nomTkEi8XNozYzfwXuKljvMHfCXeXHTn2VCg=\r\n=os6S\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jun-24-2022_1656030448608_0.03217487096517058"},"_hasShrinkwrap":false},"1.23.0-beta-1656035897000":{"name":"playwright","version":"1.23.0-beta-1656035897000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656035897000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"270675a89fd3bfffd8be6e71c2dcbb823ed1b71e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656035897000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-JSlNKYWqLQwICy9VZbIVy2q/w1wR4wPv+5ay8JMTEh1OxAL9YKKEBJO8vgaZIdnEk+C9reE/W++lSbiIdsvCRA==","shasum":"3aba82a1b57c1d71c9539988121421db96d792c4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656035897000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHEnJoSqHRqYNuGaKsjoQR86gTHcNXFsL1uOv9jRKRQEAiB6pWhb06Xp8MN8ojanDDWGVDE8Iv/Tg5GoHK4RJC0A/w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitRq0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXzhAAi47mz1rDr4CcvpDnE9i4M66qYyynYYCZ80/xxwxeCKiCq7l6\r\nq78Ji/M7LG2NwqWRbu4uKaPUn4e9+INmHel0HMa38ZN5uCzaVfLpy2hX8w4u\r\nYQPqiwUZvYER10m8sRsL+ca0lmSutccCyVdYpsdmeZoUOyeiCno6m0KWnyoq\r\nhE+CwfynZsjgjPRXSFHxDSnnoECurjSa21cae+YWojSuas4Q1+pM9tUQgxCP\r\n4EsO2zJ9OxHkbuTgdT2dcZUVDUiP4Cf2/g6y/VPSngPSIbC3s8uIdIqV+YML\r\nwOrRUNmxamk78nbmxuVIQHHQrWbKpL+wIuU++OIx5XMPf4DBH4BMhYJLU/Zo\r\ncaAIlaIW5d+58jsjMX14Rp8Rk4gXdVe92rxxb+DN/r8BKO5alzl28J+6p52X\r\nuDLRlmq7i1IMLAnyLTUz2atJ9G926ZIcYLT27n7FF4Xukfd2fSN2jITHo1Yd\r\nt55anBTEWFeojy1gGC3+vaCFHTc/cReOsS8PcEzCxXnEMG4Ygtg7Lp897ZT1\r\noskCHDJpUTnM2q+5KETS2N5z2T4LfzthQ0jJVbr9p9C87bqENFdK+OezV4FL\r\nM9ZmuDvsU6SwhiEyvtFTQjPsf9DhfTooa9Epyt5UfUsMZ3XLicGNGdymseog\r\nE4ZijWXH7+2pBDAxlVAe0pzn0WdMDpoUON8=\r\n=7wHG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656035897000_1656036019990_0.17644080687618202"},"_hasShrinkwrap":false},"1.23.0-beta-1656093125000":{"name":"playwright","version":"1.23.0-beta-1656093125000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656093125000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8f292e09bf4e0485395689eb634efddaf3bc47bf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656093125000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-Dzr10uUkOTWTk6jY8lmlrAu937YYqg/VXe8JoGpx3FRtzTkviGfKfNvuBEYohtoPbuYe6tKVnynW8WQyLKegng==","shasum":"02c63cd731e1cc0f55e7103658eb941e8d78fa50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656093125000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2mignU8OpCAVWH3j9E2ouP1Q9mnY4cTGggJchDixDxwIhAPQPXLLqYCfSEsSxQK62t0gSOII6IWGDWjtRNtxE9kTg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitfq7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqONg/7BDi/MmquBHOeHyhIxTTw079fnpWneLKgHPYj4s4SlTH1DdIH\r\ntH0tjbx2z7+f8RPBlMUBz3LiLihDKaXMHtjna7hM/OOxYQqwuC9S+ourluT6\r\n7vqk33m+AlIbglNGOUlRHdCl9EsHXGaiDSkLKKy0oUyt1pBDs+02EqzKKYqD\r\nN/cRD2aH3zUKOrb/XTcM5IX7oy6ebpwXKLkntiKYOmFiw6yBSkhoDEnqrV/U\r\n/F3viiFiqUq5N7gGMMu+EPZyr2nbT7p1TmJxiSCv9FEJMpHk0CRQsyY6PizZ\r\nzJRwGM/rkMzWy/R4ofxjfSMgx95vHkYwnHiaUHkqwsgpXpq/tTfpXjnpNBjD\r\nieS4O0wOMs8pd/+BSkHYhmWS1YRm0Ej8lkfpOeasj5TCTqwfLfTFcHMgbyie\r\nAiBWK1nFZfQJpa1myboXvBawY4YejtKEJbt15RBALBi+M+vJjqiYN3Pdfz2x\r\np3NH5hZh4vkR/8/y3paSgpaO7y8vqRyhW499/91l2s58fkIRyTxf4MJ3dNRU\r\n0z7WBePPRv+qRbyrdHlIjajKzl9JlOClw/Zzg71vOLoKExdq3rxHqkwT08IJ\r\nOsL1uhU7oCrQgXVvyT8Nwcr8p2kHs27+NZ0oUFIgzM4rGqVKeaukrUOBz+xr\r\nViW4+xJ3PS46LcdBbiScXSJvQmx3SGLbK5o=\r\n=X36i\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656093125000_1656093371102_0.3280207185090722"},"_hasShrinkwrap":false},"1.24.0-alpha-jun-25-2022":{"name":"playwright","version":"1.24.0-alpha-jun-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jun-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"53404ad1670b59363dd3b0b958ef4a00418515b2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jun-25-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-lSWe9IqW0ptEqbZ8fbFHNFXNyELv5J1o29JCy0500sDMCsB1sCn6yl9ViG6Q11ZGLfz58hTy+sPR6gqXx+GZlA==","shasum":"d610aa99c0bf5b84b0107067b4e72dc154e6c091","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jun-25-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX/Rzw8LgFpjmrbdGx88qGF8dcWMQqRtLlWUYC8Xq6uwIgB8+PaAurp2HxOZ1dSbKxU1VHYv7eFXw7RFiT0834oYU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitlaTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqujg/9H/hvdO4LCKoah1dLJklSBliEm4Gkl5Bo13+GT8kCcgomGrmM\r\njjzjHT3IRpg4XkPamD2DKekLTf+3QPOQiT0l0dPpYJWxGzQ7IeCv0RZHz3xZ\r\nWat+Ca1Y4y/FmQ3S7oDp76vdcXxii0uELOOX8w+qYD43L8cWv3WHjgkOlkw/\r\nsDMJl6gPgf/1eJ6JMBpE0JqajzlSQKlFs6fIw8Ft4l6AMheaf/1kUCSrZRun\r\naiKr1o+Ou6g/1uuVejDrh3i8XIcHJILSuchr/HJqgx0O54aOQxmlYn0yY6CV\r\nVydeXwU1adZSGTlwvqWYLK1DMcwzt7PVBxctg/XfNlqYIloFII44klFILh2j\r\ncNmOZoF1ao7maYAni6ChXbZI1kFeftD+PiLZUs/DoS6ibwzKC9rolmjt6fAO\r\nxX0lqm+izYw3ZyZ4b4Fap8mutMW6q+J4DCC3k1QF1Lrg44Ba6zS006QcYdCk\r\nAB0+6AHd2lpSQ/gjP5RXEdNxwGHFZr9meJ92l7Cdxnak7qFHrEjAHzr5PQjk\r\nlqsu+BTANFDzlXUzi7nALRgwsFbONAF+seS0Ac1UwOoBBU2rw3qA6SOIfS3z\r\n9jhmyO9ZzQ07G+uu/YwtterpcXHbaDWEejhJrQCIN7liSfOcJHT7fIX2Z9JR\r\nk9PFUO6jVGoBJRzeLCetRXruhE2p0Ao60Wo=\r\n=edMs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jun-25-2022_1656116883761_0.017210186691144047"},"_hasShrinkwrap":false},"1.24.0-alpha-jun-26-2022":{"name":"playwright","version":"1.24.0-alpha-jun-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jun-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"597fed5ae42bcb8010de3e0d73372879e7f11395","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jun-26-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-/+smb5co61meBz3lVCOUUgpAJzUPlMGbAw5i73wRHWIzdjNDBZXnuupRo2agZ5N6RnnxaN1ylncAewk3Qvkvyw==","shasum":"f1948a807eec3d5e980d95f4c12a9eb5fd72f270","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jun-26-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHX9CQAkPx82zK0zBGHwpHyY71JHe3zsycbhoFjCYRFwIgOyZgUYq4Bhj5lgsrxn79/qXBE6zda1p+wI4zVckUavA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJit6lIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9khAAibI3OzddrbqcEaU0AKAbjpsjIjEc4zsGqfRYtsBxfwYfGRnb\r\nvuitZP0SfZbQKbJhusB6iKpqxAzVU3Gfk6nn9UnX+YD8N+b4Wo8gCe4DspTj\r\nmcJZ9ng01jm+WXFkQZgH47pbWyZTR+DoWNirbboH02Wm1ve+ocETptH3KJZG\r\nX56YMKw1ZfQmuqOeat9NGGVhPzH9ONtpVa6+o5MA3a6GsNZRUFaiHr2+teCU\r\n5rp0dhSWKMKFxIRAEHutA2vZ8c2eMSlYzf2ebxj+VGOtqsM/PvdviaKH/PO8\r\nu644ouisRSyBKD6ZgcNJ8Qp8ZuKNdcj+ymUdpR1Gz/LF3B1XVsaa6tbV9ido\r\ntj1GcpL+kz+7onLuiUsqXqNawHVzR9PWApuMcBO+LQRYIg0aG5WaBAtwI1Af\r\n9lzyOu3y64EV8qM2cuRYyfe+7ww8+8RV/oGYAc7EVM57hS1iaZsvDIVLbUbO\r\nLc/DgaRzFlNsj2p+Swh+u/Ok2e54uPHgBXByPsT01sDOYGUfoms0VIPqnCyU\r\n/emHlbjcNhvKHAHL4xpG3XcxePLYthcZpo/fO1e3ddoqm+iOf0DlHwkiy3/x\r\nEh/sa5M2rRi92A6zTXuGMXJGcd6oylTsEwyu4TPOmsRSt06CEet/RPc1x/yw\r\n9e1VqcZFo+Q7dCaVQnoeBREocbBmREhcWAs=\r\n=hyb1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jun-26-2022_1656203592265_0.36219102982823803"},"_hasShrinkwrap":false},"1.24.0-alpha-jun-27-2022":{"name":"playwright","version":"1.24.0-alpha-jun-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jun-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-103.0.5060.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->103.0.5060.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"597fed5ae42bcb8010de3e0d73372879e7f11395","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jun-27-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-J9O1bo5o+CblG6BJ5vhxITqqQDF5RiJfbEo9Xlv8s96Y6NbGYgUQxyMAxdZKuBFTsJUibhssLh9Zi7WNrFgsqQ==","shasum":"fb5608da091842cc5278c8541d64adb01b8a9d3f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jun-27-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXkTHBX34ySRvZdJmZNnrF+fmxiAMemMGhDhk+BHiqIQIgEHjZePYgGtkttrKnZ1Va5h5PWSxbwTYUUS6adS1BkT8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuPo8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxCA//YItdLd7LOLDtjdWtDlIr38b5Zf4ROA6p4IJwcXJM0DLkkcw7\r\nvIMkR61TxkS6tiZ/qmPC6bBS70A9yPs5wPIGaMddJWms9DclzgCTCIAauYP9\r\nP9LePPDOccsJm8YN2MV11/m0Xofb8lLb+7YgZo+S73RA1E2SM6G/Jp1teBNr\r\n1ffRJIPR5EwS/r4bXhTHInEp0OdwOi/qlbAV41rhuRlGCbaJbJDLkqHJxIsC\r\nr6qMJMq7R3V1I/sY/ND+wOn/wUO23KrgKQc5/dwzg0fIThbXUNpkXsIecOf0\r\nvo00CiygVOIfbAR/vlhvte1R1ElnmQh6RwTQ2sKZstBP8DgD/49zZ8NNtSZH\r\nfvgK6LAf1P0ASmKd+M/M1ke20Izy+i35co24a22rmqkB5zkFBLcxyuj3Az5J\r\n+zLXWgN5M086M8nILs6Md4HHaSDflyaYhp4CWjIJaKNNu69A48zHI3RX9LoS\r\nqHGqcLXqo2EJWURxY7eJvuR8PF44X+aT/YM6AXOylD9u5F8gjBwOoYVJy6Zs\r\nSszjoUXX2oVaSh5koIPQrUN+FR/j/bNxkno+xm1LujuK1QDwH7wwrC/1NtGT\r\nSRXIRDw6obxr4GI1ciKqzBKoECq3lXNtGu6nJ/DaMo2L7AyUgtiM5Hc9HbBa\r\n2FLIa3vLU3lcO0+JZWPrv+SADEP6r1dxW9I=\r\n=a8T7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jun-27-2022_1656289852085_0.026862107537185986"},"_hasShrinkwrap":false},"1.23.0-beta-1656330747000":{"name":"playwright","version":"1.23.0-beta-1656330747000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656330747000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"29ec22b9c9b8d947f76ed71b20fc6c6465097f41","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656330747000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-bHvDMvjLHjKPcKMWdOXlRAC24/v2mz42Ztr3Lfdf1f3LOPTPj1xlFsMbQXNrL99pLzF35jUqMykquv1fty1eMQ==","shasum":"e3650d5da8241b3bd00b3841df224ccee29ca82f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656330747000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWqx8j3xw4O+9vSYTVz9WXUmNYFdrdkGX4YzWdns9QNQIhAJHzu5rv+KAHn2EdMwiEWrsQGZA40ktre/41D5+sYp3m"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuZp/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpq6RAAjyW5b5uyPXjsBw7mqDiwLKaguNXoFkucQgrEakgFRPWOi/oI\r\nnBv0+cl8tlu+x1uTCqVz82sxUh7IHq/iOXGhAycQklhUUUAHp/FmFcyB7B7Y\r\nHvc4YZajWJXjB5Srt3Wo206pmUmjyHZHQEBAbqrrMGIdj4mtyTvFtRBBX8T+\r\nJ8hM7QrgHdOGY4ldrgQwkARGz6r8TfHGHDkGMkUFSf1fXH9iiYgRe46Fu3B9\r\nOEVX+jpmzmQ2UCkPy5WeU5hVX6JiujJgDw6cSUuuouuId70g8Yt1TAfe8PgR\r\n2//QdCJLzVLE3vWGapcQeY71xW0A5v4mbk307fN5MRm14AiYWj+AO3z+VXjq\r\nMsADCQaFuwIEhdvLX9p/I2kTs0rHl+O25z76xnAuTBJNJ3ISdzzKYBnkpkDg\r\n6ayhcCohfowiWOZQh68VMQO4asYqdxZTcWJ+ZzkJPx3ZJfysYQc46Wmu+fY5\r\nGwYRfnGyJQb+jQz9+cJte3dQYvOLyOs1UH8Z3QbkKOI9kxFnUBrrar+Z/cVw\r\n1PEMFkxUoldl6kEmDOi/5VdlD0M0CO5raWn58Bel0+HnojIJiaiPK8eYpoc3\r\nj76hX4IO6n4OfbnhBCsSa3myqxIoqcmI9DVF62a1FRo7gwsjYBiurJw1tb99\r\nPsbwodUO72pnS0PfXj4duC5+Z0bMiEliBkY=\r\n=R81B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656330747000_1656330879013_0.9994741894169337"},"_hasShrinkwrap":false},"1.23.0-beta-1656351500000":{"name":"playwright","version":"1.23.0-beta-1656351500000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656351500000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5c6335edda9b1ed225c9933e21d4384e59cbcac6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656351500000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-/TYC25Iq/4qJf4Tg7v0TBO5wSjgg1IO7NhD53Z/Q+F9wRkKfAFBzXIzGN9eCGJd1NwEaQ3gN6PBoQ/jAntT41g==","shasum":"6b78d99865b552ee9232abf6ae7720bc3a639fb6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656351500000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEZ1QjOMwDnO9i4xtcdjpBaDk8g+jlnONaSZ66nn9GVgIgbTD1AYTqz/R5wyW7aQrYJg/NEOJ0lmNTz/BmLxR94ZA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiueuaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYnA//QV8igRobNa2UtDCYa5XLqAbA7WrWxdo37KAM+4lAcUiyMuBf\r\ncnNKuhxlLal3bZsM+n5Cf76l393AW0Wl5ht+5AtrsD+C1xRG2/l+BZ5cerR8\r\nhmSnzust4y0Hen/MEieMsoGhTUwznTpR2CMDUuuMTKyoLsmMhrLg++wKUVUf\r\nmAtjo3BDcAf4NgOm1hl9WbBuZSVw8txSIaq13Lqi7y04QVL+xA02vswbKOl/\r\n7bBDF+SO4/vSFCME9c43NponMp+8peVEuqkeCMre5FMDL9md6ztSQUjDNNvm\r\n5U5OxQ85TjORz6XACq4cS8omMOorSpqBPYJaGjIihae523Pzragvq/t9oKPB\r\nqGTfpAo/1FQLx/PppVff7nUJIZ9NI7HfgR1Mfj6x4YNU81QuWAiUNOkM9MvQ\r\n6nYG+8rV/qaqL1NJ9TVdf5+qJKZnEZDMTGnPcm/GuvDDte9UpzymA2mFJSPS\r\ne5EGdwDMI5ey/52dnBMy+xEST1RFKtSNdqSlC4ipTooV5/0Gkpqjl4ZaKVvr\r\nFPd+yZZyT5XK9+4q12YChAU2/ihXtHtbKMKjSFUeOnosmAq4HJT8Z8TuHF98\r\nk/t50mj9JDec/aNXhvZxsl/3ZAc4OLvY7hjV3/qUZs4K2wnLCQ/6GvbmhZ//\r\nwxD5s3OsQuxUG89kQpxoibv6UBt5cwTJ9k4=\r\n=1CBg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656351500000_1656351641997_0.5278577506790487"},"_hasShrinkwrap":false},"1.23.0":{"name":"playwright","version":"1.23.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0"},"types":"./index.d.ts","gitHead":"5c6335edda9b1ed225c9933e21d4384e59cbcac6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-rfZfuLueBPGV3UdEqPQxS8Uw7TgVMATWSPb3O0oV8SZBmVAhOndkOU9MPP8dxJoQI68r94yevuObPr14PhW9Xg==","shasum":"93b53fa0ba194d62b8af1be7e2bceff3585fe031","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0.tgz","fileCount":9,"unpackedSize":24221,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH52R+5mKCo8aafOwd+zJV9G94pvw8HzM8aWVqSXKh3XAiEAvET1HgeKsAvteao+MExXbkr6y3/ee9dhr9kpP9AFSdQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuhbwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbdQ/8CXYnFe3W5gPX8gr9BAU8u3o7uVgHgoIA+1gzGYhIWv2fwWne\r\n4Nu+kwvVLsRoWM/gBG1TcH7Xk29bhRra7Kdx4JhIXDg6x8dLzE/8OjovrWi8\r\nDvRmlmZ96Hu2qDdbrGbMlo8vcQ0pHIfcbWIS1hhRKW6yrfu1YpjngH9xYDSt\r\nHqGrHGaZ0MfHeX1eLJu0A8JZ5bz8cQqQdbHLZU3WN+QtzWYG21Ovkj+eSo9m\r\nYcOsU/a3Z71eW06BWraJtlPVaoJef5gQndXngH56bxU170LdXNX2127P3++Y\r\nahYmvd6DxOJowOkyun3jWGduCQeMsIioHikxJOMcje+NFr8UBarRwm4l62S6\r\nYrFsdkmDSauDwnS5j3octy+PNYBVx0dcVRYriNhN/gj+i37Swf3wuZJt3Ri6\r\nhhUX5OzhkAaV8kNc7SWEZ1VAnq900PhjNOtmP/3TqgGxuX9WpHl3MDJxOCoW\r\n2zIIDTa3pF+ipnASf7MrSu+4AkySB1fuv4+3coi3r/4mvQ4TNV1JB/BMWpwg\r\ngqspAEeuc6XdPgqug63OSq18XjIsgxlrdZbVHE3ZjEeDDjo7fAnCLcfGw6KW\r\nAb/8lkE7Cc3RWqAjTnlyOKtKiIYvZpC1y2XwgU/fTjGnh5WDIb7RVHU2PLkP\r\najGShhIpZivQkkI/GXtJnxkkYXRy26NlLe0=\r\n=5UvC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0_1656362736425_0.3106444720632011"},"_hasShrinkwrap":false},"1.23.0-beta-1656369277000":{"name":"playwright","version":"1.23.0-beta-1656369277000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656369277000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7db695ffb5f2d3b107f2ddb401662f27de12b8bb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656369277000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-04K2/KZlGRghcOD/VqpVzjkCwry+8ipWgde/zhWrPGbxCvBqyAEt242q/0M9y3BB0GaWAGnu1BhwWqfgOQX0lw==","shasum":"271974a9be86b6e50de0082dc72ba0a920533884","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656369277000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFdBhD3cJHLKCpuaIMLkcnbpFG3khCE1n6uXRh9DOjbAiEAsZCuKRXTHC/4RduAovgMHBQrF4sKpvK/sz0kSjxuFbA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiujD5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrC7A/9GcT189IcbBwhnPMggHBFrk5Oo66gFKwqPBbkkumk+y+wZ4/J\r\nz8wBJw3B+2vg/G2M5iUCMFpTDUxzHbZkTmsgXpHDGIA2nxFCknW6vKoe4BWl\r\n0joPjVGd2znrYU5CZhaB9rBuXBtEOeyV1kHX3bTIBcMzANZ3Tw4ntgkrI8wI\r\nCG2Ud3VvvyPX5GuhIvEZCsrUgzLRRnfpxe2jzQPEFoKFT0v9jv18Pr9iYwKZ\r\nfcYwwh6M/uy233kgb3Tv2udE0arlkgtBXnXmULEACWJFmHd4PpK/Vx9ZapWs\r\ng9ws7gtVDL2A2fMnL78sNWY2FUVxq0+wryb5Cho5bMXkaPYu/US5dsbKLQJc\r\njsBN2H4VYbLrmE/1NxmhgZ34DETb5/9CjaddjxqqvEUO2MtTS3HY1GFZGAOO\r\ngnw4eqeuF1tvHCYXEUIIbr0w+lb3gdYIv3msB1ZdJpQ73BqSWQ+jvlZRP+vZ\r\nEO3XzUlxd7VXHS8YnEuwnCJxaWuITX+P0SL170TBAiFQoZOr3+R0hA3d6vNa\r\n6f5V4md/5UfGD0lVLQmyyLpac4LwVDEUGOwetp6MI3lkTvxpQtSZCn526L72\r\nwzYcTqokfdIydyBdvWtQUYHYc7PbwtDbc5l+5VL2hPUoP3zZH/maWFU8HKX9\r\nzIHKtFveV83tHJ6NzmQbu/HspbiIRfWuQGc=\r\n=7UGo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656369277000_1656369401395_0.44836159188141766"},"_hasShrinkwrap":false},"1.24.0-alpha-jun-28-2022":{"name":"playwright","version":"1.24.0-alpha-jun-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jun-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"857d46ca93d739e3b10057058b05c2acdcbb1404","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jun-28-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-1J8XJ+4QLBPToTbsA1BZtVz7cLSH1DljYxZBODHI1HVq3/2p/ikMmrsZiFTSC+4Jue+LjInjt0933r8/O6hToA==","shasum":"6a25e22b21880ef82f3b22bb4559a3836b6391a7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jun-28-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPEvYwTp15fCbO3kvvsoIlH7lAQkzPpxGDVB/+ZonVlQIgZ7O2RHe0B/wsN4BUbTuKGIGCdd0IkBIl3HM4htI9bvo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiukuEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQIBAAhfat+Z033DNqu2jBQ8iXnD4RK7YvYFVJ+JFEF+aYx/8xUX3Z\r\nOc23UKHD6uGVF+HC+1qtYIhstGVMPa8gfChrwWNFd4h8UaUO5QLASGPnIPXR\r\nPqATo8sfHOABdPUiU0EzeQbGSjoaLZtVviJy6qi9URkPZZm8pW2SHqrouRS4\r\nrOhTvL3qD8d/ZrxX4vZnvUJ8QvHhTiwLfMtBJOvhYtBLdrCtV9PHVGkeaRyU\r\nK+B07uyuqYvzSqbONZD0CMZHymHhSJ1ewU23fItrjl9pu4BdwTcRIwVa0rKn\r\nxZvHDyCTYekoHPBH/wTye+nc0XrSBg0r6rTw/cB1h0tq+ypMbOlbD8cChw9O\r\nZqtF01JwftU9Z20FAigU7O7OaZvNtpkpukrNAFAZugU6Kl/U2JFrLx/gUd/7\r\n9RPKE7A7SdLYX7GGCkGEDjaLDmsue1ONsmNrAjFGhlXHbRbrBUr+Y7JExQ/L\r\nHuWixfvDKgbtS2fJQH3qsr33yevKKYqImNs/gUmMLFJyR91V/8KrzxBLhFWU\r\nxKEMYSdT6chBr5bWxYBIvXmFewCqTUE0Q41HDgVTs+JAb/qloknKYb8QCp4t\r\nLs8CLdrgCToCICEkFJdvxp8IMcnP8dPgLVV812Uo+GKdM448uXYZRBz8BYYR\r\nOcmzFdjFyUQN7bNYgg7MijLXJTK97xs16qM=\r\n=tDRo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jun-28-2022_1656376196828_0.6112282024472477"},"_hasShrinkwrap":false},"1.23.0-beta-1656387337000":{"name":"playwright","version":"1.23.0-beta-1656387337000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656387337000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"25cd4c9a3087e10f3428c276d8b92b669f40c417","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656387337000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-EQbvQDRFv4EStQ3IU1OICFMTqV1eyDKBKy1U1ycItUb4QhyvGJq83q/ZH+dmzQgYFwoEMshDxVJZdkJvjBoQ9w==","shasum":"3241e6658519831a81f2cd76d28f298873d45783","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656387337000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCalIQj36c8/XTmzvQioP1nMMV12z1po+amRvGD9ow10wIhAP2+sHrJLHFQJ1vCzkLi5i0/a5igqM2RBSqwt1U8AkFK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiunfYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraGQ//ahipegGPR9Kq9wiDEksqB0OCPXbrCDhYw8xv5QitE4j+iIJd\r\neOI1qEg+fGC0PirTL+r6bLfdwg/4fYpukGvFYmzobAX4zbLeEtn5ViuJeEa+\r\nL0jTJ+ozqH7wZ7gUjq3QzGqvLao9RftHH1K8X41305zGlBmDI5Cc6DKwqxVj\r\n2KvhIVT49WWlUzguaUd9C3AK7tNkqLHwuqGZdI+YAOXIB2zac1cf8auaZ0jJ\r\nb8WKyTLMNtnZSlr8r18yZaaiWSWYVLV00CsYb87AivIBbiswwaNgVHy+QEdE\r\nLTGBNuDm41jaluBSbfpF+OuhfSH3x2QODMcxh92MbgUUNO9YCswFcLx9OOJ8\r\no9oMmqcV1ShTxcm6PAsiJrbyfiMsjjtnNx3idyFMni3IwHpHdt5pScB82z2M\r\ny7HmuRfvVTxzinQX764Yw07I9GKlZHyM4+lk+6wQtHDS7wg9M63VPjvUxgUp\r\nFFaui23L72Kl68fDf1Dgs2kQIEGWS2PsDQkFdDc7EK6Ff9Oi0Q8CPvJFBnap\r\nwc5KitLFC/VvMOV4WokwhY6ysb9v7SCe8rmfRjAT7uz1kH3/E3qoGrpJxhu8\r\nX/AX83gjdnxXqSM3Araal8emS7FE1wp5dIG3+l1ceRyQvv0C403oVZ4UvH3G\r\nRbSyspkkv+Wy4w+JEXHAu+34F5bakEpmRmc=\r\n=cv5r\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656387337000_1656387544155_0.22317747248960074"},"_hasShrinkwrap":false},"1.23.0-beta-1656449394000":{"name":"playwright","version":"1.23.0-beta-1656449394000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656449394000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a8cf285df61411441f024f56c78ba4aaa937d4e7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656449394000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-cS5i1khUmvdkJmKLfnIeSfQgQ7PPlb4GigqKnnIPXzBZBYUZHsV7bz346AX6bRN5/xzYjX9L6Nt0B16QIZhbrA==","shasum":"792f319890823a0d145850c37ea2fab604116c27","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656449394000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6BPgDl2UM3x6dIZFWDNAlOIvQ/3algGVAdiuRgZ1gTAiA/sV/7h95b+J2wt7IcilpD24qaQHhqPZLm8tj2yIrQ+g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiu2oYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/dQ//X123XAFjZgC5cN9+/tkHq2SJu2Eesv/OivFDhofMdqk/42EZ\r\n2Xfc+tLj83T2dg4RD9bf9EchbnnQ7bPCMEMikkdRCSiyjXxyQTYvVHjqPI6y\r\nciWgbBqYq2WLbzJHen+OFcgTa6gnmlqM/MedP5vteHmEBLb8vpm47A4pg5SP\r\nvPGJLXM7RPFqEBZv+cjpjd8qZ/pap/YTqLbb4c+Kc8WfEKJu0CgsjFBmP09b\r\nKpI6ePN3nUisf6esRuF4rnJXNg4DIfLFhRJztZf8c/9t7D0vxc4qlBLqJppV\r\n9fzC77C+1XalzxO5RnEfKe6GJfrwIf4xdP2Sa3/jVXwwFrkDsFOGdmE0bBjB\r\nlrYZ/LibfDo8enR2bEUDJ9UkrQLI9fOM/FQeIMoPJv7sFMWZ0Itl0op61Fe8\r\nEy4MlQB9gi4u48eRdfvs0aAQW9lZqw4IUg3C2xBF7UvJ0qyeqR2rRbVU7ak+\r\nr2BmWugfBK1IoLQm9FmriwTR6xEuulHhbJjYzTiXPb17jUmz7pp4htHbGahw\r\nCxidFL5hhQxR4HjFcNVoDlW0r9BBoqgpQUCseMH0pjQg0hJwvwjo9LFVN1uV\r\nUYR4LEqTKZYt+ajMz3IuaQ0Jj7dqw+0hD7qJ2xUbnO5DrwbLR5GL1iC/Er1l\r\n8tdlYGTWd0X82Mj6vd9Ql10a55Yru/34+nU=\r\n=5QwN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656449394000_1656449559865_0.23619276735329664"},"_hasShrinkwrap":false},"1.23.0-beta-1656457055000":{"name":"playwright","version":"1.23.0-beta-1656457055000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656457055000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"140f8e45f9105d14aef24d879ba83f80494079b5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656457055000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-yi9iIsiEgz8+t5pd0N3nRfeoAbnzax5mfLlHcm7UlpfHOZpbUOmUVYhMtpNq9D8i+MRnLKKjHS0Q9KqryPKfdQ==","shasum":"d1bb9e4541a5e929c9effd086607d2f8b00e98fc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656457055000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhln2lZnoTSNFjq/L4f4gCrFiQe+zYa92BYfI0sch+fAiEAsGCXbkXFDQk490flg8yz5JcVHRHVdxAyhmROylRLDOc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiu4iBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3gA/+OhNavaAyoRDh+L0jyGZeqHKwK4RKVrW8hNootEUfmMWm4Jw/\r\nPwm2ENNRpLEBxsG8skGCBd5f1ZGB4IaKEKhRTcZi9EnFnRs0al+aQAgWEchO\r\ncIjUojj+LIIKmdkAdrqiPOW+amAWfMQqpwQv/oV4MIh3jzrEvnrDzrC4yDFl\r\n+XykstFeu9FsoDC0EbfgNAdrkX62JZxSkvqpz5PehqnbMotv4yYjriym3ZgL\r\nbM20ofYRzj+mP+SodWT/SKNFJCEuL/UulujiyhgkTbyaYvgCE2uEneE7suCr\r\np7xCYLcFghMG1JZf7AAOf/3M585sPaUSSvCksFqA+f3tJWRiavlQJ43431Qq\r\nbcMUXDYjfKPTbJZfk7c7muaPsnjMZ8H9Es8E30A9O69lXlcK2BHAad0n076k\r\n0MPl0WeR8Xp2qJIyHHPr7OTXQeY+QM6Eia+zORaC6mnT8ymb28cLg89hxYNv\r\nc/RXyL4NY+5dqWVQ2n5xLkMH0RmrVOWBAGcOgWizvsCOBg6FxGvWyktPqG2z\r\nTZ85LVCAZMSB/mB0Be0PdgbhT3pfSyQhrrYxwPOv4AJKdf+yEoXH/JU1X0Uc\r\nNhFfUIdKVZ7X6j+qJe0qoV5iOwLnpTkNRb2nvd4XbzBfO0WwkukA/VxVR/lV\r\nBcNG0uc8/yce1hp+mjJ0Ygx+J40T+3klpzM=\r\n=5Ftz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656457055000_1656457344968_0.02351006522221666"},"_hasShrinkwrap":false},"1.24.0-alpha-jun-29-2022":{"name":"playwright","version":"1.24.0-alpha-jun-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jun-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8c7f8eda9f29c689ca65612c6450b3606a44e93f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jun-29-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-rPvPRXi48CKGIja56OKcJsXP0cjRfH6ZHV37P2TMX+q5M7DjmWYw+aRxk8jlb/C9TMIb6wtNWHvXxdm6YWDySg==","shasum":"c68122b114cef86df9880241deaec4dee81d4d3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jun-29-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAHGorQrwKNEV/SQ6TLF/rmZiHwbUUNY2zGmCYH9biQsAiA/P2mmCRF9j1MEUtbV6Km/GVxIkx1I31C1kQSgqWVsfw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiu53wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQpA/9G9X9UEKiW/CtetqyDAFJB0yxONDTBpppvPWVZWl8ykJ2svAT\r\n87FoKj6qP3V+v2aPKsK7YXUHq6EPz2TS21/ZGRJqG28Q8itjVn5VBCmmYS6I\r\n3m6UyWa9PLVwh0NLTOR1E3dAEtj6JphOsnlA7IGWjtqB7dSEl5Ki3OqRuiZo\r\nqiK+u/G73EEDzK1iCOLVVjyUYCi78UnZQB/CHrcgCmQA9w8w10aR+W9cZaUL\r\naGU2iq/zUvQYeJkykxUjHmlPJ6GT6mtb0AEqblbVxgfSF8lu+3GdNJKm21gw\r\nnFjO0C0jnhp4pDptrvXruGRwORpsdYDE4p/8hLT2vLkVAlTswGgxNdO0FQhN\r\n+leoEuSttENq2leQ6wo/MCfqW7CgzHTDjq2woOrFjdDGy+fvnxK8l8bpa1nV\r\nmDF7pCJ7tep3S82OizTrXYfky23AxC1VIEDym8kZsJmU9CLwu/ztIK5ZE2tM\r\nZ+K6VSiImT8U/xYTsLaTyaGkyAVA8M98ClCUCeZphUVU1MKMAB6wl5tDrj2f\r\n6fkKWB7KebyJo0zWExkbayFkOetVrEjGWIrd3bqR4I5LnGFnEHkyFyhGjYTY\r\ngA/wxLu8Ovnor/hwoAPQSHv10GkmN01g7RdShqN1NhB9Ph/N97wHx0+Y4mRF\r\nAiYv++XtaWoB8dQIUtJiOAQvMepUcW7CqbA=\r\n=UZ9l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jun-29-2022_1656462832379_0.9232179109480683"},"_hasShrinkwrap":false},"1.23.0-beta-1656506688000":{"name":"playwright","version":"1.23.0-beta-1656506688000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656506688000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"389aa5947018f2aa642a112c2e9602c95cdc28cd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656506688000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-uxVYlrte1awEp7cCZ6Js/s2V9ObInoQrYrhwALtdarmkr/zr3X4484q9a/zh9cnMkRUAs6ZJKO9iN9pwBt3iWg==","shasum":"060f7da66a62261b7836c36f977c5a543151548e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656506688000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGUxy3jzUOh5fti+/CXyV0H0TsxnuWjNq6TyRSvHax5cAiAJvzBTHPTDDHEYmWJIPT2wfFhJ1y0pcgBdhRrn/3k1pA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivEnJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqV/g/+LPKz4+BZFNTHehfsF1TB07UmON+Q6QtXHMGZ/RgE5PEX0M8V\r\nKaPNBE1WkIuHnR2yjyeo6KB1v581g5iPCMLr3teLPiRc0/yy9T7SbPyKlL+/\r\nKZdbEzsIFDITxgZHR9sxNUqJn3pw5lR6joAxelKVwT/AuqOgF86gx38rluyY\r\nxWvnjV/guXLAq/cmxnFztrIXkZrBuwa3ZAM7wuM3IVlnYkP+RSexbB3oiAHk\r\nf1j+IgoYIiuiX7sHoWVci7hPhJlwBOdM2DHtQkVQT6KKYktmJrrn68sUmYNO\r\neBq6W6VIQsBcWh7eOmIrSX8rnOBAxrYeoENQse8P6VKhLixFXWIldhsPgqA3\r\n077Uv8z07fFn9iowwj+OJagWFzDiIxHB6cl2U4yEbHCIr3EAltjIt2PzVeu3\r\nm3ptRVUt0lSvMqCZ04FjkoPVmpYe0qZ6DL8DoMbCNi897kcqrle3CwSi5Flt\r\ngPSTWa45ElyDI4PdSIeMy5gdvW25vPo60GlULYVy9nlbPSJjvw/laKSRMqIN\r\nwQNVy49wPUmh13aRp1f7iVoxSoS9fBvt/gt+XhNDN7QcdVguES2PHE+2256h\r\nYO/338uoLTdH5UR4cbKv7s/NTtJV1eyTqntFEvEkyfmW2zdcqvGbtl8Zq5n7\r\nhOZTRjc3CbhqmkX1JzVbJAi4rLklF7kAsQQ=\r\n=7gtU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656506688000_1656506824805_0.7255930295394326"},"_hasShrinkwrap":false},"1.23.0-beta-1656530993000":{"name":"playwright","version":"1.23.0-beta-1656530993000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.0-beta-1656530993000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e9200c5f9f152b747bdf5deeb02ae5f07c3da7bc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.0-beta-1656530993000","_nodeVersion":"14.19.3","_npmVersion":"8.13.1","dist":{"integrity":"sha512-sYHxjmSwEzBShi+N6wFLJ/ntFdZDf9r77RUbtiLJmMZDESeOAUEMx48FzuZIR37mqjudX/kRb76wdfV3HpRrDw==","shasum":"d9b3441d4ae419d559c47aab31b3298c6a8ff8d9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.0-beta-1656530993000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGj3fo0lo9fbAvrYnhsXYZIs8bPpXNO9JlWiuzukxe4BAiBCqLAFOnaQAZLyGRbygGsYNAapbqOMLmsMZyo0Rf2ZUA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivKjXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonOA//fCbLa/SkjHSIFYI3Oy9Ha1pOOW5vgxo3s5O0cNZOAHpW7u6z\r\nCHCzhWNlwh40RSqCvpxbV7b/YIPQGhYY7FXP9+Hh5NqSWzr7szKKrjUeL8uW\r\nQ8/Albny/2QNojkI0Iuz28Mtr9OK65orG7RvBnOY5t+TdShWjH0uekkWhodl\r\n52nKto/23uYtI9rV3qRgIQOuxpjEvytLQlyYbVo9RtV3jFK5fx/0Jgu006jv\r\nYHH5OOOtyFv78uoMUr4RrqfRwY4hSou97EeqY59vijh6uHo7CXRmHAWLFou+\r\nvDZMjExvw3QTsGM5VxgxyD/1WQsxm0pg604EP7zc5+UVMSlm8nDwjV2BBj+A\r\n9ZRyNJVc1AtVCQsjyNnc+glDPMtBptJDmzZTNRdHcp6fwSBMTa25/pOcrPEa\r\nhG1vCg3fxiaPgcsxGR+guWQXV3dFZsbWuWcSqObwMyGIRip6keBYOQzH34en\r\n6MzIHxL8OYlAhQfAjx8ECtP0dLqtO530X/P7a9+Zxnrjm1uZTFsgSJJf4JEr\r\ne3ahUuYiHWZTYStcyKYz4nbfsbXtwNb2bCnxaGZMErYpJSaKsa/NXkykmtXu\r\nahucTXzBm3dIQLfXspHO2LqhH1XEKgNF2y5WXLB4PN3ORF8/h6Van1qernEF\r\nImL2n6HsmpmaNEyyM4mjttA9OI72L75tNiI=\r\n=D3RS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.0-beta-1656530993000_1656531158804_0.17625190674691504"},"_hasShrinkwrap":false},"1.24.0-alpha-jun-30-2022":{"name":"playwright","version":"1.24.0-alpha-jun-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jun-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a5ddf560e96ca8db383131c23e99ab169445061e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jun-30-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-tA5H28H7XMqIyzb52OvgogvZnTeR7lx3KlGQ6m7WPeQC7Es7dCsAg2hadiNQzJCYLKdc+98jLD1+mbDbRAZmwQ==","shasum":"6c122a941d66e9af398dc8d64467f631d122e519","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jun-30-2022.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEeqt59OUlmFhAWkg22/cTfT6/AqzH2xYQ2rQskOs7eBAiB7sq4y8/iCJ3JkuwMR0+JiOFvro2Rqs1TieQ/KydfT0w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivO29ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmojhg/9Fvu3ag3fU0poVuU4xfVwBadV39IQZB3p12FtM/HiNIbFZpOj\r\nCOv+0n4RI6LDFkLM1iyBMN5mVmjV47T6gyNxnhO1UzJs905IGZ49EaRAmUOi\r\nrfU1/PpZpiTPf5azWDEH0sHVH5QbbN8+fY4pYo83KtAoghnaNPdrAltD0EYA\r\npEHHfYNLDaqysx2UOC6NAnWLTiqzEPPg1ooXN6r85eO30PJ7NdZ8eEq2F2pt\r\nntkR6XZIWARR/l/AGVb/MninuOfWGE6CwNtgYWSz7RX3ebCMgZjy4zqurXu1\r\nuZme4ORYUxM30qOIUT++2xunw07yz+FQyUefqTD9OKbeMnJfATZxO20Rbf9M\r\nId89nyUnILrREFvT3RA52QvMlPpnMJKDptjZw0D7xKGs3sdzyvwEHGyCKS/Y\r\ntP9Ngw4Rzbu2Pcz+fOIc9chWLLbrcGVXD0YDyW4htPpdLSIwRhO0GKDW8QJd\r\n7LHUluUfLHS8qkhWpsNFgorRtbs2sX41e8gU21e9AjOeMQDd2Tq/uzqLdtCM\r\nCcEhNez0Q+ZXBqxx2nH+8BW3XMWBirVYyecxWTjv7FRrroO+UIdq8A8Mbi94\r\nGsrCnyFkXqJS3/elWosfCQwpO5GI8olmong6fKEJRtXfg8Rnv55M/ITH0Ax/\r\nVkcFq5/XZlL+Xyk7xaif6n19qhALiYD0hVY=\r\n=5KZi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jun-30-2022_1656548796812_0.3693399928448866"},"_hasShrinkwrap":false},"1.23.1-beta-1656608002000":{"name":"playwright","version":"1.23.1-beta-1656608002000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.1-beta-1656608002000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a19117aa6b2cae1f67dd586b958b341b823b1c96","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.1-beta-1656608002000","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-hL5swA84EkPcpBQA4VnCenwyOy2cAg+aRmPgYkOaEkzL81rf6mLpXHtjsSDr7XWMCq0WfOQZODz6luDTR5ntnA==","shasum":"56cdd2b739320f8974a3998eb21848a3bf19b866","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.1-beta-1656608002000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwc2JbHQZZEJ71C+ObZuKg2r/MRwVHdTw+LorzX9psXwIhAO861ISboBVBKCXzwATIXJE7l+6oMJKhSO+JRlMqdWF0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivdXkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNSg//ZbWj5JbSzltIK0JzUiStILm2VLhDLD6EPynVDqwBjHZrc3pT\r\ncbW/SJ4RViwGzhYb/d31NBPC7ulC7nIr3t12ujLjcy1FcCwuv53hOgvsvAEZ\r\n2wOk+/m1MgzBQwl4snytRyGYsYAlMKtJEw2XaAX5XgxgvYhD6zx0EdL48xYa\r\np2r4g4q7HCZSKJSyhFtQizWMeT5QZGB4a3CBUDpG1b/4K6rOutrJB3+oEQ1l\r\nqtu4WvL6XyrJGktZMYwCNihXGktZdU/BSyKe831wzLAL02ChmX4sBnLTkfS1\r\n6lcd/pRg1ldFq3mkW+97m28pMAFlqoa2Aa84nxiBeKxFjlKOHypc2ZNKw2IX\r\nfN/g+khmT+pYEuJK8r5+Lzhs8pRaxCvHGSKCQ1HpzGrfossds/EfiwxaIqyk\r\nLG7s1pvYMEG7TXBgVK9VDb5npOqtJZH4v3Ki77Hr9S5pcf0e1H2GShc/MUYK\r\nvOTtKx2PjweWGKgBpGiXlmNb7PN84N4aobMadUnYAclOnck0n6tUfVOiAF8S\r\ntvulKVXcNNSjC0iy63IHGugMXkoEoWuF4zKsPfWE/ee7CJVV8GOL3UvN1Lhw\r\n26ZaHMB7K3h+Y8Zt+3xL/uGL0NQ8pUFw0slv1KX1Nee3IGQhq5utjyPb9bqo\r\nbDFNhr52BF8A6Y9lHpiIKhD6YezjOvggA74=\r\n=q6al\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.1-beta-1656608002000_1656608228695_0.19823953160498897"},"_hasShrinkwrap":false},"1.23.1":{"name":"playwright","version":"1.23.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.1"},"types":"./index.d.ts","gitHead":"a19117aa6b2cae1f67dd586b958b341b823b1c96","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.1","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-+lgiy1JZMNPwpBp5tsUdjTGxuJ+lXZbtSKmMDc0/f1oVsNDXXA+r7zeC9Kzd+4jSHteoJJocargxVx2Mn1o2kw==","shasum":"b029885e995aa1f9626aac851410c5ef615718f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.1.tgz","fileCount":9,"unpackedSize":24221,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwUdvMSWJU3AkPWCEYE0/0G0/K1r+zt8r91miOiCo3TAIgYPm5qWLCfL9/ALSLevShXY+QT8Vv6mhN9Z/NeCi7+Ak="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiveT8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYFA/+NgIRCUjzlZQVGIWZyQlrIVKDaSS6eWgnnCfsVcrwf/nl/umq\r\nOCplUK2TxNHi0ItnYGA6cnQSd08jrwR6h6cV+mcFwfmo8pc2U2MpqSqgF9M3\r\nEosESmrKvlgiNkkfTeYbgHapcgyCzHiV7D5kuUJSqINCW9CVbwBBKte+Vk6Q\r\nh8tuY0a8B9LAzj5ihU74UNmuV8wXL2mehC9zjwsQFrgFjGRv/1NIqKRQrIRg\r\nL2R9vOKsrOtjuGQ5kNcVf/dZMHfu20+ftchJuJq3g2OIocya2Z0yAKk8N5Gz\r\nUZwsuKhWAAM4G6b/Glf1jLHLN+vTWFzfZC3hzQS7mZorTtshXPqVHepcP28C\r\nNTuLj7DMnktlfijU1WW9oMFM0c0GBlhFJLoAF/MJRIYUcgzgEO7/EqY5iWD6\r\nugmIbbPECcETRqSYxVdF+QPzJVllGvJeenm8dc0+xpOOnpayKeEk28vlsMfn\r\n7mwKB7QcHzC1Z8c+cw3AS0lDhDAH5Q2fVBfqWu5JXBeGi5WY9M85CfGg9Mtr\r\npUjD4iCHkDWZTuovViGyfRrbnU3Vp5XL6wdozf7xC+Vasn9yYsTbvOQXyQ57\r\nekJpHvUXma/9jHuQkaClvQGt51tMg/c7UWm2xqwUTnik+Jh78wH1ZrHByA92\r\nRAnM85kCrXI08rJJ5Rl+lOdsX0Ml8Io3Hag=\r\n=K6Yi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.1_1656612092545_0.04726546788345498"},"_hasShrinkwrap":false},"1.23.1-beta-1656632677000":{"name":"playwright","version":"1.23.1-beta-1656632677000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.1-beta-1656632677000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a126a2f22065ace84fe7c6c022c135c3cfbd83eb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.1-beta-1656632677000","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-H21QAHuXrYeVWNhIHn1BfGzwEIGAQmnsyhWzIvUpUXlUH6OvkE9ywEzCrQrYwqIIxpJ7Tn+L9x1aIm8BPRLrKQ==","shasum":"94cd54be2e6caa7b1d744df886354493701e63df","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.1-beta-1656632677000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGz38OiVqNYVgqcFB12+6FZ8E402YXW1U7vcEiwHHdqHAiA1V26xnMOeihroZLfocjOee7/KKLj3wyRb/VydkQIHUQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivjY6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqRw//XszSkkB3uv96wGeGehgh9xlWyV/yzvz8g7FmdbiEWHvaHej5\r\nL8IVb767T0Tt6BnMejsRylj+IO8WtLmtfjmbJdY9JadRXlu0NF3ugFMbFy4r\r\nPg66i3hJG/92r7l+jRDzpyh1/T6MFSWOjaWk8dv/cLcZTvunmUEdcWsKxmbM\r\niisWJHcR0Zk0J+1yUK0B+J7wjTPzg/I5umbidkwfltfxcCNdBSrey2DoHbO2\r\nClWZpY9s7yYNEUn/Tjeo6YqNLZmWpOftIBXtFlz0GPQv8FDl9Tt+KK6EulCv\r\nzMnEHTaRuOxXmqk8oogHBJrPWF4hlIpzoIdy6B9SvdztbF01GG97ULJwOp3s\r\nAJn4iQRk3skNN4ZJZYN60K4L9vIn/Wqyhz94YpBVbUcHNjX8kpawovKE+rqD\r\nHTbH5tKVjMULpZvtPwJuhBUF4YKr4cBPRFixdyz8IZFe9IVMPZaXYmKr2to/\r\n24FzHjUPIEV+3+wzfnVtVNldFUXqSZ/0hyX7KGdOdwpWaMY59hTXDtfynGmW\r\ncMUaZ5wHaYtfUu5ItmLmEFEiBsah32xeWDSoeqNn7ryIt9v1CNicgyWhy71j\r\n/mkWA7uT/iHBOaExM6QcWuM2cgvlDsZ8gCjNimO1bSz+N+OpCG+iGY3SvsBA\r\nquCVUiPA1dPJm3R5g+ZbU6HI2ywQAa64SCE=\r\n=vKHE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.1-beta-1656632677000_1656632890812_0.6756016716994033"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-1-2022":{"name":"playwright","version":"1.24.0-alpha-jul-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b86926e691126512991dd22656b9f6e7dad913d7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-1-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-8klOtB/PPSDSKXXbsIRPIjdXJQN69rdBBDXCB5KhD4rZhA2y0OHv8d7FUISUfsD1rHDDhCtO1XPRu/L4sMSwSQ==","shasum":"026a362ee3f1fc0a921607b6226b615ea0d194c6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-1-2022.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGe3G3drPZTSqnF/7Fc4LGOQSzA9igG1LUcusRIO2uHmAiAl4Iuv241GhO1kYbuSZBWp7Ats5+qf6omCnRgXsDTYSA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivkC4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8Gg//W2RJ1at45HbBJHNvO+CJLPVqj2CeeJsz48Sb7C9QUPW3ourj\r\nAOQ0L9ZOdEpeesWuoAiowtv8o7sMmPHm8beFCDsb/Z7eyZTZkPL6Vl0ozqUK\r\nIZoc511fYXqpY2jNVqrXKm7iOot6xUhqFcYd+RmlfWClOe79mZwciwuZZzKm\r\n+7qMxkG3zgghP5mk+Hmh81Crm31ZdGAWjIMgdWM1xmGmuaWq9q/OjOr6/NEr\r\nbympnjKCeMls/n0PQdYtHXo8tPHB8G3/mqpZ5HGJFAiM/vfIc9B4gaCbyIKI\r\nE78tg4wiRBs2XuM8zyTP9yD0IORnQ1ry+1FIgzluJw6viUNFUkHTiAJgci7e\r\nvdKHoA6sL0DRmIKY6dHV/x4FGxHGhvbHV5C4XtnFJdGee5lwZzurk6/DVvrk\r\nkmsHwif/SvydvwE9uMsTzcnDk/Q9a6gLG/KUsWp/ELT9O33dB/NTccbf/8u9\r\naQbvlD2wpK3mzOA3rFenNe+oPMJ4QXkGC6XRkHUKqeK4ghCLpNCMYQf7TU8i\r\nc5BNkEWjraJYhwdhy6CfkgwxiJTxdDFsixVYQPvOKgh0K99Yc4/MaBZaFKB3\r\n3hcKu5tn1OLiOymi8e2XKTmZxnciwmhEmruP69i4EK3iiiW4CLHEMaQ1dbp+\r\nTJVkF+y76qZfdxvCP520ocgZg6nBfM+Sc18=\r\n=R9cY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-1-2022_1656635576444_0.028671395417593448"},"_hasShrinkwrap":false},"1.23.1-beta-1656679839000":{"name":"playwright","version":"1.23.1-beta-1656679839000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.1-beta-1656679839000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e9c42a16d844913b4c1a5bef149de1414d6f7d4a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.1-beta-1656679839000","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-RH4x7yr4hmjsj9i7z/nc2S0lgp+jI0WWWKKCbSUKr/TYabOP0a/GaWlTZf91pNfQJBQwk8o2SdTN7+9IUaGLeg==","shasum":"bd4d2a33277b271e91899c1bac00065cef6b9035","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.1-beta-1656679839000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBTI3CX8hYYeMlvFsPbdnk+fNrBRloczJtccr7wdfBR0AiEAjnrXTbx+fbfUAp/0mLXn4kpS8IDzUaUA+xQ/sbh9goE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivu4rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4og//XV0eid94yi2ELur59yoSM0PpLnnJDjbOrb1Ft6KTAiKqiLRK\r\nvma30pMjsQi0jMF3YqAwiQQuBs2UrmusOQXZK+l832tODh24uvlVoldlvLLp\r\nVU60zPE1L5fo41RUqzUGSIM5BGyatZr3MDM956bSNlv4RzIlwqrlKCXhM2xA\r\nlT62MaBfJJOVsDFLFso8deHb1sordpCrqyVpXbmOycCFLnCHq/FIOfjkei9A\r\nr8/w+KGtqCaHGM8KKdK0BCkIAt+Sbc/BdMOfyi5fFENK7ig+6l14FVzSAxeA\r\n6RuYSj8ggQgUGbb4gCPFShfSwK83fxyE5MYuhzQ0abJRYlXwRzMHgY3o9Olq\r\nDdql4k2/oeak0iX1kKy9tGT5MLnHII0NUA1N6+m5vGtvrOTy7xeRksFIGmZ7\r\naS+3rTVQB1tvfL/iYjOoyf32AE6BFj7pARDrQ/VOiUpVxLXiY+DEEkrA6h1q\r\niY4ktdnkPn5DO4k33R6MikOe4iF0qapLpi7J8X3EgIarwIsQ2qQHpSNS1g68\r\nPcG5AylguNBvRK7Xhb8nQXX69yKoHLCn0QqB105Njal1HHAABM0mE/6wfTN3\r\nLlmWK/8/JreGCGkmna7ulCBSvnm2VwTBw5QfwSpMshqPVSw5o9F+Kgz+6FIe\r\neYYRdFGlRk4au+tqbSRJBcMohDBa0EJkkjQ=\r\n=B0Bw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.1-beta-1656679839000_1656679979437_0.8077563617669228"},"_hasShrinkwrap":false},"1.23.1-beta-1656680611000":{"name":"playwright","version":"1.23.1-beta-1656680611000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.1-beta-1656680611000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"354f6ea337bbf8543ce0b7545996407feeebb7dd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.1-beta-1656680611000","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-OlSLwi4OKBqPwAo63Gba7iWFuVT4Sp7IMQLgFOBRwUaN2WrUKAWvhKarQXu+rrV/KBFuzjzPRgs9q21CcQzyNQ==","shasum":"c8cf3437b202ff4762fcca6e4ba5c989bf5b9f13","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.1-beta-1656680611000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpXWP8kDjBSyXyGAx4QJ1kg8MOZcoxQUBSgJ/weDZmqAiAqGowHzHTVqC7xEoWNla0RKgwzotHx4+8t2XTXSDqCFw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivvEdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwNxAAoaQE4v3CQL06wK8qd74AC38/axxKiAOPEVNn8QA/wWMAG7+Z\r\ngTP/jTB4suBXbENcYy9oU0k8UvWWlXsWfS2zKnD5nglOSbeDaAsYNm6XxOTf\r\n/+LVybwuO5GV4k9SUoQFFSFWQG9AI3lf+D/w/rHsozhxk3a8ko6gvNEFgtxs\r\nMoqzruPjxj5uWoOWPCcr+Z1dLI6dmnMihKP+Rw3dnPAdFuJ/G2OhoTTaDoDK\r\nD1QiKhMTvDviVeRelJU991F1qJcdYnh+xEplpc19dFGQQ2BoPXiKcOMVVABb\r\nTuLyOFVrIxmBgTOxRjfJbm+zAHt10BojNYmfsD4AQUAE0lQjB4aXCzA3BR8D\r\nKU1FjUbBw+kP+FLJplxDHb0bgaR/gOKSoYMSjx7AkRRE9WjH+vWjykQj9id7\r\nDQym9LLIifNg6o5UYXY9O5KKjkcAB2QoFpIM8PciGgOWVAmumlfF7oSTCb+j\r\n6MtgzkPsDLRGwfLHevmL2esQpxAxVXAvojfuAOqbiD0OI2k9DFKu9bMgGZ0B\r\n5dN/1TmwZcClhG/prnB3qgGen4Vwzgz+9zzjuaVThVGXq5mWPswx9bRMEbMZ\r\n6zMqH9/x73RRebzcpqEacnzRWBUIUzN5Ni+dvpvFBQU8PfV7Q0C3KK7yUsGt\r\nj9EFUc33GOlE+ZYfMKuHPSr3bOkfJNStS7k=\r\n=Z24S\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.1-beta-1656680611000_1656680733750_0.5304176304802211"},"_hasShrinkwrap":false},"1.23.1-beta-1656692892000":{"name":"playwright","version":"1.23.1-beta-1656692892000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.1-beta-1656692892000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2b64bca12bce698247351141478ab944a610d1c8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.1-beta-1656692892000","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-l+5ERvJ5EJMAnrdX6PZNEwqfv7scIeKOrdgiwycJMW5Rt1l0gXfXxKpEEvtooBWMf69lk0YOEjG1+BS4DlzYug==","shasum":"5d3d635be45d8773f150231ff745dabf629208d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.1-beta-1656692892000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDywkdBf16nEjQEu0COFitMvxJAnnvjH72QISJBloVLGAIhAMdhXt2weVIrQzDmjcbkp+2iyPO4kH3U8n5s2GXxubVC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivyEmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoYPQ/+K9j3Mi88UJtozz+znacEhaRFba9UTGkt1JLPNQ8nc5e4/DRa\r\ntyrADUBSffpsrbXxzYxqJ/P39H8HkhZR0R/WSiXbDqeq8we+kox3cxOCGos9\r\nsxVKqQRRQa/kbAHX8tl+6QbWa2zAyxwgeej6N/rRHCOOBBFXTX79FbCR/gPG\r\n4EDs0fdajy8UteZCvdmljKPppRJzK44BuSosDA04LQ0vf9dJJc7nDEGzdVpE\r\ntCpCpZqkycrfUlbqWYmXMh661CF+2WeICDa3sgC/yIw170+5l4qV3dHrIUVh\r\nv8KYGbnJ5T/79s83sZKVQL0w5fr8sEyw2Myh2LyKdiYeaJVgufpq+rOWhG47\r\nJiMAbdioERpjOudsUMuUUZL52gC/SfKZlTfbiLf3V8zcUEdDzbn4ncnt4X2k\r\nHF6GnhHiY/lE10E6vnBEveTmCpanjzH2e1ss1aFEAzhSLBx5tPhrkKhDeaUZ\r\niPnR/EIRzcnMj3WeR6qqyKFySaCH6vVotISctjsRtSznex+Pzx3ba734iS4p\r\nQhBKImWxnKq1cpUpQJV8A1LIQ4qpcsDEu32HIum+hsUv6gS0OucGJ0dhj0i6\r\n3P0yCRyiNECWM+lCXbeVaJBuBUYRJGRLDLMpbGh3ZbGKJpgbMtzYgdVCIcfD\r\nhOw8YsXJ4g2c0BzfvfgKwsqQWioQT2Me49Y=\r\n=fyD1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.1-beta-1656692892000_1656693030145_0.5523095851864928"},"_hasShrinkwrap":false},"1.23.1-beta-1656696173000":{"name":"playwright","version":"1.23.1-beta-1656696173000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.1-beta-1656696173000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"19790a0e704d92d30870678b58f903bfeed1a14d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.1-beta-1656696173000","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-MvJuwfqWZg5rmtF3LK9UATg2eUCLFQH8EeCagEsusnzAMtCUmkYQnebn9bJSr0aEux4RkQXQdgxzrot5d1hk1g==","shasum":"e8226c358c2fc354629e2ce65e4d4ea3ba030192","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.1-beta-1656696173000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9Ko9sa1EFu8x9bw8v/FVDx+YtweYM/Wo28ORkcspwgQIgaSy/Ar2mnCZYXIk2qP9liziGt1qYZwHfk1lDKuQYy0U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivy5hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSJBAAm4VGx62fXDKaIjXDYsglrEP1jty5fS6Vm2CfmRNXldNUtCs6\r\nt3BF0bvf5AL68SZa/sMD3UOiylDSg9TXuLM17M7mMzlGscY0KnmKNHqXj7Ay\r\ncEAMDc5DhPRt595TgvcbQ07faUYUgn79KX6rNVVWi+EKDQXhsttp/f/cSqLu\r\nVM/HyWicS7esJ1DFKJ6AiZ3Bht7ML5uvOGWXkquchuGMX/TF6TCTMprL4Udx\r\ngny7MyN99Tdbctdj0j7Xio4GLEaSgGkvjMZSgskEDrc/5KFM2cIRdAEklqN3\r\nSrwmj+tsB/pUha/ypoSd0x2O8mpPs8OFkVQghzpKIr6VkuYD3l68mIFmOw/a\r\nJeiB/p6nxSVCH4kbAwLMQYnikhhrcvtqfR18uPbiAMhYBptyDc7oWE6plCIN\r\nlJuza0u8yVC/4MCKdPPt2mGn3mJzsKwXr1AREdEiYcXneFsrxc/uWZdASO7s\r\nSQZ8HTo714Tg4VtXf3VyLiNgA1wuNczelYTh50Pq0KFUQu7Iv2B6JASzjK7w\r\nu30hiwE0uTySjVj5oEUg5mbMhDOvTzA5hvbLfDTLkJ9L0tut5+SAS9dOnZY6\r\nLexRxnEMuKABgeie0IKGeks4i4bTZvwaJ6yTcLxwJNbdmcZZW6SVvPU+kpWe\r\n8BNms3IUJ3kjgfA1DKuF3ErdVXVBDbzskFg=\r\n=VAzZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.1-beta-1656696173000_1656696417488_0.8748446673242691"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-2-2022":{"name":"playwright","version":"1.24.0-alpha-jul-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-101.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->101.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"71dcad3b2e03231a4f88d58e397e69417254888a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-2-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-TBuJQkKCwBSGF8g7Tj6UpGioUu7RkfVFubra2ypjGxg4N6KU6I97UU5m4nSUqCd97rXoc4Y3ZaXkDHQWaxLSTg==","shasum":"172709b210b468057e6b871613bf71861bb256fd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-2-2022.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9B3zt8QllH7Jbj0oe7AsnEwbr7/KE/og2X6ARsBoZLAiA0NHAkS8ueHotOByiwv9sj9Jo/1/pXHSYPU7hGq3DSRA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiv5GiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmphAAoilqrUf7R/0uvhqwsDuyp9RRdb4nUXa2ZHyyukri01LwsZrB\r\nwIuto+KhMQE8kGx8iDxyosJRutvkuXNyG24RB8k8KDKJRf7nHAFgPCs2LAQ+\r\nAiyr18nVIWqJmeDw7KnuXL/0Z729PvoSp1/zIfisWT/ZoqvDS6ak4Oa0F8fG\r\nj8e0F3pWjPoAnRxpJZcA3It2ZLR54k3FjDtq1shPbwH4YB3dh9faxt0oUrEy\r\nCeca/y38LpQa4n4GG9dk+lGK50oeErJs5LwDateEq/8JU1iK7NfUB/CPhb56\r\ngpHU7+Twoxed6EMquC5wyneSXECu1Ty8CFKif1ylFdLhDZUbXUECaVPsLVZZ\r\nMKmpEdOv+MPugaUbNct1Atxy80Ya3pR2jw6brQLcQRWbmPOZaEgihc8/ZMtm\r\nXgMY2BzJFBSogTnYaHWIEmmE7tciPMKTs5yaQT3NdglHmpD6/yUJxaDTSEhn\r\n+AclqFhrmvZeTU01CSoRcJoiFlTXOjjY46JwHMTDwZvNsVgsI9gfYXFW9bQw\r\nmPH5GTYeFsOMu0ArVuiBGLASO4X1PHrF4+dbHQjxSQEst4ddApzeZzF2cXkB\r\nJtrUq3oIp+DUnAtQAai7Caww+4/A8JAtzBD+kIVaEfKUbAa+dTnRUyeOsysT\r\nFAmB0IUKyfJhT3cB38gIM80MLzbp5t84jUc=\r\n=AIZ4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-2-2022_1656721826418_0.5887748357317646"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-3-2022":{"name":"playwright","version":"1.24.0-alpha-jul-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-101.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->101.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"71dcad3b2e03231a4f88d58e397e69417254888a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-3-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-qQDRiYZFVUTz+QmkNKj3JWGp5alKFR3OyTEn78YY28oct/giFOcf74Wo4LnRyBQ3KGpi9FWXJ4tbdzCqkOHl2g==","shasum":"41763d8b6f567f876c26f34ba28c849dc18f28cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-3-2022.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/qDbH7xyNpW+uR9B4KOifQePUW4tXs7Qg1S9/XGCvFAiApf7MA/vUrc9SoRDUz5jUyjeJk/mfZvdeQ/l+kb3rX+A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwOMBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2rBAAk3UwAHOeWlVw1Xg5kjnB0uVOG1Rk+8afQf8NuULX2LfFiuKB\r\nR7UJEgdZQ5uxUKW1ShVvSFof97sVWvrHjelzoONtPOmkJTYwq0iNVLuSNcEe\r\nLQtmZwTpQk12wLfT/elnzJupm4uEyBNoXwtXvY4HR78YDfvvmmC8iuoxBI5J\r\nac83Cz3PQ7b+GIxiCuOpqZMtUeyS0MxNbcCQoVaunx0d/ghOAEpD9TkwwvHQ\r\nn+vzHdm8xXqfr/BIKnkIgKI2VE2GFka14qmoBiuIkdS9z2VGUpO+Z8vqowN0\r\nC1EKkigo82Z5k3/Ag1fj1/aWtOmhGAM1y6PQbJcKOjhilTjPwar7XmkP5nxb\r\niK135+Qq2NtaohgJXFpz2DmOaiz5JMLhNSVqy8+nmLelNixeVlxdasR7Zyym\r\njIceAh0h3pgr71X3jSG7IMMz+DGi22IgduRbNsexAHyrgjVDlDSuLk3TbPcJ\r\no30/7PHdo/X3k2H4WTfKRserOQhK9i1IvS0p92aINwhZXRYAX6ionNcrat4Z\r\nMnGf9Qyy/mxq3fya6lxGzZwyW0PuwIVjOiFQbHNtZmFWWI5Diq1FjM/EJ+uC\r\n+Qfv2OUxyCP8M1m4Rw8LxuQOh3dRwfOI2YyTMxPIlrNmwqXz7a6HEJY8UeKw\r\nuzV3mIR1YoXwM9tXFWr0NOevTOHrO5ryFEE=\r\n=JVWv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-3-2022_1656808193361_0.5302078748594339"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-4-2022":{"name":"playwright","version":"1.24.0-alpha-jul-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-101.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->101.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9e62cc4da970b2256b4ecf35a4485adc4c40dd33","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-4-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-TWskA38GMuvufYecChfuMNvWgwCmpcT5PG6uo1jBFHF0gzNVuGLHa4F8ILoHOIfR4bZUxWslpI/o/NZrKY469Q==","shasum":"7ce59b621754791389a5b445f4dc9e9da8a458ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-4-2022.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9ebremItWZn56B/stu/NGJmGnFMG+cotWmaNxJox4swIhAJVi29ESqPDqr0dRRti2leeFJ1/kitcwxzfFKysQtiPK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwjVZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokmQ/7BsMwuUWES4jsmMGYT+BFCt3I9JMb7gjvPjsXywQJcRaiAu/c\r\nI1iIRw7GVV1JFlXBe4Dy2CAv9jWlZrwrzyYmJAuS/Za4OREc23gIUL6KJB4c\r\nuTBS0Lhrc15d0CCYiTiuN1OC1pTxrciipnbbO14/JLVw+4upLzRRlb3hNITV\r\n8dHTgJdYJgJJRGC9bYuu3fo0fHkQgJ/Q54z9OSa3zTy+9PwH2T/nE+7jWPOz\r\nvu8fKGXctwmT08wQ22xJ8Oa80LcWO9olcuj5hD4Tc9C1VgSzZwBJFMBu1WqI\r\n65blOJJeaumODyht33jm1ApY83Xsm2uHWWWtX9Kftl+OQenGtYyMfKDnYR4C\r\nPErH+HBEqEOdl8iIa4PU+IUciXFJpMUjGs3nFEqUBSOB0sDByI28gRURPenf\r\nDHp1413754rnvJGYUDSMWbeD6Gu7aViKtWM5zb120bMyDu/eT0pWWkbF7PD/\r\nnvDCe0cVjxd/dEoTxWcVAUEhLxunpqGsXe+HgSruhv/Ff2RjXXw460857CXE\r\nTbu7ZhLsfyDmFEZlgg7F+mTTQSnV4cy0N3vdbY6wIJ7n+QowYUDOVqKAu8rx\r\nbYDOw5OaW7zd3D6EeWiYj8pRBcl/FfhZxh7OLpLbFJGmyGl2hhznwZ49pq4m\r\n87WK/UwcoaeXlfl1d9twxVOtw81cSAEipYs=\r\n=Gi1e\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-4-2022_1656894808624_0.3234059696490048"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-5-2022":{"name":"playwright","version":"1.24.0-alpha-jul-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-101.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->101.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9e62cc4da970b2256b4ecf35a4485adc4c40dd33","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-5-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-3f8NDXzh8egnNg4CcT2tcc3sbBRzNAq9sQ5jesjE1I4tmrDs2t2YGtaDMZCxEcMJBDgv9FADePTACsfhdkOpww==","shasum":"75dc636c23de71fd53685ecd5279e165f3de7454","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-5-2022.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsCV8u+c3XFi6czuLXYN1sy/Kmf34kUwsThs010nNBfQIhAItV9L711/hhuwhVVkUW54btmWURHpU4FLZ7zEPLVTtX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiw4VNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWkw//Zk6NN7fWYFrJH5x9FKqtJdrtQI8oUpUp3Xj3lSy1sBUIWuVT\r\nJiPN/oYIQa9llW0iurDAcMhXcFjNoOhdpiG0jDd11EE/KAdKurWadi/hkyqa\r\nPuGhwgOZj6Unob8fK5dicT2dlzm7766YO4b9Ld+cv4I1jUF744l9T8g55mpd\r\nxhd+7vG4p5sh+zna1US20Nu0gJR7TJ3KzicyElAOXAzULRqXDObvcO6Vd4ay\r\nB7BVLB19fyo2DzzjuwA++b6fIQt4ve5TgFn97Z/B0hO3ylW8CMyqV23fnRJ7\r\n/kG0Pa7veqWKpfwRDCQYCLa0RpPaiG+yZUDGXyCqAsIZrOsUNEs8PhgUno3e\r\nnsPWXxoiekRFHITQ9J4YzuJwRCCHrru8P3NPR+5pTkgy5ke/9Y+7doE6kUTl\r\nqtDUqbfao/t35yYtypMKxFqIfkeI/DVDu9OVnis2IoY6WYz+1E/tCrqPhpH1\r\n8ptSudD8cDbvmxMdCQtQuplTQa7EQPdC77+1iu7juWgGOcpEO/b7rdCd/wzc\r\n54EHzmjpZpVrPLpbXkVjTpTblMpyxApcAikSbi0pHBTEB0oiu/IY63sYdous\r\nGJEArGLBHmxTK2UyCeSHupSaSjl8MrhjZ+LcAB/bKXQkr9e7LemXXo2uRiQ9\r\nI6enjTSpuHGBXYYIoJ9PW1L6iD2OErBnacs=\r\n=v446\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-5-2022_1656980812632_0.7294410895672734"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-6-2022":{"name":"playwright","version":"1.24.0-alpha-jul-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6181b0dcaf277a6acc049c995489cf9ae0cb37df","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-6-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-BfwmfD2gqmgVjsPnEPtK/QmC8uNTKfUse5W8yUm2muB0viEOAVv5TlnvussNyD/Sv/yK84nl8CNktsMSxHXB+A==","shasum":"758a65f3c47a767b96ba01af0199b1d415790286","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-6-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFu0zY7v7tX9eA47l41KhpqaV3zFXt0auMOtzQVVOvgrAiAm6SLsSQE0hLvRstPetf+wlGmmet1dCRbK4pHAx2Gcyg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixN3WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSPw//RYoOZtQ76sF4SuFJ3Tf8JlfwKbJjJMd2VQtPsFbYctgY2Rs+\r\njLCGl4hFYdi4KJ0lq0UiZ8cAHPotx2IQwyNq7tKxKimM+lHH5eCFVW+DqF+q\r\ncBfVkVjWg+DFCjsIuN7ZOBaw9EXwZhxbZRTX8IDS5llGozO0D4tNv8Z7bDpb\r\nW3pQHaLAUX5Bu8UzlGdDKj+a6bQkCwfnpB6dJel81pGaS+WVCSqhHrrzQR/B\r\nZDbhJQmLauX0SKa4QthPP2vdyhury+o0pLHZfqi0gLcuV1HjO+As4FIupboz\r\nKz3BXMsmtOz+JnDfJxVBQoR3oaLVownYv2hdxsnh4qcS2P6A7KFrRKYUBzzM\r\nfevRFzJrJJEJ6gSrRdz548odSYPhZr9U6t8vUhD9sA3bYS2HYBxlV7zs3Usl\r\njmRtpxpuzl/W0BXId9VFZ+cHP7qa6xoqUrv5+nxq8xxDN0R7IxJlsEr6gSPN\r\nyBXRhTpmM27dQqfI5gcqGbEB43KSugIAnN8QpxwLzIIQU2PY33yhvxz3DX/U\r\nrKM/7HwqDp6ZSbpxrBTAh42XWXXsXfHzrqj3PnW3cz00kbzt+5JHOEC2xj/4\r\nlFdEIUNtE2l+T/tfF9/GtfMcvQcRAb1bvygic3Iyov7DuroeZ9JLPeevMSUF\r\nCqv5bv7Nrw//h4Fc28atfbN6nJxiHqBDTDU=\r\n=3xPJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-6-2022_1657069014080_0.34417446749775094"},"_hasShrinkwrap":false},"1.23.1-beta-1657141329000":{"name":"playwright","version":"1.23.1-beta-1657141329000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.1-beta-1657141329000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"741e338fb1a2bb9306c4c67122dae2e0f982bd28","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.1-beta-1657141329000","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-jZD9++lD+sm210LuJv3WGLAQdGGIB5EQcD+VIkvmKN4lnSX6LhJ/RZshIEXKnA0FQ9LTHbQ9/j6pptWBY3mkxg==","shasum":"90d017de18746487309d5c440ac01c81e5c13f90","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.1-beta-1657141329000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHrgphc9ZDK94hZVjtcE1p1XVGP2cUKlfRRNfiN3Alm2AiB8WMKRgmGHuwbvplWVWhG1b92BcjO2wi1laFFe4SLMaA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixf4pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrC6w//Zk6Hrk0jDpRsomBU8iBFaSqr63U30dlpfqmvE5Aq4Hl0MTsG\r\ncenUYKlPe59pLNfAhuUCpvqdt812QR8jdjmlHnGjDAv52G9WcVubuEbb6hCj\r\nu4zrspnb4H8Jx0LW4HGsgWSGBqQbHmdryi97GK0ZEDIaltGP7bXh2b1ggwN5\r\nJrwXzYOZ76B6VUY3kAAgJkSZezmr6xRLtDkIM+MheBXi5opcBPBp6wbsLA1Y\r\nQaKpnhXgsqscfl9fqig+4YK4chcbeziC2jB2N6KDqyeombKxbUGGQfdT4xaL\r\ndnty5IlqWYW5pUC7hva43ZvqyFSm449DQ1X8T+AaeHH9SuwmVQpkZQor3gSz\r\nheWQYvHU6zGFUFNzNAO/NCMVo4loWa8MpFU9XMDznrp84JAlC3PrhZ2Fse75\r\nko29Sk/1m8wodY66cyjbB7fRwasjOq8yLN/JkRfBwre910CUiZ8NgdK+VEza\r\nl07F/ouA2TObfmJDpUVpReMn8eN/8vaeQg0nqWl2uvd6dG9RBwni5Yjbsy1I\r\nBu8deQW65nYZZGKoS7+0ovNQ7LkgPOrELZasVNVNEPno+SgIBgNmRKQdJqEC\r\n5prQQFdjo4Y5XVGt61bF6ywtOL/I9TY8luwBk1gb32FEeOWUR6L+ICHHhW7i\r\ncycvUy8QDPJH+8+zWo0u4InIzF+ZC90rdN4=\r\n=8vHY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.1-beta-1657141329000_1657142825068_0.2778248556259073"},"_hasShrinkwrap":false},"1.23.1-beta-1657145110000":{"name":"playwright","version":"1.23.1-beta-1657145110000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.1-beta-1657145110000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a2acf769eb59868b1e00b0adb0080a2a42c1bdfe","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.1-beta-1657145110000","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-hyZM+C0JsOHye5FCL5qEqUos/wkRTIhqnLX97Qgq+8jG94wNQdHcUU769q7FcEYgLf7s3hkL5k4FyBmQJIbmmA==","shasum":"f9d05f2f0ef642d95dbab9a70122cc799a567e16","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.1-beta-1657145110000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKiWTJ9XFaR710C83NWFMJlguHUSsApRpMeq2b7nqr0gIgIgW59LJAAnR2FivNsnonC0EpubKhSIB7UXrJExK6Y10="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixge6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiaBAAn1J8b65rnch+liEyVNkQIZXUEFiH9mMbees6YA24HIo7hehs\r\npiDoeSEADnDKEn4zzZSZrt/lrGM5IWbutY3wTDMVj6vSm8ukOhRK0CEZ3lM9\r\nAdbiOSYr8B1gWI/JHWfjCXTEJz5JqBbwkpKltNw+maalEwx0O3t/wFzm40LC\r\nw3my2qNHV+nuWp4MzV2zf/vpL8Uxx1FkmZ/TDH1UQ6x2BPmZjYPt1BMSixsK\r\nWvaoqrOE8QrCW9XHTZdtEKsJTl6KvXrCAM4N7sbX8CPA6odg+yCC0Y+AGSsP\r\njoj+fY6Gso343fM1MW6CdooiWvLIozqBRPkaBpfhLlhTuc3LZud78k0S8muF\r\nIkl/uNJHFL6tLnju75tabgILCLfeIoY60PRw6wYaB8mh2V/To5t+VQVvPWZn\r\nIjBSHiktWv+KiIzcOasejYw/hR4KQrvfBn3+HPekYFt5z4ulNc3XPvEt7PMZ\r\nY1rUwU1I5sTq98lSt+RLDwOwGL9aICr1oD2+XrYw5SK7HDLfhKYOiZkfqJc+\r\nu8V3SwrJVos/CqWjbWcvdMcBpzPh3hK+uNnYlXM6jvjHq5UcwgBMYwi2k5Q9\r\nPOgmntbxKraBC+9SDeOpKJe6tUzZsWH4SGW2BjyL9ateRC7+AHqI694rpMj4\r\nht1ZbzP8F9to+NsYylbTkPi6VAOPoi8FJ2o=\r\n=SkpW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.1-beta-1657145110000_1657145273896_0.2721185573455429"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-7-2022":{"name":"playwright","version":"1.24.0-alpha-jul-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b9e41df0a5715ded4cdbb7a9d5a7d53defe25f5c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-7-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-USsCuUyGUR/G6E00JAPY8LJZX8PYnshwKmjqBe6WfeFYVbr5bD2H365a/gtrvCtuFWp1j4vrh8U/7yk7j/QQPQ==","shasum":"d68f08edbd68beca24e7e5053aa9a32cdd92c9ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-7-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG1Z4cEUCwSEPw69fNNrCSGQDKftnwHXyrTfaC6NGW4BAiEAwR7zmAzGwtY0Qp3YtN1eoNNl+C8yFlJMDuFu22ZUn0I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixinWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0yRAAjv7RNhLIyH6as/UFgbvGwhEkMWQTtfDn++kKE1KAKuvXH4Cs\r\nItdV9HzhWnAg9TqX7Gnt3bjyglKPMIMTy4/omCVX/KqrcoGE7K5ADVScBNP9\r\n+8ENCdhlomnIXdktPbaHCZDuSKscYSmmNTLE1aFc0W9rTv7i+yxTEscVBiAi\r\nGAuMYgDB+wnIy4QQ9x++v0v2Zhb/1NVSnYe3N8cRJb4Nj7l3GHoQ9gZFgvob\r\nAKowRoEFH/0vHZofHFFziA1LPGAOcbs4cqEro51rjSpvjlDHWrnneLyGOvBh\r\nwfU8PXLAYcu1ZQFUdOKBcSzHlqOOn57s/uS+4F4k1riC+zXnZaIJhSRSLbZl\r\nH0WNXA0zhx6FeDAJBnxIYdbs6Rel4fZyxEz2EIxh5AOiKuA3o5u0Kx2dJfU9\r\n+2qbX0x9HLp1PFcXEyaYKMwZpSQE5lUpmibttjpvF4Huaty8WpMjwxlEQ8PY\r\n2968YIUnIwfq06Upnposq9xK4TnT6UDluBsW/i+iXsI/IUl/vxmcLlSN4ueH\r\nsR76nZu8f9NYmGiY0SWbO1rhDtTzbU8F4GWYTmNdvidKQySydS4aN4Ydx/N6\r\ndBv6yF9aiRhWHdfEFDlHUsS1qi4zSu3ITRRafnVBkp9qu8J4UfXGTkK8kq6d\r\npxbHaeeujb3UUWqZ32XcTxpmuAhL5Yksr3E=\r\n=eYjI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-7-2022_1657154006029_0.965573730842898"},"_hasShrinkwrap":false},"1.23.2-beta-1657218473000":{"name":"playwright","version":"1.23.2-beta-1657218473000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.2-beta-1657218473000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"56e04df8aa6f59acd91b92b089ec181119ae2168","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.2-beta-1657218473000","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-INQx7evKKDbLVctJV/osXXfCRaUjszT2raO/5ZrfROkx/fLfbqxUeiDtJTyhMUyWOTVETXzXsnMAXBewK5ybEg==","shasum":"135579663d33b37d61d57ee47c110023bf49f22b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.2-beta-1657218473000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzSWd5+MoNbyyoo2s6TxlLp8kigRLmLk654pQHF/tJMAiB37DyE/4F/+0ENfBXHGKhcONNV4nfCvXu7266oKGvgiw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixyixACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcdQ/+P/QRChylhiBQtqSzD5oWN2bLH2RgLoYoYnHfxxWYAUbsIQop\r\n807wk9A0IXjhGimSugBHlS9t6AD2bCIS3zHwTIjmD8uc2xQzNxpG9xmMDTg4\r\nYhz8wGYVrFMhiIOnbcgzN/1gQ1IDUMI384lTnfpq2LCKup6HJ2emWrWTLXfd\r\n9d1SW7S58UOl6LQh5JjogIbZQ5f6UL+Gbh2gAAuNlkryJlz/C2b6T8g/vsMz\r\nmdjxRgdmoakT2O25IVsGTs5RF4ioSq57+bF24WGqg6FJo4+NzTkROYLxBp7g\r\nRY2UrcP5zVKzf42qViwH0XItsKx56UYg8DnaVox1jwCMSKMsKSZezWguCepz\r\nLDV1MNKdSdRLewMfaEKJIAJWoKBELQwU610sQ0//iqvnQsNkKV2CgCmCo62f\r\nOYbYr1uE5x3gb8W6zHSMEyWEuTg5lendcWNNdukVVdc41g0UYEm2zCZeXn4A\r\n7ZFNC2D4AkSYgBMsIyH5uhSlcTsFVRMsTQK1T8yc9NHmGx8ipdTAU2VWADZg\r\nAsdM90jl/rJIf6js7mZASsBbgXldusYwEMHwJGmVhKn6stLbs8L1dnDgazkm\r\nB3D1cwWKI94j1TbHgTzXtAn3mDZa6gWsO78T3sSzGVUqOVZaCopMKZanHWnO\r\nWLmw3DN97EzjRgS8Qkk4QY/iLcQUhOyu1CE=\r\n=R8I3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.2-beta-1657218473000_1657219249026_0.891480557248026"},"_hasShrinkwrap":false},"1.23.2":{"name":"playwright","version":"1.23.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.2"},"types":"./index.d.ts","gitHead":"56e04df8aa6f59acd91b92b089ec181119ae2168","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.2","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-c7nyyuDRifGBUNb+/zZh4AjyQXQISVHZY2cpHCsSIWueZNtY7q6Qfv0hJbVdtJhWSGgcix0hmES30l5jlPmy5Q==","shasum":"379eccbaed58ba23152d02934b4bc5104b4b7e60","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.2.tgz","fileCount":9,"unpackedSize":24221,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsBl9dN1/kYaXV3XYZxtNyOEi7TCAyP8hhGjB7LkPcsAiEAxt8uvLloAx5Zrtm3W2n+Ak5oRRgpQfTXqEeMoMAT1NA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixysrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruRA//d1nVj6Otcg1Q0DVRSbI+TYdLefWlU6ALB4S1TmGbMiA/wfKj\r\nQf2ReRiauwmLrzzVaZ61CnPc3LLgnlIXflnWrQGT9IQsMLf5/Kf5FLQGlnjl\r\nO1IVyH8xk1IfbxolychU5zUTQL/Z07hRDFVxYchsCGvIlS2ldXwDCKbNz0+J\r\nWdecP23AfaoRj7hPw7Oq63Us7RTAODNNBrO4fjq1fKhG+HC+ntHjuaEEtHXv\r\nghgj+tvFWiPi7bZy6xGCnUvhUctbMbBpcBglUXW2roQTZvpw77ebjG754wsO\r\nHZh5t5S4+Urr5mmOOdel6DvbrjZq9pq8iFTXmLNvFDEFQj1NX6LSQaS16TM0\r\nJo1vTDsFXJ2NiDic4LciaUXqeOu52PQct/ymzaPhQDheCrYCMaZA7azqBgAX\r\nZqnIcFphKWAIf+o724nHsZmrs29LfXNHMSTTJRwGmD6KHQgzD7/N7hPc2CXb\r\nqcJtzZb0OAUSieFjkt6xN9a24PL5GdjjmtrYUDktMC8W/HlNX/07ZgCDisCG\r\nx20e5OzEWvK7eG3U91x1SqZ4PSu1ydmwwy79LBoqjnZrfN1YFTVsDiPDrdXU\r\nUXY0PWVX6yiu1G8ExB1a9Yqr2zE8jmVl4fumTCakfhoH5EaKIfp777TFu1BR\r\nvjgsrybvIGgvBlrUQXW76lxvZ5sQPE1WbHU=\r\n=RDdv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.2_1657219883173_0.11160357394556275"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-8-2022":{"name":"playwright","version":"1.24.0-alpha-jul-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fb3a0b2a4dd24fc0c20eee406649f46ab32de688","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-8-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-OZ5nNGAYZRIIJQeezt/nMEKg8y8NOFXRJlIkI+uvvEG2tXgQnJfBKSyB6gRrIhVy1ldm6eAEraoPt4QGmxnNsw==","shasum":"91bd7a487afc7274e93ea1132d73fd82d09bdb7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-8-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBPdCL4gdftCLEW5h9R7PVPv7TgNjQxcE7+Af7K8bjcAIgPcaBLhzxuplpa3stlpyJFStHi80WQk6I6eOUd5U9DCM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJix3sQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrt3g/9GrgnIbMApwXm37vTMwSKH4iTayseoXbGo6TdpgRGvtGRNMDe\r\nxxlUhMT6o5Dm9qievu94SyWKlfIWMl2uD5BJ7lvcZGKwqPSkeks5I0Q4hUiw\r\nP89JNvNFqzh1TCOKZ7qXnfnacXOK2Gg3QrEbxLyGSvpZyoPAc8c2W5ZChfKy\r\nmvVyClReHcYdSACzUFuUS8ZGGRwD0viiyyEN1mSOED68i0Zedds1yWy1LKvl\r\nRacFAgB1VrukkiVYXp3L4/imlU9D6wsrb/YQVf44oeVH5NP87TDh4MsEuUyC\r\nGwg12vvauytVAKbBVD4yt4E4e14vjElRoivPpXjIDEDL4+wWc2+Jm17DSip5\r\n9ZPrATxa47dx9iaiJe2cARN7A2xTIcjPGH4G7WyI3E267Bm2eOH/fevLiZsO\r\nUY31EwfJhqS7w/PRIdElLHg5aFD8sbwPRHp+eDBzAwvZ+TLI5pPy7Panty7S\r\nOhd9gviUPE+WF62NkeIMsSEiTVW9B2pxopO2qCg6+CPrlyO1RskNbsb5jA8n\r\nZgF1w+krwpFAGS3hkWvxGI99QPveDWDlM2FEoKMmdktrbOFcO1zUDEh+QRSs\r\nO4deEMoJ+CCH4Aq9L528c9U4kl/kS5FtU4KdulwgWbRZ9eqLYTRur+5B0yI6\r\n43FaV7nQMFD7G5oDjOP08X2KSoZGTObfD9I=\r\n=Nu7i\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-8-2022_1657240336719_0.6240598514739202"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-9-2022":{"name":"playwright","version":"1.24.0-alpha-jul-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2e331715ff7b304529a7ce65a98184681eceaab9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-9-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-nXquH4wMgC8a3lkK7OvnKM42J1z2IEeMDBS0et4gexdevH3L9vS2YHZb5RetQdnTLi3J0I3TqHcXq3wybkAp9w==","shasum":"8784c23f77123ba143a9a33cef47554eaa43a43d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-9-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxtzjxOsPw6TA/hB/uqx66QWuw3g+uBlgA7cSxHgXA6AiEA90vrW3c8TI3V/9M7t1DHL+gpoyfqCW5PXWSFdEsPV3w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiyMqDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTBA/9G7hJ7R1xW6fkoagQ6AEtaOUrnZ7js1Yj1yolY0Kds38WIElP\r\nkNZSNadrT0R6xRKiE40FWe1vQFYMOZDq/aSeH9GnnTgnuSFGv6v5BpAe81jM\r\nzceHIvMiwMJJf80YNSrCJ1ah2UTE7cOk9WfKYsqptluKbVXpw6NWW5ciSd7Y\r\nZ9Bo/ae8NxVkFUmT2YZfmauICVK3HNoi/Ha59s6dFjjD/vPCagFRQpp1Kekr\r\np5fg6GxY3tmbTmiPYdK4TuE7odYNZsaI0TYCfd6joPgLHYzPhKBJtQ59djCs\r\nYAYvqo29DUJWY1fl19R3X/mV8SRAGYZCVxu5jZZaYgLSRYKVxYulm1caDKP+\r\nQlpGs9ur3Q4a1JXynCDIUUFrHn8HYEX9MK5R7v0R+LJFS1oPyhqxfrPVhDtM\r\n+wxcXhAIIMm7DbwXB46zFdKhAPspe9S67XHjZp7oe/j10rwg+vUe4clq9iXp\r\nblZxhanjucerIzq3e66cNAmc1/7nBgvBBj950Aclt6nSGSxawK1sdFPbpct7\r\nnwoUFke91T5bpz2IePGaL2yoJGdz+7fRYOFRVO6R4CzOXTp0AvhIeTITG4pz\r\nc8PUYL7Yy8LX0M8qDJLjfeTIz8x/tcxvpal65lsp8r2UyKm1sKUGAIfTs8Kd\r\nxagmcBHT1+ir57aJt5MZiVI6MpzVbEiyCpQ=\r\n=jkkY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-9-2022_1657326210891_0.7771630635840918"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-10-2022":{"name":"playwright","version":"1.24.0-alpha-jul-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd0eb5fb1d7438d76034cb7b2034ed761eaa41eb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-10-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-Fntb9/ZRIkiKZHkPiKpqcioDgpmrDA0QF2yoPIBeEEEPCxipG5znpDrQIj7oYhDEDniV4t4R3n8hd7rlanRKEw==","shasum":"b82f868ec4e00fd0956f94209106f4f1098c2cb6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-10-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcxlxUBXGlJiqfzm/Iq5zQH9g/5jRmWz1aBeMRLsewZQIhALVsyS7+9ubmzxKT4XR1GS2rS7ytu1KxzwbZenihOFEf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiyh36ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGRw/9EFgifVhfYiTVa9QIv1p840i7Y4v+nIU3Ug/LW71fjHv1Y54H\r\nURNIo13S4aHbEWzsnmroaZKojQwafdeS2vgPIBPIeo3No5BIYwOmSP0pvvPy\r\ne2Blv884iI5gisK+zpkA9AzQIXTmanu0BdvGszUB5rwZkxkDPGGE1gpyi1BS\r\nJ5TnVqW8OMuwSiA94cYkjmZFD+W/UI0adAfffTNMR/tvPOMT+ayTEMBd4aTh\r\nxsRN+zP0OyeLq5jSx2Zgre1oGJmndQnl980Y6bLbBrn75oYDaZUhJICoQFIl\r\nfjyw0M4Rn+xdA/S43IoinmYuayu3j4A4C13MrMTIrBuhfYD8m1NEMa/CjHHH\r\nH0q6NV26DassBKoTHODMgTmLR625eceOQFB9Tbx1fGrgcmQbt+rNa7HhOLbq\r\nSUwzxdEbpuLvpffjdc8BXlNz+H86q1dGCIIU4+4U6Ds3lGitTPaFSXHTsCXP\r\ncvQ0O9JfddK5z15YyLtoU8s+HWojEKmZsBEkKGzbgxpPi+4IcOsgzUXyfYSS\r\nwQcfY3V6iaUyvzEhEj+O1TiLtSzR1u/MhQ1jCxFkd2MRiQxb7C2OgRTfP3zr\r\nvDBJbmenK+L4kFuxXna/eLp+kWy56YCEi4EvVkO13OsT3LCO/xXT5atKXefG\r\nfNK/MGTberemwZKxkfTbJxzCRrDkLHFnIF8=\r\n=Fmwj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-10-2022_1657413114070_0.8219734572216839"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-11-2022":{"name":"playwright","version":"1.24.0-alpha-jul-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd0eb5fb1d7438d76034cb7b2034ed761eaa41eb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-11-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-p9JYLzbjQUXgmQpPsLVXJohAvjvc+bws+gTirUumQSrP44SpYsZmK6W1dok6tkaABpRukGK3zKf5VPKCdlo/vQ==","shasum":"4f6ef0d1d9fa5ebb23487a472a51c2c06061366a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-11-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBMIco/pv2grewEj89VE1noVE0UoMhwZf2Vhj6PRjYEQIhANNlmRfxHyt2f6A8C4+YuUoMOLppqUQrJQYn3jJori4W"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiy26dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpxTA//b6c8qulwxw0GAnvof9rI5BbaW3xZO/ZkmbYLRRy4Sp0uh1L8\r\naJK1H1bS9tMm31hhq+4v5lDipmzuD9my2qIhm1l4iU/CUap99Xxo9EQLTtGm\r\n+EbF/LA1ztaIp2HhdwL3Ivu4Q3jjtzUrq/cH9RKdnouFJKYZRy2YlGc4e2u3\r\nyG6jEi7KykxmAJbMzCYswhJYxqE8WOLesP426/dIakQ7FgO5b78rNFwiMi50\r\nj1hoOmNVtq3wdQJiG5qBuyFPsdL7wJ4loM6cpJpWADwoKhK7g2D16exJPtuw\r\nW+OAgKv2prBGzmRrglzVp9WRie+nlOYM30ELafEhZCc5yZBOiQ1w5MAmSQ+H\r\npmr8wuwyPNR6PNZ84MOh4N1z9GDfVxVCUjaTeon08JQFScyNqGhImyUUkvoo\r\nfhkzQ5J8KOcsVb8YTe2zIluR9C75u7P1E+utyhjKaYynN0tVX5YLqLdE1LEq\r\nVYd3rS/7g4ccC2jS12CnshOKTWC58zE4+p7ERjqAz1VLIGMG0j2Pt1oOoWbc\r\nbpxFl0xg6HkeV4YP4sg9nc+mY2AkyyeCIKggoQ9pfrBXbwCWl5z5+dyn9dif\r\naCIr5OQGH2m5IVDIStgx8AWahFM+Qew24lPOyXbQ0xTG87hbtDf4E+8SqG7D\r\nM3oloa7feYOYz/oQa6RznWbDqn1F8K/4YhU=\r\n=h/lQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-11-2022_1657499292863_0.5582660308967484"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-12-2022":{"name":"playwright","version":"1.24.0-alpha-jul-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"60b34e9091a19a0fc3172f452df1adc35fc37042","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-12-2022","_nodeVersion":"14.19.3","_npmVersion":"8.13.2","dist":{"integrity":"sha512-euGEk1vpHR38eyS0K+dcg8bcbEY+TKF2xNG4jhO0qUk8pPM8LClOg87NnLl1/dhxkKWzp+8u+ezm8yToKZwTvA==","shasum":"de1916bc1938fd04ff877d1b292512473cb9f3a6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-12-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzakgB3hiVFWumuF60uhWWhcB+bKG664o2KzKIKVtEEwIhAJu4KNBAup6I6jql8eRBxWI4bQOAvgvx+9l/9AREekC0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizMBdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXNxAAjIDGzlHYKvEzUj3idVTxyTzz25+E/jJIkNfgT1eTJHwfVW2F\r\ntgUYWHOjn82EGa+crpdMProgSww5tK8mEDBjcITskPpzLxAMV2RA/70dZRYH\r\nXWFoB+qhLQzycfRuIlxspCCH/ufm3Og6zqXyxuvqxkjHiQt1UNFJg4ukcIpX\r\nEBhbQoTA1rNZ2yJUuncEGfpHFaXg2ZaBWtKsz1P8iGmD4aY+Da4e9QFu+FJQ\r\nnloBf9b95B2ljAugwd9G09neG6qlrfKnOvsnV6rYK96x8Uvi3b3TeGHn0UNA\r\n4L1BzIeHXLbgxSdkNM61IfcSxOYLYJkNVOc3iKjvTHYJGACGLdhH+AHl2xpl\r\nwayGQazdso+nZweErwu4qjc6GfZVSQM/JMbIsOvRT0WYRc9FmVT1I2nebuq7\r\nf9j3+uTaZzmv9AjNuAfvzzM3trv6PN+hQVd7GIh+sa1O4sCeSw4jp0ZbbGxD\r\nDHecK8Fqn+SSbL1ot9J9Yx399AFTbVUumV1xkSxQifU+7Cb02L814ed7+8ri\r\ncrOqUhvmHrjqqYI1gUM9tMIBYXImwHHc/y7uZsaktKR2C7JHXuDZlG6HFWhK\r\n8jV/qcA1wQ3R6f804DyIt9Y9RIqsrd+DjBSjG+vKOxekncPqb8FV8RB3M+ed\r\narqQ26ZQGk82Dxbp4XQEYaVtkLATEvW4sS8=\r\n=hLIN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-12-2022_1657585756803_0.7844865625896837"},"_hasShrinkwrap":false},"1.23.2-beta-1657656327000":{"name":"playwright","version":"1.23.2-beta-1657656327000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.2-beta-1657656327000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0dade6ef0e479ed03370d3108d41af057adf821d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.2-beta-1657656327000","_nodeVersion":"14.20.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-78Ilh5aYS5HWn7hwFzrJQMI4+Jg+TTovWjF3BKhuq8q2KbIHW3430g8Puh+sl7ChGxXwT+9ED8euAGomlx/Ucw==","shasum":"dad293cd22d878ff7685479791d770147dd09835","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.2-beta-1657656327000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxyPYuOKye3X1JTW+2JeP0TKyVHLyiJ+AYsZLHPVZx+AiEAqdqf2Sty7EAR84i46ITkDcR4qVQmn5+COcdL/5Czgco="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizdV9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrySQ/6AkVQAcuDXIySyALMZlOOfq3FJX67QKJNwi7LyI6oh8ypA0Qx\r\n0YEJ0TpmhNMNWnM/7YB4R+hmZv0wl01IMCR/eDlAR5SHvwEeDvVuvq9Pl5Lp\r\nEFZaJkHVxD6NHa0mq+Ln6sLYXAChl1cZj9gUG5VjfFWUJZQzAbdpJ4AHLP3U\r\n05zpargTnP5sjQ+JuawZlKCaadkMp8ARz8KFCYx/ft41jRhqkBhUmaX2t3J6\r\nwkt6Qqr+MrkGU5H+GPyGF31Mg/rhbNFqTQZRel/fWYqvaygF+iaaAXsy+Bj7\r\nrHRrTVvvvfnYpH/z2s5fyl0tIVXmX7fKg7GgJsOh4Tv5UTRW3qQgctS7N3V2\r\nitvn82zyxb/UGkTVNim63EFxMU0H7Il0WWRk45YVv5i6rdTD2rtlpkhXq/pm\r\niDW91KErY2RDca4Bv5ZH2AwEUrut4VlDsg0xdDelYmT6QsI2Q5u8kbMt+gtP\r\nI8AOS4ds2oKXvnJ/YYi7uFD9O1csRsm+zA4jZFlOmjij1ZOYRIGOBAc22E/q\r\nMIq2pu3wI7oqi0FLv0mg6E2p0bgt2Bq9b685EQsJMJyII+zpImFza/22wfB8\r\nFD2/t55yxLv55M0s579oeKhO33JgRSk6r8Zg/cehzeJfIJXhs11u/R7OZVmd\r\nfumNkKHabE27MKgbToZjqWstmxefly33jWk=\r\n=NzeU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.2-beta-1657656327000_1657656701616_0.5891931549761387"},"_hasShrinkwrap":false},"1.23.3-beta-1657712993000":{"name":"playwright","version":"1.23.3-beta-1657712993000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.3-beta-1657712993000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6365c0fe6c00eee5e55248db5f1bae33d81867a7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.3-beta-1657712993000","_nodeVersion":"14.20.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-U2xBFbTyF8rwViZqlsc/hvJs5r/UXLqy1Z6BKAFN7u5SiknFdSrI1zGkeKMbs3nmnapv0fhakmtAqSbjK/Wheg==","shasum":"98514badee4c9c140441ff770238d7b3ec8b4e8c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.3-beta-1657712993000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOmEWMucD3jjirWBloV1PqRvnPsIY/SoyruxonKi90JwIgJtiDkA/qRYd4hJDJtSEIaiRScp03zzYzg8CtWHfoxys="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizrHpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrw8hAAgTRasnEkgbw35VzQ96m+EPQTXKgUGAjkAJKvTWMuAv+weIdi\r\nG57D1myokpq5hWYc0+YxZPUPxNGKAwxLoRnCS6Z0j3q+3cuSCLgaUL2L0SKs\r\n6uIEIPfw+NhqPATyh8j9NKkTIbPA/02POYjfquhz2WJrZhM9NtBWGjXKSuAp\r\nLEhg2urlxpHzX4YCtqcJvOh2jXqEYpyWNhS0FXazvHvu6FkjAN0PuHBkgcX9\r\nGU6KaE68o02kLKYn873HioWtOlqljbaW1du50mwJwMdEkwnEwERJuwXaNz3R\r\nh0PfuGT+O4VhOdCammhojVeAlHgV0/TBp0Z7zjQK8FpB9Ix16WWCmPCsoTnf\r\neCs4I0KY8qnUrGZPwgD2xtFm6A7HsmVUYU8sC6N5rKOuMecOcjqKALS0Sp9a\r\nJQ7byISGdS5ITluiEy5Qb6OUcmknb5+zJtopFmXHYjBVr5xzQYHYz98faHZA\r\nc5hZwIuYFBMruPF9ViekFGF5inyCSS2RRdou3gopInPwGNNLR/jeBE9SPFxw\r\nhcNWaMNP/ig+J9Yg7pgfYGqLvCBlhFSqRHbYD9Ydn9XjcxC/Z7WHhLGyebQu\r\n55sJes4UGARSCfAtW3Xd9l3l64wwjEBIRgV/D5n1XbuC7OA4q4b+h545sRDm\r\nSukVU8P9zJUl6rC2y7Tcc5vO+lqeofBX7NU=\r\n=YlI3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.3-beta-1657712993000_1657713128819_0.11795904905174615"},"_hasShrinkwrap":false},"1.23.3":{"name":"playwright","version":"1.23.3","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.3"},"types":"./index.d.ts","gitHead":"6365c0fe6c00eee5e55248db5f1bae33d81867a7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.3","_nodeVersion":"14.20.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-4uPqXU1PBTBnNhqIyuz+WmvjlMNrt+Rje8lwBf3RpUP9UCjP8G41qrr/vDUbMoHhQaUfdWeDuZAkPUxAv5Ag8g==","shasum":"67bf7e80de30a464e34b88aab02a694cbf2c59d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.3.tgz","fileCount":9,"unpackedSize":24221,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCj3vusAr2mXGVL5rZkXyRh3I/Ba7qe3zAADsadnAqCvwIgDiV0UzaIwkzv6gXpnvNciMxHchVVelOwYvWEcfe7n+s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizsJjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVnw//QNpzpQkA8dstuywQWZ89Eq0jJ0JmPaZXoe6pd3vnb+BEXEtv\r\n5Ns7RREUEjhu6bRMjy5SgghxfpTBf0bVobyQL6qiYg4nTeM6e6tT+AVmLqbW\r\nEJiL5CNmSvZ4lXw+n8xXqIpox6A9yWPSiJ2sVyMOBICD5uxRQKNqKor+Ja0P\r\nSNJqWrnfUxMJ6gIgj/sy5KHdyuGA6WD31yS70euxvkOCIILIbRLrkn22hq51\r\nunnzdRb69IhQqO2rAqgokWO7x5TuQ2sfaDca1Q8zpXnvoljgPEnrqlEQTKy5\r\nILbJaeV4iOuR27fJ9RUdyqfSgszEb4PHvEd7be3DNsK+xRWf6xA/doiqOMIC\r\nK+OaeD5I8qS4ISc9A+uIHcHpo+TCjwQdx3oP6SvWqOeKqjatI7SvQZXdQ24k\r\nUfZX0bjZ/GaLanuMg6OPLOeUlwqHM6Hprq9B9STeWSUF3r0yCOn9KrM0Q1sb\r\nxaDMfGOTtWCd8Q+njBedffO+qlWYcPLo+mcltHBbP0H2HqcKzB4aRHOxs/d1\r\n9ktogjzJ9PsZ/l17JjKU0grE3tACoEqQpGFeEdYP6nH/72AT7HM8CwX6b+Di\r\nF6ceWFEC64J8EnVDdsX+6Hh7qCPhs+ru6lM0GHNoqx0X/V69CCKhs9kCu9iU\r\nhkMKgyIqfAzVj6JQxsZlWkjaeJyAZUa25bc=\r\n=YMz9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.3_1657717347437_0.9433088588449896"},"_hasShrinkwrap":false},"1.24.0-alpha-1657710564000":{"name":"playwright","version":"1.24.0-alpha-1657710564000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-1657710564000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"83e3dbb1bb9dce5a63ea5d60711cbfb91e6dfdc2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-1657710564000","_nodeVersion":"14.20.0","_npmVersion":"8.13.2","dist":{"integrity":"sha512-8lB/ggnT9cTPxm5285LFElFap0Wx+O/gPG0rLgpKRiO8xrGYTyC0POLD1b3jqFgkJTH+9wqXgwjgQ0FbIn/D1Q==","shasum":"00b2a2d362bfde133e8bc51cd5017b6bb21584ef","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-1657710564000.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF//2yP6J4C26uziuYSGkaos4bWG919xQ3pREoUMMQiLAiEA3VHVnzPpxJDtifmABTrfhM556ntCyNa5cMs0TY7+Lqc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiztTXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNtA//U7uAoVMfO/eW/IvpTw+8o+QJ19KKSijsvehygcF06PFnn5MH\r\nuHP5udxLGHcu8SZmnjXBzf2MaRcxFODAs+Uw8GN1Z7f3B75xsqq7SrJqT72F\r\nUwLCXGNXadJDiGSW4HK2FMwWNrx2al0hdEvRU9Z9/2DOnwksPQQYe2VlsOYb\r\nqQ3K4F7SDgrd12maB//cQbkr/g08MRAbBcfuC6/kAtvXgk+g4HjPkxOQL5En\r\nKiNQfn75hQMBPHLxA3N2apt+NHfPmg+uTTKEXwQxIxXRQT0x1LHTQ/bgYay2\r\nzN/4/uJz6Ef232YC6HIIy30AwzgcnKaqzNQpQ4+euweuzBxsChYE5VIJRO8+\r\nf8ZsjjUIjKoytIwCJRZw89P/9uw93ILMMcoq6QD/1RtiiedPPjQHaW5qrBhQ\r\n11libFz9ELwlXezT1Z4fkDl57zrPx7aVPE8EqZyczGhRvA+AbFWoW+8bLK9j\r\nC5Q0FVJ+r096tKYSTfKOR168HmziVIfRHdO23dC6XrKZXFuTgx+IZXH5I1u/\r\nHYDzzPApbX22wDVqV2RitJpoxbEKp08nEA0Ya9rsgMV14mV9dBhkCdqeb1Cx\r\nbBzQ88RGeF55fF1h5/AtsmKs4rbOWq414NJRkYCmkk6mswCqycza8JUmoCWR\r\nqu5K5kvG8p/HV/6jZ1FuIlpyis9V0iKxUUs=\r\n=umCi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-1657710564000_1657722071177_0.19070140313410766"},"_hasShrinkwrap":false},"1.24.0-alpha-jul-14-2022":{"name":"playwright","version":"1.24.0-alpha-jul-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-alpha-jul-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9387327a97a058bbb767c6f79cfb3f4c8a20bc41","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-alpha-jul-14-2022","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-kgLs7F4MOww18gFmAiCr7xkpZaBeFnO7ROEJdH2xA7jIiwkkq/okjWMNHHyTNSdyNOD3Zt0KqE1s+TVdQj4MgQ==","shasum":"c2af8b59ba99afd4c2bed52f8077ab07d1034585","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-alpha-jul-14-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDu5D0E45t9w5xh+Bh5jGfR5mUU6VmE1oIMhIq7Lip+zgIhAIj3WtKgRNHHVo3qNMRvWEsz7gaq5I6la10SuiZRVvbP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiz2QyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8fQ/+JMHYzaTs7KhsfkUSVfX3CBrelkEERowTE0VFCWQkSm2Ysmay\r\nmU09ZekAYheF1XwM8ox84JT8uXYB4Wp6oOeCCz7b20WDOqoxF66d+Bc/Acm8\r\nHXKfFO9zR3XqXjIrZ93ReLN4obcxInoRQnzt1hY1ubqiq6dJeZZc0QlzjMGU\r\nJXWZqjF4Jyy3ehv3vxdOazwH5vf8luOiJ+B8dw6UXlWtziD763wYLQBK49pE\r\nYcKWPfODQt796GkYmZY59FM/fEtbCTiiP5pdz0VDt6XvaGWW0HXwCDYO4/Q4\r\nyU/gBwbrziLCJu4NP+6oUS2O/23Z5BdoghPUB5QDucw/oQYE65ZmLcBUqVxZ\r\nvruCOiwIdkt+pEOxiwa/sWEzrjzAvwD5mNI4oqX6hOFxKX+FyyMzYV5jF3aH\r\nOlf/3SSQmw1WrBSpKauhIBgWxn32IV8WRbyS1z1Bd5gup5SZ6TPrvp+d2K+P\r\nvqxa9jKCoSHjlyMciH7Fj1ll3NkmwqnzQJYGgMUKCC194GjkEoiQmnvARGoo\r\nU+8pId7mSqTHQSRhIO2twlrsfetfDny04L3MxcgvoqqNIVPEKDB2i/Yz5yrR\r\nBkC+9HQcMyqI36+yEtGLYuAB8pGEzQpOUXzIvi4vt55dFGtBbD58N041Icwy\r\nFYTRv1FPTF0pTCfCKbTErl9d/Nfqq0yMNBU=\r\n=dzio\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-alpha-jul-14-2022_1657758770131_0.887108418861795"},"_hasShrinkwrap":false},"1.24.0-beta-1657816946000":{"name":"playwright","version":"1.24.0-beta-1657816946000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657816946000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e37514b43ca61f2ef7d8a2c30ee496b8f7611545","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657816946000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-Y57nR1rIS/fXjVfanPVQ6h8IA5pakWpI02NpDc87EM16QvL+83T23WsL+BMj1gov3XggryeIHEGF2Azj09dLaA==","shasum":"221124f6655004bd34dffe2e31e4be1fdca55ed4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657816946000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxKyc1zb0hYHNj7I1ywNpXkvJ3Kz8w97c34LNpCdv+vQIgPeLa1RHamAefJbhOl6F8dTwxT4eFq17A10k9V0XDDGg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0FxQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokdA//bHlSD0kzyXQwex1aopcqfscy6mJUuR7Jr/MOgkR5ANyUHm/e\r\n3T1Ky3g5G0Ksz+i3GESobqYrNbjxAVHMpRNJL5YS0IGDkl78St8xQdwnsDh2\r\nuFk7sCMOotgT5eQgAeZfmDtdNv6rPJTkiXhosbkMfSxeEXqHJqYXQcSMyz2i\r\nrNlzb7FpjdrIvwPS/Yrr0t+0RAptU86Ayk8XKL3APyOzPN48BlDl+iHtPdil\r\n6tWBfrNPYGE01Fx/3/MQTZsiOdgaM05F1sUwN21hMEk/J/u1SUrNhftI5lQ+\r\nBuq+TxiiXN3eAtHCcZRJIQBqYcvihfMY5REqFKlsRK0y6X+Kuyuyko6p0xVp\r\n6ehoUkN4ykKE6nVbHRxK2aFnvkxlgIxoJfX66q5rceDrmgUNRTQXT/kJCzxT\r\nl4l1r+6TxbrfgvMonJAL37Zkcohur8da7wsUyD3wVgqohsAB5cGzjmiJXqpL\r\nLK8a7ftowIP/R+HKa+Zq66UFjVkZnjGvinF8yps6BZnu8PSjDK1B4S0svH4K\r\nxeNqOZ89ScdVdmNWyx+Xk9jAi5HAtNktHir+0fVED/+36sNbCkSGw75nPkF9\r\njVi3fLAVFzl1GbJJ02K+vDv7j1+W8wFuzHSdfSB4Zb1T/k4tpNqRkUocRJUU\r\n4CyJJcP/yaArZvY44krOxvGy0mCvBm96pVQ=\r\n=cA36\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657816946000_1657822288626_0.49567789022873354"},"_hasShrinkwrap":false},"1.24.0-beta-1657829686000":{"name":"playwright","version":"1.24.0-beta-1657829686000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657829686000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"049bcfbd4be9ed2187f04f61189acd523f6e6605","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657829686000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-exNWwhsr6kjtat33g8sPhTOx1jJd/DYlyD/l7DzaructEqfaBNU2c8RfTJ+7nWcDwGWQc1tAjnsczyQHnIq4qQ==","shasum":"6e3eefaba5af0568e13eb67e38fdbd22752f7cc2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657829686000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKrd0nOIzdv0vt0EsmMCwdC9OISOEsjLAQ0YuKu5pZFQIhAPIHVlmOXXHKWTmiSnYz/eYzsbH9Wy74E7fOXebmmT6S"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0I2OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpK2A//Xxetn6KwiXwQ5BK6LYZcMVVbjMN1O6aliGqcyEzX9A/nOEm5\r\nIUYbaB9nizuh4oYe63Qt/Tj5CVfbpQPWKxcqkOo3FNKJXx0WFfUkuXBYgMhx\r\n3M1YyoKfaoe0hnCX1rQLDbAPaESd5pgg0dKqv0IDb0xL1MkMPL/HA9LUiQ8Q\r\n3V931J/qXjA5xseENT666VfrS6UiJN5c6e257QqCtuWHsvS2NAQAqCVxacBS\r\nlwPTUcQyKYpRZadUCNVDL5W5cAeslGgqWdccYT2LiZ/984fJI+POIaeJhH1m\r\njlnhnJEBrbqLdCwEKfzkkMmbQb2uVUjhX3xGd2jur2KgaTkXfm4/2H4WCxSr\r\n0I/jEXT79Hp+1CV32xwB504fcIHwwGPXZshjbzpR8qfIqFKd/0LtmnQ7DKYq\r\n8kXs9QzwHYoFnvROW735fjNIDfIliP5nDURJ2ENytfc9yBF/zVIR7SLZq6pf\r\nBGmnagARx91MQKUEv1attjWUsrPrdKaEF/yjQPPhLO3U0h2MCKjuVOF8ZaDh\r\nLnPN7C7V2QV+IBJS0g8qaUqSdiXI3pWZAcElPomOQj30l8hbNGAhqId9CSwb\r\nvQ5GHb66LJWCCE9ewAZlu1UGiTrdK5G5Ljn1lHAjJSHrd+NFs8bnreB3gs9d\r\nf4rI//oNiUMeZZr2BAcybPA38R46U2oK5rg=\r\n=CcM5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657829686000_1657834894378_0.12296197006674858"},"_hasShrinkwrap":false},"1.24.0-beta-1657829746000":{"name":"playwright","version":"1.24.0-beta-1657829746000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657829746000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6acddea8aaa01cff6fdb96f3b012bce04bfb81d5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657829746000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-2ksPzfyXtWcdQdZ12xMLPawa0NFptWNnBimtGlywgt2uTJ8N5QeEvV/vMgaNw0BYLbsEHS0l/OK/qlYC5pFaOg==","shasum":"b81398a1fb452f37133c5512e6b77020e7f53b4d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657829746000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4pEK3sSyLyx5vG0KoerFhs/KJcmg8C1ebDkj5CophaAiEAgP6nMiR4F1Fs6ZpGaV6dfeZFyhl70ZZosAi9WI/iNfg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0JGlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrp9g/+Kdu+UPm3TrrmItb5vIjHFX67ID5cGABNefdfAjTGrRVa9E+4\r\nYo/qYYRSk9UBvznEJZ70Sga3sUE8rlMIj2XOzLJ1d26THAmVxaRzaNSPnq6Y\r\nGv6b/HLTiaM8yDjqjriLnAobVvu3OB3ATW5sfd4RaJ5TipmldV99JKtTvN0A\r\nDAaeMMkgRCIMJiAse16QTxcrH5VlXuGbOLKFr2WIWTiESZwlFlzyLeJvoa+2\r\nDNiqChgtknSXY3bd9W6jBfIXyjiFD9INpraU8MslCqT2ut6wPs2GTo0hrfjq\r\nD+JQu9wwDW2FvMUNophL5D8+tBPXyGSE4fBOH+MBzA/t6tCmFIpUWiDmHWi1\r\nuJ7XZ7ED7+CVKfCfldskBKRjNDixfaWXakhBkXleVNBeGrln6ECfMbXgxLLA\r\n4y4J5BAm2Sb0Fse/QZcS885z0MJ2F1Qwx1NitJ+wlxUJC4Nqj+oTINdhLdBV\r\nTMRf+3v0fKsV75SpAhI8gAJZJyxsWBmDbrzxJujjyyeKcwZb6EDfw2GwESd2\r\n3zShxrZ31IYKHVCyGavqmOmKZF+MD7FaO+knfuJotChZbKubdteMNcS42EqJ\r\ndYva0J27cZM5Rknk2tmzIMk1YG7d85QG8gdiYS2pE1E8meAgtsSIgQN8l1Za\r\nxCeg7lu1nQ9VFqFykK0TEvFx+mPX+FDDW3k=\r\n=ad5L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657829746000_1657835940896_0.10088938285027038"},"_hasShrinkwrap":false},"1.24.0-beta-1657832487000":{"name":"playwright","version":"1.24.0-beta-1657832487000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657832487000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b66873dfdbc7da8560a878cbbc2b5367a1c709f3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657832487000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-97tpFkl7Z4YiQp0cV/kPsLMjGmTCD3ggHM0o2jp2G5yWYE0Soa3HFPH9sCKgy5Xn19LMfMeGnunt5CkPfO1oBg==","shasum":"b3856fec461b1246d356d6be43001f90fbbea630","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657832487000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVSPJp0hMuU8c4jjC3RZcb4bvpVnvTP7BuN7mZPzGacAiBQJSKL04DqSa+8nrntiqXja33j1+XHwQwZnj0r1in1gg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0KArACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4wA//aR9Nhut/hW4RtAa4hwbUUf/kzWTVt3YgdrT2LnrIa1qMFRfD\r\nYoFtyXglmpp9PaNTr4p1jadtFReqIHUikrAgzwy2hyBz4KO779eIxS9H0JGn\r\nFyyGSggZNQO43mkSLSlhLPm5YQxY3wzoxaDXn+uH/S1qpo7NaRLMvEEB00oF\r\ndW38Vz0+/QJP3y5aOK4LS2yr3AYxjPTl06+GOsMQvcaYHUmp0S+G0wOOV5Ns\r\nCPd9uFn3D54KHdVaHt9/lOMFQJMppBBi+r4wgEyJgCki/b8NtekuGo43OuYZ\r\ni6k2XB6veSAU6PESOWNSPPturtcfx7wO7E9NTJtKKbEoi1Ra1KuFVCfOgkBq\r\n3LqL+pdWSm1GMEuZ65KruzGIc4lAjuyxBL0J7NTLr2bl9eyyZpQkl/0cd3nD\r\nD8/ZKJq2g21gv5mdzTJPsKHmICJSjvqgFH31STVxAaWrylCnKKuvUvyvAzwh\r\nJQbQU0Ht3So8cCFOx1Tra+h2giIGS+01S6AzsoGvCiMlndab7/HeanUlmX8R\r\nZb21i7OfEXxMz/lqpkV37Djx4FZXTgA7/TlNSODCSyhECcVOsqQSyBaLGEz4\r\nhzuqbP5bVXvTDOfWYuUhbzcNqDiBbdvM4CFzfpi2JDxzh8bBovPllW+AS0gR\r\ntIKSMWR3UX+q9hZ5cwlZfyYgNiNbdL78tUI=\r\n=LSTo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657832487000_1657839659695_0.6698633588617708"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-15-2022":{"name":"playwright","version":"1.25.0-alpha-jul-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1d415312feb819e46ab5e0be5b4a3fe4fc4b0d60","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-15-2022","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-nzzyKE6pgRyDKAU34eAVEkpbPou4TVuWzx8dTRlkHKJ62GmCmHueBOnNLgHHBTlaVSirJCUagaiB3aSZ7R30jg==","shasum":"b4d08408dc19db5d3c9b98f8c4bdb5872525fbab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-15-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC7i8V1vyBeY/hC11RSJz5Bu+ovwhv7N3IAe14u1U0CnAiB8HHCQVyC/SxKbHzwzWSk1+oPJcCuE7eauosmwZX71jA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0LYKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZfxAAhirZPCeg9sAZTqlL2ozF/JIy26/eFPFgOzZSYTyYcCsYKg0h\r\noO9uyJwlk5GJ2R/XGAjA8BCTQ8RlHUAjrWeQXAQcxsy7fPHvlzq/SEgUB+xc\r\nq5uRdtJwlnXmnmF4uDWous9Z4RvCiPcAmdCqZmER8CRllYACeeHXOQCSJLxx\r\no8KCVXmwtJDancgkMkZEPYmk1bzUbllNYZK3Q0f0YsxdgkdJt/gEnRez77Ae\r\nA8pf98w3pE4PhLpM4g0X33s78ERYT64HzjukrZ2kcO4Fx2pSAuNBOzzPPwqG\r\nqr6MBo+gxV0dcoSc+5k2x8yctHmHykyz8UjENaV110K8wIYHiItjRd3sJd8A\r\nhscsHBHvN10nQaBmMLcRzjBe4KcxoITcfp1q+0vY0nfF2W3m/syOzGJAj1kY\r\nj4zv1CNwtU5K/USsaUITbDSrbcEgtVa9Zbyuya7cpHwuAPl5Vhg26swOOzlQ\r\nAOOyHSK/cTzeEKiSPYmMZs4IIRV9lLPsO2C2Cwp+ZdYQ9InSMgTIllqeofgP\r\n2yXqQcsg8KP4BEKhyNwGA0oEaf6fbD3qyRizqUlEVGCbMMInqLEX1mR89KSp\r\n3Du+qAYQetPKGot8uYR5dtnQkw+5h5aObjrfePWp2hdXMvOF4ryX6J67NxL9\r\nAlRr7tIiwKHgC/wNnPirpLOOTmXkgI2X7RU=\r\n=Bjo6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-15-2022_1657845258382_0.41479137499309804"},"_hasShrinkwrap":false},"1.24.0-beta-1657859090000":{"name":"playwright","version":"1.24.0-beta-1657859090000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657859090000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eae7bde3acaee6f6e8a8686e9d7ea48adb3198da","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657859090000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-lcCgtqVI9zsa9/b2uCoT9fu9Iy6FP1gs0N+v3KWR+U60PmQcRgsJEqjZDy8A57OiJaFrAlwdukKbieaNvzyNLg==","shasum":"d5eb0e9a920f0ab4414d5b1bc2a94a2f262143cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657859090000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDu2c3UhRVdVbbk48MNURXT9DqVuVvIE1X9OMc8Yahk6gIgLbgmtjQSF6HyWXJUWL7z35HoQ9LKKlJu7/ljvHdRLkg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0Oy5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6aA/8CS3zmdp70U2cP5XvzeLt+jBMGJzlJ8ohKocLNpCL51jqdGGM\r\noK7jiDoFFYmOnv1tZk2a/4DSAprSguAyldUZo+bzjIgbHAxP4uV5n0QWQnZG\r\nXQj5os4PxM9wtpZUGLgRfdGdzEDsyNJoBz5/KLoMAJqcxvbiyEaU1964c82c\r\n5SJph2qFLsRM1AwXB5BJ/DsFhh+qQw7G8mwOJ+dO5vpD0IrI/9Ch6j6c/rsn\r\nZhTTQ+m8ndI0aMKMBHOEqwi8+fY0e86VLM4Ux6yMKBJcwKP3O9vpTehqHVOF\r\nLP+zS5876zj5t/9sCCXo9Yq9rp+i1kze1T3sLP4JuTgtDIkSEWyAdQWTwB31\r\nWc6Rh46YjN0Y4Ff6z5Ju2cD/L8yc+x4dcHxWmIfE4xYsy9ehd3tbLWs5XR2R\r\nP73RIjlXJFvL+kyCikx3h2cXFR+Y6bT3g/xwC79gN2uizDNsSwpRB5gkdboI\r\n2Oo0U1GcW892w5OeyvutS/qJkUB3W/tthqFB2Idhy+4kxk0EGtmZV7JW9xPb\r\n9R/H6XgCvvbalt+QC61ToEHXPwmUUIYvvOAFmWTd+JL+AP1lYvw6dTnpNcLd\r\njEJaE/yMn5t9LCJrAW10bHaemksB7WqdnmZuGukWgqHdnGiHIMLKJbfcEQwv\r\nQLlXiMJlsagDmM4QGY6A+65ZxBH+zs3Wl8M=\r\n=kYJA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657859090000_1657859257225_0.24672412538125355"},"_hasShrinkwrap":false},"1.24.0-beta-1657865532000":{"name":"playwright","version":"1.24.0-beta-1657865532000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657865532000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b2e3c8c75da4ad9ae1e8ba7957c0abd177346543","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657865532000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-U1C5QCCElTgGR1Jcm8u+6+SsZjx/BEGormjIJS3CsXndhMoTxLCRYQVGrDyjSnprwpE8/WbEBm7pe+CT/yWCsA==","shasum":"85a36d8276ce04115724f04c67b3fd7ec9bc9dc8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657865532000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGjPpMKysOfgqF9IMNyQFqEi7JK8SsYsgEcmOi1hQmo5AiEAxrPlzXsShAviuZvosNvMBTbC8cZrmz03NyOHdww8A1I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0QW+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraBg/8DGFKFIMRpsHZTX+PD5bY3KH+ju0UzphJmgzfD+vpCm0LDA6T\r\nYYZHbPnCeup+9p6TvGk7eyUGXKWS4GEzd4VOy6CnAXM3uUQDEjdKsoosq9KW\r\nd5t1+lRqwvmKe1wrJnYz56ClqNv6DsqnKE5vqzKD3dkKS5ZE7EN3D9+BcR7J\r\n/g+a5liEk/3XMMcDfX8LEWq2wmesf14XnZU6EIIKa3SlpgVsAklgZUeiWpPy\r\ncPS/hywWHl7ZbMP3NUZnoCgW8wSkwLC1/TTVtsTOkcICYfY7+cQGh20oljnx\r\nAnCFnc20lk+VYZm3EuH9U6wFdvPhDvPtvPpX5fhUPTWxGvQyrNyBPImyGkfw\r\nH/8/S+tdr/+/Q7uz+zpMBcaLCOBSupHhZQpjJ50gdXpP1lvzjt+Lb37V+2xy\r\nvLmO9tOkw+Y3DmnRekVgRiI6cSEn3GPymmEr2BjWge+H8xzZiEtG3M8XA4b9\r\nGhu4YhKlXYe/7aMNKBkkJL0PmJK6ot96b2c6xbsltbgzTK0Y6CoyIEWa44Fu\r\nSWWozGvES/JY8IzD6G22kLgd7HBiKp8BZr5MFVwDxXc2L9eMANLKt3bU4fH8\r\nDClfvHDaP0TNrW5YsOpoFMYrnz+vojALM5XLEb+plepSAyNSY9fPERN9ybYj\r\nnnC4Z/KgZCD/rHDpp/IS9D67k8Zo/wi8yVE=\r\n=//49\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657865532000_1657865662169_0.34715547385903456"},"_hasShrinkwrap":false},"1.24.0-beta-1657900992000":{"name":"playwright","version":"1.24.0-beta-1657900992000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657900992000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ec9d2dbef8bd9a08aa29a471cb85b00f1e7899d3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657900992000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-yuDW9SQ54aMzGTj9NLCciNoorRr+UdgtaVihpVBehXKC1Id/cvb2eHnH1K5Rm0bIZdoh+QRm4BLvLUd9GN+hRA==","shasum":"b90d58241d0ed28cc0f2661a50940e4e705ff152","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657900992000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCExWf2R1ZAWNEhPK2XGDD8c/NTWv1/bIQjylv8UXDZuwIhAL530oYhEFFtEE2rVX5AlynbrDQjLddDWKQ5522NeTus"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0ZA/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpavg//RlFGVXACWWtYHhTqYPZl2M0KgkHyAGSpcewae1yxLtNZkufb\r\n4ppec2PssT/rdDdGHEhWwohiqueYmhCfBftcjUJ3/pbZWiLnEoEKRraKUOIP\r\nOxOqE5vna2QsVZFDoGeC8Ko9BxZkCxuKuGvqWQ6NrtIsRjkUytxR4P1o6nTt\r\ngc4c5/A6c0kns58EBcRO4PQdnB/CjNLRjrj7V0hLqB6wvoM60LrBDRXEsQGh\r\nfUse+hVO50ROZWNKEkqGMZ7C+jjdZC/18XublQNfMQsUavndSn9cMAtZc+n5\r\nNcCKNfUt+P+scDQYSlg5I5lTNRu+MH98D2SLAWZ3EeeZt2ulCSv0m1wvHsdj\r\nduVAeYeK6+iBqKyr0QYXUIgoX4BZBbRL2azNPZEuayKhLgChKKhAWEwvl9St\r\ndMUBiWX7VZhiuWkzwcUhNMjLoY3mOE6BxcC8wQJcIdhBOqBxjW2PI2D2qtS3\r\nfkV0CY4ixH4YJ0udsnGW9vgyQXsj1Ty2fe20abWRyglrQjZh5u6QD1KTJpY+\r\nzSoIFkzvCzEZY6lDpgcPTeMlcps4XwVWjoyDEiWtr57Iijrovjlrbi2b5SeG\r\n/2/i/N1sdEQ1IpRcgMJdJOlBZQykeJhLUoBTB5/fYw5Y0+V61gzRaB7VJskb\r\nxs+9+D+dMBm2fo6+t+u4kFjvls6tDyXQDJE=\r\n=vqHC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657900992000_1657901119778_0.6306540944772647"},"_hasShrinkwrap":false},"1.24.0-beta-1657908604000":{"name":"playwright","version":"1.24.0-beta-1657908604000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657908604000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"405c55b0704f719943af3fbe4851e1d2e47ae154","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657908604000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-rovYBAX6Em2eWOAzsR9nLZ/gtyuRHyJwjYhXBhpyqzR4oWJzM14Qx/6GiNQZh7lA+eYgjXRBfzPkxMUv/o8Gww==","shasum":"61bc2824b86e739793fa99707dc0b0fe7a8572b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657908604000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxeG4Qy+IJUpihOLO1aoRuZJLabnMONi2LUA3QPaYZlwIhAPfrTyp243fIkCY6U0Qh1Hv32Il3urXX8fGznXeB1+9J"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0bEUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdEA/8CLOR4GAGv1IEt5eG5fDR1ypDj6nBkuTitdJuYlAUpe7SOzTu\r\nMBoUgRFcH2tIT9FHYf3WzfNiHnGNSeOIEv0DxVzB0YFogAIHKCCV5kiWv784\r\nP60BalDId/X35TGXml5hmPe3fi+LL/bHf/WuIkrKeeHRWWF5OlPF6xSMXuFO\r\nlaogmXjIxsF9yix+wOYLHJ5PomqsaKOea8cYzXDeofOpW3KAwFaaAxes81+s\r\nJuGhC29IiHfatfkLKiBK15b+jvggOYbdW06/iaJH/kpN0Kk/WIVaw9a9rOA4\r\n7V8w3RLMYY7KJXJYyE5G43Dn3nz4FPxfhsdSaw1f/i2pkgRxzdMrW7RtjZXk\r\npDdA1vOOBjDSaSXhPTWI1dGb0bwo8Q8webOibQTRgtV7bbyIogmEGeEWMVF5\r\nuna6MmDlYwi0ekbGj3Gv9gTMKYLV9iiPioN5jcORIQOIyYquQfMgqnp6qpde\r\nsEI04ATBh69JMaex0/mQfpb+SDgCUANNMTl0ZDeOl+Za3ibDwcw3mNKHDi9v\r\nx/fLAF/eysddKrJz/63zRztlwpm7graE+2+NXbBt+PYg6Gxamk0xhGKQeV3+\r\nl9c94NFKdS32O9lY7xeT02Z0Yi/hFhZCYibd4rMdtpfO9ftyyWR75tYvI1Lu\r\nMfQfuIhMiwHZyPvxUHhQHIR8bxR4rekonzw=\r\n=K5RP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657908604000_1657909524659_0.45404006791875995"},"_hasShrinkwrap":false},"1.24.0-beta-1657918044000":{"name":"playwright","version":"1.24.0-beta-1657918044000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657918044000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6dc18a7c8e0f063c08918a54806f828ffde77aca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657918044000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-BwEWVaWyk1k6tf3ZIhP6/IzYJk1XyvGNuDxtTfgAIJ95ayXScuAVSCjbznVlkYolLVlPI4ggyHeH6L7AUHSFuw==","shasum":"442876a9a2ed1c6a41220e8a7899964e3b96082d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657918044000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdm6g2Vx2tM6KLlF7VltRYEaxyOHbNanl4gDTFqKBCPQIgdAV7jrmsa17kQ+dcDP2USmxTfmUO56fMvpPYC2B27e4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0dMeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSwA/+N/IIm9td4yKXlOsvxkFAp4NVPjYp43YdkbfDSleq7BQ+MCgn\r\nFi5xf/A/pMqifq33rfAIE3JHHrobyKngSyQ6MSmRt+Dg2usPlkCr5SiaFApa\r\nSPdOV4ajiVvIQW4QXZY+gGzIZv9YZZAHjalxRnVWxMEHccmoIOx6NUkXf0au\r\nS2yIZ7JcmROu48uA7F1dtGsJfhJuFnBAFsThOUCIx4RzWIino7Pu1YDd8mDk\r\nYx6uG1PVe15JHszKSDQs+T1TWeOSa6Ay1ZHtgoSI/NNW2tOOwz0g9bJ0En4R\r\nM0rf2w9fI7caG+E2thQo0eniRdfp+dcSweAE1mNB5e9LPAH/HJnAWtAnPuGA\r\ncmtGmbsPL8aDX92prZM7llZa3squdMruBX8vFMD0UKuJqs3e6FhPa5kveO24\r\n6cw/2hmTWyMHupvRb3MbuNyvc+4CzWDta2ighiTHR4JSx5pR/KjiWCZQYfaV\r\nY7CkkOQpfrHHvi38pSfDk/PHH5eOSWowh32LhI+B8s70nBSyxdH5wdqa6dOq\r\nHdvjGLL4Cn2RF1z0gAd+N+1z5pvyjhll2Iuu5053utnrK+Rnx9ChQMbGCyPD\r\nUXnpmIPITlZyBfK8X2YC0N26jF2GPMgdPgxfA5qVO9Bmx46dakpRMN2FZ4Wd\r\n2Cpfh/nWyvznfdrtwe5mjT2gNDegRaIYJQk=\r\n=ZZ76\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657918044000_1657918238571_0.8503816861739968"},"_hasShrinkwrap":false},"1.23.3-beta-1657928342000":{"name":"playwright","version":"1.23.3-beta-1657928342000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.3-beta-1657928342000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"47f428a00b87e9bf6fdcd5bf058519613523da29","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.3-beta-1657928342000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-ecH12Z8rba0gHhUn/VCq91CdHM6Y/PDw0lEFXpxk+vpZZQzY0vdsFs0t4DL+XumgkHc/mAqhoLjX2v/GCs8bVA==","shasum":"c7a5c06edf05acad53a59cd9a7f269b2da3194dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.3-beta-1657928342000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyNAM8aHoexh0WXAlzfKYnKsZGn3DfDBmDz+XIA+x3KAIhAI2JTIh7c4jpU40452OA9DmBeDh1zoBvdFXi7BN/WJ+N"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0fsaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6JxAAik/OQR8T/E8t6PSE/PFAUFG6rbDcYO7jGAk4PC6PcFFtFebh\r\nLFgs7nfy1p2eOerO9oDspXyJ8kaV3/DnQT09DikxAclD/aFiVdSX3726/A17\r\nU8DW6KB6lhqr+RTAcldPgYvlwqgVHC43AtBEfZ2L4V5UEZcQeRhhW9QifoSN\r\nV5w0t0K6QmI+LLp7kR2VHCZ09lbmvS96bBFl3oHxzZkDWCmRlafVJkIp+9Vs\r\nbAI0/Lx5XrhzvAjr5LNDkjWZLPlebnXrdG3/m3RATad4+jGdHey2YcFCKYeH\r\nr7SqA1OgqOb57fEgVbLyIo+FWLty6D1ir4FgAxPCL/4nFWUE4fCL+gLdwOPz\r\nlOUGPvpT2kDIDnRCr+l8WPbbQAspJeOK51DB4oUzxeZv4jNgrr+0i3HxhPlD\r\nw/sT1XhbceFJZrN0LaFxQkJpxWQsnM+2d2DSZm1RTaUPoR9/j33fTWb4rtqC\r\nsCIBP56o0XAgSqhuf1ZReZvPKzwvSJ/jVecINmvfwDibYEqfSsuxbCu8eTOm\r\ne9P8NMpUirxDZMzz62RRa3hW8fGBiipPTgvaqRK2xbq8GQ5M3UiHTU6UA6Rd\r\nOWaizvpFt/rkGfsWu0eHRQXhb+n4aziETxzhZpneW+SkUrI+RdOzp0oRYoUq\r\nBFrpKAA+t5Hgbn6VCC0hqjv7VjFV9viyWWo=\r\n=fR6g\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.3-beta-1657928342000_1657928474213_0.4081365216570816"},"_hasShrinkwrap":false},"1.23.4-beta-1657931017000":{"name":"playwright","version":"1.23.4-beta-1657931017000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.4-beta-1657931017000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-100.0.2-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-15.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->100.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ba2035b0319faf296519085b70be6bcae25bdf57","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.4-beta-1657931017000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-JQMgRRKbBMVrPASijQZqLxoMHxA2V/eLHkk+4O8I744MIKT4kHTjmv15kZNh/WIVcAqwKgmMfpwigeNkpklykg==","shasum":"e8c44d0deb3088904d682b8bd7b5b4e6862bd62b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.4-beta-1657931017000.tgz","fileCount":9,"unpackedSize":24259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGeiO0pMK9gnWd2E3M4sFz1N3PrVIYCZBwDXiONwoyH+AiEAxr6fECguHoCGojbVEBQvh0oL4qZ+Ou/0LcgHyUIM4gQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0gWJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWFRAAjedfrDm+IyelB1H3rrjp/8eRZYRD5f3Wz7wePSIdFSAGt4sF\r\n8/5uJx+CUCUfVinEdUDnm/gzlVgTsSPSBI4q9vPnXfgetvp0VEYh1V4hQb9K\r\nb4mtrA2p4139Xh2B/jmukrBGNY2iZhcnkwtIw3h2ocBSIkPocXLcAMGEkRCl\r\nQjxHu2aqnPLgQ8bwUKMoDlzNG6M6Qo6VQeCYzxTYu+N6EzNN/cqk/ozfD0OC\r\nZf+I8k9PZGYGfsIcosMici7t0gmDF/yTWwtK32aaM4BnjFbCleD+7H+HqtKC\r\nSGMpJ3XYFIJZh1FBkAddIbIDtcUaFaDRWSzunEtlLMbk2Yh1eUGTLezfwWsl\r\nF/Mb3CwoB3Fp/OE590OhWFZAIxJ8wscXsFJ2PWGjlWrAuHQP6cWLlx6XqmXh\r\nILTTG/N9/igzdV2cusPDI6eycK7RvcAPYWl1DmuVgOTmIsIpS4L3fHzDj9rC\r\nseg/Nyw4XuNAvvLuUctLq8pI+o1a509maZhpo3TNYvgbCtJgiSeGMtxiJe5p\r\n4qW7rgmAauCHCdfBgt/KgS1rqJsa+g3ysTCqhzkq0ijg3dMneLvRrPwaf3/t\r\ndm8hK9/xVrGSi4mxJfVkAMXzbiCH3NHY2t8pzhQdkyASxudqE+OHIiw2RhRF\r\nmSxAIHI7AXLdFUmlVhifSIlwKxGg19NW2vo=\r\n=U8OZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.4-beta-1657931017000_1657931144993_0.45030774394431505"},"_hasShrinkwrap":false},"1.23.4":{"name":"playwright","version":"1.23.4","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.23.4"},"types":"./index.d.ts","gitHead":"ba2035b0319faf296519085b70be6bcae25bdf57","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.23.4","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-NUPOLMpd8WydmwZFllST/YZ7cImgDDDrvcaq7Gj2vAjNg0jYCndFJt6HHtbkOPSIlRo4BaQYlbFx6meq1r1FXQ==","shasum":"a9641a8d523fafdc58a5a2b59efe3496dec49c8d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.23.4.tgz","fileCount":9,"unpackedSize":24221,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9SOhJ+y26BtYRvYwYvaFHgHZyC+iFm8iWiikVme+oTAiBgQE0VwR0F2XBLI1DI6iRl0q8Oz4sokHqwHK1md9ZkIA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0gZXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZVhAAiSB+Fyxmbyk55stHpIIdDwZZIN0BJ6APkAKswcupRwj8xvEI\r\ncYftC9QZwFWntLj0YBSNoXR6jR4eUy9LwsLCghxyBUt5BkcffFuD/kUOBN6N\r\nLtc3XdDwVHwn6KOZJ63OlPPnP14ewrPzG+pVBfFC5KzybPYBXXZTYq7+BXV2\r\nGwL3M0wJP7LQ31skxN+448/Pdp+0V3DWJjyElPsoIqwXmLGZSdic0NUPuKxE\r\nkunOOG64m5RmtRN6XFwkEjcS/+6poSBYhgBkuUbiWu0bdgqY68FzIsJul97a\r\n6kzKYKVAehm1kVCeS+8yYwqwRwd0dCDCCy94HvD3w5K4FsC+pKZ/wBk5gEFE\r\nVAR9G0Cn4Kygua8aZb8fGSAzDsMf6/npJ4GfDerHqRbB4CYGuGoli0WzEpAs\r\ngcirV6/xK7eTFy1UEOviONUfKdr3W/hBRuc9OLxuBDva7AZihXZWcD+zkYjD\r\npWnC+I9xR2NRXN0jvqFRh+ibbeJii1Nx/PB21ZKNcE58M06gL3ehf3d6ABJ5\r\ne8IUTo43Hl67jBXjqFsD2amXd5NviIWgUKyAhplrh8XU5dGGwXBJp97YC4eN\r\nfxLvRIYrDuUAqu/Ygg7Mkth/VorlzmjlJYK81hzxJLpltxbNlNNHU09f/wJ7\r\njdrQDlPfzIXOirKUMUu0nI2H9pON4GU5IJM=\r\n=ppzb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.23.4_1657931351266_0.7092609582520679"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-16-2022":{"name":"playwright","version":"1.25.0-alpha-jul-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"99d1ad5a88c3e89360829eee92dbaa98d75beaa4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-16-2022","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-TSVZU3pG6xEWLVGzQZTJb4HIzFi/MEmVVuC2UK++WN3WzRQJDRPyhcVqvV/7D2qt6vkLsEBbJxwF+dIySqOFuQ==","shasum":"005b2c6aa37924068b338799f0239a530c18a6ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-16-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDaHDtTxTeg7/pNCrLd9pvGbeY+vD7dKjHPm3TqS9LFPAiARY9awohpUXhNNY/7KR6Zd137EmQiZUHKPC7SFYd8OMg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0ga4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9uA//cHVAJMe7/DCAYvS8ME4xbVgYOlHcPpaoeFhGKFIOM7OMA72P\r\nqExCDNNfE/XdlHyY+KSlxe1Sy1Q8owDVQuh7NpnWmYS9hoLgZqWyJWR401jK\r\nOvrpjGCqNtbqQiUUJ7lmBl+u1k2UYzNJeo+zDCNzSRBlzUrVT+nAkXH4va5J\r\n2r84V/XHrrV7kf5U4MMuANulbOEv+h6w9yjqmhypkt+HK2UX9WqeT7Z45/on\r\n+LUawBHTmBUlKtW3YV4lez6Jr+/HyGY2MusO82yvwTYHOTtAog7y/L7Z69vt\r\nAKIvgIS3R2QCNViY9od18+xjWlceS4wXUpKBdTRijDV7mRGZJuTRVHhAUzDF\r\n/wliGcxBdF/MQizuPHUgNjbJyCsHhxocT9eZdIfhGR3NsmDIkA30gT8MHWhS\r\n4cQI+10BYBji3gJmFbD6B0DvywylgOsAVTxeX+LjxdjQAY6wvCykUvi7zYcj\r\nMT0WjR4g9h1p23xQF5IBARL7+OY4/buzEJ79etcIUHFY89dTcE03+rhwpn91\r\n5+10fI6ALvBWhKOCVjIj7xuE6Lv+O3EeASlujl3PTTR9E85UGM3iSuBEI2w6\r\nMs13PwXuWOxgLv1BdSkEe6XcKLawpSCPHzJpv8b+o0kvXLvcDyZ0tWTYOTw4\r\ntog2BepQ7groon9ueKGvnPfpwaT7SzwBEUE=\r\n=+2gy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-16-2022_1657931448524_0.4807932926676539"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-17-2022":{"name":"playwright","version":"1.25.0-alpha-jul-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"99d1ad5a88c3e89360829eee92dbaa98d75beaa4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-17-2022","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-YeKNDbRuj8cnWbetQtn2rH5ZHZCTJkZsCjNOr5k5YS2kNEfY03V4djV0Ll4PmGp1dCgqb1uWsXY2WwiOkIpd6Q==","shasum":"2b3043416d2c31679b175e8f3c5c65133c713c67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-17-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDy7+obkUl+DC8M01zMYR53zVRBDp6ocw7D6xkTtdABXAiAm1gR3sywHCt20O68sDn7onOW1CY6ywOLoUrUNnbfjIw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi01gzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrY6g//ahh8MUWyHP+RXCPIqW59ODaExC+vmt87bDk9DRWtiBDwcqmb\r\n4RKJpucfH5qXc4PRzlHegSne4I3RcIMlMJR8/J6Jd7ny6AHUvApm86+VWCqq\r\nl4P2j2uy+Wk49M0qMVd4wGD61gNhaZsjiDnlW35IkLVSgxQ9RRVcNPFgGFB7\r\nspjpLrgr2hBLe002T+D6dqKwCVC50mhxlqMCp+r3zWSpoF1BsBwqSVe0iHxy\r\nW5zuDGVFOBpbXf9QP1XvLM//bUDqjSWB3T3zGRHnzgtPzvY0Dy40nlwstoGg\r\nAQMqxSZHgAB1xDAyRu/f9WnKtVAdXcoSVKBnhY2Az8jSIz0Z/pdUUKQ02Dyi\r\nBnKhbzjjK+r6y9yONhY57m1kHe8tBdXkETBDJBo9FWiFbxFS4UcG9GRWJh+e\r\n4p2R2gd9HdHNlR3qmD53UodYRACHmssM4cSB1Dgn77xE/ygkgRTz83qfdbuz\r\ngtm4uqSQFEXksIQJCELaZQ405AmbFTxdORwD3tau6hc15nDQw31oFrDoSLlp\r\nhYjbpH8GP+H57dp2tAITAzvzBl+LfLBaepd7Z1pDdLfP5MHDz8v6iuQ4cMjc\r\nDPC0Ir0k27SjAwzOMSJBsYCmS3nkpgwPteB3gC1wB3BegeYG6urqYQBjlbiN\r\nsChVopaW3JkMMLtlK7thWqud4fYLfLOcr3c=\r\n=JovN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-17-2022_1658017843224_0.19057694081373144"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-18-2022":{"name":"playwright","version":"1.25.0-alpha-jul-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"99d1ad5a88c3e89360829eee92dbaa98d75beaa4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-18-2022","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-B3LghwPWi0FANkDBkEBHNPcybBLEZnkk2pbEq0eG3h63I8u34/Pul9rYPoFWN2l4v5EXpT+D1vcrxDMt/+2i2g==","shasum":"8954e50ba1acea09b3d82cd8cb601cd1ae5c4c35","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-18-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEL10Th5XrazgS3j2u8lg7I2zt8mVGoDYbA8OHfEpqxTAiEAzShXEq/EbuqX1RFRon46kSRpBThczADZRiiAQhNjyW4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1Kl2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpfA//YhT8CAnSeve+vVjLHKUfH2QE948dN+civBZqDsa3aXQvd3IH\r\n6ockACHp4tpC6kAabSi3WnZdyu+X5erTkP1CDFTepXiPCzZkDySRxTJCF6JQ\r\nLtWYJcptd3QHmGY5EVF7xl9aY3KOTYLY985Czn/0SXhQdjzoTof2fimX1qiO\r\nUklqt+l+lwYah2sEUqYDF56Cky4PN0FRzZIEbzbdSUe+joqROg9YA6YSIu0X\r\ne/nw3TkBKzsjE/yF3G8ByfBdzYHtRgoLzr57zR5qF4x0Uv8Unn+q8UIlChwK\r\n4xJ0LpgfF8viElWsskHKyN4TO6URHvSHR5U5JsT50kiu8u0ANF8/rcz/y9/g\r\nna+htUyS9spvFlP//2URRLcxJksoW1KVFlCZjOhDPidC16jOlldXErStQgoG\r\nZ9ROkUx540zFSUAxCS4z9J+GksG1Vz2B6Bw63sw5Z8ei9kYl1FX17FMJZQ7f\r\nAUkBzPhGUnlTxLvLBY+P7c+/8FMa48FSG0R5hoSmey5jus8hWe4N+gU5XW2E\r\ntvxQcW0ApNZ+Dm+GXu1NBeiLgfMFrmVNfvkekdzCqcJuawMbzBRombtYR723\r\nptTL7FmWIwYaL6oXWMxw0mcrElSPIRHqapWJ4T0JWAl4AQZoobI6hqezkmZY\r\nefxL2OcQixeHuEFLoPDxurXx2O1TiX0aPlk=\r\n=Vsfs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-18-2022_1658104182251_0.41631313389840163"},"_hasShrinkwrap":false},"1.24.0-beta-1657919681000":{"name":"playwright","version":"1.24.0-beta-1657919681000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1657919681000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9214762d10773d9b30a1ef6c26174a90db704630","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1657919681000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-bEroqAoN6Aqc7U5eHt6MGKyBfOOza2ayUzun7OhSeeoYobUH6f4uC9VpE3jOccxNxQK31z8n0HX3HPlkZZjlLg==","shasum":"571783cacd9798f7ff58e46a0be504d832f7cb72","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1657919681000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID36zxuKnTC1DT82Ms3PnEispEGZFwEaZFUlckLG9WAIAiEAteSfTWI7We2YDktcJviG6yCK6ifmvzUg5zwEE+pf7Bw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1XFEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoA6BAAipGfulINCv6lB3PbNFtD8bIpWedo2pljgf2En3xrNzQTIBXL\r\nndMj19PXGEEbc6IbBjJrdJ7/Ast51KrMs64cqrilrtmPPUXF1+AEJKr+t393\r\nrKe6DcxpW5n7flEHjsRiQ663KuAT9wBJdggAAsv2knSJNVO6ArfNMmsCwDDA\r\nI+VWiqd0Z0sNkwTzIQTriX+Gg8SM38vRdTYYyEw0o7PWrSZUbqKcNF2PA6vl\r\nJxyImdUFvZ9jyug9kqTEsddc2dFSXWqbLuWBUjRywHR+EPePz9PzSFWsok1D\r\nlXSxYiDjErhJoeTMXTE626ybQOy8v1pwYm0WTqWmD0qMM8Z0Uobl5dKJFrhf\r\nc1gBUvhihGTbatZ1DL6Q6uFclc5mcP+HkTbokeyV07+7JlfA/GXNplROHERa\r\nE0akkVmC38TGfvQRkrsCVtD5mLJVi1z1dsS0SWmriNo+TY7TOZBpG1+pgCAO\r\n3SoqhPJ+ul5tkSo7SPrH2MKuR+zd5DwOnEn+McZ+mrXQzTwHHo8E2wOwuQH1\r\naaC80PFMhmDirjwgfTcwqQ/oAZe0uPmcVFXLm9DW+ego3qFpby/ydMBvvr8d\r\nQitGT88FtNDtXWt5GjW1rN4R5w1vtjBG9/usHtX5xDLCetmHXBLVi5GcFM3d\r\nYUQiLHVxhGx3CzSvkUwXAHCS3xR2Phpry9A=\r\n=sree\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1657919681000_1658155331841_0.3355447773374327"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-19-2022":{"name":"playwright","version":"1.25.0-alpha-jul-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9fda46822cb9a7cb39558bc18f2e5298864ca4c4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-19-2022","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-LFsAiJ17VvOh0oMWhR9MwWMVz9yJE6BW/n9FieEE760kKzxU6BzfSPDe0mnch/l+lUNYZrBH7z3tczn61XtQMw==","shasum":"919d453308be002488670fc83f711c8fbffd632f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-19-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLMIDWmgBVa694cN051ofU0rpZA1cJLM/opp3isjZb4QIhAJTgIIFl/F0IcHKDSzO9TKfY7SdJ+vxBUMUrfZSn6sIQ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1fwjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0Kw/9Er5CmoCIpw1EUS6T1Dd06VIqLy23zjYA2msECDQoKlJTR2rS\r\n18TVvpw+Fwtv9i9Siy5+xcHeypmWtrg9TLDHaKVoTL/zjzwRILrN2e01qdPP\r\nv5CQKi440E81dxPM6l9sWth2VB4gmXY5jJ5q0EWT7EMUMHXAhG464Cn9DyFh\r\nTbDc6WqEwzyki9o0Aj7w7CC7KnvXvlsBg6HnGD3z3WKfYncTAhJU/Ex5iOSg\r\n9IsutND1K8MFYrsHg8A9OUMD31xrpZAZaUkHEBZG4DdASUAOJb3+kUx+T8DV\r\nDh51LVQPjwXjnpjC9Tk4e/jQIXSBenkjTDJRhdfHpf9JyMDBL5NipjtdO9Gu\r\nY6TX2iR73NxrwUk+GPoSnF1k1FTFM5eFIrABJY9dmqSwxwORSWvgHhGysvM3\r\nMPbw4BJeZ42/XJDCEjXwAPgjHF0NdsO7d5zsfQWt7frCyEm3/3RHcgtoMCsY\r\nuaop4oGTYFPp6QWGGhuzDBK7uhiVGLU7FHpen7gA30btqNN7+djRrs8qpuW6\r\nKtfa+9u0Muw+ZB5Nj49rZNWmlO98tyHrBhs0ar3tBJl4nlWbOrvxjpbuRN8+\r\n7ZZ3Wyh6+GfSHGCUoGtsI+dwSMTSFikI3g1pmOoSlVT4hGnkLVj0KJg5Ppts\r\nT8/GkOj70UowH421WtHg4JC04kJnBwtL8S8=\r\n=x2KI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-19-2022_1658190883576_0.28558253879504414"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-20-2022":{"name":"playwright","version":"1.25.0-alpha-jul-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"919bf1f805c1f6d74ffd6fbb1de8310620a64750","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-20-2022","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-+fRCByvET2ALoBENvthKBRcD+s9f/Rt61QAcODhjSMC+0qYMKv/PUrLV3ll04PTn7Erd1w/K6nVHcJB3W/IvOw==","shasum":"e29e2aad288a26fe2dde5770e4eef0dac5f64375","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-20-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBElAGeoD7rSFojtY83/D+GdGtV16cDofZBkPmoi1SL/AiEA0aPHsil6WwJxGs/RQqKI8H9RSZbD0/svcV3ScYOT1FA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi10uvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodqxAAgUNMN2qPMGLtudbRiSnbPECL/66MbkfVvfJ8iA1AjGVhrhCT\r\n5RHOYjWp1yEdDZQxV92dQh/rqpXYG3+31cgPkhDpOV8V/9aONwhD1WUAa7Pr\r\nf812Mk0nKCU3tATovO3aWVg+IB3JM8EgSUVvaRmT4cEF5324CVpF9bzuRbd4\r\n8ZLCORODiVsRYrR2JXcd5AKov6SCB5Tw9OET2+VH2ZfUMwTHND8G8WwUndXZ\r\nkNOBVppd55oT0/Lg32XjMe/j/azhCtYUozrh1uULRmrYk9aDb48ht3WYFrki\r\nf1rF3sYBp2ioM25lusLAQQpLvSRtMmCkaGRNo8MKNO0fC88R60HXUDH/4VFi\r\nlG4t6+m3SMGLzx4+xMEn785x7pzTV1oNUq0iJ/06uQcwXC7tcV48Sxvpd8Tb\r\nT18UuGCr2GhwpNTDOWYHzeUq5kkCv9uu/hxhdXIKRaq2bK7dQhvEDiuwVgrk\r\nS1Ij23kB3s0SvwEy0JiQCBi+Fw6ogL1LGmWxFl6tXz++DKOnXAS4wC4+XdBs\r\nRIx65WCyu50cmeqrzYPEjQWd3ihyv+xoSER9+WhAAP1q42KUu7UZYTUaMMzn\r\nJzjM9D2ctR5rwAgl/mgRpaygjwjeNMW/EY5RS5vIEKddizy41RsW3ByyKSEq\r\nBXg4PezFpwh7CM8Y6ccoK9sENO3D+Kwy210=\r\n=zMaB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-20-2022_1658276782860_0.3114482613489069"},"_hasShrinkwrap":false},"1.24.0-beta-1658348931000":{"name":"playwright","version":"1.24.0-beta-1658348931000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658348931000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0ad379e761778180d871c2c05418e001b95f6b3e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658348931000","_nodeVersion":"14.20.0","_npmVersion":"8.14.0","dist":{"integrity":"sha512-Yjiv9kvZHlnhZiMLd/g6QPA8zwzjOjqk4XbVkkaIyl7yzZoOAm8ZEIS5Z7Y/n1HvyxityzI4h6K4AqhRow89rQ==","shasum":"9f57b665a3a11ef36d83b94a5c72953d8f482c64","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658348931000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWx3FT6Z6HT9/gOcHEztHOdxogwn3rjQNeE+kfVBRoZAiEA13WLj02GLEbW0fPbMUqNSJyg59eThigWTMgzoaHyH5E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2GZgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPPw/5ADK9ZEFNGMKkP4j61s6QvPLHT3E1PNU43izQ0q1yCvkkpCm4\r\nv946atSUjmFjRq+C/iKOc/7YOe5mpdt+13PQMPvPFtC2H9sdIfMLc2tigT8G\r\nucLRrGy2/+R82U5vlkekli7+kQVxnLBf1Cp5cDqlggPUpVbdNKWnpq65FZA+\r\n0Wr7/KeZCI58do+VYqMB1/OW85ItzZ5UG23NFERy/WjxMEa6Su1nRoJEP7cE\r\nwugiFCbRXqUpQ6uEbylgXDcVkieIythSip1hxC9eu/icBT6svRr68xSUBAgy\r\nyEcEslj/LmkyeRtML31oRCgUKTdVVUpjll5jl7r5ve87YJnc/IG3zkqPZNuV\r\nggWgPqNOdabXHNwodO7F60O2DpLypsnd9Yql8FpJdD9nnEYx6klsdD1WN1Yc\r\nU6C/ulYfyJNqfnZCUWTugXsVOEysKk2C0W7eltKDD5Y+Hlw+3kej64mUGkHW\r\nnKNqGjT9k+eLe+1mo5/l2O0NmBKmD6VYtA301JRlc44yU3AvTjPQk/jRMgea\r\ncM2EDi2TOHVgQRrP4JlC46MOa0VcMlli2OOcav5Z4QEU+tiXaBNA4ECEd0L2\r\n/5FGn2umVY5bdPPf1BXr7VJq85fFw440r92g37mOvI3QNX9WdGBKgV4LBM3P\r\nhttcClSCGYC11wb0QWzlN6W2Xwqz/LeLXe0=\r\n=706M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658348931000_1658349151831_0.031615119308394446"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-21-2022":{"name":"playwright","version":"1.25.0-alpha-jul-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2996f4bbb5537cfbec32e69ac261d07961a584a5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-21-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-liUp2+QJjBZu44ZpmvaA2MCXxA1KGF5AWNIqybUbHkT27D8yKO5TYZtBRvm4t1uCYzzgsk08M992Qyr90wIM6A==","shasum":"604b81c4d540c39dd74c54c7d610c85f09a7c984","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-21-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICYk4m5j40PSABe7U7EvIZ5lfGllKo+erA6y4BM6YJPkAiBlHEOvBkxfl/ANK6WR2FYwusCihPa436BWT8VlgR6Ahg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2J5OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmql0g//VwJLpBjlW/eBwMkH9N3ZLWJbPnDBMsS/1JrMRqRvKS40ugk/\r\ntsSme/dnAFUpnUy4gVGE+rX1Vj2UJvo2F88vh5A4QtwFTv6ZVHIb/Cent5R8\r\noG8pG/q1lDV9lXUO642UWhRo5SsuiJ86zKTezLVNze0Xi7we43MbezmPtHu/\r\nrbb/HNwaWoovH0ZFdhYzqyluy9UM+W9M7IwMaSok9szT2gPvNSTaZSmhLyPg\r\nAHIJth5a5xDq7JMOp9OFihBwGxbknKiOPMKQEMJx9RZnCqQ88d46uvNdt7OZ\r\nAjjm0UPAGqosbZf5ryBVQLBp2c2Zkw5y6ZYkeijASJ1CZlSvBvFT6q3G6XoU\r\nvT8XsoZSPeFNa8SM/bexKhKjV1XU2u/sBRAiLfWBFxcBBFIpfim4xhCnqpVX\r\nWpQcWYloc3fed5l+jxz+vPtYxCgzzkZzgtdBi7xRCxUl9dru+Kvs6bpnNHo5\r\nSgZa5yky8VpZcXL1Sw6dhl9c2BcFWv6nijLmQWHZgEYrIzlPQzxarhjHGqDK\r\nW0VkhAzhJcjagu6KZ+ZUlqprgS+jrF5KAhYNs1XWE0u1KNr8QhDi1Xk1ZJca\r\n7WE9tLvCV3HBbo2RCLUR7M1gkHKL+f+Iy3xYsDqJ0+mHcDiH+qSjK4gwPtCv\r\nrgM3HhnPnZZq8FByHFjmZO9Ar8l5NG3K2ko=\r\n=0Y6J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-21-2022_1658363469820_0.37586237954168955"},"_hasShrinkwrap":false},"1.24.0-beta-1658439162000":{"name":"playwright","version":"1.24.0-beta-1658439162000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658439162000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a8937f5b83fe5213afeaa0d20aa535103baad287","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658439162000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Cun65VbXc2VC84bNs7WbL2ekSD3s43Cupa+f44EBF2NM8WgkuhjUGDs8L4taV0GEsKZtzcQkPUs0jJeU6Z8H8Q==","shasum":"5e97829fe2328d4ea703f89ca56f275b203ef836","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658439162000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8uYIj9DxYSV7r+KHMkuwv1JFWQeWZvjASFVUqTm85yQIhAM80zpNl6S3rpO6twUV22YMccHYuRvCgcF1juYZwsJM0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2ccIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfnA//fE+j4swNv83g5N0lwpgn3dbe/74RtFnTq57UUmocf203lTk4\r\nEqVSMSatmxg4Nl/AZjhq92Orf51zdhEWy8zEtCBA752uSx/UbFwdXZCM9MMw\r\nrHthjCwReRtdeBStJYwrfnVZC7VPETbDQ5WyENUZlS4YIUgpBd3kCQoZUkac\r\nRvmFcVeOth1Mhoc6cIJZak5zFDPFt9NNFJYuv5kIBVbZXmYeDYdiBpeVMdaE\r\nYQtmJovUOL4v7P/LTBpuUcPCUdOWhz48LYX8JbZqv310CiPyT3mMoTX9c2ji\r\n9jQtIH8yfntdPvmzvXG+/X38JJg3GiiJwiPE8CT8RKobw4uUSdZWf5/eZYr/\r\ny704xrLyNUP88jSZPgdFg+hasMHJ9+BjHJCJXcMVjPN5rODWJueuhsgRwbYt\r\n2anhhUqVvq2NGOnLS72EQAJzWo8DXQ8osuVAI7EzG6lylmADDUH+ekHGV5pP\r\nk2t/HioxhgMiOi9Pm58X1OuvdIvRwmlJLHCDL7HZPYW89hpPVjZvvKUNT28K\r\nY7P8is9iB5lwZ1ohRPKAJi672qbTAB9wIC+jEqXl2Qw7dqYeIqr2Wx+DCXn7\r\nyl/HiZj3LJ2YNI3x/ZUIG4X99GS1bnxtSBrSyq1XEkADWRsUwGDNspSQNmop\r\nq7HEmHqgJBcTMH2635vMtS9x5gQsVIIMOgs=\r\n=VX1C\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658439162000_1658439431848_0.594300936105004"},"_hasShrinkwrap":false},"1.24.0-beta-1658440934000":{"name":"playwright","version":"1.24.0-beta-1658440934000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658440934000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"03380d6e340dc5bfc82bcc9781ba94f5f9f98762","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658440934000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-s5uta2LDTaZyKtfFHqExFbg7Hyv3r3YMehJSzarY4JZOcUrX6rFck3oeYDbIsRuwQLqy1awF7r1mggbjOtfnAw==","shasum":"044e758d7c77c68e13c51164df7272a24be26b4d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658440934000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwjBPouX91J9Y55fAOFge8QWXdwlso3jK84rXZe7N9aQIgWTpDUFCbRnzqMRxlpyS/HJJ/ssSVR6sebRSuf4cuoow="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2dJxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMmRAAoK40s4k5yQwhzicVmhzS+bo3bODH0HmlbbUWju8vUbl19jin\r\n0h4irz7AJlusoMW23bDuVFJaw1R0Ol59lLxqmegBJ+4sRe1hTUpztVoPjf5r\r\n0f7Oc9ZCg+gkNHuCYPCZOVz8PAQ0f++aQpsiNaIm3Bde4YSyS0saVxwfu7vY\r\n+y20O7iwcDFVQG5DxjsERpPo5lvvPrfp0zh65ZDk8HRu6tdOqFHA0jtJzm8N\r\npjt2IjjALMAfON1u2SSwJsKYi2kSkOZqEyvZoAmAkTHyyNcOvjFWieU4wKnd\r\nDJ3MCl+9fwV07DjmJoEGo2IXgYWTTN5C5yUp3/uKhiKySZ2bm9j4OjwVxbil\r\n1J0Tn79ZLLB4vv+6EEOmhXdt3lw1+geOe5xFHc4bBno0dnG1RUpLFZ1y1bAM\r\n5Mqw3imG3zYApVt6pi9Gmer1E5jUMyd6f/9R4w8BNpa0E2MnVnLuYi5+04hR\r\nkO6+7XoH1lwa9OvucPNXLRLQxnQL/Et6B+nVZAAfPnptHqN/4baSPqEhDAa0\r\nexOPxu1ZNpM/m0AGfgUojGIuqUszqjc1QGTN5frVPAR19HVGrP0S6oiqtcNR\r\n+SScihFc3g4kSsRYjkvltZH5AHv9jKCP5S7IDXuGrs0P07QAHCAlN+jr4OD9\r\nH81x4UqLrd7/+tOA4x1jCnwd9n5L3W3noJY=\r\n=ioqh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658440934000_1658442352856_0.616084667966257"},"_hasShrinkwrap":false},"1.24.0-beta-1658441541000":{"name":"playwright","version":"1.24.0-beta-1658441541000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658441541000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1cd6fd359673f479410144ff819bd2e4c6936591","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658441541000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-WQR0NviPyinVvlNTwwY+yIFZzcwgkrvbqaFFaaGc4o8UXj+YPzBW0iWqrA6tHQ8eBbq+mgBHDsDM5iihqfE43w==","shasum":"606dbb9ada469c70b2ae6d65bab49f443b896fb8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658441541000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQzTK+e69V7FrRDWS4HFhLMJf0Dy1h9WXG3fmEpDivLwIhANQbye10XWIseGqnbUWHV4m4WpUu6jSlaE6gvEyVo59M"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2dboACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+bQ/+IAvmECMRNci6j70f7LAh/xAWEPTkIYWF7m5RQqDi5gT/Cxb9\r\nhCZC7rgcV1QvKoxL2vjo64Z/uxZUO9ZaaHhuBKx7W7l2o27iDcmu2Kc4vrVM\r\nFBJHhq9SKNd7MvN+R81TR79O7ifO8aS4MQdSbxooWknjc9mIPMguaNvz7rJ4\r\nCsZARrChrtNR8YSOd82TPqcH+rZrrBtlZVFI7V/rcIGSYrbob6o9QLjfZIm/\r\n7jaDE0PMVWdDEMganb3anqUNYWtJxkvrazA1yItY/zRkBh3hNb2iRTMHw5hx\r\nctv3uCSb8GLY4e8AqEej2Ao2A8ZNETMUE0J5c0e7Bg1PEEHoGzh/xmRpzA4f\r\nWfQnjjvHPubRCWp69weFEwZTx456FWkGf/MmqZsfohPQwqgzEzMviOXtPKwO\r\nxU+e9dI1eCF2tQWoEhXaQW6Fudz/04rOQhIj+uCwUAYAVYWfip35XPbmJcMG\r\nRLht5qp2ruw5MjJwLkg228w4bMUuR9GJyQ/5q/eAkUt/LRmxIuajy+Z1LUpS\r\ngI3b9GvI6ZttImsZy++4XfzeUeNFyO+iZsCQJVY+tYvDp/NW6CDF4NSPwFor\r\nqyajA55WPxxC3Xkpwh5I/qstq4YRrYw5HghSQ7WB/GiTLPj+DSviQ10k/qQ6\r\nqCjNh4ZeVzMSErevi00qwkbIL0VfJl2yqTc=\r\n=7z49\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658441541000_1658443496832_0.36191788747594167"},"_hasShrinkwrap":false},"1.24.0":{"name":"playwright","version":"1.24.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0"},"types":"./index.d.ts","gitHead":"1cd6fd359673f479410144ff819bd2e4c6936591","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-oA9HzuYhskm9iEm9DeiWoLuJps+yzZ35zwR0EHhGFUd9ikUVMN5NqNAORvq+JesgoMlEu4IUdKK9jigFWm7olA==","shasum":"b1599b992bad4221e87b19a430817316fef644db","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0.tgz","fileCount":9,"unpackedSize":24217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRqtDW4KvYY4epO49lSx+7YSJ1hwoqZa0hpwg+k8cOZAiEA1EVcm+DZ0iaSmvWCp2qCRuRjPD5cDHNBhMTIE5VvdM0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2dxxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqivhAAnGh/Uf5RWlyp8Abak4xoYB+5GEnjAwwA1rCqNPaiVHkvwd6q\r\nnqQmEMGNlrQgs+oDNU4szZ1WA62J78X0PU1kp0K5HMLYrktlPd4oKDmiKFW5\r\novgJSA2P6mxfU+gZtAbrh7kp+evAOS0IqYVQyT8cGXQ2LUx05Em64QkraiJ8\r\nrn7cxfGFYatzMna937Go95FPXaNEEroCK1+M9gX/Lwc1oJgmMl6YYzR7IPTT\r\nk/z4QgrbUo9vqmXMrLl2yyFMlC6BAJaqaFklLw85fTGkbgkHNYy/or5TpTMu\r\n6/W/E40xZtfAwupvBrDYG1PXrFmr/3kCtaaGzOYzmO/p0QByFzzSbRy4U0Lm\r\n9hjTiwYjNJaCJ37fRLm0D7SURvmGLhI1DVR0YALXy+3JGUIWEvZJCNZ29rpe\r\nEbz8VrIpujy+J8Qy/53UEG4c84nOuMBG2V2pjPBxBClYYKvsFmD1NOF2XBmi\r\njfzkUSTiqyiiYuMl86YAlEoXdAbWdaA/xOdnwn311UGtrx+1uFejWvCIO11d\r\no9kHUUnc2yVeyKftgkyuZ9D5dijsKvw8u0IhQXGCoMn1ohCTnjKXp7iL/jaB\r\nATEsH9DXyfmcoDO7kNM9MKq+6swHnjcWIWsndxs8GI+28uN8Ud1l4ZLwWMQT\r\nkVzjiracMWl9hQV1AQmH0n6l8ULb/99B2GM=\r\n=t3Bk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0_1658444913054_0.14180384917871436"},"_hasShrinkwrap":false},"1.24.0-beta-1658445570000":{"name":"playwright","version":"1.24.0-beta-1658445570000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658445570000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"19a19ae1b7c01f65aed7fcd12ffc69c5247eb9f8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658445570000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-mvoS8lhRI6+INF6AdNwSip+DHlMnsr1YcA3tEQyrUguxOgM76Puqc22f1K7HFECfRcsRp0xQSTJgKm5fIdh7DA==","shasum":"8fb3e09111c7969488dcfe5d7018999127b41674","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658445570000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJvCiXnIzGSxkL+MgLrUgzCtgqoe2WLFuVMvZjLZWp7AiBHyG1qWTzYrBbYpRUQzebMKmiwvUNph2sEsDWA4vznqA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2eSIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrl+g//UnW/cH6BzrDpz9e9ILNGzrdLKAXds73nHJ7wagd+ITgdiItg\r\nbOAWbpdBBspyjCor83cUB9kJFU9yQYNMQiQRSZp2z6hN1vXxXpntQj7ABekT\r\nbTM+T2i0ZIZFWcLhN0kf8zkaqw89i1upUe7yzmw7Nj/QmkgPXSxe/nAvPAO8\r\n3S9E1GkOJf+noxjSkOGCXrSd9XWvcbomhlZNW6E5otVBmeS1EBMCz5wT328H\r\n6wIaxD/XVwKyRY4JXdgXunZgWtSroaZ0caUEemqCHTbjhLLAWH5fw3fDcmHf\r\nEbe81jJICD96GBtdYdnuzzGqO3+QhPRRZCbS1QOar9uJbbDT5BuAhsAnrZAu\r\nbyLldEEjSusDcp9Sbt39PGfHsg1nyK/jN847x3C0fwml/QE8hibXgoZJIIzf\r\nkmZ33w/8JKVDr5Y9Lbu+p/XrRSWPe5IOJ6VchCI5YaDcKmgWBS8o8Hs60of2\r\nnknqFgab6znvhqXpGdhVISHfviEpy75NSCRT4Owdx8KVdj2B2E9ma939/+wA\r\nbb8ZiyYJbOepi1qS1x48iVkghWMNa/h2/ZIuHlMfgk6BlN+sVkSm0J4kocmr\r\npSHkOtgc5OHjYN3/XzOmJRGHPlkj4VqUkt3ooo9rq24oCjjVvUcNB6W6YGw5\r\nUUo/yVS5KGKrWxwoLACuHRJNKXSsV3XOOHw=\r\n=nxeT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658445570000_1658446983785_0.02623335446598074"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-22-2022":{"name":"playwright","version":"1.25.0-alpha-jul-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"618941fc68f1a2c7c6e372f2777cd878e621385a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-22-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ThiV9C21us3PYQAM4K+iWsVo4Qw6WUHkITrd7M8SaVNvjfZhLPo88AqInVb8SegfZsaI8YvDohyUjuRCBMh5nA==","shasum":"49549fcc7e7d9bd16ce9600484ac7762a770c5e2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-22-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFtp3BZ7hNBZpXLnCgbRemCsjkdytRe0VINgLYScIyzrAiBWDkV3OzO2HJpdiRYzL3yUxipcLmpmmE8w5kU450SNPA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2fBwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTQA//TUlfN+FH78cbpQQtq4qaprW46Nr8yxf6aK+H6Mzs2DYAG1KZ\r\niv6hgaHxMtdo0dZUBT4e50yPzXHYgFwtaLFerzYLjrzMvVmBJiybtmV1EqVN\r\nxEVhcqhBOTJdwt3JNOcdntQhv/JPH05HMX6MyNRr0GE1XlNJ+lRKcGeLp3Ax\r\nAzVFfcoU6EbObZCV6w5FIc/7dw5As/kxI1DNksPMvG8G27cJZYbjZa6YhLk7\r\nXcb7b1hfQa4e5lkWKxy5kebGS7UquUosAvwMEvi2GDHivYDe7JMdl0K2vgyl\r\n/9uOLEbNYAU+nlfG+JyXOj7PZcAWO+9f7FptxUVUVpynFkkv/aUV4HBPV6cP\r\nVukhkn4U9f6Gl4IphN5tDvIjnXnZ82uj3evy67F4tm7kTPuFzhgzqsva6T7q\r\n/Suf8Zeyro/mZ0tW06sRQn0W4eDPZA09LXcfVomA6XuiFZfofm494L8cnoEs\r\nHUOZdsjKXEuXnOhTkuC9hnq3H3AzmLui4Vq8KaJJCNMgBEIvKnRItQH1x4pC\r\nOdMJufIusvoanBsJrqDgR+2m65pUozA2zxol3iEszIPELgm6ZgHF2WVpuYSA\r\nXx+78rR4FdBls69wzC2QyxhK2Fr9/+PGLxgPevkDFX3QL8vDM6tXYOrHmNaU\r\nwmtC8dTC8+NWMqqlzhiGHiJyMnm1Kt4ryck=\r\n=vPFz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-22-2022_1658450032004_0.6494929330589343"},"_hasShrinkwrap":false},"1.24.0-beta-1658513677000":{"name":"playwright","version":"1.24.0-beta-1658513677000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658513677000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b86776df996d8fda8407a0042f484421c3511648","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658513677000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-PqW+4+Buxbo7ehwxdEcjaTqX6IrsNsPZi2/yg0kRuH3lJRI7rCx1kmXuPAug1qZyTqX1aty7k9nzx+k7mqhmQQ==","shasum":"f2f808e57f8336bae2d27e672a5d85006472048a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658513677000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr5R4WriCZonaMHlhrEIPc+83udyTAl39hd+322PVjGAIhAKJQtlB41+R/is1yooRu2u67EWQ6mBKODEUhzND+uidg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2umlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaZg//fU3lGlldX4HGy97zDRRDBN8opYRuCfHe4VW7NZk0kYHGzrLq\r\ntRAKh4QDqV83V3/xUQNSmwIZ/0NHGHdgP9qX7qSRp5SBw+mZ2QGQsZtweN3t\r\n+BIXk3lBmteR9RWQCCJ2kLr9GepDcSxLVqAVoMW3g1uK8b/19J0VB1oSgnG9\r\nktW8ROpcZ5oZ1Xs1hc36iN6yA4qp82wkx2JVjVE/02Mr9Ofie3wY95XNZbIT\r\n34w38LXN4nfL1tU/6X5CxeHrd1ZlIN8eUcBo+RlDUCsamJ/qKRQMHMUdjcdc\r\nqDV2FRrLTrC/lmsCRRMrlXDa68/dM77RXya5Fz/jT1E8zLR7vUgttWq3J8Eu\r\nAmtyCFjCxbhiyQFm+cQukV+p+3WwuSojtfDYypcu/33LMByNq7fEkFv9h55P\r\n4wqAnhNbY+4dcNRoUSZZ6vw/M5KOxfJMKzSIF9262eC0gw1JvgmE7519tbY2\r\ncaL1rKAJSApxVT05I7Y1FOOblZDPYpFK9Vd19PpMTjdFz59c7HXFN0KEaGXv\r\n4X71LUKbes8rldmn2d+gPigbk1W4OLmH4hRknISMbOQRyT1opCPwriV5+w8H\r\nF8WRC2T4/33IyxjnzB39+2mwA8Em/Cz2y4ROzB9iQGd8LguppLP2XLWSxyxR\r\nn3IoW84HIWh82YSSGsEtk7LlnK0pSSbQyDg=\r\n=lqZn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658513677000_1658513829093_0.2207568345612434"},"_hasShrinkwrap":false},"1.24.0-beta-1658513698000":{"name":"playwright","version":"1.24.0-beta-1658513698000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658513698000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0776b954c3196626b623ce290a5c78b45a2894db","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658513698000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-WiZ1k1U1OIEf3DEBWAeMbbEr3vqmZQRrJ89m6ChAdLhLSJQPFqK4KSTvtLOGc50kCchmQLryydoDNVCaH8CLBQ==","shasum":"6b5f8cae78a44d3526fe302d3ec5de0705fe1ce0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658513698000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFXlHeDuAsb4cY+4bE3MDnTMHaLJ0qEXIYsUGdJkRvgAiB3QIP3+FOxHXGuGuwVAB4f2xhmOJtCa7/mnn7uOp6woQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2uppACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmog8A//fFkS7PHqoLDBJJR1SUmt7tdPb2ZSCtnkHdWvJ6mXIUiIn8qk\r\nVD53HxvBdWTQ+UjkIl/fgZxnn68MoZtsHKOF4N6J02pPJqXiyYi8RcQhumFo\r\nqiiluWv3xoIwSKmFEcsnzfutSBTygeQ8w3tyjjwYPsk78Z4cCHu7EjaYLPYn\r\nSRo/+QOrsbtHg3Ei7BrprBdkkHwOxZinOP5p2YO2KvXTqlobe0XVpoh0An59\r\nBqSfe80r51QfE2MXI1wtAFQlkQvt0VPzsVPd+23a7ZdE/9cXKo/9gqpWZczS\r\nmWB1tRm2Ibb3gAka2iVe/4M3T093A5N+jmYTboV7EjSEVkLnwxHQFktYK8OA\r\nIh7QbVNhW1BMDkzdUS/1nMz9okJFgE6IqbI9RNR1Bh3uFBDUFaPyh/DsS1nF\r\n+VVUKMPlyQs8cUDuJX8e0usXSUdxPAk3iR892QhDr0ddQVXum1Ah3HZFBlcV\r\nbog9I63CgwxuiD5/0a2Nr539Gr7cC0u1KJvi+GxFniWTUbyaPk13MumJHefk\r\nE7F7PoxxAxJWaecNWy/4Am8GY08EpmLkXWBbOlMhZK8IFmdR/u9Q/+rbEIZD\r\nPhmr02KLnj27+gVX9qckG/DfYPa9eL5bVj88QLvFrSCBp3uKpf9iGDtebX1w\r\ndh9w92A10nDw/vu8aLasKjCYaGFW8SciCTk=\r\n=kLrT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658513698000_1658514024963_0.28121975885260864"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-23-2022":{"name":"playwright","version":"1.25.0-alpha-jul-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fd21852b0129535d63565b3305edbafc8787e098","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-23-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Oa51yXpcWrGGG7DrSH1PE5K6uLBUnbOcd5Z2ZN1LuA2Wxp3mY08XhB+/co1PimwFQnY4TIcBJLb36MOHr+ZAhQ==","shasum":"acaf4a4e1fe5ce0e8bafa7c38e2869ededc2f117","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-23-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpfNQM8kVsPYV3u1NX7RAu/WETJtkswDmSUalmS82FhAiAeYT1E4G5rBFeFcihov6OlTUtJ0AC6JQbeQsvck4CPgQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi20DbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4QQ//eMu93N4ypl5Jh+mu7mID+jhhQWOBoMbUR76C55VLhly/4FVg\r\npqfpNeqedFNm/w0NUpOwx+hljZidP2esypqUW359tCL1z+elVA6o1NonAVjU\r\nO4zmm130uqZuXZxBSsjcsrSL3OpDvl/WMLGqnMzOR9AAplQ/yd3udjRR8aJK\r\nJwsE10gy1lFuAXGYahSteV0Ja1yZvcSd1PrEPlhp8J6aeOLoldn0HC6DISoD\r\ngbh93kbdADfFtjmp+JQVhB4olPEMdYpl7Y+lD0sN/h4HJ0zcjPyoDv4m8tD9\r\nXY7wUS/mhzbVUmMqq97KMHBsWgHbs/Q9NVCxXa3rZyQw/k0DHJ2rKcyrULF2\r\nSr3/OvQBvbAxMuhmnVrJ8di0F6sAnSCm4mdVySG+zkEnpK6vLk0MPvUmo/Id\r\nhFOZEwR+6RoTo8fG+Og1EvY5u60YdRSG69RoNC8CmKw2ZnlO5LQQ+Bi9RrDs\r\nHMLrpBDVjKxVb6mj3tk7RRu5DgHtMOqrkWMxglsiLlMpb3OAYbImhThTYSpP\r\n55VFr8UWQ3kGbmaD3IyRNMzJSBHPbF1/pRk3pnjfo4jHyGeX1fAn+vdf63hf\r\nj3gic/aplWK0xVuwZOFoNtpFhmFTNE1UESLS+XYw+ZDCgND0FSuXatpEShRy\r\ndwFae2cXhzyQIsE2lrInm4GjbPmK0hbEy4U=\r\n=HxnF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-23-2022_1658536154922_0.7778048307968171"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-24-2022":{"name":"playwright","version":"1.25.0-alpha-jul-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4bec6309df2c45ecbbb2767201a98f89f1cf8f5e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-24-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-XUSVjojgBRlHaS2ll4+CDTxSI7UlcyTp9SqMfnEyrFWufK25IzskNVeaG7K9DYJXSW0JEKxeHTtkOczjV8g/5Q==","shasum":"cb09ca43702cf41e51fdcac9b5018c2c4c285259","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-24-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJxmX/XS5vWGNc4KS4mNyZuP9aGK5v6UBzYOQztSSpeAiAmbEsGdPgRymVTfiZMi3EZbPJV6sJXF6luXtxwL7Sq2A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3JMiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyDA/9EJNTR7JPnCelVRlxl46pb8r5OcA+tLCC3K23zb0yKaCPhqNo\r\nIQxGWNXvxHUgcM4ATMv3NRshc1oj6puykNNQ4bsyVBBui/ufnksolHH4r/nH\r\n5cKIxL2gpGForpT/ofv7QIwjiLAZe6gSpuiifyIyVgIU8SWBq2pb3Ao+3H3N\r\nFGkEgqFGFoJdr4siPEBDeXLqOWmXYcGZdk/ql8FHDN90EM39JfXhvNg/5/p+\r\nU1fM7z3pT9AB3QbBRGn35Oj3YWXtx2MlrOsnXKcE0qcIrmLZoKeV31OQYuIt\r\nNFeHWLWufMsTOuIooEr4XfOPVyvOMlYpkp+y9nHIsdPeIs94t5t+yUArxLIg\r\n/Oax8mmCYN499tyxeZ6XC+wP42rV543FioBrMCYZI01iS335M0Ul5yplKkJK\r\nkSWPE9wcImtpXTcmTovZMoMWGqJ19J2Ec+62NHkZfxj1wcfo34c9eMAnpQg7\r\nm/ffXzSI5PMfBbMwYhD+cOeUdbJHbdBEynrmtiVxECd1WjQyI2ZgkecE+uN6\r\n5ESx5FoA5zf454EkjvN3T1MXujiabKA5LuLCfz3R4q6/SbEdwsJFtJtl/J/S\r\nOtlNLG2TCwJGVHd25OvgTH64RxvMi203W49PxloQUMKu9SxQpfqChTnNF5bc\r\nyLZ0eScSfRWCPLT20kHhsq9C26HN1yYI6cM=\r\n=g5V1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-24-2022_1658622754669_0.9414913271421863"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-25-2022":{"name":"playwright","version":"1.25.0-alpha-jul-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4bec6309df2c45ecbbb2767201a98f89f1cf8f5e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-25-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-BUQYUZwZ9i2lPfgXWweuvEwi9hJfZfPzWINx3Mwsfz9LWMuCO3ZgqZqz9EWpgV6PjqnaUerYqOlx6KiJmk2hUQ==","shasum":"a9139a9a94c9abab32397d7e377808c4998bba72","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-25-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+LU/N67vdrSM/r/hGLWbW/1RvwP816fkIWNIOM3ZUWQIgUgDBh16ww4i6kqXuDwi5+FDxLKxetdi7xpLwqpb/YIE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3eQEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoldw//WcO7S4C03XDAucg0E+zN80qB8C0tdlewCkb1h1wnGLF+76P8\r\nRzKLJ5IxZEKBKRRsOXWmCqZsnG4wxAZHbGwzr8JKvyJRLF5SaHuf+P6IPjNV\r\nlN5q6dkY/WgXd9bvqN+5XugY1vJB/jlSRSmqO/A1XfnNVkudDLw4Y41Zl9lm\r\n4gVVdAX4x3nlqVXmLl8uBL8a0Oj47lZST1hRcgh3wh7K2LlubdM3k0ad2CdQ\r\n/g73YTo9G+1D/hAsrFBkPzjLbZ2r6njFczMjV/meTXeXZUUuFIJthdbGcV0D\r\nBywufZjxa4doZkKL74IZGzwsjWyf7fjTHrXzHKZnuZZqjjkJvcnMufZJ3MYu\r\nPof8uvluSjZPMOlooLYMLSp2Xtc06uPR+AffOE6EJZCmI5Ab3UBVqXBGn438\r\nPd/BPqzAOqbSOUXxJrK9z/MenE97Q6q96sZW5Ky1H95kyavr/eOdusHbC4F3\r\nUxqfQLj2j5eI3ggqWH7VorjN63uXs34zcZw/2XU1S/S3ZC3685lhIRlLFjpv\r\n0pzoqo11KtjXBzsckOsF7PyKUJqs1jRkiNfHOvDz26BIqXpAs6G6pX58o2Cj\r\nTqKGP0ScA8pDTWO/b4q0tBM/gjI5v8IyERtJfDBGQUG3u5ssKrwYraHt5vk6\r\n3Zxkdida8NM5q8B9Q3BlkDsWcMccW+dIOzg=\r\n=E7Di\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-25-2022_1658708996099_0.035943416328275246"},"_hasShrinkwrap":false},"1.24.0-beta-1658740819000":{"name":"playwright","version":"1.24.0-beta-1658740819000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658740819000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1b2cb1c7b2677a4d3d98e0f3bfd2337169aeffe2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658740819000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-HKc+ym/xJU1MaPXzkZazEmn/4vdBAD0Zzm7fe5jzfHxiU0C5JxlpeHvaoyYI2g221d0+6PelSiC3PkMEZBXGPA==","shasum":"3b065f43fe4a51b636d59530ddc39d4a0075e977","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658740819000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHvwqLwbMU5v/qDNkub6wwNPDnt3Yu1SfVd+S/5SL197AiAnA8RbtuQaMvxsfmf26mMWuBFz0Vp1MoDvthZSTDlTIg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3mDmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnEQ/7BLDIGZvqPOsFphJReeOP6TKRJD6u2IgvAY6zAda39r5GweTc\r\nkiC8Z+Vda2NHR6xjUr8z7nCoYjILsqF98IsdgpDw5uf/fj2tDTgiCkVMHEHS\r\nqkFU9GvpDKHDaWytag7tYbeLD7QCPSIWDPnCSQcT4sQMosyRgyKceNMCc/cA\r\naAuPbbxoD9cWsx57OpaFco2Dc6FB0iVrxNMTGZ4KmmqiE2+6NDXqjyLelrg0\r\nzFbmcl5IuxDRIgoEW0NXHjIaAnQR0E+khLDSyqN3iEjXupvXhpMprZQPlFco\r\nK4lNYEE3ZoiUAXKD4nj5Zw1MogzCe5TJc61hiy67kKzy2hoRGGDQnPFI3/VC\r\nbMCDwyeaLSBXhenUgOCPEq6NFoiu/TivIA9wlBEdDPG75skVGtVL04fRN8WM\r\nDmrOVtWW0O38Ed5Ze++UUCkDTvWknW+Q3NwR/lQk711YMtdavod/49m/x1gT\r\nIFMusjjQTIbqbgC6klXEwG6Bqy5EBgUAPemfLVcn0Cc27Qs91ZVUlhpMq3hY\r\nkJ7CVPLLA6jYh7q0apyI4aqX3FaftCOm6Ws3zdcM9UsZqWwawMasOiF58lwz\r\nAecA0mxKARqNn8PnJkCxWQbleuYXgY3gCdZjKVDsw7mzu0CYQ7ZjJIt8jLwn\r\nenIcpij1TcdsA6Dz6J7MZlLbvA9wSxqkyJQ=\r\n=UuSS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658740819000_1658740966528_0.061000261658860744"},"_hasShrinkwrap":false},"1.24.0-beta-1658782064000":{"name":"playwright","version":"1.24.0-beta-1658782064000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658782064000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2964ed59821f6ff9b6e71535d139103faa7ba1e5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658782064000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ThMz6USTvmD8HrfnM7tJtj+yfjfQtz7Re+f65LG3Ttstd/unOQp32rjNdkTE+gqVuQmuiwSrHqpUh+loobnfLw==","shasum":"386fbbbf07c8d56f076f24a0d606b95e9abb65cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658782064000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDGe9T6+bnfELUFz/4voIuYZ9guFM7OBwHRZPJl1ymewIgS4cDwfxTkJA6Sh7jnaWYGxpYsypVe9PeIPwuRm9yhIw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3wJuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWWA/9GAOtN+c4Fe4c+OFyLZuarzuV+lMAZ+t+rrBqymRHoc5/3Z7o\r\n8uqzk6W1NZ8nBI+y7/v3qUmAVtWpJ1VkNXabCAc+2p9sSLjVR9zkciA7BR+Y\r\nCFFK95BlJioMXO/wu8/Bn6Ndeu8pWAkEe3H286tAzlcoLpCb0BwyH3IAL+lG\r\nSAkebTAqqJP7wGzRigWVyinYiIP2vCF0WWM7JVy1fzO4xAvGIAIjUdvMGQDh\r\nM1BOqSskiyUxmGUBVcOeIRVX6gsBq93rv/JaJDACvlguEkzqX4nHg80joZJL\r\n73P5+gEc9OZKMoomp/Ugf1j9Aj2bU7SRy+phKGxZiFrADk/qgH71jmVQYh64\r\nSQ14S1CCYIkkk9zRZDRnEOQnDTAU3ndjDbZVujEwL8OKfZnCwZdLfhKbZDuM\r\nnYISaLFcEu01L03B99VV+5mpHjdprWmyFq4wZQHMBbgkoDVtR3lAaFoCePJo\r\nKXwyTh0RJ6GcVZk4hQo7Uixp5s2WOf0zMcUvnCJleJg/pvIWjKf4OyvnEmuG\r\nmPwfERFwW4wQS3VI935ANcZ3p8bZEzC3KXRtHDRjtZcEXBCwbS0uHWhzUDUL\r\n7yqeGXUgIxMPGBlzxkrL8zpukX65Z77F9EXBgr4lIaU6M1+ImALJMcp3WUtk\r\no0F4CKtny/+XDe4Rc+JPxkwm4fyhzkUFMCI=\r\n=VkOo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658782064000_1658782318546_0.22386904216957282"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-26-2022":{"name":"playwright","version":"1.25.0-alpha-jul-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a5738998f67346ea2e6816ef2ec418fc54aedc82","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-26-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-50ev2+pQP+hWgX8YBtYpT1I4D05yCIYuckEpz5Iydl/7hT+9LTKmtag+5yfvg7DSsJATulZbqLP4lxJrxvcAtw==","shasum":"3b3ca9b8304dd03edecf87fae3e2b422ffb831de","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-26-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWIDDW6lWx1IpL3oHKRIouoHifjf7Y0Uzkv/0oAYDC0AIgbvKTyTKCu9aD0lvHcsNEeGY/zHsKlqMwuds4TBhKSjo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3zXvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkuhAAgpQobRffBbkaXYBbSlZe6DALOr+VsGnDis3GUROEYeIjvRHG\r\nRybN7TJJJxv1A1zuMOAbalEQBq9cZi2wceXVMw05USIlVHG9E9HCLC4SJ05H\r\nuGtpKk05HoFhjFgGGwZqo5dxCX4TQBL+Z53ZlW97REdDcAGjU4dh9OWbHPdJ\r\nyrDT44U4VF2sv8+QYagpUGw2T/2GQow2pmSxXTsBFoRzAF0z4wNZq6Zi9zvO\r\nduazkot9wEkbJH7XqSmTKmHTc+bpCO4AR6Xs+YnZsKiCfDCNArLYv5CBkujC\r\nURzeaxz0UrJ/ugGmLKEEPJqpaitvqseapehd/B1OEjBk3bUs8kWGO0b1alDA\r\nKyze3NTp0ov9zZVcyHMej2EzbYFpX6INjSg229WGu3jSxZYJMW0o1PLULt/m\r\nQIF4r8rZNzO+iL633+QqfG/I2U4cvSlBt97rJ2GZMe532fcId2RuMmjlpaxQ\r\n206NL2aU4JW7ifsqOmTpmzCwq1yknYTtcCDOpLHlWMP33wMpTD8VvsbJRuOo\r\nENAd8XxeFMVp8SS+ADUCgJG/pQdMHNbJGKERskxjPaH0oSlszg0XrchyjNaH\r\noCNV8ljXAMKzadpnBE768DxeAe+y2XYK8t3MIgs0Xj/nI/dEJ+P/yukuQXD1\r\nbFFJh+XHjeFhAtiBW3Q26LYko/SM651Gouo=\r\n=1WGA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-26-2022_1658795503055_0.13274309133738083"},"_hasShrinkwrap":false},"1.24.0-beta-1658795899000":{"name":"playwright","version":"1.24.0-beta-1658795899000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.0-beta-1658795899000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dc0651ddd28d2f2f70a417ac7b701fb34673cb6e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.0-beta-1658795899000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-EAWZUD0PcDrSUttEwHtAuGXH9jNUKKAwav5M/wqcVIFR3n8mptIboReqdIHA0iBMU75AIGISMz8Qtlsew5btwQ==","shasum":"5400fd2d05e1b813d0c025a7757c92de419ed5c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.0-beta-1658795899000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBsZhF9Q5OEj/mWrAsNf0VndtcN9iAY+VnpfZVKbcUkKAiA8l4e5wtRmczFXaqWoIhX6IrBq+unFIGcYlvRzCf4biA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3zhVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUdg//Wwwkg935dax1+lickrXD1AVRqKuAptBY20gFnrDjTj/Ryvw+\r\nvkiNywMtWjDrJa4OC9ebfJeZJ5j5ainMESEI5aHZC6UC9fMqfUxKcjzm8AFj\r\nZnJU7aWA0e+JYG1dZmXKZ4X3+gZnVF7HH3MMC2aFuni+wygURxc0KVP/FxSo\r\nSBYskCGLkYoePkBqb6yPGXO4VEaRT/wpT5qD725hfJTCNHCPz3+y/eSwxefZ\r\n+PozCGIywXdJPBaphzY7NvP4ZYNCHS7GNNovXtCM0p0N2n+hC3EsSK9eAtZi\r\nKbsfSONTINqDrC1ZylCzMtVwla04P/amnh6oxG0X9eJ6wsArlvjKAs5bnvC6\r\n48D+YCNmt/7hY/30ukyL+Vt5czAlcXdrbsAZtt0oGvtnJ7OAYT+N07QQ1HNB\r\n4REeq+v5DpUm6R4SDzyxce9lFQUCzCowkUXPzK+bDCDyqgSdHAbsyUFwl9p4\r\n1xaZMI3G2gk0ikJrreSfEQrMKOPvfpYooWOKtSOgr7zCQnWJkvq8l+D0edFS\r\nkSBLOrcf2OtBEJOrvWHuIuacEugLzLFAqdRy1grjq5yatT5kd8XYnaEwjrPT\r\nO+tq4p63V1I6xuQ0URvVTkc0sEO7b0EOoacEQa7UZUprZnPPffsUWzLUDqUL\r\nspszLrYdf5ZcQ83tV/+X+6V4FD9d9tNhyTw=\r\n=osDB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.0-beta-1658795899000_1658796117587_0.3078505809946974"},"_hasShrinkwrap":false},"1.24.1-beta-1658834175000":{"name":"playwright","version":"1.24.1-beta-1658834175000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.1-beta-1658834175000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c08a7d81b3737349f17e35a5ea5f09c7da8f96ee","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.1-beta-1658834175000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-aeriRIy2EFKfBUvy6qZbpSrMKfEg4gnwb6vPFWjei0X5MOupTf//nqwgwHRUzwo1UXPTBmlALBT9Ui0rXAe5Uw==","shasum":"c590409a798a81cd37a51437ab7001ad3fa0f48d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.1-beta-1658834175000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqyStCRANRjxE+p1734svaXrD3+LevtUWvQ1+qAGd8RQIhAJWWkEggSKgeoCa2I7Q60uGkjKnJYpfpi+3hqqVWuTJM"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3813ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEsBAAj9nxWHPDWa791hJRyLvBfvVl1aBWsW7gQDq/vMZJ1UDN9rBL\r\nAHiWvVenSZHtT1Uec0Nla08wUO+I8uB91edkVX9b3rWOnqJaHCakSBP9W4Yv\r\nrq/D7ksiunyMB7nRwDBSkM5YXIA7SM8C2wQixJCF2ljtQTwPntRFgHYjQEuv\r\nsx6C++gw2RKtkFsYQRsbF72RDefpOIn0qZnQhcat0Xt/9HX5K8+iVvIUisHA\r\nUlNG+bKSmNthNMP6MqT6RCXRLHj+gf26iB0IIoztqbyiEgX4w2XGv5aFx5QL\r\ng+U7jSGXOXI0kzYZ6orQFLocvjSJJ2LoezuJ6+LcCG1wiIsXnwW8kAuZfmNm\r\nqedjba7rYqMAZTq+FsPW/gJ2X0I7+C9lyxZbOzIPrhMwB0FcWGQhbXnZRAnp\r\nMzej9KRRJdsh9HR0DUVXfWOc4IQlu4Fgw7bB9YOf4jyMigw9pe4mwoejkSfx\r\nNPNBVRfYVlfG9FHIjNSjyjgLpEU950IxkyeHXZ7/zj3L0Duz7r382qbYBynE\r\nXdWHSlgdD/eQSLJ1H7KEBCoZukPJEj+STMvrgN34vkp8xf7zj5r4i/BPEQoV\r\nf3ZZCu7IDnkUgJ295Mgs2zqmncvhFA2u4GPji+CfYjJHFXhbOGFj+Wg/LO7t\r\nO/9IrfrbUg4NNdLt4E8prk0u76qEq6Yx2qQ=\r\n=Wswn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.1-beta-1658834175000_1658834294868_0.8828351614920131"},"_hasShrinkwrap":false},"1.24.1":{"name":"playwright","version":"1.24.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.1"},"types":"./index.d.ts","gitHead":"c08a7d81b3737349f17e35a5ea5f09c7da8f96ee","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.1","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-ALAdckGTTZq6cPD/NlWE+OO5cgNBi9BHKk6FoDztlcVNJ07F1buwydTuf8wBu1Jzi+SGOpEfLR/83+2fS84ksQ==","shasum":"2d047dc28468e80952cd4cee3ae2223a3ad94abb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.1.tgz","fileCount":9,"unpackedSize":24217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/mKlXFCWvdiQjur2PR049Bct5rOnOeuUO8oy8WT/0YAIgITZ0gnIxk39MKjoOcnm+erE5ozj1/oJtKlt82zN/n2s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi388kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdgQ/8CYEUJWUTds5MRvtKi/KLyPT6i6jlvNls6CYfHEhtMnXlwajr\r\npoTnaiK4Xldej3DH3hIO8Di878mEIrJqR0jYj4X38BUsHJqJzuedrrXQywVC\r\nFgfUBrzPAX7dv0Z+tn5IbVDzJfYsvSeZBSKfzh0l603oVoySRxprMUMXEQx2\r\nVGl89DEYhgwl67ZaZxqkX8/C00KCppMS/uPojGz5LCBSK05zr2keuV4PHQsL\r\n3eWpjMHDfAQqwsCX2NTXgB6OWrypfWphXE5kc203XVp5f9j9v0Chl8L9+CRj\r\nZWqJUlU5c4/WaC6sYKmhP4U0jHgO41hfgaavwj2j1Fi864Uau4772Q4GwTRl\r\ncxW9WY1Nnu+e+RxAMBKrqWOOcIaf4cPdMPMD5Ijryfc+bWaSzriCR5HpR53t\r\nAKBtqDEDjAp0ZOfVJ7DULLgxG4mkdRQisr2ex37eXD30eadDfuy8qO9wZmDU\r\n6P+4qp8ESobov50FBe6al99IcC5v/MQyt4M9IenMZ+yC2/m/SYOf7z+NwJZU\r\nLJnABhqvpPABEEVXgFyYbJYeR9Mn2XC2ek6/dh7AsNpmU9WYgdNzu20QOm72\r\nfF2nOm0IL9IGfeJPGi13dOoONdxbi0YgFv4gYo3pYd2D/wwuvRizLdsTn6ed\r\n9gAr1zPPgZlR6xcCgDX90NKlJWJ7pJZULVE=\r\n=HMxU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.1_1658834724184_0.3555641399148406"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-27-2022":{"name":"playwright","version":"1.25.0-alpha-jul-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"24ed337e1e4bdf7d9ff97334cc7f05f5a34a94a2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-27-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-dt/LyZA4eGGIAO+leWbZeSeaf58Kjnj9g27z0qsJkUHRXTPqKUeEbGtNCzdBwOPGfNmQkqQFkW3+My9GlVLUwg==","shasum":"7aaa580d43d0937e32d7a0089e89d1996618a2fe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-27-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOLSt5MsTcUWih1C+LLKsAu3XGfZ0qPMkweUJd7+jrFAiEAgR0rtRJHsHqXgLG67YoYKFWgh8oYrfdG/MYLRBR9Q/c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4Ig0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUnRAAopS/b6NkPU8FkUCSF3WAktbFPOtcZnstyyv/xrkPAyxUugWu\r\n8nvhNejNI3rYuCIBzR4VDKY6ddcc3fmy8jJzM56w7JMxrO/zU4uwvnoFl0Il\r\nhxNEw7JwgiVwUuvdMm5BWc8dPg/ne48wWrOTIfbf1LKgU06gNHs7kKa8g5si\r\nOLUQ/EbW6/hbk1ZoDHkgahmasiI3pXOFvTM7fqs2lWLBNtWF3qTCskoHzJKQ\r\nTI1Lre5tWRp9fbrpwKzR8qY/9g+9VDifY6F0niHsX+NQDT2iSMhuyUO6Gh+k\r\n0DE9EP5HqP2VUiqtuSJ1snXoqCBxmeWlfMZ0uDm40/toI8ENoj6wLOLx8Jck\r\npgrMwsrM77wr3Inaynok9FPtqrh8NKQzOAM7xnncrQ/E4Nx4DpHh7iqEN7yG\r\ngKKTbeAHwW9K02YJytrwRlG6ADvsSxphLvREOxHQFXTrDYS4qi7Kdfy8ZEEL\r\nZYkhMO36bRPRuZlTRy7eghrTPt5wQyOE3Os+Ahu4W/4qzE48RZjy8gjBHoxQ\r\nWkFxUt0v4/T/pssHXgMQ5ZEQKpz+7JnR0HTQI7cHlDOxDYYfPj2swgEY9ngM\r\nGEOb2noVYi4g3/MzPl3gzkp6U8i4Ylhxj50tHeFL2GG5g/wdPZyIUC4B28yp\r\nmuPrD7EdXSk7ClUMV1KkCyEYw9ZhBppscTE=\r\n=eK2s\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-27-2022_1658882100261_0.9724217746684878"},"_hasShrinkwrap":false},"1.24.1-beta-1658946462000":{"name":"playwright","version":"1.24.1-beta-1658946462000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.1-beta-1658946462000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bd6f228886ef2a397fa60ed60969de0beff56332","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.1-beta-1658946462000","_nodeVersion":"14.20.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-jaI6xyfeKZQ4EpHGyf5VyLq/X53WV72gtvN+H2WEWMEON9Htc5giOqOkr731xHU4WfXjIAYypdgrQ37BrQqidA==","shasum":"cce209f07bbb6031d4a9cff54fa0ebbc71fd3eea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.1-beta-1658946462000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBKQ7yV1nWFv6swLIuEXSqreffbY5ErqSLM1nh5wLL74AiBVOA/LLUpBsjnTpJsrCqAtPu+W3t9WCZZ+F5rhpji7PA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4YR2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2fQ//UikwC00H7RFTAKRs6Kr2WIIDXXUtsXuVYrlXKM18jQ5i+lkz\r\ntlBKxQM/cx49WoJi87i+wch5Osg3Ud2veFVWKVWwPdH+czfowpc8MbKOwmk4\r\n1E/Js+KkTbfVYypGLqqiWHAme6gqzuEy46PRudoXxsFiSaFrKmgL6HRZB5fD\r\nCi5Qt3UcUF6SyuBqqzuivic/ZopkXlrpOOuy40JH9DmkDIg1jVsv4Ls1pxtb\r\ng837K/cKf8uIIZN9yiZ4qWs3kMihJYNV34ux5ZHfn2O2iriF2jxk7tAb5jor\r\nEAcbCoDV1Jn+QkOlOGIt2vEpNjvgOuJmA0wmhpIYNC+sGTq/v3KudMcruk3+\r\nLdQQcdiWqaLJKmbwRnnaWeSofsJO6FVivuOF7bK+AWvPwtf+JvoGnPeHKGcP\r\nnSbdJD8QuluqnXopzJma7wuIP7YQTX4ICW0KWy+YLx6SnyDkyiS28c0IYgoQ\r\nGKHl7MKMlFIRW6OQa+VFYwgbuAZjXxoikWyqFhq19uztGYveq5dz7y6TjK0j\r\nLQDgvv7pEoMpVlvilZJBl/GCYdQvPrU29svkc1iBjpVEYcoJriGJJ3tkEVHP\r\ngWlkTVC9ZZTG3A2+i1AWZZ3T2dMgc532qKW5LtDPp1jJBZkV9+9aSE88q9WB\r\nGa3RLr1gps1p3LJgsvxIAPC0QipOzs+ijMs=\r\n=NkWV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.1-beta-1658946462000_1658946678138_0.02373642693333533"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-28-2022":{"name":"playwright","version":"1.25.0-alpha-jul-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a128dda84eccefe343ba46d4ef5839263a17c8b5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-28-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-m07TsmtcmyZt8e8oXAox1aKrkq0Se3P6gtoKD4k+u9gqdrhakzu+OLsS6m4nXPJuCxq2MGksXHdf5X4hqd2dtA==","shasum":"1d8f53463a4b8908d81aea7ba12edf90a7f56888","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-28-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4D1OssjcuV2A63vE4gJyGvQ7NXJHJSxBQ2Uvw4vw+GgIhAMcBW1PAlMVivMd4RHYG0qAypH5YHvAp03iyckzpSRZy"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4diEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpV4hAAmtxhOo/s+WdDGrFdfjFQoNPBalmrODb08JXntOaTYvAVYuf+\r\nwU9qcYUD8tavhIvSWnCrY9mluqyf+XWhpA5gb2vVYgQUlqik+fygCD1+LZxc\r\ner0Qc49MLPOBiIhJ9ei3ZSZKsEgHTUNAeQjZxmNKjZKvV6frG3svC3uz/T6a\r\n2jFsRk3tVRz0vvom6yGAMhnh5NGS/xihoSx1Ife6052d2hooZ0/hMeYfZpiQ\r\nLoPEtrNfgBWxeS72t3CMMBzy/uqeOuQD0ip6xDD5jzr+ZthDgwBdGSk4i5yP\r\nILlf/uTM+9CTY9n7/2vUM5qzGOHYvwVTXkodr4EhyvZ46gFHFMDb6rELGcPU\r\nYbGRZ9dB5rwVMeMbBNOGOWGEJIDyuRbkT6wEPRhJNdOWHOX51+S6XfSEhTpC\r\n9fklwwwuiRfjfetMC6VILMRMQpGWQwnHftX4XARJeIU81ErvFoM5Zig2AIPP\r\n6snNBYYbJvgxLc9qy0tt0U9RvNcMNo3Vt3EzeFs6/9EwIPAtYnAFm+m3Bug8\r\n8PIXiadun5IX6myKDH52308FhokhHbmcRjFO74IHG8Fqn7fNcyQxhuSTdLaB\r\nO5FAOQ8QKaWSBt8aX9VgmCKs1kYjg5bnDDJYpDeaVFgbn23mNRZK2df7NAJC\r\nLcRsfM82PSQsp/AvxxsdYFP9Ep8GI8Gb+1U=\r\n=ic26\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-28-2022_1658968196766_0.5854232722142276"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-29-2022":{"name":"playwright","version":"1.25.0-alpha-jul-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.65-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.65<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"62e4e80599efc00a799a389ee4be76c74c9f172b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-29-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-871a+k2+QDYhRfc+h+Askx2XFg7D+SBfjQIEEAgPD21DC0fTrI6Xj9U603Ww1H1OELGenCfi8X2YgvD6ePmK+g==","shasum":"8b08d616fa31582de2e8d4b27b5c1042eafa6daa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-29-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEFjuaRSaJSP4vrpnxt4UUJHWmklCtphVgwnQHgkGO/JAiEA1/2syabT4GZJovQWnoH+RsmEDUvRH8SnIu0MJy6FxoM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4yoGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/iw/8Czhehq9V84n/wMNSUrXLrtuwZR2WueRt2gHMBvLuTBjIpJgk\r\nrKSiZ7S7/XBCi1AsF2zDgAUU8sQ7kvTgUnZ7qMyoF09gDZlH3qtp7QrQDWl8\r\nWoaDAXr20gtPSz53qazJfFqKgSAPqcqMyaLd9V7+zJkqboPpikM3ktt/+cu/\r\n0BTRXrz6UFSX5ZO1oqvFVkXAYDAafdTA93i9s1z2E4qjt765A+USit2vNwaI\r\nQuRAS786ImqRzaiB5oHrOzi5aOqfGuoZTJmIuOXvqXFUCM99kRtm74/ZqgQH\r\n/mlrSF97WrqJwuYmxcJ0VVE4gIb234LlCCTggYDf3ZytjJNNXyCDGh6gSK27\r\nSiTE/RXeVX5DUCadn4cvpYIs6jjoH1YghtPnrR1x2NPMOWSSIEG8c6tpkUbU\r\nTLnOjzYecD/WSrIUhNlzCIBPM0/aYEMp9XywGuqWIz4n6LI1D7slmyDHKvH9\r\ne/LPorWC/d7PYFrtE13c/dacxvcbuYMA1iUWWpKVhhSjuz2lEdV9bD/chMdC\r\np993c+GaygN3ZlUMxsYomQ+oGz49uhe3Le/e8ZguK2OomgXXFPQa6jZQ0w4/\r\nQXsdQ2bm+gu5fn8+w7pM5ybC0gNYEdcpeTt1Uib4fLBl8w3RyI00+y4Fe8Nu\r\nURextrBiixq4AHQDkWmzXJdX3tsrf1AIoFs=\r\n=5WTt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-29-2022_1659054597914_0.8139776322194199"},"_hasShrinkwrap":false},"1.24.2-beta-1659096416000":{"name":"playwright","version":"1.24.2-beta-1659096416000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.2-beta-1659096416000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0eb8a7008926bca2212a5313745c52d35765720c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.2-beta-1659096416000","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-YNGAaBnxJKErLDwMRWTLuNx1+YREExxyAkFeVvIpoGwivsgm7Hf/s3JtrI0TSRxkjW/x8+qmVkkQjZzh5Bq3pA==","shasum":"1b065ad5ecaca4423c2220dd341bcd0cfb0afe4b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.2-beta-1659096416000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICzrX89FqxwwTjlTKa708NGRm+sJs+HpvmtSml2mFplMAiBXQN9cPLDYPMJgpzSbZuCfEYPx1LYX72uu66GYSyOCAg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4833ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbBBAAoUiNEABI7WaeH9sJzYE4j1xfWfLET0gjsxAFVbSiwpwt1N5M\r\nPfqY5KhLfDTPnTVIlZ5jRFrTaa0pt5/XGCWcBbey8NJ0WhEqjg4jNrX4sBDX\r\nqpNgIN/TRL5ndTE6i0Pz79YzloH4yWGaEzWHtuEVzgHt3iWDiGhUhSAqKDsY\r\nVQiMQcEykoayDVB53b/lIroSIvHhxFjiHE3U/yQXvTWJWwEsipeXGV16Z7QV\r\nyNRgbSUJZyE/A+iMV3eEDdW9okHqmsOfeOQg0JQVKzF7/VC/87GN7Bqzy70N\r\ngsNZ7wLI7LaQiZ1Jc8y6U7jJh0+Nl/bVcQiIbo4CUyUgscU65yJSTwtWd3/K\r\niU8sOfAiEA0lyDo+LR5mwbQHx7N4t07f2ew1LeHPMapRece3IKiXl1p/D2mF\r\nOjIuNvF3K1mXWEEr8dTtqlY4WSaTOTFibP1yxZ7FEKQQ1Iu030CgEr+U+VGd\r\nKZKyOxAqPnnhB5JJxc6J3tc1fI8G2yMnP+rjO+jpRQLKP/OEHN0YPKnRHD7M\r\nyhInC7cT08a9S5LyUGigLWkW5N6w/irsz/FExIxuuFsNK/rE1ikIfBgtCGrE\r\nzbBkxiqbwwiv0lg5CD+B7vD/axSGSIUA9GOVwgWXWdp1ZdxrcQUFRSQ57ASZ\r\nWdw9LR7WAh97HzfUXSEgSWq9WHsK8HOsdqI=\r\n=6Bwj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.2-beta-1659096416000_1659096567236_0.5610583252028576"},"_hasShrinkwrap":false},"1.24.2":{"name":"playwright","version":"1.24.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.2"},"types":"./index.d.ts","gitHead":"0eb8a7008926bca2212a5313745c52d35765720c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.2","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-iMWDLgaFRT+7dXsNeYwgl8nhLHsUrzFyaRVC+ftr++P1dVs70mPrFKBZrGp1fOKigHV9d1syC03IpPbqLKlPsg==","shasum":"51e60f128b386023e5ee83deca23453aaf73ba6d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.2.tgz","fileCount":9,"unpackedSize":24217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYVWhoSIjCtX4Y0ajHYmS6ht8p0rubz/C5f6QLZJ7aDgIhALuYMsii8qCuqzGCUqGL8OKo6uE5EMRH9MiSVT6PDxn8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5BOhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2uQ//YgRGld5fH6zh6H9WWcHqAI/byYX6rn4fjG/sOIgv7l4PbSSV\r\nvuyJUEdFscIQ9mj4A3UqlIl8fwkeYG5stCPiW+5LebG8WI2dylYLrFubjZzF\r\nclMbUU98bwNrMUH18q2bxQ6l6eOSptp+vN8zDOgsF0LrUhtWU6zZtym90g9a\r\nlLuFnyQQsJNiNm1+EaxqnExa8ZLbA23XiI8m5lkM96kVABeXx4w7e/p/MRTK\r\nY+agJq09xPsSlHh94vxbSxinlxjix5m8LfPLaadx9EQiXirRNpjmfMGOAogN\r\ne+E+QHJTJpXnE7X4Lz/tmi7Eo/mnIwlYdWP6q0h3W3xwmD7fVzNz/3/yqwoC\r\nTX9SRt/mA1Y7Yw8zCV/WLQLl+RxgAZmpK3TnX1VVeYBad5uXw/RdKxGfxRBX\r\nwby48JJ5+C9kcfls4FiBcqADffsu/KlxciUd+M3o5WECcdb/K+HsffLuDHfI\r\nGLcb5rrW94Vz6z6dX0pA03MQkEMHu3GhNXyvTZ8fE3jl/qJYCnnkjb7xUoSi\r\nO1vRI2N53r6ZTYni9/8G+pFXQI0N5osdDQr5G9GBgO7SE2caJPYtouG1/60W\r\nOBu8VSNqspLNgc7XXXt54k/mxQEKdiT7xkRsYyqVwlSkbMfD8K5WDlVvz1I5\r\nXsPjYQIQa50tmhR2896EYNnvBEhkWbmt3f4=\r\n=A0p6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.2_1659114400824_0.601151055912037"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-30-2022":{"name":"playwright","version":"1.25.0-alpha-jul-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.65-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.65<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d05044f366f41681a052530b9506f90162cc0507","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-30-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-M3PRQVPnGOgv/pxxVAQqAce9ki8W0W6BcJNmD7ElYdS8G0kpM3P/maukd/eKds80qnttHAPZcsTFPkKRU5hEXg==","shasum":"e7381a6455626bd5e6881d8db65b10ac7af95c4b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-30-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC24YQHs4+W4vZb3m2EueOEeblIXQG7vkbuisiWLtcJdAiBQZrHaR2rCbxUmesr+1rBmTFfoXzw1Nuk2yswAHFWARw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5Hp/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrU4hAAm90aK04XloHbBJAY03PzOr5aHT6T8FFHtVO1Hn0ckprzTw4F\r\nhSJ0dyv9yjwTqrr37byUbKn+eIz6HA+ahZQZwNH5QpmTwvPMzXwf2N+XHPEa\r\nmeJQSeY9QuDzljbVwK8+SBXBC/Jvm2frQ0AwO1uBXQ/l0hB/49krCdoMcn1s\r\nphMbDkVBB+YAO/iBR98/KPU/2Vmi1U4F7JuIMnkvKRDQ3Pg/XrjSByreqlg5\r\n+Sawr9U5NWJvfFKASgNa+zOMSBhwZc71z8cEBlJNRL9b8jynuHxIH5VEmyWx\r\natrYGobxOCrxUUyOZ+VVxOHPACehN4Wtq9Pg9P5F2zJjySJx7TqSKKEU0361\r\nD1TLIjZhrrbbmf7ikoCmzbOxeNvQpSLoC1FCGrowYDPwkkrhfv2zG9pUYTG/\r\nM7PaqfMyVpipa47WMq9tk8I7XdfC8a7WeS0bGdw79mDlof6pLHUKzZBeA9Im\r\no1x9YBYbRsc6TRTXCPPZmK9urW1eLfaCBOjO1ByM4gDLiaE4Uygqi8x8nzkB\r\nnm5vMuspcSvomKLd+1k8XAwHWZLhvoItpsVhu/tPUoNkb794RSQy0xQka4KG\r\ncdcuu8fcpr4wcRupTkSk3+T8X2SGtkguIB9fZD4HkzqaNOB5I3shruJ/rKXl\r\nbTq47ypSD8aPGYVibAZEc2TOn8KVnQ80ibs=\r\n=6yIV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-30-2022_1659140735718_0.6919421495955298"},"_hasShrinkwrap":false},"1.25.0-alpha-jul-31-2022":{"name":"playwright","version":"1.25.0-alpha-jul-31-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-jul-31-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.65-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.65<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"557db4c35efdd6d0c13f814588f3d55cb9922690","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-jul-31-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-5th18xwtgAvjR1KBrmwNaRi9xxnDU0FmrXFlD2d3GNEfAEQvsiSLtXlcjlJ6Cd4+LEBjrruRvfrG2MdYlbrwng==","shasum":"ba9db5614ae0ce8e1d0624b90019c7d098c436ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-jul-31-2022.tgz","fileCount":9,"unpackedSize":24253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFiLoql1V0uEGGTFEUmh7V0c6S7WDVgWvDPWwj0tclUwIhAMwY8aIuEf+teBJKhdQAX+kvPcWxjp3HqTuU14qSUuBb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5cz8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5chAAnGQfq/g5TOGm/CilNUrvv1ZkEkQub1VDEVeh/dCFkr+ZX1NI\r\nT/W2eCWVBdIb8eOUd2SbfPPFqteqAaMj0t7TysurqREBBfyufUu335XY9UQs\r\ny+TjAns5Oiw2DCB3RPpvfXl/Afg47HArs0N1k0gHC03gvyVUtcdfyFsgUEOE\r\nuYfqPfWcTaorFbYckP6yaLWlPzrmIVmxjnXO/WOUEvmM0QmCaBfeXCK3Kmkc\r\ndL6DCXPjjcnxE/xru1OdL4c9e01mCHRCXYeS54WlhCsWlxqdZapNUf9w/ZFp\r\nLlfNTXy6KWXDDhjNr/ZjbzlxqdYKYezuENwc5auraGQo+BcSc/Dg+EuWA1WP\r\nLbfKzSybMM8oqrTLu7UBsDU2LkEMZNGTsKUeoUQxFQMw8NNnnMJ/NcRSMYFv\r\n/tNyO+gwgcGhoS0vvGQiJPraMjlNF39nhEhMn57JjiU85PW25i+yEbXOMXjo\r\nL/6KhxIH5HAzEL0Ke5MQSIva29KooU2EvurH2JwGmgJMES7GL8IIby8C0AK5\r\nQPPAioMtRhJJjPZ0gW8yN5YyDvf5x/zq456OT0P7CK522XQ0wfDOomAu2CWM\r\nC+gABSlDzTTVVysLvnLsMKG3pRAtweqaBKtnXTh7d+mYVqWdvGuATBJMcl0X\r\nKiAkvP7co3yBn1ZlqCKkChO2dyQrxm8x7Uk=\r\n=sDEk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-jul-31-2022_1659227387953_0.5694402549109343"},"_hasShrinkwrap":false},"1.25.0-alpha-aug-1-2022":{"name":"playwright","version":"1.25.0-alpha-aug-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-aug-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.65-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.65<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8027bd375ede780d26e0f999143c28633390a072","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-aug-1-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-vz/gxiNbyqo+7k7edCBttRRan4cndggzU66kEydKabcYkDVBVAeO2ccbmZyzI0MVBd9w3aLlfpQ/jWi2hf/Oog==","shasum":"8d30c999fbff0c3b3ddc2236d30c64736f30b60f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-aug-1-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDihANriT9aC233ErANXE3qwQ60bvCqICyaMUbW8fvbeQIgYW6KMAX7BPKbuhRpnYTsMupF1/8c+Ix0ShBiBOAQ2wI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5x+pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwfxAAoXVh9XiAiloI6zn3vlVKb6j/edLLDsmRcYPrghlsQd6zkFIO\r\ndsj3rSEetJaLF7voAkltCwvXs5byhSdfUSDaBrvrwV/0WbFEDUNWVbQf9HbW\r\nnrA54rS2aPr669y8RUQsu0txxgXtkOAAYq6LGAp6qwETk49/sWkzD7hhxWEw\r\nbar7rZ7CyH4x1rbCehaep25jVkjfNNiEtv703qkQDZST76ecsLrpSCMexeTS\r\nWge++X12ou746OMQTKc8hcWz5bIfCLdpjGqnZlAnGLOSDheV0nJewMMMCv+j\r\n3cazFn+6kpK5jqdfkQLNBrK7FARHLZnZag7Hltuj9UsybSvUZU4fxIzugnYC\r\n2sqGHYjA+lyJwzHb/8TJv5nUncIyKqLl8qUmj3d/WcTSg1ERn6a1hRfAlbcZ\r\nZnuxOyFhbLfxmXU8AE93G955rrxYb7gNXsU2dZzo7UgPOFRC3BNJuCsOhMap\r\nO+rPqre74z890fN9tdKFljiXYwysYPP7I6iGTLx5xEBWwGGbO1XjzUqnywqI\r\nNQXTm2aQhzLa4QUY4vlTmeKdUjsFuDKLlFCMX2e8+W4xMn+nH1/712soAp9A\r\nf4klSBDh0FwYQEpOJAp12ii68Cxkc1N00c73n/9jb8KOjOcad3CjPW77h2Uz\r\nngk0DSgon5iBkvEHmwGCDXc6PipyD5mmt5k=\r\n=pggG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-aug-1-2022_1659314089075_0.5112897106512133"},"_hasShrinkwrap":false},"1.25.0-alpha-aug-2-2022":{"name":"playwright","version":"1.25.0-alpha-aug-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-aug-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.65-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.65<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"11b7bf0dc3159ecf1d31ffc86f88875cbd692dc4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-aug-2-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-qbSODo+bacL/LNUX1uca5EvPV5/O4eYmWgsITHo3jV1PGN2snN1w80zn+1wUL/K2JTxB8AAhNY3YHlMj/ecB0A==","shasum":"26049459ffff49c36826277249440c646c26a04e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-aug-2-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXELUNA7mxFR35HgkdHc8Qvytw8vxrTPTRqrw5GipWQgIgY6U3kjwGTUQ0hTdn1PZC3N3LGVNiqVUufVXV38oKc6w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6HCQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqpRAAoqj3YacbaaSFlPSDmJCL+dzo/tVonidHJXtzI7M/vC3lIEPb\r\ngDyAKoYxcgpmSsOTREXOYs5UUnX8ZOTlXK4NwbuAgsRamJtoB5C+4K/93/rB\r\nRam1/5QEIdXJwicNTwlBC5/BR8xVCvAivK5V/I1+3fuiqhImJPiNAFlLH7ol\r\nfOsysafOzFpMqRBbxIgJghCu+pCI+RR1N4GKcg8vtyT/S7j4lQyD8FwHD6vz\r\nB9ONPXUCzS8w0ZKNWXgHuisOZfF83ypBtDAAmvfHU4BnVSDxgg5U5UQGyjHN\r\n/uaUWRx92A+BtCP8HisNEMSSWmdtHHyUjP2Rje3zAy57Ci/o2goFoK/ow24g\r\nz3bUv6WDqVYeVltMstxXeUHYZ3HMDL6Pk5EPcgvq7RbpEm4Y/o6rrrQRazPP\r\nX+P193GO21xOHZyWx1PN0eQ1ezwo1VVU/4Xxkx8K6xf/13TC3tVO/8RhT6S9\r\n45R3d5DHdSZpCJI66y8XohflzEHgPGQKmEfBIF55cMbixPcWrsxvAFKaxtxF\r\nEH9Lw7MVjPCKQlstPrBOTJQv146BREnLwYZ/LfAkiPhtgFMGQKNhnQLqZ9Ao\r\niBLlSzt42HF5rnjdSiC6D2m+EjNfBJOVn1De/azag0P1wbTTrZHjq7GGIbPD\r\ndZjbNrh9ljo1o0Er/1msPXw+WmjfTIEDcq8=\r\n=9xLx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-aug-2-2022_1659400336440_0.14697792785667474"},"_hasShrinkwrap":false},"1.25.0-alpha-1659484206000":{"name":"playwright","version":"1.25.0-alpha-1659484206000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-1659484206000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.81-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.81<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"52aa869f123c8f48a3f95159e97dd741d4b1c722","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-1659484206000","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-ia9Huk4aFdJIxpUBPHihq8FuD7Sb/8E3h9J/vZZZusecj6/1JLGGtAZs6/24mQ7/EQZ0UKq8iw8gwJNHUBwvXA==","shasum":"3454b87430e45cc311e19eaf5af862762e0a3f33","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-1659484206000.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDv8ndTuSPErSER9RRRVHnfB9mOB7is598xjSGtpuCp2QIgBZ9Ii2CXumrG1Mrvu/ICj2Ueg3QObNlYIv9zqizSAZ4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6b+SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpI+w//TXBmH9Q9fePuR9NEL7HoiBD4EoGUK3XaOoo4yXM26IZXSF1M\r\nHuepvd9r/gWNyE89X/MnLY4bewj0YGUsjqV1/1oRRG1CFIDQQaDplYJOfw8w\r\nIlymD3Cg+3Bl89wD/Ro15OmQblGda1VdGBbZMp0tPeWh2x4Mfangfcveu3/N\r\nzjaKhQl70l1jGho3TwrixsFj9gZJxym4R6kiV1S6D+2F4MTHDtnN2JZbVu5g\r\nYZ9B+I5LY9L+o+qhxKfvabF1+2MeRQ/sVrub+FuLnxs/mzK8Y8x26pQyDBF8\r\nNJtQJNYwpah5tDU8lbhR8FM7wzipRg2KZ3UwzpeckI27N/QoDl9Jg9RBZYuh\r\nVu1gMXiNI4e0Or0DhMsafMUvN9f8BNc8CUp8VhXAv2aoMbEoRdZE+pPBKe55\r\noFWTiuZFCWh0V3uf9hgdRIIMGbbOio4w0aKzCASD+llg+QP8rruXQByL71Ib\r\nE3bBIFx3VbQcZWPjM6cfp5rpoGq4bgQDGYSeeVabtsK9vJDvDxmhnarsY7gI\r\nqYBmaPjXZvv8EDIsGfD/sETbA14si7RsCiKllGa0OkTmYnyLg4B9QlgkQoKy\r\nqkPONgOH/uBs9kJgJRT1nIULVwF7d/7DBe+rjeZ9Pb3I2mV97zMohMJQc1Wz\r\nSghnAzbU3XLjoRHauMQwNRPsH973MxlWQEE=\r\n=RxwN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-1659484206000_1659486098327_0.028417497971808592"},"_hasShrinkwrap":false},"1.25.0-alpha-aug-3-2022":{"name":"playwright","version":"1.25.0-alpha-aug-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-aug-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.81-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.81<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d5bc5ee6f74f48666f0db179a120bbcc22bbe176","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-aug-3-2022","_nodeVersion":"14.20.0","_npmVersion":"8.15.1","dist":{"integrity":"sha512-SYjmywLSFf3GLZ8BOkV8ju2My/JzgXXbc+cwZQpbcXjIiGRQy29ZdXOaYXtmbWQ1tZXA5q1HC7lq7N/1zIW9iA==","shasum":"9d82d5c6dcdafc0b7e69e63c284dee003a70a532","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-aug-3-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFxAWrpAi2GeqKRQWelMfN0QRPFQlUdHNfcAPOXdQTrgIhAJCS+0U0gPtviRfR4aQNKnKhjJiSbbbwOLBZgsSm9VII"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6cZ7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVAw//V2KdS2ZBfkTraeNQiHhM4KGsN+KA7bgPaTfdmMj+MfsMMhSk\r\nBRCpUZBWDYkKjRZSWhxDwl5x5K/WRG2Afm4RacQGPBICgHMrsLY40PxzNDU3\r\nrqzSQLBjyVUl3ng38zjuC0SKP/KV9YrpzLCWH+iEYlIsZpIhB0kKfs73PcoP\r\nYkVL8+7LOqNQ+P/eJMVDLrEK1SXUcYal9x7bR40IGi+76MxBL+bBr1uBYcLw\r\nvqZfXxtoEShmOktJgd07qGnwHxdeScqjk/pQQlWtAthAjGWgYpsA42GtK5Mx\r\n2A3wIT2Y3QW4uHj7FCCIZwbYGWK+ZLrWu/NtxBxaU9vxqda3Lq00QPOPGGO7\r\nTpFYqlmIAFYaYphmc0SiUPJvLRX8ymvYCuDtfA3UNNwHgkGmASYf3wAeg9p9\r\nAa8OcUybORBA/SpU+ohG1bZjpEFzpcTHX9s4oFZmcvQvegUnnMbMpU/0p9Zx\r\nkixDISf2mERmlrr2ZpOdyFSnXGNTuyhmMHlOjIUqlplK13GYiHbWDQGDPRku\r\n+eChgFRb9ocBrUeHGP8YlnuAJ9apDI15IweXEAsWSIc6g0xMzQEzBsRSXiU/\r\nns0h4a+a0ckflpkg93G8rq8aBiSo4HdujUYDSe1nM37DxdM3hftiNCOhR/25\r\nVVR3Lz55Y6tjLt+7O3JnAScW/Q5tqmpywr0=\r\n=a1Ap\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-aug-3-2022_1659487867270_0.4011572421788201"},"_hasShrinkwrap":false},"1.25.0-alpha-1659555281000":{"name":"playwright","version":"1.25.0-alpha-1659555281000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-1659555281000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.81-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.81<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"37f9500efa85e9cd11d00719d1cc9fb309812009","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-1659555281000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-DfBh0AweC5apIiOl5qg8zvWhA707sAwTVqnq3Vg+h1kHU58WEMm4sBO/mEoyxwv24kf63u4GK2n+l727x7Nf6Q==","shasum":"3328382944a753c065b46eff269e52bcf9e3bada","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-1659555281000.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFX2SLR+dYmxWW/ga8xWSJRKuQkc1kUcdkCnx4pcYZjyAiEA47xrSf38mhpRoRkqzTfIG06zX56YIRId27NPSFlET1g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6uDTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplbQ//UnLI8SfQoUrhPRw3gbxDmclqRlyj9KoHxnraOtcCsN0z35Gm\r\nGSqzQa5ahJG3Kpcf4LLYNmZqfea9ldFntfWVxR686R6k86LgJ9yEKrncQF5G\r\ncmLW3gfE6JYMNE4Ihvz5IR+vRhLt8kpiAgQgKdVEsm5StxfbhbTALZ5xrjiY\r\n9kVdLuytfP2cFc9j7+5PtRoOu3TlN1ekBtCasNHHeRQoL5RnOJRpq7chnDbG\r\nQ8D8561q/bH2cxa1iM9oFfGeRdjtnkC6SmAliWwrByZWvo33TFerdvkAhanw\r\n/iZ0KS3ush4f8847+JbB45R7UIVj9hP0nfgXcMOzKdllRr60jqujLvmihWYW\r\nRuhNMIJOiQXgUOJKEQlSTbpJzbU7XqFtx450snWeqa9ReBqZj+CFGN5DdcNI\r\n2+kluihqw5PZWAcYBsMQd5Nh3jTb57A/wUJzMxn+d32uc1FzyRG/UAa2LaMB\r\nu6L7tNtUFaHV17FGVmDwfH1Z8ahfGQuUs3cvny48ctTUItcqNKT+Yq6U3++2\r\nggOUm1hoAWsT6AxSio8aImKTp3d5l93dPC7/MSNoTSLYMvCswlLF0vpZv2BC\r\nv89MAgZLU1UbFURGY6AoyMv5SwW3M/GXjLRDt/+OU5Kjwqrvn2+aBS9grTG3\r\ncWF6temoOGcqBZ7nezwskYxOhFXVZBV4Arw=\r\n=OuNh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-1659555281000_1659560147413_0.3373072026850781"},"_hasShrinkwrap":false},"1.25.0-alpha-aug-4-2022":{"name":"playwright","version":"1.25.0-alpha-aug-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-aug-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.81-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.81<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fb76d62a2b37a60a5eb1570237068bf6d4423091","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-aug-4-2022","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-Ld+jADefVy9J0epA2+CHF9z10dKKC0B5EAP+sAtmhygGlx73N/H5cpg81RAAWl+X1vTI3EUCL4oU4OaMeSZ/Aw==","shasum":"2f7068eab36bed1d20385983185b1ec9d185d762","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-aug-4-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC2/Yl5bD85GDClhGBnvpud7rEFML5Hbv9VVHZz0eB8AAiAcmy+DGrv7TH60UZmDnWxmmCsc0oBpIkdHEPqIWtBtQQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6xOsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoiMg//YW0+OWnnuITRYmYRmdo5fKf9JrTgX44x/szBKBo3lWEyPvtS\r\nPxrpcpS58748UrD2NJbm1T5ZR3TlHhIo1c4qj4S/E/nVOn/mN9DBoV8QGmUr\r\nwSPhd5DCM8j7TjMyvgu3wQMuB921GWnAaHJjhCCjnqkXm6sxvHATxU/8uH8o\r\nduLIEaa2y0r0kZfdKQXbSwec2oWIv34q3WUAnPBz3XTrNj4tMwg1v6LV9/5V\r\nzVGUDYfNIwblkG7AtxE63x0TWzswQMyBibn23gl9NuhNq1psoBosT4YUFt7w\r\nQc8aZYK6wIDs3YMe9x1nPo73C0H6YyvqkhK+fQhHszBpAE6mVD9FcL9Sdken\r\nYmGD2mZFC9QYEWcLrzMhkNU9dm4eAG9orWeJZ6t3WNuIHS/SogK5lE4IAxeQ\r\nC0cKnndZjBeYalN4u0t664k/mmegHsK1uPN1MN41JAtOra/8b5L5uBbdUHrG\r\n6fpN6Mbf7oh97TCtL+oonHTioV+5pK+PqTnPh1YVE7zNjQBA6HObqVkXpdOr\r\nZSRqmG605Q6d1LN7jmA387qsxlVx03sxw7o3zxSUza7wHcsEj7ltvsQGZFhw\r\nUYcI2XRD6XTFchmfpiIzYRY1EoMS1mKcKi1QA8svlKftJgIUSi1YhBn5tZVJ\r\neWbqfWD51tYHDfbvlggW8By1TOEzhFyXUl4=\r\n=kt22\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-aug-4-2022_1659573164233_0.33730417853096584"},"_hasShrinkwrap":false},"1.25.0-alpha-1659629898000":{"name":"playwright","version":"1.25.0-alpha-1659629898000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-1659629898000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.81-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.81<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2fa48483af3353041b0e3f212e6b0f84f074a929","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-1659629898000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-/8sRuVS8lSNfZ04byitSHGozRuM6AIebnCAEY7H31ElcuNcvGlzRcKJCOwEeKCpUhaWIjlFseM0FbEPubFTgfw==","shasum":"114edf5e87f4e372b005401c3cb85e913003d4be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-1659629898000.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDft4h9OqKic95VRrKXKkAUaCul/eGzAPMCGIiU7rsQ0AiAF2qfh+YnvzctFGDH861pRoV1XuaEklehqxB7T+wTGAQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6/RwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQZA//cgjHAWJMRLFh0Vo4Kzu1wU+uvrPm6i2Ky29Rt/7aB83GcBQK\r\niWJmrPnPWYFKjnON7ZZNP3VHySTmPKit5Y1SafxUDaiXmaFFd2dq9BqBJuHC\r\nRd7AlxQ6C+Y578fZ4QnO6xS5ljV8bFJqUk7sR3RsUXjLNrGTPlExzJMLV5J9\r\n2anlhVpG4f+XsKjxzxIo2v44D+seGpMst8uVAU6cFox69odxZAya22xSy8a6\r\nrURbXLX6Y/suy5PKeI6RXzJzFHaRB1Icc3HJdMQ1omsRUuKoGRbW9gUIX4gD\r\nc3Z5FKK8ItFW0dEgs9kuIxkq0cdTDsbfZBB/FvCqr4nGZmhA5MOochvOmrwH\r\n5b868BHbXbXROyKQrYimQ+gW1Qzbq2YZS6lYrhJHxXESRrxNnqk5RZu2eUlB\r\nfKxGGcFAzy3AAyCy8clAcYUwvopaViV0SF7CGp29qRhysemLZgy329LXEuoY\r\n2OLJ5arYQjZoRWjHCnKNSuFdOyC+OV53fW0NDotiWlehjjr9frIonMPSH+en\r\ngjKufdc+M8+MW39Wt/aEMtYqmuG6zn8APnc3Vt73yyy4pGHnu1U37jSEpc9K\r\nGbh6taoUZM2xvOfietRoqpULw3wcXRTL8swc/2kcVdYPpGyNM1QgndKXoRtl\r\nJov7sF+VJR/9tmGdYkSX6KiXU7dRZeyigwM=\r\n=A34x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-1659629898000_1659630703810_0.26382724509708844"},"_hasShrinkwrap":false},"1.24.2-beta-1659636872000":{"name":"playwright","version":"1.24.2-beta-1659636872000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.24.2-beta-1659636872000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-102.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->102.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0e0a54e6e2ebe9468bdc28063bef366faf1a7c39","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.24.2-beta-1659636872000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-2P43WLTfZehO2/qdUCOFvjOVvukkUcuXUA3mCOKjbXFd70E+YxGFPH4rLPuoEdpu/EWSiZter043YgSR3AurGQ==","shasum":"a42cb96af01b142bfe0c383209df2704a3fc1816","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.24.2-beta-1659636872000.tgz","fileCount":9,"unpackedSize":24255,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGkF4mwPGVCU8ELwH99kBreRiL8ujD2UknjHew/OQBHUAiBRf4cWSO8+U+CBDNyJ+dXBKAy93YEwBoYoubytQmC8hw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7A30ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosxxAAmEHecXoySVuZk2Lx/N7fsx31bqNHnzDL/l4O/T+KZv7OL6Nx\r\n40tFYWn96ksuPAn/qxNiV7hlgo9Co08bVa7pmTjcij6jrbS0sfYip4JN5hva\r\n8tlp4OP85Dco56teRDzis7bXaxnL75JIEXnVYzkNTDjxU7hg7yW8SZmhlywi\r\n7ilGLqUyUV1kiP9db0f5Z6U7cGGD7lppP3p+eVOn9nDPZOfjGkb7TZP2T8G8\r\nBNzQsBqUNxA2TlOY8xu0EwityNLgkOir5DTrOjpOF9EQgzMfCfH/MUpVHioS\r\n3j7R6im9Abguk1VeE9nA7KRan48GqkZj/RIewAdxwKC5r/u+uvPTHwsTD7Tz\r\nNAPNnsrRvAZOUOt8ajJVtP93NurnWbchA29rzSfLMiiy0/hDVMdfimCU6lsn\r\nD6rwzSb1VpztFj9Him7IDnvqmVQ1S/6uW/GlzaUmHBKfXFoaNqnFNjiKPRjV\r\njDTA+ZJkgaaNPg+VGM0vWVgQa/ywaaLXiLbxiwdIZJOU15WzQNiafzp7Rje+\r\nW8m3CFsp1HjTZwwUPIom/1vv/4CLex4wYd/LHT9/ojHkrHIfPSH7IPoaM4lq\r\nrVDeA8I6qdbnyseAmbfrjLCfg6dQdS/hy1S741DHHGALIbtsz+GwUD9292UF\r\n4yLI8mN2PWiQ/LRhiE7/oqMw7cs9i+PxK9o=\r\n=Tgad\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.24.2-beta-1659636872000_1659637236668_0.31156305605255374"},"_hasShrinkwrap":false},"1.25.0-alpha-1659639526000":{"name":"playwright","version":"1.25.0-alpha-1659639526000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-1659639526000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.81-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.81<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d3d1287e4b5ddb41f9bd8673f163fdb305b39a46","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-1659639526000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-+yAN/ixKi+RKbiR7cS5GN17RTdy25fYTNDGhUmjnWr3k1gPszv5X4MaOZqmEH20xqmHIGDdIm1NcREc+5L4M/g==","shasum":"185d7ed07588bf7dd1fa785517a6d1415ba9f32e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-1659639526000.tgz","fileCount":9,"unpackedSize":24257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRfJ145C+gYPUrVAOYp4aLrFn2y8EeVuL8lIp2+7s5JAiBc2mDIcW8kwOpZt/MqpcqoT23wLQ6Nv1+zLmaxAMRSpw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7Bi0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOdw//RjegFMPJb2bCPTdppMTe9hM9vuD1GUrJ2/3kqbAJOLNT0QIR\r\n3d2eJmCMEBwJ1gNERi6NbbBzLjcQ5tKL0Pee3EvCV9yBUaaWArSaVeMKrqIq\r\nQPCB+45DrKT/bx6ujZYbeCu9wQUro5nO5uQ479XM1rpZYJB+ucdz4g//u64m\r\nF/aSu3xHHpQ8YeJUIHFkD3B1T4Gn7U8olFbssSY1tszETLglQoOOfEIjwyR0\r\nwlHPalTOa1c3UquMamY0EIUoexY0jZZQXWBqRMFbEk/90/TRT+lJ1xU3ZZsq\r\n0ZTMbFYp6rAkxJg6Lg4Fgj8H/Urplp87yEMsZKl+tulREeJthBG5kMHi2KB7\r\n4afUBh6CDlMDj1CMlx9VGm0EwHqxbxJpeHc1bRElhpApoL2jDz4ouB09F/dK\r\npydzFQLAJVoQMTw4DFqyxSb2UF7L2sRquntCVT5+Rb6b7oKkuHpSWTaE/5LT\r\n5tIyKD5nMb/iIR2OiNRrzi4yNkVGxVYUUgF8bn13zEVNT9hPfqO+pzeL7PDW\r\nulVhvUzREnCaUuITdCU65TgiV0qARCZRvDNGJB6sdTgTQmJMwCIoEFFL+mCD\r\n/qz7OKZRofbuEIE/rF0GvAdQDX14UkyO81LhZpZ74eGPJFIZ1THI/riicdwF\r\ngWGVqFUrAlQ98iSVeQ7VcLmxqKPczAgrrhk=\r\n=L4mR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-1659639526000_1659639988359_0.3434522664651978"},"_hasShrinkwrap":false},"1.25.0-alpha-aug-5-2022":{"name":"playwright","version":"1.25.0-alpha-aug-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-aug-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.81-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.81<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"97fa2518e9f5ba8b097524d84d4cc29a72565d6a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-aug-5-2022","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-ghurEwA8p5eJt/zWWkXR4inFUeHQXm+GiQdZm4nLxIaFebIzastqlrr2SfXzYD96GgptGP5I+6wNDA7FtCq1Pg==","shasum":"9a48cc8b4d6f273cb5c088af813a12f178f9fdc0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-aug-5-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFoZKjVpaRvxyDOu6SNmXfg2vemHvXyvtOkxG+7yKAYeAiAL/1j1ehMnolqoQUxUwPxHKRqeMN5aPnYCPoV/K4o3+Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7GXvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmUw//S8bbSeumLNiOE3I7LLYlvCDmo0jNf6ZMkLngeq8CjudtTOml\r\n3iU5TjSK+cF3tfNKKQdy1fx6OOE2FAJt2vKhSbQAiuN8C6EaVGrqa96YfT3B\r\nhYSUYGB0TEFtvmowsFIef8JUdLQV+Ib86X1yFJmSbfTEFBFuGw5aHtO3J1HM\r\nZXEg+0xn7Gfv2tEN3xmFHPSiAfIP8V73rtRuWqcGmmTIJ2haXqP8noqL+PKM\r\n7BC3RlKyfC0DZ9NbC/DM+Oy8+YgktP4bMRJP03/ZPYL+ex7wCy0cC0+DVI0t\r\nDlnOqkHn+yPmdJY5ZMt9+1e0TNRgBsWvf5axR5qAD9pvbCaviwDi4FO52ztJ\r\nfwVxtDmFWR+VAakpKcMg9uzzhPbaAUtrlSakETkKzpU139oRFI3bD0h/TsVC\r\nl5OLVrY8qw8tYBAcMqcoNvMof2jiigNtVbt4lDnPaQN5DAY9TzszTayltvb9\r\nXgUZxImuL9wyOyYPo91Fvecgf/P/nkR/FdZ6bxZbFjqfI/yKMcETPyQtNvxa\r\n+5uPdJsdnyKvndzWrdpz4PgdODyA0z8MZMoD+Stom2YdngjN1dvhArXe7hUV\r\nUEt0zBmsVRLjlME5VMSL1qpAq7+3x7wdFqMOEqTezdvEcV7JHs+k5KsojBCY\r\nu2vpFo+tK4vnM/vgg4bqyQ3uwFK9/jZhkoM=\r\n=KYUb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-aug-5-2022_1659659758915_0.8187933405905179"},"_hasShrinkwrap":false},"1.25.0-alpha-aug-6-2022":{"name":"playwright","version":"1.25.0-alpha-aug-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-aug-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.81-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.81<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"02aa31048c3692685c13d1528fe6649e1d8a3622","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-aug-6-2022","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-jYL8d/YsUMrtaR1HQFyhwR3ScH6spqLGFoUbD3RgkGndV7UDVPsN34MqBJ1xmZrZ8ncNxL9EgzKQdaDcQrgIDQ==","shasum":"82f2d22e6568c65abf2385f4ceb33125ddaa57d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-aug-6-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBsO8nT8FH2RFwlMToHpvLmwVsNrqMS+poblfeDlZUqrAiBhiiYfZU1Vprm/c5QjcTM0Y9sLfxgii02O2D3HAukCVQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7bXLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0Rg//dn5kospyz/wtA+j5eErsM0RdVVQigDf8MUDdPFnUS9wqN9A2\r\nQzZ3UZetlY7/aMnECxDvDdlYndsbAznB15yLevQyv6ip3fV6UK5583LaWTEi\r\nUlaBKbDbWPTAOHsJHXxoZy2Wv4JME6b7VuHmj7AofGAjbqtLyt3abiVpDDIF\r\nsQfqcVqpd0udZF4TGO0lNk3C5f6R/xMIepQWBz33GFZ7TY38sn6ph3K+9gZw\r\nLKfSDhv9MdftdWCX8pxxTS7SpLfPRL0cO6NRw8ThQNx595F6sMo/nH/zhP08\r\nXXZV/i9uI+5gdaacpZPK8gx2vFWXb4vxpuT8oGImM7j9uzKjXWSIiSJiR4Vb\r\n2h6nrKv2cocA9hI7QzeOVAKq/9mVDfUnBPUg5RlEuaribAApmHhw027O4Bfs\r\nr21GQfu845g2pDMcDowNSkL5uGe30Jqi51n6C9SRdFOrhLp5CCvhjq9yNHjr\r\niBy4R4TI02puwxpGQNv64J7/VKHfbXwO/WT/CArT2OWJhIRrfC9ZmVDgu1i2\r\nDJuI3d1jHzXNor6AGFTuUhUriaUBSzx6+vcK0lx+30PsMnujn/JuhNC+Vezn\r\n4xeJ2cfLdnPvdSzbuRtd0p7lSApelecZh2jye4cE59JwMFJ0glDxAT2HuENn\r\nfQFibvj5VAuGeL8Z1PbPa340x5crRaj3iUg=\r\n=ioPG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-aug-6-2022_1659745739396_0.6487027930376656"},"_hasShrinkwrap":false},"1.25.0-alpha-aug-7-2022":{"name":"playwright","version":"1.25.0-alpha-aug-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-aug-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-104.0.5112.81-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->104.0.5112.81<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"52f9e64e72e24f1588dd51e25ab25b6d1aff7c5e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-aug-7-2022","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-HlBOOgLlYKwWmeaBeuYvtJkTcmvl/tBRRsmy+AVRkF1yUEjTeixDIkc/lVoPLrS0hiSNvmm3cTKftyE87cYWIA==","shasum":"63f9a574b4b284bb3d64932c8c205d3a8b1c37d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-aug-7-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH+Y2wJPRZROAcay7d5wMutBoMWx2Pk+rQ3g5eMIJ6jHAiEA2PllmrHAqTEZZaAJ+40sJk4Qw593cuC1YotIKwoLxig="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7wioACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDEg/+K/lA2rkCNhruDvobFAZYDW9bdOSHVW9wj1NlSi9NeujRan15\r\n+cQ8p7GVmRVeNOx/CZFbSZn/jQBMzp1PwEWXvwEclLoMzQikGSScaUHkbsfH\r\nmFHxh0VZXZDTErvvRCrA8h5Gqut4iaEbPG0RSHdDAoToQVDoNCuQ/qQGBBZE\r\nr2RnoeMiUS9h2DmiYxsyI7Cnqgt4ypJJ1sus9h6L1kikeYwFteVLQdoO1HqD\r\nNQsNG5xH8CMiit1pdQP5icuM36DbcGmrybYKWBcNLHKqKE1ofLxddtDwgKY9\r\nyk/6WPbXHnDwK2bl891L2po3my/aE+YB81HxOkOhGE/NRAu/cY5g/StvfXl4\r\nKf+OO6bLVDjffQ804u4MnqXKNG8Bt+yjD2K0pQntBFh3vKg3peAQZGarSyKo\r\nRqtfUiYTvfHbaTKqUVrMt8bRb7/Oio9Z5GPtfu/DpMH0izQB3SkS+HqklRy8\r\n20eIY5AJt2v65yXxZFS1Yzf8d3zFfoqXZoVy0bQ5GdLN6ddRHr0QHpQjVHzt\r\nBGAVKTDhyEc9wKXvSMAn/zvuDcrYXhmmqbtOipKEInEZ4RCMBcW4revX/yOO\r\nGY7Ke6in37F8VYttdyAE+j7EPQNhQcnEwQXv74TjJeHk2uCKTzM78Wgufkip\r\n6XYqx5+7/PR/9fZovkl4ovTw4K+uepzflkw=\r\n=ex77\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-aug-7-2022_1659832488627_0.17743550568571642"},"_hasShrinkwrap":false},"1.25.0-alpha-aug-8-2022":{"name":"playwright","version":"1.25.0-alpha-aug-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-aug-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"53917f43e1571081011a164dab051b04ec1ea1cc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-aug-8-2022","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-RZArfUY8j6bNLZgO8VT34mOmXvp6tWBQBCy+5s/STxBPvwI3rOeZCVetS9DYy4jAjH0x3CBEuhU8zPmgvTk+1g==","shasum":"65eddaca1c8df44a7dcf44ec852cbc5d8cb44069","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-aug-8-2022.tgz","fileCount":9,"unpackedSize":24251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6Fjo/IwcA/GIQ0e44M/S6XT6n27szDGZbkaNmznkL2gIgI3hj+AJsZAPkEHdoL1uqRpQ/GEU0exlKbxqIgd0CDuc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8FhVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqbZg//R5vmoP+RPpLRD7pseROS+xScEMcb1a+WauAbV11172vp8l7c\r\nX574Z5hlR4m9xs4sAKdgwiqohUBcnrznxadQSH7iR6vhYrdjrySfQGocYKpK\r\nvA5ZpsFoaxPlF6oxKnJ5+d9ZUSrRVn/1FEaHPoiMYryMMdr7iG6CZnNQwj40\r\nl7AiPpcDTRE8f8wU4cEFuOS5YLUPfinmihbk4HfPla4RPk/v3R6dq3ZRF7eB\r\nWzrh/9Utdn5Kxm7qXu0WoKbz13LWoADcom2gVF11Xtkf0aO1mzb7gnK88ek8\r\nskqvmC9vhXzIzT0ZxBbwHZQof0Bfs3CZRRsmjR+o4sBXJZv6UH59qQUU3Q3N\r\nSC3/8kT8mEhEN5+HmPgmpMUKktY9CGBQcjaUaiL8mwERlcneYGHAQSBFEJmq\r\nNH1IX2oT46lO0zyV/Zi3TnmbIGA+7w5IFEifium1ZLGBVCXNAdGg6Sb90cxC\r\nTTH831XsgnWUpZ3Xp+sYxLvwiDaTbbfCZ1Khg6F3AlfRM3KQ6pFb8gJl0QRg\r\nihxJOoQqaYQ3PCVX6UIVwBlnmXHH1sCewPF8Sy7s+SDJZiww1GPoCB9fp7NL\r\n7VCClbR4WdtteUHA9xJgUlYgk6e/bzffg5bNsOwjYmEzuPk6iCKp9QGUR54y\r\n6KVD3syiMlsMNqqw2aVKJQNr4y71eCxIUN8=\r\n=l7jb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-aug-8-2022_1659918421697_0.8357307853771676"},"_hasShrinkwrap":false},"1.25.0-alpha-1659998098000":{"name":"playwright","version":"1.25.0-alpha-1659998098000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-1659998098000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"36b92d884700c5196152bb484170e65d9150a5c4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-1659998098000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-qlCejEYlSm1Y9yubLua7zS5AH8TgJPDXrxktVbp6TN0WBSqgbZL8cGOv4wJLvpJg49X+8Eyj1yjYVeA++OsxbQ==","shasum":"97e34ade18d482057c00ad38336cdf01e84df779","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-1659998098000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4Tanp/maFYdQuownwzWJQCRXYiHYaqXf4KhpoIQmuBwIhAJasOtQSYof4yS689vWNmVi+KCtd+7e4QRe4TM1mFUu8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8ZR+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4FRAAo1SQF4funmlJ3mQ8cxP9O+SPgenUTNK32ZEXhWb6/q9tjrDg\r\nesSBRcP0HXdoJD7y6mH5QQCktcwUyFJUSCVgTpZ71tS1+Jdh3meC3D8ztu5s\r\nnVGFwWFgxynEtzfY++5jmJDRHD3HkFnaOuLocoO130DjSUQ4SRQpSguJnRO3\r\nolSUhwhH/1WYYl5yNJeOf8BwLHqO6ydJvMqX2bXvDguTpp5Zl3lQkS3PXHsT\r\nRUBttZNUjLaaJ+dyh94RId+16i4H/8RXgkT7Y0KMLR/oa5MVzstTMkqEgL3T\r\nhBv5D0OJeuogxTsSD9tk0Ti/Bc7hTqVHrGQqbJZVZonCpxzzbOsS7t2b34IZ\r\nIvAm5LLuS2UN4mrmWghAdOaiFfSZdSrkBIN1F6itYswHbKQTc16p74KlWY1a\r\n2uvJGPAe3vQOn41kKVXyXROAAKvf8UWgDOrkutrHnyz+PrV1JLzZ4Zv63UHa\r\nAmtnRF6xawXivFKAsxt+tmNToDi7sJG9aBLBoO6U6Zx1i2u5ymMCpnaU+pOx\r\nNEHgMVpEH2BiD+VxjXOYehfHx8BjiepeG8zuzZvOzQlK69qslVIE3RTU1s/A\r\nUTXSwUFlYb7U3dO+tNc1FvDDs997tMe0KYhwflUrJdX5YuZZUG3kUvz5RR7m\r\n69T5ehzzR3/FXbaTZzladpWsOuu6raDnn/g=\r\n=ZAsT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-1659998098000_1659999357961_0.6041546802903501"},"_hasShrinkwrap":false},"1.25.0-alpha-aug-9-2022":{"name":"playwright","version":"1.25.0-alpha-aug-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-aug-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c99d6cdd4cf2c3ce1cfc7d655625b945eb692744","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-aug-9-2022","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-a8Ggk7Zv7kvIRP3PCARnTVYt8NpSg+/261vPJOPn8/0vOxTIDIcGmdZ2ND5TDbalncCqoJ/ZLtlhVM+bhQd0FQ==","shasum":"41316932cbc7dc2827be57b1f8a33f979f05373a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-aug-9-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG7WMREd3GI9UIEf4+QnDMGe7fn17Ry+YgW+HVrEAcCgIhALKeJ1E19Xry0rk16NEAj/k+BpsLNzHYdeYVnHUR7I9Z"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8ausACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp22Q/+LMXG5/66GDCBghpdZRQGxve22IlQxMu6padPyv1PH0K4Wuh8\r\nORl6KvXfkDAZfr8QgxrTm6urAT9s6C8c9tZMJjxU4WEPSyMk2Krkr/Kk8Dmf\r\nvaSv4XBLCa42bZhAUnWgchPinoX613V95iosdpZQN/LZEyBjaX6LFM3xUM73\r\nD+LSOI1H7geZDNfu4DJbe6hbD11+1vuk5VpbCBXHhGymGVLzzLjlYTDiS3m2\r\nzx8vTDoPoKepbUsh5gvbznYkxfv9iyhQjXOqIIdNxMv+XyyRLPSJ6Yug6sG+\r\nyfVM1yMNkZK6KSMwc+x3UA8QH+fgm0kzsv8Pe6+qob9kuzqtXwPK0Fp+o6lv\r\nr+G9hvyVM9TLwTGxNSp5yuhzFFwGejH4vfB/kQ4rWse5NsSGxY59SVqlL76t\r\n+eSwOaHSRgYur3nAUznCC5h7gvaZz3Qb2gaRy81tafqLXqwum+mft02XhcbG\r\niC633BsdrCxK4Z0ui3ZJG4Ewf7SEhi37cQrN+kBbaAmqTB/srOI1rH039aeb\r\nqDLlBgOkW2fBsRKUrQacvU5TuavNnTkPNidoM69uwxWdCuwOlojdx870EVwX\r\nADAgkABsGwMu4TEeoG424Ni7xYoDIr9xhzdO/XhuWj2Url6n+xkn2vI7ZiJu\r\nURICGmbzinAds2mbM1X5ztZc4buxUq/0BDQ=\r\n=71G7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-aug-9-2022_1660005292057_0.9293169482634822"},"_hasShrinkwrap":false},"1.25.0-alpha-1660067092000":{"name":"playwright","version":"1.25.0-alpha-1660067092000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-alpha-1660067092000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5dea81735517ea58265a2f58ad6ae85e51540650","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-alpha-1660067092000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-7FpeqIJWVuWG7xIZTnCvStffgdPg/AiZ9s6ZfjWx11nsJ73NYBKBZuqldiF1j95oFSDFaw9zfZx06ZNtMd3Rmg==","shasum":"958fd2d5ea7d31c4f82e669f7f4c98edb4c82f23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-alpha-1660067092000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGaJx8Y4AM3Z+hKc2ihg5alempZXIWjrsjDM37G4q9SEAiB3WY7BqTPHVZrxWvjdPouwpJTDKgXwlTqd76mNmMLb+w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8p+6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdOQ/8CIkFKvL1sP+XrT1M/B5OANj14wcurPHyv26hHmuxNBFrthBB\r\n8PB0x679uv0rLOz59oXESPCSZdaJihGqXY5Xx9GQyoQMjNOa42OdhsMtJ/hE\r\nQoEqnM23wEvnZZomXTCZnDctMQEkN1AstnHbCs/TbJ1dM2IK5TNXu0W/snbQ\r\nNvfjviZr3frGd1vQ3kQ2KA+jlLNlgsmTfUcMu09M7o1b0rivyxsTMvqMycZh\r\nuuHI0Jpkm640cGTzNfXhTAdKThRTL1BKXAXChfjbzsAiki6u0QyJBWpfDC5J\r\ny6muZkFzwCUAcTi45rCtrNq8mbB+d6COsllJYzR8DQGEeGCqLrGaoeIRxXW1\r\nNS2wTEtrZHhUECCy3SkZHOzSsSffoXfcwDt9JV+iGmBQAht/a4Y6ZtweB9hT\r\nfundKOYzvP+eJef6aeDuR03lap/efZnY2aYn+/T8JmPsMM9AuiU6B5EE9INU\r\nZVSsNkWweWFLPl/NGEzkuK2Jn5hphsCP1noHDp29X2e8vzsba/gZAzqkFEse\r\nt8idUbk5Hm9Tud9N/gclzeyiHP7LImEp8jAP8WqStOBmNXxJSpy0Svp5ppXp\r\nQcoS0TOdg5AqWTwzuGpsfQfiLOfD1PZTDyV3Jz8piVjNbFhvaB8cE4vaBbdD\r\nkRd15VoZFCgB0ykhcvq6EhNrpF0+G5ifqIo=\r\n=VEre\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-alpha-1660067092000_1660067769993_0.4903958348210695"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-10-2022":{"name":"playwright","version":"1.26.0-alpha-aug-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0c7f0860963d5344f1df6049dd731261b923209f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-10-2022","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-zYjCqTVJ2hBnp1JcYA00Fn6YN9Op+sCb6bHLEMOAxMz0nG84Fd2VHDWNtbheB/yGA3TXCGVo/U442JT69wwUHA==","shasum":"bf815d59b7a1b7e2a180926905f3fc1a0cfddd05","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-10-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEjBMYS+8NUd9Xgf7oiU40NMNc3G8R1GmuPJVrI/j3iAiEAmQAmKzK96RGYK2Gb2iMeq8Bh6q30AKpn+EtJP2FeFDY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8wRFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNjw/9EdIdpepPe5mLZVcYrEZXhiBtFdbF9hVDAciLimiudqwPX5Hs\r\nLmKi/MeypYu1uMtlgl5YYBvE2Ij8UqGL2y5tCiLPj1N3PIH/7FbHG0Af67D8\r\noFXhP7mvPgfYtDLDHnGR8AbfFjWwRa50rlF3Bb9fdZFXbz7GiF2n2PLSG5hs\r\nywpwfXX1eyePECpdo/HiU5MSgc4rutAtEDcF0tn4/x2ADsG0y7n+7gJIq3Lv\r\nYWeEG9ceWfDvoHLHjU20HaYZWGzvWAo3vi+3ex+G7ozY8cx6mfTSx8zFGuDg\r\naGX2cnmIco3n013sbxB7zdXxyLt/8YvLMbA10XfiQ0I/U9EXvZTJ62XoNlvs\r\n8Axj3/xAmhVMfVVzDDxgAYSYnZWm4kdfto77OWSieAPHsdezQXW+IOqMTmWU\r\nfU54r/8ndxxS3L7o/zKiA9xC9A7Bkt/rYQh/yirm5GAiS4xZBzEw50OjFi3j\r\nPPB/8t6R29Vm82+tEZmJXqoRc9JiH8hUX3esTxF99OgdeemFVb8Dx3yqeqFk\r\nBZ8QVC7VKIvA9d38fZ3UXm4tHJNd1FfCS37tmeusQIjxeX6/FgpWtEHXnHl3\r\nA3U1BvfTKzaGJYLZPEM+T7t6xT0a4ienV0/hlawXSsSSRo2aKkL3MpgnOHWj\r\n9im3oy4k0zstzP8pzwaOkzVdDn1RNU9yfeQ=\r\n=gan4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-10-2022_1660093509604_0.9607089949944942"},"_hasShrinkwrap":false},"1.25.0-beta-1660134229000":{"name":"playwright","version":"1.25.0-beta-1660134229000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660134229000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"259887f32f66289a759bd76926572edea031d782","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660134229000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-lN4s3qj2+yTrOzDoySmFxpdoYY7cb+JRUnI/Ed0+1i4zYelbxMrrQCny8/nsDlWEvjFtn1wC+lD1YGEmU3UkXg==","shasum":"d625a82510240f01d5f608e893ddab6c8da217a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660134229000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEPeT25005jC95Ny6QUOQOBNYq3AwI/znz3uZTCBsxr9AiAM2FC2xLPKWErLK5rGxz6XoPpBi2cfgifOixTrjNmoCA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi86Q1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5Vw/+P3pdMR+ktx2oECB7bZjwDBAmoTwrwaHLJMtoGAgkT14JPbzs\r\ny7uxJFjPCmSnZ0wtzUpAnSakMHCvEQdN3c7HLktoW5dSNgFeHqbTef8cxJZR\r\nLufFU6L4yHUFjH5KnImJwBb6RQalO5Se3SY6n3WDkG14MALKYt68dSLfdhCZ\r\nMXWu3fmNafUqC5gjsCMZJgA3rX7IUWxeoGQLjaEZYU5cKb7sg//cyzUfZyfq\r\nk/Q5lrfpquNOVYU31fPRQbBqh8bpMn/syrp1ycIvOj+r5455eJQ8QV5EHRX6\r\nVoXcg2CWwkgkczj6S4MWSusKfoXFBdeUbJSg9UKmXcWVvMywhG1/1dR8mwLq\r\n/MyUMYXkCsI+nVPtHNZ4hrZjxA17bzU3vI1wGmiOKqMUA+6vgMboHXwwiSMY\r\npHHjTp72QG2LoAuR17L5wp3+1EHm/Qo3bhmFcNLKgumnEBqgozU92g5QL4Z0\r\n5TeFPa8QO+w/JAfZzzqg8qqVR5plWndkQzrjyEE0bhSU8OYKxebu5RyndKye\r\nIVTNiOOZVK0IlwvRh7+es0KSg6er9eBVyhinxMGH5HHpW/LMdLAaUSQJ6pjh\r\nUCDTPoDtFQsOkdCHMXCFkaXEjb8597eqXsE1zbvjFgmjusDlgjr9M3Do9x+d\r\nrRH7pCk4vqm0BpSDqiaA78p6ZaLeq0emNOE=\r\n=HAFh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660134229000_1660134453678_0.028784364413080743"},"_hasShrinkwrap":false},"1.25.0-beta-1660134302000":{"name":"playwright","version":"1.25.0-beta-1660134302000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660134302000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e93ed0ae975d478847fd8707925267ac279bd04c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660134302000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-EHq/dpYFqRprngGC96WZRhg8D+V492J4kvISWxouOdghyImzL1ND1Fx6dEyxbnksbu16vqpYvhHqsLJp0X/kFQ==","shasum":"c02ffd9c3409ddb6ab660ef12f1201c5af06d326","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660134302000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHMORSKN886+mjvuEVHGnwjl2TBxBk3QFMVd75gtpUpLAiA8wzt3Yr0fdHfQZH2X4A6JkvMpxBfSkAC8/iTcOIHjbw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi86VlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwXg/6A0vxrJSyx8iMKxQcOhZCGqQicfl2QPepOxu8VgtGjANULQcs\r\nse6vibwhyHAY2X2Khx+Ib/QzN6yqk92pUN8L8tqLKzGimAGXdz1ZRI4hZosb\r\nKqYPrhs2SjTxadoY88xdkYQ2FbQr/a9I6lvVlKPpZl2RukG0CoUATuhzlUWS\r\nKfHUzjQkiTCiUihCw4Nmtcp2e6K1FwxJw8ltZP/mrFGnCkARN3ujldkrQu8m\r\nefgMZjXcze8WhosW/P/UvtGlzerJuwloA5Yxt9dB7BT290UoL5KA+NiWz6Ub\r\nHSwwRksPv+4osTiCUU1JuB2dEDHKZix6jqVbu+9lTdq1E7WtDcPaEizq8uxZ\r\nE0t5mRc9iZDkmm81XCAPhUmzlxfa4sQxGKOnuWkzWVpTBHJWM1/RbXhPSLMS\r\nLhDlHcst5vRxbBi+YBjWvg7FOmvc4Sf6ywRCNBqzg3lUQ+9bnJMot1KVkiNO\r\naZOncjQhqLop0EWFSsdGUP35c+1inz75zpQZFTxxYCmqH5gwwmuvCdC471Z5\r\n9F/0AyzQjjQL1wSfyoESu8hLrB5bhDKB1h7tvKRTkv1gK2nenu6GTnGotF8U\r\nOAYqPv1GrBtn/RML6l7vQq4eE1NCW3OkL67ihhD2NhuqowSWMTKQwr3KB8A3\r\nQ1jtwDVHLs8xNR8qxXAc2uKl9UR3rGfdmTE=\r\n=WLnn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660134302000_1660134757204_0.7207714296985746"},"_hasShrinkwrap":false},"1.25.0-beta-1660136025000":{"name":"playwright","version":"1.25.0-beta-1660136025000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660136025000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7de99f3a488e09f7bf512b73d2bc8385b53ef8e9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660136025000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-7JNUJhtsKoKfQsGdk1afl4nNXZiDKTIV7rgPLJas2Obwk4N1UFAq8KpA6sznoNmSh7rqAMjHGn+ZmZ/Vhf69LQ==","shasum":"e825705a2df8982ece8882b0904bc9995529d76a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660136025000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIApPw56Tc43W4/jHnJza1t60ozr1eD+vp3pPY09lbscRAiBv+LchXeTpmmCiUmq51D8WQNxG0BDUg/A201FkxegNBg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi86rcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiXA//faTkGFz3TECbDhaUzJ4lyXfVKvzBNAnYs8fwCNvI2CjaCgJ0\r\nVmBYh+D9ITschzHC87i0owQs/9kn3vLKLcx0XvUq2jDZrR4SDDjUaREcfcRU\r\nG+eVMHNUQTN0jZNYYXuIvLPGwS6WZezM8N5Jf+p92NjLBaM181Akk0ATZOGX\r\nqohLDu9oEbmh5QEcMZq2eXt6UguIEx52Yip6z7S7E5TdcGu6SdBAXmB4RFQC\r\nQRfQnfjJ2NmP+T9eNixnVy0os3UUlZ0RNgsmjkGMWVi0NCfqR2As7hx4TftN\r\ngqQDuydoEeXrDBVhyskuQkL5nrUfR21aZZ/mr7TR3rO6vg32dn25nVzPSzmj\r\n4Yqt4Uwp8tMxFOBllTAwYGav5ZntoOI0c7apzrdonzQGdBCM0VnghBqZUeD1\r\nOmC5FyuGbnAipTqlB/0ecKdr8nayVVrZUmJYt2L1FOK6lZ5hjjzNqScQty2P\r\n9qQoZmOXKSsoUtfUWJzib5dF3ckR1xC0dT08mkU2VvA7ho/PaIX6R81kXe6f\r\nsf+F3HclIOZnhSRsm4Ex5Un5lNvQXZ3riPuWoQMSEFi8o+8lgWREnYb53YjB\r\np/iQ9j5TTLkmOzveH+myly83ktMVEFibCtJscPcSrppxWpT774eeEvpB+eIh\r\nR+G6pWH4/KsTFt3gaR1wDn5Xj9eXG4blUZE=\r\n=lN9M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660136025000_1660136156177_0.17060229877700306"},"_hasShrinkwrap":false},"1.25.0-beta-1660135972000":{"name":"playwright","version":"1.25.0-beta-1660135972000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660135972000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"150a75189e66f6a5e74ee030f14575eba36b3a26","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660135972000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-FA26YoUFp8jYiNBq3Q8q1akJ+mxhElWSuR52KC698ke6sbVsgE7w8ziCO0WIhPL5KcfopgZ65Nq769BZZO2dVg==","shasum":"095f7127055bf0b9ccbdd991caba28d86f23a0d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660135972000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrKaJDlR3/MLoIozRY58Rl7P7oNsiAKCYZSRRhuV+uPgIhALn8my3QP/AEYXbpJIo+b1yzHqh3dg+CqHxy0sw7R5aY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi86r8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpt+Q//ci0Xr29N23hbWeJ6auWDdXX5y8kbv1sJEPTw+PjLtN0p3PaR\r\nsmrLAf/GJUxbVhCqf7jnEOY+BZ1bdBqwOspA8giZ1Ade4fYBbGjRN3YCI1bE\r\nmGJB85byWvgzvDFTw+Qv+2mGtaf3oA4VAQ5/v0uwbRhbejhuOHBPjeiz7wDY\r\nwlk6hJyfwx1L3QY/C7ezvAbxfTpHsTm2mE0Y4En41vWBh7tbXLTAKX7rXsXn\r\nHrisaXQJKieuHbxMGPuL568qm1k6sSh5+r7dhT4+xHjjhLpHxvnBDYftoTCq\r\nYdnbof3TF35b7+u0KlgmAh2N6s16/FpzrsdPSSHKhQjQkjMl72AZgh6RDtGx\r\nU1YoAUWmo1d/w5zVjzbfeoC8bzg16THdBoV4Q5rRy4ZFPFtNN39jyT2VFD3/\r\n1WEsheDcxzWISMr9LMV1CYI2ZBF13evR8E9pe/UhQN1maiS0xi7M9UgZHFst\r\nzU4pEbm5QF6NFEUIF3PVtnTdQIQa0s2KzNBsrOFEbEVynifHQhqd+rhG8Vyj\r\nLglTowkjkuP2yuMmsa77s2mnnjKfCfOxYxq4r/bvZGwZgiyVnne4IrfC9JVC\r\ngikenDMQX7KfeJVlV0GSToQIDW7PTBH8yyf6b/1uPCz65MWttLWd0TPouaiF\r\nbE7Odhc2YqDNRN1x9kXCOKEiXfKYHgFI2is=\r\n=5CKo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660135972000_1660136187926_0.23803279924725418"},"_hasShrinkwrap":false},"1.25.0-beta-1660142208000":{"name":"playwright","version":"1.25.0-beta-1660142208000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660142208000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0227708c2fded8c749d9503ac34fce2f8bc38bc2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660142208000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-4do3qgxJFmxhTQJyYRka/4/CTSa20+TdVIFRrVXFd2yLnsdfxypculyrwiykriXEZ3tvs+nCoGrjYNvSyCK9BA==","shasum":"60e773ad4405fc8a920d42ec84db82d81636c1ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660142208000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT8DaTOT5oFJlkU4cHPGjRq1q0CFvNItMoBE1BKLYPgAIgRUI3YH9kaKBIUsMh3rphFsCMmGx0s39wbvKZBpyDJJU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi88MiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEwg//Yd62L3RkQ4tTU1njrmgEvbp9IUyPVQM5+Ma0VDe9ONa3/H/8\r\nzTCRg9cOfSvVuFoue/5t88NjxyQh8mDjIJpuInJvCu5OdgDaMtPlVvPOjsP6\r\nWwKwlEf+S93BTaTX+OIJkfBIZJ2b3qD2MvoDfBS5mePfXBr8JI/mIV1OKzLv\r\nLA67VqaWdxfdcMe4/Sy9JzeUCybHbu3WqJvj0r1QTgJHgcQrNr8CFumSTc0B\r\nlw5qKkLF013cqpNxhuBtwB2i/jfS5ZIHu9ZXJ9A3c3JTVkFHB+ExV6Hyoh0W\r\nxYcQJerncWXUmS5hYUJ/XJXmFLZepwURFKrMLC9DpCGXG2kdGtB7QVIJ7QDC\r\nYl3v5e3qfNfCYrkiCeom9lmavSTTg1WUQrBB78rY7PIgOe7UiPl1LWsq9dgT\r\nx28PB6XVlqjTuVV/I2Z5xgZwiG+In5wnYkD2fVDKD1n+GTDNbLL9Alr5TO1W\r\nryBuf5yjzKh7GpfYbKXkl7Nw1cEptOlOi6xgGPavhfgVYVyjr0G1nWyVu16Y\r\nBqkTr2pjcnCQgW25tAz3t8waBRdCgDXDwbTygYznDMhkFG8Bf8OwtShQK/cM\r\nrSXJkmmLDETkDP5MQyYhXQ0O1+/0jzh6ndjgbTwr64mzOJjvH+Ayumt5sCBo\r\n93EF2thj2MMGD93UOngWhYvfpmac+2Byzn8=\r\n=P2Mt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660142208000_1660142370492_0.830061233458721"},"_hasShrinkwrap":false},"1.25.0-beta-1660149140000":{"name":"playwright","version":"1.25.0-beta-1660149140000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660149140000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ecb8266a767e549867a8ec8f67b6280b5b15f632","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660149140000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-u+JbLO6LGU6ZjaFm5maSkxhdTdkGQVifZmj1cH+2C72Sn1SsomsNsijzWw2yGesRS768TSwPAj+nhadDBrLKJw==","shasum":"3fe6be0fcdbff40f9b1ba1a9850b71a0740e7e46","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660149140000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaHGeo/8RqTtz71Rx7usMRXZD3i3vqbybXVqH4nPg9jAiEAkRlD4SHkRpzw93Psdspd16trTHkMZIBa6LLgCTdgh8g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8946ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGSBAAjH6sS66TWaNzmQPozrtTb1Rz+1H9cuQAa97mazmhog9lcAD1\r\ncsQtHLvT4NHdatS8WdUhj0rxMo1P1ROMeeqDqghklwg5/S3NDcU2jVZZkYo1\r\nUEokElH8Nh1bGZgsoqR3R6rLAdxgKm8EyadyPmpP4PF/VyWYOJHxGmHcdk+x\r\nJOHQCQlbQELwMkC5yA7uqZwMLAOn2rdcVuqBNhDPuRbmC22+86Bf0DCBIRec\r\nvawZ7uFXNzoQjbrGGHVemLlhHmQY8S5F6ebFY5y6DdWbIHEXRFzNlYrznk9q\r\nX3RDlkzWv2Fup7N3H2nW22bjllNoywz9AFSixixCMfC8T8qbR8zwFO736m8T\r\nRKjRg33fe/UzlztsBFHJs7Nws1xgHAIVSkQmmGfnmy6aUjoutf9P38rAqpY0\r\nvWdUHQx3FIhQ1MIh6Uq5+abkLjPo1HQmnL6MkOTu2y34EUHkm1uja8JTXfwj\r\nKHiaoVwabM2CiwNybx/7TMQGKIKheuAvRsKDq6+qbYxrP23g+0xCLVZsQMev\r\n9JUBMqaNaONNuyzjpfiOZuSP0TPAYdMAFpXL8WrOWeYRbfhDBhuY3s30sNEL\r\nae4vDfy+Vb1RxJKbfA/0wBE1SgduZZlhLCCIKBfo4xfmTQIys/DfANO+T5Gm\r\n46VcfoN/md6jJOxgy2Zz35oBCOBNXUDm4uw=\r\n=s5M2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660149140000_1660149306492_0.6030695138080913"},"_hasShrinkwrap":false},"1.25.0-beta-1660156046000":{"name":"playwright","version":"1.25.0-beta-1660156046000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660156046000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bbd3fd72f20338d033f73ed03144e83a05d83b00","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660156046000","_nodeVersion":"14.20.0","_npmVersion":"8.16.0","dist":{"integrity":"sha512-61A/ikikLqua3DS+gRbzocztzgVl9On1yw8bAaPWGEPJ/IdPaUXj8FdgNCU5dP2SyFDbtI+25fLn+f6HPnzrFg==","shasum":"2ba3e181a9ca646651c804fca8994667b9ba66fb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660156046000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1UHhbB8yvcbce11UMMxa5NcPtXSN+jMsNvfyGyy9UlwIgbmd21VvxXjESbKw1SxpUHgc23EzSmuJC4s/uHZAJSAQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8/lVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRcBAAmJ6tBmZB30Pien4kA4H+ersUXXUXRvIjMkHvUvH4U4a5w++u\r\najJrGOxOJLtgsjCtbj5jl4LKsXJG7scgMJYybaz97KInQ/4ZpmriFXcUok48\r\nX91ZxrRrlSHV+T4D2+6KTG485bx9x3fDBqZnl+TOPcZ0Y+FbYBKncqPwhLFT\r\nrrI0F/1eOUhqyOybrvkg8wMj3oBaJBYNR7DgbycjMWWfpxpT4wm8u23dMkAr\r\na6sADMiGRKZdLMLq7c41UBWlyQlQz+5amBm5eq/+3xv4mBE9ukmO3lJCc+GG\r\nF3kPE6b29GW1H2uEMaIYeCOZPsQ+70rTMsI2DHSqt9n8ow/XcW/1DDE/n2Mt\r\nVhVpC2yd7nRvwsCQ6cmD6VLV9/7/y+rBsM+dRNtizUzzCcXwPkyqa5UdEa5e\r\nlW3CpUnIw9hMpvTLslhPO98K0zhxvbQj+lbnjty5A+SoJoJrnNiz6bsqVjHV\r\nuhk/b4doZxoE+rOM3lr1lrfV1PeAKkw3L+Eb5w470zztYP/x6bpII8FrzYsE\r\nxq0jbX2a6uspbyy8wxdB5F1t/VFEmBuVzPRh+nUSs01hBFOdasTv10acoJKL\r\nWBw+60AYc3Ox9WcUdyWtN/BTZIkXBHH5ZILMF7WYQiGL2W2SaTp1uqKMZTan\r\nCJl/n4I3tPyFipdFl2n3k5P58Hk2PsrfOq4=\r\n=BTw0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660156046000_1660156244809_0.13904020166993325"},"_hasShrinkwrap":false},"1.25.0-beta-1660160263000":{"name":"playwright","version":"1.25.0-beta-1660160263000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660160263000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fdf31cd70d87588821a879381bef6439118eacde","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660160263000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-v91M8dtT0wtoysZtbUnr4owuopsyE/PQ2e4JQl0N8ZLZLwofMmp/MOn9DwfkcEGZNIMjjzXiM1nMSPmK2sqhsA==","shasum":"8bc369010253f63f6de2e71ff66bf119ed3133c2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660160263000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4DJg7XZYRtr6vWA6LYrlPQiDrtIHhoq67/4Om74x+cgIhAIhrzLxLfVyBsuloGWk0fbQbMPLde8zaKJgdPAI0/uTU"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9AmTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAaRAAlEgKpVo1umbypsFspJIALDMGszwJhppzYBSEbZFiFphpk1L3\r\nJ5BMG8sj9VWyH7HyW35D5KtrtbP9WD0wATGIJQ41VDKv5M2UYI4id816ImED\r\n9YxHnUxeQnsqIb5GxAT4ut43t4zUn9IyGl8enaILQM/2jI4lNpnAZ+19KrSV\r\nqCA76F/B8PTw9wtvt+crrfR0cFCkvtBS/+90gI8cUdnvrqm22IaJ4VXo1CNl\r\nQloUE+E9pRtP8mJi8LnKSQBtPrITLt1O3TdhzOqFFBSfpLW9bi5qEuuj4y9R\r\nqWK2A6mZ/BdI9y8SMA2u7tAU7f3ibwe+mI7QNACbUH7jnwOPMlIRyZuShpbj\r\nIEae1HQ9bScKjsiu1eDP6im3xFWFVUxQQmbHtf6SgLoGVkjrwKNPH5pjX+Sf\r\nT60zsq/2yvyggHPB6xVBjIlwJmkASgYAfKbODx7yI04gEozysuNgQsfKLCsV\r\nLdvpbwMwIo03bhEiB2YlQhacaDyRZPGXXojISRVHM9nOI2tJCy/vhGOkKyv6\r\nb4AUl1rSBWT+6guEwQWrZ/ctnb7u8ffdo6DqxrXb5rRTl0fhOy0F1Jfn/nhH\r\nmcmpAe/8cO7VkbPomNy4PVOIssLEQTDIPvsCBz8ECEF2exrOCCAlGJGA3SJc\r\nZzSbEJ8Vm8mfFDGEnlV5Y1s7wyql9A1cv4w=\r\n=/Xf/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660160263000_1660160403057_0.9209126823229925"},"_hasShrinkwrap":false},"1.26.0-alpha-1660165421000":{"name":"playwright","version":"1.26.0-alpha-1660165421000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-1660165421000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"232dee8fc6fff9a0ad225ad2c53901ee6e2f8abb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-1660165421000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-N9eAGANLP8tylKOMVK6U0xrXPfSy/LmuzNT0xydJGLjJ/6qZtcPwekOAta06wKRcxn68/cpdBTW4gApBPOCGPg==","shasum":"a5c9c2d52d4e35db49f4f210aef10cc9fcc0aa1b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-1660165421000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFbI5l+DlVlKVCSz4ldSi5ajFkbSlcLLZ+2aksQ7H9nAiEA3tZ0yOyQL7xVMW+9jR0edpOaR3G6+dM/lIARpHXo0JI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9B37ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKDA/9GlelMs40BOxBPZuqoA2FSuzMCIgjkDQ3vYvNiksUf9YNELed\r\noqgxvMkAnSEncp+myRy/qPcGIZJQ23VBNIBB1ADQ6ounRePjfxVfGSCtFw7i\r\n6dS1sdr2n0oJXzwUxL4SsfjOsXP9YMAgqfs3ffqYuuGMS+0zNwhSy7t36NRj\r\nK9hKC1Ibo1RoKW32ITc3Qs3jc6ExKzqDWzXyFr/9WdUbczrhoSnQObtsBkxf\r\nkror3jY9bFzk3VYcgeM/rrbg4aCWs4Ibh+OD1BwGGGmt1aJMsyz5OCvtGSYd\r\n9YGFBYz6cPmioHAg0WEsXyf6Np3fVGX8gV7YpNiDK9jKiUyAJH/z6dvdG87o\r\nNMNe+eKN8+wCoyGBs7Hjz9DhUmSEMXv4ogPRwSqU4XmM9PkXXyOkAIjAmo7G\r\nhtIbe2Yp2qPREWvDpknaigpN9J8btt42PKGP2sZQj//wXC5Bd1Girc2DpjJJ\r\nuJ9gJkEYsl3nFDENRzkkoX/Lmwnn12uWh8oUl2NfR2Rj8w+wgvPOW3T3+4iw\r\ns+Tf+MjM9AgO03wzCYoqtMRwhPdErYcKqzgxoQ3aP41hl2vv7vwaK8IGZySL\r\nBxymMAbWaaVhkUjk1YsIXmV3ZBQreQlQeab+a0SipUl6cjiucilfEEKCu2jo\r\nDv4fEh3iXGRYbIMggs0Dhev11Nvz9Q3cRLc=\r\n=7wL6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-1660165421000_1660165626871_0.4433111030304935"},"_hasShrinkwrap":false},"1.25.0-beta-1660166356000":{"name":"playwright","version":"1.25.0-beta-1660166356000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660166356000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e440e41b50869e19e29f29509d7b283f1c975e57","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660166356000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-ZVIVoG7Cx6HP5kxT7LKGvv3yFbAtqzpsAt1R8h53EDA0qI1dDPtLZcQuzbFfINThqteEptcHZ6mzi2QdcdFU4A==","shasum":"d0b76583340d79acd94eb5e4298c0bd01555b094","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660166356000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZWszFjPdeIJGTcxLSYQbhqDgADLJcSbzRk7JwczWdQAiEA85Jwj+Gh+L18WH0JbDL6uaRkj1mTIhnGaUj2WHSE3Bs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9CFyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVvQ//bZfaDVfIgi0NlDI7hlBDnQE+kIXUnTqJ8fUTMM4Br5yKXS8F\r\nfDJH/FEyXzpe1WazHTSs2oNB+jV/dCvPXN4dGSLd1f+SHOepsK4+dIohl8Dy\r\n5wiuJ09zwA+jTp+WtRT4c5M/5crMC0k0f4ufiuaDURWxKLzcSK51dvIBhXfT\r\nsPod9fLgALi+rC2SrQ730RzwYIqhZtXjMTGux8VCkt10JY5ZqVeOHic4gb/S\r\ntZwVV1F6mlyn4il1CAHbLGZQnfJd98lHZP5vsU+UlkHt7hWgTEYO5mGtIgKH\r\nJ2hbGFpPPbQoBYtc+juq49m8J2GvwpKePPTmL9Gm5aQIgts4ocIT5Pj2NZwg\r\nEl4cDoxv5HbRf6R4LFVIG9Uz6RAnIi/TrqqEwT8ZwhpDNgQvOMAnIn4CSa3f\r\nPs764nyz3aAdXY2R53LrDk9l6cPObGUSpGOUI2Q94W2JeAVThJ2c9AcBjbgY\r\nVqXv1gTL1h/co1kblXvmF7goXE0FdfUyR3ACh7clDBzjmKDgxuXzi4gUTO5Z\r\nTP2rP0fvOxICLClxQRGY27bMShDgVkQsF8IXCrF4gaxcWInY8GPNTrk+XMDX\r\nc9O8aAheJkLTsLPQSA+Ddx9AdX1LQLkhfNhkRJBQArv566LVh7UHvBE3+L2k\r\n289NXIGRnZ59sCAa4ux06lVAqyZ4HoXuNsM=\r\n=nlf6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660166356000_1660166514119_0.422348007026063"},"_hasShrinkwrap":false},"1.25.0-beta-1660171265000":{"name":"playwright","version":"1.25.0-beta-1660171265000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660171265000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bb54c04096885e33fc67216d16aad2d1978ce5f7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660171265000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-/Pkm2Gv6a1TG+03nMRIn/g8Linye+Ttx6rEmDHYvZq0Xpt05D0u9lXqEtX9eTxBlP5kKp158pZKD/ArF5Wcgqg==","shasum":"4f40728234acc7ea74e8ddb57907877a3c84ad0b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660171265000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMv87LzujVdKRHvapyV/a33GvUJ91Ro1q8ujn/lFIn/wIgLiGbaIInPlRYGOpAfTX4nWV9j73rp2dYWTvNpKFH1WE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9Db8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1Uw//Yt2Ti8u+aLRbKfiQZ99aSNSpuy639a1v14fbb2vodhvga8yY\r\nff7gZRdHJzpcLtnwY3WPUUpHbwZ0+IuLThTRQO+sAnCCF+l7WywbqbWKZALn\r\nZdGO5XaE36HXf0BKCnHsZwjvZ7IfrBRW3zLwk6Vfpnr950zQJUkaEam2Rw7a\r\nK/eYefM0r5+2JAr1mnL6K9+phndKrQO3iJjI7IfJGuwLeJ61BrTiH4TGLrEr\r\nil24+Qdf5c/0AAJ/GrZjpXyW+eJMpmXDkSH6JfuYS0RtHy+2YvtGAFXxCCYq\r\nwnbfZfw9ALP4TkW4LX/O5ZobJP7ynkMj127yTKGJtnR62lbFlt9U3MC+EUzD\r\nH4XnlwS5fL1CXM7jtFOkqJ86K2KLMPh6I7QE32TclfoNz0Yvzy/UGsedCgnY\r\nfVNye8r5nq2sQTC7xMfIhr23yaEA8VaSGQmf5S3nwF1WU/9MfDuvlz31gHL6\r\nH8nermjkws5/liXMPM9J9yFf3gc2yYnmBpgB3ApIrjO3XmO1hMIp0McGS/Is\r\njACQ4rPZ/Yc42uJVtdLUzWfWn+YeMKbCfCF7+wmCVvR7160uD3RPc0g78Bsc\r\nFq3svi+OZ1J5Qi0cxlr7DW6Mm5mebBh9+E2RVEbGxxQSh58jItV4O5+ficeM\r\n2PHuuy5OUumIfhW+b9Mo+Xjf7eBL9p1bpgg=\r\n=iF3s\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660171265000_1660172028492_0.621128666449132"},"_hasShrinkwrap":false},"1.25.0":{"name":"playwright","version":"1.25.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0"},"types":"./index.d.ts","gitHead":"bb54c04096885e33fc67216d16aad2d1978ce5f7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-Z+pQNWI17Qx/tHhnmgMmPsptsisXpKgAnUvYv98kctlHUJaqMt2400P8kTw9vEPoC0xdxqu0JhxO7pDTmaaIKw==","shasum":"a5e317c8c207b921e7da17507ef9ec2983367970","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0.tgz","fileCount":9,"unpackedSize":24248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgf7sWeS74/nd28FYoeChDFxL36yNegdZ/XdRSMWjb1AiEAqYCJlYWmmj9sY+P4NxR+3j8T6TjyJknq1dpeBU0nmqc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9Ee1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYJw//RpsPWdWTEWtvaj6swStAFNyoQsAE8DhwPVsmisveN9pJENEM\r\n7awhnJ4F8lSRF43EdhGwuTz5zr7b0VCyNzBTuQPdqfa/hDqBGVdUUpeDDSBB\r\n418wq3rGTYhOrClyOb2wdzWh6fS4isZbN8oo8iBmIaZdhJo+eNthP6KcoOg8\r\nTF/48bObi5U/2tLaF4z2Xhmd2cAKzhCVuF9i9JPNmYOI6Idu0Xchc/XE0x0d\r\nlaTyTmSk3H/acQt8QKehu4Tq2KnhEqiy0Xpo+WKk2+AT/bHx8uJUbR2pTa3t\r\nlKt7wyC0utcz19kjpmT3Qvh2RJJzVDrO8oMZvLm8/SMSq1LmHGX9IdEUmcID\r\nBDClvKhZ9jSsP54qNwpzLMgPpBYgXBSxR2F6B5Nwvh0tJkmBisKHEQSDvbFX\r\nkLIWhCVUEUeRaAkWTf8LbWfUmZopFafy4MYR6jVK6KC3vABU9+MmIl/NvwL8\r\n59yRjcafY1sVIKlwJp4w/rMu0hjqGgMrMTQwcZJ9cV49QbCo/nTgK/8gagv8\r\nCBi8CMrqaG/LKHoazjPRK6KfvKW15/dMkfNZmaDK8pJxXna+Z1FbzhIeCYIB\r\nyqX66WZ3I9jcVmJvnlix75LFNt3YHpv1gnge9d5iFQlFk6KulUdQOT+dqbjD\r\nFDfTRIytRhYTCTH0fHz02shNp/pxZ+5Yos8=\r\n=9BOz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0_1660176308761_0.7471303258066946"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-11-2022":{"name":"playwright","version":"1.26.0-alpha-aug-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ae7d767e5826247f34dfd39e9319cf0b4f2a8cb5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-11-2022","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-3Nzh5Jc4pecNbXi2Zs7CCv9uadk4EcYjVUwRC86dXQUWYGUtbtk6z31kp43POq8ervl3CFS0YiMK+vLb3Vi2Sg==","shasum":"01dfec017f7b40aaf4d3b0bf5c18bbcd1018764a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-11-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6lIaBeZIB8OoiVi0GxmOnjchmz8DOPJGSGAqTnm/BQAIhAIE2bXdtDHNuK74ReNEZVOfD90N3cU7rOSwwqrzBqYzf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9E30ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTNQ//Y0eKiJ/Vr/9qBirOpHpjXKq9zqZgp3DdMp/VQkXJFLFKIM2F\r\np9JOiYJc2mTPZnNhEPt+oICC6CG+UvslL7kPAfaZcPtCZTbsDafwfw4YzOBo\r\n3qAruQ8WXnWMRQku7Tin8Bq7LYSBfIJuZaTBo9KH9oaDureJwqtsBRbX5Ft1\r\n8kbO51VC2C4P9eQNeyuKagxG/TcGa6b+SSFkgkLoG4dbUg/rqNRMArghMRRh\r\n5JtmUaTXTGz/mOKAY5NXrrFFxB/0HPo0SnOTdoA5cyKfWE7rxLjEKnVpBxEF\r\nhqaLlKT+RdtEbgdtIObgfDfzI2IY5NhkRIwrYWnbDG7IGZsTMrhbWVpszbGQ\r\np3q806HtVy3iJRJGOBUP40/DbBM32fXcOjxstkjhHqh24GOQi2DXhSRcRz5p\r\n0r9qIf8IjbMthh/OHyhP8BDY919LeCCPAbSi48cCwyPpCd8Hzzn2wFJgPVe8\r\nvtdwUL0Cv3b+g+qlSAwyGMQDYZeFnkB+zZUy5cY45HM9sy2nfEMbDnQJOxoG\r\nz+iBDTycDdlaVqs1hdyBb4BXiBdfBBn2vL0cV9SLB246/7xuPoN82mpiHUyG\r\nPUoQUnA6S3noM7cS0Jv5C0K5sbf5GDf0rNsyZNGsQ7lz2RkvEacVjYHqrPBI\r\nQOJ8xvq0O/pFCX/OO6btVglwTKASMrMh7do=\r\n=SymL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-11-2022_1660177908606_0.3412450961608222"},"_hasShrinkwrap":false},"1.25.0-beta-1660213765000":{"name":"playwright","version":"1.25.0-beta-1660213765000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660213765000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3bc6b4b644f3aa4bd7ecdd506c479a6841e986f8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660213765000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-HgBuhRo6s3aYas5t30T9yae8k7DOEcwgYbvSK5xFB97hcKJ4Zs9dgiR++6Xkkcyh+gokeNpmJHdD4qXR8QkIjg==","shasum":"7e6cc3ac94101af37400d4f54620de0c37dcef40","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660213765000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHVQeq0YG9vVvvser1BcCI0eyWuS8+bhJzywGet1mcGQIhAMmryC3PeMxoeBezJXTkDuwSi/H/n/za2iB/s5MF78de"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9NqPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrsbw//fUjE+YJOroJZiUf1WIFRqzDvW9GYXNLgJRt8CwP6LcUkwFIp\r\nfIUKVwmNJKn7rsEarEHN/we4dXrkoSCHfhEiXlZSQddCgmaOzAM704eO6ozX\r\nciRTglwIB1mau7+pVDDWdx4ZJrkNlOqPk6fS4YcH/es2VqW8n/gJOmkk5xz9\r\nDgCvWHGprdAO+KpAgh3xAKPq0pjU74Rem1m4hJNKhMeSChchP72DwZyhEC48\r\nTRwDFGialMQ4qzJI9aBV2HPDr7jN1w62NfEVnjzLKalQrS6tLC7IKcFTo0bx\r\nn5yjn0/fNVfTvRn8ob+2qZp3ryZWq3Pk40BT7ZMfKuUAnGfdGKER9ZKT4J9d\r\nPscZSrDKzGEqjNkq4i7WYkcA7LWx0iNO3PgeOjxXD7FELS4/I04xmjhPcIck\r\n9rrQNWFEaAqJYbdpRSY992LUP+t6a6srzitT9aSXrASiXADvuCV6X3gbERdB\r\nSUGtnFJHfAvjZYdQGl7F5No4c779yB+ax0Q6rC+mi5qKZoaeRnZTbYdqP9TJ\r\nKjox0KM7q5JA4ZhTpAyrJIvQmbi6jGyZOVd40zEHzqOXgzK0r2UYLNJ8OU+0\r\n4g24dKyV1zAzhtuY5LZ4uYWwqCDYQ0MwTE+u/rcSK2QR+lHgwF6DgQNiZ3oE\r\n+dv4D3Qbqlpq3gKQ7w1/ezsVvKlRvTRTeNc=\r\n=4s/4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660213765000_1660213903185_0.9631320070105354"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-12-2022":{"name":"playwright","version":"1.26.0-alpha-aug-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3dc1920ce83b56a408d84e2d43e07ec8976d924d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-12-2022","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-RAHEJFcRhKTCX6UZtXqxwZ9ieRKCBAMOoWOiP6QW2W+JoiDNFFMUMcKNOpDlap05aCDccP1lIC7iwRTS/XBdPA==","shasum":"dc8c63fa607fb940c580384d400f79b41a0f6972","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-12-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEI5E2pKSgjz8Zj0bnrOWuOdZtmZzeyT8Pr8VOOMacc9AiEAgLuM+oEFO0qB60yN0LoYym7FbNsCSp2S1ltE26ntdBQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9Z6gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyLQ//QZNXvXD5Xg3b0a6TaOcoYAVjuuSw0+U/w1OI01Gr/d3SzfD1\r\nPPdHC/OifygW1glPMw8VYOvg+tAtVICZmaUGDskYeP3opsVIK19lCg5EwXbR\r\nHXZ4+y1KDHVt58jV6W5I+tX8T3+fOIiuZgqrCqylqRJ3B3z98tIz4E/P/PBO\r\niFhZS4EwOqNc4hjY/NdXJ7ag342XaXd6cCMQ7Stj1BZcfKt8NxjjNCDlDiuV\r\nHj0AYllLcDHxcUEku+u6VxfJV31x7gJIZPAxUqYcBjz9bWPXdADUCII6QbQG\r\n0bkDrAek8UWkRK/svxWmYu5ey2kIUEBqU6J2ihf5uoJCRbKr75ukmTxPkhz+\r\nL8P0boivIfjg6/K3snnUF45bOSboudM65aivPAlPdhkJYh+tvFZPnwaBNtui\r\nmRPDBCGkBv2YXn84EhMWbDVdEV1dA+3P+oxl9oWG85WCwpSj2IzE2n62kcK4\r\na5VGjjGE3b1fzhIyL6ahWNnNiM+G2kOamV3kp/5NsNiQIoozjwdVQW4RD283\r\nXfhcmkYllUivB9pf/5XeXGrXWuQZ9ThrfM7fMu+jcvRYp6gDqssxMuOfuiK7\r\niKooSFaf6HoAqkkIz5/tEY+YTYEakz55RipsyF73rB6a5rUaAeUTque63s3G\r\nAN0JJWkiSB5Irp/b3BeIam/D5WyHxi9kQSQ=\r\n=NJNW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-12-2022_1660264096139_0.7697963686609948"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-13-2022":{"name":"playwright","version":"1.26.0-alpha-aug-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0d3b3d08ab2b83e57b5436ecdd61ddbb912e6fab","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-13-2022","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-hA8dy0LN23REfaPJYHdcLWqSp3AF3JYrI3HYJ96qTf0edyaVYPeAf/qktiq4zcY0cB5vQmbOD3P/EHa/kfn0gw==","shasum":"36c7a3b8076840fd58c6824db88a55cd8a62a173","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-13-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfQQ86vjI7SvCAd4QlyKsmrGNPsHHR8c4TA+ploI8WzAIhAJbF/B5xBzrXmeo6vFfb62ljnLBEW5Ma9Owz62nsxAOt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9vAYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpbdw/8D1T5yZufndvOHAOF0kppTIIlK3XYe51x2YDon2UQgTa/RZ2o\r\nmDsMwSe9Om3MPUpTmvAhruid9in4vKvEBBcmxEeQhvN4SpPjEsxY5RwWl8rr\r\nCfuo18mGFmbeqqHhrIXb0lDdpLZJPi/Tpv/qXMbFdj8mSxFttvhj8eS1qIWV\r\nOu7D3q9kQ13Kv0X0knMFg+SVYXLU+Stj51E7nGtEEnjsR8jhAmoTsDYeBsp8\r\ndneTL8DCgdhilV52c0ksjzMm21+8zgstII3Yv0aLSKJQJTJYi/DqA9yeUR9L\r\nx5e5PAgtlw9JXDBFAOG8BdMy4p8Lwz8RjCyMdxRp5ecHIPS4AK5neen2QJY3\r\n5Td0wflXek2JML24xegMsm6kUXRDTGbW0ke2SgbM1V/pWeZHSY/YWUDQC1Mq\r\nbC2cuBxDgPR+614QmzAOWX9G+2ysLridH07nyXMaufe9oNab+O1CYezxqTsP\r\nOTZd61QDjqgxKJ14Y1e0vzwFpv5AIbjNHqlscmiOKze3baLlY1gnDGCmL5jH\r\njKtS63I1ETlj4dZNA64VyXXTctug56lzDGpdFCXMH0aPFnU6iDtWOhy2XWsC\r\n1pg3YYRm9ROeyevaOjnFIS+ESsnNA3iPqvXT+F+EMhN+eBKRlxYCiD1VSQlx\r\nsyTW2lnCwkUxmfEv8CvbBkJXVSRemcJp+7I=\r\n=KAu6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-13-2022_1660350488131_0.9265812284717847"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-14-2022":{"name":"playwright","version":"1.26.0-alpha-aug-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b6f044d42bdbf085bfc76b71856ec8e3eb046ddb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-14-2022","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-4pKVq1UMPePwKnMbrjwW+jl+Qh2O1POE0Pl55Xz/ur+FWBrCMUlU+eFxMLeEnR45vqHuyXi8HZpdgsDJD3jicg==","shasum":"a8243dc33ceeb5ff2a5eb852eb0cce719db70671","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-14-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEL7TJ2Il9Ml4E5uP9co25WUsEhrMdkL2aEFuiK3JsfmAiBkBDbsYfh+fHC9yx053Q82esNAZ6R/NoQtu8E6p7BZWQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+EJHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5PRAAiaYEfH9u1wyvFEt6PG87UzWL8ORbVjCPVr2DH4LESakNI2gC\r\neF6LQu4ow5prg6j5d01EscE3sq06T+A6wJ7gGupyD3XcPAolDqPUnxydbioL\r\na/6lAeeNq5DO6UA8Pcrq9fAiRQ+VI9B/w45onjvGaBBFlRGEVmqh+rI7bCs7\r\nS4LWmOmVTFfFSN+gMPokRs2IQjny5M/P8WScjU4d4DSDIMD9tKLxtNtXFhhD\r\nrR9fcoEHdtDrs4XpZNMsncOQLlqPD2tcq5YuWpZL9LZKgJL0ZPOC1GPYKFmW\r\nwOgkMcrC1062f6tqop+GDrv2IRYmsw+GqvmVZwL43L4m6NwJCM0ZrJa+qAsV\r\niOrYyd3iqucxIWnhpUN2eHBoUZk488NekERkf0QsFo67ns9PaN5uJY6/CH10\r\nRaDYKfp41iZcZS+hw6Df32ioQFwuHeMBEc1jC7Zfk9T27Ik9kaAwXAh1LS7Z\r\nCKdeaATuHGxa2VECNZ4kVAZdSNOIYu5Hk5viXcrSbousa9mEdDIf3Fu0hsnu\r\nM627Y0KCAsla2ec9+tY97NPME4Z1eQT+haV9U9IVZxyTVNQ8ZEqaB+L3SHne\r\nB4NfNIeq0f/a8Y7KWDbYyAbRtLaTcQWIT2Vf7vavCYQo0ikBC5IfTX2gzJAG\r\nYOxzYDllLEBNez+qUifNh23LyJB4S0SCaHk=\r\n=7C+O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-14-2022_1660437063416_0.9096532724733957"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-15-2022":{"name":"playwright","version":"1.26.0-alpha-aug-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"81ed8fc523b967d40c3b44aed48ef2024aedff59","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-15-2022","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-BcTSs7dKYl66VdjCuygJdiAC3FSc5V93MhyPW7HFRTr1q7l+mCUt/hDUl4dFRHQqX6I3RTRxs2zIOZ5EsU4Ciw==","shasum":"ce4e5c81fc15dd892ffcfb087e64c9acea805bba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-15-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCseAugraZEQ9YqFb0LydoSI4yg3fFdf+5DHsGvB5BYBgIhAPjY7pObLxQGhpNknsZBwTmhs2Uvk2GGKOsRr1w9IGKI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+ZO7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr34xAAgGAdX0R0INw1OyLCIyiIIxtxMgAl/Vmkdup+qU1C8XiMgtXE\r\nSrqaFD4Zokpl1Pxm2idRSR7ADSIxNhGYtHQ2ACQr7UcbwwgePju829uLY50r\r\nv/45B/fCUhAMT5jhBvbuKrTKVH2Tk3Ymfrb5Z4jKNAQVgp1y3perPiqq+Wxa\r\nFBq08vF+7L1MpuxmLI3oFXE+II8TBxqjypwErLvQZL7++xguRYBZGV6XxHbj\r\nE4EalrtdJeAVLcSJbj/4f+UGnNBfjQ46yQJ3pxVzsHy8q2d7hrVRc8A0O4Y2\r\nhuMibQ4kbfGEgHorjEdFG2WxT+58W3P+wSfQIjjMDmdLIhiFJC27PX4YmC3U\r\n0cE0euHnQxhjDoPnqvciDrCTgpM9aBYOezpBBXUcppVVryAUD+LkB3GrjH2Q\r\nbJkfFVXJyajyMKmf1Dr7EqaBFGwQGqTjtcMfvPPG5k1nfIfUeMHHRV2/48Mz\r\npzItxPRAVJ9H+PeFQJw/wW45ihuv1ulqAxhdyDofozKwe5Q1VBBBToEkhV5l\r\nrxq4/ZwtEy0Wa52EhJ7nVs1gYfRUlpPpmZ4lNWaYUevfD76DAyDoylkOPz7f\r\nh8qOyIaR/hFKnYkfWaiYx3501NWdCCciGfx+Nd2s2p2EdvNA64sfy0CIRwhv\r\np4Ppzw+mdWD/lIsMUYsrU0Eqd94xyBNAVyU=\r\n=7/rD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-15-2022_1660523451480_0.6183727420650365"},"_hasShrinkwrap":false},"1.25.0-beta-1660549413000":{"name":"playwright","version":"1.25.0-beta-1660549413000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660549413000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"34014638da377ee28275261accb8f782412f9a67","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660549413000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-NO4oFLgGemxl8ae+ckg+tmNKiyyphm4qQUDyAZbPrH97m5AieTbka2zpBk3mXesfpE6cyD4i7sgzOpHSST/MIw==","shasum":"609659dd9c7ad0422678d35a887ea665cde8029e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660549413000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDH7KNVZ1Sycp/+FHGY1KWV7KAstqrL/NEJM4Su1v4H2AiBhkqPvkh/ove+umgv3h5VORI8H5WoVbzGGG1jqCngE3g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+fnRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmru9A/+JjJ3WJhj3ro2ZPdsbwYkM0lmSUmcVo7d8NEC3DF1SdDmHQqs\r\ntXpu9hrEvfwb/O0otARWkIJY3FTl6QOkrLT6lbV1PYlcFufHl81TCuWNWaAW\r\nLCS9IVyvR2feMMmd9PqHq6srQaiajW7wi1kUIAwnABijpMw3EjrGl9Z0wClU\r\n4ElkN6BX4+o1IXfGtL9/SSluQM9bjZtYOwxUFTz9dfFqXtd9fOXqzYx+tlQQ\r\ntPkzaY/Ru4a4USyALFk4QYzSaMMGgxPVOhC4jQVJsB2i6vC1FGIfm7ipPl9O\r\nzzddxN+iIHW+FZV55ftp6HxpRkvNt1Ltr8E5rhAOgbjiech1xyIFhLhz6LU8\r\n134bOhx97yp2SraUiFJvPAD4nhWqcq3bM40tVcSrfvRHaR9TIGSQ9dKd5hZi\r\n+B5gHSfqh+rf4oEO+J+DyiBfPN/OSfA5VQgxJviLZE+KZ/N6cI4pS4I/fpVH\r\nY5razT8ruFPJYG5DLmFFvneYgtRdbzzv5gMkJMVEJi1Go4Hpv3qGmHD08/lX\r\nij52SIK5r8dz1ZeJobffgzA7ZXQwdTJ8mqmWK5cHxK7tmauuRR+TZjZRf9co\r\n4deN3WZnYdiSfb80Oza3leir+ABouxqkhQop2qbj1Bgc9QHVc7dweDnEQjuL\r\n9QFgMchk+C/+nnxQJUP3LEwb/B1nYApLkcg=\r\n=y5Cs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660549413000_1660549585440_0.9222091949801545"},"_hasShrinkwrap":false},"1.26.0-alpha-1660580855000":{"name":"playwright","version":"1.26.0-alpha-1660580855000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-1660580855000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed1e5efc5c848bd82d3ebc63493f63c6921eef12","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-1660580855000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-FjRxhg4j5eScByEPi15gEgdlxaLjn7Ckth/tfmQWBOI4aH7d/dV2ADLhAvv6dSF0sGaZDKgr6eZnVB6oICwIEQ==","shasum":"ab52a304158c89ffb05b26d8e93ad3191cb871ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-1660580855000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWDKhLBB+78P1e6q2Zt9tq+8FBwuOkYWPMLahRSvrf7AIhANRPDTwRRIrjDDXz8W6jhBhg92KOiwc4CPP3Zu8EV/OY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+nScACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrg8g/9Go13l/OVh4np6nA/b29j3cIKwQ3YE/peqt8kkAwDKxtjdDl+\r\nStoR7XTilw5GQgGHKOLJipVnz+gLdvdMGlYgzJAFfPVnT/GMrlwSaFrFtoNR\r\nK62CSPZd9MItq1ZwZi++4fPonCLCFLnMjFJ+o3Y2thu9Ag+lFoG3kOoXN5ZW\r\nq2L9P5K5LIoYUue/zpNSqdVkQAbZL/IIhoq+Mhw0j0C0C5gm32WmgdEwrFo9\r\n0HPhjaw90d4Lc5f+MSntu4uzdgxdUbsrYkTOZ2ESkTUGunIjnrpjSHeN0hzM\r\nlV41BtS7/ct315XIrlDI5PLqCL6UNtOOcRXNTkvg9bbOUu58dFWTI/61Aq7k\r\n7jLPjudGysLmyAhLouxiBtt756vfGlREhdWCeoIo88G8p+gaJewE8kTQx5DJ\r\nWet6WK5aixAKXzA2tAFcxKLwg0gDxNyHix+h56hY5aYHxa5owhINsNwJcrvH\r\nSnsu0N7kLA4ykaPUWUhMHp2ffe8I1zB+qTaVq7nHAzxGAgveIj1oGxVD65Fi\r\n9ySf4TZhGV8TZvYfnuht4Ao8P5fu8pG44b5SacVrXAqBNrAfDaztG1u1Lbcw\r\nfKZdWU5nUFWlKJxQjTWroA+KnC/0ISUeFwcbJ/YVMHMBW3gfIgLyZyEIKUWg\r\np6zLZnCCuNG6gCWYJX+iuzTLMQMjaU0Z2ug=\r\n=7vbN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-1660580855000_1660581020108_0.7020284060869066"},"_hasShrinkwrap":false},"1.25.0-beta-1660586581000":{"name":"playwright","version":"1.25.0-beta-1660586581000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660586581000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f86aa2b188c60890f1feaea1cd9419115d6fa15d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660586581000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-EmxhNt2Ls6EEP6KVx2z5xFgtRgGcpej78T7Fo48AW5WRljVdr8dBsV69xQhZQI7CEpunGDPyonpfzP5q0T5Lyw==","shasum":"a064c0e35457027d470920e8cfccbf51b85e9687","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660586581000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFGrrTzVAtCSHjxG/qRatmbuzeus/GRydZBKQtL51ZpaAiEA79mBC0iyPH9+LHHHsdsH69PLDNFe3Fz/SbgUbLpUNxg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+osyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCTg/+OublzH8tlXPpDjnVc+awvUQuIANY1sidiIOMHxWPt30kvK2r\r\nXe/QFXwCoLxPSwJkPQ7Js4ab3pg3X9LLN1J4YzJx/n1eK8peaJLjccdGRmO9\r\nwrf0bMf9CQJyAbogQdkaHxATs/kJBO0lemnrNSAx4XyIB5hpMxEOmO1QFOVP\r\nsmJ6tRuMnzwcoK3CrtYbjkmua98AtlPu+CgnOzx+KM9nRsaqt9pcBBGdsPKh\r\nMSTuuW+C2yGuDhgwbFjt+6tEU3/UL+d+MOVf7aY/MfK56TTNOOJbapYrPuSW\r\ndJwsJYZehfY9WH3CVUnPzhvBsLBjVwLT42zT9TAd5ZKTWY6OA7wwRszLsHPy\r\nJF9WZOx+FqRgchWnpV2+xUKbrSeFoQLI05nqCqj1vCp82rKjyWSm4sphto6q\r\nTZAAapwlVlDnXr+iJ9KAqtpvLYIZLNG5deuaU4w121ehIkHNl6pFai85c9kU\r\nyv/xYGHYwWrVvYQtJepi95Y/WEKxoIxnFiwia0dI1t7uKsRU0HVg0bvci059\r\nksPO+TYByKS3LI+bCuXd9gPyKYdgfbADx4vckfQEVQpu9Z6S5MGovjewt8u8\r\nSpRIgv5v+aAswOl2nIHqA/KTV/M7c4UiXZ2V4UiL3ETUr4P8vQdgMSSSmwHP\r\nHjX8BThom13EEGKXnNffY/wnGByDznExjdY=\r\n=gVWJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660586581000_1660586802402_0.5079448929932782"},"_hasShrinkwrap":false},"1.25.0-beta-1660587344000":{"name":"playwright","version":"1.25.0-beta-1660587344000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660587344000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cb34325249346ebb90f692d41e0ee0fb50653860","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660587344000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-cGZ54PMxspVwLjxAhdXeYoMsKLUNZM5OLT3wOXvcSJy96oisz0V57a6jMqW1S5/eGLcfAZqk2JVA/BUcfOA6Og==","shasum":"fcea7cb6da417f4cfad4e7013a800c85348a04f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660587344000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID56dzoJ2fXB8TdXWA/REJb0iQ6mFGkZAbR9roOOAvS/AiEAvkNtO/GYXGig7/dWDqgZcVze1d1C+vwiRCUp6LrETTI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+o3XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXmg/+L8ssONHyw2pe3ra6iPdPiCyCVX4OZc0Wy0cMRi4cKwP+plHM\r\nfF05yf7Pi5zJ6eI3kns8zwUZDIB+TlRZaJxL9s9e2k4DNODqps6uwkzL2+/s\r\nkdewq6RyIjsX3v6ZUuJzvj1HS/pwRmVYeO5wsMy5baJgHRPINgmuhSiSMwzC\r\nLBvswV5EaAWnEyMIlLpckQXWBbnhm4fssuTRaunOlPjLGxpMO2HXCQ33iFvr\r\nEBd9GjBhNgNYzLIyE+UiOYUUoUwyZ6XUoFhhDTmeHbyWNWZFAHOky2slZw+U\r\n68nNDnUC+eEScK2A0BKTHF848FOZmC1xyYth2xEfqR/8pCjvqWi72hZk6PNo\r\nZtJlDlkXAJCeEfeaGHojTbFbC4jbSW3vVsOpg4p0+kuGL5nKDBdgnIECVW22\r\nvhCkDyjt+RyJUpz+IPAPqgJSww/Dm406WlOiDZXmThgtbsikn/R1aNaAzqfD\r\nE42++iDN6XhvraRdRPv4Pkki8hW/+sSXveSnvDN91c/VIyYaeJttkYc0P60p\r\nK6jNWkzzdWS+HqX2jnCZpuW5wu5HNGa6eKbNX4Lw85pe86nn4RRfmWenin07\r\nk3YBy2ne3IFgE/eTAQ8WvBL2VKJ4T21V9VCjPte406hq6D3Iz5RfKRmD6tD+\r\n/yB1Waq5SC5dHXhLMXBCHh9hg+b/FHSepIE=\r\n=Hra5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660587344000_1660587479157_0.3617323550603302"},"_hasShrinkwrap":false},"1.26.0-alpha-1660591492000":{"name":"playwright","version":"1.26.0-alpha-1660591492000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-1660591492000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d133b58a9609d58a4d710d9dd46e8d104e64dad8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-1660591492000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-dVTnSlvsa4K3nwY716HY0qK9zc0uo6a69Vf+ujSrB39nMBuFr9xtWAkdGX2umx/InPaUL+pJDSoVsaPdtqhrdg==","shasum":"fa8d923aa617ace6392e39e57815db341f5d82a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-1660591492000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGWYlWojuXzQo/aWkiE1/8zK5rEzSpl+u74ALZP5YtroAiAg1MOi5IG/kTHpDA/oBiyB4S7zcUNd4MPPIJmA+uPAPw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+qLfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruNA/8DqJf+6QAa9lOVywHjEij9BSmKJm3KSDZ2bfIDibx8h0QdocM\r\nLxLhvUB+wOTv0GGRs3gHeIBCM6ayyw6llGJZxkvkkkyoS2hfyg4aPR7KQWel\r\nJHpcuEv0wC7c8KFA+MnnY5Smz60D/fO1sDnq7Rg77k/+Fuk1uZoV5zdeoGmh\r\nJqwQpnVAyzOSwmYAQ9Bn/oCE144GduSjSLqnVeI2wg7So67TMZilsGs1rQcj\r\nPigEYsM3c8LZCaNk7KPU+RthFjdl4x8H3Rr2Os/VY+fxei9KW3+g0ZLn9IVm\r\nfB6UMkoI9FkcVtg7y2bX2PaFJTGf17fwD4HmMSAyyj0fs958FIJaDSBxRPP3\r\ntzDGS+gIrrvwcYBTv05IZnPXB/vNQMFbSs66I2dm4xbv8yH1PlBebUnE3n2F\r\ndP5JWv8WcgXgnUbBW898GXvYabcm7xjKa/ZQk0Yn0yRCGPb2se/bGO6B+7KN\r\nWRHc927S/v2dNQP+ahycgP4EUun8FdGiWpK15/2iJuLXSprA6l7Kti2q8IWv\r\n7ZuQLqXJ9zGRwol8pGR8MMtrKtUic9zypzoqhbWiOqoukQbQQQf5jQz3SlNw\r\n3BT8C8CE1O4hvDhuu35AFPFxLqeqEq7aboJ+mVtaCFc4YsTmJnig+uxi10kX\r\nOvy9wVTjo2Gie9ULuNa0NChQJGpYvWTm3aE=\r\n=+LWw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-1660591492000_1660592863388_0.8178640875172598"},"_hasShrinkwrap":false},"1.25.0-beta-1660603535000":{"name":"playwright","version":"1.25.0-beta-1660603535000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660603535000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"817a29b3461e064e1926ffc6d44de1e9ec66ea30","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660603535000","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-nQ5Zc5pYlB3oePCq89UmJkhYtZDWfpQkjK0qTnsYn6TTlqY/gQKH+5mCuBR4F9P6uUS388Sv8+xQq5PWQqU0Tg==","shasum":"7694fd7ce307ee6d026e91b5bf238438aec8eb48","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660603535000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8bKqVOyZn+6rIiGgogDlB6jzzrTptAb4tJPn1iogA0QIhAMBLqV9Mlbnn1XCuWmdAiOv1JfrzD3M2/6F8Le+m9lCu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+s0nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUBQ//Q4t2pAPWE2Z0pxb3plrG6YfRnbBSwdGN6HX/2S6Wa25x9GIj\r\nuEImP3ywkDQmXAXcguEXFsY00frIaqTXGdx7cy1cp0iUEQ/HhsGQX9812KR2\r\ndEYLI9YPHdZKmiCGU5qJVTYXkXPDyPuEfAeNcR1NpQcFJG7aRfYDNI4bmMDq\r\nH5fzDATzGEcKVPfyx1tmQrXNFVFwf/1ejZdhkg+DQssrW5SrvlZDS15DujRZ\r\nI36xs77xS0pkF7MzHPlxLHhIFKbIKNn6kWzCvHPepwV3mpKQ+uWPwVAYLkbP\r\nIyXKnrgfc3OFcGE8fOee4TBr5hMiYSKFFfp4a12Ls2AZDcEIt82bY+nJPG1d\r\n3YxkUDaiR1TsQlEc6D396BYoeNCea5XsBJfmcNDbeaT0IkINqjB13wKF1b0W\r\nfAqoaQkOlJT8LgqPqshGUEQKdB65NIfxwKPinTDS4/f9D3PxKV3AIAGXIgR8\r\nDHKTGu3kLSW0RdAfjfunhOAgiz4PCilFWNVB8OzZZz1pOT+LwL0OD+UTIvVM\r\nuKx0LsLI9m2hHybF6tM+EmwURFRkSpNRG4G/4cj9Q1t6XlTMPj3qrwpXea7c\r\nN4YpislxL+lr9918Q8P36zRS8EUDJalD5U7xvoqCm8iYJ4hN29v7Gma1q8Dt\r\n5/nteW313AxPdGuLm/gxJjSIQfS6v5zaTLg=\r\n=8IsR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660603535000_1660603687147_0.879505237103237"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-16-2022":{"name":"playwright","version":"1.26.0-alpha-aug-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b41da08c1ea0c55805d090bdf498de418a6d09dd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-16-2022","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-U8b13LpyNpcOQI+OkSKHr58aitXQUSz2Xc96IjHM4Knc7NxV6Ug5SlKjbeD7piBHAOcuQH5i4RZURLUn15/TGA==","shasum":"392ddc500dbafa21140788258d65d411827e047d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-16-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfbWsZ5iTD6ePzagdNZJl7Go+GLkR4oKPHG+5PgZIp0AIhAMzLEGK0LAMlFJGBubqilxUw6NzciYKHu3AUFZQqzfft"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+uY6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4OxAAlFXTfiBc6yX0xDzCNAvVPXpFmQIE05CCA1zTL3/mOmPKcn0j\r\nZ92pIBAqloiBT3VOrb8ofFPP/jlBUndKmfCpIaHz2Lu/V0N29aSAT/m5oEnz\r\nRU8Yu6R7tyN9AnX+EO5iTnEH+al3r4qQZJqTp2HciW6/LjzkdjU3OGlfxCbc\r\nq2fntiFZxB+ePouoWZuAxmj8rjyhgcMw/tD/lzjYFvZ7DihKB7sofbn9nTsy\r\nzNysyTG8ZfRM4Xpq7l+3yinhkSozgmmQdGYwq/59boAoHtoSutlbyeXuf8RX\r\nRnWahwIMOUFTM5du5wy4V8Bw9FsNAd+Q/VqksJEsnDsWNoedZaOxfBI1gj9w\r\nxZV/qyNk8qaU5/JQH3xaauRj6reAjLZplJr2jsW89hREidUvtsMLhBVJmhUn\r\nGXkKjOSD2sVg0n0DIv+0b3KU1ii1PXpC3hgJVUnCiTAdCCeoQ8AtM8oEVpio\r\n9HmDlKd8WBN4PxF6qMu4wbs/QknWSZfjUvC3KGEHN3ht3DPZxaPLRUqiP1RN\r\nd7WINwypgFVXgVL+UPRkD1As/sZ0eOodWz2xvpYtpAO64Eij/sIwziqCAKAi\r\nGmeby/veWYeZLhHgMW/g5bEg+CS+vC/8L+vCqQBhVlLZpi9I8Qu/e3o6HDQ4\r\nRvqoR3qwwQ+EyGhVy4a5l2464oJ25htRWrY=\r\n=DFTC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-16-2022_1660610106102_0.5384805682322196"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-17-2022":{"name":"playwright","version":"1.26.0-alpha-aug-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8ebf9d7699ce8fec1593e33641c2bc65db38443a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-17-2022","_nodeVersion":"14.20.0","_npmVersion":"8.17.0","dist":{"integrity":"sha512-kQhyUgEuzcCVzRmuYofRsmWe3MSop7iAqLJyhKqKEPngJlLnyJKEk+N8fozvltunXUlslP3Cu/TQ6heZHSwdXg==","shasum":"ab9f090ce9efc9c91a13849eae811cf03d3c7b83","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-17-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRpBiMqV0SykEroesCYooFV9kfTXgf/EeZNphXKAFDvgIhAJtv8UbJHSoZeM5AuSqNd1+a46dW5IAx/W4aCFbMQCCN"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/DcRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolrRAAgJN/Di6TKhnXEnAISc3cE/03zMGJxnxmAh4ycX0gWfT82UJt\r\nRz3N1qbGT0m4v600FOsOet7JYnE9Te9ff2caHTHx3HXjasKaHQp7x1rToTkr\r\nXGTQBibDtqehIq5CutzkZo4S0OGmdHj9xkyAvHa5gje6UVHbaetb8ck72iiC\r\nJ8UWu+i8CuaffEKU2PUlHS0K7qOiFDRvXK5ZvYXrsOxLc/+gEBda2OVZefSO\r\nekGQ3RUG12E5LmXHmVXugUG9xCwzvgVy53cEJMeT1uux5TsL/6kLdmyQfiER\r\nH1cgpgdLO4tKB4+irRAH/oDl9PkjcG/lhl1JndEAdTwqL9Bph6ov87UPViN8\r\nuaP56GxJGxAbuR8gDGjQ9IedffkMSl31hFS3kcYVTJ2yQtYE/9Lsr0K7cuNM\r\n+TtZdyXOMvS85UjSqFsyZ28N0nIvqaGB8NrJYGXkk6MD/+Q+WQZAbdmiPboV\r\n83+QgP1Qp0JVJCkY49iNFvlibEUv/fNA4bUVPd/l/AIn/qXkFR/cK3zqMXUQ\r\nnAqT9+2JIxXjx5yuqBA4lbVft0oR9L0Brrx9WusuZppOzvCzQ9GdRbBU8d7B\r\nttfB9aTvzpCWze624wL+ZbebNd7Ga9VXbg4DMo+CPZtEth1ScMhhRImKegff\r\naFoELzSv0w0RJ8n70qmcUE5xXhSoDAh05ps=\r\n=yv5P\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-17-2022_1660696337334_0.8719576083927849"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-18-2022":{"name":"playwright","version":"1.26.0-alpha-aug-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"94c9db299da240bcd5725f5059c34eee155707d7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-18-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-qqEHyEILqceofsx2c/LboBE6W7tE03hiEGHaYiCcRIjwAp8HBWQX38mQeb/wy0o94+0NC8Rr8TRGlnRQoRA06Q==","shasum":"8b57f39f7e8a8a8817df75c4c8097d916cfd5235","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-18-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA0eW0+wTL3UZN4aMS2GuESA80sBqCuV4kKzrsIdbv/rAiEA9mhiHTVbnajZm/wPIhQX+crUMF6AzGzSUiJvLvyOqhk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/YhaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDjA//cNzUO8iNIiNIFeDl5wjVtp4xU+gn5wXLjCWfLc7iDBf262de\r\nkga1JlBJ9NI9a7FdQLwVWXDtdYHw3sYchDFfQEEHaSDt7J7MUjGPnq4pIrh7\r\n4lUt8ukI31YDm6f/jlPPDasukiqOt0Xh04Ce4HjfTnLQV96XxbSBEpso+WIh\r\n4Kcx4OaWOAhaGPcYHkqyUQeQsIpIop5wrCkVJL/n7umVBpWKA2HPym2Rpm5f\r\nyqeHnQwaZ/5BvA5L2JBrDud80RxzMpQe1HoXf3T5lD9ZqDHxqVlN27aX3he7\r\nAELKgvLXGrd5/1UQxHI3+KQRSci83ujvqGriGOLH+S8eifBwqutmnvi/Eorn\r\ni5ZzlUHAKjWBx7OJlwEvP2LhfS6149SqZWW9HEsEb99BMVywzfkUlELYFCIz\r\nO+JaZ7IhRIBDBIT2iPXM4tLgpYY6R96hike4A90A5Ui3ktawzKxVVgD2OmKx\r\nVVh5JHaxjws9cr/sybGsJH305UcVlF56YjtmAQ/hvsBYBM/yx4akabsXDcYb\r\n21vcoCuwhVbzusabcpKe3jXBNsxZsDH9KKQ29fUqOzXjprb1lNOj1wE9T5d9\r\n4gY0v32Hldb+Qb2AAOSC246BSkkWW8pSAJjvB75Gi19aKrX60AKgc1rpxMGM\r\nm/W8XAl8mzIsqgNldaUuDVTsMBjrtl+y8I4=\r\n=56pl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-18-2022_1660782682578_0.9465781440204544"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-19-2022":{"name":"playwright","version":"1.26.0-alpha-aug-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5dc43d4957c5867ad47cc6f8d7ce844c37ef619a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-19-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-+d6nGoMTXqh/Px4g5paNsVMQwiGUIvxIxIj62lJ+8+Q96eyzBUivt+FjPozO6Y7Vn4ouSwI0ftze88Wm2P33qQ==","shasum":"c1b9dfbd6b2d6ae078090cce9d3390512ecfca03","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-19-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDMvpFTNM982f0ZUXCQ3QRC/AZZqsAXAfi6oq6rpzm+OAiAepbfcQM7B7tx2tGkNNsxAgy0qhF6Mmx492/upwnMhQg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/tmwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoj3g/9F3cLmEzPR7NZWkrVuOrXlVJH6R/9qjwHreGJ14nnKPpIF06B\r\nXvUhW1HoHLJ0zKOk3RlgZAm8n6oBMnspxWcS9J2qHkyGhNap8zAWq2JdhW40\r\n7UGAoDUP8Xdk8rw2Qg1SUFSh6EGTJNUDPkhHXbeWV5aQ4hVBJoxBOB99ZKy0\r\nY5VpMdAbwsupISIChOsc0cZY/VyqJI1XssARFqyYoLsKcxPm8JRVIEoZhOvo\r\nmwyRhyyX5wvjBZkrhEWaxFI9Pra66KC7val+xQ5dIUB+s4Mf4tfm/Slcy1EJ\r\nkpa2SojDMMojNCR0jtTZqdIJicnMt7pzMAiOGGC5+xF/jt+yWgtLVMWBhgio\r\n+3I2OnprizIC2NVvp3rILeEjtGsVgfodxt+5DjinPbUAqzzAuJJTMnePUXsp\r\n8+MIoS3S+XEzCWwls/BKAEHEoJkKV+YZfstFyNj9BxA38mBqXtQdsuK4rBtz\r\nDxfltV8JbZL7V8ZKqSgnDP4elkarqVsFjCqiHa70RIaj3EC+/4kFG3BUsxpp\r\nR5auOpb8hT19XmguGOgv9QraKNmSL8LvxSIJ691yT3EzefQo84zFOq5jyCjc\r\nONr/NW7EORGhEAYMaO0M2atmyupMOUx229tuXAgSrcL6DWTyxqKQglTs3Ktj\r\nkQMLrXqTkd80dIWDMYrfyOiEkzg8NqnTSoI=\r\n=JlHv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-19-2022_1660869040137_0.5227996352257109"},"_hasShrinkwrap":false},"1.25.0-beta-1660912234000":{"name":"playwright","version":"1.25.0-beta-1660912234000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660912234000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c9e2a8b3407472b00575b5b75c8075710ab1c029","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660912234000","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-qXTwj6ja8AvqILlcpiEJuC9DmBhnPXfRmO018APsrZGPY2jLW/lq+CVuvq8cF+0EYpPyvw1HGXXZWoJESTLu/w==","shasum":"5ff14a2b11c5cd0e33e2338b65322396a35b5d84","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660912234000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyCnFMKYtFZB+4VMMx8oDtnNIhWaMnqZqIk4gIdJp3KwIgRnmNrd4EKBeqhx6ed3z6zUq2sXyI/JQUD4RyrwcVrJk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/4L6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAHg/7Bewmv+DwPNSqfAyf9NUI4Fog1fa4jNLD0dIhQMzOk0ucpVQu\r\nGtftfulFKPM76ha+SVwYptRX14FHqst7l97KsNRYhEUNCfW65yM8Ttzr7zhM\r\nRaNHZw+EjKlLIetBxmaIvf+zKOLRHPgRlv9uxvXW3acz0zg2y9BI4s8ddc69\r\nKkmAhJ7NrS3aWH0qGyUYpao1+/LYrR0KW611mZNS0gsm8weMHhWotgucDX3j\r\n/U+BLIDC6RCamve08S1r6kCWJ6JY6j+FGvTdc2p8dKN1Qtf+61AAvwlMhM/T\r\nttJNyMgjogvZYd41JPMqAbKajkX3cCCuVsfptlgxiKawj8tvXUehxBTCSYXE\r\nb4JwEGa8yrK03UoKW1t7MVHs0YD5667+ldMzzzTqRpSMvkXKpxKQLBg50YQR\r\noY6QKcXSKJUklkT3kSHItrgc1/W9n9LS2FXZXS3DsObMIcZv394S4CxMH/yu\r\n2ZzBiO6RHnFMlnYG9cEdv9jGD2IEuepbTyDs6shoiKrvER82Veyj4EdeeLvR\r\nxkDoPJJ6lqip78Zp1OmZEHkKB6NnJmxeDkG9MCgcxiJjM3lKpPpPIow3Oge/\r\nVfbyp7sARfFvtd6zRWJ6gF9JTTw8a9dX/YUhf20eEoGrgZfyoHwJMyuV+fIZ\r\nHPGZXlZG1KXN+YeXpYbDrsDFm+mBXxolUaY=\r\n=JIe3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660912234000_1660912378738_0.04126218884681543"},"_hasShrinkwrap":false},"1.25.0-beta-1660952656000":{"name":"playwright","version":"1.25.0-beta-1660952656000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660952656000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ca18f2eb98eccbbce918ea9813befec0d9eb0e48","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660952656000","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-sAfV/yNjnEWclCHcqaG+4xjW1OdOB0ijINqzarpJBhScuqLBaeTQzQxOuWE8hlsXHPCTb+9zYeHKVGIju8VZpA==","shasum":"a2831873f9a0fc59b4e441317e93ec26cdbe6772","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660952656000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/KxSnSK1kPU+xjmKWnX50ptepmr5kt1RA5lsV7F2owQIhAJ1TNxgDdKbePNwHsTbvizD899/vfPX2kIcaUkIuI4vA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjACEHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpB7xAApAvTIf6VmyxESmDbkWd/Rjy9HRRKCAQcitqzYuEFxSEMl6p9\r\nIc6lqrOceQEWaZar9aOh748/NtED1KKhssRNZYckRWndF38IGgB/X9flqpKu\r\n+T9yg31vKa8RIHwa1zNfeY1KfMbB+qCyOMyqODYMpjmy1sM0LjQlvFOIGjaJ\r\n35p14sPwpsTpxAn5289VfKgg76N8h2JlqPx+VcT8wIfI4Jml5SKuNy0/ldQ0\r\nPJv0LD8SwfakhkAn5JRvb5I05g0nV/kFz+ICo9mfsDyeILTQIuY2CCWmZtzd\r\n6F07yX+vVfRpdNiV71HuSE/ss6VwMbKz00Q7f5iaDDjoBNvNQvRl1qqhsIOj\r\nzIBiaIh5ObFod2Owuh/hriFBjTWXGje+HZdC/TedRm6d063aLpkuTePLlXJl\r\nqz2G2HSRwQoIBxFPlBBXWfmRxzSLpD7ASzTLuNgw0vDguopPtManGCEMD1Lg\r\nx0GadRg8wgjffPTjMPmXp685y3qJKE3oZKW2iMI17l9Rv043mj6NXYNavgb4\r\nrbCzbap1KK5jPCqRwIjokOY9ZOoVCHxVbHyW30zh3WD+6GhzLLvrG3khfIm8\r\n9Sfxj8B5Ul/IZFN3gfF2t8i+47KSxvj5MondSZOw5eEMiTCUuEnKjsn5bBkc\r\nQJiT7+vbD0W0prXLg2wO1agOWZHLj1Xvg3M=\r\n=1DuC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660952656000_1660952839229_0.5234791343264567"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-20-2022":{"name":"playwright","version":"1.26.0-alpha-aug-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.37-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.37<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1730f33b87724d17ab9df653f00bf2c00b93955e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-20-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-MBt4Uc9qiq9JBz6AUFkm/geAxNkY+2C4GpmflaVoxVPBp2X0zyA7/sCoh/rJe37ABThOnG43gXqn5uJMHuAhAA==","shasum":"56d39ed6938d3025a713f81336d04bd54248037b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-20-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBbMOQqsLMSZoi+jLdHowAiGomk3dI9l82jmtxVfdj2gIhALgwX3F4xk0Y7QEll/Cfk/SCHa9uBUPw9mcD/DIz/ncE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjACxvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYShAAiTcLBDJbXqa/2p7UWgSgXRFA/tbr8g73eCixOOtQxYk2u41S\r\nmReMgDyfkglH9Rkfm1dZrPYD8NH3ozmV5QF70a4EShLMqKHjYZnKTYRIvQdy\r\nE4XCyunWZtZ2ZVTOCKwp2AKlYIL157v4Uc0PHJK4rzvFPCAH5B4dsOTI4AGt\r\nbheq6jcNQjy0+LYNKhb42Q7wO5mqsySn03b65xr8gSdGqLVXJUtX1VRoTwZe\r\nFxSkLUCGNs4L1FEmZoBJalecogZ0Wn9OTHhXAwTozH2Su7PCGTlvQfDm9aSW\r\n+Tq3ytIc2gccaDWkpzpCTEwYK4bjWGo6CBiX0e0fRFSTodYSbd6Cc51lyTEJ\r\nqd1rUryQzgGb7rEfbaS8DvTZFN91fQZcpfGiHlYyreuhy0AyFtsuJl09gNbN\r\n9KpytkVQBsujJ7AGFU/fJRTY6A9yGnpvNhuANlID63twjeYra+PlDetAy7Pu\r\nhwvjlChNAYpM+/nZe6jK+5y/Zg3QCVNAiQMEDVByBBlXmLXRysM116tM9qFO\r\nVEto7yMiPCL0lHgMgFM2mBzYZdShnxUAAP3CRgYj08c212OvhIAYQqXrT6p0\r\n3PRWlmWwCCgpaZrRWKyjUZl2lNcdVtYCEktfu2U7kfFm4RXPYqXRu6Vu38xs\r\n6XqDXBOCEMdAPXv7letJRw8XjyP+f5hw3w8=\r\n=t9Nm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-20-2022_1660955759736_0.30681888043150396"},"_hasShrinkwrap":false},"1.25.0-beta-1660977861000":{"name":"playwright","version":"1.25.0-beta-1660977861000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1660977861000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"403b723a2c5ff407d837ed341a46889091a96083","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1660977861000","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-4P9GsR1iEQfSCTvN5TFqM/5UYGM/NefFlqCOtF7qjld7OVoon+KcgTq82n9rtJ/cmQPp/RyV6aJNAXOaMtCTPA==","shasum":"00282f3212a15eb97551805e47791a34ba38cb5e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1660977861000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnqb27tun2RVwn3e7k2O3e14rj6MesnE7wYlI0uS4IDwIgdUvRxt3wd0XqEbcfl4NetNnalKATfyq10Ya9SS1POkM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAINAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2txAAn1fnoDj9+FP5EXkAJFDk7VSL4xVm0zlRQYKHd9APescquuqH\r\nb7UMVJRfbVkBqeL/f42SioKO7KEbjOFdPn5NYLvSr7HDK6dk0WIQIU9rKe6Q\r\naoQFlzBwiv0bFkh1v8rmCS9D+MBmSpTbS3EbudK5JrQrw5luyNJR/RweBoxb\r\nnKlDavhXC8roe1YjIQ5nAo7Nsru3quwdGJXUNVZYqJyH7aS6voArv49m4axj\r\nQz1rdpsbjIpN0M8glHHgusKVFW4w4miKHR48Ey2s3BUh0+9OkaNoUZCQVggW\r\njglqA+s85fUzjbQLs1V8V4jVkOr3TYR9J1aDhjcbAct8AaM+3IJUrBz4ROV/\r\nRv2rQ7eAU7dHwxYCFuiYs4d6RXtg6FAtbQDesgcOalc/ZWLhmjL/gmiHTlH/\r\nf6HyBAGFXdkC8ASY4EcqehEkPjwyaDeMBSCsiYXdS5gQ830jUyaeS5xRL7Q7\r\nDdzGEwkJ/xL7TFKi2KTo8DXA1WCIOMAYahI9JE+TjxMg2A1C4MvNIOrmW1X4\r\nZTF6iSKC1nOH9XVVTvJm6o8APq1Do4/Tgo+ZS6SUSrXS8X0IZ1k4OaFlZORA\r\nnHS0xq3on4TgccBElzxNyl/y+eZQ/DDjOLpM4pyA3OuXGaLHZqtR1Zw84Zui\r\nYvG4gq/H3pzt8qqIuI9xuZbE73Rk2qWon0I=\r\n=byl5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1660977861000_1660977984739_0.22218699555630894"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-21-2022":{"name":"playwright","version":"1.26.0-alpha-aug-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.37-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.37<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"35a9daa4255f2ba556d4d7af6243cc84d1ac4f2a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-21-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-RKFN/rAtkNsssRf8eZIS5Mgo+j1SxRtGnt26oHUgQMNTBTIfsYuAoFF6yzheLVDm1EzvxmeJ8aBzX4xA53O6hQ==","shasum":"da4a53f00b2ea9f353feb07757b885a4020346d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-21-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCScWEbWR6Je4FnlWGRm8LeofXYjghgvOw4Diavf/d7lgIhAMwoSrLx/Y2FDlmX+7HTbhU3ofjG9a9B7lLjZajFIOpL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAXw8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbfA//YSlrDQZNHgZ2Mld8OL8JSda+rln9KNTSU/kW65kQm7pfcMNy\r\nXMewdsbJ+ty3t1tNAD6YL5n1gzxn0CJDwrj9BWA3Zj6qKwdz4Eg8VS9nxdee\r\nyeD/1t8B09M9+PlRGPjB6ueFL/08MslOwsPcrmSWVV/t7IoGL+PjW65d2bwZ\r\njMwJ+ZMrOyZihEy8GnRNdOv3uhGYtUBKgEhd7qP1H7i8woPUxh+QRmt/zc2J\r\ny+CTLnRUsUA2GzWvyrAcnEzXiALQr1k9prMQWvR7sB6SHeYU0xXcYLrtfTLr\r\nj2aX7SBal1qiZhAwGSR/5zzEl1Y0CR3o9860DrW5jE8UybKG6mU1yIHXwVsW\r\nwRERlAf/xK/CBSsQHojMyy09J1GkakGYTX176jvQdo/gv0g2B918CsIeDqQz\r\nYsdyhEFXz2S+XaSuJyH+lLYbTBKWelpefJfvgDAmw8RWgjD6NrH+c+CVl/dv\r\n8bCoFeRc2GttQlHKZ3OPUCQwP1HDeyqzLwEon/GWXpMebsHpoy0Lxkny20nQ\r\n/5+lH8h6hA7lRWSFBP98gZ9568Yevii5sErPK6GvEXVpGwZ7hHkkrbTKZNBu\r\ntFPT4OTbVG16Z2d8b3q7vFRwVeCHyYAoAd6zFP2qjd+9h1i9Vo9F8rExMfbj\r\nUvgkeNWWt/nmcqWvW4DTte+gip3QzBbm2t0=\r\n=49tx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-21-2022_1661041724005_0.5191883797235435"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-22-2022":{"name":"playwright","version":"1.26.0-alpha-aug-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.37-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.37<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"16ab54db441e268abbfdf49dc05ec44271706cad","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-22-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-gsoZrYLJFwKGozW4gUXo6ZfjUy+NKOWq7lUI12LovxGumMCVwVAjkKwFk28t/i7rvksXCz5UOWyAF2APQ+UYpQ==","shasum":"67c52529a12e51fb87e22af790ca18a3708770c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-22-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGcdJNhhlXaou87wQG0UmLCzOwx9Yg5xWmKjbr7RbSGhAiAVidTi2P5nLjyuMZt01/H0+RX0ZaWctOtkMBQ7S73g3Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAs6MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmolrg//TeXdcAcMcCBreJFtC2faEbZNmXUe9lzqo3DhiWE4JnfBUQCz\r\nvdhShyeoZqp4Fy+7ncVr+5O+RMbu+aeygqmtSk/3mwMZsOovTEghTxEQlWWn\r\nWN6xqWeZ7rvA5QZdobbIXgCpzalRE66Z/ZN6FDHBgKVYKjWxBqTShOqC1T4i\r\nvcsTd2m6yyVhJa4VIEg0QRwv905BfXZsIDcFm5pSiUqAaOkbCnPyk/4M/tHg\r\n4FsvKrOkRI8+u8Rs9d7+TugpYLPQtZK2Fch+4nyf2ipo07mFlJQJCJ+YlXgL\r\nfumaXxf4S+kNGapCg6RXoTj0QJ8oawaycFWvognmvqCelXND6xGZVVZaCR7w\r\njiJQpFZ5gh9+bCrt14JZWpc8p69v6cHpB7CDEd5JxlOrAgenTeb+L+K2qG+v\r\nxjUB21Z0EpoIu72p1iowxz9On0q8Je9FtMB+qhbqylOGm669JGezhI9HjHiG\r\nBVABcYbXlunuScIbMLKJ4A5rGSRDVZp9Hpawn+p7T/CiBktKU3g8+zDk2bhf\r\nMOoT6rnQs5Osaf3hQmrOyg2aae2EELXTTBj6mGZURsJZiqEz4aUx5elT4Xp7\r\nO3zIaJ9m9zD8bF1cyXl3K+mDrVWKOPtsf6dRzCi+sY1CB8iuT23zck9zjGS7\r\neRj3PECuCFHMCPsB9MHlbWZMNpxRKTEGmlk=\r\n=amsp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-22-2022_1661128331923_0.1337180686868391"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-23-2022":{"name":"playwright","version":"1.26.0-alpha-aug-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.37-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.37<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"26df4cc00efc0439177d16af10206764b9c26810","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-23-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-XR5THU0uAzrd6VmRu2dgf/0SRu1CT2YSq2dHFsZngHmiED5MroeQ8OyuIZbQRPdqDMW8UUPLTZ62U8BWwluZjw==","shasum":"acab86eab46ecf71f9832729039b7d6261688c76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-23-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnCCV4ySjSC5bVUWp9QsfvY/ccVpKnwgZ29q7ttWT/DgIgK/j5sip+d2aHvhWopTZu7bHuFsrWGdm4SINDkQczK+8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBCFfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrO/xAAjpVwE0ZDzih0KDcHKr7n+BrrdfpyBbe4Skx4/ZPgxnmzkuhg\r\nY2Of18bYtFEv/lsFuCK363L6w/TKlBoMFfDgNksY51MGPFU1Tq+ehkg5FgCR\r\nkLGtnjOaR8OVDgDsM797FdkgjaoIc+Mad83XBPdPmMEYgSQ2Y660m591HoNk\r\nD4lYFZoDxDSy1GZwpr3woKaVzLutkbqLIb1iErvEvbc8vBq2o/rBo4Yv1Uyz\r\nKnmB8Aol7bFO6F9RCk2QSKW5ia6AFD8IA6PvJz0ek3gs8WouexKDeHuvWVJl\r\nuhPcCRdUsCRqrSZVIlg9CQEzhesa+u06AoxXaFeUzlC/L8UlKyRHBo5eAZ8g\r\ntmANbdeyzDRrhX4CYM7gSpGLGE+VZhrearwxGXr9JVZ5/rFJg9x6LLgiOgRM\r\nUKm3Cc85EZ+yms40lkWUqbL9E2TfkZltCfvL5x8f5GO75iDaE4v2rPn/MuLT\r\nvf1rIvWA2suu4ZaqRiO1E0qv84pY9WYRR3Q7Dfbw6Z/P4yqCf52HzofrB/Ts\r\n5oSs2Df6zf3xM0+LmXlNhK1WYnu38QEXNXdI08IhJKh5exaYDuymb/9ppuwi\r\nuGCMgM+udGT8bZPjxuzOH+IB3x+mlwkxYwBqeqQ0c5vyLH1JazRXz9yy1R7R\r\nuGQPp0X8aPJPLe12La1HSahFuND79ReisgY=\r\n=As3T\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-23-2022_1661215071661_0.5618670344648724"},"_hasShrinkwrap":false},"1.25.0-beta-1661275579000":{"name":"playwright","version":"1.25.0-beta-1661275579000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.0-beta-1661275579000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9bc72cca54160720ba25afc3e83d7510449ccefe","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.0-beta-1661275579000","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-7zvkL1f+Y4hpLBsuvAAK9OKWLYQzL7aWr5uX9YfMvza9Okq+UrNXvz6ybeNFiySC2T1FrIB3iLAaRXtbuHOxNw==","shasum":"990827a7eb40d904bb480bcc6c785a35ad62c01c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.0-beta-1661275579000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4hzXK9Xg5OjuBA/4NBCxIAHwDNYDX7sENW5oZem7rLwIgXtglb56GvQUGSHY/+uwE3YEMOpdlq+JwpVdhAGoIj+s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBQ+DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrrBAAgZg8OjTbYSJ8pAAOekBkoCBXWsHZggWtkI5Slb0WKMn25rgU\r\nPokX67yfo0ctLMD4FEI+WUXpW+lGmKkxC8WzVzT/nD6X5Nl1o1mXRr1yXXTg\r\noJbR6ouv6hKgxvePdkpBd3hEIIcniavDbXJwnHmYDyZaaUWc0f7kjnteMs9A\r\n7l1AbTFkYl9KNCvOdxwLAmwTVK/HvtCOaJCk69O4oQG8PWMBvymUaqstfwuK\r\nRfwwfrxGhMh+SydMAU+697fmQZq2gswWWjCMx61GsrCYT6A8jcMe9IPFBy54\r\n2gUjszyWasQZv1cw1iIJviMfV9xYSZlu+mGYrJEJAI7Mye8IvQAzG9j8eFeZ\r\nBuDM5xLQS++P7MnqltolS3Ihs0H1PaeMMX1mxZXubNa8y9AUPZGRTB3GL9Ql\r\nm6t33SaOYorF5ALv4+wSijoPqHwNEaoa6t/ckJPp2jnsOZpCr+eXk6bLHyCI\r\nkg+BbDOM+1OCf5vmM6f7JgF59p5sWmiIB8YqUWsWithWVnMjEDkRCUYclg3D\r\nBtMJxY4+KHWSWSuXcNbrS1Yjt/Lr1xW80E0ge52pA4Lr0gJ6ncSG9QZq27lm\r\nxCuZF/Wd7WeWm0I1MaB+2ImSifGDsVntow/SHyOL9cIIGfWmf5ACuotM9ktY\r\nz6Gqt1RtlOUgYp6dULAG09T5X05yMYaUkqM=\r\n=d8mJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.0-beta-1661275579000_1661276035367_0.38638049750501446"},"_hasShrinkwrap":false},"1.25.1-beta-1661279778000":{"name":"playwright","version":"1.25.1-beta-1661279778000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.1-beta-1661279778000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1c54ead16303aaca06e6831b0956ce30a323320b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.1-beta-1661279778000","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-wm38XlAg38gbmtrCF8jb5ygOH9NTOG5gf53Mai1xtyUIbnyERCdF02H8G1DvPHI/Imsqk9Rlrw4bcAyHsUmq/A==","shasum":"62b967baa8b5034762eec0e20805f86c6350d61e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.1-beta-1661279778000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUQXRMg1PxMssLzywejxR8qoKLOB39aVqgAiVFehYVdAiEA910EXqUqIzsNQEuWupVowKQjSA1utJUe/HHvqE19Mdk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBR7yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOUQ//XbPZi/dngk9o74ZkN6yIZO/csY8//tgR6+/TjCtHkTGPo3Lq\r\nG70odrxdEoTorgihvKQQ688Y/kmCwupKKFofXiPFxY9WiCALbUw/8nImOm1F\r\n9yBKYPlHNZuOSF6YNL+h2L6Wkj1uYehn9ZhqRcZ/zAUXcHtwHxDw3n0kf3SH\r\no1fs/2K1CZrCed7CzMj7UZNM60owCX0GD9HAFtoVx+XWX9kDMSg15pswkdQ8\r\nUlmppsPgJrU+yBCEgMWTsMt0CtcxCM4nAhM/OEFx5RYDzZLZA8ppS/RLYJ6C\r\ne5ILoz5sbiadQzZMpmCkZRi8A0G7wX0r4k9BaOfrowFkWF9PQ3pu+hZ+fJ4S\r\nL7PAH0C2j8pN/6SHDGIS1zrDRGW6ivRF2G1q3v/F2RDoIP49TxhpUYqej5VD\r\nkOQU5QYYrY6IFOtfhLzqdcp52AmL18Z01nBOWsc08vU3TxGNrQ687XR9h5ab\r\n0w7pWeTiuMytbr/OhjaLVCqJ7lpfJzVI6zM3B+NxtQqOs2XtEX+tWdfj4pvf\r\nVaXJp4vGMhGbAFHyI8aGMOxvUAVTRgX5oaaZpVnYckqBSqAED97y3nj+P91U\r\n5eS67l03AjvMhmVOcRDaV+gEmfFF90A/Hv4j3IwCND8Z5VtD3gJjoEEB3awr\r\nT37JUjRA6J8JN4fAxd0nmHj//+Ks1/nb6tg=\r\n=UpMq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.1-beta-1661279778000_1661279986665_0.006390684068208641"},"_hasShrinkwrap":false},"1.25.1":{"name":"playwright","version":"1.25.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.1"},"types":"./index.d.ts","gitHead":"1c54ead16303aaca06e6831b0956ce30a323320b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.1","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-kOlW7mllnQ70ALTwAor73q/FhdH9EEXLUqjdzqioYLcSVC4n4NBfDqeCikGuayFZrLECLkU6Hcbziy/szqTXSA==","shasum":"23fe129ca05568a72ee2a3842baa0a1985d1b345","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.1.tgz","fileCount":9,"unpackedSize":24248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCfzWRyKrxG1WvMeAd9Zm+aqp95V63oEJqVTjGV9B90wIgdaPd9m0+cDsnMqPMUoHBR1z3Sk0NmSDsFzgj9//oIa8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBSRZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmopbw/+MnyIrU/Fo0nSjU/mXj22g7d+try2reqiL3lwPHptqJr3WLAf\r\nWDKkoyAfts2x0VcGIFf3Kj9J2XYicu2cI0uyADJZzTCvJTy6u/29s4vqn9PS\r\nB6wqwOX08Wz6fuF1jFW6wjJBm55Pa56oCqIKKiOdBAlNezGMe1PeP7iOAeNu\r\nXokIcm7ndiN57jbmM/Ewwn95H3gO0DpAf3VZZPaHH8P51EqIczz7WtBSLOUH\r\nwQF3ieVUW4b4HQ6eAZORZYNHCDCUXp74YNgxFs1vr8MUgIcK7qsu2xt0qwVE\r\nPVSv8u2DFaHrEc5ByJ5fJR9Qcvcd1RbvXhOpSGEP/7GoGTdqfNA/H0cEL1vv\r\nerFQjXETYXb+/UB/ZheqaSTB8Fz+O0XY2qrng0xQ72DPGlWjUDbMs/Lw1epu\r\n4UGOJYfIn9TuJpEV0wqwQYpiRDK3A2Y+NUpwUb9ETCMdGt7jQfAaplRGHTBA\r\nliRgVdbku1lPY9nUzzos2N0smutM2FtSMD5piTvOBAiJeP89yOTcZDMWKklH\r\nsF3P78Syq2LHPpuX22oapcyMkpgz8Aoz1hhavl4tJR9VvRsR/beM/Sh3/YuG\r\n99Pw0Y2yZ9TBpM3TlAgV0A8JwAEEssNh6vh9ngT4HKT3sAY4HOt8zNmDhGoH\r\nu0JZL1kBsruJFIISts4y7vXM/pcZIQEIGaQ=\r\n=bPi8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.1_1661281369635_0.10393699995628558"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-24-2022":{"name":"playwright","version":"1.26.0-alpha-aug-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.37-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.37<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e4be1266a92932be32e538bcbb2683dceb4ba9ab","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-24-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-IzFwRw0obSSPrGocKNGILW8Eegl6YIjrDj4yIAUZMiA3RT3axiLbM6+ZG2WH7phtoawrybUW5V6JY9zhBarmOg==","shasum":"670c3c4e5cb003a957e2d7fa10b8709c5d5495c8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-24-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICuv7hadZ+78DnnCugDgbLaVO4ZHT/NmfQy/BD2MpldAAiAHzgkv0rcB93BsHUnuIIoq7YyQO/mUl6jB6whydGFGzw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBXHFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyDBAAklmErPxmg5IPR4kWvAtwRuTqXsiMaRdiLcy+EtYIw+5Lxzv/\r\nXREwLxkJJhpy+rf4hPXYOphtpzNC3UiR1uVIgfe2w6mmyq+cmCX7BnmkqJPH\r\nIIJoljwLr0lVHlCrzY9eorGratghWDufBOX5/sU+1ZWn9d9skXa/fwscdd0L\r\nGMvAnMfTZS15RzGjKHFbSyUdwR1YNiT3QduiFlLm4uF5FfUJCO7UrKycrrqn\r\nUwP4JrJz+FauNj/oh6GH+vpyvwklcJoH0n8er1Wwi9AYDd3KWzzshwyzxYQ0\r\nQPE8Qv2QMwgb4PIS0OHRacTCdz0HPm7kOB9bq0DDKaMTDD6bZYyjcTuoVYB7\r\n1lQr2NzLYbsJWNwEvoxT9ibHRDj402Zqk4UcEgQ5Bp2mwDOYY5PKUyUxZTD5\r\nSkyIkJhEdscUWZhqGUOWjIJEMQFIzkiKpQQHe/448MpZrahC02svtimdcZL6\r\nVCSzYeUL7maRYfAKVOqzjpiCDESHCcwGvu4D2+IPB+647zhYhFnh9Qa8vzW6\r\nh8b/Zu5Enxkt54RiO0rVJqNEfmIOjjQ8HZCUsYbCaOSiklNuCag0unVXTjIe\r\nv0qDdh0Z9GKU/fgIlh+2m+HV8e7WbzdfcQ9nbL9LpejuJVkVlF4PlkrUGdS1\r\nsAD+QFeZnKJN1qrHI2bYsw5NORGI4SIpRnA=\r\n=In9K\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-24-2022_1661301188769_0.9588457356063314"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-25-2022":{"name":"playwright","version":"1.26.0-alpha-aug-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.37-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.37<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2c1723b6f5f925a46414e23f731b0bf98d6c86a1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-25-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-8GQiTdPJBilEYidrXW5QfWd0DjczYnhOy9J0l+wxQwc5ghzNVp3sqYnmlTwwTyzkKMFq6ISjIk21BRTf3KI+7Q==","shasum":"7bd4621eb8b50965f3d8d214f61a4f4b454f6464","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-25-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0W3xoBtmvP+mrv2XfOGOuDVQkFKPfUigq86qODZJ1oQIhAPsKKnq6ZSCQjlGbAi/t5QsfGvfpjppZ5AlGH87Kgz1z"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBsYOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQYQ/9HlqbXhVL3ruYa5x+v3fZ29p19Aic/XNS822rQtqSeSfnBa50\r\ntXtZ7YDtjOLeJzQZrnWLHCHh4wYKGO+g8esXVAD+7hM776MG6LX/qrHGedM9\r\nXnjtldHuCywU4LguMv/s0aURX5eAHB3ZfsHFcKuhFcwiiIAZzL5vVvQNql7I\r\nM/XDjSv4g3LXLzU5dd5iMf1SNzUcL7ZVx/jzFkUgNEkr0XiiDTB1ybXujl8B\r\nirdXwY0cTMfJdW5Fl/mhu8rsKA3KMBShzai18DnKuLlIR6Dw7RivAR2XKury\r\nB5iFBQg2QB6gUdTfyVxTDJCPLkdWuSKrLOqBpZ1jneeRfh4kYs61yt32xsPB\r\n4sOW8VvyLyfqN6u8Vw5LKqTNkqxm6M/so6AQba5zYOwDmdTGphQyJ6mwh6Zt\r\ntPwq825dwSZkGEB+PGOa/5L+2XsyeSgkzw7yWp3K2xV4AbP/d8VemTjYYCzS\r\nCMy+aiNVUhM7xg2moEZIz95/gszCMnAUNt7zI3NxUlKaBVYih/oFquA99BYS\r\nUdLm5/go1W6UhGVLcQL9ROO44xyI/JR+Tg+GPT/hEc6rJWGgu1GMkL/rqH9p\r\n0xtxQmmQcmAAEiS3ylQc2L9cjxljmegYQbnJwIUG8uYxWn9jlvjoonuGkTkZ\r\nUNV7atEZgj2pJkKugL+jgEyhIr0Uewo+2Cg=\r\n=A/Vj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-25-2022_1661388301845_0.6046059718709151"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-26-2022":{"name":"playwright","version":"1.26.0-alpha-aug-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a0f19a4f2d09ffe671a2771d287b35fb0c40ce89","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-26-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-lPozcGOFxtEZD+gXcC9BHf7l8NuvOh1+7rO3F37zRiwKNon+R4X3cMBAoPBTmn96jcu2KCxY6PzduLwLLB3UXA==","shasum":"3f3c773f6de4802c746acddb69289e7d7e91b1b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-26-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn6auajvbMWZe0RxOfGtkKjEymkqA5ElloYABJ7kT8+AIhAN2uyhtODMg22ZaTq9jhmXzC6+WG9db8zERdt0THfLXp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCBRvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8wA//ZW58VdxiYT9NaqoTeDUO7kxcgapm7E6DRUZNzjfcwJT27sWs\r\nvHv+GVnmxrr16NwNY5k3h1/JTrUMYsXcaG101OHs6T8bKcojuVqy+Rjqw3jS\r\njxxw6SyJhNbZOs/CB09wojP/Sx6MfoPmjPWks4b78MDffaZTDDMMJ196POD9\r\nZTT/rzpz2kAWDaxTQh1iWreO2eZGeXxW8YHVe498/92N5fcEp9dohMbT3qu9\r\njZ1BfGqVhPDlgCKB2e7uzVuAMgC0rflXKn29bnyK42OKobJ/qySISlIbpBUl\r\nHI4D/f6wlEKy5Lb8vbw1Kxijk3Tb+zHvy3OM07Bf2rpdTvu84UXxVxwCyV8w\r\nYoyQp4raOzV3S8X8BTxV5g9jpcC5nStfQeuKn54Bysq0OPaz2AVsL0XRaQic\r\nhOCJM66/g1WrVYh6JeZaMbAIazjHJYMhCceKCLu+uM9HSZWFiXX5Y/kRi4EZ\r\nP6dbZ7aWcx4C0IThBDzbvw1lnl7SjXn1142Je8Zp/05JT4NO50DTT2uUY0uh\r\n6gELV7BxFetW/EDrvJ/tT8kobjKdAXbVIPv1tnGnm9s0wz8EQ6Fnex7GaFYf\r\np1yKmbZ7hnfsj6TiNVKxrY9GmR+lDCaRq3oo5S45AtgFUiVqDbUDlXpQirL0\r\nwut89LpZe52voEtFWLU8vDbdH4E3M/2RBk4=\r\n=bIfw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-26-2022_1661473903199_0.29275058226091955"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-27-2022":{"name":"playwright","version":"1.26.0-alpha-aug-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"849da28dc4a021ab6028719c6841d26053622cb2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-27-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-nrqjLlrjFfMPnwZMWE8FwxBWeb4lAuiESNFs5xbnRy9z18LbDHBnQBuOUAyfVpzclAvZSfZqBe6jhvHkXZdkrA==","shasum":"9990c45e6273f0ae67bfedeec25328cc9fa67549","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-27-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqXp/fEH2xpHXE6PwKzeKwc81zFU9k8ow1SOH7KmIT0AIgSIhpoNVF6EDpSLPmo3r8qTOoWB0dThX8jR9xOS8Dlnk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCWU5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1jw//RBD1LPtUI0sjBGre0X9mteZPfkZWxE0iAgWaekSRonnBtd4A\r\nc+7NcYCailTwhXDRF2a7wKwUOThH+sy2uP6x7mwkcpkGyi1OORg/q99v318O\r\nVhLInyT2qOBqWKTul0l6MkeePNbHBtag0WqnUFFquSixYHyPomvUa10g3xMh\r\nS/sh0OLhfBMuph/gkY5TbCAmoQmz5GfhQ8H+QGqSLultVHGHh5ZlFmmlb3Ey\r\n1unRZP1XBCXzxk1EyzdKo2TJrqthhEVOnJi91JotOBR6RgXYwkH4PY2D/Co9\r\nHyKphSe08RPGpYRE7lt/p5j/lHhHSVFBWNx1dJ8Tdw7AXdNLDMKvjHw14Bjn\r\nqimov5+pseAK01kxFk4V7PNw7c/lxqxSQfNoLXhA5JL+/C+qSmCq9WQdSU3Y\r\n4C4C97QdFAe4Bx1TFgURyV2Bv1MwFL00FZH3fSGL2wFCj+lgZcZueomCLXIC\r\nwE5yVqNjw+dUN8Of62c2V5XhOgJ4C7EQBNtsRto7EbsixsRN/TcfotnleYkL\r\n1g7FafpKm8vTLTp9akNH4VzAkoRjTWh8BwTT3CvCt7SRHpqRykgx6HUh5Hcz\r\nef70ZpktKpDjv/K4/RAci3gOqnz1B+XKkOkOmqZvdRz27o7JkZ2lj6Utec0Z\r\nOzcj3BkbTE9b3sWALLnCIhvmJmirNnF/Yk0=\r\n=TXFT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-27-2022_1661560121732_0.8500096731151816"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-28-2022":{"name":"playwright","version":"1.26.0-alpha-aug-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1dcd756996aea2d8b2feb345ca8805866ea9a186","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-28-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-ULfeP8DoLrxNmRMqIFAw8cZymJi4o/TAJeA3X5eewJQTJmMGs6V//l07tdPmvSyyPDYi2Dbugw/8VEsHyNni2g==","shasum":"2cde520863f9856d6a4098452138adc93d538694","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-28-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzW+PB8DP/YXc/i1iCJjixbraQ+IHfQTA159vTJNgnawIhAMxAUzlHYSTy9Dt8qfAPNxPjyZKBlIpjsQILxWnBt/x0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCrfSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVCQ/8DUWMQ2Ezb/LxN6HJgKIsffuGLwdqOqNz9xvq7o16p0yfiKcv\r\nsf3/El49Fi6+Ne+SfOBVzeOubs3sXuIpVzkGAJ0jzyLGHdOQQc9eOI/DwSeW\r\noy1yy0CdE6a//dULsNfVskKgZYpeygSLwV7E5Hl1LxQvD7kY6uDBxLZULD7f\r\nQ0GZAVHe5/4IdxkccwtlZk8sHu9mZ9c1drP3dxj5ukVrRO6HeBcmhi6oXUCm\r\n5TS8wICD+8zlu/8S0Ko413dB23FXnFkcwGj5umqv09MORbGvIKBiiXKwNTUK\r\nO2CtA33ZXQmuIDEx3pLOh3lcFyk1LrvkER1H2moEcekddpSM+OFJ7toXcN38\r\nRc7GPhCZ4ktmtUUixeIH+aDRPyyoCctZPmjzBu1lWXnyTrUm3R8/BXPVtCTk\r\nC/kD92ndEf0YUjjMgxqDJdOZ+j4o8RaLI5HhrtcOgxWeHKxE+P5dF3m43fbd\r\nBwUGwLqrd0PyzPJ3GhG0e8f/7bBbFf9WaW0W7CO4eG66ZV6XTZrOIQbYYmK2\r\nUpgMSfGJLCW/ikHgMJp/6FAX/9mUEmURYryVFwDKHVvR2w6zMFZsZeiLsFb3\r\n+L3pL+iYORapYLxQch78qn5tc3KhCKQnoM6yL7MAdVMa1ZkSrHxpMsnjmDar\r\n5Pu7rVJRjqsfX/xrEYmHoYxSRhQpos2KWqM=\r\n=gSNm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-28-2022_1661646802034_0.6116146024770812"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-29-2022":{"name":"playwright","version":"1.26.0-alpha-aug-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1dcd756996aea2d8b2feb345ca8805866ea9a186","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-29-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-CLyyxlWqGq4fa9iHdHmzli1twQ4Okue0BKvC997/g1FazUZAvCrUgfwXluEMMEaoUG4+MvYP/y2KBIK3bC/LTA==","shasum":"e48c24063346da6d1de5b96b918098fba388d416","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-29-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdGeA2wa20UwyCC7XhKURaws3hdbmBYA6o5yQLwJYp0wIhAO+cvp78vXVyVDSO7nJoILaI+FnwASbOuP3XT4O0oXgK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDAk7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmovyw/8D1ZPR8ZZJz8JhQF/MuZdAc00UvRhK4ce0G8Ypj1BLXglUzgs\r\nmIV6uuUNP+IxxT0t+zxXQK1kRRy6BPGTo1vPLIRfxwTnkC8SB/i3GoMh51+x\r\nPZWjTGqZeruC/AoavWk6LUux9S0pl/JBHduIxPSQc45wGZij9+CACFJOXl6A\r\nx7Y+Qzh/Kgik/bbIMtIhH9QJYgxm6UCf3I96Rqnb/rDM4fReuPxiSYFSavfu\r\nCFvckhEQF5mVrsGSH0rKU/0u1w3qYCf6eoRU4406ZQB7O+AN85NuiQYv436B\r\njtxCeoh1LJx0t1x+VbGbYqpqGwYlsyHuPjCPYBAmV8FKwcrUbb0/ilP/2s6i\r\nv+ru/TM1yUwyz3UyAqPhNamsYitr2VLo1W+Ok5/gCKVEnzv00yQvTp2TCsr4\r\nWuM2RGzP1oyRSBGTVbDiktcDfucQon+FulUh6luQKBO6Y3bIl4Aj2SKhmq5o\r\nsbOG5t21VhpCxCP1wBz8uUzjckNiX31oTfFm4AqizIiV+tKp2bWaY0yyYug5\r\n/QJ5ek9J9tCKG6qTV5ljT15BY/BTMsScwteVwFWf10aAj9dU+HALrE60oSv1\r\n1sKfI6InThMyjp+JQ1zJX7efb1SSkUYvoGhse9dtwCmJxVUUP1c+w5yGB0kn\r\nlTo6iWXz5po4rvia3T4Fkw9zIYXwk7hroS0=\r\n=gDff\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-29-2022_1661733178918_0.4198999105891432"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-30-2022":{"name":"playwright","version":"1.26.0-alpha-aug-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"11dfd31dd9c44ebe888e0929a1800c70507b227b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-30-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-Lij2xsxVCgb3MY3rvTzyMxGVq9Acbu3/e0rNz25rarAQVxbwbuHjuklV9NSU94EAEZct5RZQODAH3OrOqTIFZA==","shasum":"97159f11de56ca8cefca545865ba4ee9d92fdca5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-30-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFXIdggMmLS6oFeEeyoDAUuFaql1xhwzrdStAX4+NG8IAiAmaCpBsrYdHkq/QLv4VsVfjB7Bolv1gmYv0DkwUHM0JQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDVvRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofUA/+NwlHfbFLIl+iLDleJXCyBDqI1OiPZ/M6WeGukydURfIFo2BN\r\naqP/Ww7dNooOrbQ4Z0O2gIVPiqbNeDJdAi7HmcN5HrhVLLnenTSOf+g6sXG/\r\nAah3qceF0knukZE3zmliekx4XTOQZH8goWrBy8hKQhnBKdvgccEaEbahFRmH\r\nVnBe2faJFV8WtLbk0VJbRrXDYUijIkOBFtty9cKskTVhDoRACVh8NuD1w/dT\r\nplO6tXfy9cHT0QPwFWYp5HhbFQG3ezYbM0sHNC3F2D6tEdoMvSLLr8d8k99z\r\n5CxHQuIUcpyLzZ2D8OZppd56xeg6Mu6t1xZ/fBmnvQjQJijjkovQjq81seRY\r\ndN+tynj4tel1/cwFMlC3UNCruIUlIwtp4Nz3lEQzaGcjUmcc3/iJQqnz2m+D\r\n4qsMTNDncP4Pbi9O/lnS/JlZW64SjVPdBA3/6e6CUNjtCxS0HFMT6bbsEfAc\r\nMTijEUn2hYNp7it6DYBFJY9rD97vnl0AeUj5JreI8xdw3SMKUOkJmaARAj5M\r\nzzqPQNmVwJ/xMv39Ex8VZeL+hhyAtiSBfPWjzsmAjAO61xD95RKx+YPrEFGh\r\nsFS3vNjR6TVGaVHP0H/yjXhEKrl/R56DiWsbwDyiAP4+/rkjoakU5YlIc9Z3\r\nd6xYmD30JQ++P3meHxlFE+mxXUEgkW2EBSw=\r\n=M7t3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-30-2022_1661819857247_0.2614098171119268"},"_hasShrinkwrap":false},"1.26.0-alpha-aug-31-2022":{"name":"playwright","version":"1.26.0-alpha-aug-31-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-aug-31-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"990167124f0fef6e24c5e8d15f79cf37e93b426f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-aug-31-2022","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-nBRf8EJjDCXrLIa2rfSXB41HYuqjt6MKbpxXpCbsbjwu4BOkPjJH4GwY45P5CxVbaxIakjzLL9vL6x/KhgsJFw==","shasum":"0ee0bb0b86060e6a5e28778372001cb8ad54f2b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-aug-31-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE9qANmtCUZWUJqwuHZG3cOC407FS1MfYH6fE6zg+0/XAiA7hLpxb5zlmsGRs1dMWiBl5t4vtqmpOBZe8Pv3nNq1RQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDq5IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMsA/+N/5MGGm6wzJ2efxAKkpxN3HK0UQyu2sntXxs8zWHVzJjwxPs\r\n0krjfxqLek3euBNpC8z/gAH5TSczhtjwBSbqGnQ6YNMD5lyxUB3fLCeRBGgg\r\nWwnaR4kiEfpyne4Msfsi8E/ukw5O0xoSnMbowAug+SOpKhCyql83GPisHMK2\r\nhKh0PmOAllTe0ty7gB1dUAiMMpW06/b8OYrQtFZ9heNSf2NZZW/d27VR1mGk\r\nEl7sCJ6ovJS+kF9KwefrEZ44jEPNHjXpLKEpZjRaZBxC+cA/1kYgzYGqvw+I\r\nE0aIH2Er/E8tic4peje7YmiNixM6qIpCXrP3mK5iBQVs4IrnP49Lx1FknKlh\r\n2DPsTOUcQjwp++EY/MLWlptc0WjFHQVi2nPWyAiGBPXnPrrtGfkJQMoqgHi4\r\nQ9zgpkXlsrAybcfadbe8p0YpXlpAtCdnW26zq/UEMDS2LtFnTv/1WWJ1aK3r\r\npQuTsxKFuU4L95BLSHB1wfe8wGxuT7CkKFyhxCPLBeP98o5bUcYgIGNMalw9\r\ntE5xE5AYkQE7o6SfT72qGQS5zjh/Pu2vTIHX8xtpMaODCrb1VruNjRzrU/jU\r\nJUKG1772EGjQto1SldkNNVEc3X2CVTMmHWgX2M4j/9bNxnzidt1IydKwJidJ\r\n2PLC9Qf6r455aRnRsXhWa1Z7exnB3D7hNco=\r\n=l8jW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-aug-31-2022_1661906504630_0.6260476358973099"},"_hasShrinkwrap":false},"1.26.0-alpha-1661907180000":{"name":"playwright","version":"1.26.0-alpha-1661907180000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-1661907180000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f30ac1d67827fbcf3f8be7a851ef81b761842c52","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-1661907180000","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-kw26xwTKoxKNgaeDypHFkOoZ0DElltNooLsJIWzrhQzerAzZ58DTdky064gsZiMVEpZkMq8PxxSqibLwewq7lw==","shasum":"96776d755ccb9be64921d335ee4340eb773f21ab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-1661907180000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRQXgQC4dOlQVqCtFwUPIc2gk7Wxo4YJpEGK5efgPmwAiEA+WHSKzyvrEipQR5Vh//TBcoQOc5m5I07m6PLL8logsU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDrGJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRfw/9EOs5+Ufwbq7oa4L9gfhpqIerVwVWHTKrFQkiQPe/iT7dWjX3\r\n6B3g26Ho7sgFsNijraoyGoyVv5LCLjAKUw5jRdUmtQg53KE6foPgW6V5QrnL\r\nedfg4HPvwZFnDfK5HUWiFMgv/GwNQqe8FB5WmPVeOyqEA4+4ZiEBXy7IeDVG\r\nXzzdBM8ydP56ES8ISo7sdv3byukNuZKejAjvljrcq+LiWAhZTifUpWQUfQYw\r\nL3y9YU5yoNDn7h4NFdamufg/8UsDl1BIoJuFgl2zpbKwTvW8XkJTGsN6rqZp\r\nlAAqbJ8IlAHoFI5ZMEsJLYCMJQ5jk04i3Thr05S35S3skbtd7zESelVB5hO2\r\nPnkKbQkbYydKcR61ezyu8+ufdTj+5imbr/yKiC4yVoJ7awLmiVWI72c+s+mv\r\n7C1DUgl5YdHPDCK45QhDBJwY8eKb/KGFhQuSpEF2OhNLwu2Y5/HNVEGqQt2v\r\n8ZH0LBinNW1Y7HH/bT1MCFnIKeVRG6zikVW0qOG+zUYCli+jTMQLeSzc5QxI\r\noel5iwMNkI5JqLFooKqPty3eqJ4ujNhLLeyrzjbQPxYcREB7Z4hjDkCt/N9m\r\nSmGLzJHCGAyp8nOZfNRZ2BMy/2YDvhmDTpqmOFUaE9CvCRrNv2CF0Ex78pq9\r\n5+/+wi0NbN4dkIz5Cn5+SSLK33CW3sfLExs=\r\n=TAb9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-1661907180000_1661907337315_0.726720186791179"},"_hasShrinkwrap":false},"1.25.1-beta-1661977117000":{"name":"playwright","version":"1.25.1-beta-1661977117000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.1-beta-1661977117000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"df6fbcb8dc05ff1a03ce9ea5f75c77462a63bb4a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.1-beta-1661977117000","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-xZnvTiXROc3K+LTYrKUnrfUXvRR/OBIrDRpcRKiy635NtPR/lrPRhBale6+Lvn4WpCoxMFLkznYsCyLgvcTNCw==","shasum":"299e1e9f095c71e54e6d6352648524ab3f734e4f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.1-beta-1661977117000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoPcTzty0dnzLI+8iKuLS5PNsrdDLCMD70a/mz7xgt1AIgNN0aQU6R8KWXuINARTinITzYcHuQZlPsCeLAxuC3Y0U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjD8LwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKSQ/8DrsIONsHIPO5ibDnE51odZZleqpyDQyOy+lGiiQsRQ85ah0M\r\nXog1TlUhi4IvG1A5zgGxlMVVp/MgUUSJ58d+i/FfGjP2CEL4vcRl7jAeSH6Q\r\noY2nIQC9xp/r8CefBvnwO2gqilZf7trbUaYp79+x2AWGOwEU/0lzwBwPZ/7X\r\n3GFcZKOy3HJha+ZriVr88NzTk/DfnNltyZ2nqoNYz85S1qRR2dSTBY+QMHpi\r\nfWBHb5ESucJkJSWXRyKWn/qqjHhM1lkWkZdq4gvdkMMBW+1p8MwUkzfZIRjD\r\n6HeX/LtI//ONqPMpl3O3AUZiCW1/sgpua0uqrKwO5nXUp2a6BEH3h6GbLR/Z\r\nzNohfmpK0xiG7VhctTrFGlHdMA1ejRSEnNRDbPIM1QINL7Z0Lmn9wiqjU+bQ\r\n5ki1OQWpan1Qyf7KdAZplJR3/5Y9MqRe1jO4tlBU0RdbMwhDdGx9kv8dY8VI\r\nxD98naWAikOUEb/5z+z7cPq6m+YrhNOwcsTHpXBzQL2jVfiNY+a/11wi6EyH\r\nChz4vp5xIuGPaeKmEcrPbgz5gnaT3kNsRAv8opTfg95obpYbc846/6OmUKhF\r\nz/LgyLhffuLithJga/HV9jc/T022UmX/jHS6npzqkgxrb9NznQ6A0yHGSCHZ\r\nyNgAaVeWs7od8+aqJPKbg0kSrgJPosSnh58=\r\n=Sx9+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.1-beta-1661977117000_1661977328065_0.896999283008032"},"_hasShrinkwrap":false},"1.25.1-beta-1661979417000":{"name":"playwright","version":"1.25.1-beta-1661979417000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.1-beta-1661979417000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"487de33e4be97a10b111ae748dc9dd7b253b2e20","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.1-beta-1661979417000","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-dp07/UWkfYs8ZVoiq5pyCcxBgKK6uJmVabXQrsceCgzaSALPPAU1pS4KiyBLGC6m8odEP9umzAUeQjJ9hgX5YQ==","shasum":"637614de6e243237c2da00b641f653bc3cbd782c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.1-beta-1661979417000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtW1J5QxfU1k7ESP2ppKWwgAyWdrNHEXXc85cNgy2bagIhAPukTHiuXdx/5SB44nK9WORe4iLFktnh050yg2cDM5CJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjD8ydACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5PA/+JnMuRTR0+0Ai///krSwlXfamYRjNFbJcS7z/jE4JpnyzFk1x\r\nWeixXec+WoAK69zIljxrAvui5XN2Hvv3Zkwx78pjt6cIAFrAsstPcQUqMCdG\r\nHpTt8C94CSG+5FkIfwMh9h+ZSlEclev4rqPh/RlduBTw+b9exfphWg3x664k\r\ntL9T+ZtXSanULZq/ENPzYKv2LompOghBmeUZryR6W1EqqoI3oT7h6/nP/fJp\r\nQxl7Okm+eKDhc01oF4fySCW1gV/vuS29iapaksccRawClnZR8HLjvGEpu4tJ\r\n0UvWIXj0AzpkMoEaZf7BeusUU6TINgN2wKIADMCA7lgukaqtDw1h+9kb6Nfe\r\nSW34TAxvdgAhghzzI+TKDGO/BGtyFOhpiDAzOJCs/GY2WC2A+R/hiDHt3mtY\r\nl4Q/cdUSVwl982rJyz00WVF0LOLj7TjCsCEUn4m006lcfugoueHMWk7O/Alx\r\nhQlG1dBLQa2nGg7UkMLsDxLLKA+5ff/D1f+tG2MljkLWwkJlTaaiJAKtIE7y\r\nHYizMWdSRep//7HQAfkuEQTIJ5vOQx6aUO2bKpRAdZ4/t+PxBkZCSnLQ0ELM\r\n66+Th9AyErLqTKbCJBRy77RsHC7Cp1nuHDT4fxTfPzErLHWhzheg1wYaLSlQ\r\n4U+is7niqTP39otM71KxZerMplOdVmZLPjE=\r\n=Tx8h\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.1-beta-1661979417000_1661979805431_0.12525837922563587"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-1-2022":{"name":"playwright","version":"1.26.0-alpha-sep-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"74d52138ffd10df4b254962aea2a4962b84cced7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-1-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.0","dist":{"integrity":"sha512-Fuzhi8RrJ8NJHlYwttX99s8bjjNVB7zOo0x1s7WnsGYRzeH0IiYARzDFGnVOCwlkvQVChkCS/BaVAKWuxRLZlg==","shasum":"245ab93fec973f846c9d470810b3db20c6190497","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-1-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnUvT7iUcN9KdGpuTH6/DBrCNSR9UYlbRv4GQkrANIHAiBblci2Ft+pQhV8+/8oMrdVcihlbMNo6qFe6nQ82GIO+A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjD/z2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoK7Q/9Gb7oVA2aQQ+M85hNDtSov6NtAsVHHy156Q8xSJhSqagvqOkz\r\nBHIdsPvB98iPyb54Iy2CQQxYXvCpSDMQxKZhbX251jNAT2O3I54yVRBIwWJM\r\nnrsQJEyFIEFSMxTz7o2yMCbv3oHgngY6veOZ9sUvv68ZCwvaBPUYCDSTb9f9\r\nU/3M0xXtnKhdYiF+SzZlMOZLbDQwxdxArohREr317GbkBPPWWOqdbOG8cjM0\r\nQRZYuvWNvn428l2bipGeGENKyGbCOk/hJi1BWlSt1XdCvAWVTAveMdTgixo5\r\nQcGZF7yPerSMlMkPTtfm3jJQbYMZZJT5ANAK0Uhfd0UKuCMMGfveJ/fnSP/J\r\nk+iXZAv3hEp0BfrcSDDP1epqST2TS18lNsd34Kqjzo6IXfxPM9hF0QBRip8R\r\nIaM0xe7FlRtZQznZSv15JwNzLieI0pdo/mb5XsHXEnUvYqTEedR3/oY6qbpJ\r\nw//MECeUUqJkrk/VtlmjWWqVlapPiAM6hPhlW/h71cwC3ZCn7nn5AE7SDlg+\r\nFstMw8kuSx5yv1DvdAI9GMdhxagjDo49ekuqkylrQcQxg6ZQWuLLoqAfeKW3\r\neyePnedo8v31f8Z6dltgCvpWvxKGYEnPcnG6JUuPygVlEBRJj7Y8af9pvpZD\r\nCk9BucGAYf78RL9yAHfZF0yZQYEOPFiDyKI=\r\n=QpJP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-1-2022_1661992182080_0.9921996063429543"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-2-2022":{"name":"playwright","version":"1.26.0-alpha-sep-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1dc05bd4c60209542d35624d5f39b7a2a44cce3e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-2-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-Wz+4jrcfzvA/Mq0qiBB2Mu4Lk8ou8eyKs6TFSdFoMwGT50v1VHyfFmkbSwNbBVSG4dUNS11i8lVheAkreoHnvg==","shasum":"b9b45ca6012b6b2d9806763a43a6cc5d81bb65ac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-2-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3OXVSm03bvHzOWpUZy+DMGR+6w3Ih4T9s/kSsm1JCRAIgehOFHwtZA5rghFRrwCAuADz1iTgy3alOhNXbAYez7aw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEU6kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmroURAAn8raX9gjuS4vzzqAmCkBlfNOGdCY6mFNWI+TV3eIHWGNo+ph\r\nCSL32MpIfg1bayFh2UqDNxNY+ufI3agoBW6RGBeqCbzjLkXhIpXKL4vJqjbP\r\nDZG/e1XuDXSF5IDGA0O++hShXgGw2SEnnBAMPcImgNVsA1lDiZ1d0XCXMX1X\r\nHTu13xnmT8X8sELEM+LdmSqssSNLDVM3+0jSwg+MtKzchto/7uRlXSm5KryT\r\nt/QPyq77a0W4/81RfVlNkcQj7ZA1cI7cIUm4pMsK9c5j9vjppS/Ds25AvpM+\r\n3LWxCuaswjMW/+MxKLTnZNRgZmZSQFcO/CU2MXhBB853lB+9CJjAZJoluUcA\r\nPDiIFrYLqRTJICidJxYAUfTyvAE/51g7B9rCzjxMIzfQGi9LCIPU6ngPqDF6\r\n0rmTiOA/GON9bIjsfABdXGtaN9L+52GUhTMil2gZNj6tOQaMaqV5v5frGOMr\r\nrxcQAE1N8q2Bnb0IYhm1Kqd52OQulo0XlS47t3MTm8k5+wb1UV2/kzeTJp9O\r\nMKTwImqoH7tw/ui7YO3kdInoCb7+JBa79/PsWTjqD5facKj7Mm7yZa/FLuAY\r\n59+j5tDUiDJpm80AJV1ieeZJdWpxlJhe0NqoaSu9hWA6ielOK9gwAxfECIph\r\nykXHqo8dOoxCKGV6AYKauXIQ33D9vC590pk=\r\n=Uxhe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-2-2022_1662078627870_0.58174577083391"},"_hasShrinkwrap":false},"1.25.1-beta-1662161757000":{"name":"playwright","version":"1.25.1-beta-1662161757000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.1-beta-1662161757000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a37f18c962402503b7e04b9f74f059bda86c0a43","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.1-beta-1662161757000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-Qd81LCEp4ipB2XO2F2qbfjxSHoFl7/AC9DsmDRqJg2vLqYM1bOvNXv1R6GHjUOqO3WLRHAS+WeT7dT4osWF/fg==","shasum":"0956986d2b4400b270bf5cce3ac56123e2eaada6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.1-beta-1662161757000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoOHc0qYDwcFc5N/ALPX4weUW83eckMvCos9bZQFH06QIgLGPgq8a6OFBKHevW094hNJ5nS/6C2KHoBZ+jbjknuDI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEpP6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+vA/+J81ldIp0C1wGdA2GSGQC4MpIxJnQnnfUV/MJ/k0ip62m0PRR\r\nH3J8miUpLtYOpEZ8SsfQJ0heB8OCo+9wV2QKXFv1AaXE6ybYdMW/Ixfjrd8f\r\n+6lGTSpU/lVAVa4281gkB8aq1F3fI2HT+rIJxIhz2pigoYNRWhYOAFQk/Cak\r\ndHALvYQtZdN+st6oKSGY6b/h+a8HmJDrmGID+LfrWwEF+Nl5m6V98PsdcIKz\r\ntgGm1e9TPiFrpAsUmta9gR4NUmuRvUU/Vk72cJwCwkQUiXdHMxNsaaZ8Eipp\r\nZCutI0vBnLIwS9iSnAN6rhv0lbrurBuL5MTD9Ne7mt3KuqhrlxikiwXgne9M\r\nq9LCCKSWpPnlAmWTyUrP1aqwHMKwIOZ9vNzkwHLi9EzqhFlVekRZY64G2kNQ\r\nPFjD/BiUg+lPxsotRXwvCuaRQ1Vs5byUmtedDq80+YuPxBBDWnk2AEFh/bTH\r\nQKwGaxHpAjndVrCRXis6sFJesJS9Vrt38IerX7ul0Zhf1SQ8U3q/I6cHOcy0\r\nS5M+i4+sPS1K+sFfld2oqXafu2OtV0lZVDhVAA9xQWIUVF+fnVqEy40XYUOU\r\n7yQ8BN4RbAfcA6z/XOicSHWadsCwI02nnNC1XVE8PT3sAzooS9gpHd3HwHHJ\r\ndd5wlLF9Md7jo041lss7SL/jxvDc6FfGKAU=\r\n=rpE2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.1-beta-1662161757000_1662161913794_0.7086435898976413"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-3-2022":{"name":"playwright","version":"1.26.0-alpha-sep-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1dc2a33896cacb6231e8d25788c8bcda7c11023c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-3-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-UHDD2K33oZGJJGoujtyHld8yMaAXHbmvhgmge9Kw/uvz1QpiuIyCdfdsNiESKhKCmcHBZnNl+PU8jrVxhn3h3Q==","shasum":"8a761363f8761cb501d2bc16a5e28425de3494a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-3-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBHUey31ivFdafrN+3JkBbRtfHqA+4rJ943uHJLwPSOrAiEAoqgID//SCSEcZbcDqg5oTFpmgq4RZU+J2QKklaoNE3o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEp+nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5PxAAjL38CSh76Yv/cE78/m77biEvZoJhNmNPGvmOCVdU6Ulf9fB2\r\ncm+YAR6Bnyo6s2TRU3ddIqYhL0T7kZcdljpkayv5l4T0iuw1PH66NpeHSQKW\r\n7gEWyeIBaF2iC22uqxa1AFN5+Ul6mGv6t3zMQfAxbhtUsAt3N0TFKGjaj0Bs\r\nmVu9Ir7TZ7vM7Q1d5VvhPFzsQRsQlH39pWwRsZpZ4pgE9XAS1aHJQBxj2VDD\r\n7c63sSWv833jCMZRbotmWgFE/vMKvjR2oySqK7jtu6PdPortJ8SncU22mgF+\r\n5CEgIHNUn7Iqa60TGNtGIlLa6+GAr32TZj3uCHfQ53U+yVDQ7ErN/V8jjlp1\r\ndnmbeT7C+0WxFVfLAADKx5EsPmLf5IeaLijUEsxfG+5NdccZ8cNCUgPZwkIv\r\nk4oANo82OYG3CYxmVobBs7ExblDvZ6MT6rQou1zlzlZASbR1WvQokpJfdY44\r\n1GCtCSokyLybFTrCU4HsiYTcYJ0GZWH/IPaK17slH5TO4KKpSGuX51LgAn8t\r\n0l/WBEwwETsgHlbnFcHI44V5F6G55mEj3wrpYOQP5s3jO9RxWtOcZd35sqoQ\r\nQwlSQnSf08uduTWikGrfstwlJ+WpW2HzH4Bt1bkjyxtlNaYRYuneqel/OncY\r\ngBzLhcvtTFiRcuQMOe2dXD//v9TzbEvbAcI=\r\n=FpvZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-3-2022_1662164903594_0.14998973258240444"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-4-2022":{"name":"playwright","version":"1.26.0-alpha-sep-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c58bfd0552da433cf69cc3ed8eadd1041e75a364","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-4-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-kQwRVyhuERhW1I1yUWwhDftxC3BnIf3AgMRDOPxFWpb+7lQxWj320mnO24RFjDeleBFctDQ1MZNIgGQmcDLmrA==","shasum":"8159a1c694ab1a6cabaee7d14cbf7e274f3dedb5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-4-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSMV+Rtt5EiEGwdWUqTpswISF+PBCkazIordo4inK9igIgXgJI3VmSy3idgnn5a6BKkKGtXDaEBOdOHsldRTF9gic="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjE/JKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAOg/8DsWgHcEe0HKHDPtWK8JQrSjn3zjc55AlzQ52pBnHVPgXsX55\r\nDjS7T6teTQZuuSlq9KAXCOjkhyeXm+xcbt4/p2oqSu/9ZeM9pq2T3VeKoZC/\r\nKf8ZFQ1vZR/GImL6g0ubwTXaQsh4HJxlA3Lfq2qAeFgpuqI7yufB1nwcDc10\r\nyE/aiORCHJUH2nSP/E18hmZolKxsRP/UGGNyNjMYTKoGT/EVt/1HV4463V0P\r\ns3tZK2R4f6j1mhSFZASdQFWss7GQs6K1qnPj4A+j4F/0clxOFE5lDHTFFDZ9\r\nbnMco05oI9gE1iGLFpTuF1KtBxfprBqnDOpecBzr9zqJkUuL5S5JBl6OLciG\r\nnbhzmcXK2Q6O2iRssQacRnGeQT+mjfVofp527v3ylpOpUtq7kC1L8PfvA5XM\r\nzT4T5Y+5iYkhLh30F5EFtMmjZ3vuU33rAt7zWOQt+q3lYw87RNw1Bh9O0moS\r\nxIOGKdmO3ZYVtfEhO9AKDLhODMn3JHEheSqIFjoLJ8hH1AEMZEjdAstr7Atx\r\nK5mKzDHYLSHp7o2mQnIcyWABhFIJLbosS9TNKz/MpXFIo8nEemlckv4QE/7P\r\npbdR7uCItlyNJh5TACSywTscJ+PVGc9RUxd9TXyPmYim343tj0O3zGtn4RBa\r\nTQT0m0x/h9oCKMwIsk/w0KIg3JWpLJCf9Og=\r\n=Lywq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-4-2022_1662251593991_0.1449260418953755"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-5-2022":{"name":"playwright","version":"1.26.0-alpha-sep-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"01d83f1d5e81782aac17d070d4c399a83e17ef20","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-5-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-sp/4j1o7Z3+5JPL+rAYZ5mCM6wqTfJ8f/nynJcnRrr/FLRI2CTQI30NPRguhrEwnF0hmPTbv/uCvEo1rnONzHA==","shasum":"453dbbfde2b89931ad1fad0c26fcab15d033e7f6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-5-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjotnRpj7nT3MxlUuxlmczOHiu4AF03CvbyJ7EWNC3TAiEAoJSUXAM5tQVD5byTX9yCjULL68Ys+mGXNt2MMKNAKw4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFUS4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFEA//Xlvuo5xuZGbxcKLjnlLEJ6OAOOPEvNtVxDVL5/0RCv7TY8mE\r\nhWqAF5eN/oPraL2rXbA4i8IGDoEF7ZXnKOjviFmm4Mi1EdeTkw6xZnZz5aBj\r\nw1Wmy+loiZ+fQqLBw8ulZOwPL0QKdBabc4rFRw6SbIALsauPUXe24/utXqdT\r\nTqiEH7KhmZmI+Xj2lAzYs7S18CsHgqYrzXvTgYSz5LclKDPjPGrRlKPImwNB\r\nIwB08WgXvpQMg7sxsqlCJDBlu0WuULxvMNIdvKnLUdIMC1MbCkRnHID6eUS7\r\nZw3HcYfXyA3iKo86zObmExYDeKrcx2oicFzONPCqqzXwCdJG99pYRHZSOFMA\r\nNM2i5KzeXqIlf1zvhPRtmg7tDFOsp55+8xg7Oeg/74/2hlLku7Bc7DxXHocq\r\nU1kP/WmLo3Rw9iQ0O6kI8M4k93VeFfA8fnd3I95W2rZd+EQaBkUYkK1QrVHt\r\nDo6wikD5iMQe8RrV/kr0YIbiv6GEhvbbVjpg6JtjK4T69OLCWFkm9BS6QtPm\r\nNnzWuobWVYwXrDGn7/25zxIIWSVGmG+yhRaog0taZB+K3ZlVNsNHU/4r1ByA\r\nWzTVKhhf3OA8sFfnIoNqx90/nnuKyb9rcmKBjb/tqAMByBQC4mWlxqlC6mAX\r\nlfzVYNC0RbGKeV9HS+WM1UxGkI8Aw6pUYb4=\r\n=kN+2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-5-2022_1662338232737_0.18736272004507581"},"_hasShrinkwrap":false},"1.26.0-alpha-1662365984000":{"name":"playwright","version":"1.26.0-alpha-1662365984000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-1662365984000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f4b90e5cc831e9a41f6ff67a2a4b478705267c49","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-1662365984000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-SmltB4evHTeOlFkrLX34OCAARUc+BzGw0LV3vXgZXmHDwccc+H+YjhPv/CziwOp4OZalwEuWfDFTzbr7hgFkWg==","shasum":"72370854af67603ffc19b62277922b02812ceb98","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-1662365984000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDSvCToJgqufWmkjeX0UST3X8fyBOxCNXGOQc3IXfwVwIgUi2rL9diADjn5fxKYkQ8LRZWW7bcRbpHiLkVfoyBMkc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFbO0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpS2Q/9F5yeQYgwfx6RoVcrwSkWk99A3tpMBGNxuxdt0xfEOEI01Epz\r\nPhOZRx6uQVnZR24oNWzdgGa8J7A3N3hCCBD+my45uYk/vVsqTMhVYqD1H4Tc\r\nZwYAsIyFX1MmGyT7v3RZTsiIHRS5+K07YaPnkEqewqLw748F7/hn/vAv2ouG\r\njv7k0gzB7D6DPQAJa/lz16OSGMGSyqZ9cQO9n5M4HDS2N/gm13gM/ZYEaizV\r\n1Lop6rnui9+SqHfsRlNSLeC0biiJlOqlnXlNCcbUBQvikV5GOgaBb4f6dq9N\r\n3ZhY/h2YIUoefJHDOb8/M5ZnKrYcRZuxp/P3v50tgbio2d74rygGVZ9Z8ywN\r\nWFrwZ9vJMJQ200D2Bao2we0CRZTueCQ99W6cN30CqJLUwoYY1dQBsqRPM/kS\r\nEoPrlRT6cUrV+VSoR4rvJ9v6KS7npXHy50kIRdgAoAjk2zp7tyHllTzJcIoq\r\nw7IanTtS3RHGYOWgDPzGndMKLSsEpHn5VFozEjbmkajo1eQuejiLlWd+jarA\r\nSI0rChuAwVaNB1hqg/FMDXcqjx4wmHbMHuLYML7+iOCpGJ7uHYUw1wrE7XNZ\r\nMJ5vrjEJ8klNJoZ5mBgoSVDdxw1hiAWLy+3wHBWIMHjvhMr7nu0SThU9qLiP\r\nXWqoK3qtfm04cNmXALcM3iSr1rEEsX/HvNA=\r\n=qnOg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-1662365984000_1662366644053_0.822736710901659"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-6-2022":{"name":"playwright","version":"1.26.0-alpha-sep-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"85698f51c730b38f0c47cbf7cfeb53f5bdba9eb2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-6-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-3MOyHhCj3cj1KHz/94fd3sKAPaZtakET+W5TnVQ1yvH2Lxs1L+w51lD1fDG3hhb7TF5OEypz7oOk5H+1xyDRuA==","shasum":"09fa9d22b5fe0e0a522368f78b790478dd8cfc86","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-6-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAgJ6lSAvAuxNWgBz3e9t/OeuRanYMamsh0cTOzVkF2NAiBZdAcC4EMUS45orfCEZAqy3Sd6s49v+4Cy+38dziCwcA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFpU5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7FxAAjaGLmGrQHsGqgkYXMbi+HQarULJWPc/f7o1ZqMMZmNwut5OG\r\niz2XKXpccWCGBKDyUsfb6C5p0SWdHaf+NiZbmYwZOy7QMGOdCX2+I+0qlxV/\r\n9trlmVY+q1ZBQ+1zaKSaXr/7XK3AB77txEEQkwmVpkvTHFHLwKC3b40j05wE\r\nSxSbmDQV1ZAlb8fWkUs09KOZjiFFvA7V53pYIhNtUJZLZf26Njz+5e37gjIs\r\nPg9kJLeT7M1Xm+/Zqfy63Edi6PMsodC78vrpUNexni02GNBm79485gINUFnE\r\nS6sAOnsZ3RwkLJ3Ux3aE5/gYUeoaLRW3iim9Yg12V8vDOrb6JbLO8o5yicNN\r\nIf+omWGBs40rdJ4czJnPA9ED7mmeD0EsLbS3UlulxXmle2GSYq5emfahzb3/\r\nxrzDo99LvW8LoPXfhWz5ub7KBMKyMxnC42zNkk8fBevvD0R6ewilrLCN1q2D\r\nwP2+48J5ZAKTtEWvGo03N0Pf7y6FPDKR971HbAQYlzC8fq50E94H9WB3AwEE\r\nKJ5Ri87/XTAMhz8RmzlcIdDF8clzTToNXr5qaE/hiVbiI2u2w0FDB9v/9TdO\r\ntYws/ATGp+EmyI8A2+8kzfjhg9QkqtvVIDDBLDTPiVqjnEXS8AYsffDdDvb7\r\nGvc5eOo1XsXIFx4ou+aG8m4Jn8yM7/pr9RA=\r\n=tlZ2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-6-2022_1662424377356_0.6499032691719435"},"_hasShrinkwrap":false},"1.25.1-beta-1662493798000":{"name":"playwright","version":"1.25.1-beta-1662493798000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.1-beta-1662493798000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"35d1aff7ca3b9ec2d26fa987443a48e69d067531","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.1-beta-1662493798000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-ozoFDAGz9Oi5fLEdGA33TKu9h2nAApody9S2VqkyH4CWiJBmj0vcjbQUHRZo7qFJjfusv6ilF7G7/qtfHSsE2Q==","shasum":"eacb732aa23d430a93cdf267f398781148909d81","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.1-beta-1662493798000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0XGILZJRJCpwetNa1RCiKEWKsCMGZ4i+yEC0BSY7LowIhAMB1z0XOSvf3zj7jam733HIPxvxRucrnnz5/QMMuPx9N"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF6hjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrf/w//a9xxJaL5wEnrmZU7EGZnFDxDCPbHAEktaOPgkGPUiNggoDYD\r\ndIEXlRlH0zwg7cACGhZTeJcRncYrArX04qevmqUO4t30wxC/rnWEmJgPLp40\r\nNr/A6AzHTRx5ZujaYgmvUcA9uCXknrVG4/ZSir3KkyPJUQs4x5/4qatwTjmd\r\nn0dJuxgP46Yxl0s2ag1RWhG+6KEFSDHplljldC3x0ITpjtaQfh7gv20bdUpc\r\n7nvsLLZ3etlaLUUETv7XtqxKa0GumHLr6I9JdWsTkO7R+FIu9zTOMSYptT0l\r\n0UM6D7FcoPWFliCODGmmM5PiPzRa/xDFDwejy8MRilIIm/8oX6U1EdbjLCXh\r\ny2cx9EFO8PAEO9LpXKaLWLWY7z2s9reQU613l2WkA4Go3ecv6yD1U2pCo1KW\r\nSZuLzdXZlh4PN3yatonVJ2OwhP440QRmPriSJm4J3u78FWi08ajTykAKMglr\r\n3IgXEmM052OCprN7yyRvwlsqqKu05Zy7wU3lQcpCqHhTQtFrsaqVGijlUoYv\r\n7b13tSE72dsDiNL0GPSmasetkVAmVwmLXvNULjmqJM419GdDfYBEvDlG2nPC\r\nzF6X2B14nRH7TwHDT5gldzzVU5RBXhseKLTuHVpQ5o333MVmzSXwD6piykHg\r\nCHeUO1ASWU3hWSTfFXjDuxeYDwalX8rrdSI=\r\n=j6D/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.1-beta-1662493798000_1662494819224_0.0018765258075086333"},"_hasShrinkwrap":false},"1.25.1-beta-1662499185000":{"name":"playwright","version":"1.25.1-beta-1662499185000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.1-beta-1662499185000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"53320f3b52e5718a2545eead5aefc1412d9c5233","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.1-beta-1662499185000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-hHQWIxq3vDa2jXcGeenMeegwBikfM4wCjnB4LRumyHS9PhuCKW0X9Q93pchwIUd7iCnaIFDpYLtPq0gdAUUCvA==","shasum":"333452e1054c3157f4c76cfe36d3e586db53d0da","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.1-beta-1662499185000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHxb/Kf3WAsHVh3twsljOuJkREeKAYmVvtR88xKmh52DAiEAj9Mp6D19oXJm4UPvR1r24kzzfhUDW9toisYIKiTa3o8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF7rAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofJA/+N+6sOl/QMzwJ3KdqoWFl5J0i8Ok+KKRH9/vbhN2SBkC94ril\r\natyS7hK6L9KrLxrNaq7YTIzaIHGTyg23MuInmxnxipVsoL2W5lQYiv8i4efT\r\nlmEIMV300DnMcUvpVnLYzPbPx+dw6cnSU59BXV0BSmNWNQaiTJUozCIVrPSE\r\nQYLJhBsyAoxHtEVlz8hBK4UIocRofwzM2ivOrjY3b/AkMHsD3abezXHEd1eH\r\nsA7vRk69lf97HRLKiDse28YSvpwfEPvgxUc8mR/ydhV77vRkOHFx/kmGlYcG\r\ngVO80LYj3yUfdRdxNusJeBQKNZp7M7TJ9+MPLUhTbeUrrdvJqMyK2cg86oq4\r\nqlAFD7MYEXG/vMDZnnTODAmaFMw5apd9lpSJBy53NGOFUqZTBdF+94U5AhX8\r\nkKAf5LZcP+TFmOXAr5EUMHHkX9XzQR+bIK77s9MqE6vo4sN3H5QzTcGHDj6u\r\nbaBsPoBAmAENDvN4ywD9p0qrjUhabmgIjWfEwju/j1MfClqVzhDel5EiNu0O\r\n6FqdWfSKfmV0UiSBjoqyAYntOi+A2AcS8MXxScCA1iHx0QWY/jRwPq5QLmCk\r\nrGhNJS46JJsSasT/MpvpNUbXBlqjkmt6M2QXfEFNhMtNjbN5Ta49BEGhzl25\r\nUYxJmiFypXXtP3qCH7EDljOq9divPWCPlnM=\r\n=7ad5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.1-beta-1662499185000_1662499520655_0.040689282250014"},"_hasShrinkwrap":false},"1.25.2-beta-1662502001000":{"name":"playwright","version":"1.25.2-beta-1662502001000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.2-beta-1662502001000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-105.0.5195.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-103.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->105.0.5195.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->103.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"396487fc4c19bf27554eac9beea9db135e96cfb4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.2-beta-1662502001000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-jAUdJp/xIh55MwwVfoVaLYmLAKZa9yn7QVIQT8AOJTTLSpIFJnGTTO8h0AE14hkYRwWFdSDOwpnBZ3Z1495x9Q==","shasum":"c9bcf39fb1f90798a6e7928f783de1dacf74f805","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.2-beta-1662502001000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrhd8/lTay9X+A+UDHmZih71yBhIQr0DwODFHIro0ZCQIhALg4W4yKQSsK8ghPNJ/mtpm+1u6ABLoMkIWTk/VU9a2b"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF8VnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrU3w/+JxKGZYWS8VL7hsrBRvWq7RXaoB4cxwdSBdBStEnAVTNbl7Zc\r\nDdf8TubWoLgDOjJwkriBdJugOyGaUS2od24ealCOC0lIDnZZ48BVuPUmgvBm\r\nksJueSnkhzummd12v75a7lUe4f/eLvhTlejoX31fbDDogZuUgf3dP1YsN1sX\r\nHJrPBOfgNHgOoZc/bwke3O1HiDJqOESnNB8jX9QNNaHKNi39xcvevbBn9hy7\r\norgomXl9CDWsHzZfZAE5UyEBOMpCXTtPYHblM+rTpKd74kg52bq6vSmpE1tj\r\nOuqIsJKvlHL9IPM3VW6KB/Zdk4H7XAQnQQT/Bhc9G5QvMM3ZMHYYGq4ekK+Q\r\nkAF8oWtg6vAI67+ghEbuhz+8lUQbrxpfxEs6KX6tE4/Pket7vqxTvZ3kyrIk\r\nqb55SpgfyQ8QbwdRKrWiq2jlkkVx6Zt/PA6GzIYNILInfuZfvA4whF0LT5QE\r\nTj7gCgfafa4ouOJtGRiEcUp29I4siKasBYLc/CLZYuNko12UzIYwHNa489Yt\r\nf62iKKgBwOKilKLa3kBHKJS2pIDZUORQXoqn+5hrXIbzakYo139Up1N3kNTG\r\nqasquOu1pD25KauEXXrGVBSQy5SiyajTTLSCrRwkNHqaPY72HLIhWgyt6tVU\r\nkak7PwON+w0wyZajm/Rl+qaMY6JQOedy+go=\r\n=JzsZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.2-beta-1662502001000_1662502247274_0.31712677812145906"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-7-2022":{"name":"playwright","version":"1.26.0-alpha-sep-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fbf9ca5316c6bc82d8987d1602112af91e94c584","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-7-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-4hfrEZSNPTgNxhYKXATxCremIDS3P23a6bTZ8RduWiQ86irCI3o44u70+AKtQ2GnThTHwZHlckvl/GWtk1g0HQ==","shasum":"74f0f1a0b51fd0247d76aee8f8578b87e256df82","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-7-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhD2UTmjxz0/6NtosFv0hwsTYEnioHm6Md9VC7ZTe+BAIgcCIs2WkAvKpa8jCBRfVI+2V5Fq7e0WylL4+SzTRo8ts="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF+bYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRvw/9FbaafqXObeD++yeetiTaoSkZq5IES7/+3fBXNmOZbRPh1+GT\r\ncN3lAQYzoTqmf4HL8ExQWAibQN9oNSzMzxMjC6WUqMxf8XhsOszKjuAAST/M\r\nHbYSRdXOsj+AOQaE6UqIlG2+qXc5iCtg4tg6nzarGXXhJ8X3Px5M0iwbOD09\r\n2v7uvydfV9xslx85zgc40bY938k5Lmfu+Q5odruLk8T1vUsGXpwOA9hDvi2D\r\nLI/rnuXToel6WjMFr7Bt7wVSZ4V3PfiAZOdjaNPjtA9R7ZtqvygB463QCjBI\r\nikedWAvawFas8BDLmdWl4AnNt9lz0J6zGPPKny5qUbCfIe1TQ1SfryDpXs+E\r\ngcARbmSQ68s5wIJOXehcEaHm3uK7nc5w4TYFvFY/dVVEkKtCpEm9xnmZlMoc\r\nMLWTnH0qN/lL1n/LDDRVl3j80sVtAovDhOzIN9uUik0scKoYOTV7rnUj5DVR\r\ns7F3YaG/sIgbJ1GYI/iwjF97jAYm5mR6iOPlf4k22uBO+ocLGN2Oc+dn6mwu\r\nTnTx50bVGq/q+GKtNTgqhNnOj2bDbuDMZcrIXzPTeu35NopuPMxE85YQoh+V\r\n5gi1v4gXueVj8wYQJGpHK8m9nP8F+2d8alGb2NUBCzjrNRsvpUj6tj/gTWQ6\r\nwx2CDW0bT9BBjbWZ5QA0gjbULFnglFyTcvg=\r\n=d8v/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-7-2022_1662510808380_0.6256581923109099"},"_hasShrinkwrap":false},"1.25.2":{"name":"playwright","version":"1.25.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.25.2"},"types":"./index.d.ts","gitHead":"396487fc4c19bf27554eac9beea9db135e96cfb4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.25.2","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-RwMB5SFRV/8wSfK+tK8ycpqdzORvoqUNz9DUeRfSgZFrZej5uuBl9wFjWcc+OkXFEtaPmx1acAVGG7hA4IJ1kg==","shasum":"0fc67e4385a52a51371ff9114bf68e3ad50a7f41","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.25.2.tgz","fileCount":9,"unpackedSize":24248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBLJJjIayDgWsvVMm4nq5fGEcny0eiQ9itwfdPf2evVBAiBEgZPqS/07ojvQnh5R574eSIHqdF2/EkgG87oduuwdRA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGIE1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8yQ//UHQx6a0adbDU8QCio+N0Ig12+UCDh7HnI23o700HYy+mYCRj\r\ndbcHxtapxpYeXEztDLvJbhTX59Jl4SZF9lQ2roVb6XFzpzjU/Sjmrbo2gtYb\r\nAXDqebDGEZ72+O/YsvRt768us17TynHOzpWYR8OGiKOZTXmZ1Kq4+/OBy+wr\r\nzesjEVvsBXRyOmrHPbAr7L2WayPXSts4w6ArAxus015Tsisr0vWDZ6xr/Rd+\r\nKBCBgnYMFbmfzvYsolSQmnECXphkr9yHhZ3Via9dUsd09rtlSQ1GvsugQYbJ\r\nuYkGJsW3oLMwRMjup58zZkPBtz+U4mnkIwLX9KIH5B3H/8bP61I7ES28oiGy\r\nfJgIvoKGGhW8VZeNC4JHfg5BsYk0xamvAY1HZXfdYzDT8Bm5ncJ6seo7+3Ob\r\nZa6jCF2Hyo8OMTr9XiRD9LahcuGwyFkY2782MsBwwfsN0UeoZ/OrQ0Qbl8gs\r\nfQl/Sam4pSyUxiJUTfkCiageCZRkmBTBidhZTjTwaSDqnOr93ps6vlMfOb1J\r\nZhJZIJCdGigCWr6fK4r4dxpc3fEA0+Nia+CUWdL155GThhqNFfJ6dIuGSlRk\r\nrgazzt52vef71OCbDKpKqpahNMZW3+D2xEhjsUwgIWwKzzUZcbI5HB9o0Wbh\r\nG0LzlJi44wGL5pZ/KIDqDUuwuiNPDtonMhs=\r\n=ISPJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.25.2_1662550325022_0.31337425056636037"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-8-2022":{"name":"playwright","version":"1.26.0-alpha-sep-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"15add13a6a97aad87569fa02818b525d2c195987","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-8-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-0U2SZkWoh/oFR1yBEhzjowpOhiihQkmvrs9ia358hGHNm8+CkNGlYHMqHwWNsDkQVvIfeMctfGicUpuUqxr/Aw==","shasum":"dbf9dcf27908563c19c25194e14f68885e0ad224","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-8-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGh14IoUbRggeh2ySIM2tInfME3ego/Tu9FQA35nQIoJAiEA0FCU+TAtkGKAnrqdwy2auGqOjlsf/eFj+2U7/dRyS7A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGTkbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYQBAAgvWDIimc20Cmt1dZOMsF84K0kPmQmGtA4ItVuPzpejEkl6Rn\r\nLPmcme1pePxoxBokYCYdMrxFr8Pj73q6mOPmSXr1G7vo7B2ZRvdLD76qWM07\r\njmUQGEtl/C4UcbaizuAsysDAbbXFzA+G5HN5yLHPLxpKweuaNBqN5EkmyRpI\r\nZpXZbmBEzM+1pSloBlMyAKFoNhE3gY3/rqCzqsy6Vqck5xqU1vbMajOzU4V7\r\nEWlDJeiBq9JpTEh54goeUW/BDTtQjp0YT0veRn8ICiCnLJWvpjqeusxI/hLB\r\n2vBnY6amQ1Oh0N21PpMt/Z+ZwvQtCcSNv0soekl4m8+lGpS1B6yMS5W0CzLP\r\nyLUEZiJCC3ruSjYewj/ARVDF1c6Ss6NZhOFKXZ9Cp+YTKBIL4PexCLecfaRg\r\nPWUnJfdRqzb314gDjTM2rhgmOk3mZyRvkElveEyu66R9Vs8QYcp1I7wS/MeF\r\nEGPp3mzHqfUx1BizfWTorCoTJxwyq+73eIQHum9ws625aShQl7tR9eB31jGK\r\nG0NpbWKeBLvsW6YXxSgi4ha0QWDciwXVBGWYBNOqx0Zj46bylKM4ZzkI8TN+\r\n2xy/E6tz2NM9mAqRFebUkQ+PYUKdiLQTl4Fy+MidrgkCQz9ezYhp4QGfRLRA\r\nqOLvJPIK+tvwZIX4pWnMhRQA5vVLkIqZzlg=\r\n=Dv8Q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-8-2022_1662597402835_0.8691423971802734"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-9-2022":{"name":"playwright","version":"1.26.0-alpha-sep-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9c996f6cbbf87f4ad45f7dc24d0e60aafb5c15d7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-9-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-b5Z+AJTsdUL9nOufLsbUhOYkD1ZgCYf4b7Y4UvB1E0S40FiDVIWOE6V5gkdlZuvgoldHk9KhNhOFSuReL1ezWQ==","shasum":"c1bf26d6342bcddbb5a325149181d9f0710420e7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-9-2022.tgz","fileCount":9,"unpackedSize":24282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx6wPyUVJrqFuq4CWRuZ9bSen7zUSTWahirYMtYfPnnwIgVmCsa2NL04QVB1En+yZx0ze91zBcH16tzrMdTU9DHt0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGom8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwSQ//cQ1rFNp9zwo55v9D2hyZpgJ5FJtRf8AzoPTvjAfOwse31IN4\r\nidBkOEmTkXJF7jICIS9/059g7IKv5VC5s7U2rEpbMELk4/zeQhF3vlSakupp\r\ndJ58tJf6/rtBVK2jhWPd0cDCeUD6ozX+TAMKpwg/cQRs3kLeC3x3FLr1Cl1L\r\nVm+NY1Mc3usO7w/2kAQv37TGpX9fx6vXZ97PxUUkk/dhnM/YzydVGhUwgJ4d\r\n+IkFrJh7uyqMm0ceDwMWL7ZVABTQTVRqqH0Sxwr5qPrHbxik9Gx8YD6pMRgJ\r\nP+9Fnc9A1NtFqD8a16ftve58d3VQufWnS+tjdZ83jFGC6kkos8XpXOmOdf0l\r\n/l3f4E3AG2JZwA8gVjFLT9AfdiVQR6aC4P/NmvV/gWB+VNCMk5jvHWRaXrm6\r\naG3iNgx/2/k3zePWyuGKtdeArBfYZV+NCCjVaFDVwmpbkHCWQSCvxvafSPb0\r\nev/E3Afb+ibzpO3PwdeCRu0ONBIRPzXnAf+Rq2KZ8dRxz8lOdUVkLXnCivaI\r\nB/grAsDKZUcpwpf8rSeJifgROjtEULVqGFRfdOw2+GdG1u1JpMp5Ctk2ZmxT\r\nGJO8cTJYHkNcHzIypDm45FZPCyYsoJ2Vi1NKkAG+VTEklzYS7zxZNvabgyr/\r\nPObkkh4Ai0yWayzXIdr3ecJvmjAaiBad19M=\r\n=H0rX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-9-2022_1662683580542_0.4405410752606822"},"_hasShrinkwrap":false},"1.26.0-beta-1662762342000":{"name":"playwright","version":"1.26.0-beta-1662762342000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1662762342000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"af042beb13d13872b9d4bc64758cb47a6554d1bd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1662762342000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-YMlR8Fz9qGSzHC5y2eoSe+imeAWw984W/xV3m+aqijGSNGWclbQblzOfTRciWMqrtIKA7iN9W7GyHBOSAIeJkA==","shasum":"bfcaff41e185f1d924f45cc3ea68964caa4823fb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1662762342000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnhrfjT4tGETQObTfM9276kWp2XwEv7xPcb/H60VFgPgIhAOdKn7z+RGOv850/vAoPQWYVuW+G7ik1/PeataCVxsvB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjG76DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprFA//Z0VjyRklGnnMF4jCR1fWtSL51guQon5qx5n82vpoYite60VZ\r\nw48xFuZs7MDqJNeS+87PLNc+bp+pBlx+0h1N/PdFgWWku+BabEWnQ+idqiuV\r\n4PJYzDQAy69IBHyh2v1VrG6CdQTmwUNu5Tf67ZIr/0VkxS1AITKuk7HQ0hIY\r\nl54c9saPgUb98LplcIRitUgwJTV8ggHOFRrY7BbzLvdLXF8lbRZFAKhKLVMY\r\nzAIckHw6hwusdK4bjSJl7GXIO9xe0qtuLbr6P49rCuQqM2f2l2nl7AiG4MAc\r\nZLZ8JYoc/POAaH+NZiVPs4TWouDi1HY0z4Ch1ecGHD393+SogjcwKzsw+8ZV\r\nVgxFLjobA0l0jSj0SAASuJ0XKla7jHih3+ImOaLk+zWwI2qFZBJet2IzNoe6\r\nMewgNXYvr82qZICKac3jpQKCEeACLWoh+895ISoaZnxa4LreY2yg4pogCYTR\r\nIX0gKLk8eBI4muj3AE3AUFwEy6W/mwPRB+i7iJcUnWqJZYKF7w8VAwIk37+/\r\nniS6mZGMVeZ6wLvBRooWy+kcBgAlNp4qStiU2vyVzOzmc7ttPnGG15+Cfus1\r\nDUo5JIuAR/8IfxJfcjCAKlj9IbYUOZTSxZ5eqVF5Wb3FLDBkixmULcUca+JU\r\nChI8cPE5BlbaNrZvFUB9KiT/BNj36DPJolw=\r\n=ek3z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1662762342000_1662762627566_0.4180630998587367"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-10-2022":{"name":"playwright","version":"1.26.0-alpha-sep-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"04ed32e53157c08c56cc4e5044ccedaec8379b68","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-10-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-vdPodnHWTa71AChq6eWK1RuYShRe3tqsy5TxeHkMtX+TOGGnKFsc4f7u7iX22n6XjyEBsf8z9xOOleLseSFDxQ==","shasum":"ed62b21e20db1ea171acfee174be50f77d30d9aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-10-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFP7zvGfDV4HFi7jasDIGESOIujjO/cPY7zTNGNuY80iAiB0gBkSaPjKVpzKDO8zjpF8OuMj41qu4Mkr4gcsmpDE7w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjG9tkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpxSRAAkIeF0YqlDGD4wQMNNX2wDB7/26xXntFJ6xpW0JKb8g+OwCei\r\nqWsQlqidE81XuG/zVrkZm60cdsfuz5EKnXePtwuvnIADuzCzmYgqt1S4b4GO\r\nfJF8OYt+kch7ZylaiDGy3HnEYmNeE+dU0DucTLgZeu82ce65tK5TssAjZf6L\r\ncd/eS5/jZh0orYdbERP8UltVfMik224P2fgBpejYljw6+USa9Mav3GQGMOU5\r\nfFruu+F+ZlX+zxtfxNTJt/NUaMlHy/6/W74oXmGN0FSS8NON1b1UxmAHsfJV\r\nyoA7KSpcCfB9kRrdEtZ9JC6soZ1NLpEWxi+EA8uFc2dLAuKx1+ZRfi5c6NsN\r\nBX3EIN0nRU8bZE6vgg8Gdv/4jlgdGARMlechOticorWSCXHUJzm9XuQ23IZh\r\nESdFoxRN+14Eh1GCZ5Z72wjfvqsF80nIajsfNquapxH6tB9AJqX1OE2Oqya8\r\nJE4LPGYJEZCjkB4jLOUFpbJSUsaibcBpgcEXmeRN+5/UbjijcAqkdT1FcpMi\r\nZknYp4YUYWXUV0Jq3cER+oPWhmgDzWhMACazHsqTaXhb17RRqPPkEL2DSXFl\r\nUeN9XJyoEz+vdzGiraUQRv5tna0cFNg5ha/iRnQ6vGrag8eXGtPdmd08QAE6\r\n51UzmTGU6q4QNlijs7LqGgIS7Ntz2sQwiqQ=\r\n=ZTvr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-10-2022_1662770020107_0.9731098575490256"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-11-2022":{"name":"playwright","version":"1.26.0-alpha-sep-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"04ed32e53157c08c56cc4e5044ccedaec8379b68","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-11-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-5+zQIBREE6ENAoNQ5ITRrP2tzpTkbxEGjizHuGXNfjiXXoYpURtqgiuDqtqSxFCJz5nCnnr3uP4IAUiZyAX0mg==","shasum":"08623d8c270faeee32cac0079e76f7a79b6a344c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-11-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDnRXdEi4BU+3CCMZgVb607PXI1u8uzJJK05DwBlw67VAiBGyi9EmI9uRWU0z3B7Qr847xt6cY7FSUryyPaoQIe+Dg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHSxqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWyg//V+b1Y1nQKBV96xAqCDvYdIYvCHWPDdy4GtXGNuzThpTJHMm9\r\nektw/dk1DBYv+YWhKqJPoFQWVlckGgsVdK7IPYJOLS7tU5NNrRqSYm2fmn+m\r\nyqwYLCg11E58CnWCZCUe2EtMLi3RopbxOmuAwnEO+rD0vBdRuUTiMfU26goG\r\nFe9/3cNN+opTNHaKod/p5PtoJZDM7Hs8qQpuubGM4RnMANLxZLZxWHpdO5pH\r\n5ujMOT8ROjPjVqiXE8kz26Q3Jz6yQ7lxp9ftVScXy67i8nDht8tj/e0B/w6S\r\n+B1ZfGtW2rM26K1rNow4tlUhA72ebaUVtTZbgHkEJEyfEvmrAqg1Js1JtRYO\r\no3n91/SnuCeHF1YmR0gv/HRyEW80HnbBHU1z2Cu0sJqt+ByquhFbCB1PNqnV\r\nq/EXsgwNUFhmh1s10pUN6P8cvoy/ZBU0w/4QG2fRAy4YvumXgPDeMDL561Er\r\ng3jbGjZMuKU0tlXjqxgjgweWA23R9PJ3y67s68162Cg9wlb9Kvj6Fv9sPoY1\r\nHSGHwB9kU5Ih++OL5sLA1/qa6/VNEc261GRJFfmfVUmRLCMUy/5awjZNW+aI\r\naYfCywkkMoricEDYVcxcgEp3BfgS5iUpOLtMIwTeyEFatt4UFO8DaSkVy6Bw\r\nRtegG6BX/5CAyN0W0Nzml5tUSGi8B23Vqmw=\r\n=crtp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-11-2022_1662856297817_0.5045998293629421"},"_hasShrinkwrap":false},"1.26.0-alpha-sep-12-2022":{"name":"playwright","version":"1.26.0-alpha-sep-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-alpha-sep-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"04ed32e53157c08c56cc4e5044ccedaec8379b68","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-alpha-sep-12-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-7A67e5f9g+Efq0IlMygx35j1FYNzPo0ZyDDSlnxZ/2u5kggQPiQEBBdy9mDSMJqWg4qcoy30FHeBZib2wAknzA==","shasum":"c203ffcbcd61e888bc35032618cf6cecff462db1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-alpha-sep-12-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtXtq6x+UWxS/bLn01D4fgrOL1bKM1z9zatw5WRCyAtAiA4/4+z5uCUUcJ3+SKyZ3065Hr47NLngXN+pE0NiWRVNQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHn22ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLTg/9EC5ouTsourL3Pvna8yBeIyPFYIoVvkaHdZVls6iZCIViZN9A\r\nfpVbU8JiNsNeS4Wt6CBknyTVJ/E5pf4ZhDQ2ryz7b9EoOhgIkl/Y5BjYJjTj\r\npqUWzxjVffjxIcwHAvjHdJ0B7sfuWJCnB3QLVj+8G1rLJX8XjLhMf26lTwbA\r\nGXEV8wXMXDqvMSUqLjPdW3e0m1Vmo8Y3/SqUg67Uv9vGoqkd3z/7L513/STy\r\n34wy3ZzFaJdrDATmJZjnlySP7EjKrg9EbL/wtx8tzU8TPtyxC2TZ9uIhrFGV\r\n1L6nCs6KKbEpeNZ7jQVrTP73uFicSnGx3EigtSiIiEIh04azqLQgbY5OZH+Y\r\n3NHg6XfGNGKBt26TPxp8C4v0Em2ZjV9CRSmtyyRcyFeMEo0n2wojHSUDhsw5\r\nygdw2kdXu/6MjH+xUEyLFjtKbkL8uF+mKGGy361eaLG1IjPoWKsuVlRAfEKF\r\nNHq3Muv5qnztxWL62WqDfC5JsJZnPIxTFkzM3dHp7owno4mK2AChAcddsR5j\r\nlGJuu3ixFnraiKN2abS6Uu/A2o0Tw3uIh7HxxHhoRZwYZGV/jLeImhbzDXRH\r\nXjotF6XSSvGLmhH8vKyfbS4/UKfIuN60UFdPt682L9AkEOy7+NEp47cIQWUf\r\nByrpC0UETQ/0hvVGVE2zyVbBUMkN4WHJKuc=\r\n=RFdX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-alpha-sep-12-2022_1662942645796_0.7592906132890993"},"_hasShrinkwrap":false},"1.27.0-alpha-1663008124000":{"name":"playwright","version":"1.27.0-alpha-1663008124000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-1663008124000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"48ac918cec414c2a9bace3c46985bdc54a744505","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-1663008124000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-LRo7BonbVQa0showvYtuZYsD4VBNHOIA1A1qxte1oEgz8D+ElPV64NhH09z3bwYGql5Mnhm61Pox6tH8GkHFtA==","shasum":"4ffe83b1064c2a2fbc125eeefa02f3680a897109","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-1663008124000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIHuieaM4ca60fNVuOb9hWEDHBk3Qb7zs9azomBByVaAiAUugG6NzOz+3sA2Y05ngRTSqFYgqeEHG+Ksa/WBcYAFQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH4QNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqB3Q//cdn0nYD/40SzMRJT6sxqXJ6dwxSi0uia+YD1sWIxgvrLtLUh\r\nBVMRcofFp2tYpukfwnbxex/xp52PChpO6sxUa8xMD4AMTe4PUycDClzN5tYD\r\nzm4Gh9+Ya6w5SwdQbsECpgPN9BiSHCjCn3hhYLqHtnfQxcT7KI6ajIKMRRiz\r\noBEv1mQrUOy2sn5oknsyfdGRVVxmf5I0HWRp87nGdJEn+bkWbW8p6pt8fKSA\r\nxip62a4gjLGRaxiMF1lsxlnn9kNtR2za1vDJ07ERUqupTUbs52/2fsSt17qY\r\nSHK/rC/ktRyuvCDS6f+rGTE5VehEQPXuhFueJ6fw/nWVIit/shYevmuu7N8Y\r\n6dI9SM+xgb+1ImDGaZ5rsuYT6UP6aWo7ntvRyVdFShJYzHFGzmOq81yA7prX\r\nj+RWY9wmHXBUwLXjVBniv1CQy1WBrieS3iplERzLzDeQgo2y37nSWRcjD2Aj\r\nCIy1LNH6Xt+WzixcWDflVyl3ZR5QxcZbDGeWILE8QdzvJRVtz0OZWxpF1/qd\r\nTdlS/1+iNCbRjck/gLO3ulsW2UzsBsbA9VRq29x8rDVpp6GpZvEdPjPz82Km\r\nYqG1GvOGM0S7ROPSKErX/gyMsXimdmvsVQ0nLdTcD9yoNaUTmhrpY47XAyCl\r\nFACf42JBSDK8FLgdymaKgzMeCjQPRsMZe/8=\r\n=AnAE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-1663008124000_1663009805344_0.38362170776303306"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-13-2022":{"name":"playwright","version":"1.27.0-alpha-sep-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ab4876242f188d7dfb67b02ddf8fbfd7a2e48c67","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-13-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-a9Nq7Te3MAUtGLasJWbZ6q6lwyajckrz9vCJ/d3uTeQrEtc16FHzDzBrqvRr0rHDFXCTrVQMZSAuSmq6SNKipA==","shasum":"8d444b629e04068dcb1f053e40e606edb1668fe3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-13-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVtAQm/wO+Vk+e5/A0bx7BVmidMStQXRmz0gTze6kSYQIhAO29B5uKc65WaLpRLmMb+8nh28/y8/GIlTFztDqnkidD"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH8+gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvQBAAi67AhNk4xgDRjh4itx4VANAS6P2gAgW43x5GtUAlVNZfAUoG\r\nYAGSggqoAUXPayEnBWMMMfWigrUNalnqUpXS9ouswP+Lq/Z++U7SqD4o7tVg\r\norIIJZ6mliL5BFDtp67GRSY/xEBVy4+7b5Gsq9jPapO9rlXo8ixSNTVAffEt\r\nQwhDgE3fikFpdu5vwdMgJN7aVREQjGdBOXQl1Y2L+XJd3jqDA61geTxVJs2c\r\nqndlRorOOPSb54lFrxX8VNQMHGat5vGkNCEL2kG+9MhT0QpchCaKFPW8tdWa\r\n6P/7Sif/dO1d/JPn3mg/LjRrFIM1NBvtIxaOCHv5JRR/YHEXxMfg+NE9Q3JH\r\nZLs+6cHJivsXQt7srVJ1FS54pWx4LBtnfMtN5Esn9OfhJZEDdpkNbhsDK2Ad\r\nipughrikaGt+KpslQqZ/E1JlzkoaalELY/IeGogCJkYNysNLy9qitOG3djJo\r\n+2rFfIjKOPKwUTXmOgf40n1jcOP3kCSS3PDte7npXSxdVM/OWEK/Xv+CQlBP\r\nKdla+fp10/aplKgVQn2eP47p4obWywDCFzCt4+lJiYouyeh0mZd1qV4nZvSZ\r\nBEJS56vfuBNi/fFp657X/mP1ZHTJ36W66aqvAYFfuOkV6IzMEKjJ0pQ2pXek\r\n6hhWwhAczIkdMaj+I56Oj2VINq/AR6slok8=\r\n=dufu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-13-2022_1663029151938_0.1741684668182908"},"_hasShrinkwrap":false},"1.26.0-beta-1663000204000":{"name":"playwright","version":"1.26.0-beta-1663000204000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663000204000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"344077b04ec9c6b4eefe9728350f595aacb54150","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663000204000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-i3HLLQxnUUBIM/O3U8MbeNcZvlziF6FUjDK0MWhEKaZ3KYabfPl8qsH5hsgVnJCHHquIU/bpe2Qvfa7bVgy4mQ==","shasum":"057aafafd42b624c0ff980c7dd1ae4560218f320","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663000204000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDR4k1ww2xcCEHS+6bAeUoBpPN+BO9tpeaHInZEYUV/nwIhANL3Jztr8QAhbvjWVgtySFoSqLGdvDQ7QhG7YoXz19Tl"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIKwgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/OQ//ZDHhieqUj1zpzukG2jMnhd9ZbSELCWvGRp0Jh0Rqx41OSuH5\r\nzAU7VlWaxEVMInJXN49nkHX5kOY4qDC8j3yN8Hk13xX/0hXVh8SwAasWd/h9\r\ncZIaFg7WdP4jIRrvZyO8NTmF1cdDqUydbxb5Imhkb+BqxNHhl0wx8bEAAvFk\r\nv9h5yfJPkcE3ZuyLBbPoZF3cLG2bXQySHlRiEVim2/bQDU/DEpiuUjCB8S2h\r\n346+q9LwXaBneghWB/UWk7c5dvfEA02NbxdbsYQ4NvqevERX2bDiET8eO92v\r\nnH5Hdgu6ITXb0BllxGJ3+nbj51qRDkZK3vetcVPtPfVQxMoD2LjBwkhqFZnb\r\nTsctapK9IvDJnxOH3F+G91fC8KJ7G+PNd+1VIn2EGPB6CL2PBgtvcP+Gx7sG\r\nbymDO1aeRuy5hL5vsOHlCme5kqFRgB/LmFCqdeA5c/iU90dpMECa0wPa13mh\r\nhN9SWgdyU42THgUHps+VoqEm6BlddSN82p/odC2hNxyC5jT90QRiVlVB6Hcd\r\nNx6OsuIE9Pu4A/8V7qEXdM1sJl2RjeRwsPW1I6k9l62RvwKU3UU3g7R6Xp5i\r\n3SC0KEIcsW/pQif6GGk+9Rrxa8AF4PYEgFACLcYdgIVtloMPgfs1X++litpp\r\nyDjUWgKMDHN81ITZUYYIy7Y2V4H9TCkFNlg=\r\n=z6lS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663000204000_1663085600531_0.036234239841096194"},"_hasShrinkwrap":false},"1.26.0-beta-1663087977000":{"name":"playwright","version":"1.26.0-beta-1663087977000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663087977000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"991f2f94176e93ac2da67d64aa106a198ae43e6d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663087977000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-AlNlo5BXDnCQodQqM4VpcTVa/8Ahy4wFE4MekMozmboNNId355b6dHphgQIJuHvxl/3bTG6AstTOMM2K/b7pag==","shasum":"efba9dacbf01470a677076a3384e62733acc95d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663087977000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCNPUKFD694alvPgcGQHaAISKxDptHFTe4KSH4j3Sd/QIgbPszhZ4POzcT4h0BX3IOlhFkb5qNc18U9e5beVYeFOA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjILq1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr39Q//dMz+Nf+aOjJdsPugxy67Ycp4uhalmvu5vBswN8MeMi9DNAlz\r\noIMRaWeI9pXg36wxpbplMuydE+ERKc8nGDd8VPvq6v3On4Fd1P4C2XLuC3Uk\r\naigK8qKhPW/XgfwQXjKOMxbusuGE+VGlVAYFAWrryrfv8q5EPDS+eflqv70o\r\n7d96X1761jmgkuXuavZxh7epaGiUUJH5oK4+Z5M7a8bih/Dtf7uLpatAlX+3\r\nodJH6mfkh4ZYaPRBXEoo26HdLWhjlh8xKqNp/nyp7Lgb3EsYXum4ya1Ee/mO\r\nIpa/4QNRas1RJgNtNCIb21x261NOjuNPtcJEMsnDoUKcWZdC+4KD78F3qvU6\r\nhSIbDqDP96d2/LbH4DARpsmRTmttqw8m6Jqi27Tp7za0e7Xz19xi6Td+Dl1s\r\n6xAUzKstO6Ay2ROEr8uZa1h069Uwl+tca571484C4qjWI69ov1pBmwG3du6+\r\n6V87ZzwHzmbhrmHe2Gu4VvQs0y/P94KVzg5moNkEsawOw2JDsEoKB5jYLvPl\r\ntZsPSl9rzBBKzipe9elfrOO2RWNVQ3lrhIVNOKJPo+GDC9KFVb2CBZ7rFf4h\r\nHEl+kJkRCKdhtRWpBSKGpnctSy2bz6UGx3Otr4xG47A033teX3YUFEeOgL2B\r\nV86JTs7nZ1b+LSPvlofKJXb1EB5iLoi1+es=\r\n=5owc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663087977000_1663089333471_0.015851149740875092"},"_hasShrinkwrap":false},"1.26.0-beta-1663087990000":{"name":"playwright","version":"1.26.0-beta-1663087990000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663087990000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ce68b2fd0b0e65be65cda63830318a349d0ffd92","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663087990000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-aOmTwDt7Uv1ssXPPErtDDLBCqDycJvVRedMOdggT9b07lO0jnaErZAPHBDgm6RJaHaCqzRxabb8sVTsHrzMdiw==","shasum":"987b6d8abf647a8d554462bd2946742ec51a0ea3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663087990000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx6qRts/+Ckm+/g94LrAlfpJqv9MTf7iw7dUdHjYhkDgIhALgB5LwsMskncfUc0m5h+0accMAD4yZnnweWTkOm7kMt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjILxRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPvhAAjbZwxqhGutFGAy/rEhvr6DRHAL7asUDTgoK+H+98GxTsVhEo\r\n5iykxBVBQPu+PJg7s8NkL/6kpYH93C9Rkm+KpaD/zOjbp5DQD1G4rAc5amHz\r\nn9qmk5PlLL6ODemgWSpGcb+PkxXbmr2cUsbh3UowMhIcg5goqOolmUvrhINa\r\nkZffqpLfHBB3JMCtkg4/8rvme0NJe8u2dOSB17BPokchqF7EWeuA/62LTOUK\r\nyu8xstAJY8rbirVmAzrXwWZ0Ads6YVZdKPSZr2jRWoWDY0xC2LihJ/o2rDND\r\nyQGUlXdpqgZo988fJc8DDDBDbOh9hoEekAdMam+OtONqHZip7OZFmnRDTm4w\r\nZIukDHZNP6TH+2sov+RObe2Y/YBYAQ+zboHl2ljxGo4+sAeVAhr4c1DHr6Az\r\nNDwKuYENW26Nhlmqtj7Wnc8T81H523jhvkmtFmM73biw70LP9amJ/0chOz6O\r\nvsb2inATCd8KJbtUQprdXxZv68JUWU79LX3tqZC3eVdhcSLlNzFCNnC8UskV\r\nO+Uq/ytj2uJKlh7u3/9LrpPju5AWi3xRh/tjFC0JUNlJZGB0+AvzlMhLED4O\r\nfs09ITUzhfPjbNGiJX7llDbbOeTOraYwm1QR26YlPwDArqxaft6SZl+HHqTz\r\nh4A/yGwzX1eAkmawokJ9EkpWzMsiYz5qN4Q=\r\n=8Kkf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663087990000_1663089744809_0.9108169416679626"},"_hasShrinkwrap":false},"1.26.0-beta-1663100527000":{"name":"playwright","version":"1.26.0-beta-1663100527000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663100527000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cfc064b64e5831cfe77e7fcd53a06fe81316e6dc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663100527000","_nodeVersion":"14.20.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-tDyjZFSchZmkG8S9MR/Qu7eR8HfdwmzZFiMbIJDQtgiP+u2EJRI34iBqrVAk6TrMJXs2CQl+nolGNnBTTtvjXA==","shasum":"d5922ef127752c614c9ac5b95aeb774981b232ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663100527000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFHpIOVRTSHYKIcNuDmbO7UXSm9dI/qlliW/nybJ31yAiEAicqrtSE6knWoorFMKtvwXWHVIymAq/EnhOR4o7tE1Tw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIOcvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGjhAAmUZnpiO/FFcx4TnSxmrIgYuYu1FzC3V8xgR57hkSWXnLP8Ar\r\nR82jB3skIWxiYnQ9ggl5kTqFn2n5ZNoag5VzWG6s6sVjqbdEF2O0+4of26ST\r\nAw90b/jiLEKeyi2cmeZcPq57evCbg12lJmvM/Qc5L0ttQ+eLXysSA4XNUkAd\r\nmEfJj8PRebGVpmKocvL1K+e8haZ/D4o/yLp47cVjKG97npmRB6HchZ/ZrI4M\r\nOejBECYSIitW37j/NX6fK7Rv76Ds6gVhL59pbRGAfnAYqCuWSpYObNRw92RB\r\nuGep63d9vb4hqB1ylxf85eggYMpRXrayRNuqUIMwBx5WmGqaRz5931FqE/2b\r\neYfrgfkbZeIW/ni1Y+s8IZGXbt4upDMBkGdw3nWSI4e7aVB1IO8UKbcAaPoj\r\nODed1Ng8eUXS+rmXfXwCjaxGspPbssuuax+zNIqQgYKPU5/WiiTv2PYclSGL\r\nRLt/swcIu3Wafq5iNp3A15vKURKMfrE5CRYRIn4Qy/uYMgvIXo4r+nWef4qn\r\nFRq/SUoUhnTzRAnRG2LnsYN1G6xcxZT2o8N1XBHTnhN76KZZoPvj9WsCUzSr\r\nz8Bf6GSqxwaK037oEOh4r3yhhSGPyWTWzmVlGXZsBP7b9/XR/XfTy4UHMp+3\r\nyF6SA4AAHMK3V7zNYGCUda6QsKRFfB/Ghhs=\r\n=Yehv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663100527000_1663100719360_0.8518969576708617"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-14-2022":{"name":"playwright","version":"1.27.0-alpha-sep-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"37e1dad684433cebdd4418d61b83a5f9c018659a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-14-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-USRx/OBUBeJXamtqsVD3QRa9LMZrBJKD8Nh6QxF5x6fWkh3R3LIcUKNQo+gqRCJz0i8ga22uuIYBTMPpIAzjiw==","shasum":"e4e687c32464f0aeebd664f1983cbb4084d27b13","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-14-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCU3uTy1picQEKUEEReyNcaKpqnnTD43oZlkYbtHVwiTgIgbn0aamyefOUT8B9VBL49Xp5PkhyhracTsMeOTwPgnVo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjISeoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/AA/9Eu+yWQK8hkW2d1wW7UOHm/6doqMWsWu4jY42r0QZs1gAM/u+\r\nId95WA+KRJxaWoi+jnP6E03AK7hUv/HJNPU7lNxFZoPuJ797+AGasNSsgNab\r\nTxiTi+3VNFGDobsBrokai6C5IFGGJjMz3ZFZX3pJc4E/xoeffqOHLORHvKIZ\r\n0Wklx6Nulu1AMmgtbKTDJfqHO+rUEnfoGxmsu9Cq/ch/sJR1fRgWNfi5a8ts\r\nIfcoe9SAJO8W+L72jG1IBEPzuNYP03dl2clh3IlN43fm6LcDxNKLuGH4vjVt\r\nM8hPESseTDKCwi3DBq9A4G1zPufkHSHTySV5O15ySjZ6vK8HIiJsFZvhNmGE\r\nY34ZhFIk6W4Q+7HwErb5yQ12LCFC6hasERir2CRK+6KGuhp1vPFYGH/SXhAf\r\nv+o/j8DKXzNvh+XXymmL9Zfh56wvcDhjSAMtRQhg1QYT4rZRGFlkKAE3zrlb\r\nhPdIgAHZ7jqVAAy3KnQ/KkyvJCLGyZq2FPZEozdKNOJXdcBOPmVEnTwzeJ7m\r\ntKONtMQJZHZy+XA8gNtwV8VInKrk0DSzKy+Ar3TQHlLu6lWWmhigzzpggdMS\r\nf8qnNpa/0pJ+uDR58mhHqNn6AsZ7MdwoTmzsTO+UfnZTFAYv8wa5Mhdj1iVq\r\nUvu6ni5+7KwDSvOm0DLas+dCiv9dt0tFXL8=\r\n=yD/S\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-14-2022_1663117224354_0.7204718707360747"},"_hasShrinkwrap":false},"1.27.0-alpha-1663172201000":{"name":"playwright","version":"1.27.0-alpha-1663172201000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-1663172201000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e295eea45059778e28f968be8b608b7f57134ab4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-1663172201000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-rxbLLUpYo7dFPkZRmPoxRTXjtevizpJE8JdbYN+und7xQgsi60taY8L5uQ0bbXeO0IXg1AKrIZDBQqvHlOHEpg==","shasum":"e29c469d2b71bb00e1262ff078e368e42eb6211e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-1663172201000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSPCdeQALFoNwzx1+QYYvaK0CX1tYLtDpbbqa4CDamogIgKdWNjkYsUG2y7TNsS0pxEmCzJQESMwv8q8pwFITxHVc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIgfQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohUw//bmH6hz1Fixv6hzm+LVyNM3Pg/R7fJfcfAaw2piunZD+FXyqm\r\nZMQPhsjXOBwrN0QDPW4TN5V3MF2krfCIuKx6m/ejO2SMqa4bJfd4Gy6DoorE\r\nmSCSwIHziCVst1v8Jjp3cC84dEGAzksftMnBVYFW6kJUDkd6yrQtUq4Uq36U\r\netE54RiZMdEdJLZ5nMbEb/Y9+SGi4TQUngIAn3DKG55IgTJfgjvhXGYinBce\r\nKJqXE1PI9mdXzUS+EEtcno8khJKsX8AyEZXi6AZ8yUma1kUpIAatQlknkMDu\r\nBp401okMsyONS5mJKhM5O356w/rQvUBY0meIt3iDCuj+45OnvlTKhVjjDN/+\r\nJq179bzakTXBTwjQ3SwrLqpxkciuOp6vJz3PZnuaaqhYUVsZM/5/4NH5at50\r\nnYd6b9JgJvvdfBKk5GQysx42ai5LqU8uRVzI2O+cX4ykWfVZ4KvsDzyJIG3o\r\nZL7sKDfFd0kYoWfXJusg+6yBIVUFnpiTj4WPDrTts8VP7nYEp7xQFtGcvaAt\r\nrWqH0h1A198MxEPgZ13QDmkF0tIuePB7Aymkh5zEI7vRV5PIyezEY5WHZVP0\r\n0NbCNlv7RXYDL6aBF8VSRVbDYCQhv2t5nsWA4kQePhcluEsSfjUEJLCSeArh\r\nWn2kWLId0KNOSuFXnqJf+oXItRYLnmGeIqk=\r\n=1AE1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-1663172201000_1663174607835_0.9643887562967417"},"_hasShrinkwrap":false},"1.26.0-beta-1663194964000":{"name":"playwright","version":"1.26.0-beta-1663194964000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663194964000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"99f664febfd6a24c8942393ec0b20e3db9e8a455","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663194964000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-57WGjqnDXkYFlq/K1/0O3H8CD5JvvjwcztSbe7x0J+dYyuuHRIxwnF1DN/QNpxg2KpN0G8ySNOj1YjRlBbaZrw==","shasum":"69fc242a8abc355f9e100a922e22d78ee64649ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663194964000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgOmXAXXOGIb2B/9vSlBoCbFcOUTjX6Mczl1Ynwt/ZbAIgNOmVgPaiuEP/u2Jom+sUQynjJu9LPuMp+l90BZOxwcE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIli7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqK1Q//drTYKB9qx8ic2juLX3KYpWyFBa847Xfj1SkpWts9uWZSiCFt\r\nRCEuw199eK+5DIRlM6dMXHRVsT5ClP2u88DVVmqdBZ8WgAVH5xOO5epo2t/O\r\n2qxDq+IgaCKsSwkc8i9uXYapqBeJ9WhHJe/8zVsvI6d6H2S1VFBO318UHHhR\r\nKnJkWRmprQ2l6pykmawgKhSefBCAsH2mVBpCLtpBaX2L/Lma7PkWyOL9iWqi\r\nlFsOruQelyomVyyMhTQKJzr5pmaTzu/eOt0xlcW5dN4KKlcFh5VQ9ewzr9+G\r\ng8+a9lfGvZQ5qj3GuRzNItQ4Ufnw9CSfLSDXwc56U3oK3x70WSrPTPj92ziF\r\nJjNGVWg/DV6zoZZWdr3blCRHmfxYC9ItWQO7D+leAE+4nOfuWgrKg51SI2IE\r\nc6hy6HmLoy3qF6Ypmo/cAwPHX1eoQbRH22v1lh1BAfLl3CghpbYXLnvYt49W\r\n+rPr/qAxGpfq3pa9gl8Pj613R/AbuSZyrCGYRZ4vOpev+EzWgfAp5ldCiBY7\r\njDkypGqBmDpa9xegflxyhCS7yejvnCvQBIofUkhV9dHS9TB7wZ7BAfNI+kDo\r\ngUfxWkioycpoMLh8YfDB/th2uxzSAWKL7OLTDfcEtIVeu3G8en39otDyqUbs\r\nMh4qjvxP5QlNnGkYrhKH+169ynHij8Kw88A=\r\n=1OEh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663194964000_1663195323609_0.026394690072500504"},"_hasShrinkwrap":false},"1.26.0-beta-1663195316000":{"name":"playwright","version":"1.26.0-beta-1663195316000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663195316000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3d838a1cd90be2bea68086aa66b502be80c94b98","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663195316000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-YWELIujnD//QiiL9eZ3Mi+ZJLpv25lyVovdnwkOyIRA3/RLJMRmuKIORisuTstclphwScfSGWHzLnw+9cudiSQ==","shasum":"0c146583c0760d07e50d85d299a174b352682256","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663195316000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCItnmDzHI4sWFwpgH2dwGKIWqOugEMwOd4Ssj79TScuQIgGxOIfD1Wy/SKaVZdhGfQUTypBf/415UVKePyC9FuR4E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIllMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmos4BAAmgGJCRTWHfKWABZxTwHZjXo7kJefWyr1YnpisAm3twU1ToLt\r\n411fW8Jxu89IKEwXflcurncBrsSVTj/2+nc/4Ju8x03QBUXdiW/RN6ulO3Qq\r\nnGHP2lXy5OtEL3Ck3YZBgQbX2rsNIFBHteE7mPMMCnzbRnCTbTk9aUIPKPfW\r\nTp24FY9+uiyGke12LR6vD0pdHD85pqldFW1wkv4HV+MgC6LhqYsNgLHjcpUp\r\n0zKQT8DrSrI60XK/gkSLCnfKRQDxA6VoqVwjXj4jsdGGCyuCmWCtU0VsavNx\r\nWMEB8k8xn4ellES912XMsDx/TE56fp3ZieEH7L4Z10mutVMkHdfq/4w0hz1J\r\nCZ4tCVSMJdMJjejB782zp1EVhkErzEeuWDqO/UQkly8ULa2xhCL/g11DSR8T\r\nxnuklnr0ji1xrirS8jiNqxMMEmtiQsSQNk6xaQmF39U/dq1yK0ZqALp3mlB1\r\n0Or5s8kutijNAhvz1IxHXGG0oWfs8VlOIIqWjMDuujbVrGY79FxveBP+XpZU\r\nPjiLhIf0DnC3RCXJK8J/LVdbE0alV7V4WJCmG13ogji1X/W4+XRqA6zXkmto\r\nbCejP8ySlHLBVj8aJFjjlplx9YohDTYHkYhVZwmTiy+sM7jCcbbYyy0lv4hE\r\nRDRtr+Jtc6CcgdBrGl/BKUenBE1ZyTavQaE=\r\n=5QZl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663195316000_1663195468696_0.5604693850667148"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-15-2022":{"name":"playwright","version":"1.27.0-alpha-sep-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"58873908ba6db65ea9500331bf1770ad50528fe3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-15-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-LYfPKsHwC4RwyW8aW7+slJjpNQmpUHo7mHDRQt1y7H7CnKrZNLGOmzXvgVnPGexYhtzAsOhKGlZRjOLNI2kLkw==","shasum":"57c9b3e1f61c6f71265f94e42670d5e61550ef72","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-15-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGE15CwFa0PlhjYRB6F1Z+8OQ6lSVO8oWMCrm/Ba6lZqAiEA9WU4fX9LCiLrRL3mbCluprzGrC40opBnUYRcPxOzAho="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjInN+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoe7xAAlfjkKJ6wDQYkr9+4XRMcHPkZZOfR7+e6kNNQdf64cegOiK7j\r\nAJUU0s1uKpX1EOTrzrsnzNy+s6lpAc/aSkhlCq5iOgK3PR8v4208rMyQTff6\r\n8ZSrnQVMdTqOXOaYZjwnWzHyEEGM9x1fZVxNs+OfzpbMlwb4pmziMTKBVWG6\r\niKgCndZ5u4j6639UZXBOAJxYxeWhno8VSeT860vI55Vem+BJ8WcgvGYQWlpL\r\na8VgSQHYNldBlaq+ePZwAMcjXpr7ya8gDDXOHBPlZfjLfoGJeRjMSPmkS1H3\r\neYE8aK3H4xW0c2XbbjUK8Xet2hDvlIj2SJB0SRL7WCFps7GvpYPwpJAkWkzx\r\nOiSAlSWBi1zO51f/qRPel/KtepeHPSYBqqjSlMgcEP+JbHFU62Sazm/Wnv4m\r\noP6oHMqw0ISr4OvRUKGtQY5uQRjbO1KSeLCi3yV4jmm/SuTn7eBhNIIkZpzm\r\nR0sIogZOfTxMLB6uBu3INpLv+b6jds3E4VdGU/XZgWjRE02C1onmK9geiRQn\r\nRHiIX/IIo+jQbzgl+hIWNyK9EapUKh3Z+Zh3Bsah3JJZ5krDHL7X1WNbqqG7\r\n+I/NsIpxjmp3akA0mIsiWiAFM7Ks3HzhgJ5MsGdJ9oWgy/F7q3/qaP+Y53sl\r\nw8wq9YAH5qeJjZJI4uCdUsmFziAA8quoTlI=\r\n=ib9Y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-15-2022_1663202174118_0.42261493870289546"},"_hasShrinkwrap":false},"1.26.0-beta-1663260835000":{"name":"playwright","version":"1.26.0-beta-1663260835000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663260835000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2c00dd59f46b13cb684ebadc59e3d460337cec2f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663260835000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-X857LnbAbU8wDm0kTooHiU+0fdw2Eaz5FQ41XWmurF2s95qGPNSxZI5RPf0c/ZzVvsj0gsA37T86R1OCy/oXwQ==","shasum":"2d11ac60e986cff646396323508b3b128a3f92a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663260835000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFj9MIem3wL03JO4oc9nA8GgEY8Yi90cL7Nm8Oo3CHWlAiBYfJyhjh2H4u+MGfDKdF6gEgplFcrGXXtg4DT0LL3Llw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI1l0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3gw/+M7TdNjrwZUbekFZYZPRjaxX3tbf6Bmcv7wpe+wMR5vThEEXj\r\nYndtZNLFl8vv/aJC8HB4qn+/yrGbSxzPSqzBkbioy91SMoBEExhGOhbOIJxv\r\nVbCxqbgIWcblCRWblXSLAwoDBX56W+g+i7FM7PCB+7ye8cbXcgXMOZyCbDIJ\r\n11yNlmwL+WGDKER9KJtX0/IUKTpWrh/n9xa2lg4O3uuYBkkwEsY/9pN87HgF\r\nXuxTQqYfSoldW/v8chfUE3WP0gwZOPoy9oemMfN8qhd9RwrCRGNV0wqiq8vk\r\nRN1JAYhapPU/OoKoY9hF5NVblL7xtUDjNzSFBdilsILJHQoXeNJlxmM5dkef\r\n14PYy1n5LyKNve/G/SIer3X9V366eBKegNuDHO9fjjqQ/LSwookRtCT1Tf/e\r\n4cocL1XIj6wXOb7kQkwy+wl8b7BCHgNkAtsnDvDqFwuUqtHi2juxWNR3MBrL\r\n4VsJ3mDDQpIqg4Z1EZezXTJ+7TLqQ7LCISokwvhYxMOenbkzjYYYQKkLvXht\r\nwZCOYOBqVgnXbnmZdoakPZtmnoI6/Bu+l+rLKbUCZaavCtvcXUS+0xd2e7cp\r\nBNRYiuFfInidGSHlOVfh7kl1iqwMgsvPtgXyAskVg+Q+NrOL84eMmA7EHueD\r\nS9OoDGwXybmoXzVNlHsUtDXP4TikdmQDmZM=\r\n=jDOU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663260835000_1663261044029_0.6310307677047706"},"_hasShrinkwrap":false},"1.26.0-beta-1663275008000":{"name":"playwright","version":"1.26.0-beta-1663275008000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663275008000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2f99d8793585db6c8a10dcec3d58fe28d3ecf3af","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663275008000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-nOMQ/c21QO9KruG2CxzpSojki36JSlVXfVn59nAX6c0K6hEn2MdsiWIaPh/KSiZDNyeahy/fi0EFK7vR+eoDig==","shasum":"f7469eb3d094420c6ad6f10cb1b43385ff80c5a3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663275008000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYpCWm0qgnOLcfeBPbuKutGlspvj1AS7m0rLFkBqhn/AiA+RWIVTHOjwJBMsS/hqgN6y+vgMcla9i6KkFMScivbkA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI5DtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlTg/9HyE6VOAr4/Jd0gigN9B/oUr9PybJvA2w6njxPRPudSZsWymz\r\nClX7Hb25Z9MP5zDVG2CQ4F+kSg8Pg3IO0dhLcpO+StAEai1jN8CAwsAeVoId\r\nLuKIYrcCpiLYKlsDP7sjGfFT5feHibVwc2Al9641U0OlsXksV0hDJbvt7859\r\n8LKAvpF8nEmxcyKuO59tXhDyPPfw452H8esQ2GhHyt/IYedAOiMSetAzd+Dy\r\n5nFT3DX3mGuw4nYMHCW8yMOeikJaVG+91qijp08vZoWpiZfGB0ncZpiEbIvA\r\n6/kbDh09kl8okHpqkKE7qLO5f0v8mNzTkqXbXo/68HBbIzE65jTxSIjrNCqV\r\nSuoIq1aDj6wJvzGqlF3Qzeh+Jxgwe9DWKfJBdpUjGlroRkiNokDmoHOMxA6E\r\nZluy6f76agKAOTXjIZQdSGyiaps9f7N+35ZcLDNsPpnVkX7tysXAgEOHkeOG\r\nzuOkNp+MmK9U9zexb/Zm28gLBWCg2UuCA15LK6iHO+VU8c6WS69DIcX20JP2\r\nZHppprt4/bSOK1KtQaVBL/zgA9rri99Iaydj4rbu3DYkreqgNubLNcjRQZZN\r\nYhf93e83e6tJOdZsrMb4NDHdNB0LKkEGxgcUhDT+CLtiFV/H+4DyTc/6E65z\r\nuhg1ggDinl0nL3+scUZxukjHWABp0mzBvf0=\r\n=DkbE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663275008000_1663275244555_0.6873315725504547"},"_hasShrinkwrap":false},"1.26.0-beta-1663280809000":{"name":"playwright","version":"1.26.0-beta-1663280809000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663280809000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a93c95dcf7040a1cfdb240931697d8cba3c18d87","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663280809000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-qdeuZtNvWwZ950uyVvU8LKmt82sjFNOJPkhr9fAG+swJMufDWMeiV9L/ng5k+hO3Q6voLRaS4WQDSiQ/FNDNYA==","shasum":"96e329e9c9aed06e87a963baa59456b7f1e8a6d7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663280809000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDL5Ao5oPFXdASofPNJmRnCEPGdImiLyxj5XaHmx/MDZAIgBkbPyVdbds4GYtQQq52PvZDH//I0BwYcUKL37BWTiVQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI6tTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7RBAAiNHeDBNNMjX0x39uSxtitbksP80Mx033X8UhT2WEi4kdNXDZ\r\nTbn/x9fvIYpgbm2JQq47hIpls25nsoMQn7yad1EkVIPt1XZwLhMKlPn4jVTV\r\nP3dNMPtGL+dFZv6xHAlol0okG1CMmFtZVM1b4Fk9ZIMKKOjHHQn959IY6KS5\r\nzrYsNh/1C74CRPqPB7oeBfiIMQVrOtb5+i3oEJh8FVlc+Ozz6aAcrMnN79Co\r\nRj1M1AXRUqp9PW0FDIG9cpapMpYtjBWluTUriTWEgAhdTaonxueqbmNTjQgb\r\nq9+4XFIpAa24sX82mBkPiB8802TJdd0LdbVWYs8nnCQiNN4gLYXW2tlXVxja\r\ncIVGAwyEIOsIBuSELKRO3geKlZNTyUfrFszNnaSG+hfbTar1tnLLQLT/UgYQ\r\nmhxdd/US3tiYWhPGCrKMAfUXC5Q5wIJKUfKYVCHWrc6Zw9sa0lhMFJUQIh0G\r\ndmMQw3Iwkw6tBompmfpyllQ70+CgwfAPK/F8MLeDaqsNRMroEOGDNCTD9FlA\r\nggk2m32B8H/OwJvpBugxeeJHjS4OtH4z1Yw99uKhVdQ7lNcp6YqFXPzHPBkB\r\nrMKzEpWSdVyBkBOTx5EUXJ/VbP4psQqrlz3W0iGHoX3wfinsnuQ87LE+gwwh\r\nDu2ELSFFK51aoy46fOOt5TsNOl8M71TL4Vk=\r\n=3MZw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663280809000_1663282002998_0.26782525129930423"},"_hasShrinkwrap":false},"1.26.0-beta-1663286556000":{"name":"playwright","version":"1.26.0-beta-1663286556000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663286556000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"68fd80123b3cb126189e90131b07c63ef935e230","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663286556000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-x8lCU2eeIY7dFvHcLYWBBqhnUbFklD8ZOq+d2iruIGKr9mUrug1/DSbphYVTF5YzDkWsoLukFwf7H2bQPkIatw==","shasum":"020c6d46a55238ee604e7119332fad1a970a5ddf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663286556000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpdVIoILvFv166I/BheRcgM19X4aS5kAjl7/ZGrwqfPQIhAJKXtRICARgTHJcEP8PriJYNJYJ42E63Nm+4PsdKt6Fm"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI76VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrqgg/8CYtAl1BIqxRJQG/odYvuDcZb8DnGpAhGhppsZRd/uy9dwkhq\r\nzEhB5KKJnkQ5zpikHI40HNBOfXUBgCokx95VZeYXQsG8h5n10GuWnxX5jk5e\r\nySmvoMY4ok1iHVASQvZq7sAv2GS49Yc96LQZEqj/hCLKZ8aIS9Q6rLTK6yfW\r\nRUW0O1z9dihhCSaC7s1VoClHyb1xYSfBlcAXLAAiPPhlWg3BWXlvUiCTKLNe\r\n117ZstVmZqMmR3U/l1shPvZEKtDu6C44DRVnl2rXoeVmzTQdstThVkOhRCRa\r\ndFRLLda3CM/YbYxb5o/huCsrXQhMWWTdtvJFsuJ7LxV8gffN1PPnLQXfJZTz\r\ngsgE1x0jNGcQnd9fA9nEVE76LmwPSsgY0PG3j3tyHV2Epirk2nWt/2Y48q5X\r\n4DzVLNC+VdLxufApWek1Bqg5cvauJOr1+5QEKEwYZYxqOQ1lc9SrigUhzxs1\r\ni+4mr5KU7f3hb1fK3fMxZ1LquoZxvZZv039t7aY5UvOwvr4QHsdu7/SinJkG\r\ncVbPuko9KoXXtXRoE18oJNUZqe7ePluLKUOMjxfDPMaVWpYEVndDFX98G455\r\n71tzjn/XbK9CEItz7DqJyOsbFcVxffwQlAaE2N08FFR90+YlvaCBr5w8POWs\r\nLo63UEiiI4kOmhOT0AXWzrBx1qH6eQlGGZw=\r\n=otuP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663286556000_1663286933258_0.385717612974098"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-16-2022":{"name":"playwright","version":"1.27.0-alpha-sep-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"43304e980d1164c55cca8b871fd76546a133013e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-16-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pcuu1AisdF9uwP9VFcgtWWCFjdaq3+7rMNjJj0/OiDu4GktdLpfRkRY3YViGyC1XLLyrl6slZ/qZMyrYnfNrtw==","shasum":"9a3caa2eeb93754db0ce41e5c6c70e3203902f40","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-16-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoErOSFtUGLAivPsxFStUuR6hlTjzwzcNb7FuyCg3uxQIgNEX6I5n+xOYe3PliFM/ixA8JgB9dw4+H9bJaJXpeKTU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI8gXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqr9Q//V4ISxQiVFqgYWI8YovGvu4CKGZzMRyfREhGW88VWWfBKn2wF\r\nRVfeKcB3+QusyFbMYfR9fyXL/U1VDPQBMI3kaX5G8icnKeTX6+X6pi9WFVZM\r\nf6ADtyTE1kYG11F49r+Xs5u3MTjyfAWvCjv6rBjXGfDAfrUhrlmoLekDsHNP\r\n3WmkshNkvQ2eFEi25PWc0PGPnFVXlw4seVytHozAM4O3LdTRYkDB7izyKy/b\r\naA7DQKmgAALOT0JuTAMbyxSM0uvBRBgX0xfpmidAoubAH6SSWlrFkRBtniv3\r\neNXLkVO9eUR3GWPw+s2rUzriM3NV4ZmM8im+PUWcFSSjZ+XIUcyUAp2ebe40\r\nk9/qCmtZ8Ty/owmJYJEroR7NbCG/1gRakNX5MsgJDLCy9fxaelC7bT8XgB0S\r\nQbTbIzSdNTCy0eICzjqwqJu12cmBauSXSXYMyu6Ix3Q3h9CzG5cI6Sqlokt7\r\nCGZo72V4/G30xkdIT4OZa6uNPzfSQTnvxK+8eN34ycw1Oc9HFa/XGV0oXuGY\r\nckSZEWAoolTVD6SlH40yAiHbaEl8dnxs/uSC8iIhUA4IupQMWiT5rEZ4b18J\r\nus5uG9nW8uADhM9480kvGVXODQgKbncoep8A1rbTuX3WNR9lnSSYDVWJSAdV\r\nYLHQB8kmLram7q1ZxQ7x28CP/DKcx610+EE=\r\n=cJEn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-16-2022_1663289366839_0.4875207259948757"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-17-2022":{"name":"playwright","version":"1.27.0-alpha-sep-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ee83694372e2cd8a03131c042189a5359504f1b6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-17-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-BuX3FIze9g8fBX8hrr4KAFBTtGL+aollsIn3E7WdnBdgFDnQ1Kctj2kVjBU0TJXsc0fYw7EQv4hvp9exS69p6A==","shasum":"a55256af4dd6a595c827ff731b61cd4552b6e0bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-17-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5eEkOvpWu2TDI1nxrIRscnN8RJCWtj9dY2i6nNQs7gQIgJUvFnqM+v2HseuDiIruhkQ1vG595y0r9VP8yjWkkL+A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJRUmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoU3w//WEeDV2Dwel+OYVSfboPE8XZ8/y/uVdIvrZkiKxOKyDGiMd2b\r\niwgbjgyYqALcTuQqB1bWTNT+l2UndrtEUj891uuFeRh9hMMVXL3T8uITgCYN\r\nl0qwFp1Th53SAceJM6evFA43cz51vh8ANWzldy8j9wex+qrEjcCsiQmNMEUG\r\n1n86dWZa+o4JFHCRqhtONUU92DDsbWHYquWRHYvZkGGlYtNCgx+VuCFP8WQs\r\n33wx3Ht6HoUpSuUczFaMxHDRDe1/cmZB6W7r8azyjS/pGTZiUaEzav/MXC9t\r\no/Ox8ytC6+Ghvca/YU5Lf88uaH0Qg7/QATXy3d/Rb2P9olFjNCrKsXNMj9kY\r\nyjin1bBTGP63BfEb/oe3Qf6Lqe5tf/AdeV0r+bvjbAhKVroiWzAI/MkYlCdr\r\nPIQTwmI1P4rX7YTWQylNp13/IZ9OTxY/Q4b+sJDRLEn/b1oT1J7ijenyvF5q\r\n3N5p3pBgPPVTcMe3Kf3uudln4rMsQMdhCczDPvIYvb8ljIJerWXjuSsK1HOD\r\n2DY7u2TxrUKFxMk0axGhP/gV7mBsklN5SOhOag9FXL7fjeh7EMXT23RyChn2\r\n2hZcB8EZgMRjU1WjRbhLmZqj2ZdKjZgscBcROLbICRBfwbRz5BR5H6quLuHV\r\nTQ04Lng/4Wa8XXclvs+/T0klYtO+3nL6aJ0=\r\n=h4fC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-17-2022_1663374630734_0.9852139179371191"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-18-2022":{"name":"playwright","version":"1.27.0-alpha-sep-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ee83694372e2cd8a03131c042189a5359504f1b6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-18-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-uFy9oIYIUhLOBS1VqlQwRTdenKaJiiS26085UKAmqq5BNv8kTWWZwXI5p9B6eR5+V8XM2bw24u162HEoutu1GQ==","shasum":"bff6ee99527db6772dfa6e4c9f8579f3b89a4b51","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-18-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpMVaHNnZQ6/UeLfeeycu8CT+O09yuTjuQ4gkoAf17FQIgKI1GfzwwDQl0GplHWXC80QkprxUGUiv1DNlW7DLk9NM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJmfyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpF1xAAiFrxgAosBFTXC578EzbQ6EtbzPB08xRx+mCHB96H903bn7Tz\r\nhnuFK593p8+SCQtlcIhSfRDYZ3S8yvATVs+fxtBpWZWiKCcZptlVkRI6EKUc\r\ngWauuOFGArvv0Ro2d3DcYLpPdjWhZy49+vyR+J4R391E3KsUa48ynP1T0ucS\r\nM6WDTiohnNJkxEV2+BM50HEsWxYcUF4YYj+DoaS3pNXEF8p12xw6vzT4vna4\r\nr81eOCLLs5Dc/LXQ98QGMOrMjvhTEYE9L9yyL5A4WTJQI1Bn8+1zdHie/ii9\r\nObjj13aaHKQn2rkF9G+VHZXdRicjo9ekXHJ3qexXvjBfcN/G4kd/hcXYYuGu\r\nrlYsSgBQDj6dlrxRlreKX9ta1XOCdhTH+Phrs2T3pIGxA/C3F6DF+cFQ20vY\r\nGMYgEhvRU4hoJ0G8sm9X+ygmz8iidj4u76gZw9wng6Ot1+00HmjngGv/TxRr\r\nrOkeXbmDXmtNVOEG2Smzjm1zwdBEGiiZ8yfff9BBXggaP68zCTmThnlP3QdE\r\nyBpy0KYJVn3ftKLcUb0vqax1FvefKnp25hG09jmYuTK63X+hnCyupAwhbjPT\r\nPM/q1ExS+AMK1h+vuAAVmoThXEv0g8asGzjDrKz2BWhxexBQUAC998rok6q+\r\neAOpYJi5TPWDkwOIHVpqT33B/KDQAOztUD4=\r\n=jzYF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-18-2022_1663461361960_0.1328392185694487"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-19-2022":{"name":"playwright","version":"1.27.0-alpha-sep-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ee83694372e2cd8a03131c042189a5359504f1b6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-19-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-62BNcEchEnR5UsCKCDvvqqV1NwTv0ys0kGTauCCaK0U4O1lortkYJEwzH2uh7hJ4EXsijlgd4I+8ddde93ji9w==","shasum":"e4c0937f714ca0c567f3ab1cec6e63d8259c8f41","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-19-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAV2vF8ulnP4lg1lo9q3964SU+lrx7lL1Fvh4I66KsHmAiBsxctrxySxym4jUlLGLClFHFVCw7gv6Vm1D9b8xnyZSQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJ7ivACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWuQ/+MRRccEv/wW9dsMOo6EAC3tT8LxdJwnYI8nLqHu8qQSuW5/VR\r\nsrm3qG5yTwIOqTKbijA988oPtYGW7TA3Ss+rOqTjDEU7aqaNv+IToGv1Lkbm\r\ng/+x6/+mZHhk8dZvVzLViOAnygwYRngbR8V4wOtbYhZS1aaTTExfVq3+3rfJ\r\n0nVVEVeeJwao7/WXp1xGNdroXdkd36kaTxD8JxYVPG70co6/eA6Eq1PBzN/Z\r\n/l+V9MKhYntW+zxpM84YqmBI/QLrE1jAr0kopu+iVaU7ztIxJa/mBApQH1E4\r\nIROPlz0clUpc1dlaBLHYilfgpkZ6oyt8WVclWICfSXW6FX2E24FSl/hijEfJ\r\nqSTK2bti6hC5lWJQwbwr5aKBT7BnghrO0QSgP+LbbT6rmqtEpYFS5pVefmni\r\npZ34CXaOzUUafDCViVbVnnW4NawCuEq+WlFpRdNPpYPI3/kxDVK8Bi4cwTC1\r\nfLo5YDxedFDyuBehyt9MYf+H0JpvnDSAwDIIL5BfS2iI2sqM1auISpgtda6L\r\n6Qpebopy7fe05gE45i4vIJDMDBmMmnu3/SYRaFhQRw244BupFROv41onJt7b\r\nmX1bKs88MSouchsx8fDyMOrneW4OMQsCQ78sqe9A3ynQJNHTgfDc0PF4oU8v\r\ndq7M6JyDOci9lhdb2Qh3q783T5aEPEBZLKI=\r\n=VTwb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-19-2022_1663547567665_0.7951831513526371"},"_hasShrinkwrap":false},"1.26.0-beta-1663610133000":{"name":"playwright","version":"1.26.0-beta-1663610133000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663610133000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"48e97d8b884725341ab89254f6f92c18cde04534","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663610133000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-wn2oMlTYgEu+/NW4Aa00wQHYYE71rqk5TO7f2TWIoS0RJ/PQQq7Dq0Ojsgz0zw5fMNHW6LTRORiDeCWy5OPPtA==","shasum":"5c193fbde9e5ca06c11d748f47b84ef4a8472d0b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663610133000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY2c/E6p8BIvgb8D98p6Y6MEmWg/y/c2/kXNQO7wWJqwIgcz8rJGRxnNuuNQkfS+0fTYgbylecOyM9u/BUrDhq29w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKK9FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpt2BAAn31ompI6lZYGpbPFBTq+4XBmUjsehShsBiJkdX7B65hwy4f4\r\nEDOIYQVMEFFXsBBjHiIM/QNmig69X+7MBsUoFDdwp+V2yFucTmCX3pg+OmHU\r\nWjQvho/o1xGUS+am/oAq/aHM/HbWQohGgnR9AGuS1IHsarzOBr/+6BCmXbtX\r\nWcJjEQG0ETV39lEkvPPbbFMPzjz2vGViNSg4OnXWfu73g8Rp60yiKvR8M5aY\r\nA3vgt1e+1Sz2c5px+7QEqcajSSanX9PGd97orS6sUVQ/N1WiSUSvQ+h91adT\r\n6o4znzstVMcDctzZII2TzStW/CAQ0GZ5RR7ewSXipcSEMLJBosJFQrpmJCmd\r\nC/aVrYWu3RXnHfNO1aHuMKeceO3LM0WJU2Eh3vljhtx9qJvHDVTh6ReDCgzz\r\n9jo3CitKV4oo2VxbpD83nIC8GAhK2UVu4cUL6E5jXtTOVfbT4Qnc3GP6NcTG\r\n3iZqoLL7SHofmlhTiD+ODYLvqLpBW91N9+JkELkwjz/C3PXXNLX55vHZk87h\r\ndH2kiAvavlUetY3CSa2X892RslwuIKZNnfuA6ELXcsFVs4ckMgqB+pW2/Lsn\r\n0UlhNmgS/BDvWRkBTLFVi0BAJ6B11IBoQZuZpt9WgumUaWbvsSnVA76FqEC5\r\njr2kAYcpLml3pmNlxjCwudgiUjLv9sSRhp0=\r\n=g5+d\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663610133000_1663610693382_0.2776375436417191"},"_hasShrinkwrap":false},"1.26.0-beta-1663611269000":{"name":"playwright","version":"1.26.0-beta-1663611269000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663611269000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed6298793bd0306085f8573fa401598fb347381c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663611269000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-zWaS7Nrqi/AeA41/0JfBwAQo2nRCs8eEkRcLKWpj/VBDdpHVHifvBm71i00w0IdX06oUVnY84wHT+NS1WxtOhw==","shasum":"1e3986aa6736d87c563107e1c42c83d54a40a5a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663611269000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZsuWVUbPy2xKgTgFl+XV8oPc0laECEb7rqA6CCKQa7QIgRf0wPrXTzP6afhRHmlabwvrWTnBu9zGkwBkWHsG6ZYo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKLIsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp46A//U2BZ/0yUW4Ep1vjFUJy88lKP6SzflymtFdUVVzP0UrqQM6I1\r\neXW+z0MLB0VCR/ZXI+o/2hFdnDa3j1QyNEhnKFoUE2x/GTS20UPSXQLrkSOk\r\nwARBmhLfGSV/KoCsuPjoVW1X1fIvEi6wW+z2tDlMvmCaUOE1LtbYDF4Pq3MK\r\nKCpFFRs7EVZBXy4vF+QUdTWzeLZgrxo8NCW0WdCVOlEGpU9x6UuL34iKCHci\r\nBX+UL9P/NfScjnC1PPI/jnLVfLxBrUtp1Swi4WXd+Bz1aHFE9NDjxYbnwnPs\r\nYjE4EZZdS1091o4bu38LaFZvRHKhlfMCQIltcDayfYM2VLTIn8qu2jCx8rh3\r\nztTD5Ny5nUnt78M3456H0tHPDEa7agqZvEFv5tEkCVS+SdNIqDv9nMP3/lRG\r\noqt5zAqcaIlph+c01lir5tvDnh7t88SQpNFbeAufYwvJspTvBBQsoZZ+IrIL\r\n7QZvVkaq5Xf1iY7E6CfqnfkBzam2NLIXbrGwkd6YGYsAst9fMG451PIvl++Z\r\n8NhR8SCqrw35VzZcMmJ6fXRIORqK+x8hCQMh2zPcXJH65T2dX20qd1y9vlgz\r\nxUTMmqz8j/cpyhx0YX1XKX1xHFIkOIyrpJQIraU3L1M5EP3Y356Gi7foRFF7\r\nC0WvUOWtbpXaxay7sluS1eLE0TiV0XAnVeE=\r\n=o9xT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663611269000_1663611436441_0.9264274612831904"},"_hasShrinkwrap":false},"1.26.0-beta-1663611569000":{"name":"playwright","version":"1.26.0-beta-1663611569000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663611569000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c48b5116d8dd129df60dd181cfd8400eccd07523","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663611569000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-GRIn67rH74wQwSp4ePfkKJy/v8eh3cMLQ4bVAkzMLuBJHpPsck8eUfj+n1EWBTcEbbeptLPz/Y8HtDTq1DabLA==","shasum":"4bdd8a95bc3f3e316b0de46224c4de5ed9796743","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663611569000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhNklJKevSNyQLoQDO1SndnEy26AowKRGkLFSNFtUJgQIhANA6gkvsQ6WitGSWsUdHT0fwTI6AmBJZajmXcCw2b8bu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKLV/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpU+w/+PFwO0KM0pNQKgOJOBvKQBawV14o1eROwozkR67LTBEgziXy8\r\nj0jvuk5WNDUO2MXQKGzmrL6xVH4Bv+IXfc4u8LvgGx3YKVDxY3DiHuHxZvJj\r\nYyQwNH16WdCAvqoSXoojJ4mU4CRqwgDGCF0xyGA7+0lo87w4vOXmJC075v0a\r\npsaTr66lpy5VDkNhbLe5A5yS4UpB5KAjuMCyqsZQz7figEMKphOQQlqGAi7s\r\n7PQsn3MblGe9IudTvWv4Pz15Nl3b8wHATo87gvVGmGhROaZlDr68dsFcojW2\r\n5eB3RGju00Ypxj8Huz7GreizHRzfU8OgOD2ZW0tnBPkxVZvp957mj333HBvF\r\ny8u3mHKtBY4A/dspM0sQMC2ynViYct2EbF+zi5zqm7aCWs5WmfQPJkQLGtFx\r\n0ilb/U5VSBHPdLqTNYbKcGZs/P+samPPdRbX8bwFgRd8STtW1roH90bMZtgf\r\ndTaKz+eYh255URId8GXNE+Hfpv+5I8VPDwPEs+pcPVy0CCX4CUeFt1ug8pVN\r\n/G/2V+CuZ+7mCQsWGr2mH/lOocHbEW5y5GgvZviBieh4agef8yfi+JgFmhpK\r\n23cs/QRDLb0cszK0ePnN297ZPwGgCKQd3J8wlrWJb8kV6jnXrQLHh5bNo5Ob\r\nPLbye4soCsrfhrtesZU2GjlrCS79axjA7DI=\r\n=5SlI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663611569000_1663612286813_0.0515887516539264"},"_hasShrinkwrap":false},"1.26.0-beta-1663620933000":{"name":"playwright","version":"1.26.0-beta-1663620933000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663620933000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5321921712683fdd9c57a9c990b2e394e24be12e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663620933000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-zdoSL6Ff9pgcLCFFK4jkpHOFOKEe28uUQdN80zUQHMpAWJSf1fW4mtVczdHX6Mp9BVEB9eYLRFv9lnWiaGBuXg==","shasum":"58fb90994c1d35deae1276b0efbf8e3d316fcde4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663620933000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlSOTPmpnHkVCV+IE+7j2/NlkHfHmM1JFVdzoxZnYyDAIgXeCT0qqYSfFCAQxIlYGQsK5/girYoPqJ7Urrk8UCzvY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKNfHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKAhAApKYcWkZrI379G//qM8VCcgfpO+sbpFrrLPI2JSdip9l6k62E\r\nWrZT7iDi4T94jfSqt7bRezGAdcq9FDaWWXXJ4G297P7/u+tk3QgVi+QwPFXc\r\nLbZ5yK3nBzHfnjcxnEX3hEOc+0BUGP8iFAXOJ+t/XiWDiRWSe/x/kdsU0Imt\r\nVNMKPncZF5Khp4jm6qbetOOaOSsDsrvXdvdxkX3/9yCbsCUc/gG0hchgerIr\r\nalk3Ho1HDKFiNLqYoPGtSMPYEzEil+wy7ShgdjVB9bGbF/mcIx73aFCl9x/j\r\nak+Ts7DVm9c0qmu3j8iirFxS7818f+erIXc1QVcvB18IVeS7pH4q/yiFga+q\r\noRsJvBsbhxsV9kek8eWsUrRLm0s3VvkryNmXnnbKDX6fVNdc2XO71VKaGnzA\r\nYqOs+xuKCyivglJVy4O76bL+4TIZ0gHuPRLShK2iK4ruV0OwhiMqVDXT1VRi\r\nlQY1969hw9sgDUkGIhf54EFAGtRQOoTZkTAClKbNR0EOIA/jewDNtmzmCJsR\r\nETa6CLPI6CkcxsZrMIURtIiyS9J4h5cGWIPstQOToWQN+YzLbHttdZNtxn39\r\n33mMa5mV42+63ahvCwkm0gjD/4g43q/Gqk44HPp36TKlnJwrjwvh0/5TW+Rg\r\nAJ4wRcbABvG7ZoXtKsrkYWdStl5W+48xbJ4=\r\n=Y0QN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663620933000_1663621063702_0.5059041871591516"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-20-2022":{"name":"playwright","version":"1.27.0-alpha-sep-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cd650c0515ab1b1a2ba1fda7590f09c084e0721a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-20-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-+aBG+gBt8m3h2ajwtfYBy4r8DPuARJItTihJcJAqttJPaQL6YohvHm/gGP5i6+OaFdCXYAQtIfhvnpm31X69nw==","shasum":"164fae6931bbd68826ed837012220ecac6115650","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-20-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9Vn+UHrxMjTWJJPOg42/a+Y8Ig9q+urpI1XFu6O0HEQIgPb07rXiA40UatUcel+RSFuDuUBT5M40Bwc4Pr6eDZes="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKQqYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZ4RAAnJre+0J3YH18oPAIR4B9/MOIDBIsHZmfWEkaBUfAPCL+YLXX\r\nnfGKdpqCMr880u2bTgeZUuCi2ACWVeT69RvcQHPuzU4Qo27t1RHMa915kUoj\r\nI+NuTdMybo+6SN2NnYMhGfruAE+E8mBIFCSG1htEmuRQSyVzz3eLPjVGXqSy\r\nWoM9Z2Zp65dv7Rn3L92yvYuDJ7RRAPNPkjCE7x/zxHbULjBycJPw8oLQWZ8h\r\n0u9yKVBQFJxipsjko4kFNRFjx8k+K+HjZjyq72WfbkCSu8nSCwcVlRrtlVph\r\n2+O0zVlEpb2Mm0JL/s3/zc11RY/caObYKZbjkm2pFEiE5cVR9T0hUR0N5SSW\r\nRIK3XLrr1WCMo+Q8S7w3+0hfdHPvrYoE40MI3N5WmljowRHzavq9xy//GsJn\r\nj7+RyEQJ4urkmWT+SEl7bcZbeNy+qdZK+mxRHwgeuDTc9gzCGjWMq6kzx8rz\r\nm2QXOxSfem0sGyTjWIA9s86oiYBOVW65nqjDT2MKEbYOB0KBW09ZKw0rwD9i\r\nwyC5XuWj6NKYoxZTasT8fGUXduTiVGzgIpCivcmhkPXkxqftw1WUjWapLfcV\r\nRusQIOUW0OEhbdg4dAoxCGCPSr6NB0TzBi0YcsiNIAe5dwvOCOFE9KZkPDXG\r\n9rv7n7wFUm4lV85EVqarC99XG00Gb9kKBfI=\r\n=vlT0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-20-2022_1663634071800_0.5512877227280504"},"_hasShrinkwrap":false},"1.26.0":{"name":"playwright","version":"1.26.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0"},"types":"./index.d.ts","gitHead":"5321921712683fdd9c57a9c990b2e394e24be12e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-XxTVlvFEYHdatxUkh1KiPq9BclNtFKMi3BgQnl/aactmhN4G9AkZUXwt0ck6NDAOrDFlfibhbM7A1kZwQJKSBw==","shasum":"b351990ff03a7e422bf585233eb53651fc363896","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0.tgz","fileCount":9,"unpackedSize":24248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD18ZXs3VoaswfemxcaP2tIQoo1TzdfB45uLj1HMo6pBwIhAJALMnBPQ77qUBDpDTFHFN9PRCHuotjblp8XlNpKMCip"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKex/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqixQ//UQFvDfsTrqiYFJms4cmlXHiz4bhC0I9rk5+u9vTf84QrShez\r\nT91QE2rYlsizj9yqGx19Jd2dzH+nUbHVe9S++AXS3Uf7rAXCKtEhqxrTgmGr\r\nUSdFcYKN/7uJy4LlT9zaU1EyF8gsQv5gPme6nu/+pMelGnw5USzY/gOuHstD\r\nq4jknsnj+3qx2qGkn5jIPXjIvaoAieefBWAvaQuEYs0PWV1F+Rmjak89XmA1\r\nchomZRxAJpDG7BWtFBeSrlggtin8a+osVD9tVKqH7xFP2yw15nKSPYuBWlQF\r\nMM8dR23l9/mPR58mxXxZH9zFXsgmRN46lw3P6yG6TUXzgb1yA3YfarOzvqnM\r\nze2KuB3yWL9RxHIWh36mmH3KcvPCbYboTfhggDuHS7Yvh//4fTKNwNjryZDN\r\n0qTnXlaZIpRXC8nKJWchIClRMy1Ht5yRKWhSZErmaEudkwNla+4ucJL3CX59\r\negHo8TXktwLnq/ciunfeqWShSWWYCyo2PkCO/G6Bt6hwLlPoy61skUHyGA06\r\nHQmxWZZXu5w1JKvVBRFSDb3ChGqh8I1tzOVBS/NtXzAxSmvN5Re6mgN9jB1o\r\n4EWdioFPqxZhi4EHdl/9KpE8NyWD/Y17lAirXZvkpO8IEAUe6m0r/BtQpOSs\r\nGvySrVmD12KKrejR0OhCjwJpqEk/P7wOsQk=\r\n=BHWm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0_1663691903337_0.47964376432447353"},"_hasShrinkwrap":false},"1.26.0-beta-1663707906000":{"name":"playwright","version":"1.26.0-beta-1663707906000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663707906000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f826040579eb11bd2ca7f153e165466d2d2ba404","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663707906000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-1JLgL5meojVLSJdi39+6tRCW2myH4oi7YkkgMw426TLeLZw/1ugqBoesh3mwXWu8dcQky2qutJKGvm6pk00TRw==","shasum":"81d7691e316e0b9c64c5d29a3fe0fc9dff30a2cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663707906000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCItUJjlQmxuRPBSULhqi4tTjbGDQV0/47lS9t1616/2AIhAL++hb5yNUDu4iOEY/518+Rz/dfpybFnrn2mtyc5QCLp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKjK1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1xQ//cx2v++CASRGVZ5/++2w/2yNkM56Gh9FSrIqLgzNSiaHexV4z\r\nOWsrE8folcjyH5A/UK1xhzG8CT6lJqmWPb5wHncxppM+3K4jRerkvs23ea08\r\nY/GlvwIECZUdBV7cQdHRtiuWbBwIslqJn3nRCpL+8TvFC9mVRvqzMJ/ObiTe\r\nP1TdrYUmZItdV5TwPh31se0H5Q0N2gv9br1tmonS80+Kj5LdLT/GPtlUerrd\r\neCVFE4FPkkm7qf1V8qRbr6e1TxF9snx4bD+x/65Ao1D0OyT2LrKC5cnbT56f\r\nt++JXhSUC43BGertSvB7WsqD2P/3zdvrqw9KWUQe1vir4+RrdyGkzVYYEVmx\r\nqtd/m0ntYmaRkDoyFejcTz15qm5pGJYM4uZR8OPa5r1+Y2hxqIeG8/6uXIZV\r\nGACH4wymcPby1asdssllrX6NTAnXJteW357wWw6BRRV9T5My4vBAvhPKG4w0\r\nP2PjYJauGkYQxtJFXa7bBEtiSSEfRfWFbtJxdfbb8ypWJ6jVyRmrk2UkDpX7\r\ne4zGas3Zz7pz4agrFRDfj0iLYRshNMP++bn3DzheHUS/R06lTy4jtx9oaJCK\r\njS4W2U6EB7Hs3+mBYO75HTRWvTB4Oosbi4FZo8MSzK05satX+1AwcC56qJQu\r\ndQHcwPMnS9QccYVDNlbf/JkGNNa+OEpFyaw=\r\n=SSVH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663707906000_1663709876685_0.8277007691095553"},"_hasShrinkwrap":false},"1.26.0-beta-1663712360000":{"name":"playwright","version":"1.26.0-beta-1663712360000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663712360000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"58e68ef6e0c90ebe40544dc69373c1783d5e9959","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663712360000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-eW22DECSoPnYo1UQEfDE8T+KOorEbQf7cnZvBxxpUVIoWD1IQV5qcgiJyYE2TaLwwWVi4/gf4QLAezJJpTRTSA==","shasum":"5570771d6f8b3f12483daeb575464f1e58ef7554","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663712360000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHcTFDYUWyQw4ytA+0HQyM8gp+7ZjZ8ZdvBCf3LWX3SEAiAQLybnxJzn3qlbAp0BcBJ5kiAimC6SgB7wav8MbNZJBQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKj60ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDAA/+Nd7sL+se0Qr1lEuPkVLknYWt/IfokmwVRcaBTy/sUIfuJupz\r\ntn7HBq0hX36bYVclvU+TAKmYNZbQ2z1zeSswhuSGDepOD89wpyc0oCC1cWiV\r\nWwCcC+TCmoACiJuKmRnlnCyqZVSNc8gDDeAnSUzLaIhbbQQTvbUI1LugqeED\r\nAuN1R60pRYUJipzyy11LerdCjFmENc5KDjQ+iYHki/l36bLNcr1wlNVIFMPt\r\nIfvJDR18izpUTFd1wqHeS8qvv/3iVJQ1WlhQJTCXnEnwyVolUJn5CIy+KuBF\r\nHPDHhLogwkRgme7YRDxn5aLK31YNnzGUoWY3jXV0bq1ZEGRIiQqSoMlsqHrj\r\nRPBQSkt12gJo1BK4tskvhx/asIec3nFv36jnnF/bd5cG98Ur6povID9m0Uxm\r\nW8c7w1qaKto4zjFW2UgbS1gH7ddUoEanVIKHI6Fak/xovcjbjPToaCujXhpS\r\nlc1hXOKNToSjsgWI14BZRMc6boTRK6xH98pCX7gq9alOd2E2yq8S78zptX8q\r\nLxqD8MRUMW/RsK4hgzpgleqJtLlw45hq1gUNY5Zvr7HAy6NUKtxV+PchSWFE\r\nhoI73NqY+qAub5MxMvKE2EOGZspkskoBiiTetkUxeWwcj+/Gve0GZZhNgYin\r\nEA4jBbB0P9GRFPwVNRhGj05P5b4+xV0/8VY=\r\n=/vDc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663712360000_1663712948035_0.11621828385331878"},"_hasShrinkwrap":false},"1.26.0-beta-1663715449000":{"name":"playwright","version":"1.26.0-beta-1663715449000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1663715449000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5455a5a5fb3e1f29f1b9bbd85a4bc342ac73d189","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1663715449000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-ZoTi2p3MmrlxKuDQgTSuiLgKvkax46/7+Qt4xdX1Q0gZOaV8dSpOyQc9ZRLvihcBtsehpdQmQQ3q2RCN6yy69Q==","shasum":"255ff5ee240691709ce1f1b2f2777b4ca1e4ef13","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1663715449000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzOrAUJ9QcbogiqqlQf+CvPHYKqydYU6OJbEpB4imSmAiBIwgYpsvZnKe66vBOBMoolG53TMK/WWHblEVhuvv8VcQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKlLuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrI3w//do4JfW0Xhkud4Sqy9WLrn0UGTMXb8mhehsVNeKAJ1zX7NJGG\r\nybBD+QorwB/qhs1g/o2oRoMt4BYzs791fbBHVMzma+VQAIivibCLSEom6NiZ\r\nd/uEfJQewIAYJFLTlBT5WeUCRvwY7Dz/ujj13yavllIrFVVV4g1K1aIEFtQm\r\ngFiDV0IqWdBC9g1zkXQUcVAIc6BR7ImupzSHUQBMXJRn9r9qEJEZrOTLwcvY\r\n23ZPnzt13dwbHQ5MeCQFhDWxRVJHWF2c/sCck6kMGmX1CyF5+tHYtThQuQUG\r\nMFAngR4iF4WmNpgzLp7yUg+7oGr6IQV7C483jFFSUJw6h/Byf11oOHLYzmGU\r\ndYnGUpJRhj9LU4aY5KJomzolqEc/hg5zkevE3WTX0UyPAB45mlkoXb0Nlq18\r\nMdmF5e7PNqSjzaDLL6kh4OOn/e0t+M7DWtnNeRNnrMdMosxXiFRHOu7wTqNT\r\nyLNuvP5ZM+c+ZbBPty+KF8gr77e/mbxNmv/zbP/5FgpC8+scfzePSwMdvIHQ\r\nB8rm0+ZrYjpx/c3Y/CQVr3rAbMy0qlhLsWc0GXkLuHoUiQDkz1HxxL4Le+7d\r\neyvyWsbqFZXihV1ha3ALwuZBAD2HKjcsMfXXfplyI91MIn8QFB4oVqg3iyHA\r\nOrLiRILVt2jX9yPcHoyizZBPZBO/X09tnZs=\r\n=jvvR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1663715449000_1663718126429_0.07491587525640964"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-21-2022":{"name":"playwright","version":"1.27.0-alpha-sep-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cd9a5946d268563137ac731baf38960db0ca6894","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-21-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-YWnEUCIvAmziqzZ8Lka5p3PBkYBs8NSjUXrbyqRpB31yOWcMpMFYCdMAkonZa/nnShbQUdKsA1K2jFVM7X+bvg==","shasum":"56f0c817b8f23d8155f21ff6c38e1683b513e5a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-21-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuV3aUnbBt+QMJ+bfcVx80Rdco+VRZnGmMduIlesp/TAiB20ra6msjl4CRWAkU+udjVG0686Io32e3eRCfH0iFDcg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKl5JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrALg//QQrC2byqr1urxHvnZ8vP7Vs6MM2TwVTHkXKUxcCvwhS/RgRT\r\nkG8mX+zsXZcfM8sAd4bLVOSho19dPQpX5T4i5dS6rlsqdd5DQ3kv2UsGkgBy\r\n/w0oV1O/TajEAXGSGwulnD5q+0v1HhkSqzFyWm1MCQwrvxAT1H7VtWldwyPb\r\n8Vlk01HtVmzih1myuvZluEBGNonq7ZTf25zbln3GhYwzbF0/VAJ7vBTrv6UQ\r\nwP2FZzBqvzVl0kMPrtCeSogm3KxFpIDuw4k5OH5QnyBJh/7e+26HWNANKuMF\r\n7dBCx2yGrxLlmJ5knq77/SA7i3ZQOKzw6Q1iptoeK3mnF0BeF4w77yQiAhsL\r\nKtFtQM/ov/SD5GP2yocKd9a21LSe9Gx+uCdbTP386oxo732gBWm+CriezDZp\r\nOEPjC8G4KnYaIn48VaR1sIDGp7RvlhVZoh0Bsws0FHL9OUHt7wndP8FfnAck\r\na0CAljmBIE0jZcYYuGKL3nG2TuGwoR9KciEcdN4KpQO6rRfnice3cy2jIq6Q\r\naJELtcV3iiVVlUd5VV6ZyOJk/WT6HsM9bbe672HZplJRr9fgLxWmfDSqKtm2\r\nsGwING3/GLYvDOp4xrIrADEt+5tZvDuZIc4psPZ67mPyzyM34HC/hFkxKZ/Q\r\ngu7Ocftihm3dHIBUFQB9j4BsApIvGJCCcmY=\r\n=2VUm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-21-2022_1663721033068_0.5882940137607173"},"_hasShrinkwrap":false},"1.27.0-alpha-1663789543000":{"name":"playwright","version":"1.27.0-alpha-1663789543000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-1663789543000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d43195860317e04f60d462df7fa180d791a9cf93","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-1663789543000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-HdfNCTkCtoNXBuo7ukZ+/NuW9YN/uUYSWx5kvBc/M1tj3kj5rXVFCJARv+c/slBK4SdXPgDm9iGLcGOZyup/iw==","shasum":"74b341f4118d633ac05ab9369c970b27c2703948","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-1663789543000.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHAZeMFjP7Xx61D14V6E/7akA0bVs5UvvZWEC8dbHE+2AiEAzGeEjI8wDozLgpQjG61W8ax/EKpnDg8zPxeBMqpqdGQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK3wZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwFw/9EteCbG3Y/EXZfcmjwHabX/mEE6asb6idS+tk6S7ZcIo1YfJ/\r\nr94aTKDU8Tn57nwYS8Uk71vzZMHMh/HndAisVBclK5tf2ltLI3Rxbep4EHRh\r\nxXJf4KQEapFpGyq8NgFIBGtKFJ0uXaUb5XJI5o6RbhwwQg1wtGHfBJyIgbvN\r\nG7nxewg55yGO08p43d5ZyCVpSnUDNx8OCUg3NMcBjj4qujRC+J3ec9w/vlxY\r\nmX11idiPbBg6g/g5xRpptiq9BZKBAurhp/vA3pySJi3ptJveBKN+CcRKYNj+\r\njN68+HoOflR5sI95z2ybBvKmH5g35FdUU7jttk1BXx6luiuKmDfnvBlhYkr4\r\nQ5X7RR0LkS767wKaA4N9PgSYhk7srqID/SPOfOaUjLs6a+ems/KhkgUR20D1\r\nz0kX+5ya9s1orLlOy9mFjcFeLcowk+nSHewbRkElRE9bk74eMIheOkatIic/\r\nj91ry2WdGGdruzdmISyXXmNCGYdShxXf4L1MOoHmpHr/6nE1pC94WDMb5h7K\r\njZm8V+l6XPXUP+cJxtsO42ay2m86MbbKL6TYBZsIpXCAGNW5T42O6EEUxZgL\r\nQfsIXWfLcIPIsICYN/vKErGtCXKCNiJhoHN3n8Im2c/E8wfUO41WG/WuOnR5\r\n694wptcw6umdn5caM4q/7PDLTO1NnbFAJdE=\r\n=Futz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-1663789543000_1663794201310_0.5983987489243137"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-22-2022":{"name":"playwright","version":"1.27.0-alpha-sep-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cb10ef3c71455c50965cd8632c47a98c90bab4db","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-22-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-l9NOXqFnbes9Gt52CdQZVOrwxln8UmUpa5lJiDUsyrvqfP6dzD4yCio3yuuR6xY3W1TnlKqKwAhCDrLgThKbPQ==","shasum":"05fb40c40f885c8da9f8966db1bfdc4bc4cb1305","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-22-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHIrGMC9IrtqEIIaIZtw4dNUTUXIOTq8SCeQhP1p8KrbAiEA34LvGCisIyLV6yi6vnxJfN5JegUbzBVzWHq8Io6La1c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK6zlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7Uw/+L+ibKr64zfv/k01Yaxiuf//2U/O22UHOpJ5TETIhdCTAxLYT\r\nnG8YZrIUclfV/pH/qTUTs9F/xBos20Xe9/WYQ1Hpz99s5UEDHzWN5j5iBH0Z\r\ncWrCyrAQe3VPhphlI5kS6LaSC/5ix5HjVTTUqLCFOgck64suI6vDBijpsduN\r\n5p+rD1doWYD2Op6VZXgGgbbvfGcFvnrUmRDZ95uygtH7kRc0QSKd5I2M3MKM\r\nXExkI5EKRQpLrVN6ldTHv02AssV//BGEsgth2h4pYPOwiX2YX2isrCCQOX22\r\nfD/eqInsmzGvbzuF0+dyrRY1tPjb9/wBQUxtpwVg2HnCjGcVJfGUNOwDVfQ5\r\nBcFY7oSAE20bSdICqgufG15GGZj/dB78bX49srAL75BVPUPeZ+dZYXLHxbIU\r\nLX2SJZN2J0wTiEFvIz2MKL6yz2ZktuWj8Q+9XoovDf/j1MT1CQHIu78jMiTf\r\n8qPbEyg3mPrRT/aELz/tA7JH0HHz3QA9wO+v5wvWyv9HgkgeZNK8g4tzthsv\r\n1RUTrpjfHFZnwQFeAODX3DJ0c0HRylkrr30MseV0BvBVhLTmTrGrmP0v/xW2\r\nVcW3ACqtzOq1Z6c8hulINxdxrKK7u+wfsSQEmlrZqBK+t/7Ms2Yv6Ffm+AQi\r\nn/NeaSnicny36ML5xJcMa2gRxUIGxOP66yM=\r\n=2Bxy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-22-2022_1663806693168_0.9745209425527439"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-23-2022":{"name":"playwright","version":"1.27.0-alpha-sep-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.55-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.55<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"04f77f231981780704a3a5e2cea93e3c420809a0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-23-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-aNR0NVI9sGoxsMU/NfNQDIC38MuTyjlGxoW1v4bG2ksJBJOK1UsS72UjDDwr0+nPRCDybEmNsg8GElDUnbUAcA==","shasum":"29bd2210a1aff38b89ca4a80ab2c45feadad196b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-23-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8omy4hGEH6w5WZmu6e1X32H/VSLr6uHgTyUAcNh5xSAiEAkaMy+qmtnhAFegfa73UhuPqdAeXw6L+eSaPDngpodwc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLP/fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkFhAAm5aAdAruYIDVF76zr9wXiNm7ZSw3zKzdb/AsvxpH71sYG8bM\r\niwn+cnWM87Z26NtvLpoXtmQ1ywMMMhKlyxM/10TTZitecwR6vLc0JPLc0RTo\r\nGzLY4ERmgLgkGE63BQnhnc684I41PHptm8RWdUkVtL4GZcSJrLKaz0m6dC+5\r\nI+Q8fyk1EVpsKDS3jikcwz4hRCYDDjtcEf2d9fVOrA6Jg9CDVvNKgh9fkkjX\r\n5E9T7isLHq1izTlXfj8Z5KDElNzQ5qm/nk/ZORIqknIC8CPUlvcTM/B09yW1\r\nGNagCMzu2j6U28isl1OVVCou3XTqmeSa/Sn+BoWwwgIDaahlpk7TUk/Feiir\r\nD5hhflJXb8y0vwjRgVZQHXneWYiuthF0FvD9oIiHT2yCp7ts/MtcOYcRalYx\r\n64VADwmzxY4Jmg5s0GAUQKQAB1S6CVIkSkvLFbQmhagLtO1+D4g0AVyYV/XV\r\nzBv0F6PvLILOjOfoz7YxDvZT9dnNqAJGCgx23ZN2sM8Xtz8x8OZiqv0kFjcI\r\npcXfkqq7R2r9dyChpNjDbLUMbI/fzsZ3IZwnBuEFpKntZKcpwPOhqkGbirp4\r\nlb1ZpU4Gt1ozelpBuEoI7Srb7ajMz1PZmJfeiAvltANQ38N0xEBwLSzhpSz1\r\n2Q49oL4Si/iHKrbLfyNz4DQa4EBY8+FfhBs=\r\n=o/TF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-23-2022_1663893471121_0.8271910421220403"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-24-2022":{"name":"playwright","version":"1.27.0-alpha-sep-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.55-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.55<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"080cf291915c90b1578ca8ef1c740c293a47e78a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-24-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Up8BgRzzEgcw11HUnJ5Lm0ju2XSrYbACQimhTndGah1ur6rBg9vN065OhXYAwZpmCZgNKJjH4MGGjuIDHYcgeA==","shasum":"63f689697f6a0b5a95b1ac9b6b712ddce943e075","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-24-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgd8+23F7MzEv7yVxEnDGzeYhMABc6SATvuj1xIDhJtAiATue0a6SaC3pGRVWJitM9iyz/S3thK7qmF2474k36iiQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLlEGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpldg/9EzUwgSYirdkrACxFNIyjDBhrca9VwSQyc9RWVq0vUHCmCAKr\r\nu8ym3dQsyKbKvPmidZiOZHpbiSFE2FKnoaJg8BG+RryFwSfqWx6oRclE6rj/\r\nKJRsRUCPFH2FTtlbvnGEsUB+F3dHRI44K3rS6vz23uuQmABpnq9jBuTaMO3A\r\n5T7y9TNMhydQDStXCA6r8EZ3S4e/AijJWiRF5B8W4/fD/QpHfEJAktT8Frbj\r\nm3gNTMMM//zK+WFK6fyMMJlv+xhNIuzFOYXr2RRsj2rHkPsC9OxRuil0Y7rM\r\nPeyrhymMcWgBrxOWMhcs/k6HwrUqi7WrSuGJr6r6808cYouAoPJM7dQ9Sh6j\r\nyGwQWZGV8BA1oDJ8k2CyNpyWOU3RGAcg7iIBvCzTLvhrHBnFLCgQ1UUAao/3\r\n9ysqBJmUGsq8GmRpzApTma2krSwZ6EkYNLMEwb14UMVB9CxZCL2a6A4I8tTi\r\nMdXAsO3hzoQoz+U1qp8aiYWlY1OUOHCR8BIbX8Yru8YoSWgRamwiHz+TvIJC\r\nt7om9h5QKSJ25LelFKMvwC8Q13JfFFYL1BXu8vp3UVLvD5Swp1L+y7MTX2EP\r\nO9Xc5Aqs0hpQjjtn8EpKpltv/ReBt9i7XjKdfuszvmhvw1WZw6akyICL4Hkl\r\njx/Oi3dLnFmIpUvgbeFJBSaibJ0agwg/ly4=\r\n=dumS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-24-2022_1663979782683_0.36223651315346883"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-25-2022":{"name":"playwright","version":"1.27.0-alpha-sep-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.55-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.55<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"10d7c60abf172b7ae23a4939bdc30279044fd35e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-25-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-NK40g9ixeweMugVpWbMCRKpgMKtKLUkuHh17jYKnCSQaazfCQT4NBw8FMhJqap9h4GW92AeWmEdIvHWagAgjVA==","shasum":"cf375af470fb5786099c5ff707eac356cda7fa78","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-25-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD58c0mhR3Rymfv05oGsDdjwHclnCQ6VfvMxH8ye0eB3wIhANZ4Iy2PzJM8tRlwA9mjDc/WMEYJfAZ21CWl2IHmgjto"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjL6HBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmppUQ/+PE85pICADFvlk1uxvCMuc6GHTnlh5ZiEjBZzTc8yngLXcjg/\r\niJ3Z/0TcbLPzRvJy+AFqeqqZk1KYqW6+bb6j7lsbCrE2eyHGJClvj7hdjx2Y\r\n3y6dPjs2OKxe7g74oIoTDLtJkqnqx04FmIjRlzVAAA6suGbnlkF+Uw9f+iDe\r\nWrQI2rQyNL6a8OWv2K7zygRAKV3UUyQnMvSaFlzS+bvQtm4IRQILoST2IHv9\r\n5lRPEbn+Q/Da4nNxNpwKXXb99DU0A4jDvbvjB2SP1YaA3dIc7sIg5XN5LFyb\r\nkxxPNcQ+W2yyCYBUDaBtflKbvJelXKKm7w++/sRi7Al/EPUqZXo59PDTVZqk\r\nEbJjRDELa9120I5CgGTo1ksZm3QjGy7BntFT/84Gr263c8mD7Djau//Bn+Pj\r\nS+OlWWnas0Kg4mNCODhk0gKaXmt8UYwjK+Z9xanNg0xmVoDpZL4GTOGz1kiU\r\nZ7fSZOCJCJrjDDfnEn50pxZkJix5mgsFM8hm2hObYnGvLW6c5Jk35quGBcjU\r\nNHfEZom3ohZDAZf5UC/GPqIe2OtAJ7zqXm212mXpSaVRCHykuark6c5VVews\r\nZvoPZcwOpBXXBqBnxM74gFmlIWiFsqzMuhVYW9s1nYc7U7jpoocpLhd5ZzVA\r\nT9B1+vvqn9yoGita5hfqQG0DXHxBmG99UkM=\r\n=FlWS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-25-2022_1664065985033_0.6402310962330942"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-26-2022":{"name":"playwright","version":"1.27.0-alpha-sep-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.55-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.55<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"10d7c60abf172b7ae23a4939bdc30279044fd35e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-26-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-sfmVej9IZpcDoe4j24ezVklnR9pUk0f6kpB/8F30EKtLIthlgkINuO93CYr0rrGPOGg8CLStPmxmC1qZF/BDUw==","shasum":"eac8169204b2471d8c7ccea51b355d157c8b8c51","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-26-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnqh9GxYGXpwAPYDn/BgSj6Tn40GlNOERWOxhsUM5cIgIgG/x/+i1vxWLwk2Fm7StuiBtkl6cnK+Za8d2VHEvxQ5Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMPPMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7xhAAhlzOZ1bzqznNM1NTwC1C8wBL6FcqMnmvcteeILlG6O3VOKag\r\ncsfLCluyRP8cncLmdzw645FKfQJcTVtVClcvmI/qkmjy0jtltqx9ckIC8K/Q\r\nzVmMwbpr0LiNrZVMBovv03XdGrbxy+oOGXn42TQ0I84ZYUXVz7Urne2i3Gmw\r\nZQYWJ4oOZSIbcuNBwvfsHZkwxjo5nFqCHmfUohBWuZMYC1Qk/c+GhWdL1Zvv\r\ni9DOsp7xt/ZzIzvJTR0ZkayccpKyV/6DhPZU20fP5CPghVAbb69qp5RBO5TM\r\nLlc06T3mPlRqb2x/7NlpAC1X7cKRhWEH6BbVx5tpWvfxFwvZjXUDBeofHuzQ\r\nnGvYLu65EVkwt3PDQ+xZU1mPdyLRaVz30sVSr2bw0Fz+q3XMZuqahxuiXjJ6\r\n4/RxFi6e9IkM7BB/3mR0kyPRa+ghErmycYLk9Ls6zq6qAFtIc1d958N3gNLC\r\newiimHdWn9laihNkQDMY/vVsG20ZKJf4aOHFqbH9hLtJIPLmxwKDZCe2bSwK\r\nFDgf9nt8xriE8mrQIJtLfb3AiSvB/VmCARZ4HbwbN+dztgYuYoFM5M4RhA/5\r\nwRVnDckFtgr+EmYxKAaIHcihnQZLcoCcn5/0ZyXGndqn6asaEv/jIiIAc+Ny\r\nGT/rd0n2dRpjveHDgF0OTY+ahlL77bnzsVc=\r\n=gyPl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-26-2022_1664152524644_0.9057535088116855"},"_hasShrinkwrap":false},"1.26.0-beta-1664217615000":{"name":"playwright","version":"1.26.0-beta-1664217615000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1664217615000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6e8c2c5d8d6e1be41e67f41b555ac357698d8665","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1664217615000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pexjaS72PxTEgNa83erVEhPe7vzBPOowvsaEr6L7mZIYEvDMUwdAy0ygzgd4tDRWoLaNrhp8JutOYH8uQDuk/A==","shasum":"8547daa4a46b17c6f9c70ae2c90adea70a856a6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1664217615000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJSuoU7YKpPQuRssPOLt6fX6kPk8hdgOx0yOFR/plxZAiEAh9DEokng2PXnkTxJnfuSoBFSTGtJrfLj/h6Zp7ySz5Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMfb9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeuQ/+LOA+kO/AwGE70LsGZzR2MMHUqECCHtkZZnTnZqxMeXGEBnNt\r\nmLC76i7pe7RhD2AzzFxkmD7cmx1JXq+h9zhpM7H83919dzemVsV/P1e2XraC\r\nhYAY8jRdtfEDKB9dpb7iUnWk++SqTwguONmm8Zl4seQ/DEpqdB4zHbFd7W1K\r\nvBwEfP7tLHC/aB+MQCtWhjqVhXhB1Eegsh5ai2gaapAciHhX6OC8rstgL7Kp\r\nw50HXRjpGIVzhMUtz1381O+iVfH7rc/nQeH2jQgckWUE0y6ZkBZ2jQP44wEq\r\n6rNcpwPQjrntbCQGLQpYWtqx92Odxf5IYiUT4MabrlXjES1dzNFDzZVAiKkJ\r\nC7544ONRe0ynC3szvFzVOd/K48yi2F3giLzxdEmNMqKxCgoyruvQBEhiUgix\r\nDkIfXdfiDYbjFHoG1RA0jPkepLhFpl5csOtKCb1cmFzHUyo+4N3NEkQdPcJk\r\nxgCp/CPLb+/tMSbdBhrSW6kO4qV6XUsgZoxfMB8EvbISUBxGtlnJskc8UYy6\r\nyGaGEjMlQvV/x1GThVOSRH+hF7JVPQsge4ysUstjHjtUhufBZ5IX1eICtch3\r\nvfdmzeiYwoSIAvDF7E/k15X9+RsR2msqaHQCpd9mjOvcu9fBNrk+I1Rs2/Hi\r\nBLg9qdKYJDGVQzgU3tySxdAA1CMZCzb2scM=\r\n=r35A\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1664217615000_1664218877713_0.4116073677738552"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-27-2022":{"name":"playwright","version":"1.27.0-alpha-sep-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.55-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.55<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"72a24973f3246c952de918f607ca370443f8d4c3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-27-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-zPKI6rbC4MCqY1nEARqcpCPfqPAxyZxtGAn8LArd9JfvPqQ2MX1JfUv39FVuwDJwtNfLLJe3BrIpkEpH/BsvUg==","shasum":"e2f3a0c285d994293be176d6f1c9d51e6e0077b6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-27-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB0JJS02WxMY0XK7IIbbdZZ5+y4N+XqAsMDSPCMoY3nAAiBjG5HG0xjhsIaENtQcZL/dhnLuumZMjlqFU3JFUKJWEQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMkY2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpyww/7BUOzEWrbB9A7hkOdQpTR9HUvQFk01h7GvBijH9R47GO+odEo\r\n7JJN2tBLfst1tJLOLWwR9PZfgG60PeMEGXpjxAjBWSPbMNZlK2dJLYMHTJoi\r\n9yrydZZSJWbQHX+mkD+L0Y2ZhdMl4Nn+6bGxWyJg/Hkj7Bzv86B13XcG7Oi8\r\neSm214WBkpzVtWtdbcxg3urY9wPybC7WxVFBtZlON3rGmi/C0I49GPd6+7zP\r\n7tEA9zR8bkL0zruQPu5RiAZn9WeE35jpKEMUMBL8IgvucH4ILFgYpK8VJc/4\r\nP9t43uKg7IQuaKeaYWifweNZYj64jAVbYqOZJGT0iCgjgYTj4YxR8V89v9Bh\r\nPCVhHRje5w8UkD4+hSoLOnXDILiMyn2mfkAPp9lebGU0g36bWM6VXmfTOOtp\r\ncA2Jv86tcyaKmXP6NfmJqDN8DsPqqRi8RdMvHkARHbwDE1R5vQOztmzbx31K\r\n2+Kq3QzDxigM0bORP1yxjX8VxcNK3AAsBQM05wC2P/3M0UxTJ3f4GMZ6bhoD\r\n2Di0fA119+UnIf5pb3dijwazkclDzFi/Naz3IiH9Zzl1PYcDlNhQCLnBvvsx\r\ne3ui3Ri/LkvdIuPl1fBIov4zSQ3x9QHxVTEmJV+3N0SzfUfE3xP6olHbsnIN\r\n9GxXAFM5DNgVW2jMQCBa3H2IUw1Z6B4gMMo=\r\n=SFTo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-27-2022_1664239158202_0.9383247031062751"},"_hasShrinkwrap":false},"1.26.0-beta-1664248417000":{"name":"playwright","version":"1.26.0-beta-1664248417000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.0-beta-1664248417000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4b22c3f003ca2a54cd8af6823e516b7bca169d38","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.0-beta-1664248417000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-NFpX+t0xg7cXv67YAvfw82nC6uloVhVCNFtPPIisYbpndXAaDNBdX8s5P5JcvfFfigxHx4AOFqgPJT9D+mNViA==","shasum":"2868e8cede3ef5a7c6540e1470b62c13b1840b18","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.0-beta-1664248417000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC9b9U8KacQBVEf3AXpZCE3hqzfR2Mss2RTwGmVBSqFIAiEAp3Dn/Qk1eWvDpksM+QFFZVn9mo/Tk/bqTFgXR1MPwMc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMmt/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5PhAAgqCwR4kRKwP62591NxYvaGZxTbhh5JmxrlG7YLxqKtLZTUqQ\r\nmCZ4DChNZ9AoCisL7mEVWB1mtjJQN/gf+yExS4CYiVt0fQxUdKivJYvzcgyY\r\nbc+KhikFRjE+6KNllRJKQiRPVfIJQtmnzRTR8jLZqqUyG2+LSLtjGdM09bK0\r\nkLd2qcczgMMURJJNCWdEGyaD+ZD+eqqhloJsPQC1+Rpj8uMFO2Cm2WqASlif\r\nmpaFppn+nfaClRa9t//OiwmKy2CCjcIw5ChrLoO86mrBVwVSEatllOj3/x/1\r\naUi3P5G891pO4PaOokW4wkDw5Ho0vBrC8dz3FVNjSh1Bql63sbmRkr1tpbsJ\r\nwajdgvCZGNhDAXtOyjwGDG9xnMy4KBvOKLYyX/D8Hl2OXpauwYJg6P61bZXc\r\nPblT04/lo96IsYsS6ag8mQrFrPY7pO9nNehhOcijwTUvjbNOxKhEVCGC5LAJ\r\nhLduu59an1dYwJbBu0rJsWCUQnV1ntjn7p40Iz7CpIZxwEENZvLnJInGWi9U\r\nIqlejPZoc3Ky2ZNpN32q8gGU564OOEPig2q/KXslYAsexJFytb/k5FhiOOat\r\nXtoSNk/ogKUiPIAWR2ZKc6bCUmvA9cI5Ll1JE1xK8Dl6AjdOcR2wN31qM5Bo\r\njIUpyJD4vNQSVRV114mwGBBjEvUas2jCwWw=\r\n=SFFb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.0-beta-1664248417000_1664248702755_0.4436696467927379"},"_hasShrinkwrap":false},"1.26.1-beta-1664257337000":{"name":"playwright","version":"1.26.1-beta-1664257337000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.1-beta-1664257337000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"46fb26d13a8207a9c12fb0cff19eda5fd2bdfdcb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.1-beta-1664257337000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-fSeDbTEkpykFtj8kF3ZXFdLH7UdYiwb+DQA2Gmdj21bUk9HRcTQpKZEXypEl8DuK69vDH5QkAIkG8bexFN1W/g==","shasum":"cdc6b6cf15e9f3e6957a837eb51c0b849f0017e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.1-beta-1664257337000.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC19sKoY9kT7dlaCSV9RTMLo2UxqlBtNPUk/mjIaNtPGgIgT5NHhF9CCo6oZdrARZzmDBWPf34CHzckOGNDnBulk2g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMo3IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBng//XvmBWbg2tbYXBrSQzwdAq+v5rGpcZBnAuI69RYDw+WQTZUxD\r\nHPAPmNLhCb2gUBsSKlt6GrT4trKO5Mb1JHHKrXUScs62Xz4brFiMsw8iIsz4\r\nkpH3IEwhCOWqKl0P95mjlQIAf7k89Th8uwFUBoUtC3tg043Cq5RAA1ACqrGd\r\nrULmd0nhCY37PYSiMo93ZWg0wMHGBdMguJ6dert4uZNgPzoAh1HrTALFpzNy\r\nxApgmuNO/G+mJkooSaMxINu4lMIH3T4BpivtdZ6tTepQS9J6sNI1Lw9wScJY\r\ns93loztONGZNBZHzG6RDzkKvtuaize+6sAtT6Qzzvf1hhXv2BG1wS0orYMjS\r\nrme6ncPTtVz57+7eGgk4vNccZe5NG4auEdW52p0BMbxc/nDu88lOYQZEmT2e\r\nsyCjQBh+mgb429HuyJur0qx0FjmDPJAIvybsWh50KX4RMGPg9EnPp1dWdKGz\r\nYHzhKmLhJ/Z44BaYt98lomjNfPlC8/FwXGT3ZHLkDyp8kQAxBc7zzgS+xdeX\r\n8uHlT6Sit2T+Ty68R2j0rxnCCjoDhg22wrTgKM5miHelrtQ5qzUYlBA/36RD\r\nEGVfQOEOI55Us7+mRkzRAQMD/+liNM7hvcJB42VCG5E/aoSGIAGtsEdABXwf\r\nl4GY53w6gKf3oOv8aOejrvb+yOLVdz+KTbY=\r\n=IPMy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.1-beta-1664257337000_1664257480703_0.3500800717915953"},"_hasShrinkwrap":false},"1.26.1":{"name":"playwright","version":"1.26.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.26.1"},"types":"./index.d.ts","gitHead":"46fb26d13a8207a9c12fb0cff19eda5fd2bdfdcb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.26.1","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-WQmEdCgYYe8jOEkhkW9QLcK0PB+w1RZztBLYIT10MEEsENYg251cU0IzebDINreQsUt+HCwwRhtdz4weH9ICcQ==","shasum":"0082c1d6a1c9cefe3f7a593396ad8568746184d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.26.1.tgz","fileCount":9,"unpackedSize":24248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb9AxC+dcgipU38GpwKg25GMud+OyJvR4FtSnbZQWF6gIhAI2JyhWoGs+kVIAHfVbdjJLWyWNOLuvdUyWvb6QXTmaG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMyyvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTzA//fdJax+JM8Eb1ptJlNHYAaya7b1ZSNoMY//eyl/kE9Yo0jhpV\r\n5Bfa/8eG/rUuEIx4jDRDqqJUo0RRI+ww/f/qhCpcJY+7Z/dagXKtCNE9kClq\r\nY1nhG7U75f12rS8pMdSIogomnaTBLKHCccpxGYGXRmb8Q3aSnkn44fC4rF2v\r\nbQnMlmVEiyn44ALzyZlaK9f0z25126px4WLOmpo6duRkEY7zaOvLTFaceFR6\r\niIGYHndQF3jSqTmGX1R/eeBFdYw6aHmzb7IU6IVwXtWYru6wr6DtAnQXjTJ3\r\ni1wFyys14uQUlf2YzqodiNunVbtkTkZkrHN0iP5qtqZhD4/C2QLeNXrTI+Ie\r\nA6MpdYCil+Lfd8TjlYoEaNO0UXSHkJJgEqKqr5OobHpRE5MYCxZvgu5ozVzK\r\nSzEn9K0R7q3nTZE0tCIfds6kcglokrhz6rtmsMd6yxg7ItlTpeNMvhkGK7Hc\r\n61Et7jOj2Wmx8ZqPV+lV8esFsUklvSaBdjrXcaZQPoXoYb7GIPXKAH8Z0JA/\r\nMn2PG2oWGFkvpTk6kpOoZ40/BWbrfuLq1qJnY6hBz5DbP7n+dNIHTrorsf0O\r\nbe/T38VbNZxowvs66owvnl/wlByJTxw/sVbCboxawf5IctcaHPDVmxXcVFmy\r\nWrDEVESKQKnH9X4Z/B3tIYjzh5LfVdOpVD0=\r\n=Kr19\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.26.1_1664298159194_0.22629222529386106"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-28-2022":{"name":"playwright","version":"1.27.0-alpha-sep-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.55-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-104.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.55<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->104.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d9a28bd2442fdf7c4d46fa07778241851fb53b9c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-28-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-4w+kUsc9F+zN0PIirMaBI/kMLvIC0pBNAKlLYwv8RYTUycr+tuwF4lScfErK0zmF000nQUrKsNyLQ77jlHJx6g==","shasum":"d4abcb5f13df434624daaa0eb576882d377d1642","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-28-2022.tgz","fileCount":9,"unpackedSize":24284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+JuklftyJm2WTTQ5eHZNxa2DGVVXULbqLNtbd5dNbAAiEAhfu/zF8BeW2sYGjNCODQ3GnILx//Nmxi+VEl3zArPJ0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjM5gWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmhxAAnwDvz+tQWXvHVdcaEdjbGj1m29F2Y+JtKktQrhfsLwjQ+pvt\r\n7etsTGH2Z6VKLnfINSB9KDxOTS7B1wYlCgXQyw3lM67GT4gQ3nUhRO90PVFb\r\nZpuRb2BajePcjQUrowdyhNnkRk84uCku7ZAOu2pVyB2TZ/5YyNjv4ziSr8bo\r\nJwzKedC90lB3uMjhEVeeD+/MAWB/vB4C/NtjXYB/9bBRIIpd2asxuj60BOog\r\n7VWKL/0+yp1ZC+KvaCvmpGjb+z4i75QTeljcLm3kPqvGY/DEfuryZXHDDHyn\r\nGv9ABxCDOIQhzd1GWiD8fnouBJbAMdhnO6CdoULrsp9CtpNwOt/ntqOy2HZd\r\n3wEaNfDHYQkjUljPbrE/5BxLAk1yoe/pediF2mbIxu/f5nyl/5Lv/UxbhBZG\r\nu3wbReXyJVRFOdZ+NrQX9cIsGrnWLXwpIghmz8VpElc+Mx6Xkqui5GAmFEpD\r\nPoQe9m3ELvsfWLSudBzk9Gk+oqV9951FlNGARSmEmnhuobk++V5v9IGtF/+2\r\nH3gqjreZzsUst9xp4HobncJU0mAOLEm67KBEbWb5rreZhAHqfoWMFryeSO3r\r\nw4aUmByjearFbu59hgNtGfBJFOJdRfFCWSZkOkgaIEnBCYYlpPg6VspxplWZ\r\nmYg1afsN9e14jP2T10PaOGGu5m96Ta1Nph8=\r\n=k8JJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-28-2022_1664325653937_0.09564108662562565"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-29-2022":{"name":"playwright","version":"1.27.0-alpha-sep-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cadd4d1dd0a54e7ccf7d84dace3456fbc8b7b590","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-29-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-s6v/w2JW3ctVWR2sJqq+rJdUjIhX9bR0K0AykJPh72nETKgrS6jC7GSe9uVPfA3uGbJfKQUxQrFFkilj61bE8A==","shasum":"dd2034834bd16a09658a8419d48d4238490d7ad7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-29-2022.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8AucCJAINc+9MezwdQmF98XeFwNKjPp9HjoAXrgrduAiBlFpg7MOBuVyCwtJZYBFK+Z5jTWyPpyGgOBT83op8jDw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNOwgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFthAAj8vtTTQQ6GV/XGMIHRyOYR7wRErjQ+uwchKFR6JKDXT76Lw2\r\nUumffckqFFomx9IAPw8rHDVfBxSIKkkWmSwH5mb8IqFfEYtd+QjgLonw7b+s\r\nFH9xH+7Kgn4t2Wd/2T/I7kLDJyGsIBTmMeLNlA9mlE8WCD13Fho38Mnbic6I\r\npsC03/2l2zBDn0oyIkaiDoTQv7KXIGujCkB3P9vaVIokfPGTDVbugh6nY+YE\r\ntAzetuU0dz/70iajDAP5qVbd4iPKZbHril2QvpJHHrWUX3V23EFfqJ8Wz3cf\r\nqX5mQ4oX2RaiZsNJ5H+05OGNj1vkt1N0RgRH7SQ3fAsYejPQOTMw0gjucib8\r\ng6hctAJnwRHVLTEdvB8sCYu9VFOzlNufhiSyOvAWqsH3sMpkgkdJ44XfCsKx\r\nfkVckFRMJgCPVPdUWaRMpqayU1anSc8fD4sd0KXv+7/AQA02AnmlEuRLXzYQ\r\nPW+nR3kNfx38oWnQRIyG6GxcSQkJPRWbE/h+tYhvv2Z072fTXexk5TMZ5lbb\r\n62qugMIB3bGdqDpiTR7YkwBWUQfTL698oytITEQyiYXg/hHt7JgO0KSQXMk7\r\nxYYyocq2V9OAdw/8de4lUxv0zQGpkTTfPOHaRFQ76hNXSx11e3vyDykTw38F\r\nRN3g3NgxomNGCXEZZBNiEd4gWDQ4yiPHxuk=\r\n=jLcx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-29-2022_1664412704189_0.08707641245068687"},"_hasShrinkwrap":false},"1.27.0-alpha-sep-30-2022":{"name":"playwright","version":"1.27.0-alpha-sep-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-sep-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-106.0.5249.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->106.0.5249.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"51966bc045d56eb53f431f4e855beadcd4581908","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-sep-30-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Irfqe4gn24o06G7Trx5ZHbn+/2J+gxkIwUDlh0qAAVYhnbWuoZ+Qzuzsajk3C4F6iJ5CgSNp1eDSdk1RSMAtcQ==","shasum":"ccd7c988e9161d04a0323d2b14a212c2067ea59a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-sep-30-2022.tgz","fileCount":9,"unpackedSize":24288,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFS3lPc4l9HO9bvb/bHIyzeOU9mqWWg0MvMBdSau7VtCAiEAsWoa48pGxumfo0eAf8tPEG1p1SmNTzV+1yeuIFZkH8o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNjzMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohHw//dF9xe0pKElYRCFT0kC+urVn4774Pbeq0PVnEsAls3g338duV\r\njDw9ZIvQ5K4DSW0E+sTMD+nQQAKbMeWz8+Kd4efE1tOa0AaJzpvezLZdeoLU\r\nd7zEEXMz1+UXz8Nn6qTtPI14uXL7OjV4ajRqLBIADdNcqwEcv65rB86FZg4Z\r\nTMVa6TrTY6hMZ1xn/VbayEA/NozTlVca8XqDM3zJ8XiqiPrVjqF0glijdzoW\r\n7ALETZqR5+sWGFd1tt7Mf7pBQIK4r00IJNoyx9kv1m5420T9AozQNOFE3NXK\r\nuS14wxfDqAyfK9JTcmsr3GTXuwuG8v/IF0sQDdfP5L164Iex4cahqNbqkHmO\r\ndxgKlZVBjOucAuqFUjilO2+3LL3bShjrN1AoP39Khzra2Sws3W+cfy6SAhuB\r\nL6OiW0oEjFPC0LZ5y1kofPNrDk/6/mNzDIyViguwk/jvSB4JMlUqgYBSR6hF\r\n7RZO5s9mNnGydlG5NaDkLgm84FISN9DFj2iwVBAcxqbQOvxbmrJNxJU8Lqg9\r\n1WzHVnVn070Tfb0fkH4cIgRDX6wDyXous+uyYyf3xq2gkKDPwG8XMmrzWF12\r\nFWd0uh/eUfR0SNVdY9UeImx+RBk+pt9624GW+CRZ33VwhqmiDVs+PGwl1wJO\r\nM8RNeGZVP0nikPzS+92YOrF6EX/5710XpPU=\r\n=QM23\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-sep-30-2022_1664498892195_0.2759859137463214"},"_hasShrinkwrap":false},"1.27.0-alpha-oct-1-2022":{"name":"playwright","version":"1.27.0-alpha-oct-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-oct-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4306b38c2ef6f55cba95d166b61faca53a51ed42","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-oct-1-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-fFq87EY6dEPWQkah9RXk984QVw3YDGo+hRPRc5qs03yeCuTQErRfbETct86HkDRG32DzFYTLvZnL7jBrkY+KUA==","shasum":"d14e46934d04a21d3ae586b67deb4bd3b9d32039","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-oct-1-2022.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCqmbRorRjjUTCDZ+ose38GdUF1RKIs4sPStOLqW4RuwIhANzu5EmZ9QAHzTOQ+G4D5yvm+hF8DA44cVGFFDnaUoZe"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjN44JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5mg/8CMpsi3LPgSzYiR8fqJi7Vith8JogyqccejmrPJB6G2FaVVLL\r\ncvTg/pYN6iZ3IrujYw6CPgtkk/PmhVQWu5ed4cQAKnwqBQGVj0ANZWE66gPa\r\n93nz9kJ4Yov85OqcEmGJeWwZ5p5M7tpyh29rRc5mvI0Q2lvGpctsN9RL0Uh7\r\nmpRL4ItoF0i+4Gi3OO21aHMLAaW5UT+IVJ7wHQiZcpj0M7rL7PXMthReanPE\r\nYjuT+yDfhVcmMf+EUAIg2lNy9xzyuImYTOzVSd2C5ZIqjZlHzPNfXGCn4efE\r\n8WDavYUbUe2O0KO82KQQb/WNVEai/PIir4aKIlVr+SL+ytm0wWnKiYKLxFkN\r\ndFCajcS+7fS52GKWFwQwNZu0843ckPAgGwt5UegmISYsnoJe6P5m8tZzOIO8\r\nvj30wSCraoqfCm7gtIKqLgbrLOU14rTZsD9oa0uGw6nnsFNK4tQSKux0cH2p\r\n0NoHnci4fjj+fvGst4P0D+tIzmH39yhbKSaBs2suUFNi1v80PGG0R8j9cSrM\r\nhwf/wjPVQkxGgtob8CFrtKU/8bDSyUR/j+RgZK4OyRq+StgpZ353snXRC1JL\r\nbPXnrfoaKgKfolLY+SKN6e3IBmOJliB4halxkkRz8Dt++EOLsxtKXdhw3Qpd\r\nbuJ3nkSFw4yP1fPB/ByoU827nMQOUcoXtC0=\r\n=1zHn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-oct-1-2022_1664585225418_0.9273428221526241"},"_hasShrinkwrap":false},"1.27.0-alpha-oct-2-2022":{"name":"playwright","version":"1.27.0-alpha-oct-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-oct-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ff6d240e83b3918d356392f7f834767f9dc0504f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-oct-2-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-MAs8/DoU8ZOzVvyVvMT4lV6DC7+xo+msp9Wo7FYO0gcCs57tcT4pbczH7HVuzwD0xCCZ8cuWUkPDbPWXRKEkNA==","shasum":"6b7dbfd2d5c1f251cf1a1d3d0d424f44e36d2b1c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-oct-2-2022.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHs/wviPKvhPmUvhqwJoWM+9CVN1iFbCU8py90UbhnC1AiAYLnJOLE2tDf5nHMud29Li7kuPxC3p/5gShh2nhPIqyw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjON4wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMTg//RlkNq5Fa6DzzWe/ADGOTR3a53HIrBLG/6fkDdnJdJWly+jCb\r\nCJOgkWTIo6iQ/4JFPNZoGkfP1Jo7weo0Y3SWSAmCZaEfmx0l0WEB0bl0K9Sm\r\n3yxJp8ofjHhnwABZsS+/2JkLL8Mt02p45Pp6pmOi8bqFZRIyBYc/jeY3MAac\r\nfzrNfx6J77ruG6uPNkSHfLzMkbjoQ6IJsJRq9lsYhtm+SMS7zEU15mCE/bSh\r\nftEZCJbc5lQsf28Q874iXZxazzlwvWf5QRjvW/kkKxXhrk8ox4ydguslEMkz\r\nmqHiO//3Z6mhNA93S2fvjllCh9zitT3514UD/caIxXeHlPt0dDc/ax5ZGwmW\r\nNHTEFnuCEeaRqJE4iD4ncstrrKv4i64OVMsdEKYPEKnulNTHskbr8ElkxT1x\r\niYHBYQuUP9jIqHPzNMNpAnAhTuxKGK8Ri4FIctZtiV0WewVkIr76wdDWB9ZG\r\nrf1oJ+2IH9DdtOhRQOpgs49rVTWeMFvjXk7XH4yW+lN2e1Qjfn6w5MphrBh/\r\nyhBSfPFGTSzJGTpGSMASuHwYWHvGgkgW4QDFpWR9I3GWoEupxpq8xuyl/3Eo\r\natTsuNnNnm1zVU7wdiVgVe+SlxgDRqxv6UGlAqr9CYSuyXphT4zRqvf1BfPI\r\nmUyA3i4CZDepil4IuYjUzDdznbY2LisIh08=\r\n=RcHs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-oct-2-2022_1664671280689_0.9725896577696604"},"_hasShrinkwrap":false},"1.27.0-alpha-oct-3-2022":{"name":"playwright","version":"1.27.0-alpha-oct-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-oct-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ff6d240e83b3918d356392f7f834767f9dc0504f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-oct-3-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-5wiJbhE87SMc4Uux5RZ921GM49poFxBi9w1GAb7RpuQ3G4xRL7h1yzG9aB/vrmpOimkEoDJSPW7R02xYXg1FIQ==","shasum":"7f7e24980ccaf7ac8cc961f63cea130b3c17684a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-oct-3-2022.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfHFrc64nIarss8UT/RdEPHD/1oC5XKRPoFvEfw1JSmAiEAuF0IdPthZMg77N26GzkavurLkcvqLDs0DVrNtngkV1Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjOi49ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWow/9EGOPLQ1Lia6gQXuoNXs0sJONiVjgNTvt6205kSkeiB15JxQn\r\nHwttG2fj9ybr0cj08PP6CbX1oq/2fuQIMY0I1PIzcxe8YNWO1WbIgsGgVm/g\r\nETIUulYAfM5wy+cZF4mgc8o5mlTZVhZTwE0lM74RMnG5L13l71CaaTYwst+r\r\n5jvUFrMe/R2FYFE+NMjawa8RapFVY3Bnl05QCDQuFu6z9eDahgEHuvrcOuJB\r\nacZRRx6dvX4q6HnZECF9T8lv/5WmdPYw6BsPJiS7uAUu3kcXr4hjV8CFvHfF\r\nO4CO2LCFM9yWnxSDnkOSgSjzRPgjknSa8flB36y8XmiNUg1iCxvUNPnSspf4\r\nIAPR/vwLaCuXpTqcwn8DHe9MG3pWHRtmPjYwQYYL5YNHcGFRVMpTpqrIWn3E\r\n3inJlmSIMUupYZKPpuHPqZfBCXOYkKViLtiUjSjWqoY3clq/yu1NjB6MXoVX\r\nETGndlZs+CvZ7EaP7oTUtZwppQmVk4XINhBaVazROjXRB4gTxY4BlcG5BkRB\r\nvTbFDuETfVfZ91LA1RUffZlAOagNsi7SN4/0Yub1+ZpmQP2wn8MqcwOcqTR2\r\n9lX5g56a1BLdWJ6KvoUijEWDFtXXew/rtz3pYJ935yjyxI0TLbUCB0NopSzy\r\nMKRckENFriU1klbfk4Ko+dT2kg2w/1xPWkY=\r\n=ek+i\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-oct-3-2022_1664757309193_0.3356497159616205"},"_hasShrinkwrap":false},"1.27.0-alpha-oct-4-2022":{"name":"playwright","version":"1.27.0-alpha-oct-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-oct-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1311767f87c9601af2c2002c30471d5cdab7fb92","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-oct-4-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-tUkEJ/+DncwTm7eFcnwqBIQdMNgVkHl5XZKdk4tuDb3I/RajJB9qFmqn4f9/IppXM/CUgNmTdrXZ652JroK5/A==","shasum":"de4fc3bac60b90aef21c0a496b3fc18ecf0a229a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-oct-4-2022.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAOP6UV2HyLei70iYPJ48Tq1dbx3k+ks8if3irwTO9+CAiAPZq4JbqHCKMo0pkU9j94IocIRYMQuVILN3ILDfSsy3g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjO4JVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6Nw/8DJJGwVMJztgPOyz30Raxn2FeAGVWU9xP7U0UyQ2EYCC9pj90\r\nJ4tT/98EwzA9bLRGQzwwkykoMe9m8jTWUbkJVTSYwwfJAgZIvWyy8LuGe/qp\r\n+seold5uYfgYS82cxu3cVMOoci5ckBhFkC1X3sR4pcmTFEUT+m0++9daRVGw\r\nMy6yJpD0LKCyftr3ir1Q2ora683cDuByIPgC9pa3DXeTydr1mMIiTf2S7MIU\r\nHW2C6Q2B1PMigE1uhD6tr8Wfzj6qJOh0lhja+5UrhJzcW9/gl5hgh8M5mzyy\r\nJ+LTRw4jiHLxlxIoCIMCYht98dmxtPZ3ZSQZR2/SNm2acw2PHBX+xXf0qJSU\r\nf/bmhpi9UCf8LRpdnfTcPy+A7evsR5NrIvEKVnB2ZsYSdiMLnbOMxm0Gmp4m\r\nlIRvaAAyH0Gj5S1ZAu4lMXIHhur6THrFuEi8mW26skS1gf14sO95HEnSMO0I\r\nr3k8YeyfKSOc/eVTNutEKNV5jBmFwVaAJ88Lhunh8lMLcak17XE5Z668sU+C\r\nQd2DeX2wueNOuFK9WxcRKomSutbsLFIiZGAvilhfdICZ3NmVUBSg+xErzm0b\r\nZi9Q29M7Veju7XdWQcTZFJPmyxNcp8ANo4SvFeca3k1tPQyoccShvOX1dvb6\r\nNwcuWghx6OYgl5CKGg2/YEZdAT4NJpI0TNw=\r\n=thYz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-oct-4-2022_1664844373582_0.05311775891757309"},"_hasShrinkwrap":false},"1.27.0-alpha-1664914898000":{"name":"playwright","version":"1.27.0-alpha-1664914898000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-1664914898000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a9c02b975365a1b4e7d15cce5e6136ce42bf24e9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-1664914898000","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-/Zi+cqhlkhR84y++DTCtSOn0uge/nhijW7w6Cuqw59Y02nxex5ymXmfPSZROfWQH1vJHx7qMoaW2gxlIgb/plQ==","shasum":"63490424caba741ce0dd84f260e9760f32ded4d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-1664914898000.tgz","fileCount":9,"unpackedSize":24292,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEgmYRibgvcMYx8Sv/fnD4MMwuIpEwNRqyrKCu3PY/ZwIgHZN3iLo0VnJBuXeFHyOdfZmkSse8tvmSLCg9jlafhXM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPK3vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPDQ/9HIhKwbRS4bYyqpUD5/4CESyDHEwnYpUD6wQBEnMnJblu3LIg\r\nBW64IPK+IN2PulZy2FVF+KQ0OCiGJ70sQoyk2A/rmpV3VJL0ac0H2a87ejFw\r\nzj8tD3KjeAyZjjPqU5QfunFrK6IyEy3Td+c1bq099dw6+S+jIzia1ayFERuR\r\nlIl3yke2Oo+9Ydjl5FLhA4cqpSoJgt6xy33ExWijEEPBaaDvRgPYlgxFl3Nc\r\nqbbjG9jDOAyXB1auJCzLpD4oWrsghiLZwoAJdz5yk0MIhOwZpthKlqjhVvg5\r\nhiYqljl/dSe0a2xSpbzhsrgu6tmuav7e9HU0YJ1Ic7JXFgk5JdBaNXe/18Pc\r\nu7CobNLOcN7I+hNpljTa8SPT4omhPcBI/qqsELWkYZAD+8P9NLVtE2S9yu3Y\r\nbLhvfMo6GEOHmvHdp+7BbnE61PMFRl9hp/zN2vagwLI7Kmrnhk5dKG7ZAwzO\r\nViFx1JtMfWhZQ9nHumNy+WNCOocqFJiGA3KPa2JBeEzof2BWgYLHLpPTHTuE\r\n5iCVa+nf/2OjRN1Sz0el+jUm7rwegD0mS25s5K3CoKmM2j1f8AkQ545fRphy\r\nR8PY4C0axi1SumaSXjX75uiQ2HHcELsgNzXVEzwav6tlAm6OKhuKqNzsZ+0z\r\ndmmZEi0BiJZY4nEvRuyABN8V1siGikGKfyo=\r\n=1LZG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-1664914898000_1664921070868_0.7307548168827185"},"_hasShrinkwrap":false},"1.27.0-alpha-oct-5-2022":{"name":"playwright","version":"1.27.0-alpha-oct-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-alpha-oct-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a9c02b975365a1b4e7d15cce5e6136ce42bf24e9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-alpha-oct-5-2022","_nodeVersion":"14.20.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-e7r3yVO0luDy4JnM1fjblmzoAkTWYWd/U23myPEEPJ4mstsEZjdqFEhypoPKFHFTtDTJPSeZ/BpsT5cbHsBpnA==","shasum":"2e7064484f7b5ec6042ce00645bd90404bc151fe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-alpha-oct-5-2022.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCC0ffhjfaMq7muvSexHJ0ONfXYZRmHe/J4pJAyT9IfcgIhAN+3kTU/akQ2ilnbIWaRhv+RVe3sEGKrud+70wT+9EsP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPNLHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoA6hAAlQAs0cb/skInCbiJfLn0UpbM7fsFVcrXxMfboQ0yasYV9vWp\r\nPdLG0njYUpYuk2313i58lrPJeo8D485Q0rCwqdFQdAz3XgTtzOY4IVOeWu79\r\nkLpHCZrOHiTIU2M6vTKSUCmuyxUcmLpFxH51g7zTj9H0eOIW+XflnMDZnfrC\r\nRcLyz0azRuMHfJ/lCFOJKOoKBQcS6JJEepj3vVkj5bd6OizXS3eReajQliEd\r\n3agwA6P6EWrWo/nnIFUfb2a/x4NBIoaJKGNBz+xxGxZLx8+AhLS3AhSWEEk0\r\nAs/3+lbvybaF9UgdXbn8MhruLNn5zIfTJ/USKd83dE7ql6DCVjOJ/DhxmLtd\r\nkSdCsxHSYG8JwpkopEPU1p+Qb2C7XvmvmHlzqnMQPyisH4Ck6azv6VjQdouZ\r\nAxiSyoIQRTiEyxBF6pVsllmzvFloY17EsRuIPuo1eUhz5RHoIvw0hyrpcd46\r\nWA3aFnXsOPszm6ajSCp8DpUZwnlvD5P0uIXrfvhRVk4A2T8ntbnRv5j1Gt1G\r\nWyKQpmmlLvFnAKi4/XYpLlRnMO/CY5uHxhKXt36S8+xv2L0qOHwHBwgg1WK6\r\nW9FQ7/uylNFF1dxWtMPwrD9TTYab2Yp8FoTb0mwypR8ez/C3BiHdEQTgq9f9\r\nrXiL12l4oBut1dLATGFAyP6VmWaeeMI3nkc=\r\n=/DCD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-alpha-oct-5-2022_1664930503525_0.2904528908469046"},"_hasShrinkwrap":false},"1.27.0-beta-1665005064000":{"name":"playwright","version":"1.27.0-beta-1665005064000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665005064000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cdeb9e306663dd83f61dc2e76bc5cccaa670dafa","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665005064000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-A/Wyt9foUmjWXJrY1LeT2AgbT5sPsymvLzr6V3DhZ/8OjEgbrGDaVyrtTYHb1m6E0VJpE1Cb12dLXGaoqLHW0Q==","shasum":"94782f03a5dbe909d6c175cb88dccdb81a1066fc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665005064000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDQR0EtGYOvYabU40eEMWk3RfJUB8D3IhkHFwkfQP9uAiEA3HkJOgZkWvS5ZlciA1Gl0dBvvWiKG2SQYLnB8TdVXHk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPgbNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2Sw//W+4Eu0xHM8PxFzY1ss61QbLLzQL0XN8MU7dE5OfE5BoTsrsJ\r\nderSK3tyuQsRbbucNkEhcYtK3wWhxX+6z9j0CCPZIjDxS9eFWgUDToMzsPT2\r\na2s/UZxAJAB2f0Xhh8V+HYh29nSSZrzTzq5P+RVwrlUuop85Do9InZeA9zbw\r\ne6mnudLxozLVzv1Qd/62Ud4+nYxwPeUTN94p4BNT9L/Y+eNv5mBk7PwG7c8p\r\nyXpxHZdVPPBTrImzLm3tDCaRncoI2vvTB2tPxC1IApTyKMwcrnYo31iHLjxP\r\nZmodRwUVNsOV8k9Ik3ButDvp5IcPtN2gXgYT40V7aGFaCvmE9+0px5yVu9yh\r\nVXcBx8Bvy2h2MT82/dqRE52MajIEfPJG237pM+QU/a8t2oOErS7tByEIZ7SO\r\nKA7y8DS1f6NLCSPWapIb0JZ8bIyM7acE+LU26VGAd0hUWASvoNL2Qb3TenXY\r\nl7aQaWYTodrDwmGYypKGMrA4LXO+YLFPsJLv+XozJvVxP1q7g2H1wVTxUyG1\r\nhg334pe/w0Pt707SaZeKzllaH1HO3+UrhQphb5yQ1N3IYXkrK/gjWbFn6f0K\r\nPYvy6lvKFyiTASrILxMSYPKvdBXf88w5R2w9TJHH6K1R2VqaTeyG22mhjG+h\r\n1m7Mac+s+g/6YYrRW5R/0Urz8Q/uI3KuXfw=\r\n=nO+W\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665005064000_1665009357549_0.12671932546053477"},"_hasShrinkwrap":false},"1.27.0-beta-1665014412000":{"name":"playwright","version":"1.27.0-beta-1665014412000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665014412000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1150de8e7531f366bab09c42f8bf80643ff6d596","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665014412000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-iaAmYUWwM6ywPiwFN9gQS9fXyBRQ6nPfPIA74g37O1IO9UB2cKNqhzMNurkY5+UOxEGBR95sf6+9QFnK038mew==","shasum":"132433f750ec21b903f99f07ee914c7178952459","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665014412000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIACJt0+kWWDzB743u20kYQy2ArUW1bNFWh2iIMCw5sTpAiEA9GHbIA5jCjaRyWp/AD/Tm5sEanFjq9diifHF5Nk4V18="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPhslACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpONg/+PGHnzom8KisOp8txhzS3KgGpJonE5BcQAESHF3K96FfOslvj\r\nv4Z7YMHkqaE1OPqgnft4GEZaeHFJ/NNADBDh5Hbp+FQ2289QJ0rnJXcF+Smz\r\nfm2ILGz8bhFoAUVcjJEh/Q7LgQDEWOeOqybgwKp9SHAqdXFL0wMkMERX7DTy\r\nSmL2kvbV/4zESaaa9emLA8F0hrMWOgBmCbuIm5eCjq+WKJZhsEJsxXczkZ8L\r\nL2VDq5U7zLKuGLG5wERqENQWhSQ3m9yAvqKciTlU0OiuXd1o+OtZm3LRE2CB\r\n++02bq9Ml9o3z/PS7768h7i4Keq2PmCLqBAFKfIW40RHn/im1MSVYAE21FrP\r\nuhuwT7puoePUBipaBd4zXJMPstWWrIlAr0Du3sY/mI+LOFpMv8kCjYqfMZME\r\nIdCnmxCMeXY5eNhCsdxOyGjLvzwsV4TsUtiqZcQveNpLUO6ggO6M2AeGXUUb\r\nwTG2Sv2SeUG200CvYHjKoOhWlHvQ+vyk4JsLNai9wKPM9vpWdpsybz4O8UcW\r\ni2E1vNNBv9DmomrAtG8xmxIBSqKmbL51PyqOEfffvKqfsfJprG++wbpglr63\r\nWu0P0HCIBGyFZlcamHKq+njbPdeINxBy98L8pup9s6CS44F6C37bAK0MBTaQ\r\nYYAWCCDbfm5fm3B8iyuu/Knx03SuHgy3iBM=\r\n=puv5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665014412000_1665014564972_0.17964006643287966"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-6-2022":{"name":"playwright","version":"1.28.0-alpha-oct-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed6ecbca2a2f5c0f8e48b4edf87995b8abe6fcf8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-6-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-38wUBEXy9OJ+cS6/wcYHj2zEIs4aSwfeXxWq6FUTo6ktxxZjXQK59z8vuO47YpuFuKV4GtTnYlXbnV5qejFlBQ==","shasum":"911ccf757b235d361fcf3d1864b9ea6b9e01ee66","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-6-2022.tgz","fileCount":9,"unpackedSize":24286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOnXj+8K3bFlWmRpF7P4cpuR8KuVGRuF2xqv6tFCcg0AiEA6eaNIBPoFPfTMKh3W4pWLX5vSfozqwADGY7Ndqx//9A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPiLzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcGg/8CRqfZhQM6wtyCHqk5jASiAD+BSQSu9UQYGFLuxFbh6fAC6ps\r\nI6SRTXN3IKQlgF/Xt9T7zJF5XUFocd+fnmbp4KK8z66mqFuwqau5PlnDD4OG\r\nqJB19rwUBEuuOL9Z7QhB8Zug/qGs0TadKf9YJNsoVxsOmS9Rar1um5fiEzOF\r\nm/2ttLKsgnEwOfa7at4RsiK5Fni+YYPOcgIU0NLtPIxXp2pOcXKGqe9o3k/h\r\nf8nlPxCle7JLenFdAsA7eRMtRpyd9yhqzhp5XfZUuW6nXv4Nfpr7jV5RCWKV\r\nQlCXc+1losJy8qhiQgkmng8zhV0OJ58RMveYs9wfGJfs1ZhsKEEIZ2i+d537\r\nSACZacOjUudQKmzrvnb5Fg39plc0K1sBZwh9eg+0pjs8f4Qbe1OLf66FIlfv\r\nM0k1C6UB9yqgYSahjQDq0J8cikwvnHkKkc9pJGjiJqSE8Qh3msGyhzEIs+ds\r\n1D6XG6AZ/oG4ABJZfzcdM4gfCwQjj05HNXH85l3hSowNaC5rFGy8IK5d4/h4\r\nHlaAVF9XS9cncaFYmqeh0PEDoIUdgjAz4mbVFG/aMxOgJM+jwp1mXvufhlxK\r\naBs+D8aHeWLNRafLwH/XVa5nmtzneDOyMZj3AuxzxvVEChA5Gxa7HVSKniVs\r\nZ7I/uJc5sq3thHsfP2hxF634LCDnJPT9fx4=\r\n=n15I\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-6-2022_1665016563400_0.4904791349455664"},"_hasShrinkwrap":false},"1.27.0-beta-1665068904000":{"name":"playwright","version":"1.27.0-beta-1665068904000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665068904000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1bc426b94ffbfb6122341725bf4abda6b08eabc9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665068904000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-MHpieG4XAf1/d5lm7pM8tAz9uQCosuaUhCIG5wI2QhLB9xvrCgvDKpLQts0roOw+hEGWchvoQBzIW3IQdD+nWg==","shasum":"8102af95bec1d73fde8495ca8f14276ee3e91cd0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665068904000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGfnNBvlsJOf40vYK5Mgxj+XcrKk/nORrDJZpZeLqdEQAiEAy6cfos/RvY021FPJIb7T1oJQXRhlK0pM/D2DS4KefTM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPvBMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrDA//cOoxUC+xWYHn3+EWhabxZrcRUxx0i78JDhPd8i8b7aCvoivp\r\nEuXPirxqDPuNFYZtWG1MSmJgzN3msyR/YBJJfazno949yGTmOiGLe2KbW6YN\r\n5GARxZw87pjdi7pHsgBDoIe4CSzvGdfx6NgZ5YLw/6M3vgUwDuCHn+u951t9\r\nib0hbm4xTrwoWG+2ZnKD0rnPCiAn5kI+QfTnwa5JrPn9a4A5y+V2JKzsB5JZ\r\nTDp//RIUYh4Uh7riGgdzmeG97gaASaa/KoJK05ZNIhTOPq8757sTEU9ZB+XX\r\nBySgSMYRsV565XKJxUgVrkbTdFdNOacEBQy6mbOfPXq+JA4v90f5AyEbEhI4\r\nqzf64RwWmvJ5YuBpI/Ol2fkVwZt9LHWIn1SZaJkukrfgIXc6uyUaPLE3pdbM\r\nSB/qirhhrupjY46KuHilTTa716udgnmcMAMmUhB2cv7dxcLWw1O0AfDeulgf\r\nfnrgk/+L+j4JoS0sfavMGXFYR42QnZhdDx55ypSJATKIakIhI4o662biIyDU\r\n34gB/+be+C6JQEQqbWrgj5IvED99rerpLvaUtp4OS6bTCdr7Vn++/ZaLPJTu\r\nzY8KoO7kD2INNDM8umveWFVG3qo8PEGqzrTLph/4CSuq3cEoFVN3ERH/ooKO\r\nVpPTrohp/rNtvuuC9WzdzLl1BSk65nyCSqM=\r\n=NgWW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665068904000_1665069132291_0.3062001379503052"},"_hasShrinkwrap":false},"1.27.0-beta-1665072068000":{"name":"playwright","version":"1.27.0-beta-1665072068000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665072068000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2993281d78bfd2cc175eb69ae11b822163e31257","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665072068000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-utXazApkRAMfpTPiEQpb6soH9nJme0D/riO1QdWVILt39jnpLUEKMmu39dj1TOO5yxkoxJux59oseHWiowoq6w==","shasum":"23fd6fc1db5e20ac24a651897d33f004e5373529","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665072068000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIbIKVPTaaQaPkRKgWjcdabrJGt6J7LZ3vCgoyWliDVwIhAK1gRUUlaT/BBuJQhdQVKg7tg9HRTA4O3WQ4xisXATlR"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPvxvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5QQ/+Odctx4jfiXJ2wXWVTHgp5kPslaaZogF+PUka7qp/w7NaYF/l\r\nXdhmXZ65QwE70siieOTVuupPeLdTafFTc/KseIsaRWt7uYguGbhLbWKMEZs5\r\niM7lFmsEg2t2RWsc73RamU0JqoxfN0ttl3RYSH5VwStjFbRuh998OJJOyCK3\r\ng1uQtWZXpO3C2HS97CmcECcoXmJVt8i2a1LhK4AHDe1yP26S5/am6QodROTZ\r\nwmhqkE1kDGePbARkKiI8SG2hQVzve0n/WTfKg+yczs/5zRzJjpBZfeBf55vk\r\n9BHghodvpalG4X3OaOZMhPcV30XP9/UM2CYdwZlXhBHuqaR7ZWBqYXXH/7aZ\r\nDbDHywxWR/RMm/lTtlIKLHLylBdvl2JwYRQd36qtZUGhzoZtGRaROGya5nAJ\r\neUBhQO6fzqz2nrx4T2j1qt7PEamHtLHMqfQsT3dwujWbXAMPxQxPJval6m/G\r\nbAYxcxQYuj/ycrYSA4to5L64wWaVkC/IUS2PWbSmbnhdEjvAKurRYdUSMQP+\r\nZGvMJ46mNiCLllf0g6IHjT04lPn0XaFbEDadOHuIWjtbnCDKQMZSP71TM9//\r\nsbNlKbar2s9EXoYdmBXp2MpakaVCeZSy3YLQvM7i2TC+sFQt2OzqRp+hgrBj\r\nQfkBzUgP7+Cd932ChUlA7PrK/HQ4DoylCEk=\r\n=jjat\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665072068000_1665072239453_0.10378609194125721"},"_hasShrinkwrap":false},"1.27.0-beta-1665076342000":{"name":"playwright","version":"1.27.0-beta-1665076342000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665076342000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3bf42ce163c55218661e782d4dbc61b7d3b09be1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665076342000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-la1gDdglKaTI5yNgubkJTEZARGAmWRSLdljYVUqnceci5bEToheyKUe4ma923fw+vZivBQCim1vpDo3QtGTR5g==","shasum":"e14d48869fc0c7d32cd85704d8f9abe4d2a9f728","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665076342000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIvrOV8MprHjYJoUvx3786GQju48aY6x15cnzmUAriSQIhAPd2p9/KxKbDh/LAgb01tb9XuDBZ1g8iiuwtRdP3J3xR"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPxNiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQ2Q/9FUkM4WhTR7YpXTFPrBRSqGhT9eUMBxP744t4ugUHM7NOBc72\r\n6b/18pIenS2VjNzygEklZdTU4VBpfgNgj0wvztBOC5yv4hZrCnM6Gn4Oxt4e\r\nU6z7ZmHDevr0RBdKxLQuqxr7/7RbhnxcpNL985+dedfh8PJCrpHCVXV1U7Ap\r\n2N86U+oEEIrohJsZ25YN44d9ULCLmk6ab1fITWHM2f29rSlFVLhjPk8AnldV\r\nPKVPVgqQ86XrWj8BCr2Yq29Z85LudsUtaTVXuzUyDM0Jd8+lgkhMQJhB/MOS\r\nX7G2yIRbmL5GmfGkRwudcbDfCcD2oPJ7hrGpRwzk49co1Cn3stBPLDl44vQi\r\nVsCqEzc/97Ma9JvNfvu+IOT2KSw20ax2arMvenBZFaSOdZ1hrTdn5voahwcA\r\nyGSWcCPboZndZvrc+KSu5WXray8OYekVDUTLlxxRxanC+pU/lOrK4ERVTFoW\r\nVtZavg2UYK/mY1X7JnQfG9NAlASDea8eeQpULJgHf4Z7kEK5pMclkpFRI3AP\r\n+5HbHdcsIEEws3/mIWy/mWTyE3hBb3yRJ+BtWur7A5kEnRSMkoDkcPODiLzp\r\nBUyfhypCYArjjaAxxwCBm9M8/r5vSffMK8RL/e8aDDSJefq0DHMi9iniHZFE\r\nAPQxlfqL+wVncO1r52EYZYr+/lKlad+qb7U=\r\n=AWs9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665076342000_1665078114486_0.8358484874264906"},"_hasShrinkwrap":false},"1.27.0-beta-1665079367000":{"name":"playwright","version":"1.27.0-beta-1665079367000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665079367000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"03c7f9c2f02ec000d63b0aa64febe130011ebffc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665079367000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-4GnZ+dHtf+Poqt3v9E7oJHFYa0uo/NfymFAlYYJUfO+0MLp3Y+j3IIv4zwk9a8tF8oKWVP4h3T0BEz/JPLp7pg==","shasum":"63f9ee546d3b27af963a226ef451e3901bd52f9f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665079367000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNP19THWzhhHX0vlPuaYYmHRVlbmtExLesRS8mORUN9AiBDUrRgw9XvOE8zjkqdB6xjALf8RETzPLDRwMhL1IBTMA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPx4fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRjA/+KQjfBhYO8rM5CkYaH78+cW2Uk5cDf0BELU3pAMvtc5zLdREc\r\n6Sx9IvpMn8LfoUSxir7hn4Kxd9zRGasSJNPROOHD/sIsU+2hT12hTst0WchT\r\nT0JOwrBEB0XFcuWue6+npnHimP7jHX56baL624TEm1XjnhfiRVTyG8sFf7jx\r\nUspe/py9px1dvsEbCR6Gc0ctnaN9rAYg8wNdxlSUPy1TqEXKMuHwNBSlUw6B\r\nF/1BAZdIivtvukwSjxiAPuT6iW9QqpYbmz9loWsu/ZPAS3ghLAL0aXJLTT2Y\r\nK2YKk78rKaYWozYcghO3CAyR6+Soj5I0PhXfkI4Apf+NcZRYjo+8wOiiyheX\r\ni1i5G5R8hgpCsOVkQm8c7N3FWc7P7Y9juTF/a7N/fg8GViPRBHYAPdfglQ4O\r\nPN0zPbqR4ehuOt8UbA4Cm9xLOPer5CxGg4RUdMWe78drJ2Z7lM2JHeaJpPR6\r\nkEi5QZGqqfatvRip1b5JgptGC33yvuagPIimH1nxJquZ7TOMnh0pYi6+vyED\r\nzIrSipStui9g7WluXX8EBKHDLkOo5DgusZ9nnuyH6gUB8EeIVJzzc5u9aucV\r\nlv9LG/VyD37IvwprjHXJETmkymFYVTHxpZKAjTFWkzIEJI+o3V8iCL5EGvT/\r\nVPRIiEj+6appxkzQsnT1UgvvbigKa4FpFRo=\r\n=XVtp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665079367000_1665080862994_0.04775892026422768"},"_hasShrinkwrap":false},"1.27.0-beta-1665081309000":{"name":"playwright","version":"1.27.0-beta-1665081309000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665081309000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"299bceaada61004397eed0927b15fd3028092fd3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665081309000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-AigYsiG9icgIG6tlJDz+2qnt8dNeOKOiV4RJ5y6ZpDHX4k8u/dulAFYF8tMlYxXgZgDY/0a6XXwaxzaeF2c0Rw==","shasum":"22c4ddf1e5e3c6862d4bad7680b4d20049b36729","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665081309000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlo0hBQLr9mwcT/XnggxDeq9FKc2nE9lSVMHxiOAONUQIhAK0jIo2NjtZWmaQ0Y+EtniE8V06uBZkUGvc1yghou0bw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPyQnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7TA/+PXq5Zt9cdXauKmVBdFHCB9nE5GGZEqVWntNodRMP/2+iI2pY\r\nZU/VSIyXsJsJqxbqn05k5ZookfacLq44+t2QHXkoBFKGOn5QndTmDbH3Wugy\r\nBtw+SSz4tJ71mkElJgbdKn4MqAj4ayE+OWjWuDIXv58pRQ/dLsh/vh2joGfS\r\nwG2CgtWBElJmOQc0xyjf/vOJpPvy5Vy/AMgBXEu9kFSDg6BenPq/2CtmW8mn\r\nCL0F8o7mb3wx8XPDH4DS1tzZBuSKNvM3l8arcPkGSs/WrI2be1GRGkTOeGV0\r\nuLkFcJjT/btAeaRtNNhRBL6t8RPQ+dYYSo708jvYskt/ripZS8ZxaXEXMIdd\r\nubnn59rdXMFO1rKU04JRefuDVg3r0ZqrD0FL3UXd5LLnPeIKEnZb8S2AMrFS\r\nckHw+MbaVOslkFQAhqNbn/cSrApCGSAKJ/2ZScdMkItuINuhobU/RpK6UJs+\r\nb7txba/uJbrLPh6TAD6MbzOvTblrJgP2aykJcgB0uM3EnkNW/Eo1h1HosKKE\r\noj0/8TZn8BO+cu/OEWKS5RzY9NNz4Kam/wihaxfa5aZeNt7ou3GpMy3I2Ggp\r\ntRyWXEWE4R3FmlA1LlSyjnvCLBeT+KZ6qBTIgeuMI82wdV3okWDjHvBpTMBn\r\nJ6xEHAvk9tXb6tJDJ0th5UwtvYfCrT3Cd1Q=\r\n=ilNv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665081309000_1665082407338_0.05687806563366338"},"_hasShrinkwrap":false},"1.27.0-beta-1665086016000":{"name":"playwright","version":"1.27.0-beta-1665086016000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665086016000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b85b1ec6a0eefe3f1e1e915cab48a90366a48488","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665086016000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-XoWNFrWz8JEYUzc8BXBFSu0HH2cL36g9eh09sXg/mm5t/Nt7CUaqr1ArjJsD9dN0B25OSImM1kay+SuoUrSTYw==","shasum":"18204ff0023a36b19ece86a51e5290c926047b35","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665086016000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqYpbo0INhSCDGBILcmH7M3ytyuLEV1eFI/qF9krKE9AiEA0FY7NXSWldBd+dFwsLhguieBH6jyjG7iTEdzgd075fU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPzL7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOyw/+MIbbwnlFPoJJJONT09naoY5AWAhCVulNiW8wqAsHIe/NR+Us\r\nSdA/1cSdkjDHBGCzPsaYOmYZtTYHE2/PARAU6qJ2S7NYRMVVE+okGhdm8TYJ\r\nZHDsSZsJ7PUEt3+RQthxi2lhbSEtG+6jclPbyGerlHVUq33lc+jltHOO45YX\r\naOhdxdLja9z2IPtynnUa3vqFnoXmrhDGcq3rTNYq9lZUxYfNJ6NAW7ouKbdo\r\nboQ74mz4/lXHvsItgYU59xe3jeP0OQd2bYwmyDYjtLkU0gH9Ia6iHIBYkkBY\r\nk1WxgPdYMpk4AnvCZdxUBJ8RGK24faQAaVNZ3EtrYJKzv5Yw7kV8OIH76omM\r\noi2YGbTwbWpEAvxjXHZrLk4a34cQy+9XUh2Dx0C/ahKjBdBWHXZ1b/M8opeS\r\n50bNCarrTNJPKspb9ar+ChGMP0bUAbivWn/SBrTDxPRvX5spwSIZWH9vcNmc\r\nVuOs3rEJROjb7avTAr5Qb3/FNA8cmzBV3qs1yITU9zYcwegX/hY2harXsqpO\r\nUD/IWj3rr7w+7b8XU8kOPpJrHXE4Hh+H2qsZ6Ugm+YTYNYEadzXPimyhS9mP\r\n+62FupSNBJbja3/hig8lajuPej3zBl3dy2qKwN5rIEXioZ8vYvAK20ZaG/rt\r\nLCvRVb9s8rlamLBsOAKZYLlNxYG0S2wzUT4=\r\n=tQeC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665086016000_1665086202805_0.42887277100693955"},"_hasShrinkwrap":false},"1.27.0-beta-1665092193000":{"name":"playwright","version":"1.27.0-beta-1665092193000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665092193000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"923a583174a640006f395f48624219dd25494ca9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665092193000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-/wUBRcMks1B4mhfsAYrX+uCHMXaMMT3v9pMR0adBG8ESRAq+JROzDc5HDNE0RrMqL04EejhWRDFm6G8PkxCKBg==","shasum":"516da34f4836978df2f47f7549e99063e9000716","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665092193000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2nuw4ftlSyfURq6rdxzRw+LwJjm5m54w5OsdlurrE0wIhAJPt1cukh4D+aWfvNj2Pp0qsORDZGRYm3P5tJ+DQbMx/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjP0spACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4GhAAn47p1T2W3TLj6mKJnJHBpUMkNSB65dKVnbPauKG5RPi2t8nb\r\n5fIOD4WiV1qG70fXKGiSG179GxSkxDUv/qT5MD3TyrzH3+4ciRoshy1R+H5X\r\niuA7hilQQsrlyvQMdbpCWf/hYEBvOnJUTRK2HHK8nBode9hHZOuPQKkFsYv0\r\nxjJvtLeh9+T8EbCFYS3Et2JDlL/B6dqntUdwoDRprE0Lt35bt/5X39++6DHg\r\ngXl7RRbvjLiLoUwLW6hsX+AmUZOOjmMWIVOhSN8GgcVJHCx0MuuUKhjfCI/v\r\nbNmoJ0+3mHOHXUVU3cW5N0ocMcXb3hfARUGiTfDcwF0arSbDOnHwhWdsmP0I\r\nTlJcRJqewPpCVlTaDEAQeOqffBhBVCTDwlwR53tLalB8R7jWeQCrCnyT+itd\r\noZK7xSOfDhy8C06cg0JqTs7NhbN11rdT1aeoS9XCB4WE+UJDuXIxYwUJfxkB\r\n5paJmDN0NqsrGsutV2I0QdZdAFUIWi2OCwAKSQd4hiylrKhI9ae6yKE4HQz/\r\nnQ5pQx8T46HAp4cRIEsnX8zuTBkyKlhHuEsNyMWTmjNWBAi32XD9Y6l2NJ3r\r\nLBy7ws0jXdnjWpmCbxDegKMQtFl0FmiPTzbr+8pLudkxsCNH8yYB+kJYgXe6\r\nYpN57NfIVj6YCpM6Vb7GqN68l1pEyZ2J79U=\r\n=vYAm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665092193000_1665092393359_0.04608946952519588"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-7-2022":{"name":"playwright","version":"1.28.0-alpha-oct-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b64457d8ce999e19989a6eee52ded47d2f116593","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-7-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-vF1DOcO7MsozD24I/7ybGKocUrrUhvk+x1DtMZT7+XiCFTiSISj7X/Vk7rPirq9lCh3sfw8iVuA4iRbaQGHe5g==","shasum":"67b7044532c31ea7143a3786400b2711f0e75a7d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-7-2022.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFNMVqzGLwTlKLRle+fBFohReG75M5X91A4IvrWxzRegAiEAqjWjxryibdjidmTmE0Ig/rw1/eX6y3/1aDYjqLzw1As="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjP3akACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpL1Q//bBSnF8QOeP118SaYn2GkJnymxCEo5FPe3EnUDCOm2qhZ1L5q\r\nEYGfcJ59LIXV4Cq0lqGahVUDaMsv8sviCpESVbB2eX0fAga5R9k173LK4Kcf\r\nCNJuhET8j9HTgeow2huf95ak9Fl7/4QhNe/E6nn2O6paUEbe/sFv76tDXmEX\r\nD6AeV1F5zNqj9T5Q8HyPge1TeOnDlIMvYKwDW5lVAUu0t7YAkYAYirliuZbm\r\nU+WL0PSrc7d12RlCnHIr2imi6rd1On1JyMYBmqm7nqoxvAQcDBSeR/GqqpyA\r\nJm3cG05dz83NQfSzpVsbm0ZC3SVt/7waPgVl0JrxexIQmWsnsRezWbB05bJM\r\nuLm3wz3NZuWleLbTQwdPvusO81IHimDFo1YuxrMiLpQrXiJb+CCJ9CbHfpKr\r\nQu9OAuxXpDaXovtk8LfrDhcB1a3NqmTJbH0S1uPQ/d34fO1teZX4uMufZ++P\r\nyzcRCgGeoVFZfj+4P3xbOyhcpROIE6JNIGBYu8kZDE6Pb7z9ylgonQfY59UP\r\nyAg4d8svmwRuQHkbZo2QRbU0nZTQpnXLEdKmo7ji5Lfvf05aoqvY6SQtenp+\r\nMezsYpwh7cTBTUU+UWTxOjbN3A6BzRkXvQGb+pGTBnZqTl/I8+euxx4DSV5N\r\nWiWrUDtLpoqb6s3tSJr6mR63k79ZHLxwotU=\r\n=3Ymy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-7-2022_1665103524343_0.8851503459156953"},"_hasShrinkwrap":false},"1.27.0-beta-1665104474000":{"name":"playwright","version":"1.27.0-beta-1665104474000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665104474000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3f0af1e4df257203ac30a531d84a28bb2dbffc1d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665104474000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-xJrQwG7iGkhkjbMBDDF31d1G6H9BrvCVVdfBgoOWk0E0OcizyAap2rlMvl71EqpntP9KOBxN67xrmHIID4AAIg==","shasum":"2174d4ad4cfb882417dd9c7cc7e6b135c033398e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665104474000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlKdhD/Y42nsAGkYzEYRXrgUA/feK2QYyy8nK02tkBGAIgHIsUKaytIQM5Lsu+DYA/xN+PWy4uj0CmUuo+Tmo7gtM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjP3rqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpP1w//fFo5WQs0bgTRLRne0EcA3kZNhnmxFu2u8smeDRYxVoFRd108\r\naMsho2Jkgf7D0m8zH3fU0hh7v67otsXpACJ3k7lmk4IhaSDjnY7H7DRDov/u\r\nw0mCTY3b4p3SmLp9tEH95+glra52YCdVXdO6at8sDH7VpwdGn89GZSFYPxGn\r\nAlm4fSNVShh79he0ARIvWrlfR2wkfeb1WRhbID7HLBHrGDg2lK+YJLeeUSwn\r\n6ErzfX7iKzlFL+5Zx+uCUN8ApK7jKHejezoBt54LxvPxZflEq0RaKprYwnox\r\nN1iqo7SPumoPrfKyo2AqQcezinTNN5qlhKbVV3X0GZqDcvPVTrtj0RwcGhJu\r\n1c57MQ0QJ3QFWy6j0mDow6X77GNx1xK7TAemdbDqm6s9frCqtJMfqvXxwwmg\r\n5mmNXGpYK+xdpSpJvwFnpCXdPXjBTrDandkHsMAuCIA1oeC9fhbr+meRsS6c\r\nB8vBxINAtLLDfaxZr0DEnTphg/SJ7ACUZsfnRePU31nka0oBo7S7Kd0fRt7v\r\nkMt8QU5k9KFnBkE00VEX3gSy+Xhbf97PZSLsxwm6113FZ+BBETRiy59Q3StM\r\nz9ELHkYl5NXBUEKcKf624WMeROg5W9gUMkt+h1q4e3JXK9QQDIDe5to0lNuC\r\nYK6rYaP90tIYlcl9pVF31P9jRlBe3o47ZWk=\r\n=UpF+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665104474000_1665104618735_0.7457785406631918"},"_hasShrinkwrap":false},"1.27.0-beta-1665162701000":{"name":"playwright","version":"1.27.0-beta-1665162701000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665162701000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c05225f9b9292d91df75a462caaecb847885bf82","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665162701000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-dFsUPoTq6olLNvKoupPZbxfjSA9QzpXamfUbKjGl1esPKDgX+zEvQOwd5/TE7QTnQmfi3dpBRDgwV9Db/e9HOw==","shasum":"cc6a170bb282e2862786aaebd87b887baed823bd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665162701000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDIog5EC3KOh7NPzSSfAuU3k87etZghpNDg/QBlBF9NJAiEAr2H3D1BFnHvehLx0FiAohvMKmKBloQio4iEmGTvx6Wk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQF5SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRwQ/+Mh09pdstCJEeuWLe9MaK3HvjJuHSb/JmBueQdeTKxPXhlCVK\r\nDJq8QeNRakIkOYGJ9bgefVKFMb+T3a3KYEJAx2RHx6sxtYMUevT6W2CgZOft\r\nNtSkNCxYccE7rgkUKy9HR2MiVgL9GIBaOn1Vwm8qjUhCpA0/qFqswb5jdiu9\r\n0bgIlnSZTk7rEcRjqul5+/Czvop/s+eOlES4t4JWe0MBDB4u6RnHx5WL1jT7\r\nLWIZGiRg+mVwHYb7BojMROe0/qPje9RgR5iaOE+c7HroaxnVlcWfAjqq1r8x\r\n4BA7qGwrDXOXzvYjCDOm/oumQ7NdQ9gQRXQt7213pfZWl2XXjh1jAIS6jX0c\r\ndFoPjosb08spEEVX5l6m+d2nJ93hX/ekdZFH5/arwfFTkrFHMAzFaoWlDJh4\r\niHXtrD29ep5bhvK8YHqgRl8bdDYTSU/JOfD0vj3m0o72kyXoyPyQ2fYHHzSt\r\naMifpGFkVuScWcVsnN/DFJsql7+jRAR2pdCNYHzknkNu2/jIAIJUK0T3cJ0H\r\nFJ4WzDN3Jftu/01GguiwE/Gp+P2aL9XbRaMR8kCFB0mS8wAuvvq1ZFnPJsaz\r\nNYejft8p174hb3JP3ddjoNMjirNq53jyDUQX/ov+cfwwCbIVAHI9h5rWL4p6\r\nqTJU65uGAlBvWo6azMALd6Tke71liNH6Cps=\r\n=q3pX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665162701000_1665162834451_0.41340297919028157"},"_hasShrinkwrap":false},"1.27.0-beta-1665163211000":{"name":"playwright","version":"1.27.0-beta-1665163211000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665163211000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"af0d2936ac6e8780214c251ff58a5e7d6eba41ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665163211000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-40uP5j6UMdVV2mWYLuVlh9kWQbfS9fEzRlddd73bMqMAVdDfTximNQKZ5uI5fqJO6+MMYr30wby59QfDsqYVug==","shasum":"c6c8b8c4e947bf3af5e73109d9bc4214039a242a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665163211000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH1As0SVvA+6XDTItvpL7/FW3ZCn+ryAIctiL7KNIqZFAiBzqRdLqncPJHVptRta+szd5zPEFp+MQ3xfhGkw1qS2Jg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQGFhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSdBAAkozWeUWPmYwH+OWA006x7i9qcgEU6LQvRP1i0Y8Esvq2XrLk\r\nDhmtnIDESrn71LEr0TroFYTTHQvMsr+QUTm/0u05RaVh5GfpE2kbo3IV5Qjo\r\n7e6xLu6yuKKOYzq38ak8JY310Od+hVr6mtAPoXL6AWoO3e3YS0xAfAaLB5mh\r\nGBSxvKwqKpTQWZDKMeyMiAQKCCBkne+unqb2rT1fkLsFDfr1D0ulSlEo2EHO\r\ncMOUMuOvzDBjg4u5AdC2KV7ulwME5++dzyvdIZ6XtPHXcqBCw6tMzr6Tp14K\r\nflkmMzGIwXflGyaIkr3p6+GzmIzDghXPPlwL1MvSaQAeLPBwnllOP2aIUUyP\r\n3qQ+UPJ9kI84mX2ZO8txilI7Tdwnru77x5osFHOO9oIXA4W3slqXZjkoINX3\r\nyoV1nyn6Fn8d72VsPMjo2qJgj2OTTqEJsP/0hDtBfTNUZQ6ZpcXlN7KoJY0r\r\nSsYLC0UkLqErBMzaMx4SBw7KsMMyBo9xqD4vgd++WY18QgC8UwDB3/jXtAiW\r\n2jYEciDEM0zNeRO+EqpQU8kDTsoWKgdjYNe4Z1K4NZmwxxUiE1Njb/vMVv6q\r\ntiaDDc+SLuui5GFHmCe5qlkHNDegdTvtUN7PK19Zeohz0Vn7Rw+fNeKITWTr\r\n5/UMWLnHkTzrQkydya2gHYHABxUmSNOHIAA=\r\n=z2XO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665163211000_1665163617747_0.7032870246858858"},"_hasShrinkwrap":false},"1.27.0":{"name":"playwright","version":"1.27.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0"},"types":"./index.d.ts","gitHead":"af0d2936ac6e8780214c251ff58a5e7d6eba41ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-F+0+0RD03LS+KdNAMMp63OBzu+NwYYLd52pKLczuSlTsV5b/SLkUoNhSfzDFngEFOuRL2gk0LlfGW3mKiUBk6w==","shasum":"68a0e29f1756da105b22291a7c3f402ae749213a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0.tgz","fileCount":9,"unpackedSize":24252,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGX0CZZW2NeWMsFlP0f839k0vtFuzGEQlXdDVNysRHAAiBvA3cxOCQDlUvree71Uub19/m9EJQB6cF8z32Zm/D74Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQI9NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMuQ/+OvZv9DLVKnmZ8ZUhhP1k5tjP0rwa9LoQJ3TKhFRoBS5R6w1k\r\n92b5SOMzKohq1WCMY45yD7xWOo12v1bfEnx+e9zP/nJP9qlrIGFY5ZRqXrro\r\nLqqVa699NyKysIgs1ZDsKc2M/jVGTHBwUpLLtNI1UmZkws+Nw1h14bbMEUQA\r\nCYx1rFN0BTzrKSZUVGYRkwArDjygDQvrwxbpgYBhiisBFBRPb70OWjaP8fjW\r\nSad6IlnmgGOuPgzeyIVisGT0cvOj2N0ZEvv0EXLeWqGH1PaefzC1FW/WuIFk\r\ndPtugQsjLRzOEO3fANgA123P4HE9on039N8x3oxF+GuOpqxWxZazGHRKtmag\r\naqu1mYaTxWXOB3R5nuCpsJXptvtgiBgRmTQeNohrILk9YxzfeV1IMfmVCnhm\r\nS8GguDQlVOhHrMWP2u/Awqrcxc7rwOQDRyKWDjGJx/6hpIBkzd5QhDSwAgh+\r\nnbKyNQ7gfdUHt6W27I9wB99jWqckpmKMNcYTKPyTy23BxjzcuHCIcq/Wn9UT\r\nq5e7PflOwPjusHCy8p9TufYVmzaCJb3LdsC4jg1mxpqh20o+I3dsz15OUNks\r\nE9hQQxv9TPUKDgdYynSMbeROXnbtYO5vr/zgmHmBnDtOv50fhTYArsilogRW\r\nmBg1mzDjv2fNNYrZkD29zyCBPE6k3cIHPm4=\r\n=VbLr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0_1665175373102_0.024172853717010057"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-8-2022":{"name":"playwright","version":"1.28.0-alpha-oct-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3da72235e27b885ccd552075e0a99c86f55bdf28","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-8-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Eteu3rUHJq3Y3p9H7p4pnGWJJDrEqK7e4gRvbt3h9QSPlAcSAJuYDyJFYfdo8Hvd4AA/L7jBIHKdPG3mIEcaXQ==","shasum":"87198f8f57b0645d4dbf51ceed0017f99510072f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-8-2022.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEe7UMybCH41KinU4xZAgh/eDMbCzB5iIIgQkhkBhVqfAiAcFLQLdBrEGDSlPDcBkQ2NhVtqEwFBCODmleVRffxb5w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQMVnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo30Q//Ze80Nxxor9SH08WuanwyM8gDjuiCWDdur5VU/Ytfv6J3zWSB\r\nHOAwZbXUl6vDYdBfX+AJyRjVQSLJQWRD14l0URsEM94JE9ssSFYaQtrYMrhd\r\nQpztQ75oWKqtYUpL6xmwuqRZkCkkVI4Suu3EiEXCfol+SR1d3Fybi/CUjCPb\r\nvqh1EMOALt+fwnYo4Lc0FKWNshDvtMZK5ca1R5NtM7fAnDxijBy25R85BdzH\r\nMJrI2FgvHJU4L4aBK5yNqM0NTCIwdKKUu0d6g8KZysIw1a5mzPbUEzl9KNtm\r\nu6sqkn+pcnl7QpRF+g343gVnCpvxKnPmqd8VRsiRGuVZRguyiOOVkfwcRDUK\r\nMmS6gekW6aYhNV8kHI78JQwljYZZsXcBMsmWVW8O0T1Qb/aoYsjdTsTHZ+bp\r\nl0EN8ROn4oxMSptczvzIpBlt0C2YVTlO8a40R4Dht7O02XMR0FRJU3oy1XJ/\r\nOsSqANydn1OBja8J0EPovOIDH1lO6dD0ut8PrFwEA1LwnL2ckQZ0jW0G4e78\r\nRuypBnyN9n7ZcELZWXgIcBm15ILuOb+dECl+YQV2Rui7LCFWX+UfhdJgJJyC\r\nbt9YRa2jRfOyoC0hc65/843AX8sgeN3yRSmv4stt6idT022p/OIDE5BJtaxD\r\nT0RBZMtOjVmUgVHlzDnOfn0jlJyOovxB+3c=\r\n=mn95\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-8-2022_1665189222858_0.34037498944792843"},"_hasShrinkwrap":false},"1.27.0-beta-1665208998000":{"name":"playwright","version":"1.27.0-beta-1665208998000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665208998000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"75aaaac3eb25ee5e2a5e20b097714da9572c4289","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665208998000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-7PupNj4PCROAN0Wg/xpyvdqMAdKWOGVNTZ5aeIEoI+bAS2ZV1isJ1kyXiMDhfCbvvZfIJDRcRDiakQ1jF2t+Rg==","shasum":"1a8ffa32090e5e86d8c59bdb87c4996c6b25a0ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665208998000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOLh/aMXWXquW4PlwI3D6LtqsEzNgDAQWq+46m5SWmOAiAcvrb7H4vv3eDy6bXf/DvdbI0Tq0P7mdXomzgWQTxJpg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQRNKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpX+w//bY2JJ5Q8UJrfNex7St2SO6v2kV0Ith4T4FzYBR2YaNi3uW4e\r\nbbHnWQS6qZ6EJdPBueBaWZCMk+6lm/TAMcY0tfIEwEEQXckgO4sGNSPWeOSQ\r\nqqx7PtJU7g49No10DItZkEkXDWpPpuhes8FEJ+Yu/ij1T+CVxan9kyAg+gKd\r\ntHyrDd+1123R3eR1dnbtLrTKeL5lMR1ILQAKU3esFxImTG4X/9lzlTWUGMxO\r\nXW/LhaSAa5d7bnHI4nXf3MdTz4mSxOdfrzscMck0ezFDoszyhHUeh99FE+7i\r\nuIvsbdnPN1/LGC1PpvrD9ZSLSaOyO0YPFPHc5POegvCBon4DJy7eT3YTyT4w\r\n4c+Fyuex4UDwUxxFD9xyExNFo1HW8YECQxdv2jGjaktIcDvJDZkTVPOoM7NB\r\n1Mhk4cYd2bFPvOh+58ajO5BAjIFzLpIsqr9QEjKNcuYEilQh9tiz2cZiHdRZ\r\n3Jocvigg+JdTnUFMxRmNjbNIczfmVmRNom5Exlq2YttiwREJlUXqwBY7KMlI\r\nhpVe/ZNLrCU2MFjlmH5T0HlFI7aulhYZkAffBdQkT4LDtmCxNOaSlVZENBxF\r\nsewVqr1gITKMjYG+T5/a+R1JIC0BiiCq2THYT30OeR1g2RFItV3zKZ5HI28q\r\nISf0g5J2GP1gpkPjtlEjnxeGsz7/rro7rPk=\r\n=VFD6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665208998000_1665209162643_0.2417695414135197"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-9-2022":{"name":"playwright","version":"1.28.0-alpha-oct-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"842dec334d769f3a3976dbd2e900091864c1bc3d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-9-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-hCYPKrx0oSIT9iJGSEYS6fBH8HuNg8wzcnypJy6vJPd4HOIsSqmGiLRct4fsOdAxBd+TuNi+9UMLQWvpcO4sjA==","shasum":"0a21156cd87c68eea5892c284593d2a76b152bd7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-9-2022.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmITViopoeuP/cxVHjGMFEi3nCsXB+CzI4cjOhX5ISRwIhALY5XRs067XJLogSsd8Ttd2BjgdLeauzP5b+CRL5SO89"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQhd4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKIA//Tu+kQaHau/kU1yc7kfEh/ItPjLNVkFRrjHYxuBl8iQzs3xmM\r\nxlKvrwwfu6uJhqZrhaX5j1u6J3BZBc88RK217TLXqdyKw7d+cvJaZ6AEVUMD\r\nd5MIZJg2WqIfzJoNXx6bcP9IT5bhLEiCf6nCRwY9Ua8hH1fLn+MWjdfQPF0r\r\noDGPCZsxbi9YaE9BHUlpeB98f+1+buKpFoPgCal6cOo8/OLFhacwbY5krHgE\r\nnxtwmDWiMYIRJMcKM66tZ86cIWCQUVrZNcWwuiZ+lcL4HzdztUierdeWCdDa\r\nE5nTOqZUeT2tWM7ZEvT2BJQbiHVO1Q5HGznZN+RHBAl04AuRJsZ+KEJGTe27\r\np9V4+pADzlQgiAGhBsAIPkY13oBKXTpxII/KfmXpeN3HfNfz5H5b8VQrP8GE\r\nxlTBio26zWxYeypbuCh/+Qyu6fFW+VY39K/+MQe+bgP64Ma8/UjG9gXP3hvB\r\nRDemfNsHF/XloNmG3Z96yAg5KVIuLVXP5Scg62v1aBttCre5nWMwuRJwNHfe\r\nEd81A+3NFctrHrO59BmNqXsGA3qvw+rw/DjoXJeNQ2Om5AvL+P6F+Tl4CkKN\r\nwIg3gRoEP8TwiEIUYiMTP483qLiglPFNfYXhYV8F18CoiVCcER9H54V7kKE7\r\nljfIjUx8TbMMh2LY2wBzXbEPVR46MfEHo5o=\r\n=DRis\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-9-2022_1665275768151_0.021943128021191693"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-10-2022":{"name":"playwright","version":"1.28.0-alpha-oct-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"842dec334d769f3a3976dbd2e900091864c1bc3d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-10-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-s7mlWWSVJOU5GRvJTDe2PsZj6tsSM7A+28ctTWZH7BW0Ud39ckHZ4iXjDAs5plKtPKjXIU3OCAnDMwiJ93ODAA==","shasum":"caa776493d894b3a0296912c5dc41ab2889bc8d7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-10-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICR79uSpsrER0Qt+BE6Z4y5uJlZ92gKLBm2dB0GmJKfTAiBsclQxsPz6FfhHrgeKOV0g9U5uxqrC6DCezoSirgc51g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQ2n+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmro5w/+LucllaJs3oU6YhbKF0JBn3scFQlIZtGqyqqlINFXm9b997d+\r\nCc3W3vvyvfj87tmxWutMIGT4KfTCTfHgK0a6CtuSNw8h8nV3dxS32OCveXj4\r\n2WM/+U7kWNWR9za0J+9dc5OXaAvsm9daP5DPXz4PfoFv3eJbdNvD3lDeqUMU\r\nQYtazr0KqagAJ7Ne3rjLO/cENusmoXfPqxtR8ikeGYLbHzE3e/1cEWNYpy2u\r\nTPSLjP3iyxJ+k1xodN/a2sT7mptsvrJYVYhVYDZUdSkf5YvsOFluSIFLALJE\r\ngIIBdMeqwApSrSTZCT8yztvEGbrCAkLE9uy2l0ZXGLFm+zJfrrV0nED99+BH\r\nU87zT4ScyWMtDUHlsERGGiWYpWUqiwVXBnZWmfO+3Mbcj80IQrFVBQalAdyL\r\nBNUj9qSd6ijhHGIzNDpvjoU/WBWxOcIm83qtD2yJQj6M9UlApTwcw9VMz45V\r\nKZdfxw4dDyfIZ2NmNr5f05V/9YPzLMgswJF2BWyR2fau4hmHyr68tK+TxqSo\r\neSb+INzRkIG6LWw4tloxD+/GLNIaiVkSAJBcpH9v3gQgqPmoGkhz+LSO9HkR\r\nPYpLbtr3XtYSAkJckiLCAOPcZ4N/SOnvcbMpCGiCXWt/YmMec2PhwmNSrw6c\r\nVXiY9o/BIVtf+1iP+YZDEw3CVrxVHlSFqNY=\r\n=LsdL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-10-2022_1665362430710_0.060344137251550745"},"_hasShrinkwrap":false},"1.27.0-beta-1665429488000":{"name":"playwright","version":"1.27.0-beta-1665429488000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665429488000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4ff2f3d0c5767c69d3fa9473233525c2888e9c3e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665429488000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-lgAkcxt7uWttIE7F/Cal9yv7106DtClsCZSAfkNmyoardTaVgMvGO/lZnaSGrdmOMcLC+mXRCOSoTOoJxisIOg==","shasum":"f35f9dd8dd38136c31c5293fc5047c7e1d5163aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665429488000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGV705U2hnVJOqFi08JxVpg2TpJELIHe0UhWsvZS9i5PAiBHw9XWhZAL4KR4tJ5LwmcBw37oI6OXlvk5PISNSqPtAw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRHDhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeNBAAi9HhhQtbixXFsWjeVagMEE5m163mNlNYzzkXfNfq259LwCAy\r\nm+O8uhm9ZtVj09pZbd7n2emXDncR+DXbxw0FiKRgPPJ5xMSh6DTKis50njXO\r\n48vV/y+empDEVMC9QxF0OXXhnzU2DYCS7CNGrhaYXa9JW2rVhjWOlKv7XlZe\r\n9BGb37Et7d9wRARlKqWEbquznNcLNNdPdviQyRmTnm4YHZfyS7D66fs1bmN8\r\ni4ZTbPZMJ6aPg9F+TrE4U42F8eVr9e1c8Zm/4Yz9AQpPQjLPZgv7bVHaCPbY\r\n/tOnCG44D7BqOzv/HKLN2NcQiwAIfISxWQs1nyfSd9OkYBvlJ6opU7vUUtI/\r\nZSXqlvT+phWWadpm624yPmMOoe6dHOKmgN07jENN29YztRhQMc0lbGtE0rR0\r\nXNd2peyP+p/7pIoK2ketC6pipaFLJi0jKKRxhqg0/6NIHMGPWh+4Rb1C4S5W\r\nSaHAPXnIHHdEMvJfjhVC/eyHVdWPGsIFgNOe06e7jsoLoCJsQXnCyuq3bFUK\r\n14j3bzWMNhpKN03zKErPsibd+pKDZVYLE5D9Iw86aBaMfsBoribgWVRBjP7x\r\ndgG6byVX7XYcfXEapYNG1nhfNFYNAhS2O24AGVZfyrbh5bo2Rq6gz35H1Vdx\r\nZjQcr67FBbhfFZQMRqqj5lJriQQkBr1S6OY=\r\n=xFQ+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665429488000_1665429729485_0.7368081787466783"},"_hasShrinkwrap":false},"1.27.0-beta-1665430012000":{"name":"playwright","version":"1.27.0-beta-1665430012000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665430012000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f87d6f2838bb097b854cda5d3e2f70a8cd6a921d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665430012000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-xGUHnJaVIqETcJGk09/rkkPJxdYiZoSDaWc/Qxuj08U6MJosvTKucpOpv49VHBWWzGFjp/qt/HGAsjBrr8KYcw==","shasum":"e64a229a2a7d0667d733923fbf2a51f51ba060c2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665430012000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICCm11/wOQldmx5TwMFfW/I6Gww6QHY5XJb/EdQfoAwDAiEAya3MlS9hunKSBLdN24neDbhdkHDdn0hQobaSDVFnbto="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRHiFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaHg/9G2636NigRtPLAY2Vtc1hde4U7ZLLpehon3TCna+IvE1N3qK1\r\nfTqlT0FVpU/SoV8p6UABK15K7UOPEHnaxJUghfOyzmU1mc7Yl0i6UuKgmjtN\r\n1qKDXjpYPb0MGlYcM3l765MmI1uW3zJVgfEdKl2Q3/VJN3/3Cm2/rU0qox0M\r\nLcZ6DLZOGxzh6eLR9Hd82JeCaF3VbSue+QCwLdeba3VkpA17TVXpLoFMvxRI\r\nrM07dUnDDCkhMi/tWLsDK+8tGEVzC3of6AWC8iHALX4pZpDAQIm1+EjpOJEL\r\n8uoBlhk51oGSVtc0E5P52exyHd2PvMY0OM4OJVJNhvrWDK49RDhPGbDWFP4/\r\nTNQTUQN8JEFuXzC0HyjSQZ8+FexY3zPbemvH4IHYRE9rcGtWmUc2BBylaith\r\n67rurKyDwBa6iCHIIWVXZQIxhMf0D4hXA+3tdq33htpQ90+81VwjrL8VAEy1\r\nB7e7bwyjGtQ/y3a45FtFqtKB4qHTXB+gS10MOT+/N3fw0TNhBGiJv/oLa4Ed\r\nm7n6x/QD69W/kxti5OHiIH2+EFSibozltBpfm9uFaqwYtPrsFib++QEggLB+\r\neILm6wuDE8Kl+GHClaPleM9x9dAQ4+imskZkhNZ+ZlBYZU2mzVJwk3p+pQ5B\r\nu8o35zr5oBUaBxii2Co/jDkH8KmTCp6IUuY=\r\n=k3bL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665430012000_1665431685127_0.6785784764970768"},"_hasShrinkwrap":false},"1.27.0-beta-1665430573000":{"name":"playwright","version":"1.27.0-beta-1665430573000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665430573000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"df7906d92aed20f9eef948609837bfa5098dd82c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665430573000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-4YlKoxtmfCeBW7kZ4nLj3gRMJzEtcP5MtIe5P1SNyimlOHjOJZXWkP9cZIGGXEzvYKsKeDuYUAN/eKCRr58yFA==","shasum":"dbd01de2e5dd0f68ce1a69d726ab854886bd2db9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665430573000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzBMQarPtV19paLWw+HjnLNhLYdUFleQP0SFIzqdTuNgIhAMoqEOjXz6UP71/U/ihj+x9/vMgpSNBCymvANhN61Bt9"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRH1GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp57A/9H2t1sRT57WvZ7n7Tu2t+CmxDXTgSC6d2xggzgBVL4sIRZuPk\r\ndb2o81jjlvuROTncJvAMqzaytFEE3AvBiaW5Nte/oZU6yGuIbxDQLkph2E7o\r\nU+DVSaGXX7r1p9qGGx8IgrxXBJhmFHOjM3+LVzWYf56upYFY8e+kSlanIaox\r\nhQsxUpwYfQYcTRA8UXJ1KjIGGROC/NpGKszRFSYq+XNrimer4KryVhSL4ecl\r\nz+G9pTuNLY8C9D+mawBgw34ll7avT3hbwqe2iAPnNSX/5MPG8+updyvgPa/z\r\npKEtmFtniR9aG+QB+6lh0riB6iGUhWwGRtA3QOu2+djTDOkpihbNzyO+Ynpq\r\n/og7MQP87jfsSzts3Ry8eIHgTGiVhkOhuFw1FMEyzemaMBjpH2cBA1Ilc9gw\r\nOeuATzFQSSsO5gIzKhgSXmAjhX3iXwmejxP0YCDtNh9VmXxvLtnWZ04uJ55k\r\naSpKxVa6fofz1SzkLj7402mNUm29T6dhIOgXttX3ZrIKAzoYyB/A9EcthSiK\r\nnTxOw7ewqsVKYzwZNj/jVLcYJGdpmOy+Wlpi88ql9dVe2vCAtdOv1KfYWgiI\r\nc3bDPbBsWu3w67ZUdw13jXiYORoSK8mTEFDTyB8QjqYKnDhhu9yjekmjkTuq\r\nU9v3Tzkiw09FI2P4MJoxJbNtvBbIat5fbnw=\r\n=wqKF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665430573000_1665432901736_0.25408739526905744"},"_hasShrinkwrap":false},"1.27.0-beta-1665430618000":{"name":"playwright","version":"1.27.0-beta-1665430618000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665430618000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"384b710c24a7364110eb6a4122fec2a81f548ca4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665430618000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-w8VriLDB84m9ehwkBFlpe5eIAZmmYwBXT5z+B6wqK0ZOpTQwwn8zv27b7VSsef8+mDcw8srPMmkastEzpJq55A==","shasum":"048a7353ae0d2cf12554022108bb3e3290aeb6a4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665430618000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPSoHenRUcfE5SadoAJg8cbv25dr5orsHmEJ+9RhMLowIgOvIEL/XPWkFRtVUKmdWoVl6exfn+01zWYQO4ZL9h7UQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRIMkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbSg//WN0gjtLghM3MVgqfOyR6lo2Vh8XTqN0tvCqRnRR35iI1X1oS\r\nUK38WSP3DNfDurnAozuwSrC2BUfARSbKjP1GmVunDFa0Z5cZUSJOFwcGSzZx\r\nXRJz+gzoUarXipf5g5l4Cq24rd9/kOdk9d74qS9Cqq9tV1bUL15VDAOiENQ7\r\nKZ3jH9/MuT25I0KdzUdChi/7jeHuUGZ2zk5OVI9l2q3ULy+Yr7pvalqXO03R\r\nsXLZNXr99AYdxbQ9CdtTKFPToMKqv9/1cLtj2gAYbJbrpkKmgwinZGSoe6ys\r\nkSLJ8tXrL5wZG+ylRoBv6W5ir5UIsv8jQ8OmboKRdqXLfGp+jfyVHmeiuRxR\r\npjTIk+cBcaTOsQfiGAY5uVyMGb0Ppqs43yeLq12YM3/Zoc4GvFIjGukTXBN0\r\njJFmynDcCwgwkBqREfsbl0S8/9cfx96lSpTPvnb02egNZWZcVDmwG1yhIe1t\r\nucCW9GIavRFdTsimksT+ljO+KSNlIcT9pKMWvO0XBzM48S5qbbMJtfEcOgFv\r\n8S6IRAnzlXgN6OqZWKbEY3AozMdLpguT8rW+kcAPLEne7HoK39OqhMWW87xh\r\nKB/GPjcvI3JvYg7W30XqMM4KqJjmYj5wXqlxI+9xekwuEXTGYvILpiRwBD5F\r\nUWQPFNbffYPgKdNypIU6LrCTwTDRmdBUGS8=\r\n=bReZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665430618000_1665434403746_0.1358769468166634"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-11-2022":{"name":"playwright","version":"1.28.0-alpha-oct-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2d72d0ba030ab41878c6a4dc9cc49514e13e6cc5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-11-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-S82eWYaptg1pGS0F08l8LtqOJA+B6CYPG8YG8q1a9DAtAq5HocNdNj8//u9x9QGYdSw+IgJ2tOf/wtBa8Qo2zQ==","shasum":"a78901250a9e36e1ca88210a6935ae5ac4c3b494","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-11-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHg+BCQN92o3Glig2i9VwXuoEZhdtP/EhVt5Az7MBdNXAiAxClyJYeVPLx7Ut3RPkgkZjXIgsgpt/3D1OnfMUcn1uA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRLpoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBBRAAnoLpBC4+b+8hZOWBjV98M49jLWO3u3xAmw/iBsEh0e1posLj\r\nl4zy07z5ahRX/+EryyMI3iZumkSpYGT/Yid1K+JFCv4OZIxZtRSxymnuWSGB\r\nJfZkOmO+mWcqpu9uEIH9zG1kYmOwuQIucjnfbAAORXHCJmIFGLRWf/qzMalr\r\nWwyU16HtcedplA4tSHhVcTb/dOFMRzY4p/k1Qe7BlGgcgOhovNPyzT9BJWcW\r\nZ3NnlyfHJSA0lDFUq123PzdraNT6+SZSNPTeFOtuDVdPjO+1A0HFSc6FKnYs\r\nDY8BLGdMsU5XzDgQPY77aPTg/fm+/JfWwBwG4695GtITT2MuMkpr0+ixm/+H\r\n2The8Z1aZnZSjmC77gSm9spybDvNFXO79ntbyDnxjyZuFwbyPINOCmSBs+Aw\r\nd9qNn44+jnp+zIH6vfuLkS6zXfumxfMjQRew3LlovFCgM3F6679NCVt14BYV\r\nEARyIUxKO6TSZz2dFpd4ZUdouHsbgS3LELxWWQZr039R3Mn+D47KxX3Yc3h0\r\n2BgjKV35AMusmLA+RJUv6eQ/VQ3hxR4XnIVzQGrt2CZlmaoTVvIid+mj6BH8\r\nRbAL5C78VE/Kh1BVsZVxnVoJTUOqJYyu1ehSAmgxHceqKLlo5Fd3cuorlS68\r\n6ZUZzhu0IybzwtrI3573kGPWI974VnmYFHY=\r\n=iF38\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-11-2022_1665448552534_0.00647454836507233"},"_hasShrinkwrap":false},"1.27.0-beta-1665507512000":{"name":"playwright","version":"1.27.0-beta-1665507512000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665507512000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"730d3226a95f689199f38d7069f8063263a9e4a0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665507512000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-8poUL/BlWPdzxD/l33r+KLcXNpp7JPlav3KWLNfMvkhgMKjUIyAz8aPX4ziqFJyyK5bf+M6P+5j3hn5Q8o4w8Q==","shasum":"817c3e162fac1a29d71692c4ea739670b2b9481e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665507512000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuVg7rJQm1uEl2eCStCLShNGljpTMxc9MAXyQASc/9mAiAn8Et4bLPm1Q5XGh2ydvKQjSe8jCm1y7c2zweGYVyWLA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRaFxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoypQ//b6jqKa87CpkYLr9UlDzmdyuEd1pMSXu52R9SVCpKeU4L55FW\r\nIcwTf9ZfLi41s550waTo4eiQttDmr/PXzf3RoAH9Niobkvj9oqFvQgoS68M8\r\nG6SsCHh02Ew+15cGUsGiOZtmXRGIYgWc3TiKAgiq/ONQi9snnuZG1l1KaMqb\r\nzvotVfBWQ7NTywjhgE2L+wRu4YH55Njs2oKF66QlhOK9C+p/U6WMwQVnZ0TC\r\nyUrLzpN2mj6xg9IRZbNJzvBT4cNgXEBo0nnG7DUn5JhBtlM+yjNtXcdS2UfR\r\nSo2wU6ipZSw+eyb9D+vWbSCocmRgxbGS8omkVS7ReOXGN4a+19IIB85c6MXa\r\nDqi1P1V9Ki/82mnK6aVl+HfnvoevtbPxix7dgntS6mjvnA2T0LaT+Z+/nK9E\r\nuZgiPlatM8dSPDb6OxHj1Ig4/HMwgSuvJqefgVUOBY4aqX9xU4RbH5V0P4tk\r\n9N0vd0NYU2Uq1pRm23kQosA2KGs4wcPV+TsskbkJumNpU34LBEBDFMPZpdO6\r\n1VMki5aYsTL12qaRXFTVMPIg88gq26wimHh9MqWySYwj3eZJUo+XkY7sl532\r\nuWTc1HqpSdljyTJERrCpbpx2V3+pRJSkNXCuZMeKcMkyHe9upGgWV0XCSRoe\r\ndCNiV38SBQ0ha4Hcki0KdtDXjE8eAGc9lYo=\r\n=eQ1t\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665507512000_1665507697676_0.6039465647181244"},"_hasShrinkwrap":false},"1.27.0-beta-1665513213000":{"name":"playwright","version":"1.27.0-beta-1665513213000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665513213000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3367ebd9683c11a36d8b400b1cecbeda0e915e21","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665513213000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-2SOaMruUNDKvmxxHsAE5j94N9R7HdHHmXbmHAEnQOF1/V5v6MX8MbVPnJNODZwp9Epci5ybYbLaNgFoftc15tw==","shasum":"75d9ef65a0a5eb256f7ff6e3647ebc6c08c2bb60","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665513213000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHTXiruWg+11wpGN0mXgdVZIvbgOC+dcp4L4IzaCBsjMAiEA9K9puvj5nrLFjPketri+MM3bvDtL6/U+wZBi9d5x/c8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRbe0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3mA/+MYalEW9/SWb2ymvHPGO6gpD1klS/9kYM1qaj/eC7kr7FDRFh\r\nwzNq1lM/s1iJH2lZuNoMCuZMS/CAXXQxoyGT+ZiV3IMkCO6qspzGU7UCS/El\r\ntAbmVBkxvIHu7HJUkUjprE3spyqpr+ZJNtu44JScIhQsaWr+ed7HaCcbdmc7\r\n2R6l8T2N33V9FUY5mhtNqyrppIE0Yar3vFXcZWPM5U9y4H4yjlkLVL2b0IK5\r\nBQj3Eqf5cc6VNzBP3Ov9D9c/ugF0fk9dT4B0RhenWjlN6gnFW38ONVHEMe2o\r\n922Jld8XuUSgJctFMOqec/EEZKk10JhL5V9GEspvrxgqQOMtJ+X+8xIAUbOV\r\no5f3xqd3wpY8w/YNmrWQXPiYw1snmefT5Pcw7VNHPAVZef2GdrQQIFWtqTAx\r\noXeGvgayU50fEgx9KcvUDSQFS9NxnB1qFYZLCGse3/gHqoyPBtx/Ppbnjl2e\r\nhWBxHQtW6gxSdFtkEJpVFLTktdyrTLPQI0n07Qs6J9jIuN9QUi0ZF10LPgyL\r\nsy+V909T6hSkDmkV7NAn74436wE5eS+ix48YZVfwbgpFP8p/qQBsZr4iX0Vb\r\n5YO6H/Tw0Ogw9asqm2qRw53URkL6xeB3ujzvoAhqZXoV5TwqwadM0ofyy0uc\r\nmvoK/9n1sGBUQCYU+uN+lvDszyZ7wXrMmIg=\r\n=vfGV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665513213000_1665513396186_0.5413616410061108"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-12-2022":{"name":"playwright","version":"1.28.0-alpha-oct-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3b8f63d703ecb81d69a00da55b91e53878242ce1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-12-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-hoabyiJCjimIqg2ouN75zXzDzA6lQE3q0v6tlwdal+r9LECyAKvs//nKXtTgCCGalnWpfe+hVcMEHIO69oMrkA==","shasum":"ad6f0cfdb35b5321899487c8a2508b603c4a05f0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-12-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+dVlh9knnJklhYG7/5O9Nj5Qs2AbDsVtjuZTXcTMrZAiAK797+KX/FreGDeOiwqBo2i40LLArte+451lh8nwmqHw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRg4+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMEBAAh3Jn+hFpuzXTWbRrcb1M01E72F7P4b2/xZyHkgSl8gRreprS\r\n2vNZTpG2v2K0gg3vh5W2h5R3FmTnJwbosV4PaWB2hVcQ3ukk6eFz0g1xBitb\r\n1htARwL0IKaEeKOSFxj2BlATAQJ/CeUk+b9RnCY4ZO1g8q67Pt7h9vE4boVX\r\nF1ZIyx3W0VahXyxaCHJ2jl+e88GMPLnqN9l2eZm7Y22+nFCcHvMyDIgIhmjy\r\nrd+C9ahlYWihECUxv+VYk2XKIrR80jRmMupnuS9S1OPjaEmOYaS9kBORgY9z\r\nk2Fb9QHvSKQssdfsJbxKn+IDsZAv4scp2P60Fm0UHtMIt7T+HA4WW99U33Ov\r\nDxkuHf6hYkNQD/cI9dyEBG2BJikUHKVxCCvzaIeA1dd6hijeZj+nSjJLSceM\r\n+Q0qqm37pdqNxMTrNbgSahYT86Lf0EDZs+IPTko23lEoL+FgaNtKB0uT8yy2\r\nzYzXLOlMW0rqf07dIdkZj/UoQz5nNFBUj1/rmRytDS0LlVBQOU99jrflsw0S\r\nAdB3ySinJ13LSepP6t3+1uD77bvTNFjZVFZVv45iVbA35hJwtNJiWGDyZaiZ\r\ngV3JCRrGT9BkRDFMELfiTOEDoRhioIcqEOUM3LMVk8jzzG4mIwQMTE/TrDEa\r\n6Bllvs5t4ByJZ9DV5466HsxnPCQWLQwLeAE=\r\n=2Xm7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-12-2022_1665535550595_0.12915643312007408"},"_hasShrinkwrap":false},"1.27.0-beta-1665535956000":{"name":"playwright","version":"1.27.0-beta-1665535956000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.0-beta-1665535956000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"04b3b7190c75d2e5b776571cac2090113efd23f0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.0-beta-1665535956000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-K9JPyY7eerTlZdy5RlvM59/T4jG7GFvqkHiAdzP+H8jOT1VL/4vRw8BBkoJ6rS61TJsNKK7CtE04GNJc4vJYbg==","shasum":"9092be10e00aa861fb8ff92ab6f0216c0347b098","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.0-beta-1665535956000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCU4oEEOcZkkExar76DSxuyWIzfFB4HVgN7FG7sAB6JOQIhAJM0psbaUrq8NmutEcnUncTP8pjcC5z6UGjd1QEGKcNe"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRhCSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomxQ/+J8Yo1+aAHBf2YLcVW3XHkbopY1fBs5kLGGvICucCH4dvpVxN\r\nSD2D92ZJ5rJMEGOxVfXovqMxW5cJGX/NavOBtbFlyJ8KOJJ0/pz8OJMP7AEo\r\nB2xylmC/qZXXua+6c1GozbOI9CzyCkxvjgk4VZAJ/I2NiyTcpNIzVxWuODH4\r\niqRzGMUgOvaNzIziogg1hjsjKIJh3JUDoU60zfuwsNamrAPu8cVaqCFPRe5P\r\nw9s9SW4U7P6RFm2De/T46BQgsEOUZ2FQ7QvzjYBpoBFDE7hJGa9OZd0jCmlo\r\nuMdzRqFGfUuUhHb6e36EBXSQX/exOCiZH0z6spz3f+rOwxC25Eo+ufEuXjw/\r\nn2G2h43V3DskVjUKTD/SYHmAvE5+cHQFlXexuvM2YUaFNMcqFNgMQh+DUkS1\r\nicvftBQX8rAyDX004beJxHBj28+AWR5vHPIbY7skBtGsL6G3qOvHUQG4D+eD\r\nyAs7usnAhSx3sAcSszNacHKMQabMWH7PJeO1wCljfwo/7lffcOE1xozwiJK8\r\n+zY3Yofsk9eLHKCqSTlbDnk1Ut0EdJxupE6G3OLKQq8eVzxR/aOx7aZCoJQY\r\nplxQHvyLCqKl/sTkDM1E7nmWL4vlokYRouPy0BmXSDIb6sCf0RopaQF76ifR\r\n252axgzC+zho7WvWHHV2G2zrOh03ezDgK4k=\r\n=+1GJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.0-beta-1665535956000_1665536146048_0.2944584381595008"},"_hasShrinkwrap":false},"1.27.1-beta-1665552007000":{"name":"playwright","version":"1.27.1-beta-1665552007000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.1-beta-1665552007000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fde19c16521fed219721d0a8d0679122596d58b3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.1-beta-1665552007000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-LSNyj4A8ZOLtRKmkezjY0ziPa7kTo458iXEboPIxue1oPsTOPHVfHNEjVTH7EjybIRL2FWngATd9rsw/ksurIg==","shasum":"5e45791f0ae81f1913ee4f5fbef704e5b13abb2f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.1-beta-1665552007000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClnp1FensT571FdzAUKtPeLKao5f4wlu1xcqMoBNEclAIhAJjVqfbAw3kkibaBpnCNadqDG62DocYfw+kuC4ZlHdXf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRk9cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqklRAAnlUAtfK/jxaK3XQWPoU/ZeH3e0JlcGpVVoCUU17ZMFd/bKF+\r\n4J5d9SSlaSZyLwrJc+feQcDlNu3XOnpZUrpzE0sEuAuXJ1MMmDqA+1jA+oCK\r\nIV66leuTvI+GySroPxbIB+FGSFUpFSQgJBhdsMZ8wmhls5/iTKi2fykoNE6s\r\nb3iIf1D15cuAf3JyqBLnDWDQCuxhpDPT33LbpEkiGeJJhLF62Y1ctrmukKd1\r\nYleXFFUAc7iLl5/gMpMWEigWNMM+TcyQ6prt9Dmj+cKlrM2rWV+/xYxFx5io\r\nIALNyD05RnP6a4FfcVHLQIFP7QF/3RoO9wiVijqARh6WSyw5RLEuEDb9lwi/\r\n2IaRaAzLfuHOfyU/I61V4mZCk3JzbgCJUctRLfAOnLjiVqApxDy9wv2ApPeO\r\nED/lgGh/LdVbUIJH8wBp/xfaRI2CspiRkTmN7zIzalPAd8rZwPedqLWnXbK4\r\nkJ5Kg+scqY6Jco3iwzzGyPeoTxfx9Nmy9mfD+rkM7ipi62xGDKZkppMx8UGt\r\nF4hOngMSoMOiV7Fhj3O5WezBzP18NJUWt9I0fpW5FiyxOCrEMrSXdRPqf1P5\r\nF/HPRxigRf7BRGWL7oagt6WQXE772HAfIuSTdHuCbMmPH4utrnZQNYKUy1kL\r\njjSYWfNw0tRH6WBQB9fj/ddtlSA94PFM9uU=\r\n=Rlun\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.1-beta-1665552007000_1665552220364_0.48743659502851955"},"_hasShrinkwrap":false},"1.27.1":{"name":"playwright","version":"1.27.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.1"},"types":"./index.d.ts","gitHead":"fde19c16521fed219721d0a8d0679122596d58b3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.1","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-xXYZ7m36yTtC+oFgqH0eTgullGztKSRMb4yuwLPl8IYSmgBM88QiB+3IWb1mRIC9/NNwcgbG0RwtFlg+EAFQHQ==","shasum":"4eecac5899566c589d4220ca8acc16abe8a67450","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.1.tgz","fileCount":9,"unpackedSize":24252,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqloCNKWvR7A7qD4+cFOwiEBAkiYOy1zyhtxP4yLpzhAIgR257gk/dXKo6WtB1YSEogdmoIQwEjcDPbSu49kGfmmk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRljZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoeuxAAh1jjZbsxztahwi8nWGyZAmheTIPmm/V2ZdsgulHrvUB5QB33\r\nwLdvTujmohGwqT9oIOqKjvVwyluAjdZ3vrM7woF3bAKBv9Rvz4DSiERQVJOx\r\nEoHY5puzKvlouf2hIg6W2DgjONYq4+s1yFmI73pc4X1o8PUQfdR5Ij5h0mEh\r\nDVsRX6gVO+Bw58zIZSGM6mnzRLrzXWbfAJiVeztL5mze7dkJIwcaMEqlQsOm\r\nZM49JPNBGflYt2DVEta/5bD3zGDSN8E3jWRNO+D60s0/2Aby+3piH/a7Ymo0\r\n10Akw+Kh692XuPN4s3ddDv6VStunp3rPwtcymTMDWOqIGThPR7DJ/iEOjSpz\r\n79Tmxo5Zq3PNouFx8VugffU3eJMti4mt+qkOrYMsEgZDWul960t9C5YTTe0j\r\n8vlFr/AN9459vhfbDkKKmEBj9Wyyeqo8opAxHk4+Gto1tnyi1lSnXcowla6g\r\n948HpKV5BQQ0yvVaaVlpiYWeeUvl6hyDkx9tn+i4UCqTjOqUwiYTpK94aL0K\r\ngoLNGedW+zR+du3Yc3vlZ/uoNG3iV4Xm1CBm9dlrUq6h4NsdIXkStnFNbcLu\r\ni0w6tGzSi+G+DrXSHNhjlK1uSZpt9pS6NUjqjn2tQ2dOUFVFT+WEiUy2GvAc\r\n9fYOCLpdAsqbk/YFzd9nQ1Ti8o4EOSMorOA=\r\n=4VE4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.1_1665554649688_0.1771540171854884"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-13-2022":{"name":"playwright","version":"1.28.0-alpha-oct-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"08a3a269cdf7bf28e13b643300af2e25ee5e7002","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-13-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-X6rhxaAezyShVxWNqMe8B+GxCtHFkqVmXQMXzkqtPrpE0EBGnoiA27H2j7lQoCHN77B7ESKGl3gj8H/w6Mf1EA==","shasum":"615102fa6281bae3ac001ce2c8ba05bc60a3d682","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-13-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqjQ5cz0OXSXcY4xh7ZpST/DCeVQqab32p3L5ay18hrAIhAPDmMFuWFST3Mzj5sg8FfDKNKIgMp3CVMTK3qZkaOIri"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR15LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHcxAAmo3NtGIfs/AGN0+qit96Rc6WgX1TCWUBbWmxM03m46Avh0/W\r\nNnnStKTAaKOUbOAS/75z4eskoAtZEL34LR4QbOfU6uYdQjgIqIvo1FPJ2oK2\r\nvAfRiA7nojpe7FxLNXBIjiDMWZ9i/xGCmgYFWIBmaE44UnHWKMDydbb999R9\r\nnjTp+F8uaiWAnT7KYGGmUAo9+1d3ls+cLvf50AK8BgrOyY7ahp+DWRKFhLcw\r\nMVAHLwkW2CgT4Z8mj3dIb2r/E8UVP8iGo3Q7btSVoWjP8I0n+DlpjhB6d7fG\r\nglWBIygueVXx8xIzv9zU0uIv2a8QJ2+TVseniFCtqaEqr8Nt1RrmL/9kkyKg\r\nJh2ZFgr4UEzsC9/UpH8nYOguKglsF2yUCtlv5p/wZ2Dhb9D5fCcnuM3NOnNV\r\nvcX+5fM3ygZj0Sr9gLqmJUjSvRxv6aGIei6IVIP0WM+1WpslGMGszhj9nbQl\r\nSbDxX+E4k3JqL/cm94OH0OqrM1jlMWeyx+zqGlQo44oEuuH7QEdsj67/YtYM\r\njPn7DtmZel9tBiYLqemtSDuj+swM0Q79b6vYMc9P2qo4gzJVKJf+Hm+j7PP6\r\nYX0M1QMecMklaHMhIKfn1sI0Pz6Vm9YA1eAGUM5id5MgRhenH/is8roDCzbb\r\nwfAnR4O2wVs8gx84hTpofnoETJfu63XKYVc=\r\n=wje9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-13-2022_1665621579184_0.4296773151602862"},"_hasShrinkwrap":false},"1.27.1-beta-1665679529000":{"name":"playwright","version":"1.27.1-beta-1665679529000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.1-beta-1665679529000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"63d6a35ce58bf30170594eb24e9cfbef9074b8f9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.1-beta-1665679529000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-3rAtUfZf6/Vw4bFTWMQsAKRYxldzULIX9CRtKPWpzE5HFakzZ3cA7gjU2aL4vhdgozQKHBNIUaW9uDtmSxW0Zw==","shasum":"9554ae3416611f34a5d00d78093965b640231212","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.1-beta-1665679529000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFf73BZSgrKJegGDCo4Y7CKT7aBwgy+pdmN3iaAbYxTAiEA23W0R3PNf86Ilq+dafMxgELfODu7dCm0WfLF7ZtSLzM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSEFXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZQg//YDpfctvDXCU4nVsy4IShnX0oCsWKs84Fr4w8QxU57Wom7RZB\r\ngbsoJ05LqvViJC1vcVqz5KRe8u+srV/1qLU6abnklhuN1wL973nV85RQh4jm\r\naRXy4oF4FvsBb5mkB7bmoKLHszODcx9ZnsEaA6adgQeBmMK7shqm/6Z8lE7a\r\nDqjA3g2A8jk7wJGHA2R7Wniiv6bM8LNOMQub7Lo3lLDvYdc8Rv+4PJ+iMOa+\r\n71hlOMfVlGChrVS6k39eb8Tbk16iKY8LzN5WLmJ2JDa2/4N1TsUxv8wkTm6U\r\nFJJEIqj/jwEG2sPNkqVCm8Ui4TyKVv2b3htoDtFKodG+ThYAQdBvywFG1ygL\r\nKw5m+jA9fermog6glTJvU7fUs8AOiCJ5SVkSyE8jNZgeLR/3HE6giJo6Sz7J\r\nyhp0X8pBF+cjdenKDctIn/rEMjdng/SO9bj14LstvqiqKmBePTFUPog7kQPr\r\nLmEIM2LXgREzozeYk5C+mHyRgxOs3BdknOajGux1KM+PNLN2vv+gZECJAVtM\r\ni6e/OFP3QvhZfjZuaozOQWSoNCrGaOnyYiUnjOJjUxiLqOryTOT9j6Bvsk5U\r\nM8pOq/p/rtYfLKRSdFrvYb9rarN43vaVso+kyNvUQeA8NeOgjwn9k9DYN7Kw\r\nUfp03bTSeYx2UdzysgGwyvX/yz9ekzuRB7c=\r\n=gxTS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.1-beta-1665679529000_1665679703098_0.9959023130549998"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-14-2022":{"name":"playwright","version":"1.28.0-alpha-oct-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"693ed9b19e03f7d29ef188e8b71d6f9485093c8b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-14-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-YO3v/qTsXgsqI3pFnSAXSofrA/XHBwtzRTH5lwUn9I3zZye1Qk/ALJlHMT1P7fWYOGqL3ORwqe1Bzdm2+iecUw==","shasum":"51fdcf18daff70f88a0acca1055d0d4355ca2b46","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-14-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAZM1EMnrVgqaIIiAiI5ErlaX0BZtJoxGT7i31kaLgwtAiA6xB0sFHUJUhXkwK48EaGNRwabvMCC4y6Wg11C/lKTlQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSLDJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOUQ//WBbOC+n6tcJAIO+9Be0/Kb1wlv7GOscq8Rr3AyCqIuWwBI/6\r\nKvu/kqcr7FXsUeH9AYuTiyyJgc0OLKivDx7YvIQKf/htbQhqLDIisHoGNSFD\r\nkLD65EEuYYrHvVo9P9+XxaHKTmZXbEkisCNJzmPjvq0kkhn1LQQ5/jtHfpWv\r\n7T8WHE260ackwDu8OwIPB30hoeehr6mXarZLc2IMlXEyKapSvLX4cC9I8Noi\r\nokDv9uIdIOs7tVVa90CS8vHEEaqccsjOuK6iuYBg2P4k/SswMGnVrLX8th8g\r\n7MFCOjWJ+IMNDSf/64cbnK55i6juArOMpGGLkIq7ZnXzr7zqu/e7DeILtLbM\r\nuOtXnAYoN7RRgav7DGjrWFYszU9VFau1abBMTp5DMaEZ577s+7sYAamYSJuL\r\n81APbc6OsbQSIKRsB70QuJdWZLPACqPUu586ya2eQY1OSUqXveV17PKhln6/\r\nQxcjyJRrhQdtyFbijge4uDvQ6nw70okNG0loetvq57QB6ALiHppqZfqbf5NF\r\nq3/h1YJ73tV50KUl4w18Z0B2slTKWu4k04r68R/RbcA7SikytayOpb8sIzbS\r\nMB5d7+272L54GYs1XuuxOztRRSSnpBptoO16/Es+FABhzRG2ZHout94vdo5f\r\nC+cEPIXM7XAXUnL5SrbsTLH9QOZf4bqECnQ=\r\n=xPPJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-14-2022_1665708233137_0.7272262462742671"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-15-2022":{"name":"playwright","version":"1.28.0-alpha-oct-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7219a68b1203b9fcb74d970630cb87a4f1b4e756","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-15-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Z3aXfhTYWTRX27mGivEJdImU0uWkfoC6fmYAjIcJi9/Y6It14B0NcfkfJwlu3oDVmJtPsjj6QL8WLEIosxqytg==","shasum":"65bca00b3b6f910d87af096ed4e39bc495232e2e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-15-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRSd9Yaq3O29ZQJHQS8H4DxlzNrivsL+bn0EXFHAviJgIgX77eHab6MJGSrlyb7JbxB2Yv2ihrn78zXoEXsh6/vzY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSgFhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsNQ/9F23oD8+C3NLbeVlqaVz3cI+8Syh5Ni7BMQDCu4pWumJH+Lyb\r\n93hY2+2Gol50ILhLHqSJpBrfCCAP8o61QcnsNiT7XbJiwEk6uiRrzYJSgUVx\r\nDAQBhA8g+8+S6qTCrTbaNyzVOcdu4zv60fPsDbsDAQ40L6ELeZBuyZx6CBIV\r\n0oeYzry9wlkYjrsqaTIejlVhZU7AIdMTCSBCQg78AQQV2VyTR3t+Fr+0Pi7A\r\nAwE9aqtLf6/BYvEop5/NMKOs74uIEnYUHDnrdX76+xe58MgXAzP5l7qPcEeA\r\nLmwMqqK30DEue2+ZBo1/9FK+usPy7ywEA6yoRwdpfXcylgyu4DvBtJON5of7\r\nKk2ZqcM4O8EJTBXElbOwqI8x9zHtJw+Vaaake6SmBoYdR4uZkj5ikPGAUq/Y\r\ncw0msR4sjImBPlJnb5o5hijfFkr0KKVLN1rWznE7XTmvIuybQMGGZPRpyfpX\r\nMwxBRh+3P+Cul259vauG7nvJxLWghipKNDB1Grvv1uVxJezf32hhftqXQHaL\r\n5M2wV18RWDhoHl96rUfunwUXadcKvjhqVI/I6AtcQrZXi95/mnTJIVBm/ug0\r\nr8nOPWUYJR3HWQ0eUf/byQVFDQQnXr4ldV8Eth81LLdq0wIkGUIvi2Jq8X6G\r\nZ1vOq8+Tn6u+HFBJx149ALX0Wg59cZmrn7o=\r\n=Yh08\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-15-2022_1665794401651_0.8586915850312067"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-16-2022":{"name":"playwright","version":"1.28.0-alpha-oct-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7219a68b1203b9fcb74d970630cb87a4f1b4e756","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-16-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-x/qpxr7u9f/gq+b9chY3sws0xC7ghTU049awFLJYehu9bH2pEVNJu5rWO8/i8z8aS3jTcjJI4mukAMfH9V9l6w==","shasum":"2167def0f7246dfb78b485d7b40f89cbbd4c0794","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-16-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+9tOStuBVBVeWkuyagqsPC6iUvklKuvoRYYueGw0HvAiBUsavqIIJAajbfw4dfu3aGDXju2k2j9mxEyqYr5x6h/w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjS1NIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovLg//UKPSkgymcdQkSsOcpX7ZFAiyw+BDoyIa2vbbYaKK8OaQQmaK\r\nkpYjmBW+RV+HUaBlyAD/y5iiQciB/niOGgzqY/YU7UvLmkG/EmHMCLI903c9\r\nX1gK52mvmWKLDWEj+fZqGPgLEYSGzxtEw+ukWxh0+W/FRy1rWqyUPWj6oba4\r\nbqWDK4WxiAo0/8RM9wP3DTVbOWwJVuP4C4OfSirbVaGKRajU0yirGmzpj3x/\r\nXaRm9seZnrnndcjh1cogv3YJ9/v/sGF3ZZs/l+QHa6qu5KK39NHR0jtTJ7qu\r\n9QEGtOxrE5ZaUoOwepNrTPHboPqoojxOlpC8rYohw9RqNwiHuH5rY4xp3zGu\r\nrKcuyQd/XS75u04ooYG1o8hfLxVzDWmhqOd0Vc5O5mjRqd6QyXwp6Nwvl5CW\r\nP5WoLbkPGQmhwAnDFCGctQgRWKDp9zeBH1C6NB4HWnOoYr0XOg4nt3GbAHYk\r\njbgUkXQpgQR+mwxxyoSmoBLFvHQSy0vZIehvWV+EdChWKwTu3kUiGoKP2Ohy\r\noHtXkfcalonXsTD/bfTWecaWE7MjeqxWH1VFpYcEi7BHmmFO+iCY0ssQhYqD\r\niIv/vf8dMAIhnutVVCXG6zN6AZDoka3QtlJ/nwvDw1bfYlrPyrDlOebA7Kcz\r\nbEt8/hzL+REIy5ndQYcvd5Qmax84RIuDcfk=\r\n=CteJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-16-2022_1665880903824_0.3738247005959978"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-17-2022":{"name":"playwright","version":"1.28.0-alpha-oct-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7219a68b1203b9fcb74d970630cb87a4f1b4e756","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-17-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-9zQfUlZtmYLAGN63Rcqx8/WBzeQyQd2U0Q/B/Q9ZV2C37gbbsfTwSW060SHSZx1aRnnyq+Pr3MJ2AnmAScrowA==","shasum":"d1a6defc5ccc10ebb76f648fef6e36662d875bef","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-17-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKkdVLRVT2lAhJX6IEYel2HL2o1FZYEqzwFK0s53jdTAiEA5BohJyBh9phMR8d0oL4Ra6GXUWB0EBa/Cq8c0eugSSI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTKUtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmptHw//Qp98WxOkRQu49ZnQgimz0S2VJd3aLiio4GwIiAklw52nCzkY\r\naOkb33KlbmiADEP8LhCeylC9KqOm/oslPIQ6l9pu+STVoZCqZ6OKsRpToK0D\r\nz4xo2N4ODUpefg9Zw2EoRQD4ogIHNf1nl2nqsph88/6YDnC6RDDOSVtcbV49\r\njpGw1AAS5BagI3ufq5tYxLruyD22RD7IWj4ilWx4y1WSAwCvX12WHTM6q6Ol\r\nmLr8qQ1QrKDyLEjV5V/XfDNanOxAWM3k0XjUd8j/R2RvwQGf852T3kswo4em\r\n+pEoa2IrwtomgrcdfFVcA33nyb3XyeyLSipDOsqasTKlvX1aevWIr7vw6tk2\r\nKJT0U+xep7vyOXILY9nkHLra9jzNo7ktyQGiIH3Z7qzKCoHXomfX5V50gQg/\r\n1Swv2d/6dLtONYbkEXg0vWFjV/IgUubYhUmmqVkgsGvZKTzS40PmY+o6SWi1\r\nAvw64xoVkDcaK62FZDZ5BS4erNiUMbkUp+edeLL0w+aht8kxrBUomvtPGKWG\r\n+KR4rfcuTYMMFqn2brW9kLGuTaXKGroRY4zB1pIK6qpQRsM4YaqlwdkfBJ5v\r\nZ+XCX0/92nvBFNz1H4onk8iEL44s1UShyjfEBWEELT0g3u6mteExQvse8vpo\r\n+fD/vgzMToWTNAl3JvLCSF+63MhmGo/lKXw=\r\n=6OYq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-17-2022_1665967405187_0.12558202157052034"},"_hasShrinkwrap":false},"1.27.1-beta-1666021552000":{"name":"playwright","version":"1.27.1-beta-1666021552000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.1-beta-1666021552000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"55a0abfc7a55ca2e442a2c23cd79fb02150a8d7a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.1-beta-1666021552000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-2g64stPsn3bUg8wPgIBqFGAQsO0lBkdYS5S4yBLB2VJ9W54iCfUwFgyC3nnFGlmU8q4nblGLPxM3evyMxHu+Uw==","shasum":"88b37bb9a3c607b6276e16ad79865501e373ce55","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.1-beta-1666021552000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBndAQMfDRXafoe/DDMKSsU9ofHKaNY28X6RXmAkYHyAiBdqhJU9J2Gno9pFiPkdCEuoBtDsarNs2wZvw+ni2gVjQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTXmIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2/g/+KvYgm2b/I9wfW1ktJsXBaJWaP0pZ4grQTWGKOslvdhujyaRq\r\nK4ug93mGcyl+p2FArrl+rcaN69N2IpSP+mutHju47lWMkCFGw8ItWp5Rowp9\r\npY5dM777+8MpQwsrcE1OhyANe7IU7gqJqwx7X5U0fonK3hlwDP6v4mkt57IE\r\nmVK+Kx6eTgsoQrGjqXzX546xONX1q+aft2H9N1m8tUK2mNCBATe7L3jgnnXj\r\nMUMr1NIcPY+sQ7tZ6UNyoxrfv70rA8k61ldNTa8JTWSPeNCrokZ+WClwIYss\r\nZkY7wLhCuyA5uLkEWzAvlPnzIZuOrLwzD0ORPCI7FlLSEutIRsa7Sc/qj8ME\r\nWA7C9nV5zBMonCGtGIzolK/a9WcVd7yj/529deKYj3u7QVND7Ldiq6YSyjqa\r\nYWmGKygOaSiRU5rWXY825q9FwRFeyyp5FLqAXJkK/HmoEOu+Yg7PS2goVWaX\r\nyuvxmenpqoGTM3kPB/0NTNVi9lfNFQotGnm6lHYTcloRzJ8l+PT8XI0GJSaB\r\nwT8wvYsaS+7EQmwawrZcxJFxcigm6W+/Gj2AqH8KRy9RGxC2dI3PLi6/z9MF\r\n/gK9HxRdLl+FCNmKZwNe80oAlcvFm/tCS9IOkC37atgJ7Vu/p+6qCiJ7YTUD\r\nCE3za/CoiuO5lLkMTzgvQ/KyxWVBys7Z6Dw=\r\n=aGJx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.1-beta-1666021552000_1666021768354_0.9403000421340912"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-18-2022":{"name":"playwright","version":"1.28.0-alpha-oct-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6d363888f27b1238986398fd1d6e1f149e039e12","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-18-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-4fYgJKTpj8JQaqBGyEz5k94SghK5OemX8hDsoKolari+xPUGFJvdsh7mi44MfjOzp9WI7IQlxDuhbSdjbfa3Zg==","shasum":"21cd75a9451c4baf7927b34d1ba6d1b271600975","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-18-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICbOsPu6Cmbmy2BMiXfyk+7/lBCR9/plBfD3ci8AOocuAiEA0BWdyro1Kwq/cNQqidT+ObZJgzlzWuQH8PGvob2iZCg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTfYEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpczRAAg9xNCk4gCoJZDqlCBDj156MCohVyBNeiWS+uEwx7T74iNkt2\r\njzIUU3OmMMxuB/K3Qp66nEh3ZAvswdNWPpb4V0KDGUM+ExHhqTz/2FKn1Q1c\r\noGlB6Sno69thGTBoc9rnpuZTVP4RKp1u/pqHAHwu7syjKmlUqM6aSloax4Q9\r\neQx2tvHoCsUkz+oIJtLoBzsRibDG12OyvjR8h4Xicyk/v4OmdGb1bXWS6EDp\r\nvEsqxRjD6/lOpC+89xgujAVG+pS/DJ0GUfNrZmhrr/x4DQAGf9izgq9A7/5p\r\nQ6RlmAAJQTEyVIzpWArfelp0D3glfRZHsjv2jkRFlD0F5VzgROQfr4t3rUHs\r\n8eJngh+sY4QUrLfx7bFEyxx+uuQSUWKQYETfcXfVuzvSG6gC95SDLV752mlU\r\nYFNFYgX899wD5i1Ry8me0PsExtB1trmNzzXjOnu4+moUfNNd3lXGH3SPs1H3\r\n/PvIBN++cXc3NDXAn+2cvL8jOl55Nqy71JEIjJ/OipRBzJu3+Jdp+hdkIeEr\r\nZaKjXedOfTKZA3q4R5h4B0G6GtGyN8P7g6dqE/mTYAn/qGHwqR4BSzAXAEzk\r\nT1IPHJiqrm72K+/ibgTm15N1o5NpHX4Cg1VpB91j1aRYJnFO5GZt4d4FDxMS\r\nG4zLCPBnjNY9B2CkKRwZAO56inTzL7yQPZM=\r\n=0FKK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-18-2022_1666053635982_0.5062506681063912"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-19-2022":{"name":"playwright","version":"1.28.0-alpha-oct-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"11eb719d13a832e53acf76bff360530c4ce81299","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-19-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-GYigfT4lGan2N2QRpWeKztNqZfENxjnlFT2u7/MYFHSNalvQbnHqDSqGYyo3wUSxdeV91pnAIrnsR/kEaTj85A==","shasum":"bd987ca781a9010e579e5d5f276c433ea75b3f9a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-19-2022.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCPQRXn534NL4XDGC1MdCNJHMYTgyiVj/e7d+aUXgJ8AIgTnDFNQ7OXIonKEJtcVfqHFSA2xDDf/gzZVyfGfTOGGQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjT0lEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmotBQ//YTIU5kC64hoKGREEgdS1cVTb+BKgVQvp+PcvXTWXSqRMAodz\r\nchfwk1stiuPKSEgROmxvhu79pzY+mu6FcIMreLWHvHcUfi0t+Wd01OqPeuo3\r\nIFLoBBB0/d4nHtQryP/CJcdv/fT0W/+NWKouSFibkvXhSDwbGH7OFP+kzOBe\r\nSFP26Lh8wipDIq5iR4C1Lz3o5ZK/XSG6pxLhkVVfCcwH4zZwqvxU8PuJCTRp\r\ntTnPfUk3g/HF9FyABPVYJfraxB2nXMAOROUmiP4GwSFkm0IuXnnEikqmBK+y\r\nhtV1J3H5rN/s7iaFZPN+vmR8Laf5GUvK7eKSFZ6dt9TXrojVcgKW0+jNiJAj\r\nMo/KYlhyTKiu7MmJ5+XdmEv/vzofi6Bf9mT0OlFFY58kd96c/FScNZsJEWeu\r\nL3meMYzh0gJsnL2rH9aVDibKGHu1nmGJXB0bJNt00RlfhAhEJFNZa/HnBRsb\r\neFY07ZM2rJyVbJTCH9Ea9bzWE1R9QVftgItj97TWWMCTpKS0OgxWj3CAYZ0l\r\nhne3VA5Gt8V4qx28SufvrVI7E6vNYu7gtbnoA0WMHq7MS5CHhNgv2UQgmvjV\r\nqXIRPQM8UvM3HfpKUiVk0709IYG7Zl7w8jhZ0jyhBrmO/lZYVfbo58Ceo+Eh\r\nnEA/8F8wX/7mNguvonkEZdfJTdi1NbyDMUA=\r\n=SOuV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-19-2022_1666140483809_0.5100519709202984"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-20-2022":{"name":"playwright","version":"1.28.0-alpha-oct-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.36-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"af38449f429258268e8b0edb5962eb8765b80a8f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-20-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-PjNwTJk7cwb1VSPsAUgyQ9JVejQBSMUsOknOPibXuQZsLN3SUbFhzdbMbSJBFTq3WI/4RIiVNKa1QLFet0vrbA==","shasum":"2a609450d5c66e437bdb7d614f06d5171ce66b62","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-20-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdh0QcX7uWD/RWlWQIMe2PMypjlfsJmvOQ4WMoLsSQRAiEAqxbmxb4Z9eMfPHSUt0CAE7v1w1Rhl4SITuDgHzzDZcA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUJgrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpF+Q/+OOtaJ5Y53TWUEsLxvY7Zpznb52Vyj0WcIMmh/1Ozept7tVtv\r\n5pZpSOAykTOh4q/R2rkflQFSAClcJU6XANktNTXlOpLUYOAm+sIuoXh+MvKE\r\nd2fySP7FuhKAgy8VVhctQEcrjxZP1+rtk2CJJyFxNLA2CPkzXjDcjGNoKEwf\r\naKff4m/1SOnzCtJRD0RJcsJqzpSTx8nIQsyBWnlQB55HA/ESsM91cr3833Kt\r\n+ewMkX1zeAF6t8D3hYVxjESkbrp4wzQtIFgETibeqb/5t0wlapfkn3jVzHlI\r\nHcrHSLZbuMRtpr7/IkFCd0LcDy1Mdhl/FN+/LMdwxMpewjbrUM4T5kO5W2eT\r\n+bgTpV+x5Bs886QgHKWYdJvqgnZ+8tEL+zZa6TFwARFbyloyTNyI7Rz4W0rb\r\nxsROMuqG+t4DPP7nMSt06wImDSmOrB04RzhGmmf0EW+QVniT3Bvw1x/X8/Wc\r\nELpw8IPlpIFVFJHxgfhZXMy4mRhNn17Q0kaz2kz+TW1TWgnTsyxFmwWAjfLI\r\nCtSZWYVGguFrSDRy5CmkvU602ipVLRfnZmdfTTDo3l9SuMkBPfaOOhH9qHwX\r\n5UCYcveA9yxPo3tRIdBBmJGZEaHmhZNdWq+JVBsCgAVT3JjYy68UPywTUukW\r\ngWYXS6SKlk0+rXqQzi0gJZTe50r9arPeHD4=\r\n=BnYR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-20-2022_1666226219687_0.1771632464138415"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-21-2022":{"name":"playwright","version":"1.28.0-alpha-oct-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.36-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7ae447ea0fd7641b4414b369430623b1f9f260b1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-21-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-n1bQ1ni6LktsxInW8lh9H5s2L4Z0yLpqU8n++QIFjMsOmFJfXXKVIhCvPaqz9fdGV2WjDVp1eM4IQjrgxUumdA==","shasum":"fd40fbbf95795387a323cd20834c06f7caa5235a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-21-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHNeZnsxaf6qozPleDxUiOFQSrFBk541oz241Gcluq0nAiAfdcnhTI5d7TTze/WdAHg4gSf3PntmnRaQO9QBqSlP6Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUek5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZQxAAnyw/+qE6zeDJRZqje1s7wiqWj24UzhDCCAG+jQxuqbZiD0R2\r\nNt8i/SnAnVi8DDUhr1yG7oimK7IYgdKCFLauZBVWlpzwThwsfjc/A9PcddQw\r\nML8B7+uaMIGRxProsTQ0USuGBYSLFXtpHXt8JuS0OmOCYn26Gf76+DMiw4Gy\r\nLF1J8ucc6CzrQjD1zi9979SG3/WsFxzF8bloMNj2uTkbAgHD2qKxI6mLIK4T\r\n8S+/5iYsqH8g6fzhWswrDNGBK/DUzGFan1DRuVbpTZdg/diFls8gv2lYwMQv\r\ntL6Jzk1ulqFbeHMbA24b/SknpqLlOOK6lz3mPl7PxECVNcQLF8DgA3hGyfnB\r\nDNfZxVIxZpr28TgCKk2VZym+R/p+EUlOf9FL+xU1az0LcUae5TFwc/jP56ck\r\nsxGAXnYW/Qd6wG8WoaGARMR5rPx1BKoqMomcON0A/67JCLAUdiQDJOwcY3ig\r\n5Aopoxfs0Kv/jNmOHEcntDkgJjtDH1Pi9TcbjPCCuKHebv2buSvvKXI917wC\r\nJrGXDLuehdZUiCKxEEJpdPjzVZxszI0AJWXuhXCfwq3M6nzIBKlhLM48cyyC\r\n80JXSIURIS7upvnplNohu3GMTl4TgQrwVBKNl+MQI1qJumqqpvKmBAeq2PP7\r\nuAzDG1O2AZzF5fGvWKtySJmisexV7Pc1U70=\r\n=HtTU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-21-2022_1666312505623_0.4162837089128637"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-22-2022":{"name":"playwright","version":"1.28.0-alpha-oct-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"98215b4d74030dac7a98a37c67650fd9d0b82509","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-22-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-fOid7yAQUinS/lI4hpsOGW9c4QbGZk06zC06h8PJZMvFrt1pFZ2t7rNHol1jqaxON9gw57RSd8IfpHLwMqiR4w==","shasum":"89753bb359487d9ce8a0431edeafc1aaedec2b85","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-22-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6VmsZN/C+83KP6a5Aizi1yGq4v8hp5zIxX7D24SsuFwIgMLhwcCTQgLLUx0rQyZd7wOxesl1s8QDI5xzkhxq3D3A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUzwoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMmA/5Aa+oRwz9wnpGqJIDj5c8TFk1ui4RzoGXsospOGF5zg2mwFfb\r\npq/9gM3dWBWYT+C4EnNiamvhVOtJhcnfz5r0XqSxHMbe8iZs8ge+Bfif5BCt\r\nBjOLGKZdmFOGiD8+6427yJvRQGbc6Ij5888hAFwBrzFH3HA3DO8aP3D4OZs5\r\nTJLqE7VaDwsSqDpy6hfr7AQhQkPYwvXuVItpbbiZxn77oY93x7GRoSG5DlO2\r\nNTCWmrTZThFGY4RXOTk2MKpwMU+Z/23ekzWWotJw42XMX+8CfVvWJ8hyG6Dn\r\nsYqSBtrCW7oIJO/WFXyAuZ3vV1nESun6c0sj7Jf5WAgBDYFeOKhUz+kkZmon\r\nQPAid47F1Ul08B5HHkNjSWGA9SeThHbW16eKZKzj2uC3Ttt28REJIEyV7tji\r\ntgvcLfizeSyWgoLCQw9L3MsEq87igOxzoSNq0fyVjX9zThGX5EsMWxjvZjkT\r\nBezjCYjORAdUJt3esivf1DZ1v1VIVMaSMbpjwp3bxfBFZK5okIJo60iG7XbE\r\n9e1pxy6cXZLyD+0loCeLx9SKxWU8he606w7S1wArfxB+M0EDNVqEHebQsPRw\r\nLKlh2/1l61JaaGY1hAzL2fj5wfL75nADP3q23Sha/8eD5PVMiMoHrMcKu2XL\r\nQZDu3BUJkLCg6tGggmFGg9bEG91rLb3csMI=\r\n=QpCu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-22-2022_1666399271888_0.04029088491331212"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-23-2022":{"name":"playwright","version":"1.28.0-alpha-oct-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3c0832a0d94c6c88984e0b5db246d7b3c660df74","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-23-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-8h8CYZGJNi6+SIeOSx51956FTopiu90T7IiBn29ykru02lH0LvymBpSq2WbfIbdiTYNvwGtIKU98yh+xFyUoAg==","shasum":"f038c8d5387c57083e4a33159c291cab3fe71e20","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-23-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/iWzQfxUn9cDntM7Sdh+qQDd9uO77MK+aQSoOX7B1SwIhAJyzeDSzy8JoVv5ptrOK7F0ksQ+Ou2cl5keZO4dJZmTC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVI2MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpI6hAAixzh3JZU+5nqN6yZt2421uTphaeLtKXNcrtZLW93ZSMQjju9\r\nVSavxKv3lg0iBwvqjUXHcJRAQn9IuKuAjhgLaI7ZhC3JdQNZrTqM5lqkvrjX\r\nQ1tIZLQN4hhGhkcGRr+rhYZhw8KpkIPs4pAeR+/jqUMGr6KJ2k9HjcniezNg\r\nO4TH1TcIGWCtkl97ubiH3AtAKsgLiJyMFYYSmeNGre6XXf/1fqB9y0qn0jtn\r\neZnGYixjjklgIAMrVRLnZEUi5cLsVxBicPm38thj0mc1ojMb8fjQvanr0xEQ\r\nj0fnk1SNYdPTe2+k2N5TtHxaJrgT9B++RhKyKtgJp5yjgwZWB7ysCgByh/jQ\r\n4bpcJIi7iZcYnh1SCqC+9PGpEuSc8+PIn6KhqR9ri5jf7AhsuOH8+Pc0IIql\r\nkKAysXHtlc8tna1kraqocHLpPAbkZ587mIu16TXPI4Yy0M8BCvnWB9EcJTrc\r\nQm42kmnTZ3wQ1kX4mcb68E2JQSiewShJ2cjtr2JwOCW8L8jKzP4/1izfm0sF\r\ng4Tpb1llt1SVtGiv99qzgRGbaYLmn+0MOCfDYeblSdPVbEZ4bSWuzChOAoFp\r\n/f+0g6m1iZLw1dEODLnuTM3vxjrQFXnc07olsqOjYQKFfaFcbBsftO510OKm\r\ndcJMZoj0j4PBPb9oNHpa0ewzJBZ8aIP8E1o=\r\n=yib6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-23-2022_1666485644355_0.008214057073108627"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-24-2022":{"name":"playwright","version":"1.28.0-alpha-oct-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3c0832a0d94c6c88984e0b5db246d7b3c660df74","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-24-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Gq8zRqBvjErjL5xNHlsdjI1cKNuAX1mWv5xm4qbYbwyKIQfqs7r0i8B7pGpcT+Br9vaxFlqUto1cDaYBgN2rbQ==","shasum":"198695f6687fed5dd9c022d9eca7d5800cdd5145","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-24-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGhhjMHu/FSjdbPCVypP+ruTJlG6S5Tx980/AWCbMA6wAiBkxq3Gtbm+ajSFxkKsw5s3kWZlRhYjAp2Ov/RKAWvbEw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVeBLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4VBAAlf5DuDyT+6UiC3WAP2PZpx2sjNdD0Ncq4tJfFD1ORFhD8rZj\r\nJTrECRY7PHrtqGfsHH8f214HYGnFdS+7OR8YPBWt7S9bIaPx35Qh0SmdPNmQ\r\ngXlRnGfE9Kr4Pn2HwiWGrJDxVsbj6TOQsiA+Q9tiLHwd3sXE0YHXRBH4Tx3e\r\nrDcdbsDUbKKL2UqNEa4K8ZG24omTVpVt1sGT5HdMHsDbyzD26q1dFUz8KjyY\r\nntFjyD7OWUFPJucefXjj6jSykSMXbeFJv6w9TNL6aOGYcHgVGK5cXvEx6e2F\r\nWIWXgQFBTStcXjeouWIXaxEb/1aYG1wsZlx4i+DeNlLkUHAYc3I1teLuVapC\r\nCbTs9amGZjRVWOmmcs3+YsHU/C+Dr7qVZm242zP9qBU8fQyVR18Dj9dWJ2Zy\r\nDZ6MBSx0tCuh7fSMdZwcGPTnBbiqO/SKG82fhRnsrbfNA9y30vgN/MdXzYYg\r\n9gML7Eb2q3VRJAkvlzNgfpp8Tx0KCWqwOoMbjxTKgpdR+MPNjSFxL8m0zWgH\r\nvBB+21CDKz3gFWkVTGM666TYZrhnWt5FHGC0nai18yNYVEoKQmAM4HEcbZNM\r\nNpkrcBDFS4ZxTE9lSye23jju81L+rtWT/kDQvsoTEwWYVmhqTATqkoomAeRq\r\n5Ed7nwyjpDensr7HJN+lKA5oY9vgVxnk6PU=\r\n=X9+R\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-24-2022_1666572363497_0.8207892183376453"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-25-2022":{"name":"playwright","version":"1.28.0-alpha-oct-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"805312b7227b10b1bff9cdda9fe4c421fef3b182","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-25-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-BXQjVdvkW6hGl6vqfxYSKX7BPdFGhllNFVuztRdnm+g81nWtsIxb/OsDkGVeFOjtfnri0x5cpwA8xUPuRKFR6A==","shasum":"a3ae2e9d8b533f308b32702b57090e56af2d79b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-25-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA6BLaZSRy8CAA2NtaDeR44O308A1gteCM5H4y2FKQGWAiAspNFdwtgoQkypxWZ748DLTIDM/CPSBUPbcaEO6achnw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVzE+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2aA//du7GHqZDlS7XLQi8fuvovVlqNqdpUarJ9+SXRMw45EXtFvkR\r\nunO4hOMs+t1pfo7aPgI3+PanatDXvCab0Yf4Sqhk5l4qqbFHnn5GqvcVb2fB\r\nixLvY7oZKJH6tREdFs/nmu09Hc8qc4zLxl/v0gsPqdOPT698dDg6qjkSpd0e\r\nThRV3gluf+CCx+ksARjsG+burLEMP+3/h75xlvZo9RMTNI8pH24y7Z+HKaQ5\r\ndB5NrzEaNzjkWIgPpG+NN1/32zLIHkcroYODAIacFFtHouUrOSobZC722sV1\r\nX/sMguP4hNP/2zDnauEBQzsqe0mwtGd/VFQijE8RqN84VfU/BkYhtbuG1GA4\r\nWqgh5PRna3l98j74we/+mgqfj1r8fTnMkYmxCO66RJX0KJgZ+FSRRw0dvUud\r\nfcI0A2Rmp29EGQb/Y51257/cHdXYTsL/VG5i5VlqE3Xk/Lbicdy7vndvcuFR\r\ncfswDHa5cZXpSfyHy5Y/GyZpHl3Yi8hSwfEUkxAIkx4MhfzGjvYrc4KHoYSD\r\nCY2IzGVlI9Ia8xhJq7GmLDF+VhQGBgVRa/z0NHgDc4hFtTbBIzBqL35wube0\r\nJfZPS03p2EDuZ/cfgJo4TCPmNTSUqm49Ktz7f/Rr6pNHx4+2AV13GqchPhf+\r\nXHJktOUJCpaoRvQ3aLEedx4c8wxI6S9hcmE=\r\n=g1YF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-25-2022_1666658622237_0.2434125712936126"},"_hasShrinkwrap":false},"1.28.0-alpha-1666716920000":{"name":"playwright","version":"1.28.0-alpha-1666716920000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-1666716920000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"37250cde174f30fa10a2cc0c67ec55fbcfc667f9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-1666716920000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-qthmAdUlhyhNRKbhLa5aJZSeYp9hIDTiRvlkAJltyMBmo5z655kBzvumnPpy3/wONEIWfHgUJA9OX2z6YsUVjA==","shasum":"eb7b8d882d359b2f0030b6687dd3997e432ebdf8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-1666716920000.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDOjT5M3K5rP9nZQgV3+eJVwIb3vucb1+OFFfvki1omHAiAXE9VKVnoR44qCR5VQE2SAWC7c2m7qveaLc8jaIu1uig=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWBoGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrt9g//WE/keVRpd4SLLo4X/o9XQcLl1aI3p5ypskSxw/dBeGAysOsR\r\nJkH7FYueBBko0UKviwLQ2D6Y0Un7oqqYIkTb/DJuKsKtFKwyVi4PqbLJZAwg\r\nh1p4ykOGjmCiPWelal57diFeDIgwiN+ktdKJg1gH+OUVLYY0N8MFbYdiCDvK\r\nfZGyBm08Uu+z57f9sHfd/W4Za3nfbRfT/hzly6efo0nNzuEaxV35NnR4P8ep\r\ndepNAUjYlGXIVdh67hIX8i721zf6fDGEBg5JE3lHa25aRI3A1L3SBvnPBehD\r\nlRHNbAaiUVmGTDMic6AWanKLFBKnYQMl9rgHkzo6de7ZeRV4/ZDurbq2D+s9\r\nGnHny0RFSIFm9eXJhFtGxN+yQKwLD+tEqBnktsuJmm44laygKTX11VoDSJeB\r\nB/Ueo4ZE8Vr6zn9K9vIIOyz8uFMp5LTYbcLcRv2CKS9kVUAY9b6PVPzHIY0H\r\nEoUSoQwH64G2vOFtWl9Q9s6MYup1omMTgPZfR2yHDAwvc31gN6b+oqhPEjaP\r\nLSByfgxnWWHMNC2B0lQwPa+taVnQnRq1+ncW+ikFPNz6DM58NZ3Q27xij1Os\r\ndhQlxTQBvFSfdOG3Y2YBXCes5BbiXRyNxID/NvdNWOESaLPjFxApqISoqoVJ\r\nYe56l1BeKIVIgQwyZmtFwCIOldrxTGVSaEc=\r\n=LS+l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-1666716920000_1666718214739_0.5598413727755571"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-26-2022":{"name":"playwright","version":"1.28.0-alpha-oct-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"63c41f88cd0201830a624b5ce33781a35146d20d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-26-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-GbeuWQo0e1AYtUIemDHn98MG7l19YLvXu8t/tRBLaYj7hoYqPuPEbwYWa7k2GNYDqd7lnqSPwvWTcu4qEW5EEA==","shasum":"cf367d853e8b68ca740ff6431c1c5380d6f13801","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-26-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFCjB2SY/uhNGRUREVI78B+8H3n/mpGFbepQLJANCvC3AiEAjB1fUR/smcrd1HNQsdIvAtjom/bI5qfHLrdbmJpNPY0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWICEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkgQ/+MaOK6CT9ybHQoMvsZztajLqpnMdmsnK0OVNF0F17xv9pWV7i\r\nwN1y3kWU6jMcdc2pHKM0y2THyYraJ2vQ4eXbRSWv1aJlTbMce87mxTMx2F65\r\nHdZvffTorixobPvOa8qSek2ytes1vLpozLnVZ9CuU7A6yePi0VQ9/33gI6h5\r\npuMiTq1wO7zww6mGmzTcHabDRxCR+ynpZD65hzfD+j+I3pQMwH+7+35jWVVc\r\nWcMZFZISwoXhMHYwFmjjOCDpZwojxrLXw3X4IC34Xexvv1WOIEtOh90EaNlD\r\n8QhNN76i8wLmY/9M4xvgJffF1cWx7i//FqElqACfnCDaWqhc5FogLzHBh4xU\r\nn+H11g6D65gvf7/K6Fyz9waxJMZ/NszIajeqe6Tfu2XLYKyNOWb6SBb1S60O\r\nJVJRX9pKsXH+yzpR8uoHLJPafjUzwsJABfp0n6n0CM5UIgawmeQuQEmoA+wg\r\nD1BdKlD07bhNtOzW8iwa4zt9SWO5t9YO+GH4lLll871FSYY1NgS/4yErsiCO\r\n79xBf6kq8mETijyVqJKImz/U6ADrTjnyabpetolRjYVvfcK7ry561UjzhzG1\r\nA0dzjlYmlW/aOousYrjROzOAS69joildWnUmfxg9ekB1kYc2pzDeVmXsyQYi\r\nQSBhXjvVmt5TwymjpBdJyRhWzKKn9JW0fLI=\r\n=PFS1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-26-2022_1666744452278_0.6826605278734335"},"_hasShrinkwrap":false},"1.28.0-alpha-1666810142000":{"name":"playwright","version":"1.28.0-alpha-1666810142000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-1666810142000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d4bab139b255800d860bdcdcaf38e0654ffec090","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-1666810142000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-rg99xzmH8wOxPVuaGomV7rH+kXYq9HA+a72vhIliIRyKGQGv9Ja81xLkNp/xMpMPouWWjussfjUHAHmmtzQjOg==","shasum":"498eb8ff765a607ada4502d859af62b19b1ddef7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-1666810142000.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBXM7AeXuIrj00HAO/SrO44EpeBte/llwQvZUjin7eSAiEAqi+NYMc00VM3mZPII+GMqgeIHJUGMnKKEU4r9pdR3KE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWahlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpCvQ/+OkMkhen1fLzPok91gp7v8iybBNAMTYw/W59UjP+EY9S0QHRs\r\n6eG6kNV9UiMsXOdjD8G2yGcO0o6UunBF8W7zcKZI4Flo0KU/Pc/N4fLlA0i7\r\nzDiR2GIhlKbp7T4DDRGqpXPBQ/vAwJ3T/RZsj/o6Kne8Pgv4tmkhtHFlDSkJ\r\nP5EOtwcSP76u1BhCsRTMgunEwEs129kQ4KtFMcixKP+TF7C1oYRCa+A9GQ5u\r\n5udUpqVlOqeRgp499JBfa68A9BSSjCqtMg7BQhqtLZXTYJvkzKc5G1Z895bV\r\no5q044bnYb3+ozMVXdjU2g/rVeM9ecDCdMIG+X6G6JRkbhLAUx80r1PCKeeu\r\nnT2/LebUVxYDF24y3lA4KwpbEdiFyQUoPUBRImturt7118Ih6pnCegn87TQy\r\nxB4zFdKcsl2mqniL74DWTGaaMN7IkFTxI1OPiEUaDgAabU3Yluxdhwtckp5A\r\nylCbGYY4gzRekhipjWHAlEArmpI/DtSZRdr3n5SrBBihz87KGEOuMqeimfmp\r\nriusDpXET1QJvLtOFZPxG9yJYfrmD7kPyqkuS0qXd2+m0qVCHqyLDX/lUWss\r\nTEcHAdg4BBvcs7faag2/6J6eI+XsFduBdCb3UjYfPpJlGKCgCTC5MWnTEyAH\r\nXhzlqqJ33dChZbVGdPDZWQpGL75CCA3HcCI=\r\n=NIZd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-1666810142000_1666820197184_0.3029071742792191"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-27-2022":{"name":"playwright","version":"1.28.0-alpha-oct-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"12fdd3336e62dbd7e22df295489c8abfe5e1dc67","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-27-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-i4cUr77ZUH8/TDoUnb60WhQGnhvbMMR9GJx1cMGft8Ep4vjLdzmA8o+9icW5Mb8OIGGb8nMvL/WBCsol041FJQ==","shasum":"7aaa33e0308e5d4a558fb449b362ceede36e74b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-27-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmyjkpVZ9e44jxF1JrHwQYMG7J/IKzokWkKN6jqJHLAAiAtkjOkdRwJwvuenhn5+0S8tA0sBoEyaVXdAdyrOMCtoA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWdKpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+OA//V5sSD4OLCg9v+1ZjE2r/IzIQkz/C/lbswMaSVLbhpeV3E8GA\r\nREF5J7kgglITIubWerwVnNwiJNX8iaV95tBa3Sy24k++ryaZdTgRoJzf3fre\r\nGvJrgHOjQ0w/r1ppJ7gnYijShc6LmZlaiTpbekhzivxJRcPPe4byDDY3VCXh\r\njToKT6yVD/t/3ULO8pZbxL7DmXLXn4mDfDM1yaAyZWonSXSlRVWet847DUhE\r\nmXsn/TYiO1CPRcLnqqty35Q8Kc8NIMz7DbaZun+GY6pT/cGJXfBYbx+HoHIh\r\nMr+FnHwjMTN2OYI5LJTli2aKVrEUevdDSbtPcMr+YU8dZ7yWfU9G62985Ung\r\nmhU96oxjQ1eh0uPOeRCkmojHzUgit6b9tMvinqSw66pHlC+cdgOTdVnMaxCm\r\nSbmXW/3gm4YDFkOAxjFAbmT37h+V15oxwKEyTWD0wBYNlAhL+jf6qGGJEdWc\r\nfy1o/81B99CJzKxboePYX1Zi8geyWVmXuIHs0RaF4D6UVIQLnIBEVaEwsTH8\r\n6wsVXrjoZcJo8+TpfQsOH2iPUBjbzE+rA82fgieZaSUhvIYzz9wVlK0ptjA9\r\n375O5TvtiKg9ypD5Et/a5dyZW5m6AzNPDnQcqxpxzJDjSn5vqnSmM11REGgB\r\nWxXxR0Jbfq4B4yx5P50NJuVkWwDXII52RqI=\r\n=d96p\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-27-2022_1666831017079_0.1667031650169739"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-28-2022":{"name":"playwright","version":"1.28.0-alpha-oct-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c07f06aa3f72018afb14bcf6a75a64bad5b6aa9d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-28-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-DGwJb47OQdbJpPm9vkkej1w0iwwv4fwoZmMzFWiOfDhxt9csQICOACpXOMQYDXtB+eTPLLps5ufR2e0jLr2AWQ==","shasum":"24809808fd2b621e124f2d1c7c1c677497f6dfc6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-28-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDB9QmMWJq5VMrSo8qGzY75Xu9aI3cSIxybvPphIxoMogIgRnCu7VvR+sqJtFTyfi4RVaj56T6IlQkEOyYW5kXZf7U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWyQCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpA3g//aRw3m4eA6CZx5soO8jPPDeSH4VPzRlF2ukA00VWyyigSZBC3\r\ndIUvK7GezMmKHu1xYE72MkzzOfAEbQBgsPfpa3y76lxgROBwyZcVb27vhMzM\r\nWfESHQ1+amQfj/HfdDo/I/ZhL5KRDCcNtyLbxm5tWzI7rfxLkIfHGJoP8Z0r\r\nuKC7nUROjtjlKCaGDp9Q1Yio7+1A9eT7c4+LsqTyj3Th8AXKTa1RXymMa+ya\r\nVghR4U+Z1PJ2KWBV0ALVEM3PGHNCiWJNb14hItPISnpwIJPAH6W4v2Xysl6T\r\nI1LNa3sgIVJUAsy3KUjdP58qt1BQJ6oL/EFSRMiF6/m2BK3JAmD/XPxFn+zc\r\nsdIxuu1eAr5+wwRa7IY9wbxX2L4xsYwmO++tBteOQEZhPeO4l6qK4C+CzxLe\r\n+vfeTJpee3QXIX2qt+Ot6uK8NUAAyG5TeR3ZLwgfvxEq+I6sumW3D6GYQEog\r\niUlXjDCCBJovD2cyE2izg4IQBrU0jOmHc13tyO40pIFWwePigcO0uSGp4zGT\r\nH6P9XX2Er+mZ/bXCEmUdDNoNQS6qurXxLfFApvvoGRR1qJCgdLnAXGSM8fVg\r\n4NJ4xDth9vDjPSbUFAH8+Tue8MIE1Kk3WUcKMjoca3ejZDdPe42V8nKVa+zf\r\nUka6o0TDhFKMDVBRhKv9MVymwt/aJg3JOjM=\r\n=VFm7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-28-2022_1666917378162_0.17218729531593113"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-29-2022":{"name":"playwright","version":"1.28.0-alpha-oct-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"37cd57365252e75b88d93bb091237f955df481f9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-29-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-cAs/h92dhz9Kusg9ShJt/w0MCHBYUmAtDaTPumDqz20+OcPdWSFIxUGYCHP6yvmzQSAnOVkpDMmXT/UM1VjEmQ==","shasum":"fd4730aa2644a3fd4cd926493dd1a0ed8f930a35","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-29-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAg6TUhkc1lJ+aXpKQwU4/sdUj/6Vu4JrdyCWEr7/jP+AiBqQn688KGxsl3RVm9/QHl0OfabXXQ8leT7E1drLfjawA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjXHPXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHKw/+N7yWViNYuQIKH/6MTD1J4ylDhKKej29eBgytMq304NbjaLQr\r\ne0FVygAoL/wSSkec0i6IuTQUvBAyfpJE8k+b8nNTKPdY2gafLamqUQC/XGEQ\r\nyuO1GRKGW6iQEcvHbfzsV2yel8H2650NFGWK5p2rlgD4waZ0aCuMVOa1Kyhd\r\nGXgUe2K+MQk+P5aixIpTlWvGRk2LufOftG6VsJZhHykvd6OKX8dd7uaLKnvm\r\nEXstz4mfFZ+jTyZn734wfoRHKiKv/vG6b+L/K1XcHTiVHShKoW9/pdxs6Qh9\r\nMoc4DzP4nRbK6rTeFfEfppJLRwTLA4+Js/q0vpdeUnA9vyNIQ1GKk/V5R82H\r\nIRuRxannKi7IlnAeWbIGpZjHgqnGXBYlK0HCAZZNhmNIFBK40YnNGxQ+EoRL\r\nw5odmghvnUIj0LgPK6cFyT6RDc6U6Qt5PS8DR6zGADphSA3BLGNyxPl4j1Y+\r\nuRY4fi7+unWgU3Qf+Rh2hNMM+sEV71a6HCUP/ia9kCG1TJtXAfLmJLdqjlxR\r\nvOE5xyNixcKISO92iAVdmyWjK/TvqxV8WmSLveaaRotMR5JmVbi4b5bZr+V/\r\nH0bzdN6MKwVzRrITfVCQtkegk3dolxTUbKc6xFee+mBNx4pjytF/D2cqRXIm\r\nOpQ+QM0W9uq1jOQDW2AsuHFwirAIXo9Xg9I=\r\n=uCFL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-29-2022_1667003350858_0.7477211314196757"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-30-2022":{"name":"playwright","version":"1.28.0-alpha-oct-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"507226392373cf859423ef40f52bfc0c1a5187ac","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-30-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-xOHvJBAH0eEPFe/8bcPFTp+rk4xfVQrYn5Rn/tA1KHz2pAOCmVlXlCLCGuhwKoeCbxRB5hQeSIov1IHiCPVAIw==","shasum":"571c0cc311ef28589d45dd47e8d2a6cfe5608632","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-30-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4BZ64YtnnPCL/FOHMVMOzzErjHNZrLX9Ym8Tz9HS5VAIgW0juB4K6ye+uv9CFD8yQkHn1PyVG5rtrjxQnciQqhGA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjXcdhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVKQ//bF9bEN6fBDIu3iw7ZD5DiTX5uQPVRBrto+G+aMak+RBuBTtz\r\nnFn18JRsTgkt/u7y7OtLq5Ah8CReiJOYaaZG6Ugzj18uETRUIxdXWj8yWiMY\r\nEGoMbfaAj2WngbEy0RufPMKjr0vZjYg4rFvwf7JfSQUUO5W2nTGNSrAvms1/\r\nAVvgdVgYUFqk+zF2xOhJib1ll0rGd3Wf/MVNeigZlZ1xmVOkGbSMi8mYBF2o\r\n5B3t207VwSt2jMq8ep/RrZK5YGlFXEr3qy78w7Wiq1O1DP8EXwlMJnE2Jt5Z\r\n24XKv0vqj0k4+w5Q7p0H6BTtB2rRDESrUTD4nBkT2Tt4WZ4gTiBIGe10TwMY\r\nfD6fJO7xy1Rxjz3h9ccJz9LBwKFpG7YaF3K4axuuED18bZn5DE+sznS25a/c\r\nlbsFvQ64jFb3QnT2mDsCONqeK+yqEOn5DtmiY9cW0Xkm+Rsh/k9+EuOvGMis\r\nOViKyuQ2C56u3txGtuAaUbiPx04QPM0/daSOvpW4UIf3KKnMm1MnXnYXC1b7\r\nHedThaAyZTNy7Aby3lKQMBqhXoamKhN/T3C/Yf+on4K19gg+rsPkKNiRYwqX\r\nzA/cT16sm2iqkds97RGDtFynhByh2x+wVGM1imVO5udSsDyO4GUq4+2Hgio/\r\nJNWQYl7JMHYzzYf8O+Wqoxb6ig6rVR/dcwQ=\r\n=oZXM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-30-2022_1667090273063_0.05654810184022052"},"_hasShrinkwrap":false},"1.28.0-alpha-oct-31-2022":{"name":"playwright","version":"1.28.0-alpha-oct-31-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-oct-31-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"507226392373cf859423ef40f52bfc0c1a5187ac","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-oct-31-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-/mi0pVmCgU4iAioA9+eQwTpcbTyrUiNAHvPczFbtE1puaAhELglnq+y/qEJ8C9nEVkIbWt/cgnR/+Vi33GLsyQ==","shasum":"96c95c48bc45cc1dd245fc4db4350714495c3dab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-oct-31-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHw/wzO18cmEEuCtM+f29ri8M4mkFEhMM4UrQVuwyLCgAiAM07AGNsxUyhTOSrzD+VNcHl9m9p18xLgKaq1Lep3HfQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjXxjXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHVw//dAjBmTUzHJd6nHP8Xp/gPkh+sz6fGBO9fVkz6UNy0qIG+DFv\r\n+LiBCsVfEcUZbauoySnR9bBWsARQhD77QvdeZX4fFgYgrh7oHlHRYPJ3Qx11\r\npHeoQvqNdFK+JIOz9IwSb20QOvdrHVlQBpksKok9ykATZ2kBcnB4h8uABvRE\r\nDY/V0FTAUfYOkQjNSzNtfRCEYPLoi+cwf0FmvmFrL49ian63U6KyPGnxf0wL\r\nA9Sq30cjJDSymYzK5EU1LTzdJYT3IOZgWrwXwnpHN3oNt3B2gPztBg5mY8Eo\r\nz8Dv4DwYGCzPmBXTlKP8A3riyE70FgjZKaMQ2CT34HiWxFH5A/N+3dmV9pC4\r\nf7/6UC3f2FzNKguVkhigrojKPk4xsIhOA3RLoicCrsuNfJby/lPX7fuiDnKd\r\nBByr6RXuOlzdF2SPD5osOVS/WsQD514cEo8AlVPkyxr35QJODxnYbCrYjHph\r\naZtoa9YzJrOI1xEHvKK7CZmkspWYIyxQs4bHeSS279+cLnAaOvIp78FFETQg\r\nf6M+nve2nIdvNZQfj447+gJfrN3KJ/KhANUhyizWgz1QQlE8gAAzoAYMO9Nb\r\nA+z6aCxrNIWCmLBGRHVVco0Nj1iRMwe9dTkoXSoUThyT/JlKduhGP3nYKoLw\r\neaa0KOLo+XKnxGWdvyuMnW/oVDkeaEsZdqw=\r\n=BEBj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-oct-31-2022_1667176663750_0.044717665104282434"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-1-2022":{"name":"playwright","version":"1.28.0-alpha-nov-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4d53fd9c638b808b72933505c7407eec03a5a186","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-1-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-ATpn60kTooTf6ql2Pyi/xt/k4GG+edegyo9RSty9+wPKxFuXLAKX9uveQdkKg9mQjcJg8RseecGI27SVaKQLWA==","shasum":"401a3f9130e9a1db88a9a338de384722482bedca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-1-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF27HBFkX0BPg+qYno+EKpfM/8BwHVUch83N6fqQfHRwAiEAkwfNvcSKvpPhobK4B9caPtYPxGhyYkDho0WZdEK28OA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYGq6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmphqw/+O20Qjv92xNlW0/f90ZoqkKlJ45ofmVez901UBuk6HhlWybB0\r\nQ3SfipBbEqPLNrPqfeNFkunH9nFITQaQf6LQHuMaoLfLTemgom6bJw6AeLhw\r\ng0Ae4s44wGzc0MJ6h+uWB2D2eL47CosZtm1dK0NnNGIArKDABtCJTSthOEdt\r\nzbjdDPp7+YInXOHx51mLIWm+Qc5APMDRufv1mPti2dX91urevomX9+AoaJkt\r\ngbFvLmnMGcz2sLEDNa6W78/sS8ZIuIasM//WGx0X3YynqKwEbDgbotVbQBP8\r\nA/vpDAA/iCM3606nIZ5WmQBAvc11PbI7zz2yt+esB4FNWv2UHh7BZegULNFi\r\ncLZNjFsZ/yvKBRbe8GSLbbv7MSPq1dkipS4+II/CAPBR0xKF0XFDR6BA8MI2\r\n1AIE2q53+BlylTyRBPfseEvnuq/ovzOS1F6z758u+mZk2C3FGPztTiGUNe0A\r\nT8gk3GdzUaUtSs6wjdq+snJRQA4Pubf2uoIESK6OdlzRML7IL+lGt2UdktI3\r\njRF2thSI7qWnWC4tbEYkgCFcL4AOdC/qXRrjpc7GBldCpxy17iuM8QRKHBjv\r\nEe4eHk9s1gt6vbNm1F2QFNLqgjIEQ/h5CggygvD7gqu9+7IUUM40zwtSHQfS\r\nQios+txn0LQapBQL3RaLZQUZPBSp7jhou9M=\r\n=3Y7w\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-1-2022_1667263162550_0.19839240395329472"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-2-2022":{"name":"playwright","version":"1.28.0-alpha-nov-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2183d9e9a2dd68c1429f2e4f3a3f8bc5b1ba1330","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-2-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-jrO5Yho+TRrD8lJY30BJJK1Lt/WHT+lKMir/BfgqvnP12gB5o2XWQjPw723bJ97OgmqHieaYaBFQuhlMN0qI/Q==","shasum":"0b8e5e063699ad29224c5768b882670ea0e87439","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-2-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaIxr8pA4uVK9YKCK605C8QpLD96BjQqqxr8Q7cMsZbQIgQzUlHXA5seepDkpBIbNkMY57s+mXF0TgLiamhvCeQZY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYbtRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+Uw//axfWQJWpR0zls8A6/PysbPHCx4WV5X6FqngJvO1dmVgKoI0s\r\nQId4ik9PIpvmHy9OzYsdMxaweeo+SBYaqlnJEaaJuAhLlcta2dsbkIvDRx9j\r\nJg58U/elZ4cTsyiS4ObDHWcWmqBpUqDFNFzWyl7W7SOMbbApkNIWKOrK8CPJ\r\nUUbB81AMXU7Cj0Oo+nZnzHnWNvdF9kNzW+ypi89TrzIBgHarjTZ1nMEvy0IG\r\nS3ajogX7423BVEHtku+rGj7R91DFsryUxP0iRDghULdF9USQqSZZJC/hl7c0\r\n5oUKpv9cpV3MYzvb/J7JdcRKdb2AeMNClbO8fqpBe+/e0rEHRo6tCo2Dyrw3\r\nFQiDnj/hg20ZoMNSE5A5rtTF5iNl3g+ej0Wb39nECjZ/uJx+zztFHUN4BKYa\r\n3oUdZKlXjWN374MlBnW53el7I2eKC3jhb49Ug2MMSVmA8oNcWVHu7AwKXa6a\r\nKG1JnaOwxlMod9D0ENDaZAEfPDiZLMguogmnFtKD7pKJFbuicfpOVGsxa+7M\r\nN9EhXhpovzMtFI+9ZBKfMB30G7i0M7vj0EVljlxKNDyfaKnzj52CQNBepUZC\r\nR52QW7XeQyCtb3Tz451sHxZhmCZY9TueBS0w9bXEKkS0TnCIBAUQuL4sKqeq\r\nz8fuqWNthE3wboAZN8mw0RBxb8qWjuAdpf0=\r\n=Yxst\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-2-2022_1667349329677_0.9417101664725456"},"_hasShrinkwrap":false},"1.27.1-beta-1667430954000":{"name":"playwright","version":"1.27.1-beta-1667430954000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.27.1-beta-1667430954000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-107.0.5304.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-105.0.1-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->107.0.5304.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->105.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has rich set of introspection events. The combination of the two eliminate the need for artificial timeouts - primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos, screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the modern browsers architecture and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls, produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points, explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at a given geolocation, navigates to maps.google.com, performs action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f95d87228a235d63b0e2983025d31c235b663469","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.27.1-beta-1667430954000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-8nzVy29eyGGB2kTML6OkKpWcVw4VNEN3ZT4l/NqdjUebW77e9ZFWtinaufVSUu9sFMDR4JttssuhfFnZSyV9zw==","shasum":"99ddad19485225271f3c880b7ed14205ea853dcd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.27.1-beta-1667430954000.tgz","fileCount":9,"unpackedSize":24290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2SK8HqJY66Hlx2May6yKwFYX/ldx1smeRl8cGJ+ZaWwIgAv6MdtYMksSZWiUoUzknSS3ida41Zp8Cdg/jRZo4S90="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYvrRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqx+g/+J+CGWB/t49ghXaRH10FkNXelKIz3buGX+poIcYDsZb36GU3j\r\na//lRz9nB7ECynhug0NB6cx9LzpIi88j4FcLblNkRcbJwgsyQMFkQ6kgnnv+\r\nXhUwHs/WqyrAMV8rGPdqm7VZoNcGV29hqEi7ekYwN/su+Y3GgwKGD8ELfCMr\r\nkAmvaYlrtHOwyV94ieDAoSy8AJHNKhW9kQCFc08cguvzREJYEUS/fuBxi7CP\r\nc/K6EcAfDQi/Z1nyqPP5LHi/17Z7VmRMq1FXmt3fbVKOUjUghrLAH41VOVyB\r\nILdeu86W8tUbvPO5rSMAsUKZabJOw9bNPSwJ8PKfkB9cYxsdNGVU4s3RCQTl\r\nwtcHwOatlUz6surFKuTGiZelFJCrUwpJ98TQY2Z77+vAhRoqGGtDW0RLlRVs\r\nJcfcwEwGGXd+RuUCuKnAY0AufaJ48+ZCMkpEqU66p2ClszFPJqNCtjqo3nLH\r\nnG3WYEG2mhdx09deV8w3L1MvLCeR6db8T5C4kNBMdZPnhXj76MxFZ2kLS363\r\nQutF63atIPwVwuX5xVSycXB/RW48buNaZ/dXKklqF5NB5PO85DJGIcdW/YcI\r\nmmpBnX/mdsfxiAo4/obInNHDCpnKEMhYXUtrwq+YJEdtJtQhRX1/yj+W7vkK\r\nIYOhmjCOnNB6MP1iLjcRHfJEtV3PAw5Lzi8=\r\n=65MT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.27.1-beta-1667430954000_1667431120829_0.2894845403209112"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-3-2022":{"name":"playwright","version":"1.28.0-alpha-nov-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"20f2e0049cb0c13823f360c0b972ee440ff295f7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-3-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-9K40LRr7cVhwTi2RwtKsW9+tEeqQRFR+/CkQsWuFQrbOBtA+q1HeZFM6KjiZ/C9rLnBayTa2yqfk1TNqtEkK+w==","shasum":"b961007d2f5b7151bbee8e60c92e1d8a59dc6126","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-3-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHS76G8ZOyN073e149Cy9x0Y+n5pkV8878bt1ZGRWStAAiEA4sBbEVZKbdnHy4zJIBohtks7ShkQg+7AQ/3FEQZ2zK8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYxEKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqb3g//Z1faZ421TCz8DGmZuHBF+0RZttQwaSPkpEpLZYkzQcm+GzCC\r\nIscSrgkkrZvEwqbJjORnOu3lLk0Rn0a9SiA3cTxPDFylvb9mcEj1idxs+3/F\r\nIA5UshpMjxLTmjDNMDDE2VK14e9K8EIjmhmJBxCOdV0hdZ/2FwRwFEb0VaP2\r\nwPtK8VWDp2Q1z0YiG2iXCULVitLeq2ApRitMijrPOFGugEOyZsV7vfNPO1Vl\r\nYjPc7RuBvaBF+KqYUTjbjNTam4rHPbJzBK05kxDQccfd7s4xGzN3L0AJr9+M\r\nVCll6OfJQHxflCoDdJquPnWQt8vFJVr9f9PbeDa5sKxONcdmQJKbcyy8IS60\r\nIXfDGttCB0kZB/2KaL66wKqqeAVOR6yhQqMnN2Gl5UHDxGHfCtjqAsznM0TK\r\nSKLz+wj+kxJFlb/sd20aV/RS3c5tEJUCJUfRy/iwhu1hqxxmmZLMOA1/FUn6\r\nwXbjt56w1pzLLOe0WWFdEf4esPwO7MNbvXQUG6DDOOVo6/ZgpzojVTSd2Fl8\r\nxpd/ve6MbVj14it/4GL55omxxOG6tXauG6AM/jGKL0vlJgCvcwUv5a/eiEQP\r\nky8G9naYRzcHD60GXB9e4DO0c+RoneHrpn9zKWCZaqiZeIvrCNpzhkpSmVZv\r\nCu2+CYheOAIRxCZDqp4SvTJbPpRfTcCDxMY=\r\n=r1dw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-3-2022_1667436810604_0.7663276357914668"},"_hasShrinkwrap":false},"1.28.0-alpha-1667504282000":{"name":"playwright","version":"1.28.0-alpha-1667504282000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-1667504282000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"91f7e3963dfd647ad23bdef2da7dc22279c79ca0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-1667504282000","_nodeVersion":"14.20.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-0mojFF5P5iZNGVmRUE9+Dw2+3kr5fdrUiK7Ykm9Zud2TtkGhXLsvsMChF88JU/nHSzvFD6/+4gBqmm6rs00MLw==","shasum":"4e901e2246b048a60756a853e553efc2cc01ba4d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-1667504282000.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICveHWFpnKLcXJgxYbaZTnrDdobKGjjFuM1pqfve9/7aAiEAy25yPbXuBFQleQGid76z4nrgGYa6RhSU2ZhUybQCB/M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZBq0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWfQ//XwchHGlWyPWIZ57mbmG9iRzSFRlbFbKCZ9psuapTzSAwgufX\r\n8rLonRTOmpHmRtgGNk4jnji3kD/qsVDVpQwsO4tk6HmyHmhY9z7P5geVQxQi\r\n7S6ZcR0vi1UeWwwD8t7CFDsprSfm99t27soTpEAdPxU3IrbiNF2kjJOaGJx3\r\n0IV6Oj0+64tg/m7uHudq0Wuq+eg4zktHmUdutL/UKSQ3e5EtAC1UsqvxJsVL\r\niY0I6qoxqRl7RKGv11LeiuW7DYavMQEnD5iNujlrfV597u7OqjLAdASlYkoH\r\nSbEW9u6pZgp/Fcs51R8596A3i4QuHPsy+W1zrotaFp7IdZ/cQ28A5/KjeE47\r\n8/H8DQeB0WMUm4+Rkau53HDDiUJjvuAVa3ixVX9OQ5HZ2Qi0tC7OWNhH07wT\r\nUmkLb1aagYa1CyOBx2eYtzF7SobmypgFuXNKyVW+Wde2ssXuqTYZELkQFOMP\r\nuc5SIxpZjnUjvjMxeWa0BEhKP0fqQpJQbJc0X+JbtdGf4WC5x9WYs857vVwI\r\nl9uC5WW0wMkLjBz5YGCwIwg/YkVE2b9f/rE18LdWEQHq6W/WslutNpPXOHiM\r\ntoakKKr0qm/rUbJQCL1U5/HxTdqSxGIENSmc4KuACeltjTixR0kUrBNytWex\r\nZvOFQisBKhv2QCOOGNgBg0TyfK+ttpBEY9M=\r\n=XR8e\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-1667504282000_1667504820109_0.483747077036611"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-4-2022":{"name":"playwright","version":"1.28.0-alpha-nov-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ad39e7571d73e7e8ec15c2e763594f3df849c6e3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-4-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-N86KpDKtHEw1zTWs5IAgTCuFQ10ygRrNXSNMnAPh6p+nt8HqqP12ozN9ZiPrV0i3mkTn4mJaSsYCpIP420/pNA==","shasum":"1ea1637db8f391348367c0578b81d229874218a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-4-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1eRMabMK5w81hP9EWgrC8DpegOoyvJVCYfODcqA2kmAiBzApI4drTjCEVIoSwlZS2MNH+w8CpcHYfOabJQ9ZwV2Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZF4NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEqA/+PGPSwBQGPAjhzF4qO7ca45zj4+FzA7Z7TwkFWqsRmkC4XEld\r\n5QP2LX0jD1sxShLToQpRFZfujXUaRAPygNBrcqeRZFZuwgrKIa8c8IcsaT4w\r\njcKl//qlA0gI0RVcDksZhuHKIYIcI0Aq+whqcGItbQPHaAvsimZIfvIfcgzh\r\nh7wwlbfZnN70BJxbZh/TNDcHkgE7JEW+Fb4g8UP1nGCI6P4VckQzFG/UVUDQ\r\nwtmk9M4zse1mGORi3Aex8NWHhKQCdc4iy2RQ/dYTJgfSO2dC4ga0vOpodYLb\r\nsgt1Q1cWA0SBwdcwgIgM/clrTRVr/tZyIJ6tIoq1HJ7VfyUyS00m4K+Lep3L\r\nKOyq1RhNAZeTp5Y50HMaNw+WPGMXVysjd/ZfQhhr9mer3kfTLLeViuHqGmZ6\r\nGYqhQ+IXe5ZcbekrpNtwTWgGRM6+e91f9jzJmByK+ZG3VPIIofBFTXcloKAL\r\nvg8MDQuCYUQjXHlctGwiypIXuwDFzn+XaYt1eOZteC3+XNK4u/AxGBX+e+Az\r\n8X+URSF6SyaPdDEwaFtsVduTuinLQZpWz1xXdGJjcjCjA+H24JTbEnU0UCTd\r\nIWsS9eqJ2t8gM+vXM3WIVwliPsKqQ/NoQr6BWQYSqAY4sfJcMyAZJOCaI8g8\r\nrmaOs+etmQsuMX5sbnotJ3wWfQa3AdEnkCw=\r\n=ERF+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-4-2022_1667522061172_0.9094426969726706"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-5-2022":{"name":"playwright","version":"1.28.0-alpha-nov-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a65a43e9a47c770d778cbfd28e4adfaf7801eeb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-5-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-+CYfRkfik4usKRlOIAEXXsIgAnFMgSfO0OJpnC210Dk+Yv0VsTYzq7Ih/AFif0WyFT+keaVIQwPEMa+CwGNVRA==","shasum":"861ef1313d93fdeeaf83e127b806015ef34e583b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-5-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBmIVOcLEJF1AUgqQhHM/GWyquLk1P59sIpcoqeI2nG6AiEA00eoztU0Ao8hFpR7S/zNtKVx6uS5J7/wfgH75w6+xak="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZa9QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTmRAAmYQWsPWiOzmubfjLGvfUL2el7eZ9RX7sLvK367oSCuD9h/69\r\nyjbID/8ew5hK1yFer0LMRBs0xQCY/YXPnej30H+8XxzqR02NJVfm+j5ZeQ39\r\nETq1BjgCRmmKdNUX/AmY8zMay4EmRDFmAq36F8zjRbihMD6jXktS4w/cTJ+E\r\nZZTqvs8V8/RFoRjQquK8CT9Yo4aw5EkYQ6B7T1UrJv8S1ByQbQFR/j0s4Uvg\r\n0SN8RYw9gszoHaVl26PTsYnLhp6fHoFJ8n2/jEK2lAbVxje0sBd52k6W2r+M\r\ngBMDsAgYonYu6GSmXq8WMFQE7lVyORe4yWRH6y+kiCvo1fnCi1IVv2MbfOWY\r\nvEo1o7Pd6Yrpj5Y1JjNVqov29WUInJj2T2OBVYOq2lWpZg5lvLkYlEl0ygRq\r\nTECGfcOV2BedpWgI+gXVKtQKY9GCFoQ+S4MgmOOx2ZAorHeSBd0gKAJK+Vw1\r\nEQkXGhTO27Ddp2cPs+9pHIV/EYor1TBR61QpuyVi7/+jpSQr/qV/pjffKsdz\r\nHH1G7u2UgTJ6Is8KZd/EPMZUc8yGPulii9Gq1jaH39NT8a9wLaKmqmhHo61a\r\nxeSw8gCyYx97+3bby43XlKaSWUX3dEK7pSTx2kBe+DcFF+CWyUi2iGKj1LoI\r\nd3bWqJcmwvf+qPQVFkErpHkTcXeNqn4utho=\r\n=ghSQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-5-2022_1667608400418_0.9419146846750468"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-6-2022":{"name":"playwright","version":"1.28.0-alpha-nov-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a65a43e9a47c770d778cbfd28e4adfaf7801eeb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-6-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-e266KKjJ+DTJM2UlmdsBvV63icp2OlG/58xBejniXFVkkxNP3QmlXR2svgJf8r/2EKg4YdTnxO6Ieknf15r7/A==","shasum":"7588918231d17685684c519c1dd01d2e339326ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-6-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLMAmQXeiS/q+DGn1csGpL9lPjDsBCeKogo7ssJhKUeQIhAJTzaAQ6+McnAACg5SFJQudcUHb/pGDc+UB3SFTaMm31"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZwBMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpN+hAAnP4+jy7wp7b1d/zwIRkcppX7fpxyaJo9g2FcEjeMI1Mfb0iW\r\nzHX14buiZr3W9z1AoZOfdgXXvkPzvbeVlR5bkAqcz14PmOi4hovOhDr53n9L\r\nQy9eAdH9wl4j2wrsC4SoqaktyAn3pZHYBsuNOBZMbVW50Aw1QDUC4KBvQbSJ\r\nafbtd0evTIYAEhy8g8GL+P7928ko9scHYuz3HNV4jDL0w3vZYOw2NNQMuluX\r\n4m5O6RsRQVvjLOMwS5Lnc5ydP9eT4MqU9vJxYjYSiaOLaPWlUvhEedKeK7Yj\r\nOthU2N/lIx4QU3jFl6xGGon7kGhz3cWouL78fxEUQZ+lOptJ9qrLFugynh9k\r\nK1+6iJA57qVfxaZuAT5BuY/yFVx5I1007A+5/hDuyAWRrOVFfiBaFzFUh9P6\r\nXUELABR2E+cU9UUmqGtvNj6jrVUC+QWqsIomjRAGa3p1EZa8zExNj+fJIsqB\r\nzlxwTQW5mvz5+bbiNdsval2d4tz136o2EzwFVCvaHyjXOgGsLNkGpCLIqTC3\r\nq+LlGUyei08Hcxu7Gbhh1DwIGg37rmZObKpufpeQ4TdPJQgQoTrYz7Zc083j\r\nP/0BeO+D3jSWLyfCHSvNi1bazxxr+B8YE0z+BzrdFdb4sfXGHMzYvNr+tMym\r\nILvfeJz/tpqGVgTt4sIYIBCn/tDlIk21hRg=\r\n=H8SW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-6-2022_1667694668458_0.2472136658043207"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-7-2022":{"name":"playwright","version":"1.28.0-alpha-nov-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a65a43e9a47c770d778cbfd28e4adfaf7801eeb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-7-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-hXWiyqvQM5ERo4TFjy8v6IQbS9EcpdQtNxLE+kX3hTc+pdrtkokIP+HgiHl6WVOz2us9WVewC2GVLHAqzTeuCQ==","shasum":"c6e3c82a6b638fb34d32fcd58b923582a6057d50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-7-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwwMqOJwhmjhItRN2ckCPbnVhEkdAbYpYNn1f9nMCDOgIhAIyIe/xNt6Z04+sbiWljXKY3wjVPBFMB57Luq6epkuge"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaFF8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqn+A/7B3CuXyitFoNmmScJ/bVSCe/FcYa+GaD5WxiUeV6nEvu8jl9o\r\nBcKjFkmtEpimElKpdySdRWfNhjp0pfFNQJYH8UjJJf+5iG20JLIGA3Vcy8JM\r\nz5R8Oa4UoMKtqN/U1floJsYTDn60DzeM0/bumX0EOe2IyrG2X22E4MM+g+kG\r\n9oeCyf/UuEO4/W3sQvx5lUbg1bBxNP1MKRo+MGJcGCxAbDCfMrN3Jyfp1ifs\r\n6FG/tPCCD7oa7xuQerSwBEhAp0LfJhmvo81ILkAmL4P2lvoOOamXN6acDMWq\r\njIgS3R0N9OJQBkT3DpY8ang5MrMS7OWNxEiz67lxJt28gX4u7nO/qE0jgH+R\r\nSBMmsOeEUIj01DUst7ewQHB7G0OGptD/u8F5LPEZtoZyJKdVWffDXZ7BwwEy\r\nNsTh/VMTBssAj6BI56qt5oV7QplX64GioJCBqZ8/Uur0CjMl6NGRgsfXHdZK\r\n7Vny1aT28SKRSegaXjwDV6Vax4ufCxv+YRn5Z1qG1kOoqNhF2Qo+JG8J3lcc\r\nULfee6trriBhI449mVZggnoqiWOqbrWSJs8ZUltLJpWt/zlaJBWuh6a+FCf6\r\nN7eXN1+q+03RhGLeMEO9agFpN3fYT+Q7M+43YVN5Kn0K8z9nRbSUhvWfkKVL\r\nhLsLrAbNzNF/zZPbcm7w1ba9ez8Mxn/H+lc=\r\n=6lcc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-7-2022_1667780987985_0.1573718474803909"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-8-2022":{"name":"playwright","version":"1.28.0-alpha-nov-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d5494edf712d9cd37551e907dc04afed2d00ba4a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-8-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-OMYvoiTgZS7m7sKrafK/4G0t2iwNoyvIH1TeEfZ6ualO4m7wDOJViFZqa66dhCEBU0FFB72pFuQ5D3DXZlmznQ==","shasum":"40cba513536aa4fa2d8618e9362dcc068d8cf810","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-8-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGkVXw5Qy+K+sU3PsrEPmsegontG8vZt5CDrHP2w2o7gIgcJvaa4aRjfiTxFyTk7REqjhqwo2wrXdlZDhZBTHUWwg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaammACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSJQ/9Fsnoo8I8runQt7+iG9D/dSNxgSImeO132tw0gr8VyyXdDyit\r\nHrWwBToXf6183fBCnofPJfSLeUmImzIf98brc/aX5ZgfiHlZyWYpKAQQ0rs0\r\nbTy/pDRndf1NH7P+AfvE4QTE16rg1opbOhn3OE+tsab4Adw090zn4hlv9S05\r\nDWcp3Yd3AyznFtVboc0fUxSKnG9py0gq617S0bKJH6CATq+7hYLIiGs8LOGL\r\nx7Nd/TQhixtQQ9EsIZ7Q8RTrV29Rt043JMCThGL1hxT2Fq/Jfzpw5voHry84\r\n5djKSig8PF0aBVJ51iXrE1MbMeRdXney7TC4Y4c3SWpj+eFRa3UsSpgfhAjz\r\nyzBqcYSnL0eOAhrrGgahxMADoSCRW6MgoJ3v/wKQ53Uj6g/M+1tIHqYP+7X2\r\niINI9PHh1RqV22h+k4i1UkRD2YmNvkbqNAqyZszOaOjf8Ry+dLqGIAthjhu6\r\ngbbO9QDttqhkrb0mHeNqQLHgAMne9qtjIFY/W6n66PkP6FCtHJ/gM5RQNA6V\r\nspgqYdbyzwXJwaXvAxi5EaOpgvSK6MAeVQFUCkwEvf2nU3UPOvCe1kMZYWGZ\r\n057xhUAkBoz0fcNCSPn9hpXZLoYQl+kzKNpb4B4LNE7+ZKaMcV3iCbfcHBHc\r\nCQhzp8lX7Ry3POe8E0vkk/1wPiqOm3wOFOE=\r\n=PIjk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-8-2022_1667869094536_0.9988519864482956"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-9-2022":{"name":"playwright","version":"1.28.0-alpha-nov-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"54a235284a52e7458533abb9a4fe507ffdd1a0b4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-9-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Fdg3Tj+sUJNXWONBOh5400WlMSE9dvJC4gZ7xKfvLkKaTLKZl2fuIt/KcbLFlPvaiOj8VpxB5lYfwFG4/BFXdA==","shasum":"90ba9659375b0779aecf7dfe5c63770bff0d2fa9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-9-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDCk3YILYEUq4ZeWGrqdiV6M/7lOYo2KbWeLaI5Vr2fMAiAni6uQrOgwvRiKi21vv/FB9f/4L0aG3+sIixFykzOPbg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjavTtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHSw/5AdI+/EcAmm/89kNjfZK0EWUKOIXa/EhiV2moGbSzHSjlo2T5\r\n+rvlb7sL9QCHcxp1Mz/iw4g+QEGo0VP7RSBNlSHZcvvTMq+GyR55BOFWOuhO\r\nhUKkEkbjgtMlJwHfD8UIoKcThrPnmvg5FUOjbItL+69IeQYdAT1bR/IXOoNB\r\nBl6stJgBZNZYPcv8wCkQx4jd3Tu9SxXDELRc6W5W/Vtqassq2g+tAJoa+Let\r\nMIk3dUbdUO/ADRoIqJkBvdInnuoeKYdDlMzzMcBTMaPOiGwonpeb9zxLEaiF\r\nij65xVRKsFZkAEW2/bq/EGylQNwbf/bgjeijfdTTzvu3FLr6nMV0E85iwltC\r\n8E3v/fX6ASrY7Baqa0WzGzdLDgWTanSwM/A6B7d5/fUURRLDYREXz8ffLovG\r\nYqGBD0P2F3XTrajrVMvno9VH3hQxFuefMTr5CkqD4rBqVHN5LgZkYX3Zps6n\r\nAOstZLKcYcUFO4P7k0lB99p/dIkL0pd514+KQzxhyqmgANPRr4Ba1gdpZYiy\r\nlsdp0wvk7gOxBVbsoOijZRTb2gA2e5l/KeAenP3byfhx6QXy7U/jx7uqNZr8\r\n6bhEqYgf4/07uhwuld91d144fVoi+vNHgF+TSbPbucCDQZAzrM/U6vO5rrti\r\niPucNcvBKWUMwRzVOhshNwn3ki1buUNabGA=\r\n=Fbx7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-9-2022_1667953901747_0.04642467133916606"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-10-2022":{"name":"playwright","version":"1.28.0-alpha-nov-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6d491f928d5a15481228839d14369f006e6d31f1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-10-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-AW1ufHTNIoCPbjzQOZwWGilW/LOqMebtHfEHHm1vvMlA45rPfzo0uiQ+kpymH1cYV6bsDkK7Bcaq8iQXh1p5mw==","shasum":"33e1505fafcab71d047ae282be0fedb2c43cba3a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-10-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPsfT9lUq5ppEhsb10L85c2TS7hy2pBRdDP8anJFR3hAiBGhyZxtGTDQ7gxJFJ+WfmnZKVMAwsF4Dy7VxbVK5IcjQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbEarACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4xw/+O6ankOr++6Sfx9BYOCO5LMMkw6KYK+H6FZrLoyGX6JFrpINZ\r\nxuEgJVzC1JJRUZlg3/mW/Kq1fRE7nHS19W/lJz/pSKDB10R9PpPmFJTJeYXp\r\ni4TiCP5s4fFisc6Hwstic4YAUGROn1kYI9Ue9l/G7cC3aL6BUfYnZ+4f+E3g\r\n+T2qWd9HzyS86+le9Ww7bju1I4HaU6ZDQ7tXDJMmQS6Y9NZ5s0Jv0QSt+FUh\r\n2OJ/NwmPzRS1PFvqOZn0fNHKZlPSYHKXmcOjFNVV7quhz+fNhjxxw05wLszr\r\naBmmih52hwHrvPH/ptAuLOzAPXEk60Ji3y+Hc6JYPZy7CjY+Oluyug1zLgxK\r\nwgJW5v+otwTc+zBrCpGPLKjfn+HiO83yN/tVs/DayuMN165Q6NDf2rwwpzmT\r\nm+gvFWhTs6kgxGFwJOY6WNltFsrKHt4zRHSnIxxy+kT0uluT6uvgAa2mqSkw\r\n6ZvogctsehU6xDD1JZ/NA/wMxVysNUFvDiOefQK8MtEQ+jzSNaWOjbypb9n1\r\nQBYzAlRHsncLeNYEwz4Xgukqcmd/9KZCpqMQh4dWs9JqpXxTA3jLQjrLs3xx\r\n5eHduCyopMQdzPy2Pw+5RXanxcVb6Fsy3VYHMjnG8oNOA4f68bMmt2ze8jOM\r\nA98gBBZkFVDJk/eS7dqpZ04oCCF60LviaJ8=\r\n=UB3L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-10-2022_1668040363439_0.0715875917388531"},"_hasShrinkwrap":false},"1.28.0-alpha-nov-11-2022":{"name":"playwright","version":"1.28.0-alpha-nov-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-alpha-nov-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dfb4ad388ae7afa675ff5e333399666b4da999ff","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-alpha-nov-11-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-qQNSewrbNQX4NiSScl057VQMHNN46Ab0itFGMCZQWlQHwlE8GUB8amU5+ohYh3hn2YE4jpCW4jrf0IBF2Lzvpg==","shasum":"99e317bdfb45f30d442f8885f153c1d6c4be8243","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-alpha-nov-11-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbCEEnSv+DBVX9fVqrsbRvOqR9yT4hZAQV3qDRekd9bgIgYgc/uN43eepFQSdcOp0W4tA3cnKib8rkmaY4dm94YxQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbaKXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrouhAAmUL07ZlYA/2zQd0TrRFQY0p1kSyz09M+FgSoWgsBXLu7KuPM\r\nxrtv+3mevYkVHYZVvMk8Lhr1T7klzPsws8pnYuaIML/LpaPFoMuQZx2BMWqh\r\nbezDI8r6qShGulUF9h1+Xs+a7sWmbkRQfWOFf0jR9Zfeyn+QZuZLw4B/KOl4\r\ntd5d16Hum71OAyQOJJp5Fbp0aUYoVp1a4zedJYAMwTGxYhQB0V2VvCH/b38K\r\n8H+7G74ypKlyCopjDPCFqxQu2qiUGg4PFLqpBLmDGBhB9I+zhMXLPIOC7F3q\r\n0llH9KZ9GEypsLGgXza5us2P6s/t+v3Nfv0uARNVNl0CYIvcI5ddIVwkftg+\r\nyBZ9Rvv1za4ytP2+JvZBx00YS/dlosjJw8tIvjlXXx8rr/7mV8G8zgE6OrXO\r\ne9lcpnXlzwGdB2KlzLiuWsk0xf3729n0Ciyh03E/rBKsNjWyD85baJN1T5al\r\nnkiX5TnHTwy+PDaiPTf9w8JwBE7VQkVEq5FY/4UDaLkpadIQFjnwHjjKd01x\r\nfRRHW8oFFKJ5aQiifGUQqCoPttKe0qbsIaBBiyV/mh9oBHlEULX1tyCXoYZT\r\nPyi2+8l2H2fG5UW3t7nSAg8VFVLxGRzND8Ced6fOlQufK4BYvkPS8b9NnZTh\r\nkCFfQsJ02cGwP50e4+FFWMF5Y44eI2GFtk8=\r\n=Ll34\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-alpha-nov-11-2022_1668129431168_0.74935604510016"},"_hasShrinkwrap":false},"1.28.0-beta-1668203080000":{"name":"playwright","version":"1.28.0-beta-1668203080000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668203080000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"251cc9e22984dde507989ede6d43fcc06c69847f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668203080000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-L1so2Jyi+gnaqM/zEYSiVqDDXmFT+h0TFBCKc3PvB7T4951PqpbTub+KBsQnSt9fjgYfbqZu3+6hNSx562985A==","shasum":"b1cfed6a563697c5af4d2580a14d106092592848","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668203080000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRTbSl5Hg9rXwkYyEjhUbrVphn8q6csHCmlECqoT240gIgOAN7UPSAns4qV/32HRy0HaN4FwOPfOZEp3yIAgID38o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbtvjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdqQ//XWMT4pgfiECRuiQUvkGPqm8DveFYV6/+kKN9iHILM29uRpKJ\r\nkcSz7QIbqsXi49ZzHyzL6Z+JLPEgGCEoO0qr2UXT5qZwmBgIFRr2+qoe0x4X\r\nkv2tvDDwi+7ABdhizIAkFOYbiE1UWWv4MerqLW9it5rpFhXUe0VOG3rbPnYT\r\nzdth52kaFR8LSoSCNNkL0kHc3BViqXC3q2fZAZ3xc3+PUgPj8G4S/wWfA9zK\r\nXsFhifxdrEp3Z78cRFEVyes7kfHKNO3OadnwO2EbZW9gzeVnezZcws7EGgcp\r\nEMQAScZ2ynpMaQ2QMFku1PacoYdJRw9fu9wqbYlZgWE2gVlX9p9ee6T+fkYL\r\nPm/oGwJ1rE3Qcj8aY2kGMDGBJOOE49LPQj8auYxG1MHSN9SzySPfAcUwnd7N\r\n5sX2+63U6XmpP8dpq70hhEPJVl82coXQKV+DMcZq1PzgbFtn4tE56UrwHhGD\r\nlDdcDTwQxdvO1WyRMA0XEtbKssQQJyfjtCTxMuO98NkfcQPr3YPn3V2kFlB0\r\n6pI7Sxx+gOY7K+mbodTuyxF9oArUHvlL84cUeKLataVkbdWI1/tW6a5kHyGG\r\n3sGLXBFMJ1W/Uz0QbwXeeL42th44azZjMN6cIzYcfWtJ5+myhyLJLwWiPJaP\r\nFf+jHQD2ER8tRG8ihY7+BXUHIYptPAz0sTY=\r\n=x+Qw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668203080000_1668209634910_0.2404725460264927"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-12-2022":{"name":"playwright","version":"1.29.0-alpha-nov-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a7b2b04588390988df4ea18d5755dad84b02465b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-12-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ALBr/9M2ICZ1BrskKA3eAX6j8/5O2vcDOzeUAfQXL2+vGPAsatx4GblpWwi3NwZiQrnR8zJbcCAYXJklwy47Og==","shasum":"b6a9e3ecab5dff6df3a7569bfb278bfd1cf554ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-12-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZtnfvt6mgBbnCC179/Ltv61i4O7AFd5F4QPgYz1gQZgIgUBu3GQR+w9bxCwzKHdFXfJ9KB5uL37NFM/NUrO8Yrok="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbum4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3eQ//eNeEVSfZWP65GFL4kc6NOOwnL7JBxh01mf+V+T88jkd9/c2P\r\nkAmk6rtf2ugRZxEeZTNBqbz7TzqfoFPo9Hs9WCRrigJ3OHF2LYJwhs2W1+4+\r\n0RprIHAtNU03iNYy2Xqmn05CUjUwlduXlvPWOXOv9yA6iUCO9H3xU/2HFCnM\r\nSBp+EqQkp1GhcoEC2S5s3c6ZSkHo5DE4R/QvpWogN0bi0lp4u72qNzquEOiQ\r\np+LXY+5cvMpA6fFBmCH6QbOrb78Q2SBAkxmMCAgumZL/fRCdqFydehpv/6EW\r\nW6AMtNNVG8JseHqAvoU9Ri2wELkURxBfrykcKVClLyXhBXAQdR5Fj2vb6lqP\r\nPXEHuNhnF+YT+UUNKMAelQ6yxG3tU78DRSO0DBI6bfKf2Gl07kt2CI6cH+0V\r\nPmiLUWq2OA1vWPg90Bx8T5LGzswa+kUtykMhl0wRUkpi4+pq6dHSe4QQSV84\r\n2Nh5XW2CfXIVkdHb/dioNco7YZ5auG8Dma+uhFnIkGr2aj2FpmiiwefCvPAk\r\ndDCHGjcRPrn+/UWMx2xk4UJUu/1WAkOVTEnC86nuSPMIg1W9IPiJq/0y/a7F\r\nUhhAaie4LpuKfC1G310J/xS7PyRD0mMUqApNwrkSpPj6nkoun1iCP4RWsbsv\r\nD7tnPfALkWNgosox9cUs889QeNhY3uGl5FI=\r\n=7txO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-12-2022_1668213176621_0.5227934043128333"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-13-2022":{"name":"playwright","version":"1.29.0-alpha-nov-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1b13519984366495c65be5bf9c54082e31bdee36","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-13-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-myRjuhWaR7UeSgCu1+oBmc/PMAlHABF5C53S7QzE4dKAzWT2JFVjOVLYOZX5CLRmuBMRr1QN7be9cPzQTRdxvA==","shasum":"5f2efd677ba8da93b56062b0df66ba70f9d3f068","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-13-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx8/xoIBoCAdu+15MkcGOZmqy870IRgNZeY/7hoR3rNwIgazMnPSW0emcFpGsItOVQZw/zW+5qDEbOp7o6rhmwKTo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcDpBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlRw/+MxOF0cOg8AzL3ohuysyxPiJCOfPZL/GWYYw1sVnl+zXEio3m\r\nKSMHOOXdHH7hes1zE/cy9Gw3cumXreUhJUExTvR3vg646m/Md3bkJCgGN6VZ\r\nmJBgQAHwD8uswIcSvtJp+PqarlGHsTFlGVWij8ucGqp1lUgZkbG1L2c+T6kK\r\nYgn6/RGuU4nm1WJBZuyynNUb6m2SoxQQEsmyuA+ZiILvhQ8LOkVAaYr7PV5m\r\nz5XsTmd8HKB5mnTV0wDLEc+mrbJkLLfNAVi5wy+zKOTWAeFIQGS6oSRZM5Aa\r\nEEDpUX9DotagF85NExM3fNOAPonOwPTXMqvJQvX0BbDNNmlOxlCjI6c0twua\r\nUBvuj+4tIOtwBrJXakLEiTHSCauEzVDaJvMPUKqbUDxc6WilNFm/PNaim2ed\r\ni29BmsEZR3FO3aoS2RstTiuRJG7lf2UeEJ356DFOiJfX0HTpo1LK6fEHrcoV\r\nIMeahKiHnYUes2D8Bp7AemOhlFKP7CFNstyM6hcUYj2DpfZq8cFTzqrYq3mH\r\nF9BPMVHGuHAVKfLPhRRlUp83rzQWNcljkkinz0jLJPv24yUKbE9sSqLNR32n\r\nQVDPFJOH5ln7q8s+3f0b+n5xlrXv3Jb5xJSfve0ErmoDC5uvuCI+PWaLJH6A\r\n0LZ8u5/3w3F6DPWdYXVkMynBzPkisFGWCFU=\r\n=DQVf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-13-2022_1668299329009_0.25337627428968346"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-14-2022":{"name":"playwright","version":"1.29.0-alpha-nov-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8e882fdd58d16d1367d838daf4b412ee6f03151d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-14-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-im+zVFP/xECNpj8Mvz7gsF31rsTxfkHT8N3ktVN7Kjzhgs71bzJ8nQzm/Ngu5DvoPYwgIvM62lI9cI0EI4f/pQ==","shasum":"51584fe20dd49cdb1d7cc84d83f3cf49384051e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-14-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGlffUOeyC3+b6b4jlhdlX9j54kyujB5kq+8Q15yHa+hAiADgb3bxDbuvAlrt1a6hD8B64B9uB+3+zRcYqJwIgk6Jw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcYvLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9uBAAle9RjcNTZouAIa63h1RjUmMSS/oA4qfF6RIINHTHs3gA6p61\r\n4dmwaZ2G909dYIJWLl3fS822D1RWK2+ceyjVooIImqNGRcyux1L7Laezt0Y1\r\nlmH+yEZx1Tyi3pwsgmVGm+w9M8fVK5F+mLoIMqaLv+5ZaK5COcFfhhKw6Edj\r\nmFnykV9q5ewFrjV+0eO7580GwjyCOk0qH4xsuWM62ce8rt79y3pW3+DwJm0R\r\nEoSVeYi+fAS/aj/Tgi8KdWDJNfFvmo71YZmwpjG2LjOPz35M7R0++WsBSIQP\r\nGmGZswz+DrVwwBn0BLBNTBepLDc8e/xpeSKfiaj6qZu6JrIICRTk97SEOtU7\r\nAAFCDjkuVgBYJvu4k7BEukatFPcPI+WCFfpKn2nBgKS6aBuUygVjjhW1heF3\r\nW+t5uVOEvGRl0/syztYfqjuLlIoKNSlUNW3Ow2fnSfRZCaOf1TeqbpxTkbET\r\nnI116x23f7V6p+fVGmMTghoB/s8CSzUYMICdXMKSVNQZgJAsMbG0HWlq26bt\r\n32ZsAtIc6WNfgFbr8AX84UIOh4ZUzPAxrmKvGrecodwCqTwDTjRXRmaoLMm6\r\n6PTzOIzq4RBkQEPIx0jlw/TWNAJafE2MEZf7F56MLGwNMzuHTbqUQXuCWb58\r\nSlMCVkmZ4870b1G7lR66E/OexrgAqEis/bs=\r\n=b+rE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-14-2022_1668385738823_0.8911006540512005"},"_hasShrinkwrap":false},"1.28.0-beta-1668449009000":{"name":"playwright","version":"1.28.0-beta-1668449009000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668449009000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2e484b46a215803135a2f8ad96d685ed113d8a2f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668449009000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-J8wdvuMvvHJoQdbA2oByuF0s0VqAx3BHEHScShJFP+R0Oyhjgp7Pt91l/fYfEJPybVAEkGuHczsUNzW4BAUGDw==","shasum":"8a9e58a721111b43347519dd08fa1d69d55b73f0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668449009000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLf04Q5Lv24Qir7j2EmA+nnuVnBlqFu8bhbprRnDblaQIhAJRt6/KI5XQ2/PxvW4Ib40FuahNeXEmEQoo2ooeVVjWG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcoO5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+jg/+LgZATFQwkISExkRI8mjKKn4+IPeBEjyrMqjo5Eed0mrISJbM\r\nPEC8J7ivqiKurA8EI7O4LRRIIJxRNFjl5WjwO5OwxFKG8tYffV+LvBoonMF+\r\nSZmOz5AsNfbj+Ntc3hrDq2wAtDI8bts7afWXow5g51LpUVLdQSyQKfBFUn9N\r\n7d3p/iYqQhheUZErgRLdKYsH8I80RzUcPDw1XJscmFGL87EoYOyuAtMMC3E9\r\nZ05lNFlDZX7ICw9erA1VTmZ/ziRFBlxdRz5Ve6DXe/Z9oib5EbFTojMDXuPv\r\no1jeEFP3//3J1NlMlJnUOZ4jZR9GiRqJI1LSmcdsBYqpn/0SfW95VIB3jsf0\r\nHihDN8aMXA6ZF8oAtvdCq0weZm4W4EUH+iNt0d3+LZjDeH4pKDSncEXvIAg/\r\nIs0qQZBuSWWEKFTOuHX9T6JIABuVfWDnyH/ef1KQ4vmrwrep4kgo31d27hl1\r\nMoX5pMYjUlx7u5L6mbvdBdkzvgARrTbgX8n2kLmiorVFLyh1U6HzoLQOd+cS\r\nOTfjBHYW/IPvPNH19V3ZC+GG1tby0S3pef20GdqnleRFg3tkratCDMr2xCMZ\r\nqVaVIFzZNxRk7NNMUhNXCsA5BCtKnbkGYsiLaqMFosUK74bwLu8gtF0S3YZS\r\ndwPQgmMz9OVIq2Ob6/xwoSp0h9kGzD/XjPI=\r\n=FlzD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668449009000_1668449209587_0.0236694872965868"},"_hasShrinkwrap":false},"1.28.0-beta-1668449150000":{"name":"playwright","version":"1.28.0-beta-1668449150000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668449150000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0cf4d9455ddef523a867791a2cc443dccd34e9d5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668449150000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-4pXa1Lqkb59/JYY00jYF84jJndgMQNXFTXMHaVE7RboiN25whS+MxQRQG92RxjGGjzx8ojEvCNmnj0yd4ouOHg==","shasum":"7804313dc84d12d39550e85272b2b25d76aa4f76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668449150000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgKc2WU6gMd7lZvKecjb+HOZg8Pk3QhrHRf2gBEYLYUQIhAKGnywegt64x9x4SD39tQNBTfdeg8UthmA66AddboDbp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcoR4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLxQ/+KZFLioMYsngSexiVqP+vJzjvIXvIEXxr4WHgOxSRSfdqf0YW\r\nfyG0++VqFMJgaObBHLvknGXE4vcAoftS5CCd7OI3zvH1kVtefT1b/9OHCbSX\r\nQcblTUaDTemL9f5DK8Vd0SSA3PoIYaXxZdbwi5FA8aN9xVm0ohSOVYsln6b6\r\nkjkxgiEtApsd+Felqyb/wLdCiW+jhgWgcM8fKfo5lmbm9mB04L/HvkFC6diB\r\nS9wC+GuwuH0BuKXGeqyu2Z66Z4hnOjjzwCTgTr98Uo268AdLYzQLovlifNmf\r\nVeVA9XklVpo7A+6AGyiMLlm+1aii1ekT6J5ZDbb1OxFgdc3NRk84Z6IryIkJ\r\nhlOSnSJTggQ09QrB53sMb9Fy3ZwzpkK+N9mvyMdqHelx3XvaecQlWM8cl6Yz\r\n1hXkdUJljOZgCpTh/yNK6IWQ/LUfM60dxGYDbs8uSB8DkJx50/t8OhS4YHXl\r\noSEKPr4modeV5ubZGAIJ5XN2PgsAeSOw7VkmJz5EMdztHcm8jRbjYGK2+822\r\nmetTlJFHsmxSjAUwg1TwMhwL4paqW2/hCVsPBOfD7HiM7t6Gl1UP5+q27SVg\r\nnCUtTE2MIcrdAhKOFBmTrc+mJKIbl6ZZGoeakiRw7NTsXWxzqa5uDUZEod3w\r\nKqoRg2v2g3Takq1Hwbx0BwyG6nBFGkPh67A=\r\n=RCby\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668449150000_1668449400412_0.6480396642367172"},"_hasShrinkwrap":false},"1.29.0-alpha-1668454236000":{"name":"playwright","version":"1.29.0-alpha-1668454236000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-1668454236000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"70065ba6ddcd37702a12c64fff971cae2cbb8848","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-1668454236000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-daxDv0FmbnWYcqjmqGj4aU5LmUunq9Tz4rqUOlYDn4QznOyvu+0m/z6MvimpEnv0vjy3Fe6wenJKFOunvF6VIg==","shasum":"032a6ee0d5b6ad6f8baf05686ff65326848b7bfd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-1668454236000.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWXJVG6OSYSqKEytbrKcMLBZyuJTulwOtct7Pkk4EdLQIhAMUw6WIGyfdjka4QP+YKrIW2OYxi4Zpi7CgGYRnU7G8H"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcpgaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrN7g//dx7mjnsBN97EbhD9m1SLLuOP08MZYLbvjEVUPBrg1uhWW68T\r\nlIXaf3MjMPc247JzYl55fHQ6EaJcMnvyFsEoOcF9znJRXZAO5ZDg5Dp41G3V\r\nggNYd+9EysypQ+AWcvHGuakx0LP9j/ccfY9XufsaThIfPB1CBYmnVGdRQARO\r\n8ZwweVdIlPPtjAKXbpVTAKRMRXsK/M+SJs9w5K/Y4priag5drKvGDIDCLFNr\r\nBzwmpFbl2NdYAkML93XMEniQXcwWvieG2/sTbaOepf1MVsrbWgKT9y2eFtvS\r\nFAAdelUJjPSfi96983bGdNg07unku6W2B299AgxyyqcckFyyJNj5TfvrfPL3\r\nHdFa391BS1LZZLyliVjf3+CroVGz+LSeYHccMl1HYt4VrgiAswMI3wbiytdj\r\nskYlFWhwzwtwxrrLOXplHn9vJnVBxWfqM+OYOt88IHlCdD4HHTRjKLTZDahP\r\nDHGF2cFOemn1cgzIIZTy376s3lrPoscuvpsOhkSS8gyFVqT+X9+b1JJxOfKr\r\nqai3zdb4Fmgoi62k7Sjx5IYHArWIoOi+wbQVNCyyPzq3s5+46EYzYYj6NFrZ\r\nvr/EvLxa6atuqe6JtbTNSRxX+h0jS2LNev9v76SEW6zbTAmXTd4JP5iZi6Vz\r\nL1+pJCYUhcUPMmYMirzDfqOGaoMlolPv0sE=\r\n=sgg6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-1668454236000_1668454426010_0.733001130906898"},"_hasShrinkwrap":false},"1.28.0-beta-1668463093000":{"name":"playwright","version":"1.28.0-beta-1668463093000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668463093000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"db93e9766e9f6d2f904ec748950463da83b0360e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668463093000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-kXr7Hrc+aqexlIyBMsLQTfTY/RoYZ2DFO7vvScAfQH/Xt3FP5BcxaQoyU8Q7GeJ23Xyf9dUGlXdTe2fwUTwiOA==","shasum":"be110a71849006067b032b6f70c7af2808d85798","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668463093000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCqZ7flMe3rQQ/B/nkAbZ7wDgOvzAhtkeaAvwjc7pklwIhALRwIZ2Il/dxcpB2rG76e2p49U+boOa4UE3EY2PgjpnB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcrqlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozKxAAhG3g/iJmRZq67HK1XHa1sRixX/4qYZFgk1R/0OqVrFZKDFDy\r\n9nYFesswCSyG47hxuSgpmL95TalxFhtC1Qkp7sCBH4dHH2mFMmbNIN6DDcE+\r\n9B7oKsAAGPJwSDW8BrDy8SFQEBUxDQLY3XFdnKq0SLztq9g251vubIJwFlLR\r\nuNitPPeiYbiI1syTgeyiXB2G0VPvuDtjczd6uY7/rqBFb3HCYvH6tVkM5hFu\r\n9PfTx2F5KMLuelO7suzsMdZWgRDV/RELu6Jd6M3OEQ0858+Dv1f9GgDpfgKt\r\nAWeZumPJjU1/uACiGRmcMy+idTwAmg9Er4ESumUicwOtJXuKFe6H5tqRxEF2\r\nciZoZGtEil0QS5AneWWI1+CZIjYlhZNtBPTsP58LtS1DaTdGjYPv8ZsTJFSb\r\n9M+5yC3aDr8dc7SmMAASLMowkPWu9aQEYoJKWZSqUrSrSRgMUWbbOrDgZIKp\r\npye/qibWAZ0dokQw+W232z1l80J9vQSaH9z9a9vTygOfB2yVJjJJxqfaPhW6\r\nsTXRkN9VNj6Xn8F4XqLGSA2KuLGhunktAhQ8dTEWW8ELIkbJ8xVnt6godw/l\r\nf3QTmGfd6QdMs3lzLbVMgtKI4diI/0b6QQb2St641RY3UchnoYiaGmuJ+vRU\r\n18KUaWc8vH6bg0bMOwrOBjFTQoMHBDksaFg=\r\n=qCpU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668463093000_1668463269627_0.6402502550184246"},"_hasShrinkwrap":false},"1.28.0-beta-1668469027000":{"name":"playwright","version":"1.28.0-beta-1668469027000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668469027000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2fd36db85e00613f1105166cc62d337cf6d48df6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668469027000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ItNnpE4LgojRLunNwepMEcRGKIa3uzRMZgbVf2xAqXNxxtj5j5NJXC1Me+x8eVzD7BwagRc9rHo6HR8whLms1g==","shasum":"a1c0d3f80c27120be2a94c718db2191e1d96821f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668469027000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHTKRXlha3xI1uiGSZjF5j5he97yXKYQY6+8l9jDc8lWAiEA1ymKNS011aNuheO1I1o1b/xh0C8uRGbj6h1GwIJh39Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjctHYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqj1w/+KSRKZOWmegKg5FgDOH8BWijX4nyrmhvyRMxcZTF5ka68nUv/\r\nm/HWqAf8xAJbR7NqQ71oY1/AgNhuesNrSWBDbHdt+Vu6KZ4O5oxA0l8V03nu\r\nUxT/rpzhB4lwfZnokiBECmmL9LnJ/S1Px/C4TQLq2wDrMUgDVMTnwsljeVtx\r\nWexpIPWLQZXtGRGGS8DhHvEa1zzoZ6FnBqt4OPOQUXSrEre575ZMPZdu/qjK\r\nb3CNogNcH/8l+PKDLRJ7XAtzIIOsniMUkGvbOz7OFAm2KaRT+HUxkv5/QxWl\r\n13A3IVRQrbslPdFuih6raxozUD9sSB7WMD0AdSGcNjNxSQ9cvD5DbSa9XN6p\r\nVW9abepFZxZ3azrVulfyKWPHi+Y9mDfzU8tfjIhEhNCoESgJe2gTT1ql640K\r\nzX1FHhJ+SgqXqDxMKlScmCy0vK6YSTCloB1R8JkXRq7hYTUWHVzVVvdlLDE/\r\n8EJy8Zdgh3eERO35a8D0GSerJximPQfL12y2GhPyJvMCDVp1pP7wWd+2nO1e\r\nYAlAhbfkdzVTWg3v5lUeZFksWkJeFj5zLzQnFyBobRIyfOYahUvqFChMmUV3\r\neyQw5+63M+WBYIq35Ylt8bC1kQ8sad3qcef7/XQJ5K1CtGIGENkMvc6EmUgi\r\nl8QrwtbmLlyyrvp51N/jc7nPajp95+R7b5Y=\r\n=hR4t\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668469027000_1668469207858_0.4133558057106461"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-15-2022":{"name":"playwright","version":"1.29.0-alpha-nov-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"59418aa6f368c97a78d74b15cf8b46bc05e0b600","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-15-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-z8l2gMU2a8lvdO0jijgsuRyG9zMCzWL87HJDHT9zjIoMZjBTHWPj+PUugbcyhDz103eCO0x0gQvuZcJ609IImQ==","shasum":"c0087fd6ce576d936815a45da9e48b3629d4f36f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-15-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCi0MKNXANbsTO0eJKRGSQ8W4kZ3zesY0gv8wsBg2dC5wIgbCrPQMY3gEmEUy4x7rXWAyBD0gkHOUC2yO0k837DRAY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjct+EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmSg//UC5E6KjfliEKwm4PZ6o4xUSjY0IdUHQ84eSgoYNP06f8xUeH\r\n507Zx5zMp5LEONATyAh7LJ/5xSzGzcSH+C1yCKEWD/giCZQpgxg13yDPEhdq\r\n7JsARPN8mZPtXEX6Swqx2+wK7aaf+6Dz/t9SBmBNMFJDmePFmVq+XrWHbS0B\r\nPlm1hmURLVRLcxdPma7MtP97wwN9XqxcT1BjIlAxP7MONU7seNdw49gAu0sL\r\nVs+mJ60JmJiKsVDz8YP/lGITXFSkEpnQzi4csme8VNQAVdN10DYvWWcEZQbY\r\nUZ3gqzdCD3vFFRZJCLtbWHKgzTheUMUpXcAzyBkZRzcDBeZTXG/S02FiedZ5\r\nrkUJjkJZ0YR6qmwBkQ3MTrNiIoa36nSgjSBbIMsmMDk5zyQvVgJoEEEDqFvT\r\neeM4q43aS0YwJYX+HvRG5cidlqRo0pGrfwCrOnh/a+kTc/HCozKvlgCCUk8Q\r\n3SBX3yJM04hA1djl0918c/Vl1TNmWv1DWjELxPPOK0E1knLTpzTgRvhj/gGv\r\nyTaAkKF4IT1+Wp1s3zI0IcRr+1STqmfi4P+NCo5A1IC+cYSnPrUUuwcQGtVh\r\n/PlNuAlEpNmc52MRzMhB8N/I3xqNbfbVys0C/WkNoMLsfOj2QDq6nI+YwsDO\r\n+bjLNPdkfIYsi4u5bjINFFWQYSBqxQNCLFQ=\r\n=a9rn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-15-2022_1668472707849_0.4174021323243089"},"_hasShrinkwrap":false},"1.28.0-beta-1668473403000":{"name":"playwright","version":"1.28.0-beta-1668473403000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668473403000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c6d7cb4fd8f8a41fc21f4985e0d2d22674f73810","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668473403000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-sUajGDBjgUfW6RS22Oi0/IP131WI8XiASnQGvkWfXhoHXJaWz7GvCIkxjXeqx9oB9UBffHMMLYE8G1vgc53VNw==","shasum":"1345fe801a6555e2f77e69331129495afcf1debe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668473403000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwANDQnUjFxDXolcDLLce93DXeJCcR8JT5Z0Rvjvs5bAiBc2cYNQfOi94MIzH4OzCBFIDLF+EbA0gWUcC/sHsnRNQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcuxtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkQw//cA985kp4HWbsDM6kBs7pXsxxW3VrM0gXx7pR/s0KCZvJOJZz\r\nlhoL9dmxdBICeG/R0eD8eJHiakcozXMruJJlxhxXl2IP7ll3ZsOQ+dSflSnE\r\n6FQKHVQzX5gcP77kjl7y2AUoPT2rzQSZerIlgU9GqgvxqQYV0aolOVkgsB0W\r\n4M24uXQ2gk2t909cDpTxXjRZalBg/bheTFh68AtS02qii12Xtq1Av5WdIrt9\r\n9AFCq51zZh+q7xOAUOAHu8LvCfDRcNCgJ4mzfDDZtT7FrBp1KBtY4xRhvFCC\r\n9kd3+XsiYzjjw4yyi+gYtCJ0QTXLggO4+w9qMP5HjJNmyubzI1pLXBRO1qhc\r\nCrKMIWy/ORLPaJtn0KqvnMp+2D73LMPLbFHQPAgna4UhKRBnqyE7mpZPw6//\r\nQuaPdKgMh/O8q5NKZFPvJUl2GT7w212LNw2NVTASsor5dtev+Z6/3jg15PwB\r\ningSRHUhalAH6oTFOcdZsNgQSEA7Tu8eOmd7XjILfSBFCZh8XONmwiK+y+8v\r\n93ah4/LWqNm7npeNo1mkbxrXmniuY63Qc568xZKR/fxbCchVVwaiqc/JX2VB\r\noXoS+Wu4FC6CzwC1eG/iERuBasLitzIfDwgs2PppMgCaS9mYkVTkdsuJ4uju\r\nL11r6eNgQAlFRl0ss5BxhfKf/z3DU/egdlM=\r\n=n3Xy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668473403000_1668476012699_0.3814837918327678"},"_hasShrinkwrap":false},"1.28.0-beta-1668481322000":{"name":"playwright","version":"1.28.0-beta-1668481322000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668481322000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5ceac3fe5d3efbf66ce63ca96f8221ab12733584","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668481322000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-f4MC3ePEP6Z8EXpQw+0/KznDdBw6A0QblAz1QZcFDv58b9i06FqLTaxO4FM9qSvj6hUKxSxet+j2SL7TNaZ+Dw==","shasum":"a8d9adcb5ec290521b451528c326552c37bc483f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668481322000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFP9pykKSMiggjsZ5eMLql3w+V8c6mhcAL+kU5mwfBOPAiBdKQM6D+Hi4eJSpAPKbis8pZF0lFyDTQF+2X1FomLKuw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcwG8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZdA/8Dv/2wqlNilu8JI9Ezwqv0KYK4LiWea8Vp0BeIhSSmxEKFlfh\r\nNjZtxmj7UZ7C7Zx2CpVwtXyD9OeDLMIhlBGTETyG7uWiJmztnT/R3n9VtqgD\r\nUS4HGBBPx/SOjhe6zUZptnJ+zlPhUCPlZIHLsfvUfIiQZtLFcSlEsu7caGL8\r\nkVrQZp/XVhNb03RO6N5UZ74RwrnK/zlopbViJf9fevbkEgSuWJ1P1iim1OuV\r\nyqjcBpJZRyUDvnInFGC2qNNk5jdoTrZJNwvCDzr0791m2mlvtGUBGSCN5usK\r\n16it+NTuBLii6B+sd6IN4nwoRvS1MmUtZT6xmj4I9Wg1tnPWJKcwizlEh/Iy\r\nABSv59+8LVdpIn3peYbZgcjTdrSz9lkJKhfrbGZn68UKq0cGPIacYF+HxwWx\r\nItljbmHUnebLLiMmcPqURuJnWWrtZ0yPL9HeUu8ql7uKuiCDQ2d4wDImRo4G\r\nWLxlot5boo4YNDixqlXNoH2qu4x8k0I42TfpqPi0vMOxcJSKJStfJjhOKC0+\r\nnNqK4daFyK8tNCAOW13g3cFTwqbtFNaShISQtofJOSnyA4VvCYlA6j1ex1yQ\r\nfAurxw1QmB3pvi8gflyLVVBNHx7g/aIzvYvAimWZHtuB9jNo1D3p6WbFRM+M\r\ndhyO6epBF4dmPKH1xi8JJZHLeDyxVTGfvsM=\r\n=8rlp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668481322000_1668481468687_0.19035275811037566"},"_hasShrinkwrap":false},"1.28.0-beta-1668535043000":{"name":"playwright","version":"1.28.0-beta-1668535043000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668535043000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e20be6c01e2972ac439e7e00197ac5e3d5d4aa55","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668535043000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-+WmXp7Q3JlkIwMDAA3eRc9opsijA2kM9x9AtincvwdN3XfJryFuGEwclTgkkFppYWWgn93DTo8SmdDhIwiT+6g==","shasum":"49467a12d7febf0f60a556fe270e1481cb3180d9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668535043000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBTHu5LWZYI1recPGGgYo3LDMbMCYxZngWxIyZPyH8VsAiEAhk/fj55ygr1dQtlOJYrvJIIbckmOj1PSilyCduO8Mf0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc9VfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrlww//XetZemJoIZBqAAMVQz2pvfNgoB4P/tCUOyA3IH7J+nkAKnWq\r\nlmZVs6gnHRcOV5YNDgbvT7wZCQr8RR+3XJvYEqful4RowY8+sSgE6Dg43baT\r\nNiHntWMuGENeEes9hu1UiIIG9oOdnoRt1g/uzR3tz0q1O8POICskS+U+bFZi\r\nPR9hlZudVH1zw0tJKcJDPa2Vd5eSB3ANMaQrBLFhEcnBjBTzA+kVgLOAJagt\r\nCYdX0/Ut/AEJPjBHGJEMVnN3q0mSLnbJdWhmjAsPlmOMhJtAEOmK3eQ4qJv5\r\na0HMe9qhyNzULck0jHn5BCJqESdRRbAuVZYfPHo3/ssYYLLqI7wd+XbUoa1z\r\nNiQt31RSDs7UL5CyTJj7uhaJ2Yi6g89DkDAhuutqAzP3GUloKWZoWMg+fgMx\r\nVWCqFTSGFyqEk/zTaMWEmGs4lMSjBe+YnpukArbAGzWNdy1cuKNAkNYSeP3c\r\nl/4P3gUT8FskcFuvKaD/Txx6xooRbLGINE5v+4FKE9ylZ5/OhZPkkiZQ97Kw\r\n/5mlUOKYBDU7g1LiyyRfue/fY7SAZ0aLTlgUM/qGr7kAGdoCRDzDf+ojiUqX\r\njWyLoNrNg1Q+SJ7x5GfC79Qr/sKYwJR2mNVFZFzVbiJDIraKZ7MvVcSrx3ok\r\njVp/fR3NGDu3djY7qKt5fyS/fMD+xB2F8Qs=\r\n=xlvn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668535043000_1668535647198_0.3446418929997104"},"_hasShrinkwrap":false},"1.28.0-beta-1668538195000":{"name":"playwright","version":"1.28.0-beta-1668538195000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668538195000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"09c2d891ef3d30b7b91c4d808c14173f98dad47f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668538195000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-0YtEHNxCTmDrQHVPSdrLdWALCEh0Lc9swt9QmTOVrrGz0QEg8wNdVsYhAC0zQYQ74y6dRd6ZuDCoUSM03Sc7+w==","shasum":"1e5a8d01770fb73df98c15ae7100926cbeb6a23d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668538195000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIElYqrMIP2tp5NgAIFaTOoeSFaNfnsPh22eO3xoqRJ10AiBINI/oMLCKWD9SjkJPT0v9Z1VFc05PArrxkQnD7Rl34w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc+HyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqrfw//QqdaNSXZXfYm1Y/7PcnxkVx82uCY5zFHEhVaaAs4ALv0Wq/6\r\n40krWKG45/n4M6GQg+mH0ngZTW0DxpMshlwN1mWMmgVNUOm5U9bw4gLfhOML\r\nsvc6SwUWVAm2OsERgGHEO9ZuCQzRI4wk6tvxYY08RvSVovvSYMAaqpPuk9OQ\r\nJRBAIy80ZvyfLUNMSyq1OkmNla+nTMT/9v/RuzS7VM863Q5j3+lZ6PrCZM0L\r\nio3zMUjVIa2oMLFgbTFxtjAoCKCIbkPNUSNlQ42z9lQ83wGqYk6rUmi+oq7L\r\nIlwpSiUfy26Eim87bX95WiA/w4dz05vOmI7vunVMckehrhe9mpaMwyYBxMV1\r\nQHk971loIGvK0Hmz2U7oRFNWnbgxhqIIJuaDJcEAF9IqR9u3L34BGWGjJ+6K\r\nW9ePhw8JcgnvknYshmE9Htgk77tQy35cJKAx2SIvjkIlbzRuGfNbuVFZmUg6\r\nUeP3uyBdx3BYJnzaR8ecycJPC79MmEJnPNDbF/eAMSevHcIyh/6dZNuk8jq8\r\nGp8lsA8shLPYBCdheJMscPYzI88GpKIEazH+H9jGctqnzgeg2lG/KfUEPXa1\r\n2L9buiqhxCqTwsWZSULF8kjzz3PJTgHJZa0mNEmYSaXiaHDFC12INV03Pffe\r\nLBcjNF+FtmHMAW78rZLNmO11+N3r+ubNcf4=\r\n=fZ3L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668538195000_1668538866431_0.7522036210879497"},"_hasShrinkwrap":false},"1.28.0-beta-1668538774000":{"name":"playwright","version":"1.28.0-beta-1668538774000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668538774000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ba1a1bd99d7ee7a3d2809013a78f39f76f80e4fe","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668538774000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Y2CqnndDeKwO8jSzq+gGRKVLsNQvtFUEwh9CBlpLI//hEf5Nt60fd7gUBcYKM2ystaI1w2fqb9qqJeHliNBGXA==","shasum":"bcfcfed288526ca773902f6930ca104201f7fd78","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668538774000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtjB6AFfof1Gldp39naeM9jMRBYQUGGDhl9hECwIrdmAiEAh1KJiAasESbi3bg1RLZoHjJQ6PUyWmMsKkH3zL1/elg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc+ZIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhBxAAkSqIe2yTKlbFFP+UxcoNb8DqFGgqAAmuZ8d8TyO7GbptL38V\r\nkd4IO4/YsRlaf4V4mL3WeouCBJZTAHu2/GpiFwP6o6NpjoM5T/5p17i+cGdQ\r\nmsHtZJHpO7DfI788eFjMDCRU6xUhWsFSB/7VzTQYbW/dvq3BfVN7+ob32CBG\r\n4JYhmwzz2jVjiGPpxgWc7sPM2bjCTB+BjI7uyhBbrVC+LSwfkKLzzlDP8PTb\r\nipRO+Gjr4zlXmM/razjjK3LnpLnV+DlwPzUPnAv1RNstd61SEfDM+x64TVme\r\nTM1jR4fPSqpDS5xc9yy2T2e3ef1j2KnD+A8tQYR6JfsMu/Z4Tx/0wc/G4tOh\r\nlZi/zeHDm28r9dRK/qwWmKGqbueD3qjdJs30k4ZhcaLRHKn3ItZEHST/wzI1\r\nIupQxqy/+bJTgcfJUhor2abj8y6LfuLLYgv10lSRFLyL94nANs59Bsze7KDQ\r\no3q9x5tlzKuKrogaSsPjuTp13F2msqPCGN/EMPZdfyoneR8j+iERKMhB43XS\r\n2QgFp/UzRha5lfV0e7zpmGBe6DiuhK6u0cKzx8+9O1ZxoijFuQWk9s84wJdy\r\nuxkgt+5LdoivPdTWbT9OK04NKeSrxxw9ofcm0wUn3iGMwwVATiJMsJIQ1Q9n\r\niuCyHkps3Zgzc+KebB+99TEtH00Jzc+Ahzo=\r\n=DVJr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668538774000_1668539975864_0.5816833727967323"},"_hasShrinkwrap":false},"1.28.0-beta-1668541928000":{"name":"playwright","version":"1.28.0-beta-1668541928000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668541928000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"74314712fb63a729671e20100f4316a4e0ca18ab","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668541928000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-41ABwNKa0HnPv2zJVU8aLyv2UnVsqyIDnx9DZPi5+rEBR+AlPb8cp2ANjyW01b+U0QBGGhqx+4xRfqloY8uOTQ==","shasum":"2d089c8fdd0eb3d802e2f50ce52ca749f8225e58","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668541928000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWQd1JEIjSJHbNz4t/nCd35Gwd6nrgnQxvDQ3297YdzgIhAPv+HsmTEyOKo0nECZZ65q3yt2ceSJPzHXtSg0sKlfks"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc+6iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXlw//VzkEkoX3gyVrdHKvBneT62Hw3+Aoog0sJSlWqp6vAy/6bRGr\r\nstGidCbjEcIhxj06ySVZN7sgMbdf0LjpFYcUjTw/Ao4flD6jaDhL0KfzD+la\r\n2XxK1ZYzQiaDmonak7PyOtmC9iebnqXebyYUhn+jxbwo+8fHcFetXbma/DXh\r\nNiQeu84nn+ZWkaAxsbki7BdmRi7ExWRE4ZNZUUgl0UKJhrsBqcG48LxPQBQs\r\nHVABPPJbLSngY1kpTPV/e0adwzZqI6ouw8NU+9OjLgd6DiP1J+eJifJo2HRw\r\nO8BHaDCkMl0KiCeJ18PFckh9xWzFcxNHO/zLC5gowMf2NowOyDJAYtJmsA1t\r\nutxvsiO6Pe1HbHJ939Ywc1U/vyO4MoHaGgQUnmogDu9zvr+nGtvCfxNhJ/ni\r\n0v4qcWRtrrKIQyhOgZ8FOog/dSp8p5F+eiMATQSDo+1ghQ06Io7CAtRMwpfQ\r\nzfW0xR5KxJATdpQxwXl4vP6PqHEfNqJGShwJGHKkKrFBbV1W+PR77odFR4XH\r\nUhndCDpa6Jn16KrgtLnvT+yjXW14QbVOA3FoqV4zVVGDFXlbkfsbXqTb6t/4\r\neZpI6kvkX4PCWiDUyTGdl0JOqC63z383kVQz54bwqEPNUtyq0qMxZEKd6j97\r\ncshAExfpuUKDqphMYj6F4CWXyUTp+nAfigw=\r\n=vSlk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668541928000_1668542114022_0.213912232409752"},"_hasShrinkwrap":false},"1.28.0-beta-1668541955000":{"name":"playwright","version":"1.28.0-beta-1668541955000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668541955000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2720c72f6576a6f8138f89bf4dac1acecac580d6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668541955000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-trpNUDAnjnhOK8e0c8+X/nEXEsEL2/QPiY/L/regQXcm2enZp0/azh/q4T7pItJ1NnUD9xapkMKzDXFB2HYBzQ==","shasum":"a242af2ae3a8f18766e02dd98c28e835351b517b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668541955000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFaOXbVcAncXyY864FAnm6gtG454Aq+z3xi56AXqgfIYAiEA1MHTMVbFQP2RbyOcffHFMxKGeqE/TGNdGrs4zTuAIaM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc+7MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovWA/8CkXAsdXYrSbKui4rbXRnLcowWBTQQbh4X8Jqf+y/vGyNnbsp\r\nxlZ1DBY9pUAmcYMOX3ji9eOrcF6dGE4yrPajQOXebNN3qLDh5dkUiwrgMyhO\r\nqnJ8eIjBufTic+h5nY8bvu0OeA9ggPHTreCpk56EScCaiy+P1qdDlz/KKVov\r\n72eoNgIUeMWs7h1xFKkU/hWpP9GGtrVSpt4WwVy8nz3rDtgvMJKiL9ymFWBp\r\ns+yxw8FSIyotA4can6o1xUmyFIFGZptmEiDRNIhJfSLimu18yrdLqaEzGXCT\r\nQ/Mgk+9dUB3HINMkTdpoNLNW5xqM+OnbIJquDaUwPKNGC8lqaBvmljaLkeKS\r\nx0QItV64FVxSv+1/B7ZUq9Ju12/p3jeP8Q4XjIJixC40rFCe80OHRXHjo+p4\r\nU4o5idlguIkWb5i/nMlAvVSjBdzaRwgDbaCgttjLgu5Pb6QOoFk3Mw7BmoKI\r\neu750b46QBuxk+pKlaL6TbdV7b3/UZ4lkyRzif9S5uT0ZqA/DrBaX6J1EZjK\r\nqW8w2iNXnewFGPFalKfDMD30V/gc77XgnWRjGzDU6vxK5w6NH2Yn/nsjew5t\r\nYcj/TBqFrrRI40/HkeSDA0BGZYdbHn6+nYgINJOCN2H+Q7h7G+/erMaY3A2p\r\nGdD5+YUbz0b6Dbq8a9hjQn+eyZx9SelHydw=\r\n=Ogat\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668541955000_1668542156326_0.5601009300924644"},"_hasShrinkwrap":false},"1.28.0-beta-1668546662000":{"name":"playwright","version":"1.28.0-beta-1668546662000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668546662000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f7087bfe3b6d9466c4f2ad0125b4bf2522dae400","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668546662000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-YogcICGSjZusYDKTep7czgDsAYKSC3pELWGsymbCIDlrLscypUXLxqLwrD9JU+zBtSNAHij4iUDJuqAVvSR0oA==","shasum":"651ad56d5784ee3877c01824259b6f50e523414a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668546662000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1miIDq2JZGNhwtLRcFwIdXOy6uHBqZos4OuXTgCS1jwIgcQ+fl/nggRB+s2jLsX5KxoihEUpBig90qhXK2u+rfLQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdAD2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHPg//RCAe0LvIdBav/iVdGztyfvJ0nDe9JkOiuncgOtAkNO/NOw1z\r\njUuHnZ8MxaZX+VUi7/Tfwqw9uauP960KZilXwGqaBuOroWaK8KT0uAjyBhQ4\r\nk/zTi+bcUmD2CFvzorPHHrKFhoPxw+RI4FAf/TOnu7jAHAevuqK/2cfxpq90\r\na3YVxFS2MMLnYiBz58cCA1K+qDF+aX64ahHwg4L+1pmeKamY+xIBZwdqqzl4\r\noOGaPMB3mFR9x0s/sVlFgRFXoQOmmAiKypQDGY/MQVGMcVEG9o326KtJJf3q\r\nrAV4QBgGbVahJEZsqPPN86XAw3Yv5BCAABsYCizOdzwcVyvDgtiN75ctZLoy\r\nZJuZV+6SQpdJnavfrI2ir16VMoJCchtfrc0OmSQyROU9X2ozJUbqG5LmqSlO\r\n1DpFQ6zHpj7DpA3KhrJ1cqaWQvYJTf3oHZ8Q0RXDdPFgrFVwnvmivGZ+sIc/\r\n5O0H0Llolo2Ngdu6cHzbKRY0TcOV5ZZlIJagjXCQxd3pp86G4F0xZT2EcZao\r\n/mzpumz+07C7Mlf4jixhVAXE2yWyMBHN+2U+7CRzixtqwqbUYTWFmfSng611\r\nh7mpt34QPbToRoIRhygBjCbx42Vz/qs66nEge4urYgY+r7tCMXBeMTbqrWpj\r\nDV7sZRdOtgSBZbsj7jRYigW3MmUg1wXL2vY=\r\n=n55C\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668546662000_1668546805949_0.7189682924871039"},"_hasShrinkwrap":false},"1.28.0-beta-1668546899000":{"name":"playwright","version":"1.28.0-beta-1668546899000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668546899000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"553a211b656832dba726a35f08848b9bd93e1edf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668546899000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-3z1fmLuaOVlxE/Pe8g4fbM1z6XLRaP+IrEE2O9IrtH3Vdfkf8LMZmtd1wVQ6J3LnLgY0WeQ4GQgW+9gtA+4wyg==","shasum":"31e796a98bde98dd1b6d5dfd2ecbf69e1f743e70","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668546899000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNtEk4wOtmty3wd21KCRTJEbCmbYQxjfQyen2NTTI0KAIhANCm90VkRrYx8J/SO1iyit5NaVr5OqRzzKQBdXzEFCks"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdAHvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodURAAkv5nvsudYKt5AKOz7mtnhDaSfl8Wjs6C+wHFZ/PdG6pgWeaS\r\nR2aSRFieeQdPTzaBpUXuuele0iGVMpucNHbWWl0OnGEuoJQuP8JRoK9NNGY8\r\n/1yIA6+ehzAN7q98CCgyiRLSVlDolkoUgVh5hoxnfikkk8wn0aBSfGzDQ14a\r\n4KLGl16Os5BRbL3fJb+Db1DXtNFW1rn2H0zX3nUINUrwwN4NyZMrO5Abp8+q\r\nGJo62QXtAUkon2N7/85WzfZopeJS8g8h/ixksx0racSboQ1CbsRl81P5l8PW\r\nJQc2Hh0xUq5VgoAoQ9yaNycSMgFhH9GUirryP6pQMDHMJest+8aUJpmmSahm\r\nZW2eEQismoUbQxA2BfYNxMxzxFzZallYNVPiB9LFfeM1zXRSiYkdSAtRklQ0\r\nOaz99lWtGgEW9D/9mvr+yumNzf6P8jqZAWr11YObzR80EqhjCXjdSYVFbZtQ\r\nE5opKvFLMMnFfT6BOK1l6NklW/+gBrDYTuo1oeBG0uMnKaLF6dvVQvsLa0CA\r\nBMsU4W/PrLpGx9Fg/Atc+uFhl8DUMjtuWWCyVANjImJwUvGkqIpZfh3dqbPl\r\nQPlo053xK3M8AMspus1a8nY12XmJ0K2J2DJupQml0pnads/NTs+g9s9rutPp\r\n2aQtOENl7/6nVW+WDhlKXlOCEDQ0JzrWC4w=\r\n=S3gZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668546899000_1668547055653_0.7120247037657503"},"_hasShrinkwrap":false},"1.28.0-beta-1668558062000":{"name":"playwright","version":"1.28.0-beta-1668558062000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668558062000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5459be05855fe322863e181b2bdaa60fd44b7b07","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668558062000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-WYR++6TnYM4xcsvO23I+xi52G8h6bnVs0kLHa+UoRulZnQR7VH9th3BDNKuU3wMiGxhUFwooVp0rjHtJpjXsMw==","shasum":"99a77bd5467cd841ed1b4edb8f2cf8d989d6a2a5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668558062000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAGvJZuAC/68dGZkClc1dlYCB05JWb5g70dhudtuoNp5AiEA8Oz9/HyGKRdfq9yY7F4T5Nkh0LAC0jeFm/vadRJe7sE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdDFJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrV3RAAg2SNvQeMU+JTG60RSm2qLCv6VXXhmlW9b5PcQPa6lo7PlT5s\r\nAdyGPm3feaQ+deT420tsbgB+aOuevSyu/UhFAWnO8KSc1o0BNP0cqD/8J0E6\r\nsRlYn3F36HzJFpVLA9ScKZfSlBkDNpzRobYD86cvaYZh808x/a46+y7kG7gg\r\ndYgdszPxa818xmxn42EJPGgjd+2/SrcScbds27McIdk9nKbJ7Pk/hNOxMbHK\r\nDJxeaFe9H18gbEkCLjPUjobfknKHjCjDKjpbDpD6fxkAr4d4W63SMIT8QWmp\r\nAkG2SJ1GD+fQPqdTnNhFJR+kaupAf+BEPH5qcYIFVaKhQPaJcYJq/Jay5gA/\r\nqg9RKdYrbSZixoAUAh9xa6c7CEYI4Gr5RbpyRIO22IAkWUz9H9E+sbu1uOHD\r\n+RJ+TX0Y9UVwBghtOhVMzJuqZvfCEMOnmkMDNsOgNJhZzbrADKerd4SDirSy\r\naTIB+1uxczvvPjR8W7djuoDpr7zO6h60mBD6R1Yy+EovY8oKaJkMjbAxdjDI\r\n0q+mQD3E1f1xjP0DywQ6spzluhOZ56/8sGcvENU9Jghq2XCavOxt2GebcD8O\r\n2X/+rzeEQd8PWmkIYppLGf3MTycJ6thDXf4CZ9E9e8q5ykwM7Z3tHxtfPMi/\r\nbBy2NL6BXSWHuu5bMHE9BBfb6iI/lbKsv3U=\r\n=q+xd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668558062000_1668559177119_0.33388675777794274"},"_hasShrinkwrap":false},"1.28.0-beta-1668558158000":{"name":"playwright","version":"1.28.0-beta-1668558158000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668558158000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8f9bf0f0ac4187c57051673c56c6d80088379a61","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668558158000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-1zoWqiP49PUPK50KIe63uqXtkWpGry9stnCnBpUmF5WVVPIsjve/XSwTgD4NtiUwEiMC1YkJ1bKEFY7Hbayk6A==","shasum":"a9775f4acd9bacdc54bbd5bce4140b4f16610616","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668558158000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEO8L0tZCVNcgdeXAFsGcIePGgvphg6fW3PjgnGV9fm3AiEA5OypNcOzgYr4yJq+mOFFCiJJq6D9RaMiHZRPLystYPI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdDH5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLug/9Gw7WFHoSzpoN+8eJTt+9kx0AUe9b+C4l4PU/yRp6evt41Rqu\r\nwtjiHZPfHQK8t7GYHWZK131l6yzr/q2yaeyTGIw+YvAiEqkZ97SwatgGuUdy\r\n9KnaX+14HKUQmQomn6EWi2dYYOxuCq6dhzbbC0o6j4r4a8X9yAuf/Y5OIv9d\r\nEdq8ANNsGngaoQQQX5LaLX4wN+xnUUGmIZNZChpmNy2j8wRe/FFcvkVt6U49\r\nuI5L+wbpo78K2zBgmh/FA1dUFYOah4m4XWmFOQD6xeL0aqIwDFeZMcg+tAqB\r\nk7j8hKnaWWazz5cl6jJZCKYUpuTNzLMd45usJ+/fCtvkvUclptOApEozlMyz\r\nwZVOFij87KIjFxOq5euUI6xA3f+MQRGl41kx1JlSwkUGfJGxOCnfz+8IKiw/\r\nR8QrQpIaOdWt9vy9Fa4LhfDsZ/v4GFQeT0Cq9LHRPpeexz5pN+xU1n5pbejX\r\nZDQi0dzBMxeMhkvtFNVYHsSla0pLbdixpJBt29TZ6cJR0oSxZOJxSiZHhQlk\r\n8T6Pn/9BO4mzW0xrQnS2pflWcDt7yYhME2vd5tsJkKPTuxSfEzPY2mXNO9iK\r\nfKXnPAVB6ifZ2sTAZxdbfwg+sI5+/5csJXBIaclXAQ/q/PbF2V3jJH5ianQq\r\nCAcPsSR09gc4vybMEHhfH/S6InJQDZVRq+4=\r\n=b1BN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668558158000_1668559353550_0.48471319818446523"},"_hasShrinkwrap":false},"1.28.0":{"name":"playwright","version":"1.28.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0"},"types":"./index.d.ts","gitHead":"8f9bf0f0ac4187c57051673c56c6d80088379a61","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-kyOXGc5y1mgi+hgEcCIyE1P1+JumLrxS09nFHo5sdJNzrucxPRAGwM4A2X3u3SDOfdgJqx61yIoR6Av+5plJPg==","shasum":"eaec2e607858bd4c0bd7434ac01042720e6a39e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0.tgz","fileCount":9,"unpackedSize":24267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDWP7Wdu8PlybZdSCqp5ZqQghV2nmCTsIkBU+lAYRF0ZAiBuft4N8n9dshKJ33hvSRVmIbdUuW0bE175uc3plu8KuQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdRjmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrREA//UYyGAoj4PKiivVYgvJK6ol124o8FyqWnaqzYsHNFqKkWK9kg\r\nM8+N9yWamg4KsxN1AV19V/ibUWGKUkeuhQvxIVzfEUobgXUr8HH6BFgbZ3Ms\r\nUV/vnTXSOrS6FbU3JUR3WjziBz+BelfBmXx3jqa0b3X6JvRRBbybkfQR2vGo\r\n0+4fpjhaYjT6LCnzrom4WWEe29ibqxyV5XD2dFbXGsh+UARLSFR9dHudjwaS\r\n0gAOXhM7qGl001e2vD+/5qLZmk4ora/g7dDa/gLHzSYajRyx3ICjGUPmXcrp\r\nKzjkEcxEKVn6MrZCXsvnu756I8v0TN6KVzy2aWiQ/gws5QGJAeExJDeM+qpc\r\nU0W6XYLmkMhiLbjQJUeOfHvd11CywTB4y6dLri5SwFIE3CH2+z84ac9rcS+m\r\nMl58pJbsONxCOTH9LW2M3rCzg/qE8hc6B9d9OI9cDpRXjopXvTJFZj3zSTw5\r\nymyz4dtx+eQC0vzSUFxSEyinjwsbgwoSuBlGiapVAm8c3LoR3kJOiLL8ZIsm\r\n1bf6uRZJ/9tloYv6mE0AlxGk+LZDpiiLrQyz41IR8qV7IHXdXlIJn5h8bKDc\r\n7cS0n/V3+1vIwuuGN+zZw0HkNLu99kOVlvCpIA187mt1tP7N68mmJmEY/DGG\r\n7Hk44MHIx3DAXRauEx7tZFh5wcU4fkQCdlk=\r\n=AM0N\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0_1668618470383_0.44861671583262486"},"_hasShrinkwrap":false},"1.28.0-beta-1668635971000":{"name":"playwright","version":"1.28.0-beta-1668635971000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668635971000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d284219c32e2dacf1e20665cade3fbfd7c1fa67f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668635971000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-dKBcy15eiswXPFQxJRcewa8kPMIx29+BxYmq8jZJBZYYVMSyvO+pprsV+81edCLnRpG9n8iuo3s7v3T7TSvvZQ==","shasum":"621bac4806b6800dd501cde907f802c2627f8c1c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668635971000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6hmee5WNwsVVEn8xYZLfjQnmiGhOEvvRBEU/Aewis1AiEAxOfzWKunCrrtuh/BOpKxJxGNWq9BVpf9aJCuew9Sv8o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdV+PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoOQ/+MaGMcTnCKjUdEG5OoRqnQOXkc64SpwGhMCEHbNOWlRDU/0ED\r\nropxsZMqPqHBcbisINhkRcOfVKASwBCszQsTpoxpck7I+xy9ZX6CqbaS7+LW\r\n4OZNFUTZ4M3HwRcPyQtd1IOLP9pkzkLJ8P8U4gNDAQFNHb+oOexQsmukAFv9\r\nbKtBXbdjQkVkFgw+KFzlF8pUDOB00riaYRiK5UvynHGRJg330/mWNt2SFf7i\r\nWQa+02ULYFoIwktSK6Yai3LLyukKgyu2KV+UeyRhPvJUIkksxva3J6t2cbZo\r\nn3xPf3P1MejTjQiLOE48EfOOMpcQ2EMhdUygrwJs1/1m9k3ew/I5WjRNV4Pe\r\nMGRNVcskkv3jVbWVZjYCYQNGfBQu9a+cFoS3Y6Ua7UFBOoy6mdDDpjann3E+\r\nsxIpg9Le5vpf1ifinhrmGEcC3l2B1EJvdVplv3X3R7pUUKMQ4hfbb8w59K9z\r\nIWuaOX2QbHZFEBYGmRWGeB06wzCI+AQJYHkAUYcC6pNA4XoU24qJhPCBH4Z+\r\nykkDZNr6DlBcf9AiVLp9bq+rjI0vW3N+n5y7v+Av9fmeX73YCv3TXBXyyJY5\r\n04KLiizBak6CCIg2Zc3/E9SEcpnNUpeD6q59mNWWa0ku8iU7ayj7fMThiuwP\r\nPU/iDq6aumqB/QpYZW/zF/gHmwvaDxfXAZE=\r\n=ITPz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668635971000_1668636559456_0.7267816148578206"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-17-2022":{"name":"playwright","version":"1.29.0-alpha-nov-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b40d0d2d83b62dd0e71490510d84389ae5f6aa9a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-17-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-U9x/yk0SZt60vImx6alAW526eJkSXHPM4M9HMc82Y6juATPnvjnA+nzFezHxqWH1Jk/VSlKFbTNbcKL4niV3SQ==","shasum":"7be32e39032e67ac2bdf3d8743f30c9ee36c0cab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-17-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7VSmUrJ9ApGElOdp4APkCkKFKXMjcNqtDQaXd7h2CGAIgYcvdpxPG58m3rZGcg0FOxeuhogRreB83gwSuNN/gnts="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdYB3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbGA//Waxj/lF83v534TUdOFoALyB+PUZql2l9Li8/ohI+x8iBdwak\r\nGJYf8PzcPPjemovAaZMiOA7BeDILZuxXBCb0kRsYInCbPyMttnrIb0DswMT6\r\nQzl/YMIl9xyIoqXzU/xdQD+7AIsbpkpcmCEeFvIezaUy+KwoZtWih4cG4dlS\r\nHjdCFQ7YP3SShF4D3YQ3RuCClDbC/pZVktwWcPAEn2ozeqaHpVPUMOqYssZZ\r\ndAmCfkBGO+2k82qCWJPX3hpF89ZgHbXbUomkxDXp6m45P79fb+M9OLKN6hba\r\ngj7AeIRsJkjrjbQhnXSU55Uz6MjSNPAGXcrKg5IikMV4jQrwhHoqO10Tobwp\r\n5i+mZeyj3g4syyj3qr+wEQEoZtIGXzu5tWISl6hB8u+IrKemWQiqicBiR+IC\r\nArx7VvI+cVHsitJdXcvpa2FarzZ0jip7cW91Q5jCWgi0SBnj6tmMbTElm30O\r\nzULqZdjosPqZK5orgrrNHYf+Lpqam6AguqfDT6i72tiMN6yKRSPps3g09grB\r\nD4RuXz3NssHmPmK8QFS2ZKVbII009WrSArchCqfUum4FVSoacGle6u3cXWaR\r\ninxPGAwSLvmbU8sr3Bdyk5J+w/o8tq4qmEIXFnZtWAwbh2O+MqvAnjRyLHhY\r\nbAQYBdrdSZGX2y2KI8DeVWnk8Jy9Ltfl7TM=\r\n=D+7T\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-17-2022_1668644982847_0.8303538754646096"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-18-2022":{"name":"playwright","version":"1.29.0-alpha-nov-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0f4b67bc6dd669abbbdda36db69d9b36db15bd9a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-18-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-GKJnKLdFdjA+BR1t+4mL3YEu3gX9WPYr3zvfcH67G6WlKkmGxEPHs3+1y6rCeANcgY11zKLV6vHY9habT+fHOA==","shasum":"0e91d8131eb0bd1c61eed8bd827a9827cbac17f7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-18-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8BNrOvu8QSAJC2BDcQWldvslPAd6dRc1sMR6ONz97ugIgQ6mAaUIAstJfjdDNAZ5yzNy/3BRkPlokQJIBVEtaFHg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdtNFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpong/9FoxkuSg9P1iurQ5QViIxZ/Eo7/3EiNWSB76xfk2nhw0VzzVu\r\nhdLwHPPMEkC4PcZud5j+KkDWDAjsksUfnM8/5Cl5KTCl0Qpmup78StP8YDge\r\n9vodbMe57k59kplFdx1Y8vwxoXALG7lYo5GhIHxShiVSCefnIw6rUB4YgjeQ\r\nfjkTxAHtjgdIC5Zv7RXoQQtoOR2+4oDOKcFjkOcOtl2wbrBRSyHqMImWi6Xi\r\nX0CfL3/Nf7YDAjUwwHlcoGLdFsck4b+XIVWarjVwKDErBRLUT2ZhK+bMozIl\r\nLM6pOnHyI/CD+IkpTLl07NP+RHhayauc6fnLHp9KozCB/c2LbSeQ/JxH0GYM\r\nR9ChwZdG+FOUuDJV3LdmED8RxeAyxjLAko+uFFbxvPMF+MnwIJ8t6h3D6/df\r\nLHdKLVD2WHPoCDFH6YnTHzk5KVUF+kWkhid4BdL43Rp/y6bgdDJjYxNzdFRG\r\n2uUexlflrh1mIf2P2+D+ciqzdl5ZqIe7fTTaHV8dQ4xJbaB0h9AM/8hrSyBT\r\nHG3P8YcPq1Xo8a7BaGGKNvMG3OfbvV2/qO/FiB3jgeqlz1Dp700YkmX27vx0\r\njKGEzMDOH+jhqHc2Zr8UEiFl4tvKOmHclX0KdNAzlm9epMv8UxMMPSKQaDq5\r\nRGN9nnO02ZskWVhV8iX3xFN9fv6FCe+aYPU=\r\n=4IJw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-18-2022_1668731716936_0.8294719036315807"},"_hasShrinkwrap":false},"1.28.0-beta-1668756027000":{"name":"playwright","version":"1.28.0-beta-1668756027000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1668756027000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"36f8a6399c8dfe894526f6022d492d1226a33801","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1668756027000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-BWmmkuwM/OaiZaWdul9+hT88MC8xi73Ck8bFDlfOEdPAxMm1PSX7PM+549l+LsGv4Znb7EljqdnKgrx4bBhCuQ==","shasum":"e7fc184be77d07ff5977018131ecbf6ceff71090","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1668756027000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFUD2H5i782JBckOIY9EqIWTV7Vm8rpZGYgF28KBPbsoAiAuERIcmlm8RhHd2c021bRl2DR9CDJ446mkplss58U2lA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdzLDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq43Q//ZSa1M7kKLhkypppFJsjJYQ4A1BZ5GZXDhbYhaMLCFwmcnnzl\r\nZFd6WPx2LmiDCjumwXadEsW6m5w/atVZoRFb6Lqv6ScKD59uRxPJuTR/4/X2\r\nRQA4TwJx8YJnTYEjD9HHyg6YO25dj8vZ86ejZbOVxS+TLpnoIhKXDSNrcl+/\r\nrQC0fsmCxa/UKh3nYIQSOPHC41OcUvib61ZqiTt2P5/VliIgo3u7qW9WVcuW\r\n9QN098jtz5BR8++9CqnTre3VjgFeCe3xMKvHDHvhyof5C+7qCqWaZ3/NsMHF\r\n/YmD/pLocFFZmY264Q8RiusKCKcMV/PcP7YNI6z9+/PNlYCvHL5X55jaZuFX\r\nC1HK+tVeps/Zr1IU+v0nKkaXQMD4ZsgbODoLcOhTTmc9j6CK4QMZLofmdjGb\r\nyUAff9duN5t8mSQkxpTbiIINv37Toj/u44d8M2uX/F2Sb9eN6GHIKhgsRlaN\r\nETvJgOKxpCQLnqmK8xP3J7zOg5wJA7e2ElbfDm9X2aszQWfqP2EAKqwbKP/2\r\nD+sPd/Cil7FPUSMSxJqa37KYBZj1vPiPo9x4HKTSUX9RADww4/2NK5NT7cP7\r\nsxTiE+t/i5jN6jwIsCaXLM6VyNpuKvJuBePxoKqEt6uaO6egUpOzO0trV5/T\r\nuuAFUWUw7GOpVdEJbzFtoOmWBDUjXJzvjyQ=\r\n=f260\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1668756027000_1668756163072_0.2411127543558651"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-19-2022":{"name":"playwright","version":"1.29.0-alpha-nov-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b1e2b8b629b1a7101b674c56794efe2c7d338910","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-19-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-UNbPbasmJMPoN7RSHoZxLpAnFLmjO7c2nPpkZimc7Nzlaa/f1OjM1/xPpIEapfrH2XyJj68gXP4FLkaE0NYe+w==","shasum":"a6dd05c10986cc42fb610db74e396b5dcd53524d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-19-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICwxC0GjkYkmmQ0RDyYG5wvRbaMA4EfnoT3ZXCTuVsifAiEArVjufbWVT2GksPj1l3RZjBu+Thymcl7Xx5PaTPaX8KQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeCOxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUFQ/+P5jsIgfirRADJNHDv9uNOVNhIiHubktzJR3SwmGXGVLuHbi/\r\nl/IpVS8afKzdhsgdpER+tyPOw5TNzEQ6bJ+LWkPpuAwUytzU7wWBdrWpj5Xn\r\nXgZIB8cPTZJmVHkrNWlscNs7YDjZ57BsF0et6f2ZzMOU/TjFjAlCQGZd1B7g\r\ncQ70gcbZ5IuBWcQPy5Wvr96NOqfi944kF+agcwZlt7mswO6rVh4c4mUx3Hib\r\n0AnbrJx7OAfNm4LCc0jFi5lV4nQSwMrJspDiosnXo43AFAaytTJ1hhFq2ygW\r\nJw9gNiLccnd6uK+/ZdyhBFZ6ZA8SdihJwIKIU2Fy0/7xf9cRkKPNeS39gyS1\r\nAcdhM73QMnGYWt8DCMeb1CghMQjins2l61SyR7XjiKaH3mud4R9Hn2MgrvOm\r\nyAP9eBvOgKp0IAZNg3m1WgRVTZItoX0rBRL0lgkwSt/KSasxxZtSy12JvFR0\r\n3Ndz59zEBQuMDPCGG1Yz1SjOEeeTPS4Nvkdi7ue/L+bWn52i36zAyWtEiWl2\r\nB1/xK5mB75gdlD8dowuhz/S9tAUZtpjMl7sU/VCc0CLZh/TRm6LuVWxrp5rq\r\nPeygU0+YWMdvdOMrOkpIErGMApaWViojJeFqTX0tXwUrYO6/tyQetTgERyCV\r\ndmgM+6WuuFNGynmjflf7fMM5tdAScTwLz+I=\r\n=3mUi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-19-2022_1668817840778_0.8128962421619834"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-20-2022":{"name":"playwright","version":"1.29.0-alpha-nov-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"03d2b2ecbf9088ca38ac69cf020116ac1876e3a3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-20-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-lVSZlO2NMPwA+foJDA4uuU6NpK5c+27KgDRMaJGN15ChepoQ+CBWq9CVvO+oqOZLZX/n//ely9/cjc5GKZ5Vuw==","shasum":"932d884a9472893be5151614f4d3f5cdd311e17e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-20-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA5sgSvyzWlsj5RwM1nGp9/JHNjEuhxP5mpBOvjMUU66AiEAlgLrHk5pLTusLXYvKgs5/n2KczSBJ5DYXx5AauNC6U8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjeXWqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyKw//XKbcEMUxt0MqoiIQsCancUQJH3/IZMKxtEUJNssCB/LPvhYK\r\niRlpegvCFV8LlR0MLCkHw+QjQ8c4v2dJU7xql5d9okJn8wUT3MeYS8ZhpN43\r\nQ//eOMt/0LZsirXEhtLYN3zTK0e4IOLBm9uKB+uExfhlX1/P4WyHqlSd+Kkk\r\ndquC2NfRjZJK2/YOJ1SFdI1jLTGp/SSxfOsKsDXvqbyxktCt3K1LwtIt5zFG\r\nzxRGCBWqaRFKkjkMLppq68oJ9bdecpnNerv3BSQICZaZYVg9lyUcpUsIypYD\r\nlzZ5JfGAL04a5o+wbbRpYg6jXBKmxcU2QOD4n0/P6qV1jei6DmFJAjV+ehIk\r\nxUJPZ1JggkNsiz4GKduwBHWf9YBu4lEg0CyIghHiV40+Pua6gE1/39rvccs5\r\n1sRI+3Om0Oz+PnusY9onKCu/5Q+t8oUFPdba55gYC0ot4E0S9W5u7ug7mQSH\r\nX0M0QqOgoW0NQnPXFcNJr2yp6YLi4nPNjAAH6yeTvN7/IxTKIRc+j3b6Zi7E\r\nkGsq+VEEndndN4TpDIhu4tzUu0cdUOQk+2q5AtEZ0kjvRIeOSE+ELJGsj8Iz\r\niWB4pH2j3h8dYVt+IfomluUYy88/priJNtS1+wzYCDipwAfiL5EIiECEbfBx\r\nUrBAyLYrVzDnJO2bhJ6Vo252+AFGT9dlqNA=\r\n=v7qJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-20-2022_1668904362437_0.9230355087337403"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-21-2022":{"name":"playwright","version":"1.29.0-alpha-nov-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"03d2b2ecbf9088ca38ac69cf020116ac1876e3a3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-21-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-MfQ7QU06TUFswPuOvLtSW7IZR+uyLkLqUO14GbvfOntxyDtSjtGXkf/9Txx6frOY4KySOYfWu319oG4VezCmkg==","shasum":"bcb2842c479691b30d4499c42faeedbc5ceb6362","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-21-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFDU8qY1Jjgjf6mTlEjC9CG7532kYKx5nKiFDF+qprK6AiEA9GyKy3Ohaq1cqsXWkstH3em6ipcfKaMAwMWfNynWRTM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjesbSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqG2g//Qp/APoyrQYfcco1jXz2mZe0UPOoTkeSBQV8PMQzJAlix7742\r\n21xPG4HHm4eF2uAqePE+DDBArXnvNJIvToFZToWjqNtPaned1P8l++CpQYlM\r\n/fxZ5vCKBV9Prp3mYSHz8IooUXPpb5f1ZdOm1fw/ivN1OVY4jIP81Xiat8jI\r\nB5h9U1hMq4fi54kHV9hOXOC+F7yfY9N/3+JR1gH3OryFfF9iPMrTG/Uqv5vM\r\nBjd/vTGJ0jbUYZSd/0WPoDW7l0UehGACEIBoYeQ1JkvxHbvSRzYlf8Tptkv+\r\nj9QEFKW07v1PRJFYHqQxfDo8Yr8lXtL3DbSdSM3xfAHgVUl8ujAWlEU84EcL\r\nv9AF+2L2DKOOwUzUhgxdcTMbwnoTd9pT8fXp7fVQHxKJNOf+Tg36RHJzBfTg\r\nS00jFKgwL56SVDDbfFwiss5wfE8zci5ieiXeiraM1r41DkyG6p0lCkHlL/7M\r\ndlYT+9d/zGKttcxdAgsqoLGYV4weR8EJVyioVxAKQ/jKM5yw7gEQOC1Wio5D\r\nZf/q0pXyiI8B4B2MjvI7x8ldAi5Rn6t0cvHLvIoS6Qlq69NLnpvK4p2d8v5U\r\nY0pDThQkfq7XkWbaJ3vMWLozeY1stBdSl7mR30/V9zfBoQNkgPoRkUrlQcOt\r\nHSPrTDlDvWI5gRYfmqjlk2pL7A5AsUI2uqw=\r\n=/jA5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-21-2022_1668990674404_0.6136958725465551"},"_hasShrinkwrap":false},"1.28.0-beta-1669072579000":{"name":"playwright","version":"1.28.0-beta-1669072579000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1669072579000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"226eedf01926339e49768748981264296b4bf70b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1669072579000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5q3WsLLAYIaqESW4ncGy6N+FjQv1NdGTEqwMcP/onJdszoHJcMETbkK+w9cWF6+HPxiBQD+Np07lMWDo3oSGlw==","shasum":"7b7aa5e62d62b18653ba5034873bae357a4169f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1669072579000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXnIKHxLJiD83ux0nvxSq+93Sg781vQH+aQyqOzBwlbAiBNRKaMSX9Mr/2ms+KD6oMGqCbQU5L9C0VpHhC5fgVEIA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfAezACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/4Q/+JZboCadfPR7K0CbsuY//Rz361EWsFsy+/HWtTG6dRVlK2Cc9\r\nRM1pAL1MAaZ5361DWmGg/9XD3Q1cNw1B91S2Xnbtwb1TM9E6cKIyplndHIUl\r\nxmbUaloxs0tBDXeCyy/c6xF/+SMJBTguVghM3PSGp7R/oQSV8kUTBGXR4e98\r\nPveiXthEc/eDR5CDVWqbKzDG49uCU2BPNiPvlYDDTztgTMLEnRXHZFxlUmPx\r\nL+lXUAsiMr1ru/QudpaecW0C06GwSUCj+kWIKEjBtv53EDwZ36VMXtFdabsS\r\npQcUMABPPE4NLf67KNk43m2BUJ7RHONlj6XAmUMk3W1h3N8QM4W+07SpESoj\r\nU1wIBDpLTaWpvdnrIK8o4QWfPngjNNW8bKeLfxI6Gf9F4tNtTk3c1VAE3fcY\r\nu1MIDa0gx87zFhzj8RiMcS7va2F1+1LwJQvRCas2IWHVfEm+p7o2puqmvfys\r\nUvqoyarILLj0+9GDRGOVVNGzifxjR1XDqF8pfHY8Eqd2zv919uIgz1r+wBgH\r\nLA/Yoq3eXw8pb9yO2GAKvH6EQobtB5b8pw6nOwQO2vi9T1StnwdBqmIFivW0\r\nq88AXxBrYDAerG26PAMrv9cFw7CVWOIdGafWewCH+hAM5gnHaTaxwDYKH5d9\r\nx6HHBGyXMckxvht4UbcOANKFtNzd0qOHjqg=\r\n=5+oF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1669072579000_1669072819132_0.05991141471852801"},"_hasShrinkwrap":false},"1.28.0-beta-1669073057000":{"name":"playwright","version":"1.28.0-beta-1669073057000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1669073057000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bbe27dc564941aa228a2d001cb4fe1f9dfd60875","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1669073057000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-YcDF2Gw+bWfFcOYgIw73C2T20NvfonpszZ3XHlgXVJK5hhk0Dn/XtFHXAfOD5eQ1S1xEBqSPXS40Pe5xk159BQ==","shasum":"651675e662afed74f1d05a9711287a660e30ef74","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1669073057000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGJKdZfWbG/x/x4AKpXQStU5VNjxRub9PiGqiiji9HvAiEA3ttem3XYvIfcz/s9O4Io0LWLSuySt6c/MIDNDYSQaRo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfAlFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJkg//VKrirquJJnwEO0HI0/fFov4SxUBwc+EpHlXAM7GWpwo3kH8p\r\ngcBlBvH+XCSRZXwDSoeupe2jJQwpZ/gSabX6O1QFv0CdDm5bEHcSYU41iWL5\r\nhpSQGTdIAbycr3dY4Nm8gF1nKUINk7B5TRykt4ONXLdQrx1RjluJaN/y1WH9\r\nsFuQkjJLJ1xmMQA5TL+aIcdrgnrmN6P328gw98rwEDTEtuzva9OmgGRXHfIy\r\npICTjFLGok64dxKxBU/gTqOQmpOaPtrIeJvsetKhRFH62wfg0DtcTzGlqv95\r\ny1t6XTcBeuN5zHIKdLtwELHi6FjylVXjp/7QIdYgrWy9Ne4oOXfvY1emalq3\r\nFj0xBijhtrcCJJhrazXW3hX9IPVE6jnCX9fyMWm8Ztu3+9WjV2HLZWsSkHzA\r\nTp4rB1ZyZPxPDG0cWVVRfk8WSNOXbzy6x38moSllkLk8TYy9MuINv6MiKlVF\r\nMdDhrNtMSvDaULJIx1CFXyNzRu5YJrl6BFaCsRjGSGUeUkVEYsPcORvJt4Fq\r\n/+oBcKYiRlHBfn15DugdEgPsNiLoPfPPf6WQFmoagJqgqgASVuHePTV02Z5x\r\njHjNWu8qIHQ16MGyQfzo+HfbtCIyQdsSTFPSH6WrAyIs/V7x6rMLmOC1vujE\r\n6N6EDeo277FthtbtaF8ncLkoX/fMD44S6tQ=\r\n=VQFk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1669073057000_1669073221481_0.04113631042282728"},"_hasShrinkwrap":false},"1.28.0-beta-1669074896000":{"name":"playwright","version":"1.28.0-beta-1669074896000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.0-beta-1669074896000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0d5098b7c051d71adcd1a7e516d9e98d5a869458","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.0-beta-1669074896000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-PJdWiscTCsrObox2isnYI0C3e8cBkbq8hGcVqUigxp/WI/o3kxYWhAeBfDBnOR+cv+bPJ6/PI7mTR0GsJZNQNg==","shasum":"4617928c44b8b09b78213b76bca4b619d31b942e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.0-beta-1669074896000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ7Rla6ZYXq+vOMIVZsJCVaqs82ZqOJnX4xnyQqFvFGgIgBaYoilsvs2SmZBS4e73ij3BN+1Ac5uZp+53v8K03QRw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfBBpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqY7g/9Hsf7J2WU4pv9wJU80CGye+xPa5y3mREIRdB6LjnIZ3OdApS7\r\nhC3TDiLd9eRqu/MtUeaCqeqP1i2BXeALQMF34yKPoDKlqxBNJ0RpB8arXT0E\r\nsz8Fp1lK4Hah0JB1Brb1e6NLSexLJcJNi0JeKhD4lVLDddFnRPI4SoJb2wbB\r\nJkFgJfFpigeTAXZXzI2P97YMZ3oxkmvVbzeBnHlXdSt4YK/6avwJyeW04RZl\r\n587zUjGKwFsdGs2Vs+cEwouFF1fQIUKXAnlUVAYMZ0JFlgW73vY6yCCCopOz\r\nbywlhdfguUfS1rK/rFkQaRFeXN6PAndHZNtOM0qCKAIrVqCaOjHHaBJ9Dm7s\r\nuz4lnV34sd6AnYBUtJE9fX9cequlM1GBDuKuswb+H4qBf0r7O1ULZ98H2Sml\r\nEXUv/tToteA7QYQ3tzGS/ehpF3UW/VH8hdPiHNqsz1VWW0BDcUyooRgkfJcy\r\nFxHKfylPfF/4aXSB+2W0h/Xy+R5gVXS4z4gcahht6XqG3wnKtRsNt4AR5UEE\r\nf2Wx9JforRWCikt/pg52mlt9tkxxx4e6Ij7st2chKDgXhdptRrDkRNalBKLB\r\nflkeWuhu6jEYLhYBEKWVYV67CBlzxemHX2bl58xpUFlJ0Zn71KgknP5A9VqD\r\nUY5JYhZFUbVBMCltGJZmdmfmgcMYHxcYO/o=\r\n=Sm/p\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.0-beta-1669074896000_1669075049831_0.7067414298114221"},"_hasShrinkwrap":false},"1.28.1-beta-1669075766000":{"name":"playwright","version":"1.28.1-beta-1669075766000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.1-beta-1669075766000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f38b2c86eb6675453654b5adb7a42d5bc01a5ae2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.1-beta-1669075766000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-UGMMpzjzEg7FKOkIDR/qBelRA1wLewmInVhRhrBjbOZ/5R4a9dIf1+PFu3SXxhVwiSJq5reBn8UiNKG32zmMrQ==","shasum":"b91898cc34c81d45ba24896be001d9ffe08cf5a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.1-beta-1669075766000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTm++Dtp1J9NSAzOv1t6vkSxDIbMzuAXnsCBX0vCZD3QIhAPty8Kn7NtZ0UCaGXHaqaaw4l4K06bvksrf6bDhsj/jn"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfBO8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojpA/+ME+ukdZ58DrAOauDsGuklTXIq4Qc7L8GUMeOFu6Fr017fiKr\r\nz0OsAXkElBhjRMO9ZflFNHt/odHwtoIB8iAmjI2INWfCpcJYDfcCo0MwIRAN\r\nEuWV/8LUaBk4I/uzHq5wQ23SJ+5aCO4KLSjCfom093sl4dGl55g14gaGxJ1e\r\nCKmsstn+zgOmojnEwyFu4pUILNSI1MgoiCbchz1IxX8dr3MerOJ2+JHImBML\r\nc3QTqsBCnqZYLzgXi27wKN+o7td1EwRZs/e9O8UOyTX4Wr2EcGU6UUAP0Knk\r\n8OVTdkFFp7Wj2SpWMXt6KJDjBdpnDSpI/aExY8ZQelyr8iv5FPTbjcD4OsC2\r\n+EQQzLROx2nhSfB9XUKel1DEcVHgrDOyjWEZJ49eBIuHWL4Vgx1lA/OgEI/s\r\niNdQKz/Thsln5Sf59hgfZVcb2YGCLY6G3kGirqmRIKiMP8pco3m4hJqBrwmf\r\nM4rpND2zWeIfmbyTtsLLX5wVr8rKiMqvfogVciOzvhEjClP8BhrYbI4/BJb4\r\n7iDwr6mTtLCub2iTNj7fb7nSQ6njhItrrbwgG+zsZEwe8rWIq8YZPlk2cdFs\r\nL1U30aPhv3aXga1ztL7P7qQToTD14V5b64Q8KZfH0UDeCSPu5gyJR3DpFwzD\r\ni81rApcIeUpMq5uhK3ajcymNGlb+bJbsJYE=\r\n=9VmW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.1-beta-1669075766000_1669075899815_0.7347863603846294"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-22-2022":{"name":"playwright","version":"1.29.0-alpha-nov-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e2624979e682f04a61c206ecf2f60e9e8e58c0bf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-22-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-g1sz/rUFwd6YOdnxMB6ehLn66TmJH7vEW6eSiD+loF7SId0yORbdnZs1jHvAWN0HvzKc7c6Dn2Fy5BkHraG/Dw==","shasum":"2dd8530600245694467c374f637845ef6b78aa81","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-22-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAfpVVbrz4XmwsqJobtrxcrtW5CDMha03z20h+0/2N9FAiAh5SSdCqqGBcfp1w6oyY2HlLhU5//2NG8QhQZ0+zEfnw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfBhqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiixAAnnY13pw5sVfxubCURIdNrzbFSHFaJnbs7PHc1zkuGD/sT9U+\r\nNxtbURnBxGoxNyiiMDkHAoT49ipIPyWzOgRRKH50aJNhNsujOP3zBeMb+sQf\r\nehpk2bk8mJYAT1bYA3B6NPqLy43UoZPyQ8M4lfhNlPkAfix4aAE+Ge3uEVaj\r\nMdYr4jijqdFZrefBCC1RQaQGrI+dLLu8jNssYZ2WUSn31kAQsPUr7InmcvOk\r\nvGg0vQF1qEZfbTbi82c3sxze/vcbBasXRa5F91tBg3lXRLYHwFC0QRSrfmtJ\r\noRWHTHG53Uoz0RzKi09e7As4A4AxnsNhLtLWFXBwvXK7ZJ2TPRuSzwiNNIkb\r\nx2anIalrbEVUf1jvFpdDQVkiS/y3kuwOYUS3HKU8Uwo8uywXrWXQW1IGO1Sk\r\n29Symm/OQ8EtY8lqQV4kylSMUN/TvF3XbLxAukzFvGy8xqlZ/L4c5baxzCQu\r\n58FLlPHNAotyK9V2V3A5e3Lb5BNnv004VZ4YBdrnWvd34ojI3oxTMylt6qpJ\r\nRYM8F/z+0ZkyexFwK1sSPbYRi834r/cS/9rY8dR/XuHKwMHbSucBgM7ubu5f\r\nQkyKDc83WAlDxSt21hYXIaWSDTFrQvKWzKFfQyud7y4QN28KV0BjCh+zzs++\r\nQT9dgX47udnKfAtwo2fhpjXuHEH4G1AJwCY=\r\n=Bg35\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-22-2022_1669077098702_0.4795545411303084"},"_hasShrinkwrap":false},"1.28.1-beta-1669146784000":{"name":"playwright","version":"1.28.1-beta-1669146784000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.1-beta-1669146784000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"76dc43e9bacc1cad70c957f007e195bf6e210e0a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.1-beta-1669146784000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-heAvGHxaN0JUeFWV2D9wYRV9wRNT2FvXUYOrtpzn/G9V9V/Pr6fqOl1UFGjv4y8FCnlgL++xismadFJJ7HYmRg==","shasum":"41581fa5c143d6fc3022b94a7668321b2cbd0fec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.1-beta-1669146784000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD62T+ZesaWLUTk/+Mh3VsUvbtCYRaT+veTPNzbk5EIZgIhALUmms5I01BRJG0oYDtnHGtjp8W0qUGFDTb4R3URGO6p"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfSl0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqU0A/+ODhYT3xAe6sVoh0u9GaZBqUifYzjO2looOL4lbf1MRbZjH0U\r\nmhUXffLJjrvd/q1Y4gxzbnSEJl9MiJ53XV78xC/dh+Mn90rb7lDpsAXrhvIw\r\nRL08Cp8vTqXHOBA/NLW01ybSaIRQcm808nzDTHOr58wj5EQacKq/Z90fTGEs\r\nLanSexZtZk8vJDUZh0bILkhuBicgtRVltTYwhdbdsX7m0XVP8DdcFbouxx3L\r\n9G7fZySJIs5WFZm1oLv629UZIqW5I8M0Atxuu2Nsunxd8tV8RcKbh17vxdg7\r\n5sUx/bSQfkKDZ7fPuxq3hoBq3SxI9h5G0z12vycPGf88tgzsoq+FuUguPTy/\r\npVp0cEGSmsjRrmEMEYmcnmZPCE8YHER4wyiT+JsRn7792MmzUtYbqySUXI/1\r\nrLbefygwU5ehLZ7guH1+Ix6sh1kQZrWsAXFHJcjM8n+muVeiDmc7jdrGuA6k\r\ner1Ilzpz+Oj4VaVfG1JpluCNH2R40rGA2dlEWgWYjCENi2oFTiwRyMaAbrIB\r\nsX4CHY4YL2MmaOI/WmOx2ifUyeSzPzLhlptq0idj2RbRtauoIk/AgSIlzudF\r\nks72kH8dUbsHBVj19k7Guzx5hMBTT9pUmU74wWnRJat1on8RaXXXnPyFelpA\r\njc1kByQowgU3PwRra6NyTQUC18sQb5rfiqI=\r\n=8FPW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.1-beta-1669146784000_1669146996310_0.14910575446048657"},"_hasShrinkwrap":false},"1.28.1-beta-1669161670000":{"name":"playwright","version":"1.28.1-beta-1669161670000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.1-beta-1669161670000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9ede66abd60797cd516484fb0bf172b76b7aec5b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.1-beta-1669161670000","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-AuAOxE7TC+TA2FFzSxWYBlCRgzdAZ7IWyqmfS1/RDMbSLrQILF/LMG/6bmMJ8JgFL9mKfTrXCwvigyHgBSdcpg==","shasum":"ea371917d9220413b2e938ed90488768d01367d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.1-beta-1669161670000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEswBB8KNmWBCLyevOReB088CjSIE+UeSvg/iDk7zhtgIhAKLboRowLWf9b0b+Jj6iiyHgU9RR/JfV11sI4OlqxKsq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfWN1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVmBAAi2AUvSLm6S7gVBUj9hXYuzjey6K51nZJySTHF+GTI2X88wHQ\r\n5SYlZHdfv4N3/nW3D0fNrYRDZhqKlrGmKIRPuQgdCUENxWSgyUZVpCTz4++o\r\nxApP0H4e1o/XPw41bq9YclhBSvtn4LJkK40/yoOMDfKGntug+OBbyuQqAiT0\r\nm/ashjqJqIjKBFkjotrB7NrpRhKMwqdQZ2/uxFq2JRksKhLV5lee9SzCvXHn\r\nH3TGcB4fiy9r2iV3YqMm2GDpGr6FXbkSLXRld8l6UxynFzs2pReB6DIDRRbp\r\n3mXHOKGyhAjkJB9ADb++VoYB0DUe7j5guhQ5q390WH583YJ/vImY/U9Mcc3T\r\n07qkOqe4GTubZgJu3P6/IDnTtC/9KcvW/RL4bOtC+jFaipi8vigz1Zxe7M5K\r\nONbWikKZ1+BPIg4VSPHaSk9ulqcpYlcghIFd47KR3Nuy5X9Tf9tmrscsn3eL\r\n2uyPYJdAxSAiMWDwXQ1+GAE7IEIY+VIL6m5OebGnuK2BRWW4fwPrtSAIkQYB\r\ngEa9W/KwI+xD11Sd0Xfj0vwjAxJ4ffWJ3uNKwcw3C2f/i/Z/t58wovrykkQa\r\nhta+4O215aB4GljoFZRpX7Wx6Z8UeueYt87TcG/WvUNgym7qnJUFC/lP6nHu\r\np8AUFpUgFGapPH3luPxVDdWjxqxgmhGqdRU=\r\n=LLdq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.1-beta-1669161670000_1669161845740_0.5474244250056051"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-23-2022":{"name":"playwright","version":"1.29.0-alpha-nov-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"31d45ad4dc87604bcd5cd3e3d6c0b9c23bbdab60","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-23-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Ik8xQVYHcgFFCGip8W5Bj0QRiN0KF/xTu9AEWTLdmwXW4QlaFL9zrPR6MpnGnlqt63AyvH3WgFJxmsRIXqSWDg==","shasum":"f9f6b88a58772f14a0ea4314362396225cd479aa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-23-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxQQ53kkGUIsKV+BRQ4fwc2FglWGvO8IkI4tQ+2Odt3AIhAJ8ston7EarUWrZTPF4nP2Kx5BUP0c1YR9SB/74rY5qF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfW/0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrxfQ/9FFEnBIGmAjVAQuZ35ZygxuhbLimIdh1zxd8sr9UUCwH05dnv\r\nHk24kTW1qRdLL6KfqTCmqbk4skX70WnVrgvFWTCnKRZhpuHVWonJ3m7VpXww\r\nUvAnsodSOv3GIEsUqPubz/lUpQGccoRf0zbiRCetxifTfw7zcnervgykWO00\r\nu5CBgEQEtbexk1t/luJ8IMRpflBhHFdx3ddZR2g6F3ieYlRE68dX87DAuETp\r\nNtW5mgV+vk+1YASgQFhWWOXiXe3faj0RgDs9wJgjJM2C/7NyvU/k1Q+JSisS\r\nXsxxt1KwNhrwK4s35f68CCqQcwIme9Q7DiPAP/YO7ckx66ySULiDAVdskpF6\r\nYJI9eX98BUemSoZTf6W5cyz938GOVjIFxnqwMemo1QPya2nC6h0vhMIXo8EC\r\nPpP2GaubH8+jSjh1FbhrRc7WAKEsKrb1cKpN3Ov9XCP2Q2OUbUzBlVTCjjr1\r\nd6FruvoONG4Ok3Q/pFMVZWme0DzBMKuK6iG6POrjC/PD8f3ryaeh1v2OLAEz\r\ncb8Q688FM5wQu2Nh4tdHG/AqYyBmLTBCBdGi2UMpQsyfdD8Ek7VJzWI9fWZx\r\n555bAohxdrGsnI9rH6vlxe8ZW73w1p8IWMDk96zwvAT3KmdVk+sLJsVELV9p\r\nRJsp50DkHPcSqHaMO0W2VuCj/JMquHOkejQ=\r\n=peQb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-23-2022_1669165044275_0.4722027386502117"},"_hasShrinkwrap":false},"1.28.1":{"name":"playwright","version":"1.28.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.28.1"},"types":"./index.d.ts","gitHead":"9ede66abd60797cd516484fb0bf172b76b7aec5b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.28.1","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-92Sz6XBlfHlb9tK5UCDzIFAuIkHHpemA9zwUaqvo+w7sFMSmVMGmvKcbptof/eJObq63PGnMhM75x7qxhTR78Q==","shasum":"f23247f1de466ff73d7230d94df96271e5da6583","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.28.1.tgz","fileCount":9,"unpackedSize":24267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJIBouMWd455NIYOzhq82WfTAot0rt1M+aSQ7cb0HpmAiEAuTU1ms+fmnbdn/977Zm2sY2e8lqAZLoraIS46suTkiA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfl/DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOWg/5AffVHC3LvfwihTPDXhILBBTM21Irql4Opue1Baf422Sro+Ue\r\ntwJ2xemO6w4HCxHpU6puRGBVg6YPFr/6Z6wiQ09luy0j9w/jXsPmuRZQfR6T\r\ng5pvBSAwbb1QDjRfklDQBhaALTUhvtYFW5u2AC3MMaaKkNwfBDFuKx1GXcud\r\n4IWzhpnIuc+IiQYMsiPLKZd1qjC/CsXGj/A2qY/gR9LgKV/p5iSN8rNnlwJx\r\nIhc5CaBl9TxSo2USzpzCkt5zxC0M1+4MwQyz2alTwKyj9i3TF6BovLO3L3pC\r\nGjpC1vvdx2SwNKur7UdtJxwPGkK8nG7EKJzf8VeGKDTbRy3kxOoEzg3VmEpv\r\n2GteMj8J9Me+pEq2flnCXuBxdoRfn9AG3OTZWZjXJT8xFhV2h4+FXIgj2SNb\r\nIE0nVEP4o5FoGycysJSA5t12UqHuKkoYXGcPfRlZKAlFP67pxq8TiYyL/hJR\r\n4l0LIjZrykTJLcLH6yJSsNDTz0Cw0MKPolwGjnGd7P1azhE/x5X+QdZDIuF9\r\nk0PqW/Uyml1HD/fblTLUigQrAUbFCJ372Fx7qzD+VOYAmJU/nvT/RZuN3ljD\r\njsTZtMacNn68L5oeQiGDw3LhkjFzc1rTZNLQwLfGV5YYseBh2YcQ1sjqjn0i\r\njvx/QmHmeP5hRT2qxnPGyFJGL8t7smQAdwA=\r\n=zprK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.28.1_1669226435356_0.03997971169292702"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-24-2022":{"name":"playwright","version":"1.29.0-alpha-nov-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b84a7a9e575b91d8433e1edba0d3a81cebe5e445","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-24-2022","_nodeVersion":"14.20.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Byxg1CvCbChun4ON8bHr4+5IbIiMiFUYH2/8mspiI7FrONVWPQHYJpypNDX/xBzOJdhGbkocqrn9C/Utaf/nyw==","shasum":"9afdda097a7bab9c493f1a40187c5372546b2c17","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-24-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrtvgKhDzlyCiUstcuhw5nEbEo8HXnJvB4NWFDrcYf7AIhAJw3LCdk7Sxxpk+5v+ZtgQ6vGNWtax34dc26aSXnlwxU"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfrtdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2iA/+NYK/2g5edkFs8f7eCKebICo8P8I/TjxkySV9tDrDZtkMxK9W\r\ndMDTyaKzYmgp4uFARsNzI0PTKlLKm3LWXepoU4k91mg2bogcMAQ3LE47ZPH4\r\nD2iLK7jtD8MrWbjLnNeHHMDm+HjfhdmeSrk3Nm9KkTD7UECdmL+Vt/ognf18\r\n9fzyOvzrgrDCTQXzm4WvuFRB0FpzE+TZ1HSPuFCGh44L+wqbJlgBVMJYP40i\r\ncrLCBYkyfCfSrEW/31yROw4EK3A1qAuELFdUfjIBjACQrZOX1ACQFgMXG/ox\r\n3SbpPCZ2IPCRjyDeIhlNFEmICsewpAnj/TgiYuvyCXg16CKi3fDaOKiW4QXH\r\nLiUoAvwQ0JVCSzSbBmOAibhAgfWN94K8DEbMvQS9MBMWX+io1yPHCV0V5rAR\r\nxkewJ6Q/F7Q1iQMC1Ixv6n2nnruTadZLzQINiorTyP4sGXw+XaFgLolm5sWO\r\nkClqnNACNv06OK1fXdMBlKNi+SjLBELOkQLNveNYCoKb3DaWEhIH+lifQu4L\r\nbkw9jGANUmE/lJNycYGHRLxe2pQqTS6zhlEfRxH92YFoirvVOK2lvxVD+dpE\r\nOpcmbVZcxtW6QBzIkVAABc5s1uPfOfDv0xkmiiNVyma08b5mgAv/Bz74V9Vv\r\nqLsWlr8teR3JlKAXITQPawW3+E64gnlwEwY=\r\n=8Spi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-24-2022_1669249885676_0.18511667142117805"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-25-2022":{"name":"playwright","version":"1.29.0-alpha-nov-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2887a2a883292415fab403b4ea9b6b075c121ca5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-25-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-N1zOYl93FRezscvyG03KRT+nfMf57uOVJg44m4FdrA68TCks9E9CDPVGX3rpXUrEtJKTMpFUx8HpDE/SnKGHLA==","shasum":"aef8d73afb4a904ea913d080873a30947e7a927e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-25-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWocTWleaj0aQ+9bqMOLfAMZy6U4A+NnU5RYUjwedBJQIgc3USAR8UtdE2WdNBQd4qq74tnk10Tm3niWj2i2Dq9aI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjgAwfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRPA//eq4Ykoke25BZM2sfcHdZG1iHkApW/8t0WaNlZLXlhh3Alv3r\r\ntlUezJlVzrPC0T7Abg0+F36hH3AKddCdwdsYdb1k1KuxUXTYMZ0Jy85h3aop\r\nrYccVQEeY6Ui5s717bAmKxRlK61tNEnAQUYp12rBnVeMkuTojbPpO8VhoXTi\r\nAxeLRcXPAMxopEz657c3k/cpgs/UBgX7odIOsTqx+6VQqfu/reP7W381t7+N\r\nss7JT7SvOd2RLjZvDwpzkAvb2v9dOEQ/Q/fqt+RB449bNUvKxFrjssXHdf/X\r\n2KZ+WERHH80Lf5md9vp6+qgqifssXI7hTi1BgYjJkeXTBeyUbKHYTbwL2d5U\r\nZWiTULHdFF8NIJLqsx5sv98YVaQrRFFuYhGyVNXJJlf4aAziSA+qhTy9cVmk\r\nYqniAqXZ/e+UYiZ453F9jf6cFqIHzTsXwzlHt36VXZ3xRcNx8iK6s+t9oKYc\r\nAClXnT1cBm0chZrawS7VrxeEWIzJ0moTa6Ht0DXS+aGKOShIQjh7GxNTLapp\r\nLCCwEPmF4uzUvxP9/0EWyxAmhBrM5zk4Wzf494WSgQferAz0YW2pa9US7Ma2\r\nwxKtgF3RQn36iSkbGut4oKeaXggeNPNBnxb6+Ub71ThHaJVkBHEKTkL5uop9\r\n96QVSiOZtRxAwvXKoGrMuWO5D96JYN9njxM=\r\n=mEbB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-25-2022_1669336095727_0.36864149282707137"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-26-2022":{"name":"playwright","version":"1.29.0-alpha-nov-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2887a2a883292415fab403b4ea9b6b075c121ca5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-26-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-tVekIkQNIaJB1UWlGjcY9L1Tck39fSZfkIuYkXFq908VwoeT1KtlMNGK//NUnQwD50+HsL/VTOMET4RnAbf0Lg==","shasum":"817c98c98856d4b6cb597a5e3a382b519b2b5b80","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-26-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlPT+KsGAlSRUJ6ceKfsBP+ffjjmiqNgBlVc4aZxvmfAiEAtkWqXc+XjVAqlhH4n+3ZFC2ZBS11SysOV7slZrkPskU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjgVzyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/LQ//Twqk21K7n0TsSRNxli99HEVhOUxcuDMwqeH8HfjmLOwhxNba\r\nM652kGJBKOSXv65BrHhmLXUj8/2yCaHzkhKt6HMEb+CCtPro7+DhVwNLip7B\r\n180j99UGX98Dy3I6Iy09G6sw0F9Qa/oxiwg2hoJKbNWH8KCEIEfox12t6Zif\r\nfzyzWtEKwDoCJP9YkjIQ3mhN3BlGsFpY5H7bD4E2v9LxQCUZgwlGGCMyFoVN\r\nZHjSV98L3dL+mSzXQTJsxp6GOLKu3MjBR+Qd+zSjfur5IbwhrHuXqL6fjLMh\r\nyRTRLNurBNZmZnlhiLWlaTTq8eZ+DZD+pZd+UiMwuMd5R6D7MjFM3O8cuMzy\r\n3dTxGluSoYrI5xhd2V+e292jXgzrYgU0DVTrWHPyO3f8d2Vi2zOb+xmZ2WlO\r\nuWIKKVpoa4E2FPGuCDPKunhlKHfwyHcM2ylQxE03PwZrTgLIJ/td+W75I0vW\r\n2to05+F7KN3JqnC6RQXJ0Zg1J/iPTA5ukD/cwlkrtUG4nPZS4ybx/6F97N3u\r\n4mzAHS5F/tj9Yr7MybLaGD5dmN9LKtTdKQLAhEZ7BCiv8Q0pY47DVga9q+FZ\r\n4lMq4+od0I1bmmSMY7gSkzLmf2LFHa3glpRsMcQE1iwCso4pwc6L58Xa6Yba\r\n0LaAX08JHXadZb48VcNVYU+qB1hV8x/DhAI=\r\n=MhEi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-26-2022_1669422322391_0.05446741399146737"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-27-2022":{"name":"playwright","version":"1.29.0-alpha-nov-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2887a2a883292415fab403b4ea9b6b075c121ca5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-27-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-g77v0cfK/LVK7gzpHUx4UxiMFsSD7lu4Le2MPNfeWG0qo3uxaN/crAENvLYOYKsBf7g4JknzqtwR2zSfb3HjHA==","shasum":"6d5f0d87f11d0dab0dabb450b96d5e850d9227a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-27-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3McMEloZmksSljqkXQAyN3EbrLJPBWicQR/2bYA4gzAiBRBWA/dPeJGvCdRnh+QUvqOo+U0YfNYZJoMgFVmMGN3w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjgq9eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYEw//QjopqY4wkWZXJDaz7MxfTl5eTCZyM3Obwm3qjqwRRLiy5GQR\r\n8oWZ7s5UZmkQmuksdBetVgsqmt6540wO2hn06YRNE5vIvjdUi0wZPTrsAOPp\r\nNklBpuCZA65YzYzKWUusAs3XMLZ5oaAbA4hzlsJPU3yO9uQksKL2QiJPymJa\r\nG8cMRQ64IB47uMgwJsbU3hEbk79+aSvt5gkOaYjXoKJI4PyGP7JzqENEhUun\r\niKBXxYdnxg8xUChE6gzl4cv66Na5GPRrCgysgLoPfe8WVe8cN+LTGkN8a229\r\n9lJTDHFyM8wNed/a3SYnZI8SLP+TM/L6RKlWmNWJHrFFOz2zUyrmnpQgSOiy\r\nMaINaJsUgwvdvp60ZFA88K3kzI0ly1TkyPl7F9niQPB/SAhQvm1iS8OdrJHM\r\nqSqVrtQC55TK0gfxneCPxYUnTlNuPuGtHSgIZ8xu+4rl3WB06NoxMyGweVje\r\n+6DqHHG9b+kIve23YKETW4u5Wa24m4XXmxhcNvFbuVxse+vmGckDpeHCMAWu\r\nHp8MmjQ7tgPHVUMSwLY3xmWaSAwJnq2+PrTuiDdDAG6/OMyv5GnyZkNKf//M\r\n7C/0jWY4ldavMOJnYHiODa3H8mMp1YbkGICj4X7eBMPPCkE3d0Jtf18to3fM\r\nBLI8K0Vp5qMkHCBCSL50ISxUAHkU4gTdFzA=\r\n=aEPe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-27-2022_1669508958504_0.41093953106194325"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-28-2022":{"name":"playwright","version":"1.29.0-alpha-nov-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2887a2a883292415fab403b4ea9b6b075c121ca5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-28-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-XmRixUHR6Vner5mcbC8GJjJvzBmksGImcLD4KTq/M/8X1ogC4au+oKYLlbdQM5LzFE/1WKUqUh4Hty+1Cq9CFg==","shasum":"8aaa9564d71b000c9fce4beaf6e8b4a55431242c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-28-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBAEMlXZ6UihC27411C4kWJAYW6FeURXU/9vbBj4oYg+AiA/g0vKIRpCDN3vcRy+0qCorTC419xEU68GPeGRyY7z5Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhABKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzwQ/9F+axozQsl54Hu2AT8RGVNaUpsZ++ApvRC7RbhWJHBO7wfIZn\r\nR0k9iqCVeoYUOBTDh47KFTGpzq58vBNYxn1qik8fRkcFAfvFj84v5+oglhTQ\r\nEOvpr2+WecdPB8TdzMX/yFiAsfX5IFLyJhzhuTMc6iQWzAHFAZ5tjkGuKX/m\r\nhT4HvybYTdOsdNIDju6xNRsh6OztILqVFsAqMGzTbahXzkBBvXs6bWCe8kPu\r\ngiXPqgbgBUazh/mCrQZVMzWmMHoomd044NpR+2Ln7f++Ps7BbxRd8CiKuLvh\r\n+pJKlUE5N2HWBkyKL8A/DMkl0r+dVQqI/sUj5HYEPflhHaPWNLvomkbVJngE\r\nXDmaZ5juYqY/QJqCUYjmWPmMkTbn8R90oHUaE4QauIXT2KTIZGE49Gx9skLq\r\nJmDh0ePa29KCxEV5PcTeCwIbGrNIWj0OV3t16syPIz9HJ5WZev430R/kqptL\r\nE52ZBYEdD04mqe2GbM8TC4NeSeIC5B8WanwnzOc8XUsq+elVPLYY/3vvXLhO\r\n1g5YeRtZgHZKgtNhQkT7IyaiRva03p3qBoBV6DB65nSvErAk8PGwwvyh+ZeH\r\n3f1rjFOnQ7GhW7RZuW2tkCTmFattq1o47SyaclRcNXrCivq/XXmk8OMnRRB8\r\nmc/nBbPY1evzWU6w9AAn6nX+9FHpa6S/E88=\r\n=/wgp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-28-2022_1669595210536_0.9869602887628446"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-29-2022":{"name":"playwright","version":"1.29.0-alpha-nov-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"65b0fb055d9ebf05bcd7e8fdf64d247b72e179a1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-29-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-8Nn7x8TW2gDr31yI6fNNDnehVdtYm2d7yKsvjNdHBg7OjsamWFghIzOuTDucUsgxE9bW6fPLaFUR34rSP56CGQ==","shasum":"1ddfbc11078eac767eab608d48e3586e0a478c45","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-29-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGjQf9MAISv4JyF/HO1Kz6G/ZXlo2+R4XI4Xdrl66J7TAiAOu635zmgqqC0AHJL/mDbQn/iW1YZDSkr1qQwYJ44oqA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhVJwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMAw//Z3bu4ANK+R8qqtTxQHXa5xoyQU3EcuqZ6TSI/x0r4SBrLISM\r\nALxaA0/nIBZaiFxsVsri+BP4mjXQnjLbuFcNtKHUgqA3VeH8M23llFT7FiQa\r\nrgptGCY77JOFHVf4ALi0wg8+bROhO5v8fLhQm8rw6uqKvYdFZ98yavSoW9F6\r\nRHaKEzHjc1JvwpElzgimbsMYFpJ/zJXCFFft+nkfhJXWx7kuHujvbWVAe6Pu\r\n9yymuDpdP9JAHhccOXYrx4dy4NagAe8saBSn29XHWw/wqJPovvZ67so6d5Az\r\n3oI0usf+ROahTOjGx+WYD21B0XjawPch5IFgH5mWwyUiGO1GqlLDfssMsWWx\r\napgV3/dtlIA2QlvOqsxlzI/99z0T4LuLOOR63DaGezYN3wP12gPdxOcRl+AL\r\n0F+WII80N9MXAc/wB7SP0MwnuMcAZ3ceXqYxxGMLieMPtXjOqlHeEQS8V29f\r\nFfqgBUjc37Ob164yQo5xHiztEw9kho52tMTMR6/iyzZ9GFkLKDWxh/g0Ag72\r\nbfF1SZIIgePugh6tRzLeFNAeomqE/F/WQFeufnUHp2hzH3nCVpsYmRVMhaIF\r\nxMLE+ez95HAv902/4lLw7AhX0BilMqznmzAlzQ+FQBPa26hC9JcwkQDV7hoE\r\nrqr2GhLVnCM89PcNP121Lgtcr6aLUo6UexQ=\r\n=L+FH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-29-2022_1669681775890_0.7248754855895783"},"_hasShrinkwrap":false},"1.29.0-alpha-nov-30-2022":{"name":"playwright","version":"1.29.0-alpha-nov-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-nov-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c9ec8b3e556f08d6dbf1735c149f7a72e0a444bb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-nov-30-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-T+3xheEgVzM3wd+yGn0sRTcQtn2nJN33y6SQ24xOJhynLhBpisjko3Ayw4Q34rwWImQGBGAsqXF7oIGIudP7jA==","shasum":"662dde8e3120835c7aa3d65c21b353085b97536b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-nov-30-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwzSndXJeTbhQCJQgzPohUHwu8tssE0Z3FHNrVV4lVdAIgC+dhZt6VmKKR0eSbXip37TosjVKMo7Ugve7+PUy2MEw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhqmjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrs+w/+PWXY/J6aBPq6RPtcbAnzTpMZgbUlTYDt6Gf6CQ/b+cVU46by\r\niwrpccM1+rrOWSC1efu7w9aLrfc0Z547oiVBhOoWTL3SgGd3NkZZyuRXz7lH\r\nasWllBxrr4OWwWxtAZwDq0ILZENiytFejHu6+tcOkHJdUyd8fVCayB777VBt\r\n/UP2eAWTDQHQsPvEAjtwlLZB/2bQlkbwvua/tK4ZRbwSsXHteyHUlUV+LKet\r\nik0jJjnl+0NbguV6SI7PDxQjyIkSAx3zFot3K/ZRnve+yTKmIWJU9nSBUkrm\r\nRkUci3ZSs/eYuIMeZHN0fbfLfkFRbwRlpF0vVG4fREdlKOJL9i9CN8PbLpfi\r\nYMeschcs7fHpdpqSx5UQ4DCnbkK0QkAA6eYXLeHR2muYsDe5QsvsAb2v8Cok\r\nZgmVhmIDXGIJmQYp/YE0wATMTCqwfqZY+FMrbJtuljekvR2API73XmlNPxMz\r\nAi28lWJY8ExgM7wl2dZxvg2kerMu7QZy7lReWXjnX0EZdFOCoRwmKhACdr1S\r\ndCz67xsQb05g44W/M4EA0evuqyGwE12/WqTKiOCt9GOkUfS1lqjEEb1+A2eu\r\n/2lmkbEW6ATTKYIFuG/Wy9kyC4oFuXtXU2+iKggKKj9M/4rkKeB/xCSRwJRD\r\neYlgn0dyLFbcDZGMqrw1JkLPGWNq0pD7E9E=\r\n=piXm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-nov-30-2022_1669769634971_0.8905595137647055"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-1-2022":{"name":"playwright","version":"1.29.0-alpha-dec-1-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-1-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-106.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->106.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"878401ff2b4ee304c47920f0f6cfbb8d27935ef5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-1-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-AzMfBQPZOTvM8ZDxuDI2GOKanVfbTd8Ag1Ny0GPR4qOEpL9QlEdW65t3eOM2M3IJ8vfI6cK16Plv5uu92iQ0oA==","shasum":"3a7611d0910e55350a5a3052b7ab11d3fe2cd755","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-1-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE9xC2Q1sDg4HrYmqZ37NCX54/hvdkAJqISQdWx3gISVAiEAzj8pjLBWOGV9EMtFA4cWGEBwdaJr1dHW4FLiuHcsCLE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiAEfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzAw/6A/p2Km0Zivho0G+CDVyplovsJSOSNPri9femBk8Xt2mdusLV\r\nLoyTPlVOEaYlGC5gOsaELBuIkk0SPq9w1DaFOsOhl7aZrCJRURX4MgPe9j1d\r\n7JaVKzSNNUWdEY4ODUHJSHBfjblsZ/HCB4oHvEOV2BTWYejAQts6wMMUpCuh\r\nMMVTKyM4o/YT+orZPByb6YJYNFHr6HkHTLi0gQCbJvZCxwPCrSST3LGBZm4H\r\n519nRREdEDXyjEKnVVs0aRRZO7hXChW9Ud62aLcm8BCEWWU5ubFhpV960AXq\r\npjmJVUMJqSFqtdQd2ZgsCtfxnBPU/ztNvMr9mQ5tdea2kWjf4/zMAPuRGfnD\r\nIdUvu/8HWF4jx851Dzw11T9RakMSyL+vxXN/IAyCebE8owfxI52NQYTyrP9+\r\n7EmJm79BWXhs/Wf4BqVzXiKMUiCnxxAxrKUQVvSHcXjVr057td3liiikSERO\r\nVFF6WMNAyDkDJG38MsLTdp6N2OR3c6WD4a/LzhHnpxLaPE0Fs/55AicYaK99\r\nTpOVfVHP71+zJktl6dT7dauWZyMCNoKRaf5LIUKUzS4cE8I1HUUwcdOL+w3c\r\nek4JnfYSmuc+MEoySfzUGuL1AWgN/IWiTYy+zPgzsHfY935zMUxDtWt/Ejhq\r\nQmgz646eGotiRUvD90JChsyfibuiReuInDA=\r\n=P5lf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-1-2022_1669857567345_0.6678734011901983"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-2-2022":{"name":"playwright","version":"1.29.0-alpha-dec-2-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-2-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4fbd8b9672508be8310c45bce9c94f3208959285","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-2-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-+im4u/+G+XXpokhQSNMl6/2hnBNG3/3ozIYRYFb70l9tWad3xhPZZYK1efOZaU2S1t341m6RI83IdXWYSSujrA==","shasum":"e5daf90e1e576ccf5852ce2811070da75fc13d34","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-2-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXhxWYECoqX8D+cnmb0Mozy6mkDMrfvXV1WQCUliSsrAIgCKV9WZkqmzhZWpUA3q1NC3oe0mqvdH4Z+lFxKzoLmGg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiUcYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvhA/+P9PNjsFE9CGx9t3JWwUti08dZdLytrtdJCrpHBugMtbl/AUt\r\niCoL1JUratGpbemhbSx0oLTsJ3nicquTH0syR9OyBw3HoS5BMpCx2cWIVPgD\r\nAW0o+Z+avtcwtn1vKDGSnx3npZlYY1WqdydA4LmMseYX4EsaJQrKZIGrUC1t\r\ngYrr8t98qjMhK+ux8OSKIJ/ipoQBY6ApXHRSj4KDmm1QTdxj8BsXuCG0O6ju\r\nIy37YJqOLP+uSwulmX3e1so0v9MTbLNJMHDIBLWrZhwe29sapNrsFTUUgOwQ\r\nZg7Xa7ymv0e36s7xd5dmCI8EZUeqn/KBsE8gA84YmKErZl2bVt6WKHK06GXl\r\nKU6zjv85TOhPWeAK3p+9FUXYDFE6WzkjNHjkzbCLyAiXrecc2MJGdMA9VIHq\r\nOn8FyPZB/XwOnlaiWs83hABdUOHt6QrYGl2Tf1wIL51DXQXo8VKauv6nc0HT\r\n0+jjoo/sSmTHmdxdsx/gvHz9q6x8fDH/uNPPfsmSv1TmIujd7X2E2etkKQGu\r\neuh1ikIEwzkxv8aVxxSsnyECrAFjbZ1QpkG/Y+GMxot92VFXKAzUztX7uiXf\r\ntB1fYka3L5ncLWcvXsWn8lDv4uTVyxJ2Wgn0rLJ1HoVgkuGF0FT3kvEtVuLT\r\nULDYMsbsx1u2YkRcsPLew4bPf6VF1FwZMhU=\r\n=eExJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-2-2022_1669941015904_0.8888387010754413"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-3-2022":{"name":"playwright","version":"1.29.0-alpha-dec-3-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-3-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-108.0.5359.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->108.0.5359.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6d82460a02dec3393490bcab7b619f668f03e6c6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-3-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-KaU9HRbAMjrVrjexxC25NH+blHnDQpy1a2AaoJ/9ASY4eAjJmBZKd0b2oV4cdGgGH+8gmfglTUNeUxGgGxqH0g==","shasum":"a3c1c46ccd42ec20f00ffc40ad4788edb99a3619","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-3-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGQXAV4nA1lGbrLImHsyNiE+Ftj7myHtW54kFXLAyrB5AiAWqwKAcSVfLPtlEfxs6Om8k5g1MttwKRvCSMchQjnd7A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjipeQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+MRAAlxCPOCIEgH7u/kg+f3Uf2gg6duqZoH/P3UeAM6D/ROyTeJAl\r\ndhZy+DuSzG7uJZJn3pg4zdEEDeMjShQm/ISca/O59YKoraO693t7ZDtQVxyh\r\nGFHZO4tdD4wtYyiHazMdbrrQ8RDnTFIaftTiEBfpnkU5MGQWxy61hS7ApNVr\r\nLHid0l9fj6EuX6SqxYdWKb7VB19O9+0b2gi8QAMYfNl76t3+SQ5NKxJjmmmB\r\nWw6WVg/x6sfH1Av0Z1UoRkEInK7UlopukJoUxruPtbLhDQtkLqTxW0FnFQBA\r\nw6sIsgZotgja7T0gBMYzkXKoec6wMUtoSlHALHDlDtXEMhKGDrwJ/9lwO6J5\r\nrzwZCft7QXBaK3ABB5CfjarKB6Nkc0ZUbNt7TLTLx91+ON68Y8QHIVcwf3dO\r\nMjnu6igQCvu5J4NGm/NpiDY3dKLAfNy9+kysUh2bmYAnmopds9sDYpO93HPJ\r\nR+FmqEoPlXfjxqDisR2oJLIAS5u8m3Qaq718NBKkgmEgTovf6dJeetWdT5d3\r\nYTDFtW4T1EdvYhCdVz3KC9Z+ioWcrt4jttBvV+VHRTgiGsvp0npdME6A+nui\r\nVM7kpVn0WyQ02xYJjMEc79APLM9fF+2LsiHUGucDEqxYddwIsxO2bbzkjzSK\r\n8+16hioePy7RR8mJ7sQsg4TBLmw50C7tO1E=\r\n=fy1M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-3-2022_1670027152193_0.03999083262541969"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-4-2022":{"name":"playwright","version":"1.29.0-alpha-dec-4-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-4-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.25-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.25<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e576bd17dfa7211ce41ed14660484e86d03cf6ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-4-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5KJe8+sI9SdmrzuA9zY59b5kGHmB1RLbDRa/QKeTYJSzqVVvJKH2nmAfeSbk+CAboaPDquNrTSVYwZQ0PvrBzg==","shasum":"babb71d3c919ba384f91163edd2d92c1b22f0bdc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-4-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCGODThd59U9Hu/uzOWkoQAa3QE4obXIMNRmM+6jRvawIgF8iVnfy4dqkWzj1clKzD9m5qnYYtmjSX5wJKujAd1ZQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJji+kfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9aw//eh5w1SQL0noHf6aZSa/lHU/binbEnQPnR1VxH4sm76SaMC2c\r\ndSgKaW0saQX7X2uXMKNWlhYnDZ9Cw3tQLNEsXOeWgo0e8p6RzDiZ7+zLRW1s\r\nNeif3r0WcuQb6YrspPI+bvvGPTN5IwdQh4aoFBs7+iM7wgPzhR2Mnff1/nih\r\n/4xLvKAuU3Ng2hiUJjpkuu/8bFRq0OTNSrgvO8KBDETK+lT/LvKMalSqM6l5\r\nxyOs/PfpJKgaGali5nQVaaYllpV52UBAEPDnHNzPbi/e1CWaWIAfoG6T1Sq0\r\nV5yW21yTvFzIfcQpNMZlBJ+pG+ebP4J/tpdOxye9ueM26QDkCtDJ2XxnEA9U\r\nmZAUcF6T0RrDQz9jANiL8L+rCQDd2AYlF+4WWXz4+sYjYoFGWwHVY8dkWyCv\r\nib9iPNsV2tWDFCajo6zCXS0EGo8ZBeacIsH+OpHejjtOaeENXcm3rTNhjrVI\r\n/IHxGoITUxlmbLFyjAM5hb5BtF/EI4DcISQ9V1ADPeXkhAezxiPa7S7ZDwwf\r\nvJY1YxKrAD3MPWcUXw+JpN3aMTAQEnJX8vQgWKK8BPgFfXGA/tmroBOJfKhN\r\nsrTrT1AqDVP9l5ZadmWCyCo6WHv6MwQjYHEH+V+d+HYnBm3Q/V1tYEDHBHqw\r\nxECcfK+OOfFAPa8We9SGDvYTcWH96eo6Vwg=\r\n=E7v6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-4-2022_1670113567412_0.36480504115068957"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-5-2022":{"name":"playwright","version":"1.29.0-alpha-dec-5-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-5-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.25-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.25<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e576bd17dfa7211ce41ed14660484e86d03cf6ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-5-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-2cmA6JoT3g8Vok3RrMgZktLWabYqtyzwcH+dcuLUYslKSg3tO64Dl4aracOSlLZtyblc7Sa69T82lfe9+KEaSg==","shasum":"1b4457f7cb8c74cd04cd0b66f32530bfe6d58c72","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-5-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICz3vizTmo46XzFKEmB775fn//TbsZm4fxdHaz0m20gZAiEA3Xd+vgbMX9udHI/v7eJsyJGdYWq7NQA4dlW8MLphmvk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjTrRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTwQ//afjwro4fgitoke7pKJ18yYEw5enhQwX2inadJK0BBtUhV/jj\r\nhzJzLBUdde/DU/svQtUE59RYQxRmR/I5+ce8kcOjt7MfRfuwrvQ351Nqd6my\r\n4RWY/XkLGu3ntGfY+i3eTx5Jqo2d27oZBZ9dXFXhHqD2K4aAL+7b9Q7yoPbM\r\nLwhBmQUbzOvhQmaS7A7RpcqEMpr9k+pyTaNZsnsJJeDNli02JaSJeKSfL8TI\r\nlBgsPsML3icZROeWuffLbAA17DKOcVCqF+CGLIT++HJyw7tseRjsKst0gmeD\r\nrGebhFxaKNs/I6ttgvuq3Dr9xhu9J5hb/pEXbikcunM9BwJLoB0VUOS6d0lf\r\nccao/MZ140lVI07GWlAZ+ByRr45cM9ZBC18staBFGV+Kg7qpEl3fqzzE1fhU\r\nFubWlIeI2ki58tYfoFxd2R8a00j2yYQwxgNuIwlNBlp3YyNUhaXWoi4PsdBZ\r\nN1rRy6czRTlFSKx/Egy9K06GSr0dhgSn4iP0iJA6CPhchXXnEIpPwSGWjO83\r\nlU/LbN7Y1Gv2IYojvgS+wQfd/vqOgWvf0V9yWSJfJzUGH9uX4o2cvsfLW/qe\r\nMNmPwSozcjIr6KvNUKdaX1PeZylfe0uvJX2OUV6r4imM/LBnZgZPP03JxISY\r\nfal3iGAeP2/Yf5oD5OElRtb0h+5Kq+B43mM=\r\n=5a+J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-5-2022_1670200017715_0.582942738027304"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-6-2022":{"name":"playwright","version":"1.29.0-alpha-dec-6-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-6-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.25-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.25<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"48182a4eb2d22088084e0a1d87758070d40eb793","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-6-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-QWYKPw4Ih7TOWHpiuh23Y93b4NDwWHzChtlg5nvSPOjZcPo3xJ6AZ9x4uiLV4lGG226hP+0OuqrHzX2B1vKK4w==","shasum":"ad990728394d732e524314b0c499305abbdd7669","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-6-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnPmCwnp2HTwEESu3RqDCqHUQ6LxxYKZwnbbdAyV4h6AIgS6iNHTsnp+esnZnOY36JqHOnroT7AW9NJSjdYRfuSlw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjowDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUMg/8D6bJZxborhuA8w9Si+TbPCBgdphLpf9c3HdtgextA44d3Ven\r\nPLqJB0iZwmoc45PSMchvhkB6l5No3GK6+bx103Bv63ERjpvdf4uSstMCffDy\r\nKWToOGXZ1H75bcPLwmP7dWBuuBDZq8Uo647cmi4y+/3Uxny4+Ak9LkUsWx4C\r\nXDF75h3m0oT+1CAdxlI0CmN6uI/yYCK9+AKBbYsYJUuMzfFDiH5R+Z/SsOgK\r\nrFOmDMhFD1bpoCOth693fsL4f/1VvwMSY8N3YqlO5iJSq5YcMyKy03t+fy5Q\r\nJYtObVTNEOLFlvA8ohDSBOUdRzb9iMCwasqv0PT1EYCzFqCLsiOyKjhjVj3g\r\nhYfODeaHyuQcGSbgQPdyBp2I3iMJIQDvdcUCx1vccJJqPDYPsRS5vte2iqJU\r\nI9hCSyoxSQLXslutx/Crw/Gtu51P1DE98cs71c6ew98vIDtKxO8gopNi0CYs\r\nedgm0jw2SWxYL8gUdI3qxrYIhPmZQNxsI4/3DRFgTWqEvwvV46xbW+Iwbu6e\r\nYDWHNdY64vVJJqxObxRDB9gYJ//VnspUgNxpA1lfQ+ZN+OKh/daR2wqCkLUr\r\nuik7TuN3OdR29sZJRxMiX0nh8CneWnaTThX6PbQTXRWEXL1oCs4bs0dHlOBN\r\nnNm2RGRFh0mBlDCmhqWH5+0EWLPOrvXzTx4=\r\n=pqcV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-6-2022_1670286338988_0.9116968722125065"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-7-2022":{"name":"playwright","version":"1.29.0-alpha-dec-7-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-7-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.25-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.25<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d294c5da33dfe60bca2b76ca6893969002cbd62e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-7-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-RTz97QaZ6DpFhhOq4cC0uZw05N7LavgVIuLhs8wqFroR/Mj2EFya6LO/tFhdVzr/WEosVoybTw1W0W9WRb+hgg==","shasum":"646cbc5ff0a310e497df07e8b9a73f2fae55a6f6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-7-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPAWAoJlpwHNVVAEGPI1pppRUwo30OhJtzbU/wng3IHQIgK8a6nZyNzchATiDF3ZEGSu+7xAMNYj9ZgK4y8PhnnNU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjj93eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7YBAAo6qvvkhg0goKNer4KjXwFtag8KFDBJyZvwCsfveK1QYebbu5\r\nzC4bvvShH5U8944a4lo2kS9JXQSqucsKPpKIBKdcMMyMptLNC3L6q7xcFcA0\r\nw5YvAyMMncxWiV9NB3Q01bHd53aAacRDMxD+Rk+cGexHPvzWL2f8JyP7Gw3F\r\nE7xDnBQkJ0pjkuvRvO3C8lHq/57PF0XkbXyWXjjldVYnsMCTy9cwZq4khtvM\r\n7D1QXY7tNTv20uMCah9nxuuII+96bgrqR6oHMmi8FNkoHhEWCqv79OHllH8H\r\nczEnStymr9dfks6rLb6WFYbW7wmQcoNm1qGMDR5/Hacs41KPp/gd5twZRzMe\r\nEAbM/h17dx+KB4dcbYj22BKLgTeY+ljKOFXJgTLEHUmMYROdu6ccuWz+uRx+\r\npqLr6CUFvWnJEKA9n82VeieVm/zsP1VRBSOaDaFpoaGOFrtU00MjlyzEaxxi\r\nvhwHFWZOr3PNaDgy/HKRaDnvxBzAi6VgBSf7659Tg/Aj7RhEJeSbG62bnex2\r\n1kcLsOzN9xhoaGcfMMkyuBjw9iYCBlt93E3ZhxxVYsnlPjZtn9qsKnizPVBq\r\nNxE9Dp+WdaRNd3tmbjpnoqU4p9qRvfm/j1VGm8kdnaxBdhK1PFYc6/+1reA8\r\nHuwfYCMxJBabzdiNcsx3t8pVR9Oh5Ujap6I=\r\n=qSzl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-7-2022_1670372829870_0.3865747718194814"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-8-2022":{"name":"playwright","version":"1.29.0-alpha-dec-8-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-8-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.25-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.25<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"59a41f6051526b6c5057240eed517955dae8355c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-8-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-YynEZ5mvpUE2Co7lbH8qY4kWL2dUWUMlYt24GRFSmN9ryYZzQuqZIrsP+kOV2cuzqPors1W4zUJm8FZn82xvcQ==","shasum":"3fdb8ba7e908d2e9c0fc7b5b83dd1e3f2e1cddb4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-8-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyKmvXVKU5ObW5BwOy22iXtMScaEXquWwZAyK7AM67hAiEAqg7UdPIcdIOHojmgCqpEeZOTCGzjxy1ucRz00azBhDI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkS8MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBkw/+POa0h2pWYzCc6/L0/11EWVnv+NvmXcddz0dnkK0Wyp/vLdPv\r\nlE4BZg0J0/kOqHU5e8FrVQOFT7A6a8TxwJ20a1VzAizQUt8MsO59w/2tRZCZ\r\nMc8EyY7J/5giFCEdZHDhvDu0twrC7IR+lJY6wFHn4acw7JzP04ONtrQ7S/t/\r\nPnIHJBQo2EMpOuKf0E0Boca6H3ZAX6jhXs/q5lhj6j+b+7esqM6uygHGdL5B\r\nu3Xy4SI+TdUnWIJ4M9+u0HQqTFqX+aqLlFVa+jSKACEkYibX84bxvmU8G/6S\r\na6WgIGV9tP0Fkg8qtgKfCoS1+8iolQT5Nr5R0l7voQ8rv/wuJ1lsC2BAgn8P\r\nqQNaZCMBhFlpI1KBbhKkEka8nKcYylHYe/Nv1HaDohh7/0+H0vgiU2XL8ONS\r\nVnjHNwztOewcy7QFazSzdX9638G9l7g2JXQs2RFIRI3tk4kint9617iG9jZg\r\n+nBzzLdJaUU+Ab8i8RS2sJ4KGUbgSGzqIjTbHlZc4ytAwYdsDRgFbaSrABKd\r\nLqd8oOC9MjU8I4oxIvSCoSZ8jYkpLPenKDiJy+yEUu/QgFY1s0oGAzdq9/8t\r\nrorhMCOgdJofl2NaNUsV/tzjzSaKHSfS7lx/ELjC7NhHxalh/T5696/Hk0d4\r\n3dZK2PBFQC0bJkl2ioPAbWETNvAc5Q0UiFU=\r\n=t3wg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-8-2022_1670459148138_0.5802091585464593"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-9-2022":{"name":"playwright","version":"1.29.0-alpha-dec-9-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-9-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.25-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.25<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"526bc3f2528468c1ad84286ec3597b67950aa67b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-9-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-SAfWVLh/d/eeLXE2huMH35UgXMfEOrDBLQsEdXR2zSgNDdSYE8swBcIyih0whmXoaoI8yc12Vrg+3EGf41IDSQ==","shasum":"600104a512fd6f3a9c8df0b5fea873fc13cebffb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-9-2022.tgz","fileCount":9,"unpackedSize":24301,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJagOdPJOpIqQTY3uZjXh3CQi7s8asi+yUZvKsfnnxuAiEAk0K7PakXZDl0WRcPbaHOYuDoNT6keDePw54bpsa14Ug="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkohiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrg3w//UMEhHwb3o6oRkprqIzUVetaQXm12+58elaACFzUIf3Fh3TNF\r\nQzOiHAcezNBHBn8zNVXT5O5Em5tBp3lxP9pf3KaK1JOLH8YOeSNLGfBZkk13\r\n27F6yb+NaGt6rLwlHbwZ33FBEu9MFv7SBt0AqSRVzb/up//C6dZGvl2N55kb\r\npomg0Wncj4JoROjYheo2e1UPhlCVAgZTo/HXc3btT+qWuivQEfvkSNJexlMh\r\nK0jrLLMjqxpl8Izg0l5vE4BzrGUD/3iI1Rf0P1gA4nXUiH9mYOdpzcE6y66N\r\nB+T4p3b0r3y7r1kHara/12lZh52wB/fAAnE4CluXfZhMltnFB4M8lJEVVdYl\r\nRD9lkFKS0vn6sY6sbwfMwhRbOgddGczPi/gi0qpsxFhGkmcClwYt1YxaAlrx\r\nXgl1rsmfPEUJ5UhQ7sZY6vfFVzgxraxyUpzca8GgDVc+FW634MUPU/D/ppag\r\nvxQnG/5AiI1Ba9I1TRZEjS/nYjrYkOMONWv+crSVpymfLLTNg02sCpd7hXHm\r\nC0ozTuCK9vdgiYhcdQs9e5WrWn9Nerl62S2UzrqdaN4UIbZeKs0SKrMyIvX+\r\nKJdzqrhHWCCb1/AH1Wp+Aq3aKRm/oBa/4Nw/zKigA7aZoSnr282LYt5qM1y1\r\nEzEJ7siYFZny+ahbWgbOVVqDoRFJC/RP634=\r\n=b3zo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-9-2022_1670547554548_0.2641696764050223"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-10-2022":{"name":"playwright","version":"1.29.0-alpha-dec-10-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-10-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.36-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3c17a2603a5105aaaec4b3c9bdadff4bc93ff4e8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-10-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-/1QHMR4QL6BvADXkNND6caAW9m9tqlpGwhBT4mHOqWrPkSbQhE+nSshmJFD0zzvWFAr0NYHjGCTUm+zS0aWMLQ==","shasum":"ee6c8e6a829924c5609ff0df00969e873a8f4cd9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-10-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbd5tZsDGaNmRTjxwGoDdh3y083MPn3w0eGJ9yE5A83AIgVb/vCYOgHPIRi5/5rvcj+dltj0GA78vbkothzqi3KVc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjk9HNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5URAAhFzKuM5nWpjfGH/ztbZ55ae6tmoYoq0Ah844i26wKc81eYi/\r\n5zwToq530YIt05P1M4/teypdUqPBqKmDuQpMURFyHCyX9sNG0mOMjq1cNX1l\r\nFwaDeelITNkuA0vHlO/vIANz74acLl23COYpUnaJetKNBrAPKcrv0klq7CEJ\r\nsIk5KfcqqBzUl/PyT18ccTx/aeMbX3lero7zYP54/BhHt1Y8KgAoegESnj/I\r\nkHh4itaCkQ935zpuD1w5V6UB348krmz3pUvhiFQauYbPRKVoZBY64BnHrHzY\r\ngUy0tdclT5okGL54sqNhmwKi6wmNCpdCJy8BrXVlFb9NYu5FCAb89HBPp40g\r\nfXsy55FF+000BfRX23c0NNw+18BWeGQD1exLvaqCXWEmTlmy/Y52NEeTmf82\r\nEwv61wQ7owNCBffDggCirfIvnvtURQhQ3ZflIjJkg/XpjO2RWO9zOOMtH+/y\r\nAeGftWBVosfkudwmpT1zbxB04x4Bm49793N9u18dJHMF6BubCIZcmLGIruXn\r\nMgG9sKq5oxM8paJRvCs/R6RKT2v4T79usTDXZs516iV4BZcEcaGHLnWvUltc\r\nyfXYrT38Q8UzbpIMglSOMHT/2nhFdKpDve5pK/CVPP0jvKrFtLt/cg8vo82F\r\nuK9RUv5/bhIdbHu9Rb4ivfrmwpTqvTznmYY=\r\n=I4RQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-10-2022_1670631884918_0.38795890911954345"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-11-2022":{"name":"playwright","version":"1.29.0-alpha-dec-11-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-11-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.36-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3c17a2603a5105aaaec4b3c9bdadff4bc93ff4e8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-11-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-l7ED6lB3WS4T8v7NJVvzbkt2To+pgH8tDVFrQgXWu0dBHvOvVsVnYV0TD8Jrxnjrf+I6uQsl9r2oFUabx5FxSA==","shasum":"9ef4256899b0da62504cb6004c57dc359faed401","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-11-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMjLJsCWMVBD3h8tndNd39TmUVTyJz4yWktrvtbmnH8wIgb4KgqhUB5zTYzeu1mQjkvY1wonk/bccS0qUuy1IqPQk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjlSSOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqx5A/9FOUw7njS1Mr4XgH7Somn6M9aJqDzWHlQ1qhJbhIV5WXk1EGA\r\nAF0YsG6M+o2N9PeWyJQK10WC2ohoMGtQTqw5mHQdTYjdWhmQfOWQhqmgb+zv\r\nLB38sSZXmVt1+EJAlIsjqkX2jwuUcGVe1hAFXMspX1ftrrHU1rpmFS/b4frh\r\nIDRsWKvlZgw1Ji0ItMsTZc1YiPYzkbKXjYdOR0holHtKCmRau5wdxZYLLivn\r\nkkUVvQE7RqWOmC1D/YhU9pAqZYyRD0PTYDPOUc9wT/Dgx2yZ4iXsDjk32BQq\r\nbm/4aVANqq1CxiQcHyJiWlRf2H/hHi1yoNf94gmhS20BwA2tsx4ZEkRnZDs6\r\nqn5LmEuBaNrqVfbuq0jUn8aWQjdrlfy69H1EdBkGF7/ohJpI4bRq/T5gTqmy\r\nr6NG2NgLYOMiJiEWVQaSaZbsDj3TYmeHRjveaEQctgRzMAt+cRlb5L03FkB6\r\nLQ0n0Hs2SodZB3QnVxNL4dR13hLv5i8BtYsv6N5aqQ7tTpa4QbAqCdlfB8Jm\r\nzIhEh1LSV+P23SnpAE2Bul/w6fNiClO/C34TovABJtx/6wCBN5U+FjxFQAJ+\r\n8Vk6LyClFw1mw8u/QBGc9MOwrmpMsvW4BWSMF1+UM2ZTtcjhO263XBLDpQLd\r\nyjuIWUdItIUWyP3hI8TalGeInqItURyk+kM=\r\n=/8K9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-11-2022_1670718606589_0.9766647086844167"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-12-2022":{"name":"playwright","version":"1.29.0-alpha-dec-12-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-12-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.36-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3c17a2603a5105aaaec4b3c9bdadff4bc93ff4e8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-12-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-gh3L/uHQoIM+0SgD8h5IhmSW0Z9dm60sROfrckLMry6qD6tW9pXsYt4eqWiyU8wSHhXFqnFrifd3lbS0KdHTtg==","shasum":"147228c8dd11f01b112acb04def203d8f05abec2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-12-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWVdhGQ3FoQihaEay8aUKl2gZRO7WbOpNn2rrW4vHSiAiEA2N4I38YNYjzA86u1KNQOfnFBKw9rak16cyWGY7V1PO0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjlnXKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyxA/+Lp3qRxHo7UXMz/bfHa1Ofo1WDGyqyHxWY/GY+Rq89Vg2phpZ\r\nTBDL3JeVCALCNfEw0WcZtlX+RcdcbqhWd0Td5YDrF0t50/UrPBAH8oBONYMo\r\n2/XbPalKamJDhoV6U/qguWqa270wKW0iUjQG63l4e1fIn5NqmyZVO2SIuUwK\r\n4YdtwI2ibFLP26NWDMaibILX9aAiD7cT1bjyCUTyIBKnMwIo3jCjve5bFB1Z\r\nWeX+8d/KFdCw2QJZrP5f0lRmC3EaLBrwGw/hbVO5AtDDJP5SaSS0hJbu8LaI\r\nBODq+yg04EsjESmE7HJxxiZALZccIn3rwvGW5vimXbWNwYlMJcZLMcd4hLxh\r\neLP828QzsqlXipDFgczOjQ0KW3C8y5Z0DlBgLENyuMvHDPThbJ1Xex6r4Ta8\r\ng1q14xCz+AAg8eGMSDzItWjYV6yvRF+hwnN2pI01RLAny1FPBsmstrfhwjbI\r\naAs4xl+YJmsZvB59fKmKxpXnxTwD1bneWo4Zxyk0YHaSBbqqXYy3icgNFigv\r\nnOd4kmTfP9c2zapuR9DwcmH+SHiYJdOUwVwXwiPi2Uw8SxH/2DQbzSrYWGSy\r\nBGdnjfl/ekZ/zwtRT5ozsL6+D6cDqxriLoTOSbnug/zOBha4wtWVCrbj0yia\r\nwIfD7fmWbZlNCquZjdXicD3HCuBrWk/uPqE=\r\n=lBH9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-12-2022_1670804938353_0.36115083787858326"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-13-2022":{"name":"playwright","version":"1.29.0-alpha-dec-13-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-13-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.36-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0cb1e97528ccd753abf12cfb922e1aba3a67edd8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-13-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-LNaO7HVNGtujmoc9fCFwbo1ZC+KsrHQeClr+/Oj8igCvWY2/EJK5CC/poTQDInwlZxcPjgs8uJnw7fG5hQKAXg==","shasum":"ea1914c16ed7655b122272059eff560e58cf4c5e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-13-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID3OGNNOLdG/0gYXO/iG6m9qgSQsTHKevuAbqWNblvMiAiBYVGfQaUzyFbw0M6/g4CwSvWEGoUpiGeBVk2Te1XZ9HA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjl8dZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFdg/+PDO5Hrr299QNztWdmWpTVPnozVX2aTF7L0MpOQfFEVOnMCNM\r\nNP0E0/pjv8NDwmNpQTmrGs+gUwclZZs43diz0aQKU/iLPegusiSu51DVapjr\r\n44zMGU3GbV1OBxTahcyYT958+f/nJP+kUOlyfOqJRcVCxDaZlJa8mBDtAHMm\r\nQZPg1T/pHNoFiEFRbpONlmAUNVBxActahNh4TI+2XBbET29YmGBnwP4TaMLd\r\n+VXdEdaKFwzUuZp/Sm7bKm/EwzDcB8b6a9QZ3lFa16TQqldXqw3rxz+UDQmV\r\nX84ahQriYQDB9Apkgb8g606piCMOiJFgtPh6twz5fdi9ISyNnSc6ZtxAPCNr\r\nH02svJir6yC66lgbQ5XY0ilAt+ZASInsBK2yzx7/YZ+IlEbclj1b7+1dzpPj\r\nVytQP/p1FYPO3rXVtTl0w+gA1xbxOV2R0q1pRfyQUql0utIwWPNsbbcNv+X0\r\nJ2JiKTLZ6u8pClRfGh/nns/ly1V/cIIKs54GCty5OKSGJxl+UxRVzeThpAgD\r\nWcZU931kB0YImVHkwakTjv4FnQ0XqiI9e64f/chZbHyyQZ+ihCmAB3fMtvaS\r\nkkwenqZ0rcD+Cs+eQ6DoUecTcOuO/IME92HQArOH8sY9lw+CFojMC68k/QDG\r\nkpwFfvHmfn8/DEIi0QnkgmRO25qEoc3z9Sg=\r\n=u0E6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-13-2022_1670891352899_0.013741343562502673"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-14-2022":{"name":"playwright","version":"1.29.0-alpha-dec-14-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-14-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.36-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"184ab5b49dfeeb75758f35d68791153c4d08be5f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-14-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ArWfLxWBhNw60eC8zy9OJkkpqPQp7+7DkIy/2m7N+DYkup7HQ0+BysIMaby45iPuk9eHObm17Is0atBmTdgCQw==","shasum":"93aa58a3cac70a52ad8e9723e898834d7e4474b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-14-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNGEUB0QSTqpxyul2+w7TEjI56PqQg7T/a7RyV5qqinwIgVyyLyO7pV1nLaKbtB47Ti/J2u7pvYbM08MRqWcLvlzU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmRw+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRPQ/9HfeAtBjThocRnl+5T8a59VeyC2mjhK4SKu1X0l59csL2bPs1\r\nHH/PvwLj4eBa4ugwhRXxhChMGUfpTK1aFWunRRk7psSrpPQUMaTuDDc8AHAi\r\nvDjsmGR8AnhBTpLKZLb2TLi8MYefE+fFdHl9S3xNffnmCpM95hmv5QNc/JoA\r\nUmQhuqz0z46jsBrDRV2XZWn9oG3bmBV/OVbq0G8+uy/GP1k7QGYVhVdFL9/M\r\nwVZ/hJJvaVyPLn41IFp4iPHXhAgIfHcd/JSbqzeuXqXEjXQY9vSGrWz0l7Vu\r\nS4EXdnhEGKte8ABsuqY5v7sTlVPQjEN9RGVc8W2/MggL+WcS/ClUfi1gJ247\r\nz7uNGi1xNZs/YBthq43UNrcnr0vVuyCZElBinsi1WAY/SMH4EWzPwKVqokpt\r\ns6wZ75+KUeXae0MaZ+g1L2sIZsRFYQJEkbqoEFee5e6ELpA9Zhqx3AtpdLN+\r\nLQ753zCCZM8cCZ5fc1gZ5Sm83VjB1AI8u6Gd08Fqku5LJ0E0AP07wvFclCcY\r\nG9Wc+4dd9GXPeoR56lIU1iNieJQcEqQzpZugy+5C7KDjyOy1PB27BHtE8rAW\r\ndt5YtjF/CARH6YvfyBZnffuRkEojgP/ZvH4D/YL6sYZt4m6Jlb5W96sqaHxi\r\nssxIJO8C7MNhzpdRfaf4XBXiz+4bHV3pzPs=\r\n=Xzp0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-14-2022_1670978622080_0.31252145263385733"},"_hasShrinkwrap":false},"1.29.0-alpha-dec-15-2022":{"name":"playwright","version":"1.29.0-alpha-dec-15-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-dec-15-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.36-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a1bb1dd94f12b252e6995898998594811f495772","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-dec-15-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-2X0kXplIUVAPnIBoZBDJq/Mue10QBvQ4vOhMBxeDPWMheR4kfDfZkv5wGSLlgAzq2e7p34OwiLKy+qVi6e+Buw==","shasum":"b56a998455dfed726aa4327de4a3fbd380873e3b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-dec-15-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVE7OfW14zyh4jh+j90t7c3fb64PZM6B6SaZXpZGlB7AiBF1XshWxUlW62YBzvjixfqSIKL90KayBn6tAmwS0RtKg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmm3HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpj6A//RgHMM4Acu8+CQHsdQkOzU7+9eUfx1Xe+fUUo3CiOf08KgA97\r\nHStZe/Iz3WNK7KxoCV4ED4Kj3swgFNVbzv1Ph6/F4hWKTmtoHqqD2XA5smuw\r\nRD8JrOEje7Y3ox98kPYvG1tKLZvhi1VfcUOx3+vO0L4GpzCXKTDb75+AuquJ\r\nIZrINjDQzTcUBd2FZP6LiQvdN0cbQZcwcdzz3utRZUhMZOdR3olSoVyFY5py\r\ncuyta7YBIdQbLqSeRWUYUMmxmP9l7B+4lXE+J66xkFB0E4bYWNZKf6rbfuDH\r\nXd8WCh+U8hyQbvy6OagJzYZTGXFtBCajd3VVLYpfUXuQtdrnPm72FW1wio73\r\nwLDz50hHOLpE3C/4toWXQHnUfXLz2PzUFeEHag91mWg3HTtNfqtsz8pOKMem\r\nQSTlWRD3Mk7v5JLiNm6UvPCSxEIyVs2U8ZbncqzNvf23nESF/NMt8QnT1AAd\r\nOuSMxshfLucBFAOKrYiYm4Lvl7A+wXw74dPAlDCKCDApX9poHLFcn5Ka0bsc\r\nPP9i2n9J+Ap2xnoenX8R6Q3RgvXsEL/Tv2XZxQh+J1fXQqUpTFCyY0OrjilJ\r\n3DGI9S4oobFzaBuEa1WBbqRtOTA5SJrnhO/5rTIMGK5j+eG8iUBOP0FLB32/\r\nIjYOAW1aDFWbJKU7G0XOIJ4lRbVWkaQW43Y=\r\n=g2wy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-dec-15-2022_1671065031603_0.9534180089505613"},"_hasShrinkwrap":false},"1.29.0-alpha-1671074593000":{"name":"playwright","version":"1.29.0-alpha-1671074593000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-alpha-1671074593000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.36-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.36<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0e2732decfb511a6d625f66deae2fac760c6d87e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-alpha-1671074593000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-xaouVoSTSIA1d9+a8dgXCkkkkCKIe0rEuWRjq+/LqBu0GXrgDS5VMyMWRIxTa/j3v9IHhEHdpAcBLMnBQaHV7g==","shasum":"29ec2d8cd1486852569ae1ddab2349587d2e4f25","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-alpha-1671074593000.tgz","fileCount":9,"unpackedSize":24307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTUWyxT/JFVlCLu8GmxFttwnv+MHcgbmP4h/tlqPkeCgIhAKlamxTxMrqa5p8pUjgxc5vU7YwLKV8/pRHvIzozS9yA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmpShACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEpQ//S7XlaPpEffxRqUvpEpl9b8In7LimBOWCytS/1yHQAHxnSM6X\r\nmQblB0S/g8TMpFZ7YcbO54DDNS8RFku1iMvAgY/vCf9+bork5Xl2yd8GM8Or\r\n/tWC7q21JAu7VfQ4Xc2eMOCuupmpRoYuwf4mGP9/D3alJL6mRxU0/o5zVkGy\r\nz7Ibitks+5X2Q5ASuyskYt6sN8g9Raqux7wVXua6/Q6aL09K38irqX8GGb/m\r\nBHujsFwSFVd3q6sn1LXzAJm4IBEV0qvqUmM7D8XyEbLQTX9a8qi+iWTaGNSr\r\nseVshuOGYYJJlxkjsE73QA5uoEtoqHntr+z6bVkPS/aUQ0knjn0a8xITesmP\r\nKspBeZ1ENL654LhBA9Jwmtk2AiPMxNwnwpUYW92v1rFx+HrhIygK3kae9ahd\r\n3KoaYjCPLohq+qtNItNksfrNKbZcd+ZlmVRA9tYFnc9B28786kygnSZWrHBM\r\n3h9gPMoNtyjRMboHSlGAfyQ75kyRCF+8W44CjXkfaR8Uzs9/2tDx4R+qtZ23\r\nDgPzPYQSwQ/eFN6yEW0zc2Q9PW20VNbEZI51f0XrH+VJZSqj+1UZBCosihz9\r\ntbMIfv6CwjhMhFg0DBlBcy1ERty/jwzEv+NRrjYCbmksWRVg3eKubNP/Pxp7\r\naNanklhCCulMVweCab+lrszMDTVt786B5Fc=\r\n=GF83\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-alpha-1671074593000_1671074977694_0.5555220818299458"},"_hasShrinkwrap":false},"1.29.0-beta-1671131879000":{"name":"playwright","version":"1.29.0-beta-1671131879000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671131879000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1263bc3edd400379e28dc6cbfe031f825df004f7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671131879000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-LNo3kEAGzm2dcvAGwM2P631tsa2cP7YhvwDzrVqMByo+7QKpkhYfNIxekYxoAoM4gvaXA+cSSb5l19L1wHxoCg==","shasum":"360e1e8383fde141b72deb60f4e54ae98f9b9327","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671131879000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGippM2Gp43x0S/IpMAqxZN4SHmcWVPdkwClNiyjYl6FAiEA1FQ+IV6P5UDpZKBjyPN5X03SFgq6KbsZcMAj1XHvdq8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjm30RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGHBAAo/zl+D3zYDECvDn5nMaux0FaCfRrb/Hmh+oZDy1WgihsLSuY\r\nlQdi3Xzx2jHLQdmBr/utMQXRVnlahd0Nx78Quy/cgSY4a2V5yVwqhI+2/tS2\r\n7GetGs36WLAxx7VLtWeX67hflrvbhhAoxoa5ma1FnrLbwEz7AuZGrJCzp5Kf\r\nqWG1pdQwZoYorfwQYw3o2QNbLaPJC/+W2eyq8mMuBbJYNKfjNUdftSXbn7Ms\r\nV4DyYVtC7sbJnZEOBZGXU/bIW1fkCnO7jFJTMHg1PIUFn0nIkSKLD0FeqjA+\r\n+8jgoIhjk23VYedbk8vUYPfygDrAkT2CrAAFoiXfQSL4I4htlksLFzVlF4pp\r\n3GJa993RBnj9FvXSoQnKvgL+TEZBtY1W1TSkL/rhtW0Kuv2wzIGz6NI9OAQe\r\njQZBo/xO7KVTgky3McG29Pzm3s4/ZNGBGZExKQQ/CuVxl3nUi6u/M8QMU6Wz\r\nx31dFN/renuDVU6YxBHep4ciLSr6kvpBAPQrqF1morSUjDpzm0yrdwIAOK3j\r\nJ3Rnq8A4ge7WscA1+vLJenI9nY8ar+3EYL1sPE7p1l1rNK+yQmv2vWoQnqAw\r\nuD8EXRSY4R+i1Dy6J8uc9jd8ivH1e7zW/clO147EpBGJCNg6CrPQ6Pno/YfJ\r\nfb3/vFDNE4YL8g+ICQp7QNpevu3Sos44PmQ=\r\n=NMKn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671131879000_1671134481161_0.9625341373663405"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-16-2022":{"name":"playwright","version":"1.30.0-alpha-dec-16-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-16-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3f333a8ef72c2a81ed63e15764863be51f22b333","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-16-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ZofGtNJfouJbSLRJcwbPwnOhhw7wO4o2IXTVUONVkh0b5EpHB5v8PGWVFVSAz84Uc6Mm/D5xAKKs0CICa6f9hg==","shasum":"a0ebd7afcdf2c6686ce7071f2e99bb1627d639fa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-16-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHNohktZesBLC82m/g9S4wKKBmxgJaPUMbTbQTCA5mYWAiBUW1cEIJ7rDryoJOjrm+lt32SiTbibUQTkeiIxbqo2WQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjm7tIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDtQ//QnrgDTvQ0uLpPlsYRFo7tPHhd7ZaxHJGmL5UtaehUW9Bm7lX\r\nwOmreVni4SXDUu1g7zBt4ju6pqkG+s/oE0tT/tiaWCFoSM2N+Ko6dAw+u6Xg\r\nRYhi5oo8ToM0Y13UWMpsfRh2TDJNim9WFyMDLlSqJUXZSPfpccy9IxcnLelK\r\nL0Adgm48gaxee46FxpoOGqjl7fssdCjJiLyGsfj21UAVHv+DzBH0oYCtKzAg\r\nUps0ZFkm8g7sjdXooi5rhZWCj1jIDBijICH6lKD/LbdptIHUo2ENhrvwRxQg\r\nB48PEgr2eJ3DZMfxNiSQ/yApAGtMmGnta1uWbUZGmm16+40rSPcWD2XB2tPm\r\nc3Q+Ig3ai6UKF6AGXqC+OCiukcP7GidxeLbl86MzIc0FFtyvwDt06mzO3UnS\r\nh9dgotsT7fJVAf0LeXREyUHyig1SSJAumJdUwm+EoJ/jUmb83HrmaaagYQ06\r\nWwS+FyWRSrI9Yi+lDF2vi4HEbqTo4E4h/K1lNuYPTegIiU5JGQel0Rsw6qi3\r\n0Gv7ovnY9nUx+C40A3G09qOfHF/x4ACury681uJTjmgPAJNPqV8msJyRJ6Zt\r\nS8xKDtRLHzgh/yEQQyAZq+07tWMItXNMFzgA3cPPvgN3R3UyQnY++M8VwgWr\r\nI+Dy7F+XCrsDbMm1NX8PymC8YxSzgaRZflA=\r\n=MlPn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-16-2022_1671150408559_0.038008052126913716"},"_hasShrinkwrap":false},"1.29.0-beta-1671211175000":{"name":"playwright","version":"1.29.0-beta-1671211175000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671211175000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8a9692e2c5107cdba4de3ceaa416446bc7a14858","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671211175000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-HLEE16Qwy+N4BfqzU8oo94pNLKfRzqQPvOiaf4Q6mpKhkbBs6nnoMtFRhlBzNxuXKsiWtL0Lb6isCuuX6z+bTg==","shasum":"694b683f9d78d9af2471bf8fd8b03ed08957401b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671211175000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQC2AOFp85D4GvpNlKLdcnmjWMaSEXwK4tLKCCpJ0pBwIgF3VwBDmPgIi5G3MXzOla4rfolpwXnHVynSpXpFcH7HA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnKl9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1IRAAiOB4ahREkuiiUUgqID0O7mJUGQrBCi+NOWnYGEEdpxblONRS\r\ntLCWA9PX7XfQgUumOWyeYEJ+16Hy7rO53BkYLH/MkbN/f5ZAtJmuanNzb382\r\n8whUQEZXZYq62veR5n/TjRlsckH1dRgQeOoaurQsAm6I1AA7AxBVe/kKYtjc\r\n0rokyMDs1Nnm0MonYniLP12Scejnn6mFm31Lo3zFjllIeP630kDCG82GyYLY\r\nFW2yrlH9q7sZyrd29R2RxiB7+llfGd4corXbVJx2HB24OeOJvxe/OVGKuVO6\r\nJqdruzgStk2sv1HDH2XsqRPSeW9FzLhMiuKdybcnr+qfS7X/oFpfYUzJOJuS\r\nKepk4A+jE/ImQdPdnf2cu/ICWO7JjbwODCmYCzJP5QMnpu00h3BZK+hcepKF\r\nGFjjuJUsQNSE3mlSKoi0UjrUryQtcmZsF+SYpKl1r1s8bLdAngXAtV3mk+Yq\r\n04q2EkUsdVtwATRac+8y/hibwXhmF8nlEFo4kRVct1u5sC6lCKUyc9kHAM1h\r\nG2DGlNO+Rxm7gb2ZI6JKj8gNj4143yeAaNy+y4cpWmC/2MpATtjkR2fop9Az\r\nHjFwqYTG51ggFqhk83LkHo1Khxw+Vq6CyWpZevawABEljwRsaDJjwKbhoyUe\r\ne3Femz+hz86x1Mxj1SVadd/SGGDWOeNKjqY=\r\n=ez1X\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671211175000_1671211389264_0.31479214755649987"},"_hasShrinkwrap":false},"1.29.0-beta-1671211191000":{"name":"playwright","version":"1.29.0-beta-1671211191000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671211191000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4b871153d07b66c8ad19ec1f0b72a8d575e10e8f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671211191000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-G5Gt8s3CzM6rbn5uX1XKQ01P/o8BQPNyw5Afk2tB1EnGvCxqr53sZZvviDTdcPEw9TOfzTMD5lawFFSvuUBJsg==","shasum":"292012dc9b25bda31027c6b0226c0e7b558c1caf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671211191000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIFSeE6DXsgIw7dAx0mdzd7y3fafSty+NI5qP7nSnwH4/Ah9hQYpU9ORmPNMpcxGn2r7xD957Bwbj0vJDHDzg4MEv"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnKr+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdrBAAhaBhhPN9vXZjjYg7qyK9qCJnL2I1ODidZwvSqrrBugU851Eo\r\nWG6I4/tOyBVGHxe7DedF1o8vvyNOcHc8nSn2q9/vzOsfqbxd4MtqSRgJH56I\r\nEbSe9LaAleNcLa7hqNq0J+7r+sYPXK9kabnC0ASL5X6SujBO8wr1xLrHXdAr\r\nf4aSm7sdkO/hRnLeQ/JpqMTGxTnROKdUq4kFl0HQ7o/6UzkXx8PPDFzP6rbw\r\nNeixMazHZJHxzOS2baGtshV8rzmS9DYvcMJH839y6v7/vUgKXYTNLktHjXZC\r\noaiPu5wvjCQBr8M+bz5XZAS09z9r19XbFWtLh/UQNOHPKwA2Nw6TVlvP+S4q\r\nuPHOf3+8qt5Ep4SEup7Er5WXfkZzCSHOfCZNRGpvvxpczqOQLJceVg2rZF71\r\nv7WgGVZuBUJRxyspyrp5EwSbwOLNhJq2e3uI7kwKSjBGCOrYqDAfToiKL6D3\r\nt/ySV42pmg4gKIDqJVQR8V2ywBOseK08OX74EUEWqX6II2EaZznOUhdMeUou\r\nbUKV34/5kNWRBnxMk45AnGikdlD0/l8F+CiG2LLLfkMciM+lvmgZSOx2FmVl\r\nLE7j3SQMAnF5bqqCJ7KWLx6wKFmmJwU7V+PB0rClWclOM8IVKobqsG7GOiBG\r\nK5cpLSMMyN617J90a3G+RQxQ6B7QffHOIAA=\r\n=fV25\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671211191000_1671211773786_0.9364652962183304"},"_hasShrinkwrap":false},"1.29.0-beta-1671212933000":{"name":"playwright","version":"1.29.0-beta-1671212933000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671212933000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a100191ec96fb3784b2cb451cba97a857134e09b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671212933000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-332hX/vYGpwhHS/WnziWWOINZRA/Uxk/QEk6oJ87/jmYHrno4sK1EInegkiksRzisHtJe2XGO09VQRL5bK+Ktg==","shasum":"669986d95f8c8fbc2a461ba988f38bc7614e270d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671212933000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGX/fUM48UMB5jgc3etz+fMXPhZIbuaxVaUiTH3Ko1mfAiEApxLlJpUlBQ/7u6zqN6w/JBqNnTQEBHRSg0ynkG1Ltc0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnLYEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5oQ//UzEk86wD5g2/zHen8+hrZestLju8L7Sm7vFg1AR+pZz1vMXH\r\ndVajLVxlzSZh/uEyO0rGa/TI8+YIWTukoDagOhzVvdvKSXBa9WsnBqj2ckpu\r\nR38+A3UYK47InlmgWRu3EI/qU2LUj9DLARHCsxY9rZQx8C2ou+biP3X0Of7I\r\nnSnb+qixAgaX08fB+yzuC9E5HXm9KEKb+f1PSCvaZwpL34D7NLhqMywJ1AjV\r\nPUsWj+mi80tRk1KOuR3By3r/Kgad956O9oownvHSi2aCV8ovjQbZ8RuWwSjp\r\n/WA4hRv1rBJLJowiiOD+UIZtiY8NRJhrvDl2vha22skqBy5Zdtev7uUSMjVc\r\nEwLsd+ua1Q2uqb5ORUU4LxVYQ7ovxcQpo1xAZ3X3PffAIWMYPuKdgK+Z7CsH\r\nr6ZsggSvhhMq5ZbxghFhtXK2zP8l+Wd9k/9ltOCLo9MzostpTocSxtJmDbI3\r\nWLpXieY5NC6zUJVmYAFp4JsY6n5sdHUoqMLnzWeJabPf/XYVOGqM4P+GMtW5\r\nACjnHoBI2Tb7f4Lc+12lOwlHub4F5aKDy80ZekesIod1X27M2P6o71TfvQic\r\nzzNfmOqlQ+99iScG5v4d7Lt8ACdKhDPYxdyPm8zbReTYxydQHnjJTymP0GJT\r\naamLu+ZNi8YcsyDGXBVsHl8XAulCebjGI0E=\r\n=9puW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671212933000_1671214596281_0.7070023176825546"},"_hasShrinkwrap":false},"1.29.0-beta-1671212996000":{"name":"playwright","version":"1.29.0-beta-1671212996000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671212996000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5c3be309df08214f244834933e542b5593ad29f8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671212996000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-uI2Gr1AUl7KOvY9igV16mY+GEP2U+KhIEmK5B3CMFPs+3LaC8zhNUlRWLxv4+iUxZj75blHhiP+HX68hUHpLkg==","shasum":"85d4137ea4e0121e3c49f5555e1301f637d54f5e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671212996000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDa4UpOG/pWjjMO9BGzJVVw1k6VKfYOihP8rv4SQ83K1AiEAq/u5aCqHCIwgMCf9g8CzWleWeQdf1AXW1G5RaA8memQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnLiOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqv7A//UkHXiii/3at1XqqSLWT+iqKc2yRykohDbFFkio+GrHsdfJWe\r\nFkV8McZCODxp2KC87VabRVnYv7zuF06xhpz/j9qoOfxxe0OxGoY85zBt9qdp\r\nUFvOQVlIwrhyQ9c0gwANIvKBKiu0mEqzyqXiUBEJxVoAzZYthB7mcWIdTPFX\r\n0ZDJwzOF2GimDcAq+xgwdG0V2s7MRKQhZjkHA39zGYC4G+I+vWl204wniI60\r\nvvtDs4gX3EXOv7LrXpB6PgrJyMz+W1qqcTGeX9ItN2Ar0wKj/0UTKLKpu3y9\r\nWAGL8oxhtJD7QhWMyaNjad/KQ7gc002//VOVsON50ZW3Nh1ukdfOLLbbxrzo\r\noX8f1rvCUe6DHGzcVocCJmFszWwcsVU7rPaisDqAep+mwr+F9v/RZC0aP0PB\r\nmH4oqxbm1ynMYpNlhuAC6/HQuVFRx1gSgtcfnzcBmtabUrQnGoCtQl23Lyl4\r\nHl3OOGHTqgWHkOJS4pzGtm4dElBU0iRlc/Tj2aP2li6Qdd9IYHuXYwTIMODI\r\nCulspyRglwIipAOR/T1i657SHOeoOZXEelgRkvbR1a6HjnUR7ww2B2/DLXKA\r\nqYeAt913Wl+H3O/qA+OlpP/NdZafhFqhSOaRdBhFnyMtEMuA6viCfjLGbg5K\r\n7v6Vq/hmOa1UpH3r7jfXsU4tM5+BdfCewn4=\r\n=GNB2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671212996000_1671215245949_0.0339046908127385"},"_hasShrinkwrap":false},"1.29.0-beta-1671214600000":{"name":"playwright","version":"1.29.0-beta-1671214600000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671214600000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0cf3ec2e6481f6ba45a0b7fb26e713f07fc96b6e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671214600000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-4N0J//FGglKvcsKoFZELtqkAA3/dwU5rkty+AmJnsSlgTxZytJFnW6sjM2m+d9fL9bH3uiJmHlA1NYN4kQ9Qfg==","shasum":"e6090358c9c45c18eb9b7946403ee9c165b38a5a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671214600000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXfhOHjYWLh3i3TnLrng6RrC/NIlOAU8ZZTwLGzH5ffAIgAmXftnE1O7SNrpr0HSMGSIB6RsExRHLDUliVLhPnwMY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnL10ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrF6A/+O2MPefyMC6YualLGzy6iNDHq6q0SpjFa/kU2gmtnbFU/y8Ue\r\n8v8Bm1d9mtVozjgjQEHEhexB8zeySU4YiT5IpaxLdsqKOPaz7R4eJmiiEHjg\r\nI5H7Qtk9dwaGgpXeiDijoe1m+AO2HFn1lUV7t9RQ7jjTvY3KUHq2du1aKyJb\r\npnkoxOW9z4NtPkIVFMaDogSw5VlQl4mKgfawiHHBKeXv2cHL9fKf9RYF9pg+\r\no/yA/cxSZLpsQ9OlKkNtTwxow/Umxn773BStqIt+r2BpnuLuR3yhvWludjKV\r\npgkxGzh3Okcrb0ICFcB645UOGbxxq17ZuIM3g4OFomkVYD4u+JvakAMIgMlU\r\niR7xB1nfyx7RUfEzNskfVPvooJzlbEAHsD+3lwVkiAxsNhruR9NnsM19MTVS\r\npdOowX0c54RbDGsu0eLyh+t/radk/jW+QtvIQ48g65tTn+ESQ3//Mr4ltUaL\r\nPCcZrD6F4+5j22D6LFHai6ymslVPgE5N/2uEOYpV7e7FR3dCuzn8PAeL+Rlh\r\n7CHMhhUvMLNw+w8ptwU9nBmYKIIJUkePu0+bJBwEmYyZ3MVxdLzRBWdbKUaj\r\nuRgy9p9Dxn4JPMv7I1LUEdlRJamA6V574pdeuE/084Qg6QLGQmVMweC8N5Fe\r\nZrBq1MVK1rbDX4edr6opEyiPsWx+7VfNrVU=\r\n=ur+S\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671214600000_1671216500435_0.034240348189503944"},"_hasShrinkwrap":false},"1.29.0-beta-1671218511000":{"name":"playwright","version":"1.29.0-beta-1671218511000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671218511000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"00895e36d42a5d2dc570780bed389c871fdea77a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671218511000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-j105m2E5QAq28pC09q6qdaqNhYjUKGzE/jZ8Yf9LGMy52tyhF7h6zi0l5b8wcKe6T+jaZE4ZCjiEO56W+dXkNQ==","shasum":"53b362b8bb9346f90a73001bd9a67bcc5c66aec3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671218511000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkRA+33ZwdpWR74ssoIp7zhMZXW+TQA9j44p6Fa3iaogIgShugSnsgchgBRClbnZC59ad2CAk1u9vor2uS9hlo22Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnMpqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmodlg//S6RZvQaSk2OYhiJkGZPDOUOP+XduwTKUJ/MWxUnNj9kZBhfQ\r\nHCEX8xyE6y7uH8OhmRpVo4HrOp7Y+lI/UT5qzoeAnnglnshU8lTTtWrDRzGl\r\n1lZI9j4kI0/xLZEgJtvltwG7F2s/X39bvv8V12OPciipWtW+/fMKkKp+vz/M\r\nmMQyfNabxJBIZk0KtFdfcXwSM5WfFpAgpq0Ge/Y36nOz/NJ6Kpvq2E2kTF4D\r\nDU5oA5BxVAuGdQKT6MwP0BimibNLAZhZjF/aDzXhUVsd6bCdsrL59ZY2JACI\r\nV7nbxj1ywp7bE8DlsI8rDtd8nZ97JpYrQ8ttSCUi8Ja4oYhyqYYT+nKAyPYW\r\n52B/6fCBFBNVWvUy+hUNeiqdvxc96Jbz2iY4ystXahT2TlqMNgU6KWMsLB7W\r\nnjBENT4yL1BREhGurvXXpV4YhJ+EdTbKSW2xCLF9fxoN8yGSarVVObTNMHLu\r\nj0FNy5LuH35izvODjA0XpyFk2g+dHIck//t2sgv+rIUQ3Y8AbH6K0m27Jn/D\r\n9FuT068WyxaEMAWUvpGyiebMCIx8R6S2BITXuHJNTNoSwrxrNuyDOgHnGscM\r\nelaMWkLt61gL4C1sakYxFCWY6xg8pde9jsg4jsOnrQZ+9nMSXK3enzRRm76+\r\nmDoPDYDmP9l5CXiQzeH9rhemaGnchDOK5Ng=\r\n=tDHg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671218511000_1671219817968_0.17442359340827585"},"_hasShrinkwrap":false},"1.29.0":{"name":"playwright","version":"1.29.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0"},"types":"./index.d.ts","gitHead":"00895e36d42a5d2dc570780bed389c871fdea77a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-vtXgX3FPNcAJq1QoIVCvmiHHKOLVTZkSYEo60n+EnX5MrNznAJzGquxT8c2sv+BG3CDyLeKm351e491HnF7yjw==","shasum":"14b70f373a7d433b9e304ee1666cb70e93336364","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0.tgz","fileCount":9,"unpackedSize":24267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaIbOsWsv2uunO/7Po/zk87X9nxju6MfEqUri8p1OQnAiArHbBPwRoHvhjCefZeHL1GXxmZZH+Az+0/FrkSZD+sTg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnPbeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+Tw//dZWbXTpNcu5dPL1TJ8++qVmc+ZsN2k6QY43t3hVvSIjivjtC\r\ny6NLYwi89z1vmXD0/2WBa9Xca7KdJ03zB76SjRDcIYr3F8wtLMXx6pOLZ9AN\r\nhxcjaGdema2TIqNigJAmMHn8z6Yr/lU2dS74Z48UGoTr3l+48Siw2leyO9wE\r\nNiXQOz/393OYaiynUoIZkTWc0PTO5hXAqFfMMysG8FAwiFC7CyIZL25YfyIc\r\nl39WbpJBU9bgF0MofU2aF0TOXRA1BmQLs7PgOiYpiG1EDp5nmWcDo6f2GAzo\r\nKk7ZXch5HtzTC2WSvQhdJxYiziPq2aYMBc6RioqHXdwGIqdorUyK8mA2LMsT\r\nJACWvGjiolxL5P3O36dGPKt5N0t5uqIRXJlZkyzYQIPd6YSduZ+E6zd+ZFhB\r\n6lSlsZMjBNMN2O9Mzc9DpKZ1ycSEKEe1GvRwt5wfokSJtGeFv/nD7w4dVZYE\r\nBUkXIr0ZhEUUx2kpQG7kArigPg5pEWAmJH2H1TgsXCkEs47PaWk98qQD7y5e\r\nGYv5C8Mo0qPsZEsUuWpyEHM5SQnr4lEq8PakALtmczYTUX3gavD/jEq8dQAq\r\nwJNKUJ33Djv583ebPplT7wL2aK7f95GeLzEaq9SCtQF0myEB1UZmmBjaHJMl\r\nX4jic/tpJvtgQASL6wP7u0P+3czMkEJlsWU=\r\n=pOFY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0_1671231198581_0.3144703833800193"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-17-2022":{"name":"playwright","version":"1.30.0-alpha-dec-17-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-17-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b5f908d31f821a7462cf6caa92a2a85e9602a25b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-17-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-oqcWzQcH0o6haQFYlfS5O6LqmG8RgNYy/29t2X0QiZmPy2lZoIA53OF/Jz/xgHT6o9qdaNoMv6Qh4fJnQKLKpg==","shasum":"d9d71dcd20b5fb2137dbbd527f145eb76bd458e8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-17-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLcc+mdPamg8dO4lGjvb3cjSktABlvCQxJNkq0i0CLGQIhAJvPfJqHq9QNm4l61hV11e04kti+B/mLP3svAuHdEEOw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnRGzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0zw/+IkPeuFTTa2GivBUUiMoF46G3h2kKHzhe8A+giUlubQECiug+\r\nzA3vONHaw0Pu9HfTHn93qGdrOG9Pxq1xcuhV4IZyZD6wNU6IkImU4UnI0Tvf\r\nPK0nkfuixt5YOL1zRqhBhcUTBBAuT35yYV+bRdR93w1kKEoCbslxcN46LM67\r\n8Vr8yAMA2vw3yT2CZL2aVAkuPMznPXu/D8ukmo7EGmg1G+AazjyGn1DgTr9Z\r\nIjr1blq4Yawde/SB7zPHVoFsb7pPt5gDhCsMKfIcz4UN2gJcenyq8gHfCYAy\r\n23d5BgCWVkLvgQ1gXsrmMme8kyS4ONiDXyZrLlGv5knk6qxphFBRCtH3sJHf\r\nUFyGcbjmf8NKeId7sCaBRMKNUsJiybntHKYNokvNKtlYazXJZrxR9QdSOE5u\r\niJbWz5wpVROxMuDsZeY9c5ZtG8c5I8H6x36iyhs+0SIXPMxHyG50H8Ku3zqK\r\nVx8xiXZvqOtnNn1E28gk8iziHmH9h6GP8SXdiRdS0kpWjLqRwC/Kf4rXZFc9\r\ncHIu2UC29ZOlZSRFju+tyBvxI6Z4JF1eVlx3iH/IdTbM+cJDMb3itmdKfG8t\r\n0zhjORMYOOgACqbRaahB1TBfnKywLhtIzG6LJEVCR6j/g/z8QKGhORh6iMnf\r\n8soT2TTkwk4MLDicPAE/3cL7kdXHc6Lhwmc=\r\n=iRHA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-17-2022_1671238066843_0.41359588792546886"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-18-2022":{"name":"playwright","version":"1.30.0-alpha-dec-18-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-18-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b5f908d31f821a7462cf6caa92a2a85e9602a25b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-18-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-0wQwZzjWNfd1n8ydHxe7+wZ/khzeZOl3sZ2B8gT5fy9qJmZ/x9QHZ/BE/gKFOkCQDEHT8Yy3Bc0oaAE6yxeU9Q==","shasum":"624e3d965720ac0698726b7b2c9c191e8812020f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-18-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7tF8eFcuCwG1LV+XuYJsfnXALLN3GBBtWPoeMIRAEyQIhAJCvv4PLXfRlLEZgJ/fG6Dx7M5kmwyvvmf4Esav9sKqg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnl4BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoA1RAAoJcMmY6vylJRrOr+z36sYVx5+M4jdI29MBvo3TgoLgBmVF/h\r\nwYj8nOEKOuVLfOrH1XFQNIWVrsqRM1DVn2Kd6ODgKDYe6P47uZXkUfMJLG8q\r\ngcX1McBZV7NScySXLqbzgZ8wrTIn0BbC8N7CAfzuDRwgpx44grBzkDJVyT1N\r\nRaPiHAxXE16UXiuzRauwj8Xl5oxKRGDY9gmTT6jLLAy8zG+6n9djZWOrfI59\r\ne5W2CdbHODt/ddyWVvpjaTgH3tgB6BlGRZSCOPRsZIIdYQ+R8Ain7FRwYj2b\r\nPU6+cCZRWmWnUuVinZPgZVSNWgFhzefk3RRbOXr4kbjkQa9mHSC7Ml1F879V\r\n47lRMdVmczChnjE6280loj27F4NRZz3QEskT7lDnXGpRNMB79CBOZG+oYXQP\r\nxp2TtvJaiTJh3qwAQU9a0GEyy4OeEhgr7pke3bZ6VD4GQSMmRMuwfX/S+rRT\r\nbMIwe/EFHl1+aTtHYAWZi5H0e31EC4o/qk+bYk7TQH0Domu5U2RMPXmcf+8+\r\nC40RC6jCB4/KBMvVcceIXSbdj8wwQsHvxQUMjT6wmUVbX4/C8tmAOhHm/dJr\r\nAPYCWkLdf87tyVAsjFnJ/SZeInHbRJAXcR6pVDu4HRSG1FvjjTLj1b7uaykL\r\nI0Iv1658J/SlpjQS/XXLI/0suPBuhUjG23A=\r\n=9DvF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-18-2022_1671323137681_0.6247925480983461"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-19-2022":{"name":"playwright","version":"1.30.0-alpha-dec-19-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-19-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b5f908d31f821a7462cf6caa92a2a85e9602a25b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-19-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Tt7cs6TJ3RjbZZK5PYTB7wJVOW7wh0zS4hqLr2ANnzRXjNoIiKeKvHHExTttpyAhz6ch0eGRaMwbKPmHZCmEmg==","shasum":"ac324c21a5c070b312f39b791420c11cf21c5dc4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-19-2022.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqzLDCr968K3n+oUOAnxh6UbdPsQ4Gs3gTNXJ72/wOXwIhAMdkyso2CGu9WNGnquQwDvadSJq3MMuqwp+QwMXHztP/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjn68TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryFxAAl3UuWq4/pdvOjOOn0LMI4BiQbVdYh2OIu74Sxn3ncKmeh6Th\r\nvmkeRUWvSc7pY38zKcJbY2giit+4VFDGpNUcJtsN1Ckk1DilG7GmydJkNa2e\r\nesbjXqZB56N/L56juGu+nZLzxSADl+/BMlP967uj3rWLfLfDsN7Y3YWtw/Je\r\nmd/uH2WN5+I42Ihui4EJNP3+gpY+ngMRQ0J6QomWEqyR6gjFN0OedeMkK8J0\r\n1bPmGbP94wVwiIJNg7Nb8MWaN1qQKSb2ZSb1Zr2HA2SzQw++ZzIGWW+OePbQ\r\nQDw+OLxQoiU/7hZgz7ZMng2ontjZP3+wzb+eJqvF9STyszsg8p8RR1uCWWmR\r\nOCu7IfS2zVYSLiTrixQKOs0tcDHIl8765so4Jsbj+n9btlR45afgx4jYsJkm\r\nx/+9Gmm9B1sTruMZnYtQWqbQekiiQcV6xcmVdeuAbuMa6EFcVpxs3i1xdzZq\r\njkjJJeYpLKK9BuopN6YZH+oGXQlNnKfzhLGt7cEh14v0r7F2AZkgMFzFtH7C\r\nNDo7/7O1zMqnXllEgeEbBuIm5+r+jrhff4aE8o91nYwXUUyW7Af3DUwyoKxm\r\nkdddDepxf2zqX5pjai9TBB9y1JNY5+8RJV5R6GmIeV7WbRQU7lpfdiDUBD8o\r\nGt1Re9ZjKm9h2WGUX55ovIi+zFZ2Ww8roG8=\r\n=LGhV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-19-2022_1671409427044_0.18490831691996457"},"_hasShrinkwrap":false},"1.29.0-beta-1671488624000":{"name":"playwright","version":"1.29.0-beta-1671488624000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671488624000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"efa3756c1620502d715a4595b91e8e41ad6a320f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671488624000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-67xDWO68TsccEWNILQdVKmq4Tfia5vEcoleO3UMV2OP9DNRt4reUFkJdcpbjfXGZZ2JvgcW4AjWOYlM0jtRnwQ==","shasum":"e1abc8831ce3b637b0b1056fac85ddec1675b893","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671488624000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyOngMFmE2QfIaQd9Jkc0iaoFpoNp9m192/0D7iN64TgIgXpzg0E9kT6PHBpV5A+7Ly8TVeuPQSVL9D7jr1SW7Cxw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoOUrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7jQ/7BvCS+Yl1YM3JYLZ3DhEzr9/PHG76fwZnJfrfHEho0phS0uZk\r\n5f66nJpQkDPoEX05TwkIhiXmKXb/CwhU/GhlJ6BwsR5FGMyM+pakgg0zpIDn\r\nb8rFaoRUoZwlMyd6K4di+x30nt8t6S+i7VzRlKmu+ENoaISOhnZbEhg2uP4A\r\n7nC5qNs8ibSuxe3kOY7YXCvM+0Zzp/yfZwU6qNFKSr3Tz2RIE3aASk+1rTKO\r\nh+RqiIBxV2GrLL45RIr5hxkGAkquaZ74ODqK+7MvPVHcUL9ZLy84vqdCDsaN\r\ndRvFVMPfP0TMdDFV8gDfJoAdyJRlikEAaXHKzaCSJwQqDn7MQQnkt4P6hslK\r\nuLEm59oYnyUj5UpXEwr+O5stoYWX55edVewYFiMYEr4ahD1UsAcPfJ6LwSA6\r\nEWtT2vjyf+A/WrR9ci5F5P2ybe21pMKN15Lt2tt3cSV6tTd+zFMgfo/meeIW\r\nlUEU1s4ocyf0hWKtZlcELJHXPzOgKO2io9GjW+DnpNIiJ6vj9rUV7Uf5+iyA\r\nGdRjx64/NBwtOXsuQhM8m5LKq5kDW+PK/8yn5iou+b8g7pYgvJjfW3mjEjoo\r\nMCA/1DslXdRwjIrJcRPZsUT8i0OX+FrAX2Idzy8fdvyfX1QSUS54WNReOu4d\r\n4oEW9bG6AGgRmm1wxOEuz1Wk+HRQd9e4n0Q=\r\n=VMNS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671488624000_1671488811168_0.3941152173552067"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-20-2022":{"name":"playwright","version":"1.30.0-alpha-dec-20-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-20-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"412c11db208da0543137ac781e775578a72eaece","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-20-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-/hjJ2+kYT1SwuLZ4MdO8TA/vb21177G9loIZXvvVvfEuRgpUq6bcub9V1JkGeghrZO13Cze46z154wIZ+NYSjw==","shasum":"8d1922d2aff3989c08ad3469a500565320ad087e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-20-2022.tgz","fileCount":9,"unpackedSize":24291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgnaxoIgL6rcXE3aAsm39gNTzjAUUR2cV5MKbz6xR6ywIhAKo34QDjKkDIkqeQaFtSUssGeWF1mTLa5kksh1Dex8Dd"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoQejACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWBBAAjSLGORdAKP6XO7gIdTrDEIbvbkMOzVAtDyXApHXs4WF9XWTQ\r\nf4a881NthWMHVBUQ0TchA5N7RxyrF0kU0nR/HzyZXQP/DLzqT0bsNv7Iw0MG\r\n1YII8EQfwwlf7LjfOpyn7EqjDg4rcHoJNU/BCuSFvQfVI5Q/5/FFH4QNQQvq\r\n4H9Xbe6V3yU0k+rWuYen6CNURLppIY4wP5loLw7bPQvcG6gw9ci6XgS6Zd5b\r\n9qpaGjhaTv21WQ/RRbf1Sh2AdOwzliiZXFOsXRm+d/eRr5OkoBLdr6pOVnUQ\r\ns8/L8rLoWYQkdiHhb9597MfintH6K7vs0L1uzghcNfN7MxSq95fH1toFyzXB\r\nFLBNruCpwp9Y26sJz56Mq1HoeY3QVZxeJreDdlRrgQlW82Wzcu7/FnrehYMo\r\nT1DqSpVE2O7Zp7bx2WuO+3pOK3LwxRIqJPHrFS0HkDdxYl9ALeOlrFQpbSCf\r\nv3Yz6v1DPOJKia41F9Cn03sGO/4QiwPW3Sce2k8084ARsWnjTaJPqn9bulH9\r\nHFgCbYVCZjPYZiNzBMoqu/N0Q3PDc3TQRsFFZwbYZeiGOgU7pWpOVuq3oSme\r\nTSpGXZcdowlDMs5VZGYODCm5/1WjeLoebDxCFOBrgus8t9BOI+PJ+IDR9Q6i\r\nL6B9pdRULgnNyHX7SbWrkzdqIKaAiefN+YM=\r\n=hyJb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-20-2022_1671497635028_0.5131416303052116"},"_hasShrinkwrap":false},"1.29.0-beta-1671554636000":{"name":"playwright","version":"1.29.0-beta-1671554636000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671554636000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d10cc91cf6a4bc8f633ea33a44d7c683a95083eb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671554636000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-zxUNt82jbWSaK5qkDDBTIGlCGGf91M+wDoayknk3EDrGA+/SSYdE6pdCoBASK9jZbC1IaDVZfemvAqytHhDgoA==","shasum":"f4cbb22c44d37224182b1047b1d20cd58e46424d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671554636000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIADDLzoCH0eCZrEaE7aVfDMMi6vtgjgsiO4hpeOF1gbpAiAm53qm5z75f9m2O8NkBMAhtZCjM7ykJnBuF6nCH0NGKw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoecFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrd5g//WEqb2EU1s94oNJSbXvbMetFh1vUo6OxDs96awKgGZhWXZgUW\r\nBm/bcs7fsO5XyJ4nWWGIgLOyB0TjAZtswaCF/b6ywnRhtyaHqlsDJivigegS\r\nEcWY7jYL8ewoN/7ZMH6G2i6S0pvlCacUxisYAjxF1xtm7/ayEiHSX/Uo41Mn\r\nJQFC9eJkjXD5TufzkjQ8D17XcKQIBLtvzs/Ociuhso9dGSZfGS/cnhL3nF0z\r\nI2ORgz86Vx/rGmoW7Vzd4MYNSwH83/mzvRlsj0Oo8vtK0PQeEGBghp/Bh37+\r\ncFy8ey6Cm1kmR8Rik3Ohf/m36pVB5/Zfxrh7bicU19YN4/NQsH6qrXjCxvm6\r\ngs5+NcQxh12BPABb633h/xvBIurRiO0zFYJ8dkTBCb6RjjbkhlOJB3xvodXt\r\nKNdNPNHEr0GP3ljcnDGxJJXSZtPsVndsaoVdtDGOJA+p0/e/XTkqbm8dp9/E\r\nA7BvTnv0FPHSbUHKP72PNg/m7lJz66ajG91UV0TFpiHvp/WbScKJTk4Vbk8p\r\npJDB2D8RXQ4eqPPnEfh6OXcEPyQdXKbFvaFL/Q+57Z/q8pfGT/lPzGwlv1kv\r\nrrjvB2r7ASjtL3oKJjB58IvLj0aOcTrfO7JqUsSmq/0lbV+TPoyHn8P2u57g\r\nwf3aTAlFUZsYnoTpp8l1sSQv7BtWP7hX8IQ=\r\n=rHUw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671554636000_1671554821585_0.5613503128003403"},"_hasShrinkwrap":false},"1.29.0-beta-1671562759000":{"name":"playwright","version":"1.29.0-beta-1671562759000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671562759000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e78bd2436c44fa80931ff946c2177c4387e6e495","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671562759000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-3BzseKpWJ9qgPQcSMOpfYQegS/wU05Mg9/wCI6NF3cQjmQx/1rq6MS8CBx82HKrrYOim28F2oh+w2gq5j0PLHw==","shasum":"97357663c0eff5d8426165ec5ec948c1db81899b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671562759000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFhJjZLZ3rojsJ7zKp5G/EtD2KoxlO6YGRkCuTa64L4QIgSuN/B/tkhh0Jq+40Z61WPWsIFNp0qjqE8gi3r9yhO+c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjogbMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrn9Q//YoY0AauJNxC5+KBUj+B4Cpf53bqNb8AXCfnWNPEl7iXW/1TL\r\nF5Gbc+er5Vh6YoK9xnBdaU+9kcBqww3ehaUJtmpDwRWsxl0PHsAE19ENG0LL\r\nsYqSVRnezdOVUpB3Es1tMjVLD/UTQ56qv3FDfd/YHvLC/Q6sfawtOWLHJTNO\r\nrKkxkQ7aaVE3tKG7jhODdBc8rtMzSuQdtUF2zV+Ses0xRPcNS3IwqBjGCodA\r\n7Ffgje50O/8Hiy1V8dJC4Sdu0X0J81VT5VJc6MSBafNix0bZWzV6ENWFcFBL\r\n1kjz0ED12/3pQtT1aijt3BA/4fOpwTxILnRJT2PYXGsfNdYPkIGBenZ2wN5k\r\nz5GxjXWdmMFPeR1zGULeYwUy+WvBAe6pEPg5ZY6e/xyOpSpnWnxRzfX/jSMR\r\nHY7K0DxgkAsxMCqQ/RUDmcy60J1Z7eJnvLfv+QZPDRd8ylg6nudXttyQb627\r\nGgSBHQupnhZ0Q+m8e5Z0YKizi1+Wg983SLBXGPmAGbmVxi57mDjwD7aSuEqd\r\nCNd8toaspKDeTjgi4L4Bb2XCrDMae9cvQImAwV3hMH9voKXE53nCrYLq1XVa\r\nngtemiAaP0H8wnAWqmC1TmZjFuLiruCV22iBDJcboX/S3+7FtA8EqOA4eRXB\r\n4IzGfyNOmMFKjxuvoI08mx8sNAH4Kscq9k0=\r\n=UTh0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671562759000_1671562955879_0.5753644634861064"},"_hasShrinkwrap":false},"1.29.0-beta-1671569558000":{"name":"playwright","version":"1.29.0-beta-1671569558000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671569558000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0237b7b74258e7ddf6db24772131e9ce94fd5def","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671569558000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ycTH5jYw1sRO0XrTXhbrDtbr/gGd7ohBh+RSR6NVYbCkdF3uxsrQ78lhtrBnK/0ZWi15ZD4Spnh8ePCmdIsi6A==","shasum":"97a93d293ffbda4c5a988ec3071acf7ce34827b3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671569558000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDthLJzXNemukUmEIWuNeR6HREsUxiyVbiNvqTn8P9imQIgTGIsh4iUoM1eki5AkqhFPat7eZImVKzKj20aS/t7OTc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoiE2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjFw/9GvRw9o5ons2y51VRazKkOZZMTbGKEh4nKzD3u8zFfvM2UMWM\r\ne9a87y+9qiDg4mDdOelVhZot5ZcZZg3s6oToorSMJfBA1TMz6XTfvwFbeKCa\r\nHl32nE4oMFpntAU24exHhX0bJ/wrs49bRm81zAGOLZePW8C+uGgVkITt+GhJ\r\nc07PRvZmWGDnO/R8kbnGFPSM2oWwHFuD7bP7EoYAW+k4JeBVmZ9HHTSIgl0C\r\nEOAMMePaSOVdURdDk4bHqb9XlKnle2HMkHMZZYWCboPW/MWOEIjSXuI+RHnX\r\nP7YIzF+HTpuzxjPgQcuyr5z41yCRRqAOjdgAH5QqZj/Vr9oVoYtt1ZEqZcb4\r\nCh9OF0S7LRgBxXetkqZU42xEQGmzchpQuhA9Bgm0a2EaE98aXnAFoZibp9Vd\r\n+98b0g3qjiZz2yBhL0qHnewEQ80k1KijTuUZCnIl6zpNrXgrm5NUyserifTP\r\n7Zl8XJ2DsUMnQKvh9lP+8WQtTYa7nofa8EF1h3qd02LzmlH/E8C/SUA8eJ5a\r\nt8JlgfoKFyiFPnFSUSw7EmZi+L3OCrtBmO0JSw9mlmnaqw8UvcbCh2Xj/R8t\r\no5d8wtcnFrz9iK2KolmAO9GWao3cILmak5MpQtTTdue5baS9syueKaveMzAs\r\nP9v1n+m3BIRe1RkQYfR1Q2YFqhybxNZeaYc=\r\n=rvyu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671569558000_1671569718256_0.19166025948550147"},"_hasShrinkwrap":false},"1.29.0-beta-1671569601000":{"name":"playwright","version":"1.29.0-beta-1671569601000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671569601000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5c0e23d6aa2bb6664b82346c8e2d360a4447a203","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671569601000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-mEBPwb6jQnCNCGb3RFAmcskmQNk2wjoDsx6dl967PfWBqiFR+BRLxpdJ9broxkmzkAhwOdMenyBh2ljGZvkFXg==","shasum":"1e1a839056bf5c35e4084cf0ed412fb25b6343c4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671569601000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClu8CGEs/5o6ZCr2Eu/drpHS+h2w67pIObonn7bJ6BugIhAJWlMk/5TPhkZ0M+2twfh7ZLg1Gn/BlyLTpTst/K+447"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoiFmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoa5hAAo2o1XM65Msyqd4MDhbiRPShc6S68UyIztcRWYu3x4BfS6KXT\r\nH+mNGWgBE60+AFVMS5hiHu5vNXHskmYFFhfOPhT8OTrTp3DtW5qIj0NScnBG\r\n+pXV/YwpqdvVEC/hGGguNSEs4BNy7GgtUiAQPfLVPxqr3IFP3F7PhDQRtZPs\r\n8POfKQgiKFjED3p/RljtLeDu/2fQWe+KfG0+e4TxsOAX/etcOScfZ/ZvnlEx\r\ntxwDUXROXkBi3FJaV/QVevgZNzJlbcdi3kgG5fkQU+/cOwtqKDlyjPRLxnE4\r\n9IIQEi5k8ilvLl0FSmzzwKPga13pI45XZcFmFhi1BvMFUpg1nzrSla/lZmNv\r\ntB7jUybyNalLql83KsKbIglShANcDin+bVlT58Gb3ixDTy8QLc2+oyv2/2hK\r\nxyjVT8jS/rrSUMmyKDRfZtrJmwDd1ammW/UKW5kFLS2M0SkhwTavkTXN7W6L\r\nKUm62qHpLcMXRtpqzH6m5zqODC5EDFWazecYZBMWUzdgsmlBC51G2mL19PnE\r\nn0Epjlp8Vwx6xIJNtob10It+GnA4PFA4+MjuFly2NDXGcNPtBLX+RGTx0FHD\r\nybmElW81J1oMPuaWUEoMN9UgkyjDOGHscRBsl4+r/Ab182B5RWwOcU485lB/\r\nGgYFGPyqFFtkXk0zUq4PgJIHfCuvPcLZuWw=\r\n=v6Na\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671569601000_1671569766256_0.20504567735358914"},"_hasShrinkwrap":false},"1.29.0-beta-1671569610000":{"name":"playwright","version":"1.29.0-beta-1671569610000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671569610000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ae7a8d2aa76d42f13fc7d140026c72a6044afadc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671569610000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-yd46h6Nim6EOvgRtrhD/dNKX5k3RdSwvK7a99howDfba6m5WzNC6ttrNBC4PMXKlmSyH8CHynm7hdHirUvUICw==","shasum":"efd44e1117d83e0c7f140b501bb60a1b09cf4bbf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671569610000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbEdWsIX9hBWztTD6pNprqbSVCuIPISSCoSTIOqKJW7AiBiOsTzmOwSw0c5HcoMchkTz56RSahzbr2oNNLYxiZSTw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoiMaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/8Q//Ya1NzaH5Qf9yT+1tgZm8xnpyNlmMxB5uru8mMx25FTlstY4H\r\n+hBT9JxY5VQNA+sVzQ6J3YP985X8mK2uljMGvtvMW98S8/5vWCJ0Az6kWauN\r\nRc4+E+IxMqurrIdJO8pZkFVkJ8aIy1PpYb9M6rAYIkKzH9uPRPZh9dFlflYV\r\nQGGytEUqVUhwxVVYbK9wr0oIxgoVWWfbPFfgvbLCq1Lc2wovIzxkRyZoY2hB\r\nuqYIJBHbWpxDbdenKIZoUh5SGuvhCUkbM6vqqi9bcT3NFsMc2Ai/Uu8qsUMa\r\n+AcYAHijJyBTGP86B2PNkTOQYpB60qOTR13M68tZ+7qXEcL+V0rrSzG9tvOU\r\nNS413J/KbkP113UsEBJygF70zAOoybqg7ls3g64os1LgV/JRTD4yHM1rmWKF\r\nm5gmFuIpL5rd8tQzXMXvygCeEaqSknbsurkWtdV7dsffAA+KU2ur1/s35u/U\r\n4yqJlqh1f1rxzGYu3HUBRZnneiSQWxjn9/uTxPTCWYIS1scnPRiFJlFbz7FI\r\nxCa92Whf8dvAd4yvUj/kZ23LVmIHYhuscc+x/8N5s1M220NnRI0zQBjgHlWO\r\nsqb4os23QBGJKCBxjxjnEshH/9Almgfgid2YMVwI+ZQqo7R/X/Jxz3/UmJVW\r\nwgbphPEfAwt9S8WnVkmwdOBc/DjGPvNcBjY=\r\n=eMtE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671569610000_1671570202245_0.8355507896060086"},"_hasShrinkwrap":false},"1.29.0-beta-1671570437000":{"name":"playwright","version":"1.29.0-beta-1671570437000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671570437000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"25c747d5efa8cff688169b896f32e1f5b3543022","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671570437000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-kJjYw0j2UHHurE54DUVflbLML/0u8uS84wpjS6UX9rSJU29xagOn6gKU+MRwhFQk8ijx83CyLpSYHvTXNaQ/5g==","shasum":"89c8ccc81ac2752501581a5dc175e8c6854d40db","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671570437000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCc4lp1iycldx0G/V4qPZnbssEPnfWJ5dUwxdU5Mxo6cgIhAKlvykC7xfm/bMHlBRFkFl38+e5Og6wen1O3lfNX2YU3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoiY0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrz9Q/+PvoSODUIs0SwDQvFnddxr90T3hNlhtH8Ujh+ORA8NgrKIAZn\r\n+U8DLkKFOywWEhDyYxLcEPfHwHJ2wKa5s+ldqDfcm5C89/tsapfmu39u9hy/\r\nH+MDSTpznU7i31u7zv90YoGYI4+iaq1+l/+7lfatjdyO+oMjMISgyFawzHcP\r\ng9F1KUK2nzkZXaf76cIyaOGtvB3YJWFbLX0ndOWIumsCa8D0H+rnTlAvHPlT\r\nRCMB1aUt4KClKaKtVGR39U+lk3lLKM5kOYTlIq3CcbJMLH1TxmIN3GeNObDM\r\n0FOkeqm6nXIIQ5M0yz0/bJ0iyfOdrufBn6VmNrUWq2B82NzcE7G3BuMSh5xr\r\nnP4+ENYbNM1W9gX1eiDhzA9CfPO2pZBo7K7hWDj+RTuJWkP9d/ZzuOfUYzuC\r\ncLPVR42IJDjrHtZeMe9bq/15p80ta6pmKhXTRHKNz6uzkCDQMwhOQC3YUrGl\r\nS6lvAriB9HCMnsy0qF5ySp+uHTXbXezzvUx2lDqWI+u0EFjvEiVUwxObeiDN\r\nraESji2AnkNzlsrzzF/QfWfHAntvYxbnZPezH6r5aW701n1JjucbUcmQwfJT\r\n1pooN4qU2oFqy5XPI91C5plbUL1Qa2EQVXNy4lgkCYVA0nnUe6lqNaronxIM\r\n1e383tV9+gO0TCFg+/p5GeySAG7bR6Xy16s=\r\n=WEnp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671570437000_1671570996194_0.5917827750207152"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-21-2022":{"name":"playwright","version":"1.30.0-alpha-dec-21-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-21-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"08443942701aefa959fcf928eb166dd1741e6fce","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-21-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5r0h0SnPokIF6kamPreOafMFqZtrrIDqk+vmTyBRkDuxETSCzbBcsSQivxgzmIjkPp26Z1wbJLYP3PfSVn8prg==","shasum":"f57dcd11cca069d75d89019ea2d7acbdb62a03be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-21-2022.tgz","fileCount":9,"unpackedSize":24291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFGCirFIYcYmAjNlCykzN3lhbN0V786tAVBmOnAuQeJHAiEAm/6hKMP/I2jf8lQ0LhE19qElOXhdbw1klvmAHQ5Thf8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjolJiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJHA//d9Nu8L8H0sgx5vCOIpdBXyd2LQrddlztLzr+qKQB3dIAGg1B\r\n6EofbWYMspTUAVu66YDLbYcuKZoCiGTPJAWrBHfVywiEuZ5rqkpgInpUqhHj\r\nC9imaPowm4cr2Ur9Dbo6HY2Fb6yxUTof4m8j5BMsLWSIzE4kms2IWzLcP/ZE\r\n8uTAib1gHKzD3T62uUBSbEfhRbkErKvXA6Dtng/tC5HjXltUoaLZzOWYBr9u\r\n/h3HGJ2oMmrvN+dBg/DNwXCSI7OUxrfQT/HEpa/+nediaY8gHoffBPi+Npy+\r\nnEaPnCCQJV0CH4wrX7sjKXWxkVXF83VhUqaPxWcz62guDkYITk1o8fKLgTxL\r\ncDWhBDc+Sm3MkbAU1rRCoHVsO+CupBYYDDkpBKM97XpsAIhJlmoag0YCNOLj\r\nigLA8Rt601VxHg9E7vg2fborKuRtsJaOKZUOlWI3P5Cv4Ntis7MgCHuT3Wml\r\ne6kaKRXWSpjZeWSwPWjb/Dr5OelX4gIzDMVXlomZWeALDn1xhCgnZQZgE3z5\r\nBV/J/fH/ZKImF7dmUQd6Gsu6mRclpeS4Uqy+WjHNpX0dJjWMMqggth1PQhJd\r\nTc7PzasOrbU4fCQrxHcrNVcTxiDvZ2oAr8z68Aekhs3tLpNasLWl1eDuuIqn\r\ndljDDfBonM2oY3WEQA3HvGYypsUn6ZxBq6M=\r\n=P+Cg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-21-2022_1671582305868_0.6385829955694315"},"_hasShrinkwrap":false},"1.29.0-beta-1671647126000":{"name":"playwright","version":"1.29.0-beta-1671647126000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671647126000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5d07c48e17a668fe128a13dc0c815f923102aff4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671647126000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-xy3wa0IZyWR3MO7/Cga9Ry/ZOC92pNG21ypFJLA8rGFN4BG8gpwLwVDbbtxVijsvGimGT9l34uq93O8NULWMJQ==","shasum":"4d650128e08ef4a81bf534cc5f06501ce8a372cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671647126000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS1XUNHh7p9iHblsmlAKamPH89i6J378DqaauqLaYITQIhAKKXMHitwyOYCVA97t0chfHUkBrSaSuclGA4pqf5sccN"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjo1AvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6Jw/+NOKzBaocPtnR+YhCoOP2RY8mMV3pb+f9FnRr9RbuKF/OF0vl\r\nyhMyTcTwUZLh+gWJAIL00XPSCHqWnJ++ei65OqREb8K2gapTxB+kBM0ziA7E\r\n4f4cUYwfiNKR4ctLkUv4xPXlLMZVxEJuVT/ygboifH9refOgEI4MOOQw1+7m\r\nI9+n0d5Z6xathZWWzk1Q7SflVQ+DlMeJbq4hoIF/LO4J+7ChFtdM0HrmKtGD\r\nv5wjdA/DXN6Tnk5exzacWXlQ5It4djWS0B+cLiWRRCFGpL1Vhc0X5t2jET3i\r\n80+1680CGs+FUpOa8C4v7PzFfZNzRsUO2KtEKbWUbJWU5Bdj4C+0Zrwia05N\r\n1VS9ZfEuhX1KUXgj2/mypbV2xMcsBecSknL4osp0LRkICjVKMgvPirifaELp\r\nOEYPd3ioHQA/isUbkwWD4aSKcgLi8kBeRRJQuDy5ya7THR/+hRirfURKqBIv\r\nHiBFlrnMU5B6aQyLViLC5L6ZpzCVOxbzgkTT6ul+8AHRIXz8Xykbz4XBiVu4\r\nJyTgraDhFJ7AXKPQJBSu0Ca4ccdTAB+CcR1MQJksDEY+uy3B5VDqXLxg5w8B\r\nxNtkDbkqTpqK5KaW8K+/+pfyJnhS9+bTWEtM8BVmWDZRmqtryZ1VRqdqS4jA\r\nlmUOOAISZEzXjMjiZVWSgb9Lshibmlbbhp4=\r\n=T8zL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671647126000_1671647279544_0.25852901281256635"},"_hasShrinkwrap":false},"1.29.0-beta-1671647145000":{"name":"playwright","version":"1.29.0-beta-1671647145000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671647145000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"db88d4ba0fa18bdcf873ea4fc34602d9c3d30ec9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671647145000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Ei628qAfK+XDGzQQwK5VZntJwnJzrfnSwztxVIzfFy5p4WSgH7n41IKX7N1+rtPdv058jRQi+86Tm2riMlciCw==","shasum":"716103e33b28b6e196aca9eafe955dce66051276","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671647145000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtIrq2Y10Z6g37J7WM+CDQPgrTXMLlyS/I/ZaTHFU2QAIgJj+5Bh1Kvn2Lfl7zR23YeRyv4BoPFjrn9uaJk6tEbO8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjo1G2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5vRAAgmR/0htjPgivnr7XAIPLTzB0SRqxKX2ishX9meT6R6Vcy3au\r\neahWwbTZynvtCHAnf7qtYZssA2rP4fCMju6YmG/NtT07D7SV4n4gEuJ21UAN\r\ncpIO6jgaKp3KhhbMlYVhhS7IFdlz0dkFPZbJvcxAvkRIxiRMPBkqDbNST5XR\r\nbrZCKhcwKjjIUuRwNNsvqaPFNnnGlFoRnNsV1bJNjSluiEXR6+goWePTBbYO\r\nOZcdTRMmLhRwwzFZf1P8o8FQL/GYrXpNEzqo5w9qJr6SfFWrCLY4Lbx25RvN\r\nBhn8uWkO9f3nfgOhFTPwkkZACDo7V6ecfkaxzNVHC3Xd66cKMxYUYr9p51yt\r\nrcR6BRl+1O6lyrwUDHnexXveLtiyz2h1j888EnJF9Q1cAjbPtyIksNWvbsM+\r\nMv6Qdb12b7mC+PAOR9TtiT9QBcpeybaSDDK4UELGeUE1HAfnwZOR09jT9zLq\r\nqFkfXdnzJd74dsFLZIYHXvjID0keLwqWE2e8fkd+Msad5z0tInDANjdN0lFy\r\nlBeSKfmQx8PNwd4rClOcR6PxwWVEDsF6esvAZG23buplEThnEjRNW4wCOUVg\r\n537/BBXeDWui8jhyj3YmWzinvK796Ob5GO/gK5kcFx58uue5mtBaUt1+Vl66\r\ntVUM7Z6897KRaxtf4maz1bHjR0/BYOcTYgU=\r\n=nVb3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671647145000_1671647670754_0.1493896386325837"},"_hasShrinkwrap":false},"1.29.0-beta-1671650070000":{"name":"playwright","version":"1.29.0-beta-1671650070000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.0-beta-1671650070000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f2916d4ced40359089a4cca2cc74a95a49a9802a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.0-beta-1671650070000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5AVToWwSrs0S3K3AOlKwY3ISzSKX2KV82AFsDi5ByLC74RKUuADc60bwGzo4w/fw7Eo6dbVaZJk7c0YrvYsVHA==","shasum":"510abea1755fe836df95761b1192a0f51779d482","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.0-beta-1671650070000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC2J6WtroITODNicvHbwBIl7erWAe4NbRrQFxcYrRjuQIgUwj0+J3D/rqX4n3zXh8GzEEfnzrkj6ad3drQ1PU24Xc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjo1vQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqx8Q/+L+S11YHZxwUFiXQ1MLjEkxMld2+G2C1ISNL2v71EA91cQfje\r\nM7qQt8CF/o8jLjJA28NSIh3JOjjzTrxWP7N/Sg51pn885CN03rFr27+pLqSF\r\nkpesX12b0WyQoHhn6vD8/91bzObAymvE9edvPALN52+3bs6YqkN6dFHVslOG\r\nw97c+nYR5Ejr2noQwc8pCDsf0PNkDmCfFP9ZNs00U4qK49G4ELE2CRWpDo3m\r\nY/OHyv3uXtHOoe4hAn8MJBzkaEhS0NGyUk+xX2LvlRFMS+gUr4xMuaHfPHsP\r\ngPSJNOqfdCkVmEhNGi7CQQfQ8Yuh0devDNJLwsPT2zrNVIr7zlnTE/oWwjae\r\nqGvGbBhvOlaSdJC2J11VKAR8lA3mkqAk3k3aDYOmzdNnBPG6LEF9Q3byb69/\r\nHvnnsJY93lCWUCRHJT6913gjF1w8gkJqh8ylXPk6NC9Li/vJXISsMvmZo0PZ\r\n6WAx7MhBxfTVJnpO06mo9exPSJUs3nae7Zd/Sh9sswfbRz1VMzASknC3u632\r\nth9IdYwgeCJvZbdoKB2N62/BcAZmYkkUKMq3Uz9e5O3tqlQYl0P0RMGnG2W+\r\netj2B0I8SyXvM60vtDX7OdhEWmhBn7uib7z872rEOTSNWUEtRiNSqLjLMX6G\r\nr+lcVXPHRjqwnInusU4/gHrkQDjADcL0goI=\r\n=0ufx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.0-beta-1671650070000_1671650256428_0.23830088068850586"},"_hasShrinkwrap":false},"1.29.1-beta-1671657572000":{"name":"playwright","version":"1.29.1-beta-1671657572000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.1-beta-1671657572000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0bdca2b913631d80a8b10c17b26b80208009e516","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.1-beta-1671657572000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-2t3PKt0pkhE6WbUAm0c31xLeFCMTm+Z1wsRTAKKmQb25W7ywcupiTyKro0PfvvVWy1FHbbp7MpDm8fW47nKC1A==","shasum":"3e066b0b7eea417168c2290190487e35674a0bdd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.1-beta-1671657572000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGzJKtZtl9ZvdsPnHm1/IKDZE9jq3eJzbumZY1+qy+qAiEA77AqbHmb2vrsrr4NUJUOgWpxPDA1QPCVTGy1l1YF7sQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjo3j6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtOw//X9P/kDIvdYg3VKudKsnWcHDk0P/PjMuFAEaNQBmCidrFN6Bx\r\nuEjkZNdvLI8bqgrAeJ/brNn40l8l5q61XYmevvQ9m0ArfTZklDeZ2Cu5Zoqp\r\n3GXHHMxTs8MCn/e0dmKCik80B6WkK+QTQZTfhjzkZJh32nfXvfWoN6RHL99j\r\n3eoGtF1DPHfXPhIb9O4uYKbUhXQd4biZ47VWeEQR7rzNm4DRpw2h0LAKYnfM\r\niK0f6OJyUI02FBzq3H6BiPN+dKmvhAD3Kpj4T+M8801SSS3QF2rwng7eo/NK\r\nV9YlG8wpZisXXpu/im9LBLOqCcBYJ8eR3KcC0ukkyGQQ+Dka27whrzLCroWG\r\nLlASGDdyNVh1JlvwVBNiXhwPCqwfWCGDo964NtYKTATRVkVmLtOgOmsyNlBE\r\nfgwKkjKQqrurow1Ls52RDzb9xHegquM7dn4BXFJ7V3rQzlY4VNC1UNinz3mq\r\nLUQOeISvcHO8h4JuQYu5Yp1y2Eia9vkqDq5iIGmjaijYgIIQKj5wavXw8wx4\r\nmPDHiDU+/6lzTrGm81bw8dEfOhvgHIesQHlwhjslBCAOPhJWTJ+QfRkvwq07\r\nOzm6B930ztL6asqeGQ7/nw1Oi7FldGLLBNOmgyAybthnlamQjM5pkDwTsbAa\r\n/GcCGWoB46MZSoA4hybBfWS1khNUvcorcpE=\r\n=e6iX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.1-beta-1671657572000_1671657722127_0.850372104258798"},"_hasShrinkwrap":false},"1.29.1":{"name":"playwright","version":"1.29.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.1"},"types":"./index.d.ts","gitHead":"0bdca2b913631d80a8b10c17b26b80208009e516","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.1","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-lasC+pMqsQ2uWhNurt3YK3xo0gWlMjslYUylKbHcqF/NTjwp9KStRGO7S6wwz2f52GcSnop8XUK/GymJjdzrxw==","shasum":"fc04b34f42e3bfc0edadb1c45ef9bffd53c21f70","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.1.tgz","fileCount":9,"unpackedSize":24267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZgQp8D5japqbRIs30XDUag4Fl2tgsGYcttgOk5dlXzAiEAszy7J8pwij9trHMvJAqbnZGKOB6H0UwnM10lOBfKJpg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjo4fQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoirQ//feNatxECEcfCOs0H642052f7PWL4Rn1TjxsJOy12kTbkR2/0\r\nGaiQLxrkk9c572kP+oQ9J8wFpB2D+cqRv6uK142nrEJyauFK42/Ct3F9Yxvn\r\nqTAP2NHEG6A/qMLyUgZ99ArCbvgTKXndK/Y3dBK3E7Ms5GQori7Y9IAF5XSh\r\n6x9kyx620Izsoxf0PPutaQOUcE8gsoFxP3THVoNZ4A7WsmF/GC5lKeom2TBC\r\n1mlDi3sTm7qCffLBbdxan5Gx8iaLO1PTSKLxY8Hf0j76BSMYQ2fDBHIU+amj\r\nuvVM24qrAHDrNDip0ZzN8FPFdx5ASA4TTgaKjQQ1yWIb62QQcdRUD44L7FeD\r\nW3dmHsDvXXY0oTiHmV9Uvspt+nAXsPTVRfb1QMVC3KLT5TKndHs2pIO/aVk4\r\np9VXYxZQIUSR/AG7uatKYYbzQqlFx7mL91B02Jios651F2jEgc1i6w/1+RbV\r\nNJCFPRmlF+UTz8ygDpKqttiTLPe2B9DKVYTtqewpG4mkyR6jjucJNZG14W95\r\n5Idh8Hsuuw4bEa25TEx0qYQfdBQSVmn+jx1bywCYDmB1hS406UmA6Whmw25k\r\njxjI6MYW7jCbCT1mgZAJ5jPhaPS3SMJ6ChQWExnRpplyfZrmV+oxJt3SW31H\r\ncBqmKigVxqQttcK+vqNUL2E099idkeMgwnI=\r\n=rszH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.1_1671661519991_0.6434081357520831"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-22-2022":{"name":"playwright","version":"1.30.0-alpha-dec-22-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-22-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e12cf190127f8a9d08ed7d639072345f3497c650","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-22-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-6hI8v/8yuTIYw9/s5ypQkP+c65nKKwXKKtdmklhcHUHloNxpwDGVhmk1Q31L62lE1qHT6tiTUMHkVnxe472S3g==","shasum":"55bb66d283c29f54894409bd3450922915a0e287","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-22-2022.tgz","fileCount":9,"unpackedSize":24291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoWgDBX8/3IgVt48iJ1+DNupSjxmoMotSI+uFTrWSVgAiA9ctjkisyD3WIvt+v6qswdLuX0l1UghiXMsZOR8dCb+A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjo6RJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZHA/+Py3qmWguAqzm5pZSFxYtFe3WYPdgSOu/HLSbsP94zQdzUvQj\r\nhbATCOVi5YjjuWcLz9UI78y0CSqkAwIrc+6BHrscIQIP6ffrflvk/qE+KVMP\r\nDO8CVHFbvfYYdvxvVSK/SxTnH62M7eSz21q6KUYMPr7nTgY5eNRudtt5ixHK\r\nds9rspcuwOs89PNn5g/25nO+uaF797CeN3NuhgVl1t5nFRtuDNDtmon0y2iI\r\nbBwcMI6yO4VmNw7cs/qDjMUbaNxUkNMs/f34kBYaGlmVxzqnNXTvSbrR6YtM\r\nhj7hWKQY9VfBIGRf/iK2/ULmGD8QpQqazVARO3TLIDhKheTdD/XMUR30zxt8\r\nI/StVW4YWIfORVbwM/wICU/My45xQ8kbL9TQriUXIWDIPhdNhqxmsMJJu9y2\r\nWlNWQnL6kPmcL8oQcOWrFUv2WKenolDd4k3q02UDjul74JQdVePahUV3Y5kc\r\n2m8gsEEJnpKP44+2d2QouOZdwLNPYjK0JFctktM+Y76+NBuWi1CeXviG36kW\r\n7k3cIvXmeia5LXJ8XPjpxFgddsBeVJerWYbOeIyccZLLXci5bJQV7YL3AI6Q\r\n1/8w45Zr0D0yHjWnsN837sFPk/oOK01R9mDrvEO3IX8HHjzk1Dx5GAbvqqYT\r\nQF6ytK56/4LakVyckCDdNSwjgMXsevUhrSM=\r\n=NVuZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-22-2022_1671668809105_0.7178431511347969"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-23-2022":{"name":"playwright","version":"1.30.0-alpha-dec-23-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-23-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"06c7f1fb6c0a595e215858a6fc6de1230d48e1ae","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-23-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-z9d74mbeFNpSOCkVJ3egDUxa1g0XynusLCippfiVxDuhY/J/IR2i7xbZISMVn/tMtRLyWaCcsT83yuX/tNK7Pg==","shasum":"f1bbaa270eaf0f0fdacddfbec9ca9f3e6c42936e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-23-2022.tgz","fileCount":9,"unpackedSize":24291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2dCZu8G6Dy8lxCQzLMsqWfDE4dUKthgyJwYPetnG5kwIgY0u0LEsjjS/iJq8pjRZtCbKvECaFbAOeYMJ5chdOM98="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpPWOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqb1w/+MLALEYvgSrW4kwx/WZ9FzlzrAW8ME2H9YDcjb6Crl0B7AfL9\r\nns/G8WWloqy6Wbra/i9KjUrt/HNU4jRys6S41KBgmu+QPITevQaElIa18tDO\r\nggZW7QsznWTc9xZgt1jXLHojNThiZ0iPm8TJ1ClKeAZeuFtrMbJkTcBSvu2r\r\nDqmGW8yAXMOJTQ81LgYwK1LPDFbje2sFWPXR/oJs5EbAG2gVd6Ru9Y0sqewA\r\ng1x9Wi6yBM6w1/Im0BKw0Rb7wQN5sASgRO9h6HnNS0nwWhz1cTVXEwz2fHMZ\r\noW3DuKrZ3vMKqeL8m4kIrjRKH7zAUBygnM1Rie9V+ePWTvbxsw1Pmd82BPow\r\nOkYq+HdXMllZ4Vso2f2ahV6rm5daN03oXqVpKRHEkKan/E5RpSVnL9eOO7a3\r\nJ6h7Zk5kqAXHBtmuGbs/AMCBjnMhV8VGFwtPANWLxEknFcehW3i/H89b/BK7\r\nNGcABpPO8+Afr+Ti/VyrLeFnjqECOg1xgIhX5NT52f6PNTrYRkaAZoRr8AbX\r\nZVQa+3XFgVJ+Y3/jNnzmnZsHpoypdiRIQcLZEn/cfIm4pfjc8bDVB/3+swYw\r\n6tdmzp7qqzuLMV/el2eFWRQ6wAj5/upcdjeINYmpx1oJ2okZFsM3yRnH9IM8\r\nifkjPp/o+aPKok8aloMeq+RzWcsJCmuLnSU=\r\n=8UMj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-23-2022_1671755149954_0.06001427640188517"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-24-2022":{"name":"playwright","version":"1.30.0-alpha-dec-24-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-24-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d5881b8d4843a5beccb3728276c017597427d706","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-24-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-CHlnmno1LvtaDWFpVL+FlvLHmqGlUxQbvRsMyDl6Qj/1xZHVtSmHZLC0tESyiZ99gHT0jLIngDplKBd0ftzvkg==","shasum":"92f30cc41fcca9c1ea930840c8719902ab8aa73f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-24-2022.tgz","fileCount":9,"unpackedSize":24291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/tuXTkpHyQtUQ4fJT/jX6EHBT5krUgv3Bn4f5hpWY2AiEA/2pfje0rFYAsloKSupgQhkBXZrxr4mfotnWkATRTiwQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpkZOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwLQ//Rlbxf5LolXgMXC9OXoLAa7G0pg9j0GVj4ANPCeAyVr+4Q6rL\r\nZWmXZ1wZAQZmicr9wfGxQiZekGR8oeERGHwXUGPLd8w5oE8yXnyko/44mQnW\r\n6v444K4/vebDRUGgkTGjzvOJRFK5eiaYSTCP67E8sE6uSuv0xcHNQc8LGBxx\r\nxPjvCbBzQk6PjEty/Fyns8AWv1mMlctkcvexwGtF7QpV0WFpdoZj+hvN9PPg\r\nG5uRt7tm22bQCy/PoUZrHX276gy7+qBzZmgWVwwE212hO5kvjmuZHUigRcX4\r\nkscq3QDF4m4wRgW0fmtNTcUho1wrWPD6AEM6RPNxZZI9zzu+6u8JsP+MPzm0\r\nu2Z8bidA7qdnAvBgGLWwxFrEEz4TCWH+stqsO6DWHM6PSTrKQgeFSDVsZtt5\r\nvBIjevIKDHuNjGPctZaoBi5kcmqpsnqRuh7q6mBYaA2M+tQl7LPqv6A2za3/\r\nYsO88QMFf7pK5Yl2mjpbXvoQzRwUJX6NYTyZTTFmv8UgIAUfu0kDGvK13m7n\r\nTkyKRZCIag2fSYFhZEN43d4Wa73Lx4Id/i7PnGzDjOOp6Cm7ellXCFwvzoIf\r\n6cSKG98QyA2IXXUUAV6Bhs0nxWawvS5BouTIYsYpV4i0amzyuLJr2A5J8s0E\r\nm6AQlFkovaCnci2P1j59wklG0H5ga+u/ZAE=\r\n=Q1x+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-24-2022_1671841358058_0.13594791230715075"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-25-2022":{"name":"playwright","version":"1.30.0-alpha-dec-25-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-25-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cce29215f927beb182f92516eda787c0cd61b8b8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-25-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-7QC3HS25+Uf9jGNiEn/7jGu1ArvSo14202rskzMuafr7t4wRUhm5PF/HJVk7+MZ3SDwtbcml/rGzPUAC/3xDXw==","shasum":"9833bbb357cdd5998f5dab0fde6576addfef7945","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-25-2022.tgz","fileCount":9,"unpackedSize":24291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAukjtFfqTSvi2wGrZZfyCc7ZqRKNt/KPniDewixnATsAiEA+ukCUIKgCsKu6BBkHpd48EDhqEoV/xCApop1AyvCYWc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjp5kwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrqig//ZbIzMU5Ai1X8+xuh8jnU4e1A2j4p3npmadEb4C2jHARvS2xf\r\npWAnuaBXhurplQBvkQTvdr62/3Gl9oZkH2cxkqofAI37creCoM7hMSFvboW4\r\nfesnZq9S4PiusYHBZrKM/rk0Zsw0x8YQymNYgYu5r/PqOfcXhzhdUYRYJRCk\r\ngMX/KqMgx3i0+0GxJyth4u2jfH+7bKpgbLT41/kmjfsUsb8Zi8kko6dNNfJH\r\nYz0jycppNxbP5/+EcZts7DjAhDU6fd7zlv9wekgaxzLgwzGdg0K/2uNnuy2Z\r\nfSyXqdIW8y2CYW78ygY5BV3LBtQDnsag7pSAsYXJV8lCgBOli3nDbWCl2znU\r\nOlQjeAIkRu5uX+szzhj49lebeSPq3/8wS8LeDVsiDziPoPXw8ijYviGfn0X0\r\nxFCy2F+zhy+WIT0Fsv6lwJ4ADwc7HwKIPi1iPiduv6DL1RgLvIV7QXlvoOu9\r\nCc4TCex9CLAebDVOEMj7o4wScQzt7TRozPAag8GvCjctevoNELr/YToFE5t3\r\nsB77CQrKMJH8nhqL3XUxKjzKFHESfXiajnpcYOW2Sd1RSBe1mz4jnmyrEcbc\r\nOrO70xvuI3UmSOdBFlWTxSANg3LyBcTLz8/Jkueu23w3fTaos4pb5MGeERil\r\nMXgrYgXoFPfRpPlaTmbSQZjeHyU30ZESB5M=\r\n=TJc7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-25-2022_1671928112758_0.9482895555588307"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-26-2022":{"name":"playwright","version":"1.30.0-alpha-dec-26-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-26-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cce29215f927beb182f92516eda787c0cd61b8b8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-26-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-oinA5es/g0Tfpv9UfQmVTtYMpfKOUaFAsFNJxEcBZegTwBGdUNkZoqqmb24LCIagVvbQT2GMslhtV6kBA5GydA==","shasum":"9aba6d20281166c5a2e55e6a2d82a1efa0924946","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-26-2022.tgz","fileCount":9,"unpackedSize":24291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2gzYYiv2kyMcPt/isDhrbjp4AjJ29duOJWE0ZT3EvWAiEA4TBBthIbO3514gf6C4vreGuWj7lOijPDdFw43RuvGTA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqOpTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHgw/9F4k5N/swYbtWNI6GcMautT0B5/a7Rdk0WZoNtEbrrAVXmVl9\r\nzMfaZKwwLFhN3MCD180FQeFt/jB8YlywbfzqQEemS+MFBjprJI90fE+rTvND\r\nXNnCKBbqTaE0bP59gaip9lugQSJZBB3nISgdiUhHCWfBpAG2JDo0GnkFwuFu\r\n3z6v8iWaTgaAe7gifrygu2GSEMEc+ARwJS6p8EXBeCTKXyufd306ffWiSI4W\r\nhMydHKGuqc+gK0WYi2gGeXNZwTLh73cIyAoATK7AzYO9laHh9/Hg5itWGDAj\r\nVYqVnVF6R1A1jtLOFGWfOxckpDSx0yTZiPUOPJLeI98N1Zz+q/Cs2k4T1twh\r\n5zUvuyZZNJcZ3Zjf+5tmmDxoHq2uTi4J7sZheUIBITPHldhlYRVdRvS6Zncr\r\n+Men+MsmA2zE/OhEBV0jvEhyYNJCoTkxgDlE7bkM7SbrIr7ar2ntfNWhSQYK\r\nqIraTTzVGsbMeO2/wH8r18DBWvz7+3DTscgyxeZdMztaGnsEyoMfuRmnoVWh\r\nwyIljw+F/f6TQGBM7xSlbS0iBZMzLW+15ObyBrhewl/gkoYpPs2EkU6dOt4f\r\njBZx4t3z3o4uENh6hciT/U1HzPpYE9FjDuetgWk/aY54SOd9VeHmF56A0ZHV\r\ne0xR/DdAlrwJKVWCI8on7QmKQs9AatP9ZHg=\r\n=8rPL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-26-2022_1672014419481_0.21184088451106087"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-27-2022":{"name":"playwright","version":"1.30.0-alpha-dec-27-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-27-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cce29215f927beb182f92516eda787c0cd61b8b8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-27-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-9XJwZr5fLXYehaEbCSpDBGhk3LP3urpYbneCsIjOZT1zEmR3sTo2WzFOdBISqRsvc8VMQRCyGsiu0fSbw8TMsA==","shasum":"73b56ff5c54ec4cacb1b341cbe8e816531d46be3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-27-2022.tgz","fileCount":9,"unpackedSize":24291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmiuFV7yCNa1TmY3bWR+Ip/5Ttlc3a5MDxxqF9OOJjTQIgU5yD7QjQkVwuEaJZ2qrhTEt+izUpJ8fx7c0LnVhc1bw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqjvTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcDQ/8DNhVdrPgC8W+upFy7CVeyLRcpvwCPtLwWiXfAlesadPUkHFm\r\nJBZUPJn1tV39mOakrHuOv4YtOf7yeN3VHQXdOpu9AOHGtHz8xT08gG3rDhIF\r\nQYVj5vDK4HfzXKxnTwFOsaOMRyY6aceLTu+9ms1Ej3cOoUiqWMUyDQwLmazH\r\nHPGR+iyOuOcuY7r6tbn/od/wiNDsXTF9w1Nq3WcSZIxetRPdpVAeyVhhll+l\r\ndvK8Nykar1EJCaB794mNGfpzMC1sfw8ILAjeixf+B+Is9OFoW1iZg5SpR0Dr\r\nlSUYJKS+4sG/mP1/3hjo+syl1hDezHs9sZd+LlSJz+DiFFbDr1H+XMCVGj+r\r\nXA0PN23FqZ2/Kds3rDLpeGzDs7q2QLLoMteK5jZrp3XruG5xXwXJGMXY13kf\r\nXGQ2NI7fmtlQLBDxaiUu5HV/YBBrfQNctVuzrCnGzZrjgc+3RgmqNEnt+3MA\r\n06YzfCws9WUbyCyaviF9lLFB7iRrB2jVNEm9Q3oaFBhbEgIzO5jw9/pF0woH\r\nnoccA29MIjEnBqMNv03szt5h4GBj2ou7vOzoeUabUm/fQYwIyKDIlLstnJHJ\r\nM8Te6ojUnoztmNDJs5fjxX8miEM8FjnOia0T51f+rk55KzRWsZuq25OEkn7q\r\nmrIjA1zFNNLU/Ym0mcZpyJym6i9eGdlvi6A=\r\n=kVAn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-27-2022_1672100819136_0.0906745250866372"},"_hasShrinkwrap":false},"1.29.1-beta-1672169891000":{"name":"playwright","version":"1.29.1-beta-1672169891000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.1-beta-1672169891000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5f3e3134bf0d48be89ec358e06a8626b865ea81f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.1-beta-1672169891000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-N8A7cE3txyHBd0C63o88MbwjqCaMUWSIl4Zec6KcWPYw8L09TGWYbaF/MYyfp2tRVx47dJn+MLdsjJ2fbaAmJQ==","shasum":"2ce5dc2490509b4ad6f29e1cf9eeee05bb1c3830","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.1-beta-1672169891000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTV8Pv9okZkA7D/4efnO4FKkOIpn9bD2sCCvDMYkvETQIgIbR6tn/V/YBdyLphqXYv1psD9//euZHJbTj2f9OvmIU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjq0o/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMdQ//VLQqR3FR8bYWXvkG6JHGZkAmZVLYnRc8lH23pM6lLEnAQbcZ\r\nGhW89TPmxrdolYRf6TtC6kzlR7h26mhHUCRB9lhmSFnMgrUovqI6A9kiYiuW\r\nauS+mkfBAhP8z8jRWKwjGY1ylFkPpFZnz+8i+kfXpcVV87zNzcL7R1+tNQp5\r\nieZW3b1cXrlVluWpKJs9dpuVQCmBPmkV7z7EIMAFb0w0n/4DEUE4wITJIOEg\r\nONLGQlr87b4Wr5jJAhiVqtweZq2w5vPHA9XlyBSOUa9P4+yw5EFiQPc5gwSU\r\nPIskXrPhTETnLY2graaR4BfeY1RgSSRDV7x6uCTh+26lurNwtPzsmsNq1Ybu\r\nAftwibOTHTSyeKq32rE5RzhKnIS+BeDwIpsLoLuSwdED/EnAHfNjHKxrfaeC\r\nmUNb9uehYdqe8MFBVnwsQnwK5B1ewg67i2t0Fvd7oc51vfqhqVy8RuJc3sYQ\r\nuJlEMp1DDfL2gkR5CZMbsmXDK1w1QkVf97QTu4ZiqKiPIb4SOdTsZrxpHty1\r\nvwK+wXn3wlexWv51AWI8kY0djsg5GMwvtQZSI3G4x5Gl1CC3ypDa/JAuwlUl\r\nNh41m3SV3FG4FBuhOfM/lS/KG0aTgc9/ISZid9G+jJlCV2LboCNoKROtUxum\r\niu+9f8HB7DI50TThY7SFbi+eXNeZtckYOj8=\r\n=ajvZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.1-beta-1672169891000_1672170047078_0.7534201880266258"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-28-2022":{"name":"playwright","version":"1.30.0-alpha-dec-28-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-28-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3334d89ad791e7c2926a78f9a2227c0efe85d511","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-28-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-rSSsl/poYvhhmBxOrydL9dCxSrwaK/TO/K7SEqnTh5cyNd5YEcEIxdf0sdOJQMOWPBo5jC+izvEVHrGpEpc0JQ==","shasum":"eac2ebd95d31741646d57914b4bafb0718f138b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-28-2022.tgz","fileCount":9,"unpackedSize":24299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoylIkLtirZkWpe/Lk1ijozplNXO5EaTvNedIUZSdE4gIgWuukwYf7zT0PFZVxFxVSfOlhfMMmWxlpE+EsVe/FY80="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjq41PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBTBAAjZtXMcgI9v3WzyhDesEmm6DzY4/zTk/URTRHMmyT4zj3/EXb\r\nEv1pI5bX4SjMkOwtSY6cKUVRr1jMcYpSYFPMASVofaUKdH7EKBpn3eSBBWsg\r\nfIB9GQkECJLzvvJjm+ze9OcksL8qWE41vki8W8YQIJiwZ+DKox+1YaUSZ3WT\r\nqkcA3fA9AmmZqVAgq8x+RxUwCtRLTqGxTQLy6GiPuZInBBy5zuGBmHpWjkF7\r\niuDXNFs+LSIVK/by0C+JxOA+yjVx2M0kE24NOd5SVxZ96vsBOrkDjoAhxbRZ\r\n9c/HSj3iuVWLAdVr9eIM0A73l7KISMWnIQa7qc6Ug1xGYGpPR3qMeOPPyhlO\r\nyfSqQH+LDKdBEZd7cKuQVGRFbG3Moaw5A0MsnOdYPl2iIpfQxMHcRyBpAowz\r\nPJ5OKBloUdJ/FJQT0MCz5Y7E5ze2a/R2WmwCSEr8aC8ueyPQyKUBxNTWqYkv\r\np0x+vxOfb8yxNkoP39MV3okcROJ9K5k6WBe4nVxWc4GItyPK+YSpxXBGNLcu\r\nmph6xkMH6WIMuVP+j1Gy6AQUc/WPfLM/8JpV3M37SY0kdztLnP670Ua4f6jC\r\nuBeFoXnlQ1Ewhc0d9IkQ0Tvib78QMNfBCibhFWBRCXCcoFfdTUNGH7mLwvc3\r\nkyBXwda3LZmCi4H64vdYL+DxEy02Mxpsrh8=\r\n=Kllp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-28-2022_1672187215486_0.7273255024096315"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-29-2022":{"name":"playwright","version":"1.30.0-alpha-dec-29-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-29-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"137070d889df207c32539355c45144ad8b73cf1c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-29-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-g6pAVw7zzp7TsIEoufc6F2IF2lMaWFAfo+8TV4A9HbVSsyzkMY1bljTWlxH1MJdCWAt9dZjqwB71WfR1S0/6jA==","shasum":"8e77c87b0dc9f52eee119ae793540d20f0c2d5ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-29-2022.tgz","fileCount":9,"unpackedSize":24299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICi0awT6NM36V0zWDxkEQ+AhCCwk0OnTc97nAEsQjY5zAiBrm50QS9qD3q6EsqqmBGfyT33VJCsIeuk4GhfS8GKbvg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjrN7aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVnRAAhlQxgzkEtgr3appcMwFPcsXRiquu2T/WZc72YoKht61hvGgv\r\nJPSmym2AJKgtLCiG5ZRNuBd52vke6ulHL4FfzZL9Hrm6R1agdvaLm6DiagKr\r\naZZYiqCk8zwSwsfSZpCNALwxwhfHGJzgze20sarOEi3Fe0t5xwnL5LMhKEgC\r\nZSBPpCN2wNZYGkUIfJcWu10SzcZH4b3kTMZfnzOorH+9MJDqpaBzXzivvIDz\r\n833D3ZPSKq2BnFHZ+kBrPVKJBb1UZT66uSJgX9woC7u5uuIITdLEqWTtUwEH\r\nXxVoKdm3baM61NLiZs98+1zLqmUfsRdvHuw6/GjjG4k5L4FUoCn+ZDCjvYSX\r\nEcMCbHlMEbTs799kaDL/v58EUvX/LuO3wbdR8w7zkbvRfCw1Omo5kEWYdnld\r\nWBXbdcyXm7jV1qbTNInjr9FhehJKO63N5Mbl78Epd4++OClqEB/WL9imid+W\r\nsRGBXoPbWb04OyNYf6t5EtxJcoF6RU/BN+UWAiEGvnUfTOwvgJvqbBVHW3Hx\r\nGWWUQm7RM9tMLe4P5Ch2eryySkoJOZl3v4l2Bp2bCfotS5AI1+ACHY90ADuO\r\naKsO1aK1APIqOP3Sg57xInS1eFKZ109HBw5JF1+hY77zAXyfkJcLi4WK64Um\r\n3NDQq3UssDWXhSKL7L5D+EkbeyQPEvWrc/A=\r\n=0U3/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-29-2022_1672273626175_0.7579953368772636"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-30-2022":{"name":"playwright","version":"1.30.0-alpha-dec-30-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-30-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fc56afb99028fc04d8f3b41f1abdc1fd40707575","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-30-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-g31A2/B02o6nFXU8cJ4ePprb85HxSJIjGbQSUnwjUup45/mUKzcvFoa8390KlItBqsMr35vtPN6jgGaRz5hfgA==","shasum":"11223d69d6a1deb616b368227f5f3f454a362545","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-30-2022.tgz","fileCount":9,"unpackedSize":24299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFVMHHiIpXQGpXDa3+/KANHdbxERX66D/t0n4f8ux7sAiEAmpSd8DQhsCxDdywkDBUSKUZ4kmgJx7djkXNGy0Q8LNk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjrjBvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoiqw/+K+e9UG4HP81bQoEEzfCNj/HriF9/kTs5WY1aA9nFP31XKIZo\r\nW/Zc04wPIQ+2iYgRaBqM3X3tug++A02gQ/WOH0PIES0y2zbgOSRBOCUO7A7j\r\ng0xcDnR7R5kRifAuClgl2abahNjcNoTW81RyrFZu5tYNoCBiKu63HcoBlVE1\r\n1WuHzwqCly47oCghNtmCpFZhcLx//5P8FMBUL1ULv80Zi4Fp3IfmJpgURc63\r\nkTccDhdUsGF+zV79oh4qyGB8sB0F4mZ5Rtt+3Y9cD6wpEo9EInwT528ATYcf\r\nW7H7YG6FTOvzH1HWyqbdi20VxzkJ8jYr1hoQo9CRv3JJm9ypuWKZDM6UHtgS\r\njYA844qDOVx5DBwPZ4qk421trYGt8ES1SsXaWw73UNdk3kVyczzLGKZ3cnaC\r\noREYhBGHk9jKgqDk2LOaBi5qc7/fau8P6ZEv7q/5msTX3chmgioHruSIGeTS\r\n+HewG0U7gYKi8kb6rkVbivQPoQygHTw0JmuREZ706xdRWlyt6rqq1CmQCevC\r\nzbPHca6v8NYu9SGEXfedw9q2m2J/Uu48BwUuJUGk3mgRg/CUWCID79VoESmd\r\nvFVnD6gHTghbnA6VS0zW2ZIiQI4oNOCyanF+n1NMSwqC6W3kiyVKlne6kPIn\r\n5FbUUEReI+7Kszji6CQk8RPzRe1PiupFhB8=\r\n=CDzy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-30-2022_1672360047769_0.551749571058894"},"_hasShrinkwrap":false},"1.30.0-alpha-dec-31-2022":{"name":"playwright","version":"1.30.0-alpha-dec-31-2022","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-dec-31-2022"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"caec93ef42b4b93185cf63ecc95fb78cadb2fcf1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-dec-31-2022","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ncQ+EGk2FxEWGwbiA4Iw7WDHT2JbXoceY+tjY+HYcMWNTGESfpy57SbXvUi5z9RzXBbfYhbi2x8/1kCPukPq+A==","shasum":"b73aa4e0eb304fcea74c50daa621e4ea2ba0e6f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-dec-31-2022.tgz","fileCount":9,"unpackedSize":24299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEohORMYRplcUDcXJz4lalnKFY6lzdi2L7pYPFEumtPhAiEA8bedzVIEmeeGKV7q8AsoDbvOER2vSZYaCvHN5pmb4eE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjr4G+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqM1A/9HeFwl+XTjJ0NUqCYEyv9RVm+7FIOgohOGWmEsY8exRxxmscJ\r\nQDMrdi5o0cDpdwnuWYSz/hLQ0XeyJaQbrLjst1Bl26Uggly/Vl8k5oqM9/zi\r\nBpH01V1VlF2jiDFgLwXXph/D7UZ4qVi9UcGyhA9NjE3obREB+AlJYIsfJ1tV\r\nHR03mcemdpupIsVZo3hifYtzMJdOH12bAB5SyOxrEG44rkuqDDWIunJbJA1T\r\nvkk8gxeVbudvF5DpFp83fxqSfM1iOuE6Kt4/8qo9Fne/Zu+EtNpVagIT1xjR\r\n1WGo0ZJJXj5aRbKnD+R7BXOw4XT7xUPHnY3lNOlyRr/0wPhZGHvgJ5aYrZrf\r\nPJY1t6w6NNroqGYZu0+1a9F8YwvkktBiP7ABKLdYhzA6uJVk51MAXKVm2zzw\r\nKgHFsnayznIjBy/aRiZNfFVBhF1OkBq5Vvnab2+W68wedBGx54sGBZdu/wZA\r\n+GPYSMRjTdTNw91diIxx+k5Yb4jDBIpkKB5qDlQLn9KXedIhara44DQKl/Jo\r\nFrIFptHttoM1rSmq5B9w4Yq4Fu7AZLlkNOeJFs1wqD3gXEgykwkuvmStGLuY\r\nusikubOHm6z1RcnktkxFL0w5JXgkuyNRU+vuRO6FS+6cpe8UlvlZMLL8QLP3\r\nS/26cmeyUetSAghBor7r3X42slI1DCvh+Q8=\r\n=oqHL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-dec-31-2022_1672446398239_0.8947549034231133"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-1-2023":{"name":"playwright","version":"1.30.0-alpha-jan-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-1-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a30aac56687598c373c51255308ef5833de0c9bb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-1-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-zxcYUN539vKAbp6K9No0Hu1Le4cm7ZsjRLMwoLDElBfep3eb92tck5JN2MKCqDzr6YoLD8W1lY4VzR/pwG7h2g==","shasum":"4747a9defb733ab37385ce2c7da685e3e4dba7a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-1-2023.tgz","fileCount":9,"unpackedSize":24297,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDlCkwlRw3YYsOPjtHbnvKZrHCTUAHms6bAuNvjJBdBRAiBioxCnlMWd+aUfZ60Q9xwFuYVjZ4UMWLk7MVU6ADk3rQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsNQTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr33g//dnIZIGfDSgquXhYQetdpAxwiWexNoN2uFiUrfObuSKfx77dO\r\nLtdqCH3887iIEhpiTNxGpjf1Q704QVnmdeX+5JzsQDMZPaYfc6MmhYZrkpTg\r\nQ/KXgZu/vp1tK7rsg7TJaAYf9nv8gu5YG5aPzHSMPMAGKuykEO+M/clg451E\r\nKT9qYR7McxCdiNswffMecyH9NkmNKKrLls9lB3n7Xgco68neoz0JNhwPXPcP\r\noMaAZWANwMi6ncVYM/IAYHW7VuFYeS5Fb0qffM/wnLWzKB7ZZfye02CZ3V9s\r\nA/Cw7wAyaiSbK+M5RA0847RjgQMY85kjlmqvg/9nlI4vfJEERz61Dtn/d5LS\r\ng8Ddp2q0SD+SThTgizn2d0PcLjuNR9uMqqdFdKcXyaCi8XHGY8kHeVd56Hfe\r\nwE25zAlkRfUZOPfbUDZySP6QZpNrFM/UwUx9tZgAWVx+QzjdRuMnSZCL0GFA\r\nn1LgmGzF9Gcfvh/XmZKz40uZMobK413vpmk+2eBRLwjt2MBp3fOJ0UiltCDx\r\nds7o+5b/+8ufwzUb1aDqCHcfxGs6dsVjQsJ4VkovH2iXqMPRsbUShgMj59jn\r\n2NLGrEp8qhManSAN0+q/RHn//6qngDYGkJcvaERY1oFP0VHQDPn6BA7hmLVV\r\n0ZlVsPumAKvLcnaDB/8v2Dyg2KRYhGrAHh4=\r\n=OoIT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-1-2023_1672533011567_0.3359388327006676"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-2-2023":{"name":"playwright","version":"1.30.0-alpha-jan-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-2-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a30aac56687598c373c51255308ef5833de0c9bb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-2-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-a5bUK9ygSDDfmAb4yYocso+SEOF/1kSUUPSCc2OgkeT5uE4IlSZmv8i0I7vy85Gja2LWbhvkohCYSjSK5FAiRA==","shasum":"9a93577f0418379ded364743e78fac0bd144778d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-2-2023.tgz","fileCount":9,"unpackedSize":24297,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDI9k8f/rL8KPggTMWLkU6I+pwxRr4jSSN3vhUMTTSgCAiEA1XILPFD6BWdUJltyY0SgUtRS939k9fFBQZDLkmPkKjg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjsiTFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLkA//WuZrYOn/xt4A5cOYmUR657bCNtzash8FCHe8gPA08d0y3ke5\r\nDJMVnyJrfbhNJOeiPIn+nhyLMjF6tGw9q3S/9PEulAXlL4zBCVj+QcnheJU5\r\n/RopwL+5VDoCs3VkDRrFafia/ZPCgwdURhZJG7yCwyVFgO9KQaWtaFRbq0hC\r\nnM1jKzT5UCV2JBnqgww3QhadlGwWuf+7riSQ4lMEA/xMFzww4yimDpbjwjU4\r\njGUIkdX4O/8V6PEgP0eZzK2gZA3v+NlaG4nfnAJLEqhY7G9Csygv2+Nfw/2W\r\nHKL4ewOPLU56+0mTDrag/RpUGKvGKXOVnhIDrN4J0ZenQrBd79/vLYNf6vv0\r\nTxSQkG7IuaO8rH0IBaxroeh9oEMHCh4pRMQQkBqDSEuk/oShatYMxrxdNNYE\r\nletd55ixIMQu97GLX3T4H81gLmCpO/wkDeHxrQrAEzrlIQUMAkfb8MASS/F7\r\n0PQ9tabJOA7ijsOvJs9wTRKWpeZxRep7bw+tD9p024LB4/qscQSenvf3MoUz\r\n/nSsPukRJcsnVIlkSsOGeAEXvuEIh3JeOOOi3o4c34V9DFKWu2i4hKmc89vt\r\npuzr7+o9W/KxeThgYbXb6OjYMBaiWHAvItUqnzeHfnG9tjhe8XkDXJ/jJuXI\r\neWXw/rZo17qZkM7z0mVfnVE1/E1oMvn3yzs=\r\n=4/Dt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-2-2023_1672619205262_0.09760148530433055"},"_hasShrinkwrap":false},"1.29.1-beta-1672665461000":{"name":"playwright","version":"1.29.1-beta-1672665461000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.1-beta-1672665461000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cc00c207af4e7bc9a54142612c1ab23cceba4e0a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.1-beta-1672665461000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-pB3rmEEj6o4Wn3wEdD3kxffo4adcBGzDzJYuDt8zYl47rLrmfx6N/GzGDUVRw0/nl4zW/KnZWRAkZt2K2yreYA==","shasum":"0638f3fb0e5dc3a4ac77c309d9157eb45b9689a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.1-beta-1672665461000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJ0YECJ/CFGL1dPl/oEmXUo2tnILxQWrH87slYdu2mxAiAWbv44sRCQ6fYayU43ocYFOWuNKe2FocYJATB+mHkMxw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjstn+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonOA/+PcLUSYRWOCQyZ81ZeAwTp8haAz/R+AN/ZzYmToGT0b3e0psY\r\n+2itUrjTQhFVUeZVFGbMeSwV8+vK87Wdp8uZ7AombdcTW9YKukFKzUdyOKjB\r\nn2Y6CtqBZ4MkvC8nUixqIxQE64iFdwUBLd77OdI9r8nymeRTOrZA2GImFz0f\r\nffm4GzuFQGUu8BKhsYKo1MIOU3uQJTrRALASbbACGHMT5z5D7lTg1N90Ci7x\r\nIA/Tef7pfJ0bhIzE/GkhPKOi+m8uX54nKMTJcZf9qns6xiVYsr3sz1jgToRR\r\nKFkFVlBD7m6w+PdBsyZYtrt2ZRS7+ODo3q5o3jBJlHYpcPn96TYYdhSGgJ29\r\njUxCFC2bzKOaI1PbRHYLW/cMlV6iZmusuZDTsHZfyvNHfdjhexkO8HGkaCQX\r\nfCLkKxXEWzcneJt2iDJa8lslHXv+dJEAO90zy8C2M5fgni6tqfxfLd0vO4uW\r\njhPx0pJW0HUDH4QrUmNJBxGGX7yMFuya9+vzoCTqceMC45VzL30ATOsy1YYL\r\nmmTjR8rIedmB2a8Wr/RAjN1mh9lP2SlgdPEjQgTlga7HgxUHvzej4GX7Mf4P\r\n/FB3voOulAHA+le1bJA8uz1giAWCq9jvydLWTkOzrxbtvg6D80pitzZPXV9C\r\n+0M2gj6E59NzskEGXK3Z+h53KKSU5rWKGeI=\r\n=DfiO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.1-beta-1672665461000_1672665598353_0.1220502501872518"},"_hasShrinkwrap":false},"1.29.1-beta-1672665986000":{"name":"playwright","version":"1.29.1-beta-1672665986000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.1-beta-1672665986000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6eec55cffd87ce53dd6c6a07834505641bf2f0f1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.1-beta-1672665986000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-59cpekKeNgTgBDF0IhldCB2XTLkPFwNfYBqxNtNGRoKoEuYg/kOjD8GFCzzI4AbLbveneDcUDeWKbDJIJxOcvw==","shasum":"3aa59011f09b8dedf0daa92aee13dda5e42c1626","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.1-beta-1672665986000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDk6BFgeevaPdHT+A5RZ6Gu37bHsI82Dj4g1hA+ngKOAgIhAKEFS7NuFE3tYYjLgIkuBYOYAHPZ7AEcuf7xWjPyLbi2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjstwjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZAhAAozNiMBRnIH2L4XpxynxUP0eD6Bwsf+AMd5ntfurtFPuJGYuq\r\nGYgVFCU7Isx/PB1eNNvEg0j+5jKm5puNfszQxQ6cSiWZyNN/3MlMah/3GvAL\r\njVMD5cNIkLoescpjxYs9MZqOUgwyDNFWWbFAH8bbltTXCVNZitqFpmJnyr6D\r\nIUw6tpFzVGLlwi3UKqQK3lqADvFTNZzkVlIrmcpDZ4manMlcGtUkjK3gFXiM\r\nmjEFS8Zvpk0XH4BwazqZw3xaOB6xugZ+uJQ+ylU0+iAze4xxPXLkYDwi+Dag\r\nOlKguXboQw3oVL/a2V6XYFfiMOxxF29tHfalOPSBeRHPQ3MtB3TZmkkctywe\r\nzil2fyysK0ipQvrc/vtYE5eCjFNqJn4Bu7yuiWQtPvE3oAbhbNbxVCfdD7nS\r\n0lyPNoKtER5rFaHeAi6UBK6CAG+cdPt6vMMe8MSPQG+i7vm1ch6tHBBU6ReH\r\nNuco754Rvbjw6gWuOHbdtxJ2tqWHzjFVlgq7kqHgSGV/dLxv72AtD0zK/ztb\r\n/9imgnIJLXGOMZYTK5KUANthu7QWlCsulrxeTBXaVvs4UOkHl4y/Lta3rcO0\r\nY7oPEzb933WYAWm0lZpVwA/YK53sRajntZsYsaihBOJUyiX7qTr48bYE/3FF\r\nEMDhrwDJnKJe7kOAq7SnP0NeFRP7CawRnL4=\r\n=IilR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.1-beta-1672665986000_1672666146832_0.575301057051107"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-3-2023":{"name":"playwright","version":"1.30.0-alpha-jan-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-3-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b695478840390a3974196c7578775d05fbc87a15","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-3-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-XTA7A20LN5y4f1L3aVCyWd5N9eeem7or2oQNEmkc1cg9eVdCcobVe/86lvDY6Jm0dF0b5RV4u9lurKMpYeVs/Q==","shasum":"0cca17b8cb1071bc57ae06912fec86d5aa807971","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-3-2023.tgz","fileCount":9,"unpackedSize":24297,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG5FcVaBnvrLWD4gsYoLUiIWRsg1lsNz6HS+4Omr1aUOAiBqV71VpI/UIjEP2UMwxa/AjVB13AOW8hW2XNIwHYZOMA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjs3YnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmmQ//Sg6wtEV/nb9gF2xEpN968xXhQkgORUYGkZxK+XyYH45y7bkp\r\nkesJ7FaWNoeUH2Qg7ft6jkIHfOPxCTEuZiQ4QQmT1poYKM6epeOP2ZzAOhdC\r\nAJqDPqRHZwh18HbVuXDOmOAYJ2ddD8WTkcLj5bs6hKC9ckhNK1xzQvRv+5rM\r\n0onP0bi67lGDNt0MfKlTfdeXSqIfv1WenARI+HWU1x0f8SvGxu2xjE46L3bC\r\n3fhnQZuaNBREQBA8kqUjzUoQSwhULZJvzZGUfHvnek3Npv+MgqXOf5zFDrSJ\r\nefxMaufljifx1HAIFGschQ1tRXU7Kybbk8p/FDAIijIGxH5IyAwn4GjEygJB\r\nvbRtQAUvaNrfnE4StAADTrdmmWJEvYRd7EhMC0bhkNAOasPzLCWpZxLShxXx\r\ndoe2AsWLu67kWLAFnFuIdyZAQZTT2mTeu3tWCfFznHtCdSZxVumCnnkIOeGp\r\nlUTfmFdXjJTnXBNtOMVqOmIs0EnTvV+MWOancwxCUP07E8TsF6WTLSDfuWd/\r\ndG3a3q6w5V3C2fFVtVTqkshgfV8PEkwu0RX+6K8MDGj76CE3hMP4Xemroqvq\r\nsbwL7GLcpuiGOxh20Lyt0iVD5NeNPO66JgnifE1IL+aATru8h+pQrvXmn2qd\r\nrUUzQpYs3YidMGKRfyyhf8nZGXZJHA0J6pk=\r\n=K36x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-3-2023_1672705575661_0.23839860300823212"},"_hasShrinkwrap":false},"1.29.1-beta-1672783485000":{"name":"playwright","version":"1.29.1-beta-1672783485000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.1-beta-1672783485000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b8b1c40cf3c9a8df2201701d99d500cad47f192c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.1-beta-1672783485000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-KuNyp+qZvcJO0b7FQVNWaniVzgW55j6FOliR8i6raLHRlRebVviqM93RllC8HoK3BIXJD03N9x5/REvxEy9B9Q==","shasum":"f40c3374cbd8c803790167c9b6c0aa41c1a20e47","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.1-beta-1672783485000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFMPNB9lVGhhE76Q0fEiST5PdxiIz5Pw4YcMzjcmBAuBAiEA2GSLKqemsUEKgKrG2xifjXxoo0TaDennuLzh9IRzZn4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtKhGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrt0hAAirsq9XmPLro8E4zzxWtb/T3VoIGwqrx2SbO3ZLWoOxPFGaQt\r\nu41GD4zzit7NRfFeRiKLkoEPvAk5SVD2I0A+CwEaVWsrgGL5bhId/1Foh7lH\r\njKDQ/DfYWiwelJdxhP0IDesI46sKZ3Lf3chHZcbdOVgj4TD13lnLdnUTNwlr\r\nQ5GUI0I3LMdIL/y14DNd9IEdqC+ixMqNOtalEq1H2p0m9CAn7g0gHeT33Za1\r\nQSdsarZ95UneAXDGSEFvmQp7mwJCccsut75nK+zEi/auNXaRgp5XQICQ1f9y\r\nCnO5HYynmsrLwJ+JarqpHAGZytLK+v6GI5dxSkrEX30Su8PvMCVKpMfpJZz5\r\nlj3P9VWpRVyQYMn6hkwyMwlrV4osazaIF7xmUC3PuljpEDngcq46qAHOmmf/\r\nj4IGdOzivCsO9kknzOb5F++C0aoRGh5b3QZLV0KVcR9/bxPmaGGJHc1UdDwD\r\nsfmBzvGvoLmNnbdHjodG/cGn9AmFPR21zZcu/V1586aynPBnKsBXAxFVsa5x\r\nG96trtC/1TZJXEzcl8MvVxuTat5SQp268GIIvYdz/Vbc2M900xlxRPfiiucc\r\n+Jwm8kG4SVYz6/efhnHXaiPVA0C4pObqg07ixGqBqQo9F/MtxhTTzZsVLI2f\r\n2DmtaQZBRocUFztCjrxhjB/AVDuL29qLFis=\r\n=Qcnh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.1-beta-1672783485000_1672783942780_0.1623730606366327"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-4-2023":{"name":"playwright","version":"1.30.0-alpha-jan-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-4-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"599ae30313a3c9f746905f73d18430c96e0eace4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-4-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-c2ulc8nRx4BDY22xDTV1O/xFPXUw+mEtS2/K0U3cr47wLUf4DRP+Z/aKQM3gPVpB5xrivD71xNNNl8IYAcIq2A==","shasum":"7354095b3cc291ff20468a7407933ab4810066cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-4-2023.tgz","fileCount":9,"unpackedSize":24297,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBwsISa5vk0wxRe+AySfTidjOE/4g6ebFhEv9+G1pBTAiEAoI/wuy8MLcC/jxCS9uAF0SSD72TxiRJbxaWJixjk/Lk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtMfUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgGA//fYrAHqqLKnvMR1hChy18GhQhC4gT1iO7ca+br1ijPvFjGS6x\r\nFza/EqI82JAjQCdTDNtL7YXXlTRYPvxzko1BkzYxgTAD7Vg+6J84olZBNKaa\r\nPlJZ87poFm2Yc6NUqp0iONtkWlreL3+OuomojJfgDqPKcJ/ZcY68fu7WliYO\r\nJrsBx4BiTSkMBJf2d5pvR2mrJgpQbmOD6Ibbb0vBaer7aWInsRcOo/+U5X0M\r\n4cAGwfMxbAonz/+kW3djjnc/PCsOdmrtdBuJCCs463fAzAGClDXduN45+lEH\r\n+KD81xozkxBX8uzBR4guYEb0QfUnQQ7V3neDuaezM8L1eQBtLa6aTQEfX5YH\r\nfo2lc0Q5q2qen3pME5JSBIpPksjs95XEp/idP/s7+RDOhFg0sT4RERRDSpsn\r\nV9JVptFr8vFj9JIEbq3HD//TflMMWoKqqgc6B3x+ItzUfLnx6yRmc/fBbedw\r\nQ3S+N7zDgSqWSN28NmP0SYwJM7EY3sANtqFIxpiwESfEEM+ooSkmUfdRviuW\r\nkjVYCP2V0dk9TggwLvPUXN/4O8yEbWqxkNgq7ZwNexCePE6ewA9rHdApWkIp\r\n1O2sPrDnPFv3xViHm61oaTX5iPh1EybniQ+iVU8h3b6SbkA1P23lIc2JvcQO\r\ngg3ufY2bHqGfyuKC8mw6au6FkmyWRBGnTBM=\r\n=LnVm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-4-2023_1672792020729_0.9948334188601693"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-5-2023":{"name":"playwright","version":"1.30.0-alpha-jan-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-5-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"388a3e1f37809faf0a3c9ae8232377f949c86d70","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-5-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-LnuBlR9YbzYf3fpR/LcZUZsTsikzAdGmPOLKgzwUy4AhwdDa41Vl41Vak80IxWCDE7ed98IDG4vxQAFtM5mrGA==","shasum":"b0f3c267fce75dd8097165d95bc21ef52c3b90e7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-5-2023.tgz","fileCount":9,"unpackedSize":24297,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8PPBtKclvL9OMklucKxAy1JzLtcZ1vWnDfCWEFdH9+QIgKUftHba7rsC2JXZQGYXmiN4lRiAXFBIS6BcSWycQzZ0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjthl3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRmw/+O+P0eYZwCRNaFbUruIa9SDr0z/Oc2SFddmQnNQlN/omsCZzR\r\nGm9TQITBdqsUQdN69/iWTol1ddtLPoZGGOJXZs+oyp9kWJGdpJQoG7j2Xy9Z\r\nz/Sns//jDF3bz+xdW1ErmlXog/8oYTUHgN8ACmVaxh5/VMfMs8mIpBud0G/c\r\ng04FPBuKxZF7YhP0DMQcRZcf7DFseZaCBWSSNEFzVnl/mjJCiebTZBmC0DFv\r\nLOMjUyqSxJSsd7vvKP9D93mvBRUbWvp6LjEvSfBuN6jduwZ53O/BQEvjYG1u\r\nNsQBb9bahIRMhm7AUMAAWaUZKnQAnln1PZoL/Jl8cZDI9rk9KMqWyFrjnSTa\r\nNTVst+r4lo4XKLB33yp32MYICw6d2rTnqBfUFbzBkUr/ze9Qj4JA2y9smY/q\r\nnTkj3A05jPi8avgwCVaJRBzMq8taEFTe+qVI6aQMx444MP7khp6QYDkh7zma\r\nAtZ/wTvktd2xRL8IpBYlunkA43Ba6o35MQgu47RFxAijgJYtmpvi3nip6tcM\r\nz37ZLf1t+9SzIlJwa2uchth32Fr8+YXgSltADbIAEMvbYjW+bzfBeu9bMhLd\r\nHJ3R+FYJ6ZtE1RfyEyAMpBy/hkhaX/kY3QpgcDkgUUOOQBQ0l9lUNFbW4pMa\r\nWrTtMsO7Gx6aG4J1y6FIVefB2sTo9EidcBw=\r\n=URy9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-5-2023_1672878455347_0.5907330410523846"},"_hasShrinkwrap":false},"1.29.1-beta-1672962462000":{"name":"playwright","version":"1.29.1-beta-1672962462000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.1-beta-1672962462000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9e7001557e831138d76e6d46ff8709c5cd5507cf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.1-beta-1672962462000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-1GTuOcHUA5h9z51ESbh6vhPRd4D25LsACjLm28RSoHn18tV6vQxQG17Fbd2wS2axB/322EiLBBkHlDSL2SMRbQ==","shasum":"569e5fd0e7bf2a17518a80acff59155ad93a9acf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.1-beta-1672962462000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHE4BffTIZngFNUFrB7vf53YZNvyzdQKjKWKq46Jp//oAiEA6Np4guNqlIgpoW5yQHgw0ltXwzzwS8JQuysAvr16TNI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjt2LHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmph5w/+KnvBExSIxucz5LOM6ngoay1/nhRMeDrVxJTVqj8HSmmsGT9M\r\ndRadDC0fgx61DJHqNT1p5LknAvtPC8Y0EN5OuJUVNObOAtYiBlnsu/4JRfQ4\r\nAKW8Ykd+ii9IIizSyO+PuSccCMXkovGlzf9qBv/yeumLZC3//tUB0b1enZ5X\r\nriDBwpX5pneFSTVvRmilN6lR0rMXJWgdmxwN0QH1ykMA/G0nl8r23oEOf/DO\r\nUHOCGMbeJXC9LEUlm+pbhqm77G5h9oLRe0AiH/lduBEOXGnlEOI1D5DmiRfn\r\nm2GBiBK9PB+/7KmSjjylFQXJRGk1cqdzDdRMwwLRzlLZ1oc6Idqjys8yqzWh\r\nL/w0X0BcrN7fYAnJzfEnY2zXWFQaBwTmDAO+LMcvsNiZwbUDb5RZ8l2g381z\r\nx7LDF5pB1EbcICI9luuUC+JC2pUTL4C96fhCuIdNf89cD/hvjlSkhdRGuae0\r\nAQuJQNz3gF4ArpF7feHyQFQWJH2RAxgx4Z5506mXx1ECEJa1GAPeJ1C5jaBt\r\neRaql4NVZOD68UG0Arx+/BgCT0TZK4OXQF3lyw6nN8mEbmIohiDJwXPet70x\r\nltLQUd6Mh45tCsbLOFL4Pnq06mHbImrwYEZZCCBqNXS+webZAB1cX9dLtIJC\r\nX/FvYVppqirXXFOyD451IqRbyQ08QLgkSN8=\r\n=G4FL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.1-beta-1672962462000_1672962759596_0.6885424725556142"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-6-2023":{"name":"playwright","version":"1.30.0-alpha-jan-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-6-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"31a63b5c2a750d8fb3d7d2184ea098f0604b1cc7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-6-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-gluIP9ZxjQ1qdGZkD0ip7bui+31pBx1vrlrItvyGrdNzxgHnGZW7xiZUK/s63MmLe2cFCwBa/MkNDolPUS2bkw==","shasum":"fd5907a9f84674f92ef61cea35ea0b8187cc2ede","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-6-2023.tgz","fileCount":9,"unpackedSize":24297,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGtZ29Rx0OcKnfktvESwRnPWphBgO8dYkv3tBOTNjzwSAiEA0nt2jFmplzlBBalHZXn13ejxDzFRXJ32Xjah2xMykq4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjt2sRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKcRAAjpB9Bvsd23cDelFwtESPdGyiU6VLanbc2h9YhF7QIv70ECN7\r\n/Rwglf3lOrHqStI36cdPritw8xNjVYjVJ2FfoZgrysavesRNELYpbi7vUCCs\r\nZtCzVg3CY927gpEs7g5SLPYQ6PT/uXetBLt1tzIxAflTIBWXmlkeUCQEaUgy\r\n5vbtXjy5EFgk1I8Xbaoqod4QfFRMXJ4twE34OKk8vjZJMAIRvOzoX5hxeRvy\r\nzgRWwKZ8Ei9kHTzJ2ub0x52NNLY0z7OuRJ0TqPQ4INQczyH1SAFfGWU+BjTZ\r\nc1Y8fMyqwOHwTU6OcQbAHEG3HJ6sTerdVko2inB0+yoK+/i4EvdA9ZX3UFnX\r\nXL5nkSn6XU1Yh19dbNO0d12bgPv8wHi9YSbyBeI6U8QmSZ3LmYOfvi6EvmhI\r\na/Gje5HS4h0b8rLFmUxPlhNVeyfuYEuUa7Xah9vFRG0FEo1bYDI0szjCXwgf\r\nnvevKLS5M3BSewwEdRWEkF89GTJUhhnPtchZRRJIV0dTPHOTdlt1l6lLZR6h\r\n4L/iIHqYqkEj4kHsUVxcwRCl2KA71rtj36bw7JHW3bpR35rtR6a6AYBDyASi\r\nRkITsNsyZSpQHSfJQR3Mu4MdnUOlZrVY+SunkKQZKJiuTBD4FTXT0PTvy76D\r\nezPEIJzElulQJanOWLTu2ab9yUjJMjgMAB0=\r\n=AFzl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-6-2023_1672964880800_0.9627605918384989"},"_hasShrinkwrap":false},"1.29.2-beta-1672991382000":{"name":"playwright","version":"1.29.2-beta-1672991382000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.2-beta-1672991382000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg?style=flat)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.46-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=mozilla-firefox)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.46<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/library#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"64a18acf816ff937cce1407c2a9e6086523b35a8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.2-beta-1672991382000","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-jJiyGaLurfQngM15vtnxekuawrMJZGVnPUYueaTCW2HJyIIDQbwP18GVKDVtSccQZWYyOwvASaoEmZCgfMtqSg==","shasum":"38c0b19a3e1141dc862ef3c5503fd9f0879d635c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.2-beta-1672991382000.tgz","fileCount":9,"unpackedSize":24305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBDtdwYLbILSOPmdT5LmKTqZ5Biy+PuL189DtcObsq4FAiEA7hxIPVrw1hrSSVm2600laHgQEChJ+CAsBn5rVVZBJjA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjt9MgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0yw/+PPuJpOQqkkns6vrvM7/QOrhLBrTnlxFb17OaojlVv2u4ypPl\r\n3JKJuboRrU2oPwz/8Dg3YDiVW5Wl2KFhqV50CudChVMBQY5BU/KKsz3xk6cJ\r\n50bMxljJRqYN4q5ehG8YvbVXOpy0fXBEPSxuCQsHcz3SSlqA1Dc4myXRcjsa\r\nsnPtDRcaA6Mr7joFRP9r0+6DV0ZQOze79GF+t2WTlPV8F9YTch9P2w7Tb7AN\r\nKqnTxqUivy6Vf6EFZtVsWl9DTvrPNugop1LwyCSThQgUpLErhdZFz8v+LPF3\r\n9lSNWTUFH6QJLokibMxoSKzfiUjzFfE7OV6J5B+4uMohAYH0mBgcQwVSD54Z\r\n9MFqxjnwBU4VcyY0rowhRwhVzvKGOcejh6TKrFMrI5lkrUIpp5xPgaeCrv0z\r\nxpB4cx0FmZui4Thx01kIXmm+Lr7rU+dbpdOjH6cCQ0tIj67C+KyNIbbnFnw2\r\njG0SJ1HCMz8aYXblgkUdycmuSrCokkzbleBDxA1+ieLZ76zRcwNgeoR/BeKM\r\nTa3Lil8CHsiJNX5+fPSx5SKrxDd8FQXJBkdY1TlwbTEEbkZ9mMHlCT035Jk+\r\n0OqeRMMHiDWBe+1sQD4QKhuuPI7iPKFfpz2CWZhvBxvo+UJM1QeS2naS2YXT\r\ninzim0ZB5oY34t4jxPst1Cvw1nWy2fkmrE0=\r\n=4yuQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.2-beta-1672991382000_1672991520579_0.07596615647088334"},"_hasShrinkwrap":false},"1.29.2":{"name":"playwright","version":"1.29.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.29.2"},"types":"./index.d.ts","gitHead":"64a18acf816ff937cce1407c2a9e6086523b35a8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.29.2","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-hKBYJUtdmYzcjdhYDkP9WGtORwwZBBKAW8+Lz7sr0ZMxtJr04ASXVzH5eBWtDkdb0c3LLFsehfPBTRfvlfKJOA==","shasum":"d6a0a3e8e44f023f7956ed19ffa8af915a042769","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.29.2.tgz","fileCount":9,"unpackedSize":24267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDcTrgGXGCEC/E5t4vRvkL1FHwqzVYNoK3b970xAGhlAAiBX7e5SIADmqqoVZDGO7yeN1m5/+VOUCXnE+BEO2GmZ5Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjuGNMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqv4RAAgqvQZlgVhq/NF1v0Ye02zJc5FhNENuaVni2iThX9bKckZDgv\r\nWl3QzPDn/3hvaYitv6PUVSM018IQKuX1m9Jc2jVLl8fFLLeS8IlJH43IgbOp\r\n+Wk0wTScsDFBbrsa4KRPFRBA+0n49wa3RL6sZNfsooHoFT9fR9xZX5oATMhg\r\nBqI088B+PtPrlVnVPK29dvDKTvB3CITWoWWcYAvADI2bLmWSTfWxk1tsvo/f\r\nzo7+7j34V3aZ7cEggEAnWE0L9ehEXaiv56bxcOKxyKLiUS99MlL/1VlJ/Yzh\r\nJno7Sbm1IbF8Kb7f6IyAk9O7Zo+Yrz1VDYy1TyIgNi+tWD1Yw0v3OpLknp91\r\n716uy2iRIrLGnSyqohNd9DpHiNe9KTFp2jp2rxv7r5K84R+f5qzsTc48/5fi\r\nmGR/efKu9r+pU/uWIF9LMe+/ONVIE2ei8A81Ka5umQioZTsK4nPl8GQEUjuj\r\nGbHLMkikhNs3MHfCSwGI7rycxZLyvtr6qFFsAwbUEmzFXG06BGsnwcxsumf2\r\nfUswd9YM/6tjbFBEPLfwnLHdGtb+4mliNjkD3QRKLbjHswt4kQODw1vf+r0S\r\nDax5OpMEoGE2qzz4j0Oa0GqW0uU93JFPtRj7f3kRe0PFqD/LcR2OBa+N8qih\r\ntgjQq2x7NhFNUwY6+bD1Zl9G6RXbu1+HsAw=\r\n=ZABk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.29.2_1673028428645_0.5347910825865339"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-7-2023":{"name":"playwright","version":"1.30.0-alpha-jan-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-7-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7bbaf2af21fa18d2eb7bc052de22e4201db95778","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-7-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-2YNiSMPGxsd2p4kP7zFs/BZg7s24kZzrdN8kVOyWBtQ/tEPVEE6pbBSjCYWjGSHJk/nSwMUg+XlGX4S1IBkpYg==","shasum":"0a735e4181fc5d9490f4a0a6a4431b90b1230bc9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-7-2023.tgz","fileCount":9,"unpackedSize":24297,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQfXcUZeWrpN4+mgX4cpYm5Q+Kfw5kdbXNbiuXGC4ekQIgQlY9FJf38E2oc4UKK0AYqJwFn4AM0QXE5nz41etQW3U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjuLwbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCMg/+I86ZeLA18ENzMJuRR6+onIVu/AmDy0sm0K3wnvFadsJ5mpnW\r\nA0S33bxycutzwQ0vgYZSDel5z4weMhrqsMqygv97eQ9zbXYvq5wWsux86cBN\r\na/HGf8LzQ+uX8ZusNEmUGLtGtcuxjx52DpPmdm1xpz2E6pL2PPS+YTQuDfQ0\r\nxbBrLBW+FvhWxiH3UqJSD8zmNvH/hw7FbPJ2gi4RXPC8eu2CPc63EAv9D+xh\r\nIXkvjLrGxXXH/NB/UOQT5WeV62V6Uy+FhR35/XMuKFAn9ObpZnmO/GVdNMbN\r\nVogUTGNwlF+tS2iBAEJk+PJav1nmp3/N4eE5G8CV0OdQbJBwzfW/Ay5FkZg9\r\nx0B8Vxstw2OBqrVmE7BuAEmS1CjXt9QmIzOQDUA5VzLunabB8yQV2YjQpXD/\r\nNdoQe5Cibm/CAT9khsvbIcuhIMrofOdfI6a21vLqovSfX+DpZYWuXcotK29S\r\n8cv7KZCZXMzYdXbU4XgcIIk/uLqPFCyYIIHUyzCmFtGw5lRSETfnUtaavj4w\r\nf3rUUtGYu09dZfhgvUnKVeCN2SCZ4UCUjwVhyWasxmPiE3ycfDW5N525oUaQ\r\n9N/Wq6A+K60iP8vRcDZg2S7dzvpKjldVORNJQsLTx8R+mdZBPhTM06Xae5Fa\r\nUnDwmID64Zb8Ufs+UZUkqYDZMDjJWSwCFTQ=\r\n=o43M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-7-2023_1673051163719_0.6925971894221099"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-8-2023":{"name":"playwright","version":"1.30.0-alpha-jan-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-8-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"830c3c9f0f8b010c142139eec516047eff89d949","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-8-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-dd7RCAKmyLiqQBdIqgbuZPLcR5owLGzaHjaJnAu23VQ/684i3zG6jLlE3NiCpfuko/VYIAOw/bjaeF4/dKuA5w==","shasum":"4f45150d0ec281b69731768fbe43f0703ae58ca2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-8-2023.tgz","fileCount":9,"unpackedSize":24297,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaP3aDkHBc7OnmRVYzQFFShJbkn0+gceIEUUvsEB9fnAiEA/9IwWRX8n03xXJ/sfK8MssgOXd0xCpUN938gFHK53fk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjug5JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHyxAAhYAfQkdhEEXbhbnvjkZL8lGZ1yUd59KJzU+d272RbCxKi1iG\r\nky9t0yvwDVOV8z94HFyFTALy7wIXOSNEkIH5phSnb/4m/linhpUR47QF1/pL\r\naCkMGYrvmcL3p00MksH88mWTQI3MpEnx9NVNd9d9I0Utv6yPPErdrZxqGUe7\r\nZ+36zn4vU1OCb2l1kTaHuO2XXuyRTQgtHdF8gi3OQnX+gkkTrq/2kn1WRAcl\r\n8gNqekiEM9qd8iXEvHW9jSKaGbaxc7zGTqXGlO8Js2spP9gZT9eSi6BOBZSK\r\n+kD2enYlhQpgX/giU7+BvuNHUz+AX7dFtF6O8IEPqngkxlaVd+0lXwjsz4Cp\r\ncsQXNiwkY1PDozTki3oDpaMgoN93yRmdW15i/HTLhUW9K2zCVwTqe1eA+f0S\r\nkELXehgQjxCm9QI2Lqd3WuQapka1fiwyXklxxLIsXZjs8QnrI22WavQo3pRd\r\nYKsQdq9oT8HRJGS1H/elTxFfGXhJ++JSTNkRi6UiWJDb3YuzEGBDLglxGWD+\r\nIaiI5TCD6JjWXfCXJQYzZEvLhDnnVOsW2PG1Q6AHJYIB9y4jsny4Lx5m/Er4\r\nQxcMXuIfoMaOlPGp+AWnpxMHfZ8ywkHHGbX3z6EmktER0Vg0df/VVA3bC73+\r\n7KS2imfKipFfAV33rLmfPc3zXmIme+HwpUA=\r\n=S3ye\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-8-2023_1673137737680_0.7291984685165276"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-9-2023":{"name":"playwright","version":"1.30.0-alpha-jan-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-9-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"830c3c9f0f8b010c142139eec516047eff89d949","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-9-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-KKwlhxg7FMZlwam/N0LDpWvwp7q1ruw/gnDIw/NQu5BcKMOrb5R7vPZIgiYA1Zi7Wpr17AZEzosunARkpvZl5A==","shasum":"fadd15bbb7d9a55b56e7d0a32cfd18609578514d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-9-2023.tgz","fileCount":9,"unpackedSize":24297,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFg48JCPJpmCpxdlfUbX3a9WMJbmXSu6s83/VDefNsTAiEAxVRRVpACGSRUZ2YaCSuh+o7yBZQ34VvpVNPOfVB7iXs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJju19BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQsA//dtS0Idhi8uXqFBcJ6mE3hI7D6B0pXEGlhPGfMd6EzFiJM4ZE\r\n4zmdM/6x1Fds8SWtZ3TjB4JAlReD1qn0SbSmnY3kb3KQDt3MvaN1gVebqnlr\r\nJP9Mjo1B9OR0BvGRyAibrKmAVArEmre2/kE2XwdnxGJBqF6hKumCeqNQ0Ryp\r\nvJ/YUDFvjJFYuW5kvPwsGRDd+tZ+Rur40lFDpz0xfD7xdAZVPaCn0u7nGBRW\r\nuLOSOVXTURtxTNoDif3ozCAc9ms/yz1PpCYnpNBkeK9NEeYSeAmSaBuj9cbd\r\n+ZTgLqjYhP7uvm3r6uHWbmOBFob5yJltsDIfrghCxABcHAB1eCX5T0DULkJq\r\nCM7weV690ypqORgEc06y7z1gJP4a/W0zXpI5ExnupzOeRcIAygL630weyht7\r\nUX4bT5igGBz9VmtgZqJ8nsvspkM9sM3esJKu3LjJCK5H4rE9DaUH/1q75vHP\r\npUktq9VeDenSJ5BRoCYvZDGN/Ct+U4akq4rwqke6jyHElkVxIjDL0qBPXaMV\r\nULANtUH5cGO2N1/vvoDW+jMREq1IbH9cBgJDLdDo+cRHStxZoFheSlmYTD5H\r\nQWiOfDCv09VDE6RovpXH5WXgehAO+ZnThcGCnIJ9xmDChPYSIj5C7mpn5Z6W\r\nN7TKSaWlhPm3D+EnyTtsJ5yiLJu+uSbzQj8=\r\n=VRGS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-9-2023_1673224001657_0.3684387112048686"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-10-2023":{"name":"playwright","version":"1.30.0-alpha-jan-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-10-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.61-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.61<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"28577afde4293c9514c190f578e07bcf2f68969a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-10-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-6IdFZucdQ3x2HcxvuUwD63Zk3Ck19kywO9VBAElZrEwc+aCByoiDg5Z/CoUqPFuwc+1tfXPeUEuU7OH7vB8nCg==","shasum":"38f6f83521c3d569ca1dce90cc03e1daa95a9ca2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-10-2023.tgz","fileCount":9,"unpackedSize":24299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9VhokPCgCs9t2x04EUapqmrU/tF3A80r1uCfwcVVZsgIhAITHcR3QuJ5b6DJWUoJTHYotpFlk0ctoO5P/38oKIRtD"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvLXJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUBg//cQA+LxapoHVBc3ls+Yh7S4YL9zjjpv/Boj11nySjUUTiJLYd\r\nML8ivYu676jlrTy4zZCsNJ8KZgRK8UlVuQ47yTDd3U5dvBSmB24CkzCBfTyp\r\nKO/HTnBnoVgmlRl26ygtTHlB5jCiJjXzTUnluXXVLbce3xOuCOdIc0KgqDxT\r\n3CtNNSf68EN+SuaWryfn2f715vSRnhCceLRzOfakeEK198ttoF1yv+nS8CVt\r\nxQJ4WIKONHVoCnuACWHQ20GRdcsu6CBAhdiURGYOnsrIQpFy9jf9frEQ94V5\r\nz5FVvZqqm8+9sVbG+Dw4dxpWSawgkbKUtUzqR3IVSpeT1S9BLP1eguGmlQo9\r\news8xOmOqx9RMDnK0YsXRhW0KlCB5+W+i+h+JMeGZrxWASD5MfqmOH1+hnJ9\r\nJqB7wSxrDyEmgeFk1TDyn4Bg5fhXLgFQZ50pNvU98pIrswy7VwnhvxFXmOCy\r\nXqW6m7Fn//lzuAJ2QLKutH/dwHNZU+cB36ao2Rihkw/sRhaJf61pXoGKet4m\r\ne8wUfax0DAsrU8lnocAmlf8tzO0swskEffwXooBOA9gS+ds/+GYYcqn6Wwv1\r\nUpdl6eaL86zVnkmGjomTllO9kMd8gwjp1GNae94KN+zwIMQI8/z5n6DPQaLt\r\nbxx5DHDoHrfRRgB7NkTwH3jVy82HucpT60s=\r\n=4JgU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-10-2023_1673311689253_0.5752099227648966"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-11-2023":{"name":"playwright","version":"1.30.0-alpha-jan-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-11-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.74-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.74<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e674ea217f5facffc668bf7aaea890dab20d68ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-11-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5sR6syl8qN6C3YROhfEE7qa80z5pE9mSqP4n1FUedO2cIsOMNajO4TetQH1B8pDJa9kKA7BP1wUisqtSPQkUNA==","shasum":"eb4a980edcad2d7dd69a91d669ddf3a0b5b7ea7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-11-2023.tgz","fileCount":9,"unpackedSize":24299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRoD4/H6E3Z9iDttELU4qBCU+P1s25+W7clK/I1BslbAIgY6RwB8XzTVQPBMYOWK5gXgq9Dd9/t4TmYvQPZqw2f3c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvgKwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSJA//em1v28tnDI8pzzSFghoFEaLF+ge8Z3nysPCiyWBLK0RMsKsl\r\nlEF4sg09VlY90KNN/oMUUAfgEYuV9pDrcCNacfv93ec4NRZR5ZlM1EPDVijW\r\nxQ4KV59qUBz2EwEjRcGSTpKute+9gyy4Jldbuae0Ak7a4lHe94BB/kza72/D\r\ne5hZhfsRVCKn1lnn03wrHoFmixv5wGd5KFGTAlB+2aDkPuBlS7lhI8zjeCLk\r\nvszG+7eT6nxfm53L8CFIMdPJoVp69PI8Zf7BzGB3Rv+Y04cEvmnDQds8kbZ6\r\n7TLTcyUs8lbnaB/jRhgkPijC+rTWj6YLaRcPRdBnwSLGWikDBT8oZQNe7EXd\r\n6mlKrGuivimQqfPdD1d4JVm16YUrW4EYTbApnh5eWIdvR/tiAMQjgZQNevTw\r\nIChqhC5wCNwnxyq3pe8/8aTHFecBEmPfdkXal4eI6dgB+i9qN9lX2iL4pZI6\r\nSdHetxUCM5Kz7mfzN4V1cn0wjDxAMYyqSs1r7+EiG3kxBYYewzwTaxx03HqH\r\nzgGm/N5OChMHwxQKnVwvliG6hHHkd73ykEK6W/KBdzBE8H9mo4siu6fLoDf/\r\nTVPSkeKrNn5EEWbCpG280NLwNfXk++al3M8GvHMciNpBdvqWHopJNqEaJtn6\r\nlnh+l5k7Nkp6s4CfizEBP1PSqRK9+9i4nYs=\r\n=+wID\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-11-2023_1673396912081_0.08932288489075457"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-12-2023":{"name":"playwright","version":"1.30.0-alpha-jan-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-12-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.74-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.74<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed1c4b582fbb55dc160816f08d35a18d9e9dd0d3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-12-2023","_nodeVersion":"14.21.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-cI6X+4qxd7yWWRfANOGjhBia36FLgekpeXvujdqjtBLfqLcRRQJd5vFj88OXmow5U0mNSeqgzeBt29WEwtic7Q==","shasum":"98434514492d8216c0b3f60304971247a01211db","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-12-2023.tgz","fileCount":9,"unpackedSize":24299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0pxw3PQQ3NEme8BfD+MrfCyxqjEvq1LLAuilzeC4mPwIgf0j1NNtfyEYQVdDi0pYGQssl9/hfgGJ5UsLEsi0VTQ8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv1RBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGVg/+NQpVrVGSG9x3ttuxlAxl155dRhdUQm2r/W3dd0BTm1uTWi0m\r\nTzdjLitwVImQpA+JP5sO1B7E1/BVeVLxXBvL5fV+EKCwYgGqS8iuh0UMy5mh\r\nJmFMWZs9E4FqqcK/tWc+6KHI7bnCCCvnFFViWK2l5YX+T9LAeohwtgrS9HwL\r\nLpqNiJLoZPi0N5u4clGNqzTcQ+VfBas8omfThOCrfPBTvfGzrYo5ddmxrgEP\r\nScTuCOX0EtdmQKmsz/cLzBRnZh9xTAJdeM/O8qCSvdPV8goFCLM+3pk49Vm5\r\nDMW0mOF0usUjVfJKkb/HKBg/JZAPQcwtktnb6Mbdk0OvYfMIe1uxY4sWnJ44\r\nshT8KteMyT/VGWCChet2nGfrteDNOX7/585t3MOwYUavU47pgYPT9vZaGEZe\r\njkwbHeYwlZK+55Pb8QOY4Wkj1czGCWSLcS1wP7CXGvOVxphE6XO2l7DSsxsh\r\nZhDYGsfZroHGhciyiFssMHx1dLv1QnW0jfsesJLUmDldwA8pC2bXmW9xoZ6S\r\n3JtSlYnBsmgFVe4/Fyw4h7bv7hLuL7unnS0JdkvY9pU8Jvpcbm7GD4FXQeD2\r\npEV3wTroUocqZ2WrpnilLtw9rvsWBXOG8cDG/V2UYPuoPz5+G1T6bOp2lmu9\r\n1ff4AXWye6Uou1YHVKY90GDrtglw+AJaVDk=\r\n=zAGx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-12-2023_1673483329181_0.8562849933226824"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-14-2023":{"name":"playwright","version":"1.30.0-alpha-jan-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-14-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.74-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-107.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.74<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->107.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d1c161ce99d79f7eb3b3ea279e47f7e13da4eb79","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-14-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-H2gRka7J2eVMScCtuv1L/bXEBo5yaOTEPIaEzuvmmCFY8l6ZEkdZfe0YU6Q36XFaPUnIvb/IC1nzIG+9WIo1Mw==","shasum":"713d8703953b1e3f59db498fba0b7f6c3a84d04c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-14-2023.tgz","fileCount":9,"unpackedSize":24299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDab1wl/X222VGFDsCq6/ELyXRt2Ja08zNB7N0ALDRBuAiAAikOoAvS6ylJlfA7t8haqPleL/6dc5GrdUrtgzTg6xQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwfbPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9bA/6Ar37ewRhhsOls5467oU0uI+O9XG8RlujTR/UdizqcMZUdt1h\r\nvRrB20tMi1GNkDB4etdqoXtLnGfQVSo0qO33cuuBDCp2eprSigtaMEFR1iGB\r\n45v6O4hLTDljyrPT7dr9iPT8vhqA9NL6FBCZxU5qozZ+YyE1JvQsEJatd1+C\r\nQTaWo8MJI7i0Mxju+VRvku5y4QBmUso+Ta+xxz2NT3XfDivCPzykXnWGuzkj\r\naUcCYQVNWP8ZmyL3nrTZDVmAHxc0attkvSx9lizu+dSzhui6XBVtoxo5eKD+\r\nERIppj9vgVq3RU4ycG04dPF9rG9GnctQj24qbydN+09ExUBImIbGEsOp3s4L\r\nWAlyDCVVA29J/eqf7LMrBMWqtcA/dFMqa3J06SKt2OsiYyxyZNtHXjdCUDmD\r\n75ioZqnsrJ4E1jbZF7N5wLfdHaiYKqnTTqCzLmA1Y+VmImDjqSE5z5oHVE9e\r\n60eqV5/T2z3/1DQVjK2VZjyMRto2ak6XkkWeUt498VbdJ1aQnQHqEP6rIxnp\r\njs0inelSMyVBMyo61baf+JPdwq+3h9SPgx6NUdsrgvwZQvt+h0ssn8Jjs1d6\r\nlIIobuQZuWcMAEPPKD7xW7TkmttwyD9yj8uAnDnoK0e6/CYnKFT1SPc38nZT\r\n/VU9N/cunbX/JCay9DJxh12UP4AN3E3tHJ8=\r\n=OiLU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-14-2023_1673656014874_0.6900924885451767"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-15-2023":{"name":"playwright","version":"1.30.0-alpha-jan-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-15-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.74-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.74<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8671bfc53f900f807d1b61439bbb7356f22e4f49","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-15-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-z450WeTimtfm5203kJ0gPxEQEIhGpZaHOnl96xuXVcmFqS4jxqaCzvAIHgPYwAUTudSDwou/PlC3OU3NASEaDg==","shasum":"4309aff8e42add421782575abbab47466451ae93","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-15-2023.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9yi/d4UAukO/lE2S/LVNYZOLEoJ9GYe+nIGTtQtMzPQIgHj6sG4C97qRHI3Dxc0NEft6W2kLIVmLEjgB19aGkNCA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw0kBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqG/w/9HDrjLfLIw2n/a1DF3vJ8vO738P+ZFDt4yKdGMGcM3zWHrpnw\r\n8m8gT+EsLRsYvGT5jedKcezRUUU97roXMAAgnhD+sWHoxQ7UD6LjDo+CWnGN\r\nb/nJdMuMIwBWXB6IpVYuO1cWGNhsSkidvaVbPLsInxPba6DbPMOZh0XITnKh\r\n8465XjC4jDh1pZsCm/YqwESWgT6YVMOMaRIJ9GpZV3RVElLxnyKyZUGqhWts\r\nbiYmNwHqoaLcssC3CER4CowDZWM5fmSpt6w1XPdUbD16m7zZlaNu5Ns8T9YY\r\nWNpdfpiTl5iJmdBJhJewOY4Mrx0nRaXuyh91UIB5RenLKToBvGc6Ra42U6oO\r\nRfA78ydk3fVem6XvKOXa+DPEi4H+PMjLUHeWB7T5JL+VvVzJS+VxC33+VUWj\r\nO8vKcBaRQvUo7Yaa2QR/1HNokLWDtv1wtUdSf3GJtMlJmxNAXIv7mExLTWTz\r\nstju7kW2QNE/vFZ45FxM7yRB2MnJy1q2/jK2DnWaiCJwl5kMX7KzCNXkWQgy\r\nb9dEcR3ccr6prJqnclm4NC9t1h5W1Ri0t7BTzI6P17Sf6sERXijvixCcQMLA\r\nwFn0SQGaA8dnXOQewUB2BVbLpfc7O2S57G4biS0MytahVu5wOzV8W1tUZOQC\r\nlXJi3RXV3Z8nXQAPT64WoRfnJSZlvGXpoEc=\r\n=nSJZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-15-2023_1673742592880_0.3898593784565332"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-16-2023":{"name":"playwright","version":"1.30.0-alpha-jan-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-16-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-109.0.5414.74-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->109.0.5414.74<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8671bfc53f900f807d1b61439bbb7356f22e4f49","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-16-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-/WgoFrTqScY/6ogxm8t1eUYVsB5+NHSdH3q8SpGv3liX6OoQ/gLCaiEx3sgt95/DcNIqd5NyHqHfyhsRlsjuVg==","shasum":"fab89d740f0e7da888a15131301d1c635f01f263","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-16-2023.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCB+jqgY++8uYkk4cdIysw2ni83T877ve9c4RQslMI87AIhAIetGQtKxwJys33oWOKi58YcRTav9eOVTopPoQjt4h2V"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxJn1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpK7A//VO9zxIQZCOySOwTseDkvGyzs50m2fONRBxF6cYRzjMZ/awFg\r\nhhVRF9HMFUj/1rBJEVuDfvbSekg0mWs0jmaD2iLyQlM7mfm5ISnVos0ofPg8\r\n5C3cCa4MI3hPIpzQZye8LpNFibZE2m4ZfGnck16tZhwwt7eyub1E80UZWZWj\r\nPdmZwir6h2LHgybxDuF3nD5c+tsHhRysjt4VcBUjXK8UOgdTxl87Sn2E/Wnt\r\ntXpmFoxzNPk89kZ3NfB21Bup0FD897tLVo9xmvNY7U28d+tLjsnCKfbauQwH\r\n1YXMj8VfNmClCIceWFDcnIkhA47fjjj8SlpvdzCaKVgu0nwmND6ViOKLM2Ca\r\nkm0ZG25lhLCHURDJkF0hQbfhlfmqwcR/e5/yLx6slw1Qsx3XzatZ7k9A0Est\r\nC19lA1kXu8ddyaNyxMKX5DuJw9RP4XYpIJHxdYegqGM+pxEOmYPg7+YNKJW/\r\nYbyT/k0ENVHjde3gr7T6xl2qiJqJXq7C2KAXawrQRURyggBfanT2HVi3uNHH\r\n34VhOh+2sVquCoCUwEooxFkjSTkRmB9xf4qo9ltnq2tmH47YCjh8xUteuEG9\r\n7Wujq2OAF6nYQoaxOiMisbvV5EbPUc0yo/S3FrRJnXiXxByR+Qzr9I1gNr8A\r\njWJAyEX/5QZZUbG1gP3j9Mgq4kQZvDhOh1k=\r\n=RnrR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-16-2023_1673828853350_0.8023048568697273"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-17-2023":{"name":"playwright","version":"1.30.0-alpha-jan-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-17-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"92375f63338c32aee8c4f3f9b70660577e1a87f2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-17-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-t1sSWriTKMhOUokadtaGX6G3mFzkr6tNo6uT9wGIrFW274I9x5gfezc4R1b2yi15NpwdJnlRwk9+eQXrmtYqYw==","shasum":"8a70212435999fbbc71017149e00369fa2625062","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-17-2023.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGvmAAq2N9JmUjIdMwGSb13UkLUr28C+hQDfcUK2HePRAiEAvdo8snIuyLR8E0+71Ck0YkYZRW3RbKI+mjPb2cu68lA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxet7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkrQ/+M2yvtFhrY8C2W2heZ8MdZpI4CHCQo5siigsf2uFno/+toZBN\r\np33azKelQ3T6ZR5S9ic8kMklMuuhH6fKRfJ540HMcL2N6jmBe7JTaSyhwotC\r\nNU3sRWP4jewIE2hMDFGJpTjYakTy60uZey8xXJcz4sIg/Z/ueZlBwdqPWu+V\r\nhuAdx0XTB5uF7uXzVO5s79LaK/j8VO78YH5n5zKCUfGmqw+vCeklOx9iqGV/\r\nOcXT0SxnRPs1Pxzz/fGXGA29oqi8/HoKYo/wEHBOvXCNfzC3NWFdW613Xu5P\r\nF1+/96SoC83kapSaheo3P6BmNaTXKly/HJAlZeU2CwWdHMp16GdqL40LLl9u\r\nsqX6GVDwtVp8aRzY83Blu+U40U7gYF7ZDi4E648x82egsD3CWIWdms9kgewB\r\nAI0/YGdWeBBtxDM4rnxCujY0KpHKK7jwu+Xn+kG/mWASCrRoQJqwlzeyyVrw\r\nN2m5I5D+q9BGOUhoxrgvVL1Wqors/zF9FqRaPblL/HflEzKmShN8OoTTRGnp\r\nXqKkLlwXB5FNLDh5w3VlHxiQIjG3Doo1/6wp/Lqx8HbWyCATJ7GmxJgDIDWA\r\n9AUOs1X7D/eGIUH2UBrlaW+hHxp0O9QL/Zo7ojGnGZBD9RMVKHh3aRKxCv+1\r\nbFW5L1FzszJM5bgdMwN8jF79PSk7bgttx98=\r\n=iU9T\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-17-2023_1673915258879_0.6176942663782674"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-18-2023":{"name":"playwright","version":"1.30.0-alpha-jan-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-18-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"020dcd89fa1644be3eba91ec078c5705f7d589b1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-18-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-dxENQJjF7M18XnEQpr0VdwAARKclXsutD9g8oUJC3ph6KRcQJASLq3IHuBB6eo9pvvOSEa06ZqQIX+SBLWGq0Q==","shasum":"15d07437e9195d2fcfce0d846126e8cdea615fc5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-18-2023.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBY03963+UXZgL+7Z8QF7dCDFLQepTB3ieiuQZ4OVXsQIhALMv4GpCzTjuvO/H15TSmegfLrB4EXXVVTOGSQ9rw8FW"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxz1uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqnqg/9Gzt5y9ZUR6fkrRTbiwLsOJsiOFzscTQgLyfklGpg5KltYYiZ\r\ncXOvPh+wbrKza5Xd2UF2wHSPYbt1UXUP8I0yViCguPAbYyEtZOt9+gan0sC/\r\nun6WEaNyOxbfYAjWaaUIT+420RgS0oDZA6fdIIOKxzVe8uyGuG8UAfMXIHgg\r\nt0cv1etdvccn6bo2ImxnsDqBvsRWHwEQ31gCdTOhyuw9AO8kzu3B9Otfdkso\r\nnOmVdub0Z0BnTDgLNGCdUyfvnlOZFqt/4B4cbDB67NriTXR2/Nkkt5s0gLmj\r\nmQCaPhA8V2LAjf19ztnM8QchdrBP9W7hkZzsCxOSEH4kDZU2y1TT4ctqYr71\r\nqsHLzGcR3vKkcrkNheOwktq1GKT+vX39PRN++mjmV1t9rkmF4xO5qFCZcJG6\r\nD42xCmRSjb5kjJK6Abi5SXfuRtPaHLhd83J5bt4KKAK9mqlOn65aGfTqmXvE\r\n+xycBend0JZFfBVGN9nfjBfdgEktUKL4SdGTg8ZCQixlunPfjSs+kH4qaIVn\r\nhOiym/dkTbK46kw8/Gep8/LfI0fkrWy/76hkBunx1oxZS3TaAXi91GSeELU7\r\nFfnYPS4QQNBK6bK5NAHPdyq0zeqECL09Ig4qdizmCPVArd8fsJd9+/7TwI4d\r\ntJ77rAiLI5LC+ED3jaJIMgLeExe5xNkJK3Y=\r\n=EdyU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-18-2023_1674001774419_0.7096667297037271"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-19-2023":{"name":"playwright","version":"1.30.0-alpha-jan-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-19-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.30-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.30<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Community showcase](https://playwright.dev/docs/showcase/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e08168e16e5b29a678cd7f31e201d9b851666cde","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-19-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Vs/LOdLv3Veu+Jdm0w1HinFQakAikwYq3tyIXZXv+Jh4yHEvDVMSV4qKC2qIb8ap6aBuOdDhpSNT1iN58Tfrpg==","shasum":"103384ee00d91e6e8c19bf4bcff53e839062a501","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-19-2023.tgz","fileCount":9,"unpackedSize":24303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx6byZXKKFcNzjvW18NLwwU00H1Mrf1+USZdq6iHil4gIhALNLWN54bmbRVYd//md8BYiyJTDk6cg3a59XRivMuEj5"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyI6rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4Ug//U6ZvohIIPCF4COIy42ttDZxanCRoVDKeoW4cof80mMfZ3yTz\r\nzFJbM4lfJ/NTTuj6Xce7yisLR3PsEWDPKoT3TA5G91ji7NQgRtzjg0s4pHL/\r\napvBinVfjoNk5JNpFXthOEfJ4px6Qp53KTnvq24hIcA8QtY5JbacYrrHV4rS\r\nflNaYotpjxmsxXrXjBRmVAoRd6lu0qXilumgo4Jwnc3cTdBwcJmmh6jLfI32\r\n/1igc39lnEkMO5wBksCrUipTver82ptdesd8eJXpKNYBo7qw5/P/yxBDhfd+\r\nl+TP2OoBLiNVrUPhDPWe4kJE7OcCTWNQjGcMRfP4G835CLHtygkgG0OItxyd\r\n4DCPhJfFe7OUngrhujUH7o36q3feCPzucuLHVcfCmMucLps9xnKkZiq5KS+C\r\nlRdgL+cxCU0FOPLOaigkccl0XfpfspH2NHO8X3BZsIygj7xfbaEze823ux8J\r\nSLBwFhb6pWqP6VftPXM6anoCS2BYxMIN89+ebJnKT8+vsomFAE8GC+kbttZl\r\nZ7kTT1nfuHIlY9Tk1oHQWwTvubz9xg9i4jKxpfXJYQu67YHG2Z2gfw7XrNRd\r\nONaDaWPNw1dOX+oUCFs3bWSdmxwWZBu4DghxXbPK6/GoLJV6S/qvhGW/gUkQ\r\nYsB5BHZyVif2c9O5hwk5SuIj4wWdEe7l0YU=\r\n=qIP7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-19-2023_1674088106813_0.5832966287375962"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-20-2023":{"name":"playwright","version":"1.30.0-alpha-jan-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-20-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"411a86512dc215f2a38cbca05b2c61e6cb573e95","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-20-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-JFQQTeg5ZDxugImUE+mXY8DC+5T8ZaYzZwiaHdE0S5fxDXQa3KA3rn1oCiShOu3qUlpuYkINWLDZ5FDR7WyUmw==","shasum":"38f0ce6ff0d32aa452683b7d4686d0dded0ceaad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-20-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDin+quE3L7+M/7TDDMmUkhLfXP9a0iOaNnpHAPizHD5gIhAOcdbxPkjqsLWv3kVQiYb6e5hrnobO+/s8ENkfyUMX+x"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyeAVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqoQ//b93EVm4brRgplAV3aWfLp0yasjona5r5zrPbAIFC+WnOeKh5\r\n2/kMhD6otjeags9BKwc363NMhFhtmPoDfPd8mTKUWtLVmFFagPPUUR5Q5OM3\r\noZMnvDPYhgH8kaXalUXf2Nc6Rq/nuLoTS5V4JLoYQhaDVqbxDXgEZcvtrktb\r\nERPywYwO1eDFuWo0S/1WG3ursSRm0u51dSRzLP7kxMZsmcGbjKZ1fltvsGcy\r\nu5tGOnf4aS4jbDgJhsfG08KlSdeVv9Qe0VOSM72wr46gC8Hffpz8vfg8wFvD\r\n+YWobCoCi6Ki0L8uqRmAD7i9XBM+uEmXfHkOjpI9G58z9QvwxqOGC+MM4JjY\r\nqmTwZL8r3ewYe376MlhTp3lIMD26iubBEZc1iJlCckZFE6HA5QvLAL+WxZdO\r\nuDiNZsVp4ya5a6XeujQq3jUBKErXmC4jQqfxCG0bE1SVGz7hRS62A7vf3Svc\r\ntj3t1C5YprUm982YqIZ17dtjcphXrQ67kukeUs+VUKJWkzpoJXU7IHl9DPUA\r\nkUdm7nIDpv0US/ZkJyjFi3GvCgmAI9F1s8J/D296d4bBj6ajgreZOUwPB3oU\r\nfluaa8GzzW3XLNhmHxxwEcii23aG3QjKx1Wo9wrBTM40vdz+eCwmgpTXYae6\r\nqAHC6r1jCLtm9E0lfmBtd6TPG/4iq2/nrzE=\r\n=Nm8/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-20-2023_1674174485036_0.13316110031625983"},"_hasShrinkwrap":false},"1.30.0-alpha-jan-21-2023":{"name":"playwright","version":"1.30.0-alpha-jan-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-alpha-jan-21-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eafa6fda13bd037fb709e622051c3651cc633a0a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-alpha-jan-21-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-pmoezaGJezWnRVMT7diijFOEwConxCKXMBXumSF73EaJRz2mq28v4aQNOHPeNv/N8UadKcnfY3UT7Kwq0ivo1w==","shasum":"4cae97a6b95fe95ca8bfe889bc7cf35c6ff08da1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-alpha-jan-21-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwd9wDnWAdCZ/1q42hmnEU4rbWwPdKe78kuMQYV+K/ggIhAKd5u+VQsJE+JHpfEzsP+fHnC5gcZkJG+W9Ucyk8iqLv"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyzGcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqm4RAAklGYkdr+wJC5Aq21tWwUMpQ7n3vSPgvGpZjMjPH3N/pI9JsM\r\ngApTR5Zu5uDTpU9RxCP4u0ACy1NvD3vcaYS+/PKOmKkKFLiDn8e+fBq2shyb\r\nsihulyXGbdlUaYQJPffFeTEMtwt2sloOt4z82O9rAm/JifV0JNnEa+tbBLEO\r\n+grbcsTrSmtWZsGbdcRl0mtabd1HT4jBVi4chWGPnmUGKd3trxngGT7hNMCj\r\nlGpKrPk7HQhyrvxoOryW1bXKwrKfjrdCTStiDa3rnsyyZt//2lxWxENydprX\r\n7tDy2hvbXjNQYD31PxoehK4nzwTtjmgRPJuFj3bAlg8HbGcxEWzpFGKPHNhf\r\n6cIThMbqgC5Xl1N6Pz7sdCZNT5H7/n4VEC9IatuGkPYQQYoNnUzAzqKwD4YY\r\nUEYzPzXBOBQowSqr3ytsoekx3cJIlT6BEcDrsCgMiWJLN/Hyk5npv2qqhK+s\r\nwNrnUU4K16c0XrxF1WjHPGns1V1jFCMW3lfN1H5DcGRXj6UZMWCF+yNnxrzJ\r\ndPf7/GPYSgO+cuDBml9dCptjlvSQK/vHpvTB7WjnGLNHcSmiNy+Cxnz2EOKC\r\ntSYMesjjfRzcN65TzcEHT5L3JB5+FCYhstBzwm7CWZE/ejS9qwK4U2l5vh8n\r\npVUi/IWF95mmUQRbC/3dG2CgrNUKn3h2qiU=\r\n=sSnJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-alpha-jan-21-2023_1674260891769_0.2639199030933448"},"_hasShrinkwrap":false},"1.30.0-beta-1674267855000":{"name":"playwright","version":"1.30.0-beta-1674267855000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-beta-1674267855000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7ff27600b4662745cdca864287ec91c0a874e8c9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-beta-1674267855000","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-oa5lLqvuBcHRdcu8CG/icK5GPdZT7ZYZ+YO3SL9MUa980LHF1wZWnXumQLLyHr5mv4uU5dqH4ZTCnvlreM/uKg==","shasum":"ceeae1a52645c060097ae6f8bb53b59d8988a858","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-beta-1674267855000.tgz","fileCount":9,"unpackedSize":24243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICYymjs7EZCgD2f6zQbYp+YAzuKRVX85sgJsPaEP8RG6AiEAjPeY2dYlLdlTikbauPHEqsHFaOZkjTeEoD+i+IaV0vM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjy1zDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+Yw//cV+IJY5nnuyNf5c4xgwyg1S/2u7EBl92+E/SqkB8W7Yv+5xj\r\nUVST0ZjPyh966Xh+w6+L7mHctyOlhKaBznzZoxnyJyQdAFKj5fHiY07tvyN/\r\nZijMdEgvi0FbD47+vtsCqM1MK3Z70mDsaJKhmAJllx2Yi9ZbEADX7jemixNK\r\no/da7OGqVYZl6tnj9xgpny2p9VdMQbjb5CLV7ZfQa1YFYLZ2pYjoH2Hx5AHE\r\nS+zEg8Ca30go6FfrMpfI1AOMr0dlojaX1z8UOjxD5AuzQQohQbARMd3YKemj\r\n2p0yHBHB619xSNa3TRQmx2TVjo82hob6E4/ez6q8wRRh1SQkDQHApieyZ68G\r\n33Tqh2tT7SNrzWEenLRTn7aXOAuqsVAyyJYrSDI8WOwQa8OZ3hPLJSv8g4p2\r\n2He9FWs72li1XekrL02OEtKStB3ugLcroEY/Z5LdNYr4Ezc6/gDLOhu4IsW+\r\nCbjcbn5XOkGi+S6JfNB2DewP7zxbN3Qgcf6CgCP4bzyohKIMaIOJZehrOxBE\r\n5Wxyn3Ldlrb59jcbV/9It73YxfoZHWHf4v+X2PVyX3XdD6X2ZyZ08i9LAIBM\r\nGfxxiQX80PC0Aon6JvYYMJtPjw/y8n6BfZTN3Sb5nVEY29MQXHR93lqREyaJ\r\nw494HTYVQelnflieMdYItuGPva2fHMLVkM4=\r\n=hoCY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-beta-1674267855000_1674271939076_0.953575372253213"},"_hasShrinkwrap":false},"1.30.0-beta-1674276599000":{"name":"playwright","version":"1.30.0-beta-1674276599000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-beta-1674276599000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f8a46e34b8147437913ea4969973f45f8b86cc6e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-beta-1674276599000","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-WkFL5Vb1TCy1Ck2iRaecY07NOeeGvL7xF94u+3xjC1gHLwoBXni8nW/9jvU7y816BTMEPMD2AlSLyMTE49cB8Q==","shasum":"814c86c17e4e13a680eb2fe9006c4f6ca35d06b6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-beta-1674276599000.tgz","fileCount":9,"unpackedSize":24243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtsoBUh2qSvLqea3Hy7ztAW+VX93uPy+x4cmzSngRY9AIgMFR7+hAj9xU69zJAym5BtiUsp2gQHI47uFEB8ZBwhCQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjy2+zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFhA//eXXjw6O3m9sb1zYtcO1shAne+YTfA3aiLu1z5jC64TFNKmNc\r\nsBbgy91Qpors6Vt7PnUrkfBfAkPMzwMGoXguQaCm0pBLRGLgXjxjPdK++Dw1\r\nCD6r1c6F1AK/BqTwcJ+e1Fh2ComOjb4/nNlPBAhItIwcvL8FmNcVSfgcW3zk\r\n6W2ndrQAGewGa4YKnAW8F90IglZNWgfrA5aNzYPvUiTGEEGZfxay3C/XwsH1\r\nEMSdSWs8SzikBShfWear8acQynwMilJKe+2mbtrfHqmdmx/OiMJAkR9fjc2K\r\nJw58RjvHK9UpjfFYaqu9N8syqHwnEjGjkI1IMi9RFtfIPr1sv37eFpouqZtO\r\n3llqxNNJ/ef6c+wYAU4DizjCofu2neoCxwyRu/Twrr695zvMpY9QNtzpjpfG\r\nBi+A2yqkpwq7FHBVepzeX7Recm2oHM77o+zlOtpbqnQD1vCjzpnNvh1rxfYs\r\n3Ccnr2filrvKN2Wq9u8pr22Iz/L62/3OLLrNTCZnwlq9GTd8uqwqfd5AMAvE\r\ncm79NReh4wl/jPfymLyD+ezcJN3hOK6qgzXHm8rA48p6AOM3bNAGVeLCCOF0\r\nKPGaEchYpU50rguE5KGJvgaLvLYN4DQh2mHaqIqNvtvUfekfrW/Ln2/NEK9N\r\nruP1/1RPBrYwZKQ5p206ofbAUjTe1COXp/A=\r\n=ACcF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-beta-1674276599000_1674276787037_0.5684819374168486"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-22-2023":{"name":"playwright","version":"1.31.0-alpha-jan-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-22-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b700c08dc5e6bed3dc23fa6f210d6f9d7a7c6500","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-22-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-CkKQqMj1pHHtYKD4Z5i0Cpyh6OWoYfS7AJg2otY3VQFhZbVyDfoBD6VmOsoZjsTB50JaNzXZYEJtTxheuRon7A==","shasum":"48c73f0930e8f9ee499047898c98a4e2b112e114","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-22-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBb2gdoaiCv47iBN9PQ6JIdrMYDJySRnk2kI6UAvb7FJAiAvocWc5J9U8xqRnKk3WWhIIHCAb/lARPm3qKIIt3sLNw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzIOLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGFA/+IPcC+xhJhyrOnVNnj3saduAJ2IJ2RzF0P2RX/FDMGqSlb0PM\r\nqnzhQjcaTSZpkT/wY1fM2bpaDpjUC9ucFYB6s9U3X5RSOmIjxkJYFaKXeh53\r\n5fcdv0QoBovCecpsQx7Z/L6SQ3NxD9u20eNePRmr2hHk9LbjfuPDJib6xqqJ\r\nXmWrcQQjnFDclwg2+obnSnIm+pJ2XJkvNWFLJw0fVgoPVIKfSB0PDLb9JlJS\r\nK4Nz1tPAP3LAaYkT6tnnemXs7HhoM8yYYyUGUevYGW/F59X2fMZORaEFx+S9\r\nv2Er3zrKVDo3bFHC1eGUOssMxAiRiyZh048EQr1HaBW/rd9PWof8qANUS8Hb\r\nQTk/Z/4d1m8ob5xbybyw4/n2BzWcfAQYe+iWwOejJW35wjcq3qKQbBN1PFZe\r\n6chNlqIzihwQdhirgt2/AEdi9F+4fFzeDmJoT7y3xS1BKTYf8OkMGdA6k0Zx\r\nuMv3S12gZHS9jUSKgqkXcjWvlCmaAhMVM3s/KDRRsQbXnczZoO0E4YzgZKPg\r\nBOTy5D6D2CKgctQbLp3tVEZVrCSuVLL1pxhbfW6QmaLtr86B4p0rvEgKvOLN\r\neZmFKYeOpBL2ZoVYhgqsPUFQqSCOfoiUFlfNrI4FvSXc/mM5EIGL7SvdIE6B\r\npv0pZXYWiP0J7hHS3z3IZAzQ4ramSOwJXIc=\r\n=jniv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-22-2023_1674347403198_0.630169028118017"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-23-2023":{"name":"playwright","version":"1.31.0-alpha-jan-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-23-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9f31bcfbab7405fec671c11dc6661fe9e041011c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-23-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-/wKbg0CmwQ4nWv4fjR4F7RZ7o27McRijV6DT2/ycXLU55gEgf6WscVAhRkBOmeBJXGEpe29+IETLzpi04/IS7Q==","shasum":"d876f1484a109dcb7e9f98d159ac6ba04118d8d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-23-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1J3u2egYyX1k8ggyCJDyVw9/nuXHWLscjGrMI52qcXAiAh1087RcluCbxGpQYosd7/qNRdqdcv6jWWR3VNFd2oKA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzdQpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHgQ//VWjYut+RaYcEGQhKCvyeM0tKUr8lbw+x8LjPDPvwthqzUcF5\r\nM315ZmeVS1ywueaRkj0BxMSF8cRW+CR7ysCkidJjiopZXgZUUBzkqBs9RmqC\r\nb5dv7NBlqITgDtaYLZrTvBi9+pABmZx98Lk4p8elx6BK0jMXy6G1x8YpqFGf\r\nS1jlgYkvfQ8az2+xhJQle7zUVWpFHGrZhLM5Yuv1VpBrBJlQFr4ljNrFU22N\r\ncxv+R7ue/YQKeB4ynrNiCUOt23LAoIEqLPO/AmSC05ptxynB9mRKdN41vgBu\r\neIQsjbpKOBzEpqpqYAnOm4u6ilOq5997kQkDMd9O74ln6czsHw9+/xAC7//O\r\nDk6NMpM3VI8FhxAfFgov7x56CL0VTxBklTO2G7H2zXMg4WxofoWRRlueiPZs\r\nCKiuYrzDDcBFup9C+nklbz8HJqCUmgoCjDA8cFb4ljSdw1+P+JsLbzgLlccR\r\nkzyU67HuTw3QeYYnfawtjJN90zJUVZiHJ7GK/d0QfuCwInd0vP7qdiaE3/fv\r\nHkIQC4DnPQYxjuC/cs+zOwPJWEHdF1VvPcTL/1Kk3aXryv5sTlrLC1uryQ0g\r\nwkkUMwg/ogRsnxnsXKgF5o0r/TBppmKgfCxFCgcCOoYBvCq/kXyRqv4Mohl4\r\nTckzyLxwWTZkIxQvZPyERitvHMb1e7FUrMU=\r\n=LLdq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-23-2023_1674433577113_0.8312597733800211"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-24-2023":{"name":"playwright","version":"1.31.0-alpha-jan-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-24-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0ec1d5d45295275be1aabb2c470165e5afb02ec6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-24-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-GjP81Yy0XAXZTILcDcRadW8IWKRahC9y6Ifvpjl2rz/hRQ1mO5hcbPhw3uR5COeZrpVZMobdn5hY0fsC4pa0uw==","shasum":"2c16a08281ab755bd2a27110b25b29050443ed30","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-24-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEajNUMkXGpoyxXD7itn0KddXijKboXLJo3oE+oC31PfAiAcK260AajxFI8R8vpWinIpCZTUjTtPDrAkLYqmeSw2Dw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzyZHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9fg/7B8th6NKesGeCC+71GJZ5vKCsrseZohQFYUH77/9tXQK5fkFP\r\nK+5WkO1neeLNjDKnXg3aQaJHXqjMQbLI0DAYm4gMVLrCdMa4WdJ1kCUfGHKR\r\nBT+hm9VNuA+Avj7FPQTv7GOHQQ1ievy4/N23A4OosjT8AQxVKICMYGaf3P0u\r\nVmdMR2YtDiyaYrbaqel8h1F4EEwh1JCka8prvyU/7Tfaij95jPFyGwP/vfOv\r\nGR0h40UxAayRlDoROfXoHglRnaIzs35v/lpYnZa3W2eg+N+XCNgrvw5IMqH7\r\nrpI1BlTXicR21DqsOqIarhja2p3TLgKldNazcmmIwmFU1BpVbWvhsIeAVJcL\r\ndR/kBfjj8FMkhFxtwDzyiE/wv84I7IUAHjMjZZCBv6BxAdKLsH4UXs+5NW7F\r\nahMJk/wWSUn/fhrzzxHvOkAy9SDlaIzhPcSOV8PfBzXq6FINTn7ispMRikpM\r\n0RWfJNFLMXd8iTEsZXmBC3P2+VywOcCFNeWv8BiQ3QqYeqz6vJCSkxHAeuXS\r\np4RL8BJ+UMQuOJbAmiX49B7quti0zglv8am7SxXSiMnsCmNlO6GrmgEEnzri\r\nQMS8UJRuQIQP8H/K6D9uM0Kijj8klWx7d/KhzdmeCMNPn5lT8asEOJbE7siN\r\nkfesWTit+cNVaq6O9Hg3tISWDVfquJTrBvA=\r\n=omYt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-24-2023_1674520135212_0.9465135304550512"},"_hasShrinkwrap":false},"1.30.0-beta-1674594361000":{"name":"playwright","version":"1.30.0-beta-1674594361000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0-beta-1674594361000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aea542f7a283a305eb10b1d2cfec29b5742eacc9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0-beta-1674594361000","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Avk/K9VwtMj1+ZqYWgVWhpeV/wj3VByIKVH9uE5DvIqJDvQzvtbBXBeQwGf7xLYxAt4UC98x1KMI5VJSDpq1og==","shasum":"05565e8ef6ac47c4674e149ef5db600b054c8644","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0-beta-1674594361000.tgz","fileCount":9,"unpackedSize":24243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE0Pgst/DapgUUaiU04xgwumaZW8DJKriBWfCmWDbbkpAiEAih3uZj3Rt7EWCxri9qOGjhmfWYYXd02spl+pMUT/RGU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0FSZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqbIA//Q5nOzn6gWONlBlcHMMGZFRnNT8Oq5ficjusEMYMv0yK7S73X\r\nHPFIXhfz9rdkj8l/1iCu55uLGHazV4wXn8UoO3IHHkvlaTAOzZ/GSyC5VEcJ\r\ntuPQpKqItnpXK7+9xZyh4dILPGezLkVDrPhvP6ol5nT48Faa4ja6TiZZPJTm\r\nMusfvoAeCYbYIIBIeOTJEqS2aLgdie7usk7aErH8YWt6ZtDN5sCZKgyGGjH+\r\n2h/BFuhL7SXdlLpFIFllZo0mE29c9s9EIK153IPDfMSeMiVJYIbdo47WwN/V\r\nqgC+8kHgAsNurqwGZUSF6uAZm+Njo6O3J//d9FSbjzmCQbBQqfAssOUWsWC0\r\nh025AvE2AFfzYxbTERP2Gd0ZpWOzC8tMIBNZnnA+eFfsnjaccqEy2re1Wqyv\r\niODtwq9LDWXf+QkesHmCC8s7yBHarwX/4N/xKdZRjYOjRALCueSw137NghCA\r\ncdcHju4b97zqxUQVtCM0cqTDbiF7StTkI2v1BRNoOK1U2nOxQ2NS2/9EBxvI\r\n9xniUtCspbbroKoeKjXHcolNNfpFWkIgKlqAJNlNn4jeDueGcO3grFV0U6m7\r\nO+uKXq9GdBzxARrjyTg6dywhMsxBotPacPgaGx5Wy7w9bpaZ4vJzeDSFIURX\r\nman5XXz76HrIYYQs06IObPoJ5+bp/CncQh0=\r\n=3M7V\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0-beta-1674594361000_1674597529257_0.8194986749990807"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-25-2023":{"name":"playwright","version":"1.31.0-alpha-jan-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-25-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1196b4f0f587eec4e889c4ab51afce3082dff642","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-25-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-umz8k5rKi3JwQ9dBvFC2+pJ/STFvVY+jgo68U7bVxuRj22Ta0L0pciUPE8AUuJtIhqEH50SYMw1asNEqbPsqHw==","shasum":"7b4468bbeb9e40b61cad404a8b2a63d0cc855254","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-25-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNtR3sOy1p3OfQx/wF7MV9gbWYrC+kaJpBo0t/jto3wwIhAN+Dl/XC2yd3epni1L8EQ23xSM3zMnlI3CPb1Zl04FGE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0HdfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUtw//a5xok3wUFVdPsEJAND0OhKb5GV7ooxAprmf/1AB3gtd1C2rF\r\nz3UFeeUgvI//abBXZLCwolNDNDcBZf6kkdEiia7IadczY2/52P8GltEtwvjr\r\n04+FWZr2YJF+MbA8bReO6Ia7uWIFzrB5bZLM3uwK4rk/xVLN5jaaGID6365q\r\nMbBI6Rpt05WlYdwhjjmc6AqiMQcNsKlx6wIp5en5cQOcbN6L1GlAzyL8yMXV\r\nRNXs8gSS0v/FPIasC8y5aQJWpL/ouDRm7SuyjmKt/ieG1nCq2XavAYWjsS81\r\n7p9bTW8uCpUA7pEj5YUvL606i9j4Qmw6tyYVa7dmwI5cfm+bjHMOVXeevwTS\r\n+8gehlCvS8D6V/vdwrPiaEqK/YXl5Gg9TooTVxrdn3Dmpd1YGHuLanBLOTa5\r\nz2Yz3BcEhnzN0p+gM2XHXX4sC+PxKHxvedvAmr5C9i6V4180FTstz7imQhBB\r\nzdQEwjPkUzPn3DUfcn8ASbJFBQXDjCuN2kWbEvY5RaKwzz8U73ujwOuS4l7J\r\nyV71Ejxsse6rIe94exMAiEF5UWr/Z3kDPc0qrPZmXENTi07qloUjrLQLp65u\r\nE56iAOtjK8BIq1vBH3F8fx6ENUPFBoi7THgHccz+HAFcDTCBeRphyvA860ob\r\njwaftctArd2eHoEilhl2KkoYKmStTdNCvwo=\r\n=V9HM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-25-2023_1674606431106_0.07759678631419376"},"_hasShrinkwrap":false},"1.30.0":{"name":"playwright","version":"1.30.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.30.0"},"types":"./index.d.ts","gitHead":"aea542f7a283a305eb10b1d2cfec29b5742eacc9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.30.0","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ENbW5o75HYB3YhnMTKJLTErIBExrSlX2ZZ1C/FzmHjUYIfxj/UnI+DWpQr992m+OQVSg0rCExAOlRwB+x+yyIg==","shasum":"b1d7be2d45d97fbb59f829f36f521f12010fe072","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.30.0.tgz","fileCount":9,"unpackedSize":24205,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKEEHbehcjsKuColZIGKQosWsCQcjTZLZCRktnojYwewIgLGQiXDteRHsaEsWPbEB1bwwkp+xO231v+ogvneGRoOo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0IizACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9jRAAm7bmCzweLzPZda+SMN09NupJiN4YB7jtiYlzo8ciiSCLx2e+\r\nCP4sJJ8rpCtjzDg7anxBUPYya11d4cl3tWeyJJyqVsryS63dHZtWTW2gHqSc\r\nthUAxaRBlI7TOCd85xoVPBR1tddiHLzxWe2gUtdI+8RpCWhvRUMjMKB6tjuJ\r\nIeBAtMELsPJEQ0sH/pJhgMxCQjp358h5gE9QpjpwyqfvTH7P+zUsu9G2hHb8\r\n9OOlkQyI52K/hjttVvqdcZYhjsmo9UqAmNqme5zXlTeRBBsg3SQLO64sjbHT\r\nGdD68JLuXsjilb+W0ehiW410tPAPP7SVfF6RUjJ2WNlqriEHs7AN5BYn6ulh\r\nK8bxUQIJaNq+JpTIm+j/5jbE21h6NcFNtA0JGKTMUZ2ERoWPeGZtzkUuhcvk\r\nnHzJmTd7wgthOBwdbBf+H/2+ALlsuPmnwnO5tyM5f3GXerkiwCX8wEqM8YQQ\r\nSkfC+OA2lMdrvCI0RPx6iynUxP0/Qi9wZX+xQSF2nyVJYh6vdz8++ztvlkG7\r\nb/fPGea73Hno2/hkW5AM0ud3ULR8asO5UNRtRDh2HjGH/7eVPjYX4cYp1b7e\r\nTpI+tPiIAPnuQsdxQlwJk3OVRu6CFj2WVChfO7cEqCgW6YljSDNRfbhiRume\r\njewXhI5+xAV5/e6hhcvAH56WlYe6b1GHsM0=\r\n=2xIp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.30.0_1674610867511_0.2126996228239919"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-26-2023":{"name":"playwright","version":"1.31.0-alpha-jan-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-26-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.38-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.38<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fe1dd7818dc64ec87cd6ca9ce0c150f45b983581","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-26-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-B4SFUUPe+xGcHgZ+XFDAeiHYQYbQGtRmIPO7r7nzEIqKvYYW3uE+lOaLqd9mKKF92I0PZ8OG0c0DmmDpBb12vA==","shasum":"142bace1a97d2759e8d094d4aa3b8c54e6cb07d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-26-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCneYSYfylFcYYb41Y44vD/sd7piPM5qkdUY4BNEaB2EQIhAN1lvVNTTqLJQ6eWTA+OAZ3oDuc8uCe6mAjmnTBizntV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0cj/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQ0RAAm4vcNgejuylZZXNXJJV1w9OgBApaWxFa4MnkGrci4n05yZyI\r\nNN+Eb82b2C6tUSa5l4J+K5oXpAzbowpKUqa0DXWjj+fsDSK+iemw8C41iZuG\r\niYo3zNOQ2BAGoGSiaKVu9XqWnQjhXRRLRl9nrSNuxq2/ha5FCIvfMoUxT3R+\r\nEUPs3iDZlrBC5T55XREyIGqa2nDO4fUhKON/va0bTB3UqdLTIKgyE4LNcO35\r\nsFU2a4TbDlv/hcbvjuuT+WgZ7qNUWhkHCwX6O7N1QCBdZQgPLa4577OLLxBZ\r\nRJhNu90+VJ4ZD5IfP7ykJQywZ95rQOypddnRAvCBvsca31BZlVp5mQwpN/GF\r\nT2oJZoFCccAuLR3k4x7EylkhMz9ybIxCrwuRcheEMFNnlKIm/xYaSZMFgaKf\r\nPTu2picR1Q4/RtioKFAGbiBOLHsvSn+bbJJhYXnm6aZ3vbNV+EoGEjAuAo/I\r\niJayN6cmIeR+UzOR3quViF2yeDSdpqCvReNaiMbjftaNmZncxxcJXst5t2B4\r\nLkJ3QCQKcgUEFSCzhXIUfCv7+RzePjkb192d3bdVJS3V0bNiut2iIsNuqTdh\r\nKOibFxd/gnea1Q+OBwNO/A810wmKt2UX9wMqRZlN/UGgltrUui2ULBMgLaLA\r\n+/y/+QJ/CMjNi9wC5GpmH2EbbV37pGsglmA=\r\n=JLR1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-26-2023_1674692862919_0.022513642615408225"},"_hasShrinkwrap":false},"1.31.0-alpha-1674768085000":{"name":"playwright","version":"1.31.0-alpha-1674768085000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-1674768085000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"332dbc5bf6cf68c3fad5857ebc30ed09599333c5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-1674768085000","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-/T1iEc00sv9NqHvfYwPPZ04oB1bo+/FFNz5HGkkLt5bLIHQt6UyM56cTWYHjCSK2XoVQrCIPZmwiCJ0odS+nEg==","shasum":"6b2b96c038c355df3e3e2b0c690fb0a84556cd5e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-1674768085000.tgz","fileCount":9,"unpackedSize":24245,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP85B5kF4aC0nMvrzD+o091h91LpLhBhcBNRpzHycAewIhAM8ORPkm26SmGJaZFqQbgZ3BQM/yEBXPHha70kxcN3sl"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0vmoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpw3hAAjUbl+YxPdDi/uI0cPMnLMMVM06ovP8KKTilg+6tM7tARQJQV\r\n4QkKqqP9ymo8kWU3nRo9j6W5cYqaZ05HdGcdFY/DTlXQeVjphafL2voHG7uf\r\np6wfHvTX2hQQxT0dah9Tty7H03vH+sei5ZgMJoVAy8LztIVRcGEJkWLvi5yZ\r\nQ22JKI/wXR2c9fkvgUUJu7VnHU6yi39vkfzptyJYOakx8gKaCjmnInI0+PWT\r\nUHg/QpU5co/sZd5qaBr4uzMOSAnFaIifpJoMgKPWvv3FxwwnZFcQkIQcvtTR\r\n2n6JGMopO27dTxA/jyndslN76dxpi/v71vySzDf+BtdnqpTpHUAxFmnH32ak\r\nK7JkUCiWIJ9V0Bo5mKSlYFOviGweWEy9yfzFUvdj5f2Iive5GTuo01ZPOeHJ\r\nGpkOppuefhDD+os4aoFsOtVnNdP/WrPc8sd/B+y/9mWfcGfSD66IUH6zhTY5\r\n9XFcTWOCD6rG5XZIKIvm3zclXg4JmST5WE1fAmC4BQJkVusg8wmScGGVV7u4\r\n2r2E3Y7h2PZUaCB05qm0L9Ha6Tk9c2QqHeDR0dWSf1AnHDfo9835k8Z6+5RT\r\nzJ8bzTymt7p2tsrmyc5fOuWI5qJgpSSNzd9gZi9Blr1+Gd22RauKriPWhD5G\r\n8XcdR4PXkm6/xLidE5eS7DpksFvX9IuAhaQ=\r\n=EzF4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-1674768085000_1674770855983_0.11346588467127061"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-27-2023":{"name":"playwright","version":"1.31.0-alpha-jan-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-27-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0a9cf85653994e65794392979dc3158a1fdbc74f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-27-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-eneO1930Va30BnDRGYni3JWBgL5DlYLyqN7sPIL10TX2U45uqyZRW7Nt8x2bCfEmgKsLTehrH5fiMmuAYjbF8Q==","shasum":"4c83b92d99e86dafaac755cda9703265ccf40993","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-27-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD33PN89DlF28e9FIugCxcxc68c2mS6Cil9vRmuez86XAIhAOdundhUOqPmODR1fslWe3VlmiaL9LkHtWLUw1MBOv9q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0xsoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoM9g//e/jbkJDwU03afZdmauv4pYULktWdvGpbVJ23jx1RAPTkoQMY\r\nEAjy1VlQ2gLurNA0uO7OPoCSpOS6H36twV8Dc+5UreKetBtQ54TlZrCdXjju\r\nxpP43qnx3zkxQ2E8mW+bnfM8yB7MQJD+PGtY6U7YmDTWdrbg+3Y7jZfhJ8bc\r\nurIv6nYWl1hqBbm38dR7536rGDkD4fScDwDP1iFPDZi48kiCkXoXmDjp5H+t\r\njjt5w8tRvrEOcMNy4+OPlO4oQGG83u3kzye3QdEe+fhzLz2KHArxAdMrcbJR\r\nn0nsfFfCkCs3CicYldzHEjr9XEeGOl1trXwCHpFvQwXFx4ayEn5aDZqJDTjc\r\n89T7oXBcpMRyVajwYatj/0u3gMFk3LXRrLL5Qe+xddEY3XOVVWaIVikc0OlA\r\nDSXLwxhzINRmSjGEmNCTYCgVmzXm7Pov/vMkSqMGFr+zhLY4tP/bx2XiIt1U\r\nCUWpXlmKPc00i/6Y8eRQJNRsbWfYfqMIg/mBP/rcoMgi8/YvNXLEKtrtYjPi\r\ntc/N2UtU1cg2FlJU2Ar7UnqbVya1M7mxAEDgiG5Tx1FOyOIt4KMZOZsucgOb\r\neEer9Yf0qqZg0/ieS61HKIShh573Wo04H0mxiuDKFxLyKKXItpNDF+J5HXR8\r\nl7UFXZLqGK3gUuleJu6Yi/+p9blo+K+T56U=\r\n=oj/f\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-27-2023_1674779432088_0.22118429224129366"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-28-2023":{"name":"playwright","version":"1.31.0-alpha-jan-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-28-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"532ca3f7b3d8dfdf83b7fb1d31961a65390f8e82","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-28-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-50QjNggE+LW0rGr2XRwWSMGl0pVdFWnNxLuXWdj08pSYA7c1reWk88EVFSBuN+pyARp9yW3Pev9Opj6Q6VDBOg==","shasum":"3637152160c98e7c3d6f5b0d5477e669b6920b6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-28-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA+TwlrMn8GYqAEo9jRKx+/A0wnZk9mTFSERc7sGq+K2AiAXD44QRIHAfYjRKYLYYUwQn6IYow5Jy/TNcmHGcAAN4g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1Hz1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJsg//UMSMO05cXNnj+fPPT7I17xGsu4G842R0m4BcB8HbcaEucIVr\r\nsJubFQIhcIxdhYsGsOTDUclihrBBDujaaGs1bRr2pEMVcT2fDxuNfgo+vOE2\r\nXNlPhGRoXvfIvczVdi7+acyZEI1pR+XHX91YHfmovL8oOEC6bSML8q6YdYB7\r\nvlthIyiTwAetzwSbZQxBPxv9fMl8FtxXQMdaxzkmpbNMeCkrJ2UmSSeEpKXX\r\nag5XxdEnWKI9VfiqzeedmwZKjHiUiIWFO7bFUwTBBaqKT4/UeoZ69ZbQDKzQ\r\nPlzSIPfb1H+DJw9Nm5se0kLyN3houaWQY7IVl2mDII6hdavQzpUeKL6yYoMj\r\nqaVkPpGukxIkZcXirxT2cW12wmztAWqcqt2aBNhaCzOqGss1yW48lzGJfL05\r\n0NT6BIedxRsWOp/CxyZp6OdMlkxa/NdBh4XJyRVFh+20PNxUebdsyDKxxhTD\r\nlKO8pnuG+uHpUGwD1mh+tc0llnSl+I3WLZrDHshM9m4FdbF/+NIIvdM59UzB\r\npqbKVIKww9W8k60fEnuBJjbonCDz4l+FL9wzWWjrqmnb1CS+XAe2ye9uAcCD\r\nbS9zDhLKpHYJdJBYwApbqgsDPMsiBHfVLLdABUWR02w91wknXQ4TTD087HXr\r\nvs/zREtAvzr1hDOZvazQgWvd6xinpOTMFCk=\r\n=5jDG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-28-2023_1674870005110_0.48000208140243195"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-29-2023":{"name":"playwright","version":"1.31.0-alpha-jan-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-29-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"32724cd5ce4e2717b38ca37a26f25e2331217fe4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-29-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-kecJHekt21CmH28LkXwu6+I1VtN8Q5rXkYRWHHIR/0zyjd50GS/DG5XnMa5WG3RwiUafXHMeFOvBB77+Xks6Vg==","shasum":"f7831c5d8a0a71f926a400c5bd410160c2e192d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-29-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6I4hTyJkwgL53YuIXJhB2rfelZxDhWEAD34M34mG3QQIgHuAATE7VYnguR6vXvmtmxD8fUDsVBSGXEwg04wVQAuc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1b46ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFZxAAgSug02fFjJKpYQZ4zJvDacNmWzKpOgUqj4R8NRTtBXM+sewX\r\nd6aZGef4j5Ek2qCu1SI1/k7vhleLZNOfXH3njauSSlstomWEldLl7yCVbstW\r\nlJeYLJ7tmpW1DKLR3d1JvGvrUioOzPsy8jdAAgwEkndvMZLZTd/4yN4kX0Cw\r\n1Ni9SqTkNu9xwx80IN+/q7fFIg/UNJqMPFoqQdfBnTccggHf+44Ug2AEteZy\r\nNRWJbY3DupC31zwT8omPAMLoLrFlYA/ABXBDAUae3ipQLH7LDUyUHnoh1AiY\r\nVYZKbVB5HppvDqIpdD7h2tfFPmAhBbdqXDqhbLwQamyWj0EiU9CMdHEtJej9\r\nu8BX0cFJ/P/OhINmTin2l2e7DSX8RO7wfTknqX+VjP8OfCYhci9lNFN0LvJL\r\nF9rcuH5BcPGKfcYa2O5JTsYNlHvyidQCgwlFd649sLxM8FlL9blKUjYtc92j\r\nX7Hzw/AbgHBesY3jaL1+ULqmU7COdimukotQ0e53/WQV7sUYKzhgKkNBF+kV\r\n06WcbbPmTUySEWgV73/LimoiJtZsC5WPZ8nH45CEtOMBbeiD/9Y6tcdelQ0B\r\nCiZd3Q1sPreQ3SmLpI8N9zN/IDfueg+a3LE94/PDKsHU56lwoGHJeGLnTYj+\r\nh3mWei4iwcrSehXHw7E5ZpuNgZvwyNU+Bu8=\r\n=qOQp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-29-2023_1674952250040_0.8922538260688162"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-30-2023":{"name":"playwright","version":"1.31.0-alpha-jan-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-30-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-108.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->108.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"32724cd5ce4e2717b38ca37a26f25e2331217fe4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-30-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-Qu3m/4Ju4p8R6Dlr3IylrPWnezWak6CnD8/MWKxqLOyzm+LWIXxVK+JARiqdqq+AkmSrYaU/i7TS2JhUgclZMQ==","shasum":"a550738c59de9641771607626d737dcd48726630","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-30-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiuSG0lWsxEbcTezYdYkDC2LfO8VnayXu7SO5UK7wffgIhAJOaXX0mgYaeIYq3dA15dHcbuc8uV4BqHuLeK8SfwPUT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1w4tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmreaw//Zyi/SGTOVqBevQDt55Q1UBf2JSvRcEhOt+9ikg3tcL4hrkyn\r\nVLBQ3yQ0u5kxH5oUIzDNa+HR8R8QZfGAmx0CFNBCY2hy32Q8wmFbc+wnE2vX\r\nPVzDAz3P1Aqtr4C/uHmeKcECEnWaJs8FRg0sAsj3r2+HOZFusEmZ8pkxjr49\r\n8ds5k8Ab6ue4hOXawtgP2U8Q+tqU4eXA48bntKmJ3Knv02edLJK8UPbylvMd\r\nFZmuu7Y5erk3JKFq9JR8O+IwsYGVEGKEuYjauhsK3LIeqg16v0OLVFRLVIxC\r\nkbNL/M4xF2s7SOCqkFt3wRKBSJuhVlweS4+Vdod7jvMxqOvcE6uuy0Fkeyca\r\n75wqRWDi3tPRHVVHLPxmkF7+mgzgBtLo5m/34sWd9supaiL8rfk17ItsS9GS\r\nWxTIzC3P48WQ4wCJPgI4SFR8BDRwsuYiRpG+vnl5vUwqEsxohjMqNSZWBTaQ\r\ny+Llkt0SEGGh+SdePsLh+QUYVkAPtmrnpsGYcAOer4UyoqXJqumH5hx3WaNG\r\nIt9dkSjQ5jQK9ZV1nfAwjHiEDgXN3YucMBReT40Yeasb3klgYd3b6r0rRp89\r\nbtmE7J++10gVX3q8a8hiSF009EUeoAJcygLi6ER6zv8YPtRMWEeb/hlkHHig\r\n3LFBIsP5Un4GobqTm18Tb6Bxnzr3XkbXcOY=\r\n=xnMD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-30-2023_1675038253179_0.43335005407189975"},"_hasShrinkwrap":false},"1.31.0-alpha-jan-31-2023":{"name":"playwright","version":"1.31.0-alpha-jan-31-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-jan-31-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0dd090aeab0276fd19acb7a1cf7bd2cd6d2036a1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-jan-31-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-v4quxAkNHI26EAJp62gqEr9YXBBj7M5tue0034R2gNQh5JAOCLr+KU2D63A+uvMsU7O2mohqgZPtUFyTJO9iNA==","shasum":"d8dd841c120d5b7a816f280cc740ab5a98b8f8cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-jan-31-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG02WCVQo+nWe4N4zqJZm71q5YZaAcUlkr28sOTsGq/QAiEA2RhawEeNIZQvya3IAW1eV9NRXVSRNljIHyQOG1ciG9k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2GDyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrkfw/7BQ5/uD4u45bO4jqThhViFJgO7W+FWors/yg8ttCLVdyVyy6O\r\nFjvw6BMozwln7Pbh9YTdM/K1NmlrNFXug9vKLBSZHYm+7VEisPYclvQREM/X\r\n8nshj54beFRvys72FcsVQw855Ikmswva0GR/LhMRNwGf1Ue1J87ohZpymYiy\r\n7WvjaOcCNaPr180Qm/cx25HJZVO0Bl65ekRa0JSHDnbyrf3TPI8UZ9LNUr4Q\r\nj3bQHluCv6sxJJHgh4W/92gIYpaFbAUHfnOG/KO9RInpVjnZsjymohKwcjcC\r\nGoPRF+5UqDgLBMr97xAiLnsSt2F8x02952WmWc5TJ3Hiol4AiHL8zLMBOArS\r\n0yOR350iGPwMxnRaPOQhQ+VzJHMHx4IYlD9xrRLrjUkhOKpneUDJLbWEMO/K\r\nOvW7qIQAO25/cxsXTMylF0N/3DdaRZvdyBruAr4wqvo6Ht45kIjJhaxRDIIi\r\nFrX24u5xmXvK3HaLbIQeFPunCh8Sul/nn9fdvT2w/u3/u+SEHIixSbQQfxO/\r\nXDSdRziiNbydhO9E2jlBjV8uEGjsMv+JEJhI2OpSXNn4KQhajAwFrg0iW14V\r\n2HGXRK3o1DTQhOlzCbHWnOfx9nL0CfJ36B4JbVLIfAKo8OR7yNg24bJBdnwh\r\nOLcENkvwplncdh8LwUq6gmv/yEyP429RPhM=\r\n=h/xC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-jan-31-2023_1675124977929_0.8873562946525881"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-1-2023":{"name":"playwright","version":"1.31.0-alpha-feb-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-1-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"08e4b50ff65f16bbf34fcce157a1f4d769b00381","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-1-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-VpItcdII4k7/Aw9CY4iEVODQXjCs7JMJIoMmuylWvNKlGhEfIsF4Ok7JRa1LBdt7DTpfmIKLp5H9VNnDTJHAlA==","shasum":"c36cbe558aea8754231b8d2c45417c970018b7f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-1-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5kNZf+kXVIRNfkfvI63dvNgLCKjWgWrRKBZRjl5mZyAiEAtJjbIcuLmmXdf/SH+DYT+/iR2l66uj1sV363qVRBdjI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2bMaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpo/A/+L7dcPzotB/Vby43AH9g92iIQg8x6AAJGNKyWFqIAD0D5WlK6\r\nn3159f4hCXF0cpNcjLwyaM8rDfSsOll8GR038keB6ff/0GNC0DXpKq3AxwkX\r\nwHqDqhIhyTLyg7DTxhH54eSxVHQ0Zhnv6NmEeE277OFMkznakxdq4Yj34umF\r\nT2yMTUhrJWD2a/DAXDnYIhD16VTK4QY502tq76S2NDGmKcvEHbEJhQSfNYYK\r\nmtOcAI5Y41+Mdjl+AAKlj7XRjK4lKjuI7USxNtS4CNat988qeQDX565eEF/P\r\nBwHScKSQVNL1X1XERul4kP4MXNDKRjjpuo4H8VwuesyIwWvo8GVXh74S5jfI\r\nE7vEcHkHVcNl2Qeb1GvvJZ1azDlv1pHkewzedArdc9+RilMwIhhAG4G2gE+w\r\n9VRRqxJhcXwVcQ1tlkFeA4BxfLVnULx/1BRMtlHU+m9RKuanoSFSdCSOMr9D\r\nSU8yIBPbpiAv33Ah0Lv0+z37wUgGs2b2lx37zRrn/Bjk3T8Da24ZjVDintJd\r\nC26xgEU1sHamEIXDZ2/oEoH3qKPDicvlq1ChFlCj6QWAofEZIiKFoAw1RZm1\r\nqrBMsrzHQ9YPB92higEDf0+QViCZ/mOHWCbVvRTCVqkg0uILcX5kWr1D+vZB\r\no+KmXSk+fcsOIoBSlWGu1dzEWE3N+ztNpOs=\r\n=/4CI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-1-2023_1675211546175_0.23365583803009304"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-2-2023":{"name":"playwright","version":"1.31.0-alpha-feb-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-2-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cb9ace60350e08b5cb90596c001f20258f23f075","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-2-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-II7GbdeNzjqWmeQQTA/aq9GPGay3d8qAMDG9VJuVaPuKxZMH1+r5otptGTfIPkUDKfepMC6rYX7eri0mLNfzuQ==","shasum":"5b8bc47a02c319869ccb7e3fce63d43b66ee7b69","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-2-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEPR+eccJuSuOrPn7mzEcPHduB62j0F26Nmk/vrSzJDVAiEAuVhdsw6PhdjdVQ1KEvK7/RlU9XU2K+Q+wfiSQ79i6Bw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2wPYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmramBAApQZTHYViTWD2TbqSHmx5NFAOk6qMsOx1/VbuVOAi+Qh71O9B\r\nsarLvkCQQ21WYPbgBUv6m84E2H/P2wRTiLEihSSnRytaVZNa9t5p44q+cjuq\r\nD9NcqETTEnAP3FCoHFlvtEAh0UHk0GBgarxRg8ieqd/LO0rzLtkHl5VJ0kRa\r\n9yF9PF6r6i8aXdFIUJnUdb2AtAqCPgqSS2XuoLdXnog7ugV2J9e7qWJDrDNj\r\n1UEU9v50FHwErQEIY+ywFmhnliS3ZmRwVqGlCD+gdx6NJ8viBlN6ZXGHXyne\r\n01ot1K9Op3pAgsOYG+N2Dxd9HLyVm8mGGlbyACKpc7k2yTtcJrMxf9zpgKYe\r\nnl6hj8+wcxthtTxHCurI46X2U9sFxPKVl+hkebKjq9pkorJ6sagUoKBBGFSr\r\nCpQUMMqXq9y/h12mpam41AbSxI5CHUGixFYDvnlUYRKZaZKuFh41s/m25pkk\r\nm/TnerOWHz9QzaP8mHTdgXq6R9ymmWWHhGlEzDghzfok/WuAFB0xGn0o+d78\r\nen/mmjunMZupvPrGOX/AlZYFaaWpDDxqWzUk3rgzxiec6GaW2HCrsn52fKDh\r\np+03pLbASI+jFGh1v0u9rKi3iUiKpr9ivZUp2U1DbTOsOQptjlCHI8c/RQ44\r\nGj/DVbc2FTo5BoQtQyKGXuXt8OltQX9mkwU=\r\n=h8PX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-2-2023_1675297752729_0.4519011506107178"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-3-2023":{"name":"playwright","version":"1.31.0-alpha-feb-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-3-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3180bc98047b38f800082decacefc17afbdd5a37","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-3-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-2GAuxhgFvmaxbj0Uoxi/Q9WXfFSUhMCbmcVxh+/ZSSwJOrZQbRs8r+5tPTJ5+u/xF2oIHnCizpgxd/5sUbcELQ==","shasum":"2c328230fdc991a028431f947b7e034f36a5a135","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-3-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTpNYsq0/uvWyTPTE0RpiclSY3BhCm1PQXFNxzv4jV6AIhAMo2INyrFY1jhKMxPSZVfPmHfZkqbggkUEFNHsKkxNdl"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3FWIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYqw/9GWQ4Lg3SBqcwg7QerhJU2A6gVOcW/Sg5TgdwjFRA4a4YidLc\r\n0NPBZCyZ8h0URAUamqRU6kG4pfOJIWHEnnqknakbp5L4qz/hTgRBzOAnPZbJ\r\n9m+t/Md3RZ7GKBzlfLTXjiD+SaGIlmSQLt/PaAgnPkyykQpSp+nEAOugg/Qr\r\nbZC1GylRO3Ruq17CPGHdugxvgMNIIh7ewQ5nQmYARaJu19BQ81mDeQrcfFzB\r\nj6kxol8b9JsiQgUNzNFyjTvCVDD6YlmvVk/jHZOWrvW+RRo4+BvXXmlMarLX\r\nosAdJNCy3eorItb6l/DC6al1iMH2i/QUTzZdjesD78ZA84TzZqKEZLUtVE4w\r\ng/z2mod5Br6z0TZwBR8c2se9wAz+LoXTn6pU9wR0ClKmB3KqubCMHiegZXof\r\nS+Z7Ta/PlhLPRBdcrC6DfXWzxhz4Jcf45IcXPMNgI85e6x/CoEQJA0s/cF6U\r\n80Xvb1s71PH3dPS6WyHrR82JzZ5vy4UVnFDe1boZ3e34/DKswJKyZcNPnM4f\r\nks0ZXxirG2elsU5jMIHN2ElcJv9io+9hNM/tOsg+hZCJ273V1qwj/cspDH0A\r\nQo7DbfNX97qSEQA1GA6ajqFzIbSfH8u4ipe6iB7lr00+6SEhSXjE7IiCqNlI\r\nLdiz+2Vyep59MyIUWt/KmaBQr5ZBS8IjNX0=\r\n=R6F+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-3-2023_1675384199803_0.08857952791593315"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-4-2023":{"name":"playwright","version":"1.31.0-alpha-feb-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-4-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e64c623e61f77d3a0749b134c352c1131f86ae04","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-4-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-xOx2A+WZJ0Y5ubraZzToID9ZRQWtgXqoGZ4JbcNJxSHwdGtFsNeABqj+Aa9hir3k/U/9iZV6XXv6Gn+lvakGDw==","shasum":"e3a140153c7d5b665b216bffecae28e6007af29b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-4-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8dsw75kagNs6vITJlzpjgY5l4ZKCb02RozrlqGIY1sAiB7lN/B4CRQUlLeTSKu+sviwJfsGfDNohWDAtAkLtS1lQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3aYzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAlg/9FCwZx7OWZmXeFh7WuO4wJkrFGtxdnUYhXaXmcJuLcyrfxgTn\r\nwcXZ8q8RDJ3zN7pynnhGVlg2X8T56yWVz964XeB4TELrOXqWj11dKye3U1LA\r\noBJf9LCcfIMu4XLkTvx3n+V5y2lwKqTHodqBmhD4/s3gkVt44qY12LYNufYb\r\nBCVvw+fO3EfU6E8BbvcNL73FkWEGMBaoJ2b0zDp1Zko9KNJxwqgrB8QXuR+5\r\n9c/kh6flyXFeI+G2zCXK3NotN966GQYguMJdpAZoKfYKqh4DrWmKJ5o1Cn1F\r\n9wHLiu/z7IFEdIebykBbUPiXC9rlmuCGWK3uze35gopNgsCnwohhYP/lALus\r\nBTRArp/lYv2S5TflgYyzE6ANeSqwDveN67OP10O/cS5jJCseci4fYg7/Kv9M\r\ni3vWE2GrTuZsqbG8HCGfYvRmCOYA5o+03JxPkTgY9eqb9IZEL/SIPRR/a9eC\r\nJiGIMcHlH7rYU6Al4VTRypyIdLmzQT2djzIzyGyR4TLIgkdADdLjZVRlUtTl\r\nZCYg/q+MggPE4unJtHDiVCsrv3Sqsb7Gs7rTE5e6oswlX8jIelnkpeS2cynM\r\nPJqrDb2nM//TW2u35bHyrc48+zag6IzbNEs/k5ZB1uxWZ+QhIZcoJY1QV2Eg\r\nS78TadCxt7rXyGr+kD2bGYFtbI7EKFS+LIs=\r\n=lhVp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-4-2023_1675470387344_0.7618711835891141"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-5-2023":{"name":"playwright","version":"1.31.0-alpha-feb-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-5-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"73b07610c3888cfd36058e1ad60c36b758f875fe","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-5-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-zUurhNmGgwMYlMfE8dpPelylcY65R4PjQLRZumgeY3+VsEnA5zKC3L0qNOa5VIxcV3sBBPuuN/5zJuY7B5d8Lg==","shasum":"494d65b53a19b0c17e1713e6b02748b0e46e0b6d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-5-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8ovELGH2bX062RFZ9Od6wdTvGIzKYCd5BvulOqWWxlAiEAm4oHmqnpZSy5oYAiD4o1VHZ4w29jVUGY0PZoH3pWfx0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3vieACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojYQ//RNp/OEmQAd7+Iu9tC+LbilEG4CEKZqSvoO+6JYCo4jGOxwQy\r\nYQmLCX5zadU6qaasOeAoh4FTyQE5e4f40jaroVEXCeMVvZ/udcYIr+fBVBJZ\r\nRyl79AsY641dhvzRla7DwVswA76p+/Y/o7ccm6LwVmpNtcHk+yjhTyMLY9cc\r\nONiDlnV2TYDDOYomPQmXtA0YAMPIoH7l+k7ZErWt7B0bJdf5ke7JFoEcpEym\r\nBRwYvj7O83nxFLqwLWNWjJGfsjvKDsTlQHnJGFHRpr09qQinSTAj3GkJcGVM\r\nt+Tn2nAHhIW0t495Ptc3lwaj/6atjP5yQWHuHtR/9MsHD19E6i2NpnV9gfR4\r\n7qHa0mmqcnVK+SXCc6ZxSdNTMau+FeHfdjP2m8Q7KYsn4pW9jyhyYI0GP6F6\r\nDNbv17SakRRdP+ooPIWuZ/1A9LSTnwLfDbMR4i23mbg9X2HX0r/sU7hll38I\r\n4r1tQtA1xWQhhfTQEoELo12cHnnPKaitAt+TtmztcvWIA+Q0yvLkaAUrhZj2\r\nTdrZNRX/seqPUjFHKgAnPa6iNseAAqDC1e8OlVEtBYvf9mZwrxZmJgY7y+BN\r\noxnPBQvWU1PQWP6aNcRBgeqj39LpvJfZXsimGTKZtIsTOaSbJZqLbbcOK0oj\r\n1NeChJYujAnzm+xnfSs3bPRT9hto26y4BxE=\r\n=sGHO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-5-2023_1675557021842_0.14102269174097226"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-6-2023":{"name":"playwright","version":"1.31.0-alpha-feb-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-6-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"73b07610c3888cfd36058e1ad60c36b758f875fe","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-6-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-iTl05Fmhx1Zhm/MYxzLTyxEXAHry/7ZgatnpKdm6aDoxmG+YKXMGlpxEUz7e1MjJFYo0Ju13EPZQ+rP8pxGwUQ==","shasum":"7bb87d4b1c97a77a25d8d32141f82bced4742212","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-6-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICm4Pe9unCpl/a8b1KmBJCy2JC0JH6FR030J5DaguRzIAiEApv1KMN63+ikbvtXh3qAgiXs4nYcQKcQ3h0Dg/hx4LYM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4EktACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUXRAAje+4+fS5ujb5QbPRKvzOZow9HruE2sK/ynVlMpQ9WOocQNfV\r\nHzGSHWIRLcsUuKdjg52rUS3qmSUA64OPp0/BqMtxxouDT675r8ZDI6sM1VAc\r\nUDnpeFBBlzl93bfKviDZrVdQssjmu0Bu3SQo7U7JjQqp37dzdxzTevPzjK9c\r\nM/hEqw+aR50EGU7tXUsM8UHL6vytpnAgKVh0ZUbEvzgA+DVoCZHmorgGIfhK\r\nhn9HSN2qOXWq9SX5EGPGHMHZvtiyEvYZd7c6J0T3skxImp1+IKRJgdXxl7A+\r\nkb4SvX/wPqzgdNw8J03vtEHzpENEhYJAwBh5CKVNRATNrAbH7s4OA2iimyhS\r\nyhqW3y6iginmkODF6rcYRrQh81cJsdUiQ7/jwZmWlJpwL0oIgkD0E2WVjVfa\r\n70nuBlBtz7vaUHND3FN+P4BoUj93dt9WH2/MOz/sKG0so6xpio6qq9JZsMVv\r\njSbG7ls13oqHlPS0iO2nGSNvKAXeYK/nkO0N7ze72ol1Ly8r0ovRWcAkIMPx\r\ng8UNDoDR9undH9oiinWD1lRJErJhNt32jkHbL8FGcb4WcsS+L+Se8VrjlNWZ\r\nbYQ5yBhDkJbBBGU1Q0zncTbXTCZUdc4gyvhlXpdRWOvU8+RFpDmFF+qLRKJz\r\n56KAM0DdeKf/bcUTJ0U9Wom50LUDqS8PTbw=\r\n=YdLN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-6-2023_1675643181446_0.8590714799384351"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-7-2023":{"name":"playwright","version":"1.31.0-alpha-feb-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-7-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"430d08f4fbcead0ec474e9d8b47d241cfee41421","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-7-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-w4TL5kzSC+re3E0b1JaByK2rQnMCeqhRCiPZU2znUvJINgCd3hmR+tc2BzXPDMvUfh5xtlGZSiItBzKOz2OqLA==","shasum":"16efbfc3bb97a10ff7db4c49336c0f442663a6b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-7-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDL0JJypHb3ifNr8wNakIvzzWn+k4Q6UjxsMiJmdY91JQIgeDwUpqT9aKncInGgvrqZZYpQUjtkEtpLGYB5YM+R6zM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4ZtCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrwrw//atrsO3NA7zldOoHhOHYk3FYCmI6ozdU/WoW95jXJqAwwxaj1\r\n+zXZbQSlW+7VjqzYtbURbVEAnEumpyxrghLlE6EL11wuFR8rAQRBUTH0Rary\r\njy9dwU11otdPNImH1XACyf8iiaVuUpLgrqRM3l9Qef/8lPqyZ+YzpDythE/v\r\nUV+2X7pmHotFrmyt1gI2g+bbwRuaiEVTmBS9zhHmkV+upASWB1wCrU9KAHsH\r\npSeQbdEkwxMhF6ltKiW2/qX+v4VCIJcDrqAkifNgdwkY7T/TSmEnn9k0Hnbr\r\nUR0jHG/AEgWN/ATqOKILowzzN/06J/BwM1SEbM+uQSAH/sh/qmyBRzrefhT1\r\novDssFTo8Ky64VK9ALquTFKrOD0RJdFuoMs5rt2NHOEpaB7iHRV5IYs7a1pZ\r\n8BYrGTGJ4Sf7UrbrEonh2zXThhG7plpFZaTdxyzyk/2e0b4SAK0/1pm7r6nS\r\nMyprRc75S660RP0nnIhxWBHEgfAK3QB8fxkBEZnWKvK7Zhg0eJ2FGT0o09V7\r\n3z6PljMxBk007WcGnU/K7ir6XALSR9T9mKUIjv/bIAi/nfLOdfQ+cmSXuIog\r\nMCvyUqyds3Q0NjvBUo8QX2IEcm1PXIy24dOcrypzKGTyJi2lGuEuOn02Hm2K\r\nGKFkydklL88n6b9HyoubyjkJjVahQG2+1Rs=\r\n=PQmF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-7-2023_1675729730022_0.4802879081790985"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-8-2023":{"name":"playwright","version":"1.31.0-alpha-feb-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-8-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"161f3f144a13034704d893822b4f35afab247cdd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-8-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-dIbq0FyEzRu9LhflwED7WKoBqbatthxf7pDzQnn9htmes3hodEGQPehCQUday3sNwnKKN2s38oJQEayEnJjYUw==","shasum":"acbb21ca52afd6bed96761f74c447806506d9f12","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-8-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOSrtoEbd19ktPbeqyKErxWRvszmsiF2eecZOSNxfr+AiEAjS5MauIDK9Tny3c5Suu0cRFHfb9JRcAKsZ8Y3t4IlNs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4vGcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqybg//Vt7/uyWpKunWqZUe6S4KyF3lF4BZxNAgY0fnjalrqd/R4luL\r\nwy4Hapb3lUWEhZtK7vAPiPu/k6rcuPnFPtG3MXIJ3bSDMZkyvf/7SJaLiyT5\r\nUPk0xre7SSU89XaE9ieQgoj5+mtculPV8w1CffS8BqrJuZ56gYB1v0YYn7+t\r\n9FurRqZn1CymkcJ7XpJrzcVy9HeDoYorprYfRhd+7tjCqccVYOrv8thJB3mO\r\nkTHSeLpC1yN1Y16JeX7zZvS0xaA0yZ2dD3KlU+5XOYd7MWyGySIC8YtY7Rv+\r\ny48B9X1zX3iLqHZpQG8wDGIIv/M28dSVoVEUdXzwQtNwuoX2B9IvYWiyonod\r\nIBIjd46BNQsYiQ11KJJP3BlbIddKtjS28YyTQqqu3wAe3S+M4iTv8wqod5hV\r\nCfpQx7NaT68KbpOs2e6qCIOjA+iLOTpm8bmUoAauMeC1DhcMU44UFlKnqQQH\r\ni387cHGtKdJrBcYx8GIdOE+RZm4C/sdXTLLOZKDW0j5Ff8QdJO9h89GcDG/B\r\ndA1RcHhBdMHmFOCL6D5ocCKxCIqJL0Ql3R8NPebZU11SvXSnlUgX5enX46Yi\r\n0r35dLBNnBEugI1h0IVAkW5n+KhJWeJhSWSnAZjOVdZxZ42wLOqAcainXJhR\r\no82/PdW/htaermoWwOOVUBtGTzJNQT6RNW4=\r\n=YGUU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-8-2023_1675817371930_0.6143780472485474"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-9-2023":{"name":"playwright","version":"1.31.0-alpha-feb-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-9-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"027d6b5239566e7ca1ced5512c52d8289739e623","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-9-2023","_nodeVersion":"14.21.2","_npmVersion":"8.19.3","dist":{"integrity":"sha512-lITHWeg1cixUZQoGMj0kv06P3upst5HNHSMzgfiaY5k+RhXpdnWpGB/Gy/tS2ldJXTJhGZk/VKBO/+NteNrglw==","shasum":"4790e823ac7eb377382f9979eeb774bda48badbe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-9-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPu+qTMm5a1yQO2KBA9ztm0phX7aAdRlT2O7Q1nysr7AIhANlpvk0bTLcT9BoKmb/a2C+yI0N0wybvGdeAGhqLBsba"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5D4CACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoViw//XjzspDZAEOXKPAXsAERvaIgehIChVfoZG4q7PmO4gfK/3j8Z\r\n/equp9IZxSCPCT5uV9grnwUBM8e5jy6Y83wW6jott+QogQxzcJ8vwA2DIIHZ\r\n7F3iFIwv3rRDDy7+TNzy/q560vf1qxMSHWgegy9AoqxeZIuJlRNhCGJmdg+k\r\n1XskdsGEF9KxnoyFZ6SlOnDl4R/QUd8qvqr1L+6SlXxcXRxxNVZ3VcbqO0XT\r\nbwUKg4ym7y+VmUTmsx9WsvJyiJyJS7wX/zF1lYOb0NCDUNnNV+JhE4m2C7QD\r\nJxyPuQXPoOGmO/+gwozRSzMvBBLS+N4CcRxL0hRcD7aXwQ1VuFXNxgN7yWjs\r\n/8zLed1UcW3uOzRPqSWeg/mumQBXNGXkd6uNaF/a5pEe78naGCB5nkCtfJNc\r\nOJPRvqSbQHMNb3qGHC1mYTjT3V44CfjYxHBkKFArPBx28zy4HknG9E/04sC3\r\nc7TOpYD3ahMkOHGFraxbrqa0W7qJfG0mImcTyDO5oI/sn83X+pCit+V9kxVj\r\n4s5RhGQuwwjUOTVaySL07SyMnnnUWLuijFvno8DdnSrrAKcKr05L1AyCndky\r\nLUtPHtVdMtSUpJ8Gx7Ph9ePtYURqK1SaBfNUQPGfX7udRTRGXPGlfhm7kGxy\r\n3XLHd0odXE3rsEE1v9BzAXvO4Q5E5mfHoFU=\r\n=fnUp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-9-2023_1675902465978_0.8047750767013371"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-10-2023":{"name":"playwright","version":"1.31.0-alpha-feb-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-10-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.52-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.52<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"69c4653c6b12b9ce94cdc85febff0a33c76ac9b4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-10-2023","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-iBico4fcfCMHhgr9HkKOz761tVn2RB69avku7cMqGpuPD6/QY5EMKos+duy7AyDeV3eGbgLL/6epMwt7Mfm8Kw==","shasum":"873f5734212f266e4331193a3710f3e8a3f2219b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-10-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtACdP0xs1zKznOkq1ddoRUdv3OZUxGENQTJn2HhCV2AIgSya8eu6VuzWdMxWEScOEz+rYROXmsPMXIwxRx8mLlcc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5Y/4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8Bg//UqRL+A0tWJF6xbBAFZSv9+dYu0htRe6gByEzmKR6V3xhlRKE\r\nahQiy4wN62k2cpo7s+cmb68ggjH6kUloS4ieLHO7RizN6cxvwzzS3hkxDobJ\r\nGjA6KXKb4yAvSHkF0yXM+ycKt0p5BMIA/1xmYgSDMz2vhhDvvgA7NU4k9TtS\r\nhsJv8dPuyOZJ5gPPCooPH+3IbhIcuIR829XsgA4jDtQHNTSzbscTtvH1l2Uk\r\nzqk2F2UY0fPrl1bohIOKMQqf5hTj2yeRquySf/MmCehOIV8UK4CjOmwutUz5\r\nx8noM8+jD+zHJ3V1g7pNfxeuImm6KMkIzFlxXEXV1GZcwLk1lH8ev52lT2DR\r\nQocD3iCizKnd+/WsxdnMHm7YZpnmT16f0UCSW5ES2YZecTW59OtoFXTsRPXA\r\n9uBRS8euo2A5g3UgWWzEPzCbx0kaVh1wPVDVqzgbVEpIfuFao+CZPCnoyqYv\r\nWtCI+7c07M20reLeyJpNPujl4vPjkI8q06y3OW9eVHdfyfj93w3HQP3uVbXx\r\n9FpHopoZkgTDPFaOTVnHd3mwaZZRxO8frM1Zz+bjEHs7ok90jIe4Ez8flbK6\r\nCXdNsh73AaSe2257J9JPIkGhIK5/ODoUe6XmYUuBcqcj2mLJlKxY+w4OWmZx\r\nxePiB3HmykZiiLpMe8dhB8tmCK7bWt9mhQ4=\r\n=zl3i\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-10-2023_1675988984150_0.742066769787745"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-11-2023":{"name":"playwright","version":"1.31.0-alpha-feb-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-11-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"77b598110fe6ba786e0ea62792ade9ceb95cbf86","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-11-2023","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-TiM46OOk/7/YdNn+wDUahEt363bxIF+SARLCb9IbrCZTjYJNKICCnzIsykcCs6zDHgS0PkZosObQqaEDxG7CZw==","shasum":"ac03b801bbf4ddea46e0adcc622dc1fed9437063","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-11-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDiKQfN78vk0S+uQchvJWwlBCT4tVqU32wVq3PYFrMrJAiBf1M3wTWPtGCS8GLDL2fyi6nXazkaz9Po7Z7HJqn5N1A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5uAuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmooow//UD86r2i1fGZVKqv98kZohj61AzA3enb4k/LrQoVF40i6N1YA\r\n/Buhnfd0OFWx+ftW+VUwWZZcvALJjpBvfGZkVM/3HHb94W6RvxzHI1ffjmWv\r\nFcl8k/u99wz7Bevp+sE3UG7GK2WubpTCjQ33XJOJ7WQvkHzsoaEm5hlxg93y\r\n+IHz57NQHC/oWclI9aT7wn3AbW/6zUKKbTnHjIVXmV04p8wLQxWP6Uo+fhLP\r\nGuJND+PD9cRXqUEQysKAmjjK0EFvZpmxHlPkVqaZP1vMnNews2lVhE+bNKOX\r\nZQieaJa5ri+dTZG/zYak3izpAnpeM7mTDfvy7y/vmAtOxEdclHFvF86L76iJ\r\ni67Uo7ZgCsBwkoqn8khEBtPgcNfsmBnEoOz3tnirsKH5UYHxwMxbFH2cLdyW\r\nddoLFchDe1+QGJ2HD0fVLXv4BRTPa+3FxT8JuDRhDy2XyebxnfMOiR32FThz\r\n3fAXAMR9f5Os5RIxRf4WN9bWTGWIRQNfzr/6ukaCL78jsXIV2+/n8daK9bWx\r\nQ4xY0D6H1wMOoA+b89z4BZEQorjtvSO1IZbh+NV/wmwIrXp+tguWhJkipCeP\r\nbIOj5QIDWYTccXbBr2LAVUlw4cWRClk2yoIUgUrm+bAaWIy2f/FQXVulxjSA\r\nCOunzAQZWulckeMTYnQ3Yx/6nseCJMinxYQ=\r\n=A/Qs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-11-2023_1676075053895_0.39718778005604927"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-12-2023":{"name":"playwright","version":"1.31.0-alpha-feb-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-12-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"de69b766d9f8d8bdbc20c1a1b4ffcfc9869d0625","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-12-2023","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-njg9rjFchxPOtqYtS8o5Ku5x3mHUlA0/gCUBQiXEz/ZohLhEZUqIKhoKDM9cz6F+LQuF8sbc1yOWcH49mP+9vA==","shasum":"ca190b0ee87ed024d0fb048259dfac8c3e958802","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-12-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdBkPtjBGqH5Xyajv2Zq2UXLOTUWSLAfmKIdOUaRnz+AiA1aVY78MAVjmgcW6UQ15Pjzd5IdjZ35FVh4h/za+wbeg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6DNMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjRQ/8DB+P0nsC0ixF/Iw7yOI+yR5HoU0M3VQyHj18fdEu+Lq3Fezq\r\nt3mbD+mNsi1bYXsO+j2OXEa6QYFsYJYpwKil3vKUP4aj+tHanUXruIM8Cnxq\r\nm3ksu7L4rDtXzFyK3wmaW22sObVMtRRAZC/5psZVy8JaWzItvfi6x7bjSmOT\r\nUoMwvi5G8FYSEW3hDtODLdrBTgSb+lP9U/MgjkTLRtcI/qUVPVuaTP2XOgR5\r\nr7cNlHrXOTnPbBxEaf/haJnu77WtuZTv7+/fmWo3387oQ47HP5QRwcA5Cjao\r\nsl7EU6Z7bCd0vcAymqSPC6WjsTG7MBYfdWJ0Y3q3WapXknMk5te9TdiOSHvK\r\nIHavmYrgWShs3MziAj0/b3MCs/DzE5PvsGcGJUr0VQQXfEes0/ShVqgTX35p\r\n5djkt562mevXsSl3lYeUJ2QurttFGPa3FH4lfHE0m3od/303rMl2umr0KxtB\r\na3/eVF6M9Ktde0dPZBGwJzXlcY/KBzNiazwlX8LnecKOoenUo+rxP+/rP+Wk\r\nBcoPVrmo2Kem5nCX9c6YNZxRIgz5245t2zsiIs65k9jDAEM5n3mdCqrsh14P\r\ng0Ig0WZNnOSIMi7xhfkAQndUjWUU4iTaHxudcV5E14c5B0HyPASeRHt+5nGW\r\ntCaLNHbO4vEzC/k91EivY8C0k5Jz37Dely4=\r\n=KLCI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-12-2023_1676161867884_0.6599438618980817"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-13-2023":{"name":"playwright","version":"1.31.0-alpha-feb-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-13-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e9ca483666ace111c73f574a8d51b1b3485c8246","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-13-2023","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-iafbPBZHg3fmQlikV5UYSf0AlEnIedjHSTGiJLNJLLgKfXFMN3nOXteBIoujB3+GgmeN11xAOxQOu1YcoJ68Iw==","shasum":"c2fc1fbcaa749b60a4614e8321cbe20a769324d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-13-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLv/sqbwIywUKxQCL+d4EjDROJRr7Yt9OduYsunueNuQIhAIQejdeEYMMs7U6lT2JrETOXmbt6yD0nWA8eoJEBfqwa"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6YSJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/vQ/+Igw4TKdyHfwAkhkFmPtElD0i57eekY5JczGJBz6Sbu/jSv7P\r\nWAUxp35GPh69gO81iun/i4ZQzfgzHE0ox/Vu1K5WDfq2lXn6XNgBgvZVAdH+\r\ni+d/iV3hM3dm42/ubBf5+ARDTlAOUoeXtLvDxYjqMAAvRBusRa11Py8ikjhq\r\nRsmBrA6iM9ad2kvYmMz69Sz/MLcMr9WYZsFATNmhs2+so5rmHuXdorMIj2pu\r\n6fAzK5ZJ8cmoGmmnD/GVJo0xyJ+t3kuDDJLqksxMPSwlMUXEp3IbwJAooft6\r\nv8+z0busW0wv+mrZS8WaYUZpFAsNFqbP+Pvr5TjAfC+5YfKw5BzT720+oDf+\r\nX3qZVfijMYMa0HNB0XHKZ22UmCeGUeTm+sO8ZoHWcu9+lqyP5iL//RSr6LIO\r\nQGEuSIq9P/vCXzad1UUVrI8UWnaN8OnR/YSAoYmqlWI68FKSss/rmdE+5h+c\r\n6D7HNR/QqONwqTfuTeWFS7CtxrnYZC7+vGRJSdjqEb9cTp0bEvX4xg2aijzv\r\n//QowxJdoCF+Drl3UkEEoLe3zZdQHYJOUezyoBDTT+PEl4O/k+2bi/yTwKf7\r\n3YtPafZevSi4uzJg1nifL2iCrWPgwTr2qQHm+E2Q8XxZYzLVJAS2f3ZUXRuI\r\nA52fOHDfwgHxSveinmlOie86kVF2A7vpIp4=\r\n=Gba/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-13-2023_1676248201328_0.7396765546044202"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-14-2023":{"name":"playwright","version":"1.31.0-alpha-feb-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-14-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"72942e81d5b84efc2c5e419cc275b0614b7e8cf7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-14-2023","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-YlJtDf+xaq80bFOpYZHT/PxgByrdPGy2R3iFeGNC+edCP72ESnMLxiySP4PeOB8XFiASYUKj+1nmbGUUSt6Fkg==","shasum":"460d6f24cbd67f21144772860b2b47d3390a4cb4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-14-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwcELFe0xAhGXid054AUcj/qpK/Wiod9OxN4WBPPf57QIhAK600Bl3JsON0Uupdy5Noqc+aUuk+7nsRbx6E50Dbt9q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6tduACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrx6A//QDoxqLco8tHYVifxa4t2TEYpppb0PWhunHGmV7vGMSdGcS7G\r\nZpeIubXMUNqeRpXmuPhBEM+pqJ3P1d+gutcPuXYrjyPCRZGGCenVu9/ndWFd\r\n+0JpfTVJPhU1gl2bGHxiDoNtqdPRda5PWrZ52ACqRaIDGvaYPtOMYNkgU6Ou\r\nVXXQvz9xwRH6IHgsb1yeJ72iBXoLZBvLpctJ831LareoLTVyFMMKCAOUThIh\r\nhDpC77EsCzZQAxF1GwujhKwoeFy7rHDFOTpqGIbFMlcS4h4fw6AnxccgTAti\r\nYKs951IPuPnq1JH9QwRxAv58DtNr0RZoaWI51bIUrRdhfdYgUsgMoZmN3fdU\r\nmeSrpGxreUtA2iwTONtdTvX3MfNeYjR7XYHeTOHMr5DLMdToXt+QY7vL9i54\r\nR/ZtM5btT3LXQVk9W4/bl8tUORc432UiVAtjC7GQsdDC27SNUgBplNhi+VJW\r\n4MhpCWZOjFC3x9GyULtuYA7rNliLVrPnkPspKoDx60tqs1pTkgQGMDBW2EIA\r\nlXZ0o0pryAtScKnj/ipjDyuK9+K+abDy6R+DwpsSMXUKM7LwAbTS0T+POBVy\r\n9LJgnuBqIxk/qeLo+bA2L0pgeZ2uvYdmtTuljMzF2wQi9YTGwiUwv0iDSWWy\r\nztjwUW/9zlAOKOlbwVPZ0kFsSEqhy18VgZk=\r\n=56U2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-14-2023_1676334958056_0.2875823572378864"},"_hasShrinkwrap":false},"1.31.0-alpha-feb-15-2023":{"name":"playwright","version":"1.31.0-alpha-feb-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-alpha-feb-15-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"08be39a80ee82a23e5e76b8cf8c51f9d9835d8e3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-alpha-feb-15-2023","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8iDs2ArIt5MqjRgaFsiFp05p2mwLoN3zsxOrQ6sFPihdvoI8wmTzYt77+B++eOdjGEeZlKtQDTRca2AoraEDtg==","shasum":"6c1202a0b2d2f7372eb065d03f634175a4d541ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-alpha-feb-15-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/Yqe2wDKnG6dYHHbDQUbM20e8VEtpbS2LoiDxFzlD8AiEArr2bcoY3aMg3uIPrw+zrg4xZimYHXdTIaHVnsIarrrs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7CfEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmov/A/+L94f8u06NFg7r9m2lzz0em4r4f/rITXFo2bvgvPuR3S+ve0s\r\ngCtmNCjep6QbpEJjyvuSSI9tabknaAHgtaCBXoxq/MMehP1RC4JteUtUos/p\r\nP8H95fTNcVpjs21D9szhOb8/PKUWDUOP0+Jyu3ogVMljzI/Cm70Y1FLC25TR\r\nb7CvuQVS27j4Z1yJy5tI91OCpGi/dVEA7pFIKHfh+TuPrnXozCh2tOzcIuIu\r\nz6ZSI7eEIsVWvZTsYVuqW3PGMdlIH8r93NKyFOC04K/0gJ//AubvgfXtjtx6\r\nLXhh65IE6dXP2gZhmMgeM3E4KsOG/9fc9ge1495X0NydNPUVsavWyXdZ2iB+\r\n13YEBTXWM6Nn1N7/CxhwGmiX5JkwQX1gz7WpOti6khD7m5Wr+Yd1DNVnoyxf\r\nfQvVzzcZfLPcAB7DdHFvMOp7jhhpX3bpcuSg7XPDDsLTn9P/NkR/qC7r4FZr\r\nG0s9RvfNdntrBn95lp+6W4YEjuCVLP1NhQ+VqMfvloOaIpgBWvkBlB8aZ8mD\r\nkM8yifawiaRDXR+l++K+45LJ56WLI8U1zVbA0oTQu+Ys4k+IeFT8rOAyTOTA\r\nDCCVuDwkgo9MdXuh/FV9PqYHYH3zfkmXMThWHbjvJ2WAJeOYAVRkSrqK7QEz\r\nqW4FSUSpOkEih/m/4/vj2/VelWggPYJA0d8=\r\n=kpeu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-alpha-feb-15-2023_1676421060556_0.31433742386471897"},"_hasShrinkwrap":false},"1.31.0-beta-1676493483000":{"name":"playwright","version":"1.31.0-beta-1676493483000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676493483000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"90c4e6f9b2dc68c28902b67d49ecb96eeae7a06e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676493483000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-M2J8alIog/MQfHn4G6a+ZLj+bBDaFh/ITN4u4KJ76176ImZsoUm25QQSjvvlXnAZkUHH66hnS+DxDR4BX2q2PA==","shasum":"989cd9ffa355fe8830f4611b89bdfe225f000336","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676493483000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuHYT7RxrBAhtHW91fKQiBVwD0fXaJPFhhhJcmaJcHOgIhAIGl2Q3MtkQpbH3vRE50H3dOJjPtNrwTRywFmEC8dfeY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7XaXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzvQ/5AZa6Fe38/UfZknCKz5Rk8NH+cJGJAbmspZ1fBWRy03XIV791\r\nVqI4f/KPvVJ+QLq+n1y0e2Gq61f8jjKKxcz0SUr/WFkKTg4WeK495hV3n7dy\r\nHInSegLORBQEe53cxIcjEvIKzblhtIXlR9UJj/o2IkCyHtrh9h7Ehl6+JpEX\r\no0eg2ymPqOwZCKn/2P3I2oHRXX2qQzBULApPtUMn1oS6JEqbBqs4WM90raXm\r\nA9QtF4GyvhmMUALZQ+uQHg9EUqhvJneFpSicnJy2BjA6Elww6GOhKIXYodCq\r\nZAPjw+f7Be2w3eaCubV217Nu58XO+gBG/ynsuTvNytLVK3QwRAkFmEyYyY6W\r\nak54W+m1glODcBU81ab1YmqpaqBSnKfKo/Jm2nbMBtrIBLoY51Bzms0wpc/O\r\nnvzkI6VB1zKfdRFYnx/G+PWqvMSdx6k4vMtX6Lhoy6Pka3CELWTcPFk6n+F3\r\nyS18p3WQiJ0pUQRiQLmVQCwWPZQbBxgYsU4gFteTioCXnUqtrzobB7L1ESUn\r\nJm/XmLGtmKLfgV6uzKMcSAs/PzWCqYls+eGkZBcIdgh7dWrN+cLh1aQuv+9a\r\nf+DWzbqTEAbca/u4EC9Ey43kxudy5DDs279+JIjLLCSVmjsMA4WhvWD/oAi/\r\nbwsSAzhPJCzmUykbVS0SgAWh8TPUA0mtAvQ=\r\n=qPdv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676493483000_1676506775684_0.8411809025508077"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-16-2023":{"name":"playwright","version":"1.32.0-alpha-feb-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-16-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e77e2d8c7f5ec14ddb34f56c4987b8b112bc2d12","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-16-2023","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-9C4u9LyS4I52A+98KVZnmaNcGkB0iXcLtblj0NfK+8n2AApvXka2oz/ESJtccD/XV0QRbs8oKchAe7KjkJz6jQ==","shasum":"68a32e0e6625a0c639bcb9de945370b64a7d0764","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-16-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQJW89L9D3REfXcveBciwJBtBZ9WteRNf7JndDP3XKHAIhALf3dKLVPx9jWGB1+FbXA+6JKL03KNKBfNSubTIAj2l+"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7XpiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofMg/+PuF5QXs453yeTcXzzBE8YByuVMUiYMQaC6HI4b51nw4vlUfL\r\nQAaHqgw/y0gBBpd6fsG9TStkhrZz4FxtBpkr+oCJp22wZHO4EX4rUY/9KMaF\r\nDPj2sUZNMUo5m+v7V8kUZ4NQFq61EL+6fopHO3hY4d3xP7zIQB2HBW/uDAF9\r\nDMYhWSMYx0nWXAmCMicsYU3C0nJIC/xsMnYb1cxp/+Iqz/aPkemV4V/nhR0h\r\ngST1irT9J+3FbMyMEEEaOLULBAcl3JyF2AZv3xF3Q1Tu1B9fvALSS1mb5uP0\r\ni1S62vpKjSgUIcENEQsvRM+rLX9bNDXKH2/W18TI8UO5RdReNHnfCQiGN0DJ\r\nu/vxc6bbYNVX1e/8N8waZgsCGfsZxAz11wwmYeXhQQsI15Nlxpud8xiwBcMt\r\nEFH4r4grTzTUr+wBJIhR92RRBoZ4CvQdhkNG/iFddZ9G67QkRPkbJVnZmSyP\r\nIh+HJPh5tqYfMrLH57bjZC1JNd82bzBEiSCbtQcmd/b8CyEu2fqstFWcqhn7\r\n22uOwr14lQtDzhtFZKj5YRo9fV/3LkkOi4tHKlQOWp3qCeQzJ9pZAH2dvrGF\r\nX1GLW4ToE6LwDCxBm/X6PTojsbi0shRgIM8l/5uvHj15c2xaP3g9/Kjksa7Z\r\nyawkzr0Us4FEhnwtaP0YKEuVGShONQw30kI=\r\n=GYNq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-16-2023_1676507746705_0.872541099780729"},"_hasShrinkwrap":false},"1.31.0-beta-1676510409000":{"name":"playwright","version":"1.31.0-beta-1676510409000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676510409000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6d152e9b2f2be8c74813f9714391942be269e687","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676510409000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-SyyQ2kOfRv+VewUh6nD7Qykx9i9nh7swdAZigslUfoMiiccv/bFUICTwfYKOWx6CxnP7bC9vEuXaVd9ZW/hNsQ==","shasum":"780a9d32477224be709e795c0d525ae4bb3f1399","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676510409000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf+NJFFso/EN9cXUFynD6LNR6LgOiGmf2c/ifu8N/7bAIhAJbJ51kkxO+vEt1wLTt1FsJmZ/MWiYr3XJki/h1XC3zL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7YVxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNWw/6A+fh1zvFNLXzirjMBxqLHhJEgrE7B5i1l2MJKDUv+DkRwW7T\r\n8enj5FzOeUc2MNeHIk0JUrmR2jFGbYOF4lVvLJoO8qC/wKJkZVtH56XSpqrA\r\njae9KpuPwe0+7hejd96MleeFbvd/3hlY+OYS+1PzPSstUtQ/09K0PO7qeIEE\r\nTbWFfTTSSfsrRlYtVDAyrctS+wMLkkWEPvu5siCWuRweZm0K8VkDI3gAmWMX\r\n1TlKGMT2M/zpP5m2arivlLUSUjU77EFanu4MTzUCkvfj4DhgEWy1U7iYfsLJ\r\n2tTGX+H7yENF6gm9PyfIxatoNKkI6d9NDxHPUsT8ho/4yI/HSVf3VvFRTJf8\r\nS1D9SUr9PsojvX1W6+hibbnHCiLbOFM9hy0awCff2HXc27BO5WuGwA/aFFvY\r\nmO/7jk8LuMjLWW23wh4QLmYkvPqvyJXd8sBfG3cG1cOWK57HnzqVq5px0XmJ\r\nBgpKlvCrd2vLF40aP7YgIpZy7hyfeUNBSihuSAe9+bJyKgXzTw/aDG6tJsjd\r\n6SK7EBzJ5BKGCb6xm/OubJ5Z50nPqY4Ax4ppeqSsO9Mt6F3UfeeMO3wY+oYt\r\n1Nwu76LrJ58wp7g2sH27eOc12aa5QPMLBpqTucgB1UMtzbBEyC1trLjVrNaG\r\n7h35YO9MIrjySPg57WdbBk/VRQ4XIoLZf40=\r\n=loeY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676510409000_1676510577631_0.27659023116461046"},"_hasShrinkwrap":false},"1.31.0-beta-1676564309000":{"name":"playwright","version":"1.31.0-beta-1676564309000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676564309000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8d3481ea22808fbff6b8cd582a945cdc0a2851a1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676564309000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-e0u8PvhUdA0CphYi+1ZLiFrk0m48pSvwBFJbcBM4BJy7dNN5PoOcU6Zzu99vfpTRPV5FjImor3J7oaFFp8dBxg==","shasum":"b9eb3174e5c906d447518d0b6af7721bfbba5478","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676564309000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5QjicJY+V3Pj0aMWpb654MkJuWKR92hh+DNczPNN1cgIgXCLnDO/+HGWRRKEQitwL3Tu58qnEf0+F86nZ+fLUva4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7lhIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQlQ//cRQpvvAl+Xf127SdKfYMDd3aiRH7MRxt7zmM42dpLh1F6dTA\r\n6F6+gwOXCA5UZjzZC3llGSwVj84nHYtaVR737RjqPDIFHt6LMlR5fnUMTEi5\r\nDPphaImajf8q/le9E/ijvWcmMWrQdm1m2uyRa8OLyCXtW8bUPCtgz+pcO/4+\r\nGul5KTbngn3EbJ+qmziVbKP+jrTENiw5+6s/VS2yl86BJlV412sl7Fk3HL5v\r\nBl+HVpb9ahQPdyblSRqtxcGXXTmz8w17HVnMNmSZc347FUaXaxA3j+O1Hdll\r\nrd9WGOQOIIBhQ+AnBqhZJLCsiwlEb6+8o7w6Ilih5P3DdjhkmsP37//UD5cf\r\nkEpy1I6qNEq6BmJzUpCOUtJcLpBXZHxqPWZdRut2UhLYgYlDZv0aac/O8jb8\r\ng6LwARMR17tCPgqQwCS3jpzELJrisKb4+4BZX/m8lUv6DXBeNw3MilXWxymK\r\nu94wogmlJZfSJSti2VX6eIUvHKsTxSXlfIq3hvwifiDRDn3Ai0H/ZOlhXmHz\r\nFSyTH1zowmWj+bDb41vWY20xp4rJVsdpVBmWX5IA6d1fxo211wvJ8GQryjoQ\r\nPnCoxZRXMx4gquqEhCgqNdbYt9yNaDqiA7lStUBtX627ODnJw9xagmjXs8NY\r\nwcHzeDCeoORS24jcRn+T5Tsj0BB1vL9U7vA=\r\n=RPmW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676564309000_1676564552632_0.452465668555863"},"_hasShrinkwrap":false},"1.31.0-beta-1676574175000":{"name":"playwright","version":"1.31.0-beta-1676574175000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676574175000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a8542d86cf24d8fc883f02e68cd34e58e2f1b983","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676574175000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KQ7FKYx02uIhtdzxGj2G7A0GuX8MIX7AwF0kfOmZXEMHw5965URMFlVR7PRK2VeOixgHsIfVlQfXVnQZBhdaxg==","shasum":"a7eaf56b7ed45b44dfa28be128fce04dc936e6da","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676574175000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG57xIV8nzXMytJrkE9gIGdynvtZcXfH5K2qj1zdI0m2AiEA0RZKLTa0OvN2aHElnSE7CTWhThP8tewe+MfeKPuxLCM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7n8dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsTw/+LtGz9ibex1GTnrx1bQk+ZfGcF1HlPZvRhcgcbj/Ihrfcf4Rb\r\nDJAjqJoc8SVURbqnXy79NgyI4wqEqnk6hBjgwYBVBx0qr6sUYwnU9rKXsVUk\r\nKamN1e62o87ZGNAAggu+8tbkhZqv9qqmgMNc0s90itfVleOxKTpHMfmZf2El\r\nsh7Bh05r66XpIf6V3dyB1fN1S5LFuuVTyk87y2AnoGVkAoulNEN4m8eUY5O9\r\nBZ5aT1C2X5zBAwwrZyajs2KqvVNl/ctKPdZNaEiQT8UUA2Zg4qb14+Lv5SRm\r\n6zpOkVxrhEpMVv9dCW5yiSLosgbD3het0rjCJW+isMAJt2u+SsyASz7LN8vr\r\nysSAY1iHPEEWhMnebuQpuCefgyWH3Vw+6rgkH1ekytHisbtenxtuVdejKXUz\r\n7oL2FZWnsq7pJa+mg8IZeqw4jYKTdfQWDt3VhBhN9qEAeb4MsKOMULu80FhZ\r\nQfK5NceIWGB+P68wSwCEUuLSm93pMfcGPef89G+DPxdqVj0T7WNDLejL3jMK\r\nYJhvKQMHApEDg8av8QDAjhYDxjmRbKR3nEQQme5XAAl9mNz4fEpJWoMyDUZ1\r\nb31IQe013IPx1cE1h8P333VVc7SlZRri419t4c9ZjPo7Fq+HcRjbN+wj2cF4\r\nJvVeveU7Jqn/9jMyZ7Uop1LrMYIJL+yTzDg=\r\n=qQa7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676574175000_1676574493797_0.6982876688683215"},"_hasShrinkwrap":false},"1.31.0-beta-1676584193000":{"name":"playwright","version":"1.31.0-beta-1676584193000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676584193000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"07af3c1439b265b47cdd084737d0c7eddcb8d408","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676584193000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-5sFrzOp94QUFh7MbhX1bIfdTm+Wm0ZJRiVKPZb00eahPL3+G/aKkhJvYnz17Whrtjg50T9KhynNNV4HQ9iMuIg==","shasum":"269fb485fcd3a344999e97a0748ace9e95109292","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676584193000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZLkBEUXtv+MxcJPlByE1dTyCJ452VHwjGdyUf4SaOAwIhALULpFtcuzWqlFtPQvKEoVHQ/un96EeVfT+9QarV1JkE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7qW2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoccw/9HgqpHE7lD3xCnY8Y63/mm2Om4C5TkoNN+N4bsS3WS/+GlnVS\r\nRNcrjf1mAZHGTOocGuVc/bGnHXpH+yg+r3KDqHsGLDe4n5+4BZeoQjp5sVtq\r\nFiqsb35WWk7TuSUmWcaEKZaFg8iZtkXWMlBBdYuCExMBvI/Lr5jTeIZGFvZL\r\np2y9eWqbUdaaTqQwSPgYTvT3wEjFiCA7+6fsGNFlcoSYe9UIOxrel0M9J/HB\r\nsiH1zfLA7GBdQ0349VADz1IJi2Ifht11l8O92ME99XNTKtXWP68yCBKTxZwD\r\nUB+qv71DE3avcEGQUTUgvOx7vLgi/V7+9MB6jQPW+cRxOjKpUwTd162SODLD\r\ngw30tHmhcgocGdKubX6S49gXqLs0I22Rh3vhGEkXA7VBcMZ+FbJ6ye/pEy0B\r\ncLTHAMlNhqEaKgHSzA0PVJ/DzyXZhlV7Pakh7izZnGaFcYbuz9O/LjYB64pV\r\nq0xjLQqKx83ZBdVPuG37iw0PAXBcI40Exs7eMdwHRab4wueKCvcq+AJzw1VQ\r\njUGldgJ8DXHet46+BEXeiqwGbBfGPDwWi4TKPN9FhoVkJf8B00DYljs/LZw3\r\nfdCOrRRIN+NktRKY3TPtJkIHuXI7lO8ujSheYygltmRiSATEW+JR8UFLivyG\r\nshSgXJbCOjTkwe8iScZRXtUb6pgHhZivJF4=\r\n=mYdj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676584193000_1676584374106_0.30012748838934034"},"_hasShrinkwrap":false},"1.31.0-beta-1676591072000":{"name":"playwright","version":"1.31.0-beta-1676591072000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676591072000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b7d36117d1f381f0dc9eda84a949a0fed229bdae","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676591072000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-CidPfK0G3ijOYPjHtJDfYePpKD+W2RtZH2TICP3e4KXmYI6Fl7qylHlamtZMVVcBov2jEn08cypXBpeVie2X7A==","shasum":"ef5d016b347a90fedb4d41442654272e95db8e7c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676591072000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjxMiKbcg12mLIfndvuKIORVYyOKiRLeHj/30qexxVCAiBeW90eA4AF4a1GQukMfUr7FcFfqDMsq5PDmpqinjS99g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7sGpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJpA/+MIybd+ycZrB5bOMlIuGUQEDHTibYEManxMdCgoj5CL9M7HEq\r\ngIzRIaG+5is8KJ2J9JTUNSOhDfZ2BZGHQnluoegVRwGRL5rH+zw6zYZjWNav\r\nWJSXXR7kUuhrZ46GbemlLloLlfFej7z2x/2YVzUSHGRAmASCKCW20MpDural\r\n4164RNS81f3eRmWV5mcCsU+65oToCJQyRtj1N7yB/E6A08mh/2vLC3Uh/ytw\r\ncgB11QuF2J+Ey3SD/b/mGpE0ghDxxta+b5ph4QmACA9CV8OBVSPLjnib45VQ\r\nd8FxZzUVfWNx4xphUxr7PXjEtP3Z7UZZbQ4qNeNyE3TrBUHUxMLqnlyqau1u\r\nUvpG+987IkRdG9fpI4VnCS3ClppTmD5aJhROZ8YqyOSa15BNxTobax9n9f7t\r\nYI/Yup8ztpIWP1tktCuXdnSxrl56uFAMv5BTgXlvOAJjaPylm+pdxJ/k1Gsp\r\nLb4IgRUCZhLvCUZIP8r8oeB8yM3TieDYEPMbphsjmFhwPMNuWmf1LyACUF9x\r\n6BiXwB0eHxuZi/3svrFbV7/Us+mYTPQT7RXW3u/4NOdGIXrYvJ50eAPYQIAt\r\ntET8WPawmvX3ApxwMe2przQsnFTQTBx/YlLX7s3GC/bK3Kvk0WK0747we2DU\r\nMGMru3kHWM4n8vi/GabbmV8QzrfWtXhQemY=\r\n=4/Rt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676591072000_1676591528824_0.10187264567578391"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-17-2023":{"name":"playwright","version":"1.32.0-alpha-feb-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-17-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eadcab6b9f6e011eec0be388cc5e4e4c4343bdb0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-17-2023","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-OLSD2h+oWELumWkHAFDBVBiZ/ZLO+e1/XlThXmB+sv5iTHSO3oEB2DZGD8aibz/0eOBCMfY/3TQV4dqVwnUg+w==","shasum":"4e88fc7fefb3b6667997fe36d9d593f0b4829ed1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-17-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9QHotdJrPlW1NzJvOtv9YCky3iS97YGxbnJH0b8vc8AiAQm2erxHurWAEKcplkXNeeE9mUFondKeiIo1N8GRE6xw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7sq+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2Mg//VAbQAeEQwbk458jTeqCjYzibvHNokwSfBFuDe0OTmVOqOmKX\r\nmeXUyDkCv5aVlv1URcWLyD5RX1gaxbOo+/GaUdLxlq72Ey7oPoSnEXdHSump\r\nC7/H2slpa1+Io1EobCVWsLEdUJnwzmAKz6ZUm0Mz8kRIlQ/36wG33XYu8djv\r\nRQByfFpIXlnLQyQx/RvssDSFJx03IwaUGQsrIG0PWHqHp9si2isnazQlPYd4\r\nxOT7ZVDVB/K9Vohr1Z/k8QugkdG5uwWR5wZnDZXx5M6fKMweQOJ+qZjkNz5p\r\nz0Fwg1jrV2bQmYHEvY27wF+tRDcD1Bil1s6KVDZCh6CI9dbxutb7gnidkuoT\r\nroVLUdZlHqWQ4TGu25zZVynWLRoZFYd1a5ZzbfhRWNOYYZ+OqkJj1YWUvAN+\r\nrLerwad/3UPU9jrJOP8zXZEG7KRs1Cg0d9xaJ0sC8hJSqJTCRccxRoGKbOU6\r\nT/U2OpPCelsGwe332EwdBYGhvlSQRUrJJXm2O6z4DP3gBhX6wt8VNm3ptwO0\r\ns1uDGgnVCx60mXWFkviPheBaXFNUNfoq2pIp0rR4NFVWbxb3Bn5Di9zwLAUZ\r\nVr2fWFcghKxQX2+87IhKJVk3sf0ZTOTmnwLZkt7XbxJxEp4U7grA+PzuggHa\r\nNHjex4w58MrjGmPYSKMzyupm79Ratt1lbXw=\r\n=YILN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-17-2023_1676593854277_0.07452646862291545"},"_hasShrinkwrap":false},"1.31.0-beta-1676596096000":{"name":"playwright","version":"1.31.0-beta-1676596096000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676596096000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f276edf8f17fd868558e3d03fcb0c255a4473160","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676596096000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Fg7/QP6kwRYeuHEDmpomYRQqi96V4s13iRTAtev/98tZ6X0nNKlsyDPv2lPRKWAoSA1gE7+QLThBH3K0HOkezg==","shasum":"2f8309cb34a52772bcd3256b951e8afa3c14a770","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676596096000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxWCf+HCY4aKMhpc1BCRmrnzSVyoyOnj2fIFwvpzy0ZgIhAPd1TV50yT1OIr1YfcuXlYCeAiR/DWgEeUs+btiFHeyO"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7tRGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiEQ/+IoigUIfjNn073vEagmdLZrnGNVXFrqJM+jfigvRfLjPbFCzB\r\n3xILs2+Ee//qJkXa5gL2MTIu5YiKZXlCI8q6Sq85pk1WBPSPA8OoFHOuwBnC\r\n2B4/c2DPNiDLXfyK95xRNjjsHxB3YbSxO8nHVWWXXLF90F5ZOvcS9h9aiF30\r\nqNmt/+Yj14lNg6ES6SP0YpdxR8cLbu32B5R3MkcUBHeUx0RwKg+5XRZ8+w0r\r\nNP2RDYyhJcxL8meQmRqlSiIL/u05vkJJcafJwBfO/pc/vvKu1m/EoExBpNie\r\nEodIjqqfnnc23mx3CgMbABnfkF6P2qmqYVP0IFMy0YkpU7zGnJ8p+p5TctUv\r\nU2/6uXsqq44xXsCdM59xMaytSK37luMYQeiGjxVCFRPVHxSrIKftieQ0FYVZ\r\nQnlOEy6FTNYa5j0BEBJgGHd9zM1HPv53XPeNeA+BtqQqk/npa2QWZShu++Te\r\nTgVHA5yk/6VsUaC7B7EVaX9xyRtqZFZUNzBzkxsxX/qSsqJu8cRxbQukQ8FV\r\n6fMitLouWrjUz1fcHN9ByUJR3dQ5yklGel7Y/P5AukMmY2ITTfQnclzcBaq1\r\n+SnDJkD2GGdGzu2tCpRrlQvvYsnFD4wlym+QWOkpoVZ41gbipseFlwM9P44I\r\nzstaVtR2/AH61iSK3ls1hfJBmpJ7+xuGF+o=\r\n=RWWx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676596096000_1676596294660_0.1764045721074763"},"_hasShrinkwrap":false},"1.31.0-beta-1676599897000":{"name":"playwright","version":"1.31.0-beta-1676599897000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676599897000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"822227f925f97917f95d60d0144d5985f9e77b9b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676599897000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RbL5gWAjS3oyQcy/rYXjamWa4h7e86NVk4AW8EMs4LYgV/y82l+zgp9PQrLPfzv9LTmC6Aj2h98FYfH04YPqAQ==","shasum":"24b5a1e21da6b4185fe76fee3a54daa3a9e26146","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676599897000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTYwteDy5ukNoLUG/lmgGJlEu45wT3d/OVflN6Y0IezQIhALWbmWVHcgKELeHPxedpZrX3oNv+FKV6a6ZBNu9uLXaL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7uMNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJRQ//Y16E/D5N/J4M+EMdcK3RUKmhvZp+uoAeSvTKlyEs2DEYpdPe\r\nkQT4umn/pqRG/28La3uAQrmVfdEbMtk5u2NzmoMpAU7MtbA/Kmxruja2IKVO\r\nMdJC8fi+nEGc+Nld4HlpAXCYiywaBuhXcv8mL1//+LOWzxuhMt4cr1vBayUK\r\nOhIadE8c1GslQ+8lx8/z/RI5WU3Hv0k1q+XiyaLkq8CG6jOuvGpIjm3nFDN1\r\n3deMmc0UnWyIKKQ2iQh35hEMU6NV0WEK414jpuQ8MBrxxczOkyDQX0p8eF74\r\nn8k0kV9uwOQ5RLnt0u9gqiSBlHV4hwcx4qQNbwE58nYzHWrqkuu/+khyuUru\r\nlOVM2rQRWF5ROsChs9iUD6YxqI7aSM5KARegAaXXGtug7LmE2uyywrMyadKI\r\nluUF6hORpRbCNHJ/1646lnBhg2Nrj7yz0r5BEgO8XyNhvzQE5lHt/fl4SfFc\r\nBrv3oMwhwCmv0/CDLFFk6xRKkSWts6jPRuGYkkQ4CxzdQV8nvnns8rjg5sly\r\n/fY86zJDVl4BWCtbbQUnzc7dkWcnXdxGKP4q094zQWgFGXt4zWdSVk87cn1Y\r\n0wG1Ehk73w+h8ME0XEYAWh21sXIF/ccRq4KrTIl7rSledevl4FBd2mU3VQhd\r\nSm9Bx1XhUDHfC6v2Z3b6h3tpieTR4F9aiys=\r\n=10cU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676599897000_1676600077706_0.13204570662989434"},"_hasShrinkwrap":false},"1.31.0-beta-1676605905000":{"name":"playwright","version":"1.31.0-beta-1676605905000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676605905000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"31ace756d89fab24eacb814632fa4a1ea0ce0ceb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676605905000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-JYiOLcEjXuS89U5aOgb0XGTUJ/GKl5FWCrQ+pdgP5hL3l3vajnpoFXNh8hgawv5Hyb6qVroqiadxv0M7hULXBw==","shasum":"03ece5f44a65b1da85a7aaf97c756a289b383356","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676605905000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLWmXM4sEJskwg7fXXYMDyA6pvi2WJQSbDu3cNQ7UrtgIga3u+LApxWGyVsRqsWh2V81zh3MhQVIjQrsEFCwajlkM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7vp5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwVA/8D1crqA+l7XKOv3dhMErkqSqIN873CEPeTA8JmnaUpfgl6Dic\r\nCTwMM/YMKKApmYI/A4CY+ARvas/BI3clP68FKdNcPW2zH2Sh0DeAX35npnc+\r\nvFDeiYYISsW81Xl6Tr6Il0qK22bixM6YkkQm9dDQSmPiZ+/meJT+x+ZpoMWi\r\nG8HmXoBGaCS4sbobl9ySLa+LY+bcJTRVqbpGPOTFgy2rmqyhLFEePMx5FYsn\r\ngx9sTwcdn5KTHJl7rc5A9AVEXmhWOZb/Rx7ZCEI0x85YX0s3352Eda47CQ27\r\n6SMTfWfEKkGRvY4InKwzJUNz3cMpqsHecwfSMQ4GKr7sulTk5Fi4P6ntUxTT\r\nUwGAiQGadnC38LiPbnbxXSOqzmE9VzjGxnz8nffAiRRjQ7QLrdvUM5nTgtl6\r\nXGF1kXufvEtEBwUI+WPGOgPizO3lCB9mc2eU/D+tpq7NRnjFFuEMICjYJ5rC\r\n6QxT5RILvy2n2SYqoz0L1Oh0lTuCIK4e1t6S5GPwRbPbb1sbZAJIgf1DXhsz\r\nSPwuYQCGD6ArzW40w9qbQODqyMuJk3JjlwgvDhF1Tv9Lm3vOt9ygegeMYkZI\r\nkkXvAk+TFElkoWbSaS5rKyY5Z3JoDkAHTxOvoNIwo5ik8Uu5KhdAyYgG5Mvs\r\nbM4HpSCia0/7SKamH+2dUcXcj1AeFgvlh3M=\r\n=TYhV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676605905000_1676606073575_0.11179698141270245"},"_hasShrinkwrap":false},"1.31.0-beta-1676665251000":{"name":"playwright","version":"1.31.0-beta-1676665251000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676665251000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d32d466f2f78b9fef91358767a3f7af826072537","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676665251000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-posDZ4d0g1jZZJYAm7zXGvJ2Z/hrj5padm0T2T5GuF5fvImr9OolUojNKL5TENKEZl2LeuB+eD6yfUPGt/cTBg==","shasum":"8d2be0fb6b5192401261a9992e49d40b2d722070","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676665251000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDP95Jo9iHuF3eeQSX8Za4Cj9k3LlxpuhZtSUgWVF9vaAiEAyOdsIRxaG5YXcu6tRyxMxlsIZ/+zpe2vKx8dMDb/gGg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7+JlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPdA//Ut72SX5XdIw0tgYZ3HWql7clKKp7BE4eQBzs4cS4tK/jODBh\r\nWl8+XxkZd7/+D8lsFG4HZ3qv9hki/uC1WoYHjeuLP2LniqYi2kI0oOqHxHGY\r\nBXu/UnjGgEcw/VYySmxT4+FLARjQKmkWkP/lVl6TSlbHQhD2ERW3Ccpu/oOC\r\ntc1JqZnrhWbA1lGy3oTPjBPGJCYxlxit2pPLpEEuWGdUlKzTdkx/hUYn+oDf\r\ngmmYrgrBBM7zFB4B/asnswTyIo94xqBXMFG9eB3ebkkjCZtM28IGcXh+uca+\r\nz1tg2qR69x995GOmK6ffrA61KPhPUUl2E+JDFEuRxuDxCx7166udvoIGKdUV\r\ngNJVehldCYVNN15Jg56+czzKbfPRjvDvRBYXY76cYIy1J5621ASOsLnE61B8\r\ndm9aS5HcIkkqa4kD8mfliOLAvbDaLc5Q7pl7p7T/B2WUP4o7HuRGHepSvz1e\r\nGgAn5bh4U0jeI6jYqA0ZuoQL3s5bxCQ/nLD/juG3F6Bl/H4agpX6dHMfuZac\r\nI434o392a21K8DgFToV1Jqzq/dEnfXN0orDbzNCS0RhW95resVPSyr47iyaq\r\nKlI2riyc8IKZZ9aULcExnSMH4qjMuYxzRoqj01QTpsaIWyaLzLIY29N37SEY\r\n+qDxIB1ShiOocYMmGCGQ6DuGj9WHU2VopY4=\r\n=bPlC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676665251000_1676665445015_0.03620542218790068"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-18-2023":{"name":"playwright","version":"1.32.0-alpha-feb-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-18-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"55f4b670a9dc950a4c78f2674c74a5610cb62fb1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-18-2023","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/BCmzifadUtdigAHl+5xyL0X9FJ6m1USArNjJp7imFKlxK8CjJ4fNVAuhqYzJ6bLGGube4KkoRH0Btj62cCYVA==","shasum":"cda99eb0a3df08b18ce6eb230a9b9d4cd12c498c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-18-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDE5ZQBUm8UpJyRZ+V21W2GhWnU2MQOtxn9prZfN7CAtAiARMg0MfaOmRFPD4n4PY/Wz/n8HeEqs3hBvw/zggHDCEA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8BwKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQog//TPB+4ltRvwKW8XZ9lx6P0hh81SWaumVvRDqhDmEcP6f5Kzyx\r\noRirHotPL+iU5SWizw8CZg5n6VSLQyox/KsBt4pOc8pZeg00HL4Mqu6lIaub\r\nzT0WGx/YCjgMbCOKWH6fvukGr3iRT98Ffor1ruYJW2Gq+fFvk+LEiH5lEgw5\r\n6eika77oXg9zOPZslS6Z1DiU8vKVB+uk2sagI05/8EQXq6+Qc5Oyu1eFEjfv\r\nXV81c8Yp8TB+bxFBhRJfA+9EzigZ2J2r1/alE8NbFARZq5XkwP8pjyDKbSQG\r\nvkYuyd93yt+GUbhqYdkI1SAUf2FQEfKUSKTa4QKwP5ZisTgLIQQXnUcl8X4e\r\nLI/nebL+bWiPQ0E3kgr5iwIA0uQ1kb+5wg5w0T3nVd+cP9UwrJnG4Hzx43K6\r\n1EUecDT8hZeiUf11TTJ6hrUA3rzSbB0zQWQtNy8cFQ2HjO+9sYnxH7nHN1dH\r\nSDDnDkY7y3RyLSvotl+C2E0PqcGnlseMSMkouKO2WjjoKhFwfo76OF09xwBK\r\noELzVtgRl/ywESCAe9K+rLHsav4LrRb9m+U0adxS2tZ4NrVZJxPuD/Tp3xH4\r\n0rNfCNEsNHNDHCbAl3x8kqXE61sLNa1WdQ001wy1vXsvGEdiGJf0Zi9Z1Oe4\r\n8O1F15OVbCj7ZqVO1bw/drgHdkBpd07LrNE=\r\n=yMjb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-18-2023_1676680201621_0.3556350235232131"},"_hasShrinkwrap":false},"1.31.0-beta-1676685153000":{"name":"playwright","version":"1.31.0-beta-1676685153000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676685153000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"63642bd77ca6817cc025b715858b74cddc1b7d66","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676685153000","_nodeVersion":"16.19.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zJqHW4wl9vsVwtc/XeGnAJku+gl9ss+Y1bZJyEirW/pxEEuYZBlbnHbMN1qW7pwAEdvWhOuBOqKvx6pPOo0+0A==","shasum":"c09e49336b75c39305421eff2efa7def4e753f27","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676685153000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNxT276qORCJY651gHwYkwlJrSvCNONk/QoAu40H1sGAiBd8QnkhJX1ddtlB/EB+tgeK3lKu0k0+1RXWHRqX3mKmg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8DAaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsQw/+MmIVodBn8AQ4inmX1jX4vk5bL7pLgccTDmtJ8fpBHl0vl5u4\r\nQnmIZE1E4VwtPOsdwdqnJ5bOd1RnIk9+LQGcO2FtcmZUorgZvU/pV5ZZ1+PP\r\n42DotbwFKIO8c28WcWSkoHMLhQcw9JPy83w3uI8P8StcF9don496nf4P7/lw\r\nFZiOCNOnhsJOpYsnCA9v2LBbDjbLDwP9PrdeBm9jnzwkahWuJsmWZmT1Vdh8\r\nfx6AwCMZyQ08fYuonuQVbMhfCj6/b0fmD4sZWI2H72cf503pZzFJenJznEZB\r\nZxPoRAFaZ6IUgb6IWzNaYTQEAKzQ7tsOPjsTwvQpgEsYpgBrkgKf4RQV5mqW\r\nV8VguCfvkZjH+ZhOY1li0AI6IvvKoZeSA3lmy+qx3/x403UrSSy395/dJPZM\r\nP8ZVWYfSazYeXTTsTpVLcYj7ptxzIXVy7yj3nrYwlJgK7OawD66/s72/rNhp\r\nNlLlAkck96fAw8B1M5aG5qD1R6rh2FH4xcLPSkCu78qpw04D1Rd0fkqhPNh1\r\njjpqRyp2VHRgL+6pqDi4ffyuaW2Db46b6ekeIML2oHhQOQCVophzxOmRT73l\r\nr59rpw5a+1UAIYmB6cLyHRUpqL2JDg1fS81D/368SzC5D/2QhllQ1TSuqBA6\r\niOJbEWFMNyNYnoDVWbfW/WUFMRwGbrF61qY=\r\n=UFiW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676685153000_1676685338164_0.3577683377746401"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-19-2023":{"name":"playwright","version":"1.32.0-alpha-feb-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-19-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"595502ac46694843b443303ad78cd659fd995cc5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-19-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-M1bCubDGQYzdxSmi2NBSCFpvk2i5oBUD1cc26MCpNsnlT8y6Yz5CLNJVmSKetSp3oQkATImx7TTCjCv7Xz6l+A==","shasum":"c9c354870a83cf3cc8d123440fbc67413963e608","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-19-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICkUW2EMN1W+OOSi/vxVrBs1X1YLgkUfZJbL9oH0kbWKAiBlNBnwwICsoAmseVRqvCUlQYwN6jdCP9aZhKeLiVhMHw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8W0dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZpQ/8CwH/iNPOdfvRXUCACg38aW93UkgXH1OF9q7i9itgsQtjaUou\r\nEEbYzLI/JZOOr2ijt7X8V2piF+ww7DWSw9RVnV7XK4ae2zIwMXIxzG5P4fwi\r\nRuKbYSHW+/khc696ibKyGdtxTmbL4YxQ6gCJ8X6bOPuPafiOxU5QNzlB8HWC\r\nz8rqp6fyk2NTzMYNkltYce3JBbWnvXQrMMtp2FFHYiSqsg14zmiUGnXLNIvr\r\nM0rB9UPvincYBnV93BnV5p9z+WfmRw9XDZ4pv0jXiQx6KxLpGUO1fTXz/Nrh\r\numCtiQCOGugTs6O+IuK712qcWdFlWjI4J+DePtG/bg1HogI/XXlXluQN62hC\r\nOIpVo1m4NSHSLgfUUubK/mRDqFqjlLdd2vajfmrkrX52WNVB8aeMFkFBG7bR\r\n9V86F2QN0rEnJm/hvIePR9AeWXTNPSQioABbP0F7HWb7nMoq0RWZcA5gcY/1\r\nTyt0Rci9t7Z/jfoUKU31oWKD26eGEJk0Pj/0gBQDskPlyQb2yvhMFLdc0kgm\r\nZ3DB2bjvAxywjuIzHKP/Pvr5pXqnF0j2rtHYgtNX1p78n8gbUyN/yjLmgtX+\r\negGf01OzcKjF42xW8iCofLhiBLippEkI/b8heEplj0tNo0KaaNqNd68u6JLi\r\nFqrcx+7BcE2k1851KjdqPCVk2fnT15owPsA=\r\n=la8a\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-19-2023_1676766493531_0.8884702435520742"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-20-2023":{"name":"playwright","version":"1.32.0-alpha-feb-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-20-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"24c8d45c70549a7a0abc6d36466e91dd6be48df5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-20-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-TL/vz8CVagWVl4F0ZU16sLCjSy2e/c1eYtewtC+vgXQZDBCHEoAsuvag1l69cV0CD1TZK99lqT67origTN9CEQ==","shasum":"9f8116853f90a4d77dd9128a4c48b0ca7957920f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-20-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9Qfhlb1Nr4w0r/IoML7fPKbPDVW++gzW3sCOBhQtThAiAbAIijtEHap5pMRcYfEBU3HcPGH6iU+rL0+Jd2KnxhLQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8r86ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrekA/9Ft2ZSUONcuBINYNKiFLJk03igRX8X6q+PHqHjeAmvwqY0iKC\r\n3muuzPRGrU08EWiae8Fm1oRUUzG4NyXSYF6gz+jj3+L9HU9vEWDzmGLDv3Kj\r\n0VSNhREZV5s4WzAKMiqe7S5qkkv08SkY2C2l9J2bAuuYzaUtVYd6o9yQihd3\r\ndhol2CYnlEE5B2VYev/Wm4eznKg9oBho+njG+EvhinD0ysP3p77ohBVfLqCt\r\nBov3XTeSiF2qbD6kiTC/oY+d+22BQ66N5S7bKQ3dB1vLaZhwZDw3nOHAZt7b\r\nObuRb/OnVn2NHTKBi6fPIuy4TbZhMLlx+io1j/WVaoTVP02eHkibzvKo2+Lj\r\nyBYRBaTr1XExXiWR/AVmm07QyJGToTDzGFr4O3/j2YVTGXJZ6HQ+qHxlyIeY\r\nbEXENb0N4jMUs+D3WOiP5dBWlVY/Ral//bACi9Xx3oZUoii97PhCDRpYVTkz\r\nNWxYBbVZhciCMD9oIPcw3RVUcuWKDVxwjTJ+Lzz7wptfFK2Bnra4VWi2pnGc\r\nMlzwg5FE6NVmjQ8ZWP1sj+81Kk+XguFM98gMI9Nebk8N41n+44Btn/La954Q\r\nT69CqI3PRbgAhbohR0DZ0pMcPlq/n9tN3I3aLxX/Hdli3thTuJsj5goYJcqd\r\nXNyhIHilypEdXEBed74URXk2dNuS9qPPkxA=\r\n=K+qD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-20-2023_1676853050207_0.25117101049297275"},"_hasShrinkwrap":false},"1.31.0-beta-1676906983000":{"name":"playwright","version":"1.31.0-beta-1676906983000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1676906983000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"725dd8b4b14e047cdd99c1f69239b55a1d35bcee","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1676906983000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-erz6pmc/aefb02c8ECnViIOErLHAVsTdgmXp2vlpUKSo/E4hVYjJqUywd823q/5eo2LesH/cmUpdZOCLuAUV0A==","shasum":"1f1fa036dcb2d2f802c799cbb91192125e61d55f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1676906983000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqYb5defPgMl+VChibkG6y8oZ/ol1NSj2QuRZX2WBgnAiEAo3tWnAzqoc66qMRbLaGInK9+7vkp3DBVm9qEVbaQ4M4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj85JyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoycQ//YjSEOxLrBtd6rCWy7mNqZK9gfhtmHSshb4Kn1vpy/kFXa+Yk\r\nTUfR8U4NOi0uC8Nwv+3Y9R8t6HGF7R0Kfz8u86asfDEUkRJ+m76NoVJkdRLn\r\nvPuvNz9jLPWRGXiQE6GRETmJl1y203L34aZ/t4uudFhdvrl44m4GQ61/iZhN\r\nIo5kUX3h/tbMGfcby0bfSY6jDnISDcGnc86eMpNm+znShRJF4Gr4bWefPI2Z\r\nU+ZAHmCvkWbQfKr3Q9gPpoKv1ujm+/iyKtoWLggwRY/PvgjmDKfvjwM31yK8\r\n6r/iPAB9ey1H0diKtI/MYG6Jf04gDcT/0eke2L63aqwwvRDDns5IujQomMle\r\nA4DYThCr90Evln6Pphryp1sVBZeIfvgzVekOIjDSbi064S9P76ve/ol3iXv5\r\n4g0EDajVndrZHe6Yjvewr0s9J/0gU8r4/6NU1oupGTIsJMsyEnqqNNCwwfZB\r\nZw0nwdxv8ju4sAtNk4W7I5ygCvmb0g6rJ3yKj7Y1E/6q08XlLg3f1286FTRH\r\nGxZffCluZva1TS4+rKodcuy/ZcdQh+0Gd08s6JHu45zhzv1vmEbUIToapQ7B\r\n9SiOom67GbFVxoXo7j73wZiNtjG5MRX2Rx6POhn6Y5CNEanAsvEbBU9g7L/8\r\nlw+GGL9pzYtpN73MNNXeZafbUe5vK7rKWCA=\r\n=0j8x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1676906983000_1676907122541_0.7434409923056837"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-21-2023":{"name":"playwright","version":"1.32.0-alpha-feb-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-21-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d0308d1924c334024d58235f89cc4db2179666c6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-21-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mzu9Vm6KjZTkU1tY0VB2Hvk1aoTC7pz1VBwAKBVy5P6DrgM/RiBekB87UjmdzByV2Q4lGmAwDzyxB9yTe1b20A==","shasum":"63b92005538e2b590c4559ec41fdae72d139581a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-21-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYvJ9vIw+8d7gB7O3VAQSS/Drs1R3f/FLpOOU3EtzfKQIhALqnlp4WlJX9QbEPCSQZwYoFMNhlc27ZkeTPRKvzmI/O"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9BDGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqF5hAAnueXUQeavu6tCLPoxGrazAHxV/vlw7PknrsYBgguJ+5ZKhp/\r\nYigM58L1qCQ45HOFTDHrnr5332ixBtfJJCm7NacpHmzkwxIWi0qeax8DSxcG\r\ncoBekG9NOMupxX7Ul5VDuizhfozs974VamO1G5BTMzn6Ptomp3dyO9vwHXi7\r\nXFFywxkubYZcawUASvQuEKfXF8gvERgYVU32NluP42qs/mPdo/j3mUFRXZmM\r\n7yX2hExesBwxVnKAS8GCPlRV9A41DnKT+14V3BklJ88+vslVliLa1LBAixEi\r\npOEmZvtfqqOPQcd98Dsq5eUBC72zNtq3MnkbW+9GVdY/+1YfAy4aGxkPlzDk\r\nZfTIGUluOz/91msEFDZWALsFKaxQhFu5bTHPs1XxiT7zXGP+iXHDcP46igrb\r\nIAzOTi/0lYcwD8daoj6s1LYrRthzpDNZXXomWv6Su2oGcUy1mnhFs29hfXg9\r\nKNgtFwHbvDTYkFB0qfhC3AUlS36zoljjiYZQEal5r9VO1TB1jWJ56/aeE9FT\r\nvG6MMKRamQYgkAbD+5S8R2eeL7drYFSrP5/k+qg3klEKJYxLiIUmu0Sa6++Q\r\nZ8Y9bJ5pNdZDHuWZy6t0sH3ATHnscEVVLHhseoOcPFAGEPAuMkvKkP2LNYDu\r\nFdrrGbEgrMTgOs8SnHVKWtURzNaqlGndZsk=\r\n=Jq+D\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-21-2023_1676939462067_0.805628156913957"},"_hasShrinkwrap":false},"1.31.0-beta-1677002140000":{"name":"playwright","version":"1.31.0-beta-1677002140000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1677002140000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1cad99ccf544bcd73c39e04e41abacaa8a0b726d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1677002140000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-0X8SXid/ySsI7414tSvyTpqCI7SGIq4/CjlOItSJPzZsCG7UtCnB4mpd4Pq5sByC5udVczJ74hiqmfVjqzNbGg==","shasum":"8f2337231c2a6cc8939ef0b42ddf1a10bed79cde","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1677002140000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjbRyktpwhXvtH0Hexx0VHHXzQLRvDkvcMQj0nQpDy+AIhALwN9+3YBlLsnGLu3LdpcH25wCycjashphm8O6FpYVMC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9QaHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1exAAgQSFIC3DsyZyLK71z+r0Y5j6D0NPU17jbubGedecPsR0lzrm\r\nCxfptVYRr7N36kwrJbtMJmA31ufG7P8OhgGr5DMvvi7p3JDuF/BjIOjQxBmu\r\nGbzK/Ae7PgBZE2Q4FoR+pg1Rqampo7wvC0v+3AngCjgvmeJd7HX10iObfX65\r\nGsW3DkfEs+kaF9zaeWam7OBGUH16QiOLo7+/UBTN6rXA2aIVe8UjO5fCergA\r\nI9Pqea3kNkw5ChclqT5cLr4+0I6kMIN7DKNDSm8vOC6CFn+2vJGvkJQBjjyg\r\njz2gIJvJ31L/H3sfbKqaFIXdgOtLSxCKAlPCKZv2nQeNULKvM+EQlwel73pe\r\nh82S5oIKGT5qt1AZ9K+jGa9JtsEJcd3LmhIK9IWOuonk3wkuzAzzPgIz6+/O\r\nzwMfcKAYNVPBTsJJoiDUSG3qb8uHBxUyRZvHOOu7jtce/5jm4nY0WyeZjN4Y\r\nvbCwc2ppg16zy3KjOpTEFTMATrOMFjo9/6RexwB6g3MQ83gJ90AITYBEF4IG\r\nQM5J4x6TGu3YI1Ogg54GWJDWXomFKl/1WnAJGDl+JcKiYgnMnOouf6FMA6/B\r\njE4j66cWQiWIp/h/fPzXfT7aUvgUTA4jY7sopPlVpOUu335SUPo7jCtxETDl\r\nZITRaE+Nzpxa+mTBuiYImFEq0/PAaqwNRfs=\r\n=49jN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1677002140000_1677002375467_0.09769951876417826"},"_hasShrinkwrap":false},"1.31.0-beta-1677004566000":{"name":"playwright","version":"1.31.0-beta-1677004566000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1677004566000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4413b01e4038191b0d0d83f1549a2e3d2cf05f46","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1677004566000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-A0ZMu95jdFAfKP1GV3+1S5DLafetPT9BhA/KQ6X0ZUH+wGbenr1pgh0H+hl6a8EH7h/GZSRubKszvKoWg3YGFw==","shasum":"36c71d48471405b078b98b479f808526a7c35d56","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1677004566000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICvzOuk4s4X35jwcsbyu+N8RKe2i7YFx121TfgMo7SRgAiAOOyyc0S1R3WvYj0OviRYI+53bP83y2dY01HmMzpW+Tg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9RBRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPnw/+MLSVfqAwoX46CHszQEgQOxrERXs9CZK1zyou0zZnMGIBtsO2\r\nqgW11ZKW3b0zzvMjDr0SphxnhVfphHFxKuuq2TPVF+iiR7C/O6Ue/nX4n21h\r\nX5XwZs5E3qmDoDLyBqcCQ2SB4wK1JzirzdxXzBWHk3as6KqQvG02gOFS2xj8\r\ndj67euDTO94UbsxqaCTj6YGf3dybqlvQpdBi59pHmwVHigU4DUkrtPxGCpyp\r\nU2o566Qebrwib7TO+5UKBT7NoZopD8oxO3K91B1SQFK/fjxYK8HwQjTBGEYZ\r\n49TnchvmcJH9xqxaQWHmeq9bdJmatEncYJydsXLszLhXNtVrdKEEcKw5cUi5\r\nvUGYNmj2W34hWyRIMxmeC3yJWs8IMNLygMjR+kGIgwPORalmOlOsakAKaer7\r\n87WVKuEhSDqUMKB+H7bybZEteQLjLwQtLV6vAMKhtyZASurVDgM7JtWVDyhu\r\nn7a+K43nbthOVYSXjwn5qCybej9m4D9FLa1rxtoq+KvhlDsoIMkzsHqLpuvJ\r\nF9pL3DOIJ9tB0cJUPxsZjTkHuFJ+cEWceLrP4sUYt+voDYWP5M8UVuhg1tpO\r\ncLIDE4GCXXg37KWfmwN1ZOTxl3WZL01C5HC5RUiHohqujPQYsigNvcIgdD5P\r\nudi5J9M6iW9qJ8adnSsg9aGV8MbI+KlmBJM=\r\n=fXEs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1677004566000_1677004881774_0.2750215479389879"},"_hasShrinkwrap":false},"1.31.0":{"name":"playwright","version":"1.31.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0"},"types":"./index.d.ts","gitHead":"4413b01e4038191b0d0d83f1549a2e3d2cf05f46","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-cFn1ie3bdYw/9/Ty3842CfPSRSy+ZWPjEhrxWgC+jL/CUjq5RKVJZwUbXV1UKBQU1Vo0NetsokXmk9EEZiqVHQ==","shasum":"c34de492c79b65dfa1a3e45c5bded785f0badc6c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0.tgz","fileCount":9,"unpackedSize":24201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlM7dT+Dd47b8Uh3tRkWOBXlkY4HpMfnRbRWi2/OzYewIgcFVFAdOlFu60sX46dvFRwlqiwH/CNUPMx95LUBpCbFk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9RlCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTyg/+Lry2wLtbpVkROneRiV0rVbGTB1lStg8gU+94VEsE6eInRkQ1\r\nUeaBKFGpolDFb456Josvg2zWzPTFpOuXf7EXh5h+roqtHXTBo94wsbCAKknu\r\ngEOOqAZFQERiWpltV4ggiGS7L8rFuhPL7/TM88mxOMfw+W+yHWwjTr+m5B3j\r\nNg34Atf7RkaMqVsceNc7PK4KSgyq4wStJPRk9YMJTI5P5+jeOzdPUODFlDGN\r\nVu8nDbjeqfelpLKS99zr+9vbT716hrUhtQtBRZrKj3uT7PZyIwIg2moGtqrq\r\nO9BN82sqpC7TuC5iJi4Qm5wik/n9R75k5wmdK16GeSAdge4wZYvtx55P1v9s\r\n3J+P2grdlXa81qGNWYyDyXjwCFyz7hGif/avXR4RvTEu/8dLDd/Pn+IWejNF\r\nDFavBr/sN7YUmnfWtFVZhsIHHjtP2GQSw3BhG3WLLkCUl/pDCgar3HdTLJLm\r\npBRRUmLYlwNXqwdc9SvYqiIU1UHN1bqw4DwneUK8KquB9MHL5u164FWbPzqd\r\nhIcTgKsT69PgeQAdRb6Y6ViZTwcey2mHaol6uoYbfV47hKv0Riuv915fQ4oR\r\nCfHFq3niLiMeMWZTFlZxI5zafOWVQy3yFvFc8p4EW3Psbv8MuSSDp+v2Iq7I\r\nWDZ4c68M4u+sbQ7Agya9z7w2B1OTpTKpZec=\r\n=XC92\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0_1677007170229_0.6973268221983746"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-22-2023":{"name":"playwright","version":"1.32.0-alpha-feb-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-22-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"07bb483156211a4df56cb67b58a6b228ac2d5fb6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-22-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hXt+/WzxPXIAPfnOusC+wAr+FXxObErZBbAP5evybscYxe39OAoNQ5fuLQokgO7MI/Tu9SZbbn5HVL6oYR8HuA==","shasum":"54c1618670562f7d6cdd53ee0eadb474d754b3d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-22-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHRxhJUj77RZyFAZf1nF7b2nuelSpu1zttstymVJxUGAiEAxPZFM63ruMjEmJZoL638QWZyicjG1eKHgLLm7cbDaLY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9WInACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPHw//bN8m/fGWzYG2Tj+08m3aH5Y27JWOqix2Je116DwliP7eEDZa\r\nMJKn3D28Er2gr8HApsQ5n0o2+4VqMCY/xAAJl4Ripk/uZFLraAC7ABOPwxE0\r\nZnONbOxexeYvL30kgGXlZIAlDdVoPdoCqTLFh/LiL8caN5DACs9lx568/KUq\r\nHKaF7k2F2E2upN6fxB5ukqPpez0tf/P5UlLgY/+p4edmBpDukqBIixIG7HxF\r\n990XEJy4zfK9UcCcniQtF7nbHNEoBK53Ms8d+tucqhgfXO6MmrJX97xh1aAB\r\nyTh62EqB9QXqvtcdo+qfTQIVjNZ1lk/ENlnMM4aY9W94oD0xHULVdGC3Mstm\r\nz6+0Yf4y5T0pydaZ19ca12yIZdW29AI9RlW8Wg5NdL/l3KJmywEm3HQO0tqg\r\nktGFuP7KA+CyRdVcaCryZnlo8oROPgfrKJZVc4Rt+27NcAvxkv3PotqaMy0n\r\nMc3ox2Z3gEG+W/tDnAqqF3r8qwYrRSakEWWnKB7Bsli4A8Xd3NQUVR2G3NSL\r\nL79ZxHIhG6OQ6n2CFdp57dc+tUtIQfvGz8Vfh7rmyTvlpJAe+vkdS2pWa+Us\r\nKavEdtzaI3xVmWa81jqUfKDhZDHv/ydRmff/HJNXsW4WrNL3zkbD8rE8aT7y\r\n0ntyfKbRAsOVYSeqlxcrTxrvu6CLoQJwSqs=\r\n=c+8f\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-22-2023_1677025831705_0.6612030767430748"},"_hasShrinkwrap":false},"1.31.0-beta-1677106959000":{"name":"playwright","version":"1.31.0-beta-1677106959000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1677106959000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"53ecdf7db6d900eed614fbb845d7aac6aebfdc75","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1677106959000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-STWqN4DghoWovHg1LF9CNv8nKjcG9How2zz6xYsSQigekmGuB7Vp4yALexcvCRyTCGwP/u+hTS+EWGDzAKQs+Q==","shasum":"83118d14eeaebff795f7e548690a586c034cc55a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1677106959000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDM6eRr3X69pEMAh4VkZFjqrYckOQO1RhgvJQNvmZZY0gIgGHZ8bi2s6gPkucZaanGeZFYS2UO5tByCzqqL5hjLu7Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9qBVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGSw/+IMG7RtnewastWqWrOwbqwNc8IDNoF5JdDj7C0p8U5JOdFeGR\r\nSbjeaqrcqQUXvVF2NFUFntLFw78VZfMjPWhjjbFZegr42udr6X7RY0MVlB+h\r\nMkR3OmLKWtVdO8VGBVo2ARmdXQlt/6TYrZRX+duZIAy7fGeplRLHY9ysIiJu\r\nwk5g0WWgcLNWGoqZnwF9We239rm3ovFtrNtU1rFo87MZwS5BpMl4b15NSEeI\r\n90SEOLt2JTj8AsY4gPVngfPPhJduZi6p2qb9rbGntRAIDqDyuk7GayOfRNxp\r\nZDcwpriz4MHVVK1YF20YBI4wN51U3rPYkbsAkSy5ASh6S7Ady+HXUQmm9IWx\r\nmcoYm0EmZRbDmRViiX4+ytV4UmF0wvVg6l18ktZSEaMdpXUsSNZL1XnJk1Jf\r\n8Fh/7QN+4Ntgiepvz3EMIYNjGM/6y2OHXXa4fBd7NFM/pfqy91Q7m2L948ca\r\nlocZtFCTNHqYGzYVsqk/TMAuAf7BURBlhpEPqwvJ6jvRYbgNp0GYfUPVLwnB\r\nKAEJM/iJvHIIz+tLroOwQPdHofXyrGjeSea5hwTshVuGBVNdTDUrjUXf/E5z\r\neMI/rSu77Vb1yJz6i+GfMWyE31CEyFlED9f13ywOOm3lXez311ttwe/3x8+V\r\nQDpvlWVQgmKgERlIBLa4sSmSV93SmPv0MSY=\r\n=K6iF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1677106959000_1677107285065_0.7819775037941767"},"_hasShrinkwrap":false},"1.31.0-beta-1677110728000":{"name":"playwright","version":"1.31.0-beta-1677110728000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.0-beta-1677110728000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a4a3f722ba15a0e02f361a6d8338500bb49d53e8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.0-beta-1677110728000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-x/YHNYGw/yB+Ch+Zz63ZkLr85zuorpjrP19Y2Mc0kzefy1FYp4kChuCk2zXq+t9M2A5i6SL8i//RX/ILgqwgFw==","shasum":"9f4f9ea2c7ca83c52944c4393b490b9a75111206","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.0-beta-1677110728000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDF3eoa7MwXbG+6tkOtQjgzIAPN/dTa5mPtqq/eU6M1oAiAiqphP8XMcXdkN6f12pE97aXfJafcJRNLGNuXIJ+qjPA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9q6DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqatQ/+Le/lO7vLSW1kwC4/qf7m5U/nR/IE7cAWU6sVPVCrcgTHlPTJ\r\nG7YdSRBLS/jU6As2VGDFu2XuJOHuWg+dU6mWp6CSqHctlqjuqBmkJYrWke30\r\nqk+rkITs/4iLKjzblun5Kjndb+f4dG3x7cxlm/GgLkQQEj7QByamjFzi9mrX\r\nqZu3GfqfzN4a82BH/A5ORpKWJeJrliFB+l1iwRm14gfyi71BNdM5GG+84a/9\r\nxkDsKOjkVX1Ss8Ga7wsI0T7ZX3eWNu+puJFW6TZUhsgPcjwpmO2mqK2+5jRS\r\nOJkZDtK/UpbppJ5KCI8cv6YMJ7Ob5W0GbU1hcg0DyMn1izwD7QBX61UYhMyZ\r\nefwMzyPNUrhLguK936lEGcWWQ9FVNYCC36aR8k1Rs20UIVMP5nMltMa73+yC\r\ntt14wGAl7LLa+n0DBQ7SPyhaOgQUUlE1dis/UuJK/+UDCLiXxPKFvr6qf1+G\r\nIyk+VJDV0qub6kDMZGtGTNhBk2YZl9oOWWffxBGuBC+ggiWq+Dur2/O1Ux0s\r\nWhOGaFszl7pJHYm44ueaHnvbUeDHoFn7tBfpxH8f/blau7QzBZrz2HhqTiRr\r\ngIgBKPyQTZ9d0CltNozem+eRvFLq2ex6/Ry8UDBtZLBGa6BcQGmWSSnFkpEx\r\nTdqg5wLZU5IG7rII/8PsiU6CKd75vd5Jvj0=\r\n=qn7y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.0-beta-1677110728000_1677110915638_0.7829412201287236"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-23-2023":{"name":"playwright","version":"1.32.0-alpha-feb-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-23-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-110.0.5481.77-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->110.0.5481.77<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d6dae8ea1fbab28d5dfc9d2da650080d2f339e23","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-23-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MLhzrxdlw/e3sNQh8Uvv2Xgm2ajxiFA6fw07AkaXtCggBe2cKxfZpEcAHCs20aT8cyfA7ab64Opv/TYfIDUYGQ==","shasum":"46d9cc9dbe607b375b3a7833ec7849a214a03e94","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-23-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB+3c3I37eiD2PQmyWYGaIR711bHrnSWe6EGpi9FoG//AiAQbuIwNS6y79rndbwuX8t8zLenetfEg7QCvDYkzzwQ9w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9rLtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmroKw/+KLyyGDTIPdli3zo3Hxw1oqf/K69EQYPbSYMHiaJwkCBoHwfp\r\n6m6HWNmArDlCHzDxzdZKudBg6pWAL6Ln1IsPp0fe4J1lMK8N97rgVFau5tGU\r\nV9R+kyUCQ+4kUXzqEzLISNtac8B+5H1tyiDrQKcjWcmnk0X6N8NHoGXdh+S9\r\nLHUZ1GHPdtIROImfFlBV2Lfhq+O/7o9DSIIuG7/kzLRu9jP+QoIf4fsIB8Vj\r\nxjJf348aJ+yr9MG6fgJHSKK+vKTC4+20xASE2bYP9rONjTN3BeSWlJ4snGJs\r\nfLy8Vr/dUgPgvEZDHjGg48ELGWpKUcPz5yLG1PVN590hBeu8RrULAHWqqQc6\r\n8z0K03V+HIBp+Dvq/oRPp0ug9kn5SXShJ3BYbOR9sPwhcxAK7q4JeMQ30Is4\r\nXD6fxwXIjn3FvCXU80zjNTYBFzOMNlb0jf91YmovwGLUgEEByOAuY52UvBbf\r\nGYQgtaRDZ/W8xALv0DunaX3x2X8nS54xs8LkTQWzovCQIhAeX7gLeAVHxmId\r\neTEF9qmnyyVslps+s5SQ+r59SyiP5rqy5tXrxG7zHGSEEFuXHUgfaZnNiMkq\r\nxV6JF3c69755+EVxhbVT/C/4JF3NNn0fVb3CyYRUFboBt68KzNPohkPY3S37\r\nsK3k4OONCafmy5bFYkm01Ax9fr3iY41unNo=\r\n=tj0m\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-23-2023_1677112045039_0.95591891246733"},"_hasShrinkwrap":false},"1.31.1-beta-1677121302000":{"name":"playwright","version":"1.31.1-beta-1677121302000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.1-beta-1677121302000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"81d23946e823091590be82271f7dabcd356196af","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.1-beta-1677121302000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-lxfrJnRU0C6Fj+XHKHLgvyxqqRFxzVuoKj9OE254OMXShBNbDpyRfCr+wpwFMWItqGSsck/o02y3Gnj9whWyLg==","shasum":"b3cdd3ed8d14d6b88f6b68784216436aac03ed85","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.1-beta-1677121302000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5qpk4MopVdcDH33u7HtaSTj8Ybf6wobsV/phNaNtmfAiEAzY8tRyGaCuzQwD/n0XptIbfuVVsYjJeeFZyfgwHE9DQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9te7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrh5Q//edLR/UrAmwdeF5M9+Ts2AYKPcDjkOYCxuAS7QOxrNrkJQHZh\r\nnp1p2n25T71w7Ei30ws8P6QPCUfT4+I+ISY0f+y23JH93rIXtRn+lb+Tkrz+\r\nr19Xx2o49xDvMR9vXRuRegnBbH9iOirpH1zLgqqe74AHa6PI4nKg4XkTIXIE\r\nc3Em3KvlTwJqeFaZcwgjbwKPC7/PIwYmna+aTQY7Fo5dk1j0V+AUmb4PTocn\r\n76P5wtChY/WCx+orYihInuo7mLQ2Rwg2510pBs4Hun+xnyuYwfMSTQ2DKC0l\r\ngCiNu7QFKK7wIo+DTnBufAtx1BPyGNOrb6RnABgrSbqxChjmd6jILMpmmlhY\r\nnFV4G/hCaQnuWU1CXUyiwPX/uF62gGJEkXBva9hHxOaOCXiUOImtqOCHb/qB\r\nC02GzuKuzEeg/ph7GMSpaKthF1yEnKByAi3z49brcTF5NRKGmztQCj1VpTa+\r\nZ2nn+Ipm7v7/a22rEOCjC4k7BJrym2oAxsdv2hW5MlKg5V25UptnA9GHUTQS\r\nIj977D0tdKoTzZvZDfK54zJ1wTEEsAVn/YqNMyM+ZBJOJc1/6cqDVDN1ZbTG\r\n0K757w+ygMyuOV+I4y8fzwC8fZ0esWqXGmTiWcCiqJGmmVb7AYhXv54mJrEa\r\nWEvWuKqOJXUGHdrXlnVt7gQMhxtNp+KfZlg=\r\n=5cp4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.1-beta-1677121302000_1677121467192_0.9309346775173608"},"_hasShrinkwrap":false},"1.31.1":{"name":"playwright","version":"1.31.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.1"},"types":"./index.d.ts","gitHead":"81d23946e823091590be82271f7dabcd356196af","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.1","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zKJabsIA2rvOwJ12lGTqWv4HVJzlfw2JtUvO4hAr7J8UXQZ1qEPpX20E1vcz/9fotnTkwgqp3CVdIBwptBN3Fg==","shasum":"66164cdc1506bc883c7a98b44714dfea50b22d50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.1.tgz","fileCount":9,"unpackedSize":24201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDD8OeCeZO0qM7b0B8i2cuHsq0MhbfKhcFLhMP65CN7gAIgDZOKR0R1CC6ESzMqZH9zCmeKTrFun3bPa9o6y/Y6i1Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9vvoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozzQ/+KhEYlpLOwd9AraERk4A67M8JW1M9p+WNHjEij+ARu3B9vdLf\r\nokXfNm3jZueB0EpJ3DH4OtvxcbEZJxPITN9w6v4AnJ+jlwetcVOpL2Et9kaA\r\nlgiK31jvEVmRjzqGFHDJbndhO3KPq+Wh5LZ32s0pXGg6cAGQsxkl8uuTpxAF\r\nHzS11dlGJPSPa5uGQggJKlsv9xVR5xUzo4lJfGeWSdQfc5CttiHuV2Wk6cp1\r\ntKEpdBmqFmSdo4FFM5YQY1HOux5v59AWW31FhW7pqHzg9HHebtrYj1vT/SPp\r\nXO1ckdV2ohr+qFXGD+errFiLMmsFTrKdFMzUCnDw49j9zonKqJwY8DdF+Ft+\r\nyP3mF+L5UFLeGeXeq65abIPQ79ZczzydJPpKt9iNFqaDeVJKP2HqtbDE52Sn\r\nIbj5fGpHZnVBraj1oSAy9vecDOq+4+mbDgRTyMA0Y/K/l87InI55bv0gr9w6\r\nkMRGuMFdRuxVM7jkS6hzckF//zAzxVdhZUGaUE4pj6ob9BV5T7p8RC06s5AG\r\nxS+tGr9pKv3mxHFREJQsKhDy/Hgk52PxynLBQugIQDck6LRwcfcM9lWwHbOr\r\nc1QOL/+UUweuF4SlmfzNEyVUMuNXPL43jgWq3AmOZy0A4K3pzCS8pkec1eMJ\r\nTFwd7RnQfHfyoRqeffheUWdSkq1fHZDiIwU=\r\n=nqo4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.1_1677130728004_0.4861820579182452"},"_hasShrinkwrap":false},"1.31.1-beta-1677192045000":{"name":"playwright","version":"1.31.1-beta-1677192045000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.1-beta-1677192045000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4b3932de9ad1f4dd245159bb1095eda2ef9c1b06","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.1-beta-1677192045000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-3V91quftktXpeGKpltqZIxhU2ExbdI/xBZPhiU1Vg8TlaFRZLw57YKdoJCHyHY3uUU0t0GeONyIJeJ4jcAmAfQ==","shasum":"7d9645b507ea67e34719ec14082b11e23afc12fd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.1-beta-1677192045000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYXkyiCXi8dg8mef7ZkDHNyTz9jlLlLarE/GPAEopoIAiEAsFxJwYvCHG3le4whzotvxbSn8J4GFg2wOHdWmjEPKwY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9+wgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAzw/9ERQVqr9+UleNdxka+l+CSfY2ttKqugE4bC1JeMGiswMNKdrY\r\ncAv0ldfik7MMgE/pPU02kEMjLFFHz/GDkQORoTEEynT4+guUfoKUpW4xRWkF\r\no2TWK49O4raJjbvpi7k+81njRJXF0zUOCeTmKLhJBE5NJK1IWqQabS+oAfKh\r\nT7XeOw9v5+EPcZ4/YjGuz8V2wIiDMZjLDiS3pRlnfAvsQOG9+8WbHEOVPwlh\r\nlcygVmNMCJ8keCTHhSIaaEIhhy4zni0Pu4T1VTn2c3OgTHWaY17aKpU4YNhw\r\nwpghTLNtkNncJ9zAc/dIl/Gx/EpVF4z/V2LNgpJK+p11dEVTzzTWYuctWddF\r\n98YNkgjXo3KZd+cun1V1aIgmeSa4s+ofi4LhkGOE5+jzUWG/w8E5bqioHGKE\r\nlSJiGRkPIwCHL9jTSaovckkWl6eHN/UB3zE71gYbwcGRp9mkgKun403L5Xl+\r\nImGc0FN6EIYry03Bkwf635Nmj1T8RvIfgbSnKj3INCh9x4B51Uc4dlWK+IYb\r\nLvN1QDor48i3PjgiXPcnujJoGIGOWOfZQLos525p1gC0qrznGD4mLbDwdvgW\r\nwVqFvketUCnay+oo1strYTLhQDnMNzVdYbpxRElp8pZ+qtafftxM7n5q4ZZh\r\nqr2D0S4rf8HOW2SLtGMwmnVTD4mUqOORgR8=\r\n=NG8o\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.1-beta-1677192045000_1677192224314_0.19636901142675378"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-24-2023":{"name":"playwright","version":"1.32.0-alpha-feb-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-24-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f29d58e87fd247bfc7421fc40b8ac2d45247eda1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-24-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-LBJHQjb7AWl2O50Ybu5zDrXH81QIJPzKnVIuW9fee3e8X2EDLE/yUNWV2Jf5XzDERIW2R+C3FOlO1ZRHRbDaEw==","shasum":"9a20ee700500d4d11aa8ed2f0fbc289dd1b6b3ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-24-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQq7bQQkHWnaFafmn02hFoGMceuJH2RHQ/7g5HLTAaagIgFuCmQRv+dWlKwNCro5SCOiHgf3y3an+HCBAuPCm/i9g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+ASOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4LA//eMSSYl9QF6J5kILoFh2PUuQvgr5lTQqACKFSRpXLy4G4JpNr\r\nvcmr6w+dXJ5h5BAznLeev5MvAKZxza6QXYw80d64GwYEMChKcIDoWgPqPDc5\r\n9HryjSw0q8uB4CsnegYfXC1mxkqOP5t7CZi7nu58xqLRRXkauDGxaLh0L0Tk\r\nEOH+6E+fzsVnJNYivStQXawroy+MmXsyjeDSyaFuaYM+XE+ytekPewTnO9nh\r\n8TLYiVKEfBfXw8Tu4rgmDfsOa2/Q61KiWrlBQ30bPrJQbGPMQlWIH7U+dzVW\r\nACo5Vt7WZjJ/WLQtJh3SlHDghU5jXx7/BF/++XgUwuBL6Si9d3zERItGJk9r\r\nPODly583xlNg4gpm4Q++gdVmMCKq78DlldUXyEOe2JdGe7TBK68rOw/Bdvt7\r\nMZOiEwb4yVpV7UaNaNqCuI/nVCmuqp5Qw4VjeeOlpRwtXJEmScBC1H2OsQ/c\r\n3AO6M9CsWop0FbgHPx2ApmB75r3TSDML42dKiuqHhbmOdf9b1MOXYWKxGzU7\r\nzVkUCMBqzd3fxEbfLeCm/NZeMsNg0mSCDK/EH6NM02Bo0Lq7QkcIiQWNX/nq\r\n3HRw46rHqkzJPqzKrpPPxSgz+GdV9YJbvYepgEqQjDS0pM8NlkzVDfA1l4Uz\r\nFVxJQlDsK5p5T7Bg96YRk/Oh8M5LDGgqKPc=\r\n=QLx8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-24-2023_1677198478728_0.4545532192087647"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-25-2023":{"name":"playwright","version":"1.32.0-alpha-feb-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-25-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed41fd064317446bd191d29d2f4e43f22cae3009","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-25-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-CWBd47MAEc20uk1hjk6dU2j37Hc96ZCZ3cy5Aj2BrIcb3xJgIoVJOgtdrzc76k5isg4F0PoScJgEJzk/Upp4EA==","shasum":"4e5526290630ec69d0b2a581b7f0f25087a7e8c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-25-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSvi/P27vO4uDMyFgU7Ev9FE8i8YHUsP2CeK0EfqSbLwIhAKIBa2F3TmVucVAHmatWtVD21Cpp9QlKxzWOBER/ekAr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+VZLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiBBAAgJArVUzw6oYNq2JKwUkfWH3NloNrpgQgccdJS2fFZ7LsJRxC\r\nq/LWbCNqYen44sITGFI+TDcNA/YTwXbGAcks+yETM76FbM0M0wxZsG0+isMz\r\ncbJyMqB0BLpMcWV/+0xknmKe691S9NKCO1ZaYLPgzSzHA0F2oZTNLsVdPThZ\r\nxMbYovNoUslAnqBcjvSNAsHEPZQHIeFGdSe1VNBmqrulpas90pwkNFnSMoO7\r\nZDAjzwXxrErxII3DwMDd4rQVN6qG8PWpNqPdrcv64CxMcsyOEytwxhGzBHUR\r\nv3f7PAsgekaiJjjdYm7qV5WKrzwK5JYbKyP0eGw+q7ZXiTP0OMuX8NCSezti\r\nbMTCZ+Qr9ZNkWaf5nO9h/DjXuA6qg7KO3CvoouT3H/NIt8Gfz+rSD4zFfMg7\r\nr5Y5AafjJQdx1ov7lbLznBB9SKVgiWBJ/hANYeo4w0y2Q9edqKZudvZnCkOm\r\n5I6tTHMMVlzZxEuhTyukOpDc6cLIgJsOq6CqUKonEVn7LUed2hwPrNozt/sB\r\nZPRriv+s9ChPDON7Hk3Fjpgx6d1C8jC3CNS+onUY3iBsvE7gwgYRQ5L/nbT1\r\nSv4xsM5mUznaUKS/FRZez5d3Mxy6IfQL+wgSdZkK81TeGh42cR+07UPJ6WPR\r\nywlF8xtpNnMHZPFEoLh3V5gVTue/NV9g3SI=\r\n=ukJR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-25-2023_1677284939340_0.4076682326504384"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-26-2023":{"name":"playwright","version":"1.32.0-alpha-feb-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-26-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4b8f36dbed2242de683900cbb80470ad96698ba0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-26-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-EUa+iIMgKwMzDNZaSW8cx741FSpB9JzOK7B31okvF0Rs9R7KsxkyB/VhR2Vq3jKWrqP4tAbKlXYFx8LcQHUSYw==","shasum":"86965aedfa6c8f855ec55ce04a2baf2ffe86f429","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-26-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUOPdoqqhRxUsxRkzBty8SWr9zV1/ucI5joyhVDBv5ZwIhAKw1MamP5cz8gdjR9M+6But24sfVzQfa1SJiZbT/5hcy"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+qi2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpajw//TzcyxboFqYrxstY8UocLDT4huS2b3DLoNZKD+jJe3WnI94vs\r\nA+ovu93rLG39bXA92oTI0E/u+inVrx1BUoyw4tuYJYrZ4Q6PHckDCOZQ1lxO\r\nUnc6EWeinWwGT3yKZ07Z6ku+n8Zbo8AdTgfqN+1jvF9R5V7NU6H5dCMP3VPy\r\nF+rMTJqD72OT2X9B/7f+0qFm/YQuNINRakQrZffFI7iWsK70GJ71OnSrJzfB\r\nWyIkadDmkNAHkumSt/tWaEoaToe0dVcIDR/pNZtoHMopfh1RsOKoj3qidme9\r\nWbMPgYqtpBNLdqmPZE/Xal42AFeu5P1EuGQSbtv4txh/yoquXfqjXBiEL6jR\r\niQUGOuWyS48BRFkfhDPUrl23JUaX+tq7FRDpnb0cCUa6ZRRUWDgqYjGxJoES\r\niDtaug5vCNT9JdetHZAliNWjkzxDO2PivOgStLvY3b79MKJDsMgxJKyfjVk4\r\njEZgqbAZiv7CVVbbOMMewOJ4XbhbfVzXPAI4lBeXQGEXQSGj/6YXlasqSfRK\r\nXmJ4oKs9lUmdndSLHq11nrRECKs75nrK4UpLyC2Ni7njBGsfrw0C+1BudVF7\r\npKFp0z9S74VANIPLw65WClLA8oAgHtW25nCyJHmilOgUbQFMpcL8pWSncdB6\r\nkYfobpHoCMhhmWh1OOlbLpbZRUOAH5BpgKc=\r\n=49Ix\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-26-2023_1677371574048_0.7051406099109065"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-27-2023":{"name":"playwright","version":"1.32.0-alpha-feb-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-27-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4d91248c1ef821633092ce829f8ea32733aa99d4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-27-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KZ8wwHbyUitsdVaHg5F6lVNLWaEpWVpCpn8GqczNhp3aIRVAYbaWr72bq0EVL6bsdU5dRDeMoT2dttYWfzTV5A==","shasum":"6c2befe754a73147f3fad56d591e3b1a9332e6b6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-27-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDowYsBw6rL3xceQz/v5eMIGS3GHMjOylYrz79taGU+lAiB4mVdFsiptWut8yHYA9zI2Tr1jQtKr7S+PgxUsEJLU6g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+/mPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquEw//YZCsz7ZxLBUg7uJMG+KYBvwAdnyKNEgJseivod0vjT/4onH4\r\n96A+Coe/5a7DsLtN9781ALhU+TAUuSiHqtdbnMqgPdVdeed9oeAbd6dtrjSP\r\n0lIXY4RYSIlQW6xDDgHgJDvKRtv+DYe/ydxGLQSjXULNyDBophNYPgeu4bGH\r\nxxPbtmxC23gOt7CLXOiPG9vh/uyuN+ySIKtDNF5p6R4zwW/QirvhL5E9CGFa\r\nEuxIn5L9k+jL4c5Ae2Kk/kWiE82CEgvagwUwt2IBTn61oNgguyf90vSMT6za\r\nLtrYuwSDB0tOkXHOf+wQxM5pPIJkdXeW60vTo52F0LkHp6UZgRrIb5a4tsvI\r\nIUQKk3DQtIPLeAJwTklm/PUqiAHn22PxWU1o6GBJSr0OzpIn4+VLR0ffDFrr\r\naHOZM/TzcnLCKQFEFnoLRCK3+CtJS2lvQZclaqyoTsnXn+Ml9wxnBep569iP\r\njbdNJQQSmPjdckY7QmI0i9evacQITK/nEyG7tDZyu20UsVG4cWDXSVfAYka7\r\nvSqjLARSpyGAW4DaWyR0S64UlT1w/TGS9S2FUEuHCQZsGhHUqp6MtZ3Gns3H\r\nF4yzdKsnY0EEKM/h3UWH+81scudxbQboy2Ir3Yh7X2AnNsucs8TxYW6dxo5k\r\nKOO9mTdWnSjBJgVPQ82uBvK/wPgf1Xt11jo=\r\n=D5bF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-27-2023_1677457807412_0.009629712825031111"},"_hasShrinkwrap":false},"1.32.0-alpha-feb-28-2023":{"name":"playwright","version":"1.32.0-alpha-feb-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-feb-28-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"22d82b6e1bf6f24e41b92bffe5b1df51443ee3ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-feb-28-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zZWZ86zWyXlKtGL1I2fpWAbaoinTlhaM7RXp30rSQdsiJV1+HfzZOqzKceaJROjAGv7W4zEwvup3FT4bJfhVQw==","shasum":"adae3d240fddbde27bb542ce6c333375ecd1c7ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-feb-28-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHn4/dlqyYIbOpvgkUMW9b0gzV9ZN49272OzCCxjj4zEAiAWKumRkQDojgg5AKpObCjMdk2gtIOaJHMAOER0ajHmxQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/UrfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAdg//dXlDVA/BBlhu09d/l353QW0eKDeJQuB9+j8v+nJVwLoLQUPW\r\nvHV6lwxKDyNjV1o6E8ahjasxREDOxRfY89qoIXqxodFd2TtyxVg1bOhFvt8p\r\neRtfqxJUsykLQ0lLZC7d5spxcF27GjCGdKwdgC0CNWUclcFXlrONZHGOb72e\r\nlADHJOI6BcUpbFplwZKmp5ne90chSmGo4YafRnCdsfmR9E1Id5ed17JG6gF/\r\njBVpEquq8YN2gsK73gm1sqyiGyRPVxmZjSjYsncMtHgt/ls13Rz5YSAlZ9LK\r\nOtxY8Cv5CwOxvf+x+qv3drxzm/kgX7O5oqEQZku+lTx3elfVygduVbxKPd9t\r\ny6sp6kpkkgYVoN1mjefa+kKEVYRwIPjpNlEhQ4oPdq33aDuRf8C/ChiWFsBy\r\n1+L/QTDpcePcyi1dgwSJhbEuoElgEQplbdHvwiqTF6Qnnr20/capRXETe29S\r\nXtBQ5DDML3HzfxUkulkMuM8w8bkdWHbAVr7FVYwbeMRRcZnYyB4kW5+ULVPj\r\nPEtaRrk5qxqVCI6Jvdk81iRTLmrbSriE0EQhf0/9YGBo72Kg1S74aq5866+M\r\nyN885ruCwjohJ524YHXwTM1kVQvLjFAxePyCQDJXdfUQzZH3RlLml/VMnIc1\r\nBdc6Nb05Dkgoy2u82ryC+QERB6Jx2xHuNJw=\r\n=Di7z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-feb-28-2023_1677544159098_0.304962264735116"},"_hasShrinkwrap":false},"1.31.1-beta-1677552113000":{"name":"playwright","version":"1.31.1-beta-1677552113000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.1-beta-1677552113000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"db82ae01797e72b27e623886417105c4dd035cd0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.1-beta-1677552113000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-CGkvyx5OdLsjK23l5ZDnlx2i/+oNTqZ3ETZPgFcPksatv5LuTGLgzF0/CoJELdqFlIljuwX9042hMJExa/8tNQ==","shasum":"eae76a313a22f02c1d9424aa0ccb0e8cc986bc5d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.1-beta-1677552113000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtXseCouM+n5HNIJ8qZo13HF8kLdEOtTYvWvfitPx3bwIga8jt+cacILdGJQk8dIZC2MGi4s4FmZDH1QKxvoHoIpk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/WqAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+gQ/+Nf1k1pflTj8mbsbu0wKJ8Pa/sLrZnvsK0bm+vCGafdQG+2be\r\nqvhqIvXgcmpiifNCuOvrBcVnIp7S4Ez2Ya5bk1UgzdHr9lZGDrJHucb6Or1s\r\n6DVrRIkfWGammpcsLsu6Dpqhyx2+MNVs4C4kdDt7Ea619+3jy4WbXMYCqTQI\r\nFtMZQKLrknpmXPX12Ai6mWGnIQtqFNRv7SKD3UzYr4BUshE16WTBnCXIWtc0\r\nKYfxaZzTNCgaagm+bgjrl2fZy/+4CFnTdccW/F7MhdOwI81xDYF4mCnCPjrv\r\n96FrJGRFKas8/TRhCTIzsKrcBCZT2uRT7TFo+nEFmjrFOLhuEy7Bx7VN5PZl\r\n3RCOy4mlfOUbtq3aQzR8qyg6GfW1EdLKp+VrXRSVpb/cbofpsYBmtEh63Z/a\r\nXVfsw30a4CEjic3+7UF/ta9okORJH9jtqjN3qdr+wMamwJO0jS/q3IjRUtwy\r\nmt+y5SFwNr91b0ZUy2AxrdVKZ396QLeBXJmzSxzOzAyp5MwbOSfTBHShnXJt\r\nOtL9kjxnU0xWFYiS8McadY3w8DFbZx3wu43HsOsA051e+EGk5EjyqLBMR8yQ\r\nt8OFpsNuKFFlAO1/WSEMc9sZJIGu9Tn4lcPA87YmnbyXAnPNzYg4PIC4zzC/\r\nfDqB/9s0HYVqXpbaqGoeflLRuV1Y+BChvX4=\r\n=sK7x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.1-beta-1677552113000_1677552256012_0.6309946465834986"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-1-2023":{"name":"playwright","version":"1.32.0-alpha-mar-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-1-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b607c926514761539c949587fecfc41bd52d09ea","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-1-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-JHLzoJL3IQgfi/6qed29JERZGk8tDH64Z9u9xRni78GZERgD2gqjIywO9uSpjCJLcaVFkTIrnfCzURLehOrVzw==","shasum":"c575779124c1eaf827a3fb018f5ae632e956ed61","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-1-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSopQGfE8VqGaqM7CovZzgeBzsKr+oCp5TIqQnlpiDFwIgHrmNNzvFY2tGb4lpRSqclIeWQlx0Zag5TkwaZwv/SnM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/p0dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1Tg//Ut7TNc7s75L2/jTMc4RQ7GcoLlWK1wWXKdBVlPWDykxv/nAy\r\nPpuYfA1sy6Wg0aeqXn2wc6NeZvKKBE2F5Ug11R32hJb9Tv/H6XVtfLWEMGuv\r\n9scorFEd4eFgO6Nm413X8OUPCNMzh6J7NWunwXryPrWhoF7NIhoAiBQQyeWC\r\nCD80qaw7t/6UIyMpFwj3fZZR37EK7fkgjbu4hdj4DOQxbOpFj1lkOSWZyWg5\r\nYcl4lVVmbYAomZDqkSXxI14rQGvA+t8FDVoHI/9yhlgNHgTo47AVtbomV6lg\r\nHBi+t3E4TRC6Y68IgGQdyb+tUg656jQrYL1uvtd2xoXyKRoRV2tGjCI+tlgT\r\nCg1wRwBTuoKyBSG1O6JCCEI75dqh/emnRXZ1nXJceBg67m3CABhiomPtn+m8\r\nVXz0tgsUFBPZTtqlWBHkFvGChTCJIjdwcoKDnwcdXkmlx40HGOwmAcUUYI/O\r\n4dEBXlFzOm8PczdnZOlB3hiMT5jRRTpv7oOdodk3U3AMucHkF7XUm7cbMw/Z\r\n5Lw9pFabUiSrMshKgQevaRwkEXiAIy0H74IQwjuUofSYpTIXH0bgb4d9ACK6\r\nqHrtN3WQGa0kdlJRlG+IVA4C/3vZ2ZH0E6wc77XY7ZU2VGWqN8SnOY0IxpBV\r\nWhGA52uhOX2fGzz5RKT8LzYsd/eJF9ThJHs=\r\n=eYq9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-1-2023_1677630748910_0.5491870832019132"},"_hasShrinkwrap":false},"1.32.0-alpha-1677632926000":{"name":"playwright","version":"1.32.0-alpha-1677632926000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-1677632926000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b343d453bc2459f711044339bb65a248a2f6f7a8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-1677632926000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-dZu8eXKloJJxJxfifiXJPd5js/egO6q/lzN9hpDdCcr0wUBNF39pf6K2NxR5dDaAf37INZsDH4bnx7qGFpVbEA==","shasum":"06110f2a84b8077cd106ff974254ddfe3a4808c7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-1677632926000.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/i5/4iKEuUkPqcRFsUdU+7/5TYRXFwhX/glVQs7Er2wIgQeYGGaITerd7RvEOPQpX90ybOf1TWKVhSLkgRo8H10E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/rvwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocixAAooNc4Axt4UQCVdcNVAMHCKQdGl0kkDMvlTJCkCtwxC2hQRmu\r\ngRm1hZrKt4giRkl7T9hda8E7KBVFHvf5L9RPaY+gdpA73EIqA20PgXjZ3Cci\r\noXFRUg8U9AWjtvZTG3SRJKdfFt3Ea9cnn8ODmPRYVwittic7vM8kn4+n2I/W\r\ngg1QrIla7jx2obA69aRDvaEB4H/KU4HuGKk8h0SPvddZ/4Z1xnRhGxXDiCQr\r\n1XUNw32VSJJ/iwtp06nJnomx9bmOZA6eaTM4UVYzsxxaWnA+Lxm7zbvW9D9o\r\niXaJIf/T+kaZt0sqp2R7cyq+iUdWEkvR7klJr0bP+6ys0GtTzWi6Q5CQvNg7\r\nPGb8gtgcVtn5tPiGfimAFdrbh/k89F1b3DCeK8f5U4yH4AD3k0AIUJZ83JL0\r\ndqQHkK77nIvFFwYiearAk5aNDZLT3/R2V3pQHzgmHm0E3Y/YPZjtNKrXQ3Zg\r\nDANd6zpaXfUDd0tYxyoN42n2LnAGopmRrq+buTRg3O85sStdLy8hvdtQPjxF\r\nWGhyBId3YDWC6oTVZXBqAwEyCM02a8q92t9YjKs5kOb4dpJkkO8znHakgYBA\r\nr+CL4i8PIAid7Mmrig+pI0ZJd16zbPk3zwJe1ABMheGmP8EcrShh8Jvp9z/i\r\nlNrPwjRLxPpGZ/6zgjGz7Yh4Ldr1h548Nc4=\r\n=N5H2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-1677632926000_1677638640728_0.7541913981251529"},"_hasShrinkwrap":false},"1.32.0-alpha-1677690983000":{"name":"playwright","version":"1.32.0-alpha-1677690983000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-1677690983000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f8100bbb25fdd59aac2719788e9f0d5267d55cc2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-1677690983000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-JK5V+vSARQI8rQuIZcX3lYKuQPOwKGWqFl/g27cj/lIAikmLs/qep6Gki/DqNngy3IQbwGOE/RdvnTD9f/ULFA==","shasum":"be247b9b83f9695f7e7577bce7e5c3e4eb87d5c3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-1677690983000.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIETJtWLwO8ioLqIAkqaUljE6aThEMnoku718upDdfzILAiEA7ntfE4jNXRAsd54GL9TDXyVJe8NhGdGjyOQ71Jc+7b4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/4kZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTHA/9GWw7u5ihJPHst8Tk14BG79Lhhj1NOJgKecKOGp91IesIKpii\r\nRKLll3dkPW6DxMKG07frqSI7l8RdkG0RyYLx0LwGgFtiwS1iS9U4NjKISMCA\r\nfmPJK/iS6W51kq9Gqhksm3iaKTp4jc0CPmNlWW9JFWk1i7mslbRoCbM5OaP3\r\nyiJv2qrJnUvXQl5LHVnVbf4TxM771Qe2kBy3/sC8pILrPkvTCrzucF5XoSpl\r\naJd16fJnLLY0+AzwhqfPV5KP0La9F0n55cWMz5J6vXLkc1/yf6jyadFjyDpF\r\n/RF/xeUqvJv4avZ9BDHcQzw8kA3yaHLrNK09D/j7odvv7YbuKX+TteHi+Ms5\r\nG41eQ8HqZn7qOtlQGgt8Yrm495wrVpmZoQ4rAXPL3MJKZLgJYHAGUCELhKb/\r\nOE+z09C57OPGeNup2Q1+lwz5+dvgvl1gidkXu8ruzM1sJ2ruIsTT/+VgIQtN\r\nO3oi9g5K01djE4g8Ivc5w+Gh4YTSrWPmq9TVTEF18tLz7R3aoY9wOOU27qaX\r\nCVyIBQK1b65K5qcY2/9bYby7pthdlgnk9zYa5YdgFaZwbOg3ph8E55VbmPkz\r\nYMDxY/QEDb5SqAEpu6F0045lNsG+GQZT/O6QlQ/QYy98HL61rWL2j6TDsXFp\r\nwd0huT4qZn0gTKB+b5nG4MczRZJ/ueGK+/M=\r\n=e+2X\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-1677690983000_1677691161521_0.8961865233899096"},"_hasShrinkwrap":false},"1.31.1-beta-1677701932000":{"name":"playwright","version":"1.31.1-beta-1677701932000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.1-beta-1677701932000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"249825f1acb93bc3544d72e8b5e64374d7ca4eea","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.1-beta-1677701932000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/J/pZftgknBEC3WSjFamgk09E2mUw5WUZcOLtcBztXWUFBm9WMO/SV57Bf+KyACOzxB/6kFsu27ivCcqRILjyw==","shasum":"a735eeeff0d5bfb3b2d39c05e5267e1a391fc7ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.1-beta-1677701932000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHZFTS5sRUfXfy5jXLngdt7q3eKhfanj/FNmiRDQs4PhAiAEnhsQHe2cRcyjh2/so/njj9T5+3GFpUEGpl+BXEDSOA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/7PUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmroSBAAjHms3Wi2vM9QNsOvbeUm8OpgQq0mtXiEnslB8bhhT3OGQHzI\r\nFfI7U5qaxt0LlWVi8XPI2jXRLvTElbX97K522aT3pCjBGEEggiOfKu1MSSOy\r\nAevm1J6l1tzJVZMp9Rpn5WK5AJ3hxrXpT/jtLyK6KXaHNVzPEBT8R12uGkSX\r\nfPCrUnsEr9y/UCfFztuokabmPpX3WMOsNWgmo9y3Hu2yC2OCGZrTSwutfz0V\r\n87gJQoZfds0LTUIuXsXufCTRDK3KGcnhNo5T5Gs2GmTB9YYPrjEztm7J3rSD\r\nf7ZO6ZhvPHbH+ZkrX+mxYdrPdmE0gGealb7p4fh02LtPbYDGMwKJHtVhL39a\r\nMyZZ7K/yKUfPDyr72jBP5IfpgTVCNwomZHOBSQgxCM4t4cUOKwqWaFO0S8Sx\r\nSuBaB7OXLKIt/nN/e86ZS7id1aPGk4Ufc4A2Br/g0hHmu0enJe86LtLi2ISP\r\nUGE24qT9PG54j3HcJK82XOVm6BpXpo/WczdV3xDGQq/W2gJUXWTFn6UZuTU5\r\n3UynTeHZWJgnhostdeOL/+0MWSF24o4026F3zgiRFikAXUbqUnQGfYUeZ53p\r\nKlxn9MB8J1bveP2gv/jliYzg24d2y6uAIhwTD55D5nU0kYnOEai+u/azQItQ\r\nzAjYqe9XuqUSnHDTInWRnelqvdgXfffFpSE=\r\n=pMfN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.1-beta-1677701932000_1677702100667_0.3375664166061332"},"_hasShrinkwrap":false},"1.31.1-beta-1677704149000":{"name":"playwright","version":"1.31.1-beta-1677704149000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.1-beta-1677704149000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e9fe663e892e51dfd7ee24b41b38d6e85e294ed9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.1-beta-1677704149000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hT1Q9gWPimAqepFsp85gnB+5WwGxuFb3/zNSH1GdaJ8XbvtME5lTkDZwiE5smSkjM+MfflptlN+tTVdyVgBV8A==","shasum":"05826668115d858d64aecfd2a2f79684c2296fea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.1-beta-1677704149000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTUqcCI+Et7BsJ/YeZg7lkqHlxqmebz60UfUHsSLsWWAIhANYwCY+BvHXb58XT3uNtv1EIkUY5rTIsetV07KmH/T8Z"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/7x7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSbg/9HTb8NFvOrdOtYAOp2t6WAqqisGT7HYvc+KyAQZlOCm7zMT2B\r\nFnygm/scZZlxA7DSkRPBvPiBlpdGpTaWRUG2Xes4mV7lz2dxzLhbG4bJmHYc\r\nHHPyMYnAAjh//FEQM139BxVMs0BrFD1LJVxpD33np1LsZm9ckvXXCYeRV1Oz\r\n7O+4oN8tat+naSgiigg/hDW8gWOxOked27POw7Sc4lxsRLdaTTeQsgr1XJ9W\r\nFH1YDAvucXqbmlLV7xgiuq+J9arDl4goNOOPdFs6JSE7jArsllI74XsnuxmB\r\nCjFc7gVF5AbY17X25ZBumf4914IeQS+EhiPwgI1EIkpkVKRuT9Yxfm1xJR2w\r\nNrZxhDfZ/gaYMvS91ChXRo0l47WBuUBIYhyL1FyOQMu2AVlDX541t9Zve9ZC\r\nCGsDqbTUHPRxjVTBJ1eJb6lUgIr6M2ySdAjcwdymeTUGdmHkI8BJ7ZavfzGJ\r\nCofndVcoOlxRyCw/n8YVdvKUeVqlZ79mi7RHfsexMHWYvHZt7k38tJLCXPl+\r\ngg5VgyN9NRlTAMpGQ9Jxrc7/kzlAVltpf+rHKiWW+2WNyj2gmjCFwQhNhycb\r\nsKEd0offrsQxGmcyMXpGmh/hq1e3Y4xXgijdNrQUDlkfTazpbfvW/q80d7Ft\r\n1ZhSD+g7QAlzUwhZRX4TqKCr2P0sOQJTts0=\r\n=IYNi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.1-beta-1677704149000_1677704314782_0.7092693116983115"},"_hasShrinkwrap":false},"1.31.1-beta-1677707236000":{"name":"playwright","version":"1.31.1-beta-1677707236000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.1-beta-1677707236000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"128b2ff1d5ab4011bd14433a9e013311b3c68200","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.1-beta-1677707236000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-bmf7yO97lN5LhRqer5HTzc15IsZvgqs22rIQuRIh/Bof+liLd3vge9bBdv55ebEe1aafeic43KQjmfA+xZW9xA==","shasum":"c156b910db3aaae0d8ea3ce48c73471445666417","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.1-beta-1677707236000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLFctMETATnMaFIBIiCZN+gDeDa140d+0B/9aAYuKUVAIhANJosvUHyza/UDXyan3/T51ZXYuvu4AV+QQ/pWfJ66+N"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/8hsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7mg//euwCpCK9mAx9zTSMGbEen1iCgH9ymTLQpN/VoY3nNV++PX3a\r\n8B7g8EyW8Db7tHWDcXHxBr8tvHPlzB6Yx5u/KQ8IfEs6TVeYzh2106EB4J0e\r\n+LpTHSp+ZIBoI+zw6unWRJ2+d0RLGUOM/KD4RGRbPvaHiyM6cEIzwytQZB7x\r\nm/52rHaaagIEwQ+0r3aDHvRGjhh2qUFzSLF9yCoRQOkXmcC/5eHJs13d/z2R\r\nI93LAOsge6sp8l1dKWLNxmYDzIin1P80n2nydIHvq38bFEZsHadKVMRA7NYK\r\no4CIO5b+EwtcDBkX4HYmPLYvPRmQzFnv+0ypW8YQGcTT8Pjz4IfuWbnPVt5K\r\nbPcWJlW9y8/INCtuxo9UjeFxETklW7oWB8CAjAMZrIMqi9hLNQLcNYDwgwaW\r\nRbocO7uwR/Is3q4/KlHtdE0kIHZ12xBX4I4QynEnnkK1e5WoJFR7hKe8dmHW\r\nIhWi9xFcfrpWISEuzJM4pm09PnxiKB86MYNLv/y9zBJqlRQeb6p48JwCkjSs\r\noeTZtn9X+Oe22n//PovPDdRTFRXy4khWvg6GulOSnVntYkYLnytOnDNv5aRz\r\n/c21rVZD+/x5f8Xj7O/5WRpNZUgZevKihdJbHWZBza8XC159nQ86Hw67KvRi\r\nKdnzMcJdgDDkITwDDSecV2KRrIzzxI6KVyY=\r\n=lENU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.1-beta-1677707236000_1677707372079_0.8448559632067933"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-2-2023":{"name":"playwright","version":"1.32.0-alpha-mar-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-2-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.41-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.41<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a7347f134e7cfe625ea5466a5a3bd126bae1e0d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-2-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-IULGfETRK14SWsx8IjG3mEr7QOF7/Vs8xTazm5NJl/maJUSN1mV8fxwZxXSdJrDKxsAZ0FzsRID747Quov60Zw==","shasum":"52757b3204af3208590a64b583ae166e293ad215","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-2-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEatSniGtXjlAu07Dkb3coSZPefowJvsd3zYVqSizkbcAiEAp7xZkkHKbhao7t6g+rz7OVfgXRhsR25LULnDXCEwXCQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/+7VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/0w//cJ9xTIUJMBWLnaT+H5JFAdSkik7qQItVx+eNIm53O3fMwXbE\r\n3ljaM2b8wluR9PYIFxtFqlejsDguWUBT7OFyLeuefYJHq+zE97C7u0acYmd6\r\nMPVklBO3k+9WTsXRpxBvlGtQHcEv7rxp/+H/lZ0NQXVpN7R0TTIIrDLwF0QQ\r\ndHGRsuDEAwbzlF09UlWuSU0eZY8wTtx8nHB8fY1c+9R6tpZbX4fHWn/acnc2\r\n1GrDGdmq7JNwORM4scsS1kqnn/G3Fe6r1BTMt4youn0tZuEJ+H5GGFAgQ6D/\r\n3bMMkjNZcxBOqnwtN/332dVkZg2qesyNUqyTe6Y89taStJGYSnZpWmfz3NNi\r\nKjnXnOHGxM4D9tCm2nBvmjYZWmXd1MqczxM0bMzV3Rnr78Ov8TRfsHkRCELu\r\n39jeJMI7/1LcFlqYoUV6Sc/9s71rXXthX92y6sId7uM0OReRxmEsHQe+ZBIZ\r\niCj+i4Qj69+1pMTLtda7PTxs8WmZ4vtj1jCIcGQS6aqj8utF+1HyLDLqrtfc\r\noH45IyuvJ3ICUF/GGgVdbP4wVPz8LhYMpM8lO+gTy4tUDiXBFozcSUvFFpfr\r\nEOXpxwYsg2fAFrsCvIZDSnPjqcFZNwqW+LYorOM000kq+ikD47zoiiIzXRqS\r\nEf2QNcvyNJYuQQ5GMOCwlqItfQ8OL5xIpW0=\r\n=BTdk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-2-2023_1677717204866_0.7545491928070485"},"_hasShrinkwrap":false},"1.31.1-beta-1677717762000":{"name":"playwright","version":"1.31.1-beta-1677717762000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.1-beta-1677717762000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d7ad0a01800c78fbc0f040a8e3df08cb1c0c99c6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.1-beta-1677717762000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-iOvWeOw37ot+cCsFA/sdVvhbZjuXwFl4L+0NVQtxJzp+glAErFp3oktT+VmTXkV1e7sYbZyqt4d71TIXXAnBBw==","shasum":"52757b61af57a91a4a43ff2eeedbab27eb68a7d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.1-beta-1677717762000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjrZs0tP+ItVSKdwZdb3oQWrTf2E+N5YBawhqVSFzyNAIhALA/VFO6eygw3PShPfXIushHrqYXX1sIyactXhCj//id"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj//G/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5lBAAhpPzQlL97y9yecdtEoF7bd3yb8tcV92lONJxjBoDhlt78VfS\r\nNH1K3rGBiNFthhBu4poFWWT+YOKMoXFv6epMc2Y/MpSgXp32Gp4TR8z9i1YF\r\nRL3uHqJCPOnc/MIUhVlRcRcpZYtLnt8Qvi6VCovJRPH2ctNDMIuxOt7eoXes\r\ncu8Pqhup087NXD04h7cfV5lrK5fLVr3FN9C1UdH5qP7h0Mrt/vdz9NwVifWM\r\nOSntl2aunHSA5uKxy6LrpqDlKcSNfyRbGrGieF9EM7J5JGq7e4UI6ZXbrA5f\r\nUlObr++MM2No3TXCDyn9X559qlHK93wZJchDytvNlKJNXkxv7VLk5iQMOC3X\r\n5XdYjFga6464wUXBl7xRZ3D3SbVs4n/UN5YzMqKzhAWurpI2wxRRs+ZL9r5t\r\nDST/qbJDMrMMsVAlCB8FxfZX+clmnFJrtr/+MN9G3+sXEyr013foTkR5Thms\r\n96wiCDcxk+G8wufTr69F0JWfiGB37TCmV6SmD+MGvjiCJfVNzEvrSHq/vldH\r\neZ0Z6QmESCOBMuZnpTyqJrjbGS4eFds9I2Uyh6cgJFuEnbwlzCkXxkG9LyJl\r\nmxuHyZJwyg52oFW7BdHebrRrVZz+xYCzNupiXC06tFZuOj6lWxc8fsuZvh7j\r\nvn0RkakExKuqJ+RkxnA/z2IEHCqbJd+dYV0=\r\n=+bGb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.1-beta-1677717762000_1677717951046_0.4441538290699356"},"_hasShrinkwrap":false},"1.31.1-beta-1677726071000":{"name":"playwright","version":"1.31.1-beta-1677726071000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.1-beta-1677726071000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b9f4f2cdd33d61065d393f62680e32b521fb5367","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.1-beta-1677726071000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-SeOnRG67qrnUFY4i/Pizd86dXHTHivUw+MQlygrsQDqlBnWAH1H3iJAWozkoBR0aSu2wDZYqYEkFoEUbrzIOGQ==","shasum":"5b95cbd327bf759dc924d86cce53a6410e76c974","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.1-beta-1677726071000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKgKKaHPo+YUBICDbWlYxg6HSJNdrAj1R8WQiRYsmw+AIhAK2maa/z4tBVwTcgPXCH5wlgYJGoNb+/rr94pLpsmgCb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkABLbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIOA/+M+AivHySA457m33rxMwLszIRnvP3AJj8rouVEFCRvWvJ8OX4\r\nCOKcgndQJtG47Kg/y9itv4BOY9/GFad/xthCEpV8nVF3mAO20qSgK9UagIe7\r\nhaDty/utukPoaO0AuVlu8hgDGjJKVsRZrAHrs8Ow1HvNggVWbFRenxWaBbXv\r\ne396eWmYFhf1rWBzRiz6mhZYz86yRsWf+sz0C+Vbtm8AqgwJcRIB5QmgBXyo\r\nQk/itMsfhsHq7bEOHHSxU8fKfblB7/TajD7jP2htOIQX9rCqQiVQZKVW05+X\r\nluw22N9+CwS/AAtqbTvCclQmtt65VJa1IusIf2wCfDzYLj1W8rQNOnQP1y6p\r\naTSk/kkLs9TkU6HGaJ8goj7kBnbbIeDxYyGQiXJAPagRbi6WQJEz+pp/HoD/\r\ntfXA3sFmaoGyKhUPl87GJ+TbbIgdtpllfL1/lokutt87rg8oxnqLjS5hWsir\r\npFLSEYCXJL9/IK3qmsBRRv7iW6RVrAdJ78iEcszWHw5Buc9HZ5UtKLU6fqdg\r\nSfn7oP+2939evLoaHV5KAhnXkWgoW4npzkS1vZgBiUXCPIfSwjEtHkQ9Mb/Y\r\nFTrN+zoscW1l20nPL7/VfAiJJzdgn6zTc2LSybsKiuy7QQ4l8kMRJd4I7Z/W\r\n17jo5VHtpOJUeSvDbsbPfcAas2C0JOiqxN4=\r\n=OH9F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.1-beta-1677726071000_1677726427573_0.1486640327767148"},"_hasShrinkwrap":false},"1.31.2-beta-1677779003000":{"name":"playwright","version":"1.31.2-beta-1677779003000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.2-beta-1677779003000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6155a501902450e7da412d03ba4bc199bc4104ad","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.2-beta-1677779003000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-lyO/BCIwQwGyLsTNC3FRYDdE9RdAbi97aiDllcGjDflFDLfjTvcuHCExRSCeTTAXN6RsU4i9DMfPZfg4n7+dtA==","shasum":"da2fcf7662676be8b7b22d29436d9e11597d08a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.2-beta-1677779003000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmWf+pJQXaERK5KrvbISK/YjK7Dwcnxa7fXj9uxhSZ5wIgKLoQ8/IHpkA4BZwrOw0GSZkDqzEW29q5TVp42Pc0uHQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAOOUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp03Q//TdZ9U5y+bGsBJlUn//b86g/1DOoElbJOwgOLMjAzbmZAc7nJ\r\n9N9aqf2H1B+jsRPvIuvzNmJYVK0+WR0IQUchNxZvwYTrWOsbfDeqKRl+85V9\r\nNflRLAlaE5OkYrPetUTnbE4hrCvWuaZnluv9mZtrqvqHIQAfyOTTWPtmkPiF\r\nQYOFprhd8d4vlz+w0z0y593pkCEEVhT+b2FjPSCOK789h4bJoO9fPOb1p+wQ\r\n5VhvL5ROhVDJabfZYnhOjkHTSqbyZ7AGKzxSvDTsgrMacRk+3zG/tSWz08Dp\r\nFs4gy4sko3Ko0/1H9dW0DozqEURIbfCtLHzDTTy6Ggssc8IRz9AYlNs9LrAG\r\nVCQawW1WvftgA+7eGqGhrxzb0NbnjjrcjOMWpczeyC5FQY3iqNYWFCK47Qes\r\ntqQRa/Vl4SKEk3USRr6JWo7BVzXjx55zbU3fkXH4LDsc/krRgC4r0++GBmx5\r\nTl+gxoMdeU41luHaWZTRaFpadNz7TkwDpL+Xi4KupAaCXCttE2a8DsRAptgo\r\nBQA6kXcb1DiaHy37DRIwcJvvUhMAzclpez/QcFwfqZv/g/9aAVI+FAz2f30T\r\nbVGwQGnbsQF0ZJLfhTWvKj2lwU1ooNMADXZ+rBcOW4mf1y+rH3Xmo9JSthhb\r\nv4trjr/naSHz6I/87T/BvzQwUvaXrfMaXjI=\r\n=3JKk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.2-beta-1677779003000_1677779860697_0.263516440993508"},"_hasShrinkwrap":false},"1.31.2":{"name":"playwright","version":"1.31.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.2"},"types":"./index.d.ts","gitHead":"6155a501902450e7da412d03ba4bc199bc4104ad","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.2","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jpC47n2PKQNtzB7clmBuWh6ftBRS/Bt5EGLigJ9k2QAKcNeYXZkEaDH5gmvb6+AbcE0DO6GnXdbl9ogG6Eh+og==","shasum":"4252280586c596746122cd1fdf9f8ff6a63fa852","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.2.tgz","fileCount":9,"unpackedSize":24201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDS7K5ZrSJGUfz0f43W7uuZUKVdkAiwKJtrbHL7DnvXlgIgT9u2YT4JQrrLGT2DnNg6DCzsYKcZBfAUXhbI0UJ7F4Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAQD/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3kQ/7B5kpbIhfc7X8MWbvF+GBUUXs2V7IWUzyw67voxceYHlf6dOB\r\nmi2geTcGlz2T4/zlYbYmhOE0cN/9Dxs+du2krczP35vsphJ61oEoAsmSRebn\r\nvL2CIRJDcFvjKoQX85/zwGLbS7OrPLGsMqdM7WHP7vsHFwOz8f9i0OrtMvBV\r\n5J9YIgJY/OWAPbyv5bQeKpHtzhdclahii3ZlMk3o0sFTdmoTQNAh8Qw2zlEt\r\noGgHypLgvwaXaGOFTzyABx9i6csk2vHmYplrzWCkECUgBmvMDEiywIx8Ivya\r\n/Pu3PW+M5LV1AUNVOPI8QE+Q4XDsbwbMYYPP1+Rsn4ZV+yRw1pWyq/klnBtC\r\nRresNPj4EJnRj8mqSd5lyG39kll8lwXlYyxBRyRktZv1fWKiOKUw3N50Lnpw\r\naF/c0tXBKXE65YCgwl6dVZOd4823SJzx62QmIqAGZKXSDxIF82iLWIw+prPF\r\n3ezqIB2ujEqDLYp164+JJ+pfXv7UC8+iIVEJM6BpPqBhZcJ/nEIOc1+CvjDd\r\nIvZ3DyHvPeQnewTW0dpY2BI3T97XopMU/GPWY5iknWrKi1cEuDNxsvMT8R86\r\ncAey/IVaQinc32WaLoHaSO8o54aARBKDOlTvcudfYM2AkZoZ+MbgylXxbNDj\r\nvjHuIuJJjemuzQWLCNupmH5xRp2/3soSKGA=\r\n=tCAt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.2_1677787391335_0.24616512470293328"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-3-2023":{"name":"playwright","version":"1.32.0-alpha-mar-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-3-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.50-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.50<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6769a311ed05f079375e3b5d28e01d6c7bbf7efd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-3-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Id2eK56fCIaHWQpNNZTeFkoBkU9sx3jp0xGRPhaY+o3K93HyQE+f7n7/iPCXmw2OQ5Y3y0I8tSgB5LFPE02JVA==","shasum":"e9a9e9248f40eca09ca5fb98eade55ecf50ed373","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-3-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSpJYHDbHPZDIvTqVMZFNMapzfC1n+6c00Yc8ol5ajwwIhALorp5j+3TAOOEK+jgKAC0lkzmORM94GMaYIeGgQmhlv"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAVcrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrsNhAAkwWn2bZ1/XEjvrqnRrMjYtzTRXHSkrq0x0J6j3CzW7nVl0uq\r\nIJTzxZyPXd6d6sToG1dqQ6otMXRyCT/lVvVPn/72gLWSoNSnywdm1/A3+AlC\r\nGEMI42MYM0ZAiXDPEIQCyT+lB9OeNvD5NRvLqt4bR7uPAXW/8IG+Wdo4W91K\r\nisFgqrRSHrLDOdykWZxoc8rHVj/xOrXHh7R4xjCEoFrtxAKAzgNcxm60w8Jn\r\n8zsknMAOy+PNB7svSgE5LMdRk+yx7AYqSP8e/ljI8DKQzKHlbQX9w6Y59XyH\r\n9NFbMU/BxcqAe3ZPx7FBoS80pnoQb4QSFOZ1tsHvCtRrQGil96WTWvrk8T8p\r\nxIu8QZX5Xg8Wz8Sit9sU5odArsihDaAcMrrvjYHudyPPgKN8zpPAZjQV1g7F\r\nAKGJjTzJCz5/T3Xd5m5HPt0JOaOgWDg34BNBpjbj8vK7L7W8RhBAfgMiNgsL\r\nxvVongXypfWT+Ow5kMzwbuiFHgHDH9r3S/a/+6Gj7X1PgoPvrnZOUe3c7cQY\r\nAhzYzd+6QS+csJYJxevZcT3l6cycXVUA/1WqCc4wG6bNBlFEgtwJn7VfYd7a\r\ntmlHl4SW5S7kI2fL/WXx4DXLu4NPQesugWp+JTIcb/tPljJwjUAaaSY4e1xU\r\namU9rRXsNPgOSWVbmozp903DksGD40qAIDA=\r\n=Ol2f\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-3-2023_1677809450984_0.9758919021846486"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-4-2023":{"name":"playwright","version":"1.32.0-alpha-mar-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-4-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.50-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.50<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0c5d46bb94b6ab122ba1f8354f5bb9492eb3de0b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-4-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-GMhY8fMnw/cIPd0S5b5blLijUMmZirLo3BeuFC5l9JvsB0e9m1GhgXK/zh8NLxbUE1q7W+jLGDQ66eP0hzToPA==","shasum":"1f04be5878599a4e37cc67fe1973fdb89eb4f349","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-4-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVM79ogNjyvAYf1hyQUxNhbLarFTws7C7mAf6dQW+2AAiEAz/ykENZQc8QfhWc+jxCozHiuQ3AjDT8azohaU76Ix5w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkApCkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqpcQ//WwcY4PnHKCBBNssAF56eIgFd09tY/yU97AWANU53KeVuvI3k\r\n0fyivEac2jOFdaTld50Un+SDslMuTJDsq7hbfOio2dEP6L6L/RlqhLc6Wo+A\r\npsUDEMtktrKDBBg+uNOjSt0Rj2y5CylDyRJPA1gsdMa5B5XoW/22Ve3KxsAS\r\ngJCY+DdCKEo19VXmLvtv8VWj8JEfPlFTi9Ecq+0V6aGGlmkArTmQ/oVdocO3\r\nTdzs/GBnjVRXdBxxzQYMuPlCQpAiZmJk1GNDxZB1Z4K62RnvKtzSEvJbwWXJ\r\ni6CzO27AroInXAPaYlPFNU3eWgA5xER61uslPRTT3irfhmQRUf6W/HYrXxKV\r\nkDAIniLzLVFusXo/IVXSswiQWK7dHVR+TD3s0MFRTG1iLrp0AHKjJK7roZ8+\r\nmZvsHbKTIrs9dLr++BE0aNKxZXzbrqFOmE6ci4/73AuuAg1cIcvQkb0i05G0\r\nx4d8f7xbqJl4ECjJQehldJ2cL/p5EuJ1SrqInVTcxPz53ltnlQ4vMdsjlkUy\r\nZZwRrXY+nSI5tG9Jd7zijoDRsPshYKSyFqs3nlrPHsAx86WfW2GAZc4a8lPv\r\n6j0ejcx1yXbXxQiPOB9/0Vh+kUXjxBj7tQOLwH6GMaBDyeh/70qV20E1okmP\r\n4VirMSS4i34BB+RFL7TinFDR19k+i294Ji0=\r\n=YzHY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-4-2023_1677889700480_0.45432156603843765"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-5-2023":{"name":"playwright","version":"1.32.0-alpha-mar-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-5-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.50-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.50<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ec056a6312c9ac1043d093a6447113f27db255da","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-5-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-N/Q5Y7pcfNkWJhAyB3hL1iB0Gius0REGVwv3Tj9dURP1FMssZ7w3A3jNl8B+CMwwy/iZ0+qLOurD0lBkCBoVwQ==","shasum":"6198d6f509bf0ad87883845cc86a51b8f05d1fbf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-5-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICuq8IfYZ1uF/PKxU/hgzfs2Ry+e1U53tppvhqZP2V/7AiEAkzsZy89a+Iqgu36NOByDwcPSK/4S8RlBoqECRxD4NoM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkA+MHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquiA/5AS5+x0vVrH2SLEl0cZXofZUwaabaNy4UptRbMy+ss9OnsmZB\r\npAxG8X+q4P5sPsIzsjgD6huisJIr53LvMb5QKgm8XZp3Bhn3XQv4iwL4Lmp1\r\nIbB15dcIpG6iWZLhdzUEDOQfanzQKAR6NmkbTSpMR3Gop2Vx70rABFmelL2M\r\n54Vp7x6c3+QDvUWsoXfbgYVxjfa9eDUdQV3PwxaqHa5IM4T6AmWAumJR4gQ7\r\nMsYhsgRUoZGsFzgzHRZZ9qX55qdaZf3MCGM5njfqyF8qUvbNE33YTM3xoGxb\r\nHOP0tjYZzGLgUGQyklg9BwIeBoB2GuBIjDBbLVewX9ETFIFlDrWJwW69BZp5\r\nc+JrS4GNP4atje4U8fhl5gJ4xwukBYF0e5J+wFYc5ZrE9qu80ujPTOxRBS+O\r\nd7XZXpZUnh79CbrNdw26eBiRVMFoKmKsSaMgy8yruj6khiBKtCpJUipKpF6n\r\nC2sCh1HrrAWYNSUKhItc/uu+DOvjMW4k7cFFqoR2OZWOAoYqvCD+e8cNf/rx\r\nCpDd8hBsnFrrEUbSpspJ02l9WrdIubfXARkr/OhtOgwfZJMRtp6FaSwGSD/c\r\nFckPdLyy/3RGGfbJ7LBfOHSWJXxL8B/rjQC7Axt4ZCDMGcCuURCljT513+Hl\r\n8fe7IIuWYfrhvTR7ZN9fjjyinYJp9YYGlZE=\r\n=uFNA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-5-2023_1677976327091_0.9668107098178647"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-6-2023":{"name":"playwright","version":"1.32.0-alpha-mar-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-6-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.50-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.50<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5735752c65cd330cf5143cec730652f3a1733414","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-6-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-yZ7G92phSCb6k4sgJSLHB84p2eYsx5Upj82K+Gzt/vyFX7jDA96UOaZ44IIORaCDtB864VU+AsJvTsu/WYoCGg==","shasum":"1aeb6f3e92e39a1730430f6f5169be1d04500ea3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-6-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDk8p+qCazdCNTdslSoNSQCaY+k3aopGczqybkHFrn+RwIgORItP1dTCkEDF0xsWNS1gt4jp03xnrp4awvG6dc1r/A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBTPjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokzBAAkOgfEENsFWeH0S8J2WX9zo+lKko9TbGIUavjP47wPFzbcMOX\r\nIvGrPk9L11HjHB4Je3yRbK253y7N1YnX1mQM1RXMUHi3P3dcdMhKz7X6Iv5M\r\nrU18QL9mX6A4rcTYRA6OP3fc5tNd06TzZWAHMTmMQ1iynaMLPqUVrBuXyrH1\r\nTJ8x3wdsVgr79UwiZOV8Mmfw7ofsf+0bAfS/JnXSn6pMXkuIqVIToVcMEt4E\r\nuk3IcXK0MrhxjJhPQmhAvUVA3LJNrrJr0C2TncVokw6dCduZv1BK5rlPBkt9\r\nXCdEddcv2G/3T7VSvBDt/wX6ZMSOOqhIJPuJfEXmbiEPS9udmPGm0paBLEb1\r\nckrOieI5ie0jvqNjJNlYKeNyISvVSCvfNbyWTfhkexVnEeqHKe2dnaArUZQd\r\nItmqTbgynJlIv1v75GSokBSmKuFJEU1xZ4F1JCKGALGhwqcRMAWDbnVcGiy1\r\nWDaGK04qlSahF8HyNK9RcMH286UMqzlYNS3ki8kHrXRaGFwX8fsymCJCjvP/\r\nzmRI1TRZHYtWIUq56JH/cx/hG53tHM2oHgVuB3MT1516f6Bcg+7xMZIKV+6A\r\nDMghf1Nzhm6jMxvHVyPmH0PX93FcvAVkfRuaq6Aw1KfjqUZtp/wKeHaKAMy6\r\nyWfJwIV+GC2PrDVgHwTx3U8d3P8L2ouQloQ=\r\n=lqfJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-6-2023_1678062562872_0.9648952880208563"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-7-2023":{"name":"playwright","version":"1.32.0-alpha-mar-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-7-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.50-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.50<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bdefaa9f9e7c43700c4b8e725a5146b83e89850f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-7-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-JVTt0xIJScsdig5FX2QfFtoKMAv9URN3bqHD/mrgqz7OSFjiI2aYfZ+XRhEDxfQKQp3WXrqSrd0jTIQjyJ9COA==","shasum":"bc33e9488f7bb413861cd9eb47cb570e15018943","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-7-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzQJkNJPEJuoYXabGp2Bezrl+hQ+NVZPHvCQeM56C0tQIhAO0Rfn5KAZZaBQ3q3+ej2N+eHE8lHfslWbBCyEEHxM5L"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBoWrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpw7w//Re/2o4Ch7WiJCNBLq1zN7vBDcJXggck1Kg/bHho/c3UMwyPi\r\nQxbHfySyBPDtN2qy+yhXCkwuiNEOOB/EYaoS59bxTNNB6uHblOgqrxgHXPd7\r\n8rVz2j2VR00UF4Yc1lIBND6YXmgXtgyLXm0NYjuNXeFo8h5W8uODMH8JP5d5\r\n4HQZNB9hOFMp6UfnkCMN+YG6QyBMHAwijqWwPh2s4woAVfmaFhEzqs0qz2Yj\r\nmBwwNGVl7OgGt6xEjDqiiLq/LxBkrXqJi1+aMP+uUwVm4JudHuQYSpQRa5aM\r\nzlabd1WyjiRIQzGnOrSpiq3MNNkJZmMNIPYRBivJw4bY43UUQxSpaGXVYRKs\r\nDRpLPOW8R1Hur5dTtZX1ZyYJFpDJOC2eqyfaA0lcy4zlq9aUHw0KzIv3UHtf\r\nQgJ5aalwE5h6O2X3CC71jsGmxlWQiP93SS2ccvZ1fia+pnL8AZD9YyQtyGtF\r\nY3aDP8gL8zt358Y7lyj/G4aP4ByaJIAj8uLK5wR2ba6YdpZJrBqKXouZWG4U\r\nfQI7NHtnT2oqSTXpv9wHvov/5OSR3oZn5rR99gjiF64fGQGLLfns+fN9ct2q\r\nFE0nR0mJh5Q4c1rRdozMBbZbodTv7EEHhodEZxvPR1UeICv8BdIxOtA+iGvJ\r\nE5Upi2XiO3FtEkqj1B7vlrXKJMzNiVnM5YU=\r\n=zmW0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-7-2023_1678149034895_0.951648835283829"},"_hasShrinkwrap":false},"1.31.2-beta-1678209524000":{"name":"playwright","version":"1.31.2-beta-1678209524000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.31.2-beta-1678209524000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.19-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.19<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"20427b9b92f158dc89c2476b8fbb94a23d2dd848","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.31.2-beta-1678209524000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-DWjgN1QISsYeHr2YYBCrYsZWb17h0TrcEpqRGJw+E0lJycmjFXV6rsrJeC7P6YCZkBvVArpZ2d0fneAExj4otw==","shasum":"c8e3bdd4750b8e11b1c6c8c726fb81046a16656f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.31.2-beta-1678209524000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHn5zi8LB0b2ryHvX87/kJ9oJaMbKn0W2d5Y3KB54hOcAiEA5utqMKbb7rJqlTpnWookojOv9KF2cPGN/PAgqeflgd4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB3PpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr46g/9Eh6O1YTnkpD4yfiiS92xol7uxLcx9Uy1oDWEGKAyER00JMkj\r\nZdS7Bngdixx0yieKD1zAjMP2esUnb7PKeBeU7oJ+7VO0yuEeecfiByDjbg5r\r\ndcGoq+QfOosWL/gIRCJp/vCbLD51joLOlu244qBnVHrpGJe5fzPrIb6GlbjV\r\niIN+m7j2qgYi/5LKUsN9Zztg4SzEGW6y54IT8mPaX8bTZpL29gXr56Uvd8MG\r\n+zV4LWBSO7le7s450FUzfhogg2HU5JyKVYmRNNPKI7RPrHv2xQJBE6h/BtpJ\r\np6plWtujLJ6LMjiXNztAjw1iVfJ1JMgk0BN4PNigZQaM5K6PJBi02SrjfGjS\r\n4u53xlAvxpEqB0bX86k6tlTMzhgBbqBsGzRMel/JLGM05SMNopBAaxuQURS2\r\n/7MRxOPRVQF0pdocEXf6nmssy9IySNzlvdDvCvQN6EmSTR6hHz0zNdD4AMMY\r\nWpTveNY7amIcORbrBfI1z2obEcoju4V2HBOzIC3w+lSGjO83HW8WNVYFPYpV\r\nozMEIJq4h8n9HDY33aOnN1taisMayVwRFEp2tZRz/rO2rDmde6cZ6vAxmZY1\r\ndp/hI27v88q3DTLwFeqvKy+XBfah/cxLx9/ljB/JlnIIv3XY32mjDA9yjZ4b\r\n8Lzz9WTkOzWHbTY8gzLaDDzcmdh/xJKgTwQ=\r\n=/olr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.31.2-beta-1678209524000_1678210025332_0.5012014801801998"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-8-2023":{"name":"playwright","version":"1.32.0-alpha-mar-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-8-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.64-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.64<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"de0b66c888cf1624c8135d36fe3da490fab37530","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-8-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-m5+s09Q+KJJvsx2PGWLfcvvi8hMv1YQpbmiLutX3CD/GFNuuNaHhDPG4FjFBpvFidY6UTsNCcAFV+/H7JOhKlw==","shasum":"fc788db635edf27b9755916c95bf18d67f47ef7a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-8-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCB/ll4R34EqB06sosTmmv6jId7bvHPjGel5QpmWEkyywIhAIZdQ9PE6UAXdkkN6UbzQ65LHozPy8OuqhgaEDievO7Y"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB9cSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmotCg//XljzY5KMhLZYCxVaWl8Ujxco9B9ehUXN5j/OZQiDB/g6NAJ1\r\n0gqpZtOgChqhR+KtUN1XoyogpjQYBR7g67phv5wS5OTIlrFCF3T3MGAqU8SZ\r\nM7c1KDru976A71bDmYAgb4Rkr/CC97wAo5AItqoFW8Q6CJTURx3auedwt8tJ\r\nTsJo3v206EDRAbHTkKq3mHUfZ1AkB7Eu/VgSfwo3Es4SeksFQY97uLYZbr0C\r\nOURiB//5WsJsoIs3wB4XQKBRdK1vdMdMlxzX1U6GLrr2ujvIlnM37BPlz+gr\r\nV78W+NCBe367oukH9vaA4safJMgy/YIuOJG6xIdDmJL9HIdTE86EI5/AI3YN\r\nSwpzur78UtWFVww84idPp0Jhj8XFf3OANUUc8Zj8MPMRnH0mtS4v2UZaixLm\r\ndV2ShxnPIsUtn9aq7iMX3elEB/wzMse13ZVGqTWJpq4fSF+8AYT8s1YDBH5h\r\nZICWIeogCRoRS66inIG/EbwulsDlrMniJbpLmVIuxanLmbLV9wYIXAfc4xNS\r\nPRH+aQxY11T7ZK9VlIvP6sOdT4FxM8FFUth58m7lId6E+sQnK7RldM8VQ9XU\r\nRr2MgAlgtM8INSpSurV1Zh+JoT51FNiJ9la5sdzHq5sjeRwaA0oYu3fHkhlX\r\nLGEGrXs0K2po93tPNlBQcjeNeF7HagOXQ0g=\r\n=N4RA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-8-2023_1678235410383_0.18946804498962844"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-9-2023":{"name":"playwright","version":"1.32.0-alpha-mar-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-9-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.64-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.64<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a2490a8fc8413db5a86fe38dff2a05d5cb5f2b16","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-9-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-y3zRuKW6l4Pdtqg7W1M6JipwYKUousTRKSkb89jz/uu6dk9EhEwISJfgrBwmzlLI0b8/74qYLhGYNfX8WpJaxg==","shasum":"799d3670172062f4598f2e8c183354c307e854f6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-9-2023.tgz","fileCount":9,"unpackedSize":24235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICoX4bSYkRBkWes/C7x/IpwQFaFhLIolv71NtOA0x6UKAiEAo1++GiohbHke15iQBHDi1FtvefEAUUsnOhuScrCjfQo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCShjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBpg//d3yuvolGJGoJYdHVHH2LdOKh5a+CvM7tkklloBJ6X+9wWfqq\r\nAW4Tu6KV++qN0J/gbIpauPKXo6hp5ktN92s/CjwbAT0ahv8rGl4wQwGc35IJ\r\nQgxk41NXd9GxzFN/n8MIrGJo2wST4T49CdNWY05oc6KRbyONBGqfSi1HBOFC\r\nr8hslBbsq5JRq8AUH22eY6nBqysYohXNmQT6qzQaUV5LfKKUes4iOCHbcAI4\r\nKB5ycA+FRJcnZDG2nVcm6ZM4ywKpgqc4d2wwRIXM1s2SEAXdTUuxAhyryH6c\r\n9G6tZO6L9xMH84YdKPsVzBTBqke8OrEXcstKC4GZE1cfkautHKGh6bAPwtD5\r\n9BZCFNv/8wNsL2933k6oqW8co0m1T9tqH+fbZYuVRyiwAllc0hBMdsJ2xEtP\r\no+Rbke8Dlt8HBqR5HAI0//skvgctCcFOIySlGWDz8vRQULedGaiiIfn7F00O\r\nB0eXbRo50ZPirpqiiOVT2qRt4bJAJYYT0Awlc5wlmlSwapLWBBz3Az8nSzV5\r\nZfZ0SG2nu8GT37GAa1xJK3RXkC5bsoCt0fh3viWiczWa8yU/JIuSlxnCeZhK\r\nBGCc/52AXDa65Xk0YihCt1KjBhGEEH/ul+JoB4bn1mnOP0RgdM0VpbbefmBC\r\nJ5nMg1mYGyKPto8T0lKVbEStnmbttwxeVIc=\r\n=zNr0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-9-2023_1678321763594_0.20679410760046824"},"_hasShrinkwrap":false},"1.32.0-alpha-1678387519000":{"name":"playwright","version":"1.32.0-alpha-1678387519000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-1678387519000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.64-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.64<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c30d88a63a25acf75bff5b0d87fc7b45cc698169","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-1678387519000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-F2LELwESlbxZUw+XxK7k+YQS5fd2586QFu/sslSxRf6EMUGxQyk9Wuv9h4Wm20fk99pyew9R/S6xD2IO9jpnkA==","shasum":"64265d00bfb80039cb1bcb2e1da1dc31dcb6a050","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-1678387519000.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFaBksLkqa2ubxtWYwAZNSxE7BfiAGQS8lWzlf2g1ASkAiEAuWRe5YK+QLzdMXgYfkdexbHbw3DiT0H5xsENpj3WcBo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCi4UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo26xAAiLsmu/bAIqTIo/fUgRXq47yf/R8ZO5NnD0tmjSaCWhk/7JTv\r\nd1TCyhUv/lWuVH9sJDo7W9JXHzrT6Oe/GaMfYj2nyXhV0Txr1x/fZhwwUHsg\r\nL80fS5pYny7Y+0XCBsVWZVPOTWkpZ7BOUP/DmdVWeG1+wFJjmEdsawprF1ZD\r\nJfSd+J55kEk6qYI3DUS2jukpV8HBb/3IvSDJFhbHwjPUcSLo+C22ZlN+3EjN\r\nsAWJstsPHuKBWUXVxpOStoLBL6lnrL7+s/iqyhUNwiyr6rvC4WocS2QvQFtC\r\nUHuiVLOZKZUONPE1qv9yoHMfuJoAwvHJwULPFgr/fO9vlZenYqhl26TlZpyC\r\nOi9uFeEAstgnh0Rp+y/QiEM/BntZF3kQIrQPYgntlTSPXN/s4Jer/XxmgdjO\r\ntgNcNauMmIRXqTjNSU8N4G5CbO/K4k7sfm81P/Az04dcdWWPET1FaLWLFsLc\r\nqv9RrPzIsGwiC4l0EvcbGGFsJEyBV7ZKCx6CFwzdK8fwIsESN8MJQNcX2YSc\r\nYlY6qy0aGFsjPY6LBXkZdzhge2GdShCGYSr+jgBpehNDj6PC6zMOXOzLHIM4\r\njHu6MKR0ocSxSmVeQH3KimQf5kNbECognfgf74WpbW5P4XfQvt42AvwQU7Mq\r\nHdgo+sVAAfkW6/pXy3NEcd9+Do/ZTGDKyj0=\r\n=SsTI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-1678387519000_1678388756630_0.7059628304058161"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-10-2023":{"name":"playwright","version":"1.32.0-alpha-mar-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-10-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-111.0.5563.64-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->111.0.5563.64<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"908c0462d56586c28faccbce076899b652986be6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-10-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-5+fimY8ZI/lyAPRzNslW9eWy2o6j4929MxMolIfr2hIIg5D6UwdzOxmtEm/wDqewtFFz3GXrWfOBAeygJfDo7w==","shasum":"0b1a47dc6b4402c704cafaea0fa43ea3d692746a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-10-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+FmBI5YRhmbcG7OQaNaFpGhI2R21Gu20JwVkwYdG1gAiEArFKMBWyC9cgU7VAbvdqRw/9UbL9DZFf+nLy1DpkFXZ8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCnnaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmro1Q//YpApKZ6/v04gjfZQfUE5+JWt+zECn+P5e4wWkrXkQdszIAdW\r\nR3wBTtRI/Ttj2pMqKqOvudrp68WC2R0e67iEy1WzTg4m+INHiEyWQxK91EKl\r\nOFtJUD1aWEtfrQRyn9JSGDqXlnyt+C5va8YUXSPeROap/eKTysQi3E+a9OP/\r\ndcwXVs2iIp5sdI9Kq2R+y5pvBhvoDqD2zWu9KqDAKXjIogK8d/KTRrzEJQZn\r\ndMt4mZcbThggXZ09qsj2KyYapvAIpSzSPfS52Vo1BTmnL63KW9ZKlXWNcDRA\r\neu+Gx/8ZhKYNvv1nLuswVvLXBH05Kln75oaM9SWlxGqmAXVpLbyy1SQuh/3v\r\nmSPxQlPpnTjbpy3y0aspalLTzoMZD2SNa9oQneH4S3KHyFupsnMJr9sr+3wP\r\n3PDD8YVrbDFv9K5Hz+3+NL/wbsiXxm9da2tHpTMPk29oIMBjGR7z9xEcBNpt\r\nbM4iRLrWKxF+YdgFmT/4JKERnb6MtuFYvLS+Tu86yiUChMuDD9iHYteT85ts\r\ny2tIAQ/JzbvI5WADymTRlJKeAaojMKeSHZMLGzTgOyi5s0JpwyPcHxqCuPUZ\r\nkA5WIjk9ATPKRblHdDlmT+EeB+nzHqYunVulwQyohaFppZEXixMl+EcG+g7T\r\nYM0AQOcXh5RnraJyJ/aIwtRqusnDMLmzhN8=\r\n=aKOS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-10-2023_1678408153873_0.10922124023661639"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-11-2023":{"name":"playwright","version":"1.32.0-alpha-mar-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-11-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e45a4968506de882d78be65f2fb2cf9a09e47a7a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-11-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-JlHzK5lZyujOsgvOOs3IK1H++Rut9TkkCcjClFtgEyMIo+K7TtS0y1LPfT9sAryFCIaMlUSAv7WgMJdhxZczLw==","shasum":"708327ac8869f23072d603bfcc8bb46b320bfc1e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-11-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkY7bzUVuqkHx5npyJnIN7VvATS4xFntOfR9qVeAFtEgIgd52V9GKAnWAH+TTJ2kCmwGYoO0wSZ+cwbP3/873Ocp8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC8pfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqoOw//bYA1acyP3t/+IP6iLegx0dkZTK1kAcGrRCv+MvKOMJJe6C8H\r\nzHHqkgXQxydkS5G9bzrVydMC4NOgPdbRS3MSE4oxlx14edF2EClTIkp7rju6\r\nAOaMLrgyAIr4PT+ZXFlQ2RcQO9yY6XmlZBA1/DTy04cZw4ntiJUtCUfpDjAD\r\nTHHyeU2A0mOZrRI19uQ0GTknnhDZg5Pu3eAGyMp8WFU0e7ePr+YlPO0H2LnE\r\nFkJfAWyOrrewyaLOufPmTiunozMeOyWziKK0+3E9/4NGc7qM4ZHkIjnw6Qsq\r\n3zj/pLP0Ni1ggIkpmeoPp4uO9r+E0mQ7mIOguYbzCqBZxxZYZLb4DYfRv8Fo\r\nzA7VpU3MynQlClY4DItcrR7Z/w/hEdXnu2B99iNMVfcswdyCMUpLzAo9G5qj\r\nqkyWJ4BS7sp3rUzXFdt8OPBuGW68jfRTveSjrC1xtZltzTCD9zqAfazz0Jws\r\nFY7k2woWuXrmt2eacY4oWV03g++9vwzlisgB3N6RA14KN2iNSiHlxbvANhoJ\r\nCV6tFiIKTWFePfuLX2k/3QcR/tlgE2J7FvT+p6n75Dy2N53i5ESAPBZ5Jir3\r\nnKU9tllajWjURWPDOy7XP1VMAOPWt6aaMrrNHEtr7C8XyDKZ6KJ+uBqshJxY\r\nENOtKJ69fpsv5fqwICp77CpYG4IiPmy71qU=\r\n=Uo4F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-11-2023_1678494303235_0.9284909208945711"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-12-2023":{"name":"playwright","version":"1.32.0-alpha-mar-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-12-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b85d6704917e65994ffc8eacd80dedbb19cc77d3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-12-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Qz04U2QjIKsrj1AAPXKPQWVBsGT8TcrWyePXSRFWJwqWC2E0aTyJccHfKCaEpTrIz8V05HFoQrvMBS9r5AnppQ==","shasum":"2b1e5c33497c9faa456243b7559a289989f27dd8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-12-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrT1b1ZdQqDMx05ViWPVF6K7bm2/o9ejaN8ExGxNgPzAIhAIeTtkdvSoDlvIj9mrP9ao0hDDMUKM5URf0AvpDGtJtM"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDRzVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrjqw//WhzARgrYkRx2H/ewg69L1uH89O9BFeIhC5jTa4g6RJWLFkce\r\nOtTLcllt8K1A+2vd8aZnGWY8Wv/YcvJb4dpn9xleQ0BoUV9XUplnjzdjiFks\r\nbqpH3nCsF5o+8YvxCss64UWQU2sNaZEiAi569eN4NlzSa79YtONGQsu1T1wh\r\nmzXRJ0t0N6zT1CdIKUTTJgYBouSWJb6FHEniCYy9Ijw+YTvAhIl0Ln9THP0p\r\nlZXKVf4TlCiYGn5R+pMecx++RUNEotNh6aeFk581oQbmaRYQStEoCZrkfFPd\r\nhBaBKbt25uz2uO2vJdbL/8hX3U8fpk2Xxn/tA0As1aTrYArabZIOqdTIBuAV\r\nUUaJ1kJz+aKitQsRRo6+QlRCFLW9Tn3CMp8Gk6nPfMP+EiqWO08c5qPx0ZSZ\r\nAkTiGDTOQAbdYHfPmOJzMkPdu6ntJpnPEK1r+6HcHT7krTSUEnl/JV7D/Jvu\r\nHuALVGG4FDJi++VLHlSMdocC7JOgvDy2g+ywGoYlCxZVAqfIvq8CLfInz7Og\r\n+sr9ftYdXapTuJnCHcNwq5auhSNBGEDmOp0uK5E2YfSVZkFSxlfzljL6LZys\r\nJOdlaGNnddroGOMqiDabR/n9DAJ/yyJPlCBCvSC33PGREwbY8/8CBIyYWF45\r\nwG8MXxCdAj9Ow3bjfFuzh1ggXBp2JgkQ/jw=\r\n=4u7K\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-12-2023_1678580949447_0.26588642237605753"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-13-2023":{"name":"playwright","version":"1.32.0-alpha-mar-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-13-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-109.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->109.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a12e909a409cd8f99849d97d464038b804c33d14","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-13-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-n+qlWM5kuDy57Eqy6G+MH1J1iqP4OQSGKM+/AFdXD70MJDBtTBYU0868LM78atBudK/ggQRHuNkWy3ELcQny+A==","shasum":"2a5d4d77b185069c8ea584d081bda5dac19f54b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-13-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJMBQnm9H/Ptq3TCFuPYnAY2kRs7vGKmtyJ2IB4BsGcQIgPIFPnvoIXM6zHsNdgE9MLAumZx1azkVswsLrzOgzgns="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDm4vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmGg//bYh9K2JseVPFGG//nx05DNguYF9wQqEe8/f9k/cE12SvTF5X\r\nSjDD9Mx2vC5t5EwVP7xh4wtGONJAr75HqlucqgqDjyxFahu+VkIJfMcB96Zr\r\nsGEhMVzCnlkxJT+b4qU0gEwTb/yXRFqBbhnYTwZCAFyW/Y9PccD8NLB8PDCC\r\niCsBymdM/CjdEAlQOLYI5utwZG8844bjEE6qav1CS+qpVKjWI1vx1bTs3LSy\r\nXP2BC+k785Z6mbY6BYzZCSJQtzWce3dLZLbJw/Wgn4jLj9HUxTBdte7xW9JR\r\n4CKzzFG456WN66hNIvhkJpW3TJHgOP2YeSfC9ubYJut5IJtVV9QhDzNU3CVv\r\nWJQqTKEpqIWAAMLd3zHoJvrc/2aeqczs+fjWMF41GGUl7Bo4P8+r678FzcHn\r\n2w689hz0RKzIhLRAUzmK45BcBlbICjwtoKMK/vl9jKwa80t7abXXo5OiZJgh\r\ng7cluoX3+yC+oMjaJNSpcqM+33RCW/rT+KxNATx7sZzBm/nUtL3yl2BojSdD\r\nfZD2JaSTOZ/T6rNU0uYXgWDXr0HAG0uTTE23rHJI5AqPV/XyEYK88H4aHP7b\r\nneMnOyO+GMHPpcGW8OZJXUqFJOvzZyvxfU11fNYH3bJEDcI1I611jnG0aeAe\r\npLJlBnJJt980skO78D3Zt1yqz4ierv7Uv0Q=\r\n=hdRJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-13-2023_1678667310753_0.9255638701325501"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-14-2023":{"name":"playwright","version":"1.32.0-alpha-mar-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-14-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-110.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->110.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"809725e11472a9045bda1c344bbe24af76cfb399","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-14-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-PYarwU3ZuLItqKGz9mW4/dpge5LCe+t+VzYFl9O+Y8kcRCopJpTI7sQaz/+Q1EkTbXYHsaK6MQHYxgaC3IDAHw==","shasum":"f3e33f9bf154c368d18064a16d830a0bd4eba048","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-14-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnnLqXS64TbtQHRbUfQBREdXlnI6uf+brGNc0V7waMsAiAIAhpoyxfKDzfr5s8nC8OufBsu85/A7ZcexoAXD437wQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD79QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZVA//bGODQkgkkcfTWZwlQo8tJ2JQcKOOPlMrCDiMH8IZPSRIZsnK\r\nOmnvMk4bnSaxMRapwWXV00MLl9eQck7naf/EEw5qJ3FfiYU3JwKsqlHDSkWu\r\nT8//Uj7AZ9eizMO/LpxaFQXiRtjSuvXigHc1IN8u9j0CAxDYUlbWP/EwUQNo\r\nvobNjmS7tG/KMQgquOEFp1wnqkP0AzQ5rR8FscunnlALgjh/vN/y0tzzieBb\r\nsZuo6oaKISEWzbY0FqW+osacqelbZRcE/uivqPQhXMTSnzTHXkuFPvYr/LBa\r\n87lljOydpuIKPJZ2YvpMPYhUBy+fVJtXFs65gxN2S+yYgzcVyM04E/ZxGAC6\r\nNwbFFrJiq3keUpF058Y6x1Qt5M1Yfo+RMA2NJxRepZth5UAqtLcDdB2+mG0O\r\nJrZIW1L+JfLsFdswvo0E3CDew61xuCmloIlCoCkatP6akYbYJsECAVbcbCBV\r\nNicfBHXqwRLtV9QemZolzeiYjHWsLJJJ/SmEO0/z38HuhkLx0JplSlRnhbFr\r\nNPTwFnhBoN4hiMXFfz5nKiabu4HHB0WqrSXJPVUW+nhbvMgNKmccsCq+sAJK\r\n9P4EWnUZnLpN+1NQDcnLXAfxFuXBy65CHkaHlyb11CebYDRXGV1qWXgsMQIb\r\nxaJqO+nRtrrtq4YT/3ZEg5AXd9eWa5yEyDQ=\r\n=CvZZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-14-2023_1678753615905_0.0007232532829091198"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-15-2023":{"name":"playwright","version":"1.32.0-alpha-mar-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-15-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-110.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->110.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"69a94ed04403568bc6ef31549ca33be28a126e6f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-15-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Saihg8S39D0KzoJtIdX1qh8hc+kWEczuIoEarUPIHFRLc8hYWQMuhu4B/3hlC3N4pUWOTWJ9ErysrujnxAXZ4w==","shasum":"ff57e5b5ed05da9b96f06bed646fc1e91633d738","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-15-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1gRrmNIzhYuM8t254Kxqy79l/dSLT4kguZ2y96VJ8rAiEAjoeWCMQmgOFdYPBFi7mr19lVW94nGDuv3FUEo7QHBbI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkERF1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrO9g//YLsP9dy1pSdRdE1F0oBFGgJQ9PiIJQSiNp5SihmfSi/EO4f6\r\nxw93O5XrXGy8LCGBp5YA9tuv1c2L5h6LkP5RpA4QBqsuqzVrMq6OZOoGLhQA\r\nsJyhDr815OqN7moy5+5NBp0f1PwrDQMPU0XW5K4lCXW55udh38K7l1jgAlln\r\nUGCl4m167XDHGziCvkNpMviZrNbpYVxzKTvpvuXFCnULXhK1CXMGfkd/lJbr\r\nVS26eQKnHRnXA5bSX816Fd7IT2iAq8PXkGkzSQQLSBoQ9q5lkaGfzJ9xnJHB\r\n2E65Ggnp47VrKDbiG9C9tTGdpLu+8RrA81G5SdUZ0EHaF/HXrwYbSigPAUoY\r\nMyznRIAyZw8P/Frxc6cqwkJFqTtjLP5jhk5rZBNBf1QGAytElxdRVOQsdwYS\r\njFvbJN2Lgikco30delLpaa/bA3TkoOXeQzZyYAT2CJKBJVZ+02JFTxGWBR93\r\n7SdMxrkp8j5bz8YnxCl0Is4npPfnV5rH+z94oX5AnMgdQ/HeMmg61tpd6a4l\r\nGvrt3kCDB5NLIbVl+MHYT3XO2JXp3BdkrxPQc0llsU+xUrqGoEDpIT9JQ8Sf\r\nIBLlbwe5kyf3Pm1DFruhL0UEp820gL2sNINKq5FS6j05XbsGe1GJvIAVqzpB\r\nb40/ivoUUZxGLVM9YgXN32ObJkCMpMqpB98=\r\n=N/me\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-15-2023_1678840181393_0.07559711578124428"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-16-2023":{"name":"playwright","version":"1.32.0-alpha-mar-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-16-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.20-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-110.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.20<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->110.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bde2e909731f48ef9ec9a66ed2fe80b3a27edafe","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-16-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-64tQlsxwbZw2ucMc8IqI/QiDpJuIe4Dg2eAedD3xqOKX9H1Tc5fH4P7uf0XSAw5BkkaZIkOwEhRtWi20XY1QWw==","shasum":"3f354ba050951448f953313866e2f4d5c42bbe24","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-16-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBMeKOWIIuA4+G6xT7akXSwch/EzMYNOScYl/+TdSfFAiBJKAYTvlPo9tyovGzSBu1OVxAeX8SBd7d60cFDrSXzgg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEmMSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoV7Q//QhDAP0IYdTb7fm2iqkJqek2sj6a4h6zY2h1JMeHnnl2Kuxz2\r\nknesY7yngi8XdoE/Dj/LN/YcN9uqNqNNvOXfoxWTK+RS0/Rp3Rg5pNOkOJ0O\r\nrV7w8WUuLh6ymDT+c15rgOJqY0UEGwd+ooOAdHtdtXSA8+5mOi0gPo7XQ46K\r\nnfeBDmVX7xQjqcKK7cY6YbTKCZtXx9q3nhTGkjuWICPXnqVOAiPUtGfqnEvO\r\nDJclmgvlgWrUbUG7DwYNFncfCZBSA7qUEaoc3iO24jfCJMyCcMPX72qbW0Fr\r\nmRdK/tlMVCE/lw8y11hPGEfcBjeN3UC1LE5uKrDv34JjgJlKJ3SmDJMyZzBO\r\nGpOXpEnBnw8vzvheam2gHqNHI33yGyLQnbyeSQLiNHa03oedtZSM3PvssIt0\r\nUAGKEkF2q5WCJ2hqe40HArgOfXMTegtmsPymUnhEZ3otB15WQNFF/vhoQ8sb\r\nvpoVK19YbkaPPsMd0pYC3T5GKJRdW9x8dlsRhwUf43Dms+IYP4m8ws0alzOz\r\nM0BoBzx3JHoCsvZxwz0duDF39L2+rmj6UJzl8wv5B/pXxKvt5eKbe6ucH8XO\r\nZsP0SYoYrQlKq4ligYUmCELDrg2h2b+ER/ZiLUqXJO3SQiXgzgInGip7J5fS\r\nE1VKgFxdbnudnsW2EJOt8Hw2Sc5ySTMflaA=\r\n=BryA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-16-2023_1678926609960_0.4500101383267032"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-17-2023":{"name":"playwright","version":"1.32.0-alpha-mar-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-17-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-110.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->110.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f37f38e5533cf79934261a74197731c706237da5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-17-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-iW6kDE0RkI2z5TI/5g3/gHqID8Qxb09QKZA52xNzm62EgDFCnJXNS+mWEm7oR8oNBHJrPqsXv0mhcFKkfz5JDA==","shasum":"79e75801b44d67fa7fb18794a2248d765f93c3ab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-17-2023.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGgLKzA4aGyytBMgp/kXEFfoWNHXYKE+wElShK4AkU6ZAiEA4UV7zh2TeNT4MKYQhyTRT1XhGYy7fxJC7zxzTmLG/bY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkE7QaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/BhAAl1MOXNQccgTnstEOgPF+eqcQqdiLF8O9sgNfnbOvdCCiU+iF\r\nCTTY0LEqgHCbdT3JVfh4m4QwUfuSXRxoLFpWTZRyVPYeAdX988dTjoZLcvpD\r\nhLxLOfXZOlCGfYxSopnIAtRRjAL760YN455aPYaZCHB8UEPvf7MFzOzEoBdf\r\nEfx/QGFhi/HOCXxTYtKpfrvcR0zbpWFJDwAoeGgge36dt+oS4O6WcDhaZPb8\r\nldWFoSy75igGMxJyMwR1SZwYDqNeU+7bZmYa1LOu/RCZ5zopod6nWJ3js+mo\r\n3Dg7ofcHwoFeh7ZW/NC0hYbudeJY/FaA3gpJk04AjBcallZBh1P7I5IzZy6L\r\nqjG9qs24E9F7GrLm5il+ijI4poVZIKSNlUf0LH/bb/Z7suhHHxpdAN2KyhX7\r\nZBM5VO0v4Ml+liqE1AFhNSkMOFxs9v5CIztl3pZVBW0dsMxUI2ctJb/4wr0w\r\nJwQU8SuwpX1D7EPQFeg1BWzX0J+BXB5mRh1IFbyMAEdD/2THWWy439+IPNoF\r\nJtYeOzgqz0VvdBF/IpWCZxYAsKz5UtaJ92M46tw+YgnbsITRHB848SHKa/mb\r\nGjuZaU15H2g/7HqzRt3ca4nbdRtHHGbcCV6OTsMWz7Yh4pJNaQOu2ZLV+1il\r\nGHTkdACTpQbxLyGZApT3euCKmF9+j++veQo=\r\n=GkBN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-17-2023_1679012890095_0.2689224946383586"},"_hasShrinkwrap":false},"1.32.0-alpha-1679083379000":{"name":"playwright","version":"1.32.0-alpha-1679083379000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-1679083379000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a61b5449328ad23f8743b4d35c643ff8d4bdbc1c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-1679083379000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WBuVhhWvSjehB/fmMuYvoO+sYve7mXK/1Lz7a2UB4TWEK+lZ5cIoFgc3BpjbvhzA/UrPlSjRsH5m0UW0arwtcg==","shasum":"21595f703aa2982a4fb57f45ff60af611845e002","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-1679083379000.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYLs8NHDvVpXMHdu5mfyHlH/d+BxPmTlHSWT3LBnheTAIgXSO+x1ejN8XtAvmViXjWfORMYYe/vy/duVKnn44dbkg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFMgaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnAQ/6A1c+2PAxTxyu5kTCQni7uYEQIGu6zEgf9FpkKVeplgD5R6x3\r\nEDKXjPDJ5fMDaNVTX1IGvHibib/93IA6r6WREGjylxu+oZlbMbBdaT3WhzbH\r\n51qKt2VrQs/eZ6PLqG8RuDeU4dtkb70tUbXJOTZr3bVYi5amkrQOVuCNtEkc\r\njUBOCodW37WJ/bE0IglVbUu1tWQj1mN0/BcOWlZPrrRPmmgJ4Gt1rbcYbvKW\r\ngb16SNZYOgzAn+VTEtUwqN2Gx0NfpT4MQnQ8lmewG+AhNGd7veBIKYhh3xlc\r\nli826AoC88i7SUQVbS+3/2XLz8/DIswwaZvtkmgunxBNO+UQ/JtNhkrNrqph\r\nJg9Gi9Ps48/e4SQzlWIclOiAE8+DoQNb7pYqqJxlbKJA02KEKfSyS3lIvUAh\r\nfKjExARFPatN5ZaR6ECUquM7Lm0OJl1h5pnfVa5WpmKSJ6M5EfdSGlmXLogl\r\n0g6s7QjuaRmK4SK/kGox3yMLjHx425mvayQEHAzcFn5CSW1VKObeZKs7p7+w\r\nM3ohjulelOHHiVzpboRGdQOxpk+rSSyVs4B5eet0Ey+o0CAbFn/3cv2bNZ+g\r\nXUiOiXZ47JQ/8CpBIyZI7bOuL0ARB0gcSAGawK+lG6gsgLJxLgygE/sJr3h6\r\nBeZpWt0OuGHPVrhzSOXkjuAa/TlQtPMwIKo=\r\n=SB5t\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-1679083379000_1679083545829_0.4381550482059242"},"_hasShrinkwrap":false},"1.32.0-alpha-mar-18-2023":{"name":"playwright","version":"1.32.0-alpha-mar-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-alpha-mar-18-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"50dd04ae61a7b5bdaee311654c7b593a9f4e73ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-alpha-mar-18-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-pX576qiNi1osTYsG6VQFpLGGexpavfQakNpNLwQUET1Q2VHZILIpvd6ZQJstB6XbLMaXIfObgPFY4+8BcpmoOg==","shasum":"435e8301f2ce3d47e1635a7a27477624f1fc0917","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-alpha-mar-18-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnzrg3r2ula1q54IIjt6Pc5DR4w/vN4L5hi7BAVBJbWAIgWJqP0MkMWUexbNKOPtXOEE6DVcIW0SgyjnytwSjSpAg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFQVwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogbQ/+NhaIzL5HdJNx1QN0KhQZbdebVRYpqJWo2KNtmE9w56L1LwR0\r\nbuwNskEt2kkKaUcpXQN+I6522ukDCb5RU76gT//Bi5TUZDA8xIgFz/98aXZF\r\nPGVb+nG5uTe78HFz29mHTCjDFisrpLjLpJXbCqye8MaBOQ2ifiMow+191c9g\r\nm+SNuTqXJzzJ9lVn8BQSoJ5eaeqzPWGzUct3QBl02JExhvTAjsMZ9VongKwl\r\nNQV8hO8ZLu1FtYe2Vrf8WnmRbtx4B8oBRUuR6dIvVB0dAcHDiLT5iqWxRWkJ\r\n7j9XGn3e6QUSPIg7iQ6DRdTjy3rSKOiQDIgPqCo3XvL1s/enC3wbrNRG6JEF\r\nERJv5Euqg7vizRU+9LedU91/ZICNqC43vFo7W9Cq5a3HGZQJgDftQ1K4SFl6\r\nFSEuuz1gnoQD1zN+WUp4YBgMS1IT5hqpfsCr8Fwe9DVf+GOsURJ+s+64Ve8H\r\n7fc+KpE4wLYXa+1/6NB524PagStHMzGEHrh6De5SivY6t293CTxeb5LptIJT\r\nj4IDkf9DK1UrVJWrQCIvuXkRhgup8RZH+eu5s7v54BCESd69qrEZaq/nBr/g\r\nnhwWs4vhm3BWTFc7yRm9jtVw4/v8C/gXR2vt6b0Nvvi3V6DjfBS4GDaIugtx\r\nKb5MM9wgG5PvxKBUybTeP1q863qxTU2CZ4M=\r\n=Fb1u\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-alpha-mar-18-2023_1679099247848_0.4331621842085627"},"_hasShrinkwrap":false},"1.32.0-beta-1679101708000":{"name":"playwright","version":"1.32.0-beta-1679101708000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679101708000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d806c98009c473dbeaa4f6508a73ed4adf1409dc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679101708000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ZrcrlgqaITZffCSANiVPkfGhStRBLoIxroASphZP7JLnNaZsfLAgI2QQEjaJA9toWXcNR+OBbirCfFNAM0wXqQ==","shasum":"bebb24abc75ea78f7883a8024eddf1f7d934bd43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679101708000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6j+8p55eBIiNcBKj00hgQhdLDxiVhvIzsiddPF5um6gIgFJ8OBevDCRRZ5//bulJKRR11nR7SomnKopnCs2toRQg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFSSbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpN4w//akInx/oWL6TpvmFGzCT/RPTOcWxZqrbZkHfDhkWMiYAD1qrw\r\nrwxQZ4FbjXU5nkcXK8tAJJlwrevuSbyI1XkLK6HY8+p6JcFL5gw04WtUHEDJ\r\ncWp3khN10x7IjIZ2eZutzTPIa8nXrGiP5F6F5ww1b7WToXRDWEZSiHIRARCe\r\n1TfgZ+d+lZaG2WYNEmWySQAk8sEbZ02pAZAMdSyvQmSJEDnrnp/ONekXuCJb\r\np+7LfILU5I9i9DCBoAbNK2T8LIDYSJR1sMKiBOaNQFptcOP79F4Gr+SF8rVK\r\nbdIDfUNWJ9duujL8zXe6M4PY8yG8XTr4cjoSqSBeDnW84gkKSLypyAJeLpUG\r\n52PUKk6F/JgYnxIUy9BAt5Fkm5GKlpCcj3IL2Hn7C5sTM59Gwf8CdDOxjEjI\r\nKnQgSuthuC+0uaIdZO9isYlfvHydwXmVYbDJXHzIuMeS7/hzxF3SJD20zhRp\r\nnB8n77FvSJYWhwGm68Nkf6AAIArDFBq/Ac14hRN+kOY0b4IGD+XX5cviXPm8\r\nfFiE5+PWLVJGKq7XkE7RCsZVz+immFUu9YiyLLKEnDd0a5bLdIwhvsYRoLvi\r\nRNPlLNFgobG5J5Amvx/Q0kGqOBWNTnSn9/Kv61tECodDP/VPmCFWmhxnrGbO\r\nzHbhEIm7emIMxhE4NMjHu4LidW4749/y6sM=\r\n=CThU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679101708000_1679107227232_0.4694914427108696"},"_hasShrinkwrap":false},"1.32.0-beta-1679111215000":{"name":"playwright","version":"1.32.0-beta-1679111215000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679111215000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3e8b14031bb89f87f5c34d1227d63f6940998121","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679111215000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-0byTAjkhx3f8OxcpL83TaMBfIDscD2FDoJoYb956T46RiPRoSrj2xclZDGdYcGcU2WIpNDJfYzZ+Me9cbC2l/Q==","shasum":"94e3fafe001d59c5c17fa01a637cf73589a5834c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679111215000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpm4OIo84Id9/yNoDt5sHGd15eE4ix+7jIjuBCGx0ttQIhALhA2U2sttCO2uEThP+4Y9i1nk0xJ1cKfIdNsZl1iydc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFTTwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBkxAAhl7OmMrcYcbmaCKQ0rY/+0ol+oeKOrx7i27It81ROiw63jCw\r\nqYcU9w2VyWOqTDVDxKiJXK8sOZSZGvrTkUQ33m2vMYZmEy/XP2TS4MYODVhb\r\nInsg2AYhNu8fkaVp+Z4Z07975jGhwT+91KMhJOhqnAT3B9t6ad5a7h/RLNLO\r\nnY0HpiLtUEORDksTiXDQhbMnsJvIcxJRY3oSVQq3RnLgycDEOttbHUvr+IJv\r\nUm0mDDFkQPMnZ3NDXGo+CmVB11+1FpJ2/vMGc3+XitvcV1MsjcJZUpzz3qHb\r\nwZ6/wmBegzRwT7sz7tkBp8uVhOQbpur51qPnKjn053kyfujGBtapU7T1Xm1y\r\nCwwKCwPcH0ANxHx86UptK2rW9RjeYbJ31doIXmVhG81xhhIHtr6xz4k4fjLZ\r\nWOdV/a94CoIdIiii2derIl0bPYtTVaeJwObL95FINC5P/ok7T1qrQ7VECGd4\r\nkLMirpQOckZ25vbdeVlped3zBUep9Qun2SHrDLOJGsoDe5i1idDt31FB/f3u\r\nzehmKtZZXz+X9dPCDYzCATwHRoB0h8rL4To7/IZUmSykpHdn+I/Ku9wP2tb+\r\nfodWgiArqSBrDpnkL7I+jPNhH13w23f8nRymbe8XzANm0cnR5XzlaiuIu4km\r\nKzPY6kI+AmcpD/0Hj0NvMVrtq55fqBI9xDM=\r\n=gK6P\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679111215000_1679111408593_0.297080494437729"},"_hasShrinkwrap":false},"1.32.0-beta-1679114315000":{"name":"playwright","version":"1.32.0-beta-1679114315000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679114315000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"90de09668eee1d6cccc39e55d4c08921e340627e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679114315000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wnft6br+RyT9dlUMi5xJSpMxmGXIYg35111plIO6bFj+YzjH4h82+bK5RCTYBexB+zZkrksYAl4bvknDpY0RhA==","shasum":"24c3bb21da974d7181f0079d670db6603e2c9487","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679114315000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyXGo6sk+VP4ohcg4Qpncc6Cl091/FSewKhkpXpK1YNAIgQr6dk0Ov9mDOVQqAC7BgLZtZPvzZk4ZFEynxCcSvMb4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFUEWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3BA/8CRNltuAtesRfpnvWWo3L9z5O6sfA7OFGvxY64G0LxbgdRSLe\r\n8GLMs0hA51xuFd3bVyAgM1ZND0Ex2p97IpT6BGVsN1ZGxT2zEEl3ELv1ngxS\r\nP8Vdc+716cYLD8A04Ktc2gtao98a0yIRe+xASRW1yS3IBOEqAzKD/tZww0qU\r\neTTBxiP9g03YoaumndPGHvv6TaksVByyll8twhxYsGWYzOCXMKM8GDDj7+fl\r\ntHWsqIP0QlqmE8p8uCAFuRSjR9bAwG7AZEljSLkEVMMX3a+Hab8FUBNa3/KB\r\nLOMN3cvMdk8CI3lUk9V/5OdOb9G8BMUJAkiIpyKhHqXy46JoTQvFVm21CN0W\r\nIO4G14Rg68Ek62fwhdyqusjoWyQNuWbvKiP8TYpOUoiP2/q4oqBC37ZMjyQd\r\nsMjjfrYxu5CkDpmjlrL0sQWeE44ndcJX0Vw3KioNLW9S6eD2OtVZ/fLSXxta\r\nAcDegtmectkiaUEmSAMqvab3NdaJb2+L+1QDX02wq0tBqJ0ByuzWkn3wDoTF\r\nXsgIaP+xvIh7JQXhW4uAHyFZEM6Fa8hwFGv4F3ClaqJ8hlCmNVgkRx/IOjAQ\r\no/zI4UBBjthepMXv05L9M48fYvavmQG9S4Y7W8Het6Dm/glxYKQ6sxAN2dkm\r\nv7NPJSptJtD6/++qMajqawxc33nzMmlxh0s=\r\n=gRAB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679114315000_1679114518161_0.2735300520172732"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-19-2023":{"name":"playwright","version":"1.33.0-alpha-mar-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-19-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0728d0f7fb334cabfe5022f321fcc1182090f2c1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-19-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-OCMx6H0Y1L5+KWDu7oygWHqguTjBuh4YpGizc/nh0VbklJVeNCG/FjESj4/jzdC8Bpu0WLS3fMDyHgZTNjSO5Q==","shasum":"3ec9074043c0744bf91af3934a2956767da8e08d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-19-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWTwpM+1EbdmpEp378HFZ8f5CWiyGpev2J36+hLdKoOAIhAObH6COamoI7JLu2sy1gvqX8h1BFbQsFGD7mzM9beni9"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFleeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1jBAAka75n3oJf4+gY0GITMxynpSMP3eWpq+thbugdaKaQFl8F25i\r\n8+x7NGR8RqKpgb6CWMnKVF74PeNEmrko6b7epYjD29r2aDlY/e9J0oqK1LN+\r\n4OnCmiuvyhfU97YCG3DTX/pvLqZX3d15rgUd2nTj3k34jJp/YumT6UfyLA42\r\nzWRoLqrJthTFdS6PWfhVPWp9KLppNs/n9yEH9qPyyHh/if1pMXXcFMVKLCZT\r\nR4yryoLujQ64Bclfvoo1/i9R/+1xz9W9dKJkWLzy66GOmh+yy4TfiqEhIz5k\r\nk+inbREA8B6M5ufPGgAuWVVGbO2tKnVg+EZjsDWbkZrNH4wQ7lP6VSrlEMPt\r\nhl2HwBKqEImehwHp7loLfk4RCxtyYXrmvpJHjgnfB3qis3dBbHK1qSdvxR9w\r\n05Nk+ChYWxdgdg70r6WRUbdZ0WAzmDbkTKSHw4YfaXHgkCps1UpXqm3iRLxr\r\ntQkrZCP4Rbve1jMM0NkYKYJTzIhCrJMpJBdMr9oVVArjJa6OTKnN8m2khiNI\r\no9YybRy4dHRxKbatlUz8HYphF6nMm/dQDo1mpTgaSTtf4dlok8W10A5T4DGT\r\njs3OUKtrFb0lJ2fpZyZY98SWu5SaFlPQoChMqNMGmvs0XqlK7g4hoPJi5D8K\r\ncz3zZ/8a/ntYoQcoNWdkUjg2N8v+cm56kTk=\r\n=bsr6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-19-2023_1679185821912_0.35910806450820676"},"_hasShrinkwrap":false},"1.32.0-beta-1679253051000":{"name":"playwright","version":"1.32.0-beta-1679253051000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679253051000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ec76a817ed1a32109780a13583e0e942ee5b38f9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679253051000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jSc6TAF2akQJ9j44WgPJm6h9zf9fVL+jhQnbVgrMTQdC4frlnWa5n48p+tw77QdzzKMc5K/yGHm8VzctSDno3g==","shasum":"d9a170f02dddbfcddd6803ffd3ea679fd1bb0a42","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679253051000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQp+fVO28AQER6Qvdp4iReVQ25j0oNb6bWUc60ha5uZAiA8EH3I+KKbMmOk1H9jWnB/CUSUoteTiJX415ZYHqW4sg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkF18bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDcRAAodISaCAPGXAAcnjvh2uwGPas5nja6k8Ni6JtNGYdzFrLIatQ\r\nNeY2QoKRXTOPQGNGH8Xsq9UwgpuXVY1HYIR84MEZUjki0B7QMA9prdgThNqv\r\nhtQqn6aL5p7YqRqLy9c7mLEbw2HKvWncRRvv4PHpjkjbCbGw4npNaIia/ob2\r\nKULfSS5ALgqRQeK0y1fqjk8Kw4xOuc3WLqNUYG0iGyWJ7/boFgM3tID8bFS5\r\nsA5qwbfxlVpmFQcgGvk69B2M8sJWG7I7q5zKIAM4D5Z9DhceWavEN/qdupy+\r\nqsIPHAnAF85XHr+0ilot782j+MPNzzotHK1wxCBxinuots3aYJuhSlwJp/8e\r\nV++Mjd89giPBh9VP3Jh7Xij7HkVpSr6lg16a9wHRvvOGauZy6bFZSkDw14Iz\r\nGnPf3tWLOaGnkfqm0Xvt7HxfHazsWn1cmY2lYIJu9i+58VV8CsOeEtwB8ygR\r\nUYoxWPIFjsxgkOJrhi0cPUo5u2jBaYEt/5RGyrRFnhAbwMrh/NF5kVO+BWwa\r\nSQnZYcnWOAsQg7f+B99K7uToZIiPEtFttVcfbqyfCdzkPua87+9TOW0+ZVto\r\n2SuMiRHIfFt2LmZMc3RzQJl1sAqhmjOi6uDtFOIMMYnqX+1PkVYR1hzRI/ZM\r\nHwD02rFggrNptzkVz5cTGj2KfJFrvOQLkZ0=\r\n=ru8U\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679253051000_1679253275211_0.49460387787964954"},"_hasShrinkwrap":false},"1.32.0-beta-1679262655000":{"name":"playwright","version":"1.32.0-beta-1679262655000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679262655000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"53c40e24d2154a799c4e71c7ef99149a8c378cdc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679262655000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-G3ScusTxSym7EsFgIt/qwLRqowjh2vMS6Ntxov8LhKViRkNWfQBn3OzcRzpCpMD88wBWpgd4LWpKyh1iV3qZ2A==","shasum":"b684be9c98f7bc0dbf41fcb124116b1a99143147","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679262655000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFGE+9MCmW1Ge+zp21YJK21R9OC6dnHXIA0YRoldx1blAiEAxi9Ej8MOMp/5rKj3kYmiQaa0X+Ksp4RDMfe+tEG9QwU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkF4RUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGUw//R1QqmxYDA+x1eaXcGSG914dmbkzES1Qk7ok2iQSRmmVzwnps\r\nus7lD/bfmykdSvF2ZKoAW+oq1/KJ/CK+INFJYfGbS/6a+X5WSDvYIuTVEFIf\r\nk0b0YjYyU5e+7Z42+r8fQ3eANAyJYPhzkhPwhcwzxy5GhtYhtjdpXAIeDlSD\r\nhC5XddKni113lZitnIj31FHbIhNFbuDl/wqrijKzxBcb8yJT/2pnW4k50AU4\r\nA4t2IoJgoYwKjiyhvBZ3atgiIwP/EmdV+sH81f9FUOBw7nsjnoT/bgTY+kjZ\r\nq9veEJpX1cPqm/POdrhrmIDRa4eTZ1LJ+wC3EJBTk91kh5ykSae/Ogrpdox9\r\nyk/YuNO1X0gyNV2IuE600bGxj2i0UIGHOPpObV2Nin9XKS5ztgVKv2Y4/3EB\r\nRcBfUf5ObdVFgCQNlnTp/GCaE25jAIr1Fq6YlfWfBxnT1MURdIq76bV+uxTF\r\nPl0CpF8GuQExgnBl5TgjYHakvVa1nMkHEo7VqaovkCzz21NUoGfpjkRD2/Jo\r\nt9qxVW4VsKDuIQH5puQo6mOfromXHwVhucwgvJC3QiVU4ea++ziHvBiP1Jix\r\n01sEbQSpj4HWjgj0g0DQ3DKwqmhTN1x/HgfIE8xgyAUflh+hbdAWdVwSTgt+\r\n+OUTPMGmjLIqb3i6Xfu+WVJ6fTxPdMiWFq8=\r\n=p5B+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679262655000_1679262803914_0.2465287660406026"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-20-2023":{"name":"playwright","version":"1.33.0-alpha-mar-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-20-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"294baaeb44d75e74486b05576dec41049460d287","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-20-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-vdajQpeaJI/BhXul1LnQlh1U7vOv3pwO8A5idbpGo67j0Z9kPuErT1q1yTDBDFYx+morteicAaSrZMBdWAeIOQ==","shasum":"a798da36706de01d2c2bfa3ba43b3576db9ecebd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-20-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfKV3VnClfS5ADYG21oyXBNu6k9ambPvPmLheJUjidEwIhAKIwvNUkrwWazNyxxulGqEV8tbcVm85C9+AQyoRReazX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkF6kIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFYg//bRjMxPjnL0/vf4/abrvIwAidPxEHPi5Tqi6Cxwqa9oCjAQMC\r\nKxdVp6ZewmCpp6lG5iQVdGRgPkemHELKbgznbOI37y50VAvt/xmP+YTiawjC\r\njWLz9+V39yl5LT0dG9dGNuKJo0KNPpiCdr2I556WgDxZlLW7bgfdQHhu90UQ\r\nkJZxiFJDMITe4iUSMWArPi+reSlJIC6003KlwNAqwUkw1M6gXjSgxDyEDKxq\r\nURdKBQ8fCrGH4WvuKFRxlDoXvHt7y9RCpten0c/sDtwmcNsgkZVGrnJwbnlT\r\nCWrjFZWIYQUTmuCDjiF6fe6/PaJxKJeshJQfL8I1o8pZWt5gzm+6EKCEHVnp\r\nX9hM7bt5hdwpW5Xv9aLPC8adLQMz8pXj0JY8ac52QXmwrD0cF0HlQZOOP5Ee\r\nKb34ur87qGM29bu0KJ8PBcs1fh55Tuc1MiIrjKq2N6RVE0JO1L7ME6MvVTOu\r\nLKB2VcF9dGA4hm5TIbFQ4qL3pTLeEH9+N+s3T5xCfGsAlEavhcBq+fkzwZFV\r\nqRNQxkdbJjeEHzuC8XQgNZP34vouMXP2lXqNW/s0kelydQH8q97V4WEgDoUx\r\nhKMMWi2I2FaGjovAz09lS10YCXSLBdEOVb6HCzLam4BgKomROsHhq1asroO1\r\nGXfIQPlIB0jm4fd3IPCf73k0DcX+AbTPCxc=\r\n=ZhI0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-20-2023_1679272200367_0.16865843181854556"},"_hasShrinkwrap":false},"1.32.0-beta-1679286098000":{"name":"playwright","version":"1.32.0-beta-1679286098000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679286098000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f4f2bdd2ace2fc2d576c2b83b58f2b3f1daf55c8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679286098000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-IdPRCRHsGyGs7Ba1XzQEPj8cheyq1aEzQFhziX4DRvNboaO/Lu2qinUwHvG32QQrGBWvNwkMTycsp55xtS5o0g==","shasum":"c2bc9f41f9f152e090acb3d67da9630245516ba7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679286098000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhu//yk8AIckwKofORcWbABlrunuN8sQ4U4fBVoRWHzwIgMTSrdYLSeUS8fQZuXuU9usQDQSTCikJE7nMzGOX+iDY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkF9/zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiZBAAgUdldEnPha3WXr2C9unoBU8jLkxMdvLPz9wyIteG5D6ngCjF\r\nunSVpJk+uN+y2NLQzmoRJ9THgN7ySmveFaxgKMu3FZNcjkfnHJ8wTR9+HkAI\r\nzCXB7aNt0WgfYhjuJfXFxjh/Zg05+e3rKraVkGIt5Qd8yAXvkWkRnQL0ABsj\r\nRDbU2nzVZrckJNejkcv0l8P+eKUXNzGBF5a5CzX2qLa/aJcrU5kG/Ra4d5dN\r\nfC7YdefG4UFCIvfqKSNPVXMdMhS8tTC+bIEwh3LBQ2iTLxudm4ftt6YA70y7\r\nhVa9f5ku2UyyokZ6yVXqJw2pTWmoGTAT8h1sOkYGjM5efe2zxmxx3a1ndMGV\r\nNyng60RiB0ZIKwPd9DtCEfgu4wGSEWYuj3qa0ECBLEJ1Uac2DUmLONTwQcsk\r\nZ5qymhmHO3pQDyBXbr82/NknH8/XCOIb6MRxqwRWA30faKI+sW92kfUdAqQv\r\nuroxnHdj39CiueM2qScORFAaNepXHJd8Rwzgkd7YL+CVlXbGHJGoZHjctT82\r\nvlyeGX4znEn5eUI4h6YRYzCbcnIqVGORCPj3zJN50bjl6cR0pacTAwepFouX\r\ng1rIvBsout//HxdYKRHxy3Xez9oDGamgtHK9ElmLnre1ukTSjQ3THlW7ejgh\r\n60bfMiIEj44yjRtRmOm0Q0q+PbNgeddhQ1A=\r\n=fOHo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679286098000_1679286259480_0.8769197545402374"},"_hasShrinkwrap":false},"1.32.0-beta-1679291620000":{"name":"playwright","version":"1.32.0-beta-1679291620000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679291620000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"940078e06c4f7249c687fd7e13ac3e15a6e6c880","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679291620000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7SWPO6Blnn5JyQdWTokx7lmAgaLn0M5s0C2G2VkOwOZQcGsHEVhb8jpJqInUC0Te5HAqhqmVE145nT4tXn9DMg==","shasum":"405033bca387434283e4518343b74bbfdf3fce6e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679291620000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5J0W6WtsXKPXoTgd2iE9soPTMdFrO/bjiQgvo6LzCBAiEA8XhRCwgcbK1bIt4NQ46RlVqHV2E2Tcn7hGRwwB7L1L4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkF/WBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmYw/8DRblkkFMu2SG8d/oJfB17Gqd30vfiHzN0kbeW9vD9ZZtzdEo\r\nLwgcljJuCqfu4ePva9qBNUI70bZva82QvBVD7RrKl4ijUKkbhHKUrhkfT0mz\r\nCxcm8KBeA3yJd0DWw+rJP/1RyqiIgGBbhHHru7KuaB5iG6zpU/oh2tl7z/bv\r\nRTpnQHe1qG2vy/DZXwGn/KtS4ynTo+wwGr0Zvu1btxvHbCYugK0C5i2Ci4EI\r\nqWQ95trVOC81ojfnDKzMm7p59txZfzBN5+3id7HC1VYlfODkQK2ZqS/fgLuf\r\nNHg8MCZ2T2iHCk/b00bcxx0yFXTS0temqpnRxRcVjms2TAPd3T7fgG0bqLLi\r\nQi/fixLqV+Q7uo4UjkJ1V+rAYTk38BmG2nyZKPjvAothnf/Tg2Wsj88QV+Tj\r\nKZR8flG3lVDom9x5W9vbMLyha5G2+VWN0JnBcWXa4UY3u45LOvRa551lcRZT\r\n51RUERm7+rvmovr/V6K4spXdrDe6ETvrt66iKjwY2VCsOs449h3/wPOggjf5\r\ngS/EHKgWc9VJDkptABPdspKPbRnGgOuMOzNkaHhimgk0SZBGzR5H+MvMZCgW\r\nXf2fSv4HxfAWbdEMUtGbObA9veieN4foKbODG2IRDOf4FsDRSjgIlooUK2u6\r\nUnHoaTIZb6Gqy7KJvMhADwNfAZYPxA/lXS0=\r\n=HDoX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679291620000_1679291776859_0.1520279307659238"},"_hasShrinkwrap":false},"1.32.0-beta-1679336162000":{"name":"playwright","version":"1.32.0-beta-1679336162000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679336162000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2fed4b6073b4bf67d16bf5cf3c3fe3c1d9baa40a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679336162000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YcVYBM5ReRPp6wD3UAEQS+UiGvGwjzaOhe3PIX5082Yv8EMDRv5gUyyp2tp6vtVMZOSWln6Wm4tm19PfIjMAvw==","shasum":"2fc5175d35a251c696dd68a6e10c42654bdea0d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679336162000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDt1PN6tEMQRzLWRHwqCY8wiWSiIwb7RktDj8lOVdVlWQIhAN2fmam5oMz0GFAgmqRA+5Yv0P7MYO8u1JG+upraIAzF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGKOmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrppRAAiGXe9dR5NqRtFeiuB9ZFz9Hay2cIRL/4NlitJJcoE7Nehi9e\r\ncP9pdBKIh4wndFJfPgVMFtMbPzqdSHaE5+GtcCqVY+UjOQtgcbGBRTsNqj6/\r\nRfhSxejTKZ0spW/ZKHO5ttWmQNO+iIV9YAze/bJ2dBV0ki+0WSxCnX17IlM0\r\n7W86bRV0gRAU4Awy0vDPK9xZ4Ex7vUymB90VKODpt9uyNHCWoID3cZEv49so\r\ntKfoSJ/R4dCNph3nKBNlWtgPdRADN3FCvFbUC2VW0InkIw+YlP1ysa+5QAR5\r\n2p4jid+X/0/bjlOb4K+6G4VvqSI2MDKKMnKOKEtlS9sG65wO2TtliCx0snyM\r\nENd+w4qZ9UhQ55ynZ1SHlININma0A8QtXmStWspSiIsEqKQZjGXwOqQZtzpz\r\nfz2K7xM0nIwQ3dGpxOn/3Uf0fEG8gPNUb8qYb1uJiaP+eQ+O03kpoA+lOXT0\r\nFxhYhd2kDWLactvOzGJNvVxaJEPFLSiE1A5mzoKIiHbQh/aHxqQNK/E2mfkU\r\nKSB6Z4XCjVCRa/E0+6vKiSGGZ+3bhtxbaTbM8OPyMfcZJX88Nb1O4++GvMa7\r\nocZWq9TqaX/bi+gOdC/USE+A/0T7l60cMdGLb6QwHaoU9sDt2BTwrjX2g+97\r\n5xhdFiYQHtr3mMWcmMQJc+pjrWGiDOcik7w=\r\n=dSuh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679336162000_1679336358068_0.9870073446558898"},"_hasShrinkwrap":false},"1.32.0-beta-1679336170000":{"name":"playwright","version":"1.32.0-beta-1679336170000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679336170000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"80081692cdc2f68b38b161c4df6a4105c2b65c7f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679336170000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-k5NGFYQ9Kl5o4B66KC3yj5GfiI+F77e8LXBg1Z2XxWi0wpux0m6BNHIBfFltjVPSCjiaXpwA4SsV/dFJBiCu0A==","shasum":"61e3c9e5aa9b1fee499ae8a8aaced0b1b2cc1487","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679336170000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAEfM88LWg4+O6jG5Og+ZFQ9uj5P2XXT3SX3bxv4I06JAiB9EVw9ET2dmqpgRfuccIpuyMfCE0CSO0g6lEG3cXnbXA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGKPVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1EA/9HJC9WafX1nmxwzDIAjPdqasrI9d34iSY5VLUXdSjeZQpu6x0\r\nBQHAHXKF/orihnanFAAwn3pTr/7j9OdY7fpm15TklWv4T94FiBK0FDWoKIQz\r\nH+t2YPGxClWW+aXbehoc8s6eIGVP7Tc0cDOLDmwdFNEWVsGBQ+SeZ4Gbcpeg\r\nya1ToyMW2Vc5ncOvA5yR0dhEndTB1BNvq6UFr8EMn26A02Ilkt4vo5DfmQAb\r\n8Z9O8OJc1xRkvJxFm2cl5hnwzEeiM5nxatcT3XyCOuQpCyHhCnU9CegqdUMX\r\nFH1uXsKiriLxcJiDRE2t7+u1oWLkmGM6tzUZHY7jWlq4uoS9RCjB0w2I8JNJ\r\n4J/qFzBDBvxI9c9vEZM6loJLY8FPotsfGjfGtUH0xzuw96sjZPVXyjgevimy\r\nH8usTeBioRLMkp30MnwnSRX22fpzkTIFWP/rzyXdZr+wJfy01qwSFjtE9eEV\r\nONqWRNGzBd2b5XaSaHEDqVBh28kjEqGfbsQZvBInjFMHZHJhSWqlmTh8EU1G\r\n9JBzJHu5y2xeUoRXHn4SRE1Mz7gqXjbMh30fHnX3Y5UQtgZhCZtGdgMQ2VRs\r\n6shnZxYjkggLpWUHfgpw2lgTiCeKnfAVkrnm4TRq9UYbwf4x+wKD1FYc90VP\r\ncR5QpJxJjUlanhFxGvGjl0gCSLw4OgJhi1g=\r\n=Vmch\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679336170000_1679336405577_0.9733278282123681"},"_hasShrinkwrap":false},"1.32.0-beta-1679348958000":{"name":"playwright","version":"1.32.0-beta-1679348958000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679348958000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eed74036e81a4708725cdbf84f3a751064f23a03","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679348958000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WGoiRZDTaYuOmc/YoBvoTCDQ48OJ3fMeATE3BVDCKVYQU+phT13e+NVi7QtWupx6QCCHL5rUEcww9ucJYDdV7g==","shasum":"a0bf5f99092f32d942a246894ba28bb8785a53eb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679348958000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2OAW6+9eI5hBX91NSe3Kj7DOTfu5OTeUgjysNrHneXgIgLrmW93ZYl4e1mhOQPrvMTNkjrSZQs7DLooiP84NHNHM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGNYUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3BA/+K4RG8Lga3qv99kOYJSsgpBjGkBOZG9tZO3UBGXBuU/HlNJcQ\r\n6NmeuRhE1LT7aWt/vacCbuSDJEn+rWPwgvf6ODBxq4sre+gLFT/4rSla3Vop\r\ndyXpxAA0OGkX/nvLka8BhyXbJPLvs3YAdFJWFnw26yUXBptgvbGkh91Y0tk3\r\nq15ec3ZkDnEyliu6BCY1t5S+/JHwAMOqW2q5BfDj8/x8h64oeoinnRCf2dsP\r\nvZlxTjbwHur0xzzK1morg5cjVgKJ294/B/TQKmgkh6psPMqnWlnYfv+UM/yO\r\nuZw4MdVGD6DgrUzBn4/v6MojWBNc3+SUgoElRCRLNz2wYrqB+shS+fdTzSF7\r\n4sIS9nZC5Vq4hB5Xt9ycHYk2c/iwbeV76bgfXIwf8pgKfPaWoK3POc8s5Mna\r\noT5ZFKbNRuCSemPOeofVIq7DadzWClvfuHBy8OlCtBEbluGcuZ1bKPak6kb9\r\nwsRsdwX0Hsw4xGIU65nX4sN3NzOzP6vcHDB52kEl9dFC0NkrhZvkUDglc8C7\r\nVqCLmJaF92E5zm3C9eXvjaVKWbALeow05EgybWYu+4gurmZGVsQkU3sax44r\r\nGt1sOemf0MyPY5pdQyf2IIeVx8S0yWmcwnNOJZxfAA7DXXYEFjs58jxzNr1r\r\nHonW0bqrINWjavx+HNZkQ8pd1cwbbw9OTd8=\r\n=viA9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679348958000_1679349268689_0.49256606815958315"},"_hasShrinkwrap":false},"1.32.0-beta-1679357626000":{"name":"playwright","version":"1.32.0-beta-1679357626000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679357626000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b6e9f1fa53de1120bd65a008ad09be7d29d11d89","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679357626000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-DqcgFt5f4IvF3nqWiFlebzH7k6DVG7Yd4r8D6Gc7QaVqCVI61DM6DNGbXxn5a0eYi2NNaM3T+MWhRuTAIt46CA==","shasum":"bc92c764a6123b46362f42e5a74e24e6c9b5330e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679357626000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHgzp4IP3yumU39izCH77v6W+7cV6zjkalHzwGrga2ggIhAOFdgfV0q4+VNGQU1AO+GBhphKk33DpGwN92q4MU3LWg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGP4JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIjw//cc3z1LeesyAkS72t+M5+lOZaPJIvnrvncqKe1ooHXj/Rcz85\r\nCWdY7hgl41wiag6TMhh6qAqMWJNhhjzFxIb2aE4Gwz5FUbk/M2G0uXQJ8t30\r\nKhllzdPPVv7/w7ZE19F79Atscxjm69fIMqtin2veESS+2FEmNcSKO9LJz73r\r\n/S6vxOqoIzKTpyBAfyJH9gGqp4UMMHL8I83Nob9maJpJI7khBJJEK3EGq3/i\r\nm4uSrTaAOsftF4XFfgwXJ52Zih9fU9EM4b1/JC7590wPR4Xo2bj8emW0fya5\r\nBPZYG4PHwfiwodEopovH4jwY3+8cAV4R+9JA5xIsKov9+1mi9BpaBrFlOTJr\r\nRbENRsk64JCwigzCMfAd313RLsSNsSil/sqcOD38i9RqV90G3XFuI7A2NVgy\r\niLmJus5V0lIw1NkM3KX+OE2AfuR+imLCI3tK2Mb7oFfr9EhnevwJUOfsxqp0\r\n6Fjs4zwgILtYAYV9EQYRyr1PWi1AcoI0IJN5OVeYwgwNsE578sHut1msfRYa\r\npRrqloS5kZfeNXNEgtQHxKNTkSK0v+Yc04M4boutWnt8Zsq84u3/v3Il8qVN\r\n0n/dUusOlvjh9rV+DFqPklJ099blAqEcdMGM4V5vNgKjowGQIaidlBW08oMG\r\nUbKC7MKvTTWNtWTgGZvslKUqCSCQSq2BUB4=\r\n=9NbQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679357626000_1679359497461_0.2755266585994318"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-21-2023":{"name":"playwright","version":"1.33.0-alpha-mar-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-21-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6015dad9db3664191e96bdc3ae4a54e267e92920","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-21-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-IV+BXxLbYLDlxXQWZDxngSyDTKjGPKQP2PWU8MXsm+XHFU/z8fpKC8a27A7hzRi/2zwoFcvJrIHDu3G8F6eF0g==","shasum":"b7fbb84e422aa0db40391ee894632e3e1c6843ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-21-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDI9iP2P76z/s9bD7QRgOv4JlQnRJY1+qX5O1A/bmlNcQIhANI2lkTold8a0C+kSb/LPCHKhUm9jOr7ye2PMhV3LccX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGP5nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpfBAAiQbQbsuMESrdGaAOCb5QTO1caZO1CaveBpjaLm9KTUaHKq/Y\r\nvfbDaupRy3V46qK4UpwYPfJm6HL7DUnQuRPAUlsVKuRBQ9+COTpumaoY+uk/\r\nzGi5pK0Tmrl/bjKtqAT7+0DO78Um5o6km4hhaEzswBaU7hCXU/su9FcDEcOk\r\nnPJSRUp6H1iTYF3DLhe1ZXIfJMCamVoi2lGroar77Pwc+JocFxXRATkRt414\r\nouA/7RKF6WZrWNuyqj7RkQ1P/e3HQ47wdJl8A5rhy0QLijeoNtdXWwIpBAs5\r\nC5zAPdMvQV6h1bxUmBNfGBI3Q/Et34CvazzNPtXnjuqSjdlY26NWATn/khwf\r\n/6/7LL+1yv1mWfOOJIy1uNm3ub5bfRo4xrbm0xK4vIHR4a8N2h1r4E/Mekjl\r\n5jjRMczKKpYjuZS6o+fyxUOVzPMdOwQ3cDXr5jdC++x+jbeLZ+p1taVNXFhx\r\npA99os8vkX1qfYjDovkCJc+SKEur4m/bl3bVHVI467se6LZ/1jkFfkFM8RBI\r\n8ld3AAA9H5IE5ZW17zgZg9gRFY1R+q+87lbxGPLI61pVQpo0AZQ8uxWRtvR2\r\nRnjC8hQzNd+dfHw3KC0QQJiG45HvZuSNADGeBbKwelD7FEi3zHkduCNWVwjt\r\nYGLbVByCx6+iw7RHL1R0BqqTpLuh9gFKilM=\r\n=CBI5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-21-2023_1679359591276_0.03989164878819507"},"_hasShrinkwrap":false},"1.32.0-beta-1679372723000":{"name":"playwright","version":"1.32.0-beta-1679372723000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679372723000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"497c89dcfb7d07f74da5e098ed0a5e8b584699cf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679372723000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ulnQv2OC7yuM4uVO0+3aZdjqBULlqKp8GgSDrfqWG6ZYvKTp0ef4Rf75XsLFPW/aUKLBBKezwr1BAWOAGbhtLA==","shasum":"86f51094b1abd17cc9ff46f71fc07cf5998cdf3c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679372723000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGQjKMTFyHx95t3Qw1BAe2SRDkJ6+hceeU3PeaDasdB6AiEAijRVj0+zfwGqEEchG8crcPc3AmtmCLPEZSH7c/ojmHM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGTJmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeEw//Z7OMglIIowifUc1PsX+VMBiTvuq/QgVR62Nw+vb7yGSrBvvw\r\nVTxi28y4vjGBwGmXS5CYJTpAFRdniuUhfOp2VpjJxb161aJlW5SokgXLMB8k\r\nhq4xUDcJX9nVP8MctrD0icqPBuDkjtBD3jC1+eOIS+CX6lMcDGRMuG7ntcn9\r\nqUzM3OGugg6MOSyYyluOBTqh50dVzcIAG/87z59TJN1WSyLPfWy6lCSv4bwg\r\nxD7zz1v8/BH/pUfzRoJBY7GFlt1IvlbozFkZfjiHHR7aprwPG5IEqAZJ0u23\r\nybiJgVzVdDOf7idXEYdjMWu7lgmhOx4lKR73vWQlTPYE0Ubjkyq4689yELVZ\r\nUyFF6/bxvt4xD1GQPWo1qNwKB27fqzbCzX/Jdst+naWnK/IWUv8DXskzX5OC\r\naXFw4j4Rq5W8CgcaOOjNSkXAMmrMY3byWjspbclEWcT3dga3VstU9ZohBT8z\r\n26wehjTxNuIBZ6H7TdaOeR4PAyxb9xFAjezZ2C6ubLGpRtU2JrHki696hieD\r\nx0ZVG5uK2UDOxXtAVvGTIj0UiDyQw/ouxfI2FfsaIaDw/HeuVGrGbil1lQYu\r\nDUgh/sOdmDqvvSTw4S1Jp4QzTOuOzJ1sY3P9ElBT3/JwhW8zKHj25e3zH1ZL\r\nKv1mOyk+3jDHtfvgON9PeQj4hScrnDFYBfE=\r\n=FmwA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679372723000_1679372902225_0.5196230159103219"},"_hasShrinkwrap":false},"1.32.0-beta-1679372796000":{"name":"playwright","version":"1.32.0-beta-1679372796000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679372796000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e75fe015cf7715ed0141ff1654d09177fb5e204d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679372796000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-76C9WJNuF3XQFI+B69NZN58MpiJ0oPlRZnWlFmdrl0UjkRzpaTIh9xdnlDrxDdD0VleKchCQMPhCV554GK9tMg==","shasum":"41fc233d1c5731f692ec7268e7bd2428be516f25","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679372796000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRuUnSJppQdgywTVAjQa8gHjEZ6fnApzPf3IOyGfLD2AiA5LuOQqOnL6JONSHP1VAX6FQIXScEA2VwyIvKxMaKWkg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGTK9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBCA//dlscPLVYNTpdpe0q6hN6Y+pRcnOhroIPyuKoJUaTpWfKQRNx\r\ns1JO7xEJN9J6ZUL/c0R62qrqMShv1QHILduPxEiFaylLaRTITyaraYURX8dM\r\nJa4AWxfR66SDwABZlSmxPDpvMymUPid79UoPeL111iQmhYNQPzR4CtTZ/MM6\r\nt3gqLUzV/3Ejg/jxwFOhuBFr8Xd054lgKZdZu6SMC7QtSLbl73Q1Pk72A/SN\r\nNdY+boqjOomvhs1tCFSkUE3zr0xpKTSx0ELM9ESWl2PYaLrX/P7WJpJsKl9e\r\njZNEImDY/IfJi/E8PZHe5MR7FovCA0hRRpJXE2efgT0jRxmyl+rGCW4/W4NM\r\np7rE7/Svor6QX65/X6VUpdnU88ycOqaUq47xP3GjPY7h7hC4m/t2Sg3m702r\r\n3L2UjZArfd92okIPIMppadCuAjdpYAYyw1/4p0wkbnRkOsg9l1QC/aoGj98Y\r\nTjkuFlWN/ij2/jyEifbvFzMi34vhdr4XYlUkK5p1p4CmcNsCHOjxSbAxl6GY\r\njTbHOpyh01MsXdiwfw+KLjuKii5U5gRjOq7pYOxErzgS4JthtMr/HdfzfSPo\r\noOGm7/mcelbfxJw6Co3XIxHKiagSJXwu9q8Nu6B7otdFvzgp4zepfd1oHzoP\r\nru5oJpT8dkocio30M0xU/AVbHPudLY+ojpw=\r\n=Ei1y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679372796000_1679372989258_0.8775888840834831"},"_hasShrinkwrap":false},"1.32.0-beta-1679414990000":{"name":"playwright","version":"1.32.0-beta-1679414990000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679414990000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0646773e85b763f6ca270559c735f14dda840a4e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679414990000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xN1Zr+5t0eddwfVIUZS860Fejb3cj1nPBVDZVIrBmWvhnlD/IDxhlLkR9XyviF3e5YnEhqJg2XsK3TLyHsibtw==","shasum":"1ff70c5c3264bed4ab4bc79f87f103bb778db1d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679414990000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOl7AJASMGaODVHijRniTUluHKJltVbgwLH0GjQSV2iAiEAsgJwMbmhjb8ah/WFXOg2uRBqXwjYxWEPHSHJF8xPLPM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGdeSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNdg//dhxKH3YTRrWTElFF5V/LCMeu1lbdxetVXHDzUJ41cmCR7pWf\r\nJ7FAuoOr3ZAW5Jj0+azczVnh3sriq0sDpIgDPV8pAuOiupk0lxz1M4MCdXEh\r\n5N2W8UhXGB3Yd5uYeSDDvZEcziz3ys63sHX7iH7Crip367oxYiL0NahDHIQC\r\nPl4l9F15vNdV3TuaTsR5fA88L5k94vd9iajs/LFpFAEEvZTHWC0qRZW/3A17\r\nb0KCUyqlJxHBdhQ+QQIbVHd0odREalM/UNMQXsT8m3wmtcILf1Leb/+APHOP\r\nPd7APV6ZMZ5wbPDRlPkdIrOX+wJ+K4XkeEfR7SrWbfQWO+vpLPtxDzka3zO+\r\nWnIUL1rpttdP/DUTT5+f+L5ozBPLh42lhLrwFTy6InRdiUYtbGpK8rFds5tp\r\nm8TieL8dQo2F7+d5kXTaeBcbdCFYOjJrJ/40bWzUmZteM8Bvn4nrvcVyFs9p\r\ne0Wd5JFk4CK7yxhgjn0Z0V2C6+hBgGwKqxFtiVcDssEQlNzBMy8jUNoCjjFx\r\nPUX451anfux3facFGl0o47tI8SqsglyRPsmXWAMenbAujOcM85l4EHR/QYuF\r\nnCR4IYhdUmGw1cNMsHjjExkfxu7eX8g0tlG7A4yCpvJD5JpO1e79a16O12ea\r\nQ7ZW0M3IAPhb9VSAwYuxSNW0cKYlfdfgaP0=\r\n=O8jT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679414990000_1679415186223_0.9767600780144228"},"_hasShrinkwrap":false},"1.32.0-beta-1679418399000":{"name":"playwright","version":"1.32.0-beta-1679418399000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679418399000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"39c3482980e98d1692d907d882693fd60ba17fa0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679418399000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-EHe0Qv+dcDTEQc8ubv4NSrsoyJmFcy8je22pQ9CpWfbfMwAPgNP7jEn08Mr1EeikwKYkuuFGgx5r5wkkEr+ycg==","shasum":"52afc157134e2979cfd004f35a43a2a5ef3d4c73","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679418399000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPbAyaz36f/lCLZGrHOGV+/kBlxbVZMgRjXR1dHbsIQAiEAjHFHvq+ODGRgsFw2wmo1uuz1+DaTrkUziDAH2oV0vBo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGeUgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6jhAApBsGnKodUwz/OsT+Eq876MlFH+YEAOMj7JymuDAmOMmAN9Qs\r\nZHpZy7z68uPKaDtq00aT4CW3dPcVSLZAINxgZOOcAfCmd7gHA55qlU8o7+lS\r\nTb5fDx5fAmMk7DJg80s3qF8b6mZcHl+47HC4uTbgLe4PHdmOCqP/eEgo0Uzg\r\nPkcZO62pxT2al3LBIyw1hpRA6/beFWsqU/UQcQEXvlIhOsP7e9BtEpUeXBgk\r\nj7BsrGybM7T2BlMGy9oQqZhrEy1Tp7UvkH5YMU/QOFZ6jEf6SAvQ+7M8vbq0\r\nr6gty/O3vc+7YaRaGyIsUeJFgq/NhnmEEaxl35zCJKoErAktvkwGaN8FNAQ9\r\nviUkCOdQjz2+hkD88FIDO9LVQ4Vn6sP7SJCW3LeB2jyWSsVAjgg9DbufS9E6\r\nfpZVsKnqpWq37gbqbAsvf+egxPsE7bGZQaL/5p5FC8AlSMUEYWyqOqTjK9F0\r\nS5BiNG7NYSSBbH+wIzrVk5XksOqSi5e0h4xILduGIgaQF3JNeV1nF+3QDBIJ\r\nlHuU9EcxHavzhuyhQI0TGccvTKUwWdGB5vs3mbWkFdsZSADnGAGNB+HZTZCm\r\nbgoc0K7lmtSGMHTXTRJT68aaOxLo7odWS5QqB1imePDm6zGmWEzglZ9EJW1Z\r\nBxTAdusHl6vjoXzNfsmual54hxuUByCXnZE=\r\n=ZBfC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679418399000_1679418655833_0.46753008590403833"},"_hasShrinkwrap":false},"1.32.0-beta-1679425453000":{"name":"playwright","version":"1.32.0-beta-1679425453000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679425453000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b8f802910cc6a64f685d5538c37cd6343f803b23","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679425453000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-5xrOlplsAntymVS9BmmgehdUBoO+aUCPrJ30JBIrY1UNhhwZcBx5a0Ltx0OjlFdPabcPpRkrFffk5JOb75z/7Q==","shasum":"bb48992a39ae73e0594b5ec1e9da6744067cc7d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679425453000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPGh4lWCxshTfqwSbi/lZSltaiK5Qz3xfKNi5n8TdAFAiEAg0Sxsqag8MxIaz0Jk/7rwC9ZBjTpcC8t0NuXnsBN7jc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGgBVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmopcg//X4vTq1eOmNV/uCIDF2o7WWJm/4+aY3E8ZjII+WeHZEaql0Rn\r\nAXt3iz33v16914ZQm6emnSyO4Z0Qo2i6FmB1huGfilpLhuj9YwYhr7Naim4J\r\nUf03DmjQN/k000PThWASKBBadP1sM8JO29n3RgsZTA9iC4wvIgeTfO47W0g/\r\nE6G9TxdL6BuHZg1O/l2jt0HhPfQjbQ7GbvNx1vaHbbfmjJf7g7ns+y1IgA6M\r\ns0WOde/FRrmxPRxrH1SoZhfV2yUElvkqlel4tE9M1JLBPW6yEMX4THd/btQY\r\nLi9qa2Ht0sLOC9YrM0cqIFQ5gt8kSCLoMRcofMtKi9ZwwtHnEiSTh3uW75WC\r\nEVlcI6uKIX+xQrTPV/wBpcO3BZKFEG88sdGHkr7uNjQSaI0fSBJPqXq+ZglY\r\nFkznS2yGd2iAdX6+Rozk4a8qz4Y062Eqhhj9MYnG4/022a293yfMazxaRUaK\r\nktdxuTJswsqm+gPOO8azIhk72Krlo4dVI0jpMi2aaKSiB7IwvyP0lKpSva34\r\nf2x5+3Ken8di8gkMcr774OABPiwYbE7N461tQ/KGE53hU8WKIokDuSnxz6Jw\r\nAT00uVfWYlwIVtyPJ1WDaghtv52s+hktQnANnLyRTqOXcpeKdGq5crhXgeot\r\nVnWfJLZztWusYbkvIPwWxkFCBIGkMBVpL4E=\r\n=twaM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679425453000_1679425621518_0.8561707607819085"},"_hasShrinkwrap":false},"1.32.0-beta-1679426066000":{"name":"playwright","version":"1.32.0-beta-1679426066000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679426066000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"75b429d143d89e354cfa907d4b627621844564d4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679426066000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ML+3w2pu714y97OeCCDZgEoJh+q5lrZUcHeI0/kUT2Ixz4ik+vHqtFwHn12Zs1/pmMo4nvuesc22aX+tncSR5A==","shasum":"0644a37b0cf36f0296fcb9a307b3e4a6234f82ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679426066000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt1veN/2uSjQ9kA5socylNWiVZL464LgE9iBLRLTFF6QIgM7sHHzmIK6GrezzNdpl1NvYliOncEDyXe1j9TpwU0I4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGgLkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCxg//Te0zv4p/ZYpiPg6TTLQhxE5Ei9uz/b9wKS0XHxK7q3ZtYICN\r\nB0zMHA0/LxgbgzzEmihwj8f6AEXrhESlaGBRAAA3xjZi6bEKF8E/8kRZ4Kt3\r\nFeRsHGI2lMbfQB9jaj04zMAU+SazXkUh+MOo5OhxY0OOHK55iYKacUefH1ui\r\nH+NnoaZdSsroBJRMUY/WnUYtrZ6nXBplwOMRRHjQirTxgYIDkG7RvsD6W0+K\r\nIbMEAWD6WMBpriyMJJfpgKDWjBKoFkg+QMyx5W6mTZYAm9CyPtIlrb64yusi\r\nw8di1NKZBYZ4Rynhu4s5JCElKE2e7eh6pl+LVAtHJzweCuihTU8GLVsqy0dw\r\nJYIXMiPuP7Z2Z/0/BFLRpjGWbWOXdtfJbm6zZklGBcKb7HOkdPnzPpFenopR\r\nv/ijlRwSSdOjuxD6FT8sqcchr2qyAqGlRBbpD9dB/FDcs9LdAT9Z2EaMgXOY\r\n6qBJ3wxfK+bUR5FDe4lHFDoBjw3bRePSB3bce6ORrjzFDf6m070/Ctwqo6SL\r\n1WS8Lv19mIYFeWv73nu5bpafYeBRdSvVkyD8YOeT1o82iSjuYkPaLJ7NP0t+\r\ns5DMWXKVhvgKyidSqcYQoyDl0UBTV03wUi2U42MaSvme1fKhidyfKXF5Iz68\r\n7oxnjCFBo0KL8OchndcM3eAk+luh47EseF8=\r\n=v9c2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679426066000_1679426276495_0.8807778971846987"},"_hasShrinkwrap":false},"1.32.0-beta-1679431787000":{"name":"playwright","version":"1.32.0-beta-1679431787000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679431787000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"98ff2a891a985ee7006ca420a1ae1cdf67e49701","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679431787000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ZYzjfRxYQnYU2mVzRD2NEHQULsOhJH5ssVohhBVlVEi8IdDkceAVCeVBNOlJ5+ydnhvAgsStQCz2AMIAQCJGaA==","shasum":"6227edfa2505da9751ecb36006b63d9f21c08321","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679431787000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzOILkgQ99Jbh3K3MMRXdr5TmPs4uFwRcz4dnfjVDDmAiEAzuDX8zHv34vYpWTZbTp2ngQwGPcRgpFn/unt14lWl9o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGhkwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoC5Q/9Ern4HmlrByprfm7SkKlOnHP2NT8EructpFuKrjIstRR0P79W\r\nR9oUjxiW/BZh6yzZUB0MTLDhReyrr8DIhE9jCdgVb9WOAP1gucWf8Sw8sP0F\r\ncW7QC+wyUkh4OttuNU1UmOiOIT79pMFPiSZ4nu7n5Epe0c2T7Kyb9LPwVpBk\r\nujnxzT5AT51n03ScTVDqj7g+yVllVpEFPvnlLHmN6E9TxaclW1QBaw+K9843\r\n00IBwD5l2Iayzs2gwWWTHEsK46+Jp+LQ8112I8r6sNOCNpNGuJ2+Cvi5+UXn\r\nSjgI8aM06z/tLdQID9R7d0ORYRSyy1mU8dltuYYOzSMfhbTUHdjtzBFTfgnq\r\nxrSekQeuw4hYRRCVhgwzeAX4NX2VTVODe5FjDYvR442mg119+rKn1at0HNCM\r\nwESrUhetRRNggDLb+Hc6+ytmdbFxwk8bVC8Xdou9fxR0eemM1l1B2Sg5M/+V\r\nMX9lRTTOw1QpxaLP2Cw+xJiArnpivcCb7HOMmjrzkoiPCUsBVJEotj8QsMe/\r\nEFJWMxcku4HNGJf3Zvpf2BEr2lhiTNCt0AXALCW/dpvIHftbENHXYqTOAxHq\r\nIgCpHQRt2co9vhejARWSKmA69gb3xk9JHyQLtQY5/rdq3a++yEw36AaORd9C\r\nsc7yMPaj24w9SYYkLZoZ8N+7s9MFiFchJJw=\r\n=+WRF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679431787000_1679431984128_0.7000820595186494"},"_hasShrinkwrap":false},"1.32.0-beta-1679432989000":{"name":"playwright","version":"1.32.0-beta-1679432989000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679432989000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8693fd4743dbb299e7ada155352694425974a119","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679432989000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-yvh6c2j4SByqIGk6HjEbNvpcN8Xrr4EQPrfux+CQ484Z4jfNv8ezKKkeQ/O6MPkwfhYgKd8olg8noY1eZokQSQ==","shasum":"8ca9d544a2bce094982b02c00a6f4998237bdecc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679432989000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4zB224/Ai5mwU9RCTcBCF9yBYXqrv0O7c2yQQDVXXmAIhAPP5UeHztmJwbuZ7GPnuHD2m1Uwf6KWAJBoYr13xi3m1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGh3eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYXA//ZHlOSJTwElOUql3rRgl4LqwTJEK1U35cD8rq14yuMZoK51Wo\r\nWgZ+hOwl/hHl71AV1vDRBk5mJaTsPEeMsvwGDVv4YO4GQ318sGcfkuFc1a9I\r\nAPpuJrMn8UHtVg+yJoguE6HRWUgfD9zGELxRGcYp2dA6uYEx54MBzYjRAF+4\r\niEXc+hY4UYHD3RLM/d/qHn4T3C9wvOimBe1f4Xp/n+63WRWQZo0oYvHYoOYU\r\ngxJ0gMTdI14vQH0yZim19ulX6ijXtlRVmjpEUpZ34VqPWZ57tbOXuglm2JPc\r\nmfBtcEkWtVksmhgkaPsMosThH3Ze4iHgsF9QC1tjjs3pwCTK44AlPotWwuSL\r\nWs9yKg3bQFiAgpYl8tQY6Ii4f3k7Y3K1IGzrHKiy6ObS+2DH3epii0LFvXS+\r\nuVlzxgEJ50D056bxElbJ2Xfku97SGRnp5xxzokFJ6NSJ044lpOkVTqJDo4wI\r\nXoUsvsr+fhwHqIH4n5X1M6yLzlDCNubGlQG3B6g2zknZRnD7ltOXXJLwRj04\r\nymwaQjy5/REQ2NoVzWO/PZlsnYu8eGpdseXJQ1t2HaMugjy9rfN+uWM3x8PZ\r\nF1bDuFM+SaOvpmbT+qOTRSnkTb+r7mOcRP33pIcOJZZufkVIG7xSeYavW25o\r\n/sUuSOV0Eojuc6xO4yiQzROv94VcYgJ9XKQ=\r\n=KrLe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679432989000_1679433182226_0.4117650332106806"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-22-2023":{"name":"playwright","version":"1.33.0-alpha-mar-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-22-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"45b675d7a0d6e6eeb5ab1ab4bb44f2f67c37e501","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-22-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-0JKhUxLuX2O3cgRD5Yt37HHZ/mnnhcTPbTRQqvTlW34XVedXUak71IqePK77bsLzv8K/VHD2sxzM4EAGDt76kg==","shasum":"2a713bd9618c943334a8ad6bc218a8d05a37b786","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-22-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgy2QzUWXJgMu+CTR3hFvNOVAFCPUynqrED2dXcguKwAiAZLLrTNj3Smw+HQ3PgjDKLuAuS9jTQNUD9ciWKNEWi0g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGktbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNYQ//X/tXP1w6vQp8N3Butxl12a5j/Tarjqpgi+51DPKURd2Kn/Hn\r\nBew3ulcBtjLnL02fDiusGVQDkcijC24INP0VEQ9sCs65Xv8dA/eIznwS4Ahh\r\n4+/GlgmG1QGl5aYItBcvCOw5zDsK9zfEVIsp+hYAohE7lbN6d75vgFxF8Plb\r\n2UlzJKKTytXMLr6iT9xeMNKEEAPS2lCy30/UmuUwqYaWWBpNGMLlpuOgrCpW\r\nDFIaqfS1xoAZvMovYH1HzBFC1SvSXg9Td07Qz92K60q4+Vn8prEXIskYMZHu\r\nhhn5L2V9TrGZ687NONGOiAOp99hufs5qUEbj5JvLchY+zBzh4V0tz72hWqss\r\nyBVe/AIvUdzCxe8QucPuuBimPXhMHjFhIhcyXkndBZX4oCLEIK9gGRGUnesu\r\nESe87uW7eRlGMMnHx6oZT6/flJgqEHyd3cqAc3+GhtTZqcdK2q/7mbiQhOeS\r\n4FTEUgke5DkT1Oe6rGublmXfGwnru4ANj7/orsWB87AwcHrUAygy4wZklp8c\r\nQ95WdbbCOrIj5lAvQjfkRenfG4wItprkpEhEB3B8CFxGtf9xfhCIf8NiWcTw\r\nVEPviUIH7rbaSo1u9Bd9IuvEvM0126CD9PqE0RO4I8vE3BfuAYy/oGCT+jjt\r\nAJSXpJ1m5WFyy+8ctm6YgFhOgg1Yk4ZceSk=\r\n=tiF4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-22-2023_1679444827130_0.18937543076468577"},"_hasShrinkwrap":false},"1.32.0-beta-1679448099000":{"name":"playwright","version":"1.32.0-beta-1679448099000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679448099000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"08422f0651763f4d9915644d3783e201a7336356","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679448099000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8ycabvUYBSU5Ao7DCRPs7iE9x1SNifjEgubzVtAb+adwoi9VqG3RhkmHEg6acJ9ZWnZ7I2NnlfROrpD/ZdGBwQ==","shasum":"512ffca8a1463cad2bfab9e4fbff79739691dfaa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679448099000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQhYg2Jz1wmj+Op36lqb8zmvr85njff/4XvfxcGKVb2AiEAnakboe0HL5LLmjD+t9Vle5SA/TnGDjUE90f4zmJeWoM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGljUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZ3Q//SO18VtVutIg0cEH4MPVf0NpVqBG5RHpfM4/TSKpI2j9w+ieu\r\ne2IRid92FbEgi6Iu80/XWpmcmJ3lQL8cl8TnZDXTW1D25kbzb/ZNDzkXnEHW\r\n2oeRotWzIyei7e+STiIxr/8ZPJPu3J3zk14XzdZv3MvYar6lA+YNIuRdacP2\r\n+ReHG67WSg6XfRGFxmcEbCPvazXEmKoOrF7qWeqWjdMwBtktNTRG8LoxXsqN\r\nLqeBllAz/W45Yt67r5vPTTtVpK+fJsa3TgMq3Qorn5fDUmZm4PUant8wYcs3\r\nBdolKRrUw6Z/6SvPKsU6i2i0kbuUvTY4xBWSXWdaqOzM2MwIvw7ravOt6//H\r\nsCcPXheqBrT34HGno10yfmz+QJbIbaQ8YNj7UV5SHX7rMqa94P2knUKwIz1J\r\nGhfVsdzc+mnBAaIutVL63WP6ftSfu+7nJAH/nDWQnbP9U0g8aMADrM+aUFlv\r\n8GihNocMh5ujXu7gQc2VEt867xqWqNEiuV904FeyVGscNqjQuI2W830bzVAZ\r\n1rN+jI5n3VXVzO1PucK2dZMIec4168NVT/wOqqC3kQGjLfdjiMiOCavMWc+n\r\nasrqVD1io2fe+m6Oow1g0aj5z6bP8sgfO06Lin900TywexvKqga27s/IoUL5\r\noYcPwq9n7s/IqRz0QjNusbYs1oEfyF7lPCQ=\r\n=9ddo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679448099000_1679448276455_0.2469095763638911"},"_hasShrinkwrap":false},"1.32.0-beta-1679515780000":{"name":"playwright","version":"1.32.0-beta-1679515780000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679515780000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3f2640336c0757f5691754f56fc9b6d5022e246e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679515780000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-saW4e8nOnblY3DB0KFX3mzN7fgXmKWz5js1U9WOGr26BfqGt27iYqCIuzbBGtMJ3hS/kM2u5K8Cmflx9FyQhHA==","shasum":"53a68204d1bb40f7ef0b6f788b8702e9cb6220c4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679515780000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICwdcpf91u0KKHNG3w2+ujTgILM1VIIFdBEfbmoT9VxtAiEAyBlKUD+FrlNBSqQqf46KwwkvQxHb5KkGcnEe1tSL2Ew="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG2E0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNCQ//bZbpHtfB0zaBr5HfjU/IZ1V1H7mVOPm30cDclgxUbdIqcThB\r\nV21Pah39tlkX2IYw3tSpDgPxJnNo4C7DqMFfEkDpuENMjgi/IboG0oZGpbZ0\r\nPQbM9nXmbaIdjaaXqCGZGEWW5jqJBnC03WdUQrLVlPVoJC6SauNrVnO9igVN\r\nOb4sJ1d/v5gZs5M30I5Ff7fzYNTw61m85I9z3EIdOER+h24DtkjlaIMw3HJH\r\nXhCdJGYTMK4dFBshuk6JLUOLUJp8QR08bo6WIUX4S/5P9RKGoxjwCK6gdnnY\r\nHRigLUwkPeg5AfwuCLlkZp/BWhv+QvKy/IZ8S3z1oz9seD4e1HLdRCOa74KA\r\n3VG2Eq8ovRrlCtoOH+1dEVN7GQf7Ai+dbwxY8tPTd/p98RIKMkXJ75VXZ94a\r\nPqVzKWu6E61B329ehtMOz8NPIM4RhZHTlJW1B19/Xg9s/oiLbFnPyPxwCRC7\r\nLTZi1XBzI4PopcRa9x5Ve/9n/lE4xL1PTsYl8iulm2scA6T3wCBKEnzkWSoG\r\n9Ok5ulc4svd2pBYR3Ekr+s0fURwI3JUAfTcV7YRLrGd3NpWy2c/fJEm+bwOz\r\nJ8IFvEtiyT2ZfAUw+1hMF8po8L5N/8NUIeV0KN9YI/i2vcskVDH89ZYWvuQa\r\nfszpryt4SkVNTbtDh011JuHv6RRHVoJ5sk8=\r\n=E/bS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679515780000_1679515956301_0.4047674250724316"},"_hasShrinkwrap":false},"1.32.0-beta-1679515837000":{"name":"playwright","version":"1.32.0-beta-1679515837000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679515837000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bc3ec153d395bef02316f1fdd5519aa1415d6b5d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679515837000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WStzE/LnOB540vSxqdQS1VCGDEh+TIhBqO5SBQANYgWhkONTSCrtV7zUbIV2Il0hLfAUo6n2mR/ha3nMLlyvAw==","shasum":"b6c7cae92bee93221154bc4e10e9b3e914a15869","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679515837000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDj9nKd2k399KjzwB8SSLM2ooKCWBVlng7PGzO2D2gGpQIhALmCzPSoapmp35bkxbwmhKvtJC0KXlE31hEmezNkgpWk"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG2FMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiOQ//YInTwbas3fqs9nIUQwWnCUvE2MA/AAvuZXm8Ine1a8WpV+BR\r\ntM7EIm4wo2vAald3UzOaCn1UXc3/9/Dpm3BCe2f25neNBkk03H5magzFXJMp\r\nZ5QbkPWp7Tf4Wu+hApmGL8YKAJsHUwf+KV6SpoTwJqapfKSeH3ll0CXlCOrd\r\nmFZFNEzjODrMHMprLeUMTKVMOiSoNxhHtjOpI1tzbxQ4+Y/hIlb+Gcef2gc9\r\nU61sistTyv9aECE/6zLhwQC4tCPjXuAx2HC8kHRjt1rNyERqudprNazvzNJg\r\nVIsyNs+C3NjoMVk6NmMA1stC1gi4wb+H1TELFbFPlCo0r6eewGboBC/Kccjb\r\ndXDyOwtsW70G9/2pXAf6YfHrj7H9GqXBbwJrnTKKu30BRySnCakQF6aLGfLX\r\nWE8JTc1Q+P+y+wdIjtYcWdF/QuLN/1wAQVtScWr1cWUsEHkZJeVzhoJfn8Gk\r\nsIecP5D9uEHMPGxXq8Tf8HP8ySslmsX05MdGbAwxEexyaERnT8CuIVUCda2b\r\nkMCVjNYPw4q1yrqsNl35iUCHlKhPIds1rKDicYuUXSzyQ58QQfkmBFXmV3g6\r\nt0LtCme6+gzzOpZFHB3EzkWnfO96YtxkWgQxc4l+3lce7d05KbvJWQgnPMsw\r\nktHu1NCpBv7+7EMyLSXMVT7oLbJ2Mm+3hkA=\r\n=dpmd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679515837000_1679515980463_0.2268054800704813"},"_hasShrinkwrap":false},"1.32.0-beta-1679517005000":{"name":"playwright","version":"1.32.0-beta-1679517005000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679517005000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f622457b33ec145d45cbf59186511def430a04ce","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679517005000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-x5qypGJOYljhwFKnp3D064qdoZGucj+5Sh2HD1+HSZkTK+rVG6qNOCxRCWCvcpMZc4Y9fvqRXhe8aUQ+rF1mFA==","shasum":"056edd4a1005a2f4858931c9f75daa2c82b51540","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679517005000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJLqqo7xSX728anKm3gu9q3DBTryCTgPWHBVnxBmh1aAIgBOy7v/8fHn91PMaYljM9DRCy3aXdZwWS26OS6oUwL1A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG2XnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEUQ/+OJvOYNocABVYLUsgP0s2An9rHh8ZkdjtwWQts+6wf+c06NES\r\nJNMLYM+H4FIazpX0zjsVE7um5zvDKOYTNDa3alGnRdZ0gabvPA0BvLXXoVEF\r\nt9qhRCiOXXJ9l/I6kPwj/MCvUD+mLNCqi8OE8tcnIK/IJVaAOZ0AKyFYMSqq\r\npYlB+124j6qklOAYgf/3XptyJq3WCzdb/PEnd0z7u7FfHE3+xJ7WD0crUyYz\r\nl7B2by6Cm5YNAi5a7z1WsC6U71ttbIoOoM5Sxf1oy2vMJ+n/m5oJds3r7wjb\r\n0cLgMYX5fOvGvB6kgycXfqpg3AIRnBLXGeJ2H/Mwuz9ZZAzOhaa7FNzVkgqJ\r\n6SPuOx98F8caUF3zs5ZfZ8KX852mOT3pNjUa5/DywaLt3/Drbw70ftOF0Poa\r\nudKQIy9UuksxAReSoFEu3f62EYYzrHojlXNZbRZ1BUGK0DRvVDBfkt5Cmsd8\r\n2f3h5wNQwnQyKtGCBvo1/whD1ZwEPX0/sIy5BJ8fFa4X4/1RXDu8Tt096klR\r\nZPUIMZYrykuHgPwS4bRczx7OvvbfJ+KfLefV1Z5A2tMVlfvyYJIWNmIvUeWB\r\nasffIWUgOuoYm7G0pw5R3Ap1dv2kU7lYRnkwIiOyrYB9O/P/09MIF3oZWDK9\r\nPj4WlsGL4IUbPkRUEcqAlUa4pSNEFqgpcaI=\r\n=MruB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679517005000_1679517159386_0.5611203664088653"},"_hasShrinkwrap":false},"1.32.0":{"name":"playwright","version":"1.32.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0"},"types":"./index.d.ts","gitHead":"f622457b33ec145d45cbf59186511def430a04ce","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zQVzxTGoC/ak2Zu0l3CeBGQ6z5oOka5ecUOk+5QbmAerih6CaVsjY9BjjhiN+UOImd3xLiNeCcmLEWcXlz1Dlg==","shasum":"963bfd67d2e97b557154e517e228473ab2a7ec24","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0.tgz","fileCount":9,"unpackedSize":24201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICtaSirgfSDthAC+l4j/TIMTwYRqO6Mv1E/GSk3RFiXkAiAMbJ9QD8NkhDI+WmIdmJE52w/Agaw43BIgfCWFk3Zqew=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG3q1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqW8A/8DfTWZGLpmxCIIWPq++Yyej5yNzFCwfrxZX3Qh79ESeMesvMp\r\n29+JmbVuSS8x0OGrgdxj30exzavIiKMvEB1+9pmHM5jE0TNbcWey6DwBk2aJ\r\nFmsnW4DDcFtNW7aLnmavY4twsvp0ivQcCMVH0fJf1MInkwm0YSuQ1tY4CA88\r\n9+CN/Mpl+he2gz4umTbyEB9yxWFChA21b919mIz84UaknDIfFL/VlOPTbyXT\r\n6C1Ux73MyVzf42ViLAcKRQCCUGC+2UUCtAuSKdGuqnNQv+3yVwwVGQcNMTu6\r\nHl2ELx4rVIwZbhNYjenvCPOHWA+0KDXh8DgatID7vle5q5OjT7JgxJ8DUF6a\r\nFKLuV77zMQAlnZn/K55KZwYU9riq156lXFDoji8fi5DR9qiU8fDdk6beN/k6\r\nKAfhgrZJSMZCdIxMDLV2Xw0fd7/SlAMw9xh5/hw7RmEURT3laWByk8c8Q+0X\r\nSFnFwHhBM/1trJ+AL/GMxt5TCo/GGp+73SHcS6a3Go1RoR6EEpQFUxQwq2Wx\r\n6ui7xKNVsg/tL5h9T9df93RM0aMgw5Q7daqgTPIjIGStVQFFlq3RSL4ZVsgg\r\nz9iLHswIaDRcHFdhBZE2/h46gX5zgQsXO9bpR59kxhPSEzTkVcAYmNeTh8Zq\r\nnTDNV66lR72PwWrnLKQyiVPExJiCSZ7/TM8=\r\n=9AiJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0_1679522485313_0.15596174491897385"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-23-2023":{"name":"playwright","version":"1.33.0-alpha-mar-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-23-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d10fac4f6a0dfeb3577eec6cdff7ec3bdc843c01","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-23-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-q63Ojzwsf9mUsMc2yy/SldU4IxL44l2DAiG+Hak/BNLp63qjaGZSny/buCPOz7CeV1UvZKgl3RyfHwFF6+IPeg==","shasum":"8b364748b5fb1e7738efe8e4e636de3e695bb696","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-23-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDFw0EJB8HDJAlv/P+ChWSd/U9WdDbeoQJVBH62NeT+AiEAtXMPu8IqOfJgf1/finBr4thK43mahCSjbicW6p3Z88s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG50aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpxSw//YedeHTH5erKuea05L1XOvfdqAfrV2otmVZzReOm3cYtW+apd\r\nKH6aNdyk6ZF/11LgdNGzLLhXzH/RDCKxVyg9MW+AtA9HNmKrZuUTt8k1f2o+\r\niYl/jKpxSGhal3t2yWNq8+BpS5cpR/RIoBoRnBgRICqhQj0im3YL2+fTYgFe\r\nG0+W1BYXnDj6JbLqWAHyDl3i3Zw8Y59cw32qzEvkU3b+vCrcmbUQGcQHPCb8\r\nen5TUv05TVcNqswgpbV5kY65A3eJ8lC/FcjjV21KnC13ogVWabBfbczUyYyM\r\nm+v2SeNjTh9dJA1BY5u4uPWHvaWHYhuFRtdC64Wqv2U76SVQMXEjsCOuyCoa\r\nymzfE63gYMMzuldV/AnhV77F70OR1+ZGgiEJQ6XpmPzwWscmYB8MiTaIfWGK\r\n0W/McXu3Ln2QaxncQmYIaF52y628yXck5d7uDyqOvpQYCCLtbuT2hxit3Ra/\r\nzI0PNvNXHYgEBbmsalTSjD9cFIPWFP5gPcKhKVKAUiqJUjtZe5ivHNVMx4U/\r\ncg1I5kTzZSWx6a4Snytj6ctgmnbm2bMldl34cqIIU8Uy7TY/3A452emhIY84\r\ntXBDUmzwx3iFTQxeq5xNGPhAwFNlm1on0/36TGy9jIPuMcuev6Ti97gAyOpZ\r\nA6UJKxFfEEToCVhciM/Bv46qxrtPmDeM+F0=\r\n=z9VU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-23-2023_1679531290681_0.615955602432293"},"_hasShrinkwrap":false},"1.32.0-beta-1679596316000":{"name":"playwright","version":"1.32.0-beta-1679596316000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679596316000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a0b4bd178dd8ae75592fae421d7e1b352130bb8b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679596316000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-vcT/hof65qzv7+IZCwV4e33hr4mC3jlTOsAUlqd2Ri0WqY8Wxa2tOf7SguE+SI2BXWZxg4mFqdU9eJaJSqx89w==","shasum":"a5a4bc9aa243a6f25d2d574218b2efe5809cbba5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679596316000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyJw808kaolJ2BvdSjjRPSnBOnP8J7NgruWBJhnCY25wIgT8UhVCXu5DLaghRedsfwc9xbtW7Va/B0eY8Z1tcayO0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHJuyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqvbg//XOc+aCUyBX4zIOYd3eeetFj+USXDA8BRuc2Ju/mc3H0H1Xjz\r\n+mWN0CkHBisOe1ZKCRXgpfvQceKmpHDNpH7tu8sg85cXtdWu4TqIsnxTfZ/2\r\nzY7Ke3PzdBYYlfbzYihhMdIQaGXR1rzhqp6n6pYobHyzosdCRuuwI73GwHXq\r\n32E6TBZTliyWpf6HTCnq5PBu7uNPQb3/gRS9YBdVmKXtvUwL3OImfg2Z89Y3\r\naERRRTFXByHZAs4XG7+oZtDJ3bsHRaUBmtF2ViFNdLJcPRY0dklCzYBwhAVU\r\n4D8fsM1I6Rspytg9RX/VMAoECDuNnys3plTdklFKUxmr6Bm3KlgxRSmBI/d+\r\npfR18Et//lEe0CssN8hoQKpkUDJVbKbJHY0NANF8yG4n/rwuZmvZfhZSEmyP\r\nqcKPq8ktk+J0rKrCXsurxsC8MfvNef2e9mQnPhDQNMG5MKuEPNzL4MOvZ8g7\r\nyv7yC5oBeAj+1BzLwWNQOkMNog2Q1/XSifR04ba/M3Xr1gRh95/crEu3LhW3\r\nZGCsggnwMfwTe1kz264wo8MFbTC+iSU8Qx2f9GJ81VhxwsG3xSZ7jqrvKfvo\r\nl1mxjPVTCxmOVzbl+l/T5b5r7GE4Kw1lk0Y8FsHWrUkcHssb9Jo28u202xUq\r\ns5GCB19/CfxeMa5L5JFe+5vcvJwDLKPnCpg=\r\n=Bwbh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679596316000_1679596466626_0.8356177137520329"},"_hasShrinkwrap":false},"1.32.0-beta-1679601059000":{"name":"playwright","version":"1.32.0-beta-1679601059000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679601059000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6b2858f0fb2478f014e4f3f9e25a9285cfb568a1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679601059000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-QoKiFCgklZ4jri1N14jsFV6PbzGWHijOk+NsanldO5752bv77ExdfcurygPXo5kKYhkMFgHdJrgzGs6+CFOYeg==","shasum":"72ff8c44f46c498ac3c02e9a1cd3ab929b888c85","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679601059000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICv+d4GX58rWe350T5zqvCrEWCyFe9loLmFEhQ+g2Z+rAiEAmzjt0qfvaS8FlfYWZslAbATShseoPSAHdh8VtgHZ0fc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHK5fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5Tw//dI2Lpl1w/GEti+g5FE9ZnirF6UPAh7LMrkXeTf81oZcFUMsc\r\nfnlxKifoxPaCp9qrE05Pi9e1K/4CJoKxW0HQ82JHM4IDnHzzqmNPKbDZbjRs\r\nCWk/eW/CvntZafjBJBxDFDzDhJ6te8J8dN2cHtJZ3q77NdClQ2pxzsrFhxdm\r\nGedxNaDA4Eyf8nCQ534eWFrukMKNHWmWzxY9JovNana25mw8IwVBPF23BWX3\r\nMY150zLpLfQQGeSVm8GMNorBK5vax90EMh6i+zYr+40WKdnr+FwwYHaJzAYJ\r\nxpolOorDWEiVuGTxj8pHcu303vNK5OQMdKRqFvkucexRTCxfcH4K4H1tP99B\r\nVUs8FPDjnP2t2lFzdoMauG1Uu4iedcV1aqW1MnI9Dw5x2zTsUHaVOEk2ri5R\r\nIkWE7gBUdNLL4EvlscKhI4JoT63qrha/ikGBpdd1R3S3OVXoYKbmBpiBIgxS\r\nz3FWikKddvkn/jGcMKOGW2Or9j/PNl+a2pHPrqcvbWVRe9s9N40YonoGxscw\r\nsrhKTqnA+no41rzjgj6oxYGjePYzpkZbj1cQWuozS9qxIBZgaYpQ5LsqQ6R7\r\n2pObyIqm+O42VUFZVTaBeySScAjPwFV+Rd1/QamN2w91lGqvmJbbr1RgI6PX\r\nC6ss3iF/SMqq9T4oxIb4w8fYdQ9v9mwxv6s=\r\n=M/zX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679601059000_1679601247089_0.5758132859577176"},"_hasShrinkwrap":false},"1.32.0-beta-1679604230000":{"name":"playwright","version":"1.32.0-beta-1679604230000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679604230000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"72382faddc6cdc4228fe3614b32e910b1454be1c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679604230000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Oxq8Y2/RKaQJOXpydYM6X/Lo0YubFADU+i4ypi/HSqyYRCyE/65o5WYBJ+KHkbuZN7bhat+Dus6QUCx/oQawgw==","shasum":"f3bba1d27d83cff86bafa4bd39ebfa1b7efeb469","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679604230000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCniKt9TDo4zRzsV42wgA8ZrEKDVoV9Bs0wR9hZrOtOmQIhAOQRzkmDOW7epuO1YLB1cpqBzDyOi2Gm1WsUBeG73wSe"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHLrgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoH7A//Vhwok5GPU7izDEtI8Nd3ABdIzjZd4mKEAc9EdnBoVP9yZdNl\r\nrEafswqJttSu9twQk5KSQ68IZvAfk95/56zVJQmCQEP41I2ddc8lAqEer/eh\r\nOfFtXa8HddRK4+356NieZ40Bwf3as3uss6rUN2PEBGPCD+ETP7SohL3jfgfc\r\nf5y3cg0NrWZZaLJS5pbOUoPxKaUlWOaIErxmrKC8FmvhrcBq0b51MhyhVhB0\r\nsaKeMu10RoprbFDw1SI+NA2iUfTv5SeN7c1gtmUhhbTwvLHUOX50qKV40AcY\r\nGwMVh4wRAPm+hUkXCL18IQUT4aquNWINYy544YPCUB44KkmJDy6Z5+QDy28g\r\nNLxejho9flAr5vxOnNwSpfLB5Dai6pfM9qSuqMdu8b9dFdZicwUWN7IVszsH\r\nodPqI9SazBSaXyzp/RPN4OJsitF8yCuwAwUPGjPKRTdv19V8/IbfAkZi65yl\r\noHS6+IZmWnuBjn6ymZpyv4Y6UPOzSJOAUh9F9NHp7SFqDmpcMGmDHyZp1m+1\r\nNn6RKB8clWup5nfDhxD+n+L+F0aCxPSwIYRLxiHJDtEWdTcB/IypLy4fSmoP\r\nmW62+5FcGwAl2EkglFhgmSXqcS84pTCSxKfpzVeqpeACRXKSHdm2dGFPMvxn\r\nKOmO+b7jvzrWApForicpmIqONrWUydqoeaI=\r\n=fg57\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679604230000_1679604448067_0.19881972500219125"},"_hasShrinkwrap":false},"1.33.0-alpha-1679605230000":{"name":"playwright","version":"1.33.0-alpha-1679605230000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-1679605230000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"054fcd39ba9e78af9377e5fcb75923a4e523af04","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-1679605230000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qiVMQyrlBASpWcbLhzmYk8ZqJiw3zRQY/tdpsiyQ2/n6u/Nl0FgcvrL3qiEN0l3ja+kSUVm0YYKji2Wf9MC+Kw==","shasum":"eef652751b80e3a804528bd382113a921ac39612","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-1679605230000.tgz","fileCount":9,"unpackedSize":24241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAufDkpqxvUrGtTxgC0enJzTJd+tJ1tq7SxKmkuKKOhvAiBXVerwgrdvHsAx8Rx/sePxhx4h8LDWLx6kAEXGQCHM9A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHMRxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCUhAAk/AywIOcb6xr57dcZau6MsFBlleHf5WETcF9YQ8raNRhHr6k\r\nm2hXtX/tNcl1C7DfWaiq+F8ptM/Pe2V7F0I8qwS18tnnrRg/GcBCV6f2Qgc1\r\nYnZlcIxDci2bFcYUW+JFz7UfP2W9ZQzjhrpkzgaGYy76FJ3bFb+O4i++9O3Z\r\n0BGzycnETcYjrIQnOrFuYmPi9onPwHEBlxstHyQ9IYaFFK2QmQHgL1ZkW/NA\r\nTX5s1G1q9+l1UupMcEVlyrlhLwIpTLZTYbawNxuhou5cx+U95w5didjk5mP4\r\npamzYT+GzH2/waT6Tsm2UDwbnCdX2nzgakr5AG6DNxCDvFHjOJ3CcAk8cXLx\r\nrFuLeyJAEheE8DL0Yk7D+EEev8/waqfn0WloBFiH9Qvb9e94Ynr9gQYKqOIu\r\nm6ijIS9k89AMPgSdc5r8KwWEEnDgBorM1NmBXizQe0TdH9DhNMFpEAhnr9OB\r\nUnfG66Zm+9+wnvaFX9zBHQYS0pzjfD+tgzLQMEp3qQjgxnsLLr8/m2LZFv1T\r\njwRRHlCi/crx6BRKQ/aScR4Ts82BCnrdzXIk8AdsowTYkFBY1PB1APe65kpl\r\nO0z+gp4DAEHJnnGAGsBb1noSJvU0OMEkdCzX9NxwJrBpHJfS7aA2ivhj9K6Z\r\nnMqCPuPmvc5IRQ59V0cd+Shq9SR4cbayCoQ=\r\n=1LWx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-1679605230000_1679606897703_0.14558497291642514"},"_hasShrinkwrap":false},"1.32.0-beta-1679611698000":{"name":"playwright","version":"1.32.0-beta-1679611698000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679611698000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e169cd394a5b8eb940b7c7a47b21c6e976b20ec3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679611698000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-iv+6PWRP6P1qBoXzQUc+K0I3iRhv83ftd4Zksi+QT+XAemyzq/plfKFD5cRM/wWwSlmJ6Xo+CaiOKo2i+oR9HQ==","shasum":"61655d2aae48277117c07e6e3ccb82631089fccb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679611698000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSREckLq/j3F/c5E1uObJDNnFSLb2imXLgbKvRpitG5AIgBxPuq9YU+f2M8ABpIuS9B9I9m4Nx0+B8X9fuNSuWC5c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHNffACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrekg/9F/VBJxlR1yxTt9Z5esdqBpcqUdMcVh6J47am16P98KByEqpr\r\nlahJpioc842rff+BiSJV5qRiTCnhDaPrVAaCgK5+kcPZT+8jNQJYZJEBa2mU\r\nCRJx0H+iDimCHhD25fRp1ED9j/mhS2PwVQ/zqYbih7Mfmj9t5zDWhSb+qBg/\r\nphebDL7YGKyLFvw90oVSIMXX+wGI7yoIv2jl6b7Tya7nVg9cmPEqS42OvNin\r\n+5/iEYuAUAzwKuXo6WCXYUsVDwY/OT6KYRLQawNLH32v6SeYOHExa+yPr/dL\r\nswE/exEokPaByYweC49LAIUeeo2rby9B8HiNTVu4SVK84sfmkd9jnlsFNGhH\r\n96DZrIjX7y8qOSR7TUmU/WNddz+Ih2Sy9eBxg7q4B1HdLL6Av5CwAXvEYgkd\r\npbNBWydaXI3Of/KWNs2Zv5qV7qv0gESZGhhMUaC7DN/Fa7q0WF+UOmBgqOMc\r\ngo3k3Yp39q/n9UX0/hOQ5LEJSPIOYf3gGuG+ylLiDf5LMYZb2lXE0CUK6Hyh\r\n3nOuyLdt7xnkQRX+uLpApzu7+YFJ/6OxYEMGME9ldW1JJSDzx/wWS8U55JK6\r\nYbEz5Xfvs3RRmMfmzmgUJsgdzDv3/Z6qEzxS/J+2bb9GDBlyWi3QNYeitp8u\r\nODPdzZlg6rS5XsHnjn3gP0avHUgQn8vpJd0=\r\n=Xm4J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679611698000_1679611871314_0.7319091034427361"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-24-2023":{"name":"playwright","version":"1.33.0-alpha-mar-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-24-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"86af908fa73db3d0cfa7d2856ac9c82364b5ab37","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-24-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-bjOh5k6iHhLwVpzdW70+9CmFZ8ojgjbxp6Fq87REi3kbYbeptKmfj2Mkrf6hFVPfGsdmPMCnfLhtqPTCUDjx1Q==","shasum":"e16c4898a49f5b6821ee9aea70a6ca5ad3778e6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-24-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyUz7pSn1idx6X2kk9QFN5JapvmotcsFSawS+uRFgshAiEA4mTTQt7+CiG3EG02Z00VbdgUEZXyqH55Rc0uvW90JLA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHO5iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQpQ//UclwMzmPwNSaVEiP8kL1DkhdSIYojPqyhpI7NI4SKuK1MsDP\r\n87kcB/Bq5LA3el3TlT7cLuNxZ5LTSdiuBWg6q9y1oPZKhn/unvddINH9pzXT\r\ns00kY1BUJndATqWvR8mtj5SLKp3UVQrQLiMpV2O+/H05EU/H5vdnx85CCY/v\r\na9E3z0ImaF7JdejA4taxhihRekXL2p0ZP8WBw5ErnIcmyRhXTQRCxQTkKMv1\r\n46h/A2LCGyTMbMxrpj42QGTdsjNudtpvJcPhiYoobxDWkxDlUcrSW5n/RXIq\r\nXgea5xsijpyVtD8+cQNK1vInggC5qpsnoikMkNUBQcpey97ntJW3ILVPZIGd\r\niAiDLvOq9aRZxrY6FKKDWb+RErwPaCz5guE6ptjyEwGCwYdo9EuCKyTJvng9\r\n8ADdoaQ8JRSByPHNqk9aWmBdWOPVSQFur1lOZD/lCnXDrOu31ANQamaVmG80\r\no3JIcnbZG+bXT6S4rOfa2iwQj3oKgTxHfDdEk6jhkVuFFd3IWk5eRsm4hEVn\r\nIeS3HJOCRYwkHe3HK6Vdi8vX9uAUinNMrMsAyhz1cFkI3eL3QM/IMqdWuLHY\r\nTppG6f5WvdDSfF3SszGTew/87eeub9+1NRohnS+k1wMMloCl7c0qNOCxLZEQ\r\n4EmrYanUlWhzdZF0S0jWyQCWVe94KFwaVrI=\r\n=UFXQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-24-2023_1679617634190_0.3798042388172387"},"_hasShrinkwrap":false},"1.32.0-beta-1679686655000":{"name":"playwright","version":"1.32.0-beta-1679686655000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.0-beta-1679686655000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c7d84f5f37e4140d2f412eb3764a355ff429a0b8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.0-beta-1679686655000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Gubyh5X9ddpaAo7cdx0eBVeY5lraaTvRDhjar5BnvBaHcpfbXDXMcaFftlXTI2/qauFx6L3xK7jMTErhwCK1Pg==","shasum":"6a4ac54cc01942a96c54f872e090484e34616e23","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.0-beta-1679686655000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOx2w5N1yhUpP9PRWGOltwA7PFgVxhlD3vkIJ2wHeQzwIgAmPzgGYQ0de6bSW/7gUkrZLLAm5srSD6W7T49yw5uhY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHfzMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolghAAgcgDDvVjI5xx8SrfZem5dS/eEhglConSTGgQKwgZkGgcd4rs\r\n+4KtRTTQ3qozhLQ/T6mC8i/YAbMV7tdOPf71x/u3ORjG9aLRW0nhUuiduHUQ\r\nhvvMFSOuKDrcF+MZ4a0BIdDqftB+n4if3J+UA1uNRqUWIceIm4/9qE3XYGu0\r\n0PtoIjz5ufenVuvu+isgQnkexxyMQqVNwbFLxendbA9Nu7xJeu4tyImZ2H1t\r\nSagT43AJCapnE1S22R1/4psRwWZpkBIeXMU2dQrfEmfom8+ZL2VXPNytQrN2\r\nxfrmfF4t4e5R+S8NybY8+7WwVrwxWatdYI3YTh1+FHyEs6detZ3IBglNEyyN\r\nZVqdNkqIevfz5AXqtPsTGWC9ibD6vAu9Mb1u9BOEWJQ7nJ10biXaALfVr7gD\r\n25rGyxm6TP1NzufWKugB980DA8MUuV02p7eRVlZxR5NWkh9hkLi1XYdH/dNo\r\nbProdz318a45Ad1Po7/C5US2YmqH5ENNXHFHIirVu2u1D8qg1MPdtWIFptd3\r\ny/rXlNo8SQItf2cfPjB8ENMBsioLLf6DfFpm1Gg2HZvLY7UFxRFOsE+GthUq\r\newwxRD6pyYP4uSvwuL2bwLlxwNBAu8UyBFDRaB4VbO9xCSPntPriRIWlj4xX\r\nnmA6DFR0Fv8FW4JtvuyPiJiaEsJ8n7WuXpc=\r\n=Jk+K\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.0-beta-1679686655000_1679686860493_0.9727278719845631"},"_hasShrinkwrap":false},"1.32.1-beta-1679703607000":{"name":"playwright","version":"1.32.1-beta-1679703607000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.1-beta-1679703607000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1869bd28d6d4936c2ba1e74e454dfe18e1c825f6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.1-beta-1679703607000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MevlFpxZJWNonkVfS1YoQFfh2oKW+HslXTEyFF1XNmAhKPrkhAGawbXwhYQEO/R8+dojk+NjoREp2j3qICAOng==","shasum":"ad0a53e59eddf026699221d2432faef6b1f8cf50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.1-beta-1679703607000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHtPn9R8mXfvDTCgUeGLEPeNKX4AdGgcG7jhcL2umVpHAiAjB0UgEf4odMj9rkC/WdIYE2G5hoTl9vdVCKc9Rsfc4Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHj7tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoq+Q//R3fYFuQcR0HSLjG2YNhJTIfrzUF00HpPPndr3hSkaWW48gQd\r\n7RD3b39qcMiwdtxgu4zizAvesH6wYuCFnEsb5GrULVq1syNdoy8GAcREvvqf\r\nkF+fP5g2MwyqRkZwn2JgiE2v6OKQh5QD3zzW5wEbJtt4C4pAF94kiRnPV7k2\r\n3McJzDJbeiiy+h67MhAvY+OuOtg3x5wvacR0R9gOPVw8pnCep2Zoc3lmJCOZ\r\nElmIAQjOc5YUvK/q/HiJcBLT+2XexB90kuGRK/UVdK6sAOrp1aFLxByVswiv\r\nj8TI5kSMkjRzzmttoayYgxS3VW2wgbvKdKLXfkDdZcXmP1MUIjXOd+kbDFRd\r\nXuUm/6SGfawsAfkxU82mzTn15CqaBMwyIfFFeCS9XkKRWVGyuUUvdU4ddaLM\r\nJG37bB3zgdsbCA0Ar/bFUwNsZpgR5b+3C22glxaklZcy26Cwsfu0Gev98NZg\r\n4qBtvwMPKO7WNMHQr/XPAi7+tveM+2w4rC9WH1sEO2q/CirNJSpBjWwOHQMw\r\nIS9kHJGLn/rUvhQUZ3e5GK0GYf4ZykAnrETdAMp2peXMtXJGlUIxydBjCXVo\r\ncEC+BeAXdW+2+XcBZpq/qpJ2bA6qi6S8pCiXkC9GYF9/D2HZ98dG+9HoJm5b\r\nxRQDY6XFBPpOQB26qjYqiURILlZ00EH1MaI=\r\n=q9i8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.1-beta-1679703607000_1679703789174_0.2818381119674349"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-25-2023":{"name":"playwright","version":"1.33.0-alpha-mar-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-25-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"add948cdd088f3a719d307c41bb61580eeb5124e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-25-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2oPOAexao7lPO3QoW+z1wbJFvH5ljhne17nBK6F183pNKFZbziX4ARnJsDdQoYoQz2VQNstssI2uAE33phEAuQ==","shasum":"60e9535410a038bb8d7e632b5fac5188f1ca1d2e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-25-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBu1lXnh8Q2E7NNq/OsApuJ8fUCtqYg067+auV0W+5VgIhAIjvz42fhd8MNuTqo70Jj4JojNhfET/OSmmarl91IUgn"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHj+bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTgQ//VTc+luwpX1hmuXOKNIg/6Ky9CgxPKHHZZEjzbzqDyHkhvGfc\r\nZw+QwWE+YlePOfE5pEwmTOvtsa32psx93IUEvK30/FUFsZmw82gSt1dA8/sy\r\n5tdfFAZJxy16nIt23gshlcklHiy0VPUvA1eQ0ayWmmdEHLLPg5Bbl9fZF4Qe\r\n4IG2h6Kh7UYGh21vV5nuuzmEP5e5e3AXWdM8sdQdY7sth2sfQI6G+JCKyHzJ\r\njdTiL101NYB9hoL/liaf1BNabQhTuA5uebYS2cNQe3s/qpefaT1PhwtoHXfw\r\nxZCKToAEfhfm8Xjg4VijaXqleZYuZdRdhAESkFw8AGNzHsAY7NV4PTYG5awp\r\n5Abvx+kLWWoMmWl7yStj0Izhiixoi6POBKuTObfgpwk3SahlOLuUcB3Wu+am\r\n1AUFtTRa88JgJwqUDhavO2mxAUE1tvymc4kScnap9OEykN/EG0yntUIy7Q5Z\r\nrS06w0ALGjsa3KvRtxZwnL4DLJeuXE/vBZ29O6pYxMSeQTShvDW80R0cl8KL\r\ng/wljKf0Mt6kXdntv8bfchXOzK/j6eG/7ICvkY+w6mnBe7ZpUfvEUzcLt2P0\r\nbk51tWM9eWZoKcb7+Uh8p87S14NiyISPLeSkC7LgN9KUy4FG/VlBVMFyXZol\r\nvSOgSVUyilUAU/IibD+XYH2AT87aSqw47j8=\r\n=lVBO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-25-2023_1679703963443_0.3044860349879883"},"_hasShrinkwrap":false},"1.32.1-beta-1679716636000":{"name":"playwright","version":"1.32.1-beta-1679716636000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.1-beta-1679716636000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"847b546794c0bb3fa8cf9eda8561fe88ce774bb1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.1-beta-1679716636000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-yPXpGyCOQdgbwVZBZFtYVRNhZ5h/yXBjVQ0sRnNBJd2csRgt+vO5G1uJpYLKClLTbMFnPxfAIe9XahuBjxROiA==","shasum":"02403ce39d11fc329f58e886f006efb260164ea5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.1-beta-1679716636000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDKwm3NQpASslm1KAVwBGTECz7OshCXF9KzCpn9SXScbAiEA5+g4F3SHGrWeHdFVVSEobjkWBmeuQbvTZbgxrzhDSMw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHnHFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkKQ//UYb/dBNns9BQIs7Ft7g9+Hw4R23CbSlcefo/lykuDxfbGh+Y\r\nX+CDqLNBMAAR+7R9wC76YfYLKi8DSXl7ILeQGpjJHT0Sp5CRW/FXayw7hZ9C\r\n7hmZ1c2tKgP94XDI4a40WC6cTeA1EGJb2m/OGfCbodnYkAX1p6ZQ+VSPCsD7\r\nPILHoZv4HXWXOCMTy2EiIT3e+Ty6Vmq0YwWuw4dVvRhsvf0ukDm9yeT7SsNw\r\n2y8UkyHT0SQJpVp2Gf8LU8lv2OIG1/rQ8s3342e2Rwv9qyxOi7AIn2jUrGZQ\r\nc3AueLZ89/Z1iZ7ebu2sw6O0NRDjhsheCFC6VcD6j1yuO++KGqHS4EJLBuMi\r\n/4FGspDqcEvpKxUxfic1bT+nbdIRsoA9kusP7xhpEzeY5IcZUksTZ5Ga2gx5\r\n9NL7unVg4/yIvSFLERNXg1xJ/1EXpv78Pc1p3t44iw/MVAUors04xu+cZwBa\r\nN+17w/nrot1kVmO5v7jwAQaF35ksTyaIJwVeEbVvlWdO6LwetiOeoMOx+Xq1\r\n2wctqlp8CwvsRxT/ztveluNQjyPwPqBI+3Xxzz5aHqIOwP5Ot7nQNEJHHfin\r\nZYRd/6BtIDT43BR7y9wQOQ1vKlw//UpEt8cFb3d2maLOMNufHDSKxx2XG3es\r\nO3iAW8HAisNyK/QNo11tcmppkAvMe1goTw0=\r\n=P+vg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.1-beta-1679716636000_1679716805767_0.19595210267593766"},"_hasShrinkwrap":false},"1.32.1":{"name":"playwright","version":"1.32.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.1"},"types":"./index.d.ts","gitHead":"847b546794c0bb3fa8cf9eda8561fe88ce774bb1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.1","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-GnEizysWMvoqHC3I9l8+4/ZxeLwLNdJJG76xdKGxzOcIZDcw5RSk/FKrFb5CuA+zcLpjIM2p9eR9Z4CuUDkWXg==","shasum":"c48195850740fbdbd7702f37e5a891b13259f689","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.1.tgz","fileCount":9,"unpackedSize":24201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBasoiBC9HFEMzI/KkaTYjqAJdVDypJeqj4t4xx5RcvwAiBckaa33VqMrsfgJfm3PR8nvyG7C0hImRmzGInRtTVioQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHomwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPSw//WwpjJ2ImD2taOsSZSUts/m61n+o+dUt3DF6IZjDpetw9Wv9D\r\nDO6YNAlh1lGS/Iw71DoqH0/o6PWBvx8YzGdb0NuY6wiKeMJxjuEH6rtJVCoF\r\nPiDYWLAXkD/Y6r+AdN8p62TnnM5eDRkyrvXZNX+pyFVV6I801ebiWt2QuMzm\r\nV1gcw18lfFqU6MjPygP4WSpInTJ9OqVHEGkbUDzAa7mFzdQEHegmJ3fqqOOJ\r\naha9zqb3Q2GbZeulEk432l8YWCCHRlCQFKaleHzV8fvm+4pRuv88QhjJTYiw\r\nfDVYj6G/tKZ42TNibpRVYnGSLBQQdDEXpFZTWxeWz613GzaUQzE138QJLe/q\r\nlALa0rDirW+05MPDs86+e+O67rvRkqSsXrYL77ljfEHKN1EidaqgJcXnQRhP\r\nkDo7bWcd3ItviSVLvC33/ypwJ2f203NIb7cG2/2M1y/gPvZ+DmFnleVXzK4p\r\nNj/IDSIbl96jSzFtCcb58lUQ67WSNEBAEh9rgjc368KrZhDUgNyxUSFcVnSH\r\n7rEDYI4uKzWm/DrNLTefqTvXcDAofTX8TbanbrwgyNJlbbkwrgu0fuvubRz9\r\n6u9VEXcRlEfdddhAwiu7w3/Pst9nCVRlgggHi15t1zYk5W95DYYRcLpnoUZn\r\nO5HganIlLa9zHmCbUU9Uny3TXzLJ7F5Zq+c=\r\n=FVyS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.1_1679722928668_0.8785033352472955"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-26-2023":{"name":"playwright","version":"1.33.0-alpha-mar-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-26-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c3d7ffb7731e028d0c0cab6b778be25e326ea51b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-26-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mEvNgrdOfdmg4iFh9FD5BrtARNoP9QMk+8knZVHbJnwjgwvijB8upMgFieq6kGbNm3BCR1Dm4q5gDosE741KJw==","shasum":"fa7f74fbc0c70268c844fb6d811028da0ffd3e45","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-26-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCF4XAxeqc7eHrBCoRWmhdPixVhf9MXqm7mjPxosKvO6gIgUVTw/jRwqH5H4dCWZbxmttEaEOOeniXc7cXY7d+5xeA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkH5HOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3YA//Xa2V42G2UHuLz+0/Uc7ryX87BnKhAbcqGGzGpwrbxah/Gk1n\r\nJBftsXhhEq7OjnWzzWLG+ORQV4jgS8IxzKu4Hi3GcTw8A62cGDOC7J6UH5qI\r\nxF6I4gphT5EhtC31qBH/nVSl0BW/SDOeK6qyD82/K20EF1VSKReasYBhTQzQ\r\nxhRll7n5/lVepJy/B6u0PCS/zWZFlO3ogvxpmeZMxpn4uK771+q+oTUv4IJu\r\n6LlUOvJWR3Lf5AMdgIcqTlhUqokpN2ClCJKLFROytX7vNG1rpOlNdAE32rD/\r\nBZhvbLp/v05xUD6wkVcBfh/kdBplAkgx5BiD7RQSK82mi0gfnUCmWwIIHi2U\r\nasvV3qRIJyZqitYIScHaMoIQF2hWZ65TN5VPW59LjSvDgk/LWqOk2QnkQbFz\r\nrlyoshZMAxWCYmmA23P3CLGeYLKoTqNGDGIdmHem1fxJReBj2Mjo7RztDrWV\r\nNtldV46guh1piD/BlTiVOFopoazinEg34gCEru1v/LhYULjk9eOjleaJjTf+\r\nfpo+lL2keOOPPQVz0bh2+djBXoHQxPpqKDW6NqypblX5MmbF63RvU6Cgsn6N\r\noep4JF0yMLFi83uiAwOzCsOl871mAbwYls8JbbCX6Azm97zItF+fvEds45bS\r\n9KoRIqo73XO3OkI4EzFlWeQaTR7D2sR5So8=\r\n=iSnT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-26-2023_1679790542522_0.25137103993388465"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-27-2023":{"name":"playwright","version":"1.33.0-alpha-mar-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-27-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c3d7ffb7731e028d0c0cab6b778be25e326ea51b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-27-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-D/s/3+ICf/zgcMsEmQqJXVDb9nVJwrNaqiFJgnROqOpbk+dOEkLoA56w5+ko+WXWdixIEACkXUnKRYYiGjGA/A==","shasum":"4124ee1f0a3fd7d5b819b5a1b49e01d23c2b1789","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-27-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGXhi4Wyd14SvLFk55lwIU7wSYMhyYkZiWKDP85rmVVAiBg/47zBfBdJKa95Pr1Tpk1WYWBr+ogk8GPIEEUFlHwpw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIOLAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpH9w//dpSx7B/ykAKMPg+JoMGKHW+KLyJ0JKaha3GHMLSQdMqfrrKG\r\nNusATl/s0LbRhrqbAUW2C3KLu/9oetdl6AeS2QO+HpyyG3bu52MPok8m9A3I\r\nGIIkl/djF/IXBC0yGYamOYGl/+VXf0AUQbAt+2T+3KddBwRZMPahoZyYelnN\r\nLsXr0ecw1SDCrETd3E0pbNWK3qzcbp8vw6CajuVEFneZUgoaP9UGuX3Y972b\r\n21XjkH1n/7lh7LN5TFiqCYpJUGegvnVeURtSWac7JIj7DgZRIeWHTnTY1PT3\r\n3168CV7n7J764rdTzEL4yyZwQV1WGnGMXuo5AT8d8uBJguEesNc/HDtXum8d\r\nHrzfxeEKtj9BPrAgqn4c0orvLdy9KY4MxJqNvg+/ZpVkWQESbORY1g3TGlv9\r\nAkF1O8ZswWMvHRlZNtqQypjsmQaLRlxHmp4gYHN7/QHQ0+acgketxzOAfwLc\r\nKGg/hro1MUWKr9CxvvcGhJoaGXVKQ2vl9AFQbYS5Yabg6Pfyvzm/nxCpzQPm\r\nZ2Cag4MJ4DxE6FYc3yo8/VOzIuR9/CqCITPyevPeoXTKIP/gHxxs9fSmkhUa\r\nt6bfyggDAN3lfOrzrUm+7kkx1nDWtv5tBRSiE9BH6RHbQXkWVH+Op2xuAEx6\r\nMF/up48BXtVRFMnhPjAtvI6DESmuhpSCnf8=\r\n=SSYJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-27-2023_1679876800787_0.8421109525436106"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-28-2023":{"name":"playwright","version":"1.33.0-alpha-mar-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-28-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f502c72f2b688ba72b38d456523c47deedd3df55","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-28-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UjjPRL+xiOJsepNvHLsFZo1+izFESfDo0jxlknRSe7BU5GQw2zrAlNXhSOtYjCIfwKc13i5isbTbqbC2+mpNrw==","shasum":"280cb32db26be0f65765b966cb29ef3a498e17e6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-28-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCipxJz7ZyVMGyOdndrEoYTKrJWmCWz5DSwCCRR3JFFcAIgQO8b+Q2l1pLJveBfiL+L1t58UWUQDUDifPy7MtkkA7w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIjRhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrPw//cYSj7cBDHBG75LbPUNAPc/KyohnCBayvu2dTc/Iy9i3hWQKb\r\nZPYi6h5X8QeYQB8jD+JY2GqnT3Qwr+Mn6kAwtaD5qatrkTi+lqlm6guA0UgV\r\n0bcdlKiFAlqs4LyYgNneow/lj7Xw+SdBBk7hlFKQovmWbQ3Bf1GOVPv/9x20\r\nZpACLI3g1HCmp6LyUdQUKDBRZ3QzZQ841WQbiPN57mBHNAQQdqVSEpbNtva9\r\nVj5nbj6hXElEnnPntOKMZiXOtMajKDifzbVLUwBQcYeM1Z2O4DrS0tIqGaAK\r\nDmz9GBJq9Oif6akkXZEaBl4D3cF6zaV7M/SjiIi5UW87lpy+4EED0JdcRB2t\r\nACTRFynio3OrH3YY5F7FnCUxn8dXX0m5ffhfoknDOCFWYQKJRY+iPsgb/bM1\r\nK7EJERS1gY8UM0nXVOlAd38NqjRsr5I1PGXTiouab8vZ//oVkFmu+8YhlPb6\r\ncScSLv5rsBCkXE8e2fxoKddFDv/ova/RLcUdNU1C9eynzRrK/srdhNaPlGRJ\r\nZaLtcUB7JYCFZ0OGS0lIxJFlsYbajGniu9K/uTT0nWh469YDQt9RptCmgb7c\r\niLePrwyZAKkDei6jNsa/bJCF7CH0jRT7PWWXHrTuPThfIV4vGLuQUrRtsOf+\r\n7yx+ly9GJK6fNPLV86+et2fsweKnbxYblmM=\r\n=37cD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-28-2023_1679963233469_0.06091302408857224"},"_hasShrinkwrap":false},"1.32.1-beta-1680043855000":{"name":"playwright","version":"1.32.1-beta-1680043855000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.1-beta-1680043855000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c132756306993bb14ef931ac6375469e949afe19","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.1-beta-1680043855000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8NOHtresDLWPacGEhlzOLvL4+hhXbUXS9+1FNVFn8FoG3EpVvTwtxB9UDwdKjtjqymUtDd37vuYy3jZZyOremQ==","shasum":"2db160701f4a4b7ed61e7eb31286f81e702ac106","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.1-beta-1680043855000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDO/MhxAP35EP0++dnWhQ2BYCzZcI7TasR3cB5k7nMrUgIhAJU/kAgo69iYpzm/bu5fMlRMioA52iO55Lk5BwaMasT4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI2/fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnPQ/+OOKA4xMyhktUnHXkD9zRY7ufiZYhjDcmfGYPXVoWR5mQfzsg\r\nUlkpRrUyHTPbvIt2UhdaG5MMEEunU61VSL/Un4a873OTarlv+z+kojnutbel\r\nmcHX6ZnVJSEfKgprdJ0NU9pNQ11HEwVvM8p/pMt+MYTR+tIqG5mCJXPcxsAe\r\nBWsYRFflIKuSOKv+Synq5HiqD8E4g5NUJm+JCutgXSDrIbcQNFqs310MPDLg\r\nON0gCDgQW0HX8L1xievV+DFaqjDOhlscFpmDJg6yKh3TLEY+I2q7/Q1OPji9\r\nfUSh+jrt4fdkl8qM9t4bnv7OGI9e52oNYRYWPiac/3gEjx38Rt2W2ae2VG95\r\nDe+EW8mu3nSnOx0l/B15t7VqDCw5iwVtWhhZwEkpv/02YwKGWFSIWClwTBsg\r\nUS0qmKUZVmnYE7mD0ZkgK+4vVv9bepTDPbsMG8WptB9DvtqZwoxNWCi2ActW\r\nlPYXZZv8HgEIPyxHaJRGf046IAufEHKydXVaZYfqBZ7kksRtCYK8/RTdExJd\r\nfVUWpyW3sFQSzSnizpvwuFxOd8kjJff9APHRMOO5Jqd1LxzF/X2Q5JwEnMKZ\r\n3IQn9Djtmhl11dsYtKgWmej2gjGZhslYJcUl5VwYX2bH+JD5TPy6S7akYt4C\r\nwM5hhXPOg6tVVgngwBFupgEKhinbsER94IY=\r\n=Y1Ha\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.1-beta-1680043855000_1680043999628_0.9343250887360814"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-29-2023":{"name":"playwright","version":"1.33.0-alpha-mar-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-29-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a2b4ed142ad400f03c51cd1eedb62c5a46324f5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-29-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-gvjjrvdoE1KcrrvzRsFUUsaWL0/J4EgTSNWF1ImQmR6lpzTkXRXvAJCnEYwAyCsIk2EzoQ1BIdBZSg2dDWh0NQ==","shasum":"194aecbb39225b43c01abafe459785c55988b158","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-29-2023.tgz","fileCount":9,"unpackedSize":24237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZES/Bf+jlrPK7kWrHZOuGXNZ2PYqF3iAp+cKpFXGxoAiEA4u0T2sOWAgHg0JNtNqJKFZ6MnCER11r1zU1SjXQsbPk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI4adACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqToBAAleTtXiXmYQqxsEfPFpgaJkOaynhfZPF7joe6RXasKZ2yzbeb\r\nGpvPYH3Wq7Ok32loWBocXYnHfoDVFdwK7qnw5ySv1IBRkCAV8b9sqOSnHozo\r\nsMHTX9JlDdrU+hmmN1qGmEKoEx1C7vHWmG/iz6CaVb9ge46of1edbR1vSncT\r\ntVS+TpI1fuWfqqDpKfALV6quuBeq7QotCn69hYuB/F98nlP48wq879Mdl1sZ\r\noXUdd4U7kulmwYkr/gGpYkAlvNIF4+a/k5PoVtdY2i39uwHbUPb2rRTW+4rR\r\nYGglkh7G7ojaqh3+Z/OV0Ca+fz8oFFZJrmckEKUt5wltqqYKtgVrO1yqeQAC\r\nEeM9inb2RBwwMSbz9Avw9yPYxED7idt8NjdySKuRCWa8cDxRY8A9pkA9mL0E\r\nqx+U0GtTL4HHQYJyOSrbEPff2uYRr/lH/HAhRaVTEMfOB7sZEFhdXF0unyAv\r\nWTNqScV2kfHNzkDK2vfeD6mqn+hisehXEuapMFN3YIyvPE/AmNFkpIe410eN\r\nqXhNYlBl1UCmUQZpqYyfq48+Wwrxzkbxlz+7PaGY1krIdUxN7iGW/VPrpUOG\r\nBtqfLrtKOGTl/Dyfq8TNbseGCZGq4QvHU6eAP8WoXGRtfRrWW/WBCdFLJW75\r\nQRSeJcO9GjIWe6O42uuchY+BVIUNZzhtkgs=\r\n=nG82\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-29-2023_1680049820897_0.8657068482155041"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-30-2023":{"name":"playwright","version":"1.33.0-alpha-mar-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-30-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d39ff3dc5a23c56a1f18fde2822d579758b1c7c2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-30-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Rs1V1vjEnBgOIqA+aNTG7oNojbg8yGDZGL/hGoQ+ksO9f6QHTBVjYdujgRgTywOT9Ag9qFtHYKOLsFIivlhhAQ==","shasum":"60a8b97c5c3f872c04c51e09be6632a386e9c52c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-30-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeLhVzDk1+50fA33AUPIT05X3dmnm4gwupvPr89WIm3QIgBThAq8Qs7T8e3QYXbqDIK8hEiScoed4trk1Sqe+aa+E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJNdxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9hw//SjIAUuLtb8u3LjdwnF+NY8hCUzVYLSspmMq2QjrxPRpES6FO\r\nl49SEsvs3o6arlngabUHXwx3QxEgH3BDHYzdTS2KgEgRR9S0euAXfizP4yP1\r\nwPwBRwH5nRvbR1TYodiw05Qhnz4/bWnsss2IZXK/3Iykw12kFpuzmaMcgCS0\r\nn+okQ2WhvEeO4YTor7Sxb8dDovXDqNOxCBN+C8HKxZbdVPjEjizdh4PH+C3P\r\n06q/CQvhdsbiyHWD/ZAmOLO/5AViub6rrmJTBCXdkKC6o+k2koQf6DsV2EwZ\r\n881u5E6UBFR79TFmZCWCZ0ezOLs6QWwo+SLk2LPk7+XeKSNkrCzh8poQjhw9\r\nkAJXiFs/uNJ5g7risZ+iPUeaT6u/zzTN1Nea0IpglIbYqF1PG/rev/k1Mn6L\r\nKwVMNCZXMrxLqJP/Wzh8UOrfy5Ap+aiqzFQMfVsc+kUcHZyvxnpU+X0XPKiV\r\n7i2ooiqTiAX4M5v2EaCtlSNac5nYkejCa7IldZAiqGHWMFt1ItBCgO5XxU9/\r\nFqeLLrQlROdRIhdOG/iqMPpgHV4fFe7MdolSyGdwzABnI50K/iJSa7umzAEV\r\nfUHuEAI9qi3TUl2hfUNjI3A8Sx4fE8FANtUDZcs9tTScl+ZIhUk5eVdpgeF7\r\namWovWC4vKNicyKY8c0UJQes/sAnoq2RVtk=\r\n=m0zm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-30-2023_1680136048883_0.4503197530974141"},"_hasShrinkwrap":false},"1.33.0-alpha-mar-31-2023":{"name":"playwright","version":"1.33.0-alpha-mar-31-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-mar-31-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eacaf5fc8983c171db8f7d42b526ae46a91ecc79","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-mar-31-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8Pf8OsC3ZC7K5jJdJGs+ruCcu9oVh5B8WKgQo9cCFOEHydQieNJ6q9pHvPojjXalcxPkK6R1To1V3BKCccJ93w==","shasum":"28ef3d6b351233f40bd3ba22f0a78cd4506f4158","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-mar-31-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzB+xmLKa+jEGKyEizr93GrRMvfOz/1xMRDQ4mYTjvdAIhAKElDAlceXse9W6XhXt3/GaHhZYx4QFzxxH8kXqibnni"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJikUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjBg/+N3qZqos388EoddQbgVPW4RxVGPmusYVly+LfbKo0X+iH65BS\r\nSpecWHQ2fpQRMYPUevlMDKp1NXaS945AhARep3SvyhYca7VXHm7ifjZsQzEH\r\nvx0dW2rCTyRUdu+uorpY8fzMAqlkLhjedcQTwOu6TnPYsvK0tsGcDxE98YCd\r\njGU64mR6czvLWrECHabVoiEbpW1nU0V3u5ZayInIauEjPr8HDwwVRxlCWrt6\r\nk++1vVW3UVbLiiZoBnS1DmCDy5W0FdGof6fwXSif7ZO8UwDvdHwgqytIZ8UY\r\nEnn49gZ91LpKom6bx0cXp8z1C4ud51qZWopd36qd2P1h3ugyQZ4VNtd4Tj4O\r\nmOorNs1RdV1jOZj/TB+lrqukE6LNK9GCiAoO5JT9l9WH41g5BhYUgZ8vaY+w\r\nb43l1uvVROKdB+bFZMho8QPHG0mfBeEOkfpWTZCAMYfi9wG3nQxtEruYcZ3n\r\n2bfs2hH83x/0gaPCMflEdSLkZH6yr+jEBIucKPJEZzdS9tziGqi3WqfUI4Wi\r\nUjBNV2SQ3FPFP/KHHV60w6hxZLf+rgQfhcFBtPtGfec7wgnJebgDT2Xg4XoN\r\nk2ahGkWabKVdXCrNXYSL67XTuRqncjsP6CqsHXtr814h2tPF3GYHbrnh6gcz\r\nQJlAcHVQFOKxHeLbA6inotYuHgkfcmW6Oks=\r\n=f0Iu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-mar-31-2023_1680222483842_0.6278794853941216"},"_hasShrinkwrap":false},"1.32.1-beta-1680295120000":{"name":"playwright","version":"1.32.1-beta-1680295120000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.1-beta-1680295120000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d59972aeb76c42097ccc165eb5dce62d51d6737e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.1-beta-1680295120000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-52jWCBkbKhfWICe3KbKWNRRZaeUpxTPFXDIsBAIZRC//zbnACTN3wko9+ekEXyNZ3aheplR1xXQ3BIpGCD/Esg==","shasum":"378d261aa932ad65fe5a00dd27a2ad2bf1ac7cf3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.1-beta-1680295120000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3GPUws29cmgv18dcIILjzoD1VBAPQ2WzUUMM7mPYoSAiEA4kX4sV3iU/S9NvW7h0nMSAF3fStfOVfGIO8Ro2cRN9o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ0WaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyARAAmX+YHtR0yOUDeTYJUxTtMCXrzg0vsfwDtc3hL5RBYjQdaXb6\r\nIR2rr01VwBJdxibaj5Xqgbp1UKKdtik4XA48oLOXgY94Vmo4XhUO883slbeX\r\nlb52zpuF/3bfX0Z71TkwygRSRGNgeWOeqw5PyAOvTruCo6QKgwKt+emcDp7Y\r\n02FL6YLF9acneC7qGTFlY5WQujaJ7ZpTL+CgzHv+8speojUVPJUc2FwWxDZy\r\ny9QikIjT0gtHlRwbBR/pEupmt95ckw3d5oXFpVWoRgGo3SuQ2zwbwbvbNCSX\r\nuI5IpPURFlOQebyB9U/jbo8Kh017pBynNMJlEdqJ3a+fwHRjoqQP3OWuJulC\r\nvdGaIEmFwJPopHS+vpL+jpy9oRZRAAYiLgA0qRl3Z4aCfuALLSVDCcgYL7kv\r\ncYQAGzdIApzTxgffHsUo58GLhkwxi1tH3PvSNvUsQ4TyPKU0jKAGfMUpN2Nl\r\nm6pPZDMjkB98meBOYxKKMnLNNS5oEysvPAnV6snbo/VoV2H5/MiaRvZZd7tY\r\nK3zZ3KUjaiwoktlxUdJV1VImop5iSjKrqwLIGXNkvic1SiyfvrX5i37i18c3\r\nd0MrXOWdHb6kkSJudqeJY649d+M3OanVLis9RilvfnSAhrU/jEn1cVn4lyUO\r\nL/l9dwBOerqWrE3/JJKWxXZcWecK8z1+fEs=\r\n=66zh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.1-beta-1680295120000_1680295322075_0.15400736106624313"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-1-2023":{"name":"playwright","version":"1.33.0-alpha-apr-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-1-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0d9ec60dc7e52bc3f77e4f032da3cd30216b2ef7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-1-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+UTdWeiQZFL7nQ7/GyHVJ5Hc9ojruBt8cl7VSnd/VP0Ef3HKDnslDzUL8YITTGJcyxOcKS+ImO0PEvfCRQFscA==","shasum":"ff84ef81d3bd7eeeabe20e26a81a14e221d96da4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-1-2023.tgz","fileCount":9,"unpackedSize":24230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHSpecPdKilJ5SAa+FtAcDTF4JCTskRcGSfR6UcdIn9yAiBN9l4E8DJ6UJOQjtyQHhiGl9nweM595lt/0Z6yF7wl/g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ3qGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1YxAAowNR2BdGeC0nOqYXn8iGuyoa+Nh9GuB347C95nKZqA6OHfC0\r\nGsH+wr+dxRXd78N+MomSwJZhF5kZPNgM3sFG6Pplhphvvz7FOKeHW9TOGEo2\r\n5tqG3lDB21+fmj7kH/ozrEqRSzxbmQ9Lnyqnf5lKq/guoglfGiTy1UQruZAE\r\n37/2pKtebT/t03naeuS2sCXo33QAQ/bk3GjLQDPul+IEhIfNAOedoTgPdf6V\r\n2yzfGzRASq3om+FhmmgDSaVqiMzVyHsXs6In4SoGgwH9yanvkKJ3Yz05WmgR\r\n/mS9KkXinS79jyrsx0dpqg5g/Pa6u6kzg9gYYMBP24nH04XLuiXqMyL7OsYb\r\n/YM6G9WIO8qaSKIVSpKqtDCGc4ckz1ZF9W+bauy1BYlGjHn5q274eTCGiNGm\r\ngvKpjNjPdqnMgivDI1+aZ69rBoKHjmf2R3nLaN0JjU7v8eZ1cPzaQiWFYaSC\r\nz4xKW2m5xp+j/J/O5WQ10dOzUfxf2QJGzgLGBwGBso1WLcWjq6KX41kEhp7R\r\nbU3PgKMmUvAmGbzee+QrnYGdKls5MKQZFhtDvnyFW4XD8lYh1Ca3U4l5EFzb\r\nDaI50QsJTTV2TmG00oAYdxVzxSjEIWkj2PNTMv9K+LMKcoWkRK9gcJ+9VvWi\r\nB8352XDII9nIW6eMejx4ueq7nfcK2Yh4jnA=\r\n=K8t3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-1-2023_1680308870518_0.9854445288688847"},"_hasShrinkwrap":false},"1.32.1-beta-1680310452000":{"name":"playwright","version":"1.32.1-beta-1680310452000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.1-beta-1680310452000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b139ffc174c6b176f67d39226de05fecdf26ed85","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.1-beta-1680310452000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-c5BDp8mNkqwh6TgdGgSUwGbRpFLTKrqy/5HeqIYKOkJLxzXLpiWDBCy2Gia0rPn2VB2337Y0v+6h3tpelqLMBw==","shasum":"cc0ee2b1c97dd9a96db56bbf8fc84ac71c234420","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.1-beta-1680310452000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJU6PmNVHzIgUY8KN1cJ5dXh12UzEibd4hEOzXkQB5QQIgeQRUrFsrkf4nIqqT5GQ43yofF/G1bej25CiG7kIo23E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJ4FqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMTw//YYbCj63f59d1GioEhyTUcQK0DEx0ewdO8SQlmUHyaJuaLSIi\r\nNuC8ZWK7kbbrC78AkrfWxp9Crh2ieKwJHb05rdcEcEkrTWckOLSYw67gsqyV\r\nzmsAGpNccqyhHzHCXXNIRST8aOJvHN+g5AV3PYh0/44rfhcQiGtdycKy3yPJ\r\noEyi2BkgwXDmM57Eb4EskXx0cc6GBSUVBSb4rwgvuNShPqNYt2hzqVybiUhk\r\niA2YDymUfhQOHc720GKwavvWwnsusTZeMapfrx4bnja9PKExcMDMXSVpJfl4\r\nqfiXI955aunVyU3K3+S3lmhTSk2ng/mfqDxHQZlATlHrBY26dvoBxdKCorLS\r\nXamOHaww0kyjnDSUBo845R7SRIHRBjcXg8QYUSyrET1AIdbt2wrguHzCFE0u\r\ndAl3gx4Q1bflXhm1SH1kljKgVWcxfFBSBB/FSYy5HsavKBU/q4cbLG8LTAu5\r\nVp5GeGEdgsHNDJowztDv27oBn+JyBPYRxaOAYMfLmsdB0LCnt7E6kvgxdxVy\r\ndwasC7BnUgVryWnPqU1mIJQ0cxqOc7e0A9inWa9vThTcEIV+nAHV0VD0eDWy\r\nAke6GB24adAS41RcK4u4XoW9ZKLveLPxU+SIN3yKDuIYFwMW2f+02sRYnUp2\r\nPaakFNCCrLZfA6bo5OCw6L5zE/7YqW4N/Ss=\r\n=c0BW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.1-beta-1680310452000_1680310634081_0.579211134346409"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-2-2023":{"name":"playwright","version":"1.33.0-alpha-apr-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-2-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"41e4ca0257351381e1e03e298ad656cd01f22521","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-2-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-joJX/xH3EV0LhesyvgVd9D1uFeYBeA7wS9ZQJnlww4L5vFsttfRy6EMDaP0RcPgbs8qQaDYJVzqn3yJJ1bVydQ==","shasum":"c8a5abc0bd061ecfdaae7c48e3656adf0105b0a2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-2-2023.tgz","fileCount":9,"unpackedSize":24230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNbtqJW1l8GgxfGuqLtqW6dWgJGCrmKXq/o9wM31R3uQIhAPR55QtGWGz7cmWT8nVG/lg5wpHnJHUz8G25E9LESa8M"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKMxCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqV8A//dNGD37CQAK7r2oIn/EL/vbPHy42gXX21erTlbLVPM4GmaP+P\r\nB8bW4q6Y8PTNN4YZD3SF/zqEyaf6plt5mEql2QFTdIJZ/XZc1+imWUZoxrJu\r\ngYEY6uCBPRgS+qTDuFPGeZC1x3pOQapXIF1XVh2A2r7Tf/Fe4s3ZZW9Cprr7\r\ncWmnqPVciVxNF2vsGBURPzU9qdzkE49wNfOjUkukvFZ3zApLOIxYybLVTpDI\r\nA4RN6bAD6vvOX8azQZK3UAMgbYj64nD7+kYy0yNfHiLlKakR8mErELpBomUH\r\n03yz6EkzXUNpMyQabMaaNWS9traSd/tXKKKMKPOE+jO86l8LmDqG13Rop0pr\r\npAEJa47xsTCzvmm9dsXcOTWZUJ3MTbkzQXcwRlR0PiB8dGr1sxARqiGBQLeb\r\nl72QRiKjcJlBHUS8uTGaCVyUH3oMAzGcldIa4tVDhylPsoEyk9A6U29IHo6S\r\nyE+wOFjJR1hiebmta1f1YP9qlDE4UfAdHZ78SDQtaTKMIEVju+vHBrgO1fSD\r\nVGKlGdlcDLL8Nwz6xVny47VDwDW7/Iqd1iq8HxkyrnhDdFcm6JoGwjgoaqDj\r\ndChPXwsj4cIGjzFBZdeQFB8Tw6QoK1+uDVvzr0BpsUrd8sSoY8uhkunWWoj/\r\nFpjZgIc6tOMTPJArlGR80E1/lSyyusItnyM=\r\n=AoW+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-2-2023_1680395329954_0.5695150388874752"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-3-2023":{"name":"playwright","version":"1.33.0-alpha-apr-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-3-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"41e4ca0257351381e1e03e298ad656cd01f22521","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-3-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-w7SHwmyYLdgCK6rYc1Uj70qFaiT4TvLdQLoVQVZnMsuTdnU+SHsmsSa1V1RylKo53fuq9UMbWWfSpwqGPzKZJw==","shasum":"58d04b3a9ddb3ba71270e19f3b8b8a672bfa2f45","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-3-2023.tgz","fileCount":9,"unpackedSize":24230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDD+yWwUtG3R7vSQMEEt9Ynel2KDWCl2c+CYPCMJIvMJAiAaPd0gX29VsSOcWjxh7U0aFtkNh6YzFY6kfIrFVY04KA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKh1EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtXg/8CxeXe6fpGldQ5ghE8m+CqpxJWmt1lp+getA0ArZiyreBbc5X\r\nr8eE8LcIXkpeVpFkTIllJJMwFIWefGjEKxPNV7OtFPADdL2jU/qruD2vXoii\r\ntwCQfQTr6x2Zfm5a/uaslXx4p1rrBF+GuXBjbACD45iO2TToBlIiBoVrIRM9\r\n7De0d+pxeBD34FnEVz87ZvsfX+UQf2qimBTHd5xUjE5psnzY1P21f4Eh35jN\r\n2oDCVbaIEuKWhy+omwG9T99KTwJTBXcFA0sr6vRagRlSMslGGDWnnFOqbUAQ\r\nYZ+LclFFin6AI0kkZU7uTaIXuOGrpKS7QIYOMOCnVqEVLupFTk7R5VqTSg1t\r\nuNVABSc8Q11Uh5tXnWbJAVpKMaMqp3lry7v6g0o2zrRzZdX9q26AsEHe2YbB\r\nX0b7dx/rAiRBUYu93osPA08SzlTlNk8gEDi7YIeARbrv+dko9b3HAKCVtH8E\r\nGDqeESwJcW8kBafMWgiOni9Zy5VQeLhOBOTQZ4G4o3/8v2u/GanjlrgwRItH\r\nkuxL36fNanRzYlRIjI7vEqjpUW5CQjVz2oSwYYnkfNrx0hS5uqfUqawAEYPY\r\nK87x4L2dQfgGtqKVCviLN76kpwbNX51/un9NZt6pxcgoLCxNzCksLqHhb9NG\r\nORmJDW5RLSMqc+hJEhNNB8kK7bvRUGeY7/Q=\r\n=LN2W\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-3-2023_1680481603857_0.7948069796564434"},"_hasShrinkwrap":false},"1.32.2-beta-1680553379000":{"name":"playwright","version":"1.32.2-beta-1680553379000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.2-beta-1680553379000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed7a560ad2c2b510bf44faa9a49540ade1bea2be","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.2-beta-1680553379000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-r+WisZjJLcz1eL9vC8IvxV5U/08hdqCEdmspGHH27ETytYYYeiKUYGnJpc6SqNQ9GG3YyjKFDZ1+cDn7f/Gw/Q==","shasum":"8a01a074bb8c2de995c867b97bd325dff4e67ce8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.2-beta-1680553379000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYLjaVLog4UqNEabwe38IPRGdOoyiUyFO5SdJwNK7rSQIhAK/CtBDA6+24bjZGpLNNqFwpbPAATR4pc8QtBD6v2L0q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKzZFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWXg/8DHdLBe5KGsvTM3dw6kX2JaJ5BRKMe9zz4ZxnTggjVZzkbn1k\r\n78TaDyKdHDmLXAzC1UX30EXuoTdVQ/oT3DugD8aSSVn6ydX4nNORZ2UChlyG\r\nHX5/3RvbLCh9ROdqEqxvFzToIMMizQXbRrQnpxn48oRXRO4PfnQvI51eqSKk\r\nH8Mpc4Jptx7qV4LKKb2AGRiGHBGzIBXUgZDKSlAAcYarcBPCIKZiObNYow5I\r\ns1Ck8lFHutklZQw4qwRJoIboSzwP50tQHLD/TKcy85vzO9DNbumneES/lJPW\r\nH3KytLdjkMXCyjYGRJGIXW84YB4JgsZNJOkbHtpG+fZUOCZ2rDaOidocx7Yo\r\nm4rR2t9p4KIgEiQ9b+VJt45ITQ6wvUeLU5I4vK6F46hgPgiR051xeGpBtAR0\r\n88vz5R5QMmydbc6z2h7ZgSA9Pnmv+BFOmk6JVkyjwNHQJ03lrX8A0nCZRnge\r\nB8tzF59iIG5JWrIC2S1MEniqWSPA50IMv5ljFN1MK9Qwmo1NB3HOqxt0t+Wt\r\ni5NfqxGzOzE9zNHdTyjCrFOTFuqik3gjj7bdpnTxZvC4nuKfgHwFvC9wYeR2\r\nY2NRpKar5AEZbiDrtst0fDB3rEETfb4xQHjx0CEwamxQJa4hQbJVSqGbVE5t\r\numVfJoNAvK/K0HpKPHwMIH/jFaa2zss0rZo=\r\n=AxiV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.2-beta-1680553379000_1680553541042_0.6527254113777909"},"_hasShrinkwrap":false},"1.32.2":{"name":"playwright","version":"1.32.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.2"},"types":"./index.d.ts","gitHead":"ed7a560ad2c2b510bf44faa9a49540ade1bea2be","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.2","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jHVnXJke0PXpuPszKtk9y1zZSlzO5+2a+aockT/AND0oeXx46FiJEFrafthurglLygVZA+1gEbtUM1C7qtTV+Q==","shasum":"9f5a510274c74d87128f7edfb709016a1f957e01","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.2.tgz","fileCount":9,"unpackedSize":24201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+/R1yTbUmbk9PAN5UomL+ZjBS8fteddRWiketX+OQkAiEA6Z0iGhTOSoNwIM/4TC4ii0T0E6vV4k3qQugNk9YCrXw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkK1B0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpR0Q/+J/luuLqr8rCuLViBX9k7VT9T5/bR6TGrqdscZliKzHckxMjj\r\nI4v4UJ/cya2TgeB0HrqtrtgK8B8bzSKhKaWcSthOBV5YR1Caz4uGYgE4hdoA\r\nU0H2YN+QG5nBUAP6hoKHmRv1G/Q8wUtgdECl+4rHC7UOpORPpJAxvQSPBQte\r\nIvWyCRiy++Tz5mOl+AzSq2HNQ1Jx4yisJYyTtaPVpGbV2QQQaqnIRXvb1KxE\r\nAyJ40YVMKchYejuiMJJNZnDHf63cj300d1q1JcpcyyFF8+prMhN+pAcIaVfT\r\nIBOungR7qK19ctPHGka2EF0QTxVoGqnSlqZYtGCHtk0IiUn+z4uj6RkFKNQs\r\nC7cykqvoLxvDN9O7zQO7zoUGB4OotbRaUBCxeDiHAqY6Y01PmqRmjrfnPWAm\r\npKz0Ka4Y+1wnGClkfaDX9bM2k9E7U2KT9VbV35ux7kQTWWge7KliJcZDG+1r\r\nFGDIkQXvSnb5LlntYBbfn/hhHa3A/DCWwllWPsLsWuIZcRTf1XpCty9OQoqF\r\n1ZHtCK4qNff9UGWYcrgSk78fxbVUjrx0KW96Q50PGNL92rA3AGziOw0d24vb\r\nVYQ+TBVPZ+DjT9GqJXHW3QQ7IB4mz/Hmegn0Jvy4DYWclfLjkDUY/h+SfnyH\r\nQK90jsbcVVrrKfXrDwgH6V7GB83rkDi9n/Y=\r\n=Dkuh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.2_1680560244515_0.3628420033593287"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-4-2023":{"name":"playwright","version":"1.33.0-alpha-apr-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-4-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ab85b23e6770b1db456f15ede9727ea0b163166b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-4-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KRoiWARLbp1g8aoeUmqFAsrZPqjEsWmnZC1oVBXDMPiYFaIzv9PAsO327YpYu2LBgK8PWQC7qOqUrm4K/Q3ESw==","shasum":"7e8ecf2e5e71f09f254f659c54c3f7b4b5efd38d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-4-2023.tgz","fileCount":9,"unpackedSize":24230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS4P/QsUf3cpb7PQe5ZIwdNxkbKiwPZRcagj77RsiaVgIgHiZRnNeapvIRNIW1LSb1nmdGlHXWfSr57x1crZZASdw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkK27cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWxg//UZ0F2UTGYEMSFCpGpJKft2I/CPPRqtjQsU0QcaFeb5lOV3Zs\r\n9Te5HYbhfl62/SsIohkr3zukIDsJUre7STAadquhFUdbpsnyH80ATPw2s0CH\r\nQBDaloehMFsdrdyLVIKIBvvrbHmnHOEMMEOcvyCBQTVmtRFH1jvw43QIJYSM\r\nkMceP5Put8nZ9T4C27htFXA1U3OWVeacMm5h5+fm4jWxp9SwpKoAKT81pLEv\r\nYaObZ4nQPNciI/lXCAiKQKdzXqGufeXTXQufNu61NCIrTkboL4eX/lDgd7k/\r\n9iCxZgxWyPnAlxGtxyf9NoiOKohgOQ6l1Z7/ZeB8ybJwxzIDuLbc3oJG4OEm\r\nbsv+3G/GWeS3F+1BUS4bIBUNu+5fEIyjQtp3YZG4bODKp4scI1WJyNo3y8Zc\r\nBaSFsL/49x4r12SQu+E1Qe5PZqjDbuUmUFCiaZBYWwmYGj1cpv4QS6QE0ZAZ\r\nuplUzWv1U5GN+9qCIhgzX1jyoQ/7PqweNA68/W3wdsZFCdV/Xw5bZDs9QrMR\r\nPnTbmSk04MXIJuJmtr50tXhCsJJsci6KJsogY6yCj7xbopsmEEA1XEGvFpUE\r\nghysOhyQM28K/i/eMqKYURGSoNM+QtCnhoOwrnN2oP1cXAQV/SJnHjNIgyLQ\r\ndiubAcuQ2bb+aa30SjY/9z/uj2gOQTo3i4c=\r\n=W2Yb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-4-2023_1680568028397_0.24328541392960412"},"_hasShrinkwrap":false},"1.32.2-beta-1680637207000":{"name":"playwright","version":"1.32.2-beta-1680637207000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.2-beta-1680637207000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ce33ec23c71ed5c371d982d74844535d24e267a6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.2-beta-1680637207000","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7mimOBGl4K0Dr5GYCdyQfTPV1sJeI8FloIOUEMJYwBKKTdl4oLB+wC1As12OjbI+Si22/VbMR1ilnkxr7Xz/0w==","shasum":"bc7a1bd79d3f6e79df7e1a8a1db408b8d92792ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.2-beta-1680637207000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDakrgCNEu/m27cJRFw5jayqk4Br+FQiB8SNk0r9p0yrwIhAKr+n43z88ikkEglPltLaongg6MPUWj/6HBU2L31tqyY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLH3HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrlA//Z0lPmY8/2yET6kcM9gj0z542IbaTnOfKZoYXpnyt2j9zlVUJ\r\nuOavGzzyslLUiPhWMMyUBLgZfejc8iBE20xajdhG7JfLN1rjjJwQ1Qz6FMtU\r\nyFn5RaOeH97s5ruewfQNYKXuluwe6YiBLay2+cb174byiNppGQen86Gb5ycC\r\nsD2NLzko55DWjbuPtUPObIGGYHQqMyrxi6fog9ptdZiz+RKM8DQxWDMFVpwI\r\namUWearAwI1MUZSgYVeShNtvfGAJGAg2BmGhfaZimkdhI3Rqj/yf7MFSUGNf\r\nJS43+EEnm6aBiQW14FAj4hYBOzOasG/cee4OMm2BeTucoqYsPkmvlbClvi6D\r\n7FC7dz7T0fHlhu7qpVdxx/l9AUNIE8pvqA7uk4qlZaai0q1GqoCWw2yQhA5m\r\n8/nsqD4lkqOWZ5N/71b7bg/QIWH4J1ko1LODCgtlb+NeSNmvhfntRZVZKinE\r\nWhgErCV/z0kydKpTE+l71fkEuec13vg6g1mSz2PtJCUzQC0IhL6hjTdHV4y8\r\n3IdZJgGgZP0n2CbUqvFAdsfauX1KMshGTwwU46cAnmz41I5KplaqtvjGWHPY\r\n6UIpvkcTWD6ohIlyCTzMsxCFXqhigCr8kEyPVfhE491Jsk1aouUeGfiKrMDI\r\nVpYuLKYQiSDjPBbrKgPl587fxvqIjKHUU7s=\r\n=c9LA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.2-beta-1680637207000_1680637383015_0.43109690985573224"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-5-2023":{"name":"playwright","version":"1.33.0-alpha-apr-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-5-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d7b3836752fbb996a4eb7dd6e36c3970912ac2e4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-5-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-dXbTBeLPela/BzGPlcLcYxOcukrh6eqU4RC3KxcexMxA9efHBR0LMbZM6VcYv5rPvzlUTpRWYELAOOMIKCvf5w==","shasum":"a7a4dd256e28e809fb414e0bde682a0db4640a21","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-5-2023.tgz","fileCount":9,"unpackedSize":24230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVcSbYJZ+KtcIPw9b4qMjKdGAOQmIIAPL1EnduiNrUTAiBjexfkpLMtfl555+a53vEFgoprQCuCmXkE7PWAR67AlQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLL+UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuSw/9Fi8KcWMJZLOpjJw5PPCO/7S2qN3WSl8Pf0WKLe3l+b7jc2Gs\r\ny8nyN9eKLXFfYCaddAg5hx9dOJrDg9KHsHtiGsK6BIzHnzpZOVxwSFINVv3f\r\n3f8if2mY7EZuB2ybVJ0aXJmCFDjHk5jFicU0uVq80HcTX2Rw5JAIy+eqCcVA\r\nabvf3KgImvhvAXMJCwO4oDKw3VNt+vyCtyJD9PflgqOVjcZi4cYPywffVIKC\r\nxenSCWHEczL6KJjUK6mnI8cxRHqVLZ5f4Z4KsITZUmVWR2zsEEbn4DJZynNJ\r\nuQVWNwaBY+WjD3AxXZ3bfZXtnxQe1PayvbPQUi9pzu5yjWdy+VzFSz2S/pm2\r\newt8n1f3VMEWL3MximspqKOPnMd+FNB22bacyTPivHVu/wfd/BPi7lKdhknU\r\n2jH3Ggvso118LB0D0T5YogluUlpOLR4TJjpBt2qVFxkHa7TIgB7xxB18Nhv3\r\n45JJlKIxISXWhfABVAjth5iqnXjxGVldokMHOzoa4Jlv+DOlMw1yT2Ydr9bs\r\nk+j05tn+ce6K5Jbpxzy1ptXBsdtrvLtZAOHMigpdrIwJjwYNR3TmcExDTEL4\r\nz2h28OdWeWH+yCqtivlgOwZZLjGV1VaeQLRpREPsGyEi/39v3j1Nhqq5Pn3u\r\nnMfVRoZHaamiw6apW1UZaeoLoVhCUfPdSqk=\r\n=jPfM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-5-2023_1680654227941_0.9882626913566839"},"_hasShrinkwrap":false},"1.32.2-beta-1680712603000":{"name":"playwright","version":"1.32.2-beta-1680712603000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.2-beta-1680712603000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cb419e75cd649b1905ccdea067b522c96e84d065","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.2-beta-1680712603000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2vbuRThgy8v2LVc6EsAkLDLpCqlzGO3Z+rvQJpPk4wry0IBc3mzOLxkQqoIIUoz2vnhOnJ5LbqRYYEjtZoY+yQ==","shasum":"a6d5f719b66eb60fae1fdb70c78e95e8b4970b4b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.2-beta-1680712603000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFTIxKS4bUP4nXB0HeWaY3S+ST3hlsV/mICQ9Y53rNiWAiEA94MP9psVssnraFE9l9w88rvEwLPV4gxAbq6fb9xkh/g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLaRQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0YQ//ZNuNrPdHz0yDZHSjicBhSTXYdi2JbfkH0YpArQBA2BTSPNjN\r\nNPcCXloVxYuBFXUxLFvUXzm0UH+10FxbGVL48lhfIyoB8VnBiLqBLlHytAEJ\r\nrtN5jLu+RPpKNaCFFcXFA30kfd2PXheFmjIXHmkpc79OsPk6/Q/1FIpmewBA\r\nyV8U9z3v7kcTrq8tiwjxtxENlxJiTtqu2pgVOcI+zINDxBbk4cwUOJJ3D5kS\r\ngPjM9viebAc+/MRG/eb9cDzCgOUEtTcTGJMyo5q25pXjVsX+dHZDDkneb+wm\r\nULU4RGXs92OJmXFsRHb+qBIILHm9Esq0RmhNubGn5yDFaEG+pIcuZ7nfENsy\r\nLVJstgD21oclMK8q9O7Mda5aCqSG8uPsHwMHV3BrmKIgmL3Ulbao66bap17K\r\no959NDF3ARmSA1/dBMU45lK9tt8fF/rCblI36V7rrK5f/8zw/Y6xRJeFDpo5\r\nMs940UTBFtEZXsi30I/4h/O2uoITe9HAya/vS+Do/ssC0t7p3g0Fwjafh2Vp\r\nNbwW1u/3khAzdL0EB3t7CD6vroIA3ZK1cJHWxcEiB1473MeFMV8GhyqpJMQv\r\nUNDI3yXNf1Cu1RYDAU27RlsXdFcRysnkuQkcWlPyqQXtGNSBN23TmQGesVsh\r\nhA0bCtxP0YTSxm1F27JH9JZ9WDWwk7Eo/Mk=\r\n=HHfY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.2-beta-1680712603000_1680712784263_0.4027364038438337"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-6-2023":{"name":"playwright","version":"1.33.0-alpha-apr-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-6-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"08cef43e829f1ba3512641f664a402ada005d19e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-6-2023","_nodeVersion":"16.19.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ridCNARwLlJVafSBMI3oeLHca5ETN2IdgLt6S9BqbWGy2D2D3JLsYCk58OmCoFK9aHWjmMFhr6bGi5e2yOoGvg==","shasum":"9e56c6fc1ad746fcd66ab54fe961096341327d24","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-6-2023.tgz","fileCount":9,"unpackedSize":24230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/F2/aoWWNfmiXZAglgmCSJ6IfC1/GmkK7YIGbr8VAzgIhAMJ0eYH+6RT5O5qy5rwpAlUruVD/cjCrqRGTPiaj1zYm"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLhGKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqcxg/7BCZHHTiB5L+gJBcryULvgjJb4A1vw1zCGlvSlqrMOhYRnlWm\r\nYMbbfLPpIKt0dYRbAEybEjmKjCbSRLxNq6pecY9fPDDO8LvFcr7p4seNVpFf\r\nr4Dbdz59OxhPiL8z1I1WccBvQnt00VKKjXYbLUINAvzMG7L5bn5zuQBc6hNm\r\nCLYwM9AHF6R4muGX4TXc0cNbekZ1mSQRQS6FoQHHYrBin3+beMiRxPuKVFaC\r\naSpexhUafYzLsJIemMSQPUvPgxU9Gl4jO2eApJ2WMkwZ/QbEAkPhJMwgs8Nl\r\noUZwHHfbFHkCCFF9ZWCisijDE9rNkCeyWifJolZy0Z9PKukg2cjkWM3rPw6p\r\nYLqT2Q4jgKZ4bo0lVDhorYRMk/z1N3vT6bmwtm5JP3c11Ui4y/tvGtQtW+J1\r\nE60si/v8omh+X785056UEMDIEEm37nSGJufpSntYbqnxAyF3+A1mw3Ecc9e6\r\nlj8DbJgG+CgDVHZMcQ11ORMCbwnO0HGjYQ+YmotHm9jzGIXw5AbydTD2C5w5\r\nPg06TiNIGNEjVeru1hx6TdcqpVL2tNgj/Wm7Bx4PjhQoeyyOF1+qjBpTCI3U\r\nxgRY2Ry0tVaSzgsXJSe8+oCN0beSYjw5VN2mzKmeQ88buxbBXMcyauVt29b2\r\nueO8Mm9aPa0E+QoS/sziPry9CviGLFTq/s8=\r\n=mQ3v\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-6-2023_1680740745746_0.3669191371335685"},"_hasShrinkwrap":false},"1.33.0-alpha-1680774768000":{"name":"playwright","version":"1.33.0-alpha-1680774768000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-1680774768000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f610577a1884f621bf6eede4a1fa0175175b4021","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-1680774768000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7nfDoQiJLbWUK9HuuLAkdhqRGvYusHdY3XkJRrbqpP2SjLC0uW43pTmkEZdQTOP8/7X+CIU1pZ4XADojxFI0jQ==","shasum":"53751a4bea878352c098bc085fd7a1d56a63759f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-1680774768000.tgz","fileCount":9,"unpackedSize":24236,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4AyVLMPPpiOWGXKTOkF6h13iXwehR6Uzb5m7E2zMzMwIhANzB+p2ehyPqLU+3G6fUhgRID8o8V0Z+FnPJE9oGbqE9"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLsCdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTwBAAkV71WvThkE77XU1TjOWyJJXCxoGswiStP+kuLMlU/NEjAMr8\r\nHVFPuk3ydzn2SxoouylefX1Ics2aKahlpYkjoGzLfakT0Fnhkdka2w2Y43cg\r\nXy4UodC65f21o1By/4GBYFZ7FELYBkNOZMbdpPvaIkXbMfV9SeBspNwEy3qI\r\n4+R9T09zQLMGY08QxIDypHwmhudG5FGfWTYncFpcXcGHYZmi7AdRPTsD5k+z\r\nb8s5i2N84YNYtsxeviqhRD7cXZLaRTsCqC2W+oR9wGTmSvsRfNG9NcjhpZZq\r\n326lD5H7p7wUvOjwH6sn2W6WwWeGUH7naGBBqVjD/Uv2t7pklMaU7tMZCFiV\r\nRGzED/RPUWGbSmim+JDu12RbuKSP6DLkst+FTodDphkRU1245udDhw6rretm\r\nLT8FTolTmiQDE3zIiDVS6LmqDBP8CVUaPGJ2UTncPn/BJllF1g8FCu5VStek\r\nmZ75R9tU7m6+JLCQBULEs4kRSGghrEXcMikWepu9P8vqUZA9uWcQUh08BkPn\r\ncN8TFP406jbiVPzicFTj6R9Ed+FvJ9OiKm0fjzt7ZkASlnMdwV3Z78hJIk2z\r\n0uvgPfQwdksbPlUVkuE0juhTiztXiFw6DVg/TAUTmGCEHWITG5RB9koucBhW\r\ndscV18j/FG5mMASJJ9gqSpUt3OGJNmeYQCM=\r\n=w6fh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-1680774768000_1680785564930_0.40915552517414944"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-7-2023":{"name":"playwright","version":"1.33.0-alpha-apr-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-7-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1ea9f02944a66aa16325c598addbaf0b40e8eca2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-7-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-HmDsuFq6b+YsYg1P5MKBD88Qd3jk3kbr6FWK09AJGR5SqV3hgqol+iZUcIxXQJ1f2NOx+WaxB64/D5mmMDhYCw==","shasum":"882d66dd30d212b1b1b518032c6a7726ad2d3686","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-7-2023.tgz","fileCount":9,"unpackedSize":24230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICStkPIsbvjI0V6SBR5kO8csuq5VBpfITsXVeZVBzb6qAiB8Bz6zdSSWb2otJuPm4mk4d9GZclcf2zdeBxJ+ZlqmXA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL2LsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrishAAmyoC2cIQN8RU+7PKzDQbASp6ROn/66cn+O9NHDSklVHYi3Vz\r\n0KfXr8uw+NKFgVt9PMVlLHEfn0wwWIqjc2wdwj9nYEZVb7tdfkQc5KqLfwK1\r\nWAvKr4CIKgjzj9/kQCg+BSJzTIXs7nfApCvR+5ezFxULGtNYl81yBXahZUYQ\r\nm85z+knXtBgrhzGVjD5jzvYWy6+4ASneTDJQVQrffyH3swHKbAdovc4haLWz\r\nzSODOQzMgX69QS4uYkZyWzBj48qmFp6VvbwXX2uXgIt8zK5fdilFar5VEIGX\r\nYddeA4ys9woCAkG8MUjmWetwbf/scMmoMCgh9NCdBtZgcDUTFTFROZAOPIV7\r\nsCdwegrjebR3KE50DAUdlGWGylLsySfg4ozsPeqWrnWu9lU6b5RFcOORaN9g\r\nkzbonetphEvXrqb+dEYrsYANEns+HqUYDWFTRT63yIupOQKUT5MpRR6wYWmt\r\nDYDwSpgDC0pavfTOy3u5tbrk7EmPcXkRkvYul+AkJ64Z8iqA8QtgZHByaUM6\r\nZle7LIN3wnScUt8SHUAkm80SafcZsVuS/MYC7OwvkuHl6zc8KhPAQDqqWQZn\r\nTePztFvFDUECn8AixtRwHiNykDtSTnK3mK6Ss8W/4/hX0l8borypquMX4Otk\r\n10bXzUx/Lftk5Cb5IaXb7Gr1WxkbLVU7iTA=\r\n=/Lln\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-7-2023_1680827116749_0.9890558803657323"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-8-2023":{"name":"playwright","version":"1.33.0-alpha-apr-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-8-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8d2502ee62e22b00e38c0bd2a1390e08f9ba47ec","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-8-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-v/pb7DagQWfbFEQ3EV9PeCSWs0VYwFDZiFQxHNBGGDw016Ffknu0JZ+MdcieNyrAcHuazmwGmR66bZCPKA6Kjw==","shasum":"ecfd8a8bb860e3e28544a1660f24e74fedcb37d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-8-2023.tgz","fileCount":9,"unpackedSize":24230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbMNT/IutFVlY1gooTSvcH0bJHZ95saUTsaU5s3YfuJgIhAOqcXQyEdkqbzj01ldOWJnqnarVOf72h6q/pfsCSUu18"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMLQ1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfOw//eOnArDJMAUaAAd6cGmXS/e2gNejgxYpuypHztgifZad1GMpL\r\nHt54FjXGiyLTJJlEQYTmLo/22j5ZeCWOqYuvtWAIKNJvee4dNvjvqvsXdlBq\r\nBxoxUqFjFVX3NcH9X/+H1qp81w3249SelVXVaSYnACPdDP4MUoe3gZFtL5Uo\r\nSlZQY7fVkt2aFNax4Vz7QzbPwqWqay1KCCGmUOdhHu5BtSf9rCk/T6bvHwyR\r\nPM3/x1k6ae1U7DHRK5H4to2cJDCaXFDQzwRYbJcHwrmzY2OpRJ0GdCJH1o0B\r\nYCAHze3Vsx8NQmb3+SpzuNgsIJ/xadSjL2gKoxZY7K58AEo2hXw4zC/EoYCB\r\nP/XatSIYwJoQO+xP98bZBIGdRPHjLflriqwKrchb+F8CcFyYnCu8Ip/DPy/j\r\nrruRHs0SR4lPPyKXavjZUYcjztjXMHIYu5SORgBrqocozHV9U0FYd/4St7ZK\r\nn428+MejAA40wVMWPHWxJgcZzupAZZE1G8addHjukDevoxFB/VqVnyrTowev\r\nS8HEzZU5kKnTs7X622JV6i06CzW4/mH86rWO1OjaTR4G2lvcOXwlJlHkIYpZ\r\nfFpCqeSkEf8PeF7jOdAGM54o4JQWKCR43jBNQkyP+1hzO8svy6hzq+SX2sk+\r\nTqfkvwEgTqKiV5wKr25uZcV3WzySU3bezj4=\r\n=c1hR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-8-2023_1680913461463_0.46715177303493727"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-9-2023":{"name":"playwright","version":"1.33.0-alpha-apr-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-9-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5cd9f83c7b3d2532cf6fb948efe50acd39afe8c6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-9-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-9t3U5O6CcUgIhwuuG6gYZSW9m0hy6pr1cQox69f/rJlsFXOvf7Tn0wsZabehcJUM9BPGaFpoUcbBj3l7GOX6pQ==","shasum":"4f4a4df02d9e74b131675e83c75aca70feb16e95","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-9-2023.tgz","fileCount":9,"unpackedSize":24230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIzzmJs2uzXugncOJ2P6Ns3l7vd5/MsZryeHY+QmRzRAiBttVZ8i5NK5QWG6Is64Hnfq9PyQXlNn+fwt+EMecxfyg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMgaJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/BBAAmgcVPhYl40XMgG+SKWqQGfAwmxB9S2bHhL4l0+T3SpmrwNiV\r\nyZ6uRzHfn4giW+SF96azuirizddpF7xUkiMx7NaWvJe1ekKyGRVKU6RHxrGV\r\nN2pPvCAQPQEygcV2sMHePrlGpqli0U/KUhpw/FnmBTh88kdYuzPgmPpcO45p\r\n9a1gSMKL4p4tcRx2S5L5RO+JoK1eMwisG8x83RHIReDyrXI6PhoK/Wm7m6R8\r\nkYHexrB0rfe728kEbKnRqLNmEWG/FEJod+8Z5cA0yYVejTwwHmlSw7Gvk8IZ\r\n8gR4t1AkrV/43ZR/XQB5HGIlrUMWvWGwdeDI6Md5AciPpfxMY9kAXdFttgek\r\nC8vMqrGpFRoCdHjnQDCLU+5vFyoG/a0q/iAZB5nDHnLAISK6FdfLmTXn1smT\r\ns6cnhK+WmimclFJnJPSoCj3IJzSv9SkybIcUjWbSURl0KWybBhX2iCdQKsJv\r\nINmicJ5nHW5bl+17a78WvbEw80t2v/qfg0bm7Hy/xR+1zEzCjYINkKyXpKIP\r\nnC/QdvM1DtDkcmLj7+U5P/2QTcgPflxTm76Fa6Co5N7TcDO8Yq5X+S2x1ZDS\r\nOfJhdXp0IQh1gUX8ov+INU+lysnyMwNucp5B4fggUKlsSrbbSp660KVWEDaX\r\nHg/qhls21X1prkrKpDwcTQp/yVmQlhyO3xY=\r\n=YqFl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-9-2023_1681000072910_0.047341430800381"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-10-2023":{"name":"playwright","version":"1.33.0-alpha-apr-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-10-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2b32d051752976720f6c8d952974edd625e503bb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-10-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-iYgUjoP89DnBJmPv6GWbAN4fnChSTrOXlqwy37w6H/yfTgd5+anTDUkgEsNoeBRCmGE942mYm+W+nArG1TBgjw==","shasum":"cb6f0bef77c5dcfd6b4f25e25126322572e11dd3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-10-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzSD/fRp0vqj6IOFqSD6z0x4mLC9432JwRfotMzWjQSwIhAJ2JdrzA/bRkNctKBV533FY6KFWKn+GTBjPbwdybhcij"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkM1d1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzIw/8DGj6Bg6H8g5A8tWoWJD+ESgUWadtmEPxku9eZYhBcu341Zlb\r\nBN8PpUDeBuRb/qlhb5+XS3WUQnitnhFnlpc1vSBUdCVG5OgtSzcjP9PNHfDq\r\nhetv6sBQaB/k7oPUrmgj+M5lbHkSnqUItlCwJjwL52ROqycGNKZnXLIg2P3+\r\nQlSudsSk977KeSMqDnuZOTiPKwhS77e4konEa8zFRaYYq5K8ENfenrwsuNLO\r\n+hjtPP3tm1A/XXxt9JciDB99Tt7N5dzpgzDzCLElyz2WOBkzRczQtaC92v/b\r\n2geTzxaWp6AGbTp/UiQ7GdEiumzkW839g7gKt84CLP7LtJ3wl1bcm6z3jAHE\r\ncQdhZ8OP3Ju9tesE/8vPdHfT9Kp5FwiECsh90BR3QshNDYO0JRimofN+LDCE\r\nZR2hN4Uc9ExCnRY7nG+Hr+zcwhoQPGI49KoZonzmPSKpQrLR9M1tgd12simT\r\nws+E53C0y4QFAzcoexQAbu4x9pfiFjGv4M1BYjNGsgjVcPBc9iC7VPBLL82m\r\ntkhCv2bo6ZpCZvni+QEAhsGkiQQjPTOWEoP/+4r5WvDSJybjN3iSMAyE1B9l\r\nrc6mni5I//cPtBPRBib/kKmEIEMITyXHdaWQGNWsH8nOHgA0XTsCEm3rIIWs\r\njaTTZA1Z532a3JXJRzFw6urTB7Oj9maaroo=\r\n=448T\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-10-2023_1681086325255_0.11240595008801169"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-11-2023":{"name":"playwright","version":"1.33.0-alpha-apr-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-11-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1e9668f8bd2bdd402df57163c097797c0a7ccc83","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-11-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-vXG9KnZgp+Ohacasmz2t15hoHTZ2g9+ha5FSJUgne890t4Z76sAynEFOwnEjck5d09ivFjanp87l+LCSeO0HJA==","shasum":"8adf9bfd864798a8e8f121ce7a3462c217c300a8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-11-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZvJzhOn/Q1Mpo/ZL5kQaiNArQuaXbwn3iWgKvw7EQ0QIhAKQQRNAvZKjRoROyHx4+pmPDsOe7mmW6I7h4ClJ3c8Na"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNKk8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFHg//Tvx+BvyX/UfcN0blDir+O6XPhEeoPpTJaW6aj2CUdEo41fdm\r\ni+7Q7J54UVFdUyxVkYdSJhE3AQDR9fptIXlOcsYZwHKJ6oL0gpfjO/jxCxAN\r\nM+Te+zDHt18wIgd3lOOau91c1PANU0O+fJSfUnRX0arzxgM1GJGtoM7++OYH\r\nO3uYs7ZaX0lnE3w7XbvMCHwfb6+ktPiuTivRjHlB18jiN+1ZmBIjpp8zW0hD\r\no9rWEYZTRjANDN9JFU/vJfGIuK+XTDCtVTHyCpB69qSIz9vmOc6uEp6b9ZD9\r\nqcc4agtUjqayM3DbZT2a8bnYb8wF8B7rHzaWcI1Ow+mICMWkhDKJy7FbCC8W\r\n5Atwkngo1YhiHIxBDPQroMu8IixSygExNUPQSdDNpLuhZIMz006ZfjYcWXAD\r\nRmOT5cH7G5P3D9a7jN9KTgg7FbZ5ULAPbNwO6+5KFzeGPoyVQdNVtSE4lmUI\r\nGZxr4Ztl+sv3OrC8dreHYIM/MTVI9zcKuY2TyYlkT1oujHZMS/i2iJBBZV7t\r\nlpzJdWEt/6fRdUcafzxPS/feytV/zBJf8FgSb7ZQXDk7oOGElIkMutfBhHX+\r\nR2IJwA73pK8nB1DNRO61Hn9umyNpi4qLxdAacqMkkZVP646X47r/E89K/ELk\r\np0Rkt2yI73rUxl3v/XKqQUUEL3sSeW9gb6k=\r\n=ldad\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-11-2023_1681172796316_0.2714689176201892"},"_hasShrinkwrap":false},"1.32.2-beta-1681174224000":{"name":"playwright","version":"1.32.2-beta-1681174224000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.2-beta-1681174224000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"710674a0fe455dbfb01567b298ed9e4f38714d49","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.2-beta-1681174224000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-cJOHYBXTZqRyBsQG4VVr+uz5z37d7In9ZDFhrIJhlClc/fselPnKs6P3SZAQ/AwIepVuO4QVtBgq579YM1W23w==","shasum":"887726b0eb310208be144491f13a731c107e6ea1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.2-beta-1681174224000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnRTSyIgVrDLAGDNO276rV06/EWGe1TumGehIzACdz+AiEA03ZK0jjM0lCQmjczOfo9pzMkZCoQbhNdSpYrEgDVZ58="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNK9uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJgg/+Puh9a4kYYQStbhPzgXON/s4GDzstncwL+da1nHyFrl4MOp/2\r\np1/QIkVbl7+tcBjY9e8uUTaN3oQmLVZKjoMcYJTvmqf3af96YgKtBLB8NH6a\r\nyk7kI4fl0nPdet/37wF/1D7fJrFPmQnTPWO2srVnihrWWG/tTeuDYXr21jKr\r\nh23HitfZ28S7Ddl53QWYr+gwq+NksiYSGrCuEnmcyorG3207EETD3HGapyLg\r\ncTMsG4XTQnOZ1/fPVvx/NY3wEAxGPPPsvKRixLcVEC3WNRQIX2dO4wDr0ZJ6\r\nFc4j+SzE95Mi29OSEBLqoRvmLbrx717WW4UZG5RdjMqAQ8VigwBr+XqopHXb\r\nVEc4mim+eqYmdGvR8s5vA7sxqxkasbxVf1bXgI4Xlu/4ynbqui1/1E36KFn3\r\nXjvb1aB8P7VefqFu64GLSTqifrN+uNMJF5ddS5FOT1xOjt3v5vtY4Td7WsGM\r\ncpWNSff6pjVPAqUoR0fvZlfdUz6PiRS5Dcrpogcxe9uop2VXtATZwVUj0eFJ\r\nPchsbG+WEPIVFk43gEkoRwf//4MK1VRKCDU8Zm+OYx5u+7OcjXIWpcs9FhlL\r\nTu6cFSWYJUyfIQ4+GRF1fPt9Br9m1oMZcNVQIOt3rZ97Gm1I/zPhbgD+Uk/L\r\njSRqgO0uYi9ng4JVfkHRueHbA0L2rBDBEig=\r\n=zOFf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.2-beta-1681174224000_1681174382013_0.8492871706142053"},"_hasShrinkwrap":false},"1.32.3-beta-1681174265000":{"name":"playwright","version":"1.32.3-beta-1681174265000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.3-beta-1681174265000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-112.0.5615.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->112.0.5615.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.locator('text=\"Your location\"').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"679ee37d0f637344369e425ea2dd45effea546a9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.3-beta-1681174265000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hTwtAYkf05VoTEkSuyfEaRuE0Teb4XD9Pt/H53cKdQw4WXYQlkN1LLKhZiOOR2czA3Hu14kkhiH0Uh5CriSo5g==","shasum":"a7b6d511cd2a297d538ca8959778df8975d22607","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.3-beta-1681174265000.tgz","fileCount":9,"unpackedSize":24239,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAFHRgL0dPdBcOImZDSTwpDT9swJb1Xha9DhnXRQZV4FAiASu6pZT4fVLj0f43TMeYqKBkr+py65PxfTejUrt5aHKQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNK/kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonLhAAh+iwaVxvIrcE23d6oU9zQAMDp2FKASrkJI5gThs49ISC9ujF\r\ngS+1g3xMTtfpQ4+gJOB5m1vjsjeNvM1K9BZ2myeO765tFkAof4BgkBFaa14w\r\n+U0ZXWTRHzRFPj83xCIxr284py5Udzd6ghod/q2HRs+pOj7lGbf1rHltxg4B\r\nggiyuTOMui4cn7lZsLP3D9o3SMaEmfa7rKb4WnnAXP4bN+WizqYkkgjB8jRe\r\nTXQfp2PuL9p2e8nlX2uuSE7gYQr+ze4o4/5LW359BmQ5d05dGEXb8BWoq9GK\r\nBSYUTrp4NXv3RkzRuuzXbQTmmBTKHZhHgjXeaikkmfFmfWBiSGeM7JUv/Hh6\r\nFzUK8f3scjrDWUeLmX3asFJ5G2imn66Q/dKpEXvF3FjReQgZ59J+Gx7e9UQe\r\ntK/kxMdGH3TBq/fHSA6qikjpZH+y0XNe1LFo9uG36Yk06iik7/PM09RJTCdX\r\nwRuB939VvIM6igbKcHuQKpOfS2qIShAXxW36zbxyuK/dpTQ0+vzotcMkRYv3\r\nWXpybQySuNkri9mL8AmNPu+432v6ecBPLQ3JrCMdzKDXMc8UTpm8Z5AyfmT2\r\nroNHRJmE1XD1HFPIy+X5jT1UA0UgxZslLpFC6FzWSI3nVvHrVxkYNF0oQ9XW\r\nAAClVtGjltnOZzcpoEg8OjaSU2+DTNksdBA=\r\n=A9XQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.3-beta-1681174265000_1681174500267_0.01894520611607331"},"_hasShrinkwrap":false},"1.32.3":{"name":"playwright","version":"1.32.3","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.32.3"},"types":"./index.d.ts","gitHead":"679ee37d0f637344369e425ea2dd45effea546a9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.32.3","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-h/ylpgoj6l/EjkfUDyx8cdOlfzC96itPpPe8BXacFkqpw/YsuxkpPyVbzEq4jw+bAJh5FLgh31Ljg2cR6HV3uw==","shasum":"88583167880e42ca04fa8c4cc303680f4ff457d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.32.3.tgz","fileCount":9,"unpackedSize":24201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJD2L/UZ0NBCI0zVjAzvQ+oAyt5oCphyhyW19vW2voZQIgDOKoDebg/iZH3OeFnkwwlMko5zX0goMmIVFIevRthLQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNNakACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqG/xAAlTHkGTcCJXhuHO5atgPB0d2fpYhKKKzg5OK2MiUFYIfBGcgp\r\n4ee3k9qfpamHZVqtb8nsCuwFgIog1kQu3gwPpx2hry4b42SYn5dvnfKWnNAT\r\n6+s8mkezbqQNtVd4cyid2/T+vBmi/B277NZrJrZw0fcT7Fc5QdSwctVgGJgV\r\ne3vnd0SuIGwqMXDhMOPPdbV7BnN1xBEJsazmhsvdQCdzgnkroJvKI+7doCTm\r\ncjb7wUXmEp89oqyZknzOREghiSJ4oWpjsWl8WnPVq9BaROFel6WSOZm5OXV4\r\nevXMWJ+N9udPvdvCSPTzIre26Y3F+FiJg0wMi0ltPHkDmaeBvkVaKd0tucNK\r\n0/Pl5nnerSl+UwYpFPnR76q5GmEz2FNsnFEfTnExDAmi6V9pkfJvDjew5inn\r\no9PuO+5KaB4UpyQuYNXmgAAqtRVfDxvuLneKP0kY/yAcrVW0sWLu83juAIWq\r\nOPeh16Le75xwZyDMMwynxPoNiZTP4AKz1JFd387vtwrEvP0sDdPX0qhf6onC\r\n4KQ94dPSBYOsm9Wobt+vXRf38Is0CNPHgrnXJY//bQXsxsA7R55Rlgop4PmE\r\nD7FcLETMH6PViCcn0t3FX79goW7itUWtZZbTOPwV0lZQ6DRv7MiFOhuQglQU\r\nW0TieiV+IqVN3diLSuEd0utzteo5pjSm9z8=\r\n=0iDe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.32.3_1681184420149_0.8765967479369823"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-12-2023":{"name":"playwright","version":"1.33.0-alpha-apr-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-12-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a5749c033d764b0c74e6ae75686819ea833dbdf9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-12-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-sgvmPgHU8peNjrM1ZtZvWz8aakc/BKfxShjgqDSzy7oV2SubDrAjpK7dQ7NZRvLCTKMBTehI0xA0vRtXDI45sw==","shasum":"50d4652fa575309d9dbe20f6d139f33ce6461f3a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-12-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsoCZ/PofG06ys+rEfGBPKmYrVRSuuWmBBLjUf9mv0+wIgXbIiyAXZ10U1zFdpGF8gqrCuRIji53ptsYVehkBsvgw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNfp+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGBRAAiDGH4aliqz8wA7bS6BN2G9Ab7ptXIAKVeA04ZX3B/MXkifUz\r\npHQx6wbxyvRPLuDPk1Q2Cnaj8+P3ZBCX1VvgX6YX8JpHK6X8ymdLwoIKkY9b\r\nlllggRzT7JNGJoSHiL15FfFfG0mFLJt5UOGhSYToDmTEdXRoqfQ2J+YDYKln\r\nuU0Ir/8f0fId8IWxa+LhQfCiXQV5NyZWlmN+jIvcfhiDzHQukx5iLWmddaA0\r\nIe0U/en+b1oReZKxZXGhZroGuuhHvtkRrapYLZNU7svjd8ZBt1NdAs+aX+Om\r\ne3VGu0Fe9kWHpe7KC4OLlNgM1EGUjv85eJq+4qCz2inAxt97IA4DWjgCe/aI\r\nOnMe0TyFFf4CDaX4g/tsoICvSa76HnyeMgzjxr+OCpdEY1bhHVIDCzlQSAPr\r\nj7aW7s9hblqra5qftr7jv8Fk8Quc2AsRJ8EvUlImwkrcQn4rfwUTsnLcAcBM\r\nEKBJjFqyxssNbJ/Q8vsxB+Cpnn3GIt36uNIGq2PngSPg5AMs/YLnK7SU3o+E\r\nbXa+5H10z9QO4VtmArSbL/xhfbOR7ZKYC53VzSbsTnSiAdvp/pKD8t/IyvRf\r\ndyKDSGwHisGvTEJul5DbHQ1EGZrJ0/Y8sKCnsAw9b1tbbAMIK56hQIFss/9H\r\no4G8SWwt2SXY6/Tx+ddcStRYU0hKCwrFcFo=\r\n=kYXn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-12-2023_1681259134741_0.23122217053840344"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-13-2023":{"name":"playwright","version":"1.33.0-alpha-apr-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-13-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"90182a319dd1d5cb9eee73be51724bd0b12f73c6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-13-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-9ozir//h3kCYGFvHwz7WMw4IE4j0zJLeNCJn8pJjoU8GVZWImynt0+y3gePZgC7wOaw3mVg4cqnSiHJmWiy8kw==","shasum":"9d2c0c3965d5ac3f9120dc272b3e2ced0a52ab25","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-13-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBP4Pm0qMnpPDkmSMlmsv2k8Oi657ZAKuMUu227mzoomAiEAzdt2txKPQvaVNzIMTvrQ/b6687RVNJ5RqyewwfcBEfQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkN0vIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/xBAAo+9XW/vnZOFaQm2pFIaSNm0+xzSNsaRmxNH05ew9eaRJMhe5\r\nsF9hmiTgWIW7J7l1ZiyWTjtOXOUvWRkXFp7xv8xM+7zXFRYkIC7CWEri1CRn\r\neJ75KywjyqsiHhOy2JpryUM74dABA6HzhUOxMLhQtikflILK+iE9Erf7gWd+\r\n/hFTuizUQuwpa/3xupqHCXdYCC2eowQ8TDH/sM9QMr/DmEbup0UWcLA3qIiB\r\nPC0BTQ2itraL0z/qICpe7o3RcYvzUDcyVZ/RuYIwurTtHxUDAerFR9cuLk0b\r\nXScNPE/GXoYqy+1dtge9LEzqJPnaj0hLg2VoLbKa6LP8wvxjVcK/Kwi/SO2Y\r\nS7XpS48Au5gtXrk07WhT5aDWIVHmShOBVMls2jjqVlcPmk4u0vuE1ghIirGD\r\n8c+LcBmKD/MRsJgDKwGTcmXnAx2yYUA/mMInekNS+ydhXzzgjy8G6DmLoy+T\r\nWjvY9PeqQ8ZetNnz5x/P76j8okFFhLG/Ttjj+0TWFVhj2ggTwUQ2Yej+hiWm\r\nRMLMN7XfORwWs5k1EuL/1LnuB0hu18gSiaa1i1f6Mv/VnK9mT+NKJ3UAGP73\r\nrWI0/GbXu+KsnVAbdleOayHfNnI7u4ZH7d3EQRYHTObtMxD7I8XJQMwLLl2Q\r\nkdT0D5gYuw/IUY9yoZtssA7xhZVjZ9JrFxs=\r\n=Ue97\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-13-2023_1681345479885_0.38302001522321527"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-14-2023":{"name":"playwright","version":"1.33.0-alpha-apr-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-14-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-111.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->111.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"da87a0af76d244b977a13702dff86a004890ba99","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-14-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qMdkCHpZJZxRghHnpaL4AvuSPJ674WKTfXNSB8igLuM42LKMwTY5cmPHueBFT3mE06wKN0DFJeSF1ACA73rLZA==","shasum":"f2b5e35b0ca3c63586e4d90c52162642e7c52a07","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-14-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3sXF/0hqV/zMIZjBbqssQ7Vn9Fv7fLbgTSkM8EU2KcQIhAMSR4TGO6hbl05YaTFTX5dpgODhDYAoTGwwHlgqZyZbq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOJ1uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6bxAAmxqbvGAUSnhp5Y5Ml+y9XkTWB+AlQnu5LMkMgtavejVoRfkH\r\npWYjBQW3G2qLCOw2SnKey8dpzmlrW6zuf2r0i6ku6SjiujZRrEGq9Uxuyz7D\r\n2cFzhyjTsmon0pe9dwwXQODzs6AQs0RPynV096fxeVH1vrEWx91ykWPCmk8C\r\nMVGOtjQehbi5ixBSIxSlKtyy2PzITahm+DzNQmPBGtFNkKIUCH9DD/TDQHDo\r\nr4hKdylMCHceOXEsIwhme3EIJhpQ3qn5P0liQWSeAdQ3qMueI2Bus73smpCl\r\nqW/accqczzoT6Mq24H/dWiSGPyQu1pxAeL4tITe0j/14Vpf4ZFLvtVpMWfvu\r\nzBZPyi3F7ngeWqX8ZttIxR4UQJd4WmqC/gk0TRLsaKBH/YY/Y13/+IY8GmK6\r\nHrxDgmNowzPyANz/o9gt9BwOo1gaDYPZ6d3zwC3f3MVTtiPpktJtTXrRPQ3G\r\nUBpsKo07RN1X4dRQSL6hF9TRfrMDX/ofPezGVdqsz9+OAcffh/Be8EaWpsA/\r\ntpmtARacxM7OgsdEKti/i0foSyxnnDvczurpzzkK40pLY4GMATDNKJUB/ItX\r\n0JR9YQrjZWNQvjkX8sl4fbLJ1vL01/NjjMqNdXfCE9R8af03zQy1BJCMTb38\r\nJfX1SmXU+9zPr8fXcWOF8qNh9e48NwDzEeI=\r\n=O6ll\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-14-2023_1681431918003_0.4536466352740376"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-15-2023":{"name":"playwright","version":"1.33.0-alpha-apr-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-15-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1fecc20238f0a1a5d942726f246decf6fdfab8de","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-15-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-w06VstXuSTGk0REpJUesz5IHp9zBGmks+SW0015Pgca0IBmQ+vE7t75VcIailnH1EoEUyfoo6NZFqEGQIuGHIQ==","shasum":"df9974de8fbe5d642ca8d7f8c2cc7548d008eef1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-15-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYbDa1PHocdbPQ9RiOEMKjjYf8gju56oPaqrk5Nj89kAIhALnZTh+RpkfmHL4OMzc/wuIqJmj/UNuFxofErY+N4Mfo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOe96ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXHQ/+JgNFVClvDclobCuTtj5LEUd8/pPiVUqXYbpujerUr2m6MDRP\r\n8UpFcv4NHsOINKq8bRYD2EtYSiXpY3mt+6PAmZ1gbrW5RauvZsmke3/yTRan\r\nMFDyaQGEhV0h4ilIbpTBxzYc5c/OQXEe5xGb+4GkOG+xHW/rPdM1CCCRInUI\r\n2cE9QhrdIfYB5lpPBGnJ30ZUvDGfbo5VHeK3gDqD4WisFyxkkHxaEk4g2dQ8\r\nQgnJ5YxwbdRJC4LIZDoaCfTi+fj2zTzXAzJNJDQyscCMlPxDu7sW/g3rMYME\r\ng2zCcEEsRqUOV2n4UjUQb9k0HRAryVp5kKkzYfUhV/BMcqKXDUItOQmGvcjL\r\nkWNAhHJStGQSIDVUw2Oj4+cWCTw6NPiMoYjqbuPd9SwBMOmybU24cgdfKqmq\r\ntKZET8MV5TbZEmzAzTWKE3RP/rtJwl7kwFUh5Qe9I+7A/g7eSmdD/u11aywr\r\n5MxUNcaQRIGkDuuQsmA1U1m2VBCGgWqKbkQHQzVipz5rrRCKxwnwQ1AfOx8W\r\nxcmjj/Nzd3ECzfAJh65zOl1mlFnhoMmAYNLYCrYULMe8jcutcI2qkSFz8dzI\r\njNEJfDqtDq2+jqvkJwGHXId08jmf/9XNF0LAYzxY/FN6TKvrNd/BfBfDRRY4\r\nFAprdTya/Fj7UDtG3jXeKGIK3wr2oIPsuM4=\r\n=Rnuu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-15-2023_1681518457857_0.17122110885867992"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-16-2023":{"name":"playwright","version":"1.33.0-alpha-apr-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-16-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1fecc20238f0a1a5d942726f246decf6fdfab8de","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-16-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-yCKjL7yCk5fzX2TqZTt85Vh0qh76CqnVp6DFc+FCWYhWKkSnW3RQKSkgmqko+a9jkBDvhLmwtopQE8div+3Wmw==","shasum":"57101132fb07619d7c83aa5402334dcbc4de1ebc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-16-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDr3ueDDsxW+z0qoejdKMosZKBXnU6DbQq0pvsVqkkpZAIhAK0Ww32yx7RsV8Jt5n7OLnq+PMsilKpfLvnzBJAhefUW"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkO0DsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOhQ/5AGlrIoMAizU4onG2FvK/GJec/hpQO6uHMr3mlqrnSPN93yil\r\nHOb6bRWU4akKyzA5eTUJUm8Ur6bQbe67BZSum+Nf6ffnuPU/FTQDf5zZIH6R\r\nJ/2sdXUI+1w4av+p8i0pDOcGbG8snrBXjNseNq5g1mMW4FktOHyFIouAO/et\r\nylynOikxSSXeblGgoS+Jfih6s2l8MaJz2eYzQ+bT4QNQjNsg25vGPd6eUQcX\r\nxywFNUtn6GYs/RqNftExS/ADMj4PlxJAvbW6BCjyh2gYPbOrQH5tkOtLI0SN\r\nVcGhlhXKKB218SVaqFMPb+hJWEn49Xt38oGw3EzuNL7awqSpST+iXJf/QQHq\r\nIxOXeY6Gh5LgVBGMdl9CmbMu7ekIKFKZwD0DDozdzzXwj/WGxBQMVbNDd9Ge\r\nu6+k6DyPNFUhIj6Qh073l19IATwgsXbAdZFGTYWKXxa5RNqoItLPOGjDJ8sY\r\nATcnA7CySSLpCQhx0DSZFL88zFcCXo3RbsxSDygcWs7ticXjzUl0O7joY5Ey\r\nqGRTi/SqboKkiWDHIcbZlzZ9A4wJ94xl/aOd1fFELH2CsxdqIyvRqA1IlIeW\r\nB8sbMGv+fg2kf2ZHwWaLc2vnJv0CXXgX49FMTKfgWPsgImaDh2OTpTKPxc4N\r\nBCAqw1qEISdgJlQXSmLfg4i1g2S0FGakB30=\r\n=Dcpi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-16-2023_1681604844185_0.36172491724075284"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-17-2023":{"name":"playwright","version":"1.33.0-alpha-apr-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-17-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1fecc20238f0a1a5d942726f246decf6fdfab8de","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-17-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MMv9QFeI3850nfA9IaG5HEh+5dVokxKhDbSsVm0SyO6jVqrHMb6+4oPoGVYl01jjL4ZESdV+pt/dtqPadPeDQQ==","shasum":"b176a2021c3682aa1ed718f44f233b3f427b9935","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-17-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMUCyquUtjX61ELrhipxdQcXW92IFjf5+qmbFWrc3EWAIgGCL4H8TVSsJZ6bUoOWS/dJAY3CN9+UY83DqfhkahfnM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPJI1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgoQ/+Otd6GLcpAIhuKEC1zbK2VYHVXRhvVqKAHDm7x72bAiwp55b9\r\nQsemj9dtvYxGIdeq977uGrOX6nFnhHag3APigyOagl9Q8suXupXIx1GmR+mS\r\nzM6oVYxylZjrb6CiIOUSNhjaAnv7oGz/5DT0oHTSXDGHaQzQPi3Egh9+6vV7\r\nys1JwZIvf6WlYPNW83l9VMUQsjD6uySI05KEfrWio3WXCcBx8h8hNGCgBUXX\r\n7sriDN2S3x/RyAq8SO+ThtwYA8ECRNZQQA/5LJcu36De2F5zUVKnQpMX4QYg\r\ncDyZ5r/NBnrqYQoiPdmbGQ1Vi3sygrUcSSBJMYaWvMEqFjjCa+m/TGBJqU5B\r\nwdG5USHfNRoYqp0mE5xmE4e6agzmklnIV7XJPsKByETJJ80LCBQGlu9VGyi5\r\nGH08i3Rcx+cpQtQSwZZ63GBMtZ1o4t+Zue78ZmTAUHvjJAClNtRqRHzkUcl+\r\nDYMecspCHY+U+Mygz65NvcRH1fxkahmfGfpBmCa0pe9HojdPzf/ZfZXlHnBW\r\nPfDatGkAheKvIPBCvjUXXD751NBYpHLi1RQhDRbDwk01PPa8FU5eoz8IxZ6e\r\nAkUVfhVkD0Vryt9zw4ukJXcKmeY2TkeMyGN7rNSyBoWeM1yAj4WlFYf9DL4L\r\nGGdiaeARQVGdbfUjHS+y9wlsMYl8cVWwFs4=\r\n=4FN9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-17-2023_1681691189014_0.9373856306680013"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-18-2023":{"name":"playwright","version":"1.33.0-alpha-apr-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-18-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"00df08b3cf4d046d85febd648be1b3ac38365e90","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-18-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RWJXMQwwCNihsZRpKktuTUU6Q9I02DhxPczIb+1KY3DeknOnlwGUyoL+wvKhLJ9YNT1OXf4+U/1pwYPZqZ3m1Q==","shasum":"307ca80a0ffc8abceeefcc215c920bad68827203","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-18-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEeYxWLqNf0facwcIi7qd0upB9rgq5DYmlqAFheLhC5IAiEA8S1qT9xw1wz/vHQfyceyCSiEnDKZ4h46biBVDwxX/RU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPeOHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCAg/+OmMAQUSRyFpAkKtecCSVhYipEORbGqO4+zl4Rc01u/oil7tg\r\nePIi7kdSO+r68pn8zrkOjguIECSOzSbENv1OjmJuSveRzJi6pi+oVoXz7FMi\r\nBioD8PgOV6/LwkgYg62vl4qdaxr04JR6P3s7DBfIoHIMVCTqOFffVI7ramfd\r\nTWw+ZXFodASRBntTygBrN3aK+TdtYBTw0IaPrPvWkXBTBrWBq0utxPlR9DaV\r\nM4h8b5WkNgda83XHJEir7V43D85amEZPEW/mfaB31BH79a5MeBU9I4NlJl1n\r\nQc8qI1953u7AmBgtGlX/ljTPvc4wwhIrlv7KJyJ2eVHHy+h74/6EVJ9UNTWQ\r\n0TnS/oTs5y6qfWzisJkjLB+6AorVwGa0wp21XSVwfc+O6v46iX0+s1oHyBPm\r\nwblg3/7ADcCgXGLtBai/qhIvnyItzQl/FExM0GpsQ/kGbqMfgQFi5ehWH4bk\r\n8T75xjHtetVFu/XJ/oIEYyDLVjPCMt2xa/nUSckVS3F066nae+H8GGjt/RZp\r\ncgqR9oMOzclDQEGgUdJJLJDPUsaDGEKH3zp7/QJWuQbkvpZ+jlU03BgD81Ze\r\nMAeucaweHwuDP+XS30p9x8wJJsT8mOpJu+dQnEeqigrOjWSqDQaXukrICRxi\r\nM3s+rwr47IzRKv5rrW+YFdWmDn6NUvQQY5A=\r\n=8QgP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-18-2023_1681777543563_0.0008676464178898335"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-20-2023":{"name":"playwright","version":"1.33.0-alpha-apr-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-20-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a45f04568b0c9c398eb8e8f23eba4c7a101cf8e8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-20-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-uGeCIwqI6MCcGKCUdX7qALV3Er407iVUX4pzUKCJ2DTKQB2MFEldGqEPfgu36M/t4/cpgq8ORNDWX5BlCZG6HQ==","shasum":"a6c12ac0c29bd8e97c13a63bf22e31f67d310092","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-20-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG9xfqWDeIN69g535ffN02Z7K7ytKjRBg4d2BIsaljcjAiAvK5RTxEjkwQmKnH1vBFjldy12TSYTmsw8R5g/Jovaiw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQIZSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOfBAAmXsHoml4ZLm2pFNlg7uRVmPUEFNce2YrZeDWvBTAvbM1gGI3\r\n2MT28QVhsgQ43pL0hC2hStYmL8q0mmrveF3mDO5E0y98uQJqvwoxG+05FU/X\r\nmsSbIyQt3ZMn59xVneNwk/qBGJHrzmQcAjJggHaTf5+28QhFbx8L+EkF0HyQ\r\nF7k5Gq1pPcCxz3HUjeAnJTpcD4K2LnlefXGA2HXluDbOZs8VHkudGloN5EoE\r\nKKxbiQTfca8zqitoDlzB2Dh8uztuwEbkAcyXmmFNQav86SOg6o0ZuqheMcRg\r\n28TKoGU0q0h68CcMuyp8QRbXATod9Nko+Cvs0NCcxJnLJEqSrXtpseZ6+X+6\r\n+BiHDL6fDniSP/f/1TMXRHvQDCVSgQGKJ3fp65/BQyLnUAaGr14IqcCNW8Ir\r\n1cuNZKnYWmOPXPMFoN5S4Wt/g5tkJqMfZjhcs6AHti0xBZM3euVTc43H6jbK\r\n4b8eBKIX/hDlVIYfN440VXt0l7vYWYNnNI4o0ao4JMG3Sa1d0Dkk0WoEhm0A\r\ndZE7vNOXElFgQ9MV3Ehr7mKH1RzKiGwLFVlPjFsXa3Obj3cJdkmDxxUgxT9i\r\nC6Tq78oHVG3juFx5F1dN9nT3doCsHJ0+55kYjZ8qKJxxDQoh4mgMI4/I2BjY\r\njggaZhk44buSsUOL9hH2q3dZwAtEo1D3cew=\r\n=wL+r\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-20-2023_1681950290593_0.18905961532851112"},"_hasShrinkwrap":false},"1.33.0-alpha-1681999635000":{"name":"playwright","version":"1.33.0-alpha-1681999635000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-1681999635000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1b9e594b408b30a3f41838b78aa1dc8f4ccdc34c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-1681999635000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wUCDWbvQsfMp52MEWJ3xJ077LpmIYzxTyWTe3y59vekd+MuFZ7puYkqSQwaAwEC35PnSfdOhCnGEcqT04vhF+w==","shasum":"e7f486e50a17a7d0fc975ddcd9dbbeb2c38b4511","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-1681999635000.tgz","fileCount":9,"unpackedSize":24236,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyCksn+BbU4QXU4Hv192PirC0tlp0Z4nb9GQb62gPdQQIgSBYJKfGpKdR/lToRzJSJh+DHbOQ8EMZlM8qL/7NOmd8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQUnRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXpQ/+K4Qy4ig+Jt9xT/2MjHUra20QcF4sJRFKNomlr9z/XKrM76Be\r\npb7ANMGRjexaxmQKM7pIap1cpEx18DCNyu7O1RJGKYPuMeZGR2kVVdf7u4qc\r\nhl+45gdF7dGQjsOL9EASDud6fONl6mtZrmB1623KMrHHi9882ts4P+2ZPC9r\r\nRkLL6tvtYmwz8mRj4KLiaz5req/m9O/4SQ79N1HovL8IBTv2cAbjZdrk1ldG\r\n7Uz1NDrpojbTI49YFX4+dCKvbnz4YWPY+75kBv0OCM8ymPVoRc9+8VfQvzFB\r\nIBhWT4J1ZkT0ZB4/Akgoz/ShREIdPKKHx5qIvL7Y97o1iihZUwIdEHpM1s0x\r\n9B4sBt0oiqV35cf0d34ydWYQVd/1rdvnlzC7h3QOcMvc5CDm5m3C3wuox920\r\n0tEje3NGsME4aMYQWaKhEcpIR9abkzmT2Xb72aJnZqY1JhAI1zYNbmZz5O6N\r\ntAg8C7r/jgTAGdmbZWGH45pb55CjVmBGn4sxlCc3fw6u4m/nzT3W/xYJxxA1\r\nUn+jc3OVfppu+OaVPIGpaE44kEx/Yy4xtOFi/2TtVuTpkwNLnUspMZ1k1xU3\r\nmsvFZ46IAWuqGJH62CJbTvPzkuIOClBoSbf/JWy/pgK26umI+pMj21Lq1FbW\r\nRuRiEoiiBYvbfsvF0hZZ/fVHv496QMX5lfw=\r\n=deeX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-1681999635000_1682000337655_0.6271051504942387"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-21-2023":{"name":"playwright","version":"1.33.0-alpha-apr-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-21-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d9a7aa584c1c0a657dadd2a20d5ae62958fb3ff9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-21-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-aF7l3f72vNvPa4gbGxtZXDkKnqUONGWlbDIz+fl+RyJ625SD7fOF8QBX1zU7qwV0iPo/24GPaVaJcQeS69QOTA==","shasum":"957a4dc60d6f8579fbc54c5cccec79d8ebfa9718","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-21-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf7rf7RhWW56DZ2dbtwOjz8o305hrkCsYjjkt5GUhEeQIhALHxVtPEnT3Bgg50QQ30x8LXYTZbdFF88KFhfghM6xAj"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQdgYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmproQ//d6W7cLtKM5ENJHxUoovMHe3BZG75P1m+cAUnsXqoesg1BsT2\r\n5o2WWPTVCCLPqV3uPZgP7rFhEkwr7ZGX2ZqOmO/rDF4AhU7xPFCy8h0tKmoR\r\nxHuCx0w78QjnFP6QukR8TS8oYj2dBDkDiCErRqSiRBONLN6mNZiFBkJscSxK\r\nYisxO5iLghQ4aIOuCBMf09eISaMlW8H6Ac81k+xboxrMLGHXz5Utlu2CBntn\r\niu8YZa+I3IffYpwiIh6ZKNNCl9z8cXEetH0JYeYTDq+Hlt1Bx45j9FdGUI+l\r\n/ArGU7mk+xJOn2g1m2vGiE/mWCDDmDYZBhRFipCEkmBlcVWjZeGjGKng2GrS\r\nnC5WHGWi021D/zvgTnua9ht3V4aGz7fHdE7UmW7qDRQ2tHBSdpFlyShiwqpy\r\n0K1ZnRmjgRL3x4OB0hjPhoKJT/H819wxa1vIMeepkDQT2YQFERT24idtllUe\r\nI4LRtWbCQkr9FG2xrhlW8pnAIPGIJ87v2WeOMRdKDQNVSUDL8ieu8BvcxOTJ\r\nEV/P6S7ItrC4jCN6QhsdrRBOLMs/XLhWdT4eOAb0RcY7KjCm3dqq+ngOlNxR\r\nPILipp0juYusTlHhI8TLHqc3eoxMAxxyB0sw2ZKOEAh7r6XbqR4M5Kkb5JnP\r\nvAfySJl+mHDnaD3uMF8bFNX/13dctHseKLI=\r\n=bBvr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-21-2023_1682036759936_0.42801206476095643"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-22-2023":{"name":"playwright","version":"1.33.0-alpha-apr-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-22-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"17df03c043652c5f7c0b3db59b75ee512b8b6d45","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-22-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-thoN+G5sJd1UQc8aAiSnIL6kG9yCOdasmNJF4VQNHzj4l3AR6gWEAvN0H3OF97loehlNeGUYYNQbiDV3m8pvLA==","shasum":"5e1e2816936767df1aba5bf5cb30e148eea763f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-22-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGa/GfuUdk7hETk7cmjKVwUhP0qed57vdwakXMPafgTAAiEA5Jtefl1BJJsYmO9lBaoSW9nrX14xsevR/6n82H0jSSw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQymCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1lQ//b23PXlx4i3mxYunSiKYO1x/F9fA2mUJ7qCf0cQLxGPO/fnpQ\r\ne+gFI+BQRuSEEMVhGw7yBXB+6FWVWeFtbKr3NLvRtfO8690hrGultI2urXoy\r\nVuG1HkDKLA/PgE2N35gsJNkOuIaQGeiAUAKo/ITK557f5pZfBywAUtEwsGZH\r\nYN7/T3OXFwwYHT4lSHK631Ooo4UTHUdI7zlnLApKusrDuo0akslh+Pk6U7JD\r\nMCr4ds0CwiED0Dthgd3BnC1+WsPp05n53ncUwPrmWDpfsLrkvZSBmhDvMAa1\r\n1Wlq8gTbuw3RlMSTHaDJqRc9Z0qpBkDMEvMwROJtPZc4AUbvPR2R6iOf6ct1\r\nI4TvbiFxeZOHQ6zbJImb7eXBx3vVMNxGKU3xbwgFI5FeAvNm5OX20TRV8l4F\r\nXtSdlOxUO/Kpz97oxLhjA9SD/7MXgh5Godkzx0Xi79FoOvppC5JJMplPGNnU\r\nvp9/yvO3NuaNUCVWgAg9ZQ5Q/fczrEmbLSTkJk4rXsckATiW7vhehKSXd8n9\r\nqJrJZcLweOSvmJgNyv4SUdbkFW/FJQP84kgYFZXQ9VdqnmuPqcQTkvTONqHa\r\nLImXFfZTqMX/UbRocR4X5qLxQtIpMH8qClPbOqcmne+tezE/kYDLQyCU5WDx\r\n07Hwq3qtm7yVLydWyyoL9JuReDlGkgr1QPY=\r\n=3exe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-22-2023_1682123138516_0.8841660779395988"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-23-2023":{"name":"playwright","version":"1.33.0-alpha-apr-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-23-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"99d4887053a3dd361e90b30b222f1a4a3ef40c2a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-23-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-BeIhSnTvLvzwXvZ8E6odHPGfny9JBIM/q9f3ePw97wTMLLtcwLEQ6aKRu3RzXFGCxbV+UalwEr3IP3y0cNXyYw==","shasum":"a6b569080fbc28c268d9b3e5e6289f23b77e94d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-23-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELz6YS38PTBQ5GRL5gDloti84ZpOzkKCVfxth7pIEzWAiEAmRvPqsEcR/DwMNRbf02UjzYVATi7HQB6VYcNxSR3uJw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRHuOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmof3w/7BqQAwM8KzBm9WIbKAppi2V26M/zDSCiE33Jrvq8q5cZ7GJvb\r\nD5Yc0cEXxX6G4q5njdywRFOsoh5tYqMxwcz5XYIhvEaVq5KdhcfQmH/VC9u3\r\nu9V3mqoXM/mGwreKxcmQx10jOA4ELkeU93CYujMGAACdaNgKKjAA8C4ZejP7\r\nQQCNexz10iU7XHgGoYzbAT59mRt4gWbL8rmBqUDnOswQE/QP+PwtG+KnGim/\r\nyCmB0iZnG3OXAk93phbPYTIgb5qLFaVLVhsLNqdmB59V7tDfVJaRnFWUAGdI\r\naH+eovNV7jIwyAs+0hHflQoi8H2ndn4Jyye0RJ+b3l3RpAQZEfGf7U4gCy7r\r\n5VgnQ7E5ZNcRhLmQrZ6nX+SHGba1gphyWLR+5Wn+mZjkklq0XIU5uBfY4Qu+\r\n2Wd1A0HRzwSZ/wY1QRydy/d7sEWH/zi9GJsMzwL48RRUKe8IQnw9Ds3u9NPE\r\nzyjbTd3R1FWUTGipslb6cmLPJxJ7Z2ToagRWKOCstUnLUFaPc6K4HoXySsQJ\r\nwENh7g+NGL1cefeCsn4Gig1rdAEK28CT+H/g5RXatwta0TvP8mk5EiMf2zkt\r\nyu39z80E++Y0S2UQdQhXDKyNOmMG8VotOyRq5laHAS7ceMrQkizcrOFPWVt+\r\nhMwxBkFFWmex6aaK7E+kYKKuOMA4O7GMv+M=\r\n=uR4U\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-23-2023_1682209678543_0.7547609404205391"},"_hasShrinkwrap":false},"1.33.0-alpha-apr-24-2023":{"name":"playwright","version":"1.33.0-alpha-apr-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-alpha-apr-24-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"99d4887053a3dd361e90b30b222f1a4a3ef40c2a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-alpha-apr-24-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Jx9GZJ/A+62/zp2mdA8OUsR2ZAzax+aV6OKIw+SJvim6JgRg898+4RW0Vto07Ey/bq977kpsl4SsEdkrzrdTIg==","shasum":"d4298049c7d03c6581e655ce6786b28e8adb31c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-alpha-apr-24-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRlEFxB32UT2CP49LPFNw7/Ii1DHUvKw9L61988kDL0AiEA5QFLr1lEqBE1ahR8fSQz5cTHDDsKV7MLLeWYKMW8LRU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRczYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYLg/+IskMzibXvHQK0x04+ewN6UxmU0rYM5iNzTukMFgAX5ylomvh\r\ne0yBm/+gXbehtDDaLaRbIldpWKzfn1RTCMxGqvOABOhg3ZAtk8NBk9udLirU\r\nu8eBX7vCliKPz/yMFPhe1uyuQzDWxKCrnsza4ojRs5PoTkYLLrC7/XfN6s+U\r\nNlKrLEHnhaRR4PGL0akaacF9GC7+STA/zukUv1CmrUPEmWbnD2T3mJg2Mo3B\r\n1Q6sJCqpcppyslQHNql0E9JJ0PeIvpY7B5QdISXYp3dee2wRkeVMAzRfnvVW\r\nQwEXxW33eWyFthczSURelOsV12Xcomx8oAlyG+sk0xpXit8rh/kouEnDdMP3\r\nzcgIzd78PPIsDi74aPcCRjvkxqWGga9vH2fyn+RlDP7vODv/L4Yk37bI7BsR\r\n6yq2+a/gjgT085f6As1OkRnQr7GgJJQljcqRbRWV8DjAw62jzS9w5anZSYVw\r\ndRNltW6UJVAg+2porW/oG7JnORgEclN7/TcQcYhldfMGnCbDKHBCegTy2TYK\r\nQkZJXp6SAOx8D1GO/dE61Hiy5Gm2ouS0l9iM3D1EoKR44pcbga8aqVIbZZ5A\r\nOOJXRTuNC0NQ/MxO8e1YfQ/aecxEr6ddggqVe3iiiBTHOau1MC4lem2Qhf3C\r\nQuNKoYtLZ7USbMEglnTrcFsfZ6p028DepwA=\r\n=5ATz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-alpha-apr-24-2023_1682296024025_0.24177233640510698"},"_hasShrinkwrap":false},"1.33.0-beta-1682341974000":{"name":"playwright","version":"1.33.0-beta-1682341974000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1682341974000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eed6c332831bb1affc1f39583a6afa3d377e0a24","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1682341974000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6MdTqcI5fvFBU7Xb0/N8SPItZAy7T+MHf5RA2L4H7KeMJT/rVOO3XLzkta68x6SM9CzLNEp2NIM+/6mU436onA==","shasum":"4260aae1fd707b19eb0a16acf9a541b517c294ad","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1682341974000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDMN1mX8gjUq6wg/n/6JlvD/HnErirV9rEpAyWcxRsIrAiEAlgUb0vP4IV5/imHsxmTYeMPB1+XkNSx5ExAaX6RhLNA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRt6XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWvA/+OEIXcA5TBZjlsVzTkIxsv+QK+tet+5Bi0cqWwtbtDhaM6uvC\r\nVDsl+X00BV6YD0z1McTSqVQBI1AbMl7XOQfe4tH75cFkEc+KdOE/oi/4Q2Wk\r\nkKAFX6RDSHMcL7lE1lS6/PiyXCRI8s1VMdml0rnCXn2WQHlhDqiCL718I8G4\r\nSQEDIUpxYx4Md5zGXMDxTPR6BNWYFh3knyr4+tcdzMUoJpL6RBbWkvufhYgl\r\n82t+aHCqhDIR0QX1cEwvtkhMqtqb+yfIZbc/KnoTgI5u6djVJUjLAdqvcacd\r\nwXUrh2XMibKVdvO5Bh9aQceV41d1QN2t+JkAGVotsV81k0ER4e9QUVhn3Uzq\r\nbgkCGEJTbZtOZ1JRK/wklLoZnFTMJ6v62PlfXOUYWkZrf3pho5jtJVAt7OGW\r\n74sroBKqKL5nQQSuYfemcsi1g8OYbX1cIP7/PIdhfRnzGInBVfcKy65mjqL+\r\nuh74xl/J6q4niVpqiGrO6PwNuJC3+4R+g61s6u2Oi+7voIzZ2c8vDwDDxxlA\r\nup+7c7ReJWeVSdMV4yOvVllujg//QuXDcAIClIi1HCMBfcz3JBDEoFO6bUG+\r\n87a+yKwMQlwmhDCW9mRt7cpuaqEIjYQfTgwQMxB/azjwarD0CYpQMlvG4o9V\r\nI6ttQPD0b3EKy9+XCRr924uXW1Xia0sOIzQ=\r\n=no6j\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1682341974000_1682366103338_0.966783263473288"},"_hasShrinkwrap":false},"1.33.0-beta-1682374575000":{"name":"playwright","version":"1.33.0-beta-1682374575000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1682374575000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"adef76540502ce729ba3567bb1413d43fce521d0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1682374575000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-TbAQgZ1zUCc5tr8wC/z1LXLL1UU6QLoR6jtmb755/SORC28kcXUg2jZUw8O19IH/G7cmK7uWCjUrmV4/i7l3jA==","shasum":"6462ff3e2ffec3b7c3d63138683354f52b3bebaf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1682374575000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmcmwBo+uKEam/6gG5Fs+ql95h9tigYEIntHviToK0gAiAiSz31wb8Td1G0W1ZGFTiSpIQJEGJ3GO5h1SvIGXE6kw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRwBYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7bRAApJlXX8dqoMhLPbM49Lj9YTuc9M3sHEad54ACB5p1v3SsXJK5\r\nRRarm1LMTE6oLizZf8Byyxdjg9esFaKlrFiBARoneTsgq2Gf8cbmwWZRNTPd\r\nNCnOlO/LQxaqhc4tFGK8vtkG0fWfvJ1bX9rtt0CBtwfRUTcd8BckMuzNzLYN\r\n9QVbl4l0N3NKKG5nHE7ntWSezqYvke1IVt1a0rqIxMVaGUZQTl4XlaiYnofj\r\nQZRuzNdVQ8wa8TGEmXmJM+RGyDhFTSypIjy8vS6ANCoHGXv0eUFarHlTR2yN\r\njKhxIl35wZ3pKa8qFVcfgsUmwAFy0zjA2fDlmaMHaRYtipx2flWfxDVdH6Gw\r\nVTc0XHfj90sCjKcbdw6B6xVOFoqx6xFQ7eME9Brh8cLqwaI8mQA5cObPH2OU\r\n1R2V+e12gaV5nN/Xp1a/bq1Jhj6mQbHbI+3EYd8paR5P7RDPoplH1yvswjvK\r\nKaTUvQGn+ZIv874qg47kfzCc6A9E5vNIWmVJ3D1c4pnzfJPVNEBr+yCOzlHN\r\nUsDYWu45vAVfYsiTJOzU4KvyU6niQllOPOZCbJlwzwmVBF+edTudobyxfQy6\r\ndTiPks/c/PuyBPA79SsgznDOt/2+MTkZdQ90jqQSq39MZ0rcuXL+qqNpU9sh\r\n2A3OZRNhTRCyXuwktZZ6bypqunYQal3cCkU=\r\n=2ChA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1682374575000_1682374744531_0.6869757432662116"},"_hasShrinkwrap":false},"1.34.0-alpha-apr-25-2023":{"name":"playwright","version":"1.34.0-alpha-apr-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-apr-25-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"78acb5ef58c473e4027512b6486e08410b50e9e3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-apr-25-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4eawgv9RShmmJV7mCnOih+Tmj57oYZMBD0AvVAr8h0UpfvsBEEwqzIBVXeYqkrTUKb6ZjnzKGBQhpMA11dRAnA==","shasum":"fb8035f01dd48c693c685017140f959a6e5d0cc2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-apr-25-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ6TN4hJbY1CtzsAG2KW3H5rwp3q9kcPyk5E0RivSOHwIhAN5PltM9Q8k+5+1mrhJy8LRDSt4D8e3e/SJQ28oEyq8Y"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRx5EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosTw//ZtYd05Vrw7Z+bI7N0e4J2jG8hnHDAlITa6yY5ILYhujoycAf\r\nmqmLO4miZ3ULheB3tlRNLQ4UAHzlMvqTqTWW7XmoPpb8jtKIueeXUnOmFhpP\r\nZCgaM9uIJtJGpIjbogMO+bsUSESo1tku+N62nh8457y9x6QBSK6ZO2QVcV5d\r\nSrR48E/vVFvGslWvHDwToZejKHAijq1ty02fnlcoYXGqq1/r3RxtlV/en5mt\r\nHGvXRVWZ1moZ37JknVBGZWvOXf3c+YXiUFgVyD9EQRL3Mo3FlnGgydvKcI7X\r\ntuh+WZ0zIdzOYNHDwDeYQkrm1/qB3jOHhnMW0LHQaOyLuVupuNNZ4TqxtAVL\r\nJP40IESCMYZyskjMRA8hGrtMQLsv8v6qAJAfPdWVe1Id70WpVDxikCC47mVH\r\n9aec1ktUoLbAcGhrRotMWF+40LGy2Hk75cCuUwRl22McmpB/16D7FYDHIJgo\r\nJjtouqBB1wta+gqOKsrrPrULtDViUxT7cKsSUFb25tqm6r4yYDDkITtyXgDp\r\nOp33GF4NEL9mWu/WS1ll6gzxNliTt+tW5ylD1U9ay/QLWx/uInhW3fRm/186\r\nW7J838+mrePqhJtC2GNVIfmyOhtYH4ybTo38zD0riolvRBS8LtghUFQ4qNse\r\nrVz7uWv8hviQjZNO1+tyOcpvt3QBIkAMscA=\r\n=hDJ4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-apr-25-2023_1682382404075_0.6032237007930752"},"_hasShrinkwrap":false},"1.33.0-beta-1682447195000":{"name":"playwright","version":"1.33.0-beta-1682447195000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1682447195000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9a3c4e45e3cafeda33676c13c150cfc7e7a44143","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1682447195000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-AByvDknmSbXwe82vtU7GZC3lIuRPFjWvOy8dP3NqrijmAhJV1VynasLBO3KowCgp3vpBOmYN1mwooHWaCAEnxA==","shasum":"b7ef83674b4b704d9228a07d130cd14f6140a851","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1682447195000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICl2uiUxh/QJeAYw9QkT/+nTwgzbCxzaYweBig+ZCpdkAiATpjL6GRYGevhkquf73rRMg/SS63IcCU+z+y03UIj1dA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSBxkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmql2BAAj+4LvovYb2/5d0IcYWdJ+tuUp7dZFyt1YN9RrGhtVNaeHg1M\r\niNw5Csxts+D2Y/SxbY8U8mdGoXWlK6Ih6W+/TFJh4bPf5DY64qYxjLWHzeh8\r\nMQTDu0C5JzAtXGFqx2OG0pYmCzd+rZ/0jQHiqzREVHYSkceTwpJMUoRflQXl\r\ng1175tei7xHC2GEKHWBiNlOpMOL+TOaVg6SdiBYu+2Nxs5kqUMvYIPolmcwV\r\nzLSFHO8RLLnyegOsHi9EgDWAoiOjfal1qhc2BNIi21EhlfjQ1V/RhfG5OaqY\r\nyxZPXc66RgSF0+I9CpChGTOj5bz5XeYWhCvtI75AJS/g39lJvwKr8GWDLuhs\r\n9ztjQNg+K/KDdyGveNmqa81tSYwv2R6pt3+VFPC3+uNMOvbO8iDvD1WwX24w\r\nk5gIQjSk69z/WENyfgR9xgoZej7wH6EHBOP7gpZ1UUIK5RtnZ//3VZKXCzHJ\r\n3tN7zpjs4jKRuKDTnvnXA7X8TqkgL/65zIrRJlnXZpuMtcRrgA0YThH9Tovp\r\n1BZeX4o7TF2UCKHmXOhKIu4C1zju9bg4ZqRdhiArJsUojp37ujI5ZTRbA2Da\r\ncDM/lxD99b7MUBmLukYuEHe8KIbKYUzEUB+jqyoT58XgsaC370adiEtL30R4\r\n/h6lwYNQXBIIHwAu2XHmqm4LNobrK087ReE=\r\n=0RQc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1682447195000_1682447460559_0.9506813286205749"},"_hasShrinkwrap":false},"1.34.0-alpha-apr-26-2023":{"name":"playwright","version":"1.34.0-alpha-apr-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-apr-26-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6b487ff49d7d52f72eca9150315d54a1076f036c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-apr-26-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-o1pbVoEvkBadk7odczN7pGpydeY0Z/DTP/xX5/wRKqOA7lrlq/jjjVAYhc6GscVUGLzHIDrKbq3o8qg6SE+gOQ==","shasum":"c2d038b5189850d9740840d91b1307960f63a8f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-apr-26-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARp95sCzv8bWgF/Kg624xyhBBdNJM4hV2Bz6sP/onNHAiAyE/9hzMsCtcexGYrbfxgBCoKTO6KV8fk2jf26XmG6Qg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSG/JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrh3A//c7JOq3+bljYSTD7+ThA1IBtbtq/3cm4cRtZWS27CkMfjYG07\r\nKZyqL9omLsSgHOvpwzk48rpn72TJRo5Q64wiG/dIWCnBRGmdBNLDpR7dhxBH\r\nMzZBM3N7STVL+NnK/ia/rb1O+vDqmSVb68VzqJ+kgGTyXxdjylslKuXsTEvU\r\n2owkcNt4OcjkAbPEKIXL23jMeFXQcmdywoKwYns13E4q1S31gV9RSOl72BaH\r\neI2K/3yf3JTIiJH95IPGgTRcsvoVMN5ls4FgtKkJPxZVOFajfK+mytIrqD3S\r\njcBb+lIiyPVw7bPLYc7r1v5IeMTwbVsRnZuae/L5XYK+8RzwPDWBDKyhTpUK\r\nikYCVmE7bn/7ce2J8oQe1hBOcuEZSRddeOM/Fn+5K5cKshiNzD1wBX4kRpc2\r\npRChNW/xrFevgU+Ftfit8UY5pcvda26D3VmwMaJOeHu1nQPcoTVSUpcsf9Ge\r\nnaWcJwrQHmBiEpJRNvbPh0cYcdFJssbiUvc77sRke1Jbkpfrt27f9eVm+zDv\r\nxkNqBeyw/wMOFglUoeakqAquPnyCqUCCvtaA4KMdZu2traFJotXazgFjfskl\r\nzYz/RoFz5JoLEsgEpwaUd2SHq/cnwBpSJosY4Tk+/vmt25dJQ0UIdSvCYtpI\r\nsFEaIJvj0BkrHrME7763cIuGsa9yKvv1P/I=\r\n=4K0r\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-apr-26-2023_1682468809503_0.3717560014281458"},"_hasShrinkwrap":false},"1.33.0-beta-1682539376000":{"name":"playwright","version":"1.33.0-beta-1682539376000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1682539376000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"64bca2269b63749efef9995a733d7d30465585e2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1682539376000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-haqxzzTE1s9T78D5FNAq3iqMG/hWqDVpsaWn0YPNwcGzqgMsI48V91Uc39XVlKHAIAvRN9QqrXSJnCKtQRVaAw==","shasum":"0d6e974c2efe0ebdf8dde6567ae2c366a47b825e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1682539376000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZAjmYY7L/8kucB8YK8deiuIbV2HrubrNnjhbbCq0abAIgcVeWoiYmhJiHwOL0dACcQeJzr/8PBDOIubOarPouIrc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSYQ/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+Xg//dkjI1+6KgmgQXLd2YBF224pATrSYajX4dvQaA2jK2zqhq1TK\r\nO2sxkei9S0wNar98U6gwoOif8l+ixnojhulVgsHrvJfG60kzgwd7LS0vFRfr\r\nQVsl8RpOFI6ykxIlDGFhD9OxlW/jxeBwtiw/SV+SvYPa7j0gX8OFO9WEfVlX\r\nLVzpeVG35Zf+S/w4fFgpv25diZwwztsU+pPONpbovjUMQZpdBAl4jRr+6dgD\r\n5/pNuUyd5XXzNwRb/WS+cVi8hALy0FlnabMr71+TmeRXVemYclVAUgFKyMJz\r\n2yrXXDAyHhkPPp/JDt+rHNwlHsmwBFfTV5b+qBayhMTCw0mJDkNYQc4CD2qi\r\nw4xJVr3IRKSiC+moLAfYMgEzSAYQqazKQLWzCM0Gr0pX0qM+HOdyD6TecVdS\r\nBqWyOn3MPki+kaxb+/AGjHbrddJCl5XxoOCv2codQJa5cjC6CooSCqxx+oIH\r\n5gSpHcB7wj4R+HZxG60x7tp+v7xvg+kO5IydbeNn6/y840vFN6lhOOLnxNW6\r\nOIKF6cCNv1Kgf+0N1oCCeO+RZk14EKjVvut0PuletGxAMVBaPtSl4nIqoYGA\r\n7q1+2MTnj+ZeLzctBmLCEqmvQhJlCJ82+f3pW7cvsO9Miykp2F+tr1x1D4fY\r\nftlScbhdXLernl3z2qiP5fTNeLz2n/5jYdQ=\r\n=rng/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1682539376000_1682539583002_0.6367019112167727"},"_hasShrinkwrap":false},"1.33.0-beta-1682539628000":{"name":"playwright","version":"1.33.0-beta-1682539628000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1682539628000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0d61e314f6e75c4bfaca2125a96aee2064454255","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1682539628000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-v+J5y+Yor4rrcfHDEEGkX9YxIS6Hwc4SOlL8s5MdBUgUVhwu7WB4KdXJcRtCuUR9un7TNwFMLUc8f/X1lyXbtQ==","shasum":"c05e8a2ddf6c1727d1d4f2622346cbc6a6251376","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1682539628000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKtFpPrkD7v+iZTHLO0nEivaQveTaQMQWFSH8UjW24fwIhAOQas1uPK9OhDf3x4HjMMuv9KDoVNv9CKbtCb/ps07z9"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSYVPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEXBAAhjVgzFTwmIF8KmwOgQ1IHd+6PO4LlGzYDO1cFfO923bKDz2p\r\nhfJl7v0UNLGfhQfkX2p09UTMSOfcm2P+hvr4dVUUw5THlJk4dKZ4BUrc4ulI\r\nfUhKOnl1OzxHb39YF2MmrCRMWSdkrZFgBONWbXWp7XnAKealxDKTDTKOMh5I\r\n/AjRWvz4FtYBGiyyItCZRTb/FFRrkQ251Spc4bn0m4MnL1L6l5Mt71qa5dlU\r\ntykZx5gwLB5jsKHLooi65bKCBV+X63781gYoYmW+vy30wDCeA44YobdRlhJU\r\nUXpICvOMojHTYRhqLuGfIDuAJ7ke1y792VGZUE9fRkW42qleALjmRqwZZlnn\r\nCaXMnOC2axZlpj4WIFXhktecjY5jIWBtJsK3TqrqhwaYWz1IHlYZPcqP5zmB\r\nLsKYsNxSUqshPWgwXm2RTSWczb3yS5h0F6yPp+DwvnmDCwcE4sXXTNMY6qTE\r\n+5XdQRuJuAiQdLGYHo4ZgYMgI6Jp6va883cBuqjAp3OPsO1f5SwEXCc2AsIm\r\nah4d71OnwTuUh2Jtcokp1M7vU6wwIyFod/kBtDBB9lg8UYTLykt1A3K+Yb9V\r\nrT0UsLH5UNpx+gE0nflXBk0XdGmiFGb1D3T0n1W+YrsZTYv9pg36+DhYXugM\r\nfvILlSr6kIPcuPdMr7BM9xlvFIvz7O1tru0=\r\n=KbdV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1682539628000_1682539854882_0.9286910605623611"},"_hasShrinkwrap":false},"1.33.0-beta-1682548529000":{"name":"playwright","version":"1.33.0-beta-1682548529000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1682548529000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2ca4cd018f55c7d8744d8d5541661eb71288c723","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1682548529000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-R8qtmDKwj7WqQHA0B0b8d0aoyjwZuY5BMUFSz2u4H0occs7hw15+DeTyuTVqhfJvP/Yd4BXtn5AqbHxb0L+xsw==","shasum":"536529b6ab153fe96fbe753136a4425c56e27789","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1682548529000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZtrntd7LBgPa94mgN37nrxDoEhCr6rF2K3+TcymdDrgIgEPSOThkPSvZt5cEoJ+uuOOstxJhXaEZ8dkdDg3DsCvo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSaffACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1exAAo91RACVVIx7kgs1pIEyLGuEgcXUTOTzv9AOdEFPx2gM3ZzdJ\r\nvxAYnJMnyc39ogmWS6usBlLdxxbxcnn77ZFyzyBZZHdGmHUp+Hdmc27yBd8f\r\nMaigxDk1ojhtt1+HbCSi5SABV/IwzE2OCXd0hWZHilvPmByMUaOxUDN+BDr9\r\nsvAcL8tvOglkF9MRa/dGDDeNjwXe2Iu0SozOLzUnSnXKKyo4Y0V1+bNz4l12\r\neO5cW5qMcGoAg20nmrsIMoe8ebXRt/IluM/fqJka71+28jdKNgJsZKM0nb53\r\npVXJjUzi9wjOxcus+zAqxOyA6We5/3uYroxiWk+iB0DV73IhVH7E8YHm3bK1\r\nEob4H5pRqlY2PkP7HJYa7k/R5+gXpbNy2W4AWF6tlaz3BMoZJCjNWEDcYx22\r\n/sEm0aUdd9G+y9hxiHFPP4o0SERevbjLcoks76iyUyinqtIn+5Kadfqaj5t4\r\nG0kbItIfpEfCcTay917bfE9ysOtkek0ppanaY1S6t4ovHyl3bUwWGfNPQs5o\r\n+MBIcPGWWWOAo6Eko4XvHp+gtgBKj9zisdK1hdx+2xAtDcvJoiQKh9LRe96p\r\n3j7urUL+wp7sn46kWXdKXZ/NAB9d67QNVMWbJJC72kKIQo3Pwj0BZaZPAfk1\r\nnIgbAk+k6AsNr/5kDaAWRcnropEMhN2qPjo=\r\n=FJXC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1682548529000_1682548703065_0.7188288143626753"},"_hasShrinkwrap":false},"1.34.0-alpha-apr-27-2023":{"name":"playwright","version":"1.34.0-alpha-apr-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-apr-27-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e809ecdc5d666c39ae4539855642cfa6b1cade30","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-apr-27-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mxt1S6jj82qHs0gzl+LY2oEHMN8lZIXhbMINEbSNFNU+yzHeMojZuVKtAvYLxdRFV2od9T94NY62YCG8g+RntA==","shasum":"388e99d9f0eb1016599cae4e7efd6f1d25b89776","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-apr-27-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMO53FhZC22ogzRs5LPj4tgp0Nx8K1imHcxw76B3Be2gIgPIRn3NXnoW5yBb/hdOa0Rr3guG1xXH2v5OkKXYZ8XFY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkScF+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLXg/9GW4l4fvPkEPqHHPxuLue39XAUjKb9j6CtX+Qcun5Cw8kuvQl\r\nw2IuIeeWLsAW7ePn2nEuo4CDbd8z919LA7mDnITlW1xn6b8PD7fHEMmoYPvA\r\noXhzRUn7cKE4YtDV12CsJdoE8Bxq0B996PhpOecuZ9HqXaKjBBWPCmVgvuZt\r\nbIo8YqWOzom6jB2EF7ndBP14v6bWtWAe+ezNveAMuAYRjjBNGBA+Ubot1sEV\r\nV7ym0MsKjrDuV4ie+6u2XsPxq40R91TeWi2KkgAkPBTYfucmR9zfYDkiy1SA\r\n+Bc0UwGZF0K7AkR+JPbGDZvDoNTZoPA3eXpSih2nxAtug16qhFv44Joj6SS4\r\nZzOHW3GRyaMsvO94Ovlf7vRl5rmk5mDOeePLxNeK1fpyxnpoWlQa54eXTZF2\r\nxMV9kQRcK0Ipx9/pfj80iskj6sa/omLPgDojaP8TCFgsjIMMzheRN5EklnPi\r\np88HXPOfp9Jmd3mLfCBUnreBjFlmX5BR7ikgvsV09L1akClOnO1sbXOfdXpo\r\nG6D1biq1j7A5Bi6oCNZ7ReOHaB532fxiV66snwyZvUYcKvfGq7bmCSK8OdAz\r\n2C32OkMrGB4tg471hCPJxKYSCZGiLvep3fii5vYkbYDdLjm6w3T1Str1bhbb\r\nG+yMibmygY68bMFVKk2Mfx3hzht99H0xQGE=\r\n=ZCgk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-apr-27-2023_1682555262101_0.2684456114990992"},"_hasShrinkwrap":false},"1.33.0-beta-1682558779000":{"name":"playwright","version":"1.33.0-beta-1682558779000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1682558779000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b64516e146994612d37662921d4b40acfafaaabf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1682558779000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Z5MHU3WTuIwZm2CzlZRQF48aTP0uMuRLvrgvQ9KG9E0pxqDoI+J5Wa5UQri8t13W6NZ5XDTpYbUdEkjuocy4+A==","shasum":"ac426374c6c89bdcff67fca4b15da666aa4f9679","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1682558779000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqnMcP+xu1wXhrAfoUXzl1Gjs6E3ubA3wWkzhDwYuDmAiEA8s/6Bp8m6CCSv9xa9UOkYyUUk9vJb58LKPlvZnx5QqA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSc/JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraAw/9GvM1d12QBjmx7a0LQZa5B5d/NVEEbsmzFt2wbn1QJI+6xxMT\r\n1GxgiPyOZtRFO3ydQmDSWJeODutYDkeIxxz7y3zwBxUdyqu9erh5rpFo2JL5\r\nVkI7fXEggkcZsWmP5jrKh5ShmT2mNzPdHnfqWOqeed2VDbxSuTITdVs+n5bn\r\nAiib3JIQamA1P5Aieh7RSFctDc5WHighn9nxSneUhTJaDnff9eGfF/agYmk9\r\nI0z/roamKUvF9a+wGBVZ5HQMckL78PmXmu4wNfTrDDrQp4kUeqJvEuu2xRuB\r\ncIPidOoF8nE4JKahB+ABNvbT/ikRbsxZgeEWOGuSuQ8A0ksNe3xE00ngUM2N\r\nG2ub0FH+7j88BzGHBIHSCOCqG0NnBRh+hNMD/YdKcuQ20jtg7wnJuixHvY6g\r\nXS4Dp0W2HKCzlNH0HQ9POQrVPNl9npOmDbv/waR564Pvl7W3AYUrkvBuIaAv\r\nbTedeEgCiF7v9I0ktwIFKygX+CS+3pelgoddYoBFsU6qKNIj/KXsOL07qs2F\r\nMae5m8EsehSPWQdiROaPPYh2ZSBoI1f7DSyxzF9wSjLbDXljOJ6zc6c0eRza\r\n0cXHRq7eEC24n4xknRdMIMSuqoI9rSMi/zfdQwurR0ER2BXiUvlvHNjJgeZI\r\ntMjQWNL+EypD86oLO2ZPOTxvKgp4TeAUniE=\r\n=yY6f\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1682558779000_1682558921586_0.26461374009254834"},"_hasShrinkwrap":false},"1.33.0":{"name":"playwright","version":"1.33.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0"},"types":"./index.d.ts","gitHead":"b64516e146994612d37662921d4b40acfafaaabf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+zzU3V2TslRX2ETBRgQKsKytYBkJeLZ2xzUj4JohnZnxQnivoUvOvNbRBYWSYykQTO0Y4zb8NwZTYFUO+EpPBQ==","shasum":"88df1cffe97718ab8a02303e12c9133681ec7fab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0.tgz","fileCount":9,"unpackedSize":24196,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmiZ7pszz3xJw1eWtkWdX1dl7Xj4xuwpazy+u5KsIXNgIhALBO/2xxRNB1N/QBGcQ+g8nhJFy7NQ2+VQ5QsUFQW6iK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSdISACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCHQ//VPOOa0oGzRlPJEMzOqH/el9MlLUbivIuFn+xeJrsKXO24jI8\r\nO55qyrJGOrNOW6vW5o3Vkai7ArvcVDE3wacRwD5UrRts42iOzgdecG8a22dm\r\nyCLy+3PbjK0cdxxnqt/GYd/bUQvZUwzxLcTA9dzSfHrVCo7p3tfYbQzBz8Z0\r\n7kozw+cN3XgaswJAQkVxYBMwzAebpnbgusoNNNXS4kwLtvMhYp/ImRIOQF46\r\nShZDKStn9xGgrRMpN1nFVkmDwUaYB3DxL8yixcuNN54+KqBwrgqg/o1BaKrI\r\n6N67CMg1ey2abn0gAMh1us70exDXBVFb1S7+e72/bpPrGPhMztT16wwfPvmz\r\nze9iJC+mWkCM9RzfPTcI0p7cwJQ0Wu96qGPLnxD7HeKQGtzvrRb8OWaRpFI+\r\n5+6DpFcUCwkVCKNIRJjTJIm4pK9lX0/XUD0AbmCrxJIP4HtQftwDgGLRswFI\r\nn4N+pzAlUURgiM3q18B4TTjLmTUs0z0rSHMd9Qe5mZYJ0G7iJy4FjSJJlANL\r\nFEt2sbRb3LS7QVnUAnWe/Cna6MiKW+HRtb7fP2cnjsm6MRAmly4y0lVAipfc\r\nRLMO45IbKQUMTZT6es6zAXicj68I60WkiY/208IzpEPHd1ASo5fDHpyzYY3u\r\nCUxG2UBMULEDiGkYdVfVx9FP/LDnX2DksUA=\r\n=pJ7x\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0_1682559506593_0.7269001379712405"},"_hasShrinkwrap":false},"1.34.0-alpha-apr-28-2023":{"name":"playwright","version":"1.34.0-alpha-apr-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-apr-28-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f08caea8f224ec0fae04019d88c4bc85c0a4ae88","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-apr-28-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MjdwSlM1yIwNRZM/FwJdrGuvdJnNfGGJTonewyiZcjxcgQvhWBilk7S27Jrn4SMUj1j41e7riVB3skeAnisHsg==","shasum":"2db51a0e72a174fb9108a1bcf53e5460f079c7d2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-apr-28-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCouoMZtzMvxL8u3FIEtwJktiR6uSmdT1kEgEhLTxtryQIgYkTIYX1KDlk8ig4KA+M0u3JTDXF+7vvI6J6EJcQn5Dg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSxLTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHLg//dSIv3HnKqH0dL24+olCBPyGm0EOBRQPf3QTyGuUudjGOZ8uY\r\nYY8Np1V96C7znTAgqUA6LFHxHE9Gh2k5W4yrUhzyHC551KxKJvE+DLQYt9dC\r\nDVe0moMqeDrowFfmg4w/VxXN2ARtZQ0CadIGqqcGF8aTH5u0ghcENLmXw/yE\r\nuYGnE4j7zpVIW4T2tkiJeCS2IlF6BIzLrVFUUD6aMoLswvLFbS0w6gVnzfZZ\r\nvBzSaZ0R8HRuCpKlRW9CPLGDxtAj5k576IZEs+bGB9/MT0tml8MO9+ZTdmUH\r\n12PKE8nbYBze8vHImYYuQ+0IH/FtNyQxGjx4XD2hFUlYNNNaCYgiUnGrslES\r\n3jbCZ2IJAYe9J+yNhoYul16Al7c8qMB3NlTdllBwO2hovSeG8AcY8+Ql/Qe5\r\n54ULAsQptsaTlp22Fh9yRYlSVYOEQVno1TArq98QTtRqaj3qYVSxRczKpiFm\r\noN6x7bzFnkNLC1vzcUl4gcONFBIRCxT8uz2JBC61fevVRM5GaeYYnIdqEtvg\r\n55bfA8/ZfjwnVtVjIlMKCRil0uojN6WPIlci56S/MjLBiOwnwa65zM5k3Avw\r\nC6tnxHJU7Y17PTyWDFtIbLrf1W+xbltB1XcvH5A8A98TE1nZIkTA0tUlesEO\r\nzk0UdRFKuaTQ2g3Egr/QPsQQGVzdiQNW3sQ=\r\n=5KAJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-apr-28-2023_1682641619256_0.8385436588904132"},"_hasShrinkwrap":false},"1.34.0-alpha-apr-29-2023":{"name":"playwright","version":"1.34.0-alpha-apr-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-apr-29-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9c29f24c65d8fe26bc804b467507d02eb3e967cc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-apr-29-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ww7obcXquwB7dTdq999yBieoejz7mmp7bLVLw3Bz8EyF3OG0AJoQmbq8d5fkPc9xowgQRbcuZlPV1StFg4Lcsg==","shasum":"f2da23981fbd8a41193c453d1a06333811868d11","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-apr-29-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5hz4zQ31PRJfHBLUypCipZVAHPHxMRhXMHn7stOkdLgIhAK2ajkUHVwkK06GtopHVOTrMFilNtynvZUws4dreC/oG"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTGPzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1xQ/+OX0CA+J3pFtjR+jtSnWyBrkA3NyzU1PbaW0W8nyDeSzLW9CC\r\nW4O4Hn9A+KQXtP8/TErcnA+IrT1hyPJFNtyQR28S6ujbRLcS06y72Quhc7wg\r\ng2GcCplegKJM5dHR0et5CVx+/c9Ysfa/i/bihZVmjYZSZzrY7/mWZKBONVuf\r\nL7FnxgqAuwnFubU1y+4pnoXatVT/OgsLGYwWp7gE2Ku1Y5dWFbT+dMnfUwCT\r\n8MMuTog5hNOqks4n/6Wenl6TcaVGZPStI6Nbrd2ATGd81i8FUvu3s4XEJJEV\r\ncO8tzirm7pbJ6wUQr3XvO6QcpP7Ebpa7r1kW3aJXCpnv1Yw7uB0LDG4phT3i\r\n6/NK44X56j0pRumpPjLgShvBJZWl9psGKd2+8mBn0kUQiAjrWuRkg+nJJKgI\r\nY5LEY1QJzDLeZu5NA60qrpCZqrribjf3Rq3EYv/e396AgtSmdX3pwnnoSdkl\r\nZKvRgQ0ieb3eFNaG6oMRYNQdqBq78WYDyaiuBSD6J6uTSYlxkmhEod+nHitj\r\ncUh6owkkIvoEPvVxTljisVeVClvi0L53tIIB7ifVruwS82DPgfPzrRYPsutZ\r\nXOG82ZTWcu+uCKf5ExGufPfMmT0ySQukvWuJTR22RuImw/c2isWgQKlBb3yI\r\nnZNnv5cz+Bnhmvnp8qUG7APx1A+c0V0PwfU=\r\n=/Zqw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-apr-29-2023_1682727923349_0.23208302585984764"},"_hasShrinkwrap":false},"1.34.0-alpha-apr-30-2023":{"name":"playwright","version":"1.34.0-alpha-apr-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-apr-30-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a1842cc70890ee47cdb524eea347abe83043d2b9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-apr-30-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-coOoDcKNLkZuBCelJpWmfV/KKzMTbPQTf/yg6PUaWOpa+RNzq/GPow8/DPtmGvlupMJzM0y/FrzpG2GUbSX9bg==","shasum":"ecd11c9fc0f543adea5062622af47797285c7e8d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-apr-30-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLKWWMpE5d8Q9Pm/X5nMULi+043+A6126UbYiBhOiQEQIhAOVDuJn631cagkF98il04lsXumlQ4eVmipq5NKDpNMc8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTbYIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrU5A//TZc2OtJ5IOhEo+NBE1u3yvVq3zkAkZstEy0F5EV0FOtHdDEa\r\nvqDAQIm3KRf6A+iaHj8WW6G8rF4Hn9z3aZqOVUOsAA82H/lMzj9hNj7w9e4F\r\nN3hSloWghGBUo7lC0sVW3dWUJubZ9HrtG49uiZA87EyzLTpMb2hF1ZXo5QuO\r\nN00CIVc+aXe+l2BmFMgYdVXSjpUqkv5tDNpGBEK+cRnss9GcYRfbmACremfh\r\nGkDPnKHedPpa44hzulbxIuYQlgcmZ74pJ7J+qxfaMDJq54hZ1+smlPtHFLcC\r\nXmVHNZuvfl+St5o3bWXk7SiXSzLqrw+qOY4xFKmYPI2FqcFD4SAuN31RKdje\r\nYpPTi6d9uiTbG+fkQeY3as1USBkaTWrfIPBjzomcwhfaCYaxJSXBRA/4rKWq\r\n50piAdIKSCsA9adFIxyQeeVsoOjjcemafkcnWK+wRZ6OVFA98qnuHE5em67q\r\n+LkOUmVlA326dKozUAP/PzqVPcjo86DkUy3g6+3hTIh4+6RPX9PdmiQkvRWM\r\ndLR+Tww70AMjWdD9JoH0kHxhGTEqGSUILDsJzvl4jrOWCGu3YMc6RsRRYiR/\r\nOi0X7rTpq03POn8ctDN9wmhhYnlKhti3n1tOJD51wKOJ5LkoqxpNAhoTsfX7\r\n3nkFcyPrg6sexgXVWsCx5EonXPWvkdV4FrQ=\r\n=oHZ/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-apr-30-2023_1682814472059_0.7855626583024962"},"_hasShrinkwrap":false},"1.34.0-alpha-may-1-2023":{"name":"playwright","version":"1.34.0-alpha-may-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-1-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1168525c07dcc96fb47b5464b9f6d4d9a6b4616f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-1-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-eYnMbyNxXNFpjecGjPxNl81Fjj3Bs3VkfeAOLc4S+84LMR1JhuBJ5GoOJz/042Qo1d2RqSZyVmCECFTXDFgPzg==","shasum":"436ca3423219d8ae63f20f1d2e963cda2f6d978d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-1-2023.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5tF1lCNmz5f6QC9pIqFB/v3ubwUl/So6jTbISWBuvgAIhAO79DOxjckqgh64/PunHzPe3qbFHB9HW+X5SUKNYIya3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTweWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBuw//W2gafMHJeIs5lxw8OKho+NziVP5nr/xrtJpXJsCOmgkqXD+s\r\nA+kA6VwwruvMQ6u3bqZNJMGkQFRpiqyRcYMwLvI/1ilk3XD0JYbd+oYUzgEz\r\nQtmKJ77yV9JzA0t09veginkPxJMQJqwl59ZJ7ART5KBOy389ZU2quVrqje4R\r\ne1xVLE4Kyj2Kefr/9q+5HqVOLj/SnWAC8VgV7fkYsFhHejCd1wqXy2D/VIox\r\ncvL1I/C/UfRCLe+JjADozSr3NMCUC8zTLf4vcbLXbDVYPFyVFvCPrrDzCfgv\r\nnWo8t/sOawV1K/9ncKFjotO3qa78XMhQeugkolnsJ/2JCl/okWT3xDWD/Rng\r\nPlUw5wvu6DsR5qZjy43UFFIZ5plaPGm9nr6SfrKeuI3iUcjCqjksFW5IYeS+\r\nQpWHfsSgX6rr1LSf0dZE4NFcf8P3chUPpnA0+395FGCApimwHJ/NuwiT8DX/\r\n9o7YMP2YQnofNYXMleVtaxIGLdAF2wT/w8diKLNHP8XtqV6kKAntTvFwxV3+\r\nTA9n59Nl4q4Ordd32/9IrkMLjvvpJXp9pJGbse7sGaHYNeApGwzGV6klLb0C\r\naUd4a9oPS8QxHTFUNQZeDwl2NTNTMDX+ArL8aykgsGGi13G/rsjPRxbOj6OB\r\n2NFjFCpEjkxzvSq+6BFR2aOxHAlKxOAavvw=\r\n=g6Z1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-1-2023_1682900886687_0.24180408275659038"},"_hasShrinkwrap":false},"1.34.0-alpha-may-2-2023":{"name":"playwright","version":"1.34.0-alpha-may-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-2-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"79408ff7a4d383cf44b29031f9b976601c5ee111","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-2-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-JySlQ3ObJBmHs/cGGrZs8Q4XwWPXBCKRDfL2jQYiWr/1XFUXSuBfiL4b4po4CeMPnLJRdya2rXq6ExCus8qYdQ==","shasum":"5b30beec38e6f2f3baa8059524bf4a26a9dadc29","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-2-2023.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBLLIGZHYiIY+w9pZZMEsolvmWyDd3bEH9+Lk7mYnQANAiEAvqsDfdMJYDytiHT/JkglUONd8ZXhtdv1VVxxYd7EbAA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUFioACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrgzg//diNssR6cOFTr9R5Srd8CicVdB2DVDodGUK+bY6pzE2JZpVH+\r\nUIcPW02rKxyGs55BzBQrhDgqlA8Owg+Y8R5sFHZTBge3wbaXt8kNLGQIZlVE\r\n/ScMcxI29VdLEc8tXRk8s2FoCHrwsRsD3lz5H5YtuQWNraLWfHnEMvgt2UhL\r\nJEYNTyRuVjCPKEuxJx1VcX0geAdic38XojnHIkIIW5EZOT3XXYdyCCdv6Mes\r\nu/nQiX3A2Q9DMI9OajxtO1ItxjCy/Ck9izzBKs7svqIFf2zMIjcJ8G4N3S5R\r\nFiLZpSWtpgLB3nhVZwKqpRqJgy1DPvjCh56XmcZXHxlk9mvC5WsottAeFwrW\r\nN013SiH0pw0TuaNFkel0dkv8P56ms+LgfN+p4cTayJoiQqJhtWP4apldhI9K\r\nbUobDsBQmig0IZyBq+HryaPvQC/Rw1hL10zcGzBgBcsciJy2s4hA7TwLnGFE\r\nGdM/vmDk1oeDQ123OLG0gb49eJ/evkwoWSM9jCgG+BYF9Ws+XU4SE2Uqkj+t\r\n851+oizo8bVXKTjtYKepSj7tU98TFKGH4V/JZrz+VRl8edSzbTazYCFEhCV+\r\nagXCzT+uusrO1UD1jKFo5WbG0pO7l9vsDuE7i0VzCdc97IEkTQ4vk+rSYcb4\r\nPsc4dRm0w+0tHLDNXgjwiqDqH7xd4gLllE8=\r\n=OzXB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-2-2023_1682987176742_0.2994777152786061"},"_hasShrinkwrap":false},"1.33.0-beta-1683051601000":{"name":"playwright","version":"1.33.0-beta-1683051601000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1683051601000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c104ddb2c3601e2856f809f42a72f6c00b6b0d7d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1683051601000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-f+yBpDFq9+8dq/KKgCuzRUkIfdY+lU2nPGzFmE0xwdPILtcBXYU8RL2Bmt6f9SXcBZmazz9p9DJZ24RhLKHuZQ==","shasum":"92ec44e5ed243b1d550aa5951d25315dce3dd4e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1683051601000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRZDTOTeyZOhXpKX4kBTIywPqlMaWIt9k2Ya2qkzoNMgIgXTSc446nofX97p/3IknxLIyxEBOJoRBN8e9QnkkTgBs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUVTuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRbBAAoMoIZOGdLuRbpx70I+G7zdYTRfoZL1vV+bk9xL2YpG3lTV3H\r\nSgpB7Pl0kOiQ2LMGd3itkJYtmOWoeDax7S9g4KOnKj8PT69JksLiMEQIK3UN\r\n5wmzB2+Y9EWH3y958h/HNHvoGP8wFUPHSaXwiVjGqbGUoL8z+vUQx6tZZWXD\r\nqqf0eqny3y2z7q35VLpiqQylPBrgrQkSz+9ZrTcC3TgHcTjHbaWxGJhY4gt1\r\nBAepMYXPKfQ64/as8EqBRt6VO/cIdtKOLmTwxmBLqYhiIKz4e3XmZMmppXJo\r\njle+Lk7s6tfqqThAXBGKcm2B6lgRYxwaF09MFKi0H8unH4ZGIfkn3cDYcXVV\r\nRj0SwpzZ9kL+Cm89snPPhlDEk/+L3MxxsQFoNGi5m3ILN/NidGJMqxyqxImG\r\n7Oi8/krYybD6ry7P4VWwplYTUxHspU5GELv6RIriYAKuJsIEDOfQEGwMRaW4\r\ndSVl1vT/o+V2pwcIFcd7XgKlq2zH/32TuWq91IqwRg0gemNVL6lz2+36LyvO\r\nzIrpLE2+iTiDzLH1OAHzbz9olJ5JHXvmN6ggc7byvbE3UaAQt6vAdBqBBBOp\r\nsnAxgC9o8+q9ZhybnZtS7YP5xW/6Dw2SJRwMlIzTe9KvJKd4/o11IupBRgxR\r\nug8tEo31SMYoEj8uGJrP3YngEEydpRUGdVM=\r\n=OE6Y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1683051601000_1683051757960_0.5647996383452532"},"_hasShrinkwrap":false},"1.33.0-beta-1683060826000":{"name":"playwright","version":"1.33.0-beta-1683060826000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1683060826000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1aabc97379ddcfc3b4603ee7db0400251b6a080e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1683060826000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-SBPHGOu3ZdvKzZ6yzC7WTQV+4j7a3Fev2+qf/g6jIfEDERmXMF8uHErKxJ/LSOq8jqk+3luga89JrGTm/NSFmg==","shasum":"3b6d1dde0b8c397c4ffe0064c441d8cebe9194d7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1683060826000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBL62q06bNySHsFOFMgUYQ/EtokP7Row688t+/q96oOXAiEApul4R08dej8LQe/S9pOrTOPIK0iA3BDIOJHNVI/VnCE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUXjWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolRA/+LdioLcWF/USZE0lsWdNYbm0Y+B9PyufNGePiBHp1AYPb5l08\r\n+7qJyrX0s9i/4nXW3BFiOUumTr5mBfBmI7DTN5X79pXrLu1YYn0iguETD5ET\r\nvzIGo1DcJVswbxGkz1P2pbMLPlgcqLde3rwClEa5wZ0w24VGVj4liwZPiWjr\r\nj/70SPfWknB7gc9LdTrOBEtatzTbTJzGZ3wzGAXznj62D1bJ8mLGaSPHG2E5\r\neOR/xyk90ojFJhSZvPmNpbzPixQ7SJld0rBHt9tM5ix+tYvEWDVVMoKLVPIr\r\nkDB6DYq8iu8zSUGZNHfaWKw8xXt/jdJ9oJEjBOX5t0YE2Y6F+xRoh10LVoNZ\r\n3ahKxbLZY8QHx8+Vx23XMBxIzD2cz2SJ9ibo6hQZr4grqRQVRS0ily7TTBdA\r\nwW74HAAG9thgCG4MRyl0b6K58K8SZ75pbDjW2a7DqTrDYm8BoAQSFF0tL5ag\r\n5kGTNYO3UYS9jnDKZwwHDLEKlM+5QgRUJ2LWziK+jaThMk64AiYvPXHhLx5d\r\nF7F/94Nf3K+DW+1ES5t2JsXHuRQhQS0yyScq93Te9S3nQQ4bbHD3+ZQu5uHT\r\nFMuonkyJtTv+M65H+7xBGk9THQb+qKE8Gl/0yk1C47pArbya5v55z7FApAWV\r\nRndycvx2SzkQDv7bAa8zt4XxAcX4ar64vDU=\r\n=Wgfi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1683060826000_1683060950178_0.06070672131184662"},"_hasShrinkwrap":false},"1.34.0-alpha-may-3-2023":{"name":"playwright","version":"1.34.0-alpha-may-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-3-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5e02022dff77e1e8a5d33ecfeddba4585fd01763","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-3-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-NeUGfXP6QyDl4A4/dbyy5puQiFkFWf1GP9VksO5/cjQ/ogVL05rKcPcHGlduxMSJpNyqSY1VNXkkySe1UpiXRg==","shasum":"44e6af7f637ec5ee3a74b9092be6ebd0c2d6ffec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-3-2023.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsPTruRaQEWxU4sLytrRO/Mx4EjfgCZnm+ior5CeIwgQIgcY11fZYkW4Gk2J/2UYKBjj0PPeIHIgcbQFonzExG8Ok="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUaoNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1AQ//S5zE/MpNhbqDTfGLrmZssJGPmMvU3NgQt1n1ZPunQF3jyN0W\r\nqwP2w7d2usJzzRBE4b+/VMV0itdgfT3IWCs7Ehh81Iku66R44dHDV9MaPcDN\r\nxAJkiBr0IER8sqSheUBW/g7+sJE9eFKMZ55h0ITcz8bOkSnzrxgNsM5izADs\r\naeQf+LaY2CSk4d2X68b/UTweHvKY8LIFAjpscmGUSgdVWFYExNjOTkxujD9N\r\n8Va5FrTrmu9QQqOAdisCnjIazs5QoEeRH9RtfOXreREG83IcmDGFpDYp6R6Y\r\nd3GDDd5aef4mfS+TzFkiqdL+CMeO4+EQ7hA7t09VeVQtq04dhuY5q/dflEn7\r\nrfEXYlZrxdmTjq+QqWZnS5ctt5oBdrHIMkL//61WHL9Vyv0qQgvRkL+oc3D6\r\nZ3FRdpfOVXefzVXBH3kJ1RN9aX9BpKG6zplf6B075aNuR5X+15KCfWv6XTse\r\nI3W0yTwzx0uD+mwt2LT3aBWKCa3Qp/W6LL7S7XRC/RBKb2hZ/gGGTHjZpIk2\r\nc3ABFGjYkL7n87ox3nps3OariPpqEH/QJETGzZM6J9pud9TzrIpYOyTeFYlc\r\nbTOVSe9Yq23cE8qQQAhgh4dSQ97MuP19lkqwnCbref/22EDjb6+kD53MhOLw\r\n3ykAp6qqLuBfU4nAvTUqhP5brUJjgKt5S3I=\r\n=JnxB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-3-2023_1683073549189_0.16507942491980754"},"_hasShrinkwrap":false},"1.33.0-beta-1683119120000":{"name":"playwright","version":"1.33.0-beta-1683119120000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1683119120000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8da3502df501f2e5bce222cdfa5dee7637c48136","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1683119120000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-gOnrYttoXOnOL2tiG73vLwGXVti7N1xFgBCMuF5mSCwtGoZE37Eqq+agmc23PouCxrm4vVjIslXW74PkTp/ijQ==","shasum":"5e2e4d69b8a40adc589f0d3a018ce9593242c84a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1683119120000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHe9EbjxHQZ2FePU5gnLtSCGRsTc+mUzu+/jfI0mlem8AiEA7emi2Zjn2KIxhk3rxVrM43Lt3O0kQqg5PCBs0jJj0wQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUlyyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr34w//cMD2q52cUFAN3PR/VslPzICX+Oui7+DuMNvQVQMOmh5K5wop\r\nl5Fv2tXUNIhODpZo6bUtWjWRtNMaavEPkpeTRCpuS5OWj1FYLWa+EHQDAYuS\r\nLKzBjT2AVdYcImdT4ifepw8R/mj8pNX6iORszCvUK4lV5qW22LSsANJHwmuL\r\nIijfLMd/lJhMkM9kDIQrFcxUHi3N1c+zuAhvXMsThV+iascuxTi6Ypv8aLjr\r\nvtC1ABQsy0DD2GtLOVMzXl1xc3Uua8nZa2CRMmQCXKWz3zbwDa+dlgjT0hdh\r\nL77ziJej9dmt1ShUWyFj61LSEAjHjAWr2pHzEs8uhPE3h+xmkU/VJkH049pX\r\n1EV1CzzjQ+x27y9qt9D+g7GctgHOkGZJNl0iQQv0nFd78ts8OiRSOaGDoHRp\r\nCTQOUwxJsbnDFY/KulwOk/LkreLFy0PLpbSaVYnu8/D2DEDaUN/reR2DyIJ+\r\nXFOhoi96cYQyJNKi33+KJY0QW7pgc+WXhYQKnzwVUIduVUu1PUFlrodc2JCR\r\nixfiTOkLsuFtmiyrCnNU5qQaqJdcvwX8hr7OhakGz6KgIwe24MK/MKDFUdgD\r\n5Z0wjOKUBkbV2+rucrNW//PA+z3tQncDVCviZYSOBSYhZF62jCHo+uAwCjjM\r\nrxMD2Bv3ebjZWKJa4JFIHhdfC7BOmvZGRh8=\r\n=eDLx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1683119120000_1683119282522_0.08104776057962981"},"_hasShrinkwrap":false},"1.34.0-alpha-may-4-2023":{"name":"playwright","version":"1.34.0-alpha-may-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-4-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ca3629186c984db4a61011fb0b7b8f031fe8dc72","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-4-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-D38Rk7r8rjWaCf/ZF8xbKRZK3IGVwYHFVlYJUNL+raYSPGSR3u5y65QMKsA/gjfi87a0gMAQSwhbaTLFPpCsOg==","shasum":"7d8ac6caf6df85d2b4b405a5e7b97c04f28d3083","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-4-2023.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0ooIf3L5GI3mwj+LJBE8iXFpy5EPdBCG+YkOMKJ95hQIhAMvQvLFl83aYNzxeVfd/mkXU/4+Z+yoeLD+N16X42HLr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUvvOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrbfw//RfIxo1Nj2Bgu/5PLmPQcTFGi6hDBJvYeRj/Fb/W7h9X/BHwa\r\nTpGZYqTBr9Uq+xNIVfkdopHr/jeZR83di/PH5HHoM5lmxWaebynNiD5IMOV0\r\na+e+7AnWHg5lS25cZcZMvvybl7Awo72a6UJMBn94BFTOHaaFxnGg6ME3C3Xj\r\niFon6GjvDfg5GDFk+eVE+sHTFOoxxYVvK0IhQygqHShHoGECGj8GvkCsiLET\r\nwINbZ2FgFauR3eBTCEXf5z61m61VB8zA+RQWzuEmm60nsUN3kO3zPbC/4IW+\r\nGkLXXRgDSmQldEQquA6c4WRTDbDMtP9o6c5ssFnqh3tyQUYf1ZoomZObm22C\r\nFrGTy3n0ajUVGH4+LMXL7xXvVcYwetvLh73/EkJlD7qmW+ib50AF/hYn5cgc\r\ntTpWPbGbpEcC4/z6T3vPu9x6bA6sKn7nIjxiSi3z0lTLYReRmQ6EmZgCv6gV\r\n2e1RgFm+2VR82Bh1rsWyDmDFPMtPDFXwzovQr53+ymnIqszwtGvL1q7uO6ZJ\r\nEUkV61BmizAdfUEPLxvOF3M8rbXJcNpSveT/pQR121p7pFYwaigxE37Zwko6\r\n9128RPC9Am9PKroApL9WhSwqc3jW2hgY5K0DUwZZ99H4CvaMXNEXuBXLGM2H\r\nKzEyVjbBs+rlpY/G1MTuj9WVZojb9SOqHh0=\r\n=ne+y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-4-2023_1683160014265_0.7654543034911792"},"_hasShrinkwrap":false},"1.34.0-alpha-may-5-2023":{"name":"playwright","version":"1.34.0-alpha-may-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-5-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"236c329ea9eaf5fa2a9bb2b586c7061e2a501989","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-5-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-U/fm9SaRcoWzI2A1J6PofJ9agYStSVBlrlvCxqJ1VS60L6CC5jlmkkI9Oq1HrvpZEDfhGlFtACUSmjtNxcrOKg==","shasum":"61b104d9c42fb8a8a392e986d5d95d3ae8e71d00","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-5-2023.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCe1sPMdo5ZjNZAUI4crZs+epTz7fLVQeXY70Mi0+CyXgIhALUBMyY5SxF3JY1KswOeQ9iCyRfEkBNpOoO5dRtsPQgK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVE0aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLPQ//XcH+/rbqmBAe6LV08qDdveaDPw+AOgr9zITYpYQjhmLwI8nh\r\nzmm+Ni1IHYRGU0YTRY82kzCCPbwlNPmfGCNDR44SBfs2BVXBniJaASgEglIw\r\nXi37PTambe9snL57AtboL4rrC4cRVDKjHiLOUsJM9L8aENYSP2IpFmP4fogG\r\nw17SILqcrfIcN6Xs+fWXT0ohFvx3ptvWzJtkQNjakva3o2phUYR5cE2lZJ3Y\r\nOB21tnJjdgk0yjahqzOuAKCCw1YwkPPQFP0DYpcu58Ol2EdrEtOVamB5m+8z\r\n+eefMc4XJPi443O9gF1YndeoPPqYHj99VhYb/8xY79xsWsCZzrMZmmk0yhWX\r\n0TK9nUwJyN4NjWLqX1vzU3avY1OoQo1+FUllTY1tUWo+YKiVZpCUysYvPn71\r\no9bw/OWiBLc5jLXb0nf7r5WvXg2RDf2ziKfFJVl+Pbeb6qzLkjEcQRUASNVP\r\n4KT2FTfxw5+qkMrmTWtjgYwdSb/9E4LEeL0hFqXXLLIGym73BJMrVfdhysZx\r\nfgOdcgYA05ltkNFGKON0cUgJe4DZB9X61rJa9jzc5SpcjVLw32tcsB01syI1\r\nmw9R/IQQDL543iUVxFdwwDPWTo9FI7fQ3E8UKJ75r2EC7BsnBAFNcpKL6D0B\r\nKpDOP2A53WmdYLPPcsZBAjXf4LMgbRtiqmA=\r\n=ahoA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-5-2023_1683246361955_0.892056263528977"},"_hasShrinkwrap":false},"1.33.0-beta-1683324077000":{"name":"playwright","version":"1.33.0-beta-1683324077000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.33.0-beta-1683324077000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ea963a8e86d60f456ca889ef98300934e4e5fc3c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.33.0-beta-1683324077000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Qr43A3Rg4nilCDD85G6hvxc78onZqzSppQQzrFNexwjqKQYT1WjKzuNAytGww58VWXuJ4eLL2oWrzEx+MeeKvA==","shasum":"843c8ca9f924c84674891c034c93490c8934650c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.33.0-beta-1683324077000.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMC89lTcsWPr1L3wKUDKl1ukFQVqSZEzHkBszGn79G9QIgY4+7F4yVXZlgGghZs4VLWikUNo8qHNbarjH67yaKUKU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.33.0-beta-1683324077000_1683324207593_0.5145461685150883"},"_hasShrinkwrap":false},"1.34.0-alpha-may-6-2023":{"name":"playwright","version":"1.34.0-alpha-may-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-6-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"03616e976ef9ecdeeba10a748a2a75f71a20df71","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-6-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-HPFIz6HCIQ4zXZkLf6vIXWVuOCZoA4KRLBfcxIy9URAGXEqz4NtEKdndhlpnsaDZYgS3lSbJ0XqxfVFjUuMdvw==","shasum":"140aa5c8b599335f68fa19e09419ae58d855758b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-6-2023.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEKvKgTRrmHzPASQIGfl8jInRaft3UID7jU+3OkTpYVlAiAWcybzcewGUNp4yFyjHusnR/JRAbxTuPyq1EKrjmZ8dg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-6-2023_1683332684187_0.7499355771784184"},"_hasShrinkwrap":false},"1.34.0-alpha-may-7-2023":{"name":"playwright","version":"1.34.0-alpha-may-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-7-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9771b1ee74dd1969857dd246fdd0f4e29c78fce9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-7-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-821G8eaPBlqAm75oRXj1CCmeEbmOMCFWPTvURJynNh7fhoXhT/v+wH0/D8cy0hW4qSEYr1h2KC1oofyuA8nuOw==","shasum":"7fac00bae6ebb071b764ee8c3930938706e3eb31","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-7-2023.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOf6Hoy3/L3xGS7cMyIN2Sn81rMUVYIo6ym2w3l3xFzAIhAKgbrg+Qlk//CU+beSL13yuoED40kusJHr+uT8l/9RCF"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-7-2023_1683419248065_0.01056740979674231"},"_hasShrinkwrap":false},"1.34.0-alpha-may-8-2023":{"name":"playwright","version":"1.34.0-alpha-may-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-8-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9771b1ee74dd1969857dd246fdd0f4e29c78fce9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-8-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-V4NijjKRf0+F9Y9hUv/ZfD7irXxGsiupuKW5+9a6xy3Zk57e05u3NfS3g6hbE0eN1zFSD7gFZni6defRGVUjzg==","shasum":"5f33ab597ff3df5c70bd1c05cd3754e7c272c6d5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-8-2023.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnehOwB/6TMWffv4YUq9fXFv9mYaP9+VJCfqJD39a4aQIgZWL7KlomtDntqGQxdu4kasS4G4tphkmwC6EmbnDUmxk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-8-2023_1683505560132_0.22239304254702597"},"_hasShrinkwrap":false},"1.34.0-alpha-may-9-2023":{"name":"playwright","version":"1.34.0-alpha-may-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-9-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1f209204cd18bce7d1bfae50f5af105dec752df8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-9-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/OdV8RC//XGDnE6WKbJQcNrA7vTmIunMDsBjp5nYpK1sPjYrhqIpgyTBLyInMLuv1FDh0CqAYBVSqsnZpYFAlQ==","shasum":"29fdd074dedd8ab52cd1a6f9d4278e3e6d5a97d9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-9-2023.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQ1Hj6CKOwrvk14mmwpAlxeN7eOa93GptJgN5zKLHQSAiAhsG3LtFpN0r7f4UqnzCDKNiCi58TxgIwYGdMZdubxSA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-9-2023_1683592008764_0.4264733455217764"},"_hasShrinkwrap":false},"1.34.0-alpha-may-10-2023":{"name":"playwright","version":"1.34.0-alpha-may-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-10-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cd49f5c4668ca6ed4cc024bdacc0d27960049688","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-10-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-BZZbILxmrmn6fG9U41GAIEEk+xUaINUMlGD6UgSVEvvESBmAgfE5VJGeF9Pf+9ULnhJUUvo8n6GuiaPP5IWx8g==","shasum":"17bc0d74611383703245df0877754613c550451c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-10-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRM70RscFTkU2jRX9KFu5Ljt6YE66XXaYvEyad4/EoEQIhAKedzyClwBPXgfBsUZCi3X7esWAQAzFuF8RZUnc/lyGc"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-10-2023_1683678317656_0.6927360088985268"},"_hasShrinkwrap":false},"1.34.0-alpha-may-11-2023":{"name":"playwright","version":"1.34.0-alpha-may-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-11-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-112.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->112.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f2ad5bbfbb8795d125e1468ead50a8f796d120c9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-11-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-sgy3x9LC/oek8/IDyKnCTcasiitRWFyA9B80pc47fhCDnq+Ashbrw6JirP5keN9H3W4gdImorMTsIMAwhPtsNA==","shasum":"10019279e31ee262b9c352cfcf005d93909a228d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-11-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOSm9PtzmztZvmMf5CE9R5GrZpXIt8EMELiIJdHQp66AiBDv65qffG8pGMWfeiEoUAEBiRC7uCa8OnsDryRzVq/JA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-11-2023_1683764716653_0.719849633818664"},"_hasShrinkwrap":false},"1.34.0-alpha-may-12-2023":{"name":"playwright","version":"1.34.0-alpha-may-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-12-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"59b9a397407bf37d0a0dba45fd014509ac99f79c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-12-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-F9LyUhyUVlr0eOfFOQ326r9OoVfFe4Xta7fU4OgKzjGR+vzIE6U80y4N+u6fSjNdJsTg9UpidWlpjJJU1we5iw==","shasum":"c6b912cfb4d25ab574cd3cd14e4f42f89eabd57d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-12-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHsVtnXF0rGbvDj6ebNEVQ/mBzI4sOBhuOLDRxYT9xXwIhAPFMasgIP894Psqli7eP9UrwMhnTfc4CdQigOYe7hRnU"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-12-2023_1683851084510_0.35455005737374345"},"_hasShrinkwrap":false},"1.34.0-alpha-1683908764000":{"name":"playwright","version":"1.34.0-alpha-1683908764000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-1683908764000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3ccec7eae57f0e3d8a3909d12c835e22dcdce109","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-1683908764000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2OaqWUIUsGl3had8qeS0cNCxF2hjuiCrPGqFa+4ImDG9R8eWIk5vvLXV8K7y/ol3RKhjhItgIsIrn3oxzoJKHQ==","shasum":"0ceb0ebd3ea4a5ddf9a953d9709b4fcac35e4b43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-1683908764000.tgz","fileCount":9,"unpackedSize":24244,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD1y/OvdJ/RRVRJMaATibj33K3Vrtu9AqXcScqCLmQdwIhAMuq9yxvzdpkrOLn810bkdlp3PY2BdJUddOPAUzco4Zq"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-1683908764000_1683908923881_0.07432529997880599"},"_hasShrinkwrap":false},"1.34.0-alpha-may-13-2023":{"name":"playwright","version":"1.34.0-alpha-may-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-13-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"083d13a13dddb6ce3f3e8009c47adeee72f5f3e3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-13-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-NJ66RKwAoZifsvsC6wYOdJzyroPSfrhEAsVnjXnsa+NgCv+9hutaUHd+3IkcpUgUrzsFqMNl2uAUnua1eoyKcA==","shasum":"c310a799d107c2b66b4f4cb8fb9c57a09c9f395b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-13-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDURswCimOR+tA+DUBeE3gTbvU5Somb+4pDnkMKtxnqWgIhAObuyeF+0KyNzEsyIKCKVQbnGH7VYhx8+uZRm4YIWOBY"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-13-2023_1683937455659_0.6165142198312081"},"_hasShrinkwrap":false},"1.34.0-alpha-may-14-2023":{"name":"playwright","version":"1.34.0-alpha-may-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-14-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c9d5b05440bdca7346cf181427c1d99f188bb1e5","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-14-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7riy+PKN4EVh7bySLdhUfqr66q01pvWgt4y23KPQ6VflHKgu+1GcjrOLOADBPa4X8I9deLhsfoCL1ih+sHbZPA==","shasum":"b19eac6d8b01485ab7fcbb19742a436c65faa144","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-14-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0sNLkiUw1Az952wyuLd/L66Z0X3LxiGR9ROVaPY5z3wIhAO2ZYUWO4oBSUU/6yv1gJJrYyk3Y/v2+fT7tcyu44heg"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-14-2023_1684024084495_0.6273867081213955"},"_hasShrinkwrap":false},"1.34.0-alpha-may-15-2023":{"name":"playwright","version":"1.34.0-alpha-may-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-15-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"17ab777db5ae8b24c6654e1c8ecb0b9672538c86","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-15-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8bdnMxAM757DV4UHx1YBCXHpdIkbqOIcdGfetwIfQ6dXMwiN/R2YKBtFuQU3EtOQQMzV7vb86wnhWIkA6f32kg==","shasum":"2e78124c2ecbd7ed388d612df26e8ee3c262d4b5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-15-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd67pnhjXIyUhhusJ4Z7q8zBEuR4k8hXdH2pXZZJ8XKgIhANII/bxPS9s3sGAXHhE2USKJd/ebA73Oa7NjUcaqxHAh"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-15-2023_1684110425406_0.6998956510645837"},"_hasShrinkwrap":false},"1.34.0-alpha-1684179977000":{"name":"playwright","version":"1.34.0-alpha-1684179977000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-1684179977000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6c750958961ba3e5120c6c7a78af0fa304041694","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-1684179977000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MdmqS+C6OgAy7tuMsNps+SzFZZdmTsh0ljGM36DsFgTICQAZnZwoueGpzwR3xyFEkM7VwAbTcIwbz0SqdmdwQg==","shasum":"3294451b036e99811c38cee5f6ea164a47944240","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-1684179977000.tgz","fileCount":9,"unpackedSize":24244,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM2/n04AOfr6yUEtYha86baCLfKf4yQz9Xc0MunmZkrQIhAIKngbwnZ4FPLYBlFENTSz+jlw/egMkFvW3sge25RTNU"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-1684179977000_1684180143179_0.1315790353745021"},"_hasShrinkwrap":false},"1.34.0-alpha-may-16-2023":{"name":"playwright","version":"1.34.0-alpha-may-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-16-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bf1df9678fc5d79f246ca288626128735b570c72","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-16-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zD7kWZT7d7TkFYIiC7kFincjCSINdI6Py6kAp2l66E1Whm6qaMVM8Me8EZzJToytkbzyNfYfCghEuXou/Uz5Zw==","shasum":"82c608ae149cf08ef563f42319d17c9bd0fb57e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-16-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHySqrFmIDlZSVyQkCvUqB8h/ho5nSh0ZhhWpljZ8k07AiAqhf46AIqvyjMCO2AafmW9dG5poeC8mii/+vOSHlj8xA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-16-2023_1684196785023_0.23486157667932095"},"_hasShrinkwrap":false},"1.34.0-alpha-may-17-2023":{"name":"playwright","version":"1.34.0-alpha-may-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-17-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-113.0.5672.53-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->113.0.5672.53<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fec5059fee40377c98500cbe500a767497c86192","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-17-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-bxORQAGHH8vP/TcnKnbh2KH+U/y6Q8TuIue14w69eymf3Oxp80RF1lDRFNLUnaP7Bedd9ee+a3ZT8rHY7nRbvg==","shasum":"fec8ecb0cd5946c7387df540085cdc82ade6c3a9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-17-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICx3CgkqBAWA7fNLOQOs3ZnGBT6kF3xnsIhNsoPkCbviAiB9aCOIc1B85PoEKe7Jwf45qhLO3yh0krGGaSJXP0Fcmw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-17-2023_1684283323304_0.8421743801939956"},"_hasShrinkwrap":false},"1.34.0-alpha-may-18-2023":{"name":"playwright","version":"1.34.0-alpha-may-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-alpha-may-18-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"be7984bdc9453ffaa0df9ab5fa306f9f1c39497d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-alpha-may-18-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-78+KtzrECvex31TkWL6Gov8BhEpziVOfYjusgmqZV4KsyRUuy5FIExEHrgeWS7D6ViDEkSaq9+u90+mkADEEJg==","shasum":"3056ad3d0bdf1d5ce31a6b97cf74f0072bdfa104","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-alpha-may-18-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESlKq++Ibx8jKbVV3MhkisTcqPqVtwz2d9PTIK4Yf+VAiEA5YADiq0c9sd4C8Pja+QOUMMOYLXGHAE/CyPsGl4u0BI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-alpha-may-18-2023_1684369581101_0.15499066984492926"},"_hasShrinkwrap":false},"1.34.0-beta-1684375055000":{"name":"playwright","version":"1.34.0-beta-1684375055000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684375055000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.26-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.26<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e6bc32b0222d628db6191602ff85ff9801a5a7ec","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684375055000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-TQUDrsyJlyRvLRCnyqxw6kN/EQcXhLaSypKBVsvGl7ZJVMVBBcPdQZg/AkVQ9CaAiC+NW0z6CA0CnM74sYVSQQ==","shasum":"f7f8736f60552940e9a78672d47116ccff9397b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684375055000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtN+6RX54hVZVt816ldQviK5AzFYgsAexUk6vsInOSjQIhAIU8gjZgr0ZAZrXgACPugXpy96CN/2itlSItTa/kJ3gK"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684375055000_1684375750146_0.2770071769961153"},"_hasShrinkwrap":false},"1.34.0-beta-1684420091000":{"name":"playwright","version":"1.34.0-beta-1684420091000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684420091000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c551cce74e47a124cf8ad7f79cda3ade7ac88a45","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684420091000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-k9YZij2A89u/GT4VmPz/j2FXMeap2CRPyFz1AATbaxKSkZlIKR54KMbm+tgJMHlbtpXfV//zHh26CcuZmcGR+Q==","shasum":"94f50feed857b5c8f07ca66322fdc1e186087c5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684420091000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfkAEpwfGpi03ieRcVWZE+K6yDrTWrTmseUVRTO3aN7wIhAI/vZbIQZ+TTJFVntb5o2DuusQ70U8yofEMdCV6hZT9t"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684420091000_1684420253481_0.8097545214420008"},"_hasShrinkwrap":false},"1.34.0-beta-1684434956000":{"name":"playwright","version":"1.34.0-beta-1684434956000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684434956000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"32c247b81556e6af9b2023438dc4628caa249c8f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684434956000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-9KVx2yiaGvzDwCQEV3HR3RL3/vXaha7ksOpscFZ8LaSE3PSklGht7A/tWyeEBZWH1gc71BmsqwS6DGDEkpVCiw==","shasum":"b203756c17e8e9ea375bf0570c13ac8031d64d38","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684434956000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCya23av8U8/O5JrnYqbKgtKSjEH+7CaADZsYH6PeGlagIgEFa0hOS9VC4TM6y8mrkuXLag5pf0kV7CDEzl8thKzEE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684434956000_1684435152536_0.2401437043938448"},"_hasShrinkwrap":false},"1.34.0-beta-1684435798000":{"name":"playwright","version":"1.34.0-beta-1684435798000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684435798000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7196f82e52571d177f0956cb2913add007a52dbf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684435798000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YW2rdNkwIL4ykv+oLiUFpQZ/eEI9D0dEaiw4RWr5lNrf1Zbvh5KUeXDtvmM4whNzKsqyfDp89JDb6+z3KApBnQ==","shasum":"c627660bf179ca38dcefbdf37b821b8bc0c9d0ec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684435798000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk+YqBvMFIKH1qmsMNRvg+SZCDMPBwfPkkEWU0YWP5VAIgCNOtTH81+8lb0khwn7WK2fNT+pEnORQJXtKZOB0DZ8M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684435798000_1684435958262_0.7024887252884227"},"_hasShrinkwrap":false},"1.34.0-beta-1684447150000":{"name":"playwright","version":"1.34.0-beta-1684447150000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684447150000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3543a741fdf67cf14f2457c5058ef03691c3036e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684447150000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-B7XCkXOu5GrCoNkefylyqhRrQQd6oAONC+ctvVK4XXPyNuhgRTZLFINzHz5l5WcmSUZ/LOABdqucf9GouVMUZQ==","shasum":"2f85088c56aa219b72797cb477a605feb5b13a49","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684447150000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcVY/TIVCeQkR0RByisn6izUkaNK2uyFT39xqou8uDvAiEA8jHbu3bNSN7iWqqr953TYkirYVzd38kQpsGvZ2JOi18="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684447150000_1684447264900_0.7847706824148271"},"_hasShrinkwrap":false},"1.34.0-beta-1684447479000":{"name":"playwright","version":"1.34.0-beta-1684447479000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684447479000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cd94a3f01dd9693a167a5f66a4096e7ca58bd879","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684447479000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-K1d8UmaygBB/CInFokw6CBO0BPqG3WyyqiCuqGjq7tfi1c9FOqoKscYguKpTwS7BT0sN3mUJaVFJ6KzAeYO/6Q==","shasum":"1857f4be38ae33830ded7324f70d801bf49cf67a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684447479000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx5uIKtLoKR/fOAsW3nm7gbLaqGJkqycnDxXJLYQMh6wIhALFukHL6norxbPRrUUNyMsb7nn1ggM1F41cGMdIMEiRm"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684447479000_1684447614687_0.8816348179217941"},"_hasShrinkwrap":false},"1.34.0-beta-1684450440000":{"name":"playwright","version":"1.34.0-beta-1684450440000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684450440000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"552cba8c05b1750dea5fea84072dfdf7405545f1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684450440000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jcgonaXxGL1OCzhuNdOAv4WoAXSrOJWQOcZ6wpU7lRh0jJTSR7ZfzIfmc+qhyduPKlyYUpT+UX1VrJRTOwxHMQ==","shasum":"0b2d73057ade131f2b8e420171a120754cfcb0e8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684450440000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7s224ffAbrv1+S/8HjiEoaP5ZSDzp7A4wFOuNMrEGvgIhALT94aOHRAvm+njMblkaZ6uXf7NwDf52ZbdyQRQjtU5t"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684450440000_1684450618422_0.7462378592755978"},"_hasShrinkwrap":false},"1.35.0-alpha-may-19-2023":{"name":"playwright","version":"1.35.0-alpha-may-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-19-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2697e936639cab64faec9e4adfc4f2848e621cc4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-19-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-nx0AZlAz9UVCQxlaUobftTzW+uekkRck5DY+EZ0bM+3JZU3AK6iRnahDDL8JGekUDtETiz19sUq1n6AyyeTsQQ==","shasum":"9f73a597d2cc1becd81e2019165438484093bb51","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-19-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArlNbPf2g5G9SvLkBKGVrqBJhz1E9g5J8yLFDPCoPbsAiEAhshfownvSHBlzXr01DOQjDnFZDY6rL4tZp+dyfm11JE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-19-2023_1684455973034_0.6134444710374634"},"_hasShrinkwrap":false},"1.34.0-beta-1684518179000":{"name":"playwright","version":"1.34.0-beta-1684518179000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684518179000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ef18287266b0a9131c70dd552964884c6af682ec","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684518179000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-D15nlDtszfw53vZjJ8BWs7np53PjFStE5+SZ6jXsbqgss2r+rtcQvaNFxg9A8qwNS1G2Ux3CfI5PaF0la5k3yg==","shasum":"9bdc4b8ee322cb0018c48a2b645dbb41312f9bfb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684518179000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxonkNIwqIPYJdSlYLRzzvWdVB74ULA0BDXRz7As7QeQIhAKu84xB4ZtVOXP7Ph4FWqV6rpcdWe8KGwqMgyo9hokdp"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684518179000_1684518375840_0.9620213580869776"},"_hasShrinkwrap":false},"1.34.0-beta-1684519693000":{"name":"playwright","version":"1.34.0-beta-1684519693000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684519693000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7effaf4f22fc658833e608415634185a43f7e535","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684519693000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-78Vagak+XONDTyR8umsKKYKzIhdsOTt9GZk6PuPIhuaBskaYq/UAS1+ZfngQVyX0zNU1fH0tKbE9kvNrpA+Hlw==","shasum":"746b093262777a90ab1b2e1a1c78c239c8f30cc7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684519693000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpjFsQMow99fPIUnPYwCpDer5HHTQCKVlgxbuZ/g6rEAIgAMyf9yr5dECaULkOAPFyHtwgdYbNmJ5jW6OATJRhZfo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684519693000_1684519975750_0.5622874320697357"},"_hasShrinkwrap":false},"1.34.0-beta-1684534842000":{"name":"playwright","version":"1.34.0-beta-1684534842000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684534842000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bf25a936175765c89bf9e0e241c0816995e6e025","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684534842000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-A1q9BzCg3zYBtin+X9Vi53IjvCEyBhHNb9A216x8ekXzOZ/3EWzGG3xQMPlgFgESNbRnwkq3KRMje7Edws1wPA==","shasum":"3ee7f238649ed9ecd0dcb2f520b549dc3e350c49","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684534842000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHn8t+E7yjnaVaNoWu7xUdVJpCVLZjP+xBmUEM4pOrgeAiAx0EyP6ZJxA1p7fFWfLF2pF+91Fxd9uF3BZeP8cgUouQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684534842000_1684534960445_0.7787918004057979"},"_hasShrinkwrap":false},"1.35.0-alpha-may-20-2023":{"name":"playwright","version":"1.35.0-alpha-may-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-20-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0e1aeaaecf1b0ce0e0d7dde1d51383b86c4c3f72","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-20-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zJ3UMUNCg1wCVGOx9c/WNy57uDPvvMaQPCbDvt0kkD6hPw7XU5n9+7K0B+dXpHif1+LeH8Y1T96QqOjL6pj8NQ==","shasum":"dcfca2e954847fc02ab8c8413b9e7bbb63a01734","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-20-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDL0uEFLwDEafr0bVrgPWf+0LBQiRITsHFimp2dNc4A8QIge7eKWxjij9eN5rhvakTDlQewjHaUehJ6f7tRROHjSvc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-20-2023_1684542272663_0.479418143013723"},"_hasShrinkwrap":false},"1.34.0-beta-1684542490000":{"name":"playwright","version":"1.34.0-beta-1684542490000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684542490000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4aee014caf4d5f14700a18dfc25014812e1f4414","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684542490000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-o71Ik0sXZJemjEqT5Jq9dAq6K9Lnr1nGEb9/l/Wpjp9xaIBDQ0ZYaZg8eNVTBqp7+SHLgnoIpW7mHk7sfnH9dA==","shasum":"e4898c5a3ddb88a1920237001621e363b656e3c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684542490000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWx2V4OLceNTm6mkk1f4cfOLY1jFRUH8WazBvA5umt5AiEAzaPtUQ94PPxGYQoX5A6WcRCgucNsGT0nj1COqnLiahY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684542490000_1684542626274_0.939053168877563"},"_hasShrinkwrap":false},"1.34.0":{"name":"playwright","version":"1.34.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0"},"types":"./index.d.ts","gitHead":"4aee014caf4d5f14700a18dfc25014812e1f4414","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fh+Q7fw7fPg2jSjDUNgo46PbKNTKQCYbeYXXbMm1hTbhPc0V62WM6h/pqWLTW0tqjfu8TCLdx7tECd/2AbYaHg==","shasum":"c9e9b080e75f1f2679a61bc93aee76d8a8556589","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0.tgz","fileCount":9,"unpackedSize":24204,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSPNZ4Sxpbj249sjmrGYaM9mWJxChd6CTUn+YRUojs+AIgNdf7Z0bDhLu7QsJvJxLgNhim7W472UIEMo2HDLwA/Z0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0_1684549703569_0.46392375820181386"},"_hasShrinkwrap":false},"1.35.0-alpha-may-21-2023":{"name":"playwright","version":"1.35.0-alpha-may-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-21-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"631edc97442d2b216ccd5fc9c93eaf0c6ad9ab09","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-21-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YsDNlhPbqBP4hRGs5GUFMiatVnNX6Ho/WcEM+rH5D6AFCp0S27D2aCZhMj1XYkNUpuudHBMpPwcRQwR5CIvf2A==","shasum":"c43817a7daa7b99adb8ee53e7c3f02ae55590918","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-21-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJw5LpVtoe39CHo4xrCPvwJYmOTcin2HDBkRkUqArvAwIhAKm0sohgAiI8DzAiS5aRQJHMi7NzpGaQjYzOpPPVV2ku"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-21-2023_1684628932219_0.7000791404660831"},"_hasShrinkwrap":false},"1.35.0-alpha-may-22-2023":{"name":"playwright","version":"1.35.0-alpha-may-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-22-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"631edc97442d2b216ccd5fc9c93eaf0c6ad9ab09","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-22-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+Q4NvKy3FgiobbhZD0g9x+FPm/E11PnkilNK3c6tywa4xDhQn0QJE80bG83EWyfWV51ntJK280EF0UDZJUU0PA==","shasum":"c9a351d4ac50278940f9e407febd23d06834bf67","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-22-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB8Wio0c4e9etUku47COC6mxd7GWhlq4EeLimxstcXTSAiBQZU+U0H0tY+GkcU5SVb9mpS637uCTls+PQ4+FbBEUhw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-22-2023_1684715247792_0.497313130578364"},"_hasShrinkwrap":false},"1.34.0-beta-1684784303000":{"name":"playwright","version":"1.34.0-beta-1684784303000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684784303000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bc9f9b79c8d0a116e48ee1a8d852dbc99d2665b4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684784303000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hxI1M3nT3SLTSpy0oEfX7sPTazt0MXAQoixkgEH0uO5XBA1TYAYG3bgHfT/KuJwF6WysGdGzVonKkN3f5wf/cw==","shasum":"6a30b001f99679a20365477363558d44048d553a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684784303000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv5hyBjKVW/Eqq5pRakmK5z2hlPSfqyKAdCcYx2wFY1QIhAOvwfN6Is3U6HyHRS9D0MUsvhoETMT6+zFydnvoBX0rY"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684784303000_1684784436453_0.17375139216629387"},"_hasShrinkwrap":false},"1.34.0-beta-1684795219000":{"name":"playwright","version":"1.34.0-beta-1684795219000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684795219000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b8761ef8de964711faf21481e6a284836e7ef674","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684795219000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wc+1INQAlWTy74GU1IKWU+Awnvy2ElaknBHJbg93JTVsXbJi+MudVX2cnre/38Rd95v7kZPhvHfeQskVRPtzwg==","shasum":"c217d4d2c966e8d3996d348a18f8c30248fd5b00","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684795219000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBG9IUCG0RiPsNPPkXy4s4R77C7TV02bUiIuTlvH4aKBAiEA+jYAUsmlo6hj3SFow21E92I/5avtAvtIlW3ujXOGL1M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684795219000_1684795353984_0.6073562040361813"},"_hasShrinkwrap":false},"1.34.0-beta-1684799046000":{"name":"playwright","version":"1.34.0-beta-1684799046000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.0-beta-1684799046000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ac4127d6cfc6426fe3f09b8235598e9f0b982de9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.0-beta-1684799046000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ZO5h/UR2HIF590idIPti+R2dUcJ+twYn2khAxVfg6CuSM302VSusILHTYgv94rl8sLOsrtTJicjL3JsNjaKicw==","shasum":"ca09dfb33f6881f087a2c256365833b686c652c2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.0-beta-1684799046000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0RIxiVEZmg+yTQoygEWxfDYqtE5NfK1JdOG5iFOLMOQIhALLW7Avl4CLtEGnKjl4KEakjd/Hh5t0LCkUwW+ipeuX4"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.0-beta-1684799046000_1684799179666_0.6607653091961836"},"_hasShrinkwrap":false},"1.35.0-alpha-may-23-2023":{"name":"playwright","version":"1.35.0-alpha-may-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-23-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5f36a2946eb8a60e14206a4902694f5efbfed26f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-23-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2Y/1y7EAG2cD+Mq+XluJieNz60X9YorfYBdg+0ODF/dtQvbnoB15XFc+0F2IM0bwKi42Q0WNMzlPto+LBQjrBQ==","shasum":"786578468118659f730e23715e0ae31f2c5a03e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-23-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQRx0Sb+eM3IMXPCfIsE9Hrec9gHV/ZeSa4K55z49kaAiEA3Y92iRPsuUyja93a4/1kOPrg321ogKiHnfsyxqFEQpk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-23-2023_1684801809820_0.29809939047715006"},"_hasShrinkwrap":false},"1.34.1-beta-1684812068000":{"name":"playwright","version":"1.34.1-beta-1684812068000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.1-beta-1684812068000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fe024dd5e3c66fad1233b23f745dffaaeccabac1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.1-beta-1684812068000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-NNYWOGYFd+UD2r8+rIFK+4RSdTmn7PriNhsnRVqvuucmdiTPwsJ4ln6xii0Ld1hTV9C0bp3GsBBzlQKoe+4kzA==","shasum":"076e18e147c40f672a52af8bd00fe370a1455b94","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.1-beta-1684812068000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWZxBKnw14rjUXNJj6dDD9RCCIEq1DNngrRBEfDxuKHQIhANGUjFR1MGYOe76pCNTri2DxpLpR1hNRlDVo8/xheed1"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.1-beta-1684812068000_1684812190300_0.8719277953236793"},"_hasShrinkwrap":false},"1.34.1":{"name":"playwright","version":"1.34.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.1"},"types":"./index.d.ts","gitHead":"fe024dd5e3c66fad1233b23f745dffaaeccabac1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RonTwQifzkCZHsjZKYUKsOJkQAVe1HArnyLcSRrkyDxN46Ytpwki5XzQFdpuv0XD8WtAjs4gI3oMYJiEj5Qo6g==","shasum":"c24d1cc004a4f1c212233ee5f005382dc134b22a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.1.tgz","fileCount":9,"unpackedSize":24204,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSCUS46EsKxGJHxdqKdbEMfKMak/Dj0gEut6PbPYL6BgIgfJXRKPHVqCI+pDT/FmST1REODYubBhzjM1cHkJbVDaU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.1_1684812323863_0.368512573536103"},"_hasShrinkwrap":false},"1.34.1-beta-1684870423000":{"name":"playwright","version":"1.34.1-beta-1684870423000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.1-beta-1684870423000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ba85623f40b001289e2af9fe312fa04b63b7f41e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.1-beta-1684870423000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-PPhhLlkWGQEDxUdtDCnvOdnU+A8PPDJ0j4knWFm98KOrAs6x6hZW5RNTTBC6ERl9n7fw6KUdBxq7Dr4nKvxCZQ==","shasum":"8ac6f9f7fd331853be99505abf2c92ac4196194a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.1-beta-1684870423000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBITsKoA2E+1XRilTHg5zOBeso7TriBcjuR/vTod8AJMAiBEYNNls2vcMK4PyWpkRT2AXbrLN4MtvoSZppU8wuwe8Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.1-beta-1684870423000_1684870558023_0.15782852157365235"},"_hasShrinkwrap":false},"1.34.2-beta-1684875341000":{"name":"playwright","version":"1.34.2-beta-1684875341000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.2-beta-1684875341000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2f3d88f3d5795d108dc814f90db94eca058eaa35","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.2-beta-1684875341000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qRgTFkKlqBpzd7oADtm3jj8XWewIByu/DuI5DCST8hKweIsc2XLO7TTky2KsoT0mfuAQxMbnm0+4drJNZoSKwg==","shasum":"9e0efc896a35119e62bc1007dd2d4ee046896b50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.2-beta-1684875341000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHsZvS3c6nss+1QjDkpFMff5mHK3S1Z5c8xKprnXLHyTAiEAkpvwiS8wZfNJpyjv6Z0WG4pFzJ7BpV14IMbBsiHYoTU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.2-beta-1684875341000_1684875458888_0.6957950986187174"},"_hasShrinkwrap":false},"1.34.2":{"name":"playwright","version":"1.34.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.2"},"types":"./index.d.ts","gitHead":"2f3d88f3d5795d108dc814f90db94eca058eaa35","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.2","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-12K4LFCpUvU88+PLDB/VhE9VnqKu81ghNXq9bhBqIxCRt2MDCS3mAvMj9tV1sCc4l6kXX79aFmdGSjhG4CI8Ag==","shasum":"58240fa16d304a5500ae3dc9772d0c3487918e17","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.2.tgz","fileCount":9,"unpackedSize":24204,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHpfljFuChEZnWA+qhbhJIsgPOTs+eM0HRQPBeVFFqA4AiBQPQw+D/UYPImpsdXNcR614yYk7Jf03euKgnQbuYbs2Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.2_1684882407428_0.5725900778627058"},"_hasShrinkwrap":false},"1.35.0-alpha-may-24-2023":{"name":"playwright","version":"1.35.0-alpha-may-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-24-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2858ca95d83750f5a27800b454dcebe18af750bc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-24-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fkxwamBVHaxy8LBP5gKqU+g+34MaJckdEkjYNowaYqcb2hiRXXXXNp2Iqr6W9i7fLFN2fS9l0lVnSLB1vAdMFQ==","shasum":"60a8a1657cbe61f1c9724a1f6c7a90c7973819b3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-24-2023.tgz","fileCount":9,"unpackedSize":24240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwFzsMJgPjh41bwb6W2uywbfmJyK0LhAoDsnqb2Ov8iAIhAO+CE0Bo8Z8/zyPq2LunbwL8LjqiqIS/Pt/vA/NclzAD"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-24-2023_1684887959417_0.6563474767849775"},"_hasShrinkwrap":false},"1.34.2-beta-1684956029000":{"name":"playwright","version":"1.34.2-beta-1684956029000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.2-beta-1684956029000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4417a97482a42a5e44bbbe8171037249d5c70faf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.2-beta-1684956029000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ijxT3KtSCbLoVjd5lGjNuU8sIx3o5ZzohGep46XxjY3Rk/xu1RQLmNUXJkYJII6C/zU41JOudDMh1cwKGvLsAQ==","shasum":"b2bd97703967dd6ff37940e1e6b80bc07430fa9a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.2-beta-1684956029000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/Q4LtKcOQvz9UxuzKxn5iIcEIxFvWYbdZJpMJHO7fzAiEAqcVF1vpyFsjQmjhQHjfd9CYK5Bc8yMLC8vghlSfCIgU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.2-beta-1684956029000_1684956215177_0.548306513558048"},"_hasShrinkwrap":false},"1.34.2-beta-1684966845000":{"name":"playwright","version":"1.34.2-beta-1684966845000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.2-beta-1684966845000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b5ff4637791ff9fb191a33e0419e072327148847","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.2-beta-1684966845000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-K7qQTU4mFv2kCmtpwlxH4zwsQsUlcMrsRuILqOuXsh++ABBMXZFh9uDCNyWisUBL6nSiAAuzjnIxQl6OVjFnfg==","shasum":"233cf7110e7392205a1065e6063217158336661d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.2-beta-1684966845000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWOO8Pc+1V7CC4Zl/z6PTtFIkugePMU8uGml80EYJUfwIhAInLyNnJEMWQKODTrcXCNdHAxImbzwugpyufq2r98oy7"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.2-beta-1684966845000_1684967054680_0.5969247549291421"},"_hasShrinkwrap":false},"1.34.3-beta-1684969624000":{"name":"playwright","version":"1.34.3-beta-1684969624000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.3-beta-1684969624000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f11873a8950ec622e8294093ee19455d2afb89cc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.3-beta-1684969624000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-HM9A5CeI911SIlSe6e//nAZSQxCCtkiQCSdzA/Y0AgC/yKLVqIyb1mg6dlhgGJcPmlZZQtQpbIyfP+PqaYDYzw==","shasum":"2c39e915eb85b2e959f2469ca28a135d7cacc5b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.3-beta-1684969624000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnp9SM9jUayDmyILV2uvrqNGQiub//3lKyZRS02TqAqwIhAOstULNgLPuoRFTv8BP1yPJHXsU032spO/XzvOWnJ4MN"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.3-beta-1684969624000_1684969750232_0.6714353869826322"},"_hasShrinkwrap":false},"1.34.3":{"name":"playwright","version":"1.34.3","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.3"},"types":"./index.d.ts","gitHead":"f11873a8950ec622e8294093ee19455d2afb89cc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.3","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UOOVE4ZbGfGkP1KVqWTdXOmm8Pw2pBhfbmlqKMkpiRCQjL5W+J+xRQXpgutFr0iM4pWl8g0GyyASMsqjQfFohw==","shasum":"6dca584e52e3ebc3392435c8dadf4953c792f016","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.3.tgz","fileCount":9,"unpackedSize":24204,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTa1dtv+DKyFuI+IhJol/tKsQD+BA+AmOxErfMtuCimgIhAKdUa5/dY2hDCSGg6R2heY+AHqO6Eic6Q7EkYTa5/gmk"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.3_1684973426748_0.2644389769276847"},"_hasShrinkwrap":false},"1.35.0-alpha-may-25-2023":{"name":"playwright","version":"1.35.0-alpha-may-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-25-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bf5cecc545c4bf0403517fefb7a21014754885dd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-25-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+pVDaYy4ZduK81ya7T45ArpbW7yUEcfe8ZQf4vRw98Io2Pcq74Lcz1ruxwmkaRza4Ud12kuesDmQ7+rsuIWLtA==","shasum":"df5f88310b9933044f13e16a0824f17bf9006ecf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-25-2023.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9qReK4k2PLlXDioJneMteOnDuloX0qo1sm/O5Bx1u6AiEAntau2rf4x0IonnA/37GvLm0V8Kg6fAsIbkgjxdOTZA0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-25-2023_1684974324082_0.2567492308233055"},"_hasShrinkwrap":false},"1.35.0-alpha-1685046878000":{"name":"playwright","version":"1.35.0-alpha-1685046878000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-1685046878000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.45-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.45<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4a9723df48e23b45b53b5ef930b6e9b683b48464","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-1685046878000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jg1ks9NRjFhpUX25qWJIaURHFtXd7e7LHT1aeMyVukTptqgnmKrJcQHugwQIWSnfq8LTPbgCFSOv3dqyfvO/CA==","shasum":"12423fa8cb8a276051e6bb772a010b42a9013cac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-1685046878000.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIo5dNy0OsV1bRhk8oCvxQ1laoL6ajqdFofJo1o1ii0wIhAKcOeJoGc6hbQsQhR5YCZP5aB8N0z8njYUqrgoGNOYXM"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-1685046878000_1685048271752_0.4923017288988629"},"_hasShrinkwrap":false},"1.35.0-alpha-may-26-2023":{"name":"playwright","version":"1.35.0-alpha-may-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-26-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.45-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.45<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a2d07401e25a6c5a4b123099f951796646cc157","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-26-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-IbMWlTOZiTBaksIL1kBBof+pmOUSc+55xYLgZoqMwryDKv+o2U5p8MnZxRr+raeWSeqUFoPp9DlS7eTY8r9zbw==","shasum":"b62c5feacbdbb9a92e2aec1da9f02d2d97328340","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-26-2023.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkdQ+S8WHB1/w21IlBi4yEM6hNcnzZ+p0OUKgk6YBElwIhAIgP0cgpTKvnTC4OaKNBfiiz47dRrFEymcLGPVOY7iyS"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-26-2023_1685060773182_0.5255973521780211"},"_hasShrinkwrap":false},"1.35.0-alpha-1685109821000":{"name":"playwright","version":"1.35.0-alpha-1685109821000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-1685109821000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.45-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.45<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fa86f2aee0d107c3ebbaf3f7b6c1a3aa9e0b61c8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-1685109821000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Z6xdAbzlRzR0bBIXiMVUSvdcF11kBpRu5xBF68DVcUf3cRp6bznTITA4NFm5Jc5XwdpZIcXJ6nhMKsty5r3HRQ==","shasum":"5c159bd8f7a29d2d92ee8d130c3f8ab7f8abe94b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-1685109821000.tgz","fileCount":9,"unpackedSize":24238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEavRH+HiydvxeeQtgJZB1IM2xE1tZAm8epGxLzKlFANAiAVojqxX/ASTylzkpX1zF9VDjMqpFPR67Od+RIzQArZdg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-1685109821000_1685112411878_0.29204377193351605"},"_hasShrinkwrap":false},"1.34.3-beta-1685124745000":{"name":"playwright","version":"1.34.3-beta-1685124745000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.34.3-beta-1685124745000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to whatsmyuseragent.org and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('http://whatsmyuseragent.org/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a51d4a39b839e1f1296a8fca06aff63e412b1fad","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.34.3-beta-1685124745000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8jA3cU/d1uynTdCB7m2Yk0V7gd8fgjnk/ZqS8AAuQD0Klb66N1Mdxeaa1L3SB/cbk2Kuym3SJ5+4a+ysc89h9Q==","shasum":"1f2c96290f162871a64dcf01108f3e888034963b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.34.3-beta-1685124745000.tgz","fileCount":9,"unpackedSize":24242,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGuDPGeLiqZ7BtIuVwbsOt1DU5dOY35Ozs27hc/ujC+FAiB1dKXDtiMPCkVry9SrWxogPjmJchlGeYNj1WsKuZOpBw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.34.3-beta-1685124745000_1685124896378_0.3904550928804851"},"_hasShrinkwrap":false},"1.35.0-alpha-may-27-2023":{"name":"playwright","version":"1.35.0-alpha-may-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-27-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.45-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.45<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ec972fb7c140908560347ea215d30016fda2508d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-27-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YXIckasH0V2KF5EZrx1Vy4q0PcCA1fsWFb9zMawSrcy1aGckXEqEQQcenOnhsdkORGGwq7EgWSfeThHAI5vT2A==","shasum":"4326bb844288a8ea2d70dffc0b0081e9822d2d1b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-27-2023.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTXeUZf2/jiEVF+c0uUXZU2qcebsJ4Xaxz0+hNoYL9UQIgBzxOvsflLKgy6/YYy/1EPq21eH+MfqbIZgoHoUACCT8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-27-2023_1685147285649_0.10405575573131665"},"_hasShrinkwrap":false},"1.35.0-alpha-may-28-2023":{"name":"playwright","version":"1.35.0-alpha-may-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-28-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.45-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.45<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ec972fb7c140908560347ea215d30016fda2508d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-28-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ojUBE+8WTVLFCOhuWOK8ec1sgY7V0/GQrM/GzVp6bxWEg4UU812ZkouLkgwVu7lIA4ciLisoKh2tTp4zRaEbog==","shasum":"90c8bcef8b7ebce29b621987ad43e3fa6ac065bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-28-2023.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHfXUvdIz3A7+TL8IsuNdCSTmBkUMMn1AEoXuZwrHNXwAiAbl0qUNafxpJ8mSZo7U656rUi44xA5KYoUcqeJF9Lfdw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-28-2023_1685233694234_0.9458291583806671"},"_hasShrinkwrap":false},"1.35.0-alpha-may-29-2023":{"name":"playwright","version":"1.35.0-alpha-may-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-29-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.45-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.45<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ec972fb7c140908560347ea215d30016fda2508d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-29-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-O+PBhmK8Y98Cd2Cva3JfBxzFEpRU3WqITOVYkngqhiDo8dlGu0CpU7ejSy+AwH893xEcOrhZdFC88JiHN+gYVA==","shasum":"bcea099b90b48c2385c66e6abf7e70cebf2fc4cd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-29-2023.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCO/XZmkoGOigRtzZW6dKeA+YNxluScxogrbgFkbKCLSQIgSk7oYWj3nFV6TyCx7SN66cMKRPc55JdpZCH+eKLTYdE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-29-2023_1685319991720_0.8793567102427748"},"_hasShrinkwrap":false},"1.35.0-alpha-may-30-2023":{"name":"playwright","version":"1.35.0-alpha-may-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-30-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.45-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.45<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fda57978e85037924f4c5b9f35e76c56028f2e47","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-30-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-bpQv9VM7fCVPNi+yXSAAYYxnpd2CuCZRfzAZkMbX6ZKJVf1iVmAwxs1llW/Vr23VLSlCdlj7LkVEj100ZJw3rg==","shasum":"91b41a6df2737fa8f99ba326528e350b99ddeb14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-30-2023.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuGoo3pLdcS9imzbXMDAxogAgr7Lfe6itdLnynriEtYQIgUKavcfIpcLqIdSo4UoQnB0PM/oDdyn+fX6ahap1SA04="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-30-2023_1685406525560_0.22842044822241148"},"_hasShrinkwrap":false},"1.35.0-alpha-may-31-2023":{"name":"playwright","version":"1.35.0-alpha-may-31-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-may-31-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.45-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.45<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5cd271a2a774b35002dcfdcc9ad827d1cc104aed","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-may-31-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1re6IlMd3+mWnvZY4J8iktcNNM70W6WAFxa2MnHjv1DVJnKMC3MMugbwjNkRiIin3+2Nc23iCxA7ey2WZgISVA==","shasum":"c42f94a4a4c1f62aac054eb28b913b899850d162","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-may-31-2023.tgz","fileCount":9,"unpackedSize":24234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLUmQ5mk96eswaTYm1y/C9ybEsXXRSlmthsKhonk0tGQIhAMnPi5oLfUWiUES8o73qErJg8/9R0OZBvbzoE2irbNdC"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-may-31-2023_1685492928149_0.34477176557550093"},"_hasShrinkwrap":false},"1.35.0-alpha-jun-1-2023":{"name":"playwright","version":"1.35.0-alpha-jun-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-jun-1-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-114.0.5735.45-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->114.0.5735.45<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ce9892c694fcaa43fcd0a2339fc9fa61eee4c817","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-jun-1-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RQMfPQwXLUjCCl57oz6Wg1wXf2o8h5Ngnz9xKGZx4ecVRJgvK6Pk/55sD1NCMayIXFYbh+6dyCWmbf/pQIjEhQ==","shasum":"5783a95c4ed29e4ab5b33bfc5e3e8a6006d6efc7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-jun-1-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXU4DL5M7dYz3QlQctmYfnsr34Gi4uk+iIeu13kkxG6QIhAPQPwx4HZhYfYm53jTh0zQH4PyJpoYldI7Ff1R851wrP"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-jun-1-2023_1685579926745_0.243984199834671"},"_hasShrinkwrap":false},"1.35.0-alpha-jun-2-2023":{"name":"playwright","version":"1.35.0-alpha-jun-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=14"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-jun-2-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/troubleshooting#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2719f408b2f16ef5d8a9f7cd829ba4cc88494b0e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-jun-2-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-J0Fre4bbLd++gTvDMiQwGY+atHrKnx9EOewwpCAFrJQajp4b57evpzFJikpKk7BiVzpc9YfU/zJ1mUQ//LlX8w==","shasum":"dc190e9d65b8d4dcab51b225f2fbbe73bb54a617","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-jun-2-2023.tgz","fileCount":9,"unpackedSize":24232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZjYjCHQAtPrgSCF5l6X76AJooNvbTiRgLpSoMjcgm9AiEAkBJ92B5rqqtb07T4VTPG/blz42f8UrwAMIX+XoCfemQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-jun-2-2023_1685665758118_0.6774193784590026"},"_hasShrinkwrap":false},"1.35.0-alpha-jun-3-2023":{"name":"playwright","version":"1.35.0-alpha-jun-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-jun-3-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9cd49d5dd5b4074fdfa66b463b0a3379e73bcd69","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-jun-3-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Fm7isnVmFuulBdnguNqGQ42DXrttRnArONeh0TpaUrpm3wDl4gFdbxkp+ON+7N+f6tv+Sf+GFoSzMDEeQPK65A==","shasum":"312abe3ecfdb8498d4a25a42f6dadddf20a19c4b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-jun-3-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/R9+O4ad82ArTKDNUoMHYKNooXXamSPCG6ueQm07yBAiEA3SrAN/3ei7Au9rM3leXs70NHoZLujzSx2Rd4gOLjGzI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-jun-3-2023_1685752134946_0.17008889528397564"},"_hasShrinkwrap":false},"1.35.0-alpha-jun-4-2023":{"name":"playwright","version":"1.35.0-alpha-jun-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-jun-4-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9cd49d5dd5b4074fdfa66b463b0a3379e73bcd69","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-jun-4-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-em+h4E7NxyRgxHB8+qNKJ8RxsyzHmu9sfFgUg29Jnz0qVBZ4L770z2glNy3HWshR68t/Zxcu3xo3PH8G1B1+cw==","shasum":"0dd901e5dc3dd89ad21d834a8e2a730a70974dab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-jun-4-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaGnCnNVzKtxcHcss7OdE14WnKRJNuHemJjwmfhj54mgIhALTjQRO3YUw0LsoBnbp7zn8My4rGe7lEPySo3/bRHJJ3"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-jun-4-2023_1685838837384_0.838608673460497"},"_hasShrinkwrap":false},"1.35.0-alpha-1685749070000":{"name":"playwright","version":"1.35.0-alpha-1685749070000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-1685749070000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9cd49d5dd5b4074fdfa66b463b0a3379e73bcd69","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-1685749070000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xXHenZh0bJ0P+XW371Vuk2N4N2E8p3tnJBoTnxFwRWkYd1n8vqRV98t4b/y+o0Exm0WnVsxzF6S8iwa53rJQNA==","shasum":"7c392dbe820700047ea21107311238fbc376c9b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-1685749070000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCx6IIrri6deTHY40DDc3GE8G1Dj7eI7pjMBoduZXMVYgIgLh8P0aoEB+uSGZM9lc5A5KAfD5iUYHHo8Esj8Pbpyys="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-1685749070000_1685874344512_0.7492372471381741"},"_hasShrinkwrap":false},"1.35.0-alpha-jun-5-2023":{"name":"playwright","version":"1.35.0-alpha-jun-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-jun-5-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f15ea35bfb100fb05a58c50b188e0a841adf0274","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-jun-5-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-DnsOze31Kvpg917r8Snc8DWAGXOFnFOg0TE6wZZYy+kw5kTK2zFDos2LPtVlSK7qaUGq1CGT7+1QF0D1e0KCmg==","shasum":"1e557a9a49dd6e282908010f6c26eb18b8ffbc77","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-jun-5-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIArje8SCb4wZh5q1rysrAYxAShNL77j8QRjwyzJaJ6eGAiAGAm4yth7NtxRtXmAoTib0TNliRL0CsKdcLDOM0sIqDg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-jun-5-2023_1685924951773_0.94704872973675"},"_hasShrinkwrap":false},"1.35.0-alpha-jun-6-2023":{"name":"playwright","version":"1.35.0-alpha-jun-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-jun-6-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ceaa29cec1d19fb04e55eb828fff720e2c035079","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-jun-6-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-c6+jldFpHYViA9c9ThfMsfsQeIfh9Yy00JZUt79NZRbB9G5AGFiwOf7Huh50tFjtiAlyb0O06NQoznSbZsqsOg==","shasum":"59f3f28963dedf07006099702af23b779e66f9a6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-jun-6-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzMBZJ3zVloJPORpvNfk/r1syvWgWWzcm0blyRaIPZCAIhAJikO7oaax6RB513CPWHFqmJhYnagAP3IikjGBq5/IaQ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-jun-6-2023_1686011422580_0.6057740350975258"},"_hasShrinkwrap":false},"1.35.0-alpha-jun-7-2023":{"name":"playwright","version":"1.35.0-alpha-jun-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-alpha-jun-7-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0f4090472cd0481c5a67cd92beb0610f4ef71563","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-alpha-jun-7-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MEyFq1ddIiWCT89ZXC87Jk7NV2kOepZ9wcNTpPxD/bns3l5mcuISjEY8Ln79Krq+jxEzDeXJcbm0OfoTD8qFYg==","shasum":"132d8073ccdebeb5e669a1ce0d63cbdf90f0b33e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-alpha-jun-7-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKuBGJcUxCL+IPI8dO45/33phtOQWpYBFtT5dafkaUmwIhAKQxMf0g6NrBwBRvmmG8FXhY1230IVz1Z7BTbqoE2r/+"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-alpha-jun-7-2023_1686097845511_0.030508028797568087"},"_hasShrinkwrap":false},"1.35.0-beta-1686166896000":{"name":"playwright","version":"1.35.0-beta-1686166896000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686166896000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e0c4576e29af39131e866e38ef120873329efdae","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686166896000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-OmyjRYgF5w2b3Oke1RG4Mn+XEGkn+ezOyFkfSqUDSppOwI8YIZjdFbFsnfaxzgyeHwSomoFuU+G/O2RttnrkXA==","shasum":"01af1845e2c010147c741c080e7fbca8f6e4354a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686166896000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVDA+xmQJQlzM8E5yXWVTuNPS7PkRKknFx24ye5+c/kgIhAPcU6CDBQ01k1QipZBFYyh0i7/xVK0f2pri63VGrAYPu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686166896000_1686167149389_0.3246666112794465"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-8-2023":{"name":"playwright","version":"1.36.0-alpha-jun-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-8-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"83cf6cc1e80ef3ca9f55701b5c5c18f7e3b7394d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-8-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Zqfy/xe3bHMWCpDmOWb8/eQqqTi49bDhNtYUlFU14cI7bpb076aNoPuV8XMPIjU6HnQVJDKa1ppgNvrTk0C0xQ==","shasum":"6b949de48ae3a0d098bd6ff00b08aa2ae7969c9d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-8-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTjgCXTEmbd8khDFE7Foszbn+IpdIoPbANiI0lW7crhAiBHF9dxMBhlzfshpcc9JC5q4zDbpqzvXUx212SbV62xUw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-8-2023_1686184225334_0.6751468918817303"},"_hasShrinkwrap":false},"1.35.0-beta-1686201102000":{"name":"playwright","version":"1.35.0-beta-1686201102000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686201102000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.13-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.13<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f411348fa20ac86c52efeddcd82dc7e06090b557","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686201102000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hMMRpDD4PxZutpBzvHt43piCU7yiopkIJpkKuWNsMSwe14txhjK4CvRA9UjUPz/gQ3qs9WgjOrALHJCaLLr1/A==","shasum":"97bb2af5e35fca3f9d1f79bd44e51249e60c5850","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686201102000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBkm8s4G0KjCcOFVQCx1xcmkZeJ3buM65bB5Z5/gJVNoAiBe0vIKk0PSoVVU4Dpq9QOxEmS1OsI6ahBX3kVXLW+hKA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686201102000_1686201264887_0.32113929463020874"},"_hasShrinkwrap":false},"1.35.0-beta-1686247644000":{"name":"playwright","version":"1.35.0-beta-1686247644000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686247644000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3e94abe1d9525dfa607b49ba80c5b35c2e48638e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686247644000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jlKsONNMUwzS3i57jFkNmmopAkOlTNvbWr244x7WM8VF0itKss2IAPn+Nqu9Pv3huBeBtqYVz8wIQrEPe/6+0A==","shasum":"1ce2909faabf7877ebe1cf02efbe509435e6234c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686247644000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIArZK2sORTGQR99mkfrrKAZaQLr3icCCIqjV+3J5WAmyAiBAa9QavQqcGWAuUiKex5OTpDtwnZRlZOMneARf3DExig=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686247644000_1686247819634_0.9456733466139473"},"_hasShrinkwrap":false},"1.35.0-beta-1686262403000":{"name":"playwright","version":"1.35.0-beta-1686262403000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686262403000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"745e2009cf1a9a5416188249378f624c8bb8522e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686262403000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-5AXPulPOWZZr3Kp26Dr2Zjjbr0EQ2jiM829GpLXovqzOVEbcW1fs7LHTCBb3zVzvnhLPM3HDp04Vl5d1St34PA==","shasum":"8ef4ed694b15c6c893a38d74871f671e67d5f915","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686262403000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcMZeWbrIkz36DT8h4TZrcnvsNHwfTe9FDqltaUNEmAQIgNx6eIynneWvFLeWCusRycV8nXBOpoD4il3820GY++Nw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686262403000_1686262564421_0.08817400805889353"},"_hasShrinkwrap":false},"1.35.0-beta-1686262846000":{"name":"playwright","version":"1.35.0-beta-1686262846000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686262846000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a2798c3221f7ae8ce878dcabc18b4147435082c0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686262846000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-FqEoIPUNsBY/kL1AplGMtUwMqOgUuP7ElF4GVvklILd75qaccIxsrhjqvxHd8OwBysv4LUjgFkK5saztM8Pefw==","shasum":"3b850067102f39a7c5c93d6149a44b069cb867f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686262846000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCs9FvTKoqaPJxud6cDpEEGOFhFsz/6eDW/nKYoXP5goQIhAJOnXtn2jtQobaL04PEwESKvlWuiaOklaWPPB/pQYT5T"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686262846000_1686262978714_0.016881322104387753"},"_hasShrinkwrap":false},"1.35.0":{"name":"playwright","version":"1.35.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0"},"types":"./index.d.ts","gitHead":"a2798c3221f7ae8ce878dcabc18b4147435082c0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xhFhsoBmKPQfj3dM+HbIiFVlqRCZp2rwdJd/QFd9YBuidabo3TkVv0iuxPQ4vZoMwtSI7qzjY93f5ohdC97hww==","shasum":"4e3b3ea2495d6fd671700f77b2f97b3adedf80f1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0.tgz","fileCount":9,"unpackedSize":24188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH3BwAVK22Mm7sVOC8GsZ8ilIrg6eqS2sxQfngDQfiiNAiA02JQVEric7IHoM1KHwfqsF1fS1G9Beq0Uipv4v0Trbw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0_1686264777204_0.6613428174701261"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-9-2023":{"name":"playwright","version":"1.36.0-alpha-jun-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-9-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c9cedc78b13a96e8ad38fa5ca4944aea78269ae9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-9-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-G8FGbZUBGWYCVaGY+689c4Hh45XIbZCRRQk6ivu/JDq+w1R/qBfE9BD6tTP75QIsC8j6gsjAc5xGIUvu6De8qg==","shasum":"66af9505e753d2d31bc1668af86dfb1216f16df8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-9-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDY7f+lrNSEw5Ov9D0XWTFHvD4mJ3hwqyaHZYxwaVyRrAIhAKNzXTxIYxCHsOhIXNCY+dV8kJdjK+8dGqoW8ux1ceGA"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-9-2023_1686270694129_0.48027764004806994"},"_hasShrinkwrap":false},"1.35.0-beta-1686326938000":{"name":"playwright","version":"1.35.0-beta-1686326938000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686326938000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"615e2e8fa80ff3ba7f10c34df397d21749b086bb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686326938000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-18hquVVI6jMKq8filxnBJD4QNDohjNsgBigDNwZmW/nXV0993USE4H/2quf2GpuESc5k54EaKvuAKgcnY7gijg==","shasum":"2a422f6a50bca4526b6949767abefb281c8c8421","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686326938000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEeIZIebWA1auI6/oPo4ePWYRxpeIgiryz6xZuj5mJSgIgbMd/nXJny86k1wuK+kWRgzim9MjTJ9Q2iyMpCQniLDU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686326938000_1686327110671_0.5953305447197144"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-10-2023":{"name":"playwright","version":"1.36.0-alpha-jun-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-10-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd9a49690b2d93da2a068a53ea891896810caafb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-10-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1sBYn/DHQ8mGoBpKfR0R/0cMqktrHBGb8gnXZpDpfO0mQkbqLhtKndW9jv33HbYcGWbVY+YA8Ey6enXaHFbEpQ==","shasum":"d346f79734ffc184839d3ee7fce150e9102a9377","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-10-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAWzbNUZ8PorWfCaWABEJjXF4grc2P7n3S6KKw6o68QQIhANfrVF+gpFPxzdqpTCIS32g7vqcjsiZdnfmtl6VCbC3q"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-10-2023_1686356911057_0.24570740334039343"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-11-2023":{"name":"playwright","version":"1.36.0-alpha-jun-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-11-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd9a49690b2d93da2a068a53ea891896810caafb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-11-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-AlEHFv+57geahj2ZFXmB7TT5NJvyTv3Kqhw9KuTMMPN6kmpqkj3f4LIGYiVDImDYPTtDLlV1nY9qdhi4/PZN7A==","shasum":"c7afbdcbf1238290ab038e5657ea3404ab5e82c1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-11-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/zsF4eMkQWAPv1Het4wHWxL+7DZo5CPIBobPnCf/LAAiBGIXeo8gj2Ug87DQpH2VMrhiv+nkpKOkqyBw2O8veLKA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-11-2023_1686443590123_0.6038711148429217"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-12-2023":{"name":"playwright","version":"1.36.0-alpha-jun-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-12-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd9a49690b2d93da2a068a53ea891896810caafb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-12-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Q48X8a/XqP8in/bhPuZZ9ottBtxFvx+01+qrfKPZsCmqZO/TDBqKBP0PfDWcblkjSUMuY8sd7PBfGDwDpltRqQ==","shasum":"3ee507b90e6df92f66bd32ba6f5b4fcdae50f782","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-12-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAENDuajhOgRgzszpV1AKpqc7OTW/GegZILP7S/HfWBBAiEA8E5U8/bnZY4t9yrLUpxAUydccFJX+ZP0aK6i0UDY0Ak="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-12-2023_1686529911488_0.9931688853335294"},"_hasShrinkwrap":false},"1.35.0-beta-1686593312000":{"name":"playwright","version":"1.35.0-beta-1686593312000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686593312000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"49ece365ab344adb5ea0b35746a83d2d938f9336","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686593312000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-g6nZI5xmNrmlsWIsrKUzJ8FSxhbnE36G6K5IkSmMEK/bb98bYd5sy0VuDEYF2c7XcEnDxR0LFNfHhIxP6cqkzQ==","shasum":"8444fcf8f52b59bcce8a68cd0e0d0a9bd6d08ec9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686593312000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr8uYXWQWJFXX2yctdL5OpvZWsXljCFC5PUFyA1pbPSQIgWE/Fesuaq3MsYyxcPVQpvtoVimfu8X5X93va9fHqh5U="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686593312000_1686593475972_0.9793596204796429"},"_hasShrinkwrap":false},"1.35.0-beta-1686615969000":{"name":"playwright","version":"1.35.0-beta-1686615969000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686615969000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7a064d09156497296788ba99fd4cec5e0947740f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686615969000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-tlwS0OxofHYrmmbCY+fuSabLCJktgwuviO/J4O/80QQj8LwFaKMCMZJ/egqmqVlHxh6Vh68SHCf6FBKe7E7Y0g==","shasum":"46ced80dea09bd94a6b828e84366c89fb514907e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686615969000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPAS3jzGuU+Id3HBr4TrfV3+TIm/3lyuTdiw8Wtbvr8AIhAPnGGQ3I4j5QV+Gelaa2bc/IyLWEZhos26WyIrpMLN52"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686615969000_1686616107302_0.4305651080408115"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-13-2023":{"name":"playwright","version":"1.36.0-alpha-jun-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-13-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ea7e9822aa90f7fe83aa65ded29875a8464ae3b7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-13-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Wo+aWoPQEuCPW8VfYOkqNea6cGxHiGfNGZ4I1E84yTXoqKnsnRZEkCVbSTIIuAKhSOF4jWyZoruE1qWXkFws9Q==","shasum":"d0d0d0f1061cfd5c0213aef97f7dd436dd64492a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-13-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH6f26r8mBSR3RR3Qo/YIoTwu+/Vi0MXhdxx1OjFrqrzAiAqRxPF3u/AbzMtv0uYHnK8Mg9NSHT0ZkSGTdpJ9hPR8Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-13-2023_1686616155680_0.7872966098686747"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-14-2023":{"name":"playwright","version":"1.36.0-alpha-jun-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-14-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"51b8f609fbe8d9bbde7765ec627ea25efb7d97d7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-14-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Bsi5NqDgJl/g8PSRvQo+tcxkIO8YWGcDT9XNRtPSA3FkhUpf22L6gwPHTtkawh4EUTb7WUXVo/h3f14oeKcW8A==","shasum":"7abeb4f741747820a94e46b54ec5ae55ebcae795","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-14-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcRLHTSU3AoYbqBob8rsy3LQN3fGbx0QjHUxvvgeISvAIgfUP6HMfM+mg/ej5SdHVEJEj1hli2VqwUNd0urlEtLVg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-14-2023_1686702485740_0.6513599302845972"},"_hasShrinkwrap":false},"1.35.0-beta-1686729081000":{"name":"playwright","version":"1.35.0-beta-1686729081000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686729081000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ba20378b5b1ab99c748ccda741b74f1f6400db59","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686729081000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-df6qilqr6/Kx2TQ8JmnDuAwPJDJhzERzGKTMi/uVBirAQOdzcHmw9WQ37KGIzNY4LIbBUBwV6/ynjH4TviPp4Q==","shasum":"07ae821d55db0e042aac1ca37a742daff197801c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686729081000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDycWJYHU0vtFy02rMXvKMNXbod67yUiMfc7/J2wTADngIhALFIFeYV2+4ewbxIGqadmTexpnY4GxfDhm/cPVkajuB+"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686729081000_1686729260768_0.5439833389090813"},"_hasShrinkwrap":false},"1.36.0-alpha-1686749586000":{"name":"playwright","version":"1.36.0-alpha-1686749586000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-1686749586000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9e636687ea6cc3c814370134dbfb3bb6f50ff109","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-1686749586000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-B8/L7IqkNZHn4CH/lQWb5gsE7r4dURaP4WLjOM/DH+714iNWeMwu2dDroVeXS3ZKT88ChHLNWhNTd/B7TuScHw==","shasum":"36757533cc0cf2b1b6eeb8da8b9350a44830f8be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-1686749586000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/8QH8RLOkPTMzJxa8MSXV96HuTTmPSjT8AB4ThfC5nAiEAnAepXcjBsXXGdd7fGM7YQTFlDKVd2BdSFC2c212+Scc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-1686749586000_1686753298303_0.8944733287006856"},"_hasShrinkwrap":false},"1.35.0-beta-1686760675000":{"name":"playwright","version":"1.35.0-beta-1686760675000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686760675000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"182a71f25495683a71f61eec7ddc4986650b587e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686760675000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-VqlcIYTj7vvrXtoWV9d5XmQCdMox09YxBCfMHvtlyzrfMi9qP6yrBJ8pUr/qn1VYl5utXpUbkvF8u0bMfJxxTQ==","shasum":"0209d779ff3a61890e7fbd7f171a7e17bcd45644","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686760675000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICySkmQQnZROMiJuHjKE2uObL9NHRX7ue+/9Vd9HGXk9AiEAk7nzDYk2e6fyBT/0P6ggY4qa9e4YfnWPIg4oCfvCinw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686760675000_1686760902908_0.8416373584575021"},"_hasShrinkwrap":false},"1.35.0-beta-1686781587000":{"name":"playwright","version":"1.35.0-beta-1686781587000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.0-beta-1686781587000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed09eb606568e187d51fc7052edd018039308a11","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.0-beta-1686781587000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wlqDdHf8+XH+hJLzbTMsnpuPOz9fqfwHFoEwd58t1vH9463uraqsy6PeD0W2PzXgh7HFCplpekQck/qhi5qJsw==","shasum":"170e59645abd74c1cd08caa9883c6cafb96de3cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.0-beta-1686781587000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWvq9vPNI/aWUKI71DNB/Oncb033nnJPkQSIqyWMj0xgIhAOgcWCN30bkn6Fhy9orlA/pFzUUIgt5aKq6BIqrsLuZm"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.0-beta-1686781587000_1686781750252_0.33729071806922417"},"_hasShrinkwrap":false},"1.35.1-beta-1686781654000":{"name":"playwright","version":"1.35.1-beta-1686781654000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.1-beta-1686781654000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"472e0eeda28cf824aecf3cf057c863811b354cb2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.1-beta-1686781654000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-tIqPZVZqbFTIrgo/kUGozP/oeu3PqSJ92hQmhn1uzwbRq/GepBuCJ6G9Pw9Kj/YHP/JrNGufzAaoSuLs3BAjUg==","shasum":"107b18b011c34496d405b2fc8582e3d76434eaa8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.1-beta-1686781654000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhmS1Ipl+j+lAPs8Fpuy978HYJLP+ee0ksYIn/bcppCAiAJDQDAXRlzJddxlrQvsjLxue9QJXIdgi06VuDI/nbfPA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.1-beta-1686781654000_1686781786466_0.15365563374283941"},"_hasShrinkwrap":false},"1.36.0-alpha-1686787839000":{"name":"playwright","version":"1.36.0-alpha-1686787839000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-1686787839000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"77d322028cb77f35b07fec64446014f62440aa0c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-1686787839000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1JYxj5YeSk/tRguxUEN7pZlIWEK6kYxZcCcRLK7zt7mEHj9R7azzIghqg2gC86kd8EYV4CY5okpFZZJuVnpg0A==","shasum":"e6aca5c6285912b9ee11cfca2bb2c60c585f3d2b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-1686787839000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdE1J0RKflH9MeC1qcM602QQOzflDiH5CVLutTan5bYwIgBg97wjrZn+mtSj5ZgRit/XDSdm6RYlfjNgHVkbyJEeg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-1686787839000_1686787983487_0.8385511863011084"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-15-2023":{"name":"playwright","version":"1.36.0-alpha-jun-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-15-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"77d322028cb77f35b07fec64446014f62440aa0c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-15-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1KMtpeRod/GtDTJQHExbYDVTOvG/Vwtnzjg+iq6wWkbDuVOA+yoOg0CvLuRgbnozRxEapkj/nZbLpj65Z73oGw==","shasum":"ea6d01e7cae95942ad8f2c23b57fd18b5dbdbe8e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-15-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIyyI4Afv4F/92Bhre9jWk9FYxLk6iOhqtv28PRr3RtwIgBJ1GTdpP2S73Vfz7m6cx8C3wAkLa8rr3Fw1JJMiOf9M="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-15-2023_1686788972595_0.2140273915978188"},"_hasShrinkwrap":false},"1.35.1":{"name":"playwright","version":"1.35.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.35.1"},"types":"./index.d.ts","gitHead":"472e0eeda28cf824aecf3cf057c863811b354cb2","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.35.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-NbwBeGJLu5m7VGM0+xtlmLAH9VUfWwYOhUi/lSEDyGg46r1CA9RWlvoc5yywxR9AzQb0mOCm7bWtOXV7/w43ZA==","shasum":"f991d0c76ae517d4a0023d9428b09d19d5e87128","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.35.1.tgz","fileCount":9,"unpackedSize":24188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWefNaSDbtStvG555bbZVZEZUr96PKTNKxudxK+WllMgIhAP9XH0HlGRN4pGAHpd+RaaJpmeYC414qGXT6DA4fd4Ca"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.35.1_1686841281024_0.9722419610584643"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-16-2023":{"name":"playwright","version":"1.36.0-alpha-jun-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-16-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.24-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.24<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d11bc887848bd40bd02aad9725e92349fd40466d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-16-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-GOiGgS7XkRanGouCQ7DHoYo9hQHlekrXU0d906i0EACo7scud5+onZN4RJwfND+5HPC2GNOglIlXS4gviq5CAg==","shasum":"45833e7e33dfd65f31547d4306504367a0077592","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-16-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIqHyBDE13OHyqVMeueoFMcWk5ZMGH9oA9xhxfzg/MbgIgKS9sz0dWOouJCAw2MHDQHZf43QSJ7vY3/o+oTBeE/I0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-16-2023_1686875421975_0.44116329225042294"},"_hasShrinkwrap":false},"1.36.0-alpha-1686940815000":{"name":"playwright","version":"1.36.0-alpha-1686940815000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-1686940815000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b44723708c50ee9692c55ceebc8ff988298234e7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-1686940815000","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1MjGYgzL6R29NIeHSo8GofnmZk2ZEhPWZDsXJwQJzXNXVmsk/2BwAeHGIt/xjOXI1JLdSu/QWRu3bHBjMsrKew==","shasum":"d14bc8b69db0616282ebe58215596848fbb273f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-1686940815000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClERAT+nkZTXQmTcIZRqtbzifnPpKg/pnkneVXNmF5NAIgccQtHohtTBD9kP8pInveGaqpRoTUIuGP4wIiwOQfbjc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-1686940815000_1686940973522_0.34670690030196893"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-17-2023":{"name":"playwright","version":"1.36.0-alpha-jun-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-17-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-113.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->113.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"426d6dde0ec6ba6ded715e672d8eb715596d552c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-17-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Oy5UoPi1fI+xRMeA5kCVvsISal9yEJDEqI3baa02SdTsOLfVt4jjD2iFHvqj2i97GqEheMzsxGNJL9VE/6s83w==","shasum":"3f4badaf1b3f2b4bbcaf76776902b6145c7f7857","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-17-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvqzUFBT36zYZei7KL3mFfIT/F+17Jd5K1TfgZyVlksgIgJ9EGs4GbyXrAD7jtVSs2ynAE4voq2NMtPMA53r18Qwk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-17-2023_1686961684160_0.4197394409769091"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-18-2023":{"name":"playwright","version":"1.36.0-alpha-jun-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-18-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e171194c86a8c86a598e86a7f04abc0c3e786d34","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-18-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-85K9iITPiZjqztpUGcE4FtLJKd23TU7PH0rNHf2JUd8WMakMr19iv56fAEMOu3D4MWK2G722CjfwIHnjOy+p9g==","shasum":"b300fc98e52c2033a59c5844fee710c4be65f588","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-18-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA29moqlOMzKIJ/VCNSz5yD5bYdW/nHo9S3TqiijNqwPAiAmUexjxcCsBk5AnaXfQHsXekKTUU8sjQ0KpvWeRsT3lA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-18-2023_1687048319428_0.1903494259409737"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-19-2023":{"name":"playwright","version":"1.36.0-alpha-jun-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-19-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e171194c86a8c86a598e86a7f04abc0c3e786d34","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-19-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-atPnWIwYVtRAQa03iTPjVEGXcLy0kAXcYKRElZHkWtjh1HFjXNllye+h5YV3IMfgr0UyeTR2eDYf6/cqgtxBjQ==","shasum":"a29227714054cee9034fcf2c022bf8881fd22bac","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-19-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMTj2hdzOoEOvmi0U4CI6n+KP7Iv/t8pAxVhYoM6arYAiEAoDFd4wfLqyY7xGeG95IDY1gTlVUysNdh5HoleLB/qIA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-19-2023_1687134609167_0.6857077863349863"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-20-2023":{"name":"playwright","version":"1.36.0-alpha-jun-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-20-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fe5c9dad4d4d5d9ed7ec3c96a2141018348e2336","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-20-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-d4AG7Zwy0XJWln4aiNUyxxtJf8+7e1cEnPbtdJKSm2CBdCQ+vxgmj66lBPaSMPMtnzz/IngFwoyGvx7Myq/c+Q==","shasum":"de7a626f0762023b75d05e70df551082f1c4541c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-20-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGNHVfra+QQVMT92c7Ou3zyWuuqijlA1R75YqGBuzduAiEA9X4b8B5PB2pGrv2Xy2KsBLt6bTrBsU339n8FEb5sFTk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-20-2023_1687220933751_0.09240008446031944"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-21-2023":{"name":"playwright","version":"1.36.0-alpha-jun-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-21-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6a6ff9cf6ae63e1ac44ebc18cd1bbc8d73c27245","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-21-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MH1mSYpFAV7/fW9ACyuT2TgEWrWtLxFWKmq/3LJbikeczy1ueZJ67K9yoOGC4627AcYpTjLpdz9rXbLiAFiP5Q==","shasum":"d4c1ece55519774c4c5b28c53dd5498b0fff105c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-21-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICk8LvnwappC01UGzc+QH60OC2t4h5Yn5YrK5Z/PiyCIAiEAnwLaoPe0nADJ/E1P6ksF88rTZdgyKBjDEB5vvzNVox8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-21-2023_1687307380032_0.8174979690401798"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-22-2023":{"name":"playwright","version":"1.36.0-alpha-jun-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-22-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"605dfde2be31309687a7216fa798cbafb9f9113d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-22-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WsG1EgNayf6ptBwiDxeiFJMh4GnpYFnxEx2rDMNq527jCote9UPK28xB2h/2ASQAxzsUnttcy6o3/Q2rSM8kmQ==","shasum":"4f7e2994a8d50518ab2f8041fcebe2877fe3b8a0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-22-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWmrKToe/WtBaSpoo7m66caBasoFc91afBCuMSUUBIXAiA48QWLGIO25pYqLsPw30XPJ5IHM0Q3v8ag4hIeSMA5Aw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-22-2023_1687393813305_0.27298279606602094"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-23-2023":{"name":"playwright","version":"1.36.0-alpha-jun-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-23-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5821c547aacfd542259c8a9707b1eee119f0b692","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-23-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Ltjq+NptpkgpYdm+QVOBrzSLVHy9fKChuNJRnzclUNMUVHV+MYXxmxNvqq2cGF1IJULShdPD0ejjwZyQfRP3kw==","shasum":"68989e5937abcb19443baa6642392af033975f1c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-23-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDKF+404NewJaZxGRbxFtoCdWvgRpHnzhA3dUkOZN9mhAiEA6PWAbRaetTp+1K4Wc7iVvG7cdZuPGfA13gL8tdUAQFw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-23-2023_1687480337554_0.677668754021955"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-24-2023":{"name":"playwright","version":"1.36.0-alpha-jun-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-24-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6f67f6b52b4c69afcbc68b9b5848d08c00dd8295","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-24-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Za686tGFlHFUjnCscmlPrY33YuGY3hID/+aUX+xiB9VxSlo3t2GmH+CvBiCR/z5uWD5cSukUI61df32DRr+X5Q==","shasum":"956d9fd25e1e7fdf9539bf904800b98eeecf0691","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-24-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF7ILTbtQA76xFZA5DYABb9IVtA6w5LiCi2/Frqkv6zXAiBXsCwhcK/XQZnJN4qefcTz2QRf3dJPeaWwx4XYgDmPTg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-24-2023_1687566822374_0.6961744589081467"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-25-2023":{"name":"playwright","version":"1.36.0-alpha-jun-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-25-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6f67f6b52b4c69afcbc68b9b5848d08c00dd8295","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-25-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-LSY7Uu0nxYRyYiyquBWQN/6umgQoWTPEg5hEuj8vCdSc+CfatxdBFbw5YlDwf7I0RV9kP4lrc/0zKNqwBUD5ug==","shasum":"5879b89f7a468c4818e235b5b5d8583d4ab74aae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-25-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHqr/J2li4DIoO7VwIcLh4sfqaG4tLec7YPw8woDW/wUAiAanSTwic81ABQMXlc6/ra6axHr5fRVWu/bwBHdKurC6w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-25-2023_1687653320723_0.35598072321942453"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-26-2023":{"name":"playwright","version":"1.36.0-alpha-jun-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-26-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6f67f6b52b4c69afcbc68b9b5848d08c00dd8295","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-26-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-PDWAbwMMA7bZRFi4YkaM3v8OsoQbMOwHM1JK2Ud6v8fKSKfI/KgmneaFogwTAHfRWXskiaAG4UAAtrL7R2yZDw==","shasum":"f47fe01a3913eb403efe2222146c201df55d1397","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-26-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBAoKBudW9DyUegxatUKnZp5xNbFLCzwWgPm7S2dA8bOAiEAlzNwg5XQ0M69AG4INVaS2OvSJcOwVD8TJLmmJj3RwzA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-26-2023_1687739613373_0.12534905326538937"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-27-2023":{"name":"playwright","version":"1.36.0-alpha-jun-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-27-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dcdf38f1197359b5cb6c5c202470c46c22e8bdf8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-27-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7W+Q1xDRITGyjQWJ7bjbjPuG+dEgrDrJeIHspRf8eSH+n4Q/eqCfqfOCEb4tpCyJ5zbarVMCS9jWYUyxzoiTsA==","shasum":"965cef63caed254a683af9695ba34bd7e472dab3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-27-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/I0XA8wLef95m2FKHFqxHMLI0/i2syVmiYt6M21QIrAiEA+vbjHjP5Q18BkLIDaVVzrcPsgC/F1sda4LUC09uatoc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-27-2023_1687825942818_0.023052969148853464"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-28-2023":{"name":"playwright","version":"1.36.0-alpha-jun-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-28-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c6a0f3e8a0897d5b77b18f030a6b29c2390f1712","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-28-2023","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-buxUdWV9TEcpzRnMuKedyD5lJSL3Olooj+6QRGOZsNz5ps7VpVeDhZr5FWWgC3bNKU5OmWULND8SZlxI31RoFA==","shasum":"159ab5f5a23d5d78b21a23bed6d604e0ec0c83ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-28-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLA8elMoAtxz96YVZ64ecFSrDvJJBeZPfam4y/H5RBsAiEA7lAdzxLuhsU3WAAv0oTANoYqngxb6Rox4bm4+wGh7NY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-28-2023_1687912318788_0.8727602167113757"},"_hasShrinkwrap":false},"1.36.0-alpha-jun-30-2023":{"name":"playwright","version":"1.36.0-alpha-jun-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jun-30-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e28312ba63b7e4499c0de6f79b86ad6aacab78d6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jun-30-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Pf3GpvCmX3qD+vXUaDqPLuqVOweILd0SqMXA1+VfIcMSIid9/u3GQDlPBhuEHVBFefRuQU581gHYQk2zNetSAw==","shasum":"496cf1c1f9da52f9b5d27ae66d16e6f2ffae782b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jun-30-2023.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFCANXbCuuuSL6WPQSooc1K0aT0fayVpJcl47W//XU6gAiAXCa+unsZ7+DHasJ7UaNar71s8KpDFTbOssPhg4qd1Hw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jun-30-2023_1688085099618_0.9640357608838064"},"_hasShrinkwrap":false},"1.36.0-alpha-jul-1-2023":{"name":"playwright","version":"1.36.0-alpha-jul-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jul-1-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7e310f79af8732d40e41042d437623f632610509","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jul-1-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-cvF0bTyK3lp9fQlFUkNnzmLY/zLGn9+xObfKinMJYfPYKXel1LRbC91eX/w4RbLllTCgzSWGn5ZZ/RlVd8O2hA==","shasum":"de793be2fc6e7f42887bc16c5c7133f7d5c89d42","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jul-1-2023.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuS9I/Ewy23KDngy/00jJI9CRPaWReoOgwDZDcIxK8kQIgFKKCzlnkRTMyfZxPSXbrdfhMmFm+saBElSTzrNCfow8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jul-1-2023_1688171731934_0.5343745299506528"},"_hasShrinkwrap":false},"1.36.0-alpha-jul-2-2023":{"name":"playwright","version":"1.36.0-alpha-jul-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jul-2-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7e310f79af8732d40e41042d437623f632610509","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jul-2-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RkCq6twPmEvB/Gh2WgXbMfglBaB2UGyz/pWyijXuHeXJNW4e0LRI9qUJpYqb+RTpCcOcnYe2BOhg1ujnfTtE4w==","shasum":"b98101b45b2ca2a558ce48478db6294dbc660ff6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jul-2-2023.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK25rb1l73PJIbUXzucIJznloC8KmziHKn87EIyGE+KQIgaWOyH7dC/fhj/g8DoSekCbS+ZdNXhLFx2YXoHL59Wdc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jul-2-2023_1688258168380_0.5344576968012638"},"_hasShrinkwrap":false},"1.36.0-alpha-jul-3-2023":{"name":"playwright","version":"1.36.0-alpha-jul-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jul-3-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.40-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.40<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7e310f79af8732d40e41042d437623f632610509","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jul-3-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-X97gJBFHrQg6m/DONnwdJtJkX2NaLgCGjGBh5qZdpY7yPN5qFZeUugArBPzrTV832pxQkXEMynUl52gP9xWQ6Q==","shasum":"ecfe2968ed5cb40ed3dcb0cf07bc3e7fd3f4b896","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jul-3-2023.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARLCrxqiI8A+y6FNf8IrV5Lp8bFN8ItAMeME+NQ4/9XAiAQ/OdJinBqcYkoIPplc4W4mAOwiLD3Cwv7yfsp26YQQA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jul-3-2023_1688344441982_0.9209330420531172"},"_hasShrinkwrap":false},"1.36.0-alpha-jul-4-2023":{"name":"playwright","version":"1.36.0-alpha-jul-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jul-4-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.56-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.56<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9f1f737acbe09b0c9fd56c60e38493322f521225","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jul-4-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Dsuu/neOrJCG45TWnRPpDqiAsEJDRRU1YlPwLXmxEZwvPXdfWgZWoBT1nG6iE1F4PYmySwfZKV3P34i4bNFHng==","shasum":"5c196c7a1e7832b48ece4a50ccd70b0fd636cb87","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jul-4-2023.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSK73QI0dRG3mXYCp3MxPe7gOVOwKkZdzqjSBfSSTsbwIgNVMdqFZ8Ul+dEy0Q1mWowz3HxBAGTiz5ZNry/IRRnr0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jul-4-2023_1688430824102_0.29502806484917454"},"_hasShrinkwrap":false},"1.36.0-alpha-jul-5-2023":{"name":"playwright","version":"1.36.0-alpha-jul-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jul-5-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.56-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.56<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9f1f737acbe09b0c9fd56c60e38493322f521225","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jul-5-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Pyr/l9GuOYlKGBuCeBN1JtInGmnv3Hc8Iz6eskaxYrdh9Bf89srkgT4B0EOD/qamQ0H/f5WU/IL/5gXj8KFNZg==","shasum":"ea98e92d116afabe2cda3e39a0a1a6dc072d743d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jul-5-2023.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyGlvl3J91IhIUwwZFgvZqCigPynfy1R0Xcoi6C+OHtAIhAI/xPIg8rO0OLgCqn5i/896eJcUBS3piou4gtKC+7WlN"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jul-5-2023_1688517165912_0.9887799176383973"},"_hasShrinkwrap":false},"1.36.0-alpha-jul-6-2023":{"name":"playwright","version":"1.36.0-alpha-jul-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jul-6-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.56-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.56<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"566b277ce879c7eaa38e4cc50aa086436bde8a89","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jul-6-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-19BIBGLXBP/z3UEqn8wt9/A3aLXVucNoVjA7BO/aQDKoyQBYpmGxy3oky9pRHfxv3Hu+CsRylODgv0L6mvD0WQ==","shasum":"e13eb92d1f1f9e0f4b219476bc6c59315a486fc2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jul-6-2023.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8gfrqOor0WGOH6y+/jczSSKc9LW6x/svazGFpNZO89QIhAJff+a0VTEsVIluU0TOtWQYXUH2PhE3g33zuYEe1ckK8"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jul-6-2023_1688603663769_0.8198651047150383"},"_hasShrinkwrap":false},"1.36.0-alpha-jul-7-2023":{"name":"playwright","version":"1.36.0-alpha-jul-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-alpha-jul-7-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.56-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-114.0.2-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.56<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->114.0.2<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9af2b518f2ef59abaefbc97645680b9acc77ea24","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-alpha-jul-7-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-yuNC56dErgrErdMQy8oCs9Al6zljY6jpa+cS7iD8RfV6MiEG/X/ri1EM5pCMfAiNHC+die8sxio/nkob0Sk1CQ==","shasum":"aa94a330cf41b636bf5a203419d0084e5160847f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-alpha-jul-7-2023.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+80Wjk575mH10ycCCS7+yciZz0wsnu0o35z9y6XrQMAiAtoNopFY5iVQt+6FRkcbjmeBoKeEpE+80byJijsZubLg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-alpha-jul-7-2023_1688689929653_0.6568777443016549"},"_hasShrinkwrap":false},"1.36.0-beta-1688741463000":{"name":"playwright","version":"1.36.0-beta-1688741463000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-beta-1688741463000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9bca9f1b4ff3478c20a526c8f8b41ab8ab9be6e6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-beta-1688741463000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-HHpipREQ6icYt04Zvwm0SwPeNgnJy93vn22sY8E2vSJP//yHgog7Hy8Xgf/ZFZUQyIYUXhDSIX85pJ9oERNqyA==","shasum":"3ddec36accfe1ad9ac9beb83567c962ca763df08","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-beta-1688741463000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEWmh9YZkDSWL3K4T6dwB1y52TvaeG1OYO6E0R4HAzvgIgBtQFRzp+IV89born3KHa+BKxhanJvaczOqxAmwxzONM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-beta-1688741463000_1688760313314_0.2807276666616165"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-8-2023":{"name":"playwright","version":"1.37.0-alpha-jul-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-8-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"50ba25e9a17ab1f5504461901ec1852fa667608a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-8-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YH3hzhdsMU60HPSP8K+iBv+D68yqoQ0EJW1numJ2RsKM3Gl374E3UvPza7NrRApIn1p/4oFx4BB6EM3wPzNBKg==","shasum":"6fbaa916f0478c3acb7e59fda97bc4f3829471dc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-8-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID12cWQiiOUBlZ8YdJ4RzDUZsEm9eTSCuKeRM281dWrZAiBCRhJ/alIT2R2y3oCZ98k/JvdGwM990/pz1kxUKiGgLg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-8-2023_1688776302973_0.8759770907156805"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-9-2023":{"name":"playwright","version":"1.37.0-alpha-jul-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-9-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"37b3531a1181c99990899c15000925a98f035eb7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-9-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-CLzrLs5uaij0dKfy8DkM1QaNU7Rt/pxc9V50oRbCgHDvpBj6+bDYezaB4sD3EfKFGZwvBJwAbbxpCR7bIpl6pg==","shasum":"3c4114aec2358fcfd7a137f3617ca59a63ef44d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-9-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLHKBxTZmGBdJC1aw4d7r875kyddYNymbZ4X9s3jTyNgIge31tyb6CB+WeJXITLOTIDjEw/bWWkSfRvgxo5l9QR1Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-9-2023_1688863102804_0.7138183256994728"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-10-2023":{"name":"playwright","version":"1.37.0-alpha-jul-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-10-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-16.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->16.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"37b3531a1181c99990899c15000925a98f035eb7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-10-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-n23T5NV8DdErAVVTzha0TFvIH0yARESApyHjYvBJucdqdw/lNMkGaFVgq9WdKZJI2IEcf7Hm22L0FoNBDtgF9g==","shasum":"dc5ad89bdc0ea087d732a57c36352b56559851d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-10-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYq7cDpwD+GT4A4JsYfxEts5EojQd7Wa0Ik+6dgowJswIhAKKLC16IIHYWM5pxdymbHhyikVbF6LVl8uqcv4LFQ7hO"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-10-2023_1688949202612_0.38756203372985154"},"_hasShrinkwrap":false},"1.36.0-beta-1689001890000":{"name":"playwright","version":"1.36.0-beta-1689001890000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-beta-1689001890000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"52f594e0ebf64d2f2fab0bd8ec625b77bdf62bde","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-beta-1689001890000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KXxplGPC1/TwpBPJDPQXBu4GEui6a+Fh4Y8ogP3exVaobGsLrzaXGcuzzx7m+xsIJmi2bn5VX58DndYR/2JwOA==","shasum":"3c2bf6347ddc9642d027f9a23d5ab92e48eb34f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-beta-1689001890000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLBgB8icL1+frg8OyRGR8/7Je3x4xLIKVNL2ZN8rarIwIgXQzVywM6X+sHUVbItJTP4hcOSO7s1BikYH1UNcNXwc4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-beta-1689001890000_1689002125513_0.7274667268970703"},"_hasShrinkwrap":false},"1.36.0-beta-1689009916000":{"name":"playwright","version":"1.36.0-beta-1689009916000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-beta-1689009916000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b7dcc2bb162d569a4d97bc980a7ef32dcb712ea0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-beta-1689009916000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Iiqi3KzcxPKW5UcT+C1gLDQlsSWwNW+ikZHOz1E3wTHHQbpHIb9pMOaoo1s/hszV+HrHDSjg6fpHXRyibZ6oaA==","shasum":"908e11da21d9b60f1d52513b7a2efa350f7c24c2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-beta-1689009916000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCamx1JSuDJUDgSOAfgnGrF/II/sm50Z2IKCdBQQVs81QIgQI7zT6jGnXXILh8Ub+8RwUYrc/BjtLzkov476hZhYmI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-beta-1689009916000_1689010090824_0.6381531636862947"},"_hasShrinkwrap":false},"1.36.0-beta-1689010164000":{"name":"playwright","version":"1.36.0-beta-1689010164000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-beta-1689010164000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e9e6cf551f6faf8c16beba8c28581b6797096e20","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-beta-1689010164000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-iCK+l+XVLBZ+0WPKUeFoOB7BNgNmH5+fV4uui81ExEvgFPXmedMnAqC/xg3KSZpuVR3PEFUTdl9c/ifwhR0qTQ==","shasum":"f15abbbc8c95dfe5f61af25a15d73fde7809f2d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-beta-1689010164000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRLYYj0Tm4bhuffNj431F3XjPLl5ScGzZa63nZSJqZeAiBf2NsSjpyLoJ7TIrHri56EwxPmmUXld3h238QRNqaFYw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-beta-1689010164000_1689010322020_0.25217427003410187"},"_hasShrinkwrap":false},"1.36.0-beta-1689015563000":{"name":"playwright","version":"1.36.0-beta-1689015563000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-beta-1689015563000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6ee70e2ce350c5b70f48d49f2141bfa275a6453f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-beta-1689015563000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Q7su9aT5iSk9rVJ/0IsmFqpk7qqsaZNBWeboCfBPz50zmSZmKEWMqmF34YK/xDkjc8YtOSACl0HRmI4Zas61eA==","shasum":"71bc14e0b2276ea45412ccdf92e76a486524c76f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-beta-1689015563000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAs4Rg6Ux3FTPKnwBA7Pel9O9RaeTRH/bdp2c2DCvZVsAiB6Ts7rznvj+E+fF/mQ8xOXiZXnTCiXthaEM9/0HgQRuQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-beta-1689015563000_1689015764183_0.37737832859371734"},"_hasShrinkwrap":false},"1.36.0-beta-1689015697000":{"name":"playwright","version":"1.36.0-beta-1689015697000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-beta-1689015697000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1e8e8b4b0248718160edd541b6541e66b6caeac4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-beta-1689015697000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-yvAhLjAU14hTKK8jKxl6Ickcn0Ei3WxekYhSxkOcUSzRFdyrmm36kQQb9TRzl1w2V5eW9uPrqwzxozGyHLlUBA==","shasum":"d8738925c4cd8b49ebaee794bbe5acca2e3d1fa1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-beta-1689015697000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAsPBa64wxl8n/3YVUMEhDZMxjkV3aOHRHxPmyYCq8IAIgdTUTLirp7J9FHeGedlx6785J+0Q9riyYFJzshpLTGW4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-beta-1689015697000_1689015833366_0.6537803865154312"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-11-2023":{"name":"playwright","version":"1.37.0-alpha-jul-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-11-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"36588ba98e60c86d5a8a8177ffa26eeb8acd5e2d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-11-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-L4fcXLZfxtjFohmRkdzjQCQ8WiHOMdCgQVZzjrRv/uDq4MdzqtuM+538j58wn+vlUVMrO3cNkbBwUfLkZdfbsA==","shasum":"b9dd6253bace5879e483868a9a95aa23c37b43fe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-11-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCF+QKwTWzRSLbgYajDaKZttPe6ktU1mPz5hwgxKpKEcAIgAPAYQfiWTHsXUuhNMXBOUrpbKOk0+mDw0WwbL/gT6j0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-11-2023_1689035331384_0.9049034334819861"},"_hasShrinkwrap":false},"1.36.0-beta-1689052257000":{"name":"playwright","version":"1.36.0-beta-1689052257000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-beta-1689052257000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"74ec8c243a52a56196fd18bb54e26046d89d1d48","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-beta-1689052257000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ECmDlimNHuklmDwqS2MfNpbui3W23DSaUY5FtKyBVYTOtmtHDiuLDHcmcENF8xFMt2iykagK74uy4P9D6tCnlw==","shasum":"1bf6416be7fc70de3b49c94ec3cc39f562065b44","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-beta-1689052257000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVAO086L+Eb5yudFTloLtVR0BSaL7pnMhznxCdeQSBnAiALqbRkjI3eSiQl7fRGnVkn4tx5ATFJw+yiklq/LmuWRw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-beta-1689052257000_1689052425969_0.14086946505611841"},"_hasShrinkwrap":false},"1.36.0":{"name":"playwright","version":"1.36.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0"},"types":"./index.d.ts","gitHead":"74ec8c243a52a56196fd18bb54e26046d89d1d48","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ODVOTp5WoRMxDJY3liMmC+wVNicc0cQB17gASvQ+zLBggVK9a2x3gdT5mbl7av+zomvtdirWOqqfD+O6qIrFgw==","shasum":"a698db3bb5f8ab4aa0120575c859d836d9be54f1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0.tgz","fileCount":9,"unpackedSize":24188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGbqF0JiAlg13rUrG3V2GBq1uT1nUXZIq/CMTDZdMp91AiAsHQatqPXBO5udjOQ5/prtVmFUeBz0s7TX3nODIv/1AA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0_1689093992508_0.6726813062306523"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-12-2023":{"name":"playwright","version":"1.37.0-alpha-jul-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-12-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"76d85c55cf69c2f8230dc3404efb36c6342085ed","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-12-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KKCn1EaFPMi41/Xn7EDwDjTOoInqIcDMfaxaFghbDDTBSpcFAEmkssp4XNl+DRIt45FbOxpX2QXb3Oy3rnMAEw==","shasum":"9eb31947477168f3fc45c35c5ea6273cbfbc77fa","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-12-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJ3ESzcYh2BZ981qPjBN84wApgjsh/nFvBqqMIh2BMmgIhAJvyCPYdHoJzLApzkRryn8rdeuGX40A0Vd3J5J71Ygbp"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-12-2023_1689122100992_0.27742906422061453"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-13-2023":{"name":"playwright","version":"1.37.0-alpha-jul-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-13-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"53feeaf2702abcda86c94e22cfec1d6df2fe928a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-13-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-n7gAmQz9WMx+YTJqQoWu19MxeGLBPNjFCqzoWgHRjzqaRFrXpOfaVwtpwEZXDWeGr0h+S9O1ts53GDaJUoOmXQ==","shasum":"be1d5b7de131cbebe9506b47ca95166af916dbab","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-13-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvwHE0Zc1Za5+W30/LTPU4Ph9TdFNtEdwxO/yr5l08OwIhAK/kpFoWs2bYecaWVOOBCxNvkn4LOU/ug9VMJOEPQgdR"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-13-2023_1689208407007_0.5219142828165817"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-14-2023":{"name":"playwright","version":"1.37.0-alpha-jul-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-14-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5ccd4b063235309fa3323263670869328b2ffd86","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-14-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YSkzi5G6al/CjOFPOgss1N1NpejeLIKbKAcKMEIRJB6hsYevf04QsqmgPe2q+2uo1n4LDsGq89wXpK60ksu1/g==","shasum":"c1eb428b82ec44ab33a508bf8b03f07042fa3d59","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-14-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvU1FArAKhD5tEqFClpHOhfNDNEhI/9kKJ0Qv8jKKkgQIgEGJ3wEtzk6ZHTCkfw3Bng1S71n6WNC/lN+4V4t91hXc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-14-2023_1689294821834_0.12316296839639373"},"_hasShrinkwrap":false},"1.36.0-beta-1689341628000":{"name":"playwright","version":"1.36.0-beta-1689341628000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.0-beta-1689341628000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cf5900f14281fc80f7b578f93345833b1615d17f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.0-beta-1689341628000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-GINYfMlCgMz5jYQd7qHt7/7XxVYT42KzSEhGWWL59lkLWymH16QyYKiIQg4jS5Kc3UBD4NNGohxAl0te1YX7hA==","shasum":"502b074b8ac586d433051cdfc0abcf269e9776da","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.0-beta-1689341628000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9uZq8sFpDIObhDvyOm0c+kMNmOJIS+ddrIXRgL5hrXgIgZ3HmGns5ExEYBIRdHk0JNI/nb6sg9ifpW5rwL2iHA0g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.0-beta-1689341628000_1689341751392_0.226591508145513"},"_hasShrinkwrap":false},"1.36.1-beta-1689345582000":{"name":"playwright","version":"1.36.1-beta-1689345582000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.1-beta-1689345582000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4417b78552d9ffa568bf3307bfce0fb723c0526a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.1-beta-1689345582000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-xOE7AE5eQNJhuFrvl+EvrD6uhe6zdkMU5GuL+xBBVjwr3JKMnDeES7HzU27bzbZjiRBn1SKbKvayFWzZcQj+CA==","shasum":"b336d4a10c1b8808f627d2e3de5a4807b5fefddd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.1-beta-1689345582000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEB8D3It8/YcVvrPOZzCReTDvs0qQAPQCcxLQzezncZAiEA6+NSHkMQ75d2ZhokcAMfuXSDke6wogT904fipdK5StM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.1-beta-1689345582000_1689345792665_0.6315523820851134"},"_hasShrinkwrap":false},"1.36.1":{"name":"playwright","version":"1.36.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.1"},"types":"./index.d.ts","gitHead":"4417b78552d9ffa568bf3307bfce0fb723c0526a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.1","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2ZqHpD0U0COKR8bqR3W5IkyIAAM0mT9FgGJB9xWCI1qAUkqLxJskA1ueeQOTH2Qfz3+oxdwwf2EzdOX+RkZmmQ==","shasum":"bd01541048b4ea54bcf1989e61e0129f34d2df71","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.1.tgz","fileCount":9,"unpackedSize":24188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFy0eXQKharbPX2MG2dmjeFgEz04tN+yRMgT17Ky5wtAiEAk0cqGmOQS9CM3uzjqYtAVQhQ8OcCRAh4oJF5Eq6VTA0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.1_1689365668977_0.16195150136609437"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-15-2023":{"name":"playwright","version":"1.37.0-alpha-jul-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-15-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d92db9a513f4c397eb1898849c622a6f0dd2ba4e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-15-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-wLIvo1XwwgmsPe8Rwsn9Qf3VisM+LfYtCfjqmad56LclmDfKndRAoqz674CYkxw4nmIS2vad/6NQuBhbJHabpg==","shasum":"59731ec1a01c33657c1b127922277436556426b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-15-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFV+yZSAt1RkXtdarLJhrOOW4CXYGhVv1MEV/QJ9kryXAiAq2ElUJAKdQNaSeCkBgZfkWt9lvgXuKmJL+OFYXkU9tg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-15-2023_1689381142117_0.6225063643586854"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-16-2023":{"name":"playwright","version":"1.37.0-alpha-jul-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-16-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"49c1f9eb025d02f8bfc38351592f3466fe8bc242","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-16-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-oYEqzpJ/L2a0scTPFTHetXSYqxYnzYCD0cyuJ82HtUUooS1oPWISW5+to+W+ZnuU6WdTbYNOshHQEep/5cfIpQ==","shasum":"4f98871e7d13e21b4e3dff60e26d92b486e9ba48","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-16-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/r+K9J3J6g3c1XlgbYIYxJnE0mcUPQiQ04DJUzPvElAiBKIsseFaBl9rzrNDlAr5qJfMrHL7qTwVCTr58hhHF7CA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-16-2023_1689467790711_0.8352517188702349"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-17-2023":{"name":"playwright","version":"1.37.0-alpha-jul-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-17-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"49c1f9eb025d02f8bfc38351592f3466fe8bc242","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-17-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-U6QBBlfwJi3fWkKN7Efdp3PFYzNUDaq+LZAJFSsp0lkfSruYhOQBQ4dBaKCVruRRSAayd5qNV224bt1HsS3UUQ==","shasum":"847f5bafa306d3647c3e6c73aa83aeba18d3f1e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-17-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtBK/mdl1u2ayHJtrH4pOG74QI4lZL8d1qGgHq7rdXAAiAt3GEWiYfTDNs3YWEalYb+i0B953NWoq3YL51XKflzqg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-17-2023_1689554090892_0.5779699156427469"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-18-2023":{"name":"playwright","version":"1.37.0-alpha-jul-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-18-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"91346c7012c9469713350f0bcda28c01d712d376","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-18-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-BJbdPduWNruBYELyCmhu+V92uJv6rzpvt3pAvn5KGlsBm/UI70fx1Q2OlBA4kixHQIwfGM6RsL+XuY31t0G7qA==","shasum":"346c516b62557fea9638ca2332f762848eedbd82","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-18-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBuUZu2qXooP7z+NC7/am+ljNpKbxjm+JrYQU9bD0NJEAiEA5vnVZF9tS/jwfmxyuDyuur6rAH7ml7qnOE/qRXHy5u8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-18-2023_1689641477138_0.8311515696859915"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-19-2023":{"name":"playwright","version":"1.37.0-alpha-jul-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-19-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.98-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.98<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"879ddb73b063e9ff97654b4e3d92969f84f201c8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-19-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-VYdTRjfpwDn+B15RSLqWaEpl+cMYT8+BNc3tCQNwrS34JQBR/yhXAZXyYOsobxGefIvmHphPcU9in4RyxzfLvQ==","shasum":"069d031e52dda178ce592d1931325fe99bb0bb78","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-19-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDTU8UKSZJc5s7MmYFb3vV5BxQa/BLFgqcQpE3yMufimAiEA4qzvEr0Gl7mkRj0Yz8g4Zknc23vwY9dzP28FdngKnh0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-19-2023_1689727703868_0.08600981873085556"},"_hasShrinkwrap":false},"1.37.0-alpha-1689796912000":{"name":"playwright","version":"1.37.0-alpha-1689796912000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-1689796912000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.98-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.98<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8b454cb3c3a459a0af5b9b4a35f25ba13b2109fa","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-1689796912000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MUXuSwRcSbTLx/WmHwoTXriAlYJlA30w5M5j2FzggmkrIPtebyagWCYVIL/S9AWkxMuwybXRW0MKoKwrsVLskg==","shasum":"499d82ecf02adf86b40c2ffe7899c5293de26e38","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-1689796912000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuMlwvwTdG8ehsF9pu7KgoJThDfBOTPPn9rF10/kvOfAIgZo+cqzgVdDnzeEtgv+yj8IOwrvtHsRUp0ucTb3os72c="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-1689796912000_1689811962289_0.2558483498563815"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-20-2023":{"name":"playwright","version":"1.37.0-alpha-jul-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-20-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.98-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.98<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8b454cb3c3a459a0af5b9b4a35f25ba13b2109fa","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-20-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-axbIx1HbEmKPEHa2Oc9+S++By08387pKtkjiDWD0+cTTn8vp1PW5dLO+h3TEzDL3cl3ivcCNH8UwLjD3SkRnMA==","shasum":"440da8773183d6e951f371a425d65f2142d01453","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-20-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZgjf/JH4XrwccEpC4LnTfrJxWbDbEBXycbuDAUnpWJwIgKnRAXSN+2q8A4hWeR3mZOw8MnHcqVLU9xWp+l5FzpB0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-20-2023_1689812993938_0.3415788499635706"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-21-2023":{"name":"playwright","version":"1.37.0-alpha-jul-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-21-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f5df0940c9ed814234aab56c6bc6d0eba243ee9b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-21-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-0Np/mbn5SY79u5DN1YzeMROrhUiPdptPSjIlL1XjhHRmhOSj7mWQg+CCWOdCTHQKaDwXfY5Fy+Whb8tacLqHKw==","shasum":"d7a83ada346b949809115bea73c4f2fbffc116f3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-21-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVpBTNMCSxah1wo9+n8E+kZRncvCtv4bhw6HnNsohgNAiARMtG9rQ4DqIRMhwgmrgx+HGkmSk0YnVNjX8o7mSu63Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-21-2023_1689899352078_0.20982104204894791"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-22-2023":{"name":"playwright","version":"1.37.0-alpha-jul-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-22-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f453a17edee93fdb048cffcb4aa7c4be6912143e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-22-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-DNmgpPyC+csC17THWLW2xuTHCYJeQZzpweo3G6cEVrUPQBOYSqEi0KnOJdAhOLeN23J6b0Mt78IWzEoZHzqwCg==","shasum":"b688af8bda045ee34e6ccc3af1fc4adba110e5a6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-22-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHMK8wluug/qSEE5IgUUXzYbBL5lLmP3gxUZK0eDUx+yAiByVY8sf//wbFP0vIRnZ60k4eLoT8S158kFYY/6NsHZkA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-22-2023_1689985887551_0.8445793418323817"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-23-2023":{"name":"playwright","version":"1.37.0-alpha-jul-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-23-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f453a17edee93fdb048cffcb4aa7c4be6912143e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-23-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fglJ/tqPfaWsURuNPOjjs4whiZbNg5TPVYVlH67K69GzuuVWOv3ESFOB6Y8abQtfDN7ogDCERODU15/NFYD/gw==","shasum":"e9c3f2c01f54cc724c005936a140195d9f765ba3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-23-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMTjYQFjqTQoKNNz5WmKBvS407nJ/ETVjW7jHYYecyaAIhAJoUYv1vzl/f8N2ASwGGBNuf5YajDpLT7+XvCu974X74"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-23-2023_1690072247662_0.48708877545653784"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-24-2023":{"name":"playwright","version":"1.37.0-alpha-jul-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-24-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"207086180781e1daee52bcba0aefe3bed1b87b2e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-24-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1+TplS2Pv4BmlDGij2939Gb4dC0spSwWOzamiWB6/xWhanid4+aigwNCYm0h9NdW0W3vwUhOygwqZSHFInokiQ==","shasum":"03c6ed30d20f307b1c63ad0f3b4f3ca0854be729","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-24-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyHp8BMtLqiG7zi9SxyBr2nxrikqdyOqct+zrMnkRY8wIhAIPhMX4p9q4ZQD5DQ30gebSYEVgpzPCYisES79vopEYs"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-24-2023_1690158592033_0.9402841874771832"},"_hasShrinkwrap":false},"1.36.1-beta-1690219922000":{"name":"playwright","version":"1.36.1-beta-1690219922000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.1-beta-1690219922000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"40e2096fbc27c5389ab1b4537d8de7335fc13c42","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.1-beta-1690219922000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7Wjg0TfSMSZM/oHR3c3kv3r/KWRWPCZAjfoNBl6PCZTsxVAHWS9Q1oj536/Rb8p1QQEzLyRaq6CPYWImT1vYKg==","shasum":"1e7e0ac870ea3aabe29cfdaab860cd1a5c6193d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.1-beta-1690219922000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFBqrqgNKV+bqH6NNa08q9fECw4fNpJuSc1F43bhvEk7AiAZN2fROUz6FRudAoGGCy7+UhrW3OxDtIzFTs8s6058pQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.1-beta-1690219922000_1690220099790_0.4557921363756914"},"_hasShrinkwrap":false},"1.36.2-beta-1690220597000":{"name":"playwright","version":"1.36.2-beta-1690220597000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.2-beta-1690220597000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-115.0.5790.75-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->115.0.5790.75<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1f983acac0dadc831adfb9982d593e107d4e68dd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.2-beta-1690220597000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Q9naFbNUJ4QAC94zdXqgxWW0OwZojrK5wG6fuWaIsiqRA70mF6gMakfyVujvV2Udl8C4G0XQFqWhuaZhC54CSg==","shasum":"252f16ef2fba2a79d4d988ddd5c7d5f3c2fedcb5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.2-beta-1690220597000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7bLAh+7T/PgLyVJNdZIp3SsNUgQKzj4QB7WueplDz2QIgcDrcic/ofE2IF4bZD3aA4W83+0HCLqCK//HUc9N2QOA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.2-beta-1690220597000_1690220765767_0.12447105384400481"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-25-2023":{"name":"playwright","version":"1.37.0-alpha-jul-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-25-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5c41c6e79923d9cb0953fd51d4a37ee0f20e06af","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-25-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-R3tFnbJdkvIhI5qsUiLgsRnCPM8bk2jeN0AkHLKjQNp9LwsaCosResCwCS1qNuIRw8NkEYqVqkKkVX1jwWX17g==","shasum":"89961d194832e50927ca3fff205c56263ed79bda","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-25-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQtNWYLtcexz9Y9ridZRciRrHUiDx16TCLMEnXW6KAiAIgGxf+qKjB9K3WW62uQUjjWEv/p321N4pH5GEIsj47aBM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-25-2023_1690245019847_0.9380269090317566"},"_hasShrinkwrap":false},"1.36.2":{"name":"playwright","version":"1.36.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.36.2"},"types":"./index.d.ts","gitHead":"1f983acac0dadc831adfb9982d593e107d4e68dd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.36.2","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4Fmlq3KWsl85Bl4InJw1NC21aeQV0iSZuFvTDcy1F8zVmXmgQRe89GxF8zMSRt/KIS+2tUolak7EXVl9aC+JdA==","shasum":"4f25272209a31ad1138d7b9868e0325159f003e3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.36.2.tgz","fileCount":9,"unpackedSize":24188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDRsCS1CNQY92BIW7xTKBi+UIhZirl9AFeMY1j9lo1htAIfPaKh4nMlRHNPr15oNy18RoMIEBHD2MqbvpelKAt2jQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.36.2_1690275217894_0.7017343333988315"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-26-2023":{"name":"playwright","version":"1.37.0-alpha-jul-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-26-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b39fd7283f3968817685ecab9e6c93f92f443f43","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-26-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Ua9j9vBT4GYhc83BtGNjpmO4MupjHEboy0x9XRKZSzgMXXxc50LlAIaQwHgKyTrCJ87g+cgRrwIWiScWdZEa3g==","shasum":"86641377e1b2834efee873f637fb168caec3d9e9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-26-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCR9g+MF20Sh+j6iV4EVozsBzc4sn+XZ3XCDjayZy1ZuQIhAOajbFl9vewPHSA2piRvnEgO5d6B59eTR1E7zGvAx/EC"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-26-2023_1690331343514_0.609424251081963"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-27-2023":{"name":"playwright","version":"1.37.0-alpha-jul-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-27-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.42-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.42<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ececb6d19e850af65b8b4802c855d72c2957ef0b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-27-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Rt7mhpCxxmkn+6g7ET3YoDY/SDAFGyPC+OJ2Wm/W6X5NwzwEPfNqPrSGkcyFRoaR710J9zbgHKPgpQc5v6jIeQ==","shasum":"6fa0c5ace31b2d5f332d4d79b33197610094b805","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-27-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG1JOh2hccn3jU7ox7vENj4qYZGAW054b2pdAi4aLcY1AiEAzELHT0kL8byUMRkHWeWy0yTmRBEPKBMT1THperWDcGw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-27-2023_1690417601945_0.5233367864015486"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-28-2023":{"name":"playwright","version":"1.37.0-alpha-jul-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-28-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0c253dafc72f94bda9904aca8d0a0feb5222fe71","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-28-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fqdlAk4edIUpQn6y/dbfQkmVvROmtQT8KgI8iqL5jtU9tAsEMU/6LE6e7+jRiNCyBmAsQwlhyVepl1N4/T3WnQ==","shasum":"fef485d6f9b41b5a0f6cd0b8211675b1e35122ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-28-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCocDSN3I3/e9noNeCD1BXNe/eAZA98Tg+7IWMaI8FRXwIgARBHiIis2Pu2Te7mM36sGjyLKh037TqbaFrMX9TQ2zc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-28-2023_1690504086128_0.5352163354125956"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-29-2023":{"name":"playwright","version":"1.37.0-alpha-jul-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-29-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d92fe16b76272afb19e7af5a2496f7efce45441d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-29-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-i4eaFs7I/HgLDy8gWNKnKX7pmJXCa2ITS7mD6NmKA22fTl9wuGKS/lRKa8GZFH/vQmNlOVc9oxbAKFN9vvj5Bg==","shasum":"f926a52ab9a376c6813a06deb7f9f488ca5f05be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-29-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2QDGwG1pZRoVbuiZPoqWgUjNPR7RI63DYLxiPTiU5swIhAKd6Qm5/IJt+RIp65G0j2rnrFGD8PYEd/4z9fCm6Pmel"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-29-2023_1690590395765_0.009292514856080958"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-30-2023":{"name":"playwright","version":"1.37.0-alpha-jul-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-30-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d92fe16b76272afb19e7af5a2496f7efce45441d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-30-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8DTZh92NVsHMwhGkjVvZbVkCa3X8IfdZRVqFwVgEDJ1p9LLV+b/fwA+/ApmKylxwejhNneqat+8R5+dBYRDEsQ==","shasum":"19510ffca1f8cc529dc61760791ea67681c7c261","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-30-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4D3ZURhKL3DRzYisH6f6Akp0fRC+4pY+HCX8knglsrAiEAnQXPjVEMo5XhrsQtySyQRQczrKzlYYKlTjMkz1em7v8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-30-2023_1690677042292_0.4159922869775343"},"_hasShrinkwrap":false},"1.37.0-alpha-jul-31-2023":{"name":"playwright","version":"1.37.0-alpha-jul-31-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-jul-31-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d92fe16b76272afb19e7af5a2496f7efce45441d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-jul-31-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-J+Hol5vAwW++XV6jXoIBG0GHVesNlCpZMnDbGdCEu44BXaDWlAayhSU9EebqjjwbtQ0W9z0UBkGo0torK5Tb4w==","shasum":"05cfa0b12610a1cf1fc32c11a991a21c7fce32b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-jul-31-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3BWP13zqxVzfu01GH6MjAVYKTi/o3+xUo76n2QvbSYAIhAMp6DKIDeMCYU2P96ilV8bEP9jo2ZDWhCudWNV00C4Mn"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-jul-31-2023_1690763314341_0.9280332610495616"},"_hasShrinkwrap":false},"1.37.0-alpha-aug-1-2023":{"name":"playwright","version":"1.37.0-alpha-aug-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-aug-1-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dc5e201611fda0abcbd57459c5ad30330dbbbd32","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-aug-1-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-uCTPEEAQReEo3auPhmlk5nXcI1juXGVRRC/Ax6TVdrbDE3ZsHv/6VeJTc4/MZU01cmVCpq/sTkvBIUbq8yUbpQ==","shasum":"135346f60305517eafcd6d4f70e80925961c152b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-aug-1-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBjVTXBrEGPH8nErcI1VGTMJ2gkJIJUIw2bot3ipGjtwIgeY++RXnH2x6YygFkASOKUDVrZvwnvwgnpXTzSGD2jZM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-aug-1-2023_1690850239205_0.9672416823204686"},"_hasShrinkwrap":false},"1.37.0-alpha-aug-2-2023":{"name":"playwright","version":"1.37.0-alpha-aug-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-aug-2-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f5d069541d2edae3309459342a39b03d2740631a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-aug-2-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-cHb5Yf3QIELTK2uPEmEVz+NbN4jLJ4irOcsDz+LZhXMoSxtDQ3sMrl+zt5iNrgXL5nFq6mAXYTQ9Jr9mYqQmqA==","shasum":"e711f6791349381e8b4f3df97939010ad2679480","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-aug-2-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/sJ26BpY9KqOKMW0VsnRyCEHfJwyu4Sl39nHMu97j6gIgJ5X/4CiMOWMPfY3YrozhpbPIc/QG9OHggPJ4w5DGocY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-aug-2-2023_1690936159224_0.3614838657434756"},"_hasShrinkwrap":false},"1.37.0-alpha-aug-3-2023":{"name":"playwright","version":"1.37.0-alpha-aug-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-aug-3-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a867e738dbf3ff4b150c0a7d55389d97f8118620","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-aug-3-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-yBEOII2EvnhRg7fHXlfjRjl6HBSKeweOjk7zzL6aKWJ9/ZuB1GBU7QsxW09UsnRNgbl0smPT4V4ouC4pm+MmOw==","shasum":"26da6b8f6d25541657e197170e8832a1747dd911","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-aug-3-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGejloVxGYc9cW1PbySzqAzG7JSz/S3K1ZSk5HlBVlrOAiEAxeVW+kezgAI+MG4T3PZM2ZwTlgGnSaGV9/HLl/viRaY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-aug-3-2023_1691022471861_0.7802977497535641"},"_hasShrinkwrap":false},"1.37.0-alpha-aug-4-2023":{"name":"playwright","version":"1.37.0-alpha-aug-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-aug-4-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.49-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.49<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4494137814dea8efeb9da884f7a071078281f3ce","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-aug-4-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-lUly8k+VFcFmP/Lp75gqDO4+58+k/cLxWOLeOhKEIb8qaE5XtSD/RowYlaAEdZlF3gwQCgyv+qNY51is4sAXvw==","shasum":"bcc20e272ab2338ec4465565b577177a917248d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-aug-4-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHSWym/G4vxgzRmMRW32NNnImXxbZOlkeJLqkSNuUQP+AiBVskgQmOnDAi4JEtDFTruQPSUgdiAm5sxlwHwLg84XjA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-aug-4-2023_1691108913903_0.9078859965068602"},"_hasShrinkwrap":false},"1.37.0-alpha-aug-5-2023":{"name":"playwright","version":"1.37.0-alpha-aug-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-aug-5-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1fdb8bdbe4c3329ded6a4a29e882fdb6ece84b49","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-aug-5-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-rBgOFF4vSifHUQUm+yUJyO3DEYAGruu+MqpSj4zaDdQTYWLXqWWBXNoRSjH60qIrMAKc60UwIDwUwh6OlRgeOw==","shasum":"ef638454225fb6017d5fe2bcc94c73fe9597626c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-aug-5-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApgZOAhQfMZrEHLaPS0fRGM/NWt1OsOT+8VnflNGcRzAiEA4DCd4olapwbP1c6UNoMka7qDJ9p1RnpGGtLe3fq8NvM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-aug-5-2023_1691195279311_0.7441487659313191"},"_hasShrinkwrap":false},"1.37.0-alpha-1691266659000":{"name":"playwright","version":"1.37.0-alpha-1691266659000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-1691266659000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f1f43c9ad1660a15dec5904582caed3c028719d0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-1691266659000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4lCWdqnpQ2k7uTu84iziU+g0kJqa2yG4a4LCZCVumtzrKGFZBB7EZt8bV63LaRmOFqclv/qBcEVLgu18j9LDFA==","shasum":"59532076e0e491908fae473db29ae9e8dd487e6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-1691266659000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBqPbiu48gHwlfvf/jKSKxqvJAdG586Grbnh0WkwTosDAiBSTsTsyvClDQmzeh/bjqH8aMTIz/09Be6qIE0csoBpEA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-1691266659000_1691266801652_0.6884570554848854"},"_hasShrinkwrap":false},"1.37.0-alpha-aug-6-2023":{"name":"playwright","version":"1.37.0-alpha-aug-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-aug-6-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f1f43c9ad1660a15dec5904582caed3c028719d0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-aug-6-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-izhrrKP62PCtWDKWNPpGKnMcLHTvP+xOUuoGh2qC8t1lyNGUoeDkqkiuuMdKVxLlXJrdQJWsx267zbta5UuBcQ==","shasum":"16e481c78ced23e18f97868bf817333406cfbc5d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-aug-6-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnoI2lpfAEQQkwCCbfsGaKHTp63sS+fIfdoCZRJH761AiEA6qaTX38laUHc+sY99Df4FOUJYVtUmF1GcOgzBGHM3gE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-aug-6-2023_1691282055603_0.611613307934284"},"_hasShrinkwrap":false},"1.37.0-alpha-aug-7-2023":{"name":"playwright","version":"1.37.0-alpha-aug-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-aug-7-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a0211924d328c78d374b3b79255296efe5f4d718","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-aug-7-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-11pst9fjN/8zeW9Dg+n/j3ew19jYmK9skr3eFBh4XgkpYahsuTM/T2+yzd8tEXhQ6VttBshmpX4+wT0COn3NuA==","shasum":"922ec1d416056d1f507ff832d74fff6de22ba3d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-aug-7-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFC4nunezq/YLzYM/f9PzBA4EY4qugv5Zr/Z2ecOovMAIhAPgk6SR+j2UbsbE0S+js7NP9QboCDl17qS2KKZXdnNlW"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-aug-7-2023_1691368443138_0.060680125572225574"},"_hasShrinkwrap":false},"1.37.0-alpha-1691443998000":{"name":"playwright","version":"1.37.0-alpha-1691443998000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-1691443998000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"90c765d31ce851e92a0d0657270a11ff369187a0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-1691443998000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-EaEEVVMab73RF32K8qeiEpxcghy1dgZy/sAUrl31IY+T4bYmbmL9PQrK1A3dze//0f9Ka5KtUz3EoaUMoozwjQ==","shasum":"42ffcf5718f1d17b3cedae194342884c27ee7d8b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-1691443998000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFdodzJfMnw2m5z883sa2YKifc2jrWhUBUUVKzNW/OCwAiEA+azZ6f7ZxBt6rx1OJ28oohyt+yinNERjgTX32KqSobk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-1691443998000_1691445480838_0.8848021019225416"},"_hasShrinkwrap":false},"1.37.0-alpha-aug-8-2023":{"name":"playwright","version":"1.37.0-alpha-aug-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-aug-8-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7f1f62795d23760c2880ec967627f325b7543689","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-aug-8-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-O6y6Adipb59ngV5n0ARe5+BLr6TBc4o9aILYTbsc9VoFM2g+iXnLbHNDbC2WP6M6Vqt3xqQVjx9KvoPHsp4AAw==","shasum":"a34ed206640acdfcc3c64f0ae553f8a8ca23831b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-aug-8-2023.tgz","fileCount":9,"unpackedSize":24222,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLDS95HbyFhpxxdKCnXAqgr5ivgxPQUz90cdfUOAjgUAiEAuPunshYdVMqI2WPsHHoxGiVK+u3aD4MpL327HcybHgA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-aug-8-2023_1691454479275_0.45467044386285926"},"_hasShrinkwrap":false},"1.37.0-alpha-aug-9-2023":{"name":"playwright","version":"1.37.0-alpha-aug-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-alpha-aug-9-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ffd6cf60eb0fc3ea567802da7ed0e6de17f2133f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-alpha-aug-9-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7TIal5HgX/HSV9VMklO3Tzqui5dd8C7rWx/Xn39UPBoqMpt2hmNYaMt9ZRp/DRJMok5vpVq8q03mKea9kalmqw==","shasum":"24d842b6c2c0a5a5ab7b1eafbe2e678ceadc7089","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-alpha-aug-9-2023.tgz","fileCount":9,"unpackedSize":24222},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-alpha-aug-9-2023_1691540899738_0.9005776534326608"},"_hasShrinkwrap":false},"1.37.0-beta-1691560236000":{"name":"playwright","version":"1.37.0-beta-1691560236000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1691560236000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ff0aef37f847ee5fc99bff1fc8fbd9fc38a20d4d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1691560236000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6UiSCuS6JtrwHsSkyBSAcSDgPtO+9uR7yqTMq7k5yRyI039JrfNmRz2imx7AKF1+54iERWlKQsP1C9CgTLh9dA==","shasum":"40a2b3e687f960e8ca145c7d003019f9af12f42e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1691560236000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBLoNAOz8wCzd7JA8Yv+k7ghVw3XIMw6o0TlUXxDWBzKAiBww9EN39pwcZVwhVGcNurvzmcbf5+GLLLsug4vtBA3lA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1691560236000_1691571180598_0.7315772515888364"},"_hasShrinkwrap":false},"1.37.0-beta-1691608677000":{"name":"playwright","version":"1.37.0-beta-1691608677000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1691608677000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"421bffb7d7c55d474b0b2ad8f26b9d9f9c7c07e3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1691608677000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-5rGPfb1ga+taEOi/dH5fCZK+ds++DySiM6JyaIXfFXkH8Ekxf9DKL00znRD8ddOahBtFG6HvICWUXkQ/wxE3FQ==","shasum":"c440ba84e7378f09927034ae61a89d8d3361d757","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1691608677000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBdckbQLRYBTVRY+fEENkFVvoL6mWdjny8hg8mhO7B3uAiA7ktV0cMVI4tRM4mW6Pm/v80L9QbD0O6Qa9OwFQfPE1w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1691608677000_1691608799897_0.08856248376518483"},"_hasShrinkwrap":false},"1.37.0-beta-1691620268000":{"name":"playwright","version":"1.37.0-beta-1691620268000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1691620268000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"56b22fa0b10cd9c86994105673ccfe0bd2b2dd67","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1691620268000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4Y+Ihq9qiiu/TXfaTDhuJIuRZDbdkwHRcma/RfmGc+eZdGgLJI9MW3xgKhHRo2x3+IHc5jC8VYERQ+BbJYCKng==","shasum":"9c38880b7c998aa31c66a9651debcea345df3880","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1691620268000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAIU09Bw3ZtInwosuCYfTCQr3xaGiLpKzoqlJQdLuDLAiEA8D/tI8LKdZvf7mWeWizWBonjOsi6CM965YNbqxZDdaU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1691620268000_1691620395814_0.23319640720707557"},"_hasShrinkwrap":false},"1.37.0-beta-1691627113000":{"name":"playwright","version":"1.37.0-beta-1691627113000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1691627113000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7999841a19222fd3c492071eb8447b97ff1350bd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1691627113000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-oguBQQ9ZYTV120ZYdVoeVXDusbMk7IjMTIa0C/UaqTpj5FYPdAH345bhPXvSXp9rcb6UDlXu1kirWqrAqsz3SQ==","shasum":"a43c680dca8567f8e73173932c13f81fe9930bcf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1691627113000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfrvTXariEQ/LIQO34Tn/a8frF2cAwb9exK4/1Gas8qAiEApvQ+unCDptnmGxBnHxA7feVZbt37euefVDxHCGPp+VQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1691627113000_1691627263409_0.3276269340988849"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-10-2023":{"name":"playwright","version":"1.38.0-alpha-aug-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-10-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"08d6abab4ab17604acfb24cb0837bea5dd2c4e43","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-10-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-pzduMOVY7xdZW2try0uuygLw4qsFwDBEpnVVvasBXhxUwS6TixJlXbBE1gAKYG+jyILJ1/Qg6ocvTsu4IaqTdQ==","shasum":"0ee954a3678a4dae337201138da3962e5abd9923","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-10-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjxUbkIxGIr6CMA8AJgYalQFbverdHKONUS/F3gJGI7AIgICvqnDVhFDyNxQs7c/EDVWnCtoH0Q+l8UlpNO3SK5ls="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-10-2023_1691627341530_0.6988628203926597"},"_hasShrinkwrap":false},"1.37.0-beta-1691677119000":{"name":"playwright","version":"1.37.0-beta-1691677119000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1691677119000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"eed73de5731b2cf50969349558336a0c904ebdfa","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1691677119000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qP8vKkyvaq/pyomJBKSdGZuPxOPIgtineqN+ne1bQA8gDSSaN4ejIJkFroJqPJoA6YUonLbqb7reIwHCeyTLfw==","shasum":"ec606ce9d21eabc6ddfab4b55530b9bf5239784a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1691677119000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDTutQFg1K+Rs/+3tN49c7k0fo8bg19yCBNVz1DVZcGgIhAM2oVDyeVzRgKVE8TJKvcrH8PVkb85ss5/UGQuICXGlH"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1691677119000_1691677285646_0.38234000273219015"},"_hasShrinkwrap":false},"1.37.0-beta-1691701681000":{"name":"playwright","version":"1.37.0-beta-1691701681000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1691701681000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9a5172e6c1b21e11ab1e8b8529871a673fa1ce07","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1691701681000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/QGRLd8teOmBSXxmSRBzFOFKQVZtxxRvwc8JAp1P/tCrdgs3dhYXdiW2kpqy0t4gvdlNsPNYj2uRd04dAIODzg==","shasum":"7f8512552077c7ba2673fdb8cc44cee7faaf7f7d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1691701681000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6zREgIyjx5E1ukxSgo1GptU3OMEtUu71k0EnKyET5FAIhAJL2SuZ6D+9nu/JEjhwV3glMeHDuWpaD5YoljAozjmzI"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1691701681000_1691701800527_0.7214214512256205"},"_hasShrinkwrap":false},"1.37.0-beta-1691704175000":{"name":"playwright","version":"1.37.0-beta-1691704175000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1691704175000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"37ba0b657d34c54303fc402e39f09b383f212407","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1691704175000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Y5Y/jS/d/Dho7MgvmS2U03+h3qnc8WIzAwE7DL2c6fyOAl5GYjICQbiNWK0rLvRyAmCyJITI7asHSlf4Qd5iog==","shasum":"5d4f5342a0e0b523efb5d755aa86f088b9a64e05","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1691704175000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdqqwUExfmZbGUeX2VaQ4UxfnhC1sYtHmL8hauqHCOUAIhAJyt/1k3bbHFfl818UlbGREHgkQTZlBE0BzXwxk2ng3y"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1691704175000_1691704367239_0.5951386451126541"},"_hasShrinkwrap":false},"1.37.0-beta-1691706925000":{"name":"playwright","version":"1.37.0-beta-1691706925000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1691706925000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2c9e02a80097074eb1e2f0634636dd214a3ce8ac","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1691706925000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-PA+pgcThASz8jj6ltOnKI974uAZ6zrOkF8VkIf1FVFytzkhB7ygEkGXoxBEvopgtU4ly4EDCpw0JUFseHboM8Q==","shasum":"43ef1eeac1c0ad53b1c5806e72d6a915c0f566da","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1691706925000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHjoI3wU4cS20+0eTXgq3XozEKWU7S+a2uHnMTBGA55jAiAu6eenspJr7ydrmDb4QWoPdeLuIZA/T3+SKBBHuJpb6w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1691706925000_1691707041372_0.3050903374432896"},"_hasShrinkwrap":false},"1.37.0":{"name":"playwright","version":"1.37.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0"},"types":"./index.d.ts","gitHead":"2c9e02a80097074eb1e2f0634636dd214a3ce8ac","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-CrAEFfVioamMwDKmygc/HAkzEAxYAwjD+zod2poTxM7ObivkoDsKHu1ned16fnQV/Tf1kDB8KtsyH8Qd3VzJIg==","shasum":"19dc9bd43d9c1d7e165626e2aa12d56864650e13","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0.tgz","fileCount":9,"unpackedSize":24188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAf5Z/ngHSrbar0dno9StuJektmFtDUTjTeH5lyr45GXAiBoOqHJxelYMA+fmZyXASF8Jcdud4lAg/3PM7kdMw9VfA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0_1691707987018_0.50526818763665"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-11-2023":{"name":"playwright","version":"1.38.0-alpha-aug-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-11-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b899d61a516f2a2018c4218d728a732e28611a38","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-11-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-adL9NYc37kDNUw59OJXf0gwntR66K8YCgJ5EvibdqvLYuzI2L0sJdle22oHe9Z+CzcK67G68XeVcVZ1RGl4N7A==","shasum":"8377b761fb9064e77e79fa03a6e91eada9eaf34d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-11-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArEhEiDwHHQglp1DFDIhkykC4EJYx5gRPbS7LhJgs86AiEAwkvtlzJA+sx/ShuFDS4MqDXYZdNjh5FepG9Jx/YDtSI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-11-2023_1691713485306_0.7085062671653632"},"_hasShrinkwrap":false},"1.38.0-beta-1691778350000":{"name":"playwright","version":"1.38.0-beta-1691778350000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-beta-1691778350000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d72bdb945c032819f99cdf8b730ede6dfebec693","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1691778350000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Zs8FHlUTEMp1BiwD8oyFuykftbbZeLsUeqdlSpYHrJhQKdu/pRjZqReZdXq6bf8bNu6RSj1oQfr1Y/ujVrFM1w==","shasum":"a4e0bd382f30751b9e1e8d64a50f44733514fb4a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1691778350000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDKBpbXPIynhIKtgkLiHQowacwnx4VGvP/3+yxPN7ZfmAiBZd4zTIlKI3gITRBLW9pqdKRmmF1eUpXI7C8Up37Rv9g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1691778350000_1691778495956_0.6069742432335261"},"_hasShrinkwrap":false},"1.37.0-beta-1691779052000":{"name":"playwright","version":"1.37.0-beta-1691779052000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1691779052000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1112e897b05953081d676b57760a2d4d5c0bd90b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1691779052000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Gsj5LVJ6EYlw2n90uwvYnhooUm3YYHWYgKhMrEiEzL799D0p5LDFMYN2eNr6yrYhav4yEnoCTjXozHQQU8jLTQ==","shasum":"6ebb3304c216c62ed4893ffc0e8817890eff594f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1691779052000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDdDoS0PSyPc9mvADAQx8hdBpczlS17GdoZaFWjKE3K2AiEA6MCN/WH/7Sfrx3vwxzrAPAL+bPfZr2Zywm91VFQKyUU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1691779052000_1691779196988_0.8471067512146244"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-12-2023":{"name":"playwright","version":"1.38.0-alpha-aug-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-12-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c888e299e0a55e5a3281cd3d500d06ffe1a280d6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-12-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-l28hq0ar3QoYm/IvrzFoFGSKbuifkjqlbNCKh4KSvEraRA+f7E5bRpEfp+/W/UvATFlALh9cH4C8Swcabz5qWQ==","shasum":"166ccec5262a439d6842f205dfbfba1b4d02740d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-12-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9mL69L53uLdpRAGK3AkD58uP8n+9Z6z2VikJ+Ul7ILAIhAPADx7n2eqLEgsHgD2IAgKGhLrI+HgGaTTD45BUBwlRp"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-12-2023_1691799778607_0.6532591362083431"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-13-2023":{"name":"playwright","version":"1.38.0-alpha-aug-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-13-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"04b71bf660dbd5c4259058bd3941dcf4c1686c77","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-13-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+C9axhBggqWvYzEN9u6/kyI+5ab6tzSpu8BOmy5C/SdNYW/3bgrUwXxoUzxaDj5ZpIGfMLxa30taD2usnJCgRQ==","shasum":"e01452d4305fe58abea4d9b46be69c8bf7f95a65","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-13-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpG+xDuyCdz9mE07hgzMSl7VZ9oB/dxHN6Y8Lao0m9MQIgTrgMSAkmK9OtEj9sijUgx/qJ/0F7/WXhwTr6X1nPBcI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-13-2023_1691886308681_0.6435578674271574"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-14-2023":{"name":"playwright","version":"1.38.0-alpha-aug-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-14-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"04b71bf660dbd5c4259058bd3941dcf4c1686c77","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-14-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RPNc2hd4od/lJgHbzbQIJU5KdmrCJAZjXRGtvK/F3jucUOI+cO8J468YxlreAB9Chc/KLGb4U5cidsc5LDB+dg==","shasum":"af1665cc022265b00b6316a98155432b099b13f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-14-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7pOid7O2vnlGinLrqiR+e2349fwwS72cVq+VXwJX6bAiAcxODuhbouQwjOVjTzhH6b5HobvyFybB2C+dIywRhKLw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-14-2023_1691972661446_0.9161659077287785"},"_hasShrinkwrap":false},"1.37.0-beta-1692005673000":{"name":"playwright","version":"1.37.0-beta-1692005673000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1692005673000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cdc21bbb7b2a17a188638c677c17709fba7434e6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1692005673000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-XvQc7l7jm/s591lIJ82RYINfzVqC8PLS5Fa2jhRnDwO6VIM8NN4xfk9xHKQAgCPVBE4Gc/11W+BamKJjh7NnIw==","shasum":"51708cfc7b72a5dc72c21e2bf110037636aa5b97","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1692005673000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn32RHE4EzLYRyDIHdqu8Y9lil7aNs52BGopBxbrJ0BAIgbHOdvHo2dtrMSKTAWATO/Ngo4M74Yh/p7YW0YNjDGlg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1692005673000_1692005874528_0.3416034462155224"},"_hasShrinkwrap":false},"1.37.0-beta-1692021641000":{"name":"playwright","version":"1.37.0-beta-1692021641000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1692021641000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"35c63d9f322bd79ab8f13636d53db1f2ca251ae1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1692021641000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-GgmBs8mdSuzyH2wAJx8nx5CNjuQrBufQ9QQ/1M/bMQfmuu36i59gYxScwIt3jntOWDZ+j0RMa2c4z5X72F9g5A==","shasum":"6770cf9c8d5a2c347893bde077b6297a2cdf2db2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1692021641000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1+aQXvTnyRnaJtnQh3rCT5YsMd+MZOQOKGp7lyzgGCgIhANoxyw8vMzFitkijdjdQpvRSwuqIlOlJr+HMZSm9DrXl"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1692021641000_1692021811884_0.6211187632656698"},"_hasShrinkwrap":false},"1.37.0-beta-1692022316000":{"name":"playwright","version":"1.37.0-beta-1692022316000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1692022316000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ca975a92ebf6d05ddc834dc384ae0bff2b92a688","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1692022316000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qPTZ/wRDl03KgGEISqDYhEblJ6WMdXp36N02jLp9QEEsZ6Fb5OYjYarP8mWvNfFPe0JShaLUi8+AQ9plOqkkug==","shasum":"f56f1cf6a432ef1f89339711834af72070e3e803","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1692022316000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN3xHWuIPkv0u8YGRj6X4+pY9v/jM3R6rqI4ho4KeI2AIhAIpSYip0MC+L0mbY2eFpEODgsMCA3NBONbzpbhfMARYs"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1692022316000_1692022506998_0.7170618916741422"},"_hasShrinkwrap":false},"1.37.0-beta-1692053004000":{"name":"playwright","version":"1.37.0-beta-1692053004000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1692053004000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f1597577b5810333b0f4c8bb3383d72ea52af8c4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1692053004000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-vPNAIAu98KYMPRNmZ8Lq773sDeVL5BmatgFEYT/6uTLIuaJ8vVSH6wHccdwXnAH4WOSXd3D/2+FZfVNT1eAhTA==","shasum":"df9fb83b941f464cabd34529536f7d28962e5e4d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1692053004000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsglXOwR6CulimL0KVirhXFunuSCSWoxxJdpwWCt+CGwIgFThHCzuLWVTeKyOI7BqFsptQcOihpVkfoltvC9zNMqo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1692053004000_1692053134392_0.4959069284195159"},"_hasShrinkwrap":false},"1.37.0-beta-1692055177000":{"name":"playwright","version":"1.37.0-beta-1692055177000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1692055177000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0d5e6245ba222ecb299c1e2ecfe56888ea205e04","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1692055177000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-c8OhaxIdGd6wwVT7Dmpck5mILF4UOmBBdGNQOaZoqIK0FVZRuNOAds7HiInsT2HVh414dMgSaC37A75Ybl5/qw==","shasum":"086b16d9624e575321c5014527cb3409b266c78a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1692055177000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7m448EzOnCAXlqn+7A1Gmau6gvqCqP/soqHan5HQerAIhAIfKYLN03Bv4ogWgvPaQnXT/7kDBbi6OYWLkOpx+npt/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1692055177000_1692055355112_0.918949405758225"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-15-2023":{"name":"playwright","version":"1.38.0-alpha-aug-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-15-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6e51b95e2c15e714b98ec0f6dfeedcb6613a58cc","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-15-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-sxhrV5oGRDKXvs1eGmTOhNOQkkZbZAeQ3+oesUFEpBbSSx4+8jPCMsJdz4q2oQpFnHPJqMrk6Oke5afO+PQY2A==","shasum":"6462cc0550a33cc7e2ec77b91fa7411d57addf84","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-15-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA9B5eoQjeLBMHTHNibrDwzKmVZv130SWp21fD8alOypAiEAgd+HmrlHAT/os9fjYc2l8l9EHhii/0U7UeUjxulnI8k="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-15-2023_1692059055147_0.7039168265111622"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-16-2023":{"name":"playwright","version":"1.38.0-alpha-aug-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-16-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"576608b69d31b922d356fed6b3efa802e3c42481","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-16-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-k/ZW2ggSuRpSi7zc6jgWm3ZsLVjy45qpU7w3FBivChta1zTkrza0vtFNDb8rgEUngNEsrbatgEzjeLiUVrE8yQ==","shasum":"4a5ed1a85323139560c6b02f09716ff5b012ae7e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-16-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGi1A1m6DMLxm/K5kyoE1vvbZ+o+vYBNxQYZmpsuFZ7FAiBJptfwcr3XcAHgKWgCH1oPWeOUnAJBeDpAbCi8omU9zQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-16-2023_1692145688578_0.6371788211708815"},"_hasShrinkwrap":false},"1.37.0-beta-1692218405000":{"name":"playwright","version":"1.37.0-beta-1692218405000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.0-beta-1692218405000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4f2528535f3ab687ffbd9c64d2b808366d951aac","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.0-beta-1692218405000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-i82PPNOs6whLsMv9fM3/LtBfUpwIzxv681usfMtCbJQKztx/PAmV7W+RTH7rqIXpb4ZjvzGhsN1Q0h6FvHj9Vw==","shasum":"b15fe0326ba0a1911ea4e89a91c8f228bb8dc3dd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.0-beta-1692218405000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFyNqVBWZxFq1BQiiATkiZrI8aDUfCxouWHs0PTUodkAIhAP0EgFU1BO0235zuyvuyaMG5T97c1QyNDE69LI4/3uHu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.0-beta-1692218405000_1692218584450_0.4942197455621853"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-17-2023":{"name":"playwright","version":"1.38.0-alpha-aug-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-17-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a705d68c8a31659e78f7091d56bbb5a6c12ba2d3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-17-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-BdTN/CAEuYOKvofNF5+GunTPdKgBCYtgbBP8EqA9uJpy0rAg3YJo5upyJ2Q+i6SAbSIXoTn9BfYN8I8wsaiqzg==","shasum":"abaf67d7dac739ed91409dc6056af83cd8ea5349","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-17-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEH7RZoYIZCkcDrbJO0x9yDQepSYIVjA76Yx79/nJVJoAiEAvTrU8MC6IiTFk8PPd8oIXyVw3yxLH7Xvum9OogWDmCg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-17-2023_1692231840470_0.6168013029790131"},"_hasShrinkwrap":false},"1.38.0-alpha-1692262648000":{"name":"playwright","version":"1.38.0-alpha-1692262648000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-1692262648000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"75ed251c9e75e869ad7f8304fbe4240dd952b17e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-1692262648000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-XABqsYCfS7zQ4teur/+qm9MzIHw+DTzgLU6yIaf0fNsbu5phl0V6IYvA7WL3xwff/6k4VEDlzG8YSqNk4VAaaw==","shasum":"bbe42edddcfe319f9a236c3ca6ec613d24fcd9b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-1692262648000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGJdwNEgtBR3pmawl0IoyjBgJf/OJuA76710sU1SVG2WAiEA+Nky65YGBGQegIZewPqeLXjeh9atgdqrgbPs05PSNPU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-1692262648000_1692262822576_0.09069729719565611"},"_hasShrinkwrap":false},"1.38.0-alpha-1692290219000":{"name":"playwright","version":"1.38.0-alpha-1692290219000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-1692290219000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"049f839b30e546c313e152f97ad5845e0e4056bf","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-1692290219000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-A8u6F4q8brY5qnqE3n1xNV06ON4xoOgca0I7urTTXCrh3oAO7OmAXfIWWvxR+UvqZ661gX+PXguckED2CdJ8qQ==","shasum":"43bf2fd6260856e30ded6b43b5487c5afb959b41","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-1692290219000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBE38xRmZDMJ3hjvLi7TGoNul7SsPiVcwetZ1QWXgSNUAiEAzKav3EJ2NVfeoH+KV/plPy4Wgj88EYhZB7rHdZtc7zo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-1692290219000_1692292135254_0.2273010721223232"},"_hasShrinkwrap":false},"1.38.0-alpha-1692292098000":{"name":"playwright","version":"1.38.0-alpha-1692292098000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-1692292098000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"475c96d4c27fd70791b5851e07d11d079d01c545","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-1692292098000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YcU8t3WxAjhUjnYDLnHQ7Y1MK8XtcVqAckS5xYK2bcYaTJs+12sBdBQJer5h6+4Ym9T5kUWpm8slEtjjPY5YKw==","shasum":"d51d2d2d1d74f90d86cf81da4eefa69c264eac2e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-1692292098000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArMUqOltGC9KYzaKaqJnIBxJfdY9efq82+AmUTN36HaAiEAmGRXPsP/aqmK2WQFm/Yqsm9L9y/NizDY+aLfnk2dHng="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-1692292098000_1692292257175_0.665227302655742"},"_hasShrinkwrap":false},"1.37.1-beta-1692303459000":{"name":"playwright","version":"1.37.1-beta-1692303459000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.1-beta-1692303459000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"60696ef493fe5e35de00efcded77d60b81548599","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.1-beta-1692303459000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-bJbJH2nYiwddmTc7AttQsa6VMm4cQp1Qfd/AyMM9XVpIa+2T7Tgp6QokZVUZsNnV02KWP1gBUdkHwxfwmovtpA==","shasum":"0aba08c9686934728d5650db9075f86be4fb19a7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.1-beta-1692303459000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFrfZiavc7c+nQr6mub55pj/RlYFqOMngDA/EqDTrrrAiAI3kfRUY2bD+aaOGenb+z6EKdo2v4r6lkPnNHSBDQ6zg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.1-beta-1692303459000_1692303602377_0.7800748834576563"},"_hasShrinkwrap":false},"1.37.1":{"name":"playwright","version":"1.37.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.1"},"types":"./index.d.ts","gitHead":"60696ef493fe5e35de00efcded77d60b81548599","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.1","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-bgUXRrQKhT48zHdxDYQTpf//0xDfDd5hLeEhjuSw8rXEGoT9YeElpfvs/izonTNY21IQZ7d3s22jLxYaAnubbQ==","shasum":"6e488d82d7d98b9127c5db9c701f9c956ab47e76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.1.tgz","fileCount":9,"unpackedSize":24188,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBYgu19R2ivBQf3kUJQa+KutkPP6atzS3U+S/wD0Z78EAiAj8BqrroRtnGYtjOlAOheyvuDZzV/3T1y6IVPaZ/mx+A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.1_1692304390118_0.30813330769953184"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-18-2023":{"name":"playwright","version":"1.38.0-alpha-aug-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-18-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"703f590146559c509bef468a0239ac74a13ef23d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-18-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-w6ki9D9De6SuoxBzXhlWDIcNxOgMkvRYtnCBQg0sAsFkp9M6URXwNq+UMwLdcc2ndDLscXPh/81/tpLGDEavcA==","shasum":"c238e067024ba350ea767cee3c959990ba0214d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-18-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB6sLPd7PjQsD2zN9mPKkoMip3Vqh2S7jemziOOKlYxsAiAx12mkomkZliCBjtpYlLobQORBJZ1LdRCyeJyQNSk0Wg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-18-2023_1692318203979_0.6649992046757551"},"_hasShrinkwrap":false},"1.38.0-alpha-1692320133000":{"name":"playwright","version":"1.38.0-alpha-1692320133000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-1692320133000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e15db7993ad200c8a7585bfa36e75fde9a33da4a","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-1692320133000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-bBaplKBkcFGZXHOAsUbLdb6mfJ2IxY3NAZi78qZiP+kKKdQ1IiWvuFWQS9kSap7kk5fYZBMs9gyW+5MOOG0pNA==","shasum":"f9804635a86ae7cf490fb69ae5e30833cff9d2fd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-1692320133000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICrkQVUEfSCy56D9eAud/l02Wz7Ta5YbyINDMarrLkpIAiEA2hPisct2PmMLfV/oYE+cM1G0p7kR959gmix9hYl3rGA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-1692320133000_1692320275938_0.8565374344747025"},"_hasShrinkwrap":false},"1.37.1-beta-1692381606000":{"name":"playwright","version":"1.37.1-beta-1692381606000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.37.1-beta-1692381606000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b01525f809bccc0d329f4e6c1193c2f2af950a6b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.37.1-beta-1692381606000","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-O9FVUm1xCxopnNqDXvKYkUT8YTYELZum9nHW5ZnFoQLUR+wAwKHDdjff4w03R8YRX2riuniwZKLmkUYDukyxRw==","shasum":"895440ee18d5e55bda4e0a3d21ee8b9cc9db5878","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.37.1-beta-1692381606000.tgz","fileCount":9,"unpackedSize":24226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7zIxtDZkp7Ru6oH1zsxsDZDrk/xoKjpLzva6G699qWwIhAKvJFbxKAcvcM7P/82uQ8pNkuFCw09wflINAfIpFOBx0"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.37.1-beta-1692381606000_1692381761530_0.4876866046863708"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-19-2023":{"name":"playwright","version":"1.38.0-alpha-aug-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-19-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"14a57a788b504536e9bcb3d2e2ac0a01769b8afe","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-19-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-su/dW7PQCh3MrxgNcNzxktVHtg0xH72Kg7vKob5IPJSwpcinZSVrEJQpvt9NAp2RYNfbAKKdqjVqgAj0PtEgYw==","shasum":"6d2e022346e94e2e026d8acf8636e131ad455c86","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-19-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDT0WOkCb1FQOQ5tGmY0RPWCdMYgC5OZ4Kzld+Oj04yRAIhANR9K5RiOrVyQeWQOLB19M968lgiAbCmlV8Mw/2bje8b"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-19-2023_1692404573497_0.5627262885211319"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-20-2023":{"name":"playwright","version":"1.38.0-alpha-aug-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-20-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e2a11bed190e723b10116238da5bd02cbae04f3e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-20-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-18T3RjxwNTJdtB8428ZK160cLeFE7mj7pbtZKp5xudaNkW8QSlZOx6bF1dIz9g83LsoJhmjMzYc8XZTI6N3OjA==","shasum":"8ec06a6701eafa0df29df4eed8dd3334ce9cd9ca","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-20-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH/9paIE2jIm6FOIRTmbgj54sv/9z++RNqqx9whh/fBxAiEAzhfQ2Em3L8CLtMXuvy3/JPpZjepSE9V8bnXJS19EEV8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-20-2023_1692491095333_0.8401250830879397"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-21-2023":{"name":"playwright","version":"1.38.0-alpha-aug-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-21-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"41c312cd045f7608d603e75a70a44c73a176ff73","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-21-2023","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KQKSgMAmay66EfQaLQQdY/9AFat/n6NOPFMkH54jIKIpOosVZsXhxYRV2qJ6gBh1ReeKrJj+9WwaMyGrTPb2ew==","shasum":"0777723eed088c4d8b6f5d51add9f0ba7ce3c9b9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-21-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICGVnnBiQO3ZMPpOSTjBi3FRFvvC1VkQZcjGcZLHcs4JAiB6oXzrIWJQtk5rOYug+yM/DleI9PvyCXqteuofZ2zbbg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-21-2023_1692577562867_0.5268609599078387"},"_hasShrinkwrap":false},"1.38.0-alpha-1692636622000":{"name":"playwright","version":"1.38.0-alpha-1692636622000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-1692636622000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bcc30bc71e9ae0fae4ae74e133b618b249b12a09","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-1692636622000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Et9GW0V1MWpS5e3NvpWNBxygVNa3nN7z6982wk7qCbcHocifnqgNeJsaoSln6DEcjYV5eshkF2z8ZOdkFvBffA==","shasum":"b4f7a261e977817d40b56dfef989733b55f0e289","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-1692636622000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf06tZLxu7jwyWZZdMS8SfmDKrrTvQ5ryUTcUOl2+ILgIgdagFaGGA7dy0GehflNfNrDyt9zpsXjCbp8YajER3YCc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-1692636622000_1692639126318_0.3058293628969808"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-22-2023":{"name":"playwright","version":"1.38.0-alpha-aug-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-22-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"72bdd43e699cb2228e0a4195c9a31ede68da6b0b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-22-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/ZOwSoQvWo4TthjIMl2DfbdntyYWdqo3VvuwL3Tqa/VbDiVRftGR2lbZnjB2/EnGBgCTocax44Mrk1YKbhdJ6Q==","shasum":"28d856e16b753caad6925d925f2d35d2bb8b9c6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-22-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEDY3W0HD8EamndlKR72WrifQunHLDkEHVMymmLp7J7GAiEA5UT4u911mUfQ2snzuejpeev+d+3F2STTs1Ee1QRRkVk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-22-2023_1692663857689_0.09638170598465257"},"_hasShrinkwrap":false},"1.38.0-alpha-1692720102000":{"name":"playwright","version":"1.38.0-alpha-1692720102000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-1692720102000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"afc5ebe07565fe15bfc031168bc224294404568c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-1692720102000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-GUfKLnjEvcdaazBEE8g6IaMxwDnYishM/pXyWOXrNPtufSNjbn6csyRQnU+hGiOCr63pQ4ItuTBCKMOf/2vFvA==","shasum":"c9e27eda6ac8e6d503a139cc39d3347a62c84e43","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-1692720102000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxQCyiQ3M+GmtK0szAbNgdLSK//bvKiVQ033vbyPQmiAiEAo6xp49jHpLeL4QyeWv7LSkX8LudxgRpQrqy/uenWves="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-1692720102000_1692732953827_0.7961846147744169"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-23-2023":{"name":"playwright","version":"1.38.0-alpha-aug-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-23-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"00e65407995c2705598410ec5c79189ab5ad94e9","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-23-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-p5qNPf7oo3WtN4/rUWgSlUQCZVowu1wWzY06MI0wE7i0FzP4Bc/nWVDgaoGkAR2WGVAcGawh3lwzKKR+AChspw==","shasum":"51dc37146855e68b7370b652465628efd9312b07","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-23-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPy24f5yH3HOCk/tVM7vdYrXsSYJsvf+JBv8MREUvC1gIgSMwkQ8SCnBCDKSq9lfLWkSnblXw1UyJttF1YB4MjBgE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-23-2023_1692750235730_0.8077017497664398"},"_hasShrinkwrap":false},"1.38.0-alpha-1692826278000":{"name":"playwright","version":"1.38.0-alpha-1692826278000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-1692826278000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"697429d2225fefa205424bc3144a77d69f5e094f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-1692826278000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-48RqqiVoKgqMA1/PbiVS3oem/7KmCpIpuilBF913j0gHu+qiWOYcIXrckHROg46VXan3eo6IPL4m9crLVCnX2w==","shasum":"a83a93ad893766d2bce3f5aec17f03a5b41f12b2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-1692826278000.tgz","fileCount":9,"unpackedSize":24228,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbUZOMSebGj2cCGdKlBXaDf9O7phT8E+6v+F0gpXNxeAiEAyWQ8ge7PR1yYMYLhwudxLWvh2BSLJ32+cyBoctVv2uc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-1692826278000_1692826407683_0.020058879278564534"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-24-2023":{"name":"playwright","version":"1.38.0-alpha-aug-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-24-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"697429d2225fefa205424bc3144a77d69f5e094f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-24-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Ru/L0ZLxKluYGQQOU2Cjb4M7brWBFcgVt+jYXRBIFFAwWbg+crImuVUmHcPGAYL2GRl+7etVCgrYYj1gQDSwAA==","shasum":"1af87029d764cc3b843c094db427e7141939f041","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-24-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGp8c17QlLBmL6VtIzAjH/gfBxX4G0L6sQGAvq2T/iYAAiEA6+QSrNQgXEUlHMuv2o7s+KzVdWcCAiAojjHW/k8hGFM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-24-2023_1692836708690_0.9695317457732926"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-25-2023":{"name":"playwright","version":"1.38.0-alpha-aug-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-25-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-116.0.5845.82-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->116.0.5845.82<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e7bd1864a8fd6f5af0a58d03219e9eda7763e38f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-25-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1d8MW41F9gH09orMWjlmzx/O/9Li0lHaRX6yZxfNUr+sTWaAiY9evwSuEeVz17m6puuJz6TE4w99971ngIJ5qA==","shasum":"8d17196b0a0668a95725d0bb62f53e21002c1f40","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-25-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2qJT0sxXC7lQwqVGPA8DsTtuT9K6Q0KhZAttBqX5FUQIhAPzfi/LBDlUoyc99KwRt2REsP0BAb9tn12cBkNa8hOHc"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-25-2023_1692923191696_0.7168641556283846"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-26-2023":{"name":"playwright","version":"1.38.0-alpha-aug-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-26-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bc1f6272d8a551e809669ca95610afcb98c928cd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-26-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-QjwaoyTQuQo/v8DkBuG9OkNjbFWxc25iv3J/UpQuC5gMU9NYHzmhgNuhhaJdWMbP/zcU2WkZHBHJ2cXLXn4VZg==","shasum":"8390643c8740cb732a0c8c1ad10b812397fa429d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-26-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeHOdJPqcseYF3OTvMgUvx+OTsJcfIm6+aW9RxymBnegIhAOi/1LyWaTmaz/ONRlMCjheg1fey9IgSa7AHOUpURRbL"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-26-2023_1693009391482_0.6812489972362035"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-27-2023":{"name":"playwright","version":"1.38.0-alpha-aug-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{"install":"node install.js"},"dependencies":{"playwright-core":"1.38.0-alpha-aug-27-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"72aef6bc1d47721b5643ee9ad9125f3c4525ddcb","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-27-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-eyPbpp8+SU+VUVxEJvFJPUKuann/Bpa9mAjEydb4gOOJT3G+o1fuwNDpHw3gkrm/La2HsiZ+NtxhagaZtB2tbA==","shasum":"b982b99e2c3fcc5ee7f0d99d835be8f3396ed3f0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-27-2023.tgz","fileCount":9,"unpackedSize":24224,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2bgMf+O7Lg5JJVxmeosx5IwcBMlxwcf9mXP6nVkdr3AIgb0twyquxXbdam7tmfg317MTrJ2vaPKX4cCFuI8wEhYI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-27-2023_1693095954632_0.8232075353585746"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-28-2023":{"name":"playwright","version":"1.38.0-alpha-aug-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-aug-28-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"36347e7feac4044f3fa1d159f9a4d74489a25246","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-28-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-dI42UuSW2HAW+yMyB1aQzi8acdrx9rpYuY5gXgKc6oMUJBxVsqv4NyDVZ55Whin52JWbpjjMvfvYbQQNyHlFCQ==","shasum":"5b6a99ba4ff1a7aa06f8c48dd14b746b9409eee0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-28-2023.tgz","fileCount":8,"unpackedSize":23317,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBr67CvGls7Gi/mB/3uQ/IkmxidY1V+v9gL9ka0fd+7dAiEA+KLzfZGNEEdVznWVCfBnIFRbXXH2n8c/9S78OmGzpMs="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-28-2023_1693182348067_0.4633023919011845"},"_hasShrinkwrap":false},"1.38.0-alpha-1693251770000":{"name":"playwright","version":"1.38.0-alpha-1693251770000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-1693251770000"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"501ed3285638c3254410017063b57a0f1635b4f0","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-1693251770000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Ve/QiEs9hvZ+QJn6RYd1h2oKKlZuCIYltX8oIxeAJTDz0oBqIckG3sAoQqf95Dremgzz1RnkRyxlejWRcQVT4Q==","shasum":"c2dc60afb4987ca336f3fe3d93a193dfa392407e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-1693251770000.tgz","fileCount":8,"unpackedSize":23321,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTjqYqoJL+Sjp61UVSQpb4A3buMDDFpw6U/WFd19yBFAIhALqI0mInFBSJeR5lMCSYaHvJ/z68NUli8BM5z7onYjfe"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-1693251770000_1693253985375_0.8589397640426968"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-29-2023":{"name":"playwright","version":"1.38.0-alpha-aug-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-aug-29-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4bbd16d3164cb9e26178175bd607c0a89b345e8f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-29-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-zSlZLmp6drHOSy00a2CuVEEK7gNxsN1sC7gwqFSDpxwOlbCbZlGaYN21EYDssi6mqarQniMYs52ze0Peee2xTg==","shasum":"80ecae044d9eeb45c492f574abce58d1676dad9a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-29-2023.tgz","fileCount":8,"unpackedSize":23317,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAyccDW0o4DUk+5zB7dpk//q+EIFsgiDCY2RBIy0SevAiBQ5Dtw7pMG23R4xW6Xjomvq8DG3C9iWUJajGpONxJGVQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-29-2023_1693268801804_0.03727126286612581"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-30-2023":{"name":"playwright","version":"1.38.0-alpha-aug-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-aug-30-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"34c6197f9ee7b708e1d845918d84b751b216bbde","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-30-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Cf6QSGCvlRbvTYeE0s3LSxBKHr2Ic2gb97PLgWL+B2vbaKD/bIy3ilTU0y5TbZaJ7SsDO1gWD4XQAcaY183kvQ==","shasum":"49323e77716a349c688d30dfafa01a16790fb022","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-30-2023.tgz","fileCount":8,"unpackedSize":23317,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAn8YLM9Lz6OpAgS4pReL9CUNIrnKHexbJRbOHaq6MLxAiAuI/Oc9kyFoe7G2hWPjcAbnFel9M23nKSbtsoCD/Hzhg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-30-2023_1693355237881_0.36705133876678775"},"_hasShrinkwrap":false},"1.38.0-alpha-aug-31-2023":{"name":"playwright","version":"1.38.0-alpha-aug-31-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-aug-31-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"123ee9ddc12ebdf7c17a5bf8ae1c7b3296e89586","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-aug-31-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WFuDB0y5roJkZMBtwZsyxD2ciNQ6w9EWh0ZpSX2i0bxnxOLjofcj6C++mFGlVz/kjz3Ox1qxsuyBnbI/P40qow==","shasum":"854058d711bbac2c28a12ef17e67858d2e2b341c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-aug-31-2023.tgz","fileCount":8,"unpackedSize":23317,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpRkILesl7oZPHffi5UUukjQeVm237R6fKETDaijX3OgIgIBFseumVilKs4l0sYbtd6+lg9N5+g+3Mes4pV+9Byhg="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-aug-31-2023_1693441453018_0.6226748107980882"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-1-2023":{"name":"playwright","version":"1.38.0-alpha-sep-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-sep-1-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f3c02a5b4f6d5046591ec9880a201aaeea38fa1f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-1-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-N6TA4/J6ejQaWuRuijMFteePcgASxRgQBItSywnfO2LR9A1zrInr0n8pNVUC2sTwIrEsKpN/yFDeMc153vM7kg==","shasum":"f7da5d35e19bc801a2b6e94261dcad74623686bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-1-2023.tgz","fileCount":8,"unpackedSize":23315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMJhHal3ZAPDbf2Cp6pf5xyfZeXUDNbAlJZMV1O6mwUAIhALmKQgmG0UwhYBf+d5paDFE7no5Io6kfp6jW+SxK24i0"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-1-2023_1693527948501_0.411497209149841"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-2-2023":{"name":"playwright","version":"1.38.0-alpha-sep-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-sep-2-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"afd4363aab3b7880e01bd70867ddb10be13208fa","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-2-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ww9NgcLz2iTponrpf7xhsTWW4lNlEULSoxPMgmswzWyG+MHDzuy1nm6ktrqspl/h9JDbz27MpjoY8sZQQA+8+Q==","shasum":"1d02353b7508f418a1ce1a4577de1eb8aba19c87","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-2-2023.tgz","fileCount":8,"unpackedSize":23315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzqUM37OWtlZFft0ULB34mX7f8C2XeXlojs2+XdKcDmgIgGpxXpAiTueEwstxVfIJYwsMkE9e37LGvyUVyQhJ0Tm0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-2-2023_1693614212075_0.13524120627705938"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-3-2023":{"name":"playwright","version":"1.38.0-alpha-sep-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-sep-3-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8c494e25191a2da940afe1dabde920a78b94cbb4","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-3-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-t+0vtRwdkjNZnXfqFW8rFA+w5RjA6gxZ3zpvezUlTvgH2Q/0Wu8PmhgARYbx0L3BaqGqGNTUL9fze6fzlV2/0w==","shasum":"22e1306538e90e32a9fb1f9d653d505c54f20179","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-3-2023.tgz","fileCount":8,"unpackedSize":23315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmwOHgeXOnAFI8rXUW/GcXWXEW9I/3lToSZj+z6TS4fAIhAPn4odB794YBDDJOoVdk42DNlsRLjaJuREgDCnPNrz3q"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-3-2023_1693700757568_0.2410918625225429"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-4-2023":{"name":"playwright","version":"1.38.0-alpha-sep-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-sep-4-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f219f9fd41e7913de29d5c9f6201d785194acd1f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-4-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-lfXLQwOQv7EtFu3TtYOQk1QPgPAW5xE1JZmu0cZOqzFwoghk5xqsZ7BivguloJCYRrq1bERzrX2hOSJWGbsxEQ==","shasum":"63a7e6b38ebd99fb8dab78dd50488cb37f47a46c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-4-2023.tgz","fileCount":8,"unpackedSize":23315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3vlU/3FavdaZoVzQ0Ewo/s6RYbhsYg6oqNzPc7c7zAQIgSDPwvLFgDuPI6p4bYbkaq6/eA3cCkD7WMULBuQswL0s="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-4-2023_1693787100516_0.882147427106853"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-5-2023":{"name":"playwright","version":"1.38.0-alpha-sep-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-sep-5-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"94c1b749b2ce8057c3f117ca2dbbcc713d4d2511","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-5-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-kg/wHP+90ohfMdLxOij50yLL8nNQF4PxUmOmuPwdDEzmEosK+kwJBdu9tpA7/4ZsRqi9CphpgCCBSnYoWFePQg==","shasum":"156a4a26f51f9ef3976450762492b8f267e69b31","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-5-2023.tgz","fileCount":8,"unpackedSize":23315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDL65ZH6y4xNJrJA9130B9NYf1uTX2nJ91Ahs2SGBgjBAIhALfeYEd4GbhcUmI/YrSqF1uRMsRYZw1VRBI5iVSlxvP5"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-5-2023_1693873419195_0.9106750058622635"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-6-2023":{"name":"playwright","version":"1.38.0-alpha-sep-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-sep-6-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e065a927bb54e6c7ef1f5f56c6a6c23b481c53db","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-6-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-WxGH8KwOtJGRwIxB/E8sagMwsPX9WYz30uPQz8TOe5+9TH6c0KVwz/R/6OCDsCqlCthpWGj7sni7eWboRFesEg==","shasum":"4029c73868fed9f0e15cdf4e67f3545bc014bdc2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-6-2023.tgz","fileCount":8,"unpackedSize":23315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0/6PtNvUOiMCoTN5PksIPhkNQh1Vuo2n/aoXQIy4h8AiEAgOQ1eLdmxKJV2SBqjDVds2Y4LZfK8VkJR/SRKQjiVB8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-6-2023_1693959888357_0.5297499128358845"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-7-2023":{"name":"playwright","version":"1.38.0-alpha-sep-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-sep-7-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-115.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->115.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"61a192432844dff87e3493a03c0158534a2cdb3c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-7-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-HUqBgIEmfY84zsj1BqIApjZVtMKl2l5VRov4TnffZ36qF/vScWSaiuVRs1+a4r6hIRrYj2Ht/EAOKnSM6jMFHA==","shasum":"a744b3b71908a8ff926adc3e18d93d6dc4f720bc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-7-2023.tgz","fileCount":8,"unpackedSize":23315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAIinA7KUMVc8yOqms7qz9H8jU42AQF7XSjY7+eCedStAiBYmZHApU0YDUak7HQg/WpxbWBQK9YuhDg8LyJG59pBiw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-7-2023_1694046268990_0.5274735559481081"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-8-2023":{"name":"playwright","version":"1.38.0-alpha-sep-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json"},"bin":{"playwright":"cli.js"},"scripts":{},"dependencies":{"playwright-core":"1.38.0-alpha-sep-8-2023"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"167c35ca6600bb1a3722b0c0ece4201ce776e44d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-8-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Xa0FMM6A3W0s9yZKNvDSqFCn85dez1iH1zt60YX+n/jrwX6Mj1KvQoFJ86dlcUHVT3SJDorxjXkpauYv74bLfg==","shasum":"f2064df7e522be15dae00e8fdce32dead6255f56","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-8-2023.tgz","fileCount":8,"unpackedSize":23315,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhdnWoG8qGZW0ndd2jG1hUkuruRvYZSjNNHHMRxTiyIgIhAOupxDjpFR8BMejCUbx/CHBKPyYvPV/yR003u8enefpA"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-8-2023_1694132683734_0.06215232861368136"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-9-2023":{"name":"playwright","version":"1.38.0-alpha-sep-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-alpha-sep-9-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c3f5486dab1eb37fa47566c1a7bbd1afba72746b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-9-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-byQJadP0GMXDYal35b1JNYuSj0H1n02zyfoHvbnjWcQPU31iiu7Ufpan9bayJtM2irKwHpsmgaeR8zdMR8YBpg==","shasum":"740937f63e5ae53f02ee05a5a104705514ec4525","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-9-2023.tgz","fileCount":96,"unpackedSize":2884148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCf68jrlCnljRhmV3zKTebdygDWLDcrRqWOS6xkoqDuyAIhAPq4NQRS8Wp/B1solCVh/xwtptIw9ZaDYXemYs6GdnOO"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-9-2023_1694219028302_0.9889078907984297"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-10-2023":{"name":"playwright","version":"1.38.0-alpha-sep-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-alpha-sep-10-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"80b9e0283708997753e4f495ad638eb36d016914","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-10-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hyPsserKJq+1KEoEeIIkzR1vRJgnnA1BTNkX65UgmqQpOeMP0P/Jlhw/sxsaDygZPLF6ilQ2PzEw2urxo0e4aA==","shasum":"14a8dbc882a84130cf0ed9719491f4ee9d7ccc5a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-10-2023.tgz","fileCount":96,"unpackedSize":2882784,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWTQIoI/00zrMUl85e1P3n3T+vmlWj5djZ2y4p5zJ45AiB6m1rlH28yoV2sllqllnPd3A+8QpN/7pkx2CNn0T1FtQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-10-2023_1694305564872_0.26365346611245766"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-11-2023":{"name":"playwright","version":"1.38.0-alpha-sep-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-alpha-sep-11-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"80b9e0283708997753e4f495ad638eb36d016914","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-11-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1/6jy/iq0QaBz9IRV7eCZFgEHyzYCMSpvK71fwvYXtu1A776i2CkE+4fffzpXen9ZY8yqb1nxaACo/Drz5L1Ww==","shasum":"6ed9f13e918f07036a8871c26fc91672abedad65","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-11-2023.tgz","fileCount":96,"unpackedSize":2882784,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGYM09j5952oNM1MPuMRhZ66ktYBkX5amDdDMxezdD8OAiBMLtnVxsmtc7/6FIpLXuuOTJl1sb7I5cAFHiVS30FcXg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-11-2023_1694391881357_0.22752478540552667"},"_hasShrinkwrap":false},"1.38.0-alpha-sep-12-2023":{"name":"playwright","version":"1.38.0-alpha-sep-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-alpha-sep-12-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d9eabda09dd9a08577e2d684c2a78c32a64573a6","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-alpha-sep-12-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-l5SGA8Xs7mqKDw/9PuVPmruzqYXweuScxyb1IuX7zAEDHY0mj0DsYrE5yhrqZJfvxWiqRWuf3QzksynGIsgf9Q==","shasum":"a9ffeb462cdb93607f6c3bf7a355e9e229b5fae2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-alpha-sep-12-2023.tgz","fileCount":96,"unpackedSize":2882784,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkC74m+/2eXZvMMf9XOaN6HuAWvilTWaBi5wXlZeB5XQIgQ+br8WXasTG7/9ZeJSpsr7a4vo2u/TC9DOuILrlY8w0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-alpha-sep-12-2023_1694478158864_0.4694597596344434"},"_hasShrinkwrap":false},"1.38.0-beta-1694481362000":{"name":"playwright","version":"1.38.0-beta-1694481362000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694481362000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7c838653d60d5cae114721fdeed1148c095541e8","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694481362000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-P9F1TvNri94zmrkeiFqu1ksT7E90JNZ4zPuUEmypruiJhHS5aEWrnXlMOq3ik+r/sMeavKKpp02Q4KsRXhtWhA==","shasum":"e5dc50c6f13b44553df29e1f080950b3c5e444f8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694481362000.tgz","fileCount":96,"unpackedSize":2882786,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAeCM6SbYevPL+Mo8TyHDT2rXZj+NsBAydr9AMR7W2xwIgJj7jrC4WXKO49O14TCwxTxHlYwFAXqmuLd36QW7Cw1c="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694481362000_1694481643776_0.4625255018704464"},"_hasShrinkwrap":false},"1.38.0-beta-1694481542000":{"name":"playwright","version":"1.38.0-beta-1694481542000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694481542000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5f78f27a7a04b447df35db944e8869e4cc719a62","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694481542000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-HrSH1PvI1z9YblGmfGIh917nusP4VLSqwlN+RM6Dhu+oSvSEv2JcDaHeWd/VgHRhM7Lby0IHFP0O+eHgQb/w8A==","shasum":"2af6127bc221744e242152a1360e5779411bc8fb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694481542000.tgz","fileCount":96,"unpackedSize":2882810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtHQenEGTlcah4WGLPOHDfHtQ7xf14j5wIbfDv951HZAiEAkP029MPuL82GkCap/sNEnOCvaj/6tk637ejVPan5RNA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694481542000_1694481718331_0.7758188650396987"},"_hasShrinkwrap":false},"1.38.0-beta-1694484181000":{"name":"playwright","version":"1.38.0-beta-1694484181000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694484181000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9981f1418ad25dae5345bed96d19f16c8a663f81","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694484181000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-KBIDCyd6LYvQz+WpDKmNrCFubbd6mFZMP3faQcJM/P2KGZTwvKemddti2jb9r8W0ZLcTYqh8U3+45A0/rXE/Mg==","shasum":"dcd6ab2c174f66ec580a020adec7c59376af9edb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694484181000.tgz","fileCount":96,"unpackedSize":2882810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9GAafFWMbaQbEUXNGJut8EpJ4cOGlyQ5JMVQQ1t3OMQIgCUzPH28V+ivZGNfhaYbumcxomDT10Mf/4fyqE99kgwc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694484181000_1694484331001_0.6948354971031832"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-13-2023":{"name":"playwright","version":"1.39.0-alpha-sep-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-13-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.48-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.48<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"64bf2a624fe1bddea227cab83725ecaa80d41391","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-13-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-6re9vDzrVvoBd1isbw/QzkwkY0XikPHiPt0zAmU+xUT2EwJoE58ZVbe9hB6MBNdswVLexknFInIBk9rAAd0pKw==","shasum":"a19115e6f8556556bc32edd8102a175aa6429446","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-13-2023.tgz","fileCount":96,"unpackedSize":2883276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIArYCM0bz4xrXpZ3zfZpgCfDTBA5IQdPphHuZECut3bQAiAGKsIXpL5EMnrO2FS7CEZPfg9pk7pPi/bd8MigXFWA0A=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-13-2023_1694564693915_0.3560699893965076"},"_hasShrinkwrap":false},"1.38.0-beta-1694609184000":{"name":"playwright","version":"1.38.0-beta-1694609184000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694609184000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cd8b12c0d56fff05c1727bb610e320b1ffefb544","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694609184000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-hYosd4r2zB2F4cYvCAYu+PjaUQ0O9WallR1KRpLzsKidPK10OUC82CGABEEzRG54lKWXiOeCTfvb2r0zCKpl4Q==","shasum":"4e86dad844d53ccd762dec07f7dd5498cccaddf5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694609184000.tgz","fileCount":96,"unpackedSize":2882810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEguil260HODkqfP1orIaXPC20snaUtHtZOp1s0thRK1AiEA2BS6y+AN9OUKCeeQGtnsstS5r8Yl8RzvF/B/JEprrVI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694609184000_1694609314418_0.03130114100376491"},"_hasShrinkwrap":false},"1.38.0-beta-1694622530000":{"name":"playwright","version":"1.38.0-beta-1694622530000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694622530000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a0a099fe4af851a543d349924eb7bf07cf1275ff","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694622530000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-YENb/qaRMLckcsekUUqfc2qFZgLNgbWXLUQGw5qW9rOh0ehmcRki/qvaP9SxSLuetYZBCaT9X8ykeSxc1nZ5WA==","shasum":"8fa8190f81cd3b2421538aa99dbbf23431be5982","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694622530000.tgz","fileCount":96,"unpackedSize":2882810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+oBSR2ERcQB12UL/oay79c9UIk0YKcsWxptCIaZcS1QIgJ+oZCXPqVnDiDwMjoH8YjpGGR1l+PWMnI2VYjrob3b4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694622530000_1694622666128_0.326551872923464"},"_hasShrinkwrap":false},"1.38.0-beta-1694630302000":{"name":"playwright","version":"1.38.0-beta-1694630302000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694630302000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"55cf8eae2547b6933911ad517854ba45be51c481","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694630302000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-2Qtgw+HbmuekvMqtOObEariIlb3FvAJ6DgtD4vKyTUDsMqXNqE/IRn98xC1p8GR/DlPGyXp/EXhPy0mWQdZVxw==","shasum":"e095edfd8635b6b33b750f6de935adaa1530d991","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694630302000.tgz","fileCount":96,"unpackedSize":2882810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkkIp66oP+yE/dKum/jUT5s3AbfrKi8LD84dwizdxifgIgaKy2HKLhjBTvbWfDey59l9ku9DSxDfLdlsMUe6oX0UI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694630302000_1694630458358_0.7201133708519607"},"_hasShrinkwrap":false},"1.38.0-beta-1694630350000":{"name":"playwright","version":"1.38.0-beta-1694630350000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694630350000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"94b6fe1bdb130b9891c5874b5a5e483c332dc27f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694630350000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-j6eB2M71F6DuHmtqH1gv3OfyWMPfaGNfID/6ZwTKWYQ8KNkUTB067sk7Pn6+CN040jzvHgEnhNydg8KGTGiZzQ==","shasum":"5a996e3a6ba948a66c0517bde9154b01bc5e4ae0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694630350000.tgz","fileCount":96,"unpackedSize":2882810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDOczC8CL6a0nVlmDQxjtosijO3UF+OjCLllnq6rDLAAiEA5gpa7to57R7KAkztWBHPjK5sYvgCdZ5b3sz2ufEas1Q="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694630350000_1694630493711_0.21792889755059597"},"_hasShrinkwrap":false},"1.38.0-beta-1694645757000":{"name":"playwright","version":"1.38.0-beta-1694645757000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694645757000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"da997ee8c07176b13d0c388c54320ea7ace3a9bd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694645757000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-yWZzg1BrcuMMTxi5ulp+w8bgroQPp8BHGM7VcvcGUUSOY7JxFUCOnm6hS1yJX4paWW/5rw9OIceE0U83cclsQA==","shasum":"5e9b4d12906322dad5ba3e30849624f393c655c9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694645757000.tgz","fileCount":96,"unpackedSize":2882810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXn+88HDkEuSXXPq1HaWvW0HYTtd3OlH+Ci5c25LbhnAIhALh0dRHJ8J1P2ualZQR3yF2y0VhVtYAdJ+XD6yYsomIA"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694645757000_1694645904694_0.8507011482553453"},"_hasShrinkwrap":false},"1.38.0":{"name":"playwright","version":"1.38.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","gitHead":"da997ee8c07176b13d0c388c54320ea7ace3a9bd","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fJGw+HO0YY+fU/F1N57DMO+TmXHTrmr905J05zwAQE9xkuwP/QLDk63rVhmyxh03dYnEhnRbsdbH9B0UVVRB3A==","shasum":"0ee19d38512b7b1f961c0eb44008a6fed373d206","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0.tgz","fileCount":96,"unpackedSize":2882772,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBrpKADoNF8ICk3rjP9FvyegUX23Gg7nPo62N1tYRU0aAiBTVKlVKx2jMVDZO4hZX/wVciVil49a37ppptjksk+TMQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0_1694646852284_0.4380656073961775"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-14-2023":{"name":"playwright","version":"1.39.0-alpha-sep-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-14-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"45d2a3645379f5bdfe902ba16d373d1158965b93","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-14-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qGd4J3QAmx14/9ZldQlgVqYVJJG7jRFL3xB9uHZZlaTrPTqLn7qeNu6QGQSEkm0dzLjrh5cJkjsXVwek4G6/yQ==","shasum":"e1ed7be3f665630f6e52e5cac2d711b09b6da6be","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-14-2023.tgz","fileCount":96,"unpackedSize":2883276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA5kaRc74fGSjPvEsvLPSNAZY6uisXQfVovXW1RPs/3wAiA2O+FabXWJfIW+hG+uWW97bqmswZNWumfTwGdJ4siNqg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-14-2023_1694651048756_0.6692640719722991"},"_hasShrinkwrap":false},"1.38.0-beta-1694724379000":{"name":"playwright","version":"1.38.0-beta-1694724379000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694724379000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9271ba949550f7ed55c39048ace6633c98b9625f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694724379000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-vE1RenrEraC26uPCvRuMUq4FpgMvQ6tWWBHOh4soytaMm5CvcF1vS4wD/zBpMZi9ofLZ/rfWrUIxf/1iy1l1fw==","shasum":"c745dc110db9aa0421001b7137ef1f79ccbaf4cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694724379000.tgz","fileCount":96,"unpackedSize":2883657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEtA4lrweAIfzeDYjhBOhQ39fqTH+gE0CEkDvmC2Z8n9AiAkXB7Z3aGxMeShihJfow416wX46+ePexCgLFgB29TxeA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694724379000_1694724535850_0.5609218248221679"},"_hasShrinkwrap":false},"1.38.0-beta-1694737022000":{"name":"playwright","version":"1.38.0-beta-1694737022000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694737022000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0861364c28a354c0ad5c96b312778dc2532bf905","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694737022000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-IrEK9haoc86Nd7mPTu4HbeXeYcyr3oKB5BgCxg6OHSKiiIKWnqnYlQM6PFTx4pL7Jx3BU/S30yeDDqTctwnnig==","shasum":"a09a4e44b856a75641e627b539562601c53a2997","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694737022000.tgz","fileCount":96,"unpackedSize":2883657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpy4HdnrQOMhemjO6M3uA+5YuT3X1DTNMPh/mAuUwurgIgVHif6Opv1f+Y59/WX6wGZ/hCTLaTE/VWg+rT1rV/k6g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694737022000_1694737168897_0.4456587283110067"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-15-2023":{"name":"playwright","version":"1.39.0-alpha-sep-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-15-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"699e790f69b60adc5494195e9199914b42291666","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-15-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-XCv7O0I0sxpgDu+eCoQAEsmE/aTc2gB1OW3grtBQspd1IDuNQzHhHTB9Mcm6Z3FZDy2aU5Y1GT9Hd6HLx8FRNw==","shasum":"d334f980e6f836e93681ad9d7d07794c4a9b6741","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-15-2023.tgz","fileCount":96,"unpackedSize":2885159,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID9kh6K7BCPEdovhwQNuk6l1eDlY9VEF4VzOUfZfs1DkAiA5ohBql7zSimUqVN/M+oEPid9gCVzoloBIQDsFkvD1Fg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-15-2023_1694737448881_0.06397957967606072"},"_hasShrinkwrap":false},"1.38.0-beta-1694752409000":{"name":"playwright","version":"1.38.0-beta-1694752409000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694752409000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"476b74f7c4b6f95ec9fe2c89d3aee20bb9a277ec","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694752409000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-b13dqt+hPyXz/yA37eGyViF3OGYwFhzmHnDDR/qErMM8rTqneYh61ttAX6Q2zW+sC5ju+Y3GWdphV2yoPPFY8w==","shasum":"db79dda923684ddac031d01a9c6aca9db524378c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694752409000.tgz","fileCount":96,"unpackedSize":2883698,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDtLcMkzIal+pWQtUtNbMWN5m19b49w9KmK9xOXHSB1wIhAPWCRfTdzbrDt1r1GW3vFdpZn4YtU4UYxHL+Dv0TQUVu"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694752409000_1694752534258_0.8550969545252507"},"_hasShrinkwrap":false},"1.39.0-alpha-1694746830000":{"name":"playwright","version":"1.39.0-alpha-1694746830000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-1694746830000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ebf6a082903d3b7b952d0db87a581ce0d0272466","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-1694746830000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-gyD6GZ6K3W/qlnYv7N9QqAdsO7i7kZB5YU6MSD85wVUg05U0SlzAbIKlmT3wOIN2L4qceuC//X68Fo2bNNBCfg==","shasum":"75f96e5e21dbcda362df60b5c644025a8f1a47c0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-1694746830000.tgz","fileCount":96,"unpackedSize":2885204,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpryy7m7FWO0MG6RpWueoLAiVPCG8wkMAfTj0zKSvhEwIgfFxQPofDfq18ezpIk2hek8dIsPCGAEn+21JIztna+4g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-1694746830000_1694771130046_0.5929948212217115"},"_hasShrinkwrap":false},"1.38.0-beta-1694795199000":{"name":"playwright","version":"1.38.0-beta-1694795199000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694795199000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed919f3dda06e23601df046c0c16ec160ff3c0af","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694795199000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-LAhUkoA4vYa1pxvc7q7AoggCgXTTCYrpnb+hX7oF9c2cfxOhMfh3scbvh30tVZR1fFRe3LHmHLC/5al6TZvyQQ==","shasum":"f86ffbe287007573ecd85faa301ea8ce69e105d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694795199000.tgz","fileCount":96,"unpackedSize":2883698,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/uxLLnVgQTlyh9L8jp/dxpU/Y9lLXQ5FaeRx0JdSPAgIgSab5IkZzWV3Gv3XjneLCxbx/IJVTNDrkwCmQIDCnad4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694795199000_1694795318554_0.3628700317844975"},"_hasShrinkwrap":false},"1.38.0-beta-1694799093000":{"name":"playwright","version":"1.38.0-beta-1694799093000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694799093000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2a577a5cafb1b2381e01169ab3954e536577de23","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694799093000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-7JXtnFcH1xNMAt/ny2+gEVyXYId/XXjF9cEsE5ef5T8uvcHrL/DnOhxkvtQMkV/UTyG7mGNx37NV6+LvvtuWsA==","shasum":"746fcab7233a45cf5a8accbd4f95d1ad81b7cf81","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694799093000.tgz","fileCount":96,"unpackedSize":2883698,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQD57f/l9NxOSjNRiMN6nkJTb5AWFvGsUrhIiN5Qne6AIhALo3ipuMXYQCsV4oaLU3fLC58+jYmInyfxrfdem5RUa+"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694799093000_1694799246827_0.5077780635170772"},"_hasShrinkwrap":false},"1.38.0-beta-1694800048000":{"name":"playwright","version":"1.38.0-beta-1694800048000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1694800048000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6cc43d81c567f57a58ac3240fdf6797e66a2e119","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1694800048000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-nU1t8EwnZ9M1cP60Qf02Jfvjp+0wiLg0IXtCUc5gSNy9v9gw/I2ONYYEpyxaLJD3xHRgavjqpQztL1o2OvRs9g==","shasum":"a1c2996631c08720090d3cfd3a9405126dbfa5ce","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1694800048000.tgz","fileCount":96,"unpackedSize":2883742,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHiouXJ3b7vUW4MrU9UmnGh9dcgDauFLN7syx1N3hD7AiBrXec0CMHf8NJcQE8zgPU+494Y8v//3m701guUJub+pw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1694800048000_1694800181533_0.936009155699377"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-16-2023":{"name":"playwright","version":"1.39.0-alpha-sep-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-16-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3bcf9687e6505c4145510c9f1c637646a31ed55e","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-16-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-DpzQBk/BJDBDlm6w+tRXEAcLVp0t1SFW8aErG1zy4DXg/bcnAmMQbVY7Hzh4rcTUTDaYTwESLrCDxfgdJ0Jf7g==","shasum":"9fdad3ab2d67237b1a2d30909a9e2ec965c9628d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-16-2023.tgz","fileCount":96,"unpackedSize":2885415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/hJOtilh3H8RhnknSqRqSNOkKWrDFnKx7dEkosHVtjwIhAITtZbfAaDOQ0wKyioyMPUQQjVA5cmPToFsn2m0flLlR"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-16-2023_1694823839433_0.35194514934427246"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-17-2023":{"name":"playwright","version":"1.39.0-alpha-sep-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-17-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9fe037fb63a87844e94bc4111d1a0717b22f4623","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-17-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+cb5cv/wymZRB46w5MTOTwlQ51r0vwx2CuHC+2+PVz+i4TJ1E8uem1AcApzr7P4AfuKnRyqGyReUpfaV7NOOCA==","shasum":"21ab410ed94fd2eb577f11b481e3173275a48bb9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-17-2023.tgz","fileCount":96,"unpackedSize":2886375,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNNtl/mmvB9drwZVSbB6oNAHSEhZ+JaEeMIHhMK3cwKAiAdbpSPIwGXBc+FL5Kxb2JttQVvmD5NuQRKbvzGTUT97w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-17-2023_1694910364818_0.0888952615937213"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-18-2023":{"name":"playwright","version":"1.39.0-alpha-sep-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-18-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9fe037fb63a87844e94bc4111d1a0717b22f4623","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-18-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-4+P7/NkKj4dIuquyikL+ugOCJBfIn4+D9lzYktdKX3DsKkwn4LVeixgHBVtCyVaIcwU0XwVnambN5ZkmyA692g==","shasum":"cc2897414bcd1095b84c07e85d32d844f1c84729","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-18-2023.tgz","fileCount":96,"unpackedSize":2886375,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5uXG1rMEcKvtimbCVWseGRROdeqX5mPQGotW5FJQoQAiEAlv7tmJXVp5xvgJlHOz4VJ9xT5qGc6mUSjyHim6mqk2g="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-18-2023_1694996714393_0.36488657641046873"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-19-2023":{"name":"playwright","version":"1.39.0-alpha-sep-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-19-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"94e272ba0f1d1718f14cbaedc48eb62b5337a84d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-19-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+nz9wf9o1r50Z4Hc2enOdoa2RD71FjwiCQl2p9Ali1FLbjB8FwiJjddBiTvz5UuDbfcZtv0POc6Cc3FnTcs6Ug==","shasum":"8602d43f14c794725b64357f9be7c726051429f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-19-2023.tgz","fileCount":96,"unpackedSize":2886441,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV56nMbFl0wENFZlGMEZv1IyPx+JwscWu+DOFSY8OZDQIhAOsNHSig8CdDXdTJFiTVH5bAKzmS9QC4qCkW7vXES4hZ"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-19-2023_1695083120458_0.2179273528515231"},"_hasShrinkwrap":false},"1.38.0-beta-1695084020000":{"name":"playwright","version":"1.38.0-beta-1695084020000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1695084020000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"35d8604f8d1ad4715d6774ff0228a62d23f22ea7","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1695084020000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-RWNe+7oOS2A2W1hPwY2b3ZylMoRim2BAxaR3Si5LUvwjWlo4Bz956EYkgldyh0L8iIaEI2Jud56F6wVYIrNmbg==","shasum":"a466f6ed8cc0258bb027d9381438adeab5455995","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1695084020000.tgz","fileCount":96,"unpackedSize":2883742,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDL0DrxnoacRsu2lQbpZfkQX73bJBTWFDB9I+3uGetHFQIhAN35jveDVZcpX8i0u+FeOReyWmjR9EVau1tMTg5HsRuo"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1695084020000_1695084142279_0.4889273200702535"},"_hasShrinkwrap":false},"1.38.0-beta-1695162431000":{"name":"playwright","version":"1.38.0-beta-1695162431000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1695162431000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"abf9df39cf5ac11e2dc7f28c4b7cef0f96820c5d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1695162431000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-jm8/zW+tw0reHWT9SL5UwcsvVuKJDBq+Eq+lPZiyWIHRxPdJ91PD5vvB2RFFPZuZQqWggH6zhtBuEIKB+i+DxA==","shasum":"a94f390e0f617eb6d725549af6a45a190f73fda0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1695162431000.tgz","fileCount":96,"unpackedSize":2883742,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI+wnU1bj26Z5hk0lKSNeemuJW/ewDII4tBlY0OqgB+AIgYfZU9t5hZyxcfs59apJCmjRo/f3bb/PPazKEvIeKcm0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1695162431000_1695162595282_0.5026561002316337"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-20-2023":{"name":"playwright","version":"1.39.0-alpha-sep-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-20-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2af7d672efeef92ca45577b2c3eeef3de6edb40f","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-20-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-kqbNVFT1TlkTvHl8N1rQ12KuKKtd4pK0dVmVqVSwZfoH4y+aiahwiT+gZB0FreU2elRU2+c9wtxJ4WntorCgrA==","shasum":"7996b8ea9b8b4cb55a2ec39c250ef94861db67b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-20-2023.tgz","fileCount":96,"unpackedSize":2886441,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCX6Vv0giF6qiJ8r47NUPZgmFTndfrAJ3byVhZYyuBFgIhAI8/P2RXg+56h61lNXLjAhxvx6TlPqa67vKJDR3YpnO8"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-20-2023_1695169479610_0.7036139984134806"},"_hasShrinkwrap":false},"1.38.0-beta-1695182347000":{"name":"playwright","version":"1.38.0-beta-1695182347000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1695182347000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ed619b6fcb06a442be29b7ff48d3d91660f6742c","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1695182347000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-DXeJ9IKUeERgn9eczNthy3tPbW3NsSX5ZY0aGyhDFfj090pqaDHiiRdu5p0rV0x2SQu2F3WWJNFt/nE01QIfSw==","shasum":"14cd95924001f42976d447c13f0074b4004e1bee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1695182347000.tgz","fileCount":96,"unpackedSize":2883742,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGC4lZ0USw1ZPKqW+ehNPAcYKyzd7DL69D5fa5Y4vkbBAiBu6890awmvJK3lf6l6N+WxD/6KlDduacwiImWv75lF6Q=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1695182347000_1695182475305_0.7938153435416615"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-21-2023":{"name":"playwright","version":"1.39.0-alpha-sep-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-21-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"abde650398d9c51421790780590625b628e3347b","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-21-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-osSF6XRwnZOQaoGL1Qum4dtbmvdHL5Iqgwey2zQZAkfWW2Q44dk7ZR0bEH5siruRAt2fFKSVrdl5Cu3MRP5erg==","shasum":"8dda55a0d5445be01556e49383a241fbddbf90cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-21-2023.tgz","fileCount":96,"unpackedSize":2886441,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKz1bAO3f60bRGHq6A1/HP2skkT+jQjE4j5VUk7m21IgIhALgVRDE0LUt+J4K/uoFSbi6/XbgybN8e/Gk1WuGp6L5c"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-21-2023_1695255859122_0.12182081525128652"},"_hasShrinkwrap":false},"1.38.0-beta-1695261931000":{"name":"playwright","version":"1.38.0-beta-1695261931000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.0-beta-1695261931000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c41012b0553fd5617e902e9584273ecb79b26152","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.0-beta-1695261931000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UfJPHik+x+QAQA9cEijvNMbxYOIqAnr5gzpGXEjA1kNDuYS9/qVIMUFTspabfg8qGxOfnTb770Qtv9rdoRRa8A==","shasum":"8292cca22b7e79a920d91a780ed74d3bd9eee81f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.0-beta-1695261931000.tgz","fileCount":96,"unpackedSize":2883742,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFWA/fUq6TL/r7lTRIbbrOv6/Rdd4iEdqSaGK5go9CIiAiAtj6/6Ly4HJg+06TNHknfOqGVKQiXxgfdyX6cSN0NUkA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.0-beta-1695261931000_1695262066507_0.03726942824181623"},"_hasShrinkwrap":false},"1.38.1-beta-1695325114000":{"name":"playwright","version":"1.38.1-beta-1695325114000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.1-beta-1695325114000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-117.0.5938.62-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->117.0.5938.62<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"47434209996cfd19d7c913caa7ddf8e1377e1d99","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.1-beta-1695325114000","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-FJv0vNLF4IQMQW/wVRMypmUbdGZJ6GSz4PKTWoUUb/mNCb+JilpzUb3PR3N+AY5uJXK93nf9RueK5WryjsjFBA==","shasum":"22b2ae9558ad2de721bb47f1c8be10d98fdb948e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.1-beta-1695325114000.tgz","fileCount":96,"unpackedSize":2883742,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYQZjc+jRxvGWOecj27/oXAPDBW3EQvw/LN8p6azqIywIhAMcXXIhpqwE93EoaqicfQz7nmI+723IY6Npvfpmm/opc"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.1-beta-1695325114000_1695325241080_0.1869638029420162"},"_hasShrinkwrap":false},"1.38.1":{"name":"playwright","version":"1.38.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.38.1","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","gitHead":"47434209996cfd19d7c913caa7ddf8e1377e1d99","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.38.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-oRMSJmZrOu1FP5iu3UrCx8JEFRIMxLDM0c/3o4bpzU5Tz97BypefWf7TuTNPWeCe279TPal5RtPPZ+9lW/Qkow==","shasum":"82ecd9bc4f4f64dbeee8a11c31793748e2528130","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.38.1.tgz","fileCount":96,"unpackedSize":2883704,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+9LE7PVT8SYa1xyEVKLJRJSKQC7+Sp6vzvlR5+XT9EgIgCth8Yl5ZAsvC6W4QFUQhGKZHc6sHAVOHOIZEQWDuOY4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.38.1_1695333332290_0.05147486977065974"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-22-2023":{"name":"playwright","version":"1.39.0-alpha-sep-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-22-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ccaec034d8ca7c140e13041412d1877a100a0997","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-22-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-lk3hqQBzHHprFdz15W+jCnwgSILW3BgdNmhAaWzBS6iq0Bzd0InNi2aIo+ZxhlCkKYtGBsdpTXvxwWDR2A4yYQ==","shasum":"cd2c7731b0f5a9d2cb0192255fd3f5028843d3b4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-22-2023.tgz","fileCount":96,"unpackedSize":2886945,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJ66Gca7FMRghXk/MO+4DTRn8K8GNf3sgVkCOGqsvsZAiEAuI5ZQHpw6BYFHYiBCZENS5WiPD8cMOiyH2qhDl5QjvM="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-22-2023_1695342319102_0.35943857089202913"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-23-2023":{"name":"playwright","version":"1.39.0-alpha-sep-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-23-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d6ec1ae3994f127e38b866a231a34efc6a4cac0d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-23-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Wh5MFIaCENIPceZz7nFESsBcPV8d06tdg0i58XYGiAj9pjjfi9EeFb68Eif2e0uPbA4CSMRE8ap6PyVVGkUBLQ==","shasum":"9f666d40e141ac7144882c0e0124b98d8e4a3565","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-23-2023.tgz","fileCount":96,"unpackedSize":2889687,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFpidPuY93FD8Jk2S3ez08XqaaBWXJ5Oobn8TwqrwvKHAiAVazoGEF78K5yRyMc01F3ElHLEPgfTSvD99Gw4SoTqNw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-23-2023_1695428620355_0.14133678132272753"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-24-2023":{"name":"playwright","version":"1.39.0-alpha-sep-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-24-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d6ec1ae3994f127e38b866a231a34efc6a4cac0d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-24-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-EEti43NroUSf3RJGxmMPAG5ZUnos5+tTeiHp7ylTb8C0y8fyKYDXZ4LhBUjsI+rYBbejWyeJgpfzr0+eK6Owsg==","shasum":"26b271c0d6652f1ddd891b32b770754d70e9e267","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-24-2023.tgz","fileCount":96,"unpackedSize":2889687,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBEF8sscv2/er1j+KuCRYMu4Kgclq+uuA4IGaBExSllPAiEA8HgezUg9QEhBWRCIhQTkJbmnOIpKsp1NIMXjMSOQnAU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-24-2023_1695515156921_0.1398498158243482"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-25-2023":{"name":"playwright","version":"1.39.0-alpha-sep-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-25-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d6ec1ae3994f127e38b866a231a34efc6a4cac0d","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-25-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-5VyF+F5cSI/pRjosxOQpCjSVw0/LzhbFR9XKv7K25UXmFMVC6njxYhC29+EADjrlRIdynH14KILALuJ1/KVIkw==","shasum":"f7ef295215882be2a851c231e71c4b5b96949d4c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-25-2023.tgz","fileCount":96,"unpackedSize":2889687,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDqMypfzg2jiTpjVIXySQY9kMw7K/tQJRC40DJlQQ6J0AiEAnK/C6mciqutWM5mnIY+12fMSbJiXCgRC570k+aW9Hbk="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-25-2023_1695601530861_0.8526737259471071"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-26-2023":{"name":"playwright","version":"1.39.0-alpha-sep-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-26-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aed86c98a8093bc18a1121f4b1263b64aa61c5de","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-26-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-+a0iGiZ3NVRNLQSOMB1oVe8yOzPo9ce++6jI3LnYkNtA0vANVxg6qzFBygXwubwNndRIDgQL+B9FTlj0lJb0tQ==","shasum":"aeac4c5371a49efa6179d49abfc08e0487e8060a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-26-2023.tgz","fileCount":96,"unpackedSize":2890626,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3Y5TIiQDTAF8/J0RdeLWb6PRoNvhkPUHMj4gxyovIMAiAjJ0q6zfSdWlOT4DoCczzsVpMuKkyfIhaIZavmAc09yQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-26-2023_1695687893057_0.8856523631725917"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-27-2023":{"name":"playwright","version":"1.39.0-alpha-sep-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-27-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2032b64ee67d884abdf8abc83a0de4138e1f6487","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-27-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8rL6dElaE4HW/n0ANcLQ5KvyXKoTA8r44WpgosbnS5bzC7mHmvxIigPxCIhIKsQzWHopV1mbqRh5cmt5oFUp7g==","shasum":"bafaec7806ecd4495396a021fce6bc9529a67921","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-27-2023.tgz","fileCount":96,"unpackedSize":2890233,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6S58BVPamPo3bDV3M4QO+2nggT4dlRo/bIshYQNZufgIhANlh5gKQoOKVXZxEvx539pinloHRp2iKvaOeCMY84b8l"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-27-2023_1695774288936_0.9728422413027571"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-28-2023":{"name":"playwright","version":"1.39.0-alpha-sep-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-28-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"28924678397cb01001096fa4c2df0d4b46b73dc3","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-28-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-I0t+8AEga13Jx8UdCHZfyTkOYOFtySYwIZmgs9WTXwmORS+pdHNoXsAPyiqzW8dftj2ATahjnsHQOw6IF1zzdQ==","shasum":"e4b1f16833e573efae6d20d91260e97f1b761fbe","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-28-2023.tgz","fileCount":96,"unpackedSize":2889781,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHY3eu+Imyx4lI3XRKD36MjwCsgBUl7vObGJkvYzE7guAiEA+X+bwESnJ4Bsw0DhoaOvuVBSbEiOJAxVquqb84TJblA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-28-2023_1695860670198_0.3900075016855402"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-29-2023":{"name":"playwright","version":"1.39.0-alpha-sep-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-29-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"08e71fec5d7c3fbf3294146dfcee89958d850b48","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-29-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-fHShf3RigGEtEOhTRY4SJJOV+/MyG5MfHGTMQKnloLTFzLcyHmag1u0SNyuP0gNNTcuFMFO243A/9wstjhN6bQ==","shasum":"aa1c50644b718010e15dc1b17e41765eab3a3da4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-29-2023.tgz","fileCount":96,"unpackedSize":2885800,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl5cvN/OpK1KRniAbR9tVUDo6VUBYrIHHg9g3Xtn+kxAIgd0XTdY9euKpc66SqvlbRt4DjjsvvH0V859V0lQdpZvA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-29-2023_1695947096527_0.7055654619698624"},"_hasShrinkwrap":false},"1.39.0-alpha-sep-30-2023":{"name":"playwright","version":"1.39.0-alpha-sep-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-sep-30-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bb8a10216472c9fad671c147b3c69762dadeb3f1","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-sep-30-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-63bGkmCoZ+te9ZktLnUjwCI8SqryYIJ5p6YJguNYaSMsaeVScjvTxZVk0KpGZblYGsvePOgdPuTwwgxgfKU/dg==","shasum":"2953572d51edd34c977ef6bff590cd7dca074d65","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-sep-30-2023.tgz","fileCount":96,"unpackedSize":2886473,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICzdOWsOR7/IYmFNxUq03e7xOrvDoe7HPMXjcxmuouazAiBMFTHlnpAXAnjg2CA35qf94G0tKFLIeaXgA9GIgL8usA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-sep-30-2023_1696033413610_0.6390477354731912"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-1-2023":{"name":"playwright","version":"1.39.0-alpha-oct-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-1-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ac9d1ec421b572d6ac23f1dd169f292a1108e102","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-oct-1-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-ymHD+e4GI9cf9b+tnn8d8sLqYpGlNbiXbIUM02LX4JkV39mt9UKNLJgqIDCcXdqtfvQC8SIrxh7ot3Q/JJv1Sw==","shasum":"ff0f26e8f2c639e8c78648cba6fc27043880a1c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-1-2023.tgz","fileCount":96,"unpackedSize":2886471,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvgq2IdErzRWx2ParHAYpKkG9nMzgYznbO21c+Bx4wEAiBNqHgtDibaY0pP0ZzwO3i2FHiJ3GhqFuTciJON+WfWtA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-1-2023_1696120090391_0.6878382667981258"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-2-2023":{"name":"playwright","version":"1.39.0-alpha-oct-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-2-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ac9d1ec421b572d6ac23f1dd169f292a1108e102","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-oct-2-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-JWF9ReuywHzTN0rZLQ1MDCaftuWeGkfs0SFBl6rUPyz4Aesxlj60DOXrENvFkQAUpUg8bSE7xmOymKnJOWaPxQ==","shasum":"9230989b7be1ccd669b1565c06035595adc0428f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-2-2023.tgz","fileCount":96,"unpackedSize":2886471,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWtIX8TmMSCrQJNIpRukX33xspq6jQr0wDKB+LnQjgLQIgV0BcsboFoSJWIgVus1MAZzRZgqL8A2mSxAyPt7T70fI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-2-2023_1696206353555_0.6701375999763182"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-3-2023":{"name":"playwright","version":"1.39.0-alpha-oct-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-3-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2aca7fdcc2ec07daaabda888c03c68982fc42b32","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-oct-3-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-05+B2MDwuZD95j00o3Npjjt38eEQC1aQtALsO/rB4OlUsdYwy0hAsuHRlOOv3fspTVdWyUB+H74rgJH7JMXErw==","shasum":"cc98bbf0f6de8e1250fce0baafffd8e687e9d9df","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-3-2023.tgz","fileCount":96,"unpackedSize":2886471,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDsKBXR8Jh1hRt8Jiz4Sbg3n3D50s7FfFc/X0fQAh/KKAiAZX1Yk1kVwzZGRe1XVSmDFF0ZD+yMm51GTMp+qvSeXtg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-3-2023_1696292715044_0.2197380772432882"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-4-2023":{"name":"playwright","version":"1.39.0-alpha-oct-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-4-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-117.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->117.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5295d468ad4332ef63cf8e818d521daa0f407464","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-oct-4-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-8N1T6cEGYXp3XUqjku30hpKdy3I7rwqiHUBHhdKNVjDrPnKZNgS3d0mBv00SH8clF5Kj9NjC7qFjZCYovwq5Dw==","shasum":"1b4fc124cc24ef21ceac429330a45c3d4e5f6cee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-4-2023.tgz","fileCount":96,"unpackedSize":2887133,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPYRfFnVY+ck98Ne5WcWrGIoF4n8EXiLeR39lwvZXjfQIhAIjAB2m7/2wkXw4lu7j637/aYuCPYR6TS7wx8MNz/f9d"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-4-2023_1696379132152_0.5747627468192775"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-5-2023":{"name":"playwright","version":"1.39.0-alpha-oct-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-5-2023","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.11-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.11<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b2a07c26750fd4d81dad221d73e69c0e16b96f76","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-oct-5-2023","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-V8+KkKgel5OLRtsYyRv+yuPddpdIvTou5tU3fiFeDCne6Yu6epyFBGsYxbHj3tZDan+BQeQuEU8tS8ZBOOdr8Q==","shasum":"cfddf9412628acfa637cbeb6cb556a944c8d1884","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-5-2023.tgz","fileCount":96,"unpackedSize":2888849,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID4PCs8k0YLMEP8J391gZboxdEPagI4FR0aSOdepqbfdAiAnzmHg8nqBn5JK39cyv4xsWkOKzwlUWQQEZxFjMJ36UQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-5-2023_1696465515281_0.5810904300725543"},"_hasShrinkwrap":false},"1.39.0-alpha-1696536018000":{"name":"playwright","version":"1.39.0-alpha-1696536018000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/Microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-1696536018000","fsevents":"2.3.2"},"optionalDependencies":{"fsevents":"2.3.2"},"types":"./index.d.ts","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"293c85935a4794c70246b6206fa72633b6e902ca","bugs":{"url":"https://github.com/Microsoft/playwright/issues"},"_id":"playwright@1.39.0-alpha-1696536018000","_nodeVersion":"18.18.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-G+4bjs7K0YP7GZchCjyvQI/pV8/xvr9Oyt8Nwzynd63j6b4OzgXPpI2kZQxwY91bdSA0BUiS5y6LzzdLWeyucw==","shasum":"0efb15938540fb041b13aeadaedf44510134bb5b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-1696536018000.tgz","fileCount":96,"unpackedSize":2888856,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDflJYrN0XL+QEo+MdExyf6TX4b4fHGbBQTIIzAG9wmGgIgE9TBfCeguRO/EOOHtmAym/cbLf/FK82wUxWD+iI+yD8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-1696536018000_1696536211697_0.8946440315725996"},"_hasShrinkwrap":false},"1.39.0-alpha-1696547902000":{"name":"playwright","version":"1.39.0-alpha-1696547902000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-1696547902000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-alpha-1696547902000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"10e7654fd9e5847ac5f1dd5559253f2cf77d5feb","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-7qzMPnYPlbIE+mk8CxsFGxldGP93LBTf0jHKXQ5CzRaR7edm2GkhRH88i6lua5g6my5IrZ9LzjmthGecQmBTCw==","shasum":"826db8f18987a0326e99ff24787f22950b85d563","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-1696547902000.tgz","fileCount":96,"unpackedSize":2889032,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-alpha-1696547902000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVFmbTpmpRHSJhzQbNBmi+RfUb9XlEvFDoxnKMotaDfQIgXWm4rymRFpfE4VfzR56MhzTorG3ZBWSveo65n2YkzQA="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-1696547902000_1696548065177_0.054558793311050735"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-6-2023":{"name":"playwright","version":"1.39.0-alpha-oct-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-6-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-alpha-oct-6-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f856e3e4bcc14c50dd7736849f8a4b5c22627868","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-DOfIVCuHjYDSDDdcxrHNNajJFafO5iL8v3jBp2LvzG30OHfNzOxQUD+bnYCyOcK0feK41iqITUeIuRNYB0f/IA==","shasum":"077b3c9130f7d14e6567f0c242307fafc06ca598","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-6-2023.tgz","fileCount":96,"unpackedSize":2889028,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-alpha-oct-6-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwm8/0fXsHlxyRDf1tD9ZSShhhJer+GvrwXtsJDpYUmQIhAMBXTYPJyUOjJy0cUohE1u4B+uQXf4nOe5Q/OBzCLvAo"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-6-2023_1696551881634_0.145682509149762"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-7-2023":{"name":"playwright","version":"1.39.0-alpha-oct-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-7-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-alpha-oct-7-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-118.0.5993.32-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->118.0.5993.32<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b807c974c3f39843c27ed8411f219b741b40b9d2","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-gXDnwe61Kk4Kz/HmPlhhr7tRFuf99gCLAOdpFMr+ZtsIA3DrWtwS63QAHfXfGqE47d3vslI/UD+KoEr0jvBsqQ==","shasum":"6fb299eab66bbdbf9890127897d467817b006d60","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-7-2023.tgz","fileCount":96,"unpackedSize":2889028,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-alpha-oct-7-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmqRSUY0AMmS987cn2Uyp4x5nOfoXhik4Ayk7+KfnJmgIgKS+s8YtdOBzheeN6NZ2b1fgNKJqnzSCEhJL9APKtvxY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-7-2023_1696638277532_0.2461673496853798"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-8-2023":{"name":"playwright","version":"1.39.0-alpha-oct-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-8-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-alpha-oct-8-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e70b10ac2ec4fd405c89ad4a3589fbc1164837b1","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-xKlsc422ZNwFQWDdAiRwmVyOJWjVhgLxbp8e681PtvaqCnsGYvxi8atbQjF84rO8ub9ta0OFjVPmiipgzdwHOw==","shasum":"82f5756b36d0dfff75849dbc6d8940348eec51d1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-8-2023.tgz","fileCount":96,"unpackedSize":2889026,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-alpha-oct-8-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6lcok7e2seHg3HMSmy7T9YkbBWT7vnlfftM3QqWTePQIhAJdUUGFJ6cineRECEgiCeSlAHuJo4RIWnyWjddY+7nZg"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-8-2023_1696724895751_0.5829919338694762"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-9-2023":{"name":"playwright","version":"1.39.0-alpha-oct-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-9-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-alpha-oct-9-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e70b10ac2ec4fd405c89ad4a3589fbc1164837b1","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-84daW/tXP1iamM88atJFNdVgjPiuXiHutMdIMyNPHHiu7uTv83XjNkzjaVMaFo8RsVmq4gZ+dNqa1BDl6e6Bzw==","shasum":"aca8f1b6ba2b4625cdc212c32f0d768ca168275c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-9-2023.tgz","fileCount":96,"unpackedSize":2889026,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-alpha-oct-9-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCKCrLlYN+eIIxwpCH50tY6VgqgKIuEqd9UE5pxN+3qwIhAKM5OW4NlpWr60+tx0D07p6jfkHsa0ZLf7hYg4ox4nVk"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-9-2023_1696811132817_0.25657825701615766"},"_hasShrinkwrap":false},"1.39.0-alpha-oct-10-2023":{"name":"playwright","version":"1.39.0-alpha-oct-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-alpha-oct-10-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-alpha-oct-10-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.0-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"97c0894bc0c15c119895088b566bff4b29421426","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-JLE90PqclxuqoH6gvllk+ofnRuDukJxLmfaAo2NPMo9FEqzPLzyuOoxhiS7ZjKNteuaFEV2H4hqdxao5/mCoRg==","shasum":"7835feff104d98e95cd1d2835ec8efbebf0f4d17","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-alpha-oct-10-2023.tgz","fileCount":96,"unpackedSize":2888089,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-alpha-oct-10-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE14ZI3gSgiMJ8Y4kkznF8mAGUQAHU3tfNcRaUh+YW2KAiB6THDsHFt8PDTRdYZiWbJbPlU9iVoknnYDqc2kWR4A0g=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-alpha-oct-10-2023_1696897527842_0.7224833464544944"},"_hasShrinkwrap":false},"1.39.0-beta-1696976263000":{"name":"playwright","version":"1.39.0-beta-1696976263000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-beta-1696976263000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-beta-1696976263000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0d168dc8d0ea3a3b14e27833b3187459c121ba46","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-AnDuOl91O2mKX6RIj1oIK7GjUjkmTFCl2x+qtcq2ztSz8ZUFLpQTOmzUgC2W7ETjPchdd1lA7eMO9d3iGsxLpw==","shasum":"9333df8bb25cdd7e1afa723a3bfe9166b0c6ea62","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-beta-1696976263000.tgz","fileCount":96,"unpackedSize":2892267,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-beta-1696976263000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC38t44EI+4ZTN7iWAMSDO8N2NsT95ehzBT86RuitQvLwIgCwvM78xTzwZMa5mF7zcwtrH/QTFM7UGnVCWenS5ihlQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-beta-1696976263000_1696979643321_0.12794761788728093"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-11-2023":{"name":"playwright","version":"1.40.0-alpha-oct-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-11-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-11-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ebd0ff9422fb24bf7bdd651ae883b66792ecced9","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-k/GewHzxGz5vHgHKNhO4OP1GZJoRIirO9W1OfyLKx85xnraZ6KDtWjOzcvjVQxGPeW/m2V9wFSMlLsXomkp+5A==","shasum":"a5bfc8af4eae7eea1692b2fde6057f8523320cf5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-11-2023.tgz","fileCount":96,"unpackedSize":2892265,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-11-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEvPLoxrTsIMQLKYdvDtzH0VI2JdD6CteAulUV22tjnBAiBscKcSL2HYlT0vcgMPOrKnW/aZDEWKto/IaXRcVg81+w=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-11-2023_1696983925554_0.2558444497799488"},"_hasShrinkwrap":false},"1.39.0-beta-1697047150000":{"name":"playwright","version":"1.39.0-beta-1697047150000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-beta-1697047150000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-beta-1697047150000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5313514995e775f8c916914daf8e7cd37d6614fd","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-mo+i8aBYIsEa6ARavpaW2BKH6m5X7hDADJFNjCIKNRrDf852AMVENLXLK8XfbsGUe+XUuHY/BMfs6bYVszSseQ==","shasum":"e30f56496f95331b6e2b1c59dbf3f6eedf00d972","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-beta-1697047150000.tgz","fileCount":96,"unpackedSize":2892267,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-beta-1697047150000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcF0CNYxQdUiR9GVhBXeoTWs9GzXEtvfjXYEhiK+75xAiEAlzVQc9NQ9oO5929YQtqrAhgsTRxRprCKt0OZCc5IlYQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-beta-1697047150000_1697047355330_0.07000699663688126"},"_hasShrinkwrap":false},"1.39.0-beta-1697048429000":{"name":"playwright","version":"1.39.0-beta-1697048429000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-beta-1697048429000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-beta-1697048429000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ae31f58b438a77c89dbbf940eabf3bdb3e5f0e2d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-ZlhLytmrragEBMRTHERbFJJaBHct3EXL0BcPArSRp+GcQ3ynX14EVnqxSehWhYvqAliwmG3yVW1hpXkIBYF55w==","shasum":"e4e4e20f64aa776caea6c4ba9afc12747f3b674e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-beta-1697048429000.tgz","fileCount":96,"unpackedSize":2892267,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-beta-1697048429000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgq99fNlwIBhIAni6pTUO45TsYgcTMTXA2t5YuP28ieAiBoBindI5OEOYOgiQmL3XUHYlCCNQEnoc8szq4ihuvPmA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-beta-1697048429000_1697048632738_0.006691160286412812"},"_hasShrinkwrap":false},"1.39.0-beta-1697057899000":{"name":"playwright","version":"1.39.0-beta-1697057899000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-beta-1697057899000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-beta-1697057899000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3049d99bc8c76799817585a359502368bd6ba366","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-gnbeUceF4v6giI0opsIh8ev82CNxr5p30BtSPJO1AP1npAsb312vvLRsPjpsQgez/Cz40Cf+AKrDebzcm9SrVA==","shasum":"c4ba6d489d087b0f3684ec1780773f56ac6524ba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-beta-1697057899000.tgz","fileCount":96,"unpackedSize":2892247,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-beta-1697057899000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACOlXu3mXACvkRPbFEfW3wZrW4J4/gEUjC8br6BJxsRAiB9pRiBJV8L1w0EgO5/e7bKtLIh43iLRdkv20wYsY6KLQ=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-beta-1697057899000_1697058047295_0.07278462944597286"},"_hasShrinkwrap":false},"1.39.0":{"name":"playwright","version":"1.39.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0","gitHead":"3049d99bc8c76799817585a359502368bd6ba366","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-naE5QT11uC/Oiq0BwZ50gDmy8c8WLPRTEWuSSFVG2egBka/1qMoSqYQcROMT9zLwJ86oPofcTH2jBY/5wWOgIw==","shasum":"184c81cd6478f8da28bcd9e60e94fcebf566e077","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0.tgz","fileCount":96,"unpackedSize":2892209,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKrcfSszQxP/o+6UtEa5rzgxckEpYI4bLALmJT1l8zjAIhANgwTmnlrRRZbUzwVkjd69OxsI+GABvZChrnMq0Iokvr"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0_1697062454838_0.7737495401898344"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-12-2023":{"name":"playwright","version":"1.40.0-alpha-oct-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-12-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-12-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"393bd36e0a006268ddd78eba6d1dd1556f4aded4","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-pKX8lVNX7xFli0eSSLn+nMg9caOfxqUuyU+OoY2Uy/8BkzkvgweAHOwg5GdLFuWxqn1aQ6p3oiwoxYuPzeDh/g==","shasum":"4668210f5b317a8c98d0b5135fc002deb75c64b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-12-2023.tgz","fileCount":96,"unpackedSize":2892245,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-12-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDsPzfOeNtNxA5zQrqpfG+o4KNITqc/wzx9NUDJT0zmjAiBfhTeiBHfQMGLg/saySCZWvnj87DwwhAK1xT56e0ooOg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-12-2023_1697070204222_0.5273991969753709"},"_hasShrinkwrap":false},"1.39.0-beta-1697093675000":{"name":"playwright","version":"1.39.0-beta-1697093675000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-beta-1697093675000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-beta-1697093675000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a115439b47d8e762b17b73876857c00aef097f8d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-CKUeCN+vK7PfM7p0V/2RbHQBL14/FjsdF8THAm0iDDuBWHCnGzkLXlmdiLYy6jjkrtnCujMxxVN+109BPLCJJg==","shasum":"1016863505040bc1a8a6a8dad8cc27fc4fe41c76","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-beta-1697093675000.tgz","fileCount":96,"unpackedSize":2892247,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-beta-1697093675000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGU6h4bqQOcW4ITaTlpase9SrtxvXpNuR+llp/lolrzAiEAz/ZEr2w0eg4GVXgShanYDjdnw8aJ/wpGbHDw8ra/xnI="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-beta-1697093675000_1697093815790_0.020238599296468207"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-13-2023":{"name":"playwright","version":"1.40.0-alpha-oct-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-13-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-13-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f8a30fb726bc35d4058a2d010b2ed5f6ca2409a3","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-vRb1GUr/39CH60yN0trmTmIr7SmjizvES8ATnn0otg0AU6oOuy8VrPO0cZr48fbllz/O2IPMmBCiuez21fKgQQ==","shasum":"87db66d3c5b63fef1f281c3ad466cbf69f969145","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-13-2023.tgz","fileCount":96,"unpackedSize":2892176,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-13-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXZdfKi4lVOIJ0JQi0Lgd/05LYv0yuKbGp03oYV88W1AIhAOOWshTuVhQgaxl2tNa6s+mhqE5CYGXq+ktfEjeTWzDP"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-13-2023_1697156740158_0.207842779373008"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-14-2023":{"name":"playwright","version":"1.40.0-alpha-oct-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-14-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-14-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3e4a1e89a11c613fac71a110ece383c31dedda78","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-ke/AyWifrdoKvx36jTH2AV/2I5kXCaJPyl+KpCLirRsZLeMIGQ4OACJQvcBUUjIDqmlY8dpzYThST+xAMb1n/g==","shasum":"693522bbf8c05a3863b5b75bc6706165bfefdd8a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-14-2023.tgz","fileCount":96,"unpackedSize":2892176,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-14-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEs+sUxZFJkJJiK7L/rtyfHXpmtr0MHxSsKRbpr2AQP7AiAHCe3JGuLg57oUBqTulefo12hX1CYj1fjzJ456+rwIEg=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-14-2023_1697243038084_0.4475631871819623"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-15-2023":{"name":"playwright","version":"1.40.0-alpha-oct-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-15-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-15-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b3bcf1c75a2e8d414fbadc64ad896e1c2b5759ca","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-/UANDegwOBsSIBtMaOno4Fe2/sruM/Jfbj5Akzy7e65yKmUKKno7lVZdwfcBfVjxPtxkjH8W0ngQ0gQAhnJ1Xg==","shasum":"e1354e74fe54395a5137c450a827a858798c0496","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-15-2023.tgz","fileCount":96,"unpackedSize":2891391,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-15-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgjbJ2Mpdt9u0DjQga3hXmidV7nOH3kSAC4PfdUFhnLAiEAwS8e2WxAgQeEi46aRjbeHuaQAWh+T3rjlt8hJIB8bGU="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-15-2023_1697329600046_0.18413250025584138"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-16-2023":{"name":"playwright","version":"1.40.0-alpha-oct-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-16-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-16-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b3bcf1c75a2e8d414fbadc64ad896e1c2b5759ca","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-IvGN+H9LznuVxIFjYYgAeOCuCnaT92g2x1VEPSUaZJjMuHzt/AbaQgOJd3RTj60g7UF2Vx2pVvbTF0UFMEjkHw==","shasum":"1ee6d0610d4a643eff55e402043130281ae05fe0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-16-2023.tgz","fileCount":96,"unpackedSize":2891391,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-16-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMioUEBa+E9tJ9RQCrU28Rggw96kkUr6EAGdbpkyCpQAIhAM/vRPLxE3G2hZUxTiNTP1KjZrQxn4nEuhuxp8dMS2GX"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-16-2023_1697415970302_0.014899423354558294"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-17-2023":{"name":"playwright","version":"1.40.0-alpha-oct-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-17-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-17-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4e845e7b1dc1f18511eae105e6dea9cce942bd28","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-hjBZs3ebcEkn6vdHir2RhBrdhJnGYKz5PjW29MCzgJs8nIWOxL/5sEhG9hFg0Eigp4w5/Ydwp14mKSpPD54T1A==","shasum":"87b1c9f2ffe77bb0bb7f31f8e29a29e4df50c973","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-17-2023.tgz","fileCount":96,"unpackedSize":2891345,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-17-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWDNrW0nlSxmGV4xQgVz/AFh/6UIKglP/wQSGvTLtKGAiBuk6qsq0nn7ZEFZWw2AGplAbi7hjvdScXgqHVXc66fig=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-17-2023_1697502307552_0.4745421490852728"},"_hasShrinkwrap":false},"1.39.0-beta-1697575425000":{"name":"playwright","version":"1.39.0-beta-1697575425000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-beta-1697575425000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-beta-1697575425000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0594783ed68566088398a56c3ffe0c244e608c91","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-3gEuukFDxLtGQG9KOg0n78ElKF79aJGt+hwqJj3KQo9VWHgRcCALPfn+FQHxJvaYa4bLlvgQ9MNR3rGQ71kLmA==","shasum":"b0c1865f841a8af70ef1211a13276e928283f009","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-beta-1697575425000.tgz","fileCount":96,"unpackedSize":2892349,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-beta-1697575425000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAd+WlBpIqlCTUPWAXH14mNIQqpA452hIMd2knEP62FaAiBdvi02kivPSxSMJwZkL3PkhICWiTFmCp6AqdvZFc88Kw=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-beta-1697575425000_1697575585911_0.8150164815481598"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-18-2023":{"name":"playwright","version":"1.40.0-alpha-oct-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-18-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-18-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"091f6883f5524c876022c77b4fdc52b583b4c7cb","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-3e/4FFEFfsZsaZUQKd0uP/ztopMpCcWrPeynXTg8zZTZxxSuqP7bByJF/glNsoXwvd5fiYB1gbxdkeTNkcWjVA==","shasum":"68504b956a56eeaa5421ca3aadb9612b2d7f8aee","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-18-2023.tgz","fileCount":96,"unpackedSize":2890752,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-18-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOGU4jW83zXs0KJAcmP2KNSZ6XouGSmV8F53MdXmHfZAIgCMGYuic31p0QpdG1XnktR/QYF+cBj5l8/hsjgRYq4J8="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-18-2023_1697588719566_0.6406111185079084"},"_hasShrinkwrap":false},"1.39.0-beta-1697610523000":{"name":"playwright","version":"1.39.0-beta-1697610523000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.39.0-beta-1697610523000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.39.0-beta-1697610523000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.9-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.9<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2ee3aaa0f5d1500f576f40004b36bda3263be94b","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-DW8n8oudnSz9dKJV3R6CShLz7F8NhFFzXsM1t0CPOQzfj6HNDHBNDUfu6bloIazsD25LzZDdiYVDQYXarmEFEg==","shasum":"0c6918eb51bc000e009687dc1eac4e8e7d0367c5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.39.0-beta-1697610523000.tgz","fileCount":96,"unpackedSize":2892349,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.39.0-beta-1697610523000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqcXO/8pEl83Tag2rdVszdWbu/LnvvLJhaVDTagj8FmgIhAIzdaWkTzL3Rwz52ghqzuueJiVk1UXTMKBfgI+zCG6jP"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.39.0-beta-1697610523000_1697610704191_0.8729039373903198"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-19-2023":{"name":"playwright","version":"1.40.0-alpha-oct-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-19-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-19-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.21-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.21<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bd58c0d5d2f459f5c8ed1e370de8a4ce458a5c91","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-3nlzIDQOnLeA5/aXmMrq9OJrw7HpmVPXUULfyj6DHimYV7bfoU3QHOmxCLaBldc2MOv0Vblah8v/WumnwmRJvw==","shasum":"7b7f3d8cf413e6f7c6cc02e63624861fba4a95fd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-19-2023.tgz","fileCount":96,"unpackedSize":2891025,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-19-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvfLx2sHudz8Ky14YLktep80kfDoAkXIZtnVeY9MKpCgIgOfvowM8emb7oGGsjfzyHULZ/yugRrwxh+Oh1i6KbXdQ="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-19-2023_1697675091001_0.10141345557590009"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-20-2023":{"name":"playwright","version":"1.40.0-alpha-oct-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-20-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-20-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d003945a7b01ad24903731e850fe5db97c4b8ad1","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-tRN0GszikX0FggJAydpgtX4Lfaz8K4XWvo6frFHe7vzjsNOOyqIh3O1szOJhjHM6riq+M2meMvXMNm+SP/j/Eg==","shasum":"342441c29760a21d9b875f15eddfbdafc36389f2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-20-2023.tgz","fileCount":96,"unpackedSize":2891423,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-20-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVEwzhdMIkzflMy0/nhM7N2+JLHBVtFIuMYrWEX2d3nAIgGZfyotaglCSm0ISymsLAPc9R75lJgnGrzZlrsnL0GLc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-20-2023_1697761507817_0.829540006524407"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-21-2023":{"name":"playwright","version":"1.40.0-alpha-oct-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-21-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-21-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d67515f6c18f136b1e72d9f3b31f01a1add5f736","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-YNKxecNfiHOtRXS4VUgGvg9ODo9N4wf7nuJ2FTZ0GGETc+kcOx3DfhMxGXUrFdl2n2N+QgO8poAnolas1+/vsA==","shasum":"1d2727a3403b73d125d6396cc9be59370b1188e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-21-2023.tgz","fileCount":96,"unpackedSize":2891736,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-21-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE2vapNdUnhOQ0L7lnuEf9VACCuq0rwwNyYvPBvGH5AKAiEA8RlNXWEt8H35sSbGgqnpNU7ceNeY1x64tuVfhtYd1H0="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-21-2023_1697847909922_0.5051834091500169"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-22-2023":{"name":"playwright","version":"1.40.0-alpha-oct-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-22-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-22-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d1d5fc67dc684a5d4b682749e59bba8cc0ad14de","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-+KkGdUkJ8j/ElC+YZhItdH/1xnm1cH3iTnnvKD4AhzUL0Jom8BYxBeCxzjch5u2PXg4fa5sY6r2laRn+NCOn6Q==","shasum":"c1830e08a00ab0146bdc7dbfd144183138e07d9e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-22-2023.tgz","fileCount":96,"unpackedSize":2891736,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-22-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSh/MjoQLDP4ypSv0olPlEkh7F7bQNlbxGu+2OoRuMlwIhAK1kQx+UFEejh/h0x7cgZ7fxaK+zBTn6xopokgZ7/qY/"}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-22-2023_1697934442314_0.4575034540853766"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-23-2023":{"name":"playwright","version":"1.40.0-alpha-oct-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-23-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-23-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6d7d37061d32280160894ef8d6d1fced1ff58775","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-/klNjSQSH9Vg+I+E0yvcW5yzKwz8A0PnjQW3Khlixhy3QwwThWjIF7+nBQt7Zp5JbKNP/g+6GNCiKVS/LjmnQQ==","shasum":"a26395eeedc457396bd63cbdb648a6e93849f91c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-23-2023.tgz","fileCount":96,"unpackedSize":2891736,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-23-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCXbhWjtRA2thRMu3fmpD+rDgmFTJJC4Q0hDNTNpGAmAiEAxs2wm+pWgDH0L6PBDNoT4UbYXVnzLVe4rC90ScB+0jw="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-23-2023_1698020737321_0.9750344644945093"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-24-2023":{"name":"playwright","version":"1.40.0-alpha-oct-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-24-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-24-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fe7847b126ce2059d02fbbbc1f632b04fdae3ef7","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-EDXtA5/RSWaKNDDiZtOFrbNlZZvcAjOCIa9QlVzBQ1Vq+NFlgiM1M2qL6AKzYUzIM1osNT9oZyCnThVJqjMPcQ==","shasum":"5e6f50f4e760e3ac336a9af4881fbe34550d9b53","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-24-2023.tgz","fileCount":96,"unpackedSize":2891789,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-24-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgV2yB4iVdQZrBgr/qd93udVbHPfWFcDrAcQThKweYPgIgH7KBs4BWKs/XzGlXnA2GtEEkCOHOUy9LYaCanOo1qKE="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-24-2023_1698107107680_0.9736596777732911"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-25-2023":{"name":"playwright","version":"1.40.0-alpha-oct-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-25-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-25-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0bb9f7cdf7367185c89a24305ca21d0768e5d54f","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-umTJEAk9nh9ijEpTGZ32CejJwPoxKjU+FoWdW+RBk/AlHw5nKF5tV9ooa6r2bJ4FsU7uxKy85pHmhRAg6uZI0w==","shasum":"665b0da2eb1152a4e250ab8176c5287420486ca2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-25-2023.tgz","fileCount":96,"unpackedSize":2897386,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-25-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwF4rpLQQvT+mJMCvKI4mPOFhupW7qDkFDrUIIU0NwiAiEA9omhvSxr95razYBfHWIbTRfuXrvSTK2dpuYj1K8Bfso="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-25-2023_1698193484170_0.5598232771481779"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-26-2023":{"name":"playwright","version":"1.40.0-alpha-oct-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-26-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-26-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"47733b04fbc3d674d5a629097c72f0667f7eb189","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Fj3gDf+wMfcW2Qn+05FCC0c4ePmSXxmT/oM1hQd6GN0q0jkup2O2Zcc3mJV9IpvS2wPrx9nUnWmkdgfbI6J1RQ==","shasum":"acb5ea504a767ab1a481200238b1f2f0b3a52d59","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-26-2023.tgz","fileCount":96,"unpackedSize":2897386,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-26-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaHR9Oyp5HF0EajDeX2/PPeXsdIES/Oc4PeM3nVXQ9nAIgDP8L2N5G28lxKtuP8vzKn2jDPDVLfq8TDG3CTTsN1E4="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-26-2023_1698279874483_0.4607056150752611"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-27-2023":{"name":"playwright","version":"1.40.0-alpha-oct-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-27-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-27-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.33-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.33<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"54ebee79f7ab81c25f834f3fb1a7915f64a6294c","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-MY2qm91VOxgiZDWCY2GPBNC+q4OsElD/jt4v8RGXrUCorxH26L58N0LKYP4s+LrzgP20WuXRVCpdUYiKafSN6A==","shasum":"10fd65304145d33da70a986561ef0621ea5d589e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-27-2023.tgz","fileCount":96,"unpackedSize":2897869,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-27-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd51dE+Ya5eD8vhEmDv4dOI0Ls9tMFZsz0AlLqSpS2wgIgXsRjLee2MK3q8w+s6UuL7AQjn8a0qssoVXwgghtR5oc="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-27-2023_1698366267023_0.4478910246861372"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-28-2023":{"name":"playwright","version":"1.40.0-alpha-oct-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-28-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-28-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.59-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.59<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"462e70ab82fc309099b7b5d8d1c844d34fbbf5a3","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-KEoDiEAw4oTTWF6/KqmdcAZiBmn/68pbiXeGkn6bmsBm8mnwbFlpb9pK4z9nD5m+nxeqIHH1jWHSIQ3IOlakGQ==","shasum":"3190df41cda510d3368137302177b6b48e001e65","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-28-2023.tgz","fileCount":96,"unpackedSize":2897869,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-28-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFw8L/F4rUJmvorSvkDgXKzhYGAci6hJ58/pbPB5FH8rAiAtQHYLCAbTPCzf5rWAHmFucipKshKbfbPgJyB+QgpaQA=="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-28-2023_1698452678920_0.3301309012775724"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-29-2023":{"name":"playwright","version":"1.40.0-alpha-oct-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-29-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-29-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.59-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.59<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1a34b6d2111fba49956141905235964ec9b88621","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-T4vkyAFjEzCFrGYQJOA3RbBN1hIQc3CD7XKjRWCuzcNscYW1pdFf2vVnhjeZKNNmu2VnK20b4jvATA2TzcoLnw==","shasum":"757cdca95113a1587433c547e3bdef9803f25ff5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-29-2023.tgz","fileCount":96,"unpackedSize":2897869,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-29-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIASroSAH7JUj1vtM52Xf8Eih9XZ0uIUJZFq0+wLr/Q3zAiEAyllbn4aQSzPRQbUmHh2AYyl6ZROPtK56a+cNqueQGHY="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-29-2023_1698539202552_0.38392098165480393"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-30-2023":{"name":"playwright","version":"1.40.0-alpha-oct-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-30-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-30-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.59-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.59<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1a34b6d2111fba49956141905235964ec9b88621","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-7OBMvA6YKFdyAsJLvUKtz6rFEtgzC+EbouCgAobKJkLH7Bojj4C/Q7Dz6JOOBlIABpRhPM3YRKE+IcWU//XyRA==","shasum":"9729059a1cf4936b89e017817143a52ae802b963","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-30-2023.tgz","fileCount":96,"unpackedSize":2897869,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-30-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyb8coUDmmzGsIvdJ2AIB7lxceXuuPfpclhvTBbg6WCAiEAnZhwEi+Mw7S3qR1U7qKLtxXM62c1Fgiui5wXT0KVBFo="}]},"_npmUser":{"name":"aslushnikov","email":"aslushnikov@gmail.com"},"directories":{},"maintainers":[{"name":"aslushnikov","email":"aslushnikov@gmail.com"},{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-30-2023_1698625518325_0.8156338985922724"},"_hasShrinkwrap":false},"1.40.0-alpha-1698689075000":{"name":"playwright","version":"1.40.0-alpha-1698689075000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-1698689075000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-1698689075000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.59-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.59<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f620828818770231b59d65f626fe98b551e19648","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Na+ekYfskm0QQYT6FRnMs0rvItbRAjPxT7cD9mhRriF/H3YHZkWqn5ujgbtpWsTRFnS2idy+69c0ZZ54IwfunQ==","shasum":"311263e71a6cb17e2ea9c3efb60ada9fd62a665f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-1698689075000.tgz","fileCount":96,"unpackedSize":2897873,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-1698689075000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkGbxDnX2bT96No9SJa8abiCST4Vax/Fx6dEgaaHXUpwIgJByrWju8i8INyueWbgUt6D1i2maEel+a5A31w9e9t7Q="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-1698689075000_1698693583385_0.23967931104447437"},"_hasShrinkwrap":false},"1.40.0-alpha-1698699804000":{"name":"playwright","version":"1.40.0-alpha-1698699804000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-1698699804000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-1698699804000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.59-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.59<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7bab19d807e1999e521b8e10fccfccf34cf2a741","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-/JMs2DHY5INxbHO7c5NHlHFuniq+PY3IiyOAbBSHdR80JzjGbbvc8g9nqBhSJut2BQw32QEwJ4AL5B4289NLPw==","shasum":"026b31a93661bb64d3a9df35e285fde49ba5cf8d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-1698699804000.tgz","fileCount":96,"unpackedSize":2897873,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-1698699804000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4Hk08wCP3iLuuIykU7s3JLDzTECG6g/vf5Qoao5IbgAiEAugAR78zS0z0R6l3snH4t/XvtiVkMd1+tzbdo/BfpuWQ="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-1698699804000_1698703191694_0.35315125799395597"},"_hasShrinkwrap":false},"1.40.0-alpha-oct-31-2023":{"name":"playwright","version":"1.40.0-alpha-oct-31-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-oct-31-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-oct-31-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.59-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.59<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c3b533d8341d72d45b7296c7a895ff9fe7d8ff3b","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-7qbWL1Bpf9S0JbLYD/AqCvdiWQMHJ3Fag3eXexD9EwSLjnN2qbuy3R7N6UZG7U6YbUeM0jWBEHUNZFkiCUxm6w==","shasum":"c220ce286447df63505317d0ef82c37084b0424f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-oct-31-2023.tgz","fileCount":96,"unpackedSize":2897869,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-oct-31-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc54EWEiR+RfKBlIpBo6R2ExV3/YsMZLPjfEhqlBQbIgIgCR1SLg9Dzmkrqo1VY8CbmIdPwLUV7T8PwW2/udcfx7U="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-oct-31-2023_1698711922362_0.11172200973428792"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-1-2023":{"name":"playwright","version":"1.40.0-alpha-nov-1-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-1-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-1-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.59-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.59<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0c4de1f4ce869af86c99444550c1fcc207fc6b3a","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-8eSBI6+khrG12jT+S8m4qEtvNZA1c03OLIROw4NkgUnKlOMn7KbqY2CN2J+DjFxfcC4ELkcg/TGIwa7DShJRCw==","shasum":"d57ed69fcc32e4545d1c3ca0f099d5b403a54d2e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-1-2023.tgz","fileCount":96,"unpackedSize":2897867,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-1-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG07N+NUfe7iUUwtpeqUlCakmX4zcFmd8w6VBfKc8GdvAiEA3ceFcMaUwxkt4ULhHNIaMzJAMmZTXnBvL0Jj9lHgr80="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-1-2023_1698798419261_0.4189897380736296"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-2-2023":{"name":"playwright","version":"1.40.0-alpha-nov-2-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-2-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-2-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-119.0.6045.105-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->119.0.6045.105<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"817a130cdc71140acfafb3aafbab7f3e267a9f08","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-El/VRQF0VSLbSlyq1OFk4tTWf4/CCV8gcKJaKSWScsrafUqb9Mql72CT074uhmwhP9uypt8XVcyJYv5sXWExNA==","shasum":"edff9b6e01fdd5d6b23c66dd9ebaf29f168ff81e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-2-2023.tgz","fileCount":96,"unpackedSize":2897869,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-2-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9j1irhtp7S2uhWrmmOyfaJgwhcoUuesWsgc0NxK2ssQIhAOJ2h01aiM3FbYQmAkeYx8l51FpLmB19elZrHghwgxAw"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-2-2023_1698884725691_0.6629635164764205"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-3-2023":{"name":"playwright","version":"1.40.0-alpha-nov-3-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-3-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-3-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.5-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f9c4955fe812aad3e73c452e2bfeafc814b76dd3","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-xm3zbpf6ve5yMeAHc8LCmcPuGrUYZ5THz33aKV5YVgTIi11QnQOw2EmApNeWzNHyXlHLnPWDymFuCUFF4jKCaA==","shasum":"1840396a819953212bb90ff6da84b37bc5f1636d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-3-2023.tgz","fileCount":96,"unpackedSize":2898182,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-3-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxzyX9J1dNM9e0BbcpngDQJYcr3jc/Kk+bS6ILVUSQRAiEA8wi64v25X0fHtAo4zYP5vzWRI6mC94M9hVQwZhMwhEQ="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-3-2023_1698971075348_0.7341965020675627"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-4-2023":{"name":"playwright","version":"1.40.0-alpha-nov-4-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-4-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-4-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.5-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"53a78a315e15820de82524810e2f77b156aca9da","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-YkfCV7a8HhnyaXq6BCuc40N7D26q6px/1PyrEdZmC9i6NsRAomCGLLe7IK1hieAKudiYgnUk1enUajtP+5ab2A==","shasum":"c9bcaf4c0687903350fe184b3252d7d4be3a05cf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-4-2023.tgz","fileCount":96,"unpackedSize":2898968,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-4-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfq7kO2jFmpP4do0/T1ChLkpOPy/OXX4S7vZHG6wV+qwIgPc8pIv5uwLQ/L615txxRhs5FL0G0HJqWeaGeLywmMHo="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-4-2023_1699057504346_0.5821080007229054"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-5-2023":{"name":"playwright","version":"1.40.0-alpha-nov-5-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-5-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-5-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.5-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"53a78a315e15820de82524810e2f77b156aca9da","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-PAIsu+QTfB4GUssBKl5gDBosHgkWsk8N7ESj1vejlzLfohndQmBjfRjBsV++ocVnm2YqH2c97dL4eq8sjCL/0g==","shasum":"0cee1ee3a2c9f6963a67123b2717d3d133c383f0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-5-2023.tgz","fileCount":96,"unpackedSize":2898968,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-5-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJgrKjzj1Vmt3QcJz0V5vVo3jAmLPrYdcUqo26FQbM9AiAKvHDKinSPtFuC7vSn8JiKWCCmpRW5+Kr1GFXHQzyQyA=="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-5-2023_1699144044147_0.3322290972104802"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-6-2023":{"name":"playwright","version":"1.40.0-alpha-nov-6-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-6-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-6-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.5-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ffd2e02aa3ba2cbaee8e9de01540b6ab66f1ce3b","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-JW6+b3u1/yfLC7N+WCOAEq2HjTSZAM8y1qNULouGRaUTvv7YBURc1g1qumRTxAEVFcBvMOIyZwrc2F/bn5qb8g==","shasum":"6c99b99d93138870d824d90d5f2125358206237c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-6-2023.tgz","fileCount":96,"unpackedSize":2898968,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-6-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkbVSgoCyVuVbI07twc58C4PnfInmJayqFidqZfa/7fgIhANrsuusuAH8y1BQFQ16G0nq3oW/Srs7UdPiNrSIr7p9h"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-6-2023_1699230328530_0.2967848830767419"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-7-2023":{"name":"playwright","version":"1.40.0-alpha-nov-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-7-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-7-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.5-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-118.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->118.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"87787dcc7deb5678e9ffe96b34305e2392cd3a63","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-t0tfFmLsexdoKsO9WiQsvgOI2J7QTJHb0NSe/gVtU3/XJ7tr1293a7ZkRvdKUMN1bWPSGluGrgjHiMih8bMdsg==","shasum":"9a63d508109b296632a847efa0721021de306d1e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-7-2023.tgz","fileCount":96,"unpackedSize":2898968,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-7-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxXiIq9GNHaesDIDJs2EhHyQouOatPSpxvnKqgEn5lYAIhALgMlP2GttN6bqiLTmKZbnyEIC5ujfHutJcqXvlWzjgq"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-7-2023_1699316723693_0.8608553733748705"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-8-2023":{"name":"playwright","version":"1.40.0-alpha-nov-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-8-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-8-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.5-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e788c711c6b482a4b38daf0298a110d9d02cddb7","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-XPVzP+nIq06MbvuOqAsfg84egialHlcXUCP/RCvOxIoEIQ28RwX01ODLisZDRXnLJSm+64oXqAuTsb3DeZPAjQ==","shasum":"642d24395eaf2b093d21cd26b7df07c37d570cae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-8-2023.tgz","fileCount":96,"unpackedSize":2898482,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-8-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjOb9pLpHvXtC+toIpEF+FIextOrfPWRF2IsYhnvC3QAiEAwwVolgKxWvlogklRX9VVtQ81rRlDJTeWkDCAwFkComQ="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-8-2023_1699403068919_0.5546883679173882"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-9-2023":{"name":"playwright","version":"1.40.0-alpha-nov-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-9-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-9-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.5-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5f527fedb1f6893219b69d735b1a9cdd81ad1466","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-hVoUNwX4PalOMHhO3uZ5nuQAM0p64GpRJAG5TOj8T72djYhNp6BUf8sYd0oDundEFFA11IWa+YZ0DXzc3cvLcg==","shasum":"c15af19f5501cdf742363f7954519b5b692bbe50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-9-2023.tgz","fileCount":96,"unpackedSize":2898482,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-9-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBVp5b4lM6LKJGsBzEiP9E8nS+SLI9+xO9MhKNJruXndAiEA1zIz7Icn3kCmqS3I9ySTrBrN/c/rCaVjFtQJHBPlgqM="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-9-2023_1699489471188_0.06329511591247572"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-10-2023":{"name":"playwright","version":"1.40.0-alpha-nov-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-10-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-10-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9b1b1e02ed3a2b3337d40febd948a5f06da67967","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-VaoDBP52F4Uh1/KJcGJL94RhKhpvbb2VT7skxufeb2Vlrja95bvBnUAxaEjU0wMGc6U1L8WSX9y0npb4ruLMzg==","shasum":"d695daf1ccf552c31f5daae84b67da7805901ffc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-10-2023.tgz","fileCount":96,"unpackedSize":2898486,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-10-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH1j1XYnY2Ow0mWWdauche5JAHxdFhlbuyJq4hJcuBxxAiBeeH7DiMph9jK+vsR058y/FvhyioQHSKppyY6Hxwlm2Q=="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-10-2023_1699575872637_0.7128427942232509"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-11-2023":{"name":"playwright","version":"1.40.0-alpha-nov-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-11-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-11-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fae5dd898a523d61017a8a263f84dd415ab30e5d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-JCIlJzmUPN9wAth58es99PChSjAIrzOoBPMez09XOgNO1t35fCf1xwyeI9SoWCa++9W19Yaj0WcouYCPssmQBw==","shasum":"9c1f6bd0fb1274363caccf209d33e65858ae2235","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-11-2023.tgz","fileCount":96,"unpackedSize":2898486,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-11-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH9LyA0UMWY7ZXK9kW1Rtl5tVHxuwMeWRqxMKBxz35ZAIhAMKk92F1lMZpMoM0my6IyTotdCh34hzChgsL05xDCl4+"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-11-2023_1699662254014_0.6342215136243827"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-12-2023":{"name":"playwright","version":"1.40.0-alpha-nov-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-12-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-12-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1b3349d0913d330c7ee4d9777af693c15a432e07","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-0eNTXDr10OrOfelqJxUpu0+ofU/DoriNQmawmzvqI/p2RS+Gz/Ke8smgmPy6O5mnpLQ+foRnRZAOunOCEFPSuw==","shasum":"4d555bf1b27be2fcec49791a564edc08049135bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-12-2023.tgz","fileCount":96,"unpackedSize":2898516,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-12-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICYqM2xyeps2g5RPYiFpqVYbKsv3p9GaJsUZTajYcq6OAiEA7uzYJA+31AWDAyGCb0chK3y4erSKylk27PhLxJM7du0="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-12-2023_1699748858945_0.574069594010822"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-13-2023":{"name":"playwright","version":"1.40.0-alpha-nov-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-13-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-13-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1b3349d0913d330c7ee4d9777af693c15a432e07","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-/jHChcF6JXbFaL1YpZvNlXaFDfCJiXPyzooNo4TTp4yUG0vtq0b7r8jSOwmC1AcByIr4tIYkC0nOjn2TjvPlYw==","shasum":"626affd463b8b76f6c9f4ce37018983ae1ebbc7f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-13-2023.tgz","fileCount":96,"unpackedSize":2898516,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-13-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUc+t0IVkjb/6o3mx3GPofj4aHEz2wyM8FIda9wReezwIhAKYxgAiX4Ae5lVcsGpGYEMLUiSGH0kuhyj998DEhFi+7"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-13-2023_1699835218360_0.5765234562129602"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-14-2023":{"name":"playwright","version":"1.40.0-alpha-nov-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-14-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-14-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ec4893d23580b37f1a4d6c7a3d6b536482484817","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-1XJS38817cF4hYyvk86JSJ6fABCLx3hF6nH8QwcLwgQFaapKzZawxeGpjGF9U3ukylCgu4TtwoF6e9wAliYJKg==","shasum":"3c87c86fb086f25a6614c1a1edc79c3b5135534f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-14-2023.tgz","fileCount":96,"unpackedSize":2899046,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-14-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLGADsR/dz5WcaIfMUCmSLW3etqpffvuIeUwCjqZ5m4wIgTEOo2t4xY9+SRa/+aBEvM8XTq9HIrA+SqBrjUWNvEJE="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-14-2023_1699921513322_0.04865853482191973"},"_hasShrinkwrap":false},"1.40.0-alpha-1699985898000":{"name":"playwright","version":"1.40.0-alpha-1699985898000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-1699985898000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-1699985898000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"03031a6d2c78f79385b5180cc3a2ca38b5c4389a","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-I0gDu79kRaVe4j1qxnsexiDnGTbpakyHQUqMhC5JZrWkY4Cr+uWdGx3ent61sCPdIC1vUI4rKqzTIEQIN0byuQ==","shasum":"1e03a9ce4cc90c214dcdd8707b9cf9bb2633a65a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-1699985898000.tgz","fileCount":96,"unpackedSize":2898911,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-1699985898000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEP3YwClxcH5WG6rDhHzkz6Q3LuX1n8ApkPhCrjw3JWAIgCgd/uiPdNAcsNnB5qImp6cRL9ZO6g0Smjg9UctmcKiY="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-1699985898000_1699986383434_0.6021455085668794"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-15-2023":{"name":"playwright","version":"1.40.0-alpha-nov-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-15-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-15-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"557f3afd74cf48a98ba01143f4516f9031626230","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-mAS6HXiWxSUI7vOkab0Fe3vDjCDGX+CYitaGIVpKSkzUcIS+YB/Ueywl7ES1+pYiV5+VVgqndvhtwP/1NPVLMw==","shasum":"8eefd4c375224a7455abeea0110ea4c2ccd97a2d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-15-2023.tgz","fileCount":96,"unpackedSize":2898907,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-15-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGIAJZbAU7C4rteizwP+UDq1YHDa9s+h0svHg5mxv3NNAiEA8N5ysBE6SLFhRXWtIAtKBgyUfe0nupXkyTidvWS9Dyo="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-15-2023_1700007921967_0.6460296500425675"},"_hasShrinkwrap":false},"1.40.0-alpha-nov-16-2023":{"name":"playwright","version":"1.40.0-alpha-nov-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-alpha-nov-16-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-alpha-nov-16-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4575c9a182b72df4d6720690ebe5b4911d240a45","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-BzkRCLiR8qIKOpdbxBiDfEPBmTM5icJWGzF7WExjrgmmHU0GFZIj/tck8YPJQ38plFJ9nyUXl2VVAKCeWd5LTw==","shasum":"17b3a32dda49b7f2a76ea617a570b3032fee1f8e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-alpha-nov-16-2023.tgz","fileCount":96,"unpackedSize":2899089,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-alpha-nov-16-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2KyNSWLtoUclkwgTK5f2aIrYD2QJJWVZlIxh2iqErTwIhALhNc2KH45F3mqlQQfHEMRXQGCAMqwOrCb2c9a8wW2PK"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-alpha-nov-16-2023_1700094337438_0.8682841964605885"},"_hasShrinkwrap":false},"1.40.0-beta-1700102862000":{"name":"playwright","version":"1.40.0-beta-1700102862000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1700102862000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1700102862000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"85438edb97772d501443eaf5deaeab9f064b2045","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-b39oLMi8q+TAALVBK6xo70xja6XILW8Zk19SXdDtypHuGi7za70LZ1hPzl1GJjwfKiPTzQXqg6m/ftfsdldYEg==","shasum":"f7724b8d055830a3db7fcf7479255213f53d808e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1700102862000.tgz","fileCount":96,"unpackedSize":2899123,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1700102862000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg4DR9sFgPZbO7nItsmOyUbh0SpH9F3tCuRl/bgbOuDwIgcroYmUIgsR8ImwLsXmiOWmLkDCmQrD02M825dmTYQZQ="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1700102862000_1700107680218_0.0834299021766709"},"_hasShrinkwrap":false},"1.40.0-beta-1700166666000":{"name":"playwright","version":"1.40.0-beta-1700166666000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1700166666000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1700166666000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"59e8f4815ddc99b53b3856805c83841ad5586eab","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-noyebi0BT5hvIqKoHEeUO61igvIAVe2ULtaDp4zoEfKOtwOuIL267/KbEt3iEBZtNFWcIqacUUVFvYkg5VaFUQ==","shasum":"1fef28b9c0f01a97768410e124bdfe9744bd58d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1700166666000.tgz","fileCount":96,"unpackedSize":2899123,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1700166666000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxAuwDvpEEqW2yanlncLA1jAgSbXfjSIETt7HvGPkv2gIhAK/miTBb9rmVVa4wFv+ImNc+tp3z1vDxXrtY0gx3yWZI"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1700166666000_1700166770978_0.7544020509528866"},"_hasShrinkwrap":false},"1.40.0-beta-1700170201000":{"name":"playwright","version":"1.40.0-beta-1700170201000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1700170201000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1700170201000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b8949166dc08e0ae499d08bec004a3f1a4e26ec8","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-1Wv+50yMoYPaBpQ6H3B7AJ450fZEHj+vAsrOSY2gnX7uFYtt+J1Mgm5HgxvEwVaSwvPuGTaW4+F0zZRpfIh+Jg==","shasum":"2d0d81b2965293318f74550a9bc782802f9f0460","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1700170201000.tgz","fileCount":96,"unpackedSize":2899123,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1700170201000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfRrBZEGAMzMC+WXPC3cYF8tfzDmoL117ShDDTzeEDlAIgKQbFbUi60SoWYhB0/d+v/kWYXcjJevNloArpNfxrJdw="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1700170201000_1700170296952_0.10754558667067116"},"_hasShrinkwrap":false},"1.40.0":{"name":"playwright","version":"1.40.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0","gitHead":"b8949166dc08e0ae499d08bec004a3f1a4e26ec8","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-gyHAgQjiDf1m34Xpwzaqb76KgfzYrhK7iih+2IzcOCoZWr/8ZqmdBw+t0RU85ZmfJMgtgAiNtBQ/KS2325INXw==","shasum":"2a1824b9fe5c4fe52ed53db9ea68003543a99df0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0.tgz","fileCount":96,"unpackedSize":2899085,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3oWM4+v/cHGj2ryHzyjcgoIEhcEWMYopACaI/kAiJigIhAN79beyN9GMxTZQLP3CByiMtg9V4RvN0lI3JTXghe7kZ"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0_1700175292215_0.8236578562765191"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-17-2023":{"name":"playwright","version":"1.41.0-alpha-nov-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-17-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-17-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"738155d85df63552c065dda3abc2ae5ba62a778a","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-vhCV8CiiGZQyyLspa9dycoC9ehuyIsq0m3y/RnWcfE21JugBDYjlbs0Y1IOx3stLyA2+NKHKNgO37GMRW6XgUQ==","shasum":"d24390ab7e8c559c60a887284bafddb81f72f411","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-17-2023.tgz","fileCount":96,"unpackedSize":2899070,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-17-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF8dUDi2jtLKCoet+yNwNfAmQ/KIocWVfasMVVLfAY+NAiEA0lyVZLfbdSRRlTtJ0NVACJzC7/Frf/0LcjJpJVUgh0I="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-17-2023_1700180728281_0.32574652143226923"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-18-2023":{"name":"playwright","version":"1.41.0-alpha-nov-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-18-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-18-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"62d4c3fe0261c7fad813746f93d617ef07b272b0","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-N5hqOse5TSitjbKRH4FkbiryZAPSMK7v0Tv7WnQa+X9IVW6ENVw+6Nxfz9f/R9zYqo9GtLYVUQ1DsQ5+blaDvQ==","shasum":"1c0b6730dfa2ebb276b13504b87ec8586efd7a32","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-18-2023.tgz","fileCount":96,"unpackedSize":2899113,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-18-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEPyVlgZgeN47k9/hiVbYfhGYMBhtBIhEGlAeDWa4jQZAiEAwQ1/tgitVBvRiEEdm6RaCPkBBQMo8frYuO4sMn2T/00="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-18-2023_1700267103792_0.4895954702470773"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-19-2023":{"name":"playwright","version":"1.41.0-alpha-nov-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-19-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-19-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3f55587dd89a9e21bb3bdd4e24d33fffeb5563bc","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-1hxOgA/8NxkpUZ5sKQj05akVHo+5M1GNSqP8QDlmoh0dlDgEar8Q3V7Cypc0xWNxy+UOb8BqfyfRxvdZwZ1qRQ==","shasum":"9ebe9cd4bf5815c273612bb1f604bf3ceeca8811","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-19-2023.tgz","fileCount":96,"unpackedSize":2899119,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-19-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDvWgXrjiZrb9EQu44X21WrNRP8tUWXgxguwrW5ldK+AiBLJLES4l/sU3DxUDdaG1OaIKIsq0sCebpwBSf1XruJ3w=="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-19-2023_1700353658309_0.8324812038864315"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-20-2023":{"name":"playwright","version":"1.41.0-alpha-nov-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-20-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-20-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3f55587dd89a9e21bb3bdd4e24d33fffeb5563bc","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-R8OJXR1fvHaLTgxMhB104/A1dPtINKojsfN8MBMEvVaPjrDa3dNImz+1TdzUnq/l6pAcAqW2VDUsID0VXYMgFQ==","shasum":"60b7f21bec147ecf4bfbfdb7904e15cc99c2b1f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-20-2023.tgz","fileCount":96,"unpackedSize":2899119,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-20-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAB9fDZ30LBqzw7QVElgaucZXwy+JLdVLAAt3Wu73BggIgNEB0s9UcjhNsZ7KN1FGMvMw00TvcWXAvut4PMZAaS7c="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-20-2023_1700439984463_0.0902968963713704"},"_hasShrinkwrap":false},"1.40.0-beta-1700513314000":{"name":"playwright","version":"1.40.0-beta-1700513314000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1700513314000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1700513314000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e27bc9faa874f9f48ed0656e0331aecd645d007f","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-9dVeL/qEJJKgJdjf8fhM6MK0T43SRKu4l0gFFE7oB5DwZ3t6GYty3lst/AYqbnTzQuHSZokOWQkOZb8nCBa2bg==","shasum":"edc2de01cd9d050fb09a2531c81a7dd57483c92b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1700513314000.tgz","fileCount":96,"unpackedSize":2899123,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1700513314000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAbPya8MiqhB56BJcZojkRUi68FkrYs0LK6WaC4OnZGlAiBlw7Qcf6fHVPSLy3/0LlmRkEiadAJjQ7O2trrP5qxHpA=="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1700513314000_1700513408912_0.28928238855055266"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-21-2023":{"name":"playwright","version":"1.41.0-alpha-nov-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-21-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-21-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"5ef5e776f65b7d7abcec334333df84c722b2a6e9","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-3fxyqVHFOGilSzI7NbO6t2vV5Vn3XWN8y5rOpu+JlpWjsYZLlJBQXIdrSIlD4QpC4WyQOWbMLzcFUZDrCH/aQQ==","shasum":"0dadfec4b01c2027cb27023bd7bb56892371de7e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-21-2023.tgz","fileCount":96,"unpackedSize":2899119,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-21-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGs/QH9W96AOAtpL9AHewnANgqoJPlN5u+V/3lXy0rqVAiEAqlgDbKctTutlN3GFMUWu5qJFqbaoH8aDYcscCJzUDCM="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-21-2023_1700526363285_0.6721979424348206"},"_hasShrinkwrap":false},"1.40.0-beta-1700587201000":{"name":"playwright","version":"1.40.0-beta-1700587201000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1700587201000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1700587201000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"65859fa54bcff7527424ba12d61d6ca248567cdf","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-uJdDux4OJKOYsgJ6B7qAUFJwSplnwPPXk+kvATvEf97YyaEE8YXVP05T5kM5gYMFP8WMqjw+Hm9i8/gZ2nD7Yg==","shasum":"7e3f0dccd3da86405b590ae007d62264db3e010e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1700587201000.tgz","fileCount":96,"unpackedSize":2899123,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1700587201000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVlwNFQXlge36UxwFoIeDolYS5vgLADxbd3Hq8Cz6qTgIgfdR8lV+62YnKsNEyl8E98cvd/+GR0DjsgGELA5V9qdo="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1700587201000_1700587317649_0.48689817503738864"},"_hasShrinkwrap":false},"1.40.0-beta-1700587209000":{"name":"playwright","version":"1.40.0-beta-1700587209000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1700587209000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1700587209000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8dea604754a7b1f525b6c4974b7927c6782fb76f","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-B8kvOun7Su88S38GFJ4k43QuEJEGyq/Mk6RP0xEoqG9cJVOcvPbEpUg6ljFpO2ly0p9jL49FFtcrHEFoTwdQGw==","shasum":"5590e62ecf79c2609ad1d2abc61c973d7c969715","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1700587209000.tgz","fileCount":96,"unpackedSize":2899123,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1700587209000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDxM95m8zQbU9BuqGjsigCkrTbrVL1vcfrz6WphIVHSsAiEAkqIQeJmDR3pJcaphw6M0WiCQewFlw52SRVYecTeop0E="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1700587209000_1700587336256_0.7322423609340656"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-22-2023":{"name":"playwright","version":"1.41.0-alpha-nov-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-22-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-22-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7caa212a1f56c89282390263737650e4f20355bd","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-m6PJCFm/m+Eb785eHg6AtL1snf2XPtGGgHeKZ9XjVzR//Wq2Ox+szZEW+KJn0e2SPJ7r01pFRs/GpF81cHjwSA==","shasum":"29a76717c53e6fa46b14ea3a9b33a9ecfaa617ed","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-22-2023.tgz","fileCount":96,"unpackedSize":2899119,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-22-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEaLZ010s4HIIpU/Y7ywIBhGZ1n3ld2dF2aRR6CiUcMzAiEAvDnNKwT36az0DWhS6yqjGgt9lp27mVs1XNcb+Z4MK/k="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-22-2023_1700612801381_0.19367603109448783"},"_hasShrinkwrap":false},"1.40.0-beta-1700679359000":{"name":"playwright","version":"1.40.0-beta-1700679359000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1700679359000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1700679359000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"480ae58942401b5e27e1eef47dac636923d2e77c","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-dCdciMvWePKF2zAR+OjNilO2UcX2ir2bUkHsG0SUPoMR8cl2gUEjVxLtqYilIqtpqQUrHoNGlcI6QCrdxDRbLQ==","shasum":"15ad3f4982cd5dcec3e60a9e3d047594f7fb10f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1700679359000.tgz","fileCount":96,"unpackedSize":2899123,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1700679359000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBPBAPtrbUFEWtF/WDiOsxvyQHZHV4LjWBOMXIJXdeNAiBzu8kgR62Dxx1EFJaLDngchXidTZZby+4LOcls2vK+EA=="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1700679359000_1700679455904_0.48373103037343745"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-23-2023":{"name":"playwright","version":"1.41.0-alpha-nov-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-23-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-23-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"958e45316e0df430967d8fbf02676b3c4241a54a","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-cuw9V1zRixCC0lw7ROsU5YFoYcz0zn8FylN9pyY9BOFw0p+AfZCiCfWx2sDMAuyF5anBvVSy6S48csp9vTOQ3w==","shasum":"f3787b43a057ee9ce2e739b21a19b874523745ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-23-2023.tgz","fileCount":96,"unpackedSize":2899119,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-23-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2lEuObZyJXLVq8hG0eR4uLv+PLHP6tt4BEbJJTtvD2AiEA2GzLJDdlfm/ytOBMntz9Ysu4vzHgu9yXYfVjeo4/DUE="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-23-2023_1700699295023_0.28302944935056074"},"_hasShrinkwrap":false},"1.40.0-beta-1700745654000":{"name":"playwright","version":"1.40.0-beta-1700745654000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1700745654000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1700745654000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d19c948ce7600c2d4c1f786e28b237391bf9cf44","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-xOb/0qB6fW30/8QibI/0Q31I4ckMCKwbW99z0egO96IB5VxByo2CHSJV0aE9eZ77RlPEIwobGZqdrM8fl57V5w==","shasum":"032eec6c6b0a45f96062365725d6d7cf5d91628d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1700745654000.tgz","fileCount":96,"unpackedSize":2899123,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1700745654000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4wUmIfNGurXP0y7wwkY3b/3VGNXko/b4Os4+qIoxtzAiEA9uJnK029wPy9iHCui0X/geYjw34uaj9qM20sdTUvltE="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1700745654000_1700745757598_0.026585927178860658"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-24-2023":{"name":"playwright","version":"1.41.0-alpha-nov-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-24-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-24-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"54c9c7ff9cbc29a391b3de9e071cc01730d19eec","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-595S1F4xxEOy1JAynnoR2YqwPXi/orH32QfRiOuAPX0Wu4WcQqY3MvRRPwT7Md7C0a8DUvFqcd2c79RIc3hzCg==","shasum":"131dab3812eb8b4ee393e12125c9cda573020285","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-24-2023.tgz","fileCount":96,"unpackedSize":2899119,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-24-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAc4kcIhqr59eWERmc4C2IcuxaXSvHhADuN2m1We3WJPAiEA/4vXIo6BkYzUA6zwnX5/OAapQJDKZk+Jt3JSl4JSISk="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-24-2023_1700785496896_0.561567725627117"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-25-2023":{"name":"playwright","version":"1.41.0-alpha-nov-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-25-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-25-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"888f4965bfd87ef59d463286c88c4a658605d92e","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-B6bOij81fn4Xo6Wjjp7ENzAPBDbOjnPo+jteLGwlKnNg3boIF9qzncWVXY4uSl9aK2FgDIIpt404l6BBDkJ5tw==","shasum":"9e21a30f02e64ca168318bc0f989cad8afd66a9d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-25-2023.tgz","fileCount":96,"unpackedSize":2899119,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-25-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK87OjOWD9JIz7MbcE40uvMOiCHfxCA4DJd6jsEarNuAIgNiPGKyVH6qQK9KrBi2elt4Dmhd/9I/ZFyUO8yyj7uDQ="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-25-2023_1700871863647_0.8028683796428004"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-26-2023":{"name":"playwright","version":"1.41.0-alpha-nov-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-26-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-26-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"888f4965bfd87ef59d463286c88c4a658605d92e","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-X3Kt8bmsvA49q84GxAqEj/akSvNJs1YLeLVoBG/zbQxTv+aEgfE5D8f8bwr1OF4YjdMP8K3nxMiWtpcd/L3sfw==","shasum":"c2ecea16dd8f5961d511c02321e1259b35d5abff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-26-2023.tgz","fileCount":96,"unpackedSize":2899119,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-26-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdH4Mftgse82BbwKbBzjNQTHbLK48W+rQ0QGo30WTBvAIgVG3p/U6tG0MfxWHX0fP3iQIfyCeTcT4siuNdOJEJRik="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-26-2023_1700958462253_0.7923547182551001"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-27-2023":{"name":"playwright","version":"1.41.0-alpha-nov-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-27-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-27-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"888f4965bfd87ef59d463286c88c4a658605d92e","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-ewr6AwWE8Y/3dfssbEjNL9h4DodtQa9fjUipT5LwG2UzpEGohv1ylvv4zUQQzgXAv4QvGK95hVp8TVDf2snVIQ==","shasum":"6984e6f69df7b6f9296f11308cec47a7293337d9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-27-2023.tgz","fileCount":96,"unpackedSize":2899119,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-27-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVZuMem6/ATe8LVsIqxYy9KhoDqYsgm55nPBoTHoXKZwIhAM04IJrnI3SfF3lnXZEiNqHipvmiA+ahMFbjGY2lNAdc"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-27-2023_1701044820235_0.2538232568374046"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-28-2023":{"name":"playwright","version":"1.41.0-alpha-nov-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-28-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-28-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f61e445f2b2a0abf8334c3b3c13ec5f986631cb0","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-oeJaH5ZF0qMw61VJrhnXJzf/I5b302yV/X8mqBm1JASTlFRmWkM7TqTgB74SOl5Lp5JAruvER/Sg/mQA73UYag==","shasum":"4506c3a1b181f39a850a18105df11c0957b45f6d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-28-2023.tgz","fileCount":96,"unpackedSize":2902913,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-28-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBfzC0zEsHZnCn0bcWd9wKTGHk4C0qnlZJF2aAH44bsUAiAz1ByvTWbII5DJ3EG3kMaMIiiMbBDynjI3HCzASJdDIg=="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-28-2023_1701131175909_0.024257215250846453"},"_hasShrinkwrap":false},"1.40.0-beta-1701132322000":{"name":"playwright","version":"1.40.0-beta-1701132322000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1701132322000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1701132322000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"18478e325fc42412897789b7d7ce906a7df45163","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-SD+pYAJAbBhlQv3TopTJJ+V/lk/bssltsHzR7gaiAyDfGTh1pbY3SvQSdbXiANITNV0RJmvJzQ+D+rAHcmCJ7A==","shasum":"0bc4dc2a33224ae0924ce64741556e29f20e909f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1701132322000.tgz","fileCount":96,"unpackedSize":2899123,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1701132322000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGW7IvaXhariPfw+rP5rU3jMmPqTBVQ0cI0ExAibEK0xAiEA/90mKw+YgtAEkBzaVDfQFeLn8uaeFHTj5Aa7o3TARdc="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1701132322000_1701132449106_0.6723513886960466"},"_hasShrinkwrap":false},"1.40.0-beta-1701140508000":{"name":"playwright","version":"1.40.0-beta-1701140508000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1701140508000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1701140508000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"43798aff92eacfd0f6ab1090643e39acb6819774","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-xt+qKXPvcD4VCVaSxqKCDHkn3X5WQcs5jH6RfwKQ5Pl9xb69vhuNzXu1LXHcBR5hVQtAJzf6CeUu4Ame+jax0Q==","shasum":"a30d144902cba09934f9e5ee9ded405a22936cc3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1701140508000.tgz","fileCount":96,"unpackedSize":2900269,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1701140508000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+ODpVNTfj2OacCFc12B6fvnlttrWCdLI77Xju1Qy5VQIgMvOMTzQ+SATCdp5Pc3tU25Cgvlp9/hT8B8qxgar5gXc="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1701140508000_1701140607680_0.45961745774727625"},"_hasShrinkwrap":false},"1.40.0-beta-1701194655000":{"name":"playwright","version":"1.40.0-beta-1701194655000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.0-beta-1701194655000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.0-beta-1701194655000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"efc7ec1e801cb830515c3034833b9a5ca18e7e64","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-nzmkuQ0xFLxrgk8mp83TL1RS20bOBQp9FO+jOQBVMxVlTqOR9DJwZ+fdv7qpegQFmXcY5esRwhPEZrCtVHBVDg==","shasum":"274b78ef148d8c59903300683bff309faaf533ea","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.0-beta-1701194655000.tgz","fileCount":96,"unpackedSize":2900679,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.0-beta-1701194655000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEV2JKAtjQ4pLuzJgLBEYREhIvzv307pecBCRswkZsstAiB62qOLjCxcTcF6htltemOqAB2MG7ClQ1IthSANXCMjhQ=="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.0-beta-1701194655000_1701194796494_0.9328701608659375"},"_hasShrinkwrap":false},"1.40.1-beta-1701197304000":{"name":"playwright","version":"1.40.1-beta-1701197304000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.1-beta-1701197304000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.1-beta-1701197304000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"268942037a054f7259ecee178645c9067a8ee2e1","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-6B4Etsi+6t9SMNuyo2nsA36/ftKgdIEupZ0Cl3y/gYURBG+lrzwko/ZXXKv+93ml31uHk/exkbc7GS7R+dJw3A==","shasum":"ef9a91140ef602f01a8f66354b3728dea81454b7","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.1-beta-1701197304000.tgz","fileCount":96,"unpackedSize":2900679,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.1-beta-1701197304000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCPwYmx3vxQQjiEZWtzSS4aUwPxi4jcfXlf4AbirtH5gIhAPPvfrJmntaN0qkPZRlI6fqvr51J/XUjQYFH5qCBI8Ge"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.1-beta-1701197304000_1701197407323_0.5153039770096886"},"_hasShrinkwrap":false},"1.40.1":{"name":"playwright","version":"1.40.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.1"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.1","gitHead":"268942037a054f7259ecee178645c9067a8ee2e1","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-2eHI7IioIpQ0bS1Ovg/HszsN/XKNwEG1kbzSDDmADpclKc7CyqkHw7Mg2JCz/bbCxg25QUPcjksoMW7JcIFQmw==","shasum":"a11bf8dca15be5a194851dbbf3df235b9f53d7ae","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.1.tgz","fileCount":96,"unpackedSize":2900641,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBswzOttA1XU9P8ATgmGDF49vPIzfPJSVKf+ES2KmLPgIgBkn9DSFeGTGzCEWdN4lUmt7tBx0WcxnK2SSRgzgnnDo="}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.1_1701204023806_0.5464205009947505"},"_hasShrinkwrap":false},"1.41.0-alpha-nov-29-2023":{"name":"playwright","version":"1.41.0-alpha-nov-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-nov-29-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-nov-29-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.35-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.35<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2e762fd3d20ee41ec0a5b4c338af6d4d241680d1","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-5wkxxCikQcrTc0zYrd7mRFzs1hp3FXhz1xckqHvtMpBme46/uXbhzfZBlXRKH6055w9L/TGtZMPnE/o4msExTg==","shasum":"41bb7593a8a2379478fb136c1c6a07ada84f2491","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-nov-29-2023.tgz","fileCount":96,"unpackedSize":2904235,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-nov-29-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrZSnVKHEtxjkHbkRp0p+CnHcoPGZ3aEhRK+RaZoEfxgIhAIFp+Hcqw42kKIJlZz2/ifdVp/lEFjYBlmF7/Du/ZjJ1"}]},"_npmUser":{"name":"dgozman-ms","email":"dgozman@microsoft.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-nov-29-2023_1701217574490_0.4423721894083974"},"_hasShrinkwrap":false},"1.41.0-alpha-1701898456000":{"name":"playwright","version":"1.41.0-alpha-1701898456000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-1701898456000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-1701898456000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.56-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.56<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f88288d71dc78d829fe5f128afff71d1f2cae3ea","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-dpHKXrb3zoi+4aT0X7uhu7Dk7xc5X19WapnbKE6SKOJ3oukFBwQWU6QpjI66gBkE3Ay6+TElRnkloMI9Fz1NnQ==","shasum":"2effe50462baf4be2ce5c46b5aa841c05451d973","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-1701898456000.tgz","fileCount":96,"unpackedSize":2906779,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-1701898456000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+jxTZOSvJNAU7eXwG1y4dkj7BuaCO4w9r5DiwUTEIHAiAPNqMix5tfEKl34KfkQ6hFbIdBuIyr+QQSS+yXfeaTUQ=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-1701898456000_1701899552437_0.796879355294696"},"_hasShrinkwrap":false},"1.40.1-beta-1701899580000":{"name":"playwright","version":"1.40.1-beta-1701899580000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.40.1-beta-1701899580000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.40.1-beta-1701899580000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.28-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-119.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.28<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->119.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8aef8e8fc26f965bb3414861a0252e358e70b2c6","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-8p03HgUfPXZgF3QdWevpyp0Crw8dJrSJNqGutEf6T7gL1u8jJZXYFNGyuJ778vCdpOMopBvgPPF5Bwajce2OIg==","shasum":"006c2b8c08afcad1c05af4e241950f6738d1beff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.40.1-beta-1701899580000.tgz","fileCount":96,"unpackedSize":2900679,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.40.1-beta-1701899580000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvlNzs/nWcca+WTy7DjIgMunJ7/6xJ+ov9kndZp6CkMwIgCxD+zQZIGrxROQK7Fqa90A/4U9bzilpMoY5P2/7bMvY="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.40.1-beta-1701899580000_1701899688262_0.16516834576786588"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-7-2023":{"name":"playwright","version":"1.41.0-alpha-dec-7-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-7-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-7-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.56-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.56<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2adfbf24a90303ff2d1d3b46e5391a36345cac38","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-K9GpbLCeVSm94V317nYsRlJFjJ357NZm9d1BP5HpiT8Jd5cFscAJtxtfdm/VDDjQ9WMlP+Q3rmOzxr4a9aRlJQ==","shasum":"f315a598341a9c37eb501fae99c2cd946e7ca4cb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-7-2023.tgz","fileCount":96,"unpackedSize":2906773,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-7-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZTerDl8mJeR+4yyG0lNmU4PLAfOFU03he4ECe+oxyjQIgH4OrgXyYEtaQo+UwboM/90Yv3/4ffxn2VT1LDvwIL7g="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-7-2023_1701908764719_0.3657410268770851"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-8-2023":{"name":"playwright","version":"1.41.0-alpha-dec-8-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-8-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-8-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-120.0.6099.56-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->120.0.6099.56<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d587435efa82dac86c26eacfc3b48f254eaf2289","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-wTFR2yafqJFgAuX8uM3K0JhChbByoGztW4fDxNYSMr5a4bB0IHTvyqVAofUqAhG0SHFxjzKicIL51Vfmn1kd/g==","shasum":"c964ddbc550f8d9278c3ba2b7b40ef99713e327a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-8-2023.tgz","fileCount":96,"unpackedSize":2906916,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-8-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6JUScrmfZ1ula144Gf1HcP37pMnDDQnQVe/0+2Xw5cAiEAiA2bOJbect3pb5o4q6HugVbtczW1QEMnQkwkxPaDL2Q="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-8-2023_1701995183808_0.4351446156083689"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-9-2023":{"name":"playwright","version":"1.41.0-alpha-dec-9-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-9-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-9-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.8-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd9028cfe24a45de47ab1dfd5aa212537c2629e7","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-hbg0M31ntvZCZU6UosvfjcYNIPRS4B0ULwNTXMIZBBuTz298AiIzIa0W47s4SGIvRZLO+X7++sGtXc3LOuzupQ==","shasum":"50ba19b28715cbe1bfaf7aef80b1b8b450557035","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-9-2023.tgz","fileCount":96,"unpackedSize":2906914,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-9-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyIvdfAKeYV4RfJCS85Y1VqRN/qYm0Qlk6vyww89GBJAiEA4B4XeYkcXYxFwETuJhBcvECqSxlBL1kW3RP1ioHB3HI="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-9-2023_1702081534713_0.8614193725789059"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-10-2023":{"name":"playwright","version":"1.41.0-alpha-dec-10-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-10-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-10-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.8-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd9028cfe24a45de47ab1dfd5aa212537c2629e7","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-LIEd5951owIF4U15Num72aWW/28YgWgxmqmEi5PrXXqfUYo8M/mslT7AZLOBHLSrOrpvuP6HmW6G+7kzgRcqGQ==","shasum":"e16f26fb741517ec426f8d7f35fdb5a8e6700ff9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-10-2023.tgz","fileCount":96,"unpackedSize":2906916,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-10-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICzZgRoUENNYGDkORK4GabdF+rin5TygKjSva1q1Mcb7AiEAoD88Huc0r6FRO/Y3RjSmILKTNz+iSDK2rB7MQCc9yKI="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-10-2023_1702168104553_0.6353137321459117"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-11-2023":{"name":"playwright","version":"1.41.0-alpha-dec-11-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-11-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-11-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.8-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd9028cfe24a45de47ab1dfd5aa212537c2629e7","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-SHbWYaaNISg8NtqW3y3spz1XCkirUxTquk3BMnZaPVrf4WLkxkUrTBXEiRJgaOdAdW/vol8agn0Bl8jdOvey8A==","shasum":"eaadd2d61ac03b60addf9532c82ecacd55f54c95","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-11-2023.tgz","fileCount":96,"unpackedSize":2906916,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-11-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFC2LU7Jx8KoofY2rmtX+ewm8Ucw/6O87A1taulJFPYvAiEAvjdhfDTY7VMxesZwzX3VqUeHNaNcH94P1mFe5hs0C8k="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-11-2023_1702254416221_0.5416547557852529"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-12-2023":{"name":"playwright","version":"1.41.0-alpha-dec-12-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-12-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-12-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.8-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"23415da3db5b037da22e370c338d7f8587fe20b1","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-fKnUn9kJDItuUsXbNbYyl9XV9+x/A8Bp1kX1opejErlHLm/xMk6gYpgGHiwr5SuWC5gc04Zr4oPmMP7LQB8UQA==","shasum":"9010ceb43a95e5e68ef39c31070b1a5ae3a97c87","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-12-2023.tgz","fileCount":96,"unpackedSize":2906916,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-12-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXhlhV5O8Iv9bMgVSelueH6CsDB962nktJMnUI3Tj1gAiBrbna4dAHAvsSTJz+/jKQQ90ocT+J1GkFcFUf/6XkBDw=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-12-2023_1702340797798_0.20265665870099459"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-13-2023":{"name":"playwright","version":"1.41.0-alpha-dec-13-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-13-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-13-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.8-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"297cfdfc5fbf7c83f75ea44dd605ad2229d6f0b8","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-eLwvmDCK1+485R5xD+vW+jFrF4QnEGMeGtbOClJdEhIcxltLz8xrJ1pV++if74olpcRcGZiruvhChwh0qveztw==","shasum":"aaec3f09ff3f6f6d4ba54abccac311479deafbc8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-13-2023.tgz","fileCount":96,"unpackedSize":2907545,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-13-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDe088V3Xn+7YPuEz0R1v5kN6noswPIQetXnqfdmXSwmAiEAx+Bwq07fnMg2gOaSCAOWNxr2O+vTcPCGSqlGvq8io1U="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-13-2023_1702427144770_0.8963826904140038"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-14-2023":{"name":"playwright","version":"1.41.0-alpha-dec-14-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-14-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-14-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.8-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.8<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9b2585cd4ef802bc01d4183dd708e127cf62773a","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-UnEtYpsTjhQ33SrQSYxwxylWWBruguT58e+7LvSmPeIRvFCp1bL/s80M/C2b8U+Irx7Rb3uanPE6C5+73Vlmdw==","shasum":"26eecd67b50c0ea8d3b5ceda57de28a87b979262","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-14-2023.tgz","fileCount":96,"unpackedSize":2907512,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-14-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1A3WkWwjRa1EGGPaqHgV/f0xM9sh75xPdUBMIZc6RgwIhAIpXBalnzx6WxcjZUdiXLDmcZ9ZBBh36TtpsyjbLyU6N"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-14-2023_1702513554825_0.18414893909969532"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-15-2023":{"name":"playwright","version":"1.41.0-alpha-dec-15-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-15-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-15-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"256b2876490a2bd47d65638d38b1bb87a90e1059","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-mYw3KqBlHLfzR2BPhf4UOL9qfTJowIhJZLicDfBAhcpoZLFsWUXIh4FTrNlM6M0b0K9DC+ozgUfvyqUlLZSekA==","shasum":"eb38a1b6b342673ac61e5dfd928ca8068e3628f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-15-2023.tgz","fileCount":96,"unpackedSize":2909002,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-15-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd0Yh+AOXVAVrrjFkzaC760mbRtI2d4NMiriPDm03zuAIgFJG2uR6EmuETntqZGmasRzs71l1CZjumSLzPzzQQE9k="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-15-2023_1702600007118_0.43003525267125564"},"_hasShrinkwrap":false},"1.41.0-alpha-1702665650000":{"name":"playwright","version":"1.41.0-alpha-1702665650000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-1702665650000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-1702665650000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"665bce64ae1ff6cda7f9f1faed49a219977b3259","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-kifeqV1huMEMyCglXWNSJ8xQoBjGi/36GlhB2nkWSCAQdw/3NcE3TIQ1vUH5KYTMn2zVCGlEGNxMXq8Tgn/GHg==","shasum":"d603d351cbaed82f5eca79fe2bdaa6d46cd5fc2b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-1702665650000.tgz","fileCount":96,"unpackedSize":2908084,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-1702665650000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrxKLQdWlhKQLfWQdhvxQ95w6rgECwKG5yweLZRivstgIhANU6YUajRyPFjkEKvkXqqYWHr8nTD02cRgyo1Lsl0vhv"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-1702665650000_1702666707436_0.49797635213608893"},"_hasShrinkwrap":false},"1.41.0-alpha-1702670966000":{"name":"playwright","version":"1.41.0-alpha-1702670966000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-1702670966000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-1702670966000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"86ef7393baa304b8249289ef46eca20c82367c86","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-wICO6xF5CBKSfcv0wroJiY6+j6e24isughzfl8S8dLcJdvE6nT5n0NmJKRlpMEtIHQHb1w9IquDaV4kzbHGmKg==","shasum":"260a3f755331b2c21d88052c2578f04764948c5d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-1702670966000.tgz","fileCount":96,"unpackedSize":2908084,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-1702670966000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4bCZxkfJpDSB0tL6Q5tIE+N/l629PO8JXX7lx6I4jjAIgbv/bYYpwUxMmTsG8LwF5MNEfs+V5btc1tQdmSZTN/hw="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-1702670966000_1702671071986_0.09987964679196382"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-16-2023":{"name":"playwright","version":"1.41.0-alpha-dec-16-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-16-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-16-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"54e2ecc45bf299a18f989ab9a9c08a9ea7003b77","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Q/9T/Jr/ezYmbZqnpOAZNDhHMWGU+5ef/0MpotaaAvrIFBcNaIOb0L5DLSfKSdadQt2AGbqvbDSyN2AYBxvlTQ==","shasum":"d2e7f85bc59da97594378da73f128ac8a7cfebba","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-16-2023.tgz","fileCount":96,"unpackedSize":2908080,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-16-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhr1AXSKH1tmCG7LOtvYc1IQJqi6tWyviq0AMpuOTdTAiEAp7mlsUftPmXJLdu2Hs71+dxgynKnPCr8+03mvVMzm60="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-16-2023_1702686341563_0.08020933961455956"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-17-2023":{"name":"playwright","version":"1.41.0-alpha-dec-17-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-17-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-17-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aaf9cc5b49e31ce3bd54b9db7bb4cd2a9cdfacba","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-U92WCovqIFjwI4mchKasNgFkNUbiLyAsHNRRw7I3HdINoIq/DqB6g0WU/sh5adaT8ihZrc7X85z/H4Rzp/nhDg==","shasum":"9a5ca929a7a792bf8684917e9a858a80b85824bb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-17-2023.tgz","fileCount":96,"unpackedSize":2908080,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-17-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCl6sogMQxOR0WAxspuN6XSl97LSilZBmUZmFqG9AIfKgIhAL63viWGSI9RBvP2HrxQmehy34M/zpd/xW9L45zLQw12"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-17-2023_1702772897318_0.9566477012385761"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-18-2023":{"name":"playwright","version":"1.41.0-alpha-dec-18-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-18-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-18-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aaf9cc5b49e31ce3bd54b9db7bb4cd2a9cdfacba","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-lV0zEYSuNAfz6hogEK9yH/bjA1vjzRjm/6a7ckwVnjj9Stxz5ttUtZ942BH+d5a1cj6g1FcTDU3xLIsqxOhjpg==","shasum":"1927b91eb47c2ad665ff018c4b9c46a10d5d0a0b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-18-2023.tgz","fileCount":96,"unpackedSize":2908080,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-18-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYdmdNotLRZbZo+nm9OATAePc4ixPYnp2gzLIHzGH+CAiEArRRBsOz3Eymr0wv6qJXN5tvVeLsQBsfGDx60XW6RiRE="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-18-2023_1702859256618_0.9399517583033257"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-19-2023":{"name":"playwright","version":"1.41.0-alpha-dec-19-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-19-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-19-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6b178d22e23d38a48fd9a805acef473c3a405b0e","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-MGfTcDlTUMmr2blH0fIrrxrSsUFLy6S9FTJ0nPR2HK5dYoIzaV8O6tc9zm9V3svCReoVEQ2vuRitECETURCjEw==","shasum":"cd1451d5ccf2b84cc435e85b0bff9004f23734b0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-19-2023.tgz","fileCount":96,"unpackedSize":2908080,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-19-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCab4i1T/IaJ8xFOSm87xrSsQxCvvklWvhrqu0kmGtyDgIhALWlvbtA4c1jcFH4jJt7dwuCOyQxM8HeQz91p9Am1m1T"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-19-2023_1702945594520_0.567034998469147"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-20-2023":{"name":"playwright","version":"1.41.0-alpha-dec-20-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-20-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-20-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b88b194e9f15e882b7f650f8e80c10932f9f0e23","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-nJqccv6+bSE5uAHKwnOCmKHv5MvU68hQF2Zmgsy3R+6sQNOjpmZcoT+HD5LZUBl+oP/NtGjJZw8rQFHj3YqKhQ==","shasum":"47e6ac4d3ab1a203a50b81b41f33102f09018409","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-20-2023.tgz","fileCount":96,"unpackedSize":2908079,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-20-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHch49BmA4wAscPtFQo/VCyAHIA4W5B2POrGe3RabhxdAiEAodQ19PlUyPdvkNOwcySWCoVSvc9cNE7f6oJvIobfCG4="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-20-2023_1703031747100_0.14861704531269004"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-21-2023":{"name":"playwright","version":"1.41.0-alpha-dec-21-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-21-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-21-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f7e298fec3e455a96f1ab2c5ae1ff372558c16c0","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-3pAVIuUTiOqw16hi8AXkxbiL83wMjUEp+ygIGtO+QFscmVUs9tEprGUhLsWbrFnC834RvriM8/KbgYcsAg6PMA==","shasum":"16775ca72ffdc6360546cad8290dc39cef4640e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-21-2023.tgz","fileCount":96,"unpackedSize":2908128,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-21-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHk5VJ6n+x94G2+ZaQTpmxk1LtGD+AUTQ4rTYI+okSkUAiBbtkLdkdxr2wRWJ84F5Gk6m9zxgoESs1PATGHglKEykQ=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-21-2023_1703118371226_0.6994115004706902"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-22-2023":{"name":"playwright","version":"1.41.0-alpha-dec-22-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-22-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-22-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ff99aa33b0ee6ebaeffcc098a9e52c2f6d995b2f","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-XG2uKLHtS0JyxSHypRKZh3mV8GW7xo8jovNMvms1cXcxY6mlVf5knycy9BDopoXugfqkrwJmcJMfHBL+B6kvYQ==","shasum":"e6758bbe5f786c4c6262b62187111f95cab80f14","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-22-2023.tgz","fileCount":96,"unpackedSize":2908367,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-22-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYZUM6uCyNRq3MzqbWTYRYEQkPxls6zvOQEkAH4FMbegIhAPwR3pmSD2TKEQ8HXLvrdYTs7NDhmzOH/4LH2iLvw8Ll"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-22-2023_1703204803519_0.771523329939112"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-23-2023":{"name":"playwright","version":"1.41.0-alpha-dec-23-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-23-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-23-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b00fbdb3889859a777b06966cb57a98c7cc4c90f","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-fVuZCXybrxgXtnf3GKj8K/8JL86zqvjSbtDcNlyE6VITq5XfkzsAa1XyQ6JaD2134U1XKyeMpMc5+kHZpr32Pw==","shasum":"51d9a13a664f2254ca1e37d3d7c5a739f429230f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-23-2023.tgz","fileCount":96,"unpackedSize":2907562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-23-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJRS/4GgXdQvwjikfTBDHAUmwEnjJTUOtZNcTy3FQddAiEA/mvLJxqjHRKSYgjPXQr7Grwx1nmCh5KjOq+EielrhFw="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-23-2023_1703291109078_0.19105567776982002"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-24-2023":{"name":"playwright","version":"1.41.0-alpha-dec-24-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-24-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-24-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"39abc6386f59cd200a8c22ecfd52c1848e091662","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Ut1xq5x084HOL1mf7J+FKyBGK617u+Deom80ew4whPPagz3YzWWhN9hZOw2CkKNQEuS7aO5ye0SJi2KuVDxzKw==","shasum":"3434717ad64bd5693ac0b71f5ddb16db1c089328","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-24-2023.tgz","fileCount":96,"unpackedSize":2907562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-24-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAq1kHWuTWsHixG5es3IZBhbzrR3oVcRCTFp0OmOtY4XAiEAmpzT5HqGpIuT3t6mXuyzvsT0xdVWtBzSH/ir0t0s+5k="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-24-2023_1703377682519_0.8280389005577098"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-25-2023":{"name":"playwright","version":"1.41.0-alpha-dec-25-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-25-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-25-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"39abc6386f59cd200a8c22ecfd52c1848e091662","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-CQZQ586RT1vfq84eagnmj352hZqpWVaXeCoyGmCNf/jLNsHhwEkEvd6Gy5waAyg7VgCIBA9O26dwUnUptBYRVg==","shasum":"6cdb4e9777146125bcfbd72ea917a835ecec2ac8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-25-2023.tgz","fileCount":96,"unpackedSize":2907562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-25-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA0ztfhxtohMla7pFtTUrKCqrO3iwixhAslc4jVtXNQlAiEAxEkv7h+Q7HepM56fIajG4S1CgMuotUVAjp3VETtZ2JI="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-25-2023_1703464018629_0.6151327404939717"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-26-2023":{"name":"playwright","version":"1.41.0-alpha-dec-26-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-26-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-26-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"39abc6386f59cd200a8c22ecfd52c1848e091662","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-RMRev/SQZ9hKCZRzLSPjQmepIvAVv2IBIKtuMlItOOrG54H7kcSlk+gsLMRRkn0j65eNbJVG9UbK7Z+CiwCTkA==","shasum":"33a649f5adf6bbd35cc86da29af2a45e5cc39ccd","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-26-2023.tgz","fileCount":96,"unpackedSize":2907562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-26-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQJfVvp138/DF+ahsj6UfKuaTAtOT17+c7znH5+BugEAiBSUjfXxwgGh99bxkZcCWxXHoRr1hLR6lKElYcjV3tgaQ=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-26-2023_1703550321874_0.31984724081199944"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-27-2023":{"name":"playwright","version":"1.41.0-alpha-dec-27-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-27-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-27-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2d5488d8e31dcd3f04dbefc9e7d4f1c4b25fc8bc","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-aZxTSVeUFKngqpphm/X8wPuWAgThb2lAMtPXzdw3jR7DQ3AhMGlwSWaRpHAVG+EyDZRt10qai9QEunAcDTONAQ==","shasum":"7b334bf1107a5fab3d05fcc0981a2deac180b624","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-27-2023.tgz","fileCount":96,"unpackedSize":2907562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-27-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYIvxLvLkaXHxq5OfUJQUtY3tl7Bfl1Sl5GljRTMIn5QIhAIdjd8nl1bjbPQxM1KMIpvq+6TnqwZr/D8OjRf7EOAFD"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-27-2023_1703636723373_0.750461193347078"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-28-2023":{"name":"playwright","version":"1.41.0-alpha-dec-28-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-28-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-28-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2d5488d8e31dcd3f04dbefc9e7d4f1c4b25fc8bc","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ph1D8GPIYX40WfHNpvrxXUZSiArLdCXIV1OwK6XW2Am3ED9N1pTu4BzSYJqICIsHS2BYBnhQQO513H8X0QnNeQ==","shasum":"4fea1d20e631154e4267bdad6e18545a3533497a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-28-2023.tgz","fileCount":96,"unpackedSize":2907562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-28-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5f68MXSY8b9yr3fqIntf07odG9IDB+eRT17juobGRTwIgPYP82qOP65cSGlvvTAewpq5RSIFm72sfi3BHDQOfZ/U="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-28-2023_1703723144093_0.3502491854587064"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-29-2023":{"name":"playwright","version":"1.41.0-alpha-dec-29-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-29-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-29-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"214b3733b2dde6bdf51fa8994dd5c813d17d0fce","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-OyeoW3LydYxcFGTSsBPdf5RFcsNu/x+ZzWEzPiyXRqWJwtYpKEy/q9AyI/sxh6IQDtMT3l+edibxwwP9Jwy2DQ==","shasum":"0dd9bb4e7caa98bf749fc36394d55a454e9e95f9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-29-2023.tgz","fileCount":96,"unpackedSize":2907562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-29-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJnhDt663c306O8pYFVNRi61vDvT59SJ6lS8XgIiK5xAiEA1LF+QMMnszWG1BtTEOSBhdUpB5H6mIDf5vK+R1mgl2E="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-29-2023_1703809315503_0.6447113070442092"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-30-2023":{"name":"playwright","version":"1.41.0-alpha-dec-30-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-30-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-30-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"214b3733b2dde6bdf51fa8994dd5c813d17d0fce","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-QfFT2n3Io/3OuiHWoC75i5mOnx5yMIpGcP2pzOD/pOArFUn5HX1Bt2fcqM2DlQ5xrpNuLNvUJlyT3H0OGsb1cw==","shasum":"7a6d31f5334609304308097226cc3ae69a3ff7f4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-30-2023.tgz","fileCount":96,"unpackedSize":2907562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-30-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtsUV+bdfrBFE1/MR6Pl8YC5Fdm/0bozLs8Mq8SckqtgIgNainjYI25U8H8vmPK1Hfhz4u2E6HFFgpEHb6WRJXXYA="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-30-2023_1703895897178_0.6387231168951448"},"_hasShrinkwrap":false},"1.41.0-alpha-dec-31-2023":{"name":"playwright","version":"1.41.0-alpha-dec-31-2023","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-dec-31-2023"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-dec-31-2023","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"214b3733b2dde6bdf51fa8994dd5c813d17d0fce","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-CrLoPJ0DGzX28UvQXx6c3UKvgpOs7Oa/4tYRK31cGJGgNfc3hI1FzfNuOgvuetNx/OkMWLPtf0lBwdTWRKLLLw==","shasum":"9e468dae111ba90ca4150172c35098aebe53c865","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-dec-31-2023.tgz","fileCount":96,"unpackedSize":2907562,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-dec-31-2023","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpRBp7jfeXKFOGRlGdChbV28Z/qMlEq9tNS9/G/iQJFAiA8TRwX4DQUAUMIL6TFbmqIJ4ZZ6xmhLuH95UAb9jntQA=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-dec-31-2023_1703982538174_0.6970174599063312"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-1-2024":{"name":"playwright","version":"1.41.0-alpha-jan-1-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-1-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-1-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7bffff5790e28243a815c985135e908247b563db","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-8KS9GJ3T969BrfR43yBL2szdbRuXEbmhG+4oTiOg6P20BuKNIGb0AE00Uez52gJdh07VYY756dxY+YGe8XM+dA==","shasum":"f1640207a81aa2540f0ce96083a9bc35251c8cf2","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-1-2024.tgz","fileCount":96,"unpackedSize":2907560,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-1-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCe5V1OzThKTzvQuJ/QkyBard5iEO6P3RTLuSJuotKROgIgaQpZWJ92LC58IRCu5GbC0wHCsQ4m5zIYlJKPmFAbD7w="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-1-2024_1704068945902_0.4904613673788225"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-2-2024":{"name":"playwright","version":"1.41.0-alpha-jan-2-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-2-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-2-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7bffff5790e28243a815c985135e908247b563db","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-QUoZrKhMF7vibAIWbgHBw1Y2BIbFYyMgtzrrhS8r+u+i/OP5QWQwMWQFMH2VIlUb9In8GB7qW3XsQizTKTzrsw==","shasum":"b5c15a20e4518aa0df08c8f0bc3a34195e7c4e36","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-2-2024.tgz","fileCount":96,"unpackedSize":2907560,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-2-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnKFz27CAZwuRaQ0G9M+C0cBRHir64sZV41bJFjIFjxAIgIPj2Yv+NWmDODX6nA3wb2iYfOfTOQR9C5+z5N5a9Aps="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-2-2024_1704155149271_0.41875743474156457"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-3-2024":{"name":"playwright","version":"1.41.0-alpha-jan-3-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-3-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-3-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3dfd7edf9973bdd494e3cfdd1758596b85ef64e8","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-k22R9SWQGTx9bR37LNTZJsjnP62doRPja+8ZAOacT2KkN+PVyCS0znKL+mku+Y+cT3OZ7UCCUfnnYg6bjM+nTw==","shasum":"1389f17ed2cf5ed1b35773c54e59d4b272f1dbb4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-3-2024.tgz","fileCount":96,"unpackedSize":2907560,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-3-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXPWZwFRAy1lC2ywoLQq3lDk0OgTDJ+o1aiLay867GYAiEA2D+9myMfb2mgCQ8ZXepqrWxakAF2nwSzpHUBi7Yp5nU="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-3-2024_1704241550076_0.34777156915643115"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-4-2024":{"name":"playwright","version":"1.41.0-alpha-jan-4-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-4-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-4-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e30c0a6ff7c48a3abc55eab63fa15d31f6241280","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-vpqkcZoS5GWEe4HpdZ/cun6unC8SXoXl049X8jIPOtUq5OxvYMsIjU9EVpree/FKioSjlOAq9UtaFDXhUBHpXg==","shasum":"c470b41f6791ec691b1580dba9b2be0114dc7528","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-4-2024.tgz","fileCount":96,"unpackedSize":2907560,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-4-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGi5obojLhbRxt5Jv63YbBCxmwhi1pJoVx28aDAyipwsAiEAp4NkLcIdqRNxw7Nhl6JUZIiurv1UEu03oPeQe+EZp/Y="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-4-2024_1704327995664_0.9672723572842978"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-5-2024":{"name":"playwright","version":"1.41.0-alpha-jan-5-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-5-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-5-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.16-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-120.0.1-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.16<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->120.0.1<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"fad703d4eef4c1ecb9ae57c20e249b52589c6191","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-TcsJeb1OUEh4GqsZIkWPwN+IJmeNTMcXIyPrk+oNCFF0Fa4IGENNXJhZDFjp6Gx3c9kYZQtxAxxdNXWN72LaYw==","shasum":"bade6f529b303e2b61a70038975f6599c79c4dc8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-5-2024.tgz","fileCount":96,"unpackedSize":2907560,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-5-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNV8Wi1YTZmNHlimfkg68hs6Nl+E9cSx3bQhx/MuAhDAiEAxMql1TY2E62zl6XUWjokp8XVkIL4/8AwFyXLMZaXt8M="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-5-2024_1704414381314_0.41644346035921753"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-6-2024":{"name":"playwright","version":"1.41.0-alpha-jan-6-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-6-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-6-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.47-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.47<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1617779f3ec102c080306ccd379bffeeea937249","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Snv+NMluNp90qOvBXs/4Y2k9Miy1dG8zVfFO3tZFJeav+CDfyzj7Os7kAlhE8fXjCK0OgDD/65h8LQ81qxwfeg==","shasum":"fcb72608378945f9e05dabe111e1045d1546817f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-6-2024.tgz","fileCount":96,"unpackedSize":2907730,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-6-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArh04cZfeI3Lya4wz0gI9ugxJkCADycDN3BfgRg9DnWAiEAqBAviF0m+prL9AIpuLMwteVYn2b1f901mnODiqC8lpo="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-6-2024_1704500763904_0.6075254186339591"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-7-2024":{"name":"playwright","version":"1.41.0-alpha-jan-7-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-7-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-7-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.47-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.47<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1617779f3ec102c080306ccd379bffeeea937249","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-U/N6xOOb8Koi3Ewvd9FSa/UKtyAsUsXpUPnPCf7rs28/GXeGFrd4Zk8ZR37C+G0oPPcrBnlXEnLhBR6GNMEeFA==","shasum":"2d11434bb41efbdf15ed0961f56fd7b1374e2ee6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-7-2024.tgz","fileCount":96,"unpackedSize":2907730,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-7-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrDaCEz69j7rRHB8NPmR1e55L5pEWOlK3CRuORCfz5ggIhAJn9ThrFBARWOjBhhzUDDfR20LfzTg2VkvixBhFlQqAH"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-7-2024_1704587361913_0.5181744101625501"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-8-2024":{"name":"playwright","version":"1.41.0-alpha-jan-8-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-8-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-8-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.47-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.47<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"76ab990208c7444ff1e90288751e7017e09f0daa","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-oQEIWbrbQSq7CMxQf0y9Aoskbcg7wWywmbL5BnFwBYGQBQYf2cKhvfdzdcYLg5IJX0OZmTDnnVkyaSIW9PXA+Q==","shasum":"cc8f2a0586c584e58edee04da46a5276e140c910","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-8-2024.tgz","fileCount":96,"unpackedSize":2907730,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-8-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoFuoj4E13D51qP5+UQCQ2HX32ll6wielEKMqH0xr7lAiBg8RzLRYTOnw02UP6biZH4NLdF6niRg+w6Rl6xW2JV4Q=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-8-2024_1704673637820_0.1068627967565492"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-9-2024":{"name":"playwright","version":"1.41.0-alpha-jan-9-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-9-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-9-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.47-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.47<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"feece0f56900129142f0d289d4d4f197058be41d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-dt8YZCAwUZbPsRmfKuF7t0MXKZacUuJpz3piWKB9w3oIfZTJvyFVL30DiZdXHZb8voIcG2iya1ioG46SHY26XA==","shasum":"93c31d54e60538f24c88fd6bda8aa5b4d311a731","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-9-2024.tgz","fileCount":96,"unpackedSize":2907730,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-9-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6sQsj6y7m8TvPMi+2whGsbvYLIi3WTEO49xiE1SuJsAiEA28ihYUlk6u4B2dTx6K3+DOj/rMocOJB+gpn9NXkzm94="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-9-2024_1704760020166_0.2952577696630798"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-10-2024":{"name":"playwright","version":"1.41.0-alpha-jan-10-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-10-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-10-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.47-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.47<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"19a4f15eb67fd82a0b78b12dd94e3564504f83f9","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-U1IS7+Fe7MOopj7OhT8/B/t07KjWY+xdzuv3oEwjgDAmTNuyN7YMfI2JO4BD//Pm0Lt1MpTWBYU9niETGjOwsw==","shasum":"452e96efaf167c243c7a6f3b761d03620d7a2892","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-10-2024.tgz","fileCount":96,"unpackedSize":2907732,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-10-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgMN1v1boy3Gj0Rj2YKl91Ri/KEHX7I8M0taJ/SyMl4AiA/EIUgM335juQ5Kl4kJ+8bC+ahEmfD9sMBUCYN2nhXGA=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-10-2024_1704846466843_0.4454675708804965"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-11-2024":{"name":"playwright","version":"1.41.0-alpha-jan-11-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-11-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-11-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.47-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.47<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a0750b7854280f539d2b79773026b373eac0ae44","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-8sPHbRVQRo3cGbYstn4KoNBIqft0R8oCuE0C5pcxFxVEGciToT+NsRT2mkggJhOMJVNc7dHvIo/kPxnqo4Flfg==","shasum":"287e45009c728b7634b3bca1129b7ee5870299d8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-11-2024.tgz","fileCount":96,"unpackedSize":2907732,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-11-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSfoLYavWGCR8IzAqj+UCxuPtGLG+MHnqIeFlbjq1TsQIgV5f0/Ts/cF7t8c/Ltnyqzembbw917zO1caIufDruj3I="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-11-2024_1704932801997_0.08097662600253375"},"_hasShrinkwrap":false},"1.41.0-alpha-1704968142000":{"name":"playwright","version":"1.41.0-alpha-1704968142000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-1704968142000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-1704968142000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.47-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.47<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"48517760e7faf9b32412dba06878b72b424db1f0","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-5igNln0Tcfn6ba7YXz1pKE66YLhzqFlz+aElvIAP11XXLMPv4u7EG3u+DLaK4R4C1njjd+J0hYBpVWGp7QcKJQ==","shasum":"9d0577e084221cda3ebbddc2b38ebcfbcf845a7a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-1704968142000.tgz","fileCount":96,"unpackedSize":2907636,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-1704968142000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/TgvTV4EQS66enF4579YPBlTKeMv2P0XF4qt+y//GkAiBIATFNER2VsLoIcVluiZ/nGocQ2R7oBNbFnwmnN9mGBQ=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-1704968142000_1704974984467_0.7366194798910479"},"_hasShrinkwrap":false},"1.41.0-alpha-jan-12-2024":{"name":"playwright","version":"1.41.0-alpha-jan-12-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-alpha-jan-12-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-alpha-jan-12-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b392c2d39253051114139f988c1d4a23301d627c","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-3cxDDiSEuilDuHPE/Lst5hc9VmeVc9TcU7aj39rPKr59RCLqw4zNOlQOmEEPO4GN5RFX7/EyTiIWe5m516cEuQ==","shasum":"131591d8e353b28be191829ee0c2e0231a1866b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-alpha-jan-12-2024.tgz","fileCount":96,"unpackedSize":2907632,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-alpha-jan-12-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzPBFvxi4YqzvwpkKEhqFm//IFAdTVl/mr+3Gwo3YPtgIhAOToaUEcGQt/XkQgZaWogt+FwlS2N3u8dQ2Y3spPbhwd"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-alpha-jan-12-2024_1705019189756_0.2333204564782354"},"_hasShrinkwrap":false},"1.41.0-beta-1705092460000":{"name":"playwright","version":"1.41.0-beta-1705092460000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-beta-1705092460000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-beta-1705092460000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d4329bb6f23324ae34bfb9d0f6e5ce246c37c0f8","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-q20ANN68OW1NaVtHmXJRF56sfMmXqfQWavYhxVtF4JR1tbse1cLVSP6TQ7oqN1btuQ9hW0ZuBptfy0DTuUSEnQ==","shasum":"c1ecb7e4b20dccf825c6f7557bad3323e20e50c6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-beta-1705092460000.tgz","fileCount":97,"unpackedSize":2910324,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-beta-1705092460000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEekwkzIO5tHj7IoMn03/ooQeZCRWJoiJxyypgm76Y6zAiAQbBscvLZHaU6d8MdvlCNpiMfsjAi5qHCkqCwPJ3ex0w=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-beta-1705092460000_1705095912934_0.8298466901938255"},"_hasShrinkwrap":false},"1.41.0-beta-1705101589000":{"name":"playwright","version":"1.41.0-beta-1705101589000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-beta-1705101589000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-beta-1705101589000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"cd922d137c91103c521562a9cfdc946374a403b8","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-3mMpZXmkw+fGIb+wBpvDZ4OEm7L1QYptgJgTdP8/OEitYjV5Q05MRZWbgelF/9ameoRpMz7rbkZTWUh/1UtrIw==","shasum":"97fee4272b489c86ca634b77fecc108bf35d7730","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-beta-1705101589000.tgz","fileCount":97,"unpackedSize":2910324,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-beta-1705101589000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9jX3ue2Oe6yv0DYmKy7m9m4CEpejTG+SqhsDEyhztRwIgV6rL6m+wm8zuCAXFAxK+lOhJ5slY3Th3PEXW30E7GS0="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-beta-1705101589000_1705101789399_0.892310194011475"},"_hasShrinkwrap":false},"1.42.0-alpha-jan-13-2024":{"name":"playwright","version":"1.42.0-alpha-jan-13-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-jan-13-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-jan-13-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f2ebc53f18a83348add9f5857339efede39603f9","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-htaNWgO7J3EJTn/GTy52W00HF4PqlCRwwWWYf+Lkf78WrUetPGX0aCkkEU0FoM8+q53RWA5ftSvAlrrYLMZ/4A==","shasum":"c6eec4035a28adf434f3a62400b549e0ce77e7d6","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-jan-13-2024.tgz","fileCount":97,"unpackedSize":2910322,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-jan-13-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHV0zEo/vV3f6NS/qvpgK086P6wSjRmhZdkkfodJwbntAiEA9a4Ergzc6t4R7rwCzjDRNLvcJfPr4/PdVnvzdELHeeY="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-jan-13-2024_1705105590344_0.4540707603816547"},"_hasShrinkwrap":false},"1.42.0-alpha-jan-14-2024":{"name":"playwright","version":"1.42.0-alpha-jan-14-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-jan-14-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-jan-14-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"92ad1b385c7be5d952e4aa2a94a32d083ba5b9a3","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-/3UmAbs8dRuSuSDwRyxBiO0vmPKdqcz7f7kDzpv6Zt55ueUWO0shLF4x+6uIxhb2eVfRsaa+mXUTDdft9bAOQA==","shasum":"420e9d067c6b9f527c1326a5796b20a884e696d0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-jan-14-2024.tgz","fileCount":97,"unpackedSize":2910386,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-jan-14-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBKOFm10vU3TG9mrKx8GSbjGwQinna1SWrNGeC/BVKGQAiEAnQWS4jOYX0OJVFgGyXdNbSeI/x82ciJXsorINgaI3yY="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-jan-14-2024_1705192142810_0.44983578036643257"},"_hasShrinkwrap":false},"1.42.0-alpha-jan-15-2024":{"name":"playwright","version":"1.42.0-alpha-jan-15-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-jan-15-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-jan-15-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bbe26dbdbb172fcb05750ff5d52c0b6f2a8b311d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-yeXkRBASY7CwWB++dULrqWSb4ziWfynapj4W4m7rHEtpLMdB+2uPKPupDeUcw73f2COP/NvYQ2oMJ+IRX6g8pQ==","shasum":"a5365b65e34a7f02fac1558eb5dbe31360ce4a7f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-jan-15-2024.tgz","fileCount":97,"unpackedSize":2910386,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-jan-15-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT6IHXdBxhdwvJoqQUl6XOZ005h8px3meh5jhsAvNwVwIgSNzzxgyyzmQ/iahoLM8oYxFD6RjLo8FyD/BktvC/aAs="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-jan-15-2024_1705278477351_0.7029171511048009"},"_hasShrinkwrap":false},"1.42.0-alpha-jan-16-2024":{"name":"playwright","version":"1.42.0-alpha-jan-16-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-jan-16-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-jan-16-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bbe26dbdbb172fcb05750ff5d52c0b6f2a8b311d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Rx5FAm4e+pswHPMgDJpU1BBd8d390bWNOWs+r42UfbtxNZHj1dnYg/m1sCjbX1fUfcg63S/4Nzum1z2omnT4ww==","shasum":"ce5fa9adc47633d4b657b75602df8cb5e3bf21f5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-jan-16-2024.tgz","fileCount":97,"unpackedSize":2910386,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-jan-16-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4Uj6hhmLwv/WjYk+//PswiD3kgcETfAZFQTm9iRZXmAIhALhFajSEtA++V1aBsBWWmfiKPkV7PUh47RDnzBM/6pBM"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-jan-16-2024_1705364799125_0.570179180877449"},"_hasShrinkwrap":false},"1.41.0-beta-1705429643000":{"name":"playwright","version":"1.41.0-beta-1705429643000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-beta-1705429643000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-beta-1705429643000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"38d699f64f841481750eb8035f467babba868943","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-7htq49CltNO9fggEVfp0zxzCGlmkwlfwCUvsqzmapdfqGvynJadfI1LMaPaEWt7kGy3g8hh2JYGiPi1vUmAt7Q==","shasum":"ce4612d3bf7bcd3bf81e65f98d4f78888a120c4b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-beta-1705429643000.tgz","fileCount":97,"unpackedSize":2910324,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-beta-1705429643000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ8SyWuaEjtQ1QazRYoBb2BiYEJCF2a5dA6JZslMcDtAIgIopgrs7OFWk3ALWjuaUA9fiQfbOnzFhuwnmrIu1MfyA="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-beta-1705429643000_1705429765172_0.9743117162838402"},"_hasShrinkwrap":false},"1.41.0":{"name":"playwright","version":"1.41.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0","gitHead":"38d699f64f841481750eb8035f467babba868943","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-XOsfl5ZtAik/T9oek4V0jAypNlaCNzuKOwVhqhgYT3os6kH34PzbRb74F0VWcLYa5WFdnmxl7qyAHBXvPv7lqQ==","shasum":"77ab5f3a5fde479522167f74a5070e72ce884bff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0.tgz","fileCount":97,"unpackedSize":2910286,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2RuhKMJWl22QTh5+0mVqyX9txBWzirRH/zXb0sR/swQIhAKeaEX1Uu+ou9WQ206S+yCd04QeJhePWoy6iFCYHuozQ"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0_1705429841984_0.8245445794405029"},"_hasShrinkwrap":false},"1.42.0-alpha-jan-17-2024":{"name":"playwright","version":"1.42.0-alpha-jan-17-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-jan-17-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-jan-17-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a3c38bc1f96fddda13c5af18e6e626978bfd1a35","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Zv4nZtZ7jEm50OWDU0FW7qc9Mqo9Mh17y7BEs2UITBirAUZvfQBR6uTSxRXw4mgDEc6EO5QLtvB5sBWNDrQRow==","shasum":"d1d94682cd360166531a745655cdecadcec60c2f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-jan-17-2024.tgz","fileCount":97,"unpackedSize":2911238,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-jan-17-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbhluzLftbJdl5qqs2w8jwEghRoz8UUqWTsfpzyQfsQAIhAL5x2W1Wpw0uVPeoSHINC+o6YN/Oxgzew2VH6BjeJnfa"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-jan-17-2024_1705451195340_0.867172157064936"},"_hasShrinkwrap":false},"1.41.0-beta-1705516904000":{"name":"playwright","version":"1.41.0-beta-1705516904000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-beta-1705516904000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-beta-1705516904000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ece2a97702d02747301792d2a0121e4b92cbd731","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-qFZFD8DpDUFuTmgDeYIAPDTh9wRyV0RTWetvX4EB/5hONIqSlo6I94XUQfUvKWoXKZy9kIzGW0nVIfg1ePNIGg==","shasum":"a5249c3acf3205ee884464ee05b7dfd97b82abe4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-beta-1705516904000.tgz","fileCount":97,"unpackedSize":2910324,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-beta-1705516904000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrQTSmHhaf/7VTygpwgi8t4DfHyUK3JHSmPUdbIUfXdgIhAMr7K+VNDZ3oB3BJx1D053hKpZ4cenwMuREhmzUNRU/H"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-beta-1705516904000_1705517086111_0.2103619406695234"},"_hasShrinkwrap":false},"1.42.0-alpha-jan-18-2024":{"name":"playwright","version":"1.42.0-alpha-jan-18-2024","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-jan-18-2024"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-jan-18-2024","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2328b83af75801ab76bb06c214fee483cf5bc07c","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-s3xjgygsLeolMrcYky3+ByAsoo7gztOsjZywsA/j/y3GDSO5xv0VvUGVjSU+8EYv6jeWUgPIomCfmRcY26j9ew==","shasum":"8c137c4999786d6d4860aa1c80c715e8cde0b625","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-jan-18-2024.tgz","fileCount":97,"unpackedSize":2912301,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-jan-18-2024","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFXodZWoym6QISrCGWd0LdoqA1HXYqDFKNsLAsRUlRfgIhAME1/ax6zln3Wm72lxPhyIRUpkvLmygN1SOO3O4fq95t"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-jan-18-2024_1705537605854_0.5731341532884335"},"_hasShrinkwrap":false},"1.41.0-beta-1705568792000":{"name":"playwright","version":"1.41.0-beta-1705568792000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-beta-1705568792000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-beta-1705568792000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4d9f923dfef9fe05560170e508c459844fafde78","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-zg5CDyPQ/uCUIgP889edl2707qXClCSYuaBwVE48EgJOc45eSetfmnYcO2EHSkjs34EQQytEkRDQWaUPR63MOQ==","shasum":"dfb7976fc080ed9ba3888c69a47e954c1b4e9dd9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-beta-1705568792000.tgz","fileCount":97,"unpackedSize":2910324,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-beta-1705568792000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYaKAYsonIvf3rJd51a4FdNSz2HWZ7sh1XHw9XahpFjQIhAMKht/j7fjoW8C/+iyCKQdEwZt/zvJg5X9LH/R7qtxXP"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-beta-1705568792000_1705568907250_0.801995179464067"},"_hasShrinkwrap":false},"1.41.0-beta-1705607048000":{"name":"playwright","version":"1.41.0-beta-1705607048000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-beta-1705607048000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-beta-1705607048000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e5d201b459d2ac477394b58db1e1048ad5d95dd3","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-NkC0EJ5TfMjl+6Myt3iegIdUoHsOvN5Pg1aRvcCD+eMUsbOo1NUmgFi+YMOEdaDYWQAyY9gUPGmXNEo9BfkANw==","shasum":"8b1b41179afc66bcb47c13a0b53b38088bcfaebc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-beta-1705607048000.tgz","fileCount":97,"unpackedSize":2911451,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-beta-1705607048000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgjugcEL8FGq4pfzkYayc2ZnPa/2xc7txD0t+DPRyKZgIhAPFRNnLWyuX7NWebLf/q3aPzkS8dj55vRClpCzW0b8yL"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-beta-1705607048000_1705607359662_0.2644341938312438"},"_hasShrinkwrap":false},"1.41.0-beta-1705691527000":{"name":"playwright","version":"1.41.0-beta-1705691527000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-beta-1705691527000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-beta-1705691527000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"50f1f08e9c8d17edc6119c2d2db1bceda42dc7b0","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-vZvk41Q4lQrl16Jwh0jPcXc/Swm8n1leSerddzs7z0/lbPOFnyV0y4OgQqM3s5UqFgGmfdF4UppnApikOyh7NA==","shasum":"838975c4d1dcd74740fc07f2deba6369edcbfff0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-beta-1705691527000.tgz","fileCount":97,"unpackedSize":2911451,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-beta-1705691527000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECOR8pMzixmkSTAZX1mCPOpJP5+90HwgJW+vmpAH1pxAiEAseJLAbpZ9WfrL2y1ckwqhdMoAUSaG5baG2+tS0B4DeQ="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-beta-1705691527000_1705691659921_0.6376255708650915"},"_hasShrinkwrap":false},"1.41.0-beta-1705698523000":{"name":"playwright","version":"1.41.0-beta-1705698523000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.0-beta-1705698523000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.0-beta-1705698523000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"98a661824dab2e0e72353de77ec942e70b4fc588","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-6NTp0aC8z0HES2wl/LJ7FqGQ7agQuNLYXamwT1KB8WSAvItP9D5FbXvu2MM3l6GXcGlD69ZF8evbNu3NQ2h7Lg==","shasum":"9f877fd1bbac16bc3987399b5424fb380325ea41","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.0-beta-1705698523000.tgz","fileCount":97,"unpackedSize":2911451,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.0-beta-1705698523000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHPV2PZikhevhQy9V5+Zsz+3iMjxoRp97JX9LlCVffpAiEAi4Lkgpg7ZD9ulBygytMfjV4GFB1X5utwQk9+9t4vJ5o="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.0-beta-1705698523000_1705698630721_0.7026814316351273"},"_hasShrinkwrap":false},"1.41.1-beta-1705705504000":{"name":"playwright","version":"1.41.1-beta-1705705504000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.1-beta-1705705504000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.1-beta-1705705504000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8f0163f3f4cf573037b6697e15ab55a0dc910f57","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-vTB8nNgTp4hO6Zv1DEWd/30tpv83Ju9jOTRtY1dW9bF4v3syzWf4QSQxD6Fhy1FaHC/yiBywPNL724slB7ulaw==","shasum":"e250adea3ac3e784be1a13bd92fb1ee4293ba1fb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.1-beta-1705705504000.tgz","fileCount":97,"unpackedSize":2911451,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.1-beta-1705705504000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIESv86cNkvucZf4Yua8nj1TAjsMaZJa8JMNtBbsd8PE/AiAXwpAQpSiz8Cqj6RqzaMp9xg+xr5/rfhAJh1ooYbmTwg=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.1-beta-1705705504000_1705705629713_0.5798341591846399"},"_hasShrinkwrap":false},"1.41.1":{"name":"playwright","version":"1.41.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.1"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.1","gitHead":"8f0163f3f4cf573037b6697e15ab55a0dc910f57","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-gdZAWG97oUnbBdRL3GuBvX3nDDmUOuqzV/D24dytqlKt+eI5KbwusluZRGljx1YoJKZ2NRPaeWiFTeGZO7SosQ==","shasum":"83325f34165840d019355c2a78a50f21ed9b9c85","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.1.tgz","fileCount":97,"unpackedSize":2911413,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAE/V52VIYOYrxTBZ8KzGnp6Z0MhvUE7NNsKwSrxMHeNAiEApV4qIcFbgy6WTNeUftStw+8b+XC8Adkj2LttC9QaqaM="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.1_1705705664608_0.29860499616596226"},"_hasShrinkwrap":false},"1.41.1-beta-1706549589000":{"name":"playwright","version":"1.41.1-beta-1706549589000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.1-beta-1706549589000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.1-beta-1706549589000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7a72adc33c2e1806ba47c4198d84a53a8656e66e","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-53bUhNyQDkCQdGPLWNd7TGkro/rYVotyCjfoZZWP9M07+YCVqTVGHM+uNfyYmywvt/z/f3v4mXuGUH+y7W+24g==","shasum":"3b5eed86d55e1277f43840c1ea5c417e7e93076e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.1-beta-1706549589000.tgz","fileCount":97,"unpackedSize":2911451,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.1-beta-1706549589000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB0OndPdkmHnI3m55HOQ++xgt0ZElu9NMcRiQNBMFAS2AiEAuCaHlPObN2MvUfoHliaT7JbZ2C5ecq/7adX3MADxK/w="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.1-beta-1706549589000_1706549708364_0.5145126673937466"},"_hasShrinkwrap":false},"1.42.0-alpha-1706562895000":{"name":"playwright","version":"1.42.0-alpha-1706562895000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-1706562895000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-1706562895000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.6-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4df4054f19c1ce1e8a2f0095a3766a1afe3f0112","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-UgW0q7MpP4FHVsjNt7AnDtP4r+Ke9/H04qLGwWSsggX0WsJ66kyw8SLAz6TE5DaKLZqGJCCuuaYRM3bTj1z5IQ==","shasum":"c99ca20821a777b1e199ea25d2f5faded17dfa32","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-1706562895000.tgz","fileCount":98,"unpackedSize":2933015,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-1706562895000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7UcNZzWiEd9NtW1oDNanoEjpPxWV7NOSLG6dGjHzgdQIgXlLfnAbbngsZrZ+JNCPQTOh+ScJaYSxlhZH7jq9YhXA="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-1706562895000_1706567055384_0.6412877658533978"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-01-30":{"name":"playwright","version":"1.42.0-alpha-2024-01-30","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-01-30"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-01-30","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.6-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"14f94fcff52311ba2f313283087c70f303e68887","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-0WslPuJ+Q0EBA8epxjPYkVqqawQJek831dDaqWgHArCoe6jnGVP6ew75W7dzY1CGVh1jpqQoGj/mSTRDw/bhxw==","shasum":"c026eb2284e4078334b8567b7c886100bf9845bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-01-30.tgz","fileCount":98,"unpackedSize":2932949,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-01-30","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWvpkkxYG9z8fbfhZHlFutdGq7Jgk6CfpPNar1lkOrLQIgXuKlL8QNeBI1EJZlXg7D6oQR5wiKkJXvh6sx7Jbriws="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-01-30_1706574312912_0.632241007169795"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-01-31":{"name":"playwright","version":"1.42.0-alpha-2024-01-31","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-01-31"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-01-31","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.6-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aff6cf3c83d5567ec2c662eebdc246090df39982","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-8hoatzgmUSEJqZ7PwVWnSoZnWGFXgVSiVjTVww+Ieb9Na12iI0QcwAz+9oklJjyq5espeY8kwVLVSaZJMRcchQ==","shasum":"8654532a44bad17704fc44b4486fc579249d242d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-01-31.tgz","fileCount":98,"unpackedSize":2932949,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-01-31","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgYTtrU+4PLyrhC0GGhnl0eXBmv2+1Fk3HrDVD8EfkiQIgcGX37SgcPO7NNO9f6UBDc8VtOX9vaCSjzCVq1UNQOpU="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-01-31_1706660748240_0.23626639264958094"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-01":{"name":"playwright","version":"1.42.0-alpha-2024-02-01","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-01"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-01","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.6-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.6<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b5082e10fd5e5ee6da36f8c168fe927a4552ab44","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-E/HlXmLPBSVLrgJdkG0ys2gzbYb2uNtFnJyZohG7UTtE0E+i+3wuPdpFF2DRto+z0w+WQ65DlSdcXYnRJTfnSw==","shasum":"28a69be25fd2006a6376753ae0b8622f8d34e717","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-01.tgz","fileCount":98,"unpackedSize":2933629,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-01","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGruHnNu0PNykP0SrawUtzFJBpd2aoBsJg2Qpvgk3onxAiBKjPOwSt2PLG3ZFz/XIUGz9LXUjdoZ5O7B47l2Gyj+WA=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-01_1706747237562_0.40836774352631733"},"_hasShrinkwrap":false},"1.41.1-beta-1706807510000":{"name":"playwright","version":"1.41.1-beta-1706807510000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.1-beta-1706807510000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.1-beta-1706807510000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"414affaed4bb879a55277bd59cdd6466951ba9c8","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-REwPpi2Nq873qnKU2Z0XvCAeZ/QlChzERhQhWvY6HrPj0EM5GTmBHvxcZc0Fxvo4WQwLb9HUAQt1SjI8zM1sgg==","shasum":"a75a597973398370085ef1dbd2978e8fd215577b","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.1-beta-1706807510000.tgz","fileCount":97,"unpackedSize":2911451,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.1-beta-1706807510000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQvRidu39Zp144v+HiyZn6dYrID1/4mfAB9X+1dvJxFQIhAKmKuIJNhnQOZn+GBKqucXEwoxuizcbdvXhGT9A2WW3Q"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.1-beta-1706807510000_1706807604274_0.5465088034837113"},"_hasShrinkwrap":false},"1.41.2-beta-1706815456000":{"name":"playwright","version":"1.41.2-beta-1706815456000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.2-beta-1706815456000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.2-beta-1706815456000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-121.0.6167.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-121.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->121.0.6167.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->121.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a4096676abe3f00b4924267449bb52086569e302","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-EJ6BKAZeQXeMbCBnN2ZUhQCXG4uhRfDSVcJYV8HUF9+wmjK1/EZobuyJLbk3kUNza7Hqml2pC+2rgzMv5ZfRCQ==","shasum":"18ec218a73492e54da159a64e9cbbf2bcd9d6ebb","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.2-beta-1706815456000.tgz","fileCount":97,"unpackedSize":2911451,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.2-beta-1706815456000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDjRXKWUqqLKLrBCL3UDT6rnzdFFQuc7OqbUBZmKTp+gIhANJdWmhsDmOJDa0VH9A5siMGuiYLDzBJrT3lSyux03WG"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.2-beta-1706815456000_1706815559080_0.3290820321491561"},"_hasShrinkwrap":false},"1.41.2":{"name":"playwright","version":"1.41.2","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./cli":"./cli.js","./package.json":"./package.json","./lib/cli":"./lib/cli.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.41.2"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.41.2","gitHead":"a4096676abe3f00b4924267449bb52086569e302","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-v0bOa6H2GJChDL8pAeLa/LZC4feoAMbSQm1/jF/ySsWWoaNItvrMP7GEkvEEFyCTUYKMxjQKaTSg5up7nR6/8A==","shasum":"4e760b1c79f33d9129a8c65cc27953be6dd35042","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.41.2.tgz","fileCount":97,"unpackedSize":2911413,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.41.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnKFzChzXiYZkT4nePL15QHTdBquk5efwxJHFadohrLAiEAoEkdzH6+bjdDyiwPNk5pNqnzk/IUZcaperNacgNaKNM="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.41.2_1706817822068_0.12172222520629572"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-02":{"name":"playwright","version":"1.42.0-alpha-2024-02-02","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-02"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-02","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d56a50245b3c47a8a6bef33a20ac6ec4864df52d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-AaMYtzJFFqBhuc9xetcdKQnlnt59wvnk/romauAtnGCgiuKdrID0LYg1BFGfbS/8NtDEQwnr3hGlXSkKW6Ay4A==","shasum":"40fffd3324d5f12296043ae7d0cdf8d2bb157cb0","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-02.tgz","fileCount":98,"unpackedSize":2933857,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-02","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFw7yDS8IUJYiWcYaODMWu+Rdv3H0ldCI5WHtIw65EQwIgedtJ8SPA8Ih97SJE7yNcUEMeUEkpPonZgmp8H4Ftf9M="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-02_1706833557582_0.8262945824037857"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-03":{"name":"playwright","version":"1.42.0-alpha-2024-02-03","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-03"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-03","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"dd0ef72cd8704a9110b5fa6b1d18624f76fa7bca","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-+ULhaKNp3VBwUMCfI2+uM5nDpxRlBv9t+mS6jpeBw2oJ5Y/qSM29oVsM0cxjkvUuU1OQVOyRs1EYtRXq/NahDQ==","shasum":"1ccfbb6eefe3171cd93ec6c2067fdaf64158c307","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-03.tgz","fileCount":98,"unpackedSize":2932680,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-03","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhstXd5CS6VygqH6teWl1AxH0yNhshXLJmo/8MnvTMlAiAPeFbv6fx4oOQzcxMdi5dS4CoOjPSOdUnqe8Ljwd1SYQ=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-03_1706919950618_0.7432240537075585"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-04":{"name":"playwright","version":"1.42.0-alpha-2024-02-04","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-04"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-04","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"79e379fc11ee7f07f6538f0f0aaffe6175fa5033","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-uOxM87zuDAGHrqbm9sGUQCcrUS3ODmP8xQMjWRRTPZ4IQpTuqBfJgKuubN4TI9jB7JTHt7Q6jDsMNeYaOjhNYg==","shasum":"835d4662dd3b03a7b348002a1fae9b6717b93c33","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-04.tgz","fileCount":98,"unpackedSize":2932680,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-04","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhEdNggTPWlKvhwbb629t6/tHQt74snedi1vC+0NqMvAiEAxII5vNtzJ+zHr29anvw0YZz0Az+eUweINl1opaO53Qs="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-04_1707006481469_0.08102162795618661"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-05":{"name":"playwright","version":"1.42.0-alpha-2024-02-05","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-05"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-05","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"36eed69fe28e9556395f209a92b66bebe699a28b","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Ogvw0QdsMDz39l7KcmCK9jw/Et0A4l6UvT4SoW+tUhcmeXEYYTfP141d41cEhoCwIoptObazCBHUxVK8tPk6tw==","shasum":"555423cc65c2ff72e1ce2956bdfdd24c08752fc3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-05.tgz","fileCount":98,"unpackedSize":2932680,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-05","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFdaaCfzhiiTAxnow8ouF2Wh1O5r5ngjiudNKd/pWeVbAiBYgoHlqYq3DyIw+yTfz7mFKf4/vrYIZxrnpROjph6aCQ=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-05_1707092793573_0.8544229282031648"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-06":{"name":"playwright","version":"1.42.0-alpha-2024-02-06","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-06"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-06","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8c007fd3fc177f748ef4345291d05083d6446f90","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-QjJJ3Yow1xquB6pVItnStT1w7IqGlaivVhleWCLNnt9cxXmwDoa35lXnDGLXxXEZi15IH526DIn+r1O60TgwpA==","shasum":"2b05909fabd7c5a4316d02fd23ef951ebbe71f6e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-06.tgz","fileCount":98,"unpackedSize":2932687,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-06","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAlq4PRMYFhlLXGLDRVuf1URA7hTw7JwcsCgRgnOgAv/AiAG9dEgTSD1yHffP1ovG8iirHiEJF8xfoCYRLeG5V1ZDQ=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-06_1707179135816_0.2403863808364115"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-07":{"name":"playwright","version":"1.42.0-alpha-2024-02-07","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-07"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-07","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9e285ce919139c7a2b94edf976c86fc1e2757d13","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-NdhYBIFXSwGzP3iBCNZoNf2UsRBf/HEL9qkUeNhrO/IN4NJI6kb5Qf1aNHF6mLw3enjs0imAWwdYr9Cl8ePBuA==","shasum":"bf57471567b713716a3cf4263492e1a3c4b68255","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-07.tgz","fileCount":98,"unpackedSize":2969299,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-07","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDpBVYjw8JV2AlmMTcTkpRQH78rbRD/Y6gB1yGOsu87WAiBh5W5cCQ0RuLva3IMmK503+UrSk2sY0XM1jFyLd3j8hg=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-07_1707265462449_0.8234543431725423"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-08":{"name":"playwright","version":"1.42.0-alpha-2024-02-08","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-08"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-08","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.18-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.18<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"58f580dbde4d62b7001ff84b1cd5746a53eaf3c8","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-AJAY5Q22qmN+bDswVE+AYvG5m5AJA+cI6kPxGnxAstPvE+dvIFKXaELUeVU1eu8iYLPXt9RfMsJ28EfWxFkNMg==","shasum":"cf3e1248c9478106884b8e7aa7f5cede93edc795","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-08.tgz","fileCount":98,"unpackedSize":2969299,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-08","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlm07nqRXrr0sJbDybsIMtkFM759aJfO2ubXhVZ61M+AiEAjA/Oa8xAmCojuYoNfnJV96HjFtvvkhgpGfzdtw9ozeg="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-08_1707351923211_0.8303904338490133"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-09":{"name":"playwright","version":"1.42.0-alpha-2024-02-09","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-09"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-09","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7a86bf4af62fe3e44a41f94c7a4ab7f645c205e1","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-CK+FRBWXNcQ87L+maCYsrr4PyvIeVbKv6Dr5A9U3p2DkwhJn0FucL8zLHD9xDqsJhUJeHfu1GIfbmsWKyfeWAg==","shasum":"f5ad05c1945d74305a77b4b2707fd866514597d4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-09.tgz","fileCount":97,"unpackedSize":2997674,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-09","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRxYbx/XkBOggJwk9l0LMXozILaKFEpIkG6SAA2nbw+AiBzSatCjKM/FvGJi4D+U2rjOOFYv/PfKbZw8yhAdZdvlw=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-09_1707438307597_0.6642450323053237"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-10":{"name":"playwright","version":"1.42.0-alpha-2024-02-10","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-10"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-10","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f0244b8a7640ef1e0abf5588dc9780cca8bcd715","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-hXmxlKbweSO+SZZZV/svZrSO6/RPBpawsgbRau7BpJvk3eHZGFQfuIeS7/z0FnRaU4aYKtULvnrfZDDf+1TogQ==","shasum":"907d3fac7b48c91c00b3d22f885cf700062e7347","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-10.tgz","fileCount":97,"unpackedSize":2997773,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgZ5z+LCPSFH+eykMxCYv9gfvvhbXRcIEKJHvsH2piRQIhAPRuWRD3StUBPvWWZKiNfxMrh2f08sZ3qlm4MculPsQR"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-10_1707524669104_0.029552330807355975"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-11":{"name":"playwright","version":"1.42.0-alpha-2024-02-11","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-11"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-11","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7834beb9320d7f5bc78f9f8095370112fe3eedd0","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-WyOWFh2tP1O8Lb2vnK46jt4C0snBKXBk1vkhzFnccpzY7Dh0cNVFqwCKUz7koBzfCdtPRah1VqVJPZTWIri1+A==","shasum":"f3079a49ff60b07c77867b2cef070c56745262e1","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-11.tgz","fileCount":97,"unpackedSize":3001167,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-11","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFOq1TbLgX2CxiZRQG4/Lt+5UCaYfJ6LW99rmKTZNKuHAiAOkCBjAEk/YRtoX4j2sX+XysiN/3uhc5IBFBKVe0NehA=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-11_1707611299178_0.7066272289577018"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-12":{"name":"playwright","version":"1.42.0-alpha-2024-02-12","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-12"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-12","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"7834beb9320d7f5bc78f9f8095370112fe3eedd0","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ac3JYZjrqYmgWTUgjfEHxP0cgW/V48P5V4/fyNm25OjTpPqS1lKmMR2FVhVnIlzDImAXvXGF2/NXJA9Qt7rMKQ==","shasum":"7ac253d3a150a0350eae31ee8c9b2f9fc103a241","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-12.tgz","fileCount":97,"unpackedSize":3001167,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-12","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCazgDHOWWY5/2T+485n6zS6A37Smf1SG9I5WC64Wif/wIhAKUcCpZ/KbGuJsmcqB8Q8DXG7t+WZWW34nkamvyXSYc0"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-12_1707697580556_0.961552795016301"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-13":{"name":"playwright","version":"1.42.0-alpha-2024-02-13","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-13"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-13","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b947639d3ab84d72f4605500b28618ece58fc090","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-XVjFlbQJUCvCwlYsdyO9t86HiLBYYUTmSglb35seQhTiAEf8wHwZ37gAth/n7yGHmjknwhcxc4yU11M7RiBv5A==","shasum":"7b7150bec6ccf8f6c2bf651fc63402e39361375f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-13.tgz","fileCount":97,"unpackedSize":3001167,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-13","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+qK79Ts4JExwHGOc/u1Bk/jQ3qVMYeePZIwo6GEWraAiEA1oeWCTF3wQz1MjtUoZ3UpjMpG9/UTEysY9lsM4jZzS8="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-13_1707783958430_0.47497226632440803"},"_hasShrinkwrap":false},"1.42.0-alpha-1707816346000":{"name":"playwright","version":"1.42.0-alpha-1707816346000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-1707816346000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-1707816346000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"30557ed28c9f89ab1a4329e0e55f187717f1ce24","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-OHqJYQHjbM+mIy4j/ByPpINmMI371qmyF2Fb6ET1H1b4Ou8hMq415tVv73yTv+3mQoDom/QmmlgAldNkWw2XoA==","shasum":"4ed5dbdfa157c92ccebca91b9fa04dbba0cf95bf","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-1707816346000.tgz","fileCount":97,"unpackedSize":3002126,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-1707816346000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBpfnR+cUkXqf2mt8pm6TdoA/GGnOaIL1Vd+UJVX0F25AiEAyDSvpUajVXdwi/YrL9/e+m9gHh8ZyiPej8pAUiXqQJc="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-1707816346000_1707820652547_0.3496062445570318"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-14":{"name":"playwright","version":"1.42.0-alpha-2024-02-14","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-14"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-14","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"217c0618df68985249a282c31954ac5f39cc0b87","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-IuEWenZiW5hc2izKUoGF2cfIq7AfNSo+fR3zUF6bD+OcH97+chRf307Nr8D2PAYGlVSCTTJTzBXf2fiYncMl6g==","shasum":"885c8303b455fad9234a2afa898606d150d6e708","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-14.tgz","fileCount":97,"unpackedSize":3003149,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-14","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsWQui1X4PzPa0gvqZweNZERnR9zcIdBeLXXI3uFT1VgIhAL6qKudm+B0HhlUFc/dXpJXlZDUeM5zBRl6tygrQClgY"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-14_1707870316631_0.900471409616898"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-15":{"name":"playwright","version":"1.42.0-alpha-2024-02-15","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-15"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-15","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"93a2c00a1daedc0557961b57441cd78dd688b505","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-x6+9nbk0hwRkPnGskjrsojd0pulv5K2UDSHQZUwEWlLVA0db2SpOWIV0x0lcDfjYkcVFNwTRUJ6rtkeNrsozKQ==","shasum":"27eff5a04d7431c6d9010efb03b24c38aeddb77e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-15.tgz","fileCount":97,"unpackedSize":3003149,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-15","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFvWL4YEvy3PGhky/WtS0du0fwyvLdAvWeH3qGMTyUiiAiEAuYwkWsszUm57IpPsEOeQoL9Cde9IPS5BBbGjKgKWk6g="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-15_1707956712230_0.5679168534624262"},"_hasShrinkwrap":false},"1.42.0-alpha-1707967288000":{"name":"playwright","version":"1.42.0-alpha-1707967288000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-1707967288000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-1707967288000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.29-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"edc1c13f3125bdc7266d5165d4b627d04e47ce80","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Wt7sZTVccJPwaeb4M/n3fJxijQZn6IOC4oIZp+a7Q9zuLgWpLxYTbJdE3207Dwo5oxB8UJEWxz/8zBJyMJ8Orw==","shasum":"078dc1420e17a74ec428ed67f21be871e3618bd9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-1707967288000.tgz","fileCount":97,"unpackedSize":3003155,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-1707967288000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrhhDbeaIgzt3NliDnjBjN9Xp7czoi1oa3PpwyUiM/bgIgdrftrUwxhg0phXI7RdurKTSAofMSijxJTlWMixZ5kHo="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-1707967288000_1707967428984_0.07213775031031622"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-16":{"name":"playwright","version":"1.42.0-alpha-2024-02-16","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-16"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-16","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"05e6b5b5c747dc2af6abe2df70228a8fe16777e1","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-IsVWTG6HB/TWaGfZlrgwDvJ8C6PAtcIzfcrMEe4soxLRWzkp7Imohxz1xJunDDFH2KXwNhL3TAVLwG4U2vEy0A==","shasum":"fe210feb4ebb1b7530458248eea853a6902df433","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-16.tgz","fileCount":97,"unpackedSize":3002227,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-16","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD43+5kBK0t27E3SrR0mNJR71fvMwD9Tj6ob7aNnRRu2QIhAIYBaJpmSaCrRzO9GNt4KgwhDsM0ucu7V2sSe4Dc5kaL"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-16_1708043106812_0.6592594668542586"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-17":{"name":"playwright","version":"1.42.0-alpha-2024-02-17","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-17"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-17","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"4f1d8cdd63d07dc6f9c14b389675947cd80d99ce","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-zjjwdcEHbXBbPmpfUwA0PVQoZgCAvzlnihDhEAJgzW3vnothNHWBbXJU9nxQlBo+IzoXT9J1M32k7O2hxYSUSQ==","shasum":"07dd9ea99bb91eacd51e6b574a3d8d12212d0a62","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-17.tgz","fileCount":97,"unpackedSize":3003451,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-17","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGdaJAQvFCPavy9k92kbOhrtZT87UMsPqAaW1MHfL4bAiEA4zCXiu8v48S0MhU3upAhgutxppiEzIAZzAfGcc05m1k="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-17_1708129524324_0.7169372532554645"},"_hasShrinkwrap":false},"1.42.0-alpha-1708140911000":{"name":"playwright","version":"1.42.0-alpha-1708140911000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-1708140911000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-1708140911000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ce55cdffb8375b3d4b09e543f69ed5eebebd59c7","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-GCFlIh12jliiy9XAjtUKczCynnHVrNIlw6kOFShD0okiUFQ51e/cQNVuhlO50wt1pPqVhvZwwkciOwZVXllFLA==","shasum":"e1084f7ac86db7056cb72b083bf143af80e8a057","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-1708140911000.tgz","fileCount":97,"unpackedSize":3002880,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-1708140911000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpkL0WKm3J49hLUI7+QHqfY80hXk4h4AIC8PIFdWqDQgIhAMBYkHubvyDmRHTlFHZgzkHObOPg5fio2eyARpPnXEO+"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-1708140911000_1708141035447_0.996526809743949"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-18":{"name":"playwright","version":"1.42.0-alpha-2024-02-18","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-18"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-18","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f414227ed8fdeb2735c35a162bebe957cc2951f4","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-OUY45l/czTBaD6d7FYTLX0tcx8IPOaKiWHA+10r02anPjw5n6Fc1mWzSCG/PNNlsit7cKSaoulowGddDwxYjQw==","shasum":"1e0c60d71dec5181f03f6a22b1eb5fb7f828f581","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-18.tgz","fileCount":97,"unpackedSize":3002917,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-18","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESSaPdaiaisLXToh1DOWNa7460t9i9SMlQFejV8/8akAiEApgsH7jnBAGYSL3tUA/gXMRRHRXxYUjZ0C+ujv4E5+Vk="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-18_1708216050924_0.9450706343880757"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-19":{"name":"playwright","version":"1.42.0-alpha-2024-02-19","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-19"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-19","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f414227ed8fdeb2735c35a162bebe957cc2951f4","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-tSXMUICyzDa1uISAR1Fb30ScMQq5nqwGiIFqj7YRX/dz/dX+cucODFixap1IyJN8QVnF9lhS87YL05h+o9jI9w==","shasum":"5ec3ec71e3996145cc1aeaca3cc19e05af5c7e6a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-19.tgz","fileCount":97,"unpackedSize":3002917,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-19","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbI3j3rYR7gErZoLrsw/1YIIS+sa+qSECy8qdTzw/RKAIhAJK2SccZ8JStCnCkZL7cuvtfdmwHY36v0Xp2Zzoal3lf"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-19_1708302387145_0.218772740872355"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-20":{"name":"playwright","version":"1.42.0-alpha-2024-02-20","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-20"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-20","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e06f7a881d2fcb10b25b769ac358c76483f4538d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-jd4ogBEsW35XsWbdFWzSYaxD+ToqLyLdQOjZtSK7oZtxReNaE5Yr0jb4dLticNXFZNAzQrf1viirktx5R8yhpw==","shasum":"4c905c512050baf2b6ddbabc0a1e3ec9b6ba8c1a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-20.tgz","fileCount":97,"unpackedSize":3002734,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-20","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkLWy74lboFRbJAmwz3bS6rRBt8nWWBWp+BgmWZ54GawIhAKSBGT2j8E66cOzO9B0sn7Gn0MwWInKg9ailmtOoe3+J"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-20_1708388718799_0.4341805767483895"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-21":{"name":"playwright","version":"1.42.0-alpha-2024-02-21","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-21"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-21","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a023cd1f5723b88e064a914449049b6b56842769","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-c3hjB5jcvLKJUEER9i4Cb27cz0SYFyLlk4RjG7Nqe7/idtsD8+7xqygQ8cbgaA/+AOLavt32uSrbhqUeZpBgtg==","shasum":"8ad4902f904868545b52380da28dd50ea4caca38","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-21.tgz","fileCount":98,"unpackedSize":3007793,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-21","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOmskKdk7atGUF1kTtXnqirdi66eRDQHaTzy3gllXoAQIhAL43sGCv2NY8L5GpWj/e9mNYx4KYLG83i229WJ8tm2Rb"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-21_1708475127827_0.25211304678380597"},"_hasShrinkwrap":false},"1.42.0-beta-1708467899000":{"name":"playwright","version":"1.42.0-beta-1708467899000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1708467899000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1708467899000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.39-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a023cd1f5723b88e064a914449049b6b56842769","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-4drp0kSirSQP65dqrTY27uCZ3bGFgp4+mb5a/pQV5B7iRTalModxUZe6pEml5EzEI8+TYX18SZEylzTk7x31Mg==","shasum":"b14d6d3c8b48df972dd6c2ef860fe5ad194bcb98","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1708467899000.tgz","fileCount":98,"unpackedSize":3007797,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1708467899000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGTVwJJqNm3YRbx49XEuWMXvIQsOdXnF9M+FvjyzbH8xAiEAghRGI80gD4U7TrChnHZTv1M0P3td+YDPGargRMWr3UA="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1708467899000_1708479221901_0.7226736520794339"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-22":{"name":"playwright","version":"1.42.0-alpha-2024-02-22","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-22"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-22","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-122.0.6261.57-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->122.0.6261.57<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"ba72f7e429e5303707cec5e4d879d3d34cb4613d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-CwqlDSRHBwm6ZHf7YrPIr/gg/XfTSXUhSMXgIkjaCuxxHxIX+BnQb4cbPOjOfYdKCuVSQRvA6lXs/1tlbuZHOw==","shasum":"f67e73f2e6a93e4404754f9ed3c27daa2b12dca9","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-22.tgz","fileCount":98,"unpackedSize":3010234,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-22","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9Y5mvQIavP1q070jtXG6Wg2MbewNWOLFIMEomlzax/wIgEFcrCIA1vRBLqyGpmQKcEcBPaoaaJ2CqjFarLYXgNy4="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-22_1708561528174_0.9662275564568648"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-23":{"name":"playwright","version":"1.42.0-alpha-2024-02-23","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-23"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-23","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"2ca45ff948a27b0425f0f67c4a9b066d6f6e7013","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-yINF6Et+Z3Hf8QRQasLGMUOJ90bCnQI5WiHJWZ59xCFx2UBe+/0mrxxXcKCWZ3+febtIQD7ohDrl2pB5n0hphg==","shasum":"19f079afc483fe953c4b8e9bcd9ee988b6e99227","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-23.tgz","fileCount":98,"unpackedSize":3010254,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-23","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNDFviNJnlHM7F5NL9u7Qzc7SaO6ZW9T9yrJbT7aiY6AiEA0uDWWmyfA8w2gMsu2cLmkMJCiMvk2USE4p7UYRk63S0="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-23_1708647911618_0.024511416510088813"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-24":{"name":"playwright","version":"1.42.0-alpha-2024-02-24","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-24"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-24","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-122.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"6b5e273b6d64c80242d42b9f64f42ae29b1eb277","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-vp1qx0YtD5rGyXqEJpsrInenc2W3B0RsSVliH0krl1TAvcymbi38EuXK7C97odhmumeai1cW5W6YVGfGnUYBsA==","shasum":"29396aae49ecdedd91a338788740edf99980f76e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-24.tgz","fileCount":99,"unpackedSize":3011670,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-24","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt068u8NlrXSPlIMlxfj7E3kAm7bgKqncMhDe/pDdu4gIgWP1dmRsm3oQaf0ILs2xM5qJSE4CxOWxx0jx7tI+6GV8="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-24_1708734257256_0.6555317990766079"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-25":{"name":"playwright","version":"1.42.0-alpha-2024-02-25","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-25"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-25","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9a38aedf09f203a58008756e588324254abaef9a","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-hnmDyVinRCorOlvVLSOYDOVVQIPdCz4/a4hVFkjM/eJxi8loGIa0AEEl39OPr+Cnprg7p9pT2oLMtfEYOibSrg==","shasum":"d2c8a5d9feed0158fdf3d7ce1e915ff311af8225","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-25.tgz","fileCount":99,"unpackedSize":3011670,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-25","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE8B1Nt07xQFDW9D9OblZTTTo3WZeEKfoEEKfJcxWQQZAiAxOHci3SVCS5hMHFVkL6Np5EqVZEn7XkmFiNK6dL4OYg=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-25_1708820836487_0.22326435928240418"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-26":{"name":"playwright","version":"1.42.0-alpha-2024-02-26","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-26"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-26","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9a38aedf09f203a58008756e588324254abaef9a","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-NhrbTSAE1wBP+eCSFz2YecHucAESJ2CPdr1nO2KiUZpfKYR64hUEMva8yZg+dZwFiFMOajt49mYwcGir6r7Ifw==","shasum":"7b559a83539d94b1af850e0fb5114a1bf5b0e631","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-26.tgz","fileCount":99,"unpackedSize":3011670,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-26","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHt+az8Iiq8k2s8R4+9RbtTX7+N0p6XwHHPhzxZbHnU3AiAhrPmtTtyiej2mIigJ0wCEFh19R8YA3G6oz1lzfnF3uQ=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-26_1708907191707_0.16502455374717262"},"_hasShrinkwrap":false},"1.42.0-alpha-2024-02-27":{"name":"playwright","version":"1.42.0-alpha-2024-02-27","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-alpha-2024-02-27"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-alpha-2024-02-27","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"c1421bc9f2be2388b0b3d5fd5c601977689fa897","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-5iTVvjVwGxOAFXbn8JhAHlZD1Ebo8FA19Iwdd1V/Nu+zBghU/UPFuo88rCipuAE23/sITsErVQks6ijVrs32kQ==","shasum":"bf2de0492331c84a167e2bdb918c3100622bf0ff","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-alpha-2024-02-27.tgz","fileCount":99,"unpackedSize":3011421,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-alpha-2024-02-27","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGcHcnzKF+0s8DIntkttqpsMGgeveIkmSp8NN+fYvV3EAiA4wqm7bleqTwbPW+/VIVbk0xywfaUTglACV6XXQY8d5A=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-alpha-2024-02-27_1708993533133_0.06238488890614491"},"_hasShrinkwrap":false},"1.42.0-beta-1708994059000":{"name":"playwright","version":"1.42.0-beta-1708994059000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1708994059000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1708994059000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"77e1b025521912c4930f5dcac9a7ee492e0c3549","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-+lMRsLfaLx/Okb3qH9r8eUfDBQ7Vq0eTLehxG9plLorSBQnU1b9kQnmchV3jl2hjm9Oh7vNf/No+vgsRBuj7/Q==","shasum":"78fae0b8b8fefe1566b9e505dca465b699d57d5d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1708994059000.tgz","fileCount":99,"unpackedSize":3011425,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1708994059000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDh6+qG8c5ZA7KfTtl2N8rK3nUkExYI/RoQYTJxoVGNpwIhAOwivh19F+xNgUimZT6mEORvdEFPAib85rk7aBlGjztw"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1708994059000_1708995090317_0.5123131423287304"},"_hasShrinkwrap":false},"1.42.0-beta-1708998003000":{"name":"playwright","version":"1.42.0-beta-1708998003000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1708998003000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1708998003000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f5899c155647da3c358b5a1e152b619518fb55e2","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-9UA/4UInFt4HWkqlXiTcENQ6YPoS65IGE9d67wWCr7JK6OdfOba2cM+mr6mV3qAykptWZ8DVA2Jd9NLjV1RELw==","shasum":"92eebe109474b22f3f56a481b0d7648a8c1a1f2a","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1708998003000.tgz","fileCount":99,"unpackedSize":3011425,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1708998003000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUZFcD3O4+LXOj5yxknUvCEtKYstK2Uu/odY66bEtgoAiEA5iBqpohLbErsbYtWhv2lgKQp0O+chDP+Wm6uvAgAyUw="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1708998003000_1708998123924_0.7202847045560969"},"_hasShrinkwrap":false},"1.42.0-beta-1708998235000":{"name":"playwright","version":"1.42.0-beta-1708998235000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1708998235000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1708998235000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aa9f6fb71872b8bf066209ff229a0fe9c43fe91e","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-Iq85EGhAz0URDVtl9vKDVE0FjvEvPVs/46C/jWR5JpaI9tEsuXYoA1i1f5xA74ZhatskHigpuJYbm2YpwO3mIw==","shasum":"b35fe81aaebda048dc3f13b6e37925926b60642f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1708998235000.tgz","fileCount":99,"unpackedSize":3011403,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1708998235000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD55OUD7P8W+kOXsew1GkmAh3CDF8hdJniF02USH38HtwIgZLupz03RzqqSYbO98qwllvRaoBYn0jQfOznttcBGaQQ="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1708998235000_1708998361766_0.6845415566648172"},"_hasShrinkwrap":false},"1.42.0-beta-1709049149000":{"name":"playwright","version":"1.42.0-beta-1709049149000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709049149000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709049149000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8709a3a24b22304a2be67ac5688a998e71a32c5e","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-ErGVkMYOn1ksj4ZPwSCgOLZ58oGR6gqpfb6SUKeGlKvVYgMP3/7dvUphmPTjMMgD8aRg0GM2/E9JDJAXlKMbog==","shasum":"1cb68c89d9783ff1645c377b213eb3778eb9cd0c","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709049149000.tgz","fileCount":99,"unpackedSize":3011403,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709049149000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFekQhe6m+YZO4Qr4M4AhiCGgZLdnX15n9cbsa2LlWdAiACFpYW5jKCrvUKUqdb2jDnXFbDbZAWjSu4uhKJGc4T2A=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709049149000_1709049266381_0.8285416824244338"},"_hasShrinkwrap":false},"1.42.0-beta-1709060724000":{"name":"playwright","version":"1.42.0-beta-1709060724000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709060724000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709060724000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"e7f0635c17ac5c178b0960cb35f849edd3cf69ef","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-qpWqkfVO9dTpcCgHEgZwON3bCHtHsashe6WV1FoqgLNYoE820uVdMvfdGyrN0WsB7DlHXS8k9jIdD4ocvA3gyg==","shasum":"ab06947befe98b7e2195f95a3edbba7051aafeec","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709060724000.tgz","fileCount":99,"unpackedSize":3011403,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709060724000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLKCGIKU73XN2ike7g4kche2VXnls+XPM8ZbA6+QbSvAIgUN6gKjz4BbE7029mjufm364xTMwvIn+t5U5ahmI3nKs="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709060724000_1709060881896_0.682955158114005"},"_hasShrinkwrap":false},"1.42.0":{"name":"playwright","version":"1.42.0","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0","gitHead":"e7f0635c17ac5c178b0960cb35f849edd3cf69ef","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-Ko7YRUgj5xBHbntrgt4EIw/nE//XBHOKVKnBjO1KuZkmkhlbgyggTe5s9hjqQ1LpN+Xg+kHsQyt5Pa0Bw5XpvQ==","shasum":"6d4265b124d2b87432083aa7af30c46aaec5e703","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0.tgz","fileCount":99,"unpackedSize":3011365,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3ifA3K5LPDg7MqbslEMQaVg+v6Em5GcsW8qYD9HJWvAiEAlFVK1r2ZwlqNRnEUWkk3yVXEI24Odvlv7YkwmvqQuo8="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0_1709060911439_0.009511039093257567"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-02-28":{"name":"playwright","version":"1.43.0-alpha-2024-02-28","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-02-28"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-02-28","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8264bec01e778fa9787352a4158edcc10eb8b1f7","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-tpuBNZQreTxR1lzXn7lVmIWr6rp/wyEEOQjANfaLP6vtsnUKko2zETWM9mVvmAnKGkWQzYK4YMrqjcuMCF82Rw==","shasum":"bfebc2d987ee3e259b6584329afd20ea108ec097","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-02-28.tgz","fileCount":99,"unpackedSize":3011399,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-02-28","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWjy22Ibsw9N4AZLhBvcWBZUzB8WsZCWaEcWkj/5sg6gIgB9A91Q3+NcXH51B3OHzKdEhvVT2+BX+k/qYInBLCBO0="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-02-28_1709079946809_0.4508293189338317"},"_hasShrinkwrap":false},"1.42.0-beta-1709158069000":{"name":"playwright","version":"1.42.0-beta-1709158069000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709158069000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709158069000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"84780b1b750d343cf6372c5965582f43e75cb8c9","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-2aBtP3WMxtHKZ+0V+BXrpZs0bxPRg/KR9+I6a45oVFHN82VJ6BxP9J6UaiQLuDG/S+TnedkaDjRCL+NU0B77tg==","shasum":"89d06ac55f80b0721a7d2fa8d0a3d98c7d4bd313","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709158069000.tgz","fileCount":99,"unpackedSize":3011403,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709158069000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaX+8vKiL+/1gzDgiJJIV0Mx3TScw+ckaxzX+E6fVyvAiEA49XQy0h5qwB4Nrv5qK6lfEfH72ieWv76Y7E9DXwc0Fg="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709158069000_1709158230607_0.6522365274835435"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-02-29":{"name":"playwright","version":"1.43.0-alpha-2024-02-29","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-02-29"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-02-29","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"aedd7ca0bef98f1e14463bc4e8733300c9960a87","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-xfRmObtAUoqklzhjUh+15wZ/+Er9Q92ZAVHdaXFnEEt8EFP0a/KccCfWS4YuFew28i2Sq4iMytFqJyvGMNKNZA==","shasum":"19f144f803863d18ffd6392aeae63b96012dbe3d","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-02-29.tgz","fileCount":99,"unpackedSize":3012318,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-02-29","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG5EmxuMJd8Fr+9C/hJKs+h0JVr7W3XSqsmecWlgW4UXAiBua865cPo87ZE5VPrlnI5ip2BitA9DbZfeSivphu+8DA=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-02-29_1709166339779_0.06056037718389762"},"_hasShrinkwrap":false},"1.42.0-beta-1709198925000":{"name":"playwright","version":"1.42.0-beta-1709198925000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709198925000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709198925000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"20db86da3e492e6b966e008dab11102bc03937e0","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-JoKz8K080RXAQWbj2nEezc2Zx7SiANO5toZzPd/dwwD2SwCZWLMhBsVD++AvUSfZZThY8bpcQQYM0nMFr2ym5g==","shasum":"0a2e860650d3b96ee3ec854bbc2b3f05777b9e39","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709198925000.tgz","fileCount":99,"unpackedSize":3011403,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709198925000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXqw56FnbPi5J4dEPD8qPEYooS62Ii7Zy42sAwBkBhswIhAKG0zQTGzvwNh3h6kpaxGzfVm/GbrIZ69Z+yMwXvOMsH"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709198925000_1709199056548_0.28326444802069584"},"_hasShrinkwrap":false},"1.42.0-beta-1709226226000":{"name":"playwright","version":"1.42.0-beta-1709226226000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709226226000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709226226000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3f6b6419c507ea8db01dcd0dd21284b47cf14fcb","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-mwSXbGRMHAVYoJGv9BVlu1bX0KY0cPWD24af5bg7kSnRNOSwbOgjxFPwX6lYuFKHRBYuBq2oR6WrOCg5v//mVw==","shasum":"27b2eee08a4406ac0ebb966b10ad9c90d18b8056","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709226226000.tgz","fileCount":99,"unpackedSize":3011403,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709226226000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyMEasiiQSlFpOP/mrteWAJw12UyFgrLZgCx7ubgG0ygIhAKXq3Zx1kT/DUPcx5LRI/7f2cAALyiy4mRQq4wZmsKXQ"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709226226000_1709226352650_0.39025864974196156"},"_hasShrinkwrap":false},"1.42.0-beta-1709239763000":{"name":"playwright","version":"1.42.0-beta-1709239763000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709239763000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709239763000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"56e50a7304b160b89979a239688a691f90bd1f51","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-YCza08UWiSjmr+7XqdhRhGaKOYpXJ4awxR0OGMYtZtFdc06WakRnFVsRKV3E29NE72zaRMQFxeM0qE4/oxfXTg==","shasum":"f78f298e8a1f9691cc2a6d5ae225951dcfa139e5","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709239763000.tgz","fileCount":99,"unpackedSize":3011403,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709239763000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWMIS+HH7lLHzXc2PRgxAx8MD31EYGEBAnopBtk2uklwIhAJmzxSWtxiP2RBltJjk3ldIUNy7VeAJUS52uSH2VqgDG"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709239763000_1709239886800_0.1328988588623803"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-03-01":{"name":"playwright","version":"1.43.0-alpha-2024-03-01","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-03-01"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-03-01","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"0f30cdab236366f58230f434b63c214343b1aa0f","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-YDjG9s70bY3KbGWTfyx87ZOWeSmj1tuHEaM/ifcw3hli8AeLCTjDXLbocJpZq8SBc7nba7bjs+0RPEEy0xU9qQ==","shasum":"b15c0cea3c633205735859a2d936b2d1729e5267","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-03-01.tgz","fileCount":99,"unpackedSize":3012318,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-03-01","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF7L3kjb++I1loWQQ8TgJKPQXZ7FRhcEiPiaFzrlTwOqAiA5JHql2ftARAos3OiPoUvJKv6gtu+7FjEaHljHOvD9Tg=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-03-01_1709252951558_0.9722165119372785"},"_hasShrinkwrap":false},"1.42.0-beta-1709254258000":{"name":"playwright","version":"1.42.0-beta-1709254258000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709254258000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709254258000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d23fb005d4cd171408aee90db3cde733c6179ed3","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-V4qxraXZBc/w3sCxG02tJO3F0T1zq2rNPCq/YFy+XUIvosINm17Ncu/Rcw10ZIqSEho6WnNlnh07YYrItwAewQ==","shasum":"1914193d60ae1068eee99fc5b53afd0d590cc7e4","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709254258000.tgz","fileCount":99,"unpackedSize":3011403,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709254258000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2hU59LwlUwJ0yfaGJ952Nk6PjTniTtBqA75rw1uWqgwIgL8L1gRy+9lKfdiBWysSrL3P0n1dQxRZmiRQyK9A3GOk="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709254258000_1709254393047_0.8343328911066312"},"_hasShrinkwrap":false},"1.42.0-beta-1709262915000":{"name":"playwright","version":"1.42.0-beta-1709262915000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709262915000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709262915000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"3a4381303ccafdeb599f461d60bd55fa6425f57c","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-I5vNw2+wevrUMh8xL18Ip3vzBSjhqbtkpxgV2gxmvqKQe4DWcZ4ibC0le14u2f0MwZa267SMDE74CB8nIpz5bQ==","shasum":"a3559196bb86806d300b32d5ba97465a1086934e","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709262915000.tgz","fileCount":99,"unpackedSize":3011403,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709262915000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBFYhR/FrXq4rc9Ufr74JrTn/WhgmkUjD/2pTAiPNU0iAiEA6cWk6K1S4CPhFxkB1lhmQM1g1kThiP9j5JVPbSrJX+4="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709262915000_1709263080494_0.0015360198671137137"},"_hasShrinkwrap":false},"1.42.0-beta-1709314651000":{"name":"playwright","version":"1.42.0-beta-1709314651000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709314651000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709314651000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"b67050638b65156c55798b60a0a75e15fe935d2d","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-MNSJPynMYv1zmIOLUDRhFxQ0WALAqFv/vQC/veI6BzE1Wj/5wpyfNY4OpvzyvE6RnQNc4PCayxNC/qKpYEfNAw==","shasum":"6b7a427f8aff0f9120811a82fc0f6c8db0c05a50","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709314651000.tgz","fileCount":99,"unpackedSize":3011607,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709314651000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsmM6SYLe9AJ6c01MtnISrALcZ/2p+3o+DyBoWqr6BAgIhAOMDXZy6Sm0sm4roQ0hLr4/hADcR/CiBPGRP2Adys2WE"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709314651000_1709314792309_0.7803856103860591"},"_hasShrinkwrap":false},"1.42.0-beta-1709314844000":{"name":"playwright","version":"1.42.0-beta-1709314844000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709314844000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709314844000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a7025956c3d7161c16eb7054646d809249b29020","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-N8UP0FIFJxJUwIQpjIkpcHLH7PhF+IPfsAbLhtJcHR9YI+/L3NshOhueJAH0MY/0zvWdsavioWQx+eUHYMkFkw==","shasum":"a3e49cf017dd6574dee4dcb1076a17868a51df97","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709314844000.tgz","fileCount":99,"unpackedSize":3011607,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709314844000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPv78T3dLIpqDD7Ehf25cy+6hSuWnVMJMBX46Q9qbeVAIgYGoCC6vGUEooF5v+hAGqXdwelCYRgOP3RaDG5Lrj94Y="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709314844000_1709314999594_0.6182594973724815"},"_hasShrinkwrap":false},"1.42.0-beta-1709320822000":{"name":"playwright","version":"1.42.0-beta-1709320822000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.0-beta-1709320822000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.0-beta-1709320822000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d4ac444f7d5e0a01a27e5c2c023962a38c4bce41","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-iuMSzacSo9lyk+3sJSP5gOP0+TUb4OybT2qBRkLoN95N/56bDgbi1pYm7IVs8T8Yb3+eRr+ov6TcbdW8poFzZA==","shasum":"f771ba9dbcbb9014a86d783508b3abb64f5cc636","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.0-beta-1709320822000.tgz","fileCount":99,"unpackedSize":3011607,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.0-beta-1709320822000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx+SvFo1QG9dAFC6d7VSx8le2fa1J4P+BYlMgUyh+LMQIhALvi020BPAW9ZrOjljKb43KQhPkvQiY+untko66ZgW/B"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.0-beta-1709320822000_1709320989054_0.5086211096832784"},"_hasShrinkwrap":false},"1.42.1-beta-1709332975000":{"name":"playwright","version":"1.42.1-beta-1709332975000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.1-beta-1709332975000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.1-beta-1709332975000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"9749f7542676bce2d77f738b5fffcd7b0f46d67c","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-+Ngqdya/U5TbUKs8PbJ7NsWNv3fk+NaCdgl9kk9jaaDjgJ0OkbvvxUNEeMhXo9XWy3phPWPvrBWtZ9wMVQB+Jg==","shasum":"c577fe14f4e6ede20d841a93e068b6186dd553cc","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.1-beta-1709332975000.tgz","fileCount":99,"unpackedSize":3011607,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.1-beta-1709332975000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHaJACCeZKhGEYke16RI3W6PQUeAihY40TLRHH0fUf91AiB6dYFpCipOQA8QIyEu3qEpDv4blRiSIK+eTSOlUay1DA=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.1-beta-1709332975000_1709333093345_0.08147764056007345"},"_hasShrinkwrap":false},"1.42.1":{"name":"playwright","version":"1.42.1","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.1"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.1","gitHead":"9749f7542676bce2d77f738b5fffcd7b0f46d67c","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-PgwB03s2DZBcNRoW+1w9E+VkLBxweib6KTXM0M3tkiT4jVxKSi6PmVJ591J+0u10LUrgxB7dLRbiJqO5s2QPMg==","shasum":"79c828b51fe3830211137550542426111dc8239f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.1.tgz","fileCount":99,"unpackedSize":3011569,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkOiKhqYuKgoVbcp2V8O+yEhZMTsvuAd917zUt8J7MXgIgMsl0FeVPDNbOZHEyuY0Y+LgH5IHrizCBkb0kJE5elew="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.1_1709338878789_0.6897687825473677"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-03-02":{"name":"playwright","version":"1.43.0-alpha-2024-03-02","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-03-02"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-03-02","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"bbcc3c1238b02aa8a446dd60511e630a8c6c644e","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-ckbVoF4kRXdN7ypqkyn3/3lIkUuFpk9VzIZpnQEk/6SOvmOL07xOw2qk4W/WkFWex1WNCvzbAnQFtiEyYTDB3Q==","shasum":"efe87a832ab3c8763cd1f58d7b09e25b17881559","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-03-02.tgz","fileCount":98,"unpackedSize":3012490,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-03-02","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCo1UODYxiwREjhgbjkPQkL710Bgh6VHmdkcuZ0zdqR8AIhALNrIgftp8Ki7phypPQmMyR/94FBr3NNqU6J51g3xCfY"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-03-02_1709339059841_0.18603917127935143"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-03-03":{"name":"playwright","version":"1.43.0-alpha-2024-03-03","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-03-03"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-03-03","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"04e17470386b0fc76440ab3379a00cc910dade91","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-IcrIDb2f5XTWG6FsqelMD2UyxrnbZFSgDUFMr8sZwd6Rv6YFGepgfoYYm1BQzOflVj+HSuCsKz91B3J6Ej3gjg==","shasum":"1a0a7c5cca9b73b4943e70c7c611efa63c48210f","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-03-03.tgz","fileCount":98,"unpackedSize":3012201,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-03-03","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHRu3ostZRzpb0D04tSWHlXA8PTNCezPMEy5XuYwxPHzAiEAy8a+BxE7mXY8nl4/UHH9MnkwSpszBpmFUNsSBatpVFY="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-03-03_1709425646325_0.23411928722527153"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-03-04":{"name":"playwright","version":"1.43.0-alpha-2024-03-04","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-03-04"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-03-04","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d5d4f591f35970f48ffe82bfc5c9e117660d7f0f","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-SKJeA+O8XCzlZjrnTHD9vwTXM4sCeQP5HuiarXmVLXY8HQieFFwQoQiEHZv7nNODgInsVY4aag8YZgnyfo/k3g==","shasum":"e80953eb984283d9f998a8b92a78efcc5589a598","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-03-04.tgz","fileCount":98,"unpackedSize":3012201,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-03-04","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgdVL73QbXCEyOZ9fL2z7pPBL2iUpUwQvb5DIBERWUXAiEAinQdsIn1m3MGvXti+uaAUlodQzvY13kqEdCdGtIuP7o="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-03-04_1709511990146_0.6923727215746109"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-03-05":{"name":"playwright","version":"1.43.0-alpha-2024-03-05","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-03-05"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-03-05","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"291567b922ff9afe8357103e005292a8464bbc85","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-ESAV95CptC3hTwUlS6ws5sMjxHArEy6AkpDN1zgPh4LDoatY8Qz1DoSMtFfY98ITeQB4SfuPkhmI0X4cxWCQiw==","shasum":"42180ca67a88f7d2b61e2a0bc0ab758b6cd0a007","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-03-05.tgz","fileCount":98,"unpackedSize":3012421,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-03-05","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIChxMFqKaEZG2WSE6r8a2Q+oyatOGzcXfNgyYO4UPaY7AiB+ueDQlYAgEEjqsnJOJVv4L1yPi7Sc8TNMS0FqJjTAcA=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-03-05_1709598317246_0.02552341552984183"},"_hasShrinkwrap":false},"1.42.1-beta-1709665345000":{"name":"playwright","version":"1.42.1-beta-1709665345000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.1-beta-1709665345000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.1-beta-1709665345000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"f822d650b25ee2981576ffe88b320023da144655","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-eIEsII6LOJNMTNcG2fPFzCsIWydyT9m/X9G7DK5hy8G2ArzVBRRzrXNCOWr1arIuU4BRysaxnLLj+9a5hCxv7w==","shasum":"bbd4316d2d87bd44fcbcae449a4012897efd3b11","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.1-beta-1709665345000.tgz","fileCount":99,"unpackedSize":3011607,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.1-beta-1709665345000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDor4nuEqCfoFUzPgkZlF+uE/QQLvQdA1ObIWUCU9DvTgIhANuLRdeWt6GYmBclaCFqoL9oHB84YnSe80LRusq+PdIi"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.1-beta-1709665345000_1709665484769_0.39579172805142204"},"_hasShrinkwrap":false},"1.43.0-beta-1709675102000":{"name":"playwright","version":"1.43.0-beta-1709675102000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-beta-1709675102000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-beta-1709675102000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"a27275e36e145ee39f9634d838afba6429f0921e","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-AJweeeBu6/0FqzY48BgPMmmNW9OuDBojw7+vTmMaYpddmESlQOcabs76Oe83d/BejQe+rLeNbunVfTdfz5/vfg==","shasum":"befe216f18ee7ca4b49dc9b61a4d8af9202c4d17","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-beta-1709675102000.tgz","fileCount":98,"unpackedSize":3011951,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-beta-1709675102000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8N+DMJ/C+kBrlnuwfswG2tn1X/62J2Slc2rTpR5LC6QIhALlCYlrXTlWYYJUYoVEyAY6ln5r52aQWhzGVjsBj9A84"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-beta-1709675102000_1709675241489_0.2416476315209064"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-03-06":{"name":"playwright","version":"1.43.0-alpha-2024-03-06","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-03-06"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-03-06","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"8bf8091cb148e4150e4e4a7c5897939091681638","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-H8CZu0VYUNAHtBgFfCFhzWRl0vQiH1AQZkbQXhROvAWOwZkNi/EsKXXahvOG641DVfW1/wJqn5Ddycdz31kBPw==","shasum":"626ca4f0cf07a0a556c0754e86f71dcde260a1a8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-03-06.tgz","fileCount":99,"unpackedSize":3021488,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-03-06","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHr29tr2FjDJ6K5Gnij1fOsaw8Y7ZDVue0wDGBpi/MELAiEAj9AOyW3Z2mC9Bep6Kfp1kwslcIlnVCJR6hmPBk0grK8="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-03-06_1709684792695_0.09762250199480449"},"_hasShrinkwrap":false},"1.42.1-beta-1709718680000":{"name":"playwright","version":"1.42.1-beta-1709718680000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.42.1-beta-1709718680000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.42.1-beta-1709718680000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.4-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"1a80286a4d6b5ccc8a9ce9b942ad60e3f313d8f2","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-2R0j5HmUyBpyqj5ySEl1oGJpAvn8dC4616J3+t30HSYl0lhMhIMqA0qKsB69MTqbG0Kud774iFMi+GHZAYuP4Q==","shasum":"1d2b2a2fbc6a536500aaa0da07f156ea659d7672","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.42.1-beta-1709718680000.tgz","fileCount":99,"unpackedSize":3011607,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.42.1-beta-1709718680000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIQU9oYsASCjksO1eTEJsYRkQIgu6swYZqVbuUUK8GGQIhALZ6gbYL84mmI/ZJ1aa7YYmiF0TW0RF0vLw4kSYO5F79"}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.42.1-beta-1709718680000_1709718793205_0.18530167141715803"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-03-07":{"name":"playwright","version":"1.43.0-alpha-2024-03-07","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-03-07"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-03-07","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"006ee7f3b0a3b7beb3b882d4ff3262229c6c7707","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-mVIWFZA0qVCS2awlpgnmJj6abYWKbJRcUcOORKzsZF2y/jAZ9VOBHBOPY2D+KaMq+qHyBINDstrjs/sDmU9KJQ==","shasum":"d2d72b619edd76889ce4a4c97876b31dd64c4d15","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-03-07.tgz","fileCount":99,"unpackedSize":3024039,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-03-07","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLpDAEY4LXo3DayESWvJkJe11+Mi5S4C3mJ+q5sHq9oQIgCK63HOq06f5xvxlZYHa97FlqLyCl/84ge3LaeLwwRZ8="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-03-07_1709770891525_0.37046208883070175"},"_hasShrinkwrap":false},"1.43.0-alpha-1709823751000":{"name":"playwright","version":"1.43.0-alpha-1709823751000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-1709823751000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-1709823751000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"591d327eac546b38916928bb1d2046d401b20583","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-/MtzvUY9KdKu0Nnvo4AdKx0W29yv2ClQiHHNiGevlo5J+JS/pdwXSp4utD66hNvdHLrSAW+QEdyUh80ik+bR6Q==","shasum":"730e0ab31b0420d0c427e77f2794cabd21995fb3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-1709823751000.tgz","fileCount":99,"unpackedSize":3024045,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-1709823751000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICo1pKbmmwQ11FMrIY+2bz0gpe17pwpT3ANvggbO6he8AiEA5WJjBmwaS1OUnBgq1SZ8mfu2+O5NRbCQm1JR/oUtAQw="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-1709823751000_1709828078834_0.6853870144052898"},"_hasShrinkwrap":false},"1.43.0-alpha-1709847741000":{"name":"playwright","version":"1.43.0-alpha-1709847741000","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-1709847741000"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-1709847741000","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"84d33089693e46e449323a68ced0dc621d1f5faa","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-JBW+95TB2EKkRgBlUxEdtq4n+Fif6bXlIcGcGbIj8FTjIYazvI9zFRmgFPaagSHr49TA5602eKbRpkG9634cmg==","shasum":"4939f39b8e965f8d985b11c1869e16951c775a22","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-1709847741000.tgz","fileCount":99,"unpackedSize":3024045,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-1709847741000","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICp+FdZRTWdXO/QNHQ+/oCrhlnil3tv+G7ZhKtuedcO7AiEA2UaNBapu1o5NUmGVmVhdtPLD9y0fdT1z2QREjMZKSQk="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-1709847741000_1709848110684_0.2661787697869449"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-03-08":{"name":"playwright","version":"1.43.0-alpha-2024-03-08","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-03-08"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-03-08","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"875ce1cf0968e84a2d4affd6e15681cfd6ecf804","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-KKkZHf7RM/gB7O/BCtBM9p85vVxwfR+Ao501TzzK42o0Ik5l5Jc+3LmTxiDjS72EkLQar/FjMg7Ok9Io2oYBVw==","shasum":"70a84ebf77854dbac2bb0d9e7aa45a4c2c9016d3","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-03-08.tgz","fileCount":99,"unpackedSize":3024039,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-03-08","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+M6SrmImimtF13y0nPJAfvzm9PTPldz61iq8weRLE6AiAm3u3qxEM454rK+PKzyjq3ymgZCQkG6SGvvqxyM3wbhg=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-03-08_1709857560531_0.4488213733497999"},"_hasShrinkwrap":false},"1.43.0-alpha-2024-03-09":{"name":"playwright","version":"1.43.0-alpha-2024-03-09","description":"A high-level API to automate web browsers","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"homepage":"https://playwright.dev","engines":{"node":">=16"},"main":"index.js","exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js","default":"./index.js"},"./package.json":"./package.json","./lib/common/configLoader":"./lib/common/configLoader.js","./lib/fsWatcher":"./lib/fsWatcher.js","./lib/program":"./lib/program.js","./lib/transform/babelBundle":"./lib/transform/babelBundle.js","./lib/transform/compilationCache":"./lib/transform/compilationCache.js","./lib/runner/runner":"./lib/runner/runner.js","./lib/runner/testServer":"./lib/runner/testServer.js","./lib/transform/esmLoader":"./lib/transform/esmLoader.js","./lib/transform/transform":"./lib/transform/transform.js","./lib/internalsForTest":"./lib/internalsForTest.js","./lib/plugins":"./lib/plugins/index.js","./jsx-runtime":{"import":"./jsx-runtime.mjs","require":"./jsx-runtime.js","default":"./jsx-runtime.js"},"./lib/util":"./lib/util.js","./lib/utilsBundle":"./lib/utilsBundle.js","./types/test":{"types":"./types/test.d.ts"},"./types/testReporter":{"types":"./types/testReporter.d.ts"},"./test":{"types":"./test.d.ts","import":"./test.mjs","require":"./test.js","default":"./test.js"}},"bin":{"playwright":"cli.js"},"author":{"name":"Microsoft Corporation"},"license":"Apache-2.0","dependencies":{"playwright-core":"1.43.0-alpha-2024-03-09"},"optionalDependencies":{"fsevents":"2.3.2"},"_id":"playwright@1.43.0-alpha-2024-03-09","readme":"# 🎭 Playwright\n\n[![npm version](https://img.shields.io/npm/v/playwright.svg)](https://www.npmjs.com/package/playwright) <!-- GEN:chromium-version-badge -->[![Chromium version](https://img.shields.io/badge/chromium-123.0.6312.22-blue.svg?logo=google-chrome)](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[![Firefox version](https://img.shields.io/badge/firefox-123.0-blue.svg?logo=firefoxbrowser)](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> <!-- GEN:webkit-version-badge -->[![WebKit version](https://img.shields.io/badge/webkit-17.4-blue.svg?logo=safari)](https://webkit.org/)<!-- GEN:stop -->\n\n## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/docs/api/class-playwright)\n\nPlaywright is a framework for Web Testing and Automation. It allows testing [Chromium](https://www.chromium.org/Home), [Firefox](https://www.mozilla.org/en-US/firefox/new/) and [WebKit](https://webkit.org/) with a single API. Playwright is built to enable cross-browser web automation that is **ever-green**, **capable**, **reliable** and **fast**.\n\n|          | Linux | macOS | Windows |\n|   :---   | :---: | :---: | :---:   |\n| Chromium <!-- GEN:chromium-version -->123.0.6312.22<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n| Firefox <!-- GEN:firefox-version -->123.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |\n\nHeadless execution is supported for all browsers on all platforms. Check out [system requirements](https://playwright.dev/docs/intro#system-requirements) for details.\n\nLooking for Playwright for [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Installation\n\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n### Using init command\n\nThe easiest way to get started with Playwright Test is to run the init command.\n\n```Shell\n# Run from your project's root directory\nnpm init playwright@latest\n# Or create a new project\nnpm init playwright@latest new-project\n```\n\nThis will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section.\n\n### Manually\n\nAdd dependency and install browsers.\n\n```Shell\nnpm i -D @playwright/test\n# install supported browsers\nnpx playwright install\n```\n\nYou can optionally install only selected browsers, see [install browsers](https://playwright.dev/docs/cli#install-browsers) for more details. Or you can install no browsers at all and use existing [browser channels](https://playwright.dev/docs/browsers).\n\n* [Getting started](https://playwright.dev/docs/intro)\n* [Installation configuration](https://playwright.dev/docs/installation)\n* [API reference](https://playwright.dev/docs/api/class-playwright)\n\n## Capabilities\n\n### Resilient • No flaky tests\n\n**Auto-wait**. Playwright waits for elements to be actionable prior to performing actions. It also has a rich set of introspection events. The combination of the two eliminates the need for artificial timeouts - a primary cause of flaky tests.\n\n**Web-first assertions**. Playwright assertions are created specifically for the dynamic web. Checks are automatically retried until the necessary conditions are met.\n\n**Tracing**. Configure test retry strategy, capture execution trace, videos and screenshots to eliminate flakes.\n\n### No trade-offs • No limits\n\nBrowsers run web content belonging to different origins in different processes. Playwright is aligned with the architecture of the modern browsers and runs tests out-of-process. This makes Playwright free of the typical in-process test runner limitations.\n\n**Multiple everything**. Test scenarios that span multiple tabs, multiple origins and multiple users. Create scenarios with different contexts for different users and run them against your server, all in one test.\n\n**Trusted events**. Hover elements, interact with dynamic controls and produce trusted events. Playwright uses real browser input pipeline indistinguishable from the real user.\n\nTest frames, pierce Shadow DOM. Playwright selectors pierce shadow DOM and allow entering frames seamlessly.\n\n### Full isolation • Fast execution\n\n**Browser contexts**. Playwright creates a browser context for each test. Browser context is equivalent to a brand new browser profile. This delivers full test isolation with zero overhead. Creating a new browser context only takes a handful of milliseconds.\n\n**Log in once**. Save the authentication state of the context and reuse it in all the tests. This bypasses repetitive log-in operations in each test, yet delivers full isolation of independent tests.\n\n### Powerful Tooling\n\n**[Codegen](https://playwright.dev/docs/codegen)**. Generate tests by recording your actions. Save them into any language.\n\n**[Playwright inspector](https://playwright.dev/docs/inspector)**. Inspect page, generate selectors, step through the test execution, see click points and explore execution logs.\n\n**[Trace Viewer](https://playwright.dev/docs/trace-viewer)**. Capture all the information to investigate the test failure. Playwright trace contains test execution screencast, live DOM snapshots, action explorer, test source and many more.\n\nLooking for Playwright for [TypeScript](https://playwright.dev/docs/intro), [JavaScript](https://playwright.dev/docs/intro), [Python](https://playwright.dev/python/docs/intro), [.NET](https://playwright.dev/dotnet/docs/intro), or [Java](https://playwright.dev/java/docs/intro)?\n\n## Examples\n\nTo learn how to run these Playwright Test examples, check out our [getting started docs](https://playwright.dev/docs/intro).\n\n#### Page screenshot\n\nThis code snippet navigates to Playwright homepage and saves a screenshot.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Page Screenshot', async ({ page }) => {\n  await page.goto('https://playwright.dev/');\n  await page.screenshot({ path: `example.png` });\n});\n```\n\n#### Mobile and geolocation\n\nThis snippet emulates Mobile Safari on a device at given geolocation, navigates to maps.google.com, performs the action and takes a screenshot.\n\n```TypeScript\nimport { test, devices } from '@playwright/test';\n\ntest.use({\n  ...devices['iPhone 13 Pro'],\n  locale: 'en-US',\n  geolocation: { longitude: 12.492507, latitude: 41.889938 },\n  permissions: ['geolocation'],\n})\n\ntest('Mobile and geolocation', async ({ page }) => {\n  await page.goto('https://maps.google.com');\n  await page.getByText('Your location').click();\n  await page.waitForRequest(/.*preview\\/pwa/);\n  await page.screenshot({ path: 'colosseum-iphone.png' });\n});\n```\n\n#### Evaluate in browser context\n\nThis code snippet navigates to example.com, and executes a script in the page context.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Evaluate in browser context', async ({ page }) => {\n  await page.goto('https://www.example.com/');\n  const dimensions = await page.evaluate(() => {\n    return {\n      width: document.documentElement.clientWidth,\n      height: document.documentElement.clientHeight,\n      deviceScaleFactor: window.devicePixelRatio\n    }\n  });\n  console.log(dimensions);\n});\n```\n\n#### Intercept network requests\n\nThis code snippet sets up request routing for a page to log all network requests.\n\n```TypeScript\nimport { test } from '@playwright/test';\n\ntest('Intercept network requests', async ({ page }) => {\n  // Log and continue all network requests\n  await page.route('**', route => {\n    console.log(route.request().url());\n    route.continue();\n  });\n  await page.goto('http://todomvc.com');\n});\n```\n\n## Resources\n\n* [Documentation](https://playwright.dev/docs/intro)\n* [API reference](https://playwright.dev/docs/api/class-playwright/)\n* [Contribution guide](CONTRIBUTING.md)\n* [Changelog](https://github.com/microsoft/playwright/releases)\n","readmeFilename":"README.md","gitHead":"d214778548f10f86ba946d721ac00a89afab1c68","types":"./index.d.ts","bugs":{"url":"https://github.com/microsoft/playwright/issues"},"_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-gVlMR784qSHFeNvt8Bokp4e+ijRD9S/JoyicNtKtDGw4S39q9hGm52ODJSwrZ5qGXJb3RruhcHp6aLvU/WxPGQ==","shasum":"69dddc7ed69652f732056b99eabdde6a224e96b8","tarball":"https://registry.npmjs.org/playwright/-/playwright-1.43.0-alpha-2024-03-09.tgz","fileCount":99,"unpackedSize":3023699,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/playwright@1.43.0-alpha-2024-03-09","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHa5hvfsUnGuGXde+AYg47nEEdQCIgkGh70Q9wMIqIQzAiA+TAt8j1D5m0IMiuJyVKVt0AMAK8CB/U67Xy6BkHVXyw=="}]},"_npmUser":{"name":"yurys","email":"yury.semikhatsky@gmail.com"},"directories":{},"maintainers":[{"name":"pavelfeldman","email":"pavel.feldman@gmail.com"},{"name":"dgozman","email":"dgozman@gmail.com"},{"name":"yurys","email":"yury.semikhatsky@gmail.com"},{"name":"dgozman-ms","email":"dgozman@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/playwright_1.43.0-alpha-2024-03-09_1709943912214_0.6253184291893699"},"_hasShrinkwrap":false}},"homepage":"https://playwright.dev","repository":{"type":"git","url":"git+https://github.com/microsoft/playwright.git"},"author":{"name":"Microsoft Corporation"},"bugs":{"url":"https://github.com/microsoft/playwright/issues"},"license":"Apache-2.0","readmeFilename":"","users":{"nicomee":true,"dozierjack":true,"flumpus-dev":true,"bcowgi11":true}}